changeset 3098:a5f0bc867edc rhodecode-0.0.1.5.0

merge with beta
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 13 Dec 2012 22:54:21 +0100
parents 52b1c6de19c2 (current diff) db1b7125cdaf (diff)
children 5c092b79f39b
files .hgignore CONTRIBUTORS development.ini docs/changelog.rst docs/index.rst docs/setup.rst docs/usage/git_support.rst production.ini rhodecode/__init__.py rhodecode/config/deployment.ini_tmpl rhodecode/config/middleware.py rhodecode/config/routing.py rhodecode/controllers/admin/admin.py rhodecode/controllers/admin/permissions.py rhodecode/controllers/admin/repos.py rhodecode/controllers/admin/settings.py rhodecode/controllers/admin/users.py rhodecode/controllers/api/api.py rhodecode/controllers/changeset.py rhodecode/controllers/feed.py rhodecode/controllers/files.py rhodecode/controllers/home.py rhodecode/controllers/journal.py rhodecode/controllers/search.py rhodecode/controllers/settings.py rhodecode/controllers/shortlog.py rhodecode/controllers/summary.py rhodecode/i18n/rhodecode.pot rhodecode/lib/auth_ldap.py rhodecode/lib/base.py rhodecode/lib/celerylib/__init__.py rhodecode/lib/celerylib/tasks.py rhodecode/lib/db_manage.py rhodecode/lib/helpers.py rhodecode/lib/hooks.py rhodecode/lib/indexers/__init__.py rhodecode/lib/indexers/daemon.py rhodecode/lib/middleware/simplegit.py rhodecode/lib/middleware/simplehg.py rhodecode/lib/utils.py rhodecode/model/db.py rhodecode/model/forms.py rhodecode/model/permission.py rhodecode/model/repo.py rhodecode/model/scm.py rhodecode/model/user.py rhodecode/public/css/style.css rhodecode/templates/admin/permissions/permissions.html rhodecode/templates/admin/settings/settings.html rhodecode/templates/admin/users/user_edit.html rhodecode/templates/admin/users/user_edit_my_account.html rhodecode/templates/base/base.html rhodecode/templates/changelog/changelog.html rhodecode/templates/changeset/changeset.html rhodecode/templates/changeset/raw_changeset.html rhodecode/templates/files/files_source.html rhodecode/templates/journal/journal.html rhodecode/templates/summary/summary.html rhodecode/tests/__init__.py rhodecode/websetup.py setup.py test.ini
diffstat 193 files changed, 328383 insertions(+), 8428 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Oct 09 00:57:07 2012 +0200
+++ b/.hgignore	Thu Dec 13 22:54:21 2012 +0100
@@ -19,6 +19,6 @@
 ^rhodecode\.db$
 ^test\.db$
 ^RhodeCode\.egg-info$
-^rc\.ini$
+^rc.*\.ini$
 ^fabfile.py
 ^\.rhodecode$
--- a/CONTRIBUTORS	Tue Oct 09 00:57:07 2012 +0200
+++ b/CONTRIBUTORS	Thu Dec 13 22:54:21 2012 +0100
@@ -28,4 +28,7 @@
     Vincent Caron <vcaron@bearstech.com>
     Zachary Auclair <zach101@gmail.com>
     Stefan Engel <mail@engel-stefan.de>
-    Andrew Shadura <bugzilla@tut.by>
\ No newline at end of file
+    Andrew Shadura <bugzilla@tut.by>
+    Raoul Thill <raoul.thill@gmail.com>
+    Philip Jameson <philip.j@hostdime.com>
+    Mads Kiilerich <madski@unity3d.com>
--- a/development.ini	Tue Oct 09 00:57:07 2012 +0200
+++ b/development.ini	Thu Dec 13 22:54:21 2012 +0100
@@ -29,6 +29,7 @@
 #smtp_auth = 
 
 [server:main]
+## PASTE
 ##nr of threads to spawn
 #threadpool_workers = 5
 
@@ -39,7 +40,11 @@
 #use_threadpool = true
 
 #use = egg:Paste#http
+
+#WAITRESS
+threads = 5
 use = egg:waitress#main
+
 host = 0.0.0.0
 port = 5000
 
@@ -54,16 +59,26 @@
 full_stack = true
 static_files = true
 # Optional Languages
-# en, fr, ja, pt_BR, zh_CN, zh_TW
+# en, fr, ja, pt_BR, zh_CN, zh_TW, pl
 lang = en
 cache_dir = %(here)s/data
 index_dir = %(here)s/data/index
 app_instance_uuid = rc-develop
 cut_off_limit = 256000
+vcs_full_cache = True
 force_https = false
 commit_parse_limit = 25
+# number of items displayed in lightweight dashboard before paginating
+dashboard_items = 100
 use_gravatar = true
 
+## RSS feed options
+
+rss_cut_off_limit = 256000
+rss_items_per_page = 10
+rss_include_diff = false
+
+
 ## alternative_gravatar_url allows you to use your own avatar server application
 ## the following parts of the URL will be replaced
 ## {email}        user email
@@ -76,6 +91,8 @@
 
 container_auth_enabled = false
 proxypass_auth_enabled = false
+## default encoding used to convert from and to unicode
+## can be also a comma seperated list of encoding in case of mixed encodings
 default_encoding = utf8
 
 ## overwrite schema of clone url
@@ -227,6 +244,87 @@
 #beaker.session.cookie_expires = 3600
 
 
+############################
+## ERROR HANDLING SYSTEMS ##
+############################
+
+####################
+### [errormator] ###
+####################
+
+# Errormator is tailored to work with RhodeCode, see 
+# http://errormator.com for details how to obtain an account
+# you must install python package `errormator_client` to make it work
+
+# errormator enabled
+errormator = true
+
+errormator.server_url = https://api.errormator.com
+errormator.api_key = YOUR_API_KEY
+
+# TWEAK AMOUNT OF INFO SENT HERE
+
+# enables 404 error logging (default False)
+errormator.report_404 = false
+
+# time in seconds after request is considered being slow (default 1)
+errormator.slow_request_time = 1
+
+# record slow requests in application
+# (needs to be enabled for slow datastore recording and time tracking)
+errormator.slow_requests = true
+
+# enable hooking to application loggers
+# errormator.logging = true
+
+# minimum log level for log capture
+# errormator.logging.level = WARNING
+
+# send logs only from erroneous/slow requests
+# (saves API quota for intensive logging)
+errormator.logging_on_error = false
+
+# list of additonal keywords that should be grabbed from environ object 
+# can be string with comma separated list of words in lowercase
+# (by default client will always send following info:
+# 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that 
+# start with HTTP* this list be extended with additional keywords here
+errormator.environ_keys_whitelist = 
+
+
+# list of keywords that should be blanked from request object 
+# can be string with comma separated list of words in lowercase
+# (by default client will always blank keys that contain following words 
+# 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
+# this list be extended with additional keywords set here
+errormator.request_keys_blacklist =
+
+
+# list of namespaces that should be ignores when gathering log entries
+# can be string with comma separated list of namespaces
+# (by default the client ignores own entries: errormator_client.client)
+errormator.log_namespace_blacklist =  
+
+
+################
+### [sentry] ###
+################
+
+# sentry is a alternative open source error aggregator
+# you must install python packages `sentry` and `raven` to enable 
+
+sentry.dsn = YOUR_DNS
+sentry.servers =
+sentry.name =
+sentry.key =
+sentry.public_key =
+sentry.secret_key =
+sentry.project =
+sentry.site =
+sentry.include_paths =
+sentry.exclude_paths =
+
+
 ################################################################################
 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*  ##
 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to  ##
--- a/docs/changelog.rst	Tue Oct 09 00:57:07 2012 +0200
+++ b/docs/changelog.rst	Thu Dec 13 22:54:21 2012 +0100
@@ -4,6 +4,71 @@
 Changelog
 =========
 
+
+1.5.0 (**2012-12-12**)
+----------------------
+
+news
+++++
+
+- new rewritten from scratch diff engine. 10x faster in edge cases. Handling
+  of file renames, copies, change flags and binary files
+- added lightweight dashboard option. ref #500. New version of dashboard
+  page that doesn't use any VCS data and is super fast to render. Recommended
+  for large amount of repositories.
+- implements #648 write Script for updating last modification time for
+  lightweight dashboard
+- implemented compare engine for git repositories.
+- LDAP failover, option to specify multiple servers
+- added Errormator and Sentry support for monitoring RhodeCode
+- implemented #628: Pass server URL to rc-extensions hooks
+- new tooltip implementation - added lazy loading of changesets from journal
+  pages. This can significantly improve speed of rendering the page
+- implements #632,added branch/tag/bookmarks info into feeds
+  added changeset link to body of message
+- implemented #638 permissions overview to groups
+- implements #636, lazy loading of history and authors to speed up source
+  pages rendering
+- implemented #647, option to pass list of default encoding used to 
+  encode to/decode from unicode
+- added caching layer into RSS/ATOM feeds.
+- basic implementation of cherry picking changesets for pull request, ref #575
+- implemented #661 Add option to include diff in RSS feed
+- implemented file history page for showing detailed changelog for a given file
+- implemented #663 Admin/permission: specify default repogroup perms
+- implemented #379 defaults settings page for creation of repositories, locking
+  statistics, downloads, repository type
+- implemented #210 filtering of admin journal based on Whoosh Query language
+- added parents/children links in changeset viewref #650
+
+fixes
++++++
+
+- fixed git version checker
+- #586 patched basic auth handler to fix issues with git behind proxy
+- #589 search urlgenerator didn't properly escape special characters
+- fixed issue #614 Include repo name in delete confirmation dialog
+- fixed #623: Lang meta-tag doesn't work with C#/C++
+- fixes #612 Double quotes to Single quotes result in bad html in diff
+- fixes #630 git statistics do too much work making them slow.
+- fixes #625 Git-Tags are not displayed in Shortlog
+- fix for issue #602, enforce str when setting mercurial UI object. 
+  When this is used together with mercurial internal translation system
+  it can lead to UnicodeDecodeErrors
+- fixes #645 Fix git handler when doing delete remote branch
+- implements #649 added two seperate method for author and commiter to VCS
+  changeset class switch author for git backed to be the real author not commiter
+- fix issue #504 RhodeCode is showing different versions of README on
+  different summary page loads
+- implemented #658 Changing username in LDAP-Mode should not be allowed.
+- fixes #652 switch to generator approach when doing file annotation to prevent
+  huge memory consumption 
+- fixes #666 move lockkey path location to cache_dir to ensure this path is
+  always writable for rhodecode server
+- many more small fixes and improvements
+- fixed issues with recursive scans on removed repositories that could take
+  long time on instance start
+
 1.4.4 (**2012-10-08**)
 ----------------------
 
--- a/docs/index.rst	Tue Oct 09 00:57:07 2012 +0200
+++ b/docs/index.rst	Thu Dec 13 22:54:21 2012 +0100
@@ -25,6 +25,7 @@
    usage/locking
    usage/statistics
    usage/backup
+   usage/subrepos
    usage/debugging
    usage/troubleshooting
 
--- a/docs/setup.rst	Tue Oct 09 00:57:07 2012 +0200
+++ b/docs/setup.rst	Thu Dec 13 22:54:21 2012 +0100
@@ -204,7 +204,8 @@
 .. _ldap_host:
 
 Host : required
-    LDAP server hostname or IP address.
+    LDAP server hostname or IP address. Can be also a comma separated
+    list of servers to support LDAP fail-over.
 
 .. _Port:
 
--- a/docs/usage/git_support.rst	Tue Oct 09 00:57:07 2012 +0200
+++ b/docs/usage/git_support.rst	Thu Dec 13 22:54:21 2012 +0100
@@ -8,16 +8,15 @@
 Git support in RhodeCode 1.3 was enabled by default. You need to have a git
 client installed on the machine to make git fully work.
 
-Although There are some limitations on git usage.
+Although There is one limitation on git usage.
 
-- hooks that are executed on pull/push are not *real* hooks, they are 
-  just emulating the behavior, and are executed **BEFORE** action takes place.
-- large pushes needs http server with chunked encoding support.
+- large pushes requires a http server with chunked encoding support.
  
 if you plan to use git you need to run RhodeCode with some
 http server that supports chunked encoding which git http protocol uses, 
 i recommend using waitress_ or gunicorn_ (linux only) for `paste` wsgi app 
-replacement.
+replacement. Starting from version 1.4 waitress_ is the default wsgi server
+used in RhodeCode.
 
 To use, simply change change the following in the .ini file::
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/usage/subrepos.rst	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,37 @@
+.. _subrepos:
+
+=============================================
+working with RhodeCode and mercurial subrepos
+=============================================
+
+example usage of Subrepos with RhodeCode::
+    
+    ## init a simple repo
+    hg init repo1                                                                                                                                                                                         
+    cd repo1
+    echo "file1" > file1
+    hg add file1 
+    hg ci --message "initial file 1"
+        
+    #clone subrepo we want to add
+    hg clone http://rc.local/subrepo
+
+    ## use path like url to existing repo in RhodeCode
+    echo "subrepo = http://rc.local/subrepo" > .hgsub
+
+    hg add .hgsub
+    hg ci --message "added remote subrepo"
+
+    
+
+In file list of repo1 you will see a connected subrepo at revision it was
+during cloning.
+Clicking in subrepos link should send you to proper repository in RhodeCode
+
+cloning repo1 will also clone attached subrepository.
+
+Next we can edit the subrepo data, and push back to RhodeCode. This will update
+both of repositories.
+
+see http://mercurial.aragost.com/kick-start/en/subrepositories/ for more
+information about subrepositories   
\ No newline at end of file
--- a/production.ini	Tue Oct 09 00:57:07 2012 +0200
+++ b/production.ini	Thu Dec 13 22:54:21 2012 +0100
@@ -29,6 +29,7 @@
 #smtp_auth = 
 
 [server:main]
+## PASTE
 ##nr of threads to spawn
 #threadpool_workers = 5
 
@@ -39,7 +40,11 @@
 #use_threadpool = true
 
 #use = egg:Paste#http
+
+#WAITRESS
+threads = 5
 use = egg:waitress#main
+
 host = 127.0.0.1
 port = 8001
 
@@ -54,16 +59,26 @@
 full_stack = true
 static_files = true
 # Optional Languages
-# en, fr, ja, pt_BR, zh_CN, zh_TW
+# en, fr, ja, pt_BR, zh_CN, zh_TW, pl
 lang = en
 cache_dir = %(here)s/data
 index_dir = %(here)s/data/index
 app_instance_uuid = rc-production
 cut_off_limit = 256000
+vcs_full_cache = True
 force_https = false
 commit_parse_limit = 50
+# number of items displayed in lightweight dashboard before paginating
+dashboard_items = 100
 use_gravatar = true
 
+## RSS feed options
+
+rss_cut_off_limit = 256000
+rss_items_per_page = 10
+rss_include_diff = false
+
+
 ## alternative_gravatar_url allows you to use your own avatar server application
 ## the following parts of the URL will be replaced
 ## {email}        user email
@@ -76,6 +91,8 @@
 
 container_auth_enabled = false
 proxypass_auth_enabled = false
+## default encoding used to convert from and to unicode
+## can be also a comma seperated list of encoding in case of mixed encodings
 default_encoding = utf8
 
 ## overwrite schema of clone url
@@ -227,6 +244,87 @@
 #beaker.session.cookie_expires = 3600
 
 
+############################
+## ERROR HANDLING SYSTEMS ##
+############################
+
+####################
+### [errormator] ###
+####################
+
+# Errormator is tailored to work with RhodeCode, see 
+# http://errormator.com for details how to obtain an account
+# you must install python package `errormator_client` to make it work
+
+# errormator enabled
+errormator = true
+
+errormator.server_url = https://api.errormator.com
+errormator.api_key = YOUR_API_KEY
+
+# TWEAK AMOUNT OF INFO SENT HERE
+
+# enables 404 error logging (default False)
+errormator.report_404 = false
+
+# time in seconds after request is considered being slow (default 1)
+errormator.slow_request_time = 1
+
+# record slow requests in application
+# (needs to be enabled for slow datastore recording and time tracking)
+errormator.slow_requests = true
+
+# enable hooking to application loggers
+# errormator.logging = true
+
+# minimum log level for log capture
+# errormator.logging.level = WARNING
+
+# send logs only from erroneous/slow requests
+# (saves API quota for intensive logging)
+errormator.logging_on_error = false
+
+# list of additonal keywords that should be grabbed from environ object 
+# can be string with comma separated list of words in lowercase
+# (by default client will always send following info:
+# 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that 
+# start with HTTP* this list be extended with additional keywords here
+errormator.environ_keys_whitelist = 
+
+
+# list of keywords that should be blanked from request object 
+# can be string with comma separated list of words in lowercase
+# (by default client will always blank keys that contain following words 
+# 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
+# this list be extended with additional keywords set here
+errormator.request_keys_blacklist =
+
+
+# list of namespaces that should be ignores when gathering log entries
+# can be string with comma separated list of namespaces
+# (by default the client ignores own entries: errormator_client.client)
+errormator.log_namespace_blacklist =  
+
+
+################
+### [sentry] ###
+################
+
+# sentry is a alternative open source error aggregator
+# you must install python packages `sentry` and `raven` to enable 
+
+sentry.dsn = YOUR_DNS
+sentry.servers =
+sentry.name =
+sentry.key =
+sentry.public_key =
+sentry.secret_key =
+sentry.project =
+sentry.site =
+sentry.include_paths =
+sentry.exclude_paths =
+
+
 ################################################################################
 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*  ##
 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to  ##
--- a/rhodecode/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,7 +26,7 @@
 import sys
 import platform
 
-VERSION = (1, 4, 4)
+VERSION = (1, 5, 0)
 
 try:
     from rhodecode.lib import get_current_revision
@@ -38,7 +38,7 @@
 
 __version__ = ('.'.join((str(each) for each in VERSION[:3])) +
                '.'.join(VERSION[3:]))
-__dbversion__ = 7  # defines current db version for migrations
+__dbversion__ = 8  # defines current db version for migrations
 __platform__ = platform.system()
 __license__ = 'GPLv3'
 __py_version__ = sys.version_info
--- a/rhodecode/config/deployment.ini_tmpl	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/config/deployment.ini_tmpl	Thu Dec 13 22:54:21 2012 +0100
@@ -29,6 +29,7 @@
 #smtp_auth = 
 
 [server:main]
+## PASTE
 ##nr of threads to spawn
 #threadpool_workers = 5
 
@@ -39,7 +40,11 @@
 #use_threadpool = true
 
 #use = egg:Paste#http
+
+#WAITRESS
+threads = 5
 use = egg:waitress#main
+
 host = 127.0.0.1
 port = 5000
 
@@ -54,16 +59,26 @@
 full_stack = true
 static_files = true
 # Optional Languages
-# en, fr, ja, pt_BR, zh_CN, zh_TW
+# en, fr, ja, pt_BR, zh_CN, zh_TW, pl
 lang = en
 cache_dir = %(here)s/data
 index_dir = %(here)s/data/index
 app_instance_uuid = ${app_instance_uuid}
 cut_off_limit = 256000
+vcs_full_cache = True
 force_https = false
 commit_parse_limit = 50
+# number of items displayed in lightweight dashboard before paginating
+dashboard_items = 100
 use_gravatar = true
 
+## RSS feed options
+
+rss_cut_off_limit = 256000
+rss_items_per_page = 10
+rss_include_diff = false
+
+
 ## alternative_gravatar_url allows you to use your own avatar server application
 ## the following parts of the URL will be replaced
 ## {email}        user email
@@ -76,6 +91,8 @@
 
 container_auth_enabled = false
 proxypass_auth_enabled = false
+## default encoding used to convert from and to unicode
+## can be also a comma seperated list of encoding in case of mixed encodings
 default_encoding = utf8
 
 ## overwrite schema of clone url
@@ -227,6 +244,87 @@
 #beaker.session.cookie_expires = 3600
 
 
+############################
+## ERROR HANDLING SYSTEMS ##
+############################
+
+####################
+### [errormator] ###
+####################
+
+# Errormator is tailored to work with RhodeCode, see 
+# http://errormator.com for details how to obtain an account
+# you must install python package `errormator_client` to make it work
+
+# errormator enabled
+errormator = true
+
+errormator.server_url = https://api.errormator.com
+errormator.api_key = YOUR_API_KEY
+
+# TWEAK AMOUNT OF INFO SENT HERE
+
+# enables 404 error logging (default False)
+errormator.report_404 = false
+
+# time in seconds after request is considered being slow (default 1)
+errormator.slow_request_time = 1
+
+# record slow requests in application
+# (needs to be enabled for slow datastore recording and time tracking)
+errormator.slow_requests = true
+
+# enable hooking to application loggers
+# errormator.logging = true
+
+# minimum log level for log capture
+# errormator.logging.level = WARNING
+
+# send logs only from erroneous/slow requests
+# (saves API quota for intensive logging)
+errormator.logging_on_error = false
+
+# list of additonal keywords that should be grabbed from environ object 
+# can be string with comma separated list of words in lowercase
+# (by default client will always send following info:
+# 'REMOTE_USER', 'REMOTE_ADDR', 'SERVER_NAME', 'CONTENT_TYPE' + all keys that 
+# start with HTTP* this list be extended with additional keywords here
+errormator.environ_keys_whitelist = 
+
+
+# list of keywords that should be blanked from request object 
+# can be string with comma separated list of words in lowercase
+# (by default client will always blank keys that contain following words 
+# 'password', 'passwd', 'pwd', 'auth_tkt', 'secret', 'csrf'
+# this list be extended with additional keywords set here
+errormator.request_keys_blacklist =
+
+
+# list of namespaces that should be ignores when gathering log entries
+# can be string with comma separated list of namespaces
+# (by default the client ignores own entries: errormator_client.client)
+errormator.log_namespace_blacklist =  
+
+
+################
+### [sentry] ###
+################
+
+# sentry is a alternative open source error aggregator
+# you must install python packages `sentry` and `raven` to enable 
+
+sentry.dsn = YOUR_DNS
+sentry.servers =
+sentry.name =
+sentry.key =
+sentry.public_key =
+sentry.secret_key =
+sentry.project =
+sentry.site =
+sentry.include_paths =
+sentry.exclude_paths =
+
+
 ################################################################################
 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*  ##
 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to  ##
--- a/rhodecode/config/middleware.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/config/middleware.py	Thu Dec 13 22:54:21 2012 +0100
@@ -53,6 +53,13 @@
 
     if asbool(full_stack):
 
+        from rhodecode.lib.middleware.sentry import Sentry
+        from rhodecode.lib.middleware.errormator import Errormator
+        if Errormator:
+            app = Errormator(app, config)
+        elif Sentry:
+            app = Sentry(app, config)
+
         # Handle Python exceptions
         app = ErrorHandler(app, global_conf, **config['pylons.errorware'])
 
--- a/rhodecode/config/rcextensions/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/config/rcextensions/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -75,18 +75,21 @@
 # POST PUSH HOOK
 #==============================================================================
 
-# this function will be executed after each push it's runned after the build-in
-# hook that rhodecode uses for logging pushes
+# this function will be executed after each push it's executed after the
+# build-in hook that RhodeCode uses for logging pushes
 def _pushhook(*args, **kwargs):
     """
     Post push hook
     kwargs available:
 
+      :param server_url: url of instance that triggered this hook
+      :param config: path to .ini config used
+      :param scm: type of VS 'git' or 'hg'
       :param username: name of user who pushed
       :param ip: ip of who pushed
-      :param action: pull
+      :param action: push
       :param repository: repository name
-      :param pushed_revs: generator of pushed revisions
+      :param pushed_revs: list of pushed revisions
     """
     return 0
 PUSH_HOOK = _pushhook
@@ -96,15 +99,18 @@
 # POST PULL HOOK
 #==============================================================================
 
-# this function will be executed after each push it's runned after the build-in
-# hook that rhodecode uses for logging pushes
+# this function will be executed after each push it's executed after the
+# build-in hook that RhodeCode uses for logging pulls
 def _pullhook(*args, **kwargs):
     """
     Post pull hook
     kwargs available::
 
+      :param server_url: url of instance that triggered this hook
+      :param config: path to .ini config used
+      :param scm: type of VS 'git' or 'hg'
       :param username: name of user who pulled
-      :param ip: ip of who pushed
+      :param ip: ip of who pulled
       :param action: pull
       :param repository: repository name
     """
--- a/rhodecode/config/routing.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/config/routing.py	Thu Dec 13 22:54:21 2012 +0100
@@ -32,6 +32,10 @@
         from rhodecode.model.db import Repository
         repo_name = match_dict.get('repo_name')
 
+        if match_dict.get('f_path'):
+            #fix for multiple initial slashes that causes errors
+            match_dict['f_path'] = match_dict['f_path'].lstrip('/')
+
         try:
             by_id = repo_name.split('_')
             if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '':
@@ -258,6 +262,10 @@
     rmap.resource('permission', 'permissions',
                   controller='admin/permissions', path_prefix=ADMIN_PREFIX)
 
+    #ADMIN DEFAULTS REST ROUTES
+    rmap.resource('default', 'defaults',
+                  controller='admin/defaults', path_prefix=ADMIN_PREFIX)
+
     ##ADMIN LDAP SETTINGS
     rmap.connect('ldap_settings', '%s/ldap' % ADMIN_PREFIX,
                  controller='admin/ldap_settings', action='ldap_settings',
@@ -347,6 +355,8 @@
         m.connect('api', '/api')
 
     #USER JOURNAL
+    rmap.connect('journal_my_repos', '%s/journal_my_repos' % ADMIN_PREFIX,
+                 controller='journal', action='index_my_repos')
     rmap.connect('journal', '%s/journal' % ADMIN_PREFIX,
                  controller='journal', action='index')
     rmap.connect('journal_rss', '%s/journal/rss' % ADMIN_PREFIX,
@@ -419,6 +429,28 @@
                 controller='changeset', revision='tip',
                 conditions=dict(function=check_repo))
 
+    #still working url for backward compat.
+    rmap.connect('raw_changeset_home_depraced',
+                 '/{repo_name:.*?}/raw-changeset/{revision}',
+                 controller='changeset', action='changeset_raw',
+                 revision='tip', conditions=dict(function=check_repo))
+
+    ## new URLs
+    rmap.connect('changeset_raw_home',
+                 '/{repo_name:.*?}/changeset-diff/{revision}',
+                 controller='changeset', action='changeset_raw',
+                 revision='tip', conditions=dict(function=check_repo))
+
+    rmap.connect('changeset_patch_home',
+                 '/{repo_name:.*?}/changeset-patch/{revision}',
+                 controller='changeset', action='changeset_patch',
+                 revision='tip', conditions=dict(function=check_repo))
+
+    rmap.connect('changeset_download_home',
+                 '/{repo_name:.*?}/changeset-download/{revision}',
+                 controller='changeset', action='changeset_download',
+                 revision='tip', conditions=dict(function=check_repo))
+
     rmap.connect('changeset_comment',
                  '/{repo_name:.*?}/changeset/{revision}/comment',
                 controller='changeset', revision='tip', action='comment',
@@ -429,13 +461,11 @@
                 controller='changeset', action='delete_comment',
                 conditions=dict(function=check_repo, method=["DELETE"]))
 
-    rmap.connect('raw_changeset_home',
-                 '/{repo_name:.*?}/raw-changeset/{revision}',
-                 controller='changeset', action='raw_changeset',
-                 revision='tip', conditions=dict(function=check_repo))
+    rmap.connect('changeset_info', '/changeset_info/{repo_name:.*?}/{revision}',
+                 controller='changeset', action='changeset_info')
 
     rmap.connect('compare_url',
-                 '/{repo_name:.*?}/compare/{org_ref_type}@{org_ref}...{other_ref_type}@{other_ref}',
+                 '/{repo_name:.*?}/compare/{org_ref_type}@{org_ref:.*?}...{other_ref_type}@{other_ref:.*?}',
                  controller='compare', action='index',
                  conditions=dict(function=check_repo),
                  requirements=dict(
@@ -492,6 +522,10 @@
     rmap.connect('shortlog_home', '/{repo_name:.*?}/shortlog',
                 controller='shortlog', conditions=dict(function=check_repo))
 
+    rmap.connect('shortlog_file_home', '/{repo_name:.*?}/shortlog/{revision}/{f_path:.*}',
+                controller='shortlog', f_path=None,
+                conditions=dict(function=check_repo))
+
     rmap.connect('branches_home', '/{repo_name:.*?}/branches',
                 controller='branches', conditions=dict(function=check_repo))
 
@@ -512,6 +546,11 @@
                 controller='files', revision='tip', f_path='',
                 conditions=dict(function=check_repo))
 
+    rmap.connect('files_history_home',
+                 '/{repo_name:.*?}/history/{revision}/{f_path:.*}',
+                 controller='files', action='history', revision='tip', f_path='',
+                 conditions=dict(function=check_repo))
+
     rmap.connect('files_diff_home', '/{repo_name:.*?}/diff/{f_path:.*}',
                 controller='files', action='diff', revision='tip', f_path='',
                 conditions=dict(function=check_repo))
--- a/rhodecode/config/setup_rhodecode.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/config/setup_rhodecode.py	Thu Dec 13 22:54:21 2012 +0100
@@ -50,6 +50,16 @@
                       dest='section_name',
                       default=None,
                       help='The name of the section to set up (default: app:main)')
+    parser.add_option('--force-yes',
+                       action='store_true',
+                       dest='force_ask',
+                       default=None,
+                       help='Force yes to every question')
+    parser.add_option('--force-no',
+                       action='store_false',
+                       dest='force_ask',
+                       default=None,
+                       help='Force no to every question')
 
     def command(self):
         config_spec = self.args[0]
@@ -61,7 +71,7 @@
                 section = 'main'
         if not ':' in section:
             plain_section = section
-            section = 'app:'+section
+            section = 'app:' + section
         else:
             plain_section = section.split(':', 1)[0]
         if not config_spec.startswith('config:'):
--- a/rhodecode/controllers/admin/admin.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/admin.py	Thu Dec 13 22:54:21 2012 +0100
@@ -25,18 +25,95 @@
 
 import logging
 
-from pylons import request, tmpl_context as c
+from pylons import request, tmpl_context as c, url
 from sqlalchemy.orm import joinedload
 from webhelpers.paginate import Page
+from whoosh.qparser.default import QueryParser
+from whoosh import query
+from sqlalchemy.sql.expression import or_, and_, func
 
 from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator
 from rhodecode.lib.base import BaseController, render
-from rhodecode.model.db import UserLog
-from rhodecode.lib.utils2 import safe_int
+from rhodecode.model.db import UserLog, User
+from rhodecode.lib.utils2 import safe_int, remove_prefix, remove_suffix
+from rhodecode.lib.indexers import JOURNAL_SCHEMA
+from whoosh.qparser.dateparse import DateParserPlugin
+
 
 log = logging.getLogger(__name__)
 
 
+def _journal_filter(user_log, search_term):
+    """
+    Filters sqlalchemy user_log based on search_term with whoosh Query language
+    http://packages.python.org/Whoosh/querylang.html
+
+    :param user_log:
+    :param search_term:
+    """
+    log.debug('Initial search term: %r' % search_term)
+    qry = None
+    if search_term:
+        qp = QueryParser('repository', schema=JOURNAL_SCHEMA)
+        qp.add_plugin(DateParserPlugin())
+        qry = qp.parse(unicode(search_term))
+        log.debug('Filtering using parsed query %r' % qry)
+
+    def wildcard_handler(col, wc_term):
+        if wc_term.startswith('*') and not wc_term.endswith('*'):
+            #postfix == endswith
+            wc_term = remove_prefix(wc_term, prefix='*')
+            return func.lower(col).endswith(wc_term)
+        elif wc_term.startswith('*') and wc_term.endswith('*'):
+            #wildcard == ilike
+            wc_term = remove_prefix(wc_term, prefix='*')
+            wc_term = remove_suffix(wc_term, suffix='*')
+            return func.lower(col).contains(wc_term)
+
+    def get_filterion(field, val, term):
+
+        if field == 'repository':
+            field = getattr(UserLog, 'repository_name')
+        elif field == 'ip':
+            field = getattr(UserLog, 'user_ip')
+        elif field == 'date':
+            field = getattr(UserLog, 'action_date')
+        elif field == 'username':
+            field = getattr(UserLog, 'username')
+        else:
+            field = getattr(UserLog, field)
+        log.debug('filter field: %s val=>%s' % (field, val))
+
+        #sql filtering
+        if isinstance(term, query.Wildcard):
+            return wildcard_handler(field, val)
+        elif isinstance(term, query.Prefix):
+            return func.lower(field).startswith(func.lower(val))
+        elif isinstance(term, query.DateRange):
+            return and_(field >= val[0], field <= val[1])
+        return func.lower(field) == func.lower(val)
+
+    if isinstance(qry, (query.And, query.Term, query.Prefix, query.Wildcard,
+                        query.DateRange)):
+        if not isinstance(qry, query.And):
+            qry = [qry]
+        for term in qry:
+            field = term.fieldname
+            val = (term.text if not isinstance(term, query.DateRange)
+                   else [term.startdate, term.enddate])
+            user_log = user_log.filter(get_filterion(field, val, term))
+    elif isinstance(qry, query.Or):
+        filters = []
+        for term in qry:
+            field = term.fieldname
+            val = (term.text if not isinstance(term, query.DateRange)
+                   else [term.startdate, term.enddate])
+            filters.append(get_filterion(field, val, term))
+        user_log = user_log.filter(or_(*filters))
+
+    return user_log
+
+
 class AdminController(BaseController):
 
     @LoginRequired()
@@ -45,14 +122,26 @@
 
     @HasPermissionAllDecorator('hg.admin')
     def index(self):
-
         users_log = UserLog.query()\
                 .options(joinedload(UserLog.user))\
-                .options(joinedload(UserLog.repository))\
-                .order_by(UserLog.action_date.desc())
+                .options(joinedload(UserLog.repository))
+
+        #FILTERING
+        c.search_term = request.GET.get('filter')
+        try:
+            users_log = _journal_filter(users_log, c.search_term)
+        except:
+            # we want this to crash for now
+            raise
+
+        users_log = users_log.order_by(UserLog.action_date.desc())
 
         p = safe_int(request.params.get('page', 1), 1)
-        c.users_log = Page(users_log, page=p, items_per_page=10)
+
+        def url_generator(**kw):
+            return url.current(filter=c.search_term, **kw)
+
+        c.users_log = Page(users_log, page=p, items_per_page=10, url=url_generator)
         c.log_data = render('admin/admin_log.html')
 
         if request.environ.get('HTTP_X_PARTIAL_XHR'):
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/controllers/admin/defaults.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,130 @@
+# -*- coding: utf-8 -*-
+"""
+    rhodecode.controllers.admin.defaults
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+    default settings controller for Rhodecode
+
+    :created_on: Apr 27, 2010
+    :author: marcink
+    :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
+"""
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+import logging
+import traceback
+import formencode
+from formencode import htmlfill
+
+from pylons import request, session, tmpl_context as c, url
+from pylons.controllers.util import abort, redirect
+from pylons.i18n.translation import _
+
+from rhodecode.lib import helpers as h
+from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator
+from rhodecode.lib.base import BaseController, render
+from rhodecode.model.forms import DefaultsForm
+from rhodecode.model.meta import Session
+from rhodecode import BACKENDS
+from rhodecode.model.db import RhodeCodeSetting
+
+log = logging.getLogger(__name__)
+
+
+class DefaultsController(BaseController):
+    """REST Controller styled on the Atom Publishing Protocol"""
+    # To properly map this controller, ensure your config/routing.py
+    # file has a resource setup:
+    #     map.resource('default', 'defaults')
+
+    @LoginRequired()
+    @HasPermissionAllDecorator('hg.admin')
+    def __before__(self):
+        super(DefaultsController, self).__before__()
+
+    def index(self, format='html'):
+        """GET /defaults: All items in the collection"""
+        # url('defaults')
+        c.backends = BACKENDS.keys()
+        defaults = RhodeCodeSetting.get_default_repo_settings()
+
+        return htmlfill.render(
+            render('admin/defaults/defaults.html'),
+            defaults=defaults,
+            encoding="UTF-8",
+            force_defaults=False
+        )
+
+    def create(self):
+        """POST /defaults: Create a new item"""
+        # url('defaults')
+
+    def new(self, format='html'):
+        """GET /defaults/new: Form to create a new item"""
+        # url('new_default')
+
+    def update(self, id):
+        """PUT /defaults/id: Update an existing item"""
+        # Forms posted to this method should contain a hidden field:
+        #    <input type="hidden" name="_method" value="PUT" />
+        # Or using helpers:
+        #    h.form(url('default', id=ID),
+        #           method='put')
+        # url('default', id=ID)
+
+        _form = DefaultsForm()()
+
+        try:
+            form_result = _form.to_python(dict(request.POST))
+            for k, v in form_result.iteritems():
+                setting = RhodeCodeSetting.get_by_name_or_create(k)
+                setting.app_settings_value = v
+                Session().add(setting)
+            Session().commit()
+            h.flash(_('Default settings updated successfully'),
+                    category='success')
+
+        except formencode.Invalid, errors:
+            defaults = errors.value
+
+            return htmlfill.render(
+                render('admin/defaults/defaults.html'),
+                defaults=defaults,
+                errors=errors.error_dict or {},
+                prefix_error=False,
+                encoding="UTF-8")
+        except Exception:
+            log.error(traceback.format_exc())
+            h.flash(_('error occurred during update of defaults'),
+                    category='error')
+
+        return redirect(url('defaults'))
+
+    def delete(self, id):
+        """DELETE /defaults/id: Delete an existing item"""
+        # Forms posted to this method should contain a hidden field:
+        #    <input type="hidden" name="_method" value="DELETE" />
+        # Or using helpers:
+        #    h.form(url('default', id=ID),
+        #           method='delete')
+        # url('default', id=ID)
+
+    def show(self, id, format='html'):
+        """GET /defaults/id: Show a specific item"""
+        # url('default', id=ID)
+
+    def edit(self, id, format='html'):
+        """GET /defaults/id/edit: Form to edit an existing item"""
+        # url('edit_default', id=ID)
--- a/rhodecode/controllers/admin/permissions.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/permissions.py	Thu Dec 13 22:54:21 2012 +0100
@@ -56,10 +56,14 @@
         c.admin_username = session.get('admin_username')
         super(PermissionsController, self).__before__()
 
-        self.perms_choices = [('repository.none', _('None'),),
-                              ('repository.read', _('Read'),),
-                              ('repository.write', _('Write'),),
-                              ('repository.admin', _('Admin'),)]
+        self.repo_perms_choices = [('repository.none', _('None'),),
+                                   ('repository.read', _('Read'),),
+                                   ('repository.write', _('Write'),),
+                                   ('repository.admin', _('Admin'),)]
+        self.group_perms_choices = [('group.none', _('None'),),
+                                    ('group.read', _('Read'),),
+                                    ('group.write', _('Write'),),
+                                    ('group.admin', _('Admin'),)]
         self.register_choices = [
             ('hg.register.none',
                 _('disabled')),
@@ -75,7 +79,8 @@
                              ('hg.fork.repository', _('Enabled'))]
 
         # set the global template variables
-        c.perms_choices = self.perms_choices
+        c.repo_perms_choices = self.repo_perms_choices
+        c.group_perms_choices = self.group_perms_choices
         c.register_choices = self.register_choices
         c.create_choices = self.create_choices
         c.fork_choices = self.fork_choices
@@ -103,7 +108,8 @@
 
         permission_model = PermissionModel()
 
-        _form = DefaultPermissionsForm([x[0] for x in self.perms_choices],
+        _form = DefaultPermissionsForm([x[0] for x in self.repo_perms_choices],
+                                       [x[0] for x in self.group_perms_choices],
                                        [x[0] for x in self.register_choices],
                                        [x[0] for x in self.create_choices],
                                        [x[0] for x in self.fork_choices])()
@@ -157,7 +163,10 @@
 
             for p in default_user.user_perms:
                 if p.permission.permission_name.startswith('repository.'):
-                    defaults['default_perm'] = p.permission.permission_name
+                    defaults['default_repo_perm'] = p.permission.permission_name
+
+                if p.permission.permission_name.startswith('group.'):
+                    defaults['default_group_perm'] = p.permission.permission_name
 
                 if p.permission.permission_name.startswith('hg.register.'):
                     defaults['default_register'] = p.permission.permission_name
--- a/rhodecode/controllers/admin/repos.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/repos.py	Thu Dec 13 22:54:21 2012 +0100
@@ -42,11 +42,13 @@
 from rhodecode.lib.utils import invalidate_cache, action_logger, repo_name_slug
 from rhodecode.lib.helpers import get_token
 from rhodecode.model.meta import Session
-from rhodecode.model.db import User, Repository, UserFollowing, RepoGroup
+from rhodecode.model.db import User, Repository, UserFollowing, RepoGroup,\
+    RhodeCodeSetting
 from rhodecode.model.forms import RepoForm
 from rhodecode.model.scm import ScmModel
 from rhodecode.model.repo import RepoModel
 from rhodecode.lib.compat import json
+from sqlalchemy.sql.expression import func
 
 log = logging.getLogger(__name__)
 
@@ -95,6 +97,7 @@
 
             return redirect(url('repos'))
 
+        ##override defaults for exact repo info here git/hg etc
         choices, c.landing_revs = ScmModel().get_repo_landing_revs(c.repo_info)
         c.landing_revs_choices = choices
 
@@ -134,7 +137,7 @@
         # url('repos')
 
         c.repos_list = Repository.query()\
-                        .order_by(Repository.repo_name)\
+                        .order_by(func.lower(Repository.repo_name))\
                         .all()
 
         repos_data = []
@@ -156,7 +159,7 @@
         for repo in c.repos_list:
             repos_data.append({
                 "menu": quick_menu(repo.repo_name),
-                "raw_name": repo.repo_name,
+                "raw_name": repo.repo_name.lower(),
                 "name": repo_lnk(repo.repo_name, repo.repo_type,
                                  repo.private, repo.fork),
                 "desc": repo.description,
@@ -237,7 +240,15 @@
         new_repo = request.GET.get('repo', '')
         c.new_repo = repo_name_slug(new_repo)
         self.__load_defaults()
-        return render('admin/repos/repo_add.html')
+        ## apply the defaults from defaults page
+        defaults = RhodeCodeSetting.get_default_repo_settings(strip_prefix=True)
+        return htmlfill.render(
+            render('admin/repos/repo_add.html'),
+            defaults=defaults,
+            errors={},
+            prefix_error=False,
+            encoding="UTF-8"
+        )
 
     @HasPermissionAllDecorator('hg.admin')
     def update(self, repo_name):
@@ -261,7 +272,7 @@
                          landing_revs=c.landing_revs_choices)()
         try:
             form_result = _form.to_python(dict(request.POST))
-            repo = repo_model.update(repo_name, form_result)
+            repo = repo_model.update(repo_name, **form_result)
             invalidate_cache('get_repo_cached_%s' % repo_name)
             h.flash(_('Repository %s updated successfully') % repo_name,
                     category='success')
--- a/rhodecode/controllers/admin/repos_groups.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/repos_groups.py	Thu Dec 13 22:54:21 2012 +0100
@@ -35,17 +35,20 @@
 
 from sqlalchemy.exc import IntegrityError
 
+import rhodecode
 from rhodecode.lib import helpers as h
+from rhodecode.lib.ext_json import json
 from rhodecode.lib.auth import LoginRequired, HasPermissionAnyDecorator,\
     HasReposGroupPermissionAnyDecorator
 from rhodecode.lib.base import BaseController, render
-from rhodecode.model.db import RepoGroup
+from rhodecode.model.db import RepoGroup, Repository
 from rhodecode.model.repos_group import ReposGroupModel
 from rhodecode.model.forms import ReposGroupForm
 from rhodecode.model.meta import Session
 from rhodecode.model.repo import RepoModel
 from webob.exc import HTTPInternalServerError, HTTPNotFound
 from rhodecode.lib.utils2 import str2bool
+from sqlalchemy.sql.expression import func
 
 log = logging.getLogger(__name__)
 
@@ -281,20 +284,66 @@
         # url('repos_group', id=ID)
 
         c.group = RepoGroup.get_or_404(id)
-
         c.group_repos = c.group.repositories.all()
 
         #overwrite our cached list with current filter
         gr_filter = c.group_repos
-        c.cached_repo_list = self.scm_model.get_repos(all_repos=gr_filter)
-
-        c.repos_list = c.cached_repo_list
-
         c.repo_cnt = 0
 
         groups = RepoGroup.query().order_by(RepoGroup.group_name)\
             .filter(RepoGroup.group_parent_id == id).all()
         c.groups = self.scm_model.get_repos_groups(groups)
+
+        if c.visual.lightweight_dashboard is False:
+            c.cached_repo_list = self.scm_model.get_repos(all_repos=gr_filter)
+
+            c.repos_list = c.cached_repo_list
+        ## lightweight version of dashboard
+        else:
+            c.repos_list = Repository.query()\
+                            .filter(Repository.group_id == id)\
+                            .order_by(func.lower(Repository.repo_name))\
+                            .all()
+            repos_data = []
+            total_records = len(c.repos_list)
+
+            _tmpl_lookup = rhodecode.CONFIG['pylons.app_globals'].mako_lookup
+            template = _tmpl_lookup.get_template('data_table/_dt_elements.html')
+
+            quick_menu = lambda repo_name: (template.get_def("quick_menu")
+                                            .render(repo_name, _=_, h=h, c=c))
+            repo_lnk = lambda name, rtype, private, fork_of: (
+                template.get_def("repo_name")
+                .render(name, rtype, private, fork_of, short_name=False,
+                        admin=False, _=_, h=h, c=c))
+            last_change = lambda last_change:  (template.get_def("last_change")
+                                           .render(last_change, _=_, h=h, c=c))
+            rss_lnk = lambda repo_name: (template.get_def("rss")
+                                           .render(repo_name, _=_, h=h, c=c))
+            atom_lnk = lambda repo_name: (template.get_def("atom")
+                                           .render(repo_name, _=_, h=h, c=c))
+
+            for repo in c.repos_list:
+                repos_data.append({
+                    "menu": quick_menu(repo.repo_name),
+                    "raw_name": repo.repo_name.lower(),
+                    "name": repo_lnk(repo.repo_name, repo.repo_type,
+                                     repo.private, repo.fork),
+                    "last_change": last_change(repo.last_db_change),
+                    "desc": repo.description,
+                    "owner": h.person(repo.user.username),
+                    "rss": rss_lnk(repo.repo_name),
+                    "atom": atom_lnk(repo.repo_name),
+                })
+
+            c.data = json.dumps({
+                "totalRecords": total_records,
+                "startIndex": 0,
+                "sort": "name",
+                "dir": "asc",
+                "records": repos_data
+            })
+
         return render('admin/repos_groups/repos_groups.html')
 
     @HasPermissionAnyDecorator('hg.admin')
--- a/rhodecode/controllers/admin/settings.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/settings.py	Thu Dec 13 22:54:21 2012 +0100
@@ -185,18 +185,23 @@
                 sett1 = RhodeCodeSetting.get_by_name_or_create('show_public_icon')
                 sett1.app_settings_value = \
                     form_result['rhodecode_show_public_icon']
+                Session().add(sett1)
 
                 sett2 = RhodeCodeSetting.get_by_name_or_create('show_private_icon')
                 sett2.app_settings_value = \
                     form_result['rhodecode_show_private_icon']
+                Session().add(sett2)
 
                 sett3 = RhodeCodeSetting.get_by_name_or_create('stylify_metatags')
                 sett3.app_settings_value = \
                     form_result['rhodecode_stylify_metatags']
+                Session().add(sett3)
 
-                Session().add(sett1)
-                Session().add(sett2)
-                Session().add(sett3)
+                sett4 = RhodeCodeSetting.get_by_name_or_create('lightweight_dashboard')
+                sett4.app_settings_value = \
+                    form_result['rhodecode_lightweight_dashboard']
+                Session().add(sett4)
+
                 Session().commit()
                 set_rhodecode_config(config)
                 h.flash(_('Updated visualisation settings'),
@@ -476,7 +481,15 @@
         new_repo = request.GET.get('repo', '')
         c.new_repo = repo_name_slug(new_repo)
 
-        return render('admin/repos/repo_add_create_repository.html')
+        ## apply the defaults from defaults page
+        defaults = RhodeCodeSetting.get_default_repo_settings(strip_prefix=True)
+        return htmlfill.render(
+            render('admin/repos/repo_add_create_repository.html'),
+            defaults=defaults,
+            errors={},
+            prefix_error=False,
+            encoding="UTF-8"
+        )
 
     def _get_hg_ui_settings(self):
         ret = RhodeCodeUi.query().all()
--- a/rhodecode/controllers/admin/users.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/users.py	Thu Dec 13 22:54:21 2012 +0100
@@ -158,13 +158,18 @@
         # url('user', id=ID)
         user_model = UserModel()
         c.user = user_model.get(id)
+        c.ldap_dn = c.user.ldap_dn
         c.perm_user = AuthUser(user_id=id)
         _form = UserForm(edit=True, old_data={'user_id': id,
                                               'email': c.user.email})()
         form_result = {}
         try:
             form_result = _form.to_python(dict(request.POST))
-            user_model.update(id, form_result)
+            skip_attrs = []
+            if c.ldap_dn:
+                #forbid updating username for ldap accounts
+                skip_attrs = ['username']
+            user_model.update(id, form_result, skip_attrs=skip_attrs)
             usr = form_result['username']
             action_logger(self.rhodecode_user, 'admin_updated_user:%s' % usr,
                           None, self.ip_addr, self.sa)
@@ -233,6 +238,7 @@
         c.user_email_map = UserEmailMap.query()\
                         .filter(UserEmailMap.user == c.user).all()
         user_model = UserModel()
+        c.ldap_dn = c.user.ldap_dn
         defaults = c.user.get_dict()
         defaults.update({
             'create_repo_perm': user_model.has_perm(id, 'hg.create.repository'),
--- a/rhodecode/controllers/admin/users_groups.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/admin/users_groups.py	Thu Dec 13 22:54:21 2012 +0100
@@ -40,10 +40,12 @@
 
 from rhodecode.model.users_group import UsersGroupModel
 
-from rhodecode.model.db import User, UsersGroup
+from rhodecode.model.db import User, UsersGroup, UsersGroupToPerm,\
+    UsersGroupRepoToPerm, UsersGroupRepoGroupToPerm
 from rhodecode.model.forms import UsersGroupForm
 from rhodecode.model.meta import Session
 from rhodecode.lib.utils import action_logger
+from sqlalchemy.orm import joinedload
 
 log = logging.getLogger(__name__)
 
@@ -102,6 +104,38 @@
         # url('new_users_group')
         return render('admin/users_groups/users_group_add.html')
 
+    def _load_data(self, id):
+        c.users_group.permissions = {
+            'repositories': {},
+            'repositories_groups': {}
+        }
+
+        ugroup_repo_perms = UsersGroupRepoToPerm.query()\
+            .options(joinedload(UsersGroupRepoToPerm.permission))\
+            .options(joinedload(UsersGroupRepoToPerm.repository))\
+            .filter(UsersGroupRepoToPerm.users_group_id == id)\
+            .all()
+
+        for gr in ugroup_repo_perms:
+            c.users_group.permissions['repositories'][gr.repository.repo_name]  \
+                = gr.permission.permission_name
+
+        ugroup_group_perms = UsersGroupRepoGroupToPerm.query()\
+            .options(joinedload(UsersGroupRepoGroupToPerm.permission))\
+            .options(joinedload(UsersGroupRepoGroupToPerm.group))\
+            .filter(UsersGroupRepoGroupToPerm.users_group_id == id)\
+            .all()
+
+        for gr in ugroup_group_perms:
+            c.users_group.permissions['repositories_groups'][gr.group.group_name] \
+                = gr.permission.permission_name
+
+        c.group_members_obj = [x.user for x in c.users_group.members]
+        c.group_members = [(x.user_id, x.username) for x in
+                           c.group_members_obj]
+        c.available_members = [(x.user_id, x.username) for x in
+                               User.query().all()]
+
     def update(self, id):
         """PUT /users_groups/id: Update an existing item"""
         # Forms posted to this method should contain a hidden field:
@@ -111,13 +145,8 @@
         #           method='put')
         # url('users_group', id=ID)
 
-        c.users_group = UsersGroup.get(id)
-        c.group_members_obj = [x.user for x in c.users_group.members]
-        c.group_members = [(x.user_id, x.username) for x in
-                           c.group_members_obj]
-
-        c.available_members = [(x.user_id, x.username) for x in
-                               User.query().all()]
+        c.users_group = UsersGroup.get_or_404(id)
+        self._load_data(id)
 
         available_members = [safe_unicode(x[0]) for x in c.available_members]
 
@@ -189,13 +218,8 @@
         # url('edit_users_group', id=ID)
 
         c.users_group = UsersGroup.get_or_404(id)
+        self._load_data(id)
 
-        c.users_group.permissions = {}
-        c.group_members_obj = [x.user for x in c.users_group.members]
-        c.group_members = [(x.user_id, x.username) for x in
-                           c.group_members_obj]
-        c.available_members = [(x.user_id, x.username) for x in
-                               User.query().all()]
         ug_model = UsersGroupModel()
         defaults = c.users_group.get_dict()
         defaults.update({
--- a/rhodecode/controllers/api/api.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/api/api.py	Thu Dec 13 22:54:21 2012 +0100
@@ -770,7 +770,6 @@
                 success=True
             )
         except Exception:
-            print traceback.format_exc()
             log.error(traceback.format_exc())
             raise JSONRPCError(
                 'failed to edit permission for users group: `%s` in '
--- a/rhodecode/controllers/changeset.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/changeset.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,16 +26,15 @@
 import logging
 import traceback
 from collections import defaultdict
-from webob.exc import HTTPForbidden
+from webob.exc import HTTPForbidden, HTTPBadRequest
 
 from pylons import tmpl_context as c, url, request, response
 from pylons.i18n.translation import _
 from pylons.controllers.util import redirect
-from pylons.decorators import jsonify
+from rhodecode.lib.utils import jsonify
 
-from rhodecode.lib.vcs.exceptions import RepositoryError, ChangesetError, \
+from rhodecode.lib.vcs.exceptions import RepositoryError, \
     ChangesetDoesNotExistError
-from rhodecode.lib.vcs.nodes import FileNode
 
 import rhodecode.lib.helpers as h
 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
@@ -47,10 +46,11 @@
 from rhodecode.model.comment import ChangesetCommentsModel
 from rhodecode.model.changeset_status import ChangesetStatusModel
 from rhodecode.model.meta import Session
-from rhodecode.lib.diffs import wrapped_diff
 from rhodecode.model.repo import RepoModel
+from rhodecode.lib.diffs import LimitedDiffContainer
 from rhodecode.lib.exceptions import StatusChangeOnClosedPullRequestError
 from rhodecode.lib.vcs.backends.base import EmptyChangeset
+from rhodecode.lib.utils2 import safe_unicode
 
 log = logging.getLogger(__name__)
 
@@ -109,7 +109,13 @@
 
 def get_line_ctx(fid, GET):
     ln_ctx_global = GET.get('context')
-    ln_ctx = filter(lambda k: k.startswith('C'), GET.getall(fid))
+    if fid:
+        ln_ctx = filter(lambda k: k.startswith('C'), GET.getall(fid))
+    else:
+        _ln_ctx = filter(lambda k: k.startswith('C'), GET)
+        ln_ctx = GET.get(_ln_ctx[0]) if _ln_ctx  else ln_ctx_global
+        if ln_ctx:
+            ln_ctx = [ln_ctx]
 
     if ln_ctx:
         retval = ln_ctx[0].split(':')[-1]
@@ -119,7 +125,7 @@
     try:
         return int(retval)
     except:
-        return
+        return 3
 
 
 def _context_url(GET, fileid=None):
@@ -173,12 +179,11 @@
         c.users_array = repo_model.get_users_js()
         c.users_groups_array = repo_model.get_users_groups_js()
 
-    def index(self, revision):
-
+    def index(self, revision, method='show'):
         c.anchor_url = anchor_url
         c.ignorews_url = _ignorews_url
         c.context_url = _context_url
-        limit_off = request.GET.get('fulldiff')
+        c.fulldiff = fulldiff = request.GET.get('fulldiff')
         #get ranges of revisions if preset
         rev_range = revision.split('...')[:2]
         enable_comments = True
@@ -188,7 +193,7 @@
                 rev_start = rev_range[0]
                 rev_end = rev_range[1]
                 rev_ranges = c.rhodecode_repo.get_changesets(start=rev_start,
-                                                            end=rev_end)
+                                                             end=rev_end)
             else:
                 rev_ranges = [c.rhodecode_repo.get_changeset(revision)]
 
@@ -206,95 +211,63 @@
         c.lines_added = 0  # count of lines added
         c.lines_deleted = 0  # count of lines removes
 
-        cumulative_diff = 0
-        c.cut_off = False  # defines if cut off limit is reached
         c.changeset_statuses = ChangesetStatus.STATUSES
         c.comments = []
         c.statuses = []
         c.inline_comments = []
         c.inline_cnt = 0
+
         # Iterate over ranges (default changeset view is always one changeset)
         for changeset in c.cs_ranges:
-
-            c.statuses.extend([ChangesetStatusModel()\
-                              .get_status(c.rhodecode_db_repo.repo_id,
-                                          changeset.raw_id)])
+            inlines = []
+            if method == 'show':
+                c.statuses.extend([ChangesetStatusModel()\
+                                  .get_status(c.rhodecode_db_repo.repo_id,
+                                              changeset.raw_id)])
 
-            c.comments.extend(ChangesetCommentsModel()\
-                              .get_comments(c.rhodecode_db_repo.repo_id,
-                                            revision=changeset.raw_id))
-            inlines = ChangesetCommentsModel()\
-                        .get_inline_comments(c.rhodecode_db_repo.repo_id,
-                                             revision=changeset.raw_id)
-            c.inline_comments.extend(inlines)
+                c.comments.extend(ChangesetCommentsModel()\
+                                  .get_comments(c.rhodecode_db_repo.repo_id,
+                                                revision=changeset.raw_id))
+                inlines = ChangesetCommentsModel()\
+                            .get_inline_comments(c.rhodecode_db_repo.repo_id,
+                                                 revision=changeset.raw_id)
+                c.inline_comments.extend(inlines)
+
             c.changes[changeset.raw_id] = []
-            try:
-                changeset_parent = changeset.parents[0]
-            except IndexError:
-                changeset_parent = None
+
+            cs2 = changeset.raw_id
+            cs1 = changeset.parents[0].raw_id if changeset.parents else EmptyChangeset()
+            context_lcl = get_line_ctx('', request.GET)
+            ign_whitespace_lcl = ign_whitespace_lcl = get_ignore_ws('', request.GET)
 
-            #==================================================================
-            # ADDED FILES
-            #==================================================================
-            for node in changeset.added:
-                fid = h.FID(revision, node.path)
-                line_context_lcl = get_line_ctx(fid, request.GET)
-                ign_whitespace_lcl = get_ignore_ws(fid, request.GET)
-                lim = self.cut_off_limit
-                if cumulative_diff > self.cut_off_limit:
-                    lim = -1 if limit_off is None else None
-                size, cs1, cs2, diff, st = wrapped_diff(
-                    filenode_old=None,
-                    filenode_new=node,
-                    cut_off_limit=lim,
-                    ignore_whitespace=ign_whitespace_lcl,
-                    line_context=line_context_lcl,
-                    enable_comments=enable_comments
-                )
-                cumulative_diff += size
-                c.lines_added += st[0]
-                c.lines_deleted += st[1]
-                c.changes[changeset.raw_id].append(
-                    ('added', node, diff, cs1, cs2, st)
-                )
-
-            #==================================================================
-            # CHANGED FILES
-            #==================================================================
-            for node in changeset.changed:
-                try:
-                    filenode_old = changeset_parent.get_node(node.path)
-                except ChangesetError:
-                    log.warning('Unable to fetch parent node for diff')
-                    filenode_old = FileNode(node.path, '', EmptyChangeset())
-
-                fid = h.FID(revision, node.path)
-                line_context_lcl = get_line_ctx(fid, request.GET)
-                ign_whitespace_lcl = get_ignore_ws(fid, request.GET)
-                lim = self.cut_off_limit
-                if cumulative_diff > self.cut_off_limit:
-                    lim = -1 if limit_off is None else None
-                size, cs1, cs2, diff, st = wrapped_diff(
-                    filenode_old=filenode_old,
-                    filenode_new=node,
-                    cut_off_limit=lim,
-                    ignore_whitespace=ign_whitespace_lcl,
-                    line_context=line_context_lcl,
-                    enable_comments=enable_comments
-                )
-                cumulative_diff += size
-                c.lines_added += st[0]
-                c.lines_deleted += st[1]
-                c.changes[changeset.raw_id].append(
-                    ('changed', node, diff, cs1, cs2, st)
-                )
-            #==================================================================
-            # REMOVED FILES
-            #==================================================================
-            for node in changeset.removed:
-                c.changes[changeset.raw_id].append(
-                    ('removed', node, None, None, None, (0, 0))
-                )
+            _diff = c.rhodecode_repo.get_diff(cs1, cs2,
+                ignore_whitespace=ign_whitespace_lcl, context=context_lcl)
+            diff_limit = self.cut_off_limit if not fulldiff else None
+            diff_processor = diffs.DiffProcessor(_diff,
+                                                 vcs=c.rhodecode_repo.alias,
+                                                 format='gitdiff',
+                                                 diff_limit=diff_limit)
+            cs_changes = OrderedDict()
+            if method == 'show':
+                _parsed = diff_processor.prepare()
+                c.limited_diff = False
+                if isinstance(_parsed, LimitedDiffContainer):
+                    c.limited_diff = True
+                for f in _parsed:
+                    st = f['stats']
+                    if st[0] != 'b':
+                        c.lines_added += st[0]
+                        c.lines_deleted += st[1]
+                    fid = h.FID(changeset.raw_id, f['filename'])
+                    diff = diff_processor.as_html(enable_comments=enable_comments,
+                                                  parsed_lines=[f])
+                    cs_changes[fid] = [cs1, cs2, f['operation'], f['filename'],
+                                       diff, st]
+            else:
+                # downloads/raw we only need RAW diff nothing else
+                diff = diff_processor.as_raw()
+                cs_changes[''] = [None, None, None, None, diff, None]
+            c.changes[changeset.raw_id] = cs_changes
 
         # count inline comments
         for __, lines in c.inline_comments:
@@ -303,74 +276,34 @@
 
         if len(c.cs_ranges) == 1:
             c.changeset = c.cs_ranges[0]
-            c.changes = c.changes[c.changeset.raw_id]
-
-            return render('changeset/changeset.html')
-        else:
-            return render('changeset/changeset_range.html')
-
-    def raw_changeset(self, revision):
-
-        method = request.GET.get('diff', 'show')
-        ignore_whitespace = request.GET.get('ignorews') == '1'
-        line_context = request.GET.get('context', 3)
-        try:
-            c.scm_type = c.rhodecode_repo.alias
-            c.changeset = c.rhodecode_repo.get_changeset(revision)
-        except RepositoryError:
-            log.error(traceback.format_exc())
-            return redirect(url('home'))
-        else:
-            try:
-                c.changeset_parent = c.changeset.parents[0]
-            except IndexError:
-                c.changeset_parent = None
-            c.changes = []
+            c.parent_tmpl = ''.join(['# Parent  %s\n' % x.raw_id
+                                     for x in c.changeset.parents])
+        if method == 'download':
+            response.content_type = 'text/plain'
+            response.content_disposition = 'attachment; filename=%s.diff' \
+                                            % revision[:12]
+            return diff
+        elif method == 'patch':
+            response.content_type = 'text/plain'
+            c.diff = safe_unicode(diff)
+            return render('changeset/patch_changeset.html')
+        elif method == 'raw':
+            response.content_type = 'text/plain'
+            return diff
+        elif method == 'show':
+            if len(c.cs_ranges) == 1:
+                return render('changeset/changeset.html')
+            else:
+                return render('changeset/changeset_range.html')
 
-            for node in c.changeset.added:
-                filenode_old = FileNode(node.path, '')
-                if filenode_old.is_binary or node.is_binary:
-                    diff = _('binary file') + '\n'
-                else:
-                    f_gitdiff = diffs.get_gitdiff(filenode_old, node,
-                                           ignore_whitespace=ignore_whitespace,
-                                           context=line_context)
-                    diff = diffs.DiffProcessor(f_gitdiff,
-                                                format='gitdiff').raw_diff()
-
-                cs1 = None
-                cs2 = node.changeset.raw_id
-                c.changes.append(('added', node, diff, cs1, cs2))
+    def changeset_raw(self, revision):
+        return self.index(revision, method='raw')
 
-            for node in c.changeset.changed:
-                filenode_old = c.changeset_parent.get_node(node.path)
-                if filenode_old.is_binary or node.is_binary:
-                    diff = _('binary file')
-                else:
-                    f_gitdiff = diffs.get_gitdiff(filenode_old, node,
-                                           ignore_whitespace=ignore_whitespace,
-                                           context=line_context)
-                    diff = diffs.DiffProcessor(f_gitdiff,
-                                                format='gitdiff').raw_diff()
-
-                cs1 = filenode_old.changeset.raw_id
-                cs2 = node.changeset.raw_id
-                c.changes.append(('changed', node, diff, cs1, cs2))
+    def changeset_patch(self, revision):
+        return self.index(revision, method='patch')
 
-        response.content_type = 'text/plain'
-
-        if method == 'download':
-            response.content_disposition = 'attachment; filename=%s.patch' \
-                                            % revision
-
-        c.parent_tmpl = ''.join(['# Parent  %s\n' % x.raw_id
-                                 for x in c.changeset.parents])
-
-        c.diffs = ''
-        for x in c.changes:
-            c.diffs += x[2]
-
-        return render('changeset/raw_changeset.html')
+    def changeset_download(self, revision):
+        return self.index(revision, method='download')
 
     @jsonify
     def comment(self, repo_name, revision):
@@ -445,3 +378,13 @@
             return True
         else:
             raise HTTPForbidden()
+
+    @jsonify
+    def changeset_info(self, repo_name, revision):
+        if request.is_xhr:
+            try:
+                return c.rhodecode_repo.get_changeset(revision)
+            except ChangesetDoesNotExistError, e:
+                return EmptyChangeset(message=str(e))
+        else:
+            raise HTTPBadRequest()
--- a/rhodecode/controllers/compare.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/compare.py	Thu Dec 13 22:54:21 2012 +0100
@@ -41,6 +41,8 @@
 from rhodecode.model.pull_request import PullRequestModel
 from webob.exc import HTTPBadRequest
 from rhodecode.lib.utils2 import str2bool
+from rhodecode.lib.diffs import LimitedDiffContainer
+from rhodecode.lib.vcs.backends.base import EmptyChangeset
 
 log = logging.getLogger(__name__)
 
@@ -87,13 +89,16 @@
         org_ref = (org_ref_type, org_ref)
         other_ref = (other_ref_type, other_ref)
         other_repo = request.GET.get('repo', org_repo)
-        bundle_compare = str2bool(request.GET.get('bundle', True))
+        incoming_changesets = str2bool(request.GET.get('bundle', False))
+        c.fulldiff = fulldiff = request.GET.get('fulldiff')
+        rev_start = request.GET.get('rev_start')
+        rev_end = request.GET.get('rev_end')
 
         c.swap_url = h.url('compare_url', repo_name=other_repo,
               org_ref_type=other_ref[0], org_ref=other_ref[1],
               other_ref_type=org_ref[0], other_ref=org_ref[1],
               repo=org_repo, as_form=request.GET.get('as_form'),
-              bundle=bundle_compare)
+              bundle=incoming_changesets)
 
         c.org_repo = org_repo = Repository.get_by_repo_name(org_repo)
         c.other_repo = other_repo = Repository.get_by_repo_name(other_repo)
@@ -102,15 +107,25 @@
             log.error('Could not found repo %s or %s' % (org_repo, other_repo))
             raise HTTPNotFound
 
-        if c.org_repo.scm_instance.alias != 'hg':
-            log.error('Review not available for GIT REPOS')
+        if c.org_repo != c.other_repo and h.is_git(c.rhodecode_repo):
+            log.error('compare of two remote repos not available for GIT REPOS')
             raise HTTPNotFound
+
+        if c.org_repo.scm_instance.alias != c.other_repo.scm_instance.alias:
+            log.error('compare of two different kind of remote repos not available')
+            raise HTTPNotFound
+
         partial = request.environ.get('HTTP_X_PARTIAL_XHR')
         self.__get_cs_or_redirect(rev=org_ref, repo=org_repo, partial=partial)
         self.__get_cs_or_redirect(rev=other_ref, repo=other_repo, partial=partial)
 
+        if rev_start and rev_end:
+            #replace our org_ref with given CS
+            org_ref = ('rev', rev_start)
+            other_ref = ('rev', rev_end)
+
         c.cs_ranges, discovery_data = PullRequestModel().get_compare_data(
-                                    org_repo, org_ref, other_repo, other_ref
+                                    org_repo, org_ref, other_repo, other_ref,
                                     )
 
         c.statuses = c.rhodecode_db_repo.statuses([x.raw_id for x in
@@ -121,28 +136,46 @@
         if partial:
             return render('compare/compare_cs.html')
 
-        if not bundle_compare and c.cs_ranges:
-            # case we want a simple diff without incoming changesets, just
-            # for review purposes. Make the diff on the forked repo, with
-            # revision that is common ancestor
-            other_ref = ('rev', c.cs_ranges[-1].parents[0].raw_id)
-            other_repo = org_repo
-
         c.org_ref = org_ref[1]
         c.other_ref = other_ref[1]
 
-        _diff = diffs.differ(other_repo, other_ref, org_repo, org_ref,
-                             discovery_data, bundle_compare=bundle_compare)
-        diff_processor = diffs.DiffProcessor(_diff, format='gitdiff')
+        if not incoming_changesets and c.cs_ranges and c.org_repo != c.other_repo:
+            # case we want a simple diff without incoming changesets, just
+            # for review purposes. Make the diff on the forked repo, with
+            # revision that is common ancestor
+            _org_ref = org_ref
+            org_ref = ('rev', getattr(c.cs_ranges[0].parents[0]
+                                      if c.cs_ranges[0].parents
+                                      else EmptyChangeset(), 'raw_id'))
+            log.debug('Changed org_ref from %s to %s' % (_org_ref, org_ref))
+            other_repo = org_repo
+
+        diff_limit = self.cut_off_limit if not fulldiff else None
+
+        _diff = diffs.differ(org_repo, org_ref, other_repo, other_ref,
+                             discovery_data,
+                             remote_compare=incoming_changesets)
+
+        diff_processor = diffs.DiffProcessor(_diff or '', format='gitdiff',
+                                             diff_limit=diff_limit)
         _parsed = diff_processor.prepare()
 
+        c.limited_diff = False
+        if isinstance(_parsed, LimitedDiffContainer):
+            c.limited_diff = True
+
         c.files = []
         c.changes = {}
-
+        c.lines_added = 0
+        c.lines_deleted = 0
         for f in _parsed:
+            st = f['stats']
+            if st[0] != 'b':
+                c.lines_added += st[0]
+                c.lines_deleted += st[1]
             fid = h.FID('', f['filename'])
             c.files.append([fid, f['operation'], f['filename'], f['stats']])
-            diff = diff_processor.as_html(enable_comments=False, diff_lines=[f])
+            diff = diff_processor.as_html(enable_comments=False, parsed_lines=[f])
             c.changes[fid] = [f['operation'], f['filename'], diff]
 
         return render('compare/compare_diff.html')
--- a/rhodecode/controllers/feed.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/feed.py	Thu Dec 13 22:54:21 2012 +0100
@@ -28,12 +28,15 @@
 from pylons import url, response, tmpl_context as c
 from pylons.i18n.translation import _
 
+from beaker.cache import cache_region, region_invalidate
 from webhelpers.feedgenerator import Atom1Feed, Rss201rev2Feed
 
 from rhodecode.lib import helpers as h
 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
 from rhodecode.lib.base import BaseRepoController
-from rhodecode.lib.diffs import DiffProcessor
+from rhodecode.lib.diffs import DiffProcessor, LimitedDiffContainer
+from rhodecode.model.db import CacheInvalidation
+from rhodecode.lib.utils2 import safe_int, str2bool
 
 log = logging.getLogger(__name__)
 
@@ -50,7 +53,13 @@
         self.title = self.title = _('%s %s feed') % (c.rhodecode_name, '%s')
         self.language = 'en-us'
         self.ttl = "5"
-        self.feed_nr = 20
+        import rhodecode
+        CONF = rhodecode.CONFIG
+        self.include_diff = str2bool(CONF.get('rss_include_diff', False))
+        self.feed_nr = safe_int(CONF.get('rss_items_per_page', 20))
+        # we need to protect from parsing huge diffs here other way
+        # we can kill the server
+        self.feed_diff_limit = safe_int(CONF.get('rss_cut_off_limit', 32 * 1024))
 
     def _get_title(self, cs):
         return "%s" % (
@@ -59,76 +68,115 @@
 
     def __changes(self, cs):
         changes = []
-        _diff = cs.diff()
-        # we need to protect from parsing huge diffs here other way
-        # we can kill the server, 32*1024 chars is a reasonable limit
-        HUGE_DIFF = 32 * 1024
-        if len(_diff) > HUGE_DIFF:
-            changes = ['\n ' + _('Changeset was too big and was cut off...')]
-            return changes
-        diffprocessor = DiffProcessor(_diff)
-        stats = diffprocessor.prepare(inline_diff=False)
-        for st in stats:
+        diff_processor = DiffProcessor(cs.diff(),
+                                       diff_limit=self.feed_diff_limit)
+        _parsed = diff_processor.prepare(inline_diff=False)
+        limited_diff = False
+        if isinstance(_parsed, LimitedDiffContainer):
+            limited_diff = True
+
+        for st in _parsed:
             st.update({'added': st['stats'][0],
                        'removed': st['stats'][1]})
             changes.append('\n %(operation)s %(filename)s '
                            '(%(added)s lines added, %(removed)s lines removed)'
                             % st)
-        return changes
+        if limited_diff:
+            changes = changes + ['\n ' +
+                                 _('Changeset was too big and was cut off...')]
+        return diff_processor, changes
 
     def __get_desc(self, cs):
         desc_msg = []
-        desc_msg.append('%s %s %s:<br/>' % (cs.author, _('commited on'),
+        desc_msg.append('%s %s %s<br/>' % (h.person(cs.author),
+                                           _('commited on'),
                                            h.fmt_date(cs.date)))
+        #branches, tags, bookmarks
+        if cs.branch:
+            desc_msg.append('branch: %s<br/>' % cs.branch)
+        if h.is_hg(c.rhodecode_repo):
+            for book in cs.bookmarks:
+                desc_msg.append('bookmark: %s<br/>' % book)
+        for tag in cs.tags:
+            desc_msg.append('tag: %s<br/>' % tag)
+        diff_processor, changes = self.__changes(cs)
+        # rev link
+        _url = url('changeset_home', repo_name=cs.repository.name,
+                   revision=cs.raw_id, qualified=True)
+        desc_msg.append('changesest: <a href="%s">%s</a>' % (_url, cs.raw_id[:8]))
+
         desc_msg.append('<pre>')
         desc_msg.append(cs.message)
         desc_msg.append('\n')
-        desc_msg.extend(self.__changes(cs))
+        desc_msg.extend(changes)
+        if self.include_diff:
+            desc_msg.append('\n\n')
+            desc_msg.append(diff_processor.as_raw())
         desc_msg.append('</pre>')
         return desc_msg
 
     def atom(self, repo_name):
         """Produce an atom-1.0 feed via feedgenerator module"""
-        feed = Atom1Feed(
-             title=self.title % repo_name,
-             link=url('summary_home', repo_name=repo_name,
-                      qualified=True),
-             description=self.description % repo_name,
-             language=self.language,
-             ttl=self.ttl
-        )
+
+        @cache_region('long_term')
+        def _get_feed_from_cache(key):
+            feed = Atom1Feed(
+                 title=self.title % repo_name,
+                 link=url('summary_home', repo_name=repo_name,
+                          qualified=True),
+                 description=self.description % repo_name,
+                 language=self.language,
+                 ttl=self.ttl
+            )
 
-        for cs in reversed(list(c.rhodecode_repo[-self.feed_nr:])):
-            feed.add_item(title=self._get_title(cs),
-                          link=url('changeset_home', repo_name=repo_name,
-                                   revision=cs.raw_id, qualified=True),
-                          author_name=cs.author,
-                          description=''.join(self.__get_desc(cs)),
-                          pubdate=cs.date,
-                          )
+            for cs in reversed(list(c.rhodecode_repo[-self.feed_nr:])):
+                feed.add_item(title=self._get_title(cs),
+                              link=url('changeset_home', repo_name=repo_name,
+                                       revision=cs.raw_id, qualified=True),
+                              author_name=cs.author,
+                              description=''.join(self.__get_desc(cs)),
+                              pubdate=cs.date,
+                              )
 
-        response.content_type = feed.mime_type
-        return feed.writeString('utf-8')
+            response.content_type = feed.mime_type
+            return feed.writeString('utf-8')
+
+        key = repo_name + '_ATOM'
+        inv = CacheInvalidation.invalidate(key)
+        if inv is not None:
+            region_invalidate(_get_feed_from_cache, None, key)
+            CacheInvalidation.set_valid(inv.cache_key)
+        return _get_feed_from_cache(key)
 
     def rss(self, repo_name):
         """Produce an rss2 feed via feedgenerator module"""
-        feed = Rss201rev2Feed(
-            title=self.title % repo_name,
-            link=url('summary_home', repo_name=repo_name,
-                     qualified=True),
-            description=self.description % repo_name,
-            language=self.language,
-            ttl=self.ttl
-        )
+
+        @cache_region('long_term')
+        def _get_feed_from_cache(key):
+            feed = Rss201rev2Feed(
+                title=self.title % repo_name,
+                link=url('summary_home', repo_name=repo_name,
+                         qualified=True),
+                description=self.description % repo_name,
+                language=self.language,
+                ttl=self.ttl
+            )
 
-        for cs in reversed(list(c.rhodecode_repo[-self.feed_nr:])):
-            feed.add_item(title=self._get_title(cs),
-                          link=url('changeset_home', repo_name=repo_name,
-                                   revision=cs.raw_id, qualified=True),
-                          author_name=cs.author,
-                          description=''.join(self.__get_desc(cs)),
-                          pubdate=cs.date,
-                         )
+            for cs in reversed(list(c.rhodecode_repo[-self.feed_nr:])):
+                feed.add_item(title=self._get_title(cs),
+                              link=url('changeset_home', repo_name=repo_name,
+                                       revision=cs.raw_id, qualified=True),
+                              author_name=cs.author,
+                              description=''.join(self.__get_desc(cs)),
+                              pubdate=cs.date,
+                             )
 
-        response.content_type = feed.mime_type
-        return feed.writeString('utf-8')
+            response.content_type = feed.mime_type
+            return feed.writeString('utf-8')
+
+        key = repo_name + '_RSS'
+        inv = CacheInvalidation.invalidate(key)
+        if inv is not None:
+            region_invalidate(_get_feed_from_cache, None, key)
+            CacheInvalidation.set_valid(inv.cache_key)
+        return _get_feed_from_cache(key)
--- a/rhodecode/controllers/files.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/files.py	Thu Dec 13 22:54:21 2012 +0100
@@ -31,20 +31,22 @@
 from pylons import request, response, tmpl_context as c, url
 from pylons.i18n.translation import _
 from pylons.controllers.util import redirect
-from pylons.decorators import jsonify
+from rhodecode.lib.utils import jsonify
 
 from rhodecode.lib import diffs
 from rhodecode.lib import helpers as h
 
 from rhodecode.lib.compat import OrderedDict
-from rhodecode.lib.utils2 import convert_line_endings, detect_mode, safe_str
+from rhodecode.lib.utils2 import convert_line_endings, detect_mode, safe_str,\
+    str2bool
 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
 from rhodecode.lib.base import BaseRepoController, render
 from rhodecode.lib.vcs.backends.base import EmptyChangeset
 from rhodecode.lib.vcs.conf import settings
 from rhodecode.lib.vcs.exceptions import RepositoryError, \
     ChangesetDoesNotExistError, EmptyRepositoryError, \
-    ImproperArchiveTypeError, VCSError, NodeAlreadyExistsError
+    ImproperArchiveTypeError, VCSError, NodeAlreadyExistsError,\
+    NodeDoesNotExistError, ChangesetError, NodeError
 from rhodecode.lib.vcs.nodes import FileNode
 
 from rhodecode.model.repo import RepoModel
@@ -153,9 +155,16 @@
             c.file = c.changeset.get_node(f_path)
 
             if c.file.is_file():
-                _hist = c.changeset.get_file_history(f_path)
-                c.file_history = self._get_node_history(c.changeset, f_path,
-                                                        _hist)
+                c.load_full_history = False
+                file_last_cs = c.file.last_changeset
+                c.file_changeset = (c.changeset
+                                    if c.changeset.revision < file_last_cs.revision
+                                    else file_last_cs)
+                _hist = []
+                c.file_history = []
+                if c.load_full_history:
+                    c.file_history, _hist = self._get_node_history(c.changeset, f_path)
+
                 c.authors = []
                 for a in set([x.author for x in _hist]):
                     c.authors.append((h.email(a), h.person(a)))
@@ -171,6 +180,23 @@
 
         return render('files/files.html')
 
+    def history(self, repo_name, revision, f_path, annotate=False):
+        if request.environ.get('HTTP_X_PARTIAL_XHR'):
+            c.changeset = self.__get_cs_or_redirect(revision, repo_name)
+            c.f_path = f_path
+            c.annotate = annotate
+            c.file = c.changeset.get_node(f_path)
+            if c.file.is_file():
+                file_last_cs = c.file.last_changeset
+                c.file_changeset = (c.changeset
+                                    if c.changeset.revision < file_last_cs.revision
+                                    else file_last_cs)
+                c.file_history, _hist = self._get_node_history(c.changeset, f_path)
+                c.authors = []
+                for a in set([x.author for x in _hist]):
+                    c.authors.append((h.email(a), h.person(a)))
+                return render('files/files_history_box.html')
+
     @LoginRequired()
     @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
                                    'repository.admin')
@@ -430,21 +456,47 @@
         c.context_url = _context_url
         c.changes = OrderedDict()
         c.changes[diff2] = []
+
+        #special case if we want a show rev only, it's impl here
+        #to reduce JS and callbacks
+
+        if request.GET.get('show_rev'):
+            if str2bool(request.GET.get('annotate', 'False')):
+                _url = url('files_annotate_home', repo_name=c.repo_name,
+                           revision=diff1, f_path=c.f_path)
+            else:
+                _url = url('files_home', repo_name=c.repo_name,
+                           revision=diff1, f_path=c.f_path)
+
+            return redirect(_url)
         try:
             if diff1 not in ['', None, 'None', '0' * 12, '0' * 40]:
                 c.changeset_1 = c.rhodecode_repo.get_changeset(diff1)
-                node1 = c.changeset_1.get_node(f_path)
+                try:
+                    node1 = c.changeset_1.get_node(f_path)
+                except NodeDoesNotExistError:
+                    c.changeset_1 = EmptyChangeset(cs=diff1,
+                                                   revision=c.changeset_1.revision,
+                                                   repo=c.rhodecode_repo)
+                    node1 = FileNode(f_path, '', changeset=c.changeset_1)
             else:
                 c.changeset_1 = EmptyChangeset(repo=c.rhodecode_repo)
-                node1 = FileNode('.', '', changeset=c.changeset_1)
+                node1 = FileNode(f_path, '', changeset=c.changeset_1)
 
             if diff2 not in ['', None, 'None', '0' * 12, '0' * 40]:
                 c.changeset_2 = c.rhodecode_repo.get_changeset(diff2)
-                node2 = c.changeset_2.get_node(f_path)
+                try:
+                    node2 = c.changeset_2.get_node(f_path)
+                except NodeDoesNotExistError:
+                    c.changeset_2 = EmptyChangeset(cs=diff2,
+                                                   revision=c.changeset_2.revision,
+                                                   repo=c.rhodecode_repo)
+                    node2 = FileNode(f_path, '', changeset=c.changeset_2)
             else:
                 c.changeset_2 = EmptyChangeset(repo=c.rhodecode_repo)
-                node2 = FileNode('.', '', changeset=c.changeset_2)
-        except RepositoryError:
+                node2 = FileNode(f_path, '', changeset=c.changeset_2)
+        except (RepositoryError, NodeError):
+            log.error(traceback.format_exc())
             return redirect(url('files_home', repo_name=c.repo_name,
                                 f_path=f_path))
 
@@ -459,7 +511,7 @@
             response.content_disposition = (
                 'attachment; filename=%s' % diff_name
             )
-            return diff.raw_diff()
+            return diff.as_raw()
 
         elif c.action == 'raw':
             _diff = diffs.get_gitdiff(node1, node2,
@@ -467,7 +519,7 @@
                                       context=line_context)
             diff = diffs.DiffProcessor(_diff, format='gitdiff')
             response.content_type = 'text/plain'
-            return diff.raw_diff()
+            return diff.as_raw()
 
         else:
             fid = h.FID(diff2, node2.path)
@@ -481,14 +533,32 @@
                                          ignore_whitespace=ign_whitespace_lcl,
                                          line_context=line_context_lcl,
                                          enable_comments=False)
-
-            c.changes = [('', node2, diff, cs1, cs2, st,)]
+            op = ''
+            filename = node1.path
+            cs_changes = {
+                'fid': [cs1, cs2, op, filename, diff, st]
+            }
+            c.changes = cs_changes
 
         return render('files/file_diff.html')
 
     def _get_node_history(self, cs, f_path, changesets=None):
+        """
+        get changesets history for given node
+
+        :param cs: changeset to calculate history
+        :param f_path: path for node to calculate history for
+        :param changesets: if passed don't calculate history and take
+            changesets defined in this list
+        """
+        # calculate history based on tip
+        tip_cs = c.rhodecode_repo.get_changeset()
         if changesets is None:
-            changesets = cs.get_file_history(f_path)
+            try:
+                changesets = tip_cs.get_file_history(f_path)
+            except (NodeDoesNotExistError, ChangesetError):
+                #this node is not present at tip !
+                changesets = cs.get_file_history(f_path)
         hist_l = []
 
         changesets_group = ([], _("Changesets"))
@@ -496,10 +566,10 @@
         tags_group = ([], _("Tags"))
         _hg = cs.repository.alias == 'hg'
         for chs in changesets:
-            _branch = '(%s)' % chs.branch if _hg else ''
-            n_desc = 'r%s:%s %s' % (chs.revision, chs.short_id, _branch)
+            #_branch = '(%s)' % chs.branch if _hg else ''
+            _branch = chs.branch
+            n_desc = 'r%s:%s (%s)' % (chs.revision, chs.short_id, _branch)
             changesets_group[0].append((chs.raw_id, n_desc,))
-
         hist_l.append(changesets_group)
 
         for name, chs in c.rhodecode_repo.branches.items():
@@ -510,7 +580,7 @@
             tags_group[0].append((chs, name),)
         hist_l.append(tags_group)
 
-        return hist_l
+        return hist_l, changesets
 
     @LoginRequired()
     @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
--- a/rhodecode/controllers/forks.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/forks.py	Thu Dec 13 22:54:21 2012 +0100
@@ -99,8 +99,8 @@
                                             c.repo_last_rev) * 100)
 
         defaults = RepoModel()._get_defaults(repo_name)
-        # add prefix to fork
-        defaults['repo_name'] = 'fork-' + defaults['repo_name']
+        # add suffix to fork
+        defaults['repo_name'] = '%s-fork' % defaults['repo_name']
         return defaults
 
     @HasRepoPermissionAnyDecorator('repository.read', 'repository.write',
--- a/rhodecode/controllers/home.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/home.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,11 +26,16 @@
 import logging
 
 from pylons import tmpl_context as c, request
+from pylons.i18n.translation import _
 from webob.exc import HTTPBadRequest
 
+import rhodecode
+from rhodecode.lib import helpers as h
+from rhodecode.lib.ext_json import json
 from rhodecode.lib.auth import LoginRequired
 from rhodecode.lib.base import BaseController, render
 from rhodecode.model.db import Repository
+from sqlalchemy.sql.expression import func
 
 log = logging.getLogger(__name__)
 
@@ -42,9 +47,63 @@
         super(HomeController, self).__before__()
 
     def index(self):
-        c.repos_list = self.scm_model.get_repos()
         c.groups = self.scm_model.get_repos_groups()
         c.group = None
+
+        if c.visual.lightweight_dashboard is False:
+            c.repos_list = self.scm_model.get_repos()
+        ## lightweight version of dashboard
+        else:
+            c.repos_list = Repository.query()\
+                            .filter(Repository.group_id == None)\
+                            .order_by(func.lower(Repository.repo_name))\
+                            .all()
+            repos_data = []
+            total_records = len(c.repos_list)
+
+            _tmpl_lookup = rhodecode.CONFIG['pylons.app_globals'].mako_lookup
+            template = _tmpl_lookup.get_template('data_table/_dt_elements.html')
+
+            quick_menu = lambda repo_name: (template.get_def("quick_menu")
+                                            .render(repo_name, _=_, h=h, c=c))
+            repo_lnk = lambda name, rtype, private, fork_of: (
+                template.get_def("repo_name")
+                .render(name, rtype, private, fork_of, short_name=False,
+                        admin=False, _=_, h=h, c=c))
+            last_change = lambda last_change:  (template.get_def("last_change")
+                                           .render(last_change, _=_, h=h, c=c))
+            rss_lnk = lambda repo_name: (template.get_def("rss")
+                                           .render(repo_name, _=_, h=h, c=c))
+            atom_lnk = lambda repo_name: (template.get_def("atom")
+                                           .render(repo_name, _=_, h=h, c=c))
+
+            def desc(desc):
+                if c.visual.stylify_metatags:
+                    return h.urlify_text(h.desc_stylize(h.truncate(desc, 60)))
+                else:
+                    return h.urlify_text(h.truncate(desc, 60))
+
+            for repo in c.repos_list:
+                repos_data.append({
+                    "menu": quick_menu(repo.repo_name),
+                    "raw_name": repo.repo_name.lower(),
+                    "name": repo_lnk(repo.repo_name, repo.repo_type,
+                                     repo.private, repo.fork),
+                    "last_change": last_change(repo.last_db_change),
+                    "desc": desc(repo.description),
+                    "owner": h.person(repo.user.username),
+                    "rss": rss_lnk(repo.repo_name),
+                    "atom": atom_lnk(repo.repo_name),
+                })
+
+            c.data = json.dumps({
+                "totalRecords": total_records,
+                "startIndex": 0,
+                "sort": "name",
+                "dir": "asc",
+                "records": repos_data
+            })
+
         return render('/index.html')
 
     def repo_switcher(self):
@@ -55,7 +114,7 @@
                                                     simple=True)
             return render('/repo_switcher_list.html')
         else:
-            return HTTPBadRequest()
+            raise HTTPBadRequest()
 
     def branch_tag_switcher(self, repo_name):
         if request.is_xhr:
@@ -63,4 +122,4 @@
             c.rhodecode_repo = c.rhodecode_db_repo.scm_instance
             return render('/switch_to_list.html')
         else:
-            return HTTPBadRequest()
+            raise HTTPBadRequest()
--- a/rhodecode/controllers/journal.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/journal.py	Thu Dec 13 22:54:21 2012 +0100
@@ -41,7 +41,8 @@
 from rhodecode.model.meta import Session
 from sqlalchemy.sql.expression import func
 from rhodecode.model.scm import ScmModel
-from rhodecode.lib.utils2 import safe_int
+from rhodecode.lib.utils2 import safe_int, AttributeDict
+from rhodecode.controllers.admin.admin import _journal_filter
 
 log = logging.getLogger(__name__)
 
@@ -53,20 +54,14 @@
         self.language = 'en-us'
         self.ttl = "5"
         self.feed_nr = 20
+        c.search_term = request.GET.get('filter')
 
     @LoginRequired()
     @NotAnonymous()
     def index(self):
         # Return a rendered template
         p = safe_int(request.params.get('page', 1), 1)
-
         c.user = User.get(self.rhodecode_user.user_id)
-        all_repos = self.sa.query(Repository)\
-                     .filter(Repository.user_id == c.user.user_id)\
-                     .order_by(func.lower(Repository.repo_name)).all()
-
-        c.user_repos = ScmModel().get_repos(all_repos)
-
         c.following = self.sa.query(UserFollowing)\
             .filter(UserFollowing.user_id == self.rhodecode_user.user_id)\
             .options(joinedload(UserFollowing.follows_repository))\
@@ -74,8 +69,10 @@
 
         journal = self._get_journal_data(c.following)
 
-        c.journal_pager = Page(journal, page=p, items_per_page=20)
+        def url_generator(**kw):
+            return url.current(filter=c.search_term, **kw)
 
+        c.journal_pager = Page(journal, page=p, items_per_page=20, url=url_generator)
         c.journal_day_aggreagate = self._get_daily_aggregate(c.journal_pager)
 
         c.journal_data = render('journal/journal_data.html')
@@ -83,6 +80,17 @@
             return c.journal_data
         return render('journal/journal.html')
 
+    @LoginRequired()
+    @NotAnonymous()
+    def index_my_repos(self):
+        c.user = User.get(self.rhodecode_user.user_id)
+        if request.environ.get('HTTP_X_PARTIAL_XHR'):
+            all_repos = self.sa.query(Repository)\
+                     .filter(Repository.user_id == c.user.user_id)\
+                     .order_by(func.lower(Repository.repo_name)).all()
+            c.user_repos = ScmModel().get_repos(all_repos)
+            return render('journal/journal_page_repos.html')
+
     @LoginRequired(api_access=True)
     @NotAnonymous()
     def journal_atom(self):
@@ -111,7 +119,8 @@
         groups = []
         for k, g in groupby(journal, lambda x: x.action_as_day):
             user_group = []
-            for k2, g2 in groupby(list(g), lambda x: x.user.email):
+            #groupby username if it's a present value, else fallback to journal username
+            for _, g2 in groupby(list(g), lambda x: x.user.username if x.user else x.username):
                 l = list(g2)
                 user_group.append((l[0].user, l))
 
@@ -137,9 +146,15 @@
         if filtering_criterion is not None:
             journal = self.sa.query(UserLog)\
                 .options(joinedload(UserLog.user))\
-                .options(joinedload(UserLog.repository))\
-                .filter(filtering_criterion)\
-                .order_by(UserLog.action_date.desc())
+                .options(joinedload(UserLog.repository))
+            #filter
+            try:
+                journal = _journal_filter(journal, c.search_term)
+            except:
+                # we want this to crash for now
+                raise
+            journal = journal.filter(filtering_criterion)\
+                        .order_by(UserLog.action_date.desc())
         else:
             journal = []
 
@@ -213,9 +228,15 @@
                          ttl=self.ttl)
 
         for entry in journal[:self.feed_nr]:
+            user = entry.user
+            if user is None:
+                #fix deleted users
+                user = AttributeDict({'short_contact': entry.username,
+                                      'email': '',
+                                      'full_contact': ''})
             action, action_extra, ico = h.action_parser(entry, feed=True)
-            title = "%s - %s %s" % (entry.user.short_contact, action(),
-                                 entry.repository.repo_name)
+            title = "%s - %s %s" % (user.short_contact, action(),
+                                    entry.repository.repo_name)
             desc = action_extra()
             _url = None
             if entry.repository is not None:
@@ -226,8 +247,8 @@
             feed.add_item(title=title,
                           pubdate=entry.action_date,
                           link=_url or url('', qualified=True),
-                          author_email=entry.user.email,
-                          author_name=entry.user.full_contact,
+                          author_email=user.email,
+                          author_name=user.full_contact,
                           description=desc)
 
         response.content_type = feed.mime_type
@@ -250,9 +271,15 @@
                          ttl=self.ttl)
 
         for entry in journal[:self.feed_nr]:
+            user = entry.user
+            if user is None:
+                #fix deleted users
+                user = AttributeDict({'short_contact': entry.username,
+                                      'email': '',
+                                      'full_contact': ''})
             action, action_extra, ico = h.action_parser(entry, feed=True)
-            title = "%s - %s %s" % (entry.user.short_contact, action(),
-                                 entry.repository.repo_name)
+            title = "%s - %s %s" % (user.short_contact, action(),
+                                    entry.repository.repo_name)
             desc = action_extra()
             _url = None
             if entry.repository is not None:
@@ -263,8 +290,8 @@
             feed.add_item(title=title,
                           pubdate=entry.action_date,
                           link=_url or url('', qualified=True),
-                          author_email=entry.user.email,
-                          author_name=entry.user.full_contact,
+                          author_email=user.email,
+                          author_name=user.full_contact,
                           description=desc)
 
         response.content_type = feed.mime_type
--- a/rhodecode/controllers/pullrequests.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/pullrequests.py	Thu Dec 13 22:54:21 2012 +0100
@@ -33,7 +33,6 @@
 from pylons import request, response, session, tmpl_context as c, url
 from pylons.controllers.util import abort, redirect
 from pylons.i18n.translation import _
-from pylons.decorators import jsonify
 
 from rhodecode.lib.compat import json
 from rhodecode.lib.base import BaseRepoController, render
@@ -41,7 +40,10 @@
     NotAnonymous
 from rhodecode.lib import helpers as h
 from rhodecode.lib import diffs
-from rhodecode.lib.utils import action_logger
+from rhodecode.lib.utils import action_logger, jsonify
+from rhodecode.lib.vcs.exceptions import EmptyRepositoryError
+from rhodecode.lib.vcs.backends.base import EmptyChangeset
+from rhodecode.lib.diffs import LimitedDiffContainer
 from rhodecode.model.db import User, PullRequest, ChangesetStatus,\
     ChangesetComment
 from rhodecode.model.pull_request import PullRequestModel
@@ -50,7 +52,6 @@
 from rhodecode.model.comment import ChangesetCommentsModel
 from rhodecode.model.changeset_status import ChangesetStatusModel
 from rhodecode.model.forms import PullRequestForm
-from rhodecode.lib.vcs.exceptions import EmptyRepositoryError
 
 log = logging.getLogger(__name__)
 
@@ -149,8 +150,8 @@
                                  self._get_repo_refs(fork.scm_instance),
                                  class_='refs')
             }
-        #add parents of this fork also
-        if org_repo.parent:
+        #add parents of this fork also, but only if it's not empty
+        if org_repo.parent and org_repo.parent.scm_instance.revisions:
             c.default_pull_request = org_repo.parent.repo_name
             c.default_pull_request_rev = self._get_default_rev(org_repo.parent)
             c.default_revs = self._get_repo_refs(org_repo.parent.scm_instance)
@@ -194,6 +195,17 @@
         revisions = _form['revisions']
         reviewers = _form['review_members']
 
+        # if we have cherry picked pull request we don't care what is in
+        # org_ref/other_ref
+        rev_start = request.POST.get('rev_start')
+        rev_end = request.POST.get('rev_end')
+
+        if rev_start and rev_end:
+            # this is swapped to simulate that rev_end is a revision from
+            # parent of the fork
+            org_ref = 'rev:%s:%s' % (rev_end, rev_end)
+            other_ref = 'rev:%s:%s' % (rev_start, rev_start)
+
         title = _form['pullrequest_title']
         description = _form['pullrequest_desc']
 
@@ -227,7 +239,7 @@
                        request.POST.get('reviewers_ids', '').split(',')))
 
             PullRequestModel().update_reviewers(pull_request_id, reviewers_ids)
-            Session.commit()
+            Session().commit()
             return True
         raise HTTPForbidden()
 
@@ -241,7 +253,7 @@
             Session().commit()
             h.flash(_('Successfully deleted pull request'),
                     category='success')
-            return redirect(url('admin_settings_my_account'))
+            return redirect(url('admin_settings_my_account', anchor='pullrequests'))
         raise HTTPForbidden()
 
     def _load_compare_data(self, pull_request, enable_comments=True):
@@ -251,13 +263,15 @@
         :param pull_request:
         :type pull_request:
         """
+        rev_start = request.GET.get('rev_start')
+        rev_end = request.GET.get('rev_end')
 
         org_repo = pull_request.org_repo
         (org_ref_type,
          org_ref_name,
          org_ref_rev) = pull_request.org_ref.split(':')
 
-        other_repo = pull_request.other_repo
+        other_repo = org_repo
         (other_ref_type,
          other_ref_name,
          other_ref_rev) = pull_request.other_ref.split(':')
@@ -270,36 +284,48 @@
         c.org_repo = org_repo
         c.other_repo = other_repo
 
-        c.cs_ranges, discovery_data = PullRequestModel().get_compare_data(
-                                       org_repo, org_ref, other_repo, other_ref
-                                      )
-        if c.cs_ranges:
-            # case we want a simple diff without incoming changesets, just
-            # for review purposes. Make the diff on the forked repo, with
-            # revision that is common ancestor
-            other_ref = ('rev', c.cs_ranges[-1].parents[0].raw_id)
-            other_repo = org_repo
+        c.fulldiff = fulldiff = request.GET.get('fulldiff')
+
+        c.cs_ranges = [org_repo.get_changeset(x) for x in pull_request.revisions]
+
+        other_ref = ('rev', getattr(c.cs_ranges[0].parents[0]
+                                  if c.cs_ranges[0].parents
+                                  else EmptyChangeset(), 'raw_id'))
 
         c.statuses = org_repo.statuses([x.raw_id for x in c.cs_ranges])
+        c.target_repo = c.repo_name
         # defines that we need hidden inputs with changesets
         c.as_form = request.GET.get('as_form', False)
 
         c.org_ref = org_ref[1]
         c.other_ref = other_ref[1]
-        # diff needs to have swapped org with other to generate proper diff
-        _diff = diffs.differ(other_repo, other_ref, org_repo, org_ref,
-                             discovery_data)
-        diff_processor = diffs.DiffProcessor(_diff, format='gitdiff')
+
+        diff_limit = self.cut_off_limit if not fulldiff else None
+
+        #we swap org/other ref since we run a simple diff on one repo
+        _diff = diffs.differ(org_repo, other_ref, other_repo, org_ref)
+
+        diff_processor = diffs.DiffProcessor(_diff or '', format='gitdiff',
+                                             diff_limit=diff_limit)
         _parsed = diff_processor.prepare()
 
+        c.limited_diff = False
+        if isinstance(_parsed, LimitedDiffContainer):
+            c.limited_diff = True
+
         c.files = []
         c.changes = {}
-
+        c.lines_added = 0
+        c.lines_deleted = 0
         for f in _parsed:
+            st = f['stats']
+            if st[0] != 'b':
+                c.lines_added += st[0]
+                c.lines_deleted += st[1]
             fid = h.FID('', f['filename'])
             c.files.append([fid, f['operation'], f['filename'], f['stats']])
             diff = diff_processor.as_html(enable_comments=enable_comments,
-                                          diff_lines=[f])
+                                          parsed_lines=[f])
             c.changes[fid] = [f['operation'], f['filename'], diff]
 
     def show(self, repo_name, pull_request_id):
--- a/rhodecode/controllers/search.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/search.py	Thu Dec 13 22:54:21 2012 +0100
@@ -24,7 +24,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 import logging
 import traceback
-
+import urllib
 from pylons.i18n.translation import _
 from pylons import request, config, tmpl_context as c
 
@@ -42,6 +42,7 @@
 from rhodecode.model.repo import RepoModel
 from rhodecode.lib.utils2 import safe_str, safe_int
 
+
 log = logging.getLogger(__name__)
 
 
@@ -116,8 +117,9 @@
                     )
 
                     def url_generator(**kw):
+                        q = urllib.quote(safe_str(c.cur_query))
                         return update_params("?q=%s&type=%s" \
-                        % (safe_str(c.cur_query), safe_str(c.cur_type)), **kw)
+                        % (q, safe_str(c.cur_type)), **kw)
                     repo_location = RepoModel().repos_path
                     c.formated_results = Page(
                         WhooshResultWrapper(search_type, searcher, matcher,
--- a/rhodecode/controllers/settings.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/settings.py	Thu Dec 13 22:54:21 2012 +0100
@@ -65,23 +65,38 @@
         choices, c.landing_revs = ScmModel().get_repo_landing_revs()
         c.landing_revs_choices = choices
 
-    @HasRepoPermissionAllDecorator('repository.admin')
-    def index(self, repo_name):
-        repo_model = RepoModel()
-        c.repo_info = repo = repo_model.get_by_repo_name(repo_name)
-        if not repo:
+    def __load_data(self, repo_name=None):
+        """
+        Load defaults settings for edit, and update
+
+        :param repo_name:
+        """
+        self.__load_defaults()
+
+        c.repo_info = db_repo = Repository.get_by_repo_name(repo_name)
+        repo = db_repo.scm_instance
+
+        if c.repo_info is None:
             h.flash(_('%s repository is not mapped to db perhaps'
-                      ' it was created or renamed from the file system'
+                      ' it was created or renamed from the filesystem'
                       ' please run the application again'
                       ' in order to rescan repositories') % repo_name,
                       category='error')
 
             return redirect(url('home'))
 
-        self.__load_defaults()
+        ##override defaults for exact repo info here git/hg etc
+        choices, c.landing_revs = ScmModel().get_repo_landing_revs(c.repo_info)
+        c.landing_revs_choices = choices
 
         defaults = RepoModel()._get_defaults(repo_name)
 
+        return defaults
+
+    @HasRepoPermissionAllDecorator('repository.admin')
+    def index(self, repo_name):
+        defaults = self.__load_data(repo_name)
+
         return htmlfill.render(
             render('settings/repo_settings.html'),
             defaults=defaults,
@@ -91,10 +106,12 @@
 
     @HasRepoPermissionAllDecorator('repository.admin')
     def update(self, repo_name):
+        self.__load_defaults()
         repo_model = RepoModel()
         changed_name = repo_name
-
-        self.__load_defaults()
+        #override the choices with extracted revisions !
+        choices, c.landing_revs = ScmModel().get_repo_landing_revs(repo_name)
+        c.landing_revs_choices = choices
 
         _form = RepoSettingsForm(edit=True,
                                  old_data={'repo_name': repo_name},
@@ -102,8 +119,7 @@
                                  landing_revs=c.landing_revs_choices)()
         try:
             form_result = _form.to_python(dict(request.POST))
-
-            repo_model.update(repo_name, form_result)
+            repo_model.update(repo_name, **form_result)
             invalidate_cache('get_repo_cached_%s' % repo_name)
             h.flash(_('Repository %s updated successfully') % repo_name,
                     category='success')
@@ -112,15 +128,15 @@
                           changed_name, self.ip_addr, self.sa)
             Session().commit()
         except formencode.Invalid, errors:
-            c.repo_info = repo_model.get_by_repo_name(repo_name)
-            c.users_array = repo_model.get_users_js()
-            errors.value.update({'user': c.repo_info.user.username})
+            defaults = self.__load_data(repo_name)
+            defaults.update(errors.value)
             return htmlfill.render(
                 render('settings/repo_settings.html'),
                 defaults=errors.value,
                 errors=errors.error_dict or {},
                 prefix_error=False,
                 encoding="UTF-8")
+
         except Exception:
             log.error(traceback.format_exc())
             h.flash(_('error occurred during update of repository %s') \
@@ -160,7 +176,7 @@
             h.flash(_('An error occurred during deletion of %s') % repo_name,
                     category='error')
 
-        return redirect(url('home'))
+        return redirect(url('admin_settings_my_account', anchor='my'))
 
     @HasRepoPermissionAnyDecorator('repository.write', 'repository.admin')
     def toggle_locking(self, repo_name):
--- a/rhodecode/controllers/shortlog.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/shortlog.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,12 +26,16 @@
 import logging
 
 from pylons import tmpl_context as c, request, url
+from pylons.i18n.translation import _
 
+from rhodecode.lib import helpers as h
 from rhodecode.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
 from rhodecode.lib.base import BaseRepoController, render
 from rhodecode.lib.helpers import RepoPage
 from pylons.controllers.util import redirect
 from rhodecode.lib.utils2 import safe_int
+from rhodecode.lib.vcs.exceptions import NodeDoesNotExistError, ChangesetError,\
+    RepositoryError
 
 log = logging.getLogger(__name__)
 
@@ -44,19 +48,56 @@
     def __before__(self):
         super(ShortlogController, self).__before__()
 
-    def index(self, repo_name):
+    def __get_cs_or_redirect(self, rev, repo_name, redirect_after=True):
+        """
+        Safe way to get changeset if error occur it redirects to tip with
+        proper message
+
+        :param rev: revision to fetch
+        :param repo_name: repo name to redirect after
+        """
+
+        try:
+            return c.rhodecode_repo.get_changeset(rev)
+        except RepositoryError, e:
+            h.flash(str(e), category='warning')
+            redirect(h.url('shortlog_home', repo_name=repo_name))
+
+    def index(self, repo_name, revision=None, f_path=None):
         p = safe_int(request.params.get('page', 1), 1)
         size = safe_int(request.params.get('size', 20), 20)
+        collection = c.rhodecode_repo
+        c.file_history = f_path
 
         def url_generator(**kw):
+            if f_path:
+                return url('shortlog_file_home', repo_name=repo_name,
+                           revision=revision, f_path=f_path, size=size, **kw)
             return url('shortlog_home', repo_name=repo_name, size=size, **kw)
 
-        c.repo_changesets = RepoPage(c.rhodecode_repo, page=p,
-                                    items_per_page=size, url=url_generator)
+        if f_path:
+            log.debug('generating shortlog for path %s' % f_path)
+            # get the history for the file !
+            tip_cs = c.rhodecode_repo.get_changeset()
+            try:
+                collection = tip_cs.get_file_history(f_path)
+            except (NodeDoesNotExistError, ChangesetError):
+                #this node is not present at tip !
+                try:
+                    cs = self.__get_cs_or_redirect(revision, repo_name)
+                    collection = cs.get_file_history(f_path)
+                except RepositoryError, e:
+                    h.flash(str(e), category='warning')
+                    redirect(h.url('shortlog_home', repo_name=repo_name))
+            collection = list(reversed(collection))
+
+        c.repo_changesets = RepoPage(collection, page=p,
+                                     items_per_page=size, url=url_generator)
         page_revisions = [x.raw_id for x in list(c.repo_changesets)]
         c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
 
         if not c.repo_changesets:
+            h.flash(_('There are no changesets yet'), category='warning')
             return redirect(url('summary_home', repo_name=repo_name))
 
         c.shortlog_data = render('shortlog/shortlog_data.html')
--- a/rhodecode/controllers/summary.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/controllers/summary.py	Thu Dec 13 22:54:21 2012 +0100
@@ -97,7 +97,7 @@
         uri_tmpl = uri_tmpl.replace('{', '%(').replace('}', ')s')
         decoded_path = safe_unicode(urllib.unquote(parsed_url.path))
         uri_dict = {
-           'user': username,
+           'user': urllib.quote(username),
            'pass': password,
            'scheme': parsed_url.scheme,
            'netloc': parsed_url.netloc,
Binary file rhodecode/i18n/en/LC_MESSAGES/rhodecode.mo has changed
--- a/rhodecode/i18n/en/LC_MESSAGES/rhodecode.po	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/en/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: rhodecode 0.1\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-09-02 20:30+0200\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
 "PO-Revision-Date: 2011-02-25 19:13+0100\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: en <LL@li.org>\n"
@@ -17,35 +17,38 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.6\n"
 
-#: rhodecode/controllers/changelog.py:94
+#: rhodecode/controllers/changelog.py:95
 msgid "All Branches"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:90 rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, python-format
 msgid "%s line context"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:333
-#: rhodecode/controllers/changeset.py:348 rhodecode/lib/diffs.py:70
-msgid "binary file"
-msgstr ""
-
-#: rhodecode/controllers/changeset.py:408
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
+#, python-format
+msgid "Status change -> %s"
+msgstr ""
+
+#: rhodecode/controllers/changeset.py:346
 msgid ""
 "Changing status on a changeset associated witha closed pull request is "
 "not allowed"
 msgstr ""
 
-#: rhodecode/controllers/compare.py:69
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 msgid "There are no changesets yet"
 msgstr ""
 
@@ -75,99 +78,109 @@
 "fulfilling the request."
 msgstr ""
 
-#: rhodecode/controllers/feed.py:49
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
 msgstr ""
 
-#: rhodecode/controllers/feed.py:50
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
 msgstr ""
 
-#: rhodecode/controllers/feed.py:75
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
+msgid "Changeset was too big and was cut off..."
+msgstr ""
+
+#: rhodecode/controllers/feed.py:92
 msgid "commited on"
 msgstr ""
 
-#: rhodecode/controllers/files.py:84
+#: rhodecode/controllers/files.py:86
 msgid "click here to add new file"
 msgstr ""
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, python-format
 msgid "There are no files yet %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:239 rhodecode/controllers/files.py:299
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:266
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
 msgstr ""
 
-#: rhodecode/controllers/files.py:271
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr ""
 
-#: rhodecode/controllers/files.py:282 rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:287 rhodecode/controllers/files.py:352
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr ""
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, python-format
 msgid "Added %s via RhodeCode"
 msgstr ""
 
-#: rhodecode/controllers/files.py:332
+#: rhodecode/controllers/files.py:358
 msgid "No content"
 msgstr ""
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 msgid "No filename"
 msgstr ""
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr ""
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:391
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr ""
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr ""
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr ""
 
-#: rhodecode/controllers/files.py:495 rhodecode/controllers/pullrequests.py:72
-#: rhodecode/controllers/summary.py:232 rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr ""
 
-#: rhodecode/controllers/files.py:496 rhodecode/controllers/pullrequests.py:76
-#: rhodecode/controllers/summary.py:233 rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:73 rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -175,7 +188,7 @@
 "repositories"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:133 rhodecode/controllers/settings.py:72
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -183,22 +196,22 @@
 "repositories"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:167
+#: rhodecode/controllers/forks.py:168
 #, python-format
 msgid "forked %s repository as %s"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:181
+#: rhodecode/controllers/forks.py:182
 #, python-format
 msgid "An error occurred during repository forking %s"
 msgstr ""
 
-#: rhodecode/controllers/journal.py:202 rhodecode/controllers/journal.py:239
-msgid "public journal"
-msgstr ""
-
 #: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
-#: rhodecode/templates/base/base.html:220
+msgid "public journal"
+msgstr ""
+
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr ""
 
@@ -216,56 +229,56 @@
 "email"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:74 rhodecode/model/scm.py:549
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:158
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:160
+#: rhodecode/controllers/pullrequests.py:188
 msgid "error during creation of pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:181
+#: rhodecode/controllers/pullrequests.py:220
 msgid "Successfully opened new pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:184
+#: rhodecode/controllers/pullrequests.py:223
 msgid "Error occurred during sending pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:217
+#: rhodecode/controllers/pullrequests.py:256
 msgid "Successfully deleted pull request"
 msgstr ""
 
-#: rhodecode/controllers/search.py:131
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr ""
 
-#: rhodecode/controllers/search.py:136
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
 msgstr ""
 
-#: rhodecode/controllers/search.py:140
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:107
-#: rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/settings.py:108
+#: rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:125
-#: rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/settings.py:126
+#: rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:143
-#: rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/settings.py:144
+#: rhodecode/controllers/admin/repos.py:304
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was moved or renamed  from "
@@ -273,28 +286,54 @@
 "repositories"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:155
-#: rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/settings.py:156
+#: rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:159
-#: rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/settings.py:160
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:138
+#: rhodecode/controllers/settings.py:179
+msgid "unlocked"
+msgstr ""
+
+#: rhodecode/controllers/settings.py:182
+msgid "locked"
+msgstr ""
+
+#: rhodecode/controllers/settings.py:184
+#, python-format
+msgid "Repository has been %s"
+msgstr ""
+
+#: rhodecode/controllers/settings.py:188
+#: rhodecode/controllers/admin/repos.py:424
+msgid "An error occurred during unlocking"
+msgstr ""
+
+#: rhodecode/controllers/summary.py:140
 msgid "No data loaded yet"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:142
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/controllers/summary.py:144
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr ""
 
+#: rhodecode/controllers/admin/defaults.py:96
+msgid "Default settings updated successfully"
+msgstr ""
+
+#: rhodecode/controllers/admin/defaults.py:110
+msgid "error occurred during update of defaults"
+msgstr ""
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr ""
@@ -352,18 +391,23 @@
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -376,229 +420,225 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
 #: rhodecode/templates/base/base.html:197
-#: rhodecode/templates/base/base.html:337
-#: rhodecode/templates/base/base.html:339
-#: rhodecode/templates/base/base.html:341
+#: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:65
-msgid "disabled"
-msgstr ""
-
-#: rhodecode/controllers/admin/permissions.py:67
-msgid "allowed with manual account activation"
-msgstr ""
-
 #: rhodecode/controllers/admin/permissions.py:69
-msgid "allowed with automatic account activation"
+msgid "disabled"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+msgid "allowed with manual account activation"
+msgstr ""
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr ""
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:192
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:196
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:227
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:319
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:348
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:385
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:422
-msgid "An error occurred during unlocking"
-msgstr ""
-
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:451 rhodecode/model/validators.py:299
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:464
-msgid "Pulled from remote location"
-msgstr ""
-
 #: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr ""
+
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:482
-msgid "Nothing"
-msgstr ""
-
 #: rhodecode/controllers/admin/repos.py:484
+msgid "Nothing"
+msgstr ""
+
+#: rhodecode/controllers/admin/repos.py:486
 #, python-format
 msgid "Marked repo %s as fork of %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:488
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:116
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:129
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:163
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:176
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:194
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:202
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:208
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:213
-#: rhodecode/controllers/admin/repos_groups.py:218
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:238
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:258
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:121
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:129
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:160
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:164
-#: rhodecode/controllers/admin/settings.py:275
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:200
+#: rhodecode/controllers/admin/settings.py:207
 msgid "Updated visualisation settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:205
+#: rhodecode/controllers/admin/settings.py:212
 msgid "error occurred during updating visualisation settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:271
+#: rhodecode/controllers/admin/settings.py:295
 msgid "Updated VCS settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:285
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:297
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:301
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:320
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:375
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:406
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:421
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
 msgstr ""
@@ -613,97 +653,97 @@
 msgid "error occurred during creation of user %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:171
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:207
-msgid "successfully deleted user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:212
+msgid "successfully deleted user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:271
-msgid "Revoked 'repository create' permission to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:277
+msgid "Revoked 'repository create' permission to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:283
 msgid "Granted 'repository fork' permission to user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:282
-msgid "Revoked 'repository fork' permission to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
+msgid "Revoked 'repository fork' permission to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 msgid "An error occurred during permissions saving"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:303
-#, python-format
-msgid "Added email %s to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:309
+#, python-format
+msgid "Added email %s to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:315
 msgid "An error occurred during email saving"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 msgid "Removed email from user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:95
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:135
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:157
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:174
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:233
+#: rhodecode/controllers/admin/users_groups.py:257
 msgid "Granted 'repository create' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:238
+#: rhodecode/controllers/admin/users_groups.py:262
 msgid "Revoked 'repository create' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:244
+#: rhodecode/controllers/admin/users_groups.py:268
 msgid "Granted 'repository fork' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:249
+#: rhodecode/controllers/admin/users_groups.py:273
 msgid "Revoked 'repository fork' permission to users group"
 msgstr ""
 
@@ -715,298 +755,323 @@
 msgid "You need to be a signed in to view this page"
 msgstr ""
 
-#: rhodecode/lib/diffs.py:86
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr ""
+
+#: rhodecode/lib/diffs.py:90
 msgid "Changeset was too big and was cut off, use diff menu to display this diff"
 msgstr ""
 
-#: rhodecode/lib/diffs.py:96
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:372
+#: rhodecode/lib/helpers.py:373
 #, python-format
 msgid "%a, %d %b %Y %H:%M:%S"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:484
+#: rhodecode/lib/helpers.py:485
 msgid "True"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:488
+#: rhodecode/lib/helpers.py:489
 msgid "False"
 msgstr ""
 
+#: rhodecode/lib/helpers.py:529
+#, python-format
+msgid "Deleted branch: %s"
+msgstr ""
+
 #: rhodecode/lib/helpers.py:532
+#, python-format
+msgid "Created tag: %s"
+msgstr ""
+
+#: rhodecode/lib/helpers.py:545
 msgid "Changeset not found"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:555
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:561
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:581
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:583 rhodecode/templates/changelog/changelog.html:48
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:606
-msgid "fork name "
-msgstr ""
-
-#: rhodecode/lib/helpers.py:620
+#: rhodecode/lib/helpers.py:640
+#, python-format
+msgid "fork name %s"
+msgstr ""
+
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:626
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:628 rhodecode/lib/helpers.py:638
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:630
+#: rhodecode/lib/helpers.py:663
 msgid "[created] repository as fork"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:632 rhodecode/lib/helpers.py:640
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:634 rhodecode/lib/helpers.py:642
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:636
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:644
+#: rhodecode/lib/helpers.py:677
 msgid "[created] user"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:646
+#: rhodecode/lib/helpers.py:679
 msgid "[updated] user"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:648
+#: rhodecode/lib/helpers.py:681
 msgid "[created] users group"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:650
+#: rhodecode/lib/helpers.py:683
 msgid "[updated] users group"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:652
+#: rhodecode/lib/helpers.py:685
 msgid "[commented] on revision in repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:654
+#: rhodecode/lib/helpers.py:687
 msgid "[commented] on pull request for"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:656
+#: rhodecode/lib/helpers.py:689
 msgid "[closed] pull request for"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:658
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:660
+#: rhodecode/lib/helpers.py:693
 msgid "[committed via RhodeCode] into repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:662
+#: rhodecode/lib/helpers.py:695
 msgid "[pulled from remote] into repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:664
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:666
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:668
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:840
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:844
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:335
+#: rhodecode/lib/utils2.py:403
 #, python-format
 msgid "%d year"
 msgid_plural "%d years"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:336
+#: rhodecode/lib/utils2.py:404
 #, python-format
 msgid "%d month"
 msgid_plural "%d months"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:337
+#: rhodecode/lib/utils2.py:405
 #, python-format
 msgid "%d day"
 msgid_plural "%d days"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:338
+#: rhodecode/lib/utils2.py:406
 #, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:339
+#: rhodecode/lib/utils2.py:407
 #, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:340
+#: rhodecode/lib/utils2.py:408
 #, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:355
+#: rhodecode/lib/utils2.py:424
+#, python-format
+msgid "in %s"
+msgstr ""
+
+#: rhodecode/lib/utils2.py:426
 #, python-format
 msgid "%s ago"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:357
+#: rhodecode/lib/utils2.py:428
+#, python-format
+msgid "in %s and %s"
+msgstr ""
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:360
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr ""
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 msgid "password reset link"
 msgstr ""
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+msgid "Repository no access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+msgid "Repository read access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+msgid "Repository write access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+msgid "Repository admin access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+msgid "Repositories Group no access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+msgid "Repositories Group read access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+msgid "Repositories Group write access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+msgid "Repositories Group admin access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+msgid "RhodeCode Administrator"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+msgid "Repository creation disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+msgid "Repository creation enabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+msgid "Repository forking disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+msgid "Repository forking enabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+msgid "Register disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+msgid "Approved"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr ""
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
 msgstr ""
 
-#: rhodecode/model/comment.py:157
+#: rhodecode/model/comment.py:173
 msgid "[Mention]"
 msgstr ""
 
-#: rhodecode/model/db.py:1140
-msgid "Repository no access"
-msgstr ""
-
-#: rhodecode/model/db.py:1141
-msgid "Repository read access"
-msgstr ""
-
-#: rhodecode/model/db.py:1142
-msgid "Repository write access"
-msgstr ""
-
-#: rhodecode/model/db.py:1143
-msgid "Repository admin access"
-msgstr ""
-
-#: rhodecode/model/db.py:1145
-msgid "Repositories Group no access"
-msgstr ""
-
-#: rhodecode/model/db.py:1146
-msgid "Repositories Group read access"
-msgstr ""
-
-#: rhodecode/model/db.py:1147
-msgid "Repositories Group write access"
-msgstr ""
-
-#: rhodecode/model/db.py:1148
-msgid "Repositories Group admin access"
-msgstr ""
-
-#: rhodecode/model/db.py:1150
-msgid "RhodeCode Administrator"
-msgstr ""
-
-#: rhodecode/model/db.py:1151
-msgid "Repository creation disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1152
-msgid "Repository creation enabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1153
-msgid "Repository forking disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1154
-msgid "Repository forking enabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1155
-msgid "Register disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1156
-msgid "Register new user with RhodeCode with manual activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1159
-msgid "Register new user with RhodeCode with auto activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1579
-msgid "Not Reviewed"
-msgstr ""
-
-#: rhodecode/model/db.py:1580
-msgid "Approved"
-msgstr ""
-
-#: rhodecode/model/db.py:1581
-msgid "Rejected"
-msgstr ""
-
-#: rhodecode/model/db.py:1582
-msgid "Under Review"
-msgstr ""
-
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
 msgstr ""
@@ -1026,35 +1091,41 @@
 msgstr ""
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
+#, python-format
+msgid "commented on commit at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:221
-msgid "sent message"
+#, python-format
+msgid "sent message at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
+#, python-format
+msgid "mentioned you at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:223
-msgid "registered in RhodeCode"
+#, python-format
+msgid "registered in RhodeCode at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
+#, python-format
+msgid "opened new pull request at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:225
-msgid "commented on pull request"
-msgstr ""
-
-#: rhodecode/model/pull_request.py:84
+#, python-format
+msgid "commented on pull request at %(when)s"
+msgstr ""
+
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
 msgstr ""
 
-#: rhodecode/model/scm.py:535
+#: rhodecode/model/scm.py:542
 msgid "latest tip"
 msgstr ""
 
@@ -1062,152 +1133,156 @@
 msgid "new user registration"
 msgstr ""
 
-#: rhodecode/model/user.py:255 rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/model/user.py:323
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/model/user.py:329
+#: rhodecode/model/user.py:331
 #, python-format
 msgid ""
 "user \"%s\" still owns %s repositories and cannot be removed. Switch "
 "owners or remove those repositories. %s"
 msgstr ""
 
-#: rhodecode/model/validators.py:35 rhodecode/model/validators.py:36
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
 msgstr ""
 
-#: rhodecode/model/validators.py:82
+#: rhodecode/model/validators.py:83
 #, python-format
 msgid "Username \"%(username)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:84
+#: rhodecode/model/validators.py:85
 #, python-format
 msgid "Username \"%(username)s\" is forbidden"
 msgstr ""
 
-#: rhodecode/model/validators.py:86
+#: rhodecode/model/validators.py:87
 msgid ""
 "Username may only contain alphanumeric characters underscores, periods or"
 " dashes and must begin with alphanumeric character"
 msgstr ""
 
-#: rhodecode/model/validators.py:114
+#: rhodecode/model/validators.py:115
 #, python-format
 msgid "Username %(username)s is not valid"
 msgstr ""
 
-#: rhodecode/model/validators.py:133
-msgid "Invalid users group name"
-msgstr ""
-
 #: rhodecode/model/validators.py:134
+msgid "Invalid users group name"
+msgstr ""
+
+#: rhodecode/model/validators.py:135
 #, python-format
 msgid "Users group \"%(usersgroup)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:136
+#: rhodecode/model/validators.py:137
 msgid ""
 "users group name may only contain  alphanumeric characters underscores, "
 "periods or dashes and must begin with alphanumeric character"
 msgstr ""
 
-#: rhodecode/model/validators.py:174
+#: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
 msgstr ""
 
-#: rhodecode/model/validators.py:175
+#: rhodecode/model/validators.py:176
 #, python-format
 msgid "Group \"%(group_name)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:177
+#: rhodecode/model/validators.py:178
 #, python-format
 msgid "Repository with name \"%(group_name)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:235
+#: rhodecode/model/validators.py:236
 msgid "Invalid characters (non-ascii) in password"
 msgstr ""
 
-#: rhodecode/model/validators.py:250
+#: rhodecode/model/validators.py:251
 msgid "Passwords do not match"
 msgstr ""
 
-#: rhodecode/model/validators.py:267
-msgid "invalid password"
-msgstr ""
-
 #: rhodecode/model/validators.py:268
-msgid "invalid user name"
+msgid "invalid password"
 msgstr ""
 
 #: rhodecode/model/validators.py:269
+msgid "invalid user name"
+msgstr ""
+
+#: rhodecode/model/validators.py:270
 msgid "Your account is disabled"
 msgstr ""
 
-#: rhodecode/model/validators.py:313
+#: rhodecode/model/validators.py:314
 #, python-format
 msgid "Repository name %(repo)s is disallowed"
 msgstr ""
 
-#: rhodecode/model/validators.py:315
-#, python-format
-msgid "Repository named %(repo)s already exists"
-msgstr ""
-
 #: rhodecode/model/validators.py:316
 #, python-format
+msgid "Repository named %(repo)s already exists"
+msgstr ""
+
+#: rhodecode/model/validators.py:317
+#, python-format
 msgid "Repository \"%(repo)s\" already exists in group \"%(group)s\""
 msgstr ""
 
-#: rhodecode/model/validators.py:318
+#: rhodecode/model/validators.py:319
 #, python-format
 msgid "Repositories group with name \"%(repo)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:431
-msgid "invalid clone url"
-msgstr ""
-
 #: rhodecode/model/validators.py:432
+msgid "invalid clone url"
+msgstr ""
+
+#: rhodecode/model/validators.py:433
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
 msgstr ""
 
-#: rhodecode/model/validators.py:457
+#: rhodecode/model/validators.py:458
 msgid "Fork have to be the same type as parent"
 msgstr ""
 
-#: rhodecode/model/validators.py:478
+#: rhodecode/model/validators.py:473
+msgid "You don't have permissions to create repository in this group"
+msgstr ""
+
+#: rhodecode/model/validators.py:498
 msgid "This username or users group name is not valid"
 msgstr ""
 
-#: rhodecode/model/validators.py:562
+#: rhodecode/model/validators.py:582
 msgid "This is not a valid path"
 msgstr ""
 
-#: rhodecode/model/validators.py:577
-msgid "This e-mail address is already taken"
-msgstr ""
-
 #: rhodecode/model/validators.py:597
+msgid "This e-mail address is already taken"
+msgstr ""
+
+#: rhodecode/model/validators.py:617
 #, python-format
 msgid "e-mail \"%(email)s\" does not exist."
 msgstr ""
 
-#: rhodecode/model/validators.py:634
+#: rhodecode/model/validators.py:654
 msgid ""
 "The LDAP Login attribute of the CN must be specified - this is the name "
 "of the attribute that is equivalent to \"username\""
 msgstr ""
 
-#: rhodecode/model/validators.py:653
+#: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
 msgstr ""
@@ -1230,7 +1305,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:221
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr ""
 
@@ -1241,6 +1316,7 @@
 msgstr ""
 
 #: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1250,9 +1326,10 @@
 msgstr ""
 
 #: rhodecode/templates/index_base.html:30
-#: rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142
-#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1261,142 +1338,137 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr ""
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:70
-#: rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:157
-#: rhodecode/templates/admin/users/user_edit_my_account.html:193
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
 #: rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:72
-msgid "Last change"
-msgstr ""
-
 #: rhodecode/templates/index_base.html:73
-#: rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:159
-#: rhodecode/templates/journal/journal.html:188
-msgid "Tip"
+msgid "Last change"
 msgstr ""
 
 #: rhodecode/templates/index_base.html:74
-#: rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
+msgid "Tip"
+msgstr ""
+
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:75
-#: rhodecode/templates/summary/summary.html:48
-#: rhodecode/templates/summary/summary.html:51
-msgid "RSS"
-msgstr ""
-
 #: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/summary/summary.html:48
+#: rhodecode/templates/summary/summary.html:51
+msgid "RSS"
+msgstr ""
+
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:110
-#: rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr ""
-
-#: rhodecode/templates/index_base.html:117
-#: rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr ""
-
-#: rhodecode/templates/index_base.html:140
-msgid "Group Name"
-msgstr ""
-
-#: rhodecode/templates/index_base.html:158
-#: rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:159
-#: rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
 msgid "Last Change"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr ""
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr ""
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 msgid "Loading..."
 msgstr ""
 
@@ -1414,7 +1486,7 @@
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr ""
 
@@ -1471,23 +1543,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr ""
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr ""
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr ""
 
@@ -1500,6 +1572,7 @@
 msgstr ""
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1527,7 +1600,7 @@
 msgstr ""
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr ""
 
@@ -1550,20 +1623,22 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr ""
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr ""
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
 #: rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr ""
@@ -1572,10 +1647,79 @@
 msgid "From IP"
 msgstr ""
 
-#: rhodecode/templates/admin/admin_log.html:53
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr ""
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+msgid "Repositories defaults"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+msgid "Defaults"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+msgid "Enable locking"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr ""
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
 msgstr ""
@@ -1648,18 +1792,6 @@
 msgid "E-mail Attribute"
 msgstr ""
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr ""
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1675,8 +1807,8 @@
 msgstr ""
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:254
-#: rhodecode/templates/base/base.html:256
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr ""
 
@@ -1704,7 +1836,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1718,10 +1850,6 @@
 msgid "Anonymous access"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr ""
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
 msgid ""
 "All default permissions on each repository will be reset to choosen "
@@ -1730,23 +1858,40 @@
 msgstr ""
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr ""
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr ""
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr ""
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
+#: rhodecode/templates/admin/permissions/permissions.html:85
 msgid "Repository forking"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:241
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr ""
 
@@ -1766,8 +1911,8 @@
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr ""
 
@@ -1777,24 +1922,11 @@
 msgid "Optional http[s] url from which repository should be cloned."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 msgid "Optionaly select a group to put this repository into."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 msgid "Type of repository to create."
 msgstr ""
@@ -1820,15 +1952,6 @@
 msgid "Keep it short and to the point. Use a README file for longer descriptions."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid ""
-"Private repositories are only visible to people explicitly added as "
-"collaborators."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
 msgstr ""
@@ -1843,12 +1966,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr ""
 
@@ -1862,31 +1987,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-msgid "Enable locking"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 msgid "Change owner of this repository."
 msgstr ""
@@ -1894,11 +1994,11 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
@@ -1956,78 +2056,103 @@
 msgid "Confirm to invalidate repository cache"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:195
-#: rhodecode/templates/base/base.html:318
-#: rhodecode/templates/base/base.html:320
-#: rhodecode/templates/base/base.html:322
-msgid "Public journal"
+#: rhodecode/templates/admin/repos/repo_edit.html:193
+msgid ""
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:198
+msgid "List of cached values"
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:201
-msgid "Remove from public journal"
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+msgid "Key"
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
+#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
+msgid "Public journal"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:224
+msgid "Remove from public journal"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:208
+#: rhodecode/templates/admin/repos/repo_edit.html:231
 msgid ""
 "All actions made on this repository will be accessible to everyone in "
 "public journal"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 msgid "Locking"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Confirm to unlock repository"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "Confirm to lock repository"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:224
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 msgid "Repository is not locked"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+#: rhodecode/templates/admin/repos/repo_edit.html:252
 msgid "Force locking on repository. Works only when anonymous access is disabled"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:236
-msgid "Set as fork of"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:245
-msgid "Manually set this repository as a fork of another from the list"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:251
-#: rhodecode/templates/changeset/changeset_file_comment.html:26
-msgid "Delete"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-msgid "Remove this repository"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-#: rhodecode/templates/journal/journal.html:84
-msgid "Confirm to delete this repository"
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:259
+msgid "Set as fork of"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:268
+msgid "Manually set this repository as a fork of another from the list"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:274
+#: rhodecode/templates/changeset/changeset_file_comment.html:26
+msgid "Delete"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:278
+msgid "Remove this repository"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:278
+msgid "Confirm to delete this repository"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
 "This repository will be renamed in a special way in order to be "
 "unaccesible for RhodeCode and VCS systems.\n"
@@ -2053,7 +2178,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:217
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr ""
 
@@ -2064,8 +2189,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr ""
 
@@ -2088,12 +2213,12 @@
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:97
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:81
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:87
 msgid "Failed to remove user"
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:112
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:96
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:103
 msgid "Failed to remove users group"
 msgstr ""
 
@@ -2101,11 +2226,44 @@
 msgid "Repositories administration"
 msgstr ""
 
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:8
-msgid "Groups"
-msgstr ""
-
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:12
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:73
+msgid "apply to children"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:9
+#: rhodecode/templates/base/base.html:122
+#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
+#: rhodecode/templates/bookmarks/bookmarks.html:11
+#: rhodecode/templates/branches/branches.html:10
+#: rhodecode/templates/changelog/changelog.html:10
+#: rhodecode/templates/changeset/changeset.html:10
+#: rhodecode/templates/changeset/changeset_range.html:9
+#: rhodecode/templates/compare/compare_diff.html:9
+#: rhodecode/templates/files/file_diff.html:8
+#: rhodecode/templates/files/files.html:8
+#: rhodecode/templates/files/files_add.html:15
+#: rhodecode/templates/files/files_edit.html:15
+#: rhodecode/templates/followers/followers.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/pullrequests/pullrequest.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
+#: rhodecode/templates/settings/repo_settings.html:9
+#: rhodecode/templates/shortlog/shortlog.html:10
+#: rhodecode/templates/summary/summary.html:8
+#: rhodecode/templates/tags/tags.html:11
+msgid "Home"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:13
 msgid "with"
 msgstr ""
 
@@ -2131,7 +2289,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr ""
 
@@ -2167,20 +2325,22 @@
 msgid "action"
 msgstr ""
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr ""
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
 #, python-format
-msgid "Confirm to delete this group: %s"
-msgstr ""
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr ""
 
@@ -2273,8 +2433,8 @@
 msgstr ""
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr ""
 
@@ -2282,124 +2442,133 @@
 msgid "Visualisation settings"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:128
+#: rhodecode/templates/admin/settings/settings.html:127
+msgid "General"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:139
 msgid "Icons"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:133
-msgid "Show public repo icon on repositories"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:137
-msgid "Show private repo icon on repositories"
-msgstr ""
-
 #: rhodecode/templates/admin/settings/settings.html:144
+msgid "Show public repo icon on repositories"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:148
+msgid "Show private repo icon on repositories"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:155
 msgid "Meta-Tagging"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:149
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:176
+#: rhodecode/templates/admin/settings/settings.html:187
 msgid "VCS settings"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:185
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:190
+#: rhodecode/templates/admin/settings/settings.html:201
 msgid "require ssl for vcs operations"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:192
-msgid ""
-"RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
-"will return HTTP Error 406: Not Acceptable"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:198
-msgid "Hooks"
-msgstr ""
-
 #: rhodecode/templates/admin/settings/settings.html:203
+msgid ""
+"RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
+"will return HTTP Error 406: Not Acceptable"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:209
+msgid "Hooks"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:224
-msgid "Mercurial Extensions"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:229
-msgid "largefiles extensions"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:233
-msgid "hgsubversion extensions"
-msgstr ""
-
 #: rhodecode/templates/admin/settings/settings.html:235
+msgid "Mercurial Extensions"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:240
+msgid "largefiles extensions"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:244
+msgid "hgsubversion extensions"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:246
 msgid ""
 "Requires hgsubversion library installed. Allows clonning from svn remote "
 "locations"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:245
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:250
+#: rhodecode/templates/admin/settings/settings.html:261
 msgid ""
 "This a crucial application setting. If you are really sure you need to "
 "change this, you must restart application in order to make this setting "
 "take effect. Click this label to unlock."
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:251
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:252
+#: rhodecode/templates/admin/settings/settings.html:263
 msgid ""
 "Location where repositories are stored. After changing this value a "
 "restart, and rescan is required"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 msgid "Email to"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 msgid "Send"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 msgid "show"
 msgstr ""
 
@@ -2420,13 +2589,6 @@
 msgid "Password confirmation"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr ""
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr ""
@@ -2446,26 +2608,26 @@
 msgid "API key"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:59
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
 msgid "Inherit default permissions"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:152
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
 msgid ""
@@ -2473,46 +2635,48 @@
 "options does not have any action"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:158
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
 msgid "Fork repositories"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:186
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
 msgid "Nothing here yet"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:193
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:194
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 msgid "Permission"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:194
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 msgid "Edit Permission"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:243
+#: rhodecode/templates/admin/users/user_edit.html:247
 msgid "Email addresses"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, python-format
 msgid "Confirm to delete this email: %s"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:270
+#: rhodecode/templates/admin/users/user_edit.html:274
 msgid "New email address"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:277
+#: rhodecode/templates/admin/users/user_edit.html:281
 msgid "Add"
 msgstr ""
 
@@ -2568,31 +2732,33 @@
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
 #: rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, python-format
 msgid "Confirm to delete this repository: %s"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr ""
 
@@ -2601,7 +2767,7 @@
 msgstr ""
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:223
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr ""
 
@@ -2631,7 +2797,7 @@
 msgstr ""
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr ""
 
@@ -2680,6 +2846,18 @@
 msgid "Group members"
 msgstr ""
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+msgid "No members yet"
+msgstr ""
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+msgid "Permissions defined for this group"
+msgstr ""
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+msgid "No permissions set yet"
+msgstr ""
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr ""
@@ -2722,36 +2900,10 @@
 msgid "Inbox"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:122
-#: rhodecode/templates/base/base.html:300
-#: rhodecode/templates/base/base.html:302
-#: rhodecode/templates/base/base.html:304
-#: rhodecode/templates/bookmarks/bookmarks.html:11
-#: rhodecode/templates/branches/branches.html:10
-#: rhodecode/templates/changelog/changelog.html:10
-#: rhodecode/templates/changeset/changeset.html:10
-#: rhodecode/templates/changeset/changeset_range.html:9
-#: rhodecode/templates/compare/compare_diff.html:9
-#: rhodecode/templates/files/file_diff.html:8
-#: rhodecode/templates/files/files.html:8
-#: rhodecode/templates/files/files_add.html:15
-#: rhodecode/templates/files/files_edit.html:15
-#: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
-#: rhodecode/templates/pullrequests/pullrequest.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
-#: rhodecode/templates/settings/repo_settings.html:9
-#: rhodecode/templates/shortlog/shortlog.html:10
-#: rhodecode/templates/summary/summary.html:8
-#: rhodecode/templates/tags/tags.html:11
-msgid "Home"
-msgstr ""
-
 #: rhodecode/templates/base/base.html:123
-#: rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311
-#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2771,7 +2923,7 @@
 msgstr ""
 
 #: rhodecode/templates/base/base.html:152
-#: rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr ""
 
@@ -2816,50 +2968,66 @@
 
 #: rhodecode/templates/base/base.html:204
 #: rhodecode/templates/base/base.html:206
-#: rhodecode/templates/base/base.html:227
-msgid "settings"
-msgstr ""
-
-#: rhodecode/templates/base/base.html:209
+msgid "repository settings"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:210
 #: rhodecode/templates/data_table/_dt_elements.html:80
 #: rhodecode/templates/forks/fork.html:13
 msgid "fork"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:211
-#: rhodecode/templates/changelog/changelog.html:40
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:213
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:222
+#: rhodecode/templates/base/base.html:223
+msgid "lock"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:224
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:225
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:238
+#: rhodecode/templates/base/base.html:239
+msgid "defaults"
+msgstr ""
+
 #: rhodecode/templates/base/base.html:240
+msgid "settings"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:246
-#: rhodecode/templates/base/base.html:248
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:327
-#: rhodecode/templates/base/base.html:329
-#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
 #: rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr ""
@@ -2869,7 +3037,7 @@
 msgstr ""
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr ""
@@ -2883,14 +3051,26 @@
 msgid "Group"
 msgstr ""
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr ""
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr ""
 
+#: rhodecode/templates/base/root.html:51
+msgid "Open new pull request for selected changesets"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr ""
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, python-format
 msgid "%s Bookmarks"
@@ -2898,8 +3078,9 @@
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
 #: rhodecode/templates/tags/tags_data.html:8
 msgid "Author"
 msgstr ""
@@ -2913,34 +3094,15 @@
 msgid "Compare branches"
 msgstr ""
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
 msgid "Compare"
 msgstr ""
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:10
-msgid "compare"
-msgstr ""
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, python-format
 msgid "%s Changelog"
@@ -2954,57 +3116,63 @@
 msgstr[1] ""
 
 #: rhodecode/templates/changelog/changelog.html:37
+msgid "Clear selection"
+msgstr ""
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:37
-#: rhodecode/templates/forks/forks_data.html:21
-msgid "Compare fork"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:46
+#: rhodecode/templates/changelog/changelog.html:40
+msgid "Compare fork with parent"
+msgstr ""
+
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 msgid "Changeset status"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -3012,44 +3180,42 @@
 msgid "branch"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
 msgstr ""
@@ -3063,17 +3229,21 @@
 msgid "Changeset"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset.html:50
+msgid "patch diff"
+msgstr ""
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "%d comment"
@@ -3081,7 +3251,7 @@
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
@@ -3089,14 +3259,23 @@
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
 #, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr ""
-
-#: rhodecode/templates/changeset/changeset.html:119
-msgid "Changeset was too big and was cut off..."
-msgstr ""
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] ""
+msgstr[1] ""
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3161,14 +3340,16 @@
 msgid "Compare View"
 msgstr ""
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+msgid "Show combined compare"
+msgstr ""
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
 msgid "Files affected"
 msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
+msgid "show full diff for this file"
 msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:27
@@ -3180,7 +3361,16 @@
 msgstr ""
 
 #: rhodecode/templates/compare/compare_diff.html:37
-msgid "Outgoing changesets"
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
+msgid "No files"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
@@ -3190,40 +3380,117 @@
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr ""
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr ""
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr ""
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr ""
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, python-format
 msgid "Confirm to delete this user: %s"
 msgstr ""
 
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+msgid "New status$"
+msgstr ""
+
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
+msgid "This is a notification from RhodeCode."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+msgid "title"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+msgid "description"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+msgid "View this pull request here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+msgid "New status"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+msgid "A new user have registered in RhodeCode"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
 msgstr ""
 
 #: rhodecode/templates/errors/error_document.html:46
@@ -3241,13 +3508,13 @@
 msgstr ""
 
 #: rhodecode/templates/files/files.html:4
-#: rhodecode/templates/files/files.html:72
+#: rhodecode/templates/files/files.html:74
 #, python-format
 msgid "%s files"
 msgstr ""
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr ""
 
@@ -3325,7 +3592,7 @@
 msgstr ""
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:65
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 msgid "add new file"
 msgstr ""
 
@@ -3358,18 +3625,18 @@
 msgstr ""
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr ""
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr ""
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr ""
 
@@ -3381,43 +3648,47 @@
 msgid "Editing file"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 msgid "diff to revision"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 #, fuzzy
 msgid "show at revision"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+msgid "show full history"
+msgstr ""
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, fuzzy, python-format
 msgid "%s author"
 msgid_plural "%s authors"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/files/files_source.html:36
+#: rhodecode/templates/files/files_source.html:6
+msgid "Load file history"
+msgstr ""
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr ""
-
 #: rhodecode/templates/files/files_ypjax.html:5
 msgid "annotation"
 msgstr ""
@@ -3489,7 +3760,7 @@
 msgid "forked"
 msgstr ""
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr ""
 
@@ -3502,7 +3773,7 @@
 msgstr ""
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:27
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr ""
 
@@ -3524,19 +3795,19 @@
 msgid "ADD"
 msgstr ""
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr ""
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr ""
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr ""
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr ""
 
@@ -3557,7 +3828,7 @@
 msgid "New pull request"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest.html:28
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr ""
 
@@ -3566,17 +3837,17 @@
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:70
-#: rhodecode/templates/pullrequests/pullrequest_show.html:82
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:79
-#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 msgid "owner"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:91
-#: rhodecode/templates/pullrequests/pullrequest_show.html:109
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
 msgstr ""
 
@@ -3590,10 +3861,6 @@
 msgid "Title"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest.html:115
-msgid "description"
-msgstr ""
-
 #: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr ""
@@ -3603,6 +3870,11 @@
 msgid "Closed %s"
 msgstr ""
 
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "with status %s"
+msgstr ""
+
 #: rhodecode/templates/pullrequests/pullrequest_show.html:31
 msgid "Status"
 msgstr ""
@@ -3615,23 +3887,23 @@
 msgid "Still not reviewed by"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:47
+#: rhodecode/templates/pullrequests/pullrequest_show.html:48
 #, python-format
 msgid "%d reviewer"
 msgid_plural "%d reviewers"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:54
+#: rhodecode/templates/pullrequests/pullrequest_show.html:50
+msgid "pull request was reviewed by all reviewers"
+msgstr ""
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:58
 msgid "Created on"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:61
-msgid "Compare view"
-msgstr ""
-
 #: rhodecode/templates/pullrequests/pullrequest_show.html:65
-msgid "Incoming changesets"
+msgid "Compare view"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
@@ -3703,27 +3975,32 @@
 msgid "%s Shortlog"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog.html:14
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr ""
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr ""
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:18
-msgid "No commit message"
-msgstr ""
-
-#: rhodecode/templates/shortlog/shortlog_data.html:62
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr ""
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:71
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:79
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 msgid "Existing repository?"
 msgstr ""
 
@@ -3751,128 +4028,137 @@
 msgid "ATOM"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, python-format
+msgid "Repository locked by %s"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:72
+msgid "Repository unlocked"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:91
 #, python-format
 msgid "Non changable ID %s"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:87
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:133
-msgid "Show by Name"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:134
-msgid "Show by ID"
-msgstr ""
-
 #: rhodecode/templates/summary/summary.html:142
+msgid "Show by Name"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:143
+msgid "Show by ID"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:151
 msgid "Trending files"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:164
-msgid "Downloads are disabled for this repository"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:170
-msgid "Download as zip"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:173
-msgid "Check this to download archive with subrepos"
-msgstr ""
-
 #: rhodecode/templates/summary/summary.html:173
+msgid "Downloads are disabled for this repository"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:179
+msgid "Download as zip"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:182
+msgid "Check this to download archive with subrepos"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:197
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:218
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 msgid "Quick start"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:236
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:293
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:650
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr ""
 
@@ -3881,3 +4167,7 @@
 msgid "%s Tags"
 msgstr ""
 
+#: rhodecode/templates/tags/tags.html:29
+msgid "Compare tags"
+msgstr ""
+
Binary file rhodecode/i18n/fr/LC_MESSAGES/rhodecode.mo has changed
--- a/rhodecode/i18n/fr/LC_MESSAGES/rhodecode.po	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/fr/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: RhodeCode 1.1.5\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-10-02 11:23+0200\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
 "PO-Revision-Date: 2012-10-02 11:32+0100\n"
 "Last-Translator: Vincent Duvert <vincent@duvert.net>\n"
 "Language-Team: fr <LL@li.org>\n"
@@ -21,38 +21,36 @@
 msgid "All Branches"
 msgstr "Toutes les branches"
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr "Afficher les espaces et tabulations"
 
-#: rhodecode/controllers/changeset.py:90
-#: rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr "Ignorer les espaces et tabulations"
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, python-format
 msgid "%s line context"
 msgstr "Afficher %s lignes de contexte"
 
-#: rhodecode/controllers/changeset.py:333
-#: rhodecode/controllers/changeset.py:348
-#: rhodecode/lib/diffs.py:71
-msgid "binary file"
-msgstr "Fichier binaire"
-
-#: rhodecode/controllers/changeset.py:381
-#: rhodecode/controllers/pullrequests.py:376
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
 #, python-format
 msgid "Status change -> %s"
 msgstr "Changement de statut -> %s"
 
-#: rhodecode/controllers/changeset.py:412
-msgid "Changing status on a changeset associated witha closed pull request is not allowed"
-msgstr "Le changement de statut d’un changeset associé à une pull request fermée n’est pas autorisé."
-
-#: rhodecode/controllers/compare.py:72
-#: rhodecode/controllers/pullrequests.py:114
+#: rhodecode/controllers/changeset.py:346
+msgid ""
+"Changing status on a changeset associated witha closed pull request is "
+"not allowed"
+msgstr ""
+"Le changement de statut d’un changeset associé à une pull request fermée "
+"n’est pas autorisé."
+
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 msgid "There are no changesets yet"
 msgstr "Il n’y a aucun changement pour le moment"
 
@@ -62,7 +60,9 @@
 
 #: rhodecode/controllers/error.py:98
 msgid "The request could not be understood by the server due to malformed syntax."
-msgstr "Le serveur n’a pas pu interpréter la requête à cause d’une erreur de syntaxe"
+msgstr ""
+"Le serveur n’a pas pu interpréter la requête à cause d’une erreur de "
+"syntaxe"
 
 #: rhodecode/controllers/error.py:101
 msgid "Unauthorized access to resource"
@@ -77,124 +77,136 @@
 msgstr "Ressource introuvable"
 
 #: rhodecode/controllers/error.py:107
-msgid "The server encountered an unexpected condition which prevented it from fulfilling the request."
-msgstr "La requête n’a pu être traitée en raison d’une erreur survenue sur le serveur."
-
-#: rhodecode/controllers/feed.py:49
+msgid ""
+"The server encountered an unexpected condition which prevented it from "
+"fulfilling the request."
+msgstr ""
+"La requête n’a pu être traitée en raison d’une erreur survenue sur le "
+"serveur."
+
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
 msgstr "Changements sur le dépôt %s"
 
-#: rhodecode/controllers/feed.py:50
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
 msgstr "Flux %s de %s"
 
-#: rhodecode/controllers/feed.py:67
-#: rhodecode/templates/changeset/changeset.html:119
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
 msgid "Changeset was too big and was cut off..."
 msgstr "Cet ensemble de changements était trop important et a été découpé…"
 
-#: rhodecode/controllers/feed.py:81
+#: rhodecode/controllers/feed.py:92
 msgid "commited on"
 msgstr "a commité, le"
 
-#: rhodecode/controllers/files.py:84
+#: rhodecode/controllers/files.py:86
 msgid "click here to add new file"
 msgstr "Ajouter un nouveau fichier"
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, python-format
 msgid "There are no files yet %s"
 msgstr "Il n’y a pas encore de fichiers %s"
 
-#: rhodecode/controllers/files.py:239
-#: rhodecode/controllers/files.py:299
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
 msgstr "Ce dépôt a été verrouillé par %s sur %s."
 
-#: rhodecode/controllers/files.py:266
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
 msgstr "%s édité via RhodeCode"
 
-#: rhodecode/controllers/files.py:271
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr "Aucun changement"
 
-#: rhodecode/controllers/files.py:282
-#: rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
 msgstr "Commit réalisé avec succès sur %s"
 
-#: rhodecode/controllers/files.py:287
-#: rhodecode/controllers/files.py:352
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr "Une erreur est survenue durant le commit"
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, python-format
 msgid "Added %s via RhodeCode"
 msgstr "%s ajouté par RhodeCode"
 
-#: rhodecode/controllers/files.py:332
+#: rhodecode/controllers/files.py:358
 msgid "No content"
 msgstr "Aucun contenu"
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 msgid "No filename"
 msgstr "Aucun nom de fichier"
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr "Les téléchargements sont désactivés"
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
 msgstr "Révision %s inconnue."
 
-#: rhodecode/controllers/files.py:391
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr "Dépôt vide."
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr "Type d’archive inconnu"
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr "Changesets"
 
-#: rhodecode/controllers/files.py:495
-#: rhodecode/controllers/pullrequests.py:73
-#: rhodecode/controllers/summary.py:236
-#: rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr "Branches"
 
-#: rhodecode/controllers/files.py:496
-#: rhodecode/controllers/pullrequests.py:77
-#: rhodecode/controllers/summary.py:237
-#: rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr "Tags"
 
-#: rhodecode/controllers/forks.py:74
-#: rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
-msgid "%s repository is not mapped to db perhaps it was created or renamed from the filesystem please run the application again in order to rescan repositories"
-msgstr "Le dépôt %s n’est pas représenté dans la base de données. Il a probablement été créé ou renommé manuellement. Veuillez relancer l’application pour rescanner les dépôts."
-
-#: rhodecode/controllers/forks.py:134
-#: rhodecode/controllers/settings.py:73
+msgid ""
+"%s repository is not mapped to db perhaps it was created or renamed from "
+"the filesystem please run the application again in order to rescan "
+"repositories"
+msgstr ""
+"Le dépôt %s n’est pas représenté dans la base de données. Il a "
+"probablement été créé ou renommé manuellement. Veuillez relancer "
+"l’application pour rescanner les dépôts."
+
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
-msgid "%s repository is not mapped to db perhaps it was created or renamed from the file system please run the application again in order to rescan repositories"
-msgstr "Le dépôt %s n’est pas représenté dans la base de données. Il a probablement été créé ou renommé manuellement. Veuillez relancer l’application pour rescanner les dépôts."
+msgid ""
+"%s repository is not mapped to db perhaps it was created or renamed from "
+"the file system please run the application again in order to rescan "
+"repositories"
+msgstr ""
+"Le dépôt %s n’est pas représenté dans la base de données. Il a "
+"probablement été créé ou renommé manuellement. Veuillez relancer "
+"l’application pour rescanner les dépôts."
 
 #: rhodecode/controllers/forks.py:168
 #, python-format
@@ -206,14 +218,12 @@
 msgid "An error occurred during repository forking %s"
 msgstr "Une erreur est survenue durant le fork du dépôt %s."
 
-#: rhodecode/controllers/journal.py:203
-#: rhodecode/controllers/journal.py:240
+#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
 msgid "public journal"
 msgstr "Journal public"
 
-#: rhodecode/controllers/journal.py:207
-#: rhodecode/controllers/journal.py:244
-#: rhodecode/templates/base/base.html:229
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr "Journal"
 
@@ -226,95 +236,103 @@
 msgstr "Un lien de rénitialisation de votre mot de passe vous a été envoyé."
 
 #: rhodecode/controllers/login.py:184
-msgid "Your password reset was successful, new password has been sent to your email"
-msgstr "Votre mot de passe a été réinitialisé. Votre nouveau mot de passe vous a été envoyé par e-mail."
-
-#: rhodecode/controllers/pullrequests.py:75
-#: rhodecode/model/scm.py:549
+msgid ""
+"Your password reset was successful, new password has been sent to your "
+"email"
+msgstr ""
+"Votre mot de passe a été réinitialisé. Votre nouveau mot de passe vous a "
+"été envoyé par e-mail."
+
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr "Signets"
 
-#: rhodecode/controllers/pullrequests.py:182
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
 msgstr "Les requêtes de pull nécessitent un titre d’au moins 3 caractères."
 
-#: rhodecode/controllers/pullrequests.py:184
+#: rhodecode/controllers/pullrequests.py:188
 msgid "error during creation of pull request"
 msgstr "Une erreur est survenue lors de la création de la requête de pull."
 
-#: rhodecode/controllers/pullrequests.py:205
+#: rhodecode/controllers/pullrequests.py:220
 msgid "Successfully opened new pull request"
 msgstr "La requête de pull a été ouverte avec succès."
 
-#: rhodecode/controllers/pullrequests.py:208
+#: rhodecode/controllers/pullrequests.py:223
 msgid "Error occurred during sending pull request"
 msgstr "Une erreur est survenue durant l’envoi de la requête de pull."
 
-#: rhodecode/controllers/pullrequests.py:241
+#: rhodecode/controllers/pullrequests.py:256
 msgid "Successfully deleted pull request"
 msgstr "La requête de pull a été supprimée avec succès."
 
-#: rhodecode/controllers/search.py:132
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr "Requête invalide. Essayer de la mettre entre guillemets."
 
-#: rhodecode/controllers/search.py:137
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
-msgstr "L’index de recherche n’est pas présent. Veuillez exécuter l’indexeur de code Whoosh."
-
-#: rhodecode/controllers/search.py:141
+msgstr ""
+"L’index de recherche n’est pas présent. Veuillez exécuter l’indexeur de "
+"code Whoosh."
+
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr "Une erreur est survenue durant l’opération de recherche."
 
 #: rhodecode/controllers/settings.py:108
-#: rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
 msgstr "Dépôt %s mis à jour avec succès."
 
 #: rhodecode/controllers/settings.py:126
-#: rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
 msgstr "Une erreur est survenue lors de la mise à jour du dépôt %s."
 
 #: rhodecode/controllers/settings.py:144
-#: rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/admin/repos.py:304
 #, python-format
-msgid "%s repository is not mapped to db perhaps it was moved or renamed  from the filesystem please run the application again in order to rescan repositories"
-msgstr "Le dépôt %s n’est pas représenté dans la base de données. Il a probablement été déplacé ou renommé manuellement. Veuillez relancer l’application pour rescanner les dépôts."
+msgid ""
+"%s repository is not mapped to db perhaps it was moved or renamed  from "
+"the filesystem please run the application again in order to rescan "
+"repositories"
+msgstr ""
+"Le dépôt %s n’est pas représenté dans la base de données. Il a "
+"probablement été déplacé ou renommé manuellement. Veuillez relancer "
+"l’application pour rescanner les dépôts."
 
 #: rhodecode/controllers/settings.py:156
-#: rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
 msgstr "Dépôt %s supprimé"
 
 #: rhodecode/controllers/settings.py:160
-#: rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
 msgstr "Erreur pendant la suppression de %s"
 
 #: rhodecode/controllers/settings.py:179
-#| msgid "unlock"
 msgid "unlocked"
 msgstr "déverrouillé"
 
 #: rhodecode/controllers/settings.py:182
-#| msgid "unlock"
 msgid "locked"
 msgstr "verrouillé"
 
 #: rhodecode/controllers/settings.py:184
 #, python-format
-#| msgid "forked %s repository as %s"
 msgid "Repository has been %s"
 msgstr "Le dépôt a été %s."
 
 #: rhodecode/controllers/settings.py:188
-#: rhodecode/controllers/admin/repos.py:422
+#: rhodecode/controllers/admin/repos.py:424
 msgid "An error occurred during unlocking"
 msgstr "Une erreur est survenue durant le déverrouillage."
 
@@ -323,10 +341,20 @@
 msgstr "Aucune donnée actuellement disponible."
 
 #: rhodecode/controllers/summary.py:144
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr "La mise à jour des statistiques est désactivée pour ce dépôt."
 
+#: rhodecode/controllers/admin/defaults.py:96
+#, fuzzy
+msgid "Default settings updated successfully"
+msgstr "Mise à jour réussie des réglages LDAP"
+
+#: rhodecode/controllers/admin/defaults.py:110
+#, fuzzy
+msgid "error occurred during update of defaults"
+msgstr "Une erreur est survenue durant la mise à jour de l’utilisateur %s."
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr "Base"
@@ -384,18 +412,23 @@
 msgstr "Une erreur est survenue durant la mise à jour des réglages du LDAP."
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr "Aucun"
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr "Lire"
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr "Écrire"
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -408,226 +441,235 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
 #: rhodecode/templates/base/base.html:197
-#: rhodecode/templates/base/base.html:346
-#: rhodecode/templates/base/base.html:348
 #: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr "Administration"
 
-#: rhodecode/controllers/admin/permissions.py:65
+#: rhodecode/controllers/admin/permissions.py:69
 msgid "disabled"
 msgstr "Désactivé"
 
-#: rhodecode/controllers/admin/permissions.py:67
-msgid "allowed with manual account activation"
-msgstr "Autorisé avec activation manuelle du compte"
-
-#: rhodecode/controllers/admin/permissions.py:69
-msgid "allowed with automatic account activation"
-msgstr "Autorisé avec activation automatique du compte"
-
 #: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+msgid "allowed with manual account activation"
+msgstr "Autorisé avec activation manuelle du compte"
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr "Autorisé avec activation automatique du compte"
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr "Interdite"
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr "Autorisée"
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr "Permissions par défaut mises à jour avec succès"
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr "erreur pendant la mise à jour des permissions"
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
 msgstr "[Pas un fork]"
 
-#: rhodecode/controllers/admin/repos.py:192
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
 msgstr "Le dépôt %s a été créé depuis %s."
 
-#: rhodecode/controllers/admin/repos.py:196
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
 msgstr "Le dépôt %s a été créé."
 
-#: rhodecode/controllers/admin/repos.py:227
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
 msgstr "Une erreur est survenue durant la création du dépôt %s."
 
-#: rhodecode/controllers/admin/repos.py:319
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
 msgstr "Impossible de supprimer le dépôt %s : Des forks y sont attachés."
 
-#: rhodecode/controllers/admin/repos.py:348
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr "Une erreur est survenue durant la suppression de l’utilisateur du dépôt."
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
-msgstr "Une erreur est survenue durant la suppression du groupe d’utilisateurs de ce dépôt."
-
-#: rhodecode/controllers/admin/repos.py:385
+msgstr ""
+"Une erreur est survenue durant la suppression du groupe d’utilisateurs de"
+" ce dépôt."
+
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr "Une erreur est survenue durant la suppression des statistiques du dépôt."
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr "Une erreur est survenue durant l’invalidation du cache."
 
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr "La visibilité du dépôt dans le journal public a été mise à jour."
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
-msgstr "Une erreur est survenue durant la configuration du journal public pour ce dépôt."
-
-#: rhodecode/controllers/admin/repos.py:451
-#: rhodecode/model/validators.py:300
+msgstr ""
+"Une erreur est survenue durant la configuration du journal public pour ce"
+" dépôt."
+
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr "Jeton d’authentification incorrect."
 
-#: rhodecode/controllers/admin/repos.py:464
+#: rhodecode/controllers/admin/repos.py:466
 msgid "Pulled from remote location"
 msgstr "Les changements distants ont été récupérés."
 
-#: rhodecode/controllers/admin/repos.py:466
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr "Une erreur est survenue durant le pull depuis la source distante."
 
-#: rhodecode/controllers/admin/repos.py:482
+#: rhodecode/controllers/admin/repos.py:484
 msgid "Nothing"
 msgstr "[Aucun dépôt]"
 
-#: rhodecode/controllers/admin/repos.py:484
+#: rhodecode/controllers/admin/repos.py:486
 #, python-format
 msgid "Marked repo %s as fork of %s"
 msgstr "Le dépôt %s a été marké comme fork de %s"
 
-#: rhodecode/controllers/admin/repos.py:488
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr "Une erreur est survenue durant cette opération."
 
-#: rhodecode/controllers/admin/repos_groups.py:117
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
 msgstr "Le groupe de dépôts %s a été créé."
 
-#: rhodecode/controllers/admin/repos_groups.py:130
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
 msgstr "Une erreur est survenue durant la création du groupe de dépôts %s."
 
-#: rhodecode/controllers/admin/repos_groups.py:164
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
 msgstr "Le groupe de dépôts %s a été mis à jour."
 
-#: rhodecode/controllers/admin/repos_groups.py:177
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
 msgstr "Une erreur est survenue durant la mise à jour du groupe de dépôts %s."
 
-#: rhodecode/controllers/admin/repos_groups.py:195
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
 msgstr "Ce groupe contient %s dépôts et ne peut être supprimé."
 
-#: rhodecode/controllers/admin/repos_groups.py:203
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
 msgstr "Le groupe de dépôts %s a été supprimé."
 
-#: rhodecode/controllers/admin/repos_groups.py:209
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr "Impossible de supprimer ce groupe : Il contient des sous-groupes."
 
-#: rhodecode/controllers/admin/repos_groups.py:214
-#: rhodecode/controllers/admin/repos_groups.py:219
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
 msgstr "Une erreur est survenue durant la suppression du groupe de dépôts %s."
 
-#: rhodecode/controllers/admin/repos_groups.py:240
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
-msgstr "Une erreur est survenue durant la suppression de l’utilisateur du groupe de dépôts."
-
-#: rhodecode/controllers/admin/repos_groups.py:261
+msgstr ""
+"Une erreur est survenue durant la suppression de l’utilisateur du groupe "
+"de dépôts."
+
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
-msgstr "Une erreur est survenue durant la suppression du groupe d’utilisateurs du groupe de dépôts."
-
-#: rhodecode/controllers/admin/settings.py:122
+msgstr ""
+"Une erreur est survenue durant la suppression du groupe d’utilisateurs du"
+" groupe de dépôts."
+
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
 msgstr "Après re-scan : %s ajouté(s), %s enlevé(s)"
 
-#: rhodecode/controllers/admin/settings.py:130
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
 msgstr "La tâche de réindexation Whoosh a été planifiée."
 
-#: rhodecode/controllers/admin/settings.py:161
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr "Réglages mis à jour"
 
-#: rhodecode/controllers/admin/settings.py:165
-#: rhodecode/controllers/admin/settings.py:293
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr "Une erreur est survenue durant la mise à jour des options."
 
-#: rhodecode/controllers/admin/settings.py:201
+#: rhodecode/controllers/admin/settings.py:207
 msgid "Updated visualisation settings"
 msgstr "Réglages d’affichage mis à jour."
 
-#: rhodecode/controllers/admin/settings.py:206
+#: rhodecode/controllers/admin/settings.py:212
 msgid "error occurred during updating visualisation settings"
 msgstr "Une erreur est survenue durant la mise à jour des réglages d’affichages."
 
-#: rhodecode/controllers/admin/settings.py:289
+#: rhodecode/controllers/admin/settings.py:295
 msgid "Updated VCS settings"
 msgstr "Réglages des gestionnaires de versions mis à jour."
 
-#: rhodecode/controllers/admin/settings.py:303
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr "Le nouveau hook a été ajouté."
 
-#: rhodecode/controllers/admin/settings.py:315
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr "Hooks mis à jour"
 
-#: rhodecode/controllers/admin/settings.py:319
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr "Une erreur est survenue durant la création du hook."
 
-#: rhodecode/controllers/admin/settings.py:338
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr "La tâche d’e-mail a été créée."
 
-#: rhodecode/controllers/admin/settings.py:393
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
-msgstr "Vous ne pouvez pas éditer cet utilisateur ; il est nécessaire pour le bon fonctionnement de l’application."
-
-#: rhodecode/controllers/admin/settings.py:424
+msgstr ""
+"Vous ne pouvez pas éditer cet utilisateur ; il est nécessaire pour le bon"
+" fonctionnement de l’application."
+
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr "Votre compte a été mis à jour avec succès"
 
-#: rhodecode/controllers/admin/settings.py:439
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
 msgstr "Une erreur est survenue durant la mise à jour de l’utilisateur %s."
@@ -642,97 +684,101 @@
 msgid "error occurred during creation of user %s"
 msgstr "Une erreur est survenue durant la création de l’utilisateur %s."
 
-#: rhodecode/controllers/admin/users.py:171
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr "L’utilisateur a été mis à jour avec succès."
 
-#: rhodecode/controllers/admin/users.py:207
-msgid "successfully deleted user"
-msgstr "L’utilisateur a été supprimé avec succès."
-
 #: rhodecode/controllers/admin/users.py:212
+msgid "successfully deleted user"
+msgstr "L’utilisateur a été supprimé avec succès."
+
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr "Une erreur est survenue durant la suppression de l’utilisateur."
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr "Vous ne pouvez pas éditer cet utilisateur"
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr "La permission de création de dépôts a été accordée à l’utilisateur."
 
-#: rhodecode/controllers/admin/users.py:271
+#: rhodecode/controllers/admin/users.py:277
 msgid "Revoked 'repository create' permission to user"
 msgstr "La permission de création de dépôts a été révoquée à l’utilisateur."
 
-#: rhodecode/controllers/admin/users.py:277
+#: rhodecode/controllers/admin/users.py:283
 msgid "Granted 'repository fork' permission to user"
 msgstr "La permission de fork de dépôts a été accordée à l’utilisateur."
 
-#: rhodecode/controllers/admin/users.py:282
+#: rhodecode/controllers/admin/users.py:288
 msgid "Revoked 'repository fork' permission to user"
 msgstr "La permission de fork de dépôts a été révoquée à l’utilisateur."
 
-#: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 msgid "An error occurred during permissions saving"
 msgstr "Une erreur est survenue durant l’enregistrement des permissions."
 
-#: rhodecode/controllers/admin/users.py:303
+#: rhodecode/controllers/admin/users.py:309
 #, python-format
 msgid "Added email %s to user"
 msgstr "L’e-mail « %s » a été ajouté à l’utilisateur."
 
-#: rhodecode/controllers/admin/users.py:309
+#: rhodecode/controllers/admin/users.py:315
 msgid "An error occurred during email saving"
 msgstr "Une erreur est survenue durant l’enregistrement de l’e-mail."
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 msgid "Removed email from user"
 msgstr "L’e-mail a été enlevé de l’utilisateur."
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
 msgstr "Le groupe d’utilisateurs %s a été créé."
 
-#: rhodecode/controllers/admin/users_groups.py:95
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
 msgstr "Une erreur est survenue durant la création du groupe d’utilisateurs %s."
 
-#: rhodecode/controllers/admin/users_groups.py:135
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
 msgstr "Le groupe d’utilisateurs %s a été mis à jour."
 
-#: rhodecode/controllers/admin/users_groups.py:157
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
 msgstr "Une erreur est survenue durant la mise à jour du groupe d’utilisateurs %s."
 
-#: rhodecode/controllers/admin/users_groups.py:174
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr "Le groupe d’utilisateurs a été supprimé avec succès."
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr "Une erreur est survenue lors de la suppression du groupe d’utilisateurs."
 
-#: rhodecode/controllers/admin/users_groups.py:233
+#: rhodecode/controllers/admin/users_groups.py:257
 msgid "Granted 'repository create' permission to users group"
-msgstr "La permission de création de dépôts a été accordée au groupe d’utilisateurs."
-
-#: rhodecode/controllers/admin/users_groups.py:238
+msgstr ""
+"La permission de création de dépôts a été accordée au groupe "
+"d’utilisateurs."
+
+#: rhodecode/controllers/admin/users_groups.py:262
 msgid "Revoked 'repository create' permission to users group"
-msgstr "La permission de création de dépôts a été révoquée au groupe d’utilisateurs."
-
-#: rhodecode/controllers/admin/users_groups.py:244
+msgstr ""
+"La permission de création de dépôts a été révoquée au groupe "
+"d’utilisateurs."
+
+#: rhodecode/controllers/admin/users_groups.py:268
 msgid "Granted 'repository fork' permission to users group"
 msgstr "La permission de fork de dépôts a été accordée au groupe d’utilisateur."
 
-#: rhodecode/controllers/admin/users_groups.py:249
+#: rhodecode/controllers/admin/users_groups.py:273
 msgid "Revoked 'repository fork' permission to users group"
 msgstr "La permission de fork de dépôts a été révoquée au groupe d’utilisateurs."
 
@@ -744,11 +790,17 @@
 msgid "You need to be a signed in to view this page"
 msgstr "Vous devez être connecté pour visualiser cette page."
 
-#: rhodecode/lib/diffs.py:87
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr "Fichier binaire"
+
+#: rhodecode/lib/diffs.py:90
 msgid "Changeset was too big and was cut off, use diff menu to display this diff"
-msgstr "Cet ensemble de changements était trop gros pour être affiché et a été découpé, utilisez le menu « Diff » pour afficher les différences."
-
-#: rhodecode/lib/diffs.py:97
+msgstr ""
+"Cet ensemble de changements était trop gros pour être affiché et a été "
+"découpé, utilisez le menu « Diff » pour afficher les différences."
+
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr "Aucun changement détecté."
 
@@ -765,192 +817,289 @@
 msgid "False"
 msgstr "Faux"
 
-#: rhodecode/lib/helpers.py:533
+#: rhodecode/lib/helpers.py:529
+#, fuzzy, python-format
+msgid "Deleted branch: %s"
+msgstr "Dépôt %s supprimé"
+
+#: rhodecode/lib/helpers.py:532
+#, fuzzy, python-format
+msgid "Created tag: %s"
+msgstr "utilisateur %s créé"
+
+#: rhodecode/lib/helpers.py:545
 msgid "Changeset not found"
 msgstr "Ensemble de changements non trouvé"
 
-#: rhodecode/lib/helpers.py:556
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
 msgstr "Afficher les changements combinés %s->%s"
 
-#: rhodecode/lib/helpers.py:562
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr "vue de comparaison"
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr "et"
 
-#: rhodecode/lib/helpers.py:583
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
 msgstr "%s de plus"
 
-#: rhodecode/lib/helpers.py:584
-#: rhodecode/templates/changelog/changelog.html:49
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr "révisions"
 
-#: rhodecode/lib/helpers.py:607
-msgid "fork name "
-msgstr "Nom du fork"
-
-#: rhodecode/lib/helpers.py:621
+#: rhodecode/lib/helpers.py:640
+#, fuzzy, python-format
+msgid "fork name %s"
+msgstr "Nom du fork %s"
+
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
-msgstr "Requête de pull nº%s"
-
-#: rhodecode/lib/helpers.py:627
+msgstr "Requête de pull #%s"
+
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr "[a supprimé] le dépôt"
 
-#: rhodecode/lib/helpers.py:629
-#: rhodecode/lib/helpers.py:639
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr "[a créé] le dépôt"
 
-#: rhodecode/lib/helpers.py:631
+#: rhodecode/lib/helpers.py:663
 msgid "[created] repository as fork"
 msgstr "[a créé] le dépôt en tant que fork"
 
-#: rhodecode/lib/helpers.py:633
-#: rhodecode/lib/helpers.py:641
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr "[a forké] le dépôt"
 
-#: rhodecode/lib/helpers.py:635
-#: rhodecode/lib/helpers.py:643
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr "[a mis à jour] le dépôt"
 
-#: rhodecode/lib/helpers.py:637
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr "[a supprimé] le dépôt"
 
-#: rhodecode/lib/helpers.py:645
+#: rhodecode/lib/helpers.py:677
 msgid "[created] user"
 msgstr "[a créé] l’utilisateur"
 
-#: rhodecode/lib/helpers.py:647
+#: rhodecode/lib/helpers.py:679
 msgid "[updated] user"
 msgstr "[a mis à jour] l’utilisateur"
 
-#: rhodecode/lib/helpers.py:649
+#: rhodecode/lib/helpers.py:681
 msgid "[created] users group"
 msgstr "[a créé] le groupe d’utilisateurs"
 
-#: rhodecode/lib/helpers.py:651
+#: rhodecode/lib/helpers.py:683
 msgid "[updated] users group"
 msgstr "[a mis à jour] le groupe d’utilisateurs"
 
-#: rhodecode/lib/helpers.py:653
+#: rhodecode/lib/helpers.py:685
 msgid "[commented] on revision in repository"
 msgstr "[a commenté] une révision du dépôt"
 
-#: rhodecode/lib/helpers.py:655
+#: rhodecode/lib/helpers.py:687
 msgid "[commented] on pull request for"
 msgstr "[a commenté] la requête de pull pour"
 
-#: rhodecode/lib/helpers.py:657
+#: rhodecode/lib/helpers.py:689
 msgid "[closed] pull request for"
 msgstr "[a fermé] la requête de pull de"
 
-#: rhodecode/lib/helpers.py:659
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr "[a pushé] dans"
 
-#: rhodecode/lib/helpers.py:661
+#: rhodecode/lib/helpers.py:693
 msgid "[committed via RhodeCode] into repository"
 msgstr "[a commité via RhodeCode] dans le dépôt"
 
-#: rhodecode/lib/helpers.py:663
+#: rhodecode/lib/helpers.py:695
 msgid "[pulled from remote] into repository"
 msgstr "[a pullé depuis un site distant] dans le dépôt"
 
-#: rhodecode/lib/helpers.py:665
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr "[a pullé] depuis"
 
-#: rhodecode/lib/helpers.py:667
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr "[suit maintenant] le dépôt"
 
-#: rhodecode/lib/helpers.py:669
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr "[ne suit plus] le dépôt"
 
-#: rhodecode/lib/helpers.py:845
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
 msgstr "et %s de plus"
 
-#: rhodecode/lib/helpers.py:849
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
 msgstr "Aucun fichier"
 
-#: rhodecode/lib/utils2.py:352
+#: rhodecode/lib/utils2.py:403
 #, python-format
 msgid "%d year"
 msgid_plural "%d years"
 msgstr[0] "%d an"
 msgstr[1] "%d ans"
 
-#: rhodecode/lib/utils2.py:353
+#: rhodecode/lib/utils2.py:404
 #, python-format
 msgid "%d month"
 msgid_plural "%d months"
 msgstr[0] "%d mois"
 msgstr[1] "%d mois"
 
-#: rhodecode/lib/utils2.py:354
+#: rhodecode/lib/utils2.py:405
 #, python-format
 msgid "%d day"
 msgid_plural "%d days"
 msgstr[0] "%d jour"
 msgstr[1] "%d jours"
 
-#: rhodecode/lib/utils2.py:355
+#: rhodecode/lib/utils2.py:406
 #, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] "%d heure"
 msgstr[1] "%d heures"
 
-#: rhodecode/lib/utils2.py:356
+#: rhodecode/lib/utils2.py:407
 #, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
 msgstr[0] "%d minute"
 msgstr[1] "%d minutes"
 
-#: rhodecode/lib/utils2.py:357
+#: rhodecode/lib/utils2.py:408
 #, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
 msgstr[0] "%d seconde"
 msgstr[1] "%d secondes"
 
-#: rhodecode/lib/utils2.py:372
+#: rhodecode/lib/utils2.py:424
+#, fuzzy, python-format
+msgid "in %s"
+msgstr "à la ligne %s"
+
+#: rhodecode/lib/utils2.py:426
 #, python-format
 msgid "%s ago"
 msgstr "Il y a %s"
 
-#: rhodecode/lib/utils2.py:374
+#: rhodecode/lib/utils2.py:428
+#, fuzzy, python-format
+msgid "in %s and %s"
+msgstr "Il y a %s et %s"
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
 msgstr "Il y a %s et %s"
 
-#: rhodecode/lib/utils2.py:377
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr "à l’instant"
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 msgid "password reset link"
 msgstr "Réinitialisation du mot de passe"
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+msgid "Repository no access"
+msgstr "Aucun accès au dépôt"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+msgid "Repository read access"
+msgstr "Accès en lecture au dépôt"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+msgid "Repository write access"
+msgstr "Accès en écriture au dépôt"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+msgid "Repository admin access"
+msgstr "Accès administrateur au dépôt"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+msgid "Repositories Group no access"
+msgstr "Aucun accès au groupe de dépôts"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+msgid "Repositories Group read access"
+msgstr "Accès en lecture au groupe de dépôts"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+msgid "Repositories Group write access"
+msgstr "Accès en écriture au groupe de dépôts"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+msgid "Repositories Group admin access"
+msgstr "Accès administrateur au groupe de dépôts"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+msgid "RhodeCode Administrator"
+msgstr "Administrateur RhodeCode"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+msgid "Repository creation disabled"
+msgstr "Création de dépôt désactivée"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+msgid "Repository creation enabled"
+msgstr "Création de dépôt activée"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+msgid "Repository forking disabled"
+msgstr "Fork de dépôt désactivé"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+msgid "Repository forking enabled"
+msgstr "Fork de dépôt activé"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+msgid "Register disabled"
+msgstr "Enregistrement désactivé"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr "Enregistrer un nouvel utilisateur Rhodecode manuellement activé"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr "Enregistrer un nouvel utilisateur Rhodecode auto-activé"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr "Pas encore relue"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+msgid "Approved"
+msgstr "Approuvée "
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr "Rejetée"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr "En cours de relecture"
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
@@ -960,86 +1109,6 @@
 msgid "[Mention]"
 msgstr "[Mention]"
 
-#: rhodecode/model/db.py:1164
-msgid "Repository no access"
-msgstr "Aucun accès au dépôt"
-
-#: rhodecode/model/db.py:1165
-msgid "Repository read access"
-msgstr "Accès en lecture au dépôt"
-
-#: rhodecode/model/db.py:1166
-msgid "Repository write access"
-msgstr "Accès en écriture au dépôt"
-
-#: rhodecode/model/db.py:1167
-msgid "Repository admin access"
-msgstr "Accès administrateur au dépôt"
-
-#: rhodecode/model/db.py:1169
-msgid "Repositories Group no access"
-msgstr "Aucun accès au groupe de dépôts"
-
-#: rhodecode/model/db.py:1170
-msgid "Repositories Group read access"
-msgstr "Accès en lecture au groupe de dépôts"
-
-#: rhodecode/model/db.py:1171
-msgid "Repositories Group write access"
-msgstr "Accès en écriture au groupe de dépôts"
-
-#: rhodecode/model/db.py:1172
-msgid "Repositories Group admin access"
-msgstr "Accès administrateur au groupe de dépôts"
-
-#: rhodecode/model/db.py:1174
-msgid "RhodeCode Administrator"
-msgstr "Administrateur RhodeCode"
-
-#: rhodecode/model/db.py:1175
-msgid "Repository creation disabled"
-msgstr "Création de dépôt désactivée"
-
-#: rhodecode/model/db.py:1176
-msgid "Repository creation enabled"
-msgstr "Création de dépôt activée"
-
-#: rhodecode/model/db.py:1177
-msgid "Repository forking disabled"
-msgstr "Fork de dépôt désactivé"
-
-#: rhodecode/model/db.py:1178
-msgid "Repository forking enabled"
-msgstr "Fork de dépôt activé"
-
-#: rhodecode/model/db.py:1179
-msgid "Register disabled"
-msgstr "Enregistrement désactivé"
-
-#: rhodecode/model/db.py:1180
-msgid "Register new user with RhodeCode with manual activation"
-msgstr "Enregistrer un nouvel utilisateur Rhodecode manuellement activé"
-
-#: rhodecode/model/db.py:1183
-msgid "Register new user with RhodeCode with auto activation"
-msgstr "Enregistrer un nouvel utilisateur Rhodecode auto-activé"
-
-#: rhodecode/model/db.py:1611
-msgid "Not Reviewed"
-msgstr "Pas encore relue"
-
-#: rhodecode/model/db.py:1612
-msgid "Approved"
-msgstr "Approuvée "
-
-#: rhodecode/model/db.py:1613
-msgid "Rejected"
-msgstr "Rejetée"
-
-#: rhodecode/model/db.py:1614
-msgid "Under Review"
-msgstr "En cours de relecture"
-
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
 msgstr "Veuillez entrer un identifiant"
@@ -1059,35 +1128,41 @@
 msgstr "Entrez au moins %(min)i caractères"
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
-msgstr "a posté un commentaire sur le commit"
+#, fuzzy, python-format
+msgid "commented on commit at %(when)s"
+msgstr "a posté un commentaire sur le commit %(when)s"
 
 #: rhodecode/model/notification.py:221
-msgid "sent message"
-msgstr "a envoyé un message"
+#, fuzzy, python-format
+msgid "sent message at %(when)s"
+msgstr "a envoyé un message  %(when)s"
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
-msgstr "vous a mentioné"
+#, fuzzy, python-format
+msgid "mentioned you at %(when)s"
+msgstr "vous a mentioné %(when)s"
 
 #: rhodecode/model/notification.py:223
-msgid "registered in RhodeCode"
-msgstr "s’est enregistré sur RhodeCode"
+#, fuzzy, python-format
+msgid "registered in RhodeCode at %(when)s"
+msgstr "s’est enregistré sur RhodeCode %(when)s"
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
-msgstr "a ouvert une nouvelle requête de pull"
+#, fuzzy, python-format
+msgid "opened new pull request at %(when)s"
+msgstr "a ouvert une nouvelle requête de pull %(when)s"
 
 #: rhodecode/model/notification.py:225
-msgid "commented on pull request"
-msgstr "a commenté sur la requête de pull"
-
-#: rhodecode/model/pull_request.py:89
+#, fuzzy, python-format
+msgid "commented on pull request at %(when)s"
+msgstr "a commenté sur la requête de pull %(when)s"
+
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
 msgstr "%(user)s voudrait que vous examiniez sa requête de pull nº%(pr_id)s"
 
-#: rhodecode/model/scm.py:535
+#: rhodecode/model/scm.py:542
 msgid "latest tip"
 msgstr "Dernier sommet"
 
@@ -1095,23 +1170,29 @@
 msgid "new user registration"
 msgstr "Nouveau compte utilisateur enregistré"
 
-#: rhodecode/model/user.py:255
-#: rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
-msgstr "Vous ne pouvez pas éditer cet utilisateur ; il est nécessaire pour le bon fonctionnement de l’application."
-
-#: rhodecode/model/user.py:323
+msgstr ""
+"Vous ne pouvez pas éditer cet utilisateur ; il est nécessaire pour le bon"
+" fonctionnement de l’application."
+
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
-msgstr "Vous ne pouvez pas supprimer cet utilisateur ; il est nécessaire pour le bon fonctionnement de l’application."
-
-#: rhodecode/model/user.py:329
+msgstr ""
+"Vous ne pouvez pas supprimer cet utilisateur ; il est nécessaire pour le "
+"bon fonctionnement de l’application."
+
+#: rhodecode/model/user.py:331
 #, python-format
-msgid "user \"%s\" still owns %s repositories and cannot be removed. Switch owners or remove those repositories. %s"
-msgstr "L’utilisateur « %s » possède %s dépôts et ne peut être supprimé. Changez les propriétaires de ces dépôts. %s"
-
-#: rhodecode/model/validators.py:36
-#: rhodecode/model/validators.py:37
+msgid ""
+"user \"%s\" still owns %s repositories and cannot be removed. Switch "
+"owners or remove those repositories. %s"
+msgstr ""
+"L’utilisateur « %s » possède %s dépôts et ne peut être supprimé. Changez "
+"les propriétaires de ces dépôts. %s"
+
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
 msgstr "Cette valeur ne peut être une liste vide."
 
@@ -1126,8 +1207,13 @@
 msgstr "Le nom d’utilisateur « %(username)s » n’est pas autorisé"
 
 #: rhodecode/model/validators.py:87
-msgid "Username may only contain alphanumeric characters underscores, periods or dashes and must begin with alphanumeric character"
-msgstr "Le nom d’utilisateur peut contenir uniquement des caractères alpha-numériques ainsi que les caractères suivants : « _ . - ». Il doit commencer par un caractère alpha-numérique."
+msgid ""
+"Username may only contain alphanumeric characters underscores, periods or"
+" dashes and must begin with alphanumeric character"
+msgstr ""
+"Le nom d’utilisateur peut contenir uniquement des caractères alpha-"
+"numériques ainsi que les caractères suivants : « _ . - ». Il doit "
+"commencer par un caractère alpha-numérique."
 
 #: rhodecode/model/validators.py:115
 #, python-format
@@ -1144,8 +1230,13 @@
 msgstr "Le groupe d’utilisateurs « %(usersgroup)s » existe déjà."
 
 #: rhodecode/model/validators.py:137
-msgid "users group name may only contain  alphanumeric characters underscores, periods or dashes and must begin with alphanumeric character"
-msgstr "Le nom de groupe d’utilisateurs peut contenir uniquement des caractères alpha-numériques ainsi que les caractères suivants : « _ . - ». Il doit commencer par un caractère alpha-numérique."
+msgid ""
+"users group name may only contain  alphanumeric characters underscores, "
+"periods or dashes and must begin with alphanumeric character"
+msgstr ""
+"Le nom de groupe d’utilisateurs peut contenir uniquement des caractères "
+"alpha-numériques ainsi que les caractères suivants : « _ . - ». Il doit "
+"commencer par un caractère alpha-numérique."
 
 #: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
@@ -1207,14 +1298,15 @@
 
 #: rhodecode/model/validators.py:433
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
-msgstr "URL à cloner invalide. Veuillez fournir une URL valide en http(s) ou svn+http(s)."
+msgstr ""
+"URL à cloner invalide. Veuillez fournir une URL valide en http(s) ou "
+"svn+http(s)."
 
 #: rhodecode/model/validators.py:458
 msgid "Fork have to be the same type as parent"
 msgstr "Le fork doit être du même type que le parent."
 
 #: rhodecode/model/validators.py:473
-#| msgid "You don't have permission to view this page"
 msgid "You don't have permissions to create repository in this group"
 msgstr "Vous n’avez pas la permission de créer un dépôt dans ce groupe."
 
@@ -1236,13 +1328,19 @@
 msgstr "L’adresse e-mail « %(email)s » n’existe pas"
 
 #: rhodecode/model/validators.py:654
-msgid "The LDAP Login attribute of the CN must be specified - this is the name of the attribute that is equivalent to \"username\""
-msgstr "L’attribut Login du CN doit être spécifié. Cet attribut correspond au nom d’utilisateur."
+msgid ""
+"The LDAP Login attribute of the CN must be specified - this is the name "
+"of the attribute that is equivalent to \"username\""
+msgstr ""
+"L’attribut Login du CN doit être spécifié. Cet attribut correspond au nom"
+" d’utilisateur."
 
 #: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
-msgstr "Les révisions %(revs)s font déjà partie de la requête de pull ou on des statuts définis."
+msgstr ""
+"Les révisions %(revs)s font déjà partie de la requête de pull ou on des "
+"statuts définis."
 
 #: rhodecode/templates/index.html:3
 msgid "Dashboard"
@@ -1262,7 +1360,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:230
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr "Dépôts"
 
@@ -1273,6 +1371,7 @@
 msgstr "AJOUTER UN DÉPÔT"
 
 #: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1282,9 +1381,10 @@
 msgstr "Nom de groupe"
 
 #: rhodecode/templates/index_base.html:30
-#: rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142
-#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1293,147 +1393,141 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr "Description"
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr "Groupe de dépôts"
 
-#: rhodecode/templates/index_base.html:70
-#: rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
-#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
 #: rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr "Nom"
 
-#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:73
 msgid "Last change"
 msgstr "Dernière modification"
 
-#: rhodecode/templates/index_base.html:73
-#: rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
-#: rhodecode/templates/journal/journal.html:188
+#: rhodecode/templates/index_base.html:74
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
 msgid "Tip"
 msgstr "Sommet"
 
-#: rhodecode/templates/index_base.html:74
-#: rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr "Propriétaire"
 
-#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:76
 #: rhodecode/templates/summary/summary.html:48
 #: rhodecode/templates/summary/summary.html:51
 msgid "RSS"
 msgstr "RSS"
 
-#: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr "Atom"
 
-#: rhodecode/templates/index_base.html:110
-#: rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr "S’abonner au flux RSS de %s"
-
-#: rhodecode/templates/index_base.html:117
-#: rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr "S’abonner au flux ATOM de %s"
-
-#: rhodecode/templates/index_base.html:140
-msgid "Group Name"
-msgstr "Nom du groupe"
-
-#: rhodecode/templates/index_base.html:158
-#: rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:203
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr "Tri ascendant"
 
-#: rhodecode/templates/index_base.html:159
-#: rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:204
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr "Tri descendant"
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
 msgid "Last Change"
 msgstr "Dernière modification"
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:205
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr "Aucun élément n’a été trouvé."
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:206
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr "Erreur d’intégrité des données."
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:207
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 msgid "Loading..."
 msgstr "Chargement…"
 
-#: rhodecode/templates/login.html:5
-#: rhodecode/templates/login.html:54
+#: rhodecode/templates/login.html:5 rhodecode/templates/login.html:54
 msgid "Sign In"
 msgstr "Connexion"
 
@@ -1441,19 +1535,17 @@
 msgid "Sign In to"
 msgstr "Connexion à"
 
-#: rhodecode/templates/login.html:31
-#: rhodecode/templates/register.html:20
+#: rhodecode/templates/login.html:31 rhodecode/templates/register.html:20
 #: rhodecode/templates/admin/admin_log.html:5
 #: rhodecode/templates/admin/users/user_add.html:32
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr "Nom d’utilisateur"
 
-#: rhodecode/templates/login.html:40
-#: rhodecode/templates/register.html:29
+#: rhodecode/templates/login.html:40 rhodecode/templates/register.html:29
 #: rhodecode/templates/admin/ldap/ldap.html:46
 #: rhodecode/templates/admin/users/user_add.html:41
 #: rhodecode/templates/base/base.html:92
@@ -1468,8 +1560,7 @@
 msgid "Forgot your password ?"
 msgstr "Mot de passe oublié ?"
 
-#: rhodecode/templates/login.html:63
-#: rhodecode/templates/base/base.html:103
+#: rhodecode/templates/login.html:63 rhodecode/templates/base/base.html:103
 msgid "Don't have an account ?"
 msgstr "Vous n’avez pas de compte ?"
 
@@ -1493,8 +1584,7 @@
 msgid "Password reset link will be send to matching email address"
 msgstr "Votre nouveau mot de passe sera envoyé à l’adresse correspondante."
 
-#: rhodecode/templates/register.html:5
-#: rhodecode/templates/register.html:74
+#: rhodecode/templates/register.html:5 rhodecode/templates/register.html:74
 msgid "Sign Up"
 msgstr "Inscription"
 
@@ -1508,23 +1598,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr "Prénom"
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr "Nom"
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr "E-mail"
 
@@ -1537,6 +1627,7 @@
 msgstr "Votre compte utilisateur devra être activé par un administrateur."
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1564,7 +1655,7 @@
 msgstr "Tags"
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr "Aucun tag n’a été créé pour le moment."
 
@@ -1587,20 +1678,22 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr "Action"
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr "Dépôt"
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
 #: rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr "Date"
@@ -1609,10 +1702,83 @@
 msgid "From IP"
 msgstr "Depuis l’adresse IP"
 
-#: rhodecode/templates/admin/admin_log.html:53
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr "Aucune action n’a été enregistrée pour le moment."
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+#, fuzzy
+msgid "Repositories defaults"
+msgstr "Groupes de dépôts"
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+#, fuzzy
+msgid "Defaults"
+msgstr "[Par défaut]"
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr "Type"
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr ""
+"Les dépôts privés sont visibles seulement par les utilisateurs ajoutés "
+"comme collaborateurs."
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr "Activer les statistiques"
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr "Afficher les statistiques sur la page du dépôt."
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr "Activer les téléchargements"
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr "Afficher le menu de téléchargements sur la page du dépôt."
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+msgid "Enable locking"
+msgstr "Activer le verrouillage"
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr "Activer le verrouillage lors d’un pull sur le dépôt."
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr "Enregistrer"
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
 msgstr "Administration LDAP"
@@ -1685,18 +1851,6 @@
 msgid "E-mail Attribute"
 msgstr "Attribut pour l’e-mail"
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr "Enregistrer"
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1711,8 +1865,8 @@
 msgstr "Commentaires"
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:263
-#: rhodecode/templates/base/base.html:265
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr "Requêtes de pull"
 
@@ -1740,7 +1894,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1754,32 +1908,55 @@
 msgid "Anonymous access"
 msgstr "Accès anonyme"
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr "Permissions du dépôt"
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
-msgid "All default permissions on each repository will be reset to choosen permission, note that all custom default permission on repositories will be lost"
-msgstr "Les permissions par défaut de chaque dépôt vont être remplacées par la permission choisie. Toutes les permissions par défaut des dépôts seront perdues."
+msgid ""
+"All default permissions on each repository will be reset to choosen "
+"permission, note that all custom default permission on repositories will "
+"be lost"
+msgstr ""
+"Les permissions par défaut de chaque dépôt vont être remplacées par la "
+"permission choisie. Toutes les permissions par défaut des dépôts seront "
+"perdues."
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr "Écraser les permissions existantes"
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr "Groupe de dépôt"
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+#, fuzzy
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr ""
+"Les permissions par défaut de chaque dépôt vont être remplacées par la "
+"permission choisie. Toutes les permissions par défaut des dépôts seront "
+"perdues."
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr "Enregistrement"
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr "Création de dépôt"
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
+#: rhodecode/templates/admin/permissions/permissions.html:85
 msgid "Repository forking"
 msgstr "Fork de dépôt"
 
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:255
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr "Définir"
 
@@ -1799,8 +1976,8 @@
 msgstr "ajouter un nouveau"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr "Cloner depuis"
 
@@ -1810,24 +1987,11 @@
 msgid "Optional http[s] url from which repository should be cloned."
 msgstr "URL http(s) depuis laquelle le dépôt doit être cloné."
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr "Groupe de dépôt"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 msgid "Optionaly select a group to put this repository into."
 msgstr "Sélectionnez un groupe (optionel) dans lequel sera placé le dépôt."
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr "Type"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 msgid "Type of repository to create."
 msgstr "Type de dépôt à créer."
@@ -1844,21 +2008,18 @@
 #: rhodecode/templates/forks/fork.html:45
 #: rhodecode/templates/settings/repo_settings.html:61
 msgid "Default revision for files page, downloads, whoosh and readme"
-msgstr "Révision par défaut pour les pages de fichiers, de téléchargements, de recherche et de documentation."
+msgstr ""
+"Révision par défaut pour les pages de fichiers, de téléchargements, de "
+"recherche et de documentation."
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:60
 #: rhodecode/templates/admin/repos/repo_edit.html:79
 #: rhodecode/templates/forks/fork.html:63
 #: rhodecode/templates/settings/repo_settings.html:70
 msgid "Keep it short and to the point. Use a README file for longer descriptions."
-msgstr "Gardez cette description précise et concise. Utilisez un fichier README pour des descriptions plus détaillées."
-
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid "Private repositories are only visible to people explicitly added as collaborators."
-msgstr "Les dépôts privés sont visibles seulement par les utilisateurs ajoutés comme collaborateurs."
+msgstr ""
+"Gardez cette description précise et concise. Utilisez un fichier README "
+"pour des descriptions plus détaillées."
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
@@ -1874,12 +2035,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr "éditer"
 
@@ -1893,31 +2056,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr "Sélectionnez un groupe (optionel) dans lequel sera placé le dépôt."
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr "Activer les statistiques"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr "Afficher les statistiques sur la page du dépôt."
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr "Activer les téléchargements"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr "Afficher le menu de téléchargements sur la page du dépôt."
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-msgid "Enable locking"
-msgstr "Activer le verrouillage"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr "Activer le verrouillage lors d’un pull sur le dépôt."
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 msgid "Change owner of this repository."
 msgstr "Changer le propriétaire de ce dépôt."
@@ -1925,16 +2063,16 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
 #: rhodecode/templates/files/files_edit.html:68
-#: rhodecode/templates/pullrequests/pullrequest.html:122
+#: rhodecode/templates/pullrequests/pullrequest.html:124
 #: rhodecode/templates/settings/repo_settings.html:94
 msgid "Reset"
 msgstr "Réinitialiser"
@@ -1988,90 +2126,122 @@
 msgstr "Voulez-vous vraiment invalider le cache du dépôt ?"
 
 #: rhodecode/templates/admin/repos/repo_edit.html:193
-msgid "Manually invalidate cache for this repository. On first access repository will be cached again"
-msgstr "Invalide manuellement le cache de ce dépôt. Au prochain accès sur ce dépôt, il sera à nouveau mis en cache."
+msgid ""
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
+msgstr ""
+"Invalide manuellement le cache de ce dépôt. Au prochain accès sur ce "
+"dépôt, il sera à nouveau mis en cache."
 
 #: rhodecode/templates/admin/repos/repo_edit.html:198
 msgid "List of cached values"
 msgstr "Liste des valeurs en cache"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:209
-#: rhodecode/templates/base/base.html:327
-#: rhodecode/templates/base/base.html:329
+#: rhodecode/templates/admin/repos/repo_edit.html:201
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+#, fuzzy
+msgid "Key"
+msgstr "Clé d’API"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr "Actif"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
 #: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
 msgid "Public journal"
 msgstr "Journal public"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
+#: rhodecode/templates/admin/repos/repo_edit.html:224
 msgid "Remove from public journal"
 msgstr "Supprimer du journal public"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:217
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr "Ajouter le dépôt au journal public"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:222
-msgid "All actions made on this repository will be accessible to everyone in public journal"
-msgstr "Le descriptif des actions réalisées sur ce dépôt sera visible à tous depuis le journal public."
-
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+#: rhodecode/templates/admin/repos/repo_edit.html:231
+msgid ""
+"All actions made on this repository will be accessible to everyone in "
+"public journal"
+msgstr ""
+"Le descriptif des actions réalisées sur ce dépôt sera visible à tous "
+"depuis le journal public."
+
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 msgid "Locking"
 msgstr "Verrouillage"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:234
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
 msgstr "Déverrouiller le dépôt"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:234
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Confirm to unlock repository"
 msgstr "Veuillez confirmer le déverrouillage de ce dépôt."
 
-#: rhodecode/templates/admin/repos/repo_edit.html:237
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
 msgstr "Verrouiller le dépôt"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:237
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "Confirm to lock repository"
 msgstr "Veuillez confirmer le verrouillage de ce dépôt."
 
-#: rhodecode/templates/admin/repos/repo_edit.html:238
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 msgid "Repository is not locked"
 msgstr "Ce dépôt n’est pas verrouillé."
 
-#: rhodecode/templates/admin/repos/repo_edit.html:243
+#: rhodecode/templates/admin/repos/repo_edit.html:252
 msgid "Force locking on repository. Works only when anonymous access is disabled"
-msgstr "Forcer le verrouillage du dépôt. Ce réglage fonctionne uniquement quand l‘accès anonyme est désactivé."
-
-#: rhodecode/templates/admin/repos/repo_edit.html:250
+msgstr ""
+"Forcer le verrouillage du dépôt. Ce réglage fonctionne uniquement quand "
+"l‘accès anonyme est désactivé."
+
+#: rhodecode/templates/admin/repos/repo_edit.html:259
 msgid "Set as fork of"
 msgstr "Indiquer comme fork"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:259
+#: rhodecode/templates/admin/repos/repo_edit.html:268
 msgid "Manually set this repository as a fork of another from the list"
 msgstr "Marquer ce dépôt comme fork d’un autre dépôt de la liste."
 
-#: rhodecode/templates/admin/repos/repo_edit.html:265
+#: rhodecode/templates/admin/repos/repo_edit.html:274
 #: rhodecode/templates/changeset/changeset_file_comment.html:26
 msgid "Delete"
 msgstr "Supprimer"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:269
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Remove this repository"
 msgstr "Supprimer ce dépôt"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:269
-#: rhodecode/templates/journal/journal.html:84
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Confirm to delete this repository"
 msgstr "Voulez-vous vraiment supprimer ce dépôt ?"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:273
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
-"This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems.\n"
-"                         If you need fully delete it from filesystem please do it manually"
+"This repository will be renamed in a special way in order to be "
+"unaccesible for RhodeCode and VCS systems.\n"
+"                         If you need fully delete it from filesystem "
+"please do it manually"
 msgstr ""
-"Ce dépôt sera renommé de manière à le rendre inaccessible à RhodeCode et au système de gestion de versions.\n"
-"Si vous voulez le supprimer complètement, effectuez la suppression manuellement. Ce dépôt sera renommé de manière à le rendre inaccessible à RhodeCode et au système de gestion de versions.\n"
-"Si vous voulez le supprimer complètement, effectuez la suppression manuellement."
+"Ce dépôt sera renommé de manière à le rendre inaccessible à RhodeCode et "
+"au système de gestion de versions.\n"
+"Si vous voulez le supprimer complètement, effectuez la suppression "
+"manuellement. Ce dépôt sera renommé de manière à le rendre inaccessible à"
+" RhodeCode et au système de gestion de versions.\n"
+"Si vous voulez le supprimer complètement, effectuez la suppression "
+"manuellement."
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:3
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:3
@@ -2091,7 +2261,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr "Administration"
 
@@ -2102,8 +2272,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr "Dépôt privé"
 
@@ -2144,14 +2314,18 @@
 msgstr "Appliquer aux enfants"
 
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
-msgid "Set or revoke permission to all children of that group, including repositories and other groups"
-msgstr "Applique ou révoque les permissions sur tous les éléments de ce groupe, notamment les dépôts et sous-groupes."
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+"Applique ou révoque les permissions sur tous les éléments de ce groupe, "
+"notamment les dépôts et sous-groupes."
 
 #: rhodecode/templates/admin/repos_groups/repos_groups.html:9
 #: rhodecode/templates/base/base.html:122
-#: rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311
 #: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
 #: rhodecode/templates/bookmarks/bookmarks.html:11
 #: rhodecode/templates/branches/branches.html:10
 #: rhodecode/templates/changelog/changelog.html:10
@@ -2163,8 +2337,7 @@
 #: rhodecode/templates/files/files_add.html:15
 #: rhodecode/templates/files/files_edit.html:15
 #: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9
-#: rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
 #: rhodecode/templates/pullrequests/pullrequest.html:8
 #: rhodecode/templates/pullrequests/pullrequest_show.html:8
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
@@ -2201,7 +2374,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:117
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr "Enregistrer"
 
@@ -2214,8 +2387,12 @@
 msgstr "Édition du groupe de dépôt"
 
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:70
-msgid "Enable lock-by-pulling on group. This option will be applied to all other groups and repositories inside"
-msgstr "Activer le verrou lors d’un pull sur le groupe. Cette option sera appliquée à tous les sous-groupes et dépôts de ce groupe."
+msgid ""
+"Enable lock-by-pulling on group. This option will be applied to all other"
+" groups and repositories inside"
+msgstr ""
+"Activer le verrou lors d’un pull sur le groupe. Cette option sera "
+"appliquée à tous les sous-groupes et dépôts de ce groupe."
 
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:5
 msgid "Repositories groups administration"
@@ -2235,20 +2412,22 @@
 msgid "action"
 msgstr "Action"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr "Supprimer"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#, python-format
-msgid "Confirm to delete this group: %s"
-msgstr "Voulez-vous vraiment supprimer le groupe « %s » ?"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#, fuzzy, python-format
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr "Aucun groupe de dépôts n’a été créé pour le moment."
 
@@ -2288,16 +2467,26 @@
 msgstr "Option de re-scan"
 
 #: rhodecode/templates/admin/settings/settings.html:38
-msgid "In case a repository was deleted from filesystem and there are leftovers in the database check this option to scan obsolete data in database and remove it."
-msgstr "Cochez cette option pour supprimer d’éventuelles données obsolètes (concernant des dépôts manuellement supprimés) de la base de données."
+msgid ""
+"In case a repository was deleted from filesystem and there are leftovers "
+"in the database check this option to scan obsolete data in database and "
+"remove it."
+msgstr ""
+"Cochez cette option pour supprimer d’éventuelles données obsolètes "
+"(concernant des dépôts manuellement supprimés) de la base de données."
 
 #: rhodecode/templates/admin/settings/settings.html:39
 msgid "destroy old data"
 msgstr "Supprimer les données obsolètes"
 
 #: rhodecode/templates/admin/settings/settings.html:41
-msgid "Rescan repositories location for new repositories. Also deletes obsolete if `destroy` flag is checked "
-msgstr "Rescanner le dossier contenant les dépôts pour en trouver de nouveaux. Supprime égalements les entrées de dépôts obsolètes si « Supprimer les données obsolètes » est coché."
+msgid ""
+"Rescan repositories location for new repositories. Also deletes obsolete "
+"if `destroy` flag is checked "
+msgstr ""
+"Rescanner le dossier contenant les dépôts pour en trouver de nouveaux. "
+"Supprime égalements les entrées de dépôts obsolètes si « Supprimer les "
+"données obsolètes » est coché."
 
 #: rhodecode/templates/admin/settings/settings.html:46
 msgid "Rescan repositories"
@@ -2336,8 +2525,8 @@
 msgstr "Code GA"
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr "Enregister les options"
 
@@ -2345,116 +2534,143 @@
 msgid "Visualisation settings"
 msgstr "Réglages d’affichage"
 
-#: rhodecode/templates/admin/settings/settings.html:128
+#: rhodecode/templates/admin/settings/settings.html:127
+#, fuzzy
+msgid "General"
+msgstr "Activer"
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:139
 msgid "Icons"
 msgstr "Icônes"
 
-#: rhodecode/templates/admin/settings/settings.html:133
-msgid "Show public repo icon on repositories"
-msgstr "Afficher l’icône de dépôt public sur les dépôts"
-
-#: rhodecode/templates/admin/settings/settings.html:137
-msgid "Show private repo icon on repositories"
-msgstr "Afficher l’icône de dépôt privé sur les dépôts"
-
 #: rhodecode/templates/admin/settings/settings.html:144
+msgid "Show public repo icon on repositories"
+msgstr "Afficher l’icône de dépôt public sur les dépôts"
+
+#: rhodecode/templates/admin/settings/settings.html:148
+msgid "Show private repo icon on repositories"
+msgstr "Afficher l’icône de dépôt privé sur les dépôts"
+
+#: rhodecode/templates/admin/settings/settings.html:155
 msgid "Meta-Tagging"
 msgstr "Meta-Tagging"
 
-#: rhodecode/templates/admin/settings/settings.html:149
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
 msgstr "Styliser les méta-tags reconnus :"
 
-#: rhodecode/templates/admin/settings/settings.html:176
+#: rhodecode/templates/admin/settings/settings.html:187
 msgid "VCS settings"
 msgstr "Réglages de gestionnaire de version"
 
-#: rhodecode/templates/admin/settings/settings.html:185
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr "Web"
 
-#: rhodecode/templates/admin/settings/settings.html:190
+#: rhodecode/templates/admin/settings/settings.html:201
 msgid "require ssl for vcs operations"
 msgstr "SSL requis pour les opérations de push/pull"
 
-#: rhodecode/templates/admin/settings/settings.html:192
-msgid "RhodeCode will require SSL for pushing or pulling. If SSL is missing it will return HTTP Error 406: Not Acceptable"
-msgstr "RhodeCode requièrera SSL pour les pushs et pulls. Si le SSL n’est pas utilisé l’erreur HTTP 406 (Non Acceptable) sera renvoyée."
-
-#: rhodecode/templates/admin/settings/settings.html:198
-msgid "Hooks"
-msgstr "Hooks"
-
 #: rhodecode/templates/admin/settings/settings.html:203
+msgid ""
+"RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
+"will return HTTP Error 406: Not Acceptable"
+msgstr ""
+"RhodeCode requièrera SSL pour les pushs et pulls. Si le SSL n’est pas "
+"utilisé l’erreur HTTP 406 (Non Acceptable) sera renvoyée."
+
+#: rhodecode/templates/admin/settings/settings.html:209
+msgid "Hooks"
+msgstr "Hooks"
+
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr "Mettre à jour les dépôts après un push (hg update)"
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr "Afficher la taille du dépôt après un push"
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr "Journaliser les commandes de push"
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr "Journaliser les commandes de pull"
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr "Avancé"
 
-#: rhodecode/templates/admin/settings/settings.html:224
+#: rhodecode/templates/admin/settings/settings.html:235
 msgid "Mercurial Extensions"
 msgstr "Extensions Mercurial"
 
-#: rhodecode/templates/admin/settings/settings.html:229
+#: rhodecode/templates/admin/settings/settings.html:240
 msgid "largefiles extensions"
 msgstr "Extensions largefiles"
 
-#: rhodecode/templates/admin/settings/settings.html:233
+#: rhodecode/templates/admin/settings/settings.html:244
 msgid "hgsubversion extensions"
 msgstr "Extensions hgsubversion"
 
-#: rhodecode/templates/admin/settings/settings.html:235
-msgid "Requires hgsubversion library installed. Allows clonning from svn remote locations"
-msgstr "Ceci nécessite l’installation de la bibliothèque hgsubversion. Permet de clôner à partir de dépôts Suversion."
-
-#: rhodecode/templates/admin/settings/settings.html:245
+#: rhodecode/templates/admin/settings/settings.html:246
+msgid ""
+"Requires hgsubversion library installed. Allows clonning from svn remote "
+"locations"
+msgstr ""
+"Ceci nécessite l’installation de la bibliothèque hgsubversion. Permet de "
+"clôner à partir de dépôts Suversion."
+
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr "Emplacement des dépôts"
 
-#: rhodecode/templates/admin/settings/settings.html:250
-msgid "This a crucial application setting. If you are really sure you need to change this, you must restart application in order to make this setting take effect. Click this label to unlock."
-msgstr "Ce réglage ne devrait pas être modifié en temps normal. Si vous devez vraiment le faire, redémarrer l’application une fois le changement effectué. Cliquez sur ce texte pour déverrouiller."
-
-#: rhodecode/templates/admin/settings/settings.html:251
-#: rhodecode/templates/base/base.html:218
+#: rhodecode/templates/admin/settings/settings.html:261
+msgid ""
+"This a crucial application setting. If you are really sure you need to "
+"change this, you must restart application in order to make this setting "
+"take effect. Click this label to unlock."
+msgstr ""
+"Ce réglage ne devrait pas être modifié en temps normal. Si vous devez "
+"vraiment le faire, redémarrer l’application une fois le changement "
+"effectué. Cliquez sur ce texte pour déverrouiller."
+
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr "Déverrouiller"
 
-#: rhodecode/templates/admin/settings/settings.html:252
-msgid "Location where repositories are stored. After changing this value a restart, and rescan is required"
-msgstr "Emplacement de stockage des dépôts. Si cette valeur est changée, Rhodecode devra être redémarré les les dépôts rescannés."
-
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:263
+msgid ""
+"Location where repositories are stored. After changing this value a "
+"restart, and rescan is required"
+msgstr ""
+"Emplacement de stockage des dépôts. Si cette valeur est changée, "
+"Rhodecode devra être redémarré les les dépôts rescannés."
+
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr "E-mail de test"
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 msgid "Email to"
 msgstr "Envoyer l’e-mail à"
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 msgid "Send"
 msgstr "Envoyer"
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr "Information système et paquets"
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 msgid "show"
 msgstr "Montrer"
 
@@ -2475,13 +2691,6 @@
 msgid "Password confirmation"
 msgstr "Confirmation"
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr "Actif"
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr "Éditer l'utilisateur"
@@ -2501,71 +2710,77 @@
 msgid "API key"
 msgstr "Clé d’API"
 
-#: rhodecode/templates/admin/users/user_edit.html:59
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr "DN LDAP"
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr "Nouveau mot de passe"
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr "Confirmation du nouveau mot de passe"
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
 msgid "Inherit default permissions"
 msgstr "Utiliser les permissions par défaut"
 
-#: rhodecode/templates/admin/users/user_edit.html:152
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
-msgid "Select to inherit permissions from %s settings. With this selected below options does not have any action"
-msgstr "Cochez pour utiliser les permissions des les réglages %s. Si cette option est activée, les réglages ci-dessous n’auront pas d’effet."
-
-#: rhodecode/templates/admin/users/user_edit.html:158
+msgid ""
+"Select to inherit permissions from %s settings. With this selected below "
+"options does not have any action"
+msgstr ""
+"Cochez pour utiliser les permissions des les réglages %s. Si cette option"
+" est activée, les réglages ci-dessous n’auront pas d’effet."
+
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr "Création de dépôts"
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
 msgid "Fork repositories"
 msgstr "Forker les dépôts"
 
-#: rhodecode/templates/admin/users/user_edit.html:186
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
 msgid "Nothing here yet"
 msgstr "Rien ici pour le moment"
 
-#: rhodecode/templates/admin/users/user_edit.html:193
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:218
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 msgid "Permission"
 msgstr "Permission"
 
-#: rhodecode/templates/admin/users/user_edit.html:194
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 msgid "Edit Permission"
 msgstr "Éditer"
 
-#: rhodecode/templates/admin/users/user_edit.html:243
+#: rhodecode/templates/admin/users/user_edit.html:247
 msgid "Email addresses"
 msgstr "Adresses e-mail"
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, python-format
 msgid "Confirm to delete this email: %s"
 msgstr "Veuillez confirmer la suppression de l’e-mail : %s"
 
-#: rhodecode/templates/admin/users/user_edit.html:270
+#: rhodecode/templates/admin/users/user_edit.html:274
 msgid "New email address"
 msgstr "Nouvelle adrese"
 
-#: rhodecode/templates/admin/users/user_edit.html:277
+#: rhodecode/templates/admin/users/user_edit.html:281
 msgid "Add"
 msgstr "Ajouter"
 
@@ -2621,31 +2836,33 @@
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
 #: rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr "Révision"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr "privé"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, python-format
 msgid "Confirm to delete this repository: %s"
 msgstr "Voulez-vous vraiment supprimer le dépôt %s ?"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr "Aucun dépôt pour le moment"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr "En créer un maintenant"
 
@@ -2654,7 +2871,7 @@
 msgstr "Administration des utilisateurs"
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:232
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr "Utilisateurs"
 
@@ -2684,7 +2901,7 @@
 msgstr "Actif"
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:235
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr "LDAP"
 
@@ -2733,6 +2950,21 @@
 msgid "Group members"
 msgstr "Membres du groupe"
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+#, fuzzy
+msgid "No members yet"
+msgstr "Membres"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+#, fuzzy
+msgid "Permissions defined for this group"
+msgstr "Gestion des permissions"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+#, fuzzy
+msgid "No permissions set yet"
+msgstr "Copier les permissions"
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr "Gestion des groupes d’utilisateurs"
@@ -2776,9 +3008,9 @@
 msgstr "Boîte de réception"
 
 #: rhodecode/templates/base/base.html:123
-#: rhodecode/templates/base/base.html:318
-#: rhodecode/templates/base/base.html:320
 #: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2798,7 +3030,7 @@
 msgstr "Produits"
 
 #: rhodecode/templates/base/base.html:152
-#: rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr "Chargement…"
 
@@ -2843,7 +3075,6 @@
 
 #: rhodecode/templates/base/base.html:204
 #: rhodecode/templates/base/base.html:206
-#| msgid "Repository creation"
 msgid "repository settings"
 msgstr "Réglages de dépôt"
 
@@ -2853,49 +3084,58 @@
 msgid "fork"
 msgstr "Fork"
 
-#: rhodecode/templates/base/base.html:212
-#: rhodecode/templates/changelog/changelog.html:41
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr "Nouvelle requête de pull"
 
-#: rhodecode/templates/base/base.html:214
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr "Comparer le fork"
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr "Rechercher"
 
-#: rhodecode/templates/base/base.html:220
-#| msgid "unlock"
+#: rhodecode/templates/base/base.html:223
 msgid "lock"
 msgstr "Verrouiller"
 
-#: rhodecode/templates/base/base.html:231
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr "Groupes de dépôts"
 
-#: rhodecode/templates/base/base.html:233
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr "Groupes d’utilisateurs"
 
-#: rhodecode/templates/base/base.html:234
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr "Permissions"
 
-#: rhodecode/templates/base/base.html:236
+#: rhodecode/templates/base/base.html:239
+#, fuzzy
+msgid "defaults"
+msgstr "[Par défaut]"
+
+#: rhodecode/templates/base/base.html:240
 msgid "settings"
 msgstr "Réglages"
 
-#: rhodecode/templates/base/base.html:247
-#: rhodecode/templates/base/base.html:249
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr "Followers"
 
-#: rhodecode/templates/base/base.html:255
-#: rhodecode/templates/base/base.html:257
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr "Forks"
 
-#: rhodecode/templates/base/base.html:336
-#: rhodecode/templates/base/base.html:338
 #: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
 #: rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr "Rechercher"
@@ -2905,7 +3145,7 @@
 msgstr "Nouveau commentaire"
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr "Arrêter de suivre ce dépôt"
@@ -2919,14 +3159,27 @@
 msgid "Group"
 msgstr "Groupe"
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr "Résultats tronqués"
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr "Aucun fichier ne correspond"
 
+#: rhodecode/templates/base/root.html:51
+#, fuzzy
+msgid "Open new pull request for selected changesets"
+msgstr "a ouvert une nouvelle requête de pull"
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr "Afficher les changements sélections de __S à __E"
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr "Lien vers la sélection"
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, python-format
 msgid "%s Bookmarks"
@@ -2934,8 +3187,9 @@
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
 #: rhodecode/templates/tags/tags_data.html:8
 msgid "Author"
 msgstr "Auteur"
@@ -2949,34 +3203,15 @@
 msgid "Compare branches"
 msgstr "Comparer les branches"
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
 msgid "Compare"
 msgstr "Comparer"
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr "Prénom"
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr "Date"
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr "Auteur"
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr "Révision"
-
-#: rhodecode/templates/branches/branches_data.html:10
-msgid "compare"
-msgstr "Comparer"
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, python-format
 msgid "%s Changelog"
@@ -2989,59 +3224,66 @@
 msgstr[0] "Affichage de %d révision sur %d"
 msgstr[1] "Affichage de %d révisions sur %d"
 
-#: rhodecode/templates/changelog/changelog.html:38
+#: rhodecode/templates/changelog/changelog.html:37
+#, fuzzy
+msgid "Clear selection"
+msgstr "Réglages de recherche"
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr "Comparer le fork avec %s"
 
-#: rhodecode/templates/changelog/changelog.html:38
-#: rhodecode/templates/forks/forks_data.html:21
-msgid "Compare fork"
-msgstr "Comparer le fork"
-
-#: rhodecode/templates/changelog/changelog.html:47
+#: rhodecode/templates/changelog/changelog.html:40
+#, fuzzy
+msgid "Compare fork with parent"
+msgstr "Comparer le fork avec %s"
+
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr "Afficher"
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr "montrer plus"
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr "Nombre de fichiers modifiés, cliquez pour plus de détails"
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 msgid "Changeset status"
 msgstr "Statut du changeset"
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
 #: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
 msgstr "Cliquez ici pour ouvrir la requête de pull associée."
 
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr "Parent"
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr "Aucun parent"
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr "Fusion"
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -3049,44 +3291,42 @@
 msgid "branch"
 msgstr "Branche"
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr "Signet"
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr "Tag"
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr "Afficher les changements sélections de __S à __E"
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr "Il n’y a aucun changement pour le moment"
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr "Supprimés"
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr "Modifiés"
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr "Ajoutés"
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
 msgstr "%s fichiers affectés"
@@ -3100,17 +3340,22 @@
 msgid "Changeset"
 msgstr "Changements"
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
 msgstr "Diff brut"
 
-#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset.html:50
+#, fuzzy
+msgid "patch diff"
+msgstr "Diff brut"
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
 msgstr "Télécharger le diff"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "%d comment"
@@ -3118,7 +3363,7 @@
 msgstr[0] "%d commentaire"
 msgstr[1] "%d commentaires"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
@@ -3126,10 +3371,23 @@
 msgstr[0] "(et %d en ligne)"
 msgstr[1] "(et %d en ligne)"
 
-#: rhodecode/templates/changeset/changeset.html:103
-#, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr "%s fichiers affectés avec %s insertions et %s suppressions :"
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
+#, fuzzy, python-format
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] "%s fichié modifié"
+msgstr[1] "%s fichié modifié"
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, fuzzy, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] "%s fichiers affectés avec %s insertions et %s suppressions"
+msgstr[1] "%s fichiers affectés avec %s insertions et %s suppressions"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3143,12 +3401,16 @@
 #: rhodecode/templates/changeset/changeset_file_comment.html:121
 #, python-format
 msgid "Comments parsed using %s syntax with %s support."
-msgstr "Les commentaires sont analysés avec la syntaxe %s, avec le support de la commande %s."
+msgstr ""
+"Les commentaires sont analysés avec la syntaxe %s, avec le support de la "
+"commande %s."
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:48
 #: rhodecode/templates/changeset/changeset_file_comment.html:123
 msgid "Use @username inside this text to send notification to this RhodeCode user"
-msgstr "Utilisez @nomutilisateur dans ce texte pour envoyer une notification à l’utilisateur RhodeCode en question."
+msgstr ""
+"Utilisez @nomutilisateur dans ce texte pour envoyer une notification à "
+"l’utilisateur RhodeCode en question."
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:59
 #: rhodecode/templates/changeset/changeset_file_comment.html:138
@@ -3194,15 +3456,18 @@
 msgid "Compare View"
 msgstr "Comparaison"
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+#, fuzzy
+msgid "Show combined compare"
+msgstr "Afficher les commentaires"
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:73
 msgid "Files affected"
 msgstr "Fichiers affectés"
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
-msgstr "Diff"
+msgid "show full diff for this file"
+msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:27
 msgid "show inline comments"
@@ -3213,8 +3478,18 @@
 msgstr "Aucun changeset"
 
 #: rhodecode/templates/compare/compare_diff.html:37
-msgid "Outgoing changesets"
-msgstr "Changesets sortants"
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, fuzzy, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] "Afficher %s les commentaires"
+msgstr[1] "Afficher %s les commentaires"
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
+#, fuzzy
+msgid "No files"
+msgstr "Fichiers"
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
 #: rhodecode/templates/data_table/_dt_elements.html:41
@@ -3223,42 +3498,125 @@
 msgstr "Fork"
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
 msgstr "Dépôt Mercurial"
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
 msgstr "Dépôt Git"
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr "Dépôt public"
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr "Fork de"
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr "Dépôt vide"
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr "S’abonner au flux RSS de %s"
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr "S’abonner au flux ATOM de %s"
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, python-format
 msgid "Confirm to delete this user: %s"
 msgstr "Voulez-vous vraiment supprimer l’utilisateur « %s » ?"
 
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+#, fuzzy
+msgid "New status$"
+msgstr "Modifier le statut"
+
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
+#, fuzzy
+msgid "This is a notification from RhodeCode."
 msgstr "Ceci est une notification de RhodeCode."
 
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+#, fuzzy
+msgid "title"
+msgstr "Titre"
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+msgid "description"
+msgstr "Description"
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+#, fuzzy
+msgid "View this pull request here"
+msgstr "Ajouter un relecteur à cette requête de pull."
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, fuzzy, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+#, fuzzy
+msgid "New status"
+msgstr "Modifier le statut"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+#, fuzzy
+msgid "A new user have registered in RhodeCode"
+msgstr "Vous vous êtes inscrits avec succès à RhodeCode"
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
+msgstr ""
+
 #: rhodecode/templates/errors/error_document.html:46
 #, python-format
 msgid "You will be redirected to %s in %s seconds"
@@ -3274,21 +3632,16 @@
 msgstr "Diff de fichier"
 
 #: rhodecode/templates/files/files.html:4
-#: rhodecode/templates/files/files.html:72
+#: rhodecode/templates/files/files.html:74
 #, python-format
 msgid "%s files"
 msgstr "Fichiers de %s"
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr "Fichiers"
 
-#: rhodecode/templates/files/files.html:92
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr "Lien vers la sélection"
-
 #: rhodecode/templates/files/files_add.html:4
 #: rhodecode/templates/files/files_edit.html:4
 #, python-format
@@ -3363,7 +3716,7 @@
 msgstr "Rechercher un fichier"
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:80
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 msgid "add new file"
 msgstr "Ajouter un fichier"
 
@@ -3396,18 +3749,18 @@
 msgstr "Éditer le fichier"
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr "Afficher les annotations"
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr "montrer le fichier brut"
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr "télécharger le fichier brut"
 
@@ -3419,35 +3772,45 @@
 msgid "Editing file"
 msgstr "Édition du fichier"
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr "Historique"
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 msgid "diff to revision"
 msgstr "Diff avec la révision"
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 msgid "show at revision"
 msgstr "Afficher à la révision"
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+#, fuzzy
+msgid "show full history"
+msgstr "Chargement de la liste des fichiers…"
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, python-format
 msgid "%s author"
 msgid_plural "%s authors"
 msgstr[0] "%s auteur"
 msgstr[1] "%s auteurs"
 
-#: rhodecode/templates/files/files_source.html:36
+#: rhodecode/templates/files/files_source.html:6
+#, fuzzy
+msgid "Load file history"
+msgstr "Chargement de la liste des fichiers…"
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr "montrer les sources"
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr "Fichier binaire (%s)"
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr "Ce fichier est trop gros pour être affiché."
 
@@ -3522,7 +3885,7 @@
 msgid "forked"
 msgstr "forké"
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr "Il n’y a pas encore de forks."
 
@@ -3535,7 +3898,7 @@
 msgstr "Flux RSS du journal"
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:53
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr "Rafraîchir"
 
@@ -3557,19 +3920,19 @@
 msgid "ADD"
 msgstr "AJOUTER"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr "utilisateur suivant"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr "utilisateur"
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr "Vous ne suivez aucun utilisateur ou dépôt"
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr "Aucune entrée pour le moment"
 
@@ -3590,44 +3953,40 @@
 msgid "New pull request"
 msgstr "Nouvelle requête de pull"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:52
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr "Rafraîchir les informations"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:64
+#: rhodecode/templates/pullrequests/pullrequest.html:66
 msgid "Detailed compare view"
 msgstr "Comparaison détaillée"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:68
-#: rhodecode/templates/pullrequests/pullrequest_show.html:86
+#: rhodecode/templates/pullrequests/pullrequest.html:70
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr "Relecteurs de la requête de pull"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:77
-#: rhodecode/templates/pullrequests/pullrequest_show.html:98
+#: rhodecode/templates/pullrequests/pullrequest.html:79
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 msgid "owner"
 msgstr "Propriétaire"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:89
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest.html:91
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
 msgstr "Ajouter un relecteur à cette requête de pull."
 
-#: rhodecode/templates/pullrequests/pullrequest.html:95
+#: rhodecode/templates/pullrequests/pullrequest.html:97
 msgid "Create new pull request"
 msgstr "Nouvelle requête de pull"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:104
+#: rhodecode/templates/pullrequests/pullrequest.html:106
 #: rhodecode/templates/pullrequests/pullrequest_show.html:25
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:33
 msgid "Title"
 msgstr "Titre"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:113
-msgid "description"
-msgstr "Description"
-
-#: rhodecode/templates/pullrequests/pullrequest.html:121
+#: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr "Envoyer la requête de pull"
 
@@ -3661,7 +4020,6 @@
 msgstr[1] "%d relecteurs"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:50
-#| msgid "Pull request reviewers"
 msgid "pull request was reviewed by all reviewers"
 msgstr "La requête de pull a été relue par tous les relecteurs."
 
@@ -3673,10 +4031,6 @@
 msgid "Compare view"
 msgstr "Vue de comparaison"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
-msgid "Incoming changesets"
-msgstr "Changesets entrants"
-
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
 msgid "all pull requests"
 msgstr "Requêtes de pull"
@@ -3746,27 +4100,32 @@
 msgid "%s Shortlog"
 msgstr "Résumé de %s"
 
-#: rhodecode/templates/shortlog/shortlog.html:14
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr "Résumé"
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr "Révision"
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr "Âge"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:33
-msgid "No commit message"
-msgstr "Pas de message de commit"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:77
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr "Auteur"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
 msgstr "Ajouter ou téléverser des fichiers directement via RhodeCode…"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:86
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
 msgstr "Pusher le nouveau dépôt"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 msgid "Existing repository?"
 msgstr "Le dépôt existe déjà ?"
 
@@ -3794,128 +4153,138 @@
 msgid "ATOM"
 msgstr "ATOM"
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, fuzzy, python-format
+msgid "Repository locked by %s"
+msgstr "Ce dépôt n’est pas verrouillé %s."
+
+#: rhodecode/templates/summary/summary.html:72
+#, fuzzy
+msgid "Repository unlocked"
+msgstr "Ce dépôt n’est pas verrouillé."
+
+#: rhodecode/templates/summary/summary.html:91
 #, python-format
 msgid "Non changable ID %s"
 msgstr "Identifiant permanent : %s"
 
-#: rhodecode/templates/summary/summary.html:87
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr "publique"
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr "Clone distant"
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr "Contact"
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr "URL de clone"
 
-#: rhodecode/templates/summary/summary.html:133
+#: rhodecode/templates/summary/summary.html:142
 msgid "Show by Name"
 msgstr "Afficher par nom"
 
-#: rhodecode/templates/summary/summary.html:134
+#: rhodecode/templates/summary/summary.html:143
 msgid "Show by ID"
 msgstr "Afficher par ID"
 
-#: rhodecode/templates/summary/summary.html:142
+#: rhodecode/templates/summary/summary.html:151
 msgid "Trending files"
 msgstr "Populaires"
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr "Activer"
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr "Téléchargements"
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr "Il n’y a pas encore de téléchargements proposés."
 
-#: rhodecode/templates/summary/summary.html:164
+#: rhodecode/templates/summary/summary.html:173
 msgid "Downloads are disabled for this repository"
 msgstr "Les téléchargements sont désactivés pour ce dépôt."
 
-#: rhodecode/templates/summary/summary.html:170
+#: rhodecode/templates/summary/summary.html:179
 msgid "Download as zip"
 msgstr "Télécharger en ZIP"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "Check this to download archive with subrepos"
 msgstr "Télécharger une archive contenant également les sous-dépôts éventuels"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr "avec les sous-dépôts"
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
 msgstr "Activité de commit par jour et par auteur"
 
-#: rhodecode/templates/summary/summary.html:197
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
 msgstr "Statistiques obtenues :"
 
-#: rhodecode/templates/summary/summary.html:218
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr "Résumé des changements"
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 msgid "Quick start"
 msgstr "Démarrage rapide"
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
 msgstr "Fichier « Lisez-moi » à la révision « %s »"
 
-#: rhodecode/templates/summary/summary.html:236
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
 msgstr "Lien permanent vers ce fichier « Lisez-moi »"
 
-#: rhodecode/templates/summary/summary.html:293
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
 msgstr "Télécharger %s comme archive %s"
 
-#: rhodecode/templates/summary/summary.html:650
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr "commits"
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr "fichiers ajoutés"
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr "fichiers modifiés"
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr "fichiers supprimés"
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr "commit"
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr "fichier ajouté"
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr "fichié modifié"
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr "fichier supprimé"
 
@@ -3924,5 +4293,8 @@
 msgid "%s Tags"
 msgstr "Tags de %s"
 
-#~ msgid "Groups"
-#~ msgstr "Groupes"
+#: rhodecode/templates/tags/tags.html:29
+#, fuzzy
+msgid "Compare tags"
+msgstr "Comparer"
+
Binary file rhodecode/i18n/ja/LC_MESSAGES/rhodecode.mo has changed
--- a/rhodecode/i18n/ja/LC_MESSAGES/rhodecode.po	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/ja/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -12,8 +12,8 @@
 msgstr ""
 "Project-Id-Version: RhodeCode 1.2.0\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-09-02 20:30+0200\n"
-"PO-Revision-Date: 2012-07-14 03:16+0900\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
+"PO-Revision-Date: 2012-10-27 15:06+0900\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: ja <LL@li.org>\n"
 "Plural-Forms: nplurals=1; plural=0\n"
@@ -22,36 +22,38 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.6\n"
 
-#: rhodecode/controllers/changelog.py:94
+#: rhodecode/controllers/changelog.py:95
 msgid "All Branches"
 msgstr "すべてのブランチ"
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr "空白を表示"
 
-#: rhodecode/controllers/changeset.py:90 rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr "空白を無視"
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, python-format
 msgid "%s line context"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:333
-#: rhodecode/controllers/changeset.py:348 rhodecode/lib/diffs.py:70
-msgid "binary file"
-msgstr "バイナリファイル"
-
-#: rhodecode/controllers/changeset.py:408
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
+#, fuzzy, python-format
+msgid "Status change -> %s"
+msgstr ""
+
+#: rhodecode/controllers/changeset.py:346
 msgid ""
 "Changing status on a changeset associated witha closed pull request is "
 "not allowed"
 msgstr ""
 
-#: rhodecode/controllers/compare.py:69
-#, fuzzy
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 msgid "There are no changesets yet"
 msgstr "まだ変更がありません"
 
@@ -81,100 +83,109 @@
 "fulfilling the request."
 msgstr ""
 
-#: rhodecode/controllers/feed.py:49
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
 msgstr "%s リポジトリでの変更"
 
-#: rhodecode/controllers/feed.py:50
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
 msgstr "%s %s フィード"
 
-#: rhodecode/controllers/feed.py:75
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
+msgid "Changeset was too big and was cut off..."
+msgstr "チェンジセットが大きすぎるため、省略しました"
+
+#: rhodecode/controllers/feed.py:92
 msgid "commited on"
 msgstr "コミット"
 
-#: rhodecode/controllers/files.py:84
-#, fuzzy
+#: rhodecode/controllers/files.py:86
 msgid "click here to add new file"
 msgstr "新しいファイルを追加"
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, python-format
 msgid "There are no files yet %s"
 msgstr "まだファイルがありません %s"
 
-#: rhodecode/controllers/files.py:239 rhodecode/controllers/files.py:299
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
-msgstr ""
-
-#: rhodecode/controllers/files.py:266
+msgstr "このリポジトリは %s によって %s にロックされました"
+
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
 msgstr "RhodeCode経由で %s を変更"
 
-#: rhodecode/controllers/files.py:271
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr "変更点なし"
 
-#: rhodecode/controllers/files.py:282 rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
 msgstr "%s へのコミットが成功しました"
 
-#: rhodecode/controllers/files.py:287 rhodecode/controllers/files.py:352
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr "コミット中にエラーが発生しました"
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, python-format
 msgid "Added %s via RhodeCode"
 msgstr "RhodeCode経由で %s を追加"
 
-#: rhodecode/controllers/files.py:332
+#: rhodecode/controllers/files.py:358
 msgid "No content"
 msgstr "内容がありません"
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 msgid "No filename"
 msgstr "ファイル名がありません"
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr "ダウンロードは無効化されています"
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
 msgstr "%s は未知のリビジョンです"
 
-#: rhodecode/controllers/files.py:391
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr "空のリポジトリ"
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr "未知のアーカイブ種別です"
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr "チェンジセット"
 
-#: rhodecode/controllers/files.py:495 rhodecode/controllers/pullrequests.py:72
-#: rhodecode/controllers/summary.py:232 rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr "ブランチ"
 
-#: rhodecode/controllers/files.py:496 rhodecode/controllers/pullrequests.py:76
-#: rhodecode/controllers/summary.py:233 rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr "タグ"
 
-#: rhodecode/controllers/forks.py:73 rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -184,7 +195,7 @@
 "%s "
 "リポジトリはDB内に見つかりませんでした。おそらくファイルシステム上で作られたか名前が変更されたためです。リポジトリをもう一度チェックするためにアプリケーションを立ち上げ直してください。"
 
-#: rhodecode/controllers/forks.py:133 rhodecode/controllers/settings.py:72
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -194,22 +205,22 @@
 "%s "
 "リポジトリはDB内に見つかりませんでした。おそらくファイルシステム上で作られたか名前が変更されたためです。リポジトリをもう一度チェックするためにアプリケーションを立ち上げ直してください。"
 
-#: rhodecode/controllers/forks.py:167
+#: rhodecode/controllers/forks.py:168
 #, python-format
 msgid "forked %s repository as %s"
 msgstr "リポジトリ %s を %s としてフォーク"
 
-#: rhodecode/controllers/forks.py:181
+#: rhodecode/controllers/forks.py:182
 #, python-format
 msgid "An error occurred during repository forking %s"
 msgstr "リポジトリ %s のフォーク中にエラーが発生しました"
 
-#: rhodecode/controllers/journal.py:202 rhodecode/controllers/journal.py:239
+#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
 msgid "public journal"
 msgstr "公開ジャーナル"
 
-#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
-#: rhodecode/templates/base/base.html:220
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr "ジャーナル"
 
@@ -227,58 +238,56 @@
 "email"
 msgstr "パスワードをリセットしました。新しいパスワードをあなたのメールアドレスに送りました"
 
-#: rhodecode/controllers/pullrequests.py:74 rhodecode/model/scm.py:549
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr "ブックマーク"
 
-#: rhodecode/controllers/pullrequests.py:158
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
-msgstr ""
-
-#: rhodecode/controllers/pullrequests.py:160
-#, fuzzy
+msgstr "プルリクエストには3文字以上のタイトルが必要です"
+
+#: rhodecode/controllers/pullrequests.py:188
 msgid "error during creation of pull request"
-msgstr "ユーザー %s の作成中にエラーが発生しました"
-
-#: rhodecode/controllers/pullrequests.py:181
+msgstr "プルリクエストの作成中にエラーが発生しました"
+
+#: rhodecode/controllers/pullrequests.py:220
 msgid "Successfully opened new pull request"
 msgstr "新しいプルリクエストを作成しました"
 
-#: rhodecode/controllers/pullrequests.py:184
+#: rhodecode/controllers/pullrequests.py:223
 msgid "Error occurred during sending pull request"
 msgstr "プルリクエストの作成中にエラーが発生しました"
 
-#: rhodecode/controllers/pullrequests.py:217
-#, fuzzy
+#: rhodecode/controllers/pullrequests.py:256
 msgid "Successfully deleted pull request"
-msgstr "新しいプルリクエストを作成しました"
-
-#: rhodecode/controllers/search.py:131
+msgstr "プルリクエストを削除しました"
+
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr "無効な検索クエリーです。\\\"で囲んで下さい"
 
-#: rhodecode/controllers/search.py:136
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
 msgstr "検索するためのインデックスがありません。whooshでインデックスを作成して下さい"
 
-#: rhodecode/controllers/search.py:140
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr "検索を実行する際にエラーがおきました"
 
-#: rhodecode/controllers/settings.py:107
-#: rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/settings.py:108
+#: rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
 msgstr "リポジトリ %s の更新に成功しました"
 
-#: rhodecode/controllers/settings.py:125
-#: rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/settings.py:126
+#: rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
 msgstr "リポジトリ %s の更新中にエラーが発生しました"
 
-#: rhodecode/controllers/settings.py:143
-#: rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/settings.py:144
+#: rhodecode/controllers/admin/repos.py:304
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was moved or renamed  from "
@@ -288,28 +297,58 @@
 "%s "
 "リポジトリはDB内に見つかりませんでした。おそらくファイルシステム上で作られたか名前が変更されたためです。リポジトリをもう一度チェックするためにアプリケーションを立ち上げ直してください。"
 
-#: rhodecode/controllers/settings.py:155
-#: rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/settings.py:156
+#: rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
 msgstr "リポジトリ %s を削除しました"
 
-#: rhodecode/controllers/settings.py:159
-#: rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/settings.py:160
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
 msgstr "リポジトリ %s の削除中にエラーが発生しました"
 
-#: rhodecode/controllers/summary.py:138
-msgid "No data loaded yet"
+#: rhodecode/controllers/settings.py:179
+#, fuzzy
+msgid "unlocked"
+msgstr "変更可能にする"
+
+#: rhodecode/controllers/settings.py:182
+#, fuzzy
+msgid "locked"
+msgstr "変更可能にする"
+
+#: rhodecode/controllers/settings.py:184
+#, fuzzy, python-format
+msgid "Repository has been %s"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:142
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/controllers/settings.py:188
+#: rhodecode/controllers/admin/repos.py:424
+msgid "An error occurred during unlocking"
+msgstr "アンロック時にエラーが発生しました"
+
+#: rhodecode/controllers/summary.py:140
+msgid "No data loaded yet"
+msgstr "まだデータが読み込まれていません"
+
+#: rhodecode/controllers/summary.py:144
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr "このリポジトリの統計は無効化されています"
 
+#: rhodecode/controllers/admin/defaults.py:96
+#, fuzzy
+msgid "Default settings updated successfully"
+msgstr "LDAP設定を更新しました"
+
+#: rhodecode/controllers/admin/defaults.py:110
+#, fuzzy
+msgid "error occurred during update of defaults"
+msgstr "ユーザー %s の更新中にエラーが発生しました"
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr "BASE"
@@ -367,18 +406,23 @@
 msgstr "LDAP設定の更新中にエラーが発生しました"
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr "なし"
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr "読込"
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr "書込"
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -391,233 +435,225 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
 #: rhodecode/templates/base/base.html:197
-#: rhodecode/templates/base/base.html:337
-#: rhodecode/templates/base/base.html:339
-#: rhodecode/templates/base/base.html:341
+#: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr "管理"
 
-#: rhodecode/controllers/admin/permissions.py:65
+#: rhodecode/controllers/admin/permissions.py:69
 msgid "disabled"
 msgstr "無効にする"
 
-#: rhodecode/controllers/admin/permissions.py:67
-msgid "allowed with manual account activation"
-msgstr "手動でアカウントを有効にする"
-
-#: rhodecode/controllers/admin/permissions.py:69
-msgid "allowed with automatic account activation"
-msgstr "自動でアカウントを有効にする"
-
 #: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+msgid "allowed with manual account activation"
+msgstr "手動でアカウントを有効にする"
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr "自動でアカウントを有効にする"
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr "無効"
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr "有効"
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr "デフォルトの権限を更新しました"
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr "権限の更新中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
-msgstr ""
-
-#: rhodecode/controllers/admin/repos.py:192
+msgstr "--フォーク元を削除--"
+
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
 msgstr "リポジトリ %s を %s から作成"
 
-#: rhodecode/controllers/admin/repos.py:196
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
 msgstr "リポジトリ %s を作成しました"
 
-#: rhodecode/controllers/admin/repos.py:227
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
 msgstr "リポジトリ %s を作成中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:319
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:348
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr "リポジトリユーザーの削除中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
 msgstr "リポジトリユーザーグループの削除中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:385
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr "リポジトリステートの削除中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr "キャッシュの無効化時にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:422
-#, fuzzy
-msgid "An error occurred during unlocking"
-msgstr "メールの保存時にエラーが発生しました"
-
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:451 rhodecode/model/validators.py:299
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr "トークンが合いません"
 
-#: rhodecode/controllers/admin/repos.py:464
-msgid "Pulled from remote location"
-msgstr "リモートから取得"
-
 #: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr "リモートから取得"
+
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr "リモートから取得中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos.py:482
+#: rhodecode/controllers/admin/repos.py:484
 msgid "Nothing"
 msgstr "ありません"
 
-#: rhodecode/controllers/admin/repos.py:484
+#: rhodecode/controllers/admin/repos.py:486
 #, python-format
 msgid "Marked repo %s as fork of %s"
 msgstr "%s リポジトリを %s のフォークとして印をつける"
 
-#: rhodecode/controllers/admin/repos.py:488
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr "操作中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:116
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
 msgstr "リポジトリグループ %s を作成しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:129
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
 msgstr "リポジトリグループ %s を作成中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:163
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
 msgstr "リポジトリグループ %s を更新しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:176
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
 msgstr "リポジトリグループ %s を更新中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:194
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
 msgstr "このグループは %s リポジトリを含んでいるため削除出来ません"
 
-#: rhodecode/controllers/admin/repos_groups.py:202
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
 msgstr "リポジトリグループ %s を削除しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:208
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr "サブグループを含んでいるため、このグループを削除できません"
 
-#: rhodecode/controllers/admin/repos_groups.py:213
-#: rhodecode/controllers/admin/repos_groups.py:218
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
-msgstr "リポジトリグループの削除中にエラーが発生しました"
-
-#: rhodecode/controllers/admin/repos_groups.py:238
+msgstr "リポジトリグループ %s の削除中にエラーが発生しました"
+
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
 msgstr "グループユーザーを削除中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/repos_groups.py:258
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
-msgstr ""
-
-#: rhodecode/controllers/admin/settings.py:121
+msgstr "グループユーザーのグループを削除中にエラーが発生しました"
+
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
 msgstr "リポジトリを再度スキャンしました。 追加: %s 削除: %s"
 
-#: rhodecode/controllers/admin/settings.py:129
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
 msgstr "Whooshの再インデックスタスクを予定に入れました"
 
-#: rhodecode/controllers/admin/settings.py:160
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr "アプリケーション設定を更新しました"
 
-#: rhodecode/controllers/admin/settings.py:164
-#: rhodecode/controllers/admin/settings.py:275
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr "アプリケーション設定を更新中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/settings.py:200
-#, fuzzy
+#: rhodecode/controllers/admin/settings.py:207
 msgid "Updated visualisation settings"
-msgstr "アプリケーション設定を更新しました"
-
-#: rhodecode/controllers/admin/settings.py:205
-#, fuzzy
+msgstr "表示の設定を更新しました"
+
+#: rhodecode/controllers/admin/settings.py:212
 msgid "error occurred during updating visualisation settings"
-msgstr "アプリケーション設定を更新中にエラーが発生しました"
-
-#: rhodecode/controllers/admin/settings.py:271
-#, fuzzy
+msgstr "表示の設定を更新中にエラーが発生しました"
+
+#: rhodecode/controllers/admin/settings.py:295
 msgid "Updated VCS settings"
-msgstr "Mercurialの設定を更新しました"
-
-#: rhodecode/controllers/admin/settings.py:285
+msgstr "VCSの設定を更新しました"
+
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr "新しいフックを追加しました"
 
-#: rhodecode/controllers/admin/settings.py:297
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr "フックを更新しました"
 
-#: rhodecode/controllers/admin/settings.py:301
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr "フックの作成時にエラーが発生しました"
 
-#: rhodecode/controllers/admin/settings.py:320
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr "メールのタスクを作成しました"
 
-#: rhodecode/controllers/admin/settings.py:375
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
 msgstr "このユーザーを編集出来ません。このユーザーはアプリケーションにとって必要不可欠です。"
 
-#: rhodecode/controllers/admin/settings.py:406
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr "アカウントを更新しました"
 
-#: rhodecode/controllers/admin/settings.py:421
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
 msgstr "ユーザー %s の更新中にエラーが発生しました"
@@ -632,106 +668,99 @@
 msgid "error occurred during creation of user %s"
 msgstr "ユーザー %s の作成中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/users.py:171
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr "ユーザーの更新に成功しました"
 
-#: rhodecode/controllers/admin/users.py:207
-msgid "successfully deleted user"
-msgstr "ユーザーの削除に成功しました"
-
 #: rhodecode/controllers/admin/users.py:212
+msgid "successfully deleted user"
+msgstr "ユーザーの削除に成功しました"
+
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr "ユーザーの削除中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr "このユーザーは編集できません"
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr "ユーザーに 'リポジトリ作成' 権限を与えました"
 
-#: rhodecode/controllers/admin/users.py:271
+#: rhodecode/controllers/admin/users.py:277
 msgid "Revoked 'repository create' permission to user"
 msgstr "ユーザーの 'リポジトリ作成' 権限を取り消しました"
 
-#: rhodecode/controllers/admin/users.py:277
-#, fuzzy
+#: rhodecode/controllers/admin/users.py:283
 msgid "Granted 'repository fork' permission to user"
-msgstr "ユーザーに 'リポジトリ作成' 権限を与えました"
-
-#: rhodecode/controllers/admin/users.py:282
-#, fuzzy
-msgid "Revoked 'repository fork' permission to user"
-msgstr "ユーザーの 'リポジトリ作成' 権限を取り消しました"
+msgstr "ユーザーに 'リポジトリフォーク' 権限を与えました"
 
 #: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
-#, fuzzy
+msgid "Revoked 'repository fork' permission to user"
+msgstr "ユーザーの 'リポジトリフォーク' 権限を取り消しました"
+
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 msgid "An error occurred during permissions saving"
-msgstr "メールの保存時にエラーが発生しました"
-
-#: rhodecode/controllers/admin/users.py:303
+msgstr "権限の保存時にエラーが発生しました"
+
+#: rhodecode/controllers/admin/users.py:309
 #, python-format
 msgid "Added email %s to user"
 msgstr "ユーザーにメール %s を追加しました"
 
-#: rhodecode/controllers/admin/users.py:309
+#: rhodecode/controllers/admin/users.py:315
 msgid "An error occurred during email saving"
 msgstr "メールの保存時にエラーが発生しました"
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 msgid "Removed email from user"
 msgstr "ユーザーからメールを削除しました"
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
 msgstr "ユーザーグループ %s を作成しました"
 
-#: rhodecode/controllers/admin/users_groups.py:95
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
 msgstr "ユーザーグループ %s の作成中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/users_groups.py:135
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
 msgstr "ユーザーグループ %s を更新しました"
 
-#: rhodecode/controllers/admin/users_groups.py:157
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
 msgstr "ユーザーグループ %s の更新中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/users_groups.py:174
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr "ユーザーグループ"
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr "ユーザーグループの削除中にエラーが発生しました"
 
-#: rhodecode/controllers/admin/users_groups.py:233
-#, fuzzy
+#: rhodecode/controllers/admin/users_groups.py:257
 msgid "Granted 'repository create' permission to users group"
-msgstr "ユーザーに 'リポジトリ作成' 権限を与えました"
-
-#: rhodecode/controllers/admin/users_groups.py:238
-#, fuzzy
+msgstr "ユーザーグループに 'リポジトリ作成' 権限を与えました"
+
+#: rhodecode/controllers/admin/users_groups.py:262
 msgid "Revoked 'repository create' permission to users group"
-msgstr "ユーザーの 'リポジトリ作成' 権限を取り消しました"
-
-#: rhodecode/controllers/admin/users_groups.py:244
-#, fuzzy
+msgstr "ユーザーグループの 'リポジトリ作成' 権限を取り消しました"
+
+#: rhodecode/controllers/admin/users_groups.py:268
 msgid "Granted 'repository fork' permission to users group"
-msgstr "ユーザーに 'リポジトリ作成' 権限を与えました"
-
-#: rhodecode/controllers/admin/users_groups.py:249
-#, fuzzy
+msgstr "ユーザーグループに 'リポジトリフォーク' 権限を与えました"
+
+#: rhodecode/controllers/admin/users_groups.py:273
 msgid "Revoked 'repository fork' permission to users group"
-msgstr "ユーザーの 'リポジトリ作成' 権限を取り消しました"
+msgstr "ユーザーグループの 'リポジトリフォーク' 権限を取り消しました"
 
 #: rhodecode/lib/auth.py:499
 msgid "You need to be a registered user to perform this action"
@@ -741,293 +770,316 @@
 msgid "You need to be a signed in to view this page"
 msgstr "このページを閲覧するためにはサインインが必要です"
 
-#: rhodecode/lib/diffs.py:86
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr "バイナリファイル"
+
+#: rhodecode/lib/diffs.py:90
 msgid "Changeset was too big and was cut off, use diff menu to display this diff"
 msgstr ""
 
-#: rhodecode/lib/diffs.py:96
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr "検出された変更はありません"
 
-#: rhodecode/lib/helpers.py:372
+#: rhodecode/lib/helpers.py:373
 #, python-format
 msgid "%a, %d %b %Y %H:%M:%S"
 msgstr "%a, %d %b %Y %H:%M:%S"
 
-#: rhodecode/lib/helpers.py:484
+#: rhodecode/lib/helpers.py:485
 msgid "True"
 msgstr "True"
 
-#: rhodecode/lib/helpers.py:488
+#: rhodecode/lib/helpers.py:489
 msgid "False"
 msgstr "False"
 
+#: rhodecode/lib/helpers.py:529
+#, fuzzy, python-format
+msgid "Deleted branch: %s"
+msgstr "リポジトリ %s を削除しました"
+
 #: rhodecode/lib/helpers.py:532
+#, fuzzy, python-format
+msgid "Created tag: %s"
+msgstr "ユーザー %s を作成しました"
+
+#: rhodecode/lib/helpers.py:545
 msgid "Changeset not found"
 msgstr "リビジョンが見つかりません"
 
-#: rhodecode/lib/helpers.py:555
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
 msgstr "%s から %s までのすべてのチェンジセットを表示"
 
-#: rhodecode/lib/helpers.py:561
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr "比較の表示"
 
-#: rhodecode/lib/helpers.py:581
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:583 rhodecode/templates/changelog/changelog.html:48
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr "リビジョン"
 
-#: rhodecode/lib/helpers.py:606
-msgid "fork name "
-msgstr "フォーク名 "
-
-#: rhodecode/lib/helpers.py:620
+#: rhodecode/lib/helpers.py:640
+#, fuzzy, python-format
+msgid "fork name %s"
+msgstr ""
+
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
 msgstr "プルリクエスト #%s"
 
-#: rhodecode/lib/helpers.py:626
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr "リポジトリを[削除]"
 
-#: rhodecode/lib/helpers.py:628 rhodecode/lib/helpers.py:638
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr "リポジトリを[作成]"
 
-#: rhodecode/lib/helpers.py:630
+#: rhodecode/lib/helpers.py:663
 msgid "[created] repository as fork"
 msgstr "フォークしてリポジトリを[作成]"
 
-#: rhodecode/lib/helpers.py:632 rhodecode/lib/helpers.py:640
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr "リポジトリを[フォーク]"
 
-#: rhodecode/lib/helpers.py:634 rhodecode/lib/helpers.py:642
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr "リポジトリを[更新]"
 
-#: rhodecode/lib/helpers.py:636
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr "リポジトリを[削除]"
 
-#: rhodecode/lib/helpers.py:644
+#: rhodecode/lib/helpers.py:677
 msgid "[created] user"
 msgstr "ユーザーを[作成]"
 
-#: rhodecode/lib/helpers.py:646
+#: rhodecode/lib/helpers.py:679
 msgid "[updated] user"
 msgstr "ユーザーを[更新]"
 
-#: rhodecode/lib/helpers.py:648
+#: rhodecode/lib/helpers.py:681
 msgid "[created] users group"
 msgstr "ユーザーグループを[作成]"
 
-#: rhodecode/lib/helpers.py:650
+#: rhodecode/lib/helpers.py:683
 msgid "[updated] users group"
 msgstr "ユーザーグループを[更新]"
 
-#: rhodecode/lib/helpers.py:652
+#: rhodecode/lib/helpers.py:685
 msgid "[commented] on revision in repository"
 msgstr "リポジトリのリビジョンに[コメント]"
 
-#: rhodecode/lib/helpers.py:654
-#, fuzzy
+#: rhodecode/lib/helpers.py:687
 msgid "[commented] on pull request for"
 msgstr "プルリクエストに[コメント]"
 
-#: rhodecode/lib/helpers.py:656
-#, fuzzy
+#: rhodecode/lib/helpers.py:689
 msgid "[closed] pull request for"
-msgstr "プルリクエストに[コメント]"
-
-#: rhodecode/lib/helpers.py:658
+msgstr "プルリクエストを[クローズ]"
+
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr "[プッシュ]"
 
-#: rhodecode/lib/helpers.py:660
+#: rhodecode/lib/helpers.py:693
 msgid "[committed via RhodeCode] into repository"
 msgstr "リポジトリに[RhodeCode経由でコミット]"
 
-#: rhodecode/lib/helpers.py:662
+#: rhodecode/lib/helpers.py:695
 msgid "[pulled from remote] into repository"
 msgstr "リポジトリに[リモートからプル]"
 
-#: rhodecode/lib/helpers.py:664
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr "[プル]"
 
-#: rhodecode/lib/helpers.py:666
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr "リポジトリの[フォローを開始]"
 
-#: rhodecode/lib/helpers.py:668
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr "リポジトリの[フォローを停止]"
 
-#: rhodecode/lib/helpers.py:840
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
 msgstr " と %s 以上"
 
-#: rhodecode/lib/helpers.py:844
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
-msgstr ""
-
-#: rhodecode/lib/utils2.py:335
+msgstr "ファイルなし"
+
+#: rhodecode/lib/utils2.py:403
 #, python-format
 msgid "%d year"
 msgid_plural "%d years"
 msgstr[0] "%d 年"
 
-#: rhodecode/lib/utils2.py:336
+#: rhodecode/lib/utils2.py:404
 #, python-format
 msgid "%d month"
 msgid_plural "%d months"
 msgstr[0] "%d ヶ月"
 
-#: rhodecode/lib/utils2.py:337
+#: rhodecode/lib/utils2.py:405
 #, python-format
 msgid "%d day"
 msgid_plural "%d days"
 msgstr[0] "%d 日"
 
-#: rhodecode/lib/utils2.py:338
+#: rhodecode/lib/utils2.py:406
 #, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] "%d 時間"
 
-#: rhodecode/lib/utils2.py:339
+#: rhodecode/lib/utils2.py:407
 #, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
 msgstr[0] "%d 分"
 
-#: rhodecode/lib/utils2.py:340
+#: rhodecode/lib/utils2.py:408
 #, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
 msgstr[0] "%d 秒"
 
-#: rhodecode/lib/utils2.py:355
+#: rhodecode/lib/utils2.py:424
+#, python-format
+msgid "in %s"
+msgstr ""
+
+#: rhodecode/lib/utils2.py:426
 #, python-format
 msgid "%s ago"
 msgstr "%s 前"
 
-#: rhodecode/lib/utils2.py:357
+#: rhodecode/lib/utils2.py:428
+#, fuzzy, python-format
+msgid "in %s and %s"
+msgstr "%s と %s 前"
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
 msgstr "%s と %s 前"
 
-#: rhodecode/lib/utils2.py:360
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr "ちょうどいま"
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 msgid "password reset link"
 msgstr "パスワードリセットのリンク"
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+msgid "Repository no access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+msgid "Repository read access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+msgid "Repository write access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+msgid "Repository admin access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+msgid "Repositories Group no access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+msgid "Repositories Group read access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+msgid "Repositories Group write access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+msgid "Repositories Group admin access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+msgid "RhodeCode Administrator"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+msgid "Repository creation disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+msgid "Repository creation enabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+msgid "Repository forking disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+msgid "Repository forking enabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+msgid "Register disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr "未レビュー"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+msgid "Approved"
+msgstr "承認"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr "却下"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr "レビュー中"
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
 msgstr ""
 
-#: rhodecode/model/comment.py:157
+#: rhodecode/model/comment.py:173
 msgid "[Mention]"
-msgstr ""
-
-#: rhodecode/model/db.py:1140
-msgid "Repository no access"
-msgstr ""
-
-#: rhodecode/model/db.py:1141
-msgid "Repository read access"
-msgstr ""
-
-#: rhodecode/model/db.py:1142
-msgid "Repository write access"
-msgstr ""
-
-#: rhodecode/model/db.py:1143
-msgid "Repository admin access"
-msgstr ""
-
-#: rhodecode/model/db.py:1145
-msgid "Repositories Group no access"
-msgstr ""
-
-#: rhodecode/model/db.py:1146
-msgid "Repositories Group read access"
-msgstr ""
-
-#: rhodecode/model/db.py:1147
-msgid "Repositories Group write access"
-msgstr ""
-
-#: rhodecode/model/db.py:1148
-msgid "Repositories Group admin access"
-msgstr ""
-
-#: rhodecode/model/db.py:1150
-msgid "RhodeCode Administrator"
-msgstr ""
-
-#: rhodecode/model/db.py:1151
-msgid "Repository creation disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1152
-msgid "Repository creation enabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1153
-msgid "Repository forking disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1154
-msgid "Repository forking enabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1155
-msgid "Register disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1156
-msgid "Register new user with RhodeCode with manual activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1159
-msgid "Register new user with RhodeCode with auto activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1579
-msgid "Not Reviewed"
-msgstr "未レビュー"
-
-#: rhodecode/model/db.py:1580
-msgid "Approved"
-msgstr "承認"
-
-#: rhodecode/model/db.py:1581
-msgid "Rejected"
-msgstr "却下"
-
-#: rhodecode/model/db.py:1582
-msgid "Under Review"
-msgstr "レビュー中"
+msgstr "[Mention]"
 
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
@@ -1048,35 +1100,41 @@
 msgstr "%(min)i 文字以上必要です"
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
-msgstr "コミットに対するコメント"
+#, fuzzy, python-format
+msgid "commented on commit at %(when)s"
+msgstr ""
 
 #: rhodecode/model/notification.py:221
-msgid "sent message"
+#, python-format
+msgid "sent message at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
+#, python-format
+msgid "mentioned you at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:223
-msgid "registered in RhodeCode"
+#, python-format
+msgid "registered in RhodeCode at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
+#, fuzzy, python-format
+msgid "opened new pull request at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:225
-msgid "commented on pull request"
+#, fuzzy, python-format
+msgid "commented on pull request at %(when)s"
 msgstr ""
 
-#: rhodecode/model/pull_request.py:84
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
 msgstr ""
 
-#: rhodecode/model/scm.py:535
+#: rhodecode/model/scm.py:542
 msgid "latest tip"
 msgstr "最新のtip"
 
@@ -1084,57 +1142,57 @@
 msgid "new user registration"
 msgstr "新規ユーザー登録"
 
-#: rhodecode/model/user.py:255 rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/model/user.py:323
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/model/user.py:329
+#: rhodecode/model/user.py:331
 #, python-format
 msgid ""
 "user \"%s\" still owns %s repositories and cannot be removed. Switch "
 "owners or remove those repositories. %s"
 msgstr ""
 
-#: rhodecode/model/validators.py:35 rhodecode/model/validators.py:36
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
 msgstr ""
 
-#: rhodecode/model/validators.py:82
+#: rhodecode/model/validators.py:83
 #, python-format
 msgid "Username \"%(username)s\" already exists"
 msgstr "ユーザー名 \"%(username)s\" はすでに使われています"
 
-#: rhodecode/model/validators.py:84
+#: rhodecode/model/validators.py:85
 #, python-format
 msgid "Username \"%(username)s\" is forbidden"
 msgstr "ユーザー名 \"%(username)s\" は許可されていません"
 
-#: rhodecode/model/validators.py:86
+#: rhodecode/model/validators.py:87
 msgid ""
 "Username may only contain alphanumeric characters underscores, periods or"
 " dashes and must begin with alphanumeric character"
 msgstr "ユーザー名はアルファベット、アンダースコア(_)、ピリオド(.)、ダッシュ(-)しか使えません。また、アルファベットから始まる必要があります"
 
-#: rhodecode/model/validators.py:114
+#: rhodecode/model/validators.py:115
 #, python-format
 msgid "Username %(username)s is not valid"
 msgstr "ユーザー名 %(username)s は不正です"
 
-#: rhodecode/model/validators.py:133
+#: rhodecode/model/validators.py:134
 msgid "Invalid users group name"
 msgstr "不正なユーザーグループ名です"
 
-#: rhodecode/model/validators.py:134
+#: rhodecode/model/validators.py:135
 #, python-format
 msgid "Users group \"%(usersgroup)s\" already exists"
 msgstr "ユーザーグループ \"%(usersgroup)s\" はすでに存在します"
 
-#: rhodecode/model/validators.py:136
+#: rhodecode/model/validators.py:137
 msgid ""
 "users group name may only contain  alphanumeric characters underscores, "
 "periods or dashes and must begin with alphanumeric character"
@@ -1142,96 +1200,101 @@
 "ユーザーグループ名はアルファベット、アンダースコア(_)、ピリオド(.)、ダッシュ(-)しか使えません。また、アルファベットから始まる必要があります"
 " "
 
-#: rhodecode/model/validators.py:174
+#: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
 msgstr "このグループは親にできません"
 
-#: rhodecode/model/validators.py:175
+#: rhodecode/model/validators.py:176
 #, python-format
 msgid "Group \"%(group_name)s\" already exists"
 msgstr "グループ \"%(group_name)s\" はすでに存在します"
 
-#: rhodecode/model/validators.py:177
+#: rhodecode/model/validators.py:178
 #, python-format
 msgid "Repository with name \"%(group_name)s\" already exists"
 msgstr "グループ名 \"%(group_name)s\" を持つリポジトリはすでに存在します"
 
-#: rhodecode/model/validators.py:235
+#: rhodecode/model/validators.py:236
 msgid "Invalid characters (non-ascii) in password"
 msgstr "パスワードに利用出来ない文字列(non-ascii)です"
 
-#: rhodecode/model/validators.py:250
+#: rhodecode/model/validators.py:251
 msgid "Passwords do not match"
 msgstr "パスワードが一致しません"
 
-#: rhodecode/model/validators.py:267
+#: rhodecode/model/validators.py:268
 msgid "invalid password"
 msgstr "不正なパスワードです"
 
-#: rhodecode/model/validators.py:268
+#: rhodecode/model/validators.py:269
 msgid "invalid user name"
 msgstr "不正なユーザー名です"
 
-#: rhodecode/model/validators.py:269
+#: rhodecode/model/validators.py:270
 msgid "Your account is disabled"
 msgstr "アカウントは無効です"
 
-#: rhodecode/model/validators.py:313
+#: rhodecode/model/validators.py:314
 #, python-format
 msgid "Repository name %(repo)s is disallowed"
 msgstr "リポジトリ名 %(repo)s は許可されていません"
 
-#: rhodecode/model/validators.py:315
+#: rhodecode/model/validators.py:316
 #, python-format
 msgid "Repository named %(repo)s already exists"
 msgstr "リポジトリ %(repo)s はすでに存在します"
 
-#: rhodecode/model/validators.py:316
+#: rhodecode/model/validators.py:317
 #, python-format
 msgid "Repository \"%(repo)s\" already exists in group \"%(group)s\""
 msgstr "リポジトリ \"%(repo)s\" は グループ \"%(group)s\" にすでに存在します"
 
-#: rhodecode/model/validators.py:318
+#: rhodecode/model/validators.py:319
 #, python-format
 msgid "Repositories group with name \"%(repo)s\" already exists"
 msgstr "リポジトリグループ名 \"%(repo)s\" はすでに存在します"
 
-#: rhodecode/model/validators.py:431
+#: rhodecode/model/validators.py:432
 msgid "invalid clone url"
 msgstr "無効なクローンURIです"
 
-#: rhodecode/model/validators.py:432
+#: rhodecode/model/validators.py:433
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
 msgstr ""
 
-#: rhodecode/model/validators.py:457
+#: rhodecode/model/validators.py:458
 msgid "Fork have to be the same type as parent"
 msgstr "フォークは親と同じタイプの必要があります"
 
-#: rhodecode/model/validators.py:478
+#: rhodecode/model/validators.py:473
+#, fuzzy
+msgid "You don't have permissions to create repository in this group"
+msgstr "このページを見る権限がありません"
+
+#: rhodecode/model/validators.py:498
 msgid "This username or users group name is not valid"
 msgstr "ユーザー名かユーザーグループが不正です"
 
-#: rhodecode/model/validators.py:562
+#: rhodecode/model/validators.py:582
 msgid "This is not a valid path"
 msgstr "不正なパスです"
 
-#: rhodecode/model/validators.py:577
+#: rhodecode/model/validators.py:597
 msgid "This e-mail address is already taken"
 msgstr "このメールアドレスはすでに取得されています"
 
-#: rhodecode/model/validators.py:597
+#: rhodecode/model/validators.py:617
 #, python-format
 msgid "e-mail \"%(email)s\" does not exist."
 msgstr "メールアドレス \"%(email)s\" は存在しません"
 
-#: rhodecode/model/validators.py:634
+#: rhodecode/model/validators.py:654
 msgid ""
 "The LDAP Login attribute of the CN must be specified - this is the name "
 "of the attribute that is equivalent to \"username\""
 msgstr "LDAPのこのCNに対するログイン属性は必須です。 - これは \"ユーザー名\" と同じです"
 
-#: rhodecode/model/validators.py:653
+#: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
 msgstr ""
@@ -1254,7 +1317,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:221
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr "リポジトリ"
 
@@ -1265,6 +1328,7 @@
 msgstr "リポジトリの追加"
 
 #: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1274,9 +1338,10 @@
 msgstr "グループ名"
 
 #: rhodecode/templates/index_base.html:30
-#: rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142
-#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1285,142 +1350,137 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr "説明"
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr "リポジトリグループ"
 
-#: rhodecode/templates/index_base.html:70
-#: rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:157
-#: rhodecode/templates/admin/users/user_edit_my_account.html:193
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
 #: rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr "名前"
 
-#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:73
 msgid "Last change"
 msgstr "最後の変更時刻"
 
-#: rhodecode/templates/index_base.html:73
-#: rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:159
-#: rhodecode/templates/journal/journal.html:188
+#: rhodecode/templates/index_base.html:74
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
 msgid "Tip"
 msgstr "Tip"
 
-#: rhodecode/templates/index_base.html:74
-#: rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr "所有者"
 
-#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:76
 #: rhodecode/templates/summary/summary.html:48
 #: rhodecode/templates/summary/summary.html:51
 msgid "RSS"
 msgstr "RSS"
 
-#: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr "Atom"
 
-#: rhodecode/templates/index_base.html:110
-#: rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr "%s の RSS フィードを購読"
-
-#: rhodecode/templates/index_base.html:117
-#: rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr "%s の ATOM フィードを購読"
-
-#: rhodecode/templates/index_base.html:140
-msgid "Group Name"
-msgstr "グループ名"
-
-#: rhodecode/templates/index_base.html:158
-#: rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr "昇順で並び換え"
 
-#: rhodecode/templates/index_base.html:159
-#: rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr "降順で並び替え"
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
 msgid "Last Change"
 msgstr "最後の変更点"
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr "レコードが見つかりません"
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr "データエラー"
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 msgid "Loading..."
 msgstr "読み込み中..."
 
@@ -1438,7 +1498,7 @@
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr "ユーザー名"
 
@@ -1495,23 +1555,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr "名前"
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr "名字"
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr "メールアドレス"
 
@@ -1524,6 +1584,7 @@
 msgstr "アカウントは管理者のアクティベーションを待つ必要があります"
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1551,7 +1612,7 @@
 msgstr "タグ"
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr "まだタグがありません"
 
@@ -1574,20 +1635,22 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr "アクション"
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr "リポジトリ"
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
 #: rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr "日時"
@@ -1596,10 +1659,81 @@
 msgid "From IP"
 msgstr "アクセス元IPアドレス"
 
-#: rhodecode/templates/admin/admin_log.html:53
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr "まだアクションがありません"
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+#, fuzzy
+msgid "Repositories defaults"
+msgstr "リポジトリグループ"
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+#, fuzzy
+msgid "Defaults"
+msgstr "default"
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr "リポジトリのタイプ"
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr "非公開リポジトリはコラボレーターとして明示的に追加された人でないと見つけられません"
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr "統計を有効にする"
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr "概要ページの統計ウィンドウを有効にします"
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr "ダウンロードを有効にする"
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr "概要ページのダウンロードメニューを有効にします"
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+msgid "Enable locking"
+msgstr "ロックを有効にする"
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr "保存"
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
 msgstr "LDAP管理"
@@ -1672,18 +1806,6 @@
 msgid "E-mail Attribute"
 msgstr "メールアドレス属性"
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr "保存"
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1698,8 +1820,8 @@
 msgstr "コメント"
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:254
-#: rhodecode/templates/base/base.html:256
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr "プルリクエスト"
 
@@ -1727,7 +1849,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1741,10 +1863,6 @@
 msgid "Anonymous access"
 msgstr "匿名アクセス"
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr "リポジトリの権限"
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
 msgid ""
 "All default permissions on each repository will be reset to choosen "
@@ -1753,24 +1871,40 @@
 msgstr ""
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr "現在の設定を上書きする"
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr "リポジトリグループ"
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr ""
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr "登録"
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr "リポジトリ作成"
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
-#, fuzzy
+#: rhodecode/templates/admin/permissions/permissions.html:85
 msgid "Repository forking"
-msgstr "リポジトリ作成"
-
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:241
+msgstr "リポジトリフォーク"
+
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr "保存"
 
@@ -1790,8 +1924,8 @@
 msgstr "新規追加"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr "クローン元"
 
@@ -1801,24 +1935,11 @@
 msgid "Optional http[s] url from which repository should be cloned."
 msgstr "オプション:クローンするリポジトリのHTTP[S]のURLを指定します"
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr "リポジトリグループ"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 msgid "Optionaly select a group to put this repository into."
 msgstr "オプション:このリポジトリが属するグループを選択します"
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr "リポジトリのタイプ"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 msgid "Type of repository to create."
 msgstr "作成するリポジトリのタイプを指定します"
@@ -1844,15 +1965,6 @@
 msgid "Keep it short and to the point. Use a README file for longer descriptions."
 msgstr "短く要点を絞ってください。長い説明にはREADMEファイルを利用してください。"
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid ""
-"Private repositories are only visible to people explicitly added as "
-"collaborators."
-msgstr "非公開リポジトリはコラボレーターとして明示的に追加された人でないと見つけられません"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
 msgstr "追加"
@@ -1867,12 +1979,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr "編集"
 
@@ -1886,32 +2000,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr "オプション: このリポジトリを配置するグループを選択します"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr "統計を有効にする"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr "概要ページの統計ウィンドウを有効にします"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr "ダウンロードを有効にする"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr "概要ページのダウンロードメニューを有効にします"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-#, fuzzy
-msgid "Enable locking"
-msgstr "有効にする"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 msgid "Change owner of this repository."
 msgstr "リポジトリの所有者を変更"
@@ -1919,11 +2007,11 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
@@ -1947,7 +2035,7 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:159
 msgid "Confirm to remove current statistics"
-msgstr "現在の統計情報をリセットしてもよろしいですか"
+msgstr "現在の統計情報をリセットしてもよろしいですか?"
 
 #: rhodecode/templates/admin/repos/repo_edit.html:162
 msgid "Fetched to rev"
@@ -1981,82 +2069,104 @@
 msgid "Confirm to invalidate repository cache"
 msgstr "リポジトリのキャッシュを無効化してもよろしいですか?"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:195
-#: rhodecode/templates/base/base.html:318
-#: rhodecode/templates/base/base.html:320
-#: rhodecode/templates/base/base.html:322
-msgid "Public journal"
-msgstr "公開ジャーナル"
+#: rhodecode/templates/admin/repos/repo_edit.html:193
+msgid ""
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:198
+msgid "List of cached values"
+msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:201
-msgid "Remove from public journal"
-msgstr "公開ジャーナルから削除する"
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+#, fuzzy
+msgid "Key"
+msgstr "APIキー"
 
 #: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr "アクティブ"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
+#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
+msgid "Public journal"
+msgstr "公開ジャーナル"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:224
+msgid "Remove from public journal"
+msgstr "公開ジャーナルから削除する"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr "公開ジャーナルに追加する"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:208
+#: rhodecode/templates/admin/repos/repo_edit.html:231
 msgid ""
 "All actions made on this repository will be accessible to everyone in "
 "public journal"
 msgstr "公開ジャーナルでは、このリポジトリに対して行った操作のすべてが公開されます"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
-#, fuzzy
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 msgid "Locking"
-msgstr "変更可能にする"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+msgstr "ロック"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:220
-#, fuzzy
+msgstr "リポジトリのアンロック"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Confirm to unlock repository"
-msgstr "このリポジトリを削除しますか?"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+msgstr "このリポジトリのロックを外しますか?"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:223
-#, fuzzy
+msgstr "リポジトリのロック"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "Confirm to lock repository"
-msgstr "このリポジトリを削除しますか?"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:224
-#, fuzzy
+msgstr "このリポジトリをロックしますか?"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 msgid "Repository is not locked"
-msgstr "リポジトリロケーション"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+msgstr "リポジトリはロックされていません"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:252
 msgid "Force locking on repository. Works only when anonymous access is disabled"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:236
+#: rhodecode/templates/admin/repos/repo_edit.html:259
 msgid "Set as fork of"
 msgstr "フォーク元の設定"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:245
+#: rhodecode/templates/admin/repos/repo_edit.html:268
 msgid "Manually set this repository as a fork of another from the list"
 msgstr "このリポジトリをリスト中の他のリポジトリのフォークとして、手動で設定します"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:251
+#: rhodecode/templates/admin/repos/repo_edit.html:274
 #: rhodecode/templates/changeset/changeset_file_comment.html:26
 msgid "Delete"
 msgstr "削除"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:255
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Remove this repository"
 msgstr "このリポジトリを削除"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-#: rhodecode/templates/journal/journal.html:84
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Confirm to delete this repository"
 msgstr "このリポジトリを削除しますか?"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:259
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
 "This repository will be renamed in a special way in order to be "
 "unaccesible for RhodeCode and VCS systems.\n"
@@ -2084,7 +2194,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:217
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr "管理"
 
@@ -2095,8 +2205,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr "非公開リポジトリ"
 
@@ -2119,12 +2229,12 @@
 msgstr "別のメンバーを追加"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:97
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:81
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:87
 msgid "Failed to remove user"
 msgstr "ユーザーの削除に失敗しました"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:112
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:96
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:103
 msgid "Failed to remove users group"
 msgstr "ユーザーグループの削除に失敗しました"
 
@@ -2132,11 +2242,44 @@
 msgid "Repositories administration"
 msgstr "リポジトリ管理"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:8
-msgid "Groups"
-msgstr "グループ"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:12
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:73
+msgid "apply to children"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:9
+#: rhodecode/templates/base/base.html:122
+#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
+#: rhodecode/templates/bookmarks/bookmarks.html:11
+#: rhodecode/templates/branches/branches.html:10
+#: rhodecode/templates/changelog/changelog.html:10
+#: rhodecode/templates/changeset/changeset.html:10
+#: rhodecode/templates/changeset/changeset_range.html:9
+#: rhodecode/templates/compare/compare_diff.html:9
+#: rhodecode/templates/files/file_diff.html:8
+#: rhodecode/templates/files/files.html:8
+#: rhodecode/templates/files/files_add.html:15
+#: rhodecode/templates/files/files_edit.html:15
+#: rhodecode/templates/followers/followers.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/pullrequests/pullrequest.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
+#: rhodecode/templates/settings/repo_settings.html:9
+#: rhodecode/templates/shortlog/shortlog.html:10
+#: rhodecode/templates/summary/summary.html:8
+#: rhodecode/templates/tags/tags.html:11
+msgid "Home"
+msgstr "ホーム"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:13
 msgid "with"
 msgstr "と"
 
@@ -2162,7 +2305,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr "保存"
 
@@ -2198,20 +2341,21 @@
 msgid "action"
 msgstr "アクション"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr "削除"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#, python-format
-msgid "Confirm to delete this group: %s"
-msgstr "グループ %s を削除してもよろしいですか"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#, fuzzy, python-format
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr "まだリポジトリグループがありません"
 
@@ -2236,7 +2380,7 @@
 
 #: rhodecode/templates/admin/settings/hooks.html:56
 msgid "remove"
-msgstr ""
+msgstr "削除"
 
 #: rhodecode/templates/admin/settings/hooks.html:88
 msgid "Failed to remove hook"
@@ -2304,140 +2448,143 @@
 msgstr "GAコード"
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr "設定を保存"
 
 #: rhodecode/templates/admin/settings/settings.html:119
+msgid "Visualisation settings"
+msgstr "表示の設定"
+
+#: rhodecode/templates/admin/settings/settings.html:127
 #, fuzzy
-msgid "Visualisation settings"
-msgstr "アプリケーション全体の設定"
-
-#: rhodecode/templates/admin/settings/settings.html:128
-#, fuzzy
+msgid "General"
+msgstr "有効にする"
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:139
 msgid "Icons"
-msgstr "オプション"
-
-#: rhodecode/templates/admin/settings/settings.html:133
-msgid "Show public repo icon on repositories"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:137
-#, fuzzy
-msgid "Show private repo icon on repositories"
-msgstr "非公開リポジトリ"
+msgstr "アイコン"
 
 #: rhodecode/templates/admin/settings/settings.html:144
-#, fuzzy
+msgid "Show public repo icon on repositories"
+msgstr "公開リポジトリのアイコンを表示"
+
+#: rhodecode/templates/admin/settings/settings.html:148
+msgid "Show private repo icon on repositories"
+msgstr "非公開リポジトリのアイコンを表示"
+
+#: rhodecode/templates/admin/settings/settings.html:155
 msgid "Meta-Tagging"
-msgstr "設定"
-
-#: rhodecode/templates/admin/settings/settings.html:149
+msgstr "メタタグ"
+
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:176
-#, fuzzy
+msgstr "次のメタタグを変換する"
+
+#: rhodecode/templates/admin/settings/settings.html:187
 msgid "VCS settings"
-msgstr "設定"
-
-#: rhodecode/templates/admin/settings/settings.html:185
+msgstr "VCSの設定"
+
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr "Web"
 
-#: rhodecode/templates/admin/settings/settings.html:190
-#, fuzzy
+#: rhodecode/templates/admin/settings/settings.html:201
 msgid "require ssl for vcs operations"
-msgstr "プッシュにSSLを必須とする"
-
-#: rhodecode/templates/admin/settings/settings.html:192
+msgstr "VCSの操作にSSLを必須とする"
+
+#: rhodecode/templates/admin/settings/settings.html:203
 msgid ""
 "RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
 "will return HTTP Error 406: Not Acceptable"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:198
+#: rhodecode/templates/admin/settings/settings.html:209
 msgid "Hooks"
 msgstr "フック"
 
-#: rhodecode/templates/admin/settings/settings.html:203
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr "プッシュ後にリポジトリをを更新する (hg update)"
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr "プッシュ後にリポジトリのサイズを表示する"
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr "ユーザーのプッシュコマンドを記録する"
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr "ユーザーのプルコマンドを記録する"
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr "高度な設定"
 
-#: rhodecode/templates/admin/settings/settings.html:224
-#, fuzzy
+#: rhodecode/templates/admin/settings/settings.html:235
 msgid "Mercurial Extensions"
-msgstr "Mercurialリポジトリ"
-
-#: rhodecode/templates/admin/settings/settings.html:229
+msgstr "Mercurialエクステンション"
+
+#: rhodecode/templates/admin/settings/settings.html:240
 msgid "largefiles extensions"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:233
+msgstr "largefilesエクステンション"
+
+#: rhodecode/templates/admin/settings/settings.html:244
 msgid "hgsubversion extensions"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:235
+msgstr "hgsubversionエクステンション"
+
+#: rhodecode/templates/admin/settings/settings.html:246
 msgid ""
 "Requires hgsubversion library installed. Allows clonning from svn remote "
 "locations"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:245
+msgstr "hgsubversion のインストールが必要です。リモートロケーションのsvnからクローン出来るようになります"
+
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr "リポジトリロケーション"
 
-#: rhodecode/templates/admin/settings/settings.html:250
+#: rhodecode/templates/admin/settings/settings.html:261
 msgid ""
 "This a crucial application setting. If you are really sure you need to "
 "change this, you must restart application in order to make this setting "
 "take effect. Click this label to unlock."
 msgstr "これはアプリケーションの重要な設定です。本当に変更が必要でしょうか。もし、変更した場合、変更を反映さ競るためにアプリケーションを再起動する必要があります。変更可能にするにはこのラベルをクリックして下さい"
 
-#: rhodecode/templates/admin/settings/settings.html:251
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr "変更可能にする"
 
-#: rhodecode/templates/admin/settings/settings.html:252
+#: rhodecode/templates/admin/settings/settings.html:263
 msgid ""
 "Location where repositories are stored. After changing this value a "
 "restart, and rescan is required"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr "テストメール"
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 msgid "Email to"
 msgstr "送信先"
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 msgid "Send"
 msgstr "送る"
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr "システム情報とパッケージ"
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 msgid "show"
 msgstr "表示"
 
@@ -2458,13 +2605,6 @@
 msgid "Password confirmation"
 msgstr "パスワード再入力"
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr "アクティブ"
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr "ユーザー編集"
@@ -2484,27 +2624,26 @@
 msgid "API key"
 msgstr "APIキー"
 
-#: rhodecode/templates/admin/users/user_edit.html:59
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr "LDAP DN"
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr "新しいパスワード"
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr "新しいパスワード 再入力"
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
-#, fuzzy
 msgid "Inherit default permissions"
-msgstr "デフォルトの権限"
-
-#: rhodecode/templates/admin/users/user_edit.html:152
+msgstr "デフォルトの権限を継承する"
+
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
 msgid ""
@@ -2512,49 +2651,48 @@
 "options does not have any action"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:158
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr "リポジトリを作成する"
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
-#, fuzzy
 msgid "Fork repositories"
-msgstr "リポジトリ"
-
-#: rhodecode/templates/admin/users/user_edit.html:186
+msgstr "リポジトリをフォークする"
+
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
-#, fuzzy
 msgid "Nothing here yet"
-msgstr "通知はまだありません"
-
-#: rhodecode/templates/admin/users/user_edit.html:193
+msgstr "まだありません"
+
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:194
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 msgid "Permission"
 msgstr "権限"
 
-#: rhodecode/templates/admin/users/user_edit.html:194
-#, fuzzy
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 msgid "Edit Permission"
-msgstr "リポジトリの権限"
-
-#: rhodecode/templates/admin/users/user_edit.html:243
+msgstr "権限の編集"
+
+#: rhodecode/templates/admin/users/user_edit.html:247
 msgid "Email addresses"
 msgstr "メールアドレス"
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, python-format
 msgid "Confirm to delete this email: %s"
 msgstr "このメールを削除してよろしいですか: %s"
 
-#: rhodecode/templates/admin/users/user_edit.html:270
+#: rhodecode/templates/admin/users/user_edit.html:274
 msgid "New email address"
 msgstr "新しいメールアドレス"
 
-#: rhodecode/templates/admin/users/user_edit.html:277
+#: rhodecode/templates/admin/users/user_edit.html:281
 msgid "Add"
 msgstr "追加"
 
@@ -2577,67 +2715,66 @@
 msgstr "リポジトリ"
 
 #: rhodecode/templates/admin/users/user_edit_my_account.html:41
-#, fuzzy
 msgid "My pull requests"
-msgstr "すべてのプルリクエスト"
+msgstr "プルリクエスト"
 
 #: rhodecode/templates/admin/users/user_edit_my_account.html:45
-#, fuzzy
 msgid "Add repo"
-msgstr "新規追加"
+msgstr "リポジトリの追加"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:2
 msgid "Opened by me"
-msgstr ""
+msgstr "自分が作成"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:10
-#, fuzzy, python-format
+#, python-format
 msgid "Pull request #%s opened on %s"
-msgstr "プルリクエスト #%s"
+msgstr "プルリクエスト #%s %s に作成"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:15
-#, fuzzy
 msgid "Confirm to delete this pull request"
-msgstr "このリポジトリを削除しますか?"
+msgstr "このプルリクエストを削除しますか?"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:26
 msgid "I participate in"
-msgstr ""
+msgstr "レビュアーとして参加"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:33
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:30
 #, python-format
 msgid "Pull request #%s opened by %s on %s"
-msgstr ""
+msgstr "プルリクエスト #%s %s によって %s に作成"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
 #: rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr "リビジョン"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr "非公開"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, python-format
 msgid "Confirm to delete this repository: %s"
 msgstr "このリポジトリを削除しますか? : %s"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr "まだリポジトリがありません"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr "今すぐ作成する"
 
@@ -2646,7 +2783,7 @@
 msgstr "ユーザー管理"
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:223
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr "ユーザー"
 
@@ -2659,7 +2796,6 @@
 msgstr "ユーザー名"
 
 #: rhodecode/templates/admin/users/users.html:80
-#, fuzzy
 msgid "firstname"
 msgstr "名前"
 
@@ -2677,7 +2813,7 @@
 msgstr "アクティブ"
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr "LDAP"
 
@@ -2726,6 +2862,21 @@
 msgid "Group members"
 msgstr "グループメンバー"
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+#, fuzzy
+msgid "No members yet"
+msgstr "メンバー"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+#, fuzzy
+msgid "Permissions defined for this group"
+msgstr "権限管理"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+#, fuzzy
+msgid "No permissions set yet"
+msgstr "権限のコピー"
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr "ユーザーグループ管理"
@@ -2746,7 +2897,7 @@
 #: rhodecode/templates/admin/users_groups/users_groups.html:45
 #, python-format
 msgid "Confirm to delete this users group: %s"
-msgstr ""
+msgstr "ユーザグループを削除しますか?: %s"
 
 #: rhodecode/templates/base/base.html:41
 msgid "Submit a bug"
@@ -2768,36 +2919,10 @@
 msgid "Inbox"
 msgstr "受信箱"
 
-#: rhodecode/templates/base/base.html:122
-#: rhodecode/templates/base/base.html:300
-#: rhodecode/templates/base/base.html:302
-#: rhodecode/templates/base/base.html:304
-#: rhodecode/templates/bookmarks/bookmarks.html:11
-#: rhodecode/templates/branches/branches.html:10
-#: rhodecode/templates/changelog/changelog.html:10
-#: rhodecode/templates/changeset/changeset.html:10
-#: rhodecode/templates/changeset/changeset_range.html:9
-#: rhodecode/templates/compare/compare_diff.html:9
-#: rhodecode/templates/files/file_diff.html:8
-#: rhodecode/templates/files/files.html:8
-#: rhodecode/templates/files/files_add.html:15
-#: rhodecode/templates/files/files_edit.html:15
-#: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
-#: rhodecode/templates/pullrequests/pullrequest.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
-#: rhodecode/templates/settings/repo_settings.html:9
-#: rhodecode/templates/shortlog/shortlog.html:10
-#: rhodecode/templates/summary/summary.html:8
-#: rhodecode/templates/tags/tags.html:11
-msgid "Home"
-msgstr "ホーム"
-
 #: rhodecode/templates/base/base.html:123
-#: rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311
-#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2817,7 +2942,7 @@
 msgstr ""
 
 #: rhodecode/templates/base/base.html:152
-#: rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr "読み込み中..."
 
@@ -2862,50 +2987,69 @@
 
 #: rhodecode/templates/base/base.html:204
 #: rhodecode/templates/base/base.html:206
-#: rhodecode/templates/base/base.html:227
-msgid "settings"
-msgstr "設定"
-
-#: rhodecode/templates/base/base.html:209
+#, fuzzy
+msgid "repository settings"
+msgstr "リポジトリ作成"
+
+#: rhodecode/templates/base/base.html:210
 #: rhodecode/templates/data_table/_dt_elements.html:80
 #: rhodecode/templates/forks/fork.html:13
 msgid "fork"
 msgstr "フォーク"
 
-#: rhodecode/templates/base/base.html:211
-#: rhodecode/templates/changelog/changelog.html:40
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr "新しいプルリクエストを作成"
 
-#: rhodecode/templates/base/base.html:213
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr "フォークを比較"
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr "検索"
 
-#: rhodecode/templates/base/base.html:222
+#: rhodecode/templates/base/base.html:223
+#, fuzzy
+msgid "lock"
+msgstr "変更可能にする"
+
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr "リポジトリグループ"
 
-#: rhodecode/templates/base/base.html:224
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr "ユーザーグループ"
 
-#: rhodecode/templates/base/base.html:225
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr "権限"
 
-#: rhodecode/templates/base/base.html:238
+#: rhodecode/templates/base/base.html:239
+#, fuzzy
+msgid "defaults"
+msgstr "default"
+
 #: rhodecode/templates/base/base.html:240
+msgid "settings"
+msgstr "設定"
+
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr "フォロワー"
 
-#: rhodecode/templates/base/base.html:246
-#: rhodecode/templates/base/base.html:248
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr "フォーク"
 
-#: rhodecode/templates/base/base.html:327
-#: rhodecode/templates/base/base.html:329
-#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
 #: rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr "検索"
@@ -2915,7 +3059,7 @@
 msgstr "別のコメントを追加"
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr "このリポジトリのフォローをやめる"
@@ -2929,14 +3073,27 @@
 msgid "Group"
 msgstr "グループ"
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr "検索結果は省略されています"
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr "マッチするファイルはありません"
 
+#: rhodecode/templates/base/root.html:51
+#, fuzzy
+msgid "Open new pull request for selected changesets"
+msgstr "新しいプルリクエストを作成"
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr ""
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, python-format
 msgid "%s Bookmarks"
@@ -2944,8 +3101,9 @@
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
 #: rhodecode/templates/tags/tags_data.html:8
 msgid "Author"
 msgstr "作成者"
@@ -2959,34 +3117,15 @@
 msgid "Compare branches"
 msgstr "ブランチの比較"
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
 msgid "Compare"
 msgstr "比較"
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr "名前"
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr "日付"
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr "作成者"
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr "リビジョン"
-
-#: rhodecode/templates/branches/branches_data.html:10
-msgid "compare"
-msgstr "比較"
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, python-format
 msgid "%s Changelog"
@@ -2999,57 +3138,65 @@
 msgstr[0] ""
 
 #: rhodecode/templates/changelog/changelog.html:37
+#, fuzzy
+msgid "Clear selection"
+msgstr "検索設定"
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr "%s とフォークを比較"
 
-#: rhodecode/templates/changelog/changelog.html:37
-#: rhodecode/templates/forks/forks_data.html:21
-msgid "Compare fork"
-msgstr "フォークを比較"
-
-#: rhodecode/templates/changelog/changelog.html:46
+#: rhodecode/templates/changelog/changelog.html:40
+#, fuzzy
+msgid "Compare fork with parent"
+msgstr "%s とフォークを比較"
+
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr "表示"
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr "もっと表示"
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 msgid "Changeset status"
 msgstr "リビジョンステータス"
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+msgstr "関連するプルリクエストを開く"
+
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr "親リビジョン"
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr "親リビジョンはありません"
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr "マージ"
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -3057,47 +3204,45 @@
 msgid "branch"
 msgstr "ブランチ"
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr "ブックマーク"
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr "タグ"
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr "まだ変更がありません"
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr "削除"
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr "変更"
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr "追加"
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
-msgstr ""
+msgstr "%s ファイルに影響"
 
 #: rhodecode/templates/changeset/changeset.html:6
 #, python-format
@@ -3108,38 +3253,50 @@
 msgid "Changeset"
 msgstr "チェンジセット"
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
 msgstr "差分を表示"
 
-#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset.html:50
+#, fuzzy
+msgid "patch diff"
+msgstr "差分を表示"
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
 msgstr "差分をダウンロード"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "%d comment"
 msgid_plural "%d comments"
 msgstr[0] "%d コメント"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
 msgid_plural "(%d inline)"
 msgstr[0] "(%d インライン)"
 
-#: rhodecode/templates/changeset/changeset.html:103
-#, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr "%s ファイルに影響。 %s 個の追加と %s 個の削除:"
-
-#: rhodecode/templates/changeset/changeset.html:119
-msgid "Changeset was too big and was cut off..."
-msgstr "チェンジセットが大きすぎるため、省略しました"
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
+#, fuzzy, python-format
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] ""
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, fuzzy, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] "%s ファイルに影響。 %s 個の追加と %s 個の削除:"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3192,7 +3349,7 @@
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:140
 msgid "Comment and close"
-msgstr ""
+msgstr "コメントしてクローズ"
 
 #: rhodecode/templates/changeset/changeset_range.html:5
 #, python-format
@@ -3204,15 +3361,18 @@
 msgid "Compare View"
 msgstr "比較ビュー"
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+#, fuzzy
+msgid "Show combined compare"
+msgstr "インラインコメントを表示"
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
 msgid "Files affected"
-msgstr ""
+msgstr "影響のあるファイル"
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
-msgstr "差分"
+msgid "show full diff for this file"
+msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:27
 msgid "show inline comments"
@@ -3223,8 +3383,17 @@
 msgstr "チェンジセットはありません"
 
 #: rhodecode/templates/compare/compare_diff.html:37
-msgid "Outgoing changesets"
-msgstr "送信可能なチェンジセット"
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, fuzzy, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] ""
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
+#, fuzzy
+msgid "No files"
+msgstr "ファイル"
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
 #: rhodecode/templates/data_table/_dt_elements.html:41
@@ -3233,42 +3402,125 @@
 msgstr "フォーク"
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
 msgstr "Mercurialリポジトリ"
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
 msgstr "Gitリポジトリ"
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr "公開リポジトリ"
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr "フォーク元: "
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr "まだチェンジセットがありません"
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr "%s の RSS フィードを購読"
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr "%s の ATOM フィードを購読"
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, python-format
 msgid "Confirm to delete this user: %s"
 msgstr "このユーザーを本当に削除してよろしいですか?: %s"
 
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+#, fuzzy
+msgid "New status$"
+msgstr "ステータスを変更する"
+
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
+#, fuzzy
+msgid "This is a notification from RhodeCode."
 msgstr "RhodeCodeからの通知があります"
 
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+#, fuzzy
+msgid "title"
+msgstr "タイトル"
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+msgid "description"
+msgstr "説明"
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+#, fuzzy
+msgid "View this pull request here"
+msgstr "このプルリクエストにレビュアーを追加"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, fuzzy, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+#, fuzzy
+msgid "New status"
+msgstr "ステータスを変更する"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+#, fuzzy
+msgid "A new user have registered in RhodeCode"
+msgstr "rhodecodeへの登録を受け付けました"
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
+msgstr ""
+
 #: rhodecode/templates/errors/error_document.html:46
 #, python-format
 msgid "You will be redirected to %s in %s seconds"
@@ -3284,13 +3536,13 @@
 msgstr "ファイル差分"
 
 #: rhodecode/templates/files/files.html:4
-#: rhodecode/templates/files/files.html:72
-#, fuzzy, python-format
+#: rhodecode/templates/files/files.html:74
+#, python-format
 msgid "%s files"
 msgstr "%s ファイル"
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr "ファイル"
 
@@ -3368,7 +3620,7 @@
 msgstr "ファイル一覧を検索"
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:65
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 msgid "add new file"
 msgstr "新しいファイルを追加"
 
@@ -3401,18 +3653,18 @@
 msgstr "ファイルを編集"
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr "アノテーションを表示"
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr "元のファイルを表示"
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr "元のファイルをダウンロード"
 
@@ -3424,41 +3676,47 @@
 msgid "Editing file"
 msgstr "ファイルを編集"
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr "変更履歴"
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 msgid "diff to revision"
 msgstr "このリビジョンの差分を見る"
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 msgid "show at revision"
 msgstr "このリビジョンを見る"
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+#, fuzzy
+msgid "show full history"
+msgstr "ファイル一覧を読み込み中..."
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, python-format
 msgid "%s author"
 msgid_plural "%s authors"
 msgstr[0] "%s 作成者"
 
-#: rhodecode/templates/files/files_source.html:36
+#: rhodecode/templates/files/files_source.html:6
+#, fuzzy
+msgid "Load file history"
+msgstr "ファイル一覧を読み込み中..."
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr "ソースを表示"
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr "バイナリファイル (%s)"
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr "表示するには大きすぎるファイルです"
 
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr ""
-
 #: rhodecode/templates/files/files_ypjax.html:5
 msgid "annotation"
 msgstr "アノテーション"
@@ -3530,7 +3788,7 @@
 msgid "forked"
 msgstr "フォークしました"
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr "まだフォークがありません"
 
@@ -3543,7 +3801,7 @@
 msgstr "RSS ジャーナルフィード"
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:27
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr "更新"
 
@@ -3565,19 +3823,19 @@
 msgid "ADD"
 msgstr "追加"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr "フォローしているユーザー"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr "ユーザー"
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr "まだどのユーザーもリポジトリもフォローしていません"
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr "まだエントリがありません"
 
@@ -3598,30 +3856,28 @@
 msgid "New pull request"
 msgstr "新しいプルリクエスト"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:28
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr "概要の更新"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:66
 msgid "Detailed compare view"
-msgstr ""
+msgstr "比較ビュー詳細"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:70
-#: rhodecode/templates/pullrequests/pullrequest_show.html:82
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr "プルリクエストレビュアー"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:79
-#: rhodecode/templates/pullrequests/pullrequest_show.html:94
-#, fuzzy
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 msgid "owner"
 msgstr "所有者"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:91
-#: rhodecode/templates/pullrequests/pullrequest_show.html:109
-#, fuzzy
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
-msgstr "新しいプルリクエスト"
+msgstr "このプルリクエストにレビュアーを追加"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:97
 msgid "Create new pull request"
@@ -3633,10 +3889,6 @@
 msgid "Title"
 msgstr "タイトル"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:115
-msgid "description"
-msgstr "説明"
-
 #: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr "プルリクエストを送る"
@@ -3644,42 +3896,45 @@
 #: rhodecode/templates/pullrequests/pullrequest_show.html:23
 #, python-format
 msgid "Closed %s"
+msgstr "%s にクローズ"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "with status %s"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:31
-#, fuzzy
 msgid "Status"
-msgstr "ステータスを変更する"
+msgstr "ステータス"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:36
 msgid "Pull request status"
 msgstr "プルリクエストステータス"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:44
-#, fuzzy
 msgid "Still not reviewed by"
 msgstr "未レビュー"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:47
-#, fuzzy, python-format
+#: rhodecode/templates/pullrequests/pullrequest_show.html:48
+#, python-format
 msgid "%d reviewer"
 msgid_plural "%d reviewers"
-msgstr[0] "レビュー中"
-
-#: rhodecode/templates/pullrequests/pullrequest_show.html:54
+msgstr[0] "%d レビュアー"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:50
+#, fuzzy
+msgid "pull request was reviewed by all reviewers"
+msgstr "プルリクエストレビュアー"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:58
 msgid "Created on"
 msgstr "作成日"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:61
+#: rhodecode/templates/pullrequests/pullrequest_show.html:65
 msgid "Compare view"
 msgstr "比較ビュー"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:65
-msgid "Incoming changesets"
-msgstr ""
-
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
-#, fuzzy
 msgid "all pull requests"
 msgstr "すべてのプルリクエスト"
 
@@ -3689,7 +3944,7 @@
 
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:27
 msgid "Closed"
-msgstr ""
+msgstr "クローズ"
 
 #: rhodecode/templates/search/search.html:6
 #, python-format
@@ -3725,7 +3980,6 @@
 msgstr "ファイル内容"
 
 #: rhodecode/templates/search/search.html:64
-#, fuzzy
 msgid "Commit messages"
 msgstr "コミットメッセージ"
 
@@ -3749,27 +4003,32 @@
 msgid "%s Shortlog"
 msgstr "%s 短いログ"
 
-#: rhodecode/templates/shortlog/shortlog.html:14
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr "ログ"
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr "リビジョン"
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr "経過時間"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:18
-msgid "No commit message"
-msgstr "コミットメッセージが有りません"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:62
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr "作成者"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
 msgstr "RhodeCode経由で直接ファイルを追加またはアップロード"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:71
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
 msgstr "新しいリポジトリをプッシュ"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:79
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 msgid "Existing repository?"
 msgstr "存在するリポジトリをプッシュ"
 
@@ -3797,128 +4056,138 @@
 msgid "ATOM"
 msgstr "ATOM"
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, fuzzy, python-format
+msgid "Repository locked by %s"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:72
+#, fuzzy
+msgid "Repository unlocked"
+msgstr "リポジトリはロックされていません"
+
+#: rhodecode/templates/summary/summary.html:91
 #, python-format
 msgid "Non changable ID %s"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:87
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr "公開"
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr "コンタクト"
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr "クローンURL"
 
-#: rhodecode/templates/summary/summary.html:133
+#: rhodecode/templates/summary/summary.html:142
 msgid "Show by Name"
 msgstr "名前で表示"
 
-#: rhodecode/templates/summary/summary.html:134
+#: rhodecode/templates/summary/summary.html:143
 msgid "Show by ID"
 msgstr "IDで表示"
 
-#: rhodecode/templates/summary/summary.html:142
+#: rhodecode/templates/summary/summary.html:151
 msgid "Trending files"
 msgstr "トレンドファイル"
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr "有効にする"
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr "ダウンロード"
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr "まだダウンロードがありません"
 
-#: rhodecode/templates/summary/summary.html:164
+#: rhodecode/templates/summary/summary.html:173
 msgid "Downloads are disabled for this repository"
 msgstr "このリポジトリのダウンロードは無効化されています"
 
-#: rhodecode/templates/summary/summary.html:170
+#: rhodecode/templates/summary/summary.html:179
 msgid "Download as zip"
 msgstr "ZIPとしてダウンロード"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "Check this to download archive with subrepos"
 msgstr "チェックするとダウンロードアーカイブにサブリポジトリが含まれます"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr "サブリポジトリを含む"
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:197
+msgstr "コミットアクティビティ 日/作成者"
+
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:218
+msgstr "収集した統計情報: "
+
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr "ログ"
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 msgid "Quick start"
 msgstr "クイックスタート"
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:236
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:293
+msgstr "パーマリンク"
+
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
 msgstr "%s を %sとしてダウンロード"
 
-#: rhodecode/templates/summary/summary.html:650
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr "コミット"
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr "追加されたファイル"
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr "変更されたファイル"
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr "削除されたファイル"
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr "コミット"
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr "追加されたファイル"
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr "変更されたファイル"
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr "削除されたファイル"
 
@@ -3927,3 +4196,8 @@
 msgid "%s Tags"
 msgstr "%s タグ"
 
+#: rhodecode/templates/tags/tags.html:29
+#, fuzzy
+msgid "Compare tags"
+msgstr "比較"
+
Binary file rhodecode/i18n/pl/LC_MESSAGES/rhodecode.mo has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/i18n/pl/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,4280 @@
+# English translations for rhodecode.
+# Copyright (C) 2010 ORGANIZATION
+# This file is distributed under the same license as the rhodecode project.
+# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
+# Nemcio <bogdan114@g.pl>, 2012.
+# Nemo <areczek01@gmail.com>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: rhodecode 0.1\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
+"PO-Revision-Date: 2012-11-25 03:42+0200\n"
+"Last-Translator: Nemo <areczek01@gmail.com>\n"
+"Language-Team: Test\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && "
+"(n%100<10 || n%100>=20) ? 1 : 2)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 0.9.6\n"
+
+#: rhodecode/controllers/changelog.py:95
+msgid "All Branches"
+msgstr "Wszystkie gałęzie"
+
+#: rhodecode/controllers/changeset.py:84
+msgid "show white space"
+msgstr "pokazuj spacje"
+
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
+msgid "ignore white space"
+msgstr "ignoruj pokazywanie spacji"
+
+#: rhodecode/controllers/changeset.py:164
+#, python-format
+msgid "%s line context"
+msgstr "%s linia w kontekście"
+
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
+#, python-format
+msgid "Status change -> %s"
+msgstr "Zmiana statusu -> %s"
+
+#: rhodecode/controllers/changeset.py:346
+msgid ""
+"Changing status on a changeset associated witha closed pull request is "
+"not allowed"
+msgstr ""
+"Zmiana statusu na grupy zmian powiązania łączy zamkniętego wniosku jest "
+"niedozwolona"
+
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
+msgid "There are no changesets yet"
+msgstr "Brak zestawienia zmian"
+
+#: rhodecode/controllers/error.py:69
+msgid "Home page"
+msgstr "Strona główna"
+
+#: rhodecode/controllers/error.py:98
+msgid "The request could not be understood by the server due to malformed syntax."
+msgstr ""
+"Wniosek nie może być rozumiany przez serwer z powodu zniekształconej "
+"składni."
+
+#: rhodecode/controllers/error.py:101
+msgid "Unauthorized access to resource"
+msgstr "Nieautoryzowany dostęp do zasobów"
+
+#: rhodecode/controllers/error.py:103
+msgid "You don't have permission to view this page"
+msgstr "Nie masz uprawnień do przeglądania tej strony"
+
+#: rhodecode/controllers/error.py:105
+msgid "The resource could not be found"
+msgstr "Zasób nie został znaleziony"
+
+#: rhodecode/controllers/error.py:107
+msgid ""
+"The server encountered an unexpected condition which prevented it from "
+"fulfilling the request."
+msgstr ""
+"Serwer napotkał niespodziewany warunek, który uniemożliwia jej spełnienie"
+" żądania."
+
+#: rhodecode/controllers/feed.py:52
+#, python-format
+msgid "Changes on %s repository"
+msgstr "Zmiany w %s repozytorium"
+
+#: rhodecode/controllers/feed.py:53
+#, python-format
+msgid "%s %s feed"
+msgstr "%s %s zasilać"
+
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
+msgid "Changeset was too big and was cut off..."
+msgstr "Lista zmian była zbyt duża i została ucięta..."
+
+#: rhodecode/controllers/feed.py:92
+msgid "commited on"
+msgstr "komunikaty w"
+
+#: rhodecode/controllers/files.py:86
+msgid "click here to add new file"
+msgstr "Kliknij tutaj, by dodać nowy plik"
+
+#: rhodecode/controllers/files.py:87
+#, python-format
+msgid "There are no files yet %s"
+msgstr "Brak plików %s"
+
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
+#, python-format
+msgid "This repository is has been locked by %s on %s"
+msgstr "Repozytorium zostało zablokowane przez %s na %s"
+
+#: rhodecode/controllers/files.py:292
+#, python-format
+msgid "Edited %s via RhodeCode"
+msgstr "Edytowanie %s w RhodeCode"
+
+#: rhodecode/controllers/files.py:297
+msgid "No changes"
+msgstr "Bez zmian"
+
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
+#, python-format
+msgid "Successfully committed to %s"
+msgstr "Committ wykonany do %s"
+
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
+msgid "Error occurred during commit"
+msgstr "Wystąpił błąd w trakcie zatwierdzania"
+
+#: rhodecode/controllers/files.py:344
+#, python-format
+msgid "Added %s via RhodeCode"
+msgstr "Dodano %s poprzez RhodeCode"
+
+#: rhodecode/controllers/files.py:358
+msgid "No content"
+msgstr "Brak treści"
+
+#: rhodecode/controllers/files.py:362
+msgid "No filename"
+msgstr "Brak nazwy pliku"
+
+#: rhodecode/controllers/files.py:404
+msgid "downloads disabled"
+msgstr "Pobieranie wyłączone"
+
+#: rhodecode/controllers/files.py:415
+#, python-format
+msgid "Unknown revision %s"
+msgstr "Nieznana wersja %s"
+
+#: rhodecode/controllers/files.py:417
+msgid "Empty repository"
+msgstr "Puste repozytorium"
+
+#: rhodecode/controllers/files.py:419
+msgid "Unknown archive type"
+msgstr "Nieznany typ archiwum"
+
+#: rhodecode/controllers/files.py:564
+#: rhodecode/templates/changeset/changeset_range.html:13
+#: rhodecode/templates/changeset/changeset_range.html:31
+msgid "Changesets"
+msgstr "Różnice"
+
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
+msgid "Branches"
+msgstr "Gałęzie"
+
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
+msgid "Tags"
+msgstr "Etykiety"
+
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
+#, python-format
+msgid ""
+"%s repository is not mapped to db perhaps it was created or renamed from "
+"the filesystem please run the application again in order to rescan "
+"repositories"
+msgstr ""
+"%s repozytorium nie jest mapowane do db może zostało utworzone lub "
+"zmienione z systemie plików proszę uruchomić aplikację ponownie, aby "
+"ponownie przeskanować repozytoria"
+
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
+#, python-format
+msgid ""
+"%s repository is not mapped to db perhaps it was created or renamed from "
+"the file system please run the application again in order to rescan "
+"repositories"
+msgstr ""
+"%s repozytorium nie jest mapowane do db może zostało utworzone lub "
+"zmienione z systemu plików proszę uruchomić aplikację ponownie, aby "
+"ponownie przeskanować repozytoria"
+
+#: rhodecode/controllers/forks.py:168
+#, python-format
+msgid "forked %s repository as %s"
+msgstr "gałęzi %s w repozytorium %s"
+
+#: rhodecode/controllers/forks.py:182
+#, python-format
+msgid "An error occurred during repository forking %s"
+msgstr "Wystąpił błąd podczas rozgałęzienia %s repozytorium"
+
+#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
+msgid "public journal"
+msgstr "Dziennik publiczny"
+
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
+msgid "journal"
+msgstr "dziennik"
+
+#: rhodecode/controllers/login.py:143
+msgid "You have successfully registered into rhodecode"
+msgstr "Udało Ci się zarejestrować na stronie"
+
+#: rhodecode/controllers/login.py:164
+msgid "Your password reset link was sent"
+msgstr "Twój link zresetowania hasła został wysłany"
+
+#: rhodecode/controllers/login.py:184
+msgid ""
+"Your password reset was successful, new password has been sent to your "
+"email"
+msgstr "Twoje hasło zostało zresetowane, nowe hasło zostanie wysłane na e-mail"
+
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
+msgid "Bookmarks"
+msgstr "Zakładki"
+
+#: rhodecode/controllers/pullrequests.py:186
+msgid "Pull request requires a title with min. 3 chars"
+msgstr "Wniosek połączenia gałęzi wymaga tytułu z min. 3 znakami"
+
+#: rhodecode/controllers/pullrequests.py:188
+msgid "error during creation of pull request"
+msgstr "błąd podczas tworzenia prośby o łączenie gałęzi"
+
+#: rhodecode/controllers/pullrequests.py:220
+msgid "Successfully opened new pull request"
+msgstr "Prośba o wykonanie połączenia gałęzi została wykonana prawidłowo"
+
+#: rhodecode/controllers/pullrequests.py:223
+msgid "Error occurred during sending pull request"
+msgstr "Wystąpił błąd podczas prośby o połączenie gałęzi"
+
+#: rhodecode/controllers/pullrequests.py:256
+msgid "Successfully deleted pull request"
+msgstr "Prośba o skasowanie połączenia gałęzi została wykonana prawidłowo"
+
+#: rhodecode/controllers/search.py:134
+msgid "Invalid search query. Try quoting it."
+msgstr "Nieprawidłowe zapytania. Spróbuj zacytować go."
+
+#: rhodecode/controllers/search.py:139
+msgid "There is no index to search in. Please run whoosh indexer"
+msgstr "Nie ma szukanego indeksu. Proszę uruchomić indeksowanie whoosh"
+
+#: rhodecode/controllers/search.py:143
+msgid "An error occurred during this search operation"
+msgstr "Wystąpił błąd podczas wyszukiwania tej operacji"
+
+#: rhodecode/controllers/settings.py:108
+#: rhodecode/controllers/admin/repos.py:268
+#, python-format
+msgid "Repository %s updated successfully"
+msgstr "Repozytorium %s zostało pomyślnie zaktualizowane"
+
+#: rhodecode/controllers/settings.py:126
+#: rhodecode/controllers/admin/repos.py:286
+#, python-format
+msgid "error occurred during update of repository %s"
+msgstr "wystąpił błąd podczas aktualizacji repozytorium %s"
+
+#: rhodecode/controllers/settings.py:144
+#: rhodecode/controllers/admin/repos.py:304
+#, python-format
+msgid ""
+"%s repository is not mapped to db perhaps it was moved or renamed  from "
+"the filesystem please run the application again in order to rescan "
+"repositories"
+msgstr ""
+"%s repozytorium nie jest mapowane do db może zostało przeniesione lub "
+"zmienione w systemie plików proszę uruchomić aplikację ponownie, aby "
+"ponownie przeskanować repozytoria"
+
+#: rhodecode/controllers/settings.py:156
+#: rhodecode/controllers/admin/repos.py:316
+#, python-format
+msgid "deleted repository %s"
+msgstr "usunięte repozytorium %s"
+
+#: rhodecode/controllers/settings.py:160
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
+#, python-format
+msgid "An error occurred during deletion of %s"
+msgstr "Wystąpił błąd podczas usuwania %s"
+
+#: rhodecode/controllers/settings.py:179
+msgid "unlocked"
+msgstr "Odblokowany"
+
+#: rhodecode/controllers/settings.py:182
+msgid "locked"
+msgstr "zablokowany"
+
+#: rhodecode/controllers/settings.py:184
+#, python-format
+msgid "Repository has been %s"
+msgstr "Repozytoriów jest %s"
+
+#: rhodecode/controllers/settings.py:188
+#: rhodecode/controllers/admin/repos.py:424
+msgid "An error occurred during unlocking"
+msgstr "Wystąpił błąd podczas odblokowywania"
+
+#: rhodecode/controllers/summary.py:140
+msgid "No data loaded yet"
+msgstr "Żadne dane nie zostały załadowane"
+
+#: rhodecode/controllers/summary.py:144
+#: rhodecode/templates/summary/summary.html:157
+msgid "Statistics are disabled for this repository"
+msgstr "Statystyki są wyłączone dla tego repozytorium"
+
+#: rhodecode/controllers/admin/defaults.py:96
+#, fuzzy
+msgid "Default settings updated successfully"
+msgstr "Ustawienia LDAP zostały zaktualizowane"
+
+#: rhodecode/controllers/admin/defaults.py:110
+#, fuzzy
+msgid "error occurred during update of defaults"
+msgstr "wystąpił błąd podczas aktualizacji użytkownika %s"
+
+#: rhodecode/controllers/admin/ldap_settings.py:50
+msgid "BASE"
+msgstr "PODSTAWA"
+
+#: rhodecode/controllers/admin/ldap_settings.py:51
+msgid "ONELEVEL"
+msgstr "JEDEN POZIOM"
+
+#: rhodecode/controllers/admin/ldap_settings.py:52
+msgid "SUBTREE"
+msgstr "DRZEWO PODRZĘDNE"
+
+#: rhodecode/controllers/admin/ldap_settings.py:56
+msgid "NEVER"
+msgstr "NIGDY"
+
+#: rhodecode/controllers/admin/ldap_settings.py:57
+msgid "ALLOW"
+msgstr "POZWÓL"
+
+#: rhodecode/controllers/admin/ldap_settings.py:58
+msgid "TRY"
+msgstr "WYPRÓBUJ"
+
+#: rhodecode/controllers/admin/ldap_settings.py:59
+msgid "DEMAND"
+msgstr "ZAPYTANIE"
+
+#: rhodecode/controllers/admin/ldap_settings.py:60
+msgid "HARD"
+msgstr "TWARDY"
+
+#: rhodecode/controllers/admin/ldap_settings.py:64
+msgid "No encryption"
+msgstr "Bez szyfrowania"
+
+#: rhodecode/controllers/admin/ldap_settings.py:65
+msgid "LDAPS connection"
+msgstr "Połączenie LDAP"
+
+#: rhodecode/controllers/admin/ldap_settings.py:66
+msgid "START_TLS on LDAP connection"
+msgstr "START_TLS dla połączenia LDAP"
+
+#: rhodecode/controllers/admin/ldap_settings.py:126
+msgid "Ldap settings updated successfully"
+msgstr "Ustawienia LDAP zostały zaktualizowane"
+
+#: rhodecode/controllers/admin/ldap_settings.py:130
+msgid "Unable to activate ldap. The \"python-ldap\" library is missing."
+msgstr "Nie można uaktywnić ldap.\"Python-ldap\" brakuje library."
+
+#: rhodecode/controllers/admin/ldap_settings.py:147
+msgid "error occurred during update of ldap settings"
+msgstr "Wystąpił błąd podczas aktualizacji ustawień ldap"
+
+#: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
+msgid "None"
+msgstr "Brak"
+
+#: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
+msgid "Read"
+msgstr "Odczyt"
+
+#: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
+msgid "Write"
+msgstr "Zapis"
+
+#: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
+#: rhodecode/templates/admin/ldap/ldap.html:9
+#: rhodecode/templates/admin/permissions/permissions.html:9
+#: rhodecode/templates/admin/repos/repo_add.html:9
+#: rhodecode/templates/admin/repos/repo_edit.html:9
+#: rhodecode/templates/admin/repos/repos.html:9
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:8
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:8
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:10
+#: rhodecode/templates/admin/settings/hooks.html:9
+#: rhodecode/templates/admin/settings/settings.html:9
+#: rhodecode/templates/admin/users/user_add.html:8
+#: rhodecode/templates/admin/users/user_edit.html:9
+#: rhodecode/templates/admin/users/user_edit.html:126
+#: rhodecode/templates/admin/users/users.html:9
+#: rhodecode/templates/admin/users_groups/users_group_add.html:8
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:9
+#: rhodecode/templates/admin/users_groups/users_groups.html:9
+#: rhodecode/templates/base/base.html:197
+#: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
+msgid "Admin"
+msgstr "Administracja"
+
+#: rhodecode/controllers/admin/permissions.py:69
+msgid "disabled"
+msgstr "wyłączona"
+
+#: rhodecode/controllers/admin/permissions.py:71
+msgid "allowed with manual account activation"
+msgstr "dozwolona z ręczną aktywacją konta"
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr "dozwolona z automatyczną aktywacją konta"
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
+msgid "Disabled"
+msgstr "Wyłączone"
+
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
+msgid "Enabled"
+msgstr "Włączone"
+
+#: rhodecode/controllers/admin/permissions.py:122
+msgid "Default permissions updated successfully"
+msgstr "Domyślne uprawnienia zaktualizowane pomyślnie"
+
+#: rhodecode/controllers/admin/permissions.py:136
+msgid "error occurred during update of permissions"
+msgstr "wystąpił błąd podczas aktualizacji uprawnień"
+
+#: rhodecode/controllers/admin/repos.py:125
+msgid "--REMOVE FORK--"
+msgstr "--USUŃ ROZGAŁĘZIENIE--"
+
+#: rhodecode/controllers/admin/repos.py:194
+#, python-format
+msgid "created repository %s from %s"
+msgstr "utworzone repozytorium %s z %s"
+
+#: rhodecode/controllers/admin/repos.py:198
+#, python-format
+msgid "created repository %s"
+msgstr "utworzone repozytorium %s"
+
+#: rhodecode/controllers/admin/repos.py:229
+#, python-format
+msgid "error occurred during creation of repository %s"
+msgstr "wystąpił błąd podczas tworzenia repozytorium %s"
+
+#: rhodecode/controllers/admin/repos.py:321
+#, python-format
+msgid "Cannot delete %s it still contains attached forks"
+msgstr "Nie można usunąć %s nadal zawiera załączniki rozgałęzienia"
+
+#: rhodecode/controllers/admin/repos.py:350
+msgid "An error occurred during deletion of repository user"
+msgstr "Wystąpił błąd podczas usunięcia użytkownika z repozytorium"
+
+#: rhodecode/controllers/admin/repos.py:369
+msgid "An error occurred during deletion of repository users groups"
+msgstr "Wystąpił błąd podczas usunięcia grupy użytkowników z repozytorium"
+
+#: rhodecode/controllers/admin/repos.py:387
+msgid "An error occurred during deletion of repository stats"
+msgstr "Wystąpił błąd podczas usuwania z repozytorium statystyk"
+
+#: rhodecode/controllers/admin/repos.py:404
+msgid "An error occurred during cache invalidation"
+msgstr "Wystąpił błąd podczas unieważniania cache"
+
+#: rhodecode/controllers/admin/repos.py:444
+msgid "Updated repository visibility in public journal"
+msgstr "Zaktualizowano widoczność stron w publicznym dzienniku"
+
+#: rhodecode/controllers/admin/repos.py:448
+msgid "An error occurred during setting this repository in public journal"
+msgstr "Wystąpił błąd podczas ustawiania tego repozytorium w dzienniku publicznym"
+
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
+msgid "Token mismatch"
+msgstr "Niezgodność tokenu"
+
+#: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr "Pobieranie z lokalizacji zdalnej"
+
+#: rhodecode/controllers/admin/repos.py:468
+msgid "An error occurred during pull from remote location"
+msgstr "Wystąpił błąd podczas pobierania z lokalizacji zdalnej"
+
+#: rhodecode/controllers/admin/repos.py:484
+msgid "Nothing"
+msgstr "Brak"
+
+#: rhodecode/controllers/admin/repos.py:486
+#, python-format
+msgid "Marked repo %s as fork of %s"
+msgstr "Oznaczono %s repo jako rozwidlenie %s"
+
+#: rhodecode/controllers/admin/repos.py:490
+msgid "An error occurred during this operation"
+msgstr "Wystąpił błąd podczas tej operacji"
+
+#: rhodecode/controllers/admin/repos_groups.py:120
+#, python-format
+msgid "created repos group %s"
+msgstr "utworzono grupę repo %s"
+
+#: rhodecode/controllers/admin/repos_groups.py:133
+#, python-format
+msgid "error occurred during creation of repos group %s"
+msgstr "Wystąpił błąd podczas tworzenia grupy repo %s"
+
+#: rhodecode/controllers/admin/repos_groups.py:167
+#, python-format
+msgid "updated repos group %s"
+msgstr "zaktualizowano grupę repo %s"
+
+#: rhodecode/controllers/admin/repos_groups.py:180
+#, python-format
+msgid "error occurred during update of repos group %s"
+msgstr "wystąpił błąd podczas aktualizacji grupy repo %s"
+
+#: rhodecode/controllers/admin/repos_groups.py:198
+#, python-format
+msgid "This group contains %s repositores and cannot be deleted"
+msgstr "Ta grupa zawiera %s repozytorium i nie może być usunięta"
+
+#: rhodecode/controllers/admin/repos_groups.py:206
+#, python-format
+msgid "removed repos group %s"
+msgstr "usunięto grupę repo %s"
+
+#: rhodecode/controllers/admin/repos_groups.py:212
+msgid "Cannot delete this group it still contains subgroups"
+msgstr "Nie można usunąć tej grupy ponieważ nadal zawiera podgrupy"
+
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
+#, python-format
+msgid "error occurred during deletion of repos group %s"
+msgstr "wystąpił błąd podczas kasowania grupy repo %s"
+
+#: rhodecode/controllers/admin/repos_groups.py:243
+msgid "An error occurred during deletion of group user"
+msgstr "Wystąpił błąd podczas usunięcia grupy użytkowników"
+
+#: rhodecode/controllers/admin/repos_groups.py:264
+msgid "An error occurred during deletion of group users groups"
+msgstr "Wystąpił błąd podczas usuwania grup i grup użytkowników"
+
+#: rhodecode/controllers/admin/settings.py:123
+#, python-format
+msgid "Repositories successfully rescanned added: %s,removed: %s"
+msgstr ""
+"Repozytoria z powodzeniem zostały ponownie zeskanowane dodano: %s, "
+"usunięto: %s"
+
+#: rhodecode/controllers/admin/settings.py:131
+msgid "Whoosh reindex task scheduled"
+msgstr "Zadanie ponownej indeksacji whoosh zostało zaplanowane"
+
+#: rhodecode/controllers/admin/settings.py:162
+msgid "Updated application settings"
+msgstr "Aktualizacja ustawień aplikacji"
+
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
+msgid "error occurred during updating application settings"
+msgstr "wystąpił błąd podczas aktualizacji ustawień aplikacji"
+
+#: rhodecode/controllers/admin/settings.py:207
+msgid "Updated visualisation settings"
+msgstr "Aktualizacja ustawień wizualizacji"
+
+#: rhodecode/controllers/admin/settings.py:212
+msgid "error occurred during updating visualisation settings"
+msgstr "Wystąpił błąd podczas aktualizacji ustawień wizualizacji"
+
+#: rhodecode/controllers/admin/settings.py:295
+msgid "Updated VCS settings"
+msgstr "Aktualizacja ustawień VCS"
+
+#: rhodecode/controllers/admin/settings.py:309
+msgid "Added new hook"
+msgstr "Dodano nowy hook"
+
+#: rhodecode/controllers/admin/settings.py:321
+msgid "Updated hooks"
+msgstr "Aktualizacja hooku"
+
+#: rhodecode/controllers/admin/settings.py:325
+msgid "error occurred during hook creation"
+msgstr "Wystąpił błąd podczas tworzenia hooku"
+
+#: rhodecode/controllers/admin/settings.py:344
+msgid "Email task created"
+msgstr "E-mail został wysłany"
+
+#: rhodecode/controllers/admin/settings.py:399
+msgid "You can't edit this user since it's crucial for entire application"
+msgstr ""
+"Nie możesz edytować tego użytkownika ponieważ jest kluczowy dla całej "
+"aplikacji"
+
+#: rhodecode/controllers/admin/settings.py:430
+msgid "Your account was updated successfully"
+msgstr "Twoje konto zostało pomyślnie zaktualizowane"
+
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
+#, python-format
+msgid "error occurred during update of user %s"
+msgstr "wystąpił błąd podczas aktualizacji użytkownika %s"
+
+#: rhodecode/controllers/admin/users.py:130
+#, python-format
+msgid "created user %s"
+msgstr "utworzono użytkownika %s"
+
+#: rhodecode/controllers/admin/users.py:142
+#, python-format
+msgid "error occurred during creation of user %s"
+msgstr "wystąpił błąd podczas tworzenia użytkownika %s"
+
+#: rhodecode/controllers/admin/users.py:176
+msgid "User updated successfully"
+msgstr "Użytkownik został zaktualizowany"
+
+#: rhodecode/controllers/admin/users.py:212
+msgid "successfully deleted user"
+msgstr "użytkownik został usunięty"
+
+#: rhodecode/controllers/admin/users.py:217
+msgid "An error occurred during deletion of user"
+msgstr "Wystąpił błąd podczas usuwania użytkownika"
+
+#: rhodecode/controllers/admin/users.py:231
+msgid "You can't edit this user"
+msgstr "Nie możesz edytować tego użytkownika"
+
+#: rhodecode/controllers/admin/users.py:272
+msgid "Granted 'repository create' permission to user"
+msgstr "Przyznano użytkownikowi uprawnienie do 'tworzenia repozytorium'"
+
+#: rhodecode/controllers/admin/users.py:277
+msgid "Revoked 'repository create' permission to user"
+msgstr "Cofnięto użytkownikowi uprawnienie do 'tworzenia repozytorium'"
+
+#: rhodecode/controllers/admin/users.py:283
+msgid "Granted 'repository fork' permission to user"
+msgstr "Przyznano użytkownikowi uprawnienie do 'tworzenia rozgałęzień'"
+
+#: rhodecode/controllers/admin/users.py:288
+msgid "Revoked 'repository fork' permission to user"
+msgstr "Cofnięto użytkownikowi uprawnienie do 'tworzenia rozgałęzień'"
+
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
+msgid "An error occurred during permissions saving"
+msgstr "Wystąpił błąd podczas zapisywania uprawnień"
+
+#: rhodecode/controllers/admin/users.py:309
+#, python-format
+msgid "Added email %s to user"
+msgstr "Dodano e-mail %s do użytkownika"
+
+#: rhodecode/controllers/admin/users.py:315
+msgid "An error occurred during email saving"
+msgstr "Wystąpił błąd podczas zapisywania e-maila"
+
+#: rhodecode/controllers/admin/users.py:325
+msgid "Removed email from user"
+msgstr "Usunięto e-mail użytkownikowi"
+
+#: rhodecode/controllers/admin/users_groups.py:86
+#, python-format
+msgid "created users group %s"
+msgstr "utworzono grupę użytkowników %s"
+
+#: rhodecode/controllers/admin/users_groups.py:97
+#, python-format
+msgid "error occurred during creation of users group %s"
+msgstr "wystąpił błąd podczas tworzenia grupy użytkowników %s"
+
+#: rhodecode/controllers/admin/users_groups.py:164
+#, python-format
+msgid "updated users group %s"
+msgstr "zaktualizowano grupę użytkowników %s"
+
+#: rhodecode/controllers/admin/users_groups.py:186
+#, python-format
+msgid "error occurred during update of users group %s"
+msgstr "wystąpił błąd podczas aktualizacji grupy użytkowników %s"
+
+#: rhodecode/controllers/admin/users_groups.py:203
+msgid "successfully deleted users group"
+msgstr "grupa użytkowników została usunięta z powodzeniem"
+
+#: rhodecode/controllers/admin/users_groups.py:208
+msgid "An error occurred during deletion of users group"
+msgstr "Wystąpił błąd podczas usuwania grupy użytkowników"
+
+#: rhodecode/controllers/admin/users_groups.py:257
+msgid "Granted 'repository create' permission to users group"
+msgstr "Przyznano grupie użytkowników uprawnienia do 'tworzenia repozytorium'"
+
+#: rhodecode/controllers/admin/users_groups.py:262
+msgid "Revoked 'repository create' permission to users group"
+msgstr "Cofnięto grupie użytkowników uprawnienia do 'tworzenia repozytorium'"
+
+#: rhodecode/controllers/admin/users_groups.py:268
+msgid "Granted 'repository fork' permission to users group"
+msgstr "Przyznano grupie użytkowników uprawnienia do 'tworzenia rozgałęzień'"
+
+#: rhodecode/controllers/admin/users_groups.py:273
+msgid "Revoked 'repository fork' permission to users group"
+msgstr "Cofnięto grupie użytkowników uprawnienia do 'tworzenia rozgałęzień'"
+
+#: rhodecode/lib/auth.py:499
+msgid "You need to be a registered user to perform this action"
+msgstr "Musisz być zarejestrowanym użytkownikiem, żeby wykonać to działanie"
+
+#: rhodecode/lib/auth.py:540
+msgid "You need to be a signed in to view this page"
+msgstr "Musisz być zalogowany, żeby oglądać stronę"
+
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr "plik binarny"
+
+#: rhodecode/lib/diffs.py:90
+msgid "Changeset was too big and was cut off, use diff menu to display this diff"
+msgstr ""
+"Lista zmian była zbyt duża i została obcięta, użyj menu porównań żeby "
+"wyświetlić różnice"
+
+#: rhodecode/lib/diffs.py:100
+msgid "No changes detected"
+msgstr "Nie wykryto zmian"
+
+#: rhodecode/lib/helpers.py:373
+#, python-format
+msgid "%a, %d %b %Y %H:%M:%S"
+msgstr "%d.%m.%Y, %H:%M:%S"
+
+#: rhodecode/lib/helpers.py:485
+msgid "True"
+msgstr "Prawda"
+
+#: rhodecode/lib/helpers.py:489
+msgid "False"
+msgstr "Fałsz"
+
+#: rhodecode/lib/helpers.py:529
+#, python-format
+msgid "Deleted branch: %s"
+msgstr "Usunięta gałąź: %s"
+
+#: rhodecode/lib/helpers.py:532
+#, python-format
+msgid "Created tag: %s"
+msgstr "Utworzony tag: %s"
+
+#: rhodecode/lib/helpers.py:545
+msgid "Changeset not found"
+msgstr "Nie znaleziono changeset"
+
+#: rhodecode/lib/helpers.py:588
+#, python-format
+msgid "Show all combined changesets %s->%s"
+msgstr "Pokaż wszystkie zestawienia zmian changesets %s->%s"
+
+#: rhodecode/lib/helpers.py:594
+msgid "compare view"
+msgstr "Wyświetl porównanie"
+
+#: rhodecode/lib/helpers.py:614
+msgid "and"
+msgstr "i"
+
+#: rhodecode/lib/helpers.py:615
+#, python-format
+msgid "%s more"
+msgstr "%s więcej"
+
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
+msgid "revisions"
+msgstr "rewizja"
+
+#: rhodecode/lib/helpers.py:640
+#, python-format
+msgid "fork name %s"
+msgstr "nazwa rozgałęzienia %s"
+
+#: rhodecode/lib/helpers.py:653
+#: rhodecode/templates/pullrequests/pullrequest_show.html:4
+#: rhodecode/templates/pullrequests/pullrequest_show.html:12
+#, python-format
+msgid "Pull request #%s"
+msgstr "Połączonych gałęzi #%s"
+
+#: rhodecode/lib/helpers.py:659
+msgid "[deleted] repository"
+msgstr "[usunięte] repozytorium"
+
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
+msgid "[created] repository"
+msgstr "[utworzone] repozytorium"
+
+#: rhodecode/lib/helpers.py:663
+msgid "[created] repository as fork"
+msgstr "[utworzone] repozytorium jako rozgałęzienie"
+
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
+msgid "[forked] repository"
+msgstr "[rozgałęzione] repozytorium"
+
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
+msgid "[updated] repository"
+msgstr "[zaktualizowane] repozytorium"
+
+#: rhodecode/lib/helpers.py:669
+msgid "[delete] repository"
+msgstr "[skasowane] repozytorium"
+
+#: rhodecode/lib/helpers.py:677
+msgid "[created] user"
+msgstr "[utworzony] użytkownik"
+
+#: rhodecode/lib/helpers.py:679
+msgid "[updated] user"
+msgstr "[zaktualizowany] użytkownik"
+
+#: rhodecode/lib/helpers.py:681
+msgid "[created] users group"
+msgstr "[utworzona] grupa użytkowników"
+
+#: rhodecode/lib/helpers.py:683
+msgid "[updated] users group"
+msgstr "[zaktualizowana] grupa użytkowników"
+
+#: rhodecode/lib/helpers.py:685
+msgid "[commented] on revision in repository"
+msgstr "[komentarz] do zmiany w repozytorium"
+
+#: rhodecode/lib/helpers.py:687
+msgid "[commented] on pull request for"
+msgstr "[komentarz] wniosek o połączenie gałęzi"
+
+#: rhodecode/lib/helpers.py:689
+msgid "[closed] pull request for"
+msgstr "[zamknięty] wniosek o połączenie gałęzi"
+
+#: rhodecode/lib/helpers.py:691
+msgid "[pushed] into"
+msgstr "[wysłane zmiany] w"
+
+#: rhodecode/lib/helpers.py:693
+msgid "[committed via RhodeCode] into repository"
+msgstr "[committed przez RhodeCode] do repozytorium"
+
+#: rhodecode/lib/helpers.py:695
+msgid "[pulled from remote] into repository"
+msgstr "[pobieranie z zdalnego] do repozytorium"
+
+#: rhodecode/lib/helpers.py:697
+msgid "[pulled] from"
+msgstr "[pobrano] z"
+
+#: rhodecode/lib/helpers.py:699
+msgid "[started following] repository"
+msgstr "[start następnego] repozytorium"
+
+#: rhodecode/lib/helpers.py:701
+msgid "[stopped following] repository"
+msgstr "[zatrzymany po] repozytorium"
+
+#: rhodecode/lib/helpers.py:877
+#, python-format
+msgid " and %s more"
+msgstr "i %s więcej"
+
+#: rhodecode/lib/helpers.py:881
+msgid "No Files"
+msgstr "Brak Plików"
+
+#: rhodecode/lib/utils2.py:403
+#, python-format
+msgid "%d year"
+msgid_plural "%d years"
+msgstr[0] "%d rok"
+msgstr[1] "%d lata"
+msgstr[2] "%d lat"
+
+#: rhodecode/lib/utils2.py:404
+#, python-format
+msgid "%d month"
+msgid_plural "%d months"
+msgstr[0] "%d miesiąc"
+msgstr[1] "%d miesięcy"
+msgstr[2] "%d miesięcy"
+
+#: rhodecode/lib/utils2.py:405
+#, python-format
+msgid "%d day"
+msgid_plural "%d days"
+msgstr[0] "%d dzień"
+msgstr[1] "%d dni"
+msgstr[2] "%d dni"
+
+#: rhodecode/lib/utils2.py:406
+#, python-format
+msgid "%d hour"
+msgid_plural "%d hours"
+msgstr[0] "%d godzina"
+msgstr[1] "%d godziny"
+msgstr[2] "%d godzin"
+
+#: rhodecode/lib/utils2.py:407
+#, python-format
+msgid "%d minute"
+msgid_plural "%d minutes"
+msgstr[0] "%d minuta"
+msgstr[1] "%d minuty"
+msgstr[2] "%d minut"
+
+#: rhodecode/lib/utils2.py:408
+#, python-format
+msgid "%d second"
+msgid_plural "%d seconds"
+msgstr[0] "%d sekunda"
+msgstr[1] "%d sekund"
+msgstr[2] "%d sekund"
+
+#: rhodecode/lib/utils2.py:424
+#, python-format
+msgid "in %s"
+msgstr "w %s"
+
+#: rhodecode/lib/utils2.py:426
+#, python-format
+msgid "%s ago"
+msgstr "%s temu"
+
+#: rhodecode/lib/utils2.py:428
+#, python-format
+msgid "in %s and %s"
+msgstr "w %s i %s"
+
+#: rhodecode/lib/utils2.py:431
+#, python-format
+msgid "%s and %s ago"
+msgstr "%s i %s temu"
+
+#: rhodecode/lib/utils2.py:434
+msgid "just now"
+msgstr "przed chwilą"
+
+#: rhodecode/lib/celerylib/tasks.py:270
+msgid "password reset link"
+msgstr "łącze resetowania hasła"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+msgid "Repository no access"
+msgstr "Brak dostępu do repozytorium"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+msgid "Repository read access"
+msgstr "Repozytorium do odczytu"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+msgid "Repository write access"
+msgstr "Repozytorium do zapisu"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+msgid "Repository admin access"
+msgstr "Administracja dostępu do repozytorium"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+msgid "Repositories Group no access"
+msgstr "Grupy repozytoriów brak dostępu"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+msgid "Repositories Group read access"
+msgstr "Grupy repozytoriów dostęp do odczytu"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+msgid "Repositories Group write access"
+msgstr "Grupy repozytoriów dostęp do zapisu"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+msgid "Repositories Group admin access"
+msgstr "Repozytoria Grupy dostęp administratora"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+msgid "RhodeCode Administrator"
+msgstr "Administrator Repo"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+msgid "Repository creation disabled"
+msgstr "Repozytorium wyłączone"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+msgid "Repository creation enabled"
+msgstr "Repozytorium włączone"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+msgid "Repository forking disabled"
+msgstr "Rozwidlenie repozytorium wyłączone"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+msgid "Repository forking enabled"
+msgstr "Rozwidlenie repozytorium włączone"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+msgid "Register disabled"
+msgstr "Rejestracja wyłączona"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr "Rejestracja nowego użytkownika na stronie z ręczną aktywacją"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr "Rejestracja nowego użytkownika na stronie z automatyczną aktywacją"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr "Brak Korekty"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+msgid "Approved"
+msgstr "Zaakceptowano"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr "Odrzucono"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr "Objęty Przeglądem"
+
+#: rhodecode/model/comment.py:110
+#, python-format
+msgid "on line %s"
+msgstr "widziany %s"
+
+#: rhodecode/model/comment.py:173
+msgid "[Mention]"
+msgstr "[Wymieniony]"
+
+#: rhodecode/model/forms.py:43
+msgid "Please enter a login"
+msgstr "Wpisz login"
+
+#: rhodecode/model/forms.py:44
+#, python-format
+msgid "Enter a value %(min)i characters long or more"
+msgstr "Wprowadź wartość %(min)i znaków lub więcej"
+
+#: rhodecode/model/forms.py:52
+msgid "Please enter a password"
+msgstr "Wpisz hasło"
+
+#: rhodecode/model/forms.py:53
+#, python-format
+msgid "Enter %(min)i characters or more"
+msgstr "Wpisz %(min)i lub więcej znaków"
+
+#: rhodecode/model/notification.py:220
+#, python-format
+msgid "commented on commit at %(when)s"
+msgstr "skomentował zatwierdzenie %(when)s"
+
+#: rhodecode/model/notification.py:221
+#, python-format
+msgid "sent message at %(when)s"
+msgstr "wysłano wiadomość do %(when)s"
+
+#: rhodecode/model/notification.py:222
+#, python-format
+msgid "mentioned you at %(when)s"
+msgstr "wspomniał o Tobie w %(when)s"
+
+#: rhodecode/model/notification.py:223
+#, python-format
+msgid "registered in RhodeCode at %(when)s"
+msgstr "zarejestrowany na stronie w %(when)s"
+
+#: rhodecode/model/notification.py:224
+#, python-format
+msgid "opened new pull request at %(when)s"
+msgstr "otworzył nowe połączenie gałęzi w %(when)s"
+
+#: rhodecode/model/notification.py:225
+#, python-format
+msgid "commented on pull request at %(when)s"
+msgstr "skomentował nowe połączenie gałęzi w %(when)s"
+
+#: rhodecode/model/pull_request.py:90
+#, python-format
+msgid "%(user)s wants you to review pull request #%(pr_id)s"
+msgstr "%(user)s chce żeby przejrzeć nowe gałęzie #%(pr_id)s"
+
+#: rhodecode/model/scm.py:542
+msgid "latest tip"
+msgstr "ostatni tip"
+
+#: rhodecode/model/user.py:230
+msgid "new user registration"
+msgstr "nowy użytkownik się zarejestrował"
+
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
+msgid "You can't Edit this user since it's crucial for entire application"
+msgstr ""
+"Nie możesz edytować tego użytkownika ponieważ jest kluczowy dla całej "
+"aplikacji"
+
+#: rhodecode/model/user.py:325
+msgid "You can't remove this user since it's crucial for entire application"
+msgstr ""
+"Nie możesz usunąć tego użytkownika ponieważ jest kluczowy dla całej "
+"aplikacji"
+
+#: rhodecode/model/user.py:331
+#, python-format
+msgid ""
+"user \"%s\" still owns %s repositories and cannot be removed. Switch "
+"owners or remove those repositories. %s"
+msgstr ""
+"użytkownik \"%s\" wciąż posiada repozytoria następujące %s i nie może "
+"zostać usunięty. Zmień właściciela lub usuń te repozytoria. %s"
+
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
+msgid "Value cannot be an empty list"
+msgstr "Wartość listy nie może być pusta"
+
+#: rhodecode/model/validators.py:83
+#, python-format
+msgid "Username \"%(username)s\" already exists"
+msgstr "Użytkownik \"%(username)s\" już istnieje"
+
+#: rhodecode/model/validators.py:85
+#, python-format
+msgid "Username \"%(username)s\" is forbidden"
+msgstr "Nazwa użytkownika \"%(username)s\" jest zabroniona"
+
+#: rhodecode/model/validators.py:87
+msgid ""
+"Username may only contain alphanumeric characters underscores, periods or"
+" dashes and must begin with alphanumeric character"
+msgstr ""
+"Nazwa użytkownika może zawierać tylko znaki alfanumeryczne, podkreślenia,"
+" kropki lub myślniki i musi zaczynać się znakiem alfanumerycznym"
+
+#: rhodecode/model/validators.py:115
+#, python-format
+msgid "Username %(username)s is not valid"
+msgstr "Nazwa użytkownika %(username)s jest nieprawidłowa"
+
+#: rhodecode/model/validators.py:134
+msgid "Invalid users group name"
+msgstr "Niewłaściwa nazwa grupy"
+
+#: rhodecode/model/validators.py:135
+#, python-format
+msgid "Users group \"%(usersgroup)s\" already exists"
+msgstr "Nazwa grupy \"%(usersgroup)s\" już istnieje"
+
+#: rhodecode/model/validators.py:137
+msgid ""
+"users group name may only contain  alphanumeric characters underscores, "
+"periods or dashes and must begin with alphanumeric character"
+msgstr ""
+"Nazwa grupy może zawierać tylko znaki alfanumeryczne, podkreślenia, "
+"kropki lub myślniki i musi zaczynać się znakiem alfanumerycznym"
+
+#: rhodecode/model/validators.py:175
+msgid "Cannot assign this group as parent"
+msgstr "Nie można przypisać do tej grupy jako rodzic"
+
+#: rhodecode/model/validators.py:176
+#, python-format
+msgid "Group \"%(group_name)s\" already exists"
+msgstr "Nazwa grupy \"%(group_name)s\" już istnieje"
+
+#: rhodecode/model/validators.py:178
+#, python-format
+msgid "Repository with name \"%(group_name)s\" already exists"
+msgstr "Repozytorium o nazwie \"%(group_name)s\" już istnieje"
+
+#: rhodecode/model/validators.py:236
+msgid "Invalid characters (non-ascii) in password"
+msgstr "Nieprawidłowe znaki (nie-ascii) w haśle"
+
+#: rhodecode/model/validators.py:251
+msgid "Passwords do not match"
+msgstr "Hasła różnią się"
+
+#: rhodecode/model/validators.py:268
+msgid "invalid password"
+msgstr "nieprawidłowe hasło"
+
+#: rhodecode/model/validators.py:269
+msgid "invalid user name"
+msgstr "niepoprawna nazwa użytkownika"
+
+#: rhodecode/model/validators.py:270
+msgid "Your account is disabled"
+msgstr "Twoje konto jest wyłączone"
+
+#: rhodecode/model/validators.py:314
+#, python-format
+msgid "Repository name %(repo)s is disallowed"
+msgstr "Nazwa repozytorium  %(repo)s jest zabroniona"
+
+#: rhodecode/model/validators.py:316
+#, python-format
+msgid "Repository named %(repo)s already exists"
+msgstr "Repozytorium o nazwie %(repo)s już istnieje"
+
+#: rhodecode/model/validators.py:317
+#, python-format
+msgid "Repository \"%(repo)s\" already exists in group \"%(group)s\""
+msgstr "Repozytorium  \"%(repo)s\" już istnieje w grupie \"%(group)s\""
+
+#: rhodecode/model/validators.py:319
+#, python-format
+msgid "Repositories group with name \"%(repo)s\" already exists"
+msgstr "Grupa repozytoriów z nazwą \"%(repo)s\" już istnieje"
+
+#: rhodecode/model/validators.py:432
+msgid "invalid clone url"
+msgstr "nieprawidłowe url klonowania"
+
+#: rhodecode/model/validators.py:433
+msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
+msgstr "Nieprawidłowe url klonowania, wstaw prawidłowy url http(s)/svn+http(s)"
+
+#: rhodecode/model/validators.py:458
+msgid "Fork have to be the same type as parent"
+msgstr "Fork musi być tego samego typu, jak rodzic"
+
+#: rhodecode/model/validators.py:473
+msgid "You don't have permissions to create repository in this group"
+msgstr "Nie masz uprawnień do tworzenia repozytorium w tej grupie"
+
+#: rhodecode/model/validators.py:498
+msgid "This username or users group name is not valid"
+msgstr "Ta nazwa użytkownika lub grupy użytkowników nie jest prawidłowa"
+
+#: rhodecode/model/validators.py:582
+msgid "This is not a valid path"
+msgstr "To nie jest prawidłowa ścieżka"
+
+#: rhodecode/model/validators.py:597
+msgid "This e-mail address is already taken"
+msgstr "Ten adres e-mail jest już zajęty"
+
+#: rhodecode/model/validators.py:617
+#, python-format
+msgid "e-mail \"%(email)s\" does not exist."
+msgstr "e-mail \"%(email)s\" nie istnieje."
+
+#: rhodecode/model/validators.py:654
+msgid ""
+"The LDAP Login attribute of the CN must be specified - this is the name "
+"of the attribute that is equivalent to \"username\""
+msgstr ""
+"Atrybut logowania CN do LDAP należy określić, jest to nazwa atrybutu, "
+"który jest odpowiednikiem  \"username\""
+
+#: rhodecode/model/validators.py:673
+#, python-format
+msgid "Revisions %(revs)s are already part of pull request or have set status"
+msgstr "Rewizja  %(revs)s jest już częścią  nowej gałęzi więc określ jego status"
+
+#: rhodecode/templates/index.html:3
+msgid "Dashboard"
+msgstr "Repozytorium"
+
+#: rhodecode/templates/index_base.html:6
+#: rhodecode/templates/repo_switcher_list.html:4
+#: rhodecode/templates/admin/repos/repos.html:9
+#: rhodecode/templates/admin/users/user_edit_my_account.html:31
+#: rhodecode/templates/admin/users/users.html:9
+#: rhodecode/templates/bookmarks/bookmarks.html:10
+#: rhodecode/templates/branches/branches.html:9
+#: rhodecode/templates/journal/journal.html:40
+#: rhodecode/templates/tags/tags.html:10
+msgid "quick filter..."
+msgstr "szybki filtr..."
+
+#: rhodecode/templates/index_base.html:6
+#: rhodecode/templates/admin/repos/repos.html:9
+#: rhodecode/templates/base/base.html:233
+msgid "repositories"
+msgstr "repozytoria"
+
+#: rhodecode/templates/index_base.html:13
+#: rhodecode/templates/index_base.html:15
+#: rhodecode/templates/admin/repos/repos.html:21
+msgid "ADD REPOSITORY"
+msgstr "DODAJ REPOZYTORIUM"
+
+#: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
+#: rhodecode/templates/admin/users_groups/users_group_add.html:32
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:33
+msgid "Group name"
+msgstr "Nazwa grupy"
+
+#: rhodecode/templates/index_base.html:30
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
+#: rhodecode/templates/admin/repos/repo_add_base.html:56
+#: rhodecode/templates/admin/repos/repo_edit.html:75
+#: rhodecode/templates/admin/repos/repos.html:72
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:41
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:41
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
+#: rhodecode/templates/forks/fork.html:59
+#: rhodecode/templates/settings/repo_settings.html:66
+#: rhodecode/templates/summary/summary.html:114
+msgid "Description"
+msgstr "Opis"
+
+#: rhodecode/templates/index_base.html:40
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
+msgid "Repositories group"
+msgstr "Grupy w repozytorium"
+
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
+#: rhodecode/templates/admin/repos/repo_add_base.html:9
+#: rhodecode/templates/admin/repos/repo_edit.html:32
+#: rhodecode/templates/admin/repos/repos.html:70
+#: rhodecode/templates/admin/users/user_edit.html:196
+#: rhodecode/templates/admin/users/user_edit_my_account.html:59
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
+#: rhodecode/templates/bookmarks/bookmarks.html:36
+#: rhodecode/templates/bookmarks/bookmarks_data.html:6
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
+#: rhodecode/templates/files/files_browser.html:47
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
+#: rhodecode/templates/settings/repo_settings.html:31
+#: rhodecode/templates/summary/summary.html:43
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
+#: rhodecode/templates/tags/tags_data.html:6
+msgid "Name"
+msgstr "Nazwa"
+
+#: rhodecode/templates/index_base.html:73
+msgid "Last change"
+msgstr "Ostatnia aktywność"
+
+#: rhodecode/templates/index_base.html:74
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
+msgid "Tip"
+msgstr "Ostatnia zmiana"
+
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
+#: rhodecode/templates/admin/repos/repo_edit.html:121
+#: rhodecode/templates/admin/repos/repos.html:73
+msgid "Owner"
+msgstr "Właściciel"
+
+#: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/summary/summary.html:48
+#: rhodecode/templates/summary/summary.html:51
+msgid "RSS"
+msgstr "RSS"
+
+#: rhodecode/templates/index_base.html:77
+msgid "Atom"
+msgstr "Atom"
+
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
+#: rhodecode/templates/admin/repos/repos.html:94
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
+#: rhodecode/templates/admin/users/users.html:107
+#: rhodecode/templates/bookmarks/bookmarks.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
+msgid "Click to sort ascending"
+msgstr "Kliknij, aby posortować rosnąco"
+
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
+#: rhodecode/templates/admin/repos/repos.html:95
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
+#: rhodecode/templates/admin/users/users.html:108
+#: rhodecode/templates/bookmarks/bookmarks.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
+msgid "Click to sort descending"
+msgstr "Kliknij, aby posortować malejąco"
+
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
+msgid "Last Change"
+msgstr "Ostatnia akytwność"
+
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
+#: rhodecode/templates/admin/repos/repos.html:96
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
+#: rhodecode/templates/admin/users/users.html:109
+#: rhodecode/templates/bookmarks/bookmarks.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
+msgid "No records found."
+msgstr "Nie znaleziono rekordów."
+
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
+#: rhodecode/templates/admin/repos/repos.html:97
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
+#: rhodecode/templates/admin/users/users.html:110
+#: rhodecode/templates/bookmarks/bookmarks.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
+msgid "Data error."
+msgstr "Błąd danych."
+
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
+#: rhodecode/templates/admin/repos/repos.html:98
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
+#: rhodecode/templates/admin/users/users.html:111
+#: rhodecode/templates/bookmarks/bookmarks.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
+msgid "Loading..."
+msgstr "Wczytywanie..."
+
+#: rhodecode/templates/login.html:5 rhodecode/templates/login.html:54
+msgid "Sign In"
+msgstr "Zaloguj się"
+
+#: rhodecode/templates/login.html:21
+msgid "Sign In to"
+msgstr "Zarejestruj się"
+
+#: rhodecode/templates/login.html:31 rhodecode/templates/register.html:20
+#: rhodecode/templates/admin/admin_log.html:5
+#: rhodecode/templates/admin/users/user_add.html:32
+#: rhodecode/templates/admin/users/user_edit.html:50
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
+#: rhodecode/templates/base/base.html:83
+#: rhodecode/templates/summary/summary.html:131
+msgid "Username"
+msgstr "Nazwa użytkownika"
+
+#: rhodecode/templates/login.html:40 rhodecode/templates/register.html:29
+#: rhodecode/templates/admin/ldap/ldap.html:46
+#: rhodecode/templates/admin/users/user_add.html:41
+#: rhodecode/templates/base/base.html:92
+msgid "Password"
+msgstr "Hasło"
+
+#: rhodecode/templates/login.html:50
+msgid "Remember me"
+msgstr "Zapamiętaj mnie"
+
+#: rhodecode/templates/login.html:60
+msgid "Forgot your password ?"
+msgstr "Zapomniałeś hasła?"
+
+#: rhodecode/templates/login.html:63 rhodecode/templates/base/base.html:103
+msgid "Don't have an account ?"
+msgstr "Nie masz konta?"
+
+#: rhodecode/templates/password_reset.html:5
+msgid "Reset your password"
+msgstr "Zresetuj swoje hasło"
+
+#: rhodecode/templates/password_reset.html:11
+msgid "Reset your password to"
+msgstr "Resetowanie hasła dla"
+
+#: rhodecode/templates/password_reset.html:21
+msgid "Email address"
+msgstr "Adres e-mail"
+
+#: rhodecode/templates/password_reset.html:30
+msgid "Reset my password"
+msgstr "Zresetuj swoje hasło"
+
+#: rhodecode/templates/password_reset.html:31
+msgid "Password reset link will be send to matching email address"
+msgstr "Link do zresetowania hasła zostanie wysłany na adres e-mail"
+
+#: rhodecode/templates/register.html:5 rhodecode/templates/register.html:74
+msgid "Sign Up"
+msgstr "Zarejestruj się"
+
+#: rhodecode/templates/register.html:11
+msgid "Sign Up to"
+msgstr "Zarejestruj się do"
+
+#: rhodecode/templates/register.html:38
+msgid "Re-enter password"
+msgstr "Ponownie wprowadź hasło"
+
+#: rhodecode/templates/register.html:47
+#: rhodecode/templates/admin/users/user_add.html:59
+#: rhodecode/templates/admin/users/user_edit.html:90
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
+msgid "First Name"
+msgstr "Imię"
+
+#: rhodecode/templates/register.html:56
+#: rhodecode/templates/admin/users/user_add.html:68
+#: rhodecode/templates/admin/users/user_edit.html:99
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
+msgid "Last Name"
+msgstr "Nazwisko"
+
+#: rhodecode/templates/register.html:65
+#: rhodecode/templates/admin/users/user_add.html:77
+#: rhodecode/templates/admin/users/user_edit.html:108
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
+#: rhodecode/templates/summary/summary.html:133
+msgid "Email"
+msgstr "E-mail"
+
+#: rhodecode/templates/register.html:76
+msgid "Your account will be activated right after registration"
+msgstr "Twoje konto zostanie aktywowane zaraz po rejestracji"
+
+#: rhodecode/templates/register.html:78
+msgid "Your account must wait for activation by administrator"
+msgstr "Twoje konto musi zostać aktywowane przez administratora"
+
+#: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
+#: rhodecode/templates/admin/repos/repo_add_base.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:85
+#: rhodecode/templates/settings/repo_settings.html:76
+msgid "Private repository"
+msgstr "Prywatne repozytorium"
+
+#: rhodecode/templates/repo_switcher_list.html:16
+msgid "Public repository"
+msgstr "Publiczne repozytorium"
+
+#: rhodecode/templates/switch_to_list.html:3
+#: rhodecode/templates/branches/branches.html:14
+msgid "branches"
+msgstr "gałęzie"
+
+#: rhodecode/templates/switch_to_list.html:10
+#: rhodecode/templates/branches/branches_data.html:57
+msgid "There are no branches yet"
+msgstr "Nie ma jeszcze gałęzi"
+
+#: rhodecode/templates/switch_to_list.html:15
+#: rhodecode/templates/shortlog/shortlog_data.html:10
+#: rhodecode/templates/tags/tags.html:15
+msgid "tags"
+msgstr "Tagi"
+
+#: rhodecode/templates/switch_to_list.html:22
+#: rhodecode/templates/tags/tags_data.html:38
+msgid "There are no tags yet"
+msgstr "Nie ma jeszcze tagów"
+
+#: rhodecode/templates/switch_to_list.html:28
+#: rhodecode/templates/bookmarks/bookmarks.html:15
+msgid "bookmarks"
+msgstr "zakładki"
+
+#: rhodecode/templates/switch_to_list.html:35
+#: rhodecode/templates/bookmarks/bookmarks_data.html:32
+msgid "There are no bookmarks yet"
+msgstr "Nie ma jeszcze zakładek"
+
+#: rhodecode/templates/admin/admin.html:5
+#: rhodecode/templates/admin/admin.html:9
+msgid "Admin journal"
+msgstr "Dziennik administratora"
+
+#: rhodecode/templates/admin/admin_log.html:6
+#: rhodecode/templates/admin/repos/repos.html:74
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
+msgid "Action"
+msgstr "Działanie"
+
+#: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
+msgid "Repository"
+msgstr "Repozytorium"
+
+#: rhodecode/templates/admin/admin_log.html:8
+#: rhodecode/templates/bookmarks/bookmarks.html:37
+#: rhodecode/templates/bookmarks/bookmarks_data.html:7
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
+#: rhodecode/templates/tags/tags_data.html:7
+msgid "Date"
+msgstr "Data"
+
+#: rhodecode/templates/admin/admin_log.html:9
+msgid "From IP"
+msgstr "z IP"
+
+#: rhodecode/templates/admin/admin_log.html:57
+msgid "No actions yet"
+msgstr "Brak akcji"
+
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+#, fuzzy
+msgid "Repositories defaults"
+msgstr "grupy w repozytorium"
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+#, fuzzy
+msgid "Defaults"
+msgstr "domyślne"
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr "Typ"
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr ""
+"Prywatne repozytoria są widoczne tylko dla osób bezpośrednio dodanych "
+"jako współpracownicy."
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr "Włącz statystyki"
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr "Włącz okno statystyk na stronie podsumowania."
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr "Włącz pobieranie"
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr "Włącz menu pobierania na stronie podsumowania."
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+msgid "Enable locking"
+msgstr "Włącz blokowanie"
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr "Włącz blokowanie pobierania w repozytorium."
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr "Zapisz"
+
+#: rhodecode/templates/admin/ldap/ldap.html:5
+msgid "LDAP administration"
+msgstr "Administracja LDAP"
+
+#: rhodecode/templates/admin/ldap/ldap.html:11
+msgid "Ldap"
+msgstr "Ldap"
+
+#: rhodecode/templates/admin/ldap/ldap.html:28
+msgid "Connection settings"
+msgstr "Ustawienia połączeń"
+
+#: rhodecode/templates/admin/ldap/ldap.html:30
+msgid "Enable LDAP"
+msgstr "Włącz LDAP"
+
+#: rhodecode/templates/admin/ldap/ldap.html:34
+msgid "Host"
+msgstr "Host"
+
+#: rhodecode/templates/admin/ldap/ldap.html:38
+msgid "Port"
+msgstr "Port"
+
+#: rhodecode/templates/admin/ldap/ldap.html:42
+msgid "Account"
+msgstr "Konto"
+
+#: rhodecode/templates/admin/ldap/ldap.html:50
+msgid "Connection security"
+msgstr "Zabezpieczenie połączenia"
+
+#: rhodecode/templates/admin/ldap/ldap.html:54
+msgid "Certificate Checks"
+msgstr "Kontrola certyfikatów"
+
+#: rhodecode/templates/admin/ldap/ldap.html:57
+msgid "Search settings"
+msgstr "Ustawienia wyszukiwania"
+
+#: rhodecode/templates/admin/ldap/ldap.html:59
+msgid "Base DN"
+msgstr "Bazowy DN"
+
+#: rhodecode/templates/admin/ldap/ldap.html:63
+msgid "LDAP Filter"
+msgstr "Filtr LDAP"
+
+#: rhodecode/templates/admin/ldap/ldap.html:67
+msgid "LDAP Search Scope"
+msgstr "Zakres wyszukiwania LDAP"
+
+#: rhodecode/templates/admin/ldap/ldap.html:70
+msgid "Attribute mappings"
+msgstr "Mapowanie atrybutów"
+
+#: rhodecode/templates/admin/ldap/ldap.html:72
+msgid "Login Attribute"
+msgstr "Atrybuty logowania"
+
+#: rhodecode/templates/admin/ldap/ldap.html:76
+msgid "First Name Attribute"
+msgstr "Atrybut Nazwiska"
+
+#: rhodecode/templates/admin/ldap/ldap.html:80
+msgid "Last Name Attribute"
+msgstr "Atrybut Imienia"
+
+#: rhodecode/templates/admin/ldap/ldap.html:84
+msgid "E-mail Attribute"
+msgstr "Atrybut E-maila"
+
+#: rhodecode/templates/admin/notifications/notifications.html:5
+#: rhodecode/templates/admin/notifications/notifications.html:9
+msgid "My Notifications"
+msgstr "Opcje powiadomień"
+
+#: rhodecode/templates/admin/notifications/notifications.html:29
+msgid "All"
+msgstr "Wszystkie"
+
+#: rhodecode/templates/admin/notifications/notifications.html:30
+msgid "Comments"
+msgstr "Komentarze"
+
+#: rhodecode/templates/admin/notifications/notifications.html:31
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
+msgid "Pull requests"
+msgstr "Połączone gałęzie"
+
+#: rhodecode/templates/admin/notifications/notifications.html:35
+msgid "Mark all read"
+msgstr "Oznacz wszystko jako przeczytane"
+
+#: rhodecode/templates/admin/notifications/notifications_data.html:39
+msgid "No notifications here yet"
+msgstr "Brak powiadomień"
+
+#: rhodecode/templates/admin/notifications/show_notification.html:5
+#: rhodecode/templates/admin/notifications/show_notification.html:11
+msgid "Show notification"
+msgstr "Pokaż powiadomienia"
+
+#: rhodecode/templates/admin/notifications/show_notification.html:9
+msgid "Notifications"
+msgstr "Powiadomienia"
+
+#: rhodecode/templates/admin/permissions/permissions.html:5
+msgid "Permissions administration"
+msgstr "Uprawnienia administracji"
+
+#: rhodecode/templates/admin/permissions/permissions.html:11
+#: rhodecode/templates/admin/repos/repo_edit.html:134
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
+#: rhodecode/templates/admin/users/user_edit.html:143
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:100
+#: rhodecode/templates/settings/repo_settings.html:86
+msgid "Permissions"
+msgstr "Uprawnienia"
+
+#: rhodecode/templates/admin/permissions/permissions.html:24
+msgid "Default permissions"
+msgstr "Domyślne uprawnienia"
+
+#: rhodecode/templates/admin/permissions/permissions.html:31
+msgid "Anonymous access"
+msgstr "Dostęp anonimowy"
+
+#: rhodecode/templates/admin/permissions/permissions.html:49
+msgid ""
+"All default permissions on each repository will be reset to choosen "
+"permission, note that all custom default permission on repositories will "
+"be lost"
+msgstr ""
+"Wszystkie uprawnienia domyślne każdego repozytorium zostaną przywrócone. "
+"Wybrane uprawnienie zostaną skasowane. Pamiętaj, że wszystkie "
+"niestandardowe uprawnienia w repozytoriach zostaną utracone."
+
+#: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
+msgid "overwrite existing settings"
+msgstr "Nadpisz ustawienia"
+
+#: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr "Repozytorium grupy"
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr ""
+"Wszystkie uprawnienia domyślne każdego repozytorium zostaną przywrócone. "
+"Wybrane uprawnienie zostaną skasowane. Pamiętaj, że wszystkie "
+"niestandardowe uprawnienia w repozytoriach zostaną utracone."
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
+msgid "Registration"
+msgstr "Rejestracja"
+
+#: rhodecode/templates/admin/permissions/permissions.html:77
+msgid "Repository creation"
+msgstr "Tworzenie repozytorium"
+
+#: rhodecode/templates/admin/permissions/permissions.html:85
+msgid "Repository forking"
+msgstr "Rozwidlanie repozytorium"
+
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
+msgid "set"
+msgstr "ustaw"
+
+#: rhodecode/templates/admin/repos/repo_add.html:5
+#: rhodecode/templates/admin/repos/repo_add_create_repository.html:5
+msgid "Add repository"
+msgstr "Dodaj repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_add.html:11
+#: rhodecode/templates/admin/repos/repo_edit.html:11
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:10
+msgid "Repositories"
+msgstr "Repozytoria"
+
+#: rhodecode/templates/admin/repos/repo_add.html:13
+msgid "add new"
+msgstr "dodaj nowe"
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:20
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
+msgid "Clone from"
+msgstr "Klonuj z"
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:24
+#: rhodecode/templates/admin/repos/repo_edit.html:44
+#: rhodecode/templates/settings/repo_settings.html:43
+msgid "Optional http[s] url from which repository should be cloned."
+msgstr "Opcjonalnie http[s] url z którego repozytorium powinno być klonowane."
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:33
+#: rhodecode/templates/forks/fork.html:54
+msgid "Optionaly select a group to put this repository into."
+msgstr "Opcjonalnie wybierz grupę do wprowadzenia tego repozytorium."
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:42
+msgid "Type of repository to create."
+msgstr "Rodzaj repozytorium do stworzenia."
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:47
+#: rhodecode/templates/admin/repos/repo_edit.html:66
+#: rhodecode/templates/forks/fork.html:41
+#: rhodecode/templates/settings/repo_settings.html:57
+msgid "Landing revision"
+msgstr "Docelowa rewizja"
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:51
+#: rhodecode/templates/admin/repos/repo_edit.html:70
+#: rhodecode/templates/forks/fork.html:45
+#: rhodecode/templates/settings/repo_settings.html:61
+msgid "Default revision for files page, downloads, whoosh and readme"
+msgstr "Wersja domyślna dla plików stronicowania, pobierania plików, readme"
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:60
+#: rhodecode/templates/admin/repos/repo_edit.html:79
+#: rhodecode/templates/forks/fork.html:63
+#: rhodecode/templates/settings/repo_settings.html:70
+msgid "Keep it short and to the point. Use a README file for longer descriptions."
+msgstr "Powinna być krótka i na temat. Użyj pliku README dla dłuższych opisów."
+
+#: rhodecode/templates/admin/repos/repo_add_base.html:73
+msgid "add"
+msgstr "dodaj"
+
+#: rhodecode/templates/admin/repos/repo_add_create_repository.html:9
+msgid "add new repository"
+msgstr "dodaj nowe repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:5
+msgid "Edit repository"
+msgstr "Edytuj repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:13
+#: rhodecode/templates/admin/users/user_edit.html:13
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:13
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
+msgid "edit"
+msgstr "edycja"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:40
+#: rhodecode/templates/settings/repo_settings.html:39
+msgid "Clone uri"
+msgstr "Klonowane uri"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:53
+#: rhodecode/templates/settings/repo_settings.html:52
+msgid "Optional select a group to put this repository into."
+msgstr "Opcjonalnie wybierz grupę do wprowadzenia tego repozytorium."
+
+#: rhodecode/templates/admin/repos/repo_edit.html:126
+msgid "Change owner of this repository."
+msgstr "Zmiana właściciela tego repozytorium."
+
+#: rhodecode/templates/admin/repos/repo_edit.html:142
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
+#: rhodecode/templates/admin/settings/settings.html:113
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:136
+#: rhodecode/templates/files/files_add.html:82
+#: rhodecode/templates/files/files_edit.html:68
+#: rhodecode/templates/pullrequests/pullrequest.html:124
+#: rhodecode/templates/settings/repo_settings.html:94
+msgid "Reset"
+msgstr "Zresetuj"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:152
+msgid "Administration"
+msgstr "Administracja"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:155
+msgid "Statistics"
+msgstr "Statystyki"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:159
+msgid "Reset current statistics"
+msgstr "Zresetuj bieżące statystyki"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:159
+msgid "Confirm to remove current statistics"
+msgstr "Potwierdź usunięcie aktualnych statystyk"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:162
+msgid "Fetched to rev"
+msgstr "Ściągnięte do rev"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:163
+msgid "Stats gathered"
+msgstr "statystyki zgromadzone"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:171
+msgid "Remote"
+msgstr "Zdalnie"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:175
+msgid "Pull changes from remote location"
+msgstr "Prożba połączenia zmian z lokalizacji zdalnej"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:175
+msgid "Confirm to pull changes from remote side"
+msgstr "Potwierdź pull z zdalnej strony"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:186
+msgid "Cache"
+msgstr "Pamięć podręczna"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:190
+msgid "Invalidate repository cache"
+msgstr "Unieważnij pamięć podręczną repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:190
+msgid "Confirm to invalidate repository cache"
+msgstr "Potwierdź unieważnienie pamięci podręcznej repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:193
+msgid ""
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
+msgstr ""
+"Ręcznie unieważnienie cache dla tego repozytorium. Przy pierwszym "
+"dostępie do repozytorium zostanie dodany do bufora ponownie"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:198
+msgid "List of cached values"
+msgstr "Lista buforowanych wartości"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:201
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+#, fuzzy
+msgid "Key"
+msgstr "Klucz API"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr "Aktywny"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
+#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
+msgid "Public journal"
+msgstr "Dziennik publiczny"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:224
+msgid "Remove from public journal"
+msgstr "Usuń z dziennika publicznego"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:226
+msgid "Add to public journal"
+msgstr "Dodaj do dziennika publicznego"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:231
+msgid ""
+"All actions made on this repository will be accessible to everyone in "
+"public journal"
+msgstr ""
+"Wszystkie działania wykonywane na tym repozytorium będą dostępne dla "
+"wszystkich w dzienniku publicznym"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:238
+msgid "Locking"
+msgstr "Blokuj"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:243
+msgid "Unlock locked repo"
+msgstr "Odblokuj zablokowane repo"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:243
+msgid "Confirm to unlock repository"
+msgstr "Potwierdź odblokowanie repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:246
+msgid "lock repo"
+msgstr "blokada repo"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:246
+msgid "Confirm to lock repository"
+msgstr "Potwierdź blokowanie repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:247
+msgid "Repository is not locked"
+msgstr "Repozytorium nie jest zablokowane"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:252
+msgid "Force locking on repository. Works only when anonymous access is disabled"
+msgstr ""
+"Wymuś blokowanie na repozytorium. Działa tylko wtedy, gdy dostęp "
+"anonimowy jest wyłączony"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:259
+msgid "Set as fork of"
+msgstr "Ustaw jako rozwidlenie"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:268
+msgid "Manually set this repository as a fork of another from the list"
+msgstr "Ręczne ustawienie rozwidlenia z listy"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:274
+#: rhodecode/templates/changeset/changeset_file_comment.html:26
+msgid "Delete"
+msgstr "Usuń"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:278
+msgid "Remove this repository"
+msgstr "Usuń to repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:278
+msgid "Confirm to delete this repository"
+msgstr "Potwierdź, aby usunąć repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:282
+msgid ""
+"This repository will be renamed in a special way in order to be "
+"unaccesible for RhodeCode and VCS systems.\n"
+"                         If you need fully delete it from filesystem "
+"please do it manually"
+msgstr ""
+"To repozytorium zostanie zmienione w sposób szczególny, żeby było "
+"niedostępne dla strony i systemów VCS.\n"
+"                         Jeśli chcesz całkowicie usunąć go z systemu "
+"plików prosimy zrobić to ręcznie"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:3
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:3
+msgid "none"
+msgstr "brak"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:4
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:4
+msgid "read"
+msgstr "odczyt"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:5
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:5
+msgid "write"
+msgstr "zapis"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:6
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
+#: rhodecode/templates/admin/users/users.html:85
+#: rhodecode/templates/base/base.html:229
+msgid "admin"
+msgstr "administracja"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:7
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:7
+msgid "member"
+msgstr "użytkownik"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:16
+#: rhodecode/templates/data_table/_dt_elements.html:67
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
+msgid "private repository"
+msgstr "prywatne repozytorium"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:19
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:28
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:18
+msgid "default"
+msgstr "domyślne"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:33
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:58
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:23
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:42
+msgid "revoke"
+msgstr "odwołane"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:83
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:67
+msgid "Add another member"
+msgstr "Dodaj kolejnego użytkownika"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:97
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:87
+msgid "Failed to remove user"
+msgstr "Nie udało się usunąć użytkownika"
+
+#: rhodecode/templates/admin/repos/repo_edit_perms.html:112
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:103
+msgid "Failed to remove users group"
+msgstr "Nie udało się usunąć grupy użytkowników"
+
+#: rhodecode/templates/admin/repos/repos.html:5
+msgid "Repositories administration"
+msgstr "Administracja repozytoriami"
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:73
+msgid "apply to children"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:9
+#: rhodecode/templates/base/base.html:122
+#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
+#: rhodecode/templates/bookmarks/bookmarks.html:11
+#: rhodecode/templates/branches/branches.html:10
+#: rhodecode/templates/changelog/changelog.html:10
+#: rhodecode/templates/changeset/changeset.html:10
+#: rhodecode/templates/changeset/changeset_range.html:9
+#: rhodecode/templates/compare/compare_diff.html:9
+#: rhodecode/templates/files/file_diff.html:8
+#: rhodecode/templates/files/files.html:8
+#: rhodecode/templates/files/files_add.html:15
+#: rhodecode/templates/files/files_edit.html:15
+#: rhodecode/templates/followers/followers.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/pullrequests/pullrequest.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
+#: rhodecode/templates/settings/repo_settings.html:9
+#: rhodecode/templates/shortlog/shortlog.html:10
+#: rhodecode/templates/summary/summary.html:8
+#: rhodecode/templates/tags/tags.html:11
+msgid "Home"
+msgstr "Strona Główna"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:13
+msgid "with"
+msgstr "używając"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:5
+msgid "Add repos group"
+msgstr "Dodaj grupę repos"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:10
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:10
+msgid "Repos groups"
+msgstr "Grupy repos"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:12
+msgid "add new repos group"
+msgstr "dodaj nową grupę repozytorium"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:50
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:50
+msgid "Group parent"
+msgstr "Dominująca grupa"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_add.html:58
+#: rhodecode/templates/admin/users/user_add.html:94
+#: rhodecode/templates/admin/users_groups/users_group_add.html:49
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:90
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
+msgid "save"
+msgstr "zapisz"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:5
+msgid "Edit repos group"
+msgstr "Edytuj grupy repo"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:12
+msgid "edit repos group"
+msgstr "edytuj grupy repo"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:70
+msgid ""
+"Enable lock-by-pulling on group. This option will be applied to all other"
+" groups and repositories inside"
+msgstr ""
+"Włącz blokowanie pulling przez grupy. Opcja ta będzie stosowana do "
+"wszystkich innych grup i repozytoriów wewnątrz"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:5
+msgid "Repositories groups administration"
+msgstr "Repozytoria grup administracyjnych"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:22
+msgid "ADD NEW GROUP"
+msgstr "DODAJ NOWĄ GRUPĘ"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:35
+msgid "Number of toplevel repositories"
+msgstr "Liczba najwyższego poziomu repozytorium"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:36
+#: rhodecode/templates/admin/users/users.html:87
+#: rhodecode/templates/admin/users_groups/users_groups.html:35
+msgid "action"
+msgstr "działanie"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
+#: rhodecode/templates/admin/users_groups/users_groups.html:44
+#: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/data_table/_dt_elements.html:121
+msgid "delete"
+msgstr "usuń"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#, fuzzy, python-format
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] "Potwierdz aby usunąć grupę %s wraz z %s repozytorium"
+msgstr[1] "Potwierdz aby usunąć grupę %s wraz z %s repozytoriami"
+msgstr[2] "Potwierdz aby usunąć grupę %s wraz z %s repozytoriami"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
+msgid "There are no repositories groups yet"
+msgstr "Nie ma jeszcze grup repozytoriów"
+
+#: rhodecode/templates/admin/settings/hooks.html:5
+#: rhodecode/templates/admin/settings/settings.html:5
+msgid "Settings administration"
+msgstr "Ustawienia administracji"
+
+#: rhodecode/templates/admin/settings/hooks.html:9
+#: rhodecode/templates/admin/settings/settings.html:9
+#: rhodecode/templates/settings/repo_settings.html:13
+msgid "Settings"
+msgstr "Ustawienia"
+
+#: rhodecode/templates/admin/settings/hooks.html:24
+msgid "Built in hooks - read only"
+msgstr "Wbudowana w aktualizację - tylko do odczytu"
+
+#: rhodecode/templates/admin/settings/hooks.html:40
+msgid "Custom hooks"
+msgstr "Niestandardowa aktualizacja"
+
+#: rhodecode/templates/admin/settings/hooks.html:56
+msgid "remove"
+msgstr "usuń"
+
+#: rhodecode/templates/admin/settings/hooks.html:88
+msgid "Failed to remove hook"
+msgstr "Nie udało się usunąć hooka"
+
+#: rhodecode/templates/admin/settings/settings.html:24
+msgid "Remap and rescan repositories"
+msgstr "Mapowanie i skanowanie repozytorów"
+
+#: rhodecode/templates/admin/settings/settings.html:32
+msgid "rescan option"
+msgstr "ponowne skanowanie opcji"
+
+#: rhodecode/templates/admin/settings/settings.html:38
+msgid ""
+"In case a repository was deleted from filesystem and there are leftovers "
+"in the database check this option to scan obsolete data in database and "
+"remove it."
+msgstr ""
+"W przypadku repozytoriów zostaną usunięte systemy plików i jeśli są "
+"pozostałości w bazie danych to ta opcja sprawdzi ją oraz przeskanuje, a "
+"następnie usunie je z bazy danych."
+
+#: rhodecode/templates/admin/settings/settings.html:39
+msgid "destroy old data"
+msgstr "zniszcz stare dane"
+
+#: rhodecode/templates/admin/settings/settings.html:41
+msgid ""
+"Rescan repositories location for new repositories. Also deletes obsolete "
+"if `destroy` flag is checked "
+msgstr ""
+"Skanowanie ponowne lokalizacji dla nowych repozytoriów. Usuwa również "
+"nieaktualne jeśli została zaznaczona flaga `zniszcz` do sprawdzana"
+
+#: rhodecode/templates/admin/settings/settings.html:46
+msgid "Rescan repositories"
+msgstr "Skanuj ponownie repozytoria"
+
+#: rhodecode/templates/admin/settings/settings.html:52
+msgid "Whoosh indexing"
+msgstr "indeksowanie Whoosh"
+
+#: rhodecode/templates/admin/settings/settings.html:60
+msgid "index build option"
+msgstr "opcja budowania indeksowania"
+
+#: rhodecode/templates/admin/settings/settings.html:65
+msgid "build from scratch"
+msgstr "buduj od podstaw"
+
+#: rhodecode/templates/admin/settings/settings.html:71
+msgid "Reindex"
+msgstr "Indeksuj ponownie"
+
+#: rhodecode/templates/admin/settings/settings.html:77
+msgid "Global application settings"
+msgstr "Globalne ustawienia aplikacji"
+
+#: rhodecode/templates/admin/settings/settings.html:86
+msgid "Application name"
+msgstr "Nazwa aplikacji"
+
+#: rhodecode/templates/admin/settings/settings.html:95
+msgid "Realm text"
+msgstr "Realny tekst"
+
+#: rhodecode/templates/admin/settings/settings.html:104
+msgid "GA code"
+msgstr "GA kod"
+
+#: rhodecode/templates/admin/settings/settings.html:112
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
+msgid "Save settings"
+msgstr "Zapisz ustawienia"
+
+#: rhodecode/templates/admin/settings/settings.html:119
+msgid "Visualisation settings"
+msgstr "Ustawienia wizualizacji"
+
+#: rhodecode/templates/admin/settings/settings.html:127
+#, fuzzy
+msgid "General"
+msgstr "włącz"
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr "Użyj lekkiego pulpitu"
+
+#: rhodecode/templates/admin/settings/settings.html:139
+msgid "Icons"
+msgstr "Ikony"
+
+#: rhodecode/templates/admin/settings/settings.html:144
+msgid "Show public repo icon on repositories"
+msgstr "Pokazuj w publicznym repo ikonę w repozytoriach"
+
+#: rhodecode/templates/admin/settings/settings.html:148
+msgid "Show private repo icon on repositories"
+msgstr "Pokazuj w prywatnym repo ikonę w repozytoriach"
+
+#: rhodecode/templates/admin/settings/settings.html:155
+msgid "Meta-Tagging"
+msgstr "Tagowanie meta"
+
+#: rhodecode/templates/admin/settings/settings.html:160
+msgid "Stylify recognised metatags:"
+msgstr "Stylizacja rozpoznanych meta tagów:"
+
+#: rhodecode/templates/admin/settings/settings.html:187
+msgid "VCS settings"
+msgstr "VCS ustawienia"
+
+#: rhodecode/templates/admin/settings/settings.html:196
+msgid "Web"
+msgstr "www"
+
+#: rhodecode/templates/admin/settings/settings.html:201
+msgid "require ssl for vcs operations"
+msgstr "wymagaj ssl dla operacji vcs"
+
+#: rhodecode/templates/admin/settings/settings.html:203
+msgid ""
+"RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
+"will return HTTP Error 406: Not Acceptable"
+msgstr ""
+"RhodeCode wymaga SSL do wysłania zmian lub pobierania. Jeśli brakuje SSL "
+"zwróci błąd HTTP 406: Not Acceptable"
+
+#: rhodecode/templates/admin/settings/settings.html:209
+msgid "Hooks"
+msgstr "Aktualizacja"
+
+#: rhodecode/templates/admin/settings/settings.html:214
+msgid "Update repository after push (hg update)"
+msgstr "Aktualizacja repozytorium po wysłaniu zmian (aktualizacja hg)"
+
+#: rhodecode/templates/admin/settings/settings.html:218
+msgid "Show repository size after push"
+msgstr "Pokaż rozmiar repozytorium po wysłaniu zmian"
+
+#: rhodecode/templates/admin/settings/settings.html:222
+msgid "Log user push commands"
+msgstr "Logi poleceń wysłania zmian użytkowników"
+
+#: rhodecode/templates/admin/settings/settings.html:226
+msgid "Log user pull commands"
+msgstr "Logi poleceń połączenia gałęzi użytkowników"
+
+#: rhodecode/templates/admin/settings/settings.html:230
+msgid "advanced setup"
+msgstr "zaawansowane ustawienia"
+
+#: rhodecode/templates/admin/settings/settings.html:235
+msgid "Mercurial Extensions"
+msgstr "Rozszerzenia Mercurial"
+
+#: rhodecode/templates/admin/settings/settings.html:240
+msgid "largefiles extensions"
+msgstr "rozszerzenia dużych pliów"
+
+#: rhodecode/templates/admin/settings/settings.html:244
+msgid "hgsubversion extensions"
+msgstr "rozszerzenia hgsubversion"
+
+#: rhodecode/templates/admin/settings/settings.html:246
+msgid ""
+"Requires hgsubversion library installed. Allows clonning from svn remote "
+"locations"
+msgstr ""
+"Wymaga biblioteki hgsubversion zainstalowanej. Umożliwia klonowanie z "
+"zdalnych lokalizacji svn"
+
+#: rhodecode/templates/admin/settings/settings.html:256
+msgid "Repositories location"
+msgstr "Położenie repozytorium"
+
+#: rhodecode/templates/admin/settings/settings.html:261
+msgid ""
+"This a crucial application setting. If you are really sure you need to "
+"change this, you must restart application in order to make this setting "
+"take effect. Click this label to unlock."
+msgstr ""
+"To kluczowe ustawienia aplikacji. Jeśli jesteś pewny, że chcesz to "
+"zmienić, należy ponownie uruchomić aplikację w celu zaktualizowania "
+"lokalizacji. Kliknij tą etykietę, żeby odblokować."
+
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
+msgid "unlock"
+msgstr "odblokowany"
+
+#: rhodecode/templates/admin/settings/settings.html:263
+msgid ""
+"Location where repositories are stored. After changing this value a "
+"restart, and rescan is required"
+msgstr ""
+"Miejsce, w którym przechowywane są repozytoria. Po zmianie tej wartości "
+"jest wymagany restart i ponowne skanowanie"
+
+#: rhodecode/templates/admin/settings/settings.html:283
+msgid "Test Email"
+msgstr "Test e-maila"
+
+#: rhodecode/templates/admin/settings/settings.html:291
+msgid "Email to"
+msgstr "E-mail do"
+
+#: rhodecode/templates/admin/settings/settings.html:299
+msgid "Send"
+msgstr "Wyślij"
+
+#: rhodecode/templates/admin/settings/settings.html:305
+msgid "System Info and Packages"
+msgstr "Informacje Systemowe i pakiety"
+
+#: rhodecode/templates/admin/settings/settings.html:308
+msgid "show"
+msgstr "pokaż"
+
+#: rhodecode/templates/admin/users/user_add.html:5
+msgid "Add user"
+msgstr "Dodaj użytkownika"
+
+#: rhodecode/templates/admin/users/user_add.html:10
+#: rhodecode/templates/admin/users/user_edit.html:11
+msgid "Users"
+msgstr "Użytkownicy"
+
+#: rhodecode/templates/admin/users/user_add.html:12
+msgid "add new user"
+msgstr "dodaj nowego użytkownika"
+
+#: rhodecode/templates/admin/users/user_add.html:50
+msgid "Password confirmation"
+msgstr "Potwierdzenie hasła"
+
+#: rhodecode/templates/admin/users/user_edit.html:5
+msgid "Edit user"
+msgstr "Edytuj użytkownika"
+
+#: rhodecode/templates/admin/users/user_edit.html:34
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:10
+msgid "Change your avatar at"
+msgstr "Zmiana awataru na"
+
+#: rhodecode/templates/admin/users/user_edit.html:35
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:11
+msgid "Using"
+msgstr "Używa:"
+
+#: rhodecode/templates/admin/users/user_edit.html:43
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:20
+msgid "API key"
+msgstr "Klucz API"
+
+#: rhodecode/templates/admin/users/user_edit.html:63
+msgid "LDAP DN"
+msgstr "LDAP DN"
+
+#: rhodecode/templates/admin/users/user_edit.html:72
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
+msgid "New password"
+msgstr "Nowe hasło"
+
+#: rhodecode/templates/admin/users/user_edit.html:81
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
+msgid "New password confirmation"
+msgstr "Potwierdzenie nowego hasła"
+
+#: rhodecode/templates/admin/users/user_edit.html:151
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:108
+msgid "Inherit default permissions"
+msgstr "Dziedziczą uprawnienia domyślne"
+
+#: rhodecode/templates/admin/users/user_edit.html:156
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:113
+#, python-format
+msgid ""
+"Select to inherit permissions from %s settings. With this selected below "
+"options does not have any action"
+msgstr ""
+"Zaznacz, żeby dziedziczyć uprawnienia z %s ustawień. Po wybraniu tej "
+"opcji, poniżej nie ma żadnych działań"
+
+#: rhodecode/templates/admin/users/user_edit.html:162
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:119
+msgid "Create repositories"
+msgstr "Utwórz repozytorium"
+
+#: rhodecode/templates/admin/users/user_edit.html:170
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:127
+msgid "Fork repositories"
+msgstr "Rozwidlenie repozytorium"
+
+#: rhodecode/templates/admin/users/user_edit.html:190
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
+msgid "Nothing here yet"
+msgstr "Nic tu nie ma jeszcze"
+
+#: rhodecode/templates/admin/users/user_edit.html:197
+#: rhodecode/templates/admin/users/user_edit_my_account.html:60
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
+msgid "Permission"
+msgstr "Uprawnienia"
+
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
+msgid "Edit Permission"
+msgstr "Edycja Uprawnień"
+
+#: rhodecode/templates/admin/users/user_edit.html:247
+msgid "Email addresses"
+msgstr "Adresy e-mail"
+
+#: rhodecode/templates/admin/users/user_edit.html:260
+#, python-format
+msgid "Confirm to delete this email: %s"
+msgstr "Potwierdź, aby usunąć ten e-mail: %s"
+
+#: rhodecode/templates/admin/users/user_edit.html:274
+msgid "New email address"
+msgstr "Nowy adres e-mail"
+
+#: rhodecode/templates/admin/users/user_edit.html:281
+msgid "Add"
+msgstr "Dodaj"
+
+#: rhodecode/templates/admin/users/user_edit_my_account.html:5
+#: rhodecode/templates/base/base.html:124
+msgid "My account"
+msgstr "Moje konto"
+
+#: rhodecode/templates/admin/users/user_edit_my_account.html:9
+msgid "My Account"
+msgstr "Moje konto"
+
+#: rhodecode/templates/admin/users/user_edit_my_account.html:35
+msgid "My permissions"
+msgstr "Moje uprawnienia"
+
+#: rhodecode/templates/admin/users/user_edit_my_account.html:38
+#: rhodecode/templates/journal/journal.html:41
+msgid "My repos"
+msgstr "Moje repo"
+
+#: rhodecode/templates/admin/users/user_edit_my_account.html:41
+msgid "My pull requests"
+msgstr "Moje prośby połączenia gałęzi"
+
+#: rhodecode/templates/admin/users/user_edit_my_account.html:45
+msgid "Add repo"
+msgstr "Dodaj repo"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:2
+msgid "Opened by me"
+msgstr "Otwarty przez mnie"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:10
+#, python-format
+msgid "Pull request #%s opened on %s"
+msgstr "Wniosek połączenia gałęzi #%s otwarty %s"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:15
+msgid "Confirm to delete this pull request"
+msgstr "Potwierdź usunięcie połączenia gałęzi"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:26
+msgid "I participate in"
+msgstr "Biorę udział w"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:33
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:30
+#, python-format
+msgid "Pull request #%s opened by %s on %s"
+msgstr "Wniosek połączenia gałęzi #%s otwarty %s dnia %s"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
+#: rhodecode/templates/bookmarks/bookmarks.html:40
+#: rhodecode/templates/bookmarks/bookmarks_data.html:9
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
+#: rhodecode/templates/tags/tags_data.html:9
+msgid "Revision"
+msgstr "Rewizja"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
+#: rhodecode/templates/journal/journal_page_repos.html:29
+msgid "private"
+msgstr "prywatny"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
+#: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
+#, python-format
+msgid "Confirm to delete this repository: %s"
+msgstr "Potwierdź usunięcie repozytorium: %s"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
+#: rhodecode/templates/journal/journal_page_repos.html:42
+msgid "No repositories yet"
+msgstr "Nie ma jeszcze repozytoriów"
+
+#: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
+#: rhodecode/templates/journal/journal_page_repos.html:44
+msgid "create one now"
+msgstr "utwórz je teraz"
+
+#: rhodecode/templates/admin/users/users.html:5
+msgid "Users administration"
+msgstr "Administracja użytkownikami"
+
+#: rhodecode/templates/admin/users/users.html:9
+#: rhodecode/templates/base/base.html:235
+msgid "users"
+msgstr "użytkownicy"
+
+#: rhodecode/templates/admin/users/users.html:23
+msgid "ADD NEW USER"
+msgstr "DODAJ NOWEGO UŻYTKOWNIKA"
+
+#: rhodecode/templates/admin/users/users.html:77
+msgid "username"
+msgstr "nazwa użytkownika"
+
+#: rhodecode/templates/admin/users/users.html:80
+msgid "firstname"
+msgstr "imię"
+
+#: rhodecode/templates/admin/users/users.html:81
+msgid "lastname"
+msgstr "nazwisko"
+
+#: rhodecode/templates/admin/users/users.html:82
+msgid "last login"
+msgstr "ostatnio zalogowany"
+
+#: rhodecode/templates/admin/users/users.html:84
+#: rhodecode/templates/admin/users_groups/users_groups.html:34
+msgid "active"
+msgstr "aktywny"
+
+#: rhodecode/templates/admin/users/users.html:86
+#: rhodecode/templates/base/base.html:238
+msgid "ldap"
+msgstr "ldap"
+
+#: rhodecode/templates/admin/users_groups/users_group_add.html:5
+msgid "Add users group"
+msgstr "Dodaj grupę użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_add.html:10
+#: rhodecode/templates/admin/users_groups/users_groups.html:9
+msgid "Users groups"
+msgstr "Grupy użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_add.html:12
+msgid "add new users group"
+msgstr "dodaj nową grupę użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:5
+msgid "Edit users group"
+msgstr "Edytuj grupę użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:11
+msgid "UsersGroups"
+msgstr "Grupy użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:50
+msgid "Members"
+msgstr "Użytkownik"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:58
+msgid "Choosen group members"
+msgstr "Wybrane grupy użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:61
+msgid "Remove all elements"
+msgstr "Usuń wszystkie elementy"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:75
+msgid "Available members"
+msgstr "Dostępni użytkownicy"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:79
+msgid "Add all elements"
+msgstr "Dodaj wszystkie elementy"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:146
+msgid "Group members"
+msgstr "Grupy użytkowników"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+msgid "No members yet"
+msgstr "Nie ma jeszcze żadnego użytkownika"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+msgid "Permissions defined for this group"
+msgstr "Uprawnienia określone dla tej grupy"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+msgid "No permissions set yet"
+msgstr "Nie ma jeszcze ustawionych uprawnień"
+
+#: rhodecode/templates/admin/users_groups/users_groups.html:5
+msgid "Users groups administration"
+msgstr "Użytkownicy grupy administracji"
+
+#: rhodecode/templates/admin/users_groups/users_groups.html:23
+msgid "ADD NEW USER GROUP"
+msgstr "DODAJ NOWĄ GRUPĘ UŻYTKOWNIKÓW"
+
+#: rhodecode/templates/admin/users_groups/users_groups.html:32
+msgid "group name"
+msgstr "nazwa grupy"
+
+#: rhodecode/templates/admin/users_groups/users_groups.html:33
+#: rhodecode/templates/base/root.html:46
+msgid "members"
+msgstr "użytkownik"
+
+#: rhodecode/templates/admin/users_groups/users_groups.html:45
+#, python-format
+msgid "Confirm to delete this users group: %s"
+msgstr "Potwierdź usunięcie grupy użytkowników: %s"
+
+#: rhodecode/templates/base/base.html:41
+msgid "Submit a bug"
+msgstr "Prześlij błąd"
+
+#: rhodecode/templates/base/base.html:77
+msgid "Login to your account"
+msgstr "Zaloguj się do swojego konta"
+
+#: rhodecode/templates/base/base.html:100
+msgid "Forgot password ?"
+msgstr "Nie pamiętasz hasła?"
+
+#: rhodecode/templates/base/base.html:107
+msgid "Log In"
+msgstr "Zaloguj się"
+
+#: rhodecode/templates/base/base.html:118
+msgid "Inbox"
+msgstr "Odebrana poczta"
+
+#: rhodecode/templates/base/base.html:123
+#: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
+#: rhodecode/templates/journal/journal.html:4
+#: rhodecode/templates/journal/journal.html:21
+#: rhodecode/templates/journal/public_journal.html:4
+msgid "Journal"
+msgstr "Dziennik"
+
+#: rhodecode/templates/base/base.html:125
+msgid "Log Out"
+msgstr "Wyloguj się"
+
+#: rhodecode/templates/base/base.html:144
+msgid "Switch repository"
+msgstr "Przełącz repozytorium"
+
+#: rhodecode/templates/base/base.html:146
+msgid "Products"
+msgstr "Produkty"
+
+#: rhodecode/templates/base/base.html:152
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
+msgid "loading..."
+msgstr "wczytywanie..."
+
+#: rhodecode/templates/base/base.html:158
+#: rhodecode/templates/base/base.html:160
+#: rhodecode/templates/base/base.html:162
+#: rhodecode/templates/data_table/_dt_elements.html:15
+#: rhodecode/templates/data_table/_dt_elements.html:17
+#: rhodecode/templates/data_table/_dt_elements.html:19
+msgid "Summary"
+msgstr "Podsumowanie"
+
+#: rhodecode/templates/base/base.html:166
+#: rhodecode/templates/base/base.html:168
+#: rhodecode/templates/base/base.html:170
+#: rhodecode/templates/changelog/changelog.html:15
+#: rhodecode/templates/data_table/_dt_elements.html:23
+#: rhodecode/templates/data_table/_dt_elements.html:25
+#: rhodecode/templates/data_table/_dt_elements.html:27
+msgid "Changelog"
+msgstr "Dziennik zmian"
+
+#: rhodecode/templates/base/base.html:175
+#: rhodecode/templates/base/base.html:177
+#: rhodecode/templates/base/base.html:179
+msgid "Switch to"
+msgstr "Przełącz do"
+
+#: rhodecode/templates/base/base.html:186
+#: rhodecode/templates/base/base.html:188
+#: rhodecode/templates/base/base.html:190
+#: rhodecode/templates/data_table/_dt_elements.html:31
+#: rhodecode/templates/data_table/_dt_elements.html:33
+#: rhodecode/templates/data_table/_dt_elements.html:35
+msgid "Files"
+msgstr "Pliki"
+
+#: rhodecode/templates/base/base.html:195
+#: rhodecode/templates/base/base.html:199
+msgid "Options"
+msgstr "Opcje"
+
+#: rhodecode/templates/base/base.html:204
+#: rhodecode/templates/base/base.html:206
+msgid "repository settings"
+msgstr "ustawienia repozytorium"
+
+#: rhodecode/templates/base/base.html:210
+#: rhodecode/templates/data_table/_dt_elements.html:80
+#: rhodecode/templates/forks/fork.html:13
+msgid "fork"
+msgstr "gałąż"
+
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
+msgid "Open new pull request"
+msgstr "Otwórz nową prośbę o połączenie gałęzi"
+
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr "Porównaj rozwidlenie"
+
+#: rhodecode/templates/base/base.html:217
+msgid "search"
+msgstr "szukaj"
+
+#: rhodecode/templates/base/base.html:223
+msgid "lock"
+msgstr "zablokowane"
+
+#: rhodecode/templates/base/base.html:234
+msgid "repositories groups"
+msgstr "grupy w repozytorium"
+
+#: rhodecode/templates/base/base.html:236
+msgid "users groups"
+msgstr "grupy użytkowników"
+
+#: rhodecode/templates/base/base.html:237
+msgid "permissions"
+msgstr "uprawnienia"
+
+#: rhodecode/templates/base/base.html:239
+#, fuzzy
+msgid "defaults"
+msgstr "domyślne"
+
+#: rhodecode/templates/base/base.html:240
+msgid "settings"
+msgstr "ustawienia"
+
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
+msgid "Followers"
+msgstr "Obserwowane"
+
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
+msgid "Forks"
+msgstr "Gałęzie"
+
+#: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
+#: rhodecode/templates/search/search.html:52
+msgid "Search"
+msgstr "Szukaj"
+
+#: rhodecode/templates/base/root.html:42
+msgid "add another comment"
+msgstr "dodaj kolejny komentarz"
+
+#: rhodecode/templates/base/root.html:43
+#: rhodecode/templates/journal/journal.html:75
+#: rhodecode/templates/summary/summary.html:57
+msgid "Stop following this repository"
+msgstr "Zakończyć obserwację tego repozytorium"
+
+#: rhodecode/templates/base/root.html:44
+#: rhodecode/templates/summary/summary.html:61
+msgid "Start following this repository"
+msgstr "Zacznij obserwację tego repozytorium"
+
+#: rhodecode/templates/base/root.html:45
+msgid "Group"
+msgstr "Grupa"
+
+#: rhodecode/templates/base/root.html:48
+msgid "search truncated"
+msgstr "wyszukaj obcięte"
+
+#: rhodecode/templates/base/root.html:49
+msgid "no matching files"
+msgstr "nie ma plików pasujących"
+
+#: rhodecode/templates/base/root.html:51
+msgid "Open new pull request for selected changesets"
+msgstr "Otwórz nową prośbę o połączenie gałęzi w zestawieniu zmian"
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr "Pokaż wybrane zmiany __S -> __E"
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr "Wybór linku"
+
+#: rhodecode/templates/bookmarks/bookmarks.html:5
+#, python-format
+msgid "%s Bookmarks"
+msgstr "%s Zakładki"
+
+#: rhodecode/templates/bookmarks/bookmarks.html:39
+#: rhodecode/templates/bookmarks/bookmarks_data.html:8
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
+#: rhodecode/templates/tags/tags_data.html:8
+msgid "Author"
+msgstr "Autor"
+
+#: rhodecode/templates/branches/branches.html:5
+#, python-format
+msgid "%s Branches"
+msgstr "%s Gałęzie"
+
+#: rhodecode/templates/branches/branches.html:29
+msgid "Compare branches"
+msgstr "porównaj gałęzie"
+
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
+#: rhodecode/templates/compare/compare_diff.html:5
+#: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
+msgid "Compare"
+msgstr "Porównaj"
+
+#: rhodecode/templates/changelog/changelog.html:6
+#, python-format
+msgid "%s Changelog"
+msgstr "%s Dziennik zmian"
+
+#: rhodecode/templates/changelog/changelog.html:15
+#, python-format
+msgid "showing %d out of %d revision"
+msgid_plural "showing %d out of %d revisions"
+msgstr[0] "pokazano %d z rewizji %d"
+msgstr[1] "pokazano %d w rewizjach %d"
+msgstr[2] "pokazano %d w rewizjach %d"
+
+#: rhodecode/templates/changelog/changelog.html:37
+msgid "Clear selection"
+msgstr "Wyczyść zaznaczenie"
+
+#: rhodecode/templates/changelog/changelog.html:40
+#: rhodecode/templates/forks/forks_data.html:19
+#, python-format
+msgid "compare fork with %s"
+msgstr "porównaj gałęzie %s"
+
+#: rhodecode/templates/changelog/changelog.html:40
+#, fuzzy
+msgid "Compare fork with parent"
+msgstr "porównaj fork w rodzicem"
+
+#: rhodecode/templates/changelog/changelog.html:49
+msgid "Show"
+msgstr "Wyświetl"
+
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
+msgid "show more"
+msgstr "pokaż więcej"
+
+#: rhodecode/templates/changelog/changelog.html:78
+msgid "Affected number of files, click to show more details"
+msgstr "Dotyczy liczby plików, kliknij, aby zobaczyć więcej szczegółów"
+
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset_file_comment.html:20
+#: rhodecode/templates/changeset/changeset_range.html:46
+msgid "Changeset status"
+msgstr "Status grupy zmian"
+
+#: rhodecode/templates/changelog/changelog.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:20
+msgid "Click to open associated pull request"
+msgstr "Kliknij żeby otworzyć prośbę o połączenie gałęzi"
+
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
+msgid "Parent"
+msgstr "Rewizja"
+
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
+msgid "No parents"
+msgstr "Brak rewizji"
+
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
+msgid "merge"
+msgstr "połącz"
+
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
+#: rhodecode/templates/files/files.html:29
+#: rhodecode/templates/files/files_add.html:33
+#: rhodecode/templates/files/files_edit.html:33
+#: rhodecode/templates/shortlog/shortlog_data.html:9
+msgid "branch"
+msgstr "gałąź"
+
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
+msgid "bookmark"
+msgstr "zakładka"
+
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
+msgid "tag"
+msgstr "etykieta"
+
+#: rhodecode/templates/changelog/changelog.html:301
+msgid "There are no changes yet"
+msgstr "Nie ma jeszcze zmian"
+
+#: rhodecode/templates/changelog/changelog_details.html:4
+#: rhodecode/templates/changeset/changeset.html:73
+msgid "removed"
+msgstr "usunięto"
+
+#: rhodecode/templates/changelog/changelog_details.html:5
+#: rhodecode/templates/changeset/changeset.html:74
+msgid "changed"
+msgstr "zmiana"
+
+#: rhodecode/templates/changelog/changelog_details.html:6
+#: rhodecode/templates/changeset/changeset.html:75
+msgid "added"
+msgstr "dodana"
+
+#: rhodecode/templates/changelog/changelog_details.html:8
+#: rhodecode/templates/changelog/changelog_details.html:9
+#: rhodecode/templates/changelog/changelog_details.html:10
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
+#, python-format
+msgid "affected %s files"
+msgstr "zarażone pliki %s"
+
+#: rhodecode/templates/changeset/changeset.html:6
+#, python-format
+msgid "%s Changeset"
+msgstr "%s Grupy zmian"
+
+#: rhodecode/templates/changeset/changeset.html:14
+msgid "Changeset"
+msgstr "Grupy zmian"
+
+#: rhodecode/templates/changeset/changeset.html:49
+#: rhodecode/templates/changeset/diff_block.html:20
+msgid "raw diff"
+msgstr "raw różnic"
+
+#: rhodecode/templates/changeset/changeset.html:50
+msgid "patch diff"
+msgstr "poprawka różnic"
+
+#: rhodecode/templates/changeset/changeset.html:51
+#: rhodecode/templates/changeset/diff_block.html:21
+msgid "download diff"
+msgstr "pobierz różnice"
+
+#: rhodecode/templates/changeset/changeset.html:55
+#: rhodecode/templates/changeset/changeset_file_comment.html:82
+#, python-format
+msgid "%d comment"
+msgid_plural "%d comments"
+msgstr[0] "%d komentarz"
+msgstr[1] "%d komentarzy"
+msgstr[2] "%d komentarzy"
+
+#: rhodecode/templates/changeset/changeset.html:55
+#: rhodecode/templates/changeset/changeset_file_comment.html:82
+#, python-format
+msgid "(%d inline)"
+msgid_plural "(%d inline)"
+msgstr[0] "(%d linii)"
+msgstr[1] "(%d linii)"
+msgstr[2] "(%d linii)"
+
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
+#, fuzzy, python-format
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] "%s plik zmieniony"
+msgstr[1] "%s plików zmienionych"
+msgstr[2] "%s plików zmienionych"
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, fuzzy, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] "%s plik zmieniony z %s inserjcami i %s usunieciami"
+msgstr[1] "%s plików zmienionych z %s inserjcami i %s usunieciami"
+msgstr[2] "%s plików zmienionych z %s inserjcami i %s usunieciami"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:42
+msgid "Submitting..."
+msgstr "Przesyłanie..."
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:45
+msgid "Commenting on line {1}."
+msgstr "Komentując linię {1}."
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:46
+#: rhodecode/templates/changeset/changeset_file_comment.html:121
+#, python-format
+msgid "Comments parsed using %s syntax with %s support."
+msgstr "Komentarze analizowane za pomocą %s składni od %s wsparcia."
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:48
+#: rhodecode/templates/changeset/changeset_file_comment.html:123
+msgid "Use @username inside this text to send notification to this RhodeCode user"
+msgstr ""
+"Użyj @username wewnątrz tego tekstu, aby wysłać powiadomienie do "
+"użytkownika strony"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:59
+#: rhodecode/templates/changeset/changeset_file_comment.html:138
+msgid "Comment"
+msgstr "Komentarz"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:60
+#: rhodecode/templates/changeset/changeset_file_comment.html:71
+msgid "Hide"
+msgstr "Ukryj"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:67
+msgid "You need to be logged in to comment."
+msgstr "Musisz być zalogowany żeby komentarz."
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:67
+msgid "Login now"
+msgstr "Zaloguj się teraz"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:118
+msgid "Leave a comment"
+msgstr "Napisz komentarz"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:124
+msgid "Check this to change current status of code-review for this changeset"
+msgstr "Zaznacz to, aby zmienić bieżący stan code przeglądu tego zestawienia zmian"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:124
+msgid "change status"
+msgstr "zmień status"
+
+#: rhodecode/templates/changeset/changeset_file_comment.html:140
+msgid "Comment and close"
+msgstr "Skomentuj i zamknij"
+
+#: rhodecode/templates/changeset/changeset_range.html:5
+#, python-format
+msgid "%s Changesets"
+msgstr "%s Zestawienie zmian"
+
+#: rhodecode/templates/changeset/changeset_range.html:29
+#: rhodecode/templates/compare/compare_diff.html:29
+msgid "Compare View"
+msgstr "Wyświetl Porównanie"
+
+#: rhodecode/templates/changeset/changeset_range.html:29
+#, fuzzy
+msgid "Show combined compare"
+msgstr "pokaż online komentarz"
+
+#: rhodecode/templates/changeset/changeset_range.html:54
+msgid "Files affected"
+msgstr "pliki naruszone"
+
+#: rhodecode/templates/changeset/diff_block.html:19
+msgid "show full diff for this file"
+msgstr "pokaż pełną edycja tego pliku"
+
+#: rhodecode/templates/changeset/diff_block.html:27
+msgid "show inline comments"
+msgstr "pokaż online komentarz"
+
+#: rhodecode/templates/compare/compare_cs.html:5
+msgid "No changesets"
+msgstr "Brak zestawienia zmian"
+
+#: rhodecode/templates/compare/compare_diff.html:37
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, fuzzy, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] "Wyswietlane %s commit"
+msgstr[1] "Wyswietlane %s commits"
+msgstr[2] "Wyswietlane %s commits"
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
+#, fuzzy
+msgid "No files"
+msgstr "pliki"
+
+#: rhodecode/templates/data_table/_dt_elements.html:39
+#: rhodecode/templates/data_table/_dt_elements.html:41
+#: rhodecode/templates/data_table/_dt_elements.html:43
+msgid "Fork"
+msgstr "Gałąź"
+
+#: rhodecode/templates/data_table/_dt_elements.html:60
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
+msgid "Mercurial repository"
+msgstr "Repozytorium mercurial"
+
+#: rhodecode/templates/data_table/_dt_elements.html:62
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
+msgid "Git repository"
+msgstr "Repozytorium git"
+
+#: rhodecode/templates/data_table/_dt_elements.html:69
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
+msgid "public repository"
+msgstr "Publiczne repozytorium"
+
+#: rhodecode/templates/data_table/_dt_elements.html:80
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
+msgid "Fork of"
+msgstr "Gałąź z"
+
+#: rhodecode/templates/data_table/_dt_elements.html:94
+msgid "No changesets yet"
+msgstr "Nie ma jeszcze zestawienia zmian"
+
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr "Subskrybuj %s kanał rss"
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr "Subskrybuj %s kanał atom"
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
+#, python-format
+msgid "Confirm to delete this user: %s"
+msgstr "Potwierdź usunięcie tego użytkownika: %s"
+
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+#, fuzzy
+msgid "New status$"
+msgstr "zmień status"
+
+#: rhodecode/templates/email_templates/main.html:8
+#, fuzzy
+msgid "This is a notification from RhodeCode."
+msgstr "To jest powiadomienie z strony"
+
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+#, fuzzy
+msgid "title"
+msgstr "Tytuł"
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+msgid "description"
+msgstr "opis"
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+#, fuzzy
+msgid "View this pull request here"
+msgstr "Pokarz wszystkie zmiany"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, fuzzy, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr ""
+"Użytkownik %s skomentował wniosek o połączenie gałęzi #%s dla "
+"repozytorium %s"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+#, fuzzy
+msgid "New status"
+msgstr "zmień status"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+#, fuzzy
+msgid "A new user have registered in RhodeCode"
+msgstr "Udało Ci się zarejestrować na stronie"
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
+msgstr ""
+
+#: rhodecode/templates/errors/error_document.html:46
+#, python-format
+msgid "You will be redirected to %s in %s seconds"
+msgstr "Zostaniesz przekierowany do %s za %s sekund"
+
+#: rhodecode/templates/files/file_diff.html:4
+#, python-format
+msgid "%s File diff"
+msgstr "%s Pliki różnic"
+
+#: rhodecode/templates/files/file_diff.html:12
+msgid "File diff"
+msgstr "Pliki różnic"
+
+#: rhodecode/templates/files/files.html:4
+#: rhodecode/templates/files/files.html:74
+#, python-format
+msgid "%s files"
+msgstr "Pliki %s"
+
+#: rhodecode/templates/files/files.html:12
+#: rhodecode/templates/summary/summary.html:351
+msgid "files"
+msgstr "pliki"
+
+#: rhodecode/templates/files/files_add.html:4
+#: rhodecode/templates/files/files_edit.html:4
+#, python-format
+msgid "%s Edit file"
+msgstr "Edytuj plik %s"
+
+#: rhodecode/templates/files/files_add.html:19
+msgid "add file"
+msgstr "dodaj plik"
+
+#: rhodecode/templates/files/files_add.html:40
+msgid "Add new file"
+msgstr "Dodaj nowy plik"
+
+#: rhodecode/templates/files/files_add.html:45
+msgid "File Name"
+msgstr "Nazwa Pliku"
+
+#: rhodecode/templates/files/files_add.html:49
+#: rhodecode/templates/files/files_add.html:58
+msgid "or"
+msgstr "lub"
+
+#: rhodecode/templates/files/files_add.html:49
+#: rhodecode/templates/files/files_add.html:54
+msgid "Upload file"
+msgstr "Dodaj plik"
+
+#: rhodecode/templates/files/files_add.html:58
+msgid "Create new file"
+msgstr "Utwórz nowy plik"
+
+#: rhodecode/templates/files/files_add.html:63
+#: rhodecode/templates/files/files_edit.html:39
+#: rhodecode/templates/files/files_ypjax.html:3
+msgid "Location"
+msgstr "Położenie"
+
+#: rhodecode/templates/files/files_add.html:67
+msgid "use / to separate directories"
+msgstr "Użyj / do oddzielenia katalogów"
+
+#: rhodecode/templates/files/files_add.html:77
+#: rhodecode/templates/files/files_edit.html:63
+#: rhodecode/templates/shortlog/shortlog_data.html:6
+msgid "commit message"
+msgstr "komentarz"
+
+#: rhodecode/templates/files/files_add.html:81
+#: rhodecode/templates/files/files_edit.html:67
+msgid "Commit changes"
+msgstr "Zatwierdź zmiany"
+
+#: rhodecode/templates/files/files_browser.html:13
+msgid "view"
+msgstr "widok"
+
+#: rhodecode/templates/files/files_browser.html:14
+msgid "previous revision"
+msgstr "poprzednia wersja"
+
+#: rhodecode/templates/files/files_browser.html:16
+msgid "next revision"
+msgstr "następna wersja"
+
+#: rhodecode/templates/files/files_browser.html:23
+msgid "follow current branch"
+msgstr "śledź mierzącą gałąź"
+
+#: rhodecode/templates/files/files_browser.html:27
+msgid "search file list"
+msgstr "lista szukanych plików"
+
+#: rhodecode/templates/files/files_browser.html:31
+#: rhodecode/templates/shortlog/shortlog_data.html:78
+msgid "add new file"
+msgstr "dodaj nowy plik"
+
+#: rhodecode/templates/files/files_browser.html:35
+msgid "Loading file list..."
+msgstr "Wczytywanie listy plików..."
+
+#: rhodecode/templates/files/files_browser.html:48
+msgid "Size"
+msgstr "Rozmiar"
+
+#: rhodecode/templates/files/files_browser.html:49
+msgid "Mimetype"
+msgstr "Typ MIME"
+
+#: rhodecode/templates/files/files_browser.html:50
+msgid "Last Revision"
+msgstr "Rewizja"
+
+#: rhodecode/templates/files/files_browser.html:51
+msgid "Last modified"
+msgstr "Ostatnio modyfikowany"
+
+#: rhodecode/templates/files/files_browser.html:52
+msgid "Last commiter"
+msgstr "Autor"
+
+#: rhodecode/templates/files/files_edit.html:19
+msgid "edit file"
+msgstr "edytuj plik"
+
+#: rhodecode/templates/files/files_edit.html:49
+#: rhodecode/templates/files/files_source.html:23
+msgid "show annotation"
+msgstr "pokaż adnotacje"
+
+#: rhodecode/templates/files/files_edit.html:50
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
+msgid "show as raw"
+msgstr "wyświetl jako raw"
+
+#: rhodecode/templates/files/files_edit.html:51
+#: rhodecode/templates/files/files_source.html:26
+msgid "download as raw"
+msgstr "Pobierz jako raw"
+
+#: rhodecode/templates/files/files_edit.html:54
+msgid "source"
+msgstr "źródło"
+
+#: rhodecode/templates/files/files_edit.html:59
+msgid "Editing file"
+msgstr "Edycja pliku"
+
+#: rhodecode/templates/files/files_history_box.html:2
+msgid "History"
+msgstr "Historia"
+
+#: rhodecode/templates/files/files_history_box.html:9
+msgid "diff to revision"
+msgstr "różnice do rewizji"
+
+#: rhodecode/templates/files/files_history_box.html:10
+msgid "show at revision"
+msgstr "wskaż zmiany"
+
+#: rhodecode/templates/files/files_history_box.html:11
+#, fuzzy
+msgid "show full history"
+msgstr "Wczytywanie listy plików..."
+
+#: rhodecode/templates/files/files_history_box.html:16
+#, python-format
+msgid "%s author"
+msgid_plural "%s authors"
+msgstr[0] "%s autor"
+msgstr[1] "%s autorzy"
+msgstr[2] "%s autorzy"
+
+#: rhodecode/templates/files/files_source.html:6
+#, fuzzy
+msgid "Load file history"
+msgstr "Wczytywanie listy plików..."
+
+#: rhodecode/templates/files/files_source.html:21
+msgid "show source"
+msgstr "pokaż źródło"
+
+#: rhodecode/templates/files/files_source.html:44
+#, python-format
+msgid "Binary file (%s)"
+msgstr "Plik binarny (%s)"
+
+#: rhodecode/templates/files/files_source.html:53
+msgid "File is too big to display"
+msgstr "Plik jest za duży do wyświetlenia"
+
+#: rhodecode/templates/files/files_ypjax.html:5
+msgid "annotation"
+msgstr "adnotacja"
+
+#: rhodecode/templates/files/files_ypjax.html:15
+msgid "Go back"
+msgstr "Idź wstecz"
+
+#: rhodecode/templates/files/files_ypjax.html:16
+msgid "No files at given path"
+msgstr "Brak plików w danej ścieżce"
+
+#: rhodecode/templates/followers/followers.html:5
+#, python-format
+msgid "%s Followers"
+msgstr "Obserwatorzy %s"
+
+#: rhodecode/templates/followers/followers.html:13
+msgid "followers"
+msgstr "obserwatorzy"
+
+#: rhodecode/templates/followers/followers_data.html:12
+msgid "Started following -"
+msgstr "Rozpoczęto obserwację -"
+
+#: rhodecode/templates/forks/fork.html:5
+#, python-format
+msgid "%s Fork"
+msgstr "Gałęzi %s"
+
+#: rhodecode/templates/forks/fork.html:31
+msgid "Fork name"
+msgstr "Nazwa rozgałęzienia"
+
+#: rhodecode/templates/forks/fork.html:68
+msgid "Private"
+msgstr "Prywatny"
+
+#: rhodecode/templates/forks/fork.html:77
+msgid "Copy permissions"
+msgstr "Skopiuj uprawnienia"
+
+#: rhodecode/templates/forks/fork.html:81
+msgid "Copy permissions from forked repository"
+msgstr "Skopiuj zezwolenia z rozwidlenia repozytorium"
+
+#: rhodecode/templates/forks/fork.html:86
+msgid "Update after clone"
+msgstr "Aktualizuj po klonowaniu"
+
+#: rhodecode/templates/forks/fork.html:90
+msgid "Checkout source after making a clone"
+msgstr "Sprawdź źródło po wykonaniu klonowania"
+
+#: rhodecode/templates/forks/fork.html:94
+msgid "fork this repository"
+msgstr "gałąź tego repozytorium"
+
+#: rhodecode/templates/forks/forks.html:5
+#, python-format
+msgid "%s Forks"
+msgstr "Gałęzi %s"
+
+#: rhodecode/templates/forks/forks.html:13
+msgid "forks"
+msgstr "gałąź"
+
+#: rhodecode/templates/forks/forks_data.html:17
+msgid "forked"
+msgstr "rozgałęziony"
+
+#: rhodecode/templates/forks/forks_data.html:42
+msgid "There are no forks yet"
+msgstr "Nie ma jeszcze gałęzi"
+
+#: rhodecode/templates/journal/journal.html:13
+msgid "ATOM journal feed"
+msgstr "Dziennik kanału ATOM"
+
+#: rhodecode/templates/journal/journal.html:14
+msgid "RSS journal feed"
+msgstr "Dziennik kanału RSS"
+
+#: rhodecode/templates/journal/journal.html:24
+#: rhodecode/templates/pullrequests/pullrequest.html:55
+msgid "Refresh"
+msgstr "Odśwież"
+
+#: rhodecode/templates/journal/journal.html:27
+#: rhodecode/templates/journal/public_journal.html:24
+msgid "RSS feed"
+msgstr "Kanał RSS"
+
+#: rhodecode/templates/journal/journal.html:30
+#: rhodecode/templates/journal/public_journal.html:27
+msgid "ATOM feed"
+msgstr "Kanał ATOM"
+
+#: rhodecode/templates/journal/journal.html:41
+msgid "Watched"
+msgstr "Obserwowane"
+
+#: rhodecode/templates/journal/journal.html:46
+msgid "ADD"
+msgstr "DODAJ"
+
+#: rhodecode/templates/journal/journal.html:69
+msgid "following user"
+msgstr "następujący użytkownik"
+
+#: rhodecode/templates/journal/journal.html:69
+msgid "user"
+msgstr "użytkownik"
+
+#: rhodecode/templates/journal/journal.html:102
+msgid "You are not following any users or repositories"
+msgstr "Nie obserwujesz żadnych użytkowników lub repozytoriów"
+
+#: rhodecode/templates/journal/journal_data.html:51
+msgid "No entries yet"
+msgstr "Brak wpisów jeszcze"
+
+#: rhodecode/templates/journal/public_journal.html:13
+msgid "ATOM public journal feed"
+msgstr "Publiczny dziennik kanału ATOM"
+
+#: rhodecode/templates/journal/public_journal.html:14
+msgid "RSS public journal feed"
+msgstr "Publiczny dziennik kanału RSS"
+
+#: rhodecode/templates/journal/public_journal.html:21
+msgid "Public Journal"
+msgstr "Dziennik Publiczny"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:4
+#: rhodecode/templates/pullrequests/pullrequest.html:12
+msgid "New pull request"
+msgstr "Nowa prośba o połączenie gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:54
+msgid "refresh overview"
+msgstr "odśwież informacje"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:66
+msgid "Detailed compare view"
+msgstr "Szczegółowe porównanie widoku"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:70
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
+msgid "Pull request reviewers"
+msgstr "Recenzje wniosków połączenia gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:79
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
+msgid "owner"
+msgstr "właściciel"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:91
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
+msgid "Add reviewer to this pull request."
+msgstr "Pokarz wszystkie zmiany"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:97
+msgid "Create new pull request"
+msgstr "Stwórz nowe żądanie połączenia gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:106
+#: rhodecode/templates/pullrequests/pullrequest_show.html:25
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:33
+msgid "Title"
+msgstr "Tytuł"
+
+#: rhodecode/templates/pullrequests/pullrequest.html:123
+msgid "Send pull request"
+msgstr "Wyślij prośbę o połączenie gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "Closed %s"
+msgstr "Zamknięty %s"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "with status %s"
+msgstr "stanu z %s"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:31
+msgid "Status"
+msgstr "Status"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:36
+msgid "Pull request status"
+msgstr "Żądanie statusu połączenia gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:44
+msgid "Still not reviewed by"
+msgstr "Nie ma jeszcze recenzenta"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:48
+#, python-format
+msgid "%d reviewer"
+msgid_plural "%d reviewers"
+msgstr[0] "%d recenzent"
+msgstr[1] "%d recenzenci"
+msgstr[2] "%d recenzentów"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:50
+msgid "pull request was reviewed by all reviewers"
+msgstr "połączenie gałęzi zostało zweryfikowane przez wszystkich recenzentów"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:58
+msgid "Created on"
+msgstr "Utworzono"
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:65
+msgid "Compare view"
+msgstr "Wyświetl porównanie"
+
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
+msgid "all pull requests"
+msgstr "wszystkie prośby połączenia gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:12
+msgid "All pull requests"
+msgstr "Wszystkie prośby połączenia gałęzi"
+
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:27
+msgid "Closed"
+msgstr "Zamknięte"
+
+#: rhodecode/templates/search/search.html:6
+#, python-format
+msgid "Search \"%s\" in repository: %s"
+msgstr "Wyszukiwanie \"%s\" w repozytorium: %s"
+
+#: rhodecode/templates/search/search.html:8
+#, python-format
+msgid "Search \"%s\" in all repositories"
+msgstr "Wyszukiwanie \"%s\" w wszystkich repozytoriach"
+
+#: rhodecode/templates/search/search.html:12
+#: rhodecode/templates/search/search.html:32
+#, python-format
+msgid "Search in repository: %s"
+msgstr "Szukaj w repozytorium: %s"
+
+#: rhodecode/templates/search/search.html:14
+#: rhodecode/templates/search/search.html:34
+msgid "Search in all repositories"
+msgstr "Szukaj we wszystkich repozytoriach"
+
+#: rhodecode/templates/search/search.html:48
+msgid "Search term"
+msgstr "Szukana fraza"
+
+#: rhodecode/templates/search/search.html:60
+msgid "Search in"
+msgstr "Szukaj w"
+
+#: rhodecode/templates/search/search.html:63
+msgid "File contents"
+msgstr "Zawartość pliku"
+
+#: rhodecode/templates/search/search.html:64
+msgid "Commit messages"
+msgstr "Komunikaty"
+
+#: rhodecode/templates/search/search.html:65
+msgid "File names"
+msgstr "Nazwy plików"
+
+#: rhodecode/templates/search/search_commit.html:35
+#: rhodecode/templates/search/search_content.html:21
+#: rhodecode/templates/search/search_path.html:15
+msgid "Permission denied"
+msgstr "Brak uprawnień"
+
+#: rhodecode/templates/settings/repo_settings.html:5
+#, python-format
+msgid "%s Settings"
+msgstr "Ustawienia %s"
+
+#: rhodecode/templates/shortlog/shortlog.html:5
+#, python-format
+msgid "%s Shortlog"
+msgstr "%s Lista zmian"
+
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
+msgid "shortlog"
+msgstr "lista zmian"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr "rewizja"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:7
+msgid "age"
+msgstr "ostatnia zmiana"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr "autor"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
+msgid "Add or upload files directly via RhodeCode"
+msgstr "Dodaj lub prześlij pliki bezpośrednio przez stronę"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:84
+msgid "Push new repo"
+msgstr "Wyślij zmiany do nowego repo"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:92
+msgid "Existing repository?"
+msgstr "Istniejące repozytorium?"
+
+#: rhodecode/templates/summary/summary.html:4
+#, python-format
+msgid "%s Summary"
+msgstr "Podsumowanie %s"
+
+#: rhodecode/templates/summary/summary.html:12
+msgid "summary"
+msgstr "Podsumowanie"
+
+#: rhodecode/templates/summary/summary.html:20
+#, python-format
+msgid "repo %s ATOM feed"
+msgstr "repo %s kanał ATOM"
+
+#: rhodecode/templates/summary/summary.html:21
+#, python-format
+msgid "repo %s RSS feed"
+msgstr "repo %s kanał RSS"
+
+#: rhodecode/templates/summary/summary.html:49
+#: rhodecode/templates/summary/summary.html:52
+msgid "ATOM"
+msgstr "ATOM"
+
+#: rhodecode/templates/summary/summary.html:70
+#, python-format
+msgid "Repository locked by %s"
+msgstr "Repozytorium zablokowane przez %s"
+
+#: rhodecode/templates/summary/summary.html:72
+msgid "Repository unlocked"
+msgstr "Repozytorium odblokowane"
+
+#: rhodecode/templates/summary/summary.html:91
+#, python-format
+msgid "Non changable ID %s"
+msgstr "Brak ID pełnej zmiany %s"
+
+#: rhodecode/templates/summary/summary.html:96
+msgid "public"
+msgstr "publiczny"
+
+#: rhodecode/templates/summary/summary.html:104
+msgid "remote clone"
+msgstr "zdalne klonowanie"
+
+#: rhodecode/templates/summary/summary.html:125
+msgid "Contact"
+msgstr "Kontakt"
+
+#: rhodecode/templates/summary/summary.html:139
+msgid "Clone url"
+msgstr "Url klonowania"
+
+#: rhodecode/templates/summary/summary.html:142
+msgid "Show by Name"
+msgstr "Pokaż nazwę"
+
+#: rhodecode/templates/summary/summary.html:143
+msgid "Show by ID"
+msgstr "Pokaż ID"
+
+#: rhodecode/templates/summary/summary.html:151
+msgid "Trending files"
+msgstr "Statystyki"
+
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
+msgid "enable"
+msgstr "włącz"
+
+#: rhodecode/templates/summary/summary.html:167
+msgid "Download"
+msgstr "Pobierz"
+
+#: rhodecode/templates/summary/summary.html:171
+msgid "There are no downloads yet"
+msgstr "Nie pobrano jeszcze plików"
+
+#: rhodecode/templates/summary/summary.html:173
+msgid "Downloads are disabled for this repository"
+msgstr "Pliki do pobrania są zostały wyłączone dla tego repozytorium"
+
+#: rhodecode/templates/summary/summary.html:179
+msgid "Download as zip"
+msgstr "Pobierz jako zip"
+
+#: rhodecode/templates/summary/summary.html:182
+msgid "Check this to download archive with subrepos"
+msgstr "Zaznacz tu żeby pobrać archiwum z subrepozytorium"
+
+#: rhodecode/templates/summary/summary.html:182
+msgid "with subrepos"
+msgstr "z subrepozytorium"
+
+#: rhodecode/templates/summary/summary.html:195
+msgid "Commit activity by day / author"
+msgstr "komunikaty aktywne w ciągu dnia / autor"
+
+#: rhodecode/templates/summary/summary.html:206
+msgid "Stats gathered: "
+msgstr "Statystyki zebrane: "
+
+#: rhodecode/templates/summary/summary.html:227
+msgid "Shortlog"
+msgstr "Lista zmian"
+
+#: rhodecode/templates/summary/summary.html:229
+msgid "Quick start"
+msgstr "Szybki start"
+
+#: rhodecode/templates/summary/summary.html:243
+#, python-format
+msgid "Readme file at revision '%s'"
+msgstr "Plik readme w rewizji '%s'"
+
+#: rhodecode/templates/summary/summary.html:246
+msgid "Permalink to this readme"
+msgstr "Link do tego readme"
+
+#: rhodecode/templates/summary/summary.html:304
+#, python-format
+msgid "Download %s as %s"
+msgstr "Pobierz %s jak %s"
+
+#: rhodecode/templates/summary/summary.html:661
+msgid "commits"
+msgstr "komunikaty"
+
+#: rhodecode/templates/summary/summary.html:662
+msgid "files added"
+msgstr "pliki dodane"
+
+#: rhodecode/templates/summary/summary.html:663
+msgid "files changed"
+msgstr "pliki zmienione"
+
+#: rhodecode/templates/summary/summary.html:664
+msgid "files removed"
+msgstr "pliki usunięte"
+
+#: rhodecode/templates/summary/summary.html:667
+msgid "commit"
+msgstr "komunikaty"
+
+#: rhodecode/templates/summary/summary.html:668
+msgid "file added"
+msgstr "plik dodany"
+
+#: rhodecode/templates/summary/summary.html:669
+msgid "file changed"
+msgstr "plik zmieniony"
+
+#: rhodecode/templates/summary/summary.html:670
+msgid "file removed"
+msgstr "plik usunięty"
+
+#: rhodecode/templates/tags/tags.html:5
+#, python-format
+msgid "%s Tags"
+msgstr "Etykiety pliku %s"
+
+#: rhodecode/templates/tags/tags.html:29
+#, fuzzy
+msgid "Compare tags"
+msgstr "porównanie"
+
Binary file rhodecode/i18n/pt_BR/LC_MESSAGES/rhodecode.mo has changed
--- a/rhodecode/i18n/pt_BR/LC_MESSAGES/rhodecode.po	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/pt_BR/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: RhodeCode 1.2.0\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-09-02 20:30+0200\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
 "PO-Revision-Date: 2012-05-22 16:47-0300\n"
 "Last-Translator: Augusto Herrmann <augusto.herrmann@gmail.com>\n"
 "Language-Team: pt_BR <LL@li.org>\n"
@@ -17,35 +17,38 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.6\n"
 
-#: rhodecode/controllers/changelog.py:94
+#: rhodecode/controllers/changelog.py:95
 msgid "All Branches"
 msgstr "Todos os Ramos"
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr "mostrar espaços em branco"
 
-#: rhodecode/controllers/changeset.py:90 rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr "ignorar espaços em branco"
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, python-format
 msgid "%s line context"
 msgstr "contexto de %s linhas"
 
-#: rhodecode/controllers/changeset.py:333
-#: rhodecode/controllers/changeset.py:348 rhodecode/lib/diffs.py:70
-msgid "binary file"
-msgstr "arquivo binário"
-
-#: rhodecode/controllers/changeset.py:408
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
+#, fuzzy, python-format
+msgid "Status change -> %s"
+msgstr "Última alteração"
+
+#: rhodecode/controllers/changeset.py:346
 msgid ""
 "Changing status on a changeset associated witha closed pull request is "
 "not allowed"
 msgstr ""
 
-#: rhodecode/controllers/compare.py:69
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 #, fuzzy
 msgid "There are no changesets yet"
 msgstr "Ainda não há alteações"
@@ -80,101 +83,111 @@
 "O servidor encontrou uma condição inesperada que o impediu de satisfazer "
 "a requisição"
 
-#: rhodecode/controllers/feed.py:49
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
 msgstr "Alterações no repositório %s"
 
-#: rhodecode/controllers/feed.py:50
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
 msgstr "%s - feed %s"
 
-#: rhodecode/controllers/feed.py:75
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
+msgid "Changeset was too big and was cut off..."
+msgstr "Conjunto de mudanças era grande demais e foi cortado..."
+
+#: rhodecode/controllers/feed.py:92
 #, fuzzy
 msgid "commited on"
 msgstr "commit"
 
-#: rhodecode/controllers/files.py:84
+#: rhodecode/controllers/files.py:86
 #, fuzzy
 msgid "click here to add new file"
 msgstr "adicionar novo arquivo"
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, python-format
 msgid "There are no files yet %s"
 msgstr "Ainda não há arquivos %s"
 
-#: rhodecode/controllers/files.py:239 rhodecode/controllers/files.py:299
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:266
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
 msgstr "Editado %s via RhodeCode"
 
-#: rhodecode/controllers/files.py:271
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr "Sem alterações"
 
-#: rhodecode/controllers/files.py:282 rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
 msgstr "Commit realizado com sucesso para %s"
 
-#: rhodecode/controllers/files.py:287 rhodecode/controllers/files.py:352
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr "Ocorreu um erro ao realizar commit"
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, python-format
 msgid "Added %s via RhodeCode"
 msgstr "Adicionado %s via RhodeCode"
 
-#: rhodecode/controllers/files.py:332
+#: rhodecode/controllers/files.py:358
 msgid "No content"
 msgstr "Nenhum conteúdo"
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 msgid "No filename"
 msgstr "Nenhum nomes de arquivo"
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr "downloads desabilitados"
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
 msgstr "Revisão desconhecida %s"
 
-#: rhodecode/controllers/files.py:391
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr "Repositório vazio"
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr "Arquivo de tipo desconhecido"
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr "Conjuntos de mudanças"
 
-#: rhodecode/controllers/files.py:495 rhodecode/controllers/pullrequests.py:72
-#: rhodecode/controllers/summary.py:232 rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr "Ramos"
 
-#: rhodecode/controllers/files.py:496 rhodecode/controllers/pullrequests.py:76
-#: rhodecode/controllers/summary.py:233 rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr "Etiquetas"
 
-#: rhodecode/controllers/forks.py:73 rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -185,7 +198,7 @@
 "renomeado a partir do sistema de arquivos. Por favor execute a aplicação "
 "outra vez para varrer novamente por repositórios"
 
-#: rhodecode/controllers/forks.py:133 rhodecode/controllers/settings.py:72
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -196,23 +209,23 @@
 "renomeado a partir do sistema de arquivos. Por favor execute a aplicação "
 "outra vez para varrer novamente por repositórios"
 
-#: rhodecode/controllers/forks.py:167
+#: rhodecode/controllers/forks.py:168
 #, python-format
 msgid "forked %s repository as %s"
 msgstr "bifurcado repositório %s como %s"
 
-#: rhodecode/controllers/forks.py:181
+#: rhodecode/controllers/forks.py:182
 #, python-format
 msgid "An error occurred during repository forking %s"
 msgstr "Ocorreu um erro ao bifurcar o repositório %s"
 
-#: rhodecode/controllers/journal.py:202 rhodecode/controllers/journal.py:239
+#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
 #, fuzzy
 msgid "public journal"
 msgstr "Diário público"
 
-#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
-#: rhodecode/templates/base/base.html:220
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr "diário"
 
@@ -232,60 +245,60 @@
 "Sua reinicialização de senha foi bem sucedida, sua senha foi enviada ao "
 "seu e-mail"
 
-#: rhodecode/controllers/pullrequests.py:74 rhodecode/model/scm.py:549
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr "Marcadores"
 
-#: rhodecode/controllers/pullrequests.py:158
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:160
+#: rhodecode/controllers/pullrequests.py:188
 #, fuzzy
 msgid "error during creation of pull request"
 msgstr "ocorreu um erro ao criar o usuário %s"
 
-#: rhodecode/controllers/pullrequests.py:181
+#: rhodecode/controllers/pullrequests.py:220
 #, fuzzy
 msgid "Successfully opened new pull request"
 msgstr "usuário excluído com sucesso"
 
-#: rhodecode/controllers/pullrequests.py:184
+#: rhodecode/controllers/pullrequests.py:223
 #, fuzzy
 msgid "Error occurred during sending pull request"
 msgstr "ocorreu um erro ao criar o repositório %s"
 
-#: rhodecode/controllers/pullrequests.py:217
+#: rhodecode/controllers/pullrequests.py:256
 #, fuzzy
 msgid "Successfully deleted pull request"
 msgstr "usuário excluído com sucesso"
 
-#: rhodecode/controllers/search.py:131
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr "Consulta de busca inválida. Tente usar aspas."
 
-#: rhodecode/controllers/search.py:136
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
 msgstr "Não há índice onde pesquisa. Por favor execute o indexador whoosh"
 
-#: rhodecode/controllers/search.py:140
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr "Ocorreu um erro durante essa operação de busca"
 
-#: rhodecode/controllers/settings.py:107
-#: rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/settings.py:108
+#: rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
 msgstr "Repositório %s atualizado com sucesso"
 
-#: rhodecode/controllers/settings.py:125
-#: rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/settings.py:126
+#: rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
 msgstr "ocorreu um erro ao atualizar o repositório %s"
 
-#: rhodecode/controllers/settings.py:143
-#: rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/settings.py:144
+#: rhodecode/controllers/admin/repos.py:304
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was moved or renamed  from "
@@ -296,28 +309,59 @@
 "renomeado a partir do sistema de arquivos. Por favor execute a aplicação "
 "outra vez para varrer novamente por repositórios"
 
-#: rhodecode/controllers/settings.py:155
-#: rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/settings.py:156
+#: rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
 msgstr "excluído o repositório %s"
 
-#: rhodecode/controllers/settings.py:159
-#: rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/settings.py:160
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
 msgstr "Ocorreu um erro durante a exclusão de %s"
 
-#: rhodecode/controllers/summary.py:138
+#: rhodecode/controllers/settings.py:179
+#, fuzzy
+msgid "unlocked"
+msgstr "destravar"
+
+#: rhodecode/controllers/settings.py:182
+#, fuzzy
+msgid "locked"
+msgstr "destravar"
+
+#: rhodecode/controllers/settings.py:184
+#, fuzzy, python-format
+msgid "Repository has been %s"
+msgstr "bifurcado repositório %s como %s"
+
+#: rhodecode/controllers/settings.py:188
+#: rhodecode/controllers/admin/repos.py:424
+#, fuzzy
+msgid "An error occurred during unlocking"
+msgstr "Ocorreu um erro durante essa operação"
+
+#: rhodecode/controllers/summary.py:140
 msgid "No data loaded yet"
 msgstr "Ainda não há dados carregados"
 
-#: rhodecode/controllers/summary.py:142
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/controllers/summary.py:144
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr "As estatísticas estão desabillitadas para este repositório"
 
+#: rhodecode/controllers/admin/defaults.py:96
+#, fuzzy
+msgid "Default settings updated successfully"
+msgstr "Configurações de LDAP atualizadas com sucesso"
+
+#: rhodecode/controllers/admin/defaults.py:110
+#, fuzzy
+msgid "error occurred during update of defaults"
+msgstr "ocorreu um erro ao atualizar o usuário %s"
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr "BASE"
@@ -375,18 +419,23 @@
 msgstr "ocorreu um erro ao atualizar as configurações de LDAP"
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr "Nenhum"
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr "Ler"
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr "Gravar"
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -399,233 +448,228 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
 #: rhodecode/templates/base/base.html:197
-#: rhodecode/templates/base/base.html:337
-#: rhodecode/templates/base/base.html:339
-#: rhodecode/templates/base/base.html:341
+#: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr "Administrador"
 
-#: rhodecode/controllers/admin/permissions.py:65
+#: rhodecode/controllers/admin/permissions.py:69
 msgid "disabled"
 msgstr "desabilitado"
 
-#: rhodecode/controllers/admin/permissions.py:67
-msgid "allowed with manual account activation"
-msgstr "permitido com ativação manual de conta"
-
-#: rhodecode/controllers/admin/permissions.py:69
-msgid "allowed with automatic account activation"
-msgstr "permitido com ativação automática de conta"
-
 #: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+msgid "allowed with manual account activation"
+msgstr "permitido com ativação manual de conta"
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr "permitido com ativação automática de conta"
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr "Desabilitado"
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr "Habilitado"
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr "Permissões padrões atualizadas com sucesso"
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr "ocorreu um erro ao atualizar as permissões"
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
 msgstr "--REMOVER BIFURCAÇÂO--"
 
-#: rhodecode/controllers/admin/repos.py:192
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
 msgstr "repositório %s criado a partir de %s"
 
-#: rhodecode/controllers/admin/repos.py:196
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
 msgstr "repositório %s criado"
 
-#: rhodecode/controllers/admin/repos.py:227
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
 msgstr "ocorreu um erro ao criar o repositório %s"
 
-#: rhodecode/controllers/admin/repos.py:319
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
 msgstr "Nao é possível excluir %s pois ele ainda contém bifurcações vinculadas"
 
-#: rhodecode/controllers/admin/repos.py:348
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr "Ocorreu um erro ao excluir usuário de repositório"
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
 msgstr "Ocorreu um erro ao excluir grupo de usuário de repositório"
 
-#: rhodecode/controllers/admin/repos.py:385
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr "Ocorreu um erro ao excluir estatísticas de repositório"
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr "Ocorreu um erro ao invalidar o cache"
 
-#: rhodecode/controllers/admin/repos.py:422
-#, fuzzy
-msgid "An error occurred during unlocking"
-msgstr "Ocorreu um erro durante essa operação"
-
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr "Atualizada a visibilidade do repositório no diário público"
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
 msgstr "Ocorreu um erro ao ajustar esse repositório no diário público"
 
-#: rhodecode/controllers/admin/repos.py:451 rhodecode/model/validators.py:299
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr "Descompasso de Token"
 
-#: rhodecode/controllers/admin/repos.py:464
-msgid "Pulled from remote location"
-msgstr "Realizado pull de localização remota"
-
 #: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr "Realizado pull de localização remota"
+
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr "Ocorreu um erro ao realizar pull de localização remota"
 
-#: rhodecode/controllers/admin/repos.py:482
+#: rhodecode/controllers/admin/repos.py:484
 msgid "Nothing"
 msgstr "Nada"
 
-#: rhodecode/controllers/admin/repos.py:484
+#: rhodecode/controllers/admin/repos.py:486
 #, python-format
 msgid "Marked repo %s as fork of %s"
 msgstr "Marcado repositório %s como bifurcação de %s"
 
-#: rhodecode/controllers/admin/repos.py:488
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr "Ocorreu um erro durante essa operação"
 
-#: rhodecode/controllers/admin/repos_groups.py:116
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
 msgstr "criado grupo de repositórios %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:129
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
 msgstr "ccorreu um erro ao criar grupo de repositório %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:163
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
 msgstr "atualizado grupo de repositórios %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:176
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
 msgstr "ocorreu um erro ao atualizar grupo de repositórios %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:194
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
 msgstr "Esse grupo contém %s repositórios e não pode ser excluído"
 
-#: rhodecode/controllers/admin/repos_groups.py:202
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
 msgstr "removido grupo de repositórios %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:208
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr "Nao é possível excluir este grupo pois ele ainda contém subgrupos"
 
-#: rhodecode/controllers/admin/repos_groups.py:213
-#: rhodecode/controllers/admin/repos_groups.py:218
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
 msgstr "ccorreu um erro ao excluir grupo de repositórios %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:238
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
 msgstr "Ocorreu um erro ao excluir o usuário de grupo"
 
-#: rhodecode/controllers/admin/repos_groups.py:258
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
 msgstr "Ocorreu um erro ao excluir o grupo do grupo de usuários"
 
-#: rhodecode/controllers/admin/settings.py:121
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
 msgstr "Repositórios varridos com sucesso adicionados: %s, removidos: %s"
 
-#: rhodecode/controllers/admin/settings.py:129
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
 msgstr "Tarefa de reindexação do whoosh agendada"
 
-#: rhodecode/controllers/admin/settings.py:160
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr "Configurações da aplicação atualizadas"
 
-#: rhodecode/controllers/admin/settings.py:164
-#: rhodecode/controllers/admin/settings.py:275
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr "ocorreu um erro ao atualizar as configurações da aplicação"
 
-#: rhodecode/controllers/admin/settings.py:200
+#: rhodecode/controllers/admin/settings.py:207
 #, fuzzy
 msgid "Updated visualisation settings"
 msgstr "Configurações da aplicação atualizadas"
 
-#: rhodecode/controllers/admin/settings.py:205
+#: rhodecode/controllers/admin/settings.py:212
 #, fuzzy
 msgid "error occurred during updating visualisation settings"
 msgstr "ocorreu um erro ao atualizar as configurações da aplicação"
 
-#: rhodecode/controllers/admin/settings.py:271
+#: rhodecode/controllers/admin/settings.py:295
 #, fuzzy
 msgid "Updated VCS settings"
 msgstr "Atualizadas as configurações do mercurial"
 
-#: rhodecode/controllers/admin/settings.py:285
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr "Adicionado novo gancho"
 
-#: rhodecode/controllers/admin/settings.py:297
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr "Atualizados os ganchos"
 
-#: rhodecode/controllers/admin/settings.py:301
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr "ocorreu um erro ao criar gancho"
 
-#: rhodecode/controllers/admin/settings.py:320
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr "Tarefa de e-mail criada"
 
-#: rhodecode/controllers/admin/settings.py:375
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
 msgstr "Você não pode editar esse usuário pois ele é crucial para toda a aplicação"
 
-#: rhodecode/controllers/admin/settings.py:406
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr "Sua conta foi atualizada com sucesso"
 
-#: rhodecode/controllers/admin/settings.py:421
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
 msgstr "ocorreu um erro ao atualizar o usuário %s"
@@ -640,105 +684,105 @@
 msgid "error occurred during creation of user %s"
 msgstr "ocorreu um erro ao criar o usuário %s"
 
-#: rhodecode/controllers/admin/users.py:171
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr "Usuário atualizado com sucesso"
 
-#: rhodecode/controllers/admin/users.py:207
+#: rhodecode/controllers/admin/users.py:212
 msgid "successfully deleted user"
 msgstr "usuário excluído com sucesso"
 
-#: rhodecode/controllers/admin/users.py:212
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr "Ocorreu um erro ao excluir o usuário"
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr "Você não pode editar esse usuário"
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr "Concedida permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users.py:271
+#: rhodecode/controllers/admin/users.py:277
 msgid "Revoked 'repository create' permission to user"
 msgstr "Revogada permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users.py:277
+#: rhodecode/controllers/admin/users.py:283
 #, fuzzy
 msgid "Granted 'repository fork' permission to user"
 msgstr "Concedida permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users.py:282
+#: rhodecode/controllers/admin/users.py:288
 #, fuzzy
 msgid "Revoked 'repository fork' permission to user"
 msgstr "Revogada permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 #, fuzzy
 msgid "An error occurred during permissions saving"
 msgstr "Ocorreu um erro durante essa operação"
 
-#: rhodecode/controllers/admin/users.py:303
+#: rhodecode/controllers/admin/users.py:309
 #, python-format
 msgid "Added email %s to user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:309
+#: rhodecode/controllers/admin/users.py:315
 #, fuzzy
 msgid "An error occurred during email saving"
 msgstr "Ocorreu um erro durante essa operação"
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 #, fuzzy
 msgid "Removed email from user"
 msgstr "removido grupo de repositórios %s"
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
 msgstr "criado grupo de usuários %s"
 
-#: rhodecode/controllers/admin/users_groups.py:95
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
 msgstr "ocorreu um erro ao criar o grupo de usuários %s"
 
-#: rhodecode/controllers/admin/users_groups.py:135
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
 msgstr "grupo de usuários %s atualizado"
 
-#: rhodecode/controllers/admin/users_groups.py:157
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
 msgstr "ocorreu um erro ao atualizar o grupo de usuários %s"
 
-#: rhodecode/controllers/admin/users_groups.py:174
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr "grupo de usuários excluído com sucesso"
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr "Ocorreu um erro ao excluir o grupo de usuários"
 
-#: rhodecode/controllers/admin/users_groups.py:233
+#: rhodecode/controllers/admin/users_groups.py:257
 #, fuzzy
 msgid "Granted 'repository create' permission to users group"
 msgstr "Concedida permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users_groups.py:238
+#: rhodecode/controllers/admin/users_groups.py:262
 #, fuzzy
 msgid "Revoked 'repository create' permission to users group"
 msgstr "Revogada permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users_groups.py:244
+#: rhodecode/controllers/admin/users_groups.py:268
 #, fuzzy
 msgid "Granted 'repository fork' permission to users group"
 msgstr "Concedida permissão de 'criar repositório' ao usuário"
 
-#: rhodecode/controllers/admin/users_groups.py:249
+#: rhodecode/controllers/admin/users_groups.py:273
 #, fuzzy
 msgid "Revoked 'repository fork' permission to users group"
 msgstr "Revogada permissão de 'criar repositório' ao usuário"
@@ -751,324 +795,349 @@
 msgid "You need to be a signed in to view this page"
 msgstr "Você precisa estar logado para ver essa página"
 
-#: rhodecode/lib/diffs.py:86
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr "arquivo binário"
+
+#: rhodecode/lib/diffs.py:90
 msgid "Changeset was too big and was cut off, use diff menu to display this diff"
 msgstr ""
 "Conjunto de mudanças é grande demais e foi cortado, use o menu de "
 "diferenças para ver as diferenças"
 
-#: rhodecode/lib/diffs.py:96
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr "Nenhuma alteração detectada"
 
-#: rhodecode/lib/helpers.py:372
+#: rhodecode/lib/helpers.py:373
 #, python-format
 msgid "%a, %d %b %Y %H:%M:%S"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:484
+#: rhodecode/lib/helpers.py:485
 msgid "True"
 msgstr "Verdadeiro"
 
-#: rhodecode/lib/helpers.py:488
+#: rhodecode/lib/helpers.py:489
 msgid "False"
 msgstr "Falso"
 
+#: rhodecode/lib/helpers.py:529
+#, fuzzy, python-format
+msgid "Deleted branch: %s"
+msgstr "excluído o repositório %s"
+
 #: rhodecode/lib/helpers.py:532
+#, fuzzy, python-format
+msgid "Created tag: %s"
+msgstr "usuário %s criado"
+
+#: rhodecode/lib/helpers.py:545
 msgid "Changeset not found"
 msgstr "Conjunto de alterações não encontrado"
 
-#: rhodecode/lib/helpers.py:555
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
 msgstr "Ver todos os conjuntos de mudanças combinados %s->%s"
 
-#: rhodecode/lib/helpers.py:561
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr "comparar exibir"
 
-#: rhodecode/lib/helpers.py:581
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr "e"
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
 msgstr "%s mais"
 
-#: rhodecode/lib/helpers.py:583 rhodecode/templates/changelog/changelog.html:48
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr "revisões"
 
-#: rhodecode/lib/helpers.py:606
-msgid "fork name "
+#: rhodecode/lib/helpers.py:640
+#, fuzzy, python-format
+msgid "fork name %s"
 msgstr "nome da bifurcação"
 
-#: rhodecode/lib/helpers.py:620
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:626
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr "repositório [excluído]"
 
-#: rhodecode/lib/helpers.py:628 rhodecode/lib/helpers.py:638
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr "repositório [criado]"
 
-#: rhodecode/lib/helpers.py:630
+#: rhodecode/lib/helpers.py:663
 msgid "[created] repository as fork"
 msgstr "repositório [criado] como uma bifurcação"
 
-#: rhodecode/lib/helpers.py:632 rhodecode/lib/helpers.py:640
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr "repositório [bifurcado]"
 
-#: rhodecode/lib/helpers.py:634 rhodecode/lib/helpers.py:642
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr "repositório [atualizado]"
 
-#: rhodecode/lib/helpers.py:636
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr "[excluir] repositório"
 
-#: rhodecode/lib/helpers.py:644
+#: rhodecode/lib/helpers.py:677
 #, fuzzy
 msgid "[created] user"
 msgstr "usuário %s criado"
 
-#: rhodecode/lib/helpers.py:646
+#: rhodecode/lib/helpers.py:679
 #, fuzzy
 msgid "[updated] user"
 msgstr "grupo de usuários %s atualizado"
 
-#: rhodecode/lib/helpers.py:648
+#: rhodecode/lib/helpers.py:681
 #, fuzzy
 msgid "[created] users group"
 msgstr "criado grupo de usuários %s"
 
-#: rhodecode/lib/helpers.py:650
+#: rhodecode/lib/helpers.py:683
 #, fuzzy
 msgid "[updated] users group"
 msgstr "grupo de usuários %s atualizado"
 
-#: rhodecode/lib/helpers.py:652
+#: rhodecode/lib/helpers.py:685
 #, fuzzy
 msgid "[commented] on revision in repository"
 msgstr "repositório [criado]"
 
-#: rhodecode/lib/helpers.py:654
+#: rhodecode/lib/helpers.py:687
 #, fuzzy
 msgid "[commented] on pull request for"
 msgstr "repositório [criado]"
 
-#: rhodecode/lib/helpers.py:656
+#: rhodecode/lib/helpers.py:689
 #, fuzzy
 msgid "[closed] pull request for"
 msgstr "repositório [criado]"
 
-#: rhodecode/lib/helpers.py:658
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr "[realizado push] para"
 
-#: rhodecode/lib/helpers.py:660
+#: rhodecode/lib/helpers.py:693
 #, fuzzy
 msgid "[committed via RhodeCode] into repository"
 msgstr "[realizado commit via RhodeCode] para"
 
-#: rhodecode/lib/helpers.py:662
+#: rhodecode/lib/helpers.py:695
 #, fuzzy
 msgid "[pulled from remote] into repository"
 msgstr "[realizado pull remoto] para"
 
-#: rhodecode/lib/helpers.py:664
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr "[realizado pull] a partir de"
 
-#: rhodecode/lib/helpers.py:666
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr "[passou a seguir] o repositório"
 
-#: rhodecode/lib/helpers.py:668
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr "[parou de seguir] o repositório"
 
-#: rhodecode/lib/helpers.py:840
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
 msgstr " e mais %s"
 
-#: rhodecode/lib/helpers.py:844
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
 msgstr "Nenhum Arquivo"
 
-#: rhodecode/lib/utils2.py:335
+#: rhodecode/lib/utils2.py:403
 #, python-format
 msgid "%d year"
 msgid_plural "%d years"
 msgstr[0] "%d ano"
 msgstr[1] "%d anos"
 
-#: rhodecode/lib/utils2.py:336
+#: rhodecode/lib/utils2.py:404
 #, python-format
 msgid "%d month"
 msgid_plural "%d months"
 msgstr[0] "%d mês"
 msgstr[1] "%d meses"
 
-#: rhodecode/lib/utils2.py:337
+#: rhodecode/lib/utils2.py:405
 #, python-format
 msgid "%d day"
 msgid_plural "%d days"
 msgstr[0] "%d dia"
 msgstr[1] "%d dias"
 
-#: rhodecode/lib/utils2.py:338
+#: rhodecode/lib/utils2.py:406
 #, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] "%d hora"
 msgstr[1] "%d horas"
 
-#: rhodecode/lib/utils2.py:339
+#: rhodecode/lib/utils2.py:407
 #, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
 msgstr[0] "%d minuto"
 msgstr[1] "%d minutos"
 
-#: rhodecode/lib/utils2.py:340
+#: rhodecode/lib/utils2.py:408
 #, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
 msgstr[0] "%d segundo"
 msgstr[1] "%d segundos"
 
-#: rhodecode/lib/utils2.py:355
+#: rhodecode/lib/utils2.py:424
+#, fuzzy, python-format
+msgid "in %s"
+msgstr "na linha %s"
+
+#: rhodecode/lib/utils2.py:426
 #, python-format
 msgid "%s ago"
 msgstr "%s atrás"
 
-#: rhodecode/lib/utils2.py:357
+#: rhodecode/lib/utils2.py:428
+#, fuzzy, python-format
+msgid "in %s and %s"
+msgstr "%s e %s atrás"
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
 msgstr "%s e %s atrás"
 
-#: rhodecode/lib/utils2.py:360
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr "agora há pouco"
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 msgid "password reset link"
 msgstr "link de reinicialização de senha"
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+#, fuzzy
+msgid "Repository no access"
+msgstr "repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+#, fuzzy
+msgid "Repository read access"
+msgstr "Esse repositório já existe"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+#, fuzzy
+msgid "Repository write access"
+msgstr "repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+#, fuzzy
+msgid "Repository admin access"
+msgstr "repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+#, fuzzy
+msgid "Repositories Group no access"
+msgstr "grupos de repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+#, fuzzy
+msgid "Repositories Group read access"
+msgstr "grupos de repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+#, fuzzy
+msgid "Repositories Group write access"
+msgstr "grupos de repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+#, fuzzy
+msgid "Repositories Group admin access"
+msgstr "grupos de repositórios"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+#, fuzzy
+msgid "RhodeCode Administrator"
+msgstr "Administração de usuários"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+#, fuzzy
+msgid "Repository creation disabled"
+msgstr "Criação de repositório"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+#, fuzzy
+msgid "Repository creation enabled"
+msgstr "Criação de repositório"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+#, fuzzy
+msgid "Repository forking disabled"
+msgstr "Criação de repositório"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+#, fuzzy
+msgid "Repository forking enabled"
+msgstr "Criação de repositório"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+#, fuzzy
+msgid "Register disabled"
+msgstr "desabilitado"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+#, fuzzy
+msgid "Approved"
+msgstr "removidos"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr ""
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
 msgstr "na linha %s"
 
-#: rhodecode/model/comment.py:157
+#: rhodecode/model/comment.py:173
 msgid "[Mention]"
 msgstr "[Menção]"
 
-#: rhodecode/model/db.py:1140
-#, fuzzy
-msgid "Repository no access"
-msgstr "repositórios"
-
-#: rhodecode/model/db.py:1141
-#, fuzzy
-msgid "Repository read access"
-msgstr "Esse repositório já existe"
-
-#: rhodecode/model/db.py:1142
-#, fuzzy
-msgid "Repository write access"
-msgstr "repositórios"
-
-#: rhodecode/model/db.py:1143
-#, fuzzy
-msgid "Repository admin access"
-msgstr "repositórios"
-
-#: rhodecode/model/db.py:1145
-#, fuzzy
-msgid "Repositories Group no access"
-msgstr "grupos de repositórios"
-
-#: rhodecode/model/db.py:1146
-#, fuzzy
-msgid "Repositories Group read access"
-msgstr "grupos de repositórios"
-
-#: rhodecode/model/db.py:1147
-#, fuzzy
-msgid "Repositories Group write access"
-msgstr "grupos de repositórios"
-
-#: rhodecode/model/db.py:1148
-#, fuzzy
-msgid "Repositories Group admin access"
-msgstr "grupos de repositórios"
-
-#: rhodecode/model/db.py:1150
-#, fuzzy
-msgid "RhodeCode Administrator"
-msgstr "Administração de usuários"
-
-#: rhodecode/model/db.py:1151
-#, fuzzy
-msgid "Repository creation disabled"
-msgstr "Criação de repositório"
-
-#: rhodecode/model/db.py:1152
-#, fuzzy
-msgid "Repository creation enabled"
-msgstr "Criação de repositório"
-
-#: rhodecode/model/db.py:1153
-#, fuzzy
-msgid "Repository forking disabled"
-msgstr "Criação de repositório"
-
-#: rhodecode/model/db.py:1154
-#, fuzzy
-msgid "Repository forking enabled"
-msgstr "Criação de repositório"
-
-#: rhodecode/model/db.py:1155
-#, fuzzy
-msgid "Register disabled"
-msgstr "desabilitado"
-
-#: rhodecode/model/db.py:1156
-msgid "Register new user with RhodeCode with manual activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1159
-msgid "Register new user with RhodeCode with auto activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1579
-msgid "Not Reviewed"
-msgstr ""
-
-#: rhodecode/model/db.py:1580
-#, fuzzy
-msgid "Approved"
-msgstr "removidos"
-
-#: rhodecode/model/db.py:1581
-msgid "Rejected"
-msgstr ""
-
-#: rhodecode/model/db.py:1582
-msgid "Under Review"
-msgstr ""
-
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
 msgstr "Por favor entre um login"
@@ -1088,36 +1157,41 @@
 msgstr "Entre com %(min)i caracteres ou mais"
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
+#, fuzzy, python-format
+msgid "commented on commit at %(when)s"
 msgstr "comentado no commit"
 
 #: rhodecode/model/notification.py:221
-msgid "sent message"
+#, fuzzy, python-format
+msgid "sent message at %(when)s"
 msgstr "mensagem enviada"
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
+#, fuzzy, python-format
+msgid "mentioned you at %(when)s"
 msgstr "mencionou você"
 
 #: rhodecode/model/notification.py:223
-msgid "registered in RhodeCode"
+#, fuzzy, python-format
+msgid "registered in RhodeCode at %(when)s"
 msgstr "registrado no RhodeCode"
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
-msgstr ""
+#, fuzzy, python-format
+msgid "opened new pull request at %(when)s"
+msgstr "comentado no commit"
 
 #: rhodecode/model/notification.py:225
-#, fuzzy
-msgid "commented on pull request"
+#, fuzzy, python-format
+msgid "commented on pull request at %(when)s"
 msgstr "comentado no commit"
 
-#: rhodecode/model/pull_request.py:84
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
 msgstr ""
 
-#: rhodecode/model/scm.py:535
+#: rhodecode/model/scm.py:542
 #, fuzzy
 msgid "latest tip"
 msgstr "último login"
@@ -1126,20 +1200,20 @@
 msgid "new user registration"
 msgstr "registro de novo usuário"
 
-#: rhodecode/model/user.py:255 rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
 msgstr ""
 "Você não pode Editar esse usuário, pois ele é crucial para toda a "
 "aplicação"
 
-#: rhodecode/model/user.py:323
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
 msgstr ""
 "Você não pode remover esse usuário, pois ele é crucial para toda a "
 "aplicação"
 
-#: rhodecode/model/user.py:329
+#: rhodecode/model/user.py:331
 #, python-format
 msgid ""
 "user \"%s\" still owns %s repositories and cannot be removed. Switch "
@@ -1148,21 +1222,21 @@
 "usuário \"%s\" ainda é dono de %s repositórios e não pode ser removido. "
 "Troque os donos ou remova esses repositórios. %s"
 
-#: rhodecode/model/validators.py:35 rhodecode/model/validators.py:36
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
 msgstr ""
 
-#: rhodecode/model/validators.py:82
+#: rhodecode/model/validators.py:83
 #, fuzzy, python-format
 msgid "Username \"%(username)s\" already exists"
 msgstr "Esse nome de usuário já existe"
 
-#: rhodecode/model/validators.py:84
+#: rhodecode/model/validators.py:85
 #, python-format
 msgid "Username \"%(username)s\" is forbidden"
 msgstr ""
 
-#: rhodecode/model/validators.py:86
+#: rhodecode/model/validators.py:87
 msgid ""
 "Username may only contain alphanumeric characters underscores, periods or"
 " dashes and must begin with alphanumeric character"
@@ -1170,22 +1244,22 @@
 "Nome de usuário pode conter somente caracteres alfanuméricos, sublinha, "
 "pontos e hífens e deve iniciar com caractere alfanumérico"
 
-#: rhodecode/model/validators.py:114
+#: rhodecode/model/validators.py:115
 #, fuzzy, python-format
 msgid "Username %(username)s is not valid"
 msgstr "Esse nome de usuário ou nome de grupo de usuários não é válido"
 
-#: rhodecode/model/validators.py:133
+#: rhodecode/model/validators.py:134
 #, fuzzy
 msgid "Invalid users group name"
 msgstr "nome de usuário inválido"
 
-#: rhodecode/model/validators.py:134
+#: rhodecode/model/validators.py:135
 #, fuzzy, python-format
 msgid "Users group \"%(usersgroup)s\" already exists"
 msgstr "Esse grupo de usuários já existe"
 
-#: rhodecode/model/validators.py:136
+#: rhodecode/model/validators.py:137
 msgid ""
 "users group name may only contain  alphanumeric characters underscores, "
 "periods or dashes and must begin with alphanumeric character"
@@ -1194,93 +1268,98 @@
 "alfanuméricos, sublinha, pontos e hífens e deve iniciar com caractere "
 "alfanumérico"
 
-#: rhodecode/model/validators.py:174
+#: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
 msgstr "Não é possível associar esse grupo como progenitor"
 
-#: rhodecode/model/validators.py:175
+#: rhodecode/model/validators.py:176
 #, fuzzy, python-format
 msgid "Group \"%(group_name)s\" already exists"
 msgstr "Esse nome de usuário já existe"
 
-#: rhodecode/model/validators.py:177
+#: rhodecode/model/validators.py:178
 #, fuzzy, python-format
 msgid "Repository with name \"%(group_name)s\" already exists"
 msgstr "Já existe um repositório com esse nome"
 
-#: rhodecode/model/validators.py:235
+#: rhodecode/model/validators.py:236
 #, fuzzy
 msgid "Invalid characters (non-ascii) in password"
 msgstr "Caracteres inválidos na senha"
 
-#: rhodecode/model/validators.py:250
+#: rhodecode/model/validators.py:251
 msgid "Passwords do not match"
 msgstr "Senhas não conferem"
 
-#: rhodecode/model/validators.py:267
-msgid "invalid password"
-msgstr "senha inválida"
-
 #: rhodecode/model/validators.py:268
-msgid "invalid user name"
-msgstr "nome de usuário inválido"
+msgid "invalid password"
+msgstr "senha inválida"
 
 #: rhodecode/model/validators.py:269
+msgid "invalid user name"
+msgstr "nome de usuário inválido"
+
+#: rhodecode/model/validators.py:270
 msgid "Your account is disabled"
 msgstr "Sua conta está desabilitada"
 
-#: rhodecode/model/validators.py:313
+#: rhodecode/model/validators.py:314
 #, fuzzy, python-format
 msgid "Repository name %(repo)s is disallowed"
 msgstr "Esse nome de repositório não é permitido"
 
-#: rhodecode/model/validators.py:315
+#: rhodecode/model/validators.py:316
 #, fuzzy, python-format
 msgid "Repository named %(repo)s already exists"
 msgstr "Já existe um repositório com esse nome"
 
-#: rhodecode/model/validators.py:316
+#: rhodecode/model/validators.py:317
 #, fuzzy, python-format
 msgid "Repository \"%(repo)s\" already exists in group \"%(group)s\""
 msgstr "Esse repositório já existe em um grupo \"%s\""
 
-#: rhodecode/model/validators.py:318
+#: rhodecode/model/validators.py:319
 #, fuzzy, python-format
 msgid "Repositories group with name \"%(repo)s\" already exists"
 msgstr "Já existe um repositório com esse nome"
 
-#: rhodecode/model/validators.py:431
+#: rhodecode/model/validators.py:432
 msgid "invalid clone url"
 msgstr "URL de clonagem inválida"
 
-#: rhodecode/model/validators.py:432
+#: rhodecode/model/validators.py:433
 #, fuzzy
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
 msgstr "URL de clonagem inválida, forneça uma URL válida de clonagem http\\s"
 
-#: rhodecode/model/validators.py:457
+#: rhodecode/model/validators.py:458
 #, fuzzy
 msgid "Fork have to be the same type as parent"
 msgstr "Bifurcação precisa ser do mesmo tipo que o original"
 
-#: rhodecode/model/validators.py:478
+#: rhodecode/model/validators.py:473
+#, fuzzy
+msgid "You don't have permissions to create repository in this group"
+msgstr "Você não tem permissão para ver esta página"
+
+#: rhodecode/model/validators.py:498
 msgid "This username or users group name is not valid"
 msgstr "Esse nome de usuário ou nome de grupo de usuários não é válido"
 
-#: rhodecode/model/validators.py:562
+#: rhodecode/model/validators.py:582
 msgid "This is not a valid path"
 msgstr "Esse não é um caminho válido"
 
-#: rhodecode/model/validators.py:577
+#: rhodecode/model/validators.py:597
 msgid "This e-mail address is already taken"
 msgstr "Esse endereço de e-mail já está tomado"
 
-#: rhodecode/model/validators.py:597
+#: rhodecode/model/validators.py:617
 #, fuzzy, python-format
 msgid "e-mail \"%(email)s\" does not exist."
 msgstr "Esse endereço de e-mail não existe."
 
-#: rhodecode/model/validators.py:634
+#: rhodecode/model/validators.py:654
 msgid ""
 "The LDAP Login attribute of the CN must be specified - this is the name "
 "of the attribute that is equivalent to \"username\""
@@ -1288,7 +1367,7 @@
 "O atributo de login LDAP do CN deve ser especificado - isto é o nome do "
 "atributo que é equivalente ao 'nome de usuário'"
 
-#: rhodecode/model/validators.py:653
+#: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
 msgstr ""
@@ -1311,7 +1390,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:221
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr "repositórios"
 
@@ -1322,6 +1401,7 @@
 msgstr "ADICIONAR REPOSITÓRIO"
 
 #: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1331,9 +1411,10 @@
 msgstr "Nome do grupo"
 
 #: rhodecode/templates/index_base.html:30
-#: rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142
-#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1342,142 +1423,137 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr "Descrição"
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr "Grupo de repositórios"
 
-#: rhodecode/templates/index_base.html:70
-#: rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:157
-#: rhodecode/templates/admin/users/user_edit_my_account.html:193
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
 #: rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr "Nome"
 
-#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:73
 msgid "Last change"
 msgstr "Última alteração"
 
-#: rhodecode/templates/index_base.html:73
-#: rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:159
-#: rhodecode/templates/journal/journal.html:188
+#: rhodecode/templates/index_base.html:74
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
 msgid "Tip"
 msgstr "Ponta"
 
-#: rhodecode/templates/index_base.html:74
-#: rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr "Dono"
 
-#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:76
 #: rhodecode/templates/summary/summary.html:48
 #: rhodecode/templates/summary/summary.html:51
 msgid "RSS"
 msgstr "RSS"
 
-#: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr "Atom"
 
-#: rhodecode/templates/index_base.html:110
-#: rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr "Assinar o feed rss de %s"
-
-#: rhodecode/templates/index_base.html:117
-#: rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr "Assinar o feed atom de %s"
-
-#: rhodecode/templates/index_base.html:140
-msgid "Group Name"
-msgstr "Nome do Grupo"
-
-#: rhodecode/templates/index_base.html:158
-#: rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr "Clique para ordenar em ordem crescente"
 
-#: rhodecode/templates/index_base.html:159
-#: rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr "Clique para ordenar em ordem descrescente"
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
 msgid "Last Change"
 msgstr "Última Alteração"
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr "Nenhum registro encontrado."
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr "Erro de dados."
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 msgid "Loading..."
 msgstr "Carregando..."
 
@@ -1495,7 +1571,7 @@
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr "Nome de usuário"
 
@@ -1554,23 +1630,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr "Primeiro Nome"
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr "Último Nome"
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr "E-mail"
 
@@ -1583,6 +1659,7 @@
 msgstr "Sua conta precisa esperar ativação por um administrador"
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1610,7 +1687,7 @@
 msgstr "etiquetas"
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr "Ainda não há etiquetas"
 
@@ -1633,20 +1710,22 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr "Ação"
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr "Repositório"
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
 #: rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr "Data"
@@ -1655,10 +1734,84 @@
 msgid "From IP"
 msgstr "A partir do IP"
 
-#: rhodecode/templates/admin/admin_log.html:53
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr "Ainda não há ações"
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+#, fuzzy
+msgid "Repositories defaults"
+msgstr "grupos de repositórios"
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+#, fuzzy
+msgid "Defaults"
+msgstr "excluir"
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr "Tipo"
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr ""
+"Repositórios privados são visíveis somente por pessoas explicitamente "
+"adicionadas como colaboradores."
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr "Habilitar estatísticas"
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr "Habilitar janela de estatísticas na página de sumário."
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr "Habilitar downloads"
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr "Habilitar menu de descarregar na página de sumário."
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+#, fuzzy
+msgid "Enable locking"
+msgstr "habilitar"
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr "Salvar"
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
 msgstr "Administração de LDAP"
@@ -1731,18 +1884,6 @@
 msgid "E-mail Attribute"
 msgstr "Atributo de E-mail"
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr "Salvar"
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1758,8 +1899,8 @@
 msgstr "commits"
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:254
-#: rhodecode/templates/base/base.html:256
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr ""
 
@@ -1787,7 +1928,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1801,10 +1942,6 @@
 msgid "Anonymous access"
 msgstr "Acesso anônimo"
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr "Permissão de repositório"
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
 msgid ""
 "All default permissions on each repository will be reset to choosen "
@@ -1816,24 +1953,45 @@
 "customizadas nos repositórios serão perdidas"
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr "sobrescrever configurações existentes"
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr "Grupo de repositórios"
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+#, fuzzy
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr ""
+"Todas as permissões padrão em cada repositório serão reinicializadas para"
+" as permissões escolhidas. Note que todas as permissões padrão "
+"customizadas nos repositórios serão perdidas"
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr "Registro"
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr "Criação de repositório"
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
+#: rhodecode/templates/admin/permissions/permissions.html:85
 #, fuzzy
 msgid "Repository forking"
 msgstr "Criação de repositório"
 
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:241
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr "ajustar"
 
@@ -1853,8 +2011,8 @@
 msgstr "adicionar novo"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr "Clonar de"
 
@@ -1864,25 +2022,12 @@
 msgid "Optional http[s] url from which repository should be cloned."
 msgstr "URL opcional http[s] da qual o repositório deve ser clonado."
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr "Grupo de repositórios"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 #, fuzzy
 msgid "Optionaly select a group to put this repository into."
 msgstr "Opcionalmente selecione um grupo no qual colocar esse repositório."
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr "Tipo"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 msgid "Type of repository to create."
 msgstr "Tipo de repositório a criar."
@@ -1911,17 +2056,6 @@
 "Seja sucinto e objetivo. Use um arquivo README para descrições mais "
 "longas."
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid ""
-"Private repositories are only visible to people explicitly added as "
-"collaborators."
-msgstr ""
-"Repositórios privados são visíveis somente por pessoas explicitamente "
-"adicionadas como colaboradores."
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
 msgstr "adicionar"
@@ -1936,12 +2070,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr "editar"
 
@@ -1955,32 +2091,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr "Opcionalmente selecione um grupo no qual colocar esse repositório."
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr "Habilitar estatísticas"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr "Habilitar janela de estatísticas na página de sumário."
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr "Habilitar downloads"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr "Habilitar menu de descarregar na página de sumário."
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-#, fuzzy
-msgid "Enable locking"
-msgstr "habilitar"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 msgid "Change owner of this repository."
 msgstr "Mudar o dono desse repositório."
@@ -1988,11 +2098,11 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
@@ -2050,22 +2160,49 @@
 msgid "Confirm to invalidate repository cache"
 msgstr "Confirma invalidar cache do repositório"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:195
-#: rhodecode/templates/base/base.html:318
-#: rhodecode/templates/base/base.html:320
-#: rhodecode/templates/base/base.html:322
-msgid "Public journal"
-msgstr "Diário público"
+#: rhodecode/templates/admin/repos/repo_edit.html:193
+msgid ""
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:198
+msgid "List of cached values"
+msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:201
-msgid "Remove from public journal"
-msgstr "Remover do diário público"
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+#, fuzzy
+msgid "Key"
+msgstr "Chave de API"
 
 #: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr "Ativo"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
+#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
+msgid "Public journal"
+msgstr "Diário público"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:224
+msgid "Remove from public journal"
+msgstr "Remover do diário público"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr "Adicionar ao diário público"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:208
+#: rhodecode/templates/admin/repos/repo_edit.html:231
 msgid ""
 "All actions made on this repository will be accessible to everyone in "
 "public journal"
@@ -2073,63 +2210,62 @@
 "Todas as ações feitas nesse repositório serão acessíveis a todos no "
 "diário público"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 #, fuzzy
 msgid "Locking"
 msgstr "destravar"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 #, fuzzy
 msgid "Confirm to unlock repository"
 msgstr "Confirma excluir este repositório"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 #, fuzzy
 msgid "Confirm to lock repository"
 msgstr "Confirma excluir este repositório"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:224
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 #, fuzzy
 msgid "Repository is not locked"
 msgstr "repositórios"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+#: rhodecode/templates/admin/repos/repo_edit.html:252
 msgid "Force locking on repository. Works only when anonymous access is disabled"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:236
+#: rhodecode/templates/admin/repos/repo_edit.html:259
 #, fuzzy
 msgid "Set as fork of"
 msgstr "Marcar como bifurcação"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:245
+#: rhodecode/templates/admin/repos/repo_edit.html:268
 #, fuzzy
 msgid "Manually set this repository as a fork of another from the list"
 msgstr "Marcar manualmente este repositório como sendo uma bifurcação de outro"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:251
+#: rhodecode/templates/admin/repos/repo_edit.html:274
 #: rhodecode/templates/changeset/changeset_file_comment.html:26
 msgid "Delete"
 msgstr "Excluir"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:255
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Remove this repository"
 msgstr "Remover deste repositório"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-#: rhodecode/templates/journal/journal.html:84
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Confirm to delete this repository"
 msgstr "Confirma excluir este repositório"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:259
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
 "This repository will be renamed in a special way in order to be "
 "unaccesible for RhodeCode and VCS systems.\n"
@@ -2159,7 +2295,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:217
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr "administrador"
 
@@ -2170,8 +2306,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr "repositório privado"
 
@@ -2195,12 +2331,12 @@
 msgstr "Adicionar outro membro"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:97
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:81
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:87
 msgid "Failed to remove user"
 msgstr "Falha ao reomver usuário"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:112
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:96
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:103
 msgid "Failed to remove users group"
 msgstr "Falha ao remover grupo de usuários"
 
@@ -2208,11 +2344,44 @@
 msgid "Repositories administration"
 msgstr "Administração de repositórios"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:8
-msgid "Groups"
-msgstr "Grupos"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:12
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:73
+msgid "apply to children"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:9
+#: rhodecode/templates/base/base.html:122
+#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
+#: rhodecode/templates/bookmarks/bookmarks.html:11
+#: rhodecode/templates/branches/branches.html:10
+#: rhodecode/templates/changelog/changelog.html:10
+#: rhodecode/templates/changeset/changeset.html:10
+#: rhodecode/templates/changeset/changeset_range.html:9
+#: rhodecode/templates/compare/compare_diff.html:9
+#: rhodecode/templates/files/file_diff.html:8
+#: rhodecode/templates/files/files.html:8
+#: rhodecode/templates/files/files_add.html:15
+#: rhodecode/templates/files/files_edit.html:15
+#: rhodecode/templates/followers/followers.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/pullrequests/pullrequest.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
+#: rhodecode/templates/settings/repo_settings.html:9
+#: rhodecode/templates/shortlog/shortlog.html:10
+#: rhodecode/templates/summary/summary.html:8
+#: rhodecode/templates/tags/tags.html:11
+msgid "Home"
+msgstr "Início"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:13
 msgid "with"
 msgstr "com"
 
@@ -2238,7 +2407,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr "salvar"
 
@@ -2274,20 +2443,22 @@
 msgid "action"
 msgstr "ação"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr "excluir"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#, python-format
-msgid "Confirm to delete this group: %s"
-msgstr "Confirme para excluir esse grupo: %s"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#, fuzzy, python-format
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] "Confirma excluir este repositório"
+msgstr[1] ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr "Ainda não há grupos de repositórios"
 
@@ -2383,8 +2554,8 @@
 msgstr "Código GA"
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr "Salvar configurações"
 
@@ -2393,97 +2564,106 @@
 msgid "Visualisation settings"
 msgstr "Configurações globais da aplicação"
 
-#: rhodecode/templates/admin/settings/settings.html:128
+#: rhodecode/templates/admin/settings/settings.html:127
+#, fuzzy
+msgid "General"
+msgstr "habilitar"
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:139
 #, fuzzy
 msgid "Icons"
 msgstr "Opções"
 
-#: rhodecode/templates/admin/settings/settings.html:133
+#: rhodecode/templates/admin/settings/settings.html:144
 msgid "Show public repo icon on repositories"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:137
+#: rhodecode/templates/admin/settings/settings.html:148
 #, fuzzy
 msgid "Show private repo icon on repositories"
 msgstr "repositório privado"
 
-#: rhodecode/templates/admin/settings/settings.html:144
+#: rhodecode/templates/admin/settings/settings.html:155
 #, fuzzy
 msgid "Meta-Tagging"
 msgstr "configurações"
 
-#: rhodecode/templates/admin/settings/settings.html:149
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:176
+#: rhodecode/templates/admin/settings/settings.html:187
 #, fuzzy
 msgid "VCS settings"
 msgstr "configurações"
 
-#: rhodecode/templates/admin/settings/settings.html:185
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr "Web"
 
-#: rhodecode/templates/admin/settings/settings.html:190
+#: rhodecode/templates/admin/settings/settings.html:201
 #, fuzzy
 msgid "require ssl for vcs operations"
 msgstr "exigir ssl para realizar push"
 
-#: rhodecode/templates/admin/settings/settings.html:192
+#: rhodecode/templates/admin/settings/settings.html:203
 msgid ""
 "RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
 "will return HTTP Error 406: Not Acceptable"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:198
+#: rhodecode/templates/admin/settings/settings.html:209
 msgid "Hooks"
 msgstr "Ganchos"
 
-#: rhodecode/templates/admin/settings/settings.html:203
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr "Atualizar repositório após realizar push (hg update)"
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr "Mostrar tamanho do repositório após o push"
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr "Armazenar registro de comandos de push dos usuários"
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr "Armazenar registro de comandos de pull dos usuários"
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr "confirguações avançadas"
 
-#: rhodecode/templates/admin/settings/settings.html:224
+#: rhodecode/templates/admin/settings/settings.html:235
 #, fuzzy
 msgid "Mercurial Extensions"
 msgstr "Repositório Mercurial"
 
-#: rhodecode/templates/admin/settings/settings.html:229
+#: rhodecode/templates/admin/settings/settings.html:240
 msgid "largefiles extensions"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:233
+#: rhodecode/templates/admin/settings/settings.html:244
 msgid "hgsubversion extensions"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:235
+#: rhodecode/templates/admin/settings/settings.html:246
 msgid ""
 "Requires hgsubversion library installed. Allows clonning from svn remote "
 "locations"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:245
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr "Localização dos repositórios"
 
-#: rhodecode/templates/admin/settings/settings.html:250
+#: rhodecode/templates/admin/settings/settings.html:261
 msgid ""
 "This a crucial application setting. If you are really sure you need to "
 "change this, you must restart application in order to make this setting "
@@ -2493,33 +2673,34 @@
 "certeza de que quer mudar isto, você precisa reiniciar a aplicação para "
 "que essa configuração tenha efeito. Clique este rótulo para destravar."
 
-#: rhodecode/templates/admin/settings/settings.html:251
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr "destravar"
 
-#: rhodecode/templates/admin/settings/settings.html:252
+#: rhodecode/templates/admin/settings/settings.html:263
 msgid ""
 "Location where repositories are stored. After changing this value a "
 "restart, and rescan is required"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr "Testar E-mail"
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 msgid "Email to"
 msgstr "E-mail para"
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 msgid "Send"
 msgstr "Enviar"
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr "Informações de Sistema e Pacotes"
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 msgid "show"
 msgstr "mostrar"
 
@@ -2540,13 +2721,6 @@
 msgid "Password confirmation"
 msgstr "Confirmação de senha"
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr "Ativo"
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr "Editar usuário"
@@ -2566,27 +2740,27 @@
 msgid "API key"
 msgstr "Chave de API"
 
-#: rhodecode/templates/admin/users/user_edit.html:59
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr "DN LDAP"
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr "Nova senha"
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr "Confirmação de nova senha"
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
 #, fuzzy
 msgid "Inherit default permissions"
 msgstr "Permissões padrão"
 
-#: rhodecode/templates/admin/users/user_edit.html:152
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
 msgid ""
@@ -2594,51 +2768,53 @@
 "options does not have any action"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:158
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr "Criar repositórios"
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
 #, fuzzy
 msgid "Fork repositories"
 msgstr "repositórios"
 
-#: rhodecode/templates/admin/users/user_edit.html:186
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
 #, fuzzy
 msgid "Nothing here yet"
 msgstr "Ainda não há notificações aqui"
 
-#: rhodecode/templates/admin/users/user_edit.html:193
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:194
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 msgid "Permission"
 msgstr "Permissão"
 
-#: rhodecode/templates/admin/users/user_edit.html:194
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 #, fuzzy
 msgid "Edit Permission"
 msgstr "Permissão de repositório"
 
-#: rhodecode/templates/admin/users/user_edit.html:243
+#: rhodecode/templates/admin/users/user_edit.html:247
 #, fuzzy
 msgid "Email addresses"
 msgstr "Endereço de e-mail"
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, fuzzy, python-format
 msgid "Confirm to delete this email: %s"
 msgstr "Confirma excluir este usuário: %s"
 
-#: rhodecode/templates/admin/users/user_edit.html:270
+#: rhodecode/templates/admin/users/user_edit.html:274
 #, fuzzy
 msgid "New email address"
 msgstr "Endereço de e-mail"
 
-#: rhodecode/templates/admin/users/user_edit.html:277
+#: rhodecode/templates/admin/users/user_edit.html:281
 #, fuzzy
 msgid "Add"
 msgstr "adicionar"
@@ -2698,31 +2874,33 @@
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
 #: rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr "Revisão"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr "privado"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, python-format
 msgid "Confirm to delete this repository: %s"
 msgstr "Confirma excluir esse repositório: %s"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr "Ainda não há repositórios"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr "criar um agora"
 
@@ -2731,7 +2909,7 @@
 msgstr "Administração de usuários"
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:223
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr "usuários"
 
@@ -2762,7 +2940,7 @@
 msgstr "ativo"
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr "ldap"
 
@@ -2811,6 +2989,21 @@
 msgid "Group members"
 msgstr "Membros do grupo"
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+#, fuzzy
+msgid "No members yet"
+msgstr "membros"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+#, fuzzy
+msgid "Permissions defined for this group"
+msgstr "Administração de permissões"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+#, fuzzy
+msgid "No permissions set yet"
+msgstr "Copiar permissões"
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr "Administração de grupos de usuários"
@@ -2853,36 +3046,10 @@
 msgid "Inbox"
 msgstr "Caixa de Entrada"
 
-#: rhodecode/templates/base/base.html:122
-#: rhodecode/templates/base/base.html:300
-#: rhodecode/templates/base/base.html:302
-#: rhodecode/templates/base/base.html:304
-#: rhodecode/templates/bookmarks/bookmarks.html:11
-#: rhodecode/templates/branches/branches.html:10
-#: rhodecode/templates/changelog/changelog.html:10
-#: rhodecode/templates/changeset/changeset.html:10
-#: rhodecode/templates/changeset/changeset_range.html:9
-#: rhodecode/templates/compare/compare_diff.html:9
-#: rhodecode/templates/files/file_diff.html:8
-#: rhodecode/templates/files/files.html:8
-#: rhodecode/templates/files/files_add.html:15
-#: rhodecode/templates/files/files_edit.html:15
-#: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
-#: rhodecode/templates/pullrequests/pullrequest.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
-#: rhodecode/templates/settings/repo_settings.html:9
-#: rhodecode/templates/shortlog/shortlog.html:10
-#: rhodecode/templates/summary/summary.html:8
-#: rhodecode/templates/tags/tags.html:11
-msgid "Home"
-msgstr "Início"
-
 #: rhodecode/templates/base/base.html:123
-#: rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311
-#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2902,7 +3069,7 @@
 msgstr "Produtos"
 
 #: rhodecode/templates/base/base.html:152
-#: rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr "carregando..."
 
@@ -2947,50 +3114,70 @@
 
 #: rhodecode/templates/base/base.html:204
 #: rhodecode/templates/base/base.html:206
-#: rhodecode/templates/base/base.html:227
-msgid "settings"
-msgstr "configurações"
-
-#: rhodecode/templates/base/base.html:209
+#, fuzzy
+msgid "repository settings"
+msgstr "Criação de repositório"
+
+#: rhodecode/templates/base/base.html:210
 #: rhodecode/templates/data_table/_dt_elements.html:80
 #: rhodecode/templates/forks/fork.html:13
 msgid "fork"
 msgstr "bifurcação"
 
-#: rhodecode/templates/base/base.html:211
-#: rhodecode/templates/changelog/changelog.html:40
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:213
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+#, fuzzy
+msgid "Compare fork"
+msgstr "comparar exibir"
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr "pesquisar"
 
-#: rhodecode/templates/base/base.html:222
+#: rhodecode/templates/base/base.html:223
+#, fuzzy
+msgid "lock"
+msgstr "destravar"
+
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr "grupos de repositórios"
 
-#: rhodecode/templates/base/base.html:224
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr "grupos de usuários"
 
-#: rhodecode/templates/base/base.html:225
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr "permissões"
 
-#: rhodecode/templates/base/base.html:238
+#: rhodecode/templates/base/base.html:239
+#, fuzzy
+msgid "defaults"
+msgstr "excluir"
+
 #: rhodecode/templates/base/base.html:240
+msgid "settings"
+msgstr "configurações"
+
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr "Seguidores"
 
-#: rhodecode/templates/base/base.html:246
-#: rhodecode/templates/base/base.html:248
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr "Bifurcações"
 
-#: rhodecode/templates/base/base.html:327
-#: rhodecode/templates/base/base.html:329
-#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
 #: rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr "Pesquisar"
@@ -3000,7 +3187,7 @@
 msgstr "adicionar outro comentário"
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr "Parar de seguir este repositório"
@@ -3014,14 +3201,26 @@
 msgid "Group"
 msgstr "Grupo"
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr "pesquisa truncada"
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr "nenhum arquivo corresponde"
 
+#: rhodecode/templates/base/root.html:51
+msgid "Open new pull request for selected changesets"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr "Mostrar alterações selecionadas __S -> __E"
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr "Link da seleção"
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, fuzzy, python-format
 msgid "%s Bookmarks"
@@ -3029,8 +3228,9 @@
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
 #: rhodecode/templates/tags/tags_data.html:8
 msgid "Author"
 msgstr "Autor"
@@ -3045,36 +3245,16 @@
 msgid "Compare branches"
 msgstr "ramos"
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
 #, fuzzy
 msgid "Compare"
 msgstr "comparar exibir"
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr "nome"
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr "data"
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr "autor"
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr "revisão"
-
-#: rhodecode/templates/branches/branches_data.html:10
-#, fuzzy
-msgid "compare"
-msgstr "comparar exibir"
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, fuzzy, python-format
 msgid "%s Changelog"
@@ -3088,59 +3268,66 @@
 msgstr[1] "mostrando %d de %d revisões"
 
 #: rhodecode/templates/changelog/changelog.html:37
+#, fuzzy
+msgid "Clear selection"
+msgstr "Configurações de busca"
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:37
-#: rhodecode/templates/forks/forks_data.html:21
+#: rhodecode/templates/changelog/changelog.html:40
 #, fuzzy
-msgid "Compare fork"
+msgid "Compare fork with parent"
 msgstr "comparar exibir"
 
-#: rhodecode/templates/changelog/changelog.html:46
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr "Mostrar"
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr "mostrar mais"
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr "Número de arquivos afetados, clique para mostrar mais detalhes"
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 #, fuzzy
 msgid "Changeset status"
 msgstr "Conjuntos de mudanças"
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr "Progenitor"
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr "Sem progenitores"
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr "mesclar"
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -3148,44 +3335,42 @@
 msgid "branch"
 msgstr "ramo"
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr "marcador"
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr "etiqueta"
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr "Mostrar alterações selecionadas __S -> __E"
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr "Ainda não há alteações"
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr "removidos"
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr "alterados"
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr "adicionados"
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
 msgstr "%s arquivos afetados"
@@ -3199,17 +3384,22 @@
 msgid "Changeset"
 msgstr "Conjunto de Mudanças"
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
 msgstr "diff bruto"
 
-#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset.html:50
+#, fuzzy
+msgid "patch diff"
+msgstr "diff bruto"
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
 msgstr "descarregar diff"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "%d comment"
@@ -3217,7 +3407,7 @@
 msgstr[0] "%d comentário"
 msgstr[1] "%d comentários"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
@@ -3225,14 +3415,23 @@
 msgstr[0] "(%d em linha)"
 msgstr[1] "(%d em linha)"
 
-#: rhodecode/templates/changeset/changeset.html:103
-#, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr "%s arquivos afetados com %s inserções e %s exclusões"
-
-#: rhodecode/templates/changeset/changeset.html:119
-msgid "Changeset was too big and was cut off..."
-msgstr "Conjunto de mudanças era grande demais e foi cortado..."
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
+#, fuzzy, python-format
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] "arquivo alterado"
+msgstr[1] ""
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, fuzzy, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] "%s arquivos afetados com %s inserções e %s exclusões"
+msgstr[1] ""
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3300,15 +3499,18 @@
 msgid "Compare View"
 msgstr "Exibir Comparação"
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+#, fuzzy
+msgid "Show combined compare"
+msgstr "mostrar comentários em linha"
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
 msgid "Files affected"
 msgstr "Arquivos afetados"
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
-msgstr "diff"
+msgid "show full diff for this file"
+msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:27
 msgid "show inline comments"
@@ -3320,9 +3522,18 @@
 msgstr "Nenhum conjunto de alterações ainda."
 
 #: rhodecode/templates/compare/compare_diff.html:37
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, fuzzy, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] "mostrar comentários em linha"
+msgstr[1] ""
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
 #, fuzzy
-msgid "Outgoing changesets"
-msgstr "Nenhum conjunto de alterações ainda."
+msgid "No files"
+msgstr "arquivos"
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
 #: rhodecode/templates/data_table/_dt_elements.html:41
@@ -3331,42 +3542,126 @@
 msgstr "Bifurcação"
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
 msgstr "Repositório Mercurial"
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
 msgstr "Repositório Git"
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr "repositório público"
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr "Bifurcação de"
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr "Nenhum conjunto de alterações ainda."
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr "Assinar o feed rss de %s"
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr "Assinar o feed atom de %s"
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, python-format
 msgid "Confirm to delete this user: %s"
 msgstr "Confirma excluir este usuário: %s"
 
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+#, fuzzy
+msgid "New status$"
+msgstr "Conjuntos de mudanças"
+
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
+#, fuzzy
+msgid "This is a notification from RhodeCode."
 msgstr "Esta é uma notificação do RhodeCode."
 
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+#, fuzzy
+msgid "title"
+msgstr "escrever"
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+#, fuzzy
+msgid "description"
+msgstr "Descrição"
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+#, fuzzy
+msgid "View this pull request here"
+msgstr "Confirma excluir este repositório"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, fuzzy, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr "repositório [criado]"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+#, fuzzy
+msgid "New status"
+msgstr "Conjuntos de mudanças"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+#, fuzzy
+msgid "A new user have registered in RhodeCode"
+msgstr "Você se registrou com sucesso no rhodecode"
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
+msgstr ""
+
 #: rhodecode/templates/errors/error_document.html:46
 #, python-format
 msgid "You will be redirected to %s in %s seconds"
@@ -3382,13 +3677,13 @@
 msgstr "Diff do arquivo"
 
 #: rhodecode/templates/files/files.html:4
-#: rhodecode/templates/files/files.html:72
+#: rhodecode/templates/files/files.html:74
 #, fuzzy, python-format
 msgid "%s files"
 msgstr "arquivos"
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr "arquivos"
 
@@ -3466,7 +3761,7 @@
 msgstr "pesquisar lista de arquivos"
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:65
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 msgid "add new file"
 msgstr "adicionar novo arquivo"
 
@@ -3499,18 +3794,18 @@
 msgstr "editar arquivo"
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr "mostrar anotação"
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr "mostrar como bruto"
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr "descarregar como bruto"
 
@@ -3522,44 +3817,50 @@
 msgid "Editing file"
 msgstr "Editando arquivo"
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr "Histórico"
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 #, fuzzy
 msgid "diff to revision"
 msgstr "próxima revisão"
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 #, fuzzy
 msgid "show at revision"
 msgstr "próxima revisão"
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+#, fuzzy
+msgid "show full history"
+msgstr "Carregando lista de arquivos..."
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, fuzzy, python-format
 msgid "%s author"
 msgid_plural "%s authors"
 msgstr[0] "autor"
 msgstr[1] "autors"
 
-#: rhodecode/templates/files/files_source.html:36
+#: rhodecode/templates/files/files_source.html:6
+#, fuzzy
+msgid "Load file history"
+msgstr "Carregando lista de arquivos..."
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr "mostrar fonte"
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr "Arquivo binário (%s)"
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr "Arquivo é grande demais para exibir"
 
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr "Link da seleção"
-
 #: rhodecode/templates/files/files_ypjax.html:5
 msgid "annotation"
 msgstr "anotação"
@@ -3632,7 +3933,7 @@
 msgid "forked"
 msgstr "bifurcado"
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr "Ainda não há bifurcações"
 
@@ -3647,7 +3948,7 @@
 msgstr "diário público de %s - feed %s"
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:27
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr "Atualizar"
 
@@ -3670,19 +3971,19 @@
 msgid "ADD"
 msgstr "ADICIONAR"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr "seguindo usuário"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr "usuário"
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr "Você não está seguindo quaisquer usuários ou repositórios"
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr "Ainda não há entradas"
 
@@ -3705,7 +4006,7 @@
 msgid "New pull request"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest.html:28
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr ""
 
@@ -3715,18 +4016,18 @@
 msgstr "comparar exibir"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:70
-#: rhodecode/templates/pullrequests/pullrequest_show.html:82
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:79
-#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 #, fuzzy
 msgid "owner"
 msgstr "Dono"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:91
-#: rhodecode/templates/pullrequests/pullrequest_show.html:109
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
 msgstr ""
 
@@ -3742,11 +4043,6 @@
 msgid "Title"
 msgstr "escrever"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:115
-#, fuzzy
-msgid "description"
-msgstr "Descrição"
-
 #: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr ""
@@ -3756,6 +4052,11 @@
 msgid "Closed %s"
 msgstr ""
 
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "with status %s"
+msgstr ""
+
 #: rhodecode/templates/pullrequests/pullrequest_show.html:31
 #, fuzzy
 msgid "Status"
@@ -3769,28 +4070,27 @@
 msgid "Still not reviewed by"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:47
+#: rhodecode/templates/pullrequests/pullrequest_show.html:48
 #, python-format
 msgid "%d reviewer"
 msgid_plural "%d reviewers"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:54
+#: rhodecode/templates/pullrequests/pullrequest_show.html:50
+msgid "pull request was reviewed by all reviewers"
+msgstr ""
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:58
 #, fuzzy
 msgid "Created on"
 msgstr "criar um agora"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:61
+#: rhodecode/templates/pullrequests/pullrequest_show.html:65
 #, fuzzy
 msgid "Compare view"
 msgstr "comparar exibir"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:65
-#, fuzzy
-msgid "Incoming changesets"
-msgstr "Nenhum conjunto de alterações ainda."
-
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
 #, fuzzy
 msgid "all pull requests"
@@ -3863,27 +4163,32 @@
 msgid "%s Shortlog"
 msgstr "log resumido"
 
-#: rhodecode/templates/shortlog/shortlog.html:14
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr "log resumido"
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr "revisão"
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr "idade"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:18
-msgid "No commit message"
-msgstr "Nenhuma mensagem de commit"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:62
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr "autor"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
 msgstr "Adicionar ou enviar arquivos diretamente pelo RhodeCode"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:71
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
 msgstr "Fazer push de novo repositório"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:79
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 msgid "Existing repository?"
 msgstr "Repositório existente?"
 
@@ -3911,129 +4216,139 @@
 msgid "ATOM"
 msgstr "ATOM"
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, fuzzy, python-format
+msgid "Repository locked by %s"
+msgstr "repositórios"
+
+#: rhodecode/templates/summary/summary.html:72
+#, fuzzy
+msgid "Repository unlocked"
+msgstr "repositórios"
+
+#: rhodecode/templates/summary/summary.html:91
 #, python-format
 msgid "Non changable ID %s"
 msgstr "ID não alterável %s"
 
-#: rhodecode/templates/summary/summary.html:87
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr "público"
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr "clone remoto"
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr "Contato"
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr "URL de clonagem"
 
-#: rhodecode/templates/summary/summary.html:133
+#: rhodecode/templates/summary/summary.html:142
 msgid "Show by Name"
 msgstr "Mostrar por Nome"
 
-#: rhodecode/templates/summary/summary.html:134
+#: rhodecode/templates/summary/summary.html:143
 msgid "Show by ID"
 msgstr "Mostrar por ID"
 
-#: rhodecode/templates/summary/summary.html:142
+#: rhodecode/templates/summary/summary.html:151
 msgid "Trending files"
 msgstr "Tendências em arquivos"
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr "habilitar"
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr "Download"
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr "Ainda não há downloads"
 
-#: rhodecode/templates/summary/summary.html:164
+#: rhodecode/templates/summary/summary.html:173
 msgid "Downloads are disabled for this repository"
 msgstr "Downloads estão desabilitados para este repositório"
 
-#: rhodecode/templates/summary/summary.html:170
+#: rhodecode/templates/summary/summary.html:179
 #, fuzzy
 msgid "Download as zip"
 msgstr "descarregar como bruto"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "Check this to download archive with subrepos"
 msgstr "Marque isto para descarregar arquivo com subrepositórios"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr "com subrepositórios"
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
 msgstr "Atividade de commit por dia / autor"
 
-#: rhodecode/templates/summary/summary.html:197
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
 msgstr "Estatísticas coletadas:"
 
-#: rhodecode/templates/summary/summary.html:218
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr "Log resumido"
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 msgid "Quick start"
 msgstr "Início rápido"
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:236
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:293
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
 msgstr "Descarregar %s como %s"
 
-#: rhodecode/templates/summary/summary.html:650
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr "commits"
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr "arquivos adicionados"
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr "arquivos alterados"
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr "arquivos removidos"
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr "commit"
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr "arquivo adicionado"
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr "arquivo alterado"
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr "arquivo removido"
 
@@ -4042,3 +4357,8 @@
 msgid "%s Tags"
 msgstr "%s atrás"
 
+#: rhodecode/templates/tags/tags.html:29
+#, fuzzy
+msgid "Compare tags"
+msgstr "comparar exibir"
+
--- a/rhodecode/i18n/rhodecode.pot	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/rhodecode.pot	Thu Dec 13 22:54:21 2012 +0100
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: RhodeCode 1.4.0b\n"
+"Project-Id-Version: RhodeCode 1.5.0b\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-09-02 20:30+0200\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,35 +17,36 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.6\n"
 
-#: rhodecode/controllers/changelog.py:94
+#: rhodecode/controllers/changelog.py:95
 msgid "All Branches"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:90 rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, python-format
 msgid "%s line context"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:333 rhodecode/controllers/changeset.py:348
-#: rhodecode/lib/diffs.py:70
-msgid "binary file"
-msgstr ""
-
-#: rhodecode/controllers/changeset.py:408
+#: rhodecode/controllers/changeset.py:315 rhodecode/controllers/pullrequests.py:411
+#, python-format
+msgid "Status change -> %s"
+msgstr ""
+
+#: rhodecode/controllers/changeset.py:346
 msgid ""
 "Changing status on a changeset associated witha closed pull request is not "
 "allowed"
 msgstr ""
 
-#: rhodecode/controllers/compare.py:69
+#: rhodecode/controllers/compare.py:75 rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 msgid "There are no changesets yet"
 msgstr ""
 
@@ -75,128 +76,138 @@
 "fulfilling the request."
 msgstr ""
 
-#: rhodecode/controllers/feed.py:49
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
 msgstr ""
 
-#: rhodecode/controllers/feed.py:50
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
 msgstr ""
 
-#: rhodecode/controllers/feed.py:75
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
+msgid "Changeset was too big and was cut off..."
+msgstr ""
+
+#: rhodecode/controllers/feed.py:92
 msgid "commited on"
 msgstr ""
 
-#: rhodecode/controllers/files.py:84
+#: rhodecode/controllers/files.py:86
 msgid "click here to add new file"
 msgstr ""
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, python-format
 msgid "There are no files yet %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:239 rhodecode/controllers/files.py:299
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:266
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
 msgstr ""
 
-#: rhodecode/controllers/files.py:271
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr ""
 
-#: rhodecode/controllers/files.py:282 rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:287 rhodecode/controllers/files.py:352
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr ""
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, python-format
 msgid "Added %s via RhodeCode"
 msgstr ""
 
-#: rhodecode/controllers/files.py:332
+#: rhodecode/controllers/files.py:358
 msgid "No content"
 msgstr ""
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 msgid "No filename"
 msgstr ""
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr ""
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:391
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr ""
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr ""
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr ""
 
-#: rhodecode/controllers/files.py:495 rhodecode/controllers/pullrequests.py:72
-#: rhodecode/controllers/summary.py:232 rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr ""
 
-#: rhodecode/controllers/files.py:496 rhodecode/controllers/pullrequests.py:76
-#: rhodecode/controllers/summary.py:233 rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:73 rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from the "
 "filesystem please run the application again in order to rescan repositories"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:133 rhodecode/controllers/settings.py:72
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from the "
 "file system please run the application again in order to rescan repositories"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:167
+#: rhodecode/controllers/forks.py:168
 #, python-format
 msgid "forked %s repository as %s"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:181
+#: rhodecode/controllers/forks.py:182
 #, python-format
 msgid "An error occurred during repository forking %s"
 msgstr ""
 
-#: rhodecode/controllers/journal.py:202 rhodecode/controllers/journal.py:239
-msgid "public journal"
-msgstr ""
-
 #: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
-#: rhodecode/templates/base/base.html:220
+msgid "public journal"
+msgstr ""
+
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr ""
 
@@ -212,79 +223,104 @@
 msgid "Your password reset was successful, new password has been sent to your email"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:74 rhodecode/model/scm.py:549
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:158
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:160
+#: rhodecode/controllers/pullrequests.py:188
 msgid "error during creation of pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:181
+#: rhodecode/controllers/pullrequests.py:220
 msgid "Successfully opened new pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:184
+#: rhodecode/controllers/pullrequests.py:223
 msgid "Error occurred during sending pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:217
+#: rhodecode/controllers/pullrequests.py:256
 msgid "Successfully deleted pull request"
 msgstr ""
 
-#: rhodecode/controllers/search.py:131
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr ""
 
-#: rhodecode/controllers/search.py:136
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
 msgstr ""
 
-#: rhodecode/controllers/search.py:140
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:107 rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/settings.py:108 rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:125 rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/settings.py:126 rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:143 rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/settings.py:144 rhodecode/controllers/admin/repos.py:304
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was moved or renamed  from the "
 "filesystem please run the application again in order to rescan repositories"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:155 rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/settings.py:156 rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:159 rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/settings.py:160 rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:138
+#: rhodecode/controllers/settings.py:179
+msgid "unlocked"
+msgstr ""
+
+#: rhodecode/controllers/settings.py:182
+msgid "locked"
+msgstr ""
+
+#: rhodecode/controllers/settings.py:184
+#, python-format
+msgid "Repository has been %s"
+msgstr ""
+
+#: rhodecode/controllers/settings.py:188 rhodecode/controllers/admin/repos.py:424
+msgid "An error occurred during unlocking"
+msgstr ""
+
+#: rhodecode/controllers/summary.py:140
 msgid "No data loaded yet"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:142
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/controllers/summary.py:144
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr ""
 
+#: rhodecode/controllers/admin/defaults.py:96
+msgid "Default settings updated successfully"
+msgstr ""
+
+#: rhodecode/controllers/admin/defaults.py:110
+msgid "error occurred during update of defaults"
+msgstr ""
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr ""
@@ -342,18 +378,23 @@
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -366,227 +407,223 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
-#: rhodecode/templates/base/base.html:197 rhodecode/templates/base/base.html:337
-#: rhodecode/templates/base/base.html:339 rhodecode/templates/base/base.html:341
+#: rhodecode/templates/base/base.html:197 rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352 rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:65
-msgid "disabled"
-msgstr ""
-
-#: rhodecode/controllers/admin/permissions.py:67
-msgid "allowed with manual account activation"
-msgstr ""
-
 #: rhodecode/controllers/admin/permissions.py:69
-msgid "allowed with automatic account activation"
+msgid "disabled"
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+msgid "allowed with manual account activation"
+msgstr ""
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr ""
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:192
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:196
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:227
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:319
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:348
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:385
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:422
-msgid "An error occurred during unlocking"
-msgstr ""
-
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:451 rhodecode/model/validators.py:299
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:464
-msgid "Pulled from remote location"
-msgstr ""
-
 #: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr ""
+
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:482
-msgid "Nothing"
-msgstr ""
-
 #: rhodecode/controllers/admin/repos.py:484
+msgid "Nothing"
+msgstr ""
+
+#: rhodecode/controllers/admin/repos.py:486
 #, python-format
 msgid "Marked repo %s as fork of %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:488
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:116
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:129
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:163
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:176
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:194
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:202
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:208
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:213
-#: rhodecode/controllers/admin/repos_groups.py:218
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:238
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:258
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:121
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:129
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:160
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:164
-#: rhodecode/controllers/admin/settings.py:275
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:200
+#: rhodecode/controllers/admin/settings.py:207
 msgid "Updated visualisation settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:205
+#: rhodecode/controllers/admin/settings.py:212
 msgid "error occurred during updating visualisation settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:271
+#: rhodecode/controllers/admin/settings.py:295
 msgid "Updated VCS settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:285
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:297
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:301
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:320
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:375
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:406
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:421
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
 msgstr ""
@@ -601,97 +638,97 @@
 msgid "error occurred during creation of user %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:171
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:207
-msgid "successfully deleted user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:212
+msgid "successfully deleted user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:271
-msgid "Revoked 'repository create' permission to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:277
+msgid "Revoked 'repository create' permission to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:283
 msgid "Granted 'repository fork' permission to user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:282
-msgid "Revoked 'repository fork' permission to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
+msgid "Revoked 'repository fork' permission to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 msgid "An error occurred during permissions saving"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:303
-#, python-format
-msgid "Added email %s to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:309
+#, python-format
+msgid "Added email %s to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:315
 msgid "An error occurred during email saving"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 msgid "Removed email from user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:95
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:135
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:157
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:174
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:233
+#: rhodecode/controllers/admin/users_groups.py:257
 msgid "Granted 'repository create' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:238
+#: rhodecode/controllers/admin/users_groups.py:262
 msgid "Revoked 'repository create' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:244
+#: rhodecode/controllers/admin/users_groups.py:268
 msgid "Granted 'repository fork' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:249
+#: rhodecode/controllers/admin/users_groups.py:273
 msgid "Revoked 'repository fork' permission to users group"
 msgstr ""
 
@@ -703,298 +740,323 @@
 msgid "You need to be a signed in to view this page"
 msgstr ""
 
-#: rhodecode/lib/diffs.py:86
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr ""
+
+#: rhodecode/lib/diffs.py:90
 msgid "Changeset was too big and was cut off, use diff menu to display this diff"
 msgstr ""
 
-#: rhodecode/lib/diffs.py:96
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:372
+#: rhodecode/lib/helpers.py:373
 #, python-format
 msgid "%a, %d %b %Y %H:%M:%S"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:484
+#: rhodecode/lib/helpers.py:485
 msgid "True"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:488
+#: rhodecode/lib/helpers.py:489
 msgid "False"
 msgstr ""
 
+#: rhodecode/lib/helpers.py:529
+#, python-format
+msgid "Deleted branch: %s"
+msgstr ""
+
 #: rhodecode/lib/helpers.py:532
+#, python-format
+msgid "Created tag: %s"
+msgstr ""
+
+#: rhodecode/lib/helpers.py:545
 msgid "Changeset not found"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:555
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:561
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:581
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:583 rhodecode/templates/changelog/changelog.html:48
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:606
-msgid "fork name "
-msgstr ""
-
-#: rhodecode/lib/helpers.py:620
+#: rhodecode/lib/helpers.py:640
+#, python-format
+msgid "fork name %s"
+msgstr ""
+
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:626
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:628 rhodecode/lib/helpers.py:638
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:630
+#: rhodecode/lib/helpers.py:663
 msgid "[created] repository as fork"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:632 rhodecode/lib/helpers.py:640
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:634 rhodecode/lib/helpers.py:642
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:636
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:644
+#: rhodecode/lib/helpers.py:677
 msgid "[created] user"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:646
+#: rhodecode/lib/helpers.py:679
 msgid "[updated] user"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:648
+#: rhodecode/lib/helpers.py:681
 msgid "[created] users group"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:650
+#: rhodecode/lib/helpers.py:683
 msgid "[updated] users group"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:652
+#: rhodecode/lib/helpers.py:685
 msgid "[commented] on revision in repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:654
+#: rhodecode/lib/helpers.py:687
 msgid "[commented] on pull request for"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:656
+#: rhodecode/lib/helpers.py:689
 msgid "[closed] pull request for"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:658
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:660
+#: rhodecode/lib/helpers.py:693
 msgid "[committed via RhodeCode] into repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:662
+#: rhodecode/lib/helpers.py:695
 msgid "[pulled from remote] into repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:664
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:666
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:668
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:840
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:844
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:335
+#: rhodecode/lib/utils2.py:403
 #, python-format
 msgid "%d year"
 msgid_plural "%d years"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:336
+#: rhodecode/lib/utils2.py:404
 #, python-format
 msgid "%d month"
 msgid_plural "%d months"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:337
+#: rhodecode/lib/utils2.py:405
 #, python-format
 msgid "%d day"
 msgid_plural "%d days"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:338
+#: rhodecode/lib/utils2.py:406
 #, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:339
+#: rhodecode/lib/utils2.py:407
 #, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:340
+#: rhodecode/lib/utils2.py:408
 #, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/lib/utils2.py:355
+#: rhodecode/lib/utils2.py:424
+#, python-format
+msgid "in %s"
+msgstr ""
+
+#: rhodecode/lib/utils2.py:426
 #, python-format
 msgid "%s ago"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:357
+#: rhodecode/lib/utils2.py:428
+#, python-format
+msgid "in %s and %s"
+msgstr ""
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:360
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr ""
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 msgid "password reset link"
 msgstr ""
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+msgid "Repository no access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+msgid "Repository read access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+msgid "Repository write access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+msgid "Repository admin access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+msgid "Repositories Group no access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+msgid "Repositories Group read access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+msgid "Repositories Group write access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+msgid "Repositories Group admin access"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+msgid "RhodeCode Administrator"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+msgid "Repository creation disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+msgid "Repository creation enabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+msgid "Repository forking disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+msgid "Repository forking enabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+msgid "Register disabled"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+msgid "Approved"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr ""
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
 msgstr ""
 
-#: rhodecode/model/comment.py:157
+#: rhodecode/model/comment.py:173
 msgid "[Mention]"
 msgstr ""
 
-#: rhodecode/model/db.py:1140
-msgid "Repository no access"
-msgstr ""
-
-#: rhodecode/model/db.py:1141
-msgid "Repository read access"
-msgstr ""
-
-#: rhodecode/model/db.py:1142
-msgid "Repository write access"
-msgstr ""
-
-#: rhodecode/model/db.py:1143
-msgid "Repository admin access"
-msgstr ""
-
-#: rhodecode/model/db.py:1145
-msgid "Repositories Group no access"
-msgstr ""
-
-#: rhodecode/model/db.py:1146
-msgid "Repositories Group read access"
-msgstr ""
-
-#: rhodecode/model/db.py:1147
-msgid "Repositories Group write access"
-msgstr ""
-
-#: rhodecode/model/db.py:1148
-msgid "Repositories Group admin access"
-msgstr ""
-
-#: rhodecode/model/db.py:1150
-msgid "RhodeCode Administrator"
-msgstr ""
-
-#: rhodecode/model/db.py:1151
-msgid "Repository creation disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1152
-msgid "Repository creation enabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1153
-msgid "Repository forking disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1154
-msgid "Repository forking enabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1155
-msgid "Register disabled"
-msgstr ""
-
-#: rhodecode/model/db.py:1156
-msgid "Register new user with RhodeCode with manual activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1159
-msgid "Register new user with RhodeCode with auto activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1579
-msgid "Not Reviewed"
-msgstr ""
-
-#: rhodecode/model/db.py:1580
-msgid "Approved"
-msgstr ""
-
-#: rhodecode/model/db.py:1581
-msgid "Rejected"
-msgstr ""
-
-#: rhodecode/model/db.py:1582
-msgid "Under Review"
-msgstr ""
-
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
 msgstr ""
@@ -1014,35 +1076,41 @@
 msgstr ""
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
+#, python-format
+msgid "commented on commit at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:221
-msgid "sent message"
+#, python-format
+msgid "sent message at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
+#, python-format
+msgid "mentioned you at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:223
-msgid "registered in RhodeCode"
+#, python-format
+msgid "registered in RhodeCode at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
+#, python-format
+msgid "opened new pull request at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:225
-msgid "commented on pull request"
-msgstr ""
-
-#: rhodecode/model/pull_request.py:84
+#, python-format
+msgid "commented on pull request at %(when)s"
+msgstr ""
+
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
 msgstr ""
 
-#: rhodecode/model/scm.py:535
+#: rhodecode/model/scm.py:542
 msgid "latest tip"
 msgstr ""
 
@@ -1050,152 +1118,156 @@
 msgid "new user registration"
 msgstr ""
 
-#: rhodecode/model/user.py:255 rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/model/user.py:323
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/model/user.py:329
+#: rhodecode/model/user.py:331
 #, python-format
 msgid ""
 "user \"%s\" still owns %s repositories and cannot be removed. Switch owners "
 "or remove those repositories. %s"
 msgstr ""
 
-#: rhodecode/model/validators.py:35 rhodecode/model/validators.py:36
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
 msgstr ""
 
-#: rhodecode/model/validators.py:82
+#: rhodecode/model/validators.py:83
 #, python-format
 msgid "Username \"%(username)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:84
+#: rhodecode/model/validators.py:85
 #, python-format
 msgid "Username \"%(username)s\" is forbidden"
 msgstr ""
 
-#: rhodecode/model/validators.py:86
+#: rhodecode/model/validators.py:87
 msgid ""
 "Username may only contain alphanumeric characters underscores, periods or "
 "dashes and must begin with alphanumeric character"
 msgstr ""
 
-#: rhodecode/model/validators.py:114
+#: rhodecode/model/validators.py:115
 #, python-format
 msgid "Username %(username)s is not valid"
 msgstr ""
 
-#: rhodecode/model/validators.py:133
-msgid "Invalid users group name"
-msgstr ""
-
 #: rhodecode/model/validators.py:134
+msgid "Invalid users group name"
+msgstr ""
+
+#: rhodecode/model/validators.py:135
 #, python-format
 msgid "Users group \"%(usersgroup)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:136
+#: rhodecode/model/validators.py:137
 msgid ""
 "users group name may only contain  alphanumeric characters underscores, "
 "periods or dashes and must begin with alphanumeric character"
 msgstr ""
 
-#: rhodecode/model/validators.py:174
+#: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
 msgstr ""
 
-#: rhodecode/model/validators.py:175
+#: rhodecode/model/validators.py:176
 #, python-format
 msgid "Group \"%(group_name)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:177
+#: rhodecode/model/validators.py:178
 #, python-format
 msgid "Repository with name \"%(group_name)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:235
+#: rhodecode/model/validators.py:236
 msgid "Invalid characters (non-ascii) in password"
 msgstr ""
 
-#: rhodecode/model/validators.py:250
+#: rhodecode/model/validators.py:251
 msgid "Passwords do not match"
 msgstr ""
 
-#: rhodecode/model/validators.py:267
-msgid "invalid password"
-msgstr ""
-
 #: rhodecode/model/validators.py:268
-msgid "invalid user name"
+msgid "invalid password"
 msgstr ""
 
 #: rhodecode/model/validators.py:269
+msgid "invalid user name"
+msgstr ""
+
+#: rhodecode/model/validators.py:270
 msgid "Your account is disabled"
 msgstr ""
 
-#: rhodecode/model/validators.py:313
+#: rhodecode/model/validators.py:314
 #, python-format
 msgid "Repository name %(repo)s is disallowed"
 msgstr ""
 
-#: rhodecode/model/validators.py:315
-#, python-format
-msgid "Repository named %(repo)s already exists"
-msgstr ""
-
 #: rhodecode/model/validators.py:316
 #, python-format
+msgid "Repository named %(repo)s already exists"
+msgstr ""
+
+#: rhodecode/model/validators.py:317
+#, python-format
 msgid "Repository \"%(repo)s\" already exists in group \"%(group)s\""
 msgstr ""
 
-#: rhodecode/model/validators.py:318
+#: rhodecode/model/validators.py:319
 #, python-format
 msgid "Repositories group with name \"%(repo)s\" already exists"
 msgstr ""
 
-#: rhodecode/model/validators.py:431
-msgid "invalid clone url"
-msgstr ""
-
 #: rhodecode/model/validators.py:432
+msgid "invalid clone url"
+msgstr ""
+
+#: rhodecode/model/validators.py:433
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
 msgstr ""
 
-#: rhodecode/model/validators.py:457
+#: rhodecode/model/validators.py:458
 msgid "Fork have to be the same type as parent"
 msgstr ""
 
-#: rhodecode/model/validators.py:478
+#: rhodecode/model/validators.py:473
+msgid "You don't have permissions to create repository in this group"
+msgstr ""
+
+#: rhodecode/model/validators.py:498
 msgid "This username or users group name is not valid"
 msgstr ""
 
-#: rhodecode/model/validators.py:562
+#: rhodecode/model/validators.py:582
 msgid "This is not a valid path"
 msgstr ""
 
-#: rhodecode/model/validators.py:577
-msgid "This e-mail address is already taken"
-msgstr ""
-
 #: rhodecode/model/validators.py:597
+msgid "This e-mail address is already taken"
+msgstr ""
+
+#: rhodecode/model/validators.py:617
 #, python-format
 msgid "e-mail \"%(email)s\" does not exist."
 msgstr ""
 
-#: rhodecode/model/validators.py:634
+#: rhodecode/model/validators.py:654
 msgid ""
 "The LDAP Login attribute of the CN must be specified - this is the name of "
 "the attribute that is equivalent to \"username\""
 msgstr ""
 
-#: rhodecode/model/validators.py:653
+#: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
 msgstr ""
@@ -1218,7 +1290,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:221
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr ""
 
@@ -1227,7 +1299,7 @@
 msgid "ADD REPOSITORY"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:29 rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1236,8 +1308,9 @@
 msgid "Group name"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:30 rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142 rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:30 rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138 rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1246,134 +1319,127 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr ""
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:70 rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71 rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:157
-#: rhodecode/templates/admin/users/user_edit_my_account.html:193
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36 rhodecode/templates/tags/tags_data.html:6
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51 rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:73
 msgid "Last change"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:73 rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:159
-#: rhodecode/templates/journal/journal.html:188
+#: rhodecode/templates/index_base.html:74 rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
 msgid "Tip"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:74 rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:75 rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:75
-#: rhodecode/templates/summary/summary.html:48
-#: rhodecode/templates/summary/summary.html:51
-msgid "RSS"
-msgstr ""
-
 #: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/summary/summary.html:48
+#: rhodecode/templates/summary/summary.html:51
+msgid "RSS"
+msgstr ""
+
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:110 rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr ""
-
-#: rhodecode/templates/index_base.html:117 rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr ""
-
-#: rhodecode/templates/index_base.html:140
-msgid "Group Name"
-msgstr ""
-
-#: rhodecode/templates/index_base.html:158 rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167 rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:159 rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168 rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177 rhodecode/templates/index_base.html:267
 msgid "Last Change"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209 rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr ""
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210 rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr ""
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211 rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 msgid "Loading..."
 msgstr ""
 
@@ -1391,7 +1457,7 @@
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr ""
 
@@ -1448,23 +1514,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr ""
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr ""
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr ""
 
@@ -1477,6 +1543,7 @@
 msgstr ""
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1504,7 +1571,7 @@
 msgstr ""
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr ""
 
@@ -1526,20 +1593,22 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr ""
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr ""
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37 rhodecode/templates/tags/tags_data.html:7
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52 rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr ""
 
@@ -1547,10 +1616,79 @@
 msgid "From IP"
 msgstr ""
 
-#: rhodecode/templates/admin/admin_log.html:53
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr ""
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+msgid "Repositories defaults"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+msgid "Defaults"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+msgid "Enable locking"
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr ""
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
 msgstr ""
@@ -1623,18 +1761,6 @@
 msgid "E-mail Attribute"
 msgstr ""
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr ""
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1649,7 +1775,7 @@
 msgstr ""
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:254 rhodecode/templates/base/base.html:256
+#: rhodecode/templates/base/base.html:267 rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr ""
 
@@ -1677,7 +1803,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1691,10 +1817,6 @@
 msgid "Anonymous access"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr ""
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
 msgid ""
 "All default permissions on each repository will be reset to choosen "
@@ -1703,23 +1825,40 @@
 msgstr ""
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr ""
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr ""
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+msgid ""
+"All default permissions on each repository group will be reset to choosen "
+"permission, note that all custom default permission on repositories group "
+"will be lost"
+msgstr ""
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
+#: rhodecode/templates/admin/permissions/permissions.html:85
 msgid "Repository forking"
 msgstr ""
 
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:241
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr ""
 
@@ -1739,8 +1878,8 @@
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr ""
 
@@ -1750,24 +1889,11 @@
 msgid "Optional http[s] url from which repository should be cloned."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 msgid "Optionaly select a group to put this repository into."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 msgid "Type of repository to create."
 msgstr ""
@@ -1793,15 +1919,6 @@
 msgid "Keep it short and to the point. Use a README file for longer descriptions."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid ""
-"Private repositories are only visible to people explicitly added as "
-"collaborators."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
 msgstr ""
@@ -1816,12 +1933,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr ""
 
@@ -1835,31 +1954,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-msgid "Enable locking"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 msgid "Change owner of this repository."
 msgstr ""
@@ -1867,11 +1961,11 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
@@ -1929,77 +2023,102 @@
 msgid "Confirm to invalidate repository cache"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:195
-#: rhodecode/templates/base/base.html:318 rhodecode/templates/base/base.html:320
-#: rhodecode/templates/base/base.html:322
-msgid "Public journal"
+#: rhodecode/templates/admin/repos/repo_edit.html:193
+msgid ""
+"Manually invalidate cache for this repository. On first access repository "
+"will be cached again"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:198
+msgid "List of cached values"
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:201
-msgid "Remove from public journal"
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+msgid "Key"
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
+#: rhodecode/templates/base/base.html:331 rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
+msgid "Public journal"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:224
+msgid "Remove from public journal"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:208
+#: rhodecode/templates/admin/repos/repo_edit.html:231
 msgid ""
 "All actions made on this repository will be accessible to everyone in public "
 "journal"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 msgid "Locking"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Confirm to unlock repository"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "Confirm to lock repository"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:224
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 msgid "Repository is not locked"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+#: rhodecode/templates/admin/repos/repo_edit.html:252
 msgid "Force locking on repository. Works only when anonymous access is disabled"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:236
-msgid "Set as fork of"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:245
-msgid "Manually set this repository as a fork of another from the list"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:251
-#: rhodecode/templates/changeset/changeset_file_comment.html:26
-msgid "Delete"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-msgid "Remove this repository"
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-#: rhodecode/templates/journal/journal.html:84
-msgid "Confirm to delete this repository"
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:259
+msgid "Set as fork of"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:268
+msgid "Manually set this repository as a fork of another from the list"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:274
+#: rhodecode/templates/changeset/changeset_file_comment.html:26
+msgid "Delete"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:278
+msgid "Remove this repository"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:278
+msgid "Confirm to delete this repository"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
 "This repository will be renamed in a special way in order to be unaccesible "
 "for RhodeCode and VCS systems.\n"
@@ -2025,7 +2144,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:217
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr ""
 
@@ -2036,8 +2155,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr ""
 
@@ -2060,12 +2179,12 @@
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:97
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:81
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:87
 msgid "Failed to remove user"
 msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:112
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:96
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:103
 msgid "Failed to remove users group"
 msgstr ""
 
@@ -2073,11 +2192,41 @@
 msgid "Repositories administration"
 msgstr ""
 
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:8
-msgid "Groups"
-msgstr ""
-
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:12
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:73
+msgid "apply to children"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:9
+#: rhodecode/templates/base/base.html:122 rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315 rhodecode/templates/base/base.html:317
+#: rhodecode/templates/bookmarks/bookmarks.html:11
+#: rhodecode/templates/branches/branches.html:10
+#: rhodecode/templates/changelog/changelog.html:10
+#: rhodecode/templates/changeset/changeset.html:10
+#: rhodecode/templates/changeset/changeset_range.html:9
+#: rhodecode/templates/compare/compare_diff.html:9
+#: rhodecode/templates/files/file_diff.html:8
+#: rhodecode/templates/files/files.html:8
+#: rhodecode/templates/files/files_add.html:15
+#: rhodecode/templates/files/files_edit.html:15
+#: rhodecode/templates/followers/followers.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/pullrequests/pullrequest.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
+#: rhodecode/templates/settings/repo_settings.html:9
+#: rhodecode/templates/shortlog/shortlog.html:10
+#: rhodecode/templates/summary/summary.html:8 rhodecode/templates/tags/tags.html:11
+msgid "Home"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:13
 msgid "with"
 msgstr ""
 
@@ -2103,7 +2252,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr ""
 
@@ -2139,20 +2288,22 @@
 msgid "action"
 msgstr ""
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr ""
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
 #, python-format
-msgid "Confirm to delete this group: %s"
-msgstr ""
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr ""
 
@@ -2245,8 +2396,8 @@
 msgstr ""
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr ""
 
@@ -2254,124 +2405,133 @@
 msgid "Visualisation settings"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:128
+#: rhodecode/templates/admin/settings/settings.html:127
+msgid "General"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:139
 msgid "Icons"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:133
-msgid "Show public repo icon on repositories"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:137
-msgid "Show private repo icon on repositories"
-msgstr ""
-
 #: rhodecode/templates/admin/settings/settings.html:144
+msgid "Show public repo icon on repositories"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:148
+msgid "Show private repo icon on repositories"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:155
 msgid "Meta-Tagging"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:149
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:176
+#: rhodecode/templates/admin/settings/settings.html:187
 msgid "VCS settings"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:185
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:190
+#: rhodecode/templates/admin/settings/settings.html:201
 msgid "require ssl for vcs operations"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:192
-msgid ""
-"RhodeCode will require SSL for pushing or pulling. If SSL is missing it will "
-"return HTTP Error 406: Not Acceptable"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:198
-msgid "Hooks"
-msgstr ""
-
 #: rhodecode/templates/admin/settings/settings.html:203
+msgid ""
+"RhodeCode will require SSL for pushing or pulling. If SSL is missing it will "
+"return HTTP Error 406: Not Acceptable"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:209
+msgid "Hooks"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:224
-msgid "Mercurial Extensions"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:229
-msgid "largefiles extensions"
-msgstr ""
-
-#: rhodecode/templates/admin/settings/settings.html:233
-msgid "hgsubversion extensions"
-msgstr ""
-
 #: rhodecode/templates/admin/settings/settings.html:235
+msgid "Mercurial Extensions"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:240
+msgid "largefiles extensions"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:244
+msgid "hgsubversion extensions"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:246
 msgid ""
 "Requires hgsubversion library installed. Allows clonning from svn remote "
 "locations"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:245
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:250
+#: rhodecode/templates/admin/settings/settings.html:261
 msgid ""
 "This a crucial application setting. If you are really sure you need to change"
 " this, you must restart application in order to make this setting take "
 "effect. Click this label to unlock."
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:251
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:252
+#: rhodecode/templates/admin/settings/settings.html:263
 msgid ""
 "Location where repositories are stored. After changing this value a restart, "
 "and rescan is required"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 msgid "Email to"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 msgid "Send"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 msgid "show"
 msgstr ""
 
@@ -2392,13 +2552,6 @@
 msgid "Password confirmation"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr ""
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr ""
@@ -2418,26 +2571,26 @@
 msgid "API key"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:59
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
 msgid "Inherit default permissions"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:152
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
 msgid ""
@@ -2445,46 +2598,48 @@
 "options does not have any action"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:158
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
 msgid "Fork repositories"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:186
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
 msgid "Nothing here yet"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:193
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:194
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 msgid "Permission"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:194
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 msgid "Edit Permission"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:243
+#: rhodecode/templates/admin/users/user_edit.html:247
 msgid "Email addresses"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, python-format
 msgid "Confirm to delete this email: %s"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:270
+#: rhodecode/templates/admin/users/user_edit.html:274
 msgid "New email address"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:277
+#: rhodecode/templates/admin/users/user_edit.html:281
 msgid "Add"
 msgstr ""
 
@@ -2540,30 +2695,32 @@
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40 rhodecode/templates/tags/tags_data.html:9
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55 rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, python-format
 msgid "Confirm to delete this repository: %s"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr ""
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr ""
 
@@ -2572,7 +2729,7 @@
 msgstr ""
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:223
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr ""
 
@@ -2602,7 +2759,7 @@
 msgstr ""
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr ""
 
@@ -2651,6 +2808,18 @@
 msgid "Group members"
 msgstr ""
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+msgid "No members yet"
+msgstr ""
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+msgid "Permissions defined for this group"
+msgstr ""
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+msgid "No permissions set yet"
+msgstr ""
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr ""
@@ -2693,31 +2862,8 @@
 msgid "Inbox"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:122 rhodecode/templates/base/base.html:300
-#: rhodecode/templates/base/base.html:302 rhodecode/templates/base/base.html:304
-#: rhodecode/templates/bookmarks/bookmarks.html:11
-#: rhodecode/templates/branches/branches.html:10
-#: rhodecode/templates/changelog/changelog.html:10
-#: rhodecode/templates/changeset/changeset.html:10
-#: rhodecode/templates/changeset/changeset_range.html:9
-#: rhodecode/templates/compare/compare_diff.html:9
-#: rhodecode/templates/files/file_diff.html:8
-#: rhodecode/templates/files/files.html:8
-#: rhodecode/templates/files/files_add.html:15
-#: rhodecode/templates/files/files_edit.html:15
-#: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
-#: rhodecode/templates/pullrequests/pullrequest.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
-#: rhodecode/templates/settings/repo_settings.html:9
-#: rhodecode/templates/shortlog/shortlog.html:10
-#: rhodecode/templates/summary/summary.html:8 rhodecode/templates/tags/tags.html:11
-msgid "Home"
-msgstr ""
-
-#: rhodecode/templates/base/base.html:123 rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311 rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:123 rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324 rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2737,6 +2883,7 @@
 msgstr ""
 
 #: rhodecode/templates/base/base.html:152 rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr ""
 
@@ -2775,47 +2922,63 @@
 msgstr ""
 
 #: rhodecode/templates/base/base.html:204 rhodecode/templates/base/base.html:206
-#: rhodecode/templates/base/base.html:227
-msgid "settings"
-msgstr ""
-
-#: rhodecode/templates/base/base.html:209
+msgid "repository settings"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:210
 #: rhodecode/templates/data_table/_dt_elements.html:80
 #: rhodecode/templates/forks/fork.html:13
 msgid "fork"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:211
-#: rhodecode/templates/changelog/changelog.html:40
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:213
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:222
+#: rhodecode/templates/base/base.html:223
+msgid "lock"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:224
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:225
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:238 rhodecode/templates/base/base.html:240
+#: rhodecode/templates/base/base.html:239
+msgid "defaults"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:240
+msgid "settings"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:251 rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:246 rhodecode/templates/base/base.html:248
+#: rhodecode/templates/base/base.html:259 rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:327 rhodecode/templates/base/base.html:329
-#: rhodecode/templates/base/base.html:331 rhodecode/templates/search/search.html:52
+#: rhodecode/templates/base/base.html:340 rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344 rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr ""
 
@@ -2824,7 +2987,7 @@
 msgstr ""
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr ""
@@ -2838,14 +3001,26 @@
 msgid "Group"
 msgstr ""
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr ""
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr ""
 
+#: rhodecode/templates/base/root.html:51
+msgid "Open new pull request for selected changesets"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr ""
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, python-format
 msgid "%s Bookmarks"
@@ -2853,8 +3028,9 @@
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39 rhodecode/templates/tags/tags_data.html:8
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54 rhodecode/templates/tags/tags_data.html:8
 msgid "Author"
 msgstr ""
 
@@ -2867,34 +3043,14 @@
 msgid "Compare branches"
 msgstr ""
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57 rhodecode/templates/tags/tags_data.html:10
 msgid "Compare"
 msgstr ""
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr ""
-
-#: rhodecode/templates/branches/branches_data.html:10
-msgid "compare"
-msgstr ""
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, python-format
 msgid "%s Changelog"
@@ -2908,57 +3064,63 @@
 msgstr[1] ""
 
 #: rhodecode/templates/changelog/changelog.html:37
+msgid "Clear selection"
+msgstr ""
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:37
-#: rhodecode/templates/forks/forks_data.html:21
-msgid "Compare fork"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:46
+#: rhodecode/templates/changelog/changelog.html:40
+msgid "Compare fork with parent"
+msgstr ""
+
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 msgid "Changeset status"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -2966,44 +3128,42 @@
 msgid "branch"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr ""
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
 msgstr ""
@@ -3017,17 +3177,21 @@
 msgid "Changeset"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset.html:50
+msgid "patch diff"
+msgstr ""
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "%d comment"
@@ -3035,7 +3199,7 @@
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
@@ -3043,14 +3207,23 @@
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
 #, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr ""
-
-#: rhodecode/templates/changeset/changeset.html:119
-msgid "Changeset was too big and was cut off..."
-msgstr ""
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] ""
+msgstr[1] ""
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3115,14 +3288,16 @@
 msgid "Compare View"
 msgstr ""
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+msgid "Show combined compare"
+msgstr ""
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
 msgid "Files affected"
 msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
+msgid "show full diff for this file"
 msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:27
@@ -3134,7 +3309,16 @@
 msgstr ""
 
 #: rhodecode/templates/compare/compare_diff.html:37
-msgid "Outgoing changesets"
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] ""
+msgstr[1] ""
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
+msgid "No files"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
@@ -3144,40 +3328,115 @@
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr ""
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr ""
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr ""
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr ""
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr ""
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, python-format
 msgid "Confirm to delete this user: %s"
 msgstr ""
 
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+msgid "New status$"
+msgstr ""
+
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
+msgid "This is a notification from RhodeCode."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid "User %s opened pull request for repository %s and wants you to review changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+msgid "title"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+msgid "description"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+msgid "View this pull request here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+msgid "New status"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+msgid "A new user have registered in RhodeCode"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
 msgstr ""
 
 #: rhodecode/templates/errors/error_document.html:46
@@ -3194,13 +3453,13 @@
 msgid "File diff"
 msgstr ""
 
-#: rhodecode/templates/files/files.html:4 rhodecode/templates/files/files.html:72
+#: rhodecode/templates/files/files.html:4 rhodecode/templates/files/files.html:74
 #, python-format
 msgid "%s files"
 msgstr ""
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr ""
 
@@ -3278,7 +3537,7 @@
 msgstr ""
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:65
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 msgid "add new file"
 msgstr ""
 
@@ -3311,18 +3570,18 @@
 msgstr ""
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr ""
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr ""
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr ""
 
@@ -3334,42 +3593,46 @@
 msgid "Editing file"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 msgid "diff to revision"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 msgid "show at revision"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+msgid "show full history"
+msgstr ""
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, python-format
 msgid "%s author"
 msgid_plural "%s authors"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/files/files_source.html:36
+#: rhodecode/templates/files/files_source.html:6
+msgid "Load file history"
+msgstr ""
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr ""
 
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr ""
-
 #: rhodecode/templates/files/files_ypjax.html:5
 msgid "annotation"
 msgstr ""
@@ -3441,7 +3704,7 @@
 msgid "forked"
 msgstr ""
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr ""
 
@@ -3454,7 +3717,7 @@
 msgstr ""
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:27
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr ""
 
@@ -3476,19 +3739,19 @@
 msgid "ADD"
 msgstr ""
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr ""
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr ""
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr ""
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr ""
 
@@ -3509,7 +3772,7 @@
 msgid "New pull request"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest.html:28
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr ""
 
@@ -3518,17 +3781,17 @@
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:70
-#: rhodecode/templates/pullrequests/pullrequest_show.html:82
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:79
-#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 msgid "owner"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:91
-#: rhodecode/templates/pullrequests/pullrequest_show.html:109
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
 msgstr ""
 
@@ -3542,10 +3805,6 @@
 msgid "Title"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest.html:115
-msgid "description"
-msgstr ""
-
 #: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr ""
@@ -3555,6 +3814,11 @@
 msgid "Closed %s"
 msgstr ""
 
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "with status %s"
+msgstr ""
+
 #: rhodecode/templates/pullrequests/pullrequest_show.html:31
 msgid "Status"
 msgstr ""
@@ -3567,23 +3831,23 @@
 msgid "Still not reviewed by"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:47
+#: rhodecode/templates/pullrequests/pullrequest_show.html:48
 #, python-format
 msgid "%d reviewer"
 msgid_plural "%d reviewers"
 msgstr[0] ""
 msgstr[1] ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:54
+#: rhodecode/templates/pullrequests/pullrequest_show.html:50
+msgid "pull request was reviewed by all reviewers"
+msgstr ""
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:58
 msgid "Created on"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:61
-msgid "Compare view"
-msgstr ""
-
 #: rhodecode/templates/pullrequests/pullrequest_show.html:65
-msgid "Incoming changesets"
+msgid "Compare view"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
@@ -3655,27 +3919,32 @@
 msgid "%s Shortlog"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog.html:14
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr ""
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr ""
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:18
-msgid "No commit message"
-msgstr ""
-
-#: rhodecode/templates/shortlog/shortlog_data.html:62
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr ""
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:71
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:79
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 msgid "Existing repository?"
 msgstr ""
 
@@ -3703,128 +3972,137 @@
 msgid "ATOM"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, python-format
+msgid "Repository locked by %s"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:72
+msgid "Repository unlocked"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:91
 #, python-format
 msgid "Non changable ID %s"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:87
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:133
-msgid "Show by Name"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:134
-msgid "Show by ID"
-msgstr ""
-
 #: rhodecode/templates/summary/summary.html:142
+msgid "Show by Name"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:143
+msgid "Show by ID"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:151
 msgid "Trending files"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:164
-msgid "Downloads are disabled for this repository"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:170
-msgid "Download as zip"
-msgstr ""
-
-#: rhodecode/templates/summary/summary.html:173
-msgid "Check this to download archive with subrepos"
-msgstr ""
-
 #: rhodecode/templates/summary/summary.html:173
+msgid "Downloads are disabled for this repository"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:179
+msgid "Download as zip"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:182
+msgid "Check this to download archive with subrepos"
+msgstr ""
+
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:197
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:218
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 msgid "Quick start"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:236
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:293
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:650
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr ""
 
@@ -3833,3 +4111,7 @@
 msgid "%s Tags"
 msgstr ""
 
+#: rhodecode/templates/tags/tags.html:29
+msgid "Compare tags"
+msgstr ""
+
Binary file rhodecode/i18n/zh_CN/LC_MESSAGES/rhodecode.mo has changed
--- a/rhodecode/i18n/zh_CN/LC_MESSAGES/rhodecode.po	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/zh_CN/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -6,55 +6,50 @@
 # xpol <xpolife@gmail.com>, 2012.
 msgid ""
 msgstr ""
-"Project-Id-Version: RhodeCode 1.2.0\n"
+"Project-Id-Version: RhodeCode 1.4.4\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-10-02 13:34+0800\n"
-"PO-Revision-Date: 2012-10-02 13:44+0800\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
+"PO-Revision-Date: 2012-11-26 15:19+0800\n"
 "Last-Translator: xpol <xpolife@gmail.com>\n"
 "Language-Team: mikespook\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
+"Plural-Forms: nplurals=1; plural=0\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.6\n"
-"X-Generator: Poedit 1.5.3\n"
 
 #: rhodecode/controllers/changelog.py:95
 msgid "All Branches"
 msgstr "所有分支"
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr "显示空白字符"
 
-#: rhodecode/controllers/changeset.py:90 rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr "忽略空白字符"
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, python-format
 msgid "%s line context"
-msgstr "%s 行上下文"
-
-#: rhodecode/controllers/changeset.py:333
-#: rhodecode/controllers/changeset.py:348 rhodecode/lib/diffs.py:71
-msgid "binary file"
-msgstr "二进制文件"
-
-#: rhodecode/controllers/changeset.py:381
-#: rhodecode/controllers/pullrequests.py:376
+msgstr "%s行上下文"
+
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
 #, python-format
 msgid "Status change -> %s"
-msgstr "状态改变 -> %s"
-
-#: rhodecode/controllers/changeset.py:412
+msgstr "状态修改为%s"
+
+#: rhodecode/controllers/changeset.py:346
 msgid ""
-"Changing status on a changeset associated witha closed pull request is not "
-"allowed"
+"Changing status on a changeset associated witha closed pull request is "
+"not allowed"
 msgstr "不允许修改已关闭拉取请求的修订集状态"
 
-#: rhodecode/controllers/compare.py:72
-#: rhodecode/controllers/pullrequests.py:114
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 msgid "There are no changesets yet"
 msgstr "还没有修订集"
 
@@ -63,8 +58,7 @@
 msgstr "主页"
 
 #: rhodecode/controllers/error.py:98
-msgid ""
-"The request could not be understood by the server due to malformed syntax."
+msgid "The request could not be understood by the server due to malformed syntax."
 msgstr "由于错误的语法,服务器无法对请求进行响应。"
 
 #: rhodecode/controllers/error.py:101
@@ -85,143 +79,146 @@
 "fulfilling the request."
 msgstr "服务进入非预期的混乱状态,这会阻止它对请求进行响应。"
 
-#: rhodecode/controllers/feed.py:49
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
-msgstr "%s 库的修改"
-
-#: rhodecode/controllers/feed.py:50
+msgstr "%s库的修改"
+
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
-msgstr "%s %s 订阅"
-
-#: rhodecode/controllers/feed.py:67
-#: rhodecode/templates/changeset/changeset.html:119
+msgstr "%s %s订阅"
+
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
 msgid "Changeset was too big and was cut off..."
 msgstr "修订集太大已被截断......"
 
-#: rhodecode/controllers/feed.py:81
+#: rhodecode/controllers/feed.py:92
 msgid "commited on"
 msgstr "提交于"
 
-#: rhodecode/controllers/files.py:84
+#: rhodecode/controllers/files.py:86
 msgid "click here to add new file"
 msgstr "点击此处添加新文件"
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, python-format
 msgid "There are no files yet %s"
-msgstr "还没有文件 %s"
-
-#: rhodecode/controllers/files.py:239 rhodecode/controllers/files.py:299
+msgstr "还没有文件%s"
+
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
-msgstr "版本库由 %s 于 %s 锁定"
-
-#: rhodecode/controllers/files.py:266
+msgstr "版本库由%s于%s锁定"
+
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
-msgstr "通过 RhodeCode 修改了 %s"
-
-#: rhodecode/controllers/files.py:271
+msgstr "通过RhodeCode修改了%s"
+
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr "无变更"
 
-#: rhodecode/controllers/files.py:282 rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
-msgstr "成功提交到 %s"
-
-#: rhodecode/controllers/files.py:287 rhodecode/controllers/files.py:352
+msgstr "成功提交到%s"
+
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr "提交时发生错误"
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, python-format
 msgid "Added %s via RhodeCode"
-msgstr "通过 RhodeCode 添加了 %s"
-
-#: rhodecode/controllers/files.py:332
+msgstr "通过RhodeCode添加了%s"
+
+#: rhodecode/controllers/files.py:358
 msgid "No content"
 msgstr "无内容"
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 msgid "No filename"
 msgstr "无文件名"
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr "禁止下载"
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
-msgstr "未知版本 %s"
-
-#: rhodecode/controllers/files.py:391
+msgstr "未知版本%s"
+
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr "空版本库"
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr "未知包类型"
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr "修订集"
 
-#: rhodecode/controllers/files.py:495 rhodecode/controllers/pullrequests.py:73
-#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr "分支"
 
-#: rhodecode/controllers/files.py:496 rhodecode/controllers/pullrequests.py:77
-#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr "标签"
 
-#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
 msgid ""
-"%s repository is not mapped to db perhaps it was created or renamed from the "
-"filesystem please run the application again in order to rescan repositories"
-msgstr ""
-"版本库 %s 没有映射到数据库,可能是从文件系统创建或者重命名,请重启 RhodeCode "
-"以重新扫描版本库"
+"%s repository is not mapped to db perhaps it was created or renamed from "
+"the filesystem please run the application again in order to rescan "
+"repositories"
+msgstr "版本库%s没有映射到数据库,可能是从文件系统创建或者重命名,请重启RhodeCode以重新扫描版本库"
 
 #: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
 msgid ""
-"%s repository is not mapped to db perhaps it was created or renamed from the "
-"file system please run the application again in order to rescan repositories"
-msgstr ""
-" 版本库 %s 没有映射到数据库,可能是从文件系统创建或者重命名,请重启 "
-"RhodeCode 以重新扫描版本库"
+"%s repository is not mapped to db perhaps it was created or renamed from "
+"the file system please run the application again in order to rescan "
+"repositories"
+msgstr " 版本库%s没有映射到数据库,可能是从文件系统创建或者重命名,请重启RhodeCode以重新扫描版本库"
 
 #: rhodecode/controllers/forks.py:168
 #, python-format
 msgid "forked %s repository as %s"
-msgstr "版本库 %s 被复刻到 %s"
+msgstr "版本库%s被复刻到%s"
 
 #: rhodecode/controllers/forks.py:182
 #, python-format
 msgid "An error occurred during repository forking %s"
-msgstr "在复刻版本库 %s 的时候发生错误"
-
-#: rhodecode/controllers/journal.py:203 rhodecode/controllers/journal.py:240
+msgstr "在复刻版本库%s的时候发生错误"
+
+#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
 msgid "public journal"
 msgstr "公共日志"
 
-#: rhodecode/controllers/journal.py:207 rhodecode/controllers/journal.py:244
-#: rhodecode/templates/base/base.html:229
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr "日志"
 
 #: rhodecode/controllers/login.py:143
 msgid "You have successfully registered into rhodecode"
-msgstr "成功注册到 rhodecode"
+msgstr "成功注册到RhodeCode"
 
 #: rhodecode/controllers/login.py:164
 msgid "Your password reset link was sent"
@@ -229,79 +226,79 @@
 
 #: rhodecode/controllers/login.py:184
 msgid ""
-"Your password reset was successful, new password has been sent to your email"
+"Your password reset was successful, new password has been sent to your "
+"email"
 msgstr "密码已经成功重置,新密码已经发送到你的邮箱"
 
-#: rhodecode/controllers/pullrequests.py:75 rhodecode/model/scm.py:549
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr "书签"
 
-#: rhodecode/controllers/pullrequests.py:182
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
-msgstr "拉取请求的标题至少 3 个字符"
-
-#: rhodecode/controllers/pullrequests.py:184
+msgstr "拉取请求的标题至少3个字符"
+
+#: rhodecode/controllers/pullrequests.py:188
 msgid "error during creation of pull request"
 msgstr "提交拉取请求时发生错误"
 
-#: rhodecode/controllers/pullrequests.py:205
+#: rhodecode/controllers/pullrequests.py:220
 msgid "Successfully opened new pull request"
 msgstr "成功提交拉取请求"
 
-#: rhodecode/controllers/pullrequests.py:208
+#: rhodecode/controllers/pullrequests.py:223
 msgid "Error occurred during sending pull request"
 msgstr "提交拉取请求时发生错误"
 
-#: rhodecode/controllers/pullrequests.py:241
+#: rhodecode/controllers/pullrequests.py:256
 msgid "Successfully deleted pull request"
 msgstr "成功删除拉取请求"
 
-#: rhodecode/controllers/search.py:132
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr "错误的搜索。请尝试用引号包含它。"
 
-#: rhodecode/controllers/search.py:137
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
-msgstr "没有索引用于搜索。请运行 whoosh 索引器"
-
-#: rhodecode/controllers/search.py:141
+msgstr "没有索引用于搜索。请运行whoosh索引器"
+
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr "在搜索操作中发生异常"
 
 #: rhodecode/controllers/settings.py:108
-#: rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
-msgstr "版本库 %s 成功更新"
+msgstr "版本库%s成功更新"
 
 #: rhodecode/controllers/settings.py:126
-#: rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
-msgstr "在更新版本库 %s 的时候发生错误"
+msgstr "在更新版本库%s的时候发生错误"
 
 #: rhodecode/controllers/settings.py:144
-#: rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/admin/repos.py:304
 #, python-format
 msgid ""
-"%s repository is not mapped to db perhaps it was moved or renamed  from the "
-"filesystem please run the application again in order to rescan repositories"
-msgstr ""
-"版本库 %s 没有映射到数据库,可能是从文件系统创建或者重命名,请重启 RhodeCode "
-"以重新扫描版本库"
+"%s repository is not mapped to db perhaps it was moved or renamed  from "
+"the filesystem please run the application again in order to rescan "
+"repositories"
+msgstr "版本库%s没有映射到数据库,可能是从文件系统创建或者重命名,请重启RhodeCode以重新扫描版本库"
 
 #: rhodecode/controllers/settings.py:156
-#: rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
-msgstr "已经删除版本库 %s"
+msgstr "已经删除版本库%s"
 
 #: rhodecode/controllers/settings.py:160
-#: rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
-msgstr "在删除 %s 的时候发生错误"
+msgstr "在删除%s的时候发生错误"
 
 #: rhodecode/controllers/settings.py:179
 msgid "unlocked"
@@ -314,10 +311,10 @@
 #: rhodecode/controllers/settings.py:184
 #, python-format
 msgid "Repository has been %s"
-msgstr "版本库已经 %s"
+msgstr "版本库已被%s"
 
 #: rhodecode/controllers/settings.py:188
-#: rhodecode/controllers/admin/repos.py:422
+#: rhodecode/controllers/admin/repos.py:424
 msgid "An error occurred during unlocking"
 msgstr "解锁时发生错误"
 
@@ -326,10 +323,20 @@
 msgstr "数据未加载"
 
 #: rhodecode/controllers/summary.py:144
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr "该版本库统计功能已经禁用"
 
+#: rhodecode/controllers/admin/defaults.py:96
+#, fuzzy
+msgid "Default settings updated successfully"
+msgstr "LDAP设置已经成功更新"
+
+#: rhodecode/controllers/admin/defaults.py:110
+#, fuzzy
+msgid "error occurred during update of defaults"
+msgstr "更新用户%s时发生错误"
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr "BASE"
@@ -368,37 +375,42 @@
 
 #: rhodecode/controllers/admin/ldap_settings.py:65
 msgid "LDAPS connection"
-msgstr "LDAPS 连接"
+msgstr "LDAPS连接"
 
 #: rhodecode/controllers/admin/ldap_settings.py:66
 msgid "START_TLS on LDAP connection"
-msgstr "LDAP 连接上的 START_TLS"
+msgstr "LDAP连接上的START_TLS"
 
 #: rhodecode/controllers/admin/ldap_settings.py:126
 msgid "Ldap settings updated successfully"
-msgstr "LDAP 设置已经成功更新"
+msgstr "LDAP设置已经成功更新"
 
 #: rhodecode/controllers/admin/ldap_settings.py:130
 msgid "Unable to activate ldap. The \"python-ldap\" library is missing."
-msgstr "无法启用 LDAP。缺失“python-ldap”库。"
+msgstr "无法启用LDAP。缺失“python-ldap”库。"
 
 #: rhodecode/controllers/admin/ldap_settings.py:147
 msgid "error occurred during update of ldap settings"
-msgstr "更新 LDAP 设置时发生错误"
+msgstr "更新LDAP设置时发生错误"
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr "无"
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr "读"
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr "写"
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -411,330 +423,330 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
 #: rhodecode/templates/base/base.html:197
-#: rhodecode/templates/base/base.html:346
-#: rhodecode/templates/base/base.html:348
 #: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr "管理"
 
-#: rhodecode/controllers/admin/permissions.py:65
+#: rhodecode/controllers/admin/permissions.py:69
 msgid "disabled"
 msgstr "禁用"
 
-#: rhodecode/controllers/admin/permissions.py:67
+#: rhodecode/controllers/admin/permissions.py:71
 msgid "allowed with manual account activation"
 msgstr "允许手工启用帐号"
 
-#: rhodecode/controllers/admin/permissions.py:69
+#: rhodecode/controllers/admin/permissions.py:73
 msgid "allowed with automatic account activation"
 msgstr "允许自动启用帐号"
 
-#: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr "停用"
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr "启用"
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr "成功更新默认权限"
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr "更新权限时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
 msgstr "-- 移除复刻 --"
 
-#: rhodecode/controllers/admin/repos.py:192
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
-msgstr "新版本库 %s 基于 %s 建立。"
-
-#: rhodecode/controllers/admin/repos.py:196
+msgstr "新版本库%s基于%s建立。"
+
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
-msgstr "建立版本库 %s"
-
-#: rhodecode/controllers/admin/repos.py:227
+msgstr "建立版本库%s"
+
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
-msgstr "创建版本库时发生错误 %s"
-
-#: rhodecode/controllers/admin/repos.py:319
+msgstr "创建版本库时发生错误%s"
+
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
-msgstr "无法删除 %s 因为它还有其他分复刻本库"
-
-#: rhodecode/controllers/admin/repos.py:348
+msgstr "无法删除%s因为它还有其他分复刻本库"
+
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr "删除版本库用户时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
 msgstr "删除版本库用户组时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:385
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr "删除版本库统计时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr "清除缓存时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr "成功更新在公共日志中的可见性"
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
 msgstr "设置版本库到公共日志时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:451 rhodecode/model/validators.py:300
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr "令牌不匹配"
 
-#: rhodecode/controllers/admin/repos.py:464
-msgid "Pulled from remote location"
-msgstr "成功拉取自远程路径"
-
 #: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr "成功拉取自远程路径"
+
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr "从远程路径拉取时发生错误"
 
-#: rhodecode/controllers/admin/repos.py:482
+#: rhodecode/controllers/admin/repos.py:484
 msgid "Nothing"
 msgstr "无"
 
-#: rhodecode/controllers/admin/repos.py:484
+#: rhodecode/controllers/admin/repos.py:486
 #, python-format
 msgid "Marked repo %s as fork of %s"
-msgstr "成功将版本库 %s 标记为复刻自 %s"
-
-#: rhodecode/controllers/admin/repos.py:488
+msgstr "成功将版本库%s标记为复刻自%s"
+
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr "在搜索操作中发生错误"
 
-#: rhodecode/controllers/admin/repos_groups.py:117
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
-msgstr "建立版本库组 %s"
-
-#: rhodecode/controllers/admin/repos_groups.py:130
+msgstr "建立版本库组%s"
+
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
-msgstr "创建版本库组时发生错误 %s"
-
-#: rhodecode/controllers/admin/repos_groups.py:164
+msgstr "创建版本库组时发生错误%s"
+
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
-msgstr "更新版本库组 %s"
-
-#: rhodecode/controllers/admin/repos_groups.py:177
+msgstr "更新版本库组%s"
+
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
-msgstr "更新版本库组时发生错误 %s"
-
-#: rhodecode/controllers/admin/repos_groups.py:195
+msgstr "更新版本库组时发生错误%s"
+
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
-msgstr "这个组内有 %s 个版本库因而无法删除"
-
-#: rhodecode/controllers/admin/repos_groups.py:203
+msgstr "这个组内有%s个版本库因而无法删除"
+
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
-msgstr "移除版本库组 %s"
-
-#: rhodecode/controllers/admin/repos_groups.py:209
+msgstr "移除版本库组%s"
+
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr "不能删除包含子组的组"
 
-#: rhodecode/controllers/admin/repos_groups.py:214
-#: rhodecode/controllers/admin/repos_groups.py:219
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
-msgstr "删除版本库组时发生错误 %s"
-
-#: rhodecode/controllers/admin/repos_groups.py:240
+msgstr "删除版本库组时发生错误%s"
+
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
 msgstr "删除组用户时发生错误"
 
-#: rhodecode/controllers/admin/repos_groups.py:261
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
 msgstr "删除版本库组的用户组时发生错误"
 
-#: rhodecode/controllers/admin/settings.py:122
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
-msgstr "重新扫描版本库成功,增加 %s, 移除 %s"
-
-#: rhodecode/controllers/admin/settings.py:130
+msgstr "重新扫描版本库成功,增加%s, 移除%s"
+
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
-msgstr "Whoosh 重新索引任务调度"
-
-#: rhodecode/controllers/admin/settings.py:161
+msgstr "Whoosh重新索引任务调度"
+
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr "更新应用设置"
 
-#: rhodecode/controllers/admin/settings.py:165
-#: rhodecode/controllers/admin/settings.py:293
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr "更新设置时发生错误"
 
-#: rhodecode/controllers/admin/settings.py:201
+#: rhodecode/controllers/admin/settings.py:207
 msgid "Updated visualisation settings"
 msgstr "成功更新可视化设置"
 
-#: rhodecode/controllers/admin/settings.py:206
+#: rhodecode/controllers/admin/settings.py:212
 msgid "error occurred during updating visualisation settings"
 msgstr "更新可视化设置时发生错误"
 
-#: rhodecode/controllers/admin/settings.py:289
+#: rhodecode/controllers/admin/settings.py:295
 msgid "Updated VCS settings"
 msgstr "成功更新版本控制系统设置"
 
-#: rhodecode/controllers/admin/settings.py:303
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr "新建钩子"
 
-#: rhodecode/controllers/admin/settings.py:315
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr "更新钩子"
 
-#: rhodecode/controllers/admin/settings.py:319
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr "创建钩子时发生错误"
 
-#: rhodecode/controllers/admin/settings.py:338
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr "已创建电子邮件任务"
 
-#: rhodecode/controllers/admin/settings.py:393
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
 msgstr "由于是系统帐号,无法编辑该用户"
 
-#: rhodecode/controllers/admin/settings.py:424
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr "你的帐号已经更新完成"
 
-#: rhodecode/controllers/admin/settings.py:439
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
-msgstr "更新用户 %s 时发生错误"
+msgstr "更新用户%s时发生错误"
 
 #: rhodecode/controllers/admin/users.py:130
 #, python-format
 msgid "created user %s"
-msgstr "创建用户 %s"
+msgstr "创建用户%s"
 
 #: rhodecode/controllers/admin/users.py:142
 #, python-format
 msgid "error occurred during creation of user %s"
-msgstr "创建用户 %s 时发生错误"
-
-#: rhodecode/controllers/admin/users.py:171
+msgstr "创建用户%s时发生错误"
+
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr "用户更新成功"
 
-#: rhodecode/controllers/admin/users.py:207
+#: rhodecode/controllers/admin/users.py:212
 msgid "successfully deleted user"
 msgstr "用户删除成功"
 
-#: rhodecode/controllers/admin/users.py:212
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr "删除用户时发生错误"
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr "无法编辑该用户"
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr "已授予用户‘创建版本库’的权限"
 
-#: rhodecode/controllers/admin/users.py:271
+#: rhodecode/controllers/admin/users.py:277
 msgid "Revoked 'repository create' permission to user"
 msgstr "已撤销用户‘创建版本库’的权限"
 
-#: rhodecode/controllers/admin/users.py:277
+#: rhodecode/controllers/admin/users.py:283
 msgid "Granted 'repository fork' permission to user"
 msgstr "成功授予了用户“复刻版本库”权限"
 
-#: rhodecode/controllers/admin/users.py:282
+#: rhodecode/controllers/admin/users.py:288
 msgid "Revoked 'repository fork' permission to user"
 msgstr "成功撤销用户“复刻版本库”权限"
 
-#: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 msgid "An error occurred during permissions saving"
 msgstr "保存权限时发生错误"
 
-#: rhodecode/controllers/admin/users.py:303
+#: rhodecode/controllers/admin/users.py:309
 #, python-format
 msgid "Added email %s to user"
 msgstr "已为用户添加电子邮件 %s"
 
-#: rhodecode/controllers/admin/users.py:309
+#: rhodecode/controllers/admin/users.py:315
 msgid "An error occurred during email saving"
 msgstr "保存电子邮件时发生错误"
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 msgid "Removed email from user"
 msgstr "成功删除用户电子邮件"
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
-msgstr "建立用户组 %s"
-
-#: rhodecode/controllers/admin/users_groups.py:95
+msgstr "建立用户组%s"
+
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
-msgstr "创建用户组 %s 时发生错误"
-
-#: rhodecode/controllers/admin/users_groups.py:135
+msgstr "创建用户组%s时发生错误"
+
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
-msgstr "更新用户组 %s"
-
-#: rhodecode/controllers/admin/users_groups.py:157
+msgstr "更新用户组%s"
+
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
-msgstr "更新用户组 %s 时发生错误"
-
-#: rhodecode/controllers/admin/users_groups.py:174
+msgstr "更新用户组%s时发生错误"
+
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr "删除用户组成功"
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr "删除用户组时发生错误"
 
-#: rhodecode/controllers/admin/users_groups.py:233
+#: rhodecode/controllers/admin/users_groups.py:257
 msgid "Granted 'repository create' permission to users group"
 msgstr "已授予用户组‘创建版本库’的权限"
 
-#: rhodecode/controllers/admin/users_groups.py:238
+#: rhodecode/controllers/admin/users_groups.py:262
 msgid "Revoked 'repository create' permission to users group"
 msgstr "已撤销用户组‘创建版本库’的权限"
 
-#: rhodecode/controllers/admin/users_groups.py:244
+#: rhodecode/controllers/admin/users_groups.py:268
 msgid "Granted 'repository fork' permission to users group"
 msgstr "已授予用户组‘复刻版本库’的权限"
 
-#: rhodecode/controllers/admin/users_groups.py:249
+#: rhodecode/controllers/admin/users_groups.py:273
 msgid "Revoked 'repository fork' permission to users group"
 msgstr "已撤销用户组‘复刻版本库’的权限"
 
@@ -746,19 +758,22 @@
 msgid "You need to be a signed in to view this page"
 msgstr "必须登录才能访问该页面"
 
-#: rhodecode/lib/diffs.py:87
-msgid ""
-"Changeset was too big and was cut off, use diff menu to display this diff"
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr "二进制文件"
+
+#: rhodecode/lib/diffs.py:90
+msgid "Changeset was too big and was cut off, use diff menu to display this diff"
 msgstr "修订集因过大而被截断,可查看原始修订集作为替代"
 
-#: rhodecode/lib/diffs.py:97
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr "未发现差异"
 
 #: rhodecode/lib/helpers.py:373
 #, python-format
 msgid "%a, %d %b %Y %H:%M:%S"
-msgstr "%Y/%b/%d %H:%M:%S %a"
+msgstr "%Y/%m/%d %H:%M:%S"
 
 #: rhodecode/lib/helpers.py:485
 msgid "True"
@@ -768,272 +783,292 @@
 msgid "False"
 msgstr "否"
 
-#: rhodecode/lib/helpers.py:533
+#: rhodecode/lib/helpers.py:529
+#, python-format
+msgid "Deleted branch: %s"
+msgstr "已经删除分支%s"
+
+#: rhodecode/lib/helpers.py:532
+#, python-format
+msgid "Created tag: %s"
+msgstr "创建标签%s"
+
+#: rhodecode/lib/helpers.py:545
 msgid "Changeset not found"
 msgstr "未找到修订集"
 
-#: rhodecode/lib/helpers.py:556
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
-msgstr "显示合并的修订集 %s->%s"
-
-#: rhodecode/lib/helpers.py:562
+msgstr "显示合并的修订集%s->%s"
+
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr "比较显示"
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr "还有"
 
-#: rhodecode/lib/helpers.py:583
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
-msgstr "%s 个"
-
-#: rhodecode/lib/helpers.py:584
-#: rhodecode/templates/changelog/changelog.html:49
+msgstr "%s个"
+
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr "修订"
 
-#: rhodecode/lib/helpers.py:607
-msgid "fork name "
-msgstr "复刻名称"
-
-#: rhodecode/lib/helpers.py:621
+#: rhodecode/lib/helpers.py:640
+#, python-format
+msgid "fork name %s"
+msgstr "复刻名称%s"
+
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
-msgstr "拉取请求 #%s"
-
-#: rhodecode/lib/helpers.py:627
+msgstr "拉取请求#%s"
+
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr "[删除]版本库"
 
-#: rhodecode/lib/helpers.py:629 rhodecode/lib/helpers.py:639
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr "[创建]版本库"
 
-#: rhodecode/lib/helpers.py:631
+#: rhodecode/lib/helpers.py:663
 msgid "[created] repository as fork"
 msgstr "[创建]复刻版本库"
 
-#: rhodecode/lib/helpers.py:633 rhodecode/lib/helpers.py:641
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr "[复刻]版本库"
 
-#: rhodecode/lib/helpers.py:635 rhodecode/lib/helpers.py:643
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr "[更新]版本库"
 
-#: rhodecode/lib/helpers.py:637
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr "[删除]版本库"
 
-#: rhodecode/lib/helpers.py:645
+#: rhodecode/lib/helpers.py:677
 msgid "[created] user"
 msgstr "[创建]用户"
 
-#: rhodecode/lib/helpers.py:647
+#: rhodecode/lib/helpers.py:679
 msgid "[updated] user"
 msgstr "[更新]用户"
 
-#: rhodecode/lib/helpers.py:649
+#: rhodecode/lib/helpers.py:681
 msgid "[created] users group"
 msgstr "[创建]用户组"
 
-#: rhodecode/lib/helpers.py:651
+#: rhodecode/lib/helpers.py:683
 msgid "[updated] users group"
 msgstr "[更新]用户组"
 
-#: rhodecode/lib/helpers.py:653
+#: rhodecode/lib/helpers.py:685
 msgid "[commented] on revision in repository"
 msgstr "[评论]了版本库中的修订"
 
-#: rhodecode/lib/helpers.py:655
+#: rhodecode/lib/helpers.py:687
 msgid "[commented] on pull request for"
 msgstr "[评论]拉取请求"
 
-#: rhodecode/lib/helpers.py:657
+#: rhodecode/lib/helpers.py:689
 msgid "[closed] pull request for"
 msgstr "[关闭] 拉取请求"
 
-#: rhodecode/lib/helpers.py:659
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr "[推送]到"
 
-#: rhodecode/lib/helpers.py:661
+#: rhodecode/lib/helpers.py:693
 msgid "[committed via RhodeCode] into repository"
-msgstr "[通过 RhodeCode 提交]到版本库"
-
-#: rhodecode/lib/helpers.py:663
+msgstr "[通过RhodeCode提交]到版本库"
+
+#: rhodecode/lib/helpers.py:695
 msgid "[pulled from remote] into repository"
 msgstr "[远程拉取]到版本库"
 
-#: rhodecode/lib/helpers.py:665
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr "[拉取]自"
 
-#: rhodecode/lib/helpers.py:667
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr "[开始关注]版本库"
 
-#: rhodecode/lib/helpers.py:669
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr "[停止关注]版本库"
 
-#: rhodecode/lib/helpers.py:845
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
-msgstr "还有 %s 个"
-
-#: rhodecode/lib/helpers.py:849
+msgstr "还有%s个"
+
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
 msgstr "没有文件"
 
-#: rhodecode/lib/utils2.py:352
+#: rhodecode/lib/utils2.py:403
 #, python-format
 msgid "%d year"
 msgid_plural "%d years"
-msgstr[0] "%d 年"
-
-#: rhodecode/lib/utils2.py:353
+msgstr[0] "%d年"
+
+#: rhodecode/lib/utils2.py:404
 #, python-format
 msgid "%d month"
 msgid_plural "%d months"
-msgstr[0] "%d 月"
-
-#: rhodecode/lib/utils2.py:354
+msgstr[0] "%d月"
+
+#: rhodecode/lib/utils2.py:405
 #, python-format
 msgid "%d day"
 msgid_plural "%d days"
-msgstr[0] "%d 天"
-
-#: rhodecode/lib/utils2.py:355
+msgstr[0] "%d天"
+
+#: rhodecode/lib/utils2.py:406
 #, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
-msgstr[0] "%d 小时"
-
-#: rhodecode/lib/utils2.py:356
+msgstr[0] "%d时"
+
+#: rhodecode/lib/utils2.py:407
 #, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
-msgstr[0] "%d 分钟"
-
-#: rhodecode/lib/utils2.py:357
+msgstr[0] "%d分"
+
+#: rhodecode/lib/utils2.py:408
 #, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
-msgstr[0] "%d 秒"
-
-#: rhodecode/lib/utils2.py:372
+msgstr[0] "%d秒"
+
+#: rhodecode/lib/utils2.py:424
+#, python-format
+msgid "in %s"
+msgstr "%s"
+
+#: rhodecode/lib/utils2.py:426
 #, python-format
 msgid "%s ago"
-msgstr "%s 之前"
-
-#: rhodecode/lib/utils2.py:374
+msgstr "%s前"
+
+#: rhodecode/lib/utils2.py:428
+#, python-format
+msgid "in %s and %s"
+msgstr "%s零%s"
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
-msgstr "%s 零 %s 之前"
-
-#: rhodecode/lib/utils2.py:377
+msgstr "%s零%s前"
+
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr "刚才"
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 msgid "password reset link"
 msgstr "密码重置链接"
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+msgid "Repository no access"
+msgstr "无版本库访问权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+msgid "Repository read access"
+msgstr "版本库读取权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+msgid "Repository write access"
+msgstr "版本库写入权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+msgid "Repository admin access"
+msgstr "版本库管理权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+msgid "Repositories Group no access"
+msgstr "无版本库组访问权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+msgid "Repositories Group read access"
+msgstr "版本库组读取权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+msgid "Repositories Group write access"
+msgstr "版本库组写入"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+msgid "Repositories Group admin access"
+msgstr "版本库组管理权限"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+msgid "RhodeCode Administrator"
+msgstr "RhodeCode 管理员"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+msgid "Repository creation disabled"
+msgstr "禁用创建版本库"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+msgid "Repository creation enabled"
+msgstr "允许创建版本库"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+msgid "Repository forking disabled"
+msgstr "禁用复刻版本库"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+msgid "Repository forking enabled"
+msgstr "允许复刻版本库"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+msgid "Register disabled"
+msgstr "禁用注册"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr "用手动激活注册新用户"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr "用自动激活注册新用户"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr "未检视"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+msgid "Approved"
+msgstr "已批准"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr "驳回"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr "检视中"
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
-msgstr "在 %s 行"
+msgstr "在%s行"
 
 #: rhodecode/model/comment.py:173
 msgid "[Mention]"
 msgstr "[提及]"
 
-#: rhodecode/model/db.py:1164
-msgid "Repository no access"
-msgstr "无版本库访问权限"
-
-#: rhodecode/model/db.py:1165
-msgid "Repository read access"
-msgstr "版本库读取权限"
-
-#: rhodecode/model/db.py:1166
-msgid "Repository write access"
-msgstr "版本库写入权限"
-
-#: rhodecode/model/db.py:1167
-msgid "Repository admin access"
-msgstr "版本库管理权限"
-
-#: rhodecode/model/db.py:1169
-msgid "Repositories Group no access"
-msgstr "无版本库组访问权限"
-
-#: rhodecode/model/db.py:1170
-msgid "Repositories Group read access"
-msgstr "版本库组读取权限"
-
-#: rhodecode/model/db.py:1171
-msgid "Repositories Group write access"
-msgstr "版本库组写入"
-
-#: rhodecode/model/db.py:1172
-msgid "Repositories Group admin access"
-msgstr "版本库组管理权限"
-
-#: rhodecode/model/db.py:1174
-msgid "RhodeCode Administrator"
-msgstr "RhodeCode 管理员"
-
-#: rhodecode/model/db.py:1175
-msgid "Repository creation disabled"
-msgstr "禁用创建版本库"
-
-#: rhodecode/model/db.py:1176
-msgid "Repository creation enabled"
-msgstr "允许创建版本库"
-
-#: rhodecode/model/db.py:1177
-msgid "Repository forking disabled"
-msgstr "禁用复刻版本库"
-
-#: rhodecode/model/db.py:1178
-msgid "Repository forking enabled"
-msgstr "允许复刻版本库"
-
-#: rhodecode/model/db.py:1179
-msgid "Register disabled"
-msgstr "禁用注册"
-
-#: rhodecode/model/db.py:1180
-msgid "Register new user with RhodeCode with manual activation"
-msgstr "用手动激活注册新用户"
-
-#: rhodecode/model/db.py:1183
-msgid "Register new user with RhodeCode with auto activation"
-msgstr "用自动激活注册新用户"
-
-#: rhodecode/model/db.py:1611
-msgid "Not Reviewed"
-msgstr "未检视"
-
-#: rhodecode/model/db.py:1612
-msgid "Approved"
-msgstr "已批准"
-
-#: rhodecode/model/db.py:1613
-msgid "Rejected"
-msgstr "驳回"
-
-#: rhodecode/model/db.py:1614
-msgid "Under Review"
-msgstr "检视中"
-
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
 msgstr "请登录"
@@ -1041,7 +1076,7 @@
 #: rhodecode/model/forms.py:44
 #, python-format
 msgid "Enter a value %(min)i characters long or more"
-msgstr "输入一个不少于 %(min)i 个字符的值"
+msgstr "输入一个不少于%(min)i个字符的值"
 
 #: rhodecode/model/forms.py:52
 msgid "Please enter a password"
@@ -1050,62 +1085,66 @@
 #: rhodecode/model/forms.py:53
 #, python-format
 msgid "Enter %(min)i characters or more"
-msgstr "输入少于 %(min)i 个字符"
+msgstr "输入少于%(min)i个字符"
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
-msgstr "评论了评论"
+#, python-format
+msgid "commented on commit at %(when)s"
+msgstr "在%(when)s评论了提交"
 
 #: rhodecode/model/notification.py:221
-msgid "sent message"
-msgstr "发送信息"
+#, python-format
+msgid "sent message at %(when)s"
+msgstr "在%(when)s发送信息"
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
-msgstr "提到了你"
+#, python-format
+msgid "mentioned you at %(when)s"
+msgstr "在%(when)s提到了你"
 
 #: rhodecode/model/notification.py:223
-msgid "registered in RhodeCode"
-msgstr "注册到 RhodeCode"
+#, python-format
+msgid "registered in RhodeCode at %(when)s"
+msgstr "在%(when)s注册到RhodeCode"
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
-msgstr "创建新的拉取请求"
+#, python-format
+msgid "opened new pull request at %(when)s"
+msgstr "在%(when)s创建新的拉取请求"
 
 #: rhodecode/model/notification.py:225
-msgid "commented on pull request"
-msgstr "评论了拉取请求"
-
-#: rhodecode/model/pull_request.py:89
+#, python-format
+msgid "commented on pull request at %(when)s"
+msgstr "在%(when)s评论了拉取请求"
+
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
-msgstr "%(user)s 想要你检视拉取请求 #%(pr_id)s"
-
-#: rhodecode/model/scm.py:535
+msgstr "%(user)s想要你检视拉取请求#%(pr_id)s"
+
+#: rhodecode/model/scm.py:542
 msgid "latest tip"
-msgstr "最后 tip 版本"
+msgstr "最新tip版本"
 
 #: rhodecode/model/user.py:230
 msgid "new user registration"
-msgstr "[RhodeCode] 新用户注册"
-
-#: rhodecode/model/user.py:255 rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+msgstr "[RhodeCode]新用户注册"
+
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
 msgstr "由于是系统帐号,无法编辑该用户"
 
-#: rhodecode/model/user.py:323
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
 msgstr "由于是系统帐号,无法删除该用户"
 
-#: rhodecode/model/user.py:329
+#: rhodecode/model/user.py:331
 #, python-format
 msgid ""
-"user \"%s\" still owns %s repositories and cannot be removed. Switch owners "
-"or remove those repositories. %s"
-msgstr ""
-"由于用户 \"%s\" 拥有版本库 %s 因而无法删除,请修改版本库所有者或删除版本"
-"库。%s"
+"user \"%s\" still owns %s repositories and cannot be removed. Switch "
+"owners or remove those repositories. %s"
+msgstr "由于用户 \"%s\" 拥有版本库%s因而无法删除,请修改版本库所有者或删除版本库。%s"
 
 #: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
@@ -1114,7 +1153,7 @@
 #: rhodecode/model/validators.py:83
 #, python-format
 msgid "Username \"%(username)s\" already exists"
-msgstr "用户名称 %(username)s 已经存在"
+msgstr "用户名称%(username)s已经存在"
 
 #: rhodecode/model/validators.py:85
 #, python-format
@@ -1123,10 +1162,9 @@
 
 #: rhodecode/model/validators.py:87
 msgid ""
-"Username may only contain alphanumeric characters underscores, periods or "
-"dashes and must begin with alphanumeric character"
-msgstr ""
-"只能使用字母、数字、下划线、小数点或减号作为用户名,且必须由数字或字母开头"
+"Username may only contain alphanumeric characters underscores, periods or"
+" dashes and must begin with alphanumeric character"
+msgstr "只能使用字母、数字、下划线、小数点或减号作为用户名,且必须由数字或字母开头"
 
 #: rhodecode/model/validators.py:115
 #, python-format
@@ -1146,12 +1184,11 @@
 msgid ""
 "users group name may only contain  alphanumeric characters underscores, "
 "periods or dashes and must begin with alphanumeric character"
-msgstr ""
-"只能使用字母、数字、下划线、小数点或减号作为用户组名,且必须由数字或字母开头"
+msgstr "只能使用字母、数字、下划线、小数点或减号作为用户组名,且必须由数字或字母开头"
 
 #: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
-msgstr "不能将这个组作为 parent"
+msgstr "不能将这个组作为parent"
 
 #: rhodecode/model/validators.py:176
 #, python-format
@@ -1186,12 +1223,12 @@
 #: rhodecode/model/validators.py:314
 #, python-format
 msgid "Repository name %(repo)s is disallowed"
-msgstr "版本库名称不能为 %(repo)s"
+msgstr "版本库名称不能为%(repo)s"
 
 #: rhodecode/model/validators.py:316
 #, python-format
 msgid "Repository named %(repo)s already exists"
-msgstr "已经存在版本库 %(repo)s"
+msgstr "已经存在版本库%(repo)s"
 
 #: rhodecode/model/validators.py:317
 #, python-format
@@ -1209,7 +1246,7 @@
 
 #: rhodecode/model/validators.py:433
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
-msgstr "无效的克隆地址,提供一个有效的克隆 http(s) 或 svn+http(s) 地址"
+msgstr "无效的克隆地址,提供一个有效的克隆 http(s)或svn+http(s)地址"
 
 #: rhodecode/model/validators.py:458
 msgid "Fork have to be the same type as parent"
@@ -1217,7 +1254,7 @@
 
 #: rhodecode/model/validators.py:473
 msgid "You don't have permissions to create repository in this group"
-msgstr "没有在这个组里面创建版本库的权限"
+msgstr "没有在该版本库组中创建版本库的权限"
 
 #: rhodecode/model/validators.py:498
 msgid "This username or users group name is not valid"
@@ -1234,18 +1271,18 @@
 #: rhodecode/model/validators.py:617
 #, python-format
 msgid "e-mail \"%(email)s\" does not exist."
-msgstr "邮件地址  \"%(email)s\" 不存在"
+msgstr "邮件地址\"%(email)s\"不存在"
 
 #: rhodecode/model/validators.py:654
 msgid ""
-"The LDAP Login attribute of the CN must be specified - this is the name of "
-"the attribute that is equivalent to \"username\""
+"The LDAP Login attribute of the CN must be specified - this is the name "
+"of the attribute that is equivalent to \"username\""
 msgstr "LDAP 登陆属性的 CN 必须指定 - 这个名字作为用户名"
 
 #: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
-msgstr "修订 %(revs)s 已经包含在拉取请求中或者或者已经设置状态"
+msgstr "修订%(revs)s已经包含在拉取请求中或者或者已经设置状态"
 
 #: rhodecode/templates/index.html:3
 msgid "Dashboard"
@@ -1265,7 +1302,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:230
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr "版本库"
 
@@ -1276,6 +1313,7 @@
 msgstr "新建版本库"
 
 #: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1285,9 +1323,10 @@
 msgstr "组名"
 
 #: rhodecode/templates/index_base.html:30
-#: rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142
-#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1296,142 +1335,137 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr "描述"
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr "版本库组"
 
-#: rhodecode/templates/index_base.html:70
-#: rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
-#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
 #: rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr "名称"
 
-#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:73
 msgid "Last change"
 msgstr "最后修改"
 
-#: rhodecode/templates/index_base.html:73
-#: rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
-#: rhodecode/templates/journal/journal.html:188
+#: rhodecode/templates/index_base.html:74
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
 msgid "Tip"
 msgstr "Tip"
 
-#: rhodecode/templates/index_base.html:74
-#: rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr "所有者"
 
-#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:76
 #: rhodecode/templates/summary/summary.html:48
 #: rhodecode/templates/summary/summary.html:51
 msgid "RSS"
 msgstr "RSS"
 
-#: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr "Atom"
 
-#: rhodecode/templates/index_base.html:110
-#: rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr "订阅 %s 的 RSS"
-
-#: rhodecode/templates/index_base.html:117
-#: rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr "订阅 %s 的 Atom"
-
-#: rhodecode/templates/index_base.html:140
-msgid "Group Name"
-msgstr "组名"
-
-#: rhodecode/templates/index_base.html:158
-#: rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:203
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr "点击以升序排列"
 
-#: rhodecode/templates/index_base.html:159
-#: rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:204
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr "点击以降序排列"
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
 msgid "Last Change"
 msgstr "最后修改"
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:205
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr "没有找到记录"
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:206
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr "数据错误"
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:207
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 msgid "Loading..."
 msgstr "载入中..."
 
@@ -1449,7 +1483,7 @@
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr "帐号"
 
@@ -1506,23 +1540,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr "名"
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr "姓"
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr "电子邮件"
 
@@ -1535,6 +1569,7 @@
 msgstr "管理员审核后,你注册的帐号将被启用"
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1562,7 +1597,7 @@
 msgstr "标签"
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr "没有任何标签"
 
@@ -1585,35 +1620,108 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr "操作"
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr "版本库"
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
 #: rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr "日期"
 
 #: rhodecode/templates/admin/admin_log.html:9
 msgid "From IP"
-msgstr "来源 IP"
-
-#: rhodecode/templates/admin/admin_log.html:53
+msgstr "来源IP"
+
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr "无操作"
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+#, fuzzy
+msgid "Repositories defaults"
+msgstr "版本库组"
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+#, fuzzy
+msgid "Defaults"
+msgstr "默认"
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr "类型"
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr "私有版本库只对成员可见。"
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr "启用统计"
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr "启用概况页的统计窗口"
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr "启用下载"
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr "启用概况页的下载菜单"
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+msgid "Enable locking"
+msgstr "启用锁定"
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr "启用版本库的拉取锁定"
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr "保存"
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
-msgstr "LDAP 管理员"
+msgstr "LDAP管理员"
 
 #: rhodecode/templates/admin/ldap/ldap.html:11
 msgid "Ldap"
@@ -1625,7 +1733,7 @@
 
 #: rhodecode/templates/admin/ldap/ldap.html:30
 msgid "Enable LDAP"
-msgstr "启用 LDAP"
+msgstr "启用LDAP"
 
 #: rhodecode/templates/admin/ldap/ldap.html:34
 msgid "Host"
@@ -1657,11 +1765,11 @@
 
 #: rhodecode/templates/admin/ldap/ldap.html:63
 msgid "LDAP Filter"
-msgstr "LDAP 过滤器"
+msgstr "LDAP过滤器"
 
 #: rhodecode/templates/admin/ldap/ldap.html:67
 msgid "LDAP Search Scope"
-msgstr "LDAP 搜索范围"
+msgstr "LDAP搜索范围"
 
 #: rhodecode/templates/admin/ldap/ldap.html:70
 msgid "Attribute mappings"
@@ -1683,18 +1791,6 @@
 msgid "E-mail Attribute"
 msgstr "电子邮件属性"
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr "保存"
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1709,8 +1805,8 @@
 msgstr "评论"
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:263
-#: rhodecode/templates/base/base.html:265
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr "拉取请求"
 
@@ -1738,7 +1834,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1752,36 +1848,49 @@
 msgid "Anonymous access"
 msgstr "匿名访问"
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr "版本库权限"
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
 msgid ""
 "All default permissions on each repository will be reset to choosen "
-"permission, note that all custom default permission on repositories will be "
-"lost"
-msgstr ""
-"所有版本库的默认权限将被重置到选择的权限,所有版本库的自定义权限将被丢弃"
+"permission, note that all custom default permission on repositories will "
+"be lost"
+msgstr "所有版本库的默认权限将被重置到选择的权限,所有版本库的自定义权限将被丢弃"
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr "覆盖已有设置"
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr "版本库组"
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+#, fuzzy
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr "所有版本库的默认权限将被重置到选择的权限,所有版本库的自定义权限将被丢弃"
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr "注册"
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr "建立版本库"
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
+#: rhodecode/templates/admin/permissions/permissions.html:85
 msgid "Repository forking"
 msgstr "版本库复刻"
 
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:255
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr "设置"
 
@@ -1801,8 +1910,8 @@
 msgstr "新建"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr "克隆自"
 
@@ -1810,26 +1919,13 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:44
 #: rhodecode/templates/settings/repo_settings.html:43
 msgid "Optional http[s] url from which repository should be cloned."
-msgstr "可选的,指定版本库应该从哪个 http[s] 地址克隆。"
-
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr "版本库组"
+msgstr "可选的,指定版本库应该从哪个http[s]地址克隆。"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 msgid "Optionaly select a group to put this repository into."
 msgstr "可选的,选择一个组将版本库放到其中"
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr "类型"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 msgid "Type of repository to create."
 msgstr "要创建的版本库类型"
@@ -1846,24 +1942,14 @@
 #: rhodecode/templates/forks/fork.html:45
 #: rhodecode/templates/settings/repo_settings.html:61
 msgid "Default revision for files page, downloads, whoosh and readme"
-msgstr "文件浏览、下载、whoosh和readme的默认修订版本"
+msgstr "文件浏览、下载、whoosh和README的默认修订版本"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:60
 #: rhodecode/templates/admin/repos/repo_edit.html:79
 #: rhodecode/templates/forks/fork.html:63
 #: rhodecode/templates/settings/repo_settings.html:70
-msgid ""
-"Keep it short and to the point. Use a README file for longer descriptions."
-msgstr "保持简短。用 README 文件来写更长的描述。"
-
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid ""
-"Private repositories are only visible to people explicitly added as "
-"collaborators."
-msgstr "私有版本库只对成员可见。"
+msgid "Keep it short and to the point. Use a README file for longer descriptions."
+msgstr "保持简短。用README文件来写更长的描述。"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
@@ -1879,12 +1965,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr "编辑"
 
@@ -1898,31 +1986,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr "可选的,选择一个组将版本库放到其中"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr "启用统计"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr "启用概况页的统计窗口"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr "启用下载"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr "启用概况页的下载菜单"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-msgid "Enable locking"
-msgstr "启用锁定"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr "启用版本库的拉取锁定"
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 msgid "Change owner of this repository."
 msgstr "修改这个版本库的所有者"
@@ -1930,16 +1993,16 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
 #: rhodecode/templates/files/files_edit.html:68
-#: rhodecode/templates/pullrequests/pullrequest.html:122
+#: rhodecode/templates/pullrequests/pullrequest.html:124
 #: rhodecode/templates/settings/repo_settings.html:94
 msgid "Reset"
 msgstr "重置"
@@ -1994,94 +2057,108 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:193
 msgid ""
-"Manually invalidate cache for this repository. On first access repository "
-"will be cached again"
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
 msgstr "手动清除版本库缓存。之后第一次访问的时候将重建缓存"
 
 #: rhodecode/templates/admin/repos/repo_edit.html:198
 msgid "List of cached values"
-msgstr "缓存数据列表"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:209
-#: rhodecode/templates/base/base.html:327
-#: rhodecode/templates/base/base.html:329
+msgstr "缓存值列表"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:201
+msgid "Prefix"
+msgstr "前缀"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+msgid "Key"
+msgstr "键"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr "启用"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
 #: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
 msgid "Public journal"
 msgstr "公共日志"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
+#: rhodecode/templates/admin/repos/repo_edit.html:224
 msgid "Remove from public journal"
 msgstr "从公共日志删除"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:217
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr "添加到公共日志"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:222
+#: rhodecode/templates/admin/repos/repo_edit.html:231
 msgid ""
-"All actions made on this repository will be accessible to everyone in public "
-"journal"
+"All actions made on this repository will be accessible to everyone in "
+"public journal"
 msgstr "任何人都可以在公共日志上看到这个版本库上的所有动作"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 msgid "Locking"
 msgstr "锁定"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:234
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
 msgstr "解锁版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:234
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Confirm to unlock repository"
 msgstr "确认解锁版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:237
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
 msgstr "锁定版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:237
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "Confirm to lock repository"
 msgstr "确认锁定版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:238
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 msgid "Repository is not locked"
 msgstr "版本库未锁定"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:243
-msgid ""
-"Force locking on repository. Works only when anonymous access is disabled"
+#: rhodecode/templates/admin/repos/repo_edit.html:252
+msgid "Force locking on repository. Works only when anonymous access is disabled"
 msgstr "强制锁定版本库。只有在禁止匿名访问时候才有效"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:250
+#: rhodecode/templates/admin/repos/repo_edit.html:259
 msgid "Set as fork of"
 msgstr "设置复刻自"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:259
+#: rhodecode/templates/admin/repos/repo_edit.html:268
 msgid "Manually set this repository as a fork of another from the list"
 msgstr "从列表中手动设置这个版本库复刻自另一版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:265
+#: rhodecode/templates/admin/repos/repo_edit.html:274
 #: rhodecode/templates/changeset/changeset_file_comment.html:26
 msgid "Delete"
 msgstr "删除"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:269
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Remove this repository"
 msgstr "删除版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:269
-#: rhodecode/templates/journal/journal.html:84
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Confirm to delete this repository"
 msgstr "确认删除版本库"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:273
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
-"This repository will be renamed in a special way in order to be unaccesible "
-"for RhodeCode and VCS systems.\n"
-"                         If you need fully delete it from filesystem please "
-"do it manually"
+"This repository will be renamed in a special way in order to be "
+"unaccesible for RhodeCode and VCS systems.\n"
+"                         If you need fully delete it from filesystem "
+"please do it manually"
 msgstr ""
-"这个版本库将以特殊的方式重命名这样 RhodeCode 和版本控制系统将不能访问它。\n"
+"这个版本库将以特殊的方式重命名这样RhodeCode和版本控制系统将不能访问它。\n"
 "                         如果需要从文件系统完全删除,你需要手动操作"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:3
@@ -2102,7 +2179,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr "管理"
 
@@ -2113,8 +2190,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr "私有版本库"
 
@@ -2158,13 +2235,13 @@
 msgid ""
 "Set or revoke permission to all children of that group, including "
 "repositories and other groups"
-msgstr "授予或者撤销权限所有组成员,包括子组和子版本库"
+msgstr "设置或者撤销该组所有成员的权限,包括版本库和其他组"
 
 #: rhodecode/templates/admin/repos_groups/repos_groups.html:9
 #: rhodecode/templates/base/base.html:122
-#: rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311
 #: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
 #: rhodecode/templates/bookmarks/bookmarks.html:11
 #: rhodecode/templates/branches/branches.html:10
 #: rhodecode/templates/changelog/changelog.html:10
@@ -2176,8 +2253,7 @@
 #: rhodecode/templates/files/files_add.html:15
 #: rhodecode/templates/files/files_edit.html:15
 #: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9
-#: rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
 #: rhodecode/templates/pullrequests/pullrequest.html:8
 #: rhodecode/templates/pullrequests/pullrequest_show.html:8
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
@@ -2214,7 +2290,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:117
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr "保存"
 
@@ -2228,8 +2304,8 @@
 
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:70
 msgid ""
-"Enable lock-by-pulling on group. This option will be applied to all other "
-"groups and repositories inside"
+"Enable lock-by-pulling on group. This option will be applied to all other"
+" groups and repositories inside"
 msgstr "启用组的拉取锁定。这个选项将应用到组内的其他组和版本库"
 
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:5
@@ -2250,20 +2326,21 @@
 msgid "action"
 msgstr "操作"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr "删除"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
 #, python-format
-msgid "Confirm to delete this group: %s"
-msgstr "确认删除该版本库组: %s"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] "确认删除这个版本库组:%s包含%s个版本库"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr "没有版本库组"
 
@@ -2304,11 +2381,10 @@
 
 #: rhodecode/templates/admin/settings/settings.html:38
 msgid ""
-"In case a repository was deleted from filesystem and there are leftovers in "
-"the database check this option to scan obsolete data in database and remove "
-"it."
-msgstr ""
-"如果版本库已经从文件系统删除,但数据库仍然有遗留信息,请勾选该项进行清理"
+"In case a repository was deleted from filesystem and there are leftovers "
+"in the database check this option to scan obsolete data in database and "
+"remove it."
+msgstr "如果版本库已经从文件系统删除,但数据库仍然有遗留信息,请勾选该项进行清理"
 
 #: rhodecode/templates/admin/settings/settings.html:39
 msgid "destroy old data"
@@ -2316,10 +2392,9 @@
 
 #: rhodecode/templates/admin/settings/settings.html:41
 msgid ""
-"Rescan repositories location for new repositories. Also deletes obsolete if "
-"`destroy` flag is checked "
-msgstr ""
-"重新扫描版本库路径以发现新版本库。 同时删除过时的,如果设置有 `destroy` 标志"
+"Rescan repositories location for new repositories. Also deletes obsolete "
+"if `destroy` flag is checked "
+msgstr "重新扫描版本库路径以发现新版本库。 同时删除过时的,如果设置有 `destroy` 标志"
 
 #: rhodecode/templates/admin/settings/settings.html:46
 msgid "Rescan repositories"
@@ -2327,7 +2402,7 @@
 
 #: rhodecode/templates/admin/settings/settings.html:52
 msgid "Whoosh indexing"
-msgstr "Whoosh 索引"
+msgstr "Whoosh索引"
 
 #: rhodecode/templates/admin/settings/settings.html:60
 msgid "index build option"
@@ -2358,8 +2433,8 @@
 msgstr "GA code"
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr "保存设置"
 
@@ -2367,127 +2442,133 @@
 msgid "Visualisation settings"
 msgstr "可视化设置"
 
-#: rhodecode/templates/admin/settings/settings.html:128
+#: rhodecode/templates/admin/settings/settings.html:127
+msgid "General"
+msgstr "通用"
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr "使用轻量的控制面板"
+
+#: rhodecode/templates/admin/settings/settings.html:139
 msgid "Icons"
 msgstr "图标"
 
-#: rhodecode/templates/admin/settings/settings.html:133
-msgid "Show public repo icon on repositories"
-msgstr "显示公共版本库图标"
-
-#: rhodecode/templates/admin/settings/settings.html:137
-msgid "Show private repo icon on repositories"
-msgstr "显示私有版本库图标"
-
 #: rhodecode/templates/admin/settings/settings.html:144
+msgid "Show public repo icon on repositories"
+msgstr "显示公共版本库图标"
+
+#: rhodecode/templates/admin/settings/settings.html:148
+msgid "Show private repo icon on repositories"
+msgstr "显示私有版本库图标"
+
+#: rhodecode/templates/admin/settings/settings.html:155
 msgid "Meta-Tagging"
 msgstr "元标记"
 
-#: rhodecode/templates/admin/settings/settings.html:149
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
 msgstr "样式化识别的元标记"
 
-#: rhodecode/templates/admin/settings/settings.html:176
+#: rhodecode/templates/admin/settings/settings.html:187
 msgid "VCS settings"
 msgstr "版本控制系统设置"
 
-#: rhodecode/templates/admin/settings/settings.html:185
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr "网络"
 
-#: rhodecode/templates/admin/settings/settings.html:190
+#: rhodecode/templates/admin/settings/settings.html:201
 msgid "require ssl for vcs operations"
-msgstr "要求使用 SSL进行版本控制系统操作"
-
-#: rhodecode/templates/admin/settings/settings.html:192
+msgstr "要求使用SSL进行版本控制系统操作"
+
+#: rhodecode/templates/admin/settings/settings.html:203
 msgid ""
-"RhodeCode will require SSL for pushing or pulling. If SSL is missing it will "
-"return HTTP Error 406: Not Acceptable"
-msgstr ""
-"勾选后 RhodeCode 将要求使用 SSL 进行推送和拉取。如果没有使用 SSL 将返回 HTTP "
-"406错误:Not Acceptable"
-
-#: rhodecode/templates/admin/settings/settings.html:198
+"RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
+"will return HTTP Error 406: Not Acceptable"
+msgstr "勾选后RhodeCode将要求使用SSL进行推送和拉取。如果没有使用SSL将返回HTTP 406错误:Not Acceptable"
+
+#: rhodecode/templates/admin/settings/settings.html:209
 msgid "Hooks"
 msgstr "钩子"
 
-#: rhodecode/templates/admin/settings/settings.html:203
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr "推送后更新版本库(hg update)"
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr "推送后显示版本库大小"
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr "记录用户推送命令"
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr "记录用户拉取命令"
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr "高级设置"
 
-#: rhodecode/templates/admin/settings/settings.html:224
+#: rhodecode/templates/admin/settings/settings.html:235
 msgid "Mercurial Extensions"
-msgstr "Mercurial 扩展"
-
-#: rhodecode/templates/admin/settings/settings.html:229
+msgstr "Mercurial扩展"
+
+#: rhodecode/templates/admin/settings/settings.html:240
 msgid "largefiles extensions"
 msgstr "大文件扩展"
 
-#: rhodecode/templates/admin/settings/settings.html:233
+#: rhodecode/templates/admin/settings/settings.html:244
 msgid "hgsubversion extensions"
-msgstr "hgsubversion 扩展"
-
-#: rhodecode/templates/admin/settings/settings.html:235
+msgstr "hgsubversion扩展"
+
+#: rhodecode/templates/admin/settings/settings.html:246
 msgid ""
 "Requires hgsubversion library installed. Allows clonning from svn remote "
 "locations"
-msgstr " 允许从远程 svn 地址克隆。需要安装 hgsubversion 库"
-
-#: rhodecode/templates/admin/settings/settings.html:245
+msgstr " 允许从远程svn地址克隆。需要安装hgsubversion库"
+
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr "版本库路径"
 
-#: rhodecode/templates/admin/settings/settings.html:250
+#: rhodecode/templates/admin/settings/settings.html:261
 msgid ""
 "This a crucial application setting. If you are really sure you need to "
-"change this, you must restart application in order to make this setting take "
-"effect. Click this label to unlock."
+"change this, you must restart application in order to make this setting "
+"take effect. Click this label to unlock."
 msgstr "这是一个关键设置。如果确认修改该项设置,请重启服务以便设置生效。"
 
-#: rhodecode/templates/admin/settings/settings.html:251
-#: rhodecode/templates/base/base.html:218
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr "解锁"
 
-#: rhodecode/templates/admin/settings/settings.html:252
+#: rhodecode/templates/admin/settings/settings.html:263
 msgid ""
-"Location where repositories are stored. After changing this value a restart, "
-"and rescan is required"
+"Location where repositories are stored. After changing this value a "
+"restart, and rescan is required"
 msgstr "版本库存储路径。 修改后需要重启和重新扫描"
 
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr "测试邮件"
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 msgid "Email to"
 msgstr "发送到"
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 msgid "Send"
 msgstr "发送"
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr "系统和软件包信息"
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 msgid "show"
 msgstr "显示"
 
@@ -2508,13 +2589,6 @@
 msgid "Password confirmation"
 msgstr "确认密码"
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr "启用"
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr "编辑用户"
@@ -2532,75 +2606,77 @@
 #: rhodecode/templates/admin/users/user_edit.html:43
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:20
 msgid "API key"
-msgstr "API 密钥"
-
-#: rhodecode/templates/admin/users/user_edit.html:59
+msgstr "API密钥"
+
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr "LDAP DN"
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr "新密码"
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr "确认新密码"
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
 msgid "Inherit default permissions"
 msgstr "继承默认权限"
 
-#: rhodecode/templates/admin/users/user_edit.html:152
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
 msgid ""
 "Select to inherit permissions from %s settings. With this selected below "
 "options does not have any action"
-msgstr "勾选以从 %s 继承权限设置。 勾选后下面的选项将不起作用"
-
-#: rhodecode/templates/admin/users/user_edit.html:158
+msgstr "勾选以从%s继承权限设置。 勾选后下面的选项将不起作用"
+
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr "创建版本库"
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
 msgid "Fork repositories"
 msgstr "复刻版本库"
 
-#: rhodecode/templates/admin/users/user_edit.html:186
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
 msgid "Nothing here yet"
 msgstr "无条目"
 
-#: rhodecode/templates/admin/users/user_edit.html:193
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:218
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 msgid "Permission"
 msgstr "权限"
 
-#: rhodecode/templates/admin/users/user_edit.html:194
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 msgid "Edit Permission"
 msgstr "编辑权限"
 
-#: rhodecode/templates/admin/users/user_edit.html:243
+#: rhodecode/templates/admin/users/user_edit.html:247
 msgid "Email addresses"
 msgstr "邮件地址"
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, python-format
 msgid "Confirm to delete this email: %s"
-msgstr "确认删除邮件地址: %s"
-
-#: rhodecode/templates/admin/users/user_edit.html:270
+msgstr "确认删除邮箱:%s"
+
+#: rhodecode/templates/admin/users/user_edit.html:274
 msgid "New email address"
-msgstr "增加邮件地址"
-
-#: rhodecode/templates/admin/users/user_edit.html:277
+msgstr "增加邮箱"
+
+#: rhodecode/templates/admin/users/user_edit.html:281
 msgid "Add"
 msgstr "增加"
 
@@ -2637,7 +2713,7 @@
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:10
 #, python-format
 msgid "Pull request #%s opened on %s"
-msgstr "拉取请求 #%s 创建于 %s"
+msgstr "拉取请求#%s创建于%s"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:15
 msgid "Confirm to delete this pull request"
@@ -2651,36 +2727,38 @@
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:30
 #, python-format
 msgid "Pull request #%s opened by %s on %s"
-msgstr "拉取请求 #%s 由 %s 创建于 %s"
+msgstr "拉取请求#%s由%s创建于%s"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
 #: rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr "修订"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr "私有"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, python-format
 msgid "Confirm to delete this repository: %s"
-msgstr "确认删除版本库: %s"
+msgstr "确认删除版本库:%s"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr "没有任何版本库"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr "创建一个"
 
@@ -2689,7 +2767,7 @@
 msgstr "用户管理员"
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:232
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr "用户"
 
@@ -2719,7 +2797,7 @@
 msgstr "启用"
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:235
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr "LDAP"
 
@@ -2768,6 +2846,18 @@
 msgid "Group members"
 msgstr "拥护者成员"
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+msgid "No members yet"
+msgstr "还没有成员"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+msgid "Permissions defined for this group"
+msgstr "这个组的权限"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+msgid "No permissions set yet"
+msgstr "还未设置权限"
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr "用户组管理"
@@ -2788,11 +2878,11 @@
 #: rhodecode/templates/admin/users_groups/users_groups.html:45
 #, python-format
 msgid "Confirm to delete this users group: %s"
-msgstr "确认删除该组: %s"
+msgstr "确认删除该组:%s"
 
 #: rhodecode/templates/base/base.html:41
 msgid "Submit a bug"
-msgstr "提交 bug"
+msgstr "提交bug"
 
 #: rhodecode/templates/base/base.html:77
 msgid "Login to your account"
@@ -2811,9 +2901,9 @@
 msgstr "收件箱"
 
 #: rhodecode/templates/base/base.html:123
-#: rhodecode/templates/base/base.html:318
-#: rhodecode/templates/base/base.html:320
 #: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2833,7 +2923,7 @@
 msgstr "产品"
 
 #: rhodecode/templates/base/base.html:152
-#: rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr "载入中..."
 
@@ -2879,7 +2969,7 @@
 #: rhodecode/templates/base/base.html:204
 #: rhodecode/templates/base/base.html:206
 msgid "repository settings"
-msgstr "版本库设置"
+msgstr "版本库选项"
 
 #: rhodecode/templates/base/base.html:210
 #: rhodecode/templates/data_table/_dt_elements.html:80
@@ -2887,48 +2977,58 @@
 msgid "fork"
 msgstr "复刻"
 
-#: rhodecode/templates/base/base.html:212
-#: rhodecode/templates/changelog/changelog.html:41
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr "新建拉取请求"
 
-#: rhodecode/templates/base/base.html:214
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr "比较复刻"
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr "搜索"
 
-#: rhodecode/templates/base/base.html:220
+#: rhodecode/templates/base/base.html:223
 msgid "lock"
 msgstr "锁定"
 
-#: rhodecode/templates/base/base.html:231
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr "版本库组"
 
-#: rhodecode/templates/base/base.html:233
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr "用户组"
 
-#: rhodecode/templates/base/base.html:234
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr "权限"
 
-#: rhodecode/templates/base/base.html:236
+#: rhodecode/templates/base/base.html:239
+#, fuzzy
+msgid "defaults"
+msgstr "默认"
+
+#: rhodecode/templates/base/base.html:240
 msgid "settings"
 msgstr "设置"
 
-#: rhodecode/templates/base/base.html:247
-#: rhodecode/templates/base/base.html:249
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr "关注者"
 
-#: rhodecode/templates/base/base.html:255
-#: rhodecode/templates/base/base.html:257
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr "复刻"
 
-#: rhodecode/templates/base/base.html:336
-#: rhodecode/templates/base/base.html:338
 #: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
 #: rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr "搜索"
@@ -2938,7 +3038,7 @@
 msgstr "添加新的评论"
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr "停止关注该版本库"
@@ -2952,23 +3052,36 @@
 msgid "Group"
 msgstr "组"
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr "搜索被截断"
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr "没有符合的文件"
 
+#: rhodecode/templates/base/root.html:51
+msgid "Open new pull request for selected changesets"
+msgstr "为选择的变更集创建新的拉取请求"
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr "显示选定的修订集:__S -> __E"
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr "选择链接"
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, python-format
 msgid "%s Bookmarks"
-msgstr "%s 书签"
+msgstr "%s书签"
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
 #: rhodecode/templates/tags/tags_data.html:8
 msgid "Author"
 msgstr "作者"
@@ -2976,104 +3089,90 @@
 #: rhodecode/templates/branches/branches.html:5
 #, python-format
 msgid "%s Branches"
-msgstr "%s 分支"
+msgstr "%s分支"
 
 #: rhodecode/templates/branches/branches.html:29
 msgid "Compare branches"
 msgstr "比较分支"
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
 msgid "Compare"
 msgstr "比较显示"
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr "名称"
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr "日期"
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr "作者"
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr "修订"
-
-#: rhodecode/templates/branches/branches_data.html:10
-msgid "compare"
-msgstr "比较显示"
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, python-format
 msgid "%s Changelog"
-msgstr "%s 修订记录"
+msgstr "%s修订记录"
 
 #: rhodecode/templates/changelog/changelog.html:15
 #, python-format
 msgid "showing %d out of %d revision"
 msgid_plural "showing %d out of %d revisions"
-msgstr[0] "显示 %2d 中的 %1d 个版本"
-
-#: rhodecode/templates/changelog/changelog.html:38
+msgstr[0] "显示%d/%d个版本"
+
+#: rhodecode/templates/changelog/changelog.html:37
+msgid "Clear selection"
+msgstr "清除选择"
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr "比较复刻和%s"
 
-#: rhodecode/templates/changelog/changelog.html:38
-#: rhodecode/templates/forks/forks_data.html:21
-msgid "Compare fork"
-msgstr "比较复刻"
-
-#: rhodecode/templates/changelog/changelog.html:47
+#: rhodecode/templates/changelog/changelog.html:40
+msgid "Compare fork with parent"
+msgstr "比较复刻和源版本库"
+
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr "显示"
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr "显示更多"
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr "影响的文件数,点击显示详细信息"
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 msgid "Changeset status"
 msgstr "修订集状态"
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
 #: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
 msgstr "点击建立相关的拉取请求"
 
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr "父版本"
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr "无父版本"
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr "合并"
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -3081,85 +3180,98 @@
 msgid "branch"
 msgstr "分支"
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr "书签"
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr "标签"
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr "显示选定的修订集 __S -> __E"
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr "没有任何变更"
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr "移除"
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr "修改"
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr "添加"
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
-msgstr "影响 %s 文件"
+msgstr "影响%s文件"
 
 #: rhodecode/templates/changeset/changeset.html:6
 #, python-format
 msgid "%s Changeset"
-msgstr "%s 修订集"
+msgstr "%s修订集"
 
 #: rhodecode/templates/changeset/changeset.html:14
 msgid "Changeset"
 msgstr "修订集"
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
-msgstr "原始 diff"
-
-#: rhodecode/templates/changeset/changeset.html:44
+msgstr "原始diff"
+
+#: rhodecode/templates/changeset/changeset.html:50
+msgid "patch diff"
+msgstr "原始diff"
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
-msgstr "下载 diff"
-
-#: rhodecode/templates/changeset/changeset.html:48
+msgstr "下载diff"
+
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "%d comment"
 msgid_plural "%d comments"
-msgstr[0] "%d 条评论"
-
-#: rhodecode/templates/changeset/changeset.html:48
+msgstr[0] "%d条评论"
+
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
 msgid_plural "(%d inline)"
-msgstr[0] "(%d 内嵌)"
-
-#: rhodecode/templates/changeset/changeset.html:103
+msgstr[0] "(%d内嵌)"
+
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
 #, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr "%s 个文件受影响包括 %s 行插入和 %s 行删除:"
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] "修改%s个文件"
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
+#, python-format
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] "修改%s个文件包括%s行插入和%s行删除"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3167,19 +3279,18 @@
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:45
 msgid "Commenting on line {1}."
-msgstr "在 {1} 行上评论"
+msgstr "在{1}行上评论"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:46
 #: rhodecode/templates/changeset/changeset_file_comment.html:121
 #, python-format
 msgid "Comments parsed using %s syntax with %s support."
-msgstr "评论使用 %s 语法并支持 %s"
+msgstr "评论使用%s语法并支持%s"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:48
 #: rhodecode/templates/changeset/changeset_file_comment.html:123
-msgid ""
-"Use @username inside this text to send notification to this RhodeCode user"
-msgstr "在文本中使用 @用户名 以发送通知到该 RhodeCode 用户"
+msgid "Use @username inside this text to send notification to this RhodeCode user"
+msgstr "在文本中使用 @用户名 以发送通知到该RhodeCode用户"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:59
 #: rhodecode/templates/changeset/changeset_file_comment.html:138
@@ -3189,7 +3300,7 @@
 #: rhodecode/templates/changeset/changeset_file_comment.html:60
 #: rhodecode/templates/changeset/changeset_file_comment.html:71
 msgid "Hide"
-msgstr "影藏"
+msgstr "隐藏"
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:67
 msgid "You need to be logged in to comment."
@@ -3218,22 +3329,24 @@
 #: rhodecode/templates/changeset/changeset_range.html:5
 #, python-format
 msgid "%s Changesets"
-msgstr "%s 修订集"
+msgstr "%s修订集"
 
 #: rhodecode/templates/changeset/changeset_range.html:29
 #: rhodecode/templates/compare/compare_diff.html:29
 msgid "Compare View"
 msgstr "比较显示"
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+msgid "Show combined compare"
+msgstr "显示紧凑比较"
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:73
 msgid "Files affected"
 msgstr "影响文件"
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
-msgstr "差别"
+msgid "show full diff for this file"
+msgstr "显示文件的完整差异"
 
 #: rhodecode/templates/changeset/diff_block.html:27
 msgid "show inline comments"
@@ -3244,8 +3357,16 @@
 msgstr "无修订"
 
 #: rhodecode/templates/compare/compare_diff.html:37
-msgid "Outgoing changesets"
-msgstr "传出修订集"
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] "显示%s个提交"
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
+msgid "No files"
+msgstr "无文件"
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
 #: rhodecode/templates/data_table/_dt_elements.html:41
@@ -3254,77 +3375,154 @@
 msgstr "复刻"
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
-msgstr "Mercurial 版本库"
+msgstr "Mercurial版本库"
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
-msgstr "Git 版本库"
+msgstr "Git版本库"
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr "公共版本库"
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr "复刻自"
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr "无修订"
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr "订阅%s的RSS"
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr "订阅%s的Atom"
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, python-format
 msgid "Confirm to delete this user: %s"
-msgstr "确认删除用户: %s"
+msgstr "确认删除用户:%s"
+
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+#, fuzzy
+msgid "New status$"
+msgstr "改变状态"
 
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
-msgstr "这是 RhodeCode 发送的一个通知。"
+msgid "This is a notification from RhodeCode."
+msgstr "这是一个RhodeCode通知。"
+
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+#, fuzzy
+msgid "title"
+msgstr "标题"
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+msgid "description"
+msgstr "描述"
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+#, fuzzy
+msgid "View this pull request here"
+msgstr "为这个拉取请求增加检视人员"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, fuzzy, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+#, fuzzy
+msgid "New status"
+msgstr "改变状态"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+#, fuzzy
+msgid "A new user have registered in RhodeCode"
+msgstr "成功注册到RhodeCode"
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
+msgstr ""
 
 #: rhodecode/templates/errors/error_document.html:46
 #, python-format
 msgid "You will be redirected to %s in %s seconds"
-msgstr "%1s 秒后你将重定向到 %2s"
+msgstr "重定向到%s,于%s秒后"
 
 #: rhodecode/templates/files/file_diff.html:4
 #, python-format
 msgid "%s File diff"
-msgstr "%s 文件差异"
+msgstr "%s文件差异"
 
 #: rhodecode/templates/files/file_diff.html:12
 msgid "File diff"
 msgstr "文件差异"
 
 #: rhodecode/templates/files/files.html:4
-#: rhodecode/templates/files/files.html:72
+#: rhodecode/templates/files/files.html:74
 #, python-format
 msgid "%s files"
-msgstr "%s 文件"
+msgstr "%s文件"
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr "文件"
 
-#: rhodecode/templates/files/files.html:92
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr "选择链接"
-
 #: rhodecode/templates/files/files_add.html:4
 #: rhodecode/templates/files/files_edit.html:4
 #, python-format
 msgid "%s Edit file"
-msgstr "%s 编辑文件"
+msgstr "%s编辑文件"
 
 #: rhodecode/templates/files/files_add.html:19
 msgid "add file"
@@ -3394,7 +3592,7 @@
 msgstr "搜索文件列表"
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:80
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 msgid "add new file"
 msgstr "新建文件"
 
@@ -3408,7 +3606,7 @@
 
 #: rhodecode/templates/files/files_browser.html:49
 msgid "Mimetype"
-msgstr "MIME 类型"
+msgstr "MIME类型"
 
 #: rhodecode/templates/files/files_browser.html:50
 msgid "Last Revision"
@@ -3427,18 +3625,18 @@
 msgstr "编辑文件"
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr "显示注释"
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr "显示原始文件"
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr "下载原始文件"
 
@@ -3450,34 +3648,43 @@
 msgid "Editing file"
 msgstr "编辑文件"
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr "历史"
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 msgid "diff to revision"
 msgstr "比较差异"
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 msgid "show at revision"
 msgstr "显示修订"
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+#, fuzzy
+msgid "show full history"
+msgstr "加载文件历史记录..."
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, python-format
 msgid "%s author"
 msgid_plural "%s authors"
-msgstr[0] "%s 个作者"
-
-#: rhodecode/templates/files/files_source.html:36
+msgstr[0] "%s个作者"
+
+#: rhodecode/templates/files/files_source.html:6
+msgid "Load file history"
+msgstr "加载文件历史记录..."
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr "显示代码"
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr "二进制文件(%s)"
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr "文件过大,不能显示"
 
@@ -3496,7 +3703,7 @@
 #: rhodecode/templates/followers/followers.html:5
 #, python-format
 msgid "%s Followers"
-msgstr "%s 个关注者"
+msgstr "%s个关注者"
 
 #: rhodecode/templates/followers/followers.html:13
 msgid "followers"
@@ -3552,32 +3759,32 @@
 msgid "forked"
 msgstr "已有复刻"
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr "无复刻"
 
 #: rhodecode/templates/journal/journal.html:13
 msgid "ATOM journal feed"
-msgstr "订阅日志 ATOM"
+msgstr "订阅日志ATOM"
 
 #: rhodecode/templates/journal/journal.html:14
 msgid "RSS journal feed"
-msgstr "订阅日志 RSS"
+msgstr "订阅日志RSS"
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:53
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr "刷新"
 
 #: rhodecode/templates/journal/journal.html:27
 #: rhodecode/templates/journal/public_journal.html:24
 msgid "RSS feed"
-msgstr "订阅 RSS"
+msgstr "订阅RSS"
 
 #: rhodecode/templates/journal/journal.html:30
 #: rhodecode/templates/journal/public_journal.html:27
 msgid "ATOM feed"
-msgstr "订阅 ATOM"
+msgstr "订阅ATOM"
 
 #: rhodecode/templates/journal/journal.html:41
 msgid "Watched"
@@ -3587,29 +3794,29 @@
 msgid "ADD"
 msgstr "新建版本库"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr "关注用户"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr "用户"
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr "未关注任何用户或版本库"
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr "没有条目"
 
 #: rhodecode/templates/journal/public_journal.html:13
 msgid "ATOM public journal feed"
-msgstr "订阅公共日志 ATOM"
+msgstr "订阅公共日志ATOM"
 
 #: rhodecode/templates/journal/public_journal.html:14
 msgid "RSS public journal feed"
-msgstr "订阅公共日志 RSS"
+msgstr "订阅公共日志RSS"
 
 #: rhodecode/templates/journal/public_journal.html:21
 msgid "Public Journal"
@@ -3620,51 +3827,47 @@
 msgid "New pull request"
 msgstr "新建拉取请求"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:52
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr "刷新概览"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:64
+#: rhodecode/templates/pullrequests/pullrequest.html:66
 msgid "Detailed compare view"
 msgstr "详细比较显示"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:68
-#: rhodecode/templates/pullrequests/pullrequest_show.html:86
+#: rhodecode/templates/pullrequests/pullrequest.html:70
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr "拉取请求检视人员"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:77
-#: rhodecode/templates/pullrequests/pullrequest_show.html:98
+#: rhodecode/templates/pullrequests/pullrequest.html:79
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 msgid "owner"
 msgstr "所有者"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:89
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest.html:91
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
 msgstr "为这个拉取请求增加检视人员"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:95
+#: rhodecode/templates/pullrequests/pullrequest.html:97
 msgid "Create new pull request"
 msgstr "创建新的拉取请求"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:104
+#: rhodecode/templates/pullrequests/pullrequest.html:106
 #: rhodecode/templates/pullrequests/pullrequest_show.html:25
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:33
 msgid "Title"
 msgstr "标题"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:113
-msgid "description"
-msgstr "描述"
-
-#: rhodecode/templates/pullrequests/pullrequest.html:121
+#: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr "发送拉取请求"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:23
 #, python-format
 msgid "Closed %s"
-msgstr "关闭于 %s"
+msgstr "于%s前关闭"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:23
 #, python-format
@@ -3687,25 +3890,20 @@
 #, python-format
 msgid "%d reviewer"
 msgid_plural "%d reviewers"
-msgstr[0] "%d 个检视者"
+msgstr[0] "%d个检视者"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:50
-#| msgid "Pull request reviewers"
 msgid "pull request was reviewed by all reviewers"
-msgstr "拉取请求已经被所有检视人员检视"
+msgstr "拉取请求已经由所有检视人员检视"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:58
 msgid "Created on"
-msgstr "创建于 %s"
+msgstr "创建于"
 
 #: rhodecode/templates/pullrequests/pullrequest_show.html:65
 msgid "Compare view"
 msgstr "比较显示"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
-msgid "Incoming changesets"
-msgstr "传入修订集"
-
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
 msgid "all pull requests"
 msgstr "所有拉取请求"
@@ -3726,13 +3924,13 @@
 #: rhodecode/templates/search/search.html:8
 #, python-format
 msgid "Search \"%s\" in all repositories"
-msgstr "在所有的版本库中搜索  \"%s\""
+msgstr "在所有的版本库中搜索 \"%s\""
 
 #: rhodecode/templates/search/search.html:12
 #: rhodecode/templates/search/search.html:32
 #, python-format
 msgid "Search in repository: %s"
-msgstr "在版本库 %s 中搜索"
+msgstr "在版本库%s中搜索"
 
 #: rhodecode/templates/search/search.html:14
 #: rhodecode/templates/search/search.html:34
@@ -3768,41 +3966,46 @@
 #: rhodecode/templates/settings/repo_settings.html:5
 #, python-format
 msgid "%s Settings"
-msgstr "%s 设置"
+msgstr "%s设置"
 
 #: rhodecode/templates/shortlog/shortlog.html:5
 #, python-format
 msgid "%s Shortlog"
-msgstr "%s 简短日志"
-
-#: rhodecode/templates/shortlog/shortlog.html:14
+msgstr "%s简短日志"
+
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr "简短日志"
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr "修订"
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr "时间"
 
-#: rhodecode/templates/shortlog/shortlog_data.html:33
-msgid "No commit message"
-msgstr "没有提交信息"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:77
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr "作者"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
-msgstr "通过 RhodeCode 直接添加或者上传文件"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:86
+msgstr "通过RhodeCode直接添加或者上传文件"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
-msgstr "Push 新版本库"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:94
+msgstr "推送新版本库"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 msgid "Existing repository?"
-msgstr "现有版本库?"
+msgstr "已有版本库?"
 
 #: rhodecode/templates/summary/summary.html:4
 #, python-format
 msgid "%s Summary"
-msgstr "%s 概要"
+msgstr "%s概要"
 
 #: rhodecode/templates/summary/summary.html:12
 msgid "summary"
@@ -3811,144 +4014,158 @@
 #: rhodecode/templates/summary/summary.html:20
 #, python-format
 msgid "repo %s ATOM feed"
-msgstr "订阅 ATOM %s"
+msgstr "订阅ATOM %s"
 
 #: rhodecode/templates/summary/summary.html:21
 #, python-format
 msgid "repo %s RSS feed"
-msgstr "订阅 RSS %s"
+msgstr "订阅RSS %s"
 
 #: rhodecode/templates/summary/summary.html:49
 #: rhodecode/templates/summary/summary.html:52
 msgid "ATOM"
 msgstr "ATOM"
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, python-format
+msgid "Repository locked by %s"
+msgstr "版本库由%s锁定"
+
+#: rhodecode/templates/summary/summary.html:72
+msgid "Repository unlocked"
+msgstr "版本库未锁定"
+
+#: rhodecode/templates/summary/summary.html:91
 #, python-format
 msgid "Non changable ID %s"
-msgstr "不可变 ID %s"
-
-#: rhodecode/templates/summary/summary.html:87
+msgstr "不可变ID %s"
+
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr "公共"
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr "远程克隆"
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr "联系方式"
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr "克隆地址"
 
-#: rhodecode/templates/summary/summary.html:133
+#: rhodecode/templates/summary/summary.html:142
 msgid "Show by Name"
 msgstr "以名字显示"
 
-#: rhodecode/templates/summary/summary.html:134
+#: rhodecode/templates/summary/summary.html:143
 msgid "Show by ID"
-msgstr "以 ID 显示"
-
-#: rhodecode/templates/summary/summary.html:142
+msgstr "按ID显示"
+
+#: rhodecode/templates/summary/summary.html:151
 msgid "Trending files"
 msgstr "文件趋势图"
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr "启用"
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr "下载"
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr "无下载"
 
-#: rhodecode/templates/summary/summary.html:164
-msgid "Downloads are disabled for this repository"
-msgstr "这个版本库的下载已经禁用"
-
-#: rhodecode/templates/summary/summary.html:170
-msgid "Download as zip"
-msgstr "下载 zip 包"
-
-#: rhodecode/templates/summary/summary.html:173
-msgid "Check this to download archive with subrepos"
-msgstr "勾选以下载包含子版本库的压缩包"
-
 #: rhodecode/templates/summary/summary.html:173
+msgid "Downloads are disabled for this repository"
+msgstr "这个版本库的下载已经禁用"
+
+#: rhodecode/templates/summary/summary.html:179
+msgid "Download as zip"
+msgstr "zip打包下载"
+
+#: rhodecode/templates/summary/summary.html:182
+msgid "Check this to download archive with subrepos"
+msgstr "勾选以下载包含子版本库的压缩包"
+
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr "包括子版本库"
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
 msgstr "按日期或作者的提交活动"
 
-#: rhodecode/templates/summary/summary.html:197
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
-msgstr "已收集的统计: "
-
-#: rhodecode/templates/summary/summary.html:218
+msgstr "已收集的统计:"
+
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr "简短日志"
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 msgid "Quick start"
 msgstr "快速入门"
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
-msgstr "修订 '%s' 中的README"
-
-#: rhodecode/templates/summary/summary.html:236
+msgstr "修订'%s'中的README"
+
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
-msgstr "这个 README 的固定链接"
-
-#: rhodecode/templates/summary/summary.html:293
+msgstr "这个README的永久链接"
+
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
-msgstr "下载 %s 作为 %s"
-
-#: rhodecode/templates/summary/summary.html:650
+msgstr "下载%s为%s包"
+
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr "提交"
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr "文件已添加"
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr "文件已更改"
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr "文件已删除"
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr "提交"
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr "文件已添加"
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr "文件已更改"
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr "文件已删除"
 
 #: rhodecode/templates/tags/tags.html:5
 #, python-format
 msgid "%s Tags"
-msgstr "%s 标签"
+msgstr "%s标签"
+
+#: rhodecode/templates/tags/tags.html:29
+msgid "Compare tags"
+msgstr "比较标签"
+
Binary file rhodecode/i18n/zh_TW/LC_MESSAGES/rhodecode.mo has changed
--- a/rhodecode/i18n/zh_TW/LC_MESSAGES/rhodecode.po	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/i18n/zh_TW/LC_MESSAGES/rhodecode.po	Thu Dec 13 22:54:21 2012 +0100
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: RhodeCode 1.2.0\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2012-09-02 20:30+0200\n"
+"POT-Creation-Date: 2012-12-03 03:21+0100\n"
 "PO-Revision-Date: 2012-05-09 22:23+0800\n"
 "Last-Translator: Nansen <nansenat16@gmail.com>\n"
 "Language-Team: zh_TW <LL@li.org>\n"
@@ -17,36 +17,39 @@
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.6\n"
 
-#: rhodecode/controllers/changelog.py:94
+#: rhodecode/controllers/changelog.py:95
 #, fuzzy
 msgid "All Branches"
 msgstr "分支"
 
-#: rhodecode/controllers/changeset.py:83
+#: rhodecode/controllers/changeset.py:84
 msgid "show white space"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:90 rhodecode/controllers/changeset.py:97
+#: rhodecode/controllers/changeset.py:91 rhodecode/controllers/changeset.py:98
 msgid "ignore white space"
 msgstr ""
 
-#: rhodecode/controllers/changeset.py:157
+#: rhodecode/controllers/changeset.py:164
 #, fuzzy, python-format
 msgid "%s line context"
 msgstr "文件內容"
 
-#: rhodecode/controllers/changeset.py:333
-#: rhodecode/controllers/changeset.py:348 rhodecode/lib/diffs.py:70
-msgid "binary file"
-msgstr "二進位檔"
-
-#: rhodecode/controllers/changeset.py:408
+#: rhodecode/controllers/changeset.py:315
+#: rhodecode/controllers/pullrequests.py:411
+#, fuzzy, python-format
+msgid "Status change -> %s"
+msgstr "最後修改"
+
+#: rhodecode/controllers/changeset.py:346
 msgid ""
 "Changing status on a changeset associated witha closed pull request is "
 "not allowed"
 msgstr ""
 
-#: rhodecode/controllers/compare.py:69
+#: rhodecode/controllers/compare.py:75
+#: rhodecode/controllers/pullrequests.py:117
+#: rhodecode/controllers/shortlog.py:100
 #, fuzzy
 msgid "There are no changesets yet"
 msgstr "尚未有任何變更"
@@ -77,103 +80,113 @@
 "fulfilling the request."
 msgstr ""
 
-#: rhodecode/controllers/feed.py:49
+#: rhodecode/controllers/feed.py:52
 #, python-format
 msgid "Changes on %s repository"
 msgstr "修改於版本庫 %s"
 
-#: rhodecode/controllers/feed.py:50
+#: rhodecode/controllers/feed.py:53
 #, python-format
 msgid "%s %s feed"
 msgstr ""
 
-#: rhodecode/controllers/feed.py:75
+#: rhodecode/controllers/feed.py:86
+#: rhodecode/templates/changeset/changeset.html:126
+#: rhodecode/templates/changeset/changeset.html:138
+#: rhodecode/templates/compare/compare_diff.html:62
+#: rhodecode/templates/compare/compare_diff.html:73
+#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:153
+msgid "Changeset was too big and was cut off..."
+msgstr ""
+
+#: rhodecode/controllers/feed.py:92
 #, fuzzy
 msgid "commited on"
 msgstr "遞交"
 
-#: rhodecode/controllers/files.py:84
+#: rhodecode/controllers/files.py:86
 #, fuzzy
 msgid "click here to add new file"
 msgstr "新增使用者"
 
-#: rhodecode/controllers/files.py:85
+#: rhodecode/controllers/files.py:87
 #, fuzzy, python-format
 msgid "There are no files yet %s"
 msgstr "尚未有任何檔案"
 
-#: rhodecode/controllers/files.py:239 rhodecode/controllers/files.py:299
+#: rhodecode/controllers/files.py:265 rhodecode/controllers/files.py:325
 #, python-format
 msgid "This repository is has been locked by %s on %s"
 msgstr ""
 
-#: rhodecode/controllers/files.py:266
+#: rhodecode/controllers/files.py:292
 #, python-format
 msgid "Edited %s via RhodeCode"
 msgstr "使用 RhodeCode 編輯 %s"
 
-#: rhodecode/controllers/files.py:271
+#: rhodecode/controllers/files.py:297
 msgid "No changes"
 msgstr "沒有修改"
 
-#: rhodecode/controllers/files.py:282 rhodecode/controllers/files.py:346
+#: rhodecode/controllers/files.py:308 rhodecode/controllers/files.py:372
 #, python-format
 msgid "Successfully committed to %s"
 msgstr "成功遞交至 %s"
 
-#: rhodecode/controllers/files.py:287 rhodecode/controllers/files.py:352
+#: rhodecode/controllers/files.py:313 rhodecode/controllers/files.py:378
 msgid "Error occurred during commit"
 msgstr ""
 
-#: rhodecode/controllers/files.py:318
+#: rhodecode/controllers/files.py:344
 #, fuzzy, python-format
 msgid "Added %s via RhodeCode"
 msgstr "使用 RhodeCode 編輯 %s"
 
-#: rhodecode/controllers/files.py:332
+#: rhodecode/controllers/files.py:358
 #, fuzzy
 msgid "No content"
 msgstr "文件內容"
 
-#: rhodecode/controllers/files.py:336
+#: rhodecode/controllers/files.py:362
 #, fuzzy
 msgid "No filename"
 msgstr "檔案名稱"
 
-#: rhodecode/controllers/files.py:378
+#: rhodecode/controllers/files.py:404
 msgid "downloads disabled"
 msgstr "下載已關閉"
 
-#: rhodecode/controllers/files.py:389
+#: rhodecode/controllers/files.py:415
 #, python-format
 msgid "Unknown revision %s"
 msgstr "未知修訂 %s"
 
-#: rhodecode/controllers/files.py:391
+#: rhodecode/controllers/files.py:417
 msgid "Empty repository"
 msgstr "空的版本庫"
 
-#: rhodecode/controllers/files.py:393
+#: rhodecode/controllers/files.py:419
 msgid "Unknown archive type"
 msgstr "未知的存檔類型"
 
-#: rhodecode/controllers/files.py:494
+#: rhodecode/controllers/files.py:564
 #: rhodecode/templates/changeset/changeset_range.html:13
 #: rhodecode/templates/changeset/changeset_range.html:31
 msgid "Changesets"
 msgstr "變更"
 
-#: rhodecode/controllers/files.py:495 rhodecode/controllers/pullrequests.py:72
-#: rhodecode/controllers/summary.py:232 rhodecode/model/scm.py:543
+#: rhodecode/controllers/files.py:565 rhodecode/controllers/pullrequests.py:76
+#: rhodecode/controllers/summary.py:236 rhodecode/model/scm.py:550
 msgid "Branches"
 msgstr "分支"
 
-#: rhodecode/controllers/files.py:496 rhodecode/controllers/pullrequests.py:76
-#: rhodecode/controllers/summary.py:233 rhodecode/model/scm.py:554
+#: rhodecode/controllers/files.py:566 rhodecode/controllers/pullrequests.py:80
+#: rhodecode/controllers/summary.py:237 rhodecode/model/scm.py:561
 msgid "Tags"
 msgstr "標籤"
 
-#: rhodecode/controllers/forks.py:73 rhodecode/controllers/admin/repos.py:90
+#: rhodecode/controllers/forks.py:74 rhodecode/controllers/admin/repos.py:92
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -181,7 +194,7 @@
 "repositories"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:133 rhodecode/controllers/settings.py:72
+#: rhodecode/controllers/forks.py:134 rhodecode/controllers/settings.py:73
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was created or renamed from "
@@ -189,23 +202,23 @@
 "repositories"
 msgstr ""
 
-#: rhodecode/controllers/forks.py:167
+#: rhodecode/controllers/forks.py:168
 #, python-format
 msgid "forked %s repository as %s"
 msgstr "forked %s 版本庫為 %s"
 
-#: rhodecode/controllers/forks.py:181
+#: rhodecode/controllers/forks.py:182
 #, python-format
 msgid "An error occurred during repository forking %s"
 msgstr ""
 
-#: rhodecode/controllers/journal.py:202 rhodecode/controllers/journal.py:239
+#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
 #, fuzzy
 msgid "public journal"
 msgstr "公開日誌"
 
-#: rhodecode/controllers/journal.py:206 rhodecode/controllers/journal.py:243
-#: rhodecode/templates/base/base.html:220
+#: rhodecode/controllers/journal.py:210 rhodecode/controllers/journal.py:247
+#: rhodecode/templates/base/base.html:232
 msgid "journal"
 msgstr "日誌"
 
@@ -223,59 +236,59 @@
 "email"
 msgstr "您的密碼重設動作已完成,新的密碼已寄至您的信箱"
 
-#: rhodecode/controllers/pullrequests.py:74 rhodecode/model/scm.py:549
+#: rhodecode/controllers/pullrequests.py:78 rhodecode/model/scm.py:556
 msgid "Bookmarks"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:158
+#: rhodecode/controllers/pullrequests.py:186
 msgid "Pull request requires a title with min. 3 chars"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:160
+#: rhodecode/controllers/pullrequests.py:188
 #, fuzzy
 msgid "error during creation of pull request"
 msgstr "建立使用者 %s"
 
-#: rhodecode/controllers/pullrequests.py:181
+#: rhodecode/controllers/pullrequests.py:220
 #, fuzzy
 msgid "Successfully opened new pull request"
 msgstr "成功刪除使用者"
 
-#: rhodecode/controllers/pullrequests.py:184
+#: rhodecode/controllers/pullrequests.py:223
 msgid "Error occurred during sending pull request"
 msgstr ""
 
-#: rhodecode/controllers/pullrequests.py:217
+#: rhodecode/controllers/pullrequests.py:256
 #, fuzzy
 msgid "Successfully deleted pull request"
 msgstr "成功刪除使用者"
 
-#: rhodecode/controllers/search.py:131
+#: rhodecode/controllers/search.py:134
 msgid "Invalid search query. Try quoting it."
 msgstr "無效的查詢。請使用跳脫字元"
 
-#: rhodecode/controllers/search.py:136
+#: rhodecode/controllers/search.py:139
 msgid "There is no index to search in. Please run whoosh indexer"
 msgstr "沒有任何索引可以搜尋。請執行 whoosh 建立索引"
 
-#: rhodecode/controllers/search.py:140
+#: rhodecode/controllers/search.py:143
 msgid "An error occurred during this search operation"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:107
-#: rhodecode/controllers/admin/repos.py:266
+#: rhodecode/controllers/settings.py:108
+#: rhodecode/controllers/admin/repos.py:268
 #, python-format
 msgid "Repository %s updated successfully"
 msgstr "版本庫 %s 更新完成"
 
-#: rhodecode/controllers/settings.py:125
-#: rhodecode/controllers/admin/repos.py:284
+#: rhodecode/controllers/settings.py:126
+#: rhodecode/controllers/admin/repos.py:286
 #, python-format
 msgid "error occurred during update of repository %s"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:143
-#: rhodecode/controllers/admin/repos.py:302
+#: rhodecode/controllers/settings.py:144
+#: rhodecode/controllers/admin/repos.py:304
 #, python-format
 msgid ""
 "%s repository is not mapped to db perhaps it was moved or renamed  from "
@@ -283,28 +296,57 @@
 "repositories"
 msgstr ""
 
-#: rhodecode/controllers/settings.py:155
-#: rhodecode/controllers/admin/repos.py:314
+#: rhodecode/controllers/settings.py:156
+#: rhodecode/controllers/admin/repos.py:316
 #, python-format
 msgid "deleted repository %s"
 msgstr "刪除版本庫 %s"
 
-#: rhodecode/controllers/settings.py:159
-#: rhodecode/controllers/admin/repos.py:324
-#: rhodecode/controllers/admin/repos.py:330
+#: rhodecode/controllers/settings.py:160
+#: rhodecode/controllers/admin/repos.py:326
+#: rhodecode/controllers/admin/repos.py:332
 #, python-format
 msgid "An error occurred during deletion of %s"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:138
+#: rhodecode/controllers/settings.py:179
+#, fuzzy
+msgid "unlocked"
+msgstr "解鎖"
+
+#: rhodecode/controllers/settings.py:182
+#, fuzzy
+msgid "locked"
+msgstr "解鎖"
+
+#: rhodecode/controllers/settings.py:184
+#, fuzzy, python-format
+msgid "Repository has been %s"
+msgstr "forked %s 版本庫為 %s"
+
+#: rhodecode/controllers/settings.py:188
+#: rhodecode/controllers/admin/repos.py:424
+msgid "An error occurred during unlocking"
+msgstr ""
+
+#: rhodecode/controllers/summary.py:140
 msgid "No data loaded yet"
 msgstr ""
 
-#: rhodecode/controllers/summary.py:142
-#: rhodecode/templates/summary/summary.html:148
+#: rhodecode/controllers/summary.py:144
+#: rhodecode/templates/summary/summary.html:157
 msgid "Statistics are disabled for this repository"
 msgstr "這個版本庫的統計功能已停用"
 
+#: rhodecode/controllers/admin/defaults.py:96
+#, fuzzy
+msgid "Default settings updated successfully"
+msgstr "LDAP設定更新完成"
+
+#: rhodecode/controllers/admin/defaults.py:110
+msgid "error occurred during update of defaults"
+msgstr ""
+
 #: rhodecode/controllers/admin/ldap_settings.py:50
 msgid "BASE"
 msgstr ""
@@ -362,18 +404,23 @@
 msgstr ""
 
 #: rhodecode/controllers/admin/permissions.py:59
+#: rhodecode/controllers/admin/permissions.py:63
 msgid "None"
 msgstr "無"
 
 #: rhodecode/controllers/admin/permissions.py:60
+#: rhodecode/controllers/admin/permissions.py:64
 msgid "Read"
 msgstr "讀"
 
 #: rhodecode/controllers/admin/permissions.py:61
+#: rhodecode/controllers/admin/permissions.py:65
 msgid "Write"
 msgstr "寫"
 
 #: rhodecode/controllers/admin/permissions.py:62
+#: rhodecode/controllers/admin/permissions.py:66
+#: rhodecode/templates/admin/defaults/defaults.html:9
 #: rhodecode/templates/admin/ldap/ldap.html:9
 #: rhodecode/templates/admin/permissions/permissions.html:9
 #: rhodecode/templates/admin/repos/repo_add.html:9
@@ -386,231 +433,227 @@
 #: rhodecode/templates/admin/settings/settings.html:9
 #: rhodecode/templates/admin/users/user_add.html:8
 #: rhodecode/templates/admin/users/user_edit.html:9
-#: rhodecode/templates/admin/users/user_edit.html:122
+#: rhodecode/templates/admin/users/user_edit.html:126
 #: rhodecode/templates/admin/users/users.html:9
 #: rhodecode/templates/admin/users_groups/users_group_add.html:8
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:9
 #: rhodecode/templates/admin/users_groups/users_groups.html:9
 #: rhodecode/templates/base/base.html:197
-#: rhodecode/templates/base/base.html:337
-#: rhodecode/templates/base/base.html:339
-#: rhodecode/templates/base/base.html:341
+#: rhodecode/templates/base/base.html:350
+#: rhodecode/templates/base/base.html:352
+#: rhodecode/templates/base/base.html:354
 msgid "Admin"
 msgstr "管理"
 
-#: rhodecode/controllers/admin/permissions.py:65
+#: rhodecode/controllers/admin/permissions.py:69
 msgid "disabled"
 msgstr "停用"
 
-#: rhodecode/controllers/admin/permissions.py:67
-msgid "allowed with manual account activation"
-msgstr "允許手動啟用帳號"
-
-#: rhodecode/controllers/admin/permissions.py:69
-msgid "allowed with automatic account activation"
-msgstr "允許自動啟用帳號"
-
 #: rhodecode/controllers/admin/permissions.py:71
-#: rhodecode/controllers/admin/permissions.py:74
+msgid "allowed with manual account activation"
+msgstr "允許手動啟用帳號"
+
+#: rhodecode/controllers/admin/permissions.py:73
+msgid "allowed with automatic account activation"
+msgstr "允許自動啟用帳號"
+
+#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:78
 msgid "Disabled"
 msgstr "停用"
 
-#: rhodecode/controllers/admin/permissions.py:72
-#: rhodecode/controllers/admin/permissions.py:75
+#: rhodecode/controllers/admin/permissions.py:76
+#: rhodecode/controllers/admin/permissions.py:79
 msgid "Enabled"
 msgstr "啟用"
 
-#: rhodecode/controllers/admin/permissions.py:116
+#: rhodecode/controllers/admin/permissions.py:122
 msgid "Default permissions updated successfully"
 msgstr "預設權限更新完成"
 
-#: rhodecode/controllers/admin/permissions.py:130
+#: rhodecode/controllers/admin/permissions.py:136
 msgid "error occurred during update of permissions"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:123
+#: rhodecode/controllers/admin/repos.py:125
 msgid "--REMOVE FORK--"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:192
+#: rhodecode/controllers/admin/repos.py:194
 #, python-format
 msgid "created repository %s from %s"
 msgstr "建立版本庫 %s 到 %s"
 
-#: rhodecode/controllers/admin/repos.py:196
+#: rhodecode/controllers/admin/repos.py:198
 #, python-format
 msgid "created repository %s"
 msgstr "建立版本庫 %s"
 
-#: rhodecode/controllers/admin/repos.py:227
+#: rhodecode/controllers/admin/repos.py:229
 #, python-format
 msgid "error occurred during creation of repository %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:319
+#: rhodecode/controllers/admin/repos.py:321
 #, python-format
 msgid "Cannot delete %s it still contains attached forks"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:348
+#: rhodecode/controllers/admin/repos.py:350
 msgid "An error occurred during deletion of repository user"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:367
+#: rhodecode/controllers/admin/repos.py:369
 msgid "An error occurred during deletion of repository users groups"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:385
+#: rhodecode/controllers/admin/repos.py:387
 msgid "An error occurred during deletion of repository stats"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:402
+#: rhodecode/controllers/admin/repos.py:404
 msgid "An error occurred during cache invalidation"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:422
-msgid "An error occurred during unlocking"
-msgstr ""
-
-#: rhodecode/controllers/admin/repos.py:442
+#: rhodecode/controllers/admin/repos.py:444
 msgid "Updated repository visibility in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:446
+#: rhodecode/controllers/admin/repos.py:448
 msgid "An error occurred during setting this repository in public journal"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:451 rhodecode/model/validators.py:299
+#: rhodecode/controllers/admin/repos.py:453 rhodecode/model/validators.py:300
 msgid "Token mismatch"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:464
-msgid "Pulled from remote location"
-msgstr ""
-
 #: rhodecode/controllers/admin/repos.py:466
+msgid "Pulled from remote location"
+msgstr ""
+
+#: rhodecode/controllers/admin/repos.py:468
 msgid "An error occurred during pull from remote location"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos.py:482
-msgid "Nothing"
-msgstr ""
-
 #: rhodecode/controllers/admin/repos.py:484
+msgid "Nothing"
+msgstr ""
+
+#: rhodecode/controllers/admin/repos.py:486
 #, fuzzy, python-format
 msgid "Marked repo %s as fork of %s"
 msgstr "建立版本庫 %s 到 %s"
 
-#: rhodecode/controllers/admin/repos.py:488
+#: rhodecode/controllers/admin/repos.py:490
 msgid "An error occurred during this operation"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:116
+#: rhodecode/controllers/admin/repos_groups.py:120
 #, python-format
 msgid "created repos group %s"
 msgstr "建立版本庫群組 %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:129
+#: rhodecode/controllers/admin/repos_groups.py:133
 #, python-format
 msgid "error occurred during creation of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:163
+#: rhodecode/controllers/admin/repos_groups.py:167
 #, python-format
 msgid "updated repos group %s"
 msgstr "更新版本庫群組 %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:176
+#: rhodecode/controllers/admin/repos_groups.py:180
 #, python-format
 msgid "error occurred during update of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:194
+#: rhodecode/controllers/admin/repos_groups.py:198
 #, python-format
 msgid "This group contains %s repositores and cannot be deleted"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:202
+#: rhodecode/controllers/admin/repos_groups.py:206
 #, python-format
 msgid "removed repos group %s"
 msgstr "移除版本庫群組 %s"
 
-#: rhodecode/controllers/admin/repos_groups.py:208
+#: rhodecode/controllers/admin/repos_groups.py:212
 msgid "Cannot delete this group it still contains subgroups"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:213
-#: rhodecode/controllers/admin/repos_groups.py:218
+#: rhodecode/controllers/admin/repos_groups.py:217
+#: rhodecode/controllers/admin/repos_groups.py:222
 #, python-format
 msgid "error occurred during deletion of repos group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:238
+#: rhodecode/controllers/admin/repos_groups.py:243
 msgid "An error occurred during deletion of group user"
 msgstr ""
 
-#: rhodecode/controllers/admin/repos_groups.py:258
+#: rhodecode/controllers/admin/repos_groups.py:264
 msgid "An error occurred during deletion of group users groups"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:121
+#: rhodecode/controllers/admin/settings.py:123
 #, python-format
 msgid "Repositories successfully rescanned added: %s,removed: %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:129
+#: rhodecode/controllers/admin/settings.py:131
 msgid "Whoosh reindex task scheduled"
 msgstr "Whoosh 重新索引工作排程"
 
-#: rhodecode/controllers/admin/settings.py:160
+#: rhodecode/controllers/admin/settings.py:162
 msgid "Updated application settings"
 msgstr "更新應用設定"
 
-#: rhodecode/controllers/admin/settings.py:164
-#: rhodecode/controllers/admin/settings.py:275
+#: rhodecode/controllers/admin/settings.py:166
+#: rhodecode/controllers/admin/settings.py:299
 msgid "error occurred during updating application settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:200
+#: rhodecode/controllers/admin/settings.py:207
 #, fuzzy
 msgid "Updated visualisation settings"
 msgstr "更新應用設定"
 
-#: rhodecode/controllers/admin/settings.py:205
+#: rhodecode/controllers/admin/settings.py:212
 msgid "error occurred during updating visualisation settings"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:271
+#: rhodecode/controllers/admin/settings.py:295
 #, fuzzy
 msgid "Updated VCS settings"
 msgstr "更新 mercurial 設定"
 
-#: rhodecode/controllers/admin/settings.py:285
+#: rhodecode/controllers/admin/settings.py:309
 msgid "Added new hook"
 msgstr "新增hook"
 
-#: rhodecode/controllers/admin/settings.py:297
+#: rhodecode/controllers/admin/settings.py:321
 msgid "Updated hooks"
 msgstr "更新hook"
 
-#: rhodecode/controllers/admin/settings.py:301
+#: rhodecode/controllers/admin/settings.py:325
 msgid "error occurred during hook creation"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:320
+#: rhodecode/controllers/admin/settings.py:344
 msgid "Email task created"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:375
+#: rhodecode/controllers/admin/settings.py:399
 msgid "You can't edit this user since it's crucial for entire application"
 msgstr ""
 
-#: rhodecode/controllers/admin/settings.py:406
+#: rhodecode/controllers/admin/settings.py:430
 msgid "Your account was updated successfully"
 msgstr "您的帳號已更新完成"
 
-#: rhodecode/controllers/admin/settings.py:421
-#: rhodecode/controllers/admin/users.py:191
+#: rhodecode/controllers/admin/settings.py:445
+#: rhodecode/controllers/admin/users.py:196
 #, python-format
 msgid "error occurred during update of user %s"
 msgstr ""
@@ -625,100 +668,100 @@
 msgid "error occurred during creation of user %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:171
+#: rhodecode/controllers/admin/users.py:176
 msgid "User updated successfully"
 msgstr "使用者更新完成"
 
-#: rhodecode/controllers/admin/users.py:207
-msgid "successfully deleted user"
-msgstr "成功刪除使用者"
-
 #: rhodecode/controllers/admin/users.py:212
+msgid "successfully deleted user"
+msgstr "成功刪除使用者"
+
+#: rhodecode/controllers/admin/users.py:217
 msgid "An error occurred during deletion of user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:226
+#: rhodecode/controllers/admin/users.py:231
 msgid "You can't edit this user"
 msgstr "您無法編輯這位使用者"
 
-#: rhodecode/controllers/admin/users.py:266
+#: rhodecode/controllers/admin/users.py:272
 msgid "Granted 'repository create' permission to user"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:271
-msgid "Revoked 'repository create' permission to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:277
+msgid "Revoked 'repository create' permission to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:283
 #, fuzzy
 msgid "Granted 'repository fork' permission to user"
 msgstr "版本庫權限"
 
-#: rhodecode/controllers/admin/users.py:282
+#: rhodecode/controllers/admin/users.py:288
 #, fuzzy
 msgid "Revoked 'repository fork' permission to user"
 msgstr "版本庫權限"
 
-#: rhodecode/controllers/admin/users.py:288
-#: rhodecode/controllers/admin/users_groups.py:255
+#: rhodecode/controllers/admin/users.py:294
+#: rhodecode/controllers/admin/users_groups.py:279
 msgid "An error occurred during permissions saving"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:303
-#, python-format
-msgid "Added email %s to user"
-msgstr ""
-
 #: rhodecode/controllers/admin/users.py:309
+#, python-format
+msgid "Added email %s to user"
+msgstr ""
+
+#: rhodecode/controllers/admin/users.py:315
 msgid "An error occurred during email saving"
 msgstr ""
 
-#: rhodecode/controllers/admin/users.py:319
+#: rhodecode/controllers/admin/users.py:325
 #, fuzzy
 msgid "Removed email from user"
 msgstr "移除版本庫群組 %s"
 
-#: rhodecode/controllers/admin/users_groups.py:84
+#: rhodecode/controllers/admin/users_groups.py:86
 #, python-format
 msgid "created users group %s"
 msgstr "建立使用者群組 %s"
 
-#: rhodecode/controllers/admin/users_groups.py:95
+#: rhodecode/controllers/admin/users_groups.py:97
 #, python-format
 msgid "error occurred during creation of users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:135
+#: rhodecode/controllers/admin/users_groups.py:164
 #, python-format
 msgid "updated users group %s"
 msgstr "更新使用者群組 %s"
 
-#: rhodecode/controllers/admin/users_groups.py:157
+#: rhodecode/controllers/admin/users_groups.py:186
 #, python-format
 msgid "error occurred during update of users group %s"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:174
+#: rhodecode/controllers/admin/users_groups.py:203
 msgid "successfully deleted users group"
 msgstr "成功移除使用者群組"
 
-#: rhodecode/controllers/admin/users_groups.py:179
+#: rhodecode/controllers/admin/users_groups.py:208
 msgid "An error occurred during deletion of users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:233
+#: rhodecode/controllers/admin/users_groups.py:257
 msgid "Granted 'repository create' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:238
+#: rhodecode/controllers/admin/users_groups.py:262
 msgid "Revoked 'repository create' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:244
+#: rhodecode/controllers/admin/users_groups.py:268
 msgid "Granted 'repository fork' permission to users group"
 msgstr ""
 
-#: rhodecode/controllers/admin/users_groups.py:249
+#: rhodecode/controllers/admin/users_groups.py:273
 msgid "Revoked 'repository fork' permission to users group"
 msgstr ""
 
@@ -730,315 +773,340 @@
 msgid "You need to be a signed in to view this page"
 msgstr "您必須登入後才能瀏覽這個頁面"
 
-#: rhodecode/lib/diffs.py:86
+#: rhodecode/lib/diffs.py:74
+msgid "binary file"
+msgstr "二進位檔"
+
+#: rhodecode/lib/diffs.py:90
 msgid "Changeset was too big and was cut off, use diff menu to display this diff"
 msgstr ""
 
-#: rhodecode/lib/diffs.py:96
+#: rhodecode/lib/diffs.py:100
 msgid "No changes detected"
 msgstr "尚未有任何變更"
 
-#: rhodecode/lib/helpers.py:372
+#: rhodecode/lib/helpers.py:373
 #, python-format
 msgid "%a, %d %b %Y %H:%M:%S"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:484
+#: rhodecode/lib/helpers.py:485
 msgid "True"
 msgstr "真"
 
-#: rhodecode/lib/helpers.py:488
+#: rhodecode/lib/helpers.py:489
 msgid "False"
 msgstr "假"
 
+#: rhodecode/lib/helpers.py:529
+#, fuzzy, python-format
+msgid "Deleted branch: %s"
+msgstr "刪除版本庫 %s"
+
 #: rhodecode/lib/helpers.py:532
+#, fuzzy, python-format
+msgid "Created tag: %s"
+msgstr "建立使用者 %s"
+
+#: rhodecode/lib/helpers.py:545
 #, fuzzy
 msgid "Changeset not found"
 msgstr "修改"
 
-#: rhodecode/lib/helpers.py:555
+#: rhodecode/lib/helpers.py:588
 #, python-format
 msgid "Show all combined changesets %s->%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:561
+#: rhodecode/lib/helpers.py:594
 msgid "compare view"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:581
+#: rhodecode/lib/helpers.py:614
 msgid "and"
 msgstr "和"
 
-#: rhodecode/lib/helpers.py:582
+#: rhodecode/lib/helpers.py:615
 #, python-format
 msgid "%s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:583 rhodecode/templates/changelog/changelog.html:48
+#: rhodecode/lib/helpers.py:616 rhodecode/templates/changelog/changelog.html:51
 msgid "revisions"
 msgstr "修訂"
 
-#: rhodecode/lib/helpers.py:606
-msgid "fork name "
+#: rhodecode/lib/helpers.py:640
+#, fuzzy, python-format
+msgid "fork name %s"
 msgstr "fork 名稱"
 
-#: rhodecode/lib/helpers.py:620
+#: rhodecode/lib/helpers.py:653
 #: rhodecode/templates/pullrequests/pullrequest_show.html:4
 #: rhodecode/templates/pullrequests/pullrequest_show.html:12
 #, python-format
 msgid "Pull request #%s"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:626
+#: rhodecode/lib/helpers.py:659
 msgid "[deleted] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:628 rhodecode/lib/helpers.py:638
+#: rhodecode/lib/helpers.py:661 rhodecode/lib/helpers.py:671
 msgid "[created] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:630
+#: rhodecode/lib/helpers.py:663
 #, fuzzy
 msgid "[created] repository as fork"
 msgstr "建立版本庫 %s"
 
-#: rhodecode/lib/helpers.py:632 rhodecode/lib/helpers.py:640
+#: rhodecode/lib/helpers.py:665 rhodecode/lib/helpers.py:673
 msgid "[forked] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:634 rhodecode/lib/helpers.py:642
+#: rhodecode/lib/helpers.py:667 rhodecode/lib/helpers.py:675
 msgid "[updated] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:636
+#: rhodecode/lib/helpers.py:669
 msgid "[delete] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:644
+#: rhodecode/lib/helpers.py:677
 #, fuzzy
 msgid "[created] user"
 msgstr "建立使用者 %s"
 
-#: rhodecode/lib/helpers.py:646
+#: rhodecode/lib/helpers.py:679
 #, fuzzy
 msgid "[updated] user"
 msgstr "更新使用者群組 %s"
 
-#: rhodecode/lib/helpers.py:648
+#: rhodecode/lib/helpers.py:681
 #, fuzzy
 msgid "[created] users group"
 msgstr "建立使用者群組 %s"
 
-#: rhodecode/lib/helpers.py:650
+#: rhodecode/lib/helpers.py:683
 #, fuzzy
 msgid "[updated] users group"
 msgstr "更新使用者群組 %s"
 
-#: rhodecode/lib/helpers.py:652
+#: rhodecode/lib/helpers.py:685
 msgid "[commented] on revision in repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:654
+#: rhodecode/lib/helpers.py:687
 #, fuzzy
 msgid "[commented] on pull request for"
 msgstr "建立使用者 %s"
 
-#: rhodecode/lib/helpers.py:656
+#: rhodecode/lib/helpers.py:689
 msgid "[closed] pull request for"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:658
+#: rhodecode/lib/helpers.py:691
 msgid "[pushed] into"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:660
+#: rhodecode/lib/helpers.py:693
 msgid "[committed via RhodeCode] into repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:662
+#: rhodecode/lib/helpers.py:695
 msgid "[pulled from remote] into repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:664
+#: rhodecode/lib/helpers.py:697
 msgid "[pulled] from"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:666
+#: rhodecode/lib/helpers.py:699
 msgid "[started following] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:668
+#: rhodecode/lib/helpers.py:701
 msgid "[stopped following] repository"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:840
+#: rhodecode/lib/helpers.py:877
 #, python-format
 msgid " and %s more"
 msgstr ""
 
-#: rhodecode/lib/helpers.py:844
+#: rhodecode/lib/helpers.py:881
 msgid "No Files"
 msgstr "沒有檔案"
 
-#: rhodecode/lib/utils2.py:335
+#: rhodecode/lib/utils2.py:403
 #, fuzzy, python-format
 msgid "%d year"
 msgid_plural "%d years"
 msgstr[0] "年"
 
-#: rhodecode/lib/utils2.py:336
+#: rhodecode/lib/utils2.py:404
 #, fuzzy, python-format
 msgid "%d month"
 msgid_plural "%d months"
 msgstr[0] "月"
 
-#: rhodecode/lib/utils2.py:337
+#: rhodecode/lib/utils2.py:405
 #, fuzzy, python-format
 msgid "%d day"
 msgid_plural "%d days"
 msgstr[0] "日"
 
-#: rhodecode/lib/utils2.py:338
+#: rhodecode/lib/utils2.py:406
 #, fuzzy, python-format
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] "時"
 
-#: rhodecode/lib/utils2.py:339
+#: rhodecode/lib/utils2.py:407
 #, fuzzy, python-format
 msgid "%d minute"
 msgid_plural "%d minutes"
 msgstr[0] "分"
 
-#: rhodecode/lib/utils2.py:340
+#: rhodecode/lib/utils2.py:408
 #, fuzzy, python-format
 msgid "%d second"
 msgid_plural "%d seconds"
 msgstr[0] "秒"
 
-#: rhodecode/lib/utils2.py:355
+#: rhodecode/lib/utils2.py:424
+#, python-format
+msgid "in %s"
+msgstr ""
+
+#: rhodecode/lib/utils2.py:426
 #, fuzzy, python-format
 msgid "%s ago"
 msgstr "之前"
 
-#: rhodecode/lib/utils2.py:357
+#: rhodecode/lib/utils2.py:428
+#, fuzzy, python-format
+msgid "in %s and %s"
+msgstr "下載 %s 為 %s"
+
+#: rhodecode/lib/utils2.py:431
 #, python-format
 msgid "%s and %s ago"
 msgstr ""
 
-#: rhodecode/lib/utils2.py:360
+#: rhodecode/lib/utils2.py:434
 msgid "just now"
 msgstr "現在"
 
-#: rhodecode/lib/celerylib/tasks.py:269
+#: rhodecode/lib/celerylib/tasks.py:270
 #, fuzzy
 msgid "password reset link"
 msgstr "您的密碼重設連結已寄出"
 
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1163 rhodecode/model/db.py:1180
+#, fuzzy
+msgid "Repository no access"
+msgstr "個版本庫"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1164 rhodecode/model/db.py:1181
+#, fuzzy
+msgid "Repository read access"
+msgstr "這個版本庫已經存在"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1165 rhodecode/model/db.py:1182
+#, fuzzy
+msgid "Repository write access"
+msgstr "個版本庫"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1166 rhodecode/model/db.py:1183
+#, fuzzy
+msgid "Repository admin access"
+msgstr "個版本庫"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1168 rhodecode/model/db.py:1185
+#, fuzzy
+msgid "Repositories Group no access"
+msgstr "版本庫群組"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1169 rhodecode/model/db.py:1186
+#, fuzzy
+msgid "Repositories Group read access"
+msgstr "版本庫群組"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1170 rhodecode/model/db.py:1187
+#, fuzzy
+msgid "Repositories Group write access"
+msgstr "版本庫群組"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1171 rhodecode/model/db.py:1188
+#, fuzzy
+msgid "Repositories Group admin access"
+msgstr "版本庫群組"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1173 rhodecode/model/db.py:1190
+#, fuzzy
+msgid "RhodeCode Administrator"
+msgstr "使用者管理員"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1174 rhodecode/model/db.py:1191
+#, fuzzy
+msgid "Repository creation disabled"
+msgstr "版本庫建立"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1175 rhodecode/model/db.py:1192
+#, fuzzy
+msgid "Repository creation enabled"
+msgstr "版本庫建立"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1176 rhodecode/model/db.py:1193
+#, fuzzy
+msgid "Repository forking disabled"
+msgstr "版本庫建立"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1177 rhodecode/model/db.py:1194
+#, fuzzy
+msgid "Repository forking enabled"
+msgstr "版本庫建立"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1178 rhodecode/model/db.py:1195
+#, fuzzy
+msgid "Register disabled"
+msgstr "停用"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1179 rhodecode/model/db.py:1196
+msgid "Register new user with RhodeCode with manual activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1182 rhodecode/model/db.py:1199
+msgid "Register new user with RhodeCode with auto activation"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1623 rhodecode/model/db.py:1640
+msgid "Not Reviewed"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1624 rhodecode/model/db.py:1641
+#, fuzzy
+msgid "Approved"
+msgstr "移除"
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1625 rhodecode/model/db.py:1642
+msgid "Rejected"
+msgstr ""
+
+#: rhodecode/lib/dbmigrate/schema/db_1_4_0.py:1626 rhodecode/model/db.py:1643
+msgid "Under Review"
+msgstr ""
+
 #: rhodecode/model/comment.py:110
 #, python-format
 msgid "on line %s"
 msgstr ""
 
-#: rhodecode/model/comment.py:157
+#: rhodecode/model/comment.py:173
 msgid "[Mention]"
 msgstr ""
 
-#: rhodecode/model/db.py:1140
-#, fuzzy
-msgid "Repository no access"
-msgstr "個版本庫"
-
-#: rhodecode/model/db.py:1141
-#, fuzzy
-msgid "Repository read access"
-msgstr "這個版本庫已經存在"
-
-#: rhodecode/model/db.py:1142
-#, fuzzy
-msgid "Repository write access"
-msgstr "個版本庫"
-
-#: rhodecode/model/db.py:1143
-#, fuzzy
-msgid "Repository admin access"
-msgstr "個版本庫"
-
-#: rhodecode/model/db.py:1145
-#, fuzzy
-msgid "Repositories Group no access"
-msgstr "版本庫群組"
-
-#: rhodecode/model/db.py:1146
-#, fuzzy
-msgid "Repositories Group read access"
-msgstr "版本庫群組"
-
-#: rhodecode/model/db.py:1147
-#, fuzzy
-msgid "Repositories Group write access"
-msgstr "版本庫群組"
-
-#: rhodecode/model/db.py:1148
-#, fuzzy
-msgid "Repositories Group admin access"
-msgstr "版本庫群組"
-
-#: rhodecode/model/db.py:1150
-#, fuzzy
-msgid "RhodeCode Administrator"
-msgstr "使用者管理員"
-
-#: rhodecode/model/db.py:1151
-#, fuzzy
-msgid "Repository creation disabled"
-msgstr "版本庫建立"
-
-#: rhodecode/model/db.py:1152
-#, fuzzy
-msgid "Repository creation enabled"
-msgstr "版本庫建立"
-
-#: rhodecode/model/db.py:1153
-#, fuzzy
-msgid "Repository forking disabled"
-msgstr "版本庫建立"
-
-#: rhodecode/model/db.py:1154
-#, fuzzy
-msgid "Repository forking enabled"
-msgstr "版本庫建立"
-
-#: rhodecode/model/db.py:1155
-#, fuzzy
-msgid "Register disabled"
-msgstr "停用"
-
-#: rhodecode/model/db.py:1156
-msgid "Register new user with RhodeCode with manual activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1159
-msgid "Register new user with RhodeCode with auto activation"
-msgstr ""
-
-#: rhodecode/model/db.py:1579
-msgid "Not Reviewed"
-msgstr ""
-
-#: rhodecode/model/db.py:1580
-#, fuzzy
-msgid "Approved"
-msgstr "移除"
-
-#: rhodecode/model/db.py:1581
-msgid "Rejected"
-msgstr ""
-
-#: rhodecode/model/db.py:1582
-msgid "Under Review"
-msgstr ""
-
 #: rhodecode/model/forms.py:43
 msgid "Please enter a login"
 msgstr "請登入"
@@ -1058,37 +1126,41 @@
 msgstr ""
 
 #: rhodecode/model/notification.py:220
-msgid "commented on commit"
+#, python-format
+msgid "commented on commit at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:221
-#, fuzzy
-msgid "sent message"
+#, fuzzy, python-format
+msgid "sent message at %(when)s"
 msgstr "遞交資訊"
 
 #: rhodecode/model/notification.py:222
-msgid "mentioned you"
+#, python-format
+msgid "mentioned you at %(when)s"
 msgstr ""
 
 #: rhodecode/model/notification.py:223
-#, fuzzy
-msgid "registered in RhodeCode"
+#, fuzzy, python-format
+msgid "registered in RhodeCode at %(when)s"
 msgstr "您已經成功註冊rhodecode"
 
 #: rhodecode/model/notification.py:224
-msgid "opened new pull request"
-msgstr ""
+#, fuzzy, python-format
+msgid "opened new pull request at %(when)s"
+msgstr "建立使用者 %s"
 
 #: rhodecode/model/notification.py:225
-msgid "commented on pull request"
-msgstr ""
-
-#: rhodecode/model/pull_request.py:84
+#, fuzzy, python-format
+msgid "commented on pull request at %(when)s"
+msgstr "建立使用者 %s"
+
+#: rhodecode/model/pull_request.py:90
 #, python-format
 msgid "%(user)s wants you to review pull request #%(pr_id)s"
 msgstr ""
 
-#: rhodecode/model/scm.py:535
+#: rhodecode/model/scm.py:542
 #, fuzzy
 msgid "latest tip"
 msgstr "最後登入"
@@ -1098,155 +1170,160 @@
 msgid "new user registration"
 msgstr "[RhodeCode] 新使用者註冊"
 
-#: rhodecode/model/user.py:255 rhodecode/model/user.py:277
-#: rhodecode/model/user.py:299
+#: rhodecode/model/user.py:255 rhodecode/model/user.py:279
+#: rhodecode/model/user.py:301
 msgid "You can't Edit this user since it's crucial for entire application"
 msgstr "您無法編輯這個使用者,因為他是系統帳號"
 
-#: rhodecode/model/user.py:323
+#: rhodecode/model/user.py:325
 msgid "You can't remove this user since it's crucial for entire application"
 msgstr "您無法移除這個使用者,因為他是系統帳號"
 
-#: rhodecode/model/user.py:329
+#: rhodecode/model/user.py:331
 #, fuzzy, python-format
 msgid ""
 "user \"%s\" still owns %s repositories and cannot be removed. Switch "
 "owners or remove those repositories. %s"
 msgstr "這個使用者擁有 %s 個版本庫所以無法移除,請先變更版本庫擁有者或者刪除版本庫"
 
-#: rhodecode/model/validators.py:35 rhodecode/model/validators.py:36
+#: rhodecode/model/validators.py:36 rhodecode/model/validators.py:37
 msgid "Value cannot be an empty list"
 msgstr ""
 
-#: rhodecode/model/validators.py:82
+#: rhodecode/model/validators.py:83
 #, fuzzy, python-format
 msgid "Username \"%(username)s\" already exists"
 msgstr "使用者名稱已存在"
 
-#: rhodecode/model/validators.py:84
+#: rhodecode/model/validators.py:85
 #, python-format
 msgid "Username \"%(username)s\" is forbidden"
 msgstr ""
 
-#: rhodecode/model/validators.py:86
+#: rhodecode/model/validators.py:87
 msgid ""
 "Username may only contain alphanumeric characters underscores, periods or"
 " dashes and must begin with alphanumeric character"
 msgstr "使用者名稱只能使用字母數字、底線、小數點或破折號,且必須使用數字或字母開頭"
 
-#: rhodecode/model/validators.py:114
+#: rhodecode/model/validators.py:115
 #, fuzzy, python-format
 msgid "Username %(username)s is not valid"
 msgstr "使用者名稱或群組名稱無效"
 
-#: rhodecode/model/validators.py:133
+#: rhodecode/model/validators.py:134
 #, fuzzy
 msgid "Invalid users group name"
 msgstr "無效的使用者名稱"
 
-#: rhodecode/model/validators.py:134
+#: rhodecode/model/validators.py:135
 #, fuzzy, python-format
 msgid "Users group \"%(usersgroup)s\" already exists"
 msgstr "這個使用者群組已存在"
 
-#: rhodecode/model/validators.py:136
+#: rhodecode/model/validators.py:137
 msgid ""
 "users group name may only contain  alphanumeric characters underscores, "
 "periods or dashes and must begin with alphanumeric character"
 msgstr "群組名稱只能使用字母數字、底線、小數點或破折號,且必須使用數字或字母開頭"
 
-#: rhodecode/model/validators.py:174
+#: rhodecode/model/validators.py:175
 msgid "Cannot assign this group as parent"
 msgstr ""
 
-#: rhodecode/model/validators.py:175
+#: rhodecode/model/validators.py:176
 #, fuzzy, python-format
 msgid "Group \"%(group_name)s\" already exists"
 msgstr "使用者名稱已存在"
 
-#: rhodecode/model/validators.py:177
+#: rhodecode/model/validators.py:178
 #, fuzzy, python-format
 msgid "Repository with name \"%(group_name)s\" already exists"
 msgstr "這個版本庫已經存在"
 
-#: rhodecode/model/validators.py:235
+#: rhodecode/model/validators.py:236
 #, fuzzy
 msgid "Invalid characters (non-ascii) in password"
 msgstr "無效的字元在密碼中"
 
-#: rhodecode/model/validators.py:250
+#: rhodecode/model/validators.py:251
 msgid "Passwords do not match"
 msgstr "密碼不相符"
 
-#: rhodecode/model/validators.py:267
-msgid "invalid password"
-msgstr "無效的密碼"
-
 #: rhodecode/model/validators.py:268
-msgid "invalid user name"
-msgstr "無效的使用者名稱"
+msgid "invalid password"
+msgstr "無效的密碼"
 
 #: rhodecode/model/validators.py:269
+msgid "invalid user name"
+msgstr "無效的使用者名稱"
+
+#: rhodecode/model/validators.py:270
 msgid "Your account is disabled"
 msgstr "您的帳號已被停用"
 
-#: rhodecode/model/validators.py:313
+#: rhodecode/model/validators.py:314
 #, fuzzy, python-format
 msgid "Repository name %(repo)s is disallowed"
 msgstr "不允許的版本庫名稱"
 
-#: rhodecode/model/validators.py:315
+#: rhodecode/model/validators.py:316
 #, fuzzy, python-format
 msgid "Repository named %(repo)s already exists"
 msgstr "這個版本庫已經存在"
 
-#: rhodecode/model/validators.py:316
+#: rhodecode/model/validators.py:317
 #, fuzzy, python-format
 msgid "Repository \"%(repo)s\" already exists in group \"%(group)s\""
 msgstr "這個版本庫已存在於群組 \"%s\""
 
-#: rhodecode/model/validators.py:318
+#: rhodecode/model/validators.py:319
 #, fuzzy, python-format
 msgid "Repositories group with name \"%(repo)s\" already exists"
 msgstr "這個版本庫已經存在"
 
-#: rhodecode/model/validators.py:431
+#: rhodecode/model/validators.py:432
 msgid "invalid clone url"
 msgstr "無效的複製URL"
 
-#: rhodecode/model/validators.py:432
+#: rhodecode/model/validators.py:433
 msgid "Invalid clone url, provide a valid clone http(s)/svn+http(s) url"
 msgstr ""
 
-#: rhodecode/model/validators.py:457
+#: rhodecode/model/validators.py:458
 #, fuzzy
 msgid "Fork have to be the same type as parent"
 msgstr "Fork 必須使用相同的版本庫類型"
 
-#: rhodecode/model/validators.py:478
+#: rhodecode/model/validators.py:473
+#, fuzzy
+msgid "You don't have permissions to create repository in this group"
+msgstr "您沒有權限瀏覽這個頁面"
+
+#: rhodecode/model/validators.py:498
 msgid "This username or users group name is not valid"
 msgstr "使用者名稱或群組名稱無效"
 
-#: rhodecode/model/validators.py:562
+#: rhodecode/model/validators.py:582
 msgid "This is not a valid path"
 msgstr "不是一個有效的路徑"
 
-#: rhodecode/model/validators.py:577
+#: rhodecode/model/validators.py:597
 msgid "This e-mail address is already taken"
 msgstr "這個郵件位址已經使用了"
 
-#: rhodecode/model/validators.py:597
+#: rhodecode/model/validators.py:617
 #, fuzzy, python-format
 msgid "e-mail \"%(email)s\" does not exist."
 msgstr "這個郵件位址不存在"
 
-#: rhodecode/model/validators.py:634
+#: rhodecode/model/validators.py:654
 msgid ""
 "The LDAP Login attribute of the CN must be specified - this is the name "
 "of the attribute that is equivalent to \"username\""
 msgstr ""
 
-#: rhodecode/model/validators.py:653
+#: rhodecode/model/validators.py:673
 #, python-format
 msgid "Revisions %(revs)s are already part of pull request or have set status"
 msgstr ""
@@ -1269,7 +1346,7 @@
 
 #: rhodecode/templates/index_base.html:6
 #: rhodecode/templates/admin/repos/repos.html:9
-#: rhodecode/templates/base/base.html:221
+#: rhodecode/templates/base/base.html:233
 msgid "repositories"
 msgstr "個版本庫"
 
@@ -1280,6 +1357,7 @@
 msgstr "新增版本庫"
 
 #: rhodecode/templates/index_base.html:29
+#: rhodecode/templates/index_base.html:136
 #: rhodecode/templates/admin/repos_groups/repos_groups_add.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:32
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:33
@@ -1289,9 +1367,10 @@
 msgstr "群組名稱"
 
 #: rhodecode/templates/index_base.html:30
-#: rhodecode/templates/index_base.html:71
-#: rhodecode/templates/index_base.html:142
-#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:138
+#: rhodecode/templates/index_base.html:176
+#: rhodecode/templates/index_base.html:266
 #: rhodecode/templates/admin/repos/repo_add_base.html:56
 #: rhodecode/templates/admin/repos/repo_edit.html:75
 #: rhodecode/templates/admin/repos/repos.html:72
@@ -1300,144 +1379,138 @@
 #: rhodecode/templates/admin/repos_groups/repos_groups_show.html:34
 #: rhodecode/templates/forks/fork.html:59
 #: rhodecode/templates/settings/repo_settings.html:66
-#: rhodecode/templates/summary/summary.html:105
+#: rhodecode/templates/summary/summary.html:114
 msgid "Description"
 msgstr "描述"
 
 #: rhodecode/templates/index_base.html:40
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:46
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:47
 msgid "Repositories group"
 msgstr "版本庫群組"
 
-#: rhodecode/templates/index_base.html:70
-#: rhodecode/templates/index_base.html:166
+#: rhodecode/templates/index_base.html:71
+#: rhodecode/templates/index_base.html:174
+#: rhodecode/templates/index_base.html:264
 #: rhodecode/templates/admin/repos/repo_add_base.html:9
 #: rhodecode/templates/admin/repos/repo_edit.html:32
 #: rhodecode/templates/admin/repos/repos.html:70
-#: rhodecode/templates/admin/users/user_edit.html:192
+#: rhodecode/templates/admin/users/user_edit.html:196
 #: rhodecode/templates/admin/users/user_edit_my_account.html:59
-#: rhodecode/templates/admin/users/user_edit_my_account.html:157
-#: rhodecode/templates/admin/users/user_edit_my_account.html:193
+#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:216
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:6
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:184
 #: rhodecode/templates/bookmarks/bookmarks.html:36
 #: rhodecode/templates/bookmarks/bookmarks_data.html:6
-#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches.html:50
+#: rhodecode/templates/branches/branches_data.html:6
 #: rhodecode/templates/files/files_browser.html:47
-#: rhodecode/templates/journal/journal.html:59
-#: rhodecode/templates/journal/journal.html:107
-#: rhodecode/templates/journal/journal.html:186
+#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal.html:168
+#: rhodecode/templates/journal/journal_page_repos.html:7
 #: rhodecode/templates/settings/repo_settings.html:31
 #: rhodecode/templates/summary/summary.html:43
-#: rhodecode/templates/summary/summary.html:123
-#: rhodecode/templates/tags/tags.html:36
+#: rhodecode/templates/summary/summary.html:132
+#: rhodecode/templates/tags/tags.html:51
 #: rhodecode/templates/tags/tags_data.html:6
 msgid "Name"
 msgstr "名稱"
 
-#: rhodecode/templates/index_base.html:72
+#: rhodecode/templates/index_base.html:73
 msgid "Last change"
 msgstr "最後修改"
 
-#: rhodecode/templates/index_base.html:73
-#: rhodecode/templates/index_base.html:171
-#: rhodecode/templates/admin/users/user_edit_my_account.html:159
-#: rhodecode/templates/journal/journal.html:188
+#: rhodecode/templates/index_base.html:74
+#: rhodecode/templates/index_base.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/journal/journal.html:170
 msgid "Tip"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:74
-#: rhodecode/templates/index_base.html:173
+#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:181
+#: rhodecode/templates/index_base.html:269
 #: rhodecode/templates/admin/repos/repo_edit.html:121
 #: rhodecode/templates/admin/repos/repos.html:73
 msgid "Owner"
 msgstr "擁有者"
 
-#: rhodecode/templates/index_base.html:75
+#: rhodecode/templates/index_base.html:76
 #: rhodecode/templates/summary/summary.html:48
 #: rhodecode/templates/summary/summary.html:51
 msgid "RSS"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:76
+#: rhodecode/templates/index_base.html:77
 msgid "Atom"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:110
-#: rhodecode/templates/index_base.html:112
-#, python-format
-msgid "Subscribe to %s rss feed"
-msgstr "訂閱 %s rss"
-
-#: rhodecode/templates/index_base.html:117
-#: rhodecode/templates/index_base.html:119
-#, python-format
-msgid "Subscribe to %s atom feed"
-msgstr "訂閱 %s atom"
-
-#: rhodecode/templates/index_base.html:140
-#, fuzzy
-msgid "Group Name"
-msgstr "群組名稱"
-
-#: rhodecode/templates/index_base.html:158
-#: rhodecode/templates/index_base.html:198
+#: rhodecode/templates/index_base.html:167
+#: rhodecode/templates/index_base.html:207
+#: rhodecode/templates/index_base.html:291
 #: rhodecode/templates/admin/repos/repos.html:94
-#: rhodecode/templates/admin/users/user_edit_my_account.html:179
+#: rhodecode/templates/admin/users/user_edit_my_account.html:202
 #: rhodecode/templates/admin/users/users.html:107
 #: rhodecode/templates/bookmarks/bookmarks.html:60
-#: rhodecode/templates/branches/branches.html:77
-#: rhodecode/templates/journal/journal.html:211
-#: rhodecode/templates/tags/tags.html:60
+#: rhodecode/templates/branches/branches.html:76
+#: rhodecode/templates/journal/journal.html:193
+#: rhodecode/templates/tags/tags.html:77
 msgid "Click to sort ascending"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:159
-#: rhodecode/templates/index_base.html:199
+#: rhodecode/templates/index_base.html:168
+#: rhodecode/templates/index_base.html:208
+#: rhodecode/templates/index_base.html:292
 #: rhodecode/templates/admin/repos/repos.html:95
-#: rhodecode/templates/admin/users/user_edit_my_account.html:180
+#: rhodecode/templates/admin/users/user_edit_my_account.html:203
 #: rhodecode/templates/admin/users/users.html:108
 #: rhodecode/templates/bookmarks/bookmarks.html:61
-#: rhodecode/templates/branches/branches.html:78
-#: rhodecode/templates/journal/journal.html:212
-#: rhodecode/templates/tags/tags.html:61
+#: rhodecode/templates/branches/branches.html:77
+#: rhodecode/templates/journal/journal.html:194
+#: rhodecode/templates/tags/tags.html:78
 msgid "Click to sort descending"
 msgstr ""
 
-#: rhodecode/templates/index_base.html:169
+#: rhodecode/templates/index_base.html:177
+#: rhodecode/templates/index_base.html:267
 #, fuzzy
 msgid "Last Change"
 msgstr "最後修改"
 
-#: rhodecode/templates/index_base.html:200
+#: rhodecode/templates/index_base.html:209
+#: rhodecode/templates/index_base.html:293
 #: rhodecode/templates/admin/repos/repos.html:96
-#: rhodecode/templates/admin/users/user_edit_my_account.html:181
+#: rhodecode/templates/admin/users/user_edit_my_account.html:204
 #: rhodecode/templates/admin/users/users.html:109
 #: rhodecode/templates/bookmarks/bookmarks.html:62
-#: rhodecode/templates/branches/branches.html:79
-#: rhodecode/templates/journal/journal.html:213
-#: rhodecode/templates/tags/tags.html:62
+#: rhodecode/templates/branches/branches.html:78
+#: rhodecode/templates/journal/journal.html:195
+#: rhodecode/templates/tags/tags.html:79
 msgid "No records found."
 msgstr ""
 
-#: rhodecode/templates/index_base.html:201
+#: rhodecode/templates/index_base.html:210
+#: rhodecode/templates/index_base.html:294
 #: rhodecode/templates/admin/repos/repos.html:97
-#: rhodecode/templates/admin/users/user_edit_my_account.html:182
+#: rhodecode/templates/admin/users/user_edit_my_account.html:205
 #: rhodecode/templates/admin/users/users.html:110
 #: rhodecode/templates/bookmarks/bookmarks.html:63
-#: rhodecode/templates/branches/branches.html:80
-#: rhodecode/templates/journal/journal.html:214
-#: rhodecode/templates/tags/tags.html:63
+#: rhodecode/templates/branches/branches.html:79
+#: rhodecode/templates/journal/journal.html:196
+#: rhodecode/templates/tags/tags.html:80
 msgid "Data error."
 msgstr ""
 
-#: rhodecode/templates/index_base.html:202
+#: rhodecode/templates/index_base.html:211
+#: rhodecode/templates/index_base.html:295
 #: rhodecode/templates/admin/repos/repos.html:98
-#: rhodecode/templates/admin/users/user_edit_my_account.html:183
+#: rhodecode/templates/admin/users/user_edit_my_account.html:206
 #: rhodecode/templates/admin/users/users.html:111
 #: rhodecode/templates/bookmarks/bookmarks.html:64
-#: rhodecode/templates/branches/branches.html:81
-#: rhodecode/templates/journal/journal.html:215
-#: rhodecode/templates/tags/tags.html:64
+#: rhodecode/templates/branches/branches.html:80
+#: rhodecode/templates/journal/journal.html:54
+#: rhodecode/templates/journal/journal.html:197
+#: rhodecode/templates/tags/tags.html:81
 #, fuzzy
 msgid "Loading..."
 msgstr "載入中..."
@@ -1456,7 +1529,7 @@
 #: rhodecode/templates/admin/users/user_edit.html:50
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:26
 #: rhodecode/templates/base/base.html:83
-#: rhodecode/templates/summary/summary.html:122
+#: rhodecode/templates/summary/summary.html:131
 msgid "Username"
 msgstr "帳號"
 
@@ -1514,23 +1587,23 @@
 
 #: rhodecode/templates/register.html:47
 #: rhodecode/templates/admin/users/user_add.html:59
-#: rhodecode/templates/admin/users/user_edit.html:86
+#: rhodecode/templates/admin/users/user_edit.html:90
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:53
 msgid "First Name"
 msgstr "名"
 
 #: rhodecode/templates/register.html:56
 #: rhodecode/templates/admin/users/user_add.html:68
-#: rhodecode/templates/admin/users/user_edit.html:95
+#: rhodecode/templates/admin/users/user_edit.html:99
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:62
 msgid "Last Name"
 msgstr "姓"
 
 #: rhodecode/templates/register.html:65
 #: rhodecode/templates/admin/users/user_add.html:77
-#: rhodecode/templates/admin/users/user_edit.html:104
+#: rhodecode/templates/admin/users/user_edit.html:108
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:71
-#: rhodecode/templates/summary/summary.html:124
+#: rhodecode/templates/summary/summary.html:133
 msgid "Email"
 msgstr "電子郵件"
 
@@ -1543,6 +1616,7 @@
 msgstr "您的帳號註冊後將等待管理員啟用"
 
 #: rhodecode/templates/repo_switcher_list.html:11
+#: rhodecode/templates/admin/defaults/defaults.html:44
 #: rhodecode/templates/admin/repos/repo_add_base.html:65
 #: rhodecode/templates/admin/repos/repo_edit.html:85
 #: rhodecode/templates/settings/repo_settings.html:76
@@ -1570,7 +1644,7 @@
 msgstr "標籤"
 
 #: rhodecode/templates/switch_to_list.html:22
-#: rhodecode/templates/tags/tags_data.html:33
+#: rhodecode/templates/tags/tags_data.html:38
 msgid "There are no tags yet"
 msgstr "沒有任何標籤"
 
@@ -1594,20 +1668,22 @@
 #: rhodecode/templates/admin/repos/repos.html:74
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:8
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:9
-#: rhodecode/templates/journal/journal.html:61
-#: rhodecode/templates/journal/journal.html:62
+#: rhodecode/templates/journal/journal_page_repos.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:10
 msgid "Action"
 msgstr "動作"
 
 #: rhodecode/templates/admin/admin_log.html:7
+#: rhodecode/templates/admin/permissions/permissions.html:41
 msgid "Repository"
 msgstr "版本庫"
 
 #: rhodecode/templates/admin/admin_log.html:8
 #: rhodecode/templates/bookmarks/bookmarks.html:37
 #: rhodecode/templates/bookmarks/bookmarks_data.html:7
-#: rhodecode/templates/branches/branches.html:52
-#: rhodecode/templates/tags/tags.html:37
+#: rhodecode/templates/branches/branches.html:51
+#: rhodecode/templates/branches/branches_data.html:7
+#: rhodecode/templates/tags/tags.html:52
 #: rhodecode/templates/tags/tags_data.html:7
 msgid "Date"
 msgstr "時間"
@@ -1616,10 +1692,82 @@
 msgid "From IP"
 msgstr "來源IP"
 
-#: rhodecode/templates/admin/admin_log.html:53
+#: rhodecode/templates/admin/admin_log.html:57
 msgid "No actions yet"
 msgstr ""
 
+#: rhodecode/templates/admin/defaults/defaults.html:5
+#: rhodecode/templates/admin/defaults/defaults.html:25
+#, fuzzy
+msgid "Repositories defaults"
+msgstr "版本庫群組"
+
+#: rhodecode/templates/admin/defaults/defaults.html:11
+#, fuzzy
+msgid "Defaults"
+msgstr "刪除"
+
+#: rhodecode/templates/admin/defaults/defaults.html:35
+#: rhodecode/templates/admin/repos/repo_add_base.html:38
+#: rhodecode/templates/admin/repos/repo_edit.html:58
+msgid "Type"
+msgstr "類型"
+
+#: rhodecode/templates/admin/defaults/defaults.html:48
+#: rhodecode/templates/admin/repos/repo_add_base.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:89
+#: rhodecode/templates/forks/fork.html:72
+#: rhodecode/templates/settings/repo_settings.html:80
+msgid ""
+"Private repositories are only visible to people explicitly added as "
+"collaborators."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:55
+#: rhodecode/templates/admin/repos/repo_edit.html:94
+msgid "Enable statistics"
+msgstr "啟用統計"
+
+#: rhodecode/templates/admin/defaults/defaults.html:59
+#: rhodecode/templates/admin/repos/repo_edit.html:98
+msgid "Enable statistics window on summary page."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:65
+#: rhodecode/templates/admin/repos/repo_edit.html:103
+msgid "Enable downloads"
+msgstr "啟用下載"
+
+#: rhodecode/templates/admin/defaults/defaults.html:69
+#: rhodecode/templates/admin/repos/repo_edit.html:107
+msgid "Enable download menu on summary page."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:75
+#: rhodecode/templates/admin/repos/repo_edit.html:112
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
+#, fuzzy
+msgid "Enable locking"
+msgstr "啟用"
+
+#: rhodecode/templates/admin/defaults/defaults.html:79
+#: rhodecode/templates/admin/repos/repo_edit.html:116
+msgid "Enable lock-by-pulling on repository."
+msgstr ""
+
+#: rhodecode/templates/admin/defaults/defaults.html:84
+#: rhodecode/templates/admin/ldap/ldap.html:89
+#: rhodecode/templates/admin/repos/repo_edit.html:141
+#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
+#: rhodecode/templates/admin/settings/hooks.html:73
+#: rhodecode/templates/admin/users/user_edit.html:133
+#: rhodecode/templates/admin/users/user_edit.html:178
+#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
+#: rhodecode/templates/settings/repo_settings.html:93
+msgid "Save"
+msgstr "儲存"
+
 #: rhodecode/templates/admin/ldap/ldap.html:5
 msgid "LDAP administration"
 msgstr "LDAP管理者"
@@ -1692,18 +1840,6 @@
 msgid "E-mail Attribute"
 msgstr "電子郵件屬性"
 
-#: rhodecode/templates/admin/ldap/ldap.html:89
-#: rhodecode/templates/admin/repos/repo_edit.html:141
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:74
-#: rhodecode/templates/admin/settings/hooks.html:73
-#: rhodecode/templates/admin/users/user_edit.html:129
-#: rhodecode/templates/admin/users/user_edit.html:174
-#: rhodecode/templates/admin/users/user_edit_my_account_form.html:79
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:135
-#: rhodecode/templates/settings/repo_settings.html:93
-msgid "Save"
-msgstr "儲存"
-
 #: rhodecode/templates/admin/notifications/notifications.html:5
 #: rhodecode/templates/admin/notifications/notifications.html:9
 msgid "My Notifications"
@@ -1719,8 +1855,8 @@
 msgstr "遞交"
 
 #: rhodecode/templates/admin/notifications/notifications.html:31
-#: rhodecode/templates/base/base.html:254
-#: rhodecode/templates/base/base.html:256
+#: rhodecode/templates/base/base.html:267
+#: rhodecode/templates/base/base.html:269
 msgid "Pull requests"
 msgstr ""
 
@@ -1750,7 +1886,7 @@
 #: rhodecode/templates/admin/permissions/permissions.html:11
 #: rhodecode/templates/admin/repos/repo_edit.html:134
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:58
-#: rhodecode/templates/admin/users/user_edit.html:139
+#: rhodecode/templates/admin/users/user_edit.html:143
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:100
 #: rhodecode/templates/settings/repo_settings.html:86
 msgid "Permissions"
@@ -1764,10 +1900,6 @@
 msgid "Anonymous access"
 msgstr "訪客權限"
 
-#: rhodecode/templates/admin/permissions/permissions.html:41
-msgid "Repository permission"
-msgstr "版本庫權限"
-
 #: rhodecode/templates/admin/permissions/permissions.html:49
 msgid ""
 "All default permissions on each repository will be reset to choosen "
@@ -1776,24 +1908,41 @@
 msgstr ""
 
 #: rhodecode/templates/admin/permissions/permissions.html:50
+#: rhodecode/templates/admin/permissions/permissions.html:63
 msgid "overwrite existing settings"
 msgstr "複寫已存在設定"
 
 #: rhodecode/templates/admin/permissions/permissions.html:55
+#: rhodecode/templates/admin/repos/repo_add_base.html:29
+#: rhodecode/templates/admin/repos/repo_edit.html:49
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
+#: rhodecode/templates/forks/fork.html:50
+#: rhodecode/templates/settings/repo_settings.html:48
+msgid "Repository group"
+msgstr "版本庫群組"
+
+#: rhodecode/templates/admin/permissions/permissions.html:62
+msgid ""
+"All default permissions on each repository group will be reset to choosen"
+" permission, note that all custom default permission on repositories "
+"group will be lost"
+msgstr ""
+
+#: rhodecode/templates/admin/permissions/permissions.html:69
 msgid "Registration"
 msgstr "註冊"
 
-#: rhodecode/templates/admin/permissions/permissions.html:63
+#: rhodecode/templates/admin/permissions/permissions.html:77
 msgid "Repository creation"
 msgstr "版本庫建立"
 
-#: rhodecode/templates/admin/permissions/permissions.html:71
+#: rhodecode/templates/admin/permissions/permissions.html:85
 #, fuzzy
 msgid "Repository forking"
 msgstr "版本庫建立"
 
-#: rhodecode/templates/admin/permissions/permissions.html:78
-#: rhodecode/templates/admin/repos/repo_edit.html:241
+#: rhodecode/templates/admin/permissions/permissions.html:92
+#: rhodecode/templates/admin/repos/repo_edit.html:264
 msgid "set"
 msgstr "設定"
 
@@ -1813,8 +1962,8 @@
 msgstr "新增"
 
 #: rhodecode/templates/admin/repos/repo_add_base.html:20
-#: rhodecode/templates/summary/summary.html:95
-#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:104
+#: rhodecode/templates/summary/summary.html:105
 msgid "Clone from"
 msgstr "複製由"
 
@@ -1824,24 +1973,11 @@
 msgid "Optional http[s] url from which repository should be cloned."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:29
-#: rhodecode/templates/admin/repos/repo_edit.html:49
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:4
-#: rhodecode/templates/forks/fork.html:50
-#: rhodecode/templates/settings/repo_settings.html:48
-msgid "Repository group"
-msgstr "版本庫群組"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:33
 #: rhodecode/templates/forks/fork.html:54
 msgid "Optionaly select a group to put this repository into."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:38
-#: rhodecode/templates/admin/repos/repo_edit.html:58
-msgid "Type"
-msgstr "類型"
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:42
 #, fuzzy
 msgid "Type of repository to create."
@@ -1869,15 +2005,6 @@
 msgid "Keep it short and to the point. Use a README file for longer descriptions."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_add_base.html:69
-#: rhodecode/templates/admin/repos/repo_edit.html:89
-#: rhodecode/templates/forks/fork.html:72
-#: rhodecode/templates/settings/repo_settings.html:80
-msgid ""
-"Private repositories are only visible to people explicitly added as "
-"collaborators."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_add_base.html:73
 msgid "add"
 msgstr "新增"
@@ -1892,12 +2019,14 @@
 
 #: rhodecode/templates/admin/repos/repo_edit.html:13
 #: rhodecode/templates/admin/users/user_edit.html:13
-#: rhodecode/templates/admin/users/user_edit.html:224
-#: rhodecode/templates/admin/users/user_edit.html:226
+#: rhodecode/templates/admin/users/user_edit.html:228
+#: rhodecode/templates/admin/users/user_edit.html:230
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:13
-#: rhodecode/templates/files/files_source.html:44
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:207
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:209
+#: rhodecode/templates/files/files_source.html:29
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "edit"
 msgstr "編輯"
 
@@ -1911,32 +2040,6 @@
 msgid "Optional select a group to put this repository into."
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:94
-msgid "Enable statistics"
-msgstr "啟用統計"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:98
-msgid "Enable statistics window on summary page."
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:103
-msgid "Enable downloads"
-msgstr "啟用下載"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:107
-msgid "Enable download menu on summary page."
-msgstr ""
-
-#: rhodecode/templates/admin/repos/repo_edit.html:112
-#: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:66
-#, fuzzy
-msgid "Enable locking"
-msgstr "啟用"
-
-#: rhodecode/templates/admin/repos/repo_edit.html:116
-msgid "Enable lock-by-pulling on repository."
-msgstr ""
-
 #: rhodecode/templates/admin/repos/repo_edit.html:126
 #, fuzzy
 msgid "Change owner of this repository."
@@ -1945,11 +2048,11 @@
 #: rhodecode/templates/admin/repos/repo_edit.html:142
 #: rhodecode/templates/admin/repos_groups/repos_groups_edit.html:75
 #: rhodecode/templates/admin/settings/settings.html:113
-#: rhodecode/templates/admin/settings/settings.html:168
-#: rhodecode/templates/admin/settings/settings.html:258
-#: rhodecode/templates/admin/users/user_edit.html:130
-#: rhodecode/templates/admin/users/user_edit.html:175
-#: rhodecode/templates/admin/users/user_edit.html:278
+#: rhodecode/templates/admin/settings/settings.html:179
+#: rhodecode/templates/admin/settings/settings.html:269
+#: rhodecode/templates/admin/users/user_edit.html:134
+#: rhodecode/templates/admin/users/user_edit.html:179
+#: rhodecode/templates/admin/users/user_edit.html:282
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:80
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:136
 #: rhodecode/templates/files/files_add.html:82
@@ -2007,82 +2110,107 @@
 msgid "Confirm to invalidate repository cache"
 msgstr "確認廢止版本庫快取"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:195
-#: rhodecode/templates/base/base.html:318
-#: rhodecode/templates/base/base.html:320
-#: rhodecode/templates/base/base.html:322
-msgid "Public journal"
-msgstr "公開日誌"
+#: rhodecode/templates/admin/repos/repo_edit.html:193
+msgid ""
+"Manually invalidate cache for this repository. On first access repository"
+" will be cached again"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:198
+msgid "List of cached values"
+msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:201
-msgid "Remove from public journal"
-msgstr "從公開日誌移除"
+msgid "Prefix"
+msgstr ""
+
+#: rhodecode/templates/admin/repos/repo_edit.html:202
+msgid "Key"
+msgstr ""
 
 #: rhodecode/templates/admin/repos/repo_edit.html:203
+#: rhodecode/templates/admin/users/user_add.html:86
+#: rhodecode/templates/admin/users/user_edit.html:117
+#: rhodecode/templates/admin/users_groups/users_group_add.html:41
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
+msgid "Active"
+msgstr "啟用"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:218
+#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:333
+#: rhodecode/templates/base/base.html:335
+msgid "Public journal"
+msgstr "公開日誌"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:224
+msgid "Remove from public journal"
+msgstr "從公開日誌移除"
+
+#: rhodecode/templates/admin/repos/repo_edit.html:226
 msgid "Add to public journal"
 msgstr "新增至公開日誌"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:208
+#: rhodecode/templates/admin/repos/repo_edit.html:231
 msgid ""
 "All actions made on this repository will be accessible to everyone in "
 "public journal"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:215
+#: rhodecode/templates/admin/repos/repo_edit.html:238
 #, fuzzy
 msgid "Locking"
 msgstr "解鎖"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 msgid "Unlock locked repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:220
+#: rhodecode/templates/admin/repos/repo_edit.html:243
 #, fuzzy
 msgid "Confirm to unlock repository"
 msgstr "確認移除這個版本庫"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 msgid "lock repo"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:223
+#: rhodecode/templates/admin/repos/repo_edit.html:246
 #, fuzzy
 msgid "Confirm to lock repository"
 msgstr "確認移除這個版本庫"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:224
+#: rhodecode/templates/admin/repos/repo_edit.html:247
 #, fuzzy
 msgid "Repository is not locked"
 msgstr "個版本庫"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:229
+#: rhodecode/templates/admin/repos/repo_edit.html:252
 msgid "Force locking on repository. Works only when anonymous access is disabled"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:236
+#: rhodecode/templates/admin/repos/repo_edit.html:259
 msgid "Set as fork of"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:245
+#: rhodecode/templates/admin/repos/repo_edit.html:268
 msgid "Manually set this repository as a fork of another from the list"
 msgstr ""
 
-#: rhodecode/templates/admin/repos/repo_edit.html:251
+#: rhodecode/templates/admin/repos/repo_edit.html:274
 #: rhodecode/templates/changeset/changeset_file_comment.html:26
 msgid "Delete"
 msgstr "移除"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:255
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Remove this repository"
 msgstr "移除版本庫"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:255
-#: rhodecode/templates/journal/journal.html:84
+#: rhodecode/templates/admin/repos/repo_edit.html:278
 msgid "Confirm to delete this repository"
 msgstr "確認移除這個版本庫"
 
-#: rhodecode/templates/admin/repos/repo_edit.html:259
+#: rhodecode/templates/admin/repos/repo_edit.html:282
 msgid ""
 "This repository will be renamed in a special way in order to be "
 "unaccesible for RhodeCode and VCS systems.\n"
@@ -2108,7 +2236,7 @@
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:6
 #: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:6
 #: rhodecode/templates/admin/users/users.html:85
-#: rhodecode/templates/base/base.html:217
+#: rhodecode/templates/base/base.html:229
 msgid "admin"
 msgstr "管理員"
 
@@ -2119,8 +2247,8 @@
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:16
 #: rhodecode/templates/data_table/_dt_elements.html:67
-#: rhodecode/templates/journal/journal.html:132
-#: rhodecode/templates/summary/summary.html:76
+#: rhodecode/templates/journal/journal.html:87
+#: rhodecode/templates/summary/summary.html:85
 msgid "private repository"
 msgstr "私有版本庫"
 
@@ -2144,12 +2272,12 @@
 msgstr "新增另ㄧ位成員"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:97
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:81
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:87
 msgid "Failed to remove user"
 msgstr "移除使用者失敗"
 
 #: rhodecode/templates/admin/repos/repo_edit_perms.html:112
-#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:96
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:103
 msgid "Failed to remove users group"
 msgstr "移除使用者群組失敗"
 
@@ -2157,11 +2285,44 @@
 msgid "Repositories administration"
 msgstr "版本庫管理員"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:8
-msgid "Groups"
-msgstr "群組"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups.html:12
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:73
+msgid "apply to children"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html:74
+msgid ""
+"Set or revoke permission to all children of that group, including "
+"repositories and other groups"
+msgstr ""
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:9
+#: rhodecode/templates/base/base.html:122
+#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:315
+#: rhodecode/templates/base/base.html:317
+#: rhodecode/templates/bookmarks/bookmarks.html:11
+#: rhodecode/templates/branches/branches.html:10
+#: rhodecode/templates/changelog/changelog.html:10
+#: rhodecode/templates/changeset/changeset.html:10
+#: rhodecode/templates/changeset/changeset_range.html:9
+#: rhodecode/templates/compare/compare_diff.html:9
+#: rhodecode/templates/files/file_diff.html:8
+#: rhodecode/templates/files/files.html:8
+#: rhodecode/templates/files/files_add.html:15
+#: rhodecode/templates/files/files_edit.html:15
+#: rhodecode/templates/followers/followers.html:9
+#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
+#: rhodecode/templates/pullrequests/pullrequest.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show.html:8
+#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
+#: rhodecode/templates/settings/repo_settings.html:9
+#: rhodecode/templates/shortlog/shortlog.html:10
+#: rhodecode/templates/summary/summary.html:8
+#: rhodecode/templates/tags/tags.html:11
+msgid "Home"
+msgstr "首頁"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups.html:13
 msgid "with"
 msgstr ""
 
@@ -2187,7 +2348,7 @@
 #: rhodecode/templates/admin/users/user_add.html:94
 #: rhodecode/templates/admin/users_groups/users_group_add.html:49
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:90
-#: rhodecode/templates/pullrequests/pullrequest_show.html:113
+#: rhodecode/templates/pullrequests/pullrequest_show.html:131
 msgid "save"
 msgstr "儲存"
 
@@ -2224,20 +2385,21 @@
 msgid "action"
 msgstr "動作"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
-#: rhodecode/templates/admin/users/user_edit.html:255
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
+#: rhodecode/templates/admin/users/user_edit.html:259
 #: rhodecode/templates/admin/users_groups/users_groups.html:44
 #: rhodecode/templates/data_table/_dt_elements.html:7
-#: rhodecode/templates/data_table/_dt_elements.html:103
+#: rhodecode/templates/data_table/_dt_elements.html:121
 msgid "delete"
 msgstr "刪除"
 
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:54
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:55
 #, fuzzy, python-format
-msgid "Confirm to delete this group: %s"
-msgstr "確認刪除這個群組"
-
-#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:62
+msgid "Confirm to delete this group: %s with %s repository"
+msgid_plural "Confirm to delete this group: %s with %s repositories"
+msgstr[0] "確認移除這個版本庫"
+
+#: rhodecode/templates/admin/repos_groups/repos_groups_show.html:63
 msgid "There are no repositories groups yet"
 msgstr "沒有任何版本庫群組"
 
@@ -2330,8 +2492,8 @@
 msgstr ""
 
 #: rhodecode/templates/admin/settings/settings.html:112
-#: rhodecode/templates/admin/settings/settings.html:167
-#: rhodecode/templates/admin/settings/settings.html:257
+#: rhodecode/templates/admin/settings/settings.html:178
+#: rhodecode/templates/admin/settings/settings.html:268
 msgid "Save settings"
 msgstr "儲存設定"
 
@@ -2340,132 +2502,142 @@
 msgid "Visualisation settings"
 msgstr "全域設定"
 
-#: rhodecode/templates/admin/settings/settings.html:128
+#: rhodecode/templates/admin/settings/settings.html:127
+#, fuzzy
+msgid "General"
+msgstr "啟用"
+
+#: rhodecode/templates/admin/settings/settings.html:132
+msgid "Use lightweight dashboard"
+msgstr ""
+
+#: rhodecode/templates/admin/settings/settings.html:139
 #, fuzzy
 msgid "Icons"
 msgstr "選項"
 
-#: rhodecode/templates/admin/settings/settings.html:133
+#: rhodecode/templates/admin/settings/settings.html:144
 msgid "Show public repo icon on repositories"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:137
+#: rhodecode/templates/admin/settings/settings.html:148
 #, fuzzy
 msgid "Show private repo icon on repositories"
 msgstr "私有版本庫"
 
-#: rhodecode/templates/admin/settings/settings.html:144
+#: rhodecode/templates/admin/settings/settings.html:155
 #, fuzzy
 msgid "Meta-Tagging"
 msgstr "設定"
 
-#: rhodecode/templates/admin/settings/settings.html:149
+#: rhodecode/templates/admin/settings/settings.html:160
 msgid "Stylify recognised metatags:"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:176
+#: rhodecode/templates/admin/settings/settings.html:187
 #, fuzzy
 msgid "VCS settings"
 msgstr "設定"
 
-#: rhodecode/templates/admin/settings/settings.html:185
+#: rhodecode/templates/admin/settings/settings.html:196
 msgid "Web"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:190
+#: rhodecode/templates/admin/settings/settings.html:201
 #, fuzzy
 msgid "require ssl for vcs operations"
 msgstr "推送時要求使用SSL"
 
-#: rhodecode/templates/admin/settings/settings.html:192
+#: rhodecode/templates/admin/settings/settings.html:203
 msgid ""
 "RhodeCode will require SSL for pushing or pulling. If SSL is missing it "
 "will return HTTP Error 406: Not Acceptable"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:198
+#: rhodecode/templates/admin/settings/settings.html:209
 msgid "Hooks"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:203
+#: rhodecode/templates/admin/settings/settings.html:214
 msgid "Update repository after push (hg update)"
 msgstr "push後更新版本庫 (hg update)"
 
-#: rhodecode/templates/admin/settings/settings.html:207
+#: rhodecode/templates/admin/settings/settings.html:218
 msgid "Show repository size after push"
 msgstr "push 後顯示版本庫大小"
 
-#: rhodecode/templates/admin/settings/settings.html:211
+#: rhodecode/templates/admin/settings/settings.html:222
 msgid "Log user push commands"
 msgstr "紀錄使用者推送命令"
 
-#: rhodecode/templates/admin/settings/settings.html:215
+#: rhodecode/templates/admin/settings/settings.html:226
 msgid "Log user pull commands"
 msgstr "紀錄使用者抓取命令"
 
-#: rhodecode/templates/admin/settings/settings.html:219
+#: rhodecode/templates/admin/settings/settings.html:230
 msgid "advanced setup"
 msgstr "進階設定"
 
-#: rhodecode/templates/admin/settings/settings.html:224
+#: rhodecode/templates/admin/settings/settings.html:235
 #, fuzzy
 msgid "Mercurial Extensions"
 msgstr "Mercurial 版本庫"
 
-#: rhodecode/templates/admin/settings/settings.html:229
+#: rhodecode/templates/admin/settings/settings.html:240
 msgid "largefiles extensions"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:233
+#: rhodecode/templates/admin/settings/settings.html:244
 msgid "hgsubversion extensions"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:235
+#: rhodecode/templates/admin/settings/settings.html:246
 msgid ""
 "Requires hgsubversion library installed. Allows clonning from svn remote "
 "locations"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:245
+#: rhodecode/templates/admin/settings/settings.html:256
 msgid "Repositories location"
 msgstr "版本庫路徑"
 
-#: rhodecode/templates/admin/settings/settings.html:250
+#: rhodecode/templates/admin/settings/settings.html:261
 msgid ""
 "This a crucial application setting. If you are really sure you need to "
 "change this, you must restart application in order to make this setting "
 "take effect. Click this label to unlock."
 msgstr "這是一個關鍵的設定,如果您確定要修改這個設定,請重新啟動應用程式以套用設定"
 
-#: rhodecode/templates/admin/settings/settings.html:251
+#: rhodecode/templates/admin/settings/settings.html:262
+#: rhodecode/templates/base/base.html:221
 msgid "unlock"
 msgstr "解鎖"
 
-#: rhodecode/templates/admin/settings/settings.html:252
+#: rhodecode/templates/admin/settings/settings.html:263
 msgid ""
 "Location where repositories are stored. After changing this value a "
 "restart, and rescan is required"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:272
+#: rhodecode/templates/admin/settings/settings.html:283
 msgid "Test Email"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:280
+#: rhodecode/templates/admin/settings/settings.html:291
 #, fuzzy
 msgid "Email to"
 msgstr "電子郵件"
 
-#: rhodecode/templates/admin/settings/settings.html:288
+#: rhodecode/templates/admin/settings/settings.html:299
 #, fuzzy
 msgid "Send"
 msgstr "秒"
 
-#: rhodecode/templates/admin/settings/settings.html:294
+#: rhodecode/templates/admin/settings/settings.html:305
 msgid "System Info and Packages"
 msgstr ""
 
-#: rhodecode/templates/admin/settings/settings.html:297
+#: rhodecode/templates/admin/settings/settings.html:308
 #, fuzzy
 msgid "show"
 msgstr "顯示"
@@ -2488,13 +2660,6 @@
 msgid "Password confirmation"
 msgstr "密碼不相符"
 
-#: rhodecode/templates/admin/users/user_add.html:86
-#: rhodecode/templates/admin/users/user_edit.html:113
-#: rhodecode/templates/admin/users_groups/users_group_add.html:41
-#: rhodecode/templates/admin/users_groups/users_group_edit.html:42
-msgid "Active"
-msgstr "啟用"
-
 #: rhodecode/templates/admin/users/user_edit.html:5
 msgid "Edit user"
 msgstr "編輯使用者"
@@ -2514,27 +2679,27 @@
 msgid "API key"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:59
+#: rhodecode/templates/admin/users/user_edit.html:63
 msgid "LDAP DN"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:68
+#: rhodecode/templates/admin/users/user_edit.html:72
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:35
 msgid "New password"
 msgstr "新密碼"
 
-#: rhodecode/templates/admin/users/user_edit.html:77
+#: rhodecode/templates/admin/users/user_edit.html:81
 #: rhodecode/templates/admin/users/user_edit_my_account_form.html:44
 msgid "New password confirmation"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:147
+#: rhodecode/templates/admin/users/user_edit.html:151
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:108
 #, fuzzy
 msgid "Inherit default permissions"
 msgstr "預設權限"
 
-#: rhodecode/templates/admin/users/user_edit.html:152
+#: rhodecode/templates/admin/users/user_edit.html:156
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:113
 #, python-format
 msgid ""
@@ -2542,52 +2707,54 @@
 "options does not have any action"
 msgstr ""
 
-#: rhodecode/templates/admin/users/user_edit.html:158
+#: rhodecode/templates/admin/users/user_edit.html:162
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:119
 msgid "Create repositories"
 msgstr "建立版本庫"
 
-#: rhodecode/templates/admin/users/user_edit.html:166
+#: rhodecode/templates/admin/users/user_edit.html:170
 #: rhodecode/templates/admin/users_groups/users_group_edit.html:127
 #, fuzzy
 msgid "Fork repositories"
 msgstr "個版本庫"
 
-#: rhodecode/templates/admin/users/user_edit.html:186
+#: rhodecode/templates/admin/users/user_edit.html:190
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:22
 #: rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html:39
 #, fuzzy
 msgid "Nothing here yet"
 msgstr "尚未有任何變更"
 
-#: rhodecode/templates/admin/users/user_edit.html:193
+#: rhodecode/templates/admin/users/user_edit.html:197
 #: rhodecode/templates/admin/users/user_edit_my_account.html:60
-#: rhodecode/templates/admin/users/user_edit_my_account.html:194
+#: rhodecode/templates/admin/users/user_edit_my_account.html:217
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:185
 #, fuzzy
 msgid "Permission"
 msgstr "權限"
 
-#: rhodecode/templates/admin/users/user_edit.html:194
+#: rhodecode/templates/admin/users/user_edit.html:198
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:186
 #, fuzzy
 msgid "Edit Permission"
 msgstr "版本庫權限"
 
-#: rhodecode/templates/admin/users/user_edit.html:243
+#: rhodecode/templates/admin/users/user_edit.html:247
 #, fuzzy
 msgid "Email addresses"
 msgstr "郵件位址"
 
-#: rhodecode/templates/admin/users/user_edit.html:256
+#: rhodecode/templates/admin/users/user_edit.html:260
 #, fuzzy, python-format
 msgid "Confirm to delete this email: %s"
 msgstr "確認刪除這個使用者"
 
-#: rhodecode/templates/admin/users/user_edit.html:270
+#: rhodecode/templates/admin/users/user_edit.html:274
 #, fuzzy
 msgid "New email address"
 msgstr "郵件位址"
 
-#: rhodecode/templates/admin/users/user_edit.html:277
+#: rhodecode/templates/admin/users/user_edit.html:281
 #, fuzzy
 msgid "Add"
 msgstr "新增"
@@ -2649,31 +2816,33 @@
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:7
 #: rhodecode/templates/bookmarks/bookmarks.html:40
 #: rhodecode/templates/bookmarks/bookmarks_data.html:9
-#: rhodecode/templates/branches/branches.html:55
-#: rhodecode/templates/journal/journal.html:60
-#: rhodecode/templates/tags/tags.html:40
+#: rhodecode/templates/branches/branches.html:54
+#: rhodecode/templates/branches/branches_data.html:9
+#: rhodecode/templates/journal/journal_page_repos.html:8
+#: rhodecode/templates/tags/tags.html:55
 #: rhodecode/templates/tags/tags_data.html:9
 msgid "Revision"
 msgstr "修訂"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:28
-#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/journal/journal_page_repos.html:29
 msgid "private"
 msgstr "私有"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:31
 #: rhodecode/templates/data_table/_dt_elements.html:7
+#: rhodecode/templates/journal/journal_page_repos.html:32
 #, fuzzy, python-format
 msgid "Confirm to delete this repository: %s"
 msgstr "確認移除這個版本庫"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:38
-#: rhodecode/templates/journal/journal.html:94
+#: rhodecode/templates/journal/journal_page_repos.html:42
 msgid "No repositories yet"
 msgstr "沒有任何版本庫"
 
 #: rhodecode/templates/admin/users/user_edit_my_account_repos.html:40
-#: rhodecode/templates/journal/journal.html:96
+#: rhodecode/templates/journal/journal_page_repos.html:44
 msgid "create one now"
 msgstr ""
 
@@ -2682,7 +2851,7 @@
 msgstr "使用者管理員"
 
 #: rhodecode/templates/admin/users/users.html:9
-#: rhodecode/templates/base/base.html:223
+#: rhodecode/templates/base/base.html:235
 msgid "users"
 msgstr "使用者"
 
@@ -2713,7 +2882,7 @@
 msgstr "啟用"
 
 #: rhodecode/templates/admin/users/users.html:86
-#: rhodecode/templates/base/base.html:226
+#: rhodecode/templates/base/base.html:238
 msgid "ldap"
 msgstr ""
 
@@ -2763,6 +2932,21 @@
 msgid "Group members"
 msgstr "選擇群組成員"
 
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:163
+#, fuzzy
+msgid "No members yet"
+msgstr "成員"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:171
+#, fuzzy
+msgid "Permissions defined for this group"
+msgstr "權限管理員"
+
+#: rhodecode/templates/admin/users_groups/users_group_edit.html:178
+#, fuzzy
+msgid "No permissions set yet"
+msgstr "權限"
+
 #: rhodecode/templates/admin/users_groups/users_groups.html:5
 msgid "Users groups administration"
 msgstr "使用者群組管理員"
@@ -2806,36 +2990,10 @@
 msgid "Inbox"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:122
-#: rhodecode/templates/base/base.html:300
-#: rhodecode/templates/base/base.html:302
-#: rhodecode/templates/base/base.html:304
-#: rhodecode/templates/bookmarks/bookmarks.html:11
-#: rhodecode/templates/branches/branches.html:10
-#: rhodecode/templates/changelog/changelog.html:10
-#: rhodecode/templates/changeset/changeset.html:10
-#: rhodecode/templates/changeset/changeset_range.html:9
-#: rhodecode/templates/compare/compare_diff.html:9
-#: rhodecode/templates/files/file_diff.html:8
-#: rhodecode/templates/files/files.html:8
-#: rhodecode/templates/files/files_add.html:15
-#: rhodecode/templates/files/files_edit.html:15
-#: rhodecode/templates/followers/followers.html:9
-#: rhodecode/templates/forks/fork.html:9 rhodecode/templates/forks/forks.html:9
-#: rhodecode/templates/pullrequests/pullrequest.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show.html:8
-#: rhodecode/templates/pullrequests/pullrequest_show_all.html:8
-#: rhodecode/templates/settings/repo_settings.html:9
-#: rhodecode/templates/shortlog/shortlog.html:10
-#: rhodecode/templates/summary/summary.html:8
-#: rhodecode/templates/tags/tags.html:11
-msgid "Home"
-msgstr "首頁"
-
 #: rhodecode/templates/base/base.html:123
-#: rhodecode/templates/base/base.html:309
-#: rhodecode/templates/base/base.html:311
-#: rhodecode/templates/base/base.html:313
+#: rhodecode/templates/base/base.html:322
+#: rhodecode/templates/base/base.html:324
+#: rhodecode/templates/base/base.html:326
 #: rhodecode/templates/journal/journal.html:4
 #: rhodecode/templates/journal/journal.html:21
 #: rhodecode/templates/journal/public_journal.html:4
@@ -2855,7 +3013,7 @@
 msgstr ""
 
 #: rhodecode/templates/base/base.html:152
-#: rhodecode/templates/base/base.html:182
+#: rhodecode/templates/base/base.html:182 rhodecode/templates/base/root.html:47
 msgid "loading..."
 msgstr "載入中..."
 
@@ -2900,50 +3058,69 @@
 
 #: rhodecode/templates/base/base.html:204
 #: rhodecode/templates/base/base.html:206
-#: rhodecode/templates/base/base.html:227
-msgid "settings"
-msgstr "設定"
-
-#: rhodecode/templates/base/base.html:209
+#, fuzzy
+msgid "repository settings"
+msgstr "版本庫建立"
+
+#: rhodecode/templates/base/base.html:210
 #: rhodecode/templates/data_table/_dt_elements.html:80
 #: rhodecode/templates/forks/fork.html:13
 msgid "fork"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:211
-#: rhodecode/templates/changelog/changelog.html:40
+#: rhodecode/templates/base/base.html:212 rhodecode/templates/base/root.html:50
+#: rhodecode/templates/changelog/changelog.html:43
 msgid "Open new pull request"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:213
+#: rhodecode/templates/base/base.html:215
+#: rhodecode/templates/forks/forks_data.html:21
+msgid "Compare fork"
+msgstr ""
+
+#: rhodecode/templates/base/base.html:217
 msgid "search"
 msgstr "搜尋"
 
-#: rhodecode/templates/base/base.html:222
+#: rhodecode/templates/base/base.html:223
+#, fuzzy
+msgid "lock"
+msgstr "解鎖"
+
+#: rhodecode/templates/base/base.html:234
 msgid "repositories groups"
 msgstr "版本庫群組"
 
-#: rhodecode/templates/base/base.html:224
+#: rhodecode/templates/base/base.html:236
 msgid "users groups"
 msgstr "使用者群組"
 
-#: rhodecode/templates/base/base.html:225
+#: rhodecode/templates/base/base.html:237
 msgid "permissions"
 msgstr "權限"
 
-#: rhodecode/templates/base/base.html:238
+#: rhodecode/templates/base/base.html:239
+#, fuzzy
+msgid "defaults"
+msgstr "刪除"
+
 #: rhodecode/templates/base/base.html:240
+msgid "settings"
+msgstr "設定"
+
+#: rhodecode/templates/base/base.html:251
+#: rhodecode/templates/base/base.html:253
 msgid "Followers"
 msgstr "追蹤者"
 
-#: rhodecode/templates/base/base.html:246
-#: rhodecode/templates/base/base.html:248
+#: rhodecode/templates/base/base.html:259
+#: rhodecode/templates/base/base.html:261
 msgid "Forks"
 msgstr ""
 
-#: rhodecode/templates/base/base.html:327
-#: rhodecode/templates/base/base.html:329
-#: rhodecode/templates/base/base.html:331
+#: rhodecode/templates/base/base.html:340
+#: rhodecode/templates/base/base.html:342
+#: rhodecode/templates/base/base.html:344
 #: rhodecode/templates/search/search.html:52
 msgid "Search"
 msgstr "搜尋"
@@ -2954,7 +3131,7 @@
 msgstr "新增另ㄧ位成員"
 
 #: rhodecode/templates/base/root.html:43
-#: rhodecode/templates/journal/journal.html:120
+#: rhodecode/templates/journal/journal.html:75
 #: rhodecode/templates/summary/summary.html:57
 msgid "Stop following this repository"
 msgstr "停止追蹤這個版本庫"
@@ -2968,14 +3145,26 @@
 msgid "Group"
 msgstr "群組"
 
-#: rhodecode/templates/base/root.html:47
+#: rhodecode/templates/base/root.html:48
 msgid "search truncated"
 msgstr ""
 
-#: rhodecode/templates/base/root.html:48
+#: rhodecode/templates/base/root.html:49
 msgid "no matching files"
 msgstr "無符合的檔案"
 
+#: rhodecode/templates/base/root.html:51
+msgid "Open new pull request for selected changesets"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:52
+msgid "Show selected changes __S -> __E"
+msgstr ""
+
+#: rhodecode/templates/base/root.html:53
+msgid "Selection link"
+msgstr ""
+
 #: rhodecode/templates/bookmarks/bookmarks.html:5
 #, python-format
 msgid "%s Bookmarks"
@@ -2983,8 +3172,9 @@
 
 #: rhodecode/templates/bookmarks/bookmarks.html:39
 #: rhodecode/templates/bookmarks/bookmarks_data.html:8
-#: rhodecode/templates/branches/branches.html:54
-#: rhodecode/templates/tags/tags.html:39
+#: rhodecode/templates/branches/branches.html:53
+#: rhodecode/templates/branches/branches_data.html:8
+#: rhodecode/templates/tags/tags.html:54
 #: rhodecode/templates/tags/tags_data.html:8
 #, fuzzy
 msgid "Author"
@@ -3000,36 +3190,16 @@
 msgid "Compare branches"
 msgstr "分支"
 
-#: rhodecode/templates/branches/branches.html:57
+#: rhodecode/templates/branches/branches.html:56
+#: rhodecode/templates/branches/branches_data.html:10
 #: rhodecode/templates/compare/compare_diff.html:5
 #: rhodecode/templates/compare/compare_diff.html:13
+#: rhodecode/templates/tags/tags.html:57
+#: rhodecode/templates/tags/tags_data.html:10
 #, fuzzy
 msgid "Compare"
 msgstr "比較顯示"
 
-#: rhodecode/templates/branches/branches_data.html:6
-msgid "name"
-msgstr "名字"
-
-#: rhodecode/templates/branches/branches_data.html:7
-msgid "date"
-msgstr "日期"
-
-#: rhodecode/templates/branches/branches_data.html:8
-#: rhodecode/templates/shortlog/shortlog_data.html:8
-msgid "author"
-msgstr "作者"
-
-#: rhodecode/templates/branches/branches_data.html:9
-#: rhodecode/templates/shortlog/shortlog_data.html:5
-msgid "revision"
-msgstr "修訂"
-
-#: rhodecode/templates/branches/branches_data.html:10
-#, fuzzy
-msgid "compare"
-msgstr "比較顯示"
-
 #: rhodecode/templates/changelog/changelog.html:6
 #, fuzzy, python-format
 msgid "%s Changelog"
@@ -3042,58 +3212,65 @@
 msgstr[0] ""
 
 #: rhodecode/templates/changelog/changelog.html:37
+#, fuzzy
+msgid "Clear selection"
+msgstr "搜尋選項"
+
+#: rhodecode/templates/changelog/changelog.html:40
 #: rhodecode/templates/forks/forks_data.html:19
 #, python-format
 msgid "compare fork with %s"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:37
-#: rhodecode/templates/forks/forks_data.html:21
-msgid "Compare fork"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:46
+#: rhodecode/templates/changelog/changelog.html:40
+msgid "Compare fork with parent"
+msgstr ""
+
+#: rhodecode/templates/changelog/changelog.html:49
 msgid "Show"
 msgstr "顯示"
 
-#: rhodecode/templates/changelog/changelog.html:72
-#: rhodecode/templates/summary/summary.html:364
+#: rhodecode/templates/changelog/changelog.html:74
+#: rhodecode/templates/summary/summary.html:375
 msgid "show more"
 msgstr "顯示更多"
 
-#: rhodecode/templates/changelog/changelog.html:76
+#: rhodecode/templates/changelog/changelog.html:78
 msgid "Affected number of files, click to show more details"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:89
-#: rhodecode/templates/changeset/changeset.html:38
+#: rhodecode/templates/changelog/changelog.html:91
+#: rhodecode/templates/changeset/changeset.html:44
 #: rhodecode/templates/changeset/changeset_file_comment.html:20
 #: rhodecode/templates/changeset/changeset_range.html:46
 #, fuzzy
 msgid "Changeset status"
 msgstr "變更"
 
-#: rhodecode/templates/changelog/changelog.html:92
+#: rhodecode/templates/changelog/changelog.html:94
+#: rhodecode/templates/shortlog/shortlog_data.html:20
 msgid "Click to open associated pull request"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:102
-#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changelog/changelog.html:104
+#: rhodecode/templates/changeset/changeset.html:85
 msgid "Parent"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:108
-#: rhodecode/templates/changeset/changeset.html:84
+#: rhodecode/templates/changelog/changelog.html:110
+#: rhodecode/templates/changeset/changeset.html:91
 msgid "No parents"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:113
-#: rhodecode/templates/changeset/changeset.html:88
+#: rhodecode/templates/changelog/changelog.html:115
+#: rhodecode/templates/changeset/changeset.html:95
+#: rhodecode/templates/changeset/changeset_range.html:79
 msgid "merge"
 msgstr "合併"
 
-#: rhodecode/templates/changelog/changelog.html:116
-#: rhodecode/templates/changeset/changeset.html:91
+#: rhodecode/templates/changelog/changelog.html:118
+#: rhodecode/templates/changeset/changeset.html:98
+#: rhodecode/templates/changeset/changeset_range.html:82
 #: rhodecode/templates/files/files.html:29
 #: rhodecode/templates/files/files_add.html:33
 #: rhodecode/templates/files/files_edit.html:33
@@ -3101,44 +3278,42 @@
 msgid "branch"
 msgstr "分支"
 
-#: rhodecode/templates/changelog/changelog.html:122
+#: rhodecode/templates/changelog/changelog.html:124
+#: rhodecode/templates/changeset/changeset_range.html:88
 msgid "bookmark"
 msgstr ""
 
-#: rhodecode/templates/changelog/changelog.html:128
-#: rhodecode/templates/changeset/changeset.html:96
+#: rhodecode/templates/changelog/changelog.html:130
+#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset_range.html:94
 msgid "tag"
 msgstr "標籤"
 
-#: rhodecode/templates/changelog/changelog.html:164
-msgid "Show selected changes __S -> __E"
-msgstr ""
-
-#: rhodecode/templates/changelog/changelog.html:255
+#: rhodecode/templates/changelog/changelog.html:301
 msgid "There are no changes yet"
 msgstr "尚未有任何變更"
 
 #: rhodecode/templates/changelog/changelog_details.html:4
-#: rhodecode/templates/changeset/changeset.html:66
+#: rhodecode/templates/changeset/changeset.html:73
 msgid "removed"
 msgstr "移除"
 
 #: rhodecode/templates/changelog/changelog_details.html:5
-#: rhodecode/templates/changeset/changeset.html:67
+#: rhodecode/templates/changeset/changeset.html:74
 msgid "changed"
 msgstr "修改"
 
 #: rhodecode/templates/changelog/changelog_details.html:6
-#: rhodecode/templates/changeset/changeset.html:68
+#: rhodecode/templates/changeset/changeset.html:75
 msgid "added"
 msgstr "新增"
 
 #: rhodecode/templates/changelog/changelog_details.html:8
 #: rhodecode/templates/changelog/changelog_details.html:9
 #: rhodecode/templates/changelog/changelog_details.html:10
-#: rhodecode/templates/changeset/changeset.html:70
-#: rhodecode/templates/changeset/changeset.html:71
-#: rhodecode/templates/changeset/changeset.html:72
+#: rhodecode/templates/changeset/changeset.html:77
+#: rhodecode/templates/changeset/changeset.html:78
+#: rhodecode/templates/changeset/changeset.html:79
 #, python-format
 msgid "affected %s files"
 msgstr ""
@@ -3152,38 +3327,50 @@
 msgid "Changeset"
 msgstr ""
 
-#: rhodecode/templates/changeset/changeset.html:43
+#: rhodecode/templates/changeset/changeset.html:49
 #: rhodecode/templates/changeset/diff_block.html:20
 msgid "raw diff"
 msgstr "原始差異"
 
-#: rhodecode/templates/changeset/changeset.html:44
+#: rhodecode/templates/changeset/changeset.html:50
+#, fuzzy
+msgid "patch diff"
+msgstr "原始差異"
+
+#: rhodecode/templates/changeset/changeset.html:51
 #: rhodecode/templates/changeset/diff_block.html:21
 msgid "download diff"
 msgstr "下載差異"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, fuzzy, python-format
 msgid "%d comment"
 msgid_plural "%d comments"
 msgstr[0] "遞交"
 
-#: rhodecode/templates/changeset/changeset.html:48
+#: rhodecode/templates/changeset/changeset.html:55
 #: rhodecode/templates/changeset/changeset_file_comment.html:82
 #, python-format
 msgid "(%d inline)"
 msgid_plural "(%d inline)"
 msgstr[0] ""
 
-#: rhodecode/templates/changeset/changeset.html:103
+#: rhodecode/templates/changeset/changeset.html:111
+#: rhodecode/templates/compare/compare_diff.html:44
+#: rhodecode/templates/pullrequests/pullrequest_show.html:76
+#, fuzzy, python-format
+msgid "%s file changed"
+msgid_plural "%s files changed"
+msgstr[0] "檔案修改"
+
+#: rhodecode/templates/changeset/changeset.html:113
+#: rhodecode/templates/compare/compare_diff.html:46
+#: rhodecode/templates/pullrequests/pullrequest_show.html:78
 #, python-format
-msgid "%s files affected with %s insertions and %s deletions:"
-msgstr ""
-
-#: rhodecode/templates/changeset/changeset.html:119
-msgid "Changeset was too big and was cut off..."
-msgstr ""
+msgid "%s file changed with %s insertions and %s deletions"
+msgid_plural "%s files changed with %s insertions and %s deletions"
+msgstr[0] ""
 
 #: rhodecode/templates/changeset/changeset_file_comment.html:42
 msgid "Submitting..."
@@ -3251,15 +3438,18 @@
 msgid "Compare View"
 msgstr "比較顯示"
 
+#: rhodecode/templates/changeset/changeset_range.html:29
+#, fuzzy
+msgid "Show combined compare"
+msgstr "文件內容"
+
 #: rhodecode/templates/changeset/changeset_range.html:54
-#: rhodecode/templates/compare/compare_diff.html:41
-#: rhodecode/templates/pullrequests/pullrequest_show.html:69
 msgid "Files affected"
 msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:19
-msgid "diff"
-msgstr "差異"
+msgid "show full diff for this file"
+msgstr ""
 
 #: rhodecode/templates/changeset/diff_block.html:27
 #, fuzzy
@@ -3272,9 +3462,17 @@
 msgstr "尚未有任何變更"
 
 #: rhodecode/templates/compare/compare_diff.html:37
+#: rhodecode/templates/pullrequests/pullrequest_show.html:69
+#, fuzzy, python-format
+msgid "Showing %s commit"
+msgid_plural "Showing %s commits"
+msgstr[0] "文件內容"
+
+#: rhodecode/templates/compare/compare_diff.html:52
+#: rhodecode/templates/pullrequests/pullrequest_show.html:84
 #, fuzzy
-msgid "Outgoing changesets"
-msgstr "尚未有任何變更"
+msgid "No files"
+msgstr "檔案"
 
 #: rhodecode/templates/data_table/_dt_elements.html:39
 #: rhodecode/templates/data_table/_dt_elements.html:41
@@ -3283,40 +3481,123 @@
 msgstr "分支"
 
 #: rhodecode/templates/data_table/_dt_elements.html:60
-#: rhodecode/templates/journal/journal.html:126
-#: rhodecode/templates/summary/summary.html:68
+#: rhodecode/templates/journal/journal.html:81
+#: rhodecode/templates/summary/summary.html:77
 msgid "Mercurial repository"
 msgstr "Mercurial 版本庫"
 
 #: rhodecode/templates/data_table/_dt_elements.html:62
-#: rhodecode/templates/journal/journal.html:128
-#: rhodecode/templates/summary/summary.html:71
+#: rhodecode/templates/journal/journal.html:83
+#: rhodecode/templates/summary/summary.html:80
 msgid "Git repository"
 msgstr "Git 版本庫"
 
 #: rhodecode/templates/data_table/_dt_elements.html:69
-#: rhodecode/templates/journal/journal.html:134
-#: rhodecode/templates/summary/summary.html:78
+#: rhodecode/templates/journal/journal.html:89
+#: rhodecode/templates/summary/summary.html:87
 msgid "public repository"
 msgstr "公開版本庫"
 
 #: rhodecode/templates/data_table/_dt_elements.html:80
-#: rhodecode/templates/summary/summary.html:87
-#: rhodecode/templates/summary/summary.html:88
+#: rhodecode/templates/summary/summary.html:96
+#: rhodecode/templates/summary/summary.html:97
 msgid "Fork of"
 msgstr ""
 
-#: rhodecode/templates/data_table/_dt_elements.html:92
+#: rhodecode/templates/data_table/_dt_elements.html:94
 msgid "No changesets yet"
 msgstr "尚未有任何變更"
 
-#: rhodecode/templates/data_table/_dt_elements.html:104
+#: rhodecode/templates/data_table/_dt_elements.html:101
+#: rhodecode/templates/data_table/_dt_elements.html:103
+#, python-format
+msgid "Subscribe to %s rss feed"
+msgstr "訂閱 %s rss"
+
+#: rhodecode/templates/data_table/_dt_elements.html:109
+#: rhodecode/templates/data_table/_dt_elements.html:111
+#, python-format
+msgid "Subscribe to %s atom feed"
+msgstr "訂閱 %s atom"
+
+#: rhodecode/templates/data_table/_dt_elements.html:122
 #, fuzzy, python-format
 msgid "Confirm to delete this user: %s"
 msgstr "確認刪除這個使用者"
 
+#: rhodecode/templates/email_templates/changeset_comment.html:10
+#, fuzzy
+msgid "New status$"
+msgstr "變更"
+
 #: rhodecode/templates/email_templates/main.html:8
-msgid "This is an notification from RhodeCode."
+msgid "This is a notification from RhodeCode."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:4
+msgid "Hello"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:6
+msgid "We received a request to create a new password for your account."
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:8
+msgid "You can generate it by clicking following URL"
+msgstr ""
+
+#: rhodecode/templates/email_templates/password_reset.html:12
+msgid "If you didn't request new password please ignore this email."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:4
+#, python-format
+msgid ""
+"User %s opened pull request for repository %s and wants you to review "
+"changes."
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:5
+#, fuzzy
+msgid "title"
+msgstr "寫"
+
+#: rhodecode/templates/email_templates/pull_request.html:6
+#: rhodecode/templates/pullrequests/pullrequest.html:115
+#, fuzzy
+msgid "description"
+msgstr "描述"
+
+#: rhodecode/templates/email_templates/pull_request.html:11
+msgid "revisions for reviewing"
+msgstr ""
+
+#: rhodecode/templates/email_templates/pull_request.html:18
+#, fuzzy
+msgid "View this pull request here"
+msgstr "確認移除這個版本庫"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:4
+#, fuzzy, python-format
+msgid "User %s commented on pull request #%s for repository %s"
+msgstr "建立使用者 %s"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:10
+#, fuzzy
+msgid "New status"
+msgstr "變更"
+
+#: rhodecode/templates/email_templates/pull_request_comment.html:14
+msgid "View this comment here"
+msgstr ""
+
+#: rhodecode/templates/email_templates/registration.html:4
+#, fuzzy
+msgid "A new user have registered in RhodeCode"
+msgstr "您已經成功註冊rhodecode"
+
+#: rhodecode/templates/email_templates/registration.html:9
+msgid "View this user here"
 msgstr ""
 
 #: rhodecode/templates/errors/error_document.html:46
@@ -3334,13 +3615,13 @@
 msgstr "檔案差異"
 
 #: rhodecode/templates/files/files.html:4
-#: rhodecode/templates/files/files.html:72
+#: rhodecode/templates/files/files.html:74
 #, fuzzy, python-format
 msgid "%s files"
 msgstr "檔案"
 
 #: rhodecode/templates/files/files.html:12
-#: rhodecode/templates/summary/summary.html:340
+#: rhodecode/templates/summary/summary.html:351
 msgid "files"
 msgstr "檔案"
 
@@ -3424,7 +3705,7 @@
 msgstr "搜尋檔案列表"
 
 #: rhodecode/templates/files/files_browser.html:31
-#: rhodecode/templates/shortlog/shortlog_data.html:65
+#: rhodecode/templates/shortlog/shortlog_data.html:78
 #, fuzzy
 msgid "add new file"
 msgstr "新增使用者"
@@ -3459,18 +3740,18 @@
 msgstr "編輯檔案"
 
 #: rhodecode/templates/files/files_edit.html:49
-#: rhodecode/templates/files/files_source.html:38
+#: rhodecode/templates/files/files_source.html:23
 msgid "show annotation"
 msgstr "險是註釋"
 
 #: rhodecode/templates/files/files_edit.html:50
-#: rhodecode/templates/files/files_source.html:40
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:25
+#: rhodecode/templates/files/files_source.html:53
 msgid "show as raw"
 msgstr "顯示原始文件"
 
 #: rhodecode/templates/files/files_edit.html:51
-#: rhodecode/templates/files/files_source.html:41
+#: rhodecode/templates/files/files_source.html:26
 msgid "download as raw"
 msgstr "下載原始文件"
 
@@ -3484,43 +3765,49 @@
 msgid "Editing file"
 msgstr "編輯檔案"
 
-#: rhodecode/templates/files/files_source.html:2
+#: rhodecode/templates/files/files_history_box.html:2
 msgid "History"
 msgstr "歷史"
 
-#: rhodecode/templates/files/files_source.html:9
+#: rhodecode/templates/files/files_history_box.html:9
 #, fuzzy
 msgid "diff to revision"
 msgstr "下一個修訂"
 
-#: rhodecode/templates/files/files_source.html:10
+#: rhodecode/templates/files/files_history_box.html:10
 #, fuzzy
 msgid "show at revision"
 msgstr "下一個修訂"
 
-#: rhodecode/templates/files/files_source.html:14
+#: rhodecode/templates/files/files_history_box.html:11
+#, fuzzy
+msgid "show full history"
+msgstr "載入檔案列表..."
+
+#: rhodecode/templates/files/files_history_box.html:16
 #, fuzzy, python-format
 msgid "%s author"
 msgid_plural "%s authors"
 msgstr[0] "作者"
 
-#: rhodecode/templates/files/files_source.html:36
+#: rhodecode/templates/files/files_source.html:6
+#, fuzzy
+msgid "Load file history"
+msgstr "載入檔案列表..."
+
+#: rhodecode/templates/files/files_source.html:21
 msgid "show source"
 msgstr "顯示原始碼"
 
-#: rhodecode/templates/files/files_source.html:59
+#: rhodecode/templates/files/files_source.html:44
 #, python-format
 msgid "Binary file (%s)"
 msgstr "二進位檔 (%s)"
 
-#: rhodecode/templates/files/files_source.html:68
+#: rhodecode/templates/files/files_source.html:53
 msgid "File is too big to display"
 msgstr "顯示的檔案太大"
 
-#: rhodecode/templates/files/files_source.html:124
-msgid "Selection link"
-msgstr ""
-
 #: rhodecode/templates/files/files_ypjax.html:5
 #, fuzzy
 msgid "annotation"
@@ -3595,7 +3882,7 @@
 msgid "forked"
 msgstr "已建立分支"
 
-#: rhodecode/templates/forks/forks_data.html:38
+#: rhodecode/templates/forks/forks_data.html:42
 msgid "There are no forks yet"
 msgstr "尚未有任何 fork"
 
@@ -3610,7 +3897,7 @@
 msgstr "%s 公開日誌 %s feed"
 
 #: rhodecode/templates/journal/journal.html:24
-#: rhodecode/templates/pullrequests/pullrequest.html:27
+#: rhodecode/templates/pullrequests/pullrequest.html:55
 msgid "Refresh"
 msgstr ""
 
@@ -3634,19 +3921,19 @@
 msgid "ADD"
 msgstr "新增"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "following user"
 msgstr "追蹤使用者"
 
-#: rhodecode/templates/journal/journal.html:114
+#: rhodecode/templates/journal/journal.html:69
 msgid "user"
 msgstr "使用者"
 
-#: rhodecode/templates/journal/journal.html:147
+#: rhodecode/templates/journal/journal.html:102
 msgid "You are not following any users or repositories"
 msgstr "您尚未追蹤任何使用者或版本庫"
 
-#: rhodecode/templates/journal/journal_data.html:47
+#: rhodecode/templates/journal/journal_data.html:51
 msgid "No entries yet"
 msgstr ""
 
@@ -3669,7 +3956,7 @@
 msgid "New pull request"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest.html:28
+#: rhodecode/templates/pullrequests/pullrequest.html:54
 msgid "refresh overview"
 msgstr ""
 
@@ -3679,18 +3966,18 @@
 msgstr "比較顯示"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:70
-#: rhodecode/templates/pullrequests/pullrequest_show.html:82
+#: rhodecode/templates/pullrequests/pullrequest_show.html:100
 msgid "Pull request reviewers"
 msgstr ""
 
 #: rhodecode/templates/pullrequests/pullrequest.html:79
-#: rhodecode/templates/pullrequests/pullrequest_show.html:94
+#: rhodecode/templates/pullrequests/pullrequest_show.html:112
 #, fuzzy
 msgid "owner"
 msgstr "擁有者"
 
 #: rhodecode/templates/pullrequests/pullrequest.html:91
-#: rhodecode/templates/pullrequests/pullrequest_show.html:109
+#: rhodecode/templates/pullrequests/pullrequest_show.html:127
 msgid "Add reviewer to this pull request."
 msgstr ""
 
@@ -3706,11 +3993,6 @@
 msgid "Title"
 msgstr "寫"
 
-#: rhodecode/templates/pullrequests/pullrequest.html:115
-#, fuzzy
-msgid "description"
-msgstr "描述"
-
 #: rhodecode/templates/pullrequests/pullrequest.html:123
 msgid "Send pull request"
 msgstr ""
@@ -3720,6 +4002,11 @@
 msgid "Closed %s"
 msgstr ""
 
+#: rhodecode/templates/pullrequests/pullrequest_show.html:23
+#, python-format
+msgid "with status %s"
+msgstr ""
+
 #: rhodecode/templates/pullrequests/pullrequest_show.html:31
 #, fuzzy
 msgid "Status"
@@ -3733,27 +4020,26 @@
 msgid "Still not reviewed by"
 msgstr ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:47
+#: rhodecode/templates/pullrequests/pullrequest_show.html:48
 #, python-format
 msgid "%d reviewer"
 msgid_plural "%d reviewers"
 msgstr[0] ""
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:54
+#: rhodecode/templates/pullrequests/pullrequest_show.html:50
+msgid "pull request was reviewed by all reviewers"
+msgstr ""
+
+#: rhodecode/templates/pullrequests/pullrequest_show.html:58
 #, fuzzy
 msgid "Created on"
 msgstr "建立使用者 %s"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:61
+#: rhodecode/templates/pullrequests/pullrequest_show.html:65
 #, fuzzy
 msgid "Compare view"
 msgstr "比較顯示"
 
-#: rhodecode/templates/pullrequests/pullrequest_show.html:65
-#, fuzzy
-msgid "Incoming changesets"
-msgstr "尚未有任何變更"
-
 #: rhodecode/templates/pullrequests/pullrequest_show_all.html:4
 #, fuzzy
 msgid "all pull requests"
@@ -3826,28 +4112,32 @@
 msgid "%s Shortlog"
 msgstr "簡短紀錄"
 
-#: rhodecode/templates/shortlog/shortlog.html:14
+#: rhodecode/templates/shortlog/shortlog.html:15
+#: rhodecode/templates/shortlog/shortlog.html:19
 msgid "shortlog"
 msgstr "簡短紀錄"
 
+#: rhodecode/templates/shortlog/shortlog_data.html:5
+msgid "revision"
+msgstr "修訂"
+
 #: rhodecode/templates/shortlog/shortlog_data.html:7
 msgid "age"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:18
-#, fuzzy
-msgid "No commit message"
-msgstr "遞交資訊"
-
-#: rhodecode/templates/shortlog/shortlog_data.html:62
+#: rhodecode/templates/shortlog/shortlog_data.html:8
+msgid "author"
+msgstr "作者"
+
+#: rhodecode/templates/shortlog/shortlog_data.html:75
 msgid "Add or upload files directly via RhodeCode"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:71
+#: rhodecode/templates/shortlog/shortlog_data.html:84
 msgid "Push new repo"
 msgstr ""
 
-#: rhodecode/templates/shortlog/shortlog_data.html:79
+#: rhodecode/templates/shortlog/shortlog_data.html:92
 #, fuzzy
 msgid "Existing repository?"
 msgstr "Git 版本庫"
@@ -3877,132 +4167,142 @@
 msgid "ATOM"
 msgstr "作者"
 
-#: rhodecode/templates/summary/summary.html:82
+#: rhodecode/templates/summary/summary.html:70
+#, fuzzy, python-format
+msgid "Repository locked by %s"
+msgstr "個版本庫"
+
+#: rhodecode/templates/summary/summary.html:72
+#, fuzzy
+msgid "Repository unlocked"
+msgstr "個版本庫"
+
+#: rhodecode/templates/summary/summary.html:91
 #, fuzzy, python-format
 msgid "Non changable ID %s"
 msgstr "沒有修改"
 
-#: rhodecode/templates/summary/summary.html:87
+#: rhodecode/templates/summary/summary.html:96
 msgid "public"
 msgstr "公開"
 
-#: rhodecode/templates/summary/summary.html:95
+#: rhodecode/templates/summary/summary.html:104
 msgid "remote clone"
 msgstr "遠端複製"
 
-#: rhodecode/templates/summary/summary.html:116
+#: rhodecode/templates/summary/summary.html:125
 msgid "Contact"
 msgstr "聯絡方式"
 
-#: rhodecode/templates/summary/summary.html:130
+#: rhodecode/templates/summary/summary.html:139
 msgid "Clone url"
 msgstr "複製連結"
 
-#: rhodecode/templates/summary/summary.html:133
+#: rhodecode/templates/summary/summary.html:142
 #, fuzzy
 msgid "Show by Name"
 msgstr "顯示更多"
 
-#: rhodecode/templates/summary/summary.html:134
+#: rhodecode/templates/summary/summary.html:143
 msgid "Show by ID"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:142
+#: rhodecode/templates/summary/summary.html:151
 #, fuzzy
 msgid "Trending files"
 msgstr "編輯檔案"
 
-#: rhodecode/templates/summary/summary.html:150
-#: rhodecode/templates/summary/summary.html:166
-#: rhodecode/templates/summary/summary.html:194
+#: rhodecode/templates/summary/summary.html:159
+#: rhodecode/templates/summary/summary.html:175
+#: rhodecode/templates/summary/summary.html:203
 msgid "enable"
 msgstr "啟用"
 
-#: rhodecode/templates/summary/summary.html:158
+#: rhodecode/templates/summary/summary.html:167
 msgid "Download"
 msgstr "下載"
 
-#: rhodecode/templates/summary/summary.html:162
+#: rhodecode/templates/summary/summary.html:171
 msgid "There are no downloads yet"
 msgstr "沒有任何下載"
 
-#: rhodecode/templates/summary/summary.html:164
+#: rhodecode/templates/summary/summary.html:173
 msgid "Downloads are disabled for this repository"
 msgstr "這個版本庫的下載已停用"
 
-#: rhodecode/templates/summary/summary.html:170
+#: rhodecode/templates/summary/summary.html:179
 #, fuzzy
 msgid "Download as zip"
 msgstr "下載原始文件"
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "Check this to download archive with subrepos"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:173
+#: rhodecode/templates/summary/summary.html:182
 msgid "with subrepos"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:186
+#: rhodecode/templates/summary/summary.html:195
 msgid "Commit activity by day / author"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:197
+#: rhodecode/templates/summary/summary.html:206
 msgid "Stats gathered: "
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:218
+#: rhodecode/templates/summary/summary.html:227
 msgid "Shortlog"
 msgstr "簡短紀錄"
 
-#: rhodecode/templates/summary/summary.html:220
+#: rhodecode/templates/summary/summary.html:229
 #, fuzzy
 msgid "Quick start"
 msgstr "快速過濾..."
 
-#: rhodecode/templates/summary/summary.html:233
+#: rhodecode/templates/summary/summary.html:243
 #, python-format
 msgid "Readme file at revision '%s'"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:236
+#: rhodecode/templates/summary/summary.html:246
 msgid "Permalink to this readme"
 msgstr ""
 
-#: rhodecode/templates/summary/summary.html:293
+#: rhodecode/templates/summary/summary.html:304
 #, python-format
 msgid "Download %s as %s"
 msgstr "下載 %s 為 %s"
 
-#: rhodecode/templates/summary/summary.html:650
+#: rhodecode/templates/summary/summary.html:661
 msgid "commits"
 msgstr "遞交"
 
-#: rhodecode/templates/summary/summary.html:651
+#: rhodecode/templates/summary/summary.html:662
 msgid "files added"
 msgstr "多個檔案新增"
 
-#: rhodecode/templates/summary/summary.html:652
+#: rhodecode/templates/summary/summary.html:663
 msgid "files changed"
 msgstr "多個檔案修改"
 
-#: rhodecode/templates/summary/summary.html:653
+#: rhodecode/templates/summary/summary.html:664
 msgid "files removed"
 msgstr "移除多個檔案"
 
-#: rhodecode/templates/summary/summary.html:656
+#: rhodecode/templates/summary/summary.html:667
 msgid "commit"
 msgstr "遞交"
 
-#: rhodecode/templates/summary/summary.html:657
+#: rhodecode/templates/summary/summary.html:668
 msgid "file added"
 msgstr "檔案新增"
 
-#: rhodecode/templates/summary/summary.html:658
+#: rhodecode/templates/summary/summary.html:669
 msgid "file changed"
 msgstr "檔案修改"
 
-#: rhodecode/templates/summary/summary.html:659
+#: rhodecode/templates/summary/summary.html:670
 msgid "file removed"
 msgstr "移除檔案"
 
@@ -4011,3 +4311,8 @@
 msgid "%s Tags"
 msgstr "之前"
 
+#: rhodecode/templates/tags/tags.html:29
+#, fuzzy
+msgid "Compare tags"
+msgstr "比較顯示"
+
--- a/rhodecode/lib/annotate.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/annotate.py	Thu Dec 13 22:54:21 2012 +0100
@@ -142,14 +142,15 @@
                     lines.append('')
             ls = '\n'.join(lines)
 
-        annotate_changesets = [tup[1] for tup in self.filenode.annotate]
-        # If pygments cropped last lines break we need do that too
-        ln_cs = len(annotate_changesets)
-        ln_ = len(ls.splitlines())
-        if  ln_cs > ln_:
-            annotate_changesets = annotate_changesets[:ln_ - ln_cs]
-        annotate = ''.join((self.annotate_from_changeset(changeset)
-            for changeset in annotate_changesets))
+#        annotate_changesets = [tup[1] for tup in self.filenode.annotate]
+##        TODO: not sure what that fixes
+#        # If pygments cropped last lines break we need do that too
+#        ln_cs = len(annotate_changesets)
+#        ln_ = len(ls.splitlines())
+#        if  ln_cs > ln_:
+#            annotate_changesets = annotate_changesets[:ln_ - ln_cs]
+        annotate = ''.join((self.annotate_from_changeset(el[2]())
+                            for el in self.filenode.annotate))
         # in case you wonder about the seemingly redundant <div> here:
         # since the content in the other cell also is wrapped in a div,
         # some browsers in some configurations seem to mess up the formatting.
--- a/rhodecode/lib/auth_ldap.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/auth_ldap.py	Thu Dec 13 22:54:21 2012 +0100
@@ -57,17 +57,19 @@
         OPT_X_TLS_DEMAND = 2
         self.TLS_REQCERT = getattr(ldap, 'OPT_X_TLS_%s' % tls_reqcert,
                                    OPT_X_TLS_DEMAND)
-        self.LDAP_SERVER_ADDRESS = server
+        # split server into list
+        self.LDAP_SERVER_ADDRESS = server.split(',')
         self.LDAP_SERVER_PORT = port
 
         # USE FOR READ ONLY BIND TO LDAP SERVER
         self.LDAP_BIND_DN = safe_str(bind_dn)
         self.LDAP_BIND_PASS = safe_str(bind_pass)
-
-        self.LDAP_SERVER = "%s://%s:%s" % (ldap_server_type,
-                                           self.LDAP_SERVER_ADDRESS,
-                                           self.LDAP_SERVER_PORT)
-
+        _LDAP_SERVERS = []
+        for host in self.LDAP_SERVER_ADDRESS:
+            _LDAP_SERVERS.append("%s://%s:%s" % (ldap_server_type,
+                                                     host.replace(' ', ''),
+                                                     self.LDAP_SERVER_PORT))
+        self.LDAP_SERVER = str(', '.join(s for s in _LDAP_SERVERS))
         self.BASE_DN = safe_str(base_dn)
         self.LDAP_FILTER = safe_str(ldap_filter)
         self.SEARCH_SCOPE = getattr(ldap, 'SCOPE_%s' % search_scope)
@@ -115,6 +117,8 @@
                 server.start_tls_s()
 
             if self.LDAP_BIND_DN and self.LDAP_BIND_PASS:
+                log.debug('Trying simple_bind with password and given DN: %s'
+                          % self.LDAP_BIND_DN)
                 server.simple_bind_s(self.LDAP_BIND_DN, self.LDAP_BIND_PASS)
 
             filter_ = '(&%s(%s=%s))' % (self.LDAP_FILTER, self.attr_login,
--- a/rhodecode/lib/base.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/base.py	Thu Dec 13 22:54:21 2012 +0100
@@ -8,8 +8,7 @@
 
 from paste.auth.basic import AuthBasicAuthenticator
 from paste.httpexceptions import HTTPUnauthorized, HTTPForbidden
-from webob.exc import HTTPClientError
-from paste.httpheaders import WWW_AUTHENTICATE
+from paste.httpheaders import WWW_AUTHENTICATE, AUTHORIZATION
 
 from pylons import config, tmpl_context as c, request, session, url
 from pylons.controllers import WSGIController
@@ -19,13 +18,13 @@
 from rhodecode import __version__, BACKENDS
 
 from rhodecode.lib.utils2 import str2bool, safe_unicode, AttributeDict,\
-    safe_str
+    safe_str, safe_int
 from rhodecode.lib.auth import AuthUser, get_container_username, authfunc,\
     HasPermissionAnyMiddleware, CookieStoreWrapper
 from rhodecode.lib.utils import get_repo_slug, invalidate_cache
 from rhodecode.model import meta
 
-from rhodecode.model.db import Repository, RhodeCodeUi, User
+from rhodecode.model.db import Repository, RhodeCodeUi, User, RhodeCodeSetting
 from rhodecode.model.notification import NotificationModel
 from rhodecode.model.scm import ScmModel
 from rhodecode.model.meta import Session
@@ -74,6 +73,23 @@
             return HTTPForbidden(headers=head)
         return HTTPUnauthorized(headers=head)
 
+    def authenticate(self, environ):
+        authorization = AUTHORIZATION(environ)
+        if not authorization:
+            return self.build_authentication()
+        (authmeth, auth) = authorization.split(' ', 1)
+        if 'basic' != authmeth.lower():
+            return self.build_authentication()
+        auth = auth.strip().decode('base64')
+        _parts = auth.split(':', 1)
+        if len(_parts) == 2:
+            username, password = _parts
+            if self.authfunc(environ, username, password):
+                return username
+        return self.build_authentication()
+
+    __call__ = authenticate
+
 
 class BaseVCSController(object):
 
@@ -226,9 +242,13 @@
         c.ga_code = config.get('rhodecode_ga_code')
         # Visual options
         c.visual = AttributeDict({})
-        c.visual.show_public_icon = str2bool(config.get('rhodecode_show_public_icon'))
-        c.visual.show_private_icon = str2bool(config.get('rhodecode_show_private_icon'))
-        c.visual.stylify_metatags = str2bool(config.get('rhodecode_stylify_metatags'))
+        rc_config = RhodeCodeSetting.get_app_settings()
+
+        c.visual.show_public_icon = str2bool(rc_config.get('rhodecode_show_public_icon'))
+        c.visual.show_private_icon = str2bool(rc_config.get('rhodecode_show_private_icon'))
+        c.visual.stylify_metatags = str2bool(rc_config.get('rhodecode_stylify_metatags'))
+        c.visual.lightweight_dashboard = str2bool(rc_config.get('rhodecode_lightweight_dashboard'))
+        c.visual.lightweight_dashboard_items = safe_int(config.get('dashboard_items', 100))
 
         c.repo_name = get_repo_slug(request)
         c.backends = BACKENDS.keys()
@@ -290,7 +310,8 @@
 
             dbr = c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name)
             c.rhodecode_repo = c.rhodecode_db_repo.scm_instance
-
+            # update last change according to VCS data
+            dbr.update_last_change(c.rhodecode_repo.last_change)
             if c.rhodecode_repo is None:
                 log.error('%s this repository is present in database but it '
                           'cannot be created as an scm instance', c.repo_name)
--- a/rhodecode/lib/celerylib/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/celerylib/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -93,7 +93,7 @@
 def locked_task(func):
     def __wrapper(func, *fargs, **fkwargs):
         lockkey = __get_lockkey(func, *fargs, **fkwargs)
-        lockkey_path = config['here']
+        lockkey_path = config['app_conf']['cache_dir']
 
         log.info('running task with lockkey %s' % lockkey)
         try:
--- a/rhodecode/lib/celerylib/tasks.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/celerylib/tasks.py	Thu Dec 13 22:54:21 2012 +0100
@@ -50,6 +50,7 @@
 from rhodecode.lib.hooks import log_create_repository
 
 from rhodecode.model.db import Statistics, Repository, User
+from rhodecode.model.scm import ScmModel
 
 
 add_cache(config)
@@ -91,7 +92,7 @@
     DBS = get_session()
     lockkey = __get_lockkey('get_commits_stats', repo_name, ts_min_y,
                             ts_max_y)
-    lockkey_path = config['here']
+    lockkey_path = config['app_conf']['cache_dir']
 
     log.info('running task with lockkey %s' % lockkey)
 
@@ -402,12 +403,14 @@
     backend = get_backend(repo_type)
 
     if repo_type == 'git':
-        backend(safe_str(destination_fork_path), create=True,
+        r = backend(safe_str(destination_fork_path), create=True,
                 src_url=safe_str(source_repo_path),
                 update_after_clone=update_after_clone,
                 bare=True)
+        # add rhodecode hook into this repo
+        ScmModel().install_git_hook(repo=r)
     elif repo_type == 'hg':
-        backend(safe_str(destination_fork_path), create=True,
+        r = backend(safe_str(destination_fork_path), create=True,
                 src_url=safe_str(source_repo_path),
                 update_after_clone=update_after_clone)
     else:
--- a/rhodecode/lib/cleanup.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/cleanup.py	Thu Dec 13 22:54:21 2012 +0100
@@ -31,7 +31,7 @@
 
 from os.path import dirname as dn, join as jn
 from rhodecode.model import init_model
-from rhodecode.lib.utils2 import engine_from_config
+from rhodecode.lib.utils2 import engine_from_config, safe_str
 from rhodecode.model.db import RhodeCodeUi
 
 
@@ -88,9 +88,10 @@
 
         repos_location = RhodeCodeUi.get_repos_location()
         to_remove = []
-        for loc in os.listdir(repos_location):
-            if REMOVED_REPO_PAT.match(loc):
-                to_remove.append([loc, self._extract_date(loc)])
+        for dn, dirs, f in os.walk(safe_str(repos_location)):
+            for loc in dirs:
+                if REMOVED_REPO_PAT.match(loc):
+                    to_remove.append([loc, self._extract_date(loc)])
 
         #filter older than (if present)!
         now = datetime.datetime.now()
@@ -114,8 +115,8 @@
             remove = True
         else:
             remove = ask_ok('are you sure to remove listed repos \n%s [y/n]?'
-                            % ', \n'.join(['%s removed on %s' % (x[0], x[1])
-                                           for x in to_remove]))
+                            % ', \n'.join(['%s removed on %s'
+                    % (safe_str(x[0]), safe_str(x[1])) for x in to_remove]))
 
         if remove:
             for name, date_ in to_remove:
--- a/rhodecode/lib/db_manage.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/db_manage.py	Thu Dec 13 22:54:21 2012 +0100
@@ -57,32 +57,39 @@
 
 
 class DbManage(object):
-    def __init__(self, log_sql, dbconf, root, tests=False):
+    def __init__(self, log_sql, dbconf, root, tests=False, cli_args={}):
         self.dbname = dbconf.split('/')[-1]
         self.tests = tests
         self.root = root
         self.dburi = dbconf
         self.log_sql = log_sql
         self.db_exists = False
+        self.cli_args = cli_args
         self.init_db()
+        global ask_ok
+
+        if self.cli_args.get('force_ask') is True:
+            ask_ok = lambda *args, **kwargs: True
+        elif self.cli_args.get('force_ask') is False:
+            ask_ok = lambda *args, **kwargs: False
 
     def init_db(self):
         engine = create_engine(self.dburi, echo=self.log_sql)
         init_model(engine)
         self.sa = Session()
 
-    def create_tables(self, override=False, defaults={}):
+    def create_tables(self, override=False):
         """
         Create a auth database
         """
-        quiet = defaults.get('quiet')
+
         log.info("Any existing database is going to be destroyed")
-        if self.tests or quiet:
+        if self.tests:
             destroy = True
         else:
             destroy = ask_ok('Are you sure to destroy old database ? [y/n]')
         if not destroy:
-            sys.exit()
+            sys.exit('Nothing done')
         if destroy:
             Base.metadata.drop_all()
 
@@ -264,6 +271,11 @@
                            'Please validate and check default permissions '
                            'in admin panel')
 
+            def step_8(self):
+                self.klass.populate_default_permissions()
+                self.klass.create_default_options(skip_existing=True)
+                Session().commit()
+
         upgrade_steps = [0] + range(curr_version + 1, __dbversion__ + 1)
 
         # CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE
@@ -328,11 +340,12 @@
             self.sa.rollback()
             raise
 
-    def admin_prompt(self, second=False, defaults={}):
+    def admin_prompt(self, second=False):
         if not self.tests:
             import getpass
 
             # defaults
+            defaults = self.cli_args
             username = defaults.get('username')
             password = defaults.get('password')
             email = defaults.get('email')
@@ -470,6 +483,22 @@
             setting = RhodeCodeSetting(k, v)
             self.sa.add(setting)
 
+    def create_default_options(self, skip_existing=False):
+        """Creates default settings"""
+
+        for k, v in [
+            ('default_repo_enable_locking',  False),
+            ('default_repo_enable_downloads', False),
+            ('default_repo_enable_statistics', False),
+            ('default_repo_private', False),
+            ('default_repo_type', 'hg')]:
+
+            if skip_existing and RhodeCodeSetting.get_by_name(k) != None:
+                log.debug('Skipping option %s' % k)
+                continue
+            setting = RhodeCodeSetting(k, v)
+            self.sa.add(setting)
+
     def fixup_groups(self):
         def_usr = User.get_by_username('default')
         for g in RepoGroup.query().all():
@@ -507,7 +536,8 @@
             self.populate_default_permissions()
         return fixed
 
-    def config_prompt(self, test_repo_path='', retries=3, defaults={}):
+    def config_prompt(self, test_repo_path='', retries=3):
+        defaults = self.cli_args
         _path = defaults.get('repos_location')
         if retries == 3:
             log.info('Setting up repositories config')
@@ -543,9 +573,9 @@
             retries -= 1
             return self.config_prompt(test_repo_path, retries)
 
-        real_path = os.path.realpath(path)
+        real_path = os.path.normpath(os.path.realpath(path))
 
-        if real_path != path:
+        if real_path != os.path.normpath(path):
             if not ask_ok(('Path looks like a symlink, Rhodecode will store '
                            'given path as %s ? [y/n]') % (real_path)):
                 log.error('Canceled by user')
@@ -609,6 +639,7 @@
         self.sa.add(sett6)
 
         self.create_ldap_options()
+        self.create_default_options()
 
         log.info('created ui config')
 
--- a/rhodecode/lib/dbmigrate/schema/db_1_4_0.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/dbmigrate/schema/db_1_4_0.py	Thu Dec 13 22:54:21 2012 +0100
@@ -23,6 +23,1792 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-#TODO: replace that will db.py content after 1.5 Release
+import os
+import logging
+import datetime
+import traceback
+import hashlib
+import time
+from collections import defaultdict
+
+from sqlalchemy import *
+from sqlalchemy.ext.hybrid import hybrid_property
+from sqlalchemy.orm import relationship, joinedload, class_mapper, validates
+from sqlalchemy.exc import DatabaseError
+from beaker.cache import cache_region, region_invalidate
+from webob.exc import HTTPNotFound
+
+from pylons.i18n.translation import lazy_ugettext as _
+
+from rhodecode.lib.vcs import get_backend
+from rhodecode.lib.vcs.utils.helpers import get_scm
+from rhodecode.lib.vcs.exceptions import VCSError
+from rhodecode.lib.vcs.utils.lazy import LazyProperty
+
+from rhodecode.lib.utils2 import str2bool, safe_str, get_changeset_safe, \
+    safe_unicode, remove_suffix
+from rhodecode.lib.compat import json
+from rhodecode.lib.caching_query import FromCache
+
+from rhodecode.model.meta import Base, Session
+
+URL_SEP = '/'
+log = logging.getLogger(__name__)
+
+#==============================================================================
+# BASE CLASSES
+#==============================================================================
+
+_hash_key = lambda k: hashlib.md5(safe_str(k)).hexdigest()
+
+
+class BaseModel(object):
+    """
+    Base Model for all classess
+    """
+
+    @classmethod
+    def _get_keys(cls):
+        """return column names for this model """
+        return class_mapper(cls).c.keys()
+
+    def get_dict(self):
+        """
+        return dict with keys and values corresponding
+        to this model data """
+
+        d = {}
+        for k in self._get_keys():
+            d[k] = getattr(self, k)
+
+        # also use __json__() if present to get additional fields
+        _json_attr = getattr(self, '__json__', None)
+        if _json_attr:
+            # update with attributes from __json__
+            if callable(_json_attr):
+                _json_attr = _json_attr()
+            for k, val in _json_attr.iteritems():
+                d[k] = val
+        return d
+
+    def get_appstruct(self):
+        """return list with keys and values tupples corresponding
+        to this model data """
+
+        l = []
+        for k in self._get_keys():
+            l.append((k, getattr(self, k),))
+        return l
+
+    def populate_obj(self, populate_dict):
+        """populate model with data from given populate_dict"""
+
+        for k in self._get_keys():
+            if k in populate_dict:
+                setattr(self, k, populate_dict[k])
+
+    @classmethod
+    def query(cls):
+        return Session().query(cls)
+
+    @classmethod
+    def get(cls, id_):
+        if id_:
+            return cls.query().get(id_)
+
+    @classmethod
+    def get_or_404(cls, id_):
+        try:
+            id_ = int(id_)
+        except (TypeError, ValueError):
+            raise HTTPNotFound
+
+        res = cls.query().get(id_)
+        if not res:
+            raise HTTPNotFound
+        return res
+
+    @classmethod
+    def getAll(cls):
+        return cls.query().all()
+
+    @classmethod
+    def delete(cls, id_):
+        obj = cls.query().get(id_)
+        Session().delete(obj)
+
+    def __repr__(self):
+        if hasattr(self, '__unicode__'):
+            # python repr needs to return str
+            return safe_str(self.__unicode__())
+        return '<DB:%s>' % (self.__class__.__name__)
+
+
+class RhodeCodeSetting(Base, BaseModel):
+    __tablename__ = 'rhodecode_settings'
+    __table_args__ = (
+        UniqueConstraint('app_settings_name'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    app_settings_id = Column("app_settings_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    app_settings_name = Column("app_settings_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    _app_settings_value = Column("app_settings_value", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+
+    def __init__(self, k='', v=''):
+        self.app_settings_name = k
+        self.app_settings_value = v
+
+    @validates('_app_settings_value')
+    def validate_settings_value(self, key, val):
+        assert type(val) == unicode
+        return val
+
+    @hybrid_property
+    def app_settings_value(self):
+        v = self._app_settings_value
+        if self.app_settings_name == 'ldap_active':
+            v = str2bool(v)
+        return v
+
+    @app_settings_value.setter
+    def app_settings_value(self, val):
+        """
+        Setter that will always make sure we use unicode in app_settings_value
+
+        :param val:
+        """
+        self._app_settings_value = safe_unicode(val)
+
+    def __unicode__(self):
+        return u"<%s('%s:%s')>" % (
+            self.__class__.__name__,
+            self.app_settings_name, self.app_settings_value
+        )
+
+    @classmethod
+    def get_by_name(cls, key):
+        return cls.query()\
+            .filter(cls.app_settings_name == key).scalar()
+
+    @classmethod
+    def get_by_name_or_create(cls, key):
+        res = cls.get_by_name(key)
+        if not res:
+            res = cls(key)
+        return res
+
+    @classmethod
+    def get_app_settings(cls, cache=False):
+
+        ret = cls.query()
+
+        if cache:
+            ret = ret.options(FromCache("sql_cache_short", "get_hg_settings"))
+
+        if not ret:
+            raise Exception('Could not get application settings !')
+        settings = {}
+        for each in ret:
+            settings['rhodecode_' + each.app_settings_name] = \
+                each.app_settings_value
+
+        return settings
+
+    @classmethod
+    def get_ldap_settings(cls, cache=False):
+        ret = cls.query()\
+                .filter(cls.app_settings_name.startswith('ldap_')).all()
+        fd = {}
+        for row in ret:
+            fd.update({row.app_settings_name: row.app_settings_value})
+
+        return fd
+
+
+class RhodeCodeUi(Base, BaseModel):
+    __tablename__ = 'rhodecode_ui'
+    __table_args__ = (
+        UniqueConstraint('ui_key'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+
+    HOOK_UPDATE = 'changegroup.update'
+    HOOK_REPO_SIZE = 'changegroup.repo_size'
+    HOOK_PUSH = 'changegroup.push_logger'
+    HOOK_PRE_PUSH = 'prechangegroup.pre_push'
+    HOOK_PULL = 'outgoing.pull_logger'
+    HOOK_PRE_PULL = 'preoutgoing.pre_pull'
+
+    ui_id = Column("ui_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    ui_section = Column("ui_section", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    ui_key = Column("ui_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    ui_value = Column("ui_value", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    ui_active = Column("ui_active", Boolean(), nullable=True, unique=None, default=True)
+
+    @classmethod
+    def get_by_key(cls, key):
+        return cls.query().filter(cls.ui_key == key).scalar()
+
+    @classmethod
+    def get_builtin_hooks(cls):
+        q = cls.query()
+        q = q.filter(cls.ui_key.in_([cls.HOOK_UPDATE, cls.HOOK_REPO_SIZE,
+                                     cls.HOOK_PUSH, cls.HOOK_PRE_PUSH,
+                                     cls.HOOK_PULL, cls.HOOK_PRE_PULL]))
+        return q.all()
+
+    @classmethod
+    def get_custom_hooks(cls):
+        q = cls.query()
+        q = q.filter(~cls.ui_key.in_([cls.HOOK_UPDATE, cls.HOOK_REPO_SIZE,
+                                      cls.HOOK_PUSH, cls.HOOK_PRE_PUSH,
+                                      cls.HOOK_PULL, cls.HOOK_PRE_PULL]))
+        q = q.filter(cls.ui_section == 'hooks')
+        return q.all()
+
+    @classmethod
+    def get_repos_location(cls):
+        return cls.get_by_key('/').ui_value
+
+    @classmethod
+    def create_or_update_hook(cls, key, val):
+        new_ui = cls.get_by_key(key) or cls()
+        new_ui.ui_section = 'hooks'
+        new_ui.ui_active = True
+        new_ui.ui_key = key
+        new_ui.ui_value = val
+
+        Session().add(new_ui)
+
+    def __repr__(self):
+        return '<DB:%s[%s:%s]>' % (self.__class__.__name__, self.ui_key,
+                                   self.ui_value)
+
+
+class User(Base, BaseModel):
+    __tablename__ = 'users'
+    __table_args__ = (
+        UniqueConstraint('username'), UniqueConstraint('email'),
+        Index('u_username_idx', 'username'),
+        Index('u_email_idx', 'email'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    DEFAULT_USER = 'default'
+    DEFAULT_PERMISSIONS = [
+        'hg.register.manual_activate', 'hg.create.repository',
+        'hg.fork.repository', 'repository.read', 'group.read'
+    ]
+    user_id = Column("user_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    username = Column("username", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    password = Column("password", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    active = Column("active", Boolean(), nullable=True, unique=None, default=True)
+    admin = Column("admin", Boolean(), nullable=True, unique=None, default=False)
+    name = Column("firstname", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    lastname = Column("lastname", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    _email = Column("email", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    last_login = Column("last_login", DateTime(timezone=False), nullable=True, unique=None, default=None)
+    ldap_dn = Column("ldap_dn", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    api_key = Column("api_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    inherit_default_permissions = Column("inherit_default_permissions", Boolean(), nullable=False, unique=None, default=True)
+
+    user_log = relationship('UserLog', cascade='all')
+    user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all')
+
+    repositories = relationship('Repository')
+    user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all')
+    repo_to_perm = relationship('UserRepoToPerm', primaryjoin='UserRepoToPerm.user_id==User.user_id', cascade='all')
+    repo_group_to_perm = relationship('UserRepoGroupToPerm', primaryjoin='UserRepoGroupToPerm.user_id==User.user_id', cascade='all')
+
+    group_member = relationship('UsersGroupMember', cascade='all')
+
+    notifications = relationship('UserNotification', cascade='all')
+    # notifications assigned to this user
+    user_created_notifications = relationship('Notification', cascade='all')
+    # comments created by this user
+    user_comments = relationship('ChangesetComment', cascade='all')
+    #extra emails for this user
+    user_emails = relationship('UserEmailMap', cascade='all')
+
+    @hybrid_property
+    def email(self):
+        return self._email
+
+    @email.setter
+    def email(self, val):
+        self._email = val.lower() if val else None
+
+    @property
+    def firstname(self):
+        # alias for future
+        return self.name
+
+    @property
+    def emails(self):
+        other = UserEmailMap.query().filter(UserEmailMap.user==self).all()
+        return [self.email] + [x.email for x in other]
+
+    @property
+    def username_and_name(self):
+        return '%s (%s %s)' % (self.username, self.firstname, self.lastname)
+
+    @property
+    def full_name(self):
+        return '%s %s' % (self.firstname, self.lastname)
+
+    @property
+    def full_name_or_username(self):
+        return ('%s %s' % (self.firstname, self.lastname)
+                if (self.firstname and self.lastname) else self.username)
+
+    @property
+    def full_contact(self):
+        return '%s %s <%s>' % (self.firstname, self.lastname, self.email)
+
+    @property
+    def short_contact(self):
+        return '%s %s' % (self.firstname, self.lastname)
+
+    @property
+    def is_admin(self):
+        return self.admin
+
+    def __unicode__(self):
+        return u"<%s('id:%s:%s')>" % (self.__class__.__name__,
+                                     self.user_id, self.username)
+
+    @classmethod
+    def get_by_username(cls, username, case_insensitive=False, cache=False):
+        if case_insensitive:
+            q = cls.query().filter(cls.username.ilike(username))
+        else:
+            q = cls.query().filter(cls.username == username)
+
+        if cache:
+            q = q.options(FromCache(
+                            "sql_cache_short",
+                            "get_user_%s" % _hash_key(username)
+                          )
+            )
+        return q.scalar()
+
+    @classmethod
+    def get_by_api_key(cls, api_key, cache=False):
+        q = cls.query().filter(cls.api_key == api_key)
+
+        if cache:
+            q = q.options(FromCache("sql_cache_short",
+                                    "get_api_key_%s" % api_key))
+        return q.scalar()
+
+    @classmethod
+    def get_by_email(cls, email, case_insensitive=False, cache=False):
+        if case_insensitive:
+            q = cls.query().filter(cls.email.ilike(email))
+        else:
+            q = cls.query().filter(cls.email == email)
+
+        if cache:
+            q = q.options(FromCache("sql_cache_short",
+                                    "get_email_key_%s" % email))
+
+        ret = q.scalar()
+        if ret is None:
+            q = UserEmailMap.query()
+            # try fetching in alternate email map
+            if case_insensitive:
+                q = q.filter(UserEmailMap.email.ilike(email))
+            else:
+                q = q.filter(UserEmailMap.email == email)
+            q = q.options(joinedload(UserEmailMap.user))
+            if cache:
+                q = q.options(FromCache("sql_cache_short",
+                                        "get_email_map_key_%s" % email))
+            ret = getattr(q.scalar(), 'user', None)
+
+        return ret
+
+    def update_lastlogin(self):
+        """Update user lastlogin"""
+        self.last_login = datetime.datetime.now()
+        Session().add(self)
+        log.debug('updated user %s lastlogin' % self.username)
+
+    def get_api_data(self):
+        """
+        Common function for generating user related data for API
+        """
+        user = self
+        data = dict(
+            user_id=user.user_id,
+            username=user.username,
+            firstname=user.name,
+            lastname=user.lastname,
+            email=user.email,
+            emails=user.emails,
+            api_key=user.api_key,
+            active=user.active,
+            admin=user.admin,
+            ldap_dn=user.ldap_dn,
+            last_login=user.last_login,
+        )
+        return data
+
+    def __json__(self):
+        data = dict(
+            full_name=self.full_name,
+            full_name_or_username=self.full_name_or_username,
+            short_contact=self.short_contact,
+            full_contact=self.full_contact
+        )
+        data.update(self.get_api_data())
+        return data
+
+
+class UserEmailMap(Base, BaseModel):
+    __tablename__ = 'user_email_map'
+    __table_args__ = (
+        Index('uem_email_idx', 'email'),
+        UniqueConstraint('email'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    __mapper_args__ = {}
+
+    email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
+    _email = Column("email", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
+    user = relationship('User', lazy='joined')
+
+    @validates('_email')
+    def validate_email(self, key, email):
+        # check if this email is not main one
+        main_email = Session().query(User).filter(User.email == email).scalar()
+        if main_email is not None:
+            raise AttributeError('email %s is present is user table' % email)
+        return email
+
+    @hybrid_property
+    def email(self):
+        return self._email
+
+    @email.setter
+    def email(self, val):
+        self._email = val.lower() if val else None
+
+
+class UserLog(Base, BaseModel):
+    __tablename__ = 'user_logs'
+    __table_args__ = (
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+    user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+    repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True)
+    repository_name = Column("repository_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    user_ip = Column("user_ip", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    action = Column("action", UnicodeText(1200000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    action_date = Column("action_date", DateTime(timezone=False), nullable=True, unique=None, default=None)
+
+    @property
+    def action_as_day(self):
+        return datetime.date(*self.action_date.timetuple()[:3])
+
+    user = relationship('User')
+    repository = relationship('Repository', cascade='')
+
+
+class UsersGroup(Base, BaseModel):
+    __tablename__ = 'users_groups'
+    __table_args__ = (
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+
+    users_group_id = Column("users_group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    users_group_name = Column("users_group_name", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
+    users_group_active = Column("users_group_active", Boolean(), nullable=True, unique=None, default=None)
+    inherit_default_permissions = Column("users_group_inherit_default_permissions", Boolean(), nullable=False, unique=None, default=True)
+
+    members = relationship('UsersGroupMember', cascade="all, delete, delete-orphan", lazy="joined")
+    users_group_to_perm = relationship('UsersGroupToPerm', cascade='all')
+    users_group_repo_to_perm = relationship('UsersGroupRepoToPerm', cascade='all')
+
+    def __unicode__(self):
+        return u'<userGroup(%s)>' % (self.users_group_name)
+
+    @classmethod
+    def get_by_group_name(cls, group_name, cache=False,
+                          case_insensitive=False):
+        if case_insensitive:
+            q = cls.query().filter(cls.users_group_name.ilike(group_name))
+        else:
+            q = cls.query().filter(cls.users_group_name == group_name)
+        if cache:
+            q = q.options(FromCache(
+                            "sql_cache_short",
+                            "get_user_%s" % _hash_key(group_name)
+                          )
+            )
+        return q.scalar()
+
+    @classmethod
+    def get(cls, users_group_id, cache=False):
+        users_group = cls.query()
+        if cache:
+            users_group = users_group.options(FromCache("sql_cache_short",
+                                    "get_users_group_%s" % users_group_id))
+        return users_group.get(users_group_id)
+
+    def get_api_data(self):
+        users_group = self
+
+        data = dict(
+            users_group_id=users_group.users_group_id,
+            group_name=users_group.users_group_name,
+            active=users_group.users_group_active,
+        )
+
+        return data
+
+
+class UsersGroupMember(Base, BaseModel):
+    __tablename__ = 'users_groups_members'
+    __table_args__ = (
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+
+    users_group_member_id = Column("users_group_member_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+
+    user = relationship('User', lazy='joined')
+    users_group = relationship('UsersGroup')
+
+    def __init__(self, gr_id='', u_id=''):
+        self.users_group_id = gr_id
+        self.user_id = u_id
+
+
+class Repository(Base, BaseModel):
+    __tablename__ = 'repositories'
+    __table_args__ = (
+        UniqueConstraint('repo_name'),
+        Index('r_repo_name_idx', 'repo_name'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+
+    repo_id = Column("repo_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    repo_name = Column("repo_name", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
+    clone_uri = Column("clone_uri", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
+    repo_type = Column("repo_type", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=False, default=None)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=False, default=None)
+    private = Column("private", Boolean(), nullable=True, unique=None, default=None)
+    enable_statistics = Column("statistics", Boolean(), nullable=True, unique=None, default=True)
+    enable_downloads = Column("downloads", Boolean(), nullable=True, unique=None, default=True)
+    description = Column("description", String(10000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    created_on = Column('created_on', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
+    updated_on = Column('updated_on', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
+    landing_rev = Column("landing_revision", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=False, default=None)
+    enable_locking = Column("enable_locking", Boolean(), nullable=False, unique=None, default=False)
+    _locked = Column("locked", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
+
+    fork_id = Column("fork_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True, unique=False, default=None)
+    group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), nullable=True, unique=False, default=None)
+
+    user = relationship('User')
+    fork = relationship('Repository', remote_side=repo_id)
+    group = relationship('RepoGroup')
+    repo_to_perm = relationship('UserRepoToPerm', cascade='all', order_by='UserRepoToPerm.repo_to_perm_id')
+    users_group_to_perm = relationship('UsersGroupRepoToPerm', cascade='all')
+    stats = relationship('Statistics', cascade='all', uselist=False)
+
+    followers = relationship('UserFollowing',
+                             primaryjoin='UserFollowing.follows_repo_id==Repository.repo_id',
+                             cascade='all')
+
+    logs = relationship('UserLog')
+    comments = relationship('ChangesetComment', cascade="all, delete, delete-orphan")
+
+    pull_requests_org = relationship('PullRequest',
+                    primaryjoin='PullRequest.org_repo_id==Repository.repo_id',
+                    cascade="all, delete, delete-orphan")
+
+    pull_requests_other = relationship('PullRequest',
+                    primaryjoin='PullRequest.other_repo_id==Repository.repo_id',
+                    cascade="all, delete, delete-orphan")
+
+    def __unicode__(self):
+        return u"<%s('%s:%s')>" % (self.__class__.__name__, self.repo_id,
+                                   self.repo_name)
+
+    @hybrid_property
+    def locked(self):
+        # always should return [user_id, timelocked]
+        if self._locked:
+            _lock_info = self._locked.split(':')
+            return int(_lock_info[0]), _lock_info[1]
+        return [None, None]
+
+    @locked.setter
+    def locked(self, val):
+        if val and isinstance(val, (list, tuple)):
+            self._locked = ':'.join(map(str, val))
+        else:
+            self._locked = None
+
+    @classmethod
+    def url_sep(cls):
+        return URL_SEP
+
+    @classmethod
+    def get_by_repo_name(cls, repo_name):
+        q = Session().query(cls).filter(cls.repo_name == repo_name)
+        q = q.options(joinedload(Repository.fork))\
+                .options(joinedload(Repository.user))\
+                .options(joinedload(Repository.group))
+        return q.scalar()
+
+    @classmethod
+    def get_by_full_path(cls, repo_full_path):
+        repo_name = repo_full_path.split(cls.base_path(), 1)[-1]
+        return cls.get_by_repo_name(repo_name.strip(URL_SEP))
+
+    @classmethod
+    def get_repo_forks(cls, repo_id):
+        return cls.query().filter(Repository.fork_id == repo_id)
+
+    @classmethod
+    def base_path(cls):
+        """
+        Returns base path when all repos are stored
+
+        :param cls:
+        """
+        q = Session().query(RhodeCodeUi)\
+            .filter(RhodeCodeUi.ui_key == cls.url_sep())
+        q = q.options(FromCache("sql_cache_short", "repository_repo_path"))
+        return q.one().ui_value
+
+    @property
+    def forks(self):
+        """
+        Return forks of this repo
+        """
+        return Repository.get_repo_forks(self.repo_id)
+
+    @property
+    def parent(self):
+        """
+        Returns fork parent
+        """
+        return self.fork
+
+    @property
+    def just_name(self):
+        return self.repo_name.split(Repository.url_sep())[-1]
+
+    @property
+    def groups_with_parents(self):
+        groups = []
+        if self.group is None:
+            return groups
+
+        cur_gr = self.group
+        groups.insert(0, cur_gr)
+        while 1:
+            gr = getattr(cur_gr, 'parent_group', None)
+            cur_gr = cur_gr.parent_group
+            if gr is None:
+                break
+            groups.insert(0, gr)
+
+        return groups
+
+    @property
+    def groups_and_repo(self):
+        return self.groups_with_parents, self.just_name
+
+    @LazyProperty
+    def repo_path(self):
+        """
+        Returns base full path for that repository means where it actually
+        exists on a filesystem
+        """
+        q = Session().query(RhodeCodeUi).filter(RhodeCodeUi.ui_key ==
+                                              Repository.url_sep())
+        q = q.options(FromCache("sql_cache_short", "repository_repo_path"))
+        return q.one().ui_value
+
+    @property
+    def repo_full_path(self):
+        p = [self.repo_path]
+        # we need to split the name by / since this is how we store the
+        # names in the database, but that eventually needs to be converted
+        # into a valid system path
+        p += self.repo_name.split(Repository.url_sep())
+        return os.path.join(*p)
+
+    @property
+    def cache_keys(self):
+        """
+        Returns associated cache keys for that repo
+        """
+        return CacheInvalidation.query()\
+            .filter(CacheInvalidation.cache_args == self.repo_name)\
+            .order_by(CacheInvalidation.cache_key)\
+            .all()
+
+    def get_new_name(self, repo_name):
+        """
+        returns new full repository name based on assigned group and new new
+
+        :param group_name:
+        """
+        path_prefix = self.group.full_path_splitted if self.group else []
+        return Repository.url_sep().join(path_prefix + [repo_name])
+
+    @property
+    def _ui(self):
+        """
+        Creates an db based ui object for this repository
+        """
+        from rhodecode.lib.utils import make_ui
+        return make_ui('db', clear_session=False)
+
+    @classmethod
+    def inject_ui(cls, repo, extras={}):
+        from rhodecode.lib.vcs.backends.hg import MercurialRepository
+        from rhodecode.lib.vcs.backends.git import GitRepository
+        required = (MercurialRepository, GitRepository)
+        if not isinstance(repo, required):
+            raise Exception('repo must be instance of %s' % required)
+
+        # inject ui extra param to log this action via push logger
+        for k, v in extras.items():
+            repo._repo.ui.setconfig('rhodecode_extras', k, v)
+
+    @classmethod
+    def is_valid(cls, repo_name):
+        """
+        returns True if given repo name is a valid filesystem repository
+
+        :param cls:
+        :param repo_name:
+        """
+        from rhodecode.lib.utils import is_valid_repo
+
+        return is_valid_repo(repo_name, cls.base_path())
+
+    def get_api_data(self):
+        """
+        Common function for generating repo api data
+
+        """
+        repo = self
+        data = dict(
+            repo_id=repo.repo_id,
+            repo_name=repo.repo_name,
+            repo_type=repo.repo_type,
+            clone_uri=repo.clone_uri,
+            private=repo.private,
+            created_on=repo.created_on,
+            description=repo.description,
+            landing_rev=repo.landing_rev,
+            owner=repo.user.username,
+            fork_of=repo.fork.repo_name if repo.fork else None
+        )
+
+        return data
+
+    @classmethod
+    def lock(cls, repo, user_id):
+        repo.locked = [user_id, time.time()]
+        Session().add(repo)
+        Session().commit()
+
+    @classmethod
+    def unlock(cls, repo):
+        repo.locked = None
+        Session().add(repo)
+        Session().commit()
+
+    @property
+    def last_db_change(self):
+        return self.updated_on
+
+    #==========================================================================
+    # SCM PROPERTIES
+    #==========================================================================
+
+    def get_changeset(self, rev=None):
+        return get_changeset_safe(self.scm_instance, rev)
+
+    def get_landing_changeset(self):
+        """
+        Returns landing changeset, or if that doesn't exist returns the tip
+        """
+        cs = self.get_changeset(self.landing_rev) or self.get_changeset()
+        return cs
+
+    def update_last_change(self, last_change=None):
+        if last_change is None:
+            last_change = datetime.datetime.now()
+        if self.updated_on is None or self.updated_on != last_change:
+            log.debug('updated repo %s with new date %s' % (self, last_change))
+            self.updated_on = last_change
+            Session().add(self)
+            Session().commit()
+
+    @property
+    def tip(self):
+        return self.get_changeset('tip')
+
+    @property
+    def author(self):
+        return self.tip.author
+
+    @property
+    def last_change(self):
+        return self.scm_instance.last_change
+
+    def get_comments(self, revisions=None):
+        """
+        Returns comments for this repository grouped by revisions
+
+        :param revisions: filter query by revisions only
+        """
+        cmts = ChangesetComment.query()\
+            .filter(ChangesetComment.repo == self)
+        if revisions:
+            cmts = cmts.filter(ChangesetComment.revision.in_(revisions))
+        grouped = defaultdict(list)
+        for cmt in cmts.all():
+            grouped[cmt.revision].append(cmt)
+        return grouped
+
+    def statuses(self, revisions=None):
+        """
+        Returns statuses for this repository
+
+        :param revisions: list of revisions to get statuses for
+        :type revisions: list
+        """
+
+        statuses = ChangesetStatus.query()\
+            .filter(ChangesetStatus.repo == self)\
+            .filter(ChangesetStatus.version == 0)
+        if revisions:
+            statuses = statuses.filter(ChangesetStatus.revision.in_(revisions))
+        grouped = {}
+
+        #maybe we have open new pullrequest without a status ?
+        stat = ChangesetStatus.STATUS_UNDER_REVIEW
+        status_lbl = ChangesetStatus.get_status_lbl(stat)
+        for pr in PullRequest.query().filter(PullRequest.org_repo == self).all():
+            for rev in pr.revisions:
+                pr_id = pr.pull_request_id
+                pr_repo = pr.other_repo.repo_name
+                grouped[rev] = [stat, status_lbl, pr_id, pr_repo]
 
-from rhodecode.model.db import *
+        for stat in statuses.all():
+            pr_id = pr_repo = None
+            if stat.pull_request:
+                pr_id = stat.pull_request.pull_request_id
+                pr_repo = stat.pull_request.other_repo.repo_name
+            grouped[stat.revision] = [str(stat.status), stat.status_lbl,
+                                      pr_id, pr_repo]
+        return grouped
+
+    #==========================================================================
+    # SCM CACHE INSTANCE
+    #==========================================================================
+
+    @property
+    def invalidate(self):
+        return CacheInvalidation.invalidate(self.repo_name)
+
+    def set_invalidate(self):
+        """
+        set a cache for invalidation for this instance
+        """
+        CacheInvalidation.set_invalidate(repo_name=self.repo_name)
+
+    @LazyProperty
+    def scm_instance(self):
+        import rhodecode
+        full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache'))
+        if full_cache:
+            return self.scm_instance_cached()
+        return self.__get_instance()
+
+    def scm_instance_cached(self, cache_map=None):
+        @cache_region('long_term')
+        def _c(repo_name):
+            return self.__get_instance()
+        rn = self.repo_name
+        log.debug('Getting cached instance of repo')
+
+        if cache_map:
+            # get using prefilled cache_map
+            invalidate_repo = cache_map[self.repo_name]
+            if invalidate_repo:
+                invalidate_repo = (None if invalidate_repo.cache_active
+                                   else invalidate_repo)
+        else:
+            # get from invalidate
+            invalidate_repo = self.invalidate
+
+        if invalidate_repo is not None:
+            region_invalidate(_c, None, rn)
+            # update our cache
+            CacheInvalidation.set_valid(invalidate_repo.cache_key)
+        return _c(rn)
+
+    def __get_instance(self):
+        repo_full_path = self.repo_full_path
+        try:
+            alias = get_scm(repo_full_path)[0]
+            log.debug('Creating instance of %s repository' % alias)
+            backend = get_backend(alias)
+        except VCSError:
+            log.error(traceback.format_exc())
+            log.error('Perhaps this repository is in db and not in '
+                      'filesystem run rescan repositories with '
+                      '"destroy old data " option from admin panel')
+            return
+
+        if alias == 'hg':
+
+            repo = backend(safe_str(repo_full_path), create=False,
+                           baseui=self._ui)
+            # skip hidden web repository
+            if repo._get_hidden():
+                return
+        else:
+            repo = backend(repo_full_path, create=False)
+
+        return repo
+
+
+class RepoGroup(Base, BaseModel):
+    __tablename__ = 'groups'
+    __table_args__ = (
+        UniqueConstraint('group_name', 'group_parent_id'),
+        CheckConstraint('group_id != group_parent_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+    __mapper_args__ = {'order_by': 'group_name'}
+
+    group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    group_name = Column("group_name", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
+    group_parent_id = Column("group_parent_id", Integer(), ForeignKey('groups.group_id'), nullable=True, unique=None, default=None)
+    group_description = Column("group_description", String(10000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    enable_locking = Column("enable_locking", Boolean(), nullable=False, unique=None, default=False)
+
+    repo_group_to_perm = relationship('UserRepoGroupToPerm', cascade='all', order_by='UserRepoGroupToPerm.group_to_perm_id')
+    users_group_to_perm = relationship('UsersGroupRepoGroupToPerm', cascade='all')
+
+    parent_group = relationship('RepoGroup', remote_side=group_id)
+
+    def __init__(self, group_name='', parent_group=None):
+        self.group_name = group_name
+        self.parent_group = parent_group
+
+    def __unicode__(self):
+        return u"<%s('%s:%s')>" % (self.__class__.__name__, self.group_id,
+                                  self.group_name)
+
+    @classmethod
+    def groups_choices(cls, check_perms=False):
+        from webhelpers.html import literal as _literal
+        from rhodecode.model.scm import ScmModel
+        groups = cls.query().all()
+        if check_perms:
+            #filter group user have access to, it's done
+            #magically inside ScmModel based on current user
+            groups = ScmModel().get_repos_groups(groups)
+        repo_groups = [('', '')]
+        sep = ' &raquo; '
+        _name = lambda k: _literal(sep.join(k))
+
+        repo_groups.extend([(x.group_id, _name(x.full_path_splitted))
+                              for x in groups])
+
+        repo_groups = sorted(repo_groups, key=lambda t: t[1].split(sep)[0])
+        return repo_groups
+
+    @classmethod
+    def url_sep(cls):
+        return URL_SEP
+
+    @classmethod
+    def get_by_group_name(cls, group_name, cache=False, case_insensitive=False):
+        if case_insensitive:
+            gr = cls.query()\
+                .filter(cls.group_name.ilike(group_name))
+        else:
+            gr = cls.query()\
+                .filter(cls.group_name == group_name)
+        if cache:
+            gr = gr.options(FromCache(
+                            "sql_cache_short",
+                            "get_group_%s" % _hash_key(group_name)
+                            )
+            )
+        return gr.scalar()
+
+    @property
+    def parents(self):
+        parents_recursion_limit = 5
+        groups = []
+        if self.parent_group is None:
+            return groups
+        cur_gr = self.parent_group
+        groups.insert(0, cur_gr)
+        cnt = 0
+        while 1:
+            cnt += 1
+            gr = getattr(cur_gr, 'parent_group', None)
+            cur_gr = cur_gr.parent_group
+            if gr is None:
+                break
+            if cnt == parents_recursion_limit:
+                # this will prevent accidental infinit loops
+                log.error('group nested more than %s' %
+                          parents_recursion_limit)
+                break
+
+            groups.insert(0, gr)
+        return groups
+
+    @property
+    def children(self):
+        return RepoGroup.query().filter(RepoGroup.parent_group == self)
+
+    @property
+    def name(self):
+        return self.group_name.split(RepoGroup.url_sep())[-1]
+
+    @property
+    def full_path(self):
+        return self.group_name
+
+    @property
+    def full_path_splitted(self):
+        return self.group_name.split(RepoGroup.url_sep())
+
+    @property
+    def repositories(self):
+        return Repository.query()\
+                .filter(Repository.group == self)\
+                .order_by(Repository.repo_name)
+
+    @property
+    def repositories_recursive_count(self):
+        cnt = self.repositories.count()
+
+        def children_count(group):
+            cnt = 0
+            for child in group.children:
+                cnt += child.repositories.count()
+                cnt += children_count(child)
+            return cnt
+
+        return cnt + children_count(self)
+
+    def recursive_groups_and_repos(self):
+        """
+        Recursive return all groups, with repositories in those groups
+        """
+        all_ = []
+
+        def _get_members(root_gr):
+            for r in root_gr.repositories:
+                all_.append(r)
+            childs = root_gr.children.all()
+            if childs:
+                for gr in childs:
+                    all_.append(gr)
+                    _get_members(gr)
+
+        _get_members(self)
+        return [self] + all_
+
+    def get_new_name(self, group_name):
+        """
+        returns new full group name based on parent and new name
+
+        :param group_name:
+        """
+        path_prefix = (self.parent_group.full_path_splitted if
+                       self.parent_group else [])
+        return RepoGroup.url_sep().join(path_prefix + [group_name])
+
+
+class Permission(Base, BaseModel):
+    __tablename__ = 'permissions'
+    __table_args__ = (
+        Index('p_perm_name_idx', 'permission_name'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+    PERMS = [
+        ('repository.none', _('Repository no access')),
+        ('repository.read', _('Repository read access')),
+        ('repository.write', _('Repository write access')),
+        ('repository.admin', _('Repository admin access')),
+
+        ('group.none', _('Repositories Group no access')),
+        ('group.read', _('Repositories Group read access')),
+        ('group.write', _('Repositories Group write access')),
+        ('group.admin', _('Repositories Group admin access')),
+
+        ('hg.admin', _('RhodeCode Administrator')),
+        ('hg.create.none', _('Repository creation disabled')),
+        ('hg.create.repository', _('Repository creation enabled')),
+        ('hg.fork.none', _('Repository forking disabled')),
+        ('hg.fork.repository', _('Repository forking enabled')),
+        ('hg.register.none', _('Register disabled')),
+        ('hg.register.manual_activate', _('Register new user with RhodeCode '
+                                          'with manual activation')),
+
+        ('hg.register.auto_activate', _('Register new user with RhodeCode '
+                                        'with auto activation')),
+    ]
+
+    # defines which permissions are more important higher the more important
+    PERM_WEIGHTS = {
+        'repository.none': 0,
+        'repository.read': 1,
+        'repository.write': 3,
+        'repository.admin': 4,
+
+        'group.none': 0,
+        'group.read': 1,
+        'group.write': 3,
+        'group.admin': 4,
+
+        'hg.fork.none': 0,
+        'hg.fork.repository': 1,
+        'hg.create.none': 0,
+        'hg.create.repository':1
+    }
+
+    permission_id = Column("permission_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    permission_name = Column("permission_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    permission_longname = Column("permission_longname", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+
+    def __unicode__(self):
+        return u"<%s('%s:%s')>" % (
+            self.__class__.__name__, self.permission_id, self.permission_name
+        )
+
+    @classmethod
+    def get_by_key(cls, key):
+        return cls.query().filter(cls.permission_name == key).scalar()
+
+    @classmethod
+    def get_default_perms(cls, default_user_id):
+        q = Session().query(UserRepoToPerm, Repository, cls)\
+         .join((Repository, UserRepoToPerm.repository_id == Repository.repo_id))\
+         .join((cls, UserRepoToPerm.permission_id == cls.permission_id))\
+         .filter(UserRepoToPerm.user_id == default_user_id)
+
+        return q.all()
+
+    @classmethod
+    def get_default_group_perms(cls, default_user_id):
+        q = Session().query(UserRepoGroupToPerm, RepoGroup, cls)\
+         .join((RepoGroup, UserRepoGroupToPerm.group_id == RepoGroup.group_id))\
+         .join((cls, UserRepoGroupToPerm.permission_id == cls.permission_id))\
+         .filter(UserRepoGroupToPerm.user_id == default_user_id)
+
+        return q.all()
+
+
+class UserRepoToPerm(Base, BaseModel):
+    __tablename__ = 'repo_to_perm'
+    __table_args__ = (
+        UniqueConstraint('user_id', 'repository_id', 'permission_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    repo_to_perm_id = Column("repo_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+    permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
+    repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
+
+    user = relationship('User')
+    repository = relationship('Repository')
+    permission = relationship('Permission')
+
+    @classmethod
+    def create(cls, user, repository, permission):
+        n = cls()
+        n.user = user
+        n.repository = repository
+        n.permission = permission
+        Session().add(n)
+        return n
+
+    def __unicode__(self):
+        return u'<user:%s => %s >' % (self.user, self.repository)
+
+
+class UserToPerm(Base, BaseModel):
+    __tablename__ = 'user_to_perm'
+    __table_args__ = (
+        UniqueConstraint('user_id', 'permission_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    user_to_perm_id = Column("user_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+    permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
+
+    user = relationship('User')
+    permission = relationship('Permission', lazy='joined')
+
+
+class UsersGroupRepoToPerm(Base, BaseModel):
+    __tablename__ = 'users_group_repo_to_perm'
+    __table_args__ = (
+        UniqueConstraint('repository_id', 'users_group_id', 'permission_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
+    permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
+    repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
+
+    users_group = relationship('UsersGroup')
+    permission = relationship('Permission')
+    repository = relationship('Repository')
+
+    @classmethod
+    def create(cls, users_group, repository, permission):
+        n = cls()
+        n.users_group = users_group
+        n.repository = repository
+        n.permission = permission
+        Session().add(n)
+        return n
+
+    def __unicode__(self):
+        return u'<userGroup:%s => %s >' % (self.users_group, self.repository)
+
+
+class UsersGroupToPerm(Base, BaseModel):
+    __tablename__ = 'users_group_to_perm'
+    __table_args__ = (
+        UniqueConstraint('users_group_id', 'permission_id',),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
+    permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
+
+    users_group = relationship('UsersGroup')
+    permission = relationship('Permission')
+
+
+class UserRepoGroupToPerm(Base, BaseModel):
+    __tablename__ = 'user_repo_group_to_perm'
+    __table_args__ = (
+        UniqueConstraint('user_id', 'group_id', 'permission_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+
+    group_to_perm_id = Column("group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+    group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), nullable=False, unique=None, default=None)
+    permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
+
+    user = relationship('User')
+    group = relationship('RepoGroup')
+    permission = relationship('Permission')
+
+
+class UsersGroupRepoGroupToPerm(Base, BaseModel):
+    __tablename__ = 'users_group_repo_group_to_perm'
+    __table_args__ = (
+        UniqueConstraint('users_group_id', 'group_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+
+    users_group_repo_group_to_perm_id = Column("users_group_repo_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
+    group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), nullable=False, unique=None, default=None)
+    permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
+
+    users_group = relationship('UsersGroup')
+    permission = relationship('Permission')
+    group = relationship('RepoGroup')
+
+
+class Statistics(Base, BaseModel):
+    __tablename__ = 'statistics'
+    __table_args__ = (
+         UniqueConstraint('repository_id'),
+         {'extend_existing': True, 'mysql_engine': 'InnoDB',
+          'mysql_charset': 'utf8'}
+    )
+    stat_id = Column("stat_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=True, default=None)
+    stat_on_revision = Column("stat_on_revision", Integer(), nullable=False)
+    commit_activity = Column("commit_activity", LargeBinary(1000000), nullable=False)#JSON data
+    commit_activity_combined = Column("commit_activity_combined", LargeBinary(), nullable=False)#JSON data
+    languages = Column("languages", LargeBinary(1000000), nullable=False)#JSON data
+
+    repository = relationship('Repository', single_parent=True)
+
+
+class UserFollowing(Base, BaseModel):
+    __tablename__ = 'user_followings'
+    __table_args__ = (
+        UniqueConstraint('user_id', 'follows_repository_id'),
+        UniqueConstraint('user_id', 'follows_user_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+
+    user_following_id = Column("user_following_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+    follows_repo_id = Column("follows_repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True, unique=None, default=None)
+    follows_user_id = Column("follows_user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
+    follows_from = Column('follows_from', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
+
+    user = relationship('User', primaryjoin='User.user_id==UserFollowing.user_id')
+
+    follows_user = relationship('User', primaryjoin='User.user_id==UserFollowing.follows_user_id')
+    follows_repository = relationship('Repository', order_by='Repository.repo_name')
+
+    @classmethod
+    def get_repo_followers(cls, repo_id):
+        return cls.query().filter(cls.follows_repo_id == repo_id)
+
+
+class CacheInvalidation(Base, BaseModel):
+    __tablename__ = 'cache_invalidation'
+    __table_args__ = (
+        UniqueConstraint('cache_key'),
+        Index('key_idx', 'cache_key'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+    cache_id = Column("cache_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
+    cache_key = Column("cache_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    cache_args = Column("cache_args", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
+    cache_active = Column("cache_active", Boolean(), nullable=True, unique=None, default=False)
+
+    def __init__(self, cache_key, cache_args=''):
+        self.cache_key = cache_key
+        self.cache_args = cache_args
+        self.cache_active = False
+
+    def __unicode__(self):
+        return u"<%s('%s:%s')>" % (self.__class__.__name__,
+                                  self.cache_id, self.cache_key)
+
+    @property
+    def prefix(self):
+        _split = self.cache_key.split(self.cache_args, 1)
+        if _split and len(_split) == 2:
+            return _split[0]
+        return ''
+
+    @classmethod
+    def clear_cache(cls):
+        cls.query().delete()
+
+    @classmethod
+    def _get_key(cls, key):
+        """
+        Wrapper for generating a key, together with a prefix
+
+        :param key:
+        """
+        import rhodecode
+        prefix = ''
+        org_key = key
+        iid = rhodecode.CONFIG.get('instance_id')
+        if iid:
+            prefix = iid
+
+        return "%s%s" % (prefix, key), prefix, org_key
+
+    @classmethod
+    def get_by_key(cls, key):
+        return cls.query().filter(cls.cache_key == key).scalar()
+
+    @classmethod
+    def get_by_repo_name(cls, repo_name):
+        return cls.query().filter(cls.cache_args == repo_name).all()
+
+    @classmethod
+    def _get_or_create_key(cls, key, repo_name, commit=True):
+        inv_obj = Session().query(cls).filter(cls.cache_key == key).scalar()
+        if not inv_obj:
+            try:
+                inv_obj = CacheInvalidation(key, repo_name)
+                Session().add(inv_obj)
+                if commit:
+                    Session().commit()
+            except Exception:
+                log.error(traceback.format_exc())
+                Session().rollback()
+        return inv_obj
+
+    @classmethod
+    def invalidate(cls, key):
+        """
+        Returns Invalidation object if this given key should be invalidated
+        None otherwise. `cache_active = False` means that this cache
+        state is not valid and needs to be invalidated
+
+        :param key:
+        """
+        repo_name = key
+        repo_name = remove_suffix(repo_name, '_README')
+        repo_name = remove_suffix(repo_name, '_RSS')
+        repo_name = remove_suffix(repo_name, '_ATOM')
+
+        # adds instance prefix
+        key, _prefix, _org_key = cls._get_key(key)
+        inv = cls._get_or_create_key(key, repo_name)
+
+        if inv and inv.cache_active is False:
+            return inv
+
+    @classmethod
+    def set_invalidate(cls, key=None, repo_name=None):
+        """
+        Mark this Cache key for invalidation, either by key or whole
+        cache sets based on repo_name
+
+        :param key:
+        """
+        if key:
+            key, _prefix, _org_key = cls._get_key(key)
+            inv_objs = Session().query(cls).filter(cls.cache_key == key).all()
+        elif repo_name:
+            inv_objs = Session().query(cls).filter(cls.cache_args == repo_name).all()
+
+        log.debug('marking %s key[s] for invalidation based on key=%s,repo_name=%s'
+                  % (len(inv_objs), key, repo_name))
+        try:
+            for inv_obj in inv_objs:
+                inv_obj.cache_active = False
+                Session().add(inv_obj)
+            Session().commit()
+        except Exception:
+            log.error(traceback.format_exc())
+            Session().rollback()
+
+    @classmethod
+    def set_valid(cls, key):
+        """
+        Mark this cache key as active and currently cached
+
+        :param key:
+        """
+        inv_obj = cls.get_by_key(key)
+        inv_obj.cache_active = True
+        Session().add(inv_obj)
+        Session().commit()
+
+    @classmethod
+    def get_cache_map(cls):
+
+        class cachemapdict(dict):
+
+            def __init__(self, *args, **kwargs):
+                fixkey = kwargs.get('fixkey')
+                if fixkey:
+                    del kwargs['fixkey']
+                self.fixkey = fixkey
+                super(cachemapdict, self).__init__(*args, **kwargs)
+
+            def __getattr__(self, name):
+                key = name
+                if self.fixkey:
+                    key, _prefix, _org_key = cls._get_key(key)
+                if key in self.__dict__:
+                    return self.__dict__[key]
+                else:
+                    return self[key]
+
+            def __getitem__(self, key):
+                if self.fixkey:
+                    key, _prefix, _org_key = cls._get_key(key)
+                try:
+                    return super(cachemapdict, self).__getitem__(key)
+                except KeyError:
+                    return
+
+        cache_map = cachemapdict(fixkey=True)
+        for obj in cls.query().all():
+            cache_map[obj.cache_key] = cachemapdict(obj.get_dict())
+        return cache_map
+
+
+class ChangesetComment(Base, BaseModel):
+    __tablename__ = 'changeset_comments'
+    __table_args__ = (
+        Index('cc_revision_idx', 'revision'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+    comment_id = Column('comment_id', Integer(), nullable=False, primary_key=True)
+    repo_id = Column('repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
+    revision = Column('revision', String(40), nullable=True)
+    pull_request_id = Column("pull_request_id", Integer(), ForeignKey('pull_requests.pull_request_id'), nullable=True)
+    line_no = Column('line_no', Unicode(10), nullable=True)
+    hl_lines = Column('hl_lines', Unicode(512), nullable=True)
+    f_path = Column('f_path', Unicode(1000), nullable=True)
+    user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), nullable=False)
+    text = Column('text', UnicodeText(25000), nullable=False)
+    created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
+    modified_at = Column('modified_at', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
+
+    author = relationship('User', lazy='joined')
+    repo = relationship('Repository')
+    status_change = relationship('ChangesetStatus', cascade="all, delete, delete-orphan")
+    pull_request = relationship('PullRequest', lazy='joined')
+
+    @classmethod
+    def get_users(cls, revision=None, pull_request_id=None):
+        """
+        Returns user associated with this ChangesetComment. ie those
+        who actually commented
+
+        :param cls:
+        :param revision:
+        """
+        q = Session().query(User)\
+                .join(ChangesetComment.author)
+        if revision:
+            q = q.filter(cls.revision == revision)
+        elif pull_request_id:
+            q = q.filter(cls.pull_request_id == pull_request_id)
+        return q.all()
+
+
+class ChangesetStatus(Base, BaseModel):
+    __tablename__ = 'changeset_statuses'
+    __table_args__ = (
+        Index('cs_revision_idx', 'revision'),
+        Index('cs_version_idx', 'version'),
+        UniqueConstraint('repo_id', 'revision', 'version'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    STATUS_NOT_REVIEWED = DEFAULT = 'not_reviewed'
+    STATUS_APPROVED = 'approved'
+    STATUS_REJECTED = 'rejected'
+    STATUS_UNDER_REVIEW = 'under_review'
+
+    STATUSES = [
+        (STATUS_NOT_REVIEWED, _("Not Reviewed")),  # (no icon) and default
+        (STATUS_APPROVED, _("Approved")),
+        (STATUS_REJECTED, _("Rejected")),
+        (STATUS_UNDER_REVIEW, _("Under Review")),
+    ]
+
+    changeset_status_id = Column('changeset_status_id', Integer(), nullable=False, primary_key=True)
+    repo_id = Column('repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None)
+    revision = Column('revision', String(40), nullable=False)
+    status = Column('status', String(128), nullable=False, default=DEFAULT)
+    changeset_comment_id = Column('changeset_comment_id', Integer(), ForeignKey('changeset_comments.comment_id'))
+    modified_at = Column('modified_at', DateTime(), nullable=False, default=datetime.datetime.now)
+    version = Column('version', Integer(), nullable=False, default=0)
+    pull_request_id = Column("pull_request_id", Integer(), ForeignKey('pull_requests.pull_request_id'), nullable=True)
+
+    author = relationship('User', lazy='joined')
+    repo = relationship('Repository')
+    comment = relationship('ChangesetComment', lazy='joined')
+    pull_request = relationship('PullRequest', lazy='joined')
+
+    def __unicode__(self):
+        return u"<%s('%s:%s')>" % (
+            self.__class__.__name__,
+            self.status, self.author
+        )
+
+    @classmethod
+    def get_status_lbl(cls, value):
+        return dict(cls.STATUSES).get(value)
+
+    @property
+    def status_lbl(self):
+        return ChangesetStatus.get_status_lbl(self.status)
+
+
+class PullRequest(Base, BaseModel):
+    __tablename__ = 'pull_requests'
+    __table_args__ = (
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+
+    STATUS_NEW = u'new'
+    STATUS_OPEN = u'open'
+    STATUS_CLOSED = u'closed'
+
+    pull_request_id = Column('pull_request_id', Integer(), nullable=False, primary_key=True)
+    title = Column('title', Unicode(256), nullable=True)
+    description = Column('description', UnicodeText(10240), nullable=True)
+    status = Column('status', Unicode(256), nullable=False, default=STATUS_NEW)
+    created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
+    updated_on = Column('updated_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None)
+    _revisions = Column('revisions', UnicodeText(20500))  # 500 revisions max
+    org_repo_id = Column('org_repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
+    org_ref = Column('org_ref', Unicode(256), nullable=False)
+    other_repo_id = Column('other_repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
+    other_ref = Column('other_ref', Unicode(256), nullable=False)
+
+    @hybrid_property
+    def revisions(self):
+        return self._revisions.split(':')
+
+    @revisions.setter
+    def revisions(self, val):
+        self._revisions = ':'.join(val)
+
+    author = relationship('User', lazy='joined')
+    reviewers = relationship('PullRequestReviewers',
+                             cascade="all, delete, delete-orphan")
+    org_repo = relationship('Repository', primaryjoin='PullRequest.org_repo_id==Repository.repo_id')
+    other_repo = relationship('Repository', primaryjoin='PullRequest.other_repo_id==Repository.repo_id')
+    statuses = relationship('ChangesetStatus')
+    comments = relationship('ChangesetComment',
+                             cascade="all, delete, delete-orphan")
+
+    def is_closed(self):
+        return self.status == self.STATUS_CLOSED
+
+    def __json__(self):
+        return dict(
+          revisions=self.revisions
+        )
+
+
+class PullRequestReviewers(Base, BaseModel):
+    __tablename__ = 'pull_request_reviewers'
+    __table_args__ = (
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+
+    def __init__(self, user=None, pull_request=None):
+        self.user = user
+        self.pull_request = pull_request
+
+    pull_requests_reviewers_id = Column('pull_requests_reviewers_id', Integer(), nullable=False, primary_key=True)
+    pull_request_id = Column("pull_request_id", Integer(), ForeignKey('pull_requests.pull_request_id'), nullable=False)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True)
+
+    user = relationship('User')
+    pull_request = relationship('PullRequest')
+
+
+class Notification(Base, BaseModel):
+    __tablename__ = 'notifications'
+    __table_args__ = (
+        Index('notification_type_idx', 'type'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+
+    TYPE_CHANGESET_COMMENT = u'cs_comment'
+    TYPE_MESSAGE = u'message'
+    TYPE_MENTION = u'mention'
+    TYPE_REGISTRATION = u'registration'
+    TYPE_PULL_REQUEST = u'pull_request'
+    TYPE_PULL_REQUEST_COMMENT = u'pull_request_comment'
+
+    notification_id = Column('notification_id', Integer(), nullable=False, primary_key=True)
+    subject = Column('subject', Unicode(512), nullable=True)
+    body = Column('body', UnicodeText(50000), nullable=True)
+    created_by = Column("created_by", Integer(), ForeignKey('users.user_id'), nullable=True)
+    created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
+    type_ = Column('type', Unicode(256))
+
+    created_by_user = relationship('User')
+    notifications_to_users = relationship('UserNotification', lazy='joined',
+                                          cascade="all, delete, delete-orphan")
+
+    @property
+    def recipients(self):
+        return [x.user for x in UserNotification.query()\
+                .filter(UserNotification.notification == self)\
+                .order_by(UserNotification.user_id.asc()).all()]
+
+    @classmethod
+    def create(cls, created_by, subject, body, recipients, type_=None):
+        if type_ is None:
+            type_ = Notification.TYPE_MESSAGE
+
+        notification = cls()
+        notification.created_by_user = created_by
+        notification.subject = subject
+        notification.body = body
+        notification.type_ = type_
+        notification.created_on = datetime.datetime.now()
+
+        for u in recipients:
+            assoc = UserNotification()
+            assoc.notification = notification
+            u.notifications.append(assoc)
+        Session().add(notification)
+        return notification
+
+    @property
+    def description(self):
+        from rhodecode.model.notification import NotificationModel
+        return NotificationModel().make_description(self)
+
+
+class UserNotification(Base, BaseModel):
+    __tablename__ = 'user_to_notification'
+    __table_args__ = (
+        UniqueConstraint('user_id', 'notification_id'),
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'}
+    )
+    user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), primary_key=True)
+    notification_id = Column("notification_id", Integer(), ForeignKey('notifications.notification_id'), primary_key=True)
+    read = Column('read', Boolean, default=False)
+    sent_on = Column('sent_on', DateTime(timezone=False), nullable=True, unique=None)
+
+    user = relationship('User', lazy="joined")
+    notification = relationship('Notification', lazy="joined",
+                                order_by=lambda: Notification.created_on.desc(),)
+
+    def mark_as_read(self):
+        self.read = True
+        Session().add(self)
+
+
+class DbMigrateVersion(Base, BaseModel):
+    __tablename__ = 'db_migrate_version'
+    __table_args__ = (
+        {'extend_existing': True, 'mysql_engine': 'InnoDB',
+         'mysql_charset': 'utf8'},
+    )
+    repository_id = Column('repository_id', String(250), primary_key=True)
+    repository_path = Column('repository_path', Text)
+    version = Column('version', Integer)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/lib/dbmigrate/schema/db_1_5_0.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+"""
+    rhodecode.model.db_1_4_0
+    ~~~~~~~~~~~~~~~~~~~~~~~~
+
+    Database Models for RhodeCode <=1.5.X
+
+    :created_on: Apr 08, 2010
+    :author: marcink
+    :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
+"""
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+#TODO: replace that will db.py content after 1.6 Release
+
+from rhodecode.model.db import *
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/lib/dbmigrate/versions/008_version_1_5_0.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,60 @@
+import logging
+import datetime
+
+from sqlalchemy import *
+from sqlalchemy.exc import DatabaseError
+from sqlalchemy.orm import relation, backref, class_mapper, joinedload
+from sqlalchemy.orm.session import Session
+from sqlalchemy.ext.declarative import declarative_base
+
+from rhodecode.lib.dbmigrate.migrate import *
+from rhodecode.lib.dbmigrate.migrate.changeset import *
+
+from rhodecode.model.meta import Base
+from rhodecode.model import meta
+
+log = logging.getLogger(__name__)
+
+
+def upgrade(migrate_engine):
+    """
+    Upgrade operations go here.
+    Don't create your own engine; bind migrate_engine to your metadata
+    """
+    #==========================================================================
+    # USER LOGS
+    #==========================================================================
+    from rhodecode.lib.dbmigrate.schema.db_1_5_0 import UserLog
+    tbl = UserLog.__table__
+    username = Column("username", String(255, convert_unicode=False,
+                                         assert_unicode=None), nullable=True,
+                      unique=None, default=None)
+    # create username column
+    username.create(table=tbl)
+
+    _Session = Session()
+    ## after adding that column fix all usernames
+    users_log = _Session.query(UserLog)\
+            .options(joinedload(UserLog.user))\
+            .options(joinedload(UserLog.repository)).all()
+
+    for entry in users_log:
+        entry.username = entry.user.username
+        _Session.add(entry)
+    _Session.commit()
+
+    #alter username to not null
+    from rhodecode.lib.dbmigrate.schema.db_1_5_0 import UserLog
+    tbl_name = UserLog.__tablename__
+    tbl = Table(tbl_name,
+                MetaData(bind=migrate_engine), autoload=True,
+                autoload_with=migrate_engine)
+    col = tbl.columns.username
+
+    # remove nullability from revision field
+    col.alter(nullable=False)
+
+
+def downgrade(migrate_engine):
+    meta = MetaData()
+    meta.bind = migrate_engine
--- a/rhodecode/lib/diffs.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/diffs.py	Thu Dec 13 22:54:21 2012 +0100
@@ -27,8 +27,8 @@
 
 import re
 import difflib
-import markupsafe
 import logging
+import traceback
 
 from itertools import tee, imap
 
@@ -128,52 +128,106 @@
     new_raw_id = getattr(filenode_new.changeset, 'raw_id', repo.EMPTY_CHANGESET)
 
     vcs_gitdiff = repo.get_diff(old_raw_id, new_raw_id, filenode_new.path,
-                                 ignore_whitespace, context)
+                                ignore_whitespace, context)
     return vcs_gitdiff
 
+NEW_FILENODE = 1
+DEL_FILENODE = 2
+MOD_FILENODE = 3
+RENAMED_FILENODE = 4
+CHMOD_FILENODE = 5
+
+
+class DiffLimitExceeded(Exception):
+    pass
+
+
+class LimitedDiffContainer(object):
+
+    def __init__(self, diff_limit, cur_diff_size, diff):
+        self.diff = diff
+        self.diff_limit = diff_limit
+        self.cur_diff_size = cur_diff_size
+
+    def __iter__(self):
+        for l in self.diff:
+            yield l
+
 
 class DiffProcessor(object):
     """
-    Give it a unified diff and it returns a list of the files that were
+    Give it a unified or git diff and it returns a list of the files that were
     mentioned in the diff together with a dict of meta information that
     can be used to render it in a HTML template.
     """
-    _chunk_re = re.compile(r'@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)')
-    _newline_marker = '\\ No newline at end of file\n'
+    _chunk_re = re.compile(r'^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)')
+    _newline_marker = re.compile(r'^\\ No newline at end of file')
+    _git_header_re = re.compile(r"""
+        #^diff[ ]--git
+            [ ]a/(?P<a_path>.+?)[ ]b/(?P<b_path>.+?)\n
+        (?:^similarity[ ]index[ ](?P<similarity_index>\d+)%\n
+           ^rename[ ]from[ ](?P<rename_from>\S+)\n
+           ^rename[ ]to[ ](?P<rename_to>\S+)(?:\n|$))?
+        (?:^old[ ]mode[ ](?P<old_mode>\d+)\n
+           ^new[ ]mode[ ](?P<new_mode>\d+)(?:\n|$))?
+        (?:^new[ ]file[ ]mode[ ](?P<new_file_mode>.+)(?:\n|$))?
+        (?:^deleted[ ]file[ ]mode[ ](?P<deleted_file_mode>.+)(?:\n|$))?
+        (?:^index[ ](?P<a_blob_id>[0-9A-Fa-f]+)
+            \.\.(?P<b_blob_id>[0-9A-Fa-f]+)[ ]?(?P<b_mode>.+)?(?:\n|$))?
+        (?:^---[ ](a/(?P<a_file>.+)|/dev/null)(?:\n|$))?
+        (?:^\+\+\+[ ](b/(?P<b_file>.+)|/dev/null)(?:\n|$))?
+    """, re.VERBOSE | re.MULTILINE)
+    _hg_header_re = re.compile(r"""
+        #^diff[ ]--git
+            [ ]a/(?P<a_path>.+?)[ ]b/(?P<b_path>.+?)\n
+        (?:^similarity[ ]index[ ](?P<similarity_index>\d+)%(?:\n|$))?
+        (?:^rename[ ]from[ ](?P<rename_from>\S+)\n
+           ^rename[ ]to[ ](?P<rename_to>\S+)(?:\n|$))?
+        (?:^old[ ]mode[ ](?P<old_mode>\d+)\n
+           ^new[ ]mode[ ](?P<new_mode>\d+)(?:\n|$))?
+        (?:^new[ ]file[ ]mode[ ](?P<new_file_mode>.+)(?:\n|$))?
+        (?:^deleted[ ]file[ ]mode[ ](?P<deleted_file_mode>.+)(?:\n|$))?
+        (?:^index[ ](?P<a_blob_id>[0-9A-Fa-f]+)
+            \.\.(?P<b_blob_id>[0-9A-Fa-f]+)[ ]?(?P<b_mode>.+)?(?:\n|$))?
+        (?:^---[ ](a/(?P<a_file>.+)|/dev/null)(?:\n|$))?
+        (?:^\+\+\+[ ](b/(?P<b_file>.+)|/dev/null)(?:\n|$))?
+    """, re.VERBOSE | re.MULTILINE)
 
-    def __init__(self, diff, differ='diff', format='gitdiff'):
+    #used for inline highlighter word split
+    _token_re = re.compile(r'()(&gt;|&lt;|&amp;|\W+?)')
+
+    def __init__(self, diff, vcs='hg', format='gitdiff', diff_limit=None):
         """
-        :param diff:   a text in diff format or generator
+        :param diff:   a text in diff format
+        :param vcs: type of version controll hg or git
         :param format: format of diff passed, `udiff` or `gitdiff`
+        :param diff_limit: define the size of diff that is considered "big"
+            based on that parameter cut off will be triggered, set to None
+            to show full diff
         """
-        if isinstance(diff, basestring):
-            diff = [diff]
+        if not isinstance(diff, basestring):
+            raise Exception('Diff must be a basestring got %s instead' % type(diff))
 
-        self.__udiff = diff
-        self.__format = format
+        self._diff = diff
+        self._format = format
         self.adds = 0
         self.removes = 0
-
-        if isinstance(self.__udiff, basestring):
-            self.lines = iter(self.__udiff.splitlines(1))
+        # calculate diff size
+        self.diff_size = len(diff)
+        self.diff_limit = diff_limit
+        self.cur_diff_size = 0
+        self.parsed = False
+        self.parsed_diff = []
+        self.vcs = vcs
 
-        elif self.__format == 'gitdiff':
-            udiff_copy = self.copy_iterator()
-            self.lines = imap(self.escaper, self._parse_gitdiff(udiff_copy))
-        else:
-            udiff_copy = self.copy_iterator()
-            self.lines = imap(self.escaper, udiff_copy)
-
-        # Select a differ.
-        if differ == 'difflib':
+        if format == 'gitdiff':
             self.differ = self._highlight_line_difflib
+            self._parser = self._parse_gitdiff
         else:
             self.differ = self._highlight_line_udiff
+            self._parser = self._parse_udiff
 
-    def escaper(self, string):
-        return markupsafe.escape(string)
-
-    def copy_iterator(self):
+    def _copy_iterator(self):
         """
         make a fresh copy of generator, we should not iterate thru
         an original as it's needed for repeating operations on
@@ -182,58 +236,36 @@
         self.__udiff, iterator_copy = tee(self.__udiff)
         return iterator_copy
 
-    def _extract_rev(self, line1, line2):
+    def _escaper(self, string):
         """
-        Extract the operation (A/M/D), filename and revision hint from a line.
+        Escaper for diff escapes special chars and checks the diff limit
+
+        :param string:
+        :type string:
         """
 
-        try:
-            if line1.startswith('--- ') and line2.startswith('+++ '):
-                l1 = line1[4:].split(None, 1)
-                old_filename = (l1[0].replace('a/', '', 1)
-                                if len(l1) >= 1 else None)
-                old_rev = l1[1] if len(l1) == 2 else 'old'
+        self.cur_diff_size += len(string)
 
-                l2 = line2[4:].split(None, 1)
-                new_filename = (l2[0].replace('b/', '', 1)
-                                if len(l1) >= 1 else None)
-                new_rev = l2[1] if len(l2) == 2 else 'new'
-
-                filename = (old_filename
-                            if old_filename != '/dev/null' else new_filename)
+        # escaper get's iterated on each .next() call and it checks if each
+        # parsed line doesn't exceed the diff limit
+        if self.diff_limit is not None and self.cur_diff_size > self.diff_limit:
+            raise DiffLimitExceeded('Diff Limit Exceeded')
 
-                operation = 'D' if new_filename == '/dev/null' else None
-                if not operation:
-                    operation = 'M' if old_filename != '/dev/null' else 'A'
-
-                return operation, filename, new_rev, old_rev
-        except (ValueError, IndexError):
-            pass
+        return safe_unicode(string).replace('&', '&amp;')\
+                .replace('<', '&lt;')\
+                .replace('>', '&gt;')
 
-        return None, None, None, None
-
-    def _parse_gitdiff(self, diffiterator):
-        def line_decoder(l):
-            if l.startswith('+') and not l.startswith('+++'):
-                self.adds += 1
-            elif l.startswith('-') and not l.startswith('---'):
-                self.removes += 1
-            return safe_unicode(l)
+    def _line_counter(self, l):
+        """
+        Checks each line and bumps total adds/removes for this diff
 
-        output = list(diffiterator)
-        size = len(output)
-
-        if size == 2:
-            l = []
-            l.extend([output[0]])
-            l.extend(output[1].splitlines(1))
-            return map(line_decoder, l)
-        elif size == 1:
-            return  map(line_decoder, output[0].splitlines(1))
-        elif size == 0:
-            return []
-
-        raise Exception('wrong size of diff %s' % size)
+        :param l:
+        """
+        if l.startswith('+') and not l.startswith('+++'):
+            self.adds += 1
+        elif l.startswith('-') and not l.startswith('---'):
+            self.removes += 1
+        return safe_unicode(l)
 
     def _highlight_line_difflib(self, line, next_):
         """
@@ -245,9 +277,8 @@
         else:
             old, new = next_, line
 
-        oldwords = re.split(r'(\W)', old['line'])
-        newwords = re.split(r'(\W)', new['line'])
-
+        oldwords = self._token_re.split(old['line'])
+        newwords = self._token_re.split(new['line'])
         sequence = difflib.SequenceMatcher(None, oldwords, newwords)
 
         oldfragments, newfragments = [], []
@@ -295,120 +326,114 @@
             do(line)
             do(next_)
 
-    def _parse_udiff(self, inline_diff=True):
-        """
-        Parse the diff an return data for the template.
+    def _get_header(self, diff_chunk):
         """
-        lineiter = self.lines
-        files = []
-        try:
-            line = lineiter.next()
-            while 1:
-                # continue until we found the old file
-                if not line.startswith('--- '):
-                    line = lineiter.next()
-                    continue
+        parses the diff header, and returns parts, and leftover diff
+        parts consists of 14 elements::
+
+            a_path, b_path, similarity_index, rename_from, rename_to,
+            old_mode, new_mode, new_file_mode, deleted_file_mode,
+            a_blob_id, b_blob_id, b_mode, a_file, b_file
+
+        :param diff_chunk:
+        :type diff_chunk:
+        """
 
-                chunks = []
-                stats = [0, 0]
-                operation, filename, old_rev, new_rev = \
-                    self._extract_rev(line, lineiter.next())
-                files.append({
-                    'filename':         filename,
-                    'old_revision':     old_rev,
-                    'new_revision':     new_rev,
-                    'chunks':           chunks,
-                    'operation':        operation,
-                    'stats':            stats,
-                })
+        if self.vcs == 'git':
+            match = self._git_header_re.match(diff_chunk)
+            diff = diff_chunk[match.end():]
+            return match.groupdict(), imap(self._escaper, diff.splitlines(1))
+        elif self.vcs == 'hg':
+            match = self._hg_header_re.match(diff_chunk)
+            diff = diff_chunk[match.end():]
+            return match.groupdict(), imap(self._escaper, diff.splitlines(1))
+        else:
+            raise Exception('VCS type %s is not supported' % self.vcs)
 
-                line = lineiter.next()
-                while line:
-                    match = self._chunk_re.match(line)
-                    if not match:
-                        break
-
-                    lines = []
-                    chunks.append(lines)
+    def _clean_line(self, line, command):
+        if command in ['+', '-', ' ']:
+            #only modify the line if it's actually a diff thing
+            line = line[1:]
+        return line
 
-                    old_line, old_end, new_line, new_end = \
-                        [int(x or 1) for x in match.groups()[:-1]]
-                    old_line -= 1
-                    new_line -= 1
-                    gr = match.groups()
-                    context = len(gr) == 5
-                    old_end += old_line
-                    new_end += new_line
+    def _parse_gitdiff(self, inline_diff=True):
+        _files = []
+        diff_container = lambda arg: arg
+
+        ##split the diff in chunks of separate --git a/file b/file chunks
+        for raw_diff in ('\n' + self._diff).split('\ndiff --git')[1:]:
+            binary = False
+            binary_msg = 'unknown binary'
+            head, diff = self._get_header(raw_diff)
 
-                    if context:
-                        # skip context only if it's first line
-                        if int(gr[0]) > 1:
-                            lines.append({
-                                'old_lineno': '...',
-                                'new_lineno': '...',
-                                'action':     'context',
-                                'line':       line,
-                            })
-
-                    line = lineiter.next()
-
-                    while old_line < old_end or new_line < new_end:
-                        if line:
-                            command = line[0]
-                            if command in ['+', '-', ' ']:
-                                #only modify the line if it's actually a diff
-                                # thing
-                                line = line[1:]
-                        else:
-                            command = ' '
-
-                        affects_old = affects_new = False
+            if not head['a_file'] and head['b_file']:
+                op = 'A'
+            elif head['a_file'] and head['b_file']:
+                op = 'M'
+            elif head['a_file'] and not head['b_file']:
+                op = 'D'
+            else:
+                #probably we're dealing with a binary file 1
+                binary = True
+                if head['deleted_file_mode']:
+                    op = 'D'
+                    stats = ['b', DEL_FILENODE]
+                    binary_msg = 'deleted binary file'
+                elif head['new_file_mode']:
+                    op = 'A'
+                    stats = ['b', NEW_FILENODE]
+                    binary_msg = 'new binary file %s' % head['new_file_mode']
+                else:
+                    if head['new_mode'] and head['old_mode']:
+                        stats = ['b', CHMOD_FILENODE]
+                        op = 'M'
+                        binary_msg = ('modified binary file chmod %s => %s'
+                                      % (head['old_mode'], head['new_mode']))
+                    elif (head['rename_from'] and head['rename_to']
+                          and head['rename_from'] != head['rename_to']):
+                        stats = ['b', RENAMED_FILENODE]
+                        op = 'M'
+                        binary_msg = ('file renamed from %s to %s'
+                                      % (head['rename_from'], head['rename_to']))
+                    else:
+                        stats = ['b', MOD_FILENODE]
+                        op = 'M'
+                        binary_msg = 'modified binary file'
 
-                        # ignore those if we don't expect them
-                        if command in '#@':
-                            continue
-                        elif command == '+':
-                            affects_new = True
-                            action = 'add'
-                            stats[0] += 1
-                        elif command == '-':
-                            affects_old = True
-                            action = 'del'
-                            stats[1] += 1
-                        else:
-                            affects_old = affects_new = True
-                            action = 'unmod'
+            if not binary:
+                try:
+                    chunks, stats = self._parse_lines(diff)
+                except DiffLimitExceeded:
+                    diff_container = lambda _diff: LimitedDiffContainer(
+                                                self.diff_limit,
+                                                self.cur_diff_size,
+                                                _diff)
+                    break
+            else:
+                chunks = []
+                chunks.append([{
+                    'old_lineno': '',
+                    'new_lineno': '',
+                    'action':     'binary',
+                    'line':       binary_msg,
+                }])
 
-                        if line != self._newline_marker:
-                            old_line += affects_old
-                            new_line += affects_new
-                            lines.append({
-                                'old_lineno':   affects_old and old_line or '',
-                                'new_lineno':   affects_new and new_line or '',
-                                'action':       action,
-                                'line':         line
-                            })
-
-                        line = lineiter.next()
-                        if line == self._newline_marker:
-                            # we need to append to lines, since this is not
-                            # counted in the line specs of diff
-                            lines.append({
-                                'old_lineno':   '...',
-                                'new_lineno':   '...',
-                                'action':       'context',
-                                'line':         line
-                            })
-
-        except StopIteration:
-            pass
+            _files.append({
+                'filename':         head['b_path'],
+                'old_revision':     head['a_blob_id'],
+                'new_revision':     head['b_blob_id'],
+                'chunks':           chunks,
+                'operation':        op,
+                'stats':            stats,
+            })
 
         sorter = lambda info: {'A': 0, 'M': 1, 'D': 2}.get(info['operation'])
+
         if inline_diff is False:
-            return sorted(files, key=sorter)
+            return diff_container(sorted(_files, key=sorter))
 
         # highlight inline changes
-        for diff_data in files:
+        for diff_data in _files:
             for chunk in diff_data['chunks']:
                 lineiter = iter(chunk)
                 try:
@@ -423,14 +448,101 @@
                 except StopIteration:
                     pass
 
-        return sorted(files, key=sorter)
+        return diff_container(sorted(_files, key=sorter))
 
-    def prepare(self, inline_diff=True):
+    def _parse_udiff(self, inline_diff=True):
+        raise NotImplementedError()
+
+    def _parse_lines(self, diff):
+        """
+        Parse the diff an return data for the template.
         """
-        Prepare the passed udiff for HTML rendering. It'l return a list
-        of dicts
-        """
-        return self._parse_udiff(inline_diff=inline_diff)
+
+        lineiter = iter(diff)
+        stats = [0, 0]
+
+        try:
+            chunks = []
+            line = lineiter.next()
+
+            while line:
+                lines = []
+                chunks.append(lines)
+
+                match = self._chunk_re.match(line)
+
+                if not match:
+                    break
+
+                gr = match.groups()
+                (old_line, old_end,
+                 new_line, new_end) = [int(x or 1) for x in gr[:-1]]
+                old_line -= 1
+                new_line -= 1
+
+                context = len(gr) == 5
+                old_end += old_line
+                new_end += new_line
+
+                if context:
+                    # skip context only if it's first line
+                    if int(gr[0]) > 1:
+                        lines.append({
+                            'old_lineno': '...',
+                            'new_lineno': '...',
+                            'action':     'context',
+                            'line':       line,
+                        })
+
+                line = lineiter.next()
+
+                while old_line < old_end or new_line < new_end:
+                    command = ' '
+                    if line:
+                        command = line[0]
+
+                    affects_old = affects_new = False
+
+                    # ignore those if we don't expect them
+                    if command in '#@':
+                        continue
+                    elif command == '+':
+                        affects_new = True
+                        action = 'add'
+                        stats[0] += 1
+                    elif command == '-':
+                        affects_old = True
+                        action = 'del'
+                        stats[1] += 1
+                    else:
+                        affects_old = affects_new = True
+                        action = 'unmod'
+
+                    if not self._newline_marker.match(line):
+                        old_line += affects_old
+                        new_line += affects_new
+                        lines.append({
+                            'old_lineno':   affects_old and old_line or '',
+                            'new_lineno':   affects_new and new_line or '',
+                            'action':       action,
+                            'line':         self._clean_line(line, command)
+                        })
+
+                    line = lineiter.next()
+
+                    if self._newline_marker.match(line):
+                        # we need to append to lines, since this is not
+                        # counted in the line specs of diff
+                        lines.append({
+                            'old_lineno':   '...',
+                            'new_lineno':   '...',
+                            'action':       'context',
+                            'line':         self._clean_line(line, command)
+                        })
+
+        except StopIteration:
+            pass
+        return chunks, stats
 
     def _safe_id(self, idstring):
         """Make a string safe for including in an id attribute.
@@ -453,18 +565,26 @@
         idstring = re.sub(r'(?!-)\W', "", idstring).lower()
         return idstring
 
-    def raw_diff(self):
+    def prepare(self, inline_diff=True):
         """
-        Returns raw string as udiff
+        Prepare the passed udiff for HTML rendering. It'l return a list
+        of dicts with diff information
         """
-        udiff_copy = self.copy_iterator()
-        if self.__format == 'gitdiff':
-            udiff_copy = self._parse_gitdiff(udiff_copy)
-        return u''.join(udiff_copy)
+        parsed = self._parser(inline_diff=inline_diff)
+        self.parsed = True
+        self.parsed_diff = parsed
+        return parsed
+
+    def as_raw(self, diff_lines=None):
+        """
+        Returns raw string diff
+        """
+        return self._diff
+        #return u''.join(imap(self._line_counter, self._diff.splitlines(1)))
 
     def as_html(self, table_class='code-difftable', line_class='line',
                 new_lineno_class='lineno old', old_lineno_class='lineno new',
-                code_class='code', enable_comments=False, diff_lines=None):
+                code_class='code', enable_comments=False, parsed_lines=None):
         """
         Return given diff as html table with customized css classes
         """
@@ -480,13 +600,19 @@
                 }
             else:
                 return label
-        if diff_lines is None:
-            diff_lines = self.prepare()
+        if not self.parsed:
+            self.prepare()
+
+        diff_lines = self.parsed_diff
+        if parsed_lines:
+            diff_lines = parsed_lines
+
         _html_empty = True
         _html = []
         _html.append('''<table class="%(table_class)s">\n''' % {
             'table_class': table_class
         })
+
         for diff in diff_lines:
             for line in diff['chunks']:
                 _html_empty = False
@@ -551,6 +677,7 @@
                     _html.append('''\n\t\t<pre>%(code)s</pre>\n''' % {
                         'code': change['line']
                     })
+
                     _html.append('''\t</td>''')
                     _html.append('''\n</tr>\n''')
         _html.append('''</table>''')
@@ -578,44 +705,47 @@
 
 
 def differ(org_repo, org_ref, other_repo, other_ref, discovery_data=None,
-           bundle_compare=False):
+           remote_compare=False, context=3, ignore_whitespace=False):
     """
-    General differ between branches, bookmarks or separate but releated
-    repositories
+    General differ between branches, bookmarks, revisions of two remote or
+    local but related repositories
 
     :param org_repo:
-    :type org_repo:
     :param org_ref:
-    :type org_ref:
     :param other_repo:
     :type other_repo:
-    :param other_ref:
     :type other_ref:
     """
 
-    bundlerepo = None
-    ignore_whitespace = False
-    context = 3
-    org_repo = org_repo.scm_instance._repo
-    other_repo = other_repo.scm_instance._repo
-    opts = diffopts(git=True, ignorews=ignore_whitespace, context=context)
+    org_repo_scm = org_repo.scm_instance
+    other_repo_scm = other_repo.scm_instance
+
+    org_repo = org_repo_scm._repo
+    other_repo = other_repo_scm._repo
+
     org_ref = org_ref[1]
     other_ref = other_ref[1]
 
-    if org_repo != other_repo and bundle_compare:
+    if org_repo_scm == other_repo_scm:
+        log.debug('running diff between %s@%s and %s@%s'
+                  % (org_repo.path, org_ref, other_repo.path, other_ref))
+        _diff = org_repo_scm.get_diff(rev1=org_ref, rev2=other_ref,
+            ignore_whitespace=ignore_whitespace, context=context)
+        return _diff
 
+    elif remote_compare:
+        opts = diffopts(git=True, ignorews=ignore_whitespace, context=context)
         common, incoming, rheads = discovery_data
-        other_repo_peer = localrepo.locallegacypeer(other_repo.local())
+        org_repo_peer = localrepo.locallegacypeer(org_repo.local())
         # create a bundle (uncompressed if other repo is not local)
-        if other_repo_peer.capable('getbundle') and incoming:
+        if org_repo_peer.capable('getbundle'):
             # disable repo hooks here since it's just bundle !
             # patch and reset hooks section of UI config to not run any
             # hooks on fetching archives with subrepos
-            for k, _ in other_repo.ui.configitems('hooks'):
-                other_repo.ui.setconfig('hooks', k, None)
-
-            unbundle = other_repo.getbundle('incoming', common=common,
-                                            heads=None)
+            for k, _ in org_repo.ui.configitems('hooks'):
+                org_repo.ui.setconfig('hooks', k, None)
+            unbundle = org_repo.getbundle('incoming', common=None,
+                                          heads=None)
 
             buf = BytesIO()
             while True:
@@ -632,12 +762,9 @@
             bundlerepo = InMemoryBundleRepo(ui, path=org_repo.root,
                                             bundlestream=unbundle)
 
-        return ''.join(patch.diff(bundlerepo or org_repo,
-                                  node1=org_repo[org_ref].node(),
-                                  node2=other_repo[other_ref].node(),
-                                  opts=opts))
-    else:
-        log.debug('running diff between %s@%s and %s@%s'
-                  % (org_repo, org_ref, other_repo, other_ref))
-        return ''.join(patch.diff(org_repo, node1=org_ref, node2=other_ref,
-                                  opts=opts))
+            return ''.join(patch.diff(bundlerepo,
+                                      node1=other_repo[other_ref].node(),
+                                      node2=org_repo[org_ref].node(),
+                                      opts=opts))
+
+    return ''
--- a/rhodecode/lib/ext_json.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/ext_json.py	Thu Dec 13 22:54:21 2012 +0100
@@ -1,8 +1,9 @@
 import datetime
 import functools
 import decimal
+import imp
 
-__all__ = ['json', 'simplejson', 'stdjson']
+__all__ = ['json', 'simplejson', 'stdlibjson']
 
 
 def _is_aware(value):
@@ -60,7 +61,7 @@
 # Import simplejson
 try:
     # import simplejson initially
-    import simplejson
+    _sj = imp.load_module('_sj', *imp.find_module('simplejson'))
 
     def extended_encode(obj):
         try:
@@ -70,12 +71,23 @@
         raise TypeError("%r is not JSON serializable" % (obj,))
     # we handle decimals our own it makes unified behavior of json vs
     # simplejson
-    simplejson.dumps = functools.partial(simplejson.dumps,
-                                         default=extended_encode,
-                                         use_decimal=False)
-    simplejson.dump = functools.partial(simplejson.dump,
-                                        default=extended_encode,
-                                        use_decimal=False)
+    sj_version = [int(x) for x in _sj.__version__.split('.')]
+    major, minor = sj_version[0], sj_version[1]
+    if major < 2 or (major == 2 and minor < 1):
+        # simplejson < 2.1 doesnt support use_decimal
+        _sj.dumps = functools.partial(_sj.dumps,
+                                             default=extended_encode)
+        _sj.dump = functools.partial(_sj.dump,
+                                            default=extended_encode)
+    else:
+        _sj.dumps = functools.partial(_sj.dumps,
+                                             default=extended_encode,
+                                             use_decimal=False)
+        _sj.dump = functools.partial(_sj.dump,
+                                            default=extended_encode,
+                                            use_decimal=False)
+    simplejson = _sj
+
 except ImportError:
     # no simplejson set it to None
     simplejson = None
@@ -83,10 +95,10 @@
 
 try:
     # simplejson not found try out regular json module
-    import json
+    _json = imp.load_module('_json', *imp.find_module('json'))
 
     # extended JSON encoder for json
-    class ExtendedEncoder(json.JSONEncoder):
+    class ExtendedEncoder(_json.JSONEncoder):
         def default(self, obj):
             try:
                 return _obj_dump(obj)
@@ -94,18 +106,17 @@
                 pass
             raise TypeError("%r is not JSON serializable" % (obj,))
     # monkey-patch JSON encoder to use extended version
-    json.dumps = functools.partial(json.dumps, cls=ExtendedEncoder)
-    json.dump = functools.partial(json.dump, cls=ExtendedEncoder)
+    _json.dumps = functools.partial(_json.dumps, cls=ExtendedEncoder)
+    _json.dump = functools.partial(_json.dump, cls=ExtendedEncoder)
 
+    stdlibjson = _json
 except ImportError:
-    json = None
-
-stdlib = json
+    stdlibjson = None
 
 # set all available json modules
 if simplejson:
-    json = simplejson
-elif json:
-    json = json
+    json = _sj
+elif stdlibjson:
+    json = _json
 else:
     raise ImportError('Could not find any json modules')
--- a/rhodecode/lib/helpers.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/helpers.py	Thu Dec 13 22:54:21 2012 +0100
@@ -11,6 +11,7 @@
 import logging
 import re
 import urlparse
+import textwrap
 
 from datetime import datetime
 from pygments.formatters.html import HtmlFormatter
@@ -42,10 +43,10 @@
 from rhodecode.lib.annotate import annotate_highlight
 from rhodecode.lib.utils import repo_name_slug
 from rhodecode.lib.utils2 import str2bool, safe_unicode, safe_str, \
-    get_changeset_safe, datetime_to_time, time_to_datetime
+    get_changeset_safe, datetime_to_time, time_to_datetime, AttributeDict
 from rhodecode.lib.markup_renderer import MarkupRenderer
 from rhodecode.lib.vcs.exceptions import ChangesetDoesNotExistError
-from rhodecode.lib.vcs.backends.base import BaseChangeset
+from rhodecode.lib.vcs.backends.base import BaseChangeset, EmptyChangeset
 from rhodecode.config.conf import DATE_FORMAT, DATETIME_FORMAT
 from rhodecode.model.changeset_status import ChangesetStatusModel
 from rhodecode.model.db import URL_SEP, Permission
@@ -64,7 +65,7 @@
 
 def html_escape(text):
     """Produce entities within text."""
-    return "".join(html_escape_table.get(c,c) for c in text)
+    return "".join(html_escape_table.get(c, c) for c in text)
 
 
 def shorter(text, size=20):
@@ -465,7 +466,7 @@
                    '<div class="metatag" tag="license"><a href="http:\/\/www.opensource.org/licenses/\\1">\\1</a></div>', value)
     value = re.sub(r'\[(requires|recommends|conflicts|base)\ \=\>\ *([a-zA-Z\-\/]*)\]',
                    '<div class="metatag" tag="\\1">\\1 =&gt; <a href="/\\2">\\2</a></div>', value)
-    value = re.sub(r'\[(lang|language)\ \=\>\ *([a-zA-Z\-\/]*)\]',
+    value = re.sub(r'\[(lang|language)\ \=\>\ *([a-zA-Z\-\/\#\+]*)\]',
                    '<div class="metatag" tag="lang">\\2</div>', value)
     value = re.sub(r'\[([a-z]+)\]',
                   '<div class="metatag" tag="\\1">\\1</div>', value)
@@ -491,13 +492,14 @@
     return value
 
 
-def action_parser(user_log, feed=False):
+def action_parser(user_log, feed=False, parse_cs=False):
     """
     This helper will action_map the specified string action into translated
     fancy names with icons and links
 
     :param user_log: user log instance
     :param feed: use output for feeds (no html and fancy icons)
+    :param parse_cs: parse Changesets into VCS instances
     """
 
     action = user_log.action
@@ -518,32 +520,63 @@
 
         repo_name = user_log.repository.repo_name
 
-        repo = user_log.repository.scm_instance
-
         def lnk(rev, repo_name):
+            if isinstance(rev, BaseChangeset) or isinstance(rev, AttributeDict):
+                lazy_cs = True
+                if getattr(rev, 'op', None) and getattr(rev, 'ref_name', None):
+                    lazy_cs = False
+                    lbl = '?'
+                    if rev.op == 'delete_branch':
+                        lbl = '%s' % _('Deleted branch: %s') % rev.ref_name
+                        title = ''
+                    elif rev.op == 'tag':
+                        lbl = '%s' % _('Created tag: %s') % rev.ref_name
+                        title = ''
+                    _url = '#'
 
-            if isinstance(rev, BaseChangeset):
-                lbl = 'r%s:%s' % (rev.revision, rev.short_id)
-                _url = url('changeset_home', repo_name=repo_name,
-                           revision=rev.raw_id)
-                title = tooltip(rev.message)
+                else:
+                    lbl = '%s' % (rev.short_id[:8])
+                    _url = url('changeset_home', repo_name=repo_name,
+                               revision=rev.raw_id)
+                    title = tooltip(rev.message)
             else:
-                lbl = '%s' % rev
+                ## changeset cannot be found/striped/removed etc.
+                lbl = ('%s' % rev)[:12]
                 _url = '#'
                 title = _('Changeset not found')
-
-            return link_to(lbl, _url, title=title, class_='tooltip',)
+            if parse_cs:
+                return link_to(lbl, _url, title=title, class_='tooltip')
+            return link_to(lbl, _url, raw_id=rev.raw_id, repo_name=repo_name,
+                           class_='lazy-cs' if lazy_cs else '')
 
         revs = []
         if len(filter(lambda v: v != '', revs_ids)) > 0:
+            repo = None
             for rev in revs_ids[:revs_top_limit]:
-                try:
-                    rev = repo.get_changeset(rev)
-                    revs.append(rev)
-                except ChangesetDoesNotExistError:
-                    log.error('cannot find revision %s in this repo' % rev)
-                    revs.append(rev)
-                    continue
+                _op = _name = None
+                if len(rev.split('=>')) == 2:
+                    _op, _name = rev.split('=>')
+
+                # we want parsed changesets, or new log store format is bad
+                if parse_cs:
+                    try:
+                        if repo is None:
+                            repo = user_log.repository.scm_instance
+                        _rev = repo.get_changeset(rev)
+                        revs.append(_rev)
+                    except ChangesetDoesNotExistError:
+                        log.error('cannot find revision %s in this repo' % rev)
+                        revs.append(rev)
+                        continue
+                else:
+                    _rev = AttributeDict({
+                        'short_id': rev[:12],
+                        'raw_id': rev,
+                        'message': '',
+                        'op': _op,
+                        'ref_name': _name
+                    })
+                    revs.append(_rev)
         cs_links = []
         cs_links.append(" " + ', '.join(
             [lnk(rev, repo_name) for rev in revs[:revs_limit]]
@@ -554,7 +587,7 @@
             ' <div class="compare_view tooltip" title="%s">'
             '<a href="%s">%s</a> </div>' % (
                 _('Show all combined changesets %s->%s') % (
-                    revs_ids[0], revs_ids[-1]
+                    revs_ids[0][:12], revs_ids[-1][:12]
                 ),
                 url('changeset_home', repo_name=repo_name,
                     revision='%s...%s' % (revs_ids[0], revs_ids[-1])
@@ -604,8 +637,8 @@
 
     def get_fork_name():
         repo_name = action_params
-        return _('fork name ') + str(link_to(action_params, url('summary_home',
-                                          repo_name=repo_name,)))
+        _url = url('summary_home', repo_name=repo_name)
+        return _('fork name %s') % link_to(action_params, _url)
 
     def get_user_name():
         user_name = action_params
@@ -617,7 +650,11 @@
 
     def get_pull_request():
         pull_request_id = action_params
-        repo_name = user_log.repository.repo_name
+        deleted = user_log.repository is None
+        if deleted:
+            repo_name = user_log.repository_name
+        else:
+            repo_name = user_log.repository.repo_name
         return link_to(_('Pull request #%s') % pull_request_id,
                     url('pullrequest_show', repo_name=repo_name,
                     pull_request_id=pull_request_id))
@@ -712,7 +749,13 @@
 #==============================================================================
 
 def gravatar_url(email_address, size=30):
-    from pylons import url  ## doh, we need to re-import url to mock it later
+    from pylons import url  # doh, we need to re-import url to mock it later
+
+    if (not str2bool(config['app_conf'].get('use_gravatar')) or
+        not email_address or email_address == 'anonymous@rhodecode.org'):
+        f = lambda a, l: min(l, key=lambda x: abs(x - a))
+        return url("/images/user%s.png" % f(size, [14, 16, 20, 24, 30]))
+
     if(str2bool(config['app_conf'].get('use_gravatar')) and
        config['app_conf'].get('alternative_gravatar_url')):
         tmpl = config['app_conf'].get('alternative_gravatar_url', '')
@@ -724,11 +767,6 @@
                    .replace('{size}', str(size))
         return tmpl
 
-    if (not str2bool(config['app_conf'].get('use_gravatar')) or
-        not email_address or email_address == 'anonymous@rhodecode.org'):
-        f = lambda a, l: min(l, key=lambda x: abs(x - a))
-        return url("/images/user%s.png" % f(size, [14, 16, 20, 24, 30]))
-
     ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme')
     default = 'identicon'
     baseurl_nossl = "http://www.gravatar.com/avatar/"
@@ -849,7 +887,7 @@
         return ': ' + _('No Files')
 
 
-def repo_link(groups_and_repos):
+def repo_link(groups_and_repos, last_url=None):
     """
     Makes a breadcrumbs link to repo within a group
     joins &raquo; on each group to create a fancy link
@@ -858,17 +896,20 @@
         group >> subgroup >> repo
 
     :param groups_and_repos:
+    :param last_url:
     """
     groups, repo_name = groups_and_repos
+    last_link = link_to(repo_name, last_url) if last_url else repo_name
 
     if not groups:
+        if last_url:
+            return last_link
         return repo_name
     else:
         def make_link(group):
-            return link_to(group.name, url('repos_group_home',
-                                           group_name=group.group_name))
-        return literal(' &raquo; '.join(map(make_link, groups)) + \
-                       " &raquo; " + repo_name)
+            return link_to(group.name,
+                           url('repos_group_home', group_name=group.group_name))
+        return literal(' &raquo; '.join(map(make_link, groups) + [last_link]))
 
 
 def fancy_file_stats(stats):
@@ -878,27 +919,7 @@
 
     :param stats: two element list of added/deleted lines of code
     """
-
-    a, d, t = stats[0], stats[1], stats[0] + stats[1]
-    width = 100
-    unit = float(width) / (t or 1)
-
-    # needs > 9% of width to be visible or 0 to be hidden
-    a_p = max(9, unit * a) if a > 0 else 0
-    d_p = max(9, unit * d) if d > 0 else 0
-    p_sum = a_p + d_p
-
-    if p_sum > width:
-        #adjust the percentage to be == 100% since we adjusted to 9
-        if a_p > d_p:
-            a_p = a_p - (p_sum - width)
-        else:
-            d_p = d_p - (p_sum - width)
-
-    a_v = a if a > 0 else ''
-    d_v = d if d > 0 else ''
-
-    def cgen(l_type):
+    def cgen(l_type, a_v, d_v):
         mapping = {'tr': 'top-right-rounded-corner-mid',
                    'tl': 'top-left-rounded-corner-mid',
                    'br': 'bottom-right-rounded-corner-mid',
@@ -918,17 +939,43 @@
         if l_type == 'd' and not a_v:
             return ' '.join(map(map_getter, ['tr', 'br', 'tl', 'bl']))
 
+    a, d = stats[0], stats[1]
+    width = 100
+
+    if a == 'b':
+        #binary mode
+        b_d = '<div class="bin%s %s" style="width:100%%">%s</div>' % (d, cgen('a', a_v='', d_v=0), 'bin')
+        b_a = '<div class="bin1" style="width:0%%">%s</div>' % ('bin')
+        return literal('<div style="width:%spx">%s%s</div>' % (width, b_a, b_d))
+
+    t = stats[0] + stats[1]
+    unit = float(width) / (t or 1)
+
+    # needs > 9% of width to be visible or 0 to be hidden
+    a_p = max(9, unit * a) if a > 0 else 0
+    d_p = max(9, unit * d) if d > 0 else 0
+    p_sum = a_p + d_p
+
+    if p_sum > width:
+        #adjust the percentage to be == 100% since we adjusted to 9
+        if a_p > d_p:
+            a_p = a_p - (p_sum - width)
+        else:
+            d_p = d_p - (p_sum - width)
+
+    a_v = a if a > 0 else ''
+    d_v = d if d > 0 else ''
+
     d_a = '<div class="added %s" style="width:%s%%">%s</div>' % (
-        cgen('a'), a_p, a_v
+        cgen('a', a_v, d_v), a_p, a_v
     )
     d_d = '<div class="deleted %s" style="width:%s%%">%s</div>' % (
-        cgen('d'), d_p, d_v
+        cgen('d', a_v, d_v), d_p, d_v
     )
     return literal('<div style="width:%spx">%s%s</div>' % (width, d_a, d_d))
 
 
 def urlify_text(text_):
-    import re
 
     url_pat = re.compile(r'''(http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]'''
                          '''|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)''')
@@ -947,7 +994,7 @@
     :param text_:
     :param repository:
     """
-    import re
+
     URL_PAT = re.compile(r'([0-9a-fA-F]{12,})')
 
     def url_func(match_obj):
@@ -982,7 +1029,6 @@
     :param repository:
     :param link_: changeset link
     """
-    import re
     import traceback
 
     def escaper(string):
@@ -1056,17 +1102,14 @@
             log.debug('processed prefix:`%s` => %s' % (pattern_index, newtext))
 
         # if we actually did something above
-        if valid_indices:
-            if link_:
-                # wrap not links into final link => link_
-                newtext = linkify_others(newtext, link_)
-
-            return literal(newtext)
+        if link_:
+            # wrap not links into final link => link_
+            newtext = linkify_others(newtext, link_)
     except:
         log.error(traceback.format_exc())
         pass
 
-    return newtext
+    return literal(newtext)
 
 
 def rst(source):
@@ -1094,3 +1137,23 @@
 
 def get_permission_name(key):
     return dict(Permission.PERMS).get(key)
+
+
+def journal_filter_help():
+    return _(textwrap.dedent('''
+        Example filter terms:
+            repository:vcs
+            username:marcin
+            action:*push*
+            ip:127.0.0.1
+            date:20120101
+            date:[20120101100000 TO 20120102]
+
+        Generate wildcards using '*' character:
+            "repositroy:vcs*" - search everything starting with 'vcs'
+            "repository:*vcs*" - search for repository containing 'vcs'
+
+        Optional AND / OR operators in queries
+            "repository:vcs OR repository:test"
+            "username:test AND repository:test*"
+    '''))
--- a/rhodecode/lib/hooks.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/hooks.py	Thu Dec 13 22:54:21 2012 +0100
@@ -36,7 +36,7 @@
 from rhodecode.lib.vcs.backends.base import EmptyChangeset
 from rhodecode.lib.compat import json
 from rhodecode.lib.exceptions import HTTPLockedRC
-from rhodecode.lib.utils2 import safe_str
+from rhodecode.lib.utils2 import safe_str, datetime_to_time
 from rhodecode.model.db import Repository, User
 
 
@@ -46,7 +46,7 @@
         alias += '.'
 
     size_scm, size_root = 0, 0
-    for path, dirs, files in os.walk(root_path):
+    for path, dirs, files in os.walk(safe_str(root_path)):
         if path.find(alias) != -1:
             for f in files:
                 try:
@@ -159,16 +159,18 @@
         repository = extras['repository']
         scm = extras['scm']
         make_lock = extras['make_lock']
+        ip = extras['ip']
     elif 'username' in rc_extras:
         username = rc_extras['username']
         repository = rc_extras['repository']
         scm = rc_extras['scm']
         make_lock = rc_extras['make_lock']
+        ip = rc_extras['ip']
     else:
         raise Exception('Missing data in repo.ui and os.environ')
     user = User.get_by_username(username)
     action = 'pull'
-    action_logger(user, action, repository, extras['ip'], commit=True)
+    action_logger(user, action, repository, ip, commit=True)
     # extension hook call
     from rhodecode import EXTENSIONS
     callback = getattr(EXTENSIONS, 'PULL_HOOK', None)
@@ -412,11 +414,17 @@
                                          heads.splitlines()))
                     cmd = (('log %(new_rev)s' % push_ref) +
                            ' --reverse --pretty=format:"%H" --not ' + heads)
+                    git_revs += repo.run_git_command(cmd)[0].splitlines()
+
+                elif push_ref['new_rev'] == EmptyChangeset().raw_id:
+                    #delete branch case
+                    git_revs += ['delete_branch=>%s' % push_ref['name']]
                 else:
                     cmd = (('log %(old_rev)s..%(new_rev)s' % push_ref) +
                            ' --reverse --pretty=format:"%H"')
-                git_revs += repo.run_git_command(cmd)[0].splitlines()
+                    git_revs += repo.run_git_command(cmd)[0].splitlines()
+
             elif _type == 'tags':
-                git_revs += [push_ref['name']]
+                git_revs += ['tag=>%s' % push_ref['name']]
 
         log_push_action(baseui, repo, _git_revs=git_revs)
--- a/rhodecode/lib/indexers/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/indexers/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -35,7 +35,7 @@
 from shutil import rmtree
 
 from whoosh.analysis import RegexTokenizer, LowercaseFilter, StopFilter
-from whoosh.fields import TEXT, ID, STORED, NUMERIC, BOOLEAN, Schema, FieldType
+from whoosh.fields import TEXT, ID, STORED, NUMERIC, BOOLEAN, Schema, FieldType, DATETIME
 from whoosh.index import create_in, open_dir
 from whoosh.formats import Characters
 from whoosh.highlight import highlight, HtmlFormatter, ContextFragmenter
@@ -89,6 +89,15 @@
 
 CHGSET_IDX_NAME = 'CHGSET_INDEX'
 
+# used only to generate queries in journal
+JOURNAL_SCHEMA = Schema(
+    username=TEXT(),
+    date=DATETIME(),
+    action=TEXT(),
+    repository=TEXT(),
+    ip=TEXT(),
+)
+
 
 class MakeIndex(BasePasterCommand):
 
--- a/rhodecode/lib/indexers/daemon.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/indexers/daemon.py	Thu Dec 13 22:54:21 2012 +0100
@@ -41,7 +41,7 @@
 
 from rhodecode.config.conf import INDEX_EXTENSIONS
 from rhodecode.model.scm import ScmModel
-from rhodecode.lib.utils2 import safe_unicode
+from rhodecode.lib.utils2 import safe_unicode, safe_str
 from rhodecode.lib.indexers import SCHEMA, IDX_NAME, CHGSETS_SCHEMA, \
     CHGSET_IDX_NAME
 
@@ -119,7 +119,7 @@
             tip = repo.get_changeset('tip')
             for _topnode, _dirs, files in tip.walk('/'):
                 for f in files:
-                    index_paths_.add(jn(repo.path, f.path))
+                    index_paths_.add(jn(safe_str(repo.path), safe_str(f.path)))
 
         except RepositoryError:
             log.debug(traceback.format_exc())
--- a/rhodecode/lib/markup_renderer.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/markup_renderer.py	Thu Dec 13 22:54:21 2012 +0100
@@ -98,7 +98,7 @@
         source = safe_unicode(source)
         try:
             import markdown as __markdown
-            return __markdown.markdown(source, ['codehilite'])
+            return __markdown.markdown(source, ['codehilite', 'tables'])
         except ImportError:
             log.warning('Install markdown to use this function')
             return cls.plain(source)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/lib/middleware/errormator.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+"""
+    rhodecode.lib.middleware.errormator
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+    middleware to handle errormator publishing of errors
+
+    :created_on: October 18, 2012
+    :author: marcink
+    :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
+"""
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+try:
+    from errormator_client import make_errormator_middleware
+except ImportError:
+    Errormator = None
+else:
+    Errormator = make_errormator_middleware
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/lib/middleware/sentry.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+"""
+    rhodecode.lib.middleware.sentry
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+    middleware to handle sentry/raven publishing of errors
+
+    :created_on: September 18, 2012
+    :author: marcink
+    :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
+"""
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+try:
+    from raven.base import Client
+    from raven.contrib.pylons import list_from_setting
+    from raven.middleware import Sentry as Middleware
+except ImportError:
+    Sentry = None
+else:
+    class Sentry(Middleware):
+        def __init__(self, app, config, client_cls=Client):
+            client = client_cls(
+                dsn=config.get('sentry.dsn'),
+                servers=list_from_setting(config, 'sentry.servers'),
+                name=config.get('sentry.name'),
+                key=config.get('sentry.key'),
+                public_key=config.get('sentry.public_key'),
+                secret_key=config.get('sentry.secret_key'),
+                project=config.get('sentry.project'),
+                site=config.get('sentry.site'),
+                include_paths=list_from_setting(config, 'sentry.include_paths'),
+                exclude_paths=list_from_setting(config, 'sentry.exclude_paths'),
+            )
+            super(Sentry, self).__init__(app, client)
--- a/rhodecode/lib/middleware/simplegit.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/middleware/simplegit.py	Thu Dec 13 22:54:21 2012 +0100
@@ -79,7 +79,7 @@
 from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \
     HTTPBadRequest, HTTPNotAcceptable
 
-from rhodecode.lib.utils2 import safe_str, fix_PATH
+from rhodecode.lib.utils2 import safe_str, fix_PATH, get_server_url
 from rhodecode.lib.base import BaseVCSController
 from rhodecode.lib.auth import get_container_username
 from rhodecode.lib.utils import is_valid_repo, make_ui
@@ -189,6 +189,7 @@
         # extras are injected into UI object and later available
         # in hooks executed by rhodecode
         from rhodecode import CONFIG
+        server_url = get_server_url(environ)
         extras = {
             'ip': ipaddr,
             'username': username,
@@ -196,6 +197,7 @@
             'repository': repo_name,
             'scm': 'git',
             'config': CONFIG['__file__'],
+            'server_url': server_url,
             'make_lock': None,
             'locked_by': [None, None]
         }
--- a/rhodecode/lib/middleware/simplehg.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/middleware/simplehg.py	Thu Dec 13 22:54:21 2012 +0100
@@ -35,7 +35,7 @@
 from webob.exc import HTTPNotFound, HTTPForbidden, HTTPInternalServerError, \
     HTTPBadRequest, HTTPNotAcceptable
 
-from rhodecode.lib.utils2 import safe_str, fix_PATH
+from rhodecode.lib.utils2 import safe_str, fix_PATH, get_server_url
 from rhodecode.lib.base import BaseVCSController
 from rhodecode.lib.auth import get_container_username
 from rhodecode.lib.utils import make_ui, is_valid_repo, ui_sections
@@ -152,6 +152,7 @@
         # extras are injected into mercurial UI object and later available
         # in hg hooks executed by rhodecode
         from rhodecode import CONFIG
+        server_url = get_server_url(environ)
         extras = {
             'ip': ipaddr,
             'username': username,
@@ -159,6 +160,7 @@
             'repository': repo_name,
             'scm': 'hg',
             'config': CONFIG['__file__'],
+            'server_url': server_url,
             'make_lock': None,
             'locked_by': [None, None]
         }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/lib/update_repoinfo.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,85 @@
+# -*- coding: utf-8 -*-
+"""
+    package.rhodecode.lib.cleanup
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+    :created_on: Jul 14, 2012
+    :author: marcink
+    :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
+"""
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+from __future__ import with_statement
+
+import os
+import sys
+import re
+import shutil
+import logging
+import datetime
+import string
+
+from os.path import dirname as dn, join as jn
+from rhodecode.model import init_model
+from rhodecode.lib.utils2 import engine_from_config, safe_str
+from rhodecode.model.db import RhodeCodeUi, Repository
+
+
+#to get the rhodecode import
+sys.path.append(dn(dn(dn(os.path.realpath(__file__)))))
+
+from rhodecode.lib.utils import BasePasterCommand, Command, add_cache
+
+log = logging.getLogger(__name__)
+
+
+class UpdateCommand(BasePasterCommand):
+
+    max_args = 1
+    min_args = 1
+
+    usage = "CONFIG_FILE"
+    summary = "Cleanup deleted repos"
+    group_name = "RhodeCode"
+    takes_config_file = -1
+    parser = Command.standard_parser(verbose=True)
+
+    def command(self):
+        logging.config.fileConfig(self.path_to_ini_file)
+        from pylons import config
+
+        #get to remove repos !!
+        add_cache(config)
+        engine = engine_from_config(config, 'sqlalchemy.db1.')
+        init_model(engine)
+
+        repo_update_list = map(string.strip,
+                               self.options.repo_update_list.split(',')) \
+                               if self.options.repo_update_list else None
+
+        if repo_update_list:
+            repo_list = Repository.query().filter(Repository.repo_name.in_(repo_update_list))
+        else:
+            repo_list = Repository.getAll()
+        for repo in repo_list:
+            last_change = repo.scm_instance.last_change
+            repo.update_last_change(last_change)
+
+    def update_parser(self):
+        self.parser.add_option('--update-only',
+                          action='store',
+                          dest='repo_update_list',
+                          help="Specifies a comma separated list of repositores "
+                                "to update last commit info for. OPTIONAL",
+                          )
--- a/rhodecode/lib/utils.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/utils.py	Thu Dec 13 22:54:21 2012 +0100
@@ -32,6 +32,8 @@
 import beaker
 import tarfile
 import shutil
+import decorator
+import warnings
 from os.path import abspath
 from os.path import dirname as dn, join as jn
 
@@ -132,7 +134,7 @@
 
     try:
         if hasattr(user, 'user_id'):
-            user_obj = user
+            user_obj = User.get(user.user_id)
         elif isinstance(user, basestring):
             user_obj = User.get_by_username(user)
         else:
@@ -150,6 +152,7 @@
 
         user_log = UserLog()
         user_log.user_id = user_obj.user_id
+        user_log.username = user_obj.username
         user_log.action = safe_unicode(action)
 
         user_log.repository = repo_obj
@@ -307,7 +310,7 @@
         for section in ui_sections:
             for k, v in cfg.items(section):
                 log.debug('settings ui from file[%s]%s:%s' % (section, k, v))
-                baseui.setconfig(section, k, v)
+                baseui.setconfig(safe_str(section), safe_str(k), safe_str(v))
 
     elif read_from == 'db':
         sa = meta.Session()
@@ -320,11 +323,13 @@
             if ui_.ui_active:
                 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section,
                           ui_.ui_key, ui_.ui_value)
-                baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
+                baseui.setconfig(safe_str(ui_.ui_section), safe_str(ui_.ui_key),
+                                 safe_str(ui_.ui_value))
             if ui_.ui_key == 'push_ssl':
                 # force set push_ssl requirement to False, rhodecode
                 # handles that
-                baseui.setconfig(ui_.ui_section, ui_.ui_key, False)
+                baseui.setconfig(safe_str(ui_.ui_section), safe_str(ui_.ui_key),
+                                 False)
         if clear_session:
             meta.Session.remove()
     return baseui
@@ -446,8 +451,10 @@
         # during starting install all cache keys for all repositories in the
         # system, this will register all repos and multiple instances
         key, _prefix, _org_key = CacheInvalidation._get_key(name)
-        log.debug("Creating a cache key for %s instance_id:`%s`" % (name, _prefix))
-        CacheInvalidation._get_or_create_key(key, _prefix, _org_key, commit=False)
+        CacheInvalidation.invalidate(name)
+        log.debug("Creating a cache key for %s instance_id=>`%s`"
+                  % (name, _prefix or '-'))
+
     sa.commit()
     removed = []
     if remove_obsolete:
@@ -684,9 +691,12 @@
     from rhodecode import BACKENDS
 
     p = subprocess.Popen('git --version', shell=True,
-                         stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+                        stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     stdout, stderr = p.communicate()
     ver = (stdout.split(' ')[-1] or '').strip() or '0.0.0'
+    if len(ver.split('.')) > 3:
+        #StrictVersion needs to be only 3 element type
+        ver = '.'.join(ver.split('.')[:3])
     try:
         _ver = StrictVersion(ver)
     except:
@@ -695,7 +705,7 @@
 
     req_ver = '1.7.4'
     to_old_git = False
-    if  _ver <= StrictVersion(req_ver):
+    if  _ver < StrictVersion(req_ver):
         to_old_git = True
 
     if 'git' in BACKENDS:
@@ -707,3 +717,27 @@
                         'for the system to function properly. Make sure '
                         'its version is at least %s' % (ver, req_ver))
     return _ver
+
+
+@decorator.decorator
+def jsonify(func, *args, **kwargs):
+    """Action decorator that formats output for JSON
+
+    Given a function that will return content, this decorator will turn
+    the result into JSON, with a content-type of 'application/json' and
+    output it.
+
+    """
+    from pylons.decorators.util import get_pylons
+    from rhodecode.lib.ext_json import json
+    pylons = get_pylons(args)
+    pylons.response.headers['Content-Type'] = 'application/json; charset=utf-8'
+    data = func(*args, **kwargs)
+    if isinstance(data, (list, tuple)):
+        msg = "JSON responses with Array envelopes are susceptible to " \
+              "cross-site data leak attacks, see " \
+              "http://wiki.pylonshq.com/display/pylonsfaq/Warnings"
+        warnings.warn(msg, Warning, 2)
+        log.warning(msg)
+    log.debug("Returning JSON wrapped action output")
+    return json.dumps(data, encoding='utf-8')
\ No newline at end of file
--- a/rhodecode/lib/utils2.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/utils2.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,6 +26,8 @@
 import re
 import time
 import datetime
+import webob
+
 from pylons.i18n.translation import _, ungettext
 from rhodecode.lib.vcs.utils.lazy import LazyProperty
 
@@ -64,6 +66,7 @@
 
     return dict(d)
 
+
 def str2bool(_str):
     """
     returs True/False value from given string, it tries to translate the
@@ -81,6 +84,27 @@
     return _str in ('t', 'true', 'y', 'yes', 'on', '1')
 
 
+def aslist(obj, sep=None, strip=True):
+    """
+    Returns given string separated by sep as list
+
+    :param obj:
+    :param sep:
+    :param strip:
+    """
+    if isinstance(obj, (basestring)):
+        lst = obj.split(sep)
+        if strip:
+            lst = [v.strip() for v in lst]
+        return lst
+    elif isinstance(obj, (list, tuple)):
+        return obj
+    elif obj is None:
+        return []
+    else:
+        return [obj]
+
+
 def convert_line_endings(line, mode):
     """
     Converts a given line  "line end" accordingly to given mode
@@ -180,18 +204,23 @@
 
     if not from_encoding:
         import rhodecode
-        DEFAULT_ENCODING = rhodecode.CONFIG.get('default_encoding','utf8')
-        from_encoding = DEFAULT_ENCODING
+        DEFAULT_ENCODINGS = aslist(rhodecode.CONFIG.get('default_encoding',
+                                                        'utf8'), sep=',')
+        from_encoding = DEFAULT_ENCODINGS
+
+    if not isinstance(from_encoding, (list, tuple)):
+        from_encoding = [from_encoding]
 
     try:
         return unicode(str_)
     except UnicodeDecodeError:
         pass
 
-    try:
-        return unicode(str_, from_encoding)
-    except UnicodeDecodeError:
-        pass
+    for enc in from_encoding:
+        try:
+            return unicode(str_, enc)
+        except UnicodeDecodeError:
+            pass
 
     try:
         import chardet
@@ -200,7 +229,7 @@
             raise Exception()
         return str_.decode(encoding)
     except (ImportError, UnicodeDecodeError, Exception):
-        return unicode(str_, from_encoding, 'replace')
+        return unicode(str_, from_encoding[0], 'replace')
 
 
 def safe_str(unicode_, to_encoding=None):
@@ -224,13 +253,18 @@
 
     if not to_encoding:
         import rhodecode
-        DEFAULT_ENCODING = rhodecode.CONFIG.get('default_encoding','utf8')
-        to_encoding = DEFAULT_ENCODING
+        DEFAULT_ENCODINGS = aslist(rhodecode.CONFIG.get('default_encoding',
+                                                        'utf8'), sep=',')
+        to_encoding = DEFAULT_ENCODINGS
 
-    try:
-        return unicode_.encode(to_encoding)
-    except UnicodeEncodeError:
-        pass
+    if not isinstance(to_encoding, (list, tuple)):
+        to_encoding = [to_encoding]
+
+    for enc in to_encoding:
+        try:
+            return unicode_.encode(enc)
+        except UnicodeEncodeError:
+            pass
 
     try:
         import chardet
@@ -240,11 +274,23 @@
 
         return unicode_.encode(encoding)
     except (ImportError, UnicodeEncodeError):
-        return unicode_.encode(to_encoding, 'replace')
+        return unicode_.encode(to_encoding[0], 'replace')
 
     return safe_str
 
 
+def remove_suffix(s, suffix):
+    if s.endswith(suffix):
+        s = s[:-1 * len(suffix)]
+    return s
+
+
+def remove_prefix(s, prefix):
+    if s.startswith(prefix):
+        s = s[len(prefix):]
+    return s
+
+
 def engine_from_config(configuration, prefix='sqlalchemy.', **kwargs):
     """
     Custom engine_from_config functions that makes sure we use NullPool for
@@ -516,3 +562,8 @@
     if url.password:
         url.password = 'XXXXX'
     return str(url)
+
+
+def get_server_url(environ):
+    req = webob.Request(environ)
+    return req.host_url + req.script_name
--- a/rhodecode/lib/vcs/backends/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -30,7 +30,7 @@
     if path is None:
         path = abspath(os.path.curdir)
     try:
-        scm, path = get_scm(path, search_recursively=True)
+        scm, path = get_scm(path, search_up=True)
         path = abspath(path)
         alias = scm
     except VCSError:
--- a/rhodecode/lib/vcs/backends/base.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/base.py	Thu Dec 13 22:54:21 2012 +0100
@@ -372,6 +372,15 @@
     def __eq__(self, other):
         return self.raw_id == other.raw_id
 
+    def __json__(self):
+        return dict(
+            short_id=self.short_id,
+            raw_id=self.raw_id,
+            message=self.message,
+            date=self.date,
+            author=self.author,
+        )
+
     @LazyProperty
     def last(self):
         if self.repository is None:
@@ -386,6 +395,13 @@
         raise NotImplementedError
 
     @LazyProperty
+    def children(self):
+        """
+        Returns list of children changesets.
+        """
+        raise NotImplementedError
+
+    @LazyProperty
     def id(self):
         """
         Returns string identifying this changeset.
@@ -416,6 +432,30 @@
         raise NotImplementedError
 
     @LazyProperty
+    def commiter(self):
+        """
+        Returns Commiter for given commit
+        """
+
+        raise NotImplementedError
+
+    @LazyProperty
+    def commiter_name(self):
+        """
+        Returns Author name for given commit
+        """
+
+        return author_name(self.commiter)
+
+    @LazyProperty
+    def commiter_email(self):
+        """
+        Returns Author email address for given commit
+        """
+
+        return author_email(self.commiter)
+
+    @LazyProperty
     def author(self):
         """
         Returns Author for given commit
@@ -918,12 +958,12 @@
     """
 
     def __init__(self, cs='0' * 40, repo=None, requested_revision=None,
-                 alias=None):
+                 alias=None, revision=-1, message='', author='', date=''):
         self._empty_cs = cs
-        self.revision = -1
-        self.message = ''
-        self.author = ''
-        self.date = ''
+        self.revision = revision
+        self.message = message
+        self.author = author
+        self.date = date
         self.repository = repo
         self.requested_revision = requested_revision
         self.alias = alias
--- a/rhodecode/lib/vcs/backends/git/changeset.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/git/changeset.py	Thu Dec 13 22:54:21 2012 +0100
@@ -11,7 +11,8 @@
 from rhodecode.lib.vcs.exceptions import ImproperArchiveTypeError
 from rhodecode.lib.vcs.backends.base import BaseChangeset, EmptyChangeset
 from rhodecode.lib.vcs.nodes import FileNode, DirNode, NodeKind, RootNode, \
-    RemovedFileNode, SubModuleNode
+    RemovedFileNode, SubModuleNode, ChangedFileNodesGenerator,\
+    AddedFileNodesGenerator, RemovedFileNodesGenerator
 from rhodecode.lib.vcs.utils import safe_unicode
 from rhodecode.lib.vcs.utils import date_fromtimestamp
 from rhodecode.lib.vcs.utils.lazy import LazyProperty
@@ -40,19 +41,23 @@
 
         self._tree_id = commit.tree
         self._commiter_property = 'committer'
+        self._author_property = 'author'
         self._date_property = 'commit_time'
         self._date_tz_property = 'commit_timezone'
         self.revision = repository.revisions.index(revision)
 
         self.message = safe_unicode(commit.message)
-        #self.branch = None
-        self.tags = []
+
         self.nodes = {}
         self._paths = {}
 
     @LazyProperty
+    def commiter(self):
+        return safe_unicode(getattr(self._commit, self._commiter_property))
+
+    @LazyProperty
     def author(self):
-        return safe_unicode(getattr(self._commit, self._commiter_property))
+        return safe_unicode(getattr(self._commit, self._author_property))
 
     @LazyProperty
     def date(self):
@@ -71,6 +76,14 @@
         return self.changed, self.added, self.removed
 
     @LazyProperty
+    def tags(self):
+        _tags = []
+        for tname, tsha in self.repository.tags.iteritems():
+            if tsha == self.raw_id:
+                _tags.append(tname)
+        return _tags
+
+    @LazyProperty
     def branch(self):
 
         heads = self.repository._heads(reverse=False)
@@ -149,6 +162,13 @@
         elif isinstance(obj, objects.Tree):
             return NodeKind.DIR
 
+    def _get_filectx(self, path):
+        path = self._fix_path(path)
+        if self._get_kind(path) != NodeKind.FILE:
+            raise ChangesetError("File does not exist for revision %r at "
+                " %r" % (self.raw_id, path))
+        return path
+
     def _get_file_nodes(self):
         return chain(*(t[2] for t in self.walk()))
 
@@ -160,6 +180,21 @@
         return [self.repository.get_changeset(parent)
                 for parent in self._commit.parents]
 
+    @LazyProperty
+    def children(self):
+        """
+        Returns list of children changesets.
+        """
+        so, se = self.repository.run_git_command(
+            "rev-list --all --children | grep '^%s'" % self.raw_id
+        )
+
+        children = []
+        for l in so.splitlines():
+            childs = l.split(' ')[1:]
+            children.extend(childs)
+        return [self.repository.get_changeset(cs) for cs in children]
+
     def next(self, branch=None):
 
         if branch and self.branch != branch:
@@ -251,6 +286,8 @@
         which is generally not good. Should be replaced with algorithm
         iterating commits.
         """
+        self._get_filectx(path)
+
         cmd = 'log --pretty="format: %%H" -s -p %s -- "%s"' % (
                   self.id, path
                )
@@ -258,9 +295,24 @@
         ids = re.findall(r'[0-9a-fA-F]{40}', so)
         return [self.repository.get_changeset(id) for id in ids]
 
+    def get_file_history_2(self, path):
+        """
+        Returns history of file as reversed list of ``Changeset`` objects for
+        which file at given ``path`` has been modified.
+
+        """
+        self._get_filectx(path)
+        from dulwich.walk import Walker
+        include = [self.id]
+        walker = Walker(self.repository._repo.object_store, include,
+                        paths=[path], max_entries=1)
+        return [self.repository.get_changeset(sha)
+                for sha in (x.commit.id for x in walker)]
+
     def get_file_annotate(self, path):
         """
-        Returns a list of three element tuples with lineno,changeset and line
+        Returns a generator of four element tuples with
+            lineno, sha, changeset lazy loader and line
 
         TODO: This function now uses os underlying 'git' command which is
         generally not good. Should be replaced with algorithm iterating
@@ -272,12 +324,10 @@
         # -r sha ==> blames for the given revision
         so, se = self.repository.run_git_command(cmd)
 
-        annotate = []
         for i, blame_line in enumerate(so.split('\n')[:-1]):
             ln_no = i + 1
-            id, line = re.split(r' ', blame_line, 1)
-            annotate.append((ln_no, self.repository.get_changeset(id), line))
-        return annotate
+            sha, line = re.split(r' ', blame_line, 1)
+            yield (ln_no, sha, lambda: self.repository.get_changeset(sha), line)
 
     def fill_archive(self, stream=None, kind='tgz', prefix=None,
                      subrepos=False):
@@ -468,7 +518,8 @@
         """
         if not self.parents:
             return list(self._get_file_nodes())
-        return [self.get_node(path) for path in self._get_paths_for_status('added')]
+        return AddedFileNodesGenerator([n for n in
+                                self._get_paths_for_status('added')], self)
 
     @LazyProperty
     def changed(self):
@@ -477,7 +528,8 @@
         """
         if not self.parents:
             return []
-        return [self.get_node(path) for path in self._get_paths_for_status('modified')]
+        return ChangedFileNodesGenerator([n for n in
+                                self._get_paths_for_status('modified')], self)
 
     @LazyProperty
     def removed(self):
@@ -486,4 +538,5 @@
         """
         if not self.parents:
             return []
-        return [RemovedFileNode(path) for path in self._get_paths_for_status('deleted')]
+        return RemovedFileNodesGenerator([n for n in
+                                self._get_paths_for_status('deleted')], self)
--- a/rhodecode/lib/vcs/backends/git/inmemory.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/git/inmemory.py	Thu Dec 13 22:54:21 2012 +0100
@@ -154,7 +154,6 @@
 
         # Update vcs repository object & recreate dulwich repo
         self.repository.revisions.append(commit.id)
-        self.repository._repo = Repo(self.repository.path)
         # invalidate parsed refs after commit
         self.repository._parsed_refs = self.repository._get_parsed_refs()
         tip = self.repository.get_changeset()
--- a/rhodecode/lib/vcs/backends/git/repository.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/git/repository.py	Thu Dec 13 22:54:21 2012 +0100
@@ -18,7 +18,7 @@
 import urllib
 import urllib2
 from dulwich.repo import Repo, NotGitRepository
-#from dulwich.config import ConfigFile
+from dulwich.objects import Tag
 from string import Template
 from subprocess import Popen, PIPE
 from rhodecode.lib.vcs.backends.base import BaseRepository
@@ -29,7 +29,7 @@
 from rhodecode.lib.vcs.exceptions import TagAlreadyExistError
 from rhodecode.lib.vcs.exceptions import TagDoesNotExistError
 from rhodecode.lib.vcs.utils import safe_unicode, makedate, date_fromtimestamp
-from rhodecode.lib.vcs.utils.lazy import LazyProperty
+from rhodecode.lib.vcs.utils.lazy import LazyProperty, ThreadLocalLazyProperty
 from rhodecode.lib.vcs.utils.ordered_dict import OrderedDict
 from rhodecode.lib.vcs.utils.paths import abspath
 from rhodecode.lib.vcs.utils.paths import get_user_home
@@ -54,7 +54,18 @@
                  update_after_clone=False, bare=False):
 
         self.path = abspath(repo_path)
-        self._repo = self._get_repo(create, src_url, update_after_clone, bare)
+        repo = self._get_repo(create, src_url, update_after_clone, bare)
+        self.bare = repo.bare
+
+        self._config_files = [
+            bare and abspath(self.path, 'config')
+                     or abspath(self.path, '.git', 'config'),
+            abspath(get_user_home(), '.gitconfig'),
+        ]
+
+    @ThreadLocalLazyProperty
+    def _repo(self):
+        repo = Repo(self.path)
         #temporary set that to now at later we will move it to constructor
         baseui = None
         if baseui is None:
@@ -62,19 +73,15 @@
             baseui = ui()
         # patch the instance of GitRepo with an "FAKE" ui object to add
         # compatibility layer with Mercurial
-        setattr(self._repo, 'ui', baseui)
-
-        try:
-            self.head = self._repo.head()
-        except KeyError:
-            self.head = None
+        setattr(repo, 'ui', baseui)
+        return repo
 
-        self._config_files = [
-            bare and abspath(self.path, 'config') or abspath(self.path, '.git',
-                'config'),
-            abspath(get_user_home(), '.gitconfig'),
-        ]
-        self.bare = self._repo.bare
+    @property
+    def head(self):
+        try:
+            return self._repo.head()
+        except KeyError:
+            return None
 
     @LazyProperty
     def revisions(self):
@@ -401,6 +408,10 @@
             for k, type_ in keys:
                 if ref.startswith(k):
                     _key = ref[len(k):]
+                    if type_ == 'T':
+                        obj = self._repo.get_object(sha)
+                        if isinstance(obj, Tag):
+                            sha = self._repo.get_object(sha).object[1]
                     _refs[_key] = [sha, type_]
                     break
         return _refs
@@ -516,7 +527,7 @@
         :param context: How many lines before/after changed lines should be
           shown. Defaults to ``3``.
         """
-        flags = ['-U%s' % context]
+        flags = ['-U%s' % context, '--full-index', '--binary', '-p', '-M', '--abbrev=40']
         if ignore_whitespace:
             flags.append('-w')
 
@@ -536,6 +547,7 @@
 
         if path:
             cmd += ' -- "%s"' % path
+
         stdout, stderr = self.run_git_command(cmd)
         # If we used 'show' command, strip first few lines (until actual diff
         # starts)
--- a/rhodecode/lib/vcs/backends/hg/changeset.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/hg/changeset.py	Thu Dec 13 22:54:21 2012 +0100
@@ -44,6 +44,10 @@
         return safe_unicode(self._ctx.description())
 
     @LazyProperty
+    def commiter(self):
+        return safe_unicode(self.auhtor)
+
+    @LazyProperty
     def author(self):
         return safe_unicode(self._ctx.user())
 
@@ -95,6 +99,14 @@
         return [self.repository.get_changeset(parent.rev())
                 for parent in self._ctx.parents() if parent.rev() >= 0]
 
+    @LazyProperty
+    def children(self):
+        """
+        Returns list of children changesets.
+        """
+        return [self.repository.get_changeset(child.rev())
+                for child in self._ctx.children() if child.rev() >= 0]
+
     def next(self, branch=None):
 
         if branch and self.branch != branch:
@@ -169,7 +181,7 @@
         path = self._fix_path(path)
         if self._get_kind(path) != NodeKind.FILE:
             raise ChangesetError("File does not exist for revision %r at "
-                " %r" % (self.revision, path))
+                " %r" % (self.raw_id, path))
         return self._ctx.filectx(path)
 
     def _extract_submodules(self):
@@ -223,17 +235,15 @@
 
     def get_file_annotate(self, path):
         """
-        Returns a list of three element tuples with lineno,changeset and line
+        Returns a generator of four element tuples with
+            lineno, sha, changeset lazy loader and line
         """
+
         fctx = self._get_filectx(path)
-        annotate = []
         for i, annotate_data in enumerate(fctx.annotate()):
             ln_no = i + 1
-            annotate.append((ln_no, self.repository\
-                             .get_changeset(hex(annotate_data[0].node())),
-                             annotate_data[1],))
-
-        return annotate
+            sha = hex(annotate_data[0].node())
+            yield (ln_no, sha, lambda: self.repository.get_changeset(sha), annotate_data[1],)
 
     def fill_archive(self, stream=None, kind='tgz', prefix=None,
                      subrepos=False):
--- a/rhodecode/lib/vcs/backends/hg/repository.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/backends/hg/repository.py	Thu Dec 13 22:54:21 2012 +0100
@@ -242,8 +242,11 @@
         if rev1 != self.EMPTY_CHANGESET:
             self.get_changeset(rev1)
         self.get_changeset(rev2)
+        if path:
+            file_filter = match(self.path, '', [path])
+        else:
+            file_filter = None
 
-        file_filter = match(self.path, '', [path])
         return ''.join(patch.diff(self._repo, rev1, rev2, match=file_filter,
                           opts=diffopts(git=True,
                                         ignorews=ignore_whitespace,
--- a/rhodecode/lib/vcs/nodes.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/nodes.py	Thu Dec 13 22:54:21 2012 +0100
@@ -276,16 +276,20 @@
             mode = self._mode
         return mode
 
+    def _get_content(self):
+        if self.changeset:
+            content = self.changeset.get_file_content(self.path)
+        else:
+            content = self._content
+        return content
+
     @property
     def content(self):
         """
         Returns lazily content of the FileNode. If possible, would try to
         decode content from UTF-8.
         """
-        if self.changeset:
-            content = self.changeset.get_file_content(self.path)
-        else:
-            content = self._content
+        content = self._get_content()
 
         if bool(content and '\0' in content):
             return content
@@ -349,6 +353,7 @@
 
     @LazyProperty
     def mimetype_main(self):
+        return ['', '']
         return self.mimetype.split('/')[0]
 
     @LazyProperty
@@ -406,7 +411,7 @@
         """
         Returns True if file has binary content.
         """
-        _bin = '\0' in self.content
+        _bin = '\0' in self._get_content()
         return _bin
 
     @LazyProperty
--- a/rhodecode/lib/vcs/utils/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/utils/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -38,12 +38,12 @@
     :rtype: unicode
     :returns: unicode object
     """
+    from rhodecode.lib.utils2 import safe_unicode
+    return safe_unicode(str_, from_encoding)
+
     if isinstance(str_, unicode):
         return str_
-    if not from_encoding:
-        import rhodecode
-        DEFAULT_ENCODING = rhodecode.CONFIG.get('default_encoding', 'utf8')
-        from_encoding = DEFAULT_ENCODING
+
     try:
         return unicode(str_)
     except UnicodeDecodeError:
@@ -75,13 +75,12 @@
     :rtype: str
     :returns: str object
     """
+    from rhodecode.lib.utils2 import safe_str
+    return safe_str(unicode_, to_encoding)
 
     if isinstance(unicode_, str):
         return unicode_
-    if not to_encoding:
-        import rhodecode
-        DEFAULT_ENCODING = rhodecode.CONFIG.get('default_encoding', 'utf8')
-        to_encoding = DEFAULT_ENCODING
+
     try:
         return unicode_.encode(to_encoding)
     except UnicodeEncodeError:
--- a/rhodecode/lib/vcs/utils/helpers.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/utils/helpers.py	Thu Dec 13 22:54:21 2012 +0100
@@ -15,14 +15,14 @@
 ALIASES = ['hg', 'git']
 
 
-def get_scm(path, search_recursively=False, explicit_alias=None):
+def get_scm(path, search_up=False, explicit_alias=None):
     """
     Returns one of alias from ``ALIASES`` (in order of precedence same as
     shortcuts given in ``ALIASES``) and top working dir path for the given
     argument. If no scm-specific directory is found or more than one scm is
     found at that directory, ``VCSError`` is raised.
 
-    :param search_recursively: if set to ``True``, this function would try to
+    :param search_up: if set to ``True``, this function would try to
       move up to parent directory every time no scm is recognized for the
       currently checked path. Default: ``False``.
     :param explicit_alias: can be one of available backend aliases, when given
@@ -37,7 +37,7 @@
         return [(scm, path) for scm in get_scms_for_path(path)]
 
     found_scms = get_scms(path)
-    while  not found_scms and search_recursively:
+    while not found_scms and search_up:
         newpath = abspath(path, '..')
         if newpath == path:
             break
@@ -78,6 +78,9 @@
         if os.path.isdir(dirname):
             result.append(key)
             continue
+        dirname = os.path.join(path, 'rm__.' + key)
+        if os.path.isdir(dirname):
+            return [None]
         # We still need to check if it's not bare repository as
         # bare repos don't have working directories
         try:
@@ -93,21 +96,6 @@
     return result
 
 
-def get_repo_paths(path):
-    """
-    Returns path's subdirectories which seems to be a repository.
-    """
-    repo_paths = []
-    dirnames = (os.path.abspath(dirname) for dirname in os.listdir(path))
-    for dirname in dirnames:
-        try:
-            get_scm(dirname)
-            repo_paths.append(dirname)
-        except VCSError:
-            pass
-    return repo_paths
-
-
 def run_command(cmd, *args):
     """
     Runs command on the system with given ``args``.
--- a/rhodecode/lib/vcs/utils/lazy.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/lib/vcs/utils/lazy.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,3 +26,20 @@
             return self
         result = obj.__dict__[self.__name__] = self._func(obj)
         return result
+
+import threading
+
+
+class ThreadLocalLazyProperty(LazyProperty):
+    """
+    Same as above but uses thread local dict for cache storage.
+    """
+
+    def __get__(self, obj, klass=None):
+        if obj is None:
+            return self
+        if not hasattr(obj, '__tl_dict__'):
+            obj.__tl_dict__ = threading.local().__dict__
+
+        result = obj.__tl_dict__[self.__name__] = self._func(obj)
+        return result
--- a/rhodecode/model/db.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/db.py	Thu Dec 13 22:54:21 2012 +0100
@@ -46,7 +46,7 @@
 from rhodecode.lib.vcs.utils.lazy import LazyProperty
 
 from rhodecode.lib.utils2 import str2bool, safe_str, get_changeset_safe, \
-    safe_unicode
+    safe_unicode, remove_suffix, remove_prefix
 from rhodecode.lib.compat import json
 from rhodecode.lib.caching_query import FromCache
 
@@ -118,11 +118,15 @@
 
     @classmethod
     def get_or_404(cls, id_):
-        if id_:
-            res = cls.query().get(id_)
-            if not res:
-                raise HTTPNotFound
-            return res
+        try:
+            id_ = int(id_)
+        except (TypeError, ValueError):
+            raise HTTPNotFound
+
+        res = cls.query().get(id_)
+        if not res:
+            raise HTTPNotFound
+        return res
 
     @classmethod
     def getAll(cls):
@@ -163,7 +167,11 @@
     @hybrid_property
     def app_settings_value(self):
         v = self._app_settings_value
-        if self.app_settings_name == 'ldap_active':
+        if self.app_settings_name in ["ldap_active",
+                                      "default_repo_enable_statistics",
+                                      "default_repo_enable_locking",
+                                      "default_repo_private",
+                                      "default_repo_enable_downloads"]:
             v = str2bool(v)
         return v
 
@@ -221,6 +229,19 @@
 
         return fd
 
+    @classmethod
+    def get_default_repo_settings(cls, cache=False, strip_prefix=False):
+        ret = cls.query()\
+                .filter(cls.app_settings_name.startswith('default_')).all()
+        fd = {}
+        for row in ret:
+            key = row.app_settings_name
+            if strip_prefix:
+                key = remove_prefix(key, prefix='default_')
+            fd.update({key: row.app_settings_value})
+
+        return fd
+
 
 class RhodeCodeUi(Base, BaseModel):
     __tablename__ = 'rhodecode_ui'
@@ -295,7 +316,7 @@
     DEFAULT_USER = 'default'
     DEFAULT_PERMISSIONS = [
         'hg.register.manual_activate', 'hg.create.repository',
-        'hg.fork.repository', 'repository.read'
+        'hg.fork.repository', 'repository.read', 'group.read'
     ]
     user_id = Column("user_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
     username = Column("username", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
@@ -310,11 +331,13 @@
     api_key = Column("api_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
     inherit_default_permissions = Column("inherit_default_permissions", Boolean(), nullable=False, unique=None, default=True)
 
-    user_log = relationship('UserLog', cascade='all')
+    user_log = relationship('UserLog')
     user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all')
 
     repositories = relationship('Repository')
     user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all')
+    followings = relationship('UserFollowing', primaryjoin='UserFollowing.user_id==User.user_id', cascade='all')
+
     repo_to_perm = relationship('UserRepoToPerm', primaryjoin='UserRepoToPerm.user_id==User.user_id', cascade='all')
     repo_group_to_perm = relationship('UserRepoGroupToPerm', primaryjoin='UserRepoGroupToPerm.user_id==User.user_id', cascade='all')
 
@@ -502,7 +525,8 @@
          'mysql_charset': 'utf8'},
     )
     user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
-    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
+    user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
+    username = Column("username", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
     repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True)
     repository_name = Column("repository_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
     user_ip = Column("user_ip", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
@@ -774,30 +798,8 @@
         """
         Creates an db based ui object for this repository
         """
-        from mercurial import ui
-        from mercurial import config
-        baseui = ui.ui()
-
-        #clean the baseui object
-        baseui._ocfg = config.config()
-        baseui._ucfg = config.config()
-        baseui._tcfg = config.config()
-
-        ret = RhodeCodeUi.query()\
-            .options(FromCache("sql_cache_short", "repository_repo_ui")).all()
-
-        hg_ui = ret
-        for ui_ in hg_ui:
-            if ui_.ui_active:
-                log.debug('settings ui from db[%s]%s:%s', ui_.ui_section,
-                          ui_.ui_key, ui_.ui_value)
-                baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
-            if ui_.ui_key == 'push_ssl':
-                # force set push_ssl requirement to False, rhodecode
-                # handles that
-                baseui.setconfig(ui_.ui_section, ui_.ui_key, False)
-
-        return baseui
+        from rhodecode.lib.utils import make_ui
+        return make_ui('db', clear_session=False)
 
     @classmethod
     def inject_ui(cls, repo, extras={}):
@@ -856,6 +858,10 @@
         Session().add(repo)
         Session().commit()
 
+    @property
+    def last_db_change(self):
+        return self.updated_on
+
     #==========================================================================
     # SCM PROPERTIES
     #==========================================================================
@@ -870,6 +876,15 @@
         cs = self.get_changeset(self.landing_rev) or self.get_changeset()
         return cs
 
+    def update_last_change(self, last_change=None):
+        if last_change is None:
+            last_change = datetime.datetime.now()
+        if self.updated_on is None or self.updated_on != last_change:
+            log.debug('updated repo %s with new date %s' % (self, last_change))
+            self.updated_on = last_change
+            Session().add(self)
+            Session().commit()
+
     @property
     def tip(self):
         return self.get_changeset('tip')
@@ -942,10 +957,14 @@
         """
         set a cache for invalidation for this instance
         """
-        CacheInvalidation.set_invalidate(self.repo_name)
+        CacheInvalidation.set_invalidate(repo_name=self.repo_name)
 
     @LazyProperty
     def scm_instance(self):
+        import rhodecode
+        full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache'))
+        if full_cache:
+            return self.scm_instance_cached()
         return self.__get_instance()
 
     def scm_instance_cached(self, cache_map=None):
@@ -1442,21 +1461,27 @@
         """
         import rhodecode
         prefix = ''
+        org_key = key
         iid = rhodecode.CONFIG.get('instance_id')
         if iid:
             prefix = iid
-        return "%s%s" % (prefix, key), prefix, key.rstrip('_README')
+
+        return "%s%s" % (prefix, key), prefix, org_key
 
     @classmethod
     def get_by_key(cls, key):
         return cls.query().filter(cls.cache_key == key).scalar()
 
     @classmethod
-    def _get_or_create_key(cls, key, prefix, org_key, commit=True):
+    def get_by_repo_name(cls, repo_name):
+        return cls.query().filter(cls.cache_args == repo_name).all()
+
+    @classmethod
+    def _get_or_create_key(cls, key, repo_name, commit=True):
         inv_obj = Session().query(cls).filter(cls.cache_key == key).scalar()
         if not inv_obj:
             try:
-                inv_obj = CacheInvalidation(key, org_key)
+                inv_obj = CacheInvalidation(key, repo_name)
                 Session().add(inv_obj)
                 if commit:
                     Session().commit()
@@ -1474,30 +1499,37 @@
 
         :param key:
         """
+        repo_name = key
+        repo_name = remove_suffix(repo_name, '_README')
+        repo_name = remove_suffix(repo_name, '_RSS')
+        repo_name = remove_suffix(repo_name, '_ATOM')
 
+        # adds instance prefix
         key, _prefix, _org_key = cls._get_key(key)
-        inv = cls._get_or_create_key(key, _prefix, _org_key)
+        inv = cls._get_or_create_key(key, repo_name)
 
         if inv and inv.cache_active is False:
             return inv
 
     @classmethod
-    def set_invalidate(cls, key):
+    def set_invalidate(cls, key=None, repo_name=None):
         """
-        Mark this Cache key for invalidation
+        Mark this Cache key for invalidation, either by key or whole
+        cache sets based on repo_name
 
         :param key:
         """
+        if key:
+            key, _prefix, _org_key = cls._get_key(key)
+            inv_objs = Session().query(cls).filter(cls.cache_key == key).all()
+        elif repo_name:
+            inv_objs = Session().query(cls).filter(cls.cache_args == repo_name).all()
 
-        key, _prefix, _org_key = cls._get_key(key)
-        inv_objs = Session().query(cls).filter(cls.cache_args == _org_key).all()
-        log.debug('marking %s key[s] %s for invalidation' % (len(inv_objs),
-                                                             _org_key))
+        log.debug('marking %s key[s] for invalidation based on key=%s,repo_name=%s'
+                  % (len(inv_objs), key, repo_name))
         try:
             for inv_obj in inv_objs:
-                if inv_obj:
-                    inv_obj.cache_active = False
-
+                inv_obj.cache_active = False
                 Session().add(inv_obj)
             Session().commit()
         except Exception:
--- a/rhodecode/model/forms.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/forms.py	Thu Dec 13 22:54:21 2012 +0100
@@ -176,16 +176,17 @@
         filter_extra_fields = False
         repo_name = All(v.UnicodeString(strip=True, min=1, not_empty=True),
                         v.SlugifyName())
-        clone_uri = All(v.UnicodeString(strip=True, min=1, not_empty=False))
         repo_group = All(v.CanWriteGroup(),
                          v.OneOf(repo_groups, hideList=True))
         repo_type = v.OneOf(supported_backends)
-        description = v.UnicodeString(strip=True, min=1, not_empty=False)
-        private = v.StringBoolean(if_missing=False)
-        enable_statistics = v.StringBoolean(if_missing=False)
-        enable_downloads = v.StringBoolean(if_missing=False)
-        enable_locking = v.StringBoolean(if_missing=False)
-        landing_rev = v.OneOf(landing_revs, hideList=True)
+        repo_description = v.UnicodeString(strip=True, min=1, not_empty=False)
+        repo_private = v.StringBoolean(if_missing=False)
+        repo_landing_rev = v.OneOf(landing_revs, hideList=True)
+        clone_uri = All(v.UnicodeString(strip=True, min=1, not_empty=False))
+
+        repo_enable_statistics = v.StringBoolean(if_missing=False)
+        repo_enable_downloads = v.StringBoolean(if_missing=False)
+        repo_enable_locking = v.StringBoolean(if_missing=False)
 
         if edit:
             #this is repo owner
@@ -197,6 +198,27 @@
     return _RepoForm
 
 
+def RepoSettingsForm(edit=False, old_data={}, supported_backends=BACKENDS.keys(),
+                     repo_groups=[], landing_revs=[]):
+    class _RepoForm(formencode.Schema):
+        allow_extra_fields = True
+        filter_extra_fields = False
+        repo_name = All(v.UnicodeString(strip=True, min=1, not_empty=True),
+                        v.SlugifyName())
+        repo_group = All(v.CanWriteGroup(),
+                         v.OneOf(repo_groups, hideList=True))
+        repo_description = v.UnicodeString(strip=True, min=1, not_empty=False)
+        repo_private = v.StringBoolean(if_missing=False)
+        repo_landing_rev = v.OneOf(landing_revs, hideList=True)
+        clone_uri = All(v.UnicodeString(strip=True, min=1, not_empty=False))
+
+        chained_validators = [v.ValidCloneUri(),
+                              v.ValidRepoName(edit, old_data),
+                              v.ValidPerms(),
+                              v.ValidSettings()]
+    return _RepoForm
+
+
 def RepoForkForm(edit=False, old_data={}, supported_backends=BACKENDS.keys(),
                  repo_groups=[], landing_revs=[]):
     class _RepoForkForm(formencode.Schema):
@@ -218,23 +240,6 @@
     return _RepoForkForm
 
 
-def RepoSettingsForm(edit=False, old_data={},
-                     supported_backends=BACKENDS.keys(), repo_groups=[],
-                     landing_revs=[]):
-    class _RepoForm(formencode.Schema):
-        allow_extra_fields = True
-        filter_extra_fields = False
-        repo_name = All(v.UnicodeString(strip=True, min=1, not_empty=True),
-                        v.SlugifyName())
-        description = v.UnicodeString(strip=True, min=1, not_empty=True)
-        repo_group = v.OneOf(repo_groups, hideList=True)
-        private = v.StringBoolean(if_missing=False)
-        landing_rev = v.OneOf(landing_revs, hideList=True)
-        chained_validators = [v.ValidRepoName(edit, old_data), v.ValidPerms(),
-                              v.ValidSettings()]
-    return _RepoForm
-
-
 def ApplicationSettingsForm():
     class _ApplicationSettingsForm(formencode.Schema):
         allow_extra_fields = True
@@ -254,6 +259,9 @@
         rhodecode_show_private_icon = v.StringBoolean(if_missing=False)
         rhodecode_stylify_metatags = v.StringBoolean(if_missing=False)
 
+        rhodecode_lightweight_dashboard = v.StringBoolean(if_missing=False)
+        rhodecode_lightweight_journal = v.StringBoolean(if_missing=False)
+
     return _ApplicationVisualisationForm
 
 
@@ -278,14 +286,16 @@
     return _ApplicationUiSettingsForm
 
 
-def DefaultPermissionsForm(perms_choices, register_choices, create_choices,
-                           fork_choices):
+def DefaultPermissionsForm(repo_perms_choices, group_perms_choices,
+                           register_choices, create_choices, fork_choices):
     class _DefaultPermissionsForm(formencode.Schema):
         allow_extra_fields = True
         filter_extra_fields = True
-        overwrite_default = v.StringBoolean(if_missing=False)
+        overwrite_default_repo = v.StringBoolean(if_missing=False)
+        overwrite_default_group = v.StringBoolean(if_missing=False)
         anonymous = v.StringBoolean(if_missing=False)
-        default_perm = v.OneOf(perms_choices)
+        default_repo_perm = v.OneOf(repo_perms_choices)
+        default_group_perm = v.OneOf(group_perms_choices)
         default_register = v.OneOf(register_choices)
         default_create = v.OneOf(create_choices)
         default_fork = v.OneOf(fork_choices)
@@ -293,6 +303,19 @@
     return _DefaultPermissionsForm
 
 
+def DefaultsForm(edit=False, old_data={}, supported_backends=BACKENDS.keys()):
+    class _DefaultsForm(formencode.Schema):
+        allow_extra_fields = True
+        filter_extra_fields = True
+        default_repo_type = v.OneOf(supported_backends)
+        default_repo_private = v.StringBoolean(if_missing=False)
+        default_repo_enable_statistics = v.StringBoolean(if_missing=False)
+        default_repo_enable_downloads = v.StringBoolean(if_missing=False)
+        default_repo_enable_locking = v.StringBoolean(if_missing=False)
+
+    return _DefaultsForm
+
+
 def LdapSettingsForm(tls_reqcert_choices, search_scope_choices,
                      tls_kind_choices):
     class _LdapSettingsForm(formencode.Schema):
--- a/rhodecode/model/notification.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/notification.py	Thu Dec 13 22:54:21 2012 +0100
@@ -217,16 +217,16 @@
         #alias
         _n = notification
         _map = {
-            _n.TYPE_CHANGESET_COMMENT: _('commented on commit'),
-            _n.TYPE_MESSAGE: _('sent message'),
-            _n.TYPE_MENTION: _('mentioned you'),
-            _n.TYPE_REGISTRATION: _('registered in RhodeCode'),
-            _n.TYPE_PULL_REQUEST: _('opened new pull request'),
-            _n.TYPE_PULL_REQUEST_COMMENT: _('commented on pull request')
+            _n.TYPE_CHANGESET_COMMENT: _('commented on commit at %(when)s'),
+            _n.TYPE_MESSAGE: _('sent message at %(when)s'),
+            _n.TYPE_MENTION: _('mentioned you at %(when)s'),
+            _n.TYPE_REGISTRATION: _('registered in RhodeCode at %(when)s'),
+            _n.TYPE_PULL_REQUEST: _('opened new pull request at %(when)s'),
+            _n.TYPE_PULL_REQUEST_COMMENT: _('commented on pull request at %(when)s')
         }
 
         # action == _map string
-        tmpl = "%(user)s %(action)s at %(when)s"
+        tmpl = "%(user)s %(action)s "
         if show_age:
             when = h.age(notification.created_on)
         else:
@@ -234,9 +234,9 @@
 
         data = dict(
             user=notification.created_by_user.username,
-            action=_map[notification.type_], when=when,
+            action=_map[notification.type_]
         )
-        return tmpl % data
+        return (tmpl % data) % {'when': when}
 
 
 class EmailNotificationModel(BaseModel):
--- a/rhodecode/model/permission.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/permission.py	Thu Dec 13 22:54:21 2012 +0100
@@ -78,16 +78,21 @@
         u2p = self.sa.query(UserToPerm).filter(UserToPerm.user ==
                                                perm_user).all()
         if len(u2p) != len(User.DEFAULT_PERMISSIONS):
-            raise Exception('Defined: %s should be 4  permissions for default'
+            raise Exception('Defined: %s should be %s  permissions for default'
                             ' user. This should not happen please verify'
-                            ' your database' % len(u2p))
+                            ' your database' % (len(u2p), len(User.DEFAULT_PERMISSIONS)))
 
         try:
             # stage 1 change defaults
             for p in u2p:
                 if p.permission.permission_name.startswith('repository.'):
                     p.permission = self.get_permission_by_name(
-                                       form_result['default_perm'])
+                                       form_result['default_repo_perm'])
+                    self.sa.add(p)
+
+                elif p.permission.permission_name.startswith('group.'):
+                    p.permission = self.get_permission_by_name(
+                                       form_result['default_group_perm'])
                     self.sa.add(p)
 
                 elif p.permission.permission_name.startswith('hg.register.'):
@@ -105,9 +110,9 @@
                                         form_result['default_fork'])
                     self.sa.add(p)
 
-            _def_name = form_result['default_perm'].split('repository.')[-1]
             #stage 2 update all default permissions for repos if checked
-            if form_result['overwrite_default'] == True:
+            if form_result['overwrite_default_repo'] == True:
+                _def_name = form_result['default_repo_perm'].split('repository.')[-1]
                 _def = self.get_permission_by_name('repository.' + _def_name)
                 # repos
                 for r2p in self.sa.query(UserRepoToPerm)\
@@ -115,6 +120,9 @@
                                .all():
                     r2p.permission = _def
                     self.sa.add(r2p)
+
+            if form_result['overwrite_default_group'] == True:
+                _def_name = form_result['default_group_perm'].split('group.')[-1]
                 # groups
                 _def = self.get_permission_by_name('group.' + _def_name)
                 for g2p in self.sa.query(UserRepoGroupToPerm)\
--- a/rhodecode/model/pull_request.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/pull_request.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,6 +26,7 @@
 import logging
 import binascii
 import datetime
+import re
 
 from pylons.i18n.translation import _
 
@@ -144,52 +145,71 @@
         pull_request.updated_on = datetime.datetime.now()
         self.sa.add(pull_request)
 
-    def _get_changesets(self, org_repo, org_ref, other_repo, other_ref,
+    def _get_changesets(self, alias, org_repo, org_ref, other_repo, other_ref,
                         discovery_data):
         """
         Returns a list of changesets that are incoming from org_repo@org_ref
         to other_repo@other_ref
 
         :param org_repo:
-        :type org_repo:
         :param org_ref:
-        :type org_ref:
         :param other_repo:
-        :type other_repo:
         :param other_ref:
-        :type other_ref:
         :param tmp:
-        :type tmp:
         """
+
         changesets = []
         #case two independent repos
         common, incoming, rheads = discovery_data
-        if org_repo != other_repo and incoming:
+        if org_repo != other_repo:
+            revs = [
+                org_repo._repo.lookup(org_ref[1]),
+                org_repo._repo.lookup(other_ref[1]),
+            ]
+
             obj = findcommonoutgoing(org_repo._repo,
                         localrepo.locallegacypeer(other_repo._repo.local()),
+                        revs,
                         force=True)
             revs = obj.missing
 
-            for cs in reversed(map(binascii.hexlify, revs)):
-                changesets.append(org_repo.get_changeset(cs))
+            for cs in map(binascii.hexlify, revs):
+                _cs = org_repo.get_changeset(cs)
+                changesets.append(_cs)
+            # in case we have revisions filter out the ones not in given range
+            if org_ref[0] == 'rev' and other_ref[0] == 'rev':
+                revs = [x.raw_id for x in changesets]
+                start = org_ref[1]
+                stop = other_ref[1]
+                changesets = changesets[revs.index(start):revs.index(stop) + 1]
         else:
-            _revset_predicates = {
-                    'branch': 'branch',
-                    'book': 'bookmark',
-                    'tag': 'tag',
-                    'rev': 'id',
-                }
+            #no remote compare do it on the same repository
+            if alias == 'hg':
+                _revset_predicates = {
+                        'branch': 'branch',
+                        'book': 'bookmark',
+                        'tag': 'tag',
+                        'rev': 'id',
+                    }
 
-            revs = [
-                "ancestors(%s('%s')) and not ancestors(%s('%s'))" % (
-                    _revset_predicates[org_ref[0]], org_ref[1],
-                    _revset_predicates[other_ref[0]], other_ref[1]
-               )
-            ]
+                revs = [
+                    "ancestors(%s('%s')) and not ancestors(%s('%s'))" % (
+                        _revset_predicates[other_ref[0]], other_ref[1],
+                        _revset_predicates[org_ref[0]], org_ref[1],
+                   )
+                ]
 
-            out = scmutil.revrange(org_repo._repo, revs)
-            for cs in reversed(out):
-                changesets.append(org_repo.get_changeset(cs))
+                out = scmutil.revrange(org_repo._repo, revs)
+                for cs in (out):
+                    changesets.append(org_repo.get_changeset(cs))
+            elif alias == 'git':
+                so, se = org_repo.run_git_command(
+                    'log --reverse --pretty="format: %%H" -s -p %s..%s' % (org_ref[1],
+                                                                     other_ref[1])
+                )
+                ids = re.findall(r'[0-9a-fA-F]{40}', so)
+                for cs in (ids):
+                    changesets.append(org_repo.get_changeset(cs))
 
         return changesets
 
@@ -223,15 +243,16 @@
         tmp = discovery.findcommonincoming(
                   repo=_other_repo,  # other_repo we check for incoming
                   remote=org_peer,  # org_repo source for incoming
-                  heads=[_other_repo[other_rev].node(),
-                         _org_repo[org_rev].node()],
+#                  heads=[_other_repo[other_rev].node(),
+#                         _org_repo[org_rev].node()],
                   force=True
         )
         return tmp
 
     def get_compare_data(self, org_repo, org_ref, other_repo, other_ref):
         """
-        Returns a tuple of incomming changesets, and discoverydata cache
+        Returns a tuple of incomming changesets, and discoverydata cache for
+        mercurial repositories
 
         :param org_repo:
         :type org_repo:
@@ -249,14 +270,16 @@
         if len(other_ref) != 2 or not isinstance(org_ref, (list, tuple)):
             raise Exception('other_ref must be a two element list/tuple')
 
-        discovery_data = self._get_discovery(org_repo.scm_instance,
-                                           org_ref,
-                                           other_repo.scm_instance,
-                                           other_ref)
-        cs_ranges = self._get_changesets(org_repo.scm_instance,
-                                         org_ref,
-                                         other_repo.scm_instance,
-                                         other_ref,
+        org_repo_scm = org_repo.scm_instance
+        other_repo_scm = other_repo.scm_instance
+
+        alias = org_repo.scm_instance.alias
+        discovery_data = [None, None, None]
+        if alias == 'hg':
+            discovery_data = self._get_discovery(org_repo_scm, org_ref,
+                                               other_repo_scm, other_ref)
+        cs_ranges = self._get_changesets(alias,
+                                         org_repo_scm, org_ref,
+                                         other_repo_scm, other_ref,
                                          discovery_data)
-
         return cs_ranges, discovery_data
--- a/rhodecode/model/repo.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/repo.py	Thu Dec 13 22:54:21 2012 +0100
@@ -31,13 +31,15 @@
 
 from rhodecode.lib.vcs.backends import get_backend
 from rhodecode.lib.compat import json
-from rhodecode.lib.utils2 import LazyProperty, safe_str, safe_unicode
+from rhodecode.lib.utils2 import LazyProperty, safe_str, safe_unicode,\
+    remove_prefix
 from rhodecode.lib.caching_query import FromCache
 from rhodecode.lib.hooks import log_create_repository, log_delete_repository
 
 from rhodecode.model import BaseModel
 from rhodecode.model.db import Repository, UserRepoToPerm, User, Permission, \
-    Statistics, UsersGroup, UsersGroupRepoToPerm, RhodeCodeUi, RepoGroup
+    Statistics, UsersGroup, UsersGroupRepoToPerm, RhodeCodeUi, RepoGroup,\
+    RhodeCodeSetting
 from rhodecode.lib import helpers as h
 
 
@@ -130,6 +132,16 @@
         defaults['repo_group'] = getattr(group[-1] if group else None,
                                          'group_id', None)
 
+        for strip, k in [(0, 'repo_type'), (1, 'repo_enable_downloads'),
+                  (1, 'repo_description'), (1, 'repo_enable_locking'),
+                  (1, 'repo_landing_rev'), (0, 'clone_uri'),
+                  (1, 'repo_private'), (1, 'repo_enable_statistics')]:
+            attr = k
+            if strip:
+                attr = remove_prefix(k, 'repo_')
+
+            defaults[k] = defaults[attr]
+
         # fill owner
         if repo_info.user:
             defaults.update({'user': repo_info.user.username})
@@ -150,12 +162,12 @@
 
         return defaults
 
-    def update(self, repo_name, form_data):
+    def update(self, org_repo_name, **kwargs):
         try:
-            cur_repo = self.get_by_repo_name(repo_name, cache=False)
+            cur_repo = self.get_by_repo_name(org_repo_name, cache=False)
 
             # update permissions
-            for member, perm, member_type in form_data['perms_updates']:
+            for member, perm, member_type in kwargs['perms_updates']:
                 if member_type == 'user':
                     # this updates existing one
                     RepoModel().grant_user_permission(
@@ -166,7 +178,7 @@
                         repo=cur_repo, group_name=member, perm=perm
                     )
             # set new permissions
-            for member, perm, member_type in form_data['perms_new']:
+            for member, perm, member_type in kwargs['perms_new']:
                 if member_type == 'user':
                     RepoModel().grant_user_permission(
                         repo=cur_repo, user=member, perm=perm
@@ -176,26 +188,30 @@
                         repo=cur_repo, group_name=member, perm=perm
                     )
 
-            # update current repo
-            for k, v in form_data.items():
-                if k == 'user':
-                    cur_repo.user = User.get_by_username(v)
-                elif k == 'repo_name':
-                    pass
-                elif k == 'repo_group':
-                    cur_repo.group = RepoGroup.get(v)
+            if 'user' in kwargs:
+                cur_repo.user = User.get_by_username(kwargs['user'])
+
+            if 'repo_group' in kwargs:
+                cur_repo.group = RepoGroup.get(kwargs['repo_group'])
 
-                else:
-                    setattr(cur_repo, k, v)
+            for strip, k in [(0, 'repo_type'), (1, 'repo_enable_downloads'),
+                      (1, 'repo_description'), (1, 'repo_enable_locking'),
+                      (1, 'repo_landing_rev'), (0, 'clone_uri'),
+                      (1, 'repo_private'), (1, 'repo_enable_statistics')]:
+                if k in kwargs:
+                    val = kwargs[k]
+                    if strip:
+                        k = remove_prefix(k, 'repo_')
+                    setattr(cur_repo, k, val)
 
-            new_name = cur_repo.get_new_name(form_data['repo_name'])
+            new_name = cur_repo.get_new_name(kwargs['repo_name'])
             cur_repo.repo_name = new_name
 
             self.sa.add(cur_repo)
 
-            if repo_name != new_name:
+            if org_repo_name != new_name:
                 # rename repository
-                self.__rename_repo(old=repo_name, new=new_name)
+                self.__rename_repo(old=org_repo_name, new=new_name)
 
             return cur_repo
         except:
@@ -205,7 +221,8 @@
     def create_repo(self, repo_name, repo_type, description, owner,
                     private=False, clone_uri=None, repos_group=None,
                     landing_rev='tip', just_db=False, fork_of=None,
-                    copy_fork_permissions=False):
+                    copy_fork_permissions=False, enable_statistics=False,
+                    enable_locking=False, enable_downloads=False):
         """
         Create repository
 
@@ -234,6 +251,10 @@
             new_repo.clone_uri = clone_uri
             new_repo.landing_rev = landing_rev
 
+            new_repo.enable_statistics = enable_statistics
+            new_repo.enable_locking = enable_locking
+            new_repo.enable_downloads = enable_downloads
+
             if repos_group:
                 new_repo.enable_locking = repos_group.enable_locking
 
@@ -307,20 +328,27 @@
         :param just_db:
         :param fork:
         """
-
+        owner = cur_user
         repo_name = form_data['repo_name_full']
         repo_type = form_data['repo_type']
-        description = form_data['description']
-        owner = cur_user
-        private = form_data['private']
+        description = form_data['repo_description']
+        private = form_data['repo_private']
         clone_uri = form_data.get('clone_uri')
         repos_group = form_data['repo_group']
-        landing_rev = form_data['landing_rev']
+        landing_rev = form_data['repo_landing_rev']
         copy_fork_permissions = form_data.get('copy_permissions')
         fork_of = form_data.get('fork_parent_id')
+
+        ##defaults
+        defs = RhodeCodeSetting.get_default_repo_settings(strip_prefix=True)
+        enable_statistics = defs.get('repo_enable_statistic')
+        enable_locking = defs.get('repo_enable_locking')
+        enable_downloads = defs.get('repo_enable_downloads')
+
         return self.create_repo(
             repo_name, repo_type, description, owner, private, clone_uri,
-            repos_group, landing_rev, just_db, fork_of, copy_fork_permissions
+            repos_group, landing_rev, just_db, fork_of, copy_fork_permissions,
+            enable_statistics, enable_locking, enable_downloads
         )
 
     def create_fork(self, form_data, cur_user):
@@ -544,5 +572,8 @@
         _now = datetime.now()
         _ms = str(_now.microsecond).rjust(6, '0')
         _d = 'rm__%s__%s' % (_now.strftime('%Y%m%d_%H%M%S_' + _ms),
-                             repo.repo_name)
+                             repo.just_name)
+        if repo.group:
+            args = repo.group.full_path_splitted + [_d]
+            _d = os.path.join(*args)
         shutil.move(rm_path, os.path.join(self.repos_path, _d))
--- a/rhodecode/model/repos_group.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/repos_group.py	Thu Dec 13 22:54:21 2012 +0100
@@ -27,6 +27,7 @@
 import logging
 import traceback
 import shutil
+import datetime
 
 from rhodecode.lib.utils2 import LazyProperty
 
@@ -126,12 +127,18 @@
         paths = os.sep.join(paths)
 
         rm_path = os.path.join(self.repos_path, paths)
+        log.info("Removing group %s" % (rm_path))
+        # delete only if that path really exists
         if os.path.isdir(rm_path):
-            # delete only if that path really exists
             if force_delete:
                 shutil.rmtree(rm_path)
             else:
-                os.rmdir(rm_path)  # this raises an exception when there are still objects inside
+                #archive that group`
+                _now = datetime.datetime.now()
+                _ms = str(_now.microsecond).rjust(6, '0')
+                _d = 'rm__%s_GROUP_%s' % (_now.strftime('%Y%m%d_%H%M%S_' + _ms),
+                                          group.name)
+                shutil.move(rm_path, os.path.join(self.repos_path, _d))
 
     def create(self, group_name, group_description, parent=None, just_db=False):
         try:
--- a/rhodecode/model/scm.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/scm.py	Thu Dec 13 22:54:21 2012 +0100
@@ -115,6 +115,7 @@
             tmp_d = {}
             tmp_d['name'] = dbr.repo_name
             tmp_d['name_sort'] = tmp_d['name'].lower()
+            tmp_d['raw_name'] = tmp_d['name'].lower()
             tmp_d['description'] = dbr.description
             tmp_d['description_sort'] = tmp_d['description'].lower()
             tmp_d['last_change'] = last_change
@@ -149,6 +150,7 @@
             tmp_d = {}
             tmp_d['name'] = dbr.repo_name
             tmp_d['name_sort'] = tmp_d['name'].lower()
+            tmp_d['raw_name'] = tmp_d['name'].lower()
             tmp_d['description'] = dbr.description
             tmp_d['description_sort'] = tmp_d['description'].lower()
             tmp_d['dbrepo'] = dbr.get_dict()
@@ -223,7 +225,7 @@
 
         for name, path in get_filesystem_repos(repos_path, recursive=True):
             # skip removed repos
-            if REMOVED_REPO_PAT.match(name):
+            if REMOVED_REPO_PAT.match(name) or path[0] is None:
                 continue
 
             # name need to be decomposed and put back together using the /
@@ -289,7 +291,7 @@
 
         :param repo_name: this repo that should invalidation take place
         """
-        CacheInvalidation.set_invalidate(repo_name)
+        CacheInvalidation.set_invalidate(repo_name=repo_name)
 
     def toggle_following_repo(self, follow_repo_id, user_id):
 
@@ -394,6 +396,7 @@
             raise Exception("This repository doesn't have a clone uri")
 
         repo = dbrepo.scm_instance
+        from rhodecode import CONFIG
         try:
             extras = {
                 'ip': '',
@@ -401,7 +404,11 @@
                 'action': 'push_remote',
                 'repository': dbrepo.repo_name,
                 'scm': repo.alias,
+                'config': CONFIG['__file__'],
+                'make_lock': None,
+                'locked_by': [None, None]
             }
+
             Repository.inject_ui(repo, extras=extras)
 
             if repo.alias == 'git':
--- a/rhodecode/model/user.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/user.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,6 +26,8 @@
 import logging
 import traceback
 import itertools
+import collections
+import functools
 from pylons import url
 from pylons.i18n.translation import _
 
@@ -246,7 +248,7 @@
             log.error(traceback.format_exc())
             raise
 
-    def update(self, user_id, form_data):
+    def update(self, user_id, form_data, skip_attrs=[]):
         from rhodecode.lib.auth import get_crypt_password
         try:
             user = self.get(user_id, cache=False)
@@ -256,6 +258,8 @@
                                   " crucial for entire application"))
 
             for k, v in form_data.items():
+                if k in skip_attrs:
+                    continue
                 if k == 'new_password' and v:
                     user.password = get_crypt_password(v)
                     user.api_key = generate_api_key(user.username)
@@ -377,13 +381,21 @@
 
         return True
 
-    def fill_perms(self, user):
+    def fill_perms(self, user, explicit=True, algo='higherwin'):
         """
         Fills user permission attribute with permissions taken from database
         works for permissions given for repositories, and for permissions that
         are granted to groups
 
         :param user: user instance to fill his perms
+        :param explicit: In case there are permissions both for user and a group
+            that user is part of, explicit flag will defiine if user will
+            explicitly override permissions from group, if it's False it will
+            make decision based on the algo
+        :param algo: algorithm to decide what permission should be choose if
+            it's multiple defined, eg user in two different groups. It also
+            decides if explicit flag is turned off how to specify the permission
+            for case when user is in a group + have defined separate permission
         """
         RK = 'repositories'
         GK = 'repositories_groups'
@@ -392,6 +404,18 @@
         user.permissions[GK] = {}
         user.permissions[GLOBAL] = set()
 
+        def _choose_perm(new_perm, cur_perm):
+            new_perm_val = PERM_WEIGHTS[new_perm]
+            cur_perm_val = PERM_WEIGHTS[cur_perm]
+            if algo == 'higherwin':
+                if new_perm_val > cur_perm_val:
+                    return new_perm
+                return cur_perm
+            elif algo == 'lowerwin':
+                if new_perm_val < cur_perm_val:
+                    return new_perm
+                return cur_perm
+
         #======================================================================
         # fetch default permissions
         #======================================================================
@@ -501,12 +525,14 @@
                 user.permissions[GLOBAL].add(perm.permission.permission_name)
 
         #======================================================================
-        # !! REPO PERMISSIONS !!
+        # !! PERMISSIONS FOR REPOSITORIES !!
         #======================================================================
         #======================================================================
         # check if user is part of user groups for this repository and
-        # fill in (or NOT replace with higher `or 1` permissions
+        # fill in his permission from it. _choose_perm decides of which
+        # permission should be selected based on selected method
         #======================================================================
+
         # users group for repositories permissions
         user_repo_perms_from_users_groups = \
          self.sa.query(UsersGroupRepoToPerm, Permission, Repository,)\
@@ -519,20 +545,23 @@
             .filter(UsersGroupMember.user_id == uid)\
             .all()
 
+        multiple_counter = collections.defaultdict(int)
         for perm in user_repo_perms_from_users_groups:
             r_k = perm.UsersGroupRepoToPerm.repository.repo_name
+            multiple_counter[r_k] += 1
             p = perm.Permission.permission_name
             cur_perm = user.permissions[RK][r_k]
-            # overwrite permission only if it's greater than permission
-            # given from other sources - disabled with `or 1` now
-            if PERM_WEIGHTS[p] > PERM_WEIGHTS[cur_perm] or 1:  # disable check
-                if perm.Repository.user_id == uid:
-                    # set admin if owner
-                    p = 'repository.admin'
 
-                user.permissions[RK][r_k] = p
+            if perm.Repository.user_id == uid:
+                # set admin if owner
+                p = 'repository.admin'
+            else:
+                if multiple_counter[r_k] > 1:
+                    p = _choose_perm(p, cur_perm)
+            user.permissions[RK][r_k] = p
 
-        # user explicit permissions for repositories
+        # user explicit permissions for repositories, overrides any specified
+        # by the group permission
         user_repo_perms = \
          self.sa.query(UserRepoToPerm, Permission, Repository)\
             .join((Repository, UserRepoToPerm.repository_id ==
@@ -543,24 +572,52 @@
             .all()
 
         for perm in user_repo_perms:
+            r_k = perm.UserRepoToPerm.repository.repo_name
+            cur_perm = user.permissions[RK][r_k]
             # set admin if owner
-            r_k = perm.UserRepoToPerm.repository.repo_name
             if perm.Repository.user_id == uid:
                 p = 'repository.admin'
             else:
                 p = perm.Permission.permission_name
+                if not explicit:
+                    p = _choose_perm(p, cur_perm)
             user.permissions[RK][r_k] = p
 
-        # REPO GROUP
-        #==================================================================
-        # get access for this user for repos group and override defaults
-        #==================================================================
+        #======================================================================
+        # !! PERMISSIONS FOR REPOSITORIES GROUPS !!
+        #======================================================================
+        #======================================================================
+        # check if user is part of user groups for this repository groups and
+        # fill in his permission from it. _choose_perm decides of which
+        # permission should be selected based on selected method
+        #======================================================================
+        # users group for repo groups permissions
+        user_repo_group_perms_from_users_groups = \
+         self.sa.query(UsersGroupRepoGroupToPerm, Permission, RepoGroup)\
+         .join((RepoGroup, UsersGroupRepoGroupToPerm.group_id == RepoGroup.group_id))\
+         .join((Permission, UsersGroupRepoGroupToPerm.permission_id
+                == Permission.permission_id))\
+         .join((UsersGroupMember, UsersGroupRepoGroupToPerm.users_group_id
+                == UsersGroupMember.users_group_id))\
+         .filter(UsersGroupMember.user_id == uid)\
+         .all()
 
-        # user explicit permissions for repository
+        multiple_counter = collections.defaultdict(int)
+        for perm in user_repo_group_perms_from_users_groups:
+            g_k = perm.UsersGroupRepoGroupToPerm.group.group_name
+            multiple_counter[g_k] += 1
+            p = perm.Permission.permission_name
+            cur_perm = user.permissions[GK][g_k]
+            if multiple_counter[g_k] > 1:
+                p = _choose_perm(p, cur_perm)
+            user.permissions[GK][g_k] = p
+
+        # user explicit permissions for repository groups
         user_repo_groups_perms = \
          self.sa.query(UserRepoGroupToPerm, Permission, RepoGroup)\
          .join((RepoGroup, UserRepoGroupToPerm.group_id == RepoGroup.group_id))\
-         .join((Permission, UserRepoGroupToPerm.permission_id == Permission.permission_id))\
+         .join((Permission, UserRepoGroupToPerm.permission_id
+                == Permission.permission_id))\
          .filter(UserRepoGroupToPerm.user_id == uid)\
          .all()
 
@@ -568,32 +625,9 @@
             rg_k = perm.UserRepoGroupToPerm.group.group_name
             p = perm.Permission.permission_name
             cur_perm = user.permissions[GK][rg_k]
-            if PERM_WEIGHTS[p] > PERM_WEIGHTS[cur_perm] or 1:  # disable check
-                user.permissions[GK][rg_k] = p
-
-        # REPO GROUP + USER GROUP
-        #==================================================================
-        # check if user is part of user groups for this repo group and
-        # fill in (or replace with higher) permissions
-        #==================================================================
-
-        # users group for repositories permissions
-        user_repo_group_perms_from_users_groups = \
-         self.sa.query(UsersGroupRepoGroupToPerm, Permission, RepoGroup)\
-         .join((RepoGroup, UsersGroupRepoGroupToPerm.group_id == RepoGroup.group_id))\
-         .join((Permission, UsersGroupRepoGroupToPerm.permission_id == Permission.permission_id))\
-         .join((UsersGroupMember, UsersGroupRepoGroupToPerm.users_group_id == UsersGroupMember.users_group_id))\
-         .filter(UsersGroupMember.user_id == uid)\
-         .all()
-
-        for perm in user_repo_group_perms_from_users_groups:
-            g_k = perm.UsersGroupRepoGroupToPerm.group.group_name
-            p = perm.Permission.permission_name
-            cur_perm = user.permissions[GK][g_k]
-            # overwrite permission only if it's greater than permission
-            # given from other sources
-            if PERM_WEIGHTS[p] > PERM_WEIGHTS[cur_perm] or 1:  # disable check
-                user.permissions[GK][g_k] = p
+            if not explicit:
+                p = _choose_perm(p, cur_perm)
+            user.permissions[GK][rg_k] = p
 
         return user
 
--- a/rhodecode/model/validators.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/model/validators.py	Thu Dec 13 22:54:21 2012 +0100
@@ -566,9 +566,18 @@
 def ValidSettings():
     class _validator(formencode.validators.FancyValidator):
         def _to_python(self, value, state):
-            # settings  form can't edit user
-            if 'user' in value:
-                del value['user']
+            # settings  form for users that are not admin 
+            # can't edit certain parameters, it's extra backup if they mangle
+            # with forms
+
+            forbidden_params = [
+                'user', 'repo_type', 'repo_enable_locking',
+                'repo_enable_downloads', 'repo_enable_statistics'
+            ]
+
+            for param in forbidden_params:
+                if param in value:
+                    del value[param]
             return value
 
         def validate_python(self, value, state):
--- a/rhodecode/public/css/codemirror.css	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/public/css/codemirror.css	Thu Dec 13 22:54:21 2012 +0100
@@ -80,6 +80,7 @@
   word-wrap: normal;
   line-height: inherit;
   color: inherit;
+  overflow: visible;
 }
 
 .CodeMirror-wrap pre {
--- a/rhodecode/public/css/style.css	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/public/css/style.css	Thu Dec 13 22:54:21 2012 +0100
@@ -61,32 +61,33 @@
 	text-decoration: underline;
 }
 
-h1,h2,h3,h4,h5,h6 {
+h1,h2,h3,h4,h5,h6,
+div.h1,div.h2,div.h3,div.h4,div.h5,div.h6 {
 	color: #292929;
 	font-weight: 700;
 }
 
-h1 {
+h1,div.h1 {
 	font-size: 22px;
 }
 
-h2 {
+h2,div.h2 {
 	font-size: 20px;
 }
 
-h3 {
+h3,div.h3 {
 	font-size: 18px;
 }
 
-h4 {
+h4,div.h4 {
 	font-size: 16px;
 }
 
-h5 {
+h5,div.h5 {
 	font-size: 14px;
 }
 
-h6 {
+h6,div.h6 {
 	font-size: 11px;
 }
 
@@ -352,9 +353,9 @@
     z-index: auto !important;
 }
 
-.header-pos-fix{
-	margin-top: -44px;
-	padding-top: 44px;
+.header-pos-fix, .anchor{
+	margin-top: -46px;
+	padding-top: 46px;
 }
 
 #header #header-inner #home a {
@@ -540,7 +541,7 @@
 
 #header #header-inner #quick li ul ul {
 	right: 200px;
-	max-height: 275px;
+	max-height: 290px;
 	overflow: auto;
 	overflow-x: hidden;
 	white-space: normal;
@@ -625,6 +626,14 @@
 	padding: 12px 9px 7px 24px;
 }
 
+#header #header-inner #quick li ul li a.defaults,#header #header-inner #quick li ul li a.defaults:hover
+    {
+    background: #FFF url("../images/icons/wrench.png") no-repeat 4px 9px;
+    width: 167px;
+    margin: 0;
+    padding: 12px 9px 7px 24px;
+}
+
 #header #header-inner #quick li ul li a.settings,#header #header-inner #quick li ul li a.settings:hover
 	{
 	background: #FFF url("../images/icons/cog.png") no-repeat 4px 9px;
@@ -685,6 +694,15 @@
     padding: 12px 9px 7px 24px;
 }
 
+#header #header-inner #quick li ul li a.compare_request,#header #header-inner #quick li ul li a.compare_request:hover
+    {
+    background: #FFF url("../images/icons/arrow_inout.png") no-repeat 4px
+        9px;
+    width: 167px;
+    margin: 0;
+    padding: 12px 9px 7px 24px;
+}
+
 #header #header-inner #quick li ul li a.search,#header #header-inner #quick li ul li a.search:hover
 	{
 	background: #FFF url("../images/icons/search_16.png") no-repeat 4px 9px;
@@ -1143,7 +1161,9 @@
 	text-decoration: none;
 }
 
-#content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6
+#content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6,
+#content div.box div.h1,#content div.box div.h2,#content div.box div.h3,#content div.box div.h4,#content div.box div.h5,#content div.box div.h6
+
 	{
 	clear: both;
 	overflow: hidden;
@@ -1615,6 +1635,7 @@
 	background: #eee;
 	border-bottom: 1px solid #ddd;
 	padding: 5px 0px 5px 5px;
+	text-align: left;
 }
 
 #content div.box table th.left {
@@ -2306,6 +2327,15 @@
 	height: 30px;
 }
 
+#journal .journal_user.deleted {
+    color: #747474;
+    font-size: 14px;
+    font-weight: normal;
+    height: 30px;
+    font-style: italic;
+}
+
+
 #journal .journal_icon {
 	clear: both;
 	float: left;
@@ -2494,6 +2524,42 @@
 	font-size: 9px;
     padding: 2px 0px 2px 0px;
 }
+/*new binary*/
+.cs_files .changes .bin1 {
+    background-color: #BBFFBB;
+    float: left;
+    text-align: center;
+    font-size: 9px;
+    padding: 2px 0px 2px 0px;
+}
+
+/*deleted binary*/
+.cs_files .changes .bin2 {
+    background-color: #FF8888;
+    float: left;
+    text-align: center;
+    font-size: 9px;
+    padding: 2px 0px 2px 0px;
+}
+
+/*mod binary*/
+.cs_files .changes .bin3 {
+    background-color: #DDDDDD;
+    float: left;
+    text-align: center;
+    font-size: 9px;
+    padding: 2px 0px 2px 0px;
+}
+
+/*rename file*/
+.cs_files .changes .bin4 {
+    background-color: #6D99FF;
+    float: left;
+    text-align: center;
+    font-size: 9px;
+    padding: 2px 0px 2px 0px;
+}
+
 
 .cs_files .cs_added,.cs_files .cs_A {
 	background: url("../images/icons/page_white_add.png") no-repeat scroll
@@ -2528,7 +2594,7 @@
 
 #graph_nodes {
 	float: left;
-	margin-right: -6px;
+	margin-right: 0px;
 	margin-top: 0px;
 }
 
@@ -2548,6 +2614,11 @@
 	margin: 0px 0px 0px 3px;
 }
 
+#graph_content #rev_range_clear {
+    float: left;
+    margin: 0px 0px 0px 3px;
+}
+
 #graph_content .container {
 	border-bottom: 1px solid #DDD;
 	height: 56px;
@@ -2596,15 +2667,14 @@
 #graph_content .container .mid .message a:hover{
 	text-decoration: none;
 }
-#content #graph_content .message .revision-link,
-#changeset_content .container .message .revision-link
+
+.revision-link
  {
 	color:#3F6F9F;
     font-weight: bold !important;
 }
 
-#content #graph_content .message .issue-tracker-link,
-#changeset_content .container .message .issue-tracker-link{
+.issue-tracker-link{
     color:#3F6F9F;
     font-weight: bold !important;
 }
@@ -2984,23 +3054,44 @@
 	z-index: 2;
 }
 
-.yui-tt {
-	visibility: hidden;
+#tip-box {
 	position: absolute;
-	color: #666;
+	
 	background-color: #FFF;
 	border: 2px solid #003367;
 	font: 100% sans-serif;
 	width: auto;
 	opacity: 1px;
 	padding: 8px;
+	
 	white-space: pre-wrap;
 	-webkit-border-radius: 8px 8px 8px 8px;
 	-khtml-border-radius: 8px 8px 8px 8px;
 	-moz-border-radius: 8px 8px 8px 8px;
 	border-radius: 8px 8px 8px 8px;
 	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
-}
+	-moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
+	-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
+}
+
+.hl-tip-box {
+    visibility: hidden;
+    position: absolute;
+    color: #666;
+    background-color: #FFF;
+    border: 2px solid #003367;
+    font: 100% sans-serif;
+    width: auto;
+    opacity: 1px;
+    padding: 8px;
+    white-space: pre-wrap;
+    -webkit-border-radius: 8px 8px 8px 8px;
+    -khtml-border-radius: 8px 8px 8px 8px;
+    -moz-border-radius: 8px 8px 8px 8px;
+    border-radius: 8px 8px 8px 8px;
+    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
+}
+
 
 .mentions-container{
 	width: 90% !important;
@@ -3107,6 +3198,26 @@
 	margin-top: 2px;
 }
 
+.locking_locked{
+    background: #FFF url("../images/icons/block_16.png") no-repeat scroll 3px;
+    height: 16px;
+    width: 20px;
+    cursor: pointer;
+    display: block;
+    float: right;
+    margin-top: 2px;    
+}
+
+.locking_unlocked{
+    background: #FFF url("../images/icons/accept.png") no-repeat scroll 3px;
+    height: 16px;
+    width: 20px;
+    cursor: pointer;
+    display: block;
+    float: right;
+    margin-top: 2px;	
+}
+
 .currently_following {
 	padding-left: 10px;
 	padding-bottom: 5px;
@@ -3896,12 +4007,13 @@
 
 
 .group_members_wrap{
-	
+	min-height: 85px;
+	padding-left: 20px;
 }
 
 .group_members .group_member{
 	height: 30px;
-	padding:0px 0px 0px 10px;
+	padding:0px 0px 0px 0px;
 }
 
 .reviewers_member{
@@ -4016,6 +4128,14 @@
 	border-radius: 3px;
 }
 
+div.readme .readme_box table {
+    display: table;
+	border-collapse: separate;
+	border-spacing: 2px;
+	border-color: gray;
+	width: auto !important;
+}
+
 
 /** RST STYLE **/
 
@@ -4545,6 +4665,15 @@
     padding:10px 0 10px 0;
     height: 14px;
 }
+
+div.diffblock .code-header.banner{
+    border-bottom: 1px solid #CCCCCC;
+    background: #EEEEEE;
+    height: 14px;
+    margin: 0px 95px 0px 95px;
+    padding: 3px 3px 11px 3px;
+}
+
 div.diffblock .code-header.cv{
     height: 34px;
 }
@@ -4566,6 +4695,32 @@
     font-weight: bold;
     font-size: 14px;
 }
+
+div.diffblock .parents {
+    float: left;
+    height: 26px;
+    width:100px;
+    font-size: 10px;
+    font-weight: 400;
+    vertical-align: middle;
+    padding: 0px 2px 2px 2px;
+    background-color:#eeeeee;
+    border-bottom: 1px solid #CCCCCC;
+}
+
+div.diffblock .children {
+    float: right;
+    height: 26px;
+    width:100px;
+    font-size: 10px;
+    font-weight: 400;
+    vertical-align: middle;
+    text-align: right;
+    padding: 0px 2px 2px 2px;
+    background-color:#eeeeee;
+    border-bottom: 1px solid #CCCCCC;
+}
+
 div.diffblock .code-body{
     background: #FFFFFF;
 }
--- a/rhodecode/public/js/codemirror.js	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/public/js/codemirror.js	Thu Dec 13 22:54:21 2012 +0100
@@ -75,7 +75,7 @@
     // Selection-related flags. shiftSelecting obviously tracks
     // whether the user is holding shift.
     var shiftSelecting, lastClick, lastDoubleClick, lastScrollTop = 0, draggingText,
-        overwrite = false, suppressEdits = false;
+        overwrite = false, suppressEdits = false, pasteIncoming = false;
     // Variables used by startOperation/endOperation to track what
     // happened during the operation.
     var updateInput, userSelChange, changes, textChanged, selectionChanged,
@@ -128,7 +128,7 @@
       connect(scroller, "drop", operation(onDrop));
     }
     connect(scroller, "paste", function(){focusInput(); fastPoll();});
-    connect(input, "paste", fastPoll);
+    connect(input, "paste", function(){pasteIncoming = true; fastPoll();});
     connect(input, "cut", operation(function(){
       if (!options.readOnly) replaceSelection("");
     }));
@@ -167,6 +167,7 @@
         else if (option == "lineWrapping" && oldVal != value) operation(wrappingChanged)();
         else if (option == "tabSize") updateDisplay(true);
         else if (option == "keyMap") keyMapChanged();
+        else if (option == "tabindex") input.tabIndex = value;
         if (option == "lineNumbers" || option == "gutter" || option == "firstLineNumber" ||
             option == "theme" || option == "lineNumberFormatter") {
           gutterChanged();
@@ -229,6 +230,7 @@
         var off = eltOffset(lineSpace);
         return coordsChar(coords.x - off.left, coords.y - off.top);
       },
+      defaultTextHeight: function() { return textHeight(); },
       markText: operation(markText),
       setBookmark: setBookmark,
       findMarksAt: findMarksAt,
@@ -343,6 +345,11 @@
         return {x: scroller.scrollLeft, y: scrollbar.scrollTop,
                 height: scrollbar.scrollHeight, width: scroller.scrollWidth};
       },
+      scrollIntoView: function(pos) {
+        var coords = localCoords(pos ? clipPos(pos) : sel.inverted ? sel.from : sel.to);
+        scrollIntoView(coords.x, coords.y, coords.x, coords.yBot);
+      },
+
       setSize: function(width, height) {
         function interpret(val) {
           val = String(val);
@@ -392,7 +399,7 @@
     }
 
     function onScrollBar(e) {
-      if (scrollbar.scrollTop != lastScrollTop) {
+      if (Math.abs(scrollbar.scrollTop - lastScrollTop) > 1) {
         lastScrollTop = scroller.scrollTop = scrollbar.scrollTop;
         updateDisplay([]);
       }
@@ -401,7 +408,7 @@
     function onScrollMain(e) {
       if (options.fixedGutter && gutter.style.left != scroller.scrollLeft + "px")
         gutter.style.left = scroller.scrollLeft + "px";
-      if (scroller.scrollTop != lastScrollTop) {
+      if (Math.abs(scroller.scrollTop - lastScrollTop) > 1) {
         lastScrollTop = scroller.scrollTop;
         if (scrollbar.scrollTop != lastScrollTop)
           scrollbar.scrollTop = lastScrollTop;
@@ -634,7 +641,7 @@
       if (handled) {
         e_preventDefault(e);
         restartBlink();
-        if (ie) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }
+        if (ie_lt9) { e.oldKeyCode = e.keyCode; e.keyCode = 0; }
       }
       return handled;
     }
@@ -954,12 +961,13 @@
       while (same < l && prevInput[same] == text[same]) ++same;
       if (same < prevInput.length)
         sel.from = {line: sel.from.line, ch: sel.from.ch - (prevInput.length - same)};
-      else if (overwrite && posEq(sel.from, sel.to))
+      else if (overwrite && posEq(sel.from, sel.to) && !pasteIncoming)
         sel.to = {line: sel.to.line, ch: Math.min(getLine(sel.to.line).text.length, sel.to.ch + (text.length - same))};
       replaceSelection(text.slice(same), "end");
       if (text.length > 1000) { input.value = prevInput = ""; }
       else prevInput = text;
       if (!nestedOperation) endOperation();
+      pasteIncoming = false;
       return true;
     }
     function resetInput(user) {
@@ -1416,7 +1424,7 @@
         var startChar = line.charAt(start);
         var check = isWordChar(startChar) ? isWordChar :
                     /\s/.test(startChar) ? function(ch) {return /\s/.test(ch);} :
-                    function(ch) {return !/\s/.test(ch) && !isWordChar(ch);};
+                    function(ch) {return !/\s/.test(ch) && isWordChar(ch);};
         while (start > 0 && check(line.charAt(start - 1))) --start;
         while (end < line.length && check(line.charAt(end))) ++end;
       }
@@ -1460,6 +1468,7 @@
 
       if (indentString != curSpaceString)
         replaceRange(indentString, {line: n, ch: 0}, {line: n, ch: curSpaceString.length});
+      line.stateAfter = null;
     }
 
     function loadMode() {
@@ -1505,18 +1514,17 @@
 
     function TextMarker(type, style) { this.lines = []; this.type = type; if (style) this.style = style; }
     TextMarker.prototype.clear = operation(function() {
-      var min = Infinity, max = -Infinity;
+      var min, max;
       for (var i = 0; i < this.lines.length; ++i) {
         var line = this.lines[i];
-        var span = getMarkedSpanFor(line.markedSpans, this, true);
-        if (span.from != null || span.to != null) {
-          var lineN = lineNo(line);
-          min = Math.min(min, lineN); max = Math.max(max, lineN);
-        }
+        var span = getMarkedSpanFor(line.markedSpans, this);
+        if (span.from != null) min = lineNo(line);
+        if (span.to != null) max = lineNo(line);
+        line.markedSpans = removeMarkedSpan(line.markedSpans, span);
       }
-      if (min != Infinity)
-        changes.push({from: min, to: max + 1});
+      if (min != null) changes.push({from: min, to: max + 1});
       this.lines.length = 0;
+      this.explicitlyCleared = true;
     });
     TextMarker.prototype.find = function() {
       var from, to;
@@ -1543,7 +1551,7 @@
         var span = {from: curLine == from.line ? from.ch : null,
                     to: curLine == to.line ? to.ch : null,
                     marker: marker};
-        (line.markedSpans || (line.markedSpans = [])).push(span);
+        line.markedSpans = (line.markedSpans || []).concat([span]);
         marker.lines.push(line);
         ++curLine;
       });
@@ -1554,8 +1562,9 @@
     function setBookmark(pos) {
       pos = clipPos(pos);
       var marker = new TextMarker("bookmark"), line = getLine(pos.line);
+      history.addChange(pos.line, 1, [newHL(line.text, line.markedSpans)], true);
       var span = {from: pos.ch, to: pos.ch, marker: marker};
-      (line.markedSpans || (line.markedSpans = [])).push(span);
+      line.markedSpans = (line.markedSpans || []).concat([span]);
       marker.lines.push(line);
       return marker;
     }
@@ -1644,8 +1653,6 @@
 
     function measureLine(line, ch) {
       if (ch == 0) return {top: 0, left: 0};
-      var wbr = options.lineWrapping && ch < line.text.length &&
-                spanAffectsWrapping.test(line.text.slice(ch - 1, ch + 1));
       var pre = lineContent(line, ch);
       removeChildrenAndAdd(measure, pre);
       var anchor = pre.anchor;
@@ -1978,6 +1985,7 @@
       if (extensions.propertyIsEnumerable(ext) &&
           !instance.propertyIsEnumerable(ext))
         instance[ext] = extensions[ext];
+    for (var i = 0; i < initHooks.length; ++i) initHooks[i](instance);
     return instance;
   } // (end of function CodeMirror)
 
@@ -2075,6 +2083,9 @@
     extensions[name] = func;
   };
 
+  var initHooks = [];
+  CodeMirror.defineInitHook = function(f) {initHooks.push(f);};
+
   var modeExtensions = CodeMirror.modeExtensions = {};
   CodeMirror.extendMode = function(mode, properties) {
     var exts = modeExtensions.hasOwnProperty(mode) ? modeExtensions[mode] : (modeExtensions[mode] = {});
@@ -2167,7 +2178,7 @@
   keyMap.emacsy = {
     "Ctrl-F": "goCharRight", "Ctrl-B": "goCharLeft", "Ctrl-P": "goLineUp", "Ctrl-N": "goLineDown",
     "Alt-F": "goWordRight", "Alt-B": "goWordLeft", "Ctrl-A": "goLineStart", "Ctrl-E": "goLineEnd",
-    "Ctrl-V": "goPageUp", "Shift-Ctrl-V": "goPageDown", "Ctrl-D": "delCharRight", "Ctrl-H": "delCharLeft",
+    "Ctrl-V": "goPageDown", "Shift-Ctrl-V": "goPageUp", "Ctrl-D": "delCharRight", "Ctrl-H": "delCharLeft",
     "Alt-D": "delWordRight", "Alt-Backspace": "delWordLeft", "Ctrl-K": "killLine", "Ctrl-T": "transposeChars"
   };
 
@@ -2204,6 +2215,7 @@
     var name = keyNames[e_prop(event, "keyCode")];
     return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
   }
+  CodeMirror.isModifierKey = isModifierKey;
 
   CodeMirror.fromTextArea = function(textarea, options) {
     if (!options) options = {};
@@ -2224,15 +2236,13 @@
     if (textarea.form) {
       // Deplorable hack to make the submit method do the right thing.
       var rmSubmit = connect(textarea.form, "submit", save, true);
-      if (typeof textarea.form.submit == "function") {
-        var realSubmit = textarea.form.submit;
-        textarea.form.submit = function wrappedSubmit() {
-          save();
-          textarea.form.submit = realSubmit;
-          textarea.form.submit();
-          textarea.form.submit = wrappedSubmit;
-        };
-      }
+      var realSubmit = textarea.form.submit;
+      textarea.form.submit = function wrappedSubmit() {
+        save();
+        textarea.form.submit = realSubmit;
+        textarea.form.submit();
+        textarea.form.submit = wrappedSubmit;
+      };
     }
 
     textarea.style.display = "none";
@@ -2353,16 +2363,20 @@
     this.from = from; this.to = to; this.marker = marker;
   }
 
-  function getMarkedSpanFor(spans, marker, del) {
+  function getMarkedSpanFor(spans, marker) {
     if (spans) for (var i = 0; i < spans.length; ++i) {
       var span = spans[i];
-      if (span.marker == marker) {
-        if (del) spans.splice(i, 1);
-        return span;
-      }
+      if (span.marker == marker) return span;
     }
   }
 
+  function removeMarkedSpan(spans, span) {
+    var r;
+    for (var i = 0; i < spans.length; ++i)
+      if (spans[i] != span) (r || (r = [])).push(spans[i]);
+    return r;
+  }
+
   function markedSpansBefore(old, startCh, endCh) {
     if (old) for (var i = 0, nw; i < old.length; ++i) {
       var span = old[i], marker = span.marker;
@@ -2446,7 +2460,15 @@
   // hl stands for history-line, a data structure that can be either a
   // string (line without markers) or a {text, markedSpans} object.
   function hlText(val) { return typeof val == "string" ? val : val.text; }
-  function hlSpans(val) { return typeof val == "string" ? null : val.markedSpans; }
+  function hlSpans(val) {
+    if (typeof val == "string") return null;
+    var spans = val.markedSpans, out = null;
+    for (var i = 0; i < spans.length; ++i) {
+      if (spans[i].marker.explicitlyCleared) { if (!out) out = spans.slice(0, i); }
+      else if (out) out.push(spans[i]);
+    }
+    return !out ? spans : out.length ? out : null;
+  }
   function newHL(text, spans) { return spans ? {text: text, markedSpans: spans} : text; }
 
   function detachMarkedSpans(line) {
@@ -2582,13 +2604,17 @@
         span = function(html, text, style) {
           var l = text.length;
           if (wrapAt >= outPos && wrapAt < outPos + l) {
-            if (wrapAt > outPos) {
-              span_(html, text.slice(0, wrapAt - outPos), style);
+            var cut = wrapAt - outPos;
+            if (cut) {
+              span_(html, text.slice(0, cut), style);
               // See comment at the definition of spanAffectsWrapping
-              if (compensateForWrapping) html.appendChild(elt("wbr"));
+              if (compensateForWrapping) {
+                var view = text.slice(cut - 1, cut + 1);
+                if (spanAffectsWrapping.test(view)) html.appendChild(elt("wbr"));
+                else if (!ie_lt8 && /\w\w/.test(view)) html.appendChild(document.createTextNode("\u200d"));
+              }
             }
             html.appendChild(anchor);
-            var cut = wrapAt - outPos;
             span_(anchor, opera ? text.slice(cut, cut + 1) : text.slice(cut), style);
             if (opera) span_(html, text.slice(cut + 1), style);
             wrapAt--;
@@ -2872,7 +2898,7 @@
       var time = +new Date, cur = lst(this.done), last = cur && lst(cur);
       var dtime = time - this.time;
 
-      if (this.compound && cur && !this.closed) {
+      if (cur && !this.closed && this.compound) {
         cur.push({start: start, added: added, old: old});
       } else if (dtime > 400 || !last || this.closed ||
                  last.start > start + old.length || last.start + last.added < start) {
@@ -3078,8 +3104,10 @@
       if (collection[i] == elt) return i;
     return -1;
   }
+  var nonASCIISingleCaseWordChar = /[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc]/;
   function isWordChar(ch) {
-    return /\w/.test(ch) || ch.toUpperCase() != ch.toLowerCase();
+    return /\w/.test(ch) || ch > "\x80" &&
+      (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch));
   }
 
   // See if "".split is the broken IE version, if so, provide an
@@ -3135,7 +3163,7 @@
     for (var i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i;
   })();
 
-  CodeMirror.version = "2.34";
+  CodeMirror.version = "2.36";
 
   return CodeMirror;
 })();
--- a/rhodecode/public/js/graph.js	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/public/js/graph.js	Thu Dec 13 22:54:21 2012 +0100
@@ -32,18 +32,8 @@
 	this.ctx.strokeStyle = 'rgb(0, 0, 0)';
 	this.ctx.fillStyle = 'rgb(0, 0, 0)';
 	this.cur = [0, 0];
-	this.max_column = 1;
-	this.line_width = 2.5;
-	this.dot_radius = 5.5;
-	this.bg = [0, 4];
-	this.cell = [2, 0];
-	this.revlink = '';
-	
-	this.scale = function(height) {
-		this.box_size = Math.floor(height/1.2);
-		this.cell_height = this.box_size;
-		this.bg_height = height;
-	}
+	this.line_width = 2.0;
+	this.dot_radius = 3.5;
 	
 	this.setColor = function(color, bg, fg) {
 		color %= colors.length;
@@ -58,14 +48,18 @@
 		this.ctx.fillStyle = s;
 	}
 
-	this.render = function(data,pad) {
+	this.render = function(data,canvasWidth,lineCount) {
 		var idx = 1;
 		var rela = document.getElementById('graph');
-		var pad = pad;
-		var scale = 22;
+
+		if (lineCount == 0)
+			lineCount = 1;
+
+		var edge_pad = this.dot_radius + 2;
+		var box_size = Math.min(18, Math.floor((canvasWidth - edge_pad*2)/(lineCount)));
+		var base_x = canvasWidth - edge_pad;
 
 		for (var i in data) {
-			this.scale(scale);
 
 			var row = document.getElementById("chg_"+idx);
 			if (row == null)
@@ -73,11 +67,7 @@
 			var	next = document.getElementById("chg_"+(idx+1));
 			var extra = 0;
 			
-			this.cell[1] += row.clientWidth;
-			this.bg[1] += this.bg_height;
-			
 			cur = data[i];
-			nodeid = cur[0];
 			node = cur[1];
 			in_l = cur[2];
 
@@ -91,44 +81,34 @@
 				end = line[1];
 				color = line[2];
 
-				if (start > this.max_column) {
-					this.max_column = start;
-				}
-				
-				if (end > this.max_column) {
-					this.max_column = end;
-				}
-				
 				this.setColor(color, 0.0, 0.65);
 
 				
-				x = pad-((this.cell[0] + this.box_size * start - 1) + this.bg_height-2);
+				x = base_x - box_size * start;
 				
 				this.ctx.lineWidth=this.line_width;
 				this.ctx.beginPath();
 				this.ctx.moveTo(x, rowY);
 
-				
 				if (start == end)
 				{
-					x = pad-((1 + this.box_size * end) + this.bg_height-2);
 					this.ctx.lineTo(x,nextY+extra,3);
 				}
 				else
 				{
-					var x2 = pad-((1 + this.box_size * end) + this.bg_height-2);
+					var x2 = base_x - box_size * end;
 					var ymid = (rowY+nextY) / 2;
 					this.ctx.bezierCurveTo (x,ymid,x2,ymid,x2,nextY);
 				}
 				this.ctx.stroke();
 			}
 			
-			column = node[0]
-			color = node[1]
+			column = node[0];
+			color = node[1];
 			
 			radius = this.dot_radius;
 
-			x = pad-(Math.round(this.cell[0] * scale/2 * column + radius) + 15 - (column*4));
+			x = base_x - box_size * column;
 		
 			this.ctx.beginPath();
 			this.setColor(color, 0.25, 0.75);
--- a/rhodecode/public/js/native.history.js	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/public/js/native.history.js	Thu Dec 13 22:54:21 2012 +0100
@@ -1,1 +1,1974 @@
-(function(a,b){"use strict";var c=a.History=a.History||{};if(typeof c.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");c.Adapter={handlers:{},_uid:1,uid:function(a){return a._uid||(a._uid=c.Adapter._uid++)},bind:function(a,b,d){var e=c.Adapter.uid(a);c.Adapter.handlers[e]=c.Adapter.handlers[e]||{},c.Adapter.handlers[e][b]=c.Adapter.handlers[e][b]||[],c.Adapter.handlers[e][b].push(d),a["on"+b]=function(a,b){return function(d){c.Adapter.trigger(a,b,d)}}(a,b)},trigger:function(a,b,d){d=d||{};var e=c.Adapter.uid(a),f,g;c.Adapter.handlers[e]=c.Adapter.handlers[e]||{},c.Adapter.handlers[e][b]=c.Adapter.handlers[e][b]||[];for(f=0,g=c.Adapter.handlers[e][b].length;f<g;++f)c.Adapter.handlers[e][b][f].apply(this,[d])},extractEventData:function(a,c){var d=c&&c[a]||b;return d},onDomLoad:function(b){var c=a.setTimeout(function(){b()},2e3);a.onload=function(){clearTimeout(c),b()}}},typeof c.init!="undefined"&&c.init()})(window),function(a,b){"use strict";var c=a.console||b,d=a.document,e=a.navigator,f=a.sessionStorage||!1,g=a.setTimeout,h=a.clearTimeout,i=a.setInterval,j=a.clearInterval,k=a.JSON,l=a.alert,m=a.History=a.History||{},n=a.history;k.stringify=k.stringify||k.encode,k.parse=k.parse||k.decode;if(typeof m.init!="undefined")throw new Error("History.js Core has already been loaded...");m.init=function(){return typeof m.Adapter=="undefined"?!1:(typeof m.initCore!="undefined"&&m.initCore(),typeof m.initHtml4!="undefined"&&m.initHtml4(),!0)},m.initCore=function(){if(typeof m.initCore.initialized!="undefined")return!1;m.initCore.initialized=!0,m.options=m.options||{},m.options.hashChangeInterval=m.options.hashChangeInterval||100,m.options.safariPollInterval=m.options.safariPollInterval||500,m.options.doubleCheckInterval=m.options.doubleCheckInterval||500,m.options.storeInterval=m.options.storeInterval||1e3,m.options.busyDelay=m.options.busyDelay||250,m.options.debug=m.options.debug||!1,m.options.initialTitle=m.options.initialTitle||d.title,m.intervalList=[],m.clearAllIntervals=function(){var a,b=m.intervalList;if(typeof b!="undefined"&&b!==null){for(a=0;a<b.length;a++)j(b[a]);m.intervalList=null}},m.debug=function(){(m.options.debug||!1)&&m.log.apply(m,arguments)},m.log=function(){var a=typeof c!="undefined"&&typeof c.log!="undefined"&&typeof c.log.apply!="undefined",b=d.getElementById("log"),e,f,g,h,i;a?(h=Array.prototype.slice.call(arguments),e=h.shift(),typeof c.debug!="undefined"?c.debug.apply(c,[e,h]):c.log.apply(c,[e,h])):e="\n"+arguments[0]+"\n";for(f=1,g=arguments.length;f<g;++f){i=arguments[f];if(typeof i=="object"&&typeof k!="undefined")try{i=k.stringify(i)}catch(j){}e+="\n"+i+"\n"}return b?(b.value+=e+"\n-----\n",b.scrollTop=b.scrollHeight-b.clientHeight):a||l(e),!0},m.getInternetExplorerMajorVersion=function(){var a=m.getInternetExplorerMajorVersion.cached=typeof m.getInternetExplorerMajorVersion.cached!="undefined"?m.getInternetExplorerMajorVersion.cached:function(){var a=3,b=d.createElement("div"),c=b.getElementsByTagName("i");while((b.innerHTML="<!--[if gt IE "+ ++a+"]><i></i><![endif]-->")&&c[0]);return a>4?a:!1}();return a},m.isInternetExplorer=function(){var a=m.isInternetExplorer.cached=typeof m.isInternetExplorer.cached!="undefined"?m.isInternetExplorer.cached:Boolean(m.getInternetExplorerMajorVersion());return a},m.emulated={pushState:!Boolean(a.history&&a.history.pushState&&a.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(e.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(e.userAgent)),hashChange:Boolean(!("onhashchange"in a||"onhashchange"in d)||m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8)},m.enabled=!m.emulated.pushState,m.bugs={setHash:Boolean(!m.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),safariPoll:Boolean(!m.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),ieDoubleCheck:Boolean(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<7)},m.isEmptyObject=function(a){for(var b in a)return!1;return!0},m.cloneObject=function(a){var b,c;return a?(b=k.stringify(a),c=k.parse(b)):c={},c},m.getRootUrl=function(){var a=d.location.protocol+"//"+(d.location.hostname||d.location.host);if(d.location.port||!1)a+=":"+d.location.port;return a+="/",a},m.getBaseHref=function(){var a=d.getElementsByTagName("base"),b=null,c="";return a.length===1&&(b=a[0],c=b.href.replace(/[^\/]+$/,"")),c=c.replace(/\/+$/,""),c&&(c+="/"),c},m.getBaseUrl=function(){var a=m.getBaseHref()||m.getBasePageUrl()||m.getRootUrl();return a},m.getPageUrl=function(){var a=m.getState(!1,!1),b=(a||{}).url||d.location.href,c;return c=b.replace(/\/+$/,"").replace(/[^\/]+$/,function(a,b,c){return/\./.test(a)?a:a+"/"}),c},m.getBasePageUrl=function(){var a=d.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(a,b,c){return/[^\/]$/.test(a)?"":a}).replace(/\/+$/,"")+"/";return a},m.getFullUrl=function(a,b){var c=a,d=a.substring(0,1);return b=typeof b=="undefined"?!0:b,/[a-z]+\:\/\//.test(a)||(d==="/"?c=m.getRootUrl()+a.replace(/^\/+/,""):d==="#"?c=m.getPageUrl().replace(/#.*/,"")+a:d==="?"?c=m.getPageUrl().replace(/[\?#].*/,"")+a:b?c=m.getBaseUrl()+a.replace(/^(\.\/)+/,""):c=m.getBasePageUrl()+a.replace(/^(\.\/)+/,"")),c.replace(/\#$/,"")},m.getShortUrl=function(a){var b=a,c=m.getBaseUrl(),d=m.getRootUrl();return m.emulated.pushState&&(b=b.replace(c,"")),b=b.replace(d,"/"),m.isTraditionalAnchor(b)&&(b="./"+b),b=b.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),b},m.store={},m.idToState=m.idToState||{},m.stateToId=m.stateToId||{},m.urlToId=m.urlToId||{},m.storedStates=m.storedStates||[],m.savedStates=m.savedStates||[],m.normalizeStore=function(){m.store.idToState=m.store.idToState||{},m.store.urlToId=m.store.urlToId||{},m.store.stateToId=m.store.stateToId||{}},m.getState=function(a,b){typeof a=="undefined"&&(a=!0),typeof b=="undefined"&&(b=!0);var c=m.getLastSavedState();return!c&&b&&(c=m.createStateObject()),a&&(c=m.cloneObject(c),c.url=c.cleanUrl||c.url),c},m.getIdByState=function(a){var b=m.extractId(a.url),c;if(!b){c=m.getStateString(a);if(typeof m.stateToId[c]!="undefined")b=m.stateToId[c];else if(typeof m.store.stateToId[c]!="undefined")b=m.store.stateToId[c];else{for(;;){b=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof m.idToState[b]=="undefined"&&typeof m.store.idToState[b]=="undefined")break}m.stateToId[c]=b,m.idToState[b]=a}}return b},m.normalizeState=function(a){var b,c;if(!a||typeof a!="object")a={};if(typeof a.normalized!="undefined")return a;if(!a.data||typeof a.data!="object")a.data={};b={},b.normalized=!0,b.title=a.title||"",b.url=m.getFullUrl(m.unescapeString(a.url||d.location.href)),b.hash=m.getShortUrl(b.url),b.data=m.cloneObject(a.data),b.id=m.getIdByState(b),b.cleanUrl=b.url.replace(/\??\&_suid.*/,""),b.url=b.cleanUrl,c=!m.isEmptyObject(b.data);if(b.title||c)b.hash=m.getShortUrl(b.url).replace(/\??\&_suid.*/,""),/\?/.test(b.hash)||(b.hash+="?"),b.hash+="&_suid="+b.id;return b.hashedUrl=m.getFullUrl(b.hash),(m.emulated.pushState||m.bugs.safariPoll)&&m.hasUrlDuplicate(b)&&(b.url=b.hashedUrl),b},m.createStateObject=function(a,b,c){var d={data:a,title:b,url:c};return d=m.normalizeState(d),d},m.getStateById=function(a){a=String(a);var c=m.idToState[a]||m.store.idToState[a]||b;return c},m.getStateString=function(a){var b,c,d;return b=m.normalizeState(a),c={data:b.data,title:a.title,url:a.url},d=k.stringify(c),d},m.getStateId=function(a){var b,c;return b=m.normalizeState(a),c=b.id,c},m.getHashByState=function(a){var b,c;return b=m.normalizeState(a),c=b.hash,c},m.extractId=function(a){var b,c,d;return c=/(.*)\&_suid=([0-9]+)$/.exec(a),d=c?c[1]||a:a,b=c?String(c[2]||""):"",b||!1},m.isTraditionalAnchor=function(a){var b=!/[\/\?\.]/.test(a);return b},m.extractState=function(a,b){var c=null,d,e;return b=b||!1,d=m.extractId(a),d&&(c=m.getStateById(d)),c||(e=m.getFullUrl(a),d=m.getIdByUrl(e)||!1,d&&(c=m.getStateById(d)),!c&&b&&!m.isTraditionalAnchor(a)&&(c=m.createStateObject(null,null,e))),c},m.getIdByUrl=function(a){var c=m.urlToId[a]||m.store.urlToId[a]||b;return c},m.getLastSavedState=function(){return m.savedStates[m.savedStates.length-1]||b},m.getLastStoredState=function(){return m.storedStates[m.storedStates.length-1]||b},m.hasUrlDuplicate=function(a){var b=!1,c;return c=m.extractState(a.url),b=c&&c.id!==a.id,b},m.storeState=function(a){return m.urlToId[a.url]=a.id,m.storedStates.push(m.cloneObject(a)),a},m.isLastSavedState=function(a){var b=!1,c,d,e;return m.savedStates.length&&(c=a.id,d=m.getLastSavedState(),e=d.id,b=c===e),b},m.saveState=function(a){return m.isLastSavedState(a)?!1:(m.savedStates.push(m.cloneObject(a)),!0)},m.getStateByIndex=function(a){var b=null;return typeof a=="undefined"?b=m.savedStates[m.savedStates.length-1]:a<0?b=m.savedStates[m.savedStates.length+a]:b=m.savedStates[a],b},m.getHash=function(){var a=m.unescapeHash(d.location.hash);return a},m.unescapeString=function(b){var c=b,d;for(;;){d=a.decodeURI(c);if(d===c)break;c=d}return c},m.unescapeHash=function(a){var b=m.normalizeHash(a);return b=m.unescapeString(b),b},m.normalizeHash=function(a){var b=a.replace(/[^#]*#/,"").replace(/#.*/,"");return b},m.setHash=function(a,b){var c,e,f;return b!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.setHash,args:arguments,queue:b}),!1):(c=m.escapeHash(a),m.busy(!0),e=m.extractState(a,!0),e&&!m.emulated.pushState?m.pushState(e.data,e.title,e.url,!1):d.location.hash!==c&&(m.bugs.setHash?(f=m.getPageUrl(),m.pushState(null,null,f+"#"+c,!1)):d.location.hash=c),m)},m.escapeHash=function(b){var c=m.normalizeHash(b);return c=a.escape(c),m.bugs.hashEscape||(c=c.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),c},m.getHashByUrl=function(a){var b=String(a).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return b=m.unescapeHash(b),b},m.setTitle=function(a){var b=a.title,c;b||(c=m.getStateByIndex(0),c&&c.url===a.url&&(b=c.title||m.options.initialTitle));try{d.getElementsByTagName("title")[0].innerHTML=b.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(e){}return d.title=b,m},m.queues=[],m.busy=function(a){typeof a!="undefined"?m.busy.flag=a:typeof m.busy.flag=="undefined"&&(m.busy.flag=!1);if(!m.busy.flag){h(m.busy.timeout);var b=function(){var a,c,d;if(m.busy.flag)return;for(a=m.queues.length-1;a>=0;--a){c=m.queues[a];if(c.length===0)continue;d=c.shift(),m.fireQueueItem(d),m.busy.timeout=g(b,m.options.busyDelay)}};m.busy.timeout=g(b,m.options.busyDelay)}return m.busy.flag},m.busy.flag=!1,m.fireQueueItem=function(a){return a.callback.apply(a.scope||m,a.args||[])},m.pushQueue=function(a){return m.queues[a.queue||0]=m.queues[a.queue||0]||[],m.queues[a.queue||0].push(a),m},m.queue=function(a,b){return typeof a=="function"&&(a={callback:a}),typeof b!="undefined"&&(a.queue=b),m.busy()?m.pushQueue(a):m.fireQueueItem(a),m},m.clearQueue=function(){return m.busy.flag=!1,m.queues=[],m},m.stateChanged=!1,m.doubleChecker=!1,m.doubleCheckComplete=function(){return m.stateChanged=!0,m.doubleCheckClear(),m},m.doubleCheckClear=function(){return m.doubleChecker&&(h(m.doubleChecker),m.doubleChecker=!1),m},m.doubleCheck=function(a){return m.stateChanged=!1,m.doubleCheckClear(),m.bugs.ieDoubleCheck&&(m.doubleChecker=g(function(){return m.doubleCheckClear(),m.stateChanged||a(),!0},m.options.doubleCheckInterval)),m},m.safariStatePoll=function(){var b=m.extractState(d.location.href),c;if(!m.isLastSavedState(b))c=b;else return;return c||(c=m.createStateObject()),m.Adapter.trigger(a,"popstate"),m},m.back=function(a){return a!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.back,args:arguments,queue:a}),!1):(m.busy(!0),m.doubleCheck(function(){m.back(!1)}),n.go(-1),!0)},m.forward=function(a){return a!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.forward,args:arguments,queue:a}),!1):(m.busy(!0),m.doubleCheck(function(){m.forward(!1)}),n.go(1),!0)},m.go=function(a,b){var c;if(a>0)for(c=1;c<=a;++c)m.forward(b);else{if(!(a<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(c=-1;c>=a;--c)m.back(b)}return m};if(m.emulated.pushState){var o=function(){};m.pushState=m.pushState||o,m.replaceState=m.replaceState||o}else m.onPopState=function(b,c){var e=!1,f=!1,g,h;return m.doubleCheckComplete(),g=m.getHash(),g?(h=m.extractState(g||d.location.href,!0),h?m.replaceState(h.data,h.title,h.url,!1):(m.Adapter.trigger(a,"anchorchange"),m.busy(!1)),m.expectedStateId=!1,!1):(e=m.Adapter.extractEventData("state",b,c)||!1,e?f=m.getStateById(e):m.expectedStateId?f=m.getStateById(m.expectedStateId):f=m.extractState(d.location.href),f||(f=m.createStateObject(null,null,d.location.href)),m.expectedStateId=!1,m.isLastSavedState(f)?(m.busy(!1),!1):(m.storeState(f),m.saveState(f),m.setTitle(f),m.Adapter.trigger(a,"statechange"),m.busy(!1),!0))},m.Adapter.bind(a,"popstate",m.onPopState),m.pushState=function(b,c,d,e){if(m.getHashByUrl(d)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.pushState,args:arguments,queue:e}),!1;m.busy(!0);var f=m.createStateObject(b,c,d);return m.isLastSavedState(f)?m.busy(!1):(m.storeState(f),m.expectedStateId=f.id,n.pushState(f.id,f.title,f.url),m.Adapter.trigger(a,"popstate")),!0},m.replaceState=function(b,c,d,e){if(m.getHashByUrl(d)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.replaceState,args:arguments,queue:e}),!1;m.busy(!0);var f=m.createStateObject(b,c,d);return m.isLastSavedState(f)?m.busy(!1):(m.storeState(f),m.expectedStateId=f.id,n.replaceState(f.id,f.title,f.url),m.Adapter.trigger(a,"popstate")),!0};if(f){try{m.store=k.parse(f.getItem("History.store"))||{}}catch(p){m.store={}}m.normalizeStore()}else m.store={},m.normalizeStore();m.Adapter.bind(a,"beforeunload",m.clearAllIntervals),m.Adapter.bind(a,"unload",m.clearAllIntervals),m.saveState(m.storeState(m.extractState(d.location.href,!0))),f&&(m.onUnload=function(){var a,b;try{a=k.parse(f.getItem("History.store"))||{}}catch(c){a={}}a.idToState=a.idToState||{},a.urlToId=a.urlToId||{},a.stateToId=a.stateToId||{};for(b in m.idToState){if(!m.idToState.hasOwnProperty(b))continue;a.idToState[b]=m.idToState[b]}for(b in m.urlToId){if(!m.urlToId.hasOwnProperty(b))continue;a.urlToId[b]=m.urlToId[b]}for(b in m.stateToId){if(!m.stateToId.hasOwnProperty(b))continue;a.stateToId[b]=m.stateToId[b]}m.store=a,m.normalizeStore(),f.setItem("History.store",k.stringify(a))},m.intervalList.push(i(m.onUnload,m.options.storeInterval)),m.Adapter.bind(a,"beforeunload",m.onUnload),m.Adapter.bind(a,"unload",m.onUnload));if(!m.emulated.pushState){m.bugs.safariPoll&&m.intervalList.push(i(m.safariStatePoll,m.options.safariPollInterval));if(e.vendor==="Apple Computer, Inc."||(e.appCodeName||"")==="Mozilla")m.Adapter.bind(a,"hashchange",function(){m.Adapter.trigger(a,"popstate")}),m.getHash()&&m.Adapter.onDomLoad(function(){m.Adapter.trigger(a,"hashchange")})}},m.init()}(window)
\ No newline at end of file
+/**
+ * History.js Native Adapter
+ * @author Benjamin Arthur Lupton <contact@balupton.com>
+ * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
+ * @license New BSD License <http://creativecommons.org/licenses/BSD/>
+ */
+
+// Closure
+(function(window,undefined){
+	"use strict";
+
+	// Localise Globals
+	var History = window.History = window.History||{};
+
+	// Check Existence
+	if ( typeof History.Adapter !== 'undefined' ) {
+		throw new Error('History.js Adapter has already been loaded...');
+	}
+
+	// Add the Adapter
+	History.Adapter = {
+		/**
+		 * History.Adapter.handlers[uid][eventName] = Array
+		 */
+		handlers: {},
+
+		/**
+		 * History.Adapter._uid
+		 * The current element unique identifier
+		 */
+		_uid: 1,
+
+		/**
+		 * History.Adapter.uid(element)
+		 * @param {Element} element
+		 * @return {String} uid
+		 */
+		 uid: function(element){
+			return element._uid || (element._uid = History.Adapter._uid++);
+		 },
+
+		/**
+		 * History.Adapter.bind(el,event,callback)
+		 * @param {Element} element
+		 * @param {String} eventName - custom and standard events
+		 * @param {Function} callback
+		 * @return
+		 */
+		bind: function(element,eventName,callback){
+			// Prepare
+			var uid = History.Adapter.uid(element);
+
+			// Apply Listener
+			History.Adapter.handlers[uid] = History.Adapter.handlers[uid] || {};
+			History.Adapter.handlers[uid][eventName] = History.Adapter.handlers[uid][eventName] || [];
+			History.Adapter.handlers[uid][eventName].push(callback);
+
+			// Bind Global Listener
+			element['on'+eventName] = (function(element,eventName){
+				return function(event){
+					History.Adapter.trigger(element,eventName,event);
+				};
+			})(element,eventName);
+		},
+
+		/**
+		 * History.Adapter.trigger(el,event)
+		 * @param {Element} element
+		 * @param {String} eventName - custom and standard events
+		 * @param {Object} event - a object of event data
+		 * @return
+		 */
+		trigger: function(element,eventName,event){
+			// Prepare
+			event = event || {};
+			var uid = History.Adapter.uid(element),
+				i,n;
+
+			// Apply Listener
+			History.Adapter.handlers[uid] = History.Adapter.handlers[uid] || {};
+			History.Adapter.handlers[uid][eventName] = History.Adapter.handlers[uid][eventName] || [];
+
+			// Fire Listeners
+			for ( i=0,n=History.Adapter.handlers[uid][eventName].length; i<n; ++i ) {
+				History.Adapter.handlers[uid][eventName][i].apply(this,[event]);
+			}
+		},
+
+		/**
+		 * History.Adapter.extractEventData(key,event,extra)
+		 * @param {String} key - key for the event data to extract
+		 * @param {String} event - custom and standard events
+		 * @return {mixed}
+		 */
+		extractEventData: function(key,event){
+			var result = (event && event[key]) || undefined;
+			return result;
+		},
+
+		/**
+		 * History.Adapter.onDomLoad(callback)
+		 * @param {Function} callback
+		 * @return
+		 */
+		onDomLoad: function(callback) {
+			var timeout = window.setTimeout(function(){
+				callback();
+			},2000);
+			window.onload = function(){
+				clearTimeout(timeout);
+				callback();
+			};
+		}
+	};
+
+	// Try and Initialise History
+	if ( typeof History.init !== 'undefined' ) {
+		History.init();
+	}
+
+})(window);
+/**
+ * History.js Core
+ * @author Benjamin Arthur Lupton <contact@balupton.com>
+ * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com>
+ * @license New BSD License <http://creativecommons.org/licenses/BSD/>
+ */
+
+(function(window,undefined){
+	"use strict";
+
+	// --------------------------------------------------------------------------
+	// Initialise
+
+	// Localise Globals
+	var
+		console = window.console||undefined, // Prevent a JSLint complain
+		document = window.document, // Make sure we are using the correct document
+		navigator = window.navigator, // Make sure we are using the correct navigator
+		amplify = window.amplify||false, // Amplify.js
+		setTimeout = window.setTimeout,
+		clearTimeout = window.clearTimeout,
+		setInterval = window.setInterval,
+		clearInterval = window.clearInterval,
+		JSON = window.JSON,
+		History = window.History = window.History||{}, // Public History Object
+		history = window.history; // Old History Object
+
+	// MooTools Compatibility
+	JSON.stringify = JSON.stringify||JSON.encode;
+	JSON.parse = JSON.parse||JSON.decode;
+
+	// Check Existence
+	if ( typeof History.init !== 'undefined' ) {
+		throw new Error('History.js Core has already been loaded...');
+	}
+
+	// Initialise History
+	History.init = function(){
+		// Check Load Status of Adapter
+		if ( typeof History.Adapter === 'undefined' ) {
+			return false;
+		}
+
+		// Check Load Status of Core
+		if ( typeof History.initCore !== 'undefined' ) {
+			History.initCore();
+		}
+
+		// Check Load Status of HTML4 Support
+		if ( typeof History.initHtml4 !== 'undefined' ) {
+			History.initHtml4();
+		}
+
+		// Return true
+		return true;
+	};
+
+	// --------------------------------------------------------------------------
+	// Initialise Core
+
+	// Initialise Core
+	History.initCore = function(){
+		// Initialise
+		if ( typeof History.initCore.initialized !== 'undefined' ) {
+			// Already Loaded
+			return false;
+		}
+		else {
+			History.initCore.initialized = true;
+		}
+
+		// ----------------------------------------------------------------------
+		// Options
+
+		/**
+		 * History.options
+		 * Configurable options
+		 */
+		History.options = History.options||{};
+
+		/**
+		 * History.options.hashChangeInterval
+		 * How long should the interval be before hashchange checks
+		 */
+		History.options.hashChangeInterval = History.options.hashChangeInterval || 100;
+
+		/**
+		 * History.options.safariPollInterval
+		 * How long should the interval be before safari poll checks
+		 */
+		History.options.safariPollInterval = History.options.safariPollInterval || 500;
+
+		/**
+		 * History.options.doubleCheckInterval
+		 * How long should the interval be before we perform a double check
+		 */
+		History.options.doubleCheckInterval = History.options.doubleCheckInterval || 500;
+
+		/**
+		 * History.options.storeInterval
+		 * How long should we wait between store calls
+		 */
+		History.options.storeInterval = History.options.storeInterval || 1000;
+
+		/**
+		 * History.options.busyDelay
+		 * How long should we wait between busy events
+		 */
+		History.options.busyDelay = History.options.busyDelay || 250;
+
+		/**
+		 * History.options.debug
+		 * If true will enable debug messages to be logged
+		 */
+		History.options.debug = History.options.debug || false;
+
+		/**
+		 * History.options.initialTitle
+		 * What is the title of the initial state
+		 */
+		History.options.initialTitle = History.options.initialTitle || document.title;
+
+
+		// ----------------------------------------------------------------------
+		// Interval record
+
+		/**
+		 * History.intervalList
+		 * List of intervals set, to be cleared when document is unloaded.
+		 */
+		History.intervalList = [];
+
+		/**
+		 * History.clearAllIntervals
+		 * Clears all setInterval instances.
+		 */
+		History.clearAllIntervals = function(){
+			var i, il = History.intervalList;
+			if (typeof il !== "undefined" && il !== null) {
+				for (i = 0; i < il.length; i++) {
+					clearInterval(il[i]);
+				}
+				History.intervalList = null;
+			}
+		};
+		History.Adapter.bind(window,"beforeunload",History.clearAllIntervals);
+		History.Adapter.bind(window,"unload",History.clearAllIntervals);
+
+
+		// ----------------------------------------------------------------------
+		// Debug
+
+		/**
+		 * History.debug(message,...)
+		 * Logs the passed arguments if debug enabled
+		 */
+		History.debug = function(){
+			if ( (History.options.debug||false) ) {
+				History.log.apply(History,arguments);
+			}
+		};
+
+		/**
+		 * History.log(message,...)
+		 * Logs the passed arguments
+		 */
+		History.log = function(){
+			// Prepare
+			var
+				consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'),
+				textarea = document.getElementById('log'),
+				message,
+				i,n
+				;
+
+			// Write to Console
+			if ( consoleExists ) {
+				var args = Array.prototype.slice.call(arguments);
+				message = args.shift();
+				if ( typeof console.debug !== 'undefined' ) {
+					console.debug.apply(console,[message,args]);
+				}
+				else {
+					console.log.apply(console,[message,args]);
+				}
+			}
+			else {
+				message = ("\n"+arguments[0]+"\n");
+			}
+
+			// Write to log
+			for ( i=1,n=arguments.length; i<n; ++i ) {
+				var arg = arguments[i];
+				if ( typeof arg === 'object' && typeof JSON !== 'undefined' ) {
+					try {
+						arg = JSON.stringify(arg);
+					}
+					catch ( Exception ) {
+						// Recursive Object
+					}
+				}
+				message += "\n"+arg+"\n";
+			}
+
+			// Textarea
+			if ( textarea ) {
+				textarea.value += message+"\n-----\n";
+				textarea.scrollTop = textarea.scrollHeight - textarea.clientHeight;
+			}
+			// No Textarea, No Console
+			else if ( !consoleExists ) {
+				alert(message);
+			}
+
+			// Return true
+			return true;
+		};
+
+		// ----------------------------------------------------------------------
+		// Emulated Status
+
+		/**
+		 * History.getInternetExplorerMajorVersion()
+		 * Get's the major version of Internet Explorer
+		 * @return {integer}
+		 * @license Public Domain
+		 * @author Benjamin Arthur Lupton <contact@balupton.com>
+		 * @author James Padolsey <https://gist.github.com/527683>
+		 */
+		History.getInternetExplorerMajorVersion = function(){
+			var result = History.getInternetExplorerMajorVersion.cached =
+					(typeof History.getInternetExplorerMajorVersion.cached !== 'undefined')
+				?	History.getInternetExplorerMajorVersion.cached
+				:	(function(){
+						var v = 3,
+								div = document.createElement('div'),
+								all = div.getElementsByTagName('i');
+						while ( (div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->') && all[0] ) {}
+						return (v > 4) ? v : false;
+					})()
+				;
+			return result;
+		};
+
+		/**
+		 * History.isInternetExplorer()
+		 * Are we using Internet Explorer?
+		 * @return {boolean}
+		 * @license Public Domain
+		 * @author Benjamin Arthur Lupton <contact@balupton.com>
+		 */
+		History.isInternetExplorer = function(){
+			var result =
+				History.isInternetExplorer.cached =
+				(typeof History.isInternetExplorer.cached !== 'undefined')
+					?	History.isInternetExplorer.cached
+					:	Boolean(History.getInternetExplorerMajorVersion())
+				;
+			return result;
+		};
+
+		/**
+		 * History.emulated
+		 * Which features require emulating?
+		 */
+		History.emulated = {
+			pushState: !Boolean(
+				window.history && window.history.pushState && window.history.replaceState
+				&& !(
+					(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(navigator.userAgent) /* disable for versions of iOS before version 4.3 (8F190) */
+					|| (/AppleWebKit\/5([0-2]|3[0-2])/i).test(navigator.userAgent) /* disable for the mercury iOS browser, or at least older versions of the webkit engine */
+				)
+			),
+			hashChange: Boolean(
+				!(('onhashchange' in window) || ('onhashchange' in document))
+				||
+				(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8)
+			)
+		};
+
+		/**
+		 * History.enabled
+		 * Is History enabled?
+		 */
+		History.enabled = !History.emulated.pushState;
+
+		/**
+		 * History.bugs
+		 * Which bugs are present
+		 */
+		History.bugs = {
+			/**
+			 * Safari 5 and Safari iOS 4 fail to return to the correct state once a hash is replaced by a `replaceState` call
+			 * https://bugs.webkit.org/show_bug.cgi?id=56249
+			 */
+			setHash: Boolean(!History.emulated.pushState && navigator.vendor === 'Apple Computer, Inc.' && /AppleWebKit\/5([0-2]|3[0-3])/.test(navigator.userAgent)),
+
+			/**
+			 * Safari 5 and Safari iOS 4 sometimes fail to apply the state change under busy conditions
+			 * https://bugs.webkit.org/show_bug.cgi?id=42940
+			 */
+			safariPoll: Boolean(!History.emulated.pushState && navigator.vendor === 'Apple Computer, Inc.' && /AppleWebKit\/5([0-2]|3[0-3])/.test(navigator.userAgent)),
+
+			/**
+			 * MSIE 6 and 7 sometimes do not apply a hash even it was told to (requiring a second call to the apply function)
+			 */
+			ieDoubleCheck: Boolean(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8),
+
+			/**
+			 * MSIE 6 requires the entire hash to be encoded for the hashes to trigger the onHashChange event
+			 */
+			hashEscape: Boolean(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 7)
+		};
+
+		/**
+		 * History.isEmptyObject(obj)
+		 * Checks to see if the Object is Empty
+		 * @param {Object} obj
+		 * @return {boolean}
+		 */
+		History.isEmptyObject = function(obj) {
+			for ( var name in obj ) {
+				return false;
+			}
+			return true;
+		};
+
+		/**
+		 * History.cloneObject(obj)
+		 * Clones a object
+		 * @param {Object} obj
+		 * @return {Object}
+		 */
+		History.cloneObject = function(obj) {
+			var hash,newObj;
+			if ( obj ) {
+				hash = JSON.stringify(obj);
+				newObj = JSON.parse(hash);
+			}
+			else {
+				newObj = {};
+			}
+			return newObj;
+		};
+
+		// ----------------------------------------------------------------------
+		// URL Helpers
+
+		/**
+		 * History.getRootUrl()
+		 * Turns "http://mysite.com/dir/page.html?asd" into "http://mysite.com"
+		 * @return {String} rootUrl
+		 */
+		History.getRootUrl = function(){
+			// Create
+			var rootUrl = document.location.protocol+'//'+(document.location.hostname||document.location.host);
+			if ( document.location.port||false ) {
+				rootUrl += ':'+document.location.port;
+			}
+			rootUrl += '/';
+
+			// Return
+			return rootUrl;
+		};
+
+		/**
+		 * History.getBaseHref()
+		 * Fetches the `href` attribute of the `<base href="...">` element if it exists
+		 * @return {String} baseHref
+		 */
+		History.getBaseHref = function(){
+			// Create
+			var
+				baseElements = document.getElementsByTagName('base'),
+				baseElement = null,
+				baseHref = '';
+
+			// Test for Base Element
+			if ( baseElements.length === 1 ) {
+				// Prepare for Base Element
+				baseElement = baseElements[0];
+				baseHref = baseElement.href.replace(/[^\/]+$/,'');
+			}
+
+			// Adjust trailing slash
+			baseHref = baseHref.replace(/\/+$/,'');
+			if ( baseHref ) baseHref += '/';
+
+			// Return
+			return baseHref;
+		};
+
+		/**
+		 * History.getBaseUrl()
+		 * Fetches the baseHref or basePageUrl or rootUrl (whichever one exists first)
+		 * @return {String} baseUrl
+		 */
+		History.getBaseUrl = function(){
+			// Create
+			var baseUrl = History.getBaseHref()||History.getBasePageUrl()||History.getRootUrl();
+
+			// Return
+			return baseUrl;
+		};
+
+		/**
+		 * History.getPageUrl()
+		 * Fetches the URL of the current page
+		 * @return {String} pageUrl
+		 */
+		History.getPageUrl = function(){
+			// Fetch
+			var
+				State = History.getState(false,false),
+				stateUrl = (State||{}).url||document.URL||document.location.href;
+
+			// Create
+			var pageUrl = stateUrl.replace(/\/+$/,'').replace(/[^\/]+$/,function(part,index,string){
+				return (/\./).test(part) ? part : part+'/';
+			});
+
+			// Return
+			return pageUrl;
+		};
+
+		/**
+		 * History.getBasePageUrl()
+		 * Fetches the Url of the directory of the current page
+		 * @return {String} basePageUrl
+		 */
+		History.getBasePageUrl = function(){
+			// Create
+			var basePageUrl = (document.URL||document.location.href).replace(/[#\?].*/,'').replace(/[^\/]+$/,function(part,index,string){
+				return (/[^\/]$/).test(part) ? '' : part;
+			}).replace(/\/+$/,'')+'/';
+
+			// Return
+			return basePageUrl;
+		};
+
+		/**
+		 * History.getFullUrl(url)
+		 * Ensures that we have an absolute URL and not a relative URL
+		 * @param {string} url
+		 * @param {Boolean} allowBaseHref
+		 * @return {string} fullUrl
+		 */
+		History.getFullUrl = function(url,allowBaseHref){
+			// Prepare
+			var fullUrl = url, firstChar = url.substring(0,1);
+			allowBaseHref = (typeof allowBaseHref === 'undefined') ? true : allowBaseHref;
+
+			// Check
+			if ( /[a-z]+\:\/\//.test(url) ) {
+				// Full URL
+			}
+			else if ( firstChar === '/' ) {
+				// Root URL
+				fullUrl = History.getRootUrl()+url.replace(/^\/+/,'');
+			}
+			else if ( firstChar === '#' ) {
+				// Anchor URL
+				fullUrl = History.getPageUrl().replace(/#.*/,'')+url;
+			}
+			else if ( firstChar === '?' ) {
+				// Query URL
+				fullUrl = History.getPageUrl().replace(/[\?#].*/,'')+url;
+			}
+			else {
+				// Relative URL
+				if ( allowBaseHref ) {
+					fullUrl = History.getBaseUrl()+url.replace(/^(\.\/)+/,'');
+				} else {
+					fullUrl = History.getBasePageUrl()+url.replace(/^(\.\/)+/,'');
+				}
+				// We have an if condition above as we do not want hashes
+				// which are relative to the baseHref in our URLs
+				// as if the baseHref changes, then all our bookmarks
+				// would now point to different locations
+				// whereas the basePageUrl will always stay the same
+			}
+
+			// Return
+			return fullUrl.replace(/\#$/,'');
+		};
+
+		/**
+		 * History.getShortUrl(url)
+		 * Ensures that we have a relative URL and not a absolute URL
+		 * @param {string} url
+		 * @return {string} url
+		 */
+		History.getShortUrl = function(url){
+			// Prepare
+			var shortUrl = url, baseUrl = History.getBaseUrl(), rootUrl = History.getRootUrl();
+
+			// Trim baseUrl
+			if ( History.emulated.pushState ) {
+				// We are in a if statement as when pushState is not emulated
+				// The actual url these short urls are relative to can change
+				// So within the same session, we the url may end up somewhere different
+				shortUrl = shortUrl.replace(baseUrl,'');
+			}
+
+			// Trim rootUrl
+			shortUrl = shortUrl.replace(rootUrl,'/');
+
+			// Ensure we can still detect it as a state
+			if ( History.isTraditionalAnchor(shortUrl) ) {
+				shortUrl = './'+shortUrl;
+			}
+
+			// Clean It
+			shortUrl = shortUrl.replace(/^(\.\/)+/g,'./').replace(/\#$/,'');
+
+			// Return
+			return shortUrl;
+		};
+
+		// ----------------------------------------------------------------------
+		// State Storage
+
+		/**
+		 * History.store
+		 * The store for all session specific data
+		 */
+		History.store = amplify ? (amplify.store('History.store')||{}) : {};
+		History.store.idToState = History.store.idToState||{};
+		History.store.urlToId = History.store.urlToId||{};
+		History.store.stateToId = History.store.stateToId||{};
+
+		/**
+		 * History.idToState
+		 * 1-1: State ID to State Object
+		 */
+		History.idToState = History.idToState||{};
+
+		/**
+		 * History.stateToId
+		 * 1-1: State String to State ID
+		 */
+		History.stateToId = History.stateToId||{};
+
+		/**
+		 * History.urlToId
+		 * 1-1: State URL to State ID
+		 */
+		History.urlToId = History.urlToId||{};
+
+		/**
+		 * History.storedStates
+		 * Store the states in an array
+		 */
+		History.storedStates = History.storedStates||[];
+
+		/**
+		 * History.savedStates
+		 * Saved the states in an array
+		 */
+		History.savedStates = History.savedStates||[];
+
+		/**
+		 * History.getState()
+		 * Get an object containing the data, title and url of the current state
+		 * @param {Boolean} friendly
+		 * @param {Boolean} create
+		 * @return {Object} State
+		 */
+		History.getState = function(friendly,create){
+			// Prepare
+			if ( typeof friendly === 'undefined' ) { friendly = true; }
+			if ( typeof create === 'undefined' ) { create = true; }
+
+			// Fetch
+			var State = History.getLastSavedState();
+
+			// Create
+			if ( !State && create ) {
+				State = History.createStateObject();
+			}
+
+			// Adjust
+			if ( friendly ) {
+				State = History.cloneObject(State);
+				State.url = State.cleanUrl||State.url;
+			}
+
+			// Return
+			return State;
+		};
+
+		/**
+		 * History.getIdByState(State)
+		 * Gets a ID for a State
+		 * @param {State} newState
+		 * @return {String} id
+		 */
+		History.getIdByState = function(newState){
+
+			// Fetch ID
+			var id = History.extractId(newState.url);
+			if ( !id ) {
+				// Find ID via State String
+				var str = History.getStateString(newState);
+				if ( typeof History.stateToId[str] !== 'undefined' ) {
+					id = History.stateToId[str];
+				}
+				else if ( typeof History.store.stateToId[str] !== 'undefined' ) {
+					id = History.store.stateToId[str];
+				}
+				else {
+					// Generate a new ID
+					while ( true ) {
+						id = String(Math.floor(Math.random()*1000));
+						if ( typeof History.idToState[id] === 'undefined' && typeof History.store.idToState[id] === 'undefined' ) {
+							break;
+						}
+					}
+
+					// Apply the new State to the ID
+					History.stateToId[str] = id;
+					History.idToState[id] = newState;
+				}
+			}
+
+			// Return ID
+			return id;
+		};
+
+		/**
+		 * History.normalizeState(State)
+		 * Expands a State Object
+		 * @param {object} State
+		 * @return {object}
+		 */
+		History.normalizeState = function(oldState){
+			// Prepare
+			if ( !oldState || (typeof oldState !== 'object') ) {
+				oldState = {};
+			}
+
+			// Check
+			if ( typeof oldState.normalized !== 'undefined' ) {
+				return oldState;
+			}
+
+			// Adjust
+			if ( !oldState.data || (typeof oldState.data !== 'object') ) {
+				oldState.data = {};
+			}
+
+			// ----------------------------------------------------------------------
+
+			// Create
+			var newState = {};
+			newState.normalized = true;
+			newState.title = oldState.title||'';
+			newState.url = History.getFullUrl(oldState.url?decodeURIComponent(oldState.url):(document.URL||document.location.href));
+			newState.hash = History.getShortUrl(newState.url);
+			newState.data = History.cloneObject(oldState.data);
+
+			// Fetch ID
+			newState.id = History.getIdByState(newState);
+
+			// ----------------------------------------------------------------------
+
+			// Clean the URL
+			newState.cleanUrl = newState.url.replace(/\??\&_suid.*/,'');
+			newState.url = newState.cleanUrl;
+
+			// Check to see if we have more than just a url
+			var dataNotEmpty = !History.isEmptyObject(newState.data);
+
+			// Apply
+			if ( newState.title || dataNotEmpty ) {
+				// Add ID to Hash
+				newState.hash = History.getShortUrl(newState.url).replace(/\??\&_suid.*/,'');
+				if ( !/\?/.test(newState.hash) ) {
+					newState.hash += '?';
+				}
+				newState.hash += '&_suid='+newState.id;
+			}
+
+			// Create the Hashed URL
+			newState.hashedUrl = History.getFullUrl(newState.hash);
+
+			// ----------------------------------------------------------------------
+
+			// Update the URL if we have a duplicate
+			if ( (History.emulated.pushState || History.bugs.safariPoll) && History.hasUrlDuplicate(newState) ) {
+				newState.url = newState.hashedUrl;
+			}
+
+			// ----------------------------------------------------------------------
+
+			// Return
+			return newState;
+		};
+
+		/**
+		 * History.createStateObject(data,title,url)
+		 * Creates a object based on the data, title and url state params
+		 * @param {object} data
+		 * @param {string} title
+		 * @param {string} url
+		 * @return {object}
+		 */
+		History.createStateObject = function(data,title,url){
+			// Hashify
+			var State = {
+				'data': data,
+				'title': title,
+				'url': encodeURIComponent(url||"")
+			};
+
+			// Expand the State
+			State = History.normalizeState(State);
+
+			// Return object
+			return State;
+		};
+
+		/**
+		 * History.getStateById(id)
+		 * Get a state by it's UID
+		 * @param {String} id
+		 */
+		History.getStateById = function(id){
+			// Prepare
+			id = String(id);
+
+			// Retrieve
+			var State = History.idToState[id] || History.store.idToState[id] || undefined;
+
+			// Return State
+			return State;
+		};
+
+		/**
+		 * Get a State's String
+		 * @param {State} passedState
+		 */
+		History.getStateString = function(passedState){
+			// Prepare
+			var State = History.normalizeState(passedState);
+
+			// Clean
+			var cleanedState = {
+				data: State.data,
+				title: passedState.title,
+				url: passedState.url
+			};
+
+			// Fetch
+			var str = JSON.stringify(cleanedState);
+
+			// Return
+			return str;
+		};
+
+		/**
+		 * Get a State's ID
+		 * @param {State} passedState
+		 * @return {String} id
+		 */
+		History.getStateId = function(passedState){
+			// Prepare
+			var State = History.normalizeState(passedState);
+
+			// Fetch
+			var id = State.id;
+
+			// Return
+			return id;
+		};
+
+		/**
+		 * History.getHashByState(State)
+		 * Creates a Hash for the State Object
+		 * @param {State} passedState
+		 * @return {String} hash
+		 */
+		History.getHashByState = function(passedState){
+			// Prepare
+			var hash, State = History.normalizeState(passedState);
+
+			// Fetch
+			hash = State.hash;
+
+			// Return
+			return hash;
+		};
+
+		/**
+		 * History.extractId(url_or_hash)
+		 * Get a State ID by it's URL or Hash
+		 * @param {string} url_or_hash
+		 * @return {string} id
+		 */
+		History.extractId = function ( url_or_hash ) {
+			// Prepare
+			var id;
+
+			// Extract
+			var parts,url;
+			parts = /(.*)\&_suid=([0-9]+)$/.exec(url_or_hash);
+			url = parts ? (parts[1]||url_or_hash) : url_or_hash;
+			id = parts ? String(parts[2]||'') : '';
+
+			// Return
+			return id||false;
+		};
+
+		/**
+		 * History.isTraditionalAnchor
+		 * Checks to see if the url is a traditional anchor or not
+		 * @param {String} url_or_hash
+		 * @return {Boolean}
+		 */
+		History.isTraditionalAnchor = function(url_or_hash){
+			// Check
+			var isTraditional = !(/[\/\?\.]/.test(url_or_hash));
+
+			// Return
+			return isTraditional;
+		};
+
+		/**
+		 * History.extractState
+		 * Get a State by it's URL or Hash
+		 * @param {String} url_or_hash
+		 * @return {State|null}
+		 */
+		History.extractState = function(url_or_hash,create){
+			// Prepare
+			var State = null;
+			create = create||false;
+
+			// Fetch SUID
+			var id = History.extractId(url_or_hash);
+			if ( id ) {
+				State = History.getStateById(id);
+			}
+
+			// Fetch SUID returned no State
+			if ( !State ) {
+				// Fetch URL
+				var url = History.getFullUrl(url_or_hash);
+
+				// Check URL
+				id = History.getIdByUrl(url)||false;
+				if ( id ) {
+					State = History.getStateById(id);
+				}
+
+				// Create State
+				if ( !State && create && !History.isTraditionalAnchor(url_or_hash) ) {
+					State = History.createStateObject(null,null,url);
+				}
+			}
+
+			// Return
+			return State;
+		};
+
+		/**
+		 * History.getIdByUrl()
+		 * Get a State ID by a State URL
+		 */
+		History.getIdByUrl = function(url){
+			// Fetch
+			var id = History.urlToId[url] || History.store.urlToId[url] || undefined;
+
+			// Return
+			return id;
+		};
+
+		/**
+		 * History.getLastSavedState()
+		 * Get an object containing the data, title and url of the current state
+		 * @return {Object} State
+		 */
+		History.getLastSavedState = function(){
+			return History.savedStates[History.savedStates.length-1]||undefined;
+		};
+
+		/**
+		 * History.getLastStoredState()
+		 * Get an object containing the data, title and url of the current state
+		 * @return {Object} State
+		 */
+		History.getLastStoredState = function(){
+			return History.storedStates[History.storedStates.length-1]||undefined;
+		};
+
+		/**
+		 * History.hasUrlDuplicate
+		 * Checks if a Url will have a url conflict
+		 * @param {Object} newState
+		 * @return {Boolean} hasDuplicate
+		 */
+		History.hasUrlDuplicate = function(newState) {
+			// Prepare
+			var hasDuplicate = false;
+
+			// Fetch
+			var oldState = History.extractState(newState.url);
+
+			// Check
+			hasDuplicate = oldState && oldState.id !== newState.id;
+
+			// Return
+			return hasDuplicate;
+		};
+
+		/**
+		 * History.storeState
+		 * Store a State
+		 * @param {Object} newState
+		 * @return {Object} newState
+		 */
+		History.storeState = function(newState){
+			// Store the State
+			History.urlToId[newState.url] = newState.id;
+
+			// Push the State
+			History.storedStates.push(History.cloneObject(newState));
+
+			// Return newState
+			return newState;
+		};
+
+		/**
+		 * History.isLastSavedState(newState)
+		 * Tests to see if the state is the last state
+		 * @param {Object} newState
+		 * @return {boolean} isLast
+		 */
+		History.isLastSavedState = function(newState){
+			// Prepare
+			var isLast = false;
+
+			// Check
+			if ( History.savedStates.length ) {
+				var
+					newId = newState.id,
+					oldState = History.getLastSavedState(),
+					oldId = oldState.id;
+
+				// Check
+				isLast = (newId === oldId);
+			}
+
+			// Return
+			return isLast;
+		};
+
+		/**
+		 * History.saveState
+		 * Push a State
+		 * @param {Object} newState
+		 * @return {boolean} changed
+		 */
+		History.saveState = function(newState){
+			// Check Hash
+			if ( History.isLastSavedState(newState) ) {
+				return false;
+			}
+
+			// Push the State
+			History.savedStates.push(History.cloneObject(newState));
+
+			// Return true
+			return true;
+		};
+
+		/**
+		 * History.getStateByIndex()
+		 * Gets a state by the index
+		 * @param {integer} index
+		 * @return {Object}
+		 */
+		History.getStateByIndex = function(index){
+			// Prepare
+			var State = null;
+
+			// Handle
+			if ( typeof index === 'undefined' ) {
+				// Get the last inserted
+				State = History.savedStates[History.savedStates.length-1];
+			}
+			else if ( index < 0 ) {
+				// Get from the end
+				State = History.savedStates[History.savedStates.length+index];
+			}
+			else {
+				// Get from the beginning
+				State = History.savedStates[index];
+			}
+
+			// Return State
+			return State;
+		};
+
+		// ----------------------------------------------------------------------
+		// Hash Helpers
+
+
+		/**
+		 * History.escapeString()
+		 * Escape a string
+		 * @param {String} str
+		 * @return {string}
+		 */
+		History.escapeString = function(str){
+			return encodeURI(url).replace(/%25/g, "%", "g");
+		};
+
+		/**
+		 * History.getHash()
+		 * @param {Location=} location
+		 * Gets the current document hash
+		 * Note: unlike location.hash, this is guaranteed to return the escaped hash in all browsers
+		 * @return {string}
+		 */
+		History.getHash = function(location){
+			if ( !location ) location = document.location;
+			var href = location.href.replace( /^[^#]*/, "" );
+			return href.substr(1);
+		};
+
+		/**
+		 * History.unescapeHash()
+		 * normalize and Unescape a Hash
+		 * @param {String} hash
+		 * @return {string}
+		 */
+		History.unescapeHash = function(hash){
+			// Prepare
+			var result = History.normalizeHash(hash);
+
+			// Unescape hash
+			result = decodeURIComponent(result);
+
+			// Return result
+			return result;
+		};
+
+		/**
+		 * History.normalizeHash()
+		 * normalize a hash across browsers
+		 * @return {string}
+		 */
+		History.normalizeHash = function(hash){
+			var result = hash.replace(/[^#]*#/,'').replace(/#.*/, '');
+
+			// Return result
+			return result;
+		};
+
+		/**
+		 * History.setHash(hash)
+		 * Sets the document hash
+		 * @param {string} hash
+		 * @return {History}
+		 */
+		History.setHash = function(hash,queue){
+			// Handle Queueing
+			if ( queue !== false && History.busy() ) {
+				// Wait + Push to Queue
+				//History.debug('History.setHash: we must wait', arguments);
+				History.pushQueue({
+					scope: History,
+					callback: History.setHash,
+					args: arguments,
+					queue: queue
+				});
+				return false;
+			}
+
+			// Log
+			//History.debug('History.setHash: called',hash);
+
+			// Make Busy + Continue
+			History.busy(true);
+
+			// Check if hash is a state
+			var State = History.extractState(hash,true);
+			if ( State && !History.emulated.pushState ) {
+				// Hash is a state so skip the setHash
+				//History.debug('History.setHash: Hash is a state so skipping the hash set with a direct pushState call',arguments);
+
+				// PushState
+				History.pushState(State.data,State.title,State.url,false);
+			}
+			else if ( History.getHash() !== hash ) {
+				// Hash is a proper hash, so apply it
+
+				// Handle browser bugs
+				if ( History.bugs.setHash ) {
+					// Fix Safari Bug https://bugs.webkit.org/show_bug.cgi?id=56249
+
+					// Fetch the base page
+					var pageUrl = History.getPageUrl();
+
+					// Safari hash apply
+					History.pushState(null,null,pageUrl+'#'+hash,false);
+				}
+				else {
+					// Normal hash apply
+					document.location.hash = hash;
+				}
+			}
+
+			// Chain
+			return History;
+		};
+
+		/**
+		 * History.escape()
+		 * normalize and Escape a Hash
+		 * @return {string}
+		 */
+		History.escapeHash = function(hash){
+			var result = History.normalizeHash(hash);
+
+			// Escape hash
+			result = window.encodeURIComponent(result);
+
+			// IE6 Escape Bug
+			if ( !History.bugs.hashEscape ) {
+				// Restore common parts
+				result = result
+					.replace(/\%21/g,'!')
+					.replace(/\%26/g,'&')
+					.replace(/\%3D/g,'=')
+					.replace(/\%3F/g,'?');
+			}
+
+			// Return result
+			return result;
+		};
+
+		/**
+		 * History.getHashByUrl(url)
+		 * Extracts the Hash from a URL
+		 * @param {string} url
+		 * @return {string} url
+		 */
+		History.getHashByUrl = function(url){
+			// Extract the hash
+			var hash = String(url)
+				.replace(/([^#]*)#?([^#]*)#?(.*)/, '$2')
+				;
+
+			// Unescape hash
+			hash = History.unescapeHash(hash);
+
+			// Return hash
+			return hash;
+		};
+
+		/**
+		 * History.setTitle(title)
+		 * Applies the title to the document
+		 * @param {State} newState
+		 * @return {Boolean}
+		 */
+		History.setTitle = function(newState){
+			// Prepare
+			var title = newState.title;
+
+			// Initial
+			if ( !title ) {
+				var firstState = History.getStateByIndex(0);
+				if ( firstState && firstState.url === newState.url ) {
+					title = firstState.title||History.options.initialTitle;
+				}
+			}
+
+			// Apply
+			try {
+				document.getElementsByTagName('title')[0].innerHTML = title.replace('<','&lt;').replace('>','&gt;').replace(' & ',' &amp; ');
+			}
+			catch ( Exception ) { }
+			document.title = title;
+
+			// Chain
+			return History;
+		};
+
+		// ----------------------------------------------------------------------
+		// Queueing
+
+		/**
+		 * History.queues
+		 * The list of queues to use
+		 * First In, First Out
+		 */
+		History.queues = [];
+
+		/**
+		 * History.busy(value)
+		 * @param {boolean} value [optional]
+		 * @return {boolean} busy
+		 */
+		History.busy = function(value){
+			// Apply
+			if ( typeof value !== 'undefined' ) {
+				//History.debug('History.busy: changing ['+(History.busy.flag||false)+'] to ['+(value||false)+']', History.queues.length);
+				History.busy.flag = value;
+			}
+			// Default
+			else if ( typeof History.busy.flag === 'undefined' ) {
+				History.busy.flag = false;
+			}
+
+			// Queue
+			if ( !History.busy.flag ) {
+				// Execute the next item in the queue
+				clearTimeout(History.busy.timeout);
+				var fireNext = function(){
+					if ( History.busy.flag ) return;
+					for ( var i=History.queues.length-1; i >= 0; --i ) {
+						var queue = History.queues[i];
+						if ( queue.length === 0 ) continue;
+						var item = queue.shift();
+						History.fireQueueItem(item);
+						History.busy.timeout = setTimeout(fireNext,History.options.busyDelay);
+					}
+				};
+				History.busy.timeout = setTimeout(fireNext,History.options.busyDelay);
+			}
+
+			// Return
+			return History.busy.flag;
+		};
+
+		/**
+		 * History.fireQueueItem(item)
+		 * Fire a Queue Item
+		 * @param {Object} item
+		 * @return {Mixed} result
+		 */
+		History.fireQueueItem = function(item){
+			return item.callback.apply(item.scope||History,item.args||[]);
+		};
+
+		/**
+		 * History.pushQueue(callback,args)
+		 * Add an item to the queue
+		 * @param {Object} item [scope,callback,args,queue]
+		 */
+		History.pushQueue = function(item){
+			// Prepare the queue
+			History.queues[item.queue||0] = History.queues[item.queue||0]||[];
+
+			// Add to the queue
+			History.queues[item.queue||0].push(item);
+
+			// Chain
+			return History;
+		};
+
+		/**
+		 * History.queue (item,queue), (func,queue), (func), (item)
+		 * Either firs the item now if not busy, or adds it to the queue
+		 */
+		History.queue = function(item,queue){
+			// Prepare
+			if ( typeof item === 'function' ) {
+				item = {
+					callback: item
+				};
+			}
+			if ( typeof queue !== 'undefined' ) {
+				item.queue = queue;
+			}
+
+			// Handle
+			if ( History.busy() ) {
+				History.pushQueue(item);
+			} else {
+				History.fireQueueItem(item);
+			}
+
+			// Chain
+			return History;
+		};
+
+		/**
+		 * History.clearQueue()
+		 * Clears the Queue
+		 */
+		History.clearQueue = function(){
+			History.busy.flag = false;
+			History.queues = [];
+			return History;
+		};
+
+
+		// ----------------------------------------------------------------------
+		// IE Bug Fix
+
+		/**
+		 * History.stateChanged
+		 * States whether or not the state has changed since the last double check was initialised
+		 */
+		History.stateChanged = false;
+
+		/**
+		 * History.doubleChecker
+		 * Contains the timeout used for the double checks
+		 */
+		History.doubleChecker = false;
+
+		/**
+		 * History.doubleCheckComplete()
+		 * Complete a double check
+		 * @return {History}
+		 */
+		History.doubleCheckComplete = function(){
+			// Update
+			History.stateChanged = true;
+
+			// Clear
+			History.doubleCheckClear();
+
+			// Chain
+			return History;
+		};
+
+		/**
+		 * History.doubleCheckClear()
+		 * Clear a double check
+		 * @return {History}
+		 */
+		History.doubleCheckClear = function(){
+			// Clear
+			if ( History.doubleChecker ) {
+				clearTimeout(History.doubleChecker);
+				History.doubleChecker = false;
+			}
+
+			// Chain
+			return History;
+		};
+
+		/**
+		 * History.doubleCheck()
+		 * Create a double check
+		 * @return {History}
+		 */
+		History.doubleCheck = function(tryAgain){
+			// Reset
+			History.stateChanged = false;
+			History.doubleCheckClear();
+
+			// Fix IE6,IE7 bug where calling history.back or history.forward does not actually change the hash (whereas doing it manually does)
+			// Fix Safari 5 bug where sometimes the state does not change: https://bugs.webkit.org/show_bug.cgi?id=42940
+			if ( History.bugs.ieDoubleCheck ) {
+				// Apply Check
+				History.doubleChecker = setTimeout(
+					function(){
+						History.doubleCheckClear();
+						if ( !History.stateChanged ) {
+							//History.debug('History.doubleCheck: State has not yet changed, trying again', arguments);
+							// Re-Attempt
+							tryAgain();
+						}
+						return true;
+					},
+					History.options.doubleCheckInterval
+				);
+			}
+
+			// Chain
+			return History;
+		};
+
+		// ----------------------------------------------------------------------
+		// Safari Bug Fix
+
+		/**
+		 * History.safariStatePoll()
+		 * Poll the current state
+		 * @return {History}
+		 */
+		History.safariStatePoll = function(){
+			// Poll the URL
+
+			// Get the Last State which has the new URL
+			var
+				urlState = History.extractState(document.URL||document.location.href),
+				newState;
+
+			// Check for a difference
+			if ( !History.isLastSavedState(urlState) ) {
+				newState = urlState;
+			}
+			else {
+				return;
+			}
+
+			// Check if we have a state with that url
+			// If not create it
+			if ( !newState ) {
+				//History.debug('History.safariStatePoll: new');
+				newState = History.createStateObject();
+			}
+
+			// Apply the New State
+			//History.debug('History.safariStatePoll: trigger');
+			History.Adapter.trigger(window,'popstate');
+
+			// Chain
+			return History;
+		};
+
+		// ----------------------------------------------------------------------
+		// State Aliases
+
+		/**
+		 * History.back(queue)
+		 * Send the browser history back one item
+		 * @param {Integer} queue [optional]
+		 */
+		History.back = function(queue){
+			//History.debug('History.back: called', arguments);
+
+			// Handle Queueing
+			if ( queue !== false && History.busy() ) {
+				// Wait + Push to Queue
+				//History.debug('History.back: we must wait', arguments);
+				History.pushQueue({
+					scope: History,
+					callback: History.back,
+					args: arguments,
+					queue: queue
+				});
+				return false;
+			}
+
+			// Make Busy + Continue
+			History.busy(true);
+
+			// Fix certain browser bugs that prevent the state from changing
+			History.doubleCheck(function(){
+				History.back(false);
+			});
+
+			// Go back
+			history.go(-1);
+
+			// End back closure
+			return true;
+		};
+
+		/**
+		 * History.forward(queue)
+		 * Send the browser history forward one item
+		 * @param {Integer} queue [optional]
+		 */
+		History.forward = function(queue){
+			//History.debug('History.forward: called', arguments);
+
+			// Handle Queueing
+			if ( queue !== false && History.busy() ) {
+				// Wait + Push to Queue
+				//History.debug('History.forward: we must wait', arguments);
+				History.pushQueue({
+					scope: History,
+					callback: History.forward,
+					args: arguments,
+					queue: queue
+				});
+				return false;
+			}
+
+			// Make Busy + Continue
+			History.busy(true);
+
+			// Fix certain browser bugs that prevent the state from changing
+			History.doubleCheck(function(){
+				History.forward(false);
+			});
+
+			// Go forward
+			history.go(1);
+
+			// End forward closure
+			return true;
+		};
+
+		/**
+		 * History.go(index,queue)
+		 * Send the browser history back or forward index times
+		 * @param {Integer} queue [optional]
+		 */
+		History.go = function(index,queue){
+			//History.debug('History.go: called', arguments);
+
+			// Prepare
+			var i;
+
+			// Handle
+			if ( index > 0 ) {
+				// Forward
+				for ( i=1; i<=index; ++i ) {
+					History.forward(queue);
+				}
+			}
+			else if ( index < 0 ) {
+				// Backward
+				for ( i=-1; i>=index; --i ) {
+					History.back(queue);
+				}
+			}
+			else {
+				throw new Error('History.go: History.go requires a positive or negative integer passed.');
+			}
+
+			// Chain
+			return History;
+		};
+
+
+		// ----------------------------------------------------------------------
+		// Initialise
+
+		/**
+		 * Create the initial State
+		 */
+		History.saveState(History.storeState(History.extractState(document.URL||document.location.href,true)));
+
+		/**
+		 * Bind for Saving Store
+		 */
+		if ( amplify ) {
+			History.onUnload = function(){
+				// Prepare
+				var
+					currentStore = amplify.store('History.store')||{},
+					item;
+
+				// Ensure
+				currentStore.idToState = currentStore.idToState || {};
+				currentStore.urlToId = currentStore.urlToId || {};
+				currentStore.stateToId = currentStore.stateToId || {};
+
+				// Sync
+				for ( item in History.idToState ) {
+					if ( !History.idToState.hasOwnProperty(item) ) {
+						continue;
+					}
+					currentStore.idToState[item] = History.idToState[item];
+				}
+				for ( item in History.urlToId ) {
+					if ( !History.urlToId.hasOwnProperty(item) ) {
+						continue;
+					}
+					currentStore.urlToId[item] = History.urlToId[item];
+				}
+				for ( item in History.stateToId ) {
+					if ( !History.stateToId.hasOwnProperty(item) ) {
+						continue;
+					}
+					currentStore.stateToId[item] = History.stateToId[item];
+				}
+
+				// Update
+				History.store = currentStore;
+
+				// Store
+				amplify.store('History.store',currentStore);
+			};
+			// For Internet Explorer
+			History.intervalList.push(setInterval(History.onUnload,History.options.storeInterval));
+			// For Other Browsers
+			History.Adapter.bind(window,'beforeunload',History.onUnload);
+			History.Adapter.bind(window,'unload',History.onUnload);
+			// Both are enabled for consistency
+		}
+
+
+		// ----------------------------------------------------------------------
+		// HTML5 State Support
+
+		if ( History.emulated.pushState ) {
+			/*
+			 * Provide Skeleton for HTML4 Browsers
+			 */
+
+			// Prepare
+			var emptyFunction = function(){};
+			History.pushState = History.pushState||emptyFunction;
+			History.replaceState = History.replaceState||emptyFunction;
+		}
+		else {
+			/*
+			 * Use native HTML5 History API Implementation
+			 */
+
+			/**
+			 * History.onPopState(event,extra)
+			 * Refresh the Current State
+			 */
+			History.onPopState = function(event){
+				// Reset the double check
+				History.doubleCheckComplete();
+
+				// Check for a Hash, and handle apporiatly
+				var currentHash	= History.getHash();
+				if ( currentHash ) {
+					// Expand Hash
+					var currentState = History.extractState(currentHash||document.URL||document.location.href,true);
+					if ( currentState ) {
+						// We were able to parse it, it must be a State!
+						// Let's forward to replaceState
+						//History.debug('History.onPopState: state anchor', currentHash, currentState);
+						History.replaceState(currentState.data, currentState.title, currentState.url, false);
+					}
+					else {
+						// Traditional Anchor
+						//History.debug('History.onPopState: traditional anchor', currentHash);
+						History.Adapter.trigger(window,'anchorchange');
+						History.busy(false);
+					}
+
+					// We don't care for hashes
+					History.expectedStateId = false;
+					return false;
+				}
+
+				// Prepare
+				var newState = false;
+
+				// Prepare
+				event = event||{};
+				if ( typeof event.state === 'undefined' ) {
+					// jQuery
+					if ( typeof event.originalEvent !== 'undefined' && typeof event.originalEvent.state !== 'undefined' ) {
+						event.state = event.originalEvent.state||false;
+					}
+					// MooTools
+					else if ( typeof event.event !== 'undefined' && typeof event.event.state !== 'undefined' ) {
+						event.state = event.event.state||false;
+					}
+					// Ensure
+					event.state = (event.state||false);					
+				}
+
+				// Fetch State
+				if ( event.state ) {
+					// Vanilla: Back/forward button was used
+					newState = History.getStateById(event.state);
+				}
+				else if ( History.expectedStateId ) {
+					// Vanilla: A new state was pushed, and popstate was called manually
+					newState = History.getStateById(History.expectedStateId);
+				}
+				else {
+					// Initial State
+					newState = History.extractState(document.URL||document.location.href);
+				}
+
+				// The State did not exist in our store
+				if ( !newState ) {
+					// Regenerate the State
+					newState = History.createStateObject(null,null,document.URL||document.location.href);
+				}
+
+				// Clean
+				History.expectedStateId = false;
+
+				// Check if we are the same state
+				if ( History.isLastSavedState(newState) ) {
+					// There has been no change (just the page's hash has finally propagated)
+					//History.debug('History.onPopState: no change', newState, History.savedStates);
+					History.busy(false);
+					return false;
+				}
+
+				// Store the State
+				History.storeState(newState);
+				History.saveState(newState);
+
+				// Force update of the title
+				History.setTitle(newState);
+
+				// Fire Our Event
+				History.Adapter.trigger(window,'statechange');
+				History.busy(false);
+
+				// Return true
+				return true;
+			};
+			History.Adapter.bind(window,'popstate',History.onPopState);
+
+			/**
+			 * History.pushState(data,title,url)
+			 * Add a new State to the history object, become it, and trigger onpopstate
+			 * We have to trigger for HTML4 compatibility
+			 * @param {object} data
+			 * @param {string} title
+			 * @param {string} url
+			 * @return {true}
+			 */
+			History.pushState = function(data,title,url,queue){
+				//History.debug('History.pushState: called', arguments);
+
+				// Check the State
+				if ( History.getHashByUrl(url) && History.emulated.pushState ) {
+					throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).');
+				}
+
+				// Handle Queueing
+				if ( queue !== false && History.busy() ) {
+					// Wait + Push to Queue
+					//History.debug('History.pushState: we must wait', arguments);
+					History.pushQueue({
+						scope: History,
+						callback: History.pushState,
+						args: arguments,
+						queue: queue
+					});
+					return false;
+				}
+
+				// Make Busy + Continue
+				History.busy(true);
+
+				// Create the newState
+				var newState = History.createStateObject(data,title,url);
+
+				// Check it
+				if ( History.isLastSavedState(newState) ) {
+					// Won't be a change
+					History.busy(false);
+				}
+				else {
+					// Store the newState
+					History.storeState(newState);
+					History.expectedStateId = newState.id;
+
+					// Push the newState
+					history.pushState(newState.id,newState.title,newState.url);
+
+					// Fire HTML5 Event
+					History.Adapter.trigger(window,'popstate');
+				}
+
+				// End pushState closure
+				return true;
+			};
+
+			/**
+			 * History.replaceState(data,title,url)
+			 * Replace the State and trigger onpopstate
+			 * We have to trigger for HTML4 compatibility
+			 * @param {object} data
+			 * @param {string} title
+			 * @param {string} url
+			 * @return {true}
+			 */
+			History.replaceState = function(data,title,url,queue){
+				//History.debug('History.replaceState: called', arguments);
+
+				// Check the State
+				if ( History.getHashByUrl(url) && History.emulated.pushState ) {
+					throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).');
+				}
+
+				// Handle Queueing
+				if ( queue !== false && History.busy() ) {
+					// Wait + Push to Queue
+					//History.debug('History.replaceState: we must wait', arguments);
+					History.pushQueue({
+						scope: History,
+						callback: History.replaceState,
+						args: arguments,
+						queue: queue
+					});
+					return false;
+				}
+
+				// Make Busy + Continue
+				History.busy(true);
+
+				// Create the newState
+				var newState = History.createStateObject(data,title,url);
+
+				// Check it
+				if ( History.isLastSavedState(newState) ) {
+					// Won't be a change
+					History.busy(false);
+				}
+				else {
+					// Store the newState
+					History.storeState(newState);
+					History.expectedStateId = newState.id;
+
+					// Push the newState
+					history.replaceState(newState.id,newState.title,newState.url);
+
+					// Fire HTML5 Event
+					History.Adapter.trigger(window,'popstate');
+				}
+
+				// End replaceState closure
+				return true;
+			};
+
+			// Be aware, the following is only for native pushState implementations
+			// If you are wanting to include something for all browsers
+			// Then include it above this if block
+
+			/**
+			 * Setup Safari Fix
+			 */
+			if ( History.bugs.safariPoll ) {
+				History.intervalList.push(setInterval(History.safariStatePoll, History.options.safariPollInterval));
+			}
+
+			/**
+			 * Ensure Cross Browser Compatibility
+			 */
+			if ( navigator.vendor === 'Apple Computer, Inc.' || (navigator.appCodeName||'') === 'Mozilla' ) {
+				/**
+				 * Fix Safari HashChange Issue
+				 */
+
+				// Setup Alias
+				History.Adapter.bind(window,'hashchange',function(){
+					History.Adapter.trigger(window,'popstate');
+				});
+
+				// Initialise Alias
+				if ( History.getHash() ) {
+					History.Adapter.onDomLoad(function(){
+						History.Adapter.trigger(window,'hashchange');
+					});
+				}
+			}
+
+		} // !History.emulated.pushState
+
+	}; // History.initCore
+
+	// Try and Initialise History
+	History.init();
+
+})(window);
\ No newline at end of file
--- a/rhodecode/public/js/rhodecode.js	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/public/js/rhodecode.js	Thu Dec 13 22:54:21 2012 +0100
@@ -91,7 +91,6 @@
 	
     // select element
     for(var i=0;i<selection.options.length;i++){
-    	console.log(selection.options[i].innerHTML);
         if (selection.options[i].innerHTML == val) {
             selection.selectedIndex = i;
             break;
@@ -250,6 +249,24 @@
 	
 };
 
+var ajaxGET = function(url,success) {
+	// Set special header for ajax == HTTP_X_PARTIAL_XHR
+	YUC.initHeader('X-PARTIAL-XHR',true);
+
+    var sUrl = url;
+    var callback = {
+        success: success,
+        failure: function (o) {
+            alert("error");
+        },
+    };
+
+    var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
+    return request;
+};
+
+
+
 var ajaxPOST = function(url,postData,success) {
 	// Set special header for ajax == HTTP_X_PARTIAL_XHR
 	YUC.initHeader('X-PARTIAL-XHR',true);
@@ -282,27 +299,8 @@
  * tooltip activate
  */
 var tooltip_activate = function(){
-    function toolTipsId(){
-        var ids = [];
-        var tts = YUQ('.tooltip');
-        for (var i = 0; i < tts.length; i++) {
-            // if element doesn't not have and id 
-        	//  autogenerate one for tooltip 
-            if (!tts[i].id){
-                tts[i].id='tt'+((i*100)+tts.length);
-            }
-            ids.push(tts[i].id);
-        }
-        return ids
-    };
-    var myToolTips = new YAHOO.widget.Tooltip("tooltip", {
-        context: [[toolTipsId()],"tl","bl",null,[0,5]],
-        monitorresize:false,
-        xyoffset :[0,0],
-        autodismissdelay:300000,
-        hidedelay:5,
-        showdelay:20,
-    });
+	yt = YAHOO.yuitip.main;
+	YUE.onDOMReady(yt.init);
 };
 
 /**
@@ -316,6 +314,190 @@
     });
 };
 
+/**
+ * show changeset tooltip
+ */
+var show_changeset_tooltip = function(){
+	YUE.on(YUD.getElementsByClassName('lazy-cs'), 'mouseover', function(e){
+		var target = e.currentTarget;
+		var rid = YUD.getAttribute(target,'raw_id');
+		var repo_name = YUD.getAttribute(target,'repo_name');
+		var ttid = 'tt-'+rid;
+		var success = function(o){
+			var json = JSON.parse(o.responseText);
+			YUD.addClass(target,'tooltip')
+			YUD.setAttribute(target, 'title',json['message']);
+			YAHOO.yuitip.main.show_yuitip(e, target);
+		}
+		if(rid && !YUD.hasClass(target, 'tooltip')){
+			YUD.setAttribute(target,'id',ttid);
+			YUD.setAttribute(target, 'title',_TM['loading...']);
+			YAHOO.yuitip.main.set_listeners(target);
+			YAHOO.yuitip.main.show_yuitip(e, target);			
+			ajaxGET('/changeset_info/{0}/{1}'.format(repo_name,rid), success)
+		}
+	});
+};
+
+var onSuccessFollow = function(target){
+    var f = YUD.get(target.id);
+    var f_cnt = YUD.get('current_followers_count');
+
+    if(YUD.hasClass(f, 'follow')){
+        f.setAttribute('class','following');
+        f.setAttribute('title',_TM['Stop following this repository']);
+
+        if(f_cnt){
+            var cnt = Number(f_cnt.innerHTML)+1;
+            f_cnt.innerHTML = cnt;
+        }
+    }
+    else{
+        f.setAttribute('class','follow');
+        f.setAttribute('title',_TM['Start following this repository']);
+        if(f_cnt){
+            var cnt = Number(f_cnt.innerHTML)-1;
+            f_cnt.innerHTML = cnt;
+        }
+    }
+}
+
+var toggleFollowingUser = function(target,fallows_user_id,token,user_id){
+    args = 'follows_user_id='+fallows_user_id;
+    args+= '&amp;auth_token='+token;
+    if(user_id != undefined){
+        args+="&amp;user_id="+user_id;
+    }
+    YUC.asyncRequest('POST',TOGGLE_FOLLOW_URL,{
+        success:function(o){
+        	onSuccessFollow(target);
+        }
+    },args);
+    return false;
+}
+
+var toggleFollowingRepo = function(target,fallows_repo_id,token,user_id){
+
+    args = 'follows_repo_id='+fallows_repo_id;
+    args+= '&amp;auth_token='+token;
+    if(user_id != undefined){
+        args+="&amp;user_id="+user_id;
+    }
+    YUC.asyncRequest('POST',TOGGLE_FOLLOW_URL,{
+        success:function(o){
+        	onSuccessFollow(target);
+        }
+    },args);
+    return false;
+}
+
+
+/**
+ * TOOLTIP IMPL.
+ */
+YAHOO.namespace('yuitip');
+YAHOO.yuitip.main = {
+
+	$:			YAHOO.util.Dom.get,
+
+	bgColor:	'#000',
+	speed:		0.3,
+	opacity:	0.9,
+	offset:		[15,15],
+	useAnim:	false,
+	maxWidth:	600,
+	add_links:	false,
+	yuitips:    [],
+
+	set_listeners: function(tt){
+		YUE.on(tt, 'mouseover', yt.show_yuitip,  tt);
+		YUE.on(tt, 'mousemove', yt.move_yuitip,  tt);
+		YUE.on(tt, 'mouseout',  yt.close_yuitip, tt);		
+	},
+
+	init: function(){
+		yt._tooltip = '';
+		yt.tipBox = yt.$('tip-box');
+		if(!yt.tipBox){
+			yt.tipBox = document.createElement('div');
+			document.body.appendChild(yt.tipBox);
+			yt.tipBox.id = 'tip-box';
+		}
+
+		YUD.setStyle(yt.tipBox, 'display', 'none');
+		YUD.setStyle(yt.tipBox, 'position', 'absolute');
+		if(yt.maxWidth !== null){
+			YUD.setStyle(yt.tipBox, 'max-width', yt.maxWidth+'px');
+		}
+
+		var yuitips = YUD.getElementsByClassName('tooltip');
+
+		if(yt.add_links === true){
+			var links = document.getElementsByTagName('a');
+			var linkLen = links.length;
+			for(i=0;i<linkLen;i++){
+				yuitips.push(links[i]);
+			}
+		}
+
+		var yuiLen = yuitips.length;
+
+		for(i=0;i<yuiLen;i++){
+			yt.set_listeners(yuitips[i]);
+		}
+	},
+
+	show_yuitip: function(e, el){
+		YUE.stopEvent(e);
+		if(el.tagName.toLowerCase() === 'img'){
+			yt.tipText = el.alt ? el.alt : '';
+		} else {
+			yt.tipText = el.title ? el.title : '';
+		}
+
+		if(yt.tipText !== ''){
+			// save org title
+			yt._tooltip = yt.tipText;
+			// reset title to not show org tooltips
+			YUD.setAttribute(el, 'title', '');
+
+			yt.tipBox.innerHTML = yt.tipText;
+			YUD.setStyle(yt.tipBox, 'display', 'block');
+			if(yt.useAnim === true){
+				YUD.setStyle(yt.tipBox, 'opacity', '0');
+				var newAnim = new YAHOO.util.Anim(yt.tipBox,
+					{
+						opacity: { to: yt.opacity }
+					}, yt.speed, YAHOO.util.Easing.easeOut
+				);
+				newAnim.animate();
+			}
+		}
+	},
+
+	move_yuitip: function(e, el){
+		YUE.stopEvent(e);
+		var movePos = YUE.getXY(e);
+		YUD.setStyle(yt.tipBox, 'top', (movePos[1] + yt.offset[1]) + 'px');
+		YUD.setStyle(yt.tipBox, 'left', (movePos[0] + yt.offset[0]) + 'px');
+	},
+
+	close_yuitip: function(e, el){
+		YUE.stopEvent(e);
+	
+		if(yt.useAnim === true){
+			var newAnim = new YAHOO.util.Anim(yt.tipBox,
+				{
+					opacity: { to: 0 }
+				}, yt.speed, YAHOO.util.Easing.easeOut
+			);
+			newAnim.animate();
+		} else {
+			YUD.setStyle(yt.tipBox, 'display', 'none');
+		}
+		YUD.setAttribute(el,'title', yt._tooltip);
+	}
+}
 
 /**
  * Quick filter widget
@@ -821,54 +1003,54 @@
 	}
 };
 
-var  getSelectionLink = function(selection_link_label) {
-	return function(){
-	    //get selection from start/to nodes    	
-	    if (typeof window.getSelection != "undefined") {
-	    	s = window.getSelection();
+var  getSelectionLink = function(e) {
+
+	//get selection from start/to nodes    	
+	if (typeof window.getSelection != "undefined") {
+		s = window.getSelection();
 	
-	       	from = getIdentNode(s.anchorNode);
-	       	till = getIdentNode(s.focusNode);
-	        
-	        f_int = parseInt(from.id.replace('L',''));
-	        t_int = parseInt(till.id.replace('L',''));
-	        
-	        if (f_int > t_int){
-	        	//highlight from bottom 
-	        	offset = -35;
-	        	ranges = [t_int,f_int];
-	        	
+	   	from = getIdentNode(s.anchorNode);
+	   	till = getIdentNode(s.focusNode);
+	   	
+	    f_int = parseInt(from.id.replace('L',''));
+	    t_int = parseInt(till.id.replace('L',''));
+	    
+	    if (f_int > t_int){
+	    	//highlight from bottom 
+	    	offset = -35;
+	    	ranges = [t_int,f_int];
+	    	
+	    }
+	    else{
+	    	//highligth from top 
+	    	offset = 35;
+	    	ranges = [f_int,t_int];
+	    }
+	    // if we select more than 2 lines
+	    if (ranges[0] != ranges[1]){
+	        if(YUD.get('linktt') == null){
+	            hl_div = document.createElement('div');
+	            hl_div.id = 'linktt';
 	        }
-	        else{
-	        	//highligth from top 
-	        	offset = 35;
-	        	ranges = [f_int,t_int];
-	        }
+	        hl_div.innerHTML = '';
+
+	        anchor = '#L'+ranges[0]+'-'+ranges[1];
+	        var link = document.createElement('a');
+	        link.href = location.href.substring(0,location.href.indexOf('#'))+anchor;
+	        link.innerHTML = _TM['Selection link'];
+	        hl_div.appendChild(link);
+	        YUD.get('body').appendChild(hl_div);
 	        
-	        if (ranges[0] != ranges[1]){
-	            if(YUD.get('linktt') == null){
-	                hl_div = document.createElement('div');
-	                hl_div.id = 'linktt';
-	            }
-	            anchor = '#L'+ranges[0]+'-'+ranges[1];
-	            hl_div.innerHTML = '';
-	            l = document.createElement('a');
-	            l.href = location.href.substring(0,location.href.indexOf('#'))+anchor;
-	            l.innerHTML = selection_link_label;
-	            hl_div.appendChild(l);
-	            
-	            YUD.get('body').appendChild(hl_div);
-	            
-	            xy = YUD.getXY(till.id);
-	            
-	            YUD.addClass('linktt','yui-tt');
-	            YUD.setStyle('linktt','top',xy[1]+offset+'px');
-	            YUD.setStyle('linktt','left',xy[0]+'px');
-	            YUD.setStyle('linktt','visibility','visible');
-	        }
-	        else{
-	        	YUD.setStyle('linktt','visibility','hidden');
-	        }
+	        xy = YUD.getXY(till.id);
+
+	        YUD.addClass('linktt', 'hl-tip-box');
+	        YUD.setStyle('linktt','top',xy[1]+offset+'px');
+	        YUD.setStyle('linktt','left',xy[0]+'px');
+	        YUD.setStyle('linktt','visibility','visible');
+
+	    }
+	    else{
+	    	YUD.setStyle('linktt','visibility','hidden');
 	    }
 	}
 };
--- a/rhodecode/templates/admin/admin.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/admin.html	Thu Dec 13 22:54:21 2012 +0100
@@ -6,7 +6,13 @@
 </%def>
 
 <%def name="breadcrumbs_links()">
-    ${_('Admin journal')}
+    <form id="filter_form">
+    <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.search_term or _('journal filter...')}"/>
+    <span class="tooltip" title="${h.tooltip(h.journal_filter_help())}">?</span>
+    <input type='submit' value="${_('filter')}" class="ui-btn" style="padding:0px 2px 0px 2px;margin:0px"/>
+    ${_('Admin journal')} - ${ungettext('%s entry', '%s entries', c.users_log.item_count) % (c.users_log.item_count)}
+    </form>
+    ${h.end_form()}
 </%def>
 
 <%def name="page_nav()">
@@ -25,4 +31,26 @@
 	    </div>
 	</div>
 </div>
+
+<script>
+YUE.on('j_filter','click',function(){
+	var jfilter = YUD.get('j_filter');
+	if(YUD.hasClass(jfilter, 'initial')){
+		jfilter.value = '';
+	}
+});
+var fix_j_filter_width = function(len){
+    YUD.setStyle(YUD.get('j_filter'),'width',Math.max(80, len*6.50)+'px');
+}
+YUE.on('j_filter','keyup',function(){
+	fix_j_filter_width(YUD.get('j_filter').value.length);
+});
+YUE.on('filter_form','submit',function(e){
+	YUE.preventDefault(e)
+    var val = YUD.get('j_filter').value;
+	window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val);
+});
+fix_j_filter_width(YUD.get('j_filter').value.length);
+</script>
 </%def>
+
--- a/rhodecode/templates/admin/admin_log.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/admin_log.html	Thu Dec 13 22:54:21 2012 +0100
@@ -11,7 +11,13 @@
 
 	%for cnt,l in enumerate(c.users_log):
 	<tr class="parity${cnt%2}">
-		<td>${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}</td>
+		<td>
+        %if l.user is not None:
+          ${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}
+        %else:
+          ${l.username}
+        %endif    
+        </td>
 		<td>${h.action_parser(l)[0]()}
 		  <div class="journal_action_params">
             ${h.literal(h.action_parser(l)[1]())}
@@ -33,16 +39,20 @@
 
 <script type="text/javascript">
   YUE.onDOMReady(function(){
-	YUE.delegate("user_log","click",function(e, matchedEl, container){
-		ypjax(e.target.href,"user_log",function(){show_more_event();tooltip_activate();});
-		YUE.preventDefault(e);
-	},'.pager_link');
+    YUE.delegate("user_log","click",function(e, matchedEl, container){
+        ypjax(e.target.href,"user_log",function(){
+            show_more_event();
+            tooltip_activate();
+            show_changeset_tooltip();
+        });
+        YUE.preventDefault(e);
+    },'.pager_link');
 
-	YUE.delegate("user_log","click",function(e,matchedEl,container){
-	      var el = e.target;
-	      YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
-	      YUD.setStyle(el.parentNode,'display','none');
-	  },'.show_more');
+    YUE.delegate("user_log","click",function(e,matchedEl,container){
+          var el = e.target;
+          YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
+          YUD.setStyle(el.parentNode,'display','none');
+      },'.show_more');
   });
 </script>
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/templates/admin/defaults/defaults.html	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,93 @@
+## -*- coding: utf-8 -*-
+<%inherit file="/base/base.html"/>
+
+<%def name="title()">
+    ${_('Repositories defaults')} - ${c.rhodecode_name}
+</%def>
+
+<%def name="breadcrumbs_links()">
+    ${h.link_to(_('Admin'),h.url('admin_home'))}
+    &raquo;
+    ${_('Defaults')}
+</%def>
+
+<%def name="page_nav()">
+	${self.menu('admin')}
+</%def>
+
+<%def name="main()">
+<div class="box">
+    <!-- box / title -->
+    <div class="title">
+        ${self.breadcrumbs()}
+    </div>
+
+    <h3>${_('Repositories defaults')}</h3>
+
+    ${h.form(url('default', id='defaults'),method='put')}
+    <div class="form">
+        <!-- fields -->
+
+        <div class="fields">
+
+            <div class="field">
+                <div class="label">
+                    <label for="default_repo_type">${_('Type')}:</label>
+                </div>
+                <div class="input">
+                    ${h.select('default_repo_type','hg',c.backends,class_="medium")}
+                </div>
+            </div>
+
+            <div class="field">
+                <div class="label label-checkbox">
+                    <label for="default_repo_private">${_('Private repository')}:</label>
+                </div>
+                <div class="checkboxes">
+                    ${h.checkbox('default_repo_private',value="True")}
+                    <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
+                </div>
+            </div>
+
+
+            <div class="field">
+                <div class="label label-checkbox">
+                    <label for="default_repo_enable_statistics">${_('Enable statistics')}:</label>
+                </div>
+                <div class="checkboxes">
+                    ${h.checkbox('default_repo_enable_statistics',value="True")}
+                    <span class="help-block">${_('Enable statistics window on summary page.')}</span>
+                </div>
+            </div>
+
+            <div class="field">
+                <div class="label label-checkbox">
+                    <label for="default_repo_enable_downloads">${_('Enable downloads')}:</label>
+                </div>
+                <div class="checkboxes">
+                    ${h.checkbox('default_repo_enable_downloads',value="True")}
+                    <span class="help-block">${_('Enable download menu on summary page.')}</span>
+                </div>
+            </div>
+
+            <div class="field">
+                <div class="label label-checkbox">
+                    <label for="default_repo_enable_locking">${_('Enable locking')}:</label>
+                </div>
+                <div class="checkboxes">
+                    ${h.checkbox('default_repo_enable_locking',value="True")}
+                    <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span>
+                </div>
+            </div>
+
+            <div class="buttons">
+            ${h.submit('save',_('Save'),class_="ui-btn large")}
+            </div>
+        </div>
+    </div>
+    ${h.end_form()}
+
+    ##<h3>${_('Groups defaults')}</h3>
+
+</div>
+</%def>
--- a/rhodecode/templates/admin/permissions/permissions.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/permissions/permissions.html	Thu Dec 13 22:54:21 2012 +0100
@@ -38,16 +38,30 @@
             </div>
 			<div class="field">
 				<div class="label">
-					<label for="default_perm">${_('Repository permission')}:</label>
+					<label for="default_repo_perm">${_('Repository')}:</label>
 				</div>
 				<div class="select">
-					${h.select('default_perm','',c.perms_choices)}
+					${h.select('default_repo_perm','',c.repo_perms_choices)}
 
-		                ${h.checkbox('overwrite_default','true')}
-		                <label for="overwrite_default">
-		                <span class="tooltip"
-		                title="${h.tooltip(_('All default permissions on each repository will be reset to choosen permission, note that all custom default permission on repositories will be lost'))}">
-		                ${_('overwrite existing settings')}</span> </label>
+	                ${h.checkbox('overwrite_default_repo','true')}
+	                <label for="overwrite_default_repo">
+	                <span class="tooltip"
+	                title="${h.tooltip(_('All default permissions on each repository will be reset to choosen permission, note that all custom default permission on repositories will be lost'))}">
+	                ${_('overwrite existing settings')}</span> </label>
+				</div>
+			</div>
+			<div class="field">
+				<div class="label">
+					<label for="default_group_perm">${_('Repository group')}:</label>
+				</div>
+				<div class="select">
+					${h.select('default_group_perm','',c.group_perms_choices)}
+                    ${h.checkbox('overwrite_default_group','true')}
+                    <label for="overwrite_default_group">
+                    <span class="tooltip"
+                    title="${h.tooltip(_('All default permissions on each repository group will be reset to choosen permission, note that all custom default permission on repositories group will be lost'))}">
+                    ${_('overwrite existing settings')}</span> </label>
+
 				</div>
 			</div>
 			<div class="field">
--- a/rhodecode/templates/admin/repos/repo_add_base.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/repos/repo_add_base.html	Thu Dec 13 22:54:21 2012 +0100
@@ -44,28 +44,28 @@
          </div>
          <div class="field">
             <div class="label">
-                <label for="landing_rev">${_('Landing revision')}:</label>
+                <label for="repo_landing_rev">${_('Landing revision')}:</label>
             </div>
             <div class="input">
-                ${h.select('landing_rev','',c.landing_revs,class_="medium")}
+                ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
                 <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
             </div>
         </div>
         <div class="field">
             <div class="label label-textarea">
-                <label for="description">${_('Description')}:</label>
+                <label for="repo_description">${_('Description')}:</label>
             </div>
             <div class="textarea text-area editor">
-                ${h.textarea('description')}
+                ${h.textarea('repo_description')}
                 <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
             </div>
          </div>
         <div class="field">
             <div class="label label-checkbox">
-                <label for="private">${_('Private repository')}:</label>
+                <label for="repo_private">${_('Private repository')}:</label>
             </div>
             <div class="checkboxes">
-                ${h.checkbox('private',value="True")}
+                ${h.checkbox('repo_private',value="True")}
                 <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
             </div>
          </div>
--- a/rhodecode/templates/admin/repos/repo_edit.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/repos/repo_edit.html	Thu Dec 13 22:54:21 2012 +0100
@@ -63,56 +63,56 @@
             </div>
             <div class="field">
                 <div class="label">
-                    <label for="landing_rev">${_('Landing revision')}:</label>
+                    <label for="repo_landing_rev">${_('Landing revision')}:</label>
                 </div>
                 <div class="input">
-                    ${h.select('landing_rev','',c.landing_revs,class_="medium")}
+                    ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
                     <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
                 </div>
             </div>
             <div class="field">
                 <div class="label label-textarea">
-                    <label for="description">${_('Description')}:</label>
+                    <label for="repo_description">${_('Description')}:</label>
                 </div>
                 <div class="textarea text-area editor">
-                    ${h.textarea('description')}
+                    ${h.textarea('repo_description')}
                     <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
                 </div>
             </div>
 
             <div class="field">
                 <div class="label label-checkbox">
-                    <label for="private">${_('Private repository')}:</label>
+                    <label for="repo_private">${_('Private repository')}:</label>
                 </div>
                 <div class="checkboxes">
-                    ${h.checkbox('private',value="True")}
+                    ${h.checkbox('repo_private',value="True")}
                     <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
                 </div>
             </div>
             <div class="field">
                 <div class="label label-checkbox">
-                    <label for="enable_statistics">${_('Enable statistics')}:</label>
+                    <label for="repo_enable_statistics">${_('Enable statistics')}:</label>
                 </div>
                 <div class="checkboxes">
-                    ${h.checkbox('enable_statistics',value="True")}
+                    ${h.checkbox('repo_enable_statistics',value="True")}
                     <span class="help-block">${_('Enable statistics window on summary page.')}</span>
                 </div>
             </div>
             <div class="field">
                 <div class="label label-checkbox">
-                    <label for="enable_downloads">${_('Enable downloads')}:</label>
+                    <label for="repo_enable_downloads">${_('Enable downloads')}:</label>
                 </div>
                 <div class="checkboxes">
-                    ${h.checkbox('enable_downloads',value="True")}
+                    ${h.checkbox('repo_enable_downloads',value="True")}
                     <span class="help-block">${_('Enable download menu on summary page.')}</span>
                 </div>
             </div>
             <div class="field">
                 <div class="label label-checkbox">
-                    <label for="enable_locking">${_('Enable locking')}:</label>
+                    <label for="repo_enable_locking">${_('Enable locking')}:</label>
                 </div>
                 <div class="checkboxes">
-                    ${h.checkbox('enable_locking',value="True")}
+                    ${h.checkbox('repo_enable_locking',value="True")}
                     <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span>
                 </div>
             </div>
@@ -196,11 +196,20 @@
               </div>
               <div class="field" style="border:none;">
                 ${_('List of cached values')}
-                  <ul>
+                   <table>
+                   <tr>
+                    <th>${_('Prefix')}</th>
+                    <th>${_('Key')}</th>
+                    <th>${_('Active')}</th>
+                    </tr>
                   %for cache in c.repo_info.cache_keys:
-                      <li>INSTANCE ID:${cache.prefix or '-'} ${cache.cache_args} CACHED: ${h.bool2icon(cache.cache_active)}</li>
+                      <tr>
+                        <td>${cache.prefix or '-'}</td>
+                        <td>${cache.cache_key}</td>
+                        <td>${h.bool2icon(cache.cache_active)}</td>
+                      </tr>
                   %endfor
-                  </ul>
+                  </table>
               </div>
            </div>
         </div>
@@ -271,7 +280,7 @@
            <div class="field" style="border:none;color:#888">
            <ul>
                 <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems.
-                         If you need fully delete it from filesystem please do it manually''')}
+                         If you need fully delete it from file system please do it manually''')}
                 </li>
            </ul>
            </div>
--- a/rhodecode/templates/admin/repos_groups/repos_groups_show.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/repos_groups/repos_groups_show.html	Thu Dec 13 22:54:21 2012 +0100
@@ -40,6 +40,7 @@
                 ## REPO GROUPS
 
                 % for gr in c.groups:
+                    <% gr_cn = gr.repositories.count() %>
                   <tr>
                       <td>
                           <div style="white-space: nowrap">
@@ -48,10 +49,10 @@
                           </div>
                       </td>
                       <td>${gr.group_description}</td>
-                      <td><b>${gr.repositories.count()}</b></td>
+                      <td><b>${gr_cn}</b></td>
 		               <td>
 		                 ${h.form(url('repos_group', id=gr.group_id),method='delete')}
-		                   ${h.submit('remove_%s' % gr.name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group: %s') % gr.name+"');")}
+		                   ${h.submit('remove_%s' % gr.name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_cn) % (gr.name,gr_cn)+"');")}
 		                 ${h.end_form()}
 		               </td>
                   </tr>
--- a/rhodecode/templates/admin/settings/settings.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/settings/settings.html	Thu Dec 13 22:54:21 2012 +0100
@@ -122,6 +122,17 @@
         <!-- fields -->
 
         <div class="fields">
+             <div class="field">
+                <div class="label label-checkbox">
+                    <label>${_('General')}:</label>
+                </div>
+                <div class="checkboxes">
+                    <div class="checkbox">
+                        ${h.checkbox('rhodecode_lightweight_dashboard','True')}
+                        <label for="rhodecode_lightweight_dashboard">${_('Use lightweight dashboard')}</label>
+                    </div>
+                 </div>
+             </div>
 
              <div class="field">
                 <div class="label label-checkbox">
--- a/rhodecode/templates/admin/users/user_edit.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/users/user_edit.html	Thu Dec 13 22:54:21 2012 +0100
@@ -50,7 +50,11 @@
                     <label for="username">${_('Username')}:</label>
                 </div>
                 <div class="input">
-                    ${h.text('username',class_='medium')}
+                    %if c.ldap_dn:
+                        ${h.text('username',class_='medium disabled', readonly="readonly")}
+                    %else:
+                        ${h.text('username',class_='medium')}
+                    %endif:
                 </div>
              </div>
 
--- a/rhodecode/templates/admin/users/user_edit_my_account.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/users/user_edit_my_account.html	Thu Dec 13 22:54:21 2012 +0100
@@ -135,7 +135,7 @@
     YUD.setStyle('q_filter','display','');
 
 
-    var url = "${h.url('admin_settings_my_repos')}";
+    var url = "${h.url('journal_my_repos')}";
     ypjax(url, 'my', function(){
         table_sort();
         filter_activate();
@@ -171,7 +171,6 @@
 if (url[1]) {
     //We have a hash
     var tabHash = url[1];
-    console.log(tabs, tabHash)
     tabs[tabHash]();
 }
 
--- a/rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html	Thu Dec 13 22:54:21 2012 +0100
@@ -25,7 +25,7 @@
 
 <div class="pullrequests_section_head" style="clear:both">${_('I participate in')}</div>
 <ul>
-    %if c.my_pull_requests:
+    %if c.participate_in_pull_requests:
       %for pull_request in c.participate_in_pull_requests:
       <li>
         <div style="height: 12px">
--- a/rhodecode/templates/admin/users/user_edit_my_account_repos.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/users/user_edit_my_account_repos.html	Thu Dec 13 22:54:21 2012 +0100
@@ -19,7 +19,7 @@
               </td>
               ##REPO NAME AND ICONS
               <td class="reponame">
-                ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
+                ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],h.AttributeDict(repo['dbrepo_fork']))}
               </td>
               ##LAST REVISION
               <td>
--- a/rhodecode/templates/admin/users_groups/users_group_edit.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/admin/users_groups/users_group_edit.html	Thu Dec 13 22:54:21 2012 +0100
@@ -145,20 +145,83 @@
     <div class="title">
         <h5>${_('Group members')}</h5>
     </div>
+
     <div class="group_members_wrap">
+    % if c.group_members_obj:
       <ul class="group_members">
       %for user in c.group_members_obj:
         <li>
           <div class="group_member">
             <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div>
-            <div>${user.username}</div>
+            <div>${h.link_to(user.username, h.url('edit_user',id=user.user_id))}</div>
             <div>${user.full_name}</div>
           </div>
         </li>
       %endfor
       </ul>
+      %else:
+        <span class="empty_data">${_('No members yet')}</span>
+      %endif
     </div>
 </div>
+
+<div class="box box-left">
+    <!-- box / title -->
+    <div class="title">
+        <h5>${_('Permissions defined for this group')}</h5>
+    </div>
+ ## permissions overview
+    <div id="perms" class="table">
+       %for section in sorted(c.users_group.permissions.keys()):
+          <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div>
+          %if not c.users_group.permissions:
+              <span class="empty_data">${_('No permissions set yet')}</span>
+          %else:
+          <div id='tbl_list_wrap_${section}' class="yui-skin-sam">
+           <table id="tbl_list_repository">
+            <thead>
+                <tr>
+                <th class="left">${_('Name')}</th>
+                <th class="left">${_('Permission')}</th>
+                <th class="left">${_('Edit Permission')}</th>
+            </thead>
+            <tbody>
+            %for k in c.users_group.permissions[section]:
+                 <%
+                     section_perm = c.users_group.permissions[section].get(k)
+                     _perm = section_perm.split('.')[-1]
+                 %>
+                <tr>
+                    <td>
+                        %if section == 'repositories':
+                            <a href="${h.url('summary_home',repo_name=k)}">${k}</a>
+                        %elif section == 'repositories_groups':
+                            <a href="${h.url('repos_group_home',group_name=k)}">${k}</a>
+                        %endif
+                    </td>
+                    <td>
+                         <span class="perm_tag ${_perm}">${section_perm}</span>
+                    </td>
+                    <td>
+                        %if section == 'repositories':
+                            <a href="${h.url('edit_repo',repo_name=k,anchor='permissions_manage')}">${_('edit')}</a>
+                        %elif section == 'repositories_groups':
+                            <a href="${h.url('edit_repos_group',id=k,anchor='permissions_manage')}">${_('edit')}</a>
+                        %else:
+                            --
+                        %endif
+                    </td>
+                </tr>
+            %endfor
+            </tbody>
+           </table>
+          </div>
+          %endif
+       %endfor
+    </div>
+</div>
+
+
 <script type="text/javascript">
   MultiSelectWidget('users_group_members','available_members','edit_users_group');
 </script>
--- a/rhodecode/templates/base/base.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/base/base.html	Thu Dec 13 22:54:21 2012 +0100
@@ -211,6 +211,9 @@
                     %if h.is_hg(c.rhodecode_repo):
                      <li>${h.link_to(_('Open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li>
                     %endif
+                    %if c.rhodecode_db_repo.fork:
+                     <li>${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name),class_='compare_request')}</li>
+                    %endif
                    	<li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
 
                     %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking:
@@ -233,6 +236,7 @@
                             <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li>
                             <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
                             <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
+                            <li>${h.link_to(_('defaults'),h.url('defaults'),class_='defaults')}</li>
                             <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
                         </ul>
                         </%def>
--- a/rhodecode/templates/base/root.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/base/root.html	Thu Dec 13 22:54:21 2012 +0100
@@ -44,11 +44,16 @@
                 'Start following this repository':"${_('Start following this repository')}",
                 'Group':"${_('Group')}",
                 'members':"${_('members')}",
+                'loading...':"${_('loading...')}",
                 'search truncated': "${_('search truncated')}",
-                'no matching files': "${_('no matching files')}"
-
+                'no matching files': "${_('no matching files')}",
+                'Open new pull request': "${_('Open new pull request')}",
+                'Open new pull request for selected changesets':  "${_('Open new pull request for selected changesets')}",
+                'Show selected changes __S -> __E': "${_('Show selected changes __S -> __E')}",
+                'Selection link': "${_('Selection link')}",
             };
             var _TM = TRANSLATION_MAP;
+            var TOGGLE_FOLLOW_URL  = "${h.url('toggle_following')}";
             </script>
             <script type="text/javascript" src="${h.url('/js/yui.2.9.js', ver=c.rhodecode_version)}"></script>
             <!--[if lt IE 9]>
@@ -59,10 +64,8 @@
             <script type="text/javascript" src="${h.url('/js/rhodecode.js', ver=c.rhodecode_version)}"></script>
            ## EXTRA FOR JS
            ${self.js_extra()}
-
             <script type="text/javascript">
             (function(window,undefined){
-
                 // Prepare
                 var History = window.History; // Note: We are using a capital H instead of a lower h
                 if ( !History.enabled ) {
@@ -71,67 +74,16 @@
                     return false;
                 }
             })(window);
-            var follow_base_url  = "${h.url('toggle_following')}";
-
-            var onSuccessFollow = function(target){
-                var f = YUD.get(target.id);
-                var f_cnt = YUD.get('current_followers_count');
-
-                if(f.getAttribute('class')=='follow'){
-                    f.setAttribute('class','following');
-                    f.setAttribute('title',_TM['Stop following this repository']);
-
-                    if(f_cnt){
-                        var cnt = Number(f_cnt.innerHTML)+1;
-                        f_cnt.innerHTML = cnt;
-                    }
-                }
-                else{
-                    f.setAttribute('class','follow');
-                    f.setAttribute('title',_TM['Start following this repository']);
-                    if(f_cnt){
-                        var cnt = Number(f_cnt.innerHTML)-1;
-                        f_cnt.innerHTML = cnt;
-                    }
-                }
-            }
+            
+            YUE.onDOMReady(function(){
+              tooltip_activate();
+              show_more_event();
+              show_changeset_tooltip();
 
-            var toggleFollowingUser = function(target,fallows_user_id,token,user_id){
-                args = 'follows_user_id='+fallows_user_id;
-                args+= '&amp;auth_token='+token;
-                if(user_id != undefined){
-                    args+="&amp;user_id="+user_id;
-                }
-                YUC.asyncRequest('POST',follow_base_url,{
-                    success:function(o){
-                    	onSuccessFollow(target);
-                    }
-                },args);
-                return false;
-            }
-
-            var toggleFollowingRepo = function(target,fallows_repo_id,token,user_id){
-
-                args = 'follows_repo_id='+fallows_repo_id;
-                args+= '&amp;auth_token='+token;
-                if(user_id != undefined){
-                    args+="&amp;user_id="+user_id;
-                }
-                YUC.asyncRequest('POST',follow_base_url,{
-                    success:function(o){
-                    	onSuccessFollow(target);
-                    }
-                },args);
-                return false;
-            }
-           YUE.onDOMReady(function(){
-             tooltip_activate();
-             show_more_event();
-
-             YUE.on('quick_login_link','click',function(e){
+              YUE.on('quick_login_link','click',function(e){
                  // make sure we don't redirect
                  YUE.preventDefault(e);
-
+              
                  if(YUD.hasClass('quick_login_link','enabled')){
                      YUD.setStyle('quick_login','display','none');
                      YUD.removeClass('quick_login_link','enabled');
@@ -144,7 +96,7 @@
                     	 usr.focus();
                      }
                  }
-             });
+              });
            })
             </script>
         </%def>
--- a/rhodecode/templates/branches/branches.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/branches/branches.html	Thu Dec 13 22:54:21 2012 +0100
@@ -44,8 +44,7 @@
 		                   .replace('__OTHER__',other.value);
 		window.location=u;
 	}
-
-})
+});
 // main table sorting
 var myColumnDefs = [
     {key:"name",label:"${_('Name')}",sortable:true},
--- a/rhodecode/templates/branches/branches_data.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/branches/branches_data.html	Thu Dec 13 22:54:21 2012 +0100
@@ -3,11 +3,11 @@
     <table id="branches_data">
       <thead>
         <tr>
-            <th class="left">${_('name')}</th>
-            <th class="left">${_('date')}</th>
-            <th class="left">${_('author')}</th>
-            <th class="left">${_('revision')}</th>
-            <th class="left">${_('compare')}</th>
+            <th class="left">${_('Name')}</th>
+            <th class="left">${_('Date')}</th>
+            <th class="left">${_('Author')}</th>
+            <th class="left">${_('Revision')}</th>
+            <th class="left">${_('Compare')}</th>
         </tr>
       </thead>
 		%for cnt,branch in enumerate(c.repo_branches.items()):
--- a/rhodecode/templates/changelog/changelog.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/changelog/changelog.html	Thu Dec 13 22:54:21 2012 +0100
@@ -34,11 +34,13 @@
 				<div id="graph_content">
                     <div class="info_box" style="clear: both;padding: 10px 6px;vertical-align: right;text-align: right;">
                     <a href="#" class="ui-btn small" id="rev_range_container" style="display:none"></a>
+                    <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a>
+
                     %if c.rhodecode_db_repo.fork:
-                        <a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref='default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name)}" class="ui-btn small">${_('Compare fork')}</a>
+                        <a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name)}" class="ui-btn small">${_('Compare fork with parent')}</a>
                     %endif
                     %if h.is_hg(c.rhodecode_repo):
-                    <a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a>
+                    <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a>
                     %endif
                     </div>
 					<div class="container_header">
@@ -148,31 +150,74 @@
                     var checkboxes = YUD.getElementsByClassName('changeset_range');
                     var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}";
                     YUE.on(checkboxes,'click',function(e){
+                    	var clicked_cb = e.currentTarget;
                         var checked_checkboxes = [];
                         for (pos in checkboxes){
                             if(checkboxes[pos].checked){
                                 checked_checkboxes.push(checkboxes[pos]);
                             }
                         }
-                        if(checked_checkboxes.length>1){
+                        if(YUD.get('open_new_pr')){
+                          if(checked_checkboxes.length>0){
+                            // modify open pull request to show we have selected cs
+                            YUD.get('open_new_pr').innerHTML = _TM['Open new pull request for selected changesets'];
+
+                          }else{
+                            YUD.get('open_new_pr').innerHTML = _TM['Open new pull request'];
+                          }
+                        }
+
+                        if(checked_checkboxes.length>0){
                         	var rev_end = checked_checkboxes[0].name;
                         	var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
 
+                        	// now select all checkboxes in the middle.
+                        	var checked = false;
+                        	for (var i=0; i<checkboxes.length; i++){
+                        		var cb = checkboxes[i];
+                        		var rev = cb.name;
+
+                        		if (rev == rev_end){
+                        			checked = true;
+                        		}
+                                if (checked){
+                                    cb.checked = true;
+                                }
+                                else{
+                                    cb.checked = false;
+                                }
+                        		if (rev == rev_start){
+                                    checked = false;
+                                }
+
+                        	}
+
                             var url = url_tmpl.replace('__REVRANGE__',
                             		rev_start+'...'+rev_end);
 
-                        var link = "${_('Show selected changes __S -> __E')}";
-                        link = link.replace('__S',rev_start.substr(0,6));
-                        link = link.replace('__E',rev_end.substr(0,6));
-                        YUD.get('rev_range_container').href = url;
-                        YUD.get('rev_range_container').innerHTML = link;
-                        YUD.setStyle('rev_range_container','display','');
+                            var link = _TM['Show selected changes __S -> __E'];
+                            link = link.replace('__S',rev_start.substr(0,6));
+                            link = link.replace('__E',rev_end.substr(0,6));
+                            YUD.get('rev_range_container').href = url;
+                            YUD.get('rev_range_container').innerHTML = link;
+                            YUD.setStyle('rev_range_container','display','');
+                            YUD.setStyle('rev_range_clear','display','');
+
+                            YUD.get('open_new_pr').href += '?rev_start={0}&rev_end={1}'.format(rev_start,rev_end);
+
                         }
                         else{
                         	YUD.setStyle('rev_range_container','display','none');
+                        	YUD.setStyle('rev_range_clear','display','none');
                         }
                     });
-
+                    YUE.on('rev_range_clear','click',function(e){
+                        for (var i=0; i<checkboxes.length; i++){
+                            var cb = checkboxes[i];
+                            cb.checked = false;
+                        }
+                        YUE.preventDefault(e);
+                    })
                     var msgs = YUQ('.message');
                     // get first element height
                     var el = YUQ('#graph_content .container')[0];
@@ -193,11 +238,11 @@
                     	YUD.setStyle(e.currentTarget,'display','none');
                     	YUD.setStyle(elem,'height','auto');
 
-                    	//redraw the graph, max_w and jsdata are global vars
-                        set_canvas(max_w);
+                    	//redraw the graph, line_count and jsdata are global vars
+                        set_canvas(100);
 
                         var r = new BranchRenderer();
-                        r.render(jsdata,max_w);
+                        r.render(jsdata,100,line_count);
 
                     })
 
@@ -223,31 +268,32 @@
 
                     });
 
-					function set_canvas(heads) {
+					function set_canvas(width) {
 						var c = document.getElementById('graph_nodes');
 						var t = document.getElementById('graph_content');
 						canvas = document.getElementById('graph_canvas');
 						var div_h = t.clientHeight;
 						c.style.height=div_h+'px';
 						canvas.setAttribute('height',div_h);
-						c.style.height=max_w+'px';
-						canvas.setAttribute('width',max_w);
+						c.style.height=width+'px';
+						canvas.setAttribute('width',width);
 					};
 					var heads = 1;
-					var max_heads = 0;
+					var line_count = 0;
 					var jsdata = ${c.jsdata|n};
 
-					for( var i=0;i<jsdata.length;i++){
-					    var m = Math.max.apply(Math, jsdata[i][1]);
-					    if (m>max_heads){
-					        max_heads = m;
-					    }
+					for (var i=0;i<jsdata.length;i++) {
+                        var in_l = jsdata[i][2];
+                        for (var j in in_l) {
+                            var m = in_l[j][1];
+                            if (m > line_count)
+                                line_count = m;
+                        }
 					}
-					var max_w = Math.max(100,max_heads*25);
-					set_canvas(max_w);
+					set_canvas(100);
 
 					var r = new BranchRenderer();
-					r.render(jsdata,max_w);
+					r.render(jsdata,100,line_count);
 
 				});
 			</script>
--- a/rhodecode/templates/changeset/changeset.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/changeset/changeset.html	Thu Dec 13 22:54:21 2012 +0100
@@ -24,9 +24,36 @@
     <div class="title">
         ${self.breadcrumbs()}
     </div>
+    <script>
+    var _USERS_AC_DATA = ${c.users_array|n};
+    var _GROUPS_AC_DATA = ${c.users_groups_array|n};
+    AJAX_COMMENT_URL = "${url('changeset_comment',repo_name=c.repo_name,revision=c.changeset.raw_id)}";
+    AJAX_COMMENT_DELETE_URL = "${url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}";
+    </script>
     <div class="table">
 		<div class="diffblock">
-			<div class="code-header">
+            <div class="parents">
+                %if c.changeset.parents:
+                 %for n, p_cs in enumerate(reversed(c.changeset.parents)):
+                    <span class="changeset_hash">&laquo; ${h.link_to('%s:%s' % (p_cs.revision,p_cs.raw_id[:6]),h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}</span>
+                    <br>
+                 %endfor
+                 %else:
+                    <span>${_('No parents')}</span>
+                 %endif                
+            </div>
+            <div class="children">
+                %if c.changeset.children:
+                 %for n, p_cs in enumerate(reversed(c.changeset.children)):
+                    <span class="changeset_hash">${h.link_to('%s:%s' % (p_cs.revision,p_cs.raw_id[:6]),h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)} &raquo;</span>
+                    <br>
+                 %endfor
+                 %else:
+                    <span>${_('No children')}</span>
+                 %endif                
+            </div>              
+			<div class="code-header banner">
+      
                 <div class="hash">
                  r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)}
                 </div>
@@ -40,13 +67,14 @@
                     %endif
                 </div>
                 <div class="diff-actions">
-                  <a href="${h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='show')}"  class="tooltip" title="${h.tooltip(_('raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a>
-                  <a href="${h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='download')}"  class="tooltip" title="${h.tooltip(_('download diff'))}"><img class="icon" src="${h.url('/images/icons/page_white_get.png')}"/></a>
+                  <a href="${h.url('changeset_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id)}"  class="tooltip" title="${h.tooltip(_('raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a>
+                  <a href="${h.url('changeset_patch_home',repo_name=c.repo_name,revision=c.changeset.raw_id)}"  class="tooltip" title="${h.tooltip(_('patch diff'))}"><img class="icon" src="${h.url('/images/icons/page_add.png')}"/></a>
+                  <a href="${h.url('changeset_download_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='download')}"  class="tooltip" title="${h.tooltip(_('download diff'))}"><img class="icon" src="${h.url('/images/icons/page_save.png')}"/></a>
                   ${c.ignorews_url(request.GET)}
                   ${c.context_url(request.GET)}
                 </div>
                 <div class="comments-number" style="float:right;padding-right:5px">${ungettext("%d comment", "%d comments", len(c.comments)) % len(c.comments)} ${ungettext("(%d inline)", "(%d inline)", c.inline_cnt) % c.inline_cnt}</div>
-			</div>
+            </div>          
 		</div>
 	    <div id="changeset_content">
 			<div class="container">
@@ -62,7 +90,7 @@
 	             </div>
 	             <div class="right">
 		             <div class="changes">
-                        % if len(c.changeset.affected_files) <= c.affected_files_cut_off:
+                        % if (len(c.changeset.affected_files) <= c.affected_files_cut_off) or c.fulldiff:
 		                 <span class="removed" title="${_('removed')}">${len(c.changeset.removed)}</span>
 		                 <span class="changed" title="${_('changed')}">${len(c.changeset.changed)}</span>
 		                 <span class="added" title="${_('added')}">${len(c.changeset.added)}</span>
@@ -73,16 +101,6 @@
 	                    % endif
 		             </div>
 
-		            %if c.changeset.parents:
-		             %for p_cs in reversed(c.changeset.parents):
-		                 <div class="parent">${_('Parent')}
-                     <span class="changeset_id">${p_cs.revision}:<span class="changeset_hash">${h.link_to(h.short_id(p_cs.raw_id),
-		                     h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}</span></span>
-		                 </div>
-		             %endfor
-                    %else:
-                        <div class="parent">${_('No parents')}</div>
-                    %endif
 		         <span class="logtags">
                  %if len(c.changeset.parents)>1:
                  <span class="merge">${_('merge')}</span>
@@ -100,37 +118,36 @@
 	                </div>
 	        </div>
 	        <span>
-	        ${_('%s files affected with %s insertions and %s deletions:') % (len(c.changeset.affected_files),c.lines_added,c.lines_deleted)}
-	        </span>
+            % if c.limited_diff:
+            ${ungettext('%s file changed','%s files changed',len(c.changeset.affected_files)) % (len(c.changeset.affected_files))}:
+            % else:
+	        ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.changeset.affected_files)) % (len(c.changeset.affected_files),c.lines_added,c.lines_deleted)}:
+	        %endif
+            </span>
 	        <div class="cs_files">
-	                %for change,filenode,diff,cs1,cs2,stat in c.changes:
-	                    <div class="cs_${change}">
-                            <div class="node">
-                            %if change != 'removed':
-                                ${h.link_to(h.safe_unicode(filenode.path),c.anchor_url(filenode.changeset.raw_id,filenode.path,request.GET)+"_target")}
-                            %else:
-                                ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID('',filenode.path)))}
-                            %endif
-                            </div>
-		                    <div class="changes">${h.fancy_file_stats(stat)}</div>
-	                    </div>
-	                %endfor
-	                % if c.cut_off:
-	                  ${_('Changeset was too big and was cut off...')}
-	                % endif
+              %for FID, (cs1, cs2, change, path, diff, stats) in c.changes[c.changeset.raw_id].iteritems():
+                  <div class="cs_${change}">
+                        <div class="node">
+                            <a href="#${FID}">${h.safe_unicode(path)}</a>
+                        </div>
+                    <div class="changes">${h.fancy_file_stats(stats)}</div>
+                  </div>
+              %endfor
+              % if c.limited_diff:
+                <h5>${_('Changeset was too big and was cut off...')}</h5>
+              % endif
 	        </div>
 	    </div>
 
     </div>
-    <script>
-    var _USERS_AC_DATA = ${c.users_array|n};
-    var _GROUPS_AC_DATA = ${c.users_groups_array|n};
-    AJAX_COMMENT_URL = "${url('changeset_comment',repo_name=c.repo_name,revision=c.changeset.raw_id)}";
-    AJAX_COMMENT_DELETE_URL = "${url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}";
-    </script>
+
     ## diff block
     <%namespace name="diff_block" file="/changeset/diff_block.html"/>
-    ${diff_block.diff_block(c.changes)}
+    ${diff_block.diff_block(c.changes[c.changeset.raw_id])}
+
+    % if c.limited_diff:
+      <h4>${_('Changeset was too big and was cut off...')}</h4>
+    % endif
 
     ## template for inline comment form
     <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
--- a/rhodecode/templates/changeset/changeset_file_comment.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/changeset/changeset_file_comment.html	Thu Dec 13 22:54:21 2012 +0100
@@ -12,7 +12,7 @@
   			${co.author.username}
   		</div>
   		<div class="date">
-  			${h.age(co.modified_at)}
+  			${h.age(co.modified_at)} <a class="permalink" href="#comment-${co.comment_id}">&para;</a>
   		</div>
         %if co.status_change:
            <div  style="float:left" class="changeset-status-container">
--- a/rhodecode/templates/changeset/changeset_range.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/changeset/changeset_range.html	Thu Dec 13 22:54:21 2012 +0100
@@ -26,7 +26,7 @@
     <div class="table">
 		<div id="body" class="diffblock">
 			<div class="code-header cv">
-		        <h3 class="code-header-title">${_('Compare View')}</h3>
+		        <h3 class="code-header-title">${_('Compare View')} / ${h.link_to(_('Show combined compare'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='rev',org_ref=getattr(c.cs_ranges[0].parents[0] if c.cs_ranges[0].parents else h.EmptyChangeset(),'raw_id'),other_ref_type='rev',other_ref=c.cs_ranges[-1].raw_id))}</h3>
                 <div>
 				${_('Changesets')} - r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)} -> r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)}
 				</div>
@@ -55,9 +55,9 @@
 	        <div class="cs_files">
 	               %for cs in c.cs_ranges:
 	                   <div class="cur_cs">${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
-	                %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]:
-	                    <div class="cs_${change}">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID(cs.raw_id,filenode.path)))}</div>
-	                %endfor
+	                  %for FID, (cs1, cs2, change, path, diff, stats) in c.changes[cs.raw_id].iteritems():
+	                    <div class="cs_${change}">${h.link_to(h.safe_unicode(path),h.url.current(anchor=FID))}</div>
+	                  %endfor
 	               %endfor
 	        </div>
 	    </div>
@@ -68,12 +68,35 @@
      %for cs in c.cs_ranges:
           ##${comment.comment_inline_form(cs)}
           ## diff block
-          <h3 style="padding-top:8px;">
+          <div class="h3">
           <a class="tooltip" title="${h.tooltip(cs.message)}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}</a>
-           <div class="gravatar">
-               <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),20)}"/>
+             <div class="gravatar">
+                 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),20)}"/>
+             </div>
+             <div class="right">
+              <span class="logtags">
+                %if len(cs.parents)>1:
+                <span class="merge">${_('merge')}</span>
+                %endif
+                %if cs.branch:
+                <span class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}">
+                   ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
+                </span>
+                %endif
+                %if h.is_hg(c.rhodecode_repo):
+                  %for book in cs.bookmarks:
+                  <span class="bookbook" title="${'%s %s' % (_('bookmark'),book)}">
+                     ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
+                  </span>
+                  %endfor
+                %endif
+                %for tag in cs.tags:
+                    <span class="tagtag"  title="${'%s %s' % (_('tag'),tag)}">
+                    ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
+                %endfor
+              </span>
+            </div>
            </div>
-           </h3>
           ${diff_block.diff_block(c.changes[cs.raw_id])}
           ##${comment.comments(cs)}
 
--- a/rhodecode/templates/changeset/diff_block.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/changeset/diff_block.html	Thu Dec 13 22:54:21 2012 +0100
@@ -5,37 +5,37 @@
 ##
 <%def name="diff_block(change)">
 
-%for op,filenode,diff,cs1,cs2,stat in change:
-    %if op !='removed':
-    <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}_target" style="clear:both;margin-top:25px"></div>
-    <div id="${h.FID(filenode.changeset.raw_id,filenode.path)}" class="diffblock  margined comm">
+%for FID,(cs1, cs2, change, path, diff, stats) in change.iteritems():
+    ##%if op !='removed':
+    <div id="${FID}_target" style="clear:both;margin-top:25px"></div>
+    <div id="${FID}" class="diffblock  margined comm">
         <div class="code-header">
             <div class="changeset_header">
                 <div class="changeset_file">
-                    ${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name,
-                    revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))}
+                    ${h.link_to_if(change!='removed',h.safe_unicode(path),h.url('files_home',repo_name=c.repo_name,
+                    revision=cs2,f_path=h.safe_unicode(path)))}
                 </div>
                 <div class="diff-actions">
-                  <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('diff'))}"><img class="icon" src="${h.url('/images/icons/page_white_go.png')}"/></a>
-                  <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='raw')}" class="tooltip" title="${h.tooltip(_('raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a>
-                  <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='download')}" class="tooltip" title="${h.tooltip(_('download diff'))}"><img class="icon" src="${h.url('/images/icons/page_white_get.png')}"/></a>
-                  ${c.ignorews_url(request.GET, h.FID(filenode.changeset.raw_id,filenode.path))}
-                  ${c.context_url(request.GET, h.FID(filenode.changeset.raw_id,filenode.path))}
+                  <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(path),diff2=cs2,diff1=cs1,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('show full diff for this file'))}"><img class="icon" src="${h.url('/images/icons/page_white_go.png')}"/></a>
+                  <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(path),diff2=cs2,diff1=cs1,diff='raw')}" class="tooltip" title="${h.tooltip(_('raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a>
+                  <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(path),diff2=cs2,diff1=cs1,diff='download')}" class="tooltip" title="${h.tooltip(_('download diff'))}"><img class="icon" src="${h.url('/images/icons/page_save.png')}"/></a>
+                  ${c.ignorews_url(request.GET, h.FID(cs2,path))}
+                  ${c.context_url(request.GET, h.FID(cs2,path))}
                 </div>
                 <span style="float:right;margin-top:-3px">
                   <label>
                   ${_('show inline comments')}
-                  ${h.checkbox('',checked="checked",class_="show-inline-comments",id_for=h.FID(filenode.changeset.raw_id,filenode.path))}
+                  ${h.checkbox('',checked="checked",class_="show-inline-comments",id_for=h.FID(cs2,path))}
                   </label>
                 </span>
             </div>
         </div>
         <div class="code-body">
-            <div class="full_f_path" path="${h.safe_unicode(filenode.path)}"></div>
+            <div class="full_f_path" path="${h.safe_unicode(path)}"></div>
             ${diff|n}
         </div>
     </div>
-    %endif
+    ##%endif
 %endfor
 
 </%def>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/templates/changeset/patch_changeset.html	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,17 @@
+%if h.is_hg(c.rhodecode_repo):
+# ${c.rhodecode_repo.alias.upper()} changeset patch
+# User ${c.changeset.author|n}
+# Date ${c.changeset.date}
+# Node ID ${c.changeset.raw_id}
+${c.parent_tmpl}
+${c.changeset.message}
+
+%elif h.is_git(c.rhodecode_repo):
+From 35d9475598be9f807cd800e51212b8f1efbeacd9 Mon Sep 17 00:00:00 2001
+From: ${c.changeset.author}
+Date: ${c.changeset.date}
+Subject: [PATCH] ${c.changeset.message}
+---
+
+%endif
+${c.diff|n}
--- a/rhodecode/templates/changeset/raw_changeset.html	Tue Oct 09 00:57:07 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-%if h.is_hg(c.scm_type):
-# ${c.scm_type.upper()} changeset patch
-# User ${c.changeset.author|n}
-# Date ${c.changeset.date}
-# Node ID ${c.changeset.raw_id}
-${c.parent_tmpl}
-${c.changeset.message}
-%endif
-${c.diffs|n}
--- a/rhodecode/templates/compare/compare_cs.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/compare/compare_cs.html	Thu Dec 13 22:54:21 2012 +0100
@@ -2,7 +2,7 @@
 <div class="container">
   <table class="compare_view_commits noborder">
   %if not c.cs_ranges:
-    <tr><td>${_('No changesets')}</td></tr>
+    <span class="empty_data">${_('No changesets')}</span>
   %else:
     %for cnt, cs in enumerate(c.cs_ranges):
         <tr>
@@ -18,10 +18,11 @@
         %endif
         </td>
         <td><div class="author">${h.person(cs.author)}</div></td>
-        <td><span class="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
-        <td><div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name)}</div></td>
+        <td><span class="tooltip" title="${h.tooltip(h.age(cs.date))}">${cs.date}</span></td>
+        <td><div class="message tooltip" title="${h.tooltip(cs.message)}" style="white-space:normal">${h.urlify_commit(h.shorter(cs.message, 60),c.repo_name)}</div></td>
         </tr>
     %endfor
+
   %endif
   </table>
 </div>
--- a/rhodecode/templates/compare/compare_diff.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/compare/compare_diff.html	Thu Dec 13 22:54:21 2012 +0100
@@ -34,12 +34,23 @@
         </div>
         <div id="changeset_compare_view_content">
             ##CS
-            <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Outgoing changesets')}</div>
+            <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${ungettext('Showing %s commit','Showing %s commits', len(c.cs_ranges)) % len(c.cs_ranges)}</div>
             <%include file="compare_cs.html" />
 
             ## FILES
-            <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div>
+            <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
+
+            % if c.limited_diff:
+                ${ungettext('%s file changed', '%s files changed', len(c.files)) % len(c.files)}
+            % else:
+                ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.files)) % (len(c.files),c.lines_added,c.lines_deleted)}:
+            %endif
+
+            </div>
             <div class="cs_files">
+              %if not c.files:
+                 <span class="empty_data">${_('No files')}</span>
+              %endif
               %for fid, change, f, stat in c.files:
                   <div class="cs_${change}">
                     <div class="node">${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid))}</div>
@@ -47,6 +58,9 @@
                   </div>
               %endfor
             </div>
+            % if c.limited_diff:
+              <h5>${_('Changeset was too big and was cut off...')}</h5>
+            % endif
         </div>
     </div>
 
@@ -55,7 +69,9 @@
     %for fid, change, f, stat in c.files:
       ${diff_block.diff_block_simple([c.changes[fid]])}
     %endfor
-
+    % if c.limited_diff:
+      <h4>${_('Changeset was too big and was cut off...')}</h4>
+    % endif
      <script type="text/javascript">
 
       YUE.onDOMReady(function(){
--- a/rhodecode/templates/data_table/_dt_elements.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/data_table/_dt_elements.html	Thu Dec 13 22:54:21 2012 +0100
@@ -76,13 +76,15 @@
     ${h.link_to(get_name(name),h.url('summary_home',repo_name=name),class_="repo_name")}
    %endif
    %if fork_of:
-        <a href="${h.url('summary_home',repo_name=fork_of)}">
-        <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
+        <a href="${h.url('summary_home',repo_name=fork_of.repo_name)}">
+        <img class="icon" alt="${_('fork')}" title="${_('Fork of')} ${fork_of.repo_name}" src="${h.url('/images/icons/arrow_divide.png')}"/></a>
    %endif
   </div>
 </%def>
 
-
+<%def name="last_change(last_change)">
+  <span class="tooltip" date="${last_change}" title="${h.tooltip(h.fmt_date(last_change))}">${h.age(last_change)}</span>
+</%def>
 
 <%def name="revision(name,rev,tip,author,last_msg)">
   <div>
@@ -94,6 +96,22 @@
   </div>
 </%def>
 
+<%def name="rss(name)">
+  %if c.rhodecode_user.username != 'default':
+    <a title="${_('Subscribe to %s rss feed')% name}" class="rss_icon"  href="${h.url('rss_feed_home',repo_name=name,api_key=c.rhodecode_user.api_key)}"></a>
+  %else:
+    <a title="${_('Subscribe to %s rss feed')% name}" class="rss_icon"  href="${h.url('rss_feed_home',repo_name=name)}"></a>
+  %endif
+</%def>
+
+<%def name="atom(name)">
+  %if c.rhodecode_user.username != 'default':
+    <a title="${_('Subscribe to %s atom feed')% name}"  class="atom_icon" href="${h.url('atom_feed_home',repo_name=name,api_key=c.rhodecode_user.api_key)}"></a>
+  %else:
+    <a title="${_('Subscribe to %s atom feed')% name}"  class="atom_icon" href="${h.url('atom_feed_home',repo_name=name)}"></a>
+  %endif
+</%def>
+
 <%def name="user_gravatar(email, size=24)">
     <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(email, size)}"/> </div>
 </%def>
--- a/rhodecode/templates/email_templates/changeset_comment.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/email_templates/changeset_comment.html	Thu Dec 13 22:54:21 2012 +0100
@@ -7,6 +7,6 @@
 
 % if status_change is not None:
 <div>
-    New status -> ${status_change}
+    ${_('New status$')} -> ${status_change}
 </div>
 % endif
--- a/rhodecode/templates/email_templates/main.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/email_templates/main.html	Thu Dec 13 22:54:21 2012 +0100
@@ -5,5 +5,5 @@
 --
 <br/>
 <br/>
-<b>${_('This is an notification from RhodeCode.')}</b>
+<b>${_('This is a notification from RhodeCode.')}</b>
 </div>
--- a/rhodecode/templates/email_templates/password_reset.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/email_templates/password_reset.html	Thu Dec 13 22:54:21 2012 +0100
@@ -1,12 +1,12 @@
 ## -*- coding: utf-8 -*-
 <%inherit file="main.html"/>
 
-Hello ${user}
+${_('Hello')} ${user}
 
-We received a request to create a new password for your account.
+${_('We received a request to create a new password for your account.')}
 
-You can generate it by clicking following URL:
+${_('You can generate it by clicking following URL')}:
 
 ${reset_url}
 
-If you didn't request new password please ignore this email.
+${_("If you didn't request new password please ignore this email.")}
--- a/rhodecode/templates/email_templates/pull_request.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/email_templates/pull_request.html	Thu Dec 13 22:54:21 2012 +0100
@@ -1,20 +1,18 @@
 ## -*- coding: utf-8 -*-
 <%inherit file="main.html"/>
 
-User <b>${pr_user_created}</b> opened pull request for repository
-${pr_repo_url} and wants you to review changes.
-
-<div>title: ${pr_title}</div>
-<div>description:</div>
+${_('User %s opened pull request for repository %s and wants you to review changes.') % ('<b>%s</b>' % pr_user_created,pr_repo_url)}
+<div>${_('title')}: ${pr_title}</div>
+<div>${_('description')}:</div>
 <p>
 ${body}
 </p>
 
-<div>revisions for reviewing</div>
+<div>${_('revisions for reviewing')}</div>
 <ul>
 %for r in pr_revisions:
     <li>${r}</li>
 %endfor
 </ul>
 
-View this pull request here: ${pr_url}
+${_('View this pull request here')}: ${pr_url}
--- a/rhodecode/templates/email_templates/pull_request_comment.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/email_templates/pull_request_comment.html	Thu Dec 13 22:54:21 2012 +0100
@@ -1,15 +1,14 @@
 ## -*- coding: utf-8 -*-
 <%inherit file="main.html"/>
 
-User <b>${pr_comment_user}</b> commented on pull request #${pr_id} for
-repository ${pr_target_repo}
+${_('User %s commented on pull request #%s for repository %s') % ('<b>%s</b>' % pr_comment_user ,pr_id,pr_target_repo)}
 
 <p>
 ${body}
 
 %if status_change:
-    <span>New status -> ${status_change}</span>
+    <span>${_('New status')} -> ${status_change}</span>
 %endif
 </p>
 
-View this comment here: ${pr_comment_url}
+${_('View this comment here')}: ${pr_comment_url}
--- a/rhodecode/templates/email_templates/registration.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/email_templates/registration.html	Thu Dec 13 22:54:21 2012 +0100
@@ -1,9 +1,9 @@
 ## -*- coding: utf-8 -*-
 <%inherit file="main.html"/>
 
-A new user have registered in RhodeCode
+${_('A new user have registered in RhodeCode')}
 
 ${body}
 
 
-View this user here: ${registered_user_url}
+${_('View this user here')}: ${registered_user_url}
--- a/rhodecode/templates/files/files.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/files/files.html	Thu Dec 13 22:54:21 2012 +0100
@@ -39,11 +39,13 @@
 
 <script type="text/javascript">
 var CACHE = {};
-var CACHE_EXPIRE = 60*1000; //cache for 60s
+var CACHE_EXPIRE = 5*60*1000; //cache for 5*60s
 //used to construct links from the search list
 var url_base = '${h.url("files_home",repo_name=c.repo_name,revision='__REV__',f_path='__FPATH__')}';
 //send the nodelist request to this url
 var node_list_url = '${h.url("files_nodelist_home",repo_name=c.repo_name,revision='__REV__',f_path='__FPATH__')}';
+// send the node history requst to this url
+var node_history_url = '${h.url("files_history_home",repo_name=c.repo_name,revision='__REV__',f_path='__FPATH__')}';
 
 var ypjax_links = function(){
     YUE.on(YUQ('.ypjax-link'), 'click',function(e){
@@ -76,11 +78,11 @@
 
         // Change our States and save some data for handling events
         var data = {url:url,title:title, url_base:_url_base,
-                    node_list_url:_node_list_url};
+                    node_list_url:_node_list_url, rev:rev, f_path:f_path};
         History.pushState(data, title, url);
 
         //now we're sure that we can do ypjax things
-        YUE.preventDefault(e)
+        YUE.preventDefault(e);
         return false;
     });
 }
@@ -89,8 +91,21 @@
     ypjax_links();
     tooltip_activate();
     fileBrowserListeners(State.url, State.data.node_list_url, State.data.url_base);
-    YUE.on('hlcode','mouseup',getSelectionLink("${_('Selection link')}"));
 
+    if(YUD.get('hlcode')){
+    	YUE.on('hlcode', 'mouseup', getSelectionLink);
+    }
+    //console.log(State);
+    if(YUD.get('load_node_history')){
+      //remove all listeners due to problems of history state
+      YUE.removeListener('load_node_history', 'click');
+      YUE.on('load_node_history', 'click', function(e){
+          var _url = node_history_url.replace('__REV__',State.data.rev).replace('__FPATH__', State.data.f_path);
+          ypjax(_url, 'node_history', function(o){
+        	  tooltip_activate();
+          })
+      });
+    }
     // Inform Google Analytics of the change
     if ( typeof window.pageTracker !== 'undefined' ) {
         window.pageTracker._trackPageview(State.url);
@@ -133,7 +148,9 @@
        url: "${h.url.current()}",
        data: {
          node_list_url: node_list_url.replace('__REV__',"${c.changeset.raw_id}").replace('__FPATH__', "${h.safe_unicode(c.file.path)}"),
-         url_base: url_base.replace('__REV__',"${c.changeset.raw_id}")
+         url_base: url_base.replace('__REV__',"${c.changeset.raw_id}"),
+         rev:"${c.changeset.raw_id}",
+         f_path: "${h.safe_unicode(c.file.path)}"
        }
     }
     fileBrowserListeners(_State.url, _State.data.node_list_url, _State.data.url_base);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/templates/files/files_history_box.html	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,26 @@
+<dl>
+    <dt class="file_history">${_('History')}</dt>
+    <dd>
+        <div>
+            <div style="float:left">
+            ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
+            ${h.hidden('diff2',c.file_changeset.raw_id)}
+            ${h.select('diff1',c.file_changeset.raw_id,c.file_history)}
+            ${h.submit('diff',_('diff to revision'),class_="ui-btn")}
+            ${h.submit('show_rev',_('show at revision'),class_="ui-btn")}
+            ${h.link_to(_('show full history'),h.url('shortlog_file_home',repo_name=c.repo_name, revision=c.file_changeset.raw_id, f_path=c.f_path),class_="ui-btn")}
+            ${h.hidden('annotate', c.annotate)}
+            ${h.end_form()}
+            </div>
+            <div class="file_author">
+                <div class="item">${h.literal(ungettext(u'%s author',u'%s authors',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) }</div>
+                %for email, user in c.authors:
+                  <div class="contributor tooltip" style="float:left" title="${h.tooltip(user)}">
+                    <div class="gravatar" style="margin:1px"><img alt="gravatar" src="${h.gravatar_url(email, 20)}"/> </div>
+                  </div>
+                %endfor
+            </div>
+        </div>
+        <div style="clear:both"></div>
+    </dd>
+</dl>
--- a/rhodecode/templates/files/files_source.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/files/files_source.html	Thu Dec 13 22:54:21 2012 +0100
@@ -1,58 +1,43 @@
-<dl>
-	<dt class="file_history">${_('History')}</dt>
-	<dd>
-        <div>
-    		<div style="float:left">
-    		${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
-    		${h.hidden('diff2',c.file.changeset.raw_id)}
-    		${h.select('diff1',c.file.changeset.raw_id,c.file_history)}
-    		${h.submit('diff',_('diff to revision'),class_="ui-btn")}
-    		${h.submit('show_rev',_('show at revision'),class_="ui-btn")}
-    		${h.end_form()}
-    		</div>
-            <div class="file_author">
-                <div class="item">${h.literal(ungettext(u'%s author',u'%s authors',len(c.authors)) % ('<b>%s</b>' % len(c.authors))) }</div>
-                %for email, user in c.authors:
-                  <div class="contributor tooltip" style="float:left" title="${h.tooltip(user)}">
-                    <div class="gravatar" style="margin:1px"><img alt="gravatar" src="${h.gravatar_url(email, 20)}"/> </div>
-                  </div>
-                %endfor
-            </div>
-        </div>
-        <div style="clear:both"></div>
-	</dd>
+<div id="node_history">
+%if c.load_full_history:
+    <%include file='files_history_box.html'/>
+%else:
+    <div style="padding-bottom:10px">
+        <span id="load_node_history" class="ui-btn">${_('Load file history')}</span>
+    </div>
+%endif
+</div>
 
-</dl>
 
 <div id="body" class="codeblock">
 	<div class="code-header">
         <div class="stats">
             <div class="left img"><img src="${h.url('/images/icons/file.png')}"/></div>
-            <div class="left item"><pre class="tooltip" title="${h.tooltip(h.fmt_date(c.file.changeset.date))}">${h.link_to("r%s:%s" % (c.file.changeset.revision,h.short_id(c.file.changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id))}</pre></div>
+            <div class="left item"><pre class="tooltip" title="${h.tooltip(h.fmt_date(c.file_changeset.date))}">${h.link_to("r%s:%s" % (c.file_changeset.revision,h.short_id(c.file_changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id))}</pre></div>
             <div class="left item"><pre>${h.format_byte_size(c.file.size,binary=True)}</pre></div>
             <div class="left item last"><pre>${c.file.mimetype}</pre></div>
             <div class="buttons">
               %if c.annotate:
-                ${h.link_to(_('show source'),    h.url('files_home',         repo_name=c.repo_name,revision=c.file.changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
+                ${h.link_to(_('show source'),    h.url('files_home',         repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
               %else:
-                ${h.link_to(_('show annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
+                ${h.link_to(_('show annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
               %endif
-              ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
-              ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
+              ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
+              ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
               % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
                % if not c.file.is_binary:
-                ${h.link_to(_('edit'),h.url('files_edit_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
+                ${h.link_to(_('edit'),h.url('files_edit_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
                % endif
               % endif
             </div>
         </div>
         <div class="author">
             <div class="gravatar">
-                <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(c.file.changeset.author),16)}"/>
+                <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(c.file_changeset.author),16)}"/>
             </div>
-            <div title="${c.file.changeset.author}" class="user">${h.person(c.file.changeset.author)}</div>
+            <div title="${c.file_changeset.author}" class="user">${h.person(c.file_changeset.author)}</div>
         </div>
-		<div class="commit">${h.urlify_commit(c.file.changeset.message,c.repo_name)}</div>
+		<div class="commit">${h.urlify_commit(c.file_changeset.message,c.repo_name)}</div>
 	</div>
 	<div class="code-body">
 	   %if c.file.is_binary:
@@ -66,7 +51,7 @@
             %endif
 		%else:
 			${_('File is too big to display')} ${h.link_to(_('show as raw'),
-			h.url('files_raw_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id,f_path=c.f_path))}
+			h.url('files_raw_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path))}
 		%endif
      %endif
 	</div>
@@ -111,16 +96,18 @@
     window.location.hash = old_hash;
 
     }
-    YUE.on('show_rev','click',function(e){
-    	YUE.preventDefault(e);
-        var cs = YUD.get('diff1').value;
-        %if c.annotate:
-          var url = "${h.url('files_annotate_home',repo_name=c.repo_name,revision='__CS__',f_path=c.f_path)}".replace('__CS__',cs);
-        %else:
-          var url = "${h.url('files_home',repo_name=c.repo_name,revision='__CS__',f_path=c.f_path)}".replace('__CS__',cs);
-        %endif
-        window.location = url;
+
+    // select code link event
+    YUE.on('hlcode', 'mouseup', getSelectionLink);
+
+    //load history of file
+    YUE.on('load_node_history', 'click', function(e){
+        var _url = node_history_url.replace('__REV__','${c.file_changeset.raw_id}').replace('__FPATH__', '${c.f_path}');
+        ypjax(_url, 'node_history', function(o){
+        	tooltip_activate();
+        })
     });
-    YUE.on('hlcode','mouseup',getSelectionLink("${_('Selection link')}"))
+
    });
+
 </script>
--- a/rhodecode/templates/followers/followers_data.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/followers/followers_data.html	Thu Dec 13 22:54:21 2012 +0100
@@ -19,7 +19,11 @@
 <script type="text/javascript">
 YUE.onDOMReady(function(){
     YUE.delegate("followers","click",function(e, matchedEl, container){
-        ypjax(e.target.href,"followers",function(){show_more_event();tooltip_activate();});
+        ypjax(e.target.href,"followers",function(){
+        	show_more_event();
+        	tooltip_activate();
+        	show_changeset_tooltip();
+        });
         YUE.preventDefault(e);
     },'.pager_link');
 });
--- a/rhodecode/templates/forks/forks_data.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/forks/forks_data.html	Thu Dec 13 22:54:21 2012 +0100
@@ -27,7 +27,11 @@
   <script type="text/javascript">
   YUE.onDOMReady(function(){
       YUE.delegate("forks","click",function(e, matchedEl, container){
-          ypjax(e.target.href,"forks",function(){show_more_event();tooltip_activate();});
+          ypjax(e.target.href,"forks",function(){
+        	  show_more_event();
+        	  tooltip_activate();
+        	  show_changeset_tooltip();
+          });
           YUE.preventDefault(e);
       },'.pager_link');
   });
--- a/rhodecode/templates/index_base.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/index_base.html	Thu Dec 13 22:54:21 2012 +0100
@@ -59,10 +59,11 @@
             <div id="welcome" style="display:none;text-align:center">
                 <h1><a href="${h.url('home')}">${c.rhodecode_name} ${c.rhodecode_version}</a></h1>
             </div>
+             <%cnt=0%>
+             <%namespace name="dt" file="/data_table/_dt_elements.html"/>
+            % if c.visual.lightweight_dashboard is False:
+              ## old full detailed version
             <div id='repos_list_wrap' class="yui-skin-sam">
-            <%cnt=0%>
-            <%namespace name="dt" file="/data_table/_dt_elements.html"/>
-
             <table id="repos_list">
             <thead>
                 <tr>
@@ -85,7 +86,7 @@
                     </td>
                     ##REPO NAME AND ICONS
                     <td class="reponame">
-                      ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'),pageargs.get('short_repo_names'))}
+                      ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],h.AttributeDict(repo['dbrepo_fork']),pageargs.get('short_repo_names'))}
                     </td>
                     ##DESCRIPTION
                     <td><span class="tooltip" title="${h.tooltip(repo['description'])}">
@@ -97,7 +98,7 @@
                     </td>
                     ##LAST CHANGE DATE
                     <td>
-                      <span class="tooltip" date="${repo['last_change']}" title="${h.tooltip(h.fmt_date(repo['last_change']))}">${h.age(repo['last_change'])}</span>
+                      ${dt.last_change(repo['last_change'])}
                     </td>
                     ##LAST REVISION
                     <td>
@@ -106,38 +107,33 @@
                     ##
                     <td title="${repo['contact']}">${h.person(repo['contact'])}</td>
                     <td>
-                      %if c.rhodecode_user.username != 'default':
-                        <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon"  href="${h.url('rss_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a>
-                      %else:
-                        <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon"  href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a>
-                      %endif:
+                      ${dt.rss(repo['name'])}
                     </td>
                     <td>
-                      %if c.rhodecode_user.username != 'default':
-                        <a title="${_('Subscribe to %s atom feed')%repo['name']}"  class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a>
-                      %else:
-                        <a title="${_('Subscribe to %s atom feed')%repo['name']}"  class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a>
-                      %endif:
+                      ${dt.atom(repo['name'])}
                     </td>
                 </tr>
             %endfor
             </tbody>
             </table>
             </div>
+            % else:
+              ## lightweight version
+                <div class="yui-skin-sam" id="repos_list_wrap"></div>
+                <div id="user-paginator" style="padding: 0px 0px 0px 0px"></div>
+            % endif
         </div>
     </div>
+    % if c.visual.lightweight_dashboard is False:
     <script>
       YUD.get('repo_count').innerHTML = ${cnt+1 if cnt else 0};
       var func = function(node){
           return node.parentNode.parentNode.parentNode.parentNode;
       }
 
-      var sort_by = "name";
-      var sort_dir = "asc";
-
       // groups table sorting
       var myColumnDefs = [
-          {key:"name",label:"${_('Group Name')}",sortable:true,
+          {key:"name",label:"${_('Group name')}",sortable:true,
               sortOptions: { sortFunction: groupNameSort }},
           {key:"desc",label:"${_('Description')}",sortable:true},
       ];
@@ -152,13 +148,25 @@
           ]
       };
 
-      var myDataTable = new YAHOO.widget.DataTable("groups_list_wrap", myColumnDefs, myDataSource,
-              {
-               sortedBy:{key:"name",dir:"asc"},
-               MSG_SORTASC:"${_('Click to sort ascending')}",
-               MSG_SORTDESC:"${_('Click to sort descending')}"
-              }
-      );
+      var myDataTable = new YAHOO.widget.DataTable("groups_list_wrap", myColumnDefs, myDataSource,{
+          sortedBy:{key:"name",dir:"asc"},
+          paginator: new YAHOO.widget.Paginator({
+              rowsPerPage: 5,
+              alwaysVisible: false,
+              template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}",
+              pageLinks: 5,
+              containerClass: 'pagination-wh',
+              currentPageClass: 'pager_curpage',
+              pageLinkClass: 'pager_link',
+              nextPageLinkLabel: '&gt;',
+              previousPageLinkLabel: '&lt;',
+              firstPageLinkLabel: '&lt;&lt;',
+              lastPageLinkLabel: '&gt;&gt;',
+              containers:['user-paginator']
+          }),
+          MSG_SORTASC:"${_('Click to sort ascending')}",
+          MSG_SORTDESC:"${_('Click to sort descending')}"
+      });
 
       // main table sorting
       var myColumnDefs = [
@@ -182,6 +190,7 @@
       myDataSource.responseSchema = {
           fields: [
               {key:"menu"},
+              //{key:"raw_name"},
               {key:"name"},
               {key:"desc"},
               {key:"last_change"},
@@ -194,7 +203,7 @@
 
       var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
               {
-               sortedBy:{key:sort_by,dir:sort_dir},
+    	       sortedBy:{key:"name",dir:"asc"},
                MSG_SORTASC:"${_('Click to sort ascending')}",
                MSG_SORTDESC:"${_('Click to sort descending')}",
                MSG_EMPTY:"${_('No records found.')}",
@@ -209,3 +218,114 @@
       });
 
     </script>
+    % else:
+      <script>
+        //var url = "${h.url('formatted_users', format='json')}";
+        var data = ${c.data|n};
+        var myDataSource = new YAHOO.util.DataSource(data);
+        myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
+
+        myDataSource.responseSchema = {
+            resultsList: "records",
+            fields: [
+               {key:"menu"},
+               {key:"raw_name"},
+               {key:"name"},
+               {key:"desc"},
+               {key:"last_change"},
+               {key:"owner"},
+               {key:"rss"},
+               {key:"atom"},
+            ]
+         };
+        myDataSource.doBeforeCallback = function(req,raw,res,cb) {
+            // This is the filter function
+            var data     = res.results || [],
+                filtered = [],
+                i,l;
+
+            if (req) {
+                req = req.toLowerCase();
+                for (i = 0; i<data.length; i++) {
+                    var pos = data[i].raw_name.toLowerCase().indexOf(req)
+                    if (pos != -1) {
+                        filtered.push(data[i]);
+                    }
+                }
+                res.results = filtered;
+            }
+            YUD.get('repo_count').innerHTML = res.results.length;
+            return res;
+        }
+
+        // main table sorting
+        var myColumnDefs = [
+            {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
+            {key:"name",label:"${_('Name')}",sortable:true,
+                sortOptions: { sortFunction: nameSort }},
+            {key:"desc",label:"${_('Description')}",sortable:true},
+            {key:"last_change",label:"${_('Last Change')}",sortable:true,
+                sortOptions: { sortFunction: ageSort }},
+            {key:"owner",label:"${_('Owner')}",sortable:true},
+            {key:"rss",label:"",sortable:false},
+            {key:"atom",label:"",sortable:false},
+        ];
+
+        var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
+          sortedBy:{key:"name",dir:"asc"},
+          paginator: new YAHOO.widget.Paginator({
+              rowsPerPage: ${c.visual.lightweight_dashboard_items},
+              alwaysVisible: false,
+              template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}",
+              pageLinks: 5,
+              containerClass: 'pagination-wh',
+              currentPageClass: 'pager_curpage',
+              pageLinkClass: 'pager_link',
+              nextPageLinkLabel: '&gt;',
+              previousPageLinkLabel: '&lt;',
+              firstPageLinkLabel: '&lt;&lt;',
+              lastPageLinkLabel: '&gt;&gt;',
+              containers:['user-paginator']
+          }),
+
+          MSG_SORTASC:"${_('Click to sort ascending')}",
+          MSG_SORTDESC:"${_('Click to sort descending')}",
+          MSG_EMPTY:"${_('No records found.')}",
+          MSG_ERROR:"${_('Data error.')}",
+          MSG_LOADING:"${_('Loading...')}",
+        }
+        );
+        myDataTable.subscribe('postRenderEvent',function(oArgs) {
+            tooltip_activate();
+            quick_repo_menu();
+        });
+
+        var filterTimeout = null;
+
+        updateFilter  = function () {
+            // Reset timeout
+            filterTimeout = null;
+
+            // Reset sort
+            var state = myDataTable.getState();
+                state.sortedBy = {key:'name', dir:YAHOO.widget.DataTable.CLASS_ASC};
+
+            // Get filtered data
+            myDataSource.sendRequest(YUD.get('q_filter').value,{
+                success : myDataTable.onDataReturnInitializeTable,
+                failure : myDataTable.onDataReturnInitializeTable,
+                scope   : myDataTable,
+                argument: state
+            });
+
+        };
+        YUE.on('q_filter','click',function(){
+            YUD.get('q_filter').value = '';
+         });
+
+        YUE.on('q_filter','keyup',function (e) {
+            clearTimeout(filterTimeout);
+            filterTimeout = setTimeout(updateFilter,600);
+        });
+      </script>
+    % endif
--- a/rhodecode/templates/journal/journal.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/journal/journal.html	Thu Dec 13 22:54:21 2012 +0100
@@ -4,7 +4,15 @@
     ${_('Journal')} - ${c.rhodecode_name}
 </%def>
 <%def name="breadcrumbs()">
-	${c.rhodecode_name}
+    <h5>
+    <form id="filter_form">
+    <input class="q_filter_box ${'' if c.search_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.search_term or _('quick filter...')}"/>
+    <span class="tooltip" title="${h.tooltip(h.journal_filter_help())}">?</span>
+    <input type='submit' value="${_('filter')}" class="ui-btn" style="padding:0px 2px 0px 2px;margin:0px"/>
+    ${_('journal')} - ${ungettext('%s entry', '%s entries', c.journal_pager.item_count) % (c.journal_pager.item_count)}
+    </form>
+    ${h.end_form()}
+    </h5>
 </%def>
 <%def name="page_nav()">
 	${self.menu('home')}
@@ -18,18 +26,18 @@
     <div class="box box-left">
 	    <!-- box / title -->
 	    <div class="title">
-	        <h5>${_('Journal')}</h5>
-             <ul class="links">
-               <li>
-                 <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
-               </li>
-               <li>
-                 <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span>
-               </li>
-               <li>
-                 <span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span>
-               </li>
-             </ul>
+         ${self.breadcrumbs()}
+         <ul class="links">
+           <li>
+             <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
+           </li>
+           <li>
+             <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span>
+           </li>
+           <li>
+             <span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span>
+           </li>
+         </ul>
 	    </div>
 	    <div id="journal">${c.journal_data}</div>
     </div>
@@ -38,7 +46,7 @@
         <div class="title">
             <h5>
             <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
-            <a id="show_my" class="link-white" href="#my">${_('My repos')}</a> / <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a>
+            <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a> / <a id="show_my" class="link-white" href="#my">${_('My repos')}</a>
             </h5>
              %if h.HasPermissionAny('hg.admin','hg.create.repository')():
              <ul class="links">
@@ -49,57 +57,12 @@
              %endif
         </div>
         <!-- end box / title -->
-        <div id="my" class="table">
-            %if c.user_repos:
-            <div id='repos_list_wrap' class="yui-skin-sam">
-            <table id="repos_list">
-             <thead>
-                  <tr>
-                  <th></th>
-                  <th class="left">${_('Name')}</th>
-                  <th class="left">${_('Revision')}</th>
-                  <th class="left">${_('Action')}</th>
-                  <th class="left">${_('Action')}</th>
-             </thead>
-             <tbody>
-                 <%namespace name="dt" file="/data_table/_dt_elements.html"/>
-                 %for repo in c.user_repos:
-                    <tr>
-                        ##QUICK MENU
-                        <td class="quick_repo_menu">
-                          ${dt.quick_menu(repo['name'])}
-                        </td>
-                        ##REPO NAME AND ICONS
-                        <td class="reponame">
-                          ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
-                        </td>
-                        ##LAST REVISION
-                        <td>
-                            ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
-                        </td>
-                        ##
-                        <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td>
-                        <td>
-                          ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
-                            ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
-                          ${h.end_form()}
-                        </td>
-                    </tr>
-                 %endfor
-             </tbody>
-             </table>
-             </div>
-             %else:
-                <div style="padding:5px 0px 10px 0px;">
-                ${_('No repositories yet')}
-                %if h.HasPermissionAny('hg.admin','hg.create.repository')():
-                    ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
-                %endif
-                </div>
-             %endif
+        <div id="my" class="table" style="display:none">
+        ## loaded via AJAX
+        ${_('Loading...')}
         </div>
 
-        <div id="watched" class="table" style="display:none">
+        <div id="watched" class="table">
           %if c.following:
             <table>
             <thead>
@@ -151,20 +114,47 @@
     </div>
 
     <script type="text/javascript">
-
-    YUE.on('show_my','click',function(e){
+    
+    YUE.on('j_filter','click',function(){
+        var jfilter = YUD.get('j_filter');
+        if(YUD.hasClass(jfilter, 'initial')){
+            jfilter.value = '';
+        }
+    });
+    var fix_j_filter_width = function(len){
+        YUD.setStyle(YUD.get('j_filter'),'width',Math.max(80, len*6.50)+'px');
+    }
+    YUE.on('j_filter','keyup',function(){
+        fix_j_filter_width(YUD.get('j_filter').value.length);
+    });
+    YUE.on('filter_form','submit',function(e){
+        YUE.preventDefault(e)
+        var val = YUD.get('j_filter').value;
+        window.location = "${url.current(filter='__FILTER__')}".replace('__FILTER__',val);
+    });
+    fix_j_filter_width(YUD.get('j_filter').value.length);    
+    
+    var show_my = function(e){
         YUD.setStyle('watched','display','none');
         YUD.setStyle('my','display','');
-        var nodes = YUQ('#my tr td a.repo_name');
-        var target = 'q_filter';
-        var func = function(node){
-            return node.parentNode.parentNode.parentNode.parentNode;
-        }
-        q_filter(target,nodes,func);
-        YUE.preventDefault(e);
+
+        var url = "${h.url('admin_settings_my_repos')}";
+        ypjax(url, 'my', function(){
+            tooltip_activate();
+            quick_repo_menu();
+            var nodes = YUQ('#my tr td a.repo_name');
+            var func = function(node){
+                return node.parentNode.parentNode.parentNode;
+            }
+            q_filter('q_filter',nodes,func);
+        });
+
+    }
+    YUE.on('show_my','click',function(e){
+        show_my(e);
     })
-    YUE.on('show_watched','click',function(e){
-        YUD.setStyle('my','display','none');
+    var show_watched = function(e){
+    	YUD.setStyle('my','display','none');
         YUD.setStyle('watched','display','');
         var nodes = YUQ('#watched .watched_repo a');
         var target = 'q_filter';
@@ -172,10 +162,30 @@
             return node.parentNode.parentNode;
         }
         q_filter(target,nodes,func);
-        YUE.preventDefault(e);
+    }
+    YUE.on('show_watched','click',function(e){
+        show_watched(e);
     })
+    //init watched
+    show_watched();
+
+    var tabs = {
+        'watched': show_watched,
+        'my': show_my,
+    }
+    var url = location.href.split('#');
+    if (url[1]) {
+        //We have a hash
+        var tabHash = url[1];
+        tabs[tabHash]();
+    }
+
     YUE.on('refresh','click',function(e){
-        ypjax(e.currentTarget.href,"journal",function(){show_more_event();tooltip_activate();});
+        ypjax("${h.url.current(filter=c.search_term)}","journal",function(){
+        	show_more_event();
+        	tooltip_activate();
+        	show_changeset_tooltip();
+        	});
         YUE.preventDefault(e);
     });
 
@@ -224,6 +234,5 @@
         q_filter('q_filter',YUQ('#my tr td a.repo_name'),func);
     });
 
-
     </script>
 </%def>
--- a/rhodecode/templates/journal/journal_data.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/journal/journal_data.html	Thu Dec 13 22:54:21 2012 +0100
@@ -6,9 +6,13 @@
         % for user,entries in items:
 	        <div class="journal_container">
 	            <div class="gravatar">
-	                <img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/>
+	                <img alt="gravatar" src="${h.gravatar_url(user.email if user else 'anonymous@rhodecode.org',24)}"/>
 	            </div>
-	            <div class="journal_user">${user.name} ${user.lastname}</div>
+                %if user:
+	               <div class="journal_user">${user.name} ${user.lastname}</div>
+                %else:
+                    <div class="journal_user deleted">${entries[0].username}</div>
+                %endif
 	            <div class="journal_action_container">
 	            % for entry in entries:
 		            <div class="journal_icon"> ${h.action_parser(entry)[2]()}</div>
@@ -35,7 +39,11 @@
     <script type="text/javascript">
     YUE.onDOMReady(function(){
         YUE.delegate("journal","click",function(e, matchedEl, container){
-        	ypjax(e.target.href,"journal",function(){show_more_event();tooltip_activate();});
+        	ypjax(e.target.href,"journal",function(){
+        		show_more_event();
+        		tooltip_activate();
+        		show_changeset_tooltip();
+        		});
             YUE.preventDefault(e);
         },'.pager_link');
     });
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/templates/journal/journal_page_repos.html	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,47 @@
+%if c.user_repos:
+<div id='repos_list_wrap' class="yui-skin-sam">
+<table id="repos_list">
+ <thead>
+      <tr>
+      <th></th>
+      <th class="left">${_('Name')}</th>
+      <th class="left">${_('Revision')}</th>
+      <th class="left">${_('Action')}</th>
+      <th class="left">${_('Action')}</th>
+ </thead>
+ <tbody>
+     <%namespace name="dt" file="/data_table/_dt_elements.html"/>
+     %for repo in c.user_repos:
+        <tr>
+            ##QUICK MENU
+            <td class="quick_repo_menu">
+              ${dt.quick_menu(repo['name'])}
+            </td>
+            ##REPO NAME AND ICONS
+            <td class="reponame">
+              ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],h.AttributeDict(repo['dbrepo_fork']))}
+            </td>
+            ##LAST REVISION
+            <td>
+                ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
+            </td>
+            ##
+            <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td>
+            <td>
+              ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
+                ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo['name']+"');")}
+              ${h.end_form()}
+            </td>
+        </tr>
+     %endfor
+ </tbody>
+ </table>
+ </div>
+ %else:
+    <div style="padding:5px 0px 10px 0px;">
+    ${_('No repositories yet')}
+    %if h.HasPermissionAny('hg.admin','hg.create.repository')():
+        ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
+    %endif
+    </div>
+ %endif
--- a/rhodecode/templates/journal/public_journal.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/journal/public_journal.html	Thu Dec 13 22:54:21 2012 +0100
@@ -28,15 +28,7 @@
      </li>
      </ul>
   </div>
-  <script type="text/javascript">
-  function show_more_event(){
-  YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){
-      var el = e.target;
-      YUD.setStyle(YUD.get(el.id.substring(1)),'display','');
-      YUD.setStyle(el.parentNode,'display','none');
-  });
-  }
-  </script>
+
   <div id="journal">${c.journal_data}</div>
 </div>
 
--- a/rhodecode/templates/pullrequests/pullrequest.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/pullrequests/pullrequest.html	Thu Dec 13 22:54:21 2012 +0100
@@ -21,6 +21,8 @@
     </div>
     ${h.form(url('pullrequest', repo_name=c.repo_name), method='post', id='pull_request_form')}
     <div style="float:left;padding:0px 30px 30px 30px">
+        <input type="hidden" name="rev_start" value="${request.GET.get('rev_start')}" />
+        <input type="hidden" name="rev_end" value="${request.GET.get('rev_end')}" />
 
         ##ORG
         <div style="float:left">
@@ -141,7 +143,9 @@
     	                 org_ref_type='org_ref_type', org_ref='org_ref',
                          other_ref_type='other_ref_type', other_ref='other_ref',
                          repo='other_repo',
-                         as_form=True, bundle=False)}";
+                         as_form=True, bundle=False,
+                         rev_start=request.GET.get('rev_start',''),
+                         rev_end=request.GET.get('rev_end',''))}";
 
       var select_refs = YUQ('#pull_request_form select.refs')
       var rev_data = {}; // gather the org/other ref and repo here
--- a/rhodecode/templates/pullrequests/pullrequest_show.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html	Thu Dec 13 22:54:21 2012 +0100
@@ -58,7 +58,7 @@
       <div>${_('Created on')}: ${h.fmt_date(c.pull_request.created_on)}</div>
     </div>
 
-    <div style="min-height:160px">
+    <div style="overflow: auto;">
       ##DIFF
       <div class="table" style="float:left;clear:none">
           <div id="body" class="diffblock">
@@ -66,12 +66,23 @@
           </div>
           <div id="changeset_compare_view_content">
               ##CS
-              <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Incoming changesets')}</div>
+              <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${ungettext('Showing %s commit','Showing %s commits', len(c.cs_ranges)) % len(c.cs_ranges)}</div>
               <%include file="/compare/compare_cs.html" />
 
               ## FILES
-              <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div>
+              <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
+
+              % if c.limited_diff:
+                  ${ungettext('%s file changed', '%s files changed', len(c.files)) % len(c.files)}
+              % else:
+                  ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.files)) % (len(c.files),c.lines_added,c.lines_deleted)}:
+              %endif
+
+              </div>
               <div class="cs_files">
+                %if not c.files:
+                   <span class="empty_data">${_('No files')}</span>
+                %endif
                 %for fid, change, f, stat in c.files:
                     <div class="cs_${change}">
                       <div class="node">${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid))}</div>
@@ -79,14 +90,17 @@
                     </div>
                 %endfor
               </div>
+              % if c.limited_diff:
+                <h5>${_('Changeset was too big and was cut off...')}</h5>
+              % endif
           </div>
       </div>
       ## REVIEWERS
        <div style="float:left; border-left:1px dashed #eee">
        <h4>${_('Pull request reviewers')}</h4>
-        <div id="reviewers" style="padding:0px 0px 0px 15px">
+        <div id="reviewers" style="padding:0px 0px 5px 10px">
           ## members goes here !
-          <div class="group_members_wrap">
+          <div class="group_members_wrap" style="min-height:45px">
             <ul id="review_members" class="group_members">
             %for member,status in c.pull_request_reviewers:
               <li id="reviewer_${member.user_id}">
@@ -135,6 +149,10 @@
     %for fid, change, f, stat in c.files:
       ${diff_block.diff_block_simple([c.changes[fid]])}
     %endfor
+    % if c.limited_diff:
+      <h4>${_('Changeset was too big and was cut off...')}</h4>
+    % endif
+
 
     ## template for inline comment form
     <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
--- a/rhodecode/templates/settings/repo_settings.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/settings/repo_settings.html	Thu Dec 13 22:54:21 2012 +0100
@@ -57,26 +57,26 @@
                     <label for="landing_rev">${_('Landing revision')}:</label>
                 </div>
                 <div class="input">
-                    ${h.select('landing_rev','',c.landing_revs,class_="medium")}
+                    ${h.select('repo_landing_rev','',c.landing_revs,class_="medium")}
                     <span class="help-block">${_('Default revision for files page, downloads, whoosh and readme')}</span>
                 </div>
             </div>
             <div class="field">
                 <div class="label label-textarea">
-                    <label for="description">${_('Description')}:</label>
+                    <label for="repo_description">${_('Description')}:</label>
                 </div>
                 <div class="textarea text-area editor">
-                    ${h.textarea('description')}
+                    ${h.textarea('repo_description')}
                     <span class="help-block">${_('Keep it short and to the point. Use a README file for longer descriptions.')}</span>
                 </div>
             </div>
 
             <div class="field">
                 <div class="label label-checkbox">
-                    <label for="private">${_('Private repository')}:</label>
+                    <label for="repo_private">${_('Private repository')}:</label>
                 </div>
                 <div class="checkboxes">
-                    ${h.checkbox('private',value="True")}
+                    ${h.checkbox('repo_private',value="True")}
                     <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
                 </div>
             </div>
@@ -88,14 +88,45 @@
                 <div class="input">
                     <%include file="../admin/repos/repo_edit_perms.html"/>
                 </div>
+            </div>
 
             <div class="buttons">
               ${h.submit('save',_('Save'),class_="ui-btn large")}
               ${h.reset('reset',_('Reset'),class_="ui-btn large")}
             </div>
-        </div>
+        
     </div>
     ${h.end_form()}
 </div>
+
+<h3>${_('Delete repository')}</h3>
+<div class="form">
+    <!-- fields -->
+    <div class="fields">
+
+        <div class="field">
+            <div class="label">
+                <label for="">${_('Remove repo')}:</label>
+            </div>
+            <div class="checkboxes">
+              ${h.form(url('repo_settings_delete', repo_name=c.repo_info.repo_name),method='delete')}
+              <div class="">
+                 <div class="fields">
+                     ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
+                 </div>
+                 <div class="field" style="border:none;color:#888">
+                 <ul>
+                      <li>${_('''This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems.
+                               If you need fully delete it from file system please do it manually''')}
+                      </li>
+                 </ul>
+                 </div>
+              </div>
+              ${h.end_form()}
+            </div>
+        </div>
+   </div>
+</div>
+
 </div>
 </%def>
--- a/rhodecode/templates/shortlog/shortlog.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/shortlog/shortlog.html	Thu Dec 13 22:54:21 2012 +0100
@@ -11,7 +11,13 @@
     &raquo;
     ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
     &raquo;
-    ${_('shortlog')}
+    %if c.file_history:
+        ${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}
+        &raquo;
+        ${c.file_history}
+    %else:
+        ${_('shortlog')}
+    %endif
 </%def>
 
 <%def name="page_nav()">
--- a/rhodecode/templates/shortlog/shortlog_data.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/shortlog/shortlog_data.html	Thu Dec 13 22:54:21 2012 +0100
@@ -30,9 +30,7 @@
          </div>
         </td>
         <td>
-            ${h.link_to(h.truncate(cs.message,50) or _('No commit message'),
-            h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
-            title=cs.message)}
+            ${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
         </td>
         <td><span class="tooltip" title="${h.tooltip(h.fmt_date(cs.date))}">
                       ${h.age(cs.date)}</span>
--- a/rhodecode/templates/summary/summary.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/summary/summary.html	Thu Dec 13 22:54:21 2012 +0100
@@ -54,15 +54,24 @@
                   </div>
                   %if c.rhodecode_user.username != 'default':
                       %if c.following:
-                      <span id="follow_toggle" class="following" title="${_('Stop following this repository')}"
+                      <span id="follow_toggle" class="following tooltip" title="${_('Stop following this repository')}"
                             onclick="javascript:toggleFollowingRepo(this,${c.dbrepo.repo_id},'${str(h.get_token())}')">
                       </span>
                       %else:
-                      <span id="follow_toggle" class="follow" title="${_('Start following this repository')}"
+                      <span id="follow_toggle" class="follow tooltip" title="${_('Start following this repository')}"
                             onclick="javascript:toggleFollowingRepo(this,${c.dbrepo.repo_id},'${str(h.get_token())}')">
                       </span>
                       %endif
                   %endif:
+
+                   ## locking icon
+                    %if c.rhodecode_db_repo.enable_locking:
+                      %if c.rhodecode_db_repo.locked[0]:
+                        <span class="locking_locked tooltip" title="${_('Repository locked by %s') % h.person_by_id(c.rhodecode_db_repo.locked[0])}"></span>
+                      %else:
+                        <span class="locking_unlocked tooltip" title="${_('Repository unlocked')}"></span>
+                      %endif
+                    %endif
                  ##REPO TYPE
 		         %if h.is_hg(c.dbrepo):
 		           <img style="margin-bottom:2px" class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
@@ -229,19 +238,21 @@
 </div>
 
 %if c.readme_data:
-<div id="readme" class="box header-pos-fix" style="background-color: #FAFAFA">
-    <div id="readme" class="title" title="${_("Readme file at revision '%s'" % c.rhodecode_db_repo.landing_rev)}">
+<div id="readme" class="anchor">
+<div class="box" style="background-color: #FAFAFA">
+    <div class="title" title="${_("Readme file at revision '%s'" % c.rhodecode_db_repo.landing_rev)}">
         <div class="breadcrumbs">
             <a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a>
             <a class="permalink" href="#readme" title="${_('Permalink to this readme')}">&para;</a>
         </div>
     </div>
-    <div id="readme" class="readme">
+    <div class="readme">
       <div class="readme_box">
         ${c.readme_data|n}
       </div>
     </div>
 </div>
+</div>
 %endif
 
 <script type="text/javascript">
--- a/rhodecode/templates/tags/tags.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/tags/tags.html	Thu Dec 13 22:54:21 2012 +0100
@@ -25,11 +25,26 @@
         ${self.breadcrumbs()}
     </div>
     <!-- end box / title -->
+    %if c.repo_tags:
+    <div class="info_box" id="compare_tags" style="clear: both;padding: 10px 19px;vertical-align: right;text-align: right;"><a href="#" class="ui-btn small">${_('Compare tags')}</a></div>
+    %endif
     <div class="table">
         <%include file='tags_data.html'/>
     </div>
 </div>
 <script type="text/javascript">
+YUE.on('compare_tags','click',function(e){
+    YUE.preventDefault(e);
+    var org = YUQ('input[name=compare_org]:checked')[0];
+    var other = YUQ('input[name=compare_other]:checked')[0];
+
+    if(org && other){
+        var compare_url = "${h.url('compare_url',repo_name=c.repo_name,org_ref_type='tag',org_ref='__ORG__',other_ref_type='tag',other_ref='__OTHER__')}";
+        var u = compare_url.replace('__ORG__',org.value)
+                           .replace('__OTHER__',other.value);
+        window.location=u;
+    }
+});
 
 // main table sorting
 var myColumnDefs = [
@@ -39,6 +54,7 @@
     {key:"author",label:"${_('Author')}",sortable:true},
     {key:"revision",label:"${_('Revision')}",sortable:true,
         sortOptions: { sortFunction: revisionSort }},
+    {key:"compare",label:"${_('Compare')}",sortable:false,},
 ];
 
 var myDataSource = new YAHOO.util.DataSource(YUD.get("tags_data"));
@@ -51,6 +67,7 @@
         {key:"date"},
         {key:"author"},
         {key:"revision"},
+        {key:"compare"},
     ]
 };
 
--- a/rhodecode/templates/tags/tags_data.html	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/templates/tags/tags_data.html	Thu Dec 13 22:54:21 2012 +0100
@@ -7,6 +7,7 @@
             <th class="left">${_('Date')}</th>
             <th class="left">${_('Author')}</th>
             <th class="left">${_('Revision')}</th>
+            <th class="left">${_('Compare')}</th>
     	</tr>
       </thead>
 		%for cnt,tag in enumerate(c.repo_tags.items()):
@@ -25,6 +26,10 @@
                     <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id)}">r${tag[1].revision}:${h.short_id(tag[1].raw_id)}</a></pre>
                 </div>
             </td>
+            <td>
+                <input class="branch-compare" type="radio" name="compare_org" value="${tag[0]}"/>
+                <input class="branch-compare" type="radio" name="compare_other" value="${tag[0]}"/>
+            </td>
 		</tr>
 		%endfor
     </table>
--- a/rhodecode/tests/__init__.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/__init__.py	Thu Dec 13 22:54:21 2012 +0100
@@ -47,7 +47,7 @@
     'TEST_USER_REGULAR2_PASS', 'TEST_USER_REGULAR2_EMAIL', 'TEST_HG_REPO',
     'TEST_HG_REPO_CLONE', 'TEST_HG_REPO_PULL', 'TEST_GIT_REPO',
     'TEST_GIT_REPO_CLONE', 'TEST_GIT_REPO_PULL', 'HG_REMOTE_REPO',
-    'GIT_REMOTE_REPO', 'SCM_TESTS',
+    'GIT_REMOTE_REPO', 'SCM_TESTS', '_get_repo_create_params'
 ]
 
 # Invoke websetup with the current config file
@@ -163,3 +163,22 @@
                 'msg `%s` not found in session flash: got `%s` instead' % (
                       msg, response.session['flash'])
             )
+
+
+## HELPERS ##
+
+def _get_repo_create_params(**custom):
+    defs = {
+        'repo_name': None,
+        'repo_type': 'hg',
+        'clone_uri': '',
+        'repo_group': '',
+        'repo_description': 'DESC',
+        'repo_private': False,
+        'repo_landing_rev': 'tip'
+    }
+    defs.update(custom)
+    if 'repo_name_full' not in custom:
+        defs.update({'repo_name_full': defs['repo_name']})
+
+    return defs
--- a/rhodecode/tests/api/api_base.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/api/api_base.py	Thu Dec 13 22:54:21 2012 +0100
@@ -61,15 +61,10 @@
 
 def create_repo(repo_name, repo_type):
     # create new repo
-    form_data = dict(repo_name=repo_name,
-                     repo_name_full=repo_name,
-                     fork_name=None,
-                     description='description %s' % repo_name,
-                     repo_group=None,
-                     private=False,
-                     repo_type=repo_type,
-                     clone_uri=None,
-                     landing_rev='tip')
+    form_data = _get_repo_create_params(
+                    repo_name_full=repo_name,
+                    repo_description='description %s' % repo_name,
+                )
     cur_user = UserModel().get_by_username(TEST_USER_ADMIN_LOGIN)
     r = RepoModel().create(form_data, cur_user)
     Session().commit()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/diff_with_diff_data.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,416 @@
+diff --git a/vcs/backends/base.py b/vcs/backends/base.py
+index 212267ca23949807b8d89fa8ca495827dcfab3b1..ad17f16634da602503ed4ddd7cdd2e1ccdf4bed4 100644
+--- a/vcs/backends/base.py
++++ b/vcs/backends/base.py
+@@ -54,6 +54,7 @@ class BaseRepository(object):
+     """
+     scm = None
+     DEFAULT_BRANCH_NAME = None
++    EMPTY_CHANGESET = '0' * 40
+ 
+     def __init__(self, repo_path, create=False, **kwargs):
+         """
+@@ -204,6 +205,23 @@ class BaseRepository(object):
+         """
+         raise NotImplementedError
+ 
++    def get_diff(self, rev1, rev2, path=None, ignore_whitespace=False,
++            context=3):
++        """
++        Returns (git like) *diff*, as plain text. Shows changes introduced by
++        ``rev2`` since ``rev1``.
++
++        :param rev1: Entry point from which diff is shown. Can be
++          ``self.EMPTY_CHANGESET`` - in this case, patch showing all
++          the changes since empty state of the repository until ``rev2``
++        :param rev2: Until which revision changes should be shown.
++        :param ignore_whitespace: If set to ``True``, would not show whitespace
++          changes. Defaults to ``False``.
++        :param context: How many lines before/after changed lines should be
++          shown. Defaults to ``3``.
++        """
++        raise NotImplementedError
++
+     # ========== #
+     # COMMIT API #
+     # ========== #
+@@ -341,7 +359,6 @@ class BaseChangeset(object):
+             otherwise; trying to access this attribute while there is no
+             changesets would raise ``EmptyRepositoryError``
+     """
+-
+     def __str__(self):
+         return '<%s at %s:%s>' % (self.__class__.__name__, self.revision,
+             self.short_id)
+@@ -591,7 +608,6 @@ class BaseChangeset(object):
+         return data
+ 
+ 
+-
+ class BaseWorkdir(object):
+     """
+     Working directory representation of single repository.
+diff --git a/vcs/backends/git/repository.py b/vcs/backends/git/repository.py
+index 8b9d1247fdee44e7a021b80e4965d8609cfd5720..e9f04e74dedd2f57417eb91dd2f4f7c61ec7e097 100644
+--- a/vcs/backends/git/repository.py
++++ b/vcs/backends/git/repository.py
+@@ -12,6 +12,7 @@
+ import os
+ import re
+ import time
++import inspect
+ import posixpath
+ from dulwich.repo import Repo, NotGitRepository
+ #from dulwich.config import ConfigFile
+@@ -101,21 +102,6 @@ class GitRepository(BaseRepository):
+                 "stderr:\n%s" % (cmd, se))
+         return so, se
+ 
+-    def _get_diff(self, rev1, rev2, path=None, ignore_whitespace=False,
+-            context=3):
+-        rev1 = self._get_revision(rev1)
+-        rev2 = self._get_revision(rev2)
+-        
+-        if ignore_whitespace:
+-            cmd = 'diff -U%s -w %s %s' % (context, rev1, rev2)
+-        else:
+-            cmd = 'diff -U%s %s %s' % (context, rev1, rev2)
+-        if path:
+-            cmd += ' -- "%s"' % path
+-        so, se = self.run_git_command(cmd)
+-
+-        return so
+-
+     def _check_url(self, url):
+         """
+         Functon will check given url and try to verify if it's a valid
+@@ -322,6 +308,8 @@ class GitRepository(BaseRepository):
+         Returns ``GitChangeset`` object representing commit from git repository
+         at the given revision or head (most recent commit) if None given.
+         """
++        if isinstance(revision, GitChangeset):
++            return revision
+         revision = self._get_revision(revision)
+         changeset = GitChangeset(repository=self, revision=revision)
+         return changeset
+@@ -398,6 +386,49 @@ class GitRepository(BaseRepository):
+         for rev in revs:
+             yield self.get_changeset(rev)
+ 
++    def get_diff(self, rev1, rev2, path=None, ignore_whitespace=False,
++            context=3):
++        """
++        Returns (git like) *diff*, as plain text. Shows changes introduced by
++        ``rev2`` since ``rev1``.
++
++        :param rev1: Entry point from which diff is shown. Can be
++          ``self.EMPTY_CHANGESET`` - in this case, patch showing all
++          the changes since empty state of the repository until ``rev2``
++        :param rev2: Until which revision changes should be shown.
++        :param ignore_whitespace: If set to ``True``, would not show whitespace
++          changes. Defaults to ``False``.
++        :param context: How many lines before/after changed lines should be
++          shown. Defaults to ``3``.
++        """
++        flags = ['-U%s' % context]
++        if ignore_whitespace:
++            flags.append('-w')
++
++        if rev1 == self.EMPTY_CHANGESET:
++            rev2 = self.get_changeset(rev2).raw_id
++            cmd = ' '.join(['show'] + flags + [rev2])
++        else:
++            rev1 = self.get_changeset(rev1).raw_id
++            rev2 = self.get_changeset(rev2).raw_id
++            cmd = ' '.join(['diff'] + flags + [rev1, rev2])
++
++        if path:
++            cmd += ' -- "%s"' % path
++        stdout, stderr = self.run_git_command(cmd)
++        # If we used 'show' command, strip first few lines (until actual diff
++        # starts)
++        if rev1 == self.EMPTY_CHANGESET:
++            lines = stdout.splitlines()
++            x = 0
++            for line in lines:
++                if line.startswith('diff'):
++                    break
++                x += 1
++            # Append new line just like 'diff' command do
++            stdout = '\n'.join(lines[x:]) + '\n'
++        return stdout
++
+     @LazyProperty
+     def in_memory_changeset(self):
+         """
+diff --git a/vcs/backends/hg.py b/vcs/backends/hg.py
+index f1f9f95e4d476ab01d8e7b02a8b59034c0740a3b..b7d63c552c39b2f8aaec17ef46551369c8b8e793 100644
+--- a/vcs/backends/hg.py
++++ b/vcs/backends/hg.py
+@@ -256,13 +256,32 @@ class MercurialRepository(BaseRepository):
+ 
+         return map(lambda x: hex(x[7]), self._repo.changelog.index)[:-1]
+ 
+-    def _get_diff(self, rev1, rev2, path=None, ignore_whitespace=False,
++    def get_diff(self, rev1, rev2, path='', ignore_whitespace=False,
+                   context=3):
++        """
++        Returns (git like) *diff*, as plain text. Shows changes introduced by
++        ``rev2`` since ``rev1``.
++
++        :param rev1: Entry point from which diff is shown. Can be
++          ``self.EMPTY_CHANGESET`` - in this case, patch showing all
++          the changes since empty state of the repository until ``rev2``
++        :param rev2: Until which revision changes should be shown.
++        :param ignore_whitespace: If set to ``True``, would not show whitespace
++          changes. Defaults to ``False``.
++        :param context: How many lines before/after changed lines should be
++          shown. Defaults to ``3``.
++        """
++        # Check if given revisions are present at repository (may raise
++        # ChangesetDoesNotExistError)
++        if rev1 != self.EMPTY_CHANGESET:
++            self.get_changeset(rev1)
++        self.get_changeset(rev2)
++
+         file_filter = match(self.path, '', [path])
+-        return patch.diff(self._repo, rev1, rev2, match=file_filter,
++        return ''.join(patch.diff(self._repo, rev1, rev2, match=file_filter,
+                           opts=diffopts(git=True,
+                                         ignorews=ignore_whitespace,
+-                                        context=context))
++                                        context=context)))
+ 
+     def _check_url(self, url):
+         """
+diff --git a/vcs/tests/test_git.py b/vcs/tests/test_git.py
+index 30da035a2a35c3dca14064778e97188b6d4ce5d6..d4b82b9e612af8bb5bf490a827377c7c2567735a 100644
+--- a/vcs/tests/test_git.py
++++ b/vcs/tests/test_git.py
+@@ -639,19 +639,19 @@ class GitSpecificWithRepoTest(BackendTestMixin, unittest.TestCase):
+ 
+     def test_get_diff_runs_git_command_with_hashes(self):
+         self.repo.run_git_command = mock.Mock(return_value=['', ''])
+-        self.repo._get_diff(0, 1)
++        self.repo.get_diff(0, 1)
+         self.repo.run_git_command.assert_called_once_with('diff -U%s %s %s' %
+             (3, self.repo._get_revision(0), self.repo._get_revision(1)))
+ 
+     def test_get_diff_runs_git_command_with_str_hashes(self):
+         self.repo.run_git_command = mock.Mock(return_value=['', ''])
+-        self.repo._get_diff('0' * 40, 1)
+-        self.repo.run_git_command.assert_called_once_with('diff -U%s %s %s' %
+-            (3, self.repo._get_revision(0), self.repo._get_revision(1)))
++        self.repo.get_diff(self.repo.EMPTY_CHANGESET, 1)
++        self.repo.run_git_command.assert_called_once_with('show -U%s %s' %
++            (3, self.repo._get_revision(1)))
+ 
+     def test_get_diff_runs_git_command_with_path_if_its_given(self):
+         self.repo.run_git_command = mock.Mock(return_value=['', ''])
+-        self.repo._get_diff(0, 1, 'foo')
++        self.repo.get_diff(0, 1, 'foo')
+         self.repo.run_git_command.assert_called_once_with('diff -U%s %s %s -- "foo"'
+             % (3, self.repo._get_revision(0), self.repo._get_revision(1)))
+ 
+diff --git a/vcs/tests/test_repository.py b/vcs/tests/test_repository.py
+index e34033e29fa9b3d3366b723beab129cee73869b9..b6e3f419778d6009229e9108824acaf83eea1784 100644
+--- a/vcs/tests/test_repository.py
++++ b/vcs/tests/test_repository.py
+@@ -1,9 +1,12 @@
+ from __future__ import with_statement
++import datetime
+ from base import BackendTestMixin
+ from conf import SCM_TESTS
++from conf import TEST_USER_CONFIG_FILE
++from vcs.nodes import FileNode
+ from vcs.utils.compat import unittest
++from vcs.exceptions import ChangesetDoesNotExistError
+ 
+-from conf import TEST_USER_CONFIG_FILE
+ 
+ class RepositoryBaseTest(BackendTestMixin):
+     recreate_repo_per_test = False
+@@ -29,6 +32,176 @@ class RepositoryBaseTest(BackendTestMixin):
+             'foo.bar@example.com')
+ 
+ 
++
++class RepositoryGetDiffTest(BackendTestMixin):
++
++    @classmethod
++    def _get_commits(cls):
++        commits = [
++            {
++                'message': 'Initial commit',
++                'author': 'Joe Doe <joe.doe@example.com>',
++                'date': datetime.datetime(2010, 1, 1, 20),
++                'added': [
++                    FileNode('foobar', content='foobar'),
++                    FileNode('foobar2', content='foobar2'),
++                ],
++            },
++            {
++                'message': 'Changed foobar, added foobar3',
++                'author': 'Jane Doe <jane.doe@example.com>',
++                'date': datetime.datetime(2010, 1, 1, 21),
++                'added': [
++                    FileNode('foobar3', content='foobar3'),
++                ],
++                'changed': [
++                    FileNode('foobar', 'FOOBAR'),
++                ],
++            },
++            {
++                'message': 'Removed foobar, changed foobar3',
++                'author': 'Jane Doe <jane.doe@example.com>',
++                'date': datetime.datetime(2010, 1, 1, 22),
++                'changed': [
++                    FileNode('foobar3', content='FOOBAR\nFOOBAR\nFOOBAR\n'),
++                ],
++                'removed': [FileNode('foobar')],
++            },
++        ]
++        return commits
++
++    def test_raise_for_wrong(self):
++        with self.assertRaises(ChangesetDoesNotExistError):
++            self.repo.get_diff('a' * 40, 'b' * 40)
++
++class GitRepositoryGetDiffTest(RepositoryGetDiffTest, unittest.TestCase):
++    backend_alias = 'git'
++
++    def test_initial_commit_diff(self):
++        initial_rev = self.repo.revisions[0]
++        self.assertEqual(self.repo.get_diff(self.repo.EMPTY_CHANGESET, initial_rev), '''diff --git a/foobar b/foobar
++new file mode 100644
++index 0000000..f6ea049
++--- /dev/null
+++++ b/foobar
++@@ -0,0 +1 @@
+++foobar
++\ No newline at end of file
++diff --git a/foobar2 b/foobar2
++new file mode 100644
++index 0000000..e8c9d6b
++--- /dev/null
+++++ b/foobar2
++@@ -0,0 +1 @@
+++foobar2
++\ No newline at end of file
++''')
++
++    def test_second_changeset_diff(self):
++        revs = self.repo.revisions
++        self.assertEqual(self.repo.get_diff(revs[0], revs[1]), '''diff --git a/foobar b/foobar
++index f6ea049..389865b 100644
++--- a/foobar
+++++ b/foobar
++@@ -1 +1 @@
++-foobar
++\ No newline at end of file
+++FOOBAR
++\ No newline at end of file
++diff --git a/foobar3 b/foobar3
++new file mode 100644
++index 0000000..c11c37d
++--- /dev/null
+++++ b/foobar3
++@@ -0,0 +1 @@
+++foobar3
++\ No newline at end of file
++''')
++
++    def test_third_changeset_diff(self):
++        revs = self.repo.revisions
++        self.assertEqual(self.repo.get_diff(revs[1], revs[2]), '''diff --git a/foobar b/foobar
++deleted file mode 100644
++index 389865b..0000000
++--- a/foobar
+++++ /dev/null
++@@ -1 +0,0 @@
++-FOOBAR
++\ No newline at end of file
++diff --git a/foobar3 b/foobar3
++index c11c37d..f932447 100644
++--- a/foobar3
+++++ b/foobar3
++@@ -1 +1,3 @@
++-foobar3
++\ No newline at end of file
+++FOOBAR
+++FOOBAR
+++FOOBAR
++''')
++
++
++class HgRepositoryGetDiffTest(RepositoryGetDiffTest, unittest.TestCase):
++    backend_alias = 'hg'
++
++    def test_initial_commit_diff(self):
++        initial_rev = self.repo.revisions[0]
++        self.assertEqual(self.repo.get_diff(self.repo.EMPTY_CHANGESET, initial_rev), '''diff --git a/foobar b/foobar
++new file mode 100755
++--- /dev/null
+++++ b/foobar
++@@ -0,0 +1,1 @@
+++foobar
++\ No newline at end of file
++diff --git a/foobar2 b/foobar2
++new file mode 100755
++--- /dev/null
+++++ b/foobar2
++@@ -0,0 +1,1 @@
+++foobar2
++\ No newline at end of file
++''')
++
++    def test_second_changeset_diff(self):
++        revs = self.repo.revisions
++        self.assertEqual(self.repo.get_diff(revs[0], revs[1]), '''diff --git a/foobar b/foobar
++--- a/foobar
+++++ b/foobar
++@@ -1,1 +1,1 @@
++-foobar
++\ No newline at end of file
+++FOOBAR
++\ No newline at end of file
++diff --git a/foobar3 b/foobar3
++new file mode 100755
++--- /dev/null
+++++ b/foobar3
++@@ -0,0 +1,1 @@
+++foobar3
++\ No newline at end of file
++''')
++
++    def test_third_changeset_diff(self):
++        revs = self.repo.revisions
++        self.assertEqual(self.repo.get_diff(revs[1], revs[2]), '''diff --git a/foobar b/foobar
++deleted file mode 100755
++--- a/foobar
+++++ /dev/null
++@@ -1,1 +0,0 @@
++-FOOBAR
++\ No newline at end of file
++diff --git a/foobar3 b/foobar3
++--- a/foobar3
+++++ b/foobar3
++@@ -1,1 +1,3 @@
++-foobar3
++\ No newline at end of file
+++FOOBAR
+++FOOBAR
+++FOOBAR
++''')
++
++
+ # For each backend create test case class
+ for alias in SCM_TESTS:
+     attrs = {
+@@ -38,7 +211,6 @@ for alias in SCM_TESTS:
+     bases = (RepositoryBaseTest, unittest.TestCase)
+     globals()[cls_name] = type(cls_name, bases, attrs)
+ 
+-
+ if __name__ == '__main__':
+     unittest.main()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/git_diff_binary_and_normal.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,570 @@
+diff --git a/img/baseline-10px.png b/img/baseline-10px.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..16095dcbf5c9ea41caeb1e3e41d647d425222ed1
+GIT binary patch
+literal 152
+zcmeAS@N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0lw^r(L`iUdT1k0gQ7VIDN`6wR
+zf@f}GdTLN=VoGJ<$y6JlA}dc9$B>F!Nx%O8w`Ue+77%bXFxq5j_~-xsZV_1~1zCBH
+y)y@U((_~Lrb!=|_@`K?vV_&A58+!u-Gs6x+MGjBnI|qTLFnGH9xvX<aXaWHBd@WW0
+
+literal 0
+HcmV?d00001
+
+diff --git a/img/baseline-20px.png b/img/baseline-20px.png
+deleted file mode 100644
+index 6894c4c8289e8600b595caf70d481324e640b8bd..0000000000000000000000000000000000000000
+GIT binary patch
+literal 0
+HcmV?d00001
+
+literal 127
+zcmeAS@N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0lw^r(L`iUdT1k0gQ7VIDN`6wR
+zf@f}GdTLN=VoGJ<$y6JlB1KOZ$B>F!Nk9Jow`XSN<z!=HoHesY!R@WWAwG@Mj0y)B
+YKKcpQXiYX%0xD+kboFyt=akR{0IF0Y6aWAK
+
+diff --git a/index.html b/index.html
+index 9aa2355b0d5f3dd324c8191637703c944ca14fca..654d5cc338e5cb27b41e09739363b025242d8acf 100644
+--- a/index.html
++++ b/index.html
+@@ -2,7 +2,7 @@
+ <html lang="en">
+   <head>
+     <meta charset="utf-8">
+-    <title>Baseline</title>
++    <title>Twitter Baseline</title>
+ 
+     <!-- // Less.js at the ready! -->
+     <link rel="stylesheet/less" type="text/css" media="all" href="less/baseline.less" />
+@@ -11,6 +11,7 @@
+     <!-- // jQuery! -->
+     <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
+     <script type="text/javascript" src="http://tablesorter.com/jquery.tablesorter.min.js"></script>
++    <script type="text/javascript" src="js/jquery/hashgrid.js"></script>
+     <script type="text/javascript">
+       $(document).ready(function(){
+         // Active state in top nav
+@@ -36,7 +37,7 @@
+ <!--
+ 		<style>
+ 		  body {
+-		    background: url(img/baseline-20px.png) repeat 0 0, url(img/grid-940px.png) repeat-y top center;
++		    background: url(img/baseline-10px.png) repeat 0 0, url(img/grid-940px.png) repeat-y top center;
+ 		    background-color: #fff;
+ 		  }
+ 		</style>
+diff --git a/js/global.js b/js/global.js
+deleted file mode 100644
+index a934a3360ef6bdf340a036e6f3475daa7a54103c..0000000000000000000000000000000000000000
+--- a/js/global.js
++++ /dev/null
+@@ -1,75 +0,0 @@
+-$(document).ready(function(){
+-  // Get Heights
+-  windowHeight = $(window).height();
+-  documentHeight = $(document).height();
+-  sidebarHeight = windowHeight - 40;
+-  containerHeight = windowHeight - 40;
+-  
+-  // Get Widths
+-  windowWidth = $(window).width();
+-  containerWidth = windowWidth - 200;
+-  
+-  if (windowHeight < containerHeight) {
+-  
+-    // Set Dimensions for default state (before resize)
+-    $('div#sidebar').css({
+-      height: sidebarHeight
+-    });
+-    $('div#container').css({
+-      width: containerWidth,
+-      height: containerHeight
+-    });
+-    
+-  } else {
+-  
+-    // During resize, set widths
+-    $(window).resize(function() {
+-      console.log('Window Height: ' + $(window).height() + ', Sidebar Height:' + ($(window).height() - 40));
+-  
+-  	  // Get Heights
+-  	  windowHeight = $(window).height();
+-  	  sidebarHeight = windowHeight - 40;
+-  	  containerHeight = windowHeight - 40;
+-  	  
+-      // Get Widths
+-  	  windowWidth = $(window).width();
+-  	  containerWidth = windowWidth - 200;
+-  
+-  	  // Set Dimensions for default state (before resize)
+-  	  $('div#sidebar').css({
+-  	    height: sidebarHeight
+-  	  });
+-  	  $('div#container').css({
+-  	    width: containerWidth,
+-  	    height: containerHeight
+-  	  });
+-    });
+-    // console.log('omgz window is less than container so... fuck.');
+-    $('div#sidebar').css({
+-      height: documentHeight - 40
+-    });
+-    
+-  }
+-  
+-  
+-  
+-/*
+-  // Toggle Calendars
+-  $('div#sidebar ul li a').click(function() {
+-    if ($(this).is('#toggleMonthView')) {
+-      console.log('toggle month');
+-      $(this).addClass('active');
+-      $('#toggleListView').removeClass('active');
+-      $('table#monthView').show();
+-      $('table#listView').hide();
+-    } else {
+-      console.log('toggle list');
+-      $(this).addClass('active');
+-      $('#toggleMonthView').removeClass('active');
+-      $('table#listView').show();
+-      $('table#monthView').hide();
+-    }
+-    return false;
+-  });    
+-*/
+-});
+diff --git a/js/jquery/hashgrid.js b/js/jquery/hashgrid.js
+new file mode 100755
+index 0000000000000000000000000000000000000000..db7af7989499dd359737a880828f8d1b08571f81
+--- /dev/null
++++ b/js/jquery/hashgrid.js
+@@ -0,0 +1,340 @@
++/**
++ * hashgrid (jQuery version)
++ * http://github.com/dotjay/hashgrid
++ * Version 5, 3 Nov 2010
++ * Written by Jon Gibbins, dotjay.co.uk, accessibility.co.uk
++ * Contibutors:
++ * Sean Coates, seancoates.com
++ * Phil Dokas, jetless.org
++ *
++ * // Using a basic #grid setup
++ * var grid = new hashgrid();
++ *
++ * // Using #grid with a custom id (e.g. #mygrid)
++ * var grid = new hashgrid("mygrid");
++ *
++ * // Using #grid with additional options
++ * var grid = new hashgrid({
++ *     id: 'mygrid',            // id for the grid container
++ *     modifierKey: 'alt',      // optional 'ctrl', 'alt' or 'shift'
++ *     showGridKey: 's',        // key to show the grid
++ *     holdGridKey: 'enter',    // key to hold the grid in place
++ *     foregroundKey: 'f',      // key to toggle foreground/background
++ *     jumpGridsKey: 'd',       // key to cycle through the grid classes
++ *     numberOfGrids: 2,        // number of grid classes used
++ *     classPrefix: 'class',    // prefix for the grid classes
++ *     cookiePrefix: 'mygrid'   // prefix for the cookie name
++ * });
++ */
++if (typeof jQuery == "undefined") {
++	alert("Hashgrid: jQuery not loaded. Make sure it's linked to your pages.");
++}
++
++
++/**
++ * hashgrid overlay
++ */
++var hashgrid = function(set) {
++
++	var options = {
++		id: 'grid',             // id for the grid container
++		modifierKey: null,      // optional 'ctrl', 'alt' or 'shift'
++		showGridKey: 'g',       // key to show the grid
++		holdGridKey: 'h',       // key to hold the grid in place
++		foregroundKey: 'f',     // key to toggle foreground/background
++		jumpGridsKey: 'j',      // key to cycle through the grid classes
++		numberOfGrids: 1,       // number of grid classes used
++		classPrefix: 'grid-',   // prefix for the grid classes
++		cookiePrefix: 'hashgrid'// prefix for the cookie name
++	};
++	var overlayOn = false,
++		sticky = false,
++		overlayZState = 'B',
++		overlayZBackground = -1,
++		overlayZForeground = 9999,
++		classNumber = 1;
++
++	// Apply options
++	if (typeof set == 'object') {
++		var k;
++		for (k in set) options[k] = set[k];
++	}
++	else if (typeof set == 'string') {
++		options.id = set;
++	}
++
++	// Remove any conflicting overlay
++	if ($('#' + options.id).length > 0) {
++		$('#' + options.id).remove();
++	}
++
++	// Create overlay, hidden before adding to DOM
++	var overlayEl = $('<div></div>');
++	overlayEl
++		.attr('id', options.id)
++		.css({
++			display: 'none',
++			'pointer-events': 'none'
++		});
++	$("body").prepend(overlayEl);
++	var overlay = $('#' + options.id);
++
++	// Unless a custom z-index is set, ensure the overlay will be behind everything
++	if (overlay.css('z-index') == 'auto') overlay.css('z-index', overlayZBackground);
++
++	// Override the default overlay height with the actual page height
++	var pageHeight = parseFloat($(document).height());
++	overlay.height(pageHeight);
++
++	// Add the first grid line so that we can measure it
++	overlay.append('<div id="' + options.id + '-horiz" class="horiz first-line">');
++
++	// Position off-screen and display to calculate height
++	var top = overlay.css("top");
++	overlay.css({
++		top: "-999px",
++		display: "block"
++	});
++
++	// Calculate the number of grid lines needed
++	var line = $('#' + options.id + '-horiz'),
++		lineHeight = line.outerHeight();
++
++	// Hide and reset top
++	overlay.css({
++		display: "none",
++		top: top
++	});
++
++	// Break on zero line height
++	if (lineHeight <= 0) return true;
++
++	// Add the remaining grid lines
++	var i, numGridLines = Math.floor(pageHeight / lineHeight);
++	for (i = numGridLines - 1; i >= 1; i--) {
++		overlay.append('<div class="horiz"></div>');
++	}
++
++	// vertical grid
++	overlay.append($('<div class="vert-container"></div>'));
++	var overlayVert = overlay.children('.vert-container');
++	var gridWidth = overlay.width();
++	overlayVert.css({width: gridWidth, position: 'absolute', top: 0});
++	overlayVert.append('<div class="vert first-line">&nbsp;</div>');
++
++	// 30 is an arbitrarily large number...
++	// can't calculate the margin width properly
++	for (i = 0; i < 30; i++) {
++		overlayVert.append('<div class="vert">&nbsp;</div>');
++	}
++
++	overlayVert.children()
++		.height(pageHeight)
++		.css({display: 'inline-block'});
++
++	// Check for saved state
++	var overlayCookie = readCookie(options.cookiePrefix + options.id);
++	if (typeof overlayCookie == 'string') {
++		var state = overlayCookie.split(',');
++		state[2] = Number(state[2]);
++		if ((typeof state[2] == 'number') && !isNaN(state[2])) {
++			classNumber = state[2].toFixed(0);
++			overlay.addClass(options.classPrefix + classNumber);
++		}
++		if (state[1] == 'F') {
++			overlayZState = 'F';
++			overlay.css('z-index', overlayZForeground);
++		}
++		if (state[0] == '1') {
++			overlayOn = true;
++			sticky = true;
++			showOverlay();
++		}
++	}
++	else {
++		overlay.addClass(options.classPrefix + classNumber);
++	}
++
++	// Keyboard controls
++	$(document).bind('keydown', keydownHandler);
++	$(document).bind('keyup', keyupHandler);
++
++	/**
++	 * Helpers
++	 */
++
++	function getModifier(e) {
++		if (options.modifierKey == null) return true; // Bypass by default
++		var m = true;
++		switch(options.modifierKey) {
++			case 'ctrl':
++				m = (e.ctrlKey ? e.ctrlKey : false);
++				break;
++
++			case 'alt':
++				m = (e.altKey ? e.altKey : false);
++				break;
++
++			case 'shift':
++				m = (e.shiftKey ? e.shiftKey : false);
++				break;
++		}
++		return m;
++	}
++
++	function getKey(e) {
++		var k = false, c = (e.keyCode ? e.keyCode : e.which);
++		// Handle keywords
++		if (c == 13) k = 'enter';
++		// Handle letters
++		else k = String.fromCharCode(c).toLowerCase();
++		return k;
++	}
++
++	function saveState() {
++		createCookie(options.cookiePrefix + options.id, (sticky ? '1' : '0') + ',' + overlayZState + ',' + classNumber, 1);
++	}
++
++	function showOverlay() {
++		overlay.show();
++		overlayVert.css({width: overlay.width()});
++		// hide any vertical blocks that aren't at the top of the viewport
++		overlayVert.children('.vert').each(function () {
++			$(this).css('display','inline-block');
++			if ($(this).offset().top > 0) {
++				$(this).hide();
++			}
++		});
++	}
++
++	/**
++	 * Event handlers
++	 */
++
++	function keydownHandler(e) {
++		var source = e.target.tagName.toLowerCase();
++		if ((source == 'input') || (source == 'textarea') || (source == 'select')) return true;
++		var m = getModifier(e);
++		if (!m) return true;
++		var k = getKey(e);
++		if (!k) return true;
++		switch(k) {
++			case options.showGridKey:
++				if (!overlayOn) {
++					showOverlay();
++					overlayOn = true;
++				}
++				else if (sticky) {
++					overlay.hide();
++					overlayOn = false;
++					sticky = false;
++					saveState();
++				}
++				break;
++			case options.holdGridKey:
++				if (overlayOn && !sticky) {
++					// Turn sticky overlay on
++					sticky = true;
++					saveState();
++				}
++				break;
++			case options.foregroundKey:
++				if (overlayOn) {
++					// Toggle sticky overlay z-index
++					if (overlay.css('z-index') == overlayZForeground) {
++						overlay.css('z-index', overlayZBackground);
++						overlayZState = 'B';
++					}
++					else {
++						overlay.css('z-index', overlayZForeground);
++						overlayZState = 'F';
++					}
++					saveState();
++				}
++				break;
++			case options.jumpGridsKey:
++				if (overlayOn && (options.numberOfGrids > 1)) {
++					// Cycle through the available grids
++					overlay.removeClass(options.classPrefix + classNumber);
++					classNumber++;
++					if (classNumber > options.numberOfGrids) classNumber = 1;
++					overlay.addClass(options.classPrefix + classNumber);
++					showOverlay();
++					if (/webkit/.test( navigator.userAgent.toLowerCase() )) {
++						forceRepaint();
++					}
++					saveState();
++				}
++				break;
++		}
++	}
++
++	function keyupHandler(e) {
++		var m = getModifier(e);
++		if (!m) return true;
++		var k = getKey(e);
++		if (!k) return true;
++		if ((k == options.showGridKey) && !sticky) {
++			overlay.hide();
++			overlayOn = false;
++		}
++	}
++
++	/**
++	 * Cookie functions
++	 *
++	 * By Peter-Paul Koch:
++	 * http://www.quirksmode.org/js/cookies.html
++	 */
++	function createCookie(name,value,days) {
++		if (days) {
++			var date = new Date();
++			date.setTime(date.getTime()+(days*24*60*60*1000));
++			var expires = "; expires="+date.toGMTString();
++		}
++		else var expires = "";
++		document.cookie = name+"="+value+expires+"; path=/";
++	}
++
++	function readCookie(name) {
++		var nameEQ = name + "=";
++		var ca = document.cookie.split(';');
++		for(var i=0;i < ca.length;i++) {
++			var c = ca[i];
++			while (c.charAt(0)==' ') c = c.substring(1,c.length);
++			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
++		}
++		return null;
++	}
++
++	function eraseCookie(name) {
++		createCookie(name,"",-1);
++	}
++
++	/**
++	 * Forces a repaint (because WebKit has issues)
++	 * http://www.sitepoint.com/forums/showthread.php?p=4538763
++	 * http://www.phpied.com/the-new-game-show-will-it-reflow/
++	 */
++	function forceRepaint() {
++		var ss = document.styleSheets[0];
++		try {
++			ss.addRule('.xxxxxx', 'position: relative');
++			ss.removeRule(ss.rules.length - 1);
++		} catch(e){}
++	}
++
++}
++
++
++/**
++ * You can call hashgrid from your own code, but it's loaded here as
++ * an example for your convenience.
++ */
++$(document).ready(function() {
++
++	var grid = new hashgrid({
++		numberOfGrids: 2
++	});
++
++});
+diff --git a/less/docs.less b/less/docs.less
+index 165ddb142019d6ec45aae1fa3fdbb3cbcea3bfdb..30b561118c290925a213d987691dfcbeafeb8f44 100644
+--- a/less/docs.less
++++ b/less/docs.less
+@@ -1,3 +1,10 @@
++body {
++  #gradient > .vertical-three-colors(#eee, #fff, 0.15, #fff);
++  background-attachment: fixed;
++  background-position: 0 40px;
++  position: relative;
++}
++
+ // Give us some love
+ header,
+ section,
+@@ -77,3 +84,30 @@ aside {
+ section {
+   margin-bottom: 40px;
+ }
++
++// Hashgrid grid
++/**
++ * Grid
++ */
++#grid {
++  width: 980px;
++  position: absolute;
++  top: 0;
++  left: 50%;
++  margin-left: -490px;
++}
++#grid div.vert {
++  width: 39px;
++  border: solid darkturquoise;
++  border-width: 0 1px;
++  margin-right: 19px;
++}
++#grid div.vert.first-line {
++  margin-left: 19px;
++}
++#grid div.horiz {
++  height: 19px;
++  border-bottom: 1px dotted rgba(255,0,0,.25);
++  margin: 0;
++  padding: 0;
++}
+diff --git a/less/scaffolding.less b/less/scaffolding.less
+index 2191d98b3f3f805b62eb3b60f1cb4f0be5bf1aa8..88bcf714a9f075cd7ba60033022f21ff95efc776 100644
+--- a/less/scaffolding.less
++++ b/less/scaffolding.less
+@@ -7,7 +7,7 @@
+ -------------------------------------------------- */
+ 
+ div.row {
+-  .clearfix;
++  .clearfix();
+   div.span1   { .columns(1); }
+   div.span2   { .columns(2); }
+   div.span3   { .columns(3); }
+@@ -34,8 +34,6 @@ html, body {
+   background-color: #fff;
+ }
+ body {
+-  #gradient > .vertical-three-colors(#eee, #fff, 0.25, #fff);
+-  background-attachment: fixed;
+   margin: 0;
+   .sans-serif(normal,14px,20px);
+   color: @gray;
+diff --git a/readme.markdown b/readme.markdown
+index 36b357b31afdee5fffbeddeba3144ffbd98d9778..41966346963824f2ce5497b8275c3a15c2044ac9 100644
+--- a/readme.markdown
++++ b/readme.markdown
+@@ -1,13 +1,4 @@
+ TODOS
+ 
+-* Write "Using Twitter BP" section
+-** Two ways to use: LESS.js or compiled
+-** Not meant to be 100% bulletproof, but is 90% bulletproof (stats?)
+-** Advanced framework for fast prototyping, internal app development, bootstraping new websites
+-** Can be easily modified to provide more legacy support
+-
+-* Add grid examples back in
+ * Cross browser checks? Show this anywhere?
+-* Add layouts section back in
+-
+-* Point JS libraries to public library links instead of within the repo
+\ No newline at end of file
++* Add layouts section back in
+\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/git_diff_chmod.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,3 @@
+diff --git a/work-horus.xls b/work-horus.xls
+old mode 100644
+new mode 100755
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/git_diff_mod_single_binary_file.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,1094 @@
+diff --git a/US Warszawa.jpg b/US Warszawa.jpg
+index 5a4b530a9322aad2b13d39a423a6a93146a09a29..b3b889566812a77f52376379e96d32d3db117150
+GIT binary patch
+literal 85172
+zc$~C)2S5|s+ThHjCnN+2EtG^_0tAwf03w7A0)m1FNTf(87CIILK}Aupi-NuPMpaNy
+zR4!NS9eeKuyCO>1Gn3%OckkPM|J&UpXXZO~&iVTHO)SEF{q3C`L{y8D^G?n@S$eXH
+zPIVG+9l4oF<EifMRDOs&BQ-CLD{vHvxKzG>`ouhW4wvsgF)>f>D<7AcEay@^Jh-`e
+zIr79w)TwJ5V}ml2ota0UkM1FteYo-TOVF0Uy9a(yOdPg!(p|XtI8FaRvz{MQcYXZy
+z)veR6d~f&Hk^8^oHXC**5=X{#uOb&GG|3;F<Ugl(r6eBnZ0-A8^>t+ZnSif~Me8^>
+zZohqef5Sbf{!UGq=c*8%MTCFO)0xv=HY0x+ub(l)s&vUFuQXec(Q3-MM>}Ze?$=8m
+z7#<3a*3z}xw9b3T;}gye!D(F=#pd`v(^ZmXIfC#^{*M&`wZNi&-t?Xi8K&hAh@x`S
+z{Ad2F*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DggRg3ivK4R7oKk
+z0)-)%i~|uRp)q68RCh8eBmhppqtX#TEKs&X2_X$)1(>i;0EH|NOecK*`TghjpWpxH
+zZvyFR-Po6!9bdgHMf%esK$~Gc3c^p|!B*|$|Nbx6Wm`RC{n>phy5p-?k^a>gCk=W5
+zb%%nBMvd$wB|`xQ&c_D~XBhU%-it&d!$TINU)7&`5EF*SX$+*VJ~H$Qi0t7f+0?$_
+zk*MK&5&voT{Qkgc_X5MCFhlo7jJOQli-t#(C_6%87#<=K{Qr1}#M{0$wSkw%MhKV;
+T!viJ;E(+{1YEXtu4BY<*Qm7~*
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/git_diff_rename_file.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,4 @@
+diff --git a/work-horus.xls b/file.xls
+similarity index 100%
+rename from work-horus.xls
+rename to file.xls
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/hg_diff_add_single_binary_file.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,5257 @@
+diff --git a/US Warszawa.jpg b/US Warszawa.jpg
+new file mode 100755
+index 0000000000000000000000000000000000000000..5a4b530a9322aad2b13d39a423a6a93146a09a29
+GIT binary patch
+literal 375469
+zc%1CKcTg1D+CJLk90df45(LQ^BqNeUMUb3E2?COnq#;YrAfPB2Br}pF=Zxf>hYSMF
+zkQ`uOezW&J_xo<$x^>R?$MHK=_wKG|)pS*_>F%}qeV_Mz)>_@DIn)|J{#Zp_1;9XW
+zycoOyfP&(QD|^|#1^{(+ZU7$u08Bs_0~4S^@7+Te+i+|E1N|$7E(+)(EGQ%_B_t>%
+zB+eozDJ3E<B`5;?wP68R7=P8pMHdXrzxLn!amIh_cjNw56ZL<;4|LT(4x$zTB>)#2
+z2Nwq$7Z(Q?4-XfgkerZ^fPj#Sl#H1CHWe-HZ7Ld?JB%F6cj(y|XlPh?S=jDz-siqg
+z$IK_l$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FSZ`{m1l$P2U)7fapiFFD5VDA+G00000
+z000000000000000000000000000000000000000000000000000000000000z<=On
+zH&&tX@^g!x>wPTK*w@pBH_T@ZGWEREj4L(H$Q7AbwwXQp;6eU>e0DaaFvv%_bm(PN
+z03$a<cs%esLC;4N?UfwERhBZ8C!d}B@G$}a0000000000000000KhM)z2p8HTS1|5
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/hg_diff_binary_and_normal.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,552 @@
+diff --git a/img/baseline-10px.png b/img/baseline-10px.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..16095dcbf5c9ea41caeb1e3e41d647d425222ed1
+GIT binary patch
+literal 152
+zc%17D@N?(olHy`uVBq!ia0vp^j6j^i!3HGVb)pi0lw^r(L`iUdT1k0gQ7VIDN`6wR
+zf@f}GdTLN=VoGJ<$y6JlA}dc9$B>F!Nx%O8w`Ue+77%bXFxq5j_~-xsZV_1~1zCBH
+y)y@U((_~Lrb!=|_@`K?vV_&A58+!u-Gs6x+MGjBnI|qTLFnGH9xvX<aXaWHBd@WW0
+
+diff --git a/img/baseline-20px.png b/img/baseline-20px.png
+deleted file mode 100644
+Binary file img/baseline-20px.png has changed
+diff --git a/index.html b/index.html
+--- a/index.html
++++ b/index.html
+@@ -2,7 +2,7 @@
+ <html lang="en">
+   <head>
+     <meta charset="utf-8">
+-    <title>Baseline</title>
++    <title>Twitter Baseline</title>
+ 
+     <!-- // Less.js at the ready! -->
+     <link rel="stylesheet/less" type="text/css" media="all" href="less/baseline.less" />
+@@ -11,6 +11,7 @@
+     <!-- // jQuery! -->
+     <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
+     <script type="text/javascript" src="http://tablesorter.com/jquery.tablesorter.min.js"></script>
++    <script type="text/javascript" src="js/jquery/hashgrid.js"></script>
+     <script type="text/javascript">
+       $(document).ready(function(){
+         // Active state in top nav
+@@ -36,7 +37,7 @@
+ <!--
+ 		<style>
+ 		  body {
+-		    background: url(img/baseline-20px.png) repeat 0 0, url(img/grid-940px.png) repeat-y top center;
++		    background: url(img/baseline-10px.png) repeat 0 0, url(img/grid-940px.png) repeat-y top center;
+ 		    background-color: #fff;
+ 		  }
+ 		</style>
+diff --git a/js/global.js b/js/global.js
+deleted file mode 100644
+--- a/js/global.js
++++ /dev/null
+@@ -1,75 +0,0 @@
+-$(document).ready(function(){
+-  // Get Heights
+-  windowHeight = $(window).height();
+-  documentHeight = $(document).height();
+-  sidebarHeight = windowHeight - 40;
+-  containerHeight = windowHeight - 40;
+-  
+-  // Get Widths
+-  windowWidth = $(window).width();
+-  containerWidth = windowWidth - 200;
+-  
+-  if (windowHeight < containerHeight) {
+-  
+-    // Set Dimensions for default state (before resize)
+-    $('div#sidebar').css({
+-      height: sidebarHeight
+-    });
+-    $('div#container').css({
+-      width: containerWidth,
+-      height: containerHeight
+-    });
+-    
+-  } else {
+-  
+-    // During resize, set widths
+-    $(window).resize(function() {
+-      console.log('Window Height: ' + $(window).height() + ', Sidebar Height:' + ($(window).height() - 40));
+-  
+-  	  // Get Heights
+-  	  windowHeight = $(window).height();
+-  	  sidebarHeight = windowHeight - 40;
+-  	  containerHeight = windowHeight - 40;
+-  	  
+-      // Get Widths
+-  	  windowWidth = $(window).width();
+-  	  containerWidth = windowWidth - 200;
+-  
+-  	  // Set Dimensions for default state (before resize)
+-  	  $('div#sidebar').css({
+-  	    height: sidebarHeight
+-  	  });
+-  	  $('div#container').css({
+-  	    width: containerWidth,
+-  	    height: containerHeight
+-  	  });
+-    });
+-    // console.log('omgz window is less than container so... fuck.');
+-    $('div#sidebar').css({
+-      height: documentHeight - 40
+-    });
+-    
+-  }
+-  
+-  
+-  
+-/*
+-  // Toggle Calendars
+-  $('div#sidebar ul li a').click(function() {
+-    if ($(this).is('#toggleMonthView')) {
+-      console.log('toggle month');
+-      $(this).addClass('active');
+-      $('#toggleListView').removeClass('active');
+-      $('table#monthView').show();
+-      $('table#listView').hide();
+-    } else {
+-      console.log('toggle list');
+-      $(this).addClass('active');
+-      $('#toggleMonthView').removeClass('active');
+-      $('table#listView').show();
+-      $('table#monthView').hide();
+-    }
+-    return false;
+-  });    
+-*/
+-});
+diff --git a/js/jquery/hashgrid.js b/js/jquery/hashgrid.js
+new file mode 100755
+--- /dev/null
++++ b/js/jquery/hashgrid.js
+@@ -0,0 +1,340 @@
++/**
++ * hashgrid (jQuery version)
++ * http://github.com/dotjay/hashgrid
++ * Version 5, 3 Nov 2010
++ * Written by Jon Gibbins, dotjay.co.uk, accessibility.co.uk
++ * Contibutors:
++ * Sean Coates, seancoates.com
++ * Phil Dokas, jetless.org
++ *
++ * // Using a basic #grid setup
++ * var grid = new hashgrid();
++ *
++ * // Using #grid with a custom id (e.g. #mygrid)
++ * var grid = new hashgrid("mygrid");
++ *
++ * // Using #grid with additional options
++ * var grid = new hashgrid({
++ *     id: 'mygrid',            // id for the grid container
++ *     modifierKey: 'alt',      // optional 'ctrl', 'alt' or 'shift'
++ *     showGridKey: 's',        // key to show the grid
++ *     holdGridKey: 'enter',    // key to hold the grid in place
++ *     foregroundKey: 'f',      // key to toggle foreground/background
++ *     jumpGridsKey: 'd',       // key to cycle through the grid classes
++ *     numberOfGrids: 2,        // number of grid classes used
++ *     classPrefix: 'class',    // prefix for the grid classes
++ *     cookiePrefix: 'mygrid'   // prefix for the cookie name
++ * });
++ */
++if (typeof jQuery == "undefined") {
++	alert("Hashgrid: jQuery not loaded. Make sure it's linked to your pages.");
++}
++
++
++/**
++ * hashgrid overlay
++ */
++var hashgrid = function(set) {
++
++	var options = {
++		id: 'grid',             // id for the grid container
++		modifierKey: null,      // optional 'ctrl', 'alt' or 'shift'
++		showGridKey: 'g',       // key to show the grid
++		holdGridKey: 'h',       // key to hold the grid in place
++		foregroundKey: 'f',     // key to toggle foreground/background
++		jumpGridsKey: 'j',      // key to cycle through the grid classes
++		numberOfGrids: 1,       // number of grid classes used
++		classPrefix: 'grid-',   // prefix for the grid classes
++		cookiePrefix: 'hashgrid'// prefix for the cookie name
++	};
++	var overlayOn = false,
++		sticky = false,
++		overlayZState = 'B',
++		overlayZBackground = -1,
++		overlayZForeground = 9999,
++		classNumber = 1;
++
++	// Apply options
++	if (typeof set == 'object') {
++		var k;
++		for (k in set) options[k] = set[k];
++	}
++	else if (typeof set == 'string') {
++		options.id = set;
++	}
++
++	// Remove any conflicting overlay
++	if ($('#' + options.id).length > 0) {
++		$('#' + options.id).remove();
++	}
++
++	// Create overlay, hidden before adding to DOM
++	var overlayEl = $('<div></div>');
++	overlayEl
++		.attr('id', options.id)
++		.css({
++			display: 'none',
++			'pointer-events': 'none'
++		});
++	$("body").prepend(overlayEl);
++	var overlay = $('#' + options.id);
++
++	// Unless a custom z-index is set, ensure the overlay will be behind everything
++	if (overlay.css('z-index') == 'auto') overlay.css('z-index', overlayZBackground);
++
++	// Override the default overlay height with the actual page height
++	var pageHeight = parseFloat($(document).height());
++	overlay.height(pageHeight);
++
++	// Add the first grid line so that we can measure it
++	overlay.append('<div id="' + options.id + '-horiz" class="horiz first-line">');
++
++	// Position off-screen and display to calculate height
++	var top = overlay.css("top");
++	overlay.css({
++		top: "-999px",
++		display: "block"
++	});
++
++	// Calculate the number of grid lines needed
++	var line = $('#' + options.id + '-horiz'),
++		lineHeight = line.outerHeight();
++
++	// Hide and reset top
++	overlay.css({
++		display: "none",
++		top: top
++	});
++
++	// Break on zero line height
++	if (lineHeight <= 0) return true;
++
++	// Add the remaining grid lines
++	var i, numGridLines = Math.floor(pageHeight / lineHeight);
++	for (i = numGridLines - 1; i >= 1; i--) {
++		overlay.append('<div class="horiz"></div>');
++	}
++
++	// vertical grid
++	overlay.append($('<div class="vert-container"></div>'));
++	var overlayVert = overlay.children('.vert-container');
++	var gridWidth = overlay.width();
++	overlayVert.css({width: gridWidth, position: 'absolute', top: 0});
++	overlayVert.append('<div class="vert first-line">&nbsp;</div>');
++
++	// 30 is an arbitrarily large number...
++	// can't calculate the margin width properly
++	for (i = 0; i < 30; i++) {
++		overlayVert.append('<div class="vert">&nbsp;</div>');
++	}
++
++	overlayVert.children()
++		.height(pageHeight)
++		.css({display: 'inline-block'});
++
++	// Check for saved state
++	var overlayCookie = readCookie(options.cookiePrefix + options.id);
++	if (typeof overlayCookie == 'string') {
++		var state = overlayCookie.split(',');
++		state[2] = Number(state[2]);
++		if ((typeof state[2] == 'number') && !isNaN(state[2])) {
++			classNumber = state[2].toFixed(0);
++			overlay.addClass(options.classPrefix + classNumber);
++		}
++		if (state[1] == 'F') {
++			overlayZState = 'F';
++			overlay.css('z-index', overlayZForeground);
++		}
++		if (state[0] == '1') {
++			overlayOn = true;
++			sticky = true;
++			showOverlay();
++		}
++	}
++	else {
++		overlay.addClass(options.classPrefix + classNumber);
++	}
++
++	// Keyboard controls
++	$(document).bind('keydown', keydownHandler);
++	$(document).bind('keyup', keyupHandler);
++
++	/**
++	 * Helpers
++	 */
++
++	function getModifier(e) {
++		if (options.modifierKey == null) return true; // Bypass by default
++		var m = true;
++		switch(options.modifierKey) {
++			case 'ctrl':
++				m = (e.ctrlKey ? e.ctrlKey : false);
++				break;
++
++			case 'alt':
++				m = (e.altKey ? e.altKey : false);
++				break;
++
++			case 'shift':
++				m = (e.shiftKey ? e.shiftKey : false);
++				break;
++		}
++		return m;
++	}
++
++	function getKey(e) {
++		var k = false, c = (e.keyCode ? e.keyCode : e.which);
++		// Handle keywords
++		if (c == 13) k = 'enter';
++		// Handle letters
++		else k = String.fromCharCode(c).toLowerCase();
++		return k;
++	}
++
++	function saveState() {
++		createCookie(options.cookiePrefix + options.id, (sticky ? '1' : '0') + ',' + overlayZState + ',' + classNumber, 1);
++	}
++
++	function showOverlay() {
++		overlay.show();
++		overlayVert.css({width: overlay.width()});
++		// hide any vertical blocks that aren't at the top of the viewport
++		overlayVert.children('.vert').each(function () {
++			$(this).css('display','inline-block');
++			if ($(this).offset().top > 0) {
++				$(this).hide();
++			}
++		});
++	}
++
++	/**
++	 * Event handlers
++	 */
++
++	function keydownHandler(e) {
++		var source = e.target.tagName.toLowerCase();
++		if ((source == 'input') || (source == 'textarea') || (source == 'select')) return true;
++		var m = getModifier(e);
++		if (!m) return true;
++		var k = getKey(e);
++		if (!k) return true;
++		switch(k) {
++			case options.showGridKey:
++				if (!overlayOn) {
++					showOverlay();
++					overlayOn = true;
++				}
++				else if (sticky) {
++					overlay.hide();
++					overlayOn = false;
++					sticky = false;
++					saveState();
++				}
++				break;
++			case options.holdGridKey:
++				if (overlayOn && !sticky) {
++					// Turn sticky overlay on
++					sticky = true;
++					saveState();
++				}
++				break;
++			case options.foregroundKey:
++				if (overlayOn) {
++					// Toggle sticky overlay z-index
++					if (overlay.css('z-index') == overlayZForeground) {
++						overlay.css('z-index', overlayZBackground);
++						overlayZState = 'B';
++					}
++					else {
++						overlay.css('z-index', overlayZForeground);
++						overlayZState = 'F';
++					}
++					saveState();
++				}
++				break;
++			case options.jumpGridsKey:
++				if (overlayOn && (options.numberOfGrids > 1)) {
++					// Cycle through the available grids
++					overlay.removeClass(options.classPrefix + classNumber);
++					classNumber++;
++					if (classNumber > options.numberOfGrids) classNumber = 1;
++					overlay.addClass(options.classPrefix + classNumber);
++					showOverlay();
++					if (/webkit/.test( navigator.userAgent.toLowerCase() )) {
++						forceRepaint();
++					}
++					saveState();
++				}
++				break;
++		}
++	}
++
++	function keyupHandler(e) {
++		var m = getModifier(e);
++		if (!m) return true;
++		var k = getKey(e);
++		if (!k) return true;
++		if ((k == options.showGridKey) && !sticky) {
++			overlay.hide();
++			overlayOn = false;
++		}
++	}
++
++	/**
++	 * Cookie functions
++	 *
++	 * By Peter-Paul Koch:
++	 * http://www.quirksmode.org/js/cookies.html
++	 */
++	function createCookie(name,value,days) {
++		if (days) {
++			var date = new Date();
++			date.setTime(date.getTime()+(days*24*60*60*1000));
++			var expires = "; expires="+date.toGMTString();
++		}
++		else var expires = "";
++		document.cookie = name+"="+value+expires+"; path=/";
++	}
++
++	function readCookie(name) {
++		var nameEQ = name + "=";
++		var ca = document.cookie.split(';');
++		for(var i=0;i < ca.length;i++) {
++			var c = ca[i];
++			while (c.charAt(0)==' ') c = c.substring(1,c.length);
++			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
++		}
++		return null;
++	}
++
++	function eraseCookie(name) {
++		createCookie(name,"",-1);
++	}
++
++	/**
++	 * Forces a repaint (because WebKit has issues)
++	 * http://www.sitepoint.com/forums/showthread.php?p=4538763
++	 * http://www.phpied.com/the-new-game-show-will-it-reflow/
++	 */
++	function forceRepaint() {
++		var ss = document.styleSheets[0];
++		try {
++			ss.addRule('.xxxxxx', 'position: relative');
++			ss.removeRule(ss.rules.length - 1);
++		} catch(e){}
++	}
++
++}
++
++
++/**
++ * You can call hashgrid from your own code, but it's loaded here as
++ * an example for your convenience.
++ */
++$(document).ready(function() {
++
++	var grid = new hashgrid({
++		numberOfGrids: 2
++	});
++
++});
+diff --git a/less/docs.less b/less/docs.less
+--- a/less/docs.less
++++ b/less/docs.less
+@@ -1,3 +1,10 @@
++body {
++  #gradient > .vertical-three-colors(#eee, #fff, 0.15, #fff);
++  background-attachment: fixed;
++  background-position: 0 40px;
++  position: relative;
++}
++
+ // Give us some love
+ header,
+ section,
+@@ -77,3 +84,30 @@
+ section {
+   margin-bottom: 40px;
+ }
++
++// Hashgrid grid
++/**
++ * Grid
++ */
++#grid {
++  width: 980px;
++  position: absolute;
++  top: 0;
++  left: 50%;
++  margin-left: -490px;
++}
++#grid div.vert {
++  width: 39px;
++  border: solid darkturquoise;
++  border-width: 0 1px;
++  margin-right: 19px;
++}
++#grid div.vert.first-line {
++  margin-left: 19px;
++}
++#grid div.horiz {
++  height: 19px;
++  border-bottom: 1px dotted rgba(255,0,0,.25);
++  margin: 0;
++  padding: 0;
++}
+diff --git a/less/scaffolding.less b/less/scaffolding.less
+--- a/less/scaffolding.less
++++ b/less/scaffolding.less
+@@ -7,7 +7,7 @@
+ -------------------------------------------------- */
+ 
+ div.row {
+-  .clearfix;
++  .clearfix();
+   div.span1   { .columns(1); }
+   div.span2   { .columns(2); }
+   div.span3   { .columns(3); }
+@@ -34,8 +34,6 @@
+   background-color: #fff;
+ }
+ body {
+-  #gradient > .vertical-three-colors(#eee, #fff, 0.25, #fff);
+-  background-attachment: fixed;
+   margin: 0;
+   .sans-serif(normal,14px,20px);
+   color: @gray;
+diff --git a/readme.markdown b/readme.markdown
+--- a/readme.markdown
++++ b/readme.markdown
+@@ -1,13 +1,4 @@
+ TODOS
+ 
+-* Write "Using Twitter BP" section
+-** Two ways to use: LESS.js or compiled
+-** Not meant to be 100% bulletproof, but is 90% bulletproof (stats?)
+-** Advanced framework for fast prototyping, internal app development, bootstraping new websites
+-** Can be easily modified to provide more legacy support
+-
+-* Add grid examples back in
+ * Cross browser checks? Show this anywhere?
+-* Add layouts section back in
+-
+-* Point JS libraries to public library links instead of within the repo
+\ No newline at end of file
++* Add layouts section back in
+\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/hg_diff_chmod.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,3 @@
+diff --git a/file b/file
+old mode 100755
+new mode 100644
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/hg_diff_del_single_binary_file.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,3 @@
+diff --git a/US Warszawa.jpg b/US Warszawa.jpg
+deleted file mode 100755
+Binary file US Warszawa.jpg has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/hg_diff_mod_single_binary_file.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,1094 @@
+diff --git a/US Warszawa.jpg b/US Warszawa.jpg
+index 5a4b530a9322aad2b13d39a423a6a93146a09a29..b3b889566812a77f52376379e96d32d3db117150
+GIT binary patch
+literal 85172
+zc$~C)2S5|s+ThHjCnN+2EtG^_0tAwf03w7A0)m1FNTf(87CI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Nz5ZyI;#+-r#OU`WF{1d%GkU5br;g6?4EXO0sDDeFR@Ej;oBo>S&fsF<t
+z-Eks!(!da70nlNBF<>HqN<ttBbOF2-#C0-BI1@Atu)}050F)xcK;jYbCcBe??f`%l
+zNLYyYqutS92)K(tV3SVzeL!p=ML?LRfkps<1i+*)G3;WYPzuxzkh95H8Z-frM}Cm{
+z=_C{`0l1P%K?6bweR0B)5(z)>w0L(4co^`T6bSbSGyurRXb^N5A&~?H0W^DmpxaOC
+zD#U@=LbZ~D5Qzc<6o8|FFefAnN<|cyTLM@!acP_e;R`hbHV^6)Fwz*vC18!9Ndb}r
+ztARH`lS+e-f=ttqbaynF^aIz5kT1rfiFh28cz|azL0C#63{Rt=i~xNAH;P3A!4z;F
+zP{$&mdH|ONwJiYpSFjtHbrLvx$_ENqifBOHK_N+07(mQ4ksgqBDggRg3ivK4R7oKk
+z0)-)%i~|uRp)q68RCh8eBmhppqtX#TEKs&X2_X$)1(>i;0EH|NOecK*`TghjpWpxH
+zZvyFR-Po6!9bdgHMf%esK$~Gc3c^p|!B*|$|Nbx6Wm`RC{n>phy5p-?k^a>gCk=W5
+zb%%nBMvd$wB|`xQ&c_D~XBhU%-it&d!$TINU)7&`5EF*SX$+*VJ~H$Qi0t7f+0?$_
+zk*MK&5&voT{Qkgc_X5MCFhlo7jJOQli-t#(C_6%87#<=K{Qr1}#M{0$wSkw%MhKV;
+T!viJ;E(+{1YEXtu4BY<*Qm7~*
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/hg_diff_rename_file.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,3 @@
+diff --git a/file b/file_renamed
+rename from file
+rename to file_renamed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/journal_dump.csv	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,2035 @@
+user_log_id,user_id,username,repository_id,repository_name,user_ip,action,action_date
+40,11,bobbbb,7,Something,58.96.60.131,push:8ae497884817c13097315b1740f2dd4dc87146da,2012-06-20 06:24:58.397209
+41,3,demo,8,Test_Repo,"",started_following_repo,2012-06-20 09:28:05.148974
+42,3,demo,8,Test_Repo,"",user_created_repo,2012-06-20 09:28:05.16412
+43,3,demo,8,Test_Repo,"",push_local:ef71a9202c55,2012-06-20 10:55:45.001052
+44,3,demo,8,Test_Repo,"",push_local:38d49edbd7b2,2012-06-20 10:56:51.749613
+45,3,demo,9,demo_repo,"",started_following_repo,2012-06-20 11:32:14.24928
+46,3,demo,9,demo_repo,"",user_created_repo,2012-06-20 11:32:14.263506
+47,3,demo,9,demo_repo,"",push_local:33ee55de14bc,2012-06-20 11:33:13.23204
+48,3,demo,9,demo_repo,130.225.93.59,pull,2012-06-20 12:46:47.218691
+49,3,demo,9,demo_repo,130.225.93.59,pull,2012-06-20 12:48:09.634995
+50,3,demo,9,demo_repo,130.225.93.59,pull,2012-06-20 12:55:14.751441
+51,3,demo,9,demo_repo,130.225.93.59,pull,2012-06-20 13:21:12.623288
+56,3,demo,9,demo_repo,130.225.93.59,pull,2012-06-20 15:12:46.55823
+57,3,demo,12,rawr,"",started_following_repo,2012-06-20 17:16:42.947936
+58,3,demo,12,rawr,"",user_created_repo,2012-06-20 17:16:42.962133
+59,3,demo,12,rawr,"",stopped_following_repo,2012-06-20 17:17:12.759495
+60,3,demo,12,rawr,"",started_following_repo,2012-06-20 17:17:28.877751
+62,3,demo,12,rawr,"",user_forked_repo:fork-rawr,2012-06-20 17:17:48.439005
+64,3,demo,14,fork-demo_repo-cubed,"",started_following_repo,2012-06-20 18:54:02.751941
+65,3,demo,9,demo_repo,"",user_forked_repo:fork-demo_repo-cubed,2012-06-20 18:54:02.767968
+66,3,demo,14,fork-demo_repo-cubed,"",user_created_fork:fork-demo_repo-cubed,2012-06-20 18:54:02.777189
+67,1,default,4,fork-fork-test,194.105.98.146,pull,2012-06-20 21:53:57.018888
+68,1,default,7,Something,54.247.183.89,pull,2012-06-21 01:11:19.524998
+69,3,demo,15,wibblewobble,"",started_following_repo,2012-06-21 10:21:31.937511
+70,3,demo,15,wibblewobble,"",user_created_repo,2012-06-21 10:21:31.952874
+71,3,demo,15,wibblewobble,"",push_local:c1953b3f4981,2012-06-21 10:23:05.881392
+72,3,demo,8,Test_Repo,"",user_commented_revision:38d49edbd7b2599acf9ef40198d9107616c1faea,2012-06-21 21:11:46.159601
+73,3,demo,8,Test_Repo,"",push_local:1b6b9ca4d1e2,2012-06-21 21:13:03.715136
+74,3,demo,8,Test_Repo,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-06-21 21:13:32.771404
+75,3,demo,8,Test_Repo,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-06-21 21:13:58.118806
+76,1,default,4,fork-fork-test,98.215.125.44,pull,2012-06-22 09:04:39.8341
+77,1,default,1,test,98.215.125.44,pull,2012-06-22 09:06:34.310867
+78,3,demo,16,My-Demo-Test,"",started_following_repo,2012-06-22 09:24:25.528203
+79,3,demo,16,My-Demo-Test,"",user_created_repo,2012-06-22 09:24:25.544844
+80,3,demo,16,My-Demo-Test,"",push_local:c011a9245a0a,2012-06-22 09:25:51.981168
+81,3,demo,17,fork-test1,"",started_following_repo,2012-06-22 12:45:00.782089
+82,3,demo,7,Something,"",user_forked_repo:fork-test1,2012-06-22 12:45:00.874723
+83,3,demo,17,fork-test1,"",user_created_fork:fork-test1,2012-06-22 12:45:00.888746
+84,1,default,17,fork-test1,193.111.227.10,pull,2012-06-22 12:46:05.626038
+85,3,demo,17,fork-test1,"",push_local:fbba7ec0a373,2012-06-22 12:47:02.869839
+86,3,demo,,testuser,"",started_following_repo,2012-06-22 13:07:21.784074
+87,3,demo,,testuser,"",user_created_repo,2012-06-22 13:07:21.797918
+52,12,asddsaasd,,asdasd,"",started_following_repo,2012-06-20 13:29:33.432553
+53,12,asddsaasd,,asdasd,"",user_created_repo,2012-06-20 13:29:33.443905
+54,3,demo,,foo-bar,"",started_following_repo,2012-06-20 13:41:00.903917
+55,3,demo,,foo-bar,"",user_created_repo,2012-06-20 13:41:00.919042
+61,3,demo,,fork-rawr,"",started_following_repo,2012-06-20 17:17:48.419615
+63,3,demo,,fork-rawr,"",user_created_fork:fork-rawr,2012-06-20 17:17:48.45108
+88,3,demo,,testuser,"",user_deleted_repo,2012-06-22 13:08:17.608089
+89,3,demo,8,Test_Repo,"",stopped_following_repo,2012-06-22 13:09:37.992254
+90,3,demo,8,Test_Repo,"",started_following_repo,2012-06-22 13:09:39.613543
+91,3,demo,8,Test_Repo,"",stopped_following_repo,2012-06-22 13:09:41.493402
+92,3,demo,19,testmaster,"",started_following_repo,2012-06-22 13:10:21.695641
+93,3,demo,19,testmaster,"",user_created_repo,2012-06-22 13:10:21.708814
+96,3,demo,19,testmaster,"",push_local:b33786b10a28,2012-06-22 13:15:36.222686
+104,3,demo,24,fork-Something,"",started_following_repo,2012-06-25 18:03:33.068935
+105,3,demo,7,Something,"",user_forked_repo:fork-Something,2012-06-25 18:03:33.13689
+106,3,demo,24,fork-Something,"",user_created_fork:fork-Something,2012-06-25 18:03:33.149499
+107,3,demo,8,Test_Repo,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-06-25 18:04:15.229245
+108,15,Vipous,25,My1,"",started_following_repo,2012-06-25 22:03:18.626137
+109,15,Vipous,25,My1,"",user_created_repo,2012-06-25 22:03:18.64231
+110,15,Vipous,25,My1,"",push_local:7de476a79614,2012-06-25 22:03:56.832111
+111,3,demo,26,test12,"",started_following_repo,2012-06-26 04:49:54.757548
+112,3,demo,26,test12,"",user_created_repo,2012-06-26 04:49:54.772195
+113,1,default,26,test12,119.75.53.154,pull,2012-06-26 04:50:18.237028
+114,3,demo,26,test12,119.75.53.154,push:50bafc0269a534dd41937214d0b35a43f65d8251,2012-06-26 04:51:04.26479
+115,17,pribeiro,,sync,"",started_following_repo,2012-06-26 11:11:45.473209
+116,17,pribeiro,,sync,"",user_created_repo,2012-06-26 11:11:45.487411
+117,17,pribeiro,,sync,"",user_deleted_repo,2012-06-26 11:13:46.254567
+118,18,admin_xanroot,28,new_repo,"",started_following_repo,2012-06-26 14:39:12.939952
+119,18,admin_xanroot,28,new_repo,"",user_created_repo,2012-06-26 14:39:12.954647
+120,2,admin,29,otro-test,"",started_following_repo,2012-06-26 19:44:05.282141
+121,2,admin,29,otro-test,"",admin_created_repo,2012-06-26 19:44:05.29657
+122,2,admin,29,otro-test,"",admin_updated_repo,2012-06-26 19:44:47.598164
+123,1,default,29,otro-test,190.84.240.187,push:aeb60b7e53696fa8deaaf4881cf02cdbf4698bbc,2012-06-26 19:47:33.677685
+124,22,sven-teichmann,30,Test,"",started_following_repo,2012-06-27 12:07:55.455967
+125,22,sven-teichmann,30,Test,"",user_created_repo,2012-06-27 12:07:55.471798
+126,3,demo,31,fork-new_repo,"",started_following_repo,2012-06-27 16:22:20.091073
+127,3,demo,28,new_repo,"",user_forked_repo:fork-new_repo,2012-06-27 16:22:20.104674
+128,3,demo,31,fork-new_repo,"",user_created_fork:fork-new_repo,2012-06-27 16:22:20.11418
+129,3,demo,32,big-project,"",started_following_repo,2012-06-27 16:37:55.369402
+130,3,demo,32,big-project,"",user_created_repo,2012-06-27 16:37:55.383717
+131,3,demo,32,big-project,195.238.92.121,push:5645e36ef4c9dbdd31709f1d234df008a8a8ce8c,2012-06-27 16:39:07.148939
+132,3,demo,32,big-project,195.238.92.121,push:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-06-27 16:39:45.482592
+133,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-06-27 16:42:21.533609
+134,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-06-27 16:42:48.278721
+135,3,demo,32,big-project,"",stopped_following_repo,2012-06-27 16:46:16.105454
+136,3,demo,32,big-project,"",started_following_repo,2012-06-27 16:46:17.496644
+137,3,demo,32,big-project,"",stopped_following_repo,2012-06-27 16:46:19.299402
+138,3,demo,32,big-project,"",started_following_repo,2012-06-27 16:46:20.235067
+139,3,demo,32,big-project,"",user_commented_pull_request:3,2012-06-27 17:25:45.106764
+140,3,demo,33,fork-big-project,"",started_following_repo,2012-06-27 17:30:03.65222
+141,3,demo,32,big-project,"",user_forked_repo:fork-big-project,2012-06-27 17:30:03.666404
+142,3,demo,33,fork-big-project,"",user_created_fork:fork-big-project,2012-06-27 17:30:03.676956
+143,3,demo,34,a,"",started_following_repo,2012-06-27 17:38:09.019648
+144,3,demo,34,a,"",user_created_repo,2012-06-27 17:38:09.0339
+145,3,demo,35,fork-Something22,"",started_following_repo,2012-06-28 11:00:39.678572
+146,3,demo,7,Something,"",user_forked_repo:fork-Something22,2012-06-28 11:00:39.737584
+147,3,demo,35,fork-Something22,"",user_created_fork:fork-Something22,2012-06-28 11:00:39.754509
+148,3,demo,36,bootstrap,"",started_following_repo,2012-06-29 08:21:06.920203
+149,3,demo,36,bootstrap,"",user_created_repo,2012-06-29 08:21:06.932926
+150,18,admin_xanroot,28,new_repo,"",stopped_following_repo,2012-06-29 13:24:05.476554
+151,18,admin_xanroot,28,new_repo,"",started_following_repo,2012-06-29 13:24:07.796049
+152,18,admin_xanroot,37,ааввя,"",started_following_repo,2012-06-29 14:29:18.52356
+153,18,admin_xanroot,37,ааввя,"",user_created_repo,2012-06-29 14:29:18.536725
+154,2,admin,38,code-review-test,"",started_following_repo,2012-06-29 14:51:32.715801
+155,2,admin,38,code-review-test,"",admin_created_repo,2012-06-29 14:51:32.730258
+156,2,admin,1,test,"",user_commented_pull_request:1,2012-06-29 14:54:59.436222
+157,2,admin,1,test,"",user_commented_pull_request:1,2012-06-29 14:55:14.228553
+158,2,admin,1,test,"",user_commented_pull_request:1,2012-06-29 14:55:22.443143
+159,2,admin,1,test,"",user_commented_pull_request:1,2012-06-29 14:55:37.609157
+160,2,admin,3,fork-test,"",user_commented_revision:8af86cb62c34b04cf2b1e3c9fcd2aa19e2e79caa,2012-06-29 14:56:01.991353
+161,1,default,38,code-review-test,62.116.219.97,pull,2012-06-29 14:57:31.272853
+162,2,admin,39,fork-code-review-test,"",started_following_repo,2012-06-29 15:03:28.825569
+163,2,admin,38,code-review-test,"",user_forked_repo:fork-code-review-test,2012-06-29 15:03:28.875867
+164,2,admin,39,fork-code-review-test,"",user_created_fork:fork-code-review-test,2012-06-29 15:03:28.883669
+165,2,admin,39,fork-code-review-test,62.116.219.97,push:ac19ef61aab0b008acb5dac5d53457cbd278d927,2012-06-29 15:03:44.690869
+166,2,admin,38,code-review-test,"",user_commented_pull_request:5,2012-06-29 15:07:50.753441
+167,2,admin,39,fork-code-review-test,"",user_commented_revision:ac19ef61aab0b008acb5dac5d53457cbd278d927,2012-06-29 15:08:06.700958
+168,2,admin,38,code-review-test,"",user_commented_pull_request:5,2012-06-29 15:08:20.290949
+169,2,admin,38,code-review-test,"",user_commented_pull_request:5,2012-06-29 15:08:43.746906
+170,3,demo,40,group/fork-a,"",started_following_repo,2012-07-01 18:28:49.022357
+171,3,demo,34,a,"",user_forked_repo:group/fork-a,2012-07-01 18:28:49.039621
+172,3,demo,40,group/fork-a,"",user_created_fork:group/fork-a,2012-07-01 18:28:49.050748
+173,3,demo,16,My-Demo-Test,"",push_local:5ac30fe040bd,2012-07-02 17:29:26.91197
+174,1,default,36,bootstrap,78.53.1.77,pull,2012-07-02 19:33:15.148459
+175,2,admin,,asdasd,"",admin_deleted_repo,2012-07-03 00:54:27.51389
+94,3,demo,,testclone,"",started_following_repo,2012-06-22 13:10:54.479092
+101,14,rune,,fork-rune-test,"",started_following_repo,2012-06-25 15:06:20.402391
+97,3,demo,,dummy,"",started_following_repo,2012-06-25 00:12:56.20161
+98,3,demo,,dummy,"",user_created_repo,2012-06-25 00:12:56.210618
+99,14,rune,,rune-test,"",started_following_repo,2012-06-25 15:05:18.894561
+100,14,rune,,rune-test,"",user_created_repo,2012-06-25 15:05:18.908953
+102,14,rune,,rune-test,"",user_forked_repo:fork-rune-test,2012-06-25 15:06:20.418213
+237,1,default,36,bootstrap,92.229.108.18,pull,2012-07-11 23:16:28.235183
+95,3,demo,,testclone,"",user_created_repo,2012-06-22 13:10:54.492868
+177,2,admin,,testclone,"",admin_deleted_repo,2012-07-03 00:54:44.781032
+103,14,rune,,fork-rune-test,"",user_created_fork:fork-rune-test,2012-06-25 15:06:20.429444
+178,2,admin,,fork-rune-test,"",admin_deleted_repo,2012-07-03 00:54:53.395495
+179,2,admin,,dummy,"",admin_deleted_repo,2012-07-03 00:54:56.740108
+180,2,admin,,foo-bar,"",admin_deleted_repo,2012-07-03 00:54:59.755216
+238,40,cowwoc,54,glib,"",started_following_repo,2012-07-12 00:09:07.867216
+182,15,Vipous,25,My1,"",push_local:96546c4c668d,2012-07-03 22:52:15.186673
+183,15,Vipous,25,My1,"",push_local:f650cc084095,2012-07-03 22:53:20.761064
+184,15,Vipous,25,My1,"",push_local:e55af939aaf5,2012-07-03 22:54:18.480735
+185,28,razpdx,38,code-review-test,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-07-04 08:10:08.771284
+186,28,razpdx,41,fork-code-review-test1111111,"",started_following_repo,2012-07-04 08:11:23.633652
+187,28,razpdx,38,code-review-test,"",user_forked_repo:fork-code-review-test1111111,2012-07-04 08:11:25.10245
+188,28,razpdx,41,fork-code-review-test1111111,"",user_created_fork:fork-code-review-test1111111,2012-07-04 08:11:25.110291
+189,3,demo,43,bar,"",started_following_repo,2012-07-05 14:37:38.394712
+190,3,demo,43,bar,"",user_created_repo,2012-07-05 14:37:38.404527
+191,3,demo,42,foo,"",started_following_repo,2012-07-05 14:38:19.351357
+192,3,demo,42,foo,"",user_created_repo,2012-07-05 14:38:19.367056
+193,3,demo,9,demo_repo,"",push_local:14fcc9365f2a,2012-07-05 22:53:20.216762
+194,31,jtiai,44,diff-test,"",started_following_repo,2012-07-06 11:23:24.475194
+195,31,jtiai,44,diff-test,"",user_created_repo,2012-07-06 11:23:24.491639
+196,31,jtiai,44,diff-test,62.240.70.253,push:bca174fa48db2eb05db5bd4532191dac269e97b2,2012-07-06 11:25:02.929509
+197,31,jtiai,44,diff-test,62.240.70.253,push:50daf150549b8d48676889dcb713f1f4e0e4bc9d,2012-07-06 11:26:14.260627
+198,2,admin,44,diff-test,"",admin_updated_repo,2012-07-06 19:57:44.363539
+199,2,admin,44,diff-test,"",admin_updated_repo,2012-07-06 19:57:48.132041
+200,1,default,44,diff-test,78.53.7.202,pull,2012-07-06 19:58:55.97104
+201,32,shabutora,45,group/fork-bootstrap,"",started_following_repo,2012-07-07 07:28:38.272328
+202,32,shabutora,36,bootstrap,"",user_forked_repo:group/fork-bootstrap,2012-07-07 07:28:39.509986
+203,32,shabutora,45,group/fork-bootstrap,"",user_created_fork:group/fork-bootstrap,2012-07-07 07:28:39.523403
+206,3,demo,,GitRepoTest,"",started_following_repo,2012-07-09 15:19:28.134838
+207,3,demo,,GitRepoTest,"",user_created_repo,2012-07-09 15:19:28.145858
+208,3,demo,,GitRepoTest,"",push_local:5caba17c3e28,2012-07-09 15:19:59.181736
+209,3,demo,,GitRepoTest,"",user_deleted_repo,2012-07-09 15:22:02.989814
+210,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-07-09 21:43:51.82571
+211,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-07-09 21:43:59.440606
+212,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-07-09 21:44:06.259449
+213,3,demo,15,wibblewobble,"",user_commented_revision:c1953b3f4981e57d0031f4307f70209706f204f3,2012-07-09 21:45:16.908265
+214,3,demo,15,wibblewobble,"",user_commented_revision:c1953b3f4981e57d0031f4307f70209706f204f3,2012-07-09 21:45:29.881903
+217,2,admin,,rm__20120709_152203_19234__GitRepoTest,"",started_following_repo,2012-07-11 01:23:59.921383
+218,2,admin,,rm__20120709_152203_19234__GitRepoTest,"",admin_deleted_repo,2012-07-11 01:25:33.983055
+221,38,zenqw,51,fork-test-12345,"",started_following_repo,2012-07-11 13:05:17.345386
+222,38,zenqw,1,test,"",user_forked_repo:fork-test-12345,2012-07-11 13:05:17.362995
+223,38,zenqw,51,fork-test-12345,"",user_created_fork:fork-test-12345,2012-07-11 13:05:17.370362
+224,38,zenqw,51,fork-test-12345,217.153.157.250,pull,2012-07-11 13:05:51.790618
+225,38,zenqw,51,fork-test-12345,217.153.157.250,"push:ebf2e5c36ee3008d6fde8376e0dc2859c764aeef,6854386e16136812b9219e9d5e2971c87419eafa,46371e1dff2357d51e581e55882415bd18a5db8c",2012-07-11 13:07:46.354331
+226,38,zenqw,51,fork-test-12345,217.153.157.250,push:4db220a6e8a720ffd78d1fc383e3361e9f85e930,2012-07-11 13:10:13.793368
+227,38,zenqw,1,test,"",user_commented_pull_request:6,2012-07-11 13:11:54.473213
+228,38,zenqw,1,test,"",user_commented_pull_request:6,2012-07-11 13:12:03.64804
+229,38,zenqw,52,fork-fork-test-12345_2,"",started_following_repo,2012-07-11 13:14:31.237173
+230,38,zenqw,51,fork-test-12345,"",user_forked_repo:fork-fork-test-12345_2,2012-07-11 13:14:31.2571
+231,38,zenqw,52,fork-fork-test-12345_2,"",user_created_fork:fork-fork-test-12345_2,2012-07-11 13:14:31.268722
+232,38,zenqw,52,fork-fork-test-12345_2,217.153.157.250,pull,2012-07-11 13:15:52.326756
+233,38,zenqw,52,fork-fork-test-12345_2,217.153.157.250,"push:b9567e91f6ee7cd18b6332608a5a0ed12256ea48,2f709872121b0875b02f4fbfafa8fccd4c0613db",2012-07-11 13:16:51.063259
+234,38,zenqw,51,fork-test-12345,"",user_commented_pull_request:7,2012-07-11 13:18:04.300327
+239,40,cowwoc,54,glib,"",user_created_repo,2012-07-12 00:09:07.883466
+240,3,demo,38,code-review-test,"",user_commented_pull_request:8,2012-07-12 00:50:50.791122
+241,3,demo,38,code-review-test,"",user_commented_pull_request:8,2012-07-12 00:51:04.795167
+242,3,demo,38,code-review-test,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-07-12 13:41:59.717658
+243,43,lpyedge,55,group/brhg,"",started_following_repo,2012-07-12 15:09:28.550696
+244,43,lpyedge,55,group/brhg,"",user_created_repo,2012-07-12 15:09:28.562524
+245,43,lpyedge,56,brgit,"",started_following_repo,2012-07-12 15:18:17.687605
+246,43,lpyedge,56,brgit,"",user_created_repo,2012-07-12 15:18:17.702136
+247,1,default,34,a,54.247.183.89,pull,2012-07-12 16:53:15.165512
+248,45,krhodecode,1,test,"",user_commented_revision:ef02269209cd431c0cd0ee929ba37ae895651d69,2012-07-12 23:09:25.38717
+249,45,krhodecode,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-07-12 23:14:07.819338
+250,45,krhodecode,57,SuperProject,"",started_following_repo,2012-07-12 23:17:38.213634
+251,45,krhodecode,57,SuperProject,"",user_created_repo,2012-07-12 23:17:38.229359
+252,45,krhodecode,57,SuperProject,216.51.137.66,push:a3188ce9ed64822ceae497665910c2e18cddf021,2012-07-12 23:23:23.111788
+253,3,demo,38,code-review-test,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-07-13 14:22:00.003158
+254,46,snazy2000,58,group/Test,"",started_following_repo,2012-07-13 19:14:31.959033
+255,46,snazy2000,58,group/Test,"",user_created_repo,2012-07-13 19:14:31.972509
+256,2,admin,1,test,"",user_commented_revision:ef02269209cd431c0cd0ee929ba37ae895651d69,2012-07-15 03:03:17.100702
+204,34,qqqqq,,zaraza,"",started_following_repo,2012-07-08 01:43:26.053084
+205,34,qqqqq,,zaraza,"",user_created_repo,2012-07-08 01:43:26.067756
+215,35,kvaster,,asd,"",started_following_repo,2012-07-09 22:03:29.676651
+216,35,kvaster,,asd,"",user_created_repo,2012-07-09 22:03:29.688872
+219,37,tester,,test2,"",started_following_repo,2012-07-11 11:07:19.065559
+220,37,tester,,test2,"",user_created_repo,2012-07-11 11:07:19.080323
+257,2,admin,38,code-review-test,"",user_commented_pull_request:8,2012-07-15 03:21:36.545532
+258,2,admin,38,code-review-test,"",user_closed_pull_request:8,2012-07-15 03:21:36.556543
+259,3,demo,59,fasdf,"",started_following_repo,2012-07-15 12:27:25.654257
+260,3,demo,59,fasdf,"",user_created_repo,2012-07-15 12:27:25.670633
+261,3,demo,60,group/aaa1,"",started_following_repo,2012-07-15 12:27:42.824398
+262,3,demo,60,group/aaa1,"",user_created_repo,2012-07-15 12:27:42.834237
+263,3,demo,34,a,"",user_updated_repo,2012-07-15 13:47:35.934007
+264,3,demo,61,group/testowe-repo,"",started_following_repo,2012-07-15 13:54:10.774348
+265,3,demo,61,group/testowe-repo,"",user_created_repo,2012-07-15 13:54:10.784709
+266,3,demo,61,group/testowe-repo,109.173.164.98,pull,2012-07-15 13:55:19.296932
+267,3,demo,61,group/testowe-repo,"",user_updated_repo,2012-07-15 13:57:16.969058
+235,2,admin,,rm__20120711_012534_20311__rm__20120709_152203_19234__GitRepoTest,"",started_following_repo,2012-07-11 22:50:22.745467
+268,47,testuser,62,My-demo,"",started_following_repo,2012-07-15 20:00:47.633404
+269,47,testuser,62,My-demo,"",user_created_repo,2012-07-15 20:00:47.64378
+270,48,volcan,63,test9,"",started_following_repo,2012-07-15 20:45:08.177239
+271,48,volcan,63,test9,"",user_created_repo,2012-07-15 20:45:08.191869
+272,48,volcan,63,test9,"",push_local:7e10d450821a,2012-07-15 20:46:42.370199
+273,48,volcan,63,test9,"",push_local:049788cfb4b5,2012-07-15 20:48:26.176589
+274,48,volcan,63,test9,"",user_commented_revision:049788cfb4b5254813312395aa380e988c32bbfb,2012-07-15 20:48:42.031217
+275,48,volcan,64,fork-test9,"",started_following_repo,2012-07-15 20:51:55.738241
+276,48,volcan,63,test9,"",user_forked_repo:fork-test9,2012-07-15 20:51:55.749793
+277,48,volcan,64,fork-test9,"",user_created_fork:fork-test9,2012-07-15 20:51:55.757696
+278,3,demo,65,COMMON,"",started_following_repo,2012-07-16 14:38:36.330869
+279,3,demo,65,COMMON,"",user_created_repo,2012-07-16 14:38:36.341796
+280,3,demo,39,fork-code-review-test,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-07-17 09:26:23.907503
+281,3,demo,39,fork-code-review-test,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-07-17 09:26:58.039752
+282,3,demo,39,fork-code-review-test,"",user_commented_revision:c5ed575f313788acd04614e3e0c13a5cdf5d7b39,2012-07-17 09:29:02.389958
+283,3,demo,39,fork-code-review-test,"",user_commented_revision:c5ed575f313788acd04614e3e0c13a5cdf5d7b39,2012-07-17 09:29:39.287759
+284,3,demo,38,code-review-test,"",user_commented_revision:0e4171fdb9d4267aa1145b840529d75673ea553d,2012-07-17 11:56:13.655476
+285,3,demo,38,code-review-test,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-07-17 11:57:32.735913
+286,52,prefer,39,fork-code-review-test,"",user_commented_revision:ac19ef61aab0b008acb5dac5d53457cbd278d927,2012-07-17 12:22:56.170784
+287,52,prefer,38,code-review-test,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-07-17 12:25:01.172222
+288,2,admin,34,a,"",push_local:445b722bf31d,2012-07-17 16:49:47.04337
+289,3,demo,66,pm-test,"",started_following_repo,2012-07-17 17:04:59.403792
+290,3,demo,8,Test_Repo,"",user_forked_repo:pm-test,2012-07-17 17:04:59.421648
+291,3,demo,66,pm-test,"",user_created_fork:pm-test,2012-07-17 17:04:59.432594
+292,3,demo,66,pm-test,"",push_local:6cac4edb9e76,2012-07-17 17:06:10.733221
+293,3,demo,66,pm-test,"",push_local:ceabeecd9ee8,2012-07-17 17:08:49.922859
+294,3,demo,67,group/aaa-repo,"",started_following_repo,2012-07-17 17:22:47.868349
+295,3,demo,67,group/aaa-repo,"",user_created_repo,2012-07-17 17:22:47.883704
+296,3,demo,68,aaa-project,"",started_following_repo,2012-07-17 17:23:40.541656
+297,3,demo,68,aaa-project,"",user_created_repo,2012-07-17 17:23:40.552371
+298,54,dude,69,group/bootstrap-fork,"",started_following_repo,2012-07-17 18:43:10.035674
+299,54,dude,36,bootstrap,"",user_forked_repo:group/bootstrap-fork,2012-07-17 18:43:11.233142
+300,54,dude,69,group/bootstrap-fork,"",user_created_fork:group/bootstrap-fork,2012-07-17 18:43:11.241307
+301,54,dude,69,group/bootstrap-fork,"",user_commented_revision:550e375af08a5b6ad401c043f8c0d2f3b1d3b6c2,2012-07-17 18:46:04.298716
+302,54,dude,70,group/A-new-git-repo,"",started_following_repo,2012-07-17 18:47:57.52576
+303,54,dude,70,group/A-new-git-repo,"",user_created_repo,2012-07-17 18:47:57.537413
+304,2,admin,71,rkquery-fork,"",started_following_repo,2012-07-18 15:54:45.756295
+305,2,admin,71,rkquery-fork,"",admin_created_repo,2012-07-18 15:54:45.774453
+306,61,test2,36,bootstrap,"",user_commented_revision:cd2d82150cc27c1f81d2394a22efbf2dbec0e7be,2012-07-20 06:02:57.703606
+307,52,prefer,36,bootstrap,"",user_commented_revision:cd2d82150cc27c1f81d2394a22efbf2dbec0e7be,2012-07-20 08:38:49.709445
+308,52,prefer,36,bootstrap,"",user_commented_revision:cd2d82150cc27c1f81d2394a22efbf2dbec0e7be,2012-07-20 08:50:24.082494
+309,64,selecta,72,testgit,"",started_following_repo,2012-07-20 10:46:02.535088
+310,64,selecta,72,testgit,"",user_created_repo,2012-07-20 10:46:02.548252
+311,64,selecta,72,testgit,"",push_local:62a88b300d22,2012-07-20 10:46:16.81029
+312,63,derTester,73,derTester-testrepo,"",started_following_repo,2012-07-20 10:54:39.064697
+313,63,derTester,73,derTester-testrepo,"",user_created_repo,2012-07-20 10:54:39.079807
+314,63,derTester,73,derTester-testrepo,"unknown, 194.8.219.19",push:84b31af757fe28ea9b9ac66053509a3a52b24f5c,2012-07-20 10:57:31.114727
+315,63,derTester,73,derTester-testrepo,"",user_commented_revision:84b31af757fe28ea9b9ac66053509a3a52b24f5c,2012-07-20 11:07:50.716058
+316,63,derTester,73,derTester-testrepo,"",user_commented_revision:84b31af757fe28ea9b9ac66053509a3a52b24f5c,2012-07-20 11:08:03.688221
+317,63,derTester,73,derTester-testrepo,"",user_commented_revision:84b31af757fe28ea9b9ac66053509a3a52b24f5c,2012-07-20 11:08:16.565505
+318,63,derTester,73,derTester-testrepo,"unknown, 194.8.219.19",push:5281b955815c98305051d3c008ff69c4ed533c0d,2012-07-20 11:11:10.31612
+319,63,derTester,74,fork-derTester-testrepo,"",started_following_repo,2012-07-20 11:25:25.419964
+320,63,derTester,73,derTester-testrepo,"",user_forked_repo:fork-derTester-testrepo,2012-07-20 11:25:25.438168
+321,63,derTester,74,fork-derTester-testrepo,"",user_created_fork:fork-derTester-testrepo,2012-07-20 11:25:25.447682
+322,63,derTester,74,fork-derTester-testrepo,"unknown, 194.8.219.19",pull,2012-07-20 11:26:37.491958
+323,63,derTester,74,fork-derTester-testrepo,"unknown, 194.8.219.19",push:f2735aac6abe27c8f01e76faf5c283bf46c4401f,2012-07-20 11:27:44.331062
+324,63,derTester,73,derTester-testrepo,"",user_commented_pull_request:9,2012-07-20 11:29:31.042888
+325,63,derTester,73,derTester-testrepo,"",user_closed_pull_request:9,2012-07-20 11:29:31.049204
+326,66,frankschepers,75,group/TestRepFs,"",started_following_repo,2012-07-20 11:30:19.886707
+327,66,frankschepers,75,group/TestRepFs,"",user_created_repo,2012-07-20 11:30:19.898463
+328,66,frankschepers,76,group/testrep2,"",started_following_repo,2012-07-20 11:31:20.300601
+329,66,frankschepers,76,group/testrep2,"",user_created_repo,2012-07-20 11:31:20.311022
+330,66,frankschepers,75,group/TestRepFs,"",push_local:17387d4e13a1,2012-07-20 11:33:31.893613
+331,66,frankschepers,75,group/TestRepFs,"",push_local:a897a2d13bc2,2012-07-20 11:34:22.754229
+332,63,derTester,73,derTester-testrepo,"unknown, 194.8.219.19",push:1214054a771a04bc69963bf26dfbc8ee2cb9122b,2012-07-20 11:36:39.441367
+333,63,derTester,74,fork-derTester-testrepo,"unknown, 194.8.219.19",pull,2012-07-20 11:36:51.746969
+334,63,derTester,73,derTester-testrepo,"unknown, 194.8.219.19","push:f2735aac6abe27c8f01e76faf5c283bf46c4401f,0659071d48979ed22941a269c97368b4663ae958",2012-07-20 11:37:40.944129
+335,66,frankschepers,75,group/TestRepFs,137.120.73.17,pull,2012-07-20 11:39:49.54307
+336,1,default,24,fork-Something,64.208.49.214,pull,2012-07-20 13:49:55.94902
+337,1,default,24,fork-Something,64.208.49.218,pull,2012-07-20 13:54:22.988482
+338,3,demo,68,aaa-project,"",user_updated_repo,2012-07-20 15:39:52.858365
+339,63,derTester,73,derTester-testrepo,"",user_updated_repo,2012-07-20 16:27:14.407843
+340,67,openinformation,73,derTester-testrepo,"",push_local:328fae54d511,2012-07-20 16:31:46.146409
+341,67,openinformation,73,derTester-testrepo,"",push_local:0c569a05f314,2012-07-20 16:32:54.826366
+342,63,derTester,73,derTester-testrepo,"",user_commented_revision:328fae54d511ba83c8e9ffe1cb9f42d30904a4a8,2012-07-20 16:33:01.509041
+343,63,derTester,73,derTester-testrepo,"",user_commented_revision:328fae54d511ba83c8e9ffe1cb9f42d30904a4a8,2012-07-20 16:33:18.910418
+344,67,openinformation,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:33:47.140002
+345,63,derTester,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:35:08.640552
+346,67,openinformation,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:35:10.546976
+347,63,derTester,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:35:19.485402
+348,63,derTester,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:35:47.956513
+349,67,openinformation,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:36:19.043512
+350,67,openinformation,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:36:48.577132
+351,67,openinformation,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:38:16.822535
+352,63,derTester,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-20 16:38:46.389457
+353,3,demo,66,pm-test,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-07-20 18:48:42.618318
+354,3,demo,71,rkquery-fork,"",user_commented_revision:06684d34a0dfeec4ca84eb3a4de3ac4eca659b5a,2012-07-20 18:53:30.111799
+355,2,admin,66,pm-test,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-07-20 20:37:34.763255
+356,2,admin,66,pm-test,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-07-20 20:37:54.48707
+357,3,demo,77,group/testme-out,"",started_following_repo,2012-07-21 03:36:40.318489
+358,3,demo,77,group/testme-out,"",user_created_repo,2012-07-21 03:36:40.33199
+362,68,adam_cubiware,79,fork-testgit,"",started_following_repo,2012-07-21 12:42:44.576306
+363,68,adam_cubiware,72,testgit,"",user_forked_repo:fork-testgit,2012-07-21 12:42:44.638332
+364,68,adam_cubiware,79,fork-testgit,"",user_created_fork:fork-testgit,2012-07-21 12:42:44.652192
+365,68,adam_cubiware,79,fork-testgit,"",push_local:ae0315d73341,2012-07-21 12:44:33.911138
+366,68,adam_cubiware,79,fork-testgit,"",user_updated_repo,2012-07-21 12:47:12.163568
+367,68,adam_cubiware,79,fork-testgit,"",push_local:db50409cdc5f,2012-07-21 12:53:44.632803
+368,1,default,39,fork-code-review-test,91.143.250.55,pull,2012-07-21 23:48:23.449665
+369,1,default,39,fork-code-review-test,91.143.250.55,pull,2012-07-21 23:48:36.982768
+372,72,rushman,38,code-review-test,"",user_commented_pull_request:10,2012-07-22 23:44:39.072741
+373,72,rushman,38,code-review-test,"",user_closed_pull_request:10,2012-07-22 23:44:39.082942
+374,3,demo,34,a,"",user_updated_repo,2012-07-23 05:19:06.777651
+375,2,admin,34,a,"",push_local:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-07-23 14:57:35.353962
+376,2,admin,34,a,"",push_local:7ec6b566916b553f8ab92aaf1c993269b96b52ee,2012-07-23 14:57:47.489325
+377,2,admin,34,a,"",push_local:7672806f881f67eb1441d00b16e983e761127cb6,2012-07-23 14:58:18.73749
+378,2,admin,34,a,"",push_local:7f8b4f94e2a83394aa687e0bb110870769e9ca0a,2012-07-23 14:58:29.908109
+379,75,treshnikov,44,diff-test,"",user_commented_revision:50daf150549b8d48676889dcb713f1f4e0e4bc9d,2012-07-23 16:43:41.7336
+380,75,treshnikov,44,diff-test,"",user_commented_revision:50daf150549b8d48676889dcb713f1f4e0e4bc9d,2012-07-23 16:43:55.306834
+381,3,demo,81,FS_dummy,"",started_following_repo,2012-07-24 11:59:32.839397
+382,3,demo,81,FS_dummy,"",user_created_repo,2012-07-24 11:59:32.855419
+383,67,openinformation,73,derTester-testrepo,"",user_commented_revision:0c569a05f31488c3a0b0bef9540e774199d5761b,2012-07-24 13:14:36.794825
+384,67,openinformation,82,fork-derTester-testrepo2,"",started_following_repo,2012-07-24 13:21:01.528796
+385,67,openinformation,73,derTester-testrepo,"",user_forked_repo:fork-derTester-testrepo2,2012-07-24 13:21:01.555045
+386,67,openinformation,82,fork-derTester-testrepo2,"",user_created_fork:fork-derTester-testrepo2,2012-07-24 13:21:01.563889
+387,77,test,34,a,"",user_commented_revision:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-07-24 15:38:45.147594
+388,77,test,34,a,"",user_commented_revision:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-07-24 15:40:33.021633
+389,77,test,34,a,"",user_commented_revision:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-07-24 15:40:53.491125
+390,3,demo,83,group/roman-test,"",started_following_repo,2012-07-24 16:09:25.411937
+391,3,demo,83,group/roman-test,"",user_created_repo,2012-07-24 16:09:25.426938
+392,68,adam_cubiware,79,fork-testgit,"",push_local:d5c6ffefdf5499201c2679717d65d5a642f1e163,2012-07-24 19:33:06.111179
+393,68,adam_cubiware,79,fork-testgit,"",user_commented_revision:d5c6ffefdf5499201c2679717d65d5a642f1e163,2012-07-24 19:33:44.899645
+394,68,adam_cubiware,79,fork-testgit,"",user_updated_repo,2012-07-24 19:35:04.803706
+395,68,adam_cubiware,79,group/fork-testgit,"",user_updated_repo,2012-07-24 19:37:19.243784
+396,68,adam_cubiware,84,group/fork-Test_Repo,"",started_following_repo,2012-07-24 19:40:08.15438
+397,68,adam_cubiware,8,Test_Repo,"",user_forked_repo:group/fork-Test_Repo,2012-07-24 19:40:08.173841
+398,68,adam_cubiware,84,group/fork-Test_Repo,"",user_created_fork:group/fork-Test_Repo,2012-07-24 19:40:08.182255
+399,68,adam_cubiware,84,group/fork-Test_Repo,"",user_commented_revision:1b6b9ca4d1e2776d8229f032c3a3136ae8c709a5,2012-07-24 19:41:34.833349
+400,68,adam_cubiware,84,group/fork-Test_Repo,"",push_local:27213189ef4e7e8b47209d4e123042419cb1154a,2012-07-24 19:44:35.829394
+401,68,adam_cubiware,8,Test_Repo,"",user_commented_pull_request:11,2012-07-24 19:47:49.707363
+402,68,adam_cubiware,8,Test_Repo,"",user_commented_pull_request:11,2012-07-24 19:48:18.79552
+403,68,adam_cubiware,8,Test_Repo,"",user_closed_pull_request:11,2012-07-24 19:48:18.804561
+404,68,adam_cubiware,8,Test_Repo,"",user_commented_pull_request:12,2012-07-24 19:50:08.792408
+405,68,adam_cubiware,8,Test_Repo,"",user_commented_pull_request:12,2012-07-24 19:50:21.615437
+406,68,adam_cubiware,85,group/qbtest,"",started_following_repo,2012-07-24 19:54:48.682241
+407,68,adam_cubiware,85,group/qbtest,"",user_created_repo,2012-07-24 19:54:48.693521
+408,68,adam_cubiware,86,qbtest,"",started_following_repo,2012-07-24 19:56:30.027296
+409,68,adam_cubiware,86,qbtest,"",user_created_repo,2012-07-24 19:56:30.040939
+410,68,adam_cubiware,86,qbtest,"",push_local:04acb5b4d5e0baeedde09ab9f4921ebfd8a44fe3,2012-07-24 19:57:03.960782
+411,68,adam_cubiware,87,fork-qbtest,"",started_following_repo,2012-07-24 19:57:49.226459
+370,3,demo,,group/aaaaaa1,"",started_following_repo,2012-07-22 03:57:39.381977
+371,3,demo,,group/aaaaaa1,"",user_created_repo,2012-07-22 03:57:39.394127
+412,68,adam_cubiware,86,qbtest,"",user_forked_repo:fork-qbtest,2012-07-24 19:57:49.242082
+413,68,adam_cubiware,87,fork-qbtest,"",user_created_fork:fork-qbtest,2012-07-24 19:57:49.249296
+417,68,adam_cubiware,87,fork-qbtest,"",user_updated_repo,2012-07-24 20:01:54.283384
+419,68,adam_cubiware,86,qbtest,"",user_commented_pull_request:13,2012-07-24 20:06:34.189996
+414,68,adam_cubiware,87,fork-qbtest,"",push_local:8e189d16864ee66863e6153fd32b8ba3f2a25057,2012-07-24 19:58:20.712898
+415,68,adam_cubiware,86,qbtest,"",user_commented_pull_request:13,2012-07-24 19:59:22.241511
+418,68,adam_cubiware,86,qbtest,"",user_updated_repo,2012-07-24 20:02:57.048453
+421,3,demo,87,fork-qbtest,"",user_commented_revision:8e189d16864ee66863e6153fd32b8ba3f2a25057,2012-07-24 20:11:04.301032
+416,68,adam_cubiware,87,fork-qbtest,"",user_updated_repo,2012-07-24 20:01:41.416418
+420,68,adam_cubiware,87,fork-qbtest,"",user_commented_revision:8e189d16864ee66863e6153fd32b8ba3f2a25057,2012-07-24 20:07:59.979705
+422,3,demo,86,qbtest,"",user_commented_pull_request:13,2012-07-25 10:20:05.329183
+423,3,demo,86,qbtest,"",user_commented_pull_request:13,2012-07-25 10:21:11.393746
+424,3,demo,87,fork-qbtest,"",push_local:5556ddcc6f459ceaf3a5a305c56d3addd2ac7fb2,2012-07-25 10:22:50.053374
+425,3,demo,87,fork-qbtest,"",user_commented_pull_request:14,2012-07-25 10:23:19.28703
+426,3,demo,87,fork-qbtest,"",user_closed_pull_request:14,2012-07-25 10:23:19.294999
+427,68,adam_cubiware,87,fork-qbtest,"",user_commented_revision:5556ddcc6f459ceaf3a5a305c56d3addd2ac7fb2,2012-07-25 10:26:23.952883
+430,3,demo,86,qbtest,"",user_commented_pull_request:13,2012-07-25 10:28:09.672602
+431,3,demo,86,qbtest,"",user_closed_pull_request:13,2012-07-25 10:28:09.683535
+432,3,demo,86,qbtest,"",user_commented_pull_request:15,2012-07-25 15:04:21.750739
+435,3,demo,86,qbtest,"",user_commented_pull_request:15,2012-07-25 15:05:29.409739
+437,2,admin,87,fork-qbtest,"",user_commented_revision:8e189d16864ee66863e6153fd32b8ba3f2a25057,2012-07-25 15:06:24.177921
+439,3,demo,86,qbtest,"",user_commented_pull_request:15,2012-07-25 15:06:58.589656
+440,3,demo,34,a,"",user_updated_repo,2012-07-25 15:16:08.628588
+441,3,demo,34,a,"",user_updated_repo,2012-07-25 15:16:50.160888
+442,3,demo,34,a,"",user_updated_repo,2012-07-25 15:17:06.323596
+443,3,demo,88,group/project-z,"",started_following_repo,2012-07-25 15:51:18.772615
+444,3,demo,88,group/project-z,"",user_created_repo,2012-07-25 15:51:18.782868
+445,3,demo,34,a,"",stopped_following_repo,2012-07-25 16:50:40.354634
+446,3,demo,,Teszomg,"",started_following_repo,2012-07-25 16:58:00.642525
+447,3,demo,,Teszomg,"",user_created_repo,2012-07-25 16:58:00.653681
+448,3,demo,,Teszomg,"",user_deleted_repo,2012-07-25 17:00:13.827353
+449,3,demo,90,a-fork1,"",started_following_repo,2012-07-25 17:52:15.778227
+450,3,demo,34,a,"",user_forked_repo:a-fork1,2012-07-25 17:52:15.799024
+451,3,demo,90,a-fork1,"",user_created_fork:a-fork1,2012-07-25 17:52:15.811638
+452,3,demo,17,fork-test1,"",user_updated_repo,2012-07-25 18:30:05.412282
+453,3,demo,91,SuperSolver,"",started_following_repo,2012-07-26 17:05:45.224827
+454,3,demo,91,SuperSolver,"",user_created_repo,2012-07-26 17:05:45.238431
+455,3,demo,91,SuperSolver,98.175.25.130,push:9191f84aab39f525a510865e8bfabdda11dd72a5,2012-07-26 17:09:12.133493
+456,3,demo,92,group/kanad,"",started_following_repo,2012-07-26 21:11:56.38604
+457,3,demo,92,group/kanad,"",user_created_repo,2012-07-26 21:11:56.400791
+458,3,demo,92,group/kanad,"",user_updated_repo,2012-07-26 21:19:27.63466
+459,2,admin,91,SuperSolver,"",push_local:466e4c17d8eda2789c5c885eeb376592f612c305,2012-07-26 22:17:43.023259
+460,2,admin,91,SuperSolver,"",user_commented_revision:9191f84aab39f525a510865e8bfabdda11dd72a5,2012-07-26 22:18:16.224826
+461,81,ahamilton,34,a,"",user_commented_revision:7f8b4f94e2a83394aa687e0bb110870769e9ca0a,2012-07-26 22:57:40.178759
+462,1,default,34,a,54.247.183.89,pull,2012-07-26 23:14:42.710865
+463,2,admin,34,a,"",admin_updated_repo,2012-07-27 01:33:24.257365
+464,2,admin,56,brgit,"",admin_updated_repo,2012-07-27 01:33:54.214629
+465,2,admin,93,fork-a,"",started_following_repo,2012-07-27 18:07:48.00309
+466,2,admin,34,a,"",user_forked_repo:fork-a,2012-07-27 18:07:48.022053
+467,2,admin,93,fork-a,"",user_created_fork:fork-a,2012-07-27 18:07:48.032889
+468,2,admin,68,aaa-project,"",admin_updated_repo,2012-07-28 16:16:49.199267
+469,2,admin,68,aaa-project,"",admin_updated_repo,2012-07-28 16:17:05.556031
+470,2,admin,68,aaa-project,"",admin_updated_repo,2012-07-28 16:17:24.114857
+471,2,admin,68,aaa-project,"",admin_updated_repo,2012-07-28 16:17:59.530129
+472,2,admin,68,aaa-project,"",admin_updated_repo,2012-07-28 16:26:13.302324
+473,2,admin,68,aaa-project,"",admin_updated_repo,2012-07-28 16:27:01.350536
+474,86,gurce,,testies1.2.3,"",started_following_repo,2012-07-29 11:08:56.897379
+475,86,gurce,,testies1.2.3,"",user_created_repo,2012-07-29 11:08:56.912364
+476,86,gurce,,testies1.2.3,"",user_updated_repo,2012-07-29 11:14:02.439893
+477,86,gurce,,testies1.2.3,"",user_deleted_repo,2012-07-29 11:18:46.488699
+480,2,admin,,group/Linux,"",started_following_repo,2012-07-30 14:44:34.637639
+481,2,admin,,group/Linux,"",admin_deleted_repo,2012-07-30 14:52:58.379429
+482,3,demo,98,group/Another-Test-Repository,"",started_following_repo,2012-07-31 10:18:43.621644
+483,3,demo,98,group/Another-Test-Repository,"",user_created_repo,2012-07-31 10:18:43.634721
+484,3,demo,98,group/Another-Test-Repository,"",push_local:751faf9101afc1d11ce4c2a169991a17edbb7955,2012-07-31 10:19:46.035458
+485,3,demo,98,group/Another-Test-Repository,"",user_updated_repo,2012-07-31 10:20:54.422059
+486,3,demo,98,group/Another-Test-Repository,"",user_updated_repo,2012-07-31 10:21:47.573228
+487,3,demo,98,group/Another-Test-Repository,"",stopped_following_repo,2012-07-31 10:22:43.12098
+488,3,demo,98,group/Another-Test-Repository,"",started_following_repo,2012-07-31 10:22:48.801682
+489,90,klaim,99,another-fork-to-check-code-review,"",started_following_repo,2012-07-31 14:25:57.394187
+490,90,klaim,38,code-review-test,"",user_forked_repo:another-fork-to-check-code-review,2012-07-31 14:25:58.882735
+491,90,klaim,99,another-fork-to-check-code-review,"",user_created_fork:another-fork-to-check-code-review,2012-07-31 14:25:58.889998
+492,90,klaim,99,another-fork-to-check-code-review,"",user_commented_revision:c29efd2723954ba34fb63f9c7dce21a68b09715c,2012-07-31 14:27:39.427879
+493,1,default,71,rkquery-fork,89.0.87.249,pull,2012-07-31 15:08:08.127006
+494,1,default,71,rkquery-fork,89.0.87.249,pull,2012-07-31 15:08:37.692433
+495,1,default,71,rkquery-fork,89.0.87.249,pull,2012-07-31 15:08:40.983571
+496,3,demo,100,wurst,"",started_following_repo,2012-07-31 15:14:37.401815
+497,3,demo,100,wurst,"",user_created_repo,2012-07-31 15:14:37.412923
+498,1,default,100,wurst,89.0.87.249,pull,2012-07-31 15:14:45.754467
+499,91,mzambrano,101,Prueba,"",started_following_repo,2012-07-31 17:04:41.872432
+500,91,mzambrano,101,Prueba,"",user_created_repo,2012-07-31 17:04:41.883651
+501,91,mzambrano,101,Prueba,"",push_local:9ecaa313dfd69d04eb99a6ab4650d5073d0979e0,2012-07-31 17:05:04.373838
+506,3,demo,90,a-fork1,"",push_local:b09d43f798414bcbdf4dc1fc5dafe6ce4aa5afc3,2012-08-01 03:18:34.613972
+507,3,demo,90,a-fork1,"",user_updated_repo,2012-08-01 03:19:21.260608
+508,3,demo,34,a,"",user_commented_pull_request:16,2012-08-01 03:20:55.082899
+509,3,demo,34,a,"",user_closed_pull_request:16,2012-08-01 03:20:55.089597
+510,3,demo,34,a,"",user_commented_pull_request:17,2012-08-01 03:24:44.63976
+511,3,demo,41,fork-code-review-test1111111,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-08-01 18:56:56.755186
+512,3,demo,41,fork-code-review-test1111111,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-08-01 18:57:03.502595
+478,86,gurce,,aaa,"",started_following_repo,2012-07-29 11:19:09.137514
+479,86,gurce,,aaa,"",user_created_repo,2012-07-29 11:19:09.151528
+513,15,Vipous,25,My1,"",push_local:50e642196270635f02c5bd5c00e499dc187178df,2012-08-01 19:11:17.87993
+514,1,default,25,My1,95.24.51.243,pull,2012-08-01 19:15:28.508852
+515,15,Vipous,25,my1,"",user_updated_repo,2012-08-01 19:32:20.993611
+516,15,Vipous,103,my2,"",started_following_repo,2012-08-01 19:38:38.060511
+517,15,Vipous,103,my2,"",user_created_repo,2012-08-01 19:38:38.069864
+518,15,Vipous,103,my2,"",user_updated_repo,2012-08-01 19:45:16.160287
+519,15,Vipous,103,my2,"",user_updated_repo,2012-08-01 19:46:04.886008
+520,15,Vipous,104,m3,"",started_following_repo,2012-08-01 19:46:48.535281
+521,15,Vipous,104,m3,"",user_created_repo,2012-08-01 19:46:48.549938
+522,15,Vipous,104,m3,"",user_updated_repo,2012-08-01 19:47:15.299734
+523,95,vladest,105,group/MainCa,"",started_following_repo,2012-08-02 11:30:01.303239
+524,95,vladest,105,group/MainCa,"",user_created_repo,2012-08-02 11:30:01.314496
+525,95,vladest,105,group/MainCa,"",push_local:d43c6b4b865d2c37ac9bb8300ed2594f5c7bfac1,2012-08-02 11:32:35.723828
+526,95,vladest,106,group/MainCa1,"",started_following_repo,2012-08-02 12:20:15.170113
+527,95,vladest,106,group/MainCa1,"",user_created_repo,2012-08-02 12:20:15.178842
+528,97,Cykooz,107,TestRep,"",started_following_repo,2012-08-02 14:19:22.221295
+529,97,Cykooz,107,TestRep,"",user_created_repo,2012-08-02 14:19:22.233832
+530,97,Cykooz,107,TestRep,"",push_local:d15f2b728cbe3d99cdb87847252245defb65af97,2012-08-02 14:20:54.178448
+532,3,demo,1,test,"",user_commented_revision:ef02269209cd431c0cd0ee929ba37ae895651d69,2012-08-03 10:06:58.707278
+533,3,demo,108,pouet_toto,"",started_following_repo,2012-08-03 10:39:59.081678
+534,3,demo,108,pouet_toto,"",user_created_repo,2012-08-03 10:39:59.093405
+535,1,default,107,TestRep,195.238.92.121,pull,2012-08-03 17:59:06.989454
+538,3,demo,110,django,"",started_following_repo,2012-08-03 19:18:45.155897
+539,3,demo,110,django,"",user_created_repo,2012-08-03 19:18:45.172636
+540,3,demo,90,a-fork1,"",user_commented_revision:b09d43f798414bcbdf4dc1fc5dafe6ce4aa5afc3,2012-08-03 19:33:48.041371
+541,102,floris1988,111,TestSpecialChars-ï,"",started_following_repo,2012-08-04 18:53:17.2228
+542,102,floris1988,111,TestSpecialChars-ï,"",user_created_repo,2012-08-04 18:53:17.234721
+543,102,floris1988,111,TestSpecialChars-ï,"",user_updated_repo,2012-08-04 18:53:50.060979
+544,102,floris1988,111,TestSpecialChars-ï,"",user_updated_repo,2012-08-04 18:55:53.495862
+545,3,demo,112,segaja_test,"",started_following_repo,2012-08-04 19:04:06.239802
+546,3,demo,112,segaja_test,"",user_created_repo,2012-08-04 19:04:06.253287
+547,3,demo,112,segaja_test,92.224.13.159,push:42e459600bdbd38d1faf6eaa10c7e01c56cd10f9,2012-08-04 19:29:14.690831
+548,1,default,112,segaja_test,92.224.252.14,pull,2012-08-04 19:34:36.973664
+549,3,demo,113,fork-big-project-test,"",started_following_repo,2012-08-05 02:55:27.385395
+550,3,demo,32,big-project,"",user_forked_repo:fork-big-project-test,2012-08-05 02:55:27.414409
+551,3,demo,113,fork-big-project-test,"",user_created_fork:fork-big-project-test,2012-08-05 02:55:27.4288
+552,2,admin,,zaraza,"",admin_deleted_repo,2012-08-05 13:27:42.970283
+553,2,admin,,asd,"",admin_deleted_repo,2012-08-05 13:28:00.428749
+536,3,demo,,short,"",started_following_repo,2012-08-03 18:03:15.665115
+537,3,demo,,short,"",user_created_repo,2012-08-03 18:03:15.67758
+554,2,admin,,short,"",admin_deleted_repo,2012-08-05 13:28:31.888167
+555,2,admin,,rune-test,"",admin_deleted_repo,2012-08-05 13:28:37.66319
+556,2,admin,,test2,"",admin_deleted_repo,2012-08-05 13:29:14.388401
+502,3,demo,,test1771,"",started_following_repo,2012-07-31 23:21:17.003832
+503,3,demo,,test1771,"",user_created_repo,2012-07-31 23:21:17.01404
+504,3,demo,,test1771,"",user_updated_repo,2012-07-31 23:22:03.144832
+505,3,demo,,test1771,"",user_updated_repo,2012-07-31 23:22:24.167363
+557,2,admin,,test1771,"",admin_deleted_repo,2012-08-05 13:29:38.632652
+558,2,admin,,aaa,"",admin_deleted_repo,2012-08-05 13:30:03.546834
+359,3,demo,,group/aaaaa,"",started_following_repo,2012-07-21 03:38:35.138131
+360,3,demo,,group/aaaaa,"",user_created_repo,2012-07-21 03:38:35.15336
+361,3,demo,,group/aaaaa,"",stopped_following_repo,2012-07-21 03:40:17.083354
+559,2,admin,,group/aaaaa,"",admin_deleted_repo,2012-08-05 13:30:13.234414
+560,2,admin,,group/aaaaaa1,"",admin_deleted_repo,2012-08-05 13:30:18.727572
+561,3,demo,114,repo1,"",started_following_repo,2012-08-05 22:24:30.710387
+562,3,demo,114,repo1,"",user_created_repo,2012-08-05 22:24:30.720533
+563,3,demo,114,repo1,"",user_updated_repo,2012-08-05 22:25:03.129876
+564,3,demo,114,group/repo1,"",user_updated_repo,2012-08-06 01:33:29.413213
+565,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-08-06 12:41:54.182248
+566,3,demo,115,seva,"",started_following_repo,2012-08-06 13:50:43.115804
+567,3,demo,115,seva,"",user_created_repo,2012-08-06 13:50:43.129954
+568,3,demo,115,seva,94.28.52.54,push:06a5a7a52876f01f458a2f816320bab5bafc8cb7,2012-08-06 14:05:42.593075
+569,3,demo,116,sr_Types,"",started_following_repo,2012-08-06 14:10:07.910072
+570,3,demo,116,sr_Types,"",user_created_repo,2012-08-06 14:10:07.917777
+571,3,demo,116,sr_Types,94.28.52.54,"push:82f049910f50a5f21af4e097ff143cffc40ed24b,744a1af870e28684381d6dbc49fc3ee8e84bd037,c4e4c1f60bf9c35ddb6b3b244e3ac653bf9013fb,6243a66ba6f45ae7019b785e34c87415c75f0100,f98dabdf9d6721c9cb2ce951473602261b197572",2012-08-06 14:11:06.205283
+572,3,demo,117,group/PersTest,"",started_following_repo,2012-08-07 13:56:12.405578
+573,3,demo,117,group/PersTest,"",user_created_repo,2012-08-07 13:56:12.425432
+574,3,demo,118,group/fork-PersTest11111,"",started_following_repo,2012-08-07 16:19:34.151798
+575,3,demo,117,group/PersTest,"",user_forked_repo:group/fork-PersTest11111,2012-08-07 16:19:35.508635
+576,3,demo,118,group/fork-PersTest11111,"",user_created_fork:group/fork-PersTest11111,2012-08-07 16:19:35.521466
+577,3,demo,119,group/fork-PersTesttest23,"",started_following_repo,2012-08-07 16:21:38.613229
+578,3,demo,117,group/PersTest,"",user_forked_repo:group/fork-PersTesttest23,2012-08-07 16:21:39.912103
+579,3,demo,119,group/fork-PersTesttest23,"",user_created_fork:group/fork-PersTesttest23,2012-08-07 16:21:39.925959
+580,3,demo,120,group/clojure.git,"",started_following_repo,2012-08-07 16:23:44.191686
+581,3,demo,120,group/clojure.git,"",user_created_repo,2012-08-07 16:23:44.209175
+582,3,demo,121,group/fork-clojure.git11111,"",started_following_repo,2012-08-07 16:23:59.92049
+583,3,demo,120,group/clojure.git,"",user_forked_repo:group/fork-clojure.git11111,2012-08-07 16:24:01.272504
+584,3,demo,121,group/fork-clojure.git11111,"",user_created_fork:group/fork-clojure.git11111,2012-08-07 16:24:01.286295
+585,3,demo,121,group/fork-clojure.git11111,"",user_updated_repo,2012-08-07 16:25:08.111886
+586,3,demo,117,group/PersTest,"",user_commented_revision:3823d29c041a56af5d798e1bf308169635b307b2,2012-08-07 16:33:30.109982
+587,3,demo,117,group/PersTest,"",user_commented_revision:3823d29c041a56af5d798e1bf308169635b307b2,2012-08-07 16:33:47.039431
+588,3,demo,117,group/PersTest,"",push_local:cc8900b3722b55c4435ccf5c14cf4883c62ebdb1,2012-08-07 16:34:33.016369
+589,1,default,34,a,75.69.241.64,pull,2012-08-07 16:45:32.904556
+590,3,demo,122,amab,"",started_following_repo,2012-08-08 18:51:41.487459
+591,3,demo,122,amab,"",user_created_repo,2012-08-08 18:51:41.502954
+592,3,demo,123,fork-amab,"",started_following_repo,2012-08-08 18:52:54.7185
+593,3,demo,122,amab,"",user_forked_repo:fork-amab,2012-08-08 18:52:54.735201
+594,3,demo,123,fork-amab,"",user_created_fork:fork-amab,2012-08-08 18:52:54.747165
+595,108,dukeofgaming,124,fork-another-fork-to-check-code-review,"",started_following_repo,2012-08-08 20:20:04.849671
+596,108,dukeofgaming,99,another-fork-to-check-code-review,"",user_forked_repo:fork-another-fork-to-check-code-review,2012-08-08 20:20:04.90856
+597,108,dukeofgaming,124,fork-another-fork-to-check-code-review,"",user_created_fork:fork-another-fork-to-check-code-review,2012-08-08 20:20:04.916268
+598,108,dukeofgaming,125,test-to-end-all-tests,"",started_following_repo,2012-08-08 20:24:44.691886
+599,108,dukeofgaming,125,test-to-end-all-tests,"",user_created_repo,2012-08-08 20:24:44.701816
+600,108,dukeofgaming,125,test-to-end-all-tests,"",push_local:fb4eb182028a674ae250430c04305e9b3fbe508e,2012-08-08 20:26:27.345121
+601,108,dukeofgaming,34,a,"",user_commented_pull_request:17,2012-08-08 21:57:59.006296
+602,109,StrangeWill,126,StrangeWill-Test,"",started_following_repo,2012-08-09 02:34:52.271872
+603,109,StrangeWill,126,StrangeWill-Test,"",user_created_repo,2012-08-09 02:34:52.282934
+604,109,StrangeWill,126,StrangeWill-Test,"",user_updated_repo,2012-08-09 02:35:02.383584
+605,109,StrangeWill,126,StrangeWill-Test,"",user_updated_repo,2012-08-09 02:35:06.402314
+606,109,StrangeWill,126,StrangeWill-Test,"",push_local:9c53f740e08b8bbc51bb3c44b1daab9f52287d3a,2012-08-09 02:35:43.942575
+607,109,StrangeWill,126,StrangeWill-Test,"",user_commented_pull_request:19,2012-08-09 02:36:48.962911
+608,109,StrangeWill,126,StrangeWill-Test,"",user_closed_pull_request:19,2012-08-09 02:36:48.968935
+609,3,demo,1,test,"",user_commented_pull_request:20,2012-08-10 11:23:48.112425
+610,3,demo,1,test,"",user_closed_pull_request:20,2012-08-10 11:23:48.122186
+611,3,demo,8,Test_Repo,"",user_commented_pull_request:12,2012-08-10 11:29:38.483128
+612,3,demo,8,Test_Repo,"",user_commented_pull_request:12,2012-08-10 11:29:48.326018
+613,3,demo,8,Test_Repo,"",user_closed_pull_request:12,2012-08-10 11:29:48.336563
+614,3,demo,34,a,"",user_commented_pull_request:18,2012-08-10 11:32:01.569982
+615,2,admin,,"","",admin_created_users_group:group,2012-08-10 20:13:05.655137
+616,3,demo,122,amab,"",push_local:86b1fc3a3f5dc193814327817d2274dc2e25aa74,2012-08-11 05:48:36.958893
+617,3,demo,122,amab,"",user_commented_revision:86b1fc3a3f5dc193814327817d2274dc2e25aa74,2012-08-11 05:49:10.966918
+618,3,demo,122,amab,"",push_local:8530d8e3eab04997ac4a2a5d8a8b54fa61bb9884,2012-08-11 05:50:15.022811
+619,3,demo,127,my-super-rep,"",started_following_repo,2012-08-11 12:30:55.461553
+620,3,demo,127,my-super-rep,"",user_created_repo,2012-08-11 12:30:55.490584
+621,3,demo,127,my-super-rep,"",push_local:5d80e28538141e322b317168e2367fb03178d58c,2012-08-11 12:32:07.883859
+622,3,demo,127,my-super-rep,"",user_updated_repo,2012-08-11 12:33:26.213226
+623,3,demo,124,fork-another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-08-11 15:07:59.546001
+624,3,demo,29,otro-test,"",push_local:84da67001150cd0bf3ef744c286bcc432ea21bd4,2012-08-11 15:33:05.169706
+625,1,default,81,FS_dummy,66.85.224.48,pull,2012-08-11 19:31:31.664606
+626,3,demo,128,testprivate,"",started_following_repo,2012-08-12 10:25:42.265395
+627,3,demo,128,testprivate,"",user_created_repo,2012-08-12 10:25:42.278839
+628,3,demo,128,testprivate,"",user_updated_repo,2012-08-12 10:27:29.467173
+629,3,demo,128,testprivate,"",user_updated_repo,2012-08-12 10:28:09.878656
+630,3,demo,128,group/testprivate,"",user_updated_repo,2012-08-12 10:29:00.702759
+631,3,demo,128,group/testprivate,"",push_local:a7e9cdbd374255258a2d470dae64142c62577e62,2012-08-12 10:32:28.350191
+632,3,demo,54,glib,"",user_commented_revision:eda1735029e01d6391fe8a4cde6c5688727c8183,2012-08-12 15:21:32.004992
+633,3,demo,54,glib,"",user_commented_revision:eda1735029e01d6391fe8a4cde6c5688727c8183,2012-08-12 15:21:56.235395
+634,3,demo,129,dvorak,"",started_following_repo,2012-08-12 15:23:37.292086
+635,3,demo,129,dvorak,"",user_created_repo,2012-08-12 15:23:37.302785
+636,3,demo,129,dvorak,202.147.201.173,pull,2012-08-12 15:24:08.62022
+637,3,demo,130,x,"",started_following_repo,2012-08-12 23:37:03.115333
+638,3,demo,130,x,"",user_created_repo,2012-08-12 23:37:03.130599
+639,3,demo,124,fork-another-fork-to-check-code-review,"",user_commented_revision:8b7cd9a998f0f4ec47cf75b59b3d2c08167c3cf7,2012-08-12 23:39:33.305222
+640,3,demo,44,diff-test,"",user_commented_revision:50daf150549b8d48676889dcb713f1f4e0e4bc9d,2012-08-13 05:24:22.678285
+641,3,demo,123,fork-amab,"",push_local:6a6a5d929be9b4929041627d35f18627d9418aa5,2012-08-13 10:53:50.793419
+642,1,default,57,SuperProject,128.237.226.40,pull,2012-08-13 16:07:22.373945
+643,3,demo,34,a,"",user_commented_pull_request:24,2012-08-13 19:43:04.754874
+644,3,demo,34,a,"",user_closed_pull_request:24,2012-08-13 19:43:04.765323
+645,3,demo,34,a,"",user_commented_pull_request:25,2012-08-13 19:45:34.763703
+646,3,demo,34,a,"",user_closed_pull_request:25,2012-08-13 19:45:34.769014
+647,3,demo,131,group/test-v,"",started_following_repo,2012-08-13 19:46:36.628573
+648,3,demo,131,group/test-v,"",user_created_repo,2012-08-13 19:46:36.637409
+649,3,demo,131,group/test-v,"",push_local:5528f3d665c9c9577670ec1e47428ec12686309e,2012-08-13 19:46:57.911585
+650,3,demo,132,test-alex,"",started_following_repo,2012-08-13 21:21:05.904895
+651,3,demo,132,test-alex,"",user_created_repo,2012-08-13 21:21:05.916732
+652,3,demo,132,test-alex,"",push_local:016bda6a3079ea1d69b6a309a9ecc61fe5b671df,2012-08-13 21:21:34.951309
+653,3,demo,132,test-alex,"",user_commented_revision:016bda6a3079ea1d69b6a309a9ecc61fe5b671df,2012-08-13 21:22:06.758798
+654,3,demo,132,test-alex,"",push_local:7f43f5167e26a3e43e6ad0ac6539ab4c8589a509,2012-08-13 21:22:18.07678
+655,3,demo,132,test-alex,"",user_commented_revision:7f43f5167e26a3e43e6ad0ac6539ab4c8589a509,2012-08-13 21:22:39.209522
+656,3,demo,132,test-alex,"",push_local:9b754ec30decff4c11c0f82522b7ec9dd732b738,2012-08-13 21:23:44.132906
+657,3,demo,132,test-alex,"",user_commented_revision:9b754ec30decff4c11c0f82522b7ec9dd732b738,2012-08-13 21:24:34.975113
+658,3,demo,132,test-alex,"",push_local:625c046f35779ccde8c2284ee60fda3d9598e8bb,2012-08-13 21:25:07.493234
+659,3,demo,132,test-alex,"",push_local:807dd6bb60f5eef82f7ffdd988dee3e0de4e44dc,2012-08-13 21:26:51.764858
+660,3,demo,132,test-alex,"",push_local:24224f94a8578508883f58982e10b0ffa83a98d6,2012-08-13 21:28:03.831471
+661,3,demo,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-08-14 18:40:46.618059
+662,118,peso-rhodecode,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-08-14 18:58:56.536013
+663,118,peso-rhodecode,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-08-14 18:59:58.982696
+664,118,peso-rhodecode,133,tortoisehg,"",started_following_repo,2012-08-14 19:05:14.873877
+665,118,peso-rhodecode,133,tortoisehg,"",user_created_repo,2012-08-14 19:05:14.88921
+666,119,ricardona,39,fork-code-review-test,"",user_commented_revision:ac19ef61aab0b008acb5dac5d53457cbd278d927,2012-08-14 21:20:28.585574
+667,3,demo,134,TestIM,"",started_following_repo,2012-08-14 22:23:05.22279
+668,3,demo,134,TestIM,"",user_created_repo,2012-08-14 22:23:05.235172
+669,3,demo,134,TestIM,216.16.228.6,push:b3b6cfdb515f13709b13f82d20efd74daaa11d91,2012-08-14 22:23:54.286624
+670,3,demo,134,TestIM,216.16.228.6,push:9fb9ba572906576b2cc53ac227d503317f019556,2012-08-14 22:24:48.190215
+671,3,demo,134,TestIM,"",user_commented_pull_request:26,2012-08-14 22:25:32.752851
+672,3,demo,134,TestIM,"",user_commented_pull_request:26,2012-08-14 22:26:29.238006
+673,3,demo,134,TestIM,"",user_closed_pull_request:26,2012-08-14 22:26:29.246245
+674,3,demo,134,TestIM,216.16.228.6,push:55a4fabac6221f988a276ec34343b947dfbc8a1f,2012-08-14 22:35:56.966751
+676,120,asdfqwer,135,Asdf,"",started_following_repo,2012-08-15 01:25:41.462335
+677,120,asdfqwer,135,Asdf,"",user_created_repo,2012-08-15 01:25:41.473404
+678,120,asdfqwer,135,Asdf,"",push_local:e43db28406d1d0697f504af9bc2ae5c5b789bba3,2012-08-15 01:27:34.991
+679,3,demo,68,aaa-project,"",push_local:2babd97db425482a53b679956df09f89c3154a2c,2012-08-15 03:43:31.538895
+680,3,demo,134,TestIM,"",user_commented_revision:55a4fabac6221f988a276ec34343b947dfbc8a1f,2012-08-15 14:30:08.564118
+681,3,demo,134,TestIM,"",user_commented_pull_request:27,2012-08-15 14:30:18.831116
+682,3,demo,134,TestIM,"",user_closed_pull_request:27,2012-08-15 14:30:18.840491
+683,3,demo,134,TestIM,216.16.228.6,push:bb4219af072d59cc4c3c43c378ed51fa4cf3c3ff,2012-08-15 15:07:41.727749
+684,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 16:55:41.900521
+685,3,demo,131,group/test-v,"",user_commented_revision:5528f3d665c9c9577670ec1e47428ec12686309e,2012-08-15 17:03:55.63388
+686,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 17:08:29.295025
+687,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 17:29:40.060992
+688,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 17:33:06.514696
+689,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 17:35:45.952417
+690,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 17:45:52.189501
+691,1,default,131,group/test-v,24.226.1.232,pull,2012-08-15 18:15:01.771261
+692,3,demo,136,demorep,"",started_following_repo,2012-08-15 20:15:43.960506
+693,3,demo,136,demorep,"",user_created_repo,2012-08-15 20:15:43.97291
+694,3,demo,136,demorep,"",user_updated_repo,2012-08-15 20:16:36.235636
+695,116,japanfred,137,group/test,"",started_following_repo,2012-08-16 10:07:53.071203
+696,116,japanfred,137,group/test,"",user_created_repo,2012-08-16 10:07:53.085238
+697,3,demo,38,code-review-test,"",user_commented_revision:e780fb37168be5382148f5bc6fd420ae9771e947,2012-08-16 10:40:09.850092
+698,3,demo,38,code-review-test,"",user_commented_revision:e780fb37168be5382148f5bc6fd420ae9771e947,2012-08-16 10:40:18.256489
+699,3,demo,138,zzz,"",started_following_repo,2012-08-16 15:32:36.358347
+700,3,demo,138,zzz,"",user_created_repo,2012-08-16 15:32:36.375112
+701,3,demo,138,zzz,"",stopped_following_repo,2012-08-16 15:32:47.449322
+702,3,demo,138,zzz,"",push_local:30c34a6a74a3acb1ac90da14cbf5afc195c06703,2012-08-16 15:35:02.210691
+703,3,demo,139,groupv,"",started_following_repo,2012-08-16 21:18:09.813691
+704,3,demo,139,groupv,"",user_created_repo,2012-08-16 21:18:09.828768
+705,3,demo,140,tryit,"",started_following_repo,2012-08-16 21:38:23.244914
+706,3,demo,140,tryit,"",user_created_repo,2012-08-16 21:38:23.255027
+707,3,demo,24,fork-Something,"",push_local:3e4a3d2cb39cc292337813a1b66886612967a12f,2012-08-17 08:46:15.254412
+708,125,thebodster,141,benltest,"",started_following_repo,2012-08-17 11:05:03.588299
+709,125,thebodster,141,benltest,"",user_created_repo,2012-08-17 11:05:03.599788
+710,125,thebodster,141,benltest,"",push_local:81058e0bbe3ff64719b622da3e3d4973a00aa17f,2012-08-17 11:06:28.089348
+711,3,demo,142,asd,"",started_following_repo,2012-08-17 17:05:25.612621
+712,3,demo,142,asd,"",user_created_repo,2012-08-17 17:05:25.623665
+713,3,demo,90,a-fork1,"",user_commented_revision:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-08-20 11:55:54.518151
+714,3,demo,90,a-fork1,"",user_commented_revision:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-08-20 11:56:13.790927
+715,3,demo,34,a,"",user_commented_revision:7ec6b566916b553f8ab92aaf1c993269b96b52ee,2012-08-20 12:15:53.217431
+716,3,demo,143,collabo-test,"",started_following_repo,2012-08-20 14:26:09.569571
+717,3,demo,143,collabo-test,"",user_created_repo,2012-08-20 14:26:09.582085
+718,3,demo,143,collabo-test,"",user_updated_repo,2012-08-20 14:32:35.45571
+719,3,demo,143,group/collabo-test,"",user_updated_repo,2012-08-20 14:34:12.224005
+720,3,demo,143,group/collabo-test,"",user_updated_repo,2012-08-20 14:38:00.881804
+721,3,demo,143,group/collabo-test,"",user_updated_repo,2012-08-20 14:38:55.248397
+722,131,edroi,144,group/testing_repo_ed,"",started_following_repo,2012-08-20 17:52:56.864724
+723,131,edroi,144,group/testing_repo_ed,"",user_created_repo,2012-08-20 17:52:56.875807
+724,3,demo,145,group/test001,"",started_following_repo,2012-08-21 12:04:31.34427
+725,3,demo,145,group/test001,"",user_created_repo,2012-08-21 12:04:31.361085
+726,3,demo,145,group/test001,"",push_local:be9945bab2129191dcfe7c3cf1530c953cb56250,2012-08-21 12:06:07.781578
+727,2,admin,34,a,"",user_commented_revision:7f8b4f94e2a83394aa687e0bb110870769e9ca0a,2012-08-21 12:09:46.857288
+728,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-08-22 10:25:41.344244
+729,3,demo,146,group/sjhasgdasgd,"",started_following_repo,2012-08-22 10:27:23.865563
+730,3,demo,146,group/sjhasgdasgd,"",user_created_repo,2012-08-22 10:27:23.879703
+731,134,asdf1234,,master-work,"",started_following_repo,2012-08-22 15:42:30.690987
+732,134,asdf1234,,master-work,"",user_created_repo,2012-08-22 15:42:30.701316
+733,134,asdf1234,,master-work,"",push_local:9a0c3c1f07d0d53f4578048e64ee7460540a8650,2012-08-22 15:42:51.105132
+734,134,asdf1234,,master-work,"",user_deleted_repo,2012-08-22 15:43:40.616875
+740,3,demo,122,amab,"",user_commented_revision:8530d8e3eab04997ac4a2a5d8a8b54fa61bb9884,2012-08-22 15:55:10.054525
+735,134,asdf1234,,Master-Repo,"",started_following_repo,2012-08-22 15:44:00.955916
+736,134,asdf1234,,Master-Repo,"",user_created_repo,2012-08-22 15:44:00.969061
+737,134,asdf1234,,Master-Repo,198.47.12.251,push:511c6906e2dfcfdcf8e616705c4021250ce9317c,2012-08-22 15:47:31.882017
+738,134,asdf1234,,Master-Repo,"",user_updated_repo,2012-08-22 15:48:13.441863
+739,134,asdf1234,,Master-Repo,198.47.12.251,push:650eab8084b7194849c714a7b8ee624ccb143961,2012-08-22 15:55:02.593373
+741,1,default,,Master-Repo,176.9.28.203,pull,2012-08-22 15:55:55.777458
+749,134,asdf1234,,Master-Repo,"",user_deleted_repo,2012-08-22 16:04:45.631529
+746,134,asdf1234,,Master-repo-my-work,"",started_following_repo,2012-08-22 16:03:30.002885
+747,134,asdf1234,,Master-repo-my-work,"",user_created_repo,2012-08-22 16:03:30.014977
+748,134,asdf1234,,Master-repo-my-work,198.47.12.251,"push:511c6906e2dfcfdcf8e616705c4021250ce9317c,650eab8084b7194849c714a7b8ee624ccb143961,9e9ec10c23b2d7906221296e9b824e09aca4d135",2012-08-22 16:03:46.33517
+750,134,asdf1234,,Master-repo-my-work,"",user_deleted_repo,2012-08-22 16:04:52.44082
+742,134,asdf1234,,Master-Repo-work,"",started_following_repo,2012-08-22 15:55:55.950145
+743,134,asdf1234,,Master-Repo-work,"",user_created_repo,2012-08-22 15:55:55.964648
+744,1,default,,Master-Repo-work,198.47.12.251,pull,2012-08-22 15:56:19.314483
+745,134,asdf1234,,Master-Repo-work,198.47.12.251,push:9e9ec10c23b2d7906221296e9b824e09aca4d135,2012-08-22 15:57:15.289776
+751,134,asdf1234,,Master-Repo-work,"",user_deleted_repo,2012-08-22 16:05:17.555968
+752,3,demo,90,a-fork1,"",user_commented_revision:5478c7d290bc0a14d9cefd79ed5722a87f3815d5,2012-08-22 16:55:58.931518
+753,3,demo,88,group/project-z,"",user_updated_repo,2012-08-24 11:32:31.148489
+754,3,demo,151,group/test2,"",started_following_repo,2012-08-24 15:44:04.072312
+755,3,demo,151,group/test2,"",user_created_repo,2012-08-24 15:44:04.088381
+756,3,demo,34,a,"",push_local:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-08-24 17:15:46.470802
+757,136,buk,152,group/create_test,"",started_following_repo,2012-08-25 06:40:04.917748
+758,136,buk,152,group/create_test,"",user_created_repo,2012-08-25 06:40:04.931544
+759,136,buk,121,group/fork-clojure.git11111,"",user_updated_repo,2012-08-25 06:42:39.902167
+760,140,ryanewtaylor,153,my_test_repository,"",started_following_repo,2012-08-27 03:06:53.764986
+761,140,ryanewtaylor,153,my_test_repository,"",user_created_repo,2012-08-27 03:06:53.777712
+763,140,ryanewtaylor,153,my_test_repository,"",user_commented_revision:adca53fe04fd153232ba0f2b0849593d7e7e66b3,2012-08-27 03:13:37.332593
+764,140,ryanewtaylor,153,my_test_repository,"",user_commented_revision:adca53fe04fd153232ba0f2b0849593d7e7e66b3,2012-08-27 03:14:12.752967
+765,140,ryanewtaylor,153,my_test_repository,"",user_commented_revision:adca53fe04fd153232ba0f2b0849593d7e7e66b3,2012-08-27 03:14:51.684298
+766,140,ryanewtaylor,153,my_test_repository,"",user_commented_revision:6669f75a9cb677a2fda670b38b1144148ebeb962,2012-08-27 03:15:12.583256
+767,140,ryanewtaylor,153,my_test_repository,"",user_commented_revision:df1618708e7fa0c17d5f6b45c20862c22ddec32e,2012-08-27 03:16:16.068448
+768,140,ryanewtaylor,153,my_test_repository,"",user_commented_revision:df1618708e7fa0c17d5f6b45c20862c22ddec32e,2012-08-27 03:16:21.558262
+769,2,admin,153,my_test_repository,"",user_commented_revision:6669f75a9cb677a2fda670b38b1144148ebeb962,2012-08-27 09:57:00.382062
+770,141,asdf1234asdf,93,fork-a,"",user_commented_pull_request:29,2012-08-28 00:15:33.186954
+771,141,asdf1234asdf,93,fork-a,"",user_closed_pull_request:29,2012-08-28 00:15:33.199962
+773,143,demodemo1,93,fork-a,"",user_commented_revision:7f8b4f94e2a83394aa687e0bb110870769e9ca0a,2012-08-29 09:44:47.573503
+774,3,demo,90,a-fork1,"",push_local:323f852b71ad55dde8b5134ecab08d38e478a2c5,2012-08-29 11:07:26.784421
+775,116,japanfred,156,jf-main,"",started_following_repo,2012-08-29 14:07:27.6853
+776,116,japanfred,156,jf-main,"",user_created_repo,2012-08-29 14:07:27.698708
+777,116,japanfred,156,jf-main,"",push_local:3da6f8032b842427e3873733bc997cc38870028c,2012-08-29 14:08:26.649182
+778,116,japanfred,156,group/jf-main,"",user_updated_repo,2012-08-29 14:08:51.803377
+779,145,fthomas64,157,group/fintest,"",started_following_repo,2012-08-29 21:54:55.55875
+780,145,fthomas64,157,group/fintest,"",user_created_repo,2012-08-29 21:54:55.5727
+781,145,fthomas64,157,group/fintest,"",user_updated_repo,2012-08-29 21:56:46.846955
+782,3,demo,158,mytest001,"",started_following_repo,2012-08-29 23:38:29.423035
+783,3,demo,158,mytest001,"",user_created_repo,2012-08-29 23:38:29.434528
+784,3,demo,158,mytest001,"",user_updated_repo,2012-08-29 23:40:30.218875
+785,3,demo,158,mytest001,"",push_local:877dd37e0d11c11006ba333eea74972f8f3c0745,2012-08-29 23:56:55.750242
+786,3,demo,158,mytest001,"",user_commented_revision:877dd37e0d11c11006ba333eea74972f8f3c0745,2012-08-29 23:57:17.769527
+787,3,demo,158,mytest001,"",user_commented_revision:877dd37e0d11c11006ba333eea74972f8f3c0745,2012-08-30 00:00:06.214755
+788,3,demo,86,qbtest,"",user_commented_revision:04acb5b4d5e0baeedde09ab9f4921ebfd8a44fe3,2012-08-30 18:18:52.127137
+789,3,demo,86,qbtest,"",user_commented_revision:04acb5b4d5e0baeedde09ab9f4921ebfd8a44fe3,2012-08-30 18:19:39.559827
+790,3,demo,159,group/Test-for-code-review,"",started_following_repo,2012-08-30 18:21:15.38201
+791,3,demo,159,group/Test-for-code-review,"",user_created_repo,2012-08-30 18:21:15.396876
+792,3,demo,159,group/Test-for-code-review,"",push_local:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 18:22:30.576129
+793,3,demo,159,group/Test-for-code-review,"",user_commented_revision:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 18:25:35.145053
+794,3,demo,159,group/Test-for-code-review,"",user_commented_revision:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 18:25:55.638486
+795,3,demo,159,group/Test-for-code-review,"",user_commented_revision:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 18:26:45.22087
+796,3,demo,159,group/Test-for-code-review,"",user_updated_repo,2012-08-30 18:28:52.430153
+797,3,demo,159,group/Test-for-code-review,"",user_updated_repo,2012-08-30 18:28:59.540779
+798,3,demo,159,group/Test-for-code-review,"",user_updated_repo,2012-08-30 18:46:21.757499
+799,3,demo,159,group/Test-for-code-review,"",push_local:1ea6c5155c207b823306f6d4135975cd62de5ea6,2012-08-30 19:06:37.805225
+800,3,demo,159,group/Test-for-code-review,"",user_commented_revision:1ea6c5155c207b823306f6d4135975cd62de5ea6,2012-08-30 19:07:57.905038
+801,1,default,159,group/Test-for-code-review,176.9.28.203,pull,2012-08-30 19:12:18.946031
+802,3,demo,160,group/test-der-zweite,"",started_following_repo,2012-08-30 19:12:19.100001
+803,3,demo,160,group/test-der-zweite,"",user_created_repo,2012-08-30 19:12:19.109789
+804,3,demo,160,group/test-der-zweite,"",user_commented_revision:1ea6c5155c207b823306f6d4135975cd62de5ea6,2012-08-30 19:12:33.306323
+805,3,demo,159,group/Test-for-code-review,"",user_commented_revision:1ea6c5155c207b823306f6d4135975cd62de5ea6,2012-08-30 19:14:51.326684
+806,3,demo,159,group/Test-for-code-review,"",user_commented_revision:1ea6c5155c207b823306f6d4135975cd62de5ea6,2012-08-30 19:14:54.354662
+807,3,demo,159,group/Test-for-code-review,"",user_commented_revision:2305443e5a06a9d80e328741d2da742145f80eee,2012-08-30 19:15:23.722829
+808,150,dlamotte,1,test,"",user_commented_pull_request:31,2012-08-30 23:03:25.180892
+809,150,dlamotte,1,test,"",user_closed_pull_request:31,2012-08-30 23:03:25.192118
+810,150,dlamotte,161,test-rhodecode-pull-request,"",started_following_repo,2012-08-30 23:05:08.817245
+811,150,dlamotte,161,test-rhodecode-pull-request,"",user_created_repo,2012-08-30 23:05:08.832769
+812,150,dlamotte,161,test-rhodecode-pull-request,143.127.128.10,push:e839aac4f06bb1f0dde813d6b7e80cc345f8d70d,2012-08-30 23:06:12.300969
+813,150,dlamotte,161,test-rhodecode-pull-request,143.127.128.10,"push:1b01a9f3ba4951615f1c9cfbe19ea62f3abeed9f,062ab363eaef7fc73342a93f4624030103fc36f9",2012-08-30 23:08:29.621962
+814,1,default,1,test,176.9.28.203,pull,2012-08-30 23:14:51.336754
+815,151,mill1359,162,test-m,"",started_following_repo,2012-08-30 23:14:51.499881
+816,151,mill1359,162,test-m,"",user_created_repo,2012-08-30 23:14:51.509169
+817,1,default,162,test-m,143.127.128.10,pull,2012-08-30 23:16:00.219245
+818,151,mill1359,162,test-m,143.127.128.10,push:8a528cebe032d5502c73608281a954233347ce36,2012-08-30 23:19:20.205642
+819,151,mill1359,162,test-m,"",user_commented_pull_request:32,2012-08-30 23:21:27.6093
+820,151,mill1359,162,test-m,"",user_closed_pull_request:32,2012-08-30 23:21:27.617668
+821,155,cdugz,163,nagios,"",started_following_repo,2012-08-31 16:42:33.825148
+822,155,cdugz,163,nagios,"",user_created_repo,2012-08-31 16:42:33.83886
+895,3,demo,122,amab,"",push_local:f0509a4f718f5a31eafcb8fbe9caf21a642c5753,2012-09-05 01:30:02.737976
+896,3,demo,32,big-project,"",user_commented_revision:06d5302c4830e5af52f06c462f11f75107b2a1ff,2012-09-05 11:05:19.904842
+823,155,cdugz,163,nagios,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,a38d5508f516f360cd603a72cd4a4f16facf5825,cf7656e6c2cb29241db1f6ae0af2823684d7d0b4,0ebf06f94b584abe59853618ca68b9416f13fe20,413886edff138d8de1e3e23698fabba444de6167,335bb28b7c5428044f17ef9bc57a992b759b2d93,feba8837f9ac8af56b6588e8fcc7710eeeebd327,bf0781be32a59aef35f8bf95a2f614894e773926,fc3792349c770fe014d0774e980e3bba600bb5a6",2012-08-31 16:46:05.896127
+824,155,cdugz,164,rhodecode-ref,"",started_following_repo,2012-08-31 17:42:24.794235
+825,155,cdugz,164,rhodecode-ref,"",user_created_repo,2012-08-31 17:42:24.806839
+826,155,cdugz,164,rhodecode-ref,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,c91bea8206218cf051c6b0ab6a352c7371b5212d",2012-08-31 17:43:03.365708
+827,155,cdugz,164,rhodecode-ref,"",user_updated_repo,2012-08-31 17:44:01.673127
+828,155,cdugz,165,rhodecode-dev,"",started_following_repo,2012-08-31 17:44:52.870468
+829,155,cdugz,165,rhodecode-dev,"",user_created_repo,2012-08-31 17:44:52.880649
+830,155,cdugz,165,rhodecode-dev,82.150.248.28,"push:380d5c3fd6c3948d5da3f56859104f4adf629553,30b5773f0f9d57cfb721576169685b36878969d1,47deef50eface398daa8ba09a6d79a9db2585c4f,107236f51ef01fcb27d1c613c18a93a2135c336c,2ff774f5163960e356530826b4faad804bd79972,e4b37340f046c2910a43017d814841df1caec1cf,c91bea8206218cf051c6b0ab6a352c7371b5212d,3e5071670c8eec699744bd94f9ebacba8ef33b1f,06303e4e0da2b0e909d985844fc573e3a32547a2",2012-08-31 17:45:20.027085
+831,3,demo,93,fork-a,"",push_local:416552904882d8b8f051cad2071f4aa271d4ea4e,2012-08-31 18:50:50.885869
+832,3,demo,166,dfgdfg,"",started_following_repo,2012-08-31 18:56:16.94572
+833,3,demo,166,dfgdfg,"",user_created_repo,2012-08-31 18:56:16.959102
+834,3,demo,166,dfgdfg,"",user_updated_repo,2012-08-31 18:56:40.349443
+835,3,demo,166,dfgdfg,"",user_updated_repo,2012-08-31 18:56:43.138614
+836,3,demo,167,group/test1234,"",started_following_repo,2012-09-01 13:16:21.279844
+837,3,demo,167,group/test1234,"",user_created_repo,2012-09-01 13:16:21.293767
+838,3,demo,168,group/test_interface,"",started_following_repo,2012-09-01 16:31:43.486262
+839,3,demo,168,group/test_interface,"",user_created_repo,2012-09-01 16:31:43.500171
+840,3,demo,169,group/demo_interface,"",started_following_repo,2012-09-01 16:33:21.416702
+841,3,demo,169,group/demo_interface,"",user_created_repo,2012-09-01 16:33:21.429822
+842,3,demo,169,group/demo_interface,"",user_updated_repo,2012-09-01 16:34:48.888958
+843,2,admin,,"","",admin_updated_user:demo,2012-09-01 21:37:36.22824
+844,2,admin,42,foo,"",admin_updated_repo,2012-09-01 21:38:55.72173
+845,3,demo,68,aaa-project,"",user_commented_revision:2babd97db425482a53b679956df09f89c3154a2c,2012-09-02 02:19:55.864414
+846,3,demo,68,aaa-project,"",user_commented_revision:2babd97db425482a53b679956df09f89c3154a2c,2012-09-02 02:22:04.179327
+847,3,demo,68,aaa-project,"",user_commented_revision:2babd97db425482a53b679956df09f89c3154a2c,2012-09-02 02:22:20.301017
+848,167,asegarra,124,fork-another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-09-03 00:00:02.708105
+849,167,asegarra,124,fork-another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-09-03 00:00:15.395196
+850,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-03 04:40:41.834982
+851,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-03 07:13:57.839857
+852,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-03 07:15:33.483452
+853,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-03 07:28:27.434639
+854,2,admin,,"","",admin_updated_users_group:group,2012-09-03 08:20:10.984426
+855,2,admin,,"","",admin_updated_users_group:group,2012-09-03 08:20:22.82228
+856,2,admin,68,aaa-project,"",admin_updated_repo,2012-09-03 08:28:23.441904
+857,3,demo,170,_01_jdj,"",started_following_repo,2012-09-03 09:52:03.080751
+858,3,demo,170,_01_jdj,"",user_created_repo,2012-09-03 09:52:03.103369
+859,3,demo,171,releases/Blabla,"",started_following_repo,2012-09-03 13:45:50.257273
+860,3,demo,171,releases/Blabla,"",user_created_repo,2012-09-03 13:45:50.271441
+861,3,demo,171,releases/Blabla,"",stopped_following_repo,2012-09-03 13:46:24.790546
+862,3,demo,171,releases/Blabla,"",started_following_repo,2012-09-03 13:46:34.42949
+863,3,demo,171,releases/Blabla,"",stopped_following_repo,2012-09-03 13:46:37.546423
+864,3,demo,171,releases/Blabla,"",started_following_repo,2012-09-03 13:46:37.766286
+865,3,demo,171,releases/Blabla,"",stopped_following_repo,2012-09-03 13:46:38.018055
+866,3,demo,171,releases/Blabla,"",started_following_repo,2012-09-03 13:46:40.717862
+867,3,demo,171,releases/Blabla,"",stopped_following_repo,2012-09-03 13:46:40.849278
+868,3,demo,171,releases/Blabla,"",started_following_repo,2012-09-03 13:46:41.061175
+869,2,admin,172,go,"",started_following_repo,2012-09-03 14:30:41.496854
+870,2,admin,172,go,"",admin_created_repo,2012-09-03 14:30:41.508885
+871,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-09-04 02:08:20.759339
+872,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-04 02:20:58.295369
+873,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-04 02:40:16.584952
+874,3,demo,173,code-review-dev,"",started_following_repo,2012-09-04 13:01:06.110732
+875,3,demo,173,code-review-dev,"",user_created_repo,2012-09-04 13:01:06.150884
+876,3,demo,173,code-review-dev,195.238.92.121,push:cb2ea0ebb59413e325470ee63aa83bb84d9d126c,2012-09-04 13:02:03.374983
+877,3,demo,173,code-review-dev,"",push_local:ae44a27e7e02d679b00bb94c04c2348d2ca88cd6,2012-09-04 13:03:50.249481
+878,3,demo,173,code-review-dev,"",user_updated_repo,2012-09-04 13:04:13.26806
+879,3,demo,173,code-review-dev,"",user_updated_repo,2012-09-04 13:04:17.650534
+880,3,demo,173,code-review-dev,"",user_updated_repo,2012-09-04 13:05:42.76781
+881,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-09-04 15:59:58.584723
+882,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-09-04 16:00:08.318723
+883,3,demo,174,cruel-test-2,"",started_following_repo,2012-09-04 16:57:50.235592
+884,3,demo,174,cruel-test-2,"",user_created_repo,2012-09-04 16:57:50.255676
+885,3,demo,174,cruel-test-2,"",push_local:b396ac3c7f6c18caf55a87abd84847d345732805,2012-09-04 16:58:25.458669
+886,3,demo,174,cruel-test-2,"",push_local:a5419e86108ea38b872c9cb0880c312d2595c2aa,2012-09-04 16:59:21.3612
+887,3,demo,174,cruel-test-2,"",user_commented_revision:a5419e86108ea38b872c9cb0880c312d2595c2aa,2012-09-04 17:01:36.969813
+888,3,demo,33,fork-big-project,"",push_local:51cec0b8c8a0e47d8edc81d5ffb5f77723c5cbf9,2012-09-04 17:07:03.988595
+889,3,demo,32,big-project,"",user_commented_pull_request:34,2012-09-04 17:09:12.417908
+890,3,demo,32,big-project,"",user_commented_pull_request:34,2012-09-04 17:10:04.92285
+891,3,demo,32,big-project,"",user_closed_pull_request:34,2012-09-04 17:10:04.927287
+892,3,demo,34,a,"",user_updated_repo,2012-09-05 00:47:01.089512
+893,3,demo,34,a,"",user_updated_repo,2012-09-05 00:47:11.588561
+894,3,demo,24,fork-Something,"",user_updated_repo,2012-09-05 01:03:09.893608
+897,1,default,66,pm-test,195.160.233.181,pull,2012-09-05 13:12:04.976374
+898,3,demo,66,pm-test,195.160.233.181,push:d19c8fc1bfa2d661d4240e8f120f4ecf6267f9fa,2012-09-05 13:12:51.274952
+899,3,demo,8,Test_Repo,"",user_commented_pull_request:35,2012-09-05 13:14:25.686481
+900,3,demo,8,Test_Repo,"",user_commented_pull_request:35,2012-09-05 13:14:43.033131
+901,3,demo,8,Test_Repo,"",user_closed_pull_request:35,2012-09-05 13:14:43.04395
+902,1,default,8,Test_Repo,195.160.233.181,pull,2012-09-05 13:17:38.089185
+903,3,demo,8,Test_Repo,195.160.233.181,push:e8ad7b21735b6590c2dd476e7628ba331a1df384,2012-09-05 13:18:07.5396
+904,3,demo,175,fork-a-one-more,"",started_following_repo,2012-09-05 13:20:22.809301
+905,3,demo,34,a,"",user_forked_repo:fork-a-one-more,2012-09-05 13:20:22.832688
+906,3,demo,175,fork-a-one-more,"",user_created_fork:fork-a-one-more,2012-09-05 13:20:22.841274
+907,3,demo,175,fork-a-one-more,195.160.233.181,pull,2012-09-05 13:20:54.391748
+908,3,demo,175,fork-a-one-more,195.160.233.181,push:c6fb8c3fe1a8393f8861c39bf590d3865c503ca5,2012-09-05 13:22:36.203898
+909,3,demo,34,a,"",user_commented_pull_request:36,2012-09-05 13:23:55.420971
+910,3,demo,34,a,"",user_commented_pull_request:36,2012-09-05 13:24:17.361904
+911,3,demo,34,a,"",user_commented_pull_request:36,2012-09-05 13:24:35.76659
+912,3,demo,34,a,"",user_closed_pull_request:36,2012-09-05 13:24:35.7744
+913,3,demo,34,a,"",user_commented_pull_request:37,2012-09-05 13:30:57.812004
+914,3,demo,34,a,"",user_commented_pull_request:38,2012-09-05 13:38:45.300458
+915,3,demo,34,a,"",user_commented_pull_request:38,2012-09-05 13:39:01.382629
+916,3,demo,34,a,"",user_commented_pull_request:38,2012-09-05 13:39:18.062238
+917,3,demo,34,a,"",user_commented_pull_request:38,2012-09-05 13:39:27.350966
+918,3,demo,34,a,"",user_commented_pull_request:38,2012-09-05 13:39:37.275952
+919,3,demo,34,a,"",user_updated_repo,2012-09-05 13:40:21.966185
+920,3,demo,34,a,"",user_commented_pull_request:37,2012-09-05 13:40:53.832787
+921,3,demo,34,a,"",user_closed_pull_request:37,2012-09-05 13:40:53.837264
+922,3,demo,34,a,"",user_commented_pull_request:38,2012-09-05 13:41:51.071776
+923,3,demo,34,a,"",user_closed_pull_request:38,2012-09-05 13:41:51.082763
+924,3,demo,34,a,"",user_updated_repo,2012-09-05 13:42:28.045216
+925,3,demo,176,hopsa,"",started_following_repo,2012-09-05 14:12:14.479866
+926,3,demo,165,rhodecode-dev,"",user_forked_repo:hopsa,2012-09-05 14:12:14.495649
+927,3,demo,176,hopsa,"",user_created_fork:hopsa,2012-09-05 14:12:14.507312
+928,3,demo,177,blah,"",started_following_repo,2012-09-05 16:42:29.860682
+929,3,demo,177,blah,"",user_created_repo,2012-09-05 16:42:29.876509
+930,3,demo,178,myfolder-myrepo,"",started_following_repo,2012-09-05 17:33:08.753339
+931,3,demo,178,myfolder-myrepo,"",user_created_repo,2012-09-05 17:33:08.765789
+932,3,demo,180,MineReps,"",started_following_repo,2012-09-05 23:11:25.562383
+933,3,demo,180,MineReps,"",user_created_repo,2012-09-05 23:11:25.577972
+934,3,demo,33,fork-big-project,"",user_commented_revision:51cec0b8c8a0e47d8edc81d5ffb5f77723c5cbf9,2012-09-06 01:29:52.749682
+935,3,demo,33,fork-big-project,"",user_commented_revision:51cec0b8c8a0e47d8edc81d5ffb5f77723c5cbf9,2012-09-06 01:30:05.246986
+936,1,default,68,aaa-project,94.194.60.137,pull,2012-09-06 02:51:08.186518
+937,1,default,68,aaa-project,94.194.60.137,pull,2012-09-06 02:54:47.80033
+938,1,default,159,group/Test-for-code-review,"",push_local:e25e53f9a9cd4a39bb085830a67983bc6dd46e76,2012-09-06 03:08:45.578824
+939,3,demo,159,group/Test-for-code-review,"",user_commented_revision:e25e53f9a9cd4a39bb085830a67983bc6dd46e76,2012-09-06 03:30:51.35489
+940,3,demo,68,aaa-project,"",user_updated_repo,2012-09-06 04:44:10.863264
+941,3,demo,68,aaa-project,"",user_updated_repo,2012-09-06 04:44:41.091954
+942,3,demo,68,aaa-project,"",push_local:e3fef0be8dc20eb1fa68fc45292d9d66de1cc67f,2012-09-06 04:45:38.572986
+943,3,demo,68,aaa-project,"",user_commented_revision:e3fef0be8dc20eb1fa68fc45292d9d66de1cc67f,2012-09-06 04:57:07.744368
+944,3,demo,68,aaa-project,"",push_local:bc829c34912709c7d129e5dae9a3e5ff46e77fc7,2012-09-06 04:57:36.830617
+945,3,demo,68,aaa-project,"",user_commented_revision:bc829c34912709c7d129e5dae9a3e5ff46e77fc7,2012-09-06 04:58:00.171714
+946,3,demo,68,aaa-project,"",user_commented_revision:e3fef0be8dc20eb1fa68fc45292d9d66de1cc67f,2012-09-06 05:01:46.10616
+947,3,demo,68,aaa-project,"",user_updated_repo,2012-09-06 05:03:07.692388
+948,2,admin,,"","",admin_updated_user:ThunderEagle,2012-09-06 09:36:46.171404
+949,2,admin,,"","",admin_updated_user:nipocetyueai,2012-09-06 09:36:50.92007
+950,2,admin,,"","",admin_updated_user:mnemonikk,2012-09-06 09:36:56.872411
+951,2,admin,,"","",admin_updated_user:kasai,2012-09-06 09:37:01.993148
+952,2,admin,,"","",admin_updated_user:Gerhard,2012-09-06 09:37:06.197752
+953,2,admin,,"","",admin_updated_user:dtucker,2012-09-06 09:37:10.301831
+954,3,demo,181,group/MyTestRepo,"",started_following_repo,2012-09-06 15:19:51.89625
+955,3,demo,181,group/MyTestRepo,"",user_created_repo,2012-09-06 15:19:51.912381
+956,182,nohj,93,fork-a,"",user_commented_revision:7f8b4f94e2a83394aa687e0bb110870769e9ca0a,2012-09-07 09:42:56.913732
+957,182,nohj,93,fork-a,"",user_commented_revision:7f8b4f94e2a83394aa687e0bb110870769e9ca0a,2012-09-07 09:43:06.314091
+958,3,demo,182,releases/test,"",started_following_repo,2012-09-07 11:22:43.780986
+959,3,demo,182,releases/test,"",user_created_repo,2012-09-07 11:22:43.795541
+960,3,demo,183,releases/fork-test,"",started_following_repo,2012-09-07 11:23:52.711668
+961,3,demo,182,releases/test,"",user_forked_repo:releases/fork-test,2012-09-07 11:23:52.72963
+962,3,demo,183,releases/fork-test,"",user_created_fork:releases/fork-test,2012-09-07 11:23:52.742467
+963,3,demo,184,fork-aaa-project,"",started_following_repo,2012-09-07 11:28:35.495082
+964,3,demo,68,aaa-project,"",user_forked_repo:fork-aaa-project,2012-09-07 11:28:35.510311
+965,3,demo,184,fork-aaa-project,"",user_created_fork:fork-aaa-project,2012-09-07 11:28:35.523318
+966,3,demo,184,fork-aaa-project,"",push_local:b25fcd2b8f033115be20d9146c99c1aa6854dff0,2012-09-07 11:29:20.828412
+967,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-09-07 11:32:38.639523
+968,3,demo,185,TestRepositoryCS,"",started_following_repo,2012-09-07 13:53:39.687423
+969,3,demo,185,TestRepositoryCS,"",user_created_repo,2012-09-07 13:53:39.702762
+970,3,demo,186,releases/softpedia,"",started_following_repo,2012-09-07 14:23:28.805185
+971,3,demo,186,releases/softpedia,"",user_created_repo,2012-09-07 14:23:28.815298
+972,3,demo,187,ptest,"",started_following_repo,2012-09-07 20:29:00.365852
+973,3,demo,187,ptest,"",user_created_repo,2012-09-07 20:29:00.379277
+974,3,demo,187,ptest,89.72.81.164,push:527819ac5de5c1ef222e10faa94d00031ff92276,2012-09-07 20:35:02.456136
+975,3,demo,187,ptest,89.72.81.164,push:20312aeb821607689952b2e56de6167927c2790b,2012-09-07 20:40:50.055559
+976,3,demo,187,ptest,"",user_commented_revision:20312aeb821607689952b2e56de6167927c2790b,2012-09-07 20:43:26.445007
+977,141,asdf1234asdf,188,fork-Asdf,"",started_following_repo,2012-09-07 21:22:53.452145
+978,141,asdf1234asdf,135,Asdf,"",user_forked_repo:fork-Asdf,2012-09-07 21:22:53.472411
+979,141,asdf1234asdf,188,fork-Asdf,"",user_created_fork:fork-Asdf,2012-09-07 21:22:53.485295
+980,141,asdf1234asdf,188,fork-Asdf,"",push_local:cf7c116b1345f1aa0b1df0d1c36abce396082561,2012-09-07 21:23:31.404039
+981,141,asdf1234asdf,135,Asdf,"",user_commented_pull_request:40,2012-09-07 21:24:53.455489
+982,141,asdf1234asdf,135,Asdf,"",user_closed_pull_request:40,2012-09-07 21:24:53.467808
+983,3,demo,68,aaa-project,"",user_commented_revision:bc829c34912709c7d129e5dae9a3e5ff46e77fc7,2012-09-07 22:54:29.053992
+984,3,demo,189,fork-_01_jdj,"",started_following_repo,2012-09-07 22:55:46.169783
+985,3,demo,170,_01_jdj,"",user_forked_repo:fork-_01_jdj,2012-09-07 22:55:46.191342
+986,3,demo,189,fork-_01_jdj,"",user_created_fork:fork-_01_jdj,2012-09-07 22:55:46.209143
+987,2,admin,190,rhodecode,"",started_following_repo,2012-09-08 01:07:09.881091
+988,2,admin,190,rhodecode,"",admin_created_repo,2012-09-08 01:07:09.895097
+989,3,demo,34,a,"",user_commented_revision:332932afc11a2c6308d44e75f8b4ac7643093fa7,2012-09-08 08:57:27.586796
+990,3,demo,191,kekeke,"",started_following_repo,2012-09-08 11:22:58.159504
+991,3,demo,191,kekeke,"",user_created_repo,2012-09-08 11:22:58.175212
+992,3,demo,191,kekeke,"",push_local:40926265e8964e7b71381c9c9e1d3c4dbdd158cc,2012-09-08 11:23:11.019021
+993,3,demo,191,kekeke,"",user_commented_revision:40926265e8964e7b71381c9c9e1d3c4dbdd158cc,2012-09-08 11:23:26.28488
+994,3,demo,192,fork-kekeke,"",started_following_repo,2012-09-08 11:23:53.101414
+995,3,demo,191,kekeke,"",user_forked_repo:fork-kekeke,2012-09-08 11:23:53.115395
+996,3,demo,192,fork-kekeke,"",user_created_fork:fork-kekeke,2012-09-08 11:23:53.129381
+997,3,demo,192,fork-kekeke,"",push_local:f6c6170cb0cd27fd21d4a8f4ae477bb86ee67e6e,2012-09-08 11:24:25.629176
+998,3,demo,192,fork-kekeke,"",user_commented_revision:f6c6170cb0cd27fd21d4a8f4ae477bb86ee67e6e,2012-09-08 11:24:36.698761
+999,3,demo,192,fork-kekeke,"",user_commented_revision:f6c6170cb0cd27fd21d4a8f4ae477bb86ee67e6e,2012-09-08 11:26:01.605011
+1000,3,demo,193,swamp,"",started_following_repo,2012-09-08 11:27:28.069118
+1001,3,demo,193,swamp,"",user_created_repo,2012-09-08 11:27:28.079797
+1002,3,demo,193,swamp,"",push_local:c4cd716a477bd604e57f8a07c28462f2e55b1282,2012-09-08 11:27:40.680692
+1003,3,demo,194,fork-swamp,"",started_following_repo,2012-09-08 11:28:05.141092
+1004,3,demo,193,swamp,"",user_forked_repo:fork-swamp,2012-09-08 11:28:05.223876
+1005,3,demo,194,fork-swamp,"",user_created_fork:fork-swamp,2012-09-08 11:28:05.233149
+1006,3,demo,194,fork-swamp,"",push_local:cdf8380186a792bffb9be284df1bd95c631143ca,2012-09-08 11:28:33.802256
+1007,3,demo,193,swamp,"",user_commented_pull_request:41,2012-09-08 11:29:22.818392
+1008,3,demo,193,swamp,"",user_closed_pull_request:41,2012-09-08 11:29:22.824771
+1009,3,demo,193,swamp,"",user_updated_repo,2012-09-08 11:32:58.174439
+1010,3,demo,,group/book,"",started_following_repo,2012-09-08 18:59:38.392464
+1011,3,demo,,group/book,"",user_created_repo,2012-09-08 18:59:38.412482
+1012,3,demo,,group/book,"",push_local:da7ffa14ae51096c974b2297cfd8a10009b44266,2012-09-08 19:01:38.20195
+1013,3,demo,,group/book,"",stopped_following_repo,2012-09-08 19:04:50.017367
+1014,3,demo,,group/book,"",user_deleted_repo,2012-09-08 19:09:36.059085
+1015,183,dotnet,196,PD,"",started_following_repo,2012-09-08 22:57:37.558354
+1016,183,dotnet,196,PD,"",user_created_repo,2012-09-08 22:57:37.570947
+1017,183,dotnet,196,group/PD,"",user_updated_repo,2012-09-08 22:58:13.674462
+1018,3,demo,197,CollectionQuery,"",started_following_repo,2012-09-09 00:58:29.372736
+1019,3,demo,197,CollectionQuery,"",user_created_repo,2012-09-09 00:58:29.391956
+1020,3,demo,197,CollectionQuery,"",user_commented_revision:34f0cefd8f7fbddf412daddc8676483f71456e8d,2012-09-09 00:58:51.17291
+1021,3,demo,197,CollectionQuery,"",user_commented_revision:34f0cefd8f7fbddf412daddc8676483f71456e8d,2012-09-09 00:58:56.364677
+1022,3,demo,198,fork-CollectionQuery,"",started_following_repo,2012-09-09 00:59:36.116229
+1023,3,demo,197,CollectionQuery,"",user_forked_repo:fork-CollectionQuery,2012-09-09 00:59:36.133811
+1024,3,demo,198,fork-CollectionQuery,"",user_created_fork:fork-CollectionQuery,2012-09-09 00:59:36.214126
+1025,3,demo,199,fork-fork-CollectionQuery,"",started_following_repo,2012-09-09 00:59:57.408192
+1026,3,demo,198,fork-CollectionQuery,"",user_forked_repo:fork-fork-CollectionQuery,2012-09-09 00:59:57.423968
+1027,3,demo,199,fork-fork-CollectionQuery,"",user_created_fork:fork-fork-CollectionQuery,2012-09-09 00:59:57.433065
+1028,3,demo,199,fork-fork-CollectionQuery,195.43.146.59,push:69ce02e460b36f4c28a468ac1356b579b9a954ff,2012-09-09 01:01:22.306272
+1029,3,demo,198,fork-CollectionQuery,"",user_commented_pull_request:42,2012-09-09 01:02:19.007376
+1030,3,demo,198,fork-CollectionQuery,"",user_commented_pull_request:42,2012-09-09 01:02:27.274382
+1031,3,demo,198,fork-CollectionQuery,"",user_commented_pull_request:42,2012-09-09 01:02:58.084638
+1032,3,demo,198,fork-CollectionQuery,"",user_commented_pull_request:42,2012-09-09 01:03:24.236666
+1033,3,demo,198,fork-CollectionQuery,"",user_closed_pull_request:42,2012-09-09 01:03:24.242005
+1034,3,demo,199,fork-fork-CollectionQuery,"",user_updated_repo,2012-09-09 01:07:10.157164
+1035,3,demo,200,group/MostafaTest,"",started_following_repo,2012-09-09 05:40:58.979338
+1036,3,demo,200,group/MostafaTest,"",user_created_repo,2012-09-09 05:40:58.990523
+1037,3,demo,200,group/MostafaTest,"",user_updated_repo,2012-09-09 05:41:48.334746
+1055,184,testar,201,tord,"",user_commented_pull_request:44,2012-09-09 19:54:21.605064
+1056,184,testar,201,tord,"",user_closed_pull_request:44,2012-09-09 19:54:21.613226
+1039,3,demo,170,_01_jdj,"",user_updated_repo,2012-09-09 07:53:52.339713
+1040,3,demo,170,_01_jdj,"",user_updated_repo,2012-09-09 07:54:26.72259
+1041,3,demo,170,group/_01_jdj,"",user_updated_repo,2012-09-09 07:55:38.58919
+1042,184,testar,201,tord,"",started_following_repo,2012-09-09 18:14:16.86889
+1043,184,testar,201,tord,"",user_created_repo,2012-09-09 18:14:16.882512
+1044,184,testar,163,nagios,"",started_following_repo,2012-09-09 18:15:38.62944
+1045,184,testar,201,tord,"",push_local:35b3ebc8e1c23902eb97031f42f666df0835c5be,2012-09-09 18:19:47.818844
+1046,184,testar,202,fork-tord,"",started_following_repo,2012-09-09 18:20:57.856478
+1047,184,testar,201,tord,"",user_forked_repo:fork-tord,2012-09-09 18:20:57.874063
+1048,184,testar,202,fork-tord,"",user_created_fork:fork-tord,2012-09-09 18:20:57.882599
+1049,184,testar,202,fork-tord,"",push_local:9a2c544511d0a4acd495e8ea5731a8991a74282e,2012-09-09 18:21:38.707225
+1050,184,testar,201,tord,"",user_commented_pull_request:43,2012-09-09 18:25:50.104238
+1051,184,testar,201,tord,"",user_closed_pull_request:43,2012-09-09 18:25:50.113446
+1052,184,testar,201,tord,"",user_commented_pull_request:44,2012-09-09 18:27:24.712191
+1053,184,testar,201,tord,"",user_commented_pull_request:44,2012-09-09 18:28:22.083687
+1054,184,testar,201,tord,"",user_updated_repo,2012-09-09 18:29:15.858734
+1057,185,robert.zaremba,90,a-fork1,"",user_commented_revision:b09d43f798414bcbdf4dc1fc5dafe6ce4aa5afc3,2012-09-09 22:27:16.614006
+1058,185,robert.zaremba,90,a-fork1,"",user_commented_revision:7672806f881f67eb1441d00b16e983e761127cb6,2012-09-09 22:32:41.43306
+1059,185,robert.zaremba,90,a-fork1,"",user_commented_revision:7672806f881f67eb1441d00b16e983e761127cb6,2012-09-09 22:33:13.181212
+1060,3,demo,203,testtt,"",started_following_repo,2012-09-10 09:06:26.895244
+1061,3,demo,203,testtt,"",user_created_repo,2012-09-10 09:06:26.906878
+1062,3,demo,34,a,"",user_commented_revision:7672806f881f67eb1441d00b16e983e761127cb6,2012-09-10 10:05:40.492293
+1063,3,demo,68,aaa-project,"",user_commented_revision:bc829c34912709c7d129e5dae9a3e5ff46e77fc7,2012-09-10 18:01:16.277098
+1064,3,demo,81,FS_dummy,"",user_updated_repo,2012-09-10 18:06:21.324052
+1065,3,demo,204,releases/Sopra_testgd,"",started_following_repo,2012-09-10 18:11:02.020678
+1066,3,demo,204,releases/Sopra_testgd,"",user_created_repo,2012-09-10 18:11:02.030205
+1067,3,demo,204,releases/Sopra_testgd,"",push_local:284745170ffd9e889c2edfb0233b6d654e787fa9,2012-09-10 18:12:24.966918
+1068,3,demo,204,releases/Sopra_testgd,"",user_commented_revision:284745170ffd9e889c2edfb0233b6d654e787fa9,2012-09-10 18:14:01.969763
+1069,3,demo,205,releases/fork-Sopra_testgd,"",started_following_repo,2012-09-10 18:16:19.48076
+1070,3,demo,204,releases/Sopra_testgd,"",user_forked_repo:releases/fork-Sopra_testgd,2012-09-10 18:16:19.499335
+1071,3,demo,205,releases/fork-Sopra_testgd,"",user_created_fork:releases/fork-Sopra_testgd,2012-09-10 18:16:19.511534
+1072,3,demo,205,releases/fork-Sopra_testgd,"",push_local:99095f2d5703cbc43294ef55a19c5cc9e4cc2c15,2012-09-10 18:21:23.60213
+1073,189,bondsbw,57,SuperProject,"",user_commented_revision:a3188ce9ed64822ceae497665910c2e18cddf021,2012-09-10 22:54:09.907623
+1074,189,bondsbw,122,amab,"",user_commented_revision:f0509a4f718f5a31eafcb8fbe9caf21a642c5753,2012-09-10 22:55:47.862221
+1075,108,dukeofgaming,124,fork-another-fork-to-check-code-review,"",push_local:a48ce47517381c8ca647c5f5ed459cfd16c2d929,2012-09-11 19:49:34.961449
+1076,3,demo,206,test-sls,"",started_following_repo,2012-09-11 22:38:29.066354
+1077,3,demo,206,test-sls,"",user_created_repo,2012-09-11 22:38:29.079212
+1078,3,demo,206,test-sls,"",push_local:dd00a017d1957479cfcde1e452b625de41dde9d2,2012-09-11 22:38:53.239821
+1079,3,demo,207,fork-test-sls,"",started_following_repo,2012-09-11 22:39:50.010568
+1080,3,demo,206,test-sls,"",user_forked_repo:fork-test-sls,2012-09-11 22:39:50.029999
+1081,3,demo,207,fork-test-sls,"",user_created_fork:fork-test-sls,2012-09-11 22:39:50.043157
+1082,3,demo,206,test-sls,"",push_local:c6b89acf0f7cd0b524001d0aa6f5ab3b83c30610,2012-09-11 22:40:31.203174
+1083,3,demo,54,glib,"",user_commented_revision:538b2f106de78b7dfeac2a98f3d5594ed0ed2ade,2012-09-12 00:11:20.855342
+1084,3,demo,54,glib,"",user_commented_revision:82d914d808c616d14d489c0272c6d5afc4bfbd5a,2012-09-12 00:12:22.85722
+1085,3,demo,208,fork-foo-test-pull-request,"",started_following_repo,2012-09-12 05:01:27.90602
+1086,3,demo,42,foo,"",user_forked_repo:fork-foo-test-pull-request,2012-09-12 05:01:30.440339
+1087,3,demo,208,fork-foo-test-pull-request,"",user_created_fork:fork-foo-test-pull-request,2012-09-12 05:01:30.452552
+1088,3,demo,208,fork-foo-test-pull-request,"",push_local:466e27f74322722e315290532fbcb304f6d58c89,2012-09-12 05:03:04.911355
+1089,3,demo,209,simple,"",started_following_repo,2012-09-12 05:06:08.645688
+1090,3,demo,209,simple,"",user_created_repo,2012-09-12 05:06:08.657642
+1091,3,demo,209,simple,"",push_local:f486184ddd95d91608069a8551febd72e268f4df,2012-09-12 05:07:25.821515
+1092,3,demo,210,simple-dev,"",started_following_repo,2012-09-12 05:08:21.036466
+1093,3,demo,209,simple,"",user_forked_repo:simple-dev,2012-09-12 05:08:21.055166
+1094,3,demo,210,simple-dev,"",user_created_fork:simple-dev,2012-09-12 05:08:21.069551
+1095,3,demo,210,simple-dev,"",push_local:5041fad58a9214bf203d139c171a277c51bac1a3,2012-09-12 05:09:16.139893
+1096,3,demo,209,simple,"",user_commented_pull_request:47,2012-09-12 05:11:57.925581
+1097,3,demo,209,simple,"",user_commented_pull_request:47,2012-09-12 05:12:24.949869
+1098,3,demo,209,simple,"",user_closed_pull_request:47,2012-09-12 05:12:24.958144
+1099,1,default,209,simple,221.237.152.62,pull,2012-09-12 05:40:02.318983
+1100,1,default,210,simple-dev,221.237.152.62,pull,2012-09-12 05:40:17.924834
+1101,1,default,210,simple-dev,221.237.152.62,pull,2012-09-12 05:40:49.20005
+1102,3,demo,209,simple,221.237.152.62,push:5041fad58a9214bf203d139c171a277c51bac1a3,2012-09-12 05:41:15.014744
+1103,3,demo,210,simple-dev,"",push_local:bbcf483fdda92478ca6a00a0f14cc77815d5414f,2012-09-12 05:47:24.31048
+1104,3,demo,210,simple-dev,"",user_updated_repo,2012-09-12 05:48:00.607586
+1105,3,demo,209,simple,"",user_commented_pull_request:48,2012-09-12 05:49:58.582042
+1106,3,demo,209,simple,"",user_closed_pull_request:48,2012-09-12 05:49:58.589388
+1107,1,default,210,simple-dev,221.237.152.62,pull,2012-09-12 05:50:50.549103
+1108,3,demo,209,simple,221.237.152.62,push:bbcf483fdda92478ca6a00a0f14cc77815d5414f,2012-09-12 05:51:17.124232
+1109,3,demo,34,a,"",push_local:48e1ba33b7951b8e8023e3e3cc54ef2540f4e8f1,2012-09-12 08:36:56.839135
+1110,3,demo,120,group/clojure.git,"",user_updated_repo,2012-09-12 10:03:47.644822
+1111,3,demo,174,cruel-test-2,"",push_local:a0971ac6b506a17718c1544689f3f6cfc261576d,2012-09-12 10:54:25.099359
+1112,3,demo,174,releases/cruel-test-2,"",user_updated_repo,2012-09-12 10:55:26.86657
+1113,3,demo,174,releases/cruel-test-2,"",user_updated_repo,2012-09-12 10:55:30.573836
+1114,2,admin,211,testé1,"",started_following_repo,2012-09-12 11:57:41.047778
+1115,2,admin,211,testé1,"",admin_created_repo,2012-09-12 11:57:41.083287
+1116,3,demo,169,group/demo_interface,"",user_updated_repo,2012-09-12 12:07:54.077355
+1117,3,demo,174,releases/cruel-test-2,"",stopped_following_repo,2012-09-12 12:08:52.082216
+1118,3,demo,174,releases/cruel-test-2,"",started_following_repo,2012-09-12 12:08:53.730447
+1119,3,demo,174,releases/cruel-test-2,"",stopped_following_repo,2012-09-12 12:08:55.148237
+1120,3,demo,209,simple,"",user_commented_revision:bbcf483fdda92478ca6a00a0f14cc77815d5414f,2012-09-12 12:12:45.729356
+1121,3,demo,209,simple,"",user_commented_revision:5041fad58a9214bf203d139c171a277c51bac1a3,2012-09-12 12:14:55.164695
+1122,193,test1234124890814,212,group/fork-aaa-project,"",started_following_repo,2012-09-12 21:55:02.137169
+1123,193,test1234124890814,68,aaa-project,"",user_forked_repo:group/fork-aaa-project,2012-09-12 21:55:02.184564
+1124,193,test1234124890814,212,group/fork-aaa-project,"",user_created_fork:group/fork-aaa-project,2012-09-12 21:55:02.198242
+1125,3,demo,36,bootstrap,"",user_updated_repo,2012-09-13 11:40:44.539269
+1126,3,demo,36,bootstrap,"",user_updated_repo,2012-09-13 11:40:50.053297
+1127,3,demo,34,a,"",user_commented_revision:48e1ba33b7951b8e8023e3e3cc54ef2540f4e8f1,2012-09-13 11:45:58.772773
+1128,3,demo,213,fork-aii,"",started_following_repo,2012-09-13 11:47:05.531304
+1129,3,demo,34,a,"",user_forked_repo:fork-aii,2012-09-13 11:47:05.549251
+1130,3,demo,213,fork-aii,"",user_created_fork:fork-aii,2012-09-13 11:47:05.56141
+1131,3,demo,214,group/fork-clojure.git2,"",started_following_repo,2012-09-13 11:49:07.655132
+1132,3,demo,120,group/clojure.git,"",user_forked_repo:group/fork-clojure.git2,2012-09-13 11:49:09.06382
+1133,3,demo,214,group/fork-clojure.git2,"",user_created_fork:group/fork-clojure.git2,2012-09-13 11:49:09.078581
+1134,3,demo,34,a,"",push_local:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-09-13 11:54:41.606977
+1135,3,demo,34,a,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-09-13 11:54:58.759518
+1136,3,demo,215,fork-aaa-project-fork,"",started_following_repo,2012-09-13 13:38:46.509316
+1137,3,demo,68,aaa-project,"",user_forked_repo:fork-aaa-project-fork,2012-09-13 13:38:46.527575
+1138,3,demo,215,fork-aaa-project-fork,"",user_created_fork:fork-aaa-project-fork,2012-09-13 13:38:46.539228
+1139,3,demo,215,fork-aaa-project-fork,"",push_local:7a8d3ab1f8ae1f1ab29a8b91b1946d92e30d46b3,2012-09-13 13:39:43.069005
+1140,3,demo,68,aaa-project,"",stopped_following_repo,2012-09-13 15:29:12.016889
+1141,3,demo,68,aaa-project,"",started_following_repo,2012-09-13 15:29:12.692509
+1142,195,emcconne,216,TestingRhino,"",started_following_repo,2012-09-13 17:30:27.876656
+1143,195,emcconne,216,TestingRhino,"",user_created_repo,2012-09-13 17:30:27.892609
+1144,198,sdfsdf,217,sdfsdf,"",started_following_repo,2012-09-14 08:58:28.936153
+1145,198,sdfsdf,217,sdfsdf,"",user_created_repo,2012-09-14 08:58:28.945587
+1146,198,sdfsdf,217,sdfsdf,"",push_local:13d78aa20a388de51a7717800e6d3ce5d186bb19,2012-09-14 08:58:39.080817
+1147,3,demo,218,TestRepo,"",started_following_repo,2012-09-14 11:07:12.582488
+1148,3,demo,218,TestRepo,"",user_created_repo,2012-09-14 11:07:12.591173
+1149,3,demo,68,aaa-project,"",user_commented_pull_request:50,2012-09-14 13:24:16.044125
+1150,3,demo,68,aaa-project,"",user_commented_pull_request:50,2012-09-14 13:24:51.197813
+1151,3,demo,68,aaa-project,"",user_closed_pull_request:50,2012-09-14 13:24:51.217266
+1152,3,demo,68,aaa-project,"",user_updated_repo,2012-09-14 13:27:23.206802
+1153,3,demo,34,a,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-09-14 16:02:30.704441
+1154,200,animusoft,219,Animusoft.Respository,"",started_following_repo,2012-09-14 18:02:30.536279
+1155,200,animusoft,219,Animusoft.Respository,"",user_created_repo,2012-09-14 18:02:30.545377
+1156,200,animusoft,219,Animusoft.Respository,"",push_local:73da86adad8bdb1ce83aa6a5d0c603a9b28b4a37,2012-09-14 18:04:26.459249
+1157,200,animusoft,219,Animusoft.Respository,"",push_local:6b8fe7f9d13089ca20dddca163b35f7d8651f60f,2012-09-14 18:05:16.811723
+1158,201,AsyA,220,TestTestTestTestTestTest,"",started_following_repo,2012-09-14 19:16:17.886851
+1159,201,AsyA,220,TestTestTestTestTestTest,"",user_created_repo,2012-09-14 19:16:17.895972
+1160,201,AsyA,220,TestTestTestTestTestTest,"",push_local:25acf78d91b645e98173440645ccfe14688b1f20,2012-09-14 19:17:19.578893
+1161,201,AsyA,220,TestTestTestTestTestTest,"",push_local:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:09.018005
+1162,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_revision:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:26.225849
+1163,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_revision:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:31.314463
+1164,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_revision:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:36.071029
+1165,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_revision:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:42.675126
+1166,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_revision:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:45.57336
+1167,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_revision:f067475760e5739e2c9ada32160ff4d14193071b,2012-09-14 19:20:48.976628
+1168,201,AsyA,221,fork-TestTestTestTestTestTest,"",started_following_repo,2012-09-14 19:26:54.224113
+1169,201,AsyA,220,TestTestTestTestTestTest,"",user_forked_repo:fork-TestTestTestTestTestTest,2012-09-14 19:26:54.236074
+1170,201,AsyA,221,fork-TestTestTestTestTestTest,"",user_created_fork:fork-TestTestTestTestTestTest,2012-09-14 19:26:54.243559
+1171,201,AsyA,221,fork-TestTestTestTestTestTest,"",push_local:05e54fdd720c30f564ed12bdbff6dbbeb55f3816,2012-09-14 19:29:39.084466
+1172,201,AsyA,220,TestTestTestTestTestTest,"",user_commented_pull_request:51,2012-09-14 19:36:31.399955
+1173,201,AsyA,220,TestTestTestTestTestTest,"",user_closed_pull_request:51,2012-09-14 19:36:31.404011
+1174,201,AsyA,220,TestTestTestTestTestTest,"",push_local:79f5d792cff0085cf103a76c7a19934de3828f43,2012-09-14 19:44:41.485916
+1175,203,f.ludwig,222,florian-test,"",started_following_repo,2012-09-15 14:46:45.248996
+1176,203,f.ludwig,222,florian-test,"",user_created_repo,2012-09-15 14:46:45.258481
+1177,203,f.ludwig,223,florian-test-fork,"",started_following_repo,2012-09-15 14:47:01.375283
+1178,203,f.ludwig,222,florian-test,"",user_forked_repo:florian-test-fork,2012-09-15 14:47:01.40721
+1179,203,f.ludwig,223,florian-test-fork,"",user_created_fork:florian-test-fork,2012-09-15 14:47:01.415249
+1180,203,f.ludwig,223,florian-test-fork,"",push_local:028186940dbf5db5818c2c0a9ff80f214da0fd3f,2012-09-15 15:20:01.863826
+1181,203,f.ludwig,223,florian-test-fork,"",push_local:4225a7038b6d6bb193056967830ba56a2f38b005,2012-09-15 15:20:28.233187
+1182,203,f.ludwig,223,florian-test-fork,"",user_commented_revision:4225a7038b6d6bb193056967830ba56a2f38b005,2012-09-15 15:20:38.339449
+1183,203,f.ludwig,223,florian-test-fork,"",user_commented_revision:4225a7038b6d6bb193056967830ba56a2f38b005,2012-09-15 15:20:43.785366
+1184,203,f.ludwig,223,florian-test-fork,"",user_commented_revision:4225a7038b6d6bb193056967830ba56a2f38b005,2012-09-15 15:21:21.2331
+1185,193,test1234124890814,224,gnomon,"",started_following_repo,2012-09-15 22:29:06.869927
+1186,193,test1234124890814,224,gnomon,"",user_created_repo,2012-09-15 22:29:06.906648
+1187,207,D21,225,Some-fork,"",started_following_repo,2012-09-16 07:54:31.811337
+1188,207,D21,99,another-fork-to-check-code-review,"",user_forked_repo:Some-fork,2012-09-16 07:54:31.928503
+1189,207,D21,225,Some-fork,"",user_created_fork:Some-fork,2012-09-16 07:54:31.937372
+1190,3,demo,68,aaa-project,"",stopped_following_repo,2012-09-17 02:37:55.405711
+1191,3,demo,68,aaa-project,"",started_following_repo,2012-09-17 02:37:56.743644
+1192,3,demo,32,big-project,"",push_local:90f0247f654982a4dbc9e4861418c595a683e955,2012-09-17 02:40:47.259763
+1193,3,demo,32,big-project,"",user_commented_revision:90f0247f654982a4dbc9e4861418c595a683e955,2012-09-17 02:42:22.067682
+1194,3,demo,32,big-project,"",user_commented_revision:90f0247f654982a4dbc9e4861418c595a683e955,2012-09-17 02:43:53.288729
+1195,3,demo,32,big-project,"",user_commented_revision:90f0247f654982a4dbc9e4861418c595a683e955,2012-09-17 02:44:53.446591
+1196,3,demo,32,big-project,"",user_commented_revision:90f0247f654982a4dbc9e4861418c595a683e955,2012-09-17 02:45:25.720276
+1197,210,NewJoker,226,Game-Pomba,"",started_following_repo,2012-09-17 19:42:40.085447
+1198,210,NewJoker,226,Game-Pomba,"",user_created_repo,2012-09-17 19:42:40.098774
+1199,210,NewJoker,226,Game-Pomba,200.145.158.30,"push:82cbee64e8bf751654f39b6cef522575394d2b39,428505e2393b901562daac11bc050f449cb4418c,79c5e73e770d002472ee117b099b998b1897f140,67c5815cf9810a07a4edcfb63a6801a230149225",2012-09-17 19:43:52.544873
+1200,210,NewJoker,226,Game-Pomba,"",user_updated_repo,2012-09-17 19:51:20.717504
+1201,210,NewJoker,226,Game-Pomba,"",user_updated_repo,2012-09-17 19:54:17.369104
+1202,211,hmcaio,226,Game-Pomba,200.145.158.30,pull,2012-09-17 20:06:05.58778
+1203,108,dukeofgaming,124,fork-another-fork-to-check-code-review,"",user_updated_repo,2012-09-18 22:11:32.262653
+1204,3,demo,227,fork-aaa-project-2,"",started_following_repo,2012-09-19 05:04:47.237996
+1205,3,demo,68,aaa-project,"",user_forked_repo:fork-aaa-project-2,2012-09-19 05:04:47.261047
+1206,3,demo,227,fork-aaa-project-2,"",user_created_fork:fork-aaa-project-2,2012-09-19 05:04:47.275211
+1207,203,f.ludwig,223,florian-test-fork,"",user_commented_revision:028186940dbf5db5818c2c0a9ff80f214da0fd3f,2012-09-19 10:34:12.945275
+1208,203,f.ludwig,223,florian-test-fork,"",user_commented_revision:028186940dbf5db5818c2c0a9ff80f214da0fd3f,2012-09-19 10:34:21.140947
+1209,203,f.ludwig,223,florian-test-fork,"",user_commented_revision:028186940dbf5db5818c2c0a9ff80f214da0fd3f,2012-09-19 10:34:26.061929
+1210,1,default,68,aaa-project,74.125.184.38,pull,2012-09-19 15:23:03.784613
+1211,3,demo,68,aaa-project,74.125.184.23,push:8c632d9ca9fa402f585385c3bbadc139d6d085a9,2012-09-19 15:24:52.655487
+1212,214,am385,228,Testbed101,"",started_following_repo,2012-09-19 20:56:01.838629
+1213,214,am385,228,Testbed101,"",user_created_repo,2012-09-19 20:56:01.853795
+1214,214,am385,228,Testbed101,"",push_local:20cfcd314a6eae3cc3f83ac57e3f3d0bfbd12bfa,2012-09-19 21:02:39.003808
+1215,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-09-20 00:05:46.898686
+1216,1,default,122,amab,64.0.193.29,pull,2012-09-20 08:28:43.327263
+1217,3,demo,205,releases/fork-Sopra_testgd,"",user_commented_revision:99095f2d5703cbc43294ef55a19c5cc9e4cc2c15,2012-09-20 09:35:54.589279
+1218,3,demo,205,releases/fork-Sopra_testgd,"",user_commented_revision:99095f2d5703cbc43294ef55a19c5cc9e4cc2c15,2012-09-20 09:37:33.380842
+1219,3,demo,204,releases/Sopra_testgd,"",user_commented_pull_request:46,2012-09-20 09:38:40.617161
+1220,3,demo,204,releases/Sopra_testgd,"",user_closed_pull_request:46,2012-09-20 09:38:40.624018
+1221,3,demo,229,blaat,"",started_following_repo,2012-09-20 19:20:37.921692
+1222,3,demo,229,blaat,"",user_created_repo,2012-09-20 19:20:37.930827
+1223,3,demo,34,a,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-09-20 20:07:29.000255
+1224,3,demo,230,eks1,"",started_following_repo,2012-09-20 20:42:54.376374
+1225,3,demo,230,eks1,"",user_created_repo,2012-09-20 20:42:54.385712
+1226,3,demo,230,eks1,216.191.220.77,push:f58be25d36113902d50783abb44d7bcbc62e4eb7,2012-09-20 20:46:36.378744
+1227,1,default,230,eks1,216.191.220.77,pull,2012-09-20 20:47:13.533037
+1228,3,demo,230,eks1,216.191.220.77,push:cc064b1c1831e9b5b1db6b9c72a7404b111b579a,2012-09-20 20:47:42.815309
+1229,1,default,230,eks1,216.191.220.77,pull,2012-09-20 20:47:53.706376
+1230,1,default,230,eks1,216.191.220.77,pull,2012-09-20 20:47:58.020108
+1231,3,demo,230,eks1,"",user_commented_revision:f58be25d36113902d50783abb44d7bcbc62e4eb7,2012-09-20 20:48:53.742614
+1232,3,demo,230,eks1,"",user_commented_revision:cc064b1c1831e9b5b1db6b9c72a7404b111b579a,2012-09-20 20:49:30.403129
+1233,3,demo,231,fork-eks1,"",started_following_repo,2012-09-20 20:51:24.23117
+1234,3,demo,230,eks1,"",user_forked_repo:fork-eks1,2012-09-20 20:51:24.242627
+1235,3,demo,231,fork-eks1,"",user_created_fork:fork-eks1,2012-09-20 20:51:24.249831
+1236,1,default,231,fork-eks1,216.191.220.77,pull,2012-09-20 20:51:52.699176
+1237,3,demo,231,fork-eks1,216.191.220.77,push:7be3eb971e236dd0c1d7b7c4637e7fab9c0a8eff,2012-09-20 20:52:17.107154
+1238,3,demo,230,eks1,"",user_commented_pull_request:53,2012-09-20 20:57:09.709452
+1239,3,demo,230,eks1,"",user_commented_pull_request:53,2012-09-20 20:59:58.813611
+1240,3,demo,230,eks1,"",user_closed_pull_request:53,2012-09-20 20:59:58.820711
+1241,3,demo,230,eks1,"",user_commented_pull_request:54,2012-09-20 21:02:22.161549
+1242,3,demo,230,eks1,"",user_closed_pull_request:54,2012-09-20 21:02:22.167313
+1243,1,default,231,fork-eks1,216.191.220.77,pull,2012-09-20 23:22:45.505072
+1244,3,demo,230,eks1,216.191.220.77,push:7be3eb971e236dd0c1d7b7c4637e7fab9c0a8eff,2012-09-20 23:24:42.752414
+1245,3,demo,231,fork-eks1,216.191.220.77,push:1a4b7771bd03e57d3a9854efd18de0d7d66db5d8,2012-09-20 23:25:49.109081
+1246,216,eks,232,eks1-eksfork,"",started_following_repo,2012-09-20 23:33:21.433073
+1247,216,eks,230,eks1,"",user_forked_repo:eks1-eksfork,2012-09-20 23:33:21.446723
+1248,216,eks,232,eks1-eksfork,"",user_created_fork:eks1-eksfork,2012-09-20 23:33:21.453956
+1249,1,default,232,eks1-eksfork,216.191.220.77,pull,2012-09-20 23:36:06.736653
+1250,1,default,122,amab,176.9.28.203,pull,2012-09-21 01:56:49.09876
+1251,3,demo,233,clonetest,"",started_following_repo,2012-09-21 01:56:49.309535
+1252,3,demo,233,clonetest,"",user_created_repo,2012-09-21 01:56:49.327352
+1253,217,domvign,234,fork2-tord,"",started_following_repo,2012-09-21 03:45:07.090078
+1254,217,domvign,201,tord,"",user_forked_repo:fork2-tord,2012-09-21 03:45:07.111893
+1255,217,domvign,234,fork2-tord,"",user_created_fork:fork2-tord,2012-09-21 03:45:07.125832
+1256,3,demo,235,test_test1,"",started_following_repo,2012-09-21 08:25:55.301672
+1257,3,demo,235,test_test1,"",user_created_repo,2012-09-21 08:25:55.312484
+1258,3,demo,235,test_test1,"",push_local:49f5d4efef5c24a6c82f3f56c750f6bd29d7e65c,2012-09-21 08:27:48.618627
+1259,3,demo,197,CollectionQuery,"",user_commented_revision:c51ad09cfdf5ae85a70c0210febc2692bdd0e0db,2012-09-21 10:14:32.510501
+1260,218,akesterson,236,myfork-CollectionQuery,"",started_following_repo,2012-09-21 14:45:19.861126
+1261,218,akesterson,197,CollectionQuery,"",user_forked_repo:myfork-CollectionQuery,2012-09-21 14:45:19.889428
+1262,218,akesterson,236,myfork-CollectionQuery,"",user_created_fork:myfork-CollectionQuery,2012-09-21 14:45:19.903413
+1263,218,akesterson,236,myfork-CollectionQuery,"",push_local:02029afb80de14455a4226a4a77b760b895aff7e,2012-09-21 14:46:12.771297
+1264,218,akesterson,236,myfork-CollectionQuery,"",push_local:2def3b046d2221aba86f5c9f1adb7259725bc8f5,2012-09-21 14:46:37.060973
+1265,218,akesterson,237,fork-myfork-CollectionQuery,"",started_following_repo,2012-09-21 14:48:05.149741
+1266,218,akesterson,236,myfork-CollectionQuery,"",user_forked_repo:fork-myfork-CollectionQuery,2012-09-21 14:48:05.166032
+1267,218,akesterson,237,fork-myfork-CollectionQuery,"",user_created_fork:fork-myfork-CollectionQuery,2012-09-21 14:48:05.176775
+1268,218,akesterson,237,fork-myfork-CollectionQuery,"",push_local:2300a2cb9c42bf638a156fcbe8cebfed710bd8e6,2012-09-21 14:49:48.45509
+1269,218,akesterson,236,myfork-CollectionQuery,"",user_commented_pull_request:57,2012-09-21 14:51:01.214716
+1270,218,akesterson,236,myfork-CollectionQuery,"",user_commented_pull_request:58,2012-09-21 14:52:20.163131
+1271,218,akesterson,236,myfork-CollectionQuery,"",user_closed_pull_request:58,2012-09-21 14:52:20.17166
+1275,218,akesterson,237,fork-myfork-CollectionQuery,"",push_local:73fcef6d2abe2dc061da59086561c7854266a78c,2012-09-21 14:56:02.339532
+1276,218,akesterson,238,fork2-myfork-CollectionQuery,"",started_following_repo,2012-09-21 15:11:55.391857
+1277,218,akesterson,236,myfork-CollectionQuery,"",user_forked_repo:fork2-myfork-CollectionQuery,2012-09-21 15:11:55.415225
+1278,218,akesterson,238,fork2-myfork-CollectionQuery,"",user_created_fork:fork2-myfork-CollectionQuery,2012-09-21 15:11:55.429075
+1279,218,akesterson,238,fork2-myfork-CollectionQuery,"",push_local:c29afd42fdfc5ef1d786ba0575a72c6a7991887b,2012-09-21 15:12:20.646365
+1280,218,akesterson,236,myfork-CollectionQuery,"",user_commented_pull_request:59,2012-09-21 15:13:11.024446
+1281,218,akesterson,236,myfork-CollectionQuery,"",user_commented_pull_request:59,2012-09-21 15:14:21.074425
+1282,218,akesterson,236,myfork-CollectionQuery,"",user_closed_pull_request:59,2012-09-21 15:14:21.083354
+1283,27,test123,38,code-review-test,"",user_commented_revision:125ff5654b72009b251706d7ee93051853f066b6,2012-09-21 20:57:25.108349
+1284,27,test123,38,code-review-test,"",user_commented_revision:125ff5654b72009b251706d7ee93051853f066b6,2012-09-21 20:58:03.041734
+1285,3,demo,233,clonetest,"",user_commented_revision:8530d8e3eab04997ac4a2a5d8a8b54fa61bb9884,2012-09-23 15:45:55.650268
+1286,3,demo,197,CollectionQuery,"",stopped_following_repo,2012-09-23 15:47:09.082723
+1287,3,demo,197,CollectionQuery,"",started_following_repo,2012-09-23 15:47:10.981914
+1288,3,demo,42,foo,"",user_updated_repo,2012-09-24 08:58:54.191524
+1289,3,demo,1,test,"",user_commented_pull_request:60,2012-09-24 20:09:58.857304
+1290,3,demo,239,w,"",started_following_repo,2012-09-25 05:06:46.054337
+1291,3,demo,239,w,"",user_created_repo,2012-09-25 05:06:46.066475
+1292,3,demo,240,superTest,"",started_following_repo,2012-09-25 05:07:49.733782
+1293,3,demo,240,superTest,"",user_created_repo,2012-09-25 05:07:49.743076
+1294,3,demo,34,a,"",user_updated_repo,2012-09-25 05:16:48.876018
+1295,3,demo,241,fork-a2,"",started_following_repo,2012-09-25 10:40:13.278898
+1296,3,demo,34,a,"",user_forked_repo:fork-a2,2012-09-25 10:40:13.299758
+1297,3,demo,241,fork-a2,"",user_created_fork:fork-a2,2012-09-25 10:40:13.313299
+1298,3,demo,241,fork-a2,"",push_local:7f7ca797917c69ae6cfdab99b428fe67aebd764d,2012-09-25 10:40:41.937706
+1299,3,demo,34,a,"",user_commented_pull_request:61,2012-09-25 10:43:24.263815
+1300,3,demo,34,a,"",user_closed_pull_request:61,2012-09-25 10:43:24.268374
+1301,3,demo,242,testtest,"",started_following_repo,2012-09-25 19:58:30.104927
+1302,3,demo,242,testtest,"",user_created_repo,2012-09-25 19:58:30.114632
+1303,3,demo,242,testtest,50.76.185.37,"push:82cc04e644fb4ac2202d6d38c3f98e1ac583fbd9,0c51202e5f9ac63b0f54eb5229f1850b430c3186,e5b80b681b96b37265d212ff97f655ae97f920c9,bacfc2c685668fb52d13bf438086167929628a4e,19a96e811fcce0440161ac77fa28feb608edfbc6,5a35e5e9d69b0d84199ca2477f596e0684f1d632,643146ee8f6e0798c2a6a6fdbe4dce9eff7776f2,6a0c17c8020c04ab67e055d4c4aec03e29ca7ad6,978d9e35d3bb27a2ef3b2fec04a15492f1d61970,bc1cc5164ef4bad7bbdb17caf14894f92d5d111f,331d14ee58a0530c7fd3c41537b4d247ae9d9ad6,404df8cdf4d474f97420a830d01aee7fbd2ea776,e2930d41a1769be193c2605be14532f3cc2cc162,59ae718e69abd66a3014356bf876f66db2a874b8,96163b25ae03a682d0582d4033649ee58e0fccee,66bada0d3d62a4b4b92de4e3e8d4b02d765a7326,63c17351ec88d5628ba7a2ce01ff08d1f519d7e2,e2949eadc403df055a58c7e0892926e53c38f872,2faef02e93acd948fcce2279d6d6f81da7e3a301,5e919a6fd85fab8b90a8b62d00e463dfcc4d21b6,06ebdbdf1a1b41a7c050d52a022be408a1437951,d37662b26d07c70ad4b4732fac696a7e7fa9685c,e07b358c22daf4e8b45e4ab869c1137c2b7dd0d5,d82075dcdcec0739ddcad0bcb96b671f6a3d3c7b,6866e9be9fde15aaf2a8639a931410089275db45,977fa64f7f1bd526a04cbc701683e3b789221a9c,ca4d6af6c64afeb8d4589002421038314ead455a",2012-09-25 19:59:54.485036
+1304,3,demo,34,a,"",push_local:98b22b6458fc028d5b8beb740d39372e72d8f41f,2012-09-25 21:22:16.676417
+1305,3,demo,34,a,76.112.55.52,pull,2012-09-25 21:26:13.528081
+1306,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-09-26 15:07:40.4856
+1307,3,demo,243,SR3HF2,"",started_following_repo,2012-09-26 16:53:58.744798
+1308,3,demo,243,SR3HF2,"",user_created_repo,2012-09-26 16:53:58.760782
+1309,3,demo,243,SR3HF2,"",push_local:d9cf639344ea84f1a5c57f9ce10c043f1b446e08,2012-09-26 17:05:27.808045
+1310,3,demo,243,SR3HF2,"",user_updated_repo,2012-09-26 17:10:30.366062
+1311,3,demo,243,SR3HF2,"",user_updated_repo,2012-09-26 17:11:11.747863
+1312,3,demo,243,SR3HF2,"",user_updated_repo,2012-09-26 17:11:48.355287
+1313,230,AstrasyA,244,Sonny,"",started_following_repo,2012-09-26 17:43:33.022333
+1314,230,AstrasyA,244,Sonny,"",user_created_repo,2012-09-26 17:43:33.033696
+1315,230,AstrasyA,244,Sonny,"",push_local:9732b5c4fdde74545ca40878530e804712c4e445,2012-09-26 17:44:35.341457
+1316,230,AstrasyA,244,Sonny,50.84.107.130,pull,2012-09-26 17:59:06.387257
+1317,230,AstrasyA,244,Sonny,50.84.107.130,"push:98d933718544ec91d426b6b37f091f6f0501b3dc,334ac777d05f4653887569cb2b68ea7c255cf929",2012-09-26 18:27:38.08683
+1318,230,AstrasyA,244,Sonny,50.84.107.130,push:57eaee8ade535415036f1e9fada104edd1db8389,2012-09-26 18:43:41.784818
+1319,230,AstrasyA,244,Sonny,"",user_commented_revision:57eaee8ade535415036f1e9fada104edd1db8389,2012-09-26 19:34:58.000965
+1320,230,AstrasyA,244,Sonny,"",user_commented_revision:57eaee8ade535415036f1e9fada104edd1db8389,2012-09-26 19:35:02.910074
+1321,230,AstrasyA,244,Sonny,"",user_commented_revision:57eaee8ade535415036f1e9fada104edd1db8389,2012-09-26 19:35:13.500416
+1322,230,AstrasyA,244,Sonny,"",user_commented_revision:57eaee8ade535415036f1e9fada104edd1db8389,2012-09-26 19:37:13.951346
+1323,230,AstrasyA,244,Sonny,"",user_commented_revision:57eaee8ade535415036f1e9fada104edd1db8389,2012-09-26 19:37:19.504417
+1324,3,demo,245,SubrepoTest,"",started_following_repo,2012-09-26 21:03:21.25341
+1325,3,demo,245,SubrepoTest,"",user_created_repo,2012-09-26 21:03:21.266132
+1326,3,demo,246,SubrepoTest-subrepo,"",started_following_repo,2012-09-26 21:04:08.921652
+1327,3,demo,246,SubrepoTest-subrepo,"",user_created_repo,2012-09-26 21:04:08.935788
+1328,230,AstrasyA,244,Sonny,50.84.107.130,"push:4d583f24f1984fd21a8038d60ae510cd8e0d5b8c,8543508ae6664832fe59cd4f6587add1b69c6db3",2012-09-26 22:49:33.613712
+1329,230,AstrasyA,244,Sonny,"",user_commented_revision:4d583f24f1984fd21a8038d60ae510cd8e0d5b8c,2012-09-26 22:54:09.170876
+1330,230,AstrasyA,244,Sonny,"",user_commented_revision:4d583f24f1984fd21a8038d60ae510cd8e0d5b8c,2012-09-26 22:54:21.612237
+1331,1,default,159,group/Test-for-code-review,"",push_local:4471d93e69c9abb14c65ac96a349fd642269a337,2012-09-27 01:26:37.747241
+1332,231,asdf,247,fork-a-fork1,"",started_following_repo,2012-09-27 02:13:08.518743
+1333,231,asdf,90,a-fork1,"",user_forked_repo:fork-a-fork1,2012-09-27 02:13:08.536794
+1334,231,asdf,247,fork-a-fork1,"",user_created_fork:fork-a-fork1,2012-09-27 02:13:08.54404
+1335,3,demo,248,_KBTEST,"",started_following_repo,2012-09-27 06:39:50.386213
+1336,3,demo,248,_KBTEST,"",user_created_repo,2012-09-27 06:39:50.395378
+1337,232,demo123,249,abcdefg,"",started_following_repo,2012-09-27 09:46:45.351423
+1338,232,demo123,127,my-super-rep,"",user_forked_repo:abcdefg,2012-09-27 09:46:45.389459
+1339,232,demo123,249,abcdefg,"",user_created_fork:abcdefg,2012-09-27 09:46:45.396765
+1340,232,demo123,249,abcdefg,"",push_local:ef6c825bc5699b95a31ae3075693b12693a623e2,2012-09-27 09:48:20.630491
+1341,232,demo123,127,my-super-rep,"",user_commented_pull_request:62,2012-09-27 09:50:27.609218
+1342,232,demo123,127,my-super-rep,"",user_commented_pull_request:62,2012-09-27 09:50:44.558277
+1343,232,demo123,127,my-super-rep,"",user_commented_pull_request:62,2012-09-27 09:51:28.711229
+1344,1,default,159,group/Test-for-code-review,"",push_local:f7383651e85c99e62e22e662b137790efa70660c,2012-09-27 11:10:12.51927
+1345,233,mecoder,250,mecodertest,"",started_following_repo,2012-09-27 12:22:22.89884
+1346,233,mecoder,250,mecodertest,"",user_created_repo,2012-09-27 12:22:22.907773
+1347,77,test,251,test1234,"",started_following_repo,2012-09-27 14:22:54.649441
+1348,77,test,251,test1234,"",user_created_repo,2012-09-27 14:22:54.658343
+1349,1,default,86,qbtest,"",push_local:3875428f3bdcab3cfa74759a40182c6a643e4203,2012-09-27 14:49:57.797524
+1350,3,demo,252,Test-repo,"",started_following_repo,2012-09-27 20:14:53.658366
+1351,3,demo,252,Test-repo,"",user_created_repo,2012-09-27 20:14:53.667343
+1352,3,demo,252,Test-repo,"",user_updated_repo,2012-09-27 20:16:25.412816
+1353,235,wryfi,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-09-27 21:40:52.517897
+1354,235,wryfi,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-09-27 21:41:45.427104
+1355,1,default,86,qbtest,"",push_local:bed2107c6d7286a5645a27da26183fe6035e58ef,2012-09-28 01:02:08.90859
+1356,1,default,68,aaa-project,24.237.22.151,pull,2012-09-28 02:40:56.789606
+1357,1,default,68,aaa-project,24.237.22.151,pull,2012-09-28 02:41:08.302352
+1358,1,default,159,group/Test-for-code-review,"",push_local:56533e7a81a9c1c68125dc45ac78c050791fd0a2,2012-09-28 10:06:43.559824
+1359,2,admin,,"","",admin_created_user:ip,2012-09-28 22:22:59.371488
+1360,2,admin,253,ip,"",started_following_repo,2012-09-28 22:23:19.263438
+1361,2,admin,253,ip,"",admin_created_repo,2012-09-28 22:23:19.277556
+1362,2,admin,253,ip,"",admin_updated_repo,2012-09-28 22:24:27.358795
+1363,2,admin,253,ip,"",admin_updated_repo,2012-09-28 22:24:40.194254
+1364,2,admin,253,ip,"",admin_updated_repo,2012-09-28 22:25:03.078491
+1365,2,admin,253,ip,"",admin_updated_repo,2012-09-28 22:25:25.793178
+1366,2,admin,253,ip,"",admin_updated_repo,2012-09-28 22:25:35.065161
+1367,1,default,159,group/Test-for-code-review,"",push_local:6900b7e43c402939ee2d058b8ad94cce31cb6dcd,2012-09-29 00:17:35.860963
+1368,1,default,86,qbtest,"",push_local:73eb33fa1edfc909f673d128bac55bd175aa7559,2012-09-29 02:34:11.898184
+1369,3,demo,68,aaa-project,"",push_local:b4bf1f77b1288a24eb395537319b4f3155cffa71,2012-09-29 15:24:51.088586
+1370,1,default,86,qbtest,"",push_local:f8647a38fa4e07d3a2dc96add8944581b31ebec5,2012-09-29 15:57:39.603006
+1371,1,default,159,group/Test-for-code-review,"",push_local:b5c5b6f1112b43442d09a889212e132a93f5793d,2012-09-29 22:12:56.345343
+1372,1,default,86,qbtest,"",push_local:bd704836ab78a54cfeb4819a781ff6371fad01bc,2012-09-30 14:33:42.755143
+1373,244,dantascione,254,dantest,"",started_following_repo,2012-09-30 23:39:17.975735
+1374,244,dantascione,254,dantest,"",user_created_repo,2012-09-30 23:39:17.98529
+1375,245,charlouze,255,Testtest,"",started_following_repo,2012-10-01 11:19:43.687453
+1376,245,charlouze,255,Testtest,"",user_created_repo,2012-10-01 11:19:43.696384
+1377,245,charlouze,255,Testtest,"",push_local:ac7c39aa78a1d0c799881d699d8565b0816cc178,2012-10-01 11:20:31.326931
+1378,245,charlouze,255,Testtest,"",user_commented_revision:ac7c39aa78a1d0c799881d699d8565b0816cc178,2012-10-01 11:23:58.997838
+1379,245,charlouze,255,Testtest,"",user_commented_revision:ac7c39aa78a1d0c799881d699d8565b0816cc178,2012-10-01 11:24:31.208917
+1380,245,charlouze,255,Testtest,"",user_commented_revision:ac7c39aa78a1d0c799881d699d8565b0816cc178,2012-10-01 11:26:15.205171
+1381,245,charlouze,255,Testtest,"",user_commented_revision:ac7c39aa78a1d0c799881d699d8565b0816cc178,2012-10-01 11:28:48.152422
+1382,5,natosha.bard,256,unity-test-trunk,"",started_following_repo,2012-10-01 12:54:48.012856
+1383,5,natosha.bard,256,unity-test-trunk,"",user_created_repo,2012-10-01 12:54:48.021667
+1384,5,natosha.bard,256,unity-test-trunk,62.116.219.97,push:5dfe4faa4f9adf73694cf8bb5d35ef0accc5d8b5,2012-10-01 12:57:11.503947
+1385,5,natosha.bard,257,fork-unity-test-trunk,"",started_following_repo,2012-10-01 12:57:33.430298
+1386,5,natosha.bard,256,unity-test-trunk,"",user_forked_repo:fork-unity-test-trunk,2012-10-01 12:57:33.441529
+1387,5,natosha.bard,257,fork-unity-test-trunk,"",user_created_fork:fork-unity-test-trunk,2012-10-01 12:57:33.448865
+1388,5,natosha.bard,256,unity-test-trunk,"",user_commented_revision:5dfe4faa4f9adf73694cf8bb5d35ef0accc5d8b5,2012-10-01 12:58:09.430931
+1389,5,natosha.bard,258,fork-unity-test-trunk2,"",started_following_repo,2012-10-01 12:58:19.082884
+1390,5,natosha.bard,256,unity-test-trunk,"",user_forked_repo:fork-unity-test-trunk2,2012-10-01 12:58:19.095714
+1391,5,natosha.bard,258,fork-unity-test-trunk2,"",user_created_fork:fork-unity-test-trunk2,2012-10-01 12:58:19.103935
+1392,5,natosha.bard,257,fork-unity-test-trunk,62.116.219.97,push:591581862d50c7439243a7ef92d7638a5c88e6be,2012-10-01 12:59:48.814795
+1393,5,natosha.bard,257,fork-unity-test-trunk,"",user_commented_revision:591581862d50c7439243a7ef92d7638a5c88e6be,2012-10-01 13:00:18.872593
+1394,5,natosha.bard,259,fork-fork-unity-test-trunk,"",started_following_repo,2012-10-01 13:00:29.763296
+1395,5,natosha.bard,257,fork-unity-test-trunk,"",user_forked_repo:fork-fork-unity-test-trunk,2012-10-01 13:00:29.774818
+1396,5,natosha.bard,259,fork-fork-unity-test-trunk,"",user_created_fork:fork-fork-unity-test-trunk,2012-10-01 13:00:29.782337
+1397,1,default,259,fork-fork-unity-test-trunk,62.116.219.97,pull,2012-10-01 13:00:44.100787
+1398,5,natosha.bard,259,fork-fork-unity-test-trunk,62.116.219.97,push:2d2486009a875d8d98667aef38451560fe93e763,2012-10-01 13:01:55.725508
+1399,5,natosha.bard,260,fork-code-review-test2,"",started_following_repo,2012-10-01 14:08:47.077755
+1400,5,natosha.bard,38,code-review-test,"",user_forked_repo:fork-code-review-test2,2012-10-01 14:08:47.376389
+1401,5,natosha.bard,260,fork-code-review-test2,"",user_created_fork:fork-code-review-test2,2012-10-01 14:08:47.383934
+1402,1,default,260,fork-code-review-test2,62.116.219.97,pull,2012-10-01 14:09:42.365103
+1405,3,demo,261,subrepotest,"",started_following_repo,2012-10-02 10:44:47.066589
+1406,3,demo,261,subrepotest,"",user_created_repo,2012-10-02 10:44:47.075524
+1407,3,demo,262,subrepotest-subrepo,"",started_following_repo,2012-10-02 10:45:45.448349
+1408,3,demo,262,subrepotest-subrepo,"",user_created_repo,2012-10-02 10:45:45.457209
+1409,1,default,68,aaa-project,64.208.49.214,pull,2012-10-02 10:58:33.566475
+1410,3,demo,68,aaa-project,64.208.49.214,push:0c33fa58efc5a5541d8d3f1a3d3b77367e3d94f5,2012-10-02 10:59:53.3117
+1411,3,demo,263,ronka,"",started_following_repo,2012-10-02 20:07:51.923475
+1412,3,demo,263,ronka,"",user_created_repo,2012-10-02 20:07:51.935377
+1413,3,demo,263,ronka,"",push_local:1f91226c774447604a289d0bed9e05f83432fcbe,2012-10-02 20:08:15.849135
+1414,3,demo,264,fork-ronka,"",started_following_repo,2012-10-02 20:10:09.612131
+1415,3,demo,263,ronka,"",user_forked_repo:fork-ronka,2012-10-02 20:10:09.633433
+1416,3,demo,264,fork-ronka,"",user_created_fork:fork-ronka,2012-10-02 20:10:09.647288
+1417,3,demo,264,fork-ronka,"",push_local:4459658481bad662eb53b308fcf2c0f08fc03d9d,2012-10-02 20:11:23.190731
+1418,3,demo,263,ronka,"",user_commented_pull_request:64,2012-10-02 20:12:47.073638
+1419,3,demo,263,ronka,"",user_closed_pull_request:64,2012-10-02 20:12:47.080999
+1420,3,demo,263,ronka,"",user_commented_revision:1f91226c774447604a289d0bed9e05f83432fcbe,2012-10-02 20:17:57.594034
+1421,3,demo,110,django,"",user_commented_revision:129f1ac8484d63c2e61a44fb2a18dd17246c1c4d,2012-10-03 08:51:36.810037
+1422,3,demo,110,django,"",user_commented_revision:129f1ac8484d63c2e61a44fb2a18dd17246c1c4d,2012-10-03 08:52:06.456456
+1423,3,demo,127,my-super-rep,"",push_local:a43642a9b5a96ede38c20f64fc58827a8f20e276,2012-10-03 17:18:49.819491
+1424,5,natosha.bard,265,mercurial-trunk,"",started_following_repo,2012-10-04 11:41:46.868234
+1425,5,natosha.bard,265,mercurial-trunk,"",user_created_repo,2012-10-04 11:41:46.878607
+1427,5,natosha.bard,266,fork-mercurial-trunk,"",started_following_repo,2012-10-04 11:44:29.692682
+1428,5,natosha.bard,265,mercurial-trunk,"",user_forked_repo:fork-mercurial-trunk,2012-10-04 11:44:29.748996
+1429,5,natosha.bard,266,fork-mercurial-trunk,"",user_created_fork:fork-mercurial-trunk,2012-10-04 11:44:29.756625
+1431,246,stilvoid,267,fork-florian-test,"",started_following_repo,2012-10-04 11:54:18.90186
+1432,246,stilvoid,222,florian-test,"",user_forked_repo:fork-florian-test,2012-10-04 11:54:18.931691
+1433,246,stilvoid,267,fork-florian-test,"",user_created_fork:fork-florian-test,2012-10-04 11:54:18.939443
+1434,5,natosha.bard,266,fork-mercurial-trunk,62.116.219.97,push:f11d82b04ca50abb59ad6cfbb16fbd5022f45395,2012-10-04 12:54:36.544979
+1435,3,demo,268,foofootest,"",started_following_repo,2012-10-04 16:59:07.216586
+1436,3,demo,268,foofootest,"",user_created_repo,2012-10-04 16:59:07.226019
+1437,3,demo,268,foofootest,"unknown, 217.91.236.41",push:4bc0645c20363db85c9a5050a85c2c05a1991765,2012-10-04 16:59:59.645044
+1438,3,demo,269,fork-foofootest,"",started_following_repo,2012-10-04 17:00:11.539125
+1439,3,demo,268,foofootest,"",user_forked_repo:fork-foofootest,2012-10-04 17:00:11.631359
+1440,3,demo,269,fork-foofootest,"",user_created_fork:fork-foofootest,2012-10-04 17:00:11.639325
+1442,3,demo,270,fork-fork-code-review-test2-fork,"",started_following_repo,2012-10-04 20:42:33.068317
+1443,3,demo,260,fork-code-review-test2,"",user_forked_repo:fork-fork-code-review-test2-fork,2012-10-04 20:42:33.16905
+1444,3,demo,270,fork-fork-code-review-test2-fork,"",user_created_fork:fork-fork-code-review-test2-fork,2012-10-04 20:42:33.176787
+1445,1,default,68,aaa-project,77.120.252.31,pull,2012-10-05 13:46:02.97144
+1446,3,demo,271,ttt,"",started_following_repo,2012-10-05 14:18:30.594537
+1447,3,demo,271,ttt,"",user_created_repo,2012-10-05 14:18:30.637003
+1448,3,demo,272,tttt,"",started_following_repo,2012-10-05 14:19:42.35258
+1449,3,demo,272,tttt,"",user_created_repo,2012-10-05 14:19:42.364131
+1450,3,demo,273,dotemacs,"",started_following_repo,2012-10-06 06:10:59.614385
+1451,3,demo,273,dotemacs,"",user_created_repo,2012-10-06 06:10:59.624083
+1452,3,demo,273,dotemacs,202.120.38.18,push:9d237512de694be7b30e61b9e0373f0dc373fa24,2012-10-06 06:13:30.793795
+1453,249,shahin,274,kado,"",started_following_repo,2012-10-07 13:13:08.693172
+1454,249,shahin,274,kado,"",user_created_repo,2012-10-07 13:13:08.703331
+1455,249,shahin,274,kado,"",push_local:cb452956879bd22220e2513d7417d239e216813d,2012-10-07 13:14:26.479362
+1456,3,demo,275,TEST,"",started_following_repo,2012-10-07 22:32:01.007959
+1457,3,demo,275,TEST,"",user_created_repo,2012-10-07 22:32:01.017119
+1458,3,demo,276,my-wonderful-project,"",started_following_repo,2012-10-08 10:12:31.462976
+1459,3,demo,276,my-wonderful-project,"",user_created_repo,2012-10-08 10:12:31.474657
+1460,250,dessp,277,fork-fork-aaa-project,"",started_following_repo,2012-10-08 12:34:18.364871
+1461,250,dessp,184,fork-aaa-project,"",user_forked_repo:fork-fork-aaa-project,2012-10-08 12:34:18.383393
+1462,250,dessp,277,fork-fork-aaa-project,"",user_created_fork:fork-fork-aaa-project,2012-10-08 12:34:18.392037
+1463,250,dessp,278,bla,"",started_following_repo,2012-10-08 12:35:59.034211
+1464,250,dessp,278,bla,"",user_created_repo,2012-10-08 12:35:59.046964
+1465,250,dessp,278,bla,"",push_local:d67d6b2cd83c926cc98b7338dd375c0d7dc224ed,2012-10-08 12:36:23.610968
+1466,251,vaueff,279,meinsisses,"",started_following_repo,2012-10-08 17:11:28.309493
+1467,251,vaueff,206,test-sls,"",user_forked_repo:meinsisses,2012-10-08 17:11:28.333732
+1468,251,vaueff,279,meinsisses,"",user_created_fork:meinsisses,2012-10-08 17:11:28.34374
+1469,3,demo,280,HelloWorld,"",started_following_repo,2012-10-08 17:19:57.672859
+1470,3,demo,280,HelloWorld,"",user_created_repo,2012-10-08 17:19:57.685128
+1471,3,demo,127,my-super-rep,"",user_commented_pull_request:62,2012-10-08 17:37:04.554118
+1472,3,demo,127,my-super-rep,"",user_closed_pull_request:62,2012-10-08 17:37:04.56515
+1473,3,demo,249,abcdefg,"",user_commented_revision:ef6c825bc5699b95a31ae3075693b12693a623e2,2012-10-08 17:38:13.042926
+1474,254,yujiro,281,yujirotest,"",started_following_repo,2012-10-09 06:59:18.412429
+1475,254,yujiro,281,yujirotest,"",user_created_repo,2012-10-09 06:59:18.424128
+1476,254,yujiro,282,fork-amabあああ,"",started_following_repo,2012-10-09 07:03:34.289292
+1477,254,yujiro,122,amab,"",user_forked_repo:fork-amabあああ,2012-10-09 07:03:34.308792
+1478,254,yujiro,282,fork-amabあああ,"",user_created_fork:fork-amabあああ,2012-10-09 07:03:34.320104
+1479,254,yujiro,172,go,"",started_following_repo,2012-10-09 07:09:23.727527
+1480,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-10-09 08:44:14.777602
+1481,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-10-09 08:44:52.916854
+1482,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-10-09 08:45:16.42599
+1483,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-10-09 08:45:38.745859
+1484,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-10-09 08:45:52.328248
+1485,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:30853f4bde2f2b6f0a7126392b9b1b4c5ea37e0a,2012-10-09 08:46:01.737145
+1486,255,che,283,test-zh-tw,"",started_following_repo,2012-10-09 10:33:51.971598
+1487,255,che,283,test-zh-tw,"",user_created_repo,2012-10-09 10:33:51.983333
+1488,255,che,283,test-zh-tw,"61.56.13.120, 61.56.15.166","push:ea3aa785b5f361e36ccdbb8201fa809cf0e9b371,bf62637068b19308263d2ed9cdd1b43ae3d88757",2012-10-09 10:36:13.255622
+1489,3,demo,284,fork-django,"",started_following_repo,2012-10-09 20:17:50.071294
+1490,3,demo,110,django,"",user_forked_repo:fork-django,2012-10-09 20:17:57.420156
+1491,3,demo,284,fork-django,"",user_created_fork:fork-django,2012-10-09 20:17:57.434345
+1492,3,demo,285,github-killer,"",started_following_repo,2012-10-09 21:05:48.6309
+1493,3,demo,285,github-killer,"",user_created_repo,2012-10-09 21:05:48.644556
+1494,3,demo,285,github-killer,188.25.172.123,push:df73f912eb7cd583d1fda6a4ef19c1ab1dbc6f92,2012-10-09 21:06:55.345622
+1495,3,demo,285,aloha,"",user_updated_repo,2012-10-09 21:13:16.792012
+1496,3,demo,127,my-super-rep,"",user_commented_revision:5d80e28538141e322b317168e2367fb03178d58c,2012-10-09 22:39:42.201647
+1497,3,demo,286,http-mercurial.selenic.com-hg,"",started_following_repo,2012-10-10 02:37:22.675764
+1498,3,demo,286,http-mercurial.selenic.com-hg,"",user_created_repo,2012-10-10 02:37:22.693066
+1499,3,demo,287,fork-http-mercurial.selenic.com-hg,"",started_following_repo,2012-10-10 02:38:04.918464
+1500,3,demo,286,http-mercurial.selenic.com-hg,"",user_forked_repo:fork-http-mercurial.selenic.com-hg,2012-10-10 02:38:05.085956
+1501,3,demo,287,fork-http-mercurial.selenic.com-hg,"",user_created_fork:fork-http-mercurial.selenic.com-hg,2012-10-10 02:38:05.094152
+1502,3,demo,287,fork-http-mercurial.selenic.com-hg,"",push_local:9ce0ab91b57ea15f5e8569ef7304ce58c9acf477,2012-10-10 02:39:19.103663
+1503,3,demo,286,http-mercurial.selenic.com-hg,"",user_commented_pull_request:66,2012-10-10 02:42:42.025549
+1504,3,demo,286,http-mercurial.selenic.com-hg,"",user_closed_pull_request:66,2012-10-10 02:42:42.034609
+1505,3,demo,287,fork-http-mercurial.selenic.com-hg,"",user_commented_revision:9ce0ab91b57ea15f5e8569ef7304ce58c9acf477,2012-10-10 02:44:45.999905
+1506,3,demo,287,fork-http-mercurial.selenic.com-hg,"",user_commented_revision:9ce0ab91b57ea15f5e8569ef7304ce58c9acf477,2012-10-10 02:44:51.716813
+1507,256,dg_test,288,dgtestrepo,"",started_following_repo,2012-10-10 04:48:48.801476
+1508,256,dg_test,288,dgtestrepo,"",user_created_repo,2012-10-10 04:48:48.813822
+1509,256,dg_test,288,dgtestrepo,59.167.167.230,push:27ab7e76abe80344db6a250d3a8979117907704a,2012-10-10 04:49:46.01297
+1510,256,dg_test,289,fork-dgtestrepo,"",started_following_repo,2012-10-10 04:50:15.108071
+1511,256,dg_test,288,dgtestrepo,"",user_forked_repo:fork-dgtestrepo,2012-10-10 04:50:15.127777
+1512,256,dg_test,289,fork-dgtestrepo,"",user_created_fork:fork-dgtestrepo,2012-10-10 04:50:15.141651
+1513,1,default,289,fork-dgtestrepo,59.167.167.230,pull,2012-10-10 04:50:29.22472
+1514,256,dg_test,289,fork-dgtestrepo,59.167.167.230,push:36da9693f7e90974c46bf83c9abdb4803fac13ff,2012-10-10 04:50:59.757989
+1515,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 04:51:51.635244
+1516,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 04:52:13.711421
+1517,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 04:54:11.518751
+1518,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 06:35:30.952227
+1519,1,default,289,fork-dgtestrepo,59.167.167.230,pull,2012-10-10 12:39:46.774029
+1520,256,dg_test,288,dgtestrepo,59.167.167.230,push:36da9693f7e90974c46bf83c9abdb4803fac13ff,2012-10-10 12:40:26.181044
+1521,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 12:41:54.987689
+1522,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 12:42:03.057669
+1523,256,dg_test,257,fork-unity-test-trunk,"",user_commented_pull_request:63,2012-10-10 12:47:14.298864
+1524,256,dg_test,288,dgtestrepo,"",user_commented_revision:36da9693f7e90974c46bf83c9abdb4803fac13ff,2012-10-10 12:49:30.180636
+1525,256,dg_test,288,dgtestrepo,"",user_commented_pull_request:67,2012-10-10 12:50:11.880937
+1526,256,dg_test,288,dgtestrepo,"",user_closed_pull_request:67,2012-10-10 12:50:11.885641
+1527,256,dg_test,290,dg1,"",started_following_repo,2012-10-10 13:00:18.072553
+1528,256,dg_test,290,dg1,"",user_created_repo,2012-10-10 13:00:18.084695
+1529,256,dg_test,291,fork-dg1,"",started_following_repo,2012-10-10 13:00:31.045836
+1530,256,dg_test,290,dg1,"",user_forked_repo:fork-dg1,2012-10-10 13:00:31.064079
+1531,256,dg_test,291,fork-dg1,"",user_created_fork:fork-dg1,2012-10-10 13:00:31.073556
+1538,256,dg_test,290,dg1,"",user_commented_pull_request:68,2012-10-10 13:04:05.221925
+1532,256,dg_test,290,dg1,59.167.167.230,push:c8996239abf9263cdee5b15234372e3a6e793e44,2012-10-10 13:01:40.777662
+1533,256,dg_test,292,fork-dg11,"",started_following_repo,2012-10-10 13:02:33.177064
+1534,256,dg_test,290,dg1,"",user_forked_repo:fork-dg11,2012-10-10 13:02:33.193349
+1535,256,dg_test,292,fork-dg11,"",user_created_fork:fork-dg11,2012-10-10 13:02:33.207706
+1536,1,default,292,fork-dg11,59.167.167.230,pull,2012-10-10 13:02:44.944887
+1537,256,dg_test,292,fork-dg11,59.167.167.230,push:667a6c5db8f25896ef1cadd1f5138898026f068e,2012-10-10 13:03:21.048735
+1540,256,dg_test,290,dg1,59.167.167.230,push:667a6c5db8f25896ef1cadd1f5138898026f068e,2012-10-10 13:04:47.505397
+1541,256,dg_test,290,dg1,"",user_commented_revision:667a6c5db8f25896ef1cadd1f5138898026f068e,2012-10-10 13:09:03.381076
+1539,256,dg_test,290,dg1,"",user_closed_pull_request:68,2012-10-10 13:04:05.229068
+1542,256,dg_test,288,dgtestrepo,"",user_commented_revision:36da9693f7e90974c46bf83c9abdb4803fac13ff,2012-10-10 13:20:40.664276
+1543,3,demo,38,code-review-test,"",user_commented_revision:6d7db5794e8cad7da042b6ae6238116c6e59a4d2,2012-10-10 21:33:13.589618
+1544,1,default,122,amab,75.128.117.162,pull,2012-10-11 04:26:13.01088
+1545,3,demo,294,fork-aloha,"",started_following_repo,2012-10-11 10:49:27.293629
+1546,3,demo,285,aloha,"",user_forked_repo:fork-aloha,2012-10-11 10:49:27.403491
+1547,3,demo,294,fork-aloha,"",user_created_fork:fork-aloha,2012-10-11 10:49:27.417952
+1548,2,admin,,"","",admin_created_user:user_rc_1,2012-10-11 12:16:48.505211
+1549,2,admin,,"","",admin_created_user:user_rc_2,2012-10-11 12:17:03.054922
+1550,3,demo,34,a,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-10-11 12:17:37.00837
+1551,3,demo,34,a,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-10-11 12:17:46.881784
+1552,3,demo,34,a,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-10-11 12:23:44.417665
+1553,3,demo,122,amab,"",push_local:796c02c902e1098268c622e34e9526b7424c2f0a,2012-10-11 14:24:20.208902
+1554,3,demo,295,test333,"",started_following_repo,2012-10-11 14:33:32.412381
+1555,3,demo,295,test333,"",user_created_repo,2012-10-11 14:33:32.424562
+1556,3,demo,285,aloha,"",push_local:b59aa4775f36a3f553d2d9b9296b9272106b920d,2012-10-11 14:34:31.082462
+1557,3,demo,295,test333,62.153.70.3,"push:ee67bac620f0c1823f863be9e829efd5e3b34f42,a3c1ca826d1cc57132141e70ee7e9f77ecef43fe",2012-10-11 14:36:48.814768
+1558,3,demo,285,aloha,"",push_local:3266a55348986338e8cffb2b8605ba754a54497f,2012-10-11 14:37:57.513628
+1559,3,demo,285,aloha,"",push_local:8411bc8656efd477e0c817ebbbf448fe5ca0d5fa,2012-10-11 14:38:33.492779
+1560,3,demo,285,aloha,"",user_updated_repo,2012-10-11 14:43:08.034646
+1561,3,demo,285,aloha,"",user_updated_repo,2012-10-11 14:43:52.370534
+1562,260,kudtest,296,fork-amab-kud,"",started_following_repo,2012-10-11 15:02:21.701772
+1563,260,kudtest,122,amab,"",user_forked_repo:fork-amab-kud,2012-10-11 15:02:21.721067
+1564,260,kudtest,296,fork-amab-kud,"",user_created_fork:fork-amab-kud,2012-10-11 15:02:21.738079
+1565,3,demo,297,mytest,"",started_following_repo,2012-10-11 17:35:37.595048
+1566,3,demo,297,mytest,"",user_created_repo,2012-10-11 17:35:37.607661
+1567,3,demo,297,mytest,"",push_local:e9c241d5215f8bdfa8b0cabab229952b2740ee98,2012-10-11 17:37:50.954858
+1568,3,demo,297,mytest,"",user_updated_repo,2012-10-11 17:39:13.548988
+1569,37,tester,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-10-11 19:10:15.328087
+1570,37,tester,201,tord,"",user_commented_revision:35b3ebc8e1c23902eb97031f42f666df0835c5be,2012-10-11 19:19:55.616125
+1571,37,tester,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-10-11 19:24:45.086999
+1572,37,tester,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-10-11 19:25:23.183406
+1573,3,demo,43,bar,78.62.141.189,"push:cda1756acf28cae40e103db3792e4ac92c68d65a,3eab1e3601763da599d27541408fca1e12a09b02",2012-10-11 21:35:28.229244
+1574,3,demo,298,a-foo,"",started_following_repo,2012-10-12 15:29:23.1832
+1575,3,demo,298,a-foo,"",user_created_repo,2012-10-12 15:29:23.195979
+1576,3,demo,298,a-foo,"",stopped_following_repo,2012-10-12 15:30:16.975594
+1577,3,demo,298,a-foo,"",started_following_repo,2012-10-12 15:30:19.49313
+1578,3,demo,285,aloha,"",user_commented_revision:8411bc8656efd477e0c817ebbbf448fe5ca0d5fa,2012-10-12 16:04:13.119321
+1579,3,demo,299,test12345,"",started_following_repo,2012-10-13 02:45:09.148642
+1580,3,demo,299,test12345,"",user_created_repo,2012-10-13 02:45:09.15792
+1581,3,demo,300,TestTest,"",started_following_repo,2012-10-13 21:11:45.72971
+1582,3,demo,300,TestTest,"",user_created_repo,2012-10-13 21:11:45.738999
+1583,1,default,68,aaa-project,213.197.188.148,pull,2012-10-15 08:27:45.007378
+1584,3,demo,301,fork-glib,"",started_following_repo,2012-10-16 08:31:44.802094
+1585,3,demo,54,glib,"",user_forked_repo:fork-glib,2012-10-16 08:31:51.952999
+1586,3,demo,301,fork-glib,"",user_created_fork:fork-glib,2012-10-16 08:31:51.967931
+1587,3,demo,285,aloha,78.29.10.71,push:c7feb9671fc451e40758b9ed10496d854ba18a40,2012-10-16 08:34:12.115912
+1588,270,raoul1,302,TestRaoul,"",started_following_repo,2012-10-16 09:24:57.710057
+1589,270,raoul1,302,TestRaoul,"",user_created_repo,2012-10-16 09:24:57.725416
+1590,270,raoul1,302,TestRaoul,"",user_updated_repo,2012-10-16 09:25:13.334125
+1591,270,raoul1,302,TestRaoul,"",user_updated_repo,2012-10-16 09:27:33.159359
+1592,271,raoul2,302,TestRaoul,"",user_updated_repo,2012-10-16 09:30:24.581076
+1593,3,demo,68,aaa-project,"",user_commented_revision:0c33fa58efc5a5541d8d3f1a3d3b77367e3d94f5,2012-10-16 10:14:32.596831
+1594,272,jamesc,303,Magical-Cheese-Repo,"",started_following_repo,2012-10-16 12:10:35.216711
+1595,272,jamesc,303,Magical-Cheese-Repo,"",user_created_repo,2012-10-16 12:10:35.231231
+1596,272,jamesc,304,Cheese-Fork,"",started_following_repo,2012-10-16 12:11:16.231228
+1597,272,jamesc,303,Magical-Cheese-Repo,"",user_forked_repo:Cheese-Fork,2012-10-16 12:11:16.248472
+1598,272,jamesc,304,Cheese-Fork,"",user_created_fork:Cheese-Fork,2012-10-16 12:11:16.2598
+1599,272,jamesc,304,Cheese-Fork,"",push_local:47c7945748501f71737af1e83f5036cd17bde506,2012-10-16 12:13:20.106608
+1600,3,demo,,sproject,"",started_following_repo,2012-10-16 14:07:45.531949
+1601,3,demo,,sproject,"",user_created_repo,2012-10-16 14:07:45.550972
+1602,3,demo,,sproject,"",user_deleted_repo,2012-10-16 14:12:00.222929
+1603,3,demo,35,fork-Something22,"",user_updated_repo,2012-10-16 14:16:04.092997
+1604,3,demo,306,testflow,"",started_following_repo,2012-10-16 18:58:10.988582
+1605,3,demo,306,testflow,"",user_created_repo,2012-10-16 18:58:11.002092
+1665,3,demo,268,foofootest,"",user_updated_repo,2012-10-17 20:41:34.07778
+1666,1,default,266,fork-mercurial-trunk,78.53.4.31,pull,2012-10-18 00:34:23.822311
+1667,1,default,265,mercurial-trunk,78.53.4.31,pull,2012-10-18 00:35:14.549948
+1668,3,demo,34,a,"",push_local:a778c8853f594759661bf6e8fa9933dbd0c06390,2012-10-18 06:49:15.999219
+1669,3,demo,314,Test123654,"",started_following_repo,2012-10-18 09:13:40.498593
+1670,3,demo,314,Test123654,"",user_created_repo,2012-10-18 09:13:40.514075
+1671,3,demo,315,fork-a-foo,"",started_following_repo,2012-10-18 10:55:34.287082
+1672,3,demo,298,a-foo,"",user_forked_repo:fork-a-foo,2012-10-18 10:55:34.304187
+1673,3,demo,315,fork-a-foo,"",user_created_fork:fork-a-foo,2012-10-18 10:55:34.313058
+1674,279,sugia,316,Llskdjfsldkfjl,"",started_following_repo,2012-10-19 08:20:45.345545
+1675,279,sugia,316,Llskdjfsldkfjl,"",user_created_repo,2012-10-19 08:20:45.355759
+1676,279,sugia,316,Llskdjfsldkfjl,"",user_updated_repo,2012-10-19 08:21:47.944967
+1677,3,demo,317,foo-baz,"",started_following_repo,2012-10-19 14:14:29.057573
+1678,3,demo,317,foo-baz,"",user_created_repo,2012-10-19 14:14:29.070434
+1679,3,demo,38,code-review-test,"",user_commented_revision:6d7db5794e8cad7da042b6ae6238116c6e59a4d2,2012-10-19 16:10:33.532318
+1680,3,demo,249,abcdefg,"",user_commented_revision:ef6c825bc5699b95a31ae3075693b12693a623e2,2012-10-19 21:10:05.655859
+1681,3,demo,249,abcdefg,"",user_commented_revision:ef6c825bc5699b95a31ae3075693b12693a623e2,2012-10-19 21:10:17.138554
+1607,3,demo,306,testflow,69.36.131.254,"push:139bacf66d2ae74543bf01385d53434b5e619324,c9828e4c945cbbc0b98ebcb3633960a7495d6526",2012-10-16 20:15:52.423766
+1608,3,demo,307,zippo,"",started_following_repo,2012-10-16 21:57:00.837578
+1609,3,demo,307,zippo,"",user_created_repo,2012-10-16 21:57:00.852928
+1610,3,demo,307,zippo,"",user_updated_repo,2012-10-16 21:58:05.136205
+1611,3,demo,307,zippo,"",user_updated_repo,2012-10-16 21:58:17.135464
+1612,1,default,306,testflow,92.225.130.117,pull,2012-10-16 23:26:14.536761
+1613,3,demo,230,eks1,"",user_commented_revision:7be3eb971e236dd0c1d7b7c4637e7fab9c0a8eff,2012-10-17 10:01:12.801645
+1614,3,demo,230,eks1,"",user_commented_revision:7be3eb971e236dd0c1d7b7c4637e7fab9c0a8eff,2012-10-17 10:01:24.827945
+1615,3,demo,308,fork-abcdefg,"",started_following_repo,2012-10-17 10:46:38.608309
+1616,3,demo,249,abcdefg,"",user_forked_repo:fork-abcdefg,2012-10-17 10:46:38.625094
+1617,3,demo,308,fork-abcdefg,"",user_created_fork:fork-abcdefg,2012-10-17 10:46:38.636906
+1618,3,demo,308,fork-abcdefg,"",push_local:89b42b250956797b6bad5c7edbf873efe1b03d75,2012-10-17 10:47:28.606347
+1619,3,demo,249,abcdefg,"",user_commented_pull_request:69,2012-10-17 10:51:05.868185
+1620,2,admin,249,abcdefg,"",user_commented_pull_request:69,2012-10-17 15:34:01.14742
+1621,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:125ff5654b72009b251706d7ee93051853f066b6,2012-10-17 15:36:37.784768
+1622,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:125ff5654b72009b251706d7ee93051853f066b6,2012-10-17 15:37:36.599064
+1623,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:125ff5654b72009b251706d7ee93051853f066b6,2012-10-17 15:38:14.176552
+1624,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:125ff5654b72009b251706d7ee93051853f066b6,2012-10-17 15:38:41.016672
+1625,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:1bd18c415eec578b5a8cc3bb61c65e554f4674e1,2012-10-17 15:39:31.815756
+1626,276,niels,309,fork-bla,"",started_following_repo,2012-10-17 16:14:16.700471
+1627,276,niels,278,bla,"",user_forked_repo:fork-bla,2012-10-17 16:14:16.804166
+1628,276,niels,309,fork-bla,"",user_created_fork:fork-bla,2012-10-17 16:14:16.818566
+1629,3,demo,249,abcdefg,"",user_commented_pull_request:69,2012-10-17 16:21:09.732638
+1630,3,demo,249,abcdefg,"",user_closed_pull_request:69,2012-10-17 16:21:09.743958
+1631,3,demo,310,ForkMe,"",started_following_repo,2012-10-17 16:39:43.040558
+1632,3,demo,310,ForkMe,"",user_created_repo,2012-10-17 16:39:43.051548
+1633,3,demo,310,ForkMe,20.132.68.148,"push:20867b19ea55d7afa34238c5b42e8f0cf9336fb9,57b41cfbab38011c7d95d929afe8c54d41d229c7,c473af323363c2ce57b1dd3baaf671eabbbe3d9b,11d5db13f3886df26fa9052d664dd99c7ad7a32f,d7d1bb376a19e46ce927520f6863c286aae3d118,160f86cca435674ce9fbd7fb34a7eb1684cd753e,44d8bad99c89ba30af51c0fb96d0c4f5ff679b67,12253658153cfdcab846f64b91f13f56631abae1,ec85db68de4419c2cdaa9e9a4c0cd0a12e161c9e,98e055683c7acd57b6393fffb5bc9ef7fd8386aa,9fd9140573cfccdb795905c962d515fd199024a1",2012-10-17 16:40:52.585834
+1634,3,demo,311,ForkForForkMe,"",started_following_repo,2012-10-17 16:41:54.089171
+1635,3,demo,310,ForkMe,"",user_forked_repo:ForkForForkMe,2012-10-17 16:41:54.105915
+1636,3,demo,311,ForkForForkMe,"",user_created_fork:ForkForForkMe,2012-10-17 16:41:54.119943
+1637,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 16:42:50.019391
+1638,3,demo,311,ForkForForkMe,20.132.68.148,push:7f7a317f656658d18438fa4f2effca0cfe1bee77,2012-10-17 16:43:30.115193
+1639,3,demo,310,ForkMe,"",user_commented_pull_request:70,2012-10-17 16:45:19.643124
+1640,3,demo,310,ForkMe,"",user_closed_pull_request:70,2012-10-17 16:45:19.651818
+1641,1,default,310,ForkMe,20.132.68.148,pull,2012-10-17 16:55:41.290306
+1642,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 17:01:31.007755
+1643,1,default,310,ForkMe,20.132.68.148,pull,2012-10-17 17:02:42.098164
+1644,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 17:05:59.739608
+1645,3,demo,311,ForkForForkMe,20.132.68.148,"push:3ebc10c9b1ea1d26ff9ede63104d6ab24bf6d37d,e2687070a7d4092aafde9343ad79c57c39ec016f",2012-10-17 17:17:21.346216
+1646,1,default,310,ForkMe,20.132.68.148,pull,2012-10-17 17:17:56.010058
+1647,3,demo,312,pepepe,"",started_following_repo,2012-10-17 17:20:14.076678
+1648,3,demo,312,pepepe,"",user_created_repo,2012-10-17 17:20:14.089715
+1649,3,demo,311,ForkForForkMe,20.132.68.148,"push:37298d3eed24e9209bfaf5b43bda114b28d99363,1dc8b7b3029c583069aa80ebc5b570c11cea998b",2012-10-17 17:20:19.128212
+1650,3,demo,312,pepepe,"",push_local:72fc0eb74ecaffd64c3594744f8ad0634f68ab2b,2012-10-17 17:20:35.135261
+1651,3,demo,312,pepepe,"",user_commented_revision:72fc0eb74ecaffd64c3594744f8ad0634f68ab2b,2012-10-17 17:20:53.662433
+1652,3,demo,313,fork-pepepe,"",started_following_repo,2012-10-17 17:21:29.352267
+1653,3,demo,312,pepepe,"",user_forked_repo:fork-pepepe,2012-10-17 17:21:29.36938
+1654,3,demo,313,fork-pepepe,"",user_created_fork:fork-pepepe,2012-10-17 17:21:29.382134
+1655,3,demo,313,fork-pepepe,"",push_local:d96f66d613e7c90004b0be702fa00acb5c64d22b,2012-10-17 17:22:27.210919
+1656,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 17:22:51.855061
+1657,3,demo,312,pepepe,"",user_commented_pull_request:71,2012-10-17 17:23:15.633271
+1658,3,demo,312,pepepe,"",user_closed_pull_request:71,2012-10-17 17:23:15.639775
+1659,1,default,310,ForkMe,20.132.68.148,pull,2012-10-17 19:44:37.643519
+1660,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 19:49:02.152121
+1661,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 19:51:33.051372
+1662,1,default,310,ForkMe,20.132.68.148,pull,2012-10-17 20:02:23.092402
+1663,1,default,311,ForkForForkMe,20.132.68.148,pull,2012-10-17 20:21:12.146576
+1664,3,demo,269,fork-foofootest,"",user_updated_repo,2012-10-17 20:39:09.557172
+1682,3,demo,249,abcdefg,"",user_commented_revision:5d80e28538141e322b317168e2367fb03178d58c,2012-10-19 21:11:07.868323
+1683,280,SylvainC,318,testrcd99,"",started_following_repo,2012-10-19 22:52:25.55997
+1684,280,SylvainC,318,testrcd99,"",user_created_repo,2012-10-19 22:52:25.572046
+1685,281,coderazor,38,code-review-test,"",user_commented_pull_request:65,2012-10-19 23:15:14.542145
+1686,281,coderazor,38,code-review-test,"",user_commented_pull_request:65,2012-10-19 23:16:01.295617
+1687,281,coderazor,38,code-review-test,"",user_commented_pull_request:65,2012-10-19 23:20:08.509514
+1688,281,coderazor,319,fork1-code-review-test,"",started_following_repo,2012-10-20 00:46:43.404342
+1689,281,coderazor,38,code-review-test,"",user_forked_repo:fork1-code-review-test,2012-10-20 00:46:43.464675
+1690,281,coderazor,319,fork1-code-review-test,"",user_created_fork:fork1-code-review-test,2012-10-20 00:46:43.473779
+1691,281,coderazor,319,fork1-code-review-test,"",push_local:98690895f701c1827ea962fe81985b6094a3f00e,2012-10-20 00:48:45.66637
+1692,281,coderazor,319,fork1-code-review-test,"",push_local:b364947ef413a4b2f43bb76ba221d47c1794a8e1,2012-10-20 00:49:40.078971
+1693,281,coderazor,319,fork1-code-review-test,"",user_commented_revision:b364947ef413a4b2f43bb76ba221d47c1794a8e1,2012-10-20 00:50:35.035023
+1694,281,coderazor,38,code-review-test,"",user_commented_pull_request:72,2012-10-20 00:54:57.701596
+1695,281,coderazor,38,code-review-test,"",user_commented_pull_request:72,2012-10-20 00:55:44.681278
+1696,281,coderazor,38,code-review-test,"",user_commented_pull_request:72,2012-10-20 00:55:59.492315
+1697,281,coderazor,319,fork1-code-review-test,"",push_local:e216971a777e3132487405dd2c8e093f66788765,2012-10-20 00:59:53.583102
+1698,281,coderazor,38,code-review-test,"",user_commented_pull_request:72,2012-10-20 01:01:16.602261
+1699,281,coderazor,38,code-review-test,"",user_commented_pull_request:72,2012-10-20 01:03:46.692176
+1700,281,coderazor,38,code-review-test,"",user_commented_pull_request:73,2012-10-20 01:06:18.310904
+1701,281,coderazor,38,code-review-test,"",user_commented_pull_request:72,2012-10-20 01:07:52.891399
+1702,281,coderazor,38,code-review-test,"",user_closed_pull_request:72,2012-10-20 01:07:52.900684
+1703,283,vaidasn,320,svn2git.git,"",started_following_repo,2012-10-20 19:40:57.345453
+1704,283,vaidasn,320,svn2git.git,"",user_created_repo,2012-10-20 19:40:57.365761
+1705,3,demo,321,Mecurial-Test,"",started_following_repo,2012-10-22 06:13:45.980502
+1706,3,demo,321,Mecurial-Test,"",user_created_repo,2012-10-22 06:13:45.997596
+1707,3,demo,321,Mecurial-Test,69.196.152.196,push:e66dfe4e33871da460d3807c8b015863bf7240b7,2012-10-22 06:54:33.247493
+1708,3,demo,321,Mecurial-Test,"",user_updated_repo,2012-10-22 06:56:19.772283
+1709,3,demo,321,Mecurial-Test,69.196.152.196,push:eee6785689defc10df9fe6e8d0921facaab0e176,2012-10-22 07:08:00.585766
+1710,3,demo,321,Mecurial-Test,69.196.152.196,push:fd10c02cfbfbf4a7d7659c67998c6f95da5dc4de,2012-10-22 07:10:59.095472
+1711,254,yujiro,322,fork-code-review-dev,"",started_following_repo,2012-10-22 10:01:47.558754
+1712,254,yujiro,173,code-review-dev,"",user_forked_repo:fork-code-review-dev,2012-10-22 10:01:47.58102
+1713,254,yujiro,322,fork-code-review-dev,"",user_created_fork:fork-code-review-dev,2012-10-22 10:01:47.59189
+1714,285,zza,323,TestZZa,"",started_following_repo,2012-10-22 11:36:34.479105
+1715,285,zza,323,TestZZa,"",user_created_repo,2012-10-22 11:36:34.488683
+1716,285,zza,323,TestZZa,"",user_updated_repo,2012-10-22 11:37:27.008002
+1717,285,zza,323,TestZZa,"",user_updated_repo,2012-10-22 11:37:40.09398
+1718,3,demo,285,aloha,"",push_local:f6aea433e6b6cb05d4af9ac74bac0da5fd09c8ba,2012-10-22 12:50:54.991895
+1719,1,default,321,Mecurial-Test,67.70.161.159,pull,2012-10-22 15:41:30.593105
+1720,3,demo,321,Mecurial-Test,67.70.161.159,push:041e48fd7acad4c27385c27a4789d3d5cc7ccbea,2012-10-22 16:39:38.382409
+1721,1,default,321,Mecurial-Test,69.196.152.196,pull,2012-10-22 23:13:11.713227
+1722,3,demo,325,testkyro,"",started_following_repo,2012-10-23 13:27:46.011096
+1723,3,demo,325,testkyro,"",user_created_repo,2012-10-23 13:27:46.024014
+1724,3,demo,325,testkyro,"",user_updated_repo,2012-10-23 13:28:29.072813
+1725,3,demo,326,ReallyCoolProject,"",started_following_repo,2012-10-23 14:22:15.477077
+1726,3,demo,326,ReallyCoolProject,"",user_created_repo,2012-10-23 14:22:15.492068
+1727,3,demo,326,ReallyCoolProject,"",push_local:262220ea2a60e92577f2193cd9ee4f9707760fb5,2012-10-23 14:23:56.826353
+1728,288,kiall,327,kiall-test,"",started_following_repo,2012-10-23 15:50:27.397495
+1729,288,kiall,327,kiall-test,"",user_created_repo,2012-10-23 15:50:27.42126
+1730,288,kiall,329,fork-aaa-projects,"",started_following_repo,2012-10-23 15:53:23.020591
+1731,288,kiall,68,aaa-project,"",user_forked_repo:fork-aaa-projects,2012-10-23 15:53:23.043059
+1732,288,kiall,329,fork-aaa-projects,"",user_created_fork:fork-aaa-projects,2012-10-23 15:53:23.052289
+1733,288,kiall,328,kiall-nova,"",started_following_repo,2012-10-23 15:53:45.417443
+1734,288,kiall,328,kiall-nova,"",user_created_repo,2012-10-23 15:53:45.434684
+1735,288,kiall,329,fork-aaa-projects,"",push_local:417cac332ab3512a08d5454cfcbffc21471e1f6f,2012-10-23 15:53:50.165591
+1736,3,demo,330,z123,"",started_following_repo,2012-10-23 15:58:30.652495
+1737,3,demo,330,z123,"",user_created_repo,2012-10-23 15:58:30.665854
+1738,3,demo,330,z123,"",push_local:0ba461ee4cd15d51f416b1073d4389574150f5ca,2012-10-23 15:59:26.238194
+1739,3,demo,330,z123,"",user_updated_repo,2012-10-23 16:01:08.667715
+1740,288,kiall,331,kiall-hg,"",started_following_repo,2012-10-23 16:01:24.811434
+1741,288,kiall,331,kiall-hg,"",user_created_repo,2012-10-23 16:01:24.820628
+1742,1,default,330,z123,80.149.98.186,pull,2012-10-23 16:02:35.273406
+1743,3,demo,330,z123,80.149.98.186,push:b89e8c4620b21ec38d159c644b173a1c93efafea,2012-10-23 16:04:08.66449
+1744,3,demo,330,z123,"",user_commented_revision:b89e8c4620b21ec38d159c644b173a1c93efafea,2012-10-23 16:04:55.372793
+1745,2,admin,,"","",admin_updated_user:kiall,2012-10-23 16:05:04.180487
+1746,3,demo,330,z123,"",stopped_following_repo,2012-10-23 16:16:39.414967
+1747,3,demo,34,a,"",push_local:106ab79178979f8e464e5cc8f432347f8c203dde,2012-10-23 16:24:17.669006
+1748,3,demo,332,IAmTesting-this,"",started_following_repo,2012-10-23 18:51:16.88748
+1749,3,demo,332,IAmTesting-this,"",user_created_repo,2012-10-23 18:51:16.902186
+1750,3,demo,333,IAmTesting_this,"",started_following_repo,2012-10-23 19:15:24.347861
+1751,3,demo,333,IAmTesting_this,"",user_created_repo,2012-10-23 19:15:24.361363
+1752,3,demo,333,IAmTesting_this,"",user_updated_repo,2012-10-23 19:35:36.723229
+1753,1,default,333,IAmTesting_this,194.117.18.103,push:31ca1f206de23b0d257dcbb323f9ba94e142ceb5,2012-10-23 19:59:07.360826
+1754,3,demo,334,Test1qwerty,"",started_following_repo,2012-10-23 20:56:13.001385
+1755,3,demo,334,Test1qwerty,"",user_created_repo,2012-10-23 20:56:13.014633
+1756,3,demo,334,Test1qwerty,"",push_local:5957aa6f6f14241663b8b1a0ca050e43c3d3ca27,2012-10-23 20:57:25.88513
+1757,3,demo,335,git,"",started_following_repo,2012-10-23 21:49:35.974797
+1758,3,demo,335,git,"",user_created_repo,2012-10-23 21:49:35.994798
+1759,3,demo,336,fork-cruel-test-2,"",started_following_repo,2012-10-23 23:49:23.770508
+1760,3,demo,174,releases/cruel-test-2,"",user_forked_repo:fork-cruel-test-2,2012-10-23 23:49:23.85229
+1761,3,demo,336,fork-cruel-test-2,"",user_created_fork:fork-cruel-test-2,2012-10-23 23:49:23.867582
+1762,3,demo,337,why-testing,"",started_following_repo,2012-10-23 23:53:03.878941
+1763,3,demo,337,why-testing,"",user_created_repo,2012-10-23 23:53:03.893321
+1764,3,demo,338,temp11,"",started_following_repo,2012-10-24 10:43:46.379754
+1765,3,demo,338,temp11,"",user_created_repo,2012-10-24 10:43:46.391127
+1766,3,demo,339,test123,"",started_following_repo,2012-10-24 14:10:41.927001
+1767,3,demo,339,test123,"",user_created_repo,2012-10-24 14:10:41.936239
+1768,3,demo,339,releases/test123,"",user_updated_repo,2012-10-24 14:10:57.739304
+1769,2,admin,339,releases/test123,146.48.87.66,push:87e9dcd8d3e375c218fdb747da52dc1551a93dc7,2012-10-24 14:12:02.63513
+1770,292,Airframe,340,Testtestac,"",started_following_repo,2012-10-24 17:09:26.37836
+1771,292,Airframe,340,Testtestac,"",user_created_repo,2012-10-24 17:09:26.387917
+1772,293,imbehind,190,rhodecode,"",user_commented_revision:008d9c6f7c92636aaeda6f182bffecac6a464dd3,2012-10-24 20:38:59.535098
+1773,3,demo,341,MicTest,"",started_following_repo,2012-10-24 20:59:34.176289
+1774,3,demo,341,MicTest,"",user_created_repo,2012-10-24 20:59:34.186308
+1775,3,demo,341,MicTest,"",push_local:327bf84d0d633a66f0c7ff4533de2415c9ff5a88,2012-10-24 21:00:28.379598
+1776,295,mhassanzadeh,342,ttest,"",started_following_repo,2012-10-25 10:50:06.001658
+1777,295,mhassanzadeh,342,ttest,"",user_created_repo,2012-10-25 10:50:06.011192
+1807,306,foobar,,foobar,"",user_forked_repo:fork-foobar,2012-10-30 05:39:47.942232
+1809,306,foobar,,foobar,24.67.50.255,push:0e3a7dcdd90bdb2a1f6dbe85e7b574e4f6304207,2012-10-30 05:50:43.083487
+1781,3,demo,,fork-rawr,"",user_deleted_repo,2012-10-25 15:14:56.164313
+1782,3,demo,343,test_git_repo,"",started_following_repo,2012-10-26 13:31:41.642802
+1783,3,demo,343,test_git_repo,"",user_created_repo,2012-10-26 13:31:41.653854
+1784,2,admin,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-10-27 15:38:54.924143
+1785,3,demo,344,sadfasdf,"",started_following_repo,2012-10-28 11:41:22.491275
+1786,3,demo,344,sadfasdf,"",user_created_repo,2012-10-28 11:41:22.503388
+1787,3,demo,345,fork-dvorak,"",started_following_repo,2012-10-29 09:43:08.276759
+1788,3,demo,129,dvorak,"",user_forked_repo:fork-dvorak,2012-10-29 09:43:08.321733
+1789,3,demo,345,fork-dvorak,"",user_created_fork:fork-dvorak,2012-10-29 09:43:08.329436
+1790,3,demo,346,my-test-repo,"",started_following_repo,2012-10-29 09:45:29.684135
+1791,3,demo,346,my-test-repo,"",user_created_repo,2012-10-29 09:45:29.694219
+1792,3,demo,347,fork-aaa-project111,"",started_following_repo,2012-10-29 09:50:58.797507
+1793,3,demo,68,aaa-project,"",user_forked_repo:fork-aaa-project111,2012-10-29 09:50:58.809098
+1794,3,demo,347,fork-aaa-project111,"",user_created_fork:fork-aaa-project111,2012-10-29 09:50:58.816283
+1795,2,admin,348,group/I-am-a-very-long-repository-name,"",started_following_repo,2012-10-29 15:51:18.519038
+1796,2,admin,348,group/I-am-a-very-long-repository-name,"",admin_created_repo,2012-10-29 15:51:18.528651
+1797,3,demo,34,a-very-long-usper-loooong-name-that-is-to-long,"",user_updated_repo,2012-10-29 17:32:06.365281
+1798,3,demo,350,misisko-repo,"",started_following_repo,2012-10-29 20:19:56.180975
+1799,3,demo,350,misisko-repo,"",user_created_repo,2012-10-29 20:19:56.190032
+1800,3,demo,350,misisko-repo,195.168.239.153,push:34bd2e2b6cf2abdb0e026182b9342f95d8f6f440,2012-10-29 20:21:33.067763
+1801,3,demo,350,misisko-repo,"",user_commented_revision:34bd2e2b6cf2abdb0e026182b9342f95d8f6f440,2012-10-29 20:23:32.816207
+1802,2,admin,350,misisko-repo,"",push_local:89a041cce422153ba0716a2beb2b5711ee4f4280,2012-10-29 21:23:56.649892
+1806,306,foobar,,fork-foobar,"",started_following_repo,2012-10-30 05:39:47.86196
+1808,306,foobar,,fork-foobar,"",user_created_fork:fork-foobar,2012-10-30 05:39:47.956653
+1811,306,foobar,,fork-foobar,"",user_deleted_repo,2012-10-30 05:56:06.059093
+1803,306,foobar,,foobar,"",started_following_repo,2012-10-30 05:36:49.915108
+1804,306,foobar,,foobar,"",user_created_repo,2012-10-30 05:36:49.929097
+1805,306,foobar,,foobar,24.67.50.255,push:3b0ad3c9b89dec8bcac5ec8bc9846f307dd5f291,2012-10-30 05:38:30.960676
+1810,306,foobar,,foobar,24.67.50.255,push:5066e223f81d3983b9bc4d959c509bbce326474c,2012-10-30 05:53:14.168715
+1812,306,foobar,,foobar,"",user_deleted_repo,2012-10-30 05:56:35.211293
+1813,3,demo,354,DibaDaba,"",started_following_repo,2012-10-30 10:55:03.068862
+1814,3,demo,354,DibaDaba,"",user_created_repo,2012-10-30 10:55:03.088077
+1815,3,demo,354,DibaDaba,"",push_local:cf41636a602d2a69128cc58fdf441857afb83827,2012-10-30 10:56:16.451197
+1816,3,demo,354,DibaDaba,"",user_updated_repo,2012-10-30 11:05:50.836108
+1817,3,demo,354,DibaDaba,"",push_local:15453a2035510dcefbc8b7f3e45b916003ae4a0f,2012-10-30 11:18:42.79919
+1818,3,demo,355,Test-RohdeCode,"",started_following_repo,2012-10-30 21:07:27.016976
+1819,3,demo,355,Test-RohdeCode,"",user_created_repo,2012-10-30 21:07:27.040381
+1820,3,demo,355,Test-RohdeCode,"",push_local:a2c7c944a5bae039181a84bec8bc89a9bb4ac68c,2012-10-31 10:52:21.038578
+1821,3,demo,355,Test-RohdeCode,"",push_local:303c0051c7a04b5a4f77654d8cfeb09a61322e15,2012-10-31 16:32:16.917289
+1822,3,demo,356,testdzone,"",started_following_repo,2012-11-02 15:51:18.982652
+1823,3,demo,356,testdzone,"",user_created_repo,2012-11-02 15:51:18.994144
+1824,3,demo,357,firs,"",started_following_repo,2012-11-04 00:37:08.689703
+1825,3,demo,357,firs,"",user_created_repo,2012-11-04 00:37:08.700977
+1826,316,theo,358,brightandshiny,"",started_following_repo,2012-11-04 14:17:04.270938
+1827,316,theo,358,brightandshiny,"",user_created_repo,2012-11-04 14:17:04.286049
+1828,316,theo,358,brightandshiny,87.165.13.203,"push:831fd48093c38f64bb541a4c12bec45d27c13f9d,0177264991ad113c2dbeed00716738931bc0222f",2012-11-04 14:21:33.759458
+1829,3,demo,45,group/fork-bootstrap,"",started_following_repo,2012-11-04 18:25:45.459487
+1830,3,demo,45,group/fork-bootstrap,"",stopped_following_repo,2012-11-04 18:25:48.166886
+1831,3,demo,45,group/fork-bootstrap,"",started_following_repo,2012-11-04 18:25:51.905362
+1832,3,demo,45,group/fork-bootstrap,"",stopped_following_repo,2012-11-04 18:25:54.406445
+1833,3,demo,227,fork-aaa-project-2,"",user_commented_revision:bc829c34912709c7d129e5dae9a3e5ff46e77fc7,2012-11-05 18:37:48.772572
+1834,3,demo,227,fork-aaa-project-2,"",user_commented_revision:bc829c34912709c7d129e5dae9a3e5ff46e77fc7,2012-11-05 18:38:42.521316
+1835,3,demo,359,MyUberRepo,"",started_following_repo,2012-11-05 22:04:02.939575
+1836,3,demo,359,MyUberRepo,"",user_created_repo,2012-11-05 22:04:02.95609
+1837,3,demo,359,MyUberRepo,"",push_local:a67ddbdca6d533e0cd43175068cc12f526b2f95f,2012-11-05 22:07:40.846096
+1838,3,demo,360,marese_test,"",started_following_repo,2012-11-05 22:10:35.535744
+1839,3,demo,360,marese_test,"",user_created_repo,2012-11-05 22:10:35.547878
+1840,3,demo,361,test-23,"",started_following_repo,2012-11-06 04:01:46.385817
+1841,3,demo,361,test-23,"",user_created_repo,2012-11-06 04:01:46.410423
+1842,3,demo,361,test-23,"",push_local:7d8547b154a01c7055a09292e871e80f3c6b574b,2012-11-06 04:03:03.320736
+1843,3,demo,361,test-23,"",user_commented_revision:7d8547b154a01c7055a09292e871e80f3c6b574b,2012-11-06 04:07:20.51212
+1844,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-11-06 04:12:51.753053
+1845,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-11-06 04:13:30.727101
+1846,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:fba17a64fa4978bfea19222da5e64a18cfddeecd,2012-11-06 04:15:29.032768
+1847,3,demo,68,aaa-project,"",user_commented_revision:0c33fa58efc5a5541d8d3f1a3d3b77367e3d94f5,2012-11-06 04:17:16.091927
+1848,3,demo,249,abcdefg,"",user_commented_revision:5d80e28538141e322b317168e2367fb03178d58c,2012-11-06 06:10:53.372505
+1849,3,demo,362,Marcin,"",started_following_repo,2012-11-06 10:45:38.505485
+1850,3,demo,362,Marcin,"",user_created_repo,2012-11-06 10:45:38.518969
+1851,3,demo,362,hidden/Marcin,"",user_updated_repo,2012-11-06 10:45:46.281581
+1852,3,demo,177,blah,62.200.22.2,push:b369fb18c8d61fe0d3b14c417466680230cabe46,2012-11-06 10:47:55.655029
+1853,3,demo,99,another-fork-to-check-code-review,"",user_commented_revision:d5422faf648cc589425cd3b0dbf1f6dbf93036a0,2012-11-06 13:12:05.517155
+1854,3,demo,38,code-review-test,"",user_commented_revision:6d7db5794e8cad7da042b6ae6238116c6e59a4d2,2012-11-06 16:12:59.38977
+1855,3,demo,363,utf8-test,"",started_following_repo,2012-11-06 16:52:34.020264
+1856,3,demo,363,utf8-test,"",user_created_repo,2012-11-06 16:52:34.036171
+1857,3,demo,363,utf8-test,178.6.80.143,push:e9e69068b8277c8e857984fb44e54d4e057710bd,2012-11-06 16:54:30.357337
+1858,320,blahblub,364,abc_test,"",started_following_repo,2012-11-06 22:06:45.476725
+1859,320,blahblub,364,abc_test,"",user_created_repo,2012-11-06 22:06:45.488546
+1860,320,blahblub,364,abc_test,81.190.220.154,"push:e05d82d631f4a61972c2c76eb5b473c55ee6133f,dccf54ebc0638183872cfd9d35f0f49aa44ad4bc",2012-11-06 22:07:39.657839
+1861,320,blahblub,364,abc_test,81.190.220.154,push:8ef2f06b68eb25067c4ca3a9c73c89bb681f031b,2012-11-06 22:09:18.572762
+1862,3,demo,365,testing_do,"",started_following_repo,2012-11-07 00:19:56.15291
+1863,3,demo,365,testing_do,"",user_created_repo,2012-11-07 00:19:56.165626
+1864,3,demo,365,testing_do,"",user_updated_repo,2012-11-07 00:21:24.482025
+1865,3,demo,321,Mecurial-Test,"",user_commented_revision:041e48fd7acad4c27385c27a4789d3d5cc7ccbea,2012-11-07 01:16:37.129361
+1866,321,ifco89,284,fork-django,"",user_commented_revision:129f1ac8484d63c2e61a44fb2a18dd17246c1c4d,2012-11-07 01:26:40.887017
+1867,3,demo,284,fork-django,"",user_commented_revision:c5d6f6d6829e730bdddf63c1252304f0c49a9053,2012-11-07 01:27:33.995596
+1868,3,demo,68,aaa-project,"",push_local:5ecd97456233badb3680873dc5b7d4bfb52ede79,2012-11-07 06:43:22.378406
+1869,3,demo,319,fork1-code-review-test,"",user_commented_revision:e216971a777e3132487405dd2c8e093f66788765,2012-11-07 08:44:19.419642
+1870,3,demo,366,test123123,"",started_following_repo,2012-11-07 14:16:13.029479
+1871,3,demo,366,test123123,"",user_created_repo,2012-11-07 14:16:13.04346
+1872,323,didi,364,abc_test,"",user_commented_revision:8ef2f06b68eb25067c4ca3a9c73c89bb681f031b,2012-11-07 15:45:10.378961
+1873,324,tutty,367,fork-bootstrap,"",started_following_repo,2012-11-07 16:00:47.116111
+1874,324,tutty,36,bootstrap,"",user_forked_repo:fork-bootstrap,2012-11-07 16:00:48.378051
+1875,324,tutty,367,fork-bootstrap,"",user_created_fork:fork-bootstrap,2012-11-07 16:00:48.393002
+1876,3,demo,68,aaa-project,"",user_commented_revision:b4bf1f77b1288a24eb395537319b4f3155cffa71,2012-11-08 18:41:07.016059
+1877,3,demo,68,aaa-project,"",user_commented_revision:b4bf1f77b1288a24eb395537319b4f3155cffa71,2012-11-08 18:41:34.311311
+1878,3,demo,68,aaa-project,"",user_commented_revision:b4bf1f77b1288a24eb395537319b4f3155cffa71,2012-11-08 18:41:38.071834
+1879,3,demo,368,Repotest,"",started_following_repo,2012-11-09 10:40:40.804085
+1880,3,demo,368,Repotest,"",user_created_repo,2012-11-09 10:40:40.813114
+1881,3,demo,369,fork-HelloWorld,"",started_following_repo,2012-11-10 19:57:46.238558
+1882,3,demo,280,HelloWorld,"",user_forked_repo:fork-HelloWorld,2012-11-10 19:57:46.306001
+1883,3,demo,369,fork-HelloWorld,"",user_created_fork:fork-HelloWorld,2012-11-10 19:57:46.320675
+1884,3,demo,370,fork-django-more,"",started_following_repo,2012-11-11 01:18:51.709667
+1885,3,demo,110,django,"",user_forked_repo:fork-django-more,2012-11-11 01:18:58.716934
+1886,3,demo,370,fork-django-more,"",user_created_fork:fork-django-more,2012-11-11 01:18:58.731127
+1887,3,demo,371,hgh,"",started_following_repo,2012-11-12 06:07:06.509759
+1888,3,demo,371,hgh,"",user_created_repo,2012-11-12 06:07:06.525795
+1889,3,demo,371,hgh,"",push_local:b43f437976ff61a8fa37709f105091ffd00bbd2c,2012-11-12 06:08:34.009007
+1890,3,demo,371,hgh,"",push_local:93c5a23d3cbde4c6dbd21d722eb1beff90a1d67c,2012-11-12 06:09:44.749181
+1891,3,demo,371,hgh,"",push_local:d3e97cf131b0feaa586272d88e71e97a65564806,2012-11-12 06:13:04.240444
+1892,336,demodemo,373,test-for,"",started_following_repo,2012-11-12 18:29:12.02868
+1893,336,demodemo,373,test-for,"",user_created_repo,2012-11-12 18:29:12.041121
+1894,336,demodemo,374,fork-test-for,"",started_following_repo,2012-11-12 18:29:25.869055
+1895,336,demodemo,373,test-for,"",user_forked_repo:fork-test-for,2012-11-12 18:29:25.922561
+1896,336,demodemo,374,fork-test-for,"",user_created_fork:fork-test-for,2012-11-12 18:29:25.936869
+1897,336,demodemo,374,fork-test-for,101.140.96.42,push:a7495b86f0bfc299740cdbfbbca1b9d5ca1f62de,2012-11-12 18:31:51.107494
+1898,2,admin,376,linux-kernel,"",started_following_repo,2012-11-13 22:14:17.466937
+1899,342,gauravve,377,myrep,"",started_following_repo,2012-11-14 12:12:46.280751
+1900,342,gauravve,377,myrep,"",user_created_repo,2012-11-14 12:12:46.296606
+1901,343,yasser.a,125,test-to-end-all-tests,"",user_commented_revision:fb4eb182028a674ae250430c04305e9b3fbe508e,2012-11-14 16:17:28.970017
+772,2,admin,,cruel-test,"",started_following_repo,2012-08-28 10:23:44.560576
+1902,254,yujiro,378,arai-new-repo,"",started_following_repo,2012-11-15 02:39:50.649631
+1903,254,yujiro,378,arai-new-repo,"",user_created_repo,2012-11-15 02:39:50.667177
+1904,254,yujiro,378,arai-new-repo,182.171.245.184,push:6beb6da3b0e27eb1401090e122f7675d56e07fc1,2012-11-15 02:45:25.207338
+1905,3,demo,381,test01012145,"",started_following_repo,2012-11-16 13:02:38.980282
+1906,3,demo,381,test01012145,"",user_created_repo,2012-11-16 13:02:38.989119
+1907,3,demo,381,test01012145,"",push_local:225a9898957de5f78ac2aa8e4d46a80eed3ee6d5,2012-11-16 13:04:53.384353
+1908,3,demo,382,aaa-repo-fork,"",started_following_repo,2012-11-17 12:58:42.919876
+1909,3,demo,67,group/aaa-repo,"",user_forked_repo:aaa-repo-fork,2012-11-17 12:58:42.981111
+1910,3,demo,382,aaa-repo-fork,"",user_created_fork:aaa-repo-fork,2012-11-17 12:58:42.992071
+1911,3,demo,382,aaa-repo-fork,"",user_updated_repo,2012-11-17 12:59:32.084662
+1912,2,admin,,"","",admin_updated_user:kiall,2012-11-17 21:52:15.776253
+1913,3,demo,268,foofootest,"",user_commented_revision:4bc0645c20363db85c9a5050a85c2c05a1991765,2012-11-20 12:19:44.614295
+1914,3,demo,383,aaa-test-repo,"",started_following_repo,2012-11-20 12:27:16.120325
+1915,3,demo,383,aaa-test-repo,"",user_created_repo,2012-11-20 12:27:16.130553
+1916,3,demo,383,aaa-test-repo,"",push_local:fb2f5ae9a806abe4cb03fe7b11d4ad21a836f7b6,2012-11-20 12:27:41.98988
+1917,3,demo,384,aaa-test-repo2,"",started_following_repo,2012-11-20 12:31:43.009679
+1918,3,demo,384,aaa-test-repo2,"",user_created_repo,2012-11-20 12:31:43.019015
+1919,3,demo,384,aaa-test-repo2,"",push_local:83a7be8f9d651912ee343067bd392678fbebe3e8,2012-11-20 12:32:34.336741
+1920,3,demo,385,aaa-test-repo2-fork,"",started_following_repo,2012-11-20 12:58:25.715274
+1921,3,demo,384,aaa-test-repo2,"",user_forked_repo:aaa-test-repo2-fork,2012-11-20 12:58:25.729374
+1922,3,demo,385,aaa-test-repo2-fork,"",user_created_fork:aaa-test-repo2-fork,2012-11-20 12:58:25.737204
+1923,3,demo,385,aaa-test-repo2-fork,"",push_local:af794c0c7cf39be92c6b59bb8b7871d313b1d248,2012-11-20 12:58:59.668087
+1924,3,demo,384,aaa-test-repo2,"",user_commented_pull_request:74,2012-11-20 13:25:32.773937
+1925,3,demo,384,aaa-test-repo2,"",user_commented_pull_request:74,2012-11-20 13:33:39.823854
+1926,3,demo,384,aaa-test-repo2,"",user_closed_pull_request:74,2012-11-20 13:33:39.828583
+1927,3,demo,385,aaa-test-repo2-fork,"",push_local:67120aaf6ddd81cd2aabde6adc22e7ca90d15d12,2012-11-20 18:41:48.280705
+1928,3,demo,384,aaa-test-repo2,81.178.131.20,"push:af794c0c7cf39be92c6b59bb8b7871d313b1d248,67120aaf6ddd81cd2aabde6adc22e7ca90d15d12",2012-11-20 20:01:34.101349
+1929,3,demo,385,aaa-test-repo2-fork,"",push_local:5ece07f12c61645049e7d2d3d33797942b16cba5,2012-11-20 20:10:49.816215
+1930,3,demo,385,aaa-test-repo2-fork,"",push_local:fd8a6936e27e3c31684155790f78effb33e6cc5c,2012-11-20 20:24:06.305599
+1931,3,demo,384,aaa-test-repo2,81.178.131.20,push:5ece07f12c61645049e7d2d3d33797942b16cba5,2012-11-20 20:49:00.180794
+1932,3,demo,384,aaa-test-repo2,81.178.131.20,push:fd8a6936e27e3c31684155790f78effb33e6cc5c,2012-11-20 21:28:16.281326
+1933,3,demo,384,aaa-test-repo2,"",user_commented_pull_request:75,2012-11-21 01:38:22.165876
+1934,3,demo,384,aaa-test-repo2,"",user_closed_pull_request:75,2012-11-21 01:38:22.175975
+1935,3,demo,385,aaa-test-repo2-fork,"",push_local:586be5737b6b185d37ab249e028470417698b44d,2012-11-21 01:42:21.540009
+1936,3,demo,385,aaa-test-repo2-fork,"",push_local:b836457cf5b358555c26193e67770d56e2345f4c,2012-11-21 01:50:03.178941
+1937,3,demo,384,aaa-test-repo2,81.178.131.20,"push:586be5737b6b185d37ab249e028470417698b44d,b836457cf5b358555c26193e67770d56e2345f4c",2012-11-21 02:01:01.40853
+1938,3,demo,34,a-very-long-usper-loooong-name-that-is-to-long,"",push_local:ff712eae5a99bede2bf710d86f86b0b534fbf089,2012-11-21 02:09:50.150788
+1939,3,demo,68,aaa-project,"",user_commented_revision:b4bf1f77b1288a24eb395537319b4f3155cffa71,2012-11-21 08:36:43.456525
+1940,3,demo,384,aaa-test-repo2,"",user_commented_revision:b836457cf5b358555c26193e67770d56e2345f4c,2012-11-21 12:03:06.317362
+1941,3,demo,385,aaa-test-repo2-fork,"",push_local:d38a759ba1f79489db44854c9ddf06986f7e2b72,2012-11-21 12:17:04.303085
+1942,3,demo,385,aaa-test-repo2-fork,"",user_commented_revision:d38a759ba1f79489db44854c9ddf06986f7e2b72,2012-11-21 12:17:47.536221
+1943,3,demo,34,a-very-long-usper-loooong-name-that-is-to-long,"",user_commented_revision:f437e821a406d35b1e231c5a81e82853f8ed6436,2012-11-21 14:27:15.134067
+1944,3,demo,386,I-am-a-very-long-repository-name-fork,"",started_following_repo,2012-11-21 15:31:17.25368
+1945,3,demo,348,group/I-am-a-very-long-repository-name,"",user_forked_repo:I-am-a-very-long-repository-name-fork,2012-11-21 15:31:17.271794
+1946,3,demo,386,I-am-a-very-long-repository-name-fork,"",user_created_fork:I-am-a-very-long-repository-name-fork,2012-11-21 15:31:17.283533
+1947,3,demo,385,aaa-test-repo2-fork,"",user_commented_revision:d38a759ba1f79489db44854c9ddf06986f7e2b72,2012-11-21 16:35:17.484282
+1948,3,demo,385,aaa-test-repo2-fork,"",push_local:96abb74e8e96a81a7dc5d472c70158da5318a623,2012-11-21 16:35:50.796373
+1949,3,demo,385,aaa-test-repo2-fork,"",user_commented_revision:96abb74e8e96a81a7dc5d472c70158da5318a623,2012-11-21 16:36:25.797019
+1950,2,admin,68,aaa-project,"",push_local:7db38281c68497cee8dc4510d77e03fbb4d6c395,2012-11-21 18:34:44.97296
+1951,2,admin,68,aaa-project,"",push_local:de5af01cc0f75ab84966b11806c343000eeeb5d8,2012-11-21 18:36:10.869973
+1952,3,demo,387,new-group-test-repos1,"",started_following_repo,2012-11-21 21:05:48.945007
+1953,3,demo,387,new-group-test-repos1,"",user_created_repo,2012-11-21 21:05:48.953815
+1954,3,demo,388,Logarithmic,"",started_following_repo,2012-11-22 11:30:39.744224
+1955,3,demo,388,Logarithmic,"",user_created_repo,2012-11-22 11:30:39.761413
+1956,3,demo,388,Logarithmic,"",push_local:72dd1a9ceecfcf9832e41dd66d355d5c63546b67,2012-11-22 11:35:30.523613
+1957,3,demo,388,Logarithmic,"",push_local:fdb124c2a063a7ce15a1b3e42cdfa30a5bf19fcb,2012-11-22 11:52:07.237429
+1958,364,hs_rcdemo,389,hsio_test,"",started_following_repo,2012-11-22 14:32:05.148189
+1959,364,hs_rcdemo,389,hsio_test,"",user_created_repo,2012-11-22 14:32:05.163464
+1960,364,hs_rcdemo,389,hsio_test,"",push_local:8777c89c909bfba8eaae07cf596cce85190d7789,2012-11-22 14:33:30.066876
+1961,364,hs_rcdemo,389,hsio_test,"",user_updated_repo,2012-11-22 14:45:19.518307
+1962,3,demo,390,ycxs,"",started_following_repo,2012-11-23 08:00:34.880042
+1963,3,demo,390,ycxs,"",user_created_repo,2012-11-23 08:00:34.889356
+1964,3,demo,110,django,"",user_commented_revision:129f1ac8484d63c2e61a44fb2a18dd17246c1c4d,2012-11-23 22:54:06.842764
+1965,3,demo,68,aaa-project,"",user_commented_revision:de5af01cc0f75ab84966b11806c343000eeeb5d8,2012-11-25 18:05:15.626452
+1966,373,roger,391,roger,"",started_following_repo,2012-11-27 10:19:17.098535
+1967,373,roger,391,roger,"",user_created_repo,2012-11-27 10:19:17.110165
+1968,373,roger,391,roger,195.67.17.194,push:3deefa3d90eb91fbfe7c7d97579842d26ffab526,2012-11-27 10:20:14.448706
+1969,373,roger,394,roger-fork,"",started_following_repo,2012-11-27 10:44:06.565014
+1970,373,roger,391,roger,"",user_forked_repo:roger-fork,2012-11-27 10:44:06.582941
+1971,373,roger,394,roger-fork,"",user_created_fork:roger-fork,2012-11-27 10:44:06.591697
+1972,373,roger,394,roger-fork,195.67.17.194,push:ef5703075e9bd3b498d0398be689c6ecc2aa68f2,2012-11-27 10:46:44.898629
+1973,373,roger,391,roger,"",user_commented_pull_request:77,2012-11-27 10:49:00.02305
+1974,373,roger,394,roger-fork,195.67.17.194,push:1f3690bd18da15796e2379ea2f82d510dbbfd634,2012-11-27 10:52:51.819376
+1975,373,roger,391,roger,"",user_commented_pull_request:78,2012-11-27 10:55:01.836362
+1976,373,roger,391,roger,"",user_closed_pull_request:78,2012-11-27 10:55:01.843519
+1977,373,roger,391,roger,"",user_commented_pull_request:77,2012-11-27 10:55:43.206231
+1978,373,roger,391,roger,"",user_updated_repo,2012-11-27 10:56:53.018675
+1979,373,roger,391,roger,"",user_updated_repo,2012-11-27 11:02:27.558462
+1980,373,roger,394,roger-fork,195.67.17.194,push:3a6d267941eeb0a8cd7be18d619d6fe370216f00,2012-11-27 11:04:37.480288
+1981,374,roger2,391,roger,"",user_commented_pull_request:79,2012-11-27 11:05:56.858694
+1982,374,roger2,391,roger,"",user_commented_pull_request:79,2012-11-27 11:06:02.182164
+1983,374,roger2,391,roger,"",user_commented_pull_request:79,2012-11-27 11:06:38.109374
+1984,374,roger2,391,roger,"",user_commented_pull_request:79,2012-11-27 11:07:34.474704
+1985,374,roger2,391,roger,"",user_closed_pull_request:79,2012-11-27 11:07:34.485308
+1986,373,roger,394,roger-fork,195.67.17.194,push:12cd31bebc666a85f8a0f0742093d5cd9ea585c4,2012-11-27 11:09:08.04061
+1987,373,roger,395,rogerfork2,"",started_following_repo,2012-11-27 11:11:04.332674
+1988,373,roger,391,roger,"",user_forked_repo:rogerfork2,2012-11-27 11:11:04.348686
+1989,373,roger,395,rogerfork2,"",user_created_fork:rogerfork2,2012-11-27 11:11:04.359388
+1990,373,roger,395,rogerfork2,195.67.17.194,"push:ef5703075e9bd3b498d0398be689c6ecc2aa68f2,1f3690bd18da15796e2379ea2f82d510dbbfd634,3a6d267941eeb0a8cd7be18d619d6fe370216f00,12cd31bebc666a85f8a0f0742093d5cd9ea585c4",2012-11-27 11:11:18.920484
+1991,373,roger,391,roger,"",user_commented_pull_request:80,2012-11-27 11:12:23.228709
+1992,373,roger,391,roger,"",user_commented_pull_request:80,2012-11-27 11:12:55.017541
+1993,373,roger,391,roger,"",user_closed_pull_request:80,2012-11-27 11:12:55.027814
+1994,3,demo,385,aaa-test-repo2-fork,"",push_local:872eeeb3a8a2783129bfd7d988323f5addac7ab1,2012-11-27 11:48:48.630984
+1995,3,demo,384,aaa-test-repo2,"",user_commented_pull_request:76,2012-11-27 11:50:01.915064
+1996,3,demo,384,aaa-test-repo2,"",user_commented_pull_request:76,2012-11-27 11:50:12.991796
+1997,3,demo,384,aaa-test-repo2,"",user_closed_pull_request:76,2012-11-27 11:50:12.99591
+1998,3,demo,396,тестовый-сервер,"",started_following_repo,2012-11-28 07:53:39.536654
+1999,3,demo,396,тестовый-сервер,"",user_created_repo,2012-11-28 07:53:39.550591
+2000,3,demo,397,simple-dev-fork,"",started_following_repo,2012-11-28 09:13:25.051649
+2001,3,demo,210,simple-dev,"",user_forked_repo:simple-dev-fork,2012-11-28 09:13:25.106104
+2002,3,demo,397,simple-dev-fork,"",user_created_fork:simple-dev-fork,2012-11-28 09:13:25.114908
+2003,3,demo,385,aaa-test-repo2-fork,"",user_commented_revision:96abb74e8e96a81a7dc5d472c70158da5318a623,2012-11-28 12:24:53.581825
+2004,3,demo,385,aaa-test-repo2-fork,"",user_commented_revision:872eeeb3a8a2783129bfd7d988323f5addac7ab1,2012-11-28 12:25:16.961119
+2005,3,demo,398,aaa-project-fork-fork,"",started_following_repo,2012-11-29 14:08:09.275983
+2006,3,demo,68,aaa-project,"",user_forked_repo:aaa-project-fork-fork,2012-11-29 14:08:09.413733
+2007,3,demo,398,aaa-project-fork-fork,"",user_created_fork:aaa-project-fork-fork,2012-11-29 14:08:09.427854
+2008,3,demo,68,aaa-project,"",user_updated_repo,2012-11-29 14:09:10.934065
+2009,3,demo,68,aaa-project,"",user_updated_repo,2012-11-29 14:09:24.706033
+2010,3,demo,399,tra,"",started_following_repo,2012-11-29 14:11:48.839858
+2011,3,demo,399,tra,"",user_created_repo,2012-11-29 14:11:48.85278
+2012,3,demo,42,foo,"",user_commented_revision:1b9a14ca778d48ebef5643f7aa2ce142f3a27617,2012-11-29 20:05:08.767523
+2013,3,demo,42,foo,"",push_local:bb4dab01c0bd4241b903a4dc84a79c70a01b0f6b,2012-11-29 20:06:18.477822
+2014,1,default,159,group/Test-for-code-review,"",push_local:eaca071ebe45eaf5fc6631b15d7cf079a0d5aaf1,2012-11-29 23:52:50.718898
+2015,375,paul,400,hophop,"",started_following_repo,2012-11-30 08:50:31.403305
+2016,375,paul,400,hophop,"",user_created_repo,2012-11-30 08:50:31.416463
+2017,375,paul,400,hophop,"",push_local:558613aaa69def5e130b8f9583de37f911a80dd8,2012-11-30 08:51:37.956737
+2018,375,paul,401,flepflep,"",started_following_repo,2012-11-30 08:52:56.146141
+2019,375,paul,400,hophop,"",user_forked_repo:flepflep,2012-11-30 08:52:56.162784
+2020,375,paul,401,flepflep,"",user_created_fork:flepflep,2012-11-30 08:52:56.171068
+2021,375,paul,400,hophop,213.154.235.68,push:0c64f45ec8f43a5267d593a2af65c3b9965c312c,2012-11-30 08:54:23.238053
+2022,376,mrntest,402,mrntest,"",started_following_repo,2012-11-30 10:10:14.463671
+2023,376,mrntest,402,mrntest,"",user_created_repo,2012-11-30 10:10:14.475507
+2024,1,default,159,group/Test-for-code-review,"",push_local:da1270d35961130d6fe12ba4777f412dabb533f7,2012-11-30 18:39:23.68212
+2025,3,demo,177,blah,"",user_updated_repo,2012-11-30 21:43:04.925873
+2026,1,default,159,group/Test-for-code-review,"",push_local:3bfcf2015dcc85f3334a4439099b1f4fe2ab87cc,2012-12-01 04:40:25.326381
+2027,3,demo,385,aaa-test-repo2-fork,"",push_local:8caf16b59f0ac54d002daeaf54208319a055829a,2012-12-01 12:40:27.987379
+2028,3,demo,385,aaa-test-repo2-fork,"",user_commented_revision:8caf16b59f0ac54d002daeaf54208319a055829a,2012-12-01 12:40:35.315142
+2029,3,demo,403,aaa-test-repo2-fork1,"",started_following_repo,2012-12-01 12:43:30.698526
+2030,3,demo,384,aaa-test-repo2,"",user_forked_repo:aaa-test-repo2-fork1,2012-12-01 12:43:30.7817
+2031,3,demo,403,aaa-test-repo2-fork1,"",user_created_fork:aaa-test-repo2-fork1,2012-12-01 12:43:30.789849
+2032,3,demo,403,aaa-test-repo2-fork1,"",push_local:7d46cab71f090b82e40f82aa164a237bffae8ca8,2012-12-01 12:43:54.847211
+2033,3,demo,384,aaa-test-repo2,"",user_commented_pull_request:81,2012-12-01 12:45:15.004235
+2034,3,demo,384,aaa-test-repo2,"",user_closed_pull_request:81,2012-12-01 12:45:15.01175
+2035,1,default,159,group/Test-for-code-review,"",push_local:88f2b300127f7249d6b2ac03d4e368cd7a043073,2012-12-02 06:49:39.201427
+2036,380,han,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-12-03 05:54:40.845102
+2037,380,han,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-12-03 05:54:52.733614
+2038,380,han,42,foo,"",user_commented_revision:ca953e8c5c1ada44e9a8f945a0a6999d2f44310d,2012-12-03 05:55:06.032348
+2039,380,han,184,fork-aaa-project,"",user_commented_revision:e3fef0be8dc20eb1fa68fc45292d9d66de1cc67f,2012-12-03 05:55:57.293424
+2040,380,han,184,fork-aaa-project,"",user_commented_revision:e3fef0be8dc20eb1fa68fc45292d9d66de1cc67f,2012-12-03 05:56:05.503132
+2041,380,han,184,fork-aaa-project,"",user_commented_revision:e3fef0be8dc20eb1fa68fc45292d9d66de1cc67f,2012-12-03 05:56:11.78452
+2042,381,tmilos,265,mercurial-trunk,"",user_commented_revision:b3f0f9a39c4e1d0250048cd803ab03542d6f140a,2012-12-03 08:18:24.126434
+2043,381,tmilos,265,mercurial-trunk,"",user_commented_revision:b3f0f9a39c4e1d0250048cd803ab03542d6f140a,2012-12-03 08:18:53.783535
+2044,3,demo,68,aaa-project,"",user_commented_revision:0c33fa58efc5a5541d8d3f1a3d3b77367e3d94f5,2012-12-03 13:51:26.584571
+2045,3,demo,384,aaa-test-repo2,"",user_updated_repo,2012-12-03 13:59:51.134475
+2046,3,demo,68,aaa-project,"",user_updated_repo,2012-12-03 14:12:42.587904
+2047,3,demo,404,Test-Repo-5,"",started_following_repo,2012-12-03 19:58:28.17924
+2048,3,demo,404,Test-Repo-5,"",admin_created_repo,2012-12-03 19:58:28.215537
+2049,3,demo,382,aaa-repo-fork,"",push_local:d49133c59d2b74bf5754fab639520fe0f15f660b,2012-12-03 23:45:38.954154
+2050,5,natosha.bard,405,test-largefiles-push,"",started_following_repo,2012-12-04 14:15:02.062567
+2051,5,natosha.bard,405,test-largefiles-push,"",admin_created_repo,2012-12-04 14:15:02.07345
+2052,5,natosha.bard,405,test-largefiles-push,62.116.219.97,push:3055a4c8ccb9b695a7973aa25aa118b0dde122e4,2012-12-04 14:15:19.101956
+2053,5,natosha.bard,405,test-largefiles-push,62.116.219.97,push:88adc5944c74488164ae575511429ed582a72e17,2012-12-04 14:40:10.373812
+2054,384,test1234,406,test123456,"",started_following_repo,2012-12-04 16:07:07.967514
+2055,384,test1234,406,test123456,"",admin_created_repo,2012-12-04 16:07:07.987393
+2058,5,natosha.bard,408,test-repo-natosha,"",started_following_repo,2012-12-04 20:41:39.763055
+2059,5,natosha.bard,408,test-repo-natosha,"",admin_created_repo,2012-12-04 20:41:39.775062
+2056,5,natosha.bard,,hg,"",started_following_repo,2012-12-04 20:40:00.327829
+2057,5,natosha.bard,,hg,"",admin_created_repo,2012-12-04 20:40:00.342796
+2060,5,natosha.bard,,hg,"",user_deleted_repo,2012-12-04 20:42:03.236535
+2062,5,natosha.bard,409,test-repo-natosha-fork,"",started_following_repo,2012-12-04 20:43:25.363199
+2063,5,natosha.bard,408,test-repo-natosha,"",user_forked_repo:test-repo-natosha-fork,2012-12-04 20:43:25.413303
+2064,5,natosha.bard,409,test-repo-natosha-fork,"",user_created_fork:test-repo-natosha-fork,2012-12-04 20:43:25.421503
+2065,5,natosha.bard,409,test-repo-natosha-fork,62.116.219.97,"push:132a288f32d5b70a9170e504028c693cfffc5c39,fac6d36d04cb1838cd10bdcecd487567787fb853,e83c482c6c5fd60f14d1a5f5cf9b4f7b2a2eb3cb,ce2c709a8e908747376a3fda6059c1f81de321e7,45bd0cd7ca04f8cda0a61cddded8838dd312675a,35ba170c0f82dba18f0207ef4bd93216e6de8bbf,407209261f6373b4b3f35e343d1498b63263d38e,6f79c32c0bdfb304b984b5e6ba318cc63032cfa4,54cedee86e5126188b0dcfbd7015bcdca7f6c2e2,b0affcb67cba58db03ca3e443105fbaabd1bc88a,4c29668ca316422891e28c55bd794eee52823554,6180dcb29ec531c5d7457005ef142ea304ef49d8,2c63896783e31908f18088a7e9c583de6ec530bf,b3ec0b5fd7771b401392a83f47e0c2360e7f6d90,e689b0d9154605b8b04989c4fdd36e76d6cf26b8,b74361cf7c0ad6930a865e7eada13e2d2d6ed380,f94ead93406764ffd0c3febfc2ea70d36a2a28bb,848345a8d6adaa58704baecbb7567b275df3cc9d,0c10cf8191469e7c3c8844922e17e71a176cb7cb",2012-12-04 20:44:13.658236
+2066,1,default,159,group/Test-for-code-review,"",push_local:b77f1d54f1d18c22e497f1d9d502e0d540506d21,2012-12-05 00:22:33.617864
+2067,3,demo,410,aaa-project-fork-fork-fork-fork-fork-blah,"",started_following_repo,2012-12-05 10:07:05.333082
+2068,3,demo,398,aaa-project-fork-fork,"",user_forked_repo:aaa-project-fork-fork-fork-fork-fork-blah,2012-12-05 10:07:05.47808
+2069,3,demo,410,aaa-project-fork-fork-fork-fork-fork-blah,"",user_created_fork:aaa-project-fork-fork-fork-fork-fork-blah,2012-12-05 10:07:05.487482
+2070,387,ssssss,411,sss-test,"",started_following_repo,2012-12-05 13:33:27.008097
+2071,387,ssssss,411,sss-test,"",admin_created_repo,2012-12-05 13:33:27.018183
+2072,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 13:37:35.771478
+2073,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 13:38:00.979078
+2074,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 13:38:05.497667
+2075,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 13:38:12.513828
+2076,387,ssssss,173,code-review-dev,"",started_following_repo,2012-12-05 13:46:51.940453
+2077,387,ssssss,173,code-review-dev,"",stopped_following_repo,2012-12-05 13:46:54.738489
+2078,387,ssssss,411,sss-test,109.195.177.171,push:7d42587da267871709bc82e462018b8b7d66a4a7,2012-12-05 13:59:09.546916
+2079,387,ssssss,411,sss-test,109.195.177.171,push:bb869421c7c8f88590536d559cebd3ee5e9c3aa7,2012-12-05 14:00:27.04582
+2080,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 14:03:48.47955
+2081,389,wwwwww,412,sss-test-fork,"",started_following_repo,2012-12-05 14:05:13.355226
+2082,389,wwwwww,411,sss-test,"",user_forked_repo:sss-test-fork,2012-12-05 14:05:13.663527
+2083,389,wwwwww,412,sss-test-fork,"",user_created_fork:sss-test-fork,2012-12-05 14:05:13.678367
+2084,389,wwwwww,412,sss-test-fork,"",user_updated_repo,2012-12-05 14:05:56.566769
+2085,389,wwwwww,412,sss-test-fork,109.195.177.171,push:20bd46e65a056aef107cc060d16c97b1ef2cc211,2012-12-05 14:07:21.399133
+2086,389,wwwwww,412,sss-test-fork,"",user_commented_revision:20bd46e65a056aef107cc060d16c97b1ef2cc211,2012-12-05 14:16:56.716099
+2087,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 14:20:41.385001
+2088,389,wwwwww,411,sss-test,109.195.177.171,push:20bd46e65a056aef107cc060d16c97b1ef2cc211,2012-12-05 14:20:54.878385
+2089,387,ssssss,411,sss-test,"",user_updated_repo,2012-12-05 14:21:15.330812
+2090,389,wwwwww,412,sss-test-fork,109.195.177.171,push:1203172be2e12aa31ec40ba4d07b75a3e17bd63f,2012-12-05 14:23:18.297453
+2091,389,wwwwww,412,sss-test-fork,"",user_commented_revision:1203172be2e12aa31ec40ba4d07b75a3e17bd63f,2012-12-05 14:23:34.233486
+2092,5,natosha.bard,413,natosha-repo1,"",started_following_repo,2012-12-05 16:46:55.328513
+2093,5,natosha.bard,413,natosha-repo1,"",admin_created_repo,2012-12-05 16:46:55.342146
+2094,5,natosha.bard,413,natosha-repo1,62.116.219.97,"push:6fbe2a2357168359aacbc524f4acd805dff72327,5787c391ba8f9d67b4e96f47d71adab79b693a30",2012-12-05 16:47:09.181828
+2095,5,natosha.bard,414,natosha-repo1-fork,"",started_following_repo,2012-12-05 16:47:24.080447
+2096,5,natosha.bard,413,natosha-repo1,"",user_forked_repo:natosha-repo1-fork,2012-12-05 16:47:24.101525
+2097,5,natosha.bard,414,natosha-repo1-fork,"",user_created_fork:natosha-repo1-fork,2012-12-05 16:47:24.113866
+2098,5,natosha.bard,414,natosha-repo1-fork,62.116.219.97,"push:a25c825fd81d069596d614efcf92505aed46227a,ac513595518923aca8b39f0a1c33c4c6e0f9d83a,d395e22e8e16373a1fffbe66b322581d69a7db17",2012-12-05 16:47:44.701535
+2099,2,admin,38,code-review-test,"",user_commented_pull_request:73,2012-12-05 17:23:18.059481
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/fixtures/large_diff.diff	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,295376 @@
+diff --git a/.hgignore b/.hgignore
+new file mode 100644
+--- /dev/null
++++ b/.hgignore
+@@ -0,0 +1,3 @@
++
++syntax: regexp
++^data$
+\ No newline at end of file
+diff --git a/MANIFEST.in b/MANIFEST.in
+new file mode 100644
+--- /dev/null
++++ b/MANIFEST.in
+@@ -0,0 +1,3 @@
++include pylons_app/config/deployment.ini_tmpl
++recursive-include pylons_app/public *
++recursive-include pylons_app/templates *
+diff --git a/README.txt b/README.txt
+new file mode 100644
+--- /dev/null
++++ b/README.txt
+@@ -0,0 +1,19 @@
++This file is for you to describe the pylons_app application. Typically
++you would include information such as the information below:
++
++Installation and Setup
++======================
++
++Install ``pylons_app`` using easy_install::
++
++    easy_install pylons_app
++
++Make a config file as follows::
++
++    paster make-config pylons_app config.ini
++
++Tweak the config file as appropriate and then setup the application::
++
++    paster setup-app config.ini
++
++Then you are ready to go.
+diff --git a/development.ini b/development.ini
+new file mode 100644
+--- /dev/null
++++ b/development.ini
+@@ -0,0 +1,116 @@
++########################################################################
++##
++## pylons_app - Pylons development environment configuration
++##
++## The %(here)s variable will be replaced with the parent directory of this file
++##
++[DEFAULT]
++debug = true
++## Uncomment and replace with the address which should receive any error reports
++email_to = marcin.kuzminski@etelko.pl
++smtp_server = localhost
++error_email_from = paste_error@localhost
++
++[server:main]
++use = egg:Paste#http
++host = 127.0.0.1
++port = 5000
++
++[app:main]
++use = egg:pylons_app
++full_stack = true
++static_files = false
++##default lang
++lang=en
++
++cache_dir = %(here)s/data
++beaker.session.key = pylons_app
++beaker.session.secret = #@^^F&VWUDCT%@$#WR^@&*IWEKF
++beaker.session.timeout = 3600
++
++##auto save the session to not to use .save()
++beaker.session.auto = True
++
++##true exire at browser close
++#beaker.session.cookie_expires = 3600
++
++## If you'd like to fine-tune the individual locations of the cache data dirs
++## for the Cache data, or the Session saves, un-comment the desired settings
++## here:
++#beaker.cache.data_dir = %(here)s/data/cache
++#beaker.session.data_dir = %(here)s/data/sessions
++
++
++##Type of storage used for the session, current types are 
++##“dbm”, “file”, “memcached”, “database”, and “memory”. 
++##The storage uses the Container API that is also used by the cache system.
++beaker.session.type = memory
++
++##if db or memcached is used
++##you have to use
++#beaker.session.url =
++#beaker.session.table_name =
++
++## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
++## Debug mode will enable the interactive debugging tool, allowing ANYONE to
++## execute malicious code after an exception is raised.
++#set debug = false
++
++##dozer logging
++#logview.sqlalchemy = #faa
++#logview.pylons.templating = #bfb
++#logview.sample_app.lib = #aaa
++
++# Logging configuration
++[loggers]
++keys = root, routes, pylons_app, sqlalchemy
++
++[handlers]
++keys = console,file_handler
++
++[formatters]
++keys = generic
++
++## LOGGERS ##
++[logger_root]
++level = DEBUG
++handlers = console, file_handler
++
++[logger_routes]
++level = INFO
++handlers = console
++qualname = routes.middleware
++# "level = DEBUG" logs the route matched and routing variables.
++
++[logger_pylons_app]
++level = DEBUG
++handlers = console,file_handler
++qualname = pylons_app
++
++[logger_sqlalchemy]
++level = DEBUG
++handlers = 
++qualname = sqlalchemy.pool
++propagate = 0
++
++
++## HANDLERS ##
++
++[handler_console]
++class = StreamHandler
++args = (sys.stderr,)
++level = NOTSET
++formatter = generic
++
++[handler_file_handler]
++class = FileHandler
++args = ('./pylons_app.log','a')
++level = NOTSET
++formatter = generic
++
++## FORMATTERS ##
++
++[formatter_generic]
++format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
++datefmt = %H:%M:%S
++
+diff --git a/docs/index.txt b/docs/index.txt
+new file mode 100644
+--- /dev/null
++++ b/docs/index.txt
+@@ -0,0 +1,19 @@
++pylons_app
++++++++++++
++
++This is the main index page of your documentation. It should be written in
++`reStructuredText format <http://docutils.sourceforge.net/rst.html>`_.
++
++You can generate your documentation in HTML format by running this command::
++
++    setup.py pudge
++
++For this to work you will need to download and install `buildutils`_,
++`pudge`_, and `pygments`_.  The ``pudge`` command is disabled by
++default; to ativate it in your project, run::
++
++    setup.py addcommand -p buildutils.pudge_command
++
++.. _buildutils: http://pypi.python.org/pypi/buildutils
++.. _pudge: http://pudge.lesscode.org/
++.. _pygments: http://pygments.org/
+diff --git a/ez_setup.py b/ez_setup.py
+new file mode 100644
+--- /dev/null
++++ b/ez_setup.py
+@@ -0,0 +1,276 @@
++#!python
++"""Bootstrap setuptools installation
++
++If you want to use setuptools in your package's setup.py, just include this
++file in the same directory with it, and add this to the top of your setup.py::
++
++    from ez_setup import use_setuptools
++    use_setuptools()
++
++If you want to require a specific version of setuptools, set a download
++mirror, or use an alternate download directory, you can do so by supplying
++the appropriate options to ``use_setuptools()``.
++
++This file can also be run as a script to install or upgrade setuptools.
++"""
++import sys
++DEFAULT_VERSION = "0.6c9"
++DEFAULT_URL     = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
++
++md5_data = {
++    'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
++    'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
++    'setuptools-0.6b2-py2.3.egg': '5657759d8a6d8fc44070a9d07272d99b',
++    'setuptools-0.6b2-py2.4.egg': '4996a8d169d2be661fa32a6e52e4f82a',
++    'setuptools-0.6b3-py2.3.egg': 'bb31c0fc7399a63579975cad9f5a0618',
++    'setuptools-0.6b3-py2.4.egg': '38a8c6b3d6ecd22247f179f7da669fac',
++    'setuptools-0.6b4-py2.3.egg': '62045a24ed4e1ebc77fe039aa4e6f7e5',
++    'setuptools-0.6b4-py2.4.egg': '4cb2a185d228dacffb2d17f103b3b1c4',
++    'setuptools-0.6c1-py2.3.egg': 'b3f2b5539d65cb7f74ad79127f1a908c',
++    'setuptools-0.6c1-py2.4.egg': 'b45adeda0667d2d2ffe14009364f2a4b',
++    'setuptools-0.6c2-py2.3.egg': 'f0064bf6aa2b7d0f3ba0b43f20817c27',
++    'setuptools-0.6c2-py2.4.egg': '616192eec35f47e8ea16cd6a122b7277',
++    'setuptools-0.6c3-py2.3.egg': 'f181fa125dfe85a259c9cd6f1d7b78fa',
++    'setuptools-0.6c3-py2.4.egg': 'e0ed74682c998bfb73bf803a50e7b71e',
++    'setuptools-0.6c3-py2.5.egg': 'abef16fdd61955514841c7c6bd98965e',
++    'setuptools-0.6c4-py2.3.egg': 'b0b9131acab32022bfac7f44c5d7971f',
++    'setuptools-0.6c4-py2.4.egg': '2a1f9656d4fbf3c97bf946c0a124e6e2',
++    'setuptools-0.6c4-py2.5.egg': '8f5a052e32cdb9c72bcf4b5526f28afc',
++    'setuptools-0.6c5-py2.3.egg': 'ee9fd80965da04f2f3e6b3576e9d8167',
++    'setuptools-0.6c5-py2.4.egg': 'afe2adf1c01701ee841761f5bcd8aa64',
++    'setuptools-0.6c5-py2.5.egg': 'a8d3f61494ccaa8714dfed37bccd3d5d',
++    'setuptools-0.6c6-py2.3.egg': '35686b78116a668847237b69d549ec20',
++    'setuptools-0.6c6-py2.4.egg': '3c56af57be3225019260a644430065ab',
++    'setuptools-0.6c6-py2.5.egg': 'b2f8a7520709a5b34f80946de5f02f53',
++    'setuptools-0.6c7-py2.3.egg': '209fdf9adc3a615e5115b725658e13e2',
++    'setuptools-0.6c7-py2.4.egg': '5a8f954807d46a0fb67cf1f26c55a82e',
++    'setuptools-0.6c7-py2.5.egg': '45d2ad28f9750e7434111fde831e8372',
++    'setuptools-0.6c8-py2.3.egg': '50759d29b349db8cfd807ba8303f1902',
++    'setuptools-0.6c8-py2.4.egg': 'cba38d74f7d483c06e9daa6070cce6de',
++    'setuptools-0.6c8-py2.5.egg': '1721747ee329dc150590a58b3e1ac95b',
++    'setuptools-0.6c9-py2.3.egg': 'a83c4020414807b496e4cfbe08507c03',
++    'setuptools-0.6c9-py2.4.egg': '260a2be2e5388d66bdaee06abec6342a',
++    'setuptools-0.6c9-py2.5.egg': 'fe67c3e5a17b12c0e7c541b7ea43a8e6',
++    'setuptools-0.6c9-py2.6.egg': 'ca37b1ff16fa2ede6e19383e7b59245a',
++}
++
++import sys, os
++try: from hashlib import md5
++except ImportError: from md5 import md5
++
++def _validate_md5(egg_name, data):
++    if egg_name in md5_data:
++        digest = md5(data).hexdigest()
++        if digest != md5_data[egg_name]:
++            print >>sys.stderr, (
++                "md5 validation of %s failed!  (Possible download problem?)"
++                % egg_name
++            )
++            sys.exit(2)
++    return data
++
++def use_setuptools(
++    version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir,
++    download_delay=15
++):
++    """Automatically find/download setuptools and make it available on sys.path
++
++    `version` should be a valid setuptools version number that is available
++    as an egg for download under the `download_base` URL (which should end with
++    a '/').  `to_dir` is the directory where setuptools will be downloaded, if
++    it is not already available.  If `download_delay` is specified, it should
++    be the number of seconds that will be paused before initiating a download,
++    should one be required.  If an older version of setuptools is installed,
++    this routine will print a message to ``sys.stderr`` and raise SystemExit in
++    an attempt to abort the calling script.
++    """
++    was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
++    def do_download():
++        egg = download_setuptools(version, download_base, to_dir, download_delay)
++        sys.path.insert(0, egg)
++        import setuptools; setuptools.bootstrap_install_from = egg
++    try:
++        import pkg_resources
++    except ImportError:
++        return do_download()       
++    try:
++        pkg_resources.require("setuptools>="+version); return
++    except pkg_resources.VersionConflict, e:
++        if was_imported:
++            print >>sys.stderr, (
++            "The required version of setuptools (>=%s) is not available, and\n"
++            "can't be installed while this script is running. Please install\n"
++            " a more recent version first, using 'easy_install -U setuptools'."
++            "\n\n(Currently using %r)"
++            ) % (version, e.args[0])
++            sys.exit(2)
++        else:
++            del pkg_resources, sys.modules['pkg_resources']    # reload ok
++            return do_download()
++    except pkg_resources.DistributionNotFound:
++        return do_download()
++
++def download_setuptools(
++    version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir,
++    delay = 15
++):
++    """Download setuptools from a specified location and return its filename
++
++    `version` should be a valid setuptools version number that is available
++    as an egg for download under the `download_base` URL (which should end
++    with a '/'). `to_dir` is the directory where the egg will be downloaded.
++    `delay` is the number of seconds to pause before an actual download attempt.
++    """
++    import urllib2, shutil
++    egg_name = "setuptools-%s-py%s.egg" % (version,sys.version[:3])
++    url = download_base + egg_name
++    saveto = os.path.join(to_dir, egg_name)
++    src = dst = None
++    if not os.path.exists(saveto):  # Avoid repeated downloads
++        try:
++            from distutils import log
++            if delay:
++                log.warn("""
++---------------------------------------------------------------------------
++This script requires setuptools version %s to run (even to display
++help).  I will attempt to download it for you (from
++%s), but
++you may need to enable firewall access for this script first.
++I will start the download in %d seconds.
++
++(Note: if this machine does not have network access, please obtain the file
++
++   %s
++
++and place it in this directory before rerunning this script.)
++---------------------------------------------------------------------------""",
++                    version, download_base, delay, url
++                ); from time import sleep; sleep(delay)
++            log.warn("Downloading %s", url)
++            src = urllib2.urlopen(url)
++            # Read/write all in one block, so we don't create a corrupt file
++            # if the download is interrupted.
++            data = _validate_md5(egg_name, src.read())
++            dst = open(saveto,"wb"); dst.write(data)
++        finally:
++            if src: src.close()
++            if dst: dst.close()
++    return os.path.realpath(saveto)
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++def main(argv, version=DEFAULT_VERSION):
++    """Install or upgrade setuptools and EasyInstall"""
++    try:
++        import setuptools
++    except ImportError:
++        egg = None
++        try:
++            egg = download_setuptools(version, delay=0)
++            sys.path.insert(0,egg)
++            from setuptools.command.easy_install import main
++            return main(list(argv)+[egg])   # we're done here
++        finally:
++            if egg and os.path.exists(egg):
++                os.unlink(egg)
++    else:
++        if setuptools.__version__ == '0.0.1':
++            print >>sys.stderr, (
++            "You have an obsolete version of setuptools installed.  Please\n"
++            "remove it from your system entirely before rerunning this script."
++            )
++            sys.exit(2)
++
++    req = "setuptools>="+version
++    import pkg_resources
++    try:
++        pkg_resources.require(req)
++    except pkg_resources.VersionConflict:
++        try:
++            from setuptools.command.easy_install import main
++        except ImportError:
++            from easy_install import main
++        main(list(argv)+[download_setuptools(delay=0)])
++        sys.exit(0) # try to force an exit
++    else:
++        if argv:
++            from setuptools.command.easy_install import main
++            main(argv)
++        else:
++            print "Setuptools version",version,"or greater has been installed."
++            print '(Run "ez_setup.py -U setuptools" to reinstall or upgrade.)'
++
++def update_md5(filenames):
++    """Update our built-in md5 registry"""
++
++    import re
++
++    for name in filenames:
++        base = os.path.basename(name)
++        f = open(name,'rb')
++        md5_data[base] = md5(f.read()).hexdigest()
++        f.close()
++
++    data = ["    %r: %r,\n" % it for it in md5_data.items()]
++    data.sort()
++    repl = "".join(data)
++
++    import inspect
++    srcfile = inspect.getsourcefile(sys.modules[__name__])
++    f = open(srcfile, 'rb'); src = f.read(); f.close()
++
++    match = re.search("\nmd5_data = {\n([^}]+)}", src)
++    if not match:
++        print >>sys.stderr, "Internal error!"
++        sys.exit(2)
++
++    src = src[:match.start(1)] + repl + src[match.end(1):]
++    f = open(srcfile,'w')
++    f.write(src)
++    f.close()
++
++
++if __name__=='__main__':
++    if len(sys.argv)>2 and sys.argv[1]=='--md5update':
++        update_md5(sys.argv[2:])
++    else:
++        main(sys.argv[1:])
++
++
++
++
++
++
+diff --git a/hgapp.py b/hgapp.py
+new file mode 100644
+--- /dev/null
++++ b/hgapp.py
+@@ -0,0 +1,26 @@
++import logging
++from logging import Formatter, StreamHandler
++from wsgiref.simple_server import make_server
++from mercurial.hgweb.hgwebdir_mod import hgwebdir
++from mercurial.hgweb.request import wsgiapplication
++
++log = logging.getLogger(__name__)
++log.setLevel(logging.DEBUG)
++formatter = Formatter("%(asctime)s - %(levelname)s %(message)s")
++console_handler = StreamHandler()
++console_handler.setFormatter(formatter)
++log.addHandler(console_handler)
++
++def make_web_app():
++
++    repos = "hgwebdir.config"
++    hgwebapp = hgwebdir(repos)
++    return hgwebapp
++
++port = 8000
++ip = '127.0.0.1'
++
++log.info('Starting server on %s:%s' % (ip, port))
++httpd = make_server(ip, port, wsgiapplication(make_web_app))
++httpd.serve_forever()
++
+diff --git a/hgwebdir.config b/hgwebdir.config
+new file mode 100644
+--- /dev/null
++++ b/hgwebdir.config
+@@ -0,0 +1,21 @@
++[hooks]
++#to do push with autoupdate
++changegroup = hg update >&2
++
++[extensions]
++hgext.highlight=
++#hgk=
++
++[web]
++push_ssl = false
++contact = marcin.kuzminski@etelko.pl
++allow_archive = gz zip bz2
++allow_push = *
++#style = monoblue
++style = gitweb
++Spygments_style = trac
++staticurl = /static
++baseurl = /
++
++[paths]
++/ = /home/marcink/python_workspace/**
+diff --git a/pylons_app.egg-info/PKG-INFO b/pylons_app.egg-info/PKG-INFO
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/PKG-INFO
+@@ -0,0 +1,10 @@
++Metadata-Version: 1.0
++Name: sample-app
++Version: 0.1dev
++Summary: UNKNOWN
++Home-page: UNKNOWN
++Author: UNKNOWN
++Author-email: UNKNOWN
++License: UNKNOWN
++Description: UNKNOWN
++Platform: UNKNOWN
+diff --git a/pylons_app.egg-info/SOURCES.txt b/pylons_app.egg-info/SOURCES.txt
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/SOURCES.txt
+@@ -0,0 +1,33 @@
++MANIFEST.in
++README.txt
++setup.cfg
++setup.py
++pylons_app/__init__.py
++pylons_app/websetup.py
++pylons_app.egg-info/PKG-INFO
++pylons_app.egg-info/SOURCES.txt
++pylons_app.egg-info/dependency_links.txt
++pylons_app.egg-info/entry_points.txt
++pylons_app.egg-info/not-zip-safe
++pylons_app.egg-info/paster_plugins.txt
++pylons_app.egg-info/requires.txt
++pylons_app.egg-info/top_level.txt
++pylons_app/config/__init__.py
++pylons_app/config/deployment.ini_tmpl
++pylons_app/config/environment.py
++pylons_app/config/middleware.py
++pylons_app/config/routing.py
++pylons_app/controllers/__init__.py
++pylons_app/controllers/error.py
++pylons_app/lib/__init__.py
++pylons_app/lib/app_globals.py
++pylons_app/lib/base.py
++pylons_app/lib/helpers.py
++pylons_app/model/__init__.py
++pylons_app/public/bg.png
++pylons_app/public/favicon.ico
++pylons_app/public/index.html
++pylons_app/public/pylons-logo.gif
++pylons_app/tests/__init__.py
++pylons_app/tests/test_models.py
++pylons_app/tests/functional/__init__.py
+\ No newline at end of file
+diff --git a/pylons_app.egg-info/dependency_links.txt b/pylons_app.egg-info/dependency_links.txt
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/dependency_links.txt
+@@ -0,0 +1,1 @@
++
+diff --git a/pylons_app.egg-info/entry_points.txt b/pylons_app.egg-info/entry_points.txt
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/entry_points.txt
+@@ -0,0 +1,7 @@
++
++    [paste.app_factory]
++    main = pylons_app.config.middleware:make_app
++
++    [paste.app_install]
++    main = pylons.util:PylonsInstaller
++    
+\ No newline at end of file
+diff --git a/pylons_app.egg-info/not-zip-safe b/pylons_app.egg-info/not-zip-safe
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/not-zip-safe
+@@ -0,0 +1,1 @@
++
+diff --git a/pylons_app.egg-info/paster_plugins.txt b/pylons_app.egg-info/paster_plugins.txt
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/paster_plugins.txt
+@@ -0,0 +1,2 @@
++PasteScript
++Pylons
+diff --git a/pylons_app.egg-info/requires.txt b/pylons_app.egg-info/requires.txt
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/requires.txt
+@@ -0,0 +1,1 @@
++Pylons>=0.9.7
+\ No newline at end of file
+diff --git a/pylons_app.egg-info/top_level.txt b/pylons_app.egg-info/top_level.txt
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.egg-info/top_level.txt
+@@ -0,0 +1,1 @@
++pylons_app
+diff --git a/pylons_app.log b/pylons_app.log
+new file mode 100644
+--- /dev/null
++++ b/pylons_app.log
+@@ -0,0 +1,3748 @@
++23:15:41,905 INFO  [root] INITIALIZING DB MODELS
++23:16:21,061 INFO  [root] INITIALIZING DB MODELS
++23:18:28,416 INFO  [root] INITIALIZING DB MODELS
++00:03:24,459 INFO  [root] INITIALIZING DB MODELS
++00:08:56,464 INFO  [root] INITIALIZING DB MODELS
++00:10:01,095 INFO  [root] INITIALIZING DB MODELS
++00:30:17,596 INFO  [root] INITIALIZING DB MODELS
++00:31:12,410 INFO  [root] INITIALIZING DB MODELS
++00:36:47,850 INFO  [root] INITIALIZING DB MODELS
++00:39:37,058 INFO  [root] INITIALIZING DB MODELS
++00:41:35,149 INFO  [root] INITIALIZING DB MODELS
++00:53:59,100 INFO  [root] INITIALIZING DB MODELS
++00:56:44,240 INFO  [root] INITIALIZING DB MODELS
++00:57:08,893 INFO  [root] INITIALIZING DB MODELS
++00:57:48,006 INFO  [root] INITIALIZING DB MODELS
++01:00:16,754 INFO  [root] INITIALIZING DB MODELS
++01:00:32,350 INFO  [root] INITIALIZING DB MODELS
++01:02:59,043 INFO  [root] INITIALIZING DB MODELS
++01:03:23,895 INFO  [root] INITIALIZING DB MODELS
++13:31:27,415 INFO  [root] INITIALIZING DB MODELS
++13:33:53,569 INFO  [pylons_app.model] INITIALIZING DB MODELS
++13:33:53,569 INFO  [pylons_app.model] INITIALIZING DB MODELS
++13:34:15,341 INFO  [pylons_app.model] INITIALIZING DB MODELS
++13:34:15,341 INFO  [pylons_app.model] INITIALIZING DB MODELS
++13:47:44,421 INFO  [pylons_app.model] INITIALIZING DB MODELS
++13:47:44,421 INFO  [pylons_app.model] INITIALIZING DB MODELS
++14:00:56,971 INFO  [paste.httpserver.ThreadPool] kill_hung_threads status: 10 threads (0 working, 10 idle, 0 starting) ave time N/A, max time 0.00sec, killed 0 workers
++14:28:33,100 INFO  [paste.httpserver.ThreadPool] kill_hung_threads status: 10 threads (0 working, 10 idle, 0 starting) ave time N/A, max time 0.00sec, killed 0 workers
++22:01:38,914 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:01:38,914 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:09:45,709 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:09:45,709 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:10:00,336 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:10:00,336 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:10:26,275 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:10:26,275 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:16:30,287 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:16:30,287 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:16:44,047 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:16:44,047 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:19:25,929 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:19:25,929 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:31:35,944 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:31:35,944 INFO  [pylons_app.model] INITIALIZING DB MODELS
++22:54:23,527 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++22:54:28,475 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++23:01:34,024 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++23:01:34,028 INFO  [paste.httpserver.ThreadPool] All workers stopped
++23:01:34,029 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++23:01:34,029 INFO  [paste.httpserver.ThreadPool] All workers stopped
++23:01:42,824 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++23:01:42,873 INFO  [paste.httpserver.ThreadPool] All workers stopped
++23:01:42,918 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++23:01:42,918 INFO  [paste.httpserver.ThreadPool] All workers stopped
++00:58:16,215 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++11:20:19,264 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++11:56:44,327 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True
++11:56:49,736 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True
++11:56:57,627 DEBUG [routes.middleware] Matched GET /
++11:56:57,627 DEBUG [routes.middleware] Route path: '/{path_info:.*}', defaults: {'action': u'view', 'controller': u'hg', 'path_info': u'/'}
++11:56:57,627 DEBUG [routes.middleware] Match dict: {'action': u'view', 'controller': u'hg', 'path_info': u'/'}
++11:56:58,640 DEBUG [routes.middleware] Matched GET /static/style-monoblue.css
++11:56:58,640 DEBUG [routes.middleware] Route path: '/{path_info:.*}', defaults: {'action': u'view', 'controller': u'hg', 'path_info': u'/'}
++11:56:58,640 DEBUG [routes.middleware] Match dict: {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}
++11:56:59,675 DEBUG [routes.middleware] Matched GET /static/hglogo.png
++11:56:59,675 DEBUG [routes.middleware] Route path: '/{path_info:.*}', defaults: {'action': u'view', 'controller': u'hg', 'path_info': u'/'}
++11:56:59,675 DEBUG [routes.middleware] Match dict: {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}
++11:57:01,653 DEBUG [routes.middleware] Matched GET /static/hgicon.png
++11:57:01,654 DEBUG [routes.middleware] Route path: '/{path_info:.*}', defaults: {'action': u'view', 'controller': u'hg', 'path_info': u'/'}
++11:57:01,654 DEBUG [routes.middleware] Match dict: {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}
++13:06:10,536 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++13:06:10,536 DEBUG [pylons.configuration] Pushing process configuration
++13:06:10,539 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++13:06:10,540 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++13:06:10,543 DEBUG [pylons.templating] Initialized Buffet object
++13:06:10,543 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++13:06:10,551 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200819407120: Initial worker pool
++13:06:10,552 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200811014416: Initial worker pool
++13:06:10,552 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200802621712: Initial worker pool
++13:06:10,552 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200794229008: Initial worker pool
++13:06:10,553 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200785836304: Initial worker pool
++13:06:10,553 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200777443600: Initial worker pool
++13:06:10,553 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200769050896: Initial worker pool
++13:06:10,553 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200760658192: Initial worker pool
++13:06:10,554 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200752265488: Initial worker pool
++13:06:10,554 DEBUG [paste.httpserver.ThreadPool] Started new worker 140200743872784: Initial worker pool
++13:06:11,488 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:06:11,494 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:06:11,495 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:06:11,557 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++13:06:11,557 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:06:11,557 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:06:11,558 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:06:11,558 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x233bbd0>, 'start_response': <function repl_start_response at 0x2378b18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'evoice_py/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/evoice_py/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x233bf10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x233bbd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x233b990>, {'action': u'view', 'controller': u'hg', 'path_info': 'evoice_py/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x233bf10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x2320550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266321971.558501, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x233b990>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x233b690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'evoice_py/', 'action': u'view'}
++13:06:12,496 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:06:12,496 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:06:12,497 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:06:12,574 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:06:12,581 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:06:12,581 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:06:12,581 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:06:12,582 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:06:12,582 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:06:12,582 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:06:12,582 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b6a490>, 'start_response': <function repl_start_response at 0x2b788c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/evoice_py/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'evoice_py/static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/evoice_py/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6a410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6a490>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x233ba10>, {'action': u'view', 'controller': u'hg', 'path_info': 'evoice_py/static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6a410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x23205d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266321972.582741, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x233ba10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b6a1d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'evoice_py/static/style-monoblue.css', 'action': u'view'}
++13:06:13,499 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:06:13,500 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:06:13,513 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:06:13,515 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:06:13,516 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:06:13,516 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:06:13,516 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:06:13,516 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:06:13,517 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:06:13,516 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b6f950>, 'start_response': <function repl_start_response at 0x2b821b8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/evoice_py/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'evoice_py/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/evoice_py/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6f350>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6f950>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b6af90>, {'action': u'view', 'controller': u'hg', 'path_info': 'evoice_py/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6f350>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x2b09ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266321973.517339, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2b6af90>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b6a5d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'evoice_py/static/hglogo.png', 'action': u'view'}
++13:06:14,403 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:06:14,404 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:06:23,179 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:06:23,180 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:06:23,181 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:06:23,181 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:06:23,181 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:06:23,181 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:06:23,182 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:06:23,181 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b6aed0>, 'start_response': <function repl_start_response at 0x2b699b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6a490>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6aed0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b6a890>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6a490>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x23205d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266321983.1827569, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b6a890>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b6ad90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++13:06:24,104 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:06:24,105 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:06:24,179 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:06:24,181 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:06:24,181 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:06:24,181 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:06:24,182 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:06:24,182 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:06:24,182 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:06:24,182 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b40790>, 'start_response': <function repl_start_response at 0x2b2ac80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b40e50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b40790>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b6ac50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b40e50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x27f0550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266321984.182817, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b6ac50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b401d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++13:06:25,096 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:06:25,097 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:06:25,111 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:06:25,112 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:06:25,113 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:06:25,113 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:06:25,113 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:06:25,113 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:06:25,114 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:06:25,113 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2af3210>, 'start_response': <function repl_start_response at 0x2b820c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2af30d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2af3210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b40410>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2af30d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x2b776d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266321985.114399, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b40410>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b40890>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++13:06:26,128 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:06:26,128 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:09:04,896 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:09:04,898 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:09:04,898 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:09:04,898 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:09:04,898 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:09:04,899 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:09:04,899 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:09:04,899 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b407d0>, 'start_response': <function repl_start_response at 0x2b69a28>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b40d90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b407d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b2ddd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b40d90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x27f0550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322144.8996329, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b2ddd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2827690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/', 'action': u'view'}
++13:09:05,796 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:09:05,797 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:09:05,923 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:09:05,925 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:09:05,926 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:09:05,926 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:09:05,926 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:09:05,926 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:09:05,927 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:09:05,926 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b6fa50>, 'start_response': <function repl_start_response at 0x2b829b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6fa10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6fa50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x27f5610>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6fa10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x2b77750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322145.9271979, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x27f5610>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b40c50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/style-monoblue.css', 'action': u'view'}
++13:09:05,964 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:09:05,964 DEBUG [paste.httpserver.ThreadPool] Added task (1 tasks queued)
++13:09:05,975 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:09:05,975 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:09:05,976 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:09:05,976 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:09:05,976 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:09:05,977 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:09:05,976 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b6fd10>, 'start_response': <function repl_start_response at 0x2b82f50>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6fcd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6fd10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b37550>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6fcd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x2b77450 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322145.978097, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b37550>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b372d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hglogo.png', 'action': u'view'}
++13:09:05,978 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:09:05,979 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:09:05,979 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:09:05,979 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:09:05,979 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:09:05,980 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:09:05,980 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b6fc50>, 'start_response': <function repl_start_response at 0x2b82410>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6f890>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6fc50>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b6f490>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6f890>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x2b77350 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322145.9804909, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b6f490>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b6a810>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hgicon.png', 'action': u'view'}
++13:09:08,376 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:09:08,377 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:09:08,581 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:09:08,582 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:09:08,933 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:09:08,984 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:09:08,987 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:09:08,988 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:09:08,988 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:09:08,988 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:09:08,990 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:09:08,988 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b8ae10>, 'start_response': <function repl_start_response at 0x2b78c80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x222b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x222b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b8aa90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x222b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b8ae10>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x27f52d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b8aa90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x222b850>, 'wsgi.input': <socket._fileobject object at 0x27f03d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322148.9917991, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x27f52d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b8a090>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f83108641c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x157b550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hgicon.png', 'action': u'view'}
++13:09:09,182 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:09:09,183 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:09:10,104 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:09:10,105 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:13:26,391 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++13:13:26,391 DEBUG [pylons.configuration] Pushing process configuration
++13:13:26,394 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++13:13:26,394 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++13:13:26,398 DEBUG [pylons.templating] Initialized Buffet object
++13:13:26,398 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++13:13:26,406 DEBUG [paste.httpserver.ThreadPool] Started new worker 140601021282576: Initial worker pool
++13:13:26,406 DEBUG [paste.httpserver.ThreadPool] Started new worker 140601012889872: Initial worker pool
++13:13:26,407 DEBUG [paste.httpserver.ThreadPool] Started new worker 140601004497168: Initial worker pool
++13:13:26,407 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600996104464: Initial worker pool
++13:13:26,407 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600987711760: Initial worker pool
++13:13:26,408 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600979319056: Initial worker pool
++13:13:26,408 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600970926352: Initial worker pool
++13:13:26,408 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600962533648: Initial worker pool
++13:13:26,408 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600954140944: Initial worker pool
++13:13:26,409 DEBUG [paste.httpserver.ThreadPool] Started new worker 140600945748240: Initial worker pool
++13:13:26,576 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:13:26,581 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:13:26,583 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:13:26,635 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++13:13:26,635 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:13:26,635 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:13:26,635 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:13:26,636 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:13:26,636 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x255d490>, 'start_response': <function repl_start_response at 0x2557938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x245d550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x245d790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x255d7d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x255d490>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x245d810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x255d250>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x255d7d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'wsgi.input': <socket._fileobject object at 0x23e3650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322406.636781, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x255d250>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2559f10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe03e6a41c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x17ac5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/', 'action': u'view'}
++13:13:27,600 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:13:27,601 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:13:27,673 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:13:27,676 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:13:27,676 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:13:27,676 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:13:27,676 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:13:27,677 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:13:27,677 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:13:27,677 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2d79510>, 'start_response': <function repl_start_response at 0x29f7b90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x245d550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x245d790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d79590>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2d79510>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x245d810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x255d2d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d79590>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'wsgi.input': <socket._fileobject object at 0x25522d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322407.6777921, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x255d2d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d79310>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe03e6a41c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x17ac5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/style-monoblue.css', 'action': u'view'}
++13:13:28,574 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:13:28,575 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:13:28,596 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:13:28,598 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:13:28,598 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:13:28,598 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:13:28,598 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:13:28,598 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:13:28,599 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:13:28,599 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2d76a10>, 'start_response': <function repl_start_response at 0x2dc1320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x245d550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x245d790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d76110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2d76a10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x245d810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d761d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d76110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'wsgi.input': <socket._fileobject object at 0x25521d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322408.59951, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d761d0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d76590>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe03e6a41c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x17ac5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hglogo.png', 'action': u'view'}
++13:13:29,536 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:13:29,537 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:13:30,715 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:13:30,718 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:13:30,720 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:13:30,720 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:13:30,720 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:13:30,721 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:13:30,722 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:13:30,721 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2559cd0>, 'start_response': <function repl_start_response at 0x2d800c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x245d550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x245d790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d76510>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x245d810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2559cd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d79310>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d76510>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x245d850>, 'wsgi.input': <socket._fileobject object at 0x25522d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266322410.7229431, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2d79310>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d79dd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe03e6a41c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x17ac5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hgicon.png', 'action': u'view'}
++13:13:31,634 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:13:31,635 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:58:31,424 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++13:58:31,425 DEBUG [pylons.configuration] Pushing process configuration
++13:58:31,428 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++13:58:31,428 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++13:58:31,431 DEBUG [pylons.templating] Initialized Buffet object
++13:58:31,431 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++13:58:31,439 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094138050832: Initial worker pool
++13:58:31,439 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094129658128: Initial worker pool
++13:58:31,440 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094121265424: Initial worker pool
++13:58:31,440 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094112872720: Initial worker pool
++13:58:31,440 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094104480016: Initial worker pool
++13:58:31,440 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094096087312: Initial worker pool
++13:58:31,441 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094087694608: Initial worker pool
++13:58:31,441 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094079301904: Initial worker pool
++13:58:31,441 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094070909200: Initial worker pool
++13:58:31,442 DEBUG [paste.httpserver.ThreadPool] Started new worker 140094062516496: Initial worker pool
++13:58:38,267 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:58:38,275 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:58:38,277 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:58:38,328 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++13:58:38,329 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:58:38,329 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:58:38,329 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:58:38,329 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:58:38,329 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2026b90>, 'start_response': <function repl_start_response at 0x202ab18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2026ed0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2026b90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2026910>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2026ed0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x200b550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325118.3300569, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2026910>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2026610>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/shortlog', 'action': u'view'}
++13:58:39,307 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:58:39,308 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:58:39,387 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:58:39,389 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:58:39,390 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:58:39,390 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:58:39,390 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:58:39,390 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:58:39,391 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:58:39,390 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2835390>, 'start_response': <function repl_start_response at 0x2888050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/shortlog', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2835490>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2835390>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2026990>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2835490>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x200b6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325119.3912959, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2026990>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x28318d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/style-monoblue.css', 'action': u'view'}
++13:58:40,307 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:58:40,308 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:58:40,320 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:58:40,322 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:58:40,322 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:58:40,322 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:58:40,322 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:58:40,323 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:58:40,323 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:58:40,323 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2831a90>, 'start_response': <function repl_start_response at 0x2888320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/shortlog', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2831850>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2831a90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2831090>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2831850>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x200b5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325120.3236139, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2831090>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x281de50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hglogo.png', 'action': u'view'}
++13:58:41,231 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:58:41,231 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:58:42,455 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:58:42,459 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:58:42,460 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:58:42,461 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:58:42,461 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:58:42,462 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:58:42,463 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:58:42,462 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2026410>, 'start_response': <function repl_start_response at 0x287d320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2026990>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2026410>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2835810>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2026990>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x200b6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325122.4637499, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2835810>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2835d10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'zte_tail/static/hgicon.png', 'action': u'view'}
++13:58:43,371 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:58:43,371 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:59:37,944 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:59:37,948 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:59:37,949 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:59:37,950 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:59:37,950 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:59:37,950 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:59:37,952 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:59:37,951 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x251a690>, 'start_response': <function repl_start_response at 0x24d8398>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2688d10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x251a690>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28353d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2688d10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x26aa250 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325177.952543, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x28353d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x25fa910>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++13:59:38,858 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:59:38,858 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:59:38,944 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:59:38,946 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:59:38,947 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:59:38,947 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:59:38,947 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:59:38,947 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:59:38,948 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:59:38,947 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2896d90>, 'start_response': <function repl_start_response at 0x28889b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2896390>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2896d90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2831910>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2896390>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x26aa5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325178.9483449, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2831910>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2896410>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++13:59:39,036 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++13:59:39,038 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++13:59:39,038 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++13:59:39,038 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++13:59:39,038 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++13:59:39,038 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++13:59:39,039 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++13:59:39,039 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x268e410>, 'start_response': <function repl_start_response at 0x281ccf8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x268e610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x268e410>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x24cafd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x268e610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x26aa6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325179.0394981, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x24cafd0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x24caf10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++13:59:40,733 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:59:40,734 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++13:59:40,935 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++13:59:40,935 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:00:15,218 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:00:15,220 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:00:15,220 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:00:15,220 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:00:15,220 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:00:15,220 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:00:15,221 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:00:15,221 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x28319d0>, 'start_response': <function repl_start_response at 0x283cb90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2896a50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x28319d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x251a5d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2896a50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x24d04d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325215.2215321, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x251a5d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2699a50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:00:16,108 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:00:16,109 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:00:16,231 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:00:16,232 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:00:16,233 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:00:16,233 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:00:16,233 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:00:16,233 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:00:16,233 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:00:16,233 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x24da490>, 'start_response': <function repl_start_response at 0x2888c80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x24da690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x24da490>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28315d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x24da690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x200b6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325216.2340269, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x28315d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x24da250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:00:17,116 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:00:17,117 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:00:17,157 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:00:17,159 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:00:17,159 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:00:17,159 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:00:17,159 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:00:17,160 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:00:17,160 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:00:17,160 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x28358d0>, 'start_response': <function repl_start_response at 0x2888cf8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1f16550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1f16790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x28355d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x28358d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1f16810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2835290>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x28355d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1f16850>, 'wsgi.input': <socket._fileobject object at 0x24d0650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325217.1606431, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2835290>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2835990>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6a39d1f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x12655d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:00:18,058 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:00:18,059 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:01:22,543 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:01:22,544 DEBUG [pylons.configuration] Pushing process configuration
++14:01:22,547 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:01:22,547 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:01:22,551 DEBUG [pylons.templating] Initialized Buffet object
++14:01:22,551 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:01:22,558 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695484033296: Initial worker pool
++14:01:22,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695475640592: Initial worker pool
++14:01:22,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695467247888: Initial worker pool
++14:01:22,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695458855184: Initial worker pool
++14:01:22,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695450462480: Initial worker pool
++14:01:22,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695442069776: Initial worker pool
++14:01:22,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695433677072: Initial worker pool
++14:01:22,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695425284368: Initial worker pool
++14:01:22,561 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695416891664: Initial worker pool
++14:01:22,561 DEBUG [paste.httpserver.ThreadPool] Started new worker 140695408498960: Initial worker pool
++14:02:27,243 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:02:27,247 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:02:27,248 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:02:27,308 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:02:27,308 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:02:27,308 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:02:27,309 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:02:27,309 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:02:27,309 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x22e5ad0>, 'start_response': <function repl_start_response at 0x2321b18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x21d5550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x21d5790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x22e5e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x21d5810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x22e5ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x22e58d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x21d5850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x22e5e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x21d5850>, 'wsgi.input': <socket._fileobject object at 0x22ca550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325347.309742, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x22e58d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x22e55d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7ff63cd571c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15245d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:02:28,230 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:02:28,231 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:02:28,358 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:02:28,361 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:02:28,361 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:02:28,361 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:02:28,361 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:02:28,362 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:02:28,362 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:02:28,362 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2797f90>, 'start_response': <function repl_start_response at 0x2795c80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x21d5550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x21d5790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2797890>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2797f90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x21d5810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x22e5950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x21d5850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2797890>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x21d5850>, 'wsgi.input': <socket._fileobject object at 0x22ca6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325348.362679, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x22e5950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x27ead90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7ff63cd571c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15245d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:02:29,268 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:02:29,269 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:02:29,304 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:02:29,305 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:02:29,306 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:02:29,306 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:02:29,306 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:02:29,306 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:02:29,307 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:02:29,306 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x27ea0d0>, 'start_response': <function repl_start_response at 0x27dfed8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x21d5550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x21d5790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x27ea250>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x27ea0d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x21d5810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x27eaf10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x21d5850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x27ea250>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x21d5850>, 'wsgi.input': <socket._fileobject object at 0x22ca5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325349.307339, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x27eaf10>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x27ea210>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7ff63cd571c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15245d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:02:30,233 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:02:30,233 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:02:56,160 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:02:56,160 DEBUG [pylons.configuration] Pushing process configuration
++14:02:56,164 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:02:56,164 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:02:56,167 DEBUG [pylons.templating] Initialized Buffet object
++14:02:56,167 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:02:56,176 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760815585552: Initial worker pool
++14:02:56,176 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760807192848: Initial worker pool
++14:02:56,176 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760798800144: Initial worker pool
++14:02:56,177 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760790407440: Initial worker pool
++14:02:56,177 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760782014736: Initial worker pool
++14:02:56,177 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760773622032: Initial worker pool
++14:02:56,177 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760765229328: Initial worker pool
++14:02:56,178 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760756836624: Initial worker pool
++14:02:56,178 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760748443920: Initial worker pool
++14:02:56,178 DEBUG [paste.httpserver.ThreadPool] Started new worker 139760740051216: Initial worker pool
++14:03:03,636 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:03:03,636 DEBUG [pylons.configuration] Pushing process configuration
++14:03:03,640 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:03:03,640 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:03:03,643 DEBUG [pylons.templating] Initialized Buffet object
++14:03:03,643 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:03:03,651 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731092011280: Initial worker pool
++14:03:03,651 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731083618576: Initial worker pool
++14:03:03,651 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731075225872: Initial worker pool
++14:03:03,652 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731066833168: Initial worker pool
++14:03:03,652 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731058440464: Initial worker pool
++14:03:03,652 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731050047760: Initial worker pool
++14:03:03,653 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731041655056: Initial worker pool
++14:03:03,653 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731033262352: Initial worker pool
++14:03:03,653 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731024869648: Initial worker pool
++14:03:03,653 DEBUG [paste.httpserver.ThreadPool] Started new worker 139731016476944: Initial worker pool
++14:03:12,370 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:03:12,382 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:03:12,384 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:03:12,438 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:03:12,438 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:03:12,438 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:03:12,438 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:03:12,439 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:03:12,438 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x234abd0>, 'start_response': <function repl_start_response at 0x2386b90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x234af10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x234abd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x234a9d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x234af10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x232f550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325392.4393489, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x234a9d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x234a6d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:03:13,468 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:03:13,469 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:03:13,596 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:03:13,598 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:03:13,599 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:03:13,599 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:03:13,599 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:03:13,599 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:03:13,600 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:03:13,599 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x283f5d0>, 'start_response': <function repl_start_response at 0x2804e60>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x283f290>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x283f5d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x234aa50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x283f290>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x232f6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325393.600137, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x234aa50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2806c50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:03:14,488 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:03:14,488 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:03:14,512 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:03:14,514 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:03:14,514 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:03:14,514 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:03:14,515 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:03:14,515 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:03:14,515 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:03:14,515 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2847f50>, 'start_response': <function repl_start_response at 0x2846f50>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2847410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2847f50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283fe90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2847410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x232f5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325394.5158279, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x283fe90>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x283ff10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:03:15,390 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:03:15,391 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:06:35,128 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:06:35,131 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:06:35,134 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:06:35,134 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:06:35,135 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:06:35,135 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:06:35,136 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:06:35,135 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x285f450>, 'start_response': <function repl_start_response at 0x2846f50>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2847750>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x285f450>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2847d90>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2847750>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fce50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325595.1371341, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2847d90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2847350>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:06:36,041 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:06:36,041 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:06:36,147 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:06:36,149 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:06:36,149 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:06:36,149 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:06:36,149 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:06:36,150 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:06:36,150 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:06:36,150 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x285fc50>, 'start_response': <function repl_start_response at 0x2858140>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x285f090>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x285fc50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x285fb50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x285f090>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x232f5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325596.15065, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x285fb50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x285f690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:06:37,075 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:06:37,076 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:06:37,101 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:06:37,103 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:06:37,103 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:06:37,103 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:06:37,104 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:06:37,104 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:06:37,104 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:06:37,104 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x283f890>, 'start_response': <function repl_start_response at 0x28588c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x283fc50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x283f890>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x285f9d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x283fc50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fc9d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266325597.104744, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x285f9d0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x283f7d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:06:37,986 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:06:37,987 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:24,244 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:24,247 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:24,249 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:24,249 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:24,249 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:24,250 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:24,251 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:24,250 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x286de90>, 'start_response': <function repl_start_response at 0x28780c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x286df50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x286de90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283fc90>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x286df50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fc8d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326184.2530739, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x283fc90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x283fd50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:16:24,649 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:24,650 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:24,717 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:24,718 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:24,718 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:24,719 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:24,719 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:24,719 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:24,719 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:24,719 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x285f510>, 'start_response': <function repl_start_response at 0x28588c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x285f5d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x285f510>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x285ff10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x285f5d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fc550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326184.7198801, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x285ff10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x285f650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:16:25,240 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:25,240 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:25,271 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:25,273 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:25,273 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:25,273 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:25,273 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:25,274 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:25,274 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:25,274 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2847710>, 'start_response': <function repl_start_response at 0x2846de8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2847490>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2847710>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x285ff50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2847490>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fcdd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326185.2747359, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x285ff50>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2847110>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:16:25,651 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:25,652 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:27,397 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:27,398 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:27,399 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:27,399 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:27,399 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:27,399 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:27,400 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:27,399 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x286d550>, 'start_response': <function repl_start_response at 0x2878320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x285a910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x286d550>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28476d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x285a910>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fced0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326187.40031, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x28476d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2847e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/', 'action': u'view'}
++14:16:27,809 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:27,810 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:27,938 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:27,939 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:27,940 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:27,940 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:27,940 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:27,940 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:27,941 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:27,940 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2a38290>, 'start_response': <function repl_start_response at 0x2be2758>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2a388d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2a38290>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x286d590>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2a388d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x28657d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326187.941263, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x286d590>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x286dc10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/style-monoblue.css', 'action': u'view'}
++14:16:27,993 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:27,995 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:27,996 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:27,996 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:27,996 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:27,996 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:27,996 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:27,996 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bc0550>, 'start_response': <function repl_start_response at 0x2be2de8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bc03d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bc0550>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2a38090>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bc03d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x27fc4d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326187.9971189, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2a38090>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2be6d50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/hglogo.png', 'action': u'view'}
++14:16:28,726 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:28,726 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:28,858 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:28,859 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:30,957 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:30,959 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:30,959 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:30,959 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:30,959 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:30,960 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:30,960 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:30,960 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2be6b90>, 'start_response': <function repl_start_response at 0x2bd89b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2be6e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2be6b90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2847d50>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2be6e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2a348d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326190.9605949, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2847d50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2bc02d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/hgicon.png', 'action': u'view'}
++14:16:31,350 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:31,351 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:16:31,742 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:16:31,746 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:16:31,747 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:16:31,747 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:16:31,748 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:16:31,748 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:16:31,750 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:16:31,749 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bf7350>, 'start_response': <function repl_start_response at 0x2c070c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bf7490>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bf7350>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2be6b50>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bf7490>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x232f5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326191.7504389, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2be6b50>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2bcc150>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/hglogo.png', 'action': u'view'}
++14:16:32,142 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:16:32,143 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:17:20,403 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:17:20,404 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:17:20,405 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:17:20,405 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:17:20,405 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:17:20,405 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:17:20,406 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:17:20,405 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bf7150>, 'start_response': <function repl_start_response at 0x2bd8848>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bf7410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bf7150>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bf7510>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bf7410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2b95e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326240.4061289, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2bf7510>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2bf7e10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/', 'action': u'view'}
++14:17:21,273 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:17:21,273 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:17:21,338 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:17:21,351 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:17:21,352 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:17:21,352 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:17:21,352 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:17:21,352 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:17:21,353 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:17:21,352 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2c04d90>, 'start_response': <function repl_start_response at 0x2c079b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2c04950>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2c04d90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283fad0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2c04950>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2a348d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326241.353133, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x283fad0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2be6a10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/style-monoblue.css', 'action': u'view'}
++14:17:22,240 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:17:22,241 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:17:22,271 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:17:22,272 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:17:22,273 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:17:22,273 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:17:22,273 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:17:22,273 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:17:22,274 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:17:22,273 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x286d1d0>, 'start_response': <function repl_start_response at 0x2c07140>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bb45d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x286d1d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2be69d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bb45d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2b95e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326242.274209, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2be69d0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2be60d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/hglogo.png', 'action': u'view'}
++14:17:23,152 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:17:23,152 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:17:24,348 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:17:24,351 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:17:24,352 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:17:24,353 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:17:24,353 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:17:24,354 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:17:24,355 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:17:24,354 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2c04490>, 'start_response': <function repl_start_response at 0x2bd8cf8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2c04690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2c04490>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2be6bd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2c04690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2bc9dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326244.355767, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2be6bd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2be6910>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/static/hgicon.png', 'action': u'view'}
++14:17:25,370 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:17:25,370 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:32,579 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:32,581 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:32,581 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:32,581 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:32,581 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:32,582 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:32,582 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:32,582 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2c04610>, 'start_response': <function repl_start_response at 0x2bd8500>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2c04c10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2c04610>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28474d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2c04c10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2b95e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326312.5827019, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x28474d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2c04390>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/', 'action': u'view'}
++14:18:32,590 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 404 Not Found
++14:18:32,590 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:36,995 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:36,998 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:36,999 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:36,999 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:36,999 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:37,000 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:37,001 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:37,000 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e21dd0>, 'start_response': <function repl_start_response at 0x2e276e0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e21e50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e21dd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283f650>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e21e50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18350 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326317.00142, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x283f650>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2c45a10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:18:37,013 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:18:37,015 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:37,075 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:37,077 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:37,077 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:37,077 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:37,077 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:37,078 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:37,078 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:37,078 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e2cb10>, 'start_response': <function repl_start_response at 0x2e27c80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e2cbd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e2cb10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e2c9d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e2cbd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e184d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326317.0785949, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2e2c9d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e2c650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:18:37,086 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:18:37,086 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:37,136 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:37,151 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:37,151 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:37,151 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:37,151 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:37,152 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:37,152 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:37,152 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e21bd0>, 'start_response': <function repl_start_response at 0x2e27aa0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e2c8d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e21bd0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e21dd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e2c8d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18ad0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326317.1526201, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2e21dd0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e21f10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:18:37,160 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:18:37,160 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:49,068 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:49,071 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:49,073 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:49,073 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:49,073 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:49,074 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:49,074 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:49,074 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e30590>, 'start_response': <function repl_start_response at 0x2e34140>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e30650>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e30590>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e2c350>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e30650>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e188d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326329.0748241, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e2c350>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e21e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:18:49,082 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:18:49,082 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:49,132 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:49,133 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:49,134 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:49,134 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:49,134 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:49,134 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:49,135 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:49,134 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e3b290>, 'start_response': <function repl_start_response at 0x2e347d0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e3b350>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e3b290>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e303d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e3b350>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326329.1352501, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e303d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e3bad0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:18:49,142 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:18:49,142 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:18:49,173 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:18:49,174 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:18:49,175 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:18:49,175 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:18:49,175 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:18:49,175 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:18:49,175 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:18:49,175 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e47a10>, 'start_response': <function repl_start_response at 0x2e34de8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e478d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e47a10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bf7cd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e478d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326329.1760299, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2bf7cd0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e3bd90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:18:49,184 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:18:49,184 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:36,908 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:36,915 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:36,915 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:36,915 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:36,916 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:36,916 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:36,916 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:36,916 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e47bd0>, 'start_response': <function repl_start_response at 0x2ea9398>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e47c90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e47bd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e3bfd0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e47c90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326376.9168589, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e3bfd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e3bf50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:19:36,924 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:36,925 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:36,978 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:36,980 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:36,980 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:36,980 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:36,980 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:36,980 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:36,981 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:36,981 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e3b7d0>, 'start_response': <function repl_start_response at 0x2e348c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e3bf90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e3b7d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e30f90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e3bf90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e183d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326376.9815509, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e30f90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e30310>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:19:36,990 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:36,990 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:37,014 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:37,015 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:37,015 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:37,016 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:37,016 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:37,016 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:37,016 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:37,016 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e2c8d0>, 'start_response': <function repl_start_response at 0x2e34230>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e2c850>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e2c8d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e3bc10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e2c850>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e185d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326377.0169389, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e3bc10>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e3bad0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:19:37,026 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:37,029 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:42,385 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:42,386 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:42,387 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:42,387 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:42,387 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:42,387 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:42,388 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:42,387 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e21ad0>, 'start_response': <function repl_start_response at 0x2e27500>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e21f10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e21ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e2c5d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e21f10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18ad0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326382.38815, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e2c5d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e3bcd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:19:42,395 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:42,396 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:42,480 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:42,481 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:42,482 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:42,482 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:42,482 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:42,482 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:42,482 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:42,482 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2eaf790>, 'start_response': <function repl_start_response at 0x2ea9050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2eaf890>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2eaf790>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e21e10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2eaf890>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18350 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326382.483063, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e21e10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e47a50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:19:42,490 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:42,491 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:42,512 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:42,514 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:42,514 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:42,514 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:42,514 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:42,514 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:42,515 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:42,515 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2eafd50>, 'start_response': <function repl_start_response at 0x2ea9938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2eafe10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2eafd50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e47c50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2eafe10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326382.5155439, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e47c50>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2eafa90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:19:42,527 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:42,528 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:46,869 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:46,872 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:46,874 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:46,874 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:46,875 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:46,875 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:46,877 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:46,875 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e47190>, 'start_response': <function repl_start_response at 0x2e346e0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e47910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e47190>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e21cd0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e47910>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326386.8773191, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e21cd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e47750>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:19:47,267 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:47,268 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:47,332 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:47,333 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:47,333 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:47,333 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:47,333 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:47,334 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:47,334 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:47,334 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bfa110>, 'start_response': <function repl_start_response at 0x2e34c08>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bfab10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bfa110>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e47490>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bfab10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326387.334677, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2e47490>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2bfa090>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:19:47,709 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:47,709 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:19:47,734 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:19:47,735 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:19:47,736 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:19:47,736 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:19:47,736 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:19:47,736 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:19:47,737 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:19:47,736 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bd9fd0>, 'start_response': <function repl_start_response at 0x2e27aa0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2239550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2239790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bd95d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bd9fd0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2239810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bfa210>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bd95d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2239850>, 'wsgi.input': <socket._fileobject object at 0x2e18e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326387.737325, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2bfa210>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x285a810>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f15b29701c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15885d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:19:48,114 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:19:48,115 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:21:44,106 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:21:44,106 DEBUG [pylons.configuration] Pushing process configuration
++14:21:44,110 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:21:44,110 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:21:44,113 DEBUG [pylons.templating] Initialized Buffet object
++14:21:44,113 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:21:44,121 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535651760400: Initial worker pool
++14:21:44,122 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535643367696: Initial worker pool
++14:21:44,122 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535634974992: Initial worker pool
++14:21:44,122 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535618189584: Initial worker pool
++14:21:44,122 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535626582288: Initial worker pool
++14:21:44,123 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535609796880: Initial worker pool
++14:21:44,123 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535601404176: Initial worker pool
++14:21:44,123 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535593011472: Initial worker pool
++14:21:44,124 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535584618768: Initial worker pool
++14:21:44,124 DEBUG [paste.httpserver.ThreadPool] Started new worker 140535576226064: Initial worker pool
++14:21:47,373 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:21:47,380 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:21:47,381 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:21:47,431 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:21:47,431 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:21:47,432 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:21:47,432 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:21:47,432 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:21:47,432 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x224cbd0>, 'start_response': <function repl_start_response at 0x2289b90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x224cf10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x224cbd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x224c9d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x224cf10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2231550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326507.4328599, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x224c9d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x224c6d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:21:47,812 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:21:47,813 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:21:47,909 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:21:47,911 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:21:47,912 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:21:47,912 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:21:47,912 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:21:47,912 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:21:47,913 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:21:47,912 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2742210>, 'start_response': <function repl_start_response at 0x26ffe60>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x27420d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2742210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x224ca50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x27420d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22316d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326507.9131441, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x224ca50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2701f90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:21:48,309 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:21:48,309 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:21:48,354 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:21:48,355 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:21:48,356 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:21:48,356 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:21:48,356 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:21:48,356 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:21:48,357 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:21:48,356 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2834ad0>, 'start_response': <function repl_start_response at 0x274af50>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2834a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2834ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834890>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2834a90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326508.3574049, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834890>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2742e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:21:48,741 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:21:48,742 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:21:57,864 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:21:57,866 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:21:57,866 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:21:57,866 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:21:57,866 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:21:57,867 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:21:57,867 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:21:57,867 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x274be90>, 'start_response': <function repl_start_response at 0x274af50>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x274b610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x274be90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834850>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x274b610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7bd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326517.868046, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834850>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x28341d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:21:58,251 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:21:58,251 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:21:58,340 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:21:58,342 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:21:58,342 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:21:58,342 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:21:58,342 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:21:58,342 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:21:58,343 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:21:58,343 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x274b150>, 'start_response': <function repl_start_response at 0x275b0c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x274bd90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x274b150>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834250>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x274bd90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326518.343477, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834250>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x28347d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:21:58,723 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:21:58,724 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:21:58,764 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:21:58,765 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:21:58,766 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:21:58,766 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:21:58,766 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:21:58,766 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:21:58,767 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:21:58,766 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2742ed0>, 'start_response': <function repl_start_response at 0x275b8c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2742410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2742ed0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274bbd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2742410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326518.767339, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x274bbd0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2742c10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:21:59,153 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:21:59,153 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:08,830 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:08,833 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:08,834 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:08,835 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:08,835 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:08,835 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:08,840 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:08,836 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x275d710>, 'start_response': <function repl_start_response at 0x27710c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x275d6d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x275d710>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2742b90>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x275d6d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f78d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326528.8408921, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2742b90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2742690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:22:08,848 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:08,848 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:08,898 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:08,899 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:08,900 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:08,900 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:08,900 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:08,900 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:08,901 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:08,900 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x275d950>, 'start_response': <function repl_start_response at 0x275bc80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x275d390>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x275d950>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x275d2d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x275d390>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326528.901237, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x275d2d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275d550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:22:08,911 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:08,913 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:08,938 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:08,939 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:08,940 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:08,940 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:08,940 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:08,940 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:08,940 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:08,940 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2701ad0>, 'start_response': <function repl_start_response at 0x275b0c8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2701b10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2701ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2742d90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2701b10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f79d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326528.9410501, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2742d90>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2742850>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:22:08,949 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:08,949 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:19,826 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:19,828 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:19,829 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:19,829 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:19,829 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:19,829 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:19,830 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:19,830 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2834fd0>, 'start_response': <function repl_start_response at 0x2771140>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2834610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2834fd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274b090>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2834610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326539.830708, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x274b090>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2742dd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:22:19,840 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:19,840 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:19,895 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:19,902 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:19,902 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:19,902 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:19,903 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:19,903 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:19,903 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:19,903 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768e50>, 'start_response': <function repl_start_response at 0x2771758>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768f10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768e50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834750>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768f10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326539.9037421, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834750>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2768b90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:22:19,911 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:19,912 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:19,934 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:19,937 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:19,937 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:19,937 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:19,938 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:19,938 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:19,938 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:19,938 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x274b410>, 'start_response': <function repl_start_response at 0x275b320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x274b590>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x274b410>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274bd90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x274b590>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326539.938771, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x274bd90>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x274b290>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:22:19,946 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:19,946 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:44,133 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:44,134 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:44,135 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:44,135 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:44,135 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:44,135 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:44,136 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:44,135 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2742b50>, 'start_response': <function repl_start_response at 0x275bb90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2742410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2742b50>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28348d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2742410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326564.1362531, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x28348d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x274bcd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:22:44,144 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:44,144 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:44,202 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:44,208 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:44,209 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:44,209 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:44,209 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:44,209 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:44,209 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:44,209 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768450>, 'start_response': <function repl_start_response at 0x26ff848>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768250>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768450>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2742c10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768250>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326564.2100461, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2742c10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2768110>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:22:44,217 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:44,217 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:22:44,248 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:22:44,250 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:22:44,250 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:22:44,250 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:22:44,250 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:22:44,250 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:22:44,251 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:22:44,251 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x27753d0>, 'start_response': <function repl_start_response at 0x2771410>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2775590>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x27753d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2768190>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2775590>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326564.2515631, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2768190>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275d650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:22:44,259 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:22:44,260 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:23:21,973 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:23:21,975 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:23:21,976 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:23:21,976 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:23:21,977 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:23:21,977 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:23:21,977 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:23:21,977 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2835590>, 'start_response': <function repl_start_response at 0x2771ed8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2775d10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2835590>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2742910>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2775d10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765bd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326601.9777651, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2742910>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275db10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:23:21,985 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:23:21,986 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:23:22,036 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:23:22,037 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:23:22,038 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:23:22,038 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:23:22,038 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:23:22,038 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:23:22,039 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:23:22,038 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768610>, 'start_response': <function repl_start_response at 0x27711b8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768b50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768610>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x275d2d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768b50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f75d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326602.039372, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x275d2d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275d550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:23:22,047 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:23:22,050 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:23:22,084 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:23:22,085 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:23:22,086 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:23:22,086 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:23:22,086 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:23:22,086 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:23:22,086 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:23:22,086 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x27421d0>, 'start_response': <function repl_start_response at 0x275b6e0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2742a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x27421d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x27685d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2742a90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326602.0870399, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x27685d0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2768290>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:23:22,095 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:23:22,095 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:23:46,420 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:23:46,422 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:23:46,423 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:23:46,423 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:23:46,424 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:23:46,424 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:23:46,425 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:23:46,424 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2834650>, 'start_response': <function repl_start_response at 0x275b668>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x28340d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2834650>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x275da50>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x28340d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326626.4255519, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x275da50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2742990>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:23:46,452 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:23:46,452 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:23:46,501 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:23:46,508 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:23:46,509 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:23:46,509 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:23:46,509 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:23:46,509 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:23:46,509 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:23:46,509 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2835a90>, 'start_response': <function repl_start_response at 0x28382a8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2835b50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2835a90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834710>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2835b50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326626.509958, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834710>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2835890>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:23:46,518 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:23:46,518 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:23:46,554 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:23:46,555 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:23:46,556 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:23:46,556 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:23:46,556 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:23:46,556 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:23:46,556 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:23:46,556 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2835690>, 'start_response': <function repl_start_response at 0x275b578>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2835910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2835690>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274bdd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2835910>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326626.55707, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x274bdd0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x274bbd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:23:46,565 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:23:46,565 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:09,802 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:09,804 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:09,804 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:09,804 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:09,804 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:09,804 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:09,805 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:09,805 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x28346d0>, 'start_response': <function repl_start_response at 0x275bc80>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2834210>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x28346d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274be50>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2834210>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326649.8055999, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x274be50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x274b490>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:24:09,813 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:09,813 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:09,872 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:09,879 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:09,879 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:09,879 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:09,879 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:09,879 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:09,880 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:09,880 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768410>, 'start_response': <function repl_start_response at 0x27716e0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768090>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768410>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834ad0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768090>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326649.8804009, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834ad0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2768590>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:24:09,888 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:09,888 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:09,924 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:09,925 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:09,926 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:09,926 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:09,926 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:09,926 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:09,926 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:09,926 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x27755d0>, 'start_response': <function repl_start_response at 0x2838b90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x27754d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x27755d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2768110>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x27754d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326649.9270909, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2768110>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275d350>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:24:09,935 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:09,935 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:16,209 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:16,212 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:16,212 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:16,212 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:16,213 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:16,213 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:16,214 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:16,213 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x283bf50>, 'start_response': <function repl_start_response at 0x28388c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x283bfd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x283bf50>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x275dc10>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x283bfd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326656.2142651, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x275dc10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275d050>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:24:16,221 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:16,221 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:16,272 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:16,278 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:16,278 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:16,278 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:16,279 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:16,279 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:16,279 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:16,279 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x275de90>, 'start_response': <function repl_start_response at 0x26ff848>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x275df90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x275de90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283bf10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x275df90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326656.279717, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x283bf10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x275da10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:24:16,287 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:16,287 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:16,308 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:16,309 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:16,310 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:16,310 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:16,310 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:16,310 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:16,310 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:16,310 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768110>, 'start_response': <function repl_start_response at 0x275bb90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768110>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x275db50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765c50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326656.311023, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x275db50>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2701cd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:24:16,318 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:16,318 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:29,290 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:29,293 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:29,293 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:29,293 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:29,294 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:29,294 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:29,294 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:29,294 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2834f50>, 'start_response': <function repl_start_response at 0x275b938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2834d90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2834f50>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2742f90>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2834d90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326669.2947919, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2742f90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x27681d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:24:30,172 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:30,173 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:30,244 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:30,246 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:30,246 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:30,246 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:30,246 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:30,246 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:30,247 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:30,246 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x284aa10>, 'start_response': <function repl_start_response at 0x2838050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x284ac10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x284aa10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834210>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x284ac10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765950 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326670.247329, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2834210>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x274b050>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:24:31,169 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:31,170 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:24:31,203 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:24:31,204 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:24:31,205 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:24:31,205 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:24:31,205 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:24:31,205 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:24:31,206 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:24:31,205 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x274b210>, 'start_response': <function repl_start_response at 0x275b9b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x274b310>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x274b210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x284a350>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x274b310>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326671.2062581, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x284a350>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2835490>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:24:32,103 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:24:32,103 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:27:23,395 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:27:23,404 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:27:23,405 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:27:23,405 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:27:23,406 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:27:23,406 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:27:23,407 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:27:23,406 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768750>, 'start_response': <function repl_start_response at 0x26ff848>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x27685d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768750>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274bed0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x27685d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326843.4072709, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x274bed0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2835210>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:27:24,283 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:27:24,283 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:27:24,364 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:27:24,374 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:27:24,375 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:27:24,375 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:27:24,375 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:27:24,375 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:27:24,376 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:27:24,375 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x283b1d0>, 'start_response': <function repl_start_response at 0x27716e0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-monoblue.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x283bb10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x283b1d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2768610>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-monoblue.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x283bb10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x27651d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326844.3763511, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2768610>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x283b950>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-monoblue.css', 'action': u'view'}
++14:27:25,256 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:27:25,256 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:27:25,294 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:27:25,295 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:27:25,295 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:27:25,296 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:27:25,296 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:27:25,296 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:27:25,296 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:27:25,296 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x28347d0>, 'start_response': <function repl_start_response at 0x2838e60>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2834e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x28347d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283bf10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2834e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765a50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266326845.2969921, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x283bf10>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2775c50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:27:26,205 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:27:26,206 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:15,330 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:15,332 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:15,332 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:15,332 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:15,332 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:15,332 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:15,333 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:15,333 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x284a1d0>, 'start_response': <function repl_start_response at 0x2771230>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x284add0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x284a1d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x284a850>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x284add0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x22315d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327555.3335979, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x284a850>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x284a250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:39:16,314 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:16,316 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:16,439 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:16,440 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:16,441 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:16,441 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:16,441 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:16,441 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:16,442 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:16,441 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2835f50>, 'start_response': <function repl_start_response at 0x27712a8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2835c90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2835f50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x284ad90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2835c90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327556.4422629, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x284ad90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2835350>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-paper.css', 'action': u'view'}
++14:39:17,326 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:17,328 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:17,382 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:17,383 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:17,384 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:17,384 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:17,384 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:17,384 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:17,385 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:17,384 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768190>, 'start_response': <function repl_start_response at 0x275bb90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768190>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28351d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768910>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7450 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327557.385169, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x28351d0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2768290>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:39:18,296 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:18,344 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:30,511 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:30,515 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:30,516 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:30,516 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:30,516 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:30,517 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:30,517 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:30,517 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x274bcd0>, 'start_response': <function repl_start_response at 0x275bf50>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x274b090>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x274bcd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2768690>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x274b090>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327570.5176101, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2768690>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x27683d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:39:31,435 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:31,435 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:31,511 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:31,513 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:31,513 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:31,513 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:31,513 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:31,513 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:31,514 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:31,514 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2768c10>, 'start_response': <function repl_start_response at 0x275b7d0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2768050>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2768c10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x274b150>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2768050>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f73d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327571.5145171, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x274b150>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2834a90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-paper.css', 'action': u'view'}
++14:39:32,427 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:32,427 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:32,463 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:32,465 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:32,465 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:32,465 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:32,465 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:32,465 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:32,466 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:32,466 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x284a710>, 'start_response': <function repl_start_response at 0x275bb18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x284af90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x284a710>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2768d50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x284af90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7bd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327572.466469, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2768d50>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2768710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hglogo.png', 'action': u'view'}
++14:39:33,399 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:33,399 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:42,098 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:42,101 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:42,102 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:42,102 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:42,103 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:42,103 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:42,104 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:42,104 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x283bd50>, 'start_response': <function repl_start_response at 0x27719b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x283b850>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x283bd50>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x284a150>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x283b850>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f79d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327582.1046491, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x284a150>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x284a550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:39:43,072 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:43,074 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:43,208 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:43,210 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:43,210 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:43,210 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:43,211 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:43,211 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:43,211 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:43,211 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2775750>, 'start_response': <function repl_start_response at 0x2771230>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2775590>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2775750>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x283b650>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2775590>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f74d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327583.2118199, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x283b650>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2775e90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:39:44,110 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:44,111 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:49,729 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:49,736 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:49,736 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:49,737 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:49,737 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:49,737 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:49,737 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:49,737 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x275d190>, 'start_response': <function repl_start_response at 0x26ff488>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/lotto/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x275db90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x275d190>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2775e50>, {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x275db90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x26f7dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327589.7378261, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2775e50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2775450>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'lotto/', 'action': u'view'}
++14:39:50,672 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:50,673 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:50,790 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:50,802 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:50,802 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:50,802 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:50,802 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:50,803 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:50,803 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:50,803 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x29c32d0>, 'start_response': <function repl_start_response at 0x2b4d398>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x29c34d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x29c32d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x29b9250>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x29c34d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765b50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327590.8036101, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x29b9250>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x283b910>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:39:51,724 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:51,772 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:53,590 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:53,591 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:53,592 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:53,592 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:53,592 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:53,592 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:53,592 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:53,592 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b44650>, 'start_response': <function repl_start_response at 0x2b4de60>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/lotto/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b44690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b44650>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x29c3110>, {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b44690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x27651d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327593.592931, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x29c3110>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2775f90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'lotto/shortlog', 'action': u'view'}
++14:39:54,496 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:54,496 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:54,546 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:54,547 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:54,548 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:54,548 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:54,548 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:54,548 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:54,548 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:54,548 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b448d0>, 'start_response': <function repl_start_response at 0x2b5d578>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/shortlog', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b2dd10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b448d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2835910>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b2dd10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x29e64d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327594.5489669, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2835910>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x29c3190>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:39:55,458 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:39:55,459 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:39:59,737 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:39:59,741 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:39:59,742 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:39:59,742 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:39:59,743 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:39:59,743 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:39:59,744 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:39:59,744 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b5ec90>, 'start_response': <function repl_start_response at 0x2bee050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/shortlog', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/log/11'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/lotto/log/11', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b5eb10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b5ec90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2768250>, {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/log/11'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b5eb10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2765b50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327599.7453101, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2768250>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x29c3310>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'lotto/log/11', 'action': u'view'}
++14:40:00,658 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:00,659 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:00,721 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:00,722 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:00,722 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:00,723 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:00,723 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:00,723 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:00,723 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:00,723 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x29b9f10>, 'start_response': <function repl_start_response at 0x2bee848>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/log/11', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2a1ab10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x29b9f10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b5e650>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2a1ab10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x29e64d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327600.723855, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b5e650>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b5ed50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:40:01,610 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:01,659 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:07,647 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:07,651 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:07,652 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:07,652 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:07,653 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:07,653 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:07,654 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:07,654 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bf5850>, 'start_response': <function repl_start_response at 0x2c002a8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/log/11', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/graph'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/lotto/graph', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bf5750>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bf5850>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2834dd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'lotto/graph'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bf5750>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2a11cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327607.6552601, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2834dd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b5edd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'lotto/graph', 'action': u'view'}
++14:40:08,569 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:08,569 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:08,621 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:08,622 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:08,622 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:08,623 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:08,623 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:08,623 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:08,623 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:08,623 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2b2da50>, 'start_response': <function repl_start_response at 0x2c1c500>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/graph', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b2df10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b2da50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x284a6d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b2df10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x29e64d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327608.6238811, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x284a6d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x29c3150>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:40:08,696 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:08,698 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:08,698 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:08,698 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:08,698 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:08,698 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:08,699 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:08,698 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2c05950>, 'start_response': <function repl_start_response at 0x2c1c8c0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x213b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/lotto/graph', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/graph.js'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x213b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/graph.js', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2c05990>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2c05950>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x213b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2b2ded0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/graph.js'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2c05990>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x213b850>, 'wsgi.input': <socket._fileobject object at 0x2bfe0d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327608.6993721, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2b2ded0>, 'HTTP_ACCEPT': '*/*', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2c05ed0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd1061681c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x148c550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/graph.js', 'action': u'view'}
++14:40:09,802 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:09,802 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:10,433 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:10,433 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:32,661 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:40:32,661 DEBUG [pylons.configuration] Pushing process configuration
++14:40:32,665 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:40:32,665 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:40:32,668 DEBUG [pylons.templating] Initialized Buffet object
++14:40:32,668 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:40:32,676 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054498146576: Initial worker pool
++14:40:32,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054489753872: Initial worker pool
++14:40:32,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054481361168: Initial worker pool
++14:40:32,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054472968464: Initial worker pool
++14:40:32,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054464575760: Initial worker pool
++14:40:32,678 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054456183056: Initial worker pool
++14:40:32,678 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054447790352: Initial worker pool
++14:40:32,679 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054439397648: Initial worker pool
++14:40:32,679 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054431004944: Initial worker pool
++14:40:32,679 DEBUG [paste.httpserver.ThreadPool] Started new worker 140054422612240: Initial worker pool
++14:40:36,608 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:36,611 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:36,612 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:36,665 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:40:36,665 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:36,665 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:36,665 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:36,666 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:36,666 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2fcab90>, 'start_response': <function repl_start_response at 0x3006b90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2eb9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2eb9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2fcaed0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2eb9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2fcab90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2fca990>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2fcaed0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'wsgi.input': <socket._fileobject object at 0x2faf550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327636.666698, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2fca990>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2fca690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f60ff1901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22085d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:40:37,546 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:37,547 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:37,656 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:37,659 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:37,659 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:37,659 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:37,659 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:37,659 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:37,660 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:37,659 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3585450>, 'start_response': <function repl_start_response at 0x3484d70>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2eb9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2eb9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x35854d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3585450>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2eb9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2fcaa10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x35854d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'wsgi.input': <socket._fileobject object at 0x2faf6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327637.660351, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2fcaa10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3486c50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f60ff1901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22085d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:40:38,534 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:38,534 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:54,108 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:54,109 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:54,110 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:54,110 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:54,110 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:54,110 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:54,110 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:54,110 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3565250>, 'start_response': <function repl_start_response at 0x357ce60>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2eb9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'slavehack_hack/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2eb9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/slavehack_hack/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3565650>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3565250>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2eb9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3565e50>, {'action': u'view', 'controller': u'hg', 'path_info': 'slavehack_hack/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3565650>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'wsgi.input': <socket._fileobject object at 0x2faf5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327654.1110981, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3565e50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3585650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f60ff1901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22085d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'slavehack_hack/', 'action': u'view'}
++14:40:55,000 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:55,000 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:40:55,134 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:40:55,135 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:40:55,136 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:40:55,136 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:40:55,136 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:40:55,136 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:40:55,136 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:40:55,136 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x380b690>, 'start_response': <function repl_start_response at 0x3846050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2eb9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/slavehack_hack/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2eb9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x380b050>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x380b690>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2eb9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x366acd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x380b050>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'wsgi.input': <socket._fileobject object at 0x347c750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327655.13709, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x366acd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3587f10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f60ff1901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22085d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:40:55,988 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:40:55,988 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:41:13,941 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:41:13,950 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:41:13,951 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:41:13,952 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:41:13,952 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:41:13,952 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:41:13,954 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:41:13,953 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x380b710>, 'start_response': <function repl_start_response at 0x3844050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2eb9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2eb9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x380b510>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2eb9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x380b710>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x380b350>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x380b510>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'wsgi.input': <socket._fileobject object at 0x347c5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327673.954361, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x380b350>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3565f10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f60ff1901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22085d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:41:14,828 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:41:14,829 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:41:14,899 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:41:14,901 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:41:14,901 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:41:14,901 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:41:14,901 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:41:14,902 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:41:14,902 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:41:14,902 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3587550>, 'start_response': <function repl_start_response at 0x358a2a8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2eb9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2eb9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3587250>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3587550>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2eb9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x380b050>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3587250>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2eb9850>, 'wsgi.input': <socket._fileobject object at 0x358b0d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327674.9026921, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x380b050>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3585550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f60ff1901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22085d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:41:15,762 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:41:15,763 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:42:03,654 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:42:03,655 DEBUG [pylons.configuration] Pushing process configuration
++14:42:03,658 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:42:03,658 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:42:03,661 DEBUG [pylons.templating] Initialized Buffet object
++14:42:03,661 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:42:03,670 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889227299088: Initial worker pool
++14:42:03,670 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889218906384: Initial worker pool
++14:42:03,670 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889210513680: Initial worker pool
++14:42:03,671 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889202120976: Initial worker pool
++14:42:03,671 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889193728272: Initial worker pool
++14:42:03,671 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889185335568: Initial worker pool
++14:42:03,671 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889176942864: Initial worker pool
++14:42:03,672 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889168550160: Initial worker pool
++14:42:03,672 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889160157456: Initial worker pool
++14:42:03,672 DEBUG [paste.httpserver.ThreadPool] Started new worker 139889151764752: Initial worker pool
++14:42:56,070 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:42:56,070 DEBUG [pylons.configuration] Pushing process configuration
++14:42:56,073 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:42:56,074 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:42:56,077 DEBUG [pylons.templating] Initialized Buffet object
++14:42:56,077 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:42:56,085 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392929880336: Initial worker pool
++14:42:56,086 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392921487632: Initial worker pool
++14:42:56,086 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392913094928: Initial worker pool
++14:42:56,086 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392904702224: Initial worker pool
++14:42:56,087 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392896309520: Initial worker pool
++14:42:56,087 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392887916816: Initial worker pool
++14:42:56,087 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392879524112: Initial worker pool
++14:42:56,088 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392871131408: Initial worker pool
++14:42:56,088 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392862738704: Initial worker pool
++14:42:56,089 DEBUG [paste.httpserver.ThreadPool] Started new worker 140392854346000: Initial worker pool
++14:42:58,459 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:42:58,462 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:42:58,463 DEBUG [pylons.wsgiapp] No controller found, returning 404 HTTP Not Found
++14:42:58,463 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:42:58,464 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'error'
++14:42:58,491 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.error', class: 'ErrorController'
++14:42:58,491 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:42:58,491 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:42:58,491 DEBUG [pylons.controllers.core] Looking for u'document' method to handle the request
++14:42:58,491 DEBUG [pylons.controllers.core] Calling 'document' method with keyword args: **{}
++14:42:58,492 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:42:58,492 DEBUG [pylons.templating] Created render namespace with pylons vars: {'c': <pylons.util.AttribSafeContextObj at 0x232a150 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'ungettext': <function ungettext at 0x1d17758>, 'g': <pylons_app.lib.app_globals.Globals object at 0x21d3690>, 'url': <routes.util.URLGenerator object at 0x22e2f90>, 'h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'request': <Request at 0x232a050 GET http://127.0.0.1:5000/error/document>, 'tmpl_context': <pylons.util.AttribSafeContextObj at 0x232a150 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'translator': <gettext.GNUTranslations instance at 0x2328e18>, 'session': {'_accessed_time': 1266327778.492738, '_creation_time': 1266321971.558501}, 'N_': <function gettext_noop at 0x1d17410>, 'app_globals': <pylons_app.lib.app_globals.Globals object at 0x21d3690>, 'config': {'error_email_from': 'paste_error@localhost', 'beaker.session.auto': 'True', 'pylons.paths': {'templates': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'controllers': '/home/marcink/python_workspace/hg_app/pylons_app/controllers', 'static_files': '/home/marcink/python_workspace/hg_app/pylons_app/public', 'root': '/home/marcink/python_workspace/hg_app/pylons_app'}, 'logview.sqlalchemy': '#faa', 'pylons.errorware': {'debug': True}, 'pylons.response_options': {'headers': {'Pragma': 'no-cache', 'Cache-Control': 'no-cache'}, 'errors': 'strict', 'charset': 'utf-8', 'content_type': 'text/html'}, 'beaker.session.type': 'file', 'pylons.c_attach_args': True, 'logview.pylons.templating': '#bfb', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'smtp_server': 'localhost', 'app_conf': {'lang': 'en', 'beaker.session.auto': 'True', 'logview.pylons.templating': '#bfb', 'package': 'pylons_app', 'beaker.session.timeout': '3600', 'logview.sqlalchemy': '#faa', 'cache_dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'beaker.session.type': 'file'}, 'pylons.cache_dir': '/home/marcink/python_workspace/hg_app/data', 'buffet.template_engines': [{'engine': 'mako', 'alias': None, 'template_root': '', 'template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}}], 'buffet.template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}, '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'routes.map': <routes.mapper.Mapper object at 0x21d34d0>, 'here': '/home/marcink/python_workspace/hg_app', 'email_to': 'marcin.kuzminski@etelko.pl', 'pylons.h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'pylons.package': 'pylons_app', 'pylons.g': <pylons_app.lib.app_globals.Globals object at 0x21d3690>, 'lang': 'en', 'global_conf': {'error_email_from': 'paste_error@localhost', 'email_to': 'marcin.kuzminski@etelko.pl', 'debug': 'true', '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'smtp_server': 'localhost', 'here': '/home/marcink/python_workspace/hg_app'}, 'package': 'pylons_app', 'cache.dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.timeout': '3600', 'pylons.request_options': {'errors': 'replace', 'decode_param_names': False, 'charset': 'utf-8', 'language': 'en-us'}, 'pylons.db_engines': {}, 'pylons.strict_c': False, 'beaker.cache.data_dir': '/home/marcink/python_workspace/hg_app/data/cache', 'debug': True, 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'beaker.session.data_dir': '/home/marcink/python_workspace/hg_app/data/sessions'}, 'response': <Response at 0x232a090 200 OK>, '_': <function ugettext at 0x1d17578>}
++14:42:58,494 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:42:58,494 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:43:01,083 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:43:01,085 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:01,085 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:43:01,130 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:43:01,130 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:43:01,130 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:43:01,130 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:43:01,131 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:43:01,131 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x254cf90>, 'start_response': <function repl_start_response at 0x2550ed8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x21d3610>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x21d3890>>, 'SCRIPT_NAME': '/hg', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x254ce90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x21d3910>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x254cf90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x255bc90>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x21d3950>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x254ce90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x21d3950>, 'wsgi.input': <socket._fileobject object at 0x22c96d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327781.1315889, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x255bc90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x255ba50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fafcb3371c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15245d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:43:02,028 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:43:02,028 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:43:02,100 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:43:02,102 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:02,102 DEBUG [pylons.wsgiapp] No controller found, returning 404 HTTP Not Found
++14:43:02,103 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:02,103 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'error'
++14:43:02,103 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:43:02,103 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:43:02,104 DEBUG [pylons.controllers.core] Looking for u'document' method to handle the request
++14:43:02,104 DEBUG [pylons.controllers.core] Calling 'document' method with keyword args: **{}
++14:43:02,104 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:43:02,104 DEBUG [pylons.templating] Created render namespace with pylons vars: {'c': <pylons.util.AttribSafeContextObj at 0x2822bd0 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'ungettext': <function ungettext at 0x1d17758>, 'g': <pylons_app.lib.app_globals.Globals object at 0x21d3690>, 'url': <routes.util.URLGenerator object at 0x2822710>, 'h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'request': <Request at 0x2822350 GET http://127.0.0.1:5000/error/document>, 'tmpl_context': <pylons.util.AttribSafeContextObj at 0x2822bd0 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'translator': <gettext.GNUTranslations instance at 0x2820368>, 'session': {'_accessed_time': 1266327782.104913, '_creation_time': 1266321971.558501}, 'N_': <function gettext_noop at 0x1d17410>, 'app_globals': <pylons_app.lib.app_globals.Globals object at 0x21d3690>, 'config': {'error_email_from': 'paste_error@localhost', 'beaker.session.auto': 'True', 'pylons.paths': {'templates': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'controllers': '/home/marcink/python_workspace/hg_app/pylons_app/controllers', 'static_files': '/home/marcink/python_workspace/hg_app/pylons_app/public', 'root': '/home/marcink/python_workspace/hg_app/pylons_app'}, 'logview.sqlalchemy': '#faa', 'pylons.errorware': {'debug': True}, 'pylons.response_options': {'headers': {'Pragma': 'no-cache', 'Cache-Control': 'no-cache'}, 'errors': 'strict', 'charset': 'utf-8', 'content_type': 'text/html'}, 'beaker.session.type': 'file', 'pylons.c_attach_args': True, 'logview.pylons.templating': '#bfb', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'smtp_server': 'localhost', 'app_conf': {'lang': 'en', 'beaker.session.auto': 'True', 'logview.pylons.templating': '#bfb', 'package': 'pylons_app', 'beaker.session.timeout': '3600', 'logview.sqlalchemy': '#faa', 'cache_dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'beaker.session.type': 'file'}, 'pylons.cache_dir': '/home/marcink/python_workspace/hg_app/data', 'buffet.template_engines': [{'engine': 'mako', 'alias': None, 'template_root': '', 'template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}}], 'buffet.template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}, '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'routes.map': <routes.mapper.Mapper object at 0x21d34d0>, 'here': '/home/marcink/python_workspace/hg_app', 'email_to': 'marcin.kuzminski@etelko.pl', 'pylons.h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'pylons.package': 'pylons_app', 'pylons.g': <pylons_app.lib.app_globals.Globals object at 0x21d3690>, 'lang': 'en', 'global_conf': {'error_email_from': 'paste_error@localhost', 'email_to': 'marcin.kuzminski@etelko.pl', 'debug': 'true', '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'smtp_server': 'localhost', 'here': '/home/marcink/python_workspace/hg_app'}, 'package': 'pylons_app', 'cache.dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.timeout': '3600', 'pylons.request_options': {'errors': 'replace', 'decode_param_names': False, 'charset': 'utf-8', 'language': 'en-us'}, 'pylons.db_engines': {}, 'pylons.strict_c': False, 'beaker.cache.data_dir': '/home/marcink/python_workspace/hg_app/data/cache', 'debug': True, 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'beaker.session.data_dir': '/home/marcink/python_workspace/hg_app/data/sessions'}, 'response': <Response at 0x2822790 200 OK>, '_': <function ugettext at 0x1d17578>}
++14:43:02,105 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:43:02,105 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:43:14,988 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:43:14,988 DEBUG [pylons.configuration] Pushing process configuration
++14:43:14,991 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:43:14,992 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:43:14,995 DEBUG [pylons.templating] Initialized Buffet object
++14:43:14,995 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:43:15,005 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842214570256: Initial worker pool
++14:43:15,006 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842206177552: Initial worker pool
++14:43:15,006 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842197784848: Initial worker pool
++14:43:15,006 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842189392144: Initial worker pool
++14:43:15,006 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842180999440: Initial worker pool
++14:43:15,007 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842172606736: Initial worker pool
++14:43:15,007 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842164214032: Initial worker pool
++14:43:15,007 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842155821328: Initial worker pool
++14:43:15,008 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842147428624: Initial worker pool
++14:43:15,008 DEBUG [paste.httpserver.ThreadPool] Started new worker 139842139035920: Initial worker pool
++14:43:38,419 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:43:38,421 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:38,422 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:43:38,489 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:43:38,489 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:43:38,489 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:43:38,490 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:43:38,490 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:43:38,490 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e1eb90>, 'start_response': <function repl_start_response at 0x2e5bb90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2d0d550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2d0d790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e1eed0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2d0d810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e1eb90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e1e990>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2d0d850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e1eed0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2d0d850>, 'wsgi.input': <socket._fileobject object at 0x2e03550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327818.490762, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2e1e990>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2e1e690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2f9202b1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x205d5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:43:39,375 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:43:39,375 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:43:39,472 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:43:39,475 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:39,475 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:43:39,475 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:43:39,476 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:43:39,476 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:43:39,476 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:43:39,476 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3315490>, 'start_response': <function repl_start_response at 0x32d9d70>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2d0d550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2d0d790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33154d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3315490>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2d0d810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2e1ea10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2d0d850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33154d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2d0d850>, 'wsgi.input': <socket._fileobject object at 0x2e036d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327819.47679, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2e1ea10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dbb50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2f9202b1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x205d5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:43:40,355 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:43:40,355 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:43:55,209 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:43:55,209 DEBUG [pylons.configuration] Pushing process configuration
++14:43:55,212 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:43:55,213 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:43:55,217 DEBUG [pylons.templating] Initialized Buffet object
++14:43:55,217 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:43:55,219 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472426989840: Initial worker pool
++14:43:55,219 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472418597136: Initial worker pool
++14:43:55,219 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472410204432: Initial worker pool
++14:43:55,219 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472401811728: Initial worker pool
++14:43:55,219 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472393419024: Initial worker pool
++14:43:55,220 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472385026320: Initial worker pool
++14:43:55,220 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472376633616: Initial worker pool
++14:43:55,220 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472368240912: Initial worker pool
++14:43:55,220 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472359848208: Initial worker pool
++14:43:55,221 DEBUG [paste.httpserver.ThreadPool] Started new worker 140472351455504: Initial worker pool
++14:43:55,918 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:43:55,921 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:55,922 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:43:55,972 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:43:55,972 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:43:55,972 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:43:55,972 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:43:55,973 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:43:55,972 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3171ad0>, 'start_response': <function repl_start_response at 0x315ca28>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x3168550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3168790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3171e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x3168810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3171ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3171950>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3171e10>, 'wsgi.input': <socket._fileobject object at 0x30ee450 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327835.9732239, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3171950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3171650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fc24d78c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x24b65d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:43:56,863 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:43:56,863 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:43:56,905 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:43:56,906 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:43:56,907 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:43:56,907 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:43:56,907 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:43:56,907 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:43:56,908 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:43:56,907 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x372e590>, 'start_response': <function repl_start_response at 0x3753938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x3168550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3168790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x372e0d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x372e590>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x3168810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x372e450>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x372e0d0>, 'wsgi.input': <socket._fileobject object at 0x30ee750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327836.9082389, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x372e450>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3746d90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fc24d78c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x24b65d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:43:57,796 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:43:57,797 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:06,476 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:06,489 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:06,490 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:06,490 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:06,490 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:06,490 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:06,491 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:06,490 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x36c0750>, 'start_response': <function repl_start_response at 0x36c1140>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x3168550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3168790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x36c0a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x3168810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x36c0750>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x36c0f90>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x36c0a90>, 'wsgi.input': <socket._fileobject object at 0x30ee650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327846.4912381, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x36c0f90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3746fd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fc24d78c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x24b65d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:44:07,360 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:07,360 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:07,384 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:07,385 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:07,385 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:07,385 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:07,385 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:07,385 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:07,386 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:07,386 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x36c06d0>, 'start_response': <function repl_start_response at 0x36c1050>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x3168550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3168790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x36c0110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x36c06d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x3168810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x36c0310>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x36c0110>, 'wsgi.input': <socket._fileobject object at 0x30ee750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327847.3865819, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x36c0310>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3746e10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fc24d78c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x24b65d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:44:08,254 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:08,254 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:16,094 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:44:16,094 DEBUG [pylons.configuration] Pushing process configuration
++14:44:16,097 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:44:16,098 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:44:16,101 DEBUG [pylons.templating] Initialized Buffet object
++14:44:16,101 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:44:16,102 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342153849104: Initial worker pool
++14:44:16,102 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342145456400: Initial worker pool
++14:44:16,103 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342137063696: Initial worker pool
++14:44:16,103 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342128670992: Initial worker pool
++14:44:16,103 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342120278288: Initial worker pool
++14:44:16,104 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342111885584: Initial worker pool
++14:44:16,104 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342103492880: Initial worker pool
++14:44:16,104 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342095100176: Initial worker pool
++14:44:16,104 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342086707472: Initial worker pool
++14:44:16,105 DEBUG [paste.httpserver.ThreadPool] Started new worker 140342078314768: Initial worker pool
++14:44:20,149 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:20,156 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:20,157 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:20,210 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:44:20,210 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:20,210 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:20,210 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:20,211 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:20,210 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2910250>, 'start_response': <function repl_start_response at 0x290db18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2821550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2821790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2910590>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2821810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2910250>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x29100d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2910590>, 'wsgi.input': <socket._fileobject object at 0x27a7a50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327860.211241, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x29100d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2834d90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa3f89661c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1b71550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:44:21,101 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:21,152 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:21,195 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:21,196 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:21,197 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:21,197 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:21,197 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:21,197 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:21,198 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:21,197 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2dd4210>, 'start_response': <function repl_start_response at 0x2d8a9b0>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2821550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2821790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2dd4910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2dd4210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2821810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2dd4b50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2dd4910>, 'wsgi.input': <socket._fileobject object at 0x27a7bd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327861.1982059, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2dd4b50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2dd4fd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa3f89661c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1b71550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:44:22,077 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:22,077 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:31,736 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:44:31,737 DEBUG [pylons.configuration] Pushing process configuration
++14:44:31,740 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:44:31,740 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:44:31,743 DEBUG [pylons.templating] Initialized Buffet object
++14:44:31,744 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:44:31,751 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688071006480: Initial worker pool
++14:44:31,752 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688062613776: Initial worker pool
++14:44:31,752 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688054221072: Initial worker pool
++14:44:31,752 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688045828368: Initial worker pool
++14:44:31,752 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688037435664: Initial worker pool
++14:44:31,753 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688029042960: Initial worker pool
++14:44:31,753 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688020650256: Initial worker pool
++14:44:31,753 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688012257552: Initial worker pool
++14:44:31,753 DEBUG [paste.httpserver.ThreadPool] Started new worker 140688003864848: Initial worker pool
++14:44:31,754 DEBUG [paste.httpserver.ThreadPool] Started new worker 140687995472144: Initial worker pool
++14:44:32,484 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:32,495 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:32,505 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:32,570 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:44:32,570 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:32,570 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:32,570 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:32,571 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:32,571 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3a089d0>, 'start_response': <function repl_start_response at 0x3a57a28>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38f7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38f7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3a08d90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38f7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3a089d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39f9610>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38f7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3a08d90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38f7850>, 'wsgi.input': <socket._fileobject object at 0x39ec1d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327872.5715599, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x39f9610>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x39f92d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7ff482fba1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c47550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:44:33,450 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:33,450 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:33,550 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:33,553 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:33,553 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:33,553 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:33,553 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:33,553 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:33,554 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:33,553 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3ec1c90>, 'start_response': <function repl_start_response at 0x3ebf938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38f7550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38f7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3ec1f10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3ec1c90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x38f7810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39f9690>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38f7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3ec1f10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38f7850>, 'wsgi.input': <socket._fileobject object at 0x39ec350 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327873.5543909, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x39f9690>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3f08e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7ff482fba1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c47550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:44:34,490 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:34,490 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:44:39,916 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:44:39,917 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:44:39,918 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:44:39,918 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:44:39,918 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:44:39,918 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:44:39,919 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:44:39,918 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3f08350>, 'start_response': <function repl_start_response at 0x3f11d70>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38f7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38f7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3f08210>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38f7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3f08350>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3f08050>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38f7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3f08210>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38f7850>, 'wsgi.input': <socket._fileobject object at 0x39ec250 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327879.919168, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3f08050>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3f08250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7ff482fba1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c47550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/hgicon.png', 'action': u'view'}
++14:44:40,831 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:44:40,831 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:45:16,128 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:45:16,128 DEBUG [pylons.configuration] Pushing process configuration
++14:45:16,131 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:45:16,131 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:45:16,135 DEBUG [pylons.templating] Initialized Buffet object
++14:45:16,181 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:45:16,198 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404773447952: Initial worker pool
++14:45:16,198 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404765055248: Initial worker pool
++14:45:16,198 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404756662544: Initial worker pool
++14:45:16,199 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404748269840: Initial worker pool
++14:45:16,199 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404739877136: Initial worker pool
++14:45:16,199 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404731484432: Initial worker pool
++14:45:16,199 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404723091728: Initial worker pool
++14:45:16,200 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404714699024: Initial worker pool
++14:45:16,200 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404706306320: Initial worker pool
++14:45:16,200 DEBUG [paste.httpserver.ThreadPool] Started new worker 140404697913616: Initial worker pool
++14:45:16,402 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:45:16,407 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:45:16,408 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:45:16,458 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:45:16,459 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:45:16,459 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:45:16,459 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:45:16,459 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:45:16,459 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x28e3250>, 'start_response': <function repl_start_response at 0x28db938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x27e4490>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x27e4650>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x28e3590>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x27e46d0>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x28e3250>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x28e3050>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x28e3590>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'wsgi.input': <socket._fileobject object at 0x276a650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327916.4600699, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x28e3050>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x28ddd10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb28d21f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1b34550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:45:17,364 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:45:17,365 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:45:17,452 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:45:17,453 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:45:17,454 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:45:17,454 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:45:17,454 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:45:17,454 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:45:17,455 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:45:17,455 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e2f190>, 'start_response': <function repl_start_response at 0x2e86b18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x27e4490>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x27e4650>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e63a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e2f190>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x27e46d0>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d9efd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e63a90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'wsgi.input': <socket._fileobject object at 0x28d62d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327917.4555199, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d9efd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d9ed10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb28d21f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1b34550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:45:18,353 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:45:18,354 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:45:25,275 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:45:25,277 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:45:25,277 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:45:25,277 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:45:25,277 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:45:25,277 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:45:25,278 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:45:25,278 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2d9e310>, 'start_response': <function repl_start_response at 0x2e2bcf8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x27e4490>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x27e4650>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d9e190>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x27e46d0>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2d9e310>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d9e050>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d9e190>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'wsgi.input': <socket._fileobject object at 0x28d61d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327925.2785201, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d9e050>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d9ee10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb28d21f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1b34550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:45:26,198 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:45:26,248 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:45:26,337 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:45:26,338 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:45:26,338 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:45:26,338 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:45:26,338 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:45:26,338 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:45:26,339 DEBUG [beaker.container] data file /home/marcink/python_workspace/hg_app/data/sessions/container_file/d/d0/d08f13a0624d036cff94c88a7239f3eb.cache
++14:45:26,339 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2e2f3d0>, 'start_response': <function repl_start_response at 0x2e3e320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x27e4490>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x27e4650>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2e2f990>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2e2f3d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x27e46d0>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d9e290>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2e2f990>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x27e4710>, 'wsgi.input': <socket._fileobject object at 0x2e5bbd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327926.3398249, '_creation_time': 1266321971.558501}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d9e290>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d8f950>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb28d21f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1b34550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:45:27,257 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:45:27,258 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:45:34,281 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:45:34,281 DEBUG [pylons.configuration] Pushing process configuration
++14:45:34,285 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:45:34,285 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:45:34,288 DEBUG [pylons.templating] Initialized Buffet object
++14:45:34,289 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:45:34,296 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181326231824: Initial worker pool
++14:45:34,297 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181317839120: Initial worker pool
++14:45:34,297 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181309446416: Initial worker pool
++14:45:34,297 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181301053712: Initial worker pool
++14:45:34,297 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181292661008: Initial worker pool
++14:45:34,298 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181284268304: Initial worker pool
++14:45:34,298 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181275875600: Initial worker pool
++14:45:34,298 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181267482896: Initial worker pool
++14:45:34,298 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181259090192: Initial worker pool
++14:45:34,299 DEBUG [paste.httpserver.ThreadPool] Started new worker 140181250697488: Initial worker pool
++14:46:08,309 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:46:08,310 DEBUG [pylons.configuration] Pushing process configuration
++14:46:08,313 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:46:08,313 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:46:08,317 DEBUG [pylons.templating] Initialized Buffet object
++14:46:08,317 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:46:08,325 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172688390416: Initial worker pool
++14:46:08,325 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172679997712: Initial worker pool
++14:46:08,325 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172671605008: Initial worker pool
++14:46:08,326 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172663212304: Initial worker pool
++14:46:08,326 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172654819600: Initial worker pool
++14:46:08,326 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172646426896: Initial worker pool
++14:46:08,327 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172638034192: Initial worker pool
++14:46:08,327 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172629641488: Initial worker pool
++14:46:08,327 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172621248784: Initial worker pool
++14:46:08,327 DEBUG [paste.httpserver.ThreadPool] Started new worker 140172612856080: Initial worker pool
++14:46:12,014 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:46:12,019 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:46:12,022 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:46:12,076 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:46:12,076 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:46:12,076 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:46:12,076 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:46:12,076 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x20c3ad0>, 'start_response': <function repl_start_response at 0x20ffb18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1fb3550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1fb3790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x20c3e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1fb3810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x20c3ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x20c38d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1fb3850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x20c3e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1fb3850>, 'wsgi.input': <socket._fileobject object at 0x20a8550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327972.076967, '_creation_time': 1266327972.076967}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x20c38d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x20c35d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f7c83c901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x13025d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:46:12,984 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:46:12,984 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:46:13,079 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:46:13,082 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:46:13,082 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:46:13,082 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:46:13,083 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:46:13,083 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:46:13,083 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x25cd250>, 'start_response': <function repl_start_response at 0x257bb18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1fb3550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1fb3790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x20c3650>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x25cd250>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1fb3810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x20c3950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1fb3850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x20c3650>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1fb3850>, 'wsgi.input': <socket._fileobject object at 0x20a86d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327973.0835471, '_creation_time': 1266327972.076967}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x20c3950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x25bfdd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f7c83c901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x13025d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:46:13,984 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:46:13,984 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:46:21,990 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:46:21,991 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:46:21,992 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:46:21,992 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:46:21,992 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:46:21,992 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:46:21,992 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x25bf350>, 'start_response': <function repl_start_response at 0x25cecf8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x1fb3550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/archive/tip.tar.bz2'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1fb3790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/archive/tip.tar.bz2', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x25bf050>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x25bf350>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1fb3810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x25bf610>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/archive/tip.tar.bz2'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1fb3850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x25bf050>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1fb3850>, 'wsgi.input': <socket._fileobject object at 0x20a85d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266327981.993077, '_creation_time': 1266327972.076967}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x25bf610>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x25bfc50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f7c83c901c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x13025d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'czy_jest_spotkanie/archive/tip.tar.bz2', 'action': u'view'}
++14:46:22,934 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:46:23,120 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:09,430 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:48:09,430 DEBUG [pylons.configuration] Pushing process configuration
++14:48:09,433 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:48:09,433 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:48:09,436 DEBUG [pylons.templating] Initialized Buffet object
++14:48:09,437 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:48:09,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337613756688: Initial worker pool
++14:48:09,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337605363984: Initial worker pool
++14:48:09,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337596971280: Initial worker pool
++14:48:09,446 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337588578576: Initial worker pool
++14:48:09,446 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337580185872: Initial worker pool
++14:48:09,446 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337571793168: Initial worker pool
++14:48:09,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337563400464: Initial worker pool
++14:48:09,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337555007760: Initial worker pool
++14:48:09,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337546615056: Initial worker pool
++14:48:09,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140337538222352: Initial worker pool
++14:48:12,703 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:48:12,706 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:48:12,707 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:48:12,759 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:48:12,760 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:48:12,760 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:48:12,760 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:48:12,760 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2d4fad0>, 'start_response': <function repl_start_response at 0x2d53b18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2c40550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c40790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d4fe10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c40810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2d4fad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d4f8d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d4fe10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'wsgi.input': <socket._fileobject object at 0x2d34550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328092.7608099, '_creation_time': 1266328092.7608099}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d4f8d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d4f5d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2ea1a61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f905d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:48:13,651 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:48:13,651 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:13,753 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:48:13,766 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:48:13,767 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:48:13,767 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:48:13,767 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:48:13,767 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:48:13,767 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x325c250>, 'start_response': <function repl_start_response at 0x3201b18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2c40550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c40790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d4f650>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x325c250>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c40810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d4f950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d4f650>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'wsgi.input': <socket._fileobject object at 0x2d346d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328093.768117, '_creation_time': 1266328092.7608099}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d4f950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x324edd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2ea1a61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f905d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:48:14,659 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:48:14,659 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:17,640 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:48:17,643 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:48:17,644 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:48:17,644 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:48:17,644 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:48:17,644 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:48:17,645 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x324e2d0>, 'start_response': <function repl_start_response at 0x325dcf8>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2c40550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c40790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x324e6d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c40810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324e2d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324e5d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x324e6d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'wsgi.input': <socket._fileobject object at 0x2d345d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328097.645376, '_creation_time': 1266328092.7608099}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x324e5d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x324ec50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2ea1a61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f905d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:48:18,528 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:48:18,528 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:18,603 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:48:18,605 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:48:18,606 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:48:18,606 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:48:18,606 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:48:18,606 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:48:18,606 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x325c050>, 'start_response': <function repl_start_response at 0x3264320>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x2c40550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c40790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x325ccd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x325c050>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c40810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324e150>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x325ccd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c40850>, 'wsgi.input': <socket._fileobject object at 0x31f93d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328098.6070249, '_creation_time': 1266328092.7608099}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x324e150>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3242b10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2ea1a61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f905d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:48:19,518 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:48:19,518 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:44,681 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:48:44,681 DEBUG [pylons.configuration] Pushing process configuration
++14:48:44,684 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:48:44,685 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:48:44,688 DEBUG [pylons.templating] Initialized Buffet object
++14:48:44,688 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:48:44,697 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849544108304: Initial worker pool
++14:48:44,697 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849535715600: Initial worker pool
++14:48:44,697 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849527322896: Initial worker pool
++14:48:44,698 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849518930192: Initial worker pool
++14:48:44,698 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849510537488: Initial worker pool
++14:48:44,698 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849502144784: Initial worker pool
++14:48:44,698 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849493752080: Initial worker pool
++14:48:44,699 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849485359376: Initial worker pool
++14:48:44,699 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849476966672: Initial worker pool
++14:48:44,699 DEBUG [paste.httpserver.ThreadPool] Started new worker 139849468573968: Initial worker pool
++14:48:46,629 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:48:46,636 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:48:46,638 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:48:46,688 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:48:46,688 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:48:46,689 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:48:46,689 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:48:46,689 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x270abd0>, 'start_response': <function repl_start_response at 0x2746b90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x25fa550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x25fa790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x270af10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x25fa810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x270abd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x270a9d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x25fa850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x270af10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x25fa850>, 'wsgi.input': <socket._fileobject object at 0x26ef550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328126.690064, '_creation_time': 1266328126.690064}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x270a9d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x270a6d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f3146e291c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x194a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:48:47,556 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:48:47,556 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:47,674 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:48:47,676 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:48:47,677 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:48:47,677 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:48:47,677 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:48:47,677 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:48:47,677 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x2bc5d10>, 'start_response': <function repl_start_response at 0x2bc3938>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x25fa550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x25fa790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bc5b90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bc5d10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x25fa810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x270aa50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x25fa850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bc5b90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x25fa850>, 'wsgi.input': <socket._fileobject object at 0x26ef6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328127.6778729, '_creation_time': 1266328126.690064}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x270aa50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2c02e90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f3146e291c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x194a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': 'static/style-gitweb.css', 'action': u'view'}
++14:48:48,557 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++14:48:48,557 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++14:48:56,187 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:48:56,187 DEBUG [pylons.configuration] Pushing process configuration
++14:48:56,190 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:48:56,190 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:48:56,193 DEBUG [pylons.templating] Initialized Buffet object
++14:48:56,194 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:48:56,202 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762161404176: Initial worker pool
++14:48:56,202 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762153011472: Initial worker pool
++14:48:56,203 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762144618768: Initial worker pool
++14:48:56,203 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762061015312: Initial worker pool
++14:48:56,203 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762052622608: Initial worker pool
++14:48:56,203 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762044229904: Initial worker pool
++14:48:56,204 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762035837200: Initial worker pool
++14:48:56,204 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762027444496: Initial worker pool
++14:48:56,204 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762019051792: Initial worker pool
++14:48:56,205 DEBUG [paste.httpserver.ThreadPool] Started new worker 139762010659088: Initial worker pool
++14:49:39,694 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++14:49:44,063 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:49:44,064 DEBUG [pylons.configuration] Pushing process configuration
++14:49:44,067 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:49:44,067 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:49:44,070 DEBUG [pylons.templating] Initialized Buffet object
++14:49:44,071 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:49:44,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032229001488: Initial worker pool
++14:49:44,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032220608784: Initial worker pool
++14:49:44,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032212216080: Initial worker pool
++14:49:44,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032203823376: Initial worker pool
++14:49:44,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032195430672: Initial worker pool
++14:49:44,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032187037968: Initial worker pool
++14:49:44,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032178645264: Initial worker pool
++14:49:44,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032170252560: Initial worker pool
++14:49:44,081 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032161859856: Initial worker pool
++14:49:44,081 DEBUG [paste.httpserver.ThreadPool] Started new worker 140032153467152: Initial worker pool
++14:51:27,298 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:51:27,299 DEBUG [pylons.configuration] Pushing process configuration
++14:51:27,361 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:51:27,362 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:51:27,371 DEBUG [pylons.templating] Initialized Buffet object
++14:51:27,372 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:51:27,381 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857948297488: Initial worker pool
++14:51:27,381 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857939904784: Initial worker pool
++14:51:27,382 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857931512080: Initial worker pool
++14:51:27,382 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857923119376: Initial worker pool
++14:51:27,382 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857914726672: Initial worker pool
++14:51:27,382 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857906333968: Initial worker pool
++14:51:27,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857897941264: Initial worker pool
++14:51:27,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857889548560: Initial worker pool
++14:51:27,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857881155856: Initial worker pool
++14:51:27,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139857872763152: Initial worker pool
++14:59:43,100 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++14:59:43,101 DEBUG [pylons.configuration] Pushing process configuration
++14:59:43,104 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++14:59:43,104 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++14:59:43,107 DEBUG [pylons.templating] Initialized Buffet object
++14:59:43,107 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++14:59:43,115 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886411589904: Initial worker pool
++14:59:43,115 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886403197200: Initial worker pool
++14:59:43,116 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886394804496: Initial worker pool
++14:59:43,116 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886386411792: Initial worker pool
++14:59:43,117 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886378019088: Initial worker pool
++14:59:43,117 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886369626384: Initial worker pool
++14:59:43,118 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886361233680: Initial worker pool
++14:59:43,118 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886352840976: Initial worker pool
++14:59:43,119 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886344448272: Initial worker pool
++14:59:43,120 DEBUG [paste.httpserver.ThreadPool] Started new worker 139886336055568: Initial worker pool
++14:59:52,345 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:52,352 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:52,355 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:52,412 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++14:59:52,412 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:52,412 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:52,412 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:52,413 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x39f7ad0>, 'start_response': <function repl_start_response at 0x3a32b18>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x39f7e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x39f7ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39f78d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x39f7e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x39dc550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328792.4132619, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x39f78d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x39f75d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:52,413 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:52,413 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:59:54,345 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:54,350 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:54,351 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:54,352 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:54,352 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:54,353 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:54,353 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3efe150>, 'start_response': <function repl_start_response at 0x3efc500>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3efe210>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3efe150>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39f7950>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3efe210>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x39dc6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328794.3542831, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x39f7950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3ef2d90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:54,354 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:54,354 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:59:55,020 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:55,023 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:55,024 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:55,024 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:55,025 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:55,025 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:55,026 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3efe890>, 'start_response': <function repl_start_response at 0x3efc848>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3efe950>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3efe890>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3efe6d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3efe950>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x39dc5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328795.0266261, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3efe6d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3efe3d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:55,027 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:55,028 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:59:55,553 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:55,556 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:55,557 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:55,557 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:55,558 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:55,558 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:55,559 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3efef90>, 'start_response': <function repl_start_response at 0x3efcb90>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3f02090>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3efef90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3efee10>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3f02090>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x3ea4b50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328795.559679, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3efee10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3efeb10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:55,560 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:55,561 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:59:56,065 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:56,067 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:56,068 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:56,068 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:56,068 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:56,068 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:56,068 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3eb11d0>, 'start_response': <function repl_start_response at 0x3eac488>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3eb1410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3eb11d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3eb1290>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3eb1410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x3ea4c50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328796.0687971, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3eb1290>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3eb1250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:56,069 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:56,069 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:59:56,558 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:56,559 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:56,560 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:56,560 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:56,560 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:56,560 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:56,560 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3eb1710>, 'start_response': <function repl_start_response at 0x3efc668>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3eb17d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3eb1710>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3eb1650>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3eb17d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x3ea43d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328796.560986, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3eb1650>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3eb1510>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:56,561 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:56,561 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++14:59:57,001 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++14:59:57,002 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++14:59:57,003 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++14:59:57,003 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++14:59:57,003 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++14:59:57,003 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++14:59:57,003 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3eb1b90>, 'start_response': <function repl_start_response at 0x3efcd70>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3eb1f50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3eb1b90>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3eb1b50>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3eb1f50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x3ea4cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328797.0039549, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3eb1b50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3eb1a50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++14:59:57,004 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++14:59:57,004 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++15:00:12,173 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:00:12,181 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:00:12,182 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:00:12,182 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:00:12,183 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:00:12,183 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:00:12,184 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'pylons': <pylons.util.PylonsContext object at 0x3ef2290>, 'start_response': <function repl_start_response at 0x3f07140>, 'controller': u'hg', 'environ': {'routes.route': <routes.route.Route object at 0x38e7550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x38e7790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3ef2250>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x38e7810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3ef2290>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3eb1b10>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3ef2250>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x38e7850>, 'wsgi.input': <socket._fileobject object at 0x3ea4e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266328812.1848619, '_creation_time': 1266328792.4132619}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3eb1b10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3eb1c10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f39dc5bb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c355d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}, 'path_info': u'/', 'action': u'view'}
++15:00:12,185 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++15:00:12,186 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++15:02:05,029 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++15:02:05,029 DEBUG [pylons.configuration] Pushing process configuration
++15:02:05,032 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++15:02:05,032 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++15:02:05,036 DEBUG [pylons.templating] Initialized Buffet object
++15:02:05,036 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++15:02:05,044 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570092333328: Initial worker pool
++15:02:05,044 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570083940624: Initial worker pool
++15:02:05,045 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570075547920: Initial worker pool
++15:02:05,045 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570067155216: Initial worker pool
++15:02:05,045 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570058762512: Initial worker pool
++15:02:05,045 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570050369808: Initial worker pool
++15:02:05,046 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570041977104: Initial worker pool
++15:02:05,046 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570033584400: Initial worker pool
++15:02:05,047 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570025191696: Initial worker pool
++15:02:05,047 DEBUG [paste.httpserver.ThreadPool] Started new worker 140570016798992: Initial worker pool
++15:12:03,765 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:12:03,773 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:12:03,776 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:12:03,828 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++15:12:03,829 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:12:03,829 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:12:03,829 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:12:03,829 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2c39aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2aec550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2aec790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bfce10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2aec810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bfcad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bfc8d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bfce10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'wsgi.input': <socket._fileobject object at 0x2be1550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329523.829823, '_creation_time': 1266329523.829823}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2bfc8d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2bfc5d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd90ae7f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e3b5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:12:04,686 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:12:04,723 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:12:04,836 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:12:04,845 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:12:04,846 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:12:04,846 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:12:04,846 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:12:04,846 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:12:04,846 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30b45f0>, 'environ': {'routes.route': <routes.route.Route object at 0x2aec550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2aec790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30fb450>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30fb3d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2aec810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bfc950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30fb450>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'wsgi.input': <socket._fileobject object at 0x2be16d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329524.8470571, '_creation_time': 1266329523.829823}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2bfc950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30fb0d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd90ae7f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e3b5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:12:05,771 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:12:05,774 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:12:19,588 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:12:19,591 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:12:19,592 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:12:19,593 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:12:19,593 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:12:19,594 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:12:19,594 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x310b1b8>, 'environ': {'routes.route': <routes.route.Route object at 0x2aec550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2aec790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30fdbd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2aec810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30fd2d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x30fd490>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30fdbd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'wsgi.input': <socket._fileobject object at 0x2be15d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329539.595278, '_creation_time': 1266329523.829823}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x30fd490>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30fb350>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd90ae7f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e3b5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:12:20,529 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:12:20,552 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:12:20,604 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:12:20,605 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:12:20,606 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:12:20,606 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:12:20,606 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:12:20,606 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:12:20,606 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30b4a28>, 'environ': {'routes.route': <routes.route.Route object at 0x2aec550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2aec790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30fbb90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30fb750>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2aec810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x30fd310>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30fbb90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2aec850>, 'wsgi.input': <socket._fileobject object at 0x2be16d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329540.6071219, '_creation_time': 1266329523.829823}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x30fd310>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30fb610>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd90ae7f1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e3b5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:12:21,500 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:12:21,503 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:13:54,284 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++15:13:54,284 DEBUG [pylons.configuration] Pushing process configuration
++15:13:54,288 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++15:13:54,288 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++15:13:54,291 DEBUG [pylons.templating] Initialized Buffet object
++15:13:54,291 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++15:13:54,299 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154448947472: Initial worker pool
++15:13:54,300 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154440554768: Initial worker pool
++15:13:54,300 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154432162064: Initial worker pool
++15:13:54,300 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154423769360: Initial worker pool
++15:13:54,301 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154415376656: Initial worker pool
++15:13:54,301 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154406983952: Initial worker pool
++15:13:54,301 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154398591248: Initial worker pool
++15:13:54,301 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154390198544: Initial worker pool
++15:13:54,302 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154381805840: Initial worker pool
++15:13:54,302 DEBUG [paste.httpserver.ThreadPool] Started new worker 140154373413136: Initial worker pool
++15:13:57,076 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:13:57,079 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:13:57,080 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:13:57,136 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++15:13:57,136 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:13:57,136 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:13:57,136 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:13:57,137 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2dcfaa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2c83550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c83790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d93e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c83810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2d93ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d938d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c83850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d93e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c83850>, 'wsgi.input': <socket._fileobject object at 0x2d78550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329637.137394, '_creation_time': 1266329637.137394}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d938d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d935d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f7844a131c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1fd35d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:13:58,015 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:13:58,044 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:13:58,133 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:13:58,135 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:13:58,135 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:13:58,136 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:13:58,136 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:13:58,136 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:13:58,136 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x324a5f0>, 'environ': {'routes.route': <routes.route.Route object at 0x2c83550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c83790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x328e390>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x328e150>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c83810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d93950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c83850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x328e390>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c83850>, 'wsgi.input': <socket._fileobject object at 0x2d786d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329638.136723, '_creation_time': 1266329637.137394}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d93950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x328e250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f7844a131c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1fd35d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:13:59,012 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:13:59,014 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:16:21,543 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++15:16:21,543 DEBUG [pylons.configuration] Pushing process configuration
++15:16:21,547 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++15:16:21,547 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++15:16:21,550 DEBUG [pylons.templating] Initialized Buffet object
++15:16:21,551 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++15:16:21,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329265322256: Initial worker pool
++15:16:21,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329256929552: Initial worker pool
++15:16:21,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329248536848: Initial worker pool
++15:16:21,559 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329240144144: Initial worker pool
++15:16:21,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329231751440: Initial worker pool
++15:16:21,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329223358736: Initial worker pool
++15:16:21,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329214966032: Initial worker pool
++15:16:21,560 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329206573328: Initial worker pool
++15:16:21,561 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329198180624: Initial worker pool
++15:16:21,561 DEBUG [paste.httpserver.ThreadPool] Started new worker 140329189787920: Initial worker pool
++15:16:22,271 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:16:22,273 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:16:22,275 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:16:22,330 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++15:16:22,331 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:16:22,331 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:16:22,331 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:16:22,331 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2ca58c0>, 'environ': {'routes.route': <routes.route.Route object at 0x2bab550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2bab790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2cab6d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2bab810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2cab390>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2cab190>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2bab850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2cab6d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2bab850>, 'wsgi.input': <socket._fileobject object at 0x2b31650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329782.331712, '_creation_time': 1266329782.331712}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2cab190>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2ca7e90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa0f87f61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1efb550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:16:23,266 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:16:23,297 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:16:23,373 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:16:23,375 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:16:23,376 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:16:23,376 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:16:23,376 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:16:23,376 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:16:23,376 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31a4578>, 'environ': {'routes.route': <routes.route.Route object at 0x2bab550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2bab790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x31b3410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x31b3a50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2bab810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2cab210>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2bab850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x31b3410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2bab850>, 'wsgi.input': <socket._fileobject object at 0x2ca02d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329783.377126, '_creation_time': 1266329782.331712}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2cab210>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x31b3290>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa0f87f61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1efb550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:16:24,265 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:16:24,270 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:17:36,820 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++15:17:36,820 DEBUG [pylons.configuration] Pushing process configuration
++15:17:36,824 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++15:17:36,824 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++15:17:36,827 DEBUG [pylons.templating] Initialized Buffet object
++15:17:36,827 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++15:17:36,836 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826856646928: Initial worker pool
++15:17:36,836 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826848254224: Initial worker pool
++15:17:36,836 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826839861520: Initial worker pool
++15:17:36,837 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826831468816: Initial worker pool
++15:17:36,837 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826823076112: Initial worker pool
++15:17:36,837 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826814683408: Initial worker pool
++15:17:36,837 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826806290704: Initial worker pool
++15:17:36,838 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826797898000: Initial worker pool
++15:17:36,838 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826789505296: Initial worker pool
++15:17:36,838 DEBUG [paste.httpserver.ThreadPool] Started new worker 139826781112592: Initial worker pool
++15:17:37,027 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:17:37,029 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:17:37,031 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:17:37,088 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++15:17:37,089 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:17:37,089 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:17:37,089 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:17:37,089 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30ff8c0>, 'environ': {'routes.route': <routes.route.Route object at 0x3005550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3005790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x31056d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x3005810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3105390>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3105190>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x3005850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x31056d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x3005850>, 'wsgi.input': <socket._fileobject object at 0x2f8b650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329857.089978, '_creation_time': 1266329857.089978}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3105190>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3101e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2bfe9b61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2355550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:17:37,969 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:17:37,998 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:17:38,080 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:17:38,082 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:17:38,082 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:17:38,082 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:17:38,082 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:17:38,082 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:17:38,083 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x36b8578>, 'environ': {'routes.route': <routes.route.Route object at 0x3005550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3005790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x35bea50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x35be1d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x3005810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3105210>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x3005850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x35bea50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x3005850>, 'wsgi.input': <socket._fileobject object at 0x30fa2d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329858.0832651, '_creation_time': 1266329857.089978}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3105210>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x35be750>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2bfe9b61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2355550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:17:38,995 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:17:38,995 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:18:22,496 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++15:18:22,497 DEBUG [pylons.configuration] Pushing process configuration
++15:18:22,500 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++15:18:22,500 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++15:18:22,503 DEBUG [pylons.templating] Initialized Buffet object
++15:18:22,504 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++15:18:22,512 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668428630288: Initial worker pool
++15:18:22,512 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668420237584: Initial worker pool
++15:18:22,512 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668411844880: Initial worker pool
++15:18:22,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668403452176: Initial worker pool
++15:18:22,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668395059472: Initial worker pool
++15:18:22,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668386666768: Initial worker pool
++15:18:22,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668378274064: Initial worker pool
++15:18:22,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668369881360: Initial worker pool
++15:18:22,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668361488656: Initial worker pool
++15:18:22,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 139668353095952: Initial worker pool
++15:18:22,963 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:18:22,965 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:18:22,966 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:18:23,024 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++15:18:23,024 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:18:23,025 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:18:23,025 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:18:23,025 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2ae98c0>, 'environ': {'routes.route': <routes.route.Route object at 0x29ef550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x29ef790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2aef6d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x29ef810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2aef390>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2aef190>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x29ef850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2aef6d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x29ef850>, 'wsgi.input': <socket._fileobject object at 0x2975650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329903.0256381, '_creation_time': 1266329903.0256381}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2aef190>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2aebe50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f071b8fb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1d3e5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:18:23,926 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:18:23,955 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:18:24,032 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:18:24,034 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:18:24,034 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:18:24,034 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:18:24,035 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:18:24,035 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:18:24,035 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x302a578>, 'environ': {'routes.route': <routes.route.Route object at 0x29ef550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x29ef790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2f98a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2f98210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x29ef810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2aef210>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x29ef850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2f98a90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x29ef850>, 'wsgi.input': <socket._fileobject object at 0x2ae42d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329904.035532, '_creation_time': 1266329903.0256381}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2aef210>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2f98790>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f071b8fb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1d3e5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:18:24,927 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:18:24,927 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:18:39,429 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++15:18:39,429 DEBUG [pylons.configuration] Pushing process configuration
++15:18:39,432 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++15:18:39,432 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++15:18:39,436 DEBUG [pylons.templating] Initialized Buffet object
++15:18:39,436 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++15:18:39,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140427022346512: Initial worker pool
++15:18:39,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140427013953808: Initial worker pool
++15:18:39,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140427005561104: Initial worker pool
++15:18:39,445 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426997168400: Initial worker pool
++15:18:39,446 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426988775696: Initial worker pool
++15:18:39,446 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426908530960: Initial worker pool
++15:18:39,446 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426900138256: Initial worker pool
++15:18:39,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426891745552: Initial worker pool
++15:18:39,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426883352848: Initial worker pool
++15:18:39,447 DEBUG [paste.httpserver.ThreadPool] Started new worker 140426874960144: Initial worker pool
++15:19:13,744 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:19:13,746 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:19:13,748 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:19:13,807 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++15:19:13,807 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:19:13,807 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:19:13,808 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:19:13,808 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1b21aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1ae8e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1ae8ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1ae88d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1ae8e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1acd550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329953.8084869, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1ae88d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1ae85d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:19:14,190 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:19:14,217 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:19:14,300 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:19:14,302 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:19:14,303 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:19:14,303 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:19:14,303 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:19:14,303 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:19:14,303 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1f9b5f0>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1fde350>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1fde110>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1ae8950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1fde350>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1acd6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329954.3039701, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1ae8950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1fde210>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:19:14,678 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:19:14,678 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:19:18,785 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:19:18,788 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:19:18,788 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:19:18,788 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:19:18,788 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:19:18,788 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:19:18,788 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1fdc1b8>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'ezfeed_uploader/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/ezfeed_uploader/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1fe4550>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1fe4650>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1f9ef10>, {'action': u'view', 'controller': u'hg', 'path_info': 'ezfeed_uploader/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1fe4550>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1acd5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329958.7891531, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x1f9ef10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1fdedd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:19:19,206 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:19:19,290 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:19:19,349 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:19:19,350 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:19:19,351 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:19:19,351 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:19:19,351 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:19:19,351 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:19:19,351 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2350e60>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/ezfeed_uploader/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2321110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x23152d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1f9ee90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2321110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f93ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266329959.351814, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x1f9ee90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x23154d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:19:19,737 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:19:19,737 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:20:13,691 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:20:13,702 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:20:13,703 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:20:13,703 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:20:13,703 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:20:13,703 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:20:13,703 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2350de8>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'ezfeed_uploader/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/ezfeed_uploader/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x216fe10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x216fc10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x216fbd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'ezfeed_uploader/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x216fe10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f93ad0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266330013.7040229, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x216fbd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1fde810>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:20:14,097 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:20:14,105 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:20:14,161 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:20:14,162 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:20:14,163 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:20:14,163 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:20:14,163 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:20:14,163 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:20:14,163 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1f9b488>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/ezfeed_uploader/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x232ae10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2321d10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x216f310>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x232ae10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f933d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266330014.163923, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x216f310>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2321b10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:20:14,540 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:20:14,540 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:22:11,404 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:22:11,408 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:22:11,409 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:22:11,409 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:22:11,410 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:22:11,410 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:22:11,411 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x23572a8>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2336d10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2336b10>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2321590>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2336d10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1ffa150 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266330131.4116499, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2321590>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1f9e410>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:22:11,803 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:22:11,803 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:57:08,539 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:57:08,543 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:57:08,556 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:57:08,556 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:57:08,557 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:57:08,557 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:57:08,557 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1fdc848>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1f9e510>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1f8ddd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x23214d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1f9e510>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1ffa050 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266332228.557687, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x23214d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x232abd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:57:09,793 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:57:09,821 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:57:09,930 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:57:09,931 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:57:09,932 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:57:09,932 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:57:09,932 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:57:09,932 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:57:09,932 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2350c08>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1fe4c10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1fe4790>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1f8dd90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1fe4c10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f93ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266332229.933064, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x1f8dd90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1fe4f10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:57:10,965 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:57:10,966 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++15:57:12,962 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++15:57:12,966 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++15:57:12,968 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++15:57:12,968 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++15:57:12,969 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++15:57:12,969 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++15:57:12,970 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2357578>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x21660d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1fd13d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1fe4a90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x21660d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f93450 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266332232.970896, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x1fe4a90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1fe4250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++15:57:14,048 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++15:57:14,060 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:01:28,206 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:01:28,209 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:01:28,209 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:01:28,210 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:01:28,210 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:01:28,210 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:01:28,210 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2350500>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1fe4950>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1fe4850>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1fd1f50>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1fe4950>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f93ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266332488.2107611, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1fd1f50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1fe4c50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:01:29,249 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:01:29,277 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:01:29,331 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:01:29,332 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:01:29,332 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:01:29,333 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:01:29,333 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:01:29,333 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:01:29,333 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1f9bcf8>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1f9e190>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1f9e650>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1ae8a10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1f9e190>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x1f933d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266332489.3337209, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1ae8a10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x232a650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:01:30,359 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:01:30,359 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:01:32,379 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:01:32,382 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:01:32,383 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:01:32,384 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:01:32,384 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:01:32,385 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:01:32,385 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2357848>, 'environ': {'routes.route': <routes.route.Route object at 0x19d9550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x19d9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x235e410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x19d9810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x235e3d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x23365d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x235e410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x19d9850>, 'wsgi.input': <socket._fileobject object at 0x22f88d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266332492.3867259, '_creation_time': 1266329953.8084869}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x23365d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1f9eb90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fb7bb4531c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xd275d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:01:33,679 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:01:33,856 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:19:19,936 INFO  [paste.httpserver.ThreadPool] Shutting down threadpool
++16:20:44,866 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:20:44,866 DEBUG [pylons.configuration] Pushing process configuration
++16:20:44,869 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:20:44,869 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:20:44,873 DEBUG [pylons.templating] Initialized Buffet object
++16:20:44,873 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:20:44,901 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683561367824: Initial worker pool
++16:20:44,902 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683552975120: Initial worker pool
++16:20:44,903 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683544582416: Initial worker pool
++16:20:44,904 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683536189712: Initial worker pool
++16:20:44,905 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683527797008: Initial worker pool
++16:20:44,905 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683519404304: Initial worker pool
++16:20:44,906 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683511011600: Initial worker pool
++16:20:44,907 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683502618896: Initial worker pool
++16:20:44,908 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683494226192: Initial worker pool
++16:20:44,909 DEBUG [paste.httpserver.ThreadPool] Started new worker 139683485833488: Initial worker pool
++16:20:46,154 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:20:46,157 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:20:46,158 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:20:46,411 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:20:46,411 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:20:46,411 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:20:46,411 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:20:46,411 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2a55aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2909550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2909790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2a19e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2909810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2a19ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2a198d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2909850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2a19e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2909850>, 'wsgi.input': <socket._fileobject object at 0x29fe550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333646.4120591, '_creation_time': 1266333646.4120591}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2a198d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2a195d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f0aa18af1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1c58550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:20:49,628 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:20:49,634 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:20:49,635 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:20:49,635 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:20:49,636 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:20:49,636 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:20:49,637 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30c32a8>, 'environ': {'routes.route': <routes.route.Route object at 0x2909550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'favicon.ico'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2909790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/favicon.ico', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30c1690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2909810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30c1610>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2a19950>, {'action': u'view', 'controller': u'hg', 'path_info': 'favicon.ico'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2909850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30c1690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2909850>, 'wsgi.input': <socket._fileobject object at 0x30a16d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333649.6377721, '_creation_time': 1266333649.6377721}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2a19950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30c12d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f0aa18af1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1c58550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:20:54,083 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:20:54,083 DEBUG [pylons.configuration] Pushing process configuration
++16:20:54,087 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:20:54,088 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:20:54,092 DEBUG [pylons.templating] Initialized Buffet object
++16:20:54,092 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:20:54,137 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064338950416: Initial worker pool
++16:20:54,138 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064330557712: Initial worker pool
++16:20:54,138 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064322165008: Initial worker pool
++16:20:54,138 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064313772304: Initial worker pool
++16:20:54,139 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064305379600: Initial worker pool
++16:20:54,139 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064296986896: Initial worker pool
++16:20:54,139 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064288594192: Initial worker pool
++16:20:54,139 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064280201488: Initial worker pool
++16:20:54,140 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064271808784: Initial worker pool
++16:20:54,140 DEBUG [paste.httpserver.ThreadPool] Started new worker 140064263416080: Initial worker pool
++16:20:55,137 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:20:55,140 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:20:55,141 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:20:55,195 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:20:55,196 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:20:55,196 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:20:55,196 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:20:55,196 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2bddaa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2ba1e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2ba1ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2ba18d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2ba1e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x2b86550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333655.196805, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2ba18d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2ba15d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:20:56,194 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:20:56,224 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:20:56,299 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:20:56,301 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:20:56,301 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:20:56,301 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:20:56,301 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:20:56,302 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:20:56,302 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30585f0>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x309f390>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x309f150>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2ba1950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x309f390>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x2b866d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333656.3024039, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2ba1950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x309f250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:20:57,191 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:20:57,191 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:20:59,342 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:20:59,345 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:20:59,346 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:20:59,347 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:20:59,347 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:20:59,348 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:20:59,348 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30991b8>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3090cd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3090e10>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3090d50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3090cd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x2b865d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333659.3491011, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3090d50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x309f190>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:00,245 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:00,298 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:00,899 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:00,902 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:00,904 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:00,904 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:00,904 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:00,905 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:00,905 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30b5320>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'ftp_exchange/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/ftp_exchange/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30a2a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30a2ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x305bb50>, {'action': u'view', 'controller': u'hg', 'path_info': 'ftp_exchange/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30a2a90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x3050d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333660.907151, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x305bb50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30908d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:01,916 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:01,974 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:02,040 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:02,041 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:02,042 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:02,042 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:02,042 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:02,042 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:02,042 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3420ed8>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/ftp_exchange/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33f0690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x33f0210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x30a2a50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33f0690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x30b8250 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333662.044889, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x30a2a50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3271d90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:02,943 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:02,943 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:05,090 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:05,092 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:05,093 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:05,143 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:05,143 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:05,144 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:05,145 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3420848>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3090e90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x309fa50>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x33e4710>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3090e90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x33c8e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333665.1459939, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x33e4710>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3271f10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:06,061 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:06,062 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:06,178 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:06,184 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:06,185 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:06,185 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:06,186 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:06,186 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:06,186 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3413cf8>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33f9d10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x33f9690>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x326bd90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33f9d10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x33c8cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333666.187609, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x326bd90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30909d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:07,105 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:07,105 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:23,835 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:23,839 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:23,840 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:23,840 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:23,840 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:23,840 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:23,840 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3058320>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30a2410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30a2210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3406550>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30a2410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x33c88d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333683.841233, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3406550>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33f9710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:24,733 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:24,743 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:24,804 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:24,806 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:24,806 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:24,806 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:24,806 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:24,806 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:24,807 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3429668>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/statistics_new/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x316ef90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x316ecd0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x30a2b50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x316ef90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x33c8150 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333684.8073211, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x30a2b50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33e4b10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:25,707 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:25,707 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:21:27,842 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:21:27,847 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:21:27,848 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:21:27,849 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:21:27,849 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:21:27,850 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:21:27,850 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3429c08>, 'environ': {'routes.route': <routes.route.Route object at 0x2a91550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2a91790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3417610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2a91810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3417dd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x304ad90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3417610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2a91850>, 'wsgi.input': <socket._fileobject object at 0x33c8dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333687.851099, '_creation_time': 1266333655.196805}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x304ad90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33f9ed0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6349a7c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1de05d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:21:28,745 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:21:28,746 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:22:13,376 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:22:13,376 DEBUG [pylons.configuration] Pushing process configuration
++16:22:13,379 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:22:13,380 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:22:13,383 DEBUG [pylons.templating] Initialized Buffet object
++16:22:13,383 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:22:13,392 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526655150352: Initial worker pool
++16:22:13,392 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526646757648: Initial worker pool
++16:22:13,392 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526638364944: Initial worker pool
++16:22:13,393 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526629972240: Initial worker pool
++16:22:13,393 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526621579536: Initial worker pool
++16:22:13,393 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526613186832: Initial worker pool
++16:22:13,393 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526604794128: Initial worker pool
++16:22:13,394 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526596401424: Initial worker pool
++16:22:13,394 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526588008720: Initial worker pool
++16:22:13,394 DEBUG [paste.httpserver.ThreadPool] Started new worker 140526579616016: Initial worker pool
++16:22:15,238 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:22:15,240 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:22:15,241 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:22:15,315 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:22:15,316 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:22:15,316 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:22:15,316 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:22:15,316 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3a68aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x391b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x391b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3a2be90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3a2bb50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x391b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3a2b950>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x391b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3a2be90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x391b850>, 'wsgi.input': <socket._fileobject object at 0x3a10550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333735.3167009, '_creation_time': 1266333735.3167009}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3a2b950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3a2b650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fceedd911c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2c695d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:22:16,210 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:22:16,211 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:22:40,379 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:22:40,379 DEBUG [pylons.configuration] Pushing process configuration
++16:22:40,382 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:22:40,383 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:22:40,386 DEBUG [pylons.templating] Initialized Buffet object
++16:22:40,387 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:22:40,395 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275994515728: Initial worker pool
++16:22:40,396 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275986123024: Initial worker pool
++16:22:40,396 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275977730320: Initial worker pool
++16:22:40,396 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275969337616: Initial worker pool
++16:22:40,396 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275960944912: Initial worker pool
++16:22:40,397 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275952552208: Initial worker pool
++16:22:40,397 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275944159504: Initial worker pool
++16:22:40,397 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275935766800: Initial worker pool
++16:22:40,398 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275927374096: Initial worker pool
++16:22:40,398 DEBUG [paste.httpserver.ThreadPool] Started new worker 140275918981392: Initial worker pool
++16:22:50,798 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:22:50,805 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:22:50,806 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:22:50,856 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:22:50,856 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:22:50,857 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:22:50,857 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:22:50,857 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3057aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2f0b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2f0b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x301be90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x301bb50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2f0b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x301b950>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2f0b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x301be90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2f0b850>, 'wsgi.input': <socket._fileobject object at 0x3000550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333770.8575709, '_creation_time': 1266333770.8575709}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x301b950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x301b650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f94914f61c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x22595d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:23:36,063 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:23:36,064 DEBUG [pylons.configuration] Pushing process configuration
++16:23:36,067 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:23:36,068 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:23:36,071 DEBUG [pylons.templating] Initialized Buffet object
++16:23:36,071 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:23:36,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768875854096: Initial worker pool
++16:23:36,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768867461392: Initial worker pool
++16:23:36,079 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768859068688: Initial worker pool
++16:23:36,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768850675984: Initial worker pool
++16:23:36,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768842283280: Initial worker pool
++16:23:36,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768833890576: Initial worker pool
++16:23:36,080 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768825497872: Initial worker pool
++16:23:36,081 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768817105168: Initial worker pool
++16:23:36,081 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768808712464: Initial worker pool
++16:23:36,081 DEBUG [paste.httpserver.ThreadPool] Started new worker 139768800319760: Initial worker pool
++16:23:37,203 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:23:37,206 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:23:37,208 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:23:37,277 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:23:37,278 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:23:37,278 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:23:37,278 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:23:37,278 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x23e7aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x229b550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x229b790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x23abe90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x23abb50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x229b810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x23ab950>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x229b850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x23abe90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x229b850>, 'wsgi.input': <socket._fileobject object at 0x2390550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333817.2788899, '_creation_time': 1266333817.2788899}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x23ab950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x23ab650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f1e7eaeb1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15e95d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:24:09,316 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:24:09,316 DEBUG [pylons.configuration] Pushing process configuration
++16:24:09,320 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:24:09,320 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:24:09,323 DEBUG [pylons.templating] Initialized Buffet object
++16:24:09,323 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:24:09,331 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218498062608: Initial worker pool
++16:24:09,332 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218489669904: Initial worker pool
++16:24:09,332 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218481277200: Initial worker pool
++16:24:09,332 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218472884496: Initial worker pool
++16:24:09,332 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218464491792: Initial worker pool
++16:24:09,333 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218456099088: Initial worker pool
++16:24:09,333 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218447706384: Initial worker pool
++16:24:09,333 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218439313680: Initial worker pool
++16:24:09,333 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218430920976: Initial worker pool
++16:24:09,334 DEBUG [paste.httpserver.ThreadPool] Started new worker 140218422528272: Initial worker pool
++16:24:10,027 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:24:10,031 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:24:10,032 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:24:10,086 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:24:10,086 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:24:10,086 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:24:10,086 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:24:10,086 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x35218c0>, 'environ': {'routes.route': <routes.route.Route object at 0x3427550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3427790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3527750>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3527410>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x3427810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3527210>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x3427850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3527750>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x3427850>, 'wsgi.input': <socket._fileobject object at 0x33ad650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333850.086988, '_creation_time': 1266333850.086988}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3527210>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3523ed0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f872e4121c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x27765d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:25:20,368 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:25:20,368 DEBUG [pylons.configuration] Pushing process configuration
++16:25:20,371 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:25:20,371 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:25:20,375 DEBUG [pylons.templating] Initialized Buffet object
++16:25:20,375 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:25:20,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976887982352: Initial worker pool
++16:25:20,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976879589648: Initial worker pool
++16:25:20,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976871196944: Initial worker pool
++16:25:20,383 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976862804240: Initial worker pool
++16:25:20,384 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976854411536: Initial worker pool
++16:25:20,384 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976846018832: Initial worker pool
++16:25:20,385 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976837626128: Initial worker pool
++16:25:20,385 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976829233424: Initial worker pool
++16:25:20,385 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976820840720: Initial worker pool
++16:25:20,386 DEBUG [paste.httpserver.ThreadPool] Started new worker 139976742271248: Initial worker pool
++16:25:27,263 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:25:27,267 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:25:27,268 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:25:27,333 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:25:27,333 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:25:27,333 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:25:27,333 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:25:27,333 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1c43aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x1af9550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1af9790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1c09e90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1c09b50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1af9810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1c09950>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1af9850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1c09e90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1af9850>, 'wsgi.input': <socket._fileobject object at 0x1bee550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333927.3342371, '_creation_time': 1266333927.3342371}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1c09950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1c09650>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f4eed2be1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xe48550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:25:51,389 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:25:51,389 DEBUG [pylons.configuration] Pushing process configuration
++16:25:51,393 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:25:51,393 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:25:51,396 DEBUG [pylons.templating] Initialized Buffet object
++16:25:51,396 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:25:51,404 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107727239440: Initial worker pool
++16:25:51,405 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107718846736: Initial worker pool
++16:25:51,405 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107710454032: Initial worker pool
++16:25:51,405 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107702061328: Initial worker pool
++16:25:51,405 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107693668624: Initial worker pool
++16:25:51,406 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107685275920: Initial worker pool
++16:25:51,406 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107676883216: Initial worker pool
++16:25:51,406 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107668490512: Initial worker pool
++16:25:51,407 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107660097808: Initial worker pool
++16:25:51,407 DEBUG [paste.httpserver.ThreadPool] Started new worker 140107651705104: Initial worker pool
++16:25:51,948 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:25:51,954 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:25:51,955 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:25:52,008 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:25:52,009 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:25:52,009 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:25:52,009 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:25:52,009 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1e868c0>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1e8c750>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1e8c410>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1e8c210>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1e8c750>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x1d12650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333952.009784, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1e8c210>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1e88ed0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:25:52,921 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:25:52,935 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:25:53,021 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:25:53,023 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:25:53,024 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:25:53,024 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:25:53,024 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:25:53,024 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:25:53,024 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2706d70>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/statistics_new/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x26a3110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x26a30d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1e88f90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x26a3110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x1e812d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333953.02509, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1e88f90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x26a7710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:25:53,902 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:25:53,903 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:25:56,046 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:25:56,050 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:25:56,051 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:25:56,052 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:25:56,052 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:25:56,052 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:25:56,053 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x26ad848>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x26a3dd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x26a3790>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x26a3850>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x26a3dd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x1e811d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333956.054095, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x26a3850>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x26a3bd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:25:56,951 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:25:56,952 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:26:07,929 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:26:07,933 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:26:07,934 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:26:07,934 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:26:07,935 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:26:07,935 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:26:07,936 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2715488>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/statistics_new/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x26a7390>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x26a7350>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x26a3b50>, {'action': u'view', 'controller': u'hg', 'path_info': 'statistics_new/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x26a7390>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x2708250 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333967.937922, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x26a3b50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x269bed0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:26:08,854 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:26:08,862 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:26:08,918 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:26:08,919 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:26:08,919 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:26:08,919 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:26:08,920 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:26:08,920 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:26:08,920 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2327b18>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/statistics_new/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2500490>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x25006d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x25098d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2500490>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x233f550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333968.9206481, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x25098d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x269b910>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:26:09,806 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:26:09,806 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:26:11,943 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:26:11,945 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:26:11,946 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:26:11,946 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:26:11,946 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:26:11,947 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:26:11,947 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x27151b8>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x23351d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2335050>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x239ae10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x23351d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x233f750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266333971.947777, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x239ae10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x24f94d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:26:12,842 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:26:12,842 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:26:55,301 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:26:55,304 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:26:55,304 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:26:55,304 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:26:55,305 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:26:55,305 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:26:55,305 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2715b90>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x23269d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x23266d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x26a7dd0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x23269d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x22c9f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266334015.3056469, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x26a7dd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x239add0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:26:56,171 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:26:56,194 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:26:56,242 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:26:56,243 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:26:56,244 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:26:56,244 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:26:56,244 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:26:56,244 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:26:56,244 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x26add70>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x269b450>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x269b950>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x26a7e90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x269b450>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x233f750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266334016.2451401, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x26a7e90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x24f9710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:26:57,103 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:26:57,103 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:26:59,306 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:26:59,309 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:26:59,310 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:26:59,311 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:26:59,311 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:26:59,312 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:26:59,312 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x27156e0>, 'environ': {'routes.route': <routes.route.Route object at 0x1d8c550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1d8c790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2326d90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x1d8c810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2326cd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x269bdd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2326d90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1d8c850>, 'wsgi.input': <socket._fileobject object at 0x2708650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266334019.3132491, '_creation_time': 1266333952.009784}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x269bdd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x26a7510>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6d63cc81c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x10dc550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:27:00,202 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:27:00,202 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:27:34,660 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:27:34,660 DEBUG [pylons.configuration] Pushing process configuration
++16:27:34,664 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:27:34,664 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:27:34,667 DEBUG [pylons.templating] Initialized Buffet object
++16:27:34,668 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:27:34,676 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142254557456: Initial worker pool
++16:27:34,676 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142246164752: Initial worker pool
++16:27:34,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142237772048: Initial worker pool
++16:27:34,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142229379344: Initial worker pool
++16:27:34,677 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142220986640: Initial worker pool
++16:27:34,678 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142212593936: Initial worker pool
++16:27:34,678 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142204201232: Initial worker pool
++16:27:34,678 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142195808528: Initial worker pool
++16:27:34,679 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142187415824: Initial worker pool
++16:27:34,679 DEBUG [paste.httpserver.ThreadPool] Started new worker 140142179023120: Initial worker pool
++16:27:36,554 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:27:36,554 DEBUG [pylons.configuration] Pushing process configuration
++16:27:36,557 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:27:36,557 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:27:36,560 DEBUG [pylons.templating] Initialized Buffet object
++16:27:36,561 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:27:36,569 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667493472528: Initial worker pool
++16:27:36,569 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667485079824: Initial worker pool
++16:27:36,569 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667476687120: Initial worker pool
++16:27:36,570 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667468294416: Initial worker pool
++16:27:36,570 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667459901712: Initial worker pool
++16:27:36,570 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667451509008: Initial worker pool
++16:27:36,571 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667443116304: Initial worker pool
++16:27:36,571 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667434723600: Initial worker pool
++16:27:36,571 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667426330896: Initial worker pool
++16:27:36,571 DEBUG [paste.httpserver.ThreadPool] Started new worker 139667417938192: Initial worker pool
++16:27:38,779 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:27:38,782 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:27:38,783 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:27:38,837 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:27:38,838 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:27:38,838 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:27:38,838 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:27:38,838 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2f37aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2deb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2deb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2efbe10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2deb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2efbad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2efb8d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2deb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2efbe10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2deb850>, 'wsgi.input': <socket._fileobject object at 0x2ee0550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266334058.8388679, '_creation_time': 1266334058.8388679}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2efb8d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2efb5d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f06e3d251c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x213a5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:48:51,006 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:48:51,019 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:48:51,019 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:48:51,019 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:48:51,019 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:48:51,019 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:48:51,020 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3662758>, 'environ': {'routes.route': <routes.route.Route object at 0x2deb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2deb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3664350>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2deb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3664250>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2efb950>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2deb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3664350>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2deb850>, 'wsgi.input': <socket._fileobject object at 0x363c750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335331.0203431, '_creation_time': 1266335331.0203431}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2efb950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3658f90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f06e3d251c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x213a5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:55:00,290 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:55:00,290 DEBUG [pylons.configuration] Pushing process configuration
++16:55:00,294 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:55:00,294 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:55:00,298 DEBUG [pylons.templating] Initialized Buffet object
++16:55:00,298 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:55:00,305 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304879196432: Initial worker pool
++16:55:00,306 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304870803728: Initial worker pool
++16:55:00,306 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304862411024: Initial worker pool
++16:55:00,307 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304854018320: Initial worker pool
++16:55:00,307 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304845625616: Initial worker pool
++16:55:00,307 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304837232912: Initial worker pool
++16:55:00,308 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304828840208: Initial worker pool
++16:55:00,308 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304820447504: Initial worker pool
++16:55:00,308 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304812054800: Initial worker pool
++16:55:00,309 DEBUG [paste.httpserver.ThreadPool] Started new worker 140304803662096: Initial worker pool
++16:55:15,006 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:55:15,009 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:55:15,011 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:55:15,064 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:55:15,064 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:55:15,064 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:55:15,064 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:55:15,064 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x353ab18>, 'environ': {'routes.route': <routes.route.Route object at 0x33ed550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33ed790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x34fde10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33ed810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x34fdad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x34fd8d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x34fde10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'wsgi.input': <socket._fileobject object at 0x34e2550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335715.064996, '_creation_time': 1266335715.064996}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x34fd8d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x34fd5d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f9b4af8a1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x273d550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:55:15,065 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++16:55:15,065 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:55:25,620 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:55:25,622 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:55:25,623 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:55:25,623 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:55:25,623 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:55:25,623 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:55:25,623 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3a05500>, 'environ': {'routes.route': <routes.route.Route object at 0x33ed550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33ed790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3a08210>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33ed810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3a08150>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x34fd950>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3a08210>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'wsgi.input': <socket._fileobject object at 0x34e26d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335725.624068, '_creation_time': 1266335715.064996}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x34fd950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x39fbdd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f9b4af8a1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x273d550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:55:25,624 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++16:55:25,624 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:55:26,473 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:55:26,480 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:55:26,480 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:55:26,480 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:55:26,480 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:55:26,480 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:55:26,481 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3a05848>, 'environ': {'routes.route': <routes.route.Route object at 0x33ed550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33ed790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3a08990>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33ed810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3a088d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3a08750>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3a08990>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'wsgi.input': <socket._fileobject object at 0x34e25d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335726.481324, '_creation_time': 1266335715.064996}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3a08750>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3a082d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f9b4af8a1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x273d550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:55:26,481 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++16:55:26,481 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:55:31,497 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:55:31,500 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:55:31,502 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:55:31,502 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:55:31,502 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:55:31,503 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:55:31,503 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3a05b90>, 'environ': {'routes.route': <routes.route.Route object at 0x33ed550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33ed790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3a0b110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33ed810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3a0b050>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3a08ed0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3a0b110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33ed850>, 'wsgi.input': <socket._fileobject object at 0x39acb50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335731.50438, '_creation_time': 1266335715.064996}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3a08ed0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3a08a50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f9b4af8a1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x273d550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:55:31,505 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++16:55:31,505 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:56:15,339 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:56:15,339 DEBUG [pylons.configuration] Pushing process configuration
++16:56:15,343 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:56:15,343 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:56:15,347 DEBUG [pylons.templating] Initialized Buffet object
++16:56:15,347 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:56:15,355 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126135531792: Initial worker pool
++16:56:15,355 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126127139088: Initial worker pool
++16:56:15,356 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126118746384: Initial worker pool
++16:56:15,356 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126110353680: Initial worker pool
++16:56:15,357 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126101960976: Initial worker pool
++16:56:15,357 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126093568272: Initial worker pool
++16:56:15,357 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126085175568: Initial worker pool
++16:56:15,358 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126076782864: Initial worker pool
++16:56:15,358 DEBUG [paste.httpserver.ThreadPool] Started new worker 140126068390160: Initial worker pool
++16:56:15,358 DEBUG [paste.httpserver.ThreadPool] Started new worker 140125992384784: Initial worker pool
++16:56:19,579 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:56:19,582 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:56:19,583 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:56:19,640 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++16:56:19,640 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:56:19,640 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:56:19,640 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:56:19,641 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3521b18>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x34e8e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x34e8ad0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x34e88d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x34e8e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x34cd550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335779.6414261, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x34e88d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x34e85d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:56:20,538 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:56:20,568 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:56:20,643 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:56:20,645 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:56:20,645 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:56:20,646 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:56:20,646 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:56:20,646 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:56:20,646 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x399b6e0>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x39dea90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x39de210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x34e8950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x39dea90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x34cd6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335780.6467869, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x34e8950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x39de790>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:56:21,553 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:56:21,554 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:56:23,685 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:56:23,689 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:56:23,690 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:56:23,690 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:56:23,691 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:56:23,691 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:56:23,691 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x39e12a8>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x39e4850>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x39e46d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x399d8d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x39e4850>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x34cd5d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335783.6925819, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x399d8d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x39de2d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:56:24,656 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:56:24,657 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:57:13,930 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:57:13,932 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:57:13,932 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:57:13,932 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:57:13,932 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:57:13,933 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:57:13,933 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x39e1ed8>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x39d3ad0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x39d3ed0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x399dd10>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x39d3ad0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x3992d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335833.93343, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x399dd10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x39e4ed0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:57:14,835 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:57:14,843 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:57:14,886 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:57:14,887 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:57:14,887 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:57:14,887 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:57:14,887 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:57:14,887 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:57:14,888 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3d51f50>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3c19f50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3c19110>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39d3850>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3c19f50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x39fb250 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335834.888319, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x39d3850>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3bbf250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:57:15,752 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:57:15,759 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:57:17,951 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:57:17,953 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:57:17,954 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:57:17,954 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:57:17,954 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:57:17,954 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:57:17,954 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3d518c0>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x39e4350>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x39e4550>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x34e8410>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x39e4350>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x34cd6d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335837.954812, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x34e8410>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3aab810>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:57:18,821 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:57:18,821 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:57:18,822 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:57:18,823 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:57:18,824 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:57:18,824 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:57:18,824 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:57:18,824 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:57:18,824 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3d56de8>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x399d150>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x399d090>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39e4bd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x399d150>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x3992ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335838.8251181, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x39e4bd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3aabd90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:57:19,704 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:57:19,788 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:57:19,837 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:57:19,838 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:57:19,839 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:57:19,839 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:57:19,839 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:57:19,839 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:57:19,839 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3d51de8>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/shortlog', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3c239d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3c23b50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x39d33d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3c239d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x3bf2dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335839.8400109, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x39d33d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3d5ae10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:57:20,724 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:57:20,725 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:57:22,893 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++16:57:22,896 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++16:57:22,897 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++16:57:22,898 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++16:57:22,898 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++16:57:22,898 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++16:57:22,899 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3d51578>, 'environ': {'routes.route': <routes.route.Route object at 0x33d8550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x33d8790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3bb0a90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x33d8810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3bb0cd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3d5a650>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3bb0a90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x33d8850>, 'wsgi.input': <socket._fileobject object at 0x3bf28d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266335842.899967, '_creation_time': 1266335779.6414261}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3d5a650>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x399d3d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f71ad04c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2727550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++16:57:23,790 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++16:57:23,791 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++16:59:47,863 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++16:59:47,863 DEBUG [pylons.configuration] Pushing process configuration
++16:59:47,867 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++16:59:47,868 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++16:59:47,871 DEBUG [pylons.templating] Initialized Buffet object
++16:59:47,871 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++16:59:47,879 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553902377232: Initial worker pool
++16:59:47,879 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553893984528: Initial worker pool
++16:59:47,879 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553885591824: Initial worker pool
++16:59:47,880 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553877199120: Initial worker pool
++16:59:47,880 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553868806416: Initial worker pool
++16:59:47,880 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553860413712: Initial worker pool
++16:59:47,880 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553852021008: Initial worker pool
++16:59:47,881 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553843628304: Initial worker pool
++16:59:47,881 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553835235600: Initial worker pool
++16:59:47,881 DEBUG [paste.httpserver.ThreadPool] Started new worker 140553826842896: Initial worker pool
++17:06:29,268 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:06:29,274 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:06:29,275 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:06:29,327 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:06:29,327 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:06:29,328 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:06:29,328 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:06:29,328 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x1bcab18>, 'environ': {'routes.route': <routes.route.Route object at 0x1a7e550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x1a7e790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x1b8ee10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x1b8ead0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x1a7e810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x1b8e8d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x1a7e850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x1b8ee10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x1a7e850>, 'wsgi.input': <socket._fileobject object at 0x1b73550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336389.3285661, '_creation_time': 1266336389.3285661}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x1b8e8d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x1b8e5d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fd545e8d1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0xdcc5d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:06:29,328 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++17:06:29,329 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:07:32,785 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++17:07:32,785 DEBUG [pylons.configuration] Pushing process configuration
++17:07:32,788 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++17:07:32,789 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++17:07:32,792 DEBUG [pylons.templating] Initialized Buffet object
++17:07:32,792 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++17:07:32,801 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113934706960: Initial worker pool
++17:07:32,801 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113926314256: Initial worker pool
++17:07:32,801 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113917921552: Initial worker pool
++17:07:32,802 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113909528848: Initial worker pool
++17:07:32,802 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113901136144: Initial worker pool
++17:07:32,802 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113892743440: Initial worker pool
++17:07:32,802 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113884350736: Initial worker pool
++17:07:32,803 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113875958032: Initial worker pool
++17:07:32,803 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113867565328: Initial worker pool
++17:07:32,804 DEBUG [paste.httpserver.ThreadPool] Started new worker 140113859172624: Initial worker pool
++17:07:40,107 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:07:40,110 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:07:40,111 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:07:40,162 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:07:40,162 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:07:40,162 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:07:40,162 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:07:40,162 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2367b18>, 'environ': {'routes.route': <routes.route.Route object at 0x2253550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2253790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2363e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2363ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2253810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x23638d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2253850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2363e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2253850>, 'wsgi.input': <socket._fileobject object at 0x2348550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336460.163064, '_creation_time': 1266336460.163064}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x23638d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x23635d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6ed5caf1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15a35d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:07:41,095 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:07:41,095 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++17:07:41,096 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:07:42,986 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:07:42,988 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:07:42,989 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:07:42,989 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:07:42,989 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:07:42,989 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:07:42,989 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2ba90c8>, 'environ': {'routes.route': <routes.route.Route object at 0x2253550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2253790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2b6c2d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2b6c210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2253810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2363950>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2253850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2b6c2d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2253850>, 'wsgi.input': <socket._fileobject object at 0x23486d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336462.989825, '_creation_time': 1266336460.163064}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2363950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2b6c050>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6ed5caf1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x15a35d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:07:43,868 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:07:43,868 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++17:07:43,868 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:07:52,857 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++17:07:52,857 DEBUG [pylons.configuration] Pushing process configuration
++17:07:52,861 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++17:07:52,861 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++17:07:52,865 DEBUG [pylons.templating] Initialized Buffet object
++17:07:52,865 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++17:07:52,873 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803320662288: Initial worker pool
++17:07:52,873 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803312269584: Initial worker pool
++17:07:52,874 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803303876880: Initial worker pool
++17:07:52,874 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803295484176: Initial worker pool
++17:07:52,875 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803287091472: Initial worker pool
++17:07:52,875 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803278698768: Initial worker pool
++17:07:52,875 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803198748944: Initial worker pool
++17:07:52,875 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803190356240: Initial worker pool
++17:07:52,876 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803181963536: Initial worker pool
++17:07:52,876 DEBUG [paste.httpserver.ThreadPool] Started new worker 139803173570832: Initial worker pool
++17:07:54,352 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:07:54,360 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:07:54,365 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:07:54,441 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:07:54,441 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:07:54,442 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:07:54,442 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:07:54,442 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x237cb18>, 'environ': {'routes.route': <routes.route.Route object at 0x2232550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2232790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2342e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2342ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2232810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x23428d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2232850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2342e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2232850>, 'wsgi.input': <socket._fileobject object at 0x2327550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336474.4426711, '_creation_time': 1266336474.4426711}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x23428d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x23425d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2683c0c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1582550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:07:55,316 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++17:07:55,316 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:07:57,992 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:07:57,996 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:07:57,996 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:07:57,996 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:07:57,996 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:07:57,997 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:07:57,997 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2838500>, 'environ': {'routes.route': <routes.route.Route object at 0x2232550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2232790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x28392d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2839210>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2232810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2342950>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2232850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x28392d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2232850>, 'wsgi.input': <socket._fileobject object at 0x23276d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336477.9974439, '_creation_time': 1266336474.4426711}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2342950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x282cd90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f2683c0c1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1582550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:07:58,906 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++17:07:58,906 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:26,496 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++17:11:26,496 DEBUG [pylons.configuration] Pushing process configuration
++17:11:26,500 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++17:11:26,500 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++17:11:26,503 DEBUG [pylons.templating] Initialized Buffet object
++17:11:26,504 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++17:11:26,512 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287422282000: Initial worker pool
++17:11:26,512 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287413889296: Initial worker pool
++17:11:26,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287405496592: Initial worker pool
++17:11:26,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287397103888: Initial worker pool
++17:11:26,513 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287388711184: Initial worker pool
++17:11:26,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287380318480: Initial worker pool
++17:11:26,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287371925776: Initial worker pool
++17:11:26,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287363533072: Initial worker pool
++17:11:26,514 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287355140368: Initial worker pool
++17:11:26,515 DEBUG [paste.httpserver.ThreadPool] Started new worker 140287346747664: Initial worker pool
++17:11:27,788 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:27,792 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:27,794 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:27,847 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:11:27,848 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:27,848 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:27,848 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:27,848 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3876b18>, 'environ': {'routes.route': <routes.route.Route object at 0x3734550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x3734790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3844e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3844ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x3734810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x38448d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x3734850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3844e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x3734850>, 'wsgi.input': <socket._fileobject object at 0x3829550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336687.8487141, '_creation_time': 1266336687.8487141}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x38448d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x38445d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f973e8bf1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x2a865d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:27,851 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 OK
++17:11:27,851 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:35,000 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++17:11:35,001 DEBUG [pylons.configuration] Pushing process configuration
++17:11:35,004 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++17:11:35,004 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++17:11:35,008 DEBUG [pylons.templating] Initialized Buffet object
++17:11:35,008 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++17:11:35,017 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872331503888: Initial worker pool
++17:11:35,017 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872323111184: Initial worker pool
++17:11:35,017 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872314718480: Initial worker pool
++17:11:35,018 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872306325776: Initial worker pool
++17:11:35,018 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872297933072: Initial worker pool
++17:11:35,019 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872289540368: Initial worker pool
++17:11:35,019 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872281147664: Initial worker pool
++17:11:35,019 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872272754960: Initial worker pool
++17:11:35,020 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872264362256: Initial worker pool
++17:11:35,020 DEBUG [paste.httpserver.ThreadPool] Started new worker 139872255969552: Initial worker pool
++17:11:35,563 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:35,573 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:35,574 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:35,638 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:11:35,639 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:35,639 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:35,639 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:35,639 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31b5938>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/czy_jest_spotkanie/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/czy_jest_spotkanie/shortlog', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x31bc6d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x31bc390>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x31bc190>, {'action': u'view', 'controller': u'hg', 'path_info': 'czy_jest_spotkanie/shortlog'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x31bc6d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3040650 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336695.6398399, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x31bc190>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x31b7e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:35,708 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 404 Not Found
++17:11:35,733 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:35,735 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:35,736 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'error'
++17:11:35,737 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.error', class: 'ErrorController'
++17:11:35,738 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:35,738 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:35,738 DEBUG [pylons.controllers.core] Looking for u'document' method to handle the request
++17:11:35,739 DEBUG [pylons.controllers.core] Calling 'document' method with keyword args: **{}
++17:11:35,740 DEBUG [pylons.templating] Created render namespace with pylons vars: {'c': <pylons.util.AttribSafeContextObj at 0x3664cd0 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'ungettext': <function ungettext at 0x2c08758>, 'g': <pylons_app.lib.app_globals.Globals object at 0x30bb5d0>, 'url': <routes.util.URLGenerator object at 0x31bc2d0>, 'h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'request': <Request at 0x3664b50 GET http://127.0.0.1:5000/error/document>, 'tmpl_context': <pylons.util.AttribSafeContextObj at 0x3664cd0 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'translator': <gettext.GNUTranslations instance at 0x36650e0>, 'session': {'_accessed_time': 1266336695.740916, '_creation_time': 1266336695.6398399}, 'N_': <function gettext_noop at 0x2c08410>, 'app_globals': <pylons_app.lib.app_globals.Globals object at 0x30bb5d0>, 'config': {'error_email_from': 'paste_error@localhost', 'beaker.session.auto': 'True', 'pylons.paths': {'templates': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'controllers': '/home/marcink/python_workspace/hg_app/pylons_app/controllers', 'static_files': '/home/marcink/python_workspace/hg_app/pylons_app/public', 'root': '/home/marcink/python_workspace/hg_app/pylons_app'}, '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'pylons.cache_dir': '/home/marcink/python_workspace/hg_app/data', 'pylons.errorware': {'debug': True}, 'here': '/home/marcink/python_workspace/hg_app', 'pylons.strict_c': False, 'logview.sqlalchemy': '#faa', 'email_to': 'marcin.kuzminski@etelko.pl', 'pylons.h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'pylons.package': 'pylons_app', 'buffet.template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}, 'pylons.g': <pylons_app.lib.app_globals.Globals object at 0x30bb5d0>, 'logview.*': '#aaa', 'beaker.session.type': 'memory', 'lang': 'en', 'global_conf': {'error_email_from': 'paste_error@localhost', 'email_to': 'marcin.kuzminski@etelko.pl', 'debug': 'true', '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'smtp_server': 'localhost', 'here': '/home/marcink/python_workspace/hg_app'}, 'pylons.c_attach_args': True, 'buffet.template_engines': [{'engine': 'mako', 'alias': None, 'template_root': '', 'template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}}], 'logview.pylons.templating': '#bfb', 'package': 'pylons_app', 'cache.dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.timeout': '3600', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.request_options': {'errors': 'replace', 'decode_param_names': False, 'charset': 'utf-8', 'language': 'en-us'}, 'pylons.db_engines': {}, 'smtp_server': 'localhost', 'routes.map': <routes.mapper.Mapper object at 0x30bb410>, 'app_conf': {'lang': 'en', 'beaker.session.auto': 'True', 'logview.pylons.templating': '#bfb', 'package': 'pylons_app', 'beaker.session.timeout': '3600', 'logview.sqlalchemy': '#faa', 'cache_dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'logview.*': '#aaa', 'beaker.session.type': 'memory'}, 'beaker.cache.data_dir': '/home/marcink/python_workspace/hg_app/data/cache', 'debug': True, 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'beaker.session.data_dir': '/home/marcink/python_workspace/hg_app/data/sessions', 'pylons.response_options': {'headers': {'Pragma': 'no-cache', 'Cache-Control': 'no-cache'}, 'errors': 'strict', 'charset': 'utf-8', 'content_type': 'text/html'}}, 'response': <Response at 0x3664b90 200 OK>, '_': <function ugettext at 0x2c08578>}
++17:11:35,743 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++17:11:35,744 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++17:11:38,931 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:38,933 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:38,934 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:38,934 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:38,934 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:38,935 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:38,935 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31b52a8>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x366f450>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3657850>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x31bc210>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x366f450>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x31b01d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336698.9354019, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x31bc210>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x36f8e10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:38,940 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:38,942 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:38,982 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:38,983 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:38,984 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:38,984 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:38,984 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:38,984 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:38,984 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3702758>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3664f50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x36786d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3678450>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3664f50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3662f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336698.9852099, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3678450>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3678050>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:38,989 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:38,990 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:38,994 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:38,995 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:38,996 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:38,996 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:38,996 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:38,996 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:38,996 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3702e60>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37076d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3707590>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3678590>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37076d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3662e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336698.9969261, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3678590>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3664c10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:39,001 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:39,059 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:40,584 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:40,587 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:40,588 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:40,589 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:40,589 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:40,590 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:40,590 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3702c08>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x366f410>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x366f7d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3678650>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x366f410>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3662ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336700.5911119, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3678650>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3678550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:40,614 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:40,616 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:40,659 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:40,660 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:40,660 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:40,661 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:40,661 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:40,661 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:40,661 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3715140>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3716090>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3707f90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3678250>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3716090>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3662f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336700.661763, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3678250>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3707e10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:40,666 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:40,666 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:40,683 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:40,684 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:40,685 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:40,685 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:40,685 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:40,685 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:40,685 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3715848>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3716bd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3716b10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3707b90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3716bd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37049d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336700.6862409, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3707b90>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3716450>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:40,692 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:40,692 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:41,232 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:41,249 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:41,251 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:41,251 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:41,251 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:41,252 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:41,252 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37026e0>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37163d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37167d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3716750>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37163d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3662f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336701.2533231, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3716750>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x37160d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:41,266 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:41,268 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:41,331 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:41,332 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:41,332 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:41,333 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:41,333 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:41,333 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:41,333 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3715cf8>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3707b50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3707950>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3716810>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3707b50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336701.333699, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3716810>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3707e50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:41,338 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:41,338 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:41,354 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:41,356 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:41,356 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:41,356 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:41,356 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:41,356 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:41,357 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3715c08>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x371ae50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x371add0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3707ed0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x371ae50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336701.357245, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3707ed0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3678250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:41,361 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:41,361 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:42,000 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:42,002 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:42,002 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:42,002 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:42,003 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:42,003 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:42,003 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a1488>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37a2310>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37a21d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x371aa10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37a2310>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704450 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336702.003861, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x371aa10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x371a790>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:42,008 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:42,008 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:42,134 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:42,137 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:42,138 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:42,138 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:42,139 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:42,139 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:42,139 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3715050>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x371ab10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x371a910>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x371a250>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x371ab10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704850 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336702.1405649, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x371a250>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x371afd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:42,153 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:42,154 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:11:42,226 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:11:42,229 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:11:42,230 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:11:42,230 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:11:42,231 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:11:42,231 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:11:42,231 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3715de8>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3707b50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3707710>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x371a950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3707b50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37047d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336702.232604, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x371a950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3664190>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:11:42,246 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:11:42,247 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:54,166 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:54,168 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:54,213 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:54,214 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:54,214 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:54,215 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:54,215 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3702aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=name', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x366f710>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x366fe50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3707390>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x366f710>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704950 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336774.216383, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3707390>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3707d90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:54,229 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:54,235 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:54,281 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:54,282 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:54,282 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:54,282 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:54,283 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:54,283 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:54,283 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a1aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37ad450>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37ad390>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x366ffd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37ad450>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704250 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336774.2835071, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x366ffd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x37a2850>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:54,288 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:54,289 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:54,309 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:54,310 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:54,310 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:54,310 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:54,310 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:54,311 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:54,311 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37027d0>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37a2050>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37a20d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x37a27d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37a2050>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704b50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336774.3114419, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x37a27d0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3716490>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:54,315 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:54,315 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:55,363 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:55,366 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:55,367 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:55,368 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:55,368 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:55,368 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:55,369 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x365bf50>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x366f610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x366ff50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x37a2750>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x366f610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704150 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336775.369911, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x37a2750>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x37a2710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:55,377 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:55,379 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:55,418 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:55,419 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:55,419 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:55,419 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:55,419 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:55,420 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:55,420 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a1140>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x371a910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x371ab50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x366fc50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x371a910>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704850 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336775.4204309, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x366fc50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3664210>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:55,424 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:55,424 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:55,506 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:55,507 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:55,507 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:55,507 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:55,507 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:55,508 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:55,508 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a9050>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37b8490>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37b8610>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3707bd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37b8490>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37040d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336775.5083981, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3707bd0>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x371ac90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:55,512 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:55,512 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:56,572 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:56,575 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:56,576 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:56,577 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:56,577 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:56,577 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:56,578 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a9848>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=contact', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37b8e50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37b8d10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x371a990>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37b8e50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336776.578922, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x371a990>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x37ad090>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:56,589 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:56,591 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:56,642 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:56,643 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:56,644 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:56,644 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:56,644 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:56,644 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:56,644 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37151b8>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=contact', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-paper.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x371add0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x371ad10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x37b8cd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-paper.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x371add0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37041d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336776.6447279, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x37b8cd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x371a050>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:56,649 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:56,649 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:56,677 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:56,679 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:56,679 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:56,679 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:56,679 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:56,679 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:56,680 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x365bb18>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=contact', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hglogo.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3707710>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3707a90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x371ae50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hglogo.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3707710>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37047d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336776.6803291, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x371ae50>, 'HTTP_ACCEPT': 'image/png,image/*;q=0.8,*/*;q=0.5', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x371aad0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:56,684 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:56,684 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:57,302 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:57,306 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:57,307 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:57,308 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:57,308 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:57,308 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:57,309 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3702668>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x366fc90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x366f510>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3678250>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x366fc90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37044d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336777.309978, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3678250>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3707790>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:57,322 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:57,323 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:57,544 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:57,546 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:57,548 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:57,548 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:57,548 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:57,549 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:57,549 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a92a8>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37a27d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37a2fd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x366f950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37a27d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x3704150 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336777.5502779, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x366f950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x366ff10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:57,563 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:57,564 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:12:57,652 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:12:57,655 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:12:57,656 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:12:57,657 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:12:57,657 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:12:57,658 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:12:57,658 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x37a9c08>, 'environ': {'routes.route': <routes.route.Route object at 0x30bb550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x30bb790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x37c0cd0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x30bb810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x37c0c10>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3716250>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x37c0cd0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x30bb850>, 'wsgi.input': <socket._fileobject object at 0x37ac7d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336777.6592081, '_creation_time': 1266336695.6398399}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3716250>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x37c0950>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f36951ea1c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x240a550>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:12:57,677 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:12:57,677 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:13:03,593 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++17:13:03,593 DEBUG [pylons.configuration] Pushing process configuration
++17:13:03,597 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++17:13:03,597 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++17:13:03,600 DEBUG [pylons.templating] Initialized Buffet object
++17:13:03,600 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++17:13:03,608 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099389925648: Initial worker pool
++17:13:03,609 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099381532944: Initial worker pool
++17:13:03,609 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099373140240: Initial worker pool
++17:13:03,609 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099364747536: Initial worker pool
++17:13:03,610 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099356354832: Initial worker pool
++17:13:03,610 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099347962128: Initial worker pool
++17:13:03,610 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099339569424: Initial worker pool
++17:13:03,610 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099331176720: Initial worker pool
++17:13:03,611 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099322784016: Initial worker pool
++17:13:03,611 DEBUG [paste.httpserver.ThreadPool] Started new worker 140099314391312: Initial worker pool
++17:14:38,012 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:14:38,015 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:14:38,017 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:14:38,072 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:14:38,073 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:14:38,073 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:14:38,073 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:14:38,073 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2d7fb18>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=contact', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2d42e10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2d42ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d428d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2d42e10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d27550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336878.073858, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d428d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2d425d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:14:38,962 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:14:38,990 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:14:39,052 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:14:39,054 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:14:39,054 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:14:39,054 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:14:39,055 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:14:39,055 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:14:39,055 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251050>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=contact', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x324c710>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324c650>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d42950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x324c710>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d276d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336879.0556369, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x2d42950>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x324c250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:14:39,944 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:14:39,944 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:14:42,104 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:14:42,108 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:14:42,109 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:14:42,109 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:14:42,110 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:14:42,110 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:14:42,111 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32421b8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32333d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32337d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32335d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32333d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336882.1118979, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32335d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3233150>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:14:43,076 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:14:43,076 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:14:48,212 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:14:48,216 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:14:48,217 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:14:48,218 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:14:48,218 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:14:48,218 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:14:48,219 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251230>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=contact', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3238610>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324cc90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3233090>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3238610>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1ad0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336888.2199931, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3233090>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3233350>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:14:49,090 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:14:49,115 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:14:49,159 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:14:49,160 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:14:49,160 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:14:49,161 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:14:49,161 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:14:49,161 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:14:49,161 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251668>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=contact', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x324cc10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324c750>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324c8d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x324cc10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336889.161721, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x324c8d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x324ca90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:14:50,031 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:14:50,032 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:14:52,169 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:14:52,172 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:14:52,174 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:14:52,174 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:14:52,174 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:14:52,175 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:14:52,175 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251b90>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33ffc50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x33ff750>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324cd50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33ffc50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336892.1764431, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x324cd50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x324c7d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:14:53,081 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:14:53,081 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:00,052 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:00,054 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:00,054 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:00,054 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:00,055 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:00,055 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:00,055 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d51b8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=contact', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32dc110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32dcbd0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x33ffbd0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32dc110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f13d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336900.055594, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x33ffbd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33ff7d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:00,956 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:00,981 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:01,021 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:01,022 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:01,023 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:01,023 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:01,023 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:01,023 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:01,023 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251398>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=contact', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33ffd10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x33ff510>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32dcdd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33ffd10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1c50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336901.0242, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32dcdd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3233050>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:01,900 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:01,900 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:04,050 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:04,054 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:04,055 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:04,056 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:04,056 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:04,057 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:04,057 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5938>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3238110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32384d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32339d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3238110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336904.05828, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32339d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dc490>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:04,942 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:04,943 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:15,225 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:15,226 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:15,227 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:15,227 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:15,227 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:15,227 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:15,227 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5a28>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=contact', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x324c110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324c7d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3238810>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x324c110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1f50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336915.228091, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3238810>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x31fcf50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:15,233 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:15,235 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:15,290 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:15,291 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:15,291 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:15,292 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:15,292 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:15,292 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:15,292 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5de8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=contact', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32db550>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32db4d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324cd10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32db550>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336915.2925961, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x324cd10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x31fcb10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:15,308 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:15,308 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:18,303 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:18,304 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:18,304 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:18,304 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:18,304 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:18,304 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:18,305 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5938>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3238110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3238790>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x31fcf10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3238110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336918.3052471, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x31fcf10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dbc10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:18,310 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:18,310 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:25,966 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:25,969 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:25,970 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:25,970 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:25,971 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:25,971 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:25,971 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31fa848>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33ff250>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x33ff050>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32db510>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33ff250>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336925.972549, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32db510>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x31edf10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:25,989 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:25,990 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:27,345 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:27,348 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:27,350 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:27,350 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:27,350 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:27,351 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:27,351 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251c08>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32e91d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32e9150>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x33ff0d0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32e91d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336927.352319, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x33ff0d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dc410>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:27,368 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:27,370 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:27,477 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:27,483 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:27,485 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:27,485 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:27,485 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:27,486 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:27,486 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32e0758>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32e4c50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32e4b90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324cb90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32e4c50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x3258950 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336927.488977, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x324cb90>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e4550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:27,505 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:27,506 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:30,518 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:30,519 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:30,520 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:30,520 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:30,520 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:30,520 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:30,520 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251668>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32dca90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32dced0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e9950>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32dca90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336930.5210569, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32e9950>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e9890>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:30,933 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:30,933 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:31,530 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:31,531 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:31,531 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:31,531 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:31,532 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:31,532 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:31,532 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32421b8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32db810>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32dbb90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32dc910>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32db810>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336931.5325451, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32dc910>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x31edf10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:31,926 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:31,949 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:31,986 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:31,987 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:31,988 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:31,988 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:31,988 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:31,988 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:31,988 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32512a8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32e9c90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32e9ad0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32dbc10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32e9c90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d276d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336931.9891641, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32dbc10>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e9990>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:32,365 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:32,365 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:35,003 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:35,008 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:35,009 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:35,010 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:35,010 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:35,011 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:35,011 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3242848>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x324c690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324c5d0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2d423d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x324c690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336935.012126, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2d423d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e9550>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:35,553 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:35,553 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:41,903 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:41,907 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:41,908 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:41,908 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:41,908 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:41,908 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:41,909 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31fa758>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x31fcb90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x31fcc10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324cdd0>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x31fcb90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336941.909447, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x324cdd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x324c210>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:42,302 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:42,325 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:42,364 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:42,365 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:42,366 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:42,366 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:42,366 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:42,366 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:42,366 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251578>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3233050>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3233190>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x31fccd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3233050>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336942.3672259, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x31fccd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3233bd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:42,746 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:42,747 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:45,374 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:45,376 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:45,378 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:45,378 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:45,378 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:45,379 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:45,379 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251758>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32e4510>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32e4490>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32db1d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32e4510>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d276d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336945.3803861, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32db1d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3233290>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:45,783 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:45,784 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:50,931 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:50,932 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:50,933 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:50,933 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:50,933 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:50,933 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:50,933 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5de8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3238550>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32387d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e4190>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3238550>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336950.9339981, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32e4190>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e4250>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:50,955 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:50,957 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:50,998 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:50,999 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:50,999 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:50,999 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:50,999 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:50,999 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:51,000 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5cf8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x33ff390>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x33ff790>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3238710>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x33ff390>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f13d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336951.000335, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x3238710>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33ffdd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:51,005 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:51,005 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:51,834 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:51,836 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:51,837 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:51,837 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:51,837 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:51,837 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:51,837 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32e5500>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32dc650>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32dc6d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e4a10>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32dc650>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f14d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336951.838212, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32e4a10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33ffcd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:51,844 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:51,846 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:51,885 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:51,887 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:51,887 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:51,887 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:51,887 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:51,887 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:51,887 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5aa0>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3238a50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3238a10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x33ff510>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3238a50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336951.888135, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x33ff510>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33ffc90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:51,893 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:51,893 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:54,900 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:54,901 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:54,901 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:54,901 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:54,902 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:54,902 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:54,902 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251758>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32db790>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3238190>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x33ff750>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32db790>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336954.9026029, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x33ff750>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x33ffb10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:54,908 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:54,908 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:55,030 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:55,033 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:55,034 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:55,034 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:55,035 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:55,035 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:55,035 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251488>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32e40d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32e4490>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e9850>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32e40d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336955.0366199, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32e9850>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dbf10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:55,049 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:55,049 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:56,530 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:56,532 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:56,532 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:56,532 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:56,532 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:56,532 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:56,533 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3242848>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=name', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'sort=description', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x31edf90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x31edc90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e4e10>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x31edf90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336956.5333021, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32e4e10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e4b50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:57,406 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:57,431 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:15:57,478 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:15:57,479 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:15:57,480 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:15:57,480 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:15:57,480 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:15:57,480 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:15:57,480 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32512a8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32db790>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32db110>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32dba50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32db790>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336957.481108, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'HTTP_CACHE_CONTROL': 'max-age=0', 'routes.url': <routes.util.URLGenerator object at 0x32dba50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dba10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:15:58,358 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:15:58,358 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:16:00,569 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:16:00,581 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:16:00,582 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:16:00,582 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:16:00,582 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:16:00,582 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:16:00,582 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5e60>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32388d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3238190>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3233b50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32388d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1c50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266336960.5827439, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3233b50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32e4d50>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:16:01,702 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:16:01,702 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:34,186 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:34,197 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:34,198 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:34,198 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:34,198 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:34,198 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:34,198 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5c80>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/?sort=description', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32dc350>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32dced0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e4ad0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32dc350>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d275d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337054.1990769, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32e4ad0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32380d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:35,114 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:35,126 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:35,230 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:35,235 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:35,236 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:35,236 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:35,236 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:35,236 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:35,236 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3251f50>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32e4550>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x32e4e50>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32dcb50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32e4550>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x3258dd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337055.237149, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32dcb50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32dc390>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:36,149 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:36,150 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:38,273 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:38,274 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:38,276 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:38,276 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:38,276 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:38,277 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:38,277 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31fab18>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x324c710>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x324c190>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x32e9a50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x324c710>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x3258850 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337058.2784159, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x32e9a50>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3233690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:38,427 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:38,431 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:38,433 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:38,434 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:38,434 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:38,434 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:38,435 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x31fa578>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/file/eaa67bb2bee0', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3639310>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3639290>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x324c2d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3639310>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x3258c50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337058.435406, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x324c2d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3639e10>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:39,258 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:39,259 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:40,143 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:40,205 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:40,251 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:40,259 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:40,259 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:40,259 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:40,259 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:40,259 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:40,260 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x36530c8>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x362b4d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x362b510>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x362b7d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x362b4d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351aed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337060.2603531, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x362b7d0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x362bbd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:41,135 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:41,135 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:43,287 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:43,290 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:43,292 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:43,292 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:43,292 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:43,293 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:43,293 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x363fe60>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0/files'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/file/eaa67bb2bee0/files', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x361f7d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x361f290>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x362b790>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0/files'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x361f7d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351abd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337063.2945299, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x362b790>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x362ba90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:43,298 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:43,344 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:43,344 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:43,345 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:43,345 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:43,345 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:43,345 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x363f9b0>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3639750>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3639650>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x361f110>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3639750>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351add0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337063.345942, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x361f110>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x36393d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:45,039 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:45,260 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:45,260 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:46,010 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:46,051 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:46,052 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:46,053 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:46,053 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:46,053 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:46,053 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:46,053 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2d7f578>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0/files', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x353b110>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x353b5d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3548fd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x353b110>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351ae50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337066.0538859, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3548fd0>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3548710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:46,933 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:46,933 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:49,003 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:49,008 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:49,009 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:49,010 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:49,010 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:49,010 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:49,011 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2d7f500>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0/src'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/file/eaa67bb2bee0/src', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3519910>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3519f10>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3519bd0>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0/src'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3519910>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351aed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337069.0113289, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3519bd0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x35488d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:49,058 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:49,060 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:49,060 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:49,060 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:49,061 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:49,061 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:49,061 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32d5a28>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3548c90>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3548910>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x35485d0>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3548c90>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351ae50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337069.0618701, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x35485d0>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3548fd0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:50,516 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:50,884 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:50,884 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:51,021 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:51,022 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:51,023 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:51,023 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:51,023 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:51,023 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:51,023 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x362c398>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3553690>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3553450>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3548e10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3553690>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d27750 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337071.0238149, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3548e10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x361f3d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:51,068 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:51,127 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:51,128 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:51,128 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:51,128 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:51,128 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:51,128 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:51,129 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x36535f0>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0/src', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x35286d0>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3528850>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3553e50>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x35286d0>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x3258cd0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337071.129333, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3553e50>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3528c90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:52,570 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:52,570 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:52,878 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:52,878 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:54,172 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:54,224 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:54,225 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:54,225 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:54,226 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:54,226 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:54,226 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3242848>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x361b850>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x361b410>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3528a10>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x361b850>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x351ae50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337074.227577, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3528a10>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x35281d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:54,813 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:54,818 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:54,822 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:54,822 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:54,822 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:54,824 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:54,824 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x32426e0>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0/src', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0/src/file_creator_123b.py'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/file/eaa67bb2bee0/src/file_creator_123b.py', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x32f1a10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x36303d0>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3553190>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/file/eaa67bb2bee0/src/file_creator_123b.py'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x32f1a10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x2d27550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337074.8247769, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3553190>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x32f1950>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:55,749 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:55,749 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:56,296 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:56,321 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:56,359 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:56,362 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:56,362 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:56,362 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:56,362 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:56,362 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:56,363 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3839230>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0/src/file_creator_123b.py', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3832b50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3832a90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x362b850>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3832b50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f1e50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337076.363317, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x362b850>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3832710>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:56,395 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:56,397 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:56,397 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:56,397 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:56,397 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:56,397 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:56,398 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3839758>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_REFERER': 'http://127.0.0.1:5000/zte_tail/file/eaa67bb2bee0/src/file_creator_123b.py', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/highlightcss'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/zte_tail/highlightcss', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3908c50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3908b90>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3639890>, {'action': u'view', 'controller': u'hg', 'path_info': 'zte_tail/highlightcss'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3908c50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x3258ed0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337076.398298, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3639890>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3908690>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:17:57,979 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:57,979 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:58,224 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:17:58,227 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:17:59,391 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:17:59,439 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:17:59,441 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:17:59,441 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:17:59,441 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:17:59,442 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:17:59,442 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x3839e60>, 'environ': {'routes.route': <routes.route.Route object at 0x2c32550>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2c32790>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x383de50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2c32810>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x383d650>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3908a90>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x383de50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2c32850>, 'wsgi.input': <socket._fileobject object at 0x31f14d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337079.4434049, '_creation_time': 1266336878.073858}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3908a90>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x383d9d0>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f6b72db31c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1f825d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:18:00,369 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:18:00,369 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:21:28,567 DEBUG [pylons.configuration] Initializing configuration, package: 'pylons_app'
++17:21:28,568 DEBUG [pylons.configuration] Pushing process configuration
++17:21:28,571 DEBUG [pylons.configuration] Adding mako engine with alias None and {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
++17:21:28,571 DEBUG [pylons.configuration] Loaded mako template engine as the default template renderer
++17:21:28,575 DEBUG [pylons.templating] Initialized Buffet object
++17:21:28,575 DEBUG [pylons.templating] Adding mako template language for use with Buffet
++17:21:28,584 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258597800208: Initial worker pool
++17:21:28,585 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258589407504: Initial worker pool
++17:21:28,585 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258581014800: Initial worker pool
++17:21:28,585 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258572622096: Initial worker pool
++17:21:28,586 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258564229392: Initial worker pool
++17:21:28,586 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258555836688: Initial worker pool
++17:21:28,586 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258547443984: Initial worker pool
++17:21:28,586 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258539051280: Initial worker pool
++17:21:28,587 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258530658576: Initial worker pool
++17:21:28,587 DEBUG [paste.httpserver.ThreadPool] Started new worker 140258522265872: Initial worker pool
++17:21:46,517 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:21:46,519 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:21:46,521 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:21:46,574 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.hg', class: 'HgController'
++17:21:46,574 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:21:46,574 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:21:46,574 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:21:46,575 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x2c31b18>, 'environ': {'routes.route': <routes.route.Route object at 0x2ae25d0>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': '\\'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2ae2810>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/\\', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x2bf2e50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2ae2890>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x2bf2b10>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bf2910>, {'action': u'view', 'controller': u'hg', 'path_info': '\\'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x2bf2e50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'wsgi.input': <socket._fileobject object at 0x2bd7550 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337306.575387, '_creation_time': 1266337306.575387}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2bf2910>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x2bf2610>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f90846291c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e335d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:21:47,485 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 404 Not Found
++17:21:47,564 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:21:47,565 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:21:47,565 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'error'
++17:21:47,565 DEBUG [pylons.wsgiapp] Found controller, module: 'pylons_app.controllers.error', class: 'ErrorController'
++17:21:47,565 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:21:47,566 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:21:47,566 DEBUG [pylons.controllers.core] Looking for u'document' method to handle the request
++17:21:47,566 DEBUG [pylons.controllers.core] Calling 'document' method with keyword args: **{}
++17:21:47,566 DEBUG [pylons.templating] Created render namespace with pylons vars: {'c': <pylons.util.AttribSafeContextObj at 0x30ae590 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'ungettext': <function ungettext at 0x2626758>, 'g': <pylons_app.lib.app_globals.Globals object at 0x2ae2650>, 'url': <routes.util.URLGenerator object at 0x2bf2a50>, 'h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'request': <Request at 0x30ae410 GET http://127.0.0.1:5000//error/document>, 'tmpl_context': <pylons.util.AttribSafeContextObj at 0x30ae590 error_explanation=u'The resource could not be found', error_message='404 Not Found', redirect_module=u'Home page', redirect_time=5, serv_p='http://127.0.0.1:5000', url_redirect='/'>, 'translator': <gettext.GNUTranslations instance at 0x30e1b48>, 'session': {'_accessed_time': 1266337307.566829, '_creation_time': 1266337306.575387}, 'N_': <function gettext_noop at 0x2626410>, 'app_globals': <pylons_app.lib.app_globals.Globals object at 0x2ae2650>, 'config': {'error_email_from': 'paste_error@localhost', 'beaker.session.auto': 'True', 'pylons.paths': {'templates': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'controllers': '/home/marcink/python_workspace/hg_app/pylons_app/controllers', 'static_files': '/home/marcink/python_workspace/hg_app/pylons_app/public', 'root': '/home/marcink/python_workspace/hg_app/pylons_app'}, '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'pylons.cache_dir': '/home/marcink/python_workspace/hg_app/data', 'pylons.errorware': {'debug': True}, 'here': '/home/marcink/python_workspace/hg_app', 'pylons.strict_c': False, 'logview.sqlalchemy': '#faa', 'email_to': 'marcin.kuzminski@etelko.pl', 'pylons.h': <module 'pylons_app.lib.helpers' from '/home/marcink/python_workspace/hg_app/pylons_app/lib/helpers.pyc'>, 'pylons.package': 'pylons_app', 'buffet.template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}, 'pylons.g': <pylons_app.lib.app_globals.Globals object at 0x2ae2650>, 'logview.*': '#aaa', 'beaker.session.type': 'memory', 'lang': 'en', 'global_conf': {'error_email_from': 'paste_error@localhost', 'email_to': 'marcin.kuzminski@etelko.pl', 'debug': 'true', '__file__': '/home/marcink/python_workspace/hg_app/development.ini', 'smtp_server': 'localhost', 'here': '/home/marcink/python_workspace/hg_app'}, 'pylons.c_attach_args': True, 'buffet.template_engines': [{'engine': 'mako', 'alias': None, 'template_root': '', 'template_options': {'myghty.data_dir': '/home/marcink/python_workspace/hg_app/data/templates', 'mako.directories': ['/home/marcink/python_workspace/hg_app/pylons_app/templates'], 'myghty.component_root': [{'templates': '/home/marcink/python_workspace/hg_app/pylons_app/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/home/marcink/python_workspace/hg_app/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True}}], 'logview.pylons.templating': '#bfb', 'package': 'pylons_app', 'cache.dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.timeout': '3600', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.request_options': {'errors': 'replace', 'decode_param_names': False, 'charset': 'utf-8', 'language': 'en-us'}, 'pylons.db_engines': {}, 'smtp_server': 'localhost', 'routes.map': <routes.mapper.Mapper object at 0x2ae2490>, 'app_conf': {'lang': 'en', 'beaker.session.auto': 'True', 'logview.pylons.templating': '#bfb', 'package': 'pylons_app', 'beaker.session.timeout': '3600', 'logview.sqlalchemy': '#faa', 'cache_dir': '/home/marcink/python_workspace/hg_app/data', 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'logview.*': '#aaa', 'beaker.session.type': 'memory'}, 'beaker.cache.data_dir': '/home/marcink/python_workspace/hg_app/data/cache', 'debug': True, 'beaker.session.key': 'pylons_app', 'beaker.session.secret': '#@^^F&VWUDCT%@$#WR^@&*IWEKF', 'beaker.session.data_dir': '/home/marcink/python_workspace/hg_app/data/sessions', 'pylons.response_options': {'headers': {'Pragma': 'no-cache', 'Cache-Control': 'no-cache'}, 'errors': 'strict', 'charset': 'utf-8', 'content_type': 'text/html'}}, 'response': <Response at 0x30ae510 200 OK>, '_': <function ugettext at 0x2626578>}
++17:21:47,567 DEBUG [pylons.controllers.core] Controller returned a unicode string , writing it to pylons.response
++17:21:47,568 DEBUG [pylons.controllers.core] Calling Response object to return WSGI data
++17:21:52,705 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:21:52,711 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:21:52,712 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:21:52,713 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:21:52,713 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:21:52,713 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:21:52,714 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30eaed8>, 'environ': {'routes.route': <routes.route.Route object at 0x2ae25d0>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': u'/'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2ae2810>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': u'/', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30aec10>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2ae2890>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30ae850>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x2bf2990>, {'action': u'view', 'controller': u'hg', 'path_info': u'/'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30aec10>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'wsgi.input': <socket._fileobject object at 0x2bd76d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337312.7149711, '_creation_time': 1266337306.575387}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x2bf2990>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30aeb90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f90846291c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e335d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:21:53,624 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:21:53,648 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:21:53,688 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:21:53,689 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:21:53,690 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:21:53,690 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:21:53,690 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:21:53,690 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:21:53,690 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30ffb18>, 'environ': {'routes.route': <routes.route.Route object at 0x2ae25d0>, 'HTTP_REFERER': 'http://127.0.0.1:5000/', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2ae2810>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/style-gitweb.css', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x3104790>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x3104550>, 'wsgi.url_scheme': 'http', 'beaker.cache': <beaker.cache.CacheManager object at 0x2ae2890>, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3104050>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/style-gitweb.css'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x3104790>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'wsgi.input': <socket._fileobject object at 0x2bd75d0 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337313.6909239, '_creation_time': 1266337306.575387}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3104050>, 'HTTP_ACCEPT': 'text/css,*/*;q=0.1', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x3104350>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f90846291c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e335d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:21:54,582 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:21:54,583 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
++17:21:56,701 DEBUG [paste.httpserver.ThreadPool] Added task (0 tasks queued)
++17:21:56,705 DEBUG [pylons.wsgiapp] Setting up Pylons stacked object globals
++17:21:56,706 DEBUG [pylons.wsgiapp] Resolved URL to controller: u'hg'
++17:21:56,706 DEBUG [pylons.wsgiapp] Controller appears to be a class, instantiating
++17:21:56,707 DEBUG [pylons.wsgiapp] Calling controller class with WSGI interface
++17:21:56,707 DEBUG [pylons.controllers.core] Looking for u'view' method to handle the request
++17:21:56,708 DEBUG [pylons.controllers.core] Calling 'view' method with keyword args: **{'start_response': <function repl_start_response at 0x30ff500>, 'environ': {'routes.route': <routes.route.Route object at 0x2ae25d0>, 'HTTP_COOKIE': 'pylons_app=dc978ac3d8310b7331343eb2744a0b696f544612d08f13a0624d036cff94c88a7239f3eb', 'pylons.routes_dict': {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}, 'beaker.get_session': <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x2ae2810>>, 'SCRIPT_NAME': '', 'webob.adhoc_attrs': {'language': 'en-us'}, 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/static/hgicon.png', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'paste.throw_errors': True, 'pylons.action_method': <bound method HgController.view of <pylons_app.controllers.hg.HgController object at 0x30fbf50>>, 'CONTENT_LENGTH': '0', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.2pre) Gecko/20100213 Ubuntu/9.10 (karmic) Namoroka/3.6.2pre', 'HTTP_CONNECTION': 'keep-alive', 'beaker.cache': <beaker.cache.CacheManager object at 0x2ae2890>, 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'pylons.environ_config': {'session': 'beaker.session', 'cache': 'beaker.cache'}, 'pylons.pylons': <pylons.util.PylonsContext object at 0x30aefd0>, 'wsgi.url_scheme': 'http', 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x3104690>, {'action': u'view', 'controller': u'hg', 'path_info': 'static/hgicon.png'}), 'SERVER_PORT': '5000', 'weberror.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'pylons.controller': <pylons_app.controllers.hg.HgController object at 0x30fbf50>, 'paste.evalexception': <weberror.evalexception.EvalException object at 0x2ae28d0>, 'wsgi.input': <socket._fileobject object at 0x30a3d50 length=0>, 'HTTP_HOST': '127.0.0.1:5000', 'beaker.session': {'_accessed_time': 1266337316.7088051, '_creation_time': 1266337306.575387}, 'wsgi.multithread': True, 'routes.url': <routes.util.URLGenerator object at 0x3104690>, 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'wsgi.version': (1, 0), 'paste.registry': <paste.registry.Registry object at 0x30edd90>, 'wsgi.run_once': False, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f90846291c8>, 'wsgi.multiprocess': False, 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'CONTENT_TYPE': '', 'paste.httpserver.thread_pool': <paste.httpserver.ThreadPool object at 0x1e335d0>, 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_KEEP_ALIVE': '115'}}
++17:21:57,600 DEBUG [pylons.controllers.core] Merging pylons.response headers into start_response call, status: 200 Script output follows
++17:21:57,600 DEBUG [pylons.controllers.core] Response assumed to be WSGI content, returning un-touched
+diff --git a/pylons_app/__init__.py b/pylons_app/__init__.py
+new file mode 100644
+diff --git a/pylons_app/config/__init__.py b/pylons_app/config/__init__.py
+new file mode 100644
+diff --git a/pylons_app/config/deployment.ini_tmpl b/pylons_app/config/deployment.ini_tmpl
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/config/deployment.ini_tmpl
+@@ -0,0 +1,60 @@
++#
++# pylons_app - Pylons configuration
++#
++# The %(here)s variable will be replaced with the parent directory of this file
++#
++[DEFAULT]
++debug = true
++email_to = you@yourdomain.com
++smtp_server = localhost
++error_email_from = paste@localhost
++
++[server:main]
++use = egg:Paste#http
++host = 0.0.0.0
++port = 5000
++
++[app:main]
++use = egg:pylons_app
++full_stack = true
++static_files = true
++
++cache_dir = %(here)s/data
++beaker.session.key = pylons_app
++beaker.session.secret = ${app_instance_secret}
++app_instance_uuid = ${app_instance_uuid}
++
++# If you'd like to fine-tune the individual locations of the cache data dirs
++# for the Cache data, or the Session saves, un-comment the desired settings
++# here:
++#beaker.cache.data_dir = %(here)s/data/cache
++#beaker.session.data_dir = %(here)s/data/sessions
++
++# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
++# Debug mode will enable the interactive debugging tool, allowing ANYONE to
++# execute malicious code after an exception is raised.
++set debug = false
++
++
++# Logging configuration
++[loggers]
++keys = root
++
++[handlers]
++keys = console
++
++[formatters]
++keys = generic
++
++[logger_root]
++level = INFO
++handlers = console
++
++[handler_console]
++class = StreamHandler
++args = (sys.stderr,)
++level = NOTSET
++formatter = generic
++
++[formatter_generic]
++format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
+diff --git a/pylons_app/config/environment.py b/pylons_app/config/environment.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/config/environment.py
+@@ -0,0 +1,44 @@
++"""Pylons environment configuration"""
++import logging
++import os
++from pylons import config
++from mako.lookup import TemplateLookup
++from pylons.error import handle_mako_error
++import pylons_app.lib.app_globals as app_globals
++import pylons_app.lib.helpers
++from pylons_app.config.routing import make_map
++
++log = logging.getLogger(__name__)
++
++def load_environment(global_conf, app_conf):
++    """Configure the Pylons environment via the ``pylons.config``
++    object
++    """
++    # Pylons paths
++    root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
++    paths = dict(root = root,
++                 controllers = os.path.join(root, 'controllers'),
++                 static_files = os.path.join(root, 'public'),
++                 templates = [os.path.join(root, 'templates')])
++
++    # Initialize config with the basic options
++    config.init_app(global_conf, app_conf, package = 'pylons_app',
++                    template_engine = 'mako', paths = paths)
++
++    config['routes.map'] = make_map()
++    config['pylons.g'] = app_globals.Globals()
++    config['pylons.h'] = pylons_app.lib.helpers
++
++    # Create the Mako TemplateLookup, with the default auto-escaping
++    config['pylons.g'].mako_lookup = TemplateLookup(
++        directories = paths['templates'],
++        error_handler = handle_mako_error,
++        module_directory = os.path.join(app_conf['cache_dir'], 'templates'),
++        input_encoding = 'utf-8', default_filters = ['escape'],
++        imports = ['from webhelpers.html import escape'])
++
++    # Customize templating options via this variable
++    tmpl_options = config['buffet.template_options']
++
++    # CONFIGURATION OPTIONS HERE (note: all config options will override
++    # any Pylons config options)
+diff --git a/pylons_app/config/middleware.py b/pylons_app/config/middleware.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/config/middleware.py
+@@ -0,0 +1,74 @@
++"""Pylons middleware initialization"""
++from beaker.middleware import CacheMiddleware, SessionMiddleware
++from paste.cascade import Cascade
++from paste.registry import RegistryManager
++from paste.urlparser import StaticURLParser
++from paste.deploy.converters import asbool
++from pylons import config
++from pylons.middleware import ErrorHandler, StatusCodeRedirect
++from pylons.wsgiapp import PylonsApp
++from routes.middleware import RoutesMiddleware
++
++from pylons_app.config.environment import load_environment
++
++def make_app(global_conf, full_stack = True, static_files = True, **app_conf):
++    """Create a Pylons WSGI application and return it
++
++    ``global_conf``
++        The inherited configuration for this application. Normally from
++        the [DEFAULT] section of the Paste ini file.
++
++    ``full_stack``
++        Whether this application provides a full WSGI stack (by default,
++        meaning it handles its own exceptions and errors). Disable
++        full_stack when this application is "managed" by another WSGI
++        middleware.
++
++    ``static_files``
++        Whether this application serves its own static files; disable
++        when another web server is responsible for serving them.
++
++    ``app_conf``
++        The application's local configuration. Normally specified in
++        the [app:<name>] section of the Paste ini file (where <name>
++        defaults to main).
++
++    """
++    # Configure the Pylons environment
++    load_environment(global_conf, app_conf)
++
++    # The Pylons WSGI app
++    app = PylonsApp()
++
++    # Routing/Session/Cache Middleware
++    app = RoutesMiddleware(app, config['routes.map'])
++    app = SessionMiddleware(app, config)
++    app = CacheMiddleware(app, config)
++
++    # CUSTOM MIDDLEWARE HERE (filtered by error handling middlewares)
++
++    if asbool(full_stack):
++        # Handle Python exceptions
++        app = ErrorHandler(app, global_conf, **config['pylons.errorware'])
++
++        # Display error documents for 401, 403, 404 status codes (and
++        # 500 when debug is disabled)
++        if asbool(config['debug']):
++            app = StatusCodeRedirect(app)
++        else:
++            app = StatusCodeRedirect(app, [400, 401, 403, 404, 500])
++
++    # Establish the Registry for this application
++    app = RegistryManager(app)
++
++    if asbool(static_files):
++        # Serve static files
++        static_app = StaticURLParser(config['pylons.paths']['static_files'])
++        app = Cascade([static_app, app])
++
++    #dozer debug
++    if asbool(config['debug']):
++        from dozer import Logview
++        app = Logview(app, config)
++
++    return app
+diff --git a/pylons_app/config/routing.py b/pylons_app/config/routing.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/config/routing.py
+@@ -0,0 +1,25 @@
++"""Routes configuration
++
++The more specific and detailed routes should be defined first so they
++may take precedent over the more generic routes. For more information
++refer to the routes manual at http://routes.groovie.org/docs/
++"""
++from pylons import config
++from routes import Mapper
++
++def make_map():
++    """Create, configure and return the routes Mapper"""
++    map = Mapper(directory = config['pylons.paths']['controllers'],
++                 always_scan = config['debug'])
++    map.minimization = False
++
++    # The ErrorController route (handles 404/500 error pages); it should
++    # likely stay at the top, ensuring it can always be resolved
++    map.connect('/error/{action}', controller = 'error')
++    map.connect('/error/{action}/{id}', controller = 'error')
++
++    # CUSTOM ROUTES HERE
++    map.connect('hg', '/{path_info:.*}', controller = 'hg', action = "view",
++                path_info = '/', conditions = {'method':'GET'})
++
++    return map
+diff --git a/pylons_app/controllers/__init__.py b/pylons_app/controllers/__init__.py
+new file mode 100644
+diff --git a/pylons_app/controllers/error.py b/pylons_app/controllers/error.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/controllers/error.py
+@@ -0,0 +1,62 @@
++import logging
++from paste.urlparser import PkgResourcesParser
++from pylons import request, tmpl_context as c
++from pylons.controllers.util import forward
++from pylons.i18n.translation import _
++from pylons_app.lib.base import BaseController, render
++import cgi
++
++log = logging.getLogger(__name__)
++class ErrorController(BaseController):
++    """
++    Generates error documents as and when they are required.
++
++    The ErrorDocuments middleware forwards to ErrorController when error
++    related status codes are returned from the application.
++
++    This behaviour can be altered by changing the parameters to the
++    ErrorDocuments middleware in your config/middleware.py file.
++    """
++
++    def document(self):
++
++        resp = request.environ.get('pylons.original_response')
++        c.error_message = cgi.escape(request.GET.get('code', str(resp.status)))
++        c.error_explanation = self.get_error_explanation(resp.status_int)
++
++        c.serv_p = ''.join(['http://', request.environ.get('HTTP_HOST', '')])
++
++        #redirect to when error with given seconds
++        c.redirect_time = 5
++        c.redirect_module = _('Home page')# name to what your going to be redirected
++        c.url_redirect = "/"
++
++        return render('/errors/error_document.html')
++
++    def _serve_file(self, path):
++        """Call Paste's FileApp (a WSGI application) to serve the file
++        at the specified path
++        """
++        request.environ['PATH_INFO'] = '/%s' % path
++        return forward(PkgResourcesParser('pylons', 'pylons'))
++
++    def get_error_explanation(self, code):
++        ''' get the error explanations of int codes
++            [400, 401, 403, 404, 500]'''
++        try:
++            code = int(code)
++        except:
++            code = 500
++
++        if code == 400:
++            return _('The request could not be understood by the server due to malformed syntax.')
++        if code == 401:
++            return _('Unathorized access to resource')
++        if code == 403:
++            return _("You don't have permission to view this page")
++        if code == 404:
++            return _('The resource could not be found')
++        if code == 500:
++            return _('The server encountered an unexpected condition which prevented it from fulfilling the request.')
++
++
+diff --git a/pylons_app/controllers/hg.py b/pylons_app/controllers/hg.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/controllers/hg.py
+@@ -0,0 +1,61 @@
++#!/usr/bin/python
++# -*- coding: utf-8 -*-
++import logging
++from pylons_app.lib.base import BaseController
++from pylons import c, g, session, h, request
++from mako.template import Template
++from pprint import pprint
++#uncomment the following if you want to serve a single repo
++#from mercurial.hgweb.hgweb_mod import hgweb
++from mercurial.hgweb.hgwebdir_mod import hgwebdir
++from mercurial.hgweb.request import wsgiapplication
++log = logging.getLogger(__name__)
++
++#http://bel-epa.com/hg/
++#def make_web_app():
++#    repos = "hgwebdir.config"
++#    hgwebapp = hgwebdir(repos)
++#    return hgwebapp
++#
++#class HgController(BaseController):
++#
++#    def index(self):
++#        hgapp = wsgiapplication(make_web_app)
++#        return hgapp(request.environ, self.start_response)
++#
++#    def view(self, *args, **kwargs):
++#        return u'dupa'
++#        #pprint(request.environ)
++#        hgapp = wsgiapplication(make_web_app)
++#        return hgapp(request.environ, self.start_response)
++
++def _make_app():
++    #for single a repo
++    #return hgweb("/path/to/repo", "Name")
++    repos = "hgwebdir.config"
++    return  hgwebdir(repos)
++
++def wsgi_app(environ, start_response):
++    start_response('200 OK', [('Content-type', 'text/html')])
++    return ['<html>\n<body>\nHello World!\n</body>\n</html>']
++
++class HgController(BaseController):
++
++
++
++    def view(self, environ, start_response):
++        #the following is only needed when using hgwebdir
++        app = _make_app()
++        #return wsgi_app(environ, start_response)
++        response = app(request.environ, self.start_response)
++
++        if environ['PATH_INFO'].find("static") != -1:
++            return response
++        else:
++            #wrap the murcurial response in a mako template.
++            template = Template("".join(response),
++                                lookup = environ['pylons.pylons']\
++                                .config['pylons.g'].mako_lookup)
++
++            return template.render(g = g, c = c, session = session, h = h)
++
+diff --git a/pylons_app/dbmodel/__init__.py b/pylons_app/dbmodel/__init__.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/dbmodel/__init__.py
+@@ -0,0 +1,7 @@
++from sqlalchemy.ext.declarative import declarative_base
++from sqlalchemy.orm import relation, backref
++from sqlalchemy import ForeignKey, Column, Table, Sequence
++from sqlalchemy.types import *
++from sqlalchemy.databases.mysql import *
++from sqlalchemy.databases.postgres import *
++from pylons_app.model.meta import Base
+diff --git a/pylons_app/i18n/en/LC_MESSAGES/pylons_app.mo b/pylons_app/i18n/en/LC_MESSAGES/pylons_app.mo
+new file mode 100644
+index 0000000000000000000000000000000000000000..2364012659858b3257d083b34705a8ec533369ec
+GIT binary patch
+literal 1257
+zc%1E0!EVz)5H&OxjD!$p1j7kX+0-$mDsEFXZBr;pph{CDE})HfY%kcmW_O)7T=)PE
+zoVfA@aNvxPxbPXkk>6kv2UV50a$}{Z=at{Sc{95|E;ZhHw9XMO6NGnqeIP6mKF&4Y
+z2@eRr2v-T=8P9u4JRrV6{E7Gq@mJzS;-AE?3Fpt&K5rIkpU(@m&$orz=VGJw2^zJ}
+z+eYp4zES&pA@(|PtSjX}RmBJmNDESpc`n5*kPeE<Iv62@D<EVlo%QbP0-@w7dczFC
+z;L8e0LLRvQrDx(w2{hJeEnqYOM>30MOy;6Oa2g7pC)yM!z)qCo$IZEw)s>0yv{ypm
+z#O(jv1Jx`q8amDu)xzTvV@JDKD<PfK3XU=vXHXg(qniGqMiQe7NUA)Mc`j8tOEnKq
+z<@F0xP)J*F7iZp~;x5xhzM7VZW3+af`cFRZiLO9sb=^V6$21Exbka`il4>mRh|Fn>
+zvl;Ch{hZRVJ;5H+Oh^<#ImxxM&v;ov&}{hwEVXg0Z&NAQR+U;d)Dd+1oxR>>XJ=>7
+zJvi|99}U^IK|bw{?Qn+?gh4A{LCAs?2*c>k@*?d660!k~rTx3^cGOy_bv<q!8yc=`
+z&Yd<9>>l=d@UYYG!uqMw8zfa}MZK^g@*<-7!+Ni`naid&>4v|bSBB?om+sR>pvu|S
+zw!<~3KifAHTx&z?rr+P|cTa}UY6kwcrrS}JV^UI3hsSQI%(+x+5NF(2bnVI|Z1qGp
+s&6}WMU3vq8ZZU$@k#zn&RA{JK8s8*>Ek44WCVRKJ?Ein=|MYeL21!kY+5i9m
+
+diff --git a/pylons_app/i18n/en/LC_MESSAGES/pylons_app.po b/pylons_app/i18n/en/LC_MESSAGES/pylons_app.po
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/i18n/en/LC_MESSAGES/pylons_app.po
+@@ -0,0 +1,53 @@
++# English translations for pylons_app.
++# Copyright (C) 2010 ORGANIZATION
++# This file is distributed under the same license as the pylons_app project.
++# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
++#
++msgid ""
++msgstr ""
++"Project-Id-Version: pylons_app 0.1\n"
++"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
++"POT-Creation-Date: 2010-02-06 22:54+0100\n"
++"PO-Revision-Date: 2010-02-06 23:16+0100\n"
++"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
++"Language-Team: en <LL@li.org>\n"
++"Plural-Forms: nplurals=2; plural=(n != 1)\n"
++"MIME-Version: 1.0\n"
++"Content-Type: text/plain; charset=utf-8\n"
++"Content-Transfer-Encoding: 8bit\n"
++"Generated-By: Babel 0.9.4\n"
++
++#: pylons_app/controllers/error.py:34
++msgid "Home page"
++msgstr ""
++
++#: pylons_app/controllers/error.py:55
++msgid "The request could not be understood by the server due to malformed syntax."
++msgstr ""
++
++#: pylons_app/controllers/error.py:57
++msgid "Unathorized access to resource"
++msgstr ""
++
++#: pylons_app/controllers/error.py:59
++msgid "You don't have permission to view this page"
++msgstr ""
++
++#: pylons_app/controllers/error.py:61
++msgid "The resource could not be found"
++msgstr ""
++
++#: pylons_app/controllers/error.py:63
++msgid ""
++"The server encountered an unexpected condition which prevented it from "
++"fulfilling the request."
++msgstr ""
++
++#: pylons_app/model/forms.py:29
++msgid "Token mismatch"
++msgstr ""
++
++#: pylons_app/model/forms.py:52
++msgid "Account number is invalid, it must be 26 digits"
++msgstr ""
++
+diff --git a/pylons_app/i18n/how_to b/pylons_app/i18n/how_to
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/i18n/how_to
+@@ -0,0 +1,15 @@
++#goto pylons folder app (the on holding .ini files)
++
++# to create new 
++python setup.py extract_messages -> get messages from project
++python setup.py init_catalog -l pl -> create a language directory
++edit the new po file with poedit
++python setup.py compile_catalog -> create translation files
++#done 
++ 
++ # to update
++python setup.py extract_messages -> get messages from project
++python setup.py update_catalog -> to update the translations
++edit the new updated po file with poedit
++python setup.py compile_catalog -> create translation files
++#done
+\ No newline at end of file
+diff --git a/pylons_app/i18n/pl/LC_MESSAGES/pylons_app.mo b/pylons_app/i18n/pl/LC_MESSAGES/pylons_app.mo
+new file mode 100644
+index 0000000000000000000000000000000000000000..34317e380a43c091ff870bc0786d76a38e6b66c1
+GIT binary patch
+literal 1315
+zc%1E1O>fgM7!Ir#io}64g7?DMG~6ZGn6|7P>$VOywJ>!Z5*Lu0ylp)aJJ?RQqWum2
+z1sphX<HCV|zy&z+3lK+mlN3#pxN^hNqsNXPKktX*uh%QD9U4~%Hwck)al9cc65dWV
+zUkLkz?}S?f|B~Z8BkmGkBYsDGllTMi0`WKE_k^pLOP`N3rO%I<(&yJq>9b!ceU2-o
+z&!<Z1^SM&`{3LdoVW=``L1sxGH3$Pjj(IGiyC5tinX%AE@K+!bLt%~cP$dW{AEMJ6
+zA!vM=AxX$1jzFqHoXH5au}VeIpMWKqK|Ln(C_}Ic5*`nfPA~#9k(Qs<rdCE}I>d`!
+z14=F`_NN{wi+oYjaV{wqo~9UDT7^nR!U`qfWF*27q#DO4^BpQ=pj85cEFOqB7IIi*
+zHBFwvs~0FC5hmd_963jl+mX`ZRURS?(U?5zKlwRNRR)ogcPxzfn0kSlPMSO}sm20N
+z$eh|(^yomVW6F;0MeGUnghT<PlUPafoTn+cHLu#mRB6jPW+)=Il?@H+sQ_A?=3aZV
+zxwF%49UfK>9{1R`MxIy4cDTg=eAjcC>oa!+d_TCiyg+N0gsh8WVg9aL3cQt4*XG8u
+zp61fT+$tTw?oqo9kD8qp)GvhIAgLT?R151NPbm8s>h1PsENV&*H>wA5rg_YE={`*W
+zGA)*-v9u25v@s_e4G->v3$%UPb2l13%+40mdSf}C&gFBr?zwPwR(#Jj?mV6G=!`#K
+z?d)}0=k4=qZgpGHy-KQJl2VBlPwiqFb0OCu9C2;XHZnV4tLM7B(gAALqQ57i`ww8X
+gFKqPzO4QUQYWyUCE#AkN?qsdDT>bwp{^`5;4bgRz^Z)<=
+
+diff --git a/pylons_app/i18n/pl/LC_MESSAGES/pylons_app.po b/pylons_app/i18n/pl/LC_MESSAGES/pylons_app.po
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/i18n/pl/LC_MESSAGES/pylons_app.po
+@@ -0,0 +1,54 @@
++# Polish translations for pylons_app.
++# Copyright (C) 2010 ORGANIZATION
++# This file is distributed under the same license as the pylons_app project.
++# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
++#
++msgid ""
++msgstr ""
++"Project-Id-Version: pylons_app 0.1\n"
++"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
++"POT-Creation-Date: 2010-02-06 22:54+0100\n"
++"PO-Revision-Date: 2010-02-06 22:54+0100\n"
++"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
++"Language-Team: pl <LL@li.org>\n"
++"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && "
++"(n%100<10 || n%100>=20) ? 1 : 2)\n"
++"MIME-Version: 1.0\n"
++"Content-Type: text/plain; charset=utf-8\n"
++"Content-Transfer-Encoding: 8bit\n"
++"Generated-By: Babel 0.9.4\n"
++
++#: pylons_app/controllers/error.py:34
++msgid "Home page"
++msgstr ""
++
++#: pylons_app/controllers/error.py:55
++msgid "The request could not be understood by the server due to malformed syntax."
++msgstr ""
++
++#: pylons_app/controllers/error.py:57
++msgid "Unathorized access to resource"
++msgstr ""
++
++#: pylons_app/controllers/error.py:59
++msgid "You don't have permission to view this page"
++msgstr ""
++
++#: pylons_app/controllers/error.py:61
++msgid "The resource could not be found"
++msgstr ""
++
++#: pylons_app/controllers/error.py:63
++msgid ""
++"The server encountered an unexpected condition which prevented it from "
++"fulfilling the request."
++msgstr ""
++
++#: pylons_app/model/forms.py:29
++msgid "Token mismatch"
++msgstr ""
++
++#: pylons_app/model/forms.py:52
++msgid "Account number is invalid, it must be 26 digits"
++msgstr ""
++
+diff --git a/pylons_app/i18n/pylons_app.pot b/pylons_app/i18n/pylons_app.pot
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/i18n/pylons_app.pot
+@@ -0,0 +1,53 @@
++# Translations template for pylons_app.
++# Copyright (C) 2010 ORGANIZATION
++# This file is distributed under the same license as the pylons_app project.
++# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
++#
++#, fuzzy
++msgid ""
++msgstr ""
++"Project-Id-Version: pylons_app 0.1\n"
++"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
++"POT-Creation-Date: 2010-02-06 22:54+0100\n"
++"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
++"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
++"Language-Team: LANGUAGE <LL@li.org>\n"
++"MIME-Version: 1.0\n"
++"Content-Type: text/plain; charset=utf-8\n"
++"Content-Transfer-Encoding: 8bit\n"
++"Generated-By: Babel 0.9.4\n"
++
++#: pylons_app/controllers/error.py:34
++msgid "Home page"
++msgstr ""
++
++#: pylons_app/controllers/error.py:55
++msgid "The request could not be understood by the server due to malformed syntax."
++msgstr ""
++
++#: pylons_app/controllers/error.py:57
++msgid "Unathorized access to resource"
++msgstr ""
++
++#: pylons_app/controllers/error.py:59
++msgid "You don't have permission to view this page"
++msgstr ""
++
++#: pylons_app/controllers/error.py:61
++msgid "The resource could not be found"
++msgstr ""
++
++#: pylons_app/controllers/error.py:63
++msgid ""
++"The server encountered an unexpected condition which prevented it from "
++"fulfilling the request."
++msgstr ""
++
++#: pylons_app/model/forms.py:29
++msgid "Token mismatch"
++msgstr ""
++
++#: pylons_app/model/forms.py:52
++msgid "Account number is invalid, it must be 26 digits"
++msgstr ""
++
+diff --git a/pylons_app/lib/__init__.py b/pylons_app/lib/__init__.py
+new file mode 100644
+diff --git a/pylons_app/lib/app_globals.py b/pylons_app/lib/app_globals.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/lib/app_globals.py
+@@ -0,0 +1,15 @@
++"""The application's Globals object"""
++
++class Globals(object):
++
++    """Globals acts as a container for objects available throughout the
++    life of the application
++
++    """
++
++    def __init__(self):
++        """One instance of Globals is created during application
++        initialization and is available during requests via the
++        'app_globals' variable
++
++        """
+diff --git a/pylons_app/lib/base.py b/pylons_app/lib/base.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/lib/base.py
+@@ -0,0 +1,20 @@
++"""The base Controller API
++
++Provides the BaseController class for subclassing.
++"""
++from pylons.controllers import WSGIController
++from pylons.templating import render_mako as render
++from pylons_app.model import meta
++
++class BaseController(WSGIController):
++
++    def __call__(self, environ, start_response):
++        """Invoke the Controller"""
++        # WSGIController.__call__ dispatches to the Controller method
++        # the request is routed to. This routing information is
++        # available in environ['pylons.routes_dict']
++        try:
++            return WSGIController.__call__(self, environ, start_response)
++        finally:
++            pass
++            #meta.Session.remove()
+diff --git a/pylons_app/lib/colored_logger.py b/pylons_app/lib/colored_logger.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/lib/colored_logger.py
+@@ -0,0 +1,1 @@
++
+diff --git a/pylons_app/lib/helpers.py b/pylons_app/lib/helpers.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/lib/helpers.py
+@@ -0,0 +1,49 @@
++"""Helper functions
++
++Consists of functions to typically be used within templates, but also
++available to Controllers. This module is available to both as 'h'.
++"""
++from routes import redirect_to, url_for
++
++from webhelpers.html import (literal, HTML, escape)
++from webhelpers.html.tools import (auto_link, button_to, highlight, js_obfuscate
++                                   , mail_to, strip_links, strip_tags, tag_re)
++from webhelpers.html.tags import (auto_discovery_link, checkbox, css_classes,
++                                  end_form, file, form, hidden, image,
++                                  javascript_link, link_to, link_to_if,
++                                  link_to_unless, ol, required_legend,
++                                  select, stylesheet_link,
++                                  submit, text, textarea, title, ul, xml_declaration)
++from webhelpers.text import (chop_at, collapse, convert_accented_entities,
++                             convert_misc_characters, convert_misc_entities,
++                             lchop, plural, rchop, remove_formatting, replace_whitespace,
++                             urlify)
++
++from webhelpers.pylonslib import Flash as _Flash
++from webhelpers.pylonslib.secure_form import secure_form
++
++#Custom helper here :)
++class _Link(object):
++    '''
++    Make a url based on label and url with help of url_for
++    @param label:name of link    if not defined url is used
++    @param url: the url for link
++    '''
++
++    def __call__(self, label = '', *url, **urlargs):
++        if label is None or '':
++            label = url
++        link_fn = link_to(label, url_for(*url, **urlargs))
++        return link_fn
++
++
++class _GetError(object):
++
++    def __call__(self, field_name, form_errors):
++        tmpl = """<span class="error_msg">%s</span>"""
++        if form_errors and form_errors.has_key(field_name):
++            return literal(tmpl % form_errors.get(field_name))
++
++link = _Link()
++flash = _Flash()
++get_error = _GetError()
+diff --git a/pylons_app/model/__init__.py b/pylons_app/model/__init__.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/model/__init__.py
+@@ -0,0 +1,30 @@
++"""The application's model objects"""
++import logging
++import sqlalchemy as sa
++from sqlalchemy import orm
++from pylons_app.model import meta
++from pylons_app.model.meta import Session
++log = logging.getLogger(__name__)
++
++# Add these two imports:
++import datetime
++from sqlalchemy import schema, types
++
++def init_model(engine):
++    """Call me before using any of the tables or classes in the model"""
++    log.info("INITIALIZING DB MODELS")
++    meta.Base.metadata.bind = engine
++    #meta.Base2.metadata.bind = engine2
++
++#THIS IS A TEST FOR EXECUTING SCRIPT AND LOAD PYLONS APPLICATION GLOBALS
++#from paste.deploy import appconfig
++#from pylons import config
++#from sqlalchemy import engine_from_config
++#from pylons_app.config.environment import load_environment
++#
++#conf = appconfig('config:development.ini', relative_to = './../../')
++#load_environment(conf.global_conf, conf.local_conf)
++#
++#engine = engine_from_config(config, 'sqlalchemy.')
++#init_model(engine)
++# DO SOMETHING
+diff --git a/pylons_app/model/forms.py b/pylons_app/model/forms.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/model/forms.py
+@@ -0,0 +1,63 @@
++""" this is forms validation classes
++http://formencode.org/module-formencode.validators.html
++for list off all availible validators
++
++we can create our own validators
++
++The table below outlines the options which can be used in a schema in addition to the validators themselves
++pre_validators          []     These validators will be applied before the schema
++chained_validators      []     These validators will be applied after the schema
++allow_extra_fields      False     If True, then it is not an error when keys that aren't associated with a validator are present
++filter_extra_fields     False     If True, then keys that aren't associated with a validator are removed
++if_key_missing          NoDefault If this is given, then any keys that aren't available but are expected will be replaced with this value (and then validated). This does not override a present .if_missing attribute on validators. NoDefault is a special FormEncode class to mean that no default values has been specified and therefore missing keys shouldn't take a default value.
++ignore_key_missing      False     If True, then missing keys will be missing in the result, if the validator doesn't have .if_missing on it already    
++  
++  
++<name> = formencode.validators.<name of validator>
++<name> must equal form name
++list=[1,2,3,4,5]
++for select use formencode.All(OneOf(list), Int())
++    
++"""
++
++import formencode
++from formencode.validators import UnicodeString, OneOf, Int, Number, Regex
++from pylons.i18n.translation import _
++from webhelpers.pylonslib.secure_form import authentication_token
++
++class ValidAuthToken(formencode.validators.FancyValidator):
++    messages = {'invalid_token':_('Token mismatch')}
++
++    def validate_python(self, value, state):
++
++        if value != authentication_token():
++            raise formencode.Invalid(self.message('invalid_token', state, search_number = value), value, state)
++
++
++class WireTransferForm(object):
++    '''
++    A factory wrapper class. It might return the instance of class for a validation, but also it can
++    return the list for select fields values.
++    @param ret_type: type to return defaut: 'class'
++    '''
++    #class attributes here
++    #it might be fetched from db,from models and so on
++    recipients_list = [
++                       (1, 'a'),
++                       (2, 'b')
++                       ]
++
++    def _form(self):
++        class _WireTransferForm(formencode.Schema):
++            allow_extra_fields = True
++            _authentication_token = ValidAuthToken()
++            account_number = Regex(r'[0-9]{26}', not_empty = True, messages = {
++                                                'invalid': _("Account number is invalid, it must be 26 digits")})
++            title = UnicodeString(not_empty = True, min = 3, strip = True)
++            recipient = formencode.All(OneOf([i[0] for i in WireTransferForm.recipients_list],
++                                             testValueList = True, hideList = True), Int())
++            recipient_address = UnicodeString(not_empty = True, strip = True)
++            amount = Number(not_empty = True, min = 1)
++
++        return _WireTransferForm()
++
+diff --git a/pylons_app/model/meta.py b/pylons_app/model/meta.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/model/meta.py
+@@ -0,0 +1,15 @@
++"""SQLAlchemy Metadata and Session object"""
++from sqlalchemy.ext.declarative import declarative_base
++from sqlalchemy.orm import scoped_session, sessionmaker
++
++__all__ = ['Base', 'Session']
++#
++# SQLAlchemy session manager. Updated by model.init_model()
++#
++Session = scoped_session(sessionmaker())
++#
++
++# The declarative Base
++Base = declarative_base()
++#For another db...
++#Base2 = declarative_base()
+diff --git a/pylons_app/public/css/style.css b/pylons_app/public/css/style.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/css/style.css
+@@ -0,0 +1,554 @@
++
++/*-------[ general ]---------------------------------*/
++
++body {
++background:#f0f0f0;
++font:14px Arial, Tahoma, Sans-Serif;
++color:#444;
++margin:30px 0 30px 0;
++padding:0;
++line-height:21px;
++}
++p,ul,ol,h1,h2,h3,h4,blockquote,fieldset,form {
++margin:0;
++padding:0;
++}
++a {
++outline:none;
++text-decoration:none;
++color:#296785;
++}
++a:hover {
++color:#000;
++}
++img {
++border:none;
++}
++.left-img {
++float:left;
++border:1px solid #ccc;
++margin:5px 10px 0 0;
++padding:5px;
++}
++.right-img {
++float:right;
++border:1px solid #ccc;
++margin:5px 0 0 10px;
++padding:5px;
++}
++blockquote {
++background:url(/images/blockquote.gif) no-repeat top left;
++padding:10px 0 0 40px;
++font-style:italic;
++}
++.clearfix:after {
++content: ".";
++display: block;
++height: 0;
++clear: both;
++visibility: hidden;
++}
++
++/*-------[ top-glow (just a little beauty! i know it maybe against semantics but i can't find a good solution) ]---------------------------------*/
++
++#top-glow {
++width:940px;
++height:20px;
++background:url(/images/top-glow.jpg) no-repeat;
++margin:0 auto;
++}
++
++/*-------[ container ]---------------------------------*/
++
++#container {
++width: 900px;
++padding:0 20px 0 20px;
++margin:0 auto;
++background:url(/images/container-bg.jpg) repeat-y;
++}
++
++/*-------[ header ]---------------------------------*/
++
++#header {
++width:900px;
++height:120px;
++background:url(/images/header.jpg) repeat-y;
++border-top:1px solid #fff;
++}
++#logo {
++width:263px;
++height:40px;
++position:absolute;
++margin:37px 0 0 30px;
++}
++#logo a {
++background:url(/images/logo.png) no-repeat;
++text-indent:-9999pt;
++display:block;
++width:263px;
++height:40px;
++}
++
++/*-------[ navigation ]---------------------------------*/
++
++#navigation {
++width:900px;
++height:44px;
++background:url(/images/navigation.jpg) no-repeat;
++}
++#navigation ul {
++list-style:none;
++padding-left:30px;
++}
++#navigation li {
++float:left;
++}
++#navigation li a {
++display:block;
++text-indent:-9999pt;
++margin:16px 17px 0 0;
++}
++#navigation li a:hover, #navigation a.selected {
++background-position:0 -10px;
++}
++#home-button {
++width:36px;
++height:10px;
++background:url(/images/home-button.png) no-repeat;
++}
++#about-button {
++width:45px;
++height:10px;
++background:url(/images/about-button.png) no-repeat;
++}
++#services-button {
++width:64px;
++height:10px;
++background:url(/images/services-button.png) no-repeat;
++}
++#portfolio-button {
++width:74px;
++height:10px;
++background:url(/images/portfolio-button.png) no-repeat;
++}
++#blog-button {
++width:34px;
++height:10px;
++background:url(/images/blog-button.png) no-repeat;
++}
++#contact-button {
++width:64px;
++height:10px;
++background:url(/images/contact-button.png) no-repeat;
++}
++
++/*-------[ featured ]---------------------------------*/
++
++#featured {
++width:840px;
++background:url(/images/featured.jpg) repeat-y;
++border-bottom:1px solid #4A4C4E;
++padding:30px;
++color:#fff;
++}
++#featured-title {
++text-indent:-9999pt;
++background:url(/images/featured-title.png) no-repeat;
++height:31px;
++margin-bottom:20px;
++}
++#featured-left {
++float:left;
++width:393px;
++margin-right:50px;  
++}
++#featured-right {
++float:right;
++width:385px;
++height:205px;
++display:block;
++border:1px solid #11879C;
++padding:5px;
++background:#fff;
++}
++#featured-right a {
++margin:5px 0 0 5px;
++}
++#featured-buttons {
++margin-top:20px;
++}
++#featured-buttons a {
++float:left;
++display:block;
++width:143px;
++height:47px;
++text-indent:-9999pt;
++margin-right:25px;
++}
++#featured-buttons a:hover {
++background-position:0 0;
++}
++#learn-more {
++background:url(/images/learn-more.png) 0 -47px no-repeat;
++}
++#our-services {
++background:url(/images/our-services.png) 0 -47px no-repeat;
++}
++
++/*-------[ main ]---------------------------------*/
++
++#main {
++width:840px;
++padding:30px 30px 15px 30px;
++}
++
++/*-------[ sidebar ]---------------------------------*/
++
++#sidebar {
++float:right;
++width:250px;
++}
++.sidebox {
++width:250px;
++border:1px solid #b1b1b1;
++margin-bottom:30px;
++background:#fafafa;
++color:#5d5d5d;
++}
++.sidebox-content {
++padding:15px;
++}
++.sidebox h2 {
++text-indent:-9999pt;
++height:40px;
++display:block;
++border-bottom:1px solid #B1B1B1;
++}
++.sidebox p {
++margin-bottom:10px;
++}
++.sidebox ul {
++list-style:none;
++}
++.sidebox li {
++margin-bottom:10px;
++}
++.sidebox li:last-child {
++margin-bottom:0;
++}
++.list {
++list-style:square !important;
++margin-left:15px;
++}
++.list li {
++margin-bottom:3px;
++}
++#recent-posts-title {
++background:url(/images/recent-posts-title.jpg) no-repeat;
++}
++#recent-posts a {
++color:#5D5D5D;
++}
++#recent-posts a:hover {
++color:#296785;
++}
++.more-link {
++color:#296785;
++}
++#clients-title {
++background:url(/images/clients-title.jpg) no-repeat;
++}
++#location-title {
++background:url(/images/location-title.jpg) no-repeat;
++}
++#categories-title {
++background:url(/images/categories-title.jpg) no-repeat;
++}
++
++/*-------[ search form ]---------------------------------*/
++#searchform {
++margin-bottom:15px;
++}
++#searchform fieldset {
++border:none;
++}
++#search-button {
++padding:5px 0 5px 0;
++background:#e3e3e3;
++border:none;
++color:#444;
++width:60px;
++text-align:center;
++float:right;
++display:block;
++}
++#search-field {
++border:1px solid #ccc;
++background:#F2F2F2;
++padding:5px;
++color:#444;
++width:170px;
++float:left;
++display:block;
++}
++#search-field:focus {
++border:1px solid #aaa;
++background:#fff;
++}
++/*-------[ content ]---------------------------------*/
++
++#content {
++width:560px;
++float:left;
++margin-right:30px;
++}
++#content h2 {
++border-bottom:1px solid #ccc;
++padding-bottom:3px;
++margin-bottom:15px;
++font:20px Arial, Tahoma, Sans-Serif;
++}
++#content p {
++margin-bottom:15px;
++}
++#content h3, #content h4, #content h5, #content h6 {
++margin-bottom:10px;
++color:#1B7883;
++font-family:Arial, Tahoma, Verdana, Sans-Serif;
++}
++#content h3 {
++font-size:18px;
++}
++#content h4 {
++font-size:16px;
++}
++#content h5 {
++font-size:14px;
++}
++#content h6 {
++font-size:13px;
++}
++#content ul {
++margin:10px 0 15px 30px;
++}
++#content ol {
++margin:10px 0 15px 30px;
++}
++#content table {
++border-left:1px solid #ccc;
++border-top:1px solid #ccc;
++margin-bottom:15px;
++width:100%;
++}
++#content td, #content th {
++border-right:1px solid #ccc;
++border-bottom:1px solid #ccc;
++padding:5px;
++font-size:13px;
++text-align:left;
++}
++#content th {
++font-size:13px;
++color:#000;
++font-weight:normal;
++background:#f2f2f2;
++}
++.br { /* use this for an extra 10px space if needed */
++display:block;
++margin:10px;
++}
++.bullet {
++list-style-image:url(/images/bullet.gif) !important;
++}
++
++/*-------[ blog styles ]---------------------------------*/
++
++.post {
++margin-bottom:30px;
++}
++h2.post-title {
++margin-bottom:5px !important;
++}
++.post-meta {
++font-size:12px;
++margin-bottom:10px;
++}
++.post-comments {
++background:url(/images/speech_bubble_48.png) no-repeat;
++padding:11px 0 15px 0;
++width:48px;
++display:block;
++text-align:center;
++font-size:18px;
++color:#444;
++position:absolute;
++margin:-28px 0 0 514px;
++}
++.post-comments:hover {
++color:#000;
++}
++
++#previous-next {
++margin-bottom:15px;
++}
++#next {
++float:right;
++}
++#prev {
++float:left;
++}
++
++/*-------[ front page ]---------------------------------*/
++
++.frontpage-box {
++margin-bottom:10px;
++}
++.frontpage-box-img {
++float:left;
++width:48px;
++height:48px;
++margin:15px 22px 0 0;
++}
++.frontpage-box-text {
++float:right;
++width:490px;
++}
++.frontpage-box h3 {
++font:16px Arial, Tahoma, Sans-Serif !important;
++margin-bottom:5px !important;
++color:#1B7883 !important;
++}
++
++/*-------[ portfolio ]---------------------------------*/
++
++#portfolio {
++width:840px;
++}
++#portfolio h2 {
++border-bottom:1px solid #ccc;
++padding-bottom:3px;
++margin-bottom:30px;
++font:20px Arial, Tahoma, Sans-Serif;
++}
++ul.work-gallery {
++list-style:none;
++width:870px;
++position:relative;
++}
++.work-gallery li {
++float:left;
++width:260px;
++margin:0 30px 0 0;
++min-height:220px;
++font-size:12px;
++line-height:19px;
++}
++ a.work-thumb {
++display:block;
++border:1px solid #ccc;
++padding:5px;
++width:248px;
++height:138px;
++}
++ a.work-thumb:hover {
++border:1px solid #999;
++}
++.work-name {
++padding:2px 5px 2px 7px;
++background:#fff;
++position:absolute;
++margin:-40px 0 0 1px;
++}
++.work-description {
++margin-top:5px;
++}
++
++/*-------[ contact form ]---------------------------------*/
++
++#contactform fieldset {
++border:none;
++}
++#contactform input {
++width:170px;
++}
++#contactform textarea {
++width:450px;
++height:170px;
++}
++#contactform input, #contactform textarea {
++display:block;
++border:1px solid #ccc;
++padding:5px;
++background:#f2f2f2;
++font:12px Arial, Tahoma, Sans-Serif;
++color:#444;
++margin-bottom:10px;
++}
++#contactform input:focus, #contactform textarea:focus {
++border:1px solid #aaa;
++background:#fff;
++}
++.send {
++width:80px !important;
++background:#eee;
++border:1px solid #bbb !important;
++color:#444 !important;
++cursor:pointer;
++}
++.send:hover {
++border:1px solid #777 !important;
++}
++
++/*-------[ footer ]---------------------------------*/
++
++#footer {
++padding:15px 30px 15px 30px;
++background:#f2f2f2;
++border-top:1px solid #bbb;
++font-size:13px;
++}
++#footer p {
++float:left;
++}
++#footer ul {
++float:right;
++list-style:none;
++}
++#footer li {
++float:left;
++margin-left:15px;
++}
++
++/*-------[ bottom glow (just a little beauty! i know it maybe against semantics but i can't find a good solution) ]---------------------------------*/
++
++#bottom-glow {
++background:url(/images/bottom-glow.jpg) no-repeat;
++width:940px;
++height:22px;
++margin:0 auto;
++}
++
++/*-------[ browser hacks ]---------------------------------*/
++
++.ie6 #navigation li a {
++overflow:hidden;
++}
++.ie6 #navigation li a:hover, .ie6 #navigation a.selected, .ie7 #navigation li a:hover, .ie7 #navigation a.selected {
++margin-top:17px;
++}
++.ie6 #featured {
++padding:30px 30px 0 30px;
++}
++.ie6 #featured-buttons a:hover, .ie7 #featured-buttons a:hover {
++background-position:0 0;
++margin-top:-1px;
++}
++.ie6 .work-gallery {
++margin-right:-60px;
++}
++.ie6 .work-gallery li {
++margin-bottom:30px;
++}
++.ie6 .frontpage-box, .ie6 #footer, .ie7 .frontpage-box, .ie7 #footer {
++height:1%;
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/images/bottom-glow.jpg b/pylons_app/public/images/bottom-glow.jpg
+new file mode 100644
+index 0000000000000000000000000000000000000000..8018c6a33a7464ae312e9d2d8917ed3dcd6021a2
+GIT binary patch
+literal 2319
+zc%1ux<NpH&0WUXCHwH!~28I+MWcdGvLC~c%IlGd9k%5JQ0W9>6fzL4|KPi<V<p5BG
+z@&9dx76wM*0TTi+!vRbVEX{~4LnQcrfI*OhL5z6~Gov5_lOQ9rAmjfd3^_n&0}W$9
+z0?aIoOss5NjEoFuKmaJm$;iOS%*?_Jkz{25aFI#mD%&*iaArY87FI*YjfsVg6Bm9I
+zG8M$o{{I#O4^SVIAhRHYJ;Qe<_YWxvdX?_~87BX;f5R^Mv)b+SF55qL&t7cN&F+6^
+zcm2d4yW96a|7U3U<NwTd-~B@x=P&8Y^T(g~yZp|til6ce=eYBzxukz(3_q*sVQ058
+zC@1~P-<<52{|x7^e@tUKx6-}RE3+x;$^yx&9^W;5K3IoMVO%xwUBJu-WotE<LzV9=
+zG(PY)Du8X3`%b6y##>t!@P_mkwVY?(n&}|5Qtm0|Joc<h4W>c1r-W_zt}bQBT2ehl
+ztwMIS7sIG=qsEOIH@u9i^h$4v+Ok0K*p$Wh{acor{@X96yWWe@{i>$N{*;a8`frnO
+zv;M39*<kG{-hTT>#oz6>D}L7Qzg@e3`uuhvm?IY_CnpymK7V?9`}CR4&!0Yh`kd35
+z$6%s}N<0hG@+I;1cm6XpF>)~QKJ0${^4A2;g<pUC<^TJa|94HpJoz2={rCUW&Hwm;
+zIdjI0&IiJVhQbHbl9JRLe2yIPXPDX9F^|z$SkQ(kO--qS<&2NZ2hLGtBSsmsuwi}t
+q;~xfsN8hFY{?D-apT|B1NAcz7zuJFsP%{4cYX%Q`JxeF>|0V$P`$-P~
+
+diff --git a/pylons_app/public/images/container-bg.jpg b/pylons_app/public/images/container-bg.jpg
+new file mode 100644
+index 0000000000000000000000000000000000000000..b6b8f15d27deb4f6016e7a9f6995c4ccc5054dc1
+GIT binary patch
+literal 452
+zc%1ux<NpH&0WUXCHwH!~28I+MWcdGvLC~c%IlGd9k%5JQ0W9>6fzL4|KPi<V<p5BG
+z@&9dx76wM*0TTi+!vRbVEX{~4LnQcrfI*OhfsuI)Gov5_lOQ9rAmjfd4Dmo`GchwD
+z16FnxHZDd+1~ec56k%p#M-pM&$Zp8Q!nV!4uyLXhGi$jZhMxbo7<ib076>v6GT1Y`
+z6F-`7y_xN3!?yPvehNoUTkoE4m+n~_n$5ZcT_Y6$Q{&QTTQ9rx318N)VmYS1d&we>
+J3-$kR0sy{#HeLV#
+
+diff --git a/pylons_app/public/images/header.jpg b/pylons_app/public/images/header.jpg
+new file mode 100644
+index 0000000000000000000000000000000000000000..b955a5675fcc39a0069404682b6987e6d0383d40
+GIT binary patch
+literal 497
+zc%1ux<NpH&0WUXCHwH!~28I+MWcdGvLC~c%IlGd9k%5JQ0W9>6fzL4|KPi<V<p5BG
+z@&9dx76wM*0TTi+!vRbVEX{~4LnQcrfI*Ohfswg|nNg5|Nsy6Qkn#T!hDfNx7!ZJ&
+ziIIg1MFb247=fBuk%bu>Hy$)}WHMqd6vR;d{}uxeGb7L*W<dsfhTjSd4B71&YnO-t
+zrPvoRFtF|@?Yif<0K{hWw|zMwfT7H^e`7%m17n_S()I}%4Eb$a&M+-t;4XMAx~JKJ
+zf!~3FfvfVpPg4WXfaUYPoX|j6Wq97}kt5IohU9ruk2C=lDq5Ytxx<2iq2;xG+JgrS
+z$8EJcSsEAw=BB^7Bf}v4<<<_C0}OHn3@m@m)-f6|uvC7V6~#CK#$}Lvel4?t1!zqD
+G|C<1Z8e4P#
+
+diff --git a/pylons_app/public/images/navigation.jpg b/pylons_app/public/images/navigation.jpg
+new file mode 100644
+index 0000000000000000000000000000000000000000..b2dfc08ff41817b89dc5fae5f01589674482b77d
+GIT binary patch
+literal 6846
+zc$}4Xc|6qL+xN`ahC#+MNLjLP6Uve;yNSp)*0FDqZ<a!KCMJxshGeH?$ev{o2HDEK
+z7D7pkEJ<X2KDvM3=XqZDU-x}Jf1KBOpX+*`b3W%f@9R39K3xDY>FM0i0f8YPkPGmE
+zPS-(jEq~`bK_D=Q5(N4SZGafnUA&!KK`!k80zUl&iUxuI=MD1z8pZ!@|IYoL2LJyv
+z|HF3L4uV5L5){!CU^oZ@2UEbor(K}e|85NQZ=<9DLBKS0{~ZR-0imFVGJ!x85L#*|
+z9W|7i;y<u7%@$les)HKJ!O3Ur=u72MO))7fZ!wiwFd{>VV9&UAqf~>%{9VthWFa?q
+z5zE*(X1M^}M+$+c+i>t1D-{hT#lK5|;p)=DBFq}at}pnEA<;2z?rhrZx(FQ(-wyfH
+zk05#qFtB$DIOsa)=ugB$=P-Q0{6Nmg)`ah8=g!%cH{!?U-G{6{!ZMU{^>ICq8b4;-
+zUaA+(wNCrNIpN&+waV*3$m3FrwR+*{4EOcdpYj;Y84}O=z7fx0sXFOw=5aNg-S>Q@
+z`;hdHUf+@&tM);{x=LE}T|Hb+^v9<oU0y6AgN4LXkjutc3fAj^=bNX=-wr`vo)jvM
+zor2<W@&r1aJ56de;NNybKN-zAb|1b7z@#!HGU$DP>OM#B{G;x#%f9h=`X@?GSyuci
+zANL&#r&AEGVxkMOErqXk@iko^bVsj=U3VilP?el07o5+<eLhu2FLd;E7iOMlHM>);
+zdOjb%u$6kn#Q2;49bx&qPXZOzhHxdgAzX}GanXCi`>>0OoU>!4*PBRQ`?t++=w?oY
+zS6ui*zQ>q<@(nlisH%Lp_)m;^--p_qoB>7W#nPzS#Zs%%8#BA+s*f?V8^)t~4EoTm
+zebh5iE=7XB+qYXbDfiu<tLQOg7FZRaX5Q$Ru_J?L9~P*dPvMe!la<lE-d~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u3K`hpF*N?cY`T!H=-xZ#osoZe=lvw
+zhmLAM?D*uZfvltbRG2H3ZSdtd<vogg{_UsXryzTwtm^%Z+#1D-=9ZL@hei_NGAl>t
+zJ^S-2O35N(<m4k%(U?yb<T}UL=C7X~W!Ik&`^AW}5%6Q_S((Uz^I^d2m30Slqq>Fl
+zywZj0S=A`NcR6kLC8-A1q4y?@mCE~K=QB41)m$Gdg|~HNy{RPU)<w-Z-PCb!eC3+h
+zDEf8GyzRo&WU>;F+*|h8*(Jg{I<o33$xrH%=d7>n#rGUDP+OYT0!2X9SrKq45S@s;
+z1Spth+JBW9-arLmV1dqnbJWcS)lyrAJbY+?3H6;!RU-7oM(^>miys4ojex7*k?1Dl
+zf2tF}#CtMZY|YoTOD-h2-l6{#<m2O35iU=@aSEaf0ScRfrzZ;wA23JWlX<5z{|D$j
+BhU)+T
+
+diff --git a/pylons_app/public/images/top-glow.jpg b/pylons_app/public/images/top-glow.jpg
+new file mode 100644
+index 0000000000000000000000000000000000000000..b169c5ec08ff8130b7c820513a3222523337ff91
+GIT binary patch
+literal 2230
+zc%1ux<NpH&0WUXCHwH!~28I+MWcdGvLC~c%IlGd9k%5JQ0W9>6fzL4|KPi<V<p5BG
+z@&9dx76wM*0TTi+!vRbVEX{~4LnQcrfI*OhL4<h?Gov5_lOQ9rAmjfd3?OF%4P#_L
+z045ejW>z+KE=FWQFc1Lxf`f^HiH)6&9W21ekT~&T&?I4zjO7}FOp1X*%;FM;j*SbA
+zSVTW;Jor#atni~#ld=k%Acj%@Z!z!yZDkT<7G$tz_}$>(sQBcwSbY~Kf0_R$ISu2C
+zZIc>D@sPt!X6M(`JrPvsU!rh`iHTdzU-{prrsuoAv!DH1KmY!NruWl7rTmRAzwn<y
+zM0x|y!V?l~0gpv^m^BK!*chi+9A#!WC6m<HkjiK1aKNZtVnKqWb5DQ)&%$FGqY6j1
+z!X~@?6BGZ<-@vh8^?Q3Q_p7h}?zLMYQuFV{&&1ysLO)m5*!3@1(8O6;FW^{x=eM2m
+z@wZ=p{P<<}L{|GhL*~cn=AZ0&?8NKlcR%~<{rmgx&BkUQw>SUY{hxtNwVz*l{`I#N
+zKdJ;u`^!J)KYZ~s=fjse{m%ak?pJ>VM9G_1UHtYZ@Sofip|{sIf11Ufw{`xM3)ZD;
+z{w!;}y*B-+3E$mpd(8!9uOol@GH;JMe=0+E*R{G}hf&3&iiuU+%>L|k<iGP>^~WzX
+z$IpNE`r_kHSI+ZyaajCksQ#S!pmzOq{%?PL^VhDhoqy-)!#e-3I`LNuYme3O-qCq&
+o=d;H8Kf^b}BHPt<_rF%l$=OX2wSC^c{O~m!`$@bU_Wy4J0A91Q!~g&Q
+
+diff --git a/pylons_app/public/js/css_browser_selector.js b/pylons_app/public/js/css_browser_selector.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/css_browser_selector.js
+@@ -0,0 +1,50 @@
++/*
++CSS Browser Selector v0.3.5 (Feb 05, 2010)
++Rafael Lima (http://rafael.adm.br)
++http://rafael.adm.br/css_browser_selector
++License: http://creativecommons.org/licenses/by/2.5/
++Contributors: http://rafael.adm.br/css_browser_selector#contributors
++2. Set CSS attributes with the code of each browser/os you want to hack
++
++Examples:
++
++    * html.gecko div#header { margin: 1em; }
++    * .opera #header { margin: 1.2em; }
++    * .ie .mylink { font-weight: bold; }
++    * .mac.ie .mylink { font-weight: bold; }
++    * .[os].[browser] .mylink { font-weight: bold; } -> without space between .[os] and .[browser]
++
++Available OS Codes [os]:
++
++    * win - Microsoft Windows
++    * linux - Linux (x11 and linux)
++    * mac - Mac OS
++    * freebsd - FreeBSD
++    * ipod - iPod Touch
++    * iphone - iPhone
++    * webtv - WebTV
++    * mobile - J2ME Devices (ex: Opera mini)
++
++Available Browser Codes [browser]:
++
++    * ie - Internet Explorer (All versions)
++    * ie8 - Internet Explorer 8.x
++    * ie7 - Internet Explorer 7.x
++    * ie6 - Internet Explorer 6.x
++    * ie5 - Internet Explorer 5.x
++    * gecko - Mozilla, Firefox (all versions), Camino
++    * ff2 - Firefox 2
++    * ff3 - Firefox 3
++    * ff3_5 - Firefox 3.5 new
++    * opera - Opera (All versions)
++    * opera8 - Opera 8.x
++    * opera9 - Opera 9.x
++    * opera10 - Opera 10.x
++    * konqueror - Konqueror
++    * webkit or safari - Safari, NetNewsWire, OmniWeb, Shiira, Google Chrome
++    * safari3 - Safari 3.x
++    * chrome - Google Chrome
++    * iron - SRWare Iron new
++
++*/
++function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
+diff --git a/pylons_app/public/js/yui/animation/animation-debug.js b/pylons_app/public/js/yui/animation/animation-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/animation/animation-debug.js
+@@ -0,0 +1,1396 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++
++var Y = YAHOO.util;
++
++/*
++Copyright (c) 2006, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++*/
++
++/**
++ * The animation module provides allows effects to be added to HTMLElements.
++ * @module animation
++ * @requires yahoo, event, dom
++ */
++
++/**
++ *
++ * Base animation class that provides the interface for building animated effects.
++ * <p>Usage: var myAnim = new YAHOO.util.Anim(el, { width: { from: 10, to: 100 } }, 1, YAHOO.util.Easing.easeOut);</p>
++ * @class Anim
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @requires YAHOO.util.CustomEvent
++ * @constructor
++ * @param {String | HTMLElement} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.  
++ * Each attribute is an object with at minimum a "to" or "by" member defined.  
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++
++var Anim = function(el, attributes, duration, method) {
++    if (!el) {
++        YAHOO.log('element required to create Anim instance', 'error', 'Anim');
++    }
++    this.init(el, attributes, duration, method); 
++};
++
++Anim.NAME = 'Anim';
++
++Anim.prototype = {
++    /**
++     * Provides a readable name for the Anim instance.
++     * @method toString
++     * @return {String}
++     */
++    toString: function() {
++        var el = this.getEl() || {};
++        var id = el.id || el.tagName;
++        return (this.constructor.NAME + ': ' + id);
++    },
++    
++    patterns: { // cached for performance
++        noNegatives:        /width|height|opacity|padding/i, // keep at zero or above
++        offsetAttribute:  /^((width|height)|(top|left))$/, // use offsetValue as default
++        defaultUnit:        /width|height|top$|bottom$|left$|right$/i, // use 'px' by default
++        offsetUnit:         /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i // IE may return these, so convert these to offset
++    },
++    
++    /**
++     * Returns the value computed by the animation's "method".
++     * @method doMethod
++     * @param {String} attr The name of the attribute.
++     * @param {Number} start The value this attribute should start from for this animation.
++     * @param {Number} end  The value this attribute should end at for this animation.
++     * @return {Number} The Value to be applied to the attribute.
++     */
++    doMethod: function(attr, start, end) {
++        return this.method(this.currentFrame, start, end - start, this.totalFrames);
++    },
++    
++    /**
++     * Applies a value to an attribute.
++     * @method setAttribute
++     * @param {String} attr The name of the attribute.
++     * @param {Number} val The value to be applied to the attribute.
++     * @param {String} unit The unit ('px', '%', etc.) of the value.
++     */
++    setAttribute: function(attr, val, unit) {
++        var el = this.getEl();
++        if ( this.patterns.noNegatives.test(attr) ) {
++            val = (val > 0) ? val : 0;
++        }
++
++        if (attr in el && !('style' in el && attr in el.style)) {
++            el[attr] = val;
++        } else {
++            Y.Dom.setStyle(el, attr, val + unit);
++        }
++    },                        
++    
++    /**
++     * Returns current value of the attribute.
++     * @method getAttribute
++     * @param {String} attr The name of the attribute.
++     * @return {Number} val The current value of the attribute.
++     */
++    getAttribute: function(attr) {
++        var el = this.getEl();
++        var val = Y.Dom.getStyle(el, attr);
++
++        if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) {
++            return parseFloat(val);
++        }
++        
++        var a = this.patterns.offsetAttribute.exec(attr) || [];
++        var pos = !!( a[3] ); // top or left
++        var box = !!( a[2] ); // width or height
++        
++        if ('style' in el) {
++            // use offsets for width/height and abs pos top/left
++            if ( box || (Y.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
++                val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
++            } else { // default to zero for other 'auto'
++                val = 0;
++            }
++        } else if (attr in el) {
++            val = el[attr];
++        }
++
++        return val;
++    },
++    
++    /**
++     * Returns the unit to use when none is supplied.
++     * @method getDefaultUnit
++     * @param {attr} attr The name of the attribute.
++     * @return {String} The default unit to be used.
++     */
++    getDefaultUnit: function(attr) {
++         if ( this.patterns.defaultUnit.test(attr) ) {
++            return 'px';
++         }
++         
++         return '';
++    },
++        
++    /**
++     * Sets the actual values to be used during the animation.  Should only be needed for subclass use.
++     * @method setRuntimeAttribute
++     * @param {Object} attr The attribute object
++     * @private 
++     */
++    setRuntimeAttribute: function(attr) {
++        var start;
++        var end;
++        var attributes = this.attributes;
++
++        this.runtimeAttributes[attr] = {};
++        
++        var isset = function(prop) {
++            return (typeof prop !== 'undefined');
++        };
++        
++        if ( !isset(attributes[attr]['to']) && !isset(attributes[attr]['by']) ) {
++            return false; // note return; nothing to animate to
++        }
++        
++        start = ( isset(attributes[attr]['from']) ) ? attributes[attr]['from'] : this.getAttribute(attr);
++
++        // To beats by, per SMIL 2.1 spec
++        if ( isset(attributes[attr]['to']) ) {
++            end = attributes[attr]['to'];
++        } else if ( isset(attributes[attr]['by']) ) {
++            if (start.constructor == Array) {
++                end = [];
++                for (var i = 0, len = start.length; i < len; ++i) {
++                    end[i] = start[i] + attributes[attr]['by'][i] * 1; // times 1 to cast "by" 
++                }
++            } else {
++                end = start + attributes[attr]['by'] * 1;
++            }
++        }
++        
++        this.runtimeAttributes[attr].start = start;
++        this.runtimeAttributes[attr].end = end;
++
++        // set units if needed
++        this.runtimeAttributes[attr].unit = ( isset(attributes[attr].unit) ) ?
++                attributes[attr]['unit'] : this.getDefaultUnit(attr);
++        return true;
++    },
++
++    /**
++     * Constructor for Anim instance.
++     * @method init
++     * @param {String | HTMLElement} el Reference to the element that will be animated
++     * @param {Object} attributes The attribute(s) to be animated.  
++     * Each attribute is an object with at minimum a "to" or "by" member defined.  
++     * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++     * All attribute names use camelCase.
++     * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++     * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++     */ 
++    init: function(el, attributes, duration, method) {
++        /**
++         * Whether or not the animation is running.
++         * @property isAnimated
++         * @private
++         * @type Boolean
++         */
++        var isAnimated = false;
++        
++        /**
++         * A Date object that is created when the animation begins.
++         * @property startTime
++         * @private
++         * @type Date
++         */
++        var startTime = null;
++        
++        /**
++         * The number of frames this animation was able to execute.
++         * @property actualFrames
++         * @private
++         * @type Int
++         */
++        var actualFrames = 0; 
++
++        /**
++         * The element to be animated.
++         * @property el
++         * @private
++         * @type HTMLElement
++         */
++        el = Y.Dom.get(el);
++        
++        /**
++         * The collection of attributes to be animated.  
++         * Each attribute must have at least a "to" or "by" defined in order to animate.  
++         * If "to" is supplied, the animation will end with the attribute at that value.  
++         * If "by" is supplied, the animation will end at that value plus its starting value. 
++         * If both are supplied, "to" is used, and "by" is ignored. 
++         * Optional additional member include "from" (the value the attribute should start animating from, defaults to current value), and "unit" (the units to apply to the values).
++         * @property attributes
++         * @type Object
++         */
++        this.attributes = attributes || {};
++        
++        /**
++         * The length of the animation.  Defaults to "1" (second).
++         * @property duration
++         * @type Number
++         */
++        this.duration = !YAHOO.lang.isUndefined(duration) ? duration : 1;
++        
++        /**
++         * The method that will provide values to the attribute(s) during the animation. 
++         * Defaults to "YAHOO.util.Easing.easeNone".
++         * @property method
++         * @type Function
++         */
++        this.method = method || Y.Easing.easeNone;
++
++        /**
++         * Whether or not the duration should be treated as seconds.
++         * Defaults to true.
++         * @property useSeconds
++         * @type Boolean
++         */
++        this.useSeconds = true; // default to seconds
++        
++        /**
++         * The location of the current animation on the timeline.
++         * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
++         * @property currentFrame
++         * @type Int
++         */
++        this.currentFrame = 0;
++        
++        /**
++         * The total number of frames to be executed.
++         * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
++         * @property totalFrames
++         * @type Int
++         */
++        this.totalFrames = Y.AnimMgr.fps;
++        
++        /**
++         * Changes the animated element
++         * @method setEl
++         */
++        this.setEl = function(element) {
++            el = Y.Dom.get(element);
++        };
++        
++        /**
++         * Returns a reference to the animated element.
++         * @method getEl
++         * @return {HTMLElement}
++         */
++        this.getEl = function() { return el; };
++        
++        /**
++         * Checks whether the element is currently animated.
++         * @method isAnimated
++         * @return {Boolean} current value of isAnimated.     
++         */
++        this.isAnimated = function() {
++            return isAnimated;
++        };
++        
++        /**
++         * Returns the animation start time.
++         * @method getStartTime
++         * @return {Date} current value of startTime.      
++         */
++        this.getStartTime = function() {
++            return startTime;
++        };        
++        
++        this.runtimeAttributes = {};
++        
++        var logger = {};
++        logger.log = function() {YAHOO.log.apply(window, arguments)};
++        
++        logger.log('creating new instance of ' + this);
++        
++        /**
++         * Starts the animation by registering it with the animation manager. 
++         * @method animate  
++         */
++        this.animate = function() {
++            if ( this.isAnimated() ) {
++                return false;
++            }
++            
++            this.currentFrame = 0;
++            
++            this.totalFrames = ( this.useSeconds ) ? Math.ceil(Y.AnimMgr.fps * this.duration) : this.duration;
++    
++            if (this.duration === 0 && this.useSeconds) { // jump to last frame if zero second duration 
++                this.totalFrames = 1; 
++            }
++            Y.AnimMgr.registerElement(this);
++            return true;
++        };
++          
++        /**
++         * Stops the animation.  Normally called by AnimMgr when animation completes.
++         * @method stop
++         * @param {Boolean} finish (optional) If true, animation will jump to final frame.
++         */ 
++        this.stop = function(finish) {
++            if (!this.isAnimated()) { // nothing to stop
++                return false;
++            }
++
++            if (finish) {
++                 this.currentFrame = this.totalFrames;
++                 this._onTween.fire();
++            }
++            Y.AnimMgr.stop(this);
++        };
++        
++        var onStart = function() {            
++            this.onStart.fire();
++            
++            this.runtimeAttributes = {};
++            for (var attr in this.attributes) {
++                this.setRuntimeAttribute(attr);
++            }
++            
++            isAnimated = true;
++            actualFrames = 0;
++            startTime = new Date(); 
++        };
++        
++        /**
++         * Feeds the starting and ending values for each animated attribute to doMethod once per frame, then applies the resulting value to the attribute(s).
++         * @private
++         */
++         
++        var onTween = function() {
++            var data = {
++                duration: new Date() - this.getStartTime(),
++                currentFrame: this.currentFrame
++            };
++            
++            data.toString = function() {
++                return (
++                    'duration: ' + data.duration +
++                    ', currentFrame: ' + data.currentFrame
++                );
++            };
++            
++            this.onTween.fire(data);
++            
++            var runtimeAttributes = this.runtimeAttributes;
++            
++            for (var attr in runtimeAttributes) {
++                this.setAttribute(attr, this.doMethod(attr, runtimeAttributes[attr].start, runtimeAttributes[attr].end), runtimeAttributes[attr].unit); 
++            }
++            
++            actualFrames += 1;
++        };
++        
++        var onComplete = function() {
++            var actual_duration = (new Date() - startTime) / 1000 ;
++            
++            var data = {
++                duration: actual_duration,
++                frames: actualFrames,
++                fps: actualFrames / actual_duration
++            };
++            
++            data.toString = function() {
++                return (
++                    'duration: ' + data.duration +
++                    ', frames: ' + data.frames +
++                    ', fps: ' + data.fps
++                );
++            };
++            
++            isAnimated = false;
++            actualFrames = 0;
++            this.onComplete.fire(data);
++        };
++        
++        /**
++         * Custom event that fires after onStart, useful in subclassing
++         * @private
++         */    
++        this._onStart = new Y.CustomEvent('_start', this, true);
++
++        /**
++         * Custom event that fires when animation begins
++         * Listen via subscribe method (e.g. myAnim.onStart.subscribe(someFunction)
++         * @event onStart
++         */    
++        this.onStart = new Y.CustomEvent('start', this);
++        
++        /**
++         * Custom event that fires between each frame
++         * Listen via subscribe method (e.g. myAnim.onTween.subscribe(someFunction)
++         * @event onTween
++         */
++        this.onTween = new Y.CustomEvent('tween', this);
++        
++        /**
++         * Custom event that fires after onTween
++         * @private
++         */
++        this._onTween = new Y.CustomEvent('_tween', this, true);
++        
++        /**
++         * Custom event that fires when animation ends
++         * Listen via subscribe method (e.g. myAnim.onComplete.subscribe(someFunction)
++         * @event onComplete
++         */
++        this.onComplete = new Y.CustomEvent('complete', this);
++        /**
++         * Custom event that fires after onComplete
++         * @private
++         */
++        this._onComplete = new Y.CustomEvent('_complete', this, true);
++
++        this._onStart.subscribe(onStart);
++        this._onTween.subscribe(onTween);
++        this._onComplete.subscribe(onComplete);
++    }
++};
++
++    Y.Anim = Anim;
++})();
++/**
++ * Handles animation queueing and threading.
++ * Used by Anim and subclasses.
++ * @class AnimMgr
++ * @namespace YAHOO.util
++ */
++YAHOO.util.AnimMgr = new function() {
++    /** 
++     * Reference to the animation Interval.
++     * @property thread
++     * @private
++     * @type Int
++     */
++    var thread = null;
++    
++    /** 
++     * The current queue of registered animation objects.
++     * @property queue
++     * @private
++     * @type Array
++     */    
++    var queue = [];
++
++    /** 
++     * The number of active animations.
++     * @property tweenCount
++     * @private
++     * @type Int
++     */        
++    var tweenCount = 0;
++
++    /** 
++     * Base frame rate (frames per second). 
++     * Arbitrarily high for better x-browser calibration (slower browsers drop more frames).
++     * @property fps
++     * @type Int
++     * 
++     */
++    this.fps = 1000;
++
++    /** 
++     * Interval delay in milliseconds, defaults to fastest possible.
++     * @property delay
++     * @type Int
++     * 
++     */
++    this.delay = 1;
++
++    /**
++     * Adds an animation instance to the animation queue.
++     * All animation instances must be registered in order to animate.
++     * @method registerElement
++     * @param {object} tween The Anim instance to be be registered
++     */
++    this.registerElement = function(tween) {
++        queue[queue.length] = tween;
++        tweenCount += 1;
++        tween._onStart.fire();
++        this.start();
++    };
++    
++    /**
++     * removes an animation instance from the animation queue.
++     * All animation instances must be registered in order to animate.
++     * @method unRegister
++     * @param {object} tween The Anim instance to be be registered
++     * @param {Int} index The index of the Anim instance
++     * @private
++     */
++    this.unRegister = function(tween, index) {
++        index = index || getIndex(tween);
++        if (!tween.isAnimated() || index === -1) {
++            return false;
++        }
++        
++        tween._onComplete.fire();
++        queue.splice(index, 1);
++
++        tweenCount -= 1;
++        if (tweenCount <= 0) {
++            this.stop();
++        }
++
++        return true;
++    };
++    
++    /**
++     * Starts the animation thread.
++	* Only one thread can run at a time.
++     * @method start
++     */    
++    this.start = function() {
++        if (thread === null) {
++            thread = setInterval(this.run, this.delay);
++        }
++    };
++
++    /**
++     * Stops the animation thread or a specific animation instance.
++     * @method stop
++     * @param {object} tween A specific Anim instance to stop (optional)
++     * If no instance given, Manager stops thread and all animations.
++     */    
++    this.stop = function(tween) {
++        if (!tween) {
++            clearInterval(thread);
++            
++            for (var i = 0, len = queue.length; i < len; ++i) {
++                this.unRegister(queue[0], 0);  
++            }
++
++            queue = [];
++            thread = null;
++            tweenCount = 0;
++        }
++        else {
++            this.unRegister(tween);
++        }
++    };
++    
++    /**
++     * Called per Interval to handle each animation frame.
++     * @method run
++     */    
++    this.run = function() {
++        for (var i = 0, len = queue.length; i < len; ++i) {
++            var tween = queue[i];
++            if ( !tween || !tween.isAnimated() ) { continue; }
++
++            if (tween.currentFrame < tween.totalFrames || tween.totalFrames === null)
++            {
++                tween.currentFrame += 1;
++                
++                if (tween.useSeconds) {
++                    correctFrame(tween);
++                }
++                tween._onTween.fire();          
++            }
++            else { YAHOO.util.AnimMgr.stop(tween, i); }
++        }
++    };
++    
++    var getIndex = function(anim) {
++        for (var i = 0, len = queue.length; i < len; ++i) {
++            if (queue[i] === anim) {
++                return i; // note return;
++            }
++        }
++        return -1;
++    };
++    
++    /**
++     * On the fly frame correction to keep animation on time.
++     * @method correctFrame
++     * @private
++     * @param {Object} tween The Anim instance being corrected.
++     */
++    var correctFrame = function(tween) {
++        var frames = tween.totalFrames;
++        var frame = tween.currentFrame;
++        var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames);
++        var elapsed = (new Date() - tween.getStartTime());
++        var tweak = 0;
++        
++        if (elapsed < tween.duration * 1000) { // check if falling behind
++            tweak = Math.round((elapsed / expected - 1) * tween.currentFrame);
++        } else { // went over duration, so jump to end
++            tweak = frames - (frame + 1); 
++        }
++        if (tweak > 0 && isFinite(tweak)) { // adjust if needed
++            if (tween.currentFrame + tweak >= frames) {// dont go past last frame
++                tweak = frames - (frame + 1);
++            }
++            
++            tween.currentFrame += tweak;      
++        }
++    };
++    this._queue = queue;
++    this._getIndex = getIndex;
++};
++/**
++ * Used to calculate Bezier splines for any number of control points.
++ * @class Bezier
++ * @namespace YAHOO.util
++ *
++ */
++YAHOO.util.Bezier = new function() {
++    /**
++     * Get the current position of the animated element based on t.
++     * Each point is an array of "x" and "y" values (0 = x, 1 = y)
++     * At least 2 points are required (start and end).
++     * First point is start. Last point is end.
++     * Additional control points are optional.     
++     * @method getPosition
++     * @param {Array} points An array containing Bezier points
++     * @param {Number} t A number between 0 and 1 which is the basis for determining current position
++     * @return {Array} An array containing int x and y member data
++     */
++    this.getPosition = function(points, t) {  
++        var n = points.length;
++        var tmp = [];
++
++        for (var i = 0; i < n; ++i){
++            tmp[i] = [points[i][0], points[i][1]]; // save input
++        }
++        
++        for (var j = 1; j < n; ++j) {
++            for (i = 0; i < n - j; ++i) {
++                tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
++                tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1]; 
++            }
++        }
++    
++        return [ tmp[0][0], tmp[0][1] ]; 
++    
++    };
++};
++(function() {
++/**
++ * Anim subclass for color transitions.
++ * <p>Usage: <code>var myAnim = new Y.ColorAnim(el, { backgroundColor: { from: '#FF0000', to: '#FFFFFF' } }, 1, Y.Easing.easeOut);</code> Color values can be specified with either 112233, #112233, 
++ * [255,255,255], or rgb(255,255,255)</p>
++ * @class ColorAnim
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.Anim
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Bezier
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @constructor
++ * @extends YAHOO.util.Anim
++ * @param {HTMLElement | String} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.
++ * Each attribute is an object with at minimum a "to" or "by" member defined.
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++    var ColorAnim = function(el, attributes, duration,  method) {
++        ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
++    };
++    
++    ColorAnim.NAME = 'ColorAnim';
++
++    ColorAnim.DEFAULT_BGCOLOR = '#fff';
++    // shorthand
++    var Y = YAHOO.util;
++    YAHOO.extend(ColorAnim, Y.Anim);
++
++    var superclass = ColorAnim.superclass;
++    var proto = ColorAnim.prototype;
++    
++    proto.patterns.color = /color$/i;
++    proto.patterns.rgb            = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
++    proto.patterns.hex            = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;
++    proto.patterns.hex3          = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;
++    proto.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/; // need rgba for safari
++    
++    /**
++     * Attempts to parse the given string and return a 3-tuple.
++     * @method parseColor
++     * @param {String} s The string to parse.
++     * @return {Array} The 3-tuple of rgb values.
++     */
++    proto.parseColor = function(s) {
++        if (s.length == 3) { return s; }
++    
++        var c = this.patterns.hex.exec(s);
++        if (c && c.length == 4) {
++            return [ parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16) ];
++        }
++    
++        c = this.patterns.rgb.exec(s);
++        if (c && c.length == 4) {
++            return [ parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10) ];
++        }
++    
++        c = this.patterns.hex3.exec(s);
++        if (c && c.length == 4) {
++            return [ parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16) ];
++        }
++        
++        return null;
++    };
++
++    proto.getAttribute = function(attr) {
++        var el = this.getEl();
++        if (this.patterns.color.test(attr) ) {
++            var val = YAHOO.util.Dom.getStyle(el, attr);
++            
++            var that = this;
++            if (this.patterns.transparent.test(val)) { // bgcolor default
++                var parent = YAHOO.util.Dom.getAncestorBy(el, function(node) {
++                    return !that.patterns.transparent.test(val);
++                });
++
++                if (parent) {
++                    val = Y.Dom.getStyle(parent, attr);
++                } else {
++                    val = ColorAnim.DEFAULT_BGCOLOR;
++                }
++            }
++        } else {
++            val = superclass.getAttribute.call(this, attr);
++        }
++
++        return val;
++    };
++    
++    proto.doMethod = function(attr, start, end) {
++        var val;
++    
++        if ( this.patterns.color.test(attr) ) {
++            val = [];
++            for (var i = 0, len = start.length; i < len; ++i) {
++                val[i] = superclass.doMethod.call(this, attr, start[i], end[i]);
++            }
++            
++            val = 'rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')';
++        }
++        else {
++            val = superclass.doMethod.call(this, attr, start, end);
++        }
++
++        return val;
++    };
++
++    proto.setRuntimeAttribute = function(attr) {
++        superclass.setRuntimeAttribute.call(this, attr);
++        
++        if ( this.patterns.color.test(attr) ) {
++            var attributes = this.attributes;
++            var start = this.parseColor(this.runtimeAttributes[attr].start);
++            var end = this.parseColor(this.runtimeAttributes[attr].end);
++            // fix colors if going "by"
++            if ( typeof attributes[attr]['to'] === 'undefined' && typeof attributes[attr]['by'] !== 'undefined' ) {
++                end = this.parseColor(attributes[attr].by);
++            
++                for (var i = 0, len = start.length; i < len; ++i) {
++                    end[i] = start[i] + end[i];
++                }
++            }
++            
++            this.runtimeAttributes[attr].start = start;
++            this.runtimeAttributes[attr].end = end;
++        }
++    };
++
++    Y.ColorAnim = ColorAnim;
++})();
++/*!
++TERMS OF USE - EASING EQUATIONS
++Open source under the BSD License.
++Copyright 2001 Robert Penner All rights reserved.
++
++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
++
++ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
++ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
++ * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++*/
++
++/**
++ * Singleton that determines how an animation proceeds from start to end.
++ * @class Easing
++ * @namespace YAHOO.util
++*/
++
++YAHOO.util.Easing = {
++
++    /**
++     * Uniform speed between points.
++     * @method easeNone
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeNone: function (t, b, c, d) {
++    	return c*t/d + b;
++    },
++    
++    /**
++     * Begins slowly and accelerates towards end.
++     * @method easeIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeIn: function (t, b, c, d) {
++    	return c*(t/=d)*t + b;
++    },
++
++    /**
++     * Begins quickly and decelerates towards end.
++     * @method easeOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeOut: function (t, b, c, d) {
++    	return -c *(t/=d)*(t-2) + b;
++    },
++    
++    /**
++     * Begins slowly and decelerates towards end.
++     * @method easeBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeBoth: function (t, b, c, d) {
++    	if ((t/=d/2) < 1) {
++            return c/2*t*t + b;
++        }
++        
++    	return -c/2 * ((--t)*(t-2) - 1) + b;
++    },
++    
++    /**
++     * Begins slowly and accelerates towards end.
++     * @method easeInStrong
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeInStrong: function (t, b, c, d) {
++    	return c*(t/=d)*t*t*t + b;
++    },
++    
++    /**
++     * Begins quickly and decelerates towards end.
++     * @method easeOutStrong
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeOutStrong: function (t, b, c, d) {
++    	return -c * ((t=t/d-1)*t*t*t - 1) + b;
++    },
++    
++    /**
++     * Begins slowly and decelerates towards end.
++     * @method easeBothStrong
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeBothStrong: function (t, b, c, d) {
++    	if ((t/=d/2) < 1) {
++            return c/2*t*t*t*t + b;
++        }
++        
++    	return -c/2 * ((t-=2)*t*t*t - 2) + b;
++    },
++
++    /**
++     * Snap in elastic effect.
++     * @method elasticIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} a Amplitude (optional)
++     * @param {Number} p Period (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++
++    elasticIn: function (t, b, c, d, a, p) {
++    	if (t == 0) {
++            return b;
++        }
++        if ( (t /= d) == 1 ) {
++            return b+c;
++        }
++        if (!p) {
++            p=d*.3;
++        }
++        
++    	if (!a || a < Math.abs(c)) {
++            a = c; 
++            var s = p/4;
++        }
++    	else {
++            var s = p/(2*Math.PI) * Math.asin (c/a);
++        }
++        
++    	return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
++    },
++
++    /**
++     * Snap out elastic effect.
++     * @method elasticOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} a Amplitude (optional)
++     * @param {Number} p Period (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    elasticOut: function (t, b, c, d, a, p) {
++    	if (t == 0) {
++            return b;
++        }
++        if ( (t /= d) == 1 ) {
++            return b+c;
++        }
++        if (!p) {
++            p=d*.3;
++        }
++        
++    	if (!a || a < Math.abs(c)) {
++            a = c;
++            var s = p / 4;
++        }
++    	else {
++            var s = p/(2*Math.PI) * Math.asin (c/a);
++        }
++        
++    	return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
++    },
++    
++    /**
++     * Snap both elastic effect.
++     * @method elasticBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} a Amplitude (optional)
++     * @param {Number} p Period (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    elasticBoth: function (t, b, c, d, a, p) {
++    	if (t == 0) {
++            return b;
++        }
++        
++        if ( (t /= d/2) == 2 ) {
++            return b+c;
++        }
++        
++        if (!p) {
++            p = d*(.3*1.5);
++        }
++        
++    	if ( !a || a < Math.abs(c) ) {
++            a = c; 
++            var s = p/4;
++        }
++    	else {
++            var s = p/(2*Math.PI) * Math.asin (c/a);
++        }
++        
++    	if (t < 1) {
++            return -.5*(a*Math.pow(2,10*(t-=1)) * 
++                    Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
++        }
++    	return a*Math.pow(2,-10*(t-=1)) * 
++                Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
++    },
++
++
++    /**
++     * Backtracks slightly, then reverses direction and moves to end.
++     * @method backIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} s Overshoot (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    backIn: function (t, b, c, d, s) {
++    	if (typeof s == 'undefined') {
++            s = 1.70158;
++        }
++    	return c*(t/=d)*t*((s+1)*t - s) + b;
++    },
++
++    /**
++     * Overshoots end, then reverses and comes back to end.
++     * @method backOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} s Overshoot (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    backOut: function (t, b, c, d, s) {
++    	if (typeof s == 'undefined') {
++            s = 1.70158;
++        }
++    	return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
++    },
++    
++    /**
++     * Backtracks slightly, then reverses direction, overshoots end, 
++     * then reverses and comes back to end.
++     * @method backBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} s Overshoot (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    backBoth: function (t, b, c, d, s) {
++    	if (typeof s == 'undefined') {
++            s = 1.70158; 
++        }
++        
++    	if ((t /= d/2 ) < 1) {
++            return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
++        }
++    	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
++    },
++
++    /**
++     * Bounce off of start.
++     * @method bounceIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    bounceIn: function (t, b, c, d) {
++    	return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b;
++    },
++    
++    /**
++     * Bounces off end.
++     * @method bounceOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    bounceOut: function (t, b, c, d) {
++    	if ((t/=d) < (1/2.75)) {
++    		return c*(7.5625*t*t) + b;
++    	} else if (t < (2/2.75)) {
++    		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
++    	} else if (t < (2.5/2.75)) {
++    		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
++    	}
++        return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
++    },
++    
++    /**
++     * Bounces off start and end.
++     * @method bounceBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    bounceBoth: function (t, b, c, d) {
++    	if (t < d/2) {
++            return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b;
++        }
++    	return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b;
++    }
++};
++
++(function() {
++/**
++ * Anim subclass for moving elements along a path defined by the "points" 
++ * member of "attributes".  All "points" are arrays with x, y coordinates.
++ * <p>Usage: <code>var myAnim = new YAHOO.util.Motion(el, { points: { to: [800, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p>
++ * @class Motion
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.Anim
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Bezier
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @requires YAHOO.util.CustomEvent 
++ * @constructor
++ * @extends YAHOO.util.ColorAnim
++ * @param {String | HTMLElement} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.  
++ * Each attribute is an object with at minimum a "to" or "by" member defined.  
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++    var Motion = function(el, attributes, duration,  method) {
++        if (el) { // dont break existing subclasses not using YAHOO.extend
++            Motion.superclass.constructor.call(this, el, attributes, duration, method);
++        }
++    };
++
++
++    Motion.NAME = 'Motion';
++
++    // shorthand
++    var Y = YAHOO.util;
++    YAHOO.extend(Motion, Y.ColorAnim);
++    
++    var superclass = Motion.superclass;
++    var proto = Motion.prototype;
++
++    proto.patterns.points = /^points$/i;
++    
++    proto.setAttribute = function(attr, val, unit) {
++        if (  this.patterns.points.test(attr) ) {
++            unit = unit || 'px';
++            superclass.setAttribute.call(this, 'left', val[0], unit);
++            superclass.setAttribute.call(this, 'top', val[1], unit);
++        } else {
++            superclass.setAttribute.call(this, attr, val, unit);
++        }
++    };
++
++    proto.getAttribute = function(attr) {
++        if (  this.patterns.points.test(attr) ) {
++            var val = [
++                superclass.getAttribute.call(this, 'left'),
++                superclass.getAttribute.call(this, 'top')
++            ];
++        } else {
++            val = superclass.getAttribute.call(this, attr);
++        }
++
++        return val;
++    };
++
++    proto.doMethod = function(attr, start, end) {
++        var val = null;
++
++        if ( this.patterns.points.test(attr) ) {
++            var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100;				
++            val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t);
++        } else {
++            val = superclass.doMethod.call(this, attr, start, end);
++        }
++        return val;
++    };
++
++    proto.setRuntimeAttribute = function(attr) {
++        if ( this.patterns.points.test(attr) ) {
++            var el = this.getEl();
++            var attributes = this.attributes;
++            var start;
++            var control = attributes['points']['control'] || [];
++            var end;
++            var i, len;
++            
++            if (control.length > 0 && !(control[0] instanceof Array) ) { // could be single point or array of points
++                control = [control];
++            } else { // break reference to attributes.points.control
++                var tmp = []; 
++                for (i = 0, len = control.length; i< len; ++i) {
++                    tmp[i] = control[i];
++                }
++                control = tmp;
++            }
++
++            if (Y.Dom.getStyle(el, 'position') == 'static') { // default to relative
++                Y.Dom.setStyle(el, 'position', 'relative');
++            }
++    
++            if ( isset(attributes['points']['from']) ) {
++                Y.Dom.setXY(el, attributes['points']['from']); // set position to from point
++            } 
++            else { Y.Dom.setXY( el, Y.Dom.getXY(el) ); } // set it to current position
++            
++            start = this.getAttribute('points'); // get actual top & left
++            
++            // TO beats BY, per SMIL 2.1 spec
++            if ( isset(attributes['points']['to']) ) {
++                end = translateValues.call(this, attributes['points']['to'], start);
++                
++                var pageXY = Y.Dom.getXY(this.getEl());
++                for (i = 0, len = control.length; i < len; ++i) {
++                    control[i] = translateValues.call(this, control[i], start);
++                }
++
++                
++            } else if ( isset(attributes['points']['by']) ) {
++                end = [ start[0] + attributes['points']['by'][0], start[1] + attributes['points']['by'][1] ];
++                
++                for (i = 0, len = control.length; i < len; ++i) {
++                    control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ];
++                }
++            }
++
++            this.runtimeAttributes[attr] = [start];
++            
++            if (control.length > 0) {
++                this.runtimeAttributes[attr] = this.runtimeAttributes[attr].concat(control); 
++            }
++
++            this.runtimeAttributes[attr][this.runtimeAttributes[attr].length] = end;
++        }
++        else {
++            superclass.setRuntimeAttribute.call(this, attr);
++        }
++    };
++    
++    var translateValues = function(val, start) {
++        var pageXY = Y.Dom.getXY(this.getEl());
++        val = [ val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1] ];
++
++        return val; 
++    };
++    
++    var isset = function(prop) {
++        return (typeof prop !== 'undefined');
++    };
++
++    Y.Motion = Motion;
++})();
++(function() {
++/**
++ * Anim subclass for scrolling elements to a position defined by the "scroll"
++ * member of "attributes".  All "scroll" members are arrays with x, y scroll positions.
++ * <p>Usage: <code>var myAnim = new YAHOO.util.Scroll(el, { scroll: { to: [0, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p>
++ * @class Scroll
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.Anim
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Bezier
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @requires YAHOO.util.CustomEvent 
++ * @extends YAHOO.util.ColorAnim
++ * @constructor
++ * @param {String or HTMLElement} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.  
++ * Each attribute is an object with at minimum a "to" or "by" member defined.  
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++    var Scroll = function(el, attributes, duration,  method) {
++        if (el) { // dont break existing subclasses not using YAHOO.extend
++            Scroll.superclass.constructor.call(this, el, attributes, duration, method);
++        }
++    };
++
++    Scroll.NAME = 'Scroll';
++
++    // shorthand
++    var Y = YAHOO.util;
++    YAHOO.extend(Scroll, Y.ColorAnim);
++    
++    var superclass = Scroll.superclass;
++    var proto = Scroll.prototype;
++
++    proto.doMethod = function(attr, start, end) {
++        var val = null;
++    
++        if (attr == 'scroll') {
++            val = [
++                this.method(this.currentFrame, start[0], end[0] - start[0], this.totalFrames),
++                this.method(this.currentFrame, start[1], end[1] - start[1], this.totalFrames)
++            ];
++            
++        } else {
++            val = superclass.doMethod.call(this, attr, start, end);
++        }
++        return val;
++    };
++
++    proto.getAttribute = function(attr) {
++        var val = null;
++        var el = this.getEl();
++        
++        if (attr == 'scroll') {
++            val = [ el.scrollLeft, el.scrollTop ];
++        } else {
++            val = superclass.getAttribute.call(this, attr);
++        }
++        
++        return val;
++    };
++
++    proto.setAttribute = function(attr, val, unit) {
++        var el = this.getEl();
++        
++        if (attr == 'scroll') {
++            el.scrollLeft = val[0];
++            el.scrollTop = val[1];
++        } else {
++            superclass.setAttribute.call(this, attr, val, unit);
++        }
++    };
++
++    Y.Scroll = Scroll;
++})();
++YAHOO.register("animation", YAHOO.util.Anim, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/animation/animation-min.js b/pylons_app/public/js/yui/animation/animation-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/animation/animation-min.js
+@@ -0,0 +1,23 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util;var A=function(D,C,E,F){if(!D){}this.init(D,C,E,F);};A.NAME="Anim";A.prototype={toString:function(){var C=this.getEl()||{};var D=C.id||C.tagName;return(this.constructor.NAME+": "+D);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(C,E,D){return this.method(this.currentFrame,E,D-E,this.totalFrames);},setAttribute:function(C,F,E){var D=this.getEl();if(this.patterns.noNegatives.test(C)){F=(F>0)?F:0;}if(C in D&&!("style" in D&&C in D.style)){D[C]=F;}else{B.Dom.setStyle(D,C,F+E);}},getAttribute:function(C){var E=this.getEl();var G=B.Dom.getStyle(E,C);if(G!=="auto"&&!this.patterns.offsetUnit.test(G)){return parseFloat(G);}var D=this.patterns.offsetAttribute.exec(C)||[];var H=!!(D[3]);var F=!!(D[2]);if("style" in E){if(F||(B.Dom.getStyle(E,"position")=="absolute"&&H)){G=E["offset"+D[0].charAt(0).toUpperCase()+D[0].substr(1)];}else{G=0;}}else{if(C in E){G=E[C];}}return G;},getDefaultUnit:function(C){if(this.patterns.defaultUnit.test(C)){return"px";}return"";},setRuntimeAttribute:function(D){var I;var E;var F=this.attributes;this.runtimeAttributes[D]={};var H=function(J){return(typeof J!=="undefined");};if(!H(F[D]["to"])&&!H(F[D]["by"])){return false;}I=(H(F[D]["from"]))?F[D]["from"]:this.getAttribute(D);if(H(F[D]["to"])){E=F[D]["to"];}else{if(H(F[D]["by"])){if(I.constructor==Array){E=[];for(var G=0,C=I.length;G<C;++G){E[G]=I[G]+F[D]["by"][G]*1;}}else{E=I+F[D]["by"]*1;}}}this.runtimeAttributes[D].start=I;this.runtimeAttributes[D].end=E;this.runtimeAttributes[D].unit=(H(F[D].unit))?F[D]["unit"]:this.getDefaultUnit(D);return true;},init:function(E,J,I,C){var D=false;var F=null;var H=0;E=B.Dom.get(E);this.attributes=J||{};this.duration=!YAHOO.lang.isUndefined(I)?I:1;this.method=C||B.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=B.AnimMgr.fps;this.setEl=function(M){E=B.Dom.get(M);};this.getEl=function(){return E;};this.isAnimated=function(){return D;};this.getStartTime=function(){return F;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(B.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1;}B.AnimMgr.registerElement(this);return true;};this.stop=function(M){if(!this.isAnimated()){return false;}if(M){this.currentFrame=this.totalFrames;this._onTween.fire();}B.AnimMgr.stop(this);};var L=function(){this.onStart.fire();this.runtimeAttributes={};for(var M in this.attributes){this.setRuntimeAttribute(M);}D=true;H=0;F=new Date();};var K=function(){var O={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};O.toString=function(){return("duration: "+O.duration+", currentFrame: "+O.currentFrame);};this.onTween.fire(O);var N=this.runtimeAttributes;for(var M in N){this.setAttribute(M,this.doMethod(M,N[M].start,N[M].end),N[M].unit);}H+=1;};var G=function(){var M=(new Date()-F)/1000;var N={duration:M,frames:H,fps:H/M};N.toString=function(){return("duration: "+N.duration+", frames: "+N.frames+", fps: "+N.fps);};D=false;H=0;this.onComplete.fire(N);};this._onStart=new B.CustomEvent("_start",this,true);this.onStart=new B.CustomEvent("start",this);this.onTween=new B.CustomEvent("tween",this);this._onTween=new B.CustomEvent("_tween",this,true);this.onComplete=new B.CustomEvent("complete",this);this._onComplete=new B.CustomEvent("_complete",this,true);this._onStart.subscribe(L);this._onTween.subscribe(K);this._onComplete.subscribe(G);}};B.Anim=A;})();YAHOO.util.AnimMgr=new function(){var C=null;var B=[];var A=0;this.fps=1000;this.delay=1;this.registerElement=function(F){B[B.length]=F;A+=1;F._onStart.fire();this.start();};this.unRegister=function(G,F){F=F||E(G);if(!G.isAnimated()||F===-1){return false;}G._onComplete.fire();B.splice(F,1);A-=1;if(A<=0){this.stop();}return true;};this.start=function(){if(C===null){C=setInterval(this.run,this.delay);}};this.stop=function(H){if(!H){clearInterval(C);for(var G=0,F=B.length;G<F;++G){this.unRegister(B[0],0);}B=[];C=null;A=0;}else{this.unRegister(H);}};this.run=function(){for(var H=0,F=B.length;H<F;++H){var G=B[H];if(!G||!G.isAnimated()){continue;}if(G.currentFrame<G.totalFrames||G.totalFrames===null){G.currentFrame+=1;if(G.useSeconds){D(G);}G._onTween.fire();}else{YAHOO.util.AnimMgr.stop(G,H);}}};var E=function(H){for(var G=0,F=B.length;G<F;++G){if(B[G]===H){return G;}}return -1;};var D=function(G){var J=G.totalFrames;var I=G.currentFrame;var H=(G.currentFrame*G.duration*1000/G.totalFrames);var F=(new Date()-G.getStartTime());var K=0;if(F<G.duration*1000){K=Math.round((F/H-1)*G.currentFrame);}else{K=J-(I+1);}if(K>0&&isFinite(K)){if(G.currentFrame+K>=J){K=J-(I+1);}G.currentFrame+=K;}};this._queue=B;this._getIndex=E;};YAHOO.util.Bezier=new function(){this.getPosition=function(E,D){var F=E.length;var C=[];for(var B=0;B<F;++B){C[B]=[E[B][0],E[B][1]];}for(var A=1;A<F;++A){for(B=0;B<F-A;++B){C[B][0]=(1-D)*C[B][0]+D*C[parseInt(B+1,10)][0];C[B][1]=(1-D)*C[B][1]+D*C[parseInt(B+1,10)][1];}}return[C[0][0],C[0][1]];};};(function(){var A=function(F,E,G,H){A.superclass.constructor.call(this,F,E,G,H);};A.NAME="ColorAnim";A.DEFAULT_BGCOLOR="#fff";var C=YAHOO.util;YAHOO.extend(A,C.Anim);var D=A.superclass;var B=A.prototype;B.patterns.color=/color$/i;B.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;B.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;B.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;B.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;B.parseColor=function(E){if(E.length==3){return E;}var F=this.patterns.hex.exec(E);if(F&&F.length==4){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)];}F=this.patterns.rgb.exec(E);if(F&&F.length==4){return[parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)];}F=this.patterns.hex3.exec(E);if(F&&F.length==4){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)];
++}return null;};B.getAttribute=function(E){var G=this.getEl();if(this.patterns.color.test(E)){var I=YAHOO.util.Dom.getStyle(G,E);var H=this;if(this.patterns.transparent.test(I)){var F=YAHOO.util.Dom.getAncestorBy(G,function(J){return !H.patterns.transparent.test(I);});if(F){I=C.Dom.getStyle(F,E);}else{I=A.DEFAULT_BGCOLOR;}}}else{I=D.getAttribute.call(this,E);}return I;};B.doMethod=function(F,J,G){var I;if(this.patterns.color.test(F)){I=[];for(var H=0,E=J.length;H<E;++H){I[H]=D.doMethod.call(this,F,J[H],G[H]);}I="rgb("+Math.floor(I[0])+","+Math.floor(I[1])+","+Math.floor(I[2])+")";}else{I=D.doMethod.call(this,F,J,G);}return I;};B.setRuntimeAttribute=function(F){D.setRuntimeAttribute.call(this,F);if(this.patterns.color.test(F)){var H=this.attributes;var J=this.parseColor(this.runtimeAttributes[F].start);var G=this.parseColor(this.runtimeAttributes[F].end);if(typeof H[F]["to"]==="undefined"&&typeof H[F]["by"]!=="undefined"){G=this.parseColor(H[F].by);for(var I=0,E=J.length;I<E;++I){G[I]=J[I]+G[I];}}this.runtimeAttributes[F].start=J;this.runtimeAttributes[F].end=G;}};C.ColorAnim=A;})();
++/*
++TERMS OF USE - EASING EQUATIONS
++Open source under the BSD License.
++Copyright 2001 Robert Penner All rights reserved.
++
++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
++
++ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
++ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
++ * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++*/
++YAHOO.util.Easing={easeNone:function(B,A,D,C){return D*B/C+A;},easeIn:function(B,A,D,C){return D*(B/=C)*B+A;},easeOut:function(B,A,D,C){return -D*(B/=C)*(B-2)+A;},easeBoth:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A;}return -D/2*((--B)*(B-2)-1)+A;},easeInStrong:function(B,A,D,C){return D*(B/=C)*B*B*B+A;},easeOutStrong:function(B,A,D,C){return -D*((B=B/C-1)*B*B*B-1)+A;},easeBothStrong:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B+A;}return -D/2*((B-=2)*B*B*B-2)+A;},elasticIn:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;},elasticOut:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A;},elasticBoth:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F/2)==2){return A+G;}if(!E){E=F*(0.3*1.5);}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A;},backIn:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*(B/=D)*B*((C+1)*B-C)+A;},backOut:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*((B=B/D-1)*B*((C+1)*B+C)+1)+A;},backBoth:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}if((B/=D/2)<1){return E/2*(B*B*(((C*=(1.525))+1)*B-C))+A;}return E/2*((B-=2)*B*(((C*=(1.525))+1)*B+C)+2)+A;},bounceIn:function(B,A,D,C){return D-YAHOO.util.Easing.bounceOut(C-B,0,D,C)+A;},bounceOut:function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A;}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A;}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A;}}}return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A;},bounceBoth:function(B,A,D,C){if(B<C/2){return YAHOO.util.Easing.bounceIn(B*2,0,D,C)*0.5+A;}return YAHOO.util.Easing.bounceOut(B*2-C,0,D,C)*0.5+D*0.5+A;}};(function(){var A=function(H,G,I,J){if(H){A.superclass.constructor.call(this,H,G,I,J);}};A.NAME="Motion";var E=YAHOO.util;YAHOO.extend(A,E.ColorAnim);var F=A.superclass;var C=A.prototype;C.patterns.points=/^points$/i;C.setAttribute=function(G,I,H){if(this.patterns.points.test(G)){H=H||"px";F.setAttribute.call(this,"left",I[0],H);F.setAttribute.call(this,"top",I[1],H);}else{F.setAttribute.call(this,G,I,H);}};C.getAttribute=function(G){if(this.patterns.points.test(G)){var H=[F.getAttribute.call(this,"left"),F.getAttribute.call(this,"top")];}else{H=F.getAttribute.call(this,G);}return H;};C.doMethod=function(G,K,H){var J=null;if(this.patterns.points.test(G)){var I=this.method(this.currentFrame,0,100,this.totalFrames)/100;J=E.Bezier.getPosition(this.runtimeAttributes[G],I);}else{J=F.doMethod.call(this,G,K,H);}return J;};C.setRuntimeAttribute=function(P){if(this.patterns.points.test(P)){var H=this.getEl();var J=this.attributes;var G;var L=J["points"]["control"]||[];var I;var M,O;if(L.length>0&&!(L[0] instanceof Array)){L=[L];}else{var K=[];for(M=0,O=L.length;M<O;++M){K[M]=L[M];}L=K;}if(E.Dom.getStyle(H,"position")=="static"){E.Dom.setStyle(H,"position","relative");}if(D(J["points"]["from"])){E.Dom.setXY(H,J["points"]["from"]);
++}else{E.Dom.setXY(H,E.Dom.getXY(H));}G=this.getAttribute("points");if(D(J["points"]["to"])){I=B.call(this,J["points"]["to"],G);var N=E.Dom.getXY(this.getEl());for(M=0,O=L.length;M<O;++M){L[M]=B.call(this,L[M],G);}}else{if(D(J["points"]["by"])){I=[G[0]+J["points"]["by"][0],G[1]+J["points"]["by"][1]];for(M=0,O=L.length;M<O;++M){L[M]=[G[0]+L[M][0],G[1]+L[M][1]];}}}this.runtimeAttributes[P]=[G];if(L.length>0){this.runtimeAttributes[P]=this.runtimeAttributes[P].concat(L);}this.runtimeAttributes[P][this.runtimeAttributes[P].length]=I;}else{F.setRuntimeAttribute.call(this,P);}};var B=function(G,I){var H=E.Dom.getXY(this.getEl());G=[G[0]-H[0]+I[0],G[1]-H[1]+I[1]];return G;};var D=function(G){return(typeof G!=="undefined");};E.Motion=A;})();(function(){var D=function(F,E,G,H){if(F){D.superclass.constructor.call(this,F,E,G,H);}};D.NAME="Scroll";var B=YAHOO.util;YAHOO.extend(D,B.ColorAnim);var C=D.superclass;var A=D.prototype;A.doMethod=function(E,H,F){var G=null;if(E=="scroll"){G=[this.method(this.currentFrame,H[0],F[0]-H[0],this.totalFrames),this.method(this.currentFrame,H[1],F[1]-H[1],this.totalFrames)];}else{G=C.doMethod.call(this,E,H,F);}return G;};A.getAttribute=function(E){var G=null;var F=this.getEl();if(E=="scroll"){G=[F.scrollLeft,F.scrollTop];}else{G=C.getAttribute.call(this,E);}return G;};A.setAttribute=function(E,H,G){var F=this.getEl();if(E=="scroll"){F.scrollLeft=H[0];F.scrollTop=H[1];}else{C.setAttribute.call(this,E,H,G);}};B.Scroll=D;})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/animation/animation.js b/pylons_app/public/js/yui/animation/animation.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/animation/animation.js
+@@ -0,0 +1,1392 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++
++var Y = YAHOO.util;
++
++/*
++Copyright (c) 2006, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++*/
++
++/**
++ * The animation module provides allows effects to be added to HTMLElements.
++ * @module animation
++ * @requires yahoo, event, dom
++ */
++
++/**
++ *
++ * Base animation class that provides the interface for building animated effects.
++ * <p>Usage: var myAnim = new YAHOO.util.Anim(el, { width: { from: 10, to: 100 } }, 1, YAHOO.util.Easing.easeOut);</p>
++ * @class Anim
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @requires YAHOO.util.CustomEvent
++ * @constructor
++ * @param {String | HTMLElement} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.  
++ * Each attribute is an object with at minimum a "to" or "by" member defined.  
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++
++var Anim = function(el, attributes, duration, method) {
++    if (!el) {
++    }
++    this.init(el, attributes, duration, method); 
++};
++
++Anim.NAME = 'Anim';
++
++Anim.prototype = {
++    /**
++     * Provides a readable name for the Anim instance.
++     * @method toString
++     * @return {String}
++     */
++    toString: function() {
++        var el = this.getEl() || {};
++        var id = el.id || el.tagName;
++        return (this.constructor.NAME + ': ' + id);
++    },
++    
++    patterns: { // cached for performance
++        noNegatives:        /width|height|opacity|padding/i, // keep at zero or above
++        offsetAttribute:  /^((width|height)|(top|left))$/, // use offsetValue as default
++        defaultUnit:        /width|height|top$|bottom$|left$|right$/i, // use 'px' by default
++        offsetUnit:         /\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i // IE may return these, so convert these to offset
++    },
++    
++    /**
++     * Returns the value computed by the animation's "method".
++     * @method doMethod
++     * @param {String} attr The name of the attribute.
++     * @param {Number} start The value this attribute should start from for this animation.
++     * @param {Number} end  The value this attribute should end at for this animation.
++     * @return {Number} The Value to be applied to the attribute.
++     */
++    doMethod: function(attr, start, end) {
++        return this.method(this.currentFrame, start, end - start, this.totalFrames);
++    },
++    
++    /**
++     * Applies a value to an attribute.
++     * @method setAttribute
++     * @param {String} attr The name of the attribute.
++     * @param {Number} val The value to be applied to the attribute.
++     * @param {String} unit The unit ('px', '%', etc.) of the value.
++     */
++    setAttribute: function(attr, val, unit) {
++        var el = this.getEl();
++        if ( this.patterns.noNegatives.test(attr) ) {
++            val = (val > 0) ? val : 0;
++        }
++
++        if (attr in el && !('style' in el && attr in el.style)) {
++            el[attr] = val;
++        } else {
++            Y.Dom.setStyle(el, attr, val + unit);
++        }
++    },                        
++    
++    /**
++     * Returns current value of the attribute.
++     * @method getAttribute
++     * @param {String} attr The name of the attribute.
++     * @return {Number} val The current value of the attribute.
++     */
++    getAttribute: function(attr) {
++        var el = this.getEl();
++        var val = Y.Dom.getStyle(el, attr);
++
++        if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) {
++            return parseFloat(val);
++        }
++        
++        var a = this.patterns.offsetAttribute.exec(attr) || [];
++        var pos = !!( a[3] ); // top or left
++        var box = !!( a[2] ); // width or height
++        
++        if ('style' in el) {
++            // use offsets for width/height and abs pos top/left
++            if ( box || (Y.Dom.getStyle(el, 'position') == 'absolute' && pos) ) {
++                val = el['offset' + a[0].charAt(0).toUpperCase() + a[0].substr(1)];
++            } else { // default to zero for other 'auto'
++                val = 0;
++            }
++        } else if (attr in el) {
++            val = el[attr];
++        }
++
++        return val;
++    },
++    
++    /**
++     * Returns the unit to use when none is supplied.
++     * @method getDefaultUnit
++     * @param {attr} attr The name of the attribute.
++     * @return {String} The default unit to be used.
++     */
++    getDefaultUnit: function(attr) {
++         if ( this.patterns.defaultUnit.test(attr) ) {
++            return 'px';
++         }
++         
++         return '';
++    },
++        
++    /**
++     * Sets the actual values to be used during the animation.  Should only be needed for subclass use.
++     * @method setRuntimeAttribute
++     * @param {Object} attr The attribute object
++     * @private 
++     */
++    setRuntimeAttribute: function(attr) {
++        var start;
++        var end;
++        var attributes = this.attributes;
++
++        this.runtimeAttributes[attr] = {};
++        
++        var isset = function(prop) {
++            return (typeof prop !== 'undefined');
++        };
++        
++        if ( !isset(attributes[attr]['to']) && !isset(attributes[attr]['by']) ) {
++            return false; // note return; nothing to animate to
++        }
++        
++        start = ( isset(attributes[attr]['from']) ) ? attributes[attr]['from'] : this.getAttribute(attr);
++
++        // To beats by, per SMIL 2.1 spec
++        if ( isset(attributes[attr]['to']) ) {
++            end = attributes[attr]['to'];
++        } else if ( isset(attributes[attr]['by']) ) {
++            if (start.constructor == Array) {
++                end = [];
++                for (var i = 0, len = start.length; i < len; ++i) {
++                    end[i] = start[i] + attributes[attr]['by'][i] * 1; // times 1 to cast "by" 
++                }
++            } else {
++                end = start + attributes[attr]['by'] * 1;
++            }
++        }
++        
++        this.runtimeAttributes[attr].start = start;
++        this.runtimeAttributes[attr].end = end;
++
++        // set units if needed
++        this.runtimeAttributes[attr].unit = ( isset(attributes[attr].unit) ) ?
++                attributes[attr]['unit'] : this.getDefaultUnit(attr);
++        return true;
++    },
++
++    /**
++     * Constructor for Anim instance.
++     * @method init
++     * @param {String | HTMLElement} el Reference to the element that will be animated
++     * @param {Object} attributes The attribute(s) to be animated.  
++     * Each attribute is an object with at minimum a "to" or "by" member defined.  
++     * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++     * All attribute names use camelCase.
++     * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++     * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++     */ 
++    init: function(el, attributes, duration, method) {
++        /**
++         * Whether or not the animation is running.
++         * @property isAnimated
++         * @private
++         * @type Boolean
++         */
++        var isAnimated = false;
++        
++        /**
++         * A Date object that is created when the animation begins.
++         * @property startTime
++         * @private
++         * @type Date
++         */
++        var startTime = null;
++        
++        /**
++         * The number of frames this animation was able to execute.
++         * @property actualFrames
++         * @private
++         * @type Int
++         */
++        var actualFrames = 0; 
++
++        /**
++         * The element to be animated.
++         * @property el
++         * @private
++         * @type HTMLElement
++         */
++        el = Y.Dom.get(el);
++        
++        /**
++         * The collection of attributes to be animated.  
++         * Each attribute must have at least a "to" or "by" defined in order to animate.  
++         * If "to" is supplied, the animation will end with the attribute at that value.  
++         * If "by" is supplied, the animation will end at that value plus its starting value. 
++         * If both are supplied, "to" is used, and "by" is ignored. 
++         * Optional additional member include "from" (the value the attribute should start animating from, defaults to current value), and "unit" (the units to apply to the values).
++         * @property attributes
++         * @type Object
++         */
++        this.attributes = attributes || {};
++        
++        /**
++         * The length of the animation.  Defaults to "1" (second).
++         * @property duration
++         * @type Number
++         */
++        this.duration = !YAHOO.lang.isUndefined(duration) ? duration : 1;
++        
++        /**
++         * The method that will provide values to the attribute(s) during the animation. 
++         * Defaults to "YAHOO.util.Easing.easeNone".
++         * @property method
++         * @type Function
++         */
++        this.method = method || Y.Easing.easeNone;
++
++        /**
++         * Whether or not the duration should be treated as seconds.
++         * Defaults to true.
++         * @property useSeconds
++         * @type Boolean
++         */
++        this.useSeconds = true; // default to seconds
++        
++        /**
++         * The location of the current animation on the timeline.
++         * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
++         * @property currentFrame
++         * @type Int
++         */
++        this.currentFrame = 0;
++        
++        /**
++         * The total number of frames to be executed.
++         * In time-based animations, this is used by AnimMgr to ensure the animation finishes on time.
++         * @property totalFrames
++         * @type Int
++         */
++        this.totalFrames = Y.AnimMgr.fps;
++        
++        /**
++         * Changes the animated element
++         * @method setEl
++         */
++        this.setEl = function(element) {
++            el = Y.Dom.get(element);
++        };
++        
++        /**
++         * Returns a reference to the animated element.
++         * @method getEl
++         * @return {HTMLElement}
++         */
++        this.getEl = function() { return el; };
++        
++        /**
++         * Checks whether the element is currently animated.
++         * @method isAnimated
++         * @return {Boolean} current value of isAnimated.     
++         */
++        this.isAnimated = function() {
++            return isAnimated;
++        };
++        
++        /**
++         * Returns the animation start time.
++         * @method getStartTime
++         * @return {Date} current value of startTime.      
++         */
++        this.getStartTime = function() {
++            return startTime;
++        };        
++        
++        this.runtimeAttributes = {};
++        
++        
++        
++        /**
++         * Starts the animation by registering it with the animation manager. 
++         * @method animate  
++         */
++        this.animate = function() {
++            if ( this.isAnimated() ) {
++                return false;
++            }
++            
++            this.currentFrame = 0;
++            
++            this.totalFrames = ( this.useSeconds ) ? Math.ceil(Y.AnimMgr.fps * this.duration) : this.duration;
++    
++            if (this.duration === 0 && this.useSeconds) { // jump to last frame if zero second duration 
++                this.totalFrames = 1; 
++            }
++            Y.AnimMgr.registerElement(this);
++            return true;
++        };
++          
++        /**
++         * Stops the animation.  Normally called by AnimMgr when animation completes.
++         * @method stop
++         * @param {Boolean} finish (optional) If true, animation will jump to final frame.
++         */ 
++        this.stop = function(finish) {
++            if (!this.isAnimated()) { // nothing to stop
++                return false;
++            }
++
++            if (finish) {
++                 this.currentFrame = this.totalFrames;
++                 this._onTween.fire();
++            }
++            Y.AnimMgr.stop(this);
++        };
++        
++        var onStart = function() {            
++            this.onStart.fire();
++            
++            this.runtimeAttributes = {};
++            for (var attr in this.attributes) {
++                this.setRuntimeAttribute(attr);
++            }
++            
++            isAnimated = true;
++            actualFrames = 0;
++            startTime = new Date(); 
++        };
++        
++        /**
++         * Feeds the starting and ending values for each animated attribute to doMethod once per frame, then applies the resulting value to the attribute(s).
++         * @private
++         */
++         
++        var onTween = function() {
++            var data = {
++                duration: new Date() - this.getStartTime(),
++                currentFrame: this.currentFrame
++            };
++            
++            data.toString = function() {
++                return (
++                    'duration: ' + data.duration +
++                    ', currentFrame: ' + data.currentFrame
++                );
++            };
++            
++            this.onTween.fire(data);
++            
++            var runtimeAttributes = this.runtimeAttributes;
++            
++            for (var attr in runtimeAttributes) {
++                this.setAttribute(attr, this.doMethod(attr, runtimeAttributes[attr].start, runtimeAttributes[attr].end), runtimeAttributes[attr].unit); 
++            }
++            
++            actualFrames += 1;
++        };
++        
++        var onComplete = function() {
++            var actual_duration = (new Date() - startTime) / 1000 ;
++            
++            var data = {
++                duration: actual_duration,
++                frames: actualFrames,
++                fps: actualFrames / actual_duration
++            };
++            
++            data.toString = function() {
++                return (
++                    'duration: ' + data.duration +
++                    ', frames: ' + data.frames +
++                    ', fps: ' + data.fps
++                );
++            };
++            
++            isAnimated = false;
++            actualFrames = 0;
++            this.onComplete.fire(data);
++        };
++        
++        /**
++         * Custom event that fires after onStart, useful in subclassing
++         * @private
++         */    
++        this._onStart = new Y.CustomEvent('_start', this, true);
++
++        /**
++         * Custom event that fires when animation begins
++         * Listen via subscribe method (e.g. myAnim.onStart.subscribe(someFunction)
++         * @event onStart
++         */    
++        this.onStart = new Y.CustomEvent('start', this);
++        
++        /**
++         * Custom event that fires between each frame
++         * Listen via subscribe method (e.g. myAnim.onTween.subscribe(someFunction)
++         * @event onTween
++         */
++        this.onTween = new Y.CustomEvent('tween', this);
++        
++        /**
++         * Custom event that fires after onTween
++         * @private
++         */
++        this._onTween = new Y.CustomEvent('_tween', this, true);
++        
++        /**
++         * Custom event that fires when animation ends
++         * Listen via subscribe method (e.g. myAnim.onComplete.subscribe(someFunction)
++         * @event onComplete
++         */
++        this.onComplete = new Y.CustomEvent('complete', this);
++        /**
++         * Custom event that fires after onComplete
++         * @private
++         */
++        this._onComplete = new Y.CustomEvent('_complete', this, true);
++
++        this._onStart.subscribe(onStart);
++        this._onTween.subscribe(onTween);
++        this._onComplete.subscribe(onComplete);
++    }
++};
++
++    Y.Anim = Anim;
++})();
++/**
++ * Handles animation queueing and threading.
++ * Used by Anim and subclasses.
++ * @class AnimMgr
++ * @namespace YAHOO.util
++ */
++YAHOO.util.AnimMgr = new function() {
++    /** 
++     * Reference to the animation Interval.
++     * @property thread
++     * @private
++     * @type Int
++     */
++    var thread = null;
++    
++    /** 
++     * The current queue of registered animation objects.
++     * @property queue
++     * @private
++     * @type Array
++     */    
++    var queue = [];
++
++    /** 
++     * The number of active animations.
++     * @property tweenCount
++     * @private
++     * @type Int
++     */        
++    var tweenCount = 0;
++
++    /** 
++     * Base frame rate (frames per second). 
++     * Arbitrarily high for better x-browser calibration (slower browsers drop more frames).
++     * @property fps
++     * @type Int
++     * 
++     */
++    this.fps = 1000;
++
++    /** 
++     * Interval delay in milliseconds, defaults to fastest possible.
++     * @property delay
++     * @type Int
++     * 
++     */
++    this.delay = 1;
++
++    /**
++     * Adds an animation instance to the animation queue.
++     * All animation instances must be registered in order to animate.
++     * @method registerElement
++     * @param {object} tween The Anim instance to be be registered
++     */
++    this.registerElement = function(tween) {
++        queue[queue.length] = tween;
++        tweenCount += 1;
++        tween._onStart.fire();
++        this.start();
++    };
++    
++    /**
++     * removes an animation instance from the animation queue.
++     * All animation instances must be registered in order to animate.
++     * @method unRegister
++     * @param {object} tween The Anim instance to be be registered
++     * @param {Int} index The index of the Anim instance
++     * @private
++     */
++    this.unRegister = function(tween, index) {
++        index = index || getIndex(tween);
++        if (!tween.isAnimated() || index === -1) {
++            return false;
++        }
++        
++        tween._onComplete.fire();
++        queue.splice(index, 1);
++
++        tweenCount -= 1;
++        if (tweenCount <= 0) {
++            this.stop();
++        }
++
++        return true;
++    };
++    
++    /**
++     * Starts the animation thread.
++	* Only one thread can run at a time.
++     * @method start
++     */    
++    this.start = function() {
++        if (thread === null) {
++            thread = setInterval(this.run, this.delay);
++        }
++    };
++
++    /**
++     * Stops the animation thread or a specific animation instance.
++     * @method stop
++     * @param {object} tween A specific Anim instance to stop (optional)
++     * If no instance given, Manager stops thread and all animations.
++     */    
++    this.stop = function(tween) {
++        if (!tween) {
++            clearInterval(thread);
++            
++            for (var i = 0, len = queue.length; i < len; ++i) {
++                this.unRegister(queue[0], 0);  
++            }
++
++            queue = [];
++            thread = null;
++            tweenCount = 0;
++        }
++        else {
++            this.unRegister(tween);
++        }
++    };
++    
++    /**
++     * Called per Interval to handle each animation frame.
++     * @method run
++     */    
++    this.run = function() {
++        for (var i = 0, len = queue.length; i < len; ++i) {
++            var tween = queue[i];
++            if ( !tween || !tween.isAnimated() ) { continue; }
++
++            if (tween.currentFrame < tween.totalFrames || tween.totalFrames === null)
++            {
++                tween.currentFrame += 1;
++                
++                if (tween.useSeconds) {
++                    correctFrame(tween);
++                }
++                tween._onTween.fire();          
++            }
++            else { YAHOO.util.AnimMgr.stop(tween, i); }
++        }
++    };
++    
++    var getIndex = function(anim) {
++        for (var i = 0, len = queue.length; i < len; ++i) {
++            if (queue[i] === anim) {
++                return i; // note return;
++            }
++        }
++        return -1;
++    };
++    
++    /**
++     * On the fly frame correction to keep animation on time.
++     * @method correctFrame
++     * @private
++     * @param {Object} tween The Anim instance being corrected.
++     */
++    var correctFrame = function(tween) {
++        var frames = tween.totalFrames;
++        var frame = tween.currentFrame;
++        var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames);
++        var elapsed = (new Date() - tween.getStartTime());
++        var tweak = 0;
++        
++        if (elapsed < tween.duration * 1000) { // check if falling behind
++            tweak = Math.round((elapsed / expected - 1) * tween.currentFrame);
++        } else { // went over duration, so jump to end
++            tweak = frames - (frame + 1); 
++        }
++        if (tweak > 0 && isFinite(tweak)) { // adjust if needed
++            if (tween.currentFrame + tweak >= frames) {// dont go past last frame
++                tweak = frames - (frame + 1);
++            }
++            
++            tween.currentFrame += tweak;      
++        }
++    };
++    this._queue = queue;
++    this._getIndex = getIndex;
++};
++/**
++ * Used to calculate Bezier splines for any number of control points.
++ * @class Bezier
++ * @namespace YAHOO.util
++ *
++ */
++YAHOO.util.Bezier = new function() {
++    /**
++     * Get the current position of the animated element based on t.
++     * Each point is an array of "x" and "y" values (0 = x, 1 = y)
++     * At least 2 points are required (start and end).
++     * First point is start. Last point is end.
++     * Additional control points are optional.     
++     * @method getPosition
++     * @param {Array} points An array containing Bezier points
++     * @param {Number} t A number between 0 and 1 which is the basis for determining current position
++     * @return {Array} An array containing int x and y member data
++     */
++    this.getPosition = function(points, t) {  
++        var n = points.length;
++        var tmp = [];
++
++        for (var i = 0; i < n; ++i){
++            tmp[i] = [points[i][0], points[i][1]]; // save input
++        }
++        
++        for (var j = 1; j < n; ++j) {
++            for (i = 0; i < n - j; ++i) {
++                tmp[i][0] = (1 - t) * tmp[i][0] + t * tmp[parseInt(i + 1, 10)][0];
++                tmp[i][1] = (1 - t) * tmp[i][1] + t * tmp[parseInt(i + 1, 10)][1]; 
++            }
++        }
++    
++        return [ tmp[0][0], tmp[0][1] ]; 
++    
++    };
++};
++(function() {
++/**
++ * Anim subclass for color transitions.
++ * <p>Usage: <code>var myAnim = new Y.ColorAnim(el, { backgroundColor: { from: '#FF0000', to: '#FFFFFF' } }, 1, Y.Easing.easeOut);</code> Color values can be specified with either 112233, #112233, 
++ * [255,255,255], or rgb(255,255,255)</p>
++ * @class ColorAnim
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.Anim
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Bezier
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @constructor
++ * @extends YAHOO.util.Anim
++ * @param {HTMLElement | String} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.
++ * Each attribute is an object with at minimum a "to" or "by" member defined.
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++    var ColorAnim = function(el, attributes, duration,  method) {
++        ColorAnim.superclass.constructor.call(this, el, attributes, duration, method);
++    };
++    
++    ColorAnim.NAME = 'ColorAnim';
++
++    ColorAnim.DEFAULT_BGCOLOR = '#fff';
++    // shorthand
++    var Y = YAHOO.util;
++    YAHOO.extend(ColorAnim, Y.Anim);
++
++    var superclass = ColorAnim.superclass;
++    var proto = ColorAnim.prototype;
++    
++    proto.patterns.color = /color$/i;
++    proto.patterns.rgb            = /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
++    proto.patterns.hex            = /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;
++    proto.patterns.hex3          = /^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;
++    proto.patterns.transparent = /^transparent|rgba\(0, 0, 0, 0\)$/; // need rgba for safari
++    
++    /**
++     * Attempts to parse the given string and return a 3-tuple.
++     * @method parseColor
++     * @param {String} s The string to parse.
++     * @return {Array} The 3-tuple of rgb values.
++     */
++    proto.parseColor = function(s) {
++        if (s.length == 3) { return s; }
++    
++        var c = this.patterns.hex.exec(s);
++        if (c && c.length == 4) {
++            return [ parseInt(c[1], 16), parseInt(c[2], 16), parseInt(c[3], 16) ];
++        }
++    
++        c = this.patterns.rgb.exec(s);
++        if (c && c.length == 4) {
++            return [ parseInt(c[1], 10), parseInt(c[2], 10), parseInt(c[3], 10) ];
++        }
++    
++        c = this.patterns.hex3.exec(s);
++        if (c && c.length == 4) {
++            return [ parseInt(c[1] + c[1], 16), parseInt(c[2] + c[2], 16), parseInt(c[3] + c[3], 16) ];
++        }
++        
++        return null;
++    };
++
++    proto.getAttribute = function(attr) {
++        var el = this.getEl();
++        if (this.patterns.color.test(attr) ) {
++            var val = YAHOO.util.Dom.getStyle(el, attr);
++            
++            var that = this;
++            if (this.patterns.transparent.test(val)) { // bgcolor default
++                var parent = YAHOO.util.Dom.getAncestorBy(el, function(node) {
++                    return !that.patterns.transparent.test(val);
++                });
++
++                if (parent) {
++                    val = Y.Dom.getStyle(parent, attr);
++                } else {
++                    val = ColorAnim.DEFAULT_BGCOLOR;
++                }
++            }
++        } else {
++            val = superclass.getAttribute.call(this, attr);
++        }
++
++        return val;
++    };
++    
++    proto.doMethod = function(attr, start, end) {
++        var val;
++    
++        if ( this.patterns.color.test(attr) ) {
++            val = [];
++            for (var i = 0, len = start.length; i < len; ++i) {
++                val[i] = superclass.doMethod.call(this, attr, start[i], end[i]);
++            }
++            
++            val = 'rgb('+Math.floor(val[0])+','+Math.floor(val[1])+','+Math.floor(val[2])+')';
++        }
++        else {
++            val = superclass.doMethod.call(this, attr, start, end);
++        }
++
++        return val;
++    };
++
++    proto.setRuntimeAttribute = function(attr) {
++        superclass.setRuntimeAttribute.call(this, attr);
++        
++        if ( this.patterns.color.test(attr) ) {
++            var attributes = this.attributes;
++            var start = this.parseColor(this.runtimeAttributes[attr].start);
++            var end = this.parseColor(this.runtimeAttributes[attr].end);
++            // fix colors if going "by"
++            if ( typeof attributes[attr]['to'] === 'undefined' && typeof attributes[attr]['by'] !== 'undefined' ) {
++                end = this.parseColor(attributes[attr].by);
++            
++                for (var i = 0, len = start.length; i < len; ++i) {
++                    end[i] = start[i] + end[i];
++                }
++            }
++            
++            this.runtimeAttributes[attr].start = start;
++            this.runtimeAttributes[attr].end = end;
++        }
++    };
++
++    Y.ColorAnim = ColorAnim;
++})();
++/*!
++TERMS OF USE - EASING EQUATIONS
++Open source under the BSD License.
++Copyright 2001 Robert Penner All rights reserved.
++
++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
++
++ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
++ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
++ * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++*/
++
++/**
++ * Singleton that determines how an animation proceeds from start to end.
++ * @class Easing
++ * @namespace YAHOO.util
++*/
++
++YAHOO.util.Easing = {
++
++    /**
++     * Uniform speed between points.
++     * @method easeNone
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeNone: function (t, b, c, d) {
++    	return c*t/d + b;
++    },
++    
++    /**
++     * Begins slowly and accelerates towards end.
++     * @method easeIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeIn: function (t, b, c, d) {
++    	return c*(t/=d)*t + b;
++    },
++
++    /**
++     * Begins quickly and decelerates towards end.
++     * @method easeOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeOut: function (t, b, c, d) {
++    	return -c *(t/=d)*(t-2) + b;
++    },
++    
++    /**
++     * Begins slowly and decelerates towards end.
++     * @method easeBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeBoth: function (t, b, c, d) {
++    	if ((t/=d/2) < 1) {
++            return c/2*t*t + b;
++        }
++        
++    	return -c/2 * ((--t)*(t-2) - 1) + b;
++    },
++    
++    /**
++     * Begins slowly and accelerates towards end.
++     * @method easeInStrong
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeInStrong: function (t, b, c, d) {
++    	return c*(t/=d)*t*t*t + b;
++    },
++    
++    /**
++     * Begins quickly and decelerates towards end.
++     * @method easeOutStrong
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeOutStrong: function (t, b, c, d) {
++    	return -c * ((t=t/d-1)*t*t*t - 1) + b;
++    },
++    
++    /**
++     * Begins slowly and decelerates towards end.
++     * @method easeBothStrong
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    easeBothStrong: function (t, b, c, d) {
++    	if ((t/=d/2) < 1) {
++            return c/2*t*t*t*t + b;
++        }
++        
++    	return -c/2 * ((t-=2)*t*t*t - 2) + b;
++    },
++
++    /**
++     * Snap in elastic effect.
++     * @method elasticIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} a Amplitude (optional)
++     * @param {Number} p Period (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++
++    elasticIn: function (t, b, c, d, a, p) {
++    	if (t == 0) {
++            return b;
++        }
++        if ( (t /= d) == 1 ) {
++            return b+c;
++        }
++        if (!p) {
++            p=d*.3;
++        }
++        
++    	if (!a || a < Math.abs(c)) {
++            a = c; 
++            var s = p/4;
++        }
++    	else {
++            var s = p/(2*Math.PI) * Math.asin (c/a);
++        }
++        
++    	return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
++    },
++
++    /**
++     * Snap out elastic effect.
++     * @method elasticOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} a Amplitude (optional)
++     * @param {Number} p Period (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    elasticOut: function (t, b, c, d, a, p) {
++    	if (t == 0) {
++            return b;
++        }
++        if ( (t /= d) == 1 ) {
++            return b+c;
++        }
++        if (!p) {
++            p=d*.3;
++        }
++        
++    	if (!a || a < Math.abs(c)) {
++            a = c;
++            var s = p / 4;
++        }
++    	else {
++            var s = p/(2*Math.PI) * Math.asin (c/a);
++        }
++        
++    	return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
++    },
++    
++    /**
++     * Snap both elastic effect.
++     * @method elasticBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} a Amplitude (optional)
++     * @param {Number} p Period (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    elasticBoth: function (t, b, c, d, a, p) {
++    	if (t == 0) {
++            return b;
++        }
++        
++        if ( (t /= d/2) == 2 ) {
++            return b+c;
++        }
++        
++        if (!p) {
++            p = d*(.3*1.5);
++        }
++        
++    	if ( !a || a < Math.abs(c) ) {
++            a = c; 
++            var s = p/4;
++        }
++    	else {
++            var s = p/(2*Math.PI) * Math.asin (c/a);
++        }
++        
++    	if (t < 1) {
++            return -.5*(a*Math.pow(2,10*(t-=1)) * 
++                    Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
++        }
++    	return a*Math.pow(2,-10*(t-=1)) * 
++                Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
++    },
++
++
++    /**
++     * Backtracks slightly, then reverses direction and moves to end.
++     * @method backIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} s Overshoot (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    backIn: function (t, b, c, d, s) {
++    	if (typeof s == 'undefined') {
++            s = 1.70158;
++        }
++    	return c*(t/=d)*t*((s+1)*t - s) + b;
++    },
++
++    /**
++     * Overshoots end, then reverses and comes back to end.
++     * @method backOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} s Overshoot (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    backOut: function (t, b, c, d, s) {
++    	if (typeof s == 'undefined') {
++            s = 1.70158;
++        }
++    	return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
++    },
++    
++    /**
++     * Backtracks slightly, then reverses direction, overshoots end, 
++     * then reverses and comes back to end.
++     * @method backBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @param {Number} s Overshoot (optional)
++     * @return {Number} The computed value for the current animation frame
++     */
++    backBoth: function (t, b, c, d, s) {
++    	if (typeof s == 'undefined') {
++            s = 1.70158; 
++        }
++        
++    	if ((t /= d/2 ) < 1) {
++            return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
++        }
++    	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
++    },
++
++    /**
++     * Bounce off of start.
++     * @method bounceIn
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    bounceIn: function (t, b, c, d) {
++    	return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b;
++    },
++    
++    /**
++     * Bounces off end.
++     * @method bounceOut
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    bounceOut: function (t, b, c, d) {
++    	if ((t/=d) < (1/2.75)) {
++    		return c*(7.5625*t*t) + b;
++    	} else if (t < (2/2.75)) {
++    		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
++    	} else if (t < (2.5/2.75)) {
++    		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
++    	}
++        return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
++    },
++    
++    /**
++     * Bounces off start and end.
++     * @method bounceBoth
++     * @param {Number} t Time value used to compute current value
++     * @param {Number} b Starting value
++     * @param {Number} c Delta between start and end values
++     * @param {Number} d Total length of animation
++     * @return {Number} The computed value for the current animation frame
++     */
++    bounceBoth: function (t, b, c, d) {
++    	if (t < d/2) {
++            return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b;
++        }
++    	return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b;
++    }
++};
++
++(function() {
++/**
++ * Anim subclass for moving elements along a path defined by the "points" 
++ * member of "attributes".  All "points" are arrays with x, y coordinates.
++ * <p>Usage: <code>var myAnim = new YAHOO.util.Motion(el, { points: { to: [800, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p>
++ * @class Motion
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.Anim
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Bezier
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @requires YAHOO.util.CustomEvent 
++ * @constructor
++ * @extends YAHOO.util.ColorAnim
++ * @param {String | HTMLElement} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.  
++ * Each attribute is an object with at minimum a "to" or "by" member defined.  
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++    var Motion = function(el, attributes, duration,  method) {
++        if (el) { // dont break existing subclasses not using YAHOO.extend
++            Motion.superclass.constructor.call(this, el, attributes, duration, method);
++        }
++    };
++
++
++    Motion.NAME = 'Motion';
++
++    // shorthand
++    var Y = YAHOO.util;
++    YAHOO.extend(Motion, Y.ColorAnim);
++    
++    var superclass = Motion.superclass;
++    var proto = Motion.prototype;
++
++    proto.patterns.points = /^points$/i;
++    
++    proto.setAttribute = function(attr, val, unit) {
++        if (  this.patterns.points.test(attr) ) {
++            unit = unit || 'px';
++            superclass.setAttribute.call(this, 'left', val[0], unit);
++            superclass.setAttribute.call(this, 'top', val[1], unit);
++        } else {
++            superclass.setAttribute.call(this, attr, val, unit);
++        }
++    };
++
++    proto.getAttribute = function(attr) {
++        if (  this.patterns.points.test(attr) ) {
++            var val = [
++                superclass.getAttribute.call(this, 'left'),
++                superclass.getAttribute.call(this, 'top')
++            ];
++        } else {
++            val = superclass.getAttribute.call(this, attr);
++        }
++
++        return val;
++    };
++
++    proto.doMethod = function(attr, start, end) {
++        var val = null;
++
++        if ( this.patterns.points.test(attr) ) {
++            var t = this.method(this.currentFrame, 0, 100, this.totalFrames) / 100;				
++            val = Y.Bezier.getPosition(this.runtimeAttributes[attr], t);
++        } else {
++            val = superclass.doMethod.call(this, attr, start, end);
++        }
++        return val;
++    };
++
++    proto.setRuntimeAttribute = function(attr) {
++        if ( this.patterns.points.test(attr) ) {
++            var el = this.getEl();
++            var attributes = this.attributes;
++            var start;
++            var control = attributes['points']['control'] || [];
++            var end;
++            var i, len;
++            
++            if (control.length > 0 && !(control[0] instanceof Array) ) { // could be single point or array of points
++                control = [control];
++            } else { // break reference to attributes.points.control
++                var tmp = []; 
++                for (i = 0, len = control.length; i< len; ++i) {
++                    tmp[i] = control[i];
++                }
++                control = tmp;
++            }
++
++            if (Y.Dom.getStyle(el, 'position') == 'static') { // default to relative
++                Y.Dom.setStyle(el, 'position', 'relative');
++            }
++    
++            if ( isset(attributes['points']['from']) ) {
++                Y.Dom.setXY(el, attributes['points']['from']); // set position to from point
++            } 
++            else { Y.Dom.setXY( el, Y.Dom.getXY(el) ); } // set it to current position
++            
++            start = this.getAttribute('points'); // get actual top & left
++            
++            // TO beats BY, per SMIL 2.1 spec
++            if ( isset(attributes['points']['to']) ) {
++                end = translateValues.call(this, attributes['points']['to'], start);
++                
++                var pageXY = Y.Dom.getXY(this.getEl());
++                for (i = 0, len = control.length; i < len; ++i) {
++                    control[i] = translateValues.call(this, control[i], start);
++                }
++
++                
++            } else if ( isset(attributes['points']['by']) ) {
++                end = [ start[0] + attributes['points']['by'][0], start[1] + attributes['points']['by'][1] ];
++                
++                for (i = 0, len = control.length; i < len; ++i) {
++                    control[i] = [ start[0] + control[i][0], start[1] + control[i][1] ];
++                }
++            }
++
++            this.runtimeAttributes[attr] = [start];
++            
++            if (control.length > 0) {
++                this.runtimeAttributes[attr] = this.runtimeAttributes[attr].concat(control); 
++            }
++
++            this.runtimeAttributes[attr][this.runtimeAttributes[attr].length] = end;
++        }
++        else {
++            superclass.setRuntimeAttribute.call(this, attr);
++        }
++    };
++    
++    var translateValues = function(val, start) {
++        var pageXY = Y.Dom.getXY(this.getEl());
++        val = [ val[0] - pageXY[0] + start[0], val[1] - pageXY[1] + start[1] ];
++
++        return val; 
++    };
++    
++    var isset = function(prop) {
++        return (typeof prop !== 'undefined');
++    };
++
++    Y.Motion = Motion;
++})();
++(function() {
++/**
++ * Anim subclass for scrolling elements to a position defined by the "scroll"
++ * member of "attributes".  All "scroll" members are arrays with x, y scroll positions.
++ * <p>Usage: <code>var myAnim = new YAHOO.util.Scroll(el, { scroll: { to: [0, 800] } }, 1, YAHOO.util.Easing.easeOut);</code></p>
++ * @class Scroll
++ * @namespace YAHOO.util
++ * @requires YAHOO.util.Anim
++ * @requires YAHOO.util.AnimMgr
++ * @requires YAHOO.util.Easing
++ * @requires YAHOO.util.Bezier
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @requires YAHOO.util.CustomEvent 
++ * @extends YAHOO.util.ColorAnim
++ * @constructor
++ * @param {String or HTMLElement} el Reference to the element that will be animated
++ * @param {Object} attributes The attribute(s) to be animated.  
++ * Each attribute is an object with at minimum a "to" or "by" member defined.  
++ * Additional optional members are "from" (defaults to current value), "units" (defaults to "px").  
++ * All attribute names use camelCase.
++ * @param {Number} duration (optional, defaults to 1 second) Length of animation (frames or seconds), defaults to time-based
++ * @param {Function} method (optional, defaults to YAHOO.util.Easing.easeNone) Computes the values that are applied to the attributes per frame (generally a YAHOO.util.Easing method)
++ */
++    var Scroll = function(el, attributes, duration,  method) {
++        if (el) { // dont break existing subclasses not using YAHOO.extend
++            Scroll.superclass.constructor.call(this, el, attributes, duration, method);
++        }
++    };
++
++    Scroll.NAME = 'Scroll';
++
++    // shorthand
++    var Y = YAHOO.util;
++    YAHOO.extend(Scroll, Y.ColorAnim);
++    
++    var superclass = Scroll.superclass;
++    var proto = Scroll.prototype;
++
++    proto.doMethod = function(attr, start, end) {
++        var val = null;
++    
++        if (attr == 'scroll') {
++            val = [
++                this.method(this.currentFrame, start[0], end[0] - start[0], this.totalFrames),
++                this.method(this.currentFrame, start[1], end[1] - start[1], this.totalFrames)
++            ];
++            
++        } else {
++            val = superclass.doMethod.call(this, attr, start, end);
++        }
++        return val;
++    };
++
++    proto.getAttribute = function(attr) {
++        var val = null;
++        var el = this.getEl();
++        
++        if (attr == 'scroll') {
++            val = [ el.scrollLeft, el.scrollTop ];
++        } else {
++            val = superclass.getAttribute.call(this, attr);
++        }
++        
++        return val;
++    };
++
++    proto.setAttribute = function(attr, val, unit) {
++        var el = this.getEl();
++        
++        if (attr == 'scroll') {
++            el.scrollLeft = val[0];
++            el.scrollTop = val[1];
++        } else {
++            superclass.setAttribute.call(this, attr, val, unit);
++        }
++    };
++
++    Y.Scroll = Scroll;
++})();
++YAHOO.register("animation", YAHOO.util.Anim, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/ajax-loader.gif b/pylons_app/public/js/yui/assets/skins/sam/ajax-loader.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..fe2cd23b3a3c017ae6acfd291135a998e2f8ee74
+GIT binary patch
+literal 3208
+zc$~$Tdr(tX9>*`aH#d)ab@kq01A!Wlh)@ebf$~%#K!AWe1O!Eq7&V9r@(>6D;gJW(
+zGlZ7`C4s~ct%#t4R?9;QYH{#|kE#o_6+uO<W7l>&>q0xbvw!f%&g@M0{CVb_IrI7c
+zzTfZ6;Rg7*xW+R9Ch!gbK7RbTd-v|gj~{n+b=|&wyT89*DwQ@gG)zrR&Cbq_jg4hw
+zWC(>q;9tw)BeKyqViU(J)OU>?8#J2V`iCheWmkOKE&($mAx+4P-y5H~FDYJNmvCTr
+z5@7KQM4`@|T0MVz{!sv$S~47v5U-sXnd0*#R!x4WaZ5PCOBr!?HA%Z>)1)oi$=?3j
+zeoeB4sJic4wh3X0yVW3@W7KFz2(Y#I&7ZT%Ys1ncBdE|~t!sqS#n@XeHu^=f<{f>r
+zU1tR}Qbs1%GX|pWp+SWi{(PzVA=t}P!KOsTHpa@`DFh<es%<>(t~IFq^(C5<r<yv=
+z>)GeerLn5~Q;UzJ#CZ7U+2!Md#TRNRR}}oO@hztOp%C9a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iF84#k=Nz-F-xE+N%83a(6!`JE%qEEjm1cC$GmU|L)dYptHdU(zQ!(e`t%^k#K
+z492LBO5i)AlQ?nMl>^@S9(&>QjQ1R=1m0t>zT)X5n)EWt1#HOHjLojx^eK2fZQ)M*
+zQ-Uxj0uezgtBOTV)T%nPT3J?6Uviuyaif6qLLdn7cOhVdVO|JQCqlZw@SW44%>X+C
+z<U!M|H1cv!$e`_pVJ&zc*qpi2<}Pe<|8{_@oOJgTFtH(tL%d7EXCl_~o_;g^02h46
+zcuo6h+lM~yFVww2L9;WNK6=t;!5}>UpZLk>H)7-8`IoTCYnKrXol4=oZoE(x-&?nr
+z8Ho{*Y)(L;*?vB6g={CUN`Z-8C`H-viW--O1F9N&eM7ZYRuEO`CbuWT@IklWd<K=&
+z-p)xE=K>eHNyVnV!p_9g?IdS_0$v8@RfucvC<H<0P!Ib^@<TAj-%l~&x*iMeXHh4(
+zH@=<bOeDSo4(S;W->$RU_Nz0k?Tv-ZX7MM4DEWVrfJpQYc*+1>8Q8n`!^SnKJm(5(
+zhYA%O30NW?Hnu@bs7rz#_@CLV=AzCN!u3yh(R3YF__Db}Vdtz7oY6CK39zVI_^_Ww
+zN>3-H*gG?$o#4U%_c*Cp8bS<N;Y-O5QK{svQ6yN?(s<0ZMeo>jj1H;W8aq^V?oqWI
+zdnyQudz|SE@}+_LT-(c-^#HNNG&pH_H+Jz7QGDR$5Px}eKj?<#Zu>0Cc4WWtkB|v3
+xZam~x3J-YOxp9LXFr&I9_yx$ld2m$s!*V>|4D->DyvL3pWT&|Vxc~br@lWjkwJrbv
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/asc.gif b/pylons_app/public/js/yui/assets/skins/sam/asc.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..a1fe7385d5ac940629233f0dc4bbd61f20959c3b
+GIT binary patch
+literal 177
+zc${<hbhEHb<YVAuI3mvA=-^OQRaH<>U}|FG@8_44nAqLjosyCg9v<G((qf>mZ){{V
+zVZwy=_I7V?@1UTd{Jgy0-d;-!i@3Nr8*A&jy1Ge|CjI~ap8*F@{K>+|z#z_`1LA<}
+zWMI{Mpc;3;cwWW@9gSBJVHf+nnA|VbC>rpbWp?Ig%aCo`z|eKb;Sk4i&s49uTz-lS
+F)&OweGlKvC
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/autocomplete.css b/pylons_app/public/js/yui/assets/skins/sam/autocomplete.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/autocomplete.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/back-h.png b/pylons_app/public/js/yui/assets/skins/sam/back-h.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..5f69f4e2564357c83eddcecd5f104e14ecf09d49
+GIT binary patch
+literal 334
+zc%17D@N?(olHy`uVBq!ia0vp^8bBP#!2~4rHx?TMDaPU;cPEB*=VV?2IV|apzK#qG
+z8~eHcB(ehe3dtTpz6=aiY77hwEes65fI<x~7#K<o7#Ln9FfdrnU|<k0n6oR;1}JgH
+z)5S3)!};yiyIf5H0xS<+{*4b<)X}Bla#E$Y?n6kwfwQUk<}*+AxaHGJ1HBrT-s{$7
+zJ$;RTbMD6+tr_3WRm|ez4}O@Zb;qYQb5~T;X^W_)&jt}q!S|z^w!PIkxG_`b;KFsf
+z2g|l^XIcIAm{7>oOOtf|Nms9M{<~TG{NqzV`0JLv$@3}2r!1e&d7^!S-DO!ayYtzu
+zlYbXZdwJtvz~-c)`W2~GWd>K)%(x?;HM38a$5dPGdwUdyvi-fkSZmx?=65Sx>H+$T
+N!PC{xWt~$(695Wxh_(O#
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/back-v.png b/pylons_app/public/js/yui/assets/skins/sam/back-v.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..658574a9d560febf6f58a6a005e602ae734f97da
+GIT binary patch
+literal 338
+zc%17D@N?(olHy`uVBq!ia0vp^fk3Rm!2~2Z4>V?gr~;43Vg?4j!ywFfJby(BP>``W
+z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eBzCyA`kS_y6l^O#>Lkk1LFQ8Dv3kHT#0|tgy
+z2@DKYGZ+}e3+C(!v;j)&_H=O!$#8x<BarKmfq={FzxokfN?|%dTGx`aPo_;?CsN(U
+za$o4g6J>etNtMognoD1W&+apvb;IkbSm6HPD+>;$YzUet;PS1vwR5kn@U<CJzp5zR
+ztA2iGQ_a24e`YOvZozl>@xAZc*X`bN{qf6~>%I#YFG@c*bNAWmV~4vw71T)EP4+yI
+zm~wtolli{h{KvO{m;tHh|I%4jCy1_T3f;gJc5v07ee4g7Yue6#khD9T{)1<JaRqD2
+dr2i*Ww1ZhH=WaM6eIMuz22WQ%mvv4FO#n?1hROf{
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/bar-h.png b/pylons_app/public/js/yui/assets/skins/sam/bar-h.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..fea13b15d80fe640814d8ed1da4a9819de4fad9d
+GIT binary patch
+literal 365
+zc%17D@N?(olHy`uVBq!ia0vp^8bBPt!2~3qyj?I2NHG=%xjQkeJ16rJ$YDu$^mSxl
+z*x1kgCy^D%S4j2<@?~JCQe$9fXklRZ1r%y{!N5>zz`*b-fq}tl1_Oh5!JJ)zHb9Bj
+zo-U3d8P0E~+HyA*iX83NS6;e=XVR0zjVBT|NT_&L{`FGpKAL2Fa>10KxKFts1mAI{
+zTl(++c+c<euIK-kyy{k0xo;i8q_R@}?4}2|{wOj|x>Bw&>1Hg`q?f)-lTL;*t$N(e
+z5?hd3GOgj$2NlMp2LqYB{x-9SR9ACql#~mV9Q=7MjH&2tFH1^vHs=YGaG?o#I;s{w
+z@^7uZwW|JFk^J=j)5pJVtzYr_iPcWOb;5U<>=m}`da)?fz4zkhFyGbPdQqiUBy97q
+c5+S&cLBv9~EU0~*E702vp00i_>zopr03oxJMgRZ+
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/bar-v.png b/pylons_app/public/js/yui/assets/skins/sam/bar-v.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..2efd664d9abdddff7e06ec512e0198f5fcaf1a56
+GIT binary patch
+literal 387
+zc%17D@N?(olHy`uVBq!ia0vp^0YI$5!2~3qF}(@{Qk(@Ik;M!Qe1}1p@p%4<6rdnu
+zage(c!@6@aFM%AEbVpxD28NCO+<y{TfqaEzk04(LhAK4%hK3dfhF?ITh8GMBr3MTP
+zuM!v-tY$DUh!@P+6=(yLc;o5f7?R=qcE(<=Lk1#luTOU<bUaXSJ@V?25+9!)pORA3
+z{`F6uJbLu#nF?Q%0>{4xi!)|R=d;J&iHZ8yvVO_gGSA|3s-364JloT@b<z53QMHFo
+zO8pf{b~$7r)ZrmuQ*!Y~IcLpc!T3J~Pt)7P{`gfEU9EWBZEjV4I5@N5ipcMFr~LP2
+z<$39|^Ye?=ZdJP-lPYz(q;}$}vy-ph<UhJFp=?I{EMuN6NoR63dfPK?UTjI~S#f@z
+zcm|{H0@f`JVRPOyFEE+Xb}2y0%lW0mUB-o~TUw@F5Q=j0&d}Ty+|d5fK<?P#i-Iq>
+e|NoWUGS9D3dxyvWMZl0`VDNPHb6Mw<&;$VKhMGhG
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/bg-h.gif b/pylons_app/public/js/yui/assets/skins/sam/bg-h.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..996288916e82bf2972bb4b8097f1b4a0869955d2
+GIT binary patch
+literal 212
+zc$@*$04x7TNk%w1VbK5_0HOu};o;%Q$;qdur-_M)x3{;~*Vq65{{R30A^8LW000I6
+zEC2ui0MP&(000A-Xu90~Fv>}*y*TU5yZ>M)j$~<`XsWJk>%MR-&vb3yc&_h!@BhG{
+za7Zi~kI1BQ$!t1BgQ#>$ty-_xtai)odcWYXI4gJ*&gisy&2GEj@VI<VuiNkVIKYwb
+z`~QG}f`fB=4g`paii?bmj*pO$l9QB`mY0~BkO5Dfo}ZwhqNAjxrl+W>s;jK6uCK7M
+Ova__cwzs%A2>?48g>Yp6
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/bg-v.gif b/pylons_app/public/js/yui/assets/skins/sam/bg-v.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..8e287cd52222c75c8f921cfdd4b4ae02b783c0e4
+GIT binary patch
+literal 481
+zc$@*@0UrKGNk%w1VI%<H0J8}I>+9?F_4V!T?c3Yi)6>)G>FKw(x2LD4*Voto|Nj60
+z00000000000000000000A^8LW000R9EC2ui03-n5000F4Fv&@)y*TU5yZ>M)1%db#
+z2qKu>ks2)LB5<tDwT<C=#`l*Wup%5zipB)exEwZt&t6nFwN+zRR@Sr?bwgiJ_%rsD
+zTdySLEK92;>`naUe$Rb%^?jF5?t^_yflh-^g;Ix9iB^kPjarXfkzSKvm137<nP!`4
+zG;eU7ZJ(fj7N$g^a;kKscC2`=da!)5ezbtLg1UsfhQ5fvio%S<j>eG4lFF3Kmd=>a
+zn$n!qo;kDDqu96FtKO~LyW+j%zvjW{!|KKC$L`7S%ks_i&-T&y)B4r?*Pu#pof4P|
+zTr7Xv0HRt$kfFg^2){)Pr?BA>i=iIons~6H#(^J>3vz_$apcC5C`(}s7}B9hkS|51
+zeAV(|&5SW!&diq6W>1_uyZvN2bfM3n<B*n9dX8y2r|Y1$llqQoJgf7t*3){AYd)|0
+z!1fdSPvuRbWD}Y#y3#1nwP_{Br3kk!O}1y<qP5F&Zb!aC{gMQnl<-o+O%Xp;9F_4@
+X$5lZQNHG9l0ssIkYu?ORO#}ct&2adY
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/blankimage.png b/pylons_app/public/js/yui/assets/skins/sam/blankimage.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..b87bb2485015d12369549a8f88b4b4e6918da8a7
+GIT binary patch
+literal 2314
+zc$@(W3HA1gP)<h;3K|Lk000e1NJLTq002t>002t}0{{R350Hx300004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUzfKW_SMepzL
+z<K4;V=;+PO&Hw-Zr@G9zxVYKb+3EB3=H}+&$i2PAxx~c5%f+{})!oD0<l*7r$lBb{
+z(9qM;%I@y&+u`Tu;>*?5)vnXr<l@`Q%Er^ov$w>^-@mq~v#Is<_TJv!tH9IQ<n8S2
+z?Cj{(-Q3mc<<R;0`Qz{MnxmTS>e$@Xx30<DslCtW=i|)a>Dl4m?CIp{=H9&7-_qpj
+z@$&Na_V>}=-P_s8t;X5r<>9oxu=V))t;fI5&dBfV=di}q&Ctl)z^}#1!s6l2^YQNR
+z_4fPy{pIZK+vn}2t)%$)_toO#;n%^Nt);HK#<#b(?d|Q^-PrN-^x)*+!OF_W$Hdm!
+z)7aL|?e6dH@9^Q?*SNj5^z`$uytMfH`|<AT-R$tz=<WUe{OjxM@a^57r=I-#`r+c_
+z_xAPC)z9kf?AqAT)YZ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!vEq01I>bU}c}Bv|dpn337yda&vH^B^dlvL7Yi
+z@mSG(V{GAdZNNf>0fr$@qv3(QOWMNm!`ZQ3CJP5+#k*3l*t}Kjy}A=0vY@brM-Tu)
+zpX+wmyQJ-?{;c0BBEdO{9*y-|@c|18>k#HI2%TyNO^>vt!|h)Na{HGz1Fvj_hb{D5
+zJ%*wsV<o`aONYbgbfeVK6%2hDiJSlC>*087z%uTCq5yIDOd+dU>g5^AA;fan9>~#P
+zUFIDp*E^prm1K-f+YNrkz>AFelrhp8wtB(G0M676;-~cnG0H;6K!E*vgTNlL6VXu?
+z+HC^fZvPTp7aBxoqy?Xu1lqCx9<&{!C2rKcXsJrvG#yNhy03)|QoT{41~uw_oBM|R
+k{QsPv*4L~bm;VVc0HT!-jb!e$TmS$707*qoM6N<$g7zKgCjbBd
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/button.css b/pylons_app/public/js/yui/assets/skins/sam/button.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/button.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/calendar.css b/pylons_app/public/js/yui/assets/skins/sam/calendar.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/calendar.css
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-index:0;width:100%;height:100%;left:0;top:0;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;top:-1px;left:-1px;}.yui-calcontainer.multi .groupcal{z-index:1;float:left;position:relative;}.yui-calcontainer .title{position:relative;z-index:1;}.yui-calcontainer .close-icon{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calnavright{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calheader{position:relative;width:100%;text-align:center;}.yui-calcontainer .yui-cal-nav-mask{position:absolute;z-index:2;margin:0;padding:0;width:100%;height:100%;_width:0;_height:0;left:0;top:0;display:none;}.yui-calcontainer .yui-cal-nav{position:absolute;z-index:3;top:0;display:none;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{display:-moz-inline-box;display:inline-block;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{display:block;*display:inline-block;*overflow:visible;border:none;background-color:transparent;cursor:pointer;}.yui-calendar .calbody a:hover{background:inherit;}p#clear{clear:left;padding-top:10px;}.yui-skin-sam .yui-calcontainer{background-color:#f2f2f2;border:1px solid #808080;padding:10px;}.yui-skin-sam .yui-calcontainer.multi{padding:0 5px 0 5px;}.yui-skin-sam .yui-calcontainer.multi .groupcal{background-color:transparent;border:none;padding:10px 5px 10px 5px;margin:0;}.yui-skin-sam .yui-calcontainer .title{background:url(sprite.png) repeat-x 0 0;border-bottom:1px solid #ccc;font:100% sans-serif;color:#000;font-weight:bold;height:auto;padding:.4em;margin:0 -10px 10px -10px;top:0;left:0;text-align:left;}.yui-skin-sam .yui-calcontainer.multi .title{margin:0 -5px 0 -5px;}.yui-skin-sam .yui-calcontainer.withtitle{padding-top:0;}.yui-skin-sam .yui-calcontainer .calclose{background:url(sprite.png) no-repeat 0 -300px;width:25px;height:15px;top:.4em;right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar{border-spacing:0;border-collapse:collapse;font:100% sans-serif;text-align:center;margin:0;}.yui-skin-sam .yui-calendar .calhead{background:transparent;border:none;vertical-align:middle;padding:0;}.yui-skin-sam .yui-calendar .calheader{background:transparent;font-weight:bold;padding:0 0 .6em 0;text-align:center;}.yui-skin-sam .yui-calendar .calheader img{border:none;}.yui-skin-sam .yui-calendar .calnavleft{background:url(sprite.png) no-repeat 0 -450px;width:25px;height:15px;top:0;bottom:0;left:-10px;margin-left:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calnavright{background:url(sprite.png) no-repeat 0 -500px;width:25px;height:15px;top:0;bottom:0;right:-10px;margin-right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calweekdayrow{height:2em;}.yui-skin-sam .yui-calendar .calweekdayrow th{padding:0;border:none;}.yui-skin-sam .yui-calendar .calweekdaycell{color:#000;font-weight:bold;text-align:center;width:2em;}.yui-skin-sam .yui-calendar .calfoot{background-color:#f2f2f2;}.yui-skin-sam .yui-calendar .calrowhead,.yui-skin-sam .yui-calendar .calrowfoot{color:#a6a6a6;font-size:85%;font-style:normal;font-weight:normal;border:none;}.yui-skin-sam .yui-calendar .calrowhead{text-align:right;padding:0 2px 0 0;}.yui-skin-sam .yui-calendar .calrowfoot{text-align:left;padding:0 0 0 2px;}.yui-skin-sam .yui-calendar td.calcell{border:1px solid #ccc;background:#fff;padding:1px;height:1.6em;line-height:1.6em;text-align:center;white-space:nowrap;}.yui-skin-sam .yui-calendar td.calcell a{color:#06c;display:block;height:100%;text-decoration:none;}.yui-skin-sam .yui-calendar td.calcell.today{background-color:#000;}.yui-skin-sam .yui-calendar td.calcell.today a{background-color:#fff;}.yui-skin-sam .yui-calendar td.calcell.oom{background-color:#ccc;color:#a6a6a6;cursor:default;}.yui-skin-sam .yui-calendar td.calcell.selected{background-color:#fff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.selected a{background-color:#b3d4ff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.calcellhover{background-color:#426fd9;color:#fff;cursor:pointer;}.yui-skin-sam .yui-calendar td.calcell.calcellhover a{background-color:#426fd9;color:#fff;}.yui-skin-sam .yui-calendar td.calcell.previous{color:#e0e0e0;}.yui-skin-sam .yui-calendar td.calcell.restricted{text-decoration:line-through;}.yui-skin-sam .yui-calendar td.calcell.highlight1{background-color:#cf9;}.yui-skin-sam .yui-calendar td.calcell.highlight2{background-color:#9cf;}.yui-skin-sam .yui-calendar td.calcell.highlight3{background-color:#fcc;}.yui-skin-sam .yui-calendar td.calcell.highlight4{background-color:#cf9;}.yui-skin-sam .yui-calendar a.calnav{border:1px solid #f2f2f2;padding:0 4px;text-decoration:none;color:#000;zoom:1;}.yui-skin-sam .yui-calendar a.calnav:hover{background:url(sprite.png) repeat-x 0 0;border-color:#A0A0A0;cursor:pointer;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-calcontainer .yui-cal-nav{font-family:arial,helvetica,clean,sans-serif;font-size:93%;border:1px solid #808080;left:50%;margin-left:-7em;width:14em;padding:0;top:2.5em;background-color:#f2f2f2;}.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav{top:4.5em;}.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav{width:16em;margin-left:-8em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{padding:5px 10px 5px 10px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{text-align:center;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-e{margin-top:5px;padding:5px;background-color:#EDF5FF;border-top:1px solid black;display:none;}.yui-skin-sam .yui-calcontainer .yui-cal-nav label{display:block;font-weight:bold;}
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc{width:100%;_width:auto;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid{background-color:#FFEE69;border:1px solid #000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc{width:4em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{border:1px solid #808080;background:url(sprite.png) repeat-x 0 0;background-color:#ccc;margin:auto .15em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{padding:0 8px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default{border:1px solid #304369;background-color:#426fd9;background:url(sprite.png) repeat-x 0 -1400px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button{color:#fff;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/carousel.css b/pylons_app/public/js/yui/assets/skins/sam/carousel.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/carousel.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/check0.gif b/pylons_app/public/js/yui/assets/skins/sam/check0.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..193028b99361c6527f17a9056037f3d8729fada7
+GIT binary patch
+literal 608
+zc${<hbhEHb6krfzc;>|L^y$-=FJFHD{{8v$=l}lwYiw-%_U+rNSFb*Q{ycHwL|t9o
+z4<A0<y?b}lrcEs^Er0+1eemGH=FOX5ym+y5=gxcg?tT3D@%{VvckbL-vSi7nOP9WW
+z{W@>nyho27-Mo48_U+qq=FHi!VMBd=eR6X0+O=zU@7{g=`t?<-R$aV!QBO~=si|q#
+zu3gWbJ!@`mzI^%e<HwJeEnC*w+N!Uwzh}>$A3uKV-Me@C^y%BTZ(p%u#nr1<lai7Q
+z4GoQqjBebxaqHHtckkZazkmPJr%(UEfMI9?#h)yU3=B>TIv@@xP8ittHaImkx3spk
+zcXW1j_cS}oD)RAZvQFhQ(2;d)V&b%LWLdb7-%*ZJs)?PIkz=jHdIyeG>`e@u%yv6>
+z?PTU;Xp)hZV?1({UC2gSrb$3T*Y?823+fUAP4>#R_P6iY3#h8uH}RP1X*0Zd!7Rk1
+zz|$mdA||??`wO>&or-vqh_DzF&lv-S1q&KjjWjr<0uDP&Xcv&r`eEQOp;26^WI=#{
+kbK`MY%RC8zFAN@SoPt4S5i6CLC$RS>otjgrA;4e_0GYwkU;qFB
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/check1.gif b/pylons_app/public/js/yui/assets/skins/sam/check1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..7d9ceba3847ffb41864626de755147cf2e0ccc41
+GIT binary patch
+literal 622
+zc${<hbhEHb6krfzcoxU7ckkYV2M?Y-d-m9|V>@>2*tTt3LPEl(O`BR;T8<t)x^m^p
+zLx&D+-n_Z7vGMNRyLax~*|%@s{{8#EefyT1oBQ<X(|h;s)zvlp|NsBht5*R50iQm7
+z`uq3qg9i_uKYw0dU%zwb&YL%HK6>=%(xpqq#l;5>99Xq#)&2YTYiepbIy&0g+AOW@
+zckS9Guc-F@`}d~imPLyeZQs6~fsu`YfvK{pX2F65U0q$Rt*sL$O-@Ws1A@}h((LT)
+z?(XjO>(?(?vSiJgH4`UJK6B=bk&)5y<Hw_7;=X?U%E-vr)YMd0->`M-)|l9Y<;$0E
+z*|Mdlr)S-|b(NKs3l=PFZf@Sadv|qB-H{_lmMvRWUS2+J+H@9n9wt`q{DLAwL&J0D
+z&M`1B06oP(d!YD}g^__FjzI^+0mTUe`{{-_U|6)awRd!Ob@w!jE68zhxbsfsFbh-=
+zZ_;J6i(y*0&@o1p&9zBFl7)LM<N9D$c}a;T5jIwaUAw$ugIL)_niPdqS&p+9$HoSD
+z3oACsDC=`Y>4h6ccyO60%QUH}bGgLoXhoX)*@pV7HSuY(dx{ywiute_*vs)X@%svR
+zurM?^C$umyWZ4LWFtWBVa<-{RI21at$ceI)o|xFseY{_8<(n4@9!-3Tr-Ss2Hy!O_
+eag;Xc_;Fytv&PxlE*Up2tXO`2emfH*gEavB6Yh%u
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/check2.gif b/pylons_app/public/js/yui/assets/skins/sam/check2.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..181317599bfd45f03a7a69784b232509171d98e9
+GIT binary patch
+literal 609
+zc${<hbhEHb6krfzc;?HnW5<qT$Bvyndv?o~EeQz;hYlT*RWjJLX;Vu}%g&uUH*enD
+z*x0yj+qV7t_a8laG$0^g`}Xa*xw-rH?R)j=)ul_9{{H>@{Q2|Z;^P1R|37;4=+mc9
+z2M!#ludjdl^y!^DcW&Oi`QX8Wd-v|GTD9u_{rlg(eY<=2?(*f!7cE+}Zr!@3rlz#C
+zw93lLty{Ntbad?6wX3|me9f9QU0q#_jEvpg-8D5erKP3o*RL-ssmjjIK6B=bk&#hr
+zYwM9CN4|dj+Sb-)XlVHT`}dxnp5w=lFIlo=!GZ<LmMxnybw+b@^TC4$SFT*SckkYF
+z=gu)OFaVv$FeriIPZmZ7244mp5C;?|4D9<Fe4CnETHD$?I=i}inkD3AI5;%9r*c@k
+z%S$vlusC}&EnH~nt;Ay6B+Spiy4GX82P-GPaFZ+xkJql<yLeb+n<NF57>*v}6i^eC
+zY*G+c_q=%NqKmjfld_4YhB@0kHa9a@ZRI9aJ9ZuB*ROd53}jTB<Q#>h*Ykeo_3$#3
+zYf_Bz;CSHB(agZXY%)X8X#%S#-!zXo8WY+1xSKq#TsXL7vAdd4-5v$S6-{hhoFXf1
+U4qReo<rS4WImh#JfC7Ux0IkH>0{{R3
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/colorpicker.css b/pylons_app/public/js/yui/assets/skins/sam/colorpicker.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/colorpicker.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/container.css b/pylons_app/public/js/yui/assets/skins/sam/container.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/container.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel{position:relative;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0!important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px;}.yui-skin-sam .yui-panel .bd{padding:10px;}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%;}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px;}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff;}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left;}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px;}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px;}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px;}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px;}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px;}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px;}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#D4C237 #A6982B #A6982B #A6982B;border-width:1px;border-style:solid;background-color:#FFEE69;}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto;}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12);}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/datatable.css b/pylons_app/public/js/yui/assets/skins/sam/datatable.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/datatable.css
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-dt-mask{position:absolute;z-index:9500;}.yui-dt-tmp{position:absolute;left:-9000px;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.yui-dt-scrollable .yui-dt-bd thead tr,.yui-dt-scrollable .yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-scrollable tbody{-moz-outline:none;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.yui-skin-sam thead .yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-resizerliner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}th.yui-dt-hidden .yui-dt-liner,td.yui-dt-hidden .yui-dt-liner,th.yui-dt-hidden .yui-dt-resizer{display:none;}.yui-dt-editor{position:absolute;z-index:9000;}.yui-skin-sam .yui-dt table{margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:separate;*border-collapse:collapse;border-spacing:0;border:1px solid #7F7F7F;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{color:#000;font-size:85%;font-weight:normal;font-style:italic;line-height:1;padding:1em 0;text-align:center;}.yui-skin-sam .yui-dt th{background:#D8D8DA url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yui-dt th,.yui-skin-sam .yui-dt th a{font-weight:normal;text-decoration:none;color:#000;vertical-align:bottom;}.yui-skin-sam .yui-dt th{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;}.yui-skin-sam .yui-dt tr.yui-dt-first td{border-top:1px solid #7F7F7F;}.yui-skin-sam .yui-dt th .yui-dt-liner{white-space:nowrap;}.yui-skin-sam .yui-dt-liner{margin:0;padding:0;padding:4px 10px 4px 10px;}.yui-skin-sam .yui-dt-coltarget{width:5px;background-color:red;}.yui-skin-sam .yui-dt td{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;text-align:left;}.yui-skin-sam .yui-dt-list td{border-right:none;}.yui-skin-sam .yui-dt-resizer{width:6px;}.yui-skin-sam .yui-dt-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-dt-message{background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable table{border:none;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td{border-bottom:1px solid #7F7F7F;}.yui-skin-sam th.yui-dt-asc,.yui-skin-sam th.yui-dt-desc{background:url(sprite.png) repeat-x 0 -100px;}.yui-skin-sam th.yui-dt-sortable .yui-dt-label{margin-right:10px;}.yui-skin-sam th.yui-dt-asc .yui-dt-liner{background:url(dt-arrow-up.png) no-repeat right;}.yui-skin-sam th.yui-dt-desc .yui-dt-liner{background:url(dt-arrow-dn.png) no-repeat right;}tbody .yui-dt-editable{cursor:pointer;}.yui-dt-editor{text-align:left;background-color:#F2F2F2;border:1px solid #808080;padding:6px;}.yui-dt-editor label{padding-left:4px;padding-right:6px;}.yui-dt-editor .yui-dt-button{padding-top:6px;text-align:right;}.yui-dt-editor .yui-dt-button button{background:url(sprite.png) repeat-x 0 0;border:1px solid #999;width:4em;height:1.8em;margin-left:6px;}.yui-dt-editor .yui-dt-button button.yui-dt-default{background:url(sprite.png) repeat-x 0 -1400px;background-color:#5584E0;border:1px solid #304369;color:#FFF;}.yui-dt-editor .yui-dt-button button:hover{background:url(sprite.png) repeat-x 0 -1300px;color:#000;}.yui-dt-editor .yui-dt-button button:active{background:url(sprite.png) repeat-x 0 -1700px;color:#000;}.yui-skin-sam tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam tr.yui-dt-odd{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc{background-color:#DBEAFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam th.yui-dt-highlighted,.yui-skin-sam th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam tr.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam th.yui-dt-selected,.yui-skin-sam th.yui-dt-selected a{background-color:#446CD7;}.yui-skin-sam tr.yui-dt-selected td,.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-list th.yui-dt-selected,.yui-skin-sam .yui-dt-list th.yui-dt-selected a{background-color:#446CD7;}
++.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-dt-paginator .yui-dt-first,.yui-skin-sam .yui-dt-paginator .yui-dt-last,.yui-skin-sam .yui-dt-paginator .yui-dt-selected{padding:2px 6px;}.yui-skin-sam .yui-dt-paginator a.yui-dt-first,.yui-skin-sam .yui-dt-paginator a.yui-dt-last{text-decoration:none;}.yui-skin-sam .yui-dt-paginator .yui-dt-previous,.yui-skin-sam .yui-dt-paginator .yui-dt-next{display:none;}.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff;}.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/desc.gif b/pylons_app/public/js/yui/assets/skins/sam/desc.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..c114f290c8ba1ff4173e129b1ef7e4f3f5e2bb5d
+GIT binary patch
+literal 177
+zc${<hbhEHb<YVAuI3mvA=-^OQRaH<>U}|FG@8_44nAqLjosyCg9v<G((qf>mZ){{V
+zVZwy=_I7V?@1UTd{Jgy0-d;-!i@3Nr8*A&jy1Ge|CjI~ap8*F@{K>+|z#z_`1LA<}
+zWMI`>5YYR?BKC!AL{7G0NEe%4^$CptY34pBy%v7e&J99cimMJ3X#{q=J(yX=Fh!BU
+F8USC!Gspk{
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/dt-arrow-dn.png b/pylons_app/public/js/yui/assets/skins/sam/dt-arrow-dn.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..85fda0bbca21cefc6b8cf1726bc83e43bff993c4
+GIT binary patch
+literal 116
+zc%17D@N?(olHy`uVBq!ia0vp@K+M9#3?wzWV%32ZXMj(L>;M1%fy~Ir2;r~IJAo|5
+zk|4ie28U-i(tsREPZ!6Kid)Guq>ddput17Y#X`7&C779+nL(zFDdZjVkv^az22WQ%
+Jmvv4FO#tWt9i9LH
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/dt-arrow-up.png b/pylons_app/public/js/yui/assets/skins/sam/dt-arrow-up.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..1c674316aed41943dae79b01583956db63c8be08
+GIT binary patch
+literal 116
+zc%17D@N?(olHy`uVBq!ia0vp@K+M9#3?wzWV%32ZXMj(L>;M1%fy}VT__niwAVJ2G
+zAirP+hi5m^fE-Cr7srr_TgeGo2?+@gd>DjQ2|6TYNiZ`ri2h~@(drDS1}b9kboFyt
+I=akR{0K<nI-2eap
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/editor-knob.gif b/pylons_app/public/js/yui/assets/skins/sam/editor-knob.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..03feab3b00f83ce8bcf2e9b22454e701083ad732
+GIT binary patch
+literal 138
+zc${<hbhEHbRAdljSj5Wk>C>mi#>Q#WroDds`uzFx3^1VhlZBCift5iA%mJ!pVD^vL
+zb?2k*shv#<N*8S3GB_XW?P8y^&@Jd$XIJ)>UF)T$A9BC^GWLvhcs?r+SK^#SA2VJ*
+lnRa2J3+Gcs$t$b2{;ba0dg)F1b>aS#i#GoX@nB%E1_1g!IpF{R
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/editor-sprite-active.gif b/pylons_app/public/js/yui/assets/skins/sam/editor-sprite-active.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..3e9d4200b3e6b124354f12d6c5f90513587315d1
+GIT binary patch
+literal 5614
+zc$^iLcRbXO1I9o1xjo!{lubD$*{)PZ%E{hmB%^eSjHD|nE1g~Dp{$g<5<)o*8pfR!
+zLZ>29I-@cghx!`H{rWxsKCkEXdj5IdkF~9pp^@JPz#q9J2HuV@E>Cw=KWalD5brf5
+z7wc(%{`^^vGTB!<d^cKqc=&zz`KW?^`hWS9h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9i7`YZy8pdtp~V@$rofxVcRysbbnpeIFTybw4f3>o2E
+z9^$}5+((pRM(Lsw6O|GDReBB(CE`&s9WX(*wOJl9L48PaB#C&8><p1@{v*Z^%msD#
+z{SmQ5R=|PHxffr@AQ*tWfsf&(%G}|kVdg1Q0KoIbs>fo~Bov2KqPd7VLZet6gcnf2
+zToyJFQKuxtZ*K5KkpkYCWWj+eX$nL(^d%K}C=^3+I(?`97aHUd8bb}3#CnrUIdHQw
+cR{5z6xrwa2TLKn}Th16kCL#yxH3(qwf7i6=Gynhq
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/editor.css b/pylons_app/public/js/yui/assets/skins/sam/editor.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/editor.css
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
++.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
++.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/header_background.png b/pylons_app/public/js/yui/assets/skins/sam/header_background.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..3ef7909d3ed04956a06c5d9017076ea30e0ced27
+GIT binary patch
+literal 158
+zc%17D@N?(olHy`uVBq!ia0vp^j6kf+!2~3434ebKq$EpRBT9nv(@M${i&7aJQ}UBi
+z6+Ckj(^G>|6H_V+Po~-c6*+jiIEGZ*s_F9NI$*%V9Q*UX`TlF!Ldi}q7dA02yr`^X
+zu-PrN{%75tzwegsKk4J*;_R|w)xBe%IT`Nt9oJ`MW0-m*yz~E_s%D^B44$rjF6*2U
+FngH9xIDh~E
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/hue_bg.png b/pylons_app/public/js/yui/assets/skins/sam/hue_bg.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..d9bcdeb5c49910d5c32c9ebbb134200bf138b7b4
+GIT binary patch
+literal 1120
+zc$^hfZA?>V6h6*nD|EKy_G>T#efd;-TcIEZRG=3KG$^eF2Q{FAMV4*KY}f{qh`QSV
+zerz}DmTbC_Y|fEr#w0P0=t#CW_qsTZ+oCcxM!nmzgkYx0y)F9Qv+IxZJb6w|&dGC5
+zaz;Z<^@~z7QUPF5prJObvq_J$hJ`xXo5wcl^n8zhtsmg}%|C)|K3%8x)wT6C_ipWb
+zw=>oa{%CJkw=1x%v!^@U-5DL&ajAP1z;mggH7#{nz-rJ$faL=7qA45La$rShQh@N!
+zu%sTCvXE1t{K=eCf%*<$g}~m_lTbYf%#DuhOcn)}oyL+UY!^T)N0SIlg&q}p70^Bg
+z#v`A*ftBD@6%H#L*N*0!pas#aR&fdVH33r!@M?%V4H}RB^=Q5i+Cy}fVbYD}B4EjH
+z?P{0x>Acg883%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per.css b/pylons_app/public/js/yui/assets/skins/sam/imagecropper.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/imagecropper.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/layout.css b/pylons_app/public/js/yui/assets/skins/sam/layout.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/layout.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;overflow:hidden;padding:0;margin:0;}.yui-layout-unit{height:50px;width:50px;padding:0;margin:0;float:none;z-index:0;}.yui-layout-unit-top{position:absolute;top:0;left:0;width:100%;}.yui-layout-unit-left{position:absolute;top:0;left:0;}.yui-layout-unit-right{position:absolute;top:0;right:0;}.yui-layout-unit-bottom{position:absolute;bottom:0;left:0;width:100%;}.yui-layout-unit-center{position:absolute;top:0;left:0;width:100%;}.yui-layout div.yui-layout-hd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout div.yui-layout-bd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout .yui-layout-noscroll div.yui-layout-bd{overflow:hidden;}.yui-layout .yui-layout-scroll div.yui-layout-bd{overflow:auto;}.yui-layout div.yui-layout-ft{position:absolute;bottom:0;left:0;width:100%;zoom:1;}.yui-layout .yui-layout-unit div.yui-layout-hd h2{text-align:left;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .close{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close{right:25px;}.yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#c0c0c0;display:none;}.yui-layout .yui-layout-clip .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-wrap{height:100%;width:100%;position:absolute;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy{border:none;font-size:0;margin:0;padding:0;}.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle{display:none;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy div{position:absolute;border:1px solid #808080;background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active{zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;position:absolute;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b{width:100%;bottom:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t{width:100%;top:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -160px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -140px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -200px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -120px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -220px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -240px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -260px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -180px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close{background:transparent url(layout_sprite.png) no-repeat -20px -100px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-hd{background:url(sprite.png) repeat-x 0 -1400px;border:1px solid #808080;}.yui-skin-sam .yui-layout{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2{font-weight:bold;color:#fff;padding:3px;margin:0;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd{border:1px solid #808080;border-bottom:none;border-top:none;*border-bottom-width:0;*border-top-width:0;background-color:#f2f2f2;text-align:left;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft{border-bottom:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd{border-top:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#EDF5FF;display:none;border:1px solid #808080;}.yui-skin-sam .yui-layout div.yui-layout-ft{border:1px solid #808080;border-top:none;*border-top-width:0;background-color:#f2f2f2;}.yui-skin-sam .yui-layout-unit .yui-resize-handle{background-color:transparent;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-b{right:0;bottom:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob{position:absolute;height:16px;width:6px;top:45%;left:0;display:block;background:transparent url(layout_sprite.png) no-repeat 0 -5px;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob{position:absolute;height:6px;width:16px;left:45%;background:transparent url(layout_sprite.png) no-repeat -20px 0;zoom:1;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/layout_sprite.png b/pylons_app/public/js/yui/assets/skins/sam/layout_sprite.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..d6fce3c7a5bec2e266531e2b921f6a3bc3572bcb
+GIT binary patch
+literal 1409
+zc$@)&1%CR8P)<h;3K|Lk000e1NJLTq001ih009^X0{{R4g&oh+00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUyZ%|BBMgRZ*
+z{{H^w=jh_%<Lm6~mX?<A@$vNZ_4)bw{r&y-_xJnz`+t9bgM)*Tl$Y}I^7i)jzP`Sc
+zl$G=I^Y!)hm6et7@bK*H?dj?2l$4aWx3{&mwX3VE=;`U%+1cdf<)){nsHmvz?d|2|
+z=Kufy!J{?s0000bbW%=J|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0
+z06)({PXGV}XGugsRCwBAP*G7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~V=ogzs#Fs&WPiD*-y?Scqb$UUo8r5tsP!;V9
+z+So;%!C1xB@h9l0TBW5A>O>nFRjUhLtI#SPHmr5mvtO=H#t?b%!g$d!L~pK&n|i}L
+z!&%^r^XATaJ(Q)5hg3QzAHz@KF_|6%p4ElhboHes%dnJo?C(gon^x1UVMu9>l+$EM
+zyYYBITTA&JYj=J;UeH!t2igzSu&1+}ENH*(>w~#T?}~D>R>)!8tQB$?H*0yv+zy3X
+zp5FpK#BWTE@nL>rYK#x`TfkSiVcaHeL%A7)bE^@*P25(v!8sWU;bx5QQEo#=#9l_Y
+z9jWsb&xxPHEyHgiDKT#F_ig65r+y1bS-53z`*yv<xJjZCbuGe;XM?MKM@K9t|Eq9=
+zxJgEB9M}h3v(KP@>mBxe`^)OW4foqs1^G=pWW+-Vx8O~1UE+HGF@F06NmG=W!zJbw
+P00000NkvXXu0mjf;Dg73
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/loading.gif b/pylons_app/public/js/yui/assets/skins/sam/loading.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..0bbf3bc0c0e5e635553e8d1bf9ceddefbc402396
+GIT binary patch
+literal 2673
+zc$~eIXH=618;0M!83YJ1>=8y5ONL=Zc0(9a1O-Gyh7BM)(SVAh*7FhwTed(+)d&u#
+zAYr`(u{HsWAgHK_Kxkz+0KtlTw$-oa^v8ER-_P&<`8?-5Kdy6M&xUXPoLyoGfDZ6x
+z8hHQy{kwPX-n@D9`t|F#Z{NOp_3Dp5{&@cU`HL4Xo;`cEu&}VYx_ax@t(Pxf-nnyU
+zd3pKClP8mtlK=obefsqN{rhusb2o0>xOeZKt*xz%jm_=bw}1cr_o=C=+1c46M~>9j
+z*MIljcP1t#nVFfpckd1l4-X3q+p%LuadGjwb?e;S-GhUJ9UL5HW@ac93W-D-A0L1G
+z`0=%C*QTeZ7Z(@r-o5+NPe0Yv)a={0uduLicz8HFJNv?g3#U(?9vT|5va)JvY1z1O
+zqqVg)gTaW6jpcH=Tef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V9
+zQnDD>(t7Ld{Z7rtEWRC$aHji!=X81Ip{EJh&6Sv@Vp@ax6dA4rB1W+EdA>kx!qt8R
+z0|8JPS_L(DR?XZuhtQQky&QDv#p6*l2K7I@P%!vdWrOJ2;8|9-8rt(PJ2<LOFbNOI
+zDpHsb2j8tGk~Ux(D0l#?C*etrH7~tn?vW)5O*l%rp0Y|-NHwLrEI1#yMPg7qB_k8n
+zDg6v1Dtl+|SuPRhMpNNXNl6MsM9Z~kE9gZZF_5B(vnXrHRb4yjzN>fCtPoKOqBwiz
+z_~VSv&s}Qa)prdJQGzYsR?4y%z!XS`2ul;zXd0b3yoz|(aD_X81=zgvV`s>E3zsIs
+zx3Z_Xc)d0-G;X-4m=H7H9FHl}{-sAbQI#h$$jVc9zyn4f=ejr&YJ2mcVAtU#>_1+h
+z{|m+Yf7_sdjkIdTu`E8mJ4I35LSb-lnyEtn)ktpyfJ(fR%dJO51&uwRi{t<x06^5}
+z+1P<{oW6yc7d4*N4ItqVy)6kSqInW6=WVB2JOE6(&(xt13Wk5q*?~bFNVvhk5(=Ea
+z%m8WzSeUFQ4T^%dW%4*wy2uOSwn+hvGP<x>6Zgn~&SNVIv=e~j`Ee2gM&ljzNaE{|
+zg9jdtnP&jZ(xj>|CxHmHy{3@d;+IB743dqh(~T1%{dqawdxTe)O%{-ph~^oU5zGK^
+gUFhip`cHyML%F6@PeWS|iqE2IQ_}qt9wfl+Z(4jT8UO$Q
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/logger.css b/pylons_app/public/js/yui/assets/skins/sam/logger.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/logger.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menu-button-arrow-disabled.png b/pylons_app/public/js/yui/assets/skins/sam/menu-button-arrow-disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..8cef2abb31170a370c7062c839ea9d5e9de18948
+GIT binary patch
+literal 173
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~d!3-ofWcl9%anc=q9T^y|-MHc(VFct$mbgZg
+z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-$(3-AeXt*@{D|Np;u@pD<A2vbRr
+zU+{m1r`rv@fIN9m7srr_TS*BG3~mw$2`*2WStSC0C@{LE*eN?SFfy=iVle#vvS2q*
+ODTAl0pUXO@geCxqL^6l~
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menu-button-arrow.png b/pylons_app/public/js/yui/assets/skins/sam/menu-button-arrow.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..f03dfee4e4055e98d278ce80bf400ed8d39424dd
+GIT binary patch
+literal 173
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~d!3-ofWcl9%anc=q9T^y|-MHc(VFct$mbgZg
+z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-$(3-AeX1=9cj|6h7@{#_u8sU*lR
+z_&>wb?FL>zp1h}vV@SoVq=W_rH;IG<m#56E5`jMy7~N9rlpPuv8CW+l7=C|Qup6k9
+N!PC{xWt~$(699VTGIsy~
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menu.css b/pylons_app/public/js/yui/assets/skins/sam/menu.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/menu.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubaritemlabel:visited{color:#000;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled,.yui-skin-sam .yuimenubaritemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel:visited{color:#000;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled,.yui-skin-sam .yuimenuitemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menubaritem_submenuindicator.png b/pylons_app/public/js/yui/assets/skins/sam/menubaritem_submenuindicator.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..030941c9cffc064276813d7eaab03d8c667ed700
+GIT binary patch
+literal 3618
+zc$@(u4&CvIP)<h;3K|Lk000e1NJLTq000mG000CC0{{R3uxd}<00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T
+zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j
+zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p
+z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i
+z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i
+z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+1cgf
+z<k(8YLR(?VSAG6x!e78w{cQPuJpA|d;J)G{fihizM+Erb!p!tcr5w+a34~(Y=8s4G
+z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%JUl!-
+zJv}}?K0iM{KtMo2K|w-7LPJACL_|bIMMXwNMn^|SNJvOYNl8jdN=r*iOiWBoO-)Wt
+zPESuyP*6}&QBhJ-Qd3h?R8&+|RaI72R##V7SXfwDSy@_IT3cINTwGjTU0q&YUSD5d
+zU|?WjVPRroVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&O
+zadC2Ta&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8
+zf`fyDgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@
+zl$4Z}m6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!
+zrKP5(rl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~`6RjA00002bW%=J{{ZE;FiHRb03%66K~#9!Vqky(Mi^jVMCCIw
+oFfyX>85y7$4gdfE0RR6300puDF<v(5bN~PV07*qoM6N<$f-m^Lg8%>k
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png b/pylons_app/public/js/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..6c1612230550ef09678a38a2e3374585055a07eb
+GIT binary patch
+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uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@
+zl$4Z}m6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!
+zrKP5(rl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~9(fUf00002bW%=J{{ZE;FiHRb03%66K~#9!Vqky(Mi^jVMCCIw
+oFfyX>85y7$4gdfE0RR6300puDF<v(5bN~PV07*qoM6N<$f}`EPb^rhX
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menuitem_checkbox.png b/pylons_app/public/js/yui/assets/skins/sam/menuitem_checkbox.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..1437a4f4b9a124d2eff708b60a74144de9607385
+GIT binary patch
+literal 3625
+zc$@(#4%YFBP)<h;3K|Lk000e1NJLTq000jF000LF0{{R3;9KVv00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z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YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~`6RjA00002bW%=J{{ZE;FiHRb04hmDK~#9!T+A^Jz#tF<!P)<R
+vIt7RvxEsl~uJG{KqR~Xd==a`^KULoV6I1|I8lbr700000NkvXXu0mjf(C5k{
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menuitem_checkbox_disabled.png b/pylons_app/public/js/yui/assets/skins/sam/menuitem_checkbox_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..5d5b9985e3094b3c0635193dd26c78d8ef164f67
+GIT binary patch
+literal 3625
+zc$@(#4%YFBP)<h;3K|Lk000e1NJLTq000jF000LF0{{R3;9KVv00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T
+zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j
+zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p
+z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i
+z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&ne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diff --git a/pylons_app/public/js/yui/assets/skins/sam/menuitem_submenuindicator.png b/pylons_app/public/js/yui/assets/skins/sam/menuitem_submenuindicator.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..ea4f6602911400991ffdc6130542c12bc4cd0982
+GIT binary patch
+literal 3617
+zc$@(t4&L#JP)<h;3K|Lk000e1NJLTq000aC000LF0{{R33v65#00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T
+zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j
+zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p
+z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i
+z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i
+z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+1cgf
+z<k(8YLR(?VSAG6x!e78w{cQPuJpA|d;J)G{fihizM+Erb!p!tcr5w+a34~(Y=8s4G
+zw+sLL9n&JjNn*KJDiq^U5^;`1nvC-@r6P$!k}1U{(*I=Q-z@tBKHoI}uxdU5dyy@u
+zU1J0GOD7Ombim^G008p4Z^6_k2m^p<gW=D2|L;HjN1!DDfM!XOaR2~bL?kX$%CkSm
+z2mk;?pn)o|K^yeJ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roVq;@tWMpJzWo2e&W@l$-XlQ6@X=!R|YHMq2Y;0_8ZEbFDZf|dIaBy&O
+zadC2Ta&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8
+zf`fyDgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@
+zl$4Z}m6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!
+zrKP5(rl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~`6RjA00002bW%=J{{ZE;FiHRb03u05K~#9!VqjoI00ssI6b=Il
+nhXI!ivK}PU00000|NjF33?~3ZGNlzM00000NkvXXu0mjf(Ym^p
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png b/pylons_app/public/js/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..427d60a38af14ac7b530a266dc2e969555d287c7
+GIT binary patch
+literal 3617
+zc$@(t4&L#JP)<h;3K|Lk000e1NJLTq000aC000LF0{{R33v65#00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>A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ju&}VPv9YqUva_?Zw6wIfwY9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~9(fUf00002bW%=J{{ZE;FiHRb03u05K~#9!VqjoI00ssI6b=Il
+nhXI!ivK}PU00000|NjF33?~3ZGNlzM00000NkvXXu0mjfMZ3C*
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/paginator.css b/pylons_app/public/js/yui/assets/skins/sam/paginator.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/paginator.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/picker_mask.png b/pylons_app/public/js/yui/assets/skins/sam/picker_mask.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..f8d91932b376af76ccfac030c12eb9fec7ee4c63
+GIT binary patch
+literal 12174
+zc$@)_FLBU`P)<h;3K|Lk000e1NJLTq006cC006cK1^@s6bntfs00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBVMAW1|)RCwC#
+zUE7x9IC4zr>_6|b&%Dfjpyv}j54LBIXFZqhE-_t{2r7|?ya1%Cs>h{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3gWkxHK%Fp4+8RMf$}i0&g=*$e&(C#qxaD0ZvpHl
+zv+I<EDo+IDQ$cjLM0zHOXC&753hXDaE5Gaa`~Et}u~=%TT;Y^Y{C<Ib`i10=`5*cq
+zwg?~noyured5?>6`Mm!BUmxWOUFGBaUp^pXA9e5eL-vl3cNcl?@AS6vgTG5D@?CMq
+zTi=Sx2mN33JO2+a9~-FUJu&myl|RHap8Fr(82g7GfB2M~pO3%P<NpL009r=Zt$joe
+QQ~&?~07*qoM6N<$f&<h~%m4rY
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/profilerviewer.css b/pylons_app/public/js/yui/assets/skins/sam/profilerviewer.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/profilerviewer.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/progressbar.css b/pylons_app/public/js/yui/assets/skins/sam/progressbar.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/progressbar.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/resize.css b/pylons_app/public/js/yui/assets/skins/sam/resize.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/resize.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-resize{position:relative;zoom:1;z-index:0;}.yui-resize-wrap{zoom:1;}.yui-draggable{cursor:move;}.yui-resize .yui-resize-handle{position:absolute;z-index:1;font-size:0;margin:0;padding:0;zoom:1;height:1px;width:1px;}.yui-resize .yui-resize-handle-br{height:5px;width:5px;bottom:0;right:0;cursor:se-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-bl{height:5px;width:5px;bottom:0;left:0;cursor:sw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tl{height:5px;width:5px;top:0;left:0;cursor:nw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tr{height:5px;width:5px;top:0;right:0;cursor:ne-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-r{width:5px;height:100%;top:0;right:0;cursor:e-resize;zoom:1;}.yui-resize .yui-resize-handle-l{height:100%;width:5px;top:0;left:0;cursor:w-resize;zoom:1;}.yui-resize .yui-resize-handle-b{width:100%;height:5px;bottom:0;right:0;cursor:s-resize;zoom:1;}.yui-resize .yui-resize-handle-t{width:100%;height:5px;top:0;right:0;cursor:n-resize;zoom:1;}.yui-resize-proxy{position:absolute;border:1px dashed #000;visibility:hidden;z-index:1000;}.yui-resize-hover .yui-resize-handle,.yui-resize-hidden .yui-resize-handle{opacity:0;filter:alpha(opacity=0);}.yui-resize-ghost{opacity:.5;filter:alpha(opacity=50);}.yui-resize-knob .yui-resize-handle{height:6px;width:6px;}.yui-resize-knob .yui-resize-handle-tr{right:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-tl{left:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-bl{left:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-br{right:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-t{left:45%;top:-3px;}.yui-resize-knob .yui-resize-handle-r{right:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-l{left:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-b{left:45%;bottom:-3px;}.yui-resize-status{position:absolute;top:-999px;left:-999px;padding:2px;font-size:80%;display:none;zoom:1;z-index:9999;}.yui-resize-status strong,.yui-resize-status em{font-weight:normal;font-style:normal;padding:1px;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle{background-color:#F2F2F2;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-l,.yui-skin-sam .yui-resize .yui-resize-handle-r,.yui-skin-sam .yui-resize .yui-resize-handle-l-active,.yui-skin-sam .yui-resize .yui-resize-handle-r-active{height:100%;zoom:1;}.yui-skin-sam .yui-resize-knob .yui-resize-handle{border:1px solid #808080;}.yui-skin-sam .yui-resize-hover .yui-resize-handle-active{opacity:1;filter:alpha(opacity=100);}.yui-skin-sam .yui-resize-proxy{border:1px dashed #426FD9;}.yui-skin-sam .yui-resize-status{border:1px solid #A6982B;border-top:1px solid #D4C237;background-color:#FFEE69;color:#000;}.yui-skin-sam .yui-resize-status strong,.yui-skin-sam .yui-resize-status em{float:left;display:block;clear:both;padding:1px;text-align:center;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize .yui-resize-handle-inner-l{background:transparent url(layout_sprite.png) no-repeat 0 -5px;height:16px;width:5px;position:absolute;top:45%;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize .yui-resize-handle-inner-b{background:transparent url(layout_sprite.png) no-repeat -20px 0;height:5px;width:16px;position:absolute;left:50%;}.yui-skin-sam .yui-resize .yui-resize-handle-br{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -62px;}.yui-skin-sam .yui-resize .yui-resize-handle-tr{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -42px;}.yui-skin-sam .yui-resize .yui-resize-handle-tl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -82px;}.yui-skin-sam .yui-resize .yui-resize-handle-bl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -23px;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br{background-image:none;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active{height:6px;width:6px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r{right:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b{bottom:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br{right:-8px;bottom:-8px;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/simpleeditor.css b/pylons_app/public/js/yui/assets/skins/sam/simpleeditor.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/simpleeditor.css
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
++.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
++.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/skin.css b/pylons_app/public/js/yui/assets/skins/sam/skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/skin.css
+@@ -0,0 +1,36 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
++.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
++.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-index:0;width:100%;height:100%;left:0;top:0;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;top:-1px;left:-1px;}.yui-calcontainer.multi .groupcal{z-index:1;float:left;position:relative;}.yui-calcontainer .title{position:relative;z-index:1;}.yui-calcontainer .close-icon{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calnavright{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calheader{position:relative;width:100%;text-align:center;}.yui-calcontainer .yui-cal-nav-mask{position:absolute;z-index:2;margin:0;padding:0;width:100%;height:100%;_width:0;_height:0;left:0;top:0;display:none;}.yui-calcontainer .yui-cal-nav{position:absolute;z-index:3;top:0;display:none;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{display:-moz-inline-box;display:inline-block;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{display:block;*display:inline-block;*overflow:visible;border:none;background-color:transparent;cursor:pointer;}.yui-calendar .calbody a:hover{background:inherit;}p#clear{clear:left;padding-top:10px;}.yui-skin-sam .yui-calcontainer{background-color:#f2f2f2;border:1px solid #808080;padding:10px;}.yui-skin-sam .yui-calcontainer.multi{padding:0 5px 0 5px;}.yui-skin-sam .yui-calcontainer.multi .groupcal{background-color:transparent;border:none;padding:10px 5px 10px 5px;margin:0;}.yui-skin-sam .yui-calcontainer .title{background:url(sprite.png) repeat-x 0 0;border-bottom:1px solid #ccc;font:100% sans-serif;color:#000;font-weight:bold;height:auto;padding:.4em;margin:0 -10px 10px -10px;top:0;left:0;text-align:left;}.yui-skin-sam .yui-calcontainer.multi .title{margin:0 -5px 0 -5px;}.yui-skin-sam .yui-calcontainer.withtitle{padding-top:0;}.yui-skin-sam .yui-calcontainer .calclose{background:url(sprite.png) no-repeat 0 -300px;width:25px;height:15px;top:.4em;right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar{border-spacing:0;border-collapse:collapse;font:100% sans-serif;text-align:center;margin:0;}.yui-skin-sam .yui-calendar .calhead{background:transparent;border:none;vertical-align:middle;padding:0;}.yui-skin-sam .yui-calendar .calheader{background:transparent;font-weight:bold;padding:0 0 .6em 0;text-align:center;}.yui-skin-sam .yui-calendar .calheader img{border:none;}.yui-skin-sam .yui-calendar .calnavleft{background:url(sprite.png) no-repeat 0 -450px;width:25px;height:15px;top:0;bottom:0;left:-10px;margin-left:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calnavright{background:url(sprite.png) no-repeat 0 -500px;width:25px;height:15px;top:0;bottom:0;right:-10px;margin-right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calweekdayrow{height:2em;}.yui-skin-sam .yui-calendar .calweekdayrow th{padding:0;border:none;}.yui-skin-sam .yui-calendar .calweekdaycell{color:#000;font-weight:bold;text-align:center;width:2em;}.yui-skin-sam .yui-calendar .calfoot{background-color:#f2f2f2;}.yui-skin-sam .yui-calendar .calrowhead,.yui-skin-sam .yui-calendar .calrowfoot{color:#a6a6a6;font-size:85%;font-style:normal;font-weight:normal;border:none;}.yui-skin-sam .yui-calendar .calrowhead{text-align:right;padding:0 2px 0 0;}.yui-skin-sam .yui-calendar .calrowfoot{text-align:left;padding:0 0 0 2px;}.yui-skin-sam .yui-calendar td.calcell{border:1px solid #ccc;background:#fff;padding:1px;height:1.6em;line-height:1.6em;text-align:center;white-space:nowrap;}.yui-skin-sam .yui-calendar td.calcell a{color:#06c;display:block;height:100%;text-decoration:none;}.yui-skin-sam .yui-calendar td.calcell.today{background-color:#000;}.yui-skin-sam .yui-calendar td.calcell.today a{background-color:#fff;}.yui-skin-sam .yui-calendar td.calcell.oom{background-color:#ccc;color:#a6a6a6;cursor:default;}.yui-skin-sam .yui-calendar td.calcell.selected{background-color:#fff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.selected a{background-color:#b3d4ff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.calcellhover{background-color:#426fd9;color:#fff;cursor:pointer;}.yui-skin-sam .yui-calendar td.calcell.calcellhover a{background-color:#426fd9;color:#fff;}.yui-skin-sam .yui-calendar td.calcell.previous{color:#e0e0e0;}.yui-skin-sam .yui-calendar td.calcell.restricted{text-decoration:line-through;}.yui-skin-sam .yui-calendar td.calcell.highlight1{background-color:#cf9;}.yui-skin-sam .yui-calendar td.calcell.highlight2{background-color:#9cf;}.yui-skin-sam .yui-calendar td.calcell.highlight3{background-color:#fcc;}.yui-skin-sam .yui-calendar td.calcell.highlight4{background-color:#cf9;}.yui-skin-sam .yui-calendar a.calnav{border:1px solid #f2f2f2;padding:0 4px;text-decoration:none;color:#000;zoom:1;}.yui-skin-sam .yui-calendar a.calnav:hover{background:url(sprite.png) repeat-x 0 0;border-color:#A0A0A0;cursor:pointer;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-calcontainer .yui-cal-nav{font-family:arial,helvetica,clean,sans-serif;font-size:93%;border:1px solid #808080;left:50%;margin-left:-7em;width:14em;padding:0;top:2.5em;background-color:#f2f2f2;}.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav{top:4.5em;}.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav{width:16em;margin-left:-8em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{padding:5px 10px 5px 10px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{text-align:center;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-e{margin-top:5px;padding:5px;background-color:#EDF5FF;border-top:1px solid black;display:none;}.yui-skin-sam .yui-calcontainer .yui-cal-nav label{display:block;font-weight:bold;}
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc{width:100%;_width:auto;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid{background-color:#FFEE69;border:1px solid #000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc{width:4em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{border:1px solid #808080;background:url(sprite.png) repeat-x 0 0;background-color:#ccc;margin:auto .15em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{padding:0 8px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default{border:1px solid #304369;background-color:#426fd9;background:url(sprite.png) repeat-x 0 -1400px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button{color:#fff;}
++.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
++.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
++.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel{position:relative;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0!important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(sprite.png) repeat-x 0 -200px;}.yui-skin-sam .yui-panel .bd{padding:10px;}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%;}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px;}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff;}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left;}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px;}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px;}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px;}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px;}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px;}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px;}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#D4C237 #A6982B #A6982B #A6982B;border-width:1px;border-style:solid;background-color:#FFEE69;}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto;}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000;}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12);}
++.yui-skin-sam .yui-dt-mask{position:absolute;z-index:9500;}.yui-dt-tmp{position:absolute;left:-9000px;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.yui-dt-scrollable .yui-dt-bd thead tr,.yui-dt-scrollable .yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-scrollable tbody{-moz-outline:none;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.yui-skin-sam thead .yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-resizerliner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}th.yui-dt-hidden .yui-dt-liner,td.yui-dt-hidden .yui-dt-liner,th.yui-dt-hidden .yui-dt-resizer{display:none;}.yui-dt-editor{position:absolute;z-index:9000;}.yui-skin-sam .yui-dt table{margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:separate;*border-collapse:collapse;border-spacing:0;border:1px solid #7F7F7F;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{color:#000;font-size:85%;font-weight:normal;font-style:italic;line-height:1;padding:1em 0;text-align:center;}.yui-skin-sam .yui-dt th{background:#D8D8DA url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yui-dt th,.yui-skin-sam .yui-dt th a{font-weight:normal;text-decoration:none;color:#000;vertical-align:bottom;}.yui-skin-sam .yui-dt th{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;}.yui-skin-sam .yui-dt tr.yui-dt-first td{border-top:1px solid #7F7F7F;}.yui-skin-sam .yui-dt th .yui-dt-liner{white-space:nowrap;}.yui-skin-sam .yui-dt-liner{margin:0;padding:0;padding:4px 10px 4px 10px;}.yui-skin-sam .yui-dt-coltarget{width:5px;background-color:red;}.yui-skin-sam .yui-dt td{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;text-align:left;}.yui-skin-sam .yui-dt-list td{border-right:none;}.yui-skin-sam .yui-dt-resizer{width:6px;}.yui-skin-sam .yui-dt-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-dt-message{background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable table{border:none;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td{border-bottom:1px solid #7F7F7F;}.yui-skin-sam th.yui-dt-asc,.yui-skin-sam th.yui-dt-desc{background:url(sprite.png) repeat-x 0 -100px;}.yui-skin-sam th.yui-dt-sortable .yui-dt-label{margin-right:10px;}.yui-skin-sam th.yui-dt-asc .yui-dt-liner{background:url(dt-arrow-up.png) no-repeat right;}.yui-skin-sam th.yui-dt-desc .yui-dt-liner{background:url(dt-arrow-dn.png) no-repeat right;}tbody .yui-dt-editable{cursor:pointer;}.yui-dt-editor{text-align:left;background-color:#F2F2F2;border:1px solid #808080;padding:6px;}.yui-dt-editor label{padding-left:4px;padding-right:6px;}.yui-dt-editor .yui-dt-button{padding-top:6px;text-align:right;}.yui-dt-editor .yui-dt-button button{background:url(sprite.png) repeat-x 0 0;border:1px solid #999;width:4em;height:1.8em;margin-left:6px;}.yui-dt-editor .yui-dt-button button.yui-dt-default{background:url(sprite.png) repeat-x 0 -1400px;background-color:#5584E0;border:1px solid #304369;color:#FFF;}.yui-dt-editor .yui-dt-button button:hover{background:url(sprite.png) repeat-x 0 -1300px;color:#000;}.yui-dt-editor .yui-dt-button button:active{background:url(sprite.png) repeat-x 0 -1700px;color:#000;}.yui-skin-sam tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam tr.yui-dt-odd{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc{background-color:#DBEAFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam th.yui-dt-highlighted,.yui-skin-sam th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam tr.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam th.yui-dt-selected,.yui-skin-sam th.yui-dt-selected a{background-color:#446CD7;}.yui-skin-sam tr.yui-dt-selected td,.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-list th.yui-dt-selected,.yui-skin-sam .yui-dt-list th.yui-dt-selected a{background-color:#446CD7;}
++.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-dt-paginator .yui-dt-first,.yui-skin-sam .yui-dt-paginator .yui-dt-last,.yui-skin-sam .yui-dt-paginator .yui-dt-selected{padding:2px 6px;}.yui-skin-sam .yui-dt-paginator a.yui-dt-first,.yui-skin-sam .yui-dt-paginator a.yui-dt-last{text-decoration:none;}.yui-skin-sam .yui-dt-paginator .yui-dt-previous,.yui-skin-sam .yui-dt-paginator .yui-dt-next{display:none;}.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff;}.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}
++.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
++.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
++.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
++.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
++.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;overflow:hidden;padding:0;margin:0;}.yui-layout-unit{height:50px;width:50px;padding:0;margin:0;float:none;z-index:0;}.yui-layout-unit-top{position:absolute;top:0;left:0;width:100%;}.yui-layout-unit-left{position:absolute;top:0;left:0;}.yui-layout-unit-right{position:absolute;top:0;right:0;}.yui-layout-unit-bottom{position:absolute;bottom:0;left:0;width:100%;}.yui-layout-unit-center{position:absolute;top:0;left:0;width:100%;}.yui-layout div.yui-layout-hd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout div.yui-layout-bd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout .yui-layout-noscroll div.yui-layout-bd{overflow:hidden;}.yui-layout .yui-layout-scroll div.yui-layout-bd{overflow:auto;}.yui-layout div.yui-layout-ft{position:absolute;bottom:0;left:0;width:100%;zoom:1;}.yui-layout .yui-layout-unit div.yui-layout-hd h2{text-align:left;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .close{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close{right:25px;}.yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#c0c0c0;display:none;}.yui-layout .yui-layout-clip .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-wrap{height:100%;width:100%;position:absolute;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy{border:none;font-size:0;margin:0;padding:0;}.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle{display:none;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy div{position:absolute;border:1px solid #808080;background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active{zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;position:absolute;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b{width:100%;bottom:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t{width:100%;top:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -160px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -140px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -200px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -120px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -220px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -240px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -260px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -180px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close{background:transparent url(layout_sprite.png) no-repeat -20px -100px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-hd{background:url(sprite.png) repeat-x 0 -1400px;border:1px solid #808080;}.yui-skin-sam .yui-layout{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2{font-weight:bold;color:#fff;padding:3px;margin:0;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd{border:1px solid #808080;border-bottom:none;border-top:none;*border-bottom-width:0;*border-top-width:0;background-color:#f2f2f2;text-align:left;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft{border-bottom:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd{border-top:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#EDF5FF;display:none;border:1px solid #808080;}.yui-skin-sam .yui-layout div.yui-layout-ft{border:1px solid #808080;border-top:none;*border-top-width:0;background-color:#f2f2f2;}.yui-skin-sam .yui-layout-unit .yui-resize-handle{background-color:transparent;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-b{right:0;bottom:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob{position:absolute;height:16px;width:6px;top:45%;left:0;display:block;background:transparent url(layout_sprite.png) no-repeat 0 -5px;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob{position:absolute;height:6px;width:16px;left:45%;background:transparent url(layout_sprite.png) no-repeat -20px 0;zoom:1;}
++.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
++.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubaritemlabel:visited{color:#000;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled,.yui-skin-sam .yuimenubaritemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel:visited{color:#000;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled,.yui-skin-sam .yuimenuitemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
++.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
++.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
++.yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
++.yui-resize{position:relative;zoom:1;z-index:0;}.yui-resize-wrap{zoom:1;}.yui-draggable{cursor:move;}.yui-resize .yui-resize-handle{position:absolute;z-index:1;font-size:0;margin:0;padding:0;zoom:1;height:1px;width:1px;}.yui-resize .yui-resize-handle-br{height:5px;width:5px;bottom:0;right:0;cursor:se-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-bl{height:5px;width:5px;bottom:0;left:0;cursor:sw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tl{height:5px;width:5px;top:0;left:0;cursor:nw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tr{height:5px;width:5px;top:0;right:0;cursor:ne-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-r{width:5px;height:100%;top:0;right:0;cursor:e-resize;zoom:1;}.yui-resize .yui-resize-handle-l{height:100%;width:5px;top:0;left:0;cursor:w-resize;zoom:1;}.yui-resize .yui-resize-handle-b{width:100%;height:5px;bottom:0;right:0;cursor:s-resize;zoom:1;}.yui-resize .yui-resize-handle-t{width:100%;height:5px;top:0;right:0;cursor:n-resize;zoom:1;}.yui-resize-proxy{position:absolute;border:1px dashed #000;visibility:hidden;z-index:1000;}.yui-resize-hover .yui-resize-handle,.yui-resize-hidden .yui-resize-handle{opacity:0;filter:alpha(opacity=0);}.yui-resize-ghost{opacity:.5;filter:alpha(opacity=50);}.yui-resize-knob .yui-resize-handle{height:6px;width:6px;}.yui-resize-knob .yui-resize-handle-tr{right:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-tl{left:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-bl{left:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-br{right:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-t{left:45%;top:-3px;}.yui-resize-knob .yui-resize-handle-r{right:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-l{left:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-b{left:45%;bottom:-3px;}.yui-resize-status{position:absolute;top:-999px;left:-999px;padding:2px;font-size:80%;display:none;zoom:1;z-index:9999;}.yui-resize-status strong,.yui-resize-status em{font-weight:normal;font-style:normal;padding:1px;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle{background-color:#F2F2F2;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-l,.yui-skin-sam .yui-resize .yui-resize-handle-r,.yui-skin-sam .yui-resize .yui-resize-handle-l-active,.yui-skin-sam .yui-resize .yui-resize-handle-r-active{height:100%;zoom:1;}.yui-skin-sam .yui-resize-knob .yui-resize-handle{border:1px solid #808080;}.yui-skin-sam .yui-resize-hover .yui-resize-handle-active{opacity:1;filter:alpha(opacity=100);}.yui-skin-sam .yui-resize-proxy{border:1px dashed #426FD9;}.yui-skin-sam .yui-resize-status{border:1px solid #A6982B;border-top:1px solid #D4C237;background-color:#FFEE69;color:#000;}.yui-skin-sam .yui-resize-status strong,.yui-skin-sam .yui-resize-status em{float:left;display:block;clear:both;padding:1px;text-align:center;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize .yui-resize-handle-inner-l{background:transparent url(layout_sprite.png) no-repeat 0 -5px;height:16px;width:5px;position:absolute;top:45%;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize .yui-resize-handle-inner-b{background:transparent url(layout_sprite.png) no-repeat -20px 0;height:5px;width:16px;position:absolute;left:50%;}.yui-skin-sam .yui-resize .yui-resize-handle-br{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -62px;}.yui-skin-sam .yui-resize .yui-resize-handle-tr{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -42px;}.yui-skin-sam .yui-resize .yui-resize-handle-tl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -82px;}.yui-skin-sam .yui-resize .yui-resize-handle-bl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -23px;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br{background-image:none;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active{height:6px;width:6px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r{right:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b{bottom:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br{right:-8px;bottom:-8px;}
++.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
++.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
++.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
++.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
++.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
++.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
++table.ygtvtable{margin-bottom:0;border:none;border-collapse:collapse;}td.ygtvcell{border:none;padding:0;}a.ygtvspacer{text-decoration:none;outline-style:none;display:block;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:18px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white;}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver;}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0;}.ygtv-highlight .ygtvcontent{padding-right:1em;}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0;}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat;}
++
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/slider.css b/pylons_app/public/js/yui/assets/skins/sam/slider.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/slider.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-active.png b/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-active.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..fa58c5030e76082c84e38342cf6722c723ad2fd2
+GIT binary patch
+literal 280
+zc$@(k0q6dSP)<h;3K|Lk000e1NJLTq000mG001%w0{{R3Vo9rR00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUyLQqUpMd<SX
+zy4e4Hn7HQg{{R30$KU_a=Kss$|Jv#QzuN!j^8du$|L5`l)#v}$=>N~-|K;%i-0c73
+z@c-iO|KRQa-|hd~QeFE1003M`L_t(|+U&?l5`sVg1i`WZK}Epr|6dhmytLs92=mel
+z9uoULP6;mwyM%qhIpHzkHQ|(SNO(*5TD8?y@wq9xG<+26t_AN^`$=39HtEMPCOjwP
+e%l`;(0R{kdKn;SADLBOd0000<MNUMnLSTZ{QG&k!
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-disabled.png b/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..0a6a82c6402848193044fcb9791e915161c890d3
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_T+f_2Q(s^I|Nnnag9j&p
+zg3KjBe!>6$Gh9E#3p9{H-P6S}q~camLV^=3&tj%#_Xa_x2_Xl57U&w-9pX85Q9;Im
+dv4Me^VIeE)+1pK9I)PdkJYD@<);T3K0RYcxInw|D
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-focus.png b/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-focus.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..167d71eb721ba9b85c6601f9077d5c39faa4ebd2
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_Tx)0S05bpo|DSu#^)isf
+zToU9L{Qp10^;5h+0~ypkT^vIyZY3ooII;39W@>hC5M-JVa^Poyu7TYlo?{mkWE>b9
+b7?>Frva+7N-L$0>sD;7P)z4*}Q$iB}D9ShR
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-hover.png b/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow-hover.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..167d71eb721ba9b85c6601f9077d5c39faa4ebd2
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_Tx)0S05bpo|DSu#^)isf
+zToU9L{Qp10^;5h+0~ypkT^vIyZY3ooII;39W@>hC5M-JVa^Poyu7TYlo?{mkWE>b9
+b7?>Frva+7N-L$0>sD;7P)z4*}Q$iB}D9ShR
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow.png b/pylons_app/public/js/yui/assets/skins/sam/split-button-arrow.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..b33a93ff2dc2039bd24e4ea3b75ecf4bb3295f84
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_TpJo1fXx5@|JyBHuocK+
+zE(!7r{{Nrh`YB$Zfeh-NE{-7;w~`VPoLG4lGc~(62r^9wIq<VU*TC)&&#{XNG7gLl
+b49pA*Sy|8CZraib)WYED>gTe~DWM4f1sXSq
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/sprite.png b/pylons_app/public/js/yui/assets/skins/sam/sprite.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..73634d6a22c4377060f49217b63f31b59fe22d51
+GIT binary patch
+literal 3745
+zc%0>z`Cro6_s8FWh@xnjC}wWaZYHIbTbY*Iq>foGSyNapWn!kFmW`U4woqn!xs_H^
+z<G$n;8n|LQsFh-h0xp1xfg~Vm^1+$;KE9v-;q(0E-pAwK$2sSodmpcJ?oBUG7X*AQ
+z8~^}>o9iKO#kd6kR6<lBidjPrZi8ab!#nxok6sMH#|B0P0}eqK&jcI0;Q~X0y@LaT
+zE??>hwgUhN;N^bIi9Rq$p-`5WmvK1U($do6;-XkAURYR=N~L3C6I>ooAQU=Y{KlD;
+zGg&M?pU-BGibNubM8aZ^ip3Izujy$%dvuIDE1#VeO$g;usmvjQE}EO0=JPv8<;)p5
+zZ)%D)BWLjCqu=Gd9Jx%kU~z)f&Xo6Y<t@W<`>@{Y*ROYv$>}_W3-*{$J|hq;EG%+G
+z^1(^@2$MCz;mBmN#Kc6F!sXc5`t|EMT%P&<qN%Cr!NDO0W4NdHGnY3-rw`N*$oc%4
+zMoQDHNa263rL}E%m|6M0hR2(dEi7Ps-|z4)n-hx<g!g^z>py_&w+?Kn{m{_ysZ%VG
+z>^<F7R9dz#lx7>;X?>Q;pHW01IB?;sP&g}8FuQ`n>K6Amrk;h0#fb@yL?Z2?^++r&
+z*|GXLIXN>o^=Ci(Z`t|ab*G$tMXS8LTt*`C3T+?%+5Cw%$$hnNioA8IVee%9MtbFz
+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k}?I!nMNs@+8B{4Ms)GN>)9Xi
+zsi_a*)RR_(0&7Q{p&X16fYEtM7P$vw>;W_rf)*&DpIpoAq_D1Y)G<*TQJ3LFjCwOh
+z!d4vOCA3sIg_#LqDj}G@2<BS^a{<A0*I?#qFohaSM@{BKO(sXv-U>+21}#NG<}az1
+zCwfDc?y1a|ubCC9BOL#ssRMku-o^E4+?Pew-REPGsAq8JMs?>MP&5;k(%nk&Yt7Si
+zP5?XaP(uHjVzS|1vJd<neK)M+e8i~~vd3Thq<b!cvF*c)ni11I&BK4eARi^W1^rD(
+z7YPj9h_kk-4H?=8L(W-CTqr{|;<>rE84}#S$PehHpZ)Py8_8weTw7u2W-A6Gx~6+C
+z=`;mNzZjKda6;hohI>O*%2;jiC!v^{>G8p@E5~*(cku1c%)7;=$JT<c)rCkHx=6z~
+zvepN>f1=?zB3v*~$-VOELb2tZk#@n#)d#L`+OWmJttpNFVAERsL}1UOuyGTwx?{Qk
+zF2`VQtuy?qUag`@Fq?$Z3+TJqHSf(*rIE|t3YDq=yS{=OcVDO2eMp&BBcMEYmNg4e
+z+D7L}8%pBdO8h}9N>%~3I?EGX`3(yN4AMM8(dZYKt32Iq+6B3gz3ymTrWwk5U;epy
+z^hM4?Ue>+8y9g80r1BJAFLM8>W+ZU(D9Z<aN?HbHnL`z^Hc>*AP=IEGa!%w}+-=1_
+O5O8zyJXGR{P5uvhO#S}=
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/sprite.psd b/pylons_app/public/js/yui/assets/skins/sam/sprite.psd
+new file mode 100644
+index 0000000000000000000000000000000000000000..fff2c3471308fed4c93ef4961ea1cd729b41bdca
+GIT binary patch
+literal 118162
+zc%1D$2|yG_w$(GkDd2&c7!pN-iWe{(aw$YXkQJiABbd!5K^PI`3WunhNZd{2Yx37s
+zcG-<bHXgZ@Br9w%vYL31OY@1c8qyw-0c8eIVSqud>H4p#XNCa*!5zeyp2t+zdv&~{
+zst@YDp7Nfva1mk<|B)bMz5<R;$Q+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2Z<2d`7#
+zHTds)XoDWgP&>$7Mm-K395MAmT!sFAMkIFy5pTrh`_^9@w2&h)sntduA(co3hZdSw
+zAO@q`m?1fmx!z-X=dFtGxbMd49XOEaS|?s@pm00zX~!CR)BxTJM-C)!rbh&|6_Ce}
+zS3sGD9^2rkp+~+w-y7dE&&4<rW8g?GUd^}yH9@Z$OfF&9KnBA98g)Gpyd5NgQb;Qh
+z(WD%aa(Sne?Uwf6g9c<IR&4?cAk;{$LDG7x?D1<@k8jEMVl1n*fo^2}mBWZs-0|g0
+z_*%WE8km1qjU?5eKRDkFer<X@Jemx)oW{{(u%$GP77vXcZE%OE(B4^e_m>v9zws#t
+lS5k7vQ`0NBnqJKt=#`zMDqPj++mCayS9n+-v>#Sp{|{OGX+Z!0
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/tabview.css b/pylons_app/public/js/yui/assets/skins/sam/tabview.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/tabview.css
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
++.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/treeview-loading.gif b/pylons_app/public/js/yui/assets/skins/sam/treeview-loading.gif
+new file mode 100644
+index 0000000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~bFNVvhk5(=Ea
+z%m8WzSeUFQ4T^%dW%4*wy2uOSwn+hvGP<x>6Zgn~&SNVIv=e~j`Ee2gM&ljzNaE{|
+zg9jdtnP&jZ(xj>|CxHmHy{3@d;+IB743dqh(~T1%{dqawdxTe)O%{-ph~^oU5zGK^
+gUFhip`cHyML%F6@PeWS|iqE2IQ_}qt9wfl+Z(4jT8UO$Q
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/treeview-sprite.gif b/pylons_app/public/js/yui/assets/skins/sam/treeview-sprite.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..8fb3f01377a229169938fb1af2c0877d8828dfee
+GIT binary patch
+literal 4326
+zc$@*|5E<`BNk%w1VG;niBJ=<N0001OZEaOm|7wM)fPjF(!NJnz|JCRJ*y#V->HppA
+z|KIKZ;^O4y=I80^>g(+6?eFj4?f>KM|K#xh=JEgV@$vHV^!4@i_V)Mp`T6?#`uqF)
+z|Ns900000000000A^8LW0012TEC2ui01^PWA^-*cU?+}bX_CaLu56dKMJ&&8S!{T&
+z;{|zVyNyP}^JR`lOa_A)YI>srb4tZrE>Kb7GQE1e*-pV?37F63OQkSyi7OQ}8g7Hw
+z?~lsk9xgl_4}pS%eGZ0)h<|+zjE#<reGHP5l#*d$G?^`%oSmMZprN9pq@|{(sHv)}
+ztgWuEu(7hUw6(UkxVgH!yuH4^z`?@9#Kp$P$jQpf%+1cv(9zP<)YaD4*xB0K+}+;a
+z;Njxq<mKk)=;`X~?CtLF@bU8V^!4`l`1$(#{Qds_00RmfNU)&6g9sBUT*$DY!-o(f
+zN}NcsqQ#3CGiuz(v7^V2AVZ2ANwTELlPLaEs$9vkrOTHvW6GRKv!>07FJR?dF`%c<
+zpFK+qpg^>!QKD@|3_Z#;sfeKxh(@I_HLBAN1EOlxI-%=?t63$8l@MX<Sg;Eg$T?Fs
+zXo>*~B&;<P0RmbDc=PI205*Z&zkvOMMS#HX0mFv{lNfNoz=6k*BZD<Sxw2)-SFr-!
+ze6zFX&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O8-rEof@i8`i}TBenHrk9$g
+znYyO$S)lRxrjMGXq5it1quQmLTBoN<sGZuTs|u>Any0V2r?HBtt!k*V%BZ*MsJRNM
+zr5dKYDyqLqs=;ciwW_GY>Z`>{smW@o%ZjPZs;SS)sRrt*(Tb|os;bj!tJeyv+bXNw
+zN~_swtlx^O<EpFW%B#m3r;$3K=_;w`3asxctno^$;i|0l%B=V5toaJ9`zo!Us;&KM
+ztpSUz|0=En%dH3NtqBXR1#7Pji?0u>uMx|y6YH<sd9mh+vGA#}p31STy0GL5vgRtX
+z=sK^+O0w{Zvhu33^jfh3>#_vvvDC`4CkwL(YqJWAvkWV<0IRbh>$4*Zv?WWk>e{PC
+z+pZ1Sr=|9%{_vBRF0_}&2n<M=CIV2kR(rKo+Xq;?wF02ETzj=%%e5T90bT0@Upuy0
+zYqnd9wrLv$0>HL!OSV?)wP*{sZL0-VJGOEQwrX3od&{?O`?Yi1w}RU<K2s7?i!e&K
+zFc9N}Oc;d{1GyD*224P?7=VRq!7)+bF;{>F7eEFUAToD=26qs;P;!Q(3ju2A1A%Y`
+zt*a$76NiQ{C3Yw#bO;GPfQLMzhlfiN0PwrO8@#_;0sx?dH~;`7P`phT1jsuA${R6C
+z5HZaw0svq!Q}DYOFuffB02!k(zk3DR3jmz^1-}cr;R^x3dk5)j2NrO?=nDYv8zm1A
+zzJdUAyfG8LhyVaJ;{f4%yNnRNx;qKlyS>6&z$H<@2AsUcy8+>=0}ZnS4a~p*U?abK
+z1mVjBz>C4yo4v{F1qJNE$veKm`?+M`zIG72rE9_ktTOaFzrPy@_B+4HYY4xazX0$D
+U{p-H~9KZ}Pzz8h7+YkZ(JNT^25dZ)H
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/treeview.css b/pylons_app/public/js/yui/assets/skins/sam/treeview.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/treeview.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++table.ygtvtable{margin-bottom:0;border:none;border-collapse:collapse;}td.ygtvcell{border:none;padding:0;}a.ygtvspacer{text-decoration:none;outline-style:none;display:block;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:18px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white;}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver;}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0;}.ygtv-highlight .ygtvcontent{padding-right:1em;}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0;}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat;}
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/wait.gif b/pylons_app/public/js/yui/assets/skins/sam/wait.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..471c1a4f93f2cabf0b3a85c3ff8e0a8aadefc548
+GIT binary patch
+literal 1100
+zc${<hbhEHb6k-r!I3mSRSy{er-I}9E4_8)}O_?%z>eMNV7cW}Be%-NShnFl_ynFY~
+zrAwFY+_}A?qO7B%?b4<5ZEY>nrcFC`?8wE7=QeCuKV{0KMT-{h+O^~2#q;g$t^fc3
+zXFvst|GE8KLxP<h16+;t444@~LO)qp85pD(bU^YTXE3m4E>P=B$((k&Xr1TmHOj7;
+zZn+tOC31fjMvD0+Mi{X6F$yJmTFClN?ebjMkSWu5F||4}b)Tf*_G+efSDrReCPPmZ
+zHHHT*E0jHoc6uHV&yeGnVs2(uuaT1Il#t@(4eRLYR}mJTG)+noVLKxOBZB}CGO#8C
+zZI^PLs8PAb-Ab!V>`db}ofk{vi{}2}ywqoIB*Ck}rkuKQf{M^}4WWw)>o_tKqXjBh
+zgPLY6_~_+2mFwk44@()19vSCTH;k89$}(KI^ATv5R85VPfIvEPH*>lQFRva}dsBe+
+z&RR4<qjGJymDi+W+eBKGEEXB|l>K3!l%Syi^z{{kQWaadbr+Ks9*i)&*kV?AbQe!T
+zbDB|SmyVba!-OuEfY+ug9rP!#{b)S)@PfcU77borDakfTDN)h1_Kq}V0Rik5gFHM-
+zWuivs8V@VGezh}A%QQ5WB^TBH6$g5liOqAeXV*amMuv5Qt&1w{7Pr4iJRs}B{Gegk
+z#g486D(%W!BNiBa;L&vSpYZ6DhfDGc=>P!%Db^NNDKW7$mTs0b6;V;#9=`Q?f=1`s
+z2rH(BW7{UR9NJ*!EA>cuNn?S7kOb=rH|10nOPO^Oofe*qFuvIRt?1~kZQ{HvLZXHe
+zOFUFu7cSuX!1U6=ega2DQ`*K0EdLlaL`9`I+c@hQ1KE1mQdPvnuv?r8ieZKc8kw_R
+zzOcBZz<=xWg2;K9zKatbcs#dDv$m>msF=>2pfvHChtfrnb*!36-3k?)L5&d$R)#E5
+zGR)lQp((PW#l~^h4Skj7dkYo@n3Pul?UG_|XP4sP$zbeb%uwmm#U0d-Cuq!E8)@Y>
+z@z^$o2C<5TjuXPJt29k;kdk0u;iY;tV}cm>^%oy6sI24EOzSqR;Eh^$ENNnwny^so
+zq)8qD?LQhpDZ8=8VR1kPO9PWerIdJ^czsh4D2jP_a0hji$V83EHLg~A-EL=Eo>^op
+zQjZGFoSD#;q9NsRNbzKnr=x-j*HKd@29x$TjaggS_A$Onu(?pPa*<o}l7J<0{8v)z
+k6cgV`2<_FInDL=fg@;Fqqm4sKSU7{JmnlP~7ih6H0K)`#-2eap
+
+diff --git a/pylons_app/public/js/yui/assets/skins/sam/yuitest.css b/pylons_app/public/js/yui/assets/skins/sam/yuitest.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/assets/skins/sam/yuitest.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
+diff --git a/pylons_app/public/js/yui/autocomplete/assets/autocomplete-core.css b/pylons_app/public/js/yui/autocomplete/assets/autocomplete-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/autocomplete/assets/autocomplete-core.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* This file intentionally left blank */
+diff --git a/pylons_app/public/js/yui/autocomplete/assets/skins/sam/autocomplete-skin.css b/pylons_app/public/js/yui/autocomplete/assets/skins/sam/autocomplete-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/autocomplete/assets/skins/sam/autocomplete-skin.css
+@@ -0,0 +1,57 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* styles for entire widget */
++.yui-skin-sam .yui-ac {
++    position:relative;font-family:arial;font-size:100%;
++}
++
++/* styles for input field */
++.yui-skin-sam .yui-ac-input {
++    position:absolute;width:100%;
++}
++
++/* styles for results container */
++.yui-skin-sam .yui-ac-container {
++    position:absolute;top:1.6em;width:100%;
++}
++
++/* styles for header/body/footer wrapper within container */
++.yui-skin-sam .yui-ac-content {
++    position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;
++}
++
++/* styles for container shadow */
++.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;
++}
++
++/* styles for container iframe */
++.yui-skin-sam .yui-ac iframe {
++    opacity:0;filter: alpha(opacity=0);
++    padding-right:.3em; padding-bottom:.3em; /* Bug 2026798: extend iframe to shim the shadow */
++}
++
++/* styles for results list */
++.yui-skin-sam .yui-ac-content ul{
++    margin:0;padding:0;width:100%;
++}
++
++/* styles for result item */
++.yui-skin-sam .yui-ac-content li {
++    margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;
++    zoom:1; /* For IE to trigger mouse events on LI */
++}
++
++/* styles for prehighlighted result item */
++.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight {
++    background:#B3D4FF;
++}
++
++/* styles for highlighted result item */
++.yui-skin-sam .yui-ac-content li.yui-ac-highlight {
++    background:#426FD9;color:#FFF;
++}
+diff --git a/pylons_app/public/js/yui/autocomplete/assets/skins/sam/autocomplete.css b/pylons_app/public/js/yui/autocomplete/assets/skins/sam/autocomplete.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/autocomplete/assets/skins/sam/autocomplete.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-ac{position:relative;font-family:arial;font-size:100%;}.yui-skin-sam .yui-ac-input{position:absolute;width:100%;}.yui-skin-sam .yui-ac-container{position:absolute;top:1.6em;width:100%;}.yui-skin-sam .yui-ac-content{position:absolute;width:100%;border:1px solid #808080;background:#fff;overflow:hidden;z-index:9050;}.yui-skin-sam .yui-ac-shadow{position:absolute;margin:.3em;width:100%;background:#000;-moz-opacity:.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.yui-skin-sam .yui-ac iframe{opacity:0;filter:alpha(opacity=0);padding-right:.3em;padding-bottom:.3em;}.yui-skin-sam .yui-ac-content ul{margin:0;padding:0;width:100%;}.yui-skin-sam .yui-ac-content li{margin:0;padding:2px 5px;cursor:default;white-space:nowrap;list-style:none;zoom:1;}.yui-skin-sam .yui-ac-content li.yui-ac-prehighlight{background:#B3D4FF;}.yui-skin-sam .yui-ac-content li.yui-ac-highlight{background:#426FD9;color:#FFF;}
+diff --git a/pylons_app/public/js/yui/autocomplete/autocomplete-debug.js b/pylons_app/public/js/yui/autocomplete/autocomplete-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/autocomplete/autocomplete-debug.js
+@@ -0,0 +1,3009 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/////////////////////////////////////////////////////////////////////////////
++//
++// YAHOO.widget.DataSource Backwards Compatibility
++//
++/////////////////////////////////////////////////////////////////////////////
++
++YAHOO.widget.DS_JSArray = YAHOO.util.LocalDataSource;
++
++YAHOO.widget.DS_JSFunction = YAHOO.util.FunctionDataSource;
++
++YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) {
++    var DS = new YAHOO.util.XHRDataSource(sScriptURI, oConfigs);
++    DS._aDeprecatedSchema = aSchema;
++    return DS;
++};
++
++YAHOO.widget.DS_ScriptNode = function(sScriptURI, aSchema, oConfigs) {
++    var DS = new YAHOO.util.ScriptNodeDataSource(sScriptURI, oConfigs);
++    DS._aDeprecatedSchema = aSchema;
++    return DS;
++};
++
++YAHOO.widget.DS_XHR.TYPE_JSON = YAHOO.util.DataSourceBase.TYPE_JSON;
++YAHOO.widget.DS_XHR.TYPE_XML = YAHOO.util.DataSourceBase.TYPE_XML;
++YAHOO.widget.DS_XHR.TYPE_FLAT = YAHOO.util.DataSourceBase.TYPE_TEXT;
++
++// TODO: widget.DS_ScriptNode.scriptCallbackParam
++
++
++
++ /**
++ * The AutoComplete control provides the front-end logic for text-entry suggestion and
++ * completion functionality.
++ *
++ * @module autocomplete
++ * @requires yahoo, dom, event, datasource
++ * @optional animation
++ * @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 && YAHOO.lang.isFunction(oDataSource.sendRequest)) {
++            this.dataSource = oDataSource;
++        }
++        else {
++            YAHOO.log("Could not instantiate AutoComplete due to an invalid DataSource", "error", this.toString());
++            return;
++        }
++
++        // YAHOO.widget.DataSource schema backwards compatibility
++        // Converted deprecated schema into supported schema
++        // First assume key data is held in position 0 of results array
++        this.key = 0;
++        var schema = oDataSource.responseSchema;
++        // An old school schema has been defined in the deprecated DataSource constructor
++        if(oDataSource._aDeprecatedSchema) {
++            var aDeprecatedSchema = oDataSource._aDeprecatedSchema;
++            if(YAHOO.lang.isArray(aDeprecatedSchema)) {
++                
++                if((oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_JSON) || 
++                (oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_UNKNOWN)) { // Used to default to unknown
++                    // Store the resultsList
++                    schema.resultsList = aDeprecatedSchema[0];
++                    // Store the key
++                    this.key = aDeprecatedSchema[1];
++                    // Only resultsList and key are defined, so grab all the data
++                    schema.fields = (aDeprecatedSchema.length < 3) ? null : aDeprecatedSchema.slice(1);
++                }
++                else if(oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_XML) {
++                    schema.resultNode = aDeprecatedSchema[0];
++                    this.key = aDeprecatedSchema[1];
++                    schema.fields = aDeprecatedSchema.slice(1);
++                }                
++                else if(oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_TEXT) {
++                    schema.recordDelim = aDeprecatedSchema[0];
++                    schema.fieldDelim = aDeprecatedSchema[1];
++                }                
++                oDataSource.responseSchema = schema;
++            }
++        }
++        
++        // 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;
++        }
++
++        // Default applyLocalFilter setting is to enable for local sources
++        if(this.dataSource.dataType === YAHOO.util.DataSourceBase.TYPE_LOCAL) {
++            this.applyLocalFilter = true;
++        }
++        
++        // 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._initContainerEl();
++        this._initProps();
++        this._initListEl();
++        this._initContainerHelperEls();
++
++        // Set up events
++        var oSelf = this;
++        var elTextbox = this._elTextbox;
++
++        // 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(elContainer,"mouseover",oSelf._onContainerMouseover,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"mouseout",oSelf._onContainerMouseout,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"click",oSelf._onContainerClick,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"scroll",oSelf._onContainerScroll,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"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.containerPopulateEvent = new YAHOO.util.CustomEvent("containerPopulate", 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);
++        this.textboxChangeEvent = new YAHOO.util.CustomEvent("textboxChange", 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;
++
++/**
++ * By default, results from local DataSources will pass through the filterResults
++ * method to apply a client-side matching algorithm. 
++ * 
++ * @property applyLocalFilter
++ * @type Boolean
++ * @default true for local arrays and json, otherwise false
++ */
++YAHOO.widget.AutoComplete.prototype.applyLocalFilter = null;
++
++/**
++ * When applyLocalFilter is true, the local filtering algorthim can have case sensitivity
++ * enabled. 
++ * 
++ * @property queryMatchCase
++ * @type Boolean
++ * @default false
++ */
++YAHOO.widget.AutoComplete.prototype.queryMatchCase = false;
++
++/**
++ * When applyLocalFilter is true, results can  be locally filtered to return
++ * matching strings that "contain" the query string rather than simply "start with"
++ * the query string.
++ * 
++ * @property queryMatchContains
++ * @type Boolean
++ * @default false
++ */
++YAHOO.widget.AutoComplete.prototype.queryMatchContains = false;
++
++/**
++ * Enables query subset matching. When the DataSource's cache is enabled 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.AutoComplete.prototype.queryMatchSubset = false;
++
++/**
++ * 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. If 
++ * typeAhead is also enabled, this value must always be less than the typeAheadDelay
++ * in order to avoid certain race conditions. 
++ *
++ * @property queryDelay
++ * @type Number
++ * @default 0.2
++ */
++YAHOO.widget.AutoComplete.prototype.queryDelay = 0.2;
++
++/**
++ * If typeAhead is true, number of seconds to delay before updating input with
++ * typeAhead value. In order to prevent certain race conditions, this value must
++ * always be greater than the queryDelay.
++ *
++ * @property typeAheadDelay
++ * @type Number
++ * @default 0.5
++ */
++YAHOO.widget.AutoComplete.prototype.typeAheadDelay = 0.5;
++
++/**
++ * When IME usage is detected or interval detection is explicitly enabled,
++ * AutoComplete will detect the input value at the given interval and send a
++ * query if the value has changed.
++ *
++ * @property queryInterval
++ * @type Number
++ * @default 500
++ */
++YAHOO.widget.AutoComplete.prototype.queryInterval = 500;
++
++/**
++ * 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;
++
++/**
++ * If autohighlight is enabled, whether or not the input field should be automatically updated
++ * with the first query result as the user types, auto-selecting the substring portion
++ * of the first result that the user has not yet 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;
++
++/**
++ * Enabling this feature prevents the toggling of the container to a collapsed state.
++ * Setting to true does not automatically trigger the opening of the container.
++ * Implementers are advised to pre-load the container with an explicit "sendQuery()" call.   
++ *
++ * @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;
++
++/**
++ * Whether or not the input field should be updated with selections.
++ *
++ * @property suppressInputUpdate
++ * @type Boolean
++ * @default false
++ */
++YAHOO.widget.AutoComplete.prototype.suppressInputUpdate = false;
++
++/**
++ * For backward compatibility to pre-2.6.0 formatResults() signatures, setting
++ * resultsTypeList to true will take each object literal result returned by
++ * DataSource and flatten into an array.  
++ *
++ * @property resultTypeList
++ * @type Boolean
++ * @default true
++ */
++YAHOO.widget.AutoComplete.prototype.resultTypeList = true;
++
++/**
++ * For XHR DataSources, AutoComplete will automatically insert a "?" between the server URI and 
++ * the "query" param/value pair. To prevent this behavior, implementers should
++ * set this value to false. To more fully customize the query syntax, implementers
++ * should override the generateRequest() method. 
++ *
++ * @property queryQuestionMark
++ * @type Boolean
++ * @default true
++ */
++YAHOO.widget.AutoComplete.prototype.queryQuestionMark = true;
++
++/**
++ * If true, before each time the container expands, the container element will be
++ * positioned to snap to the bottom-left corner of the input element. If
++ * autoSnapContainer is set to false, this positioning will not be done.  
++ *
++ * @property autoSnapContainer
++ * @type Boolean
++ * @default true
++ */
++YAHOO.widget.AutoComplete.prototype.autoSnapContainer = true;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// 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 DOM reference to input element.
++ *
++ * @method getInputEl
++ * @return {HTMLELement} DOM reference to input element.
++ */
++YAHOO.widget.AutoComplete.prototype.getInputEl = function() {
++    return this._elTextbox;
++};
++
++ /**
++ * Returns DOM reference to container element.
++ *
++ * @method getContainerEl
++ * @return {HTMLELement} DOM reference to container element.
++ */
++YAHOO.widget.AutoComplete.prototype.getContainerEl = function() {
++    return this._elContainer;
++};
++
++ /**
++ * Returns true if widget instance is currently active.
++ *
++ * @method isFocused
++ * @return {Boolean} Returns true if widget instance is currently active.
++ */
++YAHOO.widget.AutoComplete.prototype.isFocused = function() {
++    return this._bFocused;
++};
++
++ /**
++ * 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 &lt;ul&gt; element that displays query results within the results container.
++ *
++ * @method getListEl
++ * @return {HTMLElement[]} Reference to &lt;ul&gt; element within the results container.
++ */
++YAHOO.widget.AutoComplete.prototype.getListEl = function() {
++    return this._elList;
++};
++
++/**
++ * Public accessor to the matching string associated with a given &lt;li&gt; result.
++ *
++ * @method getListItemMatch
++ * @param elListItem {HTMLElement} Reference to &lt;LI&gt; element.
++ * @return {String} Matching string.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItemMatch = function(elListItem) {
++    if(elListItem._sResultMatch) {
++        return elListItem._sResultMatch;
++    }
++    else {
++        return null;
++    }
++};
++
++/**
++ * Public accessor to the result data associated with a given &lt;li&gt; result.
++ *
++ * @method getListItemData
++ * @param elListItem {HTMLElement} Reference to &lt;LI&gt; element.
++ * @return {Object} Result data.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItemData = function(elListItem) {
++    if(elListItem._oResultData) {
++        return elListItem._oResultData;
++    }
++    else {
++        return null;
++    }
++};
++
++/**
++ * Public accessor to the index of the associated with a given &lt;li&gt; result.
++ *
++ * @method getListItemIndex
++ * @param elListItem {HTMLElement} Reference to &lt;LI&gt; element.
++ * @return {Number} Index.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItemIndex = function(elListItem) {
++    if(YAHOO.lang.isNumber(elListItem._nItemIndex)) {
++        return elListItem._nItemIndex;
++    }
++    else {
++        return null;
++    }
++};
++
++/**
++ * 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 = "";
++        }
++        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 = "";
++        }
++        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;
++        YAHOO.util.Event.purgeElement(elBody, true);
++        if(sBody) {
++            elBody.innerHTML = sBody;
++            elBody.style.display = "";
++        }
++        else {
++            elBody.innerHTML = "";
++            elBody.style.display = "none";
++        }
++        this._elList = null;
++    }
++};
++
++/**
++* A function that converts an AutoComplete query into a request value which is then
++* passed to the DataSource's sendRequest method in order to retrieve data for 
++* the query. By default, returns a String with the syntax: "query={query}"
++* Implementers can customize this method for custom request syntaxes.
++* 
++* @method generateRequest
++* @param sQuery {String} Query string
++* @return {MIXED} Request
++*/
++YAHOO.widget.AutoComplete.prototype.generateRequest = function(sQuery) {
++    var dataType = this.dataSource.dataType;
++    
++    // Transform query string in to a request for remote data
++    // By default, local data doesn't need a transformation, just passes along the query as is.
++    if(dataType === YAHOO.util.DataSourceBase.TYPE_XHR) {
++        // By default, XHR GET requests look like "{scriptURI}?{scriptQueryParam}={sQuery}&{scriptQueryAppend}"
++        if(!this.dataSource.connMethodPost) {
++            sQuery = (this.queryQuestionMark ? "?" : "") + (this.dataSource.scriptQueryParam || "query") + "=" + sQuery + 
++                (this.dataSource.scriptQueryAppend ? ("&" + this.dataSource.scriptQueryAppend) : "");        
++        }
++        // By default, XHR POST bodies are sent to the {scriptURI} like "{scriptQueryParam}={sQuery}&{scriptQueryAppend}"
++        else {
++            sQuery = (this.dataSource.scriptQueryParam || "query") + "=" + sQuery + 
++                (this.dataSource.scriptQueryAppend ? ("&" + this.dataSource.scriptQueryAppend) : "");
++        }
++    }
++    // By default, remote script node requests look like "{scriptURI}&{scriptCallbackParam}={callbackString}&{scriptQueryParam}={sQuery}&{scriptQueryAppend}"
++    else if(dataType === YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE) {
++        sQuery = "&" + (this.dataSource.scriptQueryParam || "query") + "=" + sQuery + 
++            (this.dataSource.scriptQueryAppend ? ("&" + this.dataSource.scriptQueryAppend) : "");    
++    }
++    
++    return sQuery;
++};
++
++/**
++ * Makes query request to the DataSource.
++ *
++ * @method sendQuery
++ * @param sQuery {String} Query string.
++ */
++YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
++    // Activate focus for a new interaction
++    this._bFocused = true;
++    
++    // Adjust programatically sent queries to look like they were input by user
++    // when delimiters are enabled
++    var newQuery = (this.delimChar) ? this._elTextbox.value + sQuery : sQuery;
++    this._sendQuery(newQuery);
++};
++
++/**
++ * Snaps container to bottom-left corner of input element
++ *
++ * @method snapContainer
++ */
++YAHOO.widget.AutoComplete.prototype.snapContainer = function() {
++    var oTextbox = this._elTextbox,
++        pos = YAHOO.util.Dom.getXY(oTextbox);
++    pos[1] += YAHOO.util.Dom.get(oTextbox).offsetHeight + 2;
++    YAHOO.util.Dom.setXY(this._elContainer,pos);
++};
++
++/**
++ * Expands container.
++ *
++ * @method expandContainer
++ */
++YAHOO.widget.AutoComplete.prototype.expandContainer = function() {
++    this._toggleContainer(true);
++};
++
++/**
++ * Collapses container.
++ *
++ * @method collapseContainer
++ */
++YAHOO.widget.AutoComplete.prototype.collapseContainer = function() {
++    this._toggleContainer(false);
++};
++
++/**
++ * Clears entire list of suggestions.
++ *
++ * @method clearList
++ */
++YAHOO.widget.AutoComplete.prototype.clearList = function() {
++    var allItems = this._elList.childNodes,
++        i=allItems.length-1;
++    for(; i>-1; i--) {
++          allItems[i].style.display = "none";
++    }
++};
++
++/**
++ * Handles subset matching for when queryMatchSubset is enabled.
++ *
++ * @method getSubsetMatches
++ * @param sQuery {String} Query string.
++ * @return {Object} oParsedResponse or null. 
++ */
++YAHOO.widget.AutoComplete.prototype.getSubsetMatches = function(sQuery) {
++    var subQuery, oCachedResponse, subRequest;
++    // Loop through substrings of each cached element's query property...
++    for(var i = sQuery.length; i >= this.minQueryLength ; i--) {
++        subRequest = this.generateRequest(sQuery.substr(0,i));
++        this.dataRequestEvent.fire(this, subQuery, subRequest);
++        YAHOO.log("Searching for query subset \"" + subQuery + "\" in cache", "info", this.toString());
++        
++        // If a substring of the query is found in the cache
++        oCachedResponse = this.dataSource.getCachedResponse(subRequest);
++        if(oCachedResponse) {
++            YAHOO.log("Found match for query subset \"" + subQuery + "\": " + YAHOO.lang.dump(oCachedResponse), "info", this.toString());
++            return this.filterResults.apply(this.dataSource, [sQuery, oCachedResponse, oCachedResponse, {scope:this}]);
++        }
++    }
++    YAHOO.log("Did not find subset match for query subset \"" + sQuery + "\"" , "info", this.toString());
++    return null;
++};
++
++/**
++ * Executed by DataSource (within DataSource scope via doBeforeParseData()) to
++ * handle responseStripAfter cleanup.
++ *
++ * @method preparseRawResponse
++ * @param sQuery {String} Query string.
++ * @return {Object} oParsedResponse or null. 
++ */
++YAHOO.widget.AutoComplete.prototype.preparseRawResponse = function(oRequest, oFullResponse, oCallback) {
++    var nEnd = ((this.responseStripAfter !== "") && (oFullResponse.indexOf)) ?
++        oFullResponse.indexOf(this.responseStripAfter) : -1;
++    if(nEnd != -1) {
++        oFullResponse = oFullResponse.substring(0,nEnd);
++    }
++    return oFullResponse;
++};
++
++/**
++ * Executed by DataSource (within DataSource scope via doBeforeCallback()) to
++ * filter results through a simple client-side matching algorithm. 
++ *
++ * @method filterResults
++ * @param sQuery {String} Original request.
++ * @param oFullResponse {Object} Full response object.
++ * @param oParsedResponse {Object} Parsed response object.
++ * @param oCallback {Object} Callback object. 
++ * @return {Object} Filtered response object.
++ */
++
++YAHOO.widget.AutoComplete.prototype.filterResults = function(sQuery, oFullResponse, oParsedResponse, oCallback) {
++    // If AC has passed a query string value back to itself, grab it
++    if(oCallback && oCallback.argument && oCallback.argument.query) {
++        sQuery = oCallback.argument.query;
++    }
++
++    // Only if a query string is available to match against
++    if(sQuery && sQuery !== "") {
++        // First make a copy of the oParseResponse
++        oParsedResponse = YAHOO.widget.AutoComplete._cloneObject(oParsedResponse);
++        
++        var oAC = oCallback.scope,
++            oDS = this,
++            allResults = oParsedResponse.results, // the array of results
++            filteredResults = [], // container for filtered results,
++            nMax = oAC.maxResultsDisplayed, // max to find
++            bMatchCase = (oDS.queryMatchCase || oAC.queryMatchCase), // backward compat
++            bMatchContains = (oDS.queryMatchContains || oAC.queryMatchContains); // backward compat
++            
++        // Loop through each result object...
++        for(var i=0, len=allResults.length; i<len; i++) {
++            var oResult = allResults[i];
++
++            // Grab the data to match against from the result object...
++            var sResult = null;
++            
++            // Result object is a simple string already
++            if(YAHOO.lang.isString(oResult)) {
++                sResult = oResult;
++            }
++            // Result object is an array of strings
++            else if(YAHOO.lang.isArray(oResult)) {
++                sResult = oResult[0];
++            
++            }
++            // Result object is an object literal of strings
++            else if(this.responseSchema.fields) {
++                var key = this.responseSchema.fields[0].key || this.responseSchema.fields[0];
++                sResult = oResult[key];
++            }
++            // Backwards compatibility
++            else if(this.key) {
++                sResult = oResult[this.key];
++            }
++            
++            if(YAHOO.lang.isString(sResult)) {
++                
++                var sKeyIndex = (bMatchCase) ?
++                sResult.indexOf(decodeURIComponent(sQuery)) :
++                sResult.toLowerCase().indexOf(decodeURIComponent(sQuery).toLowerCase());
++
++                // 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 the match
++                    filteredResults.push(oResult);
++                }
++            }
++            
++            // Filter no more if maxResultsDisplayed is reached
++            if(len>nMax && filteredResults.length===nMax) {
++                break;
++            }
++        }
++        oParsedResponse.results = filteredResults;
++        YAHOO.log("Filtered " + filteredResults.length + " results against query \""  + sQuery + "\": " + YAHOO.lang.dump(filteredResults), "info", this.toString());
++    }
++    else {
++        YAHOO.log("Did not filter results against query", "info", this.toString());
++    }
++    
++    return oParsedResponse;
++};
++
++/**
++ * Handles response for display. This is the callback function method passed to
++ * YAHOO.util.DataSourceBase#sendRequest so results from the DataSource are
++ * returned to the AutoComplete instance.
++ *
++ * @method handleResponse
++ * @param sQuery {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++YAHOO.widget.AutoComplete.prototype.handleResponse = function(sQuery, oResponse, oPayload) {
++    if((this instanceof YAHOO.widget.AutoComplete) && this._sName) {
++        this._populateList(sQuery, oResponse, oPayload);
++    }
++};
++
++/**
++ * Overridable method called before container is loaded with result data.
++ *
++ * @method doBeforeLoadData
++ * @param sQuery {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ * @return {Boolean} Return true to continue loading data, false to cancel.
++ */
++YAHOO.widget.AutoComplete.prototype.doBeforeLoadData = function(sQuery, oResponse, oPayload) {
++    return true;
++};
++
++/**
++ * Overridable method that returns HTML markup for one result to be populated
++ * as innerHTML of an &lt;LI&gt; element. 
++ *
++ * @method formatResult
++ * @param oResultData {Object} Result data object.
++ * @param sQuery {String} The corresponding query string.
++ * @param sResultMatch {HTMLElement} The current query string. 
++ * @return {String} HTML markup of formatted result data.
++ */
++YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultData, sQuery, sResultMatch) {
++    var sMarkup = (sResultMatch) ? sResultMatch : "";
++    return sMarkup;
++};
++
++/**
++ * 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;
++};
++
++
++/**
++ * 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 myAutoComplete = 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.containerPopulateEvent.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();
++    this.textboxChangeEvent.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 request to the DataSource.
++ * 
++ * @event dataRequestEvent
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ * @param sQuery {String} The query string. 
++ * @param oRequest {Object} The request.
++ */
++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.
++ * @param oResponse {Object} The response object, if available.
++ */
++YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null;
++
++/**
++ * Fired when the results container is populated.
++ *
++ * @event containerPopulateEvent
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ */
++YAHOO.widget.AutoComplete.prototype.containerPopulateEvent = 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.
++ * @param sSelection {String} The selected string.  
++ */
++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.
++ * @param sClearedValue {String} The cleared value (including delimiters if applicable). 
++ */
++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;
++
++/**
++ * Fired when the input field value has changed when it loses focus.
++ *
++ * @event textboxChangeEvent
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ */
++YAHOO.widget.AutoComplete.prototype.textboxChangeEvent = 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 widget instance is currently active. 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 = false;
++
++/**
++ * 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;
++
++/**
++ * Internal reference to &lt;ul&gt; elements that contains query results within the
++ * results container.
++ *
++ * @property _elList
++ * @type HTMLElement
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._elList = null;
++
++/*
++ * Array of &lt;li&gt; elements references that contain query results within the
++ * results container.
++ *
++ * @property _aListItemEls
++ * @type HTMLElement[]
++ * @private
++ */
++//YAHOO.widget.AutoComplete.prototype._aListItemEls = 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;
++
++/**
++ * Selections from previous queries (for saving delimited queries).
++ *
++ * @property _sPastSelections
++ * @type String
++ * @default "" 
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._sPastSelections = "";
++
++/**
++ * Stores initial input value used to determine if textboxChangeEvent should be fired.
++ *
++ * @property _sInitInputValue
++ * @type String
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._sInitInputValue = null;
++
++/**
++ * Pointer to the currently highlighted &lt;li&gt; element in the container.
++ *
++ * @property _elCurListItem
++ * @type HTMLElement
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._elCurListItem = null;
++
++/**
++ * Pointer to the currently pre-highlighted &lt;li&gt; element in the container.
++ *
++ * @property _elCurPrehighlightItem
++ * @type HTMLElement
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._elCurPrehighlightItem = 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;
++
++/**
++ * TypeAhead delay timeout ID.
++ *
++ * @property _nTypeAheadDelayID
++ * @type Number
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID = -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 typeAheadDelay = this.typeAheadDelay;
++    if(!YAHOO.lang.isNumber(typeAheadDelay) || (typeAheadDelay < 0)) {
++        this.typeAheadDelay = 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 _initContainerHelperEls
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._initContainerHelperEls = function() {
++    if(this.useShadow && !this._elShadow) {
++        var elShadow = document.createElement("div");
++        elShadow.className = "yui-ac-shadow";
++        elShadow.style.width = 0;
++        elShadow.style.height = 0;
++        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 = 0;
++        elIFrame.style.height = 0;
++        elIFrame.style.padding = 0;
++        elIFrame.tabIndex = -1;
++        elIFrame.role = "presentation";
++        elIFrame.title = "Presentational iframe shim";
++        this._elIFrame = this._elContainer.appendChild(elIFrame);
++    }
++};
++
++/**
++ * Initializes the results container once at object creation
++ *
++ * @method _initContainerEl
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._initContainerEl = function() {
++    YAHOO.util.Dom.addClass(this._elContainer, "yui-ac-container");
++    
++    if(!this._elContent) {
++        // The elContent div is assigned DOM listeners and 
++        // 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 _initListEl
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._initListEl = function() {
++    var nListLength = this.maxResultsDisplayed,
++        elList = this._elList || document.createElement("ul"),
++        elListItem;
++    
++    while(elList.childNodes.length < nListLength) {
++        elListItem = document.createElement("li");
++        elListItem.style.display = "none";
++        elListItem._nItemIndex = elList.childNodes.length;
++        elList.appendChild(elListItem);
++    }
++    if(!this._elList) {
++        var elBody = this._elBody;
++        YAHOO.util.Event.purgeElement(elBody, true);
++        elBody.innerHTML = "";
++        this._elList = elBody.appendChild(elList);
++    }
++    
++    this._elBody.style.display = "";
++};
++
++/**
++ * Focuses input field.
++ *
++ * @method _focus
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._focus = function() {
++    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
++    var oSelf = this;
++    setTimeout(function() {
++        try {
++            oSelf._elTextbox.focus();
++        }
++        catch(e) {
++        }
++    },0);
++};
++
++/**
++ * Enables interval detection for IME support.
++ *
++ * @method _enableIntervalDetection
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() {
++    var oSelf = this;
++    if(!oSelf._queryInterval && oSelf.queryInterval) {
++        oSelf._queryInterval = setInterval(function() { oSelf._onInterval(); }, oSelf.queryInterval);
++        YAHOO.log("Interval set", "info", this.toString());
++    }
++};
++
++/**
++ * Enables interval detection for a less performant but brute force mechanism to
++ * detect input values at an interval set by queryInterval and send queries if
++ * input value has changed. Needed to support right-click+paste or shift+insert
++ * edge cases. Please note that intervals are cleared at the end of each interaction,
++ * so enableIntervalDetection must be called for each new interaction. The
++ * recommended approach is to call it in response to textboxFocusEvent.
++ *
++ * @method enableIntervalDetection
++ */
++YAHOO.widget.AutoComplete.prototype.enableIntervalDetection =
++    YAHOO.widget.AutoComplete.prototype._enableIntervalDetection;
++
++/**
++ * Enables query triggers based on text input detection by intervals (rather
++ * than by key events).
++ *
++ * @method _onInterval
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._onInterval = 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 _clearInterval
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._clearInterval = function() {
++    if(this._queryInterval) {
++        clearInterval(this._queryInterval);
++        this._queryInterval = null;
++        YAHOO.log("Interval cleared", "info", this.toString());
++    }
++};
++
++/**
++ * 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
++            (nKeyCode == 229) // Bug 2041973: Korean XP fires 2 keyup events, the key and 229
++        ) { 
++        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 < 0) {
++        this._toggleContainer(false);
++        YAHOO.log("Property minQueryLength is less than 0", "info", this.toString());
++        return;
++    }
++    // Delimiter has been enabled
++    if(this.delimChar) {
++        var extraction = this._extractQuery(sQuery);
++        // Here is the query itself
++        sQuery = extraction.query;
++        // ...and save the rest of the string for later
++        this._sPastSelections = extraction.previous;
++    }
++
++    // 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 is being made
++    
++    // Subset matching
++    if(this.dataSource.queryMatchSubset || this.queryMatchSubset) { // backward compat
++        var oResponse = this.getSubsetMatches(sQuery);
++        if(oResponse) {
++            this.handleResponse(sQuery, oResponse, {query: sQuery});
++            return;
++        }
++    }
++    
++    if(this.dataSource.responseStripAfter) {
++        this.dataSource.doBeforeParseData = this.preparseRawResponse;
++    }
++    if(this.applyLocalFilter) {
++        this.dataSource.doBeforeCallback = this.filterResults;
++    }
++    
++    var sRequest = this.generateRequest(sQuery);
++    this.dataRequestEvent.fire(this, sQuery, sRequest);
++    YAHOO.log("Sending query \"" + sRequest + "\"", "info", this.toString());
++
++    this.dataSource.sendRequest(sRequest, {
++            success : this.handleResponse,
++            failure : this.handleResponse,
++            scope   : this,
++            argument: {
++                query: sQuery
++            }
++    });
++};
++
++/**
++ * Populates the given &lt;li&gt; element with return value from formatResult().
++ *
++ * @method _populateListItem
++ * @param elListItem {HTMLElement} The LI element.
++ * @param oResult {Object} The result object.
++ * @param sCurQuery {String} The query string.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._populateListItem = function(elListItem, oResult, sQuery) {
++    elListItem.innerHTML = this.formatResult(oResult, sQuery, elListItem._sResultMatch);
++};
++
++/**
++ * Populates the array of &lt;li&gt; elements in the container with query
++ * results.
++ *
++ * @method _populateList
++ * @param sQuery {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, oResponse, oPayload) {
++    // Clear previous timeout
++    if(this._nTypeAheadDelayID != -1) {
++        clearTimeout(this._nTypeAheadDelayID);
++    }
++        
++    sQuery = (oPayload && oPayload.query) ? oPayload.query : sQuery;
++    
++    // Pass data through abstract method for any transformations
++    var ok = this.doBeforeLoadData(sQuery, oResponse, oPayload);
++
++    // Data is ok
++    if(ok && !oResponse.error) {
++        this.dataReturnEvent.fire(this, sQuery, oResponse.results);
++        
++        // Continue only if instance is still active (i.e., user hasn't already moved on)
++        if(this._bFocused) {
++            // Store state for this interaction
++            var sCurQuery = decodeURIComponent(sQuery);
++            this._sCurQuery = sCurQuery;
++            this._bItemSelected = false;
++        
++            var allResults = oResponse.results,
++                nItemsToShow = Math.min(allResults.length,this.maxResultsDisplayed),
++                sMatchKey = (this.dataSource.responseSchema.fields) ? 
++                    (this.dataSource.responseSchema.fields[0].key || this.dataSource.responseSchema.fields[0]) : 0;
++            
++            if(nItemsToShow > 0) {
++                // Make sure container and helpers are ready to go
++                if(!this._elList || (this._elList.childNodes.length < nItemsToShow)) {
++                    this._initListEl();
++                }
++                this._initContainerHelperEls();
++                
++                var allListItemEls = this._elList.childNodes;
++                // Fill items with data from the bottom up
++                for(var i = nItemsToShow-1; i >= 0; i--) {
++                    var elListItem = allListItemEls[i],
++                    oResult = allResults[i];
++                    
++                    // Backward compatibility
++                    if(this.resultTypeList) {
++                        // Results need to be converted back to an array
++                        var aResult = [];
++                        // Match key is first
++                        aResult[0] = (YAHOO.lang.isString(oResult)) ? oResult : oResult[sMatchKey] || oResult[this.key];
++                        // Add additional data to the result array
++                        var fields = this.dataSource.responseSchema.fields;
++                        if(YAHOO.lang.isArray(fields) && (fields.length > 1)) {
++                            for(var k=1, len=fields.length; k<len; k++) {
++                                aResult[aResult.length] = oResult[fields[k].key || fields[k]];
++                            }
++                        }
++                        // No specific fields defined, so pass along entire data object
++                        else {
++                            // Already an array
++                            if(YAHOO.lang.isArray(oResult)) {
++                                aResult = oResult;
++                            }
++                            // Simple string 
++                            else if(YAHOO.lang.isString(oResult)) {
++                                aResult = [oResult];
++                            }
++                            // Object
++                            else {
++                                aResult[1] = oResult;
++                            }
++                        }
++                        oResult = aResult;
++                    }
++
++                    // The matching value, including backward compatibility for array format and safety net
++                    elListItem._sResultMatch = (YAHOO.lang.isString(oResult)) ? oResult : (YAHOO.lang.isArray(oResult)) ? oResult[0] : (oResult[sMatchKey] || "");
++                    elListItem._oResultData = oResult; // Additional data
++                    this._populateListItem(elListItem, oResult, sCurQuery);
++                    elListItem.style.display = "";
++                }
++        
++                // Clear out extraneous items
++                if(nItemsToShow < allListItemEls.length) {
++                    var extraListItem;
++                    for(var j = allListItemEls.length-1; j >= nItemsToShow; j--) {
++                        extraListItem = allListItemEls[j];
++                        extraListItem.style.display = "none";
++                    }
++                }
++                
++                this._nDisplayedItems = nItemsToShow;
++                
++                this.containerPopulateEvent.fire(this, sQuery, allResults);
++                
++                // Highlight the first item
++                if(this.autoHighlight) {
++                    var elFirstListItem = this._elList.firstChild;
++                    this._toggleHighlight(elFirstListItem,"to");
++                    this.itemArrowToEvent.fire(this, elFirstListItem);
++                    YAHOO.log("Arrowed to first item", "info", this.toString());
++                    this._typeAhead(elFirstListItem,sQuery);
++                }
++                // Unhighlight any previous time
++                else {
++                    this._toggleHighlight(this._elCurListItem,"from");
++                }
++        
++                // Pre-expansion stuff
++                ok = this._doBeforeExpandContainer(this._elTextbox, this._elContainer, sQuery, allResults);
++                
++                // Expand the container
++                this._toggleContainer(ok);
++            }
++            else {
++                this._toggleContainer(false);
++            }
++
++            YAHOO.log("Container populated with " + nItemsToShow +  " list items", "info", this.toString());
++            return;
++        }
++    }
++    // Error
++    else {
++        this.dataErrorEvent.fire(this, sQuery, oResponse);
++    }
++        
++    YAHOO.log("Could not populate list", "info", this.toString());    
++};
++
++/**
++ * Called before container expands, by default snaps container to the
++ * bottom-left corner of the input element, then calls public overrideable method.
++ *
++ * @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.
++ * @private 
++ */
++YAHOO.widget.AutoComplete.prototype._doBeforeExpandContainer = function(elTextbox, elContainer, sQuery, aResults) {
++    if(this.autoSnapContainer) {
++        this.snapContainer();
++    }
++
++    return this.doBeforeExpandContainer(elTextbox, elContainer, 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 extraction = (this.delimChar) ? this._extractQuery(this._elTextbox.value) :
++            {previous:"",query:this._elTextbox.value};
++    this._elTextbox.value = extraction.previous;
++    this.selectionEnforceEvent.fire(this, extraction.query);
++    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 elMatch = null;
++
++    for(var i=0; i<this._nDisplayedItems; i++) {
++        var elListItem = this._elList.childNodes[i];
++        var sMatch = ("" + elListItem._sResultMatch).toLowerCase();
++        if(sMatch == this._sCurQuery.toLowerCase()) {
++            elMatch = elListItem;
++            break;
++        }
++    }
++    return(elMatch);
++};
++
++/**
++ * 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 elListItem {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(elListItem, sQuery) {
++    // Don't typeAhead if turned off or is backspace
++    if(!this.typeAhead || (this._nKeyCode == 8)) {
++        return;
++    }
++
++    var oSelf = this,
++        elTextbox = this._elTextbox;
++        
++    // Only if text selection is supported
++    if(elTextbox.setSelectionRange || elTextbox.createTextRange) {
++        // Set and store timeout for this typeahead
++        this._nTypeAheadDelayID = setTimeout(function() {
++                // Select the portion of text that the user has not typed
++                var nStart = elTextbox.value.length; // any saved queries plus what user has typed
++                oSelf._updateValue(elListItem);
++                var nEnd = elTextbox.value.length;
++                oSelf._selectText(elTextbox,nStart,nEnd);
++                var sPrefill = elTextbox.value.substr(nStart,nEnd);
++                oSelf.typeAheadEvent.fire(oSelf,sQuery,sPrefill);
++                YAHOO.log("Typeahead occured with prefill string \"" + sPrefill + "\"", "info", oSelf.toString());
++            },(this.typeAheadDelay*1000));            
++    }
++};
++
++/**
++ * 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();
++    }
++};
++
++/**
++ * Extracts rightmost query from delimited string.
++ *
++ * @method _extractQuery
++ * @param sQuery {String} String to parse
++ * @return {Object} Object literal containing properties "query" and "previous".  
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._extractQuery = function(sQuery) {
++    var aDelimChar = this.delimChar,
++        nDelimIndex = -1,
++        nNewIndex, nQueryStart,
++        i = aDelimChar.length-1,
++        sPrevious;
++        
++    // Loop through all possible delimiters and find the rightmost one in the query
++    // A " " may be a false positive if they are defined as delimiters AND
++    // are used to separate delimited queries
++    for(; i >= 0; i--) {
++        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 in the query so extract the latest query from past selections
++    if(nDelimIndex > -1) {
++        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
++        sPrevious = sQuery.substring(0,nQueryStart);
++        // Here is the query itself
++        sQuery = sQuery.substr(nQueryStart);
++    }
++    // No delimiter found in the query, so there are no selections from past queries
++    else {
++        sPrevious = "";
++    }
++    
++    return {
++        previous: sPrevious,
++        query: sQuery
++    };
++};
++
++/**
++ * 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 width = this._elContent.offsetWidth + "px";
++    var height = this._elContent.offsetHeight + "px";
++
++    if(this.useIFrame && this._elIFrame) {
++    var elIFrame = this._elIFrame;
++        if(bShow) {
++            elIFrame.style.width = width;
++            elIFrame.style.height = height;
++            elIFrame.style.padding = "";
++            YAHOO.log("Iframe expanded", "info", this.toString());
++        }
++        else {
++            elIFrame.style.width = 0;
++            elIFrame.style.height = 0;
++            elIFrame.style.padding = 0;
++            YAHOO.log("Iframe collapsed", "info", this.toString());
++        }
++    }
++    if(this.useShadow && this._elShadow) {
++    var elShadow = this._elShadow;
++        if(bShow) {
++            elShadow.style.width = width;
++            elShadow.style.height = height;
++            YAHOO.log("Shadow expanded", "info", this.toString());
++        }
++        else {
++            elShadow.style.width = 0;
++            elShadow.style.height = 0;
++            YAHOO.log("Shadow collapsed", "info", this.toString());
++        }
++    }
++};
++
++/**
++ * 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) {
++    YAHOO.log("Toggling container " + ((bShow) ? "open" : "closed"), "info", this.toString());
++
++    var elContainer = this._elContainer;
++
++    // If implementer has container always open and it's already open, don't mess with it
++    // Container is initialized with display "none" so it may need to be shown first time through
++    if(this.alwaysShowContainer && this._bContainerOpen) {
++        return;
++    }
++    
++    // Reset states
++    if(!bShow) {
++        this._toggleHighlight(this._elCurListItem,"from");
++        this._nDisplayedItems = 0;
++        this._sCurQuery = null;
++        
++        // Container is already closed, so don't bother with changing the UI
++        if(this._elContent.style.display == "none") {
++            return;
++        }
++    }
++
++    // If animation is enabled...
++    var oAnim = this._oAnim;
++    if(oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {
++        if(oAnim.isAnimated()) {
++            oAnim.stop(true);
++        }
++
++        // Clone container to grab current size offscreen
++        var oClone = this._elContent.cloneNode(true);
++        elContainer.appendChild(oClone);
++        oClone.style.top = "-9000px";
++        oClone.style.width = "";
++        oClone.style.height = "";
++        oClone.style.display = "";
++
++        // 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._toggleContainerHelpers(true);
++                oSelf._bContainerOpen = bShow;
++                oSelf.containerExpandEvent.fire(oSelf);
++                YAHOO.log("Container expanded", "info", oSelf.toString());
++            }
++            else {
++                oSelf._elContent.style.display = "none";
++                oSelf._bContainerOpen = bShow;
++                oSelf.containerCollapseEvent.fire(oSelf);
++                YAHOO.log("Container collapsed", "info", oSelf.toString());
++            }
++     	};
++
++        // Display container and animate it
++        this._toggleContainerHelpers(false); // Bug 1424486: Be early to hide, late to show;
++        this._elContent.style.display = "";
++        oAnim.onComplete.subscribe(onAnimComplete);
++        oAnim.animate();
++    }
++    // Else don't animate, just show or hide
++    else {
++        if(bShow) {
++            this._elContent.style.display = "";
++            this._toggleContainerHelpers(true);
++            this._bContainerOpen = bShow;
++            this.containerExpandEvent.fire(this);
++            YAHOO.log("Container expanded", "info", this.toString());
++        }
++        else {
++            this._toggleContainerHelpers(false);
++            this._elContent.style.display = "none";
++            this._bContainerOpen = bShow;
++            this.containerCollapseEvent.fire(this);
++            YAHOO.log("Container collapsed", "info", this.toString());
++        }
++   }
++
++};
++
++/**
++ * Toggles the highlight on or off for an item in the container, and also cleans
++ * up highlighting of any previous item.
++ *
++ * @method _toggleHighlight
++ * @param elNewListItem {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(elNewListItem, sType) {
++    if(elNewListItem) {
++        var sHighlight = this.highlightClassName;
++        if(this._elCurListItem) {
++            // Remove highlight from old item
++            YAHOO.util.Dom.removeClass(this._elCurListItem, sHighlight);
++            this._elCurListItem = null;
++        }
++    
++        if((sType == "to") && sHighlight) {
++            // Apply highlight to new item
++            YAHOO.util.Dom.addClass(elNewListItem, sHighlight);
++            this._elCurListItem = elNewListItem;
++        }
++    }
++};
++
++/**
++ * Toggles the pre-highlight on or off for an item in the container, and also cleans
++ * up pre-highlighting of any previous item.
++ *
++ * @method _togglePrehighlight
++ * @param elNewListItem {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(elNewListItem, sType) {
++    var sPrehighlight = this.prehighlightClassName;
++
++    if(this._elCurPrehighlightItem) {
++        YAHOO.util.Dom.removeClass(this._elCurPrehighlightItem, sPrehighlight);
++    }
++    if(elNewListItem == this._elCurListItem) {
++        return;
++    }
++
++    if((sType == "mouseover") && sPrehighlight) {
++        // Apply prehighlight to new item
++        YAHOO.util.Dom.addClass(elNewListItem, sPrehighlight);
++        this._elCurPrehighlightItem = elNewListItem;
++    }
++    else {
++        // Remove prehighlight from old item
++        YAHOO.util.Dom.removeClass(elNewListItem, 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 elListItem {HTMLElement} The &lt;li&gt; element item with which to update the value.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._updateValue = function(elListItem) {
++    if(!this.suppressInputUpdate) {    
++        var elTextbox = this._elTextbox;
++        var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null;
++        var sResultMatch = elListItem._sResultMatch;
++    
++        // Calculate the new value
++        var sNewValue = "";
++        if(sDelimChar) {
++            // Preserve selections from past queries
++            sNewValue = this._sPastSelections;
++            // Add new selection plus delimiter
++            sNewValue += sResultMatch + sDelimChar;
++            if(sDelimChar != " ") {
++                sNewValue += " ";
++            }
++        }
++        else { 
++            sNewValue = sResultMatch;
++        }
++        
++        // Update input field
++        elTextbox.value = sNewValue;
++    
++        // 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._elCurListItem = elListItem;
++    }
++};
++
++/**
++ * Selects a result item from the container
++ *
++ * @method _selectItem
++ * @param elListItem {HTMLElement} The selected &lt;li&gt; element item.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._selectItem = function(elListItem) {
++    this._bItemSelected = true;
++    this._updateValue(elListItem);
++    this._sPastSelections = this._elTextbox.value;
++    this._clearInterval();
++    this.itemSelectEvent.fire(this, elListItem, elListItem._oResultData);
++    YAHOO.log("Item selected: " + YAHOO.lang.dump(elListItem._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._elCurListItem) {
++        this._selectItem(this._elCurListItem);
++    }
++    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 elCurListItem = this._elCurListItem,
++            nCurItemIndex = -1;
++
++        if(elCurListItem) {
++            nCurItemIndex = elCurListItem._nItemIndex;
++        }
++
++        var nNewItemIndex = (nKeyCode == 40) ?
++                (nCurItemIndex + 1) : (nCurItemIndex - 1);
++
++        // Out of bounds
++        if(nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) {
++            return;
++        }
++
++        if(elCurListItem) {
++            // Unhighlight current item
++            this._toggleHighlight(elCurListItem, "from");
++            this.itemArrowFromEvent.fire(this, elCurListItem);
++            YAHOO.log("Item arrowed from: " + elCurListItem._nItemIndex, "info", this.toString());
++        }
++        if(nNewItemIndex == -1) {
++           // Go back to query (remove type-ahead string)
++            if(this.delimChar) {
++                this._elTextbox.value = this._sPastSelections + this._sCurQuery;
++            }
++            else {
++                this._elTextbox.value = this._sCurQuery;
++            }
++            return;
++        }
++        if(nNewItemIndex == -2) {
++            // Close container
++            this._toggleContainer(false);
++            return;
++        }
++        
++        var elNewListItem = this._elList.childNodes[nNewItemIndex],
++
++        // Scroll the container if necessary
++            elContent = this._elContent,
++            sOF = YAHOO.util.Dom.getStyle(elContent,"overflow"),
++            sOFY = YAHOO.util.Dom.getStyle(elContent,"overflowY"),
++            scrollOn = ((sOF == "auto") || (sOF == "scroll") || (sOFY == "auto") || (sOFY == "scroll"));
++        if(scrollOn && (nNewItemIndex > -1) &&
++        (nNewItemIndex < this._nDisplayedItems)) {
++            // User is keying down
++            if(nKeyCode == 40) {
++                // Bottom of selected item is below scroll area...
++                if((elNewListItem.offsetTop+elNewListItem.offsetHeight) > (elContent.scrollTop + elContent.offsetHeight)) {
++                    // Set bottom of scroll area to bottom of selected item
++                    elContent.scrollTop = (elNewListItem.offsetTop+elNewListItem.offsetHeight) - elContent.offsetHeight;
++                }
++                // Bottom of selected item is above scroll area...
++                else if((elNewListItem.offsetTop+elNewListItem.offsetHeight) < elContent.scrollTop) {
++                    // Set top of selected item to top of scroll area
++                    elContent.scrollTop = elNewListItem.offsetTop;
++
++                }
++            }
++            // User is keying up
++            else {
++                // Top of selected item is above scroll area
++                if(elNewListItem.offsetTop < elContent.scrollTop) {
++                    // Set top of scroll area to top of selected item
++                    this._elContent.scrollTop = elNewListItem.offsetTop;
++                }
++                // Top of selected item is below scroll area
++                else if(elNewListItem.offsetTop > (elContent.scrollTop + elContent.offsetHeight)) {
++                    // Set bottom of selected item to bottom of scroll area
++                    this._elContent.scrollTop = (elNewListItem.offsetTop+elNewListItem.offsetHeight) - elContent.offsetHeight;
++                }
++            }
++        }
++
++        this._toggleHighlight(elNewListItem, "to");
++        this.itemArrowToEvent.fire(this, elNewListItem);
++        YAHOO.log("Item arrowed to " + elNewListItem._nItemIndex, "info", this.toString());
++        if(this.typeAhead) {
++            this._updateValue(elNewListItem);
++        }
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private event handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * 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) {
++    var elTarget = YAHOO.util.Event.getTarget(v);
++    var elTag = elTarget.nodeName.toLowerCase();
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "li":
++                if(oSelf.prehighlightClassName) {
++                    oSelf._togglePrehighlight(elTarget,"mouseover");
++                }
++                else {
++                    oSelf._toggleHighlight(elTarget,"to");
++                }
++            
++                oSelf.itemMouseOverEvent.fire(oSelf, elTarget);
++                YAHOO.log("Item moused over " + elTarget._nItemIndex, "info", oSelf.toString());
++                break;
++            case "div":
++                if(YAHOO.util.Dom.hasClass(elTarget,"yui-ac-container")) {
++                    oSelf._bOverContainer = true;
++                    return;
++                }
++                break;
++            default:
++                break;
++        }
++        
++        elTarget = elTarget.parentNode;
++        if(elTarget) {
++            elTag = elTarget.nodeName.toLowerCase();
++        }
++    }
++};
++
++/**
++ * 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) {
++    var elTarget = YAHOO.util.Event.getTarget(v);
++    var elTag = elTarget.nodeName.toLowerCase();
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "li":
++                if(oSelf.prehighlightClassName) {
++                    oSelf._togglePrehighlight(elTarget,"mouseout");
++                }
++                else {
++                    oSelf._toggleHighlight(elTarget,"from");
++                }
++            
++                oSelf.itemMouseOutEvent.fire(oSelf, elTarget);
++                YAHOO.log("Item moused out " + elTarget._nItemIndex, "info", oSelf.toString());
++                break;
++            case "ul":
++                oSelf._toggleHighlight(oSelf._elCurListItem,"to");
++                break;
++            case "div":
++                if(YAHOO.util.Dom.hasClass(elTarget,"yui-ac-container")) {
++                    oSelf._bOverContainer = false;
++                    return;
++                }
++                break;
++            default:
++                break;
++        }
++
++        elTarget = elTarget.parentNode;
++        if(elTarget) {
++            elTag = elTarget.nodeName.toLowerCase();
++        }
++    }
++};
++
++/**
++ * Handles container click events.
++ *
++ * @method _onContainerClick
++ * @param v {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._onContainerClick = function(v,oSelf) {
++    var elTarget = YAHOO.util.Event.getTarget(v);
++    var elTag = elTarget.nodeName.toLowerCase();
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "li":
++                // In case item has not been moused over
++                oSelf._toggleHighlight(elTarget,"to");
++                oSelf._selectItem(elTarget);
++                return;
++            default:
++                break;
++        }
++
++        elTarget = elTarget.parentNode;
++        if(elTarget) {
++            elTag = elTarget.nodeName.toLowerCase();
++        }
++    }    
++};
++
++
++/**
++ * 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._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;
++
++    // Clear timeout
++    if(oSelf._nTypeAheadDelayID != -1) {
++        clearTimeout(oSelf._nTypeAheadDelayID);
++    }
++    
++    switch (nKeyCode) {
++        case 9: // tab
++            if(!YAHOO.env.ua.opera && (navigator.userAgent.toLowerCase().indexOf("mac") == -1) || (YAHOO.env.ua.webkit>420)) {
++                // select an item or clear out
++                if(oSelf._elCurListItem) {
++                    if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
++                        if(oSelf._bContainerOpen) {
++                            YAHOO.util.Event.stopEvent(v);
++                        }
++                    }
++                    oSelf._selectItem(oSelf._elCurListItem);
++                }
++                else {
++                    oSelf._toggleContainer(false);
++                }
++            }
++            break;
++        case 13: // enter
++            if(!YAHOO.env.ua.opera && (navigator.userAgent.toLowerCase().indexOf("mac") == -1) || (YAHOO.env.ua.webkit>420)) {
++                if(oSelf._elCurListItem) {
++                    if(oSelf._nKeyCode != nKeyCode) {
++                        if(oSelf._bContainerOpen) {
++                            YAHOO.util.Event.stopEvent(v);
++                        }
++                    }
++                    oSelf._selectItem(oSelf._elCurListItem);
++                }
++                else {
++                    oSelf._toggleContainer(false);
++                }
++            }
++            break;
++        case 27: // esc
++            oSelf._toggleContainer(false);
++            return;
++        case 39: // right
++            oSelf._jumpSelection();
++            break;
++        case 38: // up
++            if(oSelf._bContainerOpen) {
++                YAHOO.util.Event.stopEvent(v);
++                oSelf._moveSelection(nKeyCode);
++            }
++            break;
++        case 40: // down
++            if(oSelf._bContainerOpen) {
++                YAHOO.util.Event.stopEvent(v);
++                oSelf._moveSelection(nKeyCode);
++            }
++            break;
++        default: 
++            oSelf._bItemSelected = false;
++            oSelf._toggleHighlight(oSelf._elCurListItem, "from");
++
++            oSelf.textboxKeyEvent.fire(oSelf, nKeyCode);
++            YAHOO.log("Textbox keyed", "info", oSelf.toString());
++            break;
++    }
++
++    if(nKeyCode === 18){
++        oSelf._enableIntervalDetection();
++    }    
++    oSelf._nKeyCode = nKeyCode;
++};
++
++/**
++ * 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 non SF3 (bug 1978549) Mac browsers (bug 790337) and  Opera browsers (bug 583531),
++        // where stopEvent is ineffective on keydown events 
++        if(YAHOO.env.ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") != -1) && (YAHOO.env.ua.webkit < 420)) {
++            switch (nKeyCode) {
++            case 9: // tab
++                // select an item or clear out
++                if(oSelf._bContainerOpen) {
++                    if(oSelf.delimChar) {
++                        YAHOO.util.Event.stopEvent(v);
++                    }
++                    if(oSelf._elCurListItem) {
++                        oSelf._selectItem(oSelf._elCurListItem);
++                    }
++                    else {
++                        oSelf._toggleContainer(false);
++                    }
++                }
++                break;
++            case 13: // enter
++                if(oSelf._bContainerOpen) {
++                    YAHOO.util.Event.stopEvent(v);
++                    if(oSelf._elCurListItem) {
++                        oSelf._selectItem(oSelf._elCurListItem);
++                    }
++                    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._enableIntervalDetection();
++        }
++};
++
++/**
++ * Handles textbox keyup events to 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) {
++    var sText = this.value; //string in textbox
++    
++    // Check to see if any of the public properties have been updated
++    oSelf._initProps();
++
++    // Filter out chars that don't trigger queries
++    var nKeyCode = v.keyCode;
++    if(oSelf._isIgnoreKey(nKeyCode)) {
++        return;
++    }
++
++    // Clear previous timeout
++    if(oSelf._nDelayID != -1) {
++        clearTimeout(oSelf._nDelayID);
++    }
++
++    // Set new timeout
++    oSelf._nDelayID = setTimeout(function(){
++            oSelf._sendQuery(sText);
++        },(oSelf.queryDelay * 1000));
++};
++
++/**
++ * 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) {
++    // Start of a new interaction
++    if(!oSelf._bFocused) {
++        oSelf._elTextbox.setAttribute("autocomplete","off");
++        oSelf._bFocused = true;
++        oSelf._sInitInputValue = oSelf._elTextbox.value;
++        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) {
++    // Is a true blur
++    if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
++        // Current query needs to be validated as a selection
++        if(!oSelf._bItemSelected) {
++            var elMatchListItem = oSelf._textMatchesOption();
++            // Container is closed or current query doesn't match any result
++            if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && (elMatchListItem === 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, oSelf._sCurQuery);
++                    YAHOO.log("Unmatched item selected: " + oSelf._sCurQuery, "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(elMatchListItem);
++                }
++            }
++        }
++
++        oSelf._clearInterval();
++        oSelf._bFocused = false;
++        if(oSelf._sInitInputValue !== oSelf._elTextbox.value) {
++            oSelf.textboxChangeEvent.fire(oSelf);
++        }
++        oSelf.textboxBlurEvent.fire(oSelf);
++        YAHOO.log("Textbox blurred", "info", oSelf.toString());
++
++        oSelf._toggleContainer(false);
++    }
++    // Not a true blur if it was a selection via mouse click
++    else {
++        oSelf._focus();
++    }
++};
++
++/**
++ * 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");
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated for Backwards Compatibility
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * @method doBeforeSendQuery
++ * @deprecated Use generateRequest.
++ */
++YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery = function(sQuery) {
++    return this.generateRequest(sQuery);
++};
++
++/**
++ * @method getListItems
++ * @deprecated Use getListEl().childNodes.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItems = function() {
++    var allListItemEls = [],
++        els = this._elList.childNodes;
++    for(var i=els.length-1; i>=0; i--) {
++        allListItemEls[i] = els[i];
++    }
++    return allListItemEls;
++};
++
++/////////////////////////////////////////////////////////////////////////
++//
++// Private static methods
++//
++/////////////////////////////////////////////////////////////////////////
++
++/**
++ * Clones object literal or array of object literals.
++ *
++ * @method AutoComplete._cloneObject
++ * @param o {Object} Object.
++ * @private
++ * @static     
++ */
++YAHOO.widget.AutoComplete._cloneObject = function(o) {
++    if(!YAHOO.lang.isValue(o)) {
++        return o;
++    }
++    
++    var copy = {};
++    
++    if(YAHOO.lang.isFunction(o)) {
++        copy = o;
++    }
++    else if(YAHOO.lang.isArray(o)) {
++        var array = [];
++        for(var i=0,len=o.length;i<len;i++) {
++            array[i] = YAHOO.widget.AutoComplete._cloneObject(o[i]);
++        }
++        copy = array;
++    }
++    else if(YAHOO.lang.isObject(o)) { 
++        for (var x in o){
++            if(YAHOO.lang.hasOwnProperty(o, x)) {
++                if(YAHOO.lang.isValue(o[x]) && YAHOO.lang.isObject(o[x]) || YAHOO.lang.isArray(o[x])) {
++                    copy[x] = YAHOO.widget.AutoComplete._cloneObject(o[x]);
++                }
++                else {
++                    copy[x] = o[x];
++                }
++            }
++        }
++    }
++    else {
++        copy = o;
++    }
++
++    return copy;
++};
++
++
++
++
++YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/autocomplete/autocomplete-min.js b/pylons_app/public/js/yui/autocomplete/autocomplete-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/autocomplete/autocomplete-min.js
+@@ -0,0 +1,12 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.widget.DS_JSArray=YAHOO.util.LocalDataSource;YAHOO.widget.DS_JSFunction=YAHOO.util.FunctionDataSource;YAHOO.widget.DS_XHR=function(B,A,D){var C=new YAHOO.util.XHRDataSource(B,D);C._aDeprecatedSchema=A;return C;};YAHOO.widget.DS_ScriptNode=function(B,A,D){var C=new YAHOO.util.ScriptNodeDataSource(B,D);C._aDeprecatedSchema=A;return C;};YAHOO.widget.DS_XHR.TYPE_JSON=YAHOO.util.DataSourceBase.TYPE_JSON;YAHOO.widget.DS_XHR.TYPE_XML=YAHOO.util.DataSourceBase.TYPE_XML;YAHOO.widget.DS_XHR.TYPE_FLAT=YAHOO.util.DataSourceBase.TYPE_TEXT;YAHOO.widget.AutoComplete=function(G,B,J,C){if(G&&B&&J){if(J&&YAHOO.lang.isFunction(J.sendRequest)){this.dataSource=J;}else{return;}this.key=0;var D=J.responseSchema;if(J._aDeprecatedSchema){var K=J._aDeprecatedSchema;if(YAHOO.lang.isArray(K)){if((J.responseType===YAHOO.util.DataSourceBase.TYPE_JSON)||(J.responseType===YAHOO.util.DataSourceBase.TYPE_UNKNOWN)){D.resultsList=K[0];this.key=K[1];D.fields=(K.length<3)?null:K.slice(1);}else{if(J.responseType===YAHOO.util.DataSourceBase.TYPE_XML){D.resultNode=K[0];this.key=K[1];D.fields=K.slice(1);}else{if(J.responseType===YAHOO.util.DataSourceBase.TYPE_TEXT){D.recordDelim=K[0];D.fieldDelim=K[1];}}}J.responseSchema=D;}}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 E=this._elContainer.parentNode;var A=E.tagName.toLowerCase();if(A=="div"){YAHOO.util.Dom.addClass(E,"yui-ac");}else{}}else{return;}if(this.dataSource.dataType===YAHOO.util.DataSourceBase.TYPE_LOCAL){this.applyLocalFilter=true;}if(C&&(C.constructor==Object)){for(var I in C){if(I){this[I]=C[I];}}}this._initContainerEl();this._initProps();this._initListEl();this._initContainerHelperEls();var H=this;var F=this._elTextbox;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(B,"mouseover",H._onContainerMouseover,H);YAHOO.util.Event.addListener(B,"mouseout",H._onContainerMouseout,H);YAHOO.util.Event.addListener(B,"click",H._onContainerClick,H);YAHOO.util.Event.addListener(B,"scroll",H._onContainerScroll,H);YAHOO.util.Event.addListener(B,"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.containerPopulateEvent=new YAHOO.util.CustomEvent("containerPopulate",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);this.textboxChangeEvent=new YAHOO.util.CustomEvent("textboxChange",this);F.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++;}else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.applyLocalFilter=null;YAHOO.widget.AutoComplete.prototype.queryMatchCase=false;YAHOO.widget.AutoComplete.prototype.queryMatchContains=false;YAHOO.widget.AutoComplete.prototype.queryMatchSubset=false;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.2;YAHOO.widget.AutoComplete.prototype.typeAheadDelay=0.5;YAHOO.widget.AutoComplete.prototype.queryInterval=500;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.suppressInputUpdate=false;YAHOO.widget.AutoComplete.prototype.resultTypeList=true;YAHOO.widget.AutoComplete.prototype.queryQuestionMark=true;YAHOO.widget.AutoComplete.prototype.autoSnapContainer=true;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName;};YAHOO.widget.AutoComplete.prototype.getInputEl=function(){return this._elTextbox;};YAHOO.widget.AutoComplete.prototype.getContainerEl=function(){return this._elContainer;
++};YAHOO.widget.AutoComplete.prototype.isFocused=function(){return this._bFocused;};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen;};YAHOO.widget.AutoComplete.prototype.getListEl=function(){return this._elList;};YAHOO.widget.AutoComplete.prototype.getListItemMatch=function(A){if(A._sResultMatch){return A._sResultMatch;}else{return null;}};YAHOO.widget.AutoComplete.prototype.getListItemData=function(A){if(A._oResultData){return A._oResultData;}else{return null;}};YAHOO.widget.AutoComplete.prototype.getListItemIndex=function(A){if(YAHOO.lang.isNumber(A._nItemIndex)){return A._nItemIndex;}else{return null;}};YAHOO.widget.AutoComplete.prototype.setHeader=function(B){if(this._elHeader){var A=this._elHeader;if(B){A.innerHTML=B;A.style.display="";}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="";}else{A.innerHTML="";A.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setBody=function(A){if(this._elBody){var B=this._elBody;YAHOO.util.Event.purgeElement(B,true);if(A){B.innerHTML=A;B.style.display="";}else{B.innerHTML="";B.style.display="none";}this._elList=null;}};YAHOO.widget.AutoComplete.prototype.generateRequest=function(B){var A=this.dataSource.dataType;if(A===YAHOO.util.DataSourceBase.TYPE_XHR){if(!this.dataSource.connMethodPost){B=(this.queryQuestionMark?"?":"")+(this.dataSource.scriptQueryParam||"query")+"="+B+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}else{B=(this.dataSource.scriptQueryParam||"query")+"="+B+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}}else{if(A===YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE){B="&"+(this.dataSource.scriptQueryParam||"query")+"="+B+(this.dataSource.scriptQueryAppend?("&"+this.dataSource.scriptQueryAppend):"");}}return B;};YAHOO.widget.AutoComplete.prototype.sendQuery=function(B){this._bFocused=true;var A=(this.delimChar)?this._elTextbox.value+B:B;this._sendQuery(A);};YAHOO.widget.AutoComplete.prototype.snapContainer=function(){var A=this._elTextbox,B=YAHOO.util.Dom.getXY(A);B[1]+=YAHOO.util.Dom.get(A).offsetHeight+2;YAHOO.util.Dom.setXY(this._elContainer,B);};YAHOO.widget.AutoComplete.prototype.expandContainer=function(){this._toggleContainer(true);};YAHOO.widget.AutoComplete.prototype.collapseContainer=function(){this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype.clearList=function(){var B=this._elList.childNodes,A=B.length-1;for(;A>-1;A--){B[A].style.display="none";}};YAHOO.widget.AutoComplete.prototype.getSubsetMatches=function(E){var D,C,A;for(var B=E.length;B>=this.minQueryLength;B--){A=this.generateRequest(E.substr(0,B));this.dataRequestEvent.fire(this,D,A);C=this.dataSource.getCachedResponse(A);if(C){return this.filterResults.apply(this.dataSource,[E,C,C,{scope:this}]);}}return null;};YAHOO.widget.AutoComplete.prototype.preparseRawResponse=function(C,B,A){var D=((this.responseStripAfter!=="")&&(B.indexOf))?B.indexOf(this.responseStripAfter):-1;if(D!=-1){B=B.substring(0,D);}return B;};YAHOO.widget.AutoComplete.prototype.filterResults=function(K,M,Q,L){if(L&&L.argument&&L.argument.query){K=L.argument.query;}if(K&&K!==""){Q=YAHOO.widget.AutoComplete._cloneObject(Q);var I=L.scope,P=this,C=Q.results,N=[],B=I.maxResultsDisplayed,J=(P.queryMatchCase||I.queryMatchCase),A=(P.queryMatchContains||I.queryMatchContains);for(var D=0,H=C.length;D<H;D++){var F=C[D];var E=null;if(YAHOO.lang.isString(F)){E=F;}else{if(YAHOO.lang.isArray(F)){E=F[0];}else{if(this.responseSchema.fields){var O=this.responseSchema.fields[0].key||this.responseSchema.fields[0];E=F[O];}else{if(this.key){E=F[this.key];}}}}if(YAHOO.lang.isString(E)){var G=(J)?E.indexOf(decodeURIComponent(K)):E.toLowerCase().indexOf(decodeURIComponent(K).toLowerCase());if((!A&&(G===0))||(A&&(G>-1))){N.push(F);}}if(H>B&&N.length===B){break;}}Q.results=N;}else{}return Q;};YAHOO.widget.AutoComplete.prototype.handleResponse=function(C,A,B){if((this instanceof YAHOO.widget.AutoComplete)&&this._sName){this._populateList(C,A,B);}};YAHOO.widget.AutoComplete.prototype.doBeforeLoadData=function(C,A,B){return true;};YAHOO.widget.AutoComplete.prototype.formatResult=function(B,D,A){var C=(A)?A:"";return C;};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(D,A,C,B){return true;};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.containerPopulateEvent.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();this.textboxChangeEvent.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.containerPopulateEvent=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.prototype.textboxChangeEvent=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=false;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._elList=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sPastSelections="";YAHOO.widget.AutoComplete.prototype._sInitInputValue=null;YAHOO.widget.AutoComplete.prototype._elCurListItem=null;YAHOO.widget.AutoComplete.prototype._elCurPrehighlightItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID=-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 E=this.maxResultsDisplayed;if(!YAHOO.lang.isNumber(E)||(E<1)){this.maxResultsDisplayed=10;}var F=this.queryDelay;if(!YAHOO.lang.isNumber(F)||(F<0)){this.queryDelay=0.2;}var C=this.typeAheadDelay;if(!YAHOO.lang.isNumber(C)||(C<0)){this.typeAheadDelay=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 D=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(!YAHOO.lang.isNumber(D)||(D<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._initContainerHelperEls=function(){if(this.useShadow&&!this._elShadow){var A=document.createElement("div");A.className="yui-ac-shadow";A.style.width=0;A.style.height=0;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=0;B.style.height=0;B.style.padding=0;B.tabIndex=-1;B.role="presentation";B.title="Presentational iframe shim";this._elIFrame=this._elContainer.appendChild(B);}};YAHOO.widget.AutoComplete.prototype._initContainerEl=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._initListEl=function(){var C=this.maxResultsDisplayed,A=this._elList||document.createElement("ul"),B;while(A.childNodes.length<C){B=document.createElement("li");B.style.display="none";B._nItemIndex=A.childNodes.length;A.appendChild(B);}if(!this._elList){var D=this._elBody;YAHOO.util.Event.purgeElement(D,true);D.innerHTML="";this._elList=D.appendChild(A);}this._elBody.style.display="";};YAHOO.widget.AutoComplete.prototype._focus=function(){var A=this;setTimeout(function(){try{A._elTextbox.focus();}catch(B){}},0);};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var A=this;if(!A._queryInterval&&A.queryInterval){A._queryInterval=setInterval(function(){A._onInterval();},A.queryInterval);}};YAHOO.widget.AutoComplete.prototype.enableIntervalDetection=YAHOO.widget.AutoComplete.prototype._enableIntervalDetection;YAHOO.widget.AutoComplete.prototype._onInterval=function(){var A=this._elTextbox.value;var B=this._sLastTextboxValue;if(A!=B){this._sLastTextboxValue=A;this._sendQuery(A);}};YAHOO.widget.AutoComplete.prototype._clearInterval=function(){if(this._queryInterval){clearInterval(this._queryInterval);this._queryInterval=null;}};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)||(A==229)){return true;}return false;};YAHOO.widget.AutoComplete.prototype._sendQuery=function(D){if(this.minQueryLength<0){this._toggleContainer(false);return;}if(this.delimChar){var A=this._extractQuery(D);D=A.query;this._sPastSelections=A.previous;}if((D&&(D.length<this.minQueryLength))||(!D&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID);}this._toggleContainer(false);return;}D=encodeURIComponent(D);this._nDelayID=-1;if(this.dataSource.queryMatchSubset||this.queryMatchSubset){var C=this.getSubsetMatches(D);if(C){this.handleResponse(D,C,{query:D});return;
++}}if(this.dataSource.responseStripAfter){this.dataSource.doBeforeParseData=this.preparseRawResponse;}if(this.applyLocalFilter){this.dataSource.doBeforeCallback=this.filterResults;}var B=this.generateRequest(D);this.dataRequestEvent.fire(this,D,B);this.dataSource.sendRequest(B,{success:this.handleResponse,failure:this.handleResponse,scope:this,argument:{query:D}});};YAHOO.widget.AutoComplete.prototype._populateListItem=function(B,A,C){B.innerHTML=this.formatResult(A,C,B._sResultMatch);};YAHOO.widget.AutoComplete.prototype._populateList=function(K,F,C){if(this._nTypeAheadDelayID!=-1){clearTimeout(this._nTypeAheadDelayID);}K=(C&&C.query)?C.query:K;var H=this.doBeforeLoadData(K,F,C);if(H&&!F.error){this.dataReturnEvent.fire(this,K,F.results);if(this._bFocused){var M=decodeURIComponent(K);this._sCurQuery=M;this._bItemSelected=false;var R=F.results,A=Math.min(R.length,this.maxResultsDisplayed),J=(this.dataSource.responseSchema.fields)?(this.dataSource.responseSchema.fields[0].key||this.dataSource.responseSchema.fields[0]):0;if(A>0){if(!this._elList||(this._elList.childNodes.length<A)){this._initListEl();}this._initContainerHelperEls();var I=this._elList.childNodes;for(var Q=A-1;Q>=0;Q--){var P=I[Q],E=R[Q];if(this.resultTypeList){var B=[];B[0]=(YAHOO.lang.isString(E))?E:E[J]||E[this.key];var L=this.dataSource.responseSchema.fields;if(YAHOO.lang.isArray(L)&&(L.length>1)){for(var N=1,S=L.length;N<S;N++){B[B.length]=E[L[N].key||L[N]];}}else{if(YAHOO.lang.isArray(E)){B=E;}else{if(YAHOO.lang.isString(E)){B=[E];}else{B[1]=E;}}}E=B;}P._sResultMatch=(YAHOO.lang.isString(E))?E:(YAHOO.lang.isArray(E))?E[0]:(E[J]||"");P._oResultData=E;this._populateListItem(P,E,M);P.style.display="";}if(A<I.length){var G;for(var O=I.length-1;O>=A;O--){G=I[O];G.style.display="none";}}this._nDisplayedItems=A;this.containerPopulateEvent.fire(this,K,R);if(this.autoHighlight){var D=this._elList.firstChild;this._toggleHighlight(D,"to");this.itemArrowToEvent.fire(this,D);this._typeAhead(D,K);}else{this._toggleHighlight(this._elCurListItem,"from");}H=this._doBeforeExpandContainer(this._elTextbox,this._elContainer,K,R);this._toggleContainer(H);}else{this._toggleContainer(false);}return;}}else{this.dataErrorEvent.fire(this,K,F);}};YAHOO.widget.AutoComplete.prototype._doBeforeExpandContainer=function(D,A,C,B){if(this.autoSnapContainer){this.snapContainer();}return this.doBeforeExpandContainer(D,A,C,B);};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var A=(this.delimChar)?this._extractQuery(this._elTextbox.value):{previous:"",query:this._elTextbox.value};this._elTextbox.value=A.previous;this.selectionEnforceEvent.fire(this,A.query);};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var A=null;for(var B=0;B<this._nDisplayedItems;B++){var C=this._elList.childNodes[B];var D=(""+C._sResultMatch).toLowerCase();if(D==this._sCurQuery.toLowerCase()){A=C;break;}}return(A);};YAHOO.widget.AutoComplete.prototype._typeAhead=function(B,D){if(!this.typeAhead||(this._nKeyCode==8)){return;}var A=this,C=this._elTextbox;if(C.setSelectionRange||C.createTextRange){this._nTypeAheadDelayID=setTimeout(function(){var F=C.value.length;A._updateValue(B);var G=C.value.length;A._selectText(C,F,G);var E=C.value.substr(F,G);A.typeAheadEvent.fire(A,D,E);},(this.typeAheadDelay*1000));}};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._extractQuery=function(H){var C=this.delimChar,F=-1,G,E,B=C.length-1,D;for(;B>=0;B--){G=H.lastIndexOf(C[B]);if(G>F){F=G;}}if(C[B]==" "){for(var A=C.length-1;A>=0;A--){if(H[F-1]==C[A]){F--;break;}}}if(F>-1){E=F+1;while(H.charAt(E)==" "){E+=1;}D=H.substring(0,E);H=H.substr(E);}else{D="";}return{previous:D,query:H};};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(D){var E=this._elContent.offsetWidth+"px";var B=this._elContent.offsetHeight+"px";if(this.useIFrame&&this._elIFrame){var C=this._elIFrame;if(D){C.style.width=E;C.style.height=B;C.style.padding="";}else{C.style.width=0;C.style.height=0;C.style.padding=0;}}if(this.useShadow&&this._elShadow){var A=this._elShadow;if(D){A.style.width=E;A.style.height=B;}else{A.style.width=0;A.style.height=0;}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(I){var D=this._elContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return;}if(!I){this._toggleHighlight(this._elCurListItem,"from");this._nDisplayedItems=0;this._sCurQuery=null;if(this._elContent.style.display=="none"){return;}}var A=this._oAnim;if(A&&A.getEl()&&(this.animHoriz||this.animVert)){if(A.isAnimated()){A.stop(true);}var G=this._elContent.cloneNode(true);D.appendChild(G);G.style.top="-9000px";G.style.width="";G.style.height="";G.style.display="";var F=G.offsetWidth;var C=G.offsetHeight;var B=(this.animHoriz)?0:F;var E=(this.animVert)?0:C;A.attributes=(I)?{width:{to:F},height:{to:C}}:{width:{to:B},height:{to:E}};if(I&&!this._bContainerOpen){this._elContent.style.width=B+"px";this._elContent.style.height=E+"px";}else{this._elContent.style.width=F+"px";this._elContent.style.height=C+"px";}D.removeChild(G);G=null;var H=this;var J=function(){A.onComplete.unsubscribeAll();if(I){H._toggleContainerHelpers(true);H._bContainerOpen=I;H.containerExpandEvent.fire(H);}else{H._elContent.style.display="none";H._bContainerOpen=I;H.containerCollapseEvent.fire(H);}};this._toggleContainerHelpers(false);this._elContent.style.display="";A.onComplete.subscribe(J);A.animate();}else{if(I){this._elContent.style.display="";this._toggleContainerHelpers(true);this._bContainerOpen=I;this.containerExpandEvent.fire(this);}else{this._toggleContainerHelpers(false);this._elContent.style.display="none";this._bContainerOpen=I;this.containerCollapseEvent.fire(this);}}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(A,C){if(A){var B=this.highlightClassName;
++if(this._elCurListItem){YAHOO.util.Dom.removeClass(this._elCurListItem,B);this._elCurListItem=null;}if((C=="to")&&B){YAHOO.util.Dom.addClass(A,B);this._elCurListItem=A;}}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(B,C){var A=this.prehighlightClassName;if(this._elCurPrehighlightItem){YAHOO.util.Dom.removeClass(this._elCurPrehighlightItem,A);}if(B==this._elCurListItem){return;}if((C=="mouseover")&&A){YAHOO.util.Dom.addClass(B,A);this._elCurPrehighlightItem=B;}else{YAHOO.util.Dom.removeClass(B,A);}};YAHOO.widget.AutoComplete.prototype._updateValue=function(C){if(!this.suppressInputUpdate){var F=this._elTextbox;var E=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var B=C._sResultMatch;var D="";if(E){D=this._sPastSelections;D+=B+E;if(E!=" "){D+=" ";}}else{D=B;}F.value=D;if(F.type=="textarea"){F.scrollTop=F.scrollHeight;}var A=F.value.length;this._selectText(F,A,A);this._elCurListItem=C;}};YAHOO.widget.AutoComplete.prototype._selectItem=function(A){this._bItemSelected=true;this._updateValue(A);this._sPastSelections=this._elTextbox.value;this._clearInterval();this.itemSelectEvent.fire(this,A,A._oResultData);this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(this._elCurListItem){this._selectItem(this._elCurListItem);}else{this._toggleContainer(false);}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(G){if(this._bContainerOpen){var H=this._elCurListItem,D=-1;if(H){D=H._nItemIndex;}var E=(G==40)?(D+1):(D-1);if(E<-2||E>=this._nDisplayedItems){return;}if(H){this._toggleHighlight(H,"from");this.itemArrowFromEvent.fire(this,H);}if(E==-1){if(this.delimChar){this._elTextbox.value=this._sPastSelections+this._sCurQuery;}else{this._elTextbox.value=this._sCurQuery;}return;}if(E==-2){this._toggleContainer(false);return;}var F=this._elList.childNodes[E],B=this._elContent,C=YAHOO.util.Dom.getStyle(B,"overflow"),I=YAHOO.util.Dom.getStyle(B,"overflowY"),A=((C=="auto")||(C=="scroll")||(I=="auto")||(I=="scroll"));if(A&&(E>-1)&&(E<this._nDisplayedItems)){if(G==40){if((F.offsetTop+F.offsetHeight)>(B.scrollTop+B.offsetHeight)){B.scrollTop=(F.offsetTop+F.offsetHeight)-B.offsetHeight;}else{if((F.offsetTop+F.offsetHeight)<B.scrollTop){B.scrollTop=F.offsetTop;}}}else{if(F.offsetTop<B.scrollTop){this._elContent.scrollTop=F.offsetTop;}else{if(F.offsetTop>(B.scrollTop+B.offsetHeight)){this._elContent.scrollTop=(F.offsetTop+F.offsetHeight)-B.offsetHeight;}}}}this._toggleHighlight(F,"to");this.itemArrowToEvent.fire(this,F);if(this.typeAhead){this._updateValue(F);}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(A,C){var D=YAHOO.util.Event.getTarget(A);var B=D.nodeName.toLowerCase();while(D&&(B!="table")){switch(B){case"body":return;case"li":if(C.prehighlightClassName){C._togglePrehighlight(D,"mouseover");}else{C._toggleHighlight(D,"to");}C.itemMouseOverEvent.fire(C,D);break;case"div":if(YAHOO.util.Dom.hasClass(D,"yui-ac-container")){C._bOverContainer=true;return;}break;default:break;}D=D.parentNode;if(D){B=D.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(A,C){var D=YAHOO.util.Event.getTarget(A);var B=D.nodeName.toLowerCase();while(D&&(B!="table")){switch(B){case"body":return;case"li":if(C.prehighlightClassName){C._togglePrehighlight(D,"mouseout");}else{C._toggleHighlight(D,"from");}C.itemMouseOutEvent.fire(C,D);break;case"ul":C._toggleHighlight(C._elCurListItem,"to");break;case"div":if(YAHOO.util.Dom.hasClass(D,"yui-ac-container")){C._bOverContainer=false;return;}break;default:break;}D=D.parentNode;if(D){B=D.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerClick=function(A,C){var D=YAHOO.util.Event.getTarget(A);var B=D.nodeName.toLowerCase();while(D&&(B!="table")){switch(B){case"body":return;case"li":C._toggleHighlight(D,"to");C._selectItem(D);return;default:break;}D=D.parentNode;if(D){B=D.nodeName.toLowerCase();}}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(A,B){B._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;if(B._nTypeAheadDelayID!=-1){clearTimeout(B._nTypeAheadDelayID);}switch(C){case 9:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(B._elCurListItem){if(B.delimChar&&(B._nKeyCode!=C)){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;case 13:if(!YAHOO.env.ua.opera&&(navigator.userAgent.toLowerCase().indexOf("mac")==-1)||(YAHOO.env.ua.webkit>420)){if(B._elCurListItem){if(B._nKeyCode!=C){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;case 27:B._toggleContainer(false);return;case 39:B._jumpSelection();break;case 38:if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);B._moveSelection(C);}break;case 40:if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);B._moveSelection(C);}break;default:B._bItemSelected=false;B._toggleHighlight(B._elCurListItem,"from");B.textboxKeyEvent.fire(B,C);break;}if(C===18){B._enableIntervalDetection();}B._nKeyCode=C;};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(A,B){var C=A.keyCode;if(YAHOO.env.ua.opera||(navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&(YAHOO.env.ua.webkit<420)){switch(C){case 9:if(B._bContainerOpen){if(B.delimChar){YAHOO.util.Event.stopEvent(A);}if(B._elCurListItem){B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;case 13:if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);if(B._elCurListItem){B._selectItem(B._elCurListItem);}else{B._toggleContainer(false);}}break;default:break;}}else{if(C==229){B._enableIntervalDetection();}}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(A,C){var B=this.value;C._initProps();var D=A.keyCode;if(C._isIgnoreKey(D)){return;
++}if(C._nDelayID!=-1){clearTimeout(C._nDelayID);}C._nDelayID=setTimeout(function(){C._sendQuery(B);},(C.queryDelay*1000));};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(A,B){if(!B._bFocused){B._elTextbox.setAttribute("autocomplete","off");B._bFocused=true;B._sInitInputValue=B._elTextbox.value;B.textboxFocusEvent.fire(B);}};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(A,C){if(!C._bOverContainer||(C._nKeyCode==9)){if(!C._bItemSelected){var B=C._textMatchesOption();if(!C._bContainerOpen||(C._bContainerOpen&&(B===null))){if(C.forceSelection){C._clearSelection();}else{C.unmatchedItemSelectEvent.fire(C,C._sCurQuery);}}else{if(C.forceSelection){C._selectItem(B);}}}C._clearInterval();C._bFocused=false;if(C._sInitInputValue!==C._elTextbox.value){C.textboxChangeEvent.fire(C);}C.textboxBlurEvent.fire(C);C._toggleContainer(false);}else{C._focus();}};YAHOO.widget.AutoComplete.prototype._onWindowUnload=function(A,B){if(B&&B._elTextbox&&B.allowBrowserAutocomplete){B._elTextbox.setAttribute("autocomplete","on");}};YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(A){return this.generateRequest(A);};YAHOO.widget.AutoComplete.prototype.getListItems=function(){var C=[],B=this._elList.childNodes;for(var A=B.length-1;A>=0;A--){C[A]=B[A];}return C;};YAHOO.widget.AutoComplete._cloneObject=function(D){if(!YAHOO.lang.isValue(D)){return D;}var F={};if(YAHOO.lang.isFunction(D)){F=D;}else{if(YAHOO.lang.isArray(D)){var E=[];for(var C=0,B=D.length;C<B;C++){E[C]=YAHOO.widget.AutoComplete._cloneObject(D[C]);}F=E;}else{if(YAHOO.lang.isObject(D)){for(var A in D){if(YAHOO.lang.hasOwnProperty(D,A)){if(YAHOO.lang.isValue(D[A])&&YAHOO.lang.isObject(D[A])||YAHOO.lang.isArray(D[A])){F[A]=YAHOO.widget.AutoComplete._cloneObject(D[A]);}else{F[A]=D[A];}}}}else{F=D;}}}return F;};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/autocomplete/autocomplete.js b/pylons_app/public/js/yui/autocomplete/autocomplete.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/autocomplete/autocomplete.js
+@@ -0,0 +1,2966 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/////////////////////////////////////////////////////////////////////////////
++//
++// YAHOO.widget.DataSource Backwards Compatibility
++//
++/////////////////////////////////////////////////////////////////////////////
++
++YAHOO.widget.DS_JSArray = YAHOO.util.LocalDataSource;
++
++YAHOO.widget.DS_JSFunction = YAHOO.util.FunctionDataSource;
++
++YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) {
++    var DS = new YAHOO.util.XHRDataSource(sScriptURI, oConfigs);
++    DS._aDeprecatedSchema = aSchema;
++    return DS;
++};
++
++YAHOO.widget.DS_ScriptNode = function(sScriptURI, aSchema, oConfigs) {
++    var DS = new YAHOO.util.ScriptNodeDataSource(sScriptURI, oConfigs);
++    DS._aDeprecatedSchema = aSchema;
++    return DS;
++};
++
++YAHOO.widget.DS_XHR.TYPE_JSON = YAHOO.util.DataSourceBase.TYPE_JSON;
++YAHOO.widget.DS_XHR.TYPE_XML = YAHOO.util.DataSourceBase.TYPE_XML;
++YAHOO.widget.DS_XHR.TYPE_FLAT = YAHOO.util.DataSourceBase.TYPE_TEXT;
++
++// TODO: widget.DS_ScriptNode.scriptCallbackParam
++
++
++
++ /**
++ * The AutoComplete control provides the front-end logic for text-entry suggestion and
++ * completion functionality.
++ *
++ * @module autocomplete
++ * @requires yahoo, dom, event, datasource
++ * @optional animation
++ * @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 && YAHOO.lang.isFunction(oDataSource.sendRequest)) {
++            this.dataSource = oDataSource;
++        }
++        else {
++            return;
++        }
++
++        // YAHOO.widget.DataSource schema backwards compatibility
++        // Converted deprecated schema into supported schema
++        // First assume key data is held in position 0 of results array
++        this.key = 0;
++        var schema = oDataSource.responseSchema;
++        // An old school schema has been defined in the deprecated DataSource constructor
++        if(oDataSource._aDeprecatedSchema) {
++            var aDeprecatedSchema = oDataSource._aDeprecatedSchema;
++            if(YAHOO.lang.isArray(aDeprecatedSchema)) {
++                
++                if((oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_JSON) || 
++                (oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_UNKNOWN)) { // Used to default to unknown
++                    // Store the resultsList
++                    schema.resultsList = aDeprecatedSchema[0];
++                    // Store the key
++                    this.key = aDeprecatedSchema[1];
++                    // Only resultsList and key are defined, so grab all the data
++                    schema.fields = (aDeprecatedSchema.length < 3) ? null : aDeprecatedSchema.slice(1);
++                }
++                else if(oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_XML) {
++                    schema.resultNode = aDeprecatedSchema[0];
++                    this.key = aDeprecatedSchema[1];
++                    schema.fields = aDeprecatedSchema.slice(1);
++                }                
++                else if(oDataSource.responseType === YAHOO.util.DataSourceBase.TYPE_TEXT) {
++                    schema.recordDelim = aDeprecatedSchema[0];
++                    schema.fieldDelim = aDeprecatedSchema[1];
++                }                
++                oDataSource.responseSchema = schema;
++            }
++        }
++        
++        // 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;
++        }
++
++        // Default applyLocalFilter setting is to enable for local sources
++        if(this.dataSource.dataType === YAHOO.util.DataSourceBase.TYPE_LOCAL) {
++            this.applyLocalFilter = true;
++        }
++        
++        // 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._initContainerEl();
++        this._initProps();
++        this._initListEl();
++        this._initContainerHelperEls();
++
++        // Set up events
++        var oSelf = this;
++        var elTextbox = this._elTextbox;
++
++        // 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(elContainer,"mouseover",oSelf._onContainerMouseover,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"mouseout",oSelf._onContainerMouseout,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"click",oSelf._onContainerClick,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"scroll",oSelf._onContainerScroll,oSelf);
++        YAHOO.util.Event.addListener(elContainer,"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.containerPopulateEvent = new YAHOO.util.CustomEvent("containerPopulate", 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);
++        this.textboxChangeEvent = new YAHOO.util.CustomEvent("textboxChange", 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;
++
++/**
++ * By default, results from local DataSources will pass through the filterResults
++ * method to apply a client-side matching algorithm. 
++ * 
++ * @property applyLocalFilter
++ * @type Boolean
++ * @default true for local arrays and json, otherwise false
++ */
++YAHOO.widget.AutoComplete.prototype.applyLocalFilter = null;
++
++/**
++ * When applyLocalFilter is true, the local filtering algorthim can have case sensitivity
++ * enabled. 
++ * 
++ * @property queryMatchCase
++ * @type Boolean
++ * @default false
++ */
++YAHOO.widget.AutoComplete.prototype.queryMatchCase = false;
++
++/**
++ * When applyLocalFilter is true, results can  be locally filtered to return
++ * matching strings that "contain" the query string rather than simply "start with"
++ * the query string.
++ * 
++ * @property queryMatchContains
++ * @type Boolean
++ * @default false
++ */
++YAHOO.widget.AutoComplete.prototype.queryMatchContains = false;
++
++/**
++ * Enables query subset matching. When the DataSource's cache is enabled 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.AutoComplete.prototype.queryMatchSubset = false;
++
++/**
++ * 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. If 
++ * typeAhead is also enabled, this value must always be less than the typeAheadDelay
++ * in order to avoid certain race conditions. 
++ *
++ * @property queryDelay
++ * @type Number
++ * @default 0.2
++ */
++YAHOO.widget.AutoComplete.prototype.queryDelay = 0.2;
++
++/**
++ * If typeAhead is true, number of seconds to delay before updating input with
++ * typeAhead value. In order to prevent certain race conditions, this value must
++ * always be greater than the queryDelay.
++ *
++ * @property typeAheadDelay
++ * @type Number
++ * @default 0.5
++ */
++YAHOO.widget.AutoComplete.prototype.typeAheadDelay = 0.5;
++
++/**
++ * When IME usage is detected or interval detection is explicitly enabled,
++ * AutoComplete will detect the input value at the given interval and send a
++ * query if the value has changed.
++ *
++ * @property queryInterval
++ * @type Number
++ * @default 500
++ */
++YAHOO.widget.AutoComplete.prototype.queryInterval = 500;
++
++/**
++ * 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;
++
++/**
++ * If autohighlight is enabled, whether or not the input field should be automatically updated
++ * with the first query result as the user types, auto-selecting the substring portion
++ * of the first result that the user has not yet 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;
++
++/**
++ * Enabling this feature prevents the toggling of the container to a collapsed state.
++ * Setting to true does not automatically trigger the opening of the container.
++ * Implementers are advised to pre-load the container with an explicit "sendQuery()" call.   
++ *
++ * @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;
++
++/**
++ * Whether or not the input field should be updated with selections.
++ *
++ * @property suppressInputUpdate
++ * @type Boolean
++ * @default false
++ */
++YAHOO.widget.AutoComplete.prototype.suppressInputUpdate = false;
++
++/**
++ * For backward compatibility to pre-2.6.0 formatResults() signatures, setting
++ * resultsTypeList to true will take each object literal result returned by
++ * DataSource and flatten into an array.  
++ *
++ * @property resultTypeList
++ * @type Boolean
++ * @default true
++ */
++YAHOO.widget.AutoComplete.prototype.resultTypeList = true;
++
++/**
++ * For XHR DataSources, AutoComplete will automatically insert a "?" between the server URI and 
++ * the "query" param/value pair. To prevent this behavior, implementers should
++ * set this value to false. To more fully customize the query syntax, implementers
++ * should override the generateRequest() method. 
++ *
++ * @property queryQuestionMark
++ * @type Boolean
++ * @default true
++ */
++YAHOO.widget.AutoComplete.prototype.queryQuestionMark = true;
++
++/**
++ * If true, before each time the container expands, the container element will be
++ * positioned to snap to the bottom-left corner of the input element. If
++ * autoSnapContainer is set to false, this positioning will not be done.  
++ *
++ * @property autoSnapContainer
++ * @type Boolean
++ * @default true
++ */
++YAHOO.widget.AutoComplete.prototype.autoSnapContainer = true;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// 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 DOM reference to input element.
++ *
++ * @method getInputEl
++ * @return {HTMLELement} DOM reference to input element.
++ */
++YAHOO.widget.AutoComplete.prototype.getInputEl = function() {
++    return this._elTextbox;
++};
++
++ /**
++ * Returns DOM reference to container element.
++ *
++ * @method getContainerEl
++ * @return {HTMLELement} DOM reference to container element.
++ */
++YAHOO.widget.AutoComplete.prototype.getContainerEl = function() {
++    return this._elContainer;
++};
++
++ /**
++ * Returns true if widget instance is currently active.
++ *
++ * @method isFocused
++ * @return {Boolean} Returns true if widget instance is currently active.
++ */
++YAHOO.widget.AutoComplete.prototype.isFocused = function() {
++    return this._bFocused;
++};
++
++ /**
++ * 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 &lt;ul&gt; element that displays query results within the results container.
++ *
++ * @method getListEl
++ * @return {HTMLElement[]} Reference to &lt;ul&gt; element within the results container.
++ */
++YAHOO.widget.AutoComplete.prototype.getListEl = function() {
++    return this._elList;
++};
++
++/**
++ * Public accessor to the matching string associated with a given &lt;li&gt; result.
++ *
++ * @method getListItemMatch
++ * @param elListItem {HTMLElement} Reference to &lt;LI&gt; element.
++ * @return {String} Matching string.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItemMatch = function(elListItem) {
++    if(elListItem._sResultMatch) {
++        return elListItem._sResultMatch;
++    }
++    else {
++        return null;
++    }
++};
++
++/**
++ * Public accessor to the result data associated with a given &lt;li&gt; result.
++ *
++ * @method getListItemData
++ * @param elListItem {HTMLElement} Reference to &lt;LI&gt; element.
++ * @return {Object} Result data.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItemData = function(elListItem) {
++    if(elListItem._oResultData) {
++        return elListItem._oResultData;
++    }
++    else {
++        return null;
++    }
++};
++
++/**
++ * Public accessor to the index of the associated with a given &lt;li&gt; result.
++ *
++ * @method getListItemIndex
++ * @param elListItem {HTMLElement} Reference to &lt;LI&gt; element.
++ * @return {Number} Index.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItemIndex = function(elListItem) {
++    if(YAHOO.lang.isNumber(elListItem._nItemIndex)) {
++        return elListItem._nItemIndex;
++    }
++    else {
++        return null;
++    }
++};
++
++/**
++ * 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 = "";
++        }
++        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 = "";
++        }
++        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;
++        YAHOO.util.Event.purgeElement(elBody, true);
++        if(sBody) {
++            elBody.innerHTML = sBody;
++            elBody.style.display = "";
++        }
++        else {
++            elBody.innerHTML = "";
++            elBody.style.display = "none";
++        }
++        this._elList = null;
++    }
++};
++
++/**
++* A function that converts an AutoComplete query into a request value which is then
++* passed to the DataSource's sendRequest method in order to retrieve data for 
++* the query. By default, returns a String with the syntax: "query={query}"
++* Implementers can customize this method for custom request syntaxes.
++* 
++* @method generateRequest
++* @param sQuery {String} Query string
++* @return {MIXED} Request
++*/
++YAHOO.widget.AutoComplete.prototype.generateRequest = function(sQuery) {
++    var dataType = this.dataSource.dataType;
++    
++    // Transform query string in to a request for remote data
++    // By default, local data doesn't need a transformation, just passes along the query as is.
++    if(dataType === YAHOO.util.DataSourceBase.TYPE_XHR) {
++        // By default, XHR GET requests look like "{scriptURI}?{scriptQueryParam}={sQuery}&{scriptQueryAppend}"
++        if(!this.dataSource.connMethodPost) {
++            sQuery = (this.queryQuestionMark ? "?" : "") + (this.dataSource.scriptQueryParam || "query") + "=" + sQuery + 
++                (this.dataSource.scriptQueryAppend ? ("&" + this.dataSource.scriptQueryAppend) : "");        
++        }
++        // By default, XHR POST bodies are sent to the {scriptURI} like "{scriptQueryParam}={sQuery}&{scriptQueryAppend}"
++        else {
++            sQuery = (this.dataSource.scriptQueryParam || "query") + "=" + sQuery + 
++                (this.dataSource.scriptQueryAppend ? ("&" + this.dataSource.scriptQueryAppend) : "");
++        }
++    }
++    // By default, remote script node requests look like "{scriptURI}&{scriptCallbackParam}={callbackString}&{scriptQueryParam}={sQuery}&{scriptQueryAppend}"
++    else if(dataType === YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE) {
++        sQuery = "&" + (this.dataSource.scriptQueryParam || "query") + "=" + sQuery + 
++            (this.dataSource.scriptQueryAppend ? ("&" + this.dataSource.scriptQueryAppend) : "");    
++    }
++    
++    return sQuery;
++};
++
++/**
++ * Makes query request to the DataSource.
++ *
++ * @method sendQuery
++ * @param sQuery {String} Query string.
++ */
++YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
++    // Activate focus for a new interaction
++    this._bFocused = true;
++    
++    // Adjust programatically sent queries to look like they were input by user
++    // when delimiters are enabled
++    var newQuery = (this.delimChar) ? this._elTextbox.value + sQuery : sQuery;
++    this._sendQuery(newQuery);
++};
++
++/**
++ * Snaps container to bottom-left corner of input element
++ *
++ * @method snapContainer
++ */
++YAHOO.widget.AutoComplete.prototype.snapContainer = function() {
++    var oTextbox = this._elTextbox,
++        pos = YAHOO.util.Dom.getXY(oTextbox);
++    pos[1] += YAHOO.util.Dom.get(oTextbox).offsetHeight + 2;
++    YAHOO.util.Dom.setXY(this._elContainer,pos);
++};
++
++/**
++ * Expands container.
++ *
++ * @method expandContainer
++ */
++YAHOO.widget.AutoComplete.prototype.expandContainer = function() {
++    this._toggleContainer(true);
++};
++
++/**
++ * Collapses container.
++ *
++ * @method collapseContainer
++ */
++YAHOO.widget.AutoComplete.prototype.collapseContainer = function() {
++    this._toggleContainer(false);
++};
++
++/**
++ * Clears entire list of suggestions.
++ *
++ * @method clearList
++ */
++YAHOO.widget.AutoComplete.prototype.clearList = function() {
++    var allItems = this._elList.childNodes,
++        i=allItems.length-1;
++    for(; i>-1; i--) {
++          allItems[i].style.display = "none";
++    }
++};
++
++/**
++ * Handles subset matching for when queryMatchSubset is enabled.
++ *
++ * @method getSubsetMatches
++ * @param sQuery {String} Query string.
++ * @return {Object} oParsedResponse or null. 
++ */
++YAHOO.widget.AutoComplete.prototype.getSubsetMatches = function(sQuery) {
++    var subQuery, oCachedResponse, subRequest;
++    // Loop through substrings of each cached element's query property...
++    for(var i = sQuery.length; i >= this.minQueryLength ; i--) {
++        subRequest = this.generateRequest(sQuery.substr(0,i));
++        this.dataRequestEvent.fire(this, subQuery, subRequest);
++        
++        // If a substring of the query is found in the cache
++        oCachedResponse = this.dataSource.getCachedResponse(subRequest);
++        if(oCachedResponse) {
++            return this.filterResults.apply(this.dataSource, [sQuery, oCachedResponse, oCachedResponse, {scope:this}]);
++        }
++    }
++    return null;
++};
++
++/**
++ * Executed by DataSource (within DataSource scope via doBeforeParseData()) to
++ * handle responseStripAfter cleanup.
++ *
++ * @method preparseRawResponse
++ * @param sQuery {String} Query string.
++ * @return {Object} oParsedResponse or null. 
++ */
++YAHOO.widget.AutoComplete.prototype.preparseRawResponse = function(oRequest, oFullResponse, oCallback) {
++    var nEnd = ((this.responseStripAfter !== "") && (oFullResponse.indexOf)) ?
++        oFullResponse.indexOf(this.responseStripAfter) : -1;
++    if(nEnd != -1) {
++        oFullResponse = oFullResponse.substring(0,nEnd);
++    }
++    return oFullResponse;
++};
++
++/**
++ * Executed by DataSource (within DataSource scope via doBeforeCallback()) to
++ * filter results through a simple client-side matching algorithm. 
++ *
++ * @method filterResults
++ * @param sQuery {String} Original request.
++ * @param oFullResponse {Object} Full response object.
++ * @param oParsedResponse {Object} Parsed response object.
++ * @param oCallback {Object} Callback object. 
++ * @return {Object} Filtered response object.
++ */
++
++YAHOO.widget.AutoComplete.prototype.filterResults = function(sQuery, oFullResponse, oParsedResponse, oCallback) {
++    // If AC has passed a query string value back to itself, grab it
++    if(oCallback && oCallback.argument && oCallback.argument.query) {
++        sQuery = oCallback.argument.query;
++    }
++
++    // Only if a query string is available to match against
++    if(sQuery && sQuery !== "") {
++        // First make a copy of the oParseResponse
++        oParsedResponse = YAHOO.widget.AutoComplete._cloneObject(oParsedResponse);
++        
++        var oAC = oCallback.scope,
++            oDS = this,
++            allResults = oParsedResponse.results, // the array of results
++            filteredResults = [], // container for filtered results,
++            nMax = oAC.maxResultsDisplayed, // max to find
++            bMatchCase = (oDS.queryMatchCase || oAC.queryMatchCase), // backward compat
++            bMatchContains = (oDS.queryMatchContains || oAC.queryMatchContains); // backward compat
++            
++        // Loop through each result object...
++        for(var i=0, len=allResults.length; i<len; i++) {
++            var oResult = allResults[i];
++
++            // Grab the data to match against from the result object...
++            var sResult = null;
++            
++            // Result object is a simple string already
++            if(YAHOO.lang.isString(oResult)) {
++                sResult = oResult;
++            }
++            // Result object is an array of strings
++            else if(YAHOO.lang.isArray(oResult)) {
++                sResult = oResult[0];
++            
++            }
++            // Result object is an object literal of strings
++            else if(this.responseSchema.fields) {
++                var key = this.responseSchema.fields[0].key || this.responseSchema.fields[0];
++                sResult = oResult[key];
++            }
++            // Backwards compatibility
++            else if(this.key) {
++                sResult = oResult[this.key];
++            }
++            
++            if(YAHOO.lang.isString(sResult)) {
++                
++                var sKeyIndex = (bMatchCase) ?
++                sResult.indexOf(decodeURIComponent(sQuery)) :
++                sResult.toLowerCase().indexOf(decodeURIComponent(sQuery).toLowerCase());
++
++                // 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 the match
++                    filteredResults.push(oResult);
++                }
++            }
++            
++            // Filter no more if maxResultsDisplayed is reached
++            if(len>nMax && filteredResults.length===nMax) {
++                break;
++            }
++        }
++        oParsedResponse.results = filteredResults;
++    }
++    else {
++    }
++    
++    return oParsedResponse;
++};
++
++/**
++ * Handles response for display. This is the callback function method passed to
++ * YAHOO.util.DataSourceBase#sendRequest so results from the DataSource are
++ * returned to the AutoComplete instance.
++ *
++ * @method handleResponse
++ * @param sQuery {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++YAHOO.widget.AutoComplete.prototype.handleResponse = function(sQuery, oResponse, oPayload) {
++    if((this instanceof YAHOO.widget.AutoComplete) && this._sName) {
++        this._populateList(sQuery, oResponse, oPayload);
++    }
++};
++
++/**
++ * Overridable method called before container is loaded with result data.
++ *
++ * @method doBeforeLoadData
++ * @param sQuery {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ * @return {Boolean} Return true to continue loading data, false to cancel.
++ */
++YAHOO.widget.AutoComplete.prototype.doBeforeLoadData = function(sQuery, oResponse, oPayload) {
++    return true;
++};
++
++/**
++ * Overridable method that returns HTML markup for one result to be populated
++ * as innerHTML of an &lt;LI&gt; element. 
++ *
++ * @method formatResult
++ * @param oResultData {Object} Result data object.
++ * @param sQuery {String} The corresponding query string.
++ * @param sResultMatch {HTMLElement} The current query string. 
++ * @return {String} HTML markup of formatted result data.
++ */
++YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultData, sQuery, sResultMatch) {
++    var sMarkup = (sResultMatch) ? sResultMatch : "";
++    return sMarkup;
++};
++
++/**
++ * 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;
++};
++
++
++/**
++ * 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 myAutoComplete = 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.containerPopulateEvent.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();
++    this.textboxChangeEvent.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 request to the DataSource.
++ * 
++ * @event dataRequestEvent
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ * @param sQuery {String} The query string. 
++ * @param oRequest {Object} The request.
++ */
++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.
++ * @param oResponse {Object} The response object, if available.
++ */
++YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null;
++
++/**
++ * Fired when the results container is populated.
++ *
++ * @event containerPopulateEvent
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ */
++YAHOO.widget.AutoComplete.prototype.containerPopulateEvent = 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.
++ * @param sSelection {String} The selected string.  
++ */
++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.
++ * @param sClearedValue {String} The cleared value (including delimiters if applicable). 
++ */
++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;
++
++/**
++ * Fired when the input field value has changed when it loses focus.
++ *
++ * @event textboxChangeEvent
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ */
++YAHOO.widget.AutoComplete.prototype.textboxChangeEvent = 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 widget instance is currently active. 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 = false;
++
++/**
++ * 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;
++
++/**
++ * Internal reference to &lt;ul&gt; elements that contains query results within the
++ * results container.
++ *
++ * @property _elList
++ * @type HTMLElement
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._elList = null;
++
++/*
++ * Array of &lt;li&gt; elements references that contain query results within the
++ * results container.
++ *
++ * @property _aListItemEls
++ * @type HTMLElement[]
++ * @private
++ */
++//YAHOO.widget.AutoComplete.prototype._aListItemEls = 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;
++
++/**
++ * Selections from previous queries (for saving delimited queries).
++ *
++ * @property _sPastSelections
++ * @type String
++ * @default "" 
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._sPastSelections = "";
++
++/**
++ * Stores initial input value used to determine if textboxChangeEvent should be fired.
++ *
++ * @property _sInitInputValue
++ * @type String
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._sInitInputValue = null;
++
++/**
++ * Pointer to the currently highlighted &lt;li&gt; element in the container.
++ *
++ * @property _elCurListItem
++ * @type HTMLElement
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._elCurListItem = null;
++
++/**
++ * Pointer to the currently pre-highlighted &lt;li&gt; element in the container.
++ *
++ * @property _elCurPrehighlightItem
++ * @type HTMLElement
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._elCurPrehighlightItem = 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;
++
++/**
++ * TypeAhead delay timeout ID.
++ *
++ * @property _nTypeAheadDelayID
++ * @type Number
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID = -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 typeAheadDelay = this.typeAheadDelay;
++    if(!YAHOO.lang.isNumber(typeAheadDelay) || (typeAheadDelay < 0)) {
++        this.typeAheadDelay = 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 _initContainerHelperEls
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._initContainerHelperEls = function() {
++    if(this.useShadow && !this._elShadow) {
++        var elShadow = document.createElement("div");
++        elShadow.className = "yui-ac-shadow";
++        elShadow.style.width = 0;
++        elShadow.style.height = 0;
++        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 = 0;
++        elIFrame.style.height = 0;
++        elIFrame.style.padding = 0;
++        elIFrame.tabIndex = -1;
++        elIFrame.role = "presentation";
++        elIFrame.title = "Presentational iframe shim";
++        this._elIFrame = this._elContainer.appendChild(elIFrame);
++    }
++};
++
++/**
++ * Initializes the results container once at object creation
++ *
++ * @method _initContainerEl
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._initContainerEl = function() {
++    YAHOO.util.Dom.addClass(this._elContainer, "yui-ac-container");
++    
++    if(!this._elContent) {
++        // The elContent div is assigned DOM listeners and 
++        // 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 _initListEl
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._initListEl = function() {
++    var nListLength = this.maxResultsDisplayed,
++        elList = this._elList || document.createElement("ul"),
++        elListItem;
++    
++    while(elList.childNodes.length < nListLength) {
++        elListItem = document.createElement("li");
++        elListItem.style.display = "none";
++        elListItem._nItemIndex = elList.childNodes.length;
++        elList.appendChild(elListItem);
++    }
++    if(!this._elList) {
++        var elBody = this._elBody;
++        YAHOO.util.Event.purgeElement(elBody, true);
++        elBody.innerHTML = "";
++        this._elList = elBody.appendChild(elList);
++    }
++    
++    this._elBody.style.display = "";
++};
++
++/**
++ * Focuses input field.
++ *
++ * @method _focus
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._focus = function() {
++    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
++    var oSelf = this;
++    setTimeout(function() {
++        try {
++            oSelf._elTextbox.focus();
++        }
++        catch(e) {
++        }
++    },0);
++};
++
++/**
++ * Enables interval detection for IME support.
++ *
++ * @method _enableIntervalDetection
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() {
++    var oSelf = this;
++    if(!oSelf._queryInterval && oSelf.queryInterval) {
++        oSelf._queryInterval = setInterval(function() { oSelf._onInterval(); }, oSelf.queryInterval);
++    }
++};
++
++/**
++ * Enables interval detection for a less performant but brute force mechanism to
++ * detect input values at an interval set by queryInterval and send queries if
++ * input value has changed. Needed to support right-click+paste or shift+insert
++ * edge cases. Please note that intervals are cleared at the end of each interaction,
++ * so enableIntervalDetection must be called for each new interaction. The
++ * recommended approach is to call it in response to textboxFocusEvent.
++ *
++ * @method enableIntervalDetection
++ */
++YAHOO.widget.AutoComplete.prototype.enableIntervalDetection =
++    YAHOO.widget.AutoComplete.prototype._enableIntervalDetection;
++
++/**
++ * Enables query triggers based on text input detection by intervals (rather
++ * than by key events).
++ *
++ * @method _onInterval
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._onInterval = 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 _clearInterval
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._clearInterval = function() {
++    if(this._queryInterval) {
++        clearInterval(this._queryInterval);
++        this._queryInterval = null;
++    }
++};
++
++/**
++ * 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
++            (nKeyCode == 229) // Bug 2041973: Korean XP fires 2 keyup events, the key and 229
++        ) { 
++        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 < 0) {
++        this._toggleContainer(false);
++        return;
++    }
++    // Delimiter has been enabled
++    if(this.delimChar) {
++        var extraction = this._extractQuery(sQuery);
++        // Here is the query itself
++        sQuery = extraction.query;
++        // ...and save the rest of the string for later
++        this._sPastSelections = extraction.previous;
++    }
++
++    // 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 is being made
++    
++    // Subset matching
++    if(this.dataSource.queryMatchSubset || this.queryMatchSubset) { // backward compat
++        var oResponse = this.getSubsetMatches(sQuery);
++        if(oResponse) {
++            this.handleResponse(sQuery, oResponse, {query: sQuery});
++            return;
++        }
++    }
++    
++    if(this.dataSource.responseStripAfter) {
++        this.dataSource.doBeforeParseData = this.preparseRawResponse;
++    }
++    if(this.applyLocalFilter) {
++        this.dataSource.doBeforeCallback = this.filterResults;
++    }
++    
++    var sRequest = this.generateRequest(sQuery);
++    this.dataRequestEvent.fire(this, sQuery, sRequest);
++
++    this.dataSource.sendRequest(sRequest, {
++            success : this.handleResponse,
++            failure : this.handleResponse,
++            scope   : this,
++            argument: {
++                query: sQuery
++            }
++    });
++};
++
++/**
++ * Populates the given &lt;li&gt; element with return value from formatResult().
++ *
++ * @method _populateListItem
++ * @param elListItem {HTMLElement} The LI element.
++ * @param oResult {Object} The result object.
++ * @param sCurQuery {String} The query string.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._populateListItem = function(elListItem, oResult, sQuery) {
++    elListItem.innerHTML = this.formatResult(oResult, sQuery, elListItem._sResultMatch);
++};
++
++/**
++ * Populates the array of &lt;li&gt; elements in the container with query
++ * results.
++ *
++ * @method _populateList
++ * @param sQuery {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, oResponse, oPayload) {
++    // Clear previous timeout
++    if(this._nTypeAheadDelayID != -1) {
++        clearTimeout(this._nTypeAheadDelayID);
++    }
++        
++    sQuery = (oPayload && oPayload.query) ? oPayload.query : sQuery;
++    
++    // Pass data through abstract method for any transformations
++    var ok = this.doBeforeLoadData(sQuery, oResponse, oPayload);
++
++    // Data is ok
++    if(ok && !oResponse.error) {
++        this.dataReturnEvent.fire(this, sQuery, oResponse.results);
++        
++        // Continue only if instance is still active (i.e., user hasn't already moved on)
++        if(this._bFocused) {
++            // Store state for this interaction
++            var sCurQuery = decodeURIComponent(sQuery);
++            this._sCurQuery = sCurQuery;
++            this._bItemSelected = false;
++        
++            var allResults = oResponse.results,
++                nItemsToShow = Math.min(allResults.length,this.maxResultsDisplayed),
++                sMatchKey = (this.dataSource.responseSchema.fields) ? 
++                    (this.dataSource.responseSchema.fields[0].key || this.dataSource.responseSchema.fields[0]) : 0;
++            
++            if(nItemsToShow > 0) {
++                // Make sure container and helpers are ready to go
++                if(!this._elList || (this._elList.childNodes.length < nItemsToShow)) {
++                    this._initListEl();
++                }
++                this._initContainerHelperEls();
++                
++                var allListItemEls = this._elList.childNodes;
++                // Fill items with data from the bottom up
++                for(var i = nItemsToShow-1; i >= 0; i--) {
++                    var elListItem = allListItemEls[i],
++                    oResult = allResults[i];
++                    
++                    // Backward compatibility
++                    if(this.resultTypeList) {
++                        // Results need to be converted back to an array
++                        var aResult = [];
++                        // Match key is first
++                        aResult[0] = (YAHOO.lang.isString(oResult)) ? oResult : oResult[sMatchKey] || oResult[this.key];
++                        // Add additional data to the result array
++                        var fields = this.dataSource.responseSchema.fields;
++                        if(YAHOO.lang.isArray(fields) && (fields.length > 1)) {
++                            for(var k=1, len=fields.length; k<len; k++) {
++                                aResult[aResult.length] = oResult[fields[k].key || fields[k]];
++                            }
++                        }
++                        // No specific fields defined, so pass along entire data object
++                        else {
++                            // Already an array
++                            if(YAHOO.lang.isArray(oResult)) {
++                                aResult = oResult;
++                            }
++                            // Simple string 
++                            else if(YAHOO.lang.isString(oResult)) {
++                                aResult = [oResult];
++                            }
++                            // Object
++                            else {
++                                aResult[1] = oResult;
++                            }
++                        }
++                        oResult = aResult;
++                    }
++
++                    // The matching value, including backward compatibility for array format and safety net
++                    elListItem._sResultMatch = (YAHOO.lang.isString(oResult)) ? oResult : (YAHOO.lang.isArray(oResult)) ? oResult[0] : (oResult[sMatchKey] || "");
++                    elListItem._oResultData = oResult; // Additional data
++                    this._populateListItem(elListItem, oResult, sCurQuery);
++                    elListItem.style.display = "";
++                }
++        
++                // Clear out extraneous items
++                if(nItemsToShow < allListItemEls.length) {
++                    var extraListItem;
++                    for(var j = allListItemEls.length-1; j >= nItemsToShow; j--) {
++                        extraListItem = allListItemEls[j];
++                        extraListItem.style.display = "none";
++                    }
++                }
++                
++                this._nDisplayedItems = nItemsToShow;
++                
++                this.containerPopulateEvent.fire(this, sQuery, allResults);
++                
++                // Highlight the first item
++                if(this.autoHighlight) {
++                    var elFirstListItem = this._elList.firstChild;
++                    this._toggleHighlight(elFirstListItem,"to");
++                    this.itemArrowToEvent.fire(this, elFirstListItem);
++                    this._typeAhead(elFirstListItem,sQuery);
++                }
++                // Unhighlight any previous time
++                else {
++                    this._toggleHighlight(this._elCurListItem,"from");
++                }
++        
++                // Pre-expansion stuff
++                ok = this._doBeforeExpandContainer(this._elTextbox, this._elContainer, sQuery, allResults);
++                
++                // Expand the container
++                this._toggleContainer(ok);
++            }
++            else {
++                this._toggleContainer(false);
++            }
++
++            return;
++        }
++    }
++    // Error
++    else {
++        this.dataErrorEvent.fire(this, sQuery, oResponse);
++    }
++        
++};
++
++/**
++ * Called before container expands, by default snaps container to the
++ * bottom-left corner of the input element, then calls public overrideable method.
++ *
++ * @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.
++ * @private 
++ */
++YAHOO.widget.AutoComplete.prototype._doBeforeExpandContainer = function(elTextbox, elContainer, sQuery, aResults) {
++    if(this.autoSnapContainer) {
++        this.snapContainer();
++    }
++
++    return this.doBeforeExpandContainer(elTextbox, elContainer, 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 extraction = (this.delimChar) ? this._extractQuery(this._elTextbox.value) :
++            {previous:"",query:this._elTextbox.value};
++    this._elTextbox.value = extraction.previous;
++    this.selectionEnforceEvent.fire(this, extraction.query);
++};
++
++/**
++ * 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 elMatch = null;
++
++    for(var i=0; i<this._nDisplayedItems; i++) {
++        var elListItem = this._elList.childNodes[i];
++        var sMatch = ("" + elListItem._sResultMatch).toLowerCase();
++        if(sMatch == this._sCurQuery.toLowerCase()) {
++            elMatch = elListItem;
++            break;
++        }
++    }
++    return(elMatch);
++};
++
++/**
++ * 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 elListItem {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(elListItem, sQuery) {
++    // Don't typeAhead if turned off or is backspace
++    if(!this.typeAhead || (this._nKeyCode == 8)) {
++        return;
++    }
++
++    var oSelf = this,
++        elTextbox = this._elTextbox;
++        
++    // Only if text selection is supported
++    if(elTextbox.setSelectionRange || elTextbox.createTextRange) {
++        // Set and store timeout for this typeahead
++        this._nTypeAheadDelayID = setTimeout(function() {
++                // Select the portion of text that the user has not typed
++                var nStart = elTextbox.value.length; // any saved queries plus what user has typed
++                oSelf._updateValue(elListItem);
++                var nEnd = elTextbox.value.length;
++                oSelf._selectText(elTextbox,nStart,nEnd);
++                var sPrefill = elTextbox.value.substr(nStart,nEnd);
++                oSelf.typeAheadEvent.fire(oSelf,sQuery,sPrefill);
++            },(this.typeAheadDelay*1000));            
++    }
++};
++
++/**
++ * 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();
++    }
++};
++
++/**
++ * Extracts rightmost query from delimited string.
++ *
++ * @method _extractQuery
++ * @param sQuery {String} String to parse
++ * @return {Object} Object literal containing properties "query" and "previous".  
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._extractQuery = function(sQuery) {
++    var aDelimChar = this.delimChar,
++        nDelimIndex = -1,
++        nNewIndex, nQueryStart,
++        i = aDelimChar.length-1,
++        sPrevious;
++        
++    // Loop through all possible delimiters and find the rightmost one in the query
++    // A " " may be a false positive if they are defined as delimiters AND
++    // are used to separate delimited queries
++    for(; i >= 0; i--) {
++        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 in the query so extract the latest query from past selections
++    if(nDelimIndex > -1) {
++        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
++        sPrevious = sQuery.substring(0,nQueryStart);
++        // Here is the query itself
++        sQuery = sQuery.substr(nQueryStart);
++    }
++    // No delimiter found in the query, so there are no selections from past queries
++    else {
++        sPrevious = "";
++    }
++    
++    return {
++        previous: sPrevious,
++        query: sQuery
++    };
++};
++
++/**
++ * 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 width = this._elContent.offsetWidth + "px";
++    var height = this._elContent.offsetHeight + "px";
++
++    if(this.useIFrame && this._elIFrame) {
++    var elIFrame = this._elIFrame;
++        if(bShow) {
++            elIFrame.style.width = width;
++            elIFrame.style.height = height;
++            elIFrame.style.padding = "";
++        }
++        else {
++            elIFrame.style.width = 0;
++            elIFrame.style.height = 0;
++            elIFrame.style.padding = 0;
++        }
++    }
++    if(this.useShadow && this._elShadow) {
++    var elShadow = this._elShadow;
++        if(bShow) {
++            elShadow.style.width = width;
++            elShadow.style.height = height;
++        }
++        else {
++            elShadow.style.width = 0;
++            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;
++
++    // If implementer has container always open and it's already open, don't mess with it
++    // Container is initialized with display "none" so it may need to be shown first time through
++    if(this.alwaysShowContainer && this._bContainerOpen) {
++        return;
++    }
++    
++    // Reset states
++    if(!bShow) {
++        this._toggleHighlight(this._elCurListItem,"from");
++        this._nDisplayedItems = 0;
++        this._sCurQuery = null;
++        
++        // Container is already closed, so don't bother with changing the UI
++        if(this._elContent.style.display == "none") {
++            return;
++        }
++    }
++
++    // If animation is enabled...
++    var oAnim = this._oAnim;
++    if(oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {
++        if(oAnim.isAnimated()) {
++            oAnim.stop(true);
++        }
++
++        // Clone container to grab current size offscreen
++        var oClone = this._elContent.cloneNode(true);
++        elContainer.appendChild(oClone);
++        oClone.style.top = "-9000px";
++        oClone.style.width = "";
++        oClone.style.height = "";
++        oClone.style.display = "";
++
++        // 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._toggleContainerHelpers(true);
++                oSelf._bContainerOpen = bShow;
++                oSelf.containerExpandEvent.fire(oSelf);
++            }
++            else {
++                oSelf._elContent.style.display = "none";
++                oSelf._bContainerOpen = bShow;
++                oSelf.containerCollapseEvent.fire(oSelf);
++            }
++     	};
++
++        // Display container and animate it
++        this._toggleContainerHelpers(false); // Bug 1424486: Be early to hide, late to show;
++        this._elContent.style.display = "";
++        oAnim.onComplete.subscribe(onAnimComplete);
++        oAnim.animate();
++    }
++    // Else don't animate, just show or hide
++    else {
++        if(bShow) {
++            this._elContent.style.display = "";
++            this._toggleContainerHelpers(true);
++            this._bContainerOpen = bShow;
++            this.containerExpandEvent.fire(this);
++        }
++        else {
++            this._toggleContainerHelpers(false);
++            this._elContent.style.display = "none";
++            this._bContainerOpen = bShow;
++            this.containerCollapseEvent.fire(this);
++        }
++   }
++
++};
++
++/**
++ * Toggles the highlight on or off for an item in the container, and also cleans
++ * up highlighting of any previous item.
++ *
++ * @method _toggleHighlight
++ * @param elNewListItem {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(elNewListItem, sType) {
++    if(elNewListItem) {
++        var sHighlight = this.highlightClassName;
++        if(this._elCurListItem) {
++            // Remove highlight from old item
++            YAHOO.util.Dom.removeClass(this._elCurListItem, sHighlight);
++            this._elCurListItem = null;
++        }
++    
++        if((sType == "to") && sHighlight) {
++            // Apply highlight to new item
++            YAHOO.util.Dom.addClass(elNewListItem, sHighlight);
++            this._elCurListItem = elNewListItem;
++        }
++    }
++};
++
++/**
++ * Toggles the pre-highlight on or off for an item in the container, and also cleans
++ * up pre-highlighting of any previous item.
++ *
++ * @method _togglePrehighlight
++ * @param elNewListItem {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(elNewListItem, sType) {
++    var sPrehighlight = this.prehighlightClassName;
++
++    if(this._elCurPrehighlightItem) {
++        YAHOO.util.Dom.removeClass(this._elCurPrehighlightItem, sPrehighlight);
++    }
++    if(elNewListItem == this._elCurListItem) {
++        return;
++    }
++
++    if((sType == "mouseover") && sPrehighlight) {
++        // Apply prehighlight to new item
++        YAHOO.util.Dom.addClass(elNewListItem, sPrehighlight);
++        this._elCurPrehighlightItem = elNewListItem;
++    }
++    else {
++        // Remove prehighlight from old item
++        YAHOO.util.Dom.removeClass(elNewListItem, 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 elListItem {HTMLElement} The &lt;li&gt; element item with which to update the value.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._updateValue = function(elListItem) {
++    if(!this.suppressInputUpdate) {    
++        var elTextbox = this._elTextbox;
++        var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null;
++        var sResultMatch = elListItem._sResultMatch;
++    
++        // Calculate the new value
++        var sNewValue = "";
++        if(sDelimChar) {
++            // Preserve selections from past queries
++            sNewValue = this._sPastSelections;
++            // Add new selection plus delimiter
++            sNewValue += sResultMatch + sDelimChar;
++            if(sDelimChar != " ") {
++                sNewValue += " ";
++            }
++        }
++        else { 
++            sNewValue = sResultMatch;
++        }
++        
++        // Update input field
++        elTextbox.value = sNewValue;
++    
++        // 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._elCurListItem = elListItem;
++    }
++};
++
++/**
++ * Selects a result item from the container
++ *
++ * @method _selectItem
++ * @param elListItem {HTMLElement} The selected &lt;li&gt; element item.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._selectItem = function(elListItem) {
++    this._bItemSelected = true;
++    this._updateValue(elListItem);
++    this._sPastSelections = this._elTextbox.value;
++    this._clearInterval();
++    this.itemSelectEvent.fire(this, elListItem, elListItem._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._elCurListItem) {
++        this._selectItem(this._elCurListItem);
++    }
++    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 elCurListItem = this._elCurListItem,
++            nCurItemIndex = -1;
++
++        if(elCurListItem) {
++            nCurItemIndex = elCurListItem._nItemIndex;
++        }
++
++        var nNewItemIndex = (nKeyCode == 40) ?
++                (nCurItemIndex + 1) : (nCurItemIndex - 1);
++
++        // Out of bounds
++        if(nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) {
++            return;
++        }
++
++        if(elCurListItem) {
++            // Unhighlight current item
++            this._toggleHighlight(elCurListItem, "from");
++            this.itemArrowFromEvent.fire(this, elCurListItem);
++        }
++        if(nNewItemIndex == -1) {
++           // Go back to query (remove type-ahead string)
++            if(this.delimChar) {
++                this._elTextbox.value = this._sPastSelections + this._sCurQuery;
++            }
++            else {
++                this._elTextbox.value = this._sCurQuery;
++            }
++            return;
++        }
++        if(nNewItemIndex == -2) {
++            // Close container
++            this._toggleContainer(false);
++            return;
++        }
++        
++        var elNewListItem = this._elList.childNodes[nNewItemIndex],
++
++        // Scroll the container if necessary
++            elContent = this._elContent,
++            sOF = YAHOO.util.Dom.getStyle(elContent,"overflow"),
++            sOFY = YAHOO.util.Dom.getStyle(elContent,"overflowY"),
++            scrollOn = ((sOF == "auto") || (sOF == "scroll") || (sOFY == "auto") || (sOFY == "scroll"));
++        if(scrollOn && (nNewItemIndex > -1) &&
++        (nNewItemIndex < this._nDisplayedItems)) {
++            // User is keying down
++            if(nKeyCode == 40) {
++                // Bottom of selected item is below scroll area...
++                if((elNewListItem.offsetTop+elNewListItem.offsetHeight) > (elContent.scrollTop + elContent.offsetHeight)) {
++                    // Set bottom of scroll area to bottom of selected item
++                    elContent.scrollTop = (elNewListItem.offsetTop+elNewListItem.offsetHeight) - elContent.offsetHeight;
++                }
++                // Bottom of selected item is above scroll area...
++                else if((elNewListItem.offsetTop+elNewListItem.offsetHeight) < elContent.scrollTop) {
++                    // Set top of selected item to top of scroll area
++                    elContent.scrollTop = elNewListItem.offsetTop;
++
++                }
++            }
++            // User is keying up
++            else {
++                // Top of selected item is above scroll area
++                if(elNewListItem.offsetTop < elContent.scrollTop) {
++                    // Set top of scroll area to top of selected item
++                    this._elContent.scrollTop = elNewListItem.offsetTop;
++                }
++                // Top of selected item is below scroll area
++                else if(elNewListItem.offsetTop > (elContent.scrollTop + elContent.offsetHeight)) {
++                    // Set bottom of selected item to bottom of scroll area
++                    this._elContent.scrollTop = (elNewListItem.offsetTop+elNewListItem.offsetHeight) - elContent.offsetHeight;
++                }
++            }
++        }
++
++        this._toggleHighlight(elNewListItem, "to");
++        this.itemArrowToEvent.fire(this, elNewListItem);
++        if(this.typeAhead) {
++            this._updateValue(elNewListItem);
++        }
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private event handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * 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) {
++    var elTarget = YAHOO.util.Event.getTarget(v);
++    var elTag = elTarget.nodeName.toLowerCase();
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "li":
++                if(oSelf.prehighlightClassName) {
++                    oSelf._togglePrehighlight(elTarget,"mouseover");
++                }
++                else {
++                    oSelf._toggleHighlight(elTarget,"to");
++                }
++            
++                oSelf.itemMouseOverEvent.fire(oSelf, elTarget);
++                break;
++            case "div":
++                if(YAHOO.util.Dom.hasClass(elTarget,"yui-ac-container")) {
++                    oSelf._bOverContainer = true;
++                    return;
++                }
++                break;
++            default:
++                break;
++        }
++        
++        elTarget = elTarget.parentNode;
++        if(elTarget) {
++            elTag = elTarget.nodeName.toLowerCase();
++        }
++    }
++};
++
++/**
++ * 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) {
++    var elTarget = YAHOO.util.Event.getTarget(v);
++    var elTag = elTarget.nodeName.toLowerCase();
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "li":
++                if(oSelf.prehighlightClassName) {
++                    oSelf._togglePrehighlight(elTarget,"mouseout");
++                }
++                else {
++                    oSelf._toggleHighlight(elTarget,"from");
++                }
++            
++                oSelf.itemMouseOutEvent.fire(oSelf, elTarget);
++                break;
++            case "ul":
++                oSelf._toggleHighlight(oSelf._elCurListItem,"to");
++                break;
++            case "div":
++                if(YAHOO.util.Dom.hasClass(elTarget,"yui-ac-container")) {
++                    oSelf._bOverContainer = false;
++                    return;
++                }
++                break;
++            default:
++                break;
++        }
++
++        elTarget = elTarget.parentNode;
++        if(elTarget) {
++            elTag = elTarget.nodeName.toLowerCase();
++        }
++    }
++};
++
++/**
++ * Handles container click events.
++ *
++ * @method _onContainerClick
++ * @param v {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
++ * @private
++ */
++YAHOO.widget.AutoComplete.prototype._onContainerClick = function(v,oSelf) {
++    var elTarget = YAHOO.util.Event.getTarget(v);
++    var elTag = elTarget.nodeName.toLowerCase();
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "li":
++                // In case item has not been moused over
++                oSelf._toggleHighlight(elTarget,"to");
++                oSelf._selectItem(elTarget);
++                return;
++            default:
++                break;
++        }
++
++        elTarget = elTarget.parentNode;
++        if(elTarget) {
++            elTag = elTarget.nodeName.toLowerCase();
++        }
++    }    
++};
++
++
++/**
++ * 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._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;
++
++    // Clear timeout
++    if(oSelf._nTypeAheadDelayID != -1) {
++        clearTimeout(oSelf._nTypeAheadDelayID);
++    }
++    
++    switch (nKeyCode) {
++        case 9: // tab
++            if(!YAHOO.env.ua.opera && (navigator.userAgent.toLowerCase().indexOf("mac") == -1) || (YAHOO.env.ua.webkit>420)) {
++                // select an item or clear out
++                if(oSelf._elCurListItem) {
++                    if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
++                        if(oSelf._bContainerOpen) {
++                            YAHOO.util.Event.stopEvent(v);
++                        }
++                    }
++                    oSelf._selectItem(oSelf._elCurListItem);
++                }
++                else {
++                    oSelf._toggleContainer(false);
++                }
++            }
++            break;
++        case 13: // enter
++            if(!YAHOO.env.ua.opera && (navigator.userAgent.toLowerCase().indexOf("mac") == -1) || (YAHOO.env.ua.webkit>420)) {
++                if(oSelf._elCurListItem) {
++                    if(oSelf._nKeyCode != nKeyCode) {
++                        if(oSelf._bContainerOpen) {
++                            YAHOO.util.Event.stopEvent(v);
++                        }
++                    }
++                    oSelf._selectItem(oSelf._elCurListItem);
++                }
++                else {
++                    oSelf._toggleContainer(false);
++                }
++            }
++            break;
++        case 27: // esc
++            oSelf._toggleContainer(false);
++            return;
++        case 39: // right
++            oSelf._jumpSelection();
++            break;
++        case 38: // up
++            if(oSelf._bContainerOpen) {
++                YAHOO.util.Event.stopEvent(v);
++                oSelf._moveSelection(nKeyCode);
++            }
++            break;
++        case 40: // down
++            if(oSelf._bContainerOpen) {
++                YAHOO.util.Event.stopEvent(v);
++                oSelf._moveSelection(nKeyCode);
++            }
++            break;
++        default: 
++            oSelf._bItemSelected = false;
++            oSelf._toggleHighlight(oSelf._elCurListItem, "from");
++
++            oSelf.textboxKeyEvent.fire(oSelf, nKeyCode);
++            break;
++    }
++
++    if(nKeyCode === 18){
++        oSelf._enableIntervalDetection();
++    }    
++    oSelf._nKeyCode = nKeyCode;
++};
++
++/**
++ * 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 non SF3 (bug 1978549) Mac browsers (bug 790337) and  Opera browsers (bug 583531),
++        // where stopEvent is ineffective on keydown events 
++        if(YAHOO.env.ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") != -1) && (YAHOO.env.ua.webkit < 420)) {
++            switch (nKeyCode) {
++            case 9: // tab
++                // select an item or clear out
++                if(oSelf._bContainerOpen) {
++                    if(oSelf.delimChar) {
++                        YAHOO.util.Event.stopEvent(v);
++                    }
++                    if(oSelf._elCurListItem) {
++                        oSelf._selectItem(oSelf._elCurListItem);
++                    }
++                    else {
++                        oSelf._toggleContainer(false);
++                    }
++                }
++                break;
++            case 13: // enter
++                if(oSelf._bContainerOpen) {
++                    YAHOO.util.Event.stopEvent(v);
++                    if(oSelf._elCurListItem) {
++                        oSelf._selectItem(oSelf._elCurListItem);
++                    }
++                    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._enableIntervalDetection();
++        }
++};
++
++/**
++ * Handles textbox keyup events to 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) {
++    var sText = this.value; //string in textbox
++    
++    // Check to see if any of the public properties have been updated
++    oSelf._initProps();
++
++    // Filter out chars that don't trigger queries
++    var nKeyCode = v.keyCode;
++    if(oSelf._isIgnoreKey(nKeyCode)) {
++        return;
++    }
++
++    // Clear previous timeout
++    if(oSelf._nDelayID != -1) {
++        clearTimeout(oSelf._nDelayID);
++    }
++
++    // Set new timeout
++    oSelf._nDelayID = setTimeout(function(){
++            oSelf._sendQuery(sText);
++        },(oSelf.queryDelay * 1000));
++};
++
++/**
++ * 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) {
++    // Start of a new interaction
++    if(!oSelf._bFocused) {
++        oSelf._elTextbox.setAttribute("autocomplete","off");
++        oSelf._bFocused = true;
++        oSelf._sInitInputValue = oSelf._elTextbox.value;
++        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) {
++    // Is a true blur
++    if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
++        // Current query needs to be validated as a selection
++        if(!oSelf._bItemSelected) {
++            var elMatchListItem = oSelf._textMatchesOption();
++            // Container is closed or current query doesn't match any result
++            if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && (elMatchListItem === 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, oSelf._sCurQuery);
++                }
++            }
++            // 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(elMatchListItem);
++                }
++            }
++        }
++
++        oSelf._clearInterval();
++        oSelf._bFocused = false;
++        if(oSelf._sInitInputValue !== oSelf._elTextbox.value) {
++            oSelf.textboxChangeEvent.fire(oSelf);
++        }
++        oSelf.textboxBlurEvent.fire(oSelf);
++
++        oSelf._toggleContainer(false);
++    }
++    // Not a true blur if it was a selection via mouse click
++    else {
++        oSelf._focus();
++    }
++};
++
++/**
++ * 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");
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated for Backwards Compatibility
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * @method doBeforeSendQuery
++ * @deprecated Use generateRequest.
++ */
++YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery = function(sQuery) {
++    return this.generateRequest(sQuery);
++};
++
++/**
++ * @method getListItems
++ * @deprecated Use getListEl().childNodes.
++ */
++YAHOO.widget.AutoComplete.prototype.getListItems = function() {
++    var allListItemEls = [],
++        els = this._elList.childNodes;
++    for(var i=els.length-1; i>=0; i--) {
++        allListItemEls[i] = els[i];
++    }
++    return allListItemEls;
++};
++
++/////////////////////////////////////////////////////////////////////////
++//
++// Private static methods
++//
++/////////////////////////////////////////////////////////////////////////
++
++/**
++ * Clones object literal or array of object literals.
++ *
++ * @method AutoComplete._cloneObject
++ * @param o {Object} Object.
++ * @private
++ * @static     
++ */
++YAHOO.widget.AutoComplete._cloneObject = function(o) {
++    if(!YAHOO.lang.isValue(o)) {
++        return o;
++    }
++    
++    var copy = {};
++    
++    if(YAHOO.lang.isFunction(o)) {
++        copy = o;
++    }
++    else if(YAHOO.lang.isArray(o)) {
++        var array = [];
++        for(var i=0,len=o.length;i<len;i++) {
++            array[i] = YAHOO.widget.AutoComplete._cloneObject(o[i]);
++        }
++        copy = array;
++    }
++    else if(YAHOO.lang.isObject(o)) { 
++        for (var x in o){
++            if(YAHOO.lang.hasOwnProperty(o, x)) {
++                if(YAHOO.lang.isValue(o[x]) && YAHOO.lang.isObject(o[x]) || YAHOO.lang.isArray(o[x])) {
++                    copy[x] = YAHOO.widget.AutoComplete._cloneObject(o[x]);
++                }
++                else {
++                    copy[x] = o[x];
++                }
++            }
++        }
++    }
++    else {
++        copy = o;
++    }
++
++    return copy;
++};
++
++
++
++
++YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/base/base-min.css b/pylons_app/public/js/yui/base/base-min.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/base/base-min.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++body{margin:10px;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold;}optgroup{font-weight:normal;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;}em{font-style:italic;}del{text-decoration:line-through;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}sup{vertical-align:super;}sub{vertical-align:sub;}p,fieldset,table,pre{margin-bottom:1em;}button,input[type="checkbox"],input[type="radio"],input[type="reset"],input[type="submit"]{padding:1px;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/base/base.css b/pylons_app/public/js/yui/base/base.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/base/base.css
+@@ -0,0 +1,131 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * YUI Base
++ * @module base
++ * @namespace yui-
++ * @requires reset, fonts
++*/
++
++body {
++	/* For breathing room between content and viewport. */
++	margin:10px;
++}
++
++h1 {
++	/* 18px via YUI Fonts CSS foundation. */
++	font-size: 138.5%;
++}
++
++h2 {
++	/* 16px via YUI Fonts CSS foundation. */
++	font-size: 123.1%;
++}
++
++h3 {
++	/* 14px via YUI Fonts CSS foundation. */
++	font-size: 108%;
++}
++
++h1,h2,h3 {
++	/* Top & bottom margin based on font size. */
++	margin: 1em 0;
++}
++
++h1,h2,h3,h4,h5,h6,strong,dt {
++	/* Bringing boldness back to headers and the strong element. */
++	font-weight: bold;
++}
++optgroup {
++	font-weight:normal;
++}
++
++abbr,acronym {
++	/* Indicating to users that more info is available. */
++	border-bottom: 1px dotted #000;
++	cursor: help;
++}
++
++em {
++	/* Bringing italics back to the em element. */
++	font-style: italic;
++}
++
++del {
++	/* Striking deleted phrases. */
++	text-decoration: line-through;
++}
++
++blockquote,ul,ol,dl {
++	/* Giving blockquotes and lists room to breath. */
++	margin: 1em;
++}
++
++ol,ul,dl {
++	/* Bringing lists on to the page with breathing room. */
++	margin-left: 2em;
++}
++
++ol li {
++	/* Giving OL's LIs generated numbers. */
++	list-style: decimal outside;
++}
++
++ul li {
++	/* Giving UL's LIs generated disc markers. */
++	list-style: disc outside;
++}
++
++dl dd {
++	/* Giving UL's LIs generated numbers. */
++	margin-left: 1em;
++}
++
++th,td {
++	/* Borders and padding to make the table readable. */
++	border: 1px solid #000;
++	padding: .5em;
++}
++
++th {
++	/* Distinguishing table headers from data cells. */
++	font-weight: bold;
++	text-align: center;
++}
++
++caption {
++	/* Coordinated margin to match cell's padding. */
++	margin-bottom: .5em;
++	/* Centered so it doesn't blend in to other content. */
++	text-align: center;
++}
++
++sup {
++	/* to preserve line-height and selector appearance */
++	vertical-align: super;
++}
++
++sub {
++	/* to preserve line-height and selector appearance */
++	vertical-align: sub;
++}
++
++p,
++fieldset,
++table,
++pre {
++	/* So things don't run into each other. */
++	margin-bottom: 1em;
++}
++/* Opera requires 1px of passing to render with contemporary native chrome */
++button,
++input[type="checkbox"],
++input[type="radio"],
++input[type="reset"],
++input[type="submit"] {
++	padding:1px;
++}
+diff --git a/pylons_app/public/js/yui/button/assets/button-core.css b/pylons_app/public/js/yui/button/assets/button-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/button/assets/button-core.css
+@@ -0,0 +1,44 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-button  {
++
++    display: -moz-inline-box; /* Gecko */
++    display: inline-block; /* IE, Opera and Safari */
++    vertical-align: text-bottom;
++    
++}
++
++.yui-button .first-child {
++
++    display: block;
++    *display: inline-block; /* IE */
++
++}
++
++.yui-button button,
++.yui-button a {
++
++    display: block;
++    *display: inline-block; /* IE */
++    border: none;
++    margin: 0;
++
++}
++
++.yui-button button {
++
++    background-color: transparent;
++    *overflow: visible; /* Remove superfluous padding for IE */
++    cursor: pointer;
++
++}
++
++.yui-button a {
++
++    text-decoration: none;
++
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/button-skin.css b/pylons_app/public/js/yui/button/assets/skins/sam/button-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/button/assets/skins/sam/button-skin.css
+@@ -0,0 +1,219 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-button  {
++
++    border-width: 1px 0;
++    border-style: solid;
++    border-color: #808080;
++    background: url(../../../../assets/skins/sam/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;
++
++	/*
++		Using negative margins for rounded corners won't work in IE 6 and IE 7 
++		(Quirks Mode Only), so set the "margin" property to "0" for those 
++		browsers.
++	*/
++ 	_margin: 0;
++
++}
++
++.yui-skin-sam .yui-button button,
++.yui-skin-sam .yui-button a,
++.yui-skin-sam .yui-button a:visited {
++
++    padding: 0 10px;
++    font-size: 93%;  /* 12px */
++    line-height: 2;  /* ~24px */
++    *line-height: 1.7; /* For IE */
++    min-height: 2em; /* For Gecko */
++    *min-height: auto; /* For IE */
++    color: #000; 
++
++}
++
++.yui-skin-sam .yui-button a {
++
++    /*
++        Necessary to get Buttons of type "link" to be the correct 
++        height in IE.
++    */
++    *line-height: 1.875;
++	*padding-bottom: 1px;
++
++}
++
++.yui-skin-sam .yui-split-button button,
++.yui-skin-sam .yui-menu-button button {
++
++    padding-right: 20px;
++    background-position: right center;
++    background-repeat: no-repeat;
++    
++}
++
++.yui-skin-sam .yui-menu-button button {
++
++    background-image: url(menu-button-arrow.png);
++
++}
++
++.yui-skin-sam .yui-split-button button {
++
++    background-image: url(split-button-arrow.png);
++
++}
++
++
++/* Focus state */
++
++
++.yui-skin-sam .yui-button-focus {
++
++    border-color: #7D98B8;
++    background-position: 0 -1300px;
++
++}
++
++.yui-skin-sam .yui-button-focus .first-child {
++
++    border-color: #7D98B8;
++
++}
++
++.yui-skin-sam .yui-split-button-focus button {
++
++    background-image: url(split-button-arrow-focus.png);
++
++}
++
++
++/* Hover state */
++
++.yui-skin-sam .yui-button-hover {
++
++    border-color: #7D98B8;
++    background-position: 0 -1300px;
++
++}
++
++.yui-skin-sam .yui-button-hover .first-child {
++
++    border-color: #7D98B8;
++
++}
++
++.yui-skin-sam .yui-split-button-hover button {
++
++    background-image: url(split-button-arrow-hover.png);
++
++}
++
++
++/* Active state */
++
++.yui-skin-sam .yui-button-active {
++    
++    border-color: #7D98B8;
++    background-position: 0 -1700px;
++    
++}
++
++.yui-skin-sam .yui-button-active .first-child {
++
++    border-color: #7D98B8;
++
++}
++
++.yui-skin-sam .yui-split-button-activeoption {
++
++    border-color: #808080;
++    background-position: 0 0;
++
++}
++
++.yui-skin-sam .yui-split-button-activeoption .first-child {
++
++    border-color: #808080;
++
++}
++
++.yui-skin-sam .yui-split-button-activeoption button {
++
++    background-image: url(split-button-arrow-active.png);
++
++}
++
++
++/* Checked state */
++
++.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;
++
++}
++
++
++/* Disabled state */
++
++.yui-skin-sam .yui-button-disabled {
++    
++    border-color: #ccc;
++    background-position: 0 -1500px;
++    
++}
++
++.yui-skin-sam .yui-button-disabled .first-child {
++
++    border-color: #ccc;
++
++}
++
++.yui-skin-sam .yui-button-disabled button, 
++.yui-skin-sam .yui-button-disabled a,
++.yui-skin-sam .yui-button-disabled a:visited {
++
++    color: #A6A6A6;
++    cursor: default;
++
++}
++
++.yui-skin-sam .yui-menu-button-disabled button {
++
++    background-image: url(menu-button-arrow-disabled.png);
++    
++}
++
++.yui-skin-sam .yui-split-button-disabled button {
++
++    background-image: url(split-button-arrow-disabled.png);
++    
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/button.css b/pylons_app/public/js/yui/button/assets/skins/sam/button.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/button/assets/skins/sam/button.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-button{display:-moz-inline-box;display:inline-block;vertical-align:text-bottom;}.yui-button .first-child{display:block;*display:inline-block;}.yui-button button,.yui-button a{display:block;*display:inline-block;border:none;margin:0;}.yui-button button{background-color:transparent;*overflow:visible;cursor:pointer;}.yui-button a{text-decoration:none;}.yui-skin-sam .yui-button{border-width:1px 0;border-style:solid;border-color:#808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;margin:auto .25em;}.yui-skin-sam .yui-button .first-child{border-width:0 1px;border-style:solid;border-color:#808080;margin:0 -1px;_margin:0;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a,.yui-skin-sam .yui-button a:visited{padding:0 10px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-button a{*line-height:1.875;*padding-bottom:1px;}.yui-skin-sam .yui-split-button button,.yui-skin-sam .yui-menu-button button{padding-right:20px;background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-button button{background-image:url(menu-button-arrow.png);}.yui-skin-sam .yui-split-button button{background-image:url(split-button-arrow.png);}.yui-skin-sam .yui-button-focus{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-focus .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-focus button{background-image:url(split-button-arrow-focus.png);}.yui-skin-sam .yui-button-hover{border-color:#7D98B8;background-position:0 -1300px;}.yui-skin-sam .yui-button-hover .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-hover button{background-image:url(split-button-arrow-hover.png);}.yui-skin-sam .yui-button-active{border-color:#7D98B8;background-position:0 -1700px;}.yui-skin-sam .yui-button-active .first-child{border-color:#7D98B8;}.yui-skin-sam .yui-split-button-activeoption{border-color:#808080;background-position:0 0;}.yui-skin-sam .yui-split-button-activeoption .first-child{border-color:#808080;}.yui-skin-sam .yui-split-button-activeoption button{background-image:url(split-button-arrow-active.png);}.yui-skin-sam .yui-radio-button-checked,.yui-skin-sam .yui-checkbox-button-checked{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-radio-button-checked .first-child,.yui-skin-sam .yui-checkbox-button-checked .first-child{border-color:#304369;}.yui-skin-sam .yui-radio-button-checked button,.yui-skin-sam .yui-checkbox-button-checked button{color:#fff;}.yui-skin-sam .yui-button-disabled{border-color:#ccc;background-position:0 -1500px;}.yui-skin-sam .yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-button-disabled button,.yui-skin-sam .yui-button-disabled a,.yui-skin-sam .yui-button-disabled a:visited{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-menu-button-disabled button{background-image:url(menu-button-arrow-disabled.png);}.yui-skin-sam .yui-split-button-disabled button{background-image:url(split-button-arrow-disabled.png);}
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/menu-button-arrow-disabled.png b/pylons_app/public/js/yui/button/assets/skins/sam/menu-button-arrow-disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..8cef2abb31170a370c7062c839ea9d5e9de18948
+GIT binary patch
+literal 173
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~d!3-ofWcl9%anc=q9T^y|-MHc(VFct$mbgZg
+z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-$(3-AeXt*@{D|Np;u@pD<A2vbRr
+zU+{m1r`rv@fIN9m7srr_TS*BG3~mw$2`*2WStSC0C@{LE*eN?SFfy=iVle#vvS2q*
+ODTAl0pUXO@geCxqL^6l~
+
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/menu-button-arrow.png b/pylons_app/public/js/yui/button/assets/skins/sam/menu-button-arrow.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..f03dfee4e4055e98d278ce80bf400ed8d39424dd
+GIT binary patch
+literal 173
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~d!3-ofWcl9%anc=q9T^y|-MHc(VFct$mbgZg
+z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wE-$(3-AeX1=9cj|6h7@{#_u8sU*lR
+z_&>wb?FL>zp1h}vV@SoVq=W_rH;IG<m#56E5`jMy7~N9rlpPuv8CW+l7=C|Qup6k9
+N!PC{xWt~$(699VTGIsy~
+
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-active.png b/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-active.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..fa58c5030e76082c84e38342cf6722c723ad2fd2
+GIT binary patch
+literal 280
+zc$@(k0q6dSP)<h;3K|Lk000e1NJLTq000mG001%w0{{R3Vo9rR00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUyLQqUpMd<SX
+zy4e4Hn7HQg{{R30$KU_a=Kss$|Jv#QzuN!j^8du$|L5`l)#v}$=>N~-|K;%i-0c73
+z@c-iO|KRQa-|hd~QeFE1003M`L_t(|+U&?l5`sVg1i`WZK}Epr|6dhmytLs92=mel
+z9uoULP6;mwyM%qhIpHzkHQ|(SNO(*5TD8?y@wq9xG<+26t_AN^`$=39HtEMPCOjwP
+e%l`;(0R{kdKn;SADLBOd0000<MNUMnLSTZ{QG&k!
+
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-disabled.png b/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..0a6a82c6402848193044fcb9791e915161c890d3
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_T+f_2Q(s^I|Nnnag9j&p
+zg3KjBe!>6$Gh9E#3p9{H-P6S}q~camLV^=3&tj%#_Xa_x2_Xl57U&w-9pX85Q9;Im
+dv4Me^VIeE)+1pK9I)PdkJYD@<);T3K0RYcxInw|D
+
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-focus.png b/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-focus.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..167d71eb721ba9b85c6601f9077d5c39faa4ebd2
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_Tx)0S05bpo|DSu#^)isf
+zToU9L{Qp10^;5h+0~ypkT^vIyZY3ooII;39W@>hC5M-JVa^Poyu7TYlo?{mkWE>b9
+b7?>Frva+7N-L$0>sD;7P)z4*}Q$iB}D9ShR
+
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-hover.png b/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow-hover.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..167d71eb721ba9b85c6601f9077d5c39faa4ebd2
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_Tx)0S05bpo|DSu#^)isf
+zToU9L{Qp10^;5h+0~ypkT^vIyZY3ooII;39W@>hC5M-JVa^Poyu7TYlo?{mkWE>b9
+b7?>Frva+7N-L$0>sD;7P)z4*}Q$iB}D9ShR
+
+diff --git a/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow.png b/pylons_app/public/js/yui/button/assets/skins/sam/split-button-arrow.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..b33a93ff2dc2039bd24e4ea3b75ecf4bb3295f84
+GIT binary patch
+literal 185
+zc%17D@N?(olHy`uVBq!ia0vp^0zhoU!3-pmJXhxdDVB6cUq=RpYd5a=M;HP5k|nMY
+zCBgY=CFO}lsSJ)O`AMk?p1FzXsX?iUDV2pMQ*D5XI0Jk_TpJo1fXx5@|JyBHuocK+
+zE(!7r{{Nrh`YB$Zfeh-NE{-7;w~`VPoLG4lGc~(62r^9wIq<VU*TC)&&#{XNG7gLl
+b49pA*Sy|8CZraib)WYED>gTe~DWM4f1sXSq
+
+diff --git a/pylons_app/public/js/yui/button/button-debug.js b/pylons_app/public/js/yui/button/button-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/button/button-debug.js
+@@ -0,0 +1,4694 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++* @module button
++* @description <p>The Button Control enables the creation of rich, graphical 
++* buttons that function like traditional HTML form buttons.  <em>Unlike</em> 
++* traditional HTML form buttons, buttons created with the Button Control can have 
++* a label that is different from its value.  With the inclusion of the optional 
++* <a href="module_menu.html">Menu Control</a>, the Button Control can also be
++* used to create menu buttons and split buttons, controls that are not 
++* available natively in HTML.  The Button Control can also be thought of as a 
++* way to create more visually engaging implementations of the browser's 
++* default radio-button and check-box controls.</p>
++* <p>The Button Control supports the following types:</p>
++* <dl>
++* <dt>push</dt>
++* <dd>Basic push button that can execute a user-specified command when 
++* pressed.</dd>
++* <dt>link</dt>
++* <dd>Navigates to a specified url when pressed.</dd>
++* <dt>submit</dt>
++* <dd>Submits the parent form when pressed.</dd>
++* <dt>reset</dt>
++* <dd>Resets the parent form when pressed.</dd>
++* <dt>checkbox</dt>
++* <dd>Maintains a "checked" state that can be toggled on and off.</dd>
++* <dt>radio</dt>
++* <dd>Maintains a "checked" state that can be toggled on and off.  Use with 
++* the ButtonGroup class to create a set of controls that are mutually 
++* exclusive; checking one button in the set will uncheck all others in 
++* the group.</dd>
++* <dt>menu</dt>
++* <dd>When pressed will show/hide a menu.</dd>
++* <dt>split</dt>
++* <dd>Can execute a user-specified command or display a menu when pressed.</dd>
++* </dl>
++* @title Button
++* @namespace YAHOO.widget
++* @requires yahoo, dom, element, event
++* @optional container, menu
++*/
++
++
++(function () {
++
++
++    /**
++    * The Button class creates a rich, graphical button.
++    * @param {String} p_oElement String specifying the id attribute of the 
++    * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>,
++    * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to 
++    * be used to create the button.
++    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://www.w3.org
++    * /TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-34812697">
++    * HTMLButtonElement</a>|<a href="
++    * http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#
++    * ID-33759296">HTMLElement</a>} p_oElement Object reference for the 
++    * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>, 
++    * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to be 
++    * used to create the button.
++    * @param {Object} p_oElement Object literal specifying a set of   
++    * configuration attributes used to create the button.
++    * @param {Object} p_oAttributes Optional. Object literal specifying a set  
++    * of configuration attributes used to create the button.
++    * @namespace YAHOO.widget
++    * @class Button
++    * @constructor
++    * @extends YAHOO.util.Element
++    */
++
++
++
++    // Shorthard for utilities
++
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        UA = YAHOO.env.ua,
++        Overlay = YAHOO.widget.Overlay,
++        Menu = YAHOO.widget.Menu,
++    
++    
++        // Private member variables
++    
++        m_oButtons = {},    // Collection of all Button instances
++        m_oOverlayManager = null,   // YAHOO.widget.OverlayManager instance
++        m_oSubmitTrigger = null,    // The button that submitted the form 
++        m_oFocusedButton = null;    // The button that has focus
++
++
++
++    // Private methods
++
++    
++    
++    /**
++    * @method createInputElement
++    * @description Creates an <code>&#60;input&#62;</code> element of the 
++    * specified type.
++    * @private
++    * @param {String} p_sType String specifying the type of 
++    * <code>&#60;input&#62;</code> element to create.
++    * @param {String} p_sName String specifying the name of 
++    * <code>&#60;input&#62;</code> element to create.
++    * @param {String} p_sValue String specifying the value of 
++    * <code>&#60;input&#62;</code> element to create.
++    * @param {String} p_bChecked Boolean specifying if the  
++    * <code>&#60;input&#62;</code> element is to be checked.
++    * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-6043025">HTMLInputElement</a>}
++    */
++    function createInputElement(p_sType, p_sName, p_sValue, p_bChecked) {
++    
++        var oInput,
++            sInput;
++    
++        if (Lang.isString(p_sType) && Lang.isString(p_sName)) {
++        
++            if (UA.ie) {
++        
++                /*
++                    For IE it is necessary to create the element with the 
++                    "type," "name," "value," and "checked" properties set all 
++                    at once.
++                */
++            
++                sInput = "<input type=\"" + p_sType + "\" name=\"" + 
++                    p_sName + "\"";
++        
++                if (p_bChecked) {
++        
++                    sInput += " checked";
++                
++                }
++                
++                sInput += ">";
++        
++                oInput = document.createElement(sInput);
++        
++            }
++            else {
++            
++                oInput = document.createElement("input");
++                oInput.name = p_sName;
++                oInput.type = p_sType;
++        
++                if (p_bChecked) {
++        
++                    oInput.checked = true;
++                
++                }
++        
++            }
++        
++            oInput.value = p_sValue;
++        
++        }
++
++		return oInput;
++    
++    }
++    
++    
++    /**
++    * @method setAttributesFromSrcElement
++    * @description Gets the values for all the attributes of the source element 
++    * (either <code>&#60;input&#62;</code> or <code>&#60;a&#62;</code>) that 
++    * map to Button configuration attributes and sets them into a collection 
++    * that is passed to the Button constructor.
++    * @private
++    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://www.w3.org/
++    * TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-
++    * 48250443">HTMLAnchorElement</a>} p_oElement Object reference to the HTML 
++    * element (either <code>&#60;input&#62;</code> or <code>&#60;span&#62;
++    * </code>) used to create the button.
++    * @param {Object} p_oAttributes Object reference for the collection of 
++    * configuration attributes used to create the button.
++    */
++    function setAttributesFromSrcElement(p_oElement, p_oAttributes) {
++    
++        var sSrcElementNodeName = p_oElement.nodeName.toUpperCase(),
++			sClass = (this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME),
++            me = this,
++            oAttribute,
++            oRootNode,
++            sText;
++            
++    
++        /**
++        * @method setAttributeFromDOMAttribute
++        * @description Gets the value of the specified DOM attribute and sets it 
++        * into the collection of configuration attributes used to configure 
++        * the button.
++        * @private
++        * @param {String} p_sAttribute String representing the name of the 
++        * attribute to retrieve from the DOM element.
++        */
++        function setAttributeFromDOMAttribute(p_sAttribute) {
++    
++            if (!(p_sAttribute in p_oAttributes)) {
++    
++                /*
++                    Need to use "getAttributeNode" instead of "getAttribute" 
++                    because using "getAttribute," IE will return the innerText 
++                    of a <code>&#60;button&#62;</code> for the value attribute  
++                    rather than the value of the "value" attribute.
++                */
++        
++                oAttribute = p_oElement.getAttributeNode(p_sAttribute);
++        
++    
++                if (oAttribute && ("value" in oAttribute)) {
++    
++                    YAHOO.log("Setting attribute \"" + p_sAttribute + 
++                        "\" using source element's attribute value of \"" + 
++                        oAttribute.value + "\"", "info", me.toString());
++    
++                    p_oAttributes[p_sAttribute] = oAttribute.value;
++    
++                }
++    
++            }
++        
++        }
++    
++    
++        /**
++        * @method setFormElementProperties
++        * @description Gets the value of the attributes from the form element  
++        * and sets them into the collection of configuration attributes used to 
++        * configure the button.
++        * @private
++        */
++        function setFormElementProperties() {
++    
++            setAttributeFromDOMAttribute("type");
++    
++            if (p_oAttributes.type == "button") {
++            
++                p_oAttributes.type = "push";
++            
++            }
++    
++            if (!("disabled" in p_oAttributes)) {
++    
++                p_oAttributes.disabled = p_oElement.disabled;
++    
++            }
++    
++            setAttributeFromDOMAttribute("name");
++            setAttributeFromDOMAttribute("value");
++            setAttributeFromDOMAttribute("title");
++    
++        }
++
++    
++        switch (sSrcElementNodeName) {
++        
++        case "A":
++            
++            p_oAttributes.type = "link";
++            
++            setAttributeFromDOMAttribute("href");
++            setAttributeFromDOMAttribute("target");
++        
++            break;
++    
++        case "INPUT":
++
++            setFormElementProperties();
++
++            if (!("checked" in p_oAttributes)) {
++    
++                p_oAttributes.checked = p_oElement.checked;
++    
++            }
++
++            break;
++
++        case "BUTTON":
++
++            setFormElementProperties();
++
++            oRootNode = p_oElement.parentNode.parentNode;
++
++            if (Dom.hasClass(oRootNode, sClass + "-checked")) {
++            
++                p_oAttributes.checked = true;
++            
++            }
++
++            if (Dom.hasClass(oRootNode, sClass + "-disabled")) {
++
++                p_oAttributes.disabled = true;
++            
++            }
++
++            p_oElement.removeAttribute("value");
++
++            p_oElement.setAttribute("type", "button");
++
++            break;
++        
++        }
++
++        p_oElement.removeAttribute("id");
++        p_oElement.removeAttribute("name");
++        
++        if (!("tabindex" in p_oAttributes)) {
++
++            p_oAttributes.tabindex = p_oElement.tabIndex;
++
++        }
++    
++        if (!("label" in p_oAttributes)) {
++    
++            // Set the "label" property
++        
++            sText = sSrcElementNodeName == "INPUT" ? 
++                            p_oElement.value : p_oElement.innerHTML;
++        
++    
++            if (sText && sText.length > 0) {
++                
++                p_oAttributes.label = sText;
++                
++            } 
++    
++        }
++    
++    }
++    
++    
++    /**
++    * @method initConfig
++    * @description Initializes the set of configuration attributes that are 
++    * used to instantiate the button.
++    * @private
++    * @param {Object} Object representing the button's set of 
++    * configuration attributes.
++    */
++    function initConfig(p_oConfig) {
++    
++        var oAttributes = p_oConfig.attributes,
++            oSrcElement = oAttributes.srcelement,
++            sSrcElementNodeName = oSrcElement.nodeName.toUpperCase(),
++            me = this;
++    
++    
++        if (sSrcElementNodeName == this.NODE_NAME) {
++    
++            p_oConfig.element = oSrcElement;
++            p_oConfig.id = oSrcElement.id;
++
++            Dom.getElementsBy(function (p_oElement) {
++            
++                switch (p_oElement.nodeName.toUpperCase()) {
++                
++                case "BUTTON":
++                case "A":
++                case "INPUT":
++
++                    setAttributesFromSrcElement.call(me, p_oElement, 
++                        oAttributes);
++
++                    break;                        
++                
++                }
++            
++            }, "*", oSrcElement);
++        
++        }
++        else {
++    
++            switch (sSrcElementNodeName) {
++
++            case "BUTTON":
++            case "A":
++            case "INPUT":
++
++                setAttributesFromSrcElement.call(this, oSrcElement, 
++                    oAttributes);
++
++                break;
++
++            }
++        
++        }
++    
++    }
++
++
++
++    //  Constructor
++
++    YAHOO.widget.Button = function (p_oElement, p_oAttributes) {
++    
++		if (!Overlay && YAHOO.widget.Overlay) {
++		
++			Overlay = YAHOO.widget.Overlay;
++		
++		}
++
++
++		if (!Menu && YAHOO.widget.Menu) {
++		
++			Menu = YAHOO.widget.Menu;
++		
++		}
++
++
++        var fnSuperClass = YAHOO.widget.Button.superclass.constructor,
++            oConfig,
++            oElement;
++    
++
++        if (arguments.length == 1 && !Lang.isString(p_oElement) && !p_oElement.nodeName) {
++    
++            if (!p_oElement.id) {
++    
++                p_oElement.id = Dom.generateId();
++    
++                YAHOO.log("No value specified for the button's \"id\" " + 
++                    "attribute. Setting button id to \"" + p_oElement.id + 
++                    "\".", "info", this.toString());
++    
++            }
++    
++            YAHOO.log("No source HTML element.  Building the button " +
++                    "using the set of configuration attributes.", "info", this.toString());
++    
++            fnSuperClass.call(this, (this.createButtonElement(p_oElement.type)), p_oElement);
++    
++        }
++        else {
++    
++            oConfig = { element: null, attributes: (p_oAttributes || {}) };
++    
++    
++            if (Lang.isString(p_oElement)) {
++    
++                oElement = Dom.get(p_oElement);
++    
++                if (oElement) {
++
++                    if (!oConfig.attributes.id) {
++                    
++                        oConfig.attributes.id = p_oElement;
++                    
++                    }
++    
++                    YAHOO.log("Building the button using an existing " + 
++                            "HTML element as a source element.", "info", this.toString());
++                
++                
++                    oConfig.attributes.srcelement = oElement;
++                
++                    initConfig.call(this, oConfig);
++                
++                
++                    if (!oConfig.element) {
++                
++                        YAHOO.log("Source element could not be used " +
++                                "as is.  Creating a new HTML element for " + 
++                                "the button.", "info", this.toString());
++                
++                        oConfig.element = this.createButtonElement(oConfig.attributes.type);
++                
++                    }
++                
++                    fnSuperClass.call(this, oConfig.element, oConfig.attributes);
++    
++                }
++    
++            }
++            else if (p_oElement.nodeName) {
++    
++                if (!oConfig.attributes.id) {
++    
++                    if (p_oElement.id) {
++        
++                        oConfig.attributes.id = p_oElement.id;
++                    
++                    }
++                    else {
++        
++                        oConfig.attributes.id = Dom.generateId();
++        
++                        YAHOO.log("No value specified for the button's " +
++                            "\"id\" attribute. Setting button id to \"" + 
++                            oConfig.attributes.id + "\".", "info", this.toString());
++        
++                    }
++    
++                }
++    
++                YAHOO.log("Building the button using an existing HTML " + 
++                    "element as a source element.", "info", this.toString());
++    
++    
++                oConfig.attributes.srcelement = p_oElement;
++        
++                initConfig.call(this, oConfig);
++        
++        
++                if (!oConfig.element) {
++    
++                    YAHOO.log("Source element could not be used as is." +
++                            "  Creating a new HTML element for the button.", 
++                            "info", this.toString());
++            
++                    oConfig.element = this.createButtonElement(oConfig.attributes.type);
++            
++                }
++            
++                fnSuperClass.call(this, oConfig.element, oConfig.attributes);
++            
++            }
++    
++        }
++    
++    };
++
++
++
++    YAHOO.extend(YAHOO.widget.Button, YAHOO.util.Element, {
++    
++    
++        // Protected properties
++        
++        
++        /** 
++        * @property _button
++        * @description Object reference to the button's internal 
++        * <code>&#60;a&#62;</code> or <code>&#60;button&#62;</code> element.
++        * @default null
++        * @protected
++        * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-48250443">HTMLAnchorElement</a>|<a href="
++        * http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html
++        * #ID-34812697">HTMLButtonElement</a>
++        */
++        _button: null,
++        
++        
++        /** 
++        * @property _menu
++        * @description Object reference to the button's menu.
++        * @default null
++        * @protected
++        * @type {<a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>|
++        * <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>}
++        */
++        _menu: null,
++        
++        
++        /** 
++        * @property _hiddenFields
++        * @description Object reference to the <code>&#60;input&#62;</code>  
++        * element, or array of HTML form elements used to represent the button
++        *  when its parent form is submitted.
++        * @default null
++        * @protected
++        * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|Array
++        */
++        _hiddenFields: null,
++        
++        
++        /** 
++        * @property _onclickAttributeValue
++        * @description Object reference to the button's current value for the 
++        * "onclick" configuration attribute.
++        * @default null
++        * @protected
++        * @type Object
++        */
++        _onclickAttributeValue: null,
++        
++        
++        /** 
++        * @property _activationKeyPressed
++        * @description Boolean indicating if the key(s) that toggle the button's 
++        * "active" state have been pressed.
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _activationKeyPressed: false,
++        
++        
++        /** 
++        * @property _activationButtonPressed
++        * @description Boolean indicating if the mouse button that toggles 
++        * the button's "active" state has been pressed.
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _activationButtonPressed: false,
++        
++        
++        /** 
++        * @property _hasKeyEventHandlers
++        * @description Boolean indicating if the button's "blur", "keydown" and 
++        * "keyup" event handlers are assigned
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _hasKeyEventHandlers: false,
++        
++        
++        /** 
++        * @property _hasMouseEventHandlers
++        * @description Boolean indicating if the button's "mouseout," 
++        * "mousedown," and "mouseup" event handlers are assigned
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _hasMouseEventHandlers: false,
++
++
++        /** 
++        * @property _nOptionRegionX
++        * @description Number representing the X coordinate of the leftmost edge of the Button's 
++        * option region.  Applies only to Buttons of type "split".
++        * @default 0
++        * @protected
++        * @type Number
++        */        
++        _nOptionRegionX: 0,
++        
++
++
++        // Constants
++
++        /**
++        * @property CLASS_NAME_PREFIX
++        * @description Prefix used for all class names applied to a Button.
++        * @default "yui-"
++        * @final
++        * @type String
++        */
++        CLASS_NAME_PREFIX: "yui-",
++        
++        
++        /**
++        * @property NODE_NAME
++        * @description The name of the node to be used for the button's 
++        * root element.
++        * @default "SPAN"
++        * @final
++        * @type String
++        */
++        NODE_NAME: "SPAN",
++        
++        
++        /**
++        * @property CHECK_ACTIVATION_KEYS
++        * @description Array of numbers representing keys that (when pressed) 
++        * toggle the button's "checked" attribute.
++        * @default [32]
++        * @final
++        * @type Array
++        */
++        CHECK_ACTIVATION_KEYS: [32],
++        
++        
++        /**
++        * @property ACTIVATION_KEYS
++        * @description Array of numbers representing keys that (when presed) 
++        * toggle the button's "active" state.
++        * @default [13, 32]
++        * @final
++        * @type Array
++        */
++        ACTIVATION_KEYS: [13, 32],
++        
++        
++        /**
++        * @property OPTION_AREA_WIDTH
++        * @description Width (in pixels) of the area of a split button that  
++        * when pressed will display a menu.
++        * @default 20
++        * @final
++        * @type Number
++        */
++        OPTION_AREA_WIDTH: 20,
++        
++        
++        /**
++        * @property CSS_CLASS_NAME
++        * @description String representing the CSS class(es) to be applied to  
++        * the button's root element.
++        * @default "button"
++        * @final
++        * @type String
++        */
++        CSS_CLASS_NAME: "button",
++        
++        
++        
++        // Protected attribute setter methods
++        
++        
++        /**
++        * @method _setType
++        * @description Sets the value of the button's "type" attribute.
++        * @protected
++        * @param {String} p_sType String indicating the value for the button's 
++        * "type" attribute.
++        */
++        _setType: function (p_sType) {
++        
++            if (p_sType == "split") {
++        
++                this.on("option", this._onOption);
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setLabel
++        * @description Sets the value of the button's "label" attribute.
++        * @protected
++        * @param {String} p_sLabel String indicating the value for the button's 
++        * "label" attribute.
++        */
++        _setLabel: function (p_sLabel) {
++
++            this._button.innerHTML = p_sLabel;
++
++            
++            /*
++                Remove and add the default class name from the root element
++                for Gecko to ensure that the button shrinkwraps to the label.
++                Without this the button will not be rendered at the correct 
++                width when the label changes.  The most likely cause for this 
++                bug is button's use of the Gecko-specific CSS display type of 
++                "-moz-inline-box" to simulate "inline-block" supported by IE, 
++                Safari and Opera.
++            */
++            
++            var sClass,
++                nGeckoVersion = UA.gecko;
++				
++            
++            if (nGeckoVersion && nGeckoVersion < 1.9 && Dom.inDocument(this.get("element"))) {
++            
++                sClass = (this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME);
++
++                this.removeClass(sClass);
++                
++                Lang.later(0, this, this.addClass, sClass);
++
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setTabIndex
++        * @description Sets the value of the button's "tabindex" attribute.
++        * @protected
++        * @param {Number} p_nTabIndex Number indicating the value for the 
++        * button's "tabindex" attribute.
++        */
++        _setTabIndex: function (p_nTabIndex) {
++        
++            this._button.tabIndex = p_nTabIndex;
++        
++        },
++        
++        
++        /**
++        * @method _setTitle
++        * @description Sets the value of the button's "title" attribute.
++        * @protected
++        * @param {String} p_nTabIndex Number indicating the value for 
++        * the button's "title" attribute.
++        */
++        _setTitle: function (p_sTitle) {
++        
++            if (this.get("type") != "link") {
++        
++                this._button.title = p_sTitle;
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setDisabled
++        * @description Sets the value of the button's "disabled" attribute.
++        * @protected
++        * @param {Boolean} p_bDisabled Boolean indicating the value for 
++        * the button's "disabled" attribute.
++        */
++        _setDisabled: function (p_bDisabled) {
++        
++            if (this.get("type") != "link") {
++        
++                if (p_bDisabled) {
++        
++                    if (this._menu) {
++        
++                        this._menu.hide();
++        
++                    }
++        
++                    if (this.hasFocus()) {
++                    
++                        this.blur();
++                    
++                    }
++        
++                    this._button.setAttribute("disabled", "disabled");
++        
++                    this.addStateCSSClasses("disabled");
++
++                    this.removeStateCSSClasses("hover");
++                    this.removeStateCSSClasses("active");
++                    this.removeStateCSSClasses("focus");
++        
++                }
++                else {
++        
++                    this._button.removeAttribute("disabled");
++        
++                    this.removeStateCSSClasses("disabled");
++                
++                }
++        
++            }
++        
++        },
++
++        
++        /**
++        * @method _setHref
++        * @description Sets the value of the button's "href" attribute.
++        * @protected
++        * @param {String} p_sHref String indicating the value for the button's 
++        * "href" attribute.
++        */
++        _setHref: function (p_sHref) {
++        
++            if (this.get("type") == "link") {
++        
++                this._button.href = p_sHref;
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setTarget
++        * @description Sets the value of the button's "target" attribute.
++        * @protected
++        * @param {String} p_sTarget String indicating the value for the button's 
++        * "target" attribute.
++        */
++        _setTarget: function (p_sTarget) {
++        
++            if (this.get("type") == "link") {
++        
++                this._button.setAttribute("target", p_sTarget);
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setChecked
++        * @description Sets the value of the button's "target" attribute.
++        * @protected
++        * @param {Boolean} p_bChecked Boolean indicating the value for  
++        * the button's "checked" attribute.
++        */
++        _setChecked: function (p_bChecked) {
++        
++            var sType = this.get("type");
++        
++            if (sType == "checkbox" || sType == "radio") {
++        
++                if (p_bChecked) {
++                    this.addStateCSSClasses("checked");
++                }
++                else {
++                    this.removeStateCSSClasses("checked");
++                }
++        
++            }
++        
++        },
++
++        
++        /**
++        * @method _setMenu
++        * @description Sets the value of the button's "menu" attribute.
++        * @protected
++        * @param {Object} p_oMenu Object indicating the value for the button's 
++        * "menu" attribute.
++        */
++        _setMenu: function (p_oMenu) {
++
++            var bLazyLoad = this.get("lazyloadmenu"),
++                oButtonElement = this.get("element"),
++                sMenuCSSClassName,
++        
++                /*
++                    Boolean indicating if the value of p_oMenu is an instance 
++                    of YAHOO.widget.Menu or YAHOO.widget.Overlay.
++                */
++        
++                bInstance = false,
++                oMenu,
++                oMenuElement,
++                oSrcElement;
++        
++
++			function onAppendTo() {
++
++				oMenu.render(oButtonElement.parentNode);
++				
++				this.removeListener("appendTo", onAppendTo);
++			
++			}
++			
++			
++			function setMenuContainer() {
++
++				oMenu.cfg.queueProperty("container", oButtonElement.parentNode);
++				
++				this.removeListener("appendTo", setMenuContainer);
++			
++			}
++
++
++			function initMenu() {
++		
++				var oContainer;
++		
++				if (oMenu) {
++
++					Dom.addClass(oMenu.element, this.get("menuclassname"));
++					Dom.addClass(oMenu.element, this.CLASS_NAME_PREFIX + this.get("type") + "-button-menu");
++
++					oMenu.showEvent.subscribe(this._onMenuShow, null, this);
++					oMenu.hideEvent.subscribe(this._onMenuHide, null, this);
++					oMenu.renderEvent.subscribe(this._onMenuRender, null, this);
++
++
++					if (Menu && oMenu instanceof Menu) {
++
++						if (bLazyLoad) {
++
++							oContainer = this.get("container");
++
++							if (oContainer) {
++
++								oMenu.cfg.queueProperty("container", oContainer);
++
++							}
++							else {
++
++								this.on("appendTo", setMenuContainer);
++
++							}
++
++						}
++
++						oMenu.cfg.queueProperty("clicktohide", false);
++
++						oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true);
++						oMenu.subscribe("click", this._onMenuClick, this, true);
++
++						this.on("selectedMenuItemChange", this._onSelectedMenuItemChange);
++		
++						oSrcElement = oMenu.srcElement;
++		
++						if (oSrcElement && oSrcElement.nodeName.toUpperCase() == "SELECT") {
++
++							oSrcElement.style.display = "none";
++							oSrcElement.parentNode.removeChild(oSrcElement);
++		
++						}
++		
++					}
++					else if (Overlay && oMenu instanceof Overlay) {
++		
++						if (!m_oOverlayManager) {
++		
++							m_oOverlayManager = new YAHOO.widget.OverlayManager();
++						
++						}
++						
++						m_oOverlayManager.register(oMenu);
++						
++					}
++		
++		
++					this._menu = oMenu;
++
++		
++					if (!bInstance && !bLazyLoad) {
++		
++						if (Dom.inDocument(oButtonElement)) {
++	
++							oMenu.render(oButtonElement.parentNode);
++						
++						}
++						else {
++		
++							this.on("appendTo", onAppendTo);
++						
++						}
++					
++					}
++		
++				}
++		
++			}
++
++        
++            if (Overlay) {
++        
++				if (Menu) {
++				
++					sMenuCSSClassName = Menu.prototype.CSS_CLASS_NAME;
++				
++				}
++			
++				if (p_oMenu && Menu && (p_oMenu instanceof Menu)) {
++			
++					oMenu = p_oMenu;
++					bInstance = true;
++			
++					initMenu.call(this);
++			
++				}
++				else if (Overlay && p_oMenu && (p_oMenu instanceof Overlay)) {
++			
++					oMenu = p_oMenu;
++					bInstance = true;
++			
++					oMenu.cfg.queueProperty("visible", false);
++			
++					initMenu.call(this);
++			
++				}
++				else if (Menu && Lang.isArray(p_oMenu)) {
++
++					oMenu = new Menu(Dom.generateId(), { lazyload: bLazyLoad, itemdata: p_oMenu });
++						
++					this._menu = oMenu;
++			
++					this.on("appendTo", initMenu);
++			
++				}
++				else if (Lang.isString(p_oMenu)) {
++			
++					oMenuElement = Dom.get(p_oMenu);
++			
++					if (oMenuElement) {
++			
++						if (Menu && Dom.hasClass(oMenuElement, sMenuCSSClassName) || 
++							oMenuElement.nodeName.toUpperCase() == "SELECT") {
++				
++							oMenu = new Menu(p_oMenu, { lazyload: bLazyLoad });
++				
++							initMenu.call(this);
++				
++						}
++						else if (Overlay) {
++			
++							oMenu = new Overlay(p_oMenu, { visible: false });
++				
++							initMenu.call(this);
++				
++						}
++			
++					}
++			
++				}
++				else if (p_oMenu && p_oMenu.nodeName) {
++			
++					if (Menu && Dom.hasClass(p_oMenu, sMenuCSSClassName) || 
++							p_oMenu.nodeName.toUpperCase() == "SELECT") {
++			
++						oMenu = new Menu(p_oMenu, { lazyload: bLazyLoad });
++					
++						initMenu.call(this);
++			
++					}
++					else if (Overlay) {
++			
++						if (!p_oMenu.id) {
++						
++							Dom.generateId(p_oMenu);
++						
++						}
++			
++						oMenu = new Overlay(p_oMenu, { visible: false });
++			
++						initMenu.call(this);
++					
++					}
++				
++				}
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setOnClick
++        * @description Sets the value of the button's "onclick" attribute.
++        * @protected
++        * @param {Object} p_oObject Object indicating the value for the button's 
++        * "onclick" attribute.
++        */
++        _setOnClick: function (p_oObject) {
++        
++            /*
++                Remove any existing listeners if a "click" event handler 
++                has already been specified.
++            */
++        
++            if (this._onclickAttributeValue && 
++                (this._onclickAttributeValue != p_oObject)) {
++        
++                this.removeListener("click", this._onclickAttributeValue.fn);
++        
++                this._onclickAttributeValue = null;
++        
++            }
++        
++        
++            if (!this._onclickAttributeValue && 
++                Lang.isObject(p_oObject) && 
++                Lang.isFunction(p_oObject.fn)) {
++        
++                this.on("click", p_oObject.fn, p_oObject.obj, p_oObject.scope);
++        
++                this._onclickAttributeValue = p_oObject;
++        
++            }
++        
++        },
++
++        
++        
++        // Protected methods
++
++        
++        
++        /**
++        * @method _isActivationKey
++        * @description Determines if the specified keycode is one that toggles  
++        * the button's "active" state.
++        * @protected
++        * @param {Number} p_nKeyCode Number representing the keycode to 
++        * be evaluated.
++        * @return {Boolean}
++        */
++        _isActivationKey: function (p_nKeyCode) {
++        
++            var sType = this.get("type"),
++                aKeyCodes = (sType == "checkbox" || sType == "radio") ? 
++                    this.CHECK_ACTIVATION_KEYS : this.ACTIVATION_KEYS,
++        
++                nKeyCodes = aKeyCodes.length,
++                bReturnVal = false,
++                i;
++        
++
++            if (nKeyCodes > 0) {
++        
++                i = nKeyCodes - 1;
++        
++                do {
++        
++                    if (p_nKeyCode == aKeyCodes[i]) {
++        
++                        bReturnVal = true;
++                        break;
++        
++                    }
++        
++                }
++                while (i--);
++            
++            }
++            
++            return bReturnVal;
++        
++        },
++        
++        
++        /**
++        * @method _isSplitButtonOptionKey
++        * @description Determines if the specified keycode is one that toggles  
++        * the display of the split button's menu.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        * @return {Boolean}
++        */
++        _isSplitButtonOptionKey: function (p_oEvent) {
++
++			var bShowMenu = (Event.getCharCode(p_oEvent) == 40);
++
++
++			var onKeyPress = function (p_oEvent) {
++
++				Event.preventDefault(p_oEvent);
++
++				this.removeListener("keypress", onKeyPress);
++			
++			};
++
++
++			// Prevent the browser from scrolling the window
++			if (bShowMenu) {
++
++				if (UA.opera) {
++	
++					this.on("keypress", onKeyPress);
++	
++				}
++
++				Event.preventDefault(p_oEvent);
++			}
++
++            return bShowMenu;
++        
++        },
++        
++        
++        /**
++        * @method _addListenersToForm
++        * @description Adds event handlers to the button's form.
++        * @protected
++        */
++        _addListenersToForm: function () {
++        
++            var oForm = this.getForm(),
++                onFormKeyPress = YAHOO.widget.Button.onFormKeyPress,
++                bHasKeyPressListener,
++                oSrcElement,
++                aListeners,
++                nListeners,
++                i;
++        
++        
++            if (oForm) {
++        
++                Event.on(oForm, "reset", this._onFormReset, null, this);
++                Event.on(oForm, "submit", this._onFormSubmit, null, this);
++        
++                oSrcElement = this.get("srcelement");
++        
++        
++                if (this.get("type") == "submit" || 
++                    (oSrcElement && oSrcElement.type == "submit")) 
++                {
++                
++                    aListeners = Event.getListeners(oForm, "keypress");
++                    bHasKeyPressListener = false;
++            
++                    if (aListeners) {
++            
++                        nListeners = aListeners.length;
++        
++                        if (nListeners > 0) {
++            
++                            i = nListeners - 1;
++                            
++                            do {
++               
++                                if (aListeners[i].fn == onFormKeyPress) {
++                
++                                    bHasKeyPressListener = true;
++                                    break;
++                                
++                                }
++                
++                            }
++                            while (i--);
++                        
++                        }
++                    
++                    }
++            
++            
++                    if (!bHasKeyPressListener) {
++               
++                        Event.on(oForm, "keypress", onFormKeyPress);
++            
++                    }
++        
++                }
++            
++            }
++        
++        },
++        
++        
++        
++        /**
++        * @method _showMenu
++        * @description Shows the button's menu.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object 
++        * passed back by the event utility (YAHOO.util.Event) that triggered 
++        * the display of the menu.
++        */
++        _showMenu: function (p_oEvent) {
++
++            if (YAHOO.widget.MenuManager) {
++                YAHOO.widget.MenuManager.hideVisible();
++            }
++
++        
++            if (m_oOverlayManager) {
++                m_oOverlayManager.hideAll();
++            }
++
++
++            var oMenu = this._menu,
++            	aMenuAlignment = this.get("menualignment"),
++            	bFocusMenu = this.get("focusmenu"),
++				fnFocusMethod;
++
++
++			if (this._renderedMenu) {
++
++				oMenu.cfg.setProperty("context", 
++								[this.get("element"), aMenuAlignment[0], aMenuAlignment[1]]);
++	
++				oMenu.cfg.setProperty("preventcontextoverlap", true);
++				oMenu.cfg.setProperty("constraintoviewport", true);
++
++			}
++			else {
++
++				oMenu.cfg.queueProperty("context", 
++								[this.get("element"), aMenuAlignment[0], aMenuAlignment[1]]);
++	
++				oMenu.cfg.queueProperty("preventcontextoverlap", true);
++				oMenu.cfg.queueProperty("constraintoviewport", true);
++			
++			}
++
++
++			/*
++				 Refocus the Button before showing its Menu in case the call to 
++				 YAHOO.widget.MenuManager.hideVisible() resulted in another element in the 
++				 DOM being focused after another Menu was hidden.
++			*/
++			
++			this.focus();
++
++
++            if (Menu && oMenu && (oMenu instanceof Menu)) {
++
++				// Since Menus automatically focus themselves when made visible, temporarily 
++				// replace the Menu focus method so that the value of the Button's "focusmenu"
++				// attribute determines if the Menu should be focus when made visible.
++
++				fnFocusMethod = oMenu.focus;
++
++				oMenu.focus = function () {};
++
++				if (this._renderedMenu) {
++
++					oMenu.cfg.setProperty("minscrollheight", this.get("menuminscrollheight"));
++					oMenu.cfg.setProperty("maxheight", this.get("menumaxheight"));
++				
++				}
++				else {
++
++					oMenu.cfg.queueProperty("minscrollheight", this.get("menuminscrollheight"));
++					oMenu.cfg.queueProperty("maxheight", this.get("menumaxheight"));
++				
++				}
++
++
++                oMenu.show();
++
++        		oMenu.focus = fnFocusMethod;
++
++				oMenu.align();
++        
++
++                /*
++                    Stop the propagation of the event so that the MenuManager 
++                    doesn't blur the menu after it gets focus.
++                */
++        
++                if (p_oEvent.type == "mousedown") {
++                    Event.stopPropagation(p_oEvent);
++                }
++
++        
++                if (bFocusMenu) { 
++                    oMenu.focus();
++                }
++
++            }
++            else if (Overlay && oMenu && (oMenu instanceof Overlay)) {
++
++				if (!this._renderedMenu) {
++		            oMenu.render(this.get("element").parentNode);
++				}
++
++                oMenu.show();
++				oMenu.align();
++
++            }
++        
++        },
++        
++        
++        /**
++        * @method _hideMenu
++        * @description Hides the button's menu.
++        * @protected
++        */
++        _hideMenu: function () {
++        
++            var oMenu = this._menu;
++        
++            if (oMenu) {
++        
++                oMenu.hide();
++        
++            }
++        
++        },
++        
++        
++        
++        
++        // Protected event handlers
++        
++        
++        /**
++        * @method _onMouseOver
++        * @description "mouseover" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseOver: function (p_oEvent) {
++        
++        	var sType = this.get("type"),
++        		oElement,
++				nOptionRegionX;
++
++
++			if (sType === "split") {
++
++				oElement = this.get("element");
++				nOptionRegionX = 
++					(Dom.getX(oElement) + (oElement.offsetWidth - this.OPTION_AREA_WIDTH));
++					
++				this._nOptionRegionX = nOptionRegionX;
++			
++			}
++        
++
++            if (!this._hasMouseEventHandlers) {
++        
++				if (sType === "split") {
++        
++	        		this.on("mousemove", this._onMouseMove);
++
++        		}
++
++                this.on("mouseout", this._onMouseOut);
++        
++                this._hasMouseEventHandlers = true;
++        
++            }
++        
++
++            this.addStateCSSClasses("hover");
++
++
++			if (sType === "split" && (Event.getPageX(p_oEvent) > nOptionRegionX)) {
++	
++				this.addStateCSSClasses("hoveroption");
++	
++			}
++
++        
++            if (this._activationButtonPressed) {
++        
++                this.addStateCSSClasses("active");
++        
++            }
++        
++        
++            if (this._bOptionPressed) {
++        
++                this.addStateCSSClasses("activeoption");
++            
++            }
++
++
++            if (this._activationButtonPressed || this._bOptionPressed) {
++        
++                Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
++        
++            }
++
++        },
++
++
++        /**
++        * @method _onMouseMove
++        * @description "mousemove" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */        
++        _onMouseMove: function (p_oEvent) {
++        
++        	var nOptionRegionX = this._nOptionRegionX;
++        
++        	if (nOptionRegionX) {
++
++				if (Event.getPageX(p_oEvent) > nOptionRegionX) {
++					
++					this.addStateCSSClasses("hoveroption");
++	
++				}
++				else {
++
++					this.removeStateCSSClasses("hoveroption");
++				
++				}
++				
++        	}
++        
++        },
++        
++        /**
++        * @method _onMouseOut
++        * @description "mouseout" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseOut: function (p_oEvent) {
++
++			var sType = this.get("type");
++        
++            this.removeStateCSSClasses("hover");
++        
++
++            if (sType != "menu") {
++        
++                this.removeStateCSSClasses("active");
++        
++            }
++        
++
++            if (this._activationButtonPressed || this._bOptionPressed) {
++        
++                Event.on(document, "mouseup", this._onDocumentMouseUp, null, this);
++        
++            }
++
++
++			if (sType === "split" && (Event.getPageX(p_oEvent) > this._nOptionRegionX)) {
++			
++				this.removeStateCSSClasses("hoveroption");
++	
++			}
++            
++        },
++        
++        
++        /**
++        * @method _onDocumentMouseUp
++        * @description "mouseup" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDocumentMouseUp: function (p_oEvent) {
++        
++            this._activationButtonPressed = false;
++            this._bOptionPressed = false;
++        
++            var sType = this.get("type"),
++                oTarget,
++                oMenuElement;
++        
++            if (sType == "menu" || sType == "split") {
++
++                oTarget = Event.getTarget(p_oEvent);
++                oMenuElement = this._menu.element;
++        
++                if (oTarget != oMenuElement && 
++                    !Dom.isAncestor(oMenuElement, oTarget)) {
++
++                    this.removeStateCSSClasses((sType == "menu" ? 
++                        "active" : "activeoption"));
++            
++                    this._hideMenu();
++
++                }
++        
++            }
++        
++            Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
++        
++        },
++        
++        
++        /**
++        * @method _onMouseDown
++        * @description "mousedown" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseDown: function (p_oEvent) {
++        
++            var sType,
++            	bReturnVal = true;
++        
++        
++            function onMouseUp() {
++            
++                this._hideMenu();
++                this.removeListener("mouseup", onMouseUp);
++            
++            }
++        
++        
++            if ((p_oEvent.which || p_oEvent.button) == 1) {
++        
++        
++                if (!this.hasFocus()) {
++                
++                    this.focus();
++                
++                }
++        
++        
++                sType = this.get("type");
++        
++        
++                if (sType == "split") {
++                
++                    if (Event.getPageX(p_oEvent) > this._nOptionRegionX) {
++                        
++                        this.fireEvent("option", p_oEvent);
++						bReturnVal = false;
++        
++                    }
++                    else {
++        
++                        this.addStateCSSClasses("active");
++        
++                        this._activationButtonPressed = true;
++        
++                    }
++        
++                }
++                else if (sType == "menu") {
++        
++                    if (this.isActive()) {
++        
++                        this._hideMenu();
++        
++                        this._activationButtonPressed = false;
++        
++                    }
++                    else {
++        
++                        this._showMenu(p_oEvent);
++        
++                        this._activationButtonPressed = true;
++                    
++                    }
++        
++                }
++                else {
++        
++                    this.addStateCSSClasses("active");
++        
++                    this._activationButtonPressed = true;
++                
++                }
++        
++        
++        
++                if (sType == "split" || sType == "menu") {
++
++                    this._hideMenuTimer = Lang.later(250, this, this.on, ["mouseup", onMouseUp]);
++        
++                }
++        
++            }
++            
++            return bReturnVal;
++            
++        },
++        
++        
++        /**
++        * @method _onMouseUp
++        * @description "mouseup" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseUp: function (p_oEvent) {
++        
++            var sType = this.get("type"),
++            	oHideMenuTimer = this._hideMenuTimer,
++            	bReturnVal = true;
++        
++        
++            if (oHideMenuTimer) {
++  
++  				oHideMenuTimer.cancel();
++        
++            }
++        
++        
++            if (sType == "checkbox" || sType == "radio") {
++        
++                this.set("checked", !(this.get("checked")));
++            
++            }
++        
++        
++            this._activationButtonPressed = false;
++            
++        
++            if (sType != "menu") {
++        
++                this.removeStateCSSClasses("active");
++            
++            }
++
++                
++			if (sType == "split" && Event.getPageX(p_oEvent) > this._nOptionRegionX) {
++				
++				bReturnVal = false;
++
++			}
++
++			return bReturnVal;
++            
++        },
++        
++        
++        /**
++        * @method _onFocus
++        * @description "focus" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onFocus: function (p_oEvent) {
++        
++            var oElement;
++        
++            this.addStateCSSClasses("focus");
++        
++            if (this._activationKeyPressed) {
++        
++                this.addStateCSSClasses("active");
++           
++            }
++        
++            m_oFocusedButton = this;
++        
++        
++            if (!this._hasKeyEventHandlers) {
++        
++                oElement = this._button;
++        
++                Event.on(oElement, "blur", this._onBlur, null, this);
++                Event.on(oElement, "keydown", this._onKeyDown, null, this);
++                Event.on(oElement, "keyup", this._onKeyUp, null, this);
++        
++                this._hasKeyEventHandlers = true;
++        
++            }
++        
++        
++            this.fireEvent("focus", p_oEvent);
++        
++        },
++        
++        
++        /**
++        * @method _onBlur
++        * @description "blur" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onBlur: function (p_oEvent) {
++        
++            this.removeStateCSSClasses("focus");
++        
++            if (this.get("type") != "menu") {
++        
++                this.removeStateCSSClasses("active");
++
++            }    
++        
++            if (this._activationKeyPressed) {
++        
++                Event.on(document, "keyup", this._onDocumentKeyUp, null, this);
++        
++            }
++        
++        
++            m_oFocusedButton = null;
++        
++            this.fireEvent("blur", p_oEvent);
++           
++        },
++        
++        
++        /**
++        * @method _onDocumentKeyUp
++        * @description "keyup" event handler for the document.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDocumentKeyUp: function (p_oEvent) {
++        
++            if (this._isActivationKey(Event.getCharCode(p_oEvent))) {
++        
++                this._activationKeyPressed = false;
++                
++                Event.removeListener(document, "keyup", this._onDocumentKeyUp);
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onKeyDown
++        * @description "keydown" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onKeyDown: function (p_oEvent) {
++        
++            var oMenu = this._menu;
++        
++        
++            if (this.get("type") == "split" && 
++                this._isSplitButtonOptionKey(p_oEvent)) {
++        
++                this.fireEvent("option", p_oEvent);
++        
++            }
++            else if (this._isActivationKey(Event.getCharCode(p_oEvent))) {
++        
++                if (this.get("type") == "menu") {
++        
++                    this._showMenu(p_oEvent);
++        
++                }
++                else {
++        
++                    this._activationKeyPressed = true;
++                    
++                    this.addStateCSSClasses("active");
++                
++                }
++            
++            }
++        
++        
++            if (oMenu && oMenu.cfg.getProperty("visible") && 
++                Event.getCharCode(p_oEvent) == 27) {
++            
++                oMenu.hide();
++                this.focus();
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onKeyUp
++        * @description "keyup" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onKeyUp: function (p_oEvent) {
++        
++            var sType;
++        
++            if (this._isActivationKey(Event.getCharCode(p_oEvent))) {
++        
++                sType = this.get("type");
++        
++                if (sType == "checkbox" || sType == "radio") {
++        
++                    this.set("checked", !(this.get("checked")));
++                
++                }
++        
++                this._activationKeyPressed = false;
++        
++                if (this.get("type") != "menu") {
++        
++                    this.removeStateCSSClasses("active");
++        
++                }
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onClick
++        * @description "click" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onClick: function (p_oEvent) {
++        
++            var sType = this.get("type"),
++                oForm,
++                oSrcElement,
++                bReturnVal;
++        
++
++			switch (sType) {
++
++			case "submit":
++
++				if (p_oEvent.returnValue !== false) {
++
++					this.submitForm();
++
++				}
++
++				break;
++
++			case "reset":
++
++				oForm = this.getForm();
++
++				if (oForm) {
++
++					oForm.reset();
++
++				}
++
++				break;
++
++
++			case "split":
++
++				if (this._nOptionRegionX > 0 && 
++						(Event.getPageX(p_oEvent) > this._nOptionRegionX)) {
++
++					bReturnVal = false;
++
++				}
++				else {
++
++					this._hideMenu();
++
++					oSrcElement = this.get("srcelement");
++
++					if (oSrcElement && oSrcElement.type == "submit" && 
++							p_oEvent.returnValue !== false) {
++
++						this.submitForm();
++
++					}
++
++				}
++
++				break;
++
++			}
++
++			return bReturnVal;
++        
++        },
++        
++        
++        /**
++        * @method _onDblClick
++        * @description "dblclick" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDblClick: function (p_oEvent) {
++        
++            var bReturnVal = true;
++    
++			if (this.get("type") == "split" && Event.getPageX(p_oEvent) > this._nOptionRegionX) {
++
++				bReturnVal = false;
++			
++			}
++        
++        	return bReturnVal;
++        
++        },        
++        
++        
++        /**
++        * @method _onAppendTo
++        * @description "appendTo" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onAppendTo: function (p_oEvent) {
++        
++            /*
++                It is necessary to call "_addListenersToForm" using 
++                "setTimeout" to make sure that the button's "form" property 
++                returns a node reference.  Sometimes, if you try to get the 
++                reference immediately after appending the field, it is null.
++            */
++        
++            Lang.later(0, this, this._addListenersToForm);
++        
++        },
++        
++        
++        /**
++        * @method _onFormReset
++        * @description "reset" event handler for the button's form.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (YAHOO.util.Event).
++        */
++        _onFormReset: function (p_oEvent) {
++        
++            var sType = this.get("type"),
++                oMenu = this._menu;
++        
++            if (sType == "checkbox" || sType == "radio") {
++        
++                this.resetValue("checked");
++        
++            }
++        
++        
++            if (Menu && oMenu && (oMenu instanceof Menu)) {
++        
++                this.resetValue("selectedMenuItem");
++        
++            }
++        
++        },
++
++
++        /**
++        * @method _onFormSubmit
++        * @description "submit" event handler for the button's form.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (YAHOO.util.Event).
++        */        
++        _onFormSubmit: function (p_oEvent) {
++        
++        	this.createHiddenFields();
++        
++        },
++        
++        
++        /**
++        * @method _onDocumentMouseDown
++        * @description "mousedown" event handler for the document.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDocumentMouseDown: function (p_oEvent) {
++
++            var oTarget = Event.getTarget(p_oEvent),
++                oButtonElement = this.get("element"),
++                oMenuElement = this._menu.element;
++           
++        
++            if (oTarget != oButtonElement && 
++                !Dom.isAncestor(oButtonElement, oTarget) && 
++                oTarget != oMenuElement && 
++                !Dom.isAncestor(oMenuElement, oTarget)) {
++        
++                this._hideMenu();
++
++				//	In IE when the user mouses down on a focusable element
++				//	that element will be focused and become the "activeElement".
++				//	(http://msdn.microsoft.com/en-us/library/ms533065(VS.85).aspx)
++				//	However, there is a bug in IE where if there is a  
++				//	positioned element with a focused descendant that is 
++				//	hidden in response to the mousedown event, the target of 
++				//	the mousedown event will appear to have focus, but will 
++				//	not be set as the activeElement.  This will result 
++				//	in the element not firing key events, even though it
++				//	appears to have focus.	The following call to "setActive"
++				//	fixes this bug.
++
++				if (UA.ie && oTarget.focus) {
++					oTarget.setActive();
++				}
++        
++                Event.removeListener(document, "mousedown", 
++                    this._onDocumentMouseDown);    
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onOption
++        * @description "option" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onOption: function (p_oEvent) {
++        
++            if (this.hasClass(this.CLASS_NAME_PREFIX + "split-button-activeoption")) {
++        
++                this._hideMenu();
++        
++                this._bOptionPressed = false;
++        
++            }
++            else {
++        
++                this._showMenu(p_oEvent);    
++        
++                this._bOptionPressed = true;
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onMenuShow
++        * @description "show" event handler for the button's menu.
++        * @private
++        * @param {String} p_sType String representing the name of the event  
++        * that was fired.
++        */
++        _onMenuShow: function (p_sType) {
++        
++            Event.on(document, "mousedown", this._onDocumentMouseDown, 
++                null, this);
++        
++            var sState = (this.get("type") == "split") ? "activeoption" : "active";
++        
++            this.addStateCSSClasses(sState);
++        
++        },
++        
++        
++        /**
++        * @method _onMenuHide
++        * @description "hide" event handler for the button's menu.
++        * @private
++        * @param {String} p_sType String representing the name of the event  
++        * that was fired.
++        */
++        _onMenuHide: function (p_sType) {
++            
++            var sState = (this.get("type") == "split") ? "activeoption" : "active";
++        
++            this.removeStateCSSClasses(sState);
++        
++        
++            if (this.get("type") == "split") {
++        
++                this._bOptionPressed = false;
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onMenuKeyDown
++        * @description "keydown" event handler for the button's 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.
++        */
++        _onMenuKeyDown: function (p_sType, p_aArgs) {
++        
++            var oEvent = p_aArgs[0];
++        
++            if (Event.getCharCode(oEvent) == 27) {
++        
++                this.focus();
++        
++                if (this.get("type") == "split") {
++                
++                    this._bOptionPressed = false;
++                
++                }
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onMenuRender
++        * @description "render" event handler for the button's menu.
++        * @private
++        * @param {String} p_sType String representing the name of the  
++        * event thatwas fired.
++        */
++        _onMenuRender: function (p_sType) {
++        
++            var oButtonElement = this.get("element"),
++                oButtonParent = oButtonElement.parentNode,
++				oMenu = this._menu,
++                oMenuElement = oMenu.element,
++				oSrcElement = oMenu.srcElement,
++				oItem;
++        
++        
++            if (oButtonParent != oMenuElement.parentNode) {
++        
++                oButtonParent.appendChild(oMenuElement);
++            
++            }
++
++			this._renderedMenu = true;
++
++			//	If the user has designated an <option> of the Menu's source 
++			//	<select> element to be selected, sync the selectedIndex with 
++			//	the "selectedMenuItem" Attribute.
++
++			if (oSrcElement && 
++					oSrcElement.nodeName.toLowerCase() === "select" && 
++					oSrcElement.value) {
++				
++				
++				oItem = oMenu.getItem(oSrcElement.selectedIndex);
++				
++				//	Set the value of the "selectedMenuItem" attribute
++				//	silently since this is the initial set--synchronizing 
++				//	the value of the source <SELECT> element in the DOM with 
++				//	its corresponding Menu instance.
++
++				this.set("selectedMenuItem", oItem, true);
++				
++				//	Call the "_onSelectedMenuItemChange" method since the 
++				//	attribute was set silently.
++
++				this._onSelectedMenuItemChange({ newValue: oItem });
++				
++			}
++
++        },
++
++        
++        
++        /**
++        * @method _onMenuClick
++        * @description "click" event handler for the button's 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.
++        */
++        _onMenuClick: function (p_sType, p_aArgs) {
++
++            var oItem = p_aArgs[1],
++                oSrcElement;
++        
++            if (oItem) {
++        
++				this.set("selectedMenuItem", oItem);
++
++                oSrcElement = this.get("srcelement");
++            
++                if (oSrcElement && oSrcElement.type == "submit") {
++        
++                    this.submitForm();
++            
++                }
++            
++                this._hideMenu();
++            
++            }
++        
++        },
++
++
++        /**
++        * @method _onSelectedMenuItemChange
++        * @description "selectedMenuItemChange" event handler for the Button's
++		* "selectedMenuItem" attribute.
++        * @param {Event} event Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++		_onSelectedMenuItemChange: function (event) {
++		
++			var oSelected = event.prevValue,
++				oItem = event.newValue,
++				sPrefix = this.CLASS_NAME_PREFIX;
++
++			if (oSelected) {
++				Dom.removeClass(oSelected.element, (sPrefix + "button-selectedmenuitem"));
++			}
++			
++			if (oItem) {
++				Dom.addClass(oItem.element, (sPrefix + "button-selectedmenuitem"));
++			}
++			
++		},        
++        
++
++        /**
++        * @method _onLabelClick
++        * @description "click" event handler for the Button's
++		* <code>&#60;label&#62;</code> element.
++        * @param {Event} event Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++		_onLabelClick: function (event) {
++
++			this.focus();
++
++			var sType = this.get("type");
++
++			if (sType == "radio" || sType == "checkbox") {
++				this.set("checked", (!this.get("checked")));						
++			}
++			
++		},
++
++        
++        // Public methods
++        
++        
++        /**
++        * @method createButtonElement
++        * @description Creates the button's HTML elements.
++        * @param {String} p_sType String indicating the type of element 
++        * to create.
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-58190037">HTMLElement</a>}
++        */
++        createButtonElement: function (p_sType) {
++        
++            var sNodeName = this.NODE_NAME,
++                oElement = document.createElement(sNodeName);
++        
++            oElement.innerHTML =  "<" + sNodeName + " class=\"first-child\">" + 
++                (p_sType == "link" ? "<a></a>" : 
++                "<button type=\"button\"></button>") + "</" + sNodeName + ">";
++        
++            return oElement;
++        
++        },
++
++        
++        /**
++        * @method addStateCSSClasses
++        * @description Appends state-specific CSS classes to the button's root 
++        * DOM element.
++        */
++        addStateCSSClasses: function (p_sState) {
++        
++            var sType = this.get("type"),
++				sPrefix = this.CLASS_NAME_PREFIX;
++        
++            if (Lang.isString(p_sState)) {
++        
++                if (p_sState != "activeoption" && p_sState != "hoveroption") {
++        
++                    this.addClass(sPrefix + this.CSS_CLASS_NAME + ("-" + p_sState));
++        
++                }
++        
++                this.addClass(sPrefix + sType + ("-button-" + p_sState));
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method removeStateCSSClasses
++        * @description Removes state-specific CSS classes to the button's root 
++        * DOM element.
++        */
++        removeStateCSSClasses: function (p_sState) {
++        
++            var sType = this.get("type"),
++				sPrefix = this.CLASS_NAME_PREFIX;
++        
++            if (Lang.isString(p_sState)) {
++        
++                this.removeClass(sPrefix + this.CSS_CLASS_NAME + ("-" + p_sState));
++                this.removeClass(sPrefix + sType + ("-button-" + p_sState));
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method createHiddenFields
++        * @description Creates the button's hidden form field and appends it 
++        * to its parent form.
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|Array}
++        */
++        createHiddenFields: function () {
++        
++            this.removeHiddenFields();
++        
++            var oForm = this.getForm(),
++                oButtonField,
++                sType,
++                bCheckable,
++                oMenu,
++                oMenuItem,
++                sButtonName,
++                oValue,
++                oMenuField,
++                oReturnVal,
++				sMenuFieldName,
++				oMenuSrcElement,
++				bMenuSrcElementIsSelect = false;
++        
++        
++            if (oForm && !this.get("disabled")) {
++        
++                sType = this.get("type");
++                bCheckable = (sType == "checkbox" || sType == "radio");
++        
++        
++                if ((bCheckable && this.get("checked")) || (m_oSubmitTrigger == this)) {
++                
++                    YAHOO.log("Creating hidden field.", "info", this.toString());
++        
++                    oButtonField = createInputElement((bCheckable ? sType : "hidden"),
++                                    this.get("name"), this.get("value"), this.get("checked"));
++            
++            
++                    if (oButtonField) {
++            
++                        if (bCheckable) {
++            
++                            oButtonField.style.display = "none";
++            
++                        }
++            
++                        oForm.appendChild(oButtonField);
++            
++                    }
++        
++                }
++                    
++        
++                oMenu = this._menu;
++            
++            
++                if (Menu && oMenu && (oMenu instanceof Menu)) {
++        
++                    YAHOO.log("Creating hidden field for menu.", "info", this.toString());
++        
++                    oMenuItem = this.get("selectedMenuItem");
++					oMenuSrcElement = oMenu.srcElement;
++					bMenuSrcElementIsSelect = (oMenuSrcElement && 
++												oMenuSrcElement.nodeName.toUpperCase() == "SELECT");
++
++                    if (oMenuItem) {
++
++						oValue = (oMenuItem.value === null || oMenuItem.value === "") ? 
++									oMenuItem.cfg.getProperty("text") : oMenuItem.value;
++
++						sButtonName = this.get("name");
++
++
++						if (bMenuSrcElementIsSelect) {
++						
++							sMenuFieldName = oMenuSrcElement.name;
++						
++						}
++						else if (sButtonName) {
++
++							sMenuFieldName = (sButtonName + "_options");
++						
++						}
++						
++
++						if (oValue && sMenuFieldName) {
++		
++							oMenuField = createInputElement("hidden", sMenuFieldName, oValue);
++							oForm.appendChild(oMenuField);
++		
++						}
++                    
++                    }
++                    else if (bMenuSrcElementIsSelect) {
++					
++						oMenuField = oForm.appendChild(oMenuSrcElement);
++                    
++                    }
++        
++                }
++            
++            
++                if (oButtonField && oMenuField) {
++        
++                    this._hiddenFields = [oButtonField, oMenuField];
++        
++                }
++                else if (!oButtonField && oMenuField) {
++        
++                    this._hiddenFields = oMenuField;
++                
++                }
++                else if (oButtonField && !oMenuField) {
++        
++                    this._hiddenFields = oButtonField;
++                
++                }
++        
++        		oReturnVal = this._hiddenFields;
++        
++            }
++
++			return oReturnVal;
++        
++        },
++        
++        
++        /**
++        * @method removeHiddenFields
++        * @description Removes the button's hidden form field(s) from its 
++        * parent form.
++        */
++        removeHiddenFields: function () {
++        
++            var oField = this._hiddenFields,
++                nFields,
++                i;
++        
++            function removeChild(p_oElement) {
++        
++                if (Dom.inDocument(p_oElement)) {
++        
++                    p_oElement.parentNode.removeChild(p_oElement);
++
++                }
++                
++            }
++            
++        
++            if (oField) {
++        
++                if (Lang.isArray(oField)) {
++        
++                    nFields = oField.length;
++                    
++                    if (nFields > 0) {
++                    
++                        i = nFields - 1;
++                        
++                        do {
++        
++                            removeChild(oField[i]);
++        
++                        }
++                        while (i--);
++                    
++                    }
++                
++                }
++                else {
++        
++                    removeChild(oField);
++        
++                }
++        
++                this._hiddenFields = null;
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method submitForm
++        * @description Submits the form to which the button belongs.  Returns  
++        * true if the form was submitted successfully, false if the submission 
++        * was cancelled.
++        * @protected
++        * @return {Boolean}
++        */
++        submitForm: function () {
++        
++            var oForm = this.getForm(),
++        
++                oSrcElement = this.get("srcelement"),
++        
++                /*
++                    Boolean indicating if the event fired successfully 
++                    (was not cancelled by any handlers)
++                */
++        
++                bSubmitForm = false,
++                
++                oEvent;
++        
++        
++            if (oForm) {
++        
++                if (this.get("type") == "submit" || (oSrcElement && oSrcElement.type == "submit")) {
++        
++                    m_oSubmitTrigger = this;
++                    
++                }
++        
++        
++                if (UA.ie) {
++        
++                    bSubmitForm = oForm.fireEvent("onsubmit");
++        
++                }
++                else {  // Gecko, Opera, and Safari
++        
++                    oEvent = document.createEvent("HTMLEvents");
++                    oEvent.initEvent("submit", true, true);
++        
++                    bSubmitForm = oForm.dispatchEvent(oEvent);
++        
++                }
++        
++        
++                /*
++                    In IE and Safari, dispatching a "submit" event to a form 
++                    WILL cause the form's "submit" event to fire, but WILL NOT 
++                    submit the form.  Therefore, we need to call the "submit" 
++                    method as well.
++                */
++              
++                if ((UA.ie || UA.webkit) && bSubmitForm) {
++        
++                    oForm.submit();
++                
++                }
++            
++            }
++        
++            return bSubmitForm;
++            
++        },
++        
++        
++        /**
++        * @method init
++        * @description The Button class's initialization method.
++        * @param {String} p_oElement String specifying the id attribute of the 
++        * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>,
++        * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to 
++        * be used to create the button.
++        * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://
++        * www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html
++        * #ID-34812697">HTMLButtonElement</a>|<a href="http://www.w3.org/TR
++        * /2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-33759296">
++        * HTMLElement</a>} p_oElement Object reference for the 
++        * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>, 
++        * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to be 
++        * used to create the button.
++        * @param {Object} p_oElement Object literal specifying a set of 
++        * configuration attributes used to create the button.
++        * @param {Object} p_oAttributes Optional. Object literal specifying a 
++        * set of configuration attributes used to create the button.
++        */
++        init: function (p_oElement, p_oAttributes) {
++        
++            var sNodeName = p_oAttributes.type == "link" ? "a" : "button",
++                oSrcElement = p_oAttributes.srcelement,
++                oButton = p_oElement.getElementsByTagName(sNodeName)[0],
++                oInput;
++
++
++            if (!oButton) {
++
++                oInput = p_oElement.getElementsByTagName("input")[0];
++
++
++                if (oInput) {
++
++                    oButton = document.createElement("button");
++                    oButton.setAttribute("type", "button");
++
++                    oInput.parentNode.replaceChild(oButton, oInput);
++                
++                }
++
++            }
++
++            this._button = oButton;
++
++
++            YAHOO.widget.Button.superclass.init.call(this, p_oElement, p_oAttributes);
++
++
++			var sId = this.get("id"),
++				sButtonId = sId + "-button";
++
++
++        	oButton.id = sButtonId;
++
++
++			var aLabels,
++				oLabel;
++
++
++        	var hasLabel = function (element) {
++        	
++				return (element.htmlFor === sId);
++
++        	};
++
++
++			var setLabel = function () {
++
++				oLabel.setAttribute((UA.ie ? "htmlFor" : "for"), sButtonId);
++			
++			};
++
++
++			if (oSrcElement && this.get("type") != "link") {
++
++				aLabels = Dom.getElementsBy(hasLabel, "label");
++
++				if (Lang.isArray(aLabels) && aLabels.length > 0) {
++				
++					oLabel = aLabels[0];
++				
++				}
++
++			}
++        
++
++            m_oButtons[sId] = this;
++
++        	var sPrefix = this.CLASS_NAME_PREFIX;
++
++            this.addClass(sPrefix + this.CSS_CLASS_NAME);
++            this.addClass(sPrefix + this.get("type") + "-button");
++        
++            Event.on(this._button, "focus", this._onFocus, null, this);
++            this.on("mouseover", this._onMouseOver);
++			this.on("mousedown", this._onMouseDown);
++			this.on("mouseup", this._onMouseUp);
++            this.on("click", this._onClick);
++
++			//	Need to reset the value of the "onclick" Attribute so that any
++			//	handlers registered via the "onclick" Attribute are fired after 
++			//	Button's default "_onClick" listener.
++
++			var fnOnClick = this.get("onclick");
++
++			this.set("onclick", null);
++			this.set("onclick", fnOnClick);
++
++            this.on("dblclick", this._onDblClick);
++
++
++			var oParentNode;
++
++            if (oLabel) {
++            
++				if (this.get("replaceLabel")) {
++
++					this.set("label", oLabel.innerHTML);
++					
++					oParentNode = oLabel.parentNode;
++					
++					oParentNode.removeChild(oLabel);
++					
++				}
++				else {
++
++					this.on("appendTo", setLabel); 
++
++					Event.on(oLabel, "click", this._onLabelClick, null, this);
++
++					this._label = oLabel;
++					
++				}
++            
++            }
++            
++            this.on("appendTo", this._onAppendTo);
++       
++        
++
++            var oContainer = this.get("container"),
++                oElement = this.get("element"),
++                bElInDoc = Dom.inDocument(oElement);
++
++
++            if (oContainer) {
++        
++                if (oSrcElement && oSrcElement != oElement) {
++                
++                    oParentNode = oSrcElement.parentNode;
++
++                    if (oParentNode) {
++                    
++                        oParentNode.removeChild(oSrcElement);
++                    
++                    }
++
++                }
++        
++                if (Lang.isString(oContainer)) {
++        
++                    Event.onContentReady(oContainer, this.appendTo, oContainer, this);
++        
++                }
++                else {
++        
++        			this.on("init", function () {
++        			
++        				Lang.later(0, this, this.appendTo, oContainer);
++        			
++        			});
++        
++                }
++        
++            }
++            else if (!bElInDoc && oSrcElement && oSrcElement != oElement) {
++
++                oParentNode = oSrcElement.parentNode;
++        
++                if (oParentNode) {
++        
++                    this.fireEvent("beforeAppendTo", {
++                        type: "beforeAppendTo",
++                        target: oParentNode
++                    });
++            
++                    oParentNode.replaceChild(oElement, oSrcElement);
++            
++                    this.fireEvent("appendTo", {
++                        type: "appendTo",
++                        target: oParentNode
++                    });
++                
++                }
++        
++            }
++            else if (this.get("type") != "link" && bElInDoc && oSrcElement && 
++                oSrcElement == oElement) {
++        
++                this._addListenersToForm();
++        
++            }
++        
++            YAHOO.log("Initialization completed.", "info", this.toString());
++        
++
++			this.fireEvent("init", {
++				type: "init",
++				target: this
++			});        
++        
++        },
++        
++        
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to  
++        * create the button.
++        * @param {Object} p_oAttributes Object literal specifying a set of 
++        * configuration attributes used to create the button.
++        */
++        initAttributes: function (p_oAttributes) {
++        
++            var oAttributes = p_oAttributes || {};
++        
++            YAHOO.widget.Button.superclass.initAttributes.call(this, 
++                oAttributes);
++        
++        
++            /**
++            * @attribute type
++            * @description String specifying the button's type.  Possible 
++            * values are: "push," "link," "submit," "reset," "checkbox," 
++            * "radio," "menu," and "split."
++            * @default "push"
++            * @type String
++			* @writeonce
++            */
++            this.setAttributeConfig("type", {
++        
++                value: (oAttributes.type || "push"),
++                validator: Lang.isString,
++                writeOnce: true,
++                method: this._setType
++
++            });
++        
++        
++            /**
++            * @attribute label
++            * @description String specifying the button's text label 
++            * or innerHTML.
++            * @default null
++            * @type String
++            */
++            this.setAttributeConfig("label", {
++        
++                value: oAttributes.label,
++                validator: Lang.isString,
++                method: this._setLabel
++        
++            });
++        
++        
++            /**
++            * @attribute value
++            * @description Object specifying the value for the button.
++            * @default null
++            * @type Object
++            */
++            this.setAttributeConfig("value", {
++        
++                value: oAttributes.value
++        
++            });
++        
++        
++            /**
++            * @attribute name
++            * @description String specifying the name for the button.
++            * @default null
++            * @type String
++            */
++            this.setAttributeConfig("name", {
++        
++                value: oAttributes.name,
++                validator: Lang.isString
++        
++            });
++        
++        
++            /**
++            * @attribute tabindex
++            * @description Number specifying the tabindex for the button.
++            * @default null
++            * @type Number
++            */
++            this.setAttributeConfig("tabindex", {
++        
++                value: oAttributes.tabindex,
++                validator: Lang.isNumber,
++                method: this._setTabIndex
++        
++            });
++        
++        
++            /**
++            * @attribute title
++            * @description String specifying the title for the button.
++            * @default null
++            * @type String
++            */
++            this.configureAttribute("title", {
++        
++                value: oAttributes.title,
++                validator: Lang.isString,
++                method: this._setTitle
++        
++            });
++        
++        
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the button should be disabled.  
++            * (Disabled buttons are dimmed and will not respond to user input 
++            * or fire events.  Does not apply to button's of type "link.")
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig("disabled", {
++        
++                value: (oAttributes.disabled || false),
++                validator: Lang.isBoolean,
++                method: this._setDisabled
++        
++            });
++        
++        
++            /**
++            * @attribute href
++            * @description String specifying the href for the button.  Applies
++            * only to buttons of type "link."
++            * @type String
++            */
++            this.setAttributeConfig("href", {
++        
++                value: oAttributes.href,
++                validator: Lang.isString,
++                method: this._setHref
++        
++            });
++        
++        
++            /**
++            * @attribute target
++            * @description String specifying the target for the button.  
++            * Applies only to buttons of type "link."
++            * @type String
++            */
++            this.setAttributeConfig("target", {
++        
++                value: oAttributes.target,
++                validator: Lang.isString,
++                method: this._setTarget
++        
++            });
++        
++        
++            /**
++            * @attribute checked
++            * @description Boolean indicating if the button is checked. 
++            * Applies only to buttons of type "radio" and "checkbox."
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig("checked", {
++        
++                value: (oAttributes.checked || false),
++                validator: Lang.isBoolean,
++                method: this._setChecked
++        
++            });
++        
++        
++            /**
++            * @attribute container
++            * @description HTML element reference or string specifying the id 
++            * attribute of the HTML element that the button'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 null
++			* @writeonce
++            */
++            this.setAttributeConfig("container", {
++        
++                value: oAttributes.container,
++                writeOnce: true
++        
++            });
++        
++        
++            /**
++            * @attribute srcelement
++            * @description Object reference to the HTML element (either 
++            * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code>) 
++            * used to create the button.
++            * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++            * level-one-html.html#ID-58190037">HTMLElement</a>|String
++            * @default null
++			* @writeonce
++            */
++            this.setAttributeConfig("srcelement", {
++        
++                value: oAttributes.srcelement,
++                writeOnce: true
++        
++            });
++        
++        
++            /**
++            * @attribute menu
++            * @description Object specifying the menu for the button.  
++            * The value can be one of the following:
++            * <ul>
++            * <li>Object specifying a rendered <a href="YAHOO.widget.Menu.html">
++            * YAHOO.widget.Menu</a> instance.</li>
++            * <li>Object specifying a rendered <a href="YAHOO.widget.Overlay.html">
++            * YAHOO.widget.Overlay</a> instance.</li>
++            * <li>String specifying the id attribute of the <code>&#60;div&#62;
++            * </code> element used to create the menu.  By default the menu 
++            * will be created as an instance of 
++            * <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>.  
++            * If the <a href="YAHOO.widget.Menu.html#CSS_CLASS_NAME">
++            * default CSS class name for YAHOO.widget.Menu</a> is applied to 
++            * the <code>&#60;div&#62;</code> element, it will be created as an
++            * instance of <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu
++            * </a>.</li><li>String specifying the id attribute of the 
++            * <code>&#60;select&#62;</code> element used to create the menu.
++            * </li><li>Object specifying the <code>&#60;div&#62;</code> element
++            * used to create the menu.</li>
++            * <li>Object specifying the <code>&#60;select&#62;</code> element
++            * used to create the menu.</li>
++            * <li>Array of object literals, each representing a set of 
++            * <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a> 
++            * configuration attributes.</li>
++            * <li>Array of strings representing the text labels for each menu 
++            * item in the menu.</li>
++            * </ul>
++            * @type <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>|<a 
++            * href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>|<a 
++            * href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++            * one-html.html#ID-58190037">HTMLElement</a>|String|Array
++            * @default null
++			* @writeonce
++            */
++            this.setAttributeConfig("menu", {
++        
++                value: null,
++                method: this._setMenu,
++                writeOnce: true
++            
++            });
++        
++        
++            /**
++            * @attribute lazyloadmenu
++            * @description Boolean indicating the value to set for the 
++            * <a href="YAHOO.widget.Menu.html#lazyLoad">"lazyload"</a>
++            * configuration property of the button's menu.  Setting 
++            * "lazyloadmenu" to <code>true </code> will defer rendering of 
++            * the button's menu until the first time it is made visible.  
++            * If "lazyloadmenu" is set to <code>false</code>, the button's 
++            * menu will be rendered immediately if the button is in the 
++            * document, or in response to the button's "appendTo" event if 
++            * the button is not yet in the document.  In either case, the 
++            * menu is rendered into the button's parent HTML element.  
++            * <em>This attribute does not apply if a 
++            * <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a> or 
++            * <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a> 
++            * instance is passed as the value of the button's "menu" 
++            * configuration attribute. <a href="YAHOO.widget.Menu.html">
++            * YAHOO.widget.Menu</a> or <a href="YAHOO.widget.Overlay.html">
++            * YAHOO.widget.Overlay</a> instances should be rendered before 
++            * being set as the value for the "menu" configuration 
++            * attribute.</em>
++            * @default true
++            * @type Boolean
++			* @writeonce
++            */
++            this.setAttributeConfig("lazyloadmenu", {
++        
++                value: (oAttributes.lazyloadmenu === false ? false : true),
++                validator: Lang.isBoolean,
++                writeOnce: true
++        
++            });
++
++
++            /**
++            * @attribute menuclassname
++            * @description String representing the CSS class name to be 
++            * applied to the root element of the button's menu.
++            * @type String
++            * @default "yui-button-menu"
++			* @writeonce
++            */
++            this.setAttributeConfig("menuclassname", {
++        
++                value: (oAttributes.menuclassname || (this.CLASS_NAME_PREFIX + "button-menu")),
++                validator: Lang.isString,
++                method: this._setMenuClassName,
++                writeOnce: true
++        
++            });        
++
++
++			/**
++			* @attribute menuminscrollheight
++			* @description Number defining the minimum threshold for the "menumaxheight" 
++			* configuration attribute.  When set this attribute is automatically applied 
++			* to all submenus.
++			* @default 90
++			* @type Number
++			*/
++            this.setAttributeConfig("menuminscrollheight", {
++        
++                value: (oAttributes.menuminscrollheight || 90),
++                validator: Lang.isNumber
++        
++            });
++
++
++            /**
++            * @attribute menumaxheight
++			* @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.
++            * @type Number
++            * @default 0
++            */
++            this.setAttributeConfig("menumaxheight", {
++        
++                value: (oAttributes.menumaxheight || 0),
++                validator: Lang.isNumber
++        
++            });
++
++
++            /**
++            * @attribute menualignment
++			* @description Array defining how the Button's Menu is aligned to the Button.  
++            * The default value of ["tl", "bl"] aligns the Menu's top left corner to the Button's 
++            * bottom left corner.
++            * @type Array
++            * @default ["tl", "bl"]
++            */
++            this.setAttributeConfig("menualignment", {
++        
++                value: (oAttributes.menualignment || ["tl", "bl"]),
++                validator: Lang.isArray
++        
++            });
++            
++
++            /**
++            * @attribute selectedMenuItem
++            * @description Object representing the item in the button's menu 
++            * that is currently selected.
++            * @type YAHOO.widget.MenuItem
++            * @default null
++            */
++            this.setAttributeConfig("selectedMenuItem", {
++        
++                value: null
++        
++            });
++        
++        
++            /**
++            * @attribute onclick
++            * @description Object literal representing the code to be executed  
++            * when the button 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
++            */
++            this.setAttributeConfig("onclick", {
++        
++                value: oAttributes.onclick,
++                method: this._setOnClick
++            
++            });
++
++
++            /**
++            * @attribute focusmenu
++            * @description Boolean indicating whether or not the button's menu 
++            * should be focused when it is made visible.
++            * @type Boolean
++            * @default true
++            */
++            this.setAttributeConfig("focusmenu", {
++        
++                value: (oAttributes.focusmenu === false ? false : true),
++                validator: Lang.isBoolean
++        
++            });
++
++
++            /**
++            * @attribute replaceLabel
++            * @description Boolean indicating whether or not the text of the 
++			* button's <code>&#60;label&#62;</code> element should be used as
++			* the source for the button's label configuration attribute and 
++			* removed from the DOM.
++            * @type Boolean
++            * @default false
++            */
++            this.setAttributeConfig("replaceLabel", {
++        
++                value: false,
++                validator: Lang.isBoolean,
++                writeOnce: true
++        
++            });
++
++        },
++        
++        
++        /**
++        * @method focus
++        * @description Causes the button to receive the focus and fires the 
++        * button's "focus" event.
++        */
++        focus: function () {
++        
++            if (!this.get("disabled")) {
++        
++                this._button.focus();
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method blur
++        * @description Causes the button to lose focus and fires the button's
++        * "blur" event.
++        */
++        blur: function () {
++        
++            if (!this.get("disabled")) {
++        
++                this._button.blur();
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method hasFocus
++        * @description Returns a boolean indicating whether or not the button 
++        * has focus.
++        * @return {Boolean}
++        */
++        hasFocus: function () {
++        
++            return (m_oFocusedButton == this);
++        
++        },
++        
++        
++        /**
++        * @method isActive
++        * @description Returns a boolean indicating whether or not the button 
++        * is active.
++        * @return {Boolean}
++        */
++        isActive: function () {
++        
++            return this.hasClass(this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME + "-active");
++        
++        },
++        
++        
++        /**
++        * @method getMenu
++        * @description Returns a reference to the button's menu.
++        * @return {<a href="YAHOO.widget.Overlay.html">
++        * YAHOO.widget.Overlay</a>|<a 
++        * href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>}
++        */
++        getMenu: function () {
++        
++            return this._menu;
++        
++        },
++        
++        
++        /**
++        * @method getForm
++        * @description Returns a reference to the button's parent form.
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-
++        * 20000929/level-one-html.html#ID-40002357">HTMLFormElement</a>}
++        */
++        getForm: function () {
++        
++        	var oButton = this._button,
++        		oForm;
++        
++            if (oButton) {
++            
++            	oForm = oButton.form;
++            
++            }
++        
++        	return oForm;
++        
++        },
++        
++        
++        /** 
++        * @method getHiddenFields
++        * @description Returns an <code>&#60;input&#62;</code> element or 
++        * array of form elements used to represent the button when its parent 
++        * form is submitted.  
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|Array}
++        */
++        getHiddenFields: function () {
++        
++            return this._hiddenFields;
++        
++        },
++        
++        
++        /**
++        * @method destroy
++        * @description Removes the button's element from its parent element and 
++        * removes all event handlers.
++        */
++        destroy: function () {
++        
++            YAHOO.log("Destroying ...", "info", this.toString());
++        
++            var oElement = this.get("element"),
++                oMenu = this._menu,
++				oLabel = this._label,
++                oParentNode,
++                aButtons;
++        
++            if (oMenu) {
++        
++                YAHOO.log("Destroying menu.", "info", this.toString());
++
++                if (m_oOverlayManager && m_oOverlayManager.find(oMenu)) {
++
++                    m_oOverlayManager.remove(oMenu);
++
++                }
++        
++                oMenu.destroy();
++        
++            }
++        
++            YAHOO.log("Removing DOM event listeners.", "info", this.toString());
++        
++            Event.purgeElement(oElement);
++            Event.purgeElement(this._button);
++            Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
++            Event.removeListener(document, "keyup", this._onDocumentKeyUp);
++            Event.removeListener(document, "mousedown", this._onDocumentMouseDown);
++
++
++			if (oLabel) {
++
++            	Event.removeListener(oLabel, "click", this._onLabelClick);
++				
++				oParentNode = oLabel.parentNode;
++				oParentNode.removeChild(oLabel);
++				
++			}
++        
++        
++            var oForm = this.getForm();
++            
++            if (oForm) {
++        
++                Event.removeListener(oForm, "reset", this._onFormReset);
++                Event.removeListener(oForm, "submit", this._onFormSubmit);
++        
++            }
++
++            YAHOO.log("Removing CustomEvent listeners.", "info", this.toString());
++
++            this.unsubscribeAll();
++
++			oParentNode = oElement.parentNode;
++
++            if (oParentNode) {
++
++                oParentNode.removeChild(oElement);
++            
++            }
++        
++            YAHOO.log("Removing from document.", "info", this.toString());
++        
++            delete m_oButtons[this.get("id")];
++
++			var sClass = (this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME);
++
++            aButtons = Dom.getElementsByClassName(sClass, 
++                                this.NODE_NAME, oForm); 
++
++            if (Lang.isArray(aButtons) && aButtons.length === 0) {
++
++                Event.removeListener(oForm, "keypress", 
++                        YAHOO.widget.Button.onFormKeyPress);
++
++            }
++
++            YAHOO.log("Destroyed.", "info", this.toString());
++        
++        },
++        
++        
++        fireEvent: function (p_sType , p_aArgs) {
++        
++			var sType = arguments[0];
++		
++			//  Disabled buttons should not respond to DOM events
++		
++			if (this.DOM_EVENTS[sType] && this.get("disabled")) {
++		
++				return false;
++		
++			}
++		
++			return YAHOO.widget.Button.superclass.fireEvent.apply(this, arguments);
++        
++        },
++        
++        
++        /**
++        * @method toString
++        * @description Returns a string representing the button.
++        * @return {String}
++        */
++        toString: function () {
++        
++            return ("Button " + this.get("id"));
++        
++        }
++    
++    });
++    
++    
++    /**
++    * @method YAHOO.widget.Button.onFormKeyPress
++    * @description "keypress" event handler for the button's form.
++    * @param {Event} p_oEvent Object representing the DOM event object passed 
++    * back by the event utility (YAHOO.util.Event).
++    */
++    YAHOO.widget.Button.onFormKeyPress = function (p_oEvent) {
++    
++        var oTarget = Event.getTarget(p_oEvent),
++            nCharCode = Event.getCharCode(p_oEvent),
++            sNodeName = oTarget.nodeName && oTarget.nodeName.toUpperCase(),
++            sType = oTarget.type,
++    
++            /*
++                Boolean indicating if the form contains any enabled or 
++                disabled YUI submit buttons
++            */
++    
++            bFormContainsYUIButtons = false,
++    
++            oButton,
++    
++            oYUISubmitButton,   // The form's first, enabled YUI submit button
++    
++            /*
++                 The form's first, enabled HTML submit button that precedes any 
++                 YUI submit button
++            */
++    
++            oPrecedingSubmitButton,
++            
++            oEvent; 
++    
++    
++        function isSubmitButton(p_oElement) {
++    
++            var sId,
++                oSrcElement;
++    
++            switch (p_oElement.nodeName.toUpperCase()) {
++    
++            case "INPUT":
++            case "BUTTON":
++            
++                if (p_oElement.type == "submit" && !p_oElement.disabled) {
++                    
++                    if (!bFormContainsYUIButtons && !oPrecedingSubmitButton) {
++
++                        oPrecedingSubmitButton = p_oElement;
++
++                    }
++                
++                }
++
++                break;
++            
++
++            default:
++            
++                sId = p_oElement.id;
++    
++                if (sId) {
++    
++                    oButton = m_oButtons[sId];
++        
++                    if (oButton) {
++
++                        bFormContainsYUIButtons = true;
++        
++                        if (!oButton.get("disabled")) {
++
++                            oSrcElement = oButton.get("srcelement");
++    
++                            if (!oYUISubmitButton && (oButton.get("type") == "submit" || 
++                                (oSrcElement && oSrcElement.type == "submit"))) {
++
++                                oYUISubmitButton = oButton;
++                            
++                            }
++                        
++                        }
++                        
++                    }
++                
++                }
++
++                break;
++    
++            }
++    
++        }
++    
++    
++        if (nCharCode == 13 && ((sNodeName == "INPUT" && (sType == "text" || 
++            sType == "password" || sType == "checkbox" || sType == "radio" || 
++            sType == "file")) || sNodeName == "SELECT")) {
++    
++            Dom.getElementsBy(isSubmitButton, "*", this);
++    
++    
++            if (oPrecedingSubmitButton) {
++    
++                /*
++                     Need to set focus to the first enabled submit button
++                     to make sure that IE includes its name and value 
++                     in the form's data set.
++                */
++    
++                oPrecedingSubmitButton.focus();
++            
++            }
++            else if (!oPrecedingSubmitButton && oYUISubmitButton) {
++    
++				/*
++					Need to call "preventDefault" to ensure that the form doesn't end up getting
++					submitted twice.
++				*/
++    
++    			Event.preventDefault(p_oEvent);
++
++
++				if (UA.ie) {
++				
++					oYUISubmitButton.get("element").fireEvent("onclick");
++				
++				}
++				else {
++
++					oEvent = document.createEvent("HTMLEvents");
++					oEvent.initEvent("click", true, true);
++			
++
++					if (UA.gecko < 1.9) {
++					
++						oYUISubmitButton.fireEvent("click", oEvent);
++					
++					}
++					else {
++
++						oYUISubmitButton.get("element").dispatchEvent(oEvent);
++					
++					}
++  
++                }
++
++            }
++            
++        }
++    
++    };
++    
++    
++    /**
++    * @method YAHOO.widget.Button.addHiddenFieldsToForm
++    * @description Searches the specified form and adds hidden fields for  
++    * instances of YAHOO.widget.Button that are of type "radio," "checkbox," 
++    * "menu," and "split."
++    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-40002357">HTMLFormElement</a>} p_oForm Object reference 
++    * for the form to search.
++    */
++    YAHOO.widget.Button.addHiddenFieldsToForm = function (p_oForm) {
++    
++        var proto = YAHOO.widget.Button.prototype,
++			aButtons = Dom.getElementsByClassName(
++							(proto.CLASS_NAME_PREFIX + proto.CSS_CLASS_NAME), 
++                            "*", 
++                            p_oForm),
++    
++            nButtons = aButtons.length,
++            oButton,
++            sId,
++            i;
++    
++        if (nButtons > 0) {
++    
++            YAHOO.log("Form contains " + nButtons + " YUI buttons.", "info", this.toString());
++    
++            for (i = 0; i < nButtons; i++) {
++    
++                sId = aButtons[i].id;
++    
++                if (sId) {
++    
++                    oButton = m_oButtons[sId];
++        
++                    if (oButton) {
++           
++                        oButton.createHiddenFields();
++                        
++                    }
++                
++                }
++            
++            }
++    
++        }
++    
++    };
++    
++
++    /**
++    * @method YAHOO.widget.Button.getButton
++    * @description Returns a button with the specified id.
++    * @param {String} p_sId String specifying the id of the root node of the 
++    * HTML element representing the button to be retrieved.
++    * @return {YAHOO.widget.Button}
++    */
++    YAHOO.widget.Button.getButton = function (p_sId) {
++
++		return m_oButtons[p_sId];
++
++    };
++    
++    
++    // Events
++    
++    
++    /**
++    * @event focus
++    * @description Fires when the menu item receives focus.  Passes back a  
++    * single object representing the original DOM event object passed back by 
++    * the event utility (YAHOO.util.Event) when the event was fired.  See 
++    * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> 
++    * for more information on listening for this event.
++    * @type YAHOO.util.CustomEvent
++    */
++    
++    
++    /**
++    * @event blur
++    * @description Fires when the menu item loses the input focus.  Passes back  
++    * a single object representing the original DOM event object passed back by 
++    * the event utility (YAHOO.util.Event) when the event was fired.  See 
++    * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for  
++    * more information on listening for this event.
++    * @type YAHOO.util.CustomEvent
++    */
++    
++    
++    /**
++    * @event option
++    * @description Fires when the user invokes the button's option.  Passes 
++    * back a single object representing the original DOM event (either 
++    * "mousedown" or "keydown") that caused the "option" event to fire.  See 
++    * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> 
++    * for more information on listening for this event.
++    * @type YAHOO.util.CustomEvent
++    */
++
++})();
++(function () {
++
++    // Shorthard for utilities
++    
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        Button = YAHOO.widget.Button,  
++    
++        // Private collection of radio buttons
++    
++        m_oButtons = {};
++
++
++
++    /**
++    * The ButtonGroup class creates a set of buttons that are mutually 
++    * exclusive; checking one button in the set will uncheck all others in the 
++    * button group.
++    * @param {String} p_oElement String specifying the id attribute of the 
++    * <code>&#60;div&#62;</code> element of the button group.
++    * @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 button group.
++    * @param {Object} p_oElement Object literal specifying a set of 
++    * configuration attributes used to create the button group.
++    * @param {Object} p_oAttributes Optional. Object literal specifying a set 
++    * of configuration attributes used to create the button group.
++    * @namespace YAHOO.widget
++    * @class ButtonGroup
++    * @constructor
++    * @extends YAHOO.util.Element
++    */
++    YAHOO.widget.ButtonGroup = function (p_oElement, p_oAttributes) {
++    
++        var fnSuperClass = YAHOO.widget.ButtonGroup.superclass.constructor,
++            sNodeName,
++            oElement,
++            sId;
++    
++        if (arguments.length == 1 && !Lang.isString(p_oElement) && 
++            !p_oElement.nodeName) {
++    
++            if (!p_oElement.id) {
++    
++                sId = Dom.generateId();
++    
++                p_oElement.id = sId;
++    
++                YAHOO.log("No value specified for the button group's \"id\"" +
++                    " attribute. Setting button group id to \"" + sId + "\".",
++                    "info");
++    
++            }
++    
++            this.logger = new YAHOO.widget.LogWriter("ButtonGroup " + sId);
++    
++            this.logger.log("No source HTML element.  Building the button " +
++                    "group using the set of configuration attributes.");
++    
++            fnSuperClass.call(this, (this._createGroupElement()), p_oElement);
++    
++        }
++        else if (Lang.isString(p_oElement)) {
++    
++            oElement = Dom.get(p_oElement);
++    
++            if (oElement) {
++            
++                if (oElement.nodeName.toUpperCase() == this.NODE_NAME) {
++    
++                    this.logger = 
++                        new YAHOO.widget.LogWriter("ButtonGroup " + p_oElement);
++            
++                    fnSuperClass.call(this, oElement, p_oAttributes);
++    
++                }
++    
++            }
++        
++        }
++        else {
++    
++            sNodeName = p_oElement.nodeName.toUpperCase();
++    
++            if (sNodeName && sNodeName == this.NODE_NAME) {
++        
++                if (!p_oElement.id) {
++        
++                    p_oElement.id = Dom.generateId();
++        
++                    YAHOO.log("No value specified for the button group's" +
++                        " \"id\" attribute. Setting button group id " +
++                        "to \"" + p_oElement.id + "\".", "warn");
++        
++                }
++        
++                this.logger = 
++                    new YAHOO.widget.LogWriter("ButtonGroup " + p_oElement.id);
++        
++                fnSuperClass.call(this, p_oElement, p_oAttributes);
++    
++            }
++    
++        }
++    
++    };
++    
++    
++    YAHOO.extend(YAHOO.widget.ButtonGroup, YAHOO.util.Element, {
++    
++    
++        // Protected properties
++        
++        
++        /** 
++        * @property _buttons
++        * @description Array of buttons in the button group.
++        * @default null
++        * @protected
++        * @type Array
++        */
++        _buttons: null,
++        
++        
++        
++        // Constants
++        
++        
++        /**
++        * @property NODE_NAME
++        * @description The name of the tag to be used for the button 
++        * group's element. 
++        * @default "DIV"
++        * @final
++        * @type String
++        */
++        NODE_NAME: "DIV",
++
++
++        /**
++        * @property CLASS_NAME_PREFIX
++        * @description Prefix used for all class names applied to a ButtonGroup.
++        * @default "yui-"
++        * @final
++        * @type String
++        */
++        CLASS_NAME_PREFIX: "yui-",
++        
++        
++        /**
++        * @property CSS_CLASS_NAME
++        * @description String representing the CSS class(es) to be applied  
++        * to the button group's element.
++        * @default "buttongroup"
++        * @final
++        * @type String
++        */
++        CSS_CLASS_NAME: "buttongroup",
++    
++    
++    
++        // Protected methods
++        
++        
++        /**
++        * @method _createGroupElement
++        * @description Creates the button group's element.
++        * @protected
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-22445964">HTMLDivElement</a>}
++        */
++        _createGroupElement: function () {
++        
++            var oElement = document.createElement(this.NODE_NAME);
++        
++            return oElement;
++        
++        },
++        
++        
++        
++        // Protected attribute setter methods
++        
++        
++        /**
++        * @method _setDisabled
++        * @description Sets the value of the button groups's 
++        * "disabled" attribute.
++        * @protected
++        * @param {Boolean} p_bDisabled Boolean indicating the value for
++        * the button group's "disabled" attribute.
++        */
++        _setDisabled: function (p_bDisabled) {
++        
++            var nButtons = this.getCount(),
++                i;
++        
++            if (nButtons > 0) {
++        
++                i = nButtons - 1;
++                
++                do {
++        
++                    this._buttons[i].set("disabled", p_bDisabled);
++                
++                }
++                while (i--);
++        
++            }
++        
++        },
++        
++        
++        
++        // Protected event handlers
++        
++        
++        /**
++        * @method _onKeyDown
++        * @description "keydown" event handler for the button group.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onKeyDown: function (p_oEvent) {
++        
++            var oTarget = Event.getTarget(p_oEvent),
++                nCharCode = Event.getCharCode(p_oEvent),
++                sId = oTarget.parentNode.parentNode.id,
++                oButton = m_oButtons[sId],
++                nIndex = -1;
++        
++        
++            if (nCharCode == 37 || nCharCode == 38) {
++        
++                nIndex = (oButton.index === 0) ? 
++                            (this._buttons.length - 1) : (oButton.index - 1);
++            
++            }
++            else if (nCharCode == 39 || nCharCode == 40) {
++        
++                nIndex = (oButton.index === (this._buttons.length - 1)) ? 
++                            0 : (oButton.index + 1);
++        
++            }
++        
++        
++            if (nIndex > -1) {
++        
++                this.check(nIndex);
++                this.getButton(nIndex).focus();
++            
++            }        
++        
++        },
++        
++        
++        /**
++        * @method _onAppendTo
++        * @description "appendTo" event handler for the button group.
++        * @protected
++        * @param {Event} p_oEvent Object representing the event that was fired.
++        */
++        _onAppendTo: function (p_oEvent) {
++        
++            var aButtons = this._buttons,
++                nButtons = aButtons.length,
++                i;
++        
++            for (i = 0; i < nButtons; i++) {
++        
++                aButtons[i].appendTo(this.get("element"));
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onButtonCheckedChange
++        * @description "checkedChange" event handler for each button in the 
++        * button group.
++        * @protected
++        * @param {Event} p_oEvent Object representing the event that was fired.
++        * @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}  
++        * p_oButton Object representing the button that fired the event.
++        */
++        _onButtonCheckedChange: function (p_oEvent, p_oButton) {
++        
++            var bChecked = p_oEvent.newValue,
++                oCheckedButton = this.get("checkedButton");
++        
++            if (bChecked && oCheckedButton != p_oButton) {
++        
++                if (oCheckedButton) {
++        
++                    oCheckedButton.set("checked", false, true);
++        
++                }
++        
++                this.set("checkedButton", p_oButton);
++                this.set("value", p_oButton.get("value"));
++        
++            }
++            else if (oCheckedButton && !oCheckedButton.set("checked")) {
++        
++                oCheckedButton.set("checked", true, true);
++        
++            }
++           
++        },
++        
++        
++        
++        // Public methods
++        
++        
++        /**
++        * @method init
++        * @description The ButtonGroup class's initialization method.
++        * @param {String} p_oElement String specifying the id attribute of the 
++        * <code>&#60;div&#62;</code> element of the button group.
++        * @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 button group.
++        * @param {Object} p_oElement Object literal specifying a set of  
++        * configuration attributes used to create the button group.
++        * @param {Object} p_oAttributes Optional. Object literal specifying a
++        * set of configuration attributes used to create the button group.
++        */
++        init: function (p_oElement, p_oAttributes) {
++        
++            this._buttons = [];
++        
++            YAHOO.widget.ButtonGroup.superclass.init.call(this, p_oElement, 
++                    p_oAttributes);
++        
++            this.addClass(this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME);
++
++        
++            var sClass = (YAHOO.widget.Button.prototype.CLASS_NAME_PREFIX + "radio-button"),
++				aButtons = this.getElementsByClassName(sClass);
++
++            this.logger.log("Searching for child nodes with the class name " +
++                sClass + " to add to the button group.");
++        
++        
++            if (aButtons.length > 0) {
++        
++                this.logger.log("Found " + aButtons.length + 
++                    " child nodes with the class name " + sClass + 
++                    "  Attempting to add to button group.");
++        
++                this.addButtons(aButtons);
++        
++            }
++        
++        
++            this.logger.log("Searching for child nodes with the type of " +
++                " \"radio\" to add to the button group.");
++        
++            function isRadioButton(p_oElement) {
++        
++                return (p_oElement.type == "radio");
++        
++            }
++        
++            aButtons = 
++                Dom.getElementsBy(isRadioButton, "input", this.get("element"));
++        
++        
++            if (aButtons.length > 0) {
++        
++                this.logger.log("Found " + aButtons.length + " child nodes" +
++                    " with the type of \"radio.\"  Attempting to add to" +
++                    " button group.");
++        
++                this.addButtons(aButtons);
++        
++            }
++        
++            this.on("keydown", this._onKeyDown);
++            this.on("appendTo", this._onAppendTo);
++        
++
++            var oContainer = this.get("container");
++
++            if (oContainer) {
++        
++                if (Lang.isString(oContainer)) {
++        
++                    Event.onContentReady(oContainer, function () {
++        
++                        this.appendTo(oContainer);            
++                    
++                    }, null, this);
++        
++                }
++                else {
++        
++                    this.appendTo(oContainer);
++        
++                }
++        
++            }
++        
++        
++            this.logger.log("Initialization completed.");
++        
++        },
++        
++        
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to  
++        * create the button group.
++        * @param {Object} p_oAttributes Object literal specifying a set of 
++        * configuration attributes used to create the button group.
++        */
++        initAttributes: function (p_oAttributes) {
++        
++            var oAttributes = p_oAttributes || {};
++        
++            YAHOO.widget.ButtonGroup.superclass.initAttributes.call(
++                this, oAttributes);
++        
++        
++            /**
++            * @attribute name
++            * @description String specifying the name for the button group.  
++            * This name will be applied to each button in the button group.
++            * @default null
++            * @type String
++            */
++            this.setAttributeConfig("name", {
++        
++                value: oAttributes.name,
++                validator: Lang.isString
++        
++            });
++        
++        
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the button group should be 
++            * disabled.  Disabling the button group will disable each button 
++            * in the button group.  Disabled buttons are dimmed and will not 
++            * respond to user input or fire events.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig("disabled", {
++        
++                value: (oAttributes.disabled || false),
++                validator: Lang.isBoolean,
++                method: this._setDisabled
++        
++            });
++        
++        
++            /**
++            * @attribute value
++            * @description Object specifying the value for the button group.
++            * @default null
++            * @type Object
++            */
++            this.setAttributeConfig("value", {
++        
++                value: oAttributes.value
++        
++            });
++        
++        
++            /**
++            * @attribute container
++            * @description HTML element reference or string specifying the id 
++            * attribute of the HTML element that the button group'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 null
++			* @writeonce
++            */
++            this.setAttributeConfig("container", {
++        
++                value: oAttributes.container,
++                writeOnce: true
++        
++            });
++        
++        
++            /**
++            * @attribute checkedButton
++            * @description Reference for the button in the button group that 
++            * is checked.
++            * @type {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}
++            * @default null
++            */
++            this.setAttributeConfig("checkedButton", {
++        
++                value: null
++        
++            });
++        
++        },
++        
++        
++        /**
++        * @method addButton
++        * @description Adds the button to the button group.
++        * @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}  
++        * p_oButton Object reference for the <a href="YAHOO.widget.Button.html">
++        * YAHOO.widget.Button</a> instance to be added to the button group.
++        * @param {String} p_oButton String specifying the id attribute of the 
++        * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code> element 
++        * to be used to create the button to be added to the button group.
++        * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|<a href="
++        * http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#
++        * ID-33759296">HTMLElement</a>} p_oButton Object reference for the 
++        * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code> element 
++        * to be used to create the button to be added to the button group.
++        * @param {Object} p_oButton Object literal specifying a set of 
++        * <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a> 
++        * configuration attributes used to configure the button to be added to 
++        * the button group.
++        * @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} 
++        */
++        addButton: function (p_oButton) {
++        
++            var oButton,
++                oButtonElement,
++                oGroupElement,
++                nIndex,
++                sButtonName,
++                sGroupName;
++        
++        
++            if (p_oButton instanceof Button && 
++                p_oButton.get("type") == "radio") {
++        
++                oButton = p_oButton;
++        
++            }
++            else if (!Lang.isString(p_oButton) && !p_oButton.nodeName) {
++        
++                p_oButton.type = "radio";
++        
++                oButton = new Button(p_oButton);
++
++            }
++            else {
++        
++                oButton = new Button(p_oButton, { type: "radio" });
++        
++            }
++        
++        
++            if (oButton) {
++        
++                nIndex = this._buttons.length;
++                sButtonName = oButton.get("name");
++                sGroupName = this.get("name");
++        
++                oButton.index = nIndex;
++        
++                this._buttons[nIndex] = oButton;
++                m_oButtons[oButton.get("id")] = oButton;
++        
++        
++                if (sButtonName != sGroupName) {
++        
++                    oButton.set("name", sGroupName);
++                
++                }
++        
++        
++                if (this.get("disabled")) {
++        
++                    oButton.set("disabled", true);
++        
++                }
++        
++        
++                if (oButton.get("checked")) {
++        
++                    this.set("checkedButton", oButton);
++        
++                }
++
++                
++                oButtonElement = oButton.get("element");
++                oGroupElement = this.get("element");
++                
++                if (oButtonElement.parentNode != oGroupElement) {
++                
++                    oGroupElement.appendChild(oButtonElement);
++                
++                }
++        
++                
++                oButton.on("checkedChange", 
++                    this._onButtonCheckedChange, oButton, this);
++        
++                this.logger.log("Button " + oButton.get("id") + " added.");
++        
++            }
++
++			return oButton;
++        
++        },
++        
++        
++        /**
++        * @method addButtons
++        * @description Adds the array of buttons to the button group.
++        * @param {Array} p_aButtons Array of <a href="YAHOO.widget.Button.html">
++        * YAHOO.widget.Button</a> instances to be added 
++        * to the button group.
++        * @param {Array} p_aButtons Array of strings specifying the id 
++        * attribute of the <code>&#60;input&#62;</code> or <code>&#60;span&#62;
++        * </code> elements to be used to create the buttons to be added to the 
++        * button group.
++        * @param {Array} p_aButtons Array of object references for the 
++        * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code> elements 
++        * to be used to create the buttons to be added to the button group.
++        * @param {Array} p_aButtons Array of object literals, each containing
++        * a set of <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>  
++        * configuration attributes used to configure each button to be added 
++        * to the button group.
++        * @return {Array}
++        */
++        addButtons: function (p_aButtons) {
++    
++            var nButtons,
++                oButton,
++                aButtons,
++                i;
++        
++            if (Lang.isArray(p_aButtons)) {
++            
++                nButtons = p_aButtons.length;
++                aButtons = [];
++        
++                if (nButtons > 0) {
++        
++                    for (i = 0; i < nButtons; i++) {
++        
++                        oButton = this.addButton(p_aButtons[i]);
++                        
++                        if (oButton) {
++        
++                            aButtons[aButtons.length] = oButton;
++        
++                        }
++                    
++                    }
++                
++                }
++        
++            }
++
++			return aButtons;
++        
++        },
++        
++        
++        /**
++        * @method removeButton
++        * @description Removes the button at the specified index from the 
++        * button group.
++        * @param {Number} p_nIndex Number specifying the index of the button 
++        * to be removed from the button group.
++        */
++        removeButton: function (p_nIndex) {
++        
++            var oButton = this.getButton(p_nIndex),
++                nButtons,
++                i;
++            
++            if (oButton) {
++        
++                this.logger.log("Removing button " + oButton.get("id") + ".");
++        
++                this._buttons.splice(p_nIndex, 1);
++                delete m_oButtons[oButton.get("id")];
++        
++                oButton.removeListener("checkedChange", 
++                    this._onButtonCheckedChange);
++
++                oButton.destroy();
++        
++        
++                nButtons = this._buttons.length;
++                
++                if (nButtons > 0) {
++        
++                    i = this._buttons.length - 1;
++                    
++                    do {
++        
++                        this._buttons[i].index = i;
++        
++                    }
++                    while (i--);
++                
++                }
++        
++                this.logger.log("Button " + oButton.get("id") + " removed.");
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method getButton
++        * @description Returns the button at the specified index.
++        * @param {Number} p_nIndex The index of the button to retrieve from the 
++        * button group.
++        * @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}
++        */
++        getButton: function (p_nIndex) {
++        
++            return this._buttons[p_nIndex];
++        
++        },
++        
++        
++        /**
++        * @method getButtons
++        * @description Returns an array of the buttons in the button group.
++        * @return {Array}
++        */
++        getButtons: function () {
++        
++            return this._buttons;
++        
++        },
++        
++        
++        /**
++        * @method getCount
++        * @description Returns the number of buttons in the button group.
++        * @return {Number}
++        */
++        getCount: function () {
++        
++            return this._buttons.length;
++        
++        },
++        
++        
++        /**
++        * @method focus
++        * @description Sets focus to the button at the specified index.
++        * @param {Number} p_nIndex Number indicating the index of the button 
++        * to focus. 
++        */
++        focus: function (p_nIndex) {
++        
++            var oButton,
++                nButtons,
++                i;
++        
++            if (Lang.isNumber(p_nIndex)) {
++        
++                oButton = this._buttons[p_nIndex];
++                
++                if (oButton) {
++        
++                    oButton.focus();
++        
++                }
++            
++            }
++            else {
++        
++                nButtons = this.getCount();
++        
++                for (i = 0; i < nButtons; i++) {
++        
++                    oButton = this._buttons[i];
++        
++                    if (!oButton.get("disabled")) {
++        
++                        oButton.focus();
++                        break;
++        
++                    }
++        
++                }
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method check
++        * @description Checks the button at the specified index.
++        * @param {Number} p_nIndex Number indicating the index of the button 
++        * to check. 
++        */
++        check: function (p_nIndex) {
++        
++            var oButton = this.getButton(p_nIndex);
++            
++            if (oButton) {
++        
++                oButton.set("checked", true);
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method destroy
++        * @description Removes the button group's element from its parent 
++        * element and removes all event handlers.
++        */
++        destroy: function () {
++        
++            this.logger.log("Destroying...");
++        
++            var nButtons = this._buttons.length,
++                oElement = this.get("element"),
++                oParentNode = oElement.parentNode,
++                i;
++            
++            if (nButtons > 0) {
++        
++                i = this._buttons.length - 1;
++        
++                do {
++        
++                    this._buttons[i].destroy();
++        
++                }
++                while (i--);
++            
++            }
++        
++            this.logger.log("Removing DOM event handlers.");
++        
++            Event.purgeElement(oElement);
++            
++            this.logger.log("Removing from document.");
++        
++            oParentNode.removeChild(oElement);
++        
++        },
++        
++        
++        /**
++        * @method toString
++        * @description Returns a string representing the button group.
++        * @return {String}
++        */
++        toString: function () {
++        
++            return ("ButtonGroup " + this.get("id"));
++        
++        }
++    
++    });
++
++})();
++YAHOO.register("button", YAHOO.widget.Button, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/button/button-min.js b/pylons_app/public/js/yui/button/button-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/button/button-min.js
+@@ -0,0 +1,11 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var G=YAHOO.util.Dom,M=YAHOO.util.Event,I=YAHOO.lang,L=YAHOO.env.ua,B=YAHOO.widget.Overlay,J=YAHOO.widget.Menu,D={},K=null,E=null,C=null;function F(O,N,R,P){var S,Q;if(I.isString(O)&&I.isString(N)){if(L.ie){Q='<input type="'+O+'" name="'+N+'"';if(P){Q+=" checked";}Q+=">";S=document.createElement(Q);}else{S=document.createElement("input");S.name=N;S.type=O;if(P){S.checked=true;}}S.value=R;}return S;}function H(O,V){var N=O.nodeName.toUpperCase(),S=(this.CLASS_NAME_PREFIX+this.CSS_CLASS_NAME),T=this,U,P,Q;function W(X){if(!(X in V)){U=O.getAttributeNode(X);if(U&&("value" in U)){V[X]=U.value;}}}function R(){W("type");if(V.type=="button"){V.type="push";}if(!("disabled" in V)){V.disabled=O.disabled;}W("name");W("value");W("title");}switch(N){case"A":V.type="link";W("href");W("target");break;case"INPUT":R();if(!("checked" in V)){V.checked=O.checked;}break;case"BUTTON":R();P=O.parentNode.parentNode;if(G.hasClass(P,S+"-checked")){V.checked=true;}if(G.hasClass(P,S+"-disabled")){V.disabled=true;}O.removeAttribute("value");O.setAttribute("type","button");break;}O.removeAttribute("id");O.removeAttribute("name");if(!("tabindex" in V)){V.tabindex=O.tabIndex;}if(!("label" in V)){Q=N=="INPUT"?O.value:O.innerHTML;if(Q&&Q.length>0){V.label=Q;}}}function A(P){var O=P.attributes,N=O.srcelement,R=N.nodeName.toUpperCase(),Q=this;if(R==this.NODE_NAME){P.element=N;P.id=N.id;G.getElementsBy(function(S){switch(S.nodeName.toUpperCase()){case"BUTTON":case"A":case"INPUT":H.call(Q,S,O);break;}},"*",N);}else{switch(R){case"BUTTON":case"A":case"INPUT":H.call(this,N,O);break;}}}YAHOO.widget.Button=function(R,O){if(!B&&YAHOO.widget.Overlay){B=YAHOO.widget.Overlay;}if(!J&&YAHOO.widget.Menu){J=YAHOO.widget.Menu;}var Q=YAHOO.widget.Button.superclass.constructor,P,N;if(arguments.length==1&&!I.isString(R)&&!R.nodeName){if(!R.id){R.id=G.generateId();}Q.call(this,(this.createButtonElement(R.type)),R);}else{P={element:null,attributes:(O||{})};if(I.isString(R)){N=G.get(R);if(N){if(!P.attributes.id){P.attributes.id=R;}P.attributes.srcelement=N;A.call(this,P);if(!P.element){P.element=this.createButtonElement(P.attributes.type);}Q.call(this,P.element,P.attributes);}}else{if(R.nodeName){if(!P.attributes.id){if(R.id){P.attributes.id=R.id;}else{P.attributes.id=G.generateId();}}P.attributes.srcelement=R;A.call(this,P);if(!P.element){P.element=this.createButtonElement(P.attributes.type);}Q.call(this,P.element,P.attributes);}}}};YAHOO.extend(YAHOO.widget.Button,YAHOO.util.Element,{_button:null,_menu:null,_hiddenFields:null,_onclickAttributeValue:null,_activationKeyPressed:false,_activationButtonPressed:false,_hasKeyEventHandlers:false,_hasMouseEventHandlers:false,_nOptionRegionX:0,CLASS_NAME_PREFIX:"yui-",NODE_NAME:"SPAN",CHECK_ACTIVATION_KEYS:[32],ACTIVATION_KEYS:[13,32],OPTION_AREA_WIDTH:20,CSS_CLASS_NAME:"button",_setType:function(N){if(N=="split"){this.on("option",this._onOption);}},_setLabel:function(O){this._button.innerHTML=O;var P,N=L.gecko;if(N&&N<1.9&&G.inDocument(this.get("element"))){P=(this.CLASS_NAME_PREFIX+this.CSS_CLASS_NAME);this.removeClass(P);I.later(0,this,this.addClass,P);}},_setTabIndex:function(N){this._button.tabIndex=N;},_setTitle:function(N){if(this.get("type")!="link"){this._button.title=N;}},_setDisabled:function(N){if(this.get("type")!="link"){if(N){if(this._menu){this._menu.hide();}if(this.hasFocus()){this.blur();}this._button.setAttribute("disabled","disabled");this.addStateCSSClasses("disabled");this.removeStateCSSClasses("hover");this.removeStateCSSClasses("active");this.removeStateCSSClasses("focus");}else{this._button.removeAttribute("disabled");this.removeStateCSSClasses("disabled");}}},_setHref:function(N){if(this.get("type")=="link"){this._button.href=N;}},_setTarget:function(N){if(this.get("type")=="link"){this._button.setAttribute("target",N);}},_setChecked:function(N){var O=this.get("type");if(O=="checkbox"||O=="radio"){if(N){this.addStateCSSClasses("checked");}else{this.removeStateCSSClasses("checked");}}},_setMenu:function(U){var P=this.get("lazyloadmenu"),R=this.get("element"),N,W=false,X,O,Q;function V(){X.render(R.parentNode);this.removeListener("appendTo",V);}function T(){X.cfg.queueProperty("container",R.parentNode);this.removeListener("appendTo",T);}function S(){var Y;if(X){G.addClass(X.element,this.get("menuclassname"));G.addClass(X.element,this.CLASS_NAME_PREFIX+this.get("type")+"-button-menu");X.showEvent.subscribe(this._onMenuShow,null,this);X.hideEvent.subscribe(this._onMenuHide,null,this);X.renderEvent.subscribe(this._onMenuRender,null,this);if(J&&X instanceof J){if(P){Y=this.get("container");if(Y){X.cfg.queueProperty("container",Y);}else{this.on("appendTo",T);}}X.cfg.queueProperty("clicktohide",false);X.keyDownEvent.subscribe(this._onMenuKeyDown,this,true);X.subscribe("click",this._onMenuClick,this,true);this.on("selectedMenuItemChange",this._onSelectedMenuItemChange);Q=X.srcElement;if(Q&&Q.nodeName.toUpperCase()=="SELECT"){Q.style.display="none";Q.parentNode.removeChild(Q);}}else{if(B&&X instanceof B){if(!K){K=new YAHOO.widget.OverlayManager();}K.register(X);}}this._menu=X;if(!W&&!P){if(G.inDocument(R)){X.render(R.parentNode);}else{this.on("appendTo",V);}}}}if(B){if(J){N=J.prototype.CSS_CLASS_NAME;}if(U&&J&&(U instanceof J)){X=U;W=true;S.call(this);}else{if(B&&U&&(U instanceof B)){X=U;W=true;X.cfg.queueProperty("visible",false);S.call(this);}else{if(J&&I.isArray(U)){X=new J(G.generateId(),{lazyload:P,itemdata:U});this._menu=X;this.on("appendTo",S);}else{if(I.isString(U)){O=G.get(U);if(O){if(J&&G.hasClass(O,N)||O.nodeName.toUpperCase()=="SELECT"){X=new J(U,{lazyload:P});S.call(this);}else{if(B){X=new B(U,{visible:false});S.call(this);}}}}else{if(U&&U.nodeName){if(J&&G.hasClass(U,N)||U.nodeName.toUpperCase()=="SELECT"){X=new J(U,{lazyload:P});S.call(this);}else{if(B){if(!U.id){G.generateId(U);}X=new B(U,{visible:false});S.call(this);}}}}}}}}},_setOnClick:function(N){if(this._onclickAttributeValue&&(this._onclickAttributeValue!=N)){this.removeListener("click",this._onclickAttributeValue.fn);
++this._onclickAttributeValue=null;}if(!this._onclickAttributeValue&&I.isObject(N)&&I.isFunction(N.fn)){this.on("click",N.fn,N.obj,N.scope);this._onclickAttributeValue=N;}},_isActivationKey:function(N){var S=this.get("type"),O=(S=="checkbox"||S=="radio")?this.CHECK_ACTIVATION_KEYS:this.ACTIVATION_KEYS,Q=O.length,R=false,P;if(Q>0){P=Q-1;do{if(N==O[P]){R=true;break;}}while(P--);}return R;},_isSplitButtonOptionKey:function(P){var O=(M.getCharCode(P)==40);var N=function(Q){M.preventDefault(Q);this.removeListener("keypress",N);};if(O){if(L.opera){this.on("keypress",N);}M.preventDefault(P);}return O;},_addListenersToForm:function(){var T=this.getForm(),S=YAHOO.widget.Button.onFormKeyPress,R,N,Q,P,O;if(T){M.on(T,"reset",this._onFormReset,null,this);M.on(T,"submit",this._onFormSubmit,null,this);N=this.get("srcelement");if(this.get("type")=="submit"||(N&&N.type=="submit")){Q=M.getListeners(T,"keypress");R=false;if(Q){P=Q.length;if(P>0){O=P-1;do{if(Q[O].fn==S){R=true;break;}}while(O--);}}if(!R){M.on(T,"keypress",S);}}}},_showMenu:function(R){if(YAHOO.widget.MenuManager){YAHOO.widget.MenuManager.hideVisible();}if(K){K.hideAll();}var N=this._menu,Q=this.get("menualignment"),P=this.get("focusmenu"),O;if(this._renderedMenu){N.cfg.setProperty("context",[this.get("element"),Q[0],Q[1]]);N.cfg.setProperty("preventcontextoverlap",true);N.cfg.setProperty("constraintoviewport",true);}else{N.cfg.queueProperty("context",[this.get("element"),Q[0],Q[1]]);N.cfg.queueProperty("preventcontextoverlap",true);N.cfg.queueProperty("constraintoviewport",true);}this.focus();if(J&&N&&(N instanceof J)){O=N.focus;N.focus=function(){};if(this._renderedMenu){N.cfg.setProperty("minscrollheight",this.get("menuminscrollheight"));N.cfg.setProperty("maxheight",this.get("menumaxheight"));}else{N.cfg.queueProperty("minscrollheight",this.get("menuminscrollheight"));N.cfg.queueProperty("maxheight",this.get("menumaxheight"));}N.show();N.focus=O;N.align();if(R.type=="mousedown"){M.stopPropagation(R);}if(P){N.focus();}}else{if(B&&N&&(N instanceof B)){if(!this._renderedMenu){N.render(this.get("element").parentNode);}N.show();N.align();}}},_hideMenu:function(){var N=this._menu;if(N){N.hide();}},_onMouseOver:function(O){var Q=this.get("type"),N,P;if(Q==="split"){N=this.get("element");P=(G.getX(N)+(N.offsetWidth-this.OPTION_AREA_WIDTH));this._nOptionRegionX=P;}if(!this._hasMouseEventHandlers){if(Q==="split"){this.on("mousemove",this._onMouseMove);}this.on("mouseout",this._onMouseOut);this._hasMouseEventHandlers=true;}this.addStateCSSClasses("hover");if(Q==="split"&&(M.getPageX(O)>P)){this.addStateCSSClasses("hoveroption");}if(this._activationButtonPressed){this.addStateCSSClasses("active");}if(this._bOptionPressed){this.addStateCSSClasses("activeoption");}if(this._activationButtonPressed||this._bOptionPressed){M.removeListener(document,"mouseup",this._onDocumentMouseUp);}},_onMouseMove:function(N){var O=this._nOptionRegionX;if(O){if(M.getPageX(N)>O){this.addStateCSSClasses("hoveroption");}else{this.removeStateCSSClasses("hoveroption");}}},_onMouseOut:function(N){var O=this.get("type");this.removeStateCSSClasses("hover");if(O!="menu"){this.removeStateCSSClasses("active");}if(this._activationButtonPressed||this._bOptionPressed){M.on(document,"mouseup",this._onDocumentMouseUp,null,this);}if(O==="split"&&(M.getPageX(N)>this._nOptionRegionX)){this.removeStateCSSClasses("hoveroption");}},_onDocumentMouseUp:function(P){this._activationButtonPressed=false;this._bOptionPressed=false;var Q=this.get("type"),N,O;if(Q=="menu"||Q=="split"){N=M.getTarget(P);O=this._menu.element;if(N!=O&&!G.isAncestor(O,N)){this.removeStateCSSClasses((Q=="menu"?"active":"activeoption"));this._hideMenu();}}M.removeListener(document,"mouseup",this._onDocumentMouseUp);},_onMouseDown:function(P){var Q,O=true;function N(){this._hideMenu();this.removeListener("mouseup",N);}if((P.which||P.button)==1){if(!this.hasFocus()){this.focus();}Q=this.get("type");if(Q=="split"){if(M.getPageX(P)>this._nOptionRegionX){this.fireEvent("option",P);O=false;}else{this.addStateCSSClasses("active");this._activationButtonPressed=true;}}else{if(Q=="menu"){if(this.isActive()){this._hideMenu();this._activationButtonPressed=false;}else{this._showMenu(P);this._activationButtonPressed=true;}}else{this.addStateCSSClasses("active");this._activationButtonPressed=true;}}if(Q=="split"||Q=="menu"){this._hideMenuTimer=I.later(250,this,this.on,["mouseup",N]);}}return O;},_onMouseUp:function(P){var Q=this.get("type"),N=this._hideMenuTimer,O=true;if(N){N.cancel();}if(Q=="checkbox"||Q=="radio"){this.set("checked",!(this.get("checked")));}this._activationButtonPressed=false;if(Q!="menu"){this.removeStateCSSClasses("active");}if(Q=="split"&&M.getPageX(P)>this._nOptionRegionX){O=false;}return O;},_onFocus:function(O){var N;this.addStateCSSClasses("focus");if(this._activationKeyPressed){this.addStateCSSClasses("active");}C=this;if(!this._hasKeyEventHandlers){N=this._button;M.on(N,"blur",this._onBlur,null,this);M.on(N,"keydown",this._onKeyDown,null,this);M.on(N,"keyup",this._onKeyUp,null,this);this._hasKeyEventHandlers=true;}this.fireEvent("focus",O);},_onBlur:function(N){this.removeStateCSSClasses("focus");if(this.get("type")!="menu"){this.removeStateCSSClasses("active");}if(this._activationKeyPressed){M.on(document,"keyup",this._onDocumentKeyUp,null,this);}C=null;this.fireEvent("blur",N);},_onDocumentKeyUp:function(N){if(this._isActivationKey(M.getCharCode(N))){this._activationKeyPressed=false;M.removeListener(document,"keyup",this._onDocumentKeyUp);}},_onKeyDown:function(O){var N=this._menu;if(this.get("type")=="split"&&this._isSplitButtonOptionKey(O)){this.fireEvent("option",O);}else{if(this._isActivationKey(M.getCharCode(O))){if(this.get("type")=="menu"){this._showMenu(O);}else{this._activationKeyPressed=true;this.addStateCSSClasses("active");}}}if(N&&N.cfg.getProperty("visible")&&M.getCharCode(O)==27){N.hide();this.focus();}},_onKeyUp:function(N){var O;if(this._isActivationKey(M.getCharCode(N))){O=this.get("type");if(O=="checkbox"||O=="radio"){this.set("checked",!(this.get("checked")));
++}this._activationKeyPressed=false;if(this.get("type")!="menu"){this.removeStateCSSClasses("active");}}},_onClick:function(P){var R=this.get("type"),Q,N,O;switch(R){case"submit":if(P.returnValue!==false){this.submitForm();}break;case"reset":Q=this.getForm();if(Q){Q.reset();}break;case"split":if(this._nOptionRegionX>0&&(M.getPageX(P)>this._nOptionRegionX)){O=false;}else{this._hideMenu();N=this.get("srcelement");if(N&&N.type=="submit"&&P.returnValue!==false){this.submitForm();}}break;}return O;},_onDblClick:function(O){var N=true;if(this.get("type")=="split"&&M.getPageX(O)>this._nOptionRegionX){N=false;}return N;},_onAppendTo:function(N){I.later(0,this,this._addListenersToForm);},_onFormReset:function(O){var P=this.get("type"),N=this._menu;if(P=="checkbox"||P=="radio"){this.resetValue("checked");}if(J&&N&&(N instanceof J)){this.resetValue("selectedMenuItem");}},_onFormSubmit:function(N){this.createHiddenFields();},_onDocumentMouseDown:function(Q){var N=M.getTarget(Q),P=this.get("element"),O=this._menu.element;if(N!=P&&!G.isAncestor(P,N)&&N!=O&&!G.isAncestor(O,N)){this._hideMenu();if(L.ie&&N.focus){N.setActive();}M.removeListener(document,"mousedown",this._onDocumentMouseDown);}},_onOption:function(N){if(this.hasClass(this.CLASS_NAME_PREFIX+"split-button-activeoption")){this._hideMenu();this._bOptionPressed=false;}else{this._showMenu(N);this._bOptionPressed=true;}},_onMenuShow:function(N){M.on(document,"mousedown",this._onDocumentMouseDown,null,this);var O=(this.get("type")=="split")?"activeoption":"active";this.addStateCSSClasses(O);},_onMenuHide:function(N){var O=(this.get("type")=="split")?"activeoption":"active";this.removeStateCSSClasses(O);if(this.get("type")=="split"){this._bOptionPressed=false;}},_onMenuKeyDown:function(P,O){var N=O[0];if(M.getCharCode(N)==27){this.focus();if(this.get("type")=="split"){this._bOptionPressed=false;}}},_onMenuRender:function(P){var S=this.get("element"),O=S.parentNode,N=this._menu,R=N.element,Q=N.srcElement,T;if(O!=R.parentNode){O.appendChild(R);}this._renderedMenu=true;if(Q&&Q.nodeName.toLowerCase()==="select"&&Q.value){T=N.getItem(Q.selectedIndex);this.set("selectedMenuItem",T,true);this._onSelectedMenuItemChange({newValue:T});}},_onMenuClick:function(O,N){var Q=N[1],P;if(Q){this.set("selectedMenuItem",Q);P=this.get("srcelement");if(P&&P.type=="submit"){this.submitForm();}this._hideMenu();}},_onSelectedMenuItemChange:function(O){var P=O.prevValue,Q=O.newValue,N=this.CLASS_NAME_PREFIX;if(P){G.removeClass(P.element,(N+"button-selectedmenuitem"));}if(Q){G.addClass(Q.element,(N+"button-selectedmenuitem"));}},_onLabelClick:function(N){this.focus();var O=this.get("type");if(O=="radio"||O=="checkbox"){this.set("checked",(!this.get("checked")));}},createButtonElement:function(N){var P=this.NODE_NAME,O=document.createElement(P);O.innerHTML="<"+P+' class="first-child">'+(N=="link"?"<a></a>":'<button type="button"></button>')+"</"+P+">";return O;},addStateCSSClasses:function(O){var P=this.get("type"),N=this.CLASS_NAME_PREFIX;if(I.isString(O)){if(O!="activeoption"&&O!="hoveroption"){this.addClass(N+this.CSS_CLASS_NAME+("-"+O));}this.addClass(N+P+("-button-"+O));}},removeStateCSSClasses:function(O){var P=this.get("type"),N=this.CLASS_NAME_PREFIX;if(I.isString(O)){this.removeClass(N+this.CSS_CLASS_NAME+("-"+O));this.removeClass(N+P+("-button-"+O));}},createHiddenFields:function(){this.removeHiddenFields();var V=this.getForm(),Z,O,S,X,Y,T,U,N,R,W,P,Q=false;if(V&&!this.get("disabled")){O=this.get("type");S=(O=="checkbox"||O=="radio");if((S&&this.get("checked"))||(E==this)){Z=F((S?O:"hidden"),this.get("name"),this.get("value"),this.get("checked"));if(Z){if(S){Z.style.display="none";}V.appendChild(Z);}}X=this._menu;if(J&&X&&(X instanceof J)){Y=this.get("selectedMenuItem");P=X.srcElement;Q=(P&&P.nodeName.toUpperCase()=="SELECT");if(Y){U=(Y.value===null||Y.value==="")?Y.cfg.getProperty("text"):Y.value;T=this.get("name");if(Q){W=P.name;}else{if(T){W=(T+"_options");}}if(U&&W){N=F("hidden",W,U);V.appendChild(N);}}else{if(Q){N=V.appendChild(P);}}}if(Z&&N){this._hiddenFields=[Z,N];}else{if(!Z&&N){this._hiddenFields=N;}else{if(Z&&!N){this._hiddenFields=Z;}}}R=this._hiddenFields;}return R;},removeHiddenFields:function(){var Q=this._hiddenFields,O,P;function N(R){if(G.inDocument(R)){R.parentNode.removeChild(R);}}if(Q){if(I.isArray(Q)){O=Q.length;if(O>0){P=O-1;do{N(Q[P]);}while(P--);}}else{N(Q);}this._hiddenFields=null;}},submitForm:function(){var Q=this.getForm(),P=this.get("srcelement"),O=false,N;if(Q){if(this.get("type")=="submit"||(P&&P.type=="submit")){E=this;}if(L.ie){O=Q.fireEvent("onsubmit");}else{N=document.createEvent("HTMLEvents");N.initEvent("submit",true,true);O=Q.dispatchEvent(N);}if((L.ie||L.webkit)&&O){Q.submit();}}return O;},init:function(P,d){var V=d.type=="link"?"a":"button",a=d.srcelement,S=P.getElementsByTagName(V)[0],U;if(!S){U=P.getElementsByTagName("input")[0];if(U){S=document.createElement("button");S.setAttribute("type","button");U.parentNode.replaceChild(S,U);}}this._button=S;YAHOO.widget.Button.superclass.init.call(this,P,d);var T=this.get("id"),Z=T+"-button";S.id=Z;var X,Q;var e=function(f){return(f.htmlFor===T);};var c=function(){Q.setAttribute((L.ie?"htmlFor":"for"),Z);};if(a&&this.get("type")!="link"){X=G.getElementsBy(e,"label");if(I.isArray(X)&&X.length>0){Q=X[0];}}D[T]=this;var b=this.CLASS_NAME_PREFIX;this.addClass(b+this.CSS_CLASS_NAME);this.addClass(b+this.get("type")+"-button");M.on(this._button,"focus",this._onFocus,null,this);this.on("mouseover",this._onMouseOver);this.on("mousedown",this._onMouseDown);this.on("mouseup",this._onMouseUp);this.on("click",this._onClick);var R=this.get("onclick");this.set("onclick",null);this.set("onclick",R);this.on("dblclick",this._onDblClick);var O;if(Q){if(this.get("replaceLabel")){this.set("label",Q.innerHTML);O=Q.parentNode;O.removeChild(Q);}else{this.on("appendTo",c);M.on(Q,"click",this._onLabelClick,null,this);this._label=Q;}}this.on("appendTo",this._onAppendTo);var N=this.get("container"),Y=this.get("element"),W=G.inDocument(Y);
++if(N){if(a&&a!=Y){O=a.parentNode;if(O){O.removeChild(a);}}if(I.isString(N)){M.onContentReady(N,this.appendTo,N,this);}else{this.on("init",function(){I.later(0,this,this.appendTo,N);});}}else{if(!W&&a&&a!=Y){O=a.parentNode;if(O){this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:O});O.replaceChild(Y,a);this.fireEvent("appendTo",{type:"appendTo",target:O});}}else{if(this.get("type")!="link"&&W&&a&&a==Y){this._addListenersToForm();}}}this.fireEvent("init",{type:"init",target:this});},initAttributes:function(O){var N=O||{};YAHOO.widget.Button.superclass.initAttributes.call(this,N);this.setAttributeConfig("type",{value:(N.type||"push"),validator:I.isString,writeOnce:true,method:this._setType});this.setAttributeConfig("label",{value:N.label,validator:I.isString,method:this._setLabel});this.setAttributeConfig("value",{value:N.value});this.setAttributeConfig("name",{value:N.name,validator:I.isString});this.setAttributeConfig("tabindex",{value:N.tabindex,validator:I.isNumber,method:this._setTabIndex});this.configureAttribute("title",{value:N.title,validator:I.isString,method:this._setTitle});this.setAttributeConfig("disabled",{value:(N.disabled||false),validator:I.isBoolean,method:this._setDisabled});this.setAttributeConfig("href",{value:N.href,validator:I.isString,method:this._setHref});this.setAttributeConfig("target",{value:N.target,validator:I.isString,method:this._setTarget});this.setAttributeConfig("checked",{value:(N.checked||false),validator:I.isBoolean,method:this._setChecked});this.setAttributeConfig("container",{value:N.container,writeOnce:true});this.setAttributeConfig("srcelement",{value:N.srcelement,writeOnce:true});this.setAttributeConfig("menu",{value:null,method:this._setMenu,writeOnce:true});this.setAttributeConfig("lazyloadmenu",{value:(N.lazyloadmenu===false?false:true),validator:I.isBoolean,writeOnce:true});this.setAttributeConfig("menuclassname",{value:(N.menuclassname||(this.CLASS_NAME_PREFIX+"button-menu")),validator:I.isString,method:this._setMenuClassName,writeOnce:true});this.setAttributeConfig("menuminscrollheight",{value:(N.menuminscrollheight||90),validator:I.isNumber});this.setAttributeConfig("menumaxheight",{value:(N.menumaxheight||0),validator:I.isNumber});this.setAttributeConfig("menualignment",{value:(N.menualignment||["tl","bl"]),validator:I.isArray});this.setAttributeConfig("selectedMenuItem",{value:null});this.setAttributeConfig("onclick",{value:N.onclick,method:this._setOnClick});this.setAttributeConfig("focusmenu",{value:(N.focusmenu===false?false:true),validator:I.isBoolean});this.setAttributeConfig("replaceLabel",{value:false,validator:I.isBoolean,writeOnce:true});},focus:function(){if(!this.get("disabled")){this._button.focus();}},blur:function(){if(!this.get("disabled")){this._button.blur();}},hasFocus:function(){return(C==this);},isActive:function(){return this.hasClass(this.CLASS_NAME_PREFIX+this.CSS_CLASS_NAME+"-active");},getMenu:function(){return this._menu;},getForm:function(){var N=this._button,O;if(N){O=N.form;}return O;},getHiddenFields:function(){return this._hiddenFields;},destroy:function(){var P=this.get("element"),N=this._menu,T=this._label,O,S;if(N){if(K&&K.find(N)){K.remove(N);}N.destroy();}M.purgeElement(P);M.purgeElement(this._button);M.removeListener(document,"mouseup",this._onDocumentMouseUp);M.removeListener(document,"keyup",this._onDocumentKeyUp);M.removeListener(document,"mousedown",this._onDocumentMouseDown);if(T){M.removeListener(T,"click",this._onLabelClick);O=T.parentNode;O.removeChild(T);}var Q=this.getForm();if(Q){M.removeListener(Q,"reset",this._onFormReset);M.removeListener(Q,"submit",this._onFormSubmit);}this.unsubscribeAll();O=P.parentNode;if(O){O.removeChild(P);}delete D[this.get("id")];var R=(this.CLASS_NAME_PREFIX+this.CSS_CLASS_NAME);S=G.getElementsByClassName(R,this.NODE_NAME,Q);if(I.isArray(S)&&S.length===0){M.removeListener(Q,"keypress",YAHOO.widget.Button.onFormKeyPress);}},fireEvent:function(O,N){var P=arguments[0];if(this.DOM_EVENTS[P]&&this.get("disabled")){return false;}return YAHOO.widget.Button.superclass.fireEvent.apply(this,arguments);},toString:function(){return("Button "+this.get("id"));}});YAHOO.widget.Button.onFormKeyPress=function(R){var P=M.getTarget(R),S=M.getCharCode(R),Q=P.nodeName&&P.nodeName.toUpperCase(),N=P.type,T=false,V,X,O,W;function U(a){var Z,Y;switch(a.nodeName.toUpperCase()){case"INPUT":case"BUTTON":if(a.type=="submit"&&!a.disabled){if(!T&&!O){O=a;}}break;default:Z=a.id;if(Z){V=D[Z];if(V){T=true;if(!V.get("disabled")){Y=V.get("srcelement");if(!X&&(V.get("type")=="submit"||(Y&&Y.type=="submit"))){X=V;}}}}break;}}if(S==13&&((Q=="INPUT"&&(N=="text"||N=="password"||N=="checkbox"||N=="radio"||N=="file"))||Q=="SELECT")){G.getElementsBy(U,"*",this);if(O){O.focus();}else{if(!O&&X){M.preventDefault(R);if(L.ie){X.get("element").fireEvent("onclick");}else{W=document.createEvent("HTMLEvents");W.initEvent("click",true,true);if(L.gecko<1.9){X.fireEvent("click",W);}else{X.get("element").dispatchEvent(W);}}}}}};YAHOO.widget.Button.addHiddenFieldsToForm=function(N){var R=YAHOO.widget.Button.prototype,T=G.getElementsByClassName((R.CLASS_NAME_PREFIX+R.CSS_CLASS_NAME),"*",N),Q=T.length,S,O,P;if(Q>0){for(P=0;P<Q;P++){O=T[P].id;if(O){S=D[O];if(S){S.createHiddenFields();}}}}};YAHOO.widget.Button.getButton=function(N){return D[N];};})();(function(){var C=YAHOO.util.Dom,B=YAHOO.util.Event,D=YAHOO.lang,A=YAHOO.widget.Button,E={};YAHOO.widget.ButtonGroup=function(J,H){var I=YAHOO.widget.ButtonGroup.superclass.constructor,K,G,F;if(arguments.length==1&&!D.isString(J)&&!J.nodeName){if(!J.id){F=C.generateId();J.id=F;}I.call(this,(this._createGroupElement()),J);}else{if(D.isString(J)){G=C.get(J);if(G){if(G.nodeName.toUpperCase()==this.NODE_NAME){I.call(this,G,H);}}}else{K=J.nodeName.toUpperCase();if(K&&K==this.NODE_NAME){if(!J.id){J.id=C.generateId();}I.call(this,J,H);}}}};YAHOO.extend(YAHOO.widget.ButtonGroup,YAHOO.util.Element,{_buttons:null,NODE_NAME:"DIV",CLASS_NAME_PREFIX:"yui-",CSS_CLASS_NAME:"buttongroup",_createGroupElement:function(){var F=document.createElement(this.NODE_NAME);
++return F;},_setDisabled:function(G){var H=this.getCount(),F;if(H>0){F=H-1;do{this._buttons[F].set("disabled",G);}while(F--);}},_onKeyDown:function(K){var G=B.getTarget(K),I=B.getCharCode(K),H=G.parentNode.parentNode.id,J=E[H],F=-1;if(I==37||I==38){F=(J.index===0)?(this._buttons.length-1):(J.index-1);}else{if(I==39||I==40){F=(J.index===(this._buttons.length-1))?0:(J.index+1);}}if(F>-1){this.check(F);this.getButton(F).focus();}},_onAppendTo:function(H){var I=this._buttons,G=I.length,F;for(F=0;F<G;F++){I[F].appendTo(this.get("element"));}},_onButtonCheckedChange:function(G,F){var I=G.newValue,H=this.get("checkedButton");if(I&&H!=F){if(H){H.set("checked",false,true);}this.set("checkedButton",F);this.set("value",F.get("value"));}else{if(H&&!H.set("checked")){H.set("checked",true,true);}}},init:function(I,H){this._buttons=[];YAHOO.widget.ButtonGroup.superclass.init.call(this,I,H);this.addClass(this.CLASS_NAME_PREFIX+this.CSS_CLASS_NAME);var K=(YAHOO.widget.Button.prototype.CLASS_NAME_PREFIX+"radio-button"),J=this.getElementsByClassName(K);if(J.length>0){this.addButtons(J);}function F(L){return(L.type=="radio");}J=C.getElementsBy(F,"input",this.get("element"));if(J.length>0){this.addButtons(J);}this.on("keydown",this._onKeyDown);this.on("appendTo",this._onAppendTo);var G=this.get("container");if(G){if(D.isString(G)){B.onContentReady(G,function(){this.appendTo(G);},null,this);}else{this.appendTo(G);}}},initAttributes:function(G){var F=G||{};YAHOO.widget.ButtonGroup.superclass.initAttributes.call(this,F);this.setAttributeConfig("name",{value:F.name,validator:D.isString});this.setAttributeConfig("disabled",{value:(F.disabled||false),validator:D.isBoolean,method:this._setDisabled});this.setAttributeConfig("value",{value:F.value});this.setAttributeConfig("container",{value:F.container,writeOnce:true});this.setAttributeConfig("checkedButton",{value:null});},addButton:function(J){var L,K,G,F,H,I;if(J instanceof A&&J.get("type")=="radio"){L=J;}else{if(!D.isString(J)&&!J.nodeName){J.type="radio";L=new A(J);}else{L=new A(J,{type:"radio"});}}if(L){F=this._buttons.length;H=L.get("name");I=this.get("name");L.index=F;this._buttons[F]=L;E[L.get("id")]=L;if(H!=I){L.set("name",I);}if(this.get("disabled")){L.set("disabled",true);}if(L.get("checked")){this.set("checkedButton",L);}K=L.get("element");G=this.get("element");if(K.parentNode!=G){G.appendChild(K);}L.on("checkedChange",this._onButtonCheckedChange,L,this);}return L;},addButtons:function(G){var H,I,J,F;if(D.isArray(G)){H=G.length;J=[];if(H>0){for(F=0;F<H;F++){I=this.addButton(G[F]);if(I){J[J.length]=I;}}}}return J;},removeButton:function(H){var I=this.getButton(H),G,F;if(I){this._buttons.splice(H,1);delete E[I.get("id")];I.removeListener("checkedChange",this._onButtonCheckedChange);I.destroy();G=this._buttons.length;if(G>0){F=this._buttons.length-1;do{this._buttons[F].index=F;}while(F--);}}},getButton:function(F){return this._buttons[F];},getButtons:function(){return this._buttons;},getCount:function(){return this._buttons.length;},focus:function(H){var I,G,F;if(D.isNumber(H)){I=this._buttons[H];if(I){I.focus();}}else{G=this.getCount();for(F=0;F<G;F++){I=this._buttons[F];if(!I.get("disabled")){I.focus();break;}}}},check:function(F){var G=this.getButton(F);if(G){G.set("checked",true);}},destroy:function(){var I=this._buttons.length,H=this.get("element"),F=H.parentNode,G;if(I>0){G=this._buttons.length-1;do{this._buttons[G].destroy();}while(G--);}B.purgeElement(H);F.removeChild(H);},toString:function(){return("ButtonGroup "+this.get("id"));}});})();YAHOO.register("button",YAHOO.widget.Button,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/button/button.js b/pylons_app/public/js/yui/button/button.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/button/button.js
+@@ -0,0 +1,4633 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++* @module button
++* @description <p>The Button Control enables the creation of rich, graphical 
++* buttons that function like traditional HTML form buttons.  <em>Unlike</em> 
++* traditional HTML form buttons, buttons created with the Button Control can have 
++* a label that is different from its value.  With the inclusion of the optional 
++* <a href="module_menu.html">Menu Control</a>, the Button Control can also be
++* used to create menu buttons and split buttons, controls that are not 
++* available natively in HTML.  The Button Control can also be thought of as a 
++* way to create more visually engaging implementations of the browser's 
++* default radio-button and check-box controls.</p>
++* <p>The Button Control supports the following types:</p>
++* <dl>
++* <dt>push</dt>
++* <dd>Basic push button that can execute a user-specified command when 
++* pressed.</dd>
++* <dt>link</dt>
++* <dd>Navigates to a specified url when pressed.</dd>
++* <dt>submit</dt>
++* <dd>Submits the parent form when pressed.</dd>
++* <dt>reset</dt>
++* <dd>Resets the parent form when pressed.</dd>
++* <dt>checkbox</dt>
++* <dd>Maintains a "checked" state that can be toggled on and off.</dd>
++* <dt>radio</dt>
++* <dd>Maintains a "checked" state that can be toggled on and off.  Use with 
++* the ButtonGroup class to create a set of controls that are mutually 
++* exclusive; checking one button in the set will uncheck all others in 
++* the group.</dd>
++* <dt>menu</dt>
++* <dd>When pressed will show/hide a menu.</dd>
++* <dt>split</dt>
++* <dd>Can execute a user-specified command or display a menu when pressed.</dd>
++* </dl>
++* @title Button
++* @namespace YAHOO.widget
++* @requires yahoo, dom, element, event
++* @optional container, menu
++*/
++
++
++(function () {
++
++
++    /**
++    * The Button class creates a rich, graphical button.
++    * @param {String} p_oElement String specifying the id attribute of the 
++    * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>,
++    * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to 
++    * be used to create the button.
++    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://www.w3.org
++    * /TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-34812697">
++    * HTMLButtonElement</a>|<a href="
++    * http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#
++    * ID-33759296">HTMLElement</a>} p_oElement Object reference for the 
++    * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>, 
++    * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to be 
++    * used to create the button.
++    * @param {Object} p_oElement Object literal specifying a set of   
++    * configuration attributes used to create the button.
++    * @param {Object} p_oAttributes Optional. Object literal specifying a set  
++    * of configuration attributes used to create the button.
++    * @namespace YAHOO.widget
++    * @class Button
++    * @constructor
++    * @extends YAHOO.util.Element
++    */
++
++
++
++    // Shorthard for utilities
++
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        UA = YAHOO.env.ua,
++        Overlay = YAHOO.widget.Overlay,
++        Menu = YAHOO.widget.Menu,
++    
++    
++        // Private member variables
++    
++        m_oButtons = {},    // Collection of all Button instances
++        m_oOverlayManager = null,   // YAHOO.widget.OverlayManager instance
++        m_oSubmitTrigger = null,    // The button that submitted the form 
++        m_oFocusedButton = null;    // The button that has focus
++
++
++
++    // Private methods
++
++    
++    
++    /**
++    * @method createInputElement
++    * @description Creates an <code>&#60;input&#62;</code> element of the 
++    * specified type.
++    * @private
++    * @param {String} p_sType String specifying the type of 
++    * <code>&#60;input&#62;</code> element to create.
++    * @param {String} p_sName String specifying the name of 
++    * <code>&#60;input&#62;</code> element to create.
++    * @param {String} p_sValue String specifying the value of 
++    * <code>&#60;input&#62;</code> element to create.
++    * @param {String} p_bChecked Boolean specifying if the  
++    * <code>&#60;input&#62;</code> element is to be checked.
++    * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-6043025">HTMLInputElement</a>}
++    */
++    function createInputElement(p_sType, p_sName, p_sValue, p_bChecked) {
++    
++        var oInput,
++            sInput;
++    
++        if (Lang.isString(p_sType) && Lang.isString(p_sName)) {
++        
++            if (UA.ie) {
++        
++                /*
++                    For IE it is necessary to create the element with the 
++                    "type," "name," "value," and "checked" properties set all 
++                    at once.
++                */
++            
++                sInput = "<input type=\"" + p_sType + "\" name=\"" + 
++                    p_sName + "\"";
++        
++                if (p_bChecked) {
++        
++                    sInput += " checked";
++                
++                }
++                
++                sInput += ">";
++        
++                oInput = document.createElement(sInput);
++        
++            }
++            else {
++            
++                oInput = document.createElement("input");
++                oInput.name = p_sName;
++                oInput.type = p_sType;
++        
++                if (p_bChecked) {
++        
++                    oInput.checked = true;
++                
++                }
++        
++            }
++        
++            oInput.value = p_sValue;
++        
++        }
++
++		return oInput;
++    
++    }
++    
++    
++    /**
++    * @method setAttributesFromSrcElement
++    * @description Gets the values for all the attributes of the source element 
++    * (either <code>&#60;input&#62;</code> or <code>&#60;a&#62;</code>) that 
++    * map to Button configuration attributes and sets them into a collection 
++    * that is passed to the Button constructor.
++    * @private
++    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://www.w3.org/
++    * TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-
++    * 48250443">HTMLAnchorElement</a>} p_oElement Object reference to the HTML 
++    * element (either <code>&#60;input&#62;</code> or <code>&#60;span&#62;
++    * </code>) used to create the button.
++    * @param {Object} p_oAttributes Object reference for the collection of 
++    * configuration attributes used to create the button.
++    */
++    function setAttributesFromSrcElement(p_oElement, p_oAttributes) {
++    
++        var sSrcElementNodeName = p_oElement.nodeName.toUpperCase(),
++			sClass = (this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME),
++            me = this,
++            oAttribute,
++            oRootNode,
++            sText;
++            
++    
++        /**
++        * @method setAttributeFromDOMAttribute
++        * @description Gets the value of the specified DOM attribute and sets it 
++        * into the collection of configuration attributes used to configure 
++        * the button.
++        * @private
++        * @param {String} p_sAttribute String representing the name of the 
++        * attribute to retrieve from the DOM element.
++        */
++        function setAttributeFromDOMAttribute(p_sAttribute) {
++    
++            if (!(p_sAttribute in p_oAttributes)) {
++    
++                /*
++                    Need to use "getAttributeNode" instead of "getAttribute" 
++                    because using "getAttribute," IE will return the innerText 
++                    of a <code>&#60;button&#62;</code> for the value attribute  
++                    rather than the value of the "value" attribute.
++                */
++        
++                oAttribute = p_oElement.getAttributeNode(p_sAttribute);
++        
++    
++                if (oAttribute && ("value" in oAttribute)) {
++    
++    
++                    p_oAttributes[p_sAttribute] = oAttribute.value;
++    
++                }
++    
++            }
++        
++        }
++    
++    
++        /**
++        * @method setFormElementProperties
++        * @description Gets the value of the attributes from the form element  
++        * and sets them into the collection of configuration attributes used to 
++        * configure the button.
++        * @private
++        */
++        function setFormElementProperties() {
++    
++            setAttributeFromDOMAttribute("type");
++    
++            if (p_oAttributes.type == "button") {
++            
++                p_oAttributes.type = "push";
++            
++            }
++    
++            if (!("disabled" in p_oAttributes)) {
++    
++                p_oAttributes.disabled = p_oElement.disabled;
++    
++            }
++    
++            setAttributeFromDOMAttribute("name");
++            setAttributeFromDOMAttribute("value");
++            setAttributeFromDOMAttribute("title");
++    
++        }
++
++    
++        switch (sSrcElementNodeName) {
++        
++        case "A":
++            
++            p_oAttributes.type = "link";
++            
++            setAttributeFromDOMAttribute("href");
++            setAttributeFromDOMAttribute("target");
++        
++            break;
++    
++        case "INPUT":
++
++            setFormElementProperties();
++
++            if (!("checked" in p_oAttributes)) {
++    
++                p_oAttributes.checked = p_oElement.checked;
++    
++            }
++
++            break;
++
++        case "BUTTON":
++
++            setFormElementProperties();
++
++            oRootNode = p_oElement.parentNode.parentNode;
++
++            if (Dom.hasClass(oRootNode, sClass + "-checked")) {
++            
++                p_oAttributes.checked = true;
++            
++            }
++
++            if (Dom.hasClass(oRootNode, sClass + "-disabled")) {
++
++                p_oAttributes.disabled = true;
++            
++            }
++
++            p_oElement.removeAttribute("value");
++
++            p_oElement.setAttribute("type", "button");
++
++            break;
++        
++        }
++
++        p_oElement.removeAttribute("id");
++        p_oElement.removeAttribute("name");
++        
++        if (!("tabindex" in p_oAttributes)) {
++
++            p_oAttributes.tabindex = p_oElement.tabIndex;
++
++        }
++    
++        if (!("label" in p_oAttributes)) {
++    
++            // Set the "label" property
++        
++            sText = sSrcElementNodeName == "INPUT" ? 
++                            p_oElement.value : p_oElement.innerHTML;
++        
++    
++            if (sText && sText.length > 0) {
++                
++                p_oAttributes.label = sText;
++                
++            } 
++    
++        }
++    
++    }
++    
++    
++    /**
++    * @method initConfig
++    * @description Initializes the set of configuration attributes that are 
++    * used to instantiate the button.
++    * @private
++    * @param {Object} Object representing the button's set of 
++    * configuration attributes.
++    */
++    function initConfig(p_oConfig) {
++    
++        var oAttributes = p_oConfig.attributes,
++            oSrcElement = oAttributes.srcelement,
++            sSrcElementNodeName = oSrcElement.nodeName.toUpperCase(),
++            me = this;
++    
++    
++        if (sSrcElementNodeName == this.NODE_NAME) {
++    
++            p_oConfig.element = oSrcElement;
++            p_oConfig.id = oSrcElement.id;
++
++            Dom.getElementsBy(function (p_oElement) {
++            
++                switch (p_oElement.nodeName.toUpperCase()) {
++                
++                case "BUTTON":
++                case "A":
++                case "INPUT":
++
++                    setAttributesFromSrcElement.call(me, p_oElement, 
++                        oAttributes);
++
++                    break;                        
++                
++                }
++            
++            }, "*", oSrcElement);
++        
++        }
++        else {
++    
++            switch (sSrcElementNodeName) {
++
++            case "BUTTON":
++            case "A":
++            case "INPUT":
++
++                setAttributesFromSrcElement.call(this, oSrcElement, 
++                    oAttributes);
++
++                break;
++
++            }
++        
++        }
++    
++    }
++
++
++
++    //  Constructor
++
++    YAHOO.widget.Button = function (p_oElement, p_oAttributes) {
++    
++		if (!Overlay && YAHOO.widget.Overlay) {
++		
++			Overlay = YAHOO.widget.Overlay;
++		
++		}
++
++
++		if (!Menu && YAHOO.widget.Menu) {
++		
++			Menu = YAHOO.widget.Menu;
++		
++		}
++
++
++        var fnSuperClass = YAHOO.widget.Button.superclass.constructor,
++            oConfig,
++            oElement;
++    
++
++        if (arguments.length == 1 && !Lang.isString(p_oElement) && !p_oElement.nodeName) {
++    
++            if (!p_oElement.id) {
++    
++                p_oElement.id = Dom.generateId();
++    
++    
++            }
++    
++    
++            fnSuperClass.call(this, (this.createButtonElement(p_oElement.type)), p_oElement);
++    
++        }
++        else {
++    
++            oConfig = { element: null, attributes: (p_oAttributes || {}) };
++    
++    
++            if (Lang.isString(p_oElement)) {
++    
++                oElement = Dom.get(p_oElement);
++    
++                if (oElement) {
++
++                    if (!oConfig.attributes.id) {
++                    
++                        oConfig.attributes.id = p_oElement;
++                    
++                    }
++    
++                
++                
++                    oConfig.attributes.srcelement = oElement;
++                
++                    initConfig.call(this, oConfig);
++                
++                
++                    if (!oConfig.element) {
++                
++                
++                        oConfig.element = this.createButtonElement(oConfig.attributes.type);
++                
++                    }
++                
++                    fnSuperClass.call(this, oConfig.element, oConfig.attributes);
++    
++                }
++    
++            }
++            else if (p_oElement.nodeName) {
++    
++                if (!oConfig.attributes.id) {
++    
++                    if (p_oElement.id) {
++        
++                        oConfig.attributes.id = p_oElement.id;
++                    
++                    }
++                    else {
++        
++                        oConfig.attributes.id = Dom.generateId();
++        
++        
++                    }
++    
++                }
++    
++    
++    
++                oConfig.attributes.srcelement = p_oElement;
++        
++                initConfig.call(this, oConfig);
++        
++        
++                if (!oConfig.element) {
++    
++            
++                    oConfig.element = this.createButtonElement(oConfig.attributes.type);
++            
++                }
++            
++                fnSuperClass.call(this, oConfig.element, oConfig.attributes);
++            
++            }
++    
++        }
++    
++    };
++
++
++
++    YAHOO.extend(YAHOO.widget.Button, YAHOO.util.Element, {
++    
++    
++        // Protected properties
++        
++        
++        /** 
++        * @property _button
++        * @description Object reference to the button's internal 
++        * <code>&#60;a&#62;</code> or <code>&#60;button&#62;</code> element.
++        * @default null
++        * @protected
++        * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-48250443">HTMLAnchorElement</a>|<a href="
++        * http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html
++        * #ID-34812697">HTMLButtonElement</a>
++        */
++        _button: null,
++        
++        
++        /** 
++        * @property _menu
++        * @description Object reference to the button's menu.
++        * @default null
++        * @protected
++        * @type {<a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>|
++        * <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>}
++        */
++        _menu: null,
++        
++        
++        /** 
++        * @property _hiddenFields
++        * @description Object reference to the <code>&#60;input&#62;</code>  
++        * element, or array of HTML form elements used to represent the button
++        *  when its parent form is submitted.
++        * @default null
++        * @protected
++        * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|Array
++        */
++        _hiddenFields: null,
++        
++        
++        /** 
++        * @property _onclickAttributeValue
++        * @description Object reference to the button's current value for the 
++        * "onclick" configuration attribute.
++        * @default null
++        * @protected
++        * @type Object
++        */
++        _onclickAttributeValue: null,
++        
++        
++        /** 
++        * @property _activationKeyPressed
++        * @description Boolean indicating if the key(s) that toggle the button's 
++        * "active" state have been pressed.
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _activationKeyPressed: false,
++        
++        
++        /** 
++        * @property _activationButtonPressed
++        * @description Boolean indicating if the mouse button that toggles 
++        * the button's "active" state has been pressed.
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _activationButtonPressed: false,
++        
++        
++        /** 
++        * @property _hasKeyEventHandlers
++        * @description Boolean indicating if the button's "blur", "keydown" and 
++        * "keyup" event handlers are assigned
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _hasKeyEventHandlers: false,
++        
++        
++        /** 
++        * @property _hasMouseEventHandlers
++        * @description Boolean indicating if the button's "mouseout," 
++        * "mousedown," and "mouseup" event handlers are assigned
++        * @default false
++        * @protected
++        * @type Boolean
++        */
++        _hasMouseEventHandlers: false,
++
++
++        /** 
++        * @property _nOptionRegionX
++        * @description Number representing the X coordinate of the leftmost edge of the Button's 
++        * option region.  Applies only to Buttons of type "split".
++        * @default 0
++        * @protected
++        * @type Number
++        */        
++        _nOptionRegionX: 0,
++        
++
++
++        // Constants
++
++        /**
++        * @property CLASS_NAME_PREFIX
++        * @description Prefix used for all class names applied to a Button.
++        * @default "yui-"
++        * @final
++        * @type String
++        */
++        CLASS_NAME_PREFIX: "yui-",
++        
++        
++        /**
++        * @property NODE_NAME
++        * @description The name of the node to be used for the button's 
++        * root element.
++        * @default "SPAN"
++        * @final
++        * @type String
++        */
++        NODE_NAME: "SPAN",
++        
++        
++        /**
++        * @property CHECK_ACTIVATION_KEYS
++        * @description Array of numbers representing keys that (when pressed) 
++        * toggle the button's "checked" attribute.
++        * @default [32]
++        * @final
++        * @type Array
++        */
++        CHECK_ACTIVATION_KEYS: [32],
++        
++        
++        /**
++        * @property ACTIVATION_KEYS
++        * @description Array of numbers representing keys that (when presed) 
++        * toggle the button's "active" state.
++        * @default [13, 32]
++        * @final
++        * @type Array
++        */
++        ACTIVATION_KEYS: [13, 32],
++        
++        
++        /**
++        * @property OPTION_AREA_WIDTH
++        * @description Width (in pixels) of the area of a split button that  
++        * when pressed will display a menu.
++        * @default 20
++        * @final
++        * @type Number
++        */
++        OPTION_AREA_WIDTH: 20,
++        
++        
++        /**
++        * @property CSS_CLASS_NAME
++        * @description String representing the CSS class(es) to be applied to  
++        * the button's root element.
++        * @default "button"
++        * @final
++        * @type String
++        */
++        CSS_CLASS_NAME: "button",
++        
++        
++        
++        // Protected attribute setter methods
++        
++        
++        /**
++        * @method _setType
++        * @description Sets the value of the button's "type" attribute.
++        * @protected
++        * @param {String} p_sType String indicating the value for the button's 
++        * "type" attribute.
++        */
++        _setType: function (p_sType) {
++        
++            if (p_sType == "split") {
++        
++                this.on("option", this._onOption);
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setLabel
++        * @description Sets the value of the button's "label" attribute.
++        * @protected
++        * @param {String} p_sLabel String indicating the value for the button's 
++        * "label" attribute.
++        */
++        _setLabel: function (p_sLabel) {
++
++            this._button.innerHTML = p_sLabel;
++
++            
++            /*
++                Remove and add the default class name from the root element
++                for Gecko to ensure that the button shrinkwraps to the label.
++                Without this the button will not be rendered at the correct 
++                width when the label changes.  The most likely cause for this 
++                bug is button's use of the Gecko-specific CSS display type of 
++                "-moz-inline-box" to simulate "inline-block" supported by IE, 
++                Safari and Opera.
++            */
++            
++            var sClass,
++                nGeckoVersion = UA.gecko;
++				
++            
++            if (nGeckoVersion && nGeckoVersion < 1.9 && Dom.inDocument(this.get("element"))) {
++            
++                sClass = (this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME);
++
++                this.removeClass(sClass);
++                
++                Lang.later(0, this, this.addClass, sClass);
++
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setTabIndex
++        * @description Sets the value of the button's "tabindex" attribute.
++        * @protected
++        * @param {Number} p_nTabIndex Number indicating the value for the 
++        * button's "tabindex" attribute.
++        */
++        _setTabIndex: function (p_nTabIndex) {
++        
++            this._button.tabIndex = p_nTabIndex;
++        
++        },
++        
++        
++        /**
++        * @method _setTitle
++        * @description Sets the value of the button's "title" attribute.
++        * @protected
++        * @param {String} p_nTabIndex Number indicating the value for 
++        * the button's "title" attribute.
++        */
++        _setTitle: function (p_sTitle) {
++        
++            if (this.get("type") != "link") {
++        
++                this._button.title = p_sTitle;
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setDisabled
++        * @description Sets the value of the button's "disabled" attribute.
++        * @protected
++        * @param {Boolean} p_bDisabled Boolean indicating the value for 
++        * the button's "disabled" attribute.
++        */
++        _setDisabled: function (p_bDisabled) {
++        
++            if (this.get("type") != "link") {
++        
++                if (p_bDisabled) {
++        
++                    if (this._menu) {
++        
++                        this._menu.hide();
++        
++                    }
++        
++                    if (this.hasFocus()) {
++                    
++                        this.blur();
++                    
++                    }
++        
++                    this._button.setAttribute("disabled", "disabled");
++        
++                    this.addStateCSSClasses("disabled");
++
++                    this.removeStateCSSClasses("hover");
++                    this.removeStateCSSClasses("active");
++                    this.removeStateCSSClasses("focus");
++        
++                }
++                else {
++        
++                    this._button.removeAttribute("disabled");
++        
++                    this.removeStateCSSClasses("disabled");
++                
++                }
++        
++            }
++        
++        },
++
++        
++        /**
++        * @method _setHref
++        * @description Sets the value of the button's "href" attribute.
++        * @protected
++        * @param {String} p_sHref String indicating the value for the button's 
++        * "href" attribute.
++        */
++        _setHref: function (p_sHref) {
++        
++            if (this.get("type") == "link") {
++        
++                this._button.href = p_sHref;
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setTarget
++        * @description Sets the value of the button's "target" attribute.
++        * @protected
++        * @param {String} p_sTarget String indicating the value for the button's 
++        * "target" attribute.
++        */
++        _setTarget: function (p_sTarget) {
++        
++            if (this.get("type") == "link") {
++        
++                this._button.setAttribute("target", p_sTarget);
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setChecked
++        * @description Sets the value of the button's "target" attribute.
++        * @protected
++        * @param {Boolean} p_bChecked Boolean indicating the value for  
++        * the button's "checked" attribute.
++        */
++        _setChecked: function (p_bChecked) {
++        
++            var sType = this.get("type");
++        
++            if (sType == "checkbox" || sType == "radio") {
++        
++                if (p_bChecked) {
++                    this.addStateCSSClasses("checked");
++                }
++                else {
++                    this.removeStateCSSClasses("checked");
++                }
++        
++            }
++        
++        },
++
++        
++        /**
++        * @method _setMenu
++        * @description Sets the value of the button's "menu" attribute.
++        * @protected
++        * @param {Object} p_oMenu Object indicating the value for the button's 
++        * "menu" attribute.
++        */
++        _setMenu: function (p_oMenu) {
++
++            var bLazyLoad = this.get("lazyloadmenu"),
++                oButtonElement = this.get("element"),
++                sMenuCSSClassName,
++        
++                /*
++                    Boolean indicating if the value of p_oMenu is an instance 
++                    of YAHOO.widget.Menu or YAHOO.widget.Overlay.
++                */
++        
++                bInstance = false,
++                oMenu,
++                oMenuElement,
++                oSrcElement;
++        
++
++			function onAppendTo() {
++
++				oMenu.render(oButtonElement.parentNode);
++				
++				this.removeListener("appendTo", onAppendTo);
++			
++			}
++			
++			
++			function setMenuContainer() {
++
++				oMenu.cfg.queueProperty("container", oButtonElement.parentNode);
++				
++				this.removeListener("appendTo", setMenuContainer);
++			
++			}
++
++
++			function initMenu() {
++		
++				var oContainer;
++		
++				if (oMenu) {
++
++					Dom.addClass(oMenu.element, this.get("menuclassname"));
++					Dom.addClass(oMenu.element, this.CLASS_NAME_PREFIX + this.get("type") + "-button-menu");
++
++					oMenu.showEvent.subscribe(this._onMenuShow, null, this);
++					oMenu.hideEvent.subscribe(this._onMenuHide, null, this);
++					oMenu.renderEvent.subscribe(this._onMenuRender, null, this);
++
++
++					if (Menu && oMenu instanceof Menu) {
++
++						if (bLazyLoad) {
++
++							oContainer = this.get("container");
++
++							if (oContainer) {
++
++								oMenu.cfg.queueProperty("container", oContainer);
++
++							}
++							else {
++
++								this.on("appendTo", setMenuContainer);
++
++							}
++
++						}
++
++						oMenu.cfg.queueProperty("clicktohide", false);
++
++						oMenu.keyDownEvent.subscribe(this._onMenuKeyDown, this, true);
++						oMenu.subscribe("click", this._onMenuClick, this, true);
++
++						this.on("selectedMenuItemChange", this._onSelectedMenuItemChange);
++		
++						oSrcElement = oMenu.srcElement;
++		
++						if (oSrcElement && oSrcElement.nodeName.toUpperCase() == "SELECT") {
++
++							oSrcElement.style.display = "none";
++							oSrcElement.parentNode.removeChild(oSrcElement);
++		
++						}
++		
++					}
++					else if (Overlay && oMenu instanceof Overlay) {
++		
++						if (!m_oOverlayManager) {
++		
++							m_oOverlayManager = new YAHOO.widget.OverlayManager();
++						
++						}
++						
++						m_oOverlayManager.register(oMenu);
++						
++					}
++		
++		
++					this._menu = oMenu;
++
++		
++					if (!bInstance && !bLazyLoad) {
++		
++						if (Dom.inDocument(oButtonElement)) {
++	
++							oMenu.render(oButtonElement.parentNode);
++						
++						}
++						else {
++		
++							this.on("appendTo", onAppendTo);
++						
++						}
++					
++					}
++		
++				}
++		
++			}
++
++        
++            if (Overlay) {
++        
++				if (Menu) {
++				
++					sMenuCSSClassName = Menu.prototype.CSS_CLASS_NAME;
++				
++				}
++			
++				if (p_oMenu && Menu && (p_oMenu instanceof Menu)) {
++			
++					oMenu = p_oMenu;
++					bInstance = true;
++			
++					initMenu.call(this);
++			
++				}
++				else if (Overlay && p_oMenu && (p_oMenu instanceof Overlay)) {
++			
++					oMenu = p_oMenu;
++					bInstance = true;
++			
++					oMenu.cfg.queueProperty("visible", false);
++			
++					initMenu.call(this);
++			
++				}
++				else if (Menu && Lang.isArray(p_oMenu)) {
++
++					oMenu = new Menu(Dom.generateId(), { lazyload: bLazyLoad, itemdata: p_oMenu });
++						
++					this._menu = oMenu;
++			
++					this.on("appendTo", initMenu);
++			
++				}
++				else if (Lang.isString(p_oMenu)) {
++			
++					oMenuElement = Dom.get(p_oMenu);
++			
++					if (oMenuElement) {
++			
++						if (Menu && Dom.hasClass(oMenuElement, sMenuCSSClassName) || 
++							oMenuElement.nodeName.toUpperCase() == "SELECT") {
++				
++							oMenu = new Menu(p_oMenu, { lazyload: bLazyLoad });
++				
++							initMenu.call(this);
++				
++						}
++						else if (Overlay) {
++			
++							oMenu = new Overlay(p_oMenu, { visible: false });
++				
++							initMenu.call(this);
++				
++						}
++			
++					}
++			
++				}
++				else if (p_oMenu && p_oMenu.nodeName) {
++			
++					if (Menu && Dom.hasClass(p_oMenu, sMenuCSSClassName) || 
++							p_oMenu.nodeName.toUpperCase() == "SELECT") {
++			
++						oMenu = new Menu(p_oMenu, { lazyload: bLazyLoad });
++					
++						initMenu.call(this);
++			
++					}
++					else if (Overlay) {
++			
++						if (!p_oMenu.id) {
++						
++							Dom.generateId(p_oMenu);
++						
++						}
++			
++						oMenu = new Overlay(p_oMenu, { visible: false });
++			
++						initMenu.call(this);
++					
++					}
++				
++				}
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _setOnClick
++        * @description Sets the value of the button's "onclick" attribute.
++        * @protected
++        * @param {Object} p_oObject Object indicating the value for the button's 
++        * "onclick" attribute.
++        */
++        _setOnClick: function (p_oObject) {
++        
++            /*
++                Remove any existing listeners if a "click" event handler 
++                has already been specified.
++            */
++        
++            if (this._onclickAttributeValue && 
++                (this._onclickAttributeValue != p_oObject)) {
++        
++                this.removeListener("click", this._onclickAttributeValue.fn);
++        
++                this._onclickAttributeValue = null;
++        
++            }
++        
++        
++            if (!this._onclickAttributeValue && 
++                Lang.isObject(p_oObject) && 
++                Lang.isFunction(p_oObject.fn)) {
++        
++                this.on("click", p_oObject.fn, p_oObject.obj, p_oObject.scope);
++        
++                this._onclickAttributeValue = p_oObject;
++        
++            }
++        
++        },
++
++        
++        
++        // Protected methods
++
++        
++        
++        /**
++        * @method _isActivationKey
++        * @description Determines if the specified keycode is one that toggles  
++        * the button's "active" state.
++        * @protected
++        * @param {Number} p_nKeyCode Number representing the keycode to 
++        * be evaluated.
++        * @return {Boolean}
++        */
++        _isActivationKey: function (p_nKeyCode) {
++        
++            var sType = this.get("type"),
++                aKeyCodes = (sType == "checkbox" || sType == "radio") ? 
++                    this.CHECK_ACTIVATION_KEYS : this.ACTIVATION_KEYS,
++        
++                nKeyCodes = aKeyCodes.length,
++                bReturnVal = false,
++                i;
++        
++
++            if (nKeyCodes > 0) {
++        
++                i = nKeyCodes - 1;
++        
++                do {
++        
++                    if (p_nKeyCode == aKeyCodes[i]) {
++        
++                        bReturnVal = true;
++                        break;
++        
++                    }
++        
++                }
++                while (i--);
++            
++            }
++            
++            return bReturnVal;
++        
++        },
++        
++        
++        /**
++        * @method _isSplitButtonOptionKey
++        * @description Determines if the specified keycode is one that toggles  
++        * the display of the split button's menu.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        * @return {Boolean}
++        */
++        _isSplitButtonOptionKey: function (p_oEvent) {
++
++			var bShowMenu = (Event.getCharCode(p_oEvent) == 40);
++
++
++			var onKeyPress = function (p_oEvent) {
++
++				Event.preventDefault(p_oEvent);
++
++				this.removeListener("keypress", onKeyPress);
++			
++			};
++
++
++			// Prevent the browser from scrolling the window
++			if (bShowMenu) {
++
++				if (UA.opera) {
++	
++					this.on("keypress", onKeyPress);
++	
++				}
++
++				Event.preventDefault(p_oEvent);
++			}
++
++            return bShowMenu;
++        
++        },
++        
++        
++        /**
++        * @method _addListenersToForm
++        * @description Adds event handlers to the button's form.
++        * @protected
++        */
++        _addListenersToForm: function () {
++        
++            var oForm = this.getForm(),
++                onFormKeyPress = YAHOO.widget.Button.onFormKeyPress,
++                bHasKeyPressListener,
++                oSrcElement,
++                aListeners,
++                nListeners,
++                i;
++        
++        
++            if (oForm) {
++        
++                Event.on(oForm, "reset", this._onFormReset, null, this);
++                Event.on(oForm, "submit", this._onFormSubmit, null, this);
++        
++                oSrcElement = this.get("srcelement");
++        
++        
++                if (this.get("type") == "submit" || 
++                    (oSrcElement && oSrcElement.type == "submit")) 
++                {
++                
++                    aListeners = Event.getListeners(oForm, "keypress");
++                    bHasKeyPressListener = false;
++            
++                    if (aListeners) {
++            
++                        nListeners = aListeners.length;
++        
++                        if (nListeners > 0) {
++            
++                            i = nListeners - 1;
++                            
++                            do {
++               
++                                if (aListeners[i].fn == onFormKeyPress) {
++                
++                                    bHasKeyPressListener = true;
++                                    break;
++                                
++                                }
++                
++                            }
++                            while (i--);
++                        
++                        }
++                    
++                    }
++            
++            
++                    if (!bHasKeyPressListener) {
++               
++                        Event.on(oForm, "keypress", onFormKeyPress);
++            
++                    }
++        
++                }
++            
++            }
++        
++        },
++        
++        
++        
++        /**
++        * @method _showMenu
++        * @description Shows the button's menu.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object 
++        * passed back by the event utility (YAHOO.util.Event) that triggered 
++        * the display of the menu.
++        */
++        _showMenu: function (p_oEvent) {
++
++            if (YAHOO.widget.MenuManager) {
++                YAHOO.widget.MenuManager.hideVisible();
++            }
++
++        
++            if (m_oOverlayManager) {
++                m_oOverlayManager.hideAll();
++            }
++
++
++            var oMenu = this._menu,
++            	aMenuAlignment = this.get("menualignment"),
++            	bFocusMenu = this.get("focusmenu"),
++				fnFocusMethod;
++
++
++			if (this._renderedMenu) {
++
++				oMenu.cfg.setProperty("context", 
++								[this.get("element"), aMenuAlignment[0], aMenuAlignment[1]]);
++	
++				oMenu.cfg.setProperty("preventcontextoverlap", true);
++				oMenu.cfg.setProperty("constraintoviewport", true);
++
++			}
++			else {
++
++				oMenu.cfg.queueProperty("context", 
++								[this.get("element"), aMenuAlignment[0], aMenuAlignment[1]]);
++	
++				oMenu.cfg.queueProperty("preventcontextoverlap", true);
++				oMenu.cfg.queueProperty("constraintoviewport", true);
++			
++			}
++
++
++			/*
++				 Refocus the Button before showing its Menu in case the call to 
++				 YAHOO.widget.MenuManager.hideVisible() resulted in another element in the 
++				 DOM being focused after another Menu was hidden.
++			*/
++			
++			this.focus();
++
++
++            if (Menu && oMenu && (oMenu instanceof Menu)) {
++
++				// Since Menus automatically focus themselves when made visible, temporarily 
++				// replace the Menu focus method so that the value of the Button's "focusmenu"
++				// attribute determines if the Menu should be focus when made visible.
++
++				fnFocusMethod = oMenu.focus;
++
++				oMenu.focus = function () {};
++
++				if (this._renderedMenu) {
++
++					oMenu.cfg.setProperty("minscrollheight", this.get("menuminscrollheight"));
++					oMenu.cfg.setProperty("maxheight", this.get("menumaxheight"));
++				
++				}
++				else {
++
++					oMenu.cfg.queueProperty("minscrollheight", this.get("menuminscrollheight"));
++					oMenu.cfg.queueProperty("maxheight", this.get("menumaxheight"));
++				
++				}
++
++
++                oMenu.show();
++
++        		oMenu.focus = fnFocusMethod;
++
++				oMenu.align();
++        
++
++                /*
++                    Stop the propagation of the event so that the MenuManager 
++                    doesn't blur the menu after it gets focus.
++                */
++        
++                if (p_oEvent.type == "mousedown") {
++                    Event.stopPropagation(p_oEvent);
++                }
++
++        
++                if (bFocusMenu) { 
++                    oMenu.focus();
++                }
++
++            }
++            else if (Overlay && oMenu && (oMenu instanceof Overlay)) {
++
++				if (!this._renderedMenu) {
++		            oMenu.render(this.get("element").parentNode);
++				}
++
++                oMenu.show();
++				oMenu.align();
++
++            }
++        
++        },
++        
++        
++        /**
++        * @method _hideMenu
++        * @description Hides the button's menu.
++        * @protected
++        */
++        _hideMenu: function () {
++        
++            var oMenu = this._menu;
++        
++            if (oMenu) {
++        
++                oMenu.hide();
++        
++            }
++        
++        },
++        
++        
++        
++        
++        // Protected event handlers
++        
++        
++        /**
++        * @method _onMouseOver
++        * @description "mouseover" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseOver: function (p_oEvent) {
++        
++        	var sType = this.get("type"),
++        		oElement,
++				nOptionRegionX;
++
++
++			if (sType === "split") {
++
++				oElement = this.get("element");
++				nOptionRegionX = 
++					(Dom.getX(oElement) + (oElement.offsetWidth - this.OPTION_AREA_WIDTH));
++					
++				this._nOptionRegionX = nOptionRegionX;
++			
++			}
++        
++
++            if (!this._hasMouseEventHandlers) {
++        
++				if (sType === "split") {
++        
++	        		this.on("mousemove", this._onMouseMove);
++
++        		}
++
++                this.on("mouseout", this._onMouseOut);
++        
++                this._hasMouseEventHandlers = true;
++        
++            }
++        
++
++            this.addStateCSSClasses("hover");
++
++
++			if (sType === "split" && (Event.getPageX(p_oEvent) > nOptionRegionX)) {
++	
++				this.addStateCSSClasses("hoveroption");
++	
++			}
++
++        
++            if (this._activationButtonPressed) {
++        
++                this.addStateCSSClasses("active");
++        
++            }
++        
++        
++            if (this._bOptionPressed) {
++        
++                this.addStateCSSClasses("activeoption");
++            
++            }
++
++
++            if (this._activationButtonPressed || this._bOptionPressed) {
++        
++                Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
++        
++            }
++
++        },
++
++
++        /**
++        * @method _onMouseMove
++        * @description "mousemove" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */        
++        _onMouseMove: function (p_oEvent) {
++        
++        	var nOptionRegionX = this._nOptionRegionX;
++        
++        	if (nOptionRegionX) {
++
++				if (Event.getPageX(p_oEvent) > nOptionRegionX) {
++					
++					this.addStateCSSClasses("hoveroption");
++	
++				}
++				else {
++
++					this.removeStateCSSClasses("hoveroption");
++				
++				}
++				
++        	}
++        
++        },
++        
++        /**
++        * @method _onMouseOut
++        * @description "mouseout" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseOut: function (p_oEvent) {
++
++			var sType = this.get("type");
++        
++            this.removeStateCSSClasses("hover");
++        
++
++            if (sType != "menu") {
++        
++                this.removeStateCSSClasses("active");
++        
++            }
++        
++
++            if (this._activationButtonPressed || this._bOptionPressed) {
++        
++                Event.on(document, "mouseup", this._onDocumentMouseUp, null, this);
++        
++            }
++
++
++			if (sType === "split" && (Event.getPageX(p_oEvent) > this._nOptionRegionX)) {
++			
++				this.removeStateCSSClasses("hoveroption");
++	
++			}
++            
++        },
++        
++        
++        /**
++        * @method _onDocumentMouseUp
++        * @description "mouseup" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDocumentMouseUp: function (p_oEvent) {
++        
++            this._activationButtonPressed = false;
++            this._bOptionPressed = false;
++        
++            var sType = this.get("type"),
++                oTarget,
++                oMenuElement;
++        
++            if (sType == "menu" || sType == "split") {
++
++                oTarget = Event.getTarget(p_oEvent);
++                oMenuElement = this._menu.element;
++        
++                if (oTarget != oMenuElement && 
++                    !Dom.isAncestor(oMenuElement, oTarget)) {
++
++                    this.removeStateCSSClasses((sType == "menu" ? 
++                        "active" : "activeoption"));
++            
++                    this._hideMenu();
++
++                }
++        
++            }
++        
++            Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
++        
++        },
++        
++        
++        /**
++        * @method _onMouseDown
++        * @description "mousedown" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseDown: function (p_oEvent) {
++        
++            var sType,
++            	bReturnVal = true;
++        
++        
++            function onMouseUp() {
++            
++                this._hideMenu();
++                this.removeListener("mouseup", onMouseUp);
++            
++            }
++        
++        
++            if ((p_oEvent.which || p_oEvent.button) == 1) {
++        
++        
++                if (!this.hasFocus()) {
++                
++                    this.focus();
++                
++                }
++        
++        
++                sType = this.get("type");
++        
++        
++                if (sType == "split") {
++                
++                    if (Event.getPageX(p_oEvent) > this._nOptionRegionX) {
++                        
++                        this.fireEvent("option", p_oEvent);
++						bReturnVal = false;
++        
++                    }
++                    else {
++        
++                        this.addStateCSSClasses("active");
++        
++                        this._activationButtonPressed = true;
++        
++                    }
++        
++                }
++                else if (sType == "menu") {
++        
++                    if (this.isActive()) {
++        
++                        this._hideMenu();
++        
++                        this._activationButtonPressed = false;
++        
++                    }
++                    else {
++        
++                        this._showMenu(p_oEvent);
++        
++                        this._activationButtonPressed = true;
++                    
++                    }
++        
++                }
++                else {
++        
++                    this.addStateCSSClasses("active");
++        
++                    this._activationButtonPressed = true;
++                
++                }
++        
++        
++        
++                if (sType == "split" || sType == "menu") {
++
++                    this._hideMenuTimer = Lang.later(250, this, this.on, ["mouseup", onMouseUp]);
++        
++                }
++        
++            }
++            
++            return bReturnVal;
++            
++        },
++        
++        
++        /**
++        * @method _onMouseUp
++        * @description "mouseup" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onMouseUp: function (p_oEvent) {
++        
++            var sType = this.get("type"),
++            	oHideMenuTimer = this._hideMenuTimer,
++            	bReturnVal = true;
++        
++        
++            if (oHideMenuTimer) {
++  
++  				oHideMenuTimer.cancel();
++        
++            }
++        
++        
++            if (sType == "checkbox" || sType == "radio") {
++        
++                this.set("checked", !(this.get("checked")));
++            
++            }
++        
++        
++            this._activationButtonPressed = false;
++            
++        
++            if (sType != "menu") {
++        
++                this.removeStateCSSClasses("active");
++            
++            }
++
++                
++			if (sType == "split" && Event.getPageX(p_oEvent) > this._nOptionRegionX) {
++				
++				bReturnVal = false;
++
++			}
++
++			return bReturnVal;
++            
++        },
++        
++        
++        /**
++        * @method _onFocus
++        * @description "focus" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onFocus: function (p_oEvent) {
++        
++            var oElement;
++        
++            this.addStateCSSClasses("focus");
++        
++            if (this._activationKeyPressed) {
++        
++                this.addStateCSSClasses("active");
++           
++            }
++        
++            m_oFocusedButton = this;
++        
++        
++            if (!this._hasKeyEventHandlers) {
++        
++                oElement = this._button;
++        
++                Event.on(oElement, "blur", this._onBlur, null, this);
++                Event.on(oElement, "keydown", this._onKeyDown, null, this);
++                Event.on(oElement, "keyup", this._onKeyUp, null, this);
++        
++                this._hasKeyEventHandlers = true;
++        
++            }
++        
++        
++            this.fireEvent("focus", p_oEvent);
++        
++        },
++        
++        
++        /**
++        * @method _onBlur
++        * @description "blur" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onBlur: function (p_oEvent) {
++        
++            this.removeStateCSSClasses("focus");
++        
++            if (this.get("type") != "menu") {
++        
++                this.removeStateCSSClasses("active");
++
++            }    
++        
++            if (this._activationKeyPressed) {
++        
++                Event.on(document, "keyup", this._onDocumentKeyUp, null, this);
++        
++            }
++        
++        
++            m_oFocusedButton = null;
++        
++            this.fireEvent("blur", p_oEvent);
++           
++        },
++        
++        
++        /**
++        * @method _onDocumentKeyUp
++        * @description "keyup" event handler for the document.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDocumentKeyUp: function (p_oEvent) {
++        
++            if (this._isActivationKey(Event.getCharCode(p_oEvent))) {
++        
++                this._activationKeyPressed = false;
++                
++                Event.removeListener(document, "keyup", this._onDocumentKeyUp);
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onKeyDown
++        * @description "keydown" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onKeyDown: function (p_oEvent) {
++        
++            var oMenu = this._menu;
++        
++        
++            if (this.get("type") == "split" && 
++                this._isSplitButtonOptionKey(p_oEvent)) {
++        
++                this.fireEvent("option", p_oEvent);
++        
++            }
++            else if (this._isActivationKey(Event.getCharCode(p_oEvent))) {
++        
++                if (this.get("type") == "menu") {
++        
++                    this._showMenu(p_oEvent);
++        
++                }
++                else {
++        
++                    this._activationKeyPressed = true;
++                    
++                    this.addStateCSSClasses("active");
++                
++                }
++            
++            }
++        
++        
++            if (oMenu && oMenu.cfg.getProperty("visible") && 
++                Event.getCharCode(p_oEvent) == 27) {
++            
++                oMenu.hide();
++                this.focus();
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onKeyUp
++        * @description "keyup" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onKeyUp: function (p_oEvent) {
++        
++            var sType;
++        
++            if (this._isActivationKey(Event.getCharCode(p_oEvent))) {
++        
++                sType = this.get("type");
++        
++                if (sType == "checkbox" || sType == "radio") {
++        
++                    this.set("checked", !(this.get("checked")));
++                
++                }
++        
++                this._activationKeyPressed = false;
++        
++                if (this.get("type") != "menu") {
++        
++                    this.removeStateCSSClasses("active");
++        
++                }
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onClick
++        * @description "click" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onClick: function (p_oEvent) {
++        
++            var sType = this.get("type"),
++                oForm,
++                oSrcElement,
++                bReturnVal;
++        
++
++			switch (sType) {
++
++			case "submit":
++
++				if (p_oEvent.returnValue !== false) {
++
++					this.submitForm();
++
++				}
++
++				break;
++
++			case "reset":
++
++				oForm = this.getForm();
++
++				if (oForm) {
++
++					oForm.reset();
++
++				}
++
++				break;
++
++
++			case "split":
++
++				if (this._nOptionRegionX > 0 && 
++						(Event.getPageX(p_oEvent) > this._nOptionRegionX)) {
++
++					bReturnVal = false;
++
++				}
++				else {
++
++					this._hideMenu();
++
++					oSrcElement = this.get("srcelement");
++
++					if (oSrcElement && oSrcElement.type == "submit" && 
++							p_oEvent.returnValue !== false) {
++
++						this.submitForm();
++
++					}
++
++				}
++
++				break;
++
++			}
++
++			return bReturnVal;
++        
++        },
++        
++        
++        /**
++        * @method _onDblClick
++        * @description "dblclick" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDblClick: function (p_oEvent) {
++        
++            var bReturnVal = true;
++    
++			if (this.get("type") == "split" && Event.getPageX(p_oEvent) > this._nOptionRegionX) {
++
++				bReturnVal = false;
++			
++			}
++        
++        	return bReturnVal;
++        
++        },        
++        
++        
++        /**
++        * @method _onAppendTo
++        * @description "appendTo" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onAppendTo: function (p_oEvent) {
++        
++            /*
++                It is necessary to call "_addListenersToForm" using 
++                "setTimeout" to make sure that the button's "form" property 
++                returns a node reference.  Sometimes, if you try to get the 
++                reference immediately after appending the field, it is null.
++            */
++        
++            Lang.later(0, this, this._addListenersToForm);
++        
++        },
++        
++        
++        /**
++        * @method _onFormReset
++        * @description "reset" event handler for the button's form.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (YAHOO.util.Event).
++        */
++        _onFormReset: function (p_oEvent) {
++        
++            var sType = this.get("type"),
++                oMenu = this._menu;
++        
++            if (sType == "checkbox" || sType == "radio") {
++        
++                this.resetValue("checked");
++        
++            }
++        
++        
++            if (Menu && oMenu && (oMenu instanceof Menu)) {
++        
++                this.resetValue("selectedMenuItem");
++        
++            }
++        
++        },
++
++
++        /**
++        * @method _onFormSubmit
++        * @description "submit" event handler for the button's form.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (YAHOO.util.Event).
++        */        
++        _onFormSubmit: function (p_oEvent) {
++        
++        	this.createHiddenFields();
++        
++        },
++        
++        
++        /**
++        * @method _onDocumentMouseDown
++        * @description "mousedown" event handler for the document.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onDocumentMouseDown: function (p_oEvent) {
++
++            var oTarget = Event.getTarget(p_oEvent),
++                oButtonElement = this.get("element"),
++                oMenuElement = this._menu.element;
++           
++        
++            if (oTarget != oButtonElement && 
++                !Dom.isAncestor(oButtonElement, oTarget) && 
++                oTarget != oMenuElement && 
++                !Dom.isAncestor(oMenuElement, oTarget)) {
++        
++                this._hideMenu();
++
++				//	In IE when the user mouses down on a focusable element
++				//	that element will be focused and become the "activeElement".
++				//	(http://msdn.microsoft.com/en-us/library/ms533065(VS.85).aspx)
++				//	However, there is a bug in IE where if there is a  
++				//	positioned element with a focused descendant that is 
++				//	hidden in response to the mousedown event, the target of 
++				//	the mousedown event will appear to have focus, but will 
++				//	not be set as the activeElement.  This will result 
++				//	in the element not firing key events, even though it
++				//	appears to have focus.	The following call to "setActive"
++				//	fixes this bug.
++
++				if (UA.ie && oTarget.focus) {
++					oTarget.setActive();
++				}
++        
++                Event.removeListener(document, "mousedown", 
++                    this._onDocumentMouseDown);    
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onOption
++        * @description "option" event handler for the button.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onOption: function (p_oEvent) {
++        
++            if (this.hasClass(this.CLASS_NAME_PREFIX + "split-button-activeoption")) {
++        
++                this._hideMenu();
++        
++                this._bOptionPressed = false;
++        
++            }
++            else {
++        
++                this._showMenu(p_oEvent);    
++        
++                this._bOptionPressed = true;
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onMenuShow
++        * @description "show" event handler for the button's menu.
++        * @private
++        * @param {String} p_sType String representing the name of the event  
++        * that was fired.
++        */
++        _onMenuShow: function (p_sType) {
++        
++            Event.on(document, "mousedown", this._onDocumentMouseDown, 
++                null, this);
++        
++            var sState = (this.get("type") == "split") ? "activeoption" : "active";
++        
++            this.addStateCSSClasses(sState);
++        
++        },
++        
++        
++        /**
++        * @method _onMenuHide
++        * @description "hide" event handler for the button's menu.
++        * @private
++        * @param {String} p_sType String representing the name of the event  
++        * that was fired.
++        */
++        _onMenuHide: function (p_sType) {
++            
++            var sState = (this.get("type") == "split") ? "activeoption" : "active";
++        
++            this.removeStateCSSClasses(sState);
++        
++        
++            if (this.get("type") == "split") {
++        
++                this._bOptionPressed = false;
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onMenuKeyDown
++        * @description "keydown" event handler for the button's 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.
++        */
++        _onMenuKeyDown: function (p_sType, p_aArgs) {
++        
++            var oEvent = p_aArgs[0];
++        
++            if (Event.getCharCode(oEvent) == 27) {
++        
++                this.focus();
++        
++                if (this.get("type") == "split") {
++                
++                    this._bOptionPressed = false;
++                
++                }
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onMenuRender
++        * @description "render" event handler for the button's menu.
++        * @private
++        * @param {String} p_sType String representing the name of the  
++        * event thatwas fired.
++        */
++        _onMenuRender: function (p_sType) {
++        
++            var oButtonElement = this.get("element"),
++                oButtonParent = oButtonElement.parentNode,
++				oMenu = this._menu,
++                oMenuElement = oMenu.element,
++				oSrcElement = oMenu.srcElement,
++				oItem;
++        
++        
++            if (oButtonParent != oMenuElement.parentNode) {
++        
++                oButtonParent.appendChild(oMenuElement);
++            
++            }
++
++			this._renderedMenu = true;
++
++			//	If the user has designated an <option> of the Menu's source 
++			//	<select> element to be selected, sync the selectedIndex with 
++			//	the "selectedMenuItem" Attribute.
++
++			if (oSrcElement && 
++					oSrcElement.nodeName.toLowerCase() === "select" && 
++					oSrcElement.value) {
++				
++				
++				oItem = oMenu.getItem(oSrcElement.selectedIndex);
++				
++				//	Set the value of the "selectedMenuItem" attribute
++				//	silently since this is the initial set--synchronizing 
++				//	the value of the source <SELECT> element in the DOM with 
++				//	its corresponding Menu instance.
++
++				this.set("selectedMenuItem", oItem, true);
++				
++				//	Call the "_onSelectedMenuItemChange" method since the 
++				//	attribute was set silently.
++
++				this._onSelectedMenuItemChange({ newValue: oItem });
++				
++			}
++
++        },
++
++        
++        
++        /**
++        * @method _onMenuClick
++        * @description "click" event handler for the button's 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.
++        */
++        _onMenuClick: function (p_sType, p_aArgs) {
++
++            var oItem = p_aArgs[1],
++                oSrcElement;
++        
++            if (oItem) {
++        
++				this.set("selectedMenuItem", oItem);
++
++                oSrcElement = this.get("srcelement");
++            
++                if (oSrcElement && oSrcElement.type == "submit") {
++        
++                    this.submitForm();
++            
++                }
++            
++                this._hideMenu();
++            
++            }
++        
++        },
++
++
++        /**
++        * @method _onSelectedMenuItemChange
++        * @description "selectedMenuItemChange" event handler for the Button's
++		* "selectedMenuItem" attribute.
++        * @param {Event} event Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++		_onSelectedMenuItemChange: function (event) {
++		
++			var oSelected = event.prevValue,
++				oItem = event.newValue,
++				sPrefix = this.CLASS_NAME_PREFIX;
++
++			if (oSelected) {
++				Dom.removeClass(oSelected.element, (sPrefix + "button-selectedmenuitem"));
++			}
++			
++			if (oItem) {
++				Dom.addClass(oItem.element, (sPrefix + "button-selectedmenuitem"));
++			}
++			
++		},        
++        
++
++        /**
++        * @method _onLabelClick
++        * @description "click" event handler for the Button's
++		* <code>&#60;label&#62;</code> element.
++        * @param {Event} event Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++		_onLabelClick: function (event) {
++
++			this.focus();
++
++			var sType = this.get("type");
++
++			if (sType == "radio" || sType == "checkbox") {
++				this.set("checked", (!this.get("checked")));						
++			}
++			
++		},
++
++        
++        // Public methods
++        
++        
++        /**
++        * @method createButtonElement
++        * @description Creates the button's HTML elements.
++        * @param {String} p_sType String indicating the type of element 
++        * to create.
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-58190037">HTMLElement</a>}
++        */
++        createButtonElement: function (p_sType) {
++        
++            var sNodeName = this.NODE_NAME,
++                oElement = document.createElement(sNodeName);
++        
++            oElement.innerHTML =  "<" + sNodeName + " class=\"first-child\">" + 
++                (p_sType == "link" ? "<a></a>" : 
++                "<button type=\"button\"></button>") + "</" + sNodeName + ">";
++        
++            return oElement;
++        
++        },
++
++        
++        /**
++        * @method addStateCSSClasses
++        * @description Appends state-specific CSS classes to the button's root 
++        * DOM element.
++        */
++        addStateCSSClasses: function (p_sState) {
++        
++            var sType = this.get("type"),
++				sPrefix = this.CLASS_NAME_PREFIX;
++        
++            if (Lang.isString(p_sState)) {
++        
++                if (p_sState != "activeoption" && p_sState != "hoveroption") {
++        
++                    this.addClass(sPrefix + this.CSS_CLASS_NAME + ("-" + p_sState));
++        
++                }
++        
++                this.addClass(sPrefix + sType + ("-button-" + p_sState));
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method removeStateCSSClasses
++        * @description Removes state-specific CSS classes to the button's root 
++        * DOM element.
++        */
++        removeStateCSSClasses: function (p_sState) {
++        
++            var sType = this.get("type"),
++				sPrefix = this.CLASS_NAME_PREFIX;
++        
++            if (Lang.isString(p_sState)) {
++        
++                this.removeClass(sPrefix + this.CSS_CLASS_NAME + ("-" + p_sState));
++                this.removeClass(sPrefix + sType + ("-button-" + p_sState));
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method createHiddenFields
++        * @description Creates the button's hidden form field and appends it 
++        * to its parent form.
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|Array}
++        */
++        createHiddenFields: function () {
++        
++            this.removeHiddenFields();
++        
++            var oForm = this.getForm(),
++                oButtonField,
++                sType,
++                bCheckable,
++                oMenu,
++                oMenuItem,
++                sButtonName,
++                oValue,
++                oMenuField,
++                oReturnVal,
++				sMenuFieldName,
++				oMenuSrcElement,
++				bMenuSrcElementIsSelect = false;
++        
++        
++            if (oForm && !this.get("disabled")) {
++        
++                sType = this.get("type");
++                bCheckable = (sType == "checkbox" || sType == "radio");
++        
++        
++                if ((bCheckable && this.get("checked")) || (m_oSubmitTrigger == this)) {
++                
++        
++                    oButtonField = createInputElement((bCheckable ? sType : "hidden"),
++                                    this.get("name"), this.get("value"), this.get("checked"));
++            
++            
++                    if (oButtonField) {
++            
++                        if (bCheckable) {
++            
++                            oButtonField.style.display = "none";
++            
++                        }
++            
++                        oForm.appendChild(oButtonField);
++            
++                    }
++        
++                }
++                    
++        
++                oMenu = this._menu;
++            
++            
++                if (Menu && oMenu && (oMenu instanceof Menu)) {
++        
++        
++                    oMenuItem = this.get("selectedMenuItem");
++					oMenuSrcElement = oMenu.srcElement;
++					bMenuSrcElementIsSelect = (oMenuSrcElement && 
++												oMenuSrcElement.nodeName.toUpperCase() == "SELECT");
++
++                    if (oMenuItem) {
++
++						oValue = (oMenuItem.value === null || oMenuItem.value === "") ? 
++									oMenuItem.cfg.getProperty("text") : oMenuItem.value;
++
++						sButtonName = this.get("name");
++
++
++						if (bMenuSrcElementIsSelect) {
++						
++							sMenuFieldName = oMenuSrcElement.name;
++						
++						}
++						else if (sButtonName) {
++
++							sMenuFieldName = (sButtonName + "_options");
++						
++						}
++						
++
++						if (oValue && sMenuFieldName) {
++		
++							oMenuField = createInputElement("hidden", sMenuFieldName, oValue);
++							oForm.appendChild(oMenuField);
++		
++						}
++                    
++                    }
++                    else if (bMenuSrcElementIsSelect) {
++					
++						oMenuField = oForm.appendChild(oMenuSrcElement);
++                    
++                    }
++        
++                }
++            
++            
++                if (oButtonField && oMenuField) {
++        
++                    this._hiddenFields = [oButtonField, oMenuField];
++        
++                }
++                else if (!oButtonField && oMenuField) {
++        
++                    this._hiddenFields = oMenuField;
++                
++                }
++                else if (oButtonField && !oMenuField) {
++        
++                    this._hiddenFields = oButtonField;
++                
++                }
++        
++        		oReturnVal = this._hiddenFields;
++        
++            }
++
++			return oReturnVal;
++        
++        },
++        
++        
++        /**
++        * @method removeHiddenFields
++        * @description Removes the button's hidden form field(s) from its 
++        * parent form.
++        */
++        removeHiddenFields: function () {
++        
++            var oField = this._hiddenFields,
++                nFields,
++                i;
++        
++            function removeChild(p_oElement) {
++        
++                if (Dom.inDocument(p_oElement)) {
++        
++                    p_oElement.parentNode.removeChild(p_oElement);
++
++                }
++                
++            }
++            
++        
++            if (oField) {
++        
++                if (Lang.isArray(oField)) {
++        
++                    nFields = oField.length;
++                    
++                    if (nFields > 0) {
++                    
++                        i = nFields - 1;
++                        
++                        do {
++        
++                            removeChild(oField[i]);
++        
++                        }
++                        while (i--);
++                    
++                    }
++                
++                }
++                else {
++        
++                    removeChild(oField);
++        
++                }
++        
++                this._hiddenFields = null;
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method submitForm
++        * @description Submits the form to which the button belongs.  Returns  
++        * true if the form was submitted successfully, false if the submission 
++        * was cancelled.
++        * @protected
++        * @return {Boolean}
++        */
++        submitForm: function () {
++        
++            var oForm = this.getForm(),
++        
++                oSrcElement = this.get("srcelement"),
++        
++                /*
++                    Boolean indicating if the event fired successfully 
++                    (was not cancelled by any handlers)
++                */
++        
++                bSubmitForm = false,
++                
++                oEvent;
++        
++        
++            if (oForm) {
++        
++                if (this.get("type") == "submit" || (oSrcElement && oSrcElement.type == "submit")) {
++        
++                    m_oSubmitTrigger = this;
++                    
++                }
++        
++        
++                if (UA.ie) {
++        
++                    bSubmitForm = oForm.fireEvent("onsubmit");
++        
++                }
++                else {  // Gecko, Opera, and Safari
++        
++                    oEvent = document.createEvent("HTMLEvents");
++                    oEvent.initEvent("submit", true, true);
++        
++                    bSubmitForm = oForm.dispatchEvent(oEvent);
++        
++                }
++        
++        
++                /*
++                    In IE and Safari, dispatching a "submit" event to a form 
++                    WILL cause the form's "submit" event to fire, but WILL NOT 
++                    submit the form.  Therefore, we need to call the "submit" 
++                    method as well.
++                */
++              
++                if ((UA.ie || UA.webkit) && bSubmitForm) {
++        
++                    oForm.submit();
++                
++                }
++            
++            }
++        
++            return bSubmitForm;
++            
++        },
++        
++        
++        /**
++        * @method init
++        * @description The Button class's initialization method.
++        * @param {String} p_oElement String specifying the id attribute of the 
++        * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>,
++        * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to 
++        * be used to create the button.
++        * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|<a href="http://
++        * www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html
++        * #ID-34812697">HTMLButtonElement</a>|<a href="http://www.w3.org/TR
++        * /2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-33759296">
++        * HTMLElement</a>} p_oElement Object reference for the 
++        * <code>&#60;input&#62;</code>, <code>&#60;button&#62;</code>, 
++        * <code>&#60;a&#62;</code>, or <code>&#60;span&#62;</code> element to be 
++        * used to create the button.
++        * @param {Object} p_oElement Object literal specifying a set of 
++        * configuration attributes used to create the button.
++        * @param {Object} p_oAttributes Optional. Object literal specifying a 
++        * set of configuration attributes used to create the button.
++        */
++        init: function (p_oElement, p_oAttributes) {
++        
++            var sNodeName = p_oAttributes.type == "link" ? "a" : "button",
++                oSrcElement = p_oAttributes.srcelement,
++                oButton = p_oElement.getElementsByTagName(sNodeName)[0],
++                oInput;
++
++
++            if (!oButton) {
++
++                oInput = p_oElement.getElementsByTagName("input")[0];
++
++
++                if (oInput) {
++
++                    oButton = document.createElement("button");
++                    oButton.setAttribute("type", "button");
++
++                    oInput.parentNode.replaceChild(oButton, oInput);
++                
++                }
++
++            }
++
++            this._button = oButton;
++
++
++            YAHOO.widget.Button.superclass.init.call(this, p_oElement, p_oAttributes);
++
++
++			var sId = this.get("id"),
++				sButtonId = sId + "-button";
++
++
++        	oButton.id = sButtonId;
++
++
++			var aLabels,
++				oLabel;
++
++
++        	var hasLabel = function (element) {
++        	
++				return (element.htmlFor === sId);
++
++        	};
++
++
++			var setLabel = function () {
++
++				oLabel.setAttribute((UA.ie ? "htmlFor" : "for"), sButtonId);
++			
++			};
++
++
++			if (oSrcElement && this.get("type") != "link") {
++
++				aLabels = Dom.getElementsBy(hasLabel, "label");
++
++				if (Lang.isArray(aLabels) && aLabels.length > 0) {
++				
++					oLabel = aLabels[0];
++				
++				}
++
++			}
++        
++
++            m_oButtons[sId] = this;
++
++        	var sPrefix = this.CLASS_NAME_PREFIX;
++
++            this.addClass(sPrefix + this.CSS_CLASS_NAME);
++            this.addClass(sPrefix + this.get("type") + "-button");
++        
++            Event.on(this._button, "focus", this._onFocus, null, this);
++            this.on("mouseover", this._onMouseOver);
++			this.on("mousedown", this._onMouseDown);
++			this.on("mouseup", this._onMouseUp);
++            this.on("click", this._onClick);
++
++			//	Need to reset the value of the "onclick" Attribute so that any
++			//	handlers registered via the "onclick" Attribute are fired after 
++			//	Button's default "_onClick" listener.
++
++			var fnOnClick = this.get("onclick");
++
++			this.set("onclick", null);
++			this.set("onclick", fnOnClick);
++
++            this.on("dblclick", this._onDblClick);
++
++
++			var oParentNode;
++
++            if (oLabel) {
++            
++				if (this.get("replaceLabel")) {
++
++					this.set("label", oLabel.innerHTML);
++					
++					oParentNode = oLabel.parentNode;
++					
++					oParentNode.removeChild(oLabel);
++					
++				}
++				else {
++
++					this.on("appendTo", setLabel); 
++
++					Event.on(oLabel, "click", this._onLabelClick, null, this);
++
++					this._label = oLabel;
++					
++				}
++            
++            }
++            
++            this.on("appendTo", this._onAppendTo);
++       
++        
++
++            var oContainer = this.get("container"),
++                oElement = this.get("element"),
++                bElInDoc = Dom.inDocument(oElement);
++
++
++            if (oContainer) {
++        
++                if (oSrcElement && oSrcElement != oElement) {
++                
++                    oParentNode = oSrcElement.parentNode;
++
++                    if (oParentNode) {
++                    
++                        oParentNode.removeChild(oSrcElement);
++                    
++                    }
++
++                }
++        
++                if (Lang.isString(oContainer)) {
++        
++                    Event.onContentReady(oContainer, this.appendTo, oContainer, this);
++        
++                }
++                else {
++        
++        			this.on("init", function () {
++        			
++        				Lang.later(0, this, this.appendTo, oContainer);
++        			
++        			});
++        
++                }
++        
++            }
++            else if (!bElInDoc && oSrcElement && oSrcElement != oElement) {
++
++                oParentNode = oSrcElement.parentNode;
++        
++                if (oParentNode) {
++        
++                    this.fireEvent("beforeAppendTo", {
++                        type: "beforeAppendTo",
++                        target: oParentNode
++                    });
++            
++                    oParentNode.replaceChild(oElement, oSrcElement);
++            
++                    this.fireEvent("appendTo", {
++                        type: "appendTo",
++                        target: oParentNode
++                    });
++                
++                }
++        
++            }
++            else if (this.get("type") != "link" && bElInDoc && oSrcElement && 
++                oSrcElement == oElement) {
++        
++                this._addListenersToForm();
++        
++            }
++        
++        
++
++			this.fireEvent("init", {
++				type: "init",
++				target: this
++			});        
++        
++        },
++        
++        
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to  
++        * create the button.
++        * @param {Object} p_oAttributes Object literal specifying a set of 
++        * configuration attributes used to create the button.
++        */
++        initAttributes: function (p_oAttributes) {
++        
++            var oAttributes = p_oAttributes || {};
++        
++            YAHOO.widget.Button.superclass.initAttributes.call(this, 
++                oAttributes);
++        
++        
++            /**
++            * @attribute type
++            * @description String specifying the button's type.  Possible 
++            * values are: "push," "link," "submit," "reset," "checkbox," 
++            * "radio," "menu," and "split."
++            * @default "push"
++            * @type String
++			* @writeonce
++            */
++            this.setAttributeConfig("type", {
++        
++                value: (oAttributes.type || "push"),
++                validator: Lang.isString,
++                writeOnce: true,
++                method: this._setType
++
++            });
++        
++        
++            /**
++            * @attribute label
++            * @description String specifying the button's text label 
++            * or innerHTML.
++            * @default null
++            * @type String
++            */
++            this.setAttributeConfig("label", {
++        
++                value: oAttributes.label,
++                validator: Lang.isString,
++                method: this._setLabel
++        
++            });
++        
++        
++            /**
++            * @attribute value
++            * @description Object specifying the value for the button.
++            * @default null
++            * @type Object
++            */
++            this.setAttributeConfig("value", {
++        
++                value: oAttributes.value
++        
++            });
++        
++        
++            /**
++            * @attribute name
++            * @description String specifying the name for the button.
++            * @default null
++            * @type String
++            */
++            this.setAttributeConfig("name", {
++        
++                value: oAttributes.name,
++                validator: Lang.isString
++        
++            });
++        
++        
++            /**
++            * @attribute tabindex
++            * @description Number specifying the tabindex for the button.
++            * @default null
++            * @type Number
++            */
++            this.setAttributeConfig("tabindex", {
++        
++                value: oAttributes.tabindex,
++                validator: Lang.isNumber,
++                method: this._setTabIndex
++        
++            });
++        
++        
++            /**
++            * @attribute title
++            * @description String specifying the title for the button.
++            * @default null
++            * @type String
++            */
++            this.configureAttribute("title", {
++        
++                value: oAttributes.title,
++                validator: Lang.isString,
++                method: this._setTitle
++        
++            });
++        
++        
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the button should be disabled.  
++            * (Disabled buttons are dimmed and will not respond to user input 
++            * or fire events.  Does not apply to button's of type "link.")
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig("disabled", {
++        
++                value: (oAttributes.disabled || false),
++                validator: Lang.isBoolean,
++                method: this._setDisabled
++        
++            });
++        
++        
++            /**
++            * @attribute href
++            * @description String specifying the href for the button.  Applies
++            * only to buttons of type "link."
++            * @type String
++            */
++            this.setAttributeConfig("href", {
++        
++                value: oAttributes.href,
++                validator: Lang.isString,
++                method: this._setHref
++        
++            });
++        
++        
++            /**
++            * @attribute target
++            * @description String specifying the target for the button.  
++            * Applies only to buttons of type "link."
++            * @type String
++            */
++            this.setAttributeConfig("target", {
++        
++                value: oAttributes.target,
++                validator: Lang.isString,
++                method: this._setTarget
++        
++            });
++        
++        
++            /**
++            * @attribute checked
++            * @description Boolean indicating if the button is checked. 
++            * Applies only to buttons of type "radio" and "checkbox."
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig("checked", {
++        
++                value: (oAttributes.checked || false),
++                validator: Lang.isBoolean,
++                method: this._setChecked
++        
++            });
++        
++        
++            /**
++            * @attribute container
++            * @description HTML element reference or string specifying the id 
++            * attribute of the HTML element that the button'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 null
++			* @writeonce
++            */
++            this.setAttributeConfig("container", {
++        
++                value: oAttributes.container,
++                writeOnce: true
++        
++            });
++        
++        
++            /**
++            * @attribute srcelement
++            * @description Object reference to the HTML element (either 
++            * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code>) 
++            * used to create the button.
++            * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++            * level-one-html.html#ID-58190037">HTMLElement</a>|String
++            * @default null
++			* @writeonce
++            */
++            this.setAttributeConfig("srcelement", {
++        
++                value: oAttributes.srcelement,
++                writeOnce: true
++        
++            });
++        
++        
++            /**
++            * @attribute menu
++            * @description Object specifying the menu for the button.  
++            * The value can be one of the following:
++            * <ul>
++            * <li>Object specifying a rendered <a href="YAHOO.widget.Menu.html">
++            * YAHOO.widget.Menu</a> instance.</li>
++            * <li>Object specifying a rendered <a href="YAHOO.widget.Overlay.html">
++            * YAHOO.widget.Overlay</a> instance.</li>
++            * <li>String specifying the id attribute of the <code>&#60;div&#62;
++            * </code> element used to create the menu.  By default the menu 
++            * will be created as an instance of 
++            * <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>.  
++            * If the <a href="YAHOO.widget.Menu.html#CSS_CLASS_NAME">
++            * default CSS class name for YAHOO.widget.Menu</a> is applied to 
++            * the <code>&#60;div&#62;</code> element, it will be created as an
++            * instance of <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu
++            * </a>.</li><li>String specifying the id attribute of the 
++            * <code>&#60;select&#62;</code> element used to create the menu.
++            * </li><li>Object specifying the <code>&#60;div&#62;</code> element
++            * used to create the menu.</li>
++            * <li>Object specifying the <code>&#60;select&#62;</code> element
++            * used to create the menu.</li>
++            * <li>Array of object literals, each representing a set of 
++            * <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a> 
++            * configuration attributes.</li>
++            * <li>Array of strings representing the text labels for each menu 
++            * item in the menu.</li>
++            * </ul>
++            * @type <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>|<a 
++            * href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>|<a 
++            * href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++            * one-html.html#ID-58190037">HTMLElement</a>|String|Array
++            * @default null
++			* @writeonce
++            */
++            this.setAttributeConfig("menu", {
++        
++                value: null,
++                method: this._setMenu,
++                writeOnce: true
++            
++            });
++        
++        
++            /**
++            * @attribute lazyloadmenu
++            * @description Boolean indicating the value to set for the 
++            * <a href="YAHOO.widget.Menu.html#lazyLoad">"lazyload"</a>
++            * configuration property of the button's menu.  Setting 
++            * "lazyloadmenu" to <code>true </code> will defer rendering of 
++            * the button's menu until the first time it is made visible.  
++            * If "lazyloadmenu" is set to <code>false</code>, the button's 
++            * menu will be rendered immediately if the button is in the 
++            * document, or in response to the button's "appendTo" event if 
++            * the button is not yet in the document.  In either case, the 
++            * menu is rendered into the button's parent HTML element.  
++            * <em>This attribute does not apply if a 
++            * <a href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a> or 
++            * <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a> 
++            * instance is passed as the value of the button's "menu" 
++            * configuration attribute. <a href="YAHOO.widget.Menu.html">
++            * YAHOO.widget.Menu</a> or <a href="YAHOO.widget.Overlay.html">
++            * YAHOO.widget.Overlay</a> instances should be rendered before 
++            * being set as the value for the "menu" configuration 
++            * attribute.</em>
++            * @default true
++            * @type Boolean
++			* @writeonce
++            */
++            this.setAttributeConfig("lazyloadmenu", {
++        
++                value: (oAttributes.lazyloadmenu === false ? false : true),
++                validator: Lang.isBoolean,
++                writeOnce: true
++        
++            });
++
++
++            /**
++            * @attribute menuclassname
++            * @description String representing the CSS class name to be 
++            * applied to the root element of the button's menu.
++            * @type String
++            * @default "yui-button-menu"
++			* @writeonce
++            */
++            this.setAttributeConfig("menuclassname", {
++        
++                value: (oAttributes.menuclassname || (this.CLASS_NAME_PREFIX + "button-menu")),
++                validator: Lang.isString,
++                method: this._setMenuClassName,
++                writeOnce: true
++        
++            });        
++
++
++			/**
++			* @attribute menuminscrollheight
++			* @description Number defining the minimum threshold for the "menumaxheight" 
++			* configuration attribute.  When set this attribute is automatically applied 
++			* to all submenus.
++			* @default 90
++			* @type Number
++			*/
++            this.setAttributeConfig("menuminscrollheight", {
++        
++                value: (oAttributes.menuminscrollheight || 90),
++                validator: Lang.isNumber
++        
++            });
++
++
++            /**
++            * @attribute menumaxheight
++			* @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.
++            * @type Number
++            * @default 0
++            */
++            this.setAttributeConfig("menumaxheight", {
++        
++                value: (oAttributes.menumaxheight || 0),
++                validator: Lang.isNumber
++        
++            });
++
++
++            /**
++            * @attribute menualignment
++			* @description Array defining how the Button's Menu is aligned to the Button.  
++            * The default value of ["tl", "bl"] aligns the Menu's top left corner to the Button's 
++            * bottom left corner.
++            * @type Array
++            * @default ["tl", "bl"]
++            */
++            this.setAttributeConfig("menualignment", {
++        
++                value: (oAttributes.menualignment || ["tl", "bl"]),
++                validator: Lang.isArray
++        
++            });
++            
++
++            /**
++            * @attribute selectedMenuItem
++            * @description Object representing the item in the button's menu 
++            * that is currently selected.
++            * @type YAHOO.widget.MenuItem
++            * @default null
++            */
++            this.setAttributeConfig("selectedMenuItem", {
++        
++                value: null
++        
++            });
++        
++        
++            /**
++            * @attribute onclick
++            * @description Object literal representing the code to be executed  
++            * when the button 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
++            */
++            this.setAttributeConfig("onclick", {
++        
++                value: oAttributes.onclick,
++                method: this._setOnClick
++            
++            });
++
++
++            /**
++            * @attribute focusmenu
++            * @description Boolean indicating whether or not the button's menu 
++            * should be focused when it is made visible.
++            * @type Boolean
++            * @default true
++            */
++            this.setAttributeConfig("focusmenu", {
++        
++                value: (oAttributes.focusmenu === false ? false : true),
++                validator: Lang.isBoolean
++        
++            });
++
++
++            /**
++            * @attribute replaceLabel
++            * @description Boolean indicating whether or not the text of the 
++			* button's <code>&#60;label&#62;</code> element should be used as
++			* the source for the button's label configuration attribute and 
++			* removed from the DOM.
++            * @type Boolean
++            * @default false
++            */
++            this.setAttributeConfig("replaceLabel", {
++        
++                value: false,
++                validator: Lang.isBoolean,
++                writeOnce: true
++        
++            });
++
++        },
++        
++        
++        /**
++        * @method focus
++        * @description Causes the button to receive the focus and fires the 
++        * button's "focus" event.
++        */
++        focus: function () {
++        
++            if (!this.get("disabled")) {
++        
++                this._button.focus();
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method blur
++        * @description Causes the button to lose focus and fires the button's
++        * "blur" event.
++        */
++        blur: function () {
++        
++            if (!this.get("disabled")) {
++        
++                this._button.blur();
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method hasFocus
++        * @description Returns a boolean indicating whether or not the button 
++        * has focus.
++        * @return {Boolean}
++        */
++        hasFocus: function () {
++        
++            return (m_oFocusedButton == this);
++        
++        },
++        
++        
++        /**
++        * @method isActive
++        * @description Returns a boolean indicating whether or not the button 
++        * is active.
++        * @return {Boolean}
++        */
++        isActive: function () {
++        
++            return this.hasClass(this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME + "-active");
++        
++        },
++        
++        
++        /**
++        * @method getMenu
++        * @description Returns a reference to the button's menu.
++        * @return {<a href="YAHOO.widget.Overlay.html">
++        * YAHOO.widget.Overlay</a>|<a 
++        * href="YAHOO.widget.Menu.html">YAHOO.widget.Menu</a>}
++        */
++        getMenu: function () {
++        
++            return this._menu;
++        
++        },
++        
++        
++        /**
++        * @method getForm
++        * @description Returns a reference to the button's parent form.
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-
++        * 20000929/level-one-html.html#ID-40002357">HTMLFormElement</a>}
++        */
++        getForm: function () {
++        
++        	var oButton = this._button,
++        		oForm;
++        
++            if (oButton) {
++            
++            	oForm = oButton.form;
++            
++            }
++        
++        	return oForm;
++        
++        },
++        
++        
++        /** 
++        * @method getHiddenFields
++        * @description Returns an <code>&#60;input&#62;</code> element or 
++        * array of form elements used to represent the button when its parent 
++        * form is submitted.  
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|Array}
++        */
++        getHiddenFields: function () {
++        
++            return this._hiddenFields;
++        
++        },
++        
++        
++        /**
++        * @method destroy
++        * @description Removes the button's element from its parent element and 
++        * removes all event handlers.
++        */
++        destroy: function () {
++        
++        
++            var oElement = this.get("element"),
++                oMenu = this._menu,
++				oLabel = this._label,
++                oParentNode,
++                aButtons;
++        
++            if (oMenu) {
++        
++
++                if (m_oOverlayManager && m_oOverlayManager.find(oMenu)) {
++
++                    m_oOverlayManager.remove(oMenu);
++
++                }
++        
++                oMenu.destroy();
++        
++            }
++        
++        
++            Event.purgeElement(oElement);
++            Event.purgeElement(this._button);
++            Event.removeListener(document, "mouseup", this._onDocumentMouseUp);
++            Event.removeListener(document, "keyup", this._onDocumentKeyUp);
++            Event.removeListener(document, "mousedown", this._onDocumentMouseDown);
++
++
++			if (oLabel) {
++
++            	Event.removeListener(oLabel, "click", this._onLabelClick);
++				
++				oParentNode = oLabel.parentNode;
++				oParentNode.removeChild(oLabel);
++				
++			}
++        
++        
++            var oForm = this.getForm();
++            
++            if (oForm) {
++        
++                Event.removeListener(oForm, "reset", this._onFormReset);
++                Event.removeListener(oForm, "submit", this._onFormSubmit);
++        
++            }
++
++
++            this.unsubscribeAll();
++
++			oParentNode = oElement.parentNode;
++
++            if (oParentNode) {
++
++                oParentNode.removeChild(oElement);
++            
++            }
++        
++        
++            delete m_oButtons[this.get("id")];
++
++			var sClass = (this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME);
++
++            aButtons = Dom.getElementsByClassName(sClass, 
++                                this.NODE_NAME, oForm); 
++
++            if (Lang.isArray(aButtons) && aButtons.length === 0) {
++
++                Event.removeListener(oForm, "keypress", 
++                        YAHOO.widget.Button.onFormKeyPress);
++
++            }
++
++        
++        },
++        
++        
++        fireEvent: function (p_sType , p_aArgs) {
++        
++			var sType = arguments[0];
++		
++			//  Disabled buttons should not respond to DOM events
++		
++			if (this.DOM_EVENTS[sType] && this.get("disabled")) {
++		
++				return false;
++		
++			}
++		
++			return YAHOO.widget.Button.superclass.fireEvent.apply(this, arguments);
++        
++        },
++        
++        
++        /**
++        * @method toString
++        * @description Returns a string representing the button.
++        * @return {String}
++        */
++        toString: function () {
++        
++            return ("Button " + this.get("id"));
++        
++        }
++    
++    });
++    
++    
++    /**
++    * @method YAHOO.widget.Button.onFormKeyPress
++    * @description "keypress" event handler for the button's form.
++    * @param {Event} p_oEvent Object representing the DOM event object passed 
++    * back by the event utility (YAHOO.util.Event).
++    */
++    YAHOO.widget.Button.onFormKeyPress = function (p_oEvent) {
++    
++        var oTarget = Event.getTarget(p_oEvent),
++            nCharCode = Event.getCharCode(p_oEvent),
++            sNodeName = oTarget.nodeName && oTarget.nodeName.toUpperCase(),
++            sType = oTarget.type,
++    
++            /*
++                Boolean indicating if the form contains any enabled or 
++                disabled YUI submit buttons
++            */
++    
++            bFormContainsYUIButtons = false,
++    
++            oButton,
++    
++            oYUISubmitButton,   // The form's first, enabled YUI submit button
++    
++            /*
++                 The form's first, enabled HTML submit button that precedes any 
++                 YUI submit button
++            */
++    
++            oPrecedingSubmitButton,
++            
++            oEvent; 
++    
++    
++        function isSubmitButton(p_oElement) {
++    
++            var sId,
++                oSrcElement;
++    
++            switch (p_oElement.nodeName.toUpperCase()) {
++    
++            case "INPUT":
++            case "BUTTON":
++            
++                if (p_oElement.type == "submit" && !p_oElement.disabled) {
++                    
++                    if (!bFormContainsYUIButtons && !oPrecedingSubmitButton) {
++
++                        oPrecedingSubmitButton = p_oElement;
++
++                    }
++                
++                }
++
++                break;
++            
++
++            default:
++            
++                sId = p_oElement.id;
++    
++                if (sId) {
++    
++                    oButton = m_oButtons[sId];
++        
++                    if (oButton) {
++
++                        bFormContainsYUIButtons = true;
++        
++                        if (!oButton.get("disabled")) {
++
++                            oSrcElement = oButton.get("srcelement");
++    
++                            if (!oYUISubmitButton && (oButton.get("type") == "submit" || 
++                                (oSrcElement && oSrcElement.type == "submit"))) {
++
++                                oYUISubmitButton = oButton;
++                            
++                            }
++                        
++                        }
++                        
++                    }
++                
++                }
++
++                break;
++    
++            }
++    
++        }
++    
++    
++        if (nCharCode == 13 && ((sNodeName == "INPUT" && (sType == "text" || 
++            sType == "password" || sType == "checkbox" || sType == "radio" || 
++            sType == "file")) || sNodeName == "SELECT")) {
++    
++            Dom.getElementsBy(isSubmitButton, "*", this);
++    
++    
++            if (oPrecedingSubmitButton) {
++    
++                /*
++                     Need to set focus to the first enabled submit button
++                     to make sure that IE includes its name and value 
++                     in the form's data set.
++                */
++    
++                oPrecedingSubmitButton.focus();
++            
++            }
++            else if (!oPrecedingSubmitButton && oYUISubmitButton) {
++    
++				/*
++					Need to call "preventDefault" to ensure that the form doesn't end up getting
++					submitted twice.
++				*/
++    
++    			Event.preventDefault(p_oEvent);
++
++
++				if (UA.ie) {
++				
++					oYUISubmitButton.get("element").fireEvent("onclick");
++				
++				}
++				else {
++
++					oEvent = document.createEvent("HTMLEvents");
++					oEvent.initEvent("click", true, true);
++			
++
++					if (UA.gecko < 1.9) {
++					
++						oYUISubmitButton.fireEvent("click", oEvent);
++					
++					}
++					else {
++
++						oYUISubmitButton.get("element").dispatchEvent(oEvent);
++					
++					}
++  
++                }
++
++            }
++            
++        }
++    
++    };
++    
++    
++    /**
++    * @method YAHOO.widget.Button.addHiddenFieldsToForm
++    * @description Searches the specified form and adds hidden fields for  
++    * instances of YAHOO.widget.Button that are of type "radio," "checkbox," 
++    * "menu," and "split."
++    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
++    * one-html.html#ID-40002357">HTMLFormElement</a>} p_oForm Object reference 
++    * for the form to search.
++    */
++    YAHOO.widget.Button.addHiddenFieldsToForm = function (p_oForm) {
++    
++        var proto = YAHOO.widget.Button.prototype,
++			aButtons = Dom.getElementsByClassName(
++							(proto.CLASS_NAME_PREFIX + proto.CSS_CLASS_NAME), 
++                            "*", 
++                            p_oForm),
++    
++            nButtons = aButtons.length,
++            oButton,
++            sId,
++            i;
++    
++        if (nButtons > 0) {
++    
++    
++            for (i = 0; i < nButtons; i++) {
++    
++                sId = aButtons[i].id;
++    
++                if (sId) {
++    
++                    oButton = m_oButtons[sId];
++        
++                    if (oButton) {
++           
++                        oButton.createHiddenFields();
++                        
++                    }
++                
++                }
++            
++            }
++    
++        }
++    
++    };
++    
++
++    /**
++    * @method YAHOO.widget.Button.getButton
++    * @description Returns a button with the specified id.
++    * @param {String} p_sId String specifying the id of the root node of the 
++    * HTML element representing the button to be retrieved.
++    * @return {YAHOO.widget.Button}
++    */
++    YAHOO.widget.Button.getButton = function (p_sId) {
++
++		return m_oButtons[p_sId];
++
++    };
++    
++    
++    // Events
++    
++    
++    /**
++    * @event focus
++    * @description Fires when the menu item receives focus.  Passes back a  
++    * single object representing the original DOM event object passed back by 
++    * the event utility (YAHOO.util.Event) when the event was fired.  See 
++    * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> 
++    * for more information on listening for this event.
++    * @type YAHOO.util.CustomEvent
++    */
++    
++    
++    /**
++    * @event blur
++    * @description Fires when the menu item loses the input focus.  Passes back  
++    * a single object representing the original DOM event object passed back by 
++    * the event utility (YAHOO.util.Event) when the event was fired.  See 
++    * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for  
++    * more information on listening for this event.
++    * @type YAHOO.util.CustomEvent
++    */
++    
++    
++    /**
++    * @event option
++    * @description Fires when the user invokes the button's option.  Passes 
++    * back a single object representing the original DOM event (either 
++    * "mousedown" or "keydown") that caused the "option" event to fire.  See 
++    * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> 
++    * for more information on listening for this event.
++    * @type YAHOO.util.CustomEvent
++    */
++
++})();
++(function () {
++
++    // Shorthard for utilities
++    
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        Button = YAHOO.widget.Button,  
++    
++        // Private collection of radio buttons
++    
++        m_oButtons = {};
++
++
++
++    /**
++    * The ButtonGroup class creates a set of buttons that are mutually 
++    * exclusive; checking one button in the set will uncheck all others in the 
++    * button group.
++    * @param {String} p_oElement String specifying the id attribute of the 
++    * <code>&#60;div&#62;</code> element of the button group.
++    * @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 button group.
++    * @param {Object} p_oElement Object literal specifying a set of 
++    * configuration attributes used to create the button group.
++    * @param {Object} p_oAttributes Optional. Object literal specifying a set 
++    * of configuration attributes used to create the button group.
++    * @namespace YAHOO.widget
++    * @class ButtonGroup
++    * @constructor
++    * @extends YAHOO.util.Element
++    */
++    YAHOO.widget.ButtonGroup = function (p_oElement, p_oAttributes) {
++    
++        var fnSuperClass = YAHOO.widget.ButtonGroup.superclass.constructor,
++            sNodeName,
++            oElement,
++            sId;
++    
++        if (arguments.length == 1 && !Lang.isString(p_oElement) && 
++            !p_oElement.nodeName) {
++    
++            if (!p_oElement.id) {
++    
++                sId = Dom.generateId();
++    
++                p_oElement.id = sId;
++    
++    
++            }
++    
++    
++    
++            fnSuperClass.call(this, (this._createGroupElement()), p_oElement);
++    
++        }
++        else if (Lang.isString(p_oElement)) {
++    
++            oElement = Dom.get(p_oElement);
++    
++            if (oElement) {
++            
++                if (oElement.nodeName.toUpperCase() == this.NODE_NAME) {
++    
++            
++                    fnSuperClass.call(this, oElement, p_oAttributes);
++    
++                }
++    
++            }
++        
++        }
++        else {
++    
++            sNodeName = p_oElement.nodeName.toUpperCase();
++    
++            if (sNodeName && sNodeName == this.NODE_NAME) {
++        
++                if (!p_oElement.id) {
++        
++                    p_oElement.id = Dom.generateId();
++        
++        
++                }
++        
++        
++                fnSuperClass.call(this, p_oElement, p_oAttributes);
++    
++            }
++    
++        }
++    
++    };
++    
++    
++    YAHOO.extend(YAHOO.widget.ButtonGroup, YAHOO.util.Element, {
++    
++    
++        // Protected properties
++        
++        
++        /** 
++        * @property _buttons
++        * @description Array of buttons in the button group.
++        * @default null
++        * @protected
++        * @type Array
++        */
++        _buttons: null,
++        
++        
++        
++        // Constants
++        
++        
++        /**
++        * @property NODE_NAME
++        * @description The name of the tag to be used for the button 
++        * group's element. 
++        * @default "DIV"
++        * @final
++        * @type String
++        */
++        NODE_NAME: "DIV",
++
++
++        /**
++        * @property CLASS_NAME_PREFIX
++        * @description Prefix used for all class names applied to a ButtonGroup.
++        * @default "yui-"
++        * @final
++        * @type String
++        */
++        CLASS_NAME_PREFIX: "yui-",
++        
++        
++        /**
++        * @property CSS_CLASS_NAME
++        * @description String representing the CSS class(es) to be applied  
++        * to the button group's element.
++        * @default "buttongroup"
++        * @final
++        * @type String
++        */
++        CSS_CLASS_NAME: "buttongroup",
++    
++    
++    
++        // Protected methods
++        
++        
++        /**
++        * @method _createGroupElement
++        * @description Creates the button group's element.
++        * @protected
++        * @return {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-22445964">HTMLDivElement</a>}
++        */
++        _createGroupElement: function () {
++        
++            var oElement = document.createElement(this.NODE_NAME);
++        
++            return oElement;
++        
++        },
++        
++        
++        
++        // Protected attribute setter methods
++        
++        
++        /**
++        * @method _setDisabled
++        * @description Sets the value of the button groups's 
++        * "disabled" attribute.
++        * @protected
++        * @param {Boolean} p_bDisabled Boolean indicating the value for
++        * the button group's "disabled" attribute.
++        */
++        _setDisabled: function (p_bDisabled) {
++        
++            var nButtons = this.getCount(),
++                i;
++        
++            if (nButtons > 0) {
++        
++                i = nButtons - 1;
++                
++                do {
++        
++                    this._buttons[i].set("disabled", p_bDisabled);
++                
++                }
++                while (i--);
++        
++            }
++        
++        },
++        
++        
++        
++        // Protected event handlers
++        
++        
++        /**
++        * @method _onKeyDown
++        * @description "keydown" event handler for the button group.
++        * @protected
++        * @param {Event} p_oEvent Object representing the DOM event object  
++        * passed back by the event utility (YAHOO.util.Event).
++        */
++        _onKeyDown: function (p_oEvent) {
++        
++            var oTarget = Event.getTarget(p_oEvent),
++                nCharCode = Event.getCharCode(p_oEvent),
++                sId = oTarget.parentNode.parentNode.id,
++                oButton = m_oButtons[sId],
++                nIndex = -1;
++        
++        
++            if (nCharCode == 37 || nCharCode == 38) {
++        
++                nIndex = (oButton.index === 0) ? 
++                            (this._buttons.length - 1) : (oButton.index - 1);
++            
++            }
++            else if (nCharCode == 39 || nCharCode == 40) {
++        
++                nIndex = (oButton.index === (this._buttons.length - 1)) ? 
++                            0 : (oButton.index + 1);
++        
++            }
++        
++        
++            if (nIndex > -1) {
++        
++                this.check(nIndex);
++                this.getButton(nIndex).focus();
++            
++            }        
++        
++        },
++        
++        
++        /**
++        * @method _onAppendTo
++        * @description "appendTo" event handler for the button group.
++        * @protected
++        * @param {Event} p_oEvent Object representing the event that was fired.
++        */
++        _onAppendTo: function (p_oEvent) {
++        
++            var aButtons = this._buttons,
++                nButtons = aButtons.length,
++                i;
++        
++            for (i = 0; i < nButtons; i++) {
++        
++                aButtons[i].appendTo(this.get("element"));
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method _onButtonCheckedChange
++        * @description "checkedChange" event handler for each button in the 
++        * button group.
++        * @protected
++        * @param {Event} p_oEvent Object representing the event that was fired.
++        * @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}  
++        * p_oButton Object representing the button that fired the event.
++        */
++        _onButtonCheckedChange: function (p_oEvent, p_oButton) {
++        
++            var bChecked = p_oEvent.newValue,
++                oCheckedButton = this.get("checkedButton");
++        
++            if (bChecked && oCheckedButton != p_oButton) {
++        
++                if (oCheckedButton) {
++        
++                    oCheckedButton.set("checked", false, true);
++        
++                }
++        
++                this.set("checkedButton", p_oButton);
++                this.set("value", p_oButton.get("value"));
++        
++            }
++            else if (oCheckedButton && !oCheckedButton.set("checked")) {
++        
++                oCheckedButton.set("checked", true, true);
++        
++            }
++           
++        },
++        
++        
++        
++        // Public methods
++        
++        
++        /**
++        * @method init
++        * @description The ButtonGroup class's initialization method.
++        * @param {String} p_oElement String specifying the id attribute of the 
++        * <code>&#60;div&#62;</code> element of the button group.
++        * @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 button group.
++        * @param {Object} p_oElement Object literal specifying a set of  
++        * configuration attributes used to create the button group.
++        * @param {Object} p_oAttributes Optional. Object literal specifying a
++        * set of configuration attributes used to create the button group.
++        */
++        init: function (p_oElement, p_oAttributes) {
++        
++            this._buttons = [];
++        
++            YAHOO.widget.ButtonGroup.superclass.init.call(this, p_oElement, 
++                    p_oAttributes);
++        
++            this.addClass(this.CLASS_NAME_PREFIX + this.CSS_CLASS_NAME);
++
++        
++            var sClass = (YAHOO.widget.Button.prototype.CLASS_NAME_PREFIX + "radio-button"),
++				aButtons = this.getElementsByClassName(sClass);
++
++        
++        
++            if (aButtons.length > 0) {
++        
++        
++                this.addButtons(aButtons);
++        
++            }
++        
++        
++        
++            function isRadioButton(p_oElement) {
++        
++                return (p_oElement.type == "radio");
++        
++            }
++        
++            aButtons = 
++                Dom.getElementsBy(isRadioButton, "input", this.get("element"));
++        
++        
++            if (aButtons.length > 0) {
++        
++        
++                this.addButtons(aButtons);
++        
++            }
++        
++            this.on("keydown", this._onKeyDown);
++            this.on("appendTo", this._onAppendTo);
++        
++
++            var oContainer = this.get("container");
++
++            if (oContainer) {
++        
++                if (Lang.isString(oContainer)) {
++        
++                    Event.onContentReady(oContainer, function () {
++        
++                        this.appendTo(oContainer);            
++                    
++                    }, null, this);
++        
++                }
++                else {
++        
++                    this.appendTo(oContainer);
++        
++                }
++        
++            }
++        
++        
++        
++        },
++        
++        
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to  
++        * create the button group.
++        * @param {Object} p_oAttributes Object literal specifying a set of 
++        * configuration attributes used to create the button group.
++        */
++        initAttributes: function (p_oAttributes) {
++        
++            var oAttributes = p_oAttributes || {};
++        
++            YAHOO.widget.ButtonGroup.superclass.initAttributes.call(
++                this, oAttributes);
++        
++        
++            /**
++            * @attribute name
++            * @description String specifying the name for the button group.  
++            * This name will be applied to each button in the button group.
++            * @default null
++            * @type String
++            */
++            this.setAttributeConfig("name", {
++        
++                value: oAttributes.name,
++                validator: Lang.isString
++        
++            });
++        
++        
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the button group should be 
++            * disabled.  Disabling the button group will disable each button 
++            * in the button group.  Disabled buttons are dimmed and will not 
++            * respond to user input or fire events.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig("disabled", {
++        
++                value: (oAttributes.disabled || false),
++                validator: Lang.isBoolean,
++                method: this._setDisabled
++        
++            });
++        
++        
++            /**
++            * @attribute value
++            * @description Object specifying the value for the button group.
++            * @default null
++            * @type Object
++            */
++            this.setAttributeConfig("value", {
++        
++                value: oAttributes.value
++        
++            });
++        
++        
++            /**
++            * @attribute container
++            * @description HTML element reference or string specifying the id 
++            * attribute of the HTML element that the button group'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 null
++			* @writeonce
++            */
++            this.setAttributeConfig("container", {
++        
++                value: oAttributes.container,
++                writeOnce: true
++        
++            });
++        
++        
++            /**
++            * @attribute checkedButton
++            * @description Reference for the button in the button group that 
++            * is checked.
++            * @type {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}
++            * @default null
++            */
++            this.setAttributeConfig("checkedButton", {
++        
++                value: null
++        
++            });
++        
++        },
++        
++        
++        /**
++        * @method addButton
++        * @description Adds the button to the button group.
++        * @param {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}  
++        * p_oButton Object reference for the <a href="YAHOO.widget.Button.html">
++        * YAHOO.widget.Button</a> instance to be added to the button group.
++        * @param {String} p_oButton String specifying the id attribute of the 
++        * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code> element 
++        * to be used to create the button to be added to the button group.
++        * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-6043025">HTMLInputElement</a>|<a href="
++        * http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#
++        * ID-33759296">HTMLElement</a>} p_oButton Object reference for the 
++        * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code> element 
++        * to be used to create the button to be added to the button group.
++        * @param {Object} p_oButton Object literal specifying a set of 
++        * <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a> 
++        * configuration attributes used to configure the button to be added to 
++        * the button group.
++        * @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>} 
++        */
++        addButton: function (p_oButton) {
++        
++            var oButton,
++                oButtonElement,
++                oGroupElement,
++                nIndex,
++                sButtonName,
++                sGroupName;
++        
++        
++            if (p_oButton instanceof Button && 
++                p_oButton.get("type") == "radio") {
++        
++                oButton = p_oButton;
++        
++            }
++            else if (!Lang.isString(p_oButton) && !p_oButton.nodeName) {
++        
++                p_oButton.type = "radio";
++        
++                oButton = new Button(p_oButton);
++
++            }
++            else {
++        
++                oButton = new Button(p_oButton, { type: "radio" });
++        
++            }
++        
++        
++            if (oButton) {
++        
++                nIndex = this._buttons.length;
++                sButtonName = oButton.get("name");
++                sGroupName = this.get("name");
++        
++                oButton.index = nIndex;
++        
++                this._buttons[nIndex] = oButton;
++                m_oButtons[oButton.get("id")] = oButton;
++        
++        
++                if (sButtonName != sGroupName) {
++        
++                    oButton.set("name", sGroupName);
++                
++                }
++        
++        
++                if (this.get("disabled")) {
++        
++                    oButton.set("disabled", true);
++        
++                }
++        
++        
++                if (oButton.get("checked")) {
++        
++                    this.set("checkedButton", oButton);
++        
++                }
++
++                
++                oButtonElement = oButton.get("element");
++                oGroupElement = this.get("element");
++                
++                if (oButtonElement.parentNode != oGroupElement) {
++                
++                    oGroupElement.appendChild(oButtonElement);
++                
++                }
++        
++                
++                oButton.on("checkedChange", 
++                    this._onButtonCheckedChange, oButton, this);
++        
++        
++            }
++
++			return oButton;
++        
++        },
++        
++        
++        /**
++        * @method addButtons
++        * @description Adds the array of buttons to the button group.
++        * @param {Array} p_aButtons Array of <a href="YAHOO.widget.Button.html">
++        * YAHOO.widget.Button</a> instances to be added 
++        * to the button group.
++        * @param {Array} p_aButtons Array of strings specifying the id 
++        * attribute of the <code>&#60;input&#62;</code> or <code>&#60;span&#62;
++        * </code> elements to be used to create the buttons to be added to the 
++        * button group.
++        * @param {Array} p_aButtons Array of object references for the 
++        * <code>&#60;input&#62;</code> or <code>&#60;span&#62;</code> elements 
++        * to be used to create the buttons to be added to the button group.
++        * @param {Array} p_aButtons Array of object literals, each containing
++        * a set of <a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>  
++        * configuration attributes used to configure each button to be added 
++        * to the button group.
++        * @return {Array}
++        */
++        addButtons: function (p_aButtons) {
++    
++            var nButtons,
++                oButton,
++                aButtons,
++                i;
++        
++            if (Lang.isArray(p_aButtons)) {
++            
++                nButtons = p_aButtons.length;
++                aButtons = [];
++        
++                if (nButtons > 0) {
++        
++                    for (i = 0; i < nButtons; i++) {
++        
++                        oButton = this.addButton(p_aButtons[i]);
++                        
++                        if (oButton) {
++        
++                            aButtons[aButtons.length] = oButton;
++        
++                        }
++                    
++                    }
++                
++                }
++        
++            }
++
++			return aButtons;
++        
++        },
++        
++        
++        /**
++        * @method removeButton
++        * @description Removes the button at the specified index from the 
++        * button group.
++        * @param {Number} p_nIndex Number specifying the index of the button 
++        * to be removed from the button group.
++        */
++        removeButton: function (p_nIndex) {
++        
++            var oButton = this.getButton(p_nIndex),
++                nButtons,
++                i;
++            
++            if (oButton) {
++        
++        
++                this._buttons.splice(p_nIndex, 1);
++                delete m_oButtons[oButton.get("id")];
++        
++                oButton.removeListener("checkedChange", 
++                    this._onButtonCheckedChange);
++
++                oButton.destroy();
++        
++        
++                nButtons = this._buttons.length;
++                
++                if (nButtons > 0) {
++        
++                    i = this._buttons.length - 1;
++                    
++                    do {
++        
++                        this._buttons[i].index = i;
++        
++                    }
++                    while (i--);
++                
++                }
++        
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method getButton
++        * @description Returns the button at the specified index.
++        * @param {Number} p_nIndex The index of the button to retrieve from the 
++        * button group.
++        * @return {<a href="YAHOO.widget.Button.html">YAHOO.widget.Button</a>}
++        */
++        getButton: function (p_nIndex) {
++        
++            return this._buttons[p_nIndex];
++        
++        },
++        
++        
++        /**
++        * @method getButtons
++        * @description Returns an array of the buttons in the button group.
++        * @return {Array}
++        */
++        getButtons: function () {
++        
++            return this._buttons;
++        
++        },
++        
++        
++        /**
++        * @method getCount
++        * @description Returns the number of buttons in the button group.
++        * @return {Number}
++        */
++        getCount: function () {
++        
++            return this._buttons.length;
++        
++        },
++        
++        
++        /**
++        * @method focus
++        * @description Sets focus to the button at the specified index.
++        * @param {Number} p_nIndex Number indicating the index of the button 
++        * to focus. 
++        */
++        focus: function (p_nIndex) {
++        
++            var oButton,
++                nButtons,
++                i;
++        
++            if (Lang.isNumber(p_nIndex)) {
++        
++                oButton = this._buttons[p_nIndex];
++                
++                if (oButton) {
++        
++                    oButton.focus();
++        
++                }
++            
++            }
++            else {
++        
++                nButtons = this.getCount();
++        
++                for (i = 0; i < nButtons; i++) {
++        
++                    oButton = this._buttons[i];
++        
++                    if (!oButton.get("disabled")) {
++        
++                        oButton.focus();
++                        break;
++        
++                    }
++        
++                }
++        
++            }
++        
++        },
++        
++        
++        /**
++        * @method check
++        * @description Checks the button at the specified index.
++        * @param {Number} p_nIndex Number indicating the index of the button 
++        * to check. 
++        */
++        check: function (p_nIndex) {
++        
++            var oButton = this.getButton(p_nIndex);
++            
++            if (oButton) {
++        
++                oButton.set("checked", true);
++            
++            }
++        
++        },
++        
++        
++        /**
++        * @method destroy
++        * @description Removes the button group's element from its parent 
++        * element and removes all event handlers.
++        */
++        destroy: function () {
++        
++        
++            var nButtons = this._buttons.length,
++                oElement = this.get("element"),
++                oParentNode = oElement.parentNode,
++                i;
++            
++            if (nButtons > 0) {
++        
++                i = this._buttons.length - 1;
++        
++                do {
++        
++                    this._buttons[i].destroy();
++        
++                }
++                while (i--);
++            
++            }
++        
++        
++            Event.purgeElement(oElement);
++            
++        
++            oParentNode.removeChild(oElement);
++        
++        },
++        
++        
++        /**
++        * @method toString
++        * @description Returns a string representing the button group.
++        * @return {String}
++        */
++        toString: function () {
++        
++            return ("ButtonGroup " + this.get("id"));
++        
++        }
++    
++    });
++
++})();
++YAHOO.register("button", YAHOO.widget.Button, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/calendar/assets/calendar-core.css b/pylons_app/public/js/yui/calendar/assets/calendar-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/assets/calendar-core.css
+@@ -0,0 +1,132 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * CORE
++ *
++ * This is the set of CSS rules required by Calendar to drive core functionality and structure.
++ * Changes to these rules may result in the Calendar not functioning or rendering correctly.
++ *
++ * They should not be modified for skinning.
++ **/
++ 
++/* CALENDAR BOUNDING BOX */
++.yui-calcontainer {
++	position:relative;
++	float:left;
++	_overflow:hidden; /* IE6 only, to clip iframe shim */
++}
++
++/* IFRAME SHIM */
++.yui-calcontainer iframe {
++	position:absolute;
++	border:none;
++	margin:0;padding:0;
++	z-index:0;
++	width:100%;
++	height:100%;
++	left:0px;
++	top:0px;
++}
++
++/* IFRAME SHIM IE6 only */
++.yui-calcontainer iframe.fixedsize {
++	width:50em;
++	height:50em;
++	top:-1px;
++	left:-1px;
++}
++
++/* BOUNDING BOX FOR EACH CALENDAR GROUP PAGE */
++.yui-calcontainer.multi .groupcal {
++	z-index:1;
++	float:left;
++	position:relative;
++}
++
++/* TITLE BAR */
++.yui-calcontainer .title {
++	position:relative;
++	z-index:1;
++}
++
++/* CLOSE ICON CONTAINER */
++.yui-calcontainer .close-icon {
++	position:absolute;
++	z-index:1;
++	text-indent:-10000em;
++	overflow:hidden;
++}
++
++/* CALENDAR TABLE */
++.yui-calendar {
++	position:relative;
++}
++
++/* NAVBAR LEFT ARROW CONTAINER */
++.yui-calendar .calnavleft {
++	position:absolute;
++	z-index:1;
++	text-indent:-10000em;
++	overflow:hidden;
++}
++
++/* NAVBAR RIGHT ARROW CONTAINER */
++.yui-calendar .calnavright {
++	position:absolute;
++	z-index:1;
++	text-indent:-10000em;
++	overflow:hidden;
++}
++
++/* NAVBAR TEXT CONTAINER */
++.yui-calendar .calheader {
++	position:relative;
++	width:100%;
++	text-align:center;
++}
++
++/* CalendarNavigator */
++.yui-calcontainer .yui-cal-nav-mask {
++	position:absolute;
++	z-index:2;
++	margin:0;
++	padding:0;
++	width:100%;
++	height:100%;
++	_width:0;    /* IE6, IE7 quirks - width/height set programmatically to match container */
++	_height:0;
++	left:0;
++	top:0;
++	display:none;
++}
++
++/* NAVIGATOR BOUNDING BOX */
++.yui-calcontainer .yui-cal-nav {
++	position:absolute;
++	z-index:3;
++	top:0;
++	display:none;
++}
++
++/* NAVIGATOR BUTTONS (based on button-core.css) */
++.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn  {
++	display: -moz-inline-box; /* Gecko */
++	display: inline-block; /* IE, Opera and Safari */
++}
++
++.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button {
++	display: block;
++	*display: inline-block; /* IE */
++	*overflow: visible; /* Remove superfluous padding for IE */
++	border: none;
++	background-color: transparent;
++	cursor: pointer;
++}
++
++/* Specific changes for calendar running under fonts/reset */
++.yui-calendar .calbody a:hover {background:inherit;}
++p#clear {clear:left; padding-top:10px;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/calendar/assets/calendar.css b/pylons_app/public/js/yui/calendar/assets/calendar.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/assets/calendar.css
+@@ -0,0 +1,320 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-calcontainer {
++	position:relative;
++	padding:5px;
++	background-color:#F7F9FB;
++	border:1px solid #7B9EBD;
++	float:left;
++	_overflow:hidden; /* IE6 only, to clip iframe shim */
++}
++
++.yui-calcontainer iframe {
++	position:absolute;
++	border:none;
++	margin:0;padding:0;
++	z-index:0;
++	width:100%;
++	height:100%;
++	left:0px;
++	top:0px;
++}
++
++/* IE6 only */
++.yui-calcontainer iframe.fixedsize {
++	width:50em;
++	height:50em;
++	top:-1px;
++	left:-1px;
++}
++
++.yui-calcontainer.multi {
++	padding:0;
++}
++
++.yui-calcontainer.multi .groupcal {
++	padding:5px;
++	background-color:transparent;
++	z-index:1;
++	float:left;
++	position:relative;
++	border:none;
++}
++
++.yui-calcontainer .title {
++	font:100% sans-serif;
++	color:#000;
++	font-weight:bold;
++	margin-bottom:5px;
++	height:25px;
++	position:absolute;
++	top:3px;left:5px;
++	z-index:1;
++}
++
++.yui-calcontainer .close-icon {
++	position:absolute;
++	overflow:hidden;
++	text-indent:-10000em;
++	right:3px;
++	top:3px;
++	border:none;
++	z-index:1;
++}
++
++.yui-calcontainer .calclose {
++	background: url("calx.gif") no-repeat;
++	width:17px;
++	height:13px;
++	cursor:pointer;	
++}
++
++/* Calendar element styles */
++
++.yui-calendar {
++	font:100% sans-serif;
++	text-align:center;
++	border-spacing:0;
++	border-collapse:separate;
++	position:relative;
++}
++
++.yui-calcontainer.withtitle {
++	padding-top:1.5em;
++}
++
++.yui-calendar .calnavleft {
++	position:absolute;
++	overflow:hidden;
++	text-indent:-10000em;
++	cursor:pointer;
++	top:2px;
++	bottom:0;
++	width:9px;
++	height:12px;
++	left:2px;
++	z-index:1;
++	background: url("callt.gif") no-repeat;
++}
++
++.yui-calendar .calnavright {
++	position:absolute;
++	overflow:hidden;
++	text-indent:-10000em;
++	cursor:pointer;
++	top:2px;
++	bottom:0;
++	width:9px;
++	height:12px;
++	right:2px;
++	z-index:1;
++	background: url("calrt.gif") no-repeat;
++}
++
++.yui-calendar td.calcell {
++	padding:.1em .2em;
++	border:1px solid #E0E0E0;
++	text-align:center;
++}
++
++.yui-calendar td.calcell a {
++	color:#003DB8;
++	text-decoration:none;
++}
++
++.yui-calendar td.calcell.today {
++	border:1px solid #000;
++}
++
++.yui-calendar td.calcell.oom {
++	cursor:default;
++	color:#999;
++	background-color:#EEE;
++	border:1px solid #E0E0E0;
++}
++
++.yui-calendar td.calcell.selected {
++	color:#003DB8;
++	background-color:#FFF19F;
++	border:1px solid #FF9900;
++}
++
++.yui-calendar td.calcell.calcellhover {
++	cursor:pointer;
++	color:#FFF;
++	background-color:#FF9900;
++	border:1px solid #FF9900;
++}
++
++.yui-calendar td.calcell.calcellhover a {
++	color:#FFF;
++}
++
++.yui-calendar td.calcell.restricted {
++	text-decoration:line-through;
++}
++
++.yui-calendar td.calcell.previous {
++	color:#CCC;
++}
++
++.yui-calendar td.calcell.highlight1 { background-color:#CCFF99; }
++.yui-calendar td.calcell.highlight2 { background-color:#99CCFF; }
++.yui-calendar td.calcell.highlight3 { background-color:#FFCCCC; }
++.yui-calendar td.calcell.highlight4 { background-color:#CCFF99; }
++
++.yui-calendar .calhead {
++	border:1px solid #E0E0E0;
++	vertical-align:middle;
++	background-color:#FFF;
++}
++
++.yui-calendar .calheader {
++	position:relative;
++	width:100%;
++	text-align:center;
++}
++
++.yui-calendar .calheader img {
++	border:none;
++}
++
++.yui-calendar .calweekdaycell {
++	color:#666;
++	font-weight:normal;
++	text-align:center;
++	width:1.5em;
++}
++
++.yui-calendar .calfoot {
++	background-color:#EEE;
++}
++
++.yui-calendar .calrowhead, .yui-calendar .calrowfoot {
++	color:#666;
++	font-size:9px;
++	font-style:italic;
++	font-weight:normal;
++	width:15px;
++}
++
++.yui-calendar .calrowhead {
++	border-right-width:2px;
++}
++
++/* CalendarNavigator */
++.yui-calendar a.calnav {
++	_position:relative;
++	padding-left:2px;
++	padding-right:2px;
++	text-decoration:none;
++	color:#000;
++}
++
++.yui-calendar a.calnav:hover {
++	border:1px solid #003366;
++	background-color:#6699cc;
++	background: url(calgrad.png) repeat-x;
++	color:#fff;
++	cursor:pointer;
++}
++
++.yui-calcontainer .yui-cal-nav-mask {
++	position:absolute;
++	z-index:2;
++	display:none;
++
++	margin:0;
++	padding:0;
++
++	left:0;
++	top:0;
++	width:100%;
++	height:100%;
++	_width:0;    /* IE6, IE7 Quirks - width/height set programmatically to match container */
++	_height:0;
++
++	background-color:#000;
++	opacity:0.25;
++	*filter:alpha(opacity=25);
++}
++
++.yui-calcontainer .yui-cal-nav {
++	position:absolute;
++	z-index:3;
++	display:none;
++
++	padding:0;
++	top:1.5em;
++	left:50%;
++	width:12em;
++	margin-left:-6em;
++
++	border:1px solid #7B9EBD;
++	background-color:#F7F9FB;
++	font-size:93%;
++}
++
++.yui-calcontainer.withtitle .yui-cal-nav {
++	top:3.5em;
++}
++
++.yui-calcontainer .yui-cal-nav-y,
++.yui-calcontainer .yui-cal-nav-m,
++.yui-calcontainer .yui-cal-nav-b {
++	padding:2px 5px 2px 5px;
++}
++
++.yui-calcontainer .yui-cal-nav-b {
++	text-align:center;
++}
++
++.yui-calcontainer .yui-cal-nav-e {
++	margin-top:2px;
++	padding:2px;
++	background-color:#EDF5FF;
++	border-top:1px solid black;
++	display:none;
++}
++
++.yui-calcontainer .yui-cal-nav label {
++	display:block;
++	font-weight:bold;
++}
++
++.yui-calcontainer .yui-cal-nav-mc {
++	width:100%;
++	_width:auto; /* IE6 doesn't like width 100% */
++}
++
++.yui-calcontainer .yui-cal-nav-y input.yui-invalid {
++	background-color:#FFEE69;
++	border: 1px solid #000;
++}
++
++.yui-calcontainer .yui-cal-nav-yc {
++	width:3em;
++}
++
++.yui-calcontainer .yui-cal-nav-b button {
++	font-size:93%;
++	text-decoration:none;
++	cursor: pointer;
++	background-color: #79b2ea;
++	border: 1px solid #003366;
++	border-top-color:#FFF;
++	border-left-color:#FFF;
++	margin:1px;
++}
++
++.yui-calcontainer .yui-cal-nav-b .yui-default button {
++	/* not implemented */
++}
++
++/* Specific changes for calendar running under fonts/reset */
++.yui-calendar .calbody a:hover {background:inherit;}
++p#clear {clear:left; padding-top:10px;}
+diff --git a/pylons_app/public/js/yui/calendar/assets/calgrad.png b/pylons_app/public/js/yui/calendar/assets/calgrad.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..9be3d958c746ded4969acf34d7f86d76c3687314
+GIT binary patch
+literal 497
+zc$@+80S^9&P)<h;3K|Lk000e1NJLTq000UA0015c0{{R3BCCG_0000PbVXQnQ*UN;
+zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUyz)(z7MOTTvP=mH*n9De9pC40&BUXt#
+zZ=z6yw?}%dM0TkrS&U79vl2yk8BBjid8|~1xlMqyUXsKWNPI(fsV-oXREN1hbEY|K
+zpJSEDG-#V(lgBDtkS1D<7D;<Ra-|tdel1~>AX0@tbEX_lf-Yf{5=MAjkHT4uzgdmI
+zVwT8Zl*V3>#8-;EVU)*XmdRX?!7^l*JaD3Am&;?8$YhtwBUOl7kHTJ&#b1%cRED}r
+zeXuHBkTqzV98ZEVWS3@{%zNWqssI20$4Nv%RCwBK#_1M9P!t8=ouU##rbL>|G)VLG
+z{%_T}mesGmz0bZEpCA1H))mLq99Pv9j;WKTM`ycr;Fe`pW^R_b$n&dq(ejI?Av#l{
+z9R+b5C#*>V6etQh0H$f)#wLS)r_&bdsG+JO+<%}b%7D;dIH9naz*<@Jxn<EnI0!;>
+z0=kUdwQU>IXKRZ6yFm{Y3u8kuj13-*85N=^dKA&~z>^b&=dtWDOM+Kx{empZK_Cb8
+nz}J19Rre7}k`%I$z5)yYWr-#SjNuqv00000NkvXXu0mjfG2YZl
+
+diff --git a/pylons_app/public/js/yui/calendar/assets/callt.gif b/pylons_app/public/js/yui/calendar/assets/callt.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..a6cc8da5b221d372ea075b3a4a10211d3a23cb51
+GIT binary patch
+literal 93
+zc${<hbhEHb<YeGsSj5Wk|NnpEw3#!{{AVyuO9N8>|1*Gr;!hSv1_o9J9S{ekmVsF*
+qV%6o-OdT896eo&R8_GI9Z+s-tb-65V<*lvjzBf272=!xPum%9G>mWw}
+
+diff --git a/pylons_app/public/js/yui/calendar/assets/calrt.gif b/pylons_app/public/js/yui/calendar/assets/calrt.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..ee137b2ff769d99132234b67f1e528daf65cb397
+GIT binary patch
+literal 94
+zc${<hbhEHb<YeGsSj5Wk|NnpEw3#!{{AVyuO9N8>|1*Gr;!hSv1_o9J9S{ekmVsG0
+rV)Ip7rjCbGR9fsBH@3+N1|(QayL)o!6Ro<}FL)f+p7oi^z+epk(%c}|
+
+diff --git a/pylons_app/public/js/yui/calendar/assets/calx.gif b/pylons_app/public/js/yui/calendar/assets/calx.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..27e7bc36e4524623db3c43f4d86717a703f37406
+GIT binary patch
+literal 88
+zc${<hbhEHb6lCCKn8?J?-rj!k;>G{}|1&T!DE?$&WME)o&;ha;K=KSsnmzrMhu-GT
+qE4kQMmbu}<w=*F(*xPP@_Ed77c4*eJvsw*$wrA7%H0^>I7_0#*o**Fr
+
+diff --git a/pylons_app/public/js/yui/calendar/assets/skins/sam/calendar-skin.css b/pylons_app/public/js/yui/calendar/assets/skins/sam/calendar-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/assets/skins/sam/calendar-skin.css
+@@ -0,0 +1,361 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * SAM
++ *
++ * Skin colors used:
++ *
++ * - Control Border : 808080
++ * - Control Chrome : f2f2f2
++ * - Cell Borders : cccccc
++ * - Normal Cell BG : ffffff
++ * - Date Links : 0066cc
++ * - Selected Cells BG : b3d4ff
++ * - Cell Hover BG : 426fd9
++ * - Disabled BG : cccccc
++ * - Disabled Text Color : a6a6a6
++ **/
++
++/* CALENDAR BOUNDING BOX */
++.yui-skin-sam .yui-calcontainer {
++	background-color:#f2f2f2;
++	border:1px solid #808080;
++	padding:10px;
++}
++
++/* CALENDARGROUP BOUNDING BOX */
++.yui-skin-sam .yui-calcontainer.multi {
++	padding:0 5px 0 5px;
++}
++
++/* BOUNDING BOX FOR EACH CALENDAR GROUP PAGE */
++.yui-skin-sam .yui-calcontainer.multi .groupcal {
++	background-color:transparent;
++	border:none;
++	padding:10px 5px 10px 5px;
++	margin:0;
++}
++
++/* TITLE BAR */
++.yui-skin-sam .yui-calcontainer .title {
++	background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++	border-bottom:1px solid #cccccc;
++	font:100% sans-serif;
++	color:#000;
++	font-weight:bold;
++	height:auto;
++	padding:.4em;
++	margin:0 -10px 10px -10px;
++	top:0;
++	left:0;
++	text-align:left;
++}
++
++.yui-skin-sam .yui-calcontainer.multi .title {
++	margin:0 -5px 0 -5px;
++}
++
++.yui-skin-sam .yui-calcontainer.withtitle {
++	padding-top:0;
++}
++
++/* CLOSE BUTTON */
++.yui-skin-sam .yui-calcontainer .calclose {
++	background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
++	width:25px;
++	height:15px;
++	top:.4em;
++	right:.4em;
++	cursor:pointer;
++}
++
++/* CALENDAR TABLE */
++.yui-skin-sam .yui-calendar {
++	border-spacing:0;
++	border-collapse:collapse;
++	font:100% sans-serif;
++	text-align:center;
++	margin:0;
++}
++
++/* NAVBAR BOUNDING BOX */
++.yui-skin-sam .yui-calendar .calhead {
++	background:transparent;
++	border:none;
++	vertical-align:middle;
++	padding:0;
++}
++
++/* NAVBAR TEXT CONTAINER */
++.yui-skin-sam .yui-calendar .calheader {
++	background:transparent;
++	font-weight:bold;
++	padding:0 0 .6em 0;
++	text-align:center;
++}
++
++.yui-skin-sam .yui-calendar .calheader img {
++	border:none;
++}
++
++/* NAVBAR LEFT ARROW */
++.yui-skin-sam .yui-calendar .calnavleft {
++	background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -450px;
++	width:25px;
++	height:15px;
++	top:0;
++	bottom:0;
++	left:-10px;
++	margin-left:.4em;
++	cursor:pointer;
++}
++
++/* NAVBAR RIGHT ARROW */
++.yui-skin-sam .yui-calendar .calnavright {
++	background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -500px;
++	width:25px;
++	height:15px;
++	top:0;
++	bottom:0;
++	right:-10px;
++	margin-right:.4em;
++	cursor:pointer;
++}
++
++/* WEEKDAY HEADER ROW */
++.yui-skin-sam .yui-calendar .calweekdayrow {
++	height:2em;
++}
++
++.yui-skin-sam .yui-calendar .calweekdayrow th {
++	padding:0;
++	border:none;
++}
++
++/* WEEKDAY (Su, Mo, Tu...) HEADER CELLS */
++.yui-skin-sam .yui-calendar .calweekdaycell {
++	color:#000;
++	font-weight:bold;
++	text-align:center;
++	width:2em;
++}
++
++/* CALENDAR FOOTER. NOT IMPLEMENTED BY DEFAULT */
++.yui-skin-sam .yui-calendar .calfoot {
++	background-color:#f2f2f2;
++}
++
++/* WEEK NUMBERS (ROW HEADERS/FOOTERS) */
++.yui-skin-sam .yui-calendar .calrowhead, .yui-skin-sam .yui-calendar .calrowfoot {
++	color:#a6a6a6;
++	font-size:85%;
++	font-style:normal;
++	font-weight:normal;
++	border:none;
++}
++
++.yui-skin-sam .yui-calendar .calrowhead {
++	text-align:right;
++	padding:0 2px 0 0;
++}
++
++.yui-skin-sam .yui-calendar .calrowfoot {
++	text-align:left;
++	padding:0 0 0 2px;
++}
++
++/* NORMAL CELLS */
++.yui-skin-sam .yui-calendar td.calcell {
++	border:1px solid #cccccc;
++	background:#fff;
++	padding:1px;
++	height:1.6em;
++	line-height:1.6em; /* set line height equal to cell height to center vertically */
++	text-align:center;
++	white-space:nowrap;
++}
++
++/* LINK INSIDE NORMAL CELLS */
++.yui-skin-sam .yui-calendar td.calcell a {
++	color:#0066cc;
++	display:block;
++	height:100%;
++	text-decoration:none;
++}
++
++/* TODAY'S DATE */
++.yui-skin-sam .yui-calendar td.calcell.today {
++	background-color:#000;
++}
++
++.yui-skin-sam .yui-calendar td.calcell.today a {
++	background-color:#fff;
++}
++
++/* OOM DATES */
++.yui-skin-sam .yui-calendar td.calcell.oom {
++	background-color:#cccccc;
++	color:#a6a6a6;
++	cursor:default;
++}
++
++/* SELECTED DATE */
++.yui-skin-sam .yui-calendar td.calcell.selected {
++	background-color:#fff;
++	color:#000;
++}
++
++.yui-skin-sam .yui-calendar td.calcell.selected a {
++	background-color:#b3d4ff;
++	color:#000;
++}
++
++/* HOVER DATE */
++.yui-skin-sam .yui-calendar td.calcell.calcellhover {
++	background-color:#426fd9;
++	color:#fff;
++	cursor:pointer;
++}
++
++.yui-skin-sam .yui-calendar td.calcell.calcellhover a {
++	background-color:#426fd9;
++	color:#fff;
++}
++
++/* DEFAULT OOB DATES */
++.yui-skin-sam .yui-calendar td.calcell.previous {
++	color:#e0e0e0;
++}
++
++/* CUSTOM RENDERERS */
++.yui-skin-sam .yui-calendar td.calcell.restricted { text-decoration:line-through; }
++.yui-skin-sam .yui-calendar td.calcell.highlight1 { background-color:#ccff99; }
++.yui-skin-sam .yui-calendar td.calcell.highlight2 { background-color:#99ccff; }
++.yui-skin-sam .yui-calendar td.calcell.highlight3 { background-color:#ffcccc; }
++.yui-skin-sam .yui-calendar td.calcell.highlight4 { background-color:#ccff99; }
++
++/* CalendarNavigator */
++
++/* MONTH/YEAR LABEL */
++.yui-skin-sam .yui-calendar a.calnav { 
++	border: 1px solid #f2f2f2;
++	padding:0 4px;
++	text-decoration:none;
++	color:#000;
++	zoom:1;
++}
++
++.yui-skin-sam .yui-calendar a.calnav:hover { 
++	background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++	border-color:#A0A0A0;
++	cursor:pointer;
++}
++
++/* NAVIGATOR MASK */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask {
++	background-color:#000;
++	opacity:0.25;
++	filter:alpha(opacity=25); /* IE */
++}
++
++/* NAVIGATOR BOUNDING BOX */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav {
++	font-family:arial,helvetica,clean,sans-serif;
++	font-size:93%;
++	border:1px solid #808080;
++	left:50%;
++	margin-left:-7em;
++	width:14em;
++	padding:0;
++	top:2.5em;
++	background-color:#f2f2f2;
++}
++
++.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav {
++	top:4.5em;
++}
++
++/* NAVIGATOR BOUNDING BOX */
++.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav {
++	width:16em;
++	margin-left:-8em;
++}
++
++/* NAVIGATOR YEAR/MONTH/BUTTON/ERROR BOUNDING BLOCKS */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-b {
++	padding:5px 10px 5px 10px;
++}
++
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-b {
++	text-align:center;
++}
++
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-e {
++	margin-top:5px;
++	padding:5px;
++	background-color:#EDF5FF;
++	border-top:1px solid black;
++	display:none;
++}
++
++/* NAVIGATOR LABELS */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav label {
++	display:block;
++	font-weight:bold;
++}
++
++/* NAVIGATOR MONTH CONTROL */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc {
++	width:100%;
++	_width:auto; /* IE6, IE7 Quirks don't handle 100% well */
++}
++
++/* NAVIGATOR MONTH CONTROL, VALIDATION ERROR */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid {
++	background-color:#FFEE69;
++	border: 1px solid #000;
++}
++
++/* NAVIGATOR YEAR CONTROL */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc {
++	width:4em;
++}
++
++/* NAVIGATOR BUTTONS */
++
++/* BUTTON WRAPPER */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn {
++	border:1px solid #808080;
++	background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++	background-color:#ccc;
++	margin: auto .15em;
++}
++
++/* BUTTON (based on button-skin.css) */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button {
++	padding:0 8px;
++	font-size:93%;
++	line-height: 2;  /* ~24px */
++	*line-height: 1.7; /* For IE */
++	min-height: 2em; /* For Gecko */
++	*min-height: auto; /* For IE */
++	color: #000;
++}
++
++/* DEFAULT BUTTONS */
++/* NOTE: IE6 will only pickup the yui-default specifier from the multiple class specifier */
++.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default {
++	border:1px solid #304369;
++	background-color: #426fd9;
++	background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
++}
++
++.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button {
++	color:#fff;
++}
+diff --git a/pylons_app/public/js/yui/calendar/assets/skins/sam/calendar.css b/pylons_app/public/js/yui/calendar/assets/skins/sam/calendar.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/assets/skins/sam/calendar.css
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-calcontainer{position:relative;float:left;_overflow:hidden;}.yui-calcontainer iframe{position:absolute;border:none;margin:0;padding:0;z-index:0;width:100%;height:100%;left:0;top:0;}.yui-calcontainer iframe.fixedsize{width:50em;height:50em;top:-1px;left:-1px;}.yui-calcontainer.multi .groupcal{z-index:1;float:left;position:relative;}.yui-calcontainer .title{position:relative;z-index:1;}.yui-calcontainer .close-icon{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calnavright{position:absolute;z-index:1;text-indent:-10000em;overflow:hidden;}.yui-calendar .calheader{position:relative;width:100%;text-align:center;}.yui-calcontainer .yui-cal-nav-mask{position:absolute;z-index:2;margin:0;padding:0;width:100%;height:100%;_width:0;_height:0;left:0;top:0;display:none;}.yui-calcontainer .yui-cal-nav{position:absolute;z-index:3;top:0;display:none;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{display:-moz-inline-box;display:inline-block;}.yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{display:block;*display:inline-block;*overflow:visible;border:none;background-color:transparent;cursor:pointer;}.yui-calendar .calbody a:hover{background:inherit;}p#clear{clear:left;padding-top:10px;}.yui-skin-sam .yui-calcontainer{background-color:#f2f2f2;border:1px solid #808080;padding:10px;}.yui-skin-sam .yui-calcontainer.multi{padding:0 5px 0 5px;}.yui-skin-sam .yui-calcontainer.multi .groupcal{background-color:transparent;border:none;padding:10px 5px 10px 5px;margin:0;}.yui-skin-sam .yui-calcontainer .title{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;border-bottom:1px solid #ccc;font:100% sans-serif;color:#000;font-weight:bold;height:auto;padding:.4em;margin:0 -10px 10px -10px;top:0;left:0;text-align:left;}.yui-skin-sam .yui-calcontainer.multi .title{margin:0 -5px 0 -5px;}.yui-skin-sam .yui-calcontainer.withtitle{padding-top:0;}.yui-skin-sam .yui-calcontainer .calclose{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;width:25px;height:15px;top:.4em;right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar{border-spacing:0;border-collapse:collapse;font:100% sans-serif;text-align:center;margin:0;}.yui-skin-sam .yui-calendar .calhead{background:transparent;border:none;vertical-align:middle;padding:0;}.yui-skin-sam .yui-calendar .calheader{background:transparent;font-weight:bold;padding:0 0 .6em 0;text-align:center;}.yui-skin-sam .yui-calendar .calheader img{border:none;}.yui-skin-sam .yui-calendar .calnavleft{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -450px;width:25px;height:15px;top:0;bottom:0;left:-10px;margin-left:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calnavright{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -500px;width:25px;height:15px;top:0;bottom:0;right:-10px;margin-right:.4em;cursor:pointer;}.yui-skin-sam .yui-calendar .calweekdayrow{height:2em;}.yui-skin-sam .yui-calendar .calweekdayrow th{padding:0;border:none;}.yui-skin-sam .yui-calendar .calweekdaycell{color:#000;font-weight:bold;text-align:center;width:2em;}.yui-skin-sam .yui-calendar .calfoot{background-color:#f2f2f2;}.yui-skin-sam .yui-calendar .calrowhead,.yui-skin-sam .yui-calendar .calrowfoot{color:#a6a6a6;font-size:85%;font-style:normal;font-weight:normal;border:none;}.yui-skin-sam .yui-calendar .calrowhead{text-align:right;padding:0 2px 0 0;}.yui-skin-sam .yui-calendar .calrowfoot{text-align:left;padding:0 0 0 2px;}.yui-skin-sam .yui-calendar td.calcell{border:1px solid #ccc;background:#fff;padding:1px;height:1.6em;line-height:1.6em;text-align:center;white-space:nowrap;}.yui-skin-sam .yui-calendar td.calcell a{color:#06c;display:block;height:100%;text-decoration:none;}.yui-skin-sam .yui-calendar td.calcell.today{background-color:#000;}.yui-skin-sam .yui-calendar td.calcell.today a{background-color:#fff;}.yui-skin-sam .yui-calendar td.calcell.oom{background-color:#ccc;color:#a6a6a6;cursor:default;}.yui-skin-sam .yui-calendar td.calcell.selected{background-color:#fff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.selected a{background-color:#b3d4ff;color:#000;}.yui-skin-sam .yui-calendar td.calcell.calcellhover{background-color:#426fd9;color:#fff;cursor:pointer;}.yui-skin-sam .yui-calendar td.calcell.calcellhover a{background-color:#426fd9;color:#fff;}.yui-skin-sam .yui-calendar td.calcell.previous{color:#e0e0e0;}.yui-skin-sam .yui-calendar td.calcell.restricted{text-decoration:line-through;}.yui-skin-sam .yui-calendar td.calcell.highlight1{background-color:#cf9;}.yui-skin-sam .yui-calendar td.calcell.highlight2{background-color:#9cf;}.yui-skin-sam .yui-calendar td.calcell.highlight3{background-color:#fcc;}.yui-skin-sam .yui-calendar td.calcell.highlight4{background-color:#cf9;}.yui-skin-sam .yui-calendar a.calnav{border:1px solid #f2f2f2;padding:0 4px;text-decoration:none;color:#000;zoom:1;}.yui-skin-sam .yui-calendar a.calnav:hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;border-color:#A0A0A0;cursor:pointer;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-calcontainer .yui-cal-nav{font-family:arial,helvetica,clean,sans-serif;font-size:93%;border:1px solid #808080;left:50%;margin-left:-7em;width:14em;padding:0;top:2.5em;background-color:#f2f2f2;}.yui-skin-sam .yui-calcontainer.withtitle .yui-cal-nav{top:4.5em;}.yui-skin-sam .yui-calcontainer.multi .yui-cal-nav{width:16em;margin-left:-8em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y,.yui-skin-sam .yui-calcontainer .yui-cal-nav-m,.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{padding:5px 10px 5px 10px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-b{text-align:center;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-e{margin-top:5px;padding:5px;background-color:#EDF5FF;border-top:1px solid black;display:none;}.yui-skin-sam .yui-calcontainer .yui-cal-nav label{display:block;font-weight:bold;}
++.yui-skin-sam .yui-calcontainer .yui-cal-nav-mc{width:100%;_width:auto;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-y input.yui-invalid{background-color:#FFEE69;border:1px solid #000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav-yc{width:4em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn{border:1px solid #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;background-color:#ccc;margin:auto .15em;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn button{padding:0 8px;font-size:93%;line-height:2;*line-height:1.7;min-height:2em;*min-height:auto;color:#000;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default{border:1px solid #304369;background-color:#426fd9;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;}.yui-skin-sam .yui-calcontainer .yui-cal-nav .yui-cal-nav-btn.yui-default button{color:#fff;}
+diff --git a/pylons_app/public/js/yui/calendar/calendar-debug.js b/pylons_app/public/js/yui/calendar/calendar-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/calendar-debug.js
+@@ -0,0 +1,7324 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++    /**
++    * Config is a utility used within an Object to allow the implementer to
++    * maintain a list of local configuration properties and listen for changes 
++    * to those properties dynamically using CustomEvent. The initial values are 
++    * also maintained so that the configuration can be reset at any given point 
++    * to its initial state.
++    * @namespace YAHOO.util
++    * @class Config
++    * @constructor
++    * @param {Object} owner The owner Object to which this Config Object belongs
++    */
++    YAHOO.util.Config = function (owner) {
++
++        if (owner) {
++            this.init(owner);
++        }
++
++        if (!owner) {  YAHOO.log("No owner specified for Config object", "error", "Config"); }
++
++    };
++
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Config = YAHOO.util.Config;
++
++
++    /**
++     * Constant representing the CustomEvent type for the config changed event.
++     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
++     * @private
++     * @static
++     * @final
++     */
++    Config.CONFIG_CHANGED_EVENT = "configChanged";
++    
++    /**
++     * Constant representing the boolean type string
++     * @property YAHOO.util.Config.BOOLEAN_TYPE
++     * @private
++     * @static
++     * @final
++     */
++    Config.BOOLEAN_TYPE = "boolean";
++    
++    Config.prototype = {
++     
++        /**
++        * Object reference to the owner of this Config Object
++        * @property owner
++        * @type Object
++        */
++        owner: null,
++        
++        /**
++        * Boolean flag that specifies whether a queue is currently 
++        * being executed
++        * @property queueInProgress
++        * @type Boolean
++        */
++        queueInProgress: false,
++        
++        /**
++        * Maintains the local collection of configuration property objects and 
++        * their specified values
++        * @property config
++        * @private
++        * @type Object
++        */ 
++        config: null,
++        
++        /**
++        * Maintains the local collection of configuration property objects as 
++        * they were initially applied.
++        * This object is used when resetting a property.
++        * @property initialConfig
++        * @private
++        * @type Object
++        */ 
++        initialConfig: null,
++        
++        /**
++        * Maintains the local, normalized CustomEvent queue
++        * @property eventQueue
++        * @private
++        * @type Object
++        */ 
++        eventQueue: null,
++        
++        /**
++        * Custom Event, notifying subscribers when Config properties are set 
++        * (setProperty is called without the silent flag
++        * @event configChangedEvent
++        */
++        configChangedEvent: null,
++    
++        /**
++        * Initializes the configuration Object and all of its local members.
++        * @method init
++        * @param {Object} owner The owner Object to which this Config 
++        * Object belongs
++        */
++        init: function (owner) {
++    
++            this.owner = owner;
++    
++            this.configChangedEvent = 
++                this.createEvent(Config.CONFIG_CHANGED_EVENT);
++    
++            this.configChangedEvent.signature = CustomEvent.LIST;
++            this.queueInProgress = false;
++            this.config = {};
++            this.initialConfig = {};
++            this.eventQueue = [];
++        
++        },
++        
++        /**
++        * Validates that the value passed in is a Boolean.
++        * @method checkBoolean
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */ 
++        checkBoolean: function (val) {
++            return (typeof val == Config.BOOLEAN_TYPE);
++        },
++        
++        /**
++        * Validates that the value passed in is a number.
++        * @method checkNumber
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */
++        checkNumber: function (val) {
++            return (!isNaN(val));
++        },
++        
++        /**
++        * Fires a configuration property event using the specified value. 
++        * @method fireEvent
++        * @private
++        * @param {String} key The configuration property's name
++        * @param {value} Object The value of the correct type for the property
++        */ 
++        fireEvent: function ( key, value ) {
++            YAHOO.log("Firing Config event: " + key + "=" + value, "info", "Config");
++            var property = this.config[key];
++        
++            if (property && property.event) {
++                property.event.fire(value);
++            } 
++        },
++        
++        /**
++        * Adds a property to the Config Object's private config hash.
++        * @method addProperty
++        * @param {String} key The configuration property's name
++        * @param {Object} propertyObject The Object containing all of this 
++        * property's arguments
++        */
++        addProperty: function ( key, propertyObject ) {
++            key = key.toLowerCase();
++            YAHOO.log("Added property: " + key, "info", "Config");
++        
++            this.config[key] = propertyObject;
++        
++            propertyObject.event = this.createEvent(key, { scope: this.owner });
++            propertyObject.event.signature = CustomEvent.LIST;
++            
++            
++            propertyObject.key = key;
++        
++            if (propertyObject.handler) {
++                propertyObject.event.subscribe(propertyObject.handler, 
++                    this.owner);
++            }
++        
++            this.setProperty(key, propertyObject.value, true);
++            
++            if (! propertyObject.suppressEvent) {
++                this.queueProperty(key, propertyObject.value);
++            }
++            
++        },
++        
++        /**
++        * Returns a key-value configuration map of the values currently set in  
++        * the Config Object.
++        * @method getConfig
++        * @return {Object} The current config, represented in a key-value map
++        */
++        getConfig: function () {
++        
++            var cfg = {},
++                currCfg = this.config,
++                prop,
++                property;
++                
++            for (prop in currCfg) {
++                if (Lang.hasOwnProperty(currCfg, prop)) {
++                    property = currCfg[prop];
++                    if (property && property.event) {
++                        cfg[prop] = property.value;
++                    }
++                }
++            }
++
++            return cfg;
++        },
++        
++        /**
++        * Returns the value of specified property.
++        * @method getProperty
++        * @param {String} key The name of the property
++        * @return {Object}  The value of the specified property
++        */
++        getProperty: function (key) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.value;
++            } else {
++                return undefined;
++            }
++        },
++        
++        /**
++        * Resets the specified property's value to its initial value.
++        * @method resetProperty
++        * @param {String} key The name of the property
++        * @return {Boolean} True is the property was reset, false if not
++        */
++        resetProperty: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event) {
++    
++                if (this.initialConfig[key] && 
++                    !Lang.isUndefined(this.initialConfig[key])) {
++    
++                    this.setProperty(key, this.initialConfig[key]);
++
++                    return true;
++    
++                }
++    
++            } else {
++    
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Sets the value of a property. If the silent property is passed as 
++        * true, the property's event will not be fired.
++        * @method setProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @param {Boolean} silent Whether the value should be set silently, 
++        * without firing the property event.
++        * @return {Boolean} True, if the set was successful, false if it failed.
++        */
++        setProperty: function (key, value, silent) {
++        
++            var property;
++        
++            key = key.toLowerCase();
++            YAHOO.log("setProperty: " + key + "=" + value, "info", "Config");
++        
++            if (this.queueInProgress && ! silent) {
++                // Currently running through a queue... 
++                this.queueProperty(key,value);
++                return true;
++    
++            } else {
++                property = this.config[key];
++                if (property && property.event) {
++                    if (property.validator && !property.validator(value)) {
++                        return false;
++                    } else {
++                        property.value = value;
++                        if (! silent) {
++                            this.fireEvent(key, value);
++                            this.configChangedEvent.fire([key, value]);
++                        }
++                        return true;
++                    }
++                } else {
++                    return false;
++                }
++            }
++        },
++        
++        /**
++        * Sets the value of a property and queues its event to execute. If the 
++        * event is already scheduled to execute, it is
++        * moved from its current position to the end of the queue.
++        * @method queueProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @return {Boolean}  true, if the set was successful, false if 
++        * it failed.
++        */ 
++        queueProperty: function (key, value) {
++        
++            key = key.toLowerCase();
++            YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
++        
++            var property = this.config[key],
++                foundDuplicate = false,
++                iLen,
++                queueItem,
++                queueItemKey,
++                queueItemValue,
++                sLen,
++                supercedesCheck,
++                qLen,
++                queueItemCheck,
++                queueItemCheckKey,
++                queueItemCheckValue,
++                i,
++                s,
++                q;
++                                
++            if (property && property.event) {
++    
++                if (!Lang.isUndefined(value) && property.validator && 
++                    !property.validator(value)) { // validator
++                    return false;
++                } else {
++        
++                    if (!Lang.isUndefined(value)) {
++                        property.value = value;
++                    } else {
++                        value = property.value;
++                    }
++        
++                    foundDuplicate = false;
++                    iLen = this.eventQueue.length;
++        
++                    for (i = 0; i < iLen; i++) {
++                        queueItem = this.eventQueue[i];
++        
++                        if (queueItem) {
++                            queueItemKey = queueItem[0];
++                            queueItemValue = queueItem[1];
++
++                            if (queueItemKey == key) {
++    
++                                /*
++                                    found a dupe... push to end of queue, null 
++                                    current item, and break
++                                */
++    
++                                this.eventQueue[i] = null;
++    
++                                this.eventQueue.push(
++                                    [key, (!Lang.isUndefined(value) ? 
++                                    value : queueItemValue)]);
++    
++                                foundDuplicate = true;
++                                break;
++                            }
++                        }
++                    }
++                    
++                    // this is a refire, or a new property in the queue
++    
++                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
++                        this.eventQueue.push([key, value]);
++                    }
++                }
++        
++                if (property.supercedes) {
++
++                    sLen = property.supercedes.length;
++
++                    for (s = 0; s < sLen; s++) {
++
++                        supercedesCheck = property.supercedes[s];
++                        qLen = this.eventQueue.length;
++
++                        for (q = 0; q < qLen; q++) {
++                            queueItemCheck = this.eventQueue[q];
++
++                            if (queueItemCheck) {
++                                queueItemCheckKey = queueItemCheck[0];
++                                queueItemCheckValue = queueItemCheck[1];
++
++                                if (queueItemCheckKey == 
++                                    supercedesCheck.toLowerCase() ) {
++
++                                    this.eventQueue.push([queueItemCheckKey, 
++                                        queueItemCheckValue]);
++
++                                    this.eventQueue[q] = null;
++                                    break;
++
++                                }
++                            }
++                        }
++                    }
++                }
++
++                YAHOO.log("Config event queue: " + this.outputEventQueue(), "info", "Config");
++
++                return true;
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Fires the event for a property using the property's current value.
++        * @method refireEvent
++        * @param {String} key The name of the property
++        */
++        refireEvent: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event && 
++    
++                !Lang.isUndefined(property.value)) {
++    
++                if (this.queueInProgress) {
++    
++                    this.queueProperty(key);
++    
++                } else {
++    
++                    this.fireEvent(key, property.value);
++    
++                }
++    
++            }
++        },
++        
++        /**
++        * Applies a key-value Object literal to the configuration, replacing  
++        * any existing values, and queueing the property events.
++        * Although the values will be set, fireQueue() must be called for their 
++        * associated events to execute.
++        * @method applyConfig
++        * @param {Object} userConfig The configuration Object literal
++        * @param {Boolean} init  When set to true, the initialConfig will 
++        * be set to the userConfig passed in, so that calling a reset will 
++        * reset the properties to the passed values.
++        */
++        applyConfig: function (userConfig, init) {
++        
++            var sKey,
++                oConfig;
++
++            if (init) {
++                oConfig = {};
++                for (sKey in userConfig) {
++                    if (Lang.hasOwnProperty(userConfig, sKey)) {
++                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
++                    }
++                }
++                this.initialConfig = oConfig;
++            }
++
++            for (sKey in userConfig) {
++                if (Lang.hasOwnProperty(userConfig, sKey)) {
++                    this.queueProperty(sKey, userConfig[sKey]);
++                }
++            }
++        },
++        
++        /**
++        * Refires the events for all configuration properties using their 
++        * current values.
++        * @method refresh
++        */
++        refresh: function () {
++
++            var prop;
++
++            for (prop in this.config) {
++                if (Lang.hasOwnProperty(this.config, prop)) {
++                    this.refireEvent(prop);
++                }
++            }
++        },
++        
++        /**
++        * Fires the normalized list of queued property change events
++        * @method fireQueue
++        */
++        fireQueue: function () {
++        
++            var i, 
++                queueItem,
++                key,
++                value,
++                property;
++        
++            this.queueInProgress = true;
++            for (i = 0;i < this.eventQueue.length; i++) {
++                queueItem = this.eventQueue[i];
++                if (queueItem) {
++        
++                    key = queueItem[0];
++                    value = queueItem[1];
++                    property = this.config[key];
++
++                    property.value = value;
++
++                    // Clear out queue entry, to avoid it being 
++                    // re-added to the queue by any queueProperty/supercedes
++                    // calls which are invoked during fireEvent
++                    this.eventQueue[i] = null;
++
++                    this.fireEvent(key,value);
++                }
++            }
++            
++            this.queueInProgress = false;
++            this.eventQueue = [];
++        },
++        
++        /**
++        * Subscribes an external handler to the change event for any 
++        * given property. 
++        * @method subscribeToConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event handler 
++        * (see CustomEvent documentation)
++        * @param {Boolean} overrideContext Optional. If true, will override
++        * "this" within the handler to map to the scope Object passed into the
++        * method.
++        * @return {Boolean} True, if the subscription was successful, 
++        * otherwise false.
++        */ 
++        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
++    
++            var property = this.config[key.toLowerCase()];
++    
++            if (property && property.event) {
++                if (!Config.alreadySubscribed(property.event, handler, obj)) {
++                    property.event.subscribe(handler, obj, overrideContext);
++                }
++                return true;
++            } else {
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Unsubscribes an external handler from the change event for any 
++        * given property. 
++        * @method unsubscribeFromConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event 
++        * handler (see CustomEvent documentation)
++        * @return {Boolean} True, if the unsubscription was successful, 
++        * otherwise false.
++        */
++        unsubscribeFromConfigEvent: function (key, handler, obj) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.event.unsubscribe(handler, obj);
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Returns a string representation of the Config object
++        * @method toString
++        * @return {String} The Config object in string format.
++        */
++        toString: function () {
++            var output = "Config";
++            if (this.owner) {
++                output += " [" + this.owner.toString() + "]";
++            }
++            return output;
++        },
++        
++        /**
++        * Returns a string representation of the Config object's current 
++        * CustomEvent queue
++        * @method outputEventQueue
++        * @return {String} The string list of CustomEvents currently queued 
++        * for execution
++        */
++        outputEventQueue: function () {
++
++            var output = "",
++                queueItem,
++                q,
++                nQueue = this.eventQueue.length;
++              
++            for (q = 0; q < nQueue; q++) {
++                queueItem = this.eventQueue[q];
++                if (queueItem) {
++                    output += queueItem[0] + "=" + queueItem[1] + ", ";
++                }
++            }
++            return output;
++        },
++
++        /**
++        * Sets all properties to null, unsubscribes all listeners from each 
++        * property's change event and all listeners from the configChangedEvent.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var oConfig = this.config,
++                sProperty,
++                oProperty;
++
++
++            for (sProperty in oConfig) {
++            
++                if (Lang.hasOwnProperty(oConfig, sProperty)) {
++
++                    oProperty = oConfig[sProperty];
++
++                    oProperty.event.unsubscribeAll();
++                    oProperty.event = null;
++
++                }
++            
++            }
++            
++            this.configChangedEvent.unsubscribeAll();
++            
++            this.configChangedEvent = null;
++            this.owner = null;
++            this.config = null;
++            this.initialConfig = null;
++            this.eventQueue = null;
++        
++        }
++
++    };
++    
++    
++    
++    /**
++    * Checks to determine if a particular function/Object pair are already 
++    * subscribed to the specified CustomEvent
++    * @method YAHOO.util.Config.alreadySubscribed
++    * @static
++    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
++    * the subscriptions
++    * @param {Function} fn The function to look for in the subscribers list
++    * @param {Object} obj The execution scope Object for the subscription
++    * @return {Boolean} true, if the function/Object pair is already subscribed 
++    * to the CustomEvent passed in
++    */
++    Config.alreadySubscribed = function (evt, fn, obj) {
++    
++        var nSubscribers = evt.subscribers.length,
++            subsc,
++            i;
++
++        if (nSubscribers > 0) {
++            i = nSubscribers - 1;
++            do {
++                subsc = evt.subscribers[i];
++                if (subsc && subsc.obj == obj && subsc.fn == fn) {
++                    return true;
++                }
++            }
++            while (i--);
++        }
++
++        return false;
++
++    };
++
++    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
++
++}());
++/**
++* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
++* comparison. 
++* 
++* @module datemath
++*/
++
++/**
++* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
++* used for adding, subtracting, and comparing dates.
++* @namespace YAHOO.widget
++* @class DateMath
++*/
++YAHOO.widget.DateMath = {
++    /**
++    * Constant field representing Day
++    * @property DAY
++    * @static
++    * @final
++    * @type String
++    */
++    DAY : "D",
++
++    /**
++    * Constant field representing Week
++    * @property WEEK
++    * @static
++    * @final
++    * @type String
++    */
++    WEEK : "W",
++
++    /**
++    * Constant field representing Year
++    * @property YEAR
++    * @static
++    * @final
++    * @type String
++    */
++    YEAR : "Y",
++
++    /**
++    * Constant field representing Month
++    * @property MONTH
++    * @static
++    * @final
++    * @type String
++    */
++    MONTH : "M",
++
++    /**
++    * Constant field representing one day, in milliseconds
++    * @property ONE_DAY_MS
++    * @static
++    * @final
++    * @type Number
++    */
++    ONE_DAY_MS : 1000*60*60*24,
++    
++    /**
++     * Constant field representing the date in first week of January
++     * which identifies the first week of the year.
++     * <p>
++     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
++     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
++     * </p>
++     * @property WEEK_ONE_JAN_DATE
++     * @static
++     * @type Number
++     */
++    WEEK_ONE_JAN_DATE : 1,
++
++    /**
++    * Adds the specified amount of time to the this instance.
++    * @method add
++    * @param {Date} date The JavaScript Date object to perform addition on
++    * @param {String} field The field constant to be used for performing addition.
++    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
++    * @return {Date} The resulting Date object
++    */
++    add : function(date, field, amount) {
++        var d = new Date(date.getTime());
++        switch (field) {
++            case this.MONTH:
++                var newMonth = date.getMonth() + amount;
++                var years = 0;
++
++                if (newMonth < 0) {
++                    while (newMonth < 0) {
++                        newMonth += 12;
++                        years -= 1;
++                    }
++                } else if (newMonth > 11) {
++                    while (newMonth > 11) {
++                        newMonth -= 12;
++                        years += 1;
++                    }
++                }
++
++                d.setMonth(newMonth);
++                d.setFullYear(date.getFullYear() + years);
++                break;
++            case this.DAY:
++                this._addDays(d, amount);
++                // d.setDate(date.getDate() + amount);
++                break;
++            case this.YEAR:
++                d.setFullYear(date.getFullYear() + amount);
++                break;
++            case this.WEEK:
++                this._addDays(d, (amount * 7));
++                // d.setDate(date.getDate() + (amount * 7));
++                break;
++        }
++        return d;
++    },
++
++    /**
++     * Private helper method to account for bug in Safari 2 (webkit < 420)
++     * when Date.setDate(n) is called with n less than -128 or greater than 127.
++     * <p>
++     * Fix approach and original findings are available here:
++     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
++     * </p>
++     * @method _addDays
++     * @param {Date} d JavaScript date object
++     * @param {Number} nDays The number of days to add to the date object (can be negative)
++     * @private
++     */
++    _addDays : function(d, nDays) {
++        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
++            if (nDays < 0) {
++                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
++                for(var min = -128; nDays < min; nDays -= min) {
++                    d.setDate(d.getDate() + min);
++                }
++            } else {
++                // Ensure we don't go above 96 + 31 = 127
++                for(var max = 96; nDays > max; nDays -= max) {
++                    d.setDate(d.getDate() + max);
++                }
++            }
++            // nDays should be remainder between -128 and 96
++        }
++        d.setDate(d.getDate() + nDays);
++    },
++
++    /**
++    * Subtracts the specified amount of time from the this instance.
++    * @method subtract
++    * @param {Date} date The JavaScript Date object to perform subtraction on
++    * @param {Number} field The this field constant to be used for performing subtraction.
++    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
++    * @return {Date} The resulting Date object
++    */
++    subtract : function(date, field, amount) {
++        return this.add(date, field, (amount*-1));
++    },
++
++    /**
++    * Determines whether a given date is before another date on the calendar.
++    * @method before
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs before the compared date; false if not.
++    */
++    before : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() < ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is after another date on the calendar.
++    * @method after
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs after the compared date; false if not.
++    */
++    after : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() > ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is between two other dates on the calendar.
++    * @method between
++    * @param {Date} date  The date to check for
++    * @param {Date} dateBegin The start of the range
++    * @param {Date} dateEnd  The end of the range
++    * @return {Boolean} true if the date occurs between the compared dates; false if not.
++    */
++    between : function(date, dateBegin, dateEnd) {
++        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++    
++    /**
++    * Retrieves a JavaScript Date object representing January 1 of any given year.
++    * @method getJan1
++    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
++    * @return {Date} January 1 of the calendar year specified.
++    */
++    getJan1 : function(calendarYear) {
++        return this.getDate(calendarYear,0,1);
++    },
++
++    /**
++    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
++    * Passing January 1 to this function would return an offset value of zero.
++    * @method getDayOffset
++    * @param {Date} date The JavaScript date for which to find the offset
++    * @param {Number} calendarYear The calendar year to use for determining the offset
++    * @return {Number} The number of days since January 1 of the given year
++    */
++    getDayOffset : function(date, calendarYear) {
++        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
++        
++        // Find the number of days the passed in date is away from the calendar year start
++        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
++        return dayOffset;
++    },
++
++    /**
++    * Calculates the week number for the given date. Can currently support standard
++    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
++    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
++    * 
++    * @method getWeekNumber
++    * @param {Date} date The JavaScript date for which to find the week number
++    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
++    * Defaults to 0
++    * @param {Number} janDate The date in the first week of January which defines week one for the year
++    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
++    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
++    * 
++    * @return {Number} The number of the week containing the given date.
++    */
++    getWeekNumber : function(date, firstDayOfWeek, janDate) {
++
++        // Setup Defaults
++        firstDayOfWeek = firstDayOfWeek || 0;
++        janDate = janDate || this.WEEK_ONE_JAN_DATE;
++
++        var targetDate = this.clearTime(date),
++            startOfWeek,
++            endOfWeek;
++
++        if (targetDate.getDay() === firstDayOfWeek) { 
++            startOfWeek = targetDate;
++        } else {
++            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
++        }
++
++        var startYear = startOfWeek.getFullYear();
++
++        // DST shouldn't be a problem here, math is quicker than setDate();
++        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
++
++        var weekNum;
++        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
++            // If years don't match, endOfWeek is in Jan. and if the 
++            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
++            weekNum = 1;
++        } else {
++            // Get the 1st day of the 1st week, and 
++            // find how many days away we are from it.
++            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
++                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
++
++            // Round days to smoothen out 1 hr DST diff
++            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
++
++            // Calc. Full Weeks
++            var rem = daysDiff % 7;
++            var weeksDiff = (daysDiff - rem)/7;
++            weekNum = weeksDiff + 1;
++        }
++        return weekNum;
++    },
++
++    /**
++     * Get the first day of the week, for the give date. 
++     * @param {Date} dt The date in the week for which the first day is required.
++     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
++     * @return {Date} The first day of the week
++     */
++    getFirstDayOfWeek : function (dt, startOfWeek) {
++        startOfWeek = startOfWeek || 0;
++        var dayOfWeekIndex = dt.getDay(),
++            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
++
++        return this.subtract(dt, this.DAY, dayOfWeek);
++    },
++
++    /**
++    * Determines if a given week overlaps two different years.
++    * @method isYearOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different years.
++    */
++    isYearOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Determines if a given week overlaps two different months.
++    * @method isMonthOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different months.
++    */
++    isMonthOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Gets the first day of a month containing a given date.
++    * @method findMonthStart
++    * @param {Date} date The JavaScript Date used to calculate the month start
++    * @return {Date}  The JavaScript Date representing the first day of the month
++    */
++    findMonthStart : function(date) {
++        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
++        return start;
++    },
++
++    /**
++    * Gets the last day of a month containing a given date.
++    * @method findMonthEnd
++    * @param {Date} date The JavaScript Date used to calculate the month end
++    * @return {Date}  The JavaScript Date representing the last day of the month
++    */
++    findMonthEnd : function(date) {
++        var start = this.findMonthStart(date);
++        var nextMonth = this.add(start, this.MONTH, 1);
++        var end = this.subtract(nextMonth, this.DAY, 1);
++        return end;
++    },
++
++    /**
++    * Clears the time fields from a given date, effectively setting the time to 12 noon.
++    * @method clearTime
++    * @param {Date} date The JavaScript Date for which the time fields will be cleared
++    * @return {Date}  The JavaScript Date cleared of all time fields
++    */
++    clearTime : function(date) {
++        date.setHours(12,0,0,0);
++        return date;
++    },
++
++    /**
++     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
++     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
++     * set the year to 19xx if a year (xx) which is less than 100 is provided.
++     * <p>
++     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
++     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
++     * </p>
++     * @method getDate
++     * @param {Number} y Year.
++     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
++     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
++     * @return {Date} The JavaScript date object with year, month, date set as provided.
++     */
++    getDate : function(y, m, d) {
++        var dt = null;
++        if (YAHOO.lang.isUndefined(d)) {
++            d = 1;
++        }
++        if (y >= 100) {
++            dt = new Date(y, m, d);
++        } else {
++            dt = new Date();
++            dt.setFullYear(y);
++            dt.setMonth(m);
++            dt.setDate(d);
++            dt.setHours(0,0,0,0);
++        }
++        return dt;
++    }
++};
++/**
++* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month or
++* multi-month interface. Calendars are generated entirely via script and can be navigated without any page refreshes.
++* @module    calendar
++* @title    Calendar
++* @namespace  YAHOO.widget
++* @requires  yahoo,dom,event
++*/
++(function(){
++
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        DateMath = YAHOO.widget.DateMath;
++
++/**
++* Calendar is the base class for the Calendar widget. In its most basic
++* implementation, it has the ability to render a calendar widget on the page
++* that can be manipulated to select a single date, move back and forth between
++* months and years.
++* <p>To construct the placeholder for the calendar widget, the code is as
++* follows:
++*   <xmp>
++*       <div id="calContainer"></div>
++*   </xmp>
++* </p>
++* <p>
++* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
++* The Calendar can be constructed by simply providing a container ID string, 
++* or a reference to a container DIV HTMLElement (the element needs to exist 
++* in the document).
++* 
++* E.g.:
++*   <xmp>
++*       var c = new YAHOO.widget.Calendar("calContainer", configOptions);
++*   </xmp>
++* or:
++*   <xmp>
++*       var containerDiv = YAHOO.util.Dom.get("calContainer");
++*       var c = new YAHOO.widget.Calendar(containerDiv, configOptions);
++*   </xmp>
++* </p>
++* <p>
++* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
++* For example if an ID is not provided, and the container's ID is "calContainer", the Calendar's ID will be set to "calContainer_t".
++* </p>
++* 
++* @namespace YAHOO.widget
++* @class Calendar
++* @constructor
++* @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
++* @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
++* @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
++*/
++function Calendar(id, containerId, config) {
++    this.init.apply(this, arguments);
++}
++
++/**
++* The path to be used for images loaded for the Calendar
++* @property YAHOO.widget.Calendar.IMG_ROOT
++* @static
++* @deprecated   You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively
++* @type String
++*/
++Calendar.IMG_ROOT = null;
++
++/**
++* Type constant used for renderers to represent an individual date (M/D/Y)
++* @property YAHOO.widget.Calendar.DATE
++* @static
++* @final
++* @type String
++*/
++Calendar.DATE = "D";
++
++/**
++* Type constant used for renderers to represent an individual date across any year (M/D)
++* @property YAHOO.widget.Calendar.MONTH_DAY
++* @static
++* @final
++* @type String
++*/
++Calendar.MONTH_DAY = "MD";
++
++/**
++* Type constant used for renderers to represent a weekday
++* @property YAHOO.widget.Calendar.WEEKDAY
++* @static
++* @final
++* @type String
++*/
++Calendar.WEEKDAY = "WD";
++
++/**
++* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y)
++* @property YAHOO.widget.Calendar.RANGE
++* @static
++* @final
++* @type String
++*/
++Calendar.RANGE = "R";
++
++/**
++* Type constant used for renderers to represent a month across any year
++* @property YAHOO.widget.Calendar.MONTH
++* @static
++* @final
++* @type String
++*/
++Calendar.MONTH = "M";
++
++/**
++* Constant that represents the total number of date cells that are displayed in a given month
++* @property YAHOO.widget.Calendar.DISPLAY_DAYS
++* @static
++* @final
++* @type Number
++*/
++Calendar.DISPLAY_DAYS = 42;
++
++/**
++* Constant used for halting the execution of the remainder of the render stack
++* @property YAHOO.widget.Calendar.STOP_RENDER
++* @static
++* @final
++* @type String
++*/
++Calendar.STOP_RENDER = "S";
++
++/**
++* Constant used to represent short date field string formats (e.g. Tu or Feb)
++* @property YAHOO.widget.Calendar.SHORT
++* @static
++* @final
++* @type String
++*/
++Calendar.SHORT = "short";
++
++/**
++* Constant used to represent long date field string formats (e.g. Monday or February)
++* @property YAHOO.widget.Calendar.LONG
++* @static
++* @final
++* @type String
++*/
++Calendar.LONG = "long";
++
++/**
++* Constant used to represent medium date field string formats (e.g. Mon)
++* @property YAHOO.widget.Calendar.MEDIUM
++* @static
++* @final
++* @type String
++*/
++Calendar.MEDIUM = "medium";
++
++/**
++* Constant used to represent single character date field string formats (e.g. M, T, W)
++* @property YAHOO.widget.Calendar.ONE_CHAR
++* @static
++* @final
++* @type String
++*/
++Calendar.ONE_CHAR = "1char";
++
++/**
++* The set of default Config property keys and values for the Calendar.
++*
++* <p>
++* NOTE: This property is made public in order to allow users to change 
++* the default values of configuration properties. Users should not 
++* modify the key string, unless they are overriding the Calendar implementation
++* </p>
++*
++* <p>
++* The property is an object with key/value pairs, the key being the 
++* uppercase configuration property name and the value being an object 
++* literal with a key string property, and a value property, specifying the 
++* default value of the property. To override a default value, you can set
++* the value property, for example, <code>YAHOO.widget.Calendar.DEFAULT_CONFIG.MULTI_SELECT.value = true;</code>
++* 
++* @property YAHOO.widget.Calendar.DEFAULT_CONFIG
++* @static
++* @type Object
++*/
++
++Calendar.DEFAULT_CONFIG = {
++    YEAR_OFFSET : {key:"year_offset", value:0, supercedes:["pagedate", "selected", "mindate","maxdate"]},
++    TODAY : {key:"today", value:new Date(), supercedes:["pagedate"]}, 
++    PAGEDATE : {key:"pagedate", value:null},
++    SELECTED : {key:"selected", value:[]},
++    TITLE : {key:"title", value:""},
++    CLOSE : {key:"close", value:false},
++    IFRAME : {key:"iframe", value:(YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) ? true : false},
++    MINDATE : {key:"mindate", value:null},
++    MAXDATE : {key:"maxdate", value:null},
++    MULTI_SELECT : {key:"multi_select", value:false},
++    START_WEEKDAY : {key:"start_weekday", value:0},
++    SHOW_WEEKDAYS : {key:"show_weekdays", value:true},
++    SHOW_WEEK_HEADER : {key:"show_week_header", value:false},
++    SHOW_WEEK_FOOTER : {key:"show_week_footer", value:false},
++    HIDE_BLANK_WEEKS : {key:"hide_blank_weeks", value:false},
++    NAV_ARROW_LEFT: {key:"nav_arrow_left", value:null} ,
++    NAV_ARROW_RIGHT : {key:"nav_arrow_right", value:null} ,
++    MONTHS_SHORT : {key:"months_short", value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]},
++    MONTHS_LONG: {key:"months_long", value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]},
++    WEEKDAYS_1CHAR: {key:"weekdays_1char", value:["S", "M", "T", "W", "T", "F", "S"]},
++    WEEKDAYS_SHORT: {key:"weekdays_short", value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]},
++    WEEKDAYS_MEDIUM: {key:"weekdays_medium", value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
++    WEEKDAYS_LONG: {key:"weekdays_long", value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]},
++    LOCALE_MONTHS:{key:"locale_months", value:"long"},
++    LOCALE_WEEKDAYS:{key:"locale_weekdays", value:"short"},
++    DATE_DELIMITER:{key:"date_delimiter", value:","},
++    DATE_FIELD_DELIMITER:{key:"date_field_delimiter", value:"/"},
++    DATE_RANGE_DELIMITER:{key:"date_range_delimiter", value:"-"},
++    MY_MONTH_POSITION:{key:"my_month_position", value:1},
++    MY_YEAR_POSITION:{key:"my_year_position", value:2},
++    MD_MONTH_POSITION:{key:"md_month_position", value:1},
++    MD_DAY_POSITION:{key:"md_day_position", value:2},
++    MDY_MONTH_POSITION:{key:"mdy_month_position", value:1},
++    MDY_DAY_POSITION:{key:"mdy_day_position", value:2},
++    MDY_YEAR_POSITION:{key:"mdy_year_position", value:3},
++    MY_LABEL_MONTH_POSITION:{key:"my_label_month_position", value:1},
++    MY_LABEL_YEAR_POSITION:{key:"my_label_year_position", value:2},
++    MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix", value:" "},
++    MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix", value:""},
++    NAV: {key:"navigator", value: null},
++    STRINGS : { 
++        key:"strings",
++        value: {
++            previousMonth : "Previous Month",
++            nextMonth : "Next Month",
++            close: "Close"
++        },
++        supercedes : ["close", "title"]
++    }
++};
++
++/**
++* The set of default Config property keys and values for the Calendar
++* @property YAHOO.widget.Calendar._DEFAULT_CONFIG
++* @deprecated Made public. See the public DEFAULT_CONFIG property for details
++* @final
++* @static
++* @private
++* @type Object
++*/
++Calendar._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
++
++var DEF_CFG = Calendar.DEFAULT_CONFIG;
++
++/**
++* The set of Custom Event types supported by the Calendar
++* @property YAHOO.widget.Calendar._EVENT_TYPES
++* @final
++* @static
++* @private
++* @type Object
++*/
++Calendar._EVENT_TYPES = {
++    BEFORE_SELECT : "beforeSelect", 
++    SELECT : "select",
++    BEFORE_DESELECT : "beforeDeselect",
++    DESELECT : "deselect",
++    CHANGE_PAGE : "changePage",
++    BEFORE_RENDER : "beforeRender",
++    RENDER : "render",
++    BEFORE_DESTROY : "beforeDestroy",
++    DESTROY : "destroy",
++    RESET : "reset",
++    CLEAR : "clear",
++    BEFORE_HIDE : "beforeHide",
++    HIDE : "hide",
++    BEFORE_SHOW : "beforeShow",
++    SHOW : "show",
++    BEFORE_HIDE_NAV : "beforeHideNav",
++    HIDE_NAV : "hideNav",
++    BEFORE_SHOW_NAV : "beforeShowNav",
++    SHOW_NAV : "showNav",
++    BEFORE_RENDER_NAV : "beforeRenderNav",
++    RENDER_NAV : "renderNav"
++};
++
++/**
++* The set of default style constants for the Calendar
++* @property YAHOO.widget.Calendar.STYLES
++* @static
++* @type Object An object with name/value pairs for the class name identifier/value.
++*/
++Calendar.STYLES = {
++    CSS_ROW_HEADER: "calrowhead",
++    CSS_ROW_FOOTER: "calrowfoot",
++    CSS_CELL : "calcell",
++    CSS_CELL_SELECTOR : "selector",
++    CSS_CELL_SELECTED : "selected",
++    CSS_CELL_SELECTABLE : "selectable",
++    CSS_CELL_RESTRICTED : "restricted",
++    CSS_CELL_TODAY : "today",
++    CSS_CELL_OOM : "oom",
++    CSS_CELL_OOB : "previous",
++    CSS_HEADER : "calheader",
++    CSS_HEADER_TEXT : "calhead",
++    CSS_BODY : "calbody",
++    CSS_WEEKDAY_CELL : "calweekdaycell",
++    CSS_WEEKDAY_ROW : "calweekdayrow",
++    CSS_FOOTER : "calfoot",
++    CSS_CALENDAR : "yui-calendar",
++    CSS_SINGLE : "single",
++    CSS_CONTAINER : "yui-calcontainer",
++    CSS_NAV_LEFT : "calnavleft",
++    CSS_NAV_RIGHT : "calnavright",
++    CSS_NAV : "calnav",
++    CSS_CLOSE : "calclose",
++    CSS_CELL_TOP : "calcelltop",
++    CSS_CELL_LEFT : "calcellleft",
++    CSS_CELL_RIGHT : "calcellright",
++    CSS_CELL_BOTTOM : "calcellbottom",
++    CSS_CELL_HOVER : "calcellhover",
++    CSS_CELL_HIGHLIGHT1 : "highlight1",
++    CSS_CELL_HIGHLIGHT2 : "highlight2",
++    CSS_CELL_HIGHLIGHT3 : "highlight3",
++    CSS_CELL_HIGHLIGHT4 : "highlight4",
++    CSS_WITH_TITLE: "withtitle",
++    CSS_FIXED_SIZE: "fixedsize",
++    CSS_LINK_CLOSE: "link-close"
++};
++
++/**
++* The set of default style constants for the Calendar
++* @property YAHOO.widget.Calendar._STYLES
++* @deprecated Made public. See the public STYLES property for details
++* @final
++* @static
++* @private
++* @type Object
++*/
++Calendar._STYLES = Calendar.STYLES;
++
++Calendar.prototype = {
++
++    /**
++    * The configuration object used to set up the calendars various locale and style options.
++    * @property Config
++    * @private
++    * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty.
++    * @type Object
++    */
++    Config : null,
++
++    /**
++    * The parent CalendarGroup, only to be set explicitly by the parent group
++    * @property parent
++    * @type CalendarGroup
++    */ 
++    parent : null,
++
++    /**
++    * The index of this item in the parent group
++    * @property index
++    * @type Number
++    */
++    index : -1,
++
++    /**
++    * The collection of calendar table cells
++    * @property cells
++    * @type HTMLTableCellElement[]
++    */
++    cells : null,
++
++    /**
++    * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D].
++    * @property cellDates
++    * @type Array[](Number[])
++    */
++    cellDates : null,
++
++    /**
++    * The id that uniquely identifies this Calendar.
++    * @property id
++    * @type String
++    */
++    id : null,
++
++    /**
++    * The unique id associated with the Calendar's container
++    * @property containerId
++    * @type String
++    */
++    containerId: null,
++
++    /**
++    * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered.
++    * @property oDomContainer
++    * @type HTMLElement
++    */
++    oDomContainer : null,
++
++    /**
++    * A Date object representing today's date.
++    * @deprecated Use the "today" configuration property
++    * @property today
++    * @type Date
++    */
++    today : null,
++
++    /**
++    * The list of render functions, along with required parameters, used to render cells. 
++    * @property renderStack
++    * @type Array[]
++    */
++    renderStack : null,
++
++    /**
++    * A copy of the initial render functions created before rendering.
++    * @property _renderStack
++    * @private
++    * @type Array
++    */
++    _renderStack : null,
++
++    /**
++    * A reference to the CalendarNavigator instance created for this Calendar.
++    * Will be null if the "navigator" configuration property has not been set
++    * @property oNavigator
++    * @type CalendarNavigator
++    */
++    oNavigator : null,
++
++    /**
++    * The private list of initially selected dates.
++    * @property _selectedDates
++    * @private
++    * @type Array
++    */
++    _selectedDates : null,
++
++    /**
++    * A map of DOM event handlers to attach to cells associated with specific CSS class names
++    * @property domEventMap
++    * @type Object
++    */
++    domEventMap : null,
++
++    /**
++     * Protected helper used to parse Calendar constructor/init arguments.
++     *
++     * As of 2.4.0, Calendar supports a simpler constructor 
++     * signature. This method reconciles arguments
++     * received in the pre 2.4.0 and 2.4.0 formats.
++     * 
++     * @protected
++     * @method _parseArgs
++     * @param {Array} Function "arguments" array
++     * @return {Object} Object with id, container, config properties containing
++     * the reconciled argument values.
++     **/
++    _parseArgs : function(args) {
++        /*
++           2.4.0 Constructors signatures
++
++           new Calendar(String)
++           new Calendar(HTMLElement)
++           new Calendar(String, ConfigObject)
++           new Calendar(HTMLElement, ConfigObject)
++
++           Pre 2.4.0 Constructor signatures
++
++           new Calendar(String, String)
++           new Calendar(String, HTMLElement)
++           new Calendar(String, String, ConfigObject)
++           new Calendar(String, HTMLElement, ConfigObject)
++         */
++        var nArgs = {id:null, container:null, config:null};
++
++        if (args && args.length && args.length > 0) {
++            switch (args.length) {
++                case 1:
++                    nArgs.id = null;
++                    nArgs.container = args[0];
++                    nArgs.config = null;
++                    break;
++                case 2:
++                    if (Lang.isObject(args[1]) && !args[1].tagName && !(args[1] instanceof String)) {
++                        nArgs.id = null;
++                        nArgs.container = args[0];
++                        nArgs.config = args[1];
++                    } else {
++                        nArgs.id = args[0];
++                        nArgs.container = args[1];
++                        nArgs.config = null;
++                    }
++                    break;
++                default: // 3+
++                    nArgs.id = args[0];
++                    nArgs.container = args[1];
++                    nArgs.config = args[2];
++                    break;
++            }
++        } else {
++            this.logger.log("Invalid constructor/init arguments", "error");
++        }
++        return nArgs;
++    },
++
++    /**
++    * Initializes the Calendar widget.
++    * @method init
++    *
++    * @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
++    * @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
++    * @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
++    */
++    init : function(id, container, config) {
++        // Normalize 2.4.0, pre 2.4.0 args
++        var nArgs = this._parseArgs(arguments);
++
++        id = nArgs.id;
++        container = nArgs.container;
++        config = nArgs.config;
++
++        this.oDomContainer = Dom.get(container);
++        if (!this.oDomContainer) { this.logger.log("Container not found in document.", "error"); }
++
++        if (!this.oDomContainer.id) {
++            this.oDomContainer.id = Dom.generateId();
++        }
++        if (!id) {
++            id = this.oDomContainer.id + "_t";
++        }
++
++        this.id = id;
++        this.containerId = this.oDomContainer.id;
++
++        this.logger = new YAHOO.widget.LogWriter("Calendar " + this.id);
++        this.initEvents();
++
++        /**
++        * The Config object used to hold the configuration variables for the Calendar
++        * @property cfg
++        * @type YAHOO.util.Config
++        */
++        this.cfg = new YAHOO.util.Config(this);
++
++        /**
++        * The local object which contains the Calendar's options
++        * @property Options
++        * @type Object
++        */
++        this.Options = {};
++
++        /**
++        * The local object which contains the Calendar's locale settings
++        * @property Locale
++        * @type Object
++        */
++        this.Locale = {};
++
++        this.initStyles();
++
++        Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
++        Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE);
++
++        this.cellDates = [];
++        this.cells = [];
++        this.renderStack = [];
++        this._renderStack = [];
++
++        this.setupConfig();
++
++        if (config) {
++            this.cfg.applyConfig(config, true);
++        }
++
++        this.cfg.fireQueue();
++
++        this.today = this.cfg.getProperty("today");
++    },
++
++    /**
++    * Default Config listener for the iframe property. If the iframe config property is set to true, 
++    * renders the built-in IFRAME shim if the container is relatively or absolutely positioned.
++    * 
++    * @method configIframe
++    */
++    configIframe : function(type, args, obj) {
++        var useIframe = args[0];
++    
++        if (!this.parent) {
++            if (Dom.inDocument(this.oDomContainer)) {
++                if (useIframe) {
++                    var pos = Dom.getStyle(this.oDomContainer, "position");
++                    
++                    if (pos == "absolute" || pos == "relative") {
++                        
++                        if (!Dom.inDocument(this.iframe)) {
++                            this.iframe = document.createElement("iframe");
++                            this.iframe.src = "javascript:false;";
++    
++                            Dom.setStyle(this.iframe, "opacity", "0");
++    
++                            if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
++                                Dom.addClass(this.iframe, this.Style.CSS_FIXED_SIZE);
++                            }
++    
++                            this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild);
++                        }
++                    }
++                } else {
++                    if (this.iframe) {
++                        if (this.iframe.parentNode) {
++                            this.iframe.parentNode.removeChild(this.iframe);
++                        }
++                        this.iframe = null;
++                    }
++                }
++            }
++        }
++    },
++
++    /**
++    * Default handler for the "title" property
++    * @method configTitle
++    */
++    configTitle : function(type, args, obj) {
++        var title = args[0];
++
++        // "" disables title bar
++        if (title) {
++            this.createTitleBar(title);
++        } else {
++            var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
++            if (!close) {
++                this.removeTitleBar();
++            } else {
++                this.createTitleBar("&#160;");
++            }
++        }
++    },
++    
++    /**
++    * Default handler for the "close" property
++    * @method configClose
++    */
++    configClose : function(type, args, obj) {
++        var close = args[0],
++            title = this.cfg.getProperty(DEF_CFG.TITLE.key);
++    
++        if (close) {
++            if (!title) {
++                this.createTitleBar("&#160;");
++            }
++            this.createCloseButton();
++        } else {
++            this.removeCloseButton();
++            if (!title) {
++                this.removeTitleBar();
++            }
++        }
++    },
++
++    /**
++    * Initializes Calendar's built-in CustomEvents
++    * @method initEvents
++    */
++    initEvents : function() {
++
++        var defEvents = Calendar._EVENT_TYPES,
++            CE = YAHOO.util.CustomEvent,
++            cal = this; // To help with minification
++
++        /**
++        * Fired before a date selection is made
++        * @event beforeSelectEvent
++        */
++        cal.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT); 
++
++        /**
++        * Fired when a date selection is made
++        * @event selectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        cal.selectEvent = new CE(defEvents.SELECT);
++
++        /**
++        * Fired before a date or set of dates is deselected
++        * @event beforeDeselectEvent
++        */
++        cal.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
++
++        /**
++        * Fired when a date or set of dates is deselected
++        * @event deselectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        cal.deselectEvent = new CE(defEvents.DESELECT);
++    
++        /**
++        * Fired when the Calendar page is changed
++        * @event changePageEvent
++        * @param {Date} prevDate The date before the page was changed
++        * @param {Date} newDate The date after the page was changed
++        */
++        cal.changePageEvent = new CE(defEvents.CHANGE_PAGE);
++    
++        /**
++        * Fired before the Calendar is rendered
++        * @event beforeRenderEvent
++        */
++        cal.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
++    
++        /**
++        * Fired when the Calendar is rendered
++        * @event renderEvent
++        */
++        cal.renderEvent = new CE(defEvents.RENDER);
++
++        /**
++        * Fired just before the Calendar is to be destroyed
++        * @event beforeDestroyEvent
++        */
++        cal.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
++
++        /**
++        * Fired after the Calendar is destroyed. This event should be used
++        * for notification only. When this event is fired, important Calendar instance
++        * properties, dom references and event listeners have already been 
++        * removed/dereferenced, and hence the Calendar instance is not in a usable 
++        * state.
++        *
++        * @event destroyEvent
++        */
++        cal.destroyEvent = new CE(defEvents.DESTROY);
++
++        /**
++        * Fired when the Calendar is reset
++        * @event resetEvent
++        */
++        cal.resetEvent = new CE(defEvents.RESET);
++
++        /**
++        * Fired when the Calendar is cleared
++        * @event clearEvent
++        */
++        cal.clearEvent = new CE(defEvents.CLEAR);
++
++        /**
++        * Fired just before the Calendar is to be shown
++        * @event beforeShowEvent
++        */
++        cal.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
++
++        /**
++        * Fired after the Calendar is shown
++        * @event showEvent
++        */
++        cal.showEvent = new CE(defEvents.SHOW);
++
++        /**
++        * Fired just before the Calendar is to be hidden
++        * @event beforeHideEvent
++        */
++        cal.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
++
++        /**
++        * Fired after the Calendar is hidden
++        * @event hideEvent
++        */
++        cal.hideEvent = new CE(defEvents.HIDE);
++
++        /**
++        * Fired just before the CalendarNavigator is to be shown
++        * @event beforeShowNavEvent
++        */
++        cal.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
++    
++        /**
++        * Fired after the CalendarNavigator is shown
++        * @event showNavEvent
++        */
++        cal.showNavEvent = new CE(defEvents.SHOW_NAV);
++    
++        /**
++        * Fired just before the CalendarNavigator is to be hidden
++        * @event beforeHideNavEvent
++        */
++        cal.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
++    
++        /**
++        * Fired after the CalendarNavigator is hidden
++        * @event hideNavEvent
++        */
++        cal.hideNavEvent = new CE(defEvents.HIDE_NAV);
++
++        /**
++        * Fired just before the CalendarNavigator is to be rendered
++        * @event beforeRenderNavEvent
++        */
++        cal.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
++
++        /**
++        * Fired after the CalendarNavigator is rendered
++        * @event renderNavEvent
++        */
++        cal.renderNavEvent = new CE(defEvents.RENDER_NAV);
++
++        cal.beforeSelectEvent.subscribe(cal.onBeforeSelect, this, true);
++        cal.selectEvent.subscribe(cal.onSelect, this, true);
++        cal.beforeDeselectEvent.subscribe(cal.onBeforeDeselect, this, true);
++        cal.deselectEvent.subscribe(cal.onDeselect, this, true);
++        cal.changePageEvent.subscribe(cal.onChangePage, this, true);
++        cal.renderEvent.subscribe(cal.onRender, this, true);
++        cal.resetEvent.subscribe(cal.onReset, this, true);
++        cal.clearEvent.subscribe(cal.onClear, this, true);
++    },
++
++    /**
++    * The default event handler for clicks on the "Previous Month" navigation UI
++    *
++    * @method doPreviousMonthNav
++    * @param {DOMEvent} e The DOM event
++    * @param {Calendar} cal A reference to the calendar
++    */
++    doPreviousMonthNav : function(e, cal) {
++        Event.preventDefault(e);
++        // previousMonth invoked in a timeout, to allow
++        // event to bubble up, with correct target. Calling
++        // previousMonth, will call render which will remove 
++        // HTML which generated the event, resulting in an 
++        // invalid event target in certain browsers.
++        setTimeout(function() {
++            cal.previousMonth();
++            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_LEFT, "a", cal.oDomContainer);
++            if (navs && navs[0]) {
++                try {
++                    navs[0].focus();
++                } catch (ex) {
++                    // ignore
++                }
++            }
++        }, 0);
++    },
++
++    /**
++     * The default event handler for clicks on the "Next Month" navigation UI
++     *
++     * @method doNextMonthNav
++     * @param {DOMEvent} e The DOM event
++     * @param {Calendar} cal A reference to the calendar
++     */
++    doNextMonthNav : function(e, cal) {
++        Event.preventDefault(e);
++        setTimeout(function() {
++            cal.nextMonth();
++            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_RIGHT, "a", cal.oDomContainer);
++            if (navs && navs[0]) {
++                try {
++                    navs[0].focus();
++                } catch (ex) {
++                    // ignore
++                }
++            }
++        }, 0);
++    },
++
++    /**
++    * The default event handler for date cell selection. Currently attached to 
++    * the Calendar's bounding box, referenced by it's <a href="#property_oDomContainer">oDomContainer</a> property.
++    *
++    * @method doSelectCell
++    * @param {DOMEvent} e The DOM event
++    * @param {Calendar} cal A reference to the calendar
++    */
++    doSelectCell : function(e, cal) {
++        var cell, d, date, index;
++
++        var target = Event.getTarget(e),
++            tagName = target.tagName.toLowerCase(),
++            defSelector = false;
++
++        while (tagName != "td" && !Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
++
++            if (!defSelector && tagName == "a" && Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
++                defSelector = true;
++            }
++
++            target = target.parentNode;
++            tagName = target.tagName.toLowerCase();
++
++            if (target == this.oDomContainer || tagName == "html") {
++                return;
++            }
++        }
++
++        if (defSelector) {
++            // Stop link href navigation for default renderer
++            Event.preventDefault(e);
++        }
++    
++        cell = target;
++
++        if (Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
++            index = cal.getIndexFromId(cell.id);
++            if (index > -1) {
++                d = cal.cellDates[index];
++                if (d) {
++                    date = DateMath.getDate(d[0],d[1]-1,d[2]);
++                
++                    var link;
++
++                    cal.logger.log("Selecting cell " + index + " via click", "info");
++                    if (cal.Options.MULTI_SELECT) {
++                        link = cell.getElementsByTagName("a")[0];
++                        if (link) {
++                            link.blur();
++                        }
++
++                        var cellDate = cal.cellDates[index];
++                        var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
++
++                        if (cellDateIndex > -1) { 
++                            cal.deselectCell(index);
++                        } else {
++                            cal.selectCell(index);
++                        } 
++
++                    } else {
++                        link = cell.getElementsByTagName("a")[0];
++                        if (link) {
++                            link.blur();
++                        }
++                        cal.selectCell(index);
++                    }
++                }
++            }
++        }
++    },
++
++    /**
++    * The event that is executed when the user hovers over a cell
++    * @method doCellMouseOver
++    * @param {DOMEvent} e The event
++    * @param {Calendar} cal A reference to the calendar passed by the Event utility
++    */
++    doCellMouseOver : function(e, cal) {
++        var target;
++        if (e) {
++            target = Event.getTarget(e);
++        } else {
++            target = this;
++        }
++
++        while (target.tagName && target.tagName.toLowerCase() != "td") {
++            target = target.parentNode;
++            if (!target.tagName || target.tagName.toLowerCase() == "html") {
++                return;
++            }
++        }
++
++        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
++            Dom.addClass(target, cal.Style.CSS_CELL_HOVER);
++        }
++    },
++
++    /**
++    * The event that is executed when the user moves the mouse out of a cell
++    * @method doCellMouseOut
++    * @param {DOMEvent} e The event
++    * @param {Calendar} cal A reference to the calendar passed by the Event utility
++    */
++    doCellMouseOut : function(e, cal) {
++        var target;
++        if (e) {
++            target = Event.getTarget(e);
++        } else {
++            target = this;
++        }
++
++        while (target.tagName && target.tagName.toLowerCase() != "td") {
++            target = target.parentNode;
++            if (!target.tagName || target.tagName.toLowerCase() == "html") {
++                return;
++            }
++        }
++
++        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
++            Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
++        }
++    },
++
++    setupConfig : function() {
++
++        var cfg = this.cfg;
++
++        /**
++        * The date to use to represent "Today".
++        *
++        * @config today
++        * @type Date
++        * @default The client side date (new Date()) when the Calendar is instantiated.
++        */
++        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler:this.configToday, suppressEvent:true } );
++
++        /**
++        * The month/year representing the current visible Calendar date (mm/yyyy)
++        * @config pagedate
++        * @type String | Date
++        * @default Today's date
++        */
++        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
++
++        /**
++        * The date or range of dates representing the current Calendar selection
++        * @config selected
++        * @type String
++        * @default []
++        */
++        cfg.addProperty(DEF_CFG.SELECTED.key, { value:DEF_CFG.SELECTED.value.concat(), handler:this.configSelected } );
++
++        /**
++        * The title to display above the Calendar's month header
++        * @config title
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
++
++        /**
++        * Whether or not a close button should be displayed for this Calendar
++        * @config close
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
++
++        /**
++        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
++        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
++        * enabled if required.
++        * 
++        * @config iframe
++        * @type Boolean
++        * @default true for IE6 and below, false for all other browsers
++        */
++        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
++
++        /**
++        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config mindate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.configMinDate } );
++
++        /**
++        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config maxdate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.configMaxDate } );
++
++        // Options properties
++    
++        /**
++        * True if the Calendar should allow multiple selections. False by default.
++        * @config MULTI_SELECT
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++
++        /**
++        * The weekday the week begins on. Default is 0 (Sunday = 0, Monday = 1 ... Saturday = 6).
++        * @config START_WEEKDAY
++        * @type number
++        * @default 0
++        */
++        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.configOptions, validator:cfg.checkNumber  } );
++    
++        /**
++        * True if the Calendar should show weekday labels. True by default.
++        * @config SHOW_WEEKDAYS
++        * @type Boolean
++        * @default true
++        */
++        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.configOptions, validator:cfg.checkBoolean  } );
++    
++        /**
++        * True if the Calendar should show week row headers. False by default.
++        * @config SHOW_WEEK_HEADER
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key, { value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++    
++        /**
++        * True if the Calendar should show week row footers. False by default.
++        * @config SHOW_WEEK_FOOTER
++        * @type Boolean
++        * @default false
++        */ 
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++    
++        /**
++        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
++        * @config HIDE_BLANK_WEEKS
++        * @type Boolean
++        * @default false
++        */ 
++        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key, { value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++        
++        /**
++        * The image that should be used for the left navigation arrow.
++        * @config NAV_ARROW_LEFT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"  
++        * @default null
++        */ 
++        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.configOptions } );
++    
++        /**
++        * The image that should be used for the right navigation arrow.
++        * @config NAV_ARROW_RIGHT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
++        * @default null
++        */ 
++        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.configOptions } );
++    
++        // Locale properties
++    
++        /**
++        * The short month labels for the current locale.
++        * @config MONTHS_SHORT
++        * @type String[]
++        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
++        */
++        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.configLocale } );
++        
++        /**
++        * The long month labels for the current locale.
++        * @config MONTHS_LONG
++        * @type String[]
++        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
++        */ 
++        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.configLocale } );
++
++        /**
++        * The 1-character weekday labels for the current locale.
++        * @config WEEKDAYS_1CHAR
++        * @type String[]
++        * @default ["S", "M", "T", "W", "T", "F", "S"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.configLocale } );
++        
++        /**
++        * The short weekday labels for the current locale.
++        * @config WEEKDAYS_SHORT
++        * @type String[]
++        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.configLocale } );
++        
++        /**
++        * The medium weekday labels for the current locale.
++        * @config WEEKDAYS_MEDIUM
++        * @type String[]
++        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.configLocale } );
++        
++        /**
++        * The long weekday labels for the current locale.
++        * @config WEEKDAYS_LONG
++        * @type String[]
++        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.configLocale } );
++
++        /**
++        * Refreshes the locale values used to build the Calendar.
++        * @method refreshLocale
++        * @private
++        */
++        var refreshLocale = function() {
++            cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
++            cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
++        };
++    
++        cfg.subscribeToConfigEvent(DEF_CFG.START_WEEKDAY.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_SHORT.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_LONG.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_1CHAR.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_SHORT.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_MEDIUM.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_LONG.key, refreshLocale, this, true);
++       
++        /**
++        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
++        * @config LOCALE_MONTHS
++        * @type String
++        * @default "long"
++        */ 
++        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.configLocaleValues } );
++        
++        /**
++        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
++        * @config LOCALE_WEEKDAYS
++        * @type String
++        * @default "short"
++        */ 
++        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.configLocaleValues } );
++
++        /**
++        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
++        * be used when displaying and parsing dates. NOTE: All JS Date objects returned by methods, or expected as input by
++        * methods will always represent the Gregorian year, in order to maintain date/month/week values. 
++        *
++        * @config YEAR_OFFSET
++        * @type Number
++        * @default 0
++        */
++        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, handler:this.configLocale  } );
++    
++        /**
++        * The value used to delimit individual dates in a date string passed to various Calendar functions.
++        * @config DATE_DELIMITER
++        * @type String
++        * @default ","
++        */ 
++        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.configLocale } );
++    
++        /**
++        * The value used to delimit date fields in a date string passed to various Calendar functions.
++        * @config DATE_FIELD_DELIMITER
++        * @type String
++        * @default "/"
++        */ 
++        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key, { value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.configLocale } );
++    
++        /**
++        * The value used to delimit date ranges in a date string passed to various Calendar functions.
++        * @config DATE_RANGE_DELIMITER
++        * @type String
++        * @default "-"
++        */
++        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key, { value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.configLocale } );
++    
++        /**
++        * The position of the month in a month/year date string
++        * @config MY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in a month/year date string
++        * @config MY_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the month in a month/day date string
++        * @config MD_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the day in a month/year date string
++        * @config MD_DAY_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the month in a month/day/year date string
++        * @config MDY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the day in a month/day/year date string
++        * @config MDY_DAY_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in a month/day/year date string
++        * @config MDY_YEAR_POSITION
++        * @type Number
++        * @default 3
++        */
++        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the month in the month year label string used as the Calendar header
++        * @config MY_LABEL_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in the month year label string used as the Calendar header
++        * @config MY_LABEL_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++        
++        /**
++        * The suffix used after the month when rendering the Calendar header
++        * @config MY_LABEL_MONTH_SUFFIX
++        * @type String
++        * @default " "
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.configLocale } );
++        
++        /**
++        * The suffix used after the year when rendering the Calendar header
++        * @config MY_LABEL_YEAR_SUFFIX
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.configLocale } );
++
++        /**
++        * Configuration for the Month/Year CalendarNavigator UI which allows the user to jump directly to a 
++        * specific Month/Year without having to scroll sequentially through months.
++        * <p>
++        * Setting this property to null (default value) or false, will disable the CalendarNavigator UI.
++        * </p>
++        * <p>
++        * Setting this property to true will enable the CalendarNavigatior UI with the default CalendarNavigator configuration values.
++        * </p>
++        * <p>
++        * This property can also be set to an object literal containing configuration properties for the CalendarNavigator UI.
++        * The configuration object expects the the following case-sensitive properties, with the "strings" property being a nested object.
++        * Any properties which are not provided will use the default values (defined in the CalendarNavigator class).
++        * </p>
++        * <dl>
++        * <dt>strings</dt>
++        * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
++        *     <dl>
++        *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
++        *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
++        *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
++        *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
++        *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
++        *     </dl>
++        * </dd>
++        * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
++        * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
++        * </dl>
++        * <p>E.g.</p>
++        * <pre>
++        * var navConfig = {
++        *   strings: {
++        *    month:"Calendar Month",
++        *    year:"Calendar Year",
++        *    submit: "Submit",
++        *    cancel: "Cancel",
++        *    invalidYear: "Please enter a valid year"
++        *   },
++        *   monthFormat: YAHOO.widget.Calendar.SHORT,
++        *   initialFocus: "month"
++        * }
++        * </pre>
++        * @config navigator
++        * @type {Object|Boolean}
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
++
++        /**
++         * The map of UI strings which the Calendar UI uses.
++         *
++         * @config strings
++         * @type {Object}
++         * @default An object with the properties shown below:
++         *     <dl>
++         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
++         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
++         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
++         *     </dl>
++         */
++        cfg.addProperty(DEF_CFG.STRINGS.key, { 
++            value:DEF_CFG.STRINGS.value,
++            handler:this.configStrings,
++            validator: function(val) {
++                return Lang.isObject(val);
++            },
++            supercedes:DEF_CFG.STRINGS.supercedes
++        });
++    },
++
++    /**
++    * The default handler for the "strings" property
++    * @method configStrings
++    */
++    configStrings : function(type, args, obj) {
++        var val = Lang.merge(DEF_CFG.STRINGS.value, args[0]);
++        this.cfg.setProperty(DEF_CFG.STRINGS.key, val, true);
++    },
++
++    /**
++    * The default handler for the "pagedate" property
++    * @method configPageDate
++    */
++    configPageDate : function(type, args, obj) {
++        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, this._parsePageDate(args[0]), true);
++    },
++
++    /**
++    * The default handler for the "mindate" property
++    * @method configMinDate
++    */
++    configMinDate : function(type, args, obj) {
++        var val = args[0];
++        if (Lang.isString(val)) {
++            val = this._parseDate(val);
++            this.cfg.setProperty(DEF_CFG.MINDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
++        }
++    },
++
++    /**
++    * The default handler for the "maxdate" property
++    * @method configMaxDate
++    */
++    configMaxDate : function(type, args, obj) {
++        var val = args[0];
++        if (Lang.isString(val)) {
++            val = this._parseDate(val);
++            this.cfg.setProperty(DEF_CFG.MAXDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
++        }
++    },
++
++    /**
++    * The default handler for the "today" property
++    * @method configToday
++    */
++    configToday : function(type, args, obj) {
++        // Only do this for initial set. Changing the today property after the initial
++        // set, doesn't affect pagedate
++        var val = args[0];
++        if (Lang.isString(val)) {
++            val = this._parseDate(val);
++        }
++        var today = DateMath.clearTime(val);
++        if (!this.cfg.initialConfig[DEF_CFG.PAGEDATE.key]) {
++            this.cfg.setProperty(DEF_CFG.PAGEDATE.key, today);
++        }
++        this.today = today;
++        this.cfg.setProperty(DEF_CFG.TODAY.key, today, true);
++    },
++
++    /**
++    * The default handler for the "selected" property
++    * @method configSelected
++    */
++    configSelected : function(type, args, obj) {
++        var selected = args[0],
++            cfgSelected = DEF_CFG.SELECTED.key;
++        
++        if (selected) {
++            if (Lang.isString(selected)) {
++                this.cfg.setProperty(cfgSelected, this._parseDates(selected), true);
++            } 
++        }
++        if (! this._selectedDates) {
++            this._selectedDates = this.cfg.getProperty(cfgSelected);
++        }
++    },
++    
++    /**
++    * The default handler for all configuration options properties
++    * @method configOptions
++    */
++    configOptions : function(type, args, obj) {
++        this.Options[type.toUpperCase()] = args[0];
++    },
++
++    /**
++    * The default handler for all configuration locale properties
++    * @method configLocale
++    */
++    configLocale : function(type, args, obj) {
++        this.Locale[type.toUpperCase()] = args[0];
++
++        this.cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
++        this.cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
++    },
++    
++    /**
++    * The default handler for all configuration locale field length properties
++    * @method configLocaleValues
++    */
++    configLocaleValues : function(type, args, obj) {
++
++        type = type.toLowerCase();
++
++        var val = args[0],
++            cfg = this.cfg,
++            Locale = this.Locale;
++
++        switch (type) {
++            case DEF_CFG.LOCALE_MONTHS.key:
++                switch (val) {
++                    case Calendar.SHORT:
++                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_SHORT.key).concat();
++                        break;
++                    case Calendar.LONG:
++                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_LONG.key).concat();
++                        break;
++                }
++                break;
++            case DEF_CFG.LOCALE_WEEKDAYS.key:
++                switch (val) {
++                    case Calendar.ONE_CHAR:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_1CHAR.key).concat();
++                        break;
++                    case Calendar.SHORT:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_SHORT.key).concat();
++                        break;
++                    case Calendar.MEDIUM:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_MEDIUM.key).concat();
++                        break;
++                    case Calendar.LONG:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_LONG.key).concat();
++                        break;
++                }
++                
++                var START_WEEKDAY = cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
++    
++                if (START_WEEKDAY > 0) {
++                    for (var w=0; w < START_WEEKDAY; ++w) {
++                        Locale.LOCALE_WEEKDAYS.push(Locale.LOCALE_WEEKDAYS.shift());
++                    }
++                }
++                break;
++        }
++    },
++
++    /**
++     * The default handler for the "navigator" property
++     * @method configNavigator
++     */
++    configNavigator : function(type, args, obj) {
++        var val = args[0];
++        if (YAHOO.widget.CalendarNavigator && (val === true || Lang.isObject(val))) {
++            if (!this.oNavigator) {
++                this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
++                // Cleanup DOM Refs/Events before innerHTML is removed.
++                this.beforeRenderEvent.subscribe(function () {
++                    if (!this.pages) {
++                        this.oNavigator.erase();
++                    }
++                }, this, true);
++            }
++        } else {
++            if (this.oNavigator) {
++                this.oNavigator.destroy();
++                this.oNavigator = null;
++            }
++        }
++    },
++
++    /**
++    * Defines the style constants for the Calendar
++    * @method initStyles
++    */
++    initStyles : function() {
++
++        var defStyle = Calendar.STYLES;
++
++        this.Style = {
++            /**
++            * @property Style.CSS_ROW_HEADER
++            */
++            CSS_ROW_HEADER: defStyle.CSS_ROW_HEADER,
++            /**
++            * @property Style.CSS_ROW_FOOTER
++            */
++            CSS_ROW_FOOTER: defStyle.CSS_ROW_FOOTER,
++            /**
++            * @property Style.CSS_CELL
++            */
++            CSS_CELL : defStyle.CSS_CELL,
++            /**
++            * @property Style.CSS_CELL_SELECTOR
++            */
++            CSS_CELL_SELECTOR : defStyle.CSS_CELL_SELECTOR,
++            /**
++            * @property Style.CSS_CELL_SELECTED
++            */
++            CSS_CELL_SELECTED : defStyle.CSS_CELL_SELECTED,
++            /**
++            * @property Style.CSS_CELL_SELECTABLE
++            */
++            CSS_CELL_SELECTABLE : defStyle.CSS_CELL_SELECTABLE,
++            /**
++            * @property Style.CSS_CELL_RESTRICTED
++            */
++            CSS_CELL_RESTRICTED : defStyle.CSS_CELL_RESTRICTED,
++            /**
++            * @property Style.CSS_CELL_TODAY
++            */
++            CSS_CELL_TODAY : defStyle.CSS_CELL_TODAY,
++            /**
++            * @property Style.CSS_CELL_OOM
++            */
++            CSS_CELL_OOM : defStyle.CSS_CELL_OOM,
++            /**
++            * @property Style.CSS_CELL_OOB
++            */
++            CSS_CELL_OOB : defStyle.CSS_CELL_OOB,
++            /**
++            * @property Style.CSS_HEADER
++            */
++            CSS_HEADER : defStyle.CSS_HEADER,
++            /**
++            * @property Style.CSS_HEADER_TEXT
++            */
++            CSS_HEADER_TEXT : defStyle.CSS_HEADER_TEXT,
++            /**
++            * @property Style.CSS_BODY
++            */
++            CSS_BODY : defStyle.CSS_BODY,
++            /**
++            * @property Style.CSS_WEEKDAY_CELL
++            */
++            CSS_WEEKDAY_CELL : defStyle.CSS_WEEKDAY_CELL,
++            /**
++            * @property Style.CSS_WEEKDAY_ROW
++            */
++            CSS_WEEKDAY_ROW : defStyle.CSS_WEEKDAY_ROW,
++            /**
++            * @property Style.CSS_FOOTER
++            */
++            CSS_FOOTER : defStyle.CSS_FOOTER,
++            /**
++            * @property Style.CSS_CALENDAR
++            */
++            CSS_CALENDAR : defStyle.CSS_CALENDAR,
++            /**
++            * @property Style.CSS_SINGLE
++            */
++            CSS_SINGLE : defStyle.CSS_SINGLE,
++            /**
++            * @property Style.CSS_CONTAINER
++            */
++            CSS_CONTAINER : defStyle.CSS_CONTAINER,
++            /**
++            * @property Style.CSS_NAV_LEFT
++            */
++            CSS_NAV_LEFT : defStyle.CSS_NAV_LEFT,
++            /**
++            * @property Style.CSS_NAV_RIGHT
++            */
++            CSS_NAV_RIGHT : defStyle.CSS_NAV_RIGHT,
++            /**
++            * @property Style.CSS_NAV
++            */
++            CSS_NAV : defStyle.CSS_NAV,
++            /**
++            * @property Style.CSS_CLOSE
++            */
++            CSS_CLOSE : defStyle.CSS_CLOSE,
++            /**
++            * @property Style.CSS_CELL_TOP
++            */
++            CSS_CELL_TOP : defStyle.CSS_CELL_TOP,
++            /**
++            * @property Style.CSS_CELL_LEFT
++            */
++            CSS_CELL_LEFT : defStyle.CSS_CELL_LEFT,
++            /**
++            * @property Style.CSS_CELL_RIGHT
++            */
++            CSS_CELL_RIGHT : defStyle.CSS_CELL_RIGHT,
++            /**
++            * @property Style.CSS_CELL_BOTTOM
++            */
++            CSS_CELL_BOTTOM : defStyle.CSS_CELL_BOTTOM,
++            /**
++            * @property Style.CSS_CELL_HOVER
++            */
++            CSS_CELL_HOVER : defStyle.CSS_CELL_HOVER,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT1
++            */
++            CSS_CELL_HIGHLIGHT1 : defStyle.CSS_CELL_HIGHLIGHT1,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT2
++            */
++            CSS_CELL_HIGHLIGHT2 : defStyle.CSS_CELL_HIGHLIGHT2,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT3
++            */
++            CSS_CELL_HIGHLIGHT3 : defStyle.CSS_CELL_HIGHLIGHT3,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT4
++            */
++            CSS_CELL_HIGHLIGHT4 : defStyle.CSS_CELL_HIGHLIGHT4,
++            /**
++             * @property Style.CSS_WITH_TITLE
++             */
++            CSS_WITH_TITLE : defStyle.CSS_WITH_TITLE,
++             /**
++             * @property Style.CSS_FIXED_SIZE
++             */
++            CSS_FIXED_SIZE : defStyle.CSS_FIXED_SIZE,
++             /**
++             * @property Style.CSS_LINK_CLOSE
++             */
++            CSS_LINK_CLOSE : defStyle.CSS_LINK_CLOSE
++        };
++    },
++
++    /**
++    * Builds the date label that will be displayed in the calendar header or
++    * footer, depending on configuration.
++    * @method buildMonthLabel
++    * @return {String} The formatted calendar month label
++    */
++    buildMonthLabel : function() {
++        return this._buildMonthLabel(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
++    },
++
++    /**
++     * Helper method, to format a Month Year string, given a JavaScript Date, based on the 
++     * Calendar localization settings
++     * 
++     * @method _buildMonthLabel
++     * @private
++     * @param {Date} date
++     * @return {String} Formated month, year string
++     */
++    _buildMonthLabel : function(date) {
++        var monthLabel  = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
++            yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;
++
++        if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITION == 1) {
++            return yearLabel + monthLabel;
++        } else {
++            return monthLabel + yearLabel;
++        }
++    },
++    
++    /**
++    * Builds the date digit that will be displayed in calendar cells
++    * @method buildDayLabel
++    * @param {Date} workingDate The current working date
++    * @return {String} The formatted day label
++    */
++    buildDayLabel : function(workingDate) {
++        return workingDate.getDate();
++    },
++    
++    /**
++     * Creates the title bar element and adds it to Calendar container DIV
++     * 
++     * @method createTitleBar
++     * @param {String} strTitle The title to display in the title bar
++     * @return The title bar element
++     */
++    createTitleBar : function(strTitle) {
++        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
++        tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
++        tDiv.innerHTML = strTitle;
++        this.oDomContainer.insertBefore(tDiv, this.oDomContainer.firstChild);
++    
++        Dom.addClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
++    
++        return tDiv;
++    },
++    
++    /**
++     * Removes the title bar element from the DOM
++     * 
++     * @method removeTitleBar
++     */
++    removeTitleBar : function() {
++        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
++        if (tDiv) {
++            Event.purgeElement(tDiv);
++            this.oDomContainer.removeChild(tDiv);
++        }
++        Dom.removeClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
++    },
++    
++    /**
++     * Creates the close button HTML element and adds it to Calendar container DIV
++     * 
++     * @method createCloseButton
++     * @return The close HTML element created
++     */
++    createCloseButton : function() {
++        var cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
++            cssLinkClose = this.Style.CSS_LINK_CLOSE,
++            DEPR_CLOSE_PATH = "us/my/bn/x_d.gif",
++            
++            lnk = Dom.getElementsByClassName(cssLinkClose, "a", this.oDomContainer)[0],
++            strings = this.cfg.getProperty(DEF_CFG.STRINGS.key),
++            closeStr = (strings && strings.close) ? strings.close : "";
++
++        if (!lnk) {
++            lnk = document.createElement("a");
++            Event.addListener(lnk, "click", function(e, cal) {
++                cal.hide(); 
++                Event.preventDefault(e);
++            }, this);
++        }
++
++        lnk.href = "#";
++        lnk.className = cssLinkClose;
++
++        if (Calendar.IMG_ROOT !== null) {
++            var img = Dom.getElementsByClassName(cssClose, "img", lnk)[0] || document.createElement("img");
++            img.src = Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
++            img.className = cssClose;
++            lnk.appendChild(img);
++        } else {
++            lnk.innerHTML = '<span class="' + cssClose + ' ' + this.Style.CSS_CLOSE + '">' + closeStr + '</span>';
++        }
++        this.oDomContainer.appendChild(lnk);
++
++        return lnk;
++    },
++    
++    /**
++     * Removes the close button HTML element from the DOM
++     * 
++     * @method removeCloseButton
++     */
++    removeCloseButton : function() {
++        var btn = Dom.getElementsByClassName(this.Style.CSS_LINK_CLOSE, "a", this.oDomContainer)[0] || null;
++        if (btn) {
++            Event.purgeElement(btn);
++            this.oDomContainer.removeChild(btn);
++        }
++    },
++
++    /**
++    * Renders the calendar header.
++    * @method renderHeader
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    renderHeader : function(html) {
++
++        this.logger.log("Rendering header", "render");
++
++        var colSpan = 7,
++            DEPR_NAV_LEFT = "us/tr/callt.gif",
++            DEPR_NAV_RIGHT = "us/tr/calrt.gif",
++            cfg = this.cfg,
++            pageDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
++            strings= cfg.getProperty(DEF_CFG.STRINGS.key),
++            prevStr = (strings && strings.previousMonth) ?  strings.previousMonth : "",
++            nextStr = (strings && strings.nextMonth) ? strings.nextMonth : "",
++            monthLabel;
++
++        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
++            colSpan += 1;
++        }
++    
++        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
++            colSpan += 1;
++        }
++
++        html[html.length] = "<thead>";
++        html[html.length] =  "<tr>";
++        html[html.length] =   '<th colspan="' + colSpan + '" class="' + this.Style.CSS_HEADER_TEXT + '">';
++        html[html.length] =    '<div class="' + this.Style.CSS_HEADER + '">';
++
++        var renderLeft, renderRight = false;
++
++        if (this.parent) {
++            if (this.index === 0) {
++                renderLeft = true;
++            }
++            if (this.index == (this.parent.cfg.getProperty("pages") -1)) {
++                renderRight = true;
++            }
++        } else {
++            renderLeft = true;
++            renderRight = true;
++        }
++
++        if (renderLeft) {
++            monthLabel  = this._buildMonthLabel(DateMath.subtract(pageDate, DateMath.MONTH, 1));
++
++            var leftArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_LEFT.key);
++            // Check for deprecated customization - If someone set IMG_ROOT, but didn't set NAV_ARROW_LEFT, then set NAV_ARROW_LEFT to the old deprecated value
++            if (leftArrow === null && Calendar.IMG_ROOT !== null) {
++                leftArrow = Calendar.IMG_ROOT + DEPR_NAV_LEFT;
++            }
++            var leftStyle = (leftArrow === null) ? "" : ' style="background-image:url(' + leftArrow + ')"';
++            html[html.length] = '<a class="' + this.Style.CSS_NAV_LEFT + '"' + leftStyle + ' href="#">' + prevStr + ' (' + monthLabel + ')' + '</a>';
++        }
++
++        var lbl = this.buildMonthLabel();
++        var cal = this.parent || this;
++        if (cal.cfg.getProperty("navigator")) {
++            lbl = "<a class=\"" + this.Style.CSS_NAV + "\" href=\"#\">" + lbl + "</a>";
++        }
++        html[html.length] = lbl;
++
++        if (renderRight) {
++            monthLabel  = this._buildMonthLabel(DateMath.add(pageDate, DateMath.MONTH, 1));
++
++            var rightArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_RIGHT.key);
++            if (rightArrow === null && Calendar.IMG_ROOT !== null) {
++                rightArrow = Calendar.IMG_ROOT + DEPR_NAV_RIGHT;
++            }
++            var rightStyle = (rightArrow === null) ? "" : ' style="background-image:url(' + rightArrow + ')"';
++            html[html.length] = '<a class="' + this.Style.CSS_NAV_RIGHT + '"' + rightStyle + ' href="#">' + nextStr + ' (' + monthLabel + ')' + '</a>';
++        }
++
++        html[html.length] = '</div>\n</th>\n</tr>';
++
++        if (cfg.getProperty(DEF_CFG.SHOW_WEEKDAYS.key)) {
++            html = this.buildWeekdays(html);
++        }
++        
++        html[html.length] = '</thead>';
++    
++        return html;
++    },
++    
++    /**
++    * Renders the Calendar's weekday headers.
++    * @method buildWeekdays
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    buildWeekdays : function(html) {
++
++        html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
++
++        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
++            html[html.length] = '<th>&#160;</th>';
++        }
++
++        for(var i=0;i < this.Locale.LOCALE_WEEKDAYS.length; ++i) {
++            html[html.length] = '<th class="' + this.Style.CSS_WEEKDAY_CELL + '">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>';
++        }
++
++        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
++            html[html.length] = '<th>&#160;</th>';
++        }
++
++        html[html.length] = '</tr>';
++
++        return html;
++    },
++    
++    /**
++    * Renders the calendar body.
++    * @method renderBody
++    * @param {Date} workingDate The current working Date being used for the render process
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    renderBody : function(workingDate, html) {
++        this.logger.log("Rendering body", "render");
++
++        var startDay = this.cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
++
++        this.preMonthDays = workingDate.getDay();
++        if (startDay > 0) {
++            this.preMonthDays -= startDay;
++        }
++        if (this.preMonthDays < 0) {
++            this.preMonthDays += 7;
++        }
++
++        this.monthDays = DateMath.findMonthEnd(workingDate).getDate();
++        this.postMonthDays = Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
++
++        this.logger.log(this.preMonthDays + " preciding out-of-month days", "render");
++        this.logger.log(this.monthDays + " month days", "render");
++        this.logger.log(this.postMonthDays + " post-month days", "render");
++
++        workingDate = DateMath.subtract(workingDate, DateMath.DAY, this.preMonthDays);
++        this.logger.log("Calendar page starts on " + workingDate, "render");
++    
++        var weekNum,
++            weekClass,
++            weekPrefix = "w",
++            cellPrefix = "_cell",
++            workingDayPrefix = "wd",
++            dayPrefix = "d",
++            cellRenderers,
++            renderer,
++            t = this.today,
++            cfg = this.cfg,
++            todayYear = t.getFullYear(),
++            todayMonth = t.getMonth(),
++            todayDate = t.getDate(),
++            useDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
++            hideBlankWeeks = cfg.getProperty(DEF_CFG.HIDE_BLANK_WEEKS.key),
++            showWeekFooter = cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key),
++            showWeekHeader = cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key),
++            mindate = cfg.getProperty(DEF_CFG.MINDATE.key),
++            maxdate = cfg.getProperty(DEF_CFG.MAXDATE.key),
++            yearOffset = this.Locale.YEAR_OFFSET;
++
++        if (mindate) {
++            mindate = DateMath.clearTime(mindate);
++        }
++        if (maxdate) {
++            maxdate = DateMath.clearTime(maxdate);
++        }
++
++        html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">';
++
++        var i = 0,
++            tempDiv = document.createElement("div"),
++            cell = document.createElement("td");
++
++        tempDiv.appendChild(cell);
++
++        var cal = this.parent || this;
++
++        for (var r=0;r<6;r++) {
++            weekNum = DateMath.getWeekNumber(workingDate, startDay);
++            weekClass = weekPrefix + weekNum;
++
++            // Local OOM check for performance, since we already have pagedate
++            if (r !== 0 && hideBlankWeeks === true && workingDate.getMonth() != useDate.getMonth()) {
++                break;
++            } else {
++                html[html.length] = '<tr class="' + weekClass + '">';
++
++                if (showWeekHeader) { html = this.renderRowHeader(weekNum, html); }
++
++                for (var d=0; d < 7; d++){ // Render actual days
++
++                    cellRenderers = [];
++
++                    this.clearElement(cell);
++                    cell.className = this.Style.CSS_CELL;
++                    cell.id = this.id + cellPrefix + i;
++                    this.logger.log("Rendering cell " + cell.id + " (" + workingDate.getFullYear() + yearOffset + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender");
++
++                    if (workingDate.getDate()  == todayDate && 
++                        workingDate.getMonth()  == todayMonth &&
++                        workingDate.getFullYear() == todayYear) {
++                        cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;
++                    }
++
++                    var workingArray = [workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()];
++                    this.cellDates[this.cellDates.length] = workingArray; // Add this date to cellDates
++
++                    // Local OOM check for performance, since we already have pagedate
++                    if (workingDate.getMonth() != useDate.getMonth()) {
++                        cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;
++                    } else {
++                        Dom.addClass(cell, workingDayPrefix + workingDate.getDay());
++                        Dom.addClass(cell, dayPrefix + workingDate.getDate());
++
++                        for (var s=0;s<this.renderStack.length;++s) {
++
++                            renderer = null;
++
++                            var rArray = this.renderStack[s],
++                                type = rArray[0],
++                                month,
++                                day,
++                                year;
++
++                            switch (type) {
++                                case Calendar.DATE:
++                                    month = rArray[1][1];
++                                    day = rArray[1][2];
++                                    year = rArray[1][0];
++
++                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day && workingDate.getFullYear() == year) {
++                                        renderer = rArray[2];
++                                        this.renderStack.splice(s,1);
++                                    }
++                                    break;
++                                case Calendar.MONTH_DAY:
++                                    month = rArray[1][0];
++                                    day = rArray[1][1];
++
++                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day) {
++                                        renderer = rArray[2];
++                                        this.renderStack.splice(s,1);
++                                    }
++                                    break;
++                                case Calendar.RANGE:
++                                    var date1 = rArray[1][0],
++                                        date2 = rArray[1][1],
++                                        d1month = date1[1],
++                                        d1day = date1[2],
++                                        d1year = date1[0],
++                                        d1 = DateMath.getDate(d1year, d1month-1, d1day),
++                                        d2month = date2[1],
++                                        d2day = date2[2],
++                                        d2year = date2[0],
++                                        d2 = DateMath.getDate(d2year, d2month-1, d2day);
++
++                                    if (workingDate.getTime() >= d1.getTime() && workingDate.getTime() <= d2.getTime()) {
++                                        renderer = rArray[2];
++
++                                        if (workingDate.getTime()==d2.getTime()) { 
++                                            this.renderStack.splice(s,1);
++                                        }
++                                    }
++                                    break;
++                                case Calendar.WEEKDAY:
++                                    var weekday = rArray[1][0];
++                                    if (workingDate.getDay()+1 == weekday) {
++                                        renderer = rArray[2];
++                                    }
++                                    break;
++                                case Calendar.MONTH:
++                                    month = rArray[1][0];
++                                    if (workingDate.getMonth()+1 == month) {
++                                        renderer = rArray[2];
++                                    }
++                                    break;
++                            }
++
++                            if (renderer) {
++                                cellRenderers[cellRenderers.length]=renderer;
++                            }
++                        }
++
++                    }
++
++                    if (this._indexOfSelectedFieldArray(workingArray) > -1) {
++                        cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected; 
++                    }
++
++                    if ((mindate && (workingDate.getTime() < mindate.getTime())) ||
++                        (maxdate && (workingDate.getTime() > maxdate.getTime()))
++                    ) {
++                        cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;
++                    } else {
++                        cellRenderers[cellRenderers.length]=cal.styleCellDefault;
++                        cellRenderers[cellRenderers.length]=cal.renderCellDefault; 
++                    }
++
++                    for (var x=0; x < cellRenderers.length; ++x) {
++                        this.logger.log("renderer[" + x + "] for (" + workingDate.getFullYear() + yearOffset + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender");
++                        if (cellRenderers[x].call(cal, workingDate, cell) == Calendar.STOP_RENDER) {
++                            break;
++                        }
++                    }
++
++                    workingDate.setTime(workingDate.getTime() + DateMath.ONE_DAY_MS);
++                    // Just in case we crossed DST/Summertime boundaries
++                    workingDate = DateMath.clearTime(workingDate);
++
++                    if (i >= 0 && i <= 6) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_TOP);
++                    }
++                    if ((i % 7) === 0) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
++                    }
++                    if (((i+1) % 7) === 0) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_RIGHT);
++                    }
++
++                    var postDays = this.postMonthDays; 
++                    if (hideBlankWeeks && postDays >= 7) {
++                        var blankWeeks = Math.floor(postDays/7);
++                        for (var p=0;p<blankWeeks;++p) {
++                            postDays -= 7;
++                        }
++                    }
++                    
++                    if (i >= ((this.preMonthDays+postDays+this.monthDays)-7)) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM);
++                    }
++    
++                    html[html.length] = tempDiv.innerHTML;
++                    i++;
++                }
++    
++                if (showWeekFooter) { html = this.renderRowFooter(weekNum, html); }
++    
++                html[html.length] = '</tr>';
++            }
++        }
++    
++        html[html.length] = '</tbody>';
++    
++        return html;
++    },
++    
++    /**
++    * Renders the calendar footer. In the default implementation, there is
++    * no footer.
++    * @method renderFooter
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    renderFooter : function(html) { return html; },
++    
++    /**
++    * Renders the calendar after it has been configured. The render() method has a specific call chain that will execute
++    * when the method is called: renderHeader, renderBody, renderFooter.
++    * Refer to the documentation for those methods for information on 
++    * individual render tasks.
++    * @method render
++    */
++    render : function() {
++        this.beforeRenderEvent.fire();
++
++        // Find starting day of the current month
++        var workingDate = DateMath.findMonthStart(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
++
++        this.resetRenderers();
++        this.cellDates.length = 0;
++
++        Event.purgeElement(this.oDomContainer, true);
++
++        var html = [];
++
++        html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + (workingDate.getFullYear() + this.Locale.YEAR_OFFSET) +'" id="' + this.id + '">';
++        html = this.renderHeader(html);
++        html = this.renderBody(workingDate, html);
++        html = this.renderFooter(html);
++        html[html.length] = '</table>';
++
++        this.oDomContainer.innerHTML = html.join("\n");
++
++        this.applyListeners();
++        this.cells = Dom.getElementsByClassName(this.Style.CSS_CELL, "td", this.id);
++    
++        this.cfg.refireEvent(DEF_CFG.TITLE.key);
++        this.cfg.refireEvent(DEF_CFG.CLOSE.key);
++        this.cfg.refireEvent(DEF_CFG.IFRAME.key);
++
++        this.renderEvent.fire();
++    },
++
++    /**
++    * Applies the Calendar's DOM listeners to applicable elements.
++    * @method applyListeners
++    */
++    applyListeners : function() {
++        var root = this.oDomContainer,
++            cal = this.parent || this,
++            anchor = "a",
++            click = "click";
++
++        var linkLeft = Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root),
++            linkRight = Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor, root);
++
++        if (linkLeft && linkLeft.length > 0) {
++            this.linkLeft = linkLeft[0];
++            Event.addListener(this.linkLeft, click, this.doPreviousMonthNav, cal, true);
++        }
++
++        if (linkRight && linkRight.length > 0) {
++            this.linkRight = linkRight[0];
++            Event.addListener(this.linkRight, click, this.doNextMonthNav, cal, true);
++        }
++
++        if (cal.cfg.getProperty("navigator") !== null) {
++            this.applyNavListeners();
++        }
++
++        if (this.domEventMap) {
++            var el,elements;
++            for (var cls in this.domEventMap) { 
++                if (Lang.hasOwnProperty(this.domEventMap, cls)) {
++                    var items = this.domEventMap[cls];
++    
++                    if (! (items instanceof Array)) {
++                        items = [items];
++                    }
++    
++                    for (var i=0;i<items.length;i++) {
++                        var item = items[i];
++                        elements = Dom.getElementsByClassName(cls, item.tag, this.oDomContainer);
++    
++                        for (var c=0;c<elements.length;c++) {
++                            el = elements[c];
++                             Event.addListener(el, item.event, item.handler, item.scope, item.correct );
++                        }
++                    }
++                }
++            }
++        }
++
++        Event.addListener(this.oDomContainer, "click", this.doSelectCell, this);
++        Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this);
++        Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this);
++    },
++
++    applyNavListeners : function() {
++        var calParent = this.parent || this,
++            cal = this,
++            navBtns = Dom.getElementsByClassName(this.Style.CSS_NAV, "a", this.oDomContainer);
++
++        if (navBtns.length > 0) {
++
++            Event.addListener(navBtns, "click", function (e, obj) {
++                var target = Event.getTarget(e);
++                // this == navBtn
++                if (this === target || Dom.isAncestor(this, target)) {
++                    Event.preventDefault(e);
++                }
++                var navigator = calParent.oNavigator;
++                if (navigator) {
++                    var pgdate = cal.cfg.getProperty("pagedate");
++                    navigator.setYear(pgdate.getFullYear() + cal.Locale.YEAR_OFFSET);
++                    navigator.setMonth(pgdate.getMonth());
++                    navigator.show();
++                }
++            });
++        }
++    },
++
++    /**
++    * Retrieves the Date object for the specified Calendar cell
++    * @method getDateByCellId
++    * @param {String} id The id of the cell
++    * @return {Date} The Date object for the specified Calendar cell
++    */
++    getDateByCellId : function(id) {
++        var date = this.getDateFieldsByCellId(id);
++        return (date) ? DateMath.getDate(date[0],date[1]-1,date[2]) : null;
++    },
++    
++    /**
++    * Retrieves the Date object for the specified Calendar cell
++    * @method getDateFieldsByCellId
++    * @param {String} id The id of the cell
++    * @return {Array} The array of Date fields for the specified Calendar cell
++    */
++    getDateFieldsByCellId : function(id) {
++        id = this.getIndexFromId(id);
++        return (id > -1) ? this.cellDates[id] : null;
++    },
++
++    /**
++     * Find the Calendar's cell index for a given date.
++     * If the date is not found, the method returns -1.
++     * <p>
++     * The returned index can be used to lookup the cell HTMLElement  
++     * using the Calendar's cells array or passed to selectCell to select 
++     * cells by index. 
++     * </p>
++     *
++     * See <a href="#cells">cells</a>, <a href="#selectCell">selectCell</a>.
++     *
++     * @method getCellIndex
++     * @param {Date} date JavaScript Date object, for which to find a cell index.
++     * @return {Number} The index of the date in Calendars cellDates/cells arrays, or -1 if the date 
++     * is not on the curently rendered Calendar page.
++     */
++    getCellIndex : function(date) {
++        var idx = -1;
++        if (date) {
++            var m = date.getMonth(),
++                y = date.getFullYear(),
++                d = date.getDate(),
++                dates = this.cellDates;
++
++            for (var i = 0; i < dates.length; ++i) {
++                var cellDate = dates[i];
++                if (cellDate[0] === y && cellDate[1] === m+1 && cellDate[2] === d) {
++                    idx = i;
++                    break;
++                }
++            }
++        }
++        return idx;
++    },
++
++    /**
++     * Given the id used to mark each Calendar cell, this method
++     * extracts the index number from the id.
++     * 
++     * @param {String} strId The cell id
++     * @return {Number} The index of the cell, or -1 if id does not contain an index number
++     */
++    getIndexFromId : function(strId) {
++        var idx = -1,
++            li = strId.lastIndexOf("_cell");
++
++        if (li > -1) {
++            idx = parseInt(strId.substring(li + 5), 10);
++        }
++
++        return idx;
++    },
++    
++    // BEGIN BUILT-IN TABLE CELL RENDERERS
++    
++    /**
++    * Renders a cell that falls before the minimum date or after the maximum date.
++    * widget class.
++    * @method renderOutOfBoundsDate
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderOutOfBoundsDate : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_OOB);
++        cell.innerHTML = workingDate.getDate();
++        return Calendar.STOP_RENDER;
++    },
++
++    /**
++    * Renders the row header for a week.
++    * @method renderRowHeader
++    * @param {Number} weekNum The week number of the current row
++    * @param {Array} cell The current working HTML array
++    */
++    renderRowHeader : function(weekNum, html) {
++        html[html.length] = '<th class="' + this.Style.CSS_ROW_HEADER + '">' + weekNum + '</th>';
++        return html;
++    },
++
++    /**
++    * Renders the row footer for a week.
++    * @method renderRowFooter
++    * @param {Number} weekNum The week number of the current row
++    * @param {Array} cell The current working HTML array
++    */
++    renderRowFooter : function(weekNum, html) {
++        html[html.length] = '<th class="' + this.Style.CSS_ROW_FOOTER + '">' + weekNum + '</th>';
++        return html;
++    },
++    
++    /**
++    * Renders a single standard calendar cell in the calendar widget table.
++    * All logic for determining how a standard default cell will be rendered is 
++    * encapsulated in this method, and must be accounted for when extending the
++    * widget class.
++    * @method renderCellDefault
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellDefault : function(workingDate, cell) {
++        cell.innerHTML = '<a href="#" class="' + this.Style.CSS_CELL_SELECTOR + '">' + this.buildDayLabel(workingDate) + "</a>";
++    },
++    
++    /**
++    * Styles a selectable cell.
++    * @method styleCellDefault
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    styleCellDefault : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE);
++    },
++    
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight1 style
++    * @method renderCellStyleHighlight1
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight1 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1);
++    },
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight2 style
++    * @method renderCellStyleHighlight2
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight2 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2);
++    },
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight3 style
++    * @method renderCellStyleHighlight3
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight3 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3);
++    },
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight4 style
++    * @method renderCellStyleHighlight4
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight4 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
++    },
++    
++    /**
++    * Applies the default style used for rendering today's date to the current calendar cell
++    * @method renderCellStyleToday
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleToday : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_TODAY);
++    },
++
++    /**
++    * Applies the default style used for rendering selected dates to the current calendar cell
++    * @method renderCellStyleSelected
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderCellStyleSelected : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_SELECTED);
++    },
++    
++    /**
++    * Applies the default style used for rendering dates that are not a part of the current
++    * month (preceding or trailing the cells for the current month)
++    * @method renderCellNotThisMonth
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderCellNotThisMonth : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_OOM);
++        cell.innerHTML=workingDate.getDate();
++        return Calendar.STOP_RENDER;
++    },
++    
++    /**
++    * Renders the current calendar cell as a non-selectable "black-out" date using the default
++    * restricted style.
++    * @method renderBodyCellRestricted
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderBodyCellRestricted : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL);
++        Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
++        cell.innerHTML=workingDate.getDate();
++        return Calendar.STOP_RENDER;
++    },
++    
++    // END BUILT-IN TABLE CELL RENDERERS
++    
++    // BEGIN MONTH NAVIGATION METHODS
++
++    /**
++    * Adds the designated number of months to the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method addMonths
++    * @param {Number} count The number of months to add to the current calendar
++    */
++    addMonths : function(count) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++
++        prevDate = this.cfg.getProperty(cfgPageDate),
++        newDate = DateMath.add(prevDate, DateMath.MONTH, count);
++
++        this.cfg.setProperty(cfgPageDate, newDate);
++        this.resetRenderers();
++        this.changePageEvent.fire(prevDate, newDate);
++    },
++
++    /**
++    * Subtracts the designated number of months from the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method subtractMonths
++    * @param {Number} count The number of months to subtract from the current calendar
++    */
++    subtractMonths : function(count) {
++        this.addMonths(-1*count);
++    },
++
++    /**
++    * Adds the designated number of years to the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method addYears
++    * @param {Number} count The number of years to add to the current calendar
++    */
++    addYears : function(count) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++
++        prevDate = this.cfg.getProperty(cfgPageDate),
++        newDate = DateMath.add(prevDate, DateMath.YEAR, count);
++
++        this.cfg.setProperty(cfgPageDate, newDate);
++        this.resetRenderers();
++        this.changePageEvent.fire(prevDate, newDate);
++    },
++
++    /**
++    * Subtcats the designated number of years from the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method subtractYears
++    * @param {Number} count The number of years to subtract from the current calendar
++    */
++    subtractYears : function(count) {
++        this.addYears(-1*count);
++    },
++
++    /**
++    * Navigates to the next month page in the calendar widget.
++    * @method nextMonth
++    */
++    nextMonth : function() {
++        this.addMonths(1);
++    },
++    
++    /**
++    * Navigates to the previous month page in the calendar widget.
++    * @method previousMonth
++    */
++    previousMonth : function() {
++        this.addMonths(-1);
++    },
++    
++    /**
++    * Navigates to the next year in the currently selected month in the calendar widget.
++    * @method nextYear
++    */
++    nextYear : function() {
++        this.addYears(1);
++    },
++    
++    /**
++    * Navigates to the previous year in the currently selected month in the calendar widget.
++    * @method previousYear
++    */
++    previousYear : function() {
++        this.addYears(-1);
++    },
++
++    // END MONTH NAVIGATION METHODS
++    
++    // BEGIN SELECTION METHODS
++    
++    /**
++    * Resets the calendar widget to the originally selected month and year, and 
++    * sets the calendar to the initial selection(s).
++    * @method reset
++    */
++    reset : function() {
++        this.cfg.resetProperty(DEF_CFG.SELECTED.key);
++        this.cfg.resetProperty(DEF_CFG.PAGEDATE.key);
++        this.resetEvent.fire();
++    },
++    
++    /**
++    * Clears the selected dates in the current calendar widget and sets the calendar
++    * to the current month and year.
++    * @method clear
++    */
++    clear : function() {
++        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
++        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.today.getTime()));
++        this.clearEvent.fire();
++    },
++    
++    /**
++    * Selects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once selection has completed, render must be 
++    * called for the changes to be reflected visually.
++    *
++    * Any dates which are OOB (out of bounds, not selectable) will not be selected and the array of 
++    * selected dates passed to the selectEvent will not contain OOB dates.
++    * 
++    * If all dates are OOB, the no state change will occur; beforeSelect and select events will not be fired.
++    *
++    * @method select
++    * @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects.
++    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    select : function(date) {
++        this.logger.log("Select: " + date, "info");
++
++        var aToBeSelected = this._toFieldArray(date),
++            validDates = [],
++            selected = [],
++            cfgSelected = DEF_CFG.SELECTED.key;
++
++        this.logger.log("Selection field array: " + aToBeSelected, "info");
++        
++        for (var a=0; a < aToBeSelected.length; ++a) {
++            var toSelect = aToBeSelected[a];
++
++            if (!this.isDateOOB(this._toDate(toSelect))) {
++
++                if (validDates.length === 0) {
++                    this.beforeSelectEvent.fire();
++                    selected = this.cfg.getProperty(cfgSelected);
++                }
++                validDates.push(toSelect);
++
++                if (this._indexOfSelectedFieldArray(toSelect) == -1) { 
++                    selected[selected.length] = toSelect;
++                }
++            }
++        }
++
++        if (validDates.length === 0) { this.logger.log("All provided dates were OOB. beforeSelect and select events not fired", "info"); }
++
++        if (validDates.length > 0) {
++            if (this.parent) {
++                this.parent.cfg.setProperty(cfgSelected, selected);
++            } else {
++                this.cfg.setProperty(cfgSelected, selected);
++            }
++            this.selectEvent.fire(validDates);
++        }
++
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Selects a date on the current calendar by referencing the index of the cell that should be selected.
++    * This method is used to easily select a single cell (usually with a mouse click) without having to do
++    * a full render. The selected style is applied to the cell directly.
++    *
++    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
++    * or out of bounds cells), it will not be selected and in such a case beforeSelect and select events will not be fired.
++    * 
++    * @method selectCell
++    * @param {Number} cellIndex The index of the cell to select in the current calendar. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    selectCell : function(cellIndex) {
++
++        var cell = this.cells[cellIndex],
++            cellDate = this.cellDates[cellIndex],
++            dCellDate = this._toDate(cellDate),
++            selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
++
++        this.logger.log("Select: " + dCellDate, "info");
++        if (!selectable) {this.logger.log("The cell at cellIndex:" + cellIndex + " is not a selectable cell. beforeSelect, select events not fired", "info"); }
++
++        if (selectable) {
++    
++            this.beforeSelectEvent.fire();
++    
++            var cfgSelected = DEF_CFG.SELECTED.key;
++            var selected = this.cfg.getProperty(cfgSelected);
++    
++            var selectDate = cellDate.concat();
++    
++            if (this._indexOfSelectedFieldArray(selectDate) == -1) {
++                selected[selected.length] = selectDate;
++            }
++            if (this.parent) {
++                this.parent.cfg.setProperty(cfgSelected, selected);
++            } else {
++                this.cfg.setProperty(cfgSelected, selected);
++            }
++            this.renderCellStyleSelected(dCellDate,cell);
++            this.selectEvent.fire([selectDate]);
++    
++            this.doCellMouseOut.call(cell, null, this);  
++        }
++    
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once deselection has completed, render must be 
++    * called for the changes to be reflected visually.
++    * 
++    * The method will not attempt to deselect any dates which are OOB (out of bounds, and hence not selectable) 
++    * and the array of deselected dates passed to the deselectEvent will not contain any OOB dates.
++    * 
++    * If all dates are OOB, beforeDeselect and deselect events will not be fired.
++    * 
++    * @method deselect
++    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects. 
++    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselect : function(date) {
++        this.logger.log("Deselect: " + date, "info");
++
++        var aToBeDeselected = this._toFieldArray(date),
++            validDates = [],
++            selected = [],
++            cfgSelected = DEF_CFG.SELECTED.key;
++
++        this.logger.log("Deselection field array: " + aToBeDeselected, "info");
++
++        for (var a=0; a < aToBeDeselected.length; ++a) {
++            var toDeselect = aToBeDeselected[a];
++    
++            if (!this.isDateOOB(this._toDate(toDeselect))) {
++    
++                if (validDates.length === 0) {
++                    this.beforeDeselectEvent.fire();
++                    selected = this.cfg.getProperty(cfgSelected);
++                }
++    
++                validDates.push(toDeselect);
++    
++                var index = this._indexOfSelectedFieldArray(toDeselect);
++                if (index != -1) { 
++                    selected.splice(index,1);
++                }
++            }
++        }
++    
++        if (validDates.length === 0) { this.logger.log("All provided dates were OOB. beforeDeselect and deselect events not fired");}
++    
++        if (validDates.length > 0) {
++            if (this.parent) {
++                this.parent.cfg.setProperty(cfgSelected, selected);
++            } else {
++                this.cfg.setProperty(cfgSelected, selected);
++            }
++            this.deselectEvent.fire(validDates);
++        }
++    
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects a date on the current calendar by referencing the index of the cell that should be deselected.
++    * This method is used to easily deselect a single cell (usually with a mouse click) without having to do
++    * a full render. The selected style is removed from the cell directly.
++    * 
++    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
++    * or out of bounds cells), the method will not attempt to deselect it and in such a case, beforeDeselect and 
++    * deselect events will not be fired.
++    * 
++    * @method deselectCell
++    * @param {Number} cellIndex The index of the cell to deselect in the current calendar. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselectCell : function(cellIndex) {
++        var cell = this.cells[cellIndex],
++            cellDate = this.cellDates[cellIndex],
++            cellDateIndex = this._indexOfSelectedFieldArray(cellDate);
++
++        var selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
++        if (!selectable) { this.logger.log("The cell at cellIndex:" + cellIndex + " is not a selectable/deselectable cell", "info"); }
++
++        if (selectable) {
++
++            this.beforeDeselectEvent.fire();
++
++            var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key),
++                dCellDate = this._toDate(cellDate),
++                selectDate = cellDate.concat();
++
++            if (cellDateIndex > -1) {
++                if (this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth() == dCellDate.getMonth() &&
++                    this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getFullYear() == dCellDate.getFullYear()) {
++                    Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
++                }
++                selected.splice(cellDateIndex, 1);
++            }
++
++            if (this.parent) {
++                this.parent.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
++            } else {
++                this.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
++            }
++
++            this.deselectEvent.fire([selectDate]);
++        }
++
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Deselects all dates on the current calendar.
++    * @method deselectAll
++    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
++    *      Assuming that this function executes properly, the return value should be an empty array.
++    *      However, the empty array is returned for the sake of being able to check the selection status
++    *      of the calendar.
++    */
++    deselectAll : function() {
++        this.beforeDeselectEvent.fire();
++        
++        var cfgSelected = DEF_CFG.SELECTED.key,
++            selected = this.cfg.getProperty(cfgSelected),
++            count = selected.length,
++            sel = selected.concat();
++
++        if (this.parent) {
++            this.parent.cfg.setProperty(cfgSelected, []);
++        } else {
++            this.cfg.setProperty(cfgSelected, []);
++        }
++        
++        if (count > 0) {
++            this.deselectEvent.fire(sel);
++        }
++    
++        return this.getSelectedDates();
++    },
++    
++    // END SELECTION METHODS
++    
++    // BEGIN TYPE CONVERSION METHODS
++    
++    /**
++    * Converts a date (either a JavaScript Date object, or a date string) to the internal data structure
++    * used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]].
++    * @method _toFieldArray
++    * @private
++    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects. 
++    * @return {Array[](Number[])} Array of date field arrays
++    */
++    _toFieldArray : function(date) {
++        var returnDate = [];
++    
++        if (date instanceof Date) {
++            returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]];
++        } else if (Lang.isString(date)) {
++            returnDate = this._parseDates(date);
++        } else if (Lang.isArray(date)) {
++            for (var i=0;i<date.length;++i) {
++                var d = date[i];
++                returnDate[returnDate.length] = [d.getFullYear(),d.getMonth()+1,d.getDate()];
++            }
++        }
++        
++        return returnDate;
++    },
++    
++    /**
++    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. The date field array
++    * is the format in which dates are as provided as arguments to selectEvent and deselectEvent listeners.
++    * 
++    * @method toDate
++    * @param {Number[]} dateFieldArray The date field array to convert to a JavaScript Date.
++    * @return {Date} JavaScript Date object representing the date field array.
++    */
++    toDate : function(dateFieldArray) {
++        return this._toDate(dateFieldArray);
++    },
++    
++    /**
++    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object.
++    * @method _toDate
++    * @private
++    * @deprecated Made public, toDate 
++    * @param {Number[]}  dateFieldArray The date field array to convert to a JavaScript Date.
++    * @return {Date} JavaScript Date object representing the date field array
++    */
++    _toDate : function(dateFieldArray) {
++        if (dateFieldArray instanceof Date) {
++            return dateFieldArray;
++        } else {
++            return DateMath.getDate(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);
++        }
++    },
++    
++    // END TYPE CONVERSION METHODS 
++    
++    // BEGIN UTILITY METHODS
++    
++    /**
++    * Determines if 2 field arrays are equal.
++    * @method _fieldArraysAreEqual
++    * @private
++    * @param {Number[]} array1 The first date field array to compare
++    * @param {Number[]} array2 The first date field array to compare
++    * @return {Boolean} The boolean that represents the equality of the two arrays
++    */
++    _fieldArraysAreEqual : function(array1, array2) {
++        var match = false;
++    
++        if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) {
++            match=true; 
++        }
++    
++        return match;
++    },
++    
++    /**
++    * Gets the index of a date field array [yyyy,mm,dd] in the current list of selected dates.
++    * @method _indexOfSelectedFieldArray
++    * @private
++    * @param {Number[]}  find The date field array to search for
++    * @return {Number}   The index of the date field array within the collection of selected dates.
++    *        -1 will be returned if the date is not found.
++    */
++    _indexOfSelectedFieldArray : function(find) {
++        var selected = -1,
++            seldates = this.cfg.getProperty(DEF_CFG.SELECTED.key);
++    
++        for (var s=0;s<seldates.length;++s) {
++            var sArray = seldates[s];
++            if (find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]) {
++                selected = s;
++                break;
++            }
++        }
++    
++        return selected;
++    },
++    
++    /**
++    * Determines whether a given date is OOM (out of month).
++    * @method isDateOOM
++    * @param {Date} date The JavaScript Date object for which to check the OOM status
++    * @return {Boolean} true if the date is OOM
++    */
++    isDateOOM : function(date) {
++        return (date.getMonth() != this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth());
++    },
++    
++    /**
++    * Determines whether a given date is OOB (out of bounds - less than the mindate or more than the maxdate).
++    *
++    * @method isDateOOB
++    * @param {Date} date The JavaScript Date object for which to check the OOB status
++    * @return {Boolean} true if the date is OOB
++    */
++    isDateOOB : function(date) {
++        var minDate = this.cfg.getProperty(DEF_CFG.MINDATE.key),
++            maxDate = this.cfg.getProperty(DEF_CFG.MAXDATE.key),
++            dm = DateMath;
++        
++        if (minDate) {
++            minDate = dm.clearTime(minDate);
++        } 
++        if (maxDate) {
++            maxDate = dm.clearTime(maxDate);
++        }
++    
++        var clearedDate = new Date(date.getTime());
++        clearedDate = dm.clearTime(clearedDate);
++    
++        return ((minDate && clearedDate.getTime() < minDate.getTime()) || (maxDate && clearedDate.getTime() > maxDate.getTime()));
++    },
++    
++    /**
++     * Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object 
++     * and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object 
++     * @method _parsePageDate
++     * @private
++     * @param {Date|String} date Pagedate value which needs to be parsed
++     * @return {Date} The Date object representing the pagedate
++     */
++    _parsePageDate : function(date) {
++        var parsedDate;
++
++        if (date) {
++            if (date instanceof Date) {
++                parsedDate = DateMath.findMonthStart(date);
++            } else {
++                var month, year, aMonthYear;
++                aMonthYear = date.split(this.cfg.getProperty(DEF_CFG.DATE_FIELD_DELIMITER.key));
++                month = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_MONTH_POSITION.key)-1], 10)-1;
++                year = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_YEAR_POSITION.key)-1], 10) - this.Locale.YEAR_OFFSET;
++
++                parsedDate = DateMath.getDate(year, month, 1);
++            }
++        } else {
++            parsedDate = DateMath.getDate(this.today.getFullYear(), this.today.getMonth(), 1);
++        }
++        return parsedDate;
++    },
++    
++    // END UTILITY METHODS
++    
++    // BEGIN EVENT HANDLERS
++    
++    /**
++    * Event executed before a date is selected in the calendar widget.
++    * @deprecated Event handlers for this event should be susbcribed to beforeSelectEvent.
++    */
++    onBeforeSelect : function() {
++        if (this.cfg.getProperty(DEF_CFG.MULTI_SELECT.key) === false) {
++            if (this.parent) {
++                this.parent.callChildFunction("clearAllBodyCellStyles", this.Style.CSS_CELL_SELECTED);
++                this.parent.deselectAll();
++            } else {
++                this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);
++                this.deselectAll();
++            }
++        }
++    },
++    
++    /**
++    * Event executed when a date is selected in the calendar widget.
++    * @param {Array} selected An array of date field arrays representing which date or dates were selected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
++    * @deprecated Event handlers for this event should be susbcribed to selectEvent.
++    */
++    onSelect : function(selected) { },
++    
++    /**
++    * Event executed before a date is deselected in the calendar widget.
++    * @deprecated Event handlers for this event should be susbcribed to beforeDeselectEvent.
++    */
++    onBeforeDeselect : function() { },
++    
++    /**
++    * Event executed when a date is deselected in the calendar widget.
++    * @param {Array} selected An array of date field arrays representing which date or dates were deselected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
++    * @deprecated Event handlers for this event should be susbcribed to deselectEvent.
++    */
++    onDeselect : function(deselected) { },
++    
++    /**
++    * Event executed when the user navigates to a different calendar page.
++    * @deprecated Event handlers for this event should be susbcribed to changePageEvent.
++    */
++    onChangePage : function() {
++        this.render();
++    },
++
++    /**
++    * Event executed when the calendar widget is rendered.
++    * @deprecated Event handlers for this event should be susbcribed to renderEvent.
++    */
++    onRender : function() { },
++
++    /**
++    * Event executed when the calendar widget is reset to its original state.
++    * @deprecated Event handlers for this event should be susbcribed to resetEvemt.
++    */
++    onReset : function() { this.render(); },
++
++    /**
++    * Event executed when the calendar widget is completely cleared to the current month with no selections.
++    * @deprecated Event handlers for this event should be susbcribed to clearEvent.
++    */
++    onClear : function() { this.render(); },
++    
++    /**
++    * Validates the calendar widget. This method has no default implementation
++    * and must be extended by subclassing the widget.
++    * @return Should return true if the widget validates, and false if
++    * it doesn't.
++    * @type Boolean
++    */
++    validate : function() { return true; },
++    
++    // END EVENT HANDLERS
++    
++    // BEGIN DATE PARSE METHODS
++    
++    /**
++    * Converts a date string to a date field array
++    * @private
++    * @param {String} sDate   Date string. Valid formats are mm/dd and mm/dd/yyyy.
++    * @return    A date field array representing the string passed to the method
++    * @type Array[](Number[])
++    */
++    _parseDate : function(sDate) {
++        var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
++            rArray;
++
++        if (aDate.length == 2) {
++            rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
++            rArray.type = Calendar.MONTH_DAY;
++        } else {
++            rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1] - this.Locale.YEAR_OFFSET, aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
++            rArray.type = Calendar.DATE;
++        }
++
++        for (var i=0;i<rArray.length;i++) {
++            rArray[i] = parseInt(rArray[i], 10);
++        }
++    
++        return rArray;
++    },
++    
++    /**
++    * Converts a multi or single-date string to an array of date field arrays
++    * @private
++    * @param {String} sDates  Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy
++    * @return       An array of date field arrays
++    * @type Array[](Number[])
++    */
++    _parseDates : function(sDates) {
++        var aReturn = [],
++            aDates = sDates.split(this.Locale.DATE_DELIMITER);
++        
++        for (var d=0;d<aDates.length;++d) {
++            var sDate = aDates[d];
++    
++            if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
++                // This is a range
++                var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER),
++                    dateStart = this._parseDate(aRange[0]),
++                    dateEnd = this._parseDate(aRange[1]),
++                    fullRange = this._parseRange(dateStart, dateEnd);
++
++                aReturn = aReturn.concat(fullRange);
++            } else {
++                // This is not a range
++                var aDate = this._parseDate(sDate);
++                aReturn.push(aDate);
++            }
++        }
++        return aReturn;
++    },
++    
++    /**
++    * Converts a date range to the full list of included dates
++    * @private
++    * @param {Number[]} startDate Date field array representing the first date in the range
++    * @param {Number[]} endDate  Date field array representing the last date in the range
++    * @return       An array of date field arrays
++    * @type Array[](Number[])
++    */
++    _parseRange : function(startDate, endDate) {
++        var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
++            dEnd     = DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]),
++            results = [];
++
++        results.push(startDate);
++        while (dCurrent.getTime() <= dEnd.getTime()) {
++            results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
++            dCurrent = DateMath.add(dCurrent,DateMath.DAY,1);
++        }
++        return results;
++    },
++    
++    // END DATE PARSE METHODS
++    
++    // BEGIN RENDERER METHODS
++    
++    /**
++    * Resets the render stack of the current calendar to its original pre-render value.
++    */
++    resetRenderers : function() {
++        this.renderStack = this._renderStack.concat();
++    },
++    
++    /**
++     * Removes all custom renderers added to the Calendar through the addRenderer, addMonthRenderer and 
++     * addWeekdayRenderer methods. Calendar's render method needs to be called after removing renderers 
++     * to re-render the Calendar without custom renderers applied.
++     */
++    removeRenderers : function() {
++        this._renderStack = [];
++        this.renderStack = [];
++    },
++
++    /**
++    * Clears the inner HTML, CSS class and style information from the specified cell.
++    * @method clearElement
++    * @param {HTMLTableCellElement} cell The cell to clear
++    */ 
++    clearElement : function(cell) {
++        cell.innerHTML = "&#160;";
++        cell.className="";
++    },
++    
++    /**
++    * Adds a renderer to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the conditions specified in the date string for this renderer.
++    * @method addRenderer
++    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
++    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addRenderer : function(sDates, fnRender) {
++        var aDates = this._parseDates(sDates);
++        for (var i=0;i<aDates.length;++i) {
++            var aDate = aDates[i];
++        
++            if (aDate.length == 2) { // this is either a range or a month/day combo
++                if (aDate[0] instanceof Array) { // this is a range
++                    this._addRenderer(Calendar.RANGE,aDate,fnRender);
++                } else { // this is a month/day combo
++                    this._addRenderer(Calendar.MONTH_DAY,aDate,fnRender);
++                }
++            } else if (aDate.length == 3) {
++                this._addRenderer(Calendar.DATE,aDate,fnRender);
++            }
++        }
++    },
++    
++    /**
++    * The private method used for adding cell renderers to the local render stack.
++    * This method is called by other methods that set the renderer type prior to the method call.
++    * @method _addRenderer
++    * @private
++    * @param {String} type  The type string that indicates the type of date renderer being added.
++    *         Values are YAHOO.widget.Calendar.DATE, YAHOO.widget.Calendar.MONTH_DAY, YAHOO.widget.Calendar.WEEKDAY,
++    *         YAHOO.widget.Calendar.RANGE, YAHOO.widget.Calendar.MONTH
++    * @param {Array}  aDates  An array of dates used to construct the renderer. The format varies based
++    *         on the renderer type
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    _addRenderer : function(type, aDates, fnRender) {
++        var add = [type,aDates,fnRender];
++        this.renderStack.unshift(add); 
++        this._renderStack = this.renderStack.concat();
++    },
++
++    /**
++    * Adds a month to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the month passed to this method.
++    * @method addMonthRenderer
++    * @param {Number} month  The month (1-12) to associate with this renderer
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addMonthRenderer : function(month, fnRender) {
++        this._addRenderer(Calendar.MONTH,[month],fnRender);
++    },
++
++    /**
++    * Adds a weekday to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the weekday passed to this method.
++    * @method addWeekdayRenderer
++    * @param {Number} weekday  The weekday (Sunday = 1, Monday = 2 ... Saturday = 7) to associate with this renderer
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addWeekdayRenderer : function(weekday, fnRender) {
++        this._addRenderer(Calendar.WEEKDAY,[weekday],fnRender);
++    },
++
++    // END RENDERER METHODS
++    
++    // BEGIN CSS METHODS
++    
++    /**
++    * Removes all styles from all body cells in the current calendar table.
++    * @method clearAllBodyCellStyles
++    * @param {style} style The CSS class name to remove from all calendar body cells
++    */
++    clearAllBodyCellStyles : function(style) {
++        for (var c=0;c<this.cells.length;++c) {
++            Dom.removeClass(this.cells[c],style);
++        }
++    },
++    
++    // END CSS METHODS
++    
++    // BEGIN GETTER/SETTER METHODS
++    /**
++    * Sets the calendar's month explicitly
++    * @method setMonth
++    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
++    */
++    setMonth : function(month) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++            current = this.cfg.getProperty(cfgPageDate);
++        current.setMonth(parseInt(month, 10));
++        this.cfg.setProperty(cfgPageDate, current);
++    },
++
++    /**
++    * Sets the calendar's year explicitly.
++    * @method setYear
++    * @param {Number} year  The numeric 4-digit year
++    */
++    setYear : function(year) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++            current = this.cfg.getProperty(cfgPageDate);
++
++        current.setFullYear(parseInt(year, 10) - this.Locale.YEAR_OFFSET);
++        this.cfg.setProperty(cfgPageDate, current);
++    },
++
++    /**
++    * Gets the list of currently selected dates from the calendar.
++    * @method getSelectedDates
++    * @return {Date[]} An array of currently selected JavaScript Date objects.
++    */
++    getSelectedDates : function() {
++        var returnDates = [],
++            selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
++
++        for (var d=0;d<selected.length;++d) {
++            var dateArray = selected[d];
++
++            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
++            returnDates.push(date);
++        }
++
++        returnDates.sort( function(a,b) { return a-b; } );
++        return returnDates;
++    },
++
++    /// END GETTER/SETTER METHODS ///
++    
++    /**
++    * Hides the Calendar's outer container from view.
++    * @method hide
++    */
++    hide : function() {
++        if (this.beforeHideEvent.fire()) {
++            this.oDomContainer.style.display = "none";
++            this.hideEvent.fire();
++        }
++    },
++
++    /**
++    * Shows the Calendar's outer container.
++    * @method show
++    */
++    show : function() {
++        if (this.beforeShowEvent.fire()) {
++            this.oDomContainer.style.display = "block";
++            this.showEvent.fire();
++        }
++    },
++
++    /**
++    * Returns a string representing the current browser.
++    * @deprecated As of 2.3.0, environment information is available in YAHOO.env.ua
++    * @see YAHOO.env.ua
++    * @property browser
++    * @type String
++    */
++    browser : (function() {
++                var ua = navigator.userAgent.toLowerCase();
++                      if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
++                         return 'opera';
++                      } else if (ua.indexOf('msie 7')!=-1) { // IE7
++                         return 'ie7';
++                      } else if (ua.indexOf('msie') !=-1) { // IE
++                         return 'ie';
++                      } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
++                         return 'safari';
++                      } else if (ua.indexOf('gecko') != -1) { // Gecko
++                         return 'gecko';
++                      } else {
++                         return false;
++                      }
++                })(),
++    /**
++    * Returns a string representation of the object.
++    * @method toString
++    * @return {String} A string representation of the Calendar object.
++    */
++    toString : function() {
++        return "Calendar " + this.id;
++    },
++
++    /**
++     * Destroys the Calendar instance. The method will remove references
++     * to HTML elements, remove any event listeners added by the Calendar,
++     * and destroy the Config and CalendarNavigator instances it has created.
++     *
++     * @method destroy
++     */
++    destroy : function() {
++
++        if (this.beforeDestroyEvent.fire()) {
++            var cal = this;
++
++            // Child objects
++            if (cal.navigator) {
++                cal.navigator.destroy();
++            }
++
++            if (cal.cfg) {
++                cal.cfg.destroy();
++            }
++
++            // DOM event listeners
++            Event.purgeElement(cal.oDomContainer, true);
++
++            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
++            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_WITH_TITLE);
++            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_CONTAINER);
++            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_SINGLE);
++            cal.oDomContainer.innerHTML = "";
++
++            // JS-to-DOM references
++            cal.oDomContainer = null;
++            cal.cells = null;
++
++            this.destroyEvent.fire();
++        }
++    }
++};
++
++YAHOO.widget.Calendar = Calendar;
++
++/**
++* @namespace YAHOO.widget
++* @class Calendar_Core
++* @extends YAHOO.widget.Calendar
++* @deprecated The old Calendar_Core class is no longer necessary.
++*/
++YAHOO.widget.Calendar_Core = YAHOO.widget.Calendar;
++
++YAHOO.widget.Cal_Core = YAHOO.widget.Calendar;
++
++})();
++(function() {
++
++    var Dom = YAHOO.util.Dom,
++        DateMath = YAHOO.widget.DateMath,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        Calendar = YAHOO.widget.Calendar;
++
++/**
++* YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates
++* the ability to have multi-page calendar views that share a single dataset and are
++* dependent on each other.
++*
++* The calendar group instance will refer to each of its elements using a 0-based index.
++* For example, to construct the placeholder for a calendar group widget with id "cal1" and
++* containerId of "cal1Container", the markup would be as follows:
++*   <xmp>
++*       <div id="cal1Container_0"></div>
++*       <div id="cal1Container_1"></div>
++*   </xmp>
++* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.
++*
++* <p>
++* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
++* The CalendarGroup can be constructed by simply providing a container ID string, 
++* or a reference to a container DIV HTMLElement (the element needs to exist 
++* in the document).
++* 
++* E.g.:
++*   <xmp>
++*       var c = new YAHOO.widget.CalendarGroup("calContainer", configOptions);
++*   </xmp>
++* or:
++*   <xmp>
++*       var containerDiv = YAHOO.util.Dom.get("calContainer");
++*       var c = new YAHOO.widget.CalendarGroup(containerDiv, configOptions);
++*   </xmp>
++* </p>
++* <p>
++* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
++* For example if an ID is not provided, and the container's ID is "calContainer", the CalendarGroup's ID will be set to "calContainer_t".
++* </p>
++* 
++* @namespace YAHOO.widget
++* @class CalendarGroup
++* @constructor
++* @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
++* @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
++* @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
++*/
++function CalendarGroup(id, containerId, config) {
++    if (arguments.length > 0) {
++        this.init.apply(this, arguments);
++    }
++}
++
++/**
++* The set of default Config property keys and values for the CalendarGroup.
++* 
++* <p>
++* NOTE: This property is made public in order to allow users to change 
++* the default values of configuration properties. Users should not 
++* modify the key string, unless they are overriding the Calendar implementation
++* </p>
++*
++* @property YAHOO.widget.CalendarGroup.DEFAULT_CONFIG
++* @static
++* @type Object An object with key/value pairs, the key being the 
++* uppercase configuration property name and the value being an objec 
++* literal with a key string property, and a value property, specifying the 
++* default value of the property 
++*/
++
++/**
++* The set of default Config property keys and values for the CalendarGroup
++* @property YAHOO.widget.CalendarGroup._DEFAULT_CONFIG
++* @deprecated Made public. See the public DEFAULT_CONFIG property for details
++* @private
++* @static
++* @type Object
++*/
++CalendarGroup.DEFAULT_CONFIG = CalendarGroup._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
++CalendarGroup.DEFAULT_CONFIG.PAGES = {key:"pages", value:2};
++
++var DEF_CFG = CalendarGroup.DEFAULT_CONFIG;
++
++CalendarGroup.prototype = {
++
++    /**
++    * Initializes the calendar group. All subclasses must call this method in order for the
++    * group to be initialized properly.
++    * @method init
++    * @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
++    * @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
++    * @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
++    */
++    init : function(id, container, config) {
++
++        // Normalize 2.4.0, pre 2.4.0 args
++        var nArgs = this._parseArgs(arguments);
++
++        id = nArgs.id;
++        container = nArgs.container;
++        config = nArgs.config;
++
++        this.oDomContainer = Dom.get(container);
++        if (!this.oDomContainer) { this.logger.log("Container not found in document.", "error"); }
++
++        if (!this.oDomContainer.id) {
++            this.oDomContainer.id = Dom.generateId();
++        }
++        if (!id) {
++            id = this.oDomContainer.id + "_t";
++        }
++
++        /**
++        * The unique id associated with the CalendarGroup
++        * @property id
++        * @type String
++        */
++        this.id = id;
++
++        /**
++        * The unique id associated with the CalendarGroup container
++        * @property containerId
++        * @type String
++        */
++        this.containerId = this.oDomContainer.id;
++
++        this.logger = new YAHOO.widget.LogWriter("CalendarGroup " + this.id);
++        this.initEvents();
++        this.initStyles();
++
++        /**
++        * The collection of Calendar pages contained within the CalendarGroup
++        * @property pages
++        * @type YAHOO.widget.Calendar[]
++        */
++        this.pages = [];
++
++        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_CONTAINER);
++        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_MULTI_UP);
++
++        /**
++        * The Config object used to hold the configuration variables for the CalendarGroup
++        * @property cfg
++        * @type YAHOO.util.Config
++        */
++        this.cfg = new YAHOO.util.Config(this);
++
++        /**
++        * The local object which contains the CalendarGroup's options
++        * @property Options
++        * @type Object
++        */
++        this.Options = {};
++
++        /**
++        * The local object which contains the CalendarGroup's locale settings
++        * @property Locale
++        * @type Object
++        */
++        this.Locale = {};
++
++        this.setupConfig();
++
++        if (config) {
++            this.cfg.applyConfig(config, true);
++        }
++
++        this.cfg.fireQueue();
++
++        // OPERA HACK FOR MISWRAPPED FLOATS
++        if (YAHOO.env.ua.opera){
++            this.renderEvent.subscribe(this._fixWidth, this, true);
++            this.showEvent.subscribe(this._fixWidth, this, true);
++        }
++
++        this.logger.log("Initialized " + this.pages.length + "-page CalendarGroup", "info");
++    },
++
++    setupConfig : function() {
++
++        var cfg = this.cfg;
++
++        /**
++        * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments.
++        * @config pages
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.PAGES.key, { value:DEF_CFG.PAGES.value, validator:cfg.checkNumber, handler:this.configPages } );
++
++        /**
++        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
++        * be used when displaying or parsing dates.  NOTE: All JS Date objects returned by methods, or expected as input by
++        * methods will always represent the Gregorian year, in order to maintain date/month/week values.
++        *
++        * @config year_offset
++        * @type Number
++        * @default 0
++        */
++        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, handler: this.delegateConfig, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, suppressEvent:true } );
++
++        /**
++        * The date to use to represent "Today".
++        *
++        * @config today
++        * @type Date
++        * @default Today's date
++        */
++        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler: this.configToday, suppressEvent:false } );
++
++        /**
++        * The month/year representing the current visible Calendar date (mm/yyyy)
++        * @config pagedate
++        * @type String | Date
++        * @default Today's date
++        */
++        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
++
++        /**
++        * The date or range of dates representing the current Calendar selection
++        *
++        * @config selected
++        * @type String
++        * @default []
++        */
++        cfg.addProperty(DEF_CFG.SELECTED.key, { value:[], handler:this.configSelected } );
++
++        /**
++        * The title to display above the CalendarGroup's month header
++        * @config title
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
++
++        /**
++        * Whether or not a close button should be displayed for this CalendarGroup
++        * @config close
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
++
++        /**
++        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
++        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
++        * enabled if required.
++        * 
++        * @config iframe
++        * @type Boolean
++        * @default true for IE6 and below, false for all other browsers
++        */
++        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
++
++        /**
++        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config mindate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.delegateConfig } );
++
++        /**
++        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config maxdate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.delegateConfig  } );
++
++        // Options properties
++
++        /**
++        * True if the Calendar should allow multiple selections. False by default.
++        * @config MULTI_SELECT
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++
++        /**
++        * The weekday the week begins on. Default is 0 (Sunday).
++        * @config START_WEEKDAY
++        * @type number
++        * @default 0
++        */ 
++        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.delegateConfig, validator:cfg.checkNumber  } );
++        
++        /**
++        * True if the Calendar should show weekday labels. True by default.
++        * @config SHOW_WEEKDAYS
++        * @type Boolean
++        * @default true
++        */ 
++        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * True if the Calendar should show week row headers. False by default.
++        * @config SHOW_WEEK_HEADER
++        * @type Boolean
++        * @default false
++        */ 
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key,{ value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * True if the Calendar should show week row footers. False by default.
++        * @config SHOW_WEEK_FOOTER
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
++        * @config HIDE_BLANK_WEEKS
++        * @type Boolean
++        * @default false
++        */  
++        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key,{ value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * The image that should be used for the left navigation arrow.
++        * @config NAV_ARROW_LEFT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
++        * @default null
++        */  
++        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.delegateConfig } );
++        
++        /**
++        * The image that should be used for the right navigation arrow.
++        * @config NAV_ARROW_RIGHT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
++        * @default null
++        */  
++        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.delegateConfig } );
++    
++        // Locale properties
++        
++        /**
++        * The short month labels for the current locale.
++        * @config MONTHS_SHORT
++        * @type String[]
++        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
++        */
++        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.delegateConfig } );
++        
++        /**
++        * The long month labels for the current locale.
++        * @config MONTHS_LONG
++        * @type String[]
++        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
++        */  
++        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.delegateConfig } );
++        
++        /**
++        * The 1-character weekday labels for the current locale.
++        * @config WEEKDAYS_1CHAR
++        * @type String[]
++        * @default ["S", "M", "T", "W", "T", "F", "S"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.delegateConfig } );
++        
++        /**
++        * The short weekday labels for the current locale.
++        * @config WEEKDAYS_SHORT
++        * @type String[]
++        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.delegateConfig } );
++        
++        /**
++        * The medium weekday labels for the current locale.
++        * @config WEEKDAYS_MEDIUM
++        * @type String[]
++        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.delegateConfig } );
++        
++        /**
++        * The long weekday labels for the current locale.
++        * @config WEEKDAYS_LONG
++        * @type String[]
++        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.delegateConfig } );
++    
++        /**
++        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
++        * @config LOCALE_MONTHS
++        * @type String
++        * @default "long"
++        */
++        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.delegateConfig } );
++    
++        /**
++        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
++        * @config LOCALE_WEEKDAYS
++        * @type String
++        * @default "short"
++        */ 
++        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.delegateConfig } );
++    
++        /**
++        * The value used to delimit individual dates in a date string passed to various Calendar functions.
++        * @config DATE_DELIMITER
++        * @type String
++        * @default ","
++        */
++        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.delegateConfig } );
++    
++        /**
++        * The value used to delimit date fields in a date string passed to various Calendar functions.
++        * @config DATE_FIELD_DELIMITER
++        * @type String
++        * @default "/"
++        */ 
++        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key,{ value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.delegateConfig } );
++    
++        /**
++        * The value used to delimit date ranges in a date string passed to various Calendar functions.
++        * @config DATE_RANGE_DELIMITER
++        * @type String
++        * @default "-"
++        */
++        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key,{ value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.delegateConfig } );
++    
++        /**
++        * The position of the month in a month/year date string
++        * @config MY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the year in a month/year date string
++        * @config MY_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */ 
++        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the month in a month/day date string
++        * @config MD_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */ 
++        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the day in a month/year date string
++        * @config MD_DAY_POSITION
++        * @type Number
++        * @default 2
++        */ 
++        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the month in a month/day/year date string
++        * @config MDY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */ 
++        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the day in a month/day/year date string
++        * @config MDY_DAY_POSITION
++        * @type Number
++        * @default 2
++        */ 
++        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the year in a month/day/year date string
++        * @config MDY_YEAR_POSITION
++        * @type Number
++        * @default 3
++        */ 
++        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the month in the month year label string used as the Calendar header
++        * @config MY_LABEL_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in the month year label string used as the Calendar header
++        * @config MY_LABEL_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++
++        /**
++        * The suffix used after the month when rendering the Calendar header
++        * @config MY_LABEL_MONTH_SUFFIX
++        * @type String
++        * @default " "
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.delegateConfig } );
++        
++        /**
++        * The suffix used after the year when rendering the Calendar header
++        * @config MY_LABEL_YEAR_SUFFIX
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.delegateConfig } );
++
++        /**
++        * Configuration for the Month Year Navigation UI. By default it is disabled
++        * @config NAV
++        * @type Object
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
++
++        /**
++         * The map of UI strings which the CalendarGroup UI uses.
++         *
++         * @config strings
++         * @type {Object}
++         * @default An object with the properties shown below:
++         *     <dl>
++         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
++         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
++         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
++         *     </dl>
++         */
++        cfg.addProperty(DEF_CFG.STRINGS.key, { 
++            value:DEF_CFG.STRINGS.value, 
++            handler:this.configStrings, 
++            validator: function(val) {
++                return Lang.isObject(val);
++            },
++            supercedes: DEF_CFG.STRINGS.supercedes
++        });
++    },
++
++    /**
++    * Initializes CalendarGroup's built-in CustomEvents
++    * @method initEvents
++    */
++    initEvents : function() {
++
++        var me = this,
++            strEvent = "Event",
++            CE = YAHOO.util.CustomEvent;
++
++        /**
++        * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
++        * @method sub
++        * @private
++        * @param {Function} fn The function to subscribe to this CustomEvent
++        * @param {Object} obj The CustomEvent's scope object
++        * @param {Boolean} bOverride Whether or not to apply scope correction
++        */
++        var sub = function(fn, obj, bOverride) {
++            for (var p=0;p<me.pages.length;++p) {
++                var cal = me.pages[p];
++                cal[this.type + strEvent].subscribe(fn, obj, bOverride);
++            }
++        };
++
++        /**
++        * Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents
++        * @method unsub
++        * @private
++        * @param {Function} fn The function to subscribe to this CustomEvent
++        * @param {Object} obj The CustomEvent's scope object
++        */
++        var unsub = function(fn, obj) {
++            for (var p=0;p<me.pages.length;++p) {
++                var cal = me.pages[p];
++                cal[this.type + strEvent].unsubscribe(fn, obj);
++            }
++        };
++
++        var defEvents = Calendar._EVENT_TYPES;
++
++        /**
++        * Fired before a date selection is made
++        * @event beforeSelectEvent
++        */
++        me.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
++        me.beforeSelectEvent.subscribe = sub; me.beforeSelectEvent.unsubscribe = unsub;
++
++        /**
++        * Fired when a date selection is made
++        * @event selectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        me.selectEvent = new CE(defEvents.SELECT); 
++        me.selectEvent.subscribe = sub; me.selectEvent.unsubscribe = unsub;
++
++        /**
++        * Fired before a date or set of dates is deselected
++        * @event beforeDeselectEvent
++        */
++        me.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT); 
++        me.beforeDeselectEvent.subscribe = sub; me.beforeDeselectEvent.unsubscribe = unsub;
++
++        /**
++        * Fired when a date or set of dates has been deselected
++        * @event deselectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        me.deselectEvent = new CE(defEvents.DESELECT); 
++        me.deselectEvent.subscribe = sub; me.deselectEvent.unsubscribe = unsub;
++        
++        /**
++        * Fired when the Calendar page is changed
++        * @event changePageEvent
++        */
++        me.changePageEvent = new CE(defEvents.CHANGE_PAGE); 
++        me.changePageEvent.subscribe = sub; me.changePageEvent.unsubscribe = unsub;
++
++        /**
++        * Fired before the Calendar is rendered
++        * @event beforeRenderEvent
++        */
++        me.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
++        me.beforeRenderEvent.subscribe = sub; me.beforeRenderEvent.unsubscribe = unsub;
++    
++        /**
++        * Fired when the Calendar is rendered
++        * @event renderEvent
++        */
++        me.renderEvent = new CE(defEvents.RENDER);
++        me.renderEvent.subscribe = sub; me.renderEvent.unsubscribe = unsub;
++    
++        /**
++        * Fired when the Calendar is reset
++        * @event resetEvent
++        */
++        me.resetEvent = new CE(defEvents.RESET); 
++        me.resetEvent.subscribe = sub; me.resetEvent.unsubscribe = unsub;
++    
++        /**
++        * Fired when the Calendar is cleared
++        * @event clearEvent
++        */
++        me.clearEvent = new CE(defEvents.CLEAR);
++        me.clearEvent.subscribe = sub; me.clearEvent.unsubscribe = unsub;
++
++        /**
++        * Fired just before the CalendarGroup is to be shown
++        * @event beforeShowEvent
++        */
++        me.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
++    
++        /**
++        * Fired after the CalendarGroup is shown
++        * @event showEvent
++        */
++        me.showEvent = new CE(defEvents.SHOW);
++    
++        /**
++        * Fired just before the CalendarGroup is to be hidden
++        * @event beforeHideEvent
++        */
++        me.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
++    
++        /**
++        * Fired after the CalendarGroup is hidden
++        * @event hideEvent
++        */
++        me.hideEvent = new CE(defEvents.HIDE);
++
++        /**
++        * Fired just before the CalendarNavigator is to be shown
++        * @event beforeShowNavEvent
++        */
++        me.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
++    
++        /**
++        * Fired after the CalendarNavigator is shown
++        * @event showNavEvent
++        */
++        me.showNavEvent = new CE(defEvents.SHOW_NAV);
++    
++        /**
++        * Fired just before the CalendarNavigator is to be hidden
++        * @event beforeHideNavEvent
++        */
++        me.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
++
++        /**
++        * Fired after the CalendarNavigator is hidden
++        * @event hideNavEvent
++        */
++        me.hideNavEvent = new CE(defEvents.HIDE_NAV);
++
++        /**
++        * Fired just before the CalendarNavigator is to be rendered
++        * @event beforeRenderNavEvent
++        */
++        me.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
++
++        /**
++        * Fired after the CalendarNavigator is rendered
++        * @event renderNavEvent
++        */
++        me.renderNavEvent = new CE(defEvents.RENDER_NAV);
++
++        /**
++        * Fired just before the CalendarGroup is to be destroyed
++        * @event beforeDestroyEvent
++        */
++        me.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
++
++        /**
++        * Fired after the CalendarGroup is destroyed. This event should be used
++        * for notification only. When this event is fired, important CalendarGroup instance
++        * properties, dom references and event listeners have already been 
++        * removed/dereferenced, and hence the CalendarGroup instance is not in a usable 
++        * state.
++        *
++        * @event destroyEvent
++        */
++        me.destroyEvent = new CE(defEvents.DESTROY);
++    },
++    
++    /**
++    * The default Config handler for the "pages" property
++    * @method configPages
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    configPages : function(type, args, obj) {
++        var pageCount = args[0],
++            cfgPageDate = DEF_CFG.PAGEDATE.key,
++            sep = "_",
++            caldate,
++            firstPageDate = null,
++            groupCalClass = "groupcal",
++            firstClass = "first-of-type",
++            lastClass = "last-of-type";
++
++        for (var p=0;p<pageCount;++p) {
++            var calId = this.id + sep + p,
++                calContainerId = this.containerId + sep + p,
++                childConfig = this.cfg.getConfig();
++
++            childConfig.close = false;
++            childConfig.title = false;
++            childConfig.navigator = null;
++
++            if (p > 0) {
++                caldate = new Date(firstPageDate);
++                this._setMonthOnDate(caldate, caldate.getMonth() + p);
++                childConfig.pageDate = caldate;
++            }
++
++            var cal = this.constructChild(calId, calContainerId, childConfig);
++
++            Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
++            Dom.addClass(cal.oDomContainer, groupCalClass);
++
++            if (p===0) {
++                firstPageDate = cal.cfg.getProperty(cfgPageDate);
++                Dom.addClass(cal.oDomContainer, firstClass);
++            }
++    
++            if (p==(pageCount-1)) {
++                Dom.addClass(cal.oDomContainer, lastClass);
++            }
++    
++            cal.parent = this;
++            cal.index = p; 
++    
++            this.pages[this.pages.length] = cal;
++        }
++    },
++    
++    /**
++    * The default Config handler for the "pagedate" property
++    * @method configPageDate
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    configPageDate : function(type, args, obj) {
++        var val = args[0],
++            firstPageDate;
++
++        var cfgPageDate = DEF_CFG.PAGEDATE.key;
++        
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            if (p === 0) {
++                firstPageDate = cal._parsePageDate(val);
++                cal.cfg.setProperty(cfgPageDate, firstPageDate);
++            } else {
++                var pageDate = new Date(firstPageDate);
++                this._setMonthOnDate(pageDate, pageDate.getMonth() + p);
++                cal.cfg.setProperty(cfgPageDate, pageDate);
++            }
++        }
++    },
++    
++    /**
++    * The default Config handler for the CalendarGroup "selected" property
++    * @method configSelected
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    configSelected : function(type, args, obj) {
++        var cfgSelected = DEF_CFG.SELECTED.key;
++        this.delegateConfig(type, args, obj);
++        var selected = (this.pages.length > 0) ? this.pages[0].cfg.getProperty(cfgSelected) : []; 
++        this.cfg.setProperty(cfgSelected, selected, true);
++    },
++
++    
++    /**
++    * Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children
++    * @method delegateConfig
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    delegateConfig : function(type, args, obj) {
++        var val = args[0];
++        var cal;
++    
++        for (var p=0;p<this.pages.length;p++) {
++            cal = this.pages[p];
++            cal.cfg.setProperty(type, val);
++        }
++    },
++
++    /**
++    * Adds a function to all child Calendars within this CalendarGroup.
++    * @method setChildFunction
++    * @param {String}  fnName  The name of the function
++    * @param {Function}  fn   The function to apply to each Calendar page object
++    */
++    setChildFunction : function(fnName, fn) {
++        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
++    
++        for (var p=0;p<pageCount;++p) {
++            this.pages[p][fnName] = fn;
++        }
++    },
++
++    /**
++    * Calls a function within all child Calendars within this CalendarGroup.
++    * @method callChildFunction
++    * @param {String}  fnName  The name of the function
++    * @param {Array}  args  The arguments to pass to the function
++    */
++    callChildFunction : function(fnName, args) {
++        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
++
++        for (var p=0;p<pageCount;++p) {
++            var page = this.pages[p];
++            if (page[fnName]) {
++                var fn = page[fnName];
++                fn.call(page, args);
++            }
++        } 
++    },
++
++    /**
++    * Constructs a child calendar. This method can be overridden if a subclassed version of the default
++    * calendar is to be used.
++    * @method constructChild
++    * @param {String} id   The id of the table element that will represent the calendar widget
++    * @param {String} containerId The id of the container div element that will wrap the calendar table
++    * @param {Object} config  The configuration object containing the Calendar's arguments
++    * @return {YAHOO.widget.Calendar} The YAHOO.widget.Calendar instance that is constructed
++    */
++    constructChild : function(id,containerId,config) {
++        var container = document.getElementById(containerId);
++        if (! container) {
++            container = document.createElement("div");
++            container.id = containerId;
++            this.oDomContainer.appendChild(container);
++        }
++        return new Calendar(id,containerId,config);
++    },
++    
++    /**
++    * Sets the calendar group's month explicitly. This month will be set into the first
++    * page of the multi-page calendar, and all other months will be iterated appropriately.
++    * @method setMonth
++    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
++    */
++    setMonth : function(month) {
++        month = parseInt(month, 10);
++        var currYear;
++
++        var cfgPageDate = DEF_CFG.PAGEDATE.key;
++
++        for (var p=0; p<this.pages.length; ++p) {
++            var cal = this.pages[p];
++            var pageDate = cal.cfg.getProperty(cfgPageDate);
++            if (p === 0) {
++                currYear = pageDate.getFullYear();
++            } else {
++                pageDate.setFullYear(currYear);
++            }
++            this._setMonthOnDate(pageDate, month+p); 
++            cal.cfg.setProperty(cfgPageDate, pageDate);
++        }
++    },
++
++    /**
++    * Sets the calendar group's year explicitly. This year will be set into the first
++    * page of the multi-page calendar, and all other months will be iterated appropriately.
++    * @method setYear
++    * @param {Number} year  The numeric 4-digit year
++    */
++    setYear : function(year) {
++    
++        var cfgPageDate = DEF_CFG.PAGEDATE.key;
++    
++        year = parseInt(year, 10);
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            var pageDate = cal.cfg.getProperty(cfgPageDate);
++    
++            if ((pageDate.getMonth()+1) == 1 && p>0) {
++                year+=1;
++            }
++            cal.setYear(year);
++        }
++    },
++
++    /**
++    * Calls the render function of all child calendars within the group.
++    * @method render
++    */
++    render : function() {
++        this.renderHeader();
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.render();
++        }
++        this.renderFooter();
++    },
++
++    /**
++    * Selects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once selection has completed, render must be 
++    * called for the changes to be reflected visually.
++    * @method select
++    * @param    {String/Date/Date[]}    date    The date string of dates to select in the current calendar. Valid formats are
++    *                               individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *                               Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *                               This method can also take a JavaScript Date object or an array of Date objects.
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    select : function(date) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.select(date);
++        }
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Selects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
++    * The value of the MULTI_SELECT Configuration attribute will determine the set of dates which get selected. 
++    * <ul>
++    *    <li>If MULTI_SELECT is false, selectCell will select the cell at the specified index for only the last displayed Calendar page.</li>
++    *    <li>If MULTI_SELECT is true, selectCell will select the cell at the specified index, on each displayed Calendar page.</li>
++    * </ul>
++    * @method selectCell
++    * @param {Number} cellIndex The index of the cell to be selected. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    selectCell : function(cellIndex) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.selectCell(cellIndex);
++        }
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once deselection has completed, render must be 
++    * called for the changes to be reflected visually.
++    * @method deselect
++    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects. 
++    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselect : function(date) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.deselect(date);
++        }
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects all dates on the current calendar.
++    * @method deselectAll
++    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
++    *      Assuming that this function executes properly, the return value should be an empty array.
++    *      However, the empty array is returned for the sake of being able to check the selection status
++    *      of the calendar.
++    */
++    deselectAll : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.deselectAll();
++        }
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
++    * deselectCell will deselect the cell at the specified index on each displayed Calendar page.
++    *
++    * @method deselectCell
++    * @param {Number} cellIndex The index of the cell to deselect. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselectCell : function(cellIndex) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.deselectCell(cellIndex);
++        }
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Resets the calendar widget to the originally selected month and year, and 
++    * sets the calendar to the initial selection(s).
++    * @method reset
++    */
++    reset : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.reset();
++        }
++    },
++
++    /**
++    * Clears the selected dates in the current calendar widget and sets the calendar
++    * to the current month and year.
++    * @method clear
++    */
++    clear : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.clear();
++        }
++
++        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
++        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.pages[0].today.getTime()));
++        this.render();
++    },
++
++    /**
++    * Navigates to the next month page in the calendar widget.
++    * @method nextMonth
++    */
++    nextMonth : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.nextMonth();
++        }
++    },
++    
++    /**
++    * Navigates to the previous month page in the calendar widget.
++    * @method previousMonth
++    */
++    previousMonth : function() {
++        for (var p=this.pages.length-1;p>=0;--p) {
++            var cal = this.pages[p];
++            cal.previousMonth();
++        }
++    },
++    
++    /**
++    * Navigates to the next year in the currently selected month in the calendar widget.
++    * @method nextYear
++    */
++    nextYear : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.nextYear();
++        }
++    },
++
++    /**
++    * Navigates to the previous year in the currently selected month in the calendar widget.
++    * @method previousYear
++    */
++    previousYear : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.previousYear();
++        }
++    },
++
++    /**
++    * Gets the list of currently selected dates from the calendar.
++    * @return   An array of currently selected JavaScript Date objects.
++    * @type Date[]
++    */
++    getSelectedDates : function() { 
++        var returnDates = [];
++        var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
++        for (var d=0;d<selected.length;++d) {
++            var dateArray = selected[d];
++
++            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
++            returnDates.push(date);
++        }
++
++        returnDates.sort( function(a,b) { return a-b; } );
++        return returnDates;
++    },
++
++    /**
++    * Adds a renderer to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the conditions specified in the date string for this renderer.
++    * @method addRenderer
++    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
++    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addRenderer : function(sDates, fnRender) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.addRenderer(sDates, fnRender);
++        }
++    },
++
++    /**
++    * Adds a month to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the month passed to this method.
++    * @method addMonthRenderer
++    * @param {Number} month  The month (1-12) to associate with this renderer
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addMonthRenderer : function(month, fnRender) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.addMonthRenderer(month, fnRender);
++        }
++    },
++
++    /**
++    * Adds a weekday to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the weekday passed to this method.
++    * @method addWeekdayRenderer
++    * @param {Number} weekday  The weekday (1-7) to associate with this renderer. 1=Sunday, 2=Monday etc.
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addWeekdayRenderer : function(weekday, fnRender) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.addWeekdayRenderer(weekday, fnRender);
++        }
++    },
++
++    /**
++     * Removes all custom renderers added to the CalendarGroup through the addRenderer, addMonthRenderer and 
++     * addWeekRenderer methods. CalendarGroup's render method needs to be called to after removing renderers 
++     * to see the changes applied.
++     * 
++     * @method removeRenderers
++     */
++    removeRenderers : function() {
++        this.callChildFunction("removeRenderers");
++    },
++
++    /**
++    * Renders the header for the CalendarGroup.
++    * @method renderHeader
++    */
++    renderHeader : function() {
++        // EMPTY DEFAULT IMPL
++    },
++
++    /**
++    * Renders a footer for the 2-up calendar container. By default, this method is
++    * unimplemented.
++    * @method renderFooter
++    */
++    renderFooter : function() {
++        // EMPTY DEFAULT IMPL
++    },
++
++    /**
++    * Adds the designated number of months to the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method addMonths
++    * @param {Number} count The number of months to add to the current calendar
++    */
++    addMonths : function(count) {
++        this.callChildFunction("addMonths", count);
++    },
++    
++    /**
++    * Subtracts the designated number of months from the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method subtractMonths
++    * @param {Number} count The number of months to subtract from the current calendar
++    */
++    subtractMonths : function(count) {
++        this.callChildFunction("subtractMonths", count);
++    },
++
++    /**
++    * Adds the designated number of years to the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method addYears
++    * @param {Number} count The number of years to add to the current calendar
++    */
++    addYears : function(count) {
++        this.callChildFunction("addYears", count);
++    },
++
++    /**
++    * Subtcats the designated number of years from the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method subtractYears
++    * @param {Number} count The number of years to subtract from the current calendar
++    */
++    subtractYears : function(count) {
++        this.callChildFunction("subtractYears", count);
++    },
++
++    /**
++     * Returns the Calendar page instance which has a pagedate (month/year) matching the given date. 
++     * Returns null if no match is found.
++     * 
++     * @method getCalendarPage
++     * @param {Date} date The JavaScript Date object for which a Calendar page is to be found.
++     * @return {Calendar} The Calendar page instance representing the month to which the date 
++     * belongs.
++     */
++    getCalendarPage : function(date) {
++        var cal = null;
++        if (date) {
++            var y = date.getFullYear(),
++                m = date.getMonth();
++
++            var pages = this.pages;
++            for (var i = 0; i < pages.length; ++i) {
++                var pageDate = pages[i].cfg.getProperty("pagedate");
++                if (pageDate.getFullYear() === y && pageDate.getMonth() === m) {
++                    cal = pages[i];
++                    break;
++                }
++            }
++        }
++        return cal;
++    },
++
++    /**
++    * Sets the month on a Date object, taking into account year rollover if the month is less than 0 or greater than 11.
++    * The Date object passed in is modified. It should be cloned before passing it into this method if the original value needs to be maintained
++    * @method _setMonthOnDate
++    * @private
++    * @param {Date} date The Date object on which to set the month index
++    * @param {Number} iMonth The month index to set
++    */
++    _setMonthOnDate : function(date, iMonth) {
++        // Bug in Safari 1.3, 2.0 (WebKit build < 420), Date.setMonth does not work consistently if iMonth is not 0-11
++        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420 && (iMonth < 0 || iMonth > 11)) {
++            var newDate = DateMath.add(date, DateMath.MONTH, iMonth-date.getMonth());
++            date.setTime(newDate.getTime());
++        } else {
++            date.setMonth(iMonth);
++        }
++    },
++    
++    /**
++     * Fixes the width of the CalendarGroup container element, to account for miswrapped floats
++     * @method _fixWidth
++     * @private
++     */
++    _fixWidth : function() {
++        var w = 0;
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            w += cal.oDomContainer.offsetWidth;
++        }
++        if (w > 0) {
++            this.oDomContainer.style.width = w + "px";
++        }
++    },
++    
++    /**
++    * Returns a string representation of the object.
++    * @method toString
++    * @return {String} A string representation of the CalendarGroup object.
++    */
++    toString : function() {
++        return "CalendarGroup " + this.id;
++    },
++
++    /**
++     * Destroys the CalendarGroup instance. The method will remove references
++     * to HTML elements, remove any event listeners added by the CalendarGroup.
++     * 
++     * It will also destroy the Config and CalendarNavigator instances created by the 
++     * CalendarGroup and the individual Calendar instances created for each page.
++     *
++     * @method destroy
++     */
++    destroy : function() {
++
++        if (this.beforeDestroyEvent.fire()) {
++
++            var cal = this;
++    
++            // Child objects
++            if (cal.navigator) {
++                cal.navigator.destroy();
++            }
++    
++            if (cal.cfg) {
++                cal.cfg.destroy();
++            }
++    
++            // DOM event listeners
++            Event.purgeElement(cal.oDomContainer, true);
++    
++            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
++            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_CONTAINER);
++            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_MULTI_UP);
++            
++            for (var i = 0, l = cal.pages.length; i < l; i++) {
++                cal.pages[i].destroy();
++                cal.pages[i] = null;
++            }
++    
++            cal.oDomContainer.innerHTML = "";
++    
++            // JS-to-DOM references
++            cal.oDomContainer = null;
++    
++            this.destroyEvent.fire();
++        }
++    }
++};
++
++/**
++* CSS class representing the container for the calendar
++* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
++* @static
++* @final
++* @type String
++*/
++CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
++
++/**
++* CSS class representing the container for the calendar
++* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
++* @static
++* @final
++* @type String
++*/
++CalendarGroup.CSS_MULTI_UP = "multi";
++
++/**
++* CSS class representing the title for the 2-up calendar
++* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE
++* @static
++* @final
++* @type String
++*/
++CalendarGroup.CSS_2UPTITLE = "title";
++
++/**
++* CSS class representing the close icon for the 2-up calendar
++* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE
++* @static
++* @final
++* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties.
++*     Calendar's <a href="YAHOO.widget.Calendar.html#Style.CSS_CLOSE">Style.CSS_CLOSE</a> property now represents the CSS class used to render the close icon
++* @type String
++*/
++CalendarGroup.CSS_2UPCLOSE = "close-icon";
++
++YAHOO.lang.augmentProto(CalendarGroup, Calendar, "buildDayLabel",
++                                                 "buildMonthLabel",
++                                                 "renderOutOfBoundsDate",
++                                                 "renderRowHeader",
++                                                 "renderRowFooter",
++                                                 "renderCellDefault",
++                                                 "styleCellDefault",
++                                                 "renderCellStyleHighlight1",
++                                                 "renderCellStyleHighlight2",
++                                                 "renderCellStyleHighlight3",
++                                                 "renderCellStyleHighlight4",
++                                                 "renderCellStyleToday",
++                                                 "renderCellStyleSelected",
++                                                 "renderCellNotThisMonth",
++                                                 "renderBodyCellRestricted",
++                                                 "initStyles",
++                                                 "configTitle",
++                                                 "configClose",
++                                                 "configIframe",
++                                                 "configStrings",
++                                                 "configToday",
++                                                 "configNavigator",
++                                                 "createTitleBar",
++                                                 "createCloseButton",
++                                                 "removeTitleBar",
++                                                 "removeCloseButton",
++                                                 "hide",
++                                                 "show",
++                                                 "toDate",
++                                                 "_toDate",
++                                                 "_parseArgs",
++                                                 "browser");
++
++YAHOO.widget.CalGrp = CalendarGroup;
++YAHOO.widget.CalendarGroup = CalendarGroup;
++
++/**
++* @class YAHOO.widget.Calendar2up
++* @extends YAHOO.widget.CalendarGroup
++* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
++*/
++YAHOO.widget.Calendar2up = function(id, containerId, config) {
++    this.init(id, containerId, config);
++};
++
++YAHOO.extend(YAHOO.widget.Calendar2up, CalendarGroup);
++
++/**
++* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
++*/
++YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;
++
++})();
++/**
++ * The CalendarNavigator is used along with a Calendar/CalendarGroup to 
++ * provide a Month/Year popup navigation control, allowing the user to navigate 
++ * to a specific month/year in the Calendar/CalendarGroup without having to 
++ * scroll through months sequentially
++ *
++ * @namespace YAHOO.widget
++ * @class CalendarNavigator
++ * @constructor
++ * @param {Calendar|CalendarGroup} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached.
++ */
++YAHOO.widget.CalendarNavigator = function(cal) {
++    this.init(cal);
++};
++
++(function() {
++    // Setup static properties (inside anon fn, so that we can use shortcuts)
++    var CN = YAHOO.widget.CalendarNavigator;
++
++    /**
++     * YAHOO.widget.CalendarNavigator.CLASSES contains constants
++     * for the class values applied to the CalendarNaviatgator's 
++     * DOM elements
++     * @property YAHOO.widget.CalendarNavigator.CLASSES
++     * @type Object
++     * @static
++     */
++    CN.CLASSES = {
++        /**
++         * Class applied to the Calendar Navigator's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV
++         * @type String
++         * @static
++         */
++        NAV :"yui-cal-nav",
++        /**
++         * Class applied to the Calendar/CalendarGroup's bounding box to indicate
++         * the Navigator is currently visible
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV_VISIBLE
++         * @type String
++         * @static
++         */
++        NAV_VISIBLE: "yui-cal-nav-visible",
++        /**
++         * Class applied to the Navigator mask's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.MASK
++         * @type String
++         * @static
++         */
++        MASK : "yui-cal-nav-mask",
++        /**
++         * Class applied to the year label/control bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR
++         * @type String
++         * @static
++         */
++        YEAR : "yui-cal-nav-y",
++        /**
++         * Class applied to the month label/control bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH
++         * @type String
++         * @static
++         */
++        MONTH : "yui-cal-nav-m",
++        /**
++         * Class applied to the submit/cancel button's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTONS
++         * @type String
++         * @static
++         */
++        BUTTONS : "yui-cal-nav-b",
++        /**
++         * Class applied to buttons wrapping element
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTON
++         * @type String
++         * @static
++         */
++        BUTTON : "yui-cal-nav-btn",
++        /**
++         * Class applied to the validation error area's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.ERROR
++         * @type String
++         * @static
++         */
++        ERROR : "yui-cal-nav-e",
++        /**
++         * Class applied to the year input control
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR_CTRL
++         * @type String
++         * @static
++         */
++        YEAR_CTRL : "yui-cal-nav-yc",
++        /**
++         * Class applied to the month input control
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH_CTRL
++         * @type String
++         * @static
++         */
++        MONTH_CTRL : "yui-cal-nav-mc",
++        /**
++         * Class applied to controls with invalid data (e.g. a year input field with invalid an year)
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.INVALID
++         * @type String
++         * @static
++         */
++        INVALID : "yui-invalid",
++        /**
++         * Class applied to default controls
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.DEFAULT
++         * @type String
++         * @static
++         */
++        DEFAULT : "yui-default"
++    };
++
++    /**
++     * Object literal containing the default configuration values for the CalendarNavigator
++     * The configuration object is expected to follow the format below, with the properties being
++     * case sensitive.
++     * <dl>
++     * <dt>strings</dt>
++     * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
++     *     <dl>
++     *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
++     *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
++     *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
++     *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
++     *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
++     *     </dl>
++     * </dd>
++     * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
++     * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
++     * </dl>
++     * @property DEFAULT_CONFIG
++     * @type Object
++     * @static
++     */
++    CN.DEFAULT_CONFIG = {
++        strings : {
++            month: "Month",
++            year: "Year",
++            submit: "Okay",
++            cancel: "Cancel",
++            invalidYear : "Year needs to be a number"
++        },
++        monthFormat: YAHOO.widget.Calendar.LONG,
++        initialFocus: "year"
++    };
++    
++    /**
++     * Object literal containing the default configuration values for the CalendarNavigator
++     * @property _DEFAULT_CFG
++     * @protected
++     * @deprecated Made public. See the public DEFAULT_CONFIG property
++     * @type Object
++     * @static
++     */
++    CN._DEFAULT_CFG = CN.DEFAULT_CONFIG;
++
++
++    /**
++     * The suffix added to the Calendar/CalendarGroup's ID, to generate
++     * a unique ID for the Navigator and it's bounding box.
++     * @property YAHOO.widget.CalendarNavigator.ID_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.ID_SUFFIX = "_nav";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the month control.
++     * @property YAHOO.widget.CalendarNavigator.MONTH_SUFFIX
++     * @static
++     * @type String 
++     * @final
++     */
++    CN.MONTH_SUFFIX = "_month";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the year control.
++     * @property YAHOO.widget.CalendarNavigator.YEAR_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.YEAR_SUFFIX = "_year";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the error bounding box.
++     * @property YAHOO.widget.CalendarNavigator.ERROR_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.ERROR_SUFFIX = "_error";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the "Cancel" button.
++     * @property YAHOO.widget.CalendarNavigator.CANCEL_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.CANCEL_SUFFIX = "_cancel";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the "Submit" button.
++     * @property YAHOO.widget.CalendarNavigator.SUBMIT_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.SUBMIT_SUFFIX = "_submit";
++
++    /**
++     * The number of digits to which the year input control is to be limited.
++     * @property YAHOO.widget.CalendarNavigator.YR_MAX_DIGITS
++     * @static
++     * @type Number
++     */
++    CN.YR_MAX_DIGITS = 4;
++
++    /**
++     * The amount by which to increment the current year value,
++     * when the arrow up/down key is pressed on the year control
++     * @property YAHOO.widget.CalendarNavigator.YR_MINOR_INC
++     * @static
++     * @type Number
++     */
++    CN.YR_MINOR_INC = 1;
++
++    /**
++     * The amount by which to increment the current year value,
++     * when the page up/down key is pressed on the year control
++     * @property YAHOO.widget.CalendarNavigator.YR_MAJOR_INC
++     * @static
++     * @type Number
++     */
++    CN.YR_MAJOR_INC = 10;
++
++    /**
++     * Artificial delay (in ms) between the time the Navigator is hidden
++     * and the Calendar/CalendarGroup state is updated. Allows the user
++     * the see the Calendar/CalendarGroup page changing. If set to 0
++     * the Calendar/CalendarGroup page will be updated instantly
++     * @property YAHOO.widget.CalendarNavigator.UPDATE_DELAY
++     * @static
++     * @type Number
++     */
++    CN.UPDATE_DELAY = 50;
++
++    /**
++     * Regular expression used to validate the year input
++     * @property YAHOO.widget.CalendarNavigator.YR_PATTERN
++     * @static
++     * @type RegExp
++     */
++    CN.YR_PATTERN = /^\d+$/;
++    /**
++     * Regular expression used to trim strings
++     * @property YAHOO.widget.CalendarNavigator.TRIM
++     * @static
++     * @type RegExp
++     */
++    CN.TRIM = /^\s*(.*?)\s*$/;
++})();
++
++YAHOO.widget.CalendarNavigator.prototype = {
++
++    /**
++     * The unique ID for this CalendarNavigator instance
++     * @property id
++     * @type String
++     */
++    id : null,
++
++    /**
++     * The Calendar/CalendarGroup instance to which the navigator belongs
++     * @property cal
++     * @type {Calendar|CalendarGroup}
++     */
++    cal : null,
++
++    /**
++     * Reference to the HTMLElement used to render the navigator's bounding box
++     * @property navEl
++     * @type HTMLElement
++     */
++    navEl : null,
++
++    /**
++     * Reference to the HTMLElement used to render the navigator's mask
++     * @property maskEl
++     * @type HTMLElement
++     */
++    maskEl : null,
++
++    /**
++     * Reference to the HTMLElement used to input the year
++     * @property yearEl
++     * @type HTMLElement
++     */
++    yearEl : null,
++
++    /**
++     * Reference to the HTMLElement used to input the month
++     * @property monthEl
++     * @type HTMLElement
++     */
++    monthEl : null,
++
++    /**
++     * Reference to the HTMLElement used to display validation errors
++     * @property errorEl
++     * @type HTMLElement
++     */
++    errorEl : null,
++
++    /**
++     * Reference to the HTMLElement used to update the Calendar/Calendar group
++     * with the month/year values
++     * @property submitEl
++     * @type HTMLElement
++     */
++    submitEl : null,
++    
++    /**
++     * Reference to the HTMLElement used to hide the navigator without updating the 
++     * Calendar/Calendar group
++     * @property cancelEl
++     * @type HTMLElement
++     */
++    cancelEl : null,
++
++    /** 
++     * Reference to the first focusable control in the navigator (by default monthEl)
++     * @property firstCtrl
++     * @type HTMLElement
++     */
++    firstCtrl : null,
++    
++    /** 
++     * Reference to the last focusable control in the navigator (by default cancelEl)
++     * @property lastCtrl
++     * @type HTMLElement
++     */
++    lastCtrl : null,
++
++    /**
++     * The document containing the Calendar/Calendar group instance
++     * @protected
++     * @property _doc
++     * @type HTMLDocument
++     */
++    _doc : null,
++
++    /**
++     * Internal state property for the current year displayed in the navigator
++     * @protected
++     * @property _year
++     * @type Number
++     */
++    _year: null,
++    
++    /**
++     * Internal state property for the current month index displayed in the navigator
++     * @protected
++     * @property _month
++     * @type Number
++     */
++    _month: 0,
++
++    /**
++     * Private internal state property which indicates whether or not the 
++     * Navigator has been rendered.
++     * @private
++     * @property __rendered
++     * @type Boolean
++     */
++    __rendered: false,
++
++    /**
++     * Init lifecycle method called as part of construction
++     * 
++     * @method init
++     * @param {Calendar} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached
++     */
++    init : function(cal) {
++        var calBox = cal.oDomContainer;
++
++        this.cal = cal;
++        this.id = calBox.id + YAHOO.widget.CalendarNavigator.ID_SUFFIX;
++        this._doc = calBox.ownerDocument;
++
++        /**
++         * Private flag, to identify IE Quirks
++         * @private
++         * @property __isIEQuirks
++         */
++        var ie = YAHOO.env.ua.ie;
++        this.__isIEQuirks = (ie && ((ie <= 6) || (this._doc.compatMode == "BackCompat")));
++    },
++
++    /**
++     * Displays the navigator and mask, updating the input controls to reflect the 
++     * currently set month and year. The show method will invoke the render method
++     * if the navigator has not been renderered already, allowing for lazy rendering
++     * of the control.
++     * 
++     * The show method will fire the Calendar/CalendarGroup's beforeShowNav and showNav events
++     * 
++     * @method show
++     */
++    show : function() {
++        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
++
++        if (this.cal.beforeShowNavEvent.fire()) {
++            if (!this.__rendered) {
++                this.render();
++            }
++            this.clearErrors();
++
++            this._updateMonthUI();
++            this._updateYearUI();
++            this._show(this.navEl, true);
++
++            this.setInitialFocus();
++            this.showMask();
++
++            YAHOO.util.Dom.addClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
++            this.cal.showNavEvent.fire();
++        }
++    },
++
++    /**
++     * Hides the navigator and mask
++     * 
++     * The show method will fire the Calendar/CalendarGroup's beforeHideNav event and hideNav events
++     * @method hide
++     */
++    hide : function() {
++        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
++
++        if (this.cal.beforeHideNavEvent.fire()) {
++            this._show(this.navEl, false);
++            this.hideMask();
++            YAHOO.util.Dom.removeClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
++            this.cal.hideNavEvent.fire();
++        }
++    },
++    
++
++    /**
++     * Displays the navigator's mask element
++     * 
++     * @method showMask
++     */
++    showMask : function() {
++        this._show(this.maskEl, true);
++        if (this.__isIEQuirks) {
++            this._syncMask();
++        }
++    },
++
++    /**
++     * Hides the navigator's mask element
++     * 
++     * @method hideMask
++     */
++    hideMask : function() {
++        this._show(this.maskEl, false);
++    },
++
++    /**
++     * Returns the current month set on the navigator
++     * 
++     * Note: This may not be the month set in the UI, if 
++     * the UI contains an invalid value.
++     * 
++     * @method getMonth
++     * @return {Number} The Navigator's current month index
++     */
++    getMonth: function() {
++        return this._month;
++    },
++
++    /**
++     * Returns the current year set on the navigator
++     * 
++     * Note: This may not be the year set in the UI, if 
++     * the UI contains an invalid value.
++     * 
++     * @method getYear
++     * @return {Number} The Navigator's current year value
++     */
++    getYear: function() {
++        return this._year;
++    },
++
++    /**
++     * Sets the current month on the Navigator, and updates the UI
++     * 
++     * @method setMonth
++     * @param {Number} nMonth The month index, from 0 (Jan) through 11 (Dec).
++     */
++    setMonth : function(nMonth) {
++        if (nMonth >= 0 && nMonth < 12) {
++            this._month = nMonth;
++        }
++        this._updateMonthUI();
++    },
++
++    /**
++     * Sets the current year on the Navigator, and updates the UI. If the 
++     * provided year is invalid, it will not be set.
++     * 
++     * @method setYear
++     * @param {Number} nYear The full year value to set the Navigator to.
++     */
++    setYear : function(nYear) {
++        var yrPattern = YAHOO.widget.CalendarNavigator.YR_PATTERN;
++        if (YAHOO.lang.isNumber(nYear) && yrPattern.test(nYear+"")) {
++            this._year = nYear;
++        }
++        this._updateYearUI();
++    },
++
++    /**
++     * Renders the HTML for the navigator, adding it to the 
++     * document and attaches event listeners if it has not 
++     * already been rendered.
++     * 
++     * @method render
++     */
++    render: function() {
++        this.cal.beforeRenderNavEvent.fire();
++        if (!this.__rendered) {
++            this.createNav();
++            this.createMask();
++            this.applyListeners();
++            this.__rendered = true;
++        }
++        this.cal.renderNavEvent.fire();
++    },
++
++    /**
++     * Creates the navigator's containing HTMLElement, it's contents, and appends 
++     * the containg element to the Calendar/CalendarGroup's container.
++     * 
++     * @method createNav
++     */
++    createNav : function() {
++        var NAV = YAHOO.widget.CalendarNavigator;
++        var doc = this._doc;
++
++        var d = doc.createElement("div");
++        d.className = NAV.CLASSES.NAV;
++
++        var htmlBuf = this.renderNavContents([]);
++
++        d.innerHTML = htmlBuf.join('');
++        this.cal.oDomContainer.appendChild(d);
++
++        this.navEl = d;
++
++        this.yearEl = doc.getElementById(this.id + NAV.YEAR_SUFFIX);
++        this.monthEl = doc.getElementById(this.id + NAV.MONTH_SUFFIX);
++        this.errorEl = doc.getElementById(this.id + NAV.ERROR_SUFFIX);
++        this.submitEl = doc.getElementById(this.id + NAV.SUBMIT_SUFFIX);
++        this.cancelEl = doc.getElementById(this.id + NAV.CANCEL_SUFFIX);
++
++        if (YAHOO.env.ua.gecko && this.yearEl && this.yearEl.type == "text") {
++            // Avoid XUL error on focus, select [ https://bugzilla.mozilla.org/show_bug.cgi?id=236791, 
++            // supposedly fixed in 1.8.1, but there are reports of it still being around for methods other than blur ]
++            this.yearEl.setAttribute("autocomplete", "off");
++        }
++
++        this._setFirstLastElements();
++    },
++
++    /**
++     * Creates the Mask HTMLElement and appends it to the Calendar/CalendarGroups
++     * container.
++     * 
++     * @method createMask
++     */
++    createMask : function() {
++        var C = YAHOO.widget.CalendarNavigator.CLASSES;
++
++        var d = this._doc.createElement("div");
++        d.className = C.MASK;
++
++        this.cal.oDomContainer.appendChild(d);
++        this.maskEl = d;
++    },
++
++    /**
++     * Used to set the width/height of the mask in pixels to match the Calendar Container.
++     * Currently only used for IE6 or IE in quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
++     * <p>
++     * The method is also registered as an HTMLElement resize listener on the Calendars container element.
++     * </p>
++     * @protected
++     * @method _syncMask
++     */
++    _syncMask : function() {
++        var c = this.cal.oDomContainer;
++        if (c && this.maskEl) {
++            var r = YAHOO.util.Dom.getRegion(c);
++            YAHOO.util.Dom.setStyle(this.maskEl, "width", r.right - r.left + "px");
++            YAHOO.util.Dom.setStyle(this.maskEl, "height", r.bottom - r.top + "px");
++        }
++    },
++
++    /**
++     * Renders the contents of the navigator
++     * 
++     * @method renderNavContents
++     * 
++     * @param {Array} html The HTML buffer to append the HTML to.
++     * @return {Array} A reference to the buffer passed in.
++     */
++    renderNavContents : function(html) {
++        var NAV = YAHOO.widget.CalendarNavigator,
++            C = NAV.CLASSES,
++            h = html; // just to use a shorter name
++
++        h[h.length] = '<div class="' + C.MONTH + '">';
++        this.renderMonth(h);
++        h[h.length] = '</div>';
++        h[h.length] = '<div class="' + C.YEAR + '">';
++        this.renderYear(h);
++        h[h.length] = '</div>';
++        h[h.length] = '<div class="' + C.BUTTONS + '">';
++        this.renderButtons(h);
++        h[h.length] = '</div>';
++        h[h.length] = '<div class="' + C.ERROR + '" id="' + this.id + NAV.ERROR_SUFFIX + '"></div>';
++
++        return h;
++    },
++
++    /**
++     * Renders the month label and control for the navigator
++     * 
++     * @method renderNavContents
++     * @param {Array} html The HTML buffer to append the HTML to.
++     * @return {Array} A reference to the buffer passed in.
++     */
++    renderMonth : function(html) {
++        var NAV = YAHOO.widget.CalendarNavigator,
++            C = NAV.CLASSES;
++
++        var id = this.id + NAV.MONTH_SUFFIX,
++            mf = this.__getCfg("monthFormat"),
++            months = this.cal.cfg.getProperty((mf == YAHOO.widget.Calendar.SHORT) ? "MONTHS_SHORT" : "MONTHS_LONG"),
++            h = html;
++
++        if (months && months.length > 0) {
++            h[h.length] = '<label for="' + id + '">';
++            h[h.length] = this.__getCfg("month", true);
++            h[h.length] = '</label>';
++            h[h.length] = '<select name="' + id + '" id="' + id + '" class="' + C.MONTH_CTRL + '">';
++            for (var i = 0; i < months.length; i++) {
++                h[h.length] = '<option value="' + i + '">';
++                h[h.length] = months[i];
++                h[h.length] = '</option>';
++            }
++            h[h.length] = '</select>';
++        }
++        return h;
++    },
++
++    /**
++     * Renders the year label and control for the navigator
++     * 
++     * @method renderYear
++     * @param {Array} html The HTML buffer to append the HTML to.
++     * @return {Array} A reference to the buffer passed in.
++     */
++    renderYear : function(html) {
++        var NAV = YAHOO.widget.CalendarNavigator,
++            C = NAV.CLASSES;
++
++        var id = this.id + NAV.YEAR_SUFFIX,
++            size = NAV.YR_MAX_DIGITS,
++            h = html;
++
++        h[h.length] = '<label for="' + id + '">';
++        h[h.length] = this.__getCfg("year", true);
++        h[h.length] = '</label>';
++        h[h.length] = '<input type="text" name="' + id + '" id="' + id + '" class="' + C.YEAR_CTRL + '" maxlength="' + size + '"/>';
++        return h;
++    },
++
++    /**
++     * Renders the submit/cancel buttons for the navigator
++     * 
++     * @method renderButton
++     * @return {String} The HTML created for the Button UI
++     */
++    renderButtons : function(html) {
++        var C = YAHOO.widget.CalendarNavigator.CLASSES;
++        var h = html;
++
++        h[h.length] = '<span class="' + C.BUTTON + ' ' + C.DEFAULT + '">';
++        h[h.length] = '<button type="button" id="' + this.id + '_submit' + '">';
++        h[h.length] = this.__getCfg("submit", true);
++        h[h.length] = '</button>';
++        h[h.length] = '</span>';
++        h[h.length] = '<span class="' + C.BUTTON +'">';
++        h[h.length] = '<button type="button" id="' + this.id + '_cancel' + '">';
++        h[h.length] = this.__getCfg("cancel", true);
++        h[h.length] = '</button>';
++        h[h.length] = '</span>';
++
++        return h;
++    },
++
++    /**
++     * Attaches DOM event listeners to the rendered elements
++     * <p>
++     * The method will call applyKeyListeners, to setup keyboard specific 
++     * listeners
++     * </p>
++     * @method applyListeners
++     */
++    applyListeners : function() {
++        var E = YAHOO.util.Event;
++
++        function yearUpdateHandler() {
++            if (this.validate()) {
++                this.setYear(this._getYearFromUI());
++            }
++        }
++
++        function monthUpdateHandler() {
++            this.setMonth(this._getMonthFromUI());
++        }
++
++        E.on(this.submitEl, "click", this.submit, this, true);
++        E.on(this.cancelEl, "click", this.cancel, this, true);
++        E.on(this.yearEl, "blur", yearUpdateHandler, this, true);
++        E.on(this.monthEl, "change", monthUpdateHandler, this, true);
++
++        if (this.__isIEQuirks) {
++            YAHOO.util.Event.on(this.cal.oDomContainer, "resize", this._syncMask, this, true);
++        }
++
++        this.applyKeyListeners();
++    },
++
++    /**
++     * Removes/purges DOM event listeners from the rendered elements
++     * 
++     * @method purgeListeners
++     */
++    purgeListeners : function() {
++        var E = YAHOO.util.Event;
++        E.removeListener(this.submitEl, "click", this.submit);
++        E.removeListener(this.cancelEl, "click", this.cancel);
++        E.removeListener(this.yearEl, "blur");
++        E.removeListener(this.monthEl, "change");
++        if (this.__isIEQuirks) {
++            E.removeListener(this.cal.oDomContainer, "resize", this._syncMask);
++        }
++
++        this.purgeKeyListeners();
++    },
++
++    /**
++     * Attaches DOM listeners for keyboard support. 
++     * Tab/Shift-Tab looping, Enter Key Submit on Year element,
++     * Up/Down/PgUp/PgDown year increment on Year element
++     * <p>
++     * NOTE: MacOSX Safari 2.x doesn't let you tab to buttons and 
++     * MacOSX Gecko does not let you tab to buttons or select controls,
++     * so for these browsers, Tab/Shift-Tab looping is limited to the 
++     * elements which can be reached using the tab key.
++     * </p>
++     * @method applyKeyListeners
++     */
++    applyKeyListeners : function() {
++        var E = YAHOO.util.Event,
++            ua = YAHOO.env.ua;
++
++        // IE/Safari 3.1 doesn't fire keypress for arrow/pg keys (non-char keys)
++        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
++
++        // - IE/Safari 3.1 doesn't fire keypress for non-char keys
++        // - Opera doesn't allow us to cancel keydown or keypress for tab, but 
++        //   changes focus successfully on keydown (keypress is too late to change focus - opera's already moved on).
++        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
++
++        // Everyone likes keypress for Enter (char keys) - whoo hoo!
++        E.on(this.yearEl, "keypress", this._handleEnterKey, this, true);
++
++        E.on(this.yearEl, arrowEvt, this._handleDirectionKeys, this, true);
++        E.on(this.lastCtrl, tabEvt, this._handleTabKey, this, true);
++        E.on(this.firstCtrl, tabEvt, this._handleShiftTabKey, this, true);
++    },
++
++    /**
++     * Removes/purges DOM listeners for keyboard support
++     *
++     * @method purgeKeyListeners
++     */
++    purgeKeyListeners : function() {
++        var E = YAHOO.util.Event,
++            ua = YAHOO.env.ua;
++
++        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
++        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
++
++        E.removeListener(this.yearEl, "keypress", this._handleEnterKey);
++        E.removeListener(this.yearEl, arrowEvt, this._handleDirectionKeys);
++        E.removeListener(this.lastCtrl, tabEvt, this._handleTabKey);
++        E.removeListener(this.firstCtrl, tabEvt, this._handleShiftTabKey);
++    },
++
++    /**
++     * Updates the Calendar/CalendarGroup's pagedate with the currently set month and year if valid.
++     * <p>
++     * If the currently set month/year is invalid, a validation error will be displayed and the 
++     * Calendar/CalendarGroup's pagedate will not be updated.
++     * </p>
++     * @method submit
++     */
++    submit : function() {
++        if (this.validate()) {
++            this.hide();
++
++            this.setMonth(this._getMonthFromUI());
++            this.setYear(this._getYearFromUI());
++
++            var cal = this.cal;
++
++            // Artificial delay, just to help the user see something changed
++            var delay = YAHOO.widget.CalendarNavigator.UPDATE_DELAY;
++            if (delay > 0) {
++                var nav = this;
++                window.setTimeout(function(){ nav._update(cal); }, delay);
++            } else {
++                this._update(cal);
++            }
++        }
++    },
++
++    /**
++     * Updates the Calendar rendered state, based on the state of the CalendarNavigator
++     * @method _update
++     * @param cal The Calendar instance to update
++     * @protected
++     */
++    _update : function(cal) {
++        var date = YAHOO.widget.DateMath.getDate(this.getYear() - cal.cfg.getProperty("YEAR_OFFSET"), this.getMonth(), 1);
++        cal.cfg.setProperty("pagedate", date);
++        cal.render();
++    },
++
++    /**
++     * Hides the navigator and mask, without updating the Calendar/CalendarGroup's state
++     * 
++     * @method cancel
++     */
++    cancel : function() {
++        this.hide();
++    },
++
++    /**
++     * Validates the current state of the UI controls
++     * 
++     * @method validate
++     * @return {Boolean} true, if the current UI state contains valid values, false if not
++     */
++    validate : function() {
++        if (this._getYearFromUI() !== null) {
++            this.clearErrors();
++            return true;
++        } else {
++            this.setYearError();
++            this.setError(this.__getCfg("invalidYear", true));
++            return false;
++        }
++    },
++
++    /**
++     * Displays an error message in the Navigator's error panel
++     * @method setError
++     * @param {String} msg The error message to display
++     */
++    setError : function(msg) {
++        if (this.errorEl) {
++            this.errorEl.innerHTML = msg;
++            this._show(this.errorEl, true);
++        }
++    },
++
++    /**
++     * Clears the navigator's error message and hides the error panel
++     * @method clearError 
++     */
++    clearError : function() {
++        if (this.errorEl) {
++            this.errorEl.innerHTML = "";
++            this._show(this.errorEl, false);
++        }
++    },
++
++    /**
++     * Displays the validation error UI for the year control
++     * @method setYearError
++     */
++    setYearError : function() {
++        YAHOO.util.Dom.addClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
++    },
++
++    /**
++     * Removes the validation error UI for the year control
++     * @method clearYearError
++     */
++    clearYearError : function() {
++        YAHOO.util.Dom.removeClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
++    },
++
++    /**
++     * Clears all validation and error messages in the UI
++     * @method clearErrors
++     */
++    clearErrors : function() {
++        this.clearError();
++        this.clearYearError();
++    },
++
++    /**
++     * Sets the initial focus, based on the configured value
++     * @method setInitialFocus
++     */
++    setInitialFocus : function() {
++        var el = this.submitEl,
++            f = this.__getCfg("initialFocus");
++
++        if (f && f.toLowerCase) {
++            f = f.toLowerCase();
++            if (f == "year") {
++                el = this.yearEl;
++                try {
++                    this.yearEl.select();
++                } catch (selErr) {
++                    // Ignore;
++                }
++            } else if (f == "month") {
++                el = this.monthEl;
++            }
++        }
++
++        if (el && YAHOO.lang.isFunction(el.focus)) {
++            try {
++                el.focus();
++            } catch (focusErr) {
++                // TODO: Fall back if focus fails?
++            }
++        }
++    },
++
++    /**
++     * Removes all renderered HTML elements for the Navigator from
++     * the DOM, purges event listeners and clears (nulls) any property
++     * references to HTML references
++     * @method erase
++     */
++    erase : function() {
++        if (this.__rendered) {
++            this.purgeListeners();
++
++            // Clear out innerHTML references
++            this.yearEl = null;
++            this.monthEl = null;
++            this.errorEl = null;
++            this.submitEl = null;
++            this.cancelEl = null;
++            this.firstCtrl = null;
++            this.lastCtrl = null;
++            if (this.navEl) {
++                this.navEl.innerHTML = "";
++            }
++
++            var p = this.navEl.parentNode;
++            if (p) {
++                p.removeChild(this.navEl);
++            }
++            this.navEl = null;
++
++            var pm = this.maskEl.parentNode;
++            if (pm) {
++                pm.removeChild(this.maskEl);
++            }
++            this.maskEl = null;
++            this.__rendered = false;
++        }
++    },
++
++    /**
++     * Destroys the Navigator object and any HTML references
++     * @method destroy
++     */
++    destroy : function() {
++        this.erase();
++        this._doc = null;
++        this.cal = null;
++        this.id = null;
++    },
++
++    /**
++     * Protected implementation to handle how UI elements are 
++     * hidden/shown.
++     *
++     * @method _show
++     * @protected
++     */
++    _show : function(el, bShow) {
++        if (el) {
++            YAHOO.util.Dom.setStyle(el, "display", (bShow) ? "block" : "none");
++        }
++    },
++
++    /**
++     * Returns the month value (index), from the month UI element
++     * @protected
++     * @method _getMonthFromUI
++     * @return {Number} The month index, or 0 if a UI element for the month
++     * is not found
++     */
++    _getMonthFromUI : function() {
++        if (this.monthEl) {
++            return this.monthEl.selectedIndex;
++        } else {
++            return 0; // Default to Jan
++        }
++    },
++
++    /**
++     * Returns the year value, from the Navitator's year UI element
++     * @protected
++     * @method _getYearFromUI
++     * @return {Number} The year value set in the UI, if valid. null is returned if 
++     * the UI does not contain a valid year value.
++     */
++    _getYearFromUI : function() {
++        var NAV = YAHOO.widget.CalendarNavigator;
++
++        var yr = null;
++        if (this.yearEl) {
++            var value = this.yearEl.value;
++            value = value.replace(NAV.TRIM, "$1");
++
++            if (NAV.YR_PATTERN.test(value)) {
++                yr = parseInt(value, 10);
++            }
++        }
++        return yr;
++    },
++
++    /**
++     * Updates the Navigator's year UI, based on the year value set on the Navigator object
++     * @protected
++     * @method _updateYearUI
++     */
++    _updateYearUI : function() {
++        if (this.yearEl && this._year !== null) {
++            this.yearEl.value = this._year;
++        }
++    },
++
++    /**
++     * Updates the Navigator's month UI, based on the month value set on the Navigator object
++     * @protected
++     * @method _updateMonthUI
++     */
++    _updateMonthUI : function() {
++        if (this.monthEl) {
++            this.monthEl.selectedIndex = this._month;
++        }
++    },
++
++    /**
++     * Sets up references to the first and last focusable element in the Navigator's UI
++     * in terms of tab order (Naviagator's firstEl and lastEl properties). The references
++     * are used to control modality by looping around from the first to the last control
++     * and visa versa for tab/shift-tab navigation.
++     * <p>
++     * See <a href="#applyKeyListeners">applyKeyListeners</a>
++     * </p>
++     * @protected
++     * @method _setFirstLastElements
++     */
++    _setFirstLastElements : function() {
++        this.firstCtrl = this.monthEl;
++        this.lastCtrl = this.cancelEl;
++
++        // Special handling for MacOSX.
++        // - Safari 2.x can't focus on buttons
++        // - Gecko can't focus on select boxes or buttons
++        if (this.__isMac) {
++            if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420){
++                this.firstCtrl = this.monthEl;
++                this.lastCtrl = this.yearEl;
++            }
++            if (YAHOO.env.ua.gecko) {
++                this.firstCtrl = this.yearEl;
++                this.lastCtrl = this.yearEl;
++            }
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture Enter 
++     * on the Navigator's year control (yearEl)
++     * 
++     * @method _handleEnterKey
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleEnterKey : function(e) {
++        var KEYS = YAHOO.util.KeyListener.KEY;
++
++        if (YAHOO.util.Event.getCharCode(e) == KEYS.ENTER) {
++            YAHOO.util.Event.preventDefault(e);
++            this.submit();
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture up/down/pgup/pgdown
++     * on the Navigator's year control (yearEl).
++     * 
++     * @method _handleDirectionKeys
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleDirectionKeys : function(e) {
++        var E = YAHOO.util.Event,
++            KEYS = YAHOO.util.KeyListener.KEY,
++            NAV = YAHOO.widget.CalendarNavigator;
++
++        var value = (this.yearEl.value) ? parseInt(this.yearEl.value, 10) : null;
++        if (isFinite(value)) {
++            var dir = false;
++            switch(E.getCharCode(e)) {
++                case KEYS.UP:
++                    this.yearEl.value = value + NAV.YR_MINOR_INC;
++                    dir = true;
++                    break;
++                case KEYS.DOWN:
++                    this.yearEl.value = Math.max(value - NAV.YR_MINOR_INC, 0);
++                    dir = true;
++                    break;
++                case KEYS.PAGE_UP:
++                    this.yearEl.value = value + NAV.YR_MAJOR_INC;
++                    dir = true;
++                    break;
++                case KEYS.PAGE_DOWN:
++                    this.yearEl.value = Math.max(value - NAV.YR_MAJOR_INC, 0);
++                    dir = true;
++                    break;
++                default:
++                    break;
++            }
++            if (dir) {
++                E.preventDefault(e);
++                try {
++                    this.yearEl.select();
++                } catch(err) {
++                    // Ignore
++                }
++            }
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture Tab 
++     * on the last control (lastCtrl) in the Navigator.
++     * 
++     * @method _handleTabKey
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleTabKey : function(e) {
++        var E = YAHOO.util.Event,
++            KEYS = YAHOO.util.KeyListener.KEY;
++
++        if (E.getCharCode(e) == KEYS.TAB && !e.shiftKey) {
++            try {
++                E.preventDefault(e);
++                this.firstCtrl.focus();
++            } catch (err) {
++                // Ignore - mainly for focus edge cases
++            }
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture Shift-Tab 
++     * on the first control (firstCtrl) in the Navigator.
++     * 
++     * @method _handleShiftTabKey
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleShiftTabKey : function(e) {
++        var E = YAHOO.util.Event,
++            KEYS = YAHOO.util.KeyListener.KEY;
++
++        if (e.shiftKey && E.getCharCode(e) == KEYS.TAB) {
++            try {
++                E.preventDefault(e);
++                this.lastCtrl.focus();
++            } catch (err) {
++                // Ignore - mainly for focus edge cases
++            }
++        }
++    },
++
++    /**
++     * Retrieve Navigator configuration values from 
++     * the parent Calendar/CalendarGroup's config value.
++     * <p>
++     * If it has not been set in the user provided configuration, the method will 
++     * return the default value of the configuration property, as set in DEFAULT_CONFIG
++     * </p>
++     * @private
++     * @method __getCfg
++     * @param {String} Case sensitive property name.
++     * @param {Boolean} true, if the property is a string property, false if not.
++     * @return The value of the configuration property
++     */
++    __getCfg : function(prop, bIsStr) {
++        var DEF_CFG = YAHOO.widget.CalendarNavigator.DEFAULT_CONFIG;
++        var cfg = this.cal.cfg.getProperty("navigator");
++
++        if (bIsStr) {
++            return (cfg !== true && cfg.strings && cfg.strings[prop]) ? cfg.strings[prop] : DEF_CFG.strings[prop];
++        } else {
++            return (cfg !== true && cfg[prop]) ? cfg[prop] : DEF_CFG[prop];
++        }
++    },
++
++    /**
++     * Private flag, to identify MacOS
++     * @private
++     * @property __isMac
++     */
++    __isMac : (navigator.userAgent.toLowerCase().indexOf("macintosh") != -1)
++
++};
++YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/calendar/calendar-min.js b/pylons_app/public/js/yui/calendar/calendar-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/calendar-min.js
+@@ -0,0 +1,18 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){YAHOO.util.Config=function(D){if(D){this.init(D);}};var B=YAHOO.lang,C=YAHOO.util.CustomEvent,A=YAHOO.util.Config;A.CONFIG_CHANGED_EVENT="configChanged";A.BOOLEAN_TYPE="boolean";A.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(D){this.owner=D;this.configChangedEvent=this.createEvent(A.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=C.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[];},checkBoolean:function(D){return(typeof D==A.BOOLEAN_TYPE);},checkNumber:function(D){return(!isNaN(D));},fireEvent:function(D,F){var E=this.config[D];if(E&&E.event){E.event.fire(F);}},addProperty:function(E,D){E=E.toLowerCase();this.config[E]=D;D.event=this.createEvent(E,{scope:this.owner});D.event.signature=C.LIST;D.key=E;if(D.handler){D.event.subscribe(D.handler,this.owner);}this.setProperty(E,D.value,true);if(!D.suppressEvent){this.queueProperty(E,D.value);}},getConfig:function(){var D={},F=this.config,G,E;for(G in F){if(B.hasOwnProperty(F,G)){E=F[G];if(E&&E.event){D[G]=E.value;}}}return D;},getProperty:function(D){var E=this.config[D.toLowerCase()];if(E&&E.event){return E.value;}else{return undefined;}},resetProperty:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event){if(this.initialConfig[D]&&!B.isUndefined(this.initialConfig[D])){this.setProperty(D,this.initialConfig[D]);return true;}}else{return false;}},setProperty:function(E,G,D){var F;E=E.toLowerCase();if(this.queueInProgress&&!D){this.queueProperty(E,G);return true;}else{F=this.config[E];if(F&&F.event){if(F.validator&&!F.validator(G)){return false;}else{F.value=G;if(!D){this.fireEvent(E,G);this.configChangedEvent.fire([E,G]);}return true;}}else{return false;}}},queueProperty:function(S,P){S=S.toLowerCase();var R=this.config[S],K=false,J,G,H,I,O,Q,F,M,N,D,L,T,E;if(R&&R.event){if(!B.isUndefined(P)&&R.validator&&!R.validator(P)){return false;}else{if(!B.isUndefined(P)){R.value=P;}else{P=R.value;}K=false;J=this.eventQueue.length;for(L=0;L<J;L++){G=this.eventQueue[L];if(G){H=G[0];I=G[1];if(H==S){this.eventQueue[L]=null;this.eventQueue.push([S,(!B.isUndefined(P)?P:I)]);K=true;break;}}}if(!K&&!B.isUndefined(P)){this.eventQueue.push([S,P]);}}if(R.supercedes){O=R.supercedes.length;for(T=0;T<O;T++){Q=R.supercedes[T];F=this.eventQueue.length;for(E=0;E<F;E++){M=this.eventQueue[E];if(M){N=M[0];D=M[1];if(N==Q.toLowerCase()){this.eventQueue.push([N,D]);this.eventQueue[E]=null;break;}}}}}return true;}else{return false;}},refireEvent:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event&&!B.isUndefined(E.value)){if(this.queueInProgress){this.queueProperty(D);}else{this.fireEvent(D,E.value);}}},applyConfig:function(D,G){var F,E;if(G){E={};for(F in D){if(B.hasOwnProperty(D,F)){E[F.toLowerCase()]=D[F];}}this.initialConfig=E;}for(F in D){if(B.hasOwnProperty(D,F)){this.queueProperty(F,D[F]);}}},refresh:function(){var D;for(D in this.config){if(B.hasOwnProperty(this.config,D)){this.refireEvent(D);}}},fireQueue:function(){var E,H,D,G,F;this.queueInProgress=true;for(E=0;E<this.eventQueue.length;E++){H=this.eventQueue[E];if(H){D=H[0];G=H[1];F=this.config[D];F.value=G;this.eventQueue[E]=null;this.fireEvent(D,G);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(D,E,G,H){var F=this.config[D.toLowerCase()];if(F&&F.event){if(!A.alreadySubscribed(F.event,E,G)){F.event.subscribe(E,G,H);}return true;}else{return false;}},unsubscribeFromConfigEvent:function(D,E,G){var F=this.config[D.toLowerCase()];if(F&&F.event){return F.event.unsubscribe(E,G);}else{return false;}},toString:function(){var D="Config";if(this.owner){D+=" ["+this.owner.toString()+"]";}return D;},outputEventQueue:function(){var D="",G,E,F=this.eventQueue.length;for(E=0;E<F;E++){G=this.eventQueue[E];if(G){D+=G[0]+"="+G[1]+", ";}}return D;},destroy:function(){var E=this.config,D,F;for(D in E){if(B.hasOwnProperty(E,D)){F=E[D];F.event.unsubscribeAll();F.event=null;}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null;}};A.alreadySubscribed=function(E,H,I){var F=E.subscribers.length,D,G;if(F>0){G=F-1;do{D=E.subscribers[G];if(D&&D.obj==I&&D.fn==H){return true;}}while(G--);}return false;};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);}());YAHOO.widget.DateMath={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:1000*60*60*24,WEEK_ONE_JAN_DATE:1,add:function(A,D,C){var F=new Date(A.getTime());switch(D){case this.MONTH:var E=A.getMonth()+C;var B=0;if(E<0){while(E<0){E+=12;B-=1;}}else{if(E>11){while(E>11){E-=12;B+=1;}}}F.setMonth(E);F.setFullYear(A.getFullYear()+B);break;case this.DAY:this._addDays(F,C);break;case this.YEAR:F.setFullYear(A.getFullYear()+C);break;case this.WEEK:this._addDays(F,(C*7));break;}return F;},_addDays:function(D,C){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420){if(C<0){for(var B=-128;C<B;C-=B){D.setDate(D.getDate()+B);}}else{for(var A=96;C>A;C-=A){D.setDate(D.getDate()+A);}}}D.setDate(D.getDate()+C);},subtract:function(A,C,B){return this.add(A,C,(B*-1));},before:function(C,B){var A=B.getTime();if(C.getTime()<A){return true;}else{return false;}},after:function(C,B){var A=B.getTime();if(C.getTime()>A){return true;}else{return false;}},between:function(B,A,C){if(this.after(B,A)&&this.before(B,C)){return true;}else{return false;}},getJan1:function(A){return this.getDate(A,0,1);},getDayOffset:function(B,D){var C=this.getJan1(D);var A=Math.ceil((B.getTime()-C.getTime())/this.ONE_DAY_MS);return A;},getWeekNumber:function(D,B,G){B=B||0;G=G||this.WEEK_ONE_JAN_DATE;var H=this.clearTime(D),L,M;if(H.getDay()===B){L=H;}else{L=this.getFirstDayOfWeek(H,B);}var I=L.getFullYear();M=new Date(L.getTime()+6*this.ONE_DAY_MS);var F;if(I!==M.getFullYear()&&M.getDate()>=G){F=1;}else{var E=this.clearTime(this.getDate(I,0,G)),A=this.getFirstDayOfWeek(E,B);var J=Math.round((H.getTime()-A.getTime())/this.ONE_DAY_MS);var K=J%7;var C=(J-K)/7;
++F=C+1;}return F;},getFirstDayOfWeek:function(D,A){A=A||0;var B=D.getDay(),C=(B-A+7)%7;return this.subtract(D,this.DAY,C);},isYearOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getFullYear()!=A.getFullYear()){C=true;}return C;},isMonthOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getMonth()!=A.getMonth()){C=true;}return C;},findMonthStart:function(A){var B=this.getDate(A.getFullYear(),A.getMonth(),1);return B;},findMonthEnd:function(B){var D=this.findMonthStart(B);var C=this.add(D,this.MONTH,1);var A=this.subtract(C,this.DAY,1);return A;},clearTime:function(A){A.setHours(12,0,0,0);return A;},getDate:function(D,A,C){var B=null;if(YAHOO.lang.isUndefined(C)){C=1;}if(D>=100){B=new Date(D,A,C);}else{B=new Date();B.setFullYear(D);B.setMonth(A);B.setDate(C);B.setHours(0,0,0,0);}return B;}};(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,E=YAHOO.lang,D=YAHOO.widget.DateMath;function F(I,G,H){this.init.apply(this,arguments);}F.IMG_ROOT=null;F.DATE="D";F.MONTH_DAY="MD";F.WEEKDAY="WD";F.RANGE="R";F.MONTH="M";F.DISPLAY_DAYS=42;F.STOP_RENDER="S";F.SHORT="short";F.LONG="long";F.MEDIUM="medium";F.ONE_CHAR="1char";F.DEFAULT_CONFIG={YEAR_OFFSET:{key:"year_offset",value:0,supercedes:["pagedate","selected","mindate","maxdate"]},TODAY:{key:"today",value:new Date(),supercedes:["pagedate"]},PAGEDATE:{key:"pagedate",value:null},SELECTED:{key:"selected",value:[]},TITLE:{key:"title",value:""},CLOSE:{key:"close",value:false},IFRAME:{key:"iframe",value:(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6)?true:false},MINDATE:{key:"mindate",value:null},MAXDATE:{key:"maxdate",value:null},MULTI_SELECT:{key:"multi_select",value:false},START_WEEKDAY:{key:"start_weekday",value:0},SHOW_WEEKDAYS:{key:"show_weekdays",value:true},SHOW_WEEK_HEADER:{key:"show_week_header",value:false},SHOW_WEEK_FOOTER:{key:"show_week_footer",value:false},HIDE_BLANK_WEEKS:{key:"hide_blank_weeks",value:false},NAV_ARROW_LEFT:{key:"nav_arrow_left",value:null},NAV_ARROW_RIGHT:{key:"nav_arrow_right",value:null},MONTHS_SHORT:{key:"months_short",value:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},MONTHS_LONG:{key:"months_long",value:["January","February","March","April","May","June","July","August","September","October","November","December"]},WEEKDAYS_1CHAR:{key:"weekdays_1char",value:["S","M","T","W","T","F","S"]},WEEKDAYS_SHORT:{key:"weekdays_short",value:["Su","Mo","Tu","We","Th","Fr","Sa"]},WEEKDAYS_MEDIUM:{key:"weekdays_medium",value:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},WEEKDAYS_LONG:{key:"weekdays_long",value:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},LOCALE_MONTHS:{key:"locale_months",value:"long"},LOCALE_WEEKDAYS:{key:"locale_weekdays",value:"short"},DATE_DELIMITER:{key:"date_delimiter",value:","},DATE_FIELD_DELIMITER:{key:"date_field_delimiter",value:"/"},DATE_RANGE_DELIMITER:{key:"date_range_delimiter",value:"-"},MY_MONTH_POSITION:{key:"my_month_position",value:1},MY_YEAR_POSITION:{key:"my_year_position",value:2},MD_MONTH_POSITION:{key:"md_month_position",value:1},MD_DAY_POSITION:{key:"md_day_position",value:2},MDY_MONTH_POSITION:{key:"mdy_month_position",value:1},MDY_DAY_POSITION:{key:"mdy_day_position",value:2},MDY_YEAR_POSITION:{key:"mdy_year_position",value:3},MY_LABEL_MONTH_POSITION:{key:"my_label_month_position",value:1},MY_LABEL_YEAR_POSITION:{key:"my_label_year_position",value:2},MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix",value:" "},MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix",value:""},NAV:{key:"navigator",value:null},STRINGS:{key:"strings",value:{previousMonth:"Previous Month",nextMonth:"Next Month",close:"Close"},supercedes:["close","title"]}};F._DEFAULT_CONFIG=F.DEFAULT_CONFIG;var B=F.DEFAULT_CONFIG;F._EVENT_TYPES={BEFORE_SELECT:"beforeSelect",SELECT:"select",BEFORE_DESELECT:"beforeDeselect",DESELECT:"deselect",CHANGE_PAGE:"changePage",BEFORE_RENDER:"beforeRender",RENDER:"render",BEFORE_DESTROY:"beforeDestroy",DESTROY:"destroy",RESET:"reset",CLEAR:"clear",BEFORE_HIDE:"beforeHide",HIDE:"hide",BEFORE_SHOW:"beforeShow",SHOW:"show",BEFORE_HIDE_NAV:"beforeHideNav",HIDE_NAV:"hideNav",BEFORE_SHOW_NAV:"beforeShowNav",SHOW_NAV:"showNav",BEFORE_RENDER_NAV:"beforeRenderNav",RENDER_NAV:"renderNav"};F.STYLES={CSS_ROW_HEADER:"calrowhead",CSS_ROW_FOOTER:"calrowfoot",CSS_CELL:"calcell",CSS_CELL_SELECTOR:"selector",CSS_CELL_SELECTED:"selected",CSS_CELL_SELECTABLE:"selectable",CSS_CELL_RESTRICTED:"restricted",CSS_CELL_TODAY:"today",CSS_CELL_OOM:"oom",CSS_CELL_OOB:"previous",CSS_HEADER:"calheader",CSS_HEADER_TEXT:"calhead",CSS_BODY:"calbody",CSS_WEEKDAY_CELL:"calweekdaycell",CSS_WEEKDAY_ROW:"calweekdayrow",CSS_FOOTER:"calfoot",CSS_CALENDAR:"yui-calendar",CSS_SINGLE:"single",CSS_CONTAINER:"yui-calcontainer",CSS_NAV_LEFT:"calnavleft",CSS_NAV_RIGHT:"calnavright",CSS_NAV:"calnav",CSS_CLOSE:"calclose",CSS_CELL_TOP:"calcelltop",CSS_CELL_LEFT:"calcellleft",CSS_CELL_RIGHT:"calcellright",CSS_CELL_BOTTOM:"calcellbottom",CSS_CELL_HOVER:"calcellhover",CSS_CELL_HIGHLIGHT1:"highlight1",CSS_CELL_HIGHLIGHT2:"highlight2",CSS_CELL_HIGHLIGHT3:"highlight3",CSS_CELL_HIGHLIGHT4:"highlight4",CSS_WITH_TITLE:"withtitle",CSS_FIXED_SIZE:"fixedsize",CSS_LINK_CLOSE:"link-close"};F._STYLES=F.STYLES;F.prototype={Config:null,parent:null,index:-1,cells:null,cellDates:null,id:null,containerId:null,oDomContainer:null,today:null,renderStack:null,_renderStack:null,oNavigator:null,_selectedDates:null,domEventMap:null,_parseArgs:function(H){var G={id:null,container:null,config:null};if(H&&H.length&&H.length>0){switch(H.length){case 1:G.id=null;G.container=H[0];G.config=null;break;case 2:if(E.isObject(H[1])&&!H[1].tagName&&!(H[1] instanceof String)){G.id=null;G.container=H[0];G.config=H[1];}else{G.id=H[0];G.container=H[1];G.config=null;}break;default:G.id=H[0];G.container=H[1];G.config=H[2];break;}}else{}return G;},init:function(J,H,I){var G=this._parseArgs(arguments);J=G.id;H=G.container;I=G.config;this.oDomContainer=C.get(H);if(!this.oDomContainer.id){this.oDomContainer.id=C.generateId();
++}if(!J){J=this.oDomContainer.id+"_t";}this.id=J;this.containerId=this.oDomContainer.id;this.initEvents();this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.initStyles();C.addClass(this.oDomContainer,this.Style.CSS_CONTAINER);C.addClass(this.oDomContainer,this.Style.CSS_SINGLE);this.cellDates=[];this.cells=[];this.renderStack=[];this._renderStack=[];this.setupConfig();if(I){this.cfg.applyConfig(I,true);}this.cfg.fireQueue();this.today=this.cfg.getProperty("today");},configIframe:function(I,H,J){var G=H[0];if(!this.parent){if(C.inDocument(this.oDomContainer)){if(G){var K=C.getStyle(this.oDomContainer,"position");if(K=="absolute"||K=="relative"){if(!C.inDocument(this.iframe)){this.iframe=document.createElement("iframe");this.iframe.src="javascript:false;";C.setStyle(this.iframe,"opacity","0");if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6){C.addClass(this.iframe,this.Style.CSS_FIXED_SIZE);}this.oDomContainer.insertBefore(this.iframe,this.oDomContainer.firstChild);}}}else{if(this.iframe){if(this.iframe.parentNode){this.iframe.parentNode.removeChild(this.iframe);}this.iframe=null;}}}}},configTitle:function(H,G,I){var K=G[0];if(K){this.createTitleBar(K);}else{var J=this.cfg.getProperty(B.CLOSE.key);if(!J){this.removeTitleBar();}else{this.createTitleBar("&#160;");}}},configClose:function(H,G,I){var K=G[0],J=this.cfg.getProperty(B.TITLE.key);if(K){if(!J){this.createTitleBar("&#160;");}this.createCloseButton();}else{this.removeCloseButton();if(!J){this.removeTitleBar();}}},initEvents:function(){var G=F._EVENT_TYPES,I=YAHOO.util.CustomEvent,H=this;H.beforeSelectEvent=new I(G.BEFORE_SELECT);H.selectEvent=new I(G.SELECT);H.beforeDeselectEvent=new I(G.BEFORE_DESELECT);H.deselectEvent=new I(G.DESELECT);H.changePageEvent=new I(G.CHANGE_PAGE);H.beforeRenderEvent=new I(G.BEFORE_RENDER);H.renderEvent=new I(G.RENDER);H.beforeDestroyEvent=new I(G.BEFORE_DESTROY);H.destroyEvent=new I(G.DESTROY);H.resetEvent=new I(G.RESET);H.clearEvent=new I(G.CLEAR);H.beforeShowEvent=new I(G.BEFORE_SHOW);H.showEvent=new I(G.SHOW);H.beforeHideEvent=new I(G.BEFORE_HIDE);H.hideEvent=new I(G.HIDE);H.beforeShowNavEvent=new I(G.BEFORE_SHOW_NAV);H.showNavEvent=new I(G.SHOW_NAV);H.beforeHideNavEvent=new I(G.BEFORE_HIDE_NAV);H.hideNavEvent=new I(G.HIDE_NAV);H.beforeRenderNavEvent=new I(G.BEFORE_RENDER_NAV);H.renderNavEvent=new I(G.RENDER_NAV);H.beforeSelectEvent.subscribe(H.onBeforeSelect,this,true);H.selectEvent.subscribe(H.onSelect,this,true);H.beforeDeselectEvent.subscribe(H.onBeforeDeselect,this,true);H.deselectEvent.subscribe(H.onDeselect,this,true);H.changePageEvent.subscribe(H.onChangePage,this,true);H.renderEvent.subscribe(H.onRender,this,true);H.resetEvent.subscribe(H.onReset,this,true);H.clearEvent.subscribe(H.onClear,this,true);},doPreviousMonthNav:function(H,G){A.preventDefault(H);setTimeout(function(){G.previousMonth();var J=C.getElementsByClassName(G.Style.CSS_NAV_LEFT,"a",G.oDomContainer);if(J&&J[0]){try{J[0].focus();}catch(I){}}},0);},doNextMonthNav:function(H,G){A.preventDefault(H);setTimeout(function(){G.nextMonth();var J=C.getElementsByClassName(G.Style.CSS_NAV_RIGHT,"a",G.oDomContainer);if(J&&J[0]){try{J[0].focus();}catch(I){}}},0);},doSelectCell:function(M,G){var R,O,I,L;var N=A.getTarget(M),H=N.tagName.toLowerCase(),K=false;while(H!="td"&&!C.hasClass(N,G.Style.CSS_CELL_SELECTABLE)){if(!K&&H=="a"&&C.hasClass(N,G.Style.CSS_CELL_SELECTOR)){K=true;}N=N.parentNode;H=N.tagName.toLowerCase();if(N==this.oDomContainer||H=="html"){return;}}if(K){A.preventDefault(M);}R=N;if(C.hasClass(R,G.Style.CSS_CELL_SELECTABLE)){L=G.getIndexFromId(R.id);if(L>-1){O=G.cellDates[L];if(O){I=D.getDate(O[0],O[1]-1,O[2]);var Q;if(G.Options.MULTI_SELECT){Q=R.getElementsByTagName("a")[0];if(Q){Q.blur();}var J=G.cellDates[L];var P=G._indexOfSelectedFieldArray(J);if(P>-1){G.deselectCell(L);}else{G.selectCell(L);}}else{Q=R.getElementsByTagName("a")[0];if(Q){Q.blur();}G.selectCell(L);}}}}},doCellMouseOver:function(I,H){var G;if(I){G=A.getTarget(I);}else{G=this;}while(G.tagName&&G.tagName.toLowerCase()!="td"){G=G.parentNode;if(!G.tagName||G.tagName.toLowerCase()=="html"){return;}}if(C.hasClass(G,H.Style.CSS_CELL_SELECTABLE)){C.addClass(G,H.Style.CSS_CELL_HOVER);}},doCellMouseOut:function(I,H){var G;if(I){G=A.getTarget(I);}else{G=this;}while(G.tagName&&G.tagName.toLowerCase()!="td"){G=G.parentNode;if(!G.tagName||G.tagName.toLowerCase()=="html"){return;}}if(C.hasClass(G,H.Style.CSS_CELL_SELECTABLE)){C.removeClass(G,H.Style.CSS_CELL_HOVER);}},setupConfig:function(){var G=this.cfg;G.addProperty(B.TODAY.key,{value:new Date(B.TODAY.value.getTime()),supercedes:B.TODAY.supercedes,handler:this.configToday,suppressEvent:true});G.addProperty(B.PAGEDATE.key,{value:B.PAGEDATE.value||new Date(B.TODAY.value.getTime()),handler:this.configPageDate});G.addProperty(B.SELECTED.key,{value:B.SELECTED.value.concat(),handler:this.configSelected});G.addProperty(B.TITLE.key,{value:B.TITLE.value,handler:this.configTitle});G.addProperty(B.CLOSE.key,{value:B.CLOSE.value,handler:this.configClose});G.addProperty(B.IFRAME.key,{value:B.IFRAME.value,handler:this.configIframe,validator:G.checkBoolean});G.addProperty(B.MINDATE.key,{value:B.MINDATE.value,handler:this.configMinDate});G.addProperty(B.MAXDATE.key,{value:B.MAXDATE.value,handler:this.configMaxDate});G.addProperty(B.MULTI_SELECT.key,{value:B.MULTI_SELECT.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.START_WEEKDAY.key,{value:B.START_WEEKDAY.value,handler:this.configOptions,validator:G.checkNumber});G.addProperty(B.SHOW_WEEKDAYS.key,{value:B.SHOW_WEEKDAYS.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.SHOW_WEEK_HEADER.key,{value:B.SHOW_WEEK_HEADER.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.SHOW_WEEK_FOOTER.key,{value:B.SHOW_WEEK_FOOTER.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.HIDE_BLANK_WEEKS.key,{value:B.HIDE_BLANK_WEEKS.value,handler:this.configOptions,validator:G.checkBoolean});G.addProperty(B.NAV_ARROW_LEFT.key,{value:B.NAV_ARROW_LEFT.value,handler:this.configOptions});
++G.addProperty(B.NAV_ARROW_RIGHT.key,{value:B.NAV_ARROW_RIGHT.value,handler:this.configOptions});G.addProperty(B.MONTHS_SHORT.key,{value:B.MONTHS_SHORT.value,handler:this.configLocale});G.addProperty(B.MONTHS_LONG.key,{value:B.MONTHS_LONG.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_1CHAR.key,{value:B.WEEKDAYS_1CHAR.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_SHORT.key,{value:B.WEEKDAYS_SHORT.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_MEDIUM.key,{value:B.WEEKDAYS_MEDIUM.value,handler:this.configLocale});G.addProperty(B.WEEKDAYS_LONG.key,{value:B.WEEKDAYS_LONG.value,handler:this.configLocale});var H=function(){G.refireEvent(B.LOCALE_MONTHS.key);G.refireEvent(B.LOCALE_WEEKDAYS.key);};G.subscribeToConfigEvent(B.START_WEEKDAY.key,H,this,true);G.subscribeToConfigEvent(B.MONTHS_SHORT.key,H,this,true);G.subscribeToConfigEvent(B.MONTHS_LONG.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_1CHAR.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_SHORT.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_MEDIUM.key,H,this,true);G.subscribeToConfigEvent(B.WEEKDAYS_LONG.key,H,this,true);G.addProperty(B.LOCALE_MONTHS.key,{value:B.LOCALE_MONTHS.value,handler:this.configLocaleValues});G.addProperty(B.LOCALE_WEEKDAYS.key,{value:B.LOCALE_WEEKDAYS.value,handler:this.configLocaleValues});G.addProperty(B.YEAR_OFFSET.key,{value:B.YEAR_OFFSET.value,supercedes:B.YEAR_OFFSET.supercedes,handler:this.configLocale});G.addProperty(B.DATE_DELIMITER.key,{value:B.DATE_DELIMITER.value,handler:this.configLocale});G.addProperty(B.DATE_FIELD_DELIMITER.key,{value:B.DATE_FIELD_DELIMITER.value,handler:this.configLocale});G.addProperty(B.DATE_RANGE_DELIMITER.key,{value:B.DATE_RANGE_DELIMITER.value,handler:this.configLocale});G.addProperty(B.MY_MONTH_POSITION.key,{value:B.MY_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_YEAR_POSITION.key,{value:B.MY_YEAR_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MD_MONTH_POSITION.key,{value:B.MD_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MD_DAY_POSITION.key,{value:B.MD_DAY_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MDY_MONTH_POSITION.key,{value:B.MDY_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MDY_DAY_POSITION.key,{value:B.MDY_DAY_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MDY_YEAR_POSITION.key,{value:B.MDY_YEAR_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_LABEL_MONTH_POSITION.key,{value:B.MY_LABEL_MONTH_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_LABEL_YEAR_POSITION.key,{value:B.MY_LABEL_YEAR_POSITION.value,handler:this.configLocale,validator:G.checkNumber});G.addProperty(B.MY_LABEL_MONTH_SUFFIX.key,{value:B.MY_LABEL_MONTH_SUFFIX.value,handler:this.configLocale});G.addProperty(B.MY_LABEL_YEAR_SUFFIX.key,{value:B.MY_LABEL_YEAR_SUFFIX.value,handler:this.configLocale});G.addProperty(B.NAV.key,{value:B.NAV.value,handler:this.configNavigator});G.addProperty(B.STRINGS.key,{value:B.STRINGS.value,handler:this.configStrings,validator:function(I){return E.isObject(I);},supercedes:B.STRINGS.supercedes});},configStrings:function(H,G,I){var J=E.merge(B.STRINGS.value,G[0]);this.cfg.setProperty(B.STRINGS.key,J,true);},configPageDate:function(H,G,I){this.cfg.setProperty(B.PAGEDATE.key,this._parsePageDate(G[0]),true);},configMinDate:function(H,G,I){var J=G[0];if(E.isString(J)){J=this._parseDate(J);this.cfg.setProperty(B.MINDATE.key,D.getDate(J[0],(J[1]-1),J[2]));}},configMaxDate:function(H,G,I){var J=G[0];if(E.isString(J)){J=this._parseDate(J);this.cfg.setProperty(B.MAXDATE.key,D.getDate(J[0],(J[1]-1),J[2]));}},configToday:function(I,H,J){var K=H[0];if(E.isString(K)){K=this._parseDate(K);}var G=D.clearTime(K);if(!this.cfg.initialConfig[B.PAGEDATE.key]){this.cfg.setProperty(B.PAGEDATE.key,G);}this.today=G;this.cfg.setProperty(B.TODAY.key,G,true);},configSelected:function(I,G,K){var H=G[0],J=B.SELECTED.key;if(H){if(E.isString(H)){this.cfg.setProperty(J,this._parseDates(H),true);}}if(!this._selectedDates){this._selectedDates=this.cfg.getProperty(J);}},configOptions:function(H,G,I){this.Options[H.toUpperCase()]=G[0];},configLocale:function(H,G,I){this.Locale[H.toUpperCase()]=G[0];this.cfg.refireEvent(B.LOCALE_MONTHS.key);this.cfg.refireEvent(B.LOCALE_WEEKDAYS.key);},configLocaleValues:function(J,I,K){J=J.toLowerCase();var M=I[0],H=this.cfg,N=this.Locale;switch(J){case B.LOCALE_MONTHS.key:switch(M){case F.SHORT:N.LOCALE_MONTHS=H.getProperty(B.MONTHS_SHORT.key).concat();break;case F.LONG:N.LOCALE_MONTHS=H.getProperty(B.MONTHS_LONG.key).concat();break;}break;case B.LOCALE_WEEKDAYS.key:switch(M){case F.ONE_CHAR:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_1CHAR.key).concat();break;case F.SHORT:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_SHORT.key).concat();break;case F.MEDIUM:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_MEDIUM.key).concat();break;case F.LONG:N.LOCALE_WEEKDAYS=H.getProperty(B.WEEKDAYS_LONG.key).concat();break;}var L=H.getProperty(B.START_WEEKDAY.key);if(L>0){for(var G=0;G<L;++G){N.LOCALE_WEEKDAYS.push(N.LOCALE_WEEKDAYS.shift());}}break;}},configNavigator:function(H,G,I){var J=G[0];if(YAHOO.widget.CalendarNavigator&&(J===true||E.isObject(J))){if(!this.oNavigator){this.oNavigator=new YAHOO.widget.CalendarNavigator(this);this.beforeRenderEvent.subscribe(function(){if(!this.pages){this.oNavigator.erase();}},this,true);}}else{if(this.oNavigator){this.oNavigator.destroy();this.oNavigator=null;}}},initStyles:function(){var G=F.STYLES;this.Style={CSS_ROW_HEADER:G.CSS_ROW_HEADER,CSS_ROW_FOOTER:G.CSS_ROW_FOOTER,CSS_CELL:G.CSS_CELL,CSS_CELL_SELECTOR:G.CSS_CELL_SELECTOR,CSS_CELL_SELECTED:G.CSS_CELL_SELECTED,CSS_CELL_SELECTABLE:G.CSS_CELL_SELECTABLE,CSS_CELL_RESTRICTED:G.CSS_CELL_RESTRICTED,CSS_CELL_TODAY:G.CSS_CELL_TODAY,CSS_CELL_OOM:G.CSS_CELL_OOM,CSS_CELL_OOB:G.CSS_CELL_OOB,CSS_HEADER:G.CSS_HEADER,CSS_HEADER_TEXT:G.CSS_HEADER_TEXT,CSS_BODY:G.CSS_BODY,CSS_WEEKDAY_CELL:G.CSS_WEEKDAY_CELL,CSS_WEEKDAY_ROW:G.CSS_WEEKDAY_ROW,CSS_FOOTER:G.CSS_FOOTER,CSS_CALENDAR:G.CSS_CALENDAR,CSS_SINGLE:G.CSS_SINGLE,CSS_CONTAINER:G.CSS_CONTAINER,CSS_NAV_LEFT:G.CSS_NAV_LEFT,CSS_NAV_RIGHT:G.CSS_NAV_RIGHT,CSS_NAV:G.CSS_NAV,CSS_CLOSE:G.CSS_CLOSE,CSS_CELL_TOP:G.CSS_CELL_TOP,CSS_CELL_LEFT:G.CSS_CELL_LEFT,CSS_CELL_RIGHT:G.CSS_CELL_RIGHT,CSS_CELL_BOTTOM:G.CSS_CELL_BOTTOM,CSS_CELL_HOVER:G.CSS_CELL_HOVER,CSS_CELL_HIGHLIGHT1:G.CSS_CELL_HIGHLIGHT1,CSS_CELL_HIGHLIGHT2:G.CSS_CELL_HIGHLIGHT2,CSS_CELL_HIGHLIGHT3:G.CSS_CELL_HIGHLIGHT3,CSS_CELL_HIGHLIGHT4:G.CSS_CELL_HIGHLIGHT4,CSS_WITH_TITLE:G.CSS_WITH_TITLE,CSS_FIXED_SIZE:G.CSS_FIXED_SIZE,CSS_LINK_CLOSE:G.CSS_LINK_CLOSE};
++},buildMonthLabel:function(){return this._buildMonthLabel(this.cfg.getProperty(B.PAGEDATE.key));},_buildMonthLabel:function(G){var I=this.Locale.LOCALE_MONTHS[G.getMonth()]+this.Locale.MY_LABEL_MONTH_SUFFIX,H=(G.getFullYear()+this.Locale.YEAR_OFFSET)+this.Locale.MY_LABEL_YEAR_SUFFIX;if(this.Locale.MY_LABEL_MONTH_POSITION==2||this.Locale.MY_LABEL_YEAR_POSITION==1){return H+I;}else{return I+H;}},buildDayLabel:function(G){return G.getDate();},createTitleBar:function(G){var H=C.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||document.createElement("div");H.className=YAHOO.widget.CalendarGroup.CSS_2UPTITLE;H.innerHTML=G;this.oDomContainer.insertBefore(H,this.oDomContainer.firstChild);C.addClass(this.oDomContainer,this.Style.CSS_WITH_TITLE);return H;},removeTitleBar:function(){var G=C.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||null;if(G){A.purgeElement(G);this.oDomContainer.removeChild(G);}C.removeClass(this.oDomContainer,this.Style.CSS_WITH_TITLE);},createCloseButton:function(){var K=YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,J=this.Style.CSS_LINK_CLOSE,M="us/my/bn/x_d.gif",L=C.getElementsByClassName(J,"a",this.oDomContainer)[0],G=this.cfg.getProperty(B.STRINGS.key),H=(G&&G.close)?G.close:"";if(!L){L=document.createElement("a");A.addListener(L,"click",function(O,N){N.hide();A.preventDefault(O);},this);}L.href="#";L.className=J;if(F.IMG_ROOT!==null){var I=C.getElementsByClassName(K,"img",L)[0]||document.createElement("img");I.src=F.IMG_ROOT+M;I.className=K;L.appendChild(I);}else{L.innerHTML='<span class="'+K+" "+this.Style.CSS_CLOSE+'">'+H+"</span>";}this.oDomContainer.appendChild(L);return L;},removeCloseButton:function(){var G=C.getElementsByClassName(this.Style.CSS_LINK_CLOSE,"a",this.oDomContainer)[0]||null;if(G){A.purgeElement(G);this.oDomContainer.removeChild(G);}},renderHeader:function(Q){var P=7,O="us/tr/callt.gif",G="us/tr/calrt.gif",N=this.cfg,K=N.getProperty(B.PAGEDATE.key),L=N.getProperty(B.STRINGS.key),V=(L&&L.previousMonth)?L.previousMonth:"",H=(L&&L.nextMonth)?L.nextMonth:"",M;if(N.getProperty(B.SHOW_WEEK_HEADER.key)){P+=1;}if(N.getProperty(B.SHOW_WEEK_FOOTER.key)){P+=1;}Q[Q.length]="<thead>";Q[Q.length]="<tr>";Q[Q.length]='<th colspan="'+P+'" class="'+this.Style.CSS_HEADER_TEXT+'">';Q[Q.length]='<div class="'+this.Style.CSS_HEADER+'">';var X,U=false;if(this.parent){if(this.index===0){X=true;}if(this.index==(this.parent.cfg.getProperty("pages")-1)){U=true;}}else{X=true;U=true;}if(X){M=this._buildMonthLabel(D.subtract(K,D.MONTH,1));var R=N.getProperty(B.NAV_ARROW_LEFT.key);if(R===null&&F.IMG_ROOT!==null){R=F.IMG_ROOT+O;}var I=(R===null)?"":' style="background-image:url('+R+')"';Q[Q.length]='<a class="'+this.Style.CSS_NAV_LEFT+'"'+I+' href="#">'+V+" ("+M+")"+"</a>";}var W=this.buildMonthLabel();var S=this.parent||this;if(S.cfg.getProperty("navigator")){W='<a class="'+this.Style.CSS_NAV+'" href="#">'+W+"</a>";}Q[Q.length]=W;if(U){M=this._buildMonthLabel(D.add(K,D.MONTH,1));var T=N.getProperty(B.NAV_ARROW_RIGHT.key);if(T===null&&F.IMG_ROOT!==null){T=F.IMG_ROOT+G;}var J=(T===null)?"":' style="background-image:url('+T+')"';Q[Q.length]='<a class="'+this.Style.CSS_NAV_RIGHT+'"'+J+' href="#">'+H+" ("+M+")"+"</a>";}Q[Q.length]="</div>\n</th>\n</tr>";if(N.getProperty(B.SHOW_WEEKDAYS.key)){Q=this.buildWeekdays(Q);}Q[Q.length]="</thead>";return Q;},buildWeekdays:function(H){H[H.length]='<tr class="'+this.Style.CSS_WEEKDAY_ROW+'">';if(this.cfg.getProperty(B.SHOW_WEEK_HEADER.key)){H[H.length]="<th>&#160;</th>";}for(var G=0;G<this.Locale.LOCALE_WEEKDAYS.length;++G){H[H.length]='<th class="'+this.Style.CSS_WEEKDAY_CELL+'">'+this.Locale.LOCALE_WEEKDAYS[G]+"</th>";}if(this.cfg.getProperty(B.SHOW_WEEK_FOOTER.key)){H[H.length]="<th>&#160;</th>";}H[H.length]="</tr>";return H;},renderBody:function(m,k){var AK=this.cfg.getProperty(B.START_WEEKDAY.key);this.preMonthDays=m.getDay();if(AK>0){this.preMonthDays-=AK;}if(this.preMonthDays<0){this.preMonthDays+=7;}this.monthDays=D.findMonthEnd(m).getDate();this.postMonthDays=F.DISPLAY_DAYS-this.preMonthDays-this.monthDays;m=D.subtract(m,D.DAY,this.preMonthDays);var Y,N,M="w",f="_cell",c="wd",w="d",P,u,AC=this.today,O=this.cfg,W=AC.getFullYear(),v=AC.getMonth(),J=AC.getDate(),AB=O.getProperty(B.PAGEDATE.key),I=O.getProperty(B.HIDE_BLANK_WEEKS.key),j=O.getProperty(B.SHOW_WEEK_FOOTER.key),b=O.getProperty(B.SHOW_WEEK_HEADER.key),U=O.getProperty(B.MINDATE.key),a=O.getProperty(B.MAXDATE.key),T=this.Locale.YEAR_OFFSET;if(U){U=D.clearTime(U);}if(a){a=D.clearTime(a);}k[k.length]='<tbody class="m'+(AB.getMonth()+1)+" "+this.Style.CSS_BODY+'">';var AI=0,Q=document.createElement("div"),l=document.createElement("td");Q.appendChild(l);var AA=this.parent||this;for(var AE=0;AE<6;AE++){Y=D.getWeekNumber(m,AK);N=M+Y;if(AE!==0&&I===true&&m.getMonth()!=AB.getMonth()){break;}else{k[k.length]='<tr class="'+N+'">';if(b){k=this.renderRowHeader(Y,k);}for(var AJ=0;AJ<7;AJ++){P=[];this.clearElement(l);l.className=this.Style.CSS_CELL;l.id=this.id+f+AI;if(m.getDate()==J&&m.getMonth()==v&&m.getFullYear()==W){P[P.length]=AA.renderCellStyleToday;}var Z=[m.getFullYear(),m.getMonth()+1,m.getDate()];this.cellDates[this.cellDates.length]=Z;if(m.getMonth()!=AB.getMonth()){P[P.length]=AA.renderCellNotThisMonth;}else{C.addClass(l,c+m.getDay());C.addClass(l,w+m.getDate());for(var AD=0;AD<this.renderStack.length;++AD){u=null;var y=this.renderStack[AD],AL=y[0],H,e,L;switch(AL){case F.DATE:H=y[1][1];e=y[1][2];L=y[1][0];if(m.getMonth()+1==H&&m.getDate()==e&&m.getFullYear()==L){u=y[2];this.renderStack.splice(AD,1);}break;case F.MONTH_DAY:H=y[1][0];e=y[1][1];if(m.getMonth()+1==H&&m.getDate()==e){u=y[2];this.renderStack.splice(AD,1);}break;case F.RANGE:var h=y[1][0],g=y[1][1],n=h[1],S=h[2],X=h[0],AH=D.getDate(X,n-1,S),K=g[1],q=g[2],G=g[0],AG=D.getDate(G,K-1,q);if(m.getTime()>=AH.getTime()&&m.getTime()<=AG.getTime()){u=y[2];if(m.getTime()==AG.getTime()){this.renderStack.splice(AD,1);}}break;case F.WEEKDAY:var R=y[1][0];
++if(m.getDay()+1==R){u=y[2];}break;case F.MONTH:H=y[1][0];if(m.getMonth()+1==H){u=y[2];}break;}if(u){P[P.length]=u;}}}if(this._indexOfSelectedFieldArray(Z)>-1){P[P.length]=AA.renderCellStyleSelected;}if((U&&(m.getTime()<U.getTime()))||(a&&(m.getTime()>a.getTime()))){P[P.length]=AA.renderOutOfBoundsDate;}else{P[P.length]=AA.styleCellDefault;P[P.length]=AA.renderCellDefault;}for(var z=0;z<P.length;++z){if(P[z].call(AA,m,l)==F.STOP_RENDER){break;}}m.setTime(m.getTime()+D.ONE_DAY_MS);m=D.clearTime(m);if(AI>=0&&AI<=6){C.addClass(l,this.Style.CSS_CELL_TOP);}if((AI%7)===0){C.addClass(l,this.Style.CSS_CELL_LEFT);}if(((AI+1)%7)===0){C.addClass(l,this.Style.CSS_CELL_RIGHT);}var o=this.postMonthDays;if(I&&o>=7){var V=Math.floor(o/7);for(var AF=0;AF<V;++AF){o-=7;}}if(AI>=((this.preMonthDays+o+this.monthDays)-7)){C.addClass(l,this.Style.CSS_CELL_BOTTOM);}k[k.length]=Q.innerHTML;AI++;}if(j){k=this.renderRowFooter(Y,k);}k[k.length]="</tr>";}}k[k.length]="</tbody>";return k;},renderFooter:function(G){return G;},render:function(){this.beforeRenderEvent.fire();var H=D.findMonthStart(this.cfg.getProperty(B.PAGEDATE.key));this.resetRenderers();this.cellDates.length=0;A.purgeElement(this.oDomContainer,true);var G=[];G[G.length]='<table cellSpacing="0" class="'+this.Style.CSS_CALENDAR+" y"+(H.getFullYear()+this.Locale.YEAR_OFFSET)+'" id="'+this.id+'">';G=this.renderHeader(G);G=this.renderBody(H,G);G=this.renderFooter(G);G[G.length]="</table>";this.oDomContainer.innerHTML=G.join("\n");this.applyListeners();this.cells=C.getElementsByClassName(this.Style.CSS_CELL,"td",this.id);this.cfg.refireEvent(B.TITLE.key);this.cfg.refireEvent(B.CLOSE.key);this.cfg.refireEvent(B.IFRAME.key);this.renderEvent.fire();},applyListeners:function(){var P=this.oDomContainer,H=this.parent||this,L="a",S="click";var M=C.getElementsByClassName(this.Style.CSS_NAV_LEFT,L,P),I=C.getElementsByClassName(this.Style.CSS_NAV_RIGHT,L,P);if(M&&M.length>0){this.linkLeft=M[0];A.addListener(this.linkLeft,S,this.doPreviousMonthNav,H,true);}if(I&&I.length>0){this.linkRight=I[0];A.addListener(this.linkRight,S,this.doNextMonthNav,H,true);}if(H.cfg.getProperty("navigator")!==null){this.applyNavListeners();}if(this.domEventMap){var J,G;for(var R in this.domEventMap){if(E.hasOwnProperty(this.domEventMap,R)){var N=this.domEventMap[R];if(!(N instanceof Array)){N=[N];}for(var K=0;K<N.length;K++){var Q=N[K];G=C.getElementsByClassName(R,Q.tag,this.oDomContainer);for(var O=0;O<G.length;O++){J=G[O];A.addListener(J,Q.event,Q.handler,Q.scope,Q.correct);}}}}}A.addListener(this.oDomContainer,"click",this.doSelectCell,this);A.addListener(this.oDomContainer,"mouseover",this.doCellMouseOver,this);A.addListener(this.oDomContainer,"mouseout",this.doCellMouseOut,this);},applyNavListeners:function(){var H=this.parent||this,I=this,G=C.getElementsByClassName(this.Style.CSS_NAV,"a",this.oDomContainer);if(G.length>0){A.addListener(G,"click",function(N,M){var L=A.getTarget(N);if(this===L||C.isAncestor(this,L)){A.preventDefault(N);}var J=H.oNavigator;if(J){var K=I.cfg.getProperty("pagedate");J.setYear(K.getFullYear()+I.Locale.YEAR_OFFSET);J.setMonth(K.getMonth());J.show();}});}},getDateByCellId:function(H){var G=this.getDateFieldsByCellId(H);return(G)?D.getDate(G[0],G[1]-1,G[2]):null;},getDateFieldsByCellId:function(G){G=this.getIndexFromId(G);return(G>-1)?this.cellDates[G]:null;},getCellIndex:function(I){var H=-1;if(I){var G=I.getMonth(),N=I.getFullYear(),M=I.getDate(),K=this.cellDates;for(var J=0;J<K.length;++J){var L=K[J];if(L[0]===N&&L[1]===G+1&&L[2]===M){H=J;break;}}}return H;},getIndexFromId:function(I){var H=-1,G=I.lastIndexOf("_cell");if(G>-1){H=parseInt(I.substring(G+5),10);}return H;},renderOutOfBoundsDate:function(H,G){C.addClass(G,this.Style.CSS_CELL_OOB);G.innerHTML=H.getDate();return F.STOP_RENDER;},renderRowHeader:function(H,G){G[G.length]='<th class="'+this.Style.CSS_ROW_HEADER+'">'+H+"</th>";return G;},renderRowFooter:function(H,G){G[G.length]='<th class="'+this.Style.CSS_ROW_FOOTER+'">'+H+"</th>";return G;},renderCellDefault:function(H,G){G.innerHTML='<a href="#" class="'+this.Style.CSS_CELL_SELECTOR+'">'+this.buildDayLabel(H)+"</a>";},styleCellDefault:function(H,G){C.addClass(G,this.Style.CSS_CELL_SELECTABLE);},renderCellStyleHighlight1:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT1);},renderCellStyleHighlight2:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT2);},renderCellStyleHighlight3:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT3);},renderCellStyleHighlight4:function(H,G){C.addClass(G,this.Style.CSS_CELL_HIGHLIGHT4);},renderCellStyleToday:function(H,G){C.addClass(G,this.Style.CSS_CELL_TODAY);},renderCellStyleSelected:function(H,G){C.addClass(G,this.Style.CSS_CELL_SELECTED);},renderCellNotThisMonth:function(H,G){C.addClass(G,this.Style.CSS_CELL_OOM);G.innerHTML=H.getDate();return F.STOP_RENDER;},renderBodyCellRestricted:function(H,G){C.addClass(G,this.Style.CSS_CELL);C.addClass(G,this.Style.CSS_CELL_RESTRICTED);G.innerHTML=H.getDate();return F.STOP_RENDER;},addMonths:function(I){var H=B.PAGEDATE.key,J=this.cfg.getProperty(H),G=D.add(J,D.MONTH,I);this.cfg.setProperty(H,G);this.resetRenderers();this.changePageEvent.fire(J,G);},subtractMonths:function(G){this.addMonths(-1*G);},addYears:function(I){var H=B.PAGEDATE.key,J=this.cfg.getProperty(H),G=D.add(J,D.YEAR,I);this.cfg.setProperty(H,G);this.resetRenderers();this.changePageEvent.fire(J,G);},subtractYears:function(G){this.addYears(-1*G);},nextMonth:function(){this.addMonths(1);},previousMonth:function(){this.addMonths(-1);},nextYear:function(){this.addYears(1);},previousYear:function(){this.addYears(-1);},reset:function(){this.cfg.resetProperty(B.SELECTED.key);this.cfg.resetProperty(B.PAGEDATE.key);this.resetEvent.fire();},clear:function(){this.cfg.setProperty(B.SELECTED.key,[]);this.cfg.setProperty(B.PAGEDATE.key,new Date(this.today.getTime()));this.clearEvent.fire();},select:function(I){var L=this._toFieldArray(I),H=[],K=[],M=B.SELECTED.key;for(var G=0;G<L.length;++G){var J=L[G];
++if(!this.isDateOOB(this._toDate(J))){if(H.length===0){this.beforeSelectEvent.fire();K=this.cfg.getProperty(M);}H.push(J);if(this._indexOfSelectedFieldArray(J)==-1){K[K.length]=J;}}}if(H.length>0){if(this.parent){this.parent.cfg.setProperty(M,K);}else{this.cfg.setProperty(M,K);}this.selectEvent.fire(H);}return this.getSelectedDates();},selectCell:function(J){var H=this.cells[J],N=this.cellDates[J],M=this._toDate(N),I=C.hasClass(H,this.Style.CSS_CELL_SELECTABLE);if(I){this.beforeSelectEvent.fire();var L=B.SELECTED.key;var K=this.cfg.getProperty(L);var G=N.concat();if(this._indexOfSelectedFieldArray(G)==-1){K[K.length]=G;}if(this.parent){this.parent.cfg.setProperty(L,K);}else{this.cfg.setProperty(L,K);}this.renderCellStyleSelected(M,H);this.selectEvent.fire([G]);this.doCellMouseOut.call(H,null,this);}return this.getSelectedDates();},deselect:function(K){var G=this._toFieldArray(K),J=[],M=[],N=B.SELECTED.key;for(var H=0;H<G.length;++H){var L=G[H];if(!this.isDateOOB(this._toDate(L))){if(J.length===0){this.beforeDeselectEvent.fire();M=this.cfg.getProperty(N);}J.push(L);var I=this._indexOfSelectedFieldArray(L);if(I!=-1){M.splice(I,1);}}}if(J.length>0){if(this.parent){this.parent.cfg.setProperty(N,M);}else{this.cfg.setProperty(N,M);}this.deselectEvent.fire(J);}return this.getSelectedDates();},deselectCell:function(K){var H=this.cells[K],N=this.cellDates[K],I=this._indexOfSelectedFieldArray(N);var J=C.hasClass(H,this.Style.CSS_CELL_SELECTABLE);if(J){this.beforeDeselectEvent.fire();var L=this.cfg.getProperty(B.SELECTED.key),M=this._toDate(N),G=N.concat();if(I>-1){if(this.cfg.getProperty(B.PAGEDATE.key).getMonth()==M.getMonth()&&this.cfg.getProperty(B.PAGEDATE.key).getFullYear()==M.getFullYear()){C.removeClass(H,this.Style.CSS_CELL_SELECTED);}L.splice(I,1);}if(this.parent){this.parent.cfg.setProperty(B.SELECTED.key,L);}else{this.cfg.setProperty(B.SELECTED.key,L);}this.deselectEvent.fire([G]);}return this.getSelectedDates();},deselectAll:function(){this.beforeDeselectEvent.fire();var J=B.SELECTED.key,G=this.cfg.getProperty(J),H=G.length,I=G.concat();if(this.parent){this.parent.cfg.setProperty(J,[]);}else{this.cfg.setProperty(J,[]);}if(H>0){this.deselectEvent.fire(I);}return this.getSelectedDates();},_toFieldArray:function(H){var G=[];if(H instanceof Date){G=[[H.getFullYear(),H.getMonth()+1,H.getDate()]];}else{if(E.isString(H)){G=this._parseDates(H);}else{if(E.isArray(H)){for(var I=0;I<H.length;++I){var J=H[I];G[G.length]=[J.getFullYear(),J.getMonth()+1,J.getDate()];}}}}return G;},toDate:function(G){return this._toDate(G);},_toDate:function(G){if(G instanceof Date){return G;}else{return D.getDate(G[0],G[1]-1,G[2]);}},_fieldArraysAreEqual:function(I,H){var G=false;if(I[0]==H[0]&&I[1]==H[1]&&I[2]==H[2]){G=true;}return G;},_indexOfSelectedFieldArray:function(K){var J=-1,G=this.cfg.getProperty(B.SELECTED.key);for(var I=0;I<G.length;++I){var H=G[I];if(K[0]==H[0]&&K[1]==H[1]&&K[2]==H[2]){J=I;break;}}return J;},isDateOOM:function(G){return(G.getMonth()!=this.cfg.getProperty(B.PAGEDATE.key).getMonth());},isDateOOB:function(I){var J=this.cfg.getProperty(B.MINDATE.key),K=this.cfg.getProperty(B.MAXDATE.key),H=D;if(J){J=H.clearTime(J);}if(K){K=H.clearTime(K);}var G=new Date(I.getTime());G=H.clearTime(G);return((J&&G.getTime()<J.getTime())||(K&&G.getTime()>K.getTime()));},_parsePageDate:function(G){var J;if(G){if(G instanceof Date){J=D.findMonthStart(G);}else{var K,I,H;H=G.split(this.cfg.getProperty(B.DATE_FIELD_DELIMITER.key));K=parseInt(H[this.cfg.getProperty(B.MY_MONTH_POSITION.key)-1],10)-1;I=parseInt(H[this.cfg.getProperty(B.MY_YEAR_POSITION.key)-1],10)-this.Locale.YEAR_OFFSET;J=D.getDate(I,K,1);}}else{J=D.getDate(this.today.getFullYear(),this.today.getMonth(),1);}return J;},onBeforeSelect:function(){if(this.cfg.getProperty(B.MULTI_SELECT.key)===false){if(this.parent){this.parent.callChildFunction("clearAllBodyCellStyles",this.Style.CSS_CELL_SELECTED);this.parent.deselectAll();}else{this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);this.deselectAll();}}},onSelect:function(G){},onBeforeDeselect:function(){},onDeselect:function(G){},onChangePage:function(){this.render();},onRender:function(){},onReset:function(){this.render();},onClear:function(){this.render();},validate:function(){return true;},_parseDate:function(I){var J=I.split(this.Locale.DATE_FIELD_DELIMITER),G;if(J.length==2){G=[J[this.Locale.MD_MONTH_POSITION-1],J[this.Locale.MD_DAY_POSITION-1]];G.type=F.MONTH_DAY;}else{G=[J[this.Locale.MDY_YEAR_POSITION-1]-this.Locale.YEAR_OFFSET,J[this.Locale.MDY_MONTH_POSITION-1],J[this.Locale.MDY_DAY_POSITION-1]];G.type=F.DATE;}for(var H=0;H<G.length;H++){G[H]=parseInt(G[H],10);}return G;},_parseDates:function(H){var O=[],N=H.split(this.Locale.DATE_DELIMITER);for(var M=0;M<N.length;++M){var L=N[M];if(L.indexOf(this.Locale.DATE_RANGE_DELIMITER)!=-1){var G=L.split(this.Locale.DATE_RANGE_DELIMITER),K=this._parseDate(G[0]),P=this._parseDate(G[1]),J=this._parseRange(K,P);O=O.concat(J);}else{var I=this._parseDate(L);O.push(I);}}return O;},_parseRange:function(G,K){var H=D.add(D.getDate(G[0],G[1]-1,G[2]),D.DAY,1),J=D.getDate(K[0],K[1]-1,K[2]),I=[];I.push(G);while(H.getTime()<=J.getTime()){I.push([H.getFullYear(),H.getMonth()+1,H.getDate()]);H=D.add(H,D.DAY,1);}return I;},resetRenderers:function(){this.renderStack=this._renderStack.concat();},removeRenderers:function(){this._renderStack=[];this.renderStack=[];},clearElement:function(G){G.innerHTML="&#160;";G.className="";},addRenderer:function(G,H){var J=this._parseDates(G);for(var I=0;I<J.length;++I){var K=J[I];if(K.length==2){if(K[0] instanceof Array){this._addRenderer(F.RANGE,K,H);}else{this._addRenderer(F.MONTH_DAY,K,H);}}else{if(K.length==3){this._addRenderer(F.DATE,K,H);}}}},_addRenderer:function(H,I,G){var J=[H,I,G];this.renderStack.unshift(J);this._renderStack=this.renderStack.concat();},addMonthRenderer:function(H,G){this._addRenderer(F.MONTH,[H],G);},addWeekdayRenderer:function(H,G){this._addRenderer(F.WEEKDAY,[H],G);},clearAllBodyCellStyles:function(G){for(var H=0;
++H<this.cells.length;++H){C.removeClass(this.cells[H],G);}},setMonth:function(I){var G=B.PAGEDATE.key,H=this.cfg.getProperty(G);H.setMonth(parseInt(I,10));this.cfg.setProperty(G,H);},setYear:function(H){var G=B.PAGEDATE.key,I=this.cfg.getProperty(G);I.setFullYear(parseInt(H,10)-this.Locale.YEAR_OFFSET);this.cfg.setProperty(G,I);},getSelectedDates:function(){var I=[],H=this.cfg.getProperty(B.SELECTED.key);for(var K=0;K<H.length;++K){var J=H[K];var G=D.getDate(J[0],J[1]-1,J[2]);I.push(G);}I.sort(function(M,L){return M-L;});return I;},hide:function(){if(this.beforeHideEvent.fire()){this.oDomContainer.style.display="none";this.hideEvent.fire();}},show:function(){if(this.beforeShowEvent.fire()){this.oDomContainer.style.display="block";this.showEvent.fire();}},browser:(function(){var G=navigator.userAgent.toLowerCase();if(G.indexOf("opera")!=-1){return"opera";}else{if(G.indexOf("msie 7")!=-1){return"ie7";}else{if(G.indexOf("msie")!=-1){return"ie";}else{if(G.indexOf("safari")!=-1){return"safari";}else{if(G.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}})(),toString:function(){return"Calendar "+this.id;},destroy:function(){if(this.beforeDestroyEvent.fire()){var G=this;if(G.navigator){G.navigator.destroy();}if(G.cfg){G.cfg.destroy();}A.purgeElement(G.oDomContainer,true);C.removeClass(G.oDomContainer,G.Style.CSS_WITH_TITLE);C.removeClass(G.oDomContainer,G.Style.CSS_CONTAINER);C.removeClass(G.oDomContainer,G.Style.CSS_SINGLE);G.oDomContainer.innerHTML="";G.oDomContainer=null;G.cells=null;this.destroyEvent.fire();}}};YAHOO.widget.Calendar=F;YAHOO.widget.Calendar_Core=YAHOO.widget.Calendar;YAHOO.widget.Cal_Core=YAHOO.widget.Calendar;})();(function(){var D=YAHOO.util.Dom,F=YAHOO.widget.DateMath,A=YAHOO.util.Event,E=YAHOO.lang,G=YAHOO.widget.Calendar;function B(J,H,I){if(arguments.length>0){this.init.apply(this,arguments);}}B.DEFAULT_CONFIG=B._DEFAULT_CONFIG=G.DEFAULT_CONFIG;B.DEFAULT_CONFIG.PAGES={key:"pages",value:2};var C=B.DEFAULT_CONFIG;B.prototype={init:function(K,I,J){var H=this._parseArgs(arguments);K=H.id;I=H.container;J=H.config;this.oDomContainer=D.get(I);if(!this.oDomContainer.id){this.oDomContainer.id=D.generateId();}if(!K){K=this.oDomContainer.id+"_t";}this.id=K;this.containerId=this.oDomContainer.id;this.initEvents();this.initStyles();this.pages=[];D.addClass(this.oDomContainer,B.CSS_CONTAINER);D.addClass(this.oDomContainer,B.CSS_MULTI_UP);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.setupConfig();if(J){this.cfg.applyConfig(J,true);}this.cfg.fireQueue();if(YAHOO.env.ua.opera){this.renderEvent.subscribe(this._fixWidth,this,true);this.showEvent.subscribe(this._fixWidth,this,true);}},setupConfig:function(){var H=this.cfg;H.addProperty(C.PAGES.key,{value:C.PAGES.value,validator:H.checkNumber,handler:this.configPages});H.addProperty(C.YEAR_OFFSET.key,{value:C.YEAR_OFFSET.value,handler:this.delegateConfig,supercedes:C.YEAR_OFFSET.supercedes,suppressEvent:true});H.addProperty(C.TODAY.key,{value:new Date(C.TODAY.value.getTime()),supercedes:C.TODAY.supercedes,handler:this.configToday,suppressEvent:false});H.addProperty(C.PAGEDATE.key,{value:C.PAGEDATE.value||new Date(C.TODAY.value.getTime()),handler:this.configPageDate});H.addProperty(C.SELECTED.key,{value:[],handler:this.configSelected});H.addProperty(C.TITLE.key,{value:C.TITLE.value,handler:this.configTitle});H.addProperty(C.CLOSE.key,{value:C.CLOSE.value,handler:this.configClose});H.addProperty(C.IFRAME.key,{value:C.IFRAME.value,handler:this.configIframe,validator:H.checkBoolean});H.addProperty(C.MINDATE.key,{value:C.MINDATE.value,handler:this.delegateConfig});H.addProperty(C.MAXDATE.key,{value:C.MAXDATE.value,handler:this.delegateConfig});H.addProperty(C.MULTI_SELECT.key,{value:C.MULTI_SELECT.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.START_WEEKDAY.key,{value:C.START_WEEKDAY.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.SHOW_WEEKDAYS.key,{value:C.SHOW_WEEKDAYS.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.SHOW_WEEK_HEADER.key,{value:C.SHOW_WEEK_HEADER.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.SHOW_WEEK_FOOTER.key,{value:C.SHOW_WEEK_FOOTER.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.HIDE_BLANK_WEEKS.key,{value:C.HIDE_BLANK_WEEKS.value,handler:this.delegateConfig,validator:H.checkBoolean});H.addProperty(C.NAV_ARROW_LEFT.key,{value:C.NAV_ARROW_LEFT.value,handler:this.delegateConfig});H.addProperty(C.NAV_ARROW_RIGHT.key,{value:C.NAV_ARROW_RIGHT.value,handler:this.delegateConfig});H.addProperty(C.MONTHS_SHORT.key,{value:C.MONTHS_SHORT.value,handler:this.delegateConfig});H.addProperty(C.MONTHS_LONG.key,{value:C.MONTHS_LONG.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_1CHAR.key,{value:C.WEEKDAYS_1CHAR.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_SHORT.key,{value:C.WEEKDAYS_SHORT.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_MEDIUM.key,{value:C.WEEKDAYS_MEDIUM.value,handler:this.delegateConfig});H.addProperty(C.WEEKDAYS_LONG.key,{value:C.WEEKDAYS_LONG.value,handler:this.delegateConfig});H.addProperty(C.LOCALE_MONTHS.key,{value:C.LOCALE_MONTHS.value,handler:this.delegateConfig});H.addProperty(C.LOCALE_WEEKDAYS.key,{value:C.LOCALE_WEEKDAYS.value,handler:this.delegateConfig});H.addProperty(C.DATE_DELIMITER.key,{value:C.DATE_DELIMITER.value,handler:this.delegateConfig});H.addProperty(C.DATE_FIELD_DELIMITER.key,{value:C.DATE_FIELD_DELIMITER.value,handler:this.delegateConfig});H.addProperty(C.DATE_RANGE_DELIMITER.key,{value:C.DATE_RANGE_DELIMITER.value,handler:this.delegateConfig});H.addProperty(C.MY_MONTH_POSITION.key,{value:C.MY_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_YEAR_POSITION.key,{value:C.MY_YEAR_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MD_MONTH_POSITION.key,{value:C.MD_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});
++H.addProperty(C.MD_DAY_POSITION.key,{value:C.MD_DAY_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MDY_MONTH_POSITION.key,{value:C.MDY_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MDY_DAY_POSITION.key,{value:C.MDY_DAY_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MDY_YEAR_POSITION.key,{value:C.MDY_YEAR_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_LABEL_MONTH_POSITION.key,{value:C.MY_LABEL_MONTH_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_LABEL_YEAR_POSITION.key,{value:C.MY_LABEL_YEAR_POSITION.value,handler:this.delegateConfig,validator:H.checkNumber});H.addProperty(C.MY_LABEL_MONTH_SUFFIX.key,{value:C.MY_LABEL_MONTH_SUFFIX.value,handler:this.delegateConfig});H.addProperty(C.MY_LABEL_YEAR_SUFFIX.key,{value:C.MY_LABEL_YEAR_SUFFIX.value,handler:this.delegateConfig});H.addProperty(C.NAV.key,{value:C.NAV.value,handler:this.configNavigator});H.addProperty(C.STRINGS.key,{value:C.STRINGS.value,handler:this.configStrings,validator:function(I){return E.isObject(I);},supercedes:C.STRINGS.supercedes});},initEvents:function(){var J=this,L="Event",M=YAHOO.util.CustomEvent;var I=function(O,R,N){for(var Q=0;Q<J.pages.length;++Q){var P=J.pages[Q];P[this.type+L].subscribe(O,R,N);}};var H=function(N,Q){for(var P=0;P<J.pages.length;++P){var O=J.pages[P];O[this.type+L].unsubscribe(N,Q);}};var K=G._EVENT_TYPES;J.beforeSelectEvent=new M(K.BEFORE_SELECT);J.beforeSelectEvent.subscribe=I;J.beforeSelectEvent.unsubscribe=H;J.selectEvent=new M(K.SELECT);J.selectEvent.subscribe=I;J.selectEvent.unsubscribe=H;J.beforeDeselectEvent=new M(K.BEFORE_DESELECT);J.beforeDeselectEvent.subscribe=I;J.beforeDeselectEvent.unsubscribe=H;J.deselectEvent=new M(K.DESELECT);J.deselectEvent.subscribe=I;J.deselectEvent.unsubscribe=H;J.changePageEvent=new M(K.CHANGE_PAGE);J.changePageEvent.subscribe=I;J.changePageEvent.unsubscribe=H;J.beforeRenderEvent=new M(K.BEFORE_RENDER);J.beforeRenderEvent.subscribe=I;J.beforeRenderEvent.unsubscribe=H;J.renderEvent=new M(K.RENDER);J.renderEvent.subscribe=I;J.renderEvent.unsubscribe=H;J.resetEvent=new M(K.RESET);J.resetEvent.subscribe=I;J.resetEvent.unsubscribe=H;J.clearEvent=new M(K.CLEAR);J.clearEvent.subscribe=I;J.clearEvent.unsubscribe=H;J.beforeShowEvent=new M(K.BEFORE_SHOW);J.showEvent=new M(K.SHOW);J.beforeHideEvent=new M(K.BEFORE_HIDE);J.hideEvent=new M(K.HIDE);J.beforeShowNavEvent=new M(K.BEFORE_SHOW_NAV);J.showNavEvent=new M(K.SHOW_NAV);J.beforeHideNavEvent=new M(K.BEFORE_HIDE_NAV);J.hideNavEvent=new M(K.HIDE_NAV);J.beforeRenderNavEvent=new M(K.BEFORE_RENDER_NAV);J.renderNavEvent=new M(K.RENDER_NAV);J.beforeDestroyEvent=new M(K.BEFORE_DESTROY);J.destroyEvent=new M(K.DESTROY);},configPages:function(T,R,N){var L=R[0],J=C.PAGEDATE.key,W="_",M,O=null,S="groupcal",V="first-of-type",K="last-of-type";for(var I=0;I<L;++I){var U=this.id+W+I,Q=this.containerId+W+I,P=this.cfg.getConfig();P.close=false;P.title=false;P.navigator=null;if(I>0){M=new Date(O);this._setMonthOnDate(M,M.getMonth()+I);P.pageDate=M;}var H=this.constructChild(U,Q,P);D.removeClass(H.oDomContainer,this.Style.CSS_SINGLE);D.addClass(H.oDomContainer,S);if(I===0){O=H.cfg.getProperty(J);D.addClass(H.oDomContainer,V);}if(I==(L-1)){D.addClass(H.oDomContainer,K);}H.parent=this;H.index=I;this.pages[this.pages.length]=H;}},configPageDate:function(O,N,L){var J=N[0],M;var K=C.PAGEDATE.key;for(var I=0;I<this.pages.length;++I){var H=this.pages[I];if(I===0){M=H._parsePageDate(J);H.cfg.setProperty(K,M);}else{var P=new Date(M);this._setMonthOnDate(P,P.getMonth()+I);H.cfg.setProperty(K,P);}}},configSelected:function(J,H,L){var K=C.SELECTED.key;this.delegateConfig(J,H,L);var I=(this.pages.length>0)?this.pages[0].cfg.getProperty(K):[];this.cfg.setProperty(K,I,true);},delegateConfig:function(I,H,L){var M=H[0];var K;for(var J=0;J<this.pages.length;J++){K=this.pages[J];K.cfg.setProperty(I,M);}},setChildFunction:function(K,I){var H=this.cfg.getProperty(C.PAGES.key);for(var J=0;J<H;++J){this.pages[J][K]=I;}},callChildFunction:function(M,I){var H=this.cfg.getProperty(C.PAGES.key);for(var L=0;L<H;++L){var K=this.pages[L];if(K[M]){var J=K[M];J.call(K,I);}}},constructChild:function(K,I,J){var H=document.getElementById(I);if(!H){H=document.createElement("div");H.id=I;this.oDomContainer.appendChild(H);}return new G(K,I,J);},setMonth:function(L){L=parseInt(L,10);var M;var I=C.PAGEDATE.key;for(var K=0;K<this.pages.length;++K){var J=this.pages[K];var H=J.cfg.getProperty(I);if(K===0){M=H.getFullYear();}else{H.setFullYear(M);}this._setMonthOnDate(H,L+K);J.cfg.setProperty(I,H);}},setYear:function(J){var I=C.PAGEDATE.key;J=parseInt(J,10);for(var L=0;L<this.pages.length;++L){var K=this.pages[L];var H=K.cfg.getProperty(I);if((H.getMonth()+1)==1&&L>0){J+=1;}K.setYear(J);}},render:function(){this.renderHeader();for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.render();}this.renderFooter();},select:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.select(H);}return this.getSelectedDates();},selectCell:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.selectCell(H);}return this.getSelectedDates();},deselect:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.deselect(H);}return this.getSelectedDates();},deselectAll:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.deselectAll();}return this.getSelectedDates();},deselectCell:function(H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.deselectCell(H);}return this.getSelectedDates();},reset:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.reset();}},clear:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.clear();}this.cfg.setProperty(C.SELECTED.key,[]);this.cfg.setProperty(C.PAGEDATE.key,new Date(this.pages[0].today.getTime()));this.render();},nextMonth:function(){for(var I=0;I<this.pages.length;
++++I){var H=this.pages[I];H.nextMonth();}},previousMonth:function(){for(var I=this.pages.length-1;I>=0;--I){var H=this.pages[I];H.previousMonth();}},nextYear:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.nextYear();}},previousYear:function(){for(var I=0;I<this.pages.length;++I){var H=this.pages[I];H.previousYear();}},getSelectedDates:function(){var J=[];var I=this.cfg.getProperty(C.SELECTED.key);for(var L=0;L<I.length;++L){var K=I[L];var H=F.getDate(K[0],K[1]-1,K[2]);J.push(H);}J.sort(function(N,M){return N-M;});return J;},addRenderer:function(H,I){for(var K=0;K<this.pages.length;++K){var J=this.pages[K];J.addRenderer(H,I);}},addMonthRenderer:function(K,H){for(var J=0;J<this.pages.length;++J){var I=this.pages[J];I.addMonthRenderer(K,H);}},addWeekdayRenderer:function(I,H){for(var K=0;K<this.pages.length;++K){var J=this.pages[K];J.addWeekdayRenderer(I,H);}},removeRenderers:function(){this.callChildFunction("removeRenderers");},renderHeader:function(){},renderFooter:function(){},addMonths:function(H){this.callChildFunction("addMonths",H);},subtractMonths:function(H){this.callChildFunction("subtractMonths",H);},addYears:function(H){this.callChildFunction("addYears",H);},subtractYears:function(H){this.callChildFunction("subtractYears",H);},getCalendarPage:function(K){var M=null;if(K){var N=K.getFullYear(),J=K.getMonth();var I=this.pages;for(var L=0;L<I.length;++L){var H=I[L].cfg.getProperty("pagedate");if(H.getFullYear()===N&&H.getMonth()===J){M=I[L];break;}}}return M;},_setMonthOnDate:function(I,J){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420&&(J<0||J>11)){var H=F.add(I,F.MONTH,J-I.getMonth());I.setTime(H.getTime());}else{I.setMonth(J);}},_fixWidth:function(){var H=0;for(var J=0;J<this.pages.length;++J){var I=this.pages[J];H+=I.oDomContainer.offsetWidth;}if(H>0){this.oDomContainer.style.width=H+"px";}},toString:function(){return"CalendarGroup "+this.id;},destroy:function(){if(this.beforeDestroyEvent.fire()){var J=this;if(J.navigator){J.navigator.destroy();}if(J.cfg){J.cfg.destroy();}A.purgeElement(J.oDomContainer,true);D.removeClass(J.oDomContainer,B.CSS_CONTAINER);D.removeClass(J.oDomContainer,B.CSS_MULTI_UP);for(var I=0,H=J.pages.length;I<H;I++){J.pages[I].destroy();J.pages[I]=null;}J.oDomContainer.innerHTML="";J.oDomContainer=null;this.destroyEvent.fire();}}};B.CSS_CONTAINER="yui-calcontainer";B.CSS_MULTI_UP="multi";B.CSS_2UPTITLE="title";B.CSS_2UPCLOSE="close-icon";YAHOO.lang.augmentProto(B,G,"buildDayLabel","buildMonthLabel","renderOutOfBoundsDate","renderRowHeader","renderRowFooter","renderCellDefault","styleCellDefault","renderCellStyleHighlight1","renderCellStyleHighlight2","renderCellStyleHighlight3","renderCellStyleHighlight4","renderCellStyleToday","renderCellStyleSelected","renderCellNotThisMonth","renderBodyCellRestricted","initStyles","configTitle","configClose","configIframe","configStrings","configToday","configNavigator","createTitleBar","createCloseButton","removeTitleBar","removeCloseButton","hide","show","toDate","_toDate","_parseArgs","browser");YAHOO.widget.CalGrp=B;YAHOO.widget.CalendarGroup=B;YAHOO.widget.Calendar2up=function(J,H,I){this.init(J,H,I);};YAHOO.extend(YAHOO.widget.Calendar2up,B);YAHOO.widget.Cal2up=YAHOO.widget.Calendar2up;})();YAHOO.widget.CalendarNavigator=function(A){this.init(A);};(function(){var A=YAHOO.widget.CalendarNavigator;A.CLASSES={NAV:"yui-cal-nav",NAV_VISIBLE:"yui-cal-nav-visible",MASK:"yui-cal-nav-mask",YEAR:"yui-cal-nav-y",MONTH:"yui-cal-nav-m",BUTTONS:"yui-cal-nav-b",BUTTON:"yui-cal-nav-btn",ERROR:"yui-cal-nav-e",YEAR_CTRL:"yui-cal-nav-yc",MONTH_CTRL:"yui-cal-nav-mc",INVALID:"yui-invalid",DEFAULT:"yui-default"};A.DEFAULT_CONFIG={strings:{month:"Month",year:"Year",submit:"Okay",cancel:"Cancel",invalidYear:"Year needs to be a number"},monthFormat:YAHOO.widget.Calendar.LONG,initialFocus:"year"};A._DEFAULT_CFG=A.DEFAULT_CONFIG;A.ID_SUFFIX="_nav";A.MONTH_SUFFIX="_month";A.YEAR_SUFFIX="_year";A.ERROR_SUFFIX="_error";A.CANCEL_SUFFIX="_cancel";A.SUBMIT_SUFFIX="_submit";A.YR_MAX_DIGITS=4;A.YR_MINOR_INC=1;A.YR_MAJOR_INC=10;A.UPDATE_DELAY=50;A.YR_PATTERN=/^\d+$/;A.TRIM=/^\s*(.*?)\s*$/;})();YAHOO.widget.CalendarNavigator.prototype={id:null,cal:null,navEl:null,maskEl:null,yearEl:null,monthEl:null,errorEl:null,submitEl:null,cancelEl:null,firstCtrl:null,lastCtrl:null,_doc:null,_year:null,_month:0,__rendered:false,init:function(A){var C=A.oDomContainer;this.cal=A;this.id=C.id+YAHOO.widget.CalendarNavigator.ID_SUFFIX;this._doc=C.ownerDocument;var B=YAHOO.env.ua.ie;this.__isIEQuirks=(B&&((B<=6)||(this._doc.compatMode=="BackCompat")));},show:function(){var A=YAHOO.widget.CalendarNavigator.CLASSES;if(this.cal.beforeShowNavEvent.fire()){if(!this.__rendered){this.render();}this.clearErrors();this._updateMonthUI();this._updateYearUI();this._show(this.navEl,true);this.setInitialFocus();this.showMask();YAHOO.util.Dom.addClass(this.cal.oDomContainer,A.NAV_VISIBLE);this.cal.showNavEvent.fire();}},hide:function(){var A=YAHOO.widget.CalendarNavigator.CLASSES;if(this.cal.beforeHideNavEvent.fire()){this._show(this.navEl,false);this.hideMask();YAHOO.util.Dom.removeClass(this.cal.oDomContainer,A.NAV_VISIBLE);this.cal.hideNavEvent.fire();}},showMask:function(){this._show(this.maskEl,true);if(this.__isIEQuirks){this._syncMask();}},hideMask:function(){this._show(this.maskEl,false);},getMonth:function(){return this._month;},getYear:function(){return this._year;},setMonth:function(A){if(A>=0&&A<12){this._month=A;}this._updateMonthUI();},setYear:function(B){var A=YAHOO.widget.CalendarNavigator.YR_PATTERN;if(YAHOO.lang.isNumber(B)&&A.test(B+"")){this._year=B;}this._updateYearUI();},render:function(){this.cal.beforeRenderNavEvent.fire();if(!this.__rendered){this.createNav();this.createMask();this.applyListeners();this.__rendered=true;}this.cal.renderNavEvent.fire();},createNav:function(){var B=YAHOO.widget.CalendarNavigator;var C=this._doc;var D=C.createElement("div");D.className=B.CLASSES.NAV;var A=this.renderNavContents([]);D.innerHTML=A.join("");this.cal.oDomContainer.appendChild(D);
++this.navEl=D;this.yearEl=C.getElementById(this.id+B.YEAR_SUFFIX);this.monthEl=C.getElementById(this.id+B.MONTH_SUFFIX);this.errorEl=C.getElementById(this.id+B.ERROR_SUFFIX);this.submitEl=C.getElementById(this.id+B.SUBMIT_SUFFIX);this.cancelEl=C.getElementById(this.id+B.CANCEL_SUFFIX);if(YAHOO.env.ua.gecko&&this.yearEl&&this.yearEl.type=="text"){this.yearEl.setAttribute("autocomplete","off");}this._setFirstLastElements();},createMask:function(){var B=YAHOO.widget.CalendarNavigator.CLASSES;var A=this._doc.createElement("div");A.className=B.MASK;this.cal.oDomContainer.appendChild(A);this.maskEl=A;},_syncMask:function(){var B=this.cal.oDomContainer;if(B&&this.maskEl){var A=YAHOO.util.Dom.getRegion(B);YAHOO.util.Dom.setStyle(this.maskEl,"width",A.right-A.left+"px");YAHOO.util.Dom.setStyle(this.maskEl,"height",A.bottom-A.top+"px");}},renderNavContents:function(A){var D=YAHOO.widget.CalendarNavigator,E=D.CLASSES,B=A;B[B.length]='<div class="'+E.MONTH+'">';this.renderMonth(B);B[B.length]="</div>";B[B.length]='<div class="'+E.YEAR+'">';this.renderYear(B);B[B.length]="</div>";B[B.length]='<div class="'+E.BUTTONS+'">';this.renderButtons(B);B[B.length]="</div>";B[B.length]='<div class="'+E.ERROR+'" id="'+this.id+D.ERROR_SUFFIX+'"></div>';return B;},renderMonth:function(D){var G=YAHOO.widget.CalendarNavigator,H=G.CLASSES;var I=this.id+G.MONTH_SUFFIX,F=this.__getCfg("monthFormat"),A=this.cal.cfg.getProperty((F==YAHOO.widget.Calendar.SHORT)?"MONTHS_SHORT":"MONTHS_LONG"),E=D;if(A&&A.length>0){E[E.length]='<label for="'+I+'">';E[E.length]=this.__getCfg("month",true);E[E.length]="</label>";E[E.length]='<select name="'+I+'" id="'+I+'" class="'+H.MONTH_CTRL+'">';for(var B=0;B<A.length;B++){E[E.length]='<option value="'+B+'">';E[E.length]=A[B];E[E.length]="</option>";}E[E.length]="</select>";}return E;},renderYear:function(B){var E=YAHOO.widget.CalendarNavigator,F=E.CLASSES;var G=this.id+E.YEAR_SUFFIX,A=E.YR_MAX_DIGITS,D=B;D[D.length]='<label for="'+G+'">';D[D.length]=this.__getCfg("year",true);D[D.length]="</label>";D[D.length]='<input type="text" name="'+G+'" id="'+G+'" class="'+F.YEAR_CTRL+'" maxlength="'+A+'"/>';return D;},renderButtons:function(A){var D=YAHOO.widget.CalendarNavigator.CLASSES;var B=A;B[B.length]='<span class="'+D.BUTTON+" "+D.DEFAULT+'">';B[B.length]='<button type="button" id="'+this.id+"_submit"+'">';B[B.length]=this.__getCfg("submit",true);B[B.length]="</button>";B[B.length]="</span>";B[B.length]='<span class="'+D.BUTTON+'">';B[B.length]='<button type="button" id="'+this.id+"_cancel"+'">';B[B.length]=this.__getCfg("cancel",true);B[B.length]="</button>";B[B.length]="</span>";return B;},applyListeners:function(){var B=YAHOO.util.Event;function A(){if(this.validate()){this.setYear(this._getYearFromUI());}}function C(){this.setMonth(this._getMonthFromUI());}B.on(this.submitEl,"click",this.submit,this,true);B.on(this.cancelEl,"click",this.cancel,this,true);B.on(this.yearEl,"blur",A,this,true);B.on(this.monthEl,"change",C,this,true);if(this.__isIEQuirks){YAHOO.util.Event.on(this.cal.oDomContainer,"resize",this._syncMask,this,true);}this.applyKeyListeners();},purgeListeners:function(){var A=YAHOO.util.Event;A.removeListener(this.submitEl,"click",this.submit);A.removeListener(this.cancelEl,"click",this.cancel);A.removeListener(this.yearEl,"blur");A.removeListener(this.monthEl,"change");if(this.__isIEQuirks){A.removeListener(this.cal.oDomContainer,"resize",this._syncMask);}this.purgeKeyListeners();},applyKeyListeners:function(){var D=YAHOO.util.Event,A=YAHOO.env.ua;var C=(A.ie||A.webkit)?"keydown":"keypress";var B=(A.ie||A.opera||A.webkit)?"keydown":"keypress";D.on(this.yearEl,"keypress",this._handleEnterKey,this,true);D.on(this.yearEl,C,this._handleDirectionKeys,this,true);D.on(this.lastCtrl,B,this._handleTabKey,this,true);D.on(this.firstCtrl,B,this._handleShiftTabKey,this,true);},purgeKeyListeners:function(){var D=YAHOO.util.Event,A=YAHOO.env.ua;var C=(A.ie||A.webkit)?"keydown":"keypress";var B=(A.ie||A.opera||A.webkit)?"keydown":"keypress";D.removeListener(this.yearEl,"keypress",this._handleEnterKey);D.removeListener(this.yearEl,C,this._handleDirectionKeys);D.removeListener(this.lastCtrl,B,this._handleTabKey);D.removeListener(this.firstCtrl,B,this._handleShiftTabKey);},submit:function(){if(this.validate()){this.hide();this.setMonth(this._getMonthFromUI());this.setYear(this._getYearFromUI());var B=this.cal;var A=YAHOO.widget.CalendarNavigator.UPDATE_DELAY;if(A>0){var C=this;window.setTimeout(function(){C._update(B);},A);}else{this._update(B);}}},_update:function(B){var A=YAHOO.widget.DateMath.getDate(this.getYear()-B.cfg.getProperty("YEAR_OFFSET"),this.getMonth(),1);B.cfg.setProperty("pagedate",A);B.render();},cancel:function(){this.hide();},validate:function(){if(this._getYearFromUI()!==null){this.clearErrors();return true;}else{this.setYearError();this.setError(this.__getCfg("invalidYear",true));return false;}},setError:function(A){if(this.errorEl){this.errorEl.innerHTML=A;this._show(this.errorEl,true);}},clearError:function(){if(this.errorEl){this.errorEl.innerHTML="";this._show(this.errorEl,false);}},setYearError:function(){YAHOO.util.Dom.addClass(this.yearEl,YAHOO.widget.CalendarNavigator.CLASSES.INVALID);},clearYearError:function(){YAHOO.util.Dom.removeClass(this.yearEl,YAHOO.widget.CalendarNavigator.CLASSES.INVALID);},clearErrors:function(){this.clearError();this.clearYearError();},setInitialFocus:function(){var A=this.submitEl,C=this.__getCfg("initialFocus");if(C&&C.toLowerCase){C=C.toLowerCase();if(C=="year"){A=this.yearEl;try{this.yearEl.select();}catch(B){}}else{if(C=="month"){A=this.monthEl;}}}if(A&&YAHOO.lang.isFunction(A.focus)){try{A.focus();}catch(D){}}},erase:function(){if(this.__rendered){this.purgeListeners();this.yearEl=null;this.monthEl=null;this.errorEl=null;this.submitEl=null;this.cancelEl=null;this.firstCtrl=null;this.lastCtrl=null;if(this.navEl){this.navEl.innerHTML="";}var B=this.navEl.parentNode;if(B){B.removeChild(this.navEl);}this.navEl=null;var A=this.maskEl.parentNode;
++if(A){A.removeChild(this.maskEl);}this.maskEl=null;this.__rendered=false;}},destroy:function(){this.erase();this._doc=null;this.cal=null;this.id=null;},_show:function(B,A){if(B){YAHOO.util.Dom.setStyle(B,"display",(A)?"block":"none");}},_getMonthFromUI:function(){if(this.monthEl){return this.monthEl.selectedIndex;}else{return 0;}},_getYearFromUI:function(){var B=YAHOO.widget.CalendarNavigator;var A=null;if(this.yearEl){var C=this.yearEl.value;C=C.replace(B.TRIM,"$1");if(B.YR_PATTERN.test(C)){A=parseInt(C,10);}}return A;},_updateYearUI:function(){if(this.yearEl&&this._year!==null){this.yearEl.value=this._year;}},_updateMonthUI:function(){if(this.monthEl){this.monthEl.selectedIndex=this._month;}},_setFirstLastElements:function(){this.firstCtrl=this.monthEl;this.lastCtrl=this.cancelEl;if(this.__isMac){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420){this.firstCtrl=this.monthEl;this.lastCtrl=this.yearEl;}if(YAHOO.env.ua.gecko){this.firstCtrl=this.yearEl;this.lastCtrl=this.yearEl;}}},_handleEnterKey:function(B){var A=YAHOO.util.KeyListener.KEY;if(YAHOO.util.Event.getCharCode(B)==A.ENTER){YAHOO.util.Event.preventDefault(B);this.submit();}},_handleDirectionKeys:function(H){var G=YAHOO.util.Event,A=YAHOO.util.KeyListener.KEY,D=YAHOO.widget.CalendarNavigator;var F=(this.yearEl.value)?parseInt(this.yearEl.value,10):null;if(isFinite(F)){var B=false;switch(G.getCharCode(H)){case A.UP:this.yearEl.value=F+D.YR_MINOR_INC;B=true;break;case A.DOWN:this.yearEl.value=Math.max(F-D.YR_MINOR_INC,0);B=true;break;case A.PAGE_UP:this.yearEl.value=F+D.YR_MAJOR_INC;B=true;break;case A.PAGE_DOWN:this.yearEl.value=Math.max(F-D.YR_MAJOR_INC,0);B=true;break;default:break;}if(B){G.preventDefault(H);try{this.yearEl.select();}catch(C){}}}},_handleTabKey:function(D){var C=YAHOO.util.Event,A=YAHOO.util.KeyListener.KEY;if(C.getCharCode(D)==A.TAB&&!D.shiftKey){try{C.preventDefault(D);this.firstCtrl.focus();}catch(B){}}},_handleShiftTabKey:function(D){var C=YAHOO.util.Event,A=YAHOO.util.KeyListener.KEY;if(D.shiftKey&&C.getCharCode(D)==A.TAB){try{C.preventDefault(D);this.lastCtrl.focus();}catch(B){}}},__getCfg:function(D,B){var C=YAHOO.widget.CalendarNavigator.DEFAULT_CONFIG;var A=this.cal.cfg.getProperty("navigator");if(B){return(A!==true&&A.strings&&A.strings[D])?A.strings[D]:C.strings[D];}else{return(A!==true&&A[D])?A[D]:C[D];}},__isMac:(navigator.userAgent.toLowerCase().indexOf("macintosh")!=-1)};YAHOO.register("calendar",YAHOO.widget.Calendar,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/calendar/calendar.js b/pylons_app/public/js/yui/calendar/calendar.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/calendar/calendar.js
+@@ -0,0 +1,7294 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++    /**
++    * Config is a utility used within an Object to allow the implementer to
++    * maintain a list of local configuration properties and listen for changes 
++    * to those properties dynamically using CustomEvent. The initial values are 
++    * also maintained so that the configuration can be reset at any given point 
++    * to its initial state.
++    * @namespace YAHOO.util
++    * @class Config
++    * @constructor
++    * @param {Object} owner The owner Object to which this Config Object belongs
++    */
++    YAHOO.util.Config = function (owner) {
++
++        if (owner) {
++            this.init(owner);
++        }
++
++
++    };
++
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Config = YAHOO.util.Config;
++
++
++    /**
++     * Constant representing the CustomEvent type for the config changed event.
++     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
++     * @private
++     * @static
++     * @final
++     */
++    Config.CONFIG_CHANGED_EVENT = "configChanged";
++    
++    /**
++     * Constant representing the boolean type string
++     * @property YAHOO.util.Config.BOOLEAN_TYPE
++     * @private
++     * @static
++     * @final
++     */
++    Config.BOOLEAN_TYPE = "boolean";
++    
++    Config.prototype = {
++     
++        /**
++        * Object reference to the owner of this Config Object
++        * @property owner
++        * @type Object
++        */
++        owner: null,
++        
++        /**
++        * Boolean flag that specifies whether a queue is currently 
++        * being executed
++        * @property queueInProgress
++        * @type Boolean
++        */
++        queueInProgress: false,
++        
++        /**
++        * Maintains the local collection of configuration property objects and 
++        * their specified values
++        * @property config
++        * @private
++        * @type Object
++        */ 
++        config: null,
++        
++        /**
++        * Maintains the local collection of configuration property objects as 
++        * they were initially applied.
++        * This object is used when resetting a property.
++        * @property initialConfig
++        * @private
++        * @type Object
++        */ 
++        initialConfig: null,
++        
++        /**
++        * Maintains the local, normalized CustomEvent queue
++        * @property eventQueue
++        * @private
++        * @type Object
++        */ 
++        eventQueue: null,
++        
++        /**
++        * Custom Event, notifying subscribers when Config properties are set 
++        * (setProperty is called without the silent flag
++        * @event configChangedEvent
++        */
++        configChangedEvent: null,
++    
++        /**
++        * Initializes the configuration Object and all of its local members.
++        * @method init
++        * @param {Object} owner The owner Object to which this Config 
++        * Object belongs
++        */
++        init: function (owner) {
++    
++            this.owner = owner;
++    
++            this.configChangedEvent = 
++                this.createEvent(Config.CONFIG_CHANGED_EVENT);
++    
++            this.configChangedEvent.signature = CustomEvent.LIST;
++            this.queueInProgress = false;
++            this.config = {};
++            this.initialConfig = {};
++            this.eventQueue = [];
++        
++        },
++        
++        /**
++        * Validates that the value passed in is a Boolean.
++        * @method checkBoolean
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */ 
++        checkBoolean: function (val) {
++            return (typeof val == Config.BOOLEAN_TYPE);
++        },
++        
++        /**
++        * Validates that the value passed in is a number.
++        * @method checkNumber
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */
++        checkNumber: function (val) {
++            return (!isNaN(val));
++        },
++        
++        /**
++        * Fires a configuration property event using the specified value. 
++        * @method fireEvent
++        * @private
++        * @param {String} key The configuration property's name
++        * @param {value} Object The value of the correct type for the property
++        */ 
++        fireEvent: function ( key, value ) {
++            var property = this.config[key];
++        
++            if (property && property.event) {
++                property.event.fire(value);
++            } 
++        },
++        
++        /**
++        * Adds a property to the Config Object's private config hash.
++        * @method addProperty
++        * @param {String} key The configuration property's name
++        * @param {Object} propertyObject The Object containing all of this 
++        * property's arguments
++        */
++        addProperty: function ( key, propertyObject ) {
++            key = key.toLowerCase();
++        
++            this.config[key] = propertyObject;
++        
++            propertyObject.event = this.createEvent(key, { scope: this.owner });
++            propertyObject.event.signature = CustomEvent.LIST;
++            
++            
++            propertyObject.key = key;
++        
++            if (propertyObject.handler) {
++                propertyObject.event.subscribe(propertyObject.handler, 
++                    this.owner);
++            }
++        
++            this.setProperty(key, propertyObject.value, true);
++            
++            if (! propertyObject.suppressEvent) {
++                this.queueProperty(key, propertyObject.value);
++            }
++            
++        },
++        
++        /**
++        * Returns a key-value configuration map of the values currently set in  
++        * the Config Object.
++        * @method getConfig
++        * @return {Object} The current config, represented in a key-value map
++        */
++        getConfig: function () {
++        
++            var cfg = {},
++                currCfg = this.config,
++                prop,
++                property;
++                
++            for (prop in currCfg) {
++                if (Lang.hasOwnProperty(currCfg, prop)) {
++                    property = currCfg[prop];
++                    if (property && property.event) {
++                        cfg[prop] = property.value;
++                    }
++                }
++            }
++
++            return cfg;
++        },
++        
++        /**
++        * Returns the value of specified property.
++        * @method getProperty
++        * @param {String} key The name of the property
++        * @return {Object}  The value of the specified property
++        */
++        getProperty: function (key) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.value;
++            } else {
++                return undefined;
++            }
++        },
++        
++        /**
++        * Resets the specified property's value to its initial value.
++        * @method resetProperty
++        * @param {String} key The name of the property
++        * @return {Boolean} True is the property was reset, false if not
++        */
++        resetProperty: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event) {
++    
++                if (this.initialConfig[key] && 
++                    !Lang.isUndefined(this.initialConfig[key])) {
++    
++                    this.setProperty(key, this.initialConfig[key]);
++
++                    return true;
++    
++                }
++    
++            } else {
++    
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Sets the value of a property. If the silent property is passed as 
++        * true, the property's event will not be fired.
++        * @method setProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @param {Boolean} silent Whether the value should be set silently, 
++        * without firing the property event.
++        * @return {Boolean} True, if the set was successful, false if it failed.
++        */
++        setProperty: function (key, value, silent) {
++        
++            var property;
++        
++            key = key.toLowerCase();
++        
++            if (this.queueInProgress && ! silent) {
++                // Currently running through a queue... 
++                this.queueProperty(key,value);
++                return true;
++    
++            } else {
++                property = this.config[key];
++                if (property && property.event) {
++                    if (property.validator && !property.validator(value)) {
++                        return false;
++                    } else {
++                        property.value = value;
++                        if (! silent) {
++                            this.fireEvent(key, value);
++                            this.configChangedEvent.fire([key, value]);
++                        }
++                        return true;
++                    }
++                } else {
++                    return false;
++                }
++            }
++        },
++        
++        /**
++        * Sets the value of a property and queues its event to execute. If the 
++        * event is already scheduled to execute, it is
++        * moved from its current position to the end of the queue.
++        * @method queueProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @return {Boolean}  true, if the set was successful, false if 
++        * it failed.
++        */ 
++        queueProperty: function (key, value) {
++        
++            key = key.toLowerCase();
++        
++            var property = this.config[key],
++                foundDuplicate = false,
++                iLen,
++                queueItem,
++                queueItemKey,
++                queueItemValue,
++                sLen,
++                supercedesCheck,
++                qLen,
++                queueItemCheck,
++                queueItemCheckKey,
++                queueItemCheckValue,
++                i,
++                s,
++                q;
++                                
++            if (property && property.event) {
++    
++                if (!Lang.isUndefined(value) && property.validator && 
++                    !property.validator(value)) { // validator
++                    return false;
++                } else {
++        
++                    if (!Lang.isUndefined(value)) {
++                        property.value = value;
++                    } else {
++                        value = property.value;
++                    }
++        
++                    foundDuplicate = false;
++                    iLen = this.eventQueue.length;
++        
++                    for (i = 0; i < iLen; i++) {
++                        queueItem = this.eventQueue[i];
++        
++                        if (queueItem) {
++                            queueItemKey = queueItem[0];
++                            queueItemValue = queueItem[1];
++
++                            if (queueItemKey == key) {
++    
++                                /*
++                                    found a dupe... push to end of queue, null 
++                                    current item, and break
++                                */
++    
++                                this.eventQueue[i] = null;
++    
++                                this.eventQueue.push(
++                                    [key, (!Lang.isUndefined(value) ? 
++                                    value : queueItemValue)]);
++    
++                                foundDuplicate = true;
++                                break;
++                            }
++                        }
++                    }
++                    
++                    // this is a refire, or a new property in the queue
++    
++                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
++                        this.eventQueue.push([key, value]);
++                    }
++                }
++        
++                if (property.supercedes) {
++
++                    sLen = property.supercedes.length;
++
++                    for (s = 0; s < sLen; s++) {
++
++                        supercedesCheck = property.supercedes[s];
++                        qLen = this.eventQueue.length;
++
++                        for (q = 0; q < qLen; q++) {
++                            queueItemCheck = this.eventQueue[q];
++
++                            if (queueItemCheck) {
++                                queueItemCheckKey = queueItemCheck[0];
++                                queueItemCheckValue = queueItemCheck[1];
++
++                                if (queueItemCheckKey == 
++                                    supercedesCheck.toLowerCase() ) {
++
++                                    this.eventQueue.push([queueItemCheckKey, 
++                                        queueItemCheckValue]);
++
++                                    this.eventQueue[q] = null;
++                                    break;
++
++                                }
++                            }
++                        }
++                    }
++                }
++
++
++                return true;
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Fires the event for a property using the property's current value.
++        * @method refireEvent
++        * @param {String} key The name of the property
++        */
++        refireEvent: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event && 
++    
++                !Lang.isUndefined(property.value)) {
++    
++                if (this.queueInProgress) {
++    
++                    this.queueProperty(key);
++    
++                } else {
++    
++                    this.fireEvent(key, property.value);
++    
++                }
++    
++            }
++        },
++        
++        /**
++        * Applies a key-value Object literal to the configuration, replacing  
++        * any existing values, and queueing the property events.
++        * Although the values will be set, fireQueue() must be called for their 
++        * associated events to execute.
++        * @method applyConfig
++        * @param {Object} userConfig The configuration Object literal
++        * @param {Boolean} init  When set to true, the initialConfig will 
++        * be set to the userConfig passed in, so that calling a reset will 
++        * reset the properties to the passed values.
++        */
++        applyConfig: function (userConfig, init) {
++        
++            var sKey,
++                oConfig;
++
++            if (init) {
++                oConfig = {};
++                for (sKey in userConfig) {
++                    if (Lang.hasOwnProperty(userConfig, sKey)) {
++                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
++                    }
++                }
++                this.initialConfig = oConfig;
++            }
++
++            for (sKey in userConfig) {
++                if (Lang.hasOwnProperty(userConfig, sKey)) {
++                    this.queueProperty(sKey, userConfig[sKey]);
++                }
++            }
++        },
++        
++        /**
++        * Refires the events for all configuration properties using their 
++        * current values.
++        * @method refresh
++        */
++        refresh: function () {
++
++            var prop;
++
++            for (prop in this.config) {
++                if (Lang.hasOwnProperty(this.config, prop)) {
++                    this.refireEvent(prop);
++                }
++            }
++        },
++        
++        /**
++        * Fires the normalized list of queued property change events
++        * @method fireQueue
++        */
++        fireQueue: function () {
++        
++            var i, 
++                queueItem,
++                key,
++                value,
++                property;
++        
++            this.queueInProgress = true;
++            for (i = 0;i < this.eventQueue.length; i++) {
++                queueItem = this.eventQueue[i];
++                if (queueItem) {
++        
++                    key = queueItem[0];
++                    value = queueItem[1];
++                    property = this.config[key];
++
++                    property.value = value;
++
++                    // Clear out queue entry, to avoid it being 
++                    // re-added to the queue by any queueProperty/supercedes
++                    // calls which are invoked during fireEvent
++                    this.eventQueue[i] = null;
++
++                    this.fireEvent(key,value);
++                }
++            }
++            
++            this.queueInProgress = false;
++            this.eventQueue = [];
++        },
++        
++        /**
++        * Subscribes an external handler to the change event for any 
++        * given property. 
++        * @method subscribeToConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event handler 
++        * (see CustomEvent documentation)
++        * @param {Boolean} overrideContext Optional. If true, will override
++        * "this" within the handler to map to the scope Object passed into the
++        * method.
++        * @return {Boolean} True, if the subscription was successful, 
++        * otherwise false.
++        */ 
++        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
++    
++            var property = this.config[key.toLowerCase()];
++    
++            if (property && property.event) {
++                if (!Config.alreadySubscribed(property.event, handler, obj)) {
++                    property.event.subscribe(handler, obj, overrideContext);
++                }
++                return true;
++            } else {
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Unsubscribes an external handler from the change event for any 
++        * given property. 
++        * @method unsubscribeFromConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event 
++        * handler (see CustomEvent documentation)
++        * @return {Boolean} True, if the unsubscription was successful, 
++        * otherwise false.
++        */
++        unsubscribeFromConfigEvent: function (key, handler, obj) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.event.unsubscribe(handler, obj);
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Returns a string representation of the Config object
++        * @method toString
++        * @return {String} The Config object in string format.
++        */
++        toString: function () {
++            var output = "Config";
++            if (this.owner) {
++                output += " [" + this.owner.toString() + "]";
++            }
++            return output;
++        },
++        
++        /**
++        * Returns a string representation of the Config object's current 
++        * CustomEvent queue
++        * @method outputEventQueue
++        * @return {String} The string list of CustomEvents currently queued 
++        * for execution
++        */
++        outputEventQueue: function () {
++
++            var output = "",
++                queueItem,
++                q,
++                nQueue = this.eventQueue.length;
++              
++            for (q = 0; q < nQueue; q++) {
++                queueItem = this.eventQueue[q];
++                if (queueItem) {
++                    output += queueItem[0] + "=" + queueItem[1] + ", ";
++                }
++            }
++            return output;
++        },
++
++        /**
++        * Sets all properties to null, unsubscribes all listeners from each 
++        * property's change event and all listeners from the configChangedEvent.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var oConfig = this.config,
++                sProperty,
++                oProperty;
++
++
++            for (sProperty in oConfig) {
++            
++                if (Lang.hasOwnProperty(oConfig, sProperty)) {
++
++                    oProperty = oConfig[sProperty];
++
++                    oProperty.event.unsubscribeAll();
++                    oProperty.event = null;
++
++                }
++            
++            }
++            
++            this.configChangedEvent.unsubscribeAll();
++            
++            this.configChangedEvent = null;
++            this.owner = null;
++            this.config = null;
++            this.initialConfig = null;
++            this.eventQueue = null;
++        
++        }
++
++    };
++    
++    
++    
++    /**
++    * Checks to determine if a particular function/Object pair are already 
++    * subscribed to the specified CustomEvent
++    * @method YAHOO.util.Config.alreadySubscribed
++    * @static
++    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
++    * the subscriptions
++    * @param {Function} fn The function to look for in the subscribers list
++    * @param {Object} obj The execution scope Object for the subscription
++    * @return {Boolean} true, if the function/Object pair is already subscribed 
++    * to the CustomEvent passed in
++    */
++    Config.alreadySubscribed = function (evt, fn, obj) {
++    
++        var nSubscribers = evt.subscribers.length,
++            subsc,
++            i;
++
++        if (nSubscribers > 0) {
++            i = nSubscribers - 1;
++            do {
++                subsc = evt.subscribers[i];
++                if (subsc && subsc.obj == obj && subsc.fn == fn) {
++                    return true;
++                }
++            }
++            while (i--);
++        }
++
++        return false;
++
++    };
++
++    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
++
++}());
++/**
++* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
++* comparison. 
++* 
++* @module datemath
++*/
++
++/**
++* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
++* used for adding, subtracting, and comparing dates.
++* @namespace YAHOO.widget
++* @class DateMath
++*/
++YAHOO.widget.DateMath = {
++    /**
++    * Constant field representing Day
++    * @property DAY
++    * @static
++    * @final
++    * @type String
++    */
++    DAY : "D",
++
++    /**
++    * Constant field representing Week
++    * @property WEEK
++    * @static
++    * @final
++    * @type String
++    */
++    WEEK : "W",
++
++    /**
++    * Constant field representing Year
++    * @property YEAR
++    * @static
++    * @final
++    * @type String
++    */
++    YEAR : "Y",
++
++    /**
++    * Constant field representing Month
++    * @property MONTH
++    * @static
++    * @final
++    * @type String
++    */
++    MONTH : "M",
++
++    /**
++    * Constant field representing one day, in milliseconds
++    * @property ONE_DAY_MS
++    * @static
++    * @final
++    * @type Number
++    */
++    ONE_DAY_MS : 1000*60*60*24,
++    
++    /**
++     * Constant field representing the date in first week of January
++     * which identifies the first week of the year.
++     * <p>
++     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
++     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
++     * </p>
++     * @property WEEK_ONE_JAN_DATE
++     * @static
++     * @type Number
++     */
++    WEEK_ONE_JAN_DATE : 1,
++
++    /**
++    * Adds the specified amount of time to the this instance.
++    * @method add
++    * @param {Date} date The JavaScript Date object to perform addition on
++    * @param {String} field The field constant to be used for performing addition.
++    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
++    * @return {Date} The resulting Date object
++    */
++    add : function(date, field, amount) {
++        var d = new Date(date.getTime());
++        switch (field) {
++            case this.MONTH:
++                var newMonth = date.getMonth() + amount;
++                var years = 0;
++
++                if (newMonth < 0) {
++                    while (newMonth < 0) {
++                        newMonth += 12;
++                        years -= 1;
++                    }
++                } else if (newMonth > 11) {
++                    while (newMonth > 11) {
++                        newMonth -= 12;
++                        years += 1;
++                    }
++                }
++
++                d.setMonth(newMonth);
++                d.setFullYear(date.getFullYear() + years);
++                break;
++            case this.DAY:
++                this._addDays(d, amount);
++                // d.setDate(date.getDate() + amount);
++                break;
++            case this.YEAR:
++                d.setFullYear(date.getFullYear() + amount);
++                break;
++            case this.WEEK:
++                this._addDays(d, (amount * 7));
++                // d.setDate(date.getDate() + (amount * 7));
++                break;
++        }
++        return d;
++    },
++
++    /**
++     * Private helper method to account for bug in Safari 2 (webkit < 420)
++     * when Date.setDate(n) is called with n less than -128 or greater than 127.
++     * <p>
++     * Fix approach and original findings are available here:
++     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
++     * </p>
++     * @method _addDays
++     * @param {Date} d JavaScript date object
++     * @param {Number} nDays The number of days to add to the date object (can be negative)
++     * @private
++     */
++    _addDays : function(d, nDays) {
++        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
++            if (nDays < 0) {
++                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
++                for(var min = -128; nDays < min; nDays -= min) {
++                    d.setDate(d.getDate() + min);
++                }
++            } else {
++                // Ensure we don't go above 96 + 31 = 127
++                for(var max = 96; nDays > max; nDays -= max) {
++                    d.setDate(d.getDate() + max);
++                }
++            }
++            // nDays should be remainder between -128 and 96
++        }
++        d.setDate(d.getDate() + nDays);
++    },
++
++    /**
++    * Subtracts the specified amount of time from the this instance.
++    * @method subtract
++    * @param {Date} date The JavaScript Date object to perform subtraction on
++    * @param {Number} field The this field constant to be used for performing subtraction.
++    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
++    * @return {Date} The resulting Date object
++    */
++    subtract : function(date, field, amount) {
++        return this.add(date, field, (amount*-1));
++    },
++
++    /**
++    * Determines whether a given date is before another date on the calendar.
++    * @method before
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs before the compared date; false if not.
++    */
++    before : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() < ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is after another date on the calendar.
++    * @method after
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs after the compared date; false if not.
++    */
++    after : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() > ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is between two other dates on the calendar.
++    * @method between
++    * @param {Date} date  The date to check for
++    * @param {Date} dateBegin The start of the range
++    * @param {Date} dateEnd  The end of the range
++    * @return {Boolean} true if the date occurs between the compared dates; false if not.
++    */
++    between : function(date, dateBegin, dateEnd) {
++        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++    
++    /**
++    * Retrieves a JavaScript Date object representing January 1 of any given year.
++    * @method getJan1
++    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
++    * @return {Date} January 1 of the calendar year specified.
++    */
++    getJan1 : function(calendarYear) {
++        return this.getDate(calendarYear,0,1);
++    },
++
++    /**
++    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
++    * Passing January 1 to this function would return an offset value of zero.
++    * @method getDayOffset
++    * @param {Date} date The JavaScript date for which to find the offset
++    * @param {Number} calendarYear The calendar year to use for determining the offset
++    * @return {Number} The number of days since January 1 of the given year
++    */
++    getDayOffset : function(date, calendarYear) {
++        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
++        
++        // Find the number of days the passed in date is away from the calendar year start
++        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
++        return dayOffset;
++    },
++
++    /**
++    * Calculates the week number for the given date. Can currently support standard
++    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
++    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
++    * 
++    * @method getWeekNumber
++    * @param {Date} date The JavaScript date for which to find the week number
++    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
++    * Defaults to 0
++    * @param {Number} janDate The date in the first week of January which defines week one for the year
++    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
++    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
++    * 
++    * @return {Number} The number of the week containing the given date.
++    */
++    getWeekNumber : function(date, firstDayOfWeek, janDate) {
++
++        // Setup Defaults
++        firstDayOfWeek = firstDayOfWeek || 0;
++        janDate = janDate || this.WEEK_ONE_JAN_DATE;
++
++        var targetDate = this.clearTime(date),
++            startOfWeek,
++            endOfWeek;
++
++        if (targetDate.getDay() === firstDayOfWeek) { 
++            startOfWeek = targetDate;
++        } else {
++            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
++        }
++
++        var startYear = startOfWeek.getFullYear();
++
++        // DST shouldn't be a problem here, math is quicker than setDate();
++        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
++
++        var weekNum;
++        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
++            // If years don't match, endOfWeek is in Jan. and if the 
++            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
++            weekNum = 1;
++        } else {
++            // Get the 1st day of the 1st week, and 
++            // find how many days away we are from it.
++            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
++                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
++
++            // Round days to smoothen out 1 hr DST diff
++            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
++
++            // Calc. Full Weeks
++            var rem = daysDiff % 7;
++            var weeksDiff = (daysDiff - rem)/7;
++            weekNum = weeksDiff + 1;
++        }
++        return weekNum;
++    },
++
++    /**
++     * Get the first day of the week, for the give date. 
++     * @param {Date} dt The date in the week for which the first day is required.
++     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
++     * @return {Date} The first day of the week
++     */
++    getFirstDayOfWeek : function (dt, startOfWeek) {
++        startOfWeek = startOfWeek || 0;
++        var dayOfWeekIndex = dt.getDay(),
++            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
++
++        return this.subtract(dt, this.DAY, dayOfWeek);
++    },
++
++    /**
++    * Determines if a given week overlaps two different years.
++    * @method isYearOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different years.
++    */
++    isYearOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Determines if a given week overlaps two different months.
++    * @method isMonthOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different months.
++    */
++    isMonthOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Gets the first day of a month containing a given date.
++    * @method findMonthStart
++    * @param {Date} date The JavaScript Date used to calculate the month start
++    * @return {Date}  The JavaScript Date representing the first day of the month
++    */
++    findMonthStart : function(date) {
++        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
++        return start;
++    },
++
++    /**
++    * Gets the last day of a month containing a given date.
++    * @method findMonthEnd
++    * @param {Date} date The JavaScript Date used to calculate the month end
++    * @return {Date}  The JavaScript Date representing the last day of the month
++    */
++    findMonthEnd : function(date) {
++        var start = this.findMonthStart(date);
++        var nextMonth = this.add(start, this.MONTH, 1);
++        var end = this.subtract(nextMonth, this.DAY, 1);
++        return end;
++    },
++
++    /**
++    * Clears the time fields from a given date, effectively setting the time to 12 noon.
++    * @method clearTime
++    * @param {Date} date The JavaScript Date for which the time fields will be cleared
++    * @return {Date}  The JavaScript Date cleared of all time fields
++    */
++    clearTime : function(date) {
++        date.setHours(12,0,0,0);
++        return date;
++    },
++
++    /**
++     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
++     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
++     * set the year to 19xx if a year (xx) which is less than 100 is provided.
++     * <p>
++     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
++     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
++     * </p>
++     * @method getDate
++     * @param {Number} y Year.
++     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
++     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
++     * @return {Date} The JavaScript date object with year, month, date set as provided.
++     */
++    getDate : function(y, m, d) {
++        var dt = null;
++        if (YAHOO.lang.isUndefined(d)) {
++            d = 1;
++        }
++        if (y >= 100) {
++            dt = new Date(y, m, d);
++        } else {
++            dt = new Date();
++            dt.setFullYear(y);
++            dt.setMonth(m);
++            dt.setDate(d);
++            dt.setHours(0,0,0,0);
++        }
++        return dt;
++    }
++};
++/**
++* The Calendar component is a UI control that enables users to choose one or more dates from a graphical calendar presented in a one-month or
++* multi-month interface. Calendars are generated entirely via script and can be navigated without any page refreshes.
++* @module    calendar
++* @title    Calendar
++* @namespace  YAHOO.widget
++* @requires  yahoo,dom,event
++*/
++(function(){
++
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        DateMath = YAHOO.widget.DateMath;
++
++/**
++* Calendar is the base class for the Calendar widget. In its most basic
++* implementation, it has the ability to render a calendar widget on the page
++* that can be manipulated to select a single date, move back and forth between
++* months and years.
++* <p>To construct the placeholder for the calendar widget, the code is as
++* follows:
++*   <xmp>
++*       <div id="calContainer"></div>
++*   </xmp>
++* </p>
++* <p>
++* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
++* The Calendar can be constructed by simply providing a container ID string, 
++* or a reference to a container DIV HTMLElement (the element needs to exist 
++* in the document).
++* 
++* E.g.:
++*   <xmp>
++*       var c = new YAHOO.widget.Calendar("calContainer", configOptions);
++*   </xmp>
++* or:
++*   <xmp>
++*       var containerDiv = YAHOO.util.Dom.get("calContainer");
++*       var c = new YAHOO.widget.Calendar(containerDiv, configOptions);
++*   </xmp>
++* </p>
++* <p>
++* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
++* For example if an ID is not provided, and the container's ID is "calContainer", the Calendar's ID will be set to "calContainer_t".
++* </p>
++* 
++* @namespace YAHOO.widget
++* @class Calendar
++* @constructor
++* @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
++* @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
++* @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
++*/
++function Calendar(id, containerId, config) {
++    this.init.apply(this, arguments);
++}
++
++/**
++* The path to be used for images loaded for the Calendar
++* @property YAHOO.widget.Calendar.IMG_ROOT
++* @static
++* @deprecated   You can now customize images by overriding the calclose, calnavleft and calnavright default CSS classes for the close icon, left arrow and right arrow respectively
++* @type String
++*/
++Calendar.IMG_ROOT = null;
++
++/**
++* Type constant used for renderers to represent an individual date (M/D/Y)
++* @property YAHOO.widget.Calendar.DATE
++* @static
++* @final
++* @type String
++*/
++Calendar.DATE = "D";
++
++/**
++* Type constant used for renderers to represent an individual date across any year (M/D)
++* @property YAHOO.widget.Calendar.MONTH_DAY
++* @static
++* @final
++* @type String
++*/
++Calendar.MONTH_DAY = "MD";
++
++/**
++* Type constant used for renderers to represent a weekday
++* @property YAHOO.widget.Calendar.WEEKDAY
++* @static
++* @final
++* @type String
++*/
++Calendar.WEEKDAY = "WD";
++
++/**
++* Type constant used for renderers to represent a range of individual dates (M/D/Y-M/D/Y)
++* @property YAHOO.widget.Calendar.RANGE
++* @static
++* @final
++* @type String
++*/
++Calendar.RANGE = "R";
++
++/**
++* Type constant used for renderers to represent a month across any year
++* @property YAHOO.widget.Calendar.MONTH
++* @static
++* @final
++* @type String
++*/
++Calendar.MONTH = "M";
++
++/**
++* Constant that represents the total number of date cells that are displayed in a given month
++* @property YAHOO.widget.Calendar.DISPLAY_DAYS
++* @static
++* @final
++* @type Number
++*/
++Calendar.DISPLAY_DAYS = 42;
++
++/**
++* Constant used for halting the execution of the remainder of the render stack
++* @property YAHOO.widget.Calendar.STOP_RENDER
++* @static
++* @final
++* @type String
++*/
++Calendar.STOP_RENDER = "S";
++
++/**
++* Constant used to represent short date field string formats (e.g. Tu or Feb)
++* @property YAHOO.widget.Calendar.SHORT
++* @static
++* @final
++* @type String
++*/
++Calendar.SHORT = "short";
++
++/**
++* Constant used to represent long date field string formats (e.g. Monday or February)
++* @property YAHOO.widget.Calendar.LONG
++* @static
++* @final
++* @type String
++*/
++Calendar.LONG = "long";
++
++/**
++* Constant used to represent medium date field string formats (e.g. Mon)
++* @property YAHOO.widget.Calendar.MEDIUM
++* @static
++* @final
++* @type String
++*/
++Calendar.MEDIUM = "medium";
++
++/**
++* Constant used to represent single character date field string formats (e.g. M, T, W)
++* @property YAHOO.widget.Calendar.ONE_CHAR
++* @static
++* @final
++* @type String
++*/
++Calendar.ONE_CHAR = "1char";
++
++/**
++* The set of default Config property keys and values for the Calendar.
++*
++* <p>
++* NOTE: This property is made public in order to allow users to change 
++* the default values of configuration properties. Users should not 
++* modify the key string, unless they are overriding the Calendar implementation
++* </p>
++*
++* <p>
++* The property is an object with key/value pairs, the key being the 
++* uppercase configuration property name and the value being an object 
++* literal with a key string property, and a value property, specifying the 
++* default value of the property. To override a default value, you can set
++* the value property, for example, <code>YAHOO.widget.Calendar.DEFAULT_CONFIG.MULTI_SELECT.value = true;</code>
++* 
++* @property YAHOO.widget.Calendar.DEFAULT_CONFIG
++* @static
++* @type Object
++*/
++
++Calendar.DEFAULT_CONFIG = {
++    YEAR_OFFSET : {key:"year_offset", value:0, supercedes:["pagedate", "selected", "mindate","maxdate"]},
++    TODAY : {key:"today", value:new Date(), supercedes:["pagedate"]}, 
++    PAGEDATE : {key:"pagedate", value:null},
++    SELECTED : {key:"selected", value:[]},
++    TITLE : {key:"title", value:""},
++    CLOSE : {key:"close", value:false},
++    IFRAME : {key:"iframe", value:(YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) ? true : false},
++    MINDATE : {key:"mindate", value:null},
++    MAXDATE : {key:"maxdate", value:null},
++    MULTI_SELECT : {key:"multi_select", value:false},
++    START_WEEKDAY : {key:"start_weekday", value:0},
++    SHOW_WEEKDAYS : {key:"show_weekdays", value:true},
++    SHOW_WEEK_HEADER : {key:"show_week_header", value:false},
++    SHOW_WEEK_FOOTER : {key:"show_week_footer", value:false},
++    HIDE_BLANK_WEEKS : {key:"hide_blank_weeks", value:false},
++    NAV_ARROW_LEFT: {key:"nav_arrow_left", value:null} ,
++    NAV_ARROW_RIGHT : {key:"nav_arrow_right", value:null} ,
++    MONTHS_SHORT : {key:"months_short", value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]},
++    MONTHS_LONG: {key:"months_long", value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]},
++    WEEKDAYS_1CHAR: {key:"weekdays_1char", value:["S", "M", "T", "W", "T", "F", "S"]},
++    WEEKDAYS_SHORT: {key:"weekdays_short", value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]},
++    WEEKDAYS_MEDIUM: {key:"weekdays_medium", value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
++    WEEKDAYS_LONG: {key:"weekdays_long", value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]},
++    LOCALE_MONTHS:{key:"locale_months", value:"long"},
++    LOCALE_WEEKDAYS:{key:"locale_weekdays", value:"short"},
++    DATE_DELIMITER:{key:"date_delimiter", value:","},
++    DATE_FIELD_DELIMITER:{key:"date_field_delimiter", value:"/"},
++    DATE_RANGE_DELIMITER:{key:"date_range_delimiter", value:"-"},
++    MY_MONTH_POSITION:{key:"my_month_position", value:1},
++    MY_YEAR_POSITION:{key:"my_year_position", value:2},
++    MD_MONTH_POSITION:{key:"md_month_position", value:1},
++    MD_DAY_POSITION:{key:"md_day_position", value:2},
++    MDY_MONTH_POSITION:{key:"mdy_month_position", value:1},
++    MDY_DAY_POSITION:{key:"mdy_day_position", value:2},
++    MDY_YEAR_POSITION:{key:"mdy_year_position", value:3},
++    MY_LABEL_MONTH_POSITION:{key:"my_label_month_position", value:1},
++    MY_LABEL_YEAR_POSITION:{key:"my_label_year_position", value:2},
++    MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix", value:" "},
++    MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix", value:""},
++    NAV: {key:"navigator", value: null},
++    STRINGS : { 
++        key:"strings",
++        value: {
++            previousMonth : "Previous Month",
++            nextMonth : "Next Month",
++            close: "Close"
++        },
++        supercedes : ["close", "title"]
++    }
++};
++
++/**
++* The set of default Config property keys and values for the Calendar
++* @property YAHOO.widget.Calendar._DEFAULT_CONFIG
++* @deprecated Made public. See the public DEFAULT_CONFIG property for details
++* @final
++* @static
++* @private
++* @type Object
++*/
++Calendar._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
++
++var DEF_CFG = Calendar.DEFAULT_CONFIG;
++
++/**
++* The set of Custom Event types supported by the Calendar
++* @property YAHOO.widget.Calendar._EVENT_TYPES
++* @final
++* @static
++* @private
++* @type Object
++*/
++Calendar._EVENT_TYPES = {
++    BEFORE_SELECT : "beforeSelect", 
++    SELECT : "select",
++    BEFORE_DESELECT : "beforeDeselect",
++    DESELECT : "deselect",
++    CHANGE_PAGE : "changePage",
++    BEFORE_RENDER : "beforeRender",
++    RENDER : "render",
++    BEFORE_DESTROY : "beforeDestroy",
++    DESTROY : "destroy",
++    RESET : "reset",
++    CLEAR : "clear",
++    BEFORE_HIDE : "beforeHide",
++    HIDE : "hide",
++    BEFORE_SHOW : "beforeShow",
++    SHOW : "show",
++    BEFORE_HIDE_NAV : "beforeHideNav",
++    HIDE_NAV : "hideNav",
++    BEFORE_SHOW_NAV : "beforeShowNav",
++    SHOW_NAV : "showNav",
++    BEFORE_RENDER_NAV : "beforeRenderNav",
++    RENDER_NAV : "renderNav"
++};
++
++/**
++* The set of default style constants for the Calendar
++* @property YAHOO.widget.Calendar.STYLES
++* @static
++* @type Object An object with name/value pairs for the class name identifier/value.
++*/
++Calendar.STYLES = {
++    CSS_ROW_HEADER: "calrowhead",
++    CSS_ROW_FOOTER: "calrowfoot",
++    CSS_CELL : "calcell",
++    CSS_CELL_SELECTOR : "selector",
++    CSS_CELL_SELECTED : "selected",
++    CSS_CELL_SELECTABLE : "selectable",
++    CSS_CELL_RESTRICTED : "restricted",
++    CSS_CELL_TODAY : "today",
++    CSS_CELL_OOM : "oom",
++    CSS_CELL_OOB : "previous",
++    CSS_HEADER : "calheader",
++    CSS_HEADER_TEXT : "calhead",
++    CSS_BODY : "calbody",
++    CSS_WEEKDAY_CELL : "calweekdaycell",
++    CSS_WEEKDAY_ROW : "calweekdayrow",
++    CSS_FOOTER : "calfoot",
++    CSS_CALENDAR : "yui-calendar",
++    CSS_SINGLE : "single",
++    CSS_CONTAINER : "yui-calcontainer",
++    CSS_NAV_LEFT : "calnavleft",
++    CSS_NAV_RIGHT : "calnavright",
++    CSS_NAV : "calnav",
++    CSS_CLOSE : "calclose",
++    CSS_CELL_TOP : "calcelltop",
++    CSS_CELL_LEFT : "calcellleft",
++    CSS_CELL_RIGHT : "calcellright",
++    CSS_CELL_BOTTOM : "calcellbottom",
++    CSS_CELL_HOVER : "calcellhover",
++    CSS_CELL_HIGHLIGHT1 : "highlight1",
++    CSS_CELL_HIGHLIGHT2 : "highlight2",
++    CSS_CELL_HIGHLIGHT3 : "highlight3",
++    CSS_CELL_HIGHLIGHT4 : "highlight4",
++    CSS_WITH_TITLE: "withtitle",
++    CSS_FIXED_SIZE: "fixedsize",
++    CSS_LINK_CLOSE: "link-close"
++};
++
++/**
++* The set of default style constants for the Calendar
++* @property YAHOO.widget.Calendar._STYLES
++* @deprecated Made public. See the public STYLES property for details
++* @final
++* @static
++* @private
++* @type Object
++*/
++Calendar._STYLES = Calendar.STYLES;
++
++Calendar.prototype = {
++
++    /**
++    * The configuration object used to set up the calendars various locale and style options.
++    * @property Config
++    * @private
++    * @deprecated Configuration properties should be set by calling Calendar.cfg.setProperty.
++    * @type Object
++    */
++    Config : null,
++
++    /**
++    * The parent CalendarGroup, only to be set explicitly by the parent group
++    * @property parent
++    * @type CalendarGroup
++    */ 
++    parent : null,
++
++    /**
++    * The index of this item in the parent group
++    * @property index
++    * @type Number
++    */
++    index : -1,
++
++    /**
++    * The collection of calendar table cells
++    * @property cells
++    * @type HTMLTableCellElement[]
++    */
++    cells : null,
++
++    /**
++    * The collection of calendar cell dates that is parallel to the cells collection. The array contains dates field arrays in the format of [YYYY, M, D].
++    * @property cellDates
++    * @type Array[](Number[])
++    */
++    cellDates : null,
++
++    /**
++    * The id that uniquely identifies this Calendar.
++    * @property id
++    * @type String
++    */
++    id : null,
++
++    /**
++    * The unique id associated with the Calendar's container
++    * @property containerId
++    * @type String
++    */
++    containerId: null,
++
++    /**
++    * The DOM element reference that points to this calendar's container element. The calendar will be inserted into this element when the shell is rendered.
++    * @property oDomContainer
++    * @type HTMLElement
++    */
++    oDomContainer : null,
++
++    /**
++    * A Date object representing today's date.
++    * @deprecated Use the "today" configuration property
++    * @property today
++    * @type Date
++    */
++    today : null,
++
++    /**
++    * The list of render functions, along with required parameters, used to render cells. 
++    * @property renderStack
++    * @type Array[]
++    */
++    renderStack : null,
++
++    /**
++    * A copy of the initial render functions created before rendering.
++    * @property _renderStack
++    * @private
++    * @type Array
++    */
++    _renderStack : null,
++
++    /**
++    * A reference to the CalendarNavigator instance created for this Calendar.
++    * Will be null if the "navigator" configuration property has not been set
++    * @property oNavigator
++    * @type CalendarNavigator
++    */
++    oNavigator : null,
++
++    /**
++    * The private list of initially selected dates.
++    * @property _selectedDates
++    * @private
++    * @type Array
++    */
++    _selectedDates : null,
++
++    /**
++    * A map of DOM event handlers to attach to cells associated with specific CSS class names
++    * @property domEventMap
++    * @type Object
++    */
++    domEventMap : null,
++
++    /**
++     * Protected helper used to parse Calendar constructor/init arguments.
++     *
++     * As of 2.4.0, Calendar supports a simpler constructor 
++     * signature. This method reconciles arguments
++     * received in the pre 2.4.0 and 2.4.0 formats.
++     * 
++     * @protected
++     * @method _parseArgs
++     * @param {Array} Function "arguments" array
++     * @return {Object} Object with id, container, config properties containing
++     * the reconciled argument values.
++     **/
++    _parseArgs : function(args) {
++        /*
++           2.4.0 Constructors signatures
++
++           new Calendar(String)
++           new Calendar(HTMLElement)
++           new Calendar(String, ConfigObject)
++           new Calendar(HTMLElement, ConfigObject)
++
++           Pre 2.4.0 Constructor signatures
++
++           new Calendar(String, String)
++           new Calendar(String, HTMLElement)
++           new Calendar(String, String, ConfigObject)
++           new Calendar(String, HTMLElement, ConfigObject)
++         */
++        var nArgs = {id:null, container:null, config:null};
++
++        if (args && args.length && args.length > 0) {
++            switch (args.length) {
++                case 1:
++                    nArgs.id = null;
++                    nArgs.container = args[0];
++                    nArgs.config = null;
++                    break;
++                case 2:
++                    if (Lang.isObject(args[1]) && !args[1].tagName && !(args[1] instanceof String)) {
++                        nArgs.id = null;
++                        nArgs.container = args[0];
++                        nArgs.config = args[1];
++                    } else {
++                        nArgs.id = args[0];
++                        nArgs.container = args[1];
++                        nArgs.config = null;
++                    }
++                    break;
++                default: // 3+
++                    nArgs.id = args[0];
++                    nArgs.container = args[1];
++                    nArgs.config = args[2];
++                    break;
++            }
++        } else {
++        }
++        return nArgs;
++    },
++
++    /**
++    * Initializes the Calendar widget.
++    * @method init
++    *
++    * @param {String} id optional The id of the table element that will represent the Calendar widget. As of 2.4.0, this argument is optional.
++    * @param {String | HTMLElement} container The id of the container div element that will wrap the Calendar table, or a reference to a DIV element which exists in the document.
++    * @param {Object} config optional The configuration object containing the initial configuration values for the Calendar.
++    */
++    init : function(id, container, config) {
++        // Normalize 2.4.0, pre 2.4.0 args
++        var nArgs = this._parseArgs(arguments);
++
++        id = nArgs.id;
++        container = nArgs.container;
++        config = nArgs.config;
++
++        this.oDomContainer = Dom.get(container);
++
++        if (!this.oDomContainer.id) {
++            this.oDomContainer.id = Dom.generateId();
++        }
++        if (!id) {
++            id = this.oDomContainer.id + "_t";
++        }
++
++        this.id = id;
++        this.containerId = this.oDomContainer.id;
++
++        this.initEvents();
++
++        /**
++        * The Config object used to hold the configuration variables for the Calendar
++        * @property cfg
++        * @type YAHOO.util.Config
++        */
++        this.cfg = new YAHOO.util.Config(this);
++
++        /**
++        * The local object which contains the Calendar's options
++        * @property Options
++        * @type Object
++        */
++        this.Options = {};
++
++        /**
++        * The local object which contains the Calendar's locale settings
++        * @property Locale
++        * @type Object
++        */
++        this.Locale = {};
++
++        this.initStyles();
++
++        Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
++        Dom.addClass(this.oDomContainer, this.Style.CSS_SINGLE);
++
++        this.cellDates = [];
++        this.cells = [];
++        this.renderStack = [];
++        this._renderStack = [];
++
++        this.setupConfig();
++
++        if (config) {
++            this.cfg.applyConfig(config, true);
++        }
++
++        this.cfg.fireQueue();
++
++        this.today = this.cfg.getProperty("today");
++    },
++
++    /**
++    * Default Config listener for the iframe property. If the iframe config property is set to true, 
++    * renders the built-in IFRAME shim if the container is relatively or absolutely positioned.
++    * 
++    * @method configIframe
++    */
++    configIframe : function(type, args, obj) {
++        var useIframe = args[0];
++    
++        if (!this.parent) {
++            if (Dom.inDocument(this.oDomContainer)) {
++                if (useIframe) {
++                    var pos = Dom.getStyle(this.oDomContainer, "position");
++                    
++                    if (pos == "absolute" || pos == "relative") {
++                        
++                        if (!Dom.inDocument(this.iframe)) {
++                            this.iframe = document.createElement("iframe");
++                            this.iframe.src = "javascript:false;";
++    
++                            Dom.setStyle(this.iframe, "opacity", "0");
++    
++                            if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
++                                Dom.addClass(this.iframe, this.Style.CSS_FIXED_SIZE);
++                            }
++    
++                            this.oDomContainer.insertBefore(this.iframe, this.oDomContainer.firstChild);
++                        }
++                    }
++                } else {
++                    if (this.iframe) {
++                        if (this.iframe.parentNode) {
++                            this.iframe.parentNode.removeChild(this.iframe);
++                        }
++                        this.iframe = null;
++                    }
++                }
++            }
++        }
++    },
++
++    /**
++    * Default handler for the "title" property
++    * @method configTitle
++    */
++    configTitle : function(type, args, obj) {
++        var title = args[0];
++
++        // "" disables title bar
++        if (title) {
++            this.createTitleBar(title);
++        } else {
++            var close = this.cfg.getProperty(DEF_CFG.CLOSE.key);
++            if (!close) {
++                this.removeTitleBar();
++            } else {
++                this.createTitleBar("&#160;");
++            }
++        }
++    },
++    
++    /**
++    * Default handler for the "close" property
++    * @method configClose
++    */
++    configClose : function(type, args, obj) {
++        var close = args[0],
++            title = this.cfg.getProperty(DEF_CFG.TITLE.key);
++    
++        if (close) {
++            if (!title) {
++                this.createTitleBar("&#160;");
++            }
++            this.createCloseButton();
++        } else {
++            this.removeCloseButton();
++            if (!title) {
++                this.removeTitleBar();
++            }
++        }
++    },
++
++    /**
++    * Initializes Calendar's built-in CustomEvents
++    * @method initEvents
++    */
++    initEvents : function() {
++
++        var defEvents = Calendar._EVENT_TYPES,
++            CE = YAHOO.util.CustomEvent,
++            cal = this; // To help with minification
++
++        /**
++        * Fired before a date selection is made
++        * @event beforeSelectEvent
++        */
++        cal.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT); 
++
++        /**
++        * Fired when a date selection is made
++        * @event selectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        cal.selectEvent = new CE(defEvents.SELECT);
++
++        /**
++        * Fired before a date or set of dates is deselected
++        * @event beforeDeselectEvent
++        */
++        cal.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT);
++
++        /**
++        * Fired when a date or set of dates is deselected
++        * @event deselectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        cal.deselectEvent = new CE(defEvents.DESELECT);
++    
++        /**
++        * Fired when the Calendar page is changed
++        * @event changePageEvent
++        * @param {Date} prevDate The date before the page was changed
++        * @param {Date} newDate The date after the page was changed
++        */
++        cal.changePageEvent = new CE(defEvents.CHANGE_PAGE);
++    
++        /**
++        * Fired before the Calendar is rendered
++        * @event beforeRenderEvent
++        */
++        cal.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
++    
++        /**
++        * Fired when the Calendar is rendered
++        * @event renderEvent
++        */
++        cal.renderEvent = new CE(defEvents.RENDER);
++
++        /**
++        * Fired just before the Calendar is to be destroyed
++        * @event beforeDestroyEvent
++        */
++        cal.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
++
++        /**
++        * Fired after the Calendar is destroyed. This event should be used
++        * for notification only. When this event is fired, important Calendar instance
++        * properties, dom references and event listeners have already been 
++        * removed/dereferenced, and hence the Calendar instance is not in a usable 
++        * state.
++        *
++        * @event destroyEvent
++        */
++        cal.destroyEvent = new CE(defEvents.DESTROY);
++
++        /**
++        * Fired when the Calendar is reset
++        * @event resetEvent
++        */
++        cal.resetEvent = new CE(defEvents.RESET);
++
++        /**
++        * Fired when the Calendar is cleared
++        * @event clearEvent
++        */
++        cal.clearEvent = new CE(defEvents.CLEAR);
++
++        /**
++        * Fired just before the Calendar is to be shown
++        * @event beforeShowEvent
++        */
++        cal.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
++
++        /**
++        * Fired after the Calendar is shown
++        * @event showEvent
++        */
++        cal.showEvent = new CE(defEvents.SHOW);
++
++        /**
++        * Fired just before the Calendar is to be hidden
++        * @event beforeHideEvent
++        */
++        cal.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
++
++        /**
++        * Fired after the Calendar is hidden
++        * @event hideEvent
++        */
++        cal.hideEvent = new CE(defEvents.HIDE);
++
++        /**
++        * Fired just before the CalendarNavigator is to be shown
++        * @event beforeShowNavEvent
++        */
++        cal.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
++    
++        /**
++        * Fired after the CalendarNavigator is shown
++        * @event showNavEvent
++        */
++        cal.showNavEvent = new CE(defEvents.SHOW_NAV);
++    
++        /**
++        * Fired just before the CalendarNavigator is to be hidden
++        * @event beforeHideNavEvent
++        */
++        cal.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
++    
++        /**
++        * Fired after the CalendarNavigator is hidden
++        * @event hideNavEvent
++        */
++        cal.hideNavEvent = new CE(defEvents.HIDE_NAV);
++
++        /**
++        * Fired just before the CalendarNavigator is to be rendered
++        * @event beforeRenderNavEvent
++        */
++        cal.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
++
++        /**
++        * Fired after the CalendarNavigator is rendered
++        * @event renderNavEvent
++        */
++        cal.renderNavEvent = new CE(defEvents.RENDER_NAV);
++
++        cal.beforeSelectEvent.subscribe(cal.onBeforeSelect, this, true);
++        cal.selectEvent.subscribe(cal.onSelect, this, true);
++        cal.beforeDeselectEvent.subscribe(cal.onBeforeDeselect, this, true);
++        cal.deselectEvent.subscribe(cal.onDeselect, this, true);
++        cal.changePageEvent.subscribe(cal.onChangePage, this, true);
++        cal.renderEvent.subscribe(cal.onRender, this, true);
++        cal.resetEvent.subscribe(cal.onReset, this, true);
++        cal.clearEvent.subscribe(cal.onClear, this, true);
++    },
++
++    /**
++    * The default event handler for clicks on the "Previous Month" navigation UI
++    *
++    * @method doPreviousMonthNav
++    * @param {DOMEvent} e The DOM event
++    * @param {Calendar} cal A reference to the calendar
++    */
++    doPreviousMonthNav : function(e, cal) {
++        Event.preventDefault(e);
++        // previousMonth invoked in a timeout, to allow
++        // event to bubble up, with correct target. Calling
++        // previousMonth, will call render which will remove 
++        // HTML which generated the event, resulting in an 
++        // invalid event target in certain browsers.
++        setTimeout(function() {
++            cal.previousMonth();
++            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_LEFT, "a", cal.oDomContainer);
++            if (navs && navs[0]) {
++                try {
++                    navs[0].focus();
++                } catch (ex) {
++                    // ignore
++                }
++            }
++        }, 0);
++    },
++
++    /**
++     * The default event handler for clicks on the "Next Month" navigation UI
++     *
++     * @method doNextMonthNav
++     * @param {DOMEvent} e The DOM event
++     * @param {Calendar} cal A reference to the calendar
++     */
++    doNextMonthNav : function(e, cal) {
++        Event.preventDefault(e);
++        setTimeout(function() {
++            cal.nextMonth();
++            var navs = Dom.getElementsByClassName(cal.Style.CSS_NAV_RIGHT, "a", cal.oDomContainer);
++            if (navs && navs[0]) {
++                try {
++                    navs[0].focus();
++                } catch (ex) {
++                    // ignore
++                }
++            }
++        }, 0);
++    },
++
++    /**
++    * The default event handler for date cell selection. Currently attached to 
++    * the Calendar's bounding box, referenced by it's <a href="#property_oDomContainer">oDomContainer</a> property.
++    *
++    * @method doSelectCell
++    * @param {DOMEvent} e The DOM event
++    * @param {Calendar} cal A reference to the calendar
++    */
++    doSelectCell : function(e, cal) {
++        var cell, d, date, index;
++
++        var target = Event.getTarget(e),
++            tagName = target.tagName.toLowerCase(),
++            defSelector = false;
++
++        while (tagName != "td" && !Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
++
++            if (!defSelector && tagName == "a" && Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
++                defSelector = true;
++            }
++
++            target = target.parentNode;
++            tagName = target.tagName.toLowerCase();
++
++            if (target == this.oDomContainer || tagName == "html") {
++                return;
++            }
++        }
++
++        if (defSelector) {
++            // Stop link href navigation for default renderer
++            Event.preventDefault(e);
++        }
++    
++        cell = target;
++
++        if (Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
++            index = cal.getIndexFromId(cell.id);
++            if (index > -1) {
++                d = cal.cellDates[index];
++                if (d) {
++                    date = DateMath.getDate(d[0],d[1]-1,d[2]);
++                
++                    var link;
++
++                    if (cal.Options.MULTI_SELECT) {
++                        link = cell.getElementsByTagName("a")[0];
++                        if (link) {
++                            link.blur();
++                        }
++
++                        var cellDate = cal.cellDates[index];
++                        var cellDateIndex = cal._indexOfSelectedFieldArray(cellDate);
++
++                        if (cellDateIndex > -1) { 
++                            cal.deselectCell(index);
++                        } else {
++                            cal.selectCell(index);
++                        } 
++
++                    } else {
++                        link = cell.getElementsByTagName("a")[0];
++                        if (link) {
++                            link.blur();
++                        }
++                        cal.selectCell(index);
++                    }
++                }
++            }
++        }
++    },
++
++    /**
++    * The event that is executed when the user hovers over a cell
++    * @method doCellMouseOver
++    * @param {DOMEvent} e The event
++    * @param {Calendar} cal A reference to the calendar passed by the Event utility
++    */
++    doCellMouseOver : function(e, cal) {
++        var target;
++        if (e) {
++            target = Event.getTarget(e);
++        } else {
++            target = this;
++        }
++
++        while (target.tagName && target.tagName.toLowerCase() != "td") {
++            target = target.parentNode;
++            if (!target.tagName || target.tagName.toLowerCase() == "html") {
++                return;
++            }
++        }
++
++        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
++            Dom.addClass(target, cal.Style.CSS_CELL_HOVER);
++        }
++    },
++
++    /**
++    * The event that is executed when the user moves the mouse out of a cell
++    * @method doCellMouseOut
++    * @param {DOMEvent} e The event
++    * @param {Calendar} cal A reference to the calendar passed by the Event utility
++    */
++    doCellMouseOut : function(e, cal) {
++        var target;
++        if (e) {
++            target = Event.getTarget(e);
++        } else {
++            target = this;
++        }
++
++        while (target.tagName && target.tagName.toLowerCase() != "td") {
++            target = target.parentNode;
++            if (!target.tagName || target.tagName.toLowerCase() == "html") {
++                return;
++            }
++        }
++
++        if (Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
++            Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
++        }
++    },
++
++    setupConfig : function() {
++
++        var cfg = this.cfg;
++
++        /**
++        * The date to use to represent "Today".
++        *
++        * @config today
++        * @type Date
++        * @default The client side date (new Date()) when the Calendar is instantiated.
++        */
++        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler:this.configToday, suppressEvent:true } );
++
++        /**
++        * The month/year representing the current visible Calendar date (mm/yyyy)
++        * @config pagedate
++        * @type String | Date
++        * @default Today's date
++        */
++        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
++
++        /**
++        * The date or range of dates representing the current Calendar selection
++        * @config selected
++        * @type String
++        * @default []
++        */
++        cfg.addProperty(DEF_CFG.SELECTED.key, { value:DEF_CFG.SELECTED.value.concat(), handler:this.configSelected } );
++
++        /**
++        * The title to display above the Calendar's month header
++        * @config title
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
++
++        /**
++        * Whether or not a close button should be displayed for this Calendar
++        * @config close
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
++
++        /**
++        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
++        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
++        * enabled if required.
++        * 
++        * @config iframe
++        * @type Boolean
++        * @default true for IE6 and below, false for all other browsers
++        */
++        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
++
++        /**
++        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config mindate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.configMinDate } );
++
++        /**
++        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config maxdate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.configMaxDate } );
++
++        // Options properties
++    
++        /**
++        * True if the Calendar should allow multiple selections. False by default.
++        * @config MULTI_SELECT
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++
++        /**
++        * The weekday the week begins on. Default is 0 (Sunday = 0, Monday = 1 ... Saturday = 6).
++        * @config START_WEEKDAY
++        * @type number
++        * @default 0
++        */
++        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.configOptions, validator:cfg.checkNumber  } );
++    
++        /**
++        * True if the Calendar should show weekday labels. True by default.
++        * @config SHOW_WEEKDAYS
++        * @type Boolean
++        * @default true
++        */
++        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.configOptions, validator:cfg.checkBoolean  } );
++    
++        /**
++        * True if the Calendar should show week row headers. False by default.
++        * @config SHOW_WEEK_HEADER
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key, { value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++    
++        /**
++        * True if the Calendar should show week row footers. False by default.
++        * @config SHOW_WEEK_FOOTER
++        * @type Boolean
++        * @default false
++        */ 
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++    
++        /**
++        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
++        * @config HIDE_BLANK_WEEKS
++        * @type Boolean
++        * @default false
++        */ 
++        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key, { value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.configOptions, validator:cfg.checkBoolean } );
++        
++        /**
++        * The image that should be used for the left navigation arrow.
++        * @config NAV_ARROW_LEFT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"  
++        * @default null
++        */ 
++        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.configOptions } );
++    
++        /**
++        * The image that should be used for the right navigation arrow.
++        * @config NAV_ARROW_RIGHT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
++        * @default null
++        */ 
++        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.configOptions } );
++    
++        // Locale properties
++    
++        /**
++        * The short month labels for the current locale.
++        * @config MONTHS_SHORT
++        * @type String[]
++        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
++        */
++        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.configLocale } );
++        
++        /**
++        * The long month labels for the current locale.
++        * @config MONTHS_LONG
++        * @type String[]
++        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
++        */ 
++        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.configLocale } );
++
++        /**
++        * The 1-character weekday labels for the current locale.
++        * @config WEEKDAYS_1CHAR
++        * @type String[]
++        * @default ["S", "M", "T", "W", "T", "F", "S"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.configLocale } );
++        
++        /**
++        * The short weekday labels for the current locale.
++        * @config WEEKDAYS_SHORT
++        * @type String[]
++        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.configLocale } );
++        
++        /**
++        * The medium weekday labels for the current locale.
++        * @config WEEKDAYS_MEDIUM
++        * @type String[]
++        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.configLocale } );
++        
++        /**
++        * The long weekday labels for the current locale.
++        * @config WEEKDAYS_LONG
++        * @type String[]
++        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
++        */ 
++        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.configLocale } );
++
++        /**
++        * Refreshes the locale values used to build the Calendar.
++        * @method refreshLocale
++        * @private
++        */
++        var refreshLocale = function() {
++            cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
++            cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
++        };
++    
++        cfg.subscribeToConfigEvent(DEF_CFG.START_WEEKDAY.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_SHORT.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.MONTHS_LONG.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_1CHAR.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_SHORT.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_MEDIUM.key, refreshLocale, this, true);
++        cfg.subscribeToConfigEvent(DEF_CFG.WEEKDAYS_LONG.key, refreshLocale, this, true);
++       
++        /**
++        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
++        * @config LOCALE_MONTHS
++        * @type String
++        * @default "long"
++        */ 
++        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.configLocaleValues } );
++        
++        /**
++        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
++        * @config LOCALE_WEEKDAYS
++        * @type String
++        * @default "short"
++        */ 
++        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.configLocaleValues } );
++
++        /**
++        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
++        * be used when displaying and parsing dates. NOTE: All JS Date objects returned by methods, or expected as input by
++        * methods will always represent the Gregorian year, in order to maintain date/month/week values. 
++        *
++        * @config YEAR_OFFSET
++        * @type Number
++        * @default 0
++        */
++        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, handler:this.configLocale  } );
++    
++        /**
++        * The value used to delimit individual dates in a date string passed to various Calendar functions.
++        * @config DATE_DELIMITER
++        * @type String
++        * @default ","
++        */ 
++        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.configLocale } );
++    
++        /**
++        * The value used to delimit date fields in a date string passed to various Calendar functions.
++        * @config DATE_FIELD_DELIMITER
++        * @type String
++        * @default "/"
++        */ 
++        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key, { value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.configLocale } );
++    
++        /**
++        * The value used to delimit date ranges in a date string passed to various Calendar functions.
++        * @config DATE_RANGE_DELIMITER
++        * @type String
++        * @default "-"
++        */
++        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key, { value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.configLocale } );
++    
++        /**
++        * The position of the month in a month/year date string
++        * @config MY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in a month/year date string
++        * @config MY_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the month in a month/day date string
++        * @config MD_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the day in a month/year date string
++        * @config MD_DAY_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the month in a month/day/year date string
++        * @config MDY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the day in a month/day/year date string
++        * @config MDY_DAY_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in a month/day/year date string
++        * @config MDY_YEAR_POSITION
++        * @type Number
++        * @default 3
++        */
++        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the month in the month year label string used as the Calendar header
++        * @config MY_LABEL_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in the month year label string used as the Calendar header
++        * @config MY_LABEL_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.configLocale, validator:cfg.checkNumber } );
++        
++        /**
++        * The suffix used after the month when rendering the Calendar header
++        * @config MY_LABEL_MONTH_SUFFIX
++        * @type String
++        * @default " "
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.configLocale } );
++        
++        /**
++        * The suffix used after the year when rendering the Calendar header
++        * @config MY_LABEL_YEAR_SUFFIX
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.configLocale } );
++
++        /**
++        * Configuration for the Month/Year CalendarNavigator UI which allows the user to jump directly to a 
++        * specific Month/Year without having to scroll sequentially through months.
++        * <p>
++        * Setting this property to null (default value) or false, will disable the CalendarNavigator UI.
++        * </p>
++        * <p>
++        * Setting this property to true will enable the CalendarNavigatior UI with the default CalendarNavigator configuration values.
++        * </p>
++        * <p>
++        * This property can also be set to an object literal containing configuration properties for the CalendarNavigator UI.
++        * The configuration object expects the the following case-sensitive properties, with the "strings" property being a nested object.
++        * Any properties which are not provided will use the default values (defined in the CalendarNavigator class).
++        * </p>
++        * <dl>
++        * <dt>strings</dt>
++        * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
++        *     <dl>
++        *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
++        *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
++        *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
++        *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
++        *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
++        *     </dl>
++        * </dd>
++        * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
++        * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
++        * </dl>
++        * <p>E.g.</p>
++        * <pre>
++        * var navConfig = {
++        *   strings: {
++        *    month:"Calendar Month",
++        *    year:"Calendar Year",
++        *    submit: "Submit",
++        *    cancel: "Cancel",
++        *    invalidYear: "Please enter a valid year"
++        *   },
++        *   monthFormat: YAHOO.widget.Calendar.SHORT,
++        *   initialFocus: "month"
++        * }
++        * </pre>
++        * @config navigator
++        * @type {Object|Boolean}
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
++
++        /**
++         * The map of UI strings which the Calendar UI uses.
++         *
++         * @config strings
++         * @type {Object}
++         * @default An object with the properties shown below:
++         *     <dl>
++         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
++         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
++         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
++         *     </dl>
++         */
++        cfg.addProperty(DEF_CFG.STRINGS.key, { 
++            value:DEF_CFG.STRINGS.value,
++            handler:this.configStrings,
++            validator: function(val) {
++                return Lang.isObject(val);
++            },
++            supercedes:DEF_CFG.STRINGS.supercedes
++        });
++    },
++
++    /**
++    * The default handler for the "strings" property
++    * @method configStrings
++    */
++    configStrings : function(type, args, obj) {
++        var val = Lang.merge(DEF_CFG.STRINGS.value, args[0]);
++        this.cfg.setProperty(DEF_CFG.STRINGS.key, val, true);
++    },
++
++    /**
++    * The default handler for the "pagedate" property
++    * @method configPageDate
++    */
++    configPageDate : function(type, args, obj) {
++        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, this._parsePageDate(args[0]), true);
++    },
++
++    /**
++    * The default handler for the "mindate" property
++    * @method configMinDate
++    */
++    configMinDate : function(type, args, obj) {
++        var val = args[0];
++        if (Lang.isString(val)) {
++            val = this._parseDate(val);
++            this.cfg.setProperty(DEF_CFG.MINDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
++        }
++    },
++
++    /**
++    * The default handler for the "maxdate" property
++    * @method configMaxDate
++    */
++    configMaxDate : function(type, args, obj) {
++        var val = args[0];
++        if (Lang.isString(val)) {
++            val = this._parseDate(val);
++            this.cfg.setProperty(DEF_CFG.MAXDATE.key, DateMath.getDate(val[0],(val[1]-1),val[2]));
++        }
++    },
++
++    /**
++    * The default handler for the "today" property
++    * @method configToday
++    */
++    configToday : function(type, args, obj) {
++        // Only do this for initial set. Changing the today property after the initial
++        // set, doesn't affect pagedate
++        var val = args[0];
++        if (Lang.isString(val)) {
++            val = this._parseDate(val);
++        }
++        var today = DateMath.clearTime(val);
++        if (!this.cfg.initialConfig[DEF_CFG.PAGEDATE.key]) {
++            this.cfg.setProperty(DEF_CFG.PAGEDATE.key, today);
++        }
++        this.today = today;
++        this.cfg.setProperty(DEF_CFG.TODAY.key, today, true);
++    },
++
++    /**
++    * The default handler for the "selected" property
++    * @method configSelected
++    */
++    configSelected : function(type, args, obj) {
++        var selected = args[0],
++            cfgSelected = DEF_CFG.SELECTED.key;
++        
++        if (selected) {
++            if (Lang.isString(selected)) {
++                this.cfg.setProperty(cfgSelected, this._parseDates(selected), true);
++            } 
++        }
++        if (! this._selectedDates) {
++            this._selectedDates = this.cfg.getProperty(cfgSelected);
++        }
++    },
++    
++    /**
++    * The default handler for all configuration options properties
++    * @method configOptions
++    */
++    configOptions : function(type, args, obj) {
++        this.Options[type.toUpperCase()] = args[0];
++    },
++
++    /**
++    * The default handler for all configuration locale properties
++    * @method configLocale
++    */
++    configLocale : function(type, args, obj) {
++        this.Locale[type.toUpperCase()] = args[0];
++
++        this.cfg.refireEvent(DEF_CFG.LOCALE_MONTHS.key);
++        this.cfg.refireEvent(DEF_CFG.LOCALE_WEEKDAYS.key);
++    },
++    
++    /**
++    * The default handler for all configuration locale field length properties
++    * @method configLocaleValues
++    */
++    configLocaleValues : function(type, args, obj) {
++
++        type = type.toLowerCase();
++
++        var val = args[0],
++            cfg = this.cfg,
++            Locale = this.Locale;
++
++        switch (type) {
++            case DEF_CFG.LOCALE_MONTHS.key:
++                switch (val) {
++                    case Calendar.SHORT:
++                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_SHORT.key).concat();
++                        break;
++                    case Calendar.LONG:
++                        Locale.LOCALE_MONTHS = cfg.getProperty(DEF_CFG.MONTHS_LONG.key).concat();
++                        break;
++                }
++                break;
++            case DEF_CFG.LOCALE_WEEKDAYS.key:
++                switch (val) {
++                    case Calendar.ONE_CHAR:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_1CHAR.key).concat();
++                        break;
++                    case Calendar.SHORT:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_SHORT.key).concat();
++                        break;
++                    case Calendar.MEDIUM:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_MEDIUM.key).concat();
++                        break;
++                    case Calendar.LONG:
++                        Locale.LOCALE_WEEKDAYS = cfg.getProperty(DEF_CFG.WEEKDAYS_LONG.key).concat();
++                        break;
++                }
++                
++                var START_WEEKDAY = cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
++    
++                if (START_WEEKDAY > 0) {
++                    for (var w=0; w < START_WEEKDAY; ++w) {
++                        Locale.LOCALE_WEEKDAYS.push(Locale.LOCALE_WEEKDAYS.shift());
++                    }
++                }
++                break;
++        }
++    },
++
++    /**
++     * The default handler for the "navigator" property
++     * @method configNavigator
++     */
++    configNavigator : function(type, args, obj) {
++        var val = args[0];
++        if (YAHOO.widget.CalendarNavigator && (val === true || Lang.isObject(val))) {
++            if (!this.oNavigator) {
++                this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
++                // Cleanup DOM Refs/Events before innerHTML is removed.
++                this.beforeRenderEvent.subscribe(function () {
++                    if (!this.pages) {
++                        this.oNavigator.erase();
++                    }
++                }, this, true);
++            }
++        } else {
++            if (this.oNavigator) {
++                this.oNavigator.destroy();
++                this.oNavigator = null;
++            }
++        }
++    },
++
++    /**
++    * Defines the style constants for the Calendar
++    * @method initStyles
++    */
++    initStyles : function() {
++
++        var defStyle = Calendar.STYLES;
++
++        this.Style = {
++            /**
++            * @property Style.CSS_ROW_HEADER
++            */
++            CSS_ROW_HEADER: defStyle.CSS_ROW_HEADER,
++            /**
++            * @property Style.CSS_ROW_FOOTER
++            */
++            CSS_ROW_FOOTER: defStyle.CSS_ROW_FOOTER,
++            /**
++            * @property Style.CSS_CELL
++            */
++            CSS_CELL : defStyle.CSS_CELL,
++            /**
++            * @property Style.CSS_CELL_SELECTOR
++            */
++            CSS_CELL_SELECTOR : defStyle.CSS_CELL_SELECTOR,
++            /**
++            * @property Style.CSS_CELL_SELECTED
++            */
++            CSS_CELL_SELECTED : defStyle.CSS_CELL_SELECTED,
++            /**
++            * @property Style.CSS_CELL_SELECTABLE
++            */
++            CSS_CELL_SELECTABLE : defStyle.CSS_CELL_SELECTABLE,
++            /**
++            * @property Style.CSS_CELL_RESTRICTED
++            */
++            CSS_CELL_RESTRICTED : defStyle.CSS_CELL_RESTRICTED,
++            /**
++            * @property Style.CSS_CELL_TODAY
++            */
++            CSS_CELL_TODAY : defStyle.CSS_CELL_TODAY,
++            /**
++            * @property Style.CSS_CELL_OOM
++            */
++            CSS_CELL_OOM : defStyle.CSS_CELL_OOM,
++            /**
++            * @property Style.CSS_CELL_OOB
++            */
++            CSS_CELL_OOB : defStyle.CSS_CELL_OOB,
++            /**
++            * @property Style.CSS_HEADER
++            */
++            CSS_HEADER : defStyle.CSS_HEADER,
++            /**
++            * @property Style.CSS_HEADER_TEXT
++            */
++            CSS_HEADER_TEXT : defStyle.CSS_HEADER_TEXT,
++            /**
++            * @property Style.CSS_BODY
++            */
++            CSS_BODY : defStyle.CSS_BODY,
++            /**
++            * @property Style.CSS_WEEKDAY_CELL
++            */
++            CSS_WEEKDAY_CELL : defStyle.CSS_WEEKDAY_CELL,
++            /**
++            * @property Style.CSS_WEEKDAY_ROW
++            */
++            CSS_WEEKDAY_ROW : defStyle.CSS_WEEKDAY_ROW,
++            /**
++            * @property Style.CSS_FOOTER
++            */
++            CSS_FOOTER : defStyle.CSS_FOOTER,
++            /**
++            * @property Style.CSS_CALENDAR
++            */
++            CSS_CALENDAR : defStyle.CSS_CALENDAR,
++            /**
++            * @property Style.CSS_SINGLE
++            */
++            CSS_SINGLE : defStyle.CSS_SINGLE,
++            /**
++            * @property Style.CSS_CONTAINER
++            */
++            CSS_CONTAINER : defStyle.CSS_CONTAINER,
++            /**
++            * @property Style.CSS_NAV_LEFT
++            */
++            CSS_NAV_LEFT : defStyle.CSS_NAV_LEFT,
++            /**
++            * @property Style.CSS_NAV_RIGHT
++            */
++            CSS_NAV_RIGHT : defStyle.CSS_NAV_RIGHT,
++            /**
++            * @property Style.CSS_NAV
++            */
++            CSS_NAV : defStyle.CSS_NAV,
++            /**
++            * @property Style.CSS_CLOSE
++            */
++            CSS_CLOSE : defStyle.CSS_CLOSE,
++            /**
++            * @property Style.CSS_CELL_TOP
++            */
++            CSS_CELL_TOP : defStyle.CSS_CELL_TOP,
++            /**
++            * @property Style.CSS_CELL_LEFT
++            */
++            CSS_CELL_LEFT : defStyle.CSS_CELL_LEFT,
++            /**
++            * @property Style.CSS_CELL_RIGHT
++            */
++            CSS_CELL_RIGHT : defStyle.CSS_CELL_RIGHT,
++            /**
++            * @property Style.CSS_CELL_BOTTOM
++            */
++            CSS_CELL_BOTTOM : defStyle.CSS_CELL_BOTTOM,
++            /**
++            * @property Style.CSS_CELL_HOVER
++            */
++            CSS_CELL_HOVER : defStyle.CSS_CELL_HOVER,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT1
++            */
++            CSS_CELL_HIGHLIGHT1 : defStyle.CSS_CELL_HIGHLIGHT1,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT2
++            */
++            CSS_CELL_HIGHLIGHT2 : defStyle.CSS_CELL_HIGHLIGHT2,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT3
++            */
++            CSS_CELL_HIGHLIGHT3 : defStyle.CSS_CELL_HIGHLIGHT3,
++            /**
++            * @property Style.CSS_CELL_HIGHLIGHT4
++            */
++            CSS_CELL_HIGHLIGHT4 : defStyle.CSS_CELL_HIGHLIGHT4,
++            /**
++             * @property Style.CSS_WITH_TITLE
++             */
++            CSS_WITH_TITLE : defStyle.CSS_WITH_TITLE,
++             /**
++             * @property Style.CSS_FIXED_SIZE
++             */
++            CSS_FIXED_SIZE : defStyle.CSS_FIXED_SIZE,
++             /**
++             * @property Style.CSS_LINK_CLOSE
++             */
++            CSS_LINK_CLOSE : defStyle.CSS_LINK_CLOSE
++        };
++    },
++
++    /**
++    * Builds the date label that will be displayed in the calendar header or
++    * footer, depending on configuration.
++    * @method buildMonthLabel
++    * @return {String} The formatted calendar month label
++    */
++    buildMonthLabel : function() {
++        return this._buildMonthLabel(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
++    },
++
++    /**
++     * Helper method, to format a Month Year string, given a JavaScript Date, based on the 
++     * Calendar localization settings
++     * 
++     * @method _buildMonthLabel
++     * @private
++     * @param {Date} date
++     * @return {String} Formated month, year string
++     */
++    _buildMonthLabel : function(date) {
++        var monthLabel  = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
++            yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;
++
++        if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITION == 1) {
++            return yearLabel + monthLabel;
++        } else {
++            return monthLabel + yearLabel;
++        }
++    },
++    
++    /**
++    * Builds the date digit that will be displayed in calendar cells
++    * @method buildDayLabel
++    * @param {Date} workingDate The current working date
++    * @return {String} The formatted day label
++    */
++    buildDayLabel : function(workingDate) {
++        return workingDate.getDate();
++    },
++    
++    /**
++     * Creates the title bar element and adds it to Calendar container DIV
++     * 
++     * @method createTitleBar
++     * @param {String} strTitle The title to display in the title bar
++     * @return The title bar element
++     */
++    createTitleBar : function(strTitle) {
++        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || document.createElement("div");
++        tDiv.className = YAHOO.widget.CalendarGroup.CSS_2UPTITLE;
++        tDiv.innerHTML = strTitle;
++        this.oDomContainer.insertBefore(tDiv, this.oDomContainer.firstChild);
++    
++        Dom.addClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
++    
++        return tDiv;
++    },
++    
++    /**
++     * Removes the title bar element from the DOM
++     * 
++     * @method removeTitleBar
++     */
++    removeTitleBar : function() {
++        var tDiv = Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
++        if (tDiv) {
++            Event.purgeElement(tDiv);
++            this.oDomContainer.removeChild(tDiv);
++        }
++        Dom.removeClass(this.oDomContainer, this.Style.CSS_WITH_TITLE);
++    },
++    
++    /**
++     * Creates the close button HTML element and adds it to Calendar container DIV
++     * 
++     * @method createCloseButton
++     * @return The close HTML element created
++     */
++    createCloseButton : function() {
++        var cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
++            cssLinkClose = this.Style.CSS_LINK_CLOSE,
++            DEPR_CLOSE_PATH = "us/my/bn/x_d.gif",
++            
++            lnk = Dom.getElementsByClassName(cssLinkClose, "a", this.oDomContainer)[0],
++            strings = this.cfg.getProperty(DEF_CFG.STRINGS.key),
++            closeStr = (strings && strings.close) ? strings.close : "";
++
++        if (!lnk) {
++            lnk = document.createElement("a");
++            Event.addListener(lnk, "click", function(e, cal) {
++                cal.hide(); 
++                Event.preventDefault(e);
++            }, this);
++        }
++
++        lnk.href = "#";
++        lnk.className = cssLinkClose;
++
++        if (Calendar.IMG_ROOT !== null) {
++            var img = Dom.getElementsByClassName(cssClose, "img", lnk)[0] || document.createElement("img");
++            img.src = Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
++            img.className = cssClose;
++            lnk.appendChild(img);
++        } else {
++            lnk.innerHTML = '<span class="' + cssClose + ' ' + this.Style.CSS_CLOSE + '">' + closeStr + '</span>';
++        }
++        this.oDomContainer.appendChild(lnk);
++
++        return lnk;
++    },
++    
++    /**
++     * Removes the close button HTML element from the DOM
++     * 
++     * @method removeCloseButton
++     */
++    removeCloseButton : function() {
++        var btn = Dom.getElementsByClassName(this.Style.CSS_LINK_CLOSE, "a", this.oDomContainer)[0] || null;
++        if (btn) {
++            Event.purgeElement(btn);
++            this.oDomContainer.removeChild(btn);
++        }
++    },
++
++    /**
++    * Renders the calendar header.
++    * @method renderHeader
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    renderHeader : function(html) {
++
++
++        var colSpan = 7,
++            DEPR_NAV_LEFT = "us/tr/callt.gif",
++            DEPR_NAV_RIGHT = "us/tr/calrt.gif",
++            cfg = this.cfg,
++            pageDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
++            strings= cfg.getProperty(DEF_CFG.STRINGS.key),
++            prevStr = (strings && strings.previousMonth) ?  strings.previousMonth : "",
++            nextStr = (strings && strings.nextMonth) ? strings.nextMonth : "",
++            monthLabel;
++
++        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
++            colSpan += 1;
++        }
++    
++        if (cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
++            colSpan += 1;
++        }
++
++        html[html.length] = "<thead>";
++        html[html.length] =  "<tr>";
++        html[html.length] =   '<th colspan="' + colSpan + '" class="' + this.Style.CSS_HEADER_TEXT + '">';
++        html[html.length] =    '<div class="' + this.Style.CSS_HEADER + '">';
++
++        var renderLeft, renderRight = false;
++
++        if (this.parent) {
++            if (this.index === 0) {
++                renderLeft = true;
++            }
++            if (this.index == (this.parent.cfg.getProperty("pages") -1)) {
++                renderRight = true;
++            }
++        } else {
++            renderLeft = true;
++            renderRight = true;
++        }
++
++        if (renderLeft) {
++            monthLabel  = this._buildMonthLabel(DateMath.subtract(pageDate, DateMath.MONTH, 1));
++
++            var leftArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_LEFT.key);
++            // Check for deprecated customization - If someone set IMG_ROOT, but didn't set NAV_ARROW_LEFT, then set NAV_ARROW_LEFT to the old deprecated value
++            if (leftArrow === null && Calendar.IMG_ROOT !== null) {
++                leftArrow = Calendar.IMG_ROOT + DEPR_NAV_LEFT;
++            }
++            var leftStyle = (leftArrow === null) ? "" : ' style="background-image:url(' + leftArrow + ')"';
++            html[html.length] = '<a class="' + this.Style.CSS_NAV_LEFT + '"' + leftStyle + ' href="#">' + prevStr + ' (' + monthLabel + ')' + '</a>';
++        }
++
++        var lbl = this.buildMonthLabel();
++        var cal = this.parent || this;
++        if (cal.cfg.getProperty("navigator")) {
++            lbl = "<a class=\"" + this.Style.CSS_NAV + "\" href=\"#\">" + lbl + "</a>";
++        }
++        html[html.length] = lbl;
++
++        if (renderRight) {
++            monthLabel  = this._buildMonthLabel(DateMath.add(pageDate, DateMath.MONTH, 1));
++
++            var rightArrow = cfg.getProperty(DEF_CFG.NAV_ARROW_RIGHT.key);
++            if (rightArrow === null && Calendar.IMG_ROOT !== null) {
++                rightArrow = Calendar.IMG_ROOT + DEPR_NAV_RIGHT;
++            }
++            var rightStyle = (rightArrow === null) ? "" : ' style="background-image:url(' + rightArrow + ')"';
++            html[html.length] = '<a class="' + this.Style.CSS_NAV_RIGHT + '"' + rightStyle + ' href="#">' + nextStr + ' (' + monthLabel + ')' + '</a>';
++        }
++
++        html[html.length] = '</div>\n</th>\n</tr>';
++
++        if (cfg.getProperty(DEF_CFG.SHOW_WEEKDAYS.key)) {
++            html = this.buildWeekdays(html);
++        }
++        
++        html[html.length] = '</thead>';
++    
++        return html;
++    },
++    
++    /**
++    * Renders the Calendar's weekday headers.
++    * @method buildWeekdays
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    buildWeekdays : function(html) {
++
++        html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
++
++        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key)) {
++            html[html.length] = '<th>&#160;</th>';
++        }
++
++        for(var i=0;i < this.Locale.LOCALE_WEEKDAYS.length; ++i) {
++            html[html.length] = '<th class="' + this.Style.CSS_WEEKDAY_CELL + '">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>';
++        }
++
++        if (this.cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key)) {
++            html[html.length] = '<th>&#160;</th>';
++        }
++
++        html[html.length] = '</tr>';
++
++        return html;
++    },
++    
++    /**
++    * Renders the calendar body.
++    * @method renderBody
++    * @param {Date} workingDate The current working Date being used for the render process
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    renderBody : function(workingDate, html) {
++
++        var startDay = this.cfg.getProperty(DEF_CFG.START_WEEKDAY.key);
++
++        this.preMonthDays = workingDate.getDay();
++        if (startDay > 0) {
++            this.preMonthDays -= startDay;
++        }
++        if (this.preMonthDays < 0) {
++            this.preMonthDays += 7;
++        }
++
++        this.monthDays = DateMath.findMonthEnd(workingDate).getDate();
++        this.postMonthDays = Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
++
++
++        workingDate = DateMath.subtract(workingDate, DateMath.DAY, this.preMonthDays);
++    
++        var weekNum,
++            weekClass,
++            weekPrefix = "w",
++            cellPrefix = "_cell",
++            workingDayPrefix = "wd",
++            dayPrefix = "d",
++            cellRenderers,
++            renderer,
++            t = this.today,
++            cfg = this.cfg,
++            todayYear = t.getFullYear(),
++            todayMonth = t.getMonth(),
++            todayDate = t.getDate(),
++            useDate = cfg.getProperty(DEF_CFG.PAGEDATE.key),
++            hideBlankWeeks = cfg.getProperty(DEF_CFG.HIDE_BLANK_WEEKS.key),
++            showWeekFooter = cfg.getProperty(DEF_CFG.SHOW_WEEK_FOOTER.key),
++            showWeekHeader = cfg.getProperty(DEF_CFG.SHOW_WEEK_HEADER.key),
++            mindate = cfg.getProperty(DEF_CFG.MINDATE.key),
++            maxdate = cfg.getProperty(DEF_CFG.MAXDATE.key),
++            yearOffset = this.Locale.YEAR_OFFSET;
++
++        if (mindate) {
++            mindate = DateMath.clearTime(mindate);
++        }
++        if (maxdate) {
++            maxdate = DateMath.clearTime(maxdate);
++        }
++
++        html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">';
++
++        var i = 0,
++            tempDiv = document.createElement("div"),
++            cell = document.createElement("td");
++
++        tempDiv.appendChild(cell);
++
++        var cal = this.parent || this;
++
++        for (var r=0;r<6;r++) {
++            weekNum = DateMath.getWeekNumber(workingDate, startDay);
++            weekClass = weekPrefix + weekNum;
++
++            // Local OOM check for performance, since we already have pagedate
++            if (r !== 0 && hideBlankWeeks === true && workingDate.getMonth() != useDate.getMonth()) {
++                break;
++            } else {
++                html[html.length] = '<tr class="' + weekClass + '">';
++
++                if (showWeekHeader) { html = this.renderRowHeader(weekNum, html); }
++
++                for (var d=0; d < 7; d++){ // Render actual days
++
++                    cellRenderers = [];
++
++                    this.clearElement(cell);
++                    cell.className = this.Style.CSS_CELL;
++                    cell.id = this.id + cellPrefix + i;
++
++                    if (workingDate.getDate()  == todayDate && 
++                        workingDate.getMonth()  == todayMonth &&
++                        workingDate.getFullYear() == todayYear) {
++                        cellRenderers[cellRenderers.length]=cal.renderCellStyleToday;
++                    }
++
++                    var workingArray = [workingDate.getFullYear(),workingDate.getMonth()+1,workingDate.getDate()];
++                    this.cellDates[this.cellDates.length] = workingArray; // Add this date to cellDates
++
++                    // Local OOM check for performance, since we already have pagedate
++                    if (workingDate.getMonth() != useDate.getMonth()) {
++                        cellRenderers[cellRenderers.length]=cal.renderCellNotThisMonth;
++                    } else {
++                        Dom.addClass(cell, workingDayPrefix + workingDate.getDay());
++                        Dom.addClass(cell, dayPrefix + workingDate.getDate());
++
++                        for (var s=0;s<this.renderStack.length;++s) {
++
++                            renderer = null;
++
++                            var rArray = this.renderStack[s],
++                                type = rArray[0],
++                                month,
++                                day,
++                                year;
++
++                            switch (type) {
++                                case Calendar.DATE:
++                                    month = rArray[1][1];
++                                    day = rArray[1][2];
++                                    year = rArray[1][0];
++
++                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day && workingDate.getFullYear() == year) {
++                                        renderer = rArray[2];
++                                        this.renderStack.splice(s,1);
++                                    }
++                                    break;
++                                case Calendar.MONTH_DAY:
++                                    month = rArray[1][0];
++                                    day = rArray[1][1];
++
++                                    if (workingDate.getMonth()+1 == month && workingDate.getDate() == day) {
++                                        renderer = rArray[2];
++                                        this.renderStack.splice(s,1);
++                                    }
++                                    break;
++                                case Calendar.RANGE:
++                                    var date1 = rArray[1][0],
++                                        date2 = rArray[1][1],
++                                        d1month = date1[1],
++                                        d1day = date1[2],
++                                        d1year = date1[0],
++                                        d1 = DateMath.getDate(d1year, d1month-1, d1day),
++                                        d2month = date2[1],
++                                        d2day = date2[2],
++                                        d2year = date2[0],
++                                        d2 = DateMath.getDate(d2year, d2month-1, d2day);
++
++                                    if (workingDate.getTime() >= d1.getTime() && workingDate.getTime() <= d2.getTime()) {
++                                        renderer = rArray[2];
++
++                                        if (workingDate.getTime()==d2.getTime()) { 
++                                            this.renderStack.splice(s,1);
++                                        }
++                                    }
++                                    break;
++                                case Calendar.WEEKDAY:
++                                    var weekday = rArray[1][0];
++                                    if (workingDate.getDay()+1 == weekday) {
++                                        renderer = rArray[2];
++                                    }
++                                    break;
++                                case Calendar.MONTH:
++                                    month = rArray[1][0];
++                                    if (workingDate.getMonth()+1 == month) {
++                                        renderer = rArray[2];
++                                    }
++                                    break;
++                            }
++
++                            if (renderer) {
++                                cellRenderers[cellRenderers.length]=renderer;
++                            }
++                        }
++
++                    }
++
++                    if (this._indexOfSelectedFieldArray(workingArray) > -1) {
++                        cellRenderers[cellRenderers.length]=cal.renderCellStyleSelected; 
++                    }
++
++                    if ((mindate && (workingDate.getTime() < mindate.getTime())) ||
++                        (maxdate && (workingDate.getTime() > maxdate.getTime()))
++                    ) {
++                        cellRenderers[cellRenderers.length]=cal.renderOutOfBoundsDate;
++                    } else {
++                        cellRenderers[cellRenderers.length]=cal.styleCellDefault;
++                        cellRenderers[cellRenderers.length]=cal.renderCellDefault; 
++                    }
++
++                    for (var x=0; x < cellRenderers.length; ++x) {
++                        if (cellRenderers[x].call(cal, workingDate, cell) == Calendar.STOP_RENDER) {
++                            break;
++                        }
++                    }
++
++                    workingDate.setTime(workingDate.getTime() + DateMath.ONE_DAY_MS);
++                    // Just in case we crossed DST/Summertime boundaries
++                    workingDate = DateMath.clearTime(workingDate);
++
++                    if (i >= 0 && i <= 6) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_TOP);
++                    }
++                    if ((i % 7) === 0) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
++                    }
++                    if (((i+1) % 7) === 0) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_RIGHT);
++                    }
++
++                    var postDays = this.postMonthDays; 
++                    if (hideBlankWeeks && postDays >= 7) {
++                        var blankWeeks = Math.floor(postDays/7);
++                        for (var p=0;p<blankWeeks;++p) {
++                            postDays -= 7;
++                        }
++                    }
++                    
++                    if (i >= ((this.preMonthDays+postDays+this.monthDays)-7)) {
++                        Dom.addClass(cell, this.Style.CSS_CELL_BOTTOM);
++                    }
++    
++                    html[html.length] = tempDiv.innerHTML;
++                    i++;
++                }
++    
++                if (showWeekFooter) { html = this.renderRowFooter(weekNum, html); }
++    
++                html[html.length] = '</tr>';
++            }
++        }
++    
++        html[html.length] = '</tbody>';
++    
++        return html;
++    },
++    
++    /**
++    * Renders the calendar footer. In the default implementation, there is
++    * no footer.
++    * @method renderFooter
++    * @param {Array} html The current working HTML array
++    * @return {Array} The current working HTML array
++    */
++    renderFooter : function(html) { return html; },
++    
++    /**
++    * Renders the calendar after it has been configured. The render() method has a specific call chain that will execute
++    * when the method is called: renderHeader, renderBody, renderFooter.
++    * Refer to the documentation for those methods for information on 
++    * individual render tasks.
++    * @method render
++    */
++    render : function() {
++        this.beforeRenderEvent.fire();
++
++        // Find starting day of the current month
++        var workingDate = DateMath.findMonthStart(this.cfg.getProperty(DEF_CFG.PAGEDATE.key));
++
++        this.resetRenderers();
++        this.cellDates.length = 0;
++
++        Event.purgeElement(this.oDomContainer, true);
++
++        var html = [];
++
++        html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + (workingDate.getFullYear() + this.Locale.YEAR_OFFSET) +'" id="' + this.id + '">';
++        html = this.renderHeader(html);
++        html = this.renderBody(workingDate, html);
++        html = this.renderFooter(html);
++        html[html.length] = '</table>';
++
++        this.oDomContainer.innerHTML = html.join("\n");
++
++        this.applyListeners();
++        this.cells = Dom.getElementsByClassName(this.Style.CSS_CELL, "td", this.id);
++    
++        this.cfg.refireEvent(DEF_CFG.TITLE.key);
++        this.cfg.refireEvent(DEF_CFG.CLOSE.key);
++        this.cfg.refireEvent(DEF_CFG.IFRAME.key);
++
++        this.renderEvent.fire();
++    },
++
++    /**
++    * Applies the Calendar's DOM listeners to applicable elements.
++    * @method applyListeners
++    */
++    applyListeners : function() {
++        var root = this.oDomContainer,
++            cal = this.parent || this,
++            anchor = "a",
++            click = "click";
++
++        var linkLeft = Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root),
++            linkRight = Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor, root);
++
++        if (linkLeft && linkLeft.length > 0) {
++            this.linkLeft = linkLeft[0];
++            Event.addListener(this.linkLeft, click, this.doPreviousMonthNav, cal, true);
++        }
++
++        if (linkRight && linkRight.length > 0) {
++            this.linkRight = linkRight[0];
++            Event.addListener(this.linkRight, click, this.doNextMonthNav, cal, true);
++        }
++
++        if (cal.cfg.getProperty("navigator") !== null) {
++            this.applyNavListeners();
++        }
++
++        if (this.domEventMap) {
++            var el,elements;
++            for (var cls in this.domEventMap) { 
++                if (Lang.hasOwnProperty(this.domEventMap, cls)) {
++                    var items = this.domEventMap[cls];
++    
++                    if (! (items instanceof Array)) {
++                        items = [items];
++                    }
++    
++                    for (var i=0;i<items.length;i++) {
++                        var item = items[i];
++                        elements = Dom.getElementsByClassName(cls, item.tag, this.oDomContainer);
++    
++                        for (var c=0;c<elements.length;c++) {
++                            el = elements[c];
++                             Event.addListener(el, item.event, item.handler, item.scope, item.correct );
++                        }
++                    }
++                }
++            }
++        }
++
++        Event.addListener(this.oDomContainer, "click", this.doSelectCell, this);
++        Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this);
++        Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this);
++    },
++
++    applyNavListeners : function() {
++        var calParent = this.parent || this,
++            cal = this,
++            navBtns = Dom.getElementsByClassName(this.Style.CSS_NAV, "a", this.oDomContainer);
++
++        if (navBtns.length > 0) {
++
++            Event.addListener(navBtns, "click", function (e, obj) {
++                var target = Event.getTarget(e);
++                // this == navBtn
++                if (this === target || Dom.isAncestor(this, target)) {
++                    Event.preventDefault(e);
++                }
++                var navigator = calParent.oNavigator;
++                if (navigator) {
++                    var pgdate = cal.cfg.getProperty("pagedate");
++                    navigator.setYear(pgdate.getFullYear() + cal.Locale.YEAR_OFFSET);
++                    navigator.setMonth(pgdate.getMonth());
++                    navigator.show();
++                }
++            });
++        }
++    },
++
++    /**
++    * Retrieves the Date object for the specified Calendar cell
++    * @method getDateByCellId
++    * @param {String} id The id of the cell
++    * @return {Date} The Date object for the specified Calendar cell
++    */
++    getDateByCellId : function(id) {
++        var date = this.getDateFieldsByCellId(id);
++        return (date) ? DateMath.getDate(date[0],date[1]-1,date[2]) : null;
++    },
++    
++    /**
++    * Retrieves the Date object for the specified Calendar cell
++    * @method getDateFieldsByCellId
++    * @param {String} id The id of the cell
++    * @return {Array} The array of Date fields for the specified Calendar cell
++    */
++    getDateFieldsByCellId : function(id) {
++        id = this.getIndexFromId(id);
++        return (id > -1) ? this.cellDates[id] : null;
++    },
++
++    /**
++     * Find the Calendar's cell index for a given date.
++     * If the date is not found, the method returns -1.
++     * <p>
++     * The returned index can be used to lookup the cell HTMLElement  
++     * using the Calendar's cells array or passed to selectCell to select 
++     * cells by index. 
++     * </p>
++     *
++     * See <a href="#cells">cells</a>, <a href="#selectCell">selectCell</a>.
++     *
++     * @method getCellIndex
++     * @param {Date} date JavaScript Date object, for which to find a cell index.
++     * @return {Number} The index of the date in Calendars cellDates/cells arrays, or -1 if the date 
++     * is not on the curently rendered Calendar page.
++     */
++    getCellIndex : function(date) {
++        var idx = -1;
++        if (date) {
++            var m = date.getMonth(),
++                y = date.getFullYear(),
++                d = date.getDate(),
++                dates = this.cellDates;
++
++            for (var i = 0; i < dates.length; ++i) {
++                var cellDate = dates[i];
++                if (cellDate[0] === y && cellDate[1] === m+1 && cellDate[2] === d) {
++                    idx = i;
++                    break;
++                }
++            }
++        }
++        return idx;
++    },
++
++    /**
++     * Given the id used to mark each Calendar cell, this method
++     * extracts the index number from the id.
++     * 
++     * @param {String} strId The cell id
++     * @return {Number} The index of the cell, or -1 if id does not contain an index number
++     */
++    getIndexFromId : function(strId) {
++        var idx = -1,
++            li = strId.lastIndexOf("_cell");
++
++        if (li > -1) {
++            idx = parseInt(strId.substring(li + 5), 10);
++        }
++
++        return idx;
++    },
++    
++    // BEGIN BUILT-IN TABLE CELL RENDERERS
++    
++    /**
++    * Renders a cell that falls before the minimum date or after the maximum date.
++    * widget class.
++    * @method renderOutOfBoundsDate
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderOutOfBoundsDate : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_OOB);
++        cell.innerHTML = workingDate.getDate();
++        return Calendar.STOP_RENDER;
++    },
++
++    /**
++    * Renders the row header for a week.
++    * @method renderRowHeader
++    * @param {Number} weekNum The week number of the current row
++    * @param {Array} cell The current working HTML array
++    */
++    renderRowHeader : function(weekNum, html) {
++        html[html.length] = '<th class="' + this.Style.CSS_ROW_HEADER + '">' + weekNum + '</th>';
++        return html;
++    },
++
++    /**
++    * Renders the row footer for a week.
++    * @method renderRowFooter
++    * @param {Number} weekNum The week number of the current row
++    * @param {Array} cell The current working HTML array
++    */
++    renderRowFooter : function(weekNum, html) {
++        html[html.length] = '<th class="' + this.Style.CSS_ROW_FOOTER + '">' + weekNum + '</th>';
++        return html;
++    },
++    
++    /**
++    * Renders a single standard calendar cell in the calendar widget table.
++    * All logic for determining how a standard default cell will be rendered is 
++    * encapsulated in this method, and must be accounted for when extending the
++    * widget class.
++    * @method renderCellDefault
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellDefault : function(workingDate, cell) {
++        cell.innerHTML = '<a href="#" class="' + this.Style.CSS_CELL_SELECTOR + '">' + this.buildDayLabel(workingDate) + "</a>";
++    },
++    
++    /**
++    * Styles a selectable cell.
++    * @method styleCellDefault
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    styleCellDefault : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_SELECTABLE);
++    },
++    
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight1 style
++    * @method renderCellStyleHighlight1
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight1 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT1);
++    },
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight2 style
++    * @method renderCellStyleHighlight2
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight2 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT2);
++    },
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight3 style
++    * @method renderCellStyleHighlight3
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight3 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT3);
++    },
++    
++    /**
++    * Renders a single standard calendar cell using the CSS hightlight4 style
++    * @method renderCellStyleHighlight4
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleHighlight4 : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_HIGHLIGHT4);
++    },
++    
++    /**
++    * Applies the default style used for rendering today's date to the current calendar cell
++    * @method renderCellStyleToday
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    */
++    renderCellStyleToday : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_TODAY);
++    },
++
++    /**
++    * Applies the default style used for rendering selected dates to the current calendar cell
++    * @method renderCellStyleSelected
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderCellStyleSelected : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_SELECTED);
++    },
++    
++    /**
++    * Applies the default style used for rendering dates that are not a part of the current
++    * month (preceding or trailing the cells for the current month)
++    * @method renderCellNotThisMonth
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderCellNotThisMonth : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL_OOM);
++        cell.innerHTML=workingDate.getDate();
++        return Calendar.STOP_RENDER;
++    },
++    
++    /**
++    * Renders the current calendar cell as a non-selectable "black-out" date using the default
++    * restricted style.
++    * @method renderBodyCellRestricted
++    * @param {Date}     workingDate  The current working Date object being used to generate the calendar
++    * @param {HTMLTableCellElement} cell   The current working cell in the calendar
++    * @return {String} YAHOO.widget.Calendar.STOP_RENDER if rendering should stop with this style, null or nothing if rendering
++    *   should not be terminated
++    */
++    renderBodyCellRestricted : function(workingDate, cell) {
++        Dom.addClass(cell, this.Style.CSS_CELL);
++        Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
++        cell.innerHTML=workingDate.getDate();
++        return Calendar.STOP_RENDER;
++    },
++    
++    // END BUILT-IN TABLE CELL RENDERERS
++    
++    // BEGIN MONTH NAVIGATION METHODS
++
++    /**
++    * Adds the designated number of months to the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method addMonths
++    * @param {Number} count The number of months to add to the current calendar
++    */
++    addMonths : function(count) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++
++        prevDate = this.cfg.getProperty(cfgPageDate),
++        newDate = DateMath.add(prevDate, DateMath.MONTH, count);
++
++        this.cfg.setProperty(cfgPageDate, newDate);
++        this.resetRenderers();
++        this.changePageEvent.fire(prevDate, newDate);
++    },
++
++    /**
++    * Subtracts the designated number of months from the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method subtractMonths
++    * @param {Number} count The number of months to subtract from the current calendar
++    */
++    subtractMonths : function(count) {
++        this.addMonths(-1*count);
++    },
++
++    /**
++    * Adds the designated number of years to the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method addYears
++    * @param {Number} count The number of years to add to the current calendar
++    */
++    addYears : function(count) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++
++        prevDate = this.cfg.getProperty(cfgPageDate),
++        newDate = DateMath.add(prevDate, DateMath.YEAR, count);
++
++        this.cfg.setProperty(cfgPageDate, newDate);
++        this.resetRenderers();
++        this.changePageEvent.fire(prevDate, newDate);
++    },
++
++    /**
++    * Subtcats the designated number of years from the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method subtractYears
++    * @param {Number} count The number of years to subtract from the current calendar
++    */
++    subtractYears : function(count) {
++        this.addYears(-1*count);
++    },
++
++    /**
++    * Navigates to the next month page in the calendar widget.
++    * @method nextMonth
++    */
++    nextMonth : function() {
++        this.addMonths(1);
++    },
++    
++    /**
++    * Navigates to the previous month page in the calendar widget.
++    * @method previousMonth
++    */
++    previousMonth : function() {
++        this.addMonths(-1);
++    },
++    
++    /**
++    * Navigates to the next year in the currently selected month in the calendar widget.
++    * @method nextYear
++    */
++    nextYear : function() {
++        this.addYears(1);
++    },
++    
++    /**
++    * Navigates to the previous year in the currently selected month in the calendar widget.
++    * @method previousYear
++    */
++    previousYear : function() {
++        this.addYears(-1);
++    },
++
++    // END MONTH NAVIGATION METHODS
++    
++    // BEGIN SELECTION METHODS
++    
++    /**
++    * Resets the calendar widget to the originally selected month and year, and 
++    * sets the calendar to the initial selection(s).
++    * @method reset
++    */
++    reset : function() {
++        this.cfg.resetProperty(DEF_CFG.SELECTED.key);
++        this.cfg.resetProperty(DEF_CFG.PAGEDATE.key);
++        this.resetEvent.fire();
++    },
++    
++    /**
++    * Clears the selected dates in the current calendar widget and sets the calendar
++    * to the current month and year.
++    * @method clear
++    */
++    clear : function() {
++        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
++        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.today.getTime()));
++        this.clearEvent.fire();
++    },
++    
++    /**
++    * Selects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once selection has completed, render must be 
++    * called for the changes to be reflected visually.
++    *
++    * Any dates which are OOB (out of bounds, not selectable) will not be selected and the array of 
++    * selected dates passed to the selectEvent will not contain OOB dates.
++    * 
++    * If all dates are OOB, the no state change will occur; beforeSelect and select events will not be fired.
++    *
++    * @method select
++    * @param {String/Date/Date[]} date The date string of dates to select in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects.
++    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    select : function(date) {
++
++        var aToBeSelected = this._toFieldArray(date),
++            validDates = [],
++            selected = [],
++            cfgSelected = DEF_CFG.SELECTED.key;
++
++        
++        for (var a=0; a < aToBeSelected.length; ++a) {
++            var toSelect = aToBeSelected[a];
++
++            if (!this.isDateOOB(this._toDate(toSelect))) {
++
++                if (validDates.length === 0) {
++                    this.beforeSelectEvent.fire();
++                    selected = this.cfg.getProperty(cfgSelected);
++                }
++                validDates.push(toSelect);
++
++                if (this._indexOfSelectedFieldArray(toSelect) == -1) { 
++                    selected[selected.length] = toSelect;
++                }
++            }
++        }
++
++
++        if (validDates.length > 0) {
++            if (this.parent) {
++                this.parent.cfg.setProperty(cfgSelected, selected);
++            } else {
++                this.cfg.setProperty(cfgSelected, selected);
++            }
++            this.selectEvent.fire(validDates);
++        }
++
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Selects a date on the current calendar by referencing the index of the cell that should be selected.
++    * This method is used to easily select a single cell (usually with a mouse click) without having to do
++    * a full render. The selected style is applied to the cell directly.
++    *
++    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
++    * or out of bounds cells), it will not be selected and in such a case beforeSelect and select events will not be fired.
++    * 
++    * @method selectCell
++    * @param {Number} cellIndex The index of the cell to select in the current calendar. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    selectCell : function(cellIndex) {
++
++        var cell = this.cells[cellIndex],
++            cellDate = this.cellDates[cellIndex],
++            dCellDate = this._toDate(cellDate),
++            selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
++
++
++        if (selectable) {
++    
++            this.beforeSelectEvent.fire();
++    
++            var cfgSelected = DEF_CFG.SELECTED.key;
++            var selected = this.cfg.getProperty(cfgSelected);
++    
++            var selectDate = cellDate.concat();
++    
++            if (this._indexOfSelectedFieldArray(selectDate) == -1) {
++                selected[selected.length] = selectDate;
++            }
++            if (this.parent) {
++                this.parent.cfg.setProperty(cfgSelected, selected);
++            } else {
++                this.cfg.setProperty(cfgSelected, selected);
++            }
++            this.renderCellStyleSelected(dCellDate,cell);
++            this.selectEvent.fire([selectDate]);
++    
++            this.doCellMouseOut.call(cell, null, this);  
++        }
++    
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once deselection has completed, render must be 
++    * called for the changes to be reflected visually.
++    * 
++    * The method will not attempt to deselect any dates which are OOB (out of bounds, and hence not selectable) 
++    * and the array of deselected dates passed to the deselectEvent will not contain any OOB dates.
++    * 
++    * If all dates are OOB, beforeDeselect and deselect events will not be fired.
++    * 
++    * @method deselect
++    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects. 
++    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselect : function(date) {
++
++        var aToBeDeselected = this._toFieldArray(date),
++            validDates = [],
++            selected = [],
++            cfgSelected = DEF_CFG.SELECTED.key;
++
++
++        for (var a=0; a < aToBeDeselected.length; ++a) {
++            var toDeselect = aToBeDeselected[a];
++    
++            if (!this.isDateOOB(this._toDate(toDeselect))) {
++    
++                if (validDates.length === 0) {
++                    this.beforeDeselectEvent.fire();
++                    selected = this.cfg.getProperty(cfgSelected);
++                }
++    
++                validDates.push(toDeselect);
++    
++                var index = this._indexOfSelectedFieldArray(toDeselect);
++                if (index != -1) { 
++                    selected.splice(index,1);
++                }
++            }
++        }
++    
++    
++        if (validDates.length > 0) {
++            if (this.parent) {
++                this.parent.cfg.setProperty(cfgSelected, selected);
++            } else {
++                this.cfg.setProperty(cfgSelected, selected);
++            }
++            this.deselectEvent.fire(validDates);
++        }
++    
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects a date on the current calendar by referencing the index of the cell that should be deselected.
++    * This method is used to easily deselect a single cell (usually with a mouse click) without having to do
++    * a full render. The selected style is removed from the cell directly.
++    * 
++    * If the cell is not marked with the CSS_CELL_SELECTABLE class (as is the case by default for out of month 
++    * or out of bounds cells), the method will not attempt to deselect it and in such a case, beforeDeselect and 
++    * deselect events will not be fired.
++    * 
++    * @method deselectCell
++    * @param {Number} cellIndex The index of the cell to deselect in the current calendar. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselectCell : function(cellIndex) {
++        var cell = this.cells[cellIndex],
++            cellDate = this.cellDates[cellIndex],
++            cellDateIndex = this._indexOfSelectedFieldArray(cellDate);
++
++        var selectable = Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
++
++        if (selectable) {
++
++            this.beforeDeselectEvent.fire();
++
++            var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key),
++                dCellDate = this._toDate(cellDate),
++                selectDate = cellDate.concat();
++
++            if (cellDateIndex > -1) {
++                if (this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth() == dCellDate.getMonth() &&
++                    this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getFullYear() == dCellDate.getFullYear()) {
++                    Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
++                }
++                selected.splice(cellDateIndex, 1);
++            }
++
++            if (this.parent) {
++                this.parent.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
++            } else {
++                this.cfg.setProperty(DEF_CFG.SELECTED.key, selected);
++            }
++
++            this.deselectEvent.fire([selectDate]);
++        }
++
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Deselects all dates on the current calendar.
++    * @method deselectAll
++    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
++    *      Assuming that this function executes properly, the return value should be an empty array.
++    *      However, the empty array is returned for the sake of being able to check the selection status
++    *      of the calendar.
++    */
++    deselectAll : function() {
++        this.beforeDeselectEvent.fire();
++        
++        var cfgSelected = DEF_CFG.SELECTED.key,
++            selected = this.cfg.getProperty(cfgSelected),
++            count = selected.length,
++            sel = selected.concat();
++
++        if (this.parent) {
++            this.parent.cfg.setProperty(cfgSelected, []);
++        } else {
++            this.cfg.setProperty(cfgSelected, []);
++        }
++        
++        if (count > 0) {
++            this.deselectEvent.fire(sel);
++        }
++    
++        return this.getSelectedDates();
++    },
++    
++    // END SELECTION METHODS
++    
++    // BEGIN TYPE CONVERSION METHODS
++    
++    /**
++    * Converts a date (either a JavaScript Date object, or a date string) to the internal data structure
++    * used to represent dates: [[yyyy,mm,dd],[yyyy,mm,dd]].
++    * @method _toFieldArray
++    * @private
++    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects. 
++    * @return {Array[](Number[])} Array of date field arrays
++    */
++    _toFieldArray : function(date) {
++        var returnDate = [];
++    
++        if (date instanceof Date) {
++            returnDate = [[date.getFullYear(), date.getMonth()+1, date.getDate()]];
++        } else if (Lang.isString(date)) {
++            returnDate = this._parseDates(date);
++        } else if (Lang.isArray(date)) {
++            for (var i=0;i<date.length;++i) {
++                var d = date[i];
++                returnDate[returnDate.length] = [d.getFullYear(),d.getMonth()+1,d.getDate()];
++            }
++        }
++        
++        return returnDate;
++    },
++    
++    /**
++    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object. The date field array
++    * is the format in which dates are as provided as arguments to selectEvent and deselectEvent listeners.
++    * 
++    * @method toDate
++    * @param {Number[]} dateFieldArray The date field array to convert to a JavaScript Date.
++    * @return {Date} JavaScript Date object representing the date field array.
++    */
++    toDate : function(dateFieldArray) {
++        return this._toDate(dateFieldArray);
++    },
++    
++    /**
++    * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object.
++    * @method _toDate
++    * @private
++    * @deprecated Made public, toDate 
++    * @param {Number[]}  dateFieldArray The date field array to convert to a JavaScript Date.
++    * @return {Date} JavaScript Date object representing the date field array
++    */
++    _toDate : function(dateFieldArray) {
++        if (dateFieldArray instanceof Date) {
++            return dateFieldArray;
++        } else {
++            return DateMath.getDate(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);
++        }
++    },
++    
++    // END TYPE CONVERSION METHODS 
++    
++    // BEGIN UTILITY METHODS
++    
++    /**
++    * Determines if 2 field arrays are equal.
++    * @method _fieldArraysAreEqual
++    * @private
++    * @param {Number[]} array1 The first date field array to compare
++    * @param {Number[]} array2 The first date field array to compare
++    * @return {Boolean} The boolean that represents the equality of the two arrays
++    */
++    _fieldArraysAreEqual : function(array1, array2) {
++        var match = false;
++    
++        if (array1[0]==array2[0]&&array1[1]==array2[1]&&array1[2]==array2[2]) {
++            match=true; 
++        }
++    
++        return match;
++    },
++    
++    /**
++    * Gets the index of a date field array [yyyy,mm,dd] in the current list of selected dates.
++    * @method _indexOfSelectedFieldArray
++    * @private
++    * @param {Number[]}  find The date field array to search for
++    * @return {Number}   The index of the date field array within the collection of selected dates.
++    *        -1 will be returned if the date is not found.
++    */
++    _indexOfSelectedFieldArray : function(find) {
++        var selected = -1,
++            seldates = this.cfg.getProperty(DEF_CFG.SELECTED.key);
++    
++        for (var s=0;s<seldates.length;++s) {
++            var sArray = seldates[s];
++            if (find[0]==sArray[0]&&find[1]==sArray[1]&&find[2]==sArray[2]) {
++                selected = s;
++                break;
++            }
++        }
++    
++        return selected;
++    },
++    
++    /**
++    * Determines whether a given date is OOM (out of month).
++    * @method isDateOOM
++    * @param {Date} date The JavaScript Date object for which to check the OOM status
++    * @return {Boolean} true if the date is OOM
++    */
++    isDateOOM : function(date) {
++        return (date.getMonth() != this.cfg.getProperty(DEF_CFG.PAGEDATE.key).getMonth());
++    },
++    
++    /**
++    * Determines whether a given date is OOB (out of bounds - less than the mindate or more than the maxdate).
++    *
++    * @method isDateOOB
++    * @param {Date} date The JavaScript Date object for which to check the OOB status
++    * @return {Boolean} true if the date is OOB
++    */
++    isDateOOB : function(date) {
++        var minDate = this.cfg.getProperty(DEF_CFG.MINDATE.key),
++            maxDate = this.cfg.getProperty(DEF_CFG.MAXDATE.key),
++            dm = DateMath;
++        
++        if (minDate) {
++            minDate = dm.clearTime(minDate);
++        } 
++        if (maxDate) {
++            maxDate = dm.clearTime(maxDate);
++        }
++    
++        var clearedDate = new Date(date.getTime());
++        clearedDate = dm.clearTime(clearedDate);
++    
++        return ((minDate && clearedDate.getTime() < minDate.getTime()) || (maxDate && clearedDate.getTime() > maxDate.getTime()));
++    },
++    
++    /**
++     * Parses a pagedate configuration property value. The value can either be specified as a string of form "mm/yyyy" or a Date object 
++     * and is parsed into a Date object normalized to the first day of the month. If no value is passed in, the month and year from today's date are used to create the Date object 
++     * @method _parsePageDate
++     * @private
++     * @param {Date|String} date Pagedate value which needs to be parsed
++     * @return {Date} The Date object representing the pagedate
++     */
++    _parsePageDate : function(date) {
++        var parsedDate;
++
++        if (date) {
++            if (date instanceof Date) {
++                parsedDate = DateMath.findMonthStart(date);
++            } else {
++                var month, year, aMonthYear;
++                aMonthYear = date.split(this.cfg.getProperty(DEF_CFG.DATE_FIELD_DELIMITER.key));
++                month = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_MONTH_POSITION.key)-1], 10)-1;
++                year = parseInt(aMonthYear[this.cfg.getProperty(DEF_CFG.MY_YEAR_POSITION.key)-1], 10) - this.Locale.YEAR_OFFSET;
++
++                parsedDate = DateMath.getDate(year, month, 1);
++            }
++        } else {
++            parsedDate = DateMath.getDate(this.today.getFullYear(), this.today.getMonth(), 1);
++        }
++        return parsedDate;
++    },
++    
++    // END UTILITY METHODS
++    
++    // BEGIN EVENT HANDLERS
++    
++    /**
++    * Event executed before a date is selected in the calendar widget.
++    * @deprecated Event handlers for this event should be susbcribed to beforeSelectEvent.
++    */
++    onBeforeSelect : function() {
++        if (this.cfg.getProperty(DEF_CFG.MULTI_SELECT.key) === false) {
++            if (this.parent) {
++                this.parent.callChildFunction("clearAllBodyCellStyles", this.Style.CSS_CELL_SELECTED);
++                this.parent.deselectAll();
++            } else {
++                this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED);
++                this.deselectAll();
++            }
++        }
++    },
++    
++    /**
++    * Event executed when a date is selected in the calendar widget.
++    * @param {Array} selected An array of date field arrays representing which date or dates were selected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
++    * @deprecated Event handlers for this event should be susbcribed to selectEvent.
++    */
++    onSelect : function(selected) { },
++    
++    /**
++    * Event executed before a date is deselected in the calendar widget.
++    * @deprecated Event handlers for this event should be susbcribed to beforeDeselectEvent.
++    */
++    onBeforeDeselect : function() { },
++    
++    /**
++    * Event executed when a date is deselected in the calendar widget.
++    * @param {Array} selected An array of date field arrays representing which date or dates were deselected. Example: [ [2006,8,6],[2006,8,7],[2006,8,8] ]
++    * @deprecated Event handlers for this event should be susbcribed to deselectEvent.
++    */
++    onDeselect : function(deselected) { },
++    
++    /**
++    * Event executed when the user navigates to a different calendar page.
++    * @deprecated Event handlers for this event should be susbcribed to changePageEvent.
++    */
++    onChangePage : function() {
++        this.render();
++    },
++
++    /**
++    * Event executed when the calendar widget is rendered.
++    * @deprecated Event handlers for this event should be susbcribed to renderEvent.
++    */
++    onRender : function() { },
++
++    /**
++    * Event executed when the calendar widget is reset to its original state.
++    * @deprecated Event handlers for this event should be susbcribed to resetEvemt.
++    */
++    onReset : function() { this.render(); },
++
++    /**
++    * Event executed when the calendar widget is completely cleared to the current month with no selections.
++    * @deprecated Event handlers for this event should be susbcribed to clearEvent.
++    */
++    onClear : function() { this.render(); },
++    
++    /**
++    * Validates the calendar widget. This method has no default implementation
++    * and must be extended by subclassing the widget.
++    * @return Should return true if the widget validates, and false if
++    * it doesn't.
++    * @type Boolean
++    */
++    validate : function() { return true; },
++    
++    // END EVENT HANDLERS
++    
++    // BEGIN DATE PARSE METHODS
++    
++    /**
++    * Converts a date string to a date field array
++    * @private
++    * @param {String} sDate   Date string. Valid formats are mm/dd and mm/dd/yyyy.
++    * @return    A date field array representing the string passed to the method
++    * @type Array[](Number[])
++    */
++    _parseDate : function(sDate) {
++        var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
++            rArray;
++
++        if (aDate.length == 2) {
++            rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
++            rArray.type = Calendar.MONTH_DAY;
++        } else {
++            rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1] - this.Locale.YEAR_OFFSET, aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
++            rArray.type = Calendar.DATE;
++        }
++
++        for (var i=0;i<rArray.length;i++) {
++            rArray[i] = parseInt(rArray[i], 10);
++        }
++    
++        return rArray;
++    },
++    
++    /**
++    * Converts a multi or single-date string to an array of date field arrays
++    * @private
++    * @param {String} sDates  Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy
++    * @return       An array of date field arrays
++    * @type Array[](Number[])
++    */
++    _parseDates : function(sDates) {
++        var aReturn = [],
++            aDates = sDates.split(this.Locale.DATE_DELIMITER);
++        
++        for (var d=0;d<aDates.length;++d) {
++            var sDate = aDates[d];
++    
++            if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
++                // This is a range
++                var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER),
++                    dateStart = this._parseDate(aRange[0]),
++                    dateEnd = this._parseDate(aRange[1]),
++                    fullRange = this._parseRange(dateStart, dateEnd);
++
++                aReturn = aReturn.concat(fullRange);
++            } else {
++                // This is not a range
++                var aDate = this._parseDate(sDate);
++                aReturn.push(aDate);
++            }
++        }
++        return aReturn;
++    },
++    
++    /**
++    * Converts a date range to the full list of included dates
++    * @private
++    * @param {Number[]} startDate Date field array representing the first date in the range
++    * @param {Number[]} endDate  Date field array representing the last date in the range
++    * @return       An array of date field arrays
++    * @type Array[](Number[])
++    */
++    _parseRange : function(startDate, endDate) {
++        var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
++            dEnd     = DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]),
++            results = [];
++
++        results.push(startDate);
++        while (dCurrent.getTime() <= dEnd.getTime()) {
++            results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
++            dCurrent = DateMath.add(dCurrent,DateMath.DAY,1);
++        }
++        return results;
++    },
++    
++    // END DATE PARSE METHODS
++    
++    // BEGIN RENDERER METHODS
++    
++    /**
++    * Resets the render stack of the current calendar to its original pre-render value.
++    */
++    resetRenderers : function() {
++        this.renderStack = this._renderStack.concat();
++    },
++    
++    /**
++     * Removes all custom renderers added to the Calendar through the addRenderer, addMonthRenderer and 
++     * addWeekdayRenderer methods. Calendar's render method needs to be called after removing renderers 
++     * to re-render the Calendar without custom renderers applied.
++     */
++    removeRenderers : function() {
++        this._renderStack = [];
++        this.renderStack = [];
++    },
++
++    /**
++    * Clears the inner HTML, CSS class and style information from the specified cell.
++    * @method clearElement
++    * @param {HTMLTableCellElement} cell The cell to clear
++    */ 
++    clearElement : function(cell) {
++        cell.innerHTML = "&#160;";
++        cell.className="";
++    },
++    
++    /**
++    * Adds a renderer to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the conditions specified in the date string for this renderer.
++    * @method addRenderer
++    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
++    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addRenderer : function(sDates, fnRender) {
++        var aDates = this._parseDates(sDates);
++        for (var i=0;i<aDates.length;++i) {
++            var aDate = aDates[i];
++        
++            if (aDate.length == 2) { // this is either a range or a month/day combo
++                if (aDate[0] instanceof Array) { // this is a range
++                    this._addRenderer(Calendar.RANGE,aDate,fnRender);
++                } else { // this is a month/day combo
++                    this._addRenderer(Calendar.MONTH_DAY,aDate,fnRender);
++                }
++            } else if (aDate.length == 3) {
++                this._addRenderer(Calendar.DATE,aDate,fnRender);
++            }
++        }
++    },
++    
++    /**
++    * The private method used for adding cell renderers to the local render stack.
++    * This method is called by other methods that set the renderer type prior to the method call.
++    * @method _addRenderer
++    * @private
++    * @param {String} type  The type string that indicates the type of date renderer being added.
++    *         Values are YAHOO.widget.Calendar.DATE, YAHOO.widget.Calendar.MONTH_DAY, YAHOO.widget.Calendar.WEEKDAY,
++    *         YAHOO.widget.Calendar.RANGE, YAHOO.widget.Calendar.MONTH
++    * @param {Array}  aDates  An array of dates used to construct the renderer. The format varies based
++    *         on the renderer type
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    _addRenderer : function(type, aDates, fnRender) {
++        var add = [type,aDates,fnRender];
++        this.renderStack.unshift(add); 
++        this._renderStack = this.renderStack.concat();
++    },
++
++    /**
++    * Adds a month to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the month passed to this method.
++    * @method addMonthRenderer
++    * @param {Number} month  The month (1-12) to associate with this renderer
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addMonthRenderer : function(month, fnRender) {
++        this._addRenderer(Calendar.MONTH,[month],fnRender);
++    },
++
++    /**
++    * Adds a weekday to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the weekday passed to this method.
++    * @method addWeekdayRenderer
++    * @param {Number} weekday  The weekday (Sunday = 1, Monday = 2 ... Saturday = 7) to associate with this renderer
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addWeekdayRenderer : function(weekday, fnRender) {
++        this._addRenderer(Calendar.WEEKDAY,[weekday],fnRender);
++    },
++
++    // END RENDERER METHODS
++    
++    // BEGIN CSS METHODS
++    
++    /**
++    * Removes all styles from all body cells in the current calendar table.
++    * @method clearAllBodyCellStyles
++    * @param {style} style The CSS class name to remove from all calendar body cells
++    */
++    clearAllBodyCellStyles : function(style) {
++        for (var c=0;c<this.cells.length;++c) {
++            Dom.removeClass(this.cells[c],style);
++        }
++    },
++    
++    // END CSS METHODS
++    
++    // BEGIN GETTER/SETTER METHODS
++    /**
++    * Sets the calendar's month explicitly
++    * @method setMonth
++    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
++    */
++    setMonth : function(month) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++            current = this.cfg.getProperty(cfgPageDate);
++        current.setMonth(parseInt(month, 10));
++        this.cfg.setProperty(cfgPageDate, current);
++    },
++
++    /**
++    * Sets the calendar's year explicitly.
++    * @method setYear
++    * @param {Number} year  The numeric 4-digit year
++    */
++    setYear : function(year) {
++        var cfgPageDate = DEF_CFG.PAGEDATE.key,
++            current = this.cfg.getProperty(cfgPageDate);
++
++        current.setFullYear(parseInt(year, 10) - this.Locale.YEAR_OFFSET);
++        this.cfg.setProperty(cfgPageDate, current);
++    },
++
++    /**
++    * Gets the list of currently selected dates from the calendar.
++    * @method getSelectedDates
++    * @return {Date[]} An array of currently selected JavaScript Date objects.
++    */
++    getSelectedDates : function() {
++        var returnDates = [],
++            selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
++
++        for (var d=0;d<selected.length;++d) {
++            var dateArray = selected[d];
++
++            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
++            returnDates.push(date);
++        }
++
++        returnDates.sort( function(a,b) { return a-b; } );
++        return returnDates;
++    },
++
++    /// END GETTER/SETTER METHODS ///
++    
++    /**
++    * Hides the Calendar's outer container from view.
++    * @method hide
++    */
++    hide : function() {
++        if (this.beforeHideEvent.fire()) {
++            this.oDomContainer.style.display = "none";
++            this.hideEvent.fire();
++        }
++    },
++
++    /**
++    * Shows the Calendar's outer container.
++    * @method show
++    */
++    show : function() {
++        if (this.beforeShowEvent.fire()) {
++            this.oDomContainer.style.display = "block";
++            this.showEvent.fire();
++        }
++    },
++
++    /**
++    * Returns a string representing the current browser.
++    * @deprecated As of 2.3.0, environment information is available in YAHOO.env.ua
++    * @see YAHOO.env.ua
++    * @property browser
++    * @type String
++    */
++    browser : (function() {
++                var ua = navigator.userAgent.toLowerCase();
++                      if (ua.indexOf('opera')!=-1) { // Opera (check first in case of spoof)
++                         return 'opera';
++                      } else if (ua.indexOf('msie 7')!=-1) { // IE7
++                         return 'ie7';
++                      } else if (ua.indexOf('msie') !=-1) { // IE
++                         return 'ie';
++                      } else if (ua.indexOf('safari')!=-1) { // Safari (check before Gecko because it includes "like Gecko")
++                         return 'safari';
++                      } else if (ua.indexOf('gecko') != -1) { // Gecko
++                         return 'gecko';
++                      } else {
++                         return false;
++                      }
++                })(),
++    /**
++    * Returns a string representation of the object.
++    * @method toString
++    * @return {String} A string representation of the Calendar object.
++    */
++    toString : function() {
++        return "Calendar " + this.id;
++    },
++
++    /**
++     * Destroys the Calendar instance. The method will remove references
++     * to HTML elements, remove any event listeners added by the Calendar,
++     * and destroy the Config and CalendarNavigator instances it has created.
++     *
++     * @method destroy
++     */
++    destroy : function() {
++
++        if (this.beforeDestroyEvent.fire()) {
++            var cal = this;
++
++            // Child objects
++            if (cal.navigator) {
++                cal.navigator.destroy();
++            }
++
++            if (cal.cfg) {
++                cal.cfg.destroy();
++            }
++
++            // DOM event listeners
++            Event.purgeElement(cal.oDomContainer, true);
++
++            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
++            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_WITH_TITLE);
++            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_CONTAINER);
++            Dom.removeClass(cal.oDomContainer, cal.Style.CSS_SINGLE);
++            cal.oDomContainer.innerHTML = "";
++
++            // JS-to-DOM references
++            cal.oDomContainer = null;
++            cal.cells = null;
++
++            this.destroyEvent.fire();
++        }
++    }
++};
++
++YAHOO.widget.Calendar = Calendar;
++
++/**
++* @namespace YAHOO.widget
++* @class Calendar_Core
++* @extends YAHOO.widget.Calendar
++* @deprecated The old Calendar_Core class is no longer necessary.
++*/
++YAHOO.widget.Calendar_Core = YAHOO.widget.Calendar;
++
++YAHOO.widget.Cal_Core = YAHOO.widget.Calendar;
++
++})();
++(function() {
++
++    var Dom = YAHOO.util.Dom,
++        DateMath = YAHOO.widget.DateMath,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        Calendar = YAHOO.widget.Calendar;
++
++/**
++* YAHOO.widget.CalendarGroup is a special container class for YAHOO.widget.Calendar. This class facilitates
++* the ability to have multi-page calendar views that share a single dataset and are
++* dependent on each other.
++*
++* The calendar group instance will refer to each of its elements using a 0-based index.
++* For example, to construct the placeholder for a calendar group widget with id "cal1" and
++* containerId of "cal1Container", the markup would be as follows:
++*   <xmp>
++*       <div id="cal1Container_0"></div>
++*       <div id="cal1Container_1"></div>
++*   </xmp>
++* The tables for the calendars ("cal1_0" and "cal1_1") will be inserted into those containers.
++*
++* <p>
++* <strong>NOTE: As of 2.4.0, the constructor's ID argument is optional.</strong>
++* The CalendarGroup can be constructed by simply providing a container ID string, 
++* or a reference to a container DIV HTMLElement (the element needs to exist 
++* in the document).
++* 
++* E.g.:
++*   <xmp>
++*       var c = new YAHOO.widget.CalendarGroup("calContainer", configOptions);
++*   </xmp>
++* or:
++*   <xmp>
++*       var containerDiv = YAHOO.util.Dom.get("calContainer");
++*       var c = new YAHOO.widget.CalendarGroup(containerDiv, configOptions);
++*   </xmp>
++* </p>
++* <p>
++* If not provided, the ID will be generated from the container DIV ID by adding an "_t" suffix.
++* For example if an ID is not provided, and the container's ID is "calContainer", the CalendarGroup's ID will be set to "calContainer_t".
++* </p>
++* 
++* @namespace YAHOO.widget
++* @class CalendarGroup
++* @constructor
++* @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
++* @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
++* @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
++*/
++function CalendarGroup(id, containerId, config) {
++    if (arguments.length > 0) {
++        this.init.apply(this, arguments);
++    }
++}
++
++/**
++* The set of default Config property keys and values for the CalendarGroup.
++* 
++* <p>
++* NOTE: This property is made public in order to allow users to change 
++* the default values of configuration properties. Users should not 
++* modify the key string, unless they are overriding the Calendar implementation
++* </p>
++*
++* @property YAHOO.widget.CalendarGroup.DEFAULT_CONFIG
++* @static
++* @type Object An object with key/value pairs, the key being the 
++* uppercase configuration property name and the value being an objec 
++* literal with a key string property, and a value property, specifying the 
++* default value of the property 
++*/
++
++/**
++* The set of default Config property keys and values for the CalendarGroup
++* @property YAHOO.widget.CalendarGroup._DEFAULT_CONFIG
++* @deprecated Made public. See the public DEFAULT_CONFIG property for details
++* @private
++* @static
++* @type Object
++*/
++CalendarGroup.DEFAULT_CONFIG = CalendarGroup._DEFAULT_CONFIG = Calendar.DEFAULT_CONFIG;
++CalendarGroup.DEFAULT_CONFIG.PAGES = {key:"pages", value:2};
++
++var DEF_CFG = CalendarGroup.DEFAULT_CONFIG;
++
++CalendarGroup.prototype = {
++
++    /**
++    * Initializes the calendar group. All subclasses must call this method in order for the
++    * group to be initialized properly.
++    * @method init
++    * @param {String} id optional The id of the table element that will represent the CalendarGroup widget. As of 2.4.0, this argument is optional.
++    * @param {String | HTMLElement} container The id of the container div element that will wrap the CalendarGroup table, or a reference to a DIV element which exists in the document.
++    * @param {Object} config optional The configuration object containing the initial configuration values for the CalendarGroup.
++    */
++    init : function(id, container, config) {
++
++        // Normalize 2.4.0, pre 2.4.0 args
++        var nArgs = this._parseArgs(arguments);
++
++        id = nArgs.id;
++        container = nArgs.container;
++        config = nArgs.config;
++
++        this.oDomContainer = Dom.get(container);
++
++        if (!this.oDomContainer.id) {
++            this.oDomContainer.id = Dom.generateId();
++        }
++        if (!id) {
++            id = this.oDomContainer.id + "_t";
++        }
++
++        /**
++        * The unique id associated with the CalendarGroup
++        * @property id
++        * @type String
++        */
++        this.id = id;
++
++        /**
++        * The unique id associated with the CalendarGroup container
++        * @property containerId
++        * @type String
++        */
++        this.containerId = this.oDomContainer.id;
++
++        this.initEvents();
++        this.initStyles();
++
++        /**
++        * The collection of Calendar pages contained within the CalendarGroup
++        * @property pages
++        * @type YAHOO.widget.Calendar[]
++        */
++        this.pages = [];
++
++        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_CONTAINER);
++        Dom.addClass(this.oDomContainer, CalendarGroup.CSS_MULTI_UP);
++
++        /**
++        * The Config object used to hold the configuration variables for the CalendarGroup
++        * @property cfg
++        * @type YAHOO.util.Config
++        */
++        this.cfg = new YAHOO.util.Config(this);
++
++        /**
++        * The local object which contains the CalendarGroup's options
++        * @property Options
++        * @type Object
++        */
++        this.Options = {};
++
++        /**
++        * The local object which contains the CalendarGroup's locale settings
++        * @property Locale
++        * @type Object
++        */
++        this.Locale = {};
++
++        this.setupConfig();
++
++        if (config) {
++            this.cfg.applyConfig(config, true);
++        }
++
++        this.cfg.fireQueue();
++
++        // OPERA HACK FOR MISWRAPPED FLOATS
++        if (YAHOO.env.ua.opera){
++            this.renderEvent.subscribe(this._fixWidth, this, true);
++            this.showEvent.subscribe(this._fixWidth, this, true);
++        }
++
++    },
++
++    setupConfig : function() {
++
++        var cfg = this.cfg;
++
++        /**
++        * The number of pages to include in the CalendarGroup. This value can only be set once, in the CalendarGroup's constructor arguments.
++        * @config pages
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.PAGES.key, { value:DEF_CFG.PAGES.value, validator:cfg.checkNumber, handler:this.configPages } );
++
++        /**
++        * The positive or negative year offset from the Gregorian calendar year (assuming a January 1st rollover) to 
++        * be used when displaying or parsing dates.  NOTE: All JS Date objects returned by methods, or expected as input by
++        * methods will always represent the Gregorian year, in order to maintain date/month/week values.
++        *
++        * @config year_offset
++        * @type Number
++        * @default 0
++        */
++        cfg.addProperty(DEF_CFG.YEAR_OFFSET.key, { value:DEF_CFG.YEAR_OFFSET.value, handler: this.delegateConfig, supercedes:DEF_CFG.YEAR_OFFSET.supercedes, suppressEvent:true } );
++
++        /**
++        * The date to use to represent "Today".
++        *
++        * @config today
++        * @type Date
++        * @default Today's date
++        */
++        cfg.addProperty(DEF_CFG.TODAY.key, { value: new Date(DEF_CFG.TODAY.value.getTime()), supercedes:DEF_CFG.TODAY.supercedes, handler: this.configToday, suppressEvent:false } );
++
++        /**
++        * The month/year representing the current visible Calendar date (mm/yyyy)
++        * @config pagedate
++        * @type String | Date
++        * @default Today's date
++        */
++        cfg.addProperty(DEF_CFG.PAGEDATE.key, { value: DEF_CFG.PAGEDATE.value || new Date(DEF_CFG.TODAY.value.getTime()), handler:this.configPageDate } );
++
++        /**
++        * The date or range of dates representing the current Calendar selection
++        *
++        * @config selected
++        * @type String
++        * @default []
++        */
++        cfg.addProperty(DEF_CFG.SELECTED.key, { value:[], handler:this.configSelected } );
++
++        /**
++        * The title to display above the CalendarGroup's month header
++        * @config title
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.TITLE.key, { value:DEF_CFG.TITLE.value, handler:this.configTitle } );
++
++        /**
++        * Whether or not a close button should be displayed for this CalendarGroup
++        * @config close
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.CLOSE.key, { value:DEF_CFG.CLOSE.value, handler:this.configClose } );
++
++        /**
++        * Whether or not an iframe shim should be placed under the Calendar to prevent select boxes from bleeding through in Internet Explorer 6 and below.
++        * This property is enabled by default for IE6 and below. It is disabled by default for other browsers for performance reasons, but can be 
++        * enabled if required.
++        * 
++        * @config iframe
++        * @type Boolean
++        * @default true for IE6 and below, false for all other browsers
++        */
++        cfg.addProperty(DEF_CFG.IFRAME.key, { value:DEF_CFG.IFRAME.value, handler:this.configIframe, validator:cfg.checkBoolean } );
++
++        /**
++        * The minimum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config mindate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MINDATE.key, { value:DEF_CFG.MINDATE.value, handler:this.delegateConfig } );
++
++        /**
++        * The maximum selectable date in the current Calendar (mm/dd/yyyy)
++        * @config maxdate
++        * @type String | Date
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.MAXDATE.key, { value:DEF_CFG.MAXDATE.value, handler:this.delegateConfig  } );
++
++        // Options properties
++
++        /**
++        * True if the Calendar should allow multiple selections. False by default.
++        * @config MULTI_SELECT
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.MULTI_SELECT.key, { value:DEF_CFG.MULTI_SELECT.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++
++        /**
++        * The weekday the week begins on. Default is 0 (Sunday).
++        * @config START_WEEKDAY
++        * @type number
++        * @default 0
++        */ 
++        cfg.addProperty(DEF_CFG.START_WEEKDAY.key, { value:DEF_CFG.START_WEEKDAY.value, handler:this.delegateConfig, validator:cfg.checkNumber  } );
++        
++        /**
++        * True if the Calendar should show weekday labels. True by default.
++        * @config SHOW_WEEKDAYS
++        * @type Boolean
++        * @default true
++        */ 
++        cfg.addProperty(DEF_CFG.SHOW_WEEKDAYS.key, { value:DEF_CFG.SHOW_WEEKDAYS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * True if the Calendar should show week row headers. False by default.
++        * @config SHOW_WEEK_HEADER
++        * @type Boolean
++        * @default false
++        */ 
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_HEADER.key,{ value:DEF_CFG.SHOW_WEEK_HEADER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * True if the Calendar should show week row footers. False by default.
++        * @config SHOW_WEEK_FOOTER
++        * @type Boolean
++        * @default false
++        */
++        cfg.addProperty(DEF_CFG.SHOW_WEEK_FOOTER.key,{ value:DEF_CFG.SHOW_WEEK_FOOTER.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * True if the Calendar should suppress weeks that are not a part of the current month. False by default.
++        * @config HIDE_BLANK_WEEKS
++        * @type Boolean
++        * @default false
++        */  
++        cfg.addProperty(DEF_CFG.HIDE_BLANK_WEEKS.key,{ value:DEF_CFG.HIDE_BLANK_WEEKS.value, handler:this.delegateConfig, validator:cfg.checkBoolean } );
++        
++        /**
++        * The image that should be used for the left navigation arrow.
++        * @config NAV_ARROW_LEFT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the left arrow - "calnavleft"
++        * @default null
++        */  
++        cfg.addProperty(DEF_CFG.NAV_ARROW_LEFT.key, { value:DEF_CFG.NAV_ARROW_LEFT.value, handler:this.delegateConfig } );
++        
++        /**
++        * The image that should be used for the right navigation arrow.
++        * @config NAV_ARROW_RIGHT
++        * @type String
++        * @deprecated You can customize the image by overriding the default CSS class for the right arrow - "calnavright"
++        * @default null
++        */  
++        cfg.addProperty(DEF_CFG.NAV_ARROW_RIGHT.key, { value:DEF_CFG.NAV_ARROW_RIGHT.value, handler:this.delegateConfig } );
++    
++        // Locale properties
++        
++        /**
++        * The short month labels for the current locale.
++        * @config MONTHS_SHORT
++        * @type String[]
++        * @default ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
++        */
++        cfg.addProperty(DEF_CFG.MONTHS_SHORT.key, { value:DEF_CFG.MONTHS_SHORT.value, handler:this.delegateConfig } );
++        
++        /**
++        * The long month labels for the current locale.
++        * @config MONTHS_LONG
++        * @type String[]
++        * @default ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
++        */  
++        cfg.addProperty(DEF_CFG.MONTHS_LONG.key,  { value:DEF_CFG.MONTHS_LONG.value, handler:this.delegateConfig } );
++        
++        /**
++        * The 1-character weekday labels for the current locale.
++        * @config WEEKDAYS_1CHAR
++        * @type String[]
++        * @default ["S", "M", "T", "W", "T", "F", "S"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_1CHAR.key, { value:DEF_CFG.WEEKDAYS_1CHAR.value, handler:this.delegateConfig } );
++        
++        /**
++        * The short weekday labels for the current locale.
++        * @config WEEKDAYS_SHORT
++        * @type String[]
++        * @default ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_SHORT.key, { value:DEF_CFG.WEEKDAYS_SHORT.value, handler:this.delegateConfig } );
++        
++        /**
++        * The medium weekday labels for the current locale.
++        * @config WEEKDAYS_MEDIUM
++        * @type String[]
++        * @default ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_MEDIUM.key, { value:DEF_CFG.WEEKDAYS_MEDIUM.value, handler:this.delegateConfig } );
++        
++        /**
++        * The long weekday labels for the current locale.
++        * @config WEEKDAYS_LONG
++        * @type String[]
++        * @default ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
++        */  
++        cfg.addProperty(DEF_CFG.WEEKDAYS_LONG.key, { value:DEF_CFG.WEEKDAYS_LONG.value, handler:this.delegateConfig } );
++    
++        /**
++        * The setting that determines which length of month labels should be used. Possible values are "short" and "long".
++        * @config LOCALE_MONTHS
++        * @type String
++        * @default "long"
++        */
++        cfg.addProperty(DEF_CFG.LOCALE_MONTHS.key, { value:DEF_CFG.LOCALE_MONTHS.value, handler:this.delegateConfig } );
++    
++        /**
++        * The setting that determines which length of weekday labels should be used. Possible values are "1char", "short", "medium", and "long".
++        * @config LOCALE_WEEKDAYS
++        * @type String
++        * @default "short"
++        */ 
++        cfg.addProperty(DEF_CFG.LOCALE_WEEKDAYS.key, { value:DEF_CFG.LOCALE_WEEKDAYS.value, handler:this.delegateConfig } );
++    
++        /**
++        * The value used to delimit individual dates in a date string passed to various Calendar functions.
++        * @config DATE_DELIMITER
++        * @type String
++        * @default ","
++        */
++        cfg.addProperty(DEF_CFG.DATE_DELIMITER.key,  { value:DEF_CFG.DATE_DELIMITER.value, handler:this.delegateConfig } );
++    
++        /**
++        * The value used to delimit date fields in a date string passed to various Calendar functions.
++        * @config DATE_FIELD_DELIMITER
++        * @type String
++        * @default "/"
++        */ 
++        cfg.addProperty(DEF_CFG.DATE_FIELD_DELIMITER.key,{ value:DEF_CFG.DATE_FIELD_DELIMITER.value, handler:this.delegateConfig } );
++    
++        /**
++        * The value used to delimit date ranges in a date string passed to various Calendar functions.
++        * @config DATE_RANGE_DELIMITER
++        * @type String
++        * @default "-"
++        */
++        cfg.addProperty(DEF_CFG.DATE_RANGE_DELIMITER.key,{ value:DEF_CFG.DATE_RANGE_DELIMITER.value, handler:this.delegateConfig } );
++    
++        /**
++        * The position of the month in a month/year date string
++        * @config MY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_MONTH_POSITION.key, { value:DEF_CFG.MY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the year in a month/year date string
++        * @config MY_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */ 
++        cfg.addProperty(DEF_CFG.MY_YEAR_POSITION.key, { value:DEF_CFG.MY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the month in a month/day date string
++        * @config MD_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */ 
++        cfg.addProperty(DEF_CFG.MD_MONTH_POSITION.key, { value:DEF_CFG.MD_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the day in a month/year date string
++        * @config MD_DAY_POSITION
++        * @type Number
++        * @default 2
++        */ 
++        cfg.addProperty(DEF_CFG.MD_DAY_POSITION.key,  { value:DEF_CFG.MD_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the month in a month/day/year date string
++        * @config MDY_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */ 
++        cfg.addProperty(DEF_CFG.MDY_MONTH_POSITION.key, { value:DEF_CFG.MDY_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the day in a month/day/year date string
++        * @config MDY_DAY_POSITION
++        * @type Number
++        * @default 2
++        */ 
++        cfg.addProperty(DEF_CFG.MDY_DAY_POSITION.key, { value:DEF_CFG.MDY_DAY_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++        
++        /**
++        * The position of the year in a month/day/year date string
++        * @config MDY_YEAR_POSITION
++        * @type Number
++        * @default 3
++        */ 
++        cfg.addProperty(DEF_CFG.MDY_YEAR_POSITION.key, { value:DEF_CFG.MDY_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the month in the month year label string used as the Calendar header
++        * @config MY_LABEL_MONTH_POSITION
++        * @type Number
++        * @default 1
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_POSITION.key, { value:DEF_CFG.MY_LABEL_MONTH_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++    
++        /**
++        * The position of the year in the month year label string used as the Calendar header
++        * @config MY_LABEL_YEAR_POSITION
++        * @type Number
++        * @default 2
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_POSITION.key, { value:DEF_CFG.MY_LABEL_YEAR_POSITION.value, handler:this.delegateConfig, validator:cfg.checkNumber } );
++
++        /**
++        * The suffix used after the month when rendering the Calendar header
++        * @config MY_LABEL_MONTH_SUFFIX
++        * @type String
++        * @default " "
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_MONTH_SUFFIX.key, { value:DEF_CFG.MY_LABEL_MONTH_SUFFIX.value, handler:this.delegateConfig } );
++        
++        /**
++        * The suffix used after the year when rendering the Calendar header
++        * @config MY_LABEL_YEAR_SUFFIX
++        * @type String
++        * @default ""
++        */
++        cfg.addProperty(DEF_CFG.MY_LABEL_YEAR_SUFFIX.key, { value:DEF_CFG.MY_LABEL_YEAR_SUFFIX.value, handler:this.delegateConfig } );
++
++        /**
++        * Configuration for the Month Year Navigation UI. By default it is disabled
++        * @config NAV
++        * @type Object
++        * @default null
++        */
++        cfg.addProperty(DEF_CFG.NAV.key, { value:DEF_CFG.NAV.value, handler:this.configNavigator } );
++
++        /**
++         * The map of UI strings which the CalendarGroup UI uses.
++         *
++         * @config strings
++         * @type {Object}
++         * @default An object with the properties shown below:
++         *     <dl>
++         *         <dt>previousMonth</dt><dd><em>String</em> : The string to use for the "Previous Month" navigation UI. Defaults to "Previous Month".</dd>
++         *         <dt>nextMonth</dt><dd><em>String</em> : The string to use for the "Next Month" navigation UI. Defaults to "Next Month".</dd>
++         *         <dt>close</dt><dd><em>String</em> : The string to use for the close button label. Defaults to "Close".</dd>
++         *     </dl>
++         */
++        cfg.addProperty(DEF_CFG.STRINGS.key, { 
++            value:DEF_CFG.STRINGS.value, 
++            handler:this.configStrings, 
++            validator: function(val) {
++                return Lang.isObject(val);
++            },
++            supercedes: DEF_CFG.STRINGS.supercedes
++        });
++    },
++
++    /**
++    * Initializes CalendarGroup's built-in CustomEvents
++    * @method initEvents
++    */
++    initEvents : function() {
++
++        var me = this,
++            strEvent = "Event",
++            CE = YAHOO.util.CustomEvent;
++
++        /**
++        * Proxy subscriber to subscribe to the CalendarGroup's child Calendars' CustomEvents
++        * @method sub
++        * @private
++        * @param {Function} fn The function to subscribe to this CustomEvent
++        * @param {Object} obj The CustomEvent's scope object
++        * @param {Boolean} bOverride Whether or not to apply scope correction
++        */
++        var sub = function(fn, obj, bOverride) {
++            for (var p=0;p<me.pages.length;++p) {
++                var cal = me.pages[p];
++                cal[this.type + strEvent].subscribe(fn, obj, bOverride);
++            }
++        };
++
++        /**
++        * Proxy unsubscriber to unsubscribe from the CalendarGroup's child Calendars' CustomEvents
++        * @method unsub
++        * @private
++        * @param {Function} fn The function to subscribe to this CustomEvent
++        * @param {Object} obj The CustomEvent's scope object
++        */
++        var unsub = function(fn, obj) {
++            for (var p=0;p<me.pages.length;++p) {
++                var cal = me.pages[p];
++                cal[this.type + strEvent].unsubscribe(fn, obj);
++            }
++        };
++
++        var defEvents = Calendar._EVENT_TYPES;
++
++        /**
++        * Fired before a date selection is made
++        * @event beforeSelectEvent
++        */
++        me.beforeSelectEvent = new CE(defEvents.BEFORE_SELECT);
++        me.beforeSelectEvent.subscribe = sub; me.beforeSelectEvent.unsubscribe = unsub;
++
++        /**
++        * Fired when a date selection is made
++        * @event selectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        me.selectEvent = new CE(defEvents.SELECT); 
++        me.selectEvent.subscribe = sub; me.selectEvent.unsubscribe = unsub;
++
++        /**
++        * Fired before a date or set of dates is deselected
++        * @event beforeDeselectEvent
++        */
++        me.beforeDeselectEvent = new CE(defEvents.BEFORE_DESELECT); 
++        me.beforeDeselectEvent.subscribe = sub; me.beforeDeselectEvent.unsubscribe = unsub;
++
++        /**
++        * Fired when a date or set of dates has been deselected
++        * @event deselectEvent
++        * @param {Array} Array of Date field arrays in the format [YYYY, MM, DD].
++        */
++        me.deselectEvent = new CE(defEvents.DESELECT); 
++        me.deselectEvent.subscribe = sub; me.deselectEvent.unsubscribe = unsub;
++        
++        /**
++        * Fired when the Calendar page is changed
++        * @event changePageEvent
++        */
++        me.changePageEvent = new CE(defEvents.CHANGE_PAGE); 
++        me.changePageEvent.subscribe = sub; me.changePageEvent.unsubscribe = unsub;
++
++        /**
++        * Fired before the Calendar is rendered
++        * @event beforeRenderEvent
++        */
++        me.beforeRenderEvent = new CE(defEvents.BEFORE_RENDER);
++        me.beforeRenderEvent.subscribe = sub; me.beforeRenderEvent.unsubscribe = unsub;
++    
++        /**
++        * Fired when the Calendar is rendered
++        * @event renderEvent
++        */
++        me.renderEvent = new CE(defEvents.RENDER);
++        me.renderEvent.subscribe = sub; me.renderEvent.unsubscribe = unsub;
++    
++        /**
++        * Fired when the Calendar is reset
++        * @event resetEvent
++        */
++        me.resetEvent = new CE(defEvents.RESET); 
++        me.resetEvent.subscribe = sub; me.resetEvent.unsubscribe = unsub;
++    
++        /**
++        * Fired when the Calendar is cleared
++        * @event clearEvent
++        */
++        me.clearEvent = new CE(defEvents.CLEAR);
++        me.clearEvent.subscribe = sub; me.clearEvent.unsubscribe = unsub;
++
++        /**
++        * Fired just before the CalendarGroup is to be shown
++        * @event beforeShowEvent
++        */
++        me.beforeShowEvent = new CE(defEvents.BEFORE_SHOW);
++    
++        /**
++        * Fired after the CalendarGroup is shown
++        * @event showEvent
++        */
++        me.showEvent = new CE(defEvents.SHOW);
++    
++        /**
++        * Fired just before the CalendarGroup is to be hidden
++        * @event beforeHideEvent
++        */
++        me.beforeHideEvent = new CE(defEvents.BEFORE_HIDE);
++    
++        /**
++        * Fired after the CalendarGroup is hidden
++        * @event hideEvent
++        */
++        me.hideEvent = new CE(defEvents.HIDE);
++
++        /**
++        * Fired just before the CalendarNavigator is to be shown
++        * @event beforeShowNavEvent
++        */
++        me.beforeShowNavEvent = new CE(defEvents.BEFORE_SHOW_NAV);
++    
++        /**
++        * Fired after the CalendarNavigator is shown
++        * @event showNavEvent
++        */
++        me.showNavEvent = new CE(defEvents.SHOW_NAV);
++    
++        /**
++        * Fired just before the CalendarNavigator is to be hidden
++        * @event beforeHideNavEvent
++        */
++        me.beforeHideNavEvent = new CE(defEvents.BEFORE_HIDE_NAV);
++
++        /**
++        * Fired after the CalendarNavigator is hidden
++        * @event hideNavEvent
++        */
++        me.hideNavEvent = new CE(defEvents.HIDE_NAV);
++
++        /**
++        * Fired just before the CalendarNavigator is to be rendered
++        * @event beforeRenderNavEvent
++        */
++        me.beforeRenderNavEvent = new CE(defEvents.BEFORE_RENDER_NAV);
++
++        /**
++        * Fired after the CalendarNavigator is rendered
++        * @event renderNavEvent
++        */
++        me.renderNavEvent = new CE(defEvents.RENDER_NAV);
++
++        /**
++        * Fired just before the CalendarGroup is to be destroyed
++        * @event beforeDestroyEvent
++        */
++        me.beforeDestroyEvent = new CE(defEvents.BEFORE_DESTROY);
++
++        /**
++        * Fired after the CalendarGroup is destroyed. This event should be used
++        * for notification only. When this event is fired, important CalendarGroup instance
++        * properties, dom references and event listeners have already been 
++        * removed/dereferenced, and hence the CalendarGroup instance is not in a usable 
++        * state.
++        *
++        * @event destroyEvent
++        */
++        me.destroyEvent = new CE(defEvents.DESTROY);
++    },
++    
++    /**
++    * The default Config handler for the "pages" property
++    * @method configPages
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    configPages : function(type, args, obj) {
++        var pageCount = args[0],
++            cfgPageDate = DEF_CFG.PAGEDATE.key,
++            sep = "_",
++            caldate,
++            firstPageDate = null,
++            groupCalClass = "groupcal",
++            firstClass = "first-of-type",
++            lastClass = "last-of-type";
++
++        for (var p=0;p<pageCount;++p) {
++            var calId = this.id + sep + p,
++                calContainerId = this.containerId + sep + p,
++                childConfig = this.cfg.getConfig();
++
++            childConfig.close = false;
++            childConfig.title = false;
++            childConfig.navigator = null;
++
++            if (p > 0) {
++                caldate = new Date(firstPageDate);
++                this._setMonthOnDate(caldate, caldate.getMonth() + p);
++                childConfig.pageDate = caldate;
++            }
++
++            var cal = this.constructChild(calId, calContainerId, childConfig);
++
++            Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
++            Dom.addClass(cal.oDomContainer, groupCalClass);
++
++            if (p===0) {
++                firstPageDate = cal.cfg.getProperty(cfgPageDate);
++                Dom.addClass(cal.oDomContainer, firstClass);
++            }
++    
++            if (p==(pageCount-1)) {
++                Dom.addClass(cal.oDomContainer, lastClass);
++            }
++    
++            cal.parent = this;
++            cal.index = p; 
++    
++            this.pages[this.pages.length] = cal;
++        }
++    },
++    
++    /**
++    * The default Config handler for the "pagedate" property
++    * @method configPageDate
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    configPageDate : function(type, args, obj) {
++        var val = args[0],
++            firstPageDate;
++
++        var cfgPageDate = DEF_CFG.PAGEDATE.key;
++        
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            if (p === 0) {
++                firstPageDate = cal._parsePageDate(val);
++                cal.cfg.setProperty(cfgPageDate, firstPageDate);
++            } else {
++                var pageDate = new Date(firstPageDate);
++                this._setMonthOnDate(pageDate, pageDate.getMonth() + p);
++                cal.cfg.setProperty(cfgPageDate, pageDate);
++            }
++        }
++    },
++    
++    /**
++    * The default Config handler for the CalendarGroup "selected" property
++    * @method configSelected
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    configSelected : function(type, args, obj) {
++        var cfgSelected = DEF_CFG.SELECTED.key;
++        this.delegateConfig(type, args, obj);
++        var selected = (this.pages.length > 0) ? this.pages[0].cfg.getProperty(cfgSelected) : []; 
++        this.cfg.setProperty(cfgSelected, selected, true);
++    },
++
++    
++    /**
++    * Delegates a configuration property to the CustomEvents associated with the CalendarGroup's children
++    * @method delegateConfig
++    * @param {String} type The CustomEvent type (usually the property name)
++    * @param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
++    * @param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
++    */
++    delegateConfig : function(type, args, obj) {
++        var val = args[0];
++        var cal;
++    
++        for (var p=0;p<this.pages.length;p++) {
++            cal = this.pages[p];
++            cal.cfg.setProperty(type, val);
++        }
++    },
++
++    /**
++    * Adds a function to all child Calendars within this CalendarGroup.
++    * @method setChildFunction
++    * @param {String}  fnName  The name of the function
++    * @param {Function}  fn   The function to apply to each Calendar page object
++    */
++    setChildFunction : function(fnName, fn) {
++        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
++    
++        for (var p=0;p<pageCount;++p) {
++            this.pages[p][fnName] = fn;
++        }
++    },
++
++    /**
++    * Calls a function within all child Calendars within this CalendarGroup.
++    * @method callChildFunction
++    * @param {String}  fnName  The name of the function
++    * @param {Array}  args  The arguments to pass to the function
++    */
++    callChildFunction : function(fnName, args) {
++        var pageCount = this.cfg.getProperty(DEF_CFG.PAGES.key);
++
++        for (var p=0;p<pageCount;++p) {
++            var page = this.pages[p];
++            if (page[fnName]) {
++                var fn = page[fnName];
++                fn.call(page, args);
++            }
++        } 
++    },
++
++    /**
++    * Constructs a child calendar. This method can be overridden if a subclassed version of the default
++    * calendar is to be used.
++    * @method constructChild
++    * @param {String} id   The id of the table element that will represent the calendar widget
++    * @param {String} containerId The id of the container div element that will wrap the calendar table
++    * @param {Object} config  The configuration object containing the Calendar's arguments
++    * @return {YAHOO.widget.Calendar} The YAHOO.widget.Calendar instance that is constructed
++    */
++    constructChild : function(id,containerId,config) {
++        var container = document.getElementById(containerId);
++        if (! container) {
++            container = document.createElement("div");
++            container.id = containerId;
++            this.oDomContainer.appendChild(container);
++        }
++        return new Calendar(id,containerId,config);
++    },
++    
++    /**
++    * Sets the calendar group's month explicitly. This month will be set into the first
++    * page of the multi-page calendar, and all other months will be iterated appropriately.
++    * @method setMonth
++    * @param {Number} month  The numeric month, from 0 (January) to 11 (December)
++    */
++    setMonth : function(month) {
++        month = parseInt(month, 10);
++        var currYear;
++
++        var cfgPageDate = DEF_CFG.PAGEDATE.key;
++
++        for (var p=0; p<this.pages.length; ++p) {
++            var cal = this.pages[p];
++            var pageDate = cal.cfg.getProperty(cfgPageDate);
++            if (p === 0) {
++                currYear = pageDate.getFullYear();
++            } else {
++                pageDate.setFullYear(currYear);
++            }
++            this._setMonthOnDate(pageDate, month+p); 
++            cal.cfg.setProperty(cfgPageDate, pageDate);
++        }
++    },
++
++    /**
++    * Sets the calendar group's year explicitly. This year will be set into the first
++    * page of the multi-page calendar, and all other months will be iterated appropriately.
++    * @method setYear
++    * @param {Number} year  The numeric 4-digit year
++    */
++    setYear : function(year) {
++    
++        var cfgPageDate = DEF_CFG.PAGEDATE.key;
++    
++        year = parseInt(year, 10);
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            var pageDate = cal.cfg.getProperty(cfgPageDate);
++    
++            if ((pageDate.getMonth()+1) == 1 && p>0) {
++                year+=1;
++            }
++            cal.setYear(year);
++        }
++    },
++
++    /**
++    * Calls the render function of all child calendars within the group.
++    * @method render
++    */
++    render : function() {
++        this.renderHeader();
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.render();
++        }
++        this.renderFooter();
++    },
++
++    /**
++    * Selects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once selection has completed, render must be 
++    * called for the changes to be reflected visually.
++    * @method select
++    * @param    {String/Date/Date[]}    date    The date string of dates to select in the current calendar. Valid formats are
++    *                               individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *                               Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *                               This method can also take a JavaScript Date object or an array of Date objects.
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    select : function(date) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.select(date);
++        }
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Selects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
++    * The value of the MULTI_SELECT Configuration attribute will determine the set of dates which get selected. 
++    * <ul>
++    *    <li>If MULTI_SELECT is false, selectCell will select the cell at the specified index for only the last displayed Calendar page.</li>
++    *    <li>If MULTI_SELECT is true, selectCell will select the cell at the specified index, on each displayed Calendar page.</li>
++    * </ul>
++    * @method selectCell
++    * @param {Number} cellIndex The index of the cell to be selected. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    selectCell : function(cellIndex) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.selectCell(cellIndex);
++        }
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects a date or a collection of dates on the current calendar. This method, by default,
++    * does not call the render method explicitly. Once deselection has completed, render must be 
++    * called for the changes to be reflected visually.
++    * @method deselect
++    * @param {String/Date/Date[]} date The date string of dates to deselect in the current calendar. Valid formats are
++    *        individual date(s) (12/24/2005,12/26/2005) or date range(s) (12/24/2005-1/1/2006).
++    *        Multiple comma-delimited dates can also be passed to this method (12/24/2005,12/11/2005-12/13/2005).
++    *        This method can also take a JavaScript Date object or an array of Date objects. 
++    * @return {Date[]}   Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselect : function(date) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.deselect(date);
++        }
++        return this.getSelectedDates();
++    },
++    
++    /**
++    * Deselects all dates on the current calendar.
++    * @method deselectAll
++    * @return {Date[]}  Array of JavaScript Date objects representing all individual dates that are currently selected.
++    *      Assuming that this function executes properly, the return value should be an empty array.
++    *      However, the empty array is returned for the sake of being able to check the selection status
++    *      of the calendar.
++    */
++    deselectAll : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.deselectAll();
++        }
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Deselects dates in the CalendarGroup based on the cell index provided. This method is used to select cells without having to do a full render. The selected style is applied to the cells directly.
++    * deselectCell will deselect the cell at the specified index on each displayed Calendar page.
++    *
++    * @method deselectCell
++    * @param {Number} cellIndex The index of the cell to deselect. 
++    * @return {Date[]} Array of JavaScript Date objects representing all individual dates that are currently selected.
++    */
++    deselectCell : function(cellIndex) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.deselectCell(cellIndex);
++        }
++        return this.getSelectedDates();
++    },
++
++    /**
++    * Resets the calendar widget to the originally selected month and year, and 
++    * sets the calendar to the initial selection(s).
++    * @method reset
++    */
++    reset : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.reset();
++        }
++    },
++
++    /**
++    * Clears the selected dates in the current calendar widget and sets the calendar
++    * to the current month and year.
++    * @method clear
++    */
++    clear : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.clear();
++        }
++
++        this.cfg.setProperty(DEF_CFG.SELECTED.key, []);
++        this.cfg.setProperty(DEF_CFG.PAGEDATE.key, new Date(this.pages[0].today.getTime()));
++        this.render();
++    },
++
++    /**
++    * Navigates to the next month page in the calendar widget.
++    * @method nextMonth
++    */
++    nextMonth : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.nextMonth();
++        }
++    },
++    
++    /**
++    * Navigates to the previous month page in the calendar widget.
++    * @method previousMonth
++    */
++    previousMonth : function() {
++        for (var p=this.pages.length-1;p>=0;--p) {
++            var cal = this.pages[p];
++            cal.previousMonth();
++        }
++    },
++    
++    /**
++    * Navigates to the next year in the currently selected month in the calendar widget.
++    * @method nextYear
++    */
++    nextYear : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.nextYear();
++        }
++    },
++
++    /**
++    * Navigates to the previous year in the currently selected month in the calendar widget.
++    * @method previousYear
++    */
++    previousYear : function() {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.previousYear();
++        }
++    },
++
++    /**
++    * Gets the list of currently selected dates from the calendar.
++    * @return   An array of currently selected JavaScript Date objects.
++    * @type Date[]
++    */
++    getSelectedDates : function() { 
++        var returnDates = [];
++        var selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);
++        for (var d=0;d<selected.length;++d) {
++            var dateArray = selected[d];
++
++            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
++            returnDates.push(date);
++        }
++
++        returnDates.sort( function(a,b) { return a-b; } );
++        return returnDates;
++    },
++
++    /**
++    * Adds a renderer to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the conditions specified in the date string for this renderer.
++    * @method addRenderer
++    * @param {String} sDates  A date string to associate with the specified renderer. Valid formats
++    *         include date (12/24/2005), month/day (12/24), and range (12/1/2004-1/1/2005)
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addRenderer : function(sDates, fnRender) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.addRenderer(sDates, fnRender);
++        }
++    },
++
++    /**
++    * Adds a month to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the month passed to this method.
++    * @method addMonthRenderer
++    * @param {Number} month  The month (1-12) to associate with this renderer
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addMonthRenderer : function(month, fnRender) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.addMonthRenderer(month, fnRender);
++        }
++    },
++
++    /**
++    * Adds a weekday to the render stack. The function reference passed to this method will be executed
++    * when a date cell matches the weekday passed to this method.
++    * @method addWeekdayRenderer
++    * @param {Number} weekday  The weekday (1-7) to associate with this renderer. 1=Sunday, 2=Monday etc.
++    * @param {Function} fnRender The function executed to render cells that match the render rules for this renderer.
++    */
++    addWeekdayRenderer : function(weekday, fnRender) {
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            cal.addWeekdayRenderer(weekday, fnRender);
++        }
++    },
++
++    /**
++     * Removes all custom renderers added to the CalendarGroup through the addRenderer, addMonthRenderer and 
++     * addWeekRenderer methods. CalendarGroup's render method needs to be called to after removing renderers 
++     * to see the changes applied.
++     * 
++     * @method removeRenderers
++     */
++    removeRenderers : function() {
++        this.callChildFunction("removeRenderers");
++    },
++
++    /**
++    * Renders the header for the CalendarGroup.
++    * @method renderHeader
++    */
++    renderHeader : function() {
++        // EMPTY DEFAULT IMPL
++    },
++
++    /**
++    * Renders a footer for the 2-up calendar container. By default, this method is
++    * unimplemented.
++    * @method renderFooter
++    */
++    renderFooter : function() {
++        // EMPTY DEFAULT IMPL
++    },
++
++    /**
++    * Adds the designated number of months to the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method addMonths
++    * @param {Number} count The number of months to add to the current calendar
++    */
++    addMonths : function(count) {
++        this.callChildFunction("addMonths", count);
++    },
++    
++    /**
++    * Subtracts the designated number of months from the current calendar month, and sets the current
++    * calendar page date to the new month.
++    * @method subtractMonths
++    * @param {Number} count The number of months to subtract from the current calendar
++    */
++    subtractMonths : function(count) {
++        this.callChildFunction("subtractMonths", count);
++    },
++
++    /**
++    * Adds the designated number of years to the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method addYears
++    * @param {Number} count The number of years to add to the current calendar
++    */
++    addYears : function(count) {
++        this.callChildFunction("addYears", count);
++    },
++
++    /**
++    * Subtcats the designated number of years from the current calendar, and sets the current
++    * calendar page date to the new month.
++    * @method subtractYears
++    * @param {Number} count The number of years to subtract from the current calendar
++    */
++    subtractYears : function(count) {
++        this.callChildFunction("subtractYears", count);
++    },
++
++    /**
++     * Returns the Calendar page instance which has a pagedate (month/year) matching the given date. 
++     * Returns null if no match is found.
++     * 
++     * @method getCalendarPage
++     * @param {Date} date The JavaScript Date object for which a Calendar page is to be found.
++     * @return {Calendar} The Calendar page instance representing the month to which the date 
++     * belongs.
++     */
++    getCalendarPage : function(date) {
++        var cal = null;
++        if (date) {
++            var y = date.getFullYear(),
++                m = date.getMonth();
++
++            var pages = this.pages;
++            for (var i = 0; i < pages.length; ++i) {
++                var pageDate = pages[i].cfg.getProperty("pagedate");
++                if (pageDate.getFullYear() === y && pageDate.getMonth() === m) {
++                    cal = pages[i];
++                    break;
++                }
++            }
++        }
++        return cal;
++    },
++
++    /**
++    * Sets the month on a Date object, taking into account year rollover if the month is less than 0 or greater than 11.
++    * The Date object passed in is modified. It should be cloned before passing it into this method if the original value needs to be maintained
++    * @method _setMonthOnDate
++    * @private
++    * @param {Date} date The Date object on which to set the month index
++    * @param {Number} iMonth The month index to set
++    */
++    _setMonthOnDate : function(date, iMonth) {
++        // Bug in Safari 1.3, 2.0 (WebKit build < 420), Date.setMonth does not work consistently if iMonth is not 0-11
++        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420 && (iMonth < 0 || iMonth > 11)) {
++            var newDate = DateMath.add(date, DateMath.MONTH, iMonth-date.getMonth());
++            date.setTime(newDate.getTime());
++        } else {
++            date.setMonth(iMonth);
++        }
++    },
++    
++    /**
++     * Fixes the width of the CalendarGroup container element, to account for miswrapped floats
++     * @method _fixWidth
++     * @private
++     */
++    _fixWidth : function() {
++        var w = 0;
++        for (var p=0;p<this.pages.length;++p) {
++            var cal = this.pages[p];
++            w += cal.oDomContainer.offsetWidth;
++        }
++        if (w > 0) {
++            this.oDomContainer.style.width = w + "px";
++        }
++    },
++    
++    /**
++    * Returns a string representation of the object.
++    * @method toString
++    * @return {String} A string representation of the CalendarGroup object.
++    */
++    toString : function() {
++        return "CalendarGroup " + this.id;
++    },
++
++    /**
++     * Destroys the CalendarGroup instance. The method will remove references
++     * to HTML elements, remove any event listeners added by the CalendarGroup.
++     * 
++     * It will also destroy the Config and CalendarNavigator instances created by the 
++     * CalendarGroup and the individual Calendar instances created for each page.
++     *
++     * @method destroy
++     */
++    destroy : function() {
++
++        if (this.beforeDestroyEvent.fire()) {
++
++            var cal = this;
++    
++            // Child objects
++            if (cal.navigator) {
++                cal.navigator.destroy();
++            }
++    
++            if (cal.cfg) {
++                cal.cfg.destroy();
++            }
++    
++            // DOM event listeners
++            Event.purgeElement(cal.oDomContainer, true);
++    
++            // Generated markup/DOM - Not removing the container DIV since we didn't create it.
++            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_CONTAINER);
++            Dom.removeClass(cal.oDomContainer, CalendarGroup.CSS_MULTI_UP);
++            
++            for (var i = 0, l = cal.pages.length; i < l; i++) {
++                cal.pages[i].destroy();
++                cal.pages[i] = null;
++            }
++    
++            cal.oDomContainer.innerHTML = "";
++    
++            // JS-to-DOM references
++            cal.oDomContainer = null;
++    
++            this.destroyEvent.fire();
++        }
++    }
++};
++
++/**
++* CSS class representing the container for the calendar
++* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
++* @static
++* @final
++* @type String
++*/
++CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
++
++/**
++* CSS class representing the container for the calendar
++* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
++* @static
++* @final
++* @type String
++*/
++CalendarGroup.CSS_MULTI_UP = "multi";
++
++/**
++* CSS class representing the title for the 2-up calendar
++* @property YAHOO.widget.CalendarGroup.CSS_2UPTITLE
++* @static
++* @final
++* @type String
++*/
++CalendarGroup.CSS_2UPTITLE = "title";
++
++/**
++* CSS class representing the close icon for the 2-up calendar
++* @property YAHOO.widget.CalendarGroup.CSS_2UPCLOSE
++* @static
++* @final
++* @deprecated Along with Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT configuration properties.
++*     Calendar's <a href="YAHOO.widget.Calendar.html#Style.CSS_CLOSE">Style.CSS_CLOSE</a> property now represents the CSS class used to render the close icon
++* @type String
++*/
++CalendarGroup.CSS_2UPCLOSE = "close-icon";
++
++YAHOO.lang.augmentProto(CalendarGroup, Calendar, "buildDayLabel",
++                                                 "buildMonthLabel",
++                                                 "renderOutOfBoundsDate",
++                                                 "renderRowHeader",
++                                                 "renderRowFooter",
++                                                 "renderCellDefault",
++                                                 "styleCellDefault",
++                                                 "renderCellStyleHighlight1",
++                                                 "renderCellStyleHighlight2",
++                                                 "renderCellStyleHighlight3",
++                                                 "renderCellStyleHighlight4",
++                                                 "renderCellStyleToday",
++                                                 "renderCellStyleSelected",
++                                                 "renderCellNotThisMonth",
++                                                 "renderBodyCellRestricted",
++                                                 "initStyles",
++                                                 "configTitle",
++                                                 "configClose",
++                                                 "configIframe",
++                                                 "configStrings",
++                                                 "configToday",
++                                                 "configNavigator",
++                                                 "createTitleBar",
++                                                 "createCloseButton",
++                                                 "removeTitleBar",
++                                                 "removeCloseButton",
++                                                 "hide",
++                                                 "show",
++                                                 "toDate",
++                                                 "_toDate",
++                                                 "_parseArgs",
++                                                 "browser");
++
++YAHOO.widget.CalGrp = CalendarGroup;
++YAHOO.widget.CalendarGroup = CalendarGroup;
++
++/**
++* @class YAHOO.widget.Calendar2up
++* @extends YAHOO.widget.CalendarGroup
++* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
++*/
++YAHOO.widget.Calendar2up = function(id, containerId, config) {
++    this.init(id, containerId, config);
++};
++
++YAHOO.extend(YAHOO.widget.Calendar2up, CalendarGroup);
++
++/**
++* @deprecated The old Calendar2up class is no longer necessary, since CalendarGroup renders in a 2up view by default.
++*/
++YAHOO.widget.Cal2up = YAHOO.widget.Calendar2up;
++
++})();
++/**
++ * The CalendarNavigator is used along with a Calendar/CalendarGroup to 
++ * provide a Month/Year popup navigation control, allowing the user to navigate 
++ * to a specific month/year in the Calendar/CalendarGroup without having to 
++ * scroll through months sequentially
++ *
++ * @namespace YAHOO.widget
++ * @class CalendarNavigator
++ * @constructor
++ * @param {Calendar|CalendarGroup} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached.
++ */
++YAHOO.widget.CalendarNavigator = function(cal) {
++    this.init(cal);
++};
++
++(function() {
++    // Setup static properties (inside anon fn, so that we can use shortcuts)
++    var CN = YAHOO.widget.CalendarNavigator;
++
++    /**
++     * YAHOO.widget.CalendarNavigator.CLASSES contains constants
++     * for the class values applied to the CalendarNaviatgator's 
++     * DOM elements
++     * @property YAHOO.widget.CalendarNavigator.CLASSES
++     * @type Object
++     * @static
++     */
++    CN.CLASSES = {
++        /**
++         * Class applied to the Calendar Navigator's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV
++         * @type String
++         * @static
++         */
++        NAV :"yui-cal-nav",
++        /**
++         * Class applied to the Calendar/CalendarGroup's bounding box to indicate
++         * the Navigator is currently visible
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.NAV_VISIBLE
++         * @type String
++         * @static
++         */
++        NAV_VISIBLE: "yui-cal-nav-visible",
++        /**
++         * Class applied to the Navigator mask's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.MASK
++         * @type String
++         * @static
++         */
++        MASK : "yui-cal-nav-mask",
++        /**
++         * Class applied to the year label/control bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR
++         * @type String
++         * @static
++         */
++        YEAR : "yui-cal-nav-y",
++        /**
++         * Class applied to the month label/control bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH
++         * @type String
++         * @static
++         */
++        MONTH : "yui-cal-nav-m",
++        /**
++         * Class applied to the submit/cancel button's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTONS
++         * @type String
++         * @static
++         */
++        BUTTONS : "yui-cal-nav-b",
++        /**
++         * Class applied to buttons wrapping element
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.BUTTON
++         * @type String
++         * @static
++         */
++        BUTTON : "yui-cal-nav-btn",
++        /**
++         * Class applied to the validation error area's bounding box
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.ERROR
++         * @type String
++         * @static
++         */
++        ERROR : "yui-cal-nav-e",
++        /**
++         * Class applied to the year input control
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.YEAR_CTRL
++         * @type String
++         * @static
++         */
++        YEAR_CTRL : "yui-cal-nav-yc",
++        /**
++         * Class applied to the month input control
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.MONTH_CTRL
++         * @type String
++         * @static
++         */
++        MONTH_CTRL : "yui-cal-nav-mc",
++        /**
++         * Class applied to controls with invalid data (e.g. a year input field with invalid an year)
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.INVALID
++         * @type String
++         * @static
++         */
++        INVALID : "yui-invalid",
++        /**
++         * Class applied to default controls
++         * @property YAHOO.widget.CalendarNavigator.CLASSES.DEFAULT
++         * @type String
++         * @static
++         */
++        DEFAULT : "yui-default"
++    };
++
++    /**
++     * Object literal containing the default configuration values for the CalendarNavigator
++     * The configuration object is expected to follow the format below, with the properties being
++     * case sensitive.
++     * <dl>
++     * <dt>strings</dt>
++     * <dd><em>Object</em> :  An object with the properties shown below, defining the string labels to use in the Navigator's UI
++     *     <dl>
++     *         <dt>month</dt><dd><em>String</em> : The string to use for the month label. Defaults to "Month".</dd>
++     *         <dt>year</dt><dd><em>String</em> : The string to use for the year label. Defaults to "Year".</dd>
++     *         <dt>submit</dt><dd><em>String</em> : The string to use for the submit button label. Defaults to "Okay".</dd>
++     *         <dt>cancel</dt><dd><em>String</em> : The string to use for the cancel button label. Defaults to "Cancel".</dd>
++     *         <dt>invalidYear</dt><dd><em>String</em> : The string to use for invalid year values. Defaults to "Year needs to be a number".</dd>
++     *     </dl>
++     * </dd>
++     * <dt>monthFormat</dt><dd><em>String</em> : The month format to use. Either YAHOO.widget.Calendar.LONG, or YAHOO.widget.Calendar.SHORT. Defaults to YAHOO.widget.Calendar.LONG</dd>
++     * <dt>initialFocus</dt><dd><em>String</em> : Either "year" or "month" specifying which input control should get initial focus. Defaults to "year"</dd>
++     * </dl>
++     * @property DEFAULT_CONFIG
++     * @type Object
++     * @static
++     */
++    CN.DEFAULT_CONFIG = {
++        strings : {
++            month: "Month",
++            year: "Year",
++            submit: "Okay",
++            cancel: "Cancel",
++            invalidYear : "Year needs to be a number"
++        },
++        monthFormat: YAHOO.widget.Calendar.LONG,
++        initialFocus: "year"
++    };
++    
++    /**
++     * Object literal containing the default configuration values for the CalendarNavigator
++     * @property _DEFAULT_CFG
++     * @protected
++     * @deprecated Made public. See the public DEFAULT_CONFIG property
++     * @type Object
++     * @static
++     */
++    CN._DEFAULT_CFG = CN.DEFAULT_CONFIG;
++
++
++    /**
++     * The suffix added to the Calendar/CalendarGroup's ID, to generate
++     * a unique ID for the Navigator and it's bounding box.
++     * @property YAHOO.widget.CalendarNavigator.ID_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.ID_SUFFIX = "_nav";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the month control.
++     * @property YAHOO.widget.CalendarNavigator.MONTH_SUFFIX
++     * @static
++     * @type String 
++     * @final
++     */
++    CN.MONTH_SUFFIX = "_month";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the year control.
++     * @property YAHOO.widget.CalendarNavigator.YEAR_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.YEAR_SUFFIX = "_year";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the error bounding box.
++     * @property YAHOO.widget.CalendarNavigator.ERROR_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.ERROR_SUFFIX = "_error";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the "Cancel" button.
++     * @property YAHOO.widget.CalendarNavigator.CANCEL_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.CANCEL_SUFFIX = "_cancel";
++    /**
++     * The suffix added to the Navigator's ID, to generate
++     * a unique ID for the "Submit" button.
++     * @property YAHOO.widget.CalendarNavigator.SUBMIT_SUFFIX
++     * @static
++     * @type String
++     * @final
++     */
++    CN.SUBMIT_SUFFIX = "_submit";
++
++    /**
++     * The number of digits to which the year input control is to be limited.
++     * @property YAHOO.widget.CalendarNavigator.YR_MAX_DIGITS
++     * @static
++     * @type Number
++     */
++    CN.YR_MAX_DIGITS = 4;
++
++    /**
++     * The amount by which to increment the current year value,
++     * when the arrow up/down key is pressed on the year control
++     * @property YAHOO.widget.CalendarNavigator.YR_MINOR_INC
++     * @static
++     * @type Number
++     */
++    CN.YR_MINOR_INC = 1;
++
++    /**
++     * The amount by which to increment the current year value,
++     * when the page up/down key is pressed on the year control
++     * @property YAHOO.widget.CalendarNavigator.YR_MAJOR_INC
++     * @static
++     * @type Number
++     */
++    CN.YR_MAJOR_INC = 10;
++
++    /**
++     * Artificial delay (in ms) between the time the Navigator is hidden
++     * and the Calendar/CalendarGroup state is updated. Allows the user
++     * the see the Calendar/CalendarGroup page changing. If set to 0
++     * the Calendar/CalendarGroup page will be updated instantly
++     * @property YAHOO.widget.CalendarNavigator.UPDATE_DELAY
++     * @static
++     * @type Number
++     */
++    CN.UPDATE_DELAY = 50;
++
++    /**
++     * Regular expression used to validate the year input
++     * @property YAHOO.widget.CalendarNavigator.YR_PATTERN
++     * @static
++     * @type RegExp
++     */
++    CN.YR_PATTERN = /^\d+$/;
++    /**
++     * Regular expression used to trim strings
++     * @property YAHOO.widget.CalendarNavigator.TRIM
++     * @static
++     * @type RegExp
++     */
++    CN.TRIM = /^\s*(.*?)\s*$/;
++})();
++
++YAHOO.widget.CalendarNavigator.prototype = {
++
++    /**
++     * The unique ID for this CalendarNavigator instance
++     * @property id
++     * @type String
++     */
++    id : null,
++
++    /**
++     * The Calendar/CalendarGroup instance to which the navigator belongs
++     * @property cal
++     * @type {Calendar|CalendarGroup}
++     */
++    cal : null,
++
++    /**
++     * Reference to the HTMLElement used to render the navigator's bounding box
++     * @property navEl
++     * @type HTMLElement
++     */
++    navEl : null,
++
++    /**
++     * Reference to the HTMLElement used to render the navigator's mask
++     * @property maskEl
++     * @type HTMLElement
++     */
++    maskEl : null,
++
++    /**
++     * Reference to the HTMLElement used to input the year
++     * @property yearEl
++     * @type HTMLElement
++     */
++    yearEl : null,
++
++    /**
++     * Reference to the HTMLElement used to input the month
++     * @property monthEl
++     * @type HTMLElement
++     */
++    monthEl : null,
++
++    /**
++     * Reference to the HTMLElement used to display validation errors
++     * @property errorEl
++     * @type HTMLElement
++     */
++    errorEl : null,
++
++    /**
++     * Reference to the HTMLElement used to update the Calendar/Calendar group
++     * with the month/year values
++     * @property submitEl
++     * @type HTMLElement
++     */
++    submitEl : null,
++    
++    /**
++     * Reference to the HTMLElement used to hide the navigator without updating the 
++     * Calendar/Calendar group
++     * @property cancelEl
++     * @type HTMLElement
++     */
++    cancelEl : null,
++
++    /** 
++     * Reference to the first focusable control in the navigator (by default monthEl)
++     * @property firstCtrl
++     * @type HTMLElement
++     */
++    firstCtrl : null,
++    
++    /** 
++     * Reference to the last focusable control in the navigator (by default cancelEl)
++     * @property lastCtrl
++     * @type HTMLElement
++     */
++    lastCtrl : null,
++
++    /**
++     * The document containing the Calendar/Calendar group instance
++     * @protected
++     * @property _doc
++     * @type HTMLDocument
++     */
++    _doc : null,
++
++    /**
++     * Internal state property for the current year displayed in the navigator
++     * @protected
++     * @property _year
++     * @type Number
++     */
++    _year: null,
++    
++    /**
++     * Internal state property for the current month index displayed in the navigator
++     * @protected
++     * @property _month
++     * @type Number
++     */
++    _month: 0,
++
++    /**
++     * Private internal state property which indicates whether or not the 
++     * Navigator has been rendered.
++     * @private
++     * @property __rendered
++     * @type Boolean
++     */
++    __rendered: false,
++
++    /**
++     * Init lifecycle method called as part of construction
++     * 
++     * @method init
++     * @param {Calendar} cal The instance of the Calendar or CalendarGroup to which this CalendarNavigator should be attached
++     */
++    init : function(cal) {
++        var calBox = cal.oDomContainer;
++
++        this.cal = cal;
++        this.id = calBox.id + YAHOO.widget.CalendarNavigator.ID_SUFFIX;
++        this._doc = calBox.ownerDocument;
++
++        /**
++         * Private flag, to identify IE Quirks
++         * @private
++         * @property __isIEQuirks
++         */
++        var ie = YAHOO.env.ua.ie;
++        this.__isIEQuirks = (ie && ((ie <= 6) || (this._doc.compatMode == "BackCompat")));
++    },
++
++    /**
++     * Displays the navigator and mask, updating the input controls to reflect the 
++     * currently set month and year. The show method will invoke the render method
++     * if the navigator has not been renderered already, allowing for lazy rendering
++     * of the control.
++     * 
++     * The show method will fire the Calendar/CalendarGroup's beforeShowNav and showNav events
++     * 
++     * @method show
++     */
++    show : function() {
++        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
++
++        if (this.cal.beforeShowNavEvent.fire()) {
++            if (!this.__rendered) {
++                this.render();
++            }
++            this.clearErrors();
++
++            this._updateMonthUI();
++            this._updateYearUI();
++            this._show(this.navEl, true);
++
++            this.setInitialFocus();
++            this.showMask();
++
++            YAHOO.util.Dom.addClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
++            this.cal.showNavEvent.fire();
++        }
++    },
++
++    /**
++     * Hides the navigator and mask
++     * 
++     * The show method will fire the Calendar/CalendarGroup's beforeHideNav event and hideNav events
++     * @method hide
++     */
++    hide : function() {
++        var CLASSES = YAHOO.widget.CalendarNavigator.CLASSES;
++
++        if (this.cal.beforeHideNavEvent.fire()) {
++            this._show(this.navEl, false);
++            this.hideMask();
++            YAHOO.util.Dom.removeClass(this.cal.oDomContainer, CLASSES.NAV_VISIBLE);
++            this.cal.hideNavEvent.fire();
++        }
++    },
++    
++
++    /**
++     * Displays the navigator's mask element
++     * 
++     * @method showMask
++     */
++    showMask : function() {
++        this._show(this.maskEl, true);
++        if (this.__isIEQuirks) {
++            this._syncMask();
++        }
++    },
++
++    /**
++     * Hides the navigator's mask element
++     * 
++     * @method hideMask
++     */
++    hideMask : function() {
++        this._show(this.maskEl, false);
++    },
++
++    /**
++     * Returns the current month set on the navigator
++     * 
++     * Note: This may not be the month set in the UI, if 
++     * the UI contains an invalid value.
++     * 
++     * @method getMonth
++     * @return {Number} The Navigator's current month index
++     */
++    getMonth: function() {
++        return this._month;
++    },
++
++    /**
++     * Returns the current year set on the navigator
++     * 
++     * Note: This may not be the year set in the UI, if 
++     * the UI contains an invalid value.
++     * 
++     * @method getYear
++     * @return {Number} The Navigator's current year value
++     */
++    getYear: function() {
++        return this._year;
++    },
++
++    /**
++     * Sets the current month on the Navigator, and updates the UI
++     * 
++     * @method setMonth
++     * @param {Number} nMonth The month index, from 0 (Jan) through 11 (Dec).
++     */
++    setMonth : function(nMonth) {
++        if (nMonth >= 0 && nMonth < 12) {
++            this._month = nMonth;
++        }
++        this._updateMonthUI();
++    },
++
++    /**
++     * Sets the current year on the Navigator, and updates the UI. If the 
++     * provided year is invalid, it will not be set.
++     * 
++     * @method setYear
++     * @param {Number} nYear The full year value to set the Navigator to.
++     */
++    setYear : function(nYear) {
++        var yrPattern = YAHOO.widget.CalendarNavigator.YR_PATTERN;
++        if (YAHOO.lang.isNumber(nYear) && yrPattern.test(nYear+"")) {
++            this._year = nYear;
++        }
++        this._updateYearUI();
++    },
++
++    /**
++     * Renders the HTML for the navigator, adding it to the 
++     * document and attaches event listeners if it has not 
++     * already been rendered.
++     * 
++     * @method render
++     */
++    render: function() {
++        this.cal.beforeRenderNavEvent.fire();
++        if (!this.__rendered) {
++            this.createNav();
++            this.createMask();
++            this.applyListeners();
++            this.__rendered = true;
++        }
++        this.cal.renderNavEvent.fire();
++    },
++
++    /**
++     * Creates the navigator's containing HTMLElement, it's contents, and appends 
++     * the containg element to the Calendar/CalendarGroup's container.
++     * 
++     * @method createNav
++     */
++    createNav : function() {
++        var NAV = YAHOO.widget.CalendarNavigator;
++        var doc = this._doc;
++
++        var d = doc.createElement("div");
++        d.className = NAV.CLASSES.NAV;
++
++        var htmlBuf = this.renderNavContents([]);
++
++        d.innerHTML = htmlBuf.join('');
++        this.cal.oDomContainer.appendChild(d);
++
++        this.navEl = d;
++
++        this.yearEl = doc.getElementById(this.id + NAV.YEAR_SUFFIX);
++        this.monthEl = doc.getElementById(this.id + NAV.MONTH_SUFFIX);
++        this.errorEl = doc.getElementById(this.id + NAV.ERROR_SUFFIX);
++        this.submitEl = doc.getElementById(this.id + NAV.SUBMIT_SUFFIX);
++        this.cancelEl = doc.getElementById(this.id + NAV.CANCEL_SUFFIX);
++
++        if (YAHOO.env.ua.gecko && this.yearEl && this.yearEl.type == "text") {
++            // Avoid XUL error on focus, select [ https://bugzilla.mozilla.org/show_bug.cgi?id=236791, 
++            // supposedly fixed in 1.8.1, but there are reports of it still being around for methods other than blur ]
++            this.yearEl.setAttribute("autocomplete", "off");
++        }
++
++        this._setFirstLastElements();
++    },
++
++    /**
++     * Creates the Mask HTMLElement and appends it to the Calendar/CalendarGroups
++     * container.
++     * 
++     * @method createMask
++     */
++    createMask : function() {
++        var C = YAHOO.widget.CalendarNavigator.CLASSES;
++
++        var d = this._doc.createElement("div");
++        d.className = C.MASK;
++
++        this.cal.oDomContainer.appendChild(d);
++        this.maskEl = d;
++    },
++
++    /**
++     * Used to set the width/height of the mask in pixels to match the Calendar Container.
++     * Currently only used for IE6 or IE in quirks mode. The other A-Grade browser are handled using CSS (width/height 100%).
++     * <p>
++     * The method is also registered as an HTMLElement resize listener on the Calendars container element.
++     * </p>
++     * @protected
++     * @method _syncMask
++     */
++    _syncMask : function() {
++        var c = this.cal.oDomContainer;
++        if (c && this.maskEl) {
++            var r = YAHOO.util.Dom.getRegion(c);
++            YAHOO.util.Dom.setStyle(this.maskEl, "width", r.right - r.left + "px");
++            YAHOO.util.Dom.setStyle(this.maskEl, "height", r.bottom - r.top + "px");
++        }
++    },
++
++    /**
++     * Renders the contents of the navigator
++     * 
++     * @method renderNavContents
++     * 
++     * @param {Array} html The HTML buffer to append the HTML to.
++     * @return {Array} A reference to the buffer passed in.
++     */
++    renderNavContents : function(html) {
++        var NAV = YAHOO.widget.CalendarNavigator,
++            C = NAV.CLASSES,
++            h = html; // just to use a shorter name
++
++        h[h.length] = '<div class="' + C.MONTH + '">';
++        this.renderMonth(h);
++        h[h.length] = '</div>';
++        h[h.length] = '<div class="' + C.YEAR + '">';
++        this.renderYear(h);
++        h[h.length] = '</div>';
++        h[h.length] = '<div class="' + C.BUTTONS + '">';
++        this.renderButtons(h);
++        h[h.length] = '</div>';
++        h[h.length] = '<div class="' + C.ERROR + '" id="' + this.id + NAV.ERROR_SUFFIX + '"></div>';
++
++        return h;
++    },
++
++    /**
++     * Renders the month label and control for the navigator
++     * 
++     * @method renderNavContents
++     * @param {Array} html The HTML buffer to append the HTML to.
++     * @return {Array} A reference to the buffer passed in.
++     */
++    renderMonth : function(html) {
++        var NAV = YAHOO.widget.CalendarNavigator,
++            C = NAV.CLASSES;
++
++        var id = this.id + NAV.MONTH_SUFFIX,
++            mf = this.__getCfg("monthFormat"),
++            months = this.cal.cfg.getProperty((mf == YAHOO.widget.Calendar.SHORT) ? "MONTHS_SHORT" : "MONTHS_LONG"),
++            h = html;
++
++        if (months && months.length > 0) {
++            h[h.length] = '<label for="' + id + '">';
++            h[h.length] = this.__getCfg("month", true);
++            h[h.length] = '</label>';
++            h[h.length] = '<select name="' + id + '" id="' + id + '" class="' + C.MONTH_CTRL + '">';
++            for (var i = 0; i < months.length; i++) {
++                h[h.length] = '<option value="' + i + '">';
++                h[h.length] = months[i];
++                h[h.length] = '</option>';
++            }
++            h[h.length] = '</select>';
++        }
++        return h;
++    },
++
++    /**
++     * Renders the year label and control for the navigator
++     * 
++     * @method renderYear
++     * @param {Array} html The HTML buffer to append the HTML to.
++     * @return {Array} A reference to the buffer passed in.
++     */
++    renderYear : function(html) {
++        var NAV = YAHOO.widget.CalendarNavigator,
++            C = NAV.CLASSES;
++
++        var id = this.id + NAV.YEAR_SUFFIX,
++            size = NAV.YR_MAX_DIGITS,
++            h = html;
++
++        h[h.length] = '<label for="' + id + '">';
++        h[h.length] = this.__getCfg("year", true);
++        h[h.length] = '</label>';
++        h[h.length] = '<input type="text" name="' + id + '" id="' + id + '" class="' + C.YEAR_CTRL + '" maxlength="' + size + '"/>';
++        return h;
++    },
++
++    /**
++     * Renders the submit/cancel buttons for the navigator
++     * 
++     * @method renderButton
++     * @return {String} The HTML created for the Button UI
++     */
++    renderButtons : function(html) {
++        var C = YAHOO.widget.CalendarNavigator.CLASSES;
++        var h = html;
++
++        h[h.length] = '<span class="' + C.BUTTON + ' ' + C.DEFAULT + '">';
++        h[h.length] = '<button type="button" id="' + this.id + '_submit' + '">';
++        h[h.length] = this.__getCfg("submit", true);
++        h[h.length] = '</button>';
++        h[h.length] = '</span>';
++        h[h.length] = '<span class="' + C.BUTTON +'">';
++        h[h.length] = '<button type="button" id="' + this.id + '_cancel' + '">';
++        h[h.length] = this.__getCfg("cancel", true);
++        h[h.length] = '</button>';
++        h[h.length] = '</span>';
++
++        return h;
++    },
++
++    /**
++     * Attaches DOM event listeners to the rendered elements
++     * <p>
++     * The method will call applyKeyListeners, to setup keyboard specific 
++     * listeners
++     * </p>
++     * @method applyListeners
++     */
++    applyListeners : function() {
++        var E = YAHOO.util.Event;
++
++        function yearUpdateHandler() {
++            if (this.validate()) {
++                this.setYear(this._getYearFromUI());
++            }
++        }
++
++        function monthUpdateHandler() {
++            this.setMonth(this._getMonthFromUI());
++        }
++
++        E.on(this.submitEl, "click", this.submit, this, true);
++        E.on(this.cancelEl, "click", this.cancel, this, true);
++        E.on(this.yearEl, "blur", yearUpdateHandler, this, true);
++        E.on(this.monthEl, "change", monthUpdateHandler, this, true);
++
++        if (this.__isIEQuirks) {
++            YAHOO.util.Event.on(this.cal.oDomContainer, "resize", this._syncMask, this, true);
++        }
++
++        this.applyKeyListeners();
++    },
++
++    /**
++     * Removes/purges DOM event listeners from the rendered elements
++     * 
++     * @method purgeListeners
++     */
++    purgeListeners : function() {
++        var E = YAHOO.util.Event;
++        E.removeListener(this.submitEl, "click", this.submit);
++        E.removeListener(this.cancelEl, "click", this.cancel);
++        E.removeListener(this.yearEl, "blur");
++        E.removeListener(this.monthEl, "change");
++        if (this.__isIEQuirks) {
++            E.removeListener(this.cal.oDomContainer, "resize", this._syncMask);
++        }
++
++        this.purgeKeyListeners();
++    },
++
++    /**
++     * Attaches DOM listeners for keyboard support. 
++     * Tab/Shift-Tab looping, Enter Key Submit on Year element,
++     * Up/Down/PgUp/PgDown year increment on Year element
++     * <p>
++     * NOTE: MacOSX Safari 2.x doesn't let you tab to buttons and 
++     * MacOSX Gecko does not let you tab to buttons or select controls,
++     * so for these browsers, Tab/Shift-Tab looping is limited to the 
++     * elements which can be reached using the tab key.
++     * </p>
++     * @method applyKeyListeners
++     */
++    applyKeyListeners : function() {
++        var E = YAHOO.util.Event,
++            ua = YAHOO.env.ua;
++
++        // IE/Safari 3.1 doesn't fire keypress for arrow/pg keys (non-char keys)
++        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
++
++        // - IE/Safari 3.1 doesn't fire keypress for non-char keys
++        // - Opera doesn't allow us to cancel keydown or keypress for tab, but 
++        //   changes focus successfully on keydown (keypress is too late to change focus - opera's already moved on).
++        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
++
++        // Everyone likes keypress for Enter (char keys) - whoo hoo!
++        E.on(this.yearEl, "keypress", this._handleEnterKey, this, true);
++
++        E.on(this.yearEl, arrowEvt, this._handleDirectionKeys, this, true);
++        E.on(this.lastCtrl, tabEvt, this._handleTabKey, this, true);
++        E.on(this.firstCtrl, tabEvt, this._handleShiftTabKey, this, true);
++    },
++
++    /**
++     * Removes/purges DOM listeners for keyboard support
++     *
++     * @method purgeKeyListeners
++     */
++    purgeKeyListeners : function() {
++        var E = YAHOO.util.Event,
++            ua = YAHOO.env.ua;
++
++        var arrowEvt = (ua.ie || ua.webkit) ? "keydown" : "keypress";
++        var tabEvt = (ua.ie || ua.opera || ua.webkit) ? "keydown" : "keypress";
++
++        E.removeListener(this.yearEl, "keypress", this._handleEnterKey);
++        E.removeListener(this.yearEl, arrowEvt, this._handleDirectionKeys);
++        E.removeListener(this.lastCtrl, tabEvt, this._handleTabKey);
++        E.removeListener(this.firstCtrl, tabEvt, this._handleShiftTabKey);
++    },
++
++    /**
++     * Updates the Calendar/CalendarGroup's pagedate with the currently set month and year if valid.
++     * <p>
++     * If the currently set month/year is invalid, a validation error will be displayed and the 
++     * Calendar/CalendarGroup's pagedate will not be updated.
++     * </p>
++     * @method submit
++     */
++    submit : function() {
++        if (this.validate()) {
++            this.hide();
++
++            this.setMonth(this._getMonthFromUI());
++            this.setYear(this._getYearFromUI());
++
++            var cal = this.cal;
++
++            // Artificial delay, just to help the user see something changed
++            var delay = YAHOO.widget.CalendarNavigator.UPDATE_DELAY;
++            if (delay > 0) {
++                var nav = this;
++                window.setTimeout(function(){ nav._update(cal); }, delay);
++            } else {
++                this._update(cal);
++            }
++        }
++    },
++
++    /**
++     * Updates the Calendar rendered state, based on the state of the CalendarNavigator
++     * @method _update
++     * @param cal The Calendar instance to update
++     * @protected
++     */
++    _update : function(cal) {
++        var date = YAHOO.widget.DateMath.getDate(this.getYear() - cal.cfg.getProperty("YEAR_OFFSET"), this.getMonth(), 1);
++        cal.cfg.setProperty("pagedate", date);
++        cal.render();
++    },
++
++    /**
++     * Hides the navigator and mask, without updating the Calendar/CalendarGroup's state
++     * 
++     * @method cancel
++     */
++    cancel : function() {
++        this.hide();
++    },
++
++    /**
++     * Validates the current state of the UI controls
++     * 
++     * @method validate
++     * @return {Boolean} true, if the current UI state contains valid values, false if not
++     */
++    validate : function() {
++        if (this._getYearFromUI() !== null) {
++            this.clearErrors();
++            return true;
++        } else {
++            this.setYearError();
++            this.setError(this.__getCfg("invalidYear", true));
++            return false;
++        }
++    },
++
++    /**
++     * Displays an error message in the Navigator's error panel
++     * @method setError
++     * @param {String} msg The error message to display
++     */
++    setError : function(msg) {
++        if (this.errorEl) {
++            this.errorEl.innerHTML = msg;
++            this._show(this.errorEl, true);
++        }
++    },
++
++    /**
++     * Clears the navigator's error message and hides the error panel
++     * @method clearError 
++     */
++    clearError : function() {
++        if (this.errorEl) {
++            this.errorEl.innerHTML = "";
++            this._show(this.errorEl, false);
++        }
++    },
++
++    /**
++     * Displays the validation error UI for the year control
++     * @method setYearError
++     */
++    setYearError : function() {
++        YAHOO.util.Dom.addClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
++    },
++
++    /**
++     * Removes the validation error UI for the year control
++     * @method clearYearError
++     */
++    clearYearError : function() {
++        YAHOO.util.Dom.removeClass(this.yearEl, YAHOO.widget.CalendarNavigator.CLASSES.INVALID);
++    },
++
++    /**
++     * Clears all validation and error messages in the UI
++     * @method clearErrors
++     */
++    clearErrors : function() {
++        this.clearError();
++        this.clearYearError();
++    },
++
++    /**
++     * Sets the initial focus, based on the configured value
++     * @method setInitialFocus
++     */
++    setInitialFocus : function() {
++        var el = this.submitEl,
++            f = this.__getCfg("initialFocus");
++
++        if (f && f.toLowerCase) {
++            f = f.toLowerCase();
++            if (f == "year") {
++                el = this.yearEl;
++                try {
++                    this.yearEl.select();
++                } catch (selErr) {
++                    // Ignore;
++                }
++            } else if (f == "month") {
++                el = this.monthEl;
++            }
++        }
++
++        if (el && YAHOO.lang.isFunction(el.focus)) {
++            try {
++                el.focus();
++            } catch (focusErr) {
++                // TODO: Fall back if focus fails?
++            }
++        }
++    },
++
++    /**
++     * Removes all renderered HTML elements for the Navigator from
++     * the DOM, purges event listeners and clears (nulls) any property
++     * references to HTML references
++     * @method erase
++     */
++    erase : function() {
++        if (this.__rendered) {
++            this.purgeListeners();
++
++            // Clear out innerHTML references
++            this.yearEl = null;
++            this.monthEl = null;
++            this.errorEl = null;
++            this.submitEl = null;
++            this.cancelEl = null;
++            this.firstCtrl = null;
++            this.lastCtrl = null;
++            if (this.navEl) {
++                this.navEl.innerHTML = "";
++            }
++
++            var p = this.navEl.parentNode;
++            if (p) {
++                p.removeChild(this.navEl);
++            }
++            this.navEl = null;
++
++            var pm = this.maskEl.parentNode;
++            if (pm) {
++                pm.removeChild(this.maskEl);
++            }
++            this.maskEl = null;
++            this.__rendered = false;
++        }
++    },
++
++    /**
++     * Destroys the Navigator object and any HTML references
++     * @method destroy
++     */
++    destroy : function() {
++        this.erase();
++        this._doc = null;
++        this.cal = null;
++        this.id = null;
++    },
++
++    /**
++     * Protected implementation to handle how UI elements are 
++     * hidden/shown.
++     *
++     * @method _show
++     * @protected
++     */
++    _show : function(el, bShow) {
++        if (el) {
++            YAHOO.util.Dom.setStyle(el, "display", (bShow) ? "block" : "none");
++        }
++    },
++
++    /**
++     * Returns the month value (index), from the month UI element
++     * @protected
++     * @method _getMonthFromUI
++     * @return {Number} The month index, or 0 if a UI element for the month
++     * is not found
++     */
++    _getMonthFromUI : function() {
++        if (this.monthEl) {
++            return this.monthEl.selectedIndex;
++        } else {
++            return 0; // Default to Jan
++        }
++    },
++
++    /**
++     * Returns the year value, from the Navitator's year UI element
++     * @protected
++     * @method _getYearFromUI
++     * @return {Number} The year value set in the UI, if valid. null is returned if 
++     * the UI does not contain a valid year value.
++     */
++    _getYearFromUI : function() {
++        var NAV = YAHOO.widget.CalendarNavigator;
++
++        var yr = null;
++        if (this.yearEl) {
++            var value = this.yearEl.value;
++            value = value.replace(NAV.TRIM, "$1");
++
++            if (NAV.YR_PATTERN.test(value)) {
++                yr = parseInt(value, 10);
++            }
++        }
++        return yr;
++    },
++
++    /**
++     * Updates the Navigator's year UI, based on the year value set on the Navigator object
++     * @protected
++     * @method _updateYearUI
++     */
++    _updateYearUI : function() {
++        if (this.yearEl && this._year !== null) {
++            this.yearEl.value = this._year;
++        }
++    },
++
++    /**
++     * Updates the Navigator's month UI, based on the month value set on the Navigator object
++     * @protected
++     * @method _updateMonthUI
++     */
++    _updateMonthUI : function() {
++        if (this.monthEl) {
++            this.monthEl.selectedIndex = this._month;
++        }
++    },
++
++    /**
++     * Sets up references to the first and last focusable element in the Navigator's UI
++     * in terms of tab order (Naviagator's firstEl and lastEl properties). The references
++     * are used to control modality by looping around from the first to the last control
++     * and visa versa for tab/shift-tab navigation.
++     * <p>
++     * See <a href="#applyKeyListeners">applyKeyListeners</a>
++     * </p>
++     * @protected
++     * @method _setFirstLastElements
++     */
++    _setFirstLastElements : function() {
++        this.firstCtrl = this.monthEl;
++        this.lastCtrl = this.cancelEl;
++
++        // Special handling for MacOSX.
++        // - Safari 2.x can't focus on buttons
++        // - Gecko can't focus on select boxes or buttons
++        if (this.__isMac) {
++            if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420){
++                this.firstCtrl = this.monthEl;
++                this.lastCtrl = this.yearEl;
++            }
++            if (YAHOO.env.ua.gecko) {
++                this.firstCtrl = this.yearEl;
++                this.lastCtrl = this.yearEl;
++            }
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture Enter 
++     * on the Navigator's year control (yearEl)
++     * 
++     * @method _handleEnterKey
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleEnterKey : function(e) {
++        var KEYS = YAHOO.util.KeyListener.KEY;
++
++        if (YAHOO.util.Event.getCharCode(e) == KEYS.ENTER) {
++            YAHOO.util.Event.preventDefault(e);
++            this.submit();
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture up/down/pgup/pgdown
++     * on the Navigator's year control (yearEl).
++     * 
++     * @method _handleDirectionKeys
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleDirectionKeys : function(e) {
++        var E = YAHOO.util.Event,
++            KEYS = YAHOO.util.KeyListener.KEY,
++            NAV = YAHOO.widget.CalendarNavigator;
++
++        var value = (this.yearEl.value) ? parseInt(this.yearEl.value, 10) : null;
++        if (isFinite(value)) {
++            var dir = false;
++            switch(E.getCharCode(e)) {
++                case KEYS.UP:
++                    this.yearEl.value = value + NAV.YR_MINOR_INC;
++                    dir = true;
++                    break;
++                case KEYS.DOWN:
++                    this.yearEl.value = Math.max(value - NAV.YR_MINOR_INC, 0);
++                    dir = true;
++                    break;
++                case KEYS.PAGE_UP:
++                    this.yearEl.value = value + NAV.YR_MAJOR_INC;
++                    dir = true;
++                    break;
++                case KEYS.PAGE_DOWN:
++                    this.yearEl.value = Math.max(value - NAV.YR_MAJOR_INC, 0);
++                    dir = true;
++                    break;
++                default:
++                    break;
++            }
++            if (dir) {
++                E.preventDefault(e);
++                try {
++                    this.yearEl.select();
++                } catch(err) {
++                    // Ignore
++                }
++            }
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture Tab 
++     * on the last control (lastCtrl) in the Navigator.
++     * 
++     * @method _handleTabKey
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleTabKey : function(e) {
++        var E = YAHOO.util.Event,
++            KEYS = YAHOO.util.KeyListener.KEY;
++
++        if (E.getCharCode(e) == KEYS.TAB && !e.shiftKey) {
++            try {
++                E.preventDefault(e);
++                this.firstCtrl.focus();
++            } catch (err) {
++                // Ignore - mainly for focus edge cases
++            }
++        }
++    },
++
++    /**
++     * Default Keyboard event handler to capture Shift-Tab 
++     * on the first control (firstCtrl) in the Navigator.
++     * 
++     * @method _handleShiftTabKey
++     * @protected
++     * @param {Event} e The DOM event being handled
++     */
++    _handleShiftTabKey : function(e) {
++        var E = YAHOO.util.Event,
++            KEYS = YAHOO.util.KeyListener.KEY;
++
++        if (e.shiftKey && E.getCharCode(e) == KEYS.TAB) {
++            try {
++                E.preventDefault(e);
++                this.lastCtrl.focus();
++            } catch (err) {
++                // Ignore - mainly for focus edge cases
++            }
++        }
++    },
++
++    /**
++     * Retrieve Navigator configuration values from 
++     * the parent Calendar/CalendarGroup's config value.
++     * <p>
++     * If it has not been set in the user provided configuration, the method will 
++     * return the default value of the configuration property, as set in DEFAULT_CONFIG
++     * </p>
++     * @private
++     * @method __getCfg
++     * @param {String} Case sensitive property name.
++     * @param {Boolean} true, if the property is a string property, false if not.
++     * @return The value of the configuration property
++     */
++    __getCfg : function(prop, bIsStr) {
++        var DEF_CFG = YAHOO.widget.CalendarNavigator.DEFAULT_CONFIG;
++        var cfg = this.cal.cfg.getProperty("navigator");
++
++        if (bIsStr) {
++            return (cfg !== true && cfg.strings && cfg.strings[prop]) ? cfg.strings[prop] : DEF_CFG.strings[prop];
++        } else {
++            return (cfg !== true && cfg[prop]) ? cfg[prop] : DEF_CFG[prop];
++        }
++    },
++
++    /**
++     * Private flag, to identify MacOS
++     * @private
++     * @property __isMac
++     */
++    __isMac : (navigator.userAgent.toLowerCase().indexOf("macintosh") != -1)
++
++};
++YAHOO.register("calendar", YAHOO.widget.Calendar, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/carousel/assets/ajax-loader.gif b/pylons_app/public/js/yui/carousel/assets/ajax-loader.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..fe2cd23b3a3c017ae6acfd291135a998e2f8ee74
+GIT binary patch
+literal 3208
+zc$~$Tdr(tX9>*`aH#d)ab@kq01A!Wlh)@ebf$~%#K!AWe1O!Eq7&V9r@(>6D;gJW(
+zGlZ7`C4s~ct%#t4R?9;QYH{#|kE#o_6+uO<W7l>&>q0xbvw!f%&g@M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4U%_c*Cp8bS<N;Y-O5QK{svQ6yN?(s<0ZMeo>jj1H;W8aq^V?oqWI
+zdnyQudz|SE@}+_LT-(c-^#HNNG&pH_H+Jz7QGDR$5Px}eKj?<#Zu>0Cc4WWtkB|v3
+xZam~x3J-YOxp9LXFr&I9_yx$ld2m$s!*V>|4D->DyvL3pWT&|Vxc~br@lWjkwJrbv
+
+diff --git a/pylons_app/public/js/yui/carousel/assets/carousel-core.css b/pylons_app/public/js/yui/carousel/assets/carousel-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/carousel/assets/carousel-core.css
+@@ -0,0 +1,88 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-carousel {
++    visibility: hidden;
++    overflow: hidden;
++    position: relative;
++    text-align: left;
++    zoom: 1;
++}
++ 
++.yui-carousel.yui-carousel-visible {
++    visibility: visible;
++}
++ 
++.yui-carousel-content {
++    overflow: hidden;
++    position: relative;
++    text-align:center;
++}
++ 
++.yui-carousel-element li {
++    border: 1px solid #ccc;
++    list-style: none;
++    margin: 1px; 
++    overflow: hidden;
++    padding: 0;
++    position: absolute;
++    text-align: center;
++}
++
++.yui-carousel-vertical .yui-carousel-element li {
++    display: block;
++    float: none;
++}
++ 
++.yui-log .carousel {
++    background: #f2e886;
++}
++ 
++.yui-carousel-nav {
++    zoom: 1;
++}
++ 
++.yui-carousel-nav:after {
++    content: ".";
++    display: block;
++    height: 0;
++    clear: both;
++    visibility: hidden;    
++}
++ 
++.yui-carousel-button-focus {
++    outline: 1px dotted #000;
++}
++
++.yui-carousel-min-width {
++    min-width: 115px;
++}
++
++.yui-carousel-element   {
++    overflow: hidden;
++    position:relative;
++	margin: 0 auto;
++    padding:0;
++    text-align:left;
++    *margin:0;
++}
++
++.yui-carousel-horizontal .yui-carousel-element {
++    width: 320000px;
++}
++
++.yui-carousel-vertical .yui-carousel-element {
++    height:320000px;
++}
++
++.yui-skin-sam .yui-carousel-nav select {
++    position:static;
++}
++
++.yui-carousel .yui-carousel-item-selected {
++    border: 1px dashed #000;
++    margin: 1px;
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/carousel/assets/skins/sam/ajax-loader.gif b/pylons_app/public/js/yui/carousel/assets/skins/sam/ajax-loader.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..fe2cd23b3a3c017ae6acfd291135a998e2f8ee74
+GIT binary patch
+literal 3208
+zc$~$Tdr(tX9>*`aH#d)ab@kq01A!Wlh)@ebf$~%#K!AWe1O!Eq7&V9r@(>6D;gJW(
+zGlZ7`C4s~ct%#t4R?9;QYH{#|kE#o_6+uO<W7l>&>q0xbvw!f%&g@M0{CVb_IrI7c
+zzTfZ6;Rg7*xW+R9Ch!gbK7RbTd-v|gj~{n+b=|&wyT89*DwQ@gG)zrR&Cbq_jg4hw
+zWC(>q;9tw)BeKyqViU(J)OU>?8#J2V`iCheWmkOKE&($mAx+4P-y5H~FDYJNmvCTr
+z5@7KQM4`@|T0MVz{!sv$S~47v5U-sXnd0*#R!x4WaZ5PCOBr!?HA%Z>)1)oi$=?3j
+zeoeB4sJic4wh3X0yVW3@W7KFz2(Y#I&7ZT%Ys1ncBdE|~t!sqS#n@XeHu^=f<{f>r
+zU1tR}Qbs1%GX|pWp+SWi{(PzVA=t}P!KOsTHpa@`DFh<es%<>(t~IFq^(C5<r<yv=
+z>)GeerLn5~Q;UzJ#CZ7U+2!Md#TRNRR}}oO@hztOp%C9aZcu$5H)fk%ujeDLzlMZ0
+zrb?dyGqL;up`GhX&(uBd^N#H-eYb1U9D87kRg6h@17G+63$f44v&Xc~jGTz^bD}l*
+zRo>Nv!vo3)KAn3pP;#mF<*6V;lVHO1%}Pnk{!GU6a^(PO3^8L-8f`<p2_~NDGd{{B
+zLuVid`fn@43p*6JKSp&latQ1C?r;=r!Xk*ELo_IF#a_0IT29+n%H5OA&IOA-@;xX;
+zTQyr{!m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<|8{_@oOJgTFtH(tL%d7EXCl_~o_;g^02h46
+zcuo6h+lM~yFVww2L9;WNK6=t;!5}>UpZLk>H)7-8`IoTCYnKrXol4=oZoE(x-&?nr
+z8Ho{*Y)(L;*?vB6g={CUN`Z-8C`H-viW--O1F9N&eM7ZYRuEO`CbuWT@IklWd<K=&
+z-p)xE=K>eHNyVnV!p_9g?IdS_0$v8@RfucvC<H<0P!Ib^@<TAj-%l~&x*iMeXHh4(
+zH@=<bOeDSo4(S;W->$RU_Nz0k?Tv-ZX7MM4DEWVrfJpQYc*+1>8Q8n`!^SnKJm(5(
+zhYA%O30NW?Hnu@bs7rz#_@CLV=AzCN!u3yh(R3YF__Db}Vdtz7oY6CK39zVI_^_Ww
+zN>3-H*gG?$o#4U%_c*Cp8bS<N;Y-O5QK{svQ6yN?(s<0ZMeo>jj1H;W8aq^V?oqWI
+zdnyQudz|SE@}+_LT-(c-^#HNNG&pH_H+Jz7QGDR$5Px}eKj?<#Zu>0Cc4WWtkB|v3
+xZam~x3J-YOxp9LXFr&I9_yx$ld2m$s!*V>|4D->DyvL3pWT&|Vxc~br@lWjkwJrbv
+
+diff --git a/pylons_app/public/js/yui/carousel/assets/skins/sam/carousel-skin.css b/pylons_app/public/js/yui/carousel/assets/skins/sam/carousel-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/carousel/assets/skins/sam/carousel-skin.css
+@@ -0,0 +1,142 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-carousel,
++.yui-skin-sam .yui-carousel-vertical {
++    border: 1px solid #808080;
++}
++
++.yui-skin-sam .yui-carousel-nav {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++    padding: 3px;
++    text-align: right;
++}
++
++.yui-skin-sam .yui-carousel-button {
++    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -600px;
++    float: right;
++    height: 19px;
++    margin: 5px;
++    overflow: hidden;
++    width: 40px;
++}
++
++.yui-skin-sam .yui-carousel-vertical .yui-carousel-button {
++    background-position: 0 -800px;
++}
++
++.yui-skin-sam .yui-carousel-button-disabled {
++    background-position: 0 -2000px;
++}
++
++.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled {
++    background-position: 0 -2100px;
++}
++
++.yui-skin-sam .yui-carousel-button input,
++.yui-skin-sam .yui-carousel-button button {
++    background-color: transparent;
++    border: 0;
++    cursor: pointer;
++    display: block;
++    height: 44px;
++    margin: -2px 0 0 -2px;
++    padding: 0 0 0 50px;
++}
++
++.yui-skin-sam span.yui-carousel-first-button {
++    background-position: 0px -550px;
++    margin-left: -100px;
++    margin-right: 50px;
++   *margin: 5px 5px 5px -90px;
++}
++
++.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button {
++    background-position: 0px -750px;
++}
++
++.yui-skin-sam span.yui-carousel-first-button-disabled {
++    background-position: 0 -1950px;
++}
++
++.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled {
++    background-position: 0 -2050px;
++}
++
++.yui-skin-sam .yui-carousel-nav ul {
++    float: right;
++    height: 19px;
++    margin: 0;
++    margin-left: -220px;
++    margin-right: 100px;
++   *margin-left: -160px;
++   *margin-right: 0;
++    padding: 0;
++}
++
++.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul {
++    *margin-left: -170px;
++}
++
++.yui-skin-sam .yui-carousel-nav select {
++    position: relative;
++   *right: 50px;
++    top: 4px;
++}
++
++.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select {
++    position: static;
++}
++
++.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,
++.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select {
++    float: none;
++    margin: 0;
++   *zoom: 1;
++}
++
++.yui-skin-sam .yui-carousel-nav ul li {
++    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;
++    cursor: pointer;
++    float: left;
++    height: 9px;
++    list-style: none;
++    margin: 10px 0 0 5px;
++    overflow: hidden;
++    padding: 0;
++    width: 9px;
++}
++
++.yui-skin-sam .yui-carousel-nav ul:after {
++    content: ".";
++    display: block;
++    height: 0;
++    clear: both;
++    visibility: hidden;
++}
++
++.yui-skin-sam .yui-carousel-nav ul li a {
++    display:block;
++    width: 100%;
++    height: 100%;
++    text-indent: -10000px;
++    text-align:left;
++    overflow:hidden;
++}
++
++.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus {
++    outline: 1px dotted #000;
++}
++
++.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected {
++    background-position: 0 -700px;
++}
++
++.yui-skin-sam .yui-carousel-item-loading {
++    background: url(ajax-loader.gif) no-repeat 50% 50%;
++    position: absolute;
++    text-indent: -150px;
++}
+diff --git a/pylons_app/public/js/yui/carousel/assets/skins/sam/carousel.css b/pylons_app/public/js/yui/carousel/assets/skins/sam/carousel.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/carousel/assets/skins/sam/carousel.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-carousel{visibility:hidden;overflow:hidden;position:relative;text-align:left;zoom:1;}.yui-carousel.yui-carousel-visible{visibility:visible;}.yui-carousel-content{overflow:hidden;position:relative;text-align:center;}.yui-carousel-element li{border:1px solid #ccc;list-style:none;margin:1px;overflow:hidden;padding:0;position:absolute;text-align:center;}.yui-carousel-vertical .yui-carousel-element li{display:block;float:none;}.yui-log .carousel{background:#f2e886;}.yui-carousel-nav{zoom:1;}.yui-carousel-nav:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-carousel-button-focus{outline:1px dotted #000;}.yui-carousel-min-width{min-width:115px;}.yui-carousel-element{overflow:hidden;position:relative;margin:0 auto;padding:0;text-align:left;*margin:0;}.yui-carousel-horizontal .yui-carousel-element{width:320000px;}.yui-carousel-vertical .yui-carousel-element{height:320000px;}.yui-skin-sam .yui-carousel-nav select{position:static;}.yui-carousel .yui-carousel-item-selected{border:1px dashed #000;margin:1px;}.yui-skin-sam .yui-carousel,.yui-skin-sam .yui-carousel-vertical{border:1px solid #808080;}.yui-skin-sam .yui-carousel-nav{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;padding:3px;text-align:right;}.yui-skin-sam .yui-carousel-button{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -600px;float:right;height:19px;margin:5px;overflow:hidden;width:40px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button{background-position:0 -800px;}.yui-skin-sam .yui-carousel-button-disabled{background-position:0 -2000px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-button-disabled{background-position:0 -2100px;}.yui-skin-sam .yui-carousel-button input,.yui-skin-sam .yui-carousel-button button{background-color:transparent;border:0;cursor:pointer;display:block;height:44px;margin:-2px 0 0 -2px;padding:0 0 0 50px;}.yui-skin-sam span.yui-carousel-first-button{background-position:0 -550px;margin-left:-100px;margin-right:50px;*margin:5px 5px 5px -90px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button{background-position:0 -750px;}.yui-skin-sam span.yui-carousel-first-button-disabled{background-position:0 -1950px;}.yui-skin-sam .yui-carousel-vertical span.yui-carousel-first-button-disabled{background-position:0 -2050px;}.yui-skin-sam .yui-carousel-nav ul{float:right;height:19px;margin:0;margin-left:-220px;margin-right:100px;*margin-left:-160px;*margin-right:0;padding:0;}.yui-skin-sam .yui-carousel-min-width .yui-carousel-nav ul{*margin-left:-170px;}.yui-skin-sam .yui-carousel-nav select{position:relative;*right:50px;top:4px;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{position:static;}.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav ul,.yui-skin-sam .yui-carousel-vertical .yui-carousel-nav select{float:none;margin:0;*zoom:1;}.yui-skin-sam .yui-carousel-nav ul li{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -650px;cursor:pointer;float:left;height:9px;list-style:none;margin:10px 0 0 5px;overflow:hidden;padding:0;width:9px;}.yui-skin-sam .yui-carousel-nav ul:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.yui-skin-sam .yui-carousel-nav ul li a{display:block;width:100%;height:100%;text-indent:-10000px;text-align:left;overflow:hidden;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-focus{outline:1px dotted #000;}.yui-skin-sam .yui-carousel-nav ul li.yui-carousel-nav-page-selected{background-position:0 -700px;}.yui-skin-sam .yui-carousel-item-loading{background:url(ajax-loader.gif) no-repeat 50% 50%;position:absolute;text-indent:-150px;}
+diff --git a/pylons_app/public/js/yui/carousel/carousel-debug.js b/pylons_app/public/js/yui/carousel/carousel-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/carousel/carousel-debug.js
+@@ -0,0 +1,4390 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Carousel module provides a widget for browsing among a set of like
++ * objects represented pictorially.
++ *
++ * @module carousel
++ * @requires yahoo, dom, event, element
++ * @optional animation
++ * @namespace YAHOO.widget
++ * @title Carousel Widget
++ * @beta
++ */
++(function () {
++
++    var WidgetName;             // forward declaration
++
++    /**
++     * The Carousel widget.
++     *
++     * @class Carousel
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param el {HTMLElement | String} The HTML element that represents the
++     * the container that houses the Carousel.
++     * @param cfg {Object} (optional) The configuration values
++     */
++    YAHOO.widget.Carousel = function (el, cfg) {
++        YAHOO.log("Component creation", WidgetName);
++
++        YAHOO.widget.Carousel.superclass.constructor.call(this, el, cfg);
++    };
++
++    /*
++     * Private variables of the Carousel component
++     */
++
++    /* Some abbreviations to avoid lengthy typing and lookups. */
++    var Carousel    = YAHOO.widget.Carousel,
++        Dom         = YAHOO.util.Dom,
++        Event       = YAHOO.util.Event,
++        JS          = YAHOO.lang;
++
++    /**
++     * The widget name.
++     * @private
++     * @static
++     */
++    WidgetName = "Carousel";
++
++    /**
++     * The internal table of Carousel instances.
++     * @private
++     * @static
++     */
++    var instances = {},
++
++    /*
++     * Custom events of the Carousel component
++     */
++
++    /**
++     * @event afterScroll
++     * @description Fires when the Carousel has scrolled to the previous or
++     * next page.  Passes back the index of the first and last visible items in
++     * the Carousel.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    afterScrollEvent = "afterScroll",
++
++    /**
++     * @event allItemsRemovedEvent
++     * @description Fires when all items have been removed from the Carousel.
++     * See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    allItemsRemovedEvent = "allItemsRemoved",
++
++    /**
++     * @event beforeHide
++     * @description Fires before the Carousel is hidden.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforeHideEvent = "beforeHide",
++
++    /**
++     * @event beforePageChange
++     * @description Fires when the Carousel is about to scroll to the previous
++     * or next page.  Passes back the page number of the current page.  Note
++     * that the first page number is zero.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforePageChangeEvent = "beforePageChange",
++
++    /**
++     * @event beforeScroll
++     * @description Fires when the Carousel is about to scroll to the previous
++     * or next page.  Passes back the index of the first and last visible items
++     * in the Carousel and the direction (backward/forward) of the scroll.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforeScrollEvent = "beforeScroll",
++
++    /**
++     * @event beforeShow
++     * @description Fires when the Carousel is about to be shown.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforeShowEvent = "beforeShow",
++
++    /**
++     * @event blur
++     * @description Fires when the Carousel loses focus.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    blurEvent = "blur",
++
++    /**
++     * @event focus
++     * @description Fires when the Carousel gains focus.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    focusEvent = "focus",
++
++    /**
++     * @event hide
++     * @description Fires when the Carousel is hidden.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    hideEvent = "hide",
++
++    /**
++     * @event itemAdded
++     * @description Fires when an item has been added to the Carousel.  Passes
++     * back the content of the item that would be added, the index at which the
++     * item would be added, and the event itself.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemAddedEvent = "itemAdded",
++
++    /**
++     * @event itemRemoved
++     * @description Fires when an item has been removed from the Carousel.
++     * Passes back the content of the item that would be removed, the index
++     * from which the item would be removed, and the event itself.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemRemovedEvent = "itemRemoved",
++
++    /**
++     * @event itemReplaced
++     * @description Fires when an item has been replaced in the Carousel.
++     * Passes back the content of the item that was replaced, the content
++     * of the new item, the index where the replacement occurred, and the event
++     * itself.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemReplacedEvent = "itemReplaced",
++
++    /**
++     * @event itemSelected
++     * @description Fires when an item has been selected in the Carousel.
++     * Passes back the index of the selected item in the Carousel.  Note, that
++     * the index begins from zero.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemSelectedEvent = "itemSelected",
++
++    /**
++     * @event loadItems
++     * @description Fires when the Carousel needs more items to be loaded for
++     * displaying them.  Passes back the first and last visible items in the
++     * Carousel, and the number of items needed to be loaded.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    loadItemsEvent = "loadItems",
++
++    /**
++     * @event navigationStateChange
++     * @description Fires when the state of either one of the navigation
++     * buttons are changed from enabled to disabled or vice versa.  Passes back
++     * the state (true/false) of the previous and next buttons.  The value true
++     * signifies the button is enabled, false signifies disabled.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    navigationStateChangeEvent = "navigationStateChange",
++
++    /**
++     * @event pageChange
++     * @description Fires after the Carousel has scrolled to the previous or
++     * next page.  Passes back the page number of the current page.  Note
++     * that the first page number is zero.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    pageChangeEvent = "pageChange",
++
++    /*
++     * Internal event.
++     * @event render
++     * @description Fires when the Carousel is rendered.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    renderEvent = "render",
++
++    /**
++     * @event show
++     * @description Fires when the Carousel is shown.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    showEvent = "show",
++
++    /**
++     * @event startAutoPlay
++     * @description Fires when the auto play has started in the Carousel.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    startAutoPlayEvent = "startAutoPlay",
++
++    /**
++     * @event stopAutoPlay
++     * @description Fires when the auto play has been stopped in the Carousel.
++     * See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    stopAutoPlayEvent = "stopAutoPlay",
++
++    /*
++     * Internal event.
++     * @event uiUpdateEvent
++     * @description Fires when the UI has been updated.
++     * See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    uiUpdateEvent = "uiUpdate";
++
++    /*
++     * Private helper functions used by the Carousel component
++     */
++
++   /**
++     * Set multiple styles on one element.
++     * @method setStyles
++     * @param el {HTMLElement} The element to set styles on
++     * @param style {Object} top:"10px", left:"0px", etc.
++     * @private
++     */
++     function setStyles(el, styles) {
++         var which;
++
++         for (which in styles) {
++             if (styles.hasOwnProperty(which)) {
++                 Dom.setStyle(el, which, styles[which]);
++             }
++         }
++     }
++
++    /**
++     * Create an element, set its class name and optionally install the element
++     * to its parent.
++     * @method createElement
++     * @param el {String} The element to be created
++     * @param attrs {Object} Configuration of parent, class and id attributes.
++     * If the content is specified, it is inserted after creation of the
++     * element. The content can also be an HTML element in which case it would
++     * be appended as a child node of the created element.
++     * @private
++     */
++    function createElement(el, attrs) {
++        var newEl = document.createElement(el);
++
++        attrs = attrs || {};
++        if (attrs.className) {
++            Dom.addClass(newEl, attrs.className);
++        }
++
++        if (attrs.styles) {
++            setStyles(newEl, attrs.styles);
++        }
++
++        if (attrs.parent) {
++            attrs.parent.appendChild(newEl);
++        }
++
++        if (attrs.id) {
++            newEl.setAttribute("id", attrs.id);
++        }
++
++        if (attrs.content) {
++            if (attrs.content.nodeName) {
++                newEl.appendChild(attrs.content);
++            } else {
++                newEl.innerHTML = attrs.content;
++            }
++        }
++
++        return newEl;
++    }
++
++    /**
++     * Get the computed style of an element.
++     *
++     * @method getStyle
++     * @param el {HTMLElement} The element for which the style needs to be
++     * returned.
++     * @param style {String} The style attribute
++     * @param type {String} "int", "float", etc. (defaults to int)
++     * @private
++     */
++    function getStyle(el, style, type) {
++        var value;
++
++        if (!el) {
++            return 0;
++        }
++
++        function getStyleIntVal(el, style) {
++            var val;
++
++            /*
++             * XXX: Safari calculates incorrect marginRight for an element
++             * which has its parent element style set to overflow: hidden
++             * https://bugs.webkit.org/show_bug.cgi?id=13343
++             * Let us assume marginLeft == marginRight
++             */
++            if (style == "marginRight" && YAHOO.env.ua.webkit) {
++                val = parseInt(Dom.getStyle(el, "marginLeft"), 10);
++            } else {
++                val = parseInt(Dom.getStyle(el, style), 10);
++            }
++
++            return JS.isNumber(val) ? val : 0;
++        }
++
++        function getStyleFloatVal(el, style) {
++            var val;
++
++            /*
++             * XXX: Safari calculates incorrect marginRight for an element
++             * which has its parent element style set to overflow: hidden
++             * https://bugs.webkit.org/show_bug.cgi?id=13343
++             * Let us assume marginLeft == marginRight
++             */
++            if (style == "marginRight" && YAHOO.env.ua.webkit) {
++                val = parseFloat(Dom.getStyle(el, "marginLeft"));
++            } else {
++                val = parseFloat(Dom.getStyle(el, style));
++            }
++
++            return JS.isNumber(val) ? val : 0;
++        }
++
++        if (typeof type == "undefined") {
++            type = "int";
++        }
++
++        switch (style) {
++        case "height":
++            value = el.offsetHeight;
++            if (value > 0) {
++                value += getStyleIntVal(el, "marginTop")        +
++                        getStyleIntVal(el, "marginBottom");
++            } else {
++                value = getStyleFloatVal(el, "height")          +
++                        getStyleIntVal(el, "marginTop")         +
++                        getStyleIntVal(el, "marginBottom")      +
++                        getStyleIntVal(el, "borderTopWidth")    +
++                        getStyleIntVal(el, "borderBottomWidth") +
++                        getStyleIntVal(el, "paddingTop")        +
++                        getStyleIntVal(el, "paddingBottom");
++            }
++            break;
++        case "width":
++            value = el.offsetWidth;
++            if (value > 0) {
++                value += getStyleIntVal(el, "marginLeft")       +
++                        getStyleIntVal(el, "marginRight");
++            } else {
++                value = getStyleFloatVal(el, "width")           +
++                        getStyleIntVal(el, "marginLeft")        +
++                        getStyleIntVal(el, "marginRight")       +
++                        getStyleIntVal(el, "borderLeftWidth")   +
++                        getStyleIntVal(el, "borderRightWidth")  +
++                        getStyleIntVal(el, "paddingLeft")       +
++                        getStyleIntVal(el, "paddingRight");
++            }
++            break;
++        default:
++            if (type == "int") {
++                value = getStyleIntVal(el, style);
++            } else if (type == "float") {
++                value = getStyleFloatVal(el, style);
++            } else {
++                value = Dom.getStyle(el, style);
++            }
++            break;
++        }
++
++        return value;
++    }
++
++    /**
++     * Compute and return the height or width of a single Carousel item
++     * depending upon the orientation.
++     *
++     * @method getCarouselItemSize
++     * @param which {String} "height" or "width" to be returned.  If this is
++     * passed explicitly, the calculated size is not cached.
++     * @private
++     */
++    function getCarouselItemSize(which) {
++        var carousel = this,
++            child,
++            item,
++            size     = 0,
++            first = carousel.get("firstVisible"),
++            vertical = false;
++
++        if (carousel._itemsTable.numItems === 0) {
++            return 0;
++        }
++
++        item = carousel._itemsTable.items[first] ||
++               carousel._itemsTable.loading[first];
++
++        if (JS.isUndefined(item)) {
++            return 0;
++        }
++
++        child = Dom.get(item.id);
++
++        if (typeof which == "undefined") {
++            vertical = carousel.get("isVertical");
++        } else {
++            vertical = which == "height";
++        }
++
++        if (this._itemAttrCache[which]) {
++            return this._itemAttrCache[which];
++        }
++
++        if (vertical) {
++            size = getStyle(child, "height");
++        } else {
++            size = getStyle(child, "width");
++        }
++
++        this._itemAttrCache[which] = size;
++
++        return size;
++    }
++
++    /**
++     * Return the size of a part of the item (reveal).
++     *
++     * @method getRevealSize
++     * @private
++     */
++    function getRevealSize() {
++        var carousel = this, isVertical, sz;
++
++        isVertical = carousel.get("isVertical");
++        sz  = getCarouselItemSize.call(carousel,
++                isVertical ? "height" : "width");
++        return (sz * carousel.get("revealAmount") / 100);
++    }
++
++    /**
++     * Compute and return the position of a Carousel item based on its
++     * position.
++     *
++     * @method getCarouselItemPosition
++     * @param position {Number} The position of the Carousel item.
++     * @private
++     */
++    function getCarouselItemPosition(pos) {
++        var carousel    = this,
++            itemsPerRow = carousel._cols,
++            itemsPerCol = carousel._rows,
++            page,
++            sz,
++            isVertical,
++            itemsCol,
++            itemsRow,
++            sentinel,
++            delta = 0,
++            top,
++            left,
++            rsz,
++            styles = {},
++            index = 0,
++            itemsTable = carousel._itemsTable,
++            items = itemsTable.items,
++            loading = itemsTable.loading;
++
++        isVertical = carousel.get("isVertical");
++        sz  = getCarouselItemSize.call(carousel,
++                isVertical ? "height" : "width");
++        rsz = getRevealSize.call(carousel);
++
++        // adjust for items not yet loaded
++        while (index < pos) {
++            if (!items[index] && !loading[index]) {
++                delta++;
++            }
++            index++;
++        }
++        pos -= delta;
++
++        if (itemsPerCol) {
++            page = this.getPageForItem(pos);
++            if (isVertical) {
++                itemsRow = Math.floor(pos/itemsPerRow);
++                delta = itemsRow;
++                top = delta * sz;
++                styles.top  = (top + rsz) + "px";
++
++                sz  = getCarouselItemSize.call(carousel, "width");
++
++                itemsCol = pos % itemsPerRow;
++                delta = itemsCol;
++                left = delta * sz;
++                styles.left = left + "px";
++            } else {
++                itemsCol = pos % itemsPerRow;
++                sentinel = (page - 1) * itemsPerRow;
++                delta = itemsCol + sentinel;
++                left = delta * sz;
++                styles.left = (left + rsz) + "px";
++
++                sz  = getCarouselItemSize.call(carousel, "height");
++
++                itemsRow = Math.floor(pos/itemsPerRow);
++                sentinel = (page - 1) * itemsPerCol;
++                delta = itemsRow - sentinel;
++                top = delta * sz;
++
++                styles.top  = top + "px";
++            }
++        } else {
++        if (isVertical) {
++            styles.left = 0;
++            styles.top  = ((pos * sz) + rsz) + "px";
++        } else {
++            styles.top  = 0;
++            styles.left = ((pos * sz) + rsz) + "px";
++        }
++        }
++
++        return styles;
++    }
++
++    /**
++     * Return the index of the first item in the view port for displaying item
++     * in "pos".
++     *
++     * @method getFirstVisibleForPosition
++     * @param pos {Number} The position of the item to be displayed
++     * @private
++     */
++    function getFirstVisibleForPosition(pos) {
++        var num = this.get("numVisible");
++        return Math.floor(pos / num) * num;
++    }
++
++    /**
++     * Return the scrolling offset size given the number of elements to
++     * scroll.
++     *
++     * @method getScrollOffset
++     * @param delta {Number} The delta number of elements to scroll by.
++     * @private
++     */
++    function getScrollOffset(delta) {
++        var itemSize = 0,
++            size     = 0;
++
++        itemSize = getCarouselItemSize.call(this);
++        size = itemSize * delta;
++
++        return size;
++    }
++
++    /**
++     * Scroll the Carousel by a page backward.
++     *
++     * @method scrollPageBackward
++     * @param {Event} ev The event object
++     * @param {Object} obj The context object
++     * @private
++     */
++    function scrollPageBackward(ev, obj) {
++        obj.scrollPageBackward();
++        Event.preventDefault(ev);
++    }
++
++    /**
++     * Scroll the Carousel by a page forward.
++     *
++     * @method scrollPageForward
++     * @param {Event} ev The event object
++     * @param {Object} obj The context object
++     * @private
++     */
++    function scrollPageForward(ev, obj) {
++        obj.scrollPageForward();
++        Event.preventDefault(ev);
++    }
++
++    /**
++     * Set the selected item.
++     *
++     * @method setItemSelection
++     * @param {Number} newpos The index of the new position
++     * @param {Number} oldpos The index of the previous position
++     * @private
++     */
++     function setItemSelection(newpos, oldpos) {
++        var carousel = this,
++            cssClass   = carousel.CLASSES,
++            el,
++            firstItem  = carousel._firstItem,
++            isCircular = carousel.get("isCircular"),
++            numItems   = carousel.get("numItems"),
++            numVisible = carousel.get("numVisible"),
++            position   = oldpos,
++            sentinel   = firstItem + numVisible - 1;
++
++        if (position >= 0 && position < numItems) {
++            if (!JS.isUndefined(carousel._itemsTable.items[position])) {
++                el = Dom.get(carousel._itemsTable.items[position].id);
++                if (el) {
++                    Dom.removeClass(el, cssClass.SELECTED_ITEM);
++                }
++            }
++        }
++
++        if (JS.isNumber(newpos)) {
++            newpos = parseInt(newpos, 10);
++            newpos = JS.isNumber(newpos) ? newpos : 0;
++        } else {
++            newpos = firstItem;
++        }
++
++        if (JS.isUndefined(carousel._itemsTable.items[newpos])) {
++            newpos = getFirstVisibleForPosition.call(carousel, newpos);
++            carousel.scrollTo(newpos); // still loading the item
++        }
++
++        if (!JS.isUndefined(carousel._itemsTable.items[newpos])) {
++            el = Dom.get(carousel._itemsTable.items[newpos].id);
++            if (el) {
++                Dom.addClass(el, cssClass.SELECTED_ITEM);
++            }
++        }
++
++        if (newpos < firstItem || newpos > sentinel) { // out of focus
++            newpos = getFirstVisibleForPosition.call(carousel, newpos);
++            carousel.scrollTo(newpos);
++        }
++    }
++
++    /**
++     * Fire custom events for enabling/disabling navigation elements.
++     *
++     * @method syncNavigation
++     * @private
++     */
++    function syncNavigation() {
++        var attach   = false,
++            carousel = this,
++            cssClass = carousel.CLASSES,
++            i,
++            navigation,
++            sentinel;
++
++        // Don't do anything if the Carousel is not rendered
++        if (!carousel._hasRendered) {
++            return;
++        }
++
++        navigation = carousel.get("navigation");
++        sentinel   = carousel._firstItem + carousel.get("numVisible");
++
++        if (navigation.prev) {
++            if (carousel.get("numItems") === 0 || carousel._firstItem === 0) {
++                if (carousel.get("numItems") === 0 ||
++                   !carousel.get("isCircular")) {
++                    Event.removeListener(navigation.prev, "click",
++                            scrollPageBackward);
++                    Dom.addClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
++                    for (i = 0; i < carousel._navBtns.prev.length; i++) {
++                        carousel._navBtns.prev[i].setAttribute("disabled",
++                                "true");
++                    }
++                    carousel._prevEnabled = false;
++                } else {
++                    attach = !carousel._prevEnabled;
++                }
++            } else {
++                attach = !carousel._prevEnabled;
++            }
++
++            if (attach) {
++                Event.on(navigation.prev, "click", scrollPageBackward,
++                         carousel);
++                Dom.removeClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
++                for (i = 0; i < carousel._navBtns.prev.length; i++) {
++                    carousel._navBtns.prev[i].removeAttribute("disabled");
++                }
++                carousel._prevEnabled = true;
++            }
++        }
++
++        attach = false;
++        if (navigation.next) {
++            if (sentinel >= carousel.get("numItems")) {
++                if (!carousel.get("isCircular")) {
++                    Event.removeListener(navigation.next, "click",
++                            scrollPageForward);
++                    Dom.addClass(navigation.next, cssClass.DISABLED);
++                    for (i = 0; i < carousel._navBtns.next.length; i++) {
++                        carousel._navBtns.next[i].setAttribute("disabled",
++                                "true");
++                    }
++                    carousel._nextEnabled = false;
++                } else {
++                    attach = !carousel._nextEnabled;
++                }
++            } else {
++                attach = !carousel._nextEnabled;
++            }
++
++            if (attach) {
++                Event.on(navigation.next, "click", scrollPageForward,
++                         carousel);
++                Dom.removeClass(navigation.next, cssClass.DISABLED);
++                for (i = 0; i < carousel._navBtns.next.length; i++) {
++                    carousel._navBtns.next[i].removeAttribute("disabled");
++                }
++                carousel._nextEnabled = true;
++            }
++        }
++
++        carousel.fireEvent(navigationStateChangeEvent,
++                { next: carousel._nextEnabled, prev: carousel._prevEnabled });
++    }
++
++    /**
++     * Synchronize and redraw the Pager UI if necessary.
++     *
++     * @method syncPagerUi
++     * @private
++     */
++    function syncPagerUi(page) {
++        var carousel = this, numPages, numVisible;
++
++        // Don't do anything if the Carousel is not rendered
++        if (!carousel._hasRendered) {
++            return;
++        }
++
++        numVisible = carousel.get("numVisible");
++
++        if (!JS.isNumber(page)) {
++            page = Math.floor(carousel.get("selectedItem") / numVisible);
++        }
++
++        numPages = Math.ceil(carousel.get("numItems") / numVisible);
++
++        carousel._pages.num = numPages;
++        carousel._pages.cur = page;
++
++        if (numPages > carousel.CONFIG.MAX_PAGER_BUTTONS) {
++            carousel._updatePagerMenu();
++        } else {
++            carousel._updatePagerButtons();
++        }
++    }
++
++    /**
++     * Get full dimensions of an element.
++     *
++     * @method getDimensions
++     * @param {Object} el The element to get the dimensions of
++     * @param {String} which Get the height or width of an element
++     * @private
++     */
++    function getDimensions(el, which) {
++        switch (which) {
++        case 'height':
++            return  getStyle(el, "marginTop")        +
++                    getStyle(el, "marginBottom")     +
++                    getStyle(el, "paddingTop")       +
++                    getStyle(el, "paddingBottom")    +
++                    getStyle(el, "borderTopWidth")   +
++                    getStyle(el, "borderBottomWidth");
++        case 'width':
++            return   getStyle(el, "marginLeft")      +
++                     getStyle(el, "marginRight")     +
++                     getStyle(el, "paddingLeft")     +
++                     getStyle(el, "paddingRight")    +
++                     getStyle(el, "borderLeftWidth") +
++                     getStyle(el, "borderRightWidth");
++        default:
++            break;
++        }
++
++        return getStyle(el, which);
++    }
++
++    /**
++     * Handle UI update.
++     * Call the appropriate methods on events fired when an item is added, or
++     * removed for synchronizing the DOM.
++     *
++     * @method syncUi
++     * @param {Object} o The item that needs to be added or removed
++     * @private
++     */
++    function syncUi(o) {
++        var carousel = this;
++
++        if (!JS.isObject(o)) {
++            return;
++        }
++
++        switch (o.ev) {
++        case itemAddedEvent:
++            carousel._syncUiForItemAdd(o);
++            break;
++        case itemRemovedEvent:
++            carousel._syncUiForItemRemove(o);
++            break;
++        case itemReplacedEvent:
++            carousel._syncUiForItemReplace(o);
++            break;
++        case loadItemsEvent:
++            carousel._syncUiForLazyLoading(o);
++            break;
++        }
++
++        carousel.fireEvent(uiUpdateEvent);
++    }
++
++    /**
++     * Update the state variables after scrolling the Carousel view port.
++     *
++     * @method updateStateAfterScroll
++     * @param {Integer} item The index to which the Carousel has scrolled to.
++     * @param {Integer} sentinel The last element in the view port.
++     * @private
++     */
++    function updateStateAfterScroll(item, sentinel) {
++        var carousel   = this,
++            page       = carousel.get("currentPage"),
++            newPage,
++            numPerPage = carousel.get("numVisible");
++
++        newPage = parseInt(carousel._firstItem / numPerPage, 10);
++        if (newPage != page) {
++            carousel.setAttributeConfig("currentPage", { value: newPage });
++            carousel.fireEvent(pageChangeEvent, newPage);
++        }
++
++        if (carousel.get("selectOnScroll")) {
++            if (carousel.get("selectedItem") != carousel._selectedItem) {
++                carousel.set("selectedItem", carousel._selectedItem);
++            }
++        }
++
++        clearTimeout(carousel._autoPlayTimer);
++        delete carousel._autoPlayTimer;
++        if (carousel.isAutoPlayOn()) {
++            carousel.startAutoPlay();
++        }
++
++        carousel.fireEvent(afterScrollEvent,
++                           { first: carousel._firstItem,
++                             last: sentinel },
++                           carousel);
++    }
++
++    /*
++     * Static members and methods of the Carousel component
++     */
++
++    /**
++     * Return the appropriate Carousel object based on the id associated with
++     * the Carousel element or false if none match.
++     * @method getById
++     * @public
++     * @static
++     */
++    Carousel.getById = function (id) {
++        return instances[id] ? instances[id].object : false;
++    };
++
++    YAHOO.extend(Carousel, YAHOO.util.Element, {
++
++        /*
++         * Internal variables used within the Carousel component
++         */
++
++         /**
++         * Number of rows for a multirow carousel.
++         *
++         * @property _rows
++         * @private
++         */
++        _rows: null,
++
++        /**
++         * Number of cols for a multirow carousel.
++         *
++         * @property _cols
++         * @private
++         */
++        _cols: null,
++
++        /**
++         * The Animation object.
++         *
++         * @property _animObj
++         * @private
++         */
++        _animObj: null,
++
++        /**
++         * The Carousel element.
++         *
++         * @property _carouselEl
++         * @private
++         */
++        _carouselEl: null,
++
++        /**
++         * The Carousel clipping container element.
++         *
++         * @property _clipEl
++         * @private
++         */
++        _clipEl: null,
++
++        /**
++         * The current first index of the Carousel.
++         *
++         * @property _firstItem
++         * @private
++         */
++        _firstItem: 0,
++
++        /**
++         * Does the Carousel element have focus?
++         *
++         * @property _hasFocus
++         * @private
++         */
++        _hasFocus: false,
++
++        /**
++         * Is the Carousel rendered already?
++         *
++         * @property _hasRendered
++         * @private
++         */
++        _hasRendered: false,
++
++        /**
++         * Is the animation still in progress?
++         *
++         * @property _isAnimationInProgress
++         * @private
++         */
++        _isAnimationInProgress: false,
++
++        /**
++         * Is the auto-scrolling of Carousel in progress?
++         *
++         * @property _isAutoPlayInProgress
++         * @private
++         */
++        _isAutoPlayInProgress: false,
++
++        /**
++         * The table of items in the Carousel.
++         * The numItems is the number of items in the Carousel, items being the
++         * array of items in the Carousel.  The size is the size of a single
++         * item in the Carousel.  It is cached here for efficiency (to avoid
++         * computing the size multiple times).
++         *
++         * @property _itemsTable
++         * @private
++         */
++        _itemsTable: null,
++
++        /**
++         * The Carousel navigation buttons.
++         *
++         * @property _navBtns
++         * @private
++         */
++        _navBtns: null,
++
++        /**
++         * The Carousel navigation.
++         *
++         * @property _navEl
++         * @private
++         */
++        _navEl: null,
++
++        /**
++         * Status of the next navigation item.
++         *
++         * @property _nextEnabled
++         * @private
++         */
++        _nextEnabled: true,
++
++        /**
++         * The Carousel pages structure.
++         * This is an object of the total number of pages and the current page.
++         *
++         * @property _pages
++         * @private
++         */
++        _pages: null,
++
++        /**
++         * The Carousel pagination structure.
++         *
++         * @property _pagination
++         * @private
++         */
++        _pagination: {},
++
++        /**
++         * Status of the previous navigation item.
++         *
++         * @property _prevEnabled
++         * @private
++         */
++        _prevEnabled: true,
++
++        /**
++         * Whether the Carousel size needs to be recomputed or not?
++         *
++         * @property _recomputeSize
++         * @private
++         */
++        _recomputeSize: true,
++
++        /**
++         * Cache the Carousel item attributes.
++         *
++         * @property _itemAttrCache
++         * @private
++         */
++         _itemAttrCache: {},
++
++        /*
++         * CSS classes used by the Carousel component
++         */
++
++        CLASSES: {
++
++            /**
++             * The class name of the Carousel navigation buttons.
++             *
++             * @property BUTTON
++             * @default "yui-carousel-button"
++             */
++            BUTTON: "yui-carousel-button",
++
++            /**
++             * The class name of the Carousel element.
++             *
++             * @property CAROUSEL
++             * @default "yui-carousel"
++             */
++            CAROUSEL: "yui-carousel",
++
++            /**
++             * The class name of the container of the items in the Carousel.
++             *
++             * @property CAROUSEL_EL
++             * @default "yui-carousel-element"
++             */
++            CAROUSEL_EL: "yui-carousel-element",
++
++            /**
++             * The class name of the Carousel's container element.
++             *
++             * @property CONTAINER
++             * @default "yui-carousel-container"
++             */
++            CONTAINER: "yui-carousel-container",
++
++            /**
++             * The class name of the Carousel's container element.
++             *
++             * @property CONTENT
++             * @default "yui-carousel-content"
++             */
++            CONTENT: "yui-carousel-content",
++
++            /**
++             * The class name of a disabled navigation button.
++             *
++             * @property DISABLED
++             * @default "yui-carousel-button-disabled"
++             */
++            DISABLED: "yui-carousel-button-disabled",
++
++            /**
++             * The class name of the first Carousel navigation button.
++             *
++             * @property FIRST_NAV
++             * @default " yui-carousel-first-button"
++             */
++            FIRST_NAV: " yui-carousel-first-button",
++
++            /**
++             * The class name of a first disabled navigation button.
++             *
++             * @property FIRST_NAV_DISABLED
++             * @default "yui-carousel-first-button-disabled"
++             */
++            FIRST_NAV_DISABLED: "yui-carousel-first-button-disabled",
++
++            /**
++             * The class name of a first page element.
++             *
++             * @property FIRST_PAGE
++             * @default "yui-carousel-nav-first-page"
++             */
++            FIRST_PAGE: "yui-carousel-nav-first-page",
++
++            /**
++             * The class name of the Carousel navigation button that has focus.
++             *
++             * @property FOCUSSED_BUTTON
++             * @default "yui-carousel-button-focus"
++             */
++            FOCUSSED_BUTTON: "yui-carousel-button-focus",
++
++            /**
++             * The class name of a horizontally oriented Carousel.
++             *
++             * @property HORIZONTAL
++             * @default "yui-carousel-horizontal"
++             */
++            HORIZONTAL: "yui-carousel-horizontal",
++
++            /**
++             * The element to be used as the progress indicator when the item
++             * is still being loaded.
++             *
++             * @property ITEM_LOADING
++             * @default The progress indicator (spinner) image CSS class
++             */
++            ITEM_LOADING: "yui-carousel-item-loading",
++
++            /**
++             * The class name that will be set if the Carousel adjusts itself
++             * for a minimum width.
++             *
++             * @property MIN_WIDTH
++             * @default "yui-carousel-min-width"
++             */
++            MIN_WIDTH: "yui-carousel-min-width",
++
++            /**
++             * The navigation element container class name.
++             *
++             * @property NAVIGATION
++             * @default "yui-carousel-nav"
++             */
++            NAVIGATION: "yui-carousel-nav",
++
++            /**
++             * The class name of the next Carousel navigation button.
++             *
++             * @property NEXT_NAV
++             * @default " yui-carousel-next-button"
++             */
++            NEXT_NAV: " yui-carousel-next-button",
++
++            /**
++             * The class name of the next navigation link. This variable is
++             * not only used for styling, but also for identifying the link
++             * within the Carousel container.
++             *
++             * @property NEXT_PAGE
++             * @default "yui-carousel-next"
++             */
++            NEXT_PAGE: "yui-carousel-next",
++
++            /**
++             * The class name for the navigation container for prev/next.
++             *
++             * @property NAV_CONTAINER
++             * @default "yui-carousel-buttons"
++             */
++            NAV_CONTAINER: "yui-carousel-buttons",
++
++            /**
++              * The class name for an item in the pager UL or dropdown menu.
++              *
++              * @property PAGER_ITEM
++              * @default "yui-carousel-pager-item"
++              */
++            PAGER_ITEM: "yui-carousel-pager-item",
++
++            /**
++             * The class name for the pagination container
++             *
++             * @property PAGINATION
++             * @default "yui-carousel-pagination"
++             */
++            PAGINATION: "yui-carousel-pagination",
++
++            /**
++             * The class name of the focussed page navigation.  This class is
++             * specifically used for the ugly focus handling in Opera.
++             *
++             * @property PAGE_FOCUS
++             * @default "yui-carousel-nav-page-focus"
++             */
++            PAGE_FOCUS: "yui-carousel-nav-page-focus",
++
++            /**
++             * The class name of the previous navigation link. This variable
++             * is not only used for styling, but also for identifying the link
++             * within the Carousel container.
++             *
++             * @property PREV_PAGE
++             * @default "yui-carousel-prev"
++             */
++            PREV_PAGE: "yui-carousel-prev",
++
++            /**
++             * The class name of the selected item.
++             *
++             * @property SELECTED_ITEM
++             * @default "yui-carousel-item-selected"
++             */
++            SELECTED_ITEM: "yui-carousel-item-selected",
++
++            /**
++             * The class name of the selected paging navigation.
++             *
++             * @property SELECTED_NAV
++             * @default "yui-carousel-nav-page-selected"
++             */
++            SELECTED_NAV: "yui-carousel-nav-page-selected",
++
++            /**
++             * The class name of a vertically oriented Carousel.
++             *
++             * @property VERTICAL
++             * @default "yui-carousel-vertical"
++             */
++            VERTICAL: "yui-carousel-vertical",
++
++            /**
++             * The class name of a multirow Carousel.
++             *
++             * @property MULTI_ROW
++             * @default "yui-carousel-multi-row"
++             */
++            MULTI_ROW: "yui-carousel-multi-row",
++
++            /**
++             * The class name of a row in a multirow Carousel.
++             *
++             * @property ROW
++             * @default "yui-carousel-new-row"
++             */
++            ROW: "yui-carousel-row",
++
++            /**
++             * The class name of a vertical Carousel's container element.
++             *
++             * @property VERTICAL_CONTAINER
++             * @default "yui-carousel-vertical-container"
++             */
++            VERTICAL_CONTAINER: "yui-carousel-vertical-container",
++
++            /**
++             * The class name of a visible Carousel.
++             *
++             * @property VISIBLE
++             * @default "yui-carousel-visible"
++             */
++            VISIBLE: "yui-carousel-visible"
++
++        },
++
++        /*
++         * Configuration attributes for configuring the Carousel component
++         */
++
++        CONFIG: {
++
++            /**
++             * The offset of the first visible item in the Carousel.
++             *
++             * @property FIRST_VISIBLE
++             * @default 0
++             */
++            FIRST_VISIBLE: 0,
++
++            /**
++             * The minimum width of the horizontal Carousel container to support
++             * the navigation buttons.
++             *
++             * @property HORZ_MIN_WIDTH
++             * @default 180
++             */
++            HORZ_MIN_WIDTH: 180,
++
++            /**
++             * The maximum number of pager buttons allowed beyond which the UI
++             * of the pager would be a drop-down of pages instead of buttons.
++             *
++             * @property MAX_PAGER_BUTTONS
++             * @default 5
++             */
++            MAX_PAGER_BUTTONS: 5,
++
++            /**
++             * The minimum width of the vertical Carousel container to support
++             * the navigation buttons.
++             *
++             * @property VERT_MIN_WIDTH
++             * @default 155
++             */
++            VERT_MIN_WIDTH: 115,
++
++            /**
++             * The number of visible items in the Carousel.
++             *
++             * @property NUM_VISIBLE
++             * @default 3
++             */
++            NUM_VISIBLE: 3
++
++        },
++
++        /*
++         * Internationalizable strings in the Carousel component
++         */
++
++        STRINGS: {
++
++            /**
++             * The content to be used as the progress indicator when the item
++             * is still being loaded.
++             *
++             * @property ITEM_LOADING_CONTENT
++             * @default "Loading"
++             */
++            ITEM_LOADING_CONTENT: "Loading",
++
++            /**
++             * The next navigation button name/text.
++             *
++             * @property NEXT_BUTTON_TEXT
++             * @default "Next Page"
++             */
++            NEXT_BUTTON_TEXT: "Next Page",
++
++            /**
++             * The prefix text for the pager in case the UI is a drop-down.
++             *
++             * @property PAGER_PREFIX_TEXT
++             * @default "Go to page "
++             */
++            PAGER_PREFIX_TEXT: "Go to page ",
++
++            /**
++             * The previous navigation button name/text.
++             *
++             * @property PREVIOUS_BUTTON_TEXT
++             * @default "Previous Page"
++             */
++            PREVIOUS_BUTTON_TEXT: "Previous Page"
++
++        },
++
++        /*
++         * Public methods of the Carousel component
++         */
++
++        /**
++         * Insert or append an item to the Carousel.
++         * E.g. if Object: ({content:"Your Content", id:"", className:""}, index)
++         *
++         * @method addItem
++         * @public
++         * @param item {String | Object | HTMLElement} The item to be appended
++         * to the Carousel. If the parameter is a string, it is assumed to be
++         * the content of the newly created item. If the parameter is an
++         * object, it is assumed to supply the content and an optional class
++         * and an optional id of the newly created item.
++         * @param index {Number} optional The position to where in the list
++         * (starts from zero).
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        addItem: function (item, index) {
++            var carousel = this,
++                className,
++                content,
++                elId,
++                replaceItems = 0,
++                newIndex, // Add newIndex as workaround for undefined pos
++                numItems = carousel.get("numItems");
++
++            if (!item) {
++                return false;
++            }
++
++            if (JS.isString(item) || item.nodeName) {
++                content = item.nodeName ? item.innerHTML : item;
++            } else if (JS.isObject(item)) {
++                content = item.content;
++            } else {
++                YAHOO.log("Invalid argument to addItem", "error", WidgetName);
++                return false;
++            }
++
++            className = item.className || "";
++            elId      = item.id ? item.id : Dom.generateId();
++
++            if (JS.isUndefined(index)) {
++                carousel._itemsTable.items.push({
++                        item      : content,
++                        className : className,
++                        id        : elId
++                });
++                // Add newIndex as workaround for undefined pos
++                newIndex = carousel._itemsTable.items.length-1;
++            } else {
++                if (index < 0 || index > numItems) {
++                    YAHOO.log("Index out of bounds", "error", WidgetName);
++                    return false;
++                }
++
++                // make sure we splice into the correct position
++                if(!carousel._itemsTable.items[index]){
++                    carousel._itemsTable.items[index] = undefined;
++                    replaceItems = 1;
++                }
++
++                carousel._itemsTable.items.splice(index, replaceItems, {
++                        item      : content,
++                        className : className,
++                        id        : elId
++                });
++            }
++            carousel._itemsTable.numItems++;
++
++            if (numItems < carousel._itemsTable.items.length) {
++                carousel.set("numItems", carousel._itemsTable.items.length);
++            }
++
++            // Add newPos as workaround for undefined pos
++            carousel.fireEvent(itemAddedEvent, { pos: index, ev: itemAddedEvent, newPos:newIndex });
++
++            return true;
++        },
++
++        /**
++         * Insert or append multiple items to the Carousel.
++         *
++         * @method addItems
++         * @public
++         * @param items {Array} An array containing an array of new items each linked to the
++         * index where the insertion should take place.
++         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
++         * NOTE: An item at index must already exist.
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        addItems: function (items) {
++            var i, n, rv = true;
++
++            if (!JS.isArray(items)) {
++                return false;
++            }
++
++            for (i = 0, n = items.length; i < n; i++) {
++                if (this.addItem(items[i][0], items[i][1]) === false) {
++                    rv = false;
++                }
++            }
++
++            return rv;
++        },
++
++        /**
++         * Remove focus from the Carousel.
++         *
++         * @method blur
++         * @public
++         */
++        blur: function () {
++            this._carouselEl.blur();
++            this.fireEvent(blurEvent);
++        },
++
++        /**
++         * Clears the items from Carousel.
++         *
++         * @method clearItems
++         * @public
++         */
++        clearItems: function () {
++            var carousel = this, n = carousel.get("numItems");
++
++            while (n > 0) {
++                if (!carousel.removeItem(0)) {
++                    YAHOO.log("Item could not be removed - missing?",
++                              "warn", WidgetName);
++                }
++                /*
++                    For dynamic loading, the numItems may be much larger than
++                    the actual number of items in the table. So, set the
++                    numItems to zero, and break out of the loop if the table
++                    is already empty.
++                 */
++                if (carousel._itemsTable.numItems === 0) {
++                    carousel.set("numItems", 0);
++                    break;
++                }
++                n--;
++            }
++
++            carousel.fireEvent(allItemsRemovedEvent);
++        },
++
++        /**
++         * Set focus on the Carousel.
++         *
++         * @method focus
++         * @public
++         */
++        focus: function () {
++            var carousel = this,
++                first,
++                focusEl,
++                isSelectionInvisible,
++                itemsTable,
++                last,
++                numVisible,
++                selectOnScroll,
++                selected,
++                selItem;
++
++            // Don't do anything if the Carousel is not rendered
++            if (!carousel._hasRendered) {
++                return;
++            }
++
++            if (carousel.isAnimating()) {
++                // this messes up real bad!
++                return;
++            }
++
++            selItem              = carousel.get("selectedItem");
++            numVisible           = carousel.get("numVisible");
++            selectOnScroll       = carousel.get("selectOnScroll");
++            selected             = (selItem >= 0) ?
++                                   carousel.getItem(selItem) : null;
++            first                = carousel.get("firstVisible");
++            last                 = first + numVisible - 1;
++            isSelectionInvisible = (selItem < first || selItem > last);
++            focusEl              = (selected && selected.id) ?
++                                   Dom.get(selected.id) : null;
++            itemsTable           = carousel._itemsTable;
++
++            if (!selectOnScroll && isSelectionInvisible) {
++                focusEl = (itemsTable && itemsTable.items &&
++                           itemsTable.items[first]) ?
++                        Dom.get(itemsTable.items[first].id) : null;
++            }
++
++            if (focusEl) {
++                try {
++                    focusEl.focus();
++                } catch (ex) {
++                    // ignore focus errors
++                }
++            }
++
++            carousel.fireEvent(focusEvent);
++        },
++
++        /**
++         * Hide the Carousel.
++         *
++         * @method hide
++         * @public
++         */
++        hide: function () {
++            var carousel = this;
++
++            if (carousel.fireEvent(beforeHideEvent) !== false) {
++                carousel.removeClass(carousel.CLASSES.VISIBLE);
++                carousel.fireEvent(hideEvent);
++            }
++        },
++
++        /**
++         * Initialize the Carousel.
++         *
++         * @method init
++         * @public
++         * @param el {HTMLElement | String} The html element that represents
++         * the Carousel container.
++         * @param attrs {Object} The set of configuration attributes for
++         * creating the Carousel.
++         */
++        init: function (el, attrs) {
++            var carousel = this,
++                elId     = el,  // save for a rainy day
++                parse    = false,
++                selected;
++
++            if (!el) {
++                YAHOO.log(el + " is neither an HTML element, nor a string",
++                        "error", WidgetName);
++                return;
++            }
++
++            carousel._hasRendered = false;
++            carousel._navBtns     = { prev: [], next: [] };
++            carousel._pages       = { el: null, num: 0, cur: 0 };
++            carousel._pagination  = {};
++            carousel._itemAttrCache = {};
++
++            carousel._itemsTable  = { loading: {}, numItems: 0,
++                                      items: [], size: 0 };
++
++            YAHOO.log("Component initialization", WidgetName);
++
++            if (JS.isString(el)) {
++                el = Dom.get(el);
++            } else if (!el.nodeName) {
++                YAHOO.log(el + " is neither an HTML element, nor a string",
++                        "error", WidgetName);
++                return;
++            }
++
++            Carousel.superclass.init.call(carousel, el, attrs);
++
++            // check if we're starting somewhere in the middle
++            selected = carousel.get("selectedItem");
++            if(selected > 0){
++                carousel.set("firstVisible",getFirstVisibleForPosition.call(carousel,selected));
++            }
++
++            if (el) {
++                if (!el.id) {   // in case the HTML element is passed
++                    el.setAttribute("id", Dom.generateId());
++                }
++                parse = carousel._parseCarousel(el);
++                if (!parse) {
++                    carousel._createCarousel(elId);
++                }
++            } else {
++                el = carousel._createCarousel(elId);
++            }
++            elId = el.id;
++
++            carousel.initEvents();
++
++            if (parse) {
++                carousel._parseCarouselItems();
++            }
++
++            // add the selected class
++            if(selected > 0){
++                setItemSelection.call(carousel,selected,0);
++            }
++
++            if (!attrs || typeof attrs.isVertical == "undefined") {
++                carousel.set("isVertical", false);
++            }
++
++            carousel._parseCarouselNavigation(el);
++            carousel._navEl = carousel._setupCarouselNavigation();
++
++            instances[elId] = { object: carousel };
++            carousel._loadItems(Math.min(carousel.get("firstVisible")+carousel.get("numVisible"),carousel.get("numItems"))-1);
++        },
++
++        /**
++         * Initialize the configuration attributes used to create the Carousel.
++         *
++         * @method initAttributes
++         * @public
++         * @param attrs {Object} The set of configuration attributes for
++         * creating the Carousel.
++         */
++        initAttributes: function (attrs) {
++            var carousel = this;
++
++            attrs = attrs || {};
++            Carousel.superclass.initAttributes.call(carousel, attrs);
++
++            /**
++             * @attribute carouselEl
++             * @description The type of the Carousel element.
++             * @default OL
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("carouselEl", {
++                    validator : JS.isString,
++                    value     : attrs.carouselEl || "OL"
++            });
++
++            /**
++             * @attribute carouselItemEl
++             * @description The type of the list of items within the Carousel.
++             * @default LI
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("carouselItemEl", {
++                    validator : JS.isString,
++                    value     : attrs.carouselItemEl || "LI"
++            });
++
++            /**
++             * @attribute currentPage
++             * @description The current page number (read-only.)
++             * @type Number
++             */
++            carousel.setAttributeConfig("currentPage", {
++                    readOnly : true,
++                    value    : 0
++            });
++
++            /**
++             * @attribute firstVisible
++             * @description The index to start the Carousel from (indexes begin
++             * from zero)
++             * @default 0
++             * @type Number
++             */
++            carousel.setAttributeConfig("firstVisible", {
++                    method    : carousel._setFirstVisible,
++                    validator : carousel._validateFirstVisible,
++                    value     :
++                        attrs.firstVisible || carousel.CONFIG.FIRST_VISIBLE
++            });
++
++            /**
++             * @attribute selectOnScroll
++             * @description Set this to true to automatically set focus to
++             * follow scrolling in the Carousel.
++             * @default true
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("selectOnScroll", {
++                    validator : JS.isBoolean,
++                    value     : attrs.selectOnScroll || true
++            });
++
++            /**
++             * @attribute numVisible
++             * @description The number of visible items in the Carousel's
++             * viewport.
++             * @default 3
++             * @type Number
++             */
++            carousel.setAttributeConfig("numVisible", {
++                    setter    : carousel._numVisibleSetter,
++                    method    : carousel._setNumVisible,
++                    validator : carousel._validateNumVisible,
++                    value     : attrs.numVisible || carousel.CONFIG.NUM_VISIBLE
++            });
++
++            /**
++             * @attribute numItems
++             * @description The number of items in the Carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("numItems", {
++                    method    : carousel._setNumItems,
++                    validator : carousel._validateNumItems,
++                    value     : carousel._itemsTable.numItems
++            });
++
++            /**
++             * @attribute scrollIncrement
++             * @description The number of items to scroll by for arrow keys.
++             * @default 1
++             * @type Number
++             */
++            carousel.setAttributeConfig("scrollIncrement", {
++                    validator : carousel._validateScrollIncrement,
++                    value     : attrs.scrollIncrement || 1
++            });
++
++            /**
++             * @attribute selectedItem
++             * @description The index of the selected item.
++             * @type Number
++             */
++            carousel.setAttributeConfig("selectedItem", {
++                    setter    : carousel._selectedItemSetter,
++                    method    : carousel._setSelectedItem,
++                    validator : JS.isNumber,
++                    value     : -1
++            });
++
++            /**
++             * @attribute revealAmount
++             * @description The percentage of the item to be revealed on each
++             * side of the Carousel (before and after the first and last item
++             * in the Carousel's viewport.)
++             * @default 0
++             * @type Number
++             */
++            carousel.setAttributeConfig("revealAmount", {
++                    method    : carousel._setRevealAmount,
++                    validator : carousel._validateRevealAmount,
++                    value     : attrs.revealAmount || 0
++            });
++
++            /**
++             * @attribute isCircular
++             * @description Set this to true to wrap scrolling of the contents
++             * in the Carousel.
++             * @default false
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("isCircular", {
++                    validator : JS.isBoolean,
++                    value     : attrs.isCircular || false
++            });
++
++            /**
++             * @attribute isVertical
++             * @description True if the orientation of the Carousel is vertical
++             * @default false
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("isVertical", {
++                    method    : carousel._setOrientation,
++                    validator : JS.isBoolean,
++                    value     : attrs.isVertical || false
++            });
++
++            /**
++             * @attribute navigation
++             * @description The set of navigation controls for Carousel
++             * @default <br>
++             * { prev: null, // the previous navigation element<br>
++             *   next: null } // the next navigation element
++             * @type Object
++             */
++            carousel.setAttributeConfig("navigation", {
++                    method    : carousel._setNavigation,
++                    validator : carousel._validateNavigation,
++                    value     :
++                        attrs.navigation || {prev: null,next: null,page: null}
++            });
++
++            /**
++             * @attribute animation
++             * @description The optional animation attributes for the Carousel.
++             * @default <br>
++             * { speed: 0, // the animation speed (in seconds)<br>
++             *   effect: null } // the animation effect (like
++             *   YAHOO.util.Easing.easeOut)
++             * @type Object
++             */
++            carousel.setAttributeConfig("animation", {
++                    validator : carousel._validateAnimation,
++                    value     : attrs.animation || { speed: 0, effect: null }
++            });
++
++            /**
++             * @attribute autoPlay
++             * @description Set this to time in milli-seconds to have the
++             * Carousel automatically scroll the contents.
++             * @type Number
++             * @deprecated Use autoPlayInterval instead.
++             */
++            carousel.setAttributeConfig("autoPlay", {
++                    validator : JS.isNumber,
++                    value     : attrs.autoPlay || 0
++            });
++
++            /**
++             * @attribute autoPlayInterval
++             * @description The delay in milli-seconds for scrolling the
++             * Carousel during auto-play.
++             * Note: The startAutoPlay() method needs to be invoked to trigger
++             * automatic scrolling of Carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("autoPlayInterval", {
++                    validator : JS.isNumber,
++                    value     : attrs.autoPlayInterval || 0
++            });
++
++            /**
++             * @attribute numPages
++             * @description The number of pages in the carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("numPages", {
++                    readOnly  : true,
++                    getter    : carousel._getNumPages
++            });
++
++            /**
++             * @attribute lastVisible
++             * @description The last item visible in the carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("lastVisible", {
++                    readOnly  : true,
++                    getter    : carousel._getLastVisible
++            });
++        },
++
++        /**
++         * Initialize and bind the event handlers.
++         *
++         * @method initEvents
++         * @public
++         */
++        initEvents: function () {
++            var carousel = this,
++                cssClass = carousel.CLASSES,
++                focussedLi;
++
++            carousel.on("keydown", carousel._keyboardEventHandler);
++
++            carousel.on(afterScrollEvent, syncNavigation);
++
++            carousel.on(itemAddedEvent, syncUi);
++
++            carousel.on(itemRemovedEvent, syncUi);
++
++            carousel.on(itemReplacedEvent, syncUi);
++
++            carousel.on(itemSelectedEvent, function () {
++                if (carousel._hasFocus) {
++                    carousel.focus();
++                }
++            });
++
++            carousel.on(loadItemsEvent, syncUi);
++
++            carousel.on(allItemsRemovedEvent, function (ev) {
++                carousel.scrollTo(0);
++                syncNavigation.call(carousel);
++                syncPagerUi.call(carousel);
++            });
++
++            carousel.on(pageChangeEvent, syncPagerUi, carousel);
++
++            carousel.on(renderEvent, function (ev) {
++                if (carousel.get("selectedItem") === null ||
++                    carousel.get("selectedItem") <= 0) { //in either case
++                carousel.set("selectedItem", carousel.get("firstVisible"));
++                }
++                syncNavigation.call(carousel, ev);
++                syncPagerUi.call(carousel, ev);
++                carousel._setClipContainerSize();
++                carousel.show();
++            });
++
++            carousel.on("selectedItemChange", function (ev) {
++                setItemSelection.call(carousel, ev.newValue, ev.prevValue);
++                if (ev.newValue >= 0) {
++                    carousel._updateTabIndex(
++                            carousel.getElementForItem(ev.newValue));
++                }
++                carousel.fireEvent(itemSelectedEvent, ev.newValue);
++            });
++
++            carousel.on(uiUpdateEvent, function (ev) {
++                syncNavigation.call(carousel, ev);
++                syncPagerUi.call(carousel, ev);
++            });
++
++            carousel.on("firstVisibleChange", function (ev) {
++                if (!carousel.get("selectOnScroll")) {
++                    if (ev.newValue >= 0) {
++                        carousel._updateTabIndex(
++                                carousel.getElementForItem(ev.newValue));
++                    }
++                }
++            });
++
++            // Handle item selection on mouse click
++            carousel.on("click", function (ev) {
++                if (carousel.isAutoPlayOn()) {
++                    carousel.stopAutoPlay();
++                }
++                carousel._itemClickHandler(ev);
++                carousel._pagerClickHandler(ev);
++            });
++
++            // Restore the focus on the navigation buttons
++
++            Event.onFocus(carousel.get("element"), function (ev, obj) {
++                var target = Event.getTarget(ev);
++
++                if (target && target.nodeName.toUpperCase() == "A" &&
++                    Dom.getAncestorByClassName(target, cssClass.NAVIGATION)) {
++                    if (focussedLi) {
++                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
++                    }
++                    focussedLi = target.parentNode;
++                    Dom.addClass(focussedLi, cssClass.PAGE_FOCUS);
++                } else {
++                    if (focussedLi) {
++                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
++                    }
++                }
++
++                obj._hasFocus = true;
++                obj._updateNavButtons(Event.getTarget(ev), true);
++            }, carousel);
++
++            Event.onBlur(carousel.get("element"), function (ev, obj) {
++                obj._hasFocus = false;
++                obj._updateNavButtons(Event.getTarget(ev), false);
++            }, carousel);
++        },
++
++        /**
++         * Return true if the Carousel is still animating, or false otherwise.
++         *
++         * @method isAnimating
++         * @return {Boolean} Return true if animation is still in progress, or
++         * false otherwise.
++         * @public
++         */
++        isAnimating: function () {
++            return this._isAnimationInProgress;
++        },
++
++        /**
++         * Return true if the auto-scrolling of Carousel is "on", or false
++         * otherwise.
++         *
++         * @method isAutoPlayOn
++         * @return {Boolean} Return true if autoPlay is "on", or false
++         * otherwise.
++         * @public
++         */
++        isAutoPlayOn: function () {
++            return this._isAutoPlayInProgress;
++        },
++
++        /**
++         * Return the carouselItemEl at index or null if the index is not
++         * found.
++         *
++         * @method getElementForItem
++         * @param index {Number} The index of the item to be returned
++         * @return {Element} Return the item at index or null if not found
++         * @public
++         */
++        getElementForItem: function (index) {
++            var carousel = this;
++
++            if (index < 0 || index >= carousel.get("numItems")) {
++                YAHOO.log("Index out of bounds", "error", WidgetName);
++                return null;
++            }
++
++            if (carousel._itemsTable.items[index]) {
++                return Dom.get(carousel._itemsTable.items[index].id);
++            }
++
++            return null;
++        },
++
++        /**
++         * Return the carouselItemEl for all items in the Carousel.
++         *
++         * @method getElementForItems
++         * @return {Array} Return all the items
++         * @public
++         */
++        getElementForItems: function () {
++            var carousel = this, els = [], i;
++
++            for (i = 0; i < carousel._itemsTable.numItems; i++) {
++                els.push(carousel.getElementForItem(i));
++            }
++
++            return els;
++        },
++
++        /**
++         * Return the item at index or null if the index is not found.
++         *
++         * @method getItem
++         * @param index {Number} The index of the item to be returned
++         * @return {Object} Return the item at index or null if not found
++         * @public
++         */
++        getItem: function (index) {
++            var carousel = this;
++
++            if (index < 0 || index >= carousel.get("numItems")) {
++                YAHOO.log("Index out of bounds", "error", WidgetName);
++                return null;
++            }
++
++            if (carousel._itemsTable.numItems > index) {
++                if (!JS.isUndefined(carousel._itemsTable.items[index])) {
++                    return carousel._itemsTable.items[index];
++                }
++            }
++
++            return null;
++        },
++
++        /**
++         * Return all items as an array.
++         *
++         * @method getItems
++         * @return {Array} Return all items in the Carousel
++         * @public
++         */
++        getItems: function () {
++            return this._itemsTable.items;
++        },
++
++        /**
++         * Return all loading items as an array.
++         *
++         * @method getLoadingItems
++         * @return {Array} Return all items that are loading in the Carousel.
++         * @public
++         */
++        getLoadingItems: function () {
++            return this._itemsTable.loading;
++        },
++
++        /**
++         * For a multirow carousel, return the number of rows specified by user.
++         *
++         * @method getItems
++         * @return {Number} Number of rows
++         * @public
++         */
++        getRows: function () {
++            return this._rows;
++        },
++
++        /**
++         * For a multirow carousel, return the number of cols specified by user.
++         *
++         * @method getItems
++         * @return {Array} Return all items in the Carousel
++         * @public
++         */
++        getCols: function () {
++            return this._cols;
++        },
++
++        /**
++         * Return the position of the Carousel item that has the id "id", or -1
++         * if the id is not found.
++         *
++         * @method getItemPositionById
++         * @param index {Number} The index of the item to be returned
++         * @public
++         */
++        getItemPositionById: function (id) {
++            var carousel = this,
++                n = carousel.get("numItems"),
++                i = 0,
++                items = carousel._itemsTable.items,
++                item;
++
++            while (i < n) {
++                item = items[i] || {};
++                if(item.id == id) {
++                    return i;
++                }
++                i++;
++            }
++
++            return -1;
++        },
++
++        /**
++         * Return all visible items as an array.
++         *
++         * @method getVisibleItems
++         * @return {Array} The array of visible items
++         * @public
++         */
++        getVisibleItems: function () {
++            var carousel = this,
++                i        = carousel.get("firstVisible"),
++                n        = i + carousel.get("numVisible"),
++                r        = [];
++
++            while (i < n) {
++                r.push(carousel.getElementForItem(i));
++                i++;
++            }
++
++            return r;
++        },
++
++        /**
++         * Remove an item at index from the Carousel.
++         *
++         * @method removeItem
++         * @public
++         * @param index {Number} The position to where in the list (starts from
++         * zero).
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        removeItem: function (index) {
++            var carousel = this,
++                item,
++                num      = carousel.get("numItems");
++
++            if (index < 0 || index >= num) {
++                YAHOO.log("Index out of bounds", "error", WidgetName);
++                return false;
++            }
++
++            item = carousel._itemsTable.items.splice(index, 1);
++            if (item && item.length == 1) {
++                carousel._itemsTable.numItems--;
++                carousel.set("numItems", num - 1);
++
++                carousel.fireEvent(itemRemovedEvent,
++                        { item: item[0], pos: index, ev: itemRemovedEvent });
++                return true;
++            }
++
++            return false;
++        },
++
++        /**
++         * Replace an item at index witin Carousel.
++         *
++         * @method replaceItem
++         * @public
++         * @param item {String | Object | HTMLElement} The item to be appended
++         * to the Carousel. If the parameter is a string, it is assumed to be
++         * the content of the newly created item. If the parameter is an
++         * object, it is assumed to supply the content and an optional class
++         * and an optional id of the newly created item.
++         * @param index {Number} The position to where in the list (starts from
++         * zero).
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        replaceItem: function (item, index) {
++            var carousel = this,
++                className,
++                content,
++                elId,
++                numItems = carousel.get("numItems"),
++                oel,
++                el = item;
++
++            if (!item) {
++                return false;
++            }
++
++            if (JS.isString(item) || item.nodeName) {
++                content = item.nodeName ? item.innerHTML : item;
++            } else if (JS.isObject(item)) {
++                content = item.content;
++            } else {
++                YAHOO.log("Invalid argument to replaceItem", "error", WidgetName);
++                return false;
++            }
++
++            if (JS.isUndefined(index)) {
++                YAHOO.log("Index must be defined for replaceItem", "error", WidgetName);
++                return false;
++            } else {
++                if (index < 0 || index >= numItems) {
++                    YAHOO.log("Index out of bounds in replaceItem", "error", WidgetName);
++                    return false;
++                }
++
++                oel = carousel._itemsTable.items[index];
++                if(!oel){
++                    oel = carousel._itemsTable.loading[index];
++                    carousel._itemsTable.items[index] = undefined;
++                }
++
++                carousel._itemsTable.items.splice(index, 1, {
++                    item      : content,
++                    className : item.className || "",
++                    id        : Dom.generateId()
++                });
++
++                el = carousel._itemsTable.items[index];
++            }
++            carousel.fireEvent(itemReplacedEvent,
++                    { newItem: el, oldItem: oel, pos: index, ev: itemReplacedEvent });
++
++            return true;
++        },
++
++        /**
++         * Replace multiple items at specified indexes.
++         * NOTE: item at index must already exist.
++         *
++         * @method replaceItems
++         * @public
++         * @param items {Array} An array containing an array of replacement items each linked to the
++         * index where the substitution should take place.
++         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
++         * @return {Boolean} Return true on success, false otherwise
++         */
++         replaceItems: function (items) {
++             var i, n, rv = true;
++
++             if (!JS.isArray(items)) {
++                 return false;
++             }
++
++             for (i = 0, n = items.length; i < n; i++) {
++                 if (this.replaceItem(items[i][0], items[i][1]) === false) {
++                     rv = false;
++                 }
++             }
++
++             return rv;
++         },
++
++        /**
++         * Render the Carousel.
++         *
++         * @method render
++         * @public
++         * @param appendTo {HTMLElement | String} The element to which the
++         * Carousel should be appended prior to rendering.
++         * @return {Boolean} Status of the operation
++         */
++        render: function (appendTo) {
++            var carousel  = this,
++                cssClass  = carousel.CLASSES,
++                rows = carousel._rows;
++
++            carousel.addClass(cssClass.CAROUSEL);
++
++            if (!carousel._clipEl) {
++                carousel._clipEl = carousel._createCarouselClip();
++                carousel._clipEl.appendChild(carousel._carouselEl);
++            }
++
++            if (appendTo) {
++                carousel.appendChild(carousel._clipEl);
++                carousel.appendTo(appendTo);
++            } else {
++                if (!Dom.inDocument(carousel.get("element"))) {
++                    YAHOO.log("Nothing to render. The container should be " +
++                            "within the document if appendTo is not "       +
++                            "specified", "error", WidgetName);
++                    return false;
++                }
++                carousel.appendChild(carousel._clipEl);
++            }
++
++            if (rows) {
++                Dom.addClass(carousel._clipEl, cssClass.MULTI_ROW);
++            }
++
++            if (carousel.get("isVertical")) {
++                carousel.addClass(cssClass.VERTICAL);
++            } else {
++                carousel.addClass(cssClass.HORIZONTAL);
++            }
++
++            if (carousel.get("numItems") < 1) {
++                YAHOO.log("No items in the Carousel to render", "warn",
++                        WidgetName);
++                return false;
++            }
++
++            carousel._refreshUi();
++
++            return true;
++        },
++
++        /**
++         * Scroll the Carousel by an item backward.
++         *
++         * @method scrollBackward
++         * @public
++         */
++        scrollBackward: function () {
++            var carousel = this;
++            carousel.scrollTo(carousel._firstItem -
++                              carousel.get("scrollIncrement"));
++        },
++
++        /**
++         * Scroll the Carousel by an item forward.
++         *
++         * @method scrollForward
++         * @public
++         */
++        scrollForward: function () {
++            var carousel = this;
++            carousel.scrollTo(carousel._firstItem +
++                              carousel.get("scrollIncrement"));
++        },
++
++        /**
++         * Scroll the Carousel by a page backward.
++         *
++         * @method scrollPageBackward
++         * @public
++         */
++        scrollPageBackward: function () {
++            var carousel = this,
++                isVertical = carousel.get("isVertical"),
++                cols       = carousel._cols,
++                item     = carousel._firstItem - carousel.get("numVisible");
++
++            if (item < 0) { // only account for multi-row when scrolling backwards from item 0
++                if (cols) {
++                    item = carousel._firstItem - cols;
++                }
++            }
++
++            if (carousel.get("selectOnScroll")) {
++                carousel._selectedItem = carousel._getSelectedItem(item);
++            }
++
++            carousel.scrollTo(item);
++        },
++
++        /**
++         * Scroll the Carousel by a page forward.
++         *
++         * @method scrollPageForward
++         * @public
++         */
++        scrollPageForward: function () {
++            var carousel = this,
++                item     = carousel._firstItem + carousel.get("numVisible");
++
++            if (item > carousel.get("numItems")) {
++                item = 0;
++            }
++
++            if (carousel.get("selectOnScroll")) {
++                carousel._selectedItem = carousel._getSelectedItem(item);
++            }
++
++            carousel.scrollTo(item);
++        },
++
++        /**
++         * Scroll the Carousel to make the item the first visible item.
++         *
++         * @method scrollTo
++         * @public
++         * @param item Number The index of the element to position at.
++         * @param dontSelect Boolean True if select should be avoided
++         */
++        scrollTo: function (item, dontSelect) {
++            var carousel   = this, animate, animCfg, isCircular, isVertical,
++                rows, delta, direction, firstItem, lastItem, itemsPerRow,
++                itemsPerCol, numItems, numPerPage, offset, page, rv, sentinel,
++                index, stopAutoScroll,
++                itemsTable = carousel._itemsTable,
++                items = itemsTable.items,
++                loading = itemsTable.loading;
++
++            if (JS.isUndefined(item) || item == carousel._firstItem ||
++                carousel.isAnimating()) {
++                return; // nothing to do!
++            }
++
++            animCfg        = carousel.get("animation");
++            isCircular     = carousel.get("isCircular");
++            isVertical     = carousel.get("isVertical");
++            itemsPerRow    = carousel._cols;
++            itemsPerCol    = carousel._rows;
++            firstItem      = carousel._firstItem;
++            numItems       = carousel.get("numItems");
++            numPerPage     = carousel.get("numVisible");
++            page           = carousel.get("currentPage");
++
++            stopAutoScroll = function () {
++                if (carousel.isAutoPlayOn()) {
++                    carousel.stopAutoPlay();
++                }
++            };
++
++            if (item < 0) {
++                if (isCircular) {
++                    item = numItems + item;
++                } else {
++                    stopAutoScroll.call(carousel);
++                    return;
++                }
++            } else if (numItems > 0 && item > numItems - 1) {
++
++                if (carousel.get("isCircular")) {
++                    item = numItems - item;
++                } else {
++                    stopAutoScroll.call(carousel);
++                    return;
++                }
++            }
++
++            if (isNaN(item)) {
++                return;
++            }
++
++            direction = (carousel._firstItem > item) ? "backward" : "forward";
++
++            sentinel  = firstItem + numPerPage;
++            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
++            rv = carousel.fireEvent(beforeScrollEvent,
++                    { dir: direction, first: firstItem, last: sentinel });
++            if (rv === false) { // scrolling is prevented
++                return;
++            }
++
++            carousel.fireEvent(beforePageChangeEvent, { page: page });
++
++            // call loaditems to check if we have all the items to display
++            lastItem = item + numPerPage - 1;
++            carousel._loadItems(lastItem > numItems-1 ? numItems-1 : lastItem);
++
++            // Calculate the delta relative to the first item, the delta is
++            // always negative.
++            delta = 0 - item;
++
++            if (itemsPerCol) {
++            	// offset calculations for multirow Carousel
++                if (isVertical) {
++                    delta = parseInt(delta / itemsPerRow, 10);
++                } else {
++                    delta = parseInt(delta / itemsPerCol, 10);
++                }
++            }
++
++            // adjust for items not yet loaded
++            index = 0;
++            while (delta < 0 && index < item+numPerPage-1 && index < numItems) {
++                if (!items[index] && !loading[index]) {
++                    delta++;
++                }
++                index += itemsPerCol ? itemsPerCol : 1;
++            }
++
++            carousel._firstItem = item;
++            carousel.set("firstVisible", item);
++
++            YAHOO.log("Scrolling to " + item + " delta = " + delta, WidgetName);
++
++            sentinel  = item + numPerPage;
++            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
++
++            offset    = getScrollOffset.call(carousel, delta);
++            YAHOO.log("Scroll offset = " + offset, WidgetName);
++
++            animate   = animCfg.speed > 0;
++
++            if (animate) {
++                carousel._animateAndSetCarouselOffset(offset, item, sentinel,
++                        dontSelect);
++            } else {
++                carousel._setCarouselOffset(offset);
++                updateStateAfterScroll.call(carousel, item, sentinel);
++            }
++        },
++
++        /**
++         * Get the page an item is on within carousel.
++         *
++         * @method getPageForItem
++         * @public
++         * @param index {Number} Index of item
++         * @return {Number} Page item is on
++         */
++        getPageForItem : function(item) {
++            return Math.ceil(
++                (item+1) / parseInt(this.get("numVisible"),10)
++            );
++        },
++
++        /**
++         * Get the first visible item's index on any given page.
++         *
++         * @method getFirstVisibleOnpage
++         * @public
++         * @param page {Number} Page
++         * @return {Number} First item's index
++         */
++        getFirstVisibleOnPage : function(page) {
++            return (page - 1) * this.get("numVisible");
++        },
++
++        /**
++         * Select the previous item in the Carousel.
++         *
++         * @method selectPreviousItem
++         * @public
++         */
++        selectPreviousItem: function () {
++            var carousel = this,
++                newpos   = 0,
++                selected = carousel.get("selectedItem");
++
++            if (selected == this._firstItem) {
++                newpos = selected - carousel.get("numVisible");
++                carousel._selectedItem = carousel._getSelectedItem(selected-1);
++                carousel.scrollTo(newpos);
++            } else {
++                newpos = carousel.get("selectedItem") -
++                         carousel.get("scrollIncrement");
++                carousel.set("selectedItem",carousel._getSelectedItem(newpos));
++            }
++        },
++
++        /**
++         * Select the next item in the Carousel.
++         *
++         * @method selectNextItem
++         * @public
++         */
++        selectNextItem: function () {
++            var carousel = this, newpos = 0;
++
++            newpos = carousel.get("selectedItem") +
++                     carousel.get("scrollIncrement");
++            carousel.set("selectedItem", carousel._getSelectedItem(newpos));
++        },
++
++        /**
++         * Display the Carousel.
++         *
++         * @method show
++         * @public
++         */
++        show: function () {
++            var carousel = this,
++                cssClass = carousel.CLASSES;
++
++            if (carousel.fireEvent(beforeShowEvent) !== false) {
++                carousel.addClass(cssClass.VISIBLE);
++                carousel.fireEvent(showEvent);
++            }
++        },
++
++        /**
++         * Start auto-playing the Carousel.
++         *
++         * @method startAutoPlay
++         * @public
++         */
++        startAutoPlay: function () {
++            var carousel = this, timer;
++
++            if (JS.isUndefined(carousel._autoPlayTimer)) {
++                timer = carousel.get("autoPlayInterval");
++                if (timer <= 0) {
++                    return;
++                }
++                carousel._isAutoPlayInProgress = true;
++                carousel.fireEvent(startAutoPlayEvent);
++                carousel._autoPlayTimer = setTimeout(function () {
++                    carousel._autoScroll();
++                }, timer);
++            }
++        },
++
++        /**
++         * Stop auto-playing the Carousel.
++         *
++         * @method stopAutoPlay
++         * @public
++         */
++        stopAutoPlay: function () {
++            var carousel = this;
++
++            if (!JS.isUndefined(carousel._autoPlayTimer)) {
++                clearTimeout(carousel._autoPlayTimer);
++                delete carousel._autoPlayTimer;
++                carousel._isAutoPlayInProgress = false;
++                carousel.fireEvent(stopAutoPlayEvent);
++            }
++        },
++
++        /**
++         * Update interface's pagination data within a registered template.
++         *
++         * @method updatePagination
++         * @public
++         */
++        updatePagination: function () {
++            var carousel = this,
++                pagination = carousel._pagination;
++            if(!pagination.el){ return false; }
++
++            var numItems = carousel.get('numItems'),
++                numVisible = carousel.get('numVisible'),
++                firstVisible = carousel.get('firstVisible')+1,
++                currentPage = carousel.get('currentPage')+1,
++                numPages = carousel.get('numPages'),
++                replacements = {
++                    'numVisible' : numVisible,
++                    'numPages' : numPages,
++                    'numItems' : numItems,
++                    'selectedItem' : carousel.get('selectedItem')+1,
++                    'currentPage' : currentPage,
++                    'firstVisible' : firstVisible,
++                    'lastVisible' : carousel.get("lastVisible")+1
++                },
++                cb = pagination.callback || {},
++                scope = cb.scope && cb.obj ? cb.obj : carousel;
++
++            pagination.el.innerHTML = JS.isFunction(cb.fn) ? cb.fn.apply(scope, [pagination.template, replacements]) : YAHOO.lang.substitute(pagination.template, replacements);
++        },
++
++        /**
++         * Register carousels pagination template, append to interface, and populate.
++         *
++         * @method registerPagination
++         * @param template {String} Pagination template as passed to lang.substitute
++         * @public
++         */
++        registerPagination: function (tpl, pos, cb) {
++            var carousel = this;
++
++            carousel._pagination.template = tpl;
++            carousel._pagination.callback = cb || {};
++
++            if(!carousel._pagination.el){
++                carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION});
++
++                if(pos == "before"){
++                    carousel._navEl.insertBefore(carousel._pagination.el, carousel._navEl.firstChild);
++                } else {
++                    carousel._navEl.appendChild(carousel._pagination.el);
++                }
++
++                carousel.on('itemSelected', carousel.updatePagination);
++                carousel.on('pageChange', carousel.updatePagination);
++            }
++
++            carousel.updatePagination();
++        },
++
++        /**
++         * Return the string representation of the Carousel.
++         *
++         * @method toString
++         * @public
++         * @return {String}
++         */
++        toString: function () {
++            return WidgetName + (this.get ? " (#" + this.get("id") + ")" : "");
++        },
++
++        /*
++         * Protected methods of the Carousel component
++         */
++
++        /**
++         * Set the Carousel offset to the passed offset after animating.
++         *
++         * @method _animateAndSetCarouselOffset
++         * @param {Integer} offset The offset to which the Carousel has to be
++         * scrolled to.
++         * @param {Integer} item The index to which the Carousel will scroll.
++         * @param {Integer} sentinel The last element in the view port.
++         * @protected
++         */
++        _animateAndSetCarouselOffset: function (offset, item, sentinel) {
++            var carousel = this,
++                animCfg  = carousel.get("animation"),
++                animObj  = null;
++
++            if (carousel.get("isVertical")) {
++                animObj = new YAHOO.util.Motion(carousel._carouselEl,
++                        { top: { to: offset } },
++                        animCfg.speed, animCfg.effect);
++            } else {
++                animObj = new YAHOO.util.Motion(carousel._carouselEl,
++                        { left: { to: offset } },
++                        animCfg.speed, animCfg.effect);
++            }
++
++            carousel._isAnimationInProgress = true;
++            animObj.onComplete.subscribe(carousel._animationCompleteHandler,
++                                         { scope: carousel, item: item,
++                                           last: sentinel });
++            animObj.animate();
++        },
++
++        /**
++         * Handle the animation complete event.
++         *
++         * @method _animationCompleteHandler
++         * @param {Event} ev The event.
++         * @param {Array} p The event parameters.
++         * @param {Object} o The object that has the state of the Carousel
++         * @protected
++         */
++        _animationCompleteHandler: function (ev, p, o) {
++            o.scope._isAnimationInProgress = false;
++            updateStateAfterScroll.call(o.scope, o.item, o.last);
++        },
++
++        /**
++         * Automatically scroll the contents of the Carousel.
++         * @method _autoScroll
++         * @protected
++         */
++        _autoScroll: function() {
++            var carousel  = this,
++                currIndex = carousel._firstItem,
++                index;
++
++            if (currIndex >= carousel.get("numItems") - 1) {
++                if (carousel.get("isCircular")) {
++                    index = 0;
++                } else {
++                    carousel.stopAutoPlay();
++                }
++            } else {
++                index = currIndex + carousel.get("numVisible");
++            }
++
++            carousel._selectedItem = carousel._getSelectedItem(index);
++            carousel.scrollTo.call(carousel, index);
++        },
++
++        /**
++         * Create the Carousel.
++         *
++         * @method createCarousel
++         * @param elId {String} The id of the element to be created
++         * @protected
++         */
++        _createCarousel: function (elId) {
++            var carousel = this,
++                cssClass = carousel.CLASSES,
++                el       = Dom.get(elId);
++
++            if (!el) {
++                el = createElement("DIV", {
++                        className : cssClass.CAROUSEL,
++                        id        : elId
++                });
++            }
++
++            if (!carousel._carouselEl) {
++                carousel._carouselEl=createElement(carousel.get("carouselEl"),
++                        { className: cssClass.CAROUSEL_EL });
++            }
++
++            return el;
++        },
++
++        /**
++         * Create the Carousel clip container.
++         *
++         * @method createCarouselClip
++         * @protected
++         */
++        _createCarouselClip: function () {
++            return createElement("DIV", { className: this.CLASSES.CONTENT });
++        },
++
++        /**
++         * Create the Carousel item.
++         *
++         * @method createCarouselItem
++         * @param obj {Object} The attributes of the element to be created
++         * @protected
++         */
++        _createCarouselItem: function (obj) {
++            var attr, carousel = this,
++                styles = getCarouselItemPosition.call(carousel, obj.pos);
++
++            return createElement(carousel.get("carouselItemEl"), {
++                    className : obj.className,
++                    styles    : obj.styles,
++                    content   : obj.content,
++                    id        : obj.id
++            });
++        },
++
++        /**
++         * Return a valid item for a possibly out of bounds index considering
++         * the isCircular property.
++         *
++         * @method _getValidIndex
++         * @param index {Number} The index of the item to be returned
++         * @return {Object} Return a valid item index
++         * @protected
++         */
++        _getValidIndex: function (index) {
++            var carousel   = this,
++                isCircular = carousel.get("isCircular"),
++                numItems   = carousel.get("numItems"),
++                numVisible = carousel.get("numVisible"),
++                sentinel   = numItems - 1;
++
++            if (index < 0) {
++                index = isCircular ?
++                        Math.ceil(numItems/numVisible)*numVisible + index : 0;
++            } else if (index > sentinel) {
++                index = isCircular ? 0 : sentinel;
++            }
++
++            return index;
++        },
++
++        /**
++         * Get the value for the selected item.
++         *
++         * @method _getSelectedItem
++         * @param val {Number} The new value for "selected" item
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _getSelectedItem: function (val) {
++            var carousel   = this,
++                isCircular = carousel.get("isCircular"),
++                numItems   = carousel.get("numItems"),
++                sentinel   = numItems - 1;
++
++            if (val < 0) {
++                if (isCircular) {
++                    val = numItems + val;
++                } else {
++                    val = carousel.get("selectedItem");
++                }
++            } else if (val > sentinel) {
++                if (isCircular) {
++                    val = val - numItems;
++                } else {
++                    val = carousel.get("selectedItem");
++                }
++            }
++            return val;
++        },
++
++        /**
++         * The "click" handler for the item.
++         *
++         * @method _itemClickHandler
++         * @param {Event} ev The event object
++         * @protected
++         */
++        _itemClickHandler: function (ev) {
++            var carousel     = this,
++                carouselItem = carousel.get("carouselItemEl"),
++                container    = carousel.get("element"),
++                el,
++                item,
++                target       = Event.getTarget(ev),
++                tag          = target.tagName.toUpperCase();
++
++            if(tag === "INPUT" ||
++               tag === "SELECT" ||
++               tag === "TEXTAREA") {
++                return;
++            }
++
++            while (target && target != container &&
++                   target.id != carousel._carouselEl) {
++                el = target.nodeName;
++                if (el.toUpperCase() == carouselItem) {
++                    break;
++                }
++                target = target.parentNode;
++            }
++
++            if ((item = carousel.getItemPositionById(target.id)) >= 0) {
++                YAHOO.log("Setting selection to " + item, WidgetName);
++                carousel.set("selectedItem", carousel._getSelectedItem(item));
++                carousel.focus();
++            }
++        },
++
++        /**
++         * The keyboard event handler for Carousel.
++         *
++         * @method _keyboardEventHandler
++         * @param ev {Event} The event that is being handled.
++         * @protected
++         */
++        _keyboardEventHandler: function (ev) {
++            var carousel = this,
++                key      = Event.getCharCode(ev),
++                target   = Event.getTarget(ev),
++                prevent  = false;
++
++            // do not mess while animation is in progress or naving via select
++            if (carousel.isAnimating() || target.tagName.toUpperCase() === "SELECT") {
++                return;
++            }
++
++            switch (key) {
++            case 0x25:          // left arrow
++            case 0x26:          // up arrow
++                carousel.selectPreviousItem();
++                prevent = true;
++                break;
++            case 0x27:          // right arrow
++            case 0x28:          // down arrow
++                carousel.selectNextItem();
++                prevent = true;
++                break;
++            case 0x21:          // page-up
++                carousel.scrollPageBackward();
++                prevent = true;
++                break;
++            case 0x22:          // page-down
++                carousel.scrollPageForward();
++                prevent = true;
++                break;
++            }
++
++            if (prevent) {
++                if (carousel.isAutoPlayOn()) {
++                    carousel.stopAutoPlay();
++                }
++                Event.preventDefault(ev);
++            }
++        },
++
++        /**
++         * The load the required set of items that are needed for display.
++         *
++         * @method _loadItems
++         * @protected
++         */
++        _loadItems: function(last) {
++            var carousel    = this,
++                numItems    = carousel.get("numItems"),
++                numVisible  = carousel.get("numVisible"),
++                reveal      = carousel.get("revealAmount"),
++                first       = carousel._itemsTable.items.length,
++                lastVisible = carousel.get("lastVisible");
++
++            // adjust if going backwards
++            if(first > last && last+1 >= numVisible){
++                // need to get first a bit differently for the last page
++                first = last % numVisible || last == lastVisible ? last - last % numVisible : last - numVisible + 1;
++            }
++
++            if(reveal && last < numItems - 1){ last++; }
++
++            if (last >= first && (!carousel.getItem(first) || !carousel.getItem(last))) {
++                carousel.fireEvent(loadItemsEvent, {
++                        ev: loadItemsEvent, first: first, last: last,
++                        num: last - first + 1
++                });
++            }
++
++        },
++
++        /**
++         * The "onchange" handler for select box pagination.
++         *
++         * @method _pagerChangeHandler
++         * @param {Event} ev The event object
++         * @protected
++         */
++         _pagerChangeHandler: function (ev) {
++            var carousel = this,
++                target = Event.getTarget(ev),
++                 page = target.value,
++                 item;
++
++             if (page) {
++                 item = carousel.getFirstVisibleOnPage(page);
++                 carousel._selectedItem = item;
++                 carousel.scrollTo(item);
++                 carousel.focus();
++            }
++          },
++        /**
++         * The "click" handler for anchor pagination.
++         *
++         * @method _pagerClickHandler
++         * @param {Event} ev The event object
++         * @protected
++         */
++         _pagerClickHandler: function (ev) {
++             var carousel = this,
++                 css = carousel.CLASSES,
++                 target = Event.getTarget(ev),
++                 elNode = target.nodeName.toUpperCase(),
++                 val,
++                 stringIndex,
++                 page,
++                 item;
++
++             if (Dom.hasClass(target, css.PAGER_ITEM) || Dom.hasClass(target.parentNode, css.PAGER_ITEM))  {
++                 if (elNode == "EM") {
++                     target = target.parentNode;// item is an em and not an anchor (when text is visible)
++                 }
++                 val = target.href;
++                 stringIndex = val.lastIndexOf("#");
++                 page =  parseInt(val.substring(stringIndex+1), 10);
++                    if (page != -1) {
++                     item = carousel.getFirstVisibleOnPage(page);
++                     carousel._selectedItem = item;
++                     carousel.scrollTo(item);
++                            carousel.focus();
++                        }
++                        Event.preventDefault(ev);
++                    }
++        },
++
++        /**
++         * Find the Carousel within a container. The Carousel is identified by
++         * the first element that matches the carousel element tag or the
++         * element that has the Carousel class.
++         *
++         * @method parseCarousel
++         * @param parent {HTMLElement} The parent element to look under
++         * @return {Boolean} True if Carousel is found, false otherwise
++         * @protected
++         */
++        _parseCarousel: function (parent) {
++            var carousel = this, child, cssClass, domEl, found, node;
++
++            cssClass  = carousel.CLASSES;
++            domEl     = carousel.get("carouselEl");
++            found     = false;
++
++            for (child = parent.firstChild; child; child = child.nextSibling) {
++                if (child.nodeType == 1) {
++                    node = child.nodeName;
++                    if (node.toUpperCase() == domEl) {
++                        carousel._carouselEl = child;
++                        Dom.addClass(carousel._carouselEl,
++                                     carousel.CLASSES.CAROUSEL_EL);
++                        YAHOO.log("Found Carousel - " + node +
++                                (child.id ? " (#" + child.id + ")" : ""),
++                                WidgetName);
++                        found = true;
++                    }
++                }
++            }
++
++            return found;
++        },
++
++        /**
++         * Find the items within the Carousel and add them to the items table.
++         * A Carousel item is identified by elements that matches the carousel
++         * item element tag.
++         *
++         * @method parseCarouselItems
++         * @protected
++         */
++        _parseCarouselItems: function () {
++            var carousel = this,
++                cssClass = carousel.CLASSES,
++                i=0,
++                rows,
++                child,
++                domItemEl,
++                elId,
++                node,
++                index = carousel.get("firstVisible"),
++                parent   = carousel._carouselEl;
++
++            rows = carousel._rows;
++            domItemEl = carousel.get("carouselItemEl");
++
++            for (child = parent.firstChild; child; child = child.nextSibling) {
++                if (child.nodeType == 1) {
++                    node = child.nodeName;
++                    if (node.toUpperCase() == domItemEl) {
++                        if (child.id) {
++                            elId = child.id;
++                        } else {
++                            elId = Dom.generateId();
++                            child.setAttribute("id", elId);
++                        }
++                        carousel.addItem(child,index);
++                        index++;
++                    }
++                }
++            }
++        },
++
++        /**
++         * Find the Carousel navigation within a container. The navigation
++         * elements need to match the carousel navigation class names.
++         *
++         * @method parseCarouselNavigation
++         * @param parent {HTMLElement} The parent element to look under
++         * @return {Boolean} True if at least one is found, false otherwise
++         * @protected
++         */
++        _parseCarouselNavigation: function (parent) {
++            var carousel = this,
++                cfg,
++                cssClass = carousel.CLASSES,
++                el,
++                i,
++                j,
++                nav,
++                rv       = false;
++
++            nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent);
++            if (nav.length > 0) {
++                for (i in nav) {
++                    if (nav.hasOwnProperty(i)) {
++                        el = nav[i];
++                        YAHOO.log("Found Carousel previous page navigation - " +
++                                el + (el.id ? " (#" + el.id + ")" : ""),
++                                WidgetName);
++                        if (el.nodeName == "INPUT" ||
++                            el.nodeName == "BUTTON" ||
++                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
++                            carousel._navBtns.prev.push(el);
++                        } else {
++                            j = el.getElementsByTagName("INPUT");
++                            if (JS.isArray(j) && j.length > 0) {
++                                carousel._navBtns.prev.push(j[0]);
++                            } else {
++                                j = el.getElementsByTagName("BUTTON");
++                                if (JS.isArray(j) && j.length > 0) {
++                                    carousel._navBtns.prev.push(j[0]);
++                                }
++                            }
++                        }
++                    }
++                }
++                cfg = { prev: nav };
++            }
++
++            nav = Dom.getElementsByClassName(cssClass.NEXT_PAGE, "*", parent);
++            if (nav.length > 0) {
++                for (i in nav) {
++                    if (nav.hasOwnProperty(i)) {
++                        el = nav[i];
++                        YAHOO.log("Found Carousel next page navigation - " +
++                                el + (el.id ? " (#" + el.id + ")" : ""),
++                                WidgetName);
++                        if (el.nodeName == "INPUT" ||
++                            el.nodeName == "BUTTON" ||
++                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
++                            carousel._navBtns.next.push(el);
++                        } else {
++                            j = el.getElementsByTagName("INPUT");
++                            if (JS.isArray(j) && j.length > 0) {
++                                carousel._navBtns.next.push(j[0]);
++                            } else {
++                                j = el.getElementsByTagName("BUTTON");
++                                if (JS.isArray(j) && j.length > 0) {
++                                    carousel._navBtns.next.push(j[0]);
++                                }
++                            }
++                        }
++                    }
++                }
++                if (cfg) {
++                    cfg.next = nav;
++                } else {
++                    cfg = { next: nav };
++                }
++            }
++
++            if (cfg) {
++                carousel.set("navigation", cfg);
++                rv = true;
++            }
++
++            return rv;
++        },
++
++        /**
++         * Refresh the widget UI if it is not already rendered, on first item
++         * addition.
++         *
++         * @method _refreshUi
++         * @protected
++         */
++        _refreshUi: function () {
++            var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;
++
++            if (carousel._itemsTable.numItems < 1) {
++                return;
++            }
++
++            sz  = getCarouselItemSize.call(carousel,
++                    isVertical ? "height" : "width");
++            // This fixes the widget to auto-adjust height/width for absolute
++            // positioned children.
++            item = carousel._itemsTable.items[firstVisible].id;
++
++            sz   = isVertical ? getStyle(item, "width") :
++                    getStyle(item, "height");
++
++            Dom.setStyle(carousel._carouselEl,
++                         isVertical ? "width" : "height", sz + "px");
++
++            // Set the rendered state appropriately.
++            carousel._hasRendered = true;
++            carousel.fireEvent(renderEvent);
++        },
++
++        /**
++         * Set the Carousel offset to the passed offset.
++         *
++         * @method _setCarouselOffset
++         * @protected
++         */
++        _setCarouselOffset: function (offset) {
++            var carousel = this, which;
++
++            which = carousel.get("isVertical") ? "top" : "left";
++            Dom.setStyle(carousel._carouselEl, which, offset + "px");
++        },
++
++        /**
++         * Setup/Create the Carousel navigation element (if needed).
++         *
++         * @method _setupCarouselNavigation
++         * @protected
++         */
++        _setupCarouselNavigation: function () {
++            var carousel = this,
++                btn, cfg, cssClass, nav, navContainer, nextButton, prevButton;
++
++            cssClass = carousel.CLASSES;
++
++            // TODO: can the _navBtns be tested against instead?
++            navContainer = Dom.getElementsByClassName(cssClass.NAVIGATION,
++                    "DIV", carousel.get("element"));
++
++            if (navContainer.length === 0) {
++                navContainer = createElement("DIV",
++                        { className: cssClass.NAVIGATION });
++                carousel.insertBefore(navContainer,
++                        Dom.getFirstChild(carousel.get("element")));
++            } else {
++                navContainer = navContainer[0];
++            }
++
++            carousel._pages.el = createElement("UL");
++            navContainer.appendChild(carousel._pages.el);
++
++            nav = carousel.get("navigation");
++            if (JS.isString(nav.prev) || JS.isArray(nav.prev)) {
++                if (JS.isString(nav.prev)) {
++                    nav.prev = [nav.prev];
++                }
++                for (btn in nav.prev) {
++                    if (nav.prev.hasOwnProperty(btn)) {
++                        carousel._navBtns.prev.push(Dom.get(nav.prev[btn]));
++                    }
++                }
++            } else {
++                // TODO: separate method for creating a navigation button
++                prevButton = createElement("SPAN",
++                        { className: cssClass.BUTTON + cssClass.FIRST_NAV });
++                // XXX: for IE 6.x
++                Dom.setStyle(prevButton, "visibility", "visible");
++                btn = Dom.generateId();
++                prevButton.innerHTML = "<button type=\"button\" "      +
++                        "id=\"" + btn + "\" name=\""                   +
++                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "\">"  +
++                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "</button>";
++                navContainer.appendChild(prevButton);
++                btn = Dom.get(btn);
++                carousel._navBtns.prev = [btn];
++                cfg = { prev: [prevButton] };
++            }
++
++            if (JS.isString(nav.next) || JS.isArray(nav.next)) {
++                if (JS.isString(nav.next)) {
++                    nav.next = [nav.next];
++                }
++                for (btn in nav.next) {
++                    if (nav.next.hasOwnProperty(btn)) {
++                        carousel._navBtns.next.push(Dom.get(nav.next[btn]));
++                    }
++                }
++            } else {
++                // TODO: separate method for creating a navigation button
++                nextButton = createElement("SPAN",
++                        { className: cssClass.BUTTON + cssClass.NEXT_NAV });
++                // XXX: for IE 6.x
++                Dom.setStyle(nextButton, "visibility", "visible");
++                btn = Dom.generateId();
++                nextButton.innerHTML = "<button type=\"button\" "      +
++                        "id=\"" + btn + "\" name=\""                   +
++                        carousel.STRINGS.NEXT_BUTTON_TEXT + "\">"      +
++                        carousel.STRINGS.NEXT_BUTTON_TEXT + "</button>";
++                navContainer.appendChild(nextButton);
++                btn = Dom.get(btn);
++                carousel._navBtns.next = [btn];
++                if (cfg) {
++                    cfg.next = [nextButton];
++                } else {
++                    cfg = { next: [nextButton] };
++                }
++            }
++
++            if (cfg) {
++                carousel.set("navigation", cfg);
++            }
++
++            return navContainer;
++        },
++
++        /**
++         * Set the clip container size (based on the new numVisible value).
++         *
++         * @method _setClipContainerSize
++         * @param clip {HTMLElement} The clip container element.
++         * @param num {Number} optional The number of items per page.
++         * @protected
++         */
++        _setClipContainerSize: function (clip, num) {
++            var carousel   = this,
++                isVertical = carousel.get("isVertical"),
++                rows       = carousel._rows,
++                cols       = carousel._cols,
++                reveal     = carousel.get("revealAmount"),
++                itemHeight = getCarouselItemSize.call(carousel, "height"),
++                itemWidth  = getCarouselItemSize.call(carousel, "width"),
++                containerHeight,
++                containerWidth;
++
++            clip = clip || carousel._clipEl;
++
++            if (rows) {
++                 containerHeight = itemHeight * rows;
++                 containerWidth  = itemWidth  * cols;
++            } else {
++                num = num || carousel.get("numVisible");
++                if (isVertical) {
++                    containerHeight = itemHeight * num;
++                } else {
++                    containerWidth  = itemWidth  * num;
++                }
++            }
++
++            // TODO: try to re-use the _hasRendered indicator
++
++            carousel._recomputeSize = (containerHeight === 0); // bleh!
++            if (carousel._recomputeSize) {
++                carousel._hasRendered = false;
++                return;             // no use going further, bail out!
++            }
++
++            reveal = getRevealSize.call(carousel);
++            if (isVertical) {
++                containerHeight += (reveal * 2);
++            } else {
++                containerWidth  += (reveal * 2);
++            }
++
++            if (isVertical) {
++                containerHeight += getDimensions(carousel._carouselEl,"height");
++                Dom.setStyle(clip, "height", containerHeight + "px");
++                // For multi-row Carousel
++                if (cols) {
++                    containerWidth += getDimensions(carousel._carouselEl,
++                            "width");
++                    Dom.setStyle(clip, "width", containerWidth + (0) + "px");
++                }
++            } else {
++                containerWidth += getDimensions(carousel._carouselEl, "width");
++                Dom.setStyle(clip, "width", containerWidth + "px");
++                // For multi-row Carousel
++                if (rows) {
++                    containerHeight += getDimensions(carousel._carouselEl,
++                            "height");
++                    Dom.setStyle(clip, "height", containerHeight + "px");
++                }
++            }
++
++            carousel._setContainerSize(clip); // adjust the container size too
++        },
++
++        /**
++         * Set the container size.
++         *
++         * @method _setContainerSize
++         * @param clip {HTMLElement} The clip container element.
++         * @param attr {String} Either set the height or width.
++         * @protected
++         */
++        _setContainerSize: function (clip, attr) {
++            var carousel = this,
++                config   = carousel.CONFIG,
++                cssClass = carousel.CLASSES,
++                isVertical,
++                rows,
++                cols,
++                size;
++
++            isVertical = carousel.get("isVertical");
++            rows       = carousel._rows;
++            cols       = carousel._cols;
++            clip       = clip || carousel._clipEl;
++            attr       = attr || (isVertical ? "height" : "width");
++            size       = parseFloat(Dom.getStyle(clip, attr), 10);
++
++            size = JS.isNumber(size) ? size : 0;
++
++            if (isVertical) {
++                size += getDimensions(carousel._carouselEl, "height") +
++                        getStyle(carousel._navEl, "height");
++            } else {
++                size += getDimensions(carousel._carouselEl, "width");
++            }
++
++            if (!isVertical) {
++                if (size < config.HORZ_MIN_WIDTH) {
++                    size = config.HORZ_MIN_WIDTH;
++                    carousel.addClass(cssClass.MIN_WIDTH);
++                }
++            }
++            carousel.setStyle(attr,  size + "px");
++
++            // Additionally the width of the container should be set for
++            // the vertical Carousel
++            if (isVertical) {
++                size = getCarouselItemSize.call(carousel, "width");
++                if(cols) {
++                    size = size * cols;
++                }
++                Dom.setStyle(carousel._carouselEl, "width", size + "px");// Bug fix for vertical carousel (goes in conjunction with .yui-carousel-element {... 3200px removed from styles), and allows for multirows in IEs).
++                if (size < config.VERT_MIN_WIDTH) {
++                    size = config.VERT_MIN_WIDTH;
++                    carousel.addClass(cssClass.MIN_WIDTH);// set a min width on vertical carousel, don't see why this shouldn't always be set...
++                }
++                carousel.setStyle("width",  size + "px");
++            } else {
++                if(rows) {
++                    size = getCarouselItemSize.call(carousel, "height");
++                    size = size * rows;
++                    Dom.setStyle(carousel._carouselEl, "height", size + "px");
++                }
++            }
++        },
++
++        /**
++         * Set the value for the Carousel's first visible item.
++         *
++         * @method _setFirstVisible
++         * @param val {Number} The new value for firstVisible
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setFirstVisible: function (val) {
++            var carousel = this;
++
++            if (val >= 0 && val < carousel.get("numItems")) {
++                carousel.scrollTo(val);
++            } else {
++                val = carousel.get("firstVisible");
++            }
++            return val;
++        },
++
++        /**
++         * Set the value for the Carousel's navigation.
++         *
++         * @method _setNavigation
++         * @param cfg {Object} The navigation configuration
++         * @return {Object} The new value that would be set
++         * @protected
++         */
++        _setNavigation: function (cfg) {
++            var carousel = this;
++
++            if (cfg.prev) {
++                Event.on(cfg.prev, "click", scrollPageBackward, carousel);
++            }
++            if (cfg.next) {
++                Event.on(cfg.next, "click", scrollPageForward, carousel);
++            }
++        },
++
++        /**
++         * Clip the container size every time numVisible is set.
++         *
++         * @method _setNumVisible
++         * @param val {Number} The new value for numVisible
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setNumVisible: function (val) { // TODO: _setNumVisible should just be reserved for setting numVisible.
++            var carousel = this;
++
++            carousel._setClipContainerSize(carousel._clipEl, val);
++        },
++
++        /**
++         * Set the value for the number of visible items in the Carousel.
++         *
++         * @method _numVisibleSetter
++         * @param val {Number} The new value for numVisible
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _numVisibleSetter: function (val) {
++            var carousel = this,
++                numVisible = val;
++
++            if(JS.isArray(val)) {
++                carousel._cols = val[0];
++                carousel._rows = val[1];
++                numVisible = val[0] *  val[1];
++            }
++            return numVisible;
++        },
++
++        /**
++         * Set the value for selectedItem.
++         *
++         * @method _selectedItemSetter
++         * @param val {Number} The new value for selectedItem
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _selectedItemSetter: function (val) {
++            var carousel = this;
++            return (val < carousel.get("numItems")) ? val : 0;
++        },
++
++        /**
++         * Set the number of items in the Carousel.
++         * Warning: Setting this to a lower number than the current removes
++         * items from the end.
++         *
++         * @method _setNumItems
++         * @param val {Number} The new value for numItems
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setNumItems: function (val) {
++            var carousel = this,
++                num      = carousel._itemsTable.numItems;
++
++            if (JS.isArray(carousel._itemsTable.items)) {
++                if (carousel._itemsTable.items.length != num) { // out of sync
++                    num = carousel._itemsTable.items.length;
++                    carousel._itemsTable.numItems = num;
++                }
++            }
++
++            if (val < num) {
++                while (num > val) {
++                    carousel.removeItem(num - 1);
++                    num--;
++                }
++            }
++
++            return val;
++        },
++
++        /**
++         * Set the orientation of the Carousel.
++         *
++         * @method _setOrientation
++         * @param val {Boolean} The new value for isVertical
++         * @return {Boolean} The new value that would be set
++         * @protected
++         */
++        _setOrientation: function (val) {
++            var carousel = this,
++                cssClass = carousel.CLASSES;
++
++            if (val) {
++                carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL);
++            } else {
++                carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL);
++            }
++            this._itemAttrCache = {}; // force recomputed next time
++
++            return val;
++        },
++
++        /**
++         * Set the value for the reveal amount percentage in the Carousel.
++         *
++         * @method _setRevealAmount
++         * @param val {Number} The new value for revealAmount
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setRevealAmount: function (val) {
++            var carousel = this;
++
++            if (val >= 0 && val <= 100) {
++                val = parseInt(val, 10);
++                val = JS.isNumber(val) ? val : 0;
++                carousel._setClipContainerSize();
++            } else {
++                val = carousel.get("revealAmount");
++            }
++            return val;
++        },
++
++        /**
++         * Set the value for the selected item.
++         *
++         * @method _setSelectedItem
++         * @param val {Number} The new value for "selected" item
++         * @protected
++         */
++        _setSelectedItem: function (val) {
++            this._selectedItem = val;
++        },
++
++        /**
++         * Get the total number of pages.
++         *
++         * @method _getNumPages
++         * @protected
++         */
++        _getNumPages: function () {
++            return Math.ceil(
++                parseInt(this.get("numItems"),10) / parseInt(this.get("numVisible"),10)
++            );
++        },
++
++        /**
++         * Get the index of the last visible item
++         *
++         * @method _getLastVisible
++         * @protected
++         */
++        _getLastVisible: function () {
++            var carousel = this;
++            return carousel.get("currentPage") + 1 == carousel.get("numPages") ?
++                   carousel.get("numItems") - 1:
++                   carousel.get("firstVisible") + carousel.get("numVisible") - 1;
++        },
++
++        /**
++         * Synchronize and redraw the UI after an item is added.
++         *
++         * @method _syncUiForItemAdd
++         * @protected
++         */
++        _syncUiForItemAdd: function (obj) {
++            var attr,
++                carousel   = this,
++                carouselEl = carousel._carouselEl,
++                el,
++                item,
++                itemsTable = carousel._itemsTable,
++                oel,
++                pos,
++                sibling,
++                styles;
++
++            pos  = JS.isUndefined(obj.pos) ?
++                   obj.newPos || itemsTable.numItems - 1 : obj.pos;
++
++            if (!oel) {
++                item = itemsTable.items[pos] || {};
++                el = carousel._createCarouselItem({
++                        className : item.className,
++                        styles    : item.styles,
++                        content   : item.item,
++                        id        : item.id,
++                        pos       : pos
++                });
++                if (JS.isUndefined(obj.pos)) {
++                    if (!JS.isUndefined(itemsTable.loading[pos])) {
++                        oel = itemsTable.loading[pos];
++                        // if oel is null, it is a problem ...
++                    }
++                    if (oel) {
++                        // replace the node
++                        carouselEl.replaceChild(el, oel);
++                        // ... and remove the item from the data structure
++                        delete itemsTable.loading[pos];
++                    } else {
++                        carouselEl.appendChild(el);
++                    }
++                } else {
++                    if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
++                        sibling = Dom.get(itemsTable.items[obj.pos + 1].id);
++                    }
++                    if (sibling) {
++                        carouselEl.insertBefore(el, sibling);
++                    } else {
++                        YAHOO.log("Unable to find sibling","error",WidgetName);
++                    }
++                }
++            } else {
++                if (JS.isUndefined(obj.pos)) {
++                    if (!Dom.isAncestor(carousel._carouselEl, oel)) {
++                        carouselEl.appendChild(oel);
++                    }
++                } else {
++                    if (!Dom.isAncestor(carouselEl, oel)) {
++                        if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
++                            carouselEl.insertBefore(oel,
++                                    Dom.get(itemsTable.items[obj.pos + 1].id));
++                        }
++                    }
++                }
++            }
++
++            if (!carousel._hasRendered) {
++                carousel._refreshUi();
++            }
++
++            if (carousel.get("selectedItem") < 0) {
++                carousel.set("selectedItem", carousel.get("firstVisible"));
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Synchronize and redraw the UI after an item is replaced.
++         *
++         * @method _syncUiForItemReplace
++         * @protected
++         */
++        _syncUiForItemReplace: function (o) {
++            var carousel   = this,
++                carouselEl = carousel._carouselEl,
++                itemsTable = carousel._itemsTable,
++                pos        = o.pos,
++                item       = o.newItem,
++                oel        = o.oldItem,
++                el;
++
++            el = carousel._createCarouselItem({
++                className : item.className,
++                styles    : item.styles,
++                content   : item.item,
++                id        : item.id,
++                pos       : pos
++            });
++
++            if(el && oel) {
++                Event.purgeElement(oel, true);
++                carouselEl.replaceChild(el, Dom.get(oel.id));
++                if (!JS.isUndefined(itemsTable.loading[pos])) {
++                    itemsTable.numItems++;
++                    delete itemsTable.loading[pos];
++                }
++            }
++            // TODO: should we add the item if oel is undefined?
++
++            if (!carousel._hasRendered) {
++                carousel._refreshUi();
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Synchronize and redraw the UI after an item is removed.
++         *
++         * @method _syncUiForItemAdd
++         * @protected
++         */
++        _syncUiForItemRemove: function (obj) {
++            var carousel   = this,
++                carouselEl = carousel._carouselEl,
++                el, item, num, pos;
++
++            num  = carousel.get("numItems");
++            item = obj.item;
++            pos  = obj.pos;
++
++            if (item && (el = Dom.get(item.id))) {
++                if (el && Dom.isAncestor(carouselEl, el)) {
++                    Event.purgeElement(el, true);
++                    carouselEl.removeChild(el);
++                }
++
++                if (carousel.get("selectedItem") == pos) {
++                    pos = pos >= num ? num - 1 : pos;
++                }
++            } else {
++                YAHOO.log("Unable to find item", "warn", WidgetName);
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Synchronize and redraw the UI for lazy loading.
++         *
++         * @method _syncUiForLazyLoading
++         * @protected
++         */
++        _syncUiForLazyLoading: function (obj) {
++            var carousel   = this,
++                carouselEl = carousel._carouselEl,
++                itemsTable = carousel._itemsTable,
++                len = itemsTable.items.length,
++                sibling = itemsTable.items[obj.last + 1],
++                el,
++                j;
++
++            // attempt to find the next closest sibling
++            if(!sibling && obj.last < len){
++                j = obj.first;
++                do {
++                    sibling = itemsTable.items[j];
++                    j++;
++                } while (j<len && !sibling);
++            }
++
++            for (var i = obj.first; i <= obj.last; i++) {
++                if(JS.isUndefined(itemsTable.loading[i]) && JS.isUndefined(itemsTable.items[i])){
++                    el = carousel._createCarouselItem({
++                            className : carousel.CLASSES.ITEM_LOADING,
++                            content   : carousel.STRINGS.ITEM_LOADING_CONTENT,
++                            id        : Dom.generateId(),
++                            pos       : i
++                    });
++                    if (el) {
++                        if (sibling) {
++                            sibling = Dom.get(sibling.id);
++                            if (sibling) {
++                                carouselEl.insertBefore(el, sibling);
++                            } else {
++                                YAHOO.log("Unable to find sibling", "error",
++                                        WidgetName);
++                            }
++                        } else {
++                            carouselEl.appendChild(el);
++                        }
++                    }
++                    itemsTable.loading[i] = el;
++                }
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Redraw the UI for item positioning.
++         *
++         * @method _syncUiItems
++         * @protected
++         */
++        _syncUiItems: function () {
++            var attr,
++                carousel = this,
++                numItems = carousel.get("numItems"),
++                i,
++                itemsTable = carousel._itemsTable,
++                items = itemsTable.items,
++                loading = itemsTable.loading,
++                item,
++                styles;
++
++            for (i = 0; i < numItems; i++) {
++                item = items[i] || loading[i];
++
++                if (item && item.id) {
++                    styles = getCarouselItemPosition.call(carousel, i);
++                    item.styles = item.styles || {};
++                    for (attr in styles) {
++                        if (styles.hasOwnProperty(attr)) {
++                            item.styles[attr] = styles[attr];
++                        }
++                    }
++                    setStyles(Dom.get(item.id), styles);
++                }
++            }
++        },
++
++        /**
++         * Set the correct class for the navigation buttons.
++         *
++         * @method _updateNavButtons
++         * @param el {Object} The target button
++         * @param setFocus {Boolean} True to set focus ring, false otherwise.
++         * @protected
++         */
++        _updateNavButtons: function (el, setFocus) {
++            var children,
++                cssClass = this.CLASSES,
++                grandParent,
++                parent   = el.parentNode;
++
++            if (!parent) {
++                return;
++            }
++            grandParent = parent.parentNode;
++
++            if (el.nodeName.toUpperCase() == "BUTTON" &&
++                Dom.hasClass(parent, cssClass.BUTTON)) {
++                if (setFocus) {
++                    if (grandParent) {
++                        children = Dom.getChildren(grandParent);
++                        if (children) {
++                            Dom.removeClass(children, cssClass.FOCUSSED_BUTTON);
++                        }
++                    }
++                    Dom.addClass(parent, cssClass.FOCUSSED_BUTTON);
++                } else {
++                    Dom.removeClass(parent, cssClass.FOCUSSED_BUTTON);
++                }
++            }
++        },
++
++        /**
++         * Update the UI for the pager buttons based on the current page and
++         * the number of pages.
++         *
++         * @method _updatePagerButtons
++         * @protected
++         */
++         _updatePagerButtons: function () {
++             var carousel = this,
++                 css      = carousel.CLASSES,
++                 cur      = carousel._pages.cur, // current page
++                 el,
++                 html,
++                 i,
++                 item,
++                 n        = carousel.get("numVisible"),
++                 num      = carousel._pages.num, // total pages
++                 pager    = carousel._pages.el;  // the pager container element
++
++             if (num === 0 || !pager) {
++                 return;         // don't do anything if number of pages is 0
++             }
++
++             // Hide the pager before redrawing it
++             Dom.setStyle(pager, "visibility", "hidden");
++
++             // Remove all nodes from the pager
++             while (pager.firstChild) {
++                 pager.removeChild(pager.firstChild);
++             }
++
++             for (i = 0; i < num; i++) {
++
++                 el   = document.createElement("LI");
++
++                 if (i === 0) {
++                     Dom.addClass(el, css.FIRST_PAGE);
++                 }
++                 if (i == cur) {
++                     Dom.addClass(el, css.SELECTED_NAV);
++                 }
++
++                 html = "<a class=" + css.PAGER_ITEM + " href=\"#" + (i+1) + "\" tabindex=\"0\"><em>"   +
++                         carousel.STRINGS.PAGER_PREFIX_TEXT + " " + (i+1) +
++                         "</em></a>";
++                 el.innerHTML = html;
++
++                 pager.appendChild(el);
++             }
++
++             // Show the pager now
++             Dom.setStyle(pager, "visibility", "visible");
++         },
++
++        /**
++         * Update the UI for the pager menu based on the current page and
++         * the number of pages.  If the number of pages is greater than
++         * MAX_PAGER_BUTTONS, then the selection of pages is provided by a drop
++         * down menu instead of a set of buttons.
++         *
++         * @method _updatePagerMenu
++         * @protected
++         */
++        _updatePagerMenu: function () {
++            var carousel = this,
++                css      = carousel.CLASSES,
++                cur      = carousel._pages.cur, // current page
++                el,
++                i,
++                item,
++                n        = carousel.get("numVisible"),
++                num      = carousel._pages.num, // total pages
++                pager    = carousel._pages.el,  // the pager container element
++                sel;
++
++            if (num === 0) {
++                return;// don't do anything if number of pages is 0
++            }
++
++            sel = document.createElement("SELECT");
++
++
++            if (!sel) {
++                YAHOO.log("Unable to create the pager menu", "error",
++                          WidgetName);
++                return;
++            }
++
++            // Hide the pager before redrawing it
++            Dom.setStyle(pager, "visibility", "hidden");
++
++            // Remove all nodes from the pager
++            while (pager.firstChild) {
++                pager.removeChild(pager.firstChild);
++            }
++
++            for (i = 0; i < num; i++) {
++
++                el   = document.createElement("OPTION");
++                el.value     = i+1;
++                el.innerHTML = carousel.STRINGS.PAGER_PREFIX_TEXT+" "+(i+1);
++
++                if (i == cur) {
++                    el.setAttribute("selected", "selected");
++                }
++
++                sel.appendChild(el);
++            }
++
++            el = document.createElement("FORM");
++            if (!el) {
++                YAHOO.log("Unable to create the pager menu", "error",
++                          WidgetName);
++            } else {
++                el.appendChild(sel);
++                pager.appendChild(el);
++            }
++
++            // Show the pager now
++            Event.addListener(sel, "change", carousel._pagerChangeHandler, this, true);
++            Dom.setStyle(pager, "visibility", "visible");
++        },
++
++        /**
++         * Set the correct tab index for the Carousel items.
++         *
++         * @method _updateTabIndex
++         * @param el {Object} The element to be focussed
++         * @protected
++         */
++        _updateTabIndex: function (el) {
++            var carousel = this;
++
++            if (el) {
++                if (carousel._focusableItemEl) {
++                    carousel._focusableItemEl.tabIndex = -1;
++                }
++                carousel._focusableItemEl = el;
++                el.tabIndex = 0;
++            }
++        },
++
++        /**
++         * Validate animation parameters.
++         *
++         * @method _validateAnimation
++         * @param cfg {Object} The animation configuration
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateAnimation: function (cfg) {
++            var rv = true;
++
++            if (JS.isObject(cfg)) {
++                if (cfg.speed) {
++                    rv = rv && JS.isNumber(cfg.speed);
++                }
++                if (cfg.effect) {
++                    rv = rv && JS.isFunction(cfg.effect);
++                } else if (!JS.isUndefined(YAHOO.util.Easing)) {
++                    cfg.effect = YAHOO.util.Easing.easeOut;
++                }
++            } else {
++                rv = false;
++            }
++
++            return rv;
++        },
++
++        /**
++         * Validate the firstVisible value.
++         *
++         * @method _validateFirstVisible
++         * @param val {Number} The first visible value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateFirstVisible: function (val) {
++            var carousel = this, numItems = carousel.get("numItems");
++
++            if (JS.isNumber(val)) {
++                if (numItems === 0 && val == numItems) {
++                    return true;
++                } else {
++                    return (val >= 0 && val < numItems);
++                }
++            }
++
++            return false;
++        },
++
++        /**
++         * Validate and navigation parameters.
++         *
++         * @method _validateNavigation
++         * @param cfg {Object} The navigation configuration
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateNavigation : function (cfg) {
++            var i;
++
++            if (!JS.isObject(cfg)) {
++                return false;
++            }
++
++            if (cfg.prev) {
++                if (!JS.isArray(cfg.prev)) {
++                    return false;
++                }
++                for (i in cfg.prev) {
++                    if (cfg.prev.hasOwnProperty(i)) {
++                        if (!JS.isString(cfg.prev[i].nodeName)) {
++                            return false;
++                        }
++                    }
++                }
++            }
++
++            if (cfg.next) {
++                if (!JS.isArray(cfg.next)) {
++                    return false;
++                }
++                for (i in cfg.next) {
++                    if (cfg.next.hasOwnProperty(i)) {
++                        if (!JS.isString(cfg.next[i].nodeName)) {
++                            return false;
++                        }
++                    }
++                }
++            }
++
++            return true;
++        },
++
++        /**
++         * Validate the numItems value.
++         *
++         * @method _validateNumItems
++         * @param val {Number} The numItems value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateNumItems: function (val) {
++            return JS.isNumber(val) && (val >= 0);
++        },
++
++        /**
++         * Validate the numVisible value.
++         *
++         * @method _validateNumVisible
++         * @param val {Number} The numVisible value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateNumVisible: function (val) {
++            var rv = false;
++
++            if (JS.isNumber(val)) {
++                rv = val > 0 && val <= this.get("numItems");
++            } else if (JS.isArray(val)) {
++                if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
++                    rv = val[0] * val[1] > 0 && val.length == 2;
++                }
++            }
++
++            return rv;
++        },
++
++        /**
++         * Validate the revealAmount value.
++         *
++         * @method _validateRevealAmount
++         * @param val {Number} The revealAmount value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateRevealAmount: function (val) {
++            var rv = false;
++
++            if (JS.isNumber(val)) {
++                rv = val >= 0 && val < 100;
++            }
++
++            return rv;
++        },
++
++        /**
++         * Validate the scrollIncrement value.
++         *
++         * @method _validateScrollIncrement
++         * @param val {Number} The scrollIncrement value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateScrollIncrement: function (val) {
++            var rv = false;
++
++            if (JS.isNumber(val)) {
++                rv = (val > 0 && val < this.get("numItems"));
++            }
++
++            return rv;
++        }
++
++    });
++
++})();
++/*
++;;  Local variables: **
++;;  mode: js2 **
++;;  indent-tabs-mode: nil **
++;;  End: **
++*/
++YAHOO.register("carousel", YAHOO.widget.Carousel, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/carousel/carousel-min.js b/pylons_app/public/js/yui/carousel/carousel-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/carousel/carousel-min.js
+@@ -0,0 +1,12 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var P;YAHOO.widget.Carousel=function(s,r){YAHOO.widget.Carousel.superclass.constructor.call(this,s,r);};var U=YAHOO.widget.Carousel,e=YAHOO.util.Dom,c=YAHOO.util.Event,p=YAHOO.lang;P="Carousel";var T={},F="afterScroll",g="allItemsRemoved",b="beforeHide",J="beforePageChange",i="beforeScroll",Y="beforeShow",B="blur",X="focus",a="hide",S="itemAdded",o="itemRemoved",Q="itemReplaced",C="itemSelected",L="loadItems",I="navigationStateChange",h="pageChange",H="render",V="show",Z="startAutoPlay",q="stopAutoPlay",K="uiUpdate";function G(r,s){var t;for(t in s){if(s.hasOwnProperty(t)){e.setStyle(r,t,s[t]);}}}function W(s,r){var t=document.createElement(s);r=r||{};if(r.className){e.addClass(t,r.className);}if(r.styles){G(t,r.styles);}if(r.parent){r.parent.appendChild(t);}if(r.id){t.setAttribute("id",r.id);}if(r.content){if(r.content.nodeName){t.appendChild(r.content);}else{t.innerHTML=r.content;}}return t;}function d(t,s,r){var v;if(!t){return 0;}function u(y,x){var z;if(x=="marginRight"&&YAHOO.env.ua.webkit){z=parseInt(e.getStyle(y,"marginLeft"),10);}else{z=parseInt(e.getStyle(y,x),10);}return p.isNumber(z)?z:0;}function w(y,x){var z;if(x=="marginRight"&&YAHOO.env.ua.webkit){z=parseFloat(e.getStyle(y,"marginLeft"));}else{z=parseFloat(e.getStyle(y,x));}return p.isNumber(z)?z:0;}if(typeof r=="undefined"){r="int";}switch(s){case"height":v=t.offsetHeight;if(v>0){v+=u(t,"marginTop")+u(t,"marginBottom");}else{v=w(t,"height")+u(t,"marginTop")+u(t,"marginBottom")+u(t,"borderTopWidth")+u(t,"borderBottomWidth")+u(t,"paddingTop")+u(t,"paddingBottom");}break;case"width":v=t.offsetWidth;if(v>0){v+=u(t,"marginLeft")+u(t,"marginRight");}else{v=w(t,"width")+u(t,"marginLeft")+u(t,"marginRight")+u(t,"borderLeftWidth")+u(t,"borderRightWidth")+u(t,"paddingLeft")+u(t,"paddingRight");}break;default:if(r=="int"){v=u(t,s);}else{if(r=="float"){v=w(t,s);}else{v=e.getStyle(t,s);}}break;}return v;}function O(w){var u=this,x,t,s=0,v=u.get("firstVisible"),r=false;if(u._itemsTable.numItems===0){return 0;}t=u._itemsTable.items[v]||u._itemsTable.loading[v];if(p.isUndefined(t)){return 0;}x=e.get(t.id);if(typeof w=="undefined"){r=u.get("isVertical");}else{r=w=="height";}if(this._itemAttrCache[w]){return this._itemAttrCache[w];}if(r){s=d(x,"height");}else{s=d(x,"width");}this._itemAttrCache[w]=s;return s;}function N(){var s=this,t,r;t=s.get("isVertical");r=O.call(s,t?"height":"width");return(r*s.get("revealAmount")/100);}function m(w){var AH=this,z=AH._cols,v=AH._rows,u,AC,AB,t,x,AD,AJ=0,AE,s,AG,AA={},y=0,AI=AH._itemsTable,AF=AI.items,r=AI.loading;AB=AH.get("isVertical");AC=O.call(AH,AB?"height":"width");AG=N.call(AH);while(y<w){if(!AF[y]&&!r[y]){AJ++;}y++;}w-=AJ;if(v){u=this.getPageForItem(w);if(AB){x=Math.floor(w/z);AJ=x;AE=AJ*AC;AA.top=(AE+AG)+"px";AC=O.call(AH,"width");t=w%z;AJ=t;s=AJ*AC;AA.left=s+"px";}else{t=w%z;AD=(u-1)*z;AJ=t+AD;s=AJ*AC;AA.left=(s+AG)+"px";AC=O.call(AH,"height");x=Math.floor(w/z);AD=(u-1)*v;AJ=x-AD;AE=AJ*AC;AA.top=AE+"px";}}else{if(AB){AA.left=0;AA.top=((w*AC)+AG)+"px";}else{AA.top=0;AA.left=((w*AC)+AG)+"px";}}return AA;}function D(s){var r=this.get("numVisible");return Math.floor(s/r)*r;}function j(t){var s=0,r=0;s=O.call(this);r=s*t;return r;}function f(r,s){s.scrollPageBackward();c.preventDefault(r);}function k(r,s){s.scrollPageForward();c.preventDefault(r);}function n(w,s){var AA=this,AB=AA.CLASSES,r,y=AA._firstItem,t=AA.get("isCircular"),x=AA.get("numItems"),z=AA.get("numVisible"),v=s,u=y+z-1;if(v>=0&&v<x){if(!p.isUndefined(AA._itemsTable.items[v])){r=e.get(AA._itemsTable.items[v].id);if(r){e.removeClass(r,AB.SELECTED_ITEM);}}}if(p.isNumber(w)){w=parseInt(w,10);w=p.isNumber(w)?w:0;}else{w=y;}if(p.isUndefined(AA._itemsTable.items[w])){w=D.call(AA,w);AA.scrollTo(w);}if(!p.isUndefined(AA._itemsTable.items[w])){r=e.get(AA._itemsTable.items[w].id);if(r){e.addClass(r,AB.SELECTED_ITEM);}}if(w<y||w>u){w=D.call(AA,w);AA.scrollTo(w);}}function l(){var t=false,w=this,s=w.CLASSES,v,r,u;if(!w._hasRendered){return;}r=w.get("navigation");u=w._firstItem+w.get("numVisible");if(r.prev){if(w.get("numItems")===0||w._firstItem===0){if(w.get("numItems")===0||!w.get("isCircular")){c.removeListener(r.prev,"click",f);e.addClass(r.prev,s.FIRST_NAV_DISABLED);for(v=0;v<w._navBtns.prev.length;v++){w._navBtns.prev[v].setAttribute("disabled","true");}w._prevEnabled=false;}else{t=!w._prevEnabled;}}else{t=!w._prevEnabled;}if(t){c.on(r.prev,"click",f,w);e.removeClass(r.prev,s.FIRST_NAV_DISABLED);for(v=0;v<w._navBtns.prev.length;v++){w._navBtns.prev[v].removeAttribute("disabled");}w._prevEnabled=true;}}t=false;if(r.next){if(u>=w.get("numItems")){if(!w.get("isCircular")){c.removeListener(r.next,"click",k);e.addClass(r.next,s.DISABLED);for(v=0;v<w._navBtns.next.length;v++){w._navBtns.next[v].setAttribute("disabled","true");}w._nextEnabled=false;}else{t=!w._nextEnabled;}}else{t=!w._nextEnabled;}if(t){c.on(r.next,"click",k,w);e.removeClass(r.next,s.DISABLED);for(v=0;v<w._navBtns.next.length;v++){w._navBtns.next[v].removeAttribute("disabled");}w._nextEnabled=true;}}w.fireEvent(I,{next:w._nextEnabled,prev:w._prevEnabled});}function R(t){var u=this,r,s;if(!u._hasRendered){return;}s=u.get("numVisible");if(!p.isNumber(t)){t=Math.floor(u.get("selectedItem")/s);}r=Math.ceil(u.get("numItems")/s);u._pages.num=r;u._pages.cur=t;if(r>u.CONFIG.MAX_PAGER_BUTTONS){u._updatePagerMenu();}else{u._updatePagerButtons();}}function M(r,s){switch(s){case"height":return d(r,"marginTop")+d(r,"marginBottom")+d(r,"paddingTop")+d(r,"paddingBottom")+d(r,"borderTopWidth")+d(r,"borderBottomWidth");case"width":return d(r,"marginLeft")+d(r,"marginRight")+d(r,"paddingLeft")+d(r,"paddingRight")+d(r,"borderLeftWidth")+d(r,"borderRightWidth");default:break;}return d(r,s);}function A(s){var r=this;if(!p.isObject(s)){return;}switch(s.ev){case S:r._syncUiForItemAdd(s);break;case o:r._syncUiForItemRemove(s);break;case Q:r._syncUiForItemReplace(s);break;case L:r._syncUiForLazyLoading(s);break;}r.fireEvent(K);}function E(u,s){var w=this,v=w.get("currentPage"),t,r=w.get("numVisible");
++t=parseInt(w._firstItem/r,10);if(t!=v){w.setAttributeConfig("currentPage",{value:t});w.fireEvent(h,t);}if(w.get("selectOnScroll")){if(w.get("selectedItem")!=w._selectedItem){w.set("selectedItem",w._selectedItem);}}clearTimeout(w._autoPlayTimer);delete w._autoPlayTimer;if(w.isAutoPlayOn()){w.startAutoPlay();}w.fireEvent(F,{first:w._firstItem,last:s},w);}U.getById=function(r){return T[r]?T[r].object:false;};YAHOO.extend(U,YAHOO.util.Element,{_rows:null,_cols:null,_animObj:null,_carouselEl:null,_clipEl:null,_firstItem:0,_hasFocus:false,_hasRendered:false,_isAnimationInProgress:false,_isAutoPlayInProgress:false,_itemsTable:null,_navBtns:null,_navEl:null,_nextEnabled:true,_pages:null,_pagination:{},_prevEnabled:true,_recomputeSize:true,_itemAttrCache:{},CLASSES:{BUTTON:"yui-carousel-button",CAROUSEL:"yui-carousel",CAROUSEL_EL:"yui-carousel-element",CONTAINER:"yui-carousel-container",CONTENT:"yui-carousel-content",DISABLED:"yui-carousel-button-disabled",FIRST_NAV:" yui-carousel-first-button",FIRST_NAV_DISABLED:"yui-carousel-first-button-disabled",FIRST_PAGE:"yui-carousel-nav-first-page",FOCUSSED_BUTTON:"yui-carousel-button-focus",HORIZONTAL:"yui-carousel-horizontal",ITEM_LOADING:"yui-carousel-item-loading",MIN_WIDTH:"yui-carousel-min-width",NAVIGATION:"yui-carousel-nav",NEXT_NAV:" yui-carousel-next-button",NEXT_PAGE:"yui-carousel-next",NAV_CONTAINER:"yui-carousel-buttons",PAGER_ITEM:"yui-carousel-pager-item",PAGINATION:"yui-carousel-pagination",PAGE_FOCUS:"yui-carousel-nav-page-focus",PREV_PAGE:"yui-carousel-prev",SELECTED_ITEM:"yui-carousel-item-selected",SELECTED_NAV:"yui-carousel-nav-page-selected",VERTICAL:"yui-carousel-vertical",MULTI_ROW:"yui-carousel-multi-row",ROW:"yui-carousel-row",VERTICAL_CONTAINER:"yui-carousel-vertical-container",VISIBLE:"yui-carousel-visible"},CONFIG:{FIRST_VISIBLE:0,HORZ_MIN_WIDTH:180,MAX_PAGER_BUTTONS:5,VERT_MIN_WIDTH:115,NUM_VISIBLE:3},STRINGS:{ITEM_LOADING_CONTENT:"Loading",NEXT_BUTTON_TEXT:"Next Page",PAGER_PREFIX_TEXT:"Go to page ",PREVIOUS_BUTTON_TEXT:"Previous Page"},addItem:function(y,s){var x=this,u,t,r,z=0,w,v=x.get("numItems");if(!y){return false;}if(p.isString(y)||y.nodeName){t=y.nodeName?y.innerHTML:y;}else{if(p.isObject(y)){t=y.content;}else{return false;}}u=y.className||"";r=y.id?y.id:e.generateId();if(p.isUndefined(s)){x._itemsTable.items.push({item:t,className:u,id:r});w=x._itemsTable.items.length-1;}else{if(s<0||s>v){return false;}if(!x._itemsTable.items[s]){x._itemsTable.items[s]=undefined;z=1;}x._itemsTable.items.splice(s,z,{item:t,className:u,id:r});}x._itemsTable.numItems++;if(v<x._itemsTable.items.length){x.set("numItems",x._itemsTable.items.length);}x.fireEvent(S,{pos:s,ev:S,newPos:w});return true;},addItems:function(r){var s,u,t=true;if(!p.isArray(r)){return false;}for(s=0,u=r.length;s<u;s++){if(this.addItem(r[s][0],r[s][1])===false){t=false;}}return t;},blur:function(){this._carouselEl.blur();this.fireEvent(B);},clearItems:function(){var r=this,s=r.get("numItems");while(s>0){if(!r.removeItem(0)){}if(r._itemsTable.numItems===0){r.set("numItems",0);break;}s--;}r.fireEvent(g);},focus:function(){var AA=this,v,w,x,u,z,AB,s,t,r;if(!AA._hasRendered){return;}if(AA.isAnimating()){return;}r=AA.get("selectedItem");AB=AA.get("numVisible");s=AA.get("selectOnScroll");t=(r>=0)?AA.getItem(r):null;v=AA.get("firstVisible");z=v+AB-1;x=(r<v||r>z);w=(t&&t.id)?e.get(t.id):null;u=AA._itemsTable;if(!s&&x){w=(u&&u.items&&u.items[v])?e.get(u.items[v].id):null;}if(w){try{w.focus();}catch(y){}}AA.fireEvent(X);},hide:function(){var r=this;if(r.fireEvent(b)!==false){r.removeClass(r.CLASSES.VISIBLE);r.fireEvent(a);}},init:function(u,s){var v=this,r=u,w=false,t;if(!u){return;}v._hasRendered=false;v._navBtns={prev:[],next:[]};v._pages={el:null,num:0,cur:0};v._pagination={};v._itemAttrCache={};v._itemsTable={loading:{},numItems:0,items:[],size:0};if(p.isString(u)){u=e.get(u);}else{if(!u.nodeName){return;}}U.superclass.init.call(v,u,s);t=v.get("selectedItem");if(t>0){v.set("firstVisible",D.call(v,t));}if(u){if(!u.id){u.setAttribute("id",e.generateId());}w=v._parseCarousel(u);if(!w){v._createCarousel(r);}}else{u=v._createCarousel(r);}r=u.id;v.initEvents();if(w){v._parseCarouselItems();}if(t>0){n.call(v,t,0);}if(!s||typeof s.isVertical=="undefined"){v.set("isVertical",false);}v._parseCarouselNavigation(u);v._navEl=v._setupCarouselNavigation();T[r]={object:v};v._loadItems(Math.min(v.get("firstVisible")+v.get("numVisible"),v.get("numItems"))-1);},initAttributes:function(r){var s=this;r=r||{};U.superclass.initAttributes.call(s,r);s.setAttributeConfig("carouselEl",{validator:p.isString,value:r.carouselEl||"OL"});s.setAttributeConfig("carouselItemEl",{validator:p.isString,value:r.carouselItemEl||"LI"});s.setAttributeConfig("currentPage",{readOnly:true,value:0});s.setAttributeConfig("firstVisible",{method:s._setFirstVisible,validator:s._validateFirstVisible,value:r.firstVisible||s.CONFIG.FIRST_VISIBLE});s.setAttributeConfig("selectOnScroll",{validator:p.isBoolean,value:r.selectOnScroll||true});s.setAttributeConfig("numVisible",{setter:s._numVisibleSetter,method:s._setNumVisible,validator:s._validateNumVisible,value:r.numVisible||s.CONFIG.NUM_VISIBLE});s.setAttributeConfig("numItems",{method:s._setNumItems,validator:s._validateNumItems,value:s._itemsTable.numItems});s.setAttributeConfig("scrollIncrement",{validator:s._validateScrollIncrement,value:r.scrollIncrement||1});s.setAttributeConfig("selectedItem",{setter:s._selectedItemSetter,method:s._setSelectedItem,validator:p.isNumber,value:-1});s.setAttributeConfig("revealAmount",{method:s._setRevealAmount,validator:s._validateRevealAmount,value:r.revealAmount||0});s.setAttributeConfig("isCircular",{validator:p.isBoolean,value:r.isCircular||false});s.setAttributeConfig("isVertical",{method:s._setOrientation,validator:p.isBoolean,value:r.isVertical||false});s.setAttributeConfig("navigation",{method:s._setNavigation,validator:s._validateNavigation,value:r.navigation||{prev:null,next:null,page:null}});s.setAttributeConfig("animation",{validator:s._validateAnimation,value:r.animation||{speed:0,effect:null}});
++s.setAttributeConfig("autoPlay",{validator:p.isNumber,value:r.autoPlay||0});s.setAttributeConfig("autoPlayInterval",{validator:p.isNumber,value:r.autoPlayInterval||0});s.setAttributeConfig("numPages",{readOnly:true,getter:s._getNumPages});s.setAttributeConfig("lastVisible",{readOnly:true,getter:s._getLastVisible});},initEvents:function(){var t=this,s=t.CLASSES,r;t.on("keydown",t._keyboardEventHandler);t.on(F,l);t.on(S,A);t.on(o,A);t.on(Q,A);t.on(C,function(){if(t._hasFocus){t.focus();}});t.on(L,A);t.on(g,function(u){t.scrollTo(0);l.call(t);R.call(t);});t.on(h,R,t);t.on(H,function(u){if(t.get("selectedItem")===null||t.get("selectedItem")<=0){t.set("selectedItem",t.get("firstVisible"));}l.call(t,u);R.call(t,u);t._setClipContainerSize();t.show();});t.on("selectedItemChange",function(u){n.call(t,u.newValue,u.prevValue);if(u.newValue>=0){t._updateTabIndex(t.getElementForItem(u.newValue));}t.fireEvent(C,u.newValue);});t.on(K,function(u){l.call(t,u);R.call(t,u);});t.on("firstVisibleChange",function(u){if(!t.get("selectOnScroll")){if(u.newValue>=0){t._updateTabIndex(t.getElementForItem(u.newValue));}}});t.on("click",function(u){if(t.isAutoPlayOn()){t.stopAutoPlay();}t._itemClickHandler(u);t._pagerClickHandler(u);});c.onFocus(t.get("element"),function(u,w){var v=c.getTarget(u);if(v&&v.nodeName.toUpperCase()=="A"&&e.getAncestorByClassName(v,s.NAVIGATION)){if(r){e.removeClass(r,s.PAGE_FOCUS);}r=v.parentNode;e.addClass(r,s.PAGE_FOCUS);}else{if(r){e.removeClass(r,s.PAGE_FOCUS);}}w._hasFocus=true;w._updateNavButtons(c.getTarget(u),true);},t);c.onBlur(t.get("element"),function(u,v){v._hasFocus=false;v._updateNavButtons(c.getTarget(u),false);},t);},isAnimating:function(){return this._isAnimationInProgress;},isAutoPlayOn:function(){return this._isAutoPlayInProgress;},getElementForItem:function(r){var s=this;if(r<0||r>=s.get("numItems")){return null;}if(s._itemsTable.items[r]){return e.get(s._itemsTable.items[r].id);}return null;},getElementForItems:function(){var t=this,s=[],r;for(r=0;r<t._itemsTable.numItems;r++){s.push(t.getElementForItem(r));}return s;},getItem:function(r){var s=this;if(r<0||r>=s.get("numItems")){return null;}if(s._itemsTable.numItems>r){if(!p.isUndefined(s._itemsTable.items[r])){return s._itemsTable.items[r];}}return null;},getItems:function(){return this._itemsTable.items;},getLoadingItems:function(){return this._itemsTable.loading;},getRows:function(){return this._rows;},getCols:function(){return this._cols;},getItemPositionById:function(w){var u=this,v=u.get("numItems"),s=0,r=u._itemsTable.items,t;while(s<v){t=r[s]||{};if(t.id==w){return s;}s++;}return -1;},getVisibleItems:function(){var u=this,s=u.get("firstVisible"),v=s+u.get("numVisible"),t=[];while(s<v){t.push(u.getElementForItem(s));s++;}return t;},removeItem:function(s){var u=this,t,r=u.get("numItems");if(s<0||s>=r){return false;}t=u._itemsTable.items.splice(s,1);if(t&&t.length==1){u._itemsTable.numItems--;u.set("numItems",r-1);u.fireEvent(o,{item:t[0],pos:s,ev:o});return true;}return false;},replaceItem:function(z,u){var y=this,w,v,t,x=y.get("numItems"),s,r=z;if(!z){return false;}if(p.isString(z)||z.nodeName){v=z.nodeName?z.innerHTML:z;}else{if(p.isObject(z)){v=z.content;}else{return false;}}if(p.isUndefined(u)){return false;}else{if(u<0||u>=x){return false;}s=y._itemsTable.items[u];if(!s){s=y._itemsTable.loading[u];y._itemsTable.items[u]=undefined;}y._itemsTable.items.splice(u,1,{item:v,className:z.className||"",id:e.generateId()});r=y._itemsTable.items[u];}y.fireEvent(Q,{newItem:r,oldItem:s,pos:u,ev:Q});return true;},replaceItems:function(r){var s,u,t=true;if(!p.isArray(r)){return false;}for(s=0,u=r.length;s<u;s++){if(this.replaceItem(r[s][0],r[s][1])===false){t=false;}}return t;},render:function(s){var u=this,r=u.CLASSES,t=u._rows;u.addClass(r.CAROUSEL);if(!u._clipEl){u._clipEl=u._createCarouselClip();u._clipEl.appendChild(u._carouselEl);}if(s){u.appendChild(u._clipEl);u.appendTo(s);}else{if(!e.inDocument(u.get("element"))){return false;}u.appendChild(u._clipEl);}if(t){e.addClass(u._clipEl,r.MULTI_ROW);}if(u.get("isVertical")){u.addClass(r.VERTICAL);}else{u.addClass(r.HORIZONTAL);}if(u.get("numItems")<1){return false;}u._refreshUi();return true;},scrollBackward:function(){var r=this;r.scrollTo(r._firstItem-r.get("scrollIncrement"));},scrollForward:function(){var r=this;r.scrollTo(r._firstItem+r.get("scrollIncrement"));},scrollPageBackward:function(){var t=this,u=t.get("isVertical"),s=t._cols,r=t._firstItem-t.get("numVisible");if(r<0){if(s){r=t._firstItem-s;}}if(t.get("selectOnScroll")){t._selectedItem=t._getSelectedItem(r);}t.scrollTo(r);},scrollPageForward:function(){var s=this,r=s._firstItem+s.get("numVisible");if(r>s.get("numItems")){r=0;}if(s.get("selectOnScroll")){s._selectedItem=s._getSelectedItem(r);}s.scrollTo(r);},scrollTo:function(AL,AI){var AH=this,u,AJ,z,AB,AC,AM,AN,AO,AD,AA,v,AF,s,w,t,x,AE,y,AP,AK=AH._itemsTable,AG=AK.items,r=AK.loading;if(p.isUndefined(AL)||AL==AH._firstItem||AH.isAnimating()){return;}AJ=AH.get("animation");z=AH.get("isCircular");AB=AH.get("isVertical");AA=AH._cols;v=AH._rows;AO=AH._firstItem;AF=AH.get("numItems");s=AH.get("numVisible");t=AH.get("currentPage");AP=function(){if(AH.isAutoPlayOn()){AH.stopAutoPlay();}};if(AL<0){if(z){AL=AF+AL;}else{AP.call(AH);return;}}else{if(AF>0&&AL>AF-1){if(AH.get("isCircular")){AL=AF-AL;}else{AP.call(AH);return;}}}if(isNaN(AL)){return;}AN=(AH._firstItem>AL)?"backward":"forward";AE=AO+s;AE=(AE>AF-1)?AF-1:AE;x=AH.fireEvent(i,{dir:AN,first:AO,last:AE});if(x===false){return;}AH.fireEvent(J,{page:t});AD=AL+s-1;AH._loadItems(AD>AF-1?AF-1:AD);AM=0-AL;if(v){if(AB){AM=parseInt(AM/AA,10);}else{AM=parseInt(AM/v,10);}}y=0;while(AM<0&&y<AL+s-1&&y<AF){if(!AG[y]&&!r[y]){AM++;}y+=v?v:1;}AH._firstItem=AL;AH.set("firstVisible",AL);AE=AL+s;AE=(AE>AF-1)?AF-1:AE;w=j.call(AH,AM);u=AJ.speed>0;if(u){AH._animateAndSetCarouselOffset(w,AL,AE,AI);}else{AH._setCarouselOffset(w);E.call(AH,AL,AE);}},getPageForItem:function(r){return Math.ceil((r+1)/parseInt(this.get("numVisible"),10));},getFirstVisibleOnPage:function(r){return(r-1)*this.get("numVisible");
++},selectPreviousItem:function(){var t=this,s=0,r=t.get("selectedItem");if(r==this._firstItem){s=r-t.get("numVisible");t._selectedItem=t._getSelectedItem(r-1);t.scrollTo(s);}else{s=t.get("selectedItem")-t.get("scrollIncrement");t.set("selectedItem",t._getSelectedItem(s));}},selectNextItem:function(){var s=this,r=0;r=s.get("selectedItem")+s.get("scrollIncrement");s.set("selectedItem",s._getSelectedItem(r));},show:function(){var s=this,r=s.CLASSES;if(s.fireEvent(Y)!==false){s.addClass(r.VISIBLE);s.fireEvent(V);}},startAutoPlay:function(){var r=this,s;if(p.isUndefined(r._autoPlayTimer)){s=r.get("autoPlayInterval");if(s<=0){return;}r._isAutoPlayInProgress=true;r.fireEvent(Z);r._autoPlayTimer=setTimeout(function(){r._autoScroll();},s);}},stopAutoPlay:function(){var r=this;if(!p.isUndefined(r._autoPlayTimer)){clearTimeout(r._autoPlayTimer);delete r._autoPlayTimer;r._isAutoPlayInProgress=false;r.fireEvent(q);}},updatePagination:function(){var z=this,x=z._pagination;if(!x.el){return false;}var w=z.get("numItems"),AA=z.get("numVisible"),u=z.get("firstVisible")+1,v=z.get("currentPage")+1,r=z.get("numPages"),t={"numVisible":AA,"numPages":r,"numItems":w,"selectedItem":z.get("selectedItem")+1,"currentPage":v,"firstVisible":u,"lastVisible":z.get("lastVisible")+1},s=x.callback||{},y=s.scope&&s.obj?s.obj:z;x.el.innerHTML=p.isFunction(s.fn)?s.fn.apply(y,[x.template,t]):YAHOO.lang.substitute(x.template,t);},registerPagination:function(s,u,r){var t=this;t._pagination.template=s;t._pagination.callback=r||{};if(!t._pagination.el){t._pagination.el=W("DIV",{className:t.CLASSES.PAGINATION});if(u=="before"){t._navEl.insertBefore(t._pagination.el,t._navEl.firstChild);}else{t._navEl.appendChild(t._pagination.el);}t.on("itemSelected",t.updatePagination);t.on("pageChange",t.updatePagination);}t.updatePagination();},toString:function(){return P+(this.get?" (#"+this.get("id")+")":"");},_animateAndSetCarouselOffset:function(w,u,s){var v=this,t=v.get("animation"),r=null;if(v.get("isVertical")){r=new YAHOO.util.Motion(v._carouselEl,{top:{to:w}},t.speed,t.effect);}else{r=new YAHOO.util.Motion(v._carouselEl,{left:{to:w}},t.speed,t.effect);}v._isAnimationInProgress=true;r.onComplete.subscribe(v._animationCompleteHandler,{scope:v,item:u,last:s});r.animate();},_animationCompleteHandler:function(r,s,t){t.scope._isAnimationInProgress=false;E.call(t.scope,t.item,t.last);},_autoScroll:function(){var s=this,t=s._firstItem,r;if(t>=s.get("numItems")-1){if(s.get("isCircular")){r=0;}else{s.stopAutoPlay();}}else{r=t+s.get("numVisible");}s._selectedItem=s._getSelectedItem(r);s.scrollTo.call(s,r);},_createCarousel:function(s){var u=this,r=u.CLASSES,t=e.get(s);if(!t){t=W("DIV",{className:r.CAROUSEL,id:s});}if(!u._carouselEl){u._carouselEl=W(u.get("carouselEl"),{className:r.CAROUSEL_EL});}return t;},_createCarouselClip:function(){return W("DIV",{className:this.CLASSES.CONTENT});},_createCarouselItem:function(u){var r,t=this,s=m.call(t,u.pos);return W(t.get("carouselItemEl"),{className:u.className,styles:u.styles,content:u.content,id:u.id});},_getValidIndex:function(t){var w=this,r=w.get("isCircular"),u=w.get("numItems"),v=w.get("numVisible"),s=u-1;if(t<0){t=r?Math.ceil(u/v)*v+t:0;}else{if(t>s){t=r?0:s;}}return t;},_getSelectedItem:function(v){var u=this,r=u.get("isCircular"),t=u.get("numItems"),s=t-1;if(v<0){if(r){v=t+v;}else{v=u.get("selectedItem");}}else{if(v>s){if(r){v=v-t;}else{v=u.get("selectedItem");}}}return v;},_itemClickHandler:function(v){var y=this,w=y.get("carouselItemEl"),s=y.get("element"),t,u,x=c.getTarget(v),r=x.tagName.toUpperCase();if(r==="INPUT"||r==="SELECT"||r==="TEXTAREA"){return;}while(x&&x!=s&&x.id!=y._carouselEl){t=x.nodeName;if(t.toUpperCase()==w){break;}x=x.parentNode;}if((u=y.getItemPositionById(x.id))>=0){y.set("selectedItem",y._getSelectedItem(u));y.focus();}},_keyboardEventHandler:function(t){var v=this,s=c.getCharCode(t),u=c.getTarget(t),r=false;if(v.isAnimating()||u.tagName.toUpperCase()==="SELECT"){return;}switch(s){case 37:case 38:v.selectPreviousItem();r=true;break;case 39:case 40:v.selectNextItem();r=true;break;case 33:v.scrollPageBackward();r=true;break;case 34:v.scrollPageForward();r=true;break;}if(r){if(v.isAutoPlayOn()){v.stopAutoPlay();}c.preventDefault(t);}},_loadItems:function(t){var w=this,s=w.get("numItems"),u=w.get("numVisible"),v=w.get("revealAmount"),x=w._itemsTable.items.length,r=w.get("lastVisible");if(x>t&&t+1>=u){x=t%u||t==r?t-t%u:t-u+1;}if(v&&t<s-1){t++;}if(t>=x&&(!w.getItem(x)||!w.getItem(t))){w.fireEvent(L,{ev:L,first:x,last:t,num:t-x+1});}},_pagerChangeHandler:function(s){var v=this,u=c.getTarget(s),t=u.value,r;if(t){r=v.getFirstVisibleOnPage(t);v._selectedItem=r;v.scrollTo(r);v.focus();}},_pagerClickHandler:function(x){var z=this,t=z.CLASSES,u=c.getTarget(x),s=u.nodeName.toUpperCase(),r,w,v,y;if(e.hasClass(u,t.PAGER_ITEM)||e.hasClass(u.parentNode,t.PAGER_ITEM)){if(s=="EM"){u=u.parentNode;}r=u.href;w=r.lastIndexOf("#");v=parseInt(r.substring(w+1),10);if(v!=-1){y=z.getFirstVisibleOnPage(v);z._selectedItem=y;z.scrollTo(y);z.focus();}c.preventDefault(x);}},_parseCarousel:function(t){var w=this,x,r,s,v,u;r=w.CLASSES;s=w.get("carouselEl");v=false;for(x=t.firstChild;x;x=x.nextSibling){if(x.nodeType==1){u=x.nodeName;if(u.toUpperCase()==s){w._carouselEl=x;e.addClass(w._carouselEl,w.CLASSES.CAROUSEL_EL);v=true;}}}return v;},_parseCarouselItems:function(){var y=this,AA=y.CLASSES,v=0,z,r,t,u,s,w=y.get("firstVisible"),x=y._carouselEl;z=y._rows;t=y.get("carouselItemEl");for(r=x.firstChild;r;r=r.nextSibling){if(r.nodeType==1){s=r.nodeName;if(s.toUpperCase()==t){if(r.id){u=r.id;}else{u=e.generateId();r.setAttribute("id",u);}y.addItem(r,w);w++;}}}},_parseCarouselNavigation:function(x){var y=this,w,z=y.CLASSES,s,v,u,r,t=false;r=e.getElementsByClassName(z.PREV_PAGE,"*",x);if(r.length>0){for(v in r){if(r.hasOwnProperty(v)){s=r[v];if(s.nodeName=="INPUT"||s.nodeName=="BUTTON"||s.nodeName=="A"){y._navBtns.prev.push(s);}else{u=s.getElementsByTagName("INPUT");if(p.isArray(u)&&u.length>0){y._navBtns.prev.push(u[0]);
++}else{u=s.getElementsByTagName("BUTTON");if(p.isArray(u)&&u.length>0){y._navBtns.prev.push(u[0]);}}}}}w={prev:r};}r=e.getElementsByClassName(z.NEXT_PAGE,"*",x);if(r.length>0){for(v in r){if(r.hasOwnProperty(v)){s=r[v];if(s.nodeName=="INPUT"||s.nodeName=="BUTTON"||s.nodeName=="A"){y._navBtns.next.push(s);}else{u=s.getElementsByTagName("INPUT");if(p.isArray(u)&&u.length>0){y._navBtns.next.push(u[0]);}else{u=s.getElementsByTagName("BUTTON");if(p.isArray(u)&&u.length>0){y._navBtns.next.push(u[0]);}}}}}if(w){w.next=r;}else{w={next:r};}}if(w){y.set("navigation",w);t=true;}return t;},_refreshUi:function(){var v=this,s,w=v.get("isVertical"),y=v.get("firstVisible"),t,x,r,u;if(v._itemsTable.numItems<1){return;}u=O.call(v,w?"height":"width");t=v._itemsTable.items[y].id;u=w?d(t,"width"):d(t,"height");e.setStyle(v._carouselEl,w?"width":"height",u+"px");v._hasRendered=true;v.fireEvent(H);},_setCarouselOffset:function(t){var r=this,s;s=r.get("isVertical")?"top":"left";e.setStyle(r._carouselEl,s,t+"px");},_setupCarouselNavigation:function(){var w=this,u,s,r,y,v,x,t;r=w.CLASSES;v=e.getElementsByClassName(r.NAVIGATION,"DIV",w.get("element"));if(v.length===0){v=W("DIV",{className:r.NAVIGATION});w.insertBefore(v,e.getFirstChild(w.get("element")));}else{v=v[0];}w._pages.el=W("UL");v.appendChild(w._pages.el);y=w.get("navigation");if(p.isString(y.prev)||p.isArray(y.prev)){if(p.isString(y.prev)){y.prev=[y.prev];}for(u in y.prev){if(y.prev.hasOwnProperty(u)){w._navBtns.prev.push(e.get(y.prev[u]));}}}else{t=W("SPAN",{className:r.BUTTON+r.FIRST_NAV});e.setStyle(t,"visibility","visible");u=e.generateId();t.innerHTML='<button type="button" '+'id="'+u+'" name="'+w.STRINGS.PREVIOUS_BUTTON_TEXT+'">'+w.STRINGS.PREVIOUS_BUTTON_TEXT+"</button>";v.appendChild(t);u=e.get(u);w._navBtns.prev=[u];s={prev:[t]};}if(p.isString(y.next)||p.isArray(y.next)){if(p.isString(y.next)){y.next=[y.next];}for(u in y.next){if(y.next.hasOwnProperty(u)){w._navBtns.next.push(e.get(y.next[u]));}}}else{x=W("SPAN",{className:r.BUTTON+r.NEXT_NAV});e.setStyle(x,"visibility","visible");u=e.generateId();x.innerHTML='<button type="button" '+'id="'+u+'" name="'+w.STRINGS.NEXT_BUTTON_TEXT+'">'+w.STRINGS.NEXT_BUTTON_TEXT+"</button>";v.appendChild(x);u=e.get(u);w._navBtns.next=[u];if(s){s.next=[x];}else{s={next:[x]};}}if(s){w.set("navigation",s);}return v;},_setClipContainerSize:function(r,t){var z=this,x=z.get("isVertical"),AB=z._rows,v=z._cols,y=z.get("revealAmount"),s=O.call(z,"height"),u=O.call(z,"width"),AA,w;r=r||z._clipEl;if(AB){AA=s*AB;w=u*v;}else{t=t||z.get("numVisible");if(x){AA=s*t;}else{w=u*t;}}z._recomputeSize=(AA===0);if(z._recomputeSize){z._hasRendered=false;return;}y=N.call(z);if(x){AA+=(y*2);}else{w+=(y*2);}if(x){AA+=M(z._carouselEl,"height");e.setStyle(r,"height",AA+"px");if(v){w+=M(z._carouselEl,"width");e.setStyle(r,"width",w+(0)+"px");}}else{w+=M(z._carouselEl,"width");e.setStyle(r,"width",w+"px");if(AB){AA+=M(z._carouselEl,"height");e.setStyle(r,"height",AA+"px");}}z._setContainerSize(r);},_setContainerSize:function(s,t){var w=this,r=w.CONFIG,z=w.CLASSES,v,y,u,x;v=w.get("isVertical");y=w._rows;u=w._cols;s=s||w._clipEl;t=t||(v?"height":"width");x=parseFloat(e.getStyle(s,t),10);x=p.isNumber(x)?x:0;if(v){x+=M(w._carouselEl,"height")+d(w._navEl,"height");}else{x+=M(w._carouselEl,"width");}if(!v){if(x<r.HORZ_MIN_WIDTH){x=r.HORZ_MIN_WIDTH;w.addClass(z.MIN_WIDTH);}}w.setStyle(t,x+"px");if(v){x=O.call(w,"width");if(u){x=x*u;}e.setStyle(w._carouselEl,"width",x+"px");if(x<r.VERT_MIN_WIDTH){x=r.VERT_MIN_WIDTH;w.addClass(z.MIN_WIDTH);}w.setStyle("width",x+"px");}else{if(y){x=O.call(w,"height");x=x*y;e.setStyle(w._carouselEl,"height",x+"px");}}},_setFirstVisible:function(s){var r=this;if(s>=0&&s<r.get("numItems")){r.scrollTo(s);}else{s=r.get("firstVisible");}return s;},_setNavigation:function(r){var s=this;if(r.prev){c.on(r.prev,"click",f,s);}if(r.next){c.on(r.next,"click",k,s);}},_setNumVisible:function(s){var r=this;r._setClipContainerSize(r._clipEl,s);},_numVisibleSetter:function(t){var s=this,r=t;if(p.isArray(t)){s._cols=t[0];s._rows=t[1];r=t[0]*t[1];}return r;},_selectedItemSetter:function(s){var r=this;return(s<r.get("numItems"))?s:0;},_setNumItems:function(t){var s=this,r=s._itemsTable.numItems;if(p.isArray(s._itemsTable.items)){if(s._itemsTable.items.length!=r){r=s._itemsTable.items.length;s._itemsTable.numItems=r;}}if(t<r){while(r>t){s.removeItem(r-1);r--;}}return t;},_setOrientation:function(t){var s=this,r=s.CLASSES;if(t){s.replaceClass(r.HORIZONTAL,r.VERTICAL);}else{s.replaceClass(r.VERTICAL,r.HORIZONTAL);}this._itemAttrCache={};return t;},_setRevealAmount:function(s){var r=this;if(s>=0&&s<=100){s=parseInt(s,10);s=p.isNumber(s)?s:0;r._setClipContainerSize();}else{s=r.get("revealAmount");}return s;},_setSelectedItem:function(r){this._selectedItem=r;},_getNumPages:function(){return Math.ceil(parseInt(this.get("numItems"),10)/parseInt(this.get("numVisible"),10));},_getLastVisible:function(){var r=this;return r.get("currentPage")+1==r.get("numPages")?r.get("numItems")-1:r.get("firstVisible")+r.get("numVisible")-1;},_syncUiForItemAdd:function(u){var v,AA=this,x=AA._carouselEl,r,AB,t=AA._itemsTable,s,w,y,z;w=p.isUndefined(u.pos)?u.newPos||t.numItems-1:u.pos;if(!s){AB=t.items[w]||{};r=AA._createCarouselItem({className:AB.className,styles:AB.styles,content:AB.item,id:AB.id,pos:w});if(p.isUndefined(u.pos)){if(!p.isUndefined(t.loading[w])){s=t.loading[w];}if(s){x.replaceChild(r,s);delete t.loading[w];}else{x.appendChild(r);}}else{if(!p.isUndefined(t.items[u.pos+1])){y=e.get(t.items[u.pos+1].id);}if(y){x.insertBefore(r,y);}else{}}}else{if(p.isUndefined(u.pos)){if(!e.isAncestor(AA._carouselEl,s)){x.appendChild(s);}}else{if(!e.isAncestor(x,s)){if(!p.isUndefined(t.items[u.pos+1])){x.insertBefore(s,e.get(t.items[u.pos+1].id));}}}}if(!AA._hasRendered){AA._refreshUi();}if(AA.get("selectedItem")<0){AA.set("selectedItem",AA.get("firstVisible"));}AA._syncUiItems();},_syncUiForItemReplace:function(x){var w=this,t=w._carouselEl,r=w._itemsTable,y=x.pos,v=x.newItem,s=x.oldItem,u;
++u=w._createCarouselItem({className:v.className,styles:v.styles,content:v.item,id:v.id,pos:y});if(u&&s){c.purgeElement(s,true);t.replaceChild(u,e.get(s.id));if(!p.isUndefined(r.loading[y])){r.numItems++;delete r.loading[y];}}if(!w._hasRendered){w._refreshUi();}w._syncUiItems();},_syncUiForItemRemove:function(w){var v=this,r=v._carouselEl,t,u,s,x;s=v.get("numItems");u=w.item;x=w.pos;if(u&&(t=e.get(u.id))){if(t&&e.isAncestor(r,t)){c.purgeElement(t,true);r.removeChild(t);}if(v.get("selectedItem")==x){x=x>=s?s-1:x;}}else{}v._syncUiItems();},_syncUiForLazyLoading:function(v){var z=this,x=z._carouselEl,t=z._itemsTable,w=t.items.length,y=t.items[v.last+1],r,s;if(!y&&v.last<w){s=v.first;do{y=t.items[s];s++;}while(s<w&&!y);}for(var u=v.first;u<=v.last;u++){if(p.isUndefined(t.loading[u])&&p.isUndefined(t.items[u])){r=z._createCarouselItem({className:z.CLASSES.ITEM_LOADING,content:z.STRINGS.ITEM_LOADING_CONTENT,id:e.generateId(),pos:u});if(r){if(y){y=e.get(y.id);if(y){x.insertBefore(r,y);}else{}}else{x.appendChild(r);}}t.loading[u]=r;}}z._syncUiItems();},_syncUiItems:function(){var u,y=this,w=y.get("numItems"),t,s=y._itemsTable,v=s.items,r=s.loading,z,x;for(t=0;t<w;t++){z=v[t]||r[t];if(z&&z.id){x=m.call(y,t);z.styles=z.styles||{};for(u in x){if(x.hasOwnProperty(u)){z.styles[u]=x[u];}}G(e.get(z.id),x);}}},_updateNavButtons:function(v,s){var t,r=this.CLASSES,w,u=v.parentNode;if(!u){return;}w=u.parentNode;if(v.nodeName.toUpperCase()=="BUTTON"&&e.hasClass(u,r.BUTTON)){if(s){if(w){t=e.getChildren(w);if(t){e.removeClass(t,r.FOCUSSED_BUTTON);}}e.addClass(u,r.FOCUSSED_BUTTON);}else{e.removeClass(u,r.FOCUSSED_BUTTON);}}},_updatePagerButtons:function(){var z=this,x=z.CLASSES,y=z._pages.cur,r,w,u,AA,s=z.get("numVisible"),v=z._pages.num,t=z._pages.el;if(v===0||!t){return;}e.setStyle(t,"visibility","hidden");while(t.firstChild){t.removeChild(t.firstChild);}for(u=0;u<v;u++){r=document.createElement("LI");if(u===0){e.addClass(r,x.FIRST_PAGE);}if(u==y){e.addClass(r,x.SELECTED_NAV);}w="<a class="+x.PAGER_ITEM+' href="#'+(u+1)+'" tabindex="0"><em>'+z.STRINGS.PAGER_PREFIX_TEXT+" "+(u+1)+"</em></a>";r.innerHTML=w;t.appendChild(r);}e.setStyle(t,"visibility","visible");},_updatePagerMenu:function(){var z=this,x=z.CLASSES,y=z._pages.cur,s,v,AA,t=z.get("numVisible"),w=z._pages.num,u=z._pages.el,r;if(w===0){return;}r=document.createElement("SELECT");if(!r){return;}e.setStyle(u,"visibility","hidden");while(u.firstChild){u.removeChild(u.firstChild);}for(v=0;v<w;v++){s=document.createElement("OPTION");s.value=v+1;s.innerHTML=z.STRINGS.PAGER_PREFIX_TEXT+" "+(v+1);if(v==y){s.setAttribute("selected","selected");}r.appendChild(s);}s=document.createElement("FORM");if(!s){}else{s.appendChild(r);u.appendChild(s);}c.addListener(r,"change",z._pagerChangeHandler,this,true);e.setStyle(u,"visibility","visible");},_updateTabIndex:function(r){var s=this;if(r){if(s._focusableItemEl){s._focusableItemEl.tabIndex=-1;}s._focusableItemEl=r;r.tabIndex=0;}},_validateAnimation:function(r){var s=true;if(p.isObject(r)){if(r.speed){s=s&&p.isNumber(r.speed);}if(r.effect){s=s&&p.isFunction(r.effect);}else{if(!p.isUndefined(YAHOO.util.Easing)){r.effect=YAHOO.util.Easing.easeOut;}}}else{s=false;}return s;},_validateFirstVisible:function(t){var s=this,r=s.get("numItems");if(p.isNumber(t)){if(r===0&&t==r){return true;}else{return(t>=0&&t<r);}}return false;},_validateNavigation:function(r){var s;if(!p.isObject(r)){return false;}if(r.prev){if(!p.isArray(r.prev)){return false;}for(s in r.prev){if(r.prev.hasOwnProperty(s)){if(!p.isString(r.prev[s].nodeName)){return false;}}}}if(r.next){if(!p.isArray(r.next)){return false;}for(s in r.next){if(r.next.hasOwnProperty(s)){if(!p.isString(r.next[s].nodeName)){return false;}}}}return true;},_validateNumItems:function(r){return p.isNumber(r)&&(r>=0);},_validateNumVisible:function(r){var s=false;if(p.isNumber(r)){s=r>0&&r<=this.get("numItems");}else{if(p.isArray(r)){if(p.isNumber(r[0])&&p.isNumber(r[1])){s=r[0]*r[1]>0&&r.length==2;}}}return s;},_validateRevealAmount:function(r){var s=false;if(p.isNumber(r)){s=r>=0&&r<100;}return s;},_validateScrollIncrement:function(r){var s=false;if(p.isNumber(r)){s=(r>0&&r<this.get("numItems"));}return s;}});})();YAHOO.register("carousel",YAHOO.widget.Carousel,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/carousel/carousel.js b/pylons_app/public/js/yui/carousel/carousel.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/carousel/carousel.js
+@@ -0,0 +1,4349 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Carousel module provides a widget for browsing among a set of like
++ * objects represented pictorially.
++ *
++ * @module carousel
++ * @requires yahoo, dom, event, element
++ * @optional animation
++ * @namespace YAHOO.widget
++ * @title Carousel Widget
++ * @beta
++ */
++(function () {
++
++    var WidgetName;             // forward declaration
++
++    /**
++     * The Carousel widget.
++     *
++     * @class Carousel
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param el {HTMLElement | String} The HTML element that represents the
++     * the container that houses the Carousel.
++     * @param cfg {Object} (optional) The configuration values
++     */
++    YAHOO.widget.Carousel = function (el, cfg) {
++
++        YAHOO.widget.Carousel.superclass.constructor.call(this, el, cfg);
++    };
++
++    /*
++     * Private variables of the Carousel component
++     */
++
++    /* Some abbreviations to avoid lengthy typing and lookups. */
++    var Carousel    = YAHOO.widget.Carousel,
++        Dom         = YAHOO.util.Dom,
++        Event       = YAHOO.util.Event,
++        JS          = YAHOO.lang;
++
++    /**
++     * The widget name.
++     * @private
++     * @static
++     */
++    WidgetName = "Carousel";
++
++    /**
++     * The internal table of Carousel instances.
++     * @private
++     * @static
++     */
++    var instances = {},
++
++    /*
++     * Custom events of the Carousel component
++     */
++
++    /**
++     * @event afterScroll
++     * @description Fires when the Carousel has scrolled to the previous or
++     * next page.  Passes back the index of the first and last visible items in
++     * the Carousel.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    afterScrollEvent = "afterScroll",
++
++    /**
++     * @event allItemsRemovedEvent
++     * @description Fires when all items have been removed from the Carousel.
++     * See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    allItemsRemovedEvent = "allItemsRemoved",
++
++    /**
++     * @event beforeHide
++     * @description Fires before the Carousel is hidden.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforeHideEvent = "beforeHide",
++
++    /**
++     * @event beforePageChange
++     * @description Fires when the Carousel is about to scroll to the previous
++     * or next page.  Passes back the page number of the current page.  Note
++     * that the first page number is zero.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforePageChangeEvent = "beforePageChange",
++
++    /**
++     * @event beforeScroll
++     * @description Fires when the Carousel is about to scroll to the previous
++     * or next page.  Passes back the index of the first and last visible items
++     * in the Carousel and the direction (backward/forward) of the scroll.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforeScrollEvent = "beforeScroll",
++
++    /**
++     * @event beforeShow
++     * @description Fires when the Carousel is about to be shown.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    beforeShowEvent = "beforeShow",
++
++    /**
++     * @event blur
++     * @description Fires when the Carousel loses focus.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    blurEvent = "blur",
++
++    /**
++     * @event focus
++     * @description Fires when the Carousel gains focus.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    focusEvent = "focus",
++
++    /**
++     * @event hide
++     * @description Fires when the Carousel is hidden.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    hideEvent = "hide",
++
++    /**
++     * @event itemAdded
++     * @description Fires when an item has been added to the Carousel.  Passes
++     * back the content of the item that would be added, the index at which the
++     * item would be added, and the event itself.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemAddedEvent = "itemAdded",
++
++    /**
++     * @event itemRemoved
++     * @description Fires when an item has been removed from the Carousel.
++     * Passes back the content of the item that would be removed, the index
++     * from which the item would be removed, and the event itself.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemRemovedEvent = "itemRemoved",
++
++    /**
++     * @event itemReplaced
++     * @description Fires when an item has been replaced in the Carousel.
++     * Passes back the content of the item that was replaced, the content
++     * of the new item, the index where the replacement occurred, and the event
++     * itself.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemReplacedEvent = "itemReplaced",
++
++    /**
++     * @event itemSelected
++     * @description Fires when an item has been selected in the Carousel.
++     * Passes back the index of the selected item in the Carousel.  Note, that
++     * the index begins from zero.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    itemSelectedEvent = "itemSelected",
++
++    /**
++     * @event loadItems
++     * @description Fires when the Carousel needs more items to be loaded for
++     * displaying them.  Passes back the first and last visible items in the
++     * Carousel, and the number of items needed to be loaded.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    loadItemsEvent = "loadItems",
++
++    /**
++     * @event navigationStateChange
++     * @description Fires when the state of either one of the navigation
++     * buttons are changed from enabled to disabled or vice versa.  Passes back
++     * the state (true/false) of the previous and next buttons.  The value true
++     * signifies the button is enabled, false signifies disabled.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    navigationStateChangeEvent = "navigationStateChange",
++
++    /**
++     * @event pageChange
++     * @description Fires after the Carousel has scrolled to the previous or
++     * next page.  Passes back the page number of the current page.  Note
++     * that the first page number is zero.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    pageChangeEvent = "pageChange",
++
++    /*
++     * Internal event.
++     * @event render
++     * @description Fires when the Carousel is rendered.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    renderEvent = "render",
++
++    /**
++     * @event show
++     * @description Fires when the Carousel is shown.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    showEvent = "show",
++
++    /**
++     * @event startAutoPlay
++     * @description Fires when the auto play has started in the Carousel.  See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    startAutoPlayEvent = "startAutoPlay",
++
++    /**
++     * @event stopAutoPlay
++     * @description Fires when the auto play has been stopped in the Carousel.
++     * See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    stopAutoPlayEvent = "stopAutoPlay",
++
++    /*
++     * Internal event.
++     * @event uiUpdateEvent
++     * @description Fires when the UI has been updated.
++     * See
++     * <a href="YAHOO.util.Element.html#addListener">Element.addListener</a>
++     * for more information on listening for this event.
++     * @type YAHOO.util.CustomEvent
++     */
++    uiUpdateEvent = "uiUpdate";
++
++    /*
++     * Private helper functions used by the Carousel component
++     */
++
++   /**
++     * Set multiple styles on one element.
++     * @method setStyles
++     * @param el {HTMLElement} The element to set styles on
++     * @param style {Object} top:"10px", left:"0px", etc.
++     * @private
++     */
++     function setStyles(el, styles) {
++         var which;
++
++         for (which in styles) {
++             if (styles.hasOwnProperty(which)) {
++                 Dom.setStyle(el, which, styles[which]);
++             }
++         }
++     }
++
++    /**
++     * Create an element, set its class name and optionally install the element
++     * to its parent.
++     * @method createElement
++     * @param el {String} The element to be created
++     * @param attrs {Object} Configuration of parent, class and id attributes.
++     * If the content is specified, it is inserted after creation of the
++     * element. The content can also be an HTML element in which case it would
++     * be appended as a child node of the created element.
++     * @private
++     */
++    function createElement(el, attrs) {
++        var newEl = document.createElement(el);
++
++        attrs = attrs || {};
++        if (attrs.className) {
++            Dom.addClass(newEl, attrs.className);
++        }
++
++        if (attrs.styles) {
++            setStyles(newEl, attrs.styles);
++        }
++
++        if (attrs.parent) {
++            attrs.parent.appendChild(newEl);
++        }
++
++        if (attrs.id) {
++            newEl.setAttribute("id", attrs.id);
++        }
++
++        if (attrs.content) {
++            if (attrs.content.nodeName) {
++                newEl.appendChild(attrs.content);
++            } else {
++                newEl.innerHTML = attrs.content;
++            }
++        }
++
++        return newEl;
++    }
++
++    /**
++     * Get the computed style of an element.
++     *
++     * @method getStyle
++     * @param el {HTMLElement} The element for which the style needs to be
++     * returned.
++     * @param style {String} The style attribute
++     * @param type {String} "int", "float", etc. (defaults to int)
++     * @private
++     */
++    function getStyle(el, style, type) {
++        var value;
++
++        if (!el) {
++            return 0;
++        }
++
++        function getStyleIntVal(el, style) {
++            var val;
++
++            /*
++             * XXX: Safari calculates incorrect marginRight for an element
++             * which has its parent element style set to overflow: hidden
++             * https://bugs.webkit.org/show_bug.cgi?id=13343
++             * Let us assume marginLeft == marginRight
++             */
++            if (style == "marginRight" && YAHOO.env.ua.webkit) {
++                val = parseInt(Dom.getStyle(el, "marginLeft"), 10);
++            } else {
++                val = parseInt(Dom.getStyle(el, style), 10);
++            }
++
++            return JS.isNumber(val) ? val : 0;
++        }
++
++        function getStyleFloatVal(el, style) {
++            var val;
++
++            /*
++             * XXX: Safari calculates incorrect marginRight for an element
++             * which has its parent element style set to overflow: hidden
++             * https://bugs.webkit.org/show_bug.cgi?id=13343
++             * Let us assume marginLeft == marginRight
++             */
++            if (style == "marginRight" && YAHOO.env.ua.webkit) {
++                val = parseFloat(Dom.getStyle(el, "marginLeft"));
++            } else {
++                val = parseFloat(Dom.getStyle(el, style));
++            }
++
++            return JS.isNumber(val) ? val : 0;
++        }
++
++        if (typeof type == "undefined") {
++            type = "int";
++        }
++
++        switch (style) {
++        case "height":
++            value = el.offsetHeight;
++            if (value > 0) {
++                value += getStyleIntVal(el, "marginTop")        +
++                        getStyleIntVal(el, "marginBottom");
++            } else {
++                value = getStyleFloatVal(el, "height")          +
++                        getStyleIntVal(el, "marginTop")         +
++                        getStyleIntVal(el, "marginBottom")      +
++                        getStyleIntVal(el, "borderTopWidth")    +
++                        getStyleIntVal(el, "borderBottomWidth") +
++                        getStyleIntVal(el, "paddingTop")        +
++                        getStyleIntVal(el, "paddingBottom");
++            }
++            break;
++        case "width":
++            value = el.offsetWidth;
++            if (value > 0) {
++                value += getStyleIntVal(el, "marginLeft")       +
++                        getStyleIntVal(el, "marginRight");
++            } else {
++                value = getStyleFloatVal(el, "width")           +
++                        getStyleIntVal(el, "marginLeft")        +
++                        getStyleIntVal(el, "marginRight")       +
++                        getStyleIntVal(el, "borderLeftWidth")   +
++                        getStyleIntVal(el, "borderRightWidth")  +
++                        getStyleIntVal(el, "paddingLeft")       +
++                        getStyleIntVal(el, "paddingRight");
++            }
++            break;
++        default:
++            if (type == "int") {
++                value = getStyleIntVal(el, style);
++            } else if (type == "float") {
++                value = getStyleFloatVal(el, style);
++            } else {
++                value = Dom.getStyle(el, style);
++            }
++            break;
++        }
++
++        return value;
++    }
++
++    /**
++     * Compute and return the height or width of a single Carousel item
++     * depending upon the orientation.
++     *
++     * @method getCarouselItemSize
++     * @param which {String} "height" or "width" to be returned.  If this is
++     * passed explicitly, the calculated size is not cached.
++     * @private
++     */
++    function getCarouselItemSize(which) {
++        var carousel = this,
++            child,
++            item,
++            size     = 0,
++            first = carousel.get("firstVisible"),
++            vertical = false;
++
++        if (carousel._itemsTable.numItems === 0) {
++            return 0;
++        }
++
++        item = carousel._itemsTable.items[first] ||
++               carousel._itemsTable.loading[first];
++
++        if (JS.isUndefined(item)) {
++            return 0;
++        }
++
++        child = Dom.get(item.id);
++
++        if (typeof which == "undefined") {
++            vertical = carousel.get("isVertical");
++        } else {
++            vertical = which == "height";
++        }
++
++        if (this._itemAttrCache[which]) {
++            return this._itemAttrCache[which];
++        }
++
++        if (vertical) {
++            size = getStyle(child, "height");
++        } else {
++            size = getStyle(child, "width");
++        }
++
++        this._itemAttrCache[which] = size;
++
++        return size;
++    }
++
++    /**
++     * Return the size of a part of the item (reveal).
++     *
++     * @method getRevealSize
++     * @private
++     */
++    function getRevealSize() {
++        var carousel = this, isVertical, sz;
++
++        isVertical = carousel.get("isVertical");
++        sz  = getCarouselItemSize.call(carousel,
++                isVertical ? "height" : "width");
++        return (sz * carousel.get("revealAmount") / 100);
++    }
++
++    /**
++     * Compute and return the position of a Carousel item based on its
++     * position.
++     *
++     * @method getCarouselItemPosition
++     * @param position {Number} The position of the Carousel item.
++     * @private
++     */
++    function getCarouselItemPosition(pos) {
++        var carousel    = this,
++            itemsPerRow = carousel._cols,
++            itemsPerCol = carousel._rows,
++            page,
++            sz,
++            isVertical,
++            itemsCol,
++            itemsRow,
++            sentinel,
++            delta = 0,
++            top,
++            left,
++            rsz,
++            styles = {},
++            index = 0,
++            itemsTable = carousel._itemsTable,
++            items = itemsTable.items,
++            loading = itemsTable.loading;
++
++        isVertical = carousel.get("isVertical");
++        sz  = getCarouselItemSize.call(carousel,
++                isVertical ? "height" : "width");
++        rsz = getRevealSize.call(carousel);
++
++        // adjust for items not yet loaded
++        while (index < pos) {
++            if (!items[index] && !loading[index]) {
++                delta++;
++            }
++            index++;
++        }
++        pos -= delta;
++
++        if (itemsPerCol) {
++            page = this.getPageForItem(pos);
++            if (isVertical) {
++                itemsRow = Math.floor(pos/itemsPerRow);
++                delta = itemsRow;
++                top = delta * sz;
++                styles.top  = (top + rsz) + "px";
++
++                sz  = getCarouselItemSize.call(carousel, "width");
++
++                itemsCol = pos % itemsPerRow;
++                delta = itemsCol;
++                left = delta * sz;
++                styles.left = left + "px";
++            } else {
++                itemsCol = pos % itemsPerRow;
++                sentinel = (page - 1) * itemsPerRow;
++                delta = itemsCol + sentinel;
++                left = delta * sz;
++                styles.left = (left + rsz) + "px";
++
++                sz  = getCarouselItemSize.call(carousel, "height");
++
++                itemsRow = Math.floor(pos/itemsPerRow);
++                sentinel = (page - 1) * itemsPerCol;
++                delta = itemsRow - sentinel;
++                top = delta * sz;
++
++                styles.top  = top + "px";
++            }
++        } else {
++        if (isVertical) {
++            styles.left = 0;
++            styles.top  = ((pos * sz) + rsz) + "px";
++        } else {
++            styles.top  = 0;
++            styles.left = ((pos * sz) + rsz) + "px";
++        }
++        }
++
++        return styles;
++    }
++
++    /**
++     * Return the index of the first item in the view port for displaying item
++     * in "pos".
++     *
++     * @method getFirstVisibleForPosition
++     * @param pos {Number} The position of the item to be displayed
++     * @private
++     */
++    function getFirstVisibleForPosition(pos) {
++        var num = this.get("numVisible");
++        return Math.floor(pos / num) * num;
++    }
++
++    /**
++     * Return the scrolling offset size given the number of elements to
++     * scroll.
++     *
++     * @method getScrollOffset
++     * @param delta {Number} The delta number of elements to scroll by.
++     * @private
++     */
++    function getScrollOffset(delta) {
++        var itemSize = 0,
++            size     = 0;
++
++        itemSize = getCarouselItemSize.call(this);
++        size = itemSize * delta;
++
++        return size;
++    }
++
++    /**
++     * Scroll the Carousel by a page backward.
++     *
++     * @method scrollPageBackward
++     * @param {Event} ev The event object
++     * @param {Object} obj The context object
++     * @private
++     */
++    function scrollPageBackward(ev, obj) {
++        obj.scrollPageBackward();
++        Event.preventDefault(ev);
++    }
++
++    /**
++     * Scroll the Carousel by a page forward.
++     *
++     * @method scrollPageForward
++     * @param {Event} ev The event object
++     * @param {Object} obj The context object
++     * @private
++     */
++    function scrollPageForward(ev, obj) {
++        obj.scrollPageForward();
++        Event.preventDefault(ev);
++    }
++
++    /**
++     * Set the selected item.
++     *
++     * @method setItemSelection
++     * @param {Number} newpos The index of the new position
++     * @param {Number} oldpos The index of the previous position
++     * @private
++     */
++     function setItemSelection(newpos, oldpos) {
++        var carousel = this,
++            cssClass   = carousel.CLASSES,
++            el,
++            firstItem  = carousel._firstItem,
++            isCircular = carousel.get("isCircular"),
++            numItems   = carousel.get("numItems"),
++            numVisible = carousel.get("numVisible"),
++            position   = oldpos,
++            sentinel   = firstItem + numVisible - 1;
++
++        if (position >= 0 && position < numItems) {
++            if (!JS.isUndefined(carousel._itemsTable.items[position])) {
++                el = Dom.get(carousel._itemsTable.items[position].id);
++                if (el) {
++                    Dom.removeClass(el, cssClass.SELECTED_ITEM);
++                }
++            }
++        }
++
++        if (JS.isNumber(newpos)) {
++            newpos = parseInt(newpos, 10);
++            newpos = JS.isNumber(newpos) ? newpos : 0;
++        } else {
++            newpos = firstItem;
++        }
++
++        if (JS.isUndefined(carousel._itemsTable.items[newpos])) {
++            newpos = getFirstVisibleForPosition.call(carousel, newpos);
++            carousel.scrollTo(newpos); // still loading the item
++        }
++
++        if (!JS.isUndefined(carousel._itemsTable.items[newpos])) {
++            el = Dom.get(carousel._itemsTable.items[newpos].id);
++            if (el) {
++                Dom.addClass(el, cssClass.SELECTED_ITEM);
++            }
++        }
++
++        if (newpos < firstItem || newpos > sentinel) { // out of focus
++            newpos = getFirstVisibleForPosition.call(carousel, newpos);
++            carousel.scrollTo(newpos);
++        }
++    }
++
++    /**
++     * Fire custom events for enabling/disabling navigation elements.
++     *
++     * @method syncNavigation
++     * @private
++     */
++    function syncNavigation() {
++        var attach   = false,
++            carousel = this,
++            cssClass = carousel.CLASSES,
++            i,
++            navigation,
++            sentinel;
++
++        // Don't do anything if the Carousel is not rendered
++        if (!carousel._hasRendered) {
++            return;
++        }
++
++        navigation = carousel.get("navigation");
++        sentinel   = carousel._firstItem + carousel.get("numVisible");
++
++        if (navigation.prev) {
++            if (carousel.get("numItems") === 0 || carousel._firstItem === 0) {
++                if (carousel.get("numItems") === 0 ||
++                   !carousel.get("isCircular")) {
++                    Event.removeListener(navigation.prev, "click",
++                            scrollPageBackward);
++                    Dom.addClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
++                    for (i = 0; i < carousel._navBtns.prev.length; i++) {
++                        carousel._navBtns.prev[i].setAttribute("disabled",
++                                "true");
++                    }
++                    carousel._prevEnabled = false;
++                } else {
++                    attach = !carousel._prevEnabled;
++                }
++            } else {
++                attach = !carousel._prevEnabled;
++            }
++
++            if (attach) {
++                Event.on(navigation.prev, "click", scrollPageBackward,
++                         carousel);
++                Dom.removeClass(navigation.prev, cssClass.FIRST_NAV_DISABLED);
++                for (i = 0; i < carousel._navBtns.prev.length; i++) {
++                    carousel._navBtns.prev[i].removeAttribute("disabled");
++                }
++                carousel._prevEnabled = true;
++            }
++        }
++
++        attach = false;
++        if (navigation.next) {
++            if (sentinel >= carousel.get("numItems")) {
++                if (!carousel.get("isCircular")) {
++                    Event.removeListener(navigation.next, "click",
++                            scrollPageForward);
++                    Dom.addClass(navigation.next, cssClass.DISABLED);
++                    for (i = 0; i < carousel._navBtns.next.length; i++) {
++                        carousel._navBtns.next[i].setAttribute("disabled",
++                                "true");
++                    }
++                    carousel._nextEnabled = false;
++                } else {
++                    attach = !carousel._nextEnabled;
++                }
++            } else {
++                attach = !carousel._nextEnabled;
++            }
++
++            if (attach) {
++                Event.on(navigation.next, "click", scrollPageForward,
++                         carousel);
++                Dom.removeClass(navigation.next, cssClass.DISABLED);
++                for (i = 0; i < carousel._navBtns.next.length; i++) {
++                    carousel._navBtns.next[i].removeAttribute("disabled");
++                }
++                carousel._nextEnabled = true;
++            }
++        }
++
++        carousel.fireEvent(navigationStateChangeEvent,
++                { next: carousel._nextEnabled, prev: carousel._prevEnabled });
++    }
++
++    /**
++     * Synchronize and redraw the Pager UI if necessary.
++     *
++     * @method syncPagerUi
++     * @private
++     */
++    function syncPagerUi(page) {
++        var carousel = this, numPages, numVisible;
++
++        // Don't do anything if the Carousel is not rendered
++        if (!carousel._hasRendered) {
++            return;
++        }
++
++        numVisible = carousel.get("numVisible");
++
++        if (!JS.isNumber(page)) {
++            page = Math.floor(carousel.get("selectedItem") / numVisible);
++        }
++
++        numPages = Math.ceil(carousel.get("numItems") / numVisible);
++
++        carousel._pages.num = numPages;
++        carousel._pages.cur = page;
++
++        if (numPages > carousel.CONFIG.MAX_PAGER_BUTTONS) {
++            carousel._updatePagerMenu();
++        } else {
++            carousel._updatePagerButtons();
++        }
++    }
++
++    /**
++     * Get full dimensions of an element.
++     *
++     * @method getDimensions
++     * @param {Object} el The element to get the dimensions of
++     * @param {String} which Get the height or width of an element
++     * @private
++     */
++    function getDimensions(el, which) {
++        switch (which) {
++        case 'height':
++            return  getStyle(el, "marginTop")        +
++                    getStyle(el, "marginBottom")     +
++                    getStyle(el, "paddingTop")       +
++                    getStyle(el, "paddingBottom")    +
++                    getStyle(el, "borderTopWidth")   +
++                    getStyle(el, "borderBottomWidth");
++        case 'width':
++            return   getStyle(el, "marginLeft")      +
++                     getStyle(el, "marginRight")     +
++                     getStyle(el, "paddingLeft")     +
++                     getStyle(el, "paddingRight")    +
++                     getStyle(el, "borderLeftWidth") +
++                     getStyle(el, "borderRightWidth");
++        default:
++            break;
++        }
++
++        return getStyle(el, which);
++    }
++
++    /**
++     * Handle UI update.
++     * Call the appropriate methods on events fired when an item is added, or
++     * removed for synchronizing the DOM.
++     *
++     * @method syncUi
++     * @param {Object} o The item that needs to be added or removed
++     * @private
++     */
++    function syncUi(o) {
++        var carousel = this;
++
++        if (!JS.isObject(o)) {
++            return;
++        }
++
++        switch (o.ev) {
++        case itemAddedEvent:
++            carousel._syncUiForItemAdd(o);
++            break;
++        case itemRemovedEvent:
++            carousel._syncUiForItemRemove(o);
++            break;
++        case itemReplacedEvent:
++            carousel._syncUiForItemReplace(o);
++            break;
++        case loadItemsEvent:
++            carousel._syncUiForLazyLoading(o);
++            break;
++        }
++
++        carousel.fireEvent(uiUpdateEvent);
++    }
++
++    /**
++     * Update the state variables after scrolling the Carousel view port.
++     *
++     * @method updateStateAfterScroll
++     * @param {Integer} item The index to which the Carousel has scrolled to.
++     * @param {Integer} sentinel The last element in the view port.
++     * @private
++     */
++    function updateStateAfterScroll(item, sentinel) {
++        var carousel   = this,
++            page       = carousel.get("currentPage"),
++            newPage,
++            numPerPage = carousel.get("numVisible");
++
++        newPage = parseInt(carousel._firstItem / numPerPage, 10);
++        if (newPage != page) {
++            carousel.setAttributeConfig("currentPage", { value: newPage });
++            carousel.fireEvent(pageChangeEvent, newPage);
++        }
++
++        if (carousel.get("selectOnScroll")) {
++            if (carousel.get("selectedItem") != carousel._selectedItem) {
++                carousel.set("selectedItem", carousel._selectedItem);
++            }
++        }
++
++        clearTimeout(carousel._autoPlayTimer);
++        delete carousel._autoPlayTimer;
++        if (carousel.isAutoPlayOn()) {
++            carousel.startAutoPlay();
++        }
++
++        carousel.fireEvent(afterScrollEvent,
++                           { first: carousel._firstItem,
++                             last: sentinel },
++                           carousel);
++    }
++
++    /*
++     * Static members and methods of the Carousel component
++     */
++
++    /**
++     * Return the appropriate Carousel object based on the id associated with
++     * the Carousel element or false if none match.
++     * @method getById
++     * @public
++     * @static
++     */
++    Carousel.getById = function (id) {
++        return instances[id] ? instances[id].object : false;
++    };
++
++    YAHOO.extend(Carousel, YAHOO.util.Element, {
++
++        /*
++         * Internal variables used within the Carousel component
++         */
++
++         /**
++         * Number of rows for a multirow carousel.
++         *
++         * @property _rows
++         * @private
++         */
++        _rows: null,
++
++        /**
++         * Number of cols for a multirow carousel.
++         *
++         * @property _cols
++         * @private
++         */
++        _cols: null,
++
++        /**
++         * The Animation object.
++         *
++         * @property _animObj
++         * @private
++         */
++        _animObj: null,
++
++        /**
++         * The Carousel element.
++         *
++         * @property _carouselEl
++         * @private
++         */
++        _carouselEl: null,
++
++        /**
++         * The Carousel clipping container element.
++         *
++         * @property _clipEl
++         * @private
++         */
++        _clipEl: null,
++
++        /**
++         * The current first index of the Carousel.
++         *
++         * @property _firstItem
++         * @private
++         */
++        _firstItem: 0,
++
++        /**
++         * Does the Carousel element have focus?
++         *
++         * @property _hasFocus
++         * @private
++         */
++        _hasFocus: false,
++
++        /**
++         * Is the Carousel rendered already?
++         *
++         * @property _hasRendered
++         * @private
++         */
++        _hasRendered: false,
++
++        /**
++         * Is the animation still in progress?
++         *
++         * @property _isAnimationInProgress
++         * @private
++         */
++        _isAnimationInProgress: false,
++
++        /**
++         * Is the auto-scrolling of Carousel in progress?
++         *
++         * @property _isAutoPlayInProgress
++         * @private
++         */
++        _isAutoPlayInProgress: false,
++
++        /**
++         * The table of items in the Carousel.
++         * The numItems is the number of items in the Carousel, items being the
++         * array of items in the Carousel.  The size is the size of a single
++         * item in the Carousel.  It is cached here for efficiency (to avoid
++         * computing the size multiple times).
++         *
++         * @property _itemsTable
++         * @private
++         */
++        _itemsTable: null,
++
++        /**
++         * The Carousel navigation buttons.
++         *
++         * @property _navBtns
++         * @private
++         */
++        _navBtns: null,
++
++        /**
++         * The Carousel navigation.
++         *
++         * @property _navEl
++         * @private
++         */
++        _navEl: null,
++
++        /**
++         * Status of the next navigation item.
++         *
++         * @property _nextEnabled
++         * @private
++         */
++        _nextEnabled: true,
++
++        /**
++         * The Carousel pages structure.
++         * This is an object of the total number of pages and the current page.
++         *
++         * @property _pages
++         * @private
++         */
++        _pages: null,
++
++        /**
++         * The Carousel pagination structure.
++         *
++         * @property _pagination
++         * @private
++         */
++        _pagination: {},
++
++        /**
++         * Status of the previous navigation item.
++         *
++         * @property _prevEnabled
++         * @private
++         */
++        _prevEnabled: true,
++
++        /**
++         * Whether the Carousel size needs to be recomputed or not?
++         *
++         * @property _recomputeSize
++         * @private
++         */
++        _recomputeSize: true,
++
++        /**
++         * Cache the Carousel item attributes.
++         *
++         * @property _itemAttrCache
++         * @private
++         */
++         _itemAttrCache: {},
++
++        /*
++         * CSS classes used by the Carousel component
++         */
++
++        CLASSES: {
++
++            /**
++             * The class name of the Carousel navigation buttons.
++             *
++             * @property BUTTON
++             * @default "yui-carousel-button"
++             */
++            BUTTON: "yui-carousel-button",
++
++            /**
++             * The class name of the Carousel element.
++             *
++             * @property CAROUSEL
++             * @default "yui-carousel"
++             */
++            CAROUSEL: "yui-carousel",
++
++            /**
++             * The class name of the container of the items in the Carousel.
++             *
++             * @property CAROUSEL_EL
++             * @default "yui-carousel-element"
++             */
++            CAROUSEL_EL: "yui-carousel-element",
++
++            /**
++             * The class name of the Carousel's container element.
++             *
++             * @property CONTAINER
++             * @default "yui-carousel-container"
++             */
++            CONTAINER: "yui-carousel-container",
++
++            /**
++             * The class name of the Carousel's container element.
++             *
++             * @property CONTENT
++             * @default "yui-carousel-content"
++             */
++            CONTENT: "yui-carousel-content",
++
++            /**
++             * The class name of a disabled navigation button.
++             *
++             * @property DISABLED
++             * @default "yui-carousel-button-disabled"
++             */
++            DISABLED: "yui-carousel-button-disabled",
++
++            /**
++             * The class name of the first Carousel navigation button.
++             *
++             * @property FIRST_NAV
++             * @default " yui-carousel-first-button"
++             */
++            FIRST_NAV: " yui-carousel-first-button",
++
++            /**
++             * The class name of a first disabled navigation button.
++             *
++             * @property FIRST_NAV_DISABLED
++             * @default "yui-carousel-first-button-disabled"
++             */
++            FIRST_NAV_DISABLED: "yui-carousel-first-button-disabled",
++
++            /**
++             * The class name of a first page element.
++             *
++             * @property FIRST_PAGE
++             * @default "yui-carousel-nav-first-page"
++             */
++            FIRST_PAGE: "yui-carousel-nav-first-page",
++
++            /**
++             * The class name of the Carousel navigation button that has focus.
++             *
++             * @property FOCUSSED_BUTTON
++             * @default "yui-carousel-button-focus"
++             */
++            FOCUSSED_BUTTON: "yui-carousel-button-focus",
++
++            /**
++             * The class name of a horizontally oriented Carousel.
++             *
++             * @property HORIZONTAL
++             * @default "yui-carousel-horizontal"
++             */
++            HORIZONTAL: "yui-carousel-horizontal",
++
++            /**
++             * The element to be used as the progress indicator when the item
++             * is still being loaded.
++             *
++             * @property ITEM_LOADING
++             * @default The progress indicator (spinner) image CSS class
++             */
++            ITEM_LOADING: "yui-carousel-item-loading",
++
++            /**
++             * The class name that will be set if the Carousel adjusts itself
++             * for a minimum width.
++             *
++             * @property MIN_WIDTH
++             * @default "yui-carousel-min-width"
++             */
++            MIN_WIDTH: "yui-carousel-min-width",
++
++            /**
++             * The navigation element container class name.
++             *
++             * @property NAVIGATION
++             * @default "yui-carousel-nav"
++             */
++            NAVIGATION: "yui-carousel-nav",
++
++            /**
++             * The class name of the next Carousel navigation button.
++             *
++             * @property NEXT_NAV
++             * @default " yui-carousel-next-button"
++             */
++            NEXT_NAV: " yui-carousel-next-button",
++
++            /**
++             * The class name of the next navigation link. This variable is
++             * not only used for styling, but also for identifying the link
++             * within the Carousel container.
++             *
++             * @property NEXT_PAGE
++             * @default "yui-carousel-next"
++             */
++            NEXT_PAGE: "yui-carousel-next",
++
++            /**
++             * The class name for the navigation container for prev/next.
++             *
++             * @property NAV_CONTAINER
++             * @default "yui-carousel-buttons"
++             */
++            NAV_CONTAINER: "yui-carousel-buttons",
++
++            /**
++              * The class name for an item in the pager UL or dropdown menu.
++              *
++              * @property PAGER_ITEM
++              * @default "yui-carousel-pager-item"
++              */
++            PAGER_ITEM: "yui-carousel-pager-item",
++
++            /**
++             * The class name for the pagination container
++             *
++             * @property PAGINATION
++             * @default "yui-carousel-pagination"
++             */
++            PAGINATION: "yui-carousel-pagination",
++
++            /**
++             * The class name of the focussed page navigation.  This class is
++             * specifically used for the ugly focus handling in Opera.
++             *
++             * @property PAGE_FOCUS
++             * @default "yui-carousel-nav-page-focus"
++             */
++            PAGE_FOCUS: "yui-carousel-nav-page-focus",
++
++            /**
++             * The class name of the previous navigation link. This variable
++             * is not only used for styling, but also for identifying the link
++             * within the Carousel container.
++             *
++             * @property PREV_PAGE
++             * @default "yui-carousel-prev"
++             */
++            PREV_PAGE: "yui-carousel-prev",
++
++            /**
++             * The class name of the selected item.
++             *
++             * @property SELECTED_ITEM
++             * @default "yui-carousel-item-selected"
++             */
++            SELECTED_ITEM: "yui-carousel-item-selected",
++
++            /**
++             * The class name of the selected paging navigation.
++             *
++             * @property SELECTED_NAV
++             * @default "yui-carousel-nav-page-selected"
++             */
++            SELECTED_NAV: "yui-carousel-nav-page-selected",
++
++            /**
++             * The class name of a vertically oriented Carousel.
++             *
++             * @property VERTICAL
++             * @default "yui-carousel-vertical"
++             */
++            VERTICAL: "yui-carousel-vertical",
++
++            /**
++             * The class name of a multirow Carousel.
++             *
++             * @property MULTI_ROW
++             * @default "yui-carousel-multi-row"
++             */
++            MULTI_ROW: "yui-carousel-multi-row",
++
++            /**
++             * The class name of a row in a multirow Carousel.
++             *
++             * @property ROW
++             * @default "yui-carousel-new-row"
++             */
++            ROW: "yui-carousel-row",
++
++            /**
++             * The class name of a vertical Carousel's container element.
++             *
++             * @property VERTICAL_CONTAINER
++             * @default "yui-carousel-vertical-container"
++             */
++            VERTICAL_CONTAINER: "yui-carousel-vertical-container",
++
++            /**
++             * The class name of a visible Carousel.
++             *
++             * @property VISIBLE
++             * @default "yui-carousel-visible"
++             */
++            VISIBLE: "yui-carousel-visible"
++
++        },
++
++        /*
++         * Configuration attributes for configuring the Carousel component
++         */
++
++        CONFIG: {
++
++            /**
++             * The offset of the first visible item in the Carousel.
++             *
++             * @property FIRST_VISIBLE
++             * @default 0
++             */
++            FIRST_VISIBLE: 0,
++
++            /**
++             * The minimum width of the horizontal Carousel container to support
++             * the navigation buttons.
++             *
++             * @property HORZ_MIN_WIDTH
++             * @default 180
++             */
++            HORZ_MIN_WIDTH: 180,
++
++            /**
++             * The maximum number of pager buttons allowed beyond which the UI
++             * of the pager would be a drop-down of pages instead of buttons.
++             *
++             * @property MAX_PAGER_BUTTONS
++             * @default 5
++             */
++            MAX_PAGER_BUTTONS: 5,
++
++            /**
++             * The minimum width of the vertical Carousel container to support
++             * the navigation buttons.
++             *
++             * @property VERT_MIN_WIDTH
++             * @default 155
++             */
++            VERT_MIN_WIDTH: 115,
++
++            /**
++             * The number of visible items in the Carousel.
++             *
++             * @property NUM_VISIBLE
++             * @default 3
++             */
++            NUM_VISIBLE: 3
++
++        },
++
++        /*
++         * Internationalizable strings in the Carousel component
++         */
++
++        STRINGS: {
++
++            /**
++             * The content to be used as the progress indicator when the item
++             * is still being loaded.
++             *
++             * @property ITEM_LOADING_CONTENT
++             * @default "Loading"
++             */
++            ITEM_LOADING_CONTENT: "Loading",
++
++            /**
++             * The next navigation button name/text.
++             *
++             * @property NEXT_BUTTON_TEXT
++             * @default "Next Page"
++             */
++            NEXT_BUTTON_TEXT: "Next Page",
++
++            /**
++             * The prefix text for the pager in case the UI is a drop-down.
++             *
++             * @property PAGER_PREFIX_TEXT
++             * @default "Go to page "
++             */
++            PAGER_PREFIX_TEXT: "Go to page ",
++
++            /**
++             * The previous navigation button name/text.
++             *
++             * @property PREVIOUS_BUTTON_TEXT
++             * @default "Previous Page"
++             */
++            PREVIOUS_BUTTON_TEXT: "Previous Page"
++
++        },
++
++        /*
++         * Public methods of the Carousel component
++         */
++
++        /**
++         * Insert or append an item to the Carousel.
++         * E.g. if Object: ({content:"Your Content", id:"", className:""}, index)
++         *
++         * @method addItem
++         * @public
++         * @param item {String | Object | HTMLElement} The item to be appended
++         * to the Carousel. If the parameter is a string, it is assumed to be
++         * the content of the newly created item. If the parameter is an
++         * object, it is assumed to supply the content and an optional class
++         * and an optional id of the newly created item.
++         * @param index {Number} optional The position to where in the list
++         * (starts from zero).
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        addItem: function (item, index) {
++            var carousel = this,
++                className,
++                content,
++                elId,
++                replaceItems = 0,
++                newIndex, // Add newIndex as workaround for undefined pos
++                numItems = carousel.get("numItems");
++
++            if (!item) {
++                return false;
++            }
++
++            if (JS.isString(item) || item.nodeName) {
++                content = item.nodeName ? item.innerHTML : item;
++            } else if (JS.isObject(item)) {
++                content = item.content;
++            } else {
++                return false;
++            }
++
++            className = item.className || "";
++            elId      = item.id ? item.id : Dom.generateId();
++
++            if (JS.isUndefined(index)) {
++                carousel._itemsTable.items.push({
++                        item      : content,
++                        className : className,
++                        id        : elId
++                });
++                // Add newIndex as workaround for undefined pos
++                newIndex = carousel._itemsTable.items.length-1;
++            } else {
++                if (index < 0 || index > numItems) {
++                    return false;
++                }
++
++                // make sure we splice into the correct position
++                if(!carousel._itemsTable.items[index]){
++                    carousel._itemsTable.items[index] = undefined;
++                    replaceItems = 1;
++                }
++
++                carousel._itemsTable.items.splice(index, replaceItems, {
++                        item      : content,
++                        className : className,
++                        id        : elId
++                });
++            }
++            carousel._itemsTable.numItems++;
++
++            if (numItems < carousel._itemsTable.items.length) {
++                carousel.set("numItems", carousel._itemsTable.items.length);
++            }
++
++            // Add newPos as workaround for undefined pos
++            carousel.fireEvent(itemAddedEvent, { pos: index, ev: itemAddedEvent, newPos:newIndex });
++
++            return true;
++        },
++
++        /**
++         * Insert or append multiple items to the Carousel.
++         *
++         * @method addItems
++         * @public
++         * @param items {Array} An array containing an array of new items each linked to the
++         * index where the insertion should take place.
++         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
++         * NOTE: An item at index must already exist.
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        addItems: function (items) {
++            var i, n, rv = true;
++
++            if (!JS.isArray(items)) {
++                return false;
++            }
++
++            for (i = 0, n = items.length; i < n; i++) {
++                if (this.addItem(items[i][0], items[i][1]) === false) {
++                    rv = false;
++                }
++            }
++
++            return rv;
++        },
++
++        /**
++         * Remove focus from the Carousel.
++         *
++         * @method blur
++         * @public
++         */
++        blur: function () {
++            this._carouselEl.blur();
++            this.fireEvent(blurEvent);
++        },
++
++        /**
++         * Clears the items from Carousel.
++         *
++         * @method clearItems
++         * @public
++         */
++        clearItems: function () {
++            var carousel = this, n = carousel.get("numItems");
++
++            while (n > 0) {
++                if (!carousel.removeItem(0)) {
++                }
++                /*
++                    For dynamic loading, the numItems may be much larger than
++                    the actual number of items in the table. So, set the
++                    numItems to zero, and break out of the loop if the table
++                    is already empty.
++                 */
++                if (carousel._itemsTable.numItems === 0) {
++                    carousel.set("numItems", 0);
++                    break;
++                }
++                n--;
++            }
++
++            carousel.fireEvent(allItemsRemovedEvent);
++        },
++
++        /**
++         * Set focus on the Carousel.
++         *
++         * @method focus
++         * @public
++         */
++        focus: function () {
++            var carousel = this,
++                first,
++                focusEl,
++                isSelectionInvisible,
++                itemsTable,
++                last,
++                numVisible,
++                selectOnScroll,
++                selected,
++                selItem;
++
++            // Don't do anything if the Carousel is not rendered
++            if (!carousel._hasRendered) {
++                return;
++            }
++
++            if (carousel.isAnimating()) {
++                // this messes up real bad!
++                return;
++            }
++
++            selItem              = carousel.get("selectedItem");
++            numVisible           = carousel.get("numVisible");
++            selectOnScroll       = carousel.get("selectOnScroll");
++            selected             = (selItem >= 0) ?
++                                   carousel.getItem(selItem) : null;
++            first                = carousel.get("firstVisible");
++            last                 = first + numVisible - 1;
++            isSelectionInvisible = (selItem < first || selItem > last);
++            focusEl              = (selected && selected.id) ?
++                                   Dom.get(selected.id) : null;
++            itemsTable           = carousel._itemsTable;
++
++            if (!selectOnScroll && isSelectionInvisible) {
++                focusEl = (itemsTable && itemsTable.items &&
++                           itemsTable.items[first]) ?
++                        Dom.get(itemsTable.items[first].id) : null;
++            }
++
++            if (focusEl) {
++                try {
++                    focusEl.focus();
++                } catch (ex) {
++                    // ignore focus errors
++                }
++            }
++
++            carousel.fireEvent(focusEvent);
++        },
++
++        /**
++         * Hide the Carousel.
++         *
++         * @method hide
++         * @public
++         */
++        hide: function () {
++            var carousel = this;
++
++            if (carousel.fireEvent(beforeHideEvent) !== false) {
++                carousel.removeClass(carousel.CLASSES.VISIBLE);
++                carousel.fireEvent(hideEvent);
++            }
++        },
++
++        /**
++         * Initialize the Carousel.
++         *
++         * @method init
++         * @public
++         * @param el {HTMLElement | String} The html element that represents
++         * the Carousel container.
++         * @param attrs {Object} The set of configuration attributes for
++         * creating the Carousel.
++         */
++        init: function (el, attrs) {
++            var carousel = this,
++                elId     = el,  // save for a rainy day
++                parse    = false,
++                selected;
++
++            if (!el) {
++                return;
++            }
++
++            carousel._hasRendered = false;
++            carousel._navBtns     = { prev: [], next: [] };
++            carousel._pages       = { el: null, num: 0, cur: 0 };
++            carousel._pagination  = {};
++            carousel._itemAttrCache = {};
++
++            carousel._itemsTable  = { loading: {}, numItems: 0,
++                                      items: [], size: 0 };
++
++
++            if (JS.isString(el)) {
++                el = Dom.get(el);
++            } else if (!el.nodeName) {
++                return;
++            }
++
++            Carousel.superclass.init.call(carousel, el, attrs);
++
++            // check if we're starting somewhere in the middle
++            selected = carousel.get("selectedItem");
++            if(selected > 0){
++                carousel.set("firstVisible",getFirstVisibleForPosition.call(carousel,selected));
++            }
++
++            if (el) {
++                if (!el.id) {   // in case the HTML element is passed
++                    el.setAttribute("id", Dom.generateId());
++                }
++                parse = carousel._parseCarousel(el);
++                if (!parse) {
++                    carousel._createCarousel(elId);
++                }
++            } else {
++                el = carousel._createCarousel(elId);
++            }
++            elId = el.id;
++
++            carousel.initEvents();
++
++            if (parse) {
++                carousel._parseCarouselItems();
++            }
++
++            // add the selected class
++            if(selected > 0){
++                setItemSelection.call(carousel,selected,0);
++            }
++
++            if (!attrs || typeof attrs.isVertical == "undefined") {
++                carousel.set("isVertical", false);
++            }
++
++            carousel._parseCarouselNavigation(el);
++            carousel._navEl = carousel._setupCarouselNavigation();
++
++            instances[elId] = { object: carousel };
++            carousel._loadItems(Math.min(carousel.get("firstVisible")+carousel.get("numVisible"),carousel.get("numItems"))-1);
++        },
++
++        /**
++         * Initialize the configuration attributes used to create the Carousel.
++         *
++         * @method initAttributes
++         * @public
++         * @param attrs {Object} The set of configuration attributes for
++         * creating the Carousel.
++         */
++        initAttributes: function (attrs) {
++            var carousel = this;
++
++            attrs = attrs || {};
++            Carousel.superclass.initAttributes.call(carousel, attrs);
++
++            /**
++             * @attribute carouselEl
++             * @description The type of the Carousel element.
++             * @default OL
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("carouselEl", {
++                    validator : JS.isString,
++                    value     : attrs.carouselEl || "OL"
++            });
++
++            /**
++             * @attribute carouselItemEl
++             * @description The type of the list of items within the Carousel.
++             * @default LI
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("carouselItemEl", {
++                    validator : JS.isString,
++                    value     : attrs.carouselItemEl || "LI"
++            });
++
++            /**
++             * @attribute currentPage
++             * @description The current page number (read-only.)
++             * @type Number
++             */
++            carousel.setAttributeConfig("currentPage", {
++                    readOnly : true,
++                    value    : 0
++            });
++
++            /**
++             * @attribute firstVisible
++             * @description The index to start the Carousel from (indexes begin
++             * from zero)
++             * @default 0
++             * @type Number
++             */
++            carousel.setAttributeConfig("firstVisible", {
++                    method    : carousel._setFirstVisible,
++                    validator : carousel._validateFirstVisible,
++                    value     :
++                        attrs.firstVisible || carousel.CONFIG.FIRST_VISIBLE
++            });
++
++            /**
++             * @attribute selectOnScroll
++             * @description Set this to true to automatically set focus to
++             * follow scrolling in the Carousel.
++             * @default true
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("selectOnScroll", {
++                    validator : JS.isBoolean,
++                    value     : attrs.selectOnScroll || true
++            });
++
++            /**
++             * @attribute numVisible
++             * @description The number of visible items in the Carousel's
++             * viewport.
++             * @default 3
++             * @type Number
++             */
++            carousel.setAttributeConfig("numVisible", {
++                    setter    : carousel._numVisibleSetter,
++                    method    : carousel._setNumVisible,
++                    validator : carousel._validateNumVisible,
++                    value     : attrs.numVisible || carousel.CONFIG.NUM_VISIBLE
++            });
++
++            /**
++             * @attribute numItems
++             * @description The number of items in the Carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("numItems", {
++                    method    : carousel._setNumItems,
++                    validator : carousel._validateNumItems,
++                    value     : carousel._itemsTable.numItems
++            });
++
++            /**
++             * @attribute scrollIncrement
++             * @description The number of items to scroll by for arrow keys.
++             * @default 1
++             * @type Number
++             */
++            carousel.setAttributeConfig("scrollIncrement", {
++                    validator : carousel._validateScrollIncrement,
++                    value     : attrs.scrollIncrement || 1
++            });
++
++            /**
++             * @attribute selectedItem
++             * @description The index of the selected item.
++             * @type Number
++             */
++            carousel.setAttributeConfig("selectedItem", {
++                    setter    : carousel._selectedItemSetter,
++                    method    : carousel._setSelectedItem,
++                    validator : JS.isNumber,
++                    value     : -1
++            });
++
++            /**
++             * @attribute revealAmount
++             * @description The percentage of the item to be revealed on each
++             * side of the Carousel (before and after the first and last item
++             * in the Carousel's viewport.)
++             * @default 0
++             * @type Number
++             */
++            carousel.setAttributeConfig("revealAmount", {
++                    method    : carousel._setRevealAmount,
++                    validator : carousel._validateRevealAmount,
++                    value     : attrs.revealAmount || 0
++            });
++
++            /**
++             * @attribute isCircular
++             * @description Set this to true to wrap scrolling of the contents
++             * in the Carousel.
++             * @default false
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("isCircular", {
++                    validator : JS.isBoolean,
++                    value     : attrs.isCircular || false
++            });
++
++            /**
++             * @attribute isVertical
++             * @description True if the orientation of the Carousel is vertical
++             * @default false
++             * @type Boolean
++             */
++            carousel.setAttributeConfig("isVertical", {
++                    method    : carousel._setOrientation,
++                    validator : JS.isBoolean,
++                    value     : attrs.isVertical || false
++            });
++
++            /**
++             * @attribute navigation
++             * @description The set of navigation controls for Carousel
++             * @default <br>
++             * { prev: null, // the previous navigation element<br>
++             *   next: null } // the next navigation element
++             * @type Object
++             */
++            carousel.setAttributeConfig("navigation", {
++                    method    : carousel._setNavigation,
++                    validator : carousel._validateNavigation,
++                    value     :
++                        attrs.navigation || {prev: null,next: null,page: null}
++            });
++
++            /**
++             * @attribute animation
++             * @description The optional animation attributes for the Carousel.
++             * @default <br>
++             * { speed: 0, // the animation speed (in seconds)<br>
++             *   effect: null } // the animation effect (like
++             *   YAHOO.util.Easing.easeOut)
++             * @type Object
++             */
++            carousel.setAttributeConfig("animation", {
++                    validator : carousel._validateAnimation,
++                    value     : attrs.animation || { speed: 0, effect: null }
++            });
++
++            /**
++             * @attribute autoPlay
++             * @description Set this to time in milli-seconds to have the
++             * Carousel automatically scroll the contents.
++             * @type Number
++             * @deprecated Use autoPlayInterval instead.
++             */
++            carousel.setAttributeConfig("autoPlay", {
++                    validator : JS.isNumber,
++                    value     : attrs.autoPlay || 0
++            });
++
++            /**
++             * @attribute autoPlayInterval
++             * @description The delay in milli-seconds for scrolling the
++             * Carousel during auto-play.
++             * Note: The startAutoPlay() method needs to be invoked to trigger
++             * automatic scrolling of Carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("autoPlayInterval", {
++                    validator : JS.isNumber,
++                    value     : attrs.autoPlayInterval || 0
++            });
++
++            /**
++             * @attribute numPages
++             * @description The number of pages in the carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("numPages", {
++                    readOnly  : true,
++                    getter    : carousel._getNumPages
++            });
++
++            /**
++             * @attribute lastVisible
++             * @description The last item visible in the carousel.
++             * @type Number
++             */
++            carousel.setAttributeConfig("lastVisible", {
++                    readOnly  : true,
++                    getter    : carousel._getLastVisible
++            });
++        },
++
++        /**
++         * Initialize and bind the event handlers.
++         *
++         * @method initEvents
++         * @public
++         */
++        initEvents: function () {
++            var carousel = this,
++                cssClass = carousel.CLASSES,
++                focussedLi;
++
++            carousel.on("keydown", carousel._keyboardEventHandler);
++
++            carousel.on(afterScrollEvent, syncNavigation);
++
++            carousel.on(itemAddedEvent, syncUi);
++
++            carousel.on(itemRemovedEvent, syncUi);
++
++            carousel.on(itemReplacedEvent, syncUi);
++
++            carousel.on(itemSelectedEvent, function () {
++                if (carousel._hasFocus) {
++                    carousel.focus();
++                }
++            });
++
++            carousel.on(loadItemsEvent, syncUi);
++
++            carousel.on(allItemsRemovedEvent, function (ev) {
++                carousel.scrollTo(0);
++                syncNavigation.call(carousel);
++                syncPagerUi.call(carousel);
++            });
++
++            carousel.on(pageChangeEvent, syncPagerUi, carousel);
++
++            carousel.on(renderEvent, function (ev) {
++                if (carousel.get("selectedItem") === null ||
++                    carousel.get("selectedItem") <= 0) { //in either case
++                carousel.set("selectedItem", carousel.get("firstVisible"));
++                }
++                syncNavigation.call(carousel, ev);
++                syncPagerUi.call(carousel, ev);
++                carousel._setClipContainerSize();
++                carousel.show();
++            });
++
++            carousel.on("selectedItemChange", function (ev) {
++                setItemSelection.call(carousel, ev.newValue, ev.prevValue);
++                if (ev.newValue >= 0) {
++                    carousel._updateTabIndex(
++                            carousel.getElementForItem(ev.newValue));
++                }
++                carousel.fireEvent(itemSelectedEvent, ev.newValue);
++            });
++
++            carousel.on(uiUpdateEvent, function (ev) {
++                syncNavigation.call(carousel, ev);
++                syncPagerUi.call(carousel, ev);
++            });
++
++            carousel.on("firstVisibleChange", function (ev) {
++                if (!carousel.get("selectOnScroll")) {
++                    if (ev.newValue >= 0) {
++                        carousel._updateTabIndex(
++                                carousel.getElementForItem(ev.newValue));
++                    }
++                }
++            });
++
++            // Handle item selection on mouse click
++            carousel.on("click", function (ev) {
++                if (carousel.isAutoPlayOn()) {
++                    carousel.stopAutoPlay();
++                }
++                carousel._itemClickHandler(ev);
++                carousel._pagerClickHandler(ev);
++            });
++
++            // Restore the focus on the navigation buttons
++
++            Event.onFocus(carousel.get("element"), function (ev, obj) {
++                var target = Event.getTarget(ev);
++
++                if (target && target.nodeName.toUpperCase() == "A" &&
++                    Dom.getAncestorByClassName(target, cssClass.NAVIGATION)) {
++                    if (focussedLi) {
++                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
++                    }
++                    focussedLi = target.parentNode;
++                    Dom.addClass(focussedLi, cssClass.PAGE_FOCUS);
++                } else {
++                    if (focussedLi) {
++                        Dom.removeClass(focussedLi, cssClass.PAGE_FOCUS);
++                    }
++                }
++
++                obj._hasFocus = true;
++                obj._updateNavButtons(Event.getTarget(ev), true);
++            }, carousel);
++
++            Event.onBlur(carousel.get("element"), function (ev, obj) {
++                obj._hasFocus = false;
++                obj._updateNavButtons(Event.getTarget(ev), false);
++            }, carousel);
++        },
++
++        /**
++         * Return true if the Carousel is still animating, or false otherwise.
++         *
++         * @method isAnimating
++         * @return {Boolean} Return true if animation is still in progress, or
++         * false otherwise.
++         * @public
++         */
++        isAnimating: function () {
++            return this._isAnimationInProgress;
++        },
++
++        /**
++         * Return true if the auto-scrolling of Carousel is "on", or false
++         * otherwise.
++         *
++         * @method isAutoPlayOn
++         * @return {Boolean} Return true if autoPlay is "on", or false
++         * otherwise.
++         * @public
++         */
++        isAutoPlayOn: function () {
++            return this._isAutoPlayInProgress;
++        },
++
++        /**
++         * Return the carouselItemEl at index or null if the index is not
++         * found.
++         *
++         * @method getElementForItem
++         * @param index {Number} The index of the item to be returned
++         * @return {Element} Return the item at index or null if not found
++         * @public
++         */
++        getElementForItem: function (index) {
++            var carousel = this;
++
++            if (index < 0 || index >= carousel.get("numItems")) {
++                return null;
++            }
++
++            if (carousel._itemsTable.items[index]) {
++                return Dom.get(carousel._itemsTable.items[index].id);
++            }
++
++            return null;
++        },
++
++        /**
++         * Return the carouselItemEl for all items in the Carousel.
++         *
++         * @method getElementForItems
++         * @return {Array} Return all the items
++         * @public
++         */
++        getElementForItems: function () {
++            var carousel = this, els = [], i;
++
++            for (i = 0; i < carousel._itemsTable.numItems; i++) {
++                els.push(carousel.getElementForItem(i));
++            }
++
++            return els;
++        },
++
++        /**
++         * Return the item at index or null if the index is not found.
++         *
++         * @method getItem
++         * @param index {Number} The index of the item to be returned
++         * @return {Object} Return the item at index or null if not found
++         * @public
++         */
++        getItem: function (index) {
++            var carousel = this;
++
++            if (index < 0 || index >= carousel.get("numItems")) {
++                return null;
++            }
++
++            if (carousel._itemsTable.numItems > index) {
++                if (!JS.isUndefined(carousel._itemsTable.items[index])) {
++                    return carousel._itemsTable.items[index];
++                }
++            }
++
++            return null;
++        },
++
++        /**
++         * Return all items as an array.
++         *
++         * @method getItems
++         * @return {Array} Return all items in the Carousel
++         * @public
++         */
++        getItems: function () {
++            return this._itemsTable.items;
++        },
++
++        /**
++         * Return all loading items as an array.
++         *
++         * @method getLoadingItems
++         * @return {Array} Return all items that are loading in the Carousel.
++         * @public
++         */
++        getLoadingItems: function () {
++            return this._itemsTable.loading;
++        },
++
++        /**
++         * For a multirow carousel, return the number of rows specified by user.
++         *
++         * @method getItems
++         * @return {Number} Number of rows
++         * @public
++         */
++        getRows: function () {
++            return this._rows;
++        },
++
++        /**
++         * For a multirow carousel, return the number of cols specified by user.
++         *
++         * @method getItems
++         * @return {Array} Return all items in the Carousel
++         * @public
++         */
++        getCols: function () {
++            return this._cols;
++        },
++
++        /**
++         * Return the position of the Carousel item that has the id "id", or -1
++         * if the id is not found.
++         *
++         * @method getItemPositionById
++         * @param index {Number} The index of the item to be returned
++         * @public
++         */
++        getItemPositionById: function (id) {
++            var carousel = this,
++                n = carousel.get("numItems"),
++                i = 0,
++                items = carousel._itemsTable.items,
++                item;
++
++            while (i < n) {
++                item = items[i] || {};
++                if(item.id == id) {
++                    return i;
++                }
++                i++;
++            }
++
++            return -1;
++        },
++
++        /**
++         * Return all visible items as an array.
++         *
++         * @method getVisibleItems
++         * @return {Array} The array of visible items
++         * @public
++         */
++        getVisibleItems: function () {
++            var carousel = this,
++                i        = carousel.get("firstVisible"),
++                n        = i + carousel.get("numVisible"),
++                r        = [];
++
++            while (i < n) {
++                r.push(carousel.getElementForItem(i));
++                i++;
++            }
++
++            return r;
++        },
++
++        /**
++         * Remove an item at index from the Carousel.
++         *
++         * @method removeItem
++         * @public
++         * @param index {Number} The position to where in the list (starts from
++         * zero).
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        removeItem: function (index) {
++            var carousel = this,
++                item,
++                num      = carousel.get("numItems");
++
++            if (index < 0 || index >= num) {
++                return false;
++            }
++
++            item = carousel._itemsTable.items.splice(index, 1);
++            if (item && item.length == 1) {
++                carousel._itemsTable.numItems--;
++                carousel.set("numItems", num - 1);
++
++                carousel.fireEvent(itemRemovedEvent,
++                        { item: item[0], pos: index, ev: itemRemovedEvent });
++                return true;
++            }
++
++            return false;
++        },
++
++        /**
++         * Replace an item at index witin Carousel.
++         *
++         * @method replaceItem
++         * @public
++         * @param item {String | Object | HTMLElement} The item to be appended
++         * to the Carousel. If the parameter is a string, it is assumed to be
++         * the content of the newly created item. If the parameter is an
++         * object, it is assumed to supply the content and an optional class
++         * and an optional id of the newly created item.
++         * @param index {Number} The position to where in the list (starts from
++         * zero).
++         * @return {Boolean} Return true on success, false otherwise
++         */
++        replaceItem: function (item, index) {
++            var carousel = this,
++                className,
++                content,
++                elId,
++                numItems = carousel.get("numItems"),
++                oel,
++                el = item;
++
++            if (!item) {
++                return false;
++            }
++
++            if (JS.isString(item) || item.nodeName) {
++                content = item.nodeName ? item.innerHTML : item;
++            } else if (JS.isObject(item)) {
++                content = item.content;
++            } else {
++                return false;
++            }
++
++            if (JS.isUndefined(index)) {
++                return false;
++            } else {
++                if (index < 0 || index >= numItems) {
++                    return false;
++                }
++
++                oel = carousel._itemsTable.items[index];
++                if(!oel){
++                    oel = carousel._itemsTable.loading[index];
++                    carousel._itemsTable.items[index] = undefined;
++                }
++
++                carousel._itemsTable.items.splice(index, 1, {
++                    item      : content,
++                    className : item.className || "",
++                    id        : Dom.generateId()
++                });
++
++                el = carousel._itemsTable.items[index];
++            }
++            carousel.fireEvent(itemReplacedEvent,
++                    { newItem: el, oldItem: oel, pos: index, ev: itemReplacedEvent });
++
++            return true;
++        },
++
++        /**
++         * Replace multiple items at specified indexes.
++         * NOTE: item at index must already exist.
++         *
++         * @method replaceItems
++         * @public
++         * @param items {Array} An array containing an array of replacement items each linked to the
++         * index where the substitution should take place.
++         * E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
++         * @return {Boolean} Return true on success, false otherwise
++         */
++         replaceItems: function (items) {
++             var i, n, rv = true;
++
++             if (!JS.isArray(items)) {
++                 return false;
++             }
++
++             for (i = 0, n = items.length; i < n; i++) {
++                 if (this.replaceItem(items[i][0], items[i][1]) === false) {
++                     rv = false;
++                 }
++             }
++
++             return rv;
++         },
++
++        /**
++         * Render the Carousel.
++         *
++         * @method render
++         * @public
++         * @param appendTo {HTMLElement | String} The element to which the
++         * Carousel should be appended prior to rendering.
++         * @return {Boolean} Status of the operation
++         */
++        render: function (appendTo) {
++            var carousel  = this,
++                cssClass  = carousel.CLASSES,
++                rows = carousel._rows;
++
++            carousel.addClass(cssClass.CAROUSEL);
++
++            if (!carousel._clipEl) {
++                carousel._clipEl = carousel._createCarouselClip();
++                carousel._clipEl.appendChild(carousel._carouselEl);
++            }
++
++            if (appendTo) {
++                carousel.appendChild(carousel._clipEl);
++                carousel.appendTo(appendTo);
++            } else {
++                if (!Dom.inDocument(carousel.get("element"))) {
++                    return false;
++                }
++                carousel.appendChild(carousel._clipEl);
++            }
++
++            if (rows) {
++                Dom.addClass(carousel._clipEl, cssClass.MULTI_ROW);
++            }
++
++            if (carousel.get("isVertical")) {
++                carousel.addClass(cssClass.VERTICAL);
++            } else {
++                carousel.addClass(cssClass.HORIZONTAL);
++            }
++
++            if (carousel.get("numItems") < 1) {
++                return false;
++            }
++
++            carousel._refreshUi();
++
++            return true;
++        },
++
++        /**
++         * Scroll the Carousel by an item backward.
++         *
++         * @method scrollBackward
++         * @public
++         */
++        scrollBackward: function () {
++            var carousel = this;
++            carousel.scrollTo(carousel._firstItem -
++                              carousel.get("scrollIncrement"));
++        },
++
++        /**
++         * Scroll the Carousel by an item forward.
++         *
++         * @method scrollForward
++         * @public
++         */
++        scrollForward: function () {
++            var carousel = this;
++            carousel.scrollTo(carousel._firstItem +
++                              carousel.get("scrollIncrement"));
++        },
++
++        /**
++         * Scroll the Carousel by a page backward.
++         *
++         * @method scrollPageBackward
++         * @public
++         */
++        scrollPageBackward: function () {
++            var carousel = this,
++                isVertical = carousel.get("isVertical"),
++                cols       = carousel._cols,
++                item     = carousel._firstItem - carousel.get("numVisible");
++
++            if (item < 0) { // only account for multi-row when scrolling backwards from item 0
++                if (cols) {
++                    item = carousel._firstItem - cols;
++                }
++            }
++
++            if (carousel.get("selectOnScroll")) {
++                carousel._selectedItem = carousel._getSelectedItem(item);
++            }
++
++            carousel.scrollTo(item);
++        },
++
++        /**
++         * Scroll the Carousel by a page forward.
++         *
++         * @method scrollPageForward
++         * @public
++         */
++        scrollPageForward: function () {
++            var carousel = this,
++                item     = carousel._firstItem + carousel.get("numVisible");
++
++            if (item > carousel.get("numItems")) {
++                item = 0;
++            }
++
++            if (carousel.get("selectOnScroll")) {
++                carousel._selectedItem = carousel._getSelectedItem(item);
++            }
++
++            carousel.scrollTo(item);
++        },
++
++        /**
++         * Scroll the Carousel to make the item the first visible item.
++         *
++         * @method scrollTo
++         * @public
++         * @param item Number The index of the element to position at.
++         * @param dontSelect Boolean True if select should be avoided
++         */
++        scrollTo: function (item, dontSelect) {
++            var carousel   = this, animate, animCfg, isCircular, isVertical,
++                rows, delta, direction, firstItem, lastItem, itemsPerRow,
++                itemsPerCol, numItems, numPerPage, offset, page, rv, sentinel,
++                index, stopAutoScroll,
++                itemsTable = carousel._itemsTable,
++                items = itemsTable.items,
++                loading = itemsTable.loading;
++
++            if (JS.isUndefined(item) || item == carousel._firstItem ||
++                carousel.isAnimating()) {
++                return; // nothing to do!
++            }
++
++            animCfg        = carousel.get("animation");
++            isCircular     = carousel.get("isCircular");
++            isVertical     = carousel.get("isVertical");
++            itemsPerRow    = carousel._cols;
++            itemsPerCol    = carousel._rows;
++            firstItem      = carousel._firstItem;
++            numItems       = carousel.get("numItems");
++            numPerPage     = carousel.get("numVisible");
++            page           = carousel.get("currentPage");
++
++            stopAutoScroll = function () {
++                if (carousel.isAutoPlayOn()) {
++                    carousel.stopAutoPlay();
++                }
++            };
++
++            if (item < 0) {
++                if (isCircular) {
++                    item = numItems + item;
++                } else {
++                    stopAutoScroll.call(carousel);
++                    return;
++                }
++            } else if (numItems > 0 && item > numItems - 1) {
++
++                if (carousel.get("isCircular")) {
++                    item = numItems - item;
++                } else {
++                    stopAutoScroll.call(carousel);
++                    return;
++                }
++            }
++
++            if (isNaN(item)) {
++                return;
++            }
++
++            direction = (carousel._firstItem > item) ? "backward" : "forward";
++
++            sentinel  = firstItem + numPerPage;
++            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
++            rv = carousel.fireEvent(beforeScrollEvent,
++                    { dir: direction, first: firstItem, last: sentinel });
++            if (rv === false) { // scrolling is prevented
++                return;
++            }
++
++            carousel.fireEvent(beforePageChangeEvent, { page: page });
++
++            // call loaditems to check if we have all the items to display
++            lastItem = item + numPerPage - 1;
++            carousel._loadItems(lastItem > numItems-1 ? numItems-1 : lastItem);
++
++            // Calculate the delta relative to the first item, the delta is
++            // always negative.
++            delta = 0 - item;
++
++            if (itemsPerCol) {
++            	// offset calculations for multirow Carousel
++                if (isVertical) {
++                    delta = parseInt(delta / itemsPerRow, 10);
++                } else {
++                    delta = parseInt(delta / itemsPerCol, 10);
++                }
++            }
++
++            // adjust for items not yet loaded
++            index = 0;
++            while (delta < 0 && index < item+numPerPage-1 && index < numItems) {
++                if (!items[index] && !loading[index]) {
++                    delta++;
++                }
++                index += itemsPerCol ? itemsPerCol : 1;
++            }
++
++            carousel._firstItem = item;
++            carousel.set("firstVisible", item);
++
++
++            sentinel  = item + numPerPage;
++            sentinel  = (sentinel > numItems - 1) ? numItems - 1 : sentinel;
++
++            offset    = getScrollOffset.call(carousel, delta);
++
++            animate   = animCfg.speed > 0;
++
++            if (animate) {
++                carousel._animateAndSetCarouselOffset(offset, item, sentinel,
++                        dontSelect);
++            } else {
++                carousel._setCarouselOffset(offset);
++                updateStateAfterScroll.call(carousel, item, sentinel);
++            }
++        },
++
++        /**
++         * Get the page an item is on within carousel.
++         *
++         * @method getPageForItem
++         * @public
++         * @param index {Number} Index of item
++         * @return {Number} Page item is on
++         */
++        getPageForItem : function(item) {
++            return Math.ceil(
++                (item+1) / parseInt(this.get("numVisible"),10)
++            );
++        },
++
++        /**
++         * Get the first visible item's index on any given page.
++         *
++         * @method getFirstVisibleOnpage
++         * @public
++         * @param page {Number} Page
++         * @return {Number} First item's index
++         */
++        getFirstVisibleOnPage : function(page) {
++            return (page - 1) * this.get("numVisible");
++        },
++
++        /**
++         * Select the previous item in the Carousel.
++         *
++         * @method selectPreviousItem
++         * @public
++         */
++        selectPreviousItem: function () {
++            var carousel = this,
++                newpos   = 0,
++                selected = carousel.get("selectedItem");
++
++            if (selected == this._firstItem) {
++                newpos = selected - carousel.get("numVisible");
++                carousel._selectedItem = carousel._getSelectedItem(selected-1);
++                carousel.scrollTo(newpos);
++            } else {
++                newpos = carousel.get("selectedItem") -
++                         carousel.get("scrollIncrement");
++                carousel.set("selectedItem",carousel._getSelectedItem(newpos));
++            }
++        },
++
++        /**
++         * Select the next item in the Carousel.
++         *
++         * @method selectNextItem
++         * @public
++         */
++        selectNextItem: function () {
++            var carousel = this, newpos = 0;
++
++            newpos = carousel.get("selectedItem") +
++                     carousel.get("scrollIncrement");
++            carousel.set("selectedItem", carousel._getSelectedItem(newpos));
++        },
++
++        /**
++         * Display the Carousel.
++         *
++         * @method show
++         * @public
++         */
++        show: function () {
++            var carousel = this,
++                cssClass = carousel.CLASSES;
++
++            if (carousel.fireEvent(beforeShowEvent) !== false) {
++                carousel.addClass(cssClass.VISIBLE);
++                carousel.fireEvent(showEvent);
++            }
++        },
++
++        /**
++         * Start auto-playing the Carousel.
++         *
++         * @method startAutoPlay
++         * @public
++         */
++        startAutoPlay: function () {
++            var carousel = this, timer;
++
++            if (JS.isUndefined(carousel._autoPlayTimer)) {
++                timer = carousel.get("autoPlayInterval");
++                if (timer <= 0) {
++                    return;
++                }
++                carousel._isAutoPlayInProgress = true;
++                carousel.fireEvent(startAutoPlayEvent);
++                carousel._autoPlayTimer = setTimeout(function () {
++                    carousel._autoScroll();
++                }, timer);
++            }
++        },
++
++        /**
++         * Stop auto-playing the Carousel.
++         *
++         * @method stopAutoPlay
++         * @public
++         */
++        stopAutoPlay: function () {
++            var carousel = this;
++
++            if (!JS.isUndefined(carousel._autoPlayTimer)) {
++                clearTimeout(carousel._autoPlayTimer);
++                delete carousel._autoPlayTimer;
++                carousel._isAutoPlayInProgress = false;
++                carousel.fireEvent(stopAutoPlayEvent);
++            }
++        },
++
++        /**
++         * Update interface's pagination data within a registered template.
++         *
++         * @method updatePagination
++         * @public
++         */
++        updatePagination: function () {
++            var carousel = this,
++                pagination = carousel._pagination;
++            if(!pagination.el){ return false; }
++
++            var numItems = carousel.get('numItems'),
++                numVisible = carousel.get('numVisible'),
++                firstVisible = carousel.get('firstVisible')+1,
++                currentPage = carousel.get('currentPage')+1,
++                numPages = carousel.get('numPages'),
++                replacements = {
++                    'numVisible' : numVisible,
++                    'numPages' : numPages,
++                    'numItems' : numItems,
++                    'selectedItem' : carousel.get('selectedItem')+1,
++                    'currentPage' : currentPage,
++                    'firstVisible' : firstVisible,
++                    'lastVisible' : carousel.get("lastVisible")+1
++                },
++                cb = pagination.callback || {},
++                scope = cb.scope && cb.obj ? cb.obj : carousel;
++
++            pagination.el.innerHTML = JS.isFunction(cb.fn) ? cb.fn.apply(scope, [pagination.template, replacements]) : YAHOO.lang.substitute(pagination.template, replacements);
++        },
++
++        /**
++         * Register carousels pagination template, append to interface, and populate.
++         *
++         * @method registerPagination
++         * @param template {String} Pagination template as passed to lang.substitute
++         * @public
++         */
++        registerPagination: function (tpl, pos, cb) {
++            var carousel = this;
++
++            carousel._pagination.template = tpl;
++            carousel._pagination.callback = cb || {};
++
++            if(!carousel._pagination.el){
++                carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION});
++
++                if(pos == "before"){
++                    carousel._navEl.insertBefore(carousel._pagination.el, carousel._navEl.firstChild);
++                } else {
++                    carousel._navEl.appendChild(carousel._pagination.el);
++                }
++
++                carousel.on('itemSelected', carousel.updatePagination);
++                carousel.on('pageChange', carousel.updatePagination);
++            }
++
++            carousel.updatePagination();
++        },
++
++        /**
++         * Return the string representation of the Carousel.
++         *
++         * @method toString
++         * @public
++         * @return {String}
++         */
++        toString: function () {
++            return WidgetName + (this.get ? " (#" + this.get("id") + ")" : "");
++        },
++
++        /*
++         * Protected methods of the Carousel component
++         */
++
++        /**
++         * Set the Carousel offset to the passed offset after animating.
++         *
++         * @method _animateAndSetCarouselOffset
++         * @param {Integer} offset The offset to which the Carousel has to be
++         * scrolled to.
++         * @param {Integer} item The index to which the Carousel will scroll.
++         * @param {Integer} sentinel The last element in the view port.
++         * @protected
++         */
++        _animateAndSetCarouselOffset: function (offset, item, sentinel) {
++            var carousel = this,
++                animCfg  = carousel.get("animation"),
++                animObj  = null;
++
++            if (carousel.get("isVertical")) {
++                animObj = new YAHOO.util.Motion(carousel._carouselEl,
++                        { top: { to: offset } },
++                        animCfg.speed, animCfg.effect);
++            } else {
++                animObj = new YAHOO.util.Motion(carousel._carouselEl,
++                        { left: { to: offset } },
++                        animCfg.speed, animCfg.effect);
++            }
++
++            carousel._isAnimationInProgress = true;
++            animObj.onComplete.subscribe(carousel._animationCompleteHandler,
++                                         { scope: carousel, item: item,
++                                           last: sentinel });
++            animObj.animate();
++        },
++
++        /**
++         * Handle the animation complete event.
++         *
++         * @method _animationCompleteHandler
++         * @param {Event} ev The event.
++         * @param {Array} p The event parameters.
++         * @param {Object} o The object that has the state of the Carousel
++         * @protected
++         */
++        _animationCompleteHandler: function (ev, p, o) {
++            o.scope._isAnimationInProgress = false;
++            updateStateAfterScroll.call(o.scope, o.item, o.last);
++        },
++
++        /**
++         * Automatically scroll the contents of the Carousel.
++         * @method _autoScroll
++         * @protected
++         */
++        _autoScroll: function() {
++            var carousel  = this,
++                currIndex = carousel._firstItem,
++                index;
++
++            if (currIndex >= carousel.get("numItems") - 1) {
++                if (carousel.get("isCircular")) {
++                    index = 0;
++                } else {
++                    carousel.stopAutoPlay();
++                }
++            } else {
++                index = currIndex + carousel.get("numVisible");
++            }
++
++            carousel._selectedItem = carousel._getSelectedItem(index);
++            carousel.scrollTo.call(carousel, index);
++        },
++
++        /**
++         * Create the Carousel.
++         *
++         * @method createCarousel
++         * @param elId {String} The id of the element to be created
++         * @protected
++         */
++        _createCarousel: function (elId) {
++            var carousel = this,
++                cssClass = carousel.CLASSES,
++                el       = Dom.get(elId);
++
++            if (!el) {
++                el = createElement("DIV", {
++                        className : cssClass.CAROUSEL,
++                        id        : elId
++                });
++            }
++
++            if (!carousel._carouselEl) {
++                carousel._carouselEl=createElement(carousel.get("carouselEl"),
++                        { className: cssClass.CAROUSEL_EL });
++            }
++
++            return el;
++        },
++
++        /**
++         * Create the Carousel clip container.
++         *
++         * @method createCarouselClip
++         * @protected
++         */
++        _createCarouselClip: function () {
++            return createElement("DIV", { className: this.CLASSES.CONTENT });
++        },
++
++        /**
++         * Create the Carousel item.
++         *
++         * @method createCarouselItem
++         * @param obj {Object} The attributes of the element to be created
++         * @protected
++         */
++        _createCarouselItem: function (obj) {
++            var attr, carousel = this,
++                styles = getCarouselItemPosition.call(carousel, obj.pos);
++
++            return createElement(carousel.get("carouselItemEl"), {
++                    className : obj.className,
++                    styles    : obj.styles,
++                    content   : obj.content,
++                    id        : obj.id
++            });
++        },
++
++        /**
++         * Return a valid item for a possibly out of bounds index considering
++         * the isCircular property.
++         *
++         * @method _getValidIndex
++         * @param index {Number} The index of the item to be returned
++         * @return {Object} Return a valid item index
++         * @protected
++         */
++        _getValidIndex: function (index) {
++            var carousel   = this,
++                isCircular = carousel.get("isCircular"),
++                numItems   = carousel.get("numItems"),
++                numVisible = carousel.get("numVisible"),
++                sentinel   = numItems - 1;
++
++            if (index < 0) {
++                index = isCircular ?
++                        Math.ceil(numItems/numVisible)*numVisible + index : 0;
++            } else if (index > sentinel) {
++                index = isCircular ? 0 : sentinel;
++            }
++
++            return index;
++        },
++
++        /**
++         * Get the value for the selected item.
++         *
++         * @method _getSelectedItem
++         * @param val {Number} The new value for "selected" item
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _getSelectedItem: function (val) {
++            var carousel   = this,
++                isCircular = carousel.get("isCircular"),
++                numItems   = carousel.get("numItems"),
++                sentinel   = numItems - 1;
++
++            if (val < 0) {
++                if (isCircular) {
++                    val = numItems + val;
++                } else {
++                    val = carousel.get("selectedItem");
++                }
++            } else if (val > sentinel) {
++                if (isCircular) {
++                    val = val - numItems;
++                } else {
++                    val = carousel.get("selectedItem");
++                }
++            }
++            return val;
++        },
++
++        /**
++         * The "click" handler for the item.
++         *
++         * @method _itemClickHandler
++         * @param {Event} ev The event object
++         * @protected
++         */
++        _itemClickHandler: function (ev) {
++            var carousel     = this,
++                carouselItem = carousel.get("carouselItemEl"),
++                container    = carousel.get("element"),
++                el,
++                item,
++                target       = Event.getTarget(ev),
++                tag          = target.tagName.toUpperCase();
++
++            if(tag === "INPUT" ||
++               tag === "SELECT" ||
++               tag === "TEXTAREA") {
++                return;
++            }
++
++            while (target && target != container &&
++                   target.id != carousel._carouselEl) {
++                el = target.nodeName;
++                if (el.toUpperCase() == carouselItem) {
++                    break;
++                }
++                target = target.parentNode;
++            }
++
++            if ((item = carousel.getItemPositionById(target.id)) >= 0) {
++                carousel.set("selectedItem", carousel._getSelectedItem(item));
++                carousel.focus();
++            }
++        },
++
++        /**
++         * The keyboard event handler for Carousel.
++         *
++         * @method _keyboardEventHandler
++         * @param ev {Event} The event that is being handled.
++         * @protected
++         */
++        _keyboardEventHandler: function (ev) {
++            var carousel = this,
++                key      = Event.getCharCode(ev),
++                target   = Event.getTarget(ev),
++                prevent  = false;
++
++            // do not mess while animation is in progress or naving via select
++            if (carousel.isAnimating() || target.tagName.toUpperCase() === "SELECT") {
++                return;
++            }
++
++            switch (key) {
++            case 0x25:          // left arrow
++            case 0x26:          // up arrow
++                carousel.selectPreviousItem();
++                prevent = true;
++                break;
++            case 0x27:          // right arrow
++            case 0x28:          // down arrow
++                carousel.selectNextItem();
++                prevent = true;
++                break;
++            case 0x21:          // page-up
++                carousel.scrollPageBackward();
++                prevent = true;
++                break;
++            case 0x22:          // page-down
++                carousel.scrollPageForward();
++                prevent = true;
++                break;
++            }
++
++            if (prevent) {
++                if (carousel.isAutoPlayOn()) {
++                    carousel.stopAutoPlay();
++                }
++                Event.preventDefault(ev);
++            }
++        },
++
++        /**
++         * The load the required set of items that are needed for display.
++         *
++         * @method _loadItems
++         * @protected
++         */
++        _loadItems: function(last) {
++            var carousel    = this,
++                numItems    = carousel.get("numItems"),
++                numVisible  = carousel.get("numVisible"),
++                reveal      = carousel.get("revealAmount"),
++                first       = carousel._itemsTable.items.length,
++                lastVisible = carousel.get("lastVisible");
++
++            // adjust if going backwards
++            if(first > last && last+1 >= numVisible){
++                // need to get first a bit differently for the last page
++                first = last % numVisible || last == lastVisible ? last - last % numVisible : last - numVisible + 1;
++            }
++
++            if(reveal && last < numItems - 1){ last++; }
++
++            if (last >= first && (!carousel.getItem(first) || !carousel.getItem(last))) {
++                carousel.fireEvent(loadItemsEvent, {
++                        ev: loadItemsEvent, first: first, last: last,
++                        num: last - first + 1
++                });
++            }
++
++        },
++
++        /**
++         * The "onchange" handler for select box pagination.
++         *
++         * @method _pagerChangeHandler
++         * @param {Event} ev The event object
++         * @protected
++         */
++         _pagerChangeHandler: function (ev) {
++            var carousel = this,
++                target = Event.getTarget(ev),
++                 page = target.value,
++                 item;
++
++             if (page) {
++                 item = carousel.getFirstVisibleOnPage(page);
++                 carousel._selectedItem = item;
++                 carousel.scrollTo(item);
++                 carousel.focus();
++            }
++          },
++        /**
++         * The "click" handler for anchor pagination.
++         *
++         * @method _pagerClickHandler
++         * @param {Event} ev The event object
++         * @protected
++         */
++         _pagerClickHandler: function (ev) {
++             var carousel = this,
++                 css = carousel.CLASSES,
++                 target = Event.getTarget(ev),
++                 elNode = target.nodeName.toUpperCase(),
++                 val,
++                 stringIndex,
++                 page,
++                 item;
++
++             if (Dom.hasClass(target, css.PAGER_ITEM) || Dom.hasClass(target.parentNode, css.PAGER_ITEM))  {
++                 if (elNode == "EM") {
++                     target = target.parentNode;// item is an em and not an anchor (when text is visible)
++                 }
++                 val = target.href;
++                 stringIndex = val.lastIndexOf("#");
++                 page =  parseInt(val.substring(stringIndex+1), 10);
++                    if (page != -1) {
++                     item = carousel.getFirstVisibleOnPage(page);
++                     carousel._selectedItem = item;
++                     carousel.scrollTo(item);
++                            carousel.focus();
++                        }
++                        Event.preventDefault(ev);
++                    }
++        },
++
++        /**
++         * Find the Carousel within a container. The Carousel is identified by
++         * the first element that matches the carousel element tag or the
++         * element that has the Carousel class.
++         *
++         * @method parseCarousel
++         * @param parent {HTMLElement} The parent element to look under
++         * @return {Boolean} True if Carousel is found, false otherwise
++         * @protected
++         */
++        _parseCarousel: function (parent) {
++            var carousel = this, child, cssClass, domEl, found, node;
++
++            cssClass  = carousel.CLASSES;
++            domEl     = carousel.get("carouselEl");
++            found     = false;
++
++            for (child = parent.firstChild; child; child = child.nextSibling) {
++                if (child.nodeType == 1) {
++                    node = child.nodeName;
++                    if (node.toUpperCase() == domEl) {
++                        carousel._carouselEl = child;
++                        Dom.addClass(carousel._carouselEl,
++                                     carousel.CLASSES.CAROUSEL_EL);
++                        found = true;
++                    }
++                }
++            }
++
++            return found;
++        },
++
++        /**
++         * Find the items within the Carousel and add them to the items table.
++         * A Carousel item is identified by elements that matches the carousel
++         * item element tag.
++         *
++         * @method parseCarouselItems
++         * @protected
++         */
++        _parseCarouselItems: function () {
++            var carousel = this,
++                cssClass = carousel.CLASSES,
++                i=0,
++                rows,
++                child,
++                domItemEl,
++                elId,
++                node,
++                index = carousel.get("firstVisible"),
++                parent   = carousel._carouselEl;
++
++            rows = carousel._rows;
++            domItemEl = carousel.get("carouselItemEl");
++
++            for (child = parent.firstChild; child; child = child.nextSibling) {
++                if (child.nodeType == 1) {
++                    node = child.nodeName;
++                    if (node.toUpperCase() == domItemEl) {
++                        if (child.id) {
++                            elId = child.id;
++                        } else {
++                            elId = Dom.generateId();
++                            child.setAttribute("id", elId);
++                        }
++                        carousel.addItem(child,index);
++                        index++;
++                    }
++                }
++            }
++        },
++
++        /**
++         * Find the Carousel navigation within a container. The navigation
++         * elements need to match the carousel navigation class names.
++         *
++         * @method parseCarouselNavigation
++         * @param parent {HTMLElement} The parent element to look under
++         * @return {Boolean} True if at least one is found, false otherwise
++         * @protected
++         */
++        _parseCarouselNavigation: function (parent) {
++            var carousel = this,
++                cfg,
++                cssClass = carousel.CLASSES,
++                el,
++                i,
++                j,
++                nav,
++                rv       = false;
++
++            nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent);
++            if (nav.length > 0) {
++                for (i in nav) {
++                    if (nav.hasOwnProperty(i)) {
++                        el = nav[i];
++                        if (el.nodeName == "INPUT" ||
++                            el.nodeName == "BUTTON" ||
++                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
++                            carousel._navBtns.prev.push(el);
++                        } else {
++                            j = el.getElementsByTagName("INPUT");
++                            if (JS.isArray(j) && j.length > 0) {
++                                carousel._navBtns.prev.push(j[0]);
++                            } else {
++                                j = el.getElementsByTagName("BUTTON");
++                                if (JS.isArray(j) && j.length > 0) {
++                                    carousel._navBtns.prev.push(j[0]);
++                                }
++                            }
++                        }
++                    }
++                }
++                cfg = { prev: nav };
++            }
++
++            nav = Dom.getElementsByClassName(cssClass.NEXT_PAGE, "*", parent);
++            if (nav.length > 0) {
++                for (i in nav) {
++                    if (nav.hasOwnProperty(i)) {
++                        el = nav[i];
++                        if (el.nodeName == "INPUT" ||
++                            el.nodeName == "BUTTON" ||
++                            el.nodeName == "A") {// Anchor support in Nav (for SEO)
++                            carousel._navBtns.next.push(el);
++                        } else {
++                            j = el.getElementsByTagName("INPUT");
++                            if (JS.isArray(j) && j.length > 0) {
++                                carousel._navBtns.next.push(j[0]);
++                            } else {
++                                j = el.getElementsByTagName("BUTTON");
++                                if (JS.isArray(j) && j.length > 0) {
++                                    carousel._navBtns.next.push(j[0]);
++                                }
++                            }
++                        }
++                    }
++                }
++                if (cfg) {
++                    cfg.next = nav;
++                } else {
++                    cfg = { next: nav };
++                }
++            }
++
++            if (cfg) {
++                carousel.set("navigation", cfg);
++                rv = true;
++            }
++
++            return rv;
++        },
++
++        /**
++         * Refresh the widget UI if it is not already rendered, on first item
++         * addition.
++         *
++         * @method _refreshUi
++         * @protected
++         */
++        _refreshUi: function () {
++            var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz;
++
++            if (carousel._itemsTable.numItems < 1) {
++                return;
++            }
++
++            sz  = getCarouselItemSize.call(carousel,
++                    isVertical ? "height" : "width");
++            // This fixes the widget to auto-adjust height/width for absolute
++            // positioned children.
++            item = carousel._itemsTable.items[firstVisible].id;
++
++            sz   = isVertical ? getStyle(item, "width") :
++                    getStyle(item, "height");
++
++            Dom.setStyle(carousel._carouselEl,
++                         isVertical ? "width" : "height", sz + "px");
++
++            // Set the rendered state appropriately.
++            carousel._hasRendered = true;
++            carousel.fireEvent(renderEvent);
++        },
++
++        /**
++         * Set the Carousel offset to the passed offset.
++         *
++         * @method _setCarouselOffset
++         * @protected
++         */
++        _setCarouselOffset: function (offset) {
++            var carousel = this, which;
++
++            which = carousel.get("isVertical") ? "top" : "left";
++            Dom.setStyle(carousel._carouselEl, which, offset + "px");
++        },
++
++        /**
++         * Setup/Create the Carousel navigation element (if needed).
++         *
++         * @method _setupCarouselNavigation
++         * @protected
++         */
++        _setupCarouselNavigation: function () {
++            var carousel = this,
++                btn, cfg, cssClass, nav, navContainer, nextButton, prevButton;
++
++            cssClass = carousel.CLASSES;
++
++            // TODO: can the _navBtns be tested against instead?
++            navContainer = Dom.getElementsByClassName(cssClass.NAVIGATION,
++                    "DIV", carousel.get("element"));
++
++            if (navContainer.length === 0) {
++                navContainer = createElement("DIV",
++                        { className: cssClass.NAVIGATION });
++                carousel.insertBefore(navContainer,
++                        Dom.getFirstChild(carousel.get("element")));
++            } else {
++                navContainer = navContainer[0];
++            }
++
++            carousel._pages.el = createElement("UL");
++            navContainer.appendChild(carousel._pages.el);
++
++            nav = carousel.get("navigation");
++            if (JS.isString(nav.prev) || JS.isArray(nav.prev)) {
++                if (JS.isString(nav.prev)) {
++                    nav.prev = [nav.prev];
++                }
++                for (btn in nav.prev) {
++                    if (nav.prev.hasOwnProperty(btn)) {
++                        carousel._navBtns.prev.push(Dom.get(nav.prev[btn]));
++                    }
++                }
++            } else {
++                // TODO: separate method for creating a navigation button
++                prevButton = createElement("SPAN",
++                        { className: cssClass.BUTTON + cssClass.FIRST_NAV });
++                // XXX: for IE 6.x
++                Dom.setStyle(prevButton, "visibility", "visible");
++                btn = Dom.generateId();
++                prevButton.innerHTML = "<button type=\"button\" "      +
++                        "id=\"" + btn + "\" name=\""                   +
++                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "\">"  +
++                        carousel.STRINGS.PREVIOUS_BUTTON_TEXT + "</button>";
++                navContainer.appendChild(prevButton);
++                btn = Dom.get(btn);
++                carousel._navBtns.prev = [btn];
++                cfg = { prev: [prevButton] };
++            }
++
++            if (JS.isString(nav.next) || JS.isArray(nav.next)) {
++                if (JS.isString(nav.next)) {
++                    nav.next = [nav.next];
++                }
++                for (btn in nav.next) {
++                    if (nav.next.hasOwnProperty(btn)) {
++                        carousel._navBtns.next.push(Dom.get(nav.next[btn]));
++                    }
++                }
++            } else {
++                // TODO: separate method for creating a navigation button
++                nextButton = createElement("SPAN",
++                        { className: cssClass.BUTTON + cssClass.NEXT_NAV });
++                // XXX: for IE 6.x
++                Dom.setStyle(nextButton, "visibility", "visible");
++                btn = Dom.generateId();
++                nextButton.innerHTML = "<button type=\"button\" "      +
++                        "id=\"" + btn + "\" name=\""                   +
++                        carousel.STRINGS.NEXT_BUTTON_TEXT + "\">"      +
++                        carousel.STRINGS.NEXT_BUTTON_TEXT + "</button>";
++                navContainer.appendChild(nextButton);
++                btn = Dom.get(btn);
++                carousel._navBtns.next = [btn];
++                if (cfg) {
++                    cfg.next = [nextButton];
++                } else {
++                    cfg = { next: [nextButton] };
++                }
++            }
++
++            if (cfg) {
++                carousel.set("navigation", cfg);
++            }
++
++            return navContainer;
++        },
++
++        /**
++         * Set the clip container size (based on the new numVisible value).
++         *
++         * @method _setClipContainerSize
++         * @param clip {HTMLElement} The clip container element.
++         * @param num {Number} optional The number of items per page.
++         * @protected
++         */
++        _setClipContainerSize: function (clip, num) {
++            var carousel   = this,
++                isVertical = carousel.get("isVertical"),
++                rows       = carousel._rows,
++                cols       = carousel._cols,
++                reveal     = carousel.get("revealAmount"),
++                itemHeight = getCarouselItemSize.call(carousel, "height"),
++                itemWidth  = getCarouselItemSize.call(carousel, "width"),
++                containerHeight,
++                containerWidth;
++
++            clip = clip || carousel._clipEl;
++
++            if (rows) {
++                 containerHeight = itemHeight * rows;
++                 containerWidth  = itemWidth  * cols;
++            } else {
++                num = num || carousel.get("numVisible");
++                if (isVertical) {
++                    containerHeight = itemHeight * num;
++                } else {
++                    containerWidth  = itemWidth  * num;
++                }
++            }
++
++            // TODO: try to re-use the _hasRendered indicator
++
++            carousel._recomputeSize = (containerHeight === 0); // bleh!
++            if (carousel._recomputeSize) {
++                carousel._hasRendered = false;
++                return;             // no use going further, bail out!
++            }
++
++            reveal = getRevealSize.call(carousel);
++            if (isVertical) {
++                containerHeight += (reveal * 2);
++            } else {
++                containerWidth  += (reveal * 2);
++            }
++
++            if (isVertical) {
++                containerHeight += getDimensions(carousel._carouselEl,"height");
++                Dom.setStyle(clip, "height", containerHeight + "px");
++                // For multi-row Carousel
++                if (cols) {
++                    containerWidth += getDimensions(carousel._carouselEl,
++                            "width");
++                    Dom.setStyle(clip, "width", containerWidth + (0) + "px");
++                }
++            } else {
++                containerWidth += getDimensions(carousel._carouselEl, "width");
++                Dom.setStyle(clip, "width", containerWidth + "px");
++                // For multi-row Carousel
++                if (rows) {
++                    containerHeight += getDimensions(carousel._carouselEl,
++                            "height");
++                    Dom.setStyle(clip, "height", containerHeight + "px");
++                }
++            }
++
++            carousel._setContainerSize(clip); // adjust the container size too
++        },
++
++        /**
++         * Set the container size.
++         *
++         * @method _setContainerSize
++         * @param clip {HTMLElement} The clip container element.
++         * @param attr {String} Either set the height or width.
++         * @protected
++         */
++        _setContainerSize: function (clip, attr) {
++            var carousel = this,
++                config   = carousel.CONFIG,
++                cssClass = carousel.CLASSES,
++                isVertical,
++                rows,
++                cols,
++                size;
++
++            isVertical = carousel.get("isVertical");
++            rows       = carousel._rows;
++            cols       = carousel._cols;
++            clip       = clip || carousel._clipEl;
++            attr       = attr || (isVertical ? "height" : "width");
++            size       = parseFloat(Dom.getStyle(clip, attr), 10);
++
++            size = JS.isNumber(size) ? size : 0;
++
++            if (isVertical) {
++                size += getDimensions(carousel._carouselEl, "height") +
++                        getStyle(carousel._navEl, "height");
++            } else {
++                size += getDimensions(carousel._carouselEl, "width");
++            }
++
++            if (!isVertical) {
++                if (size < config.HORZ_MIN_WIDTH) {
++                    size = config.HORZ_MIN_WIDTH;
++                    carousel.addClass(cssClass.MIN_WIDTH);
++                }
++            }
++            carousel.setStyle(attr,  size + "px");
++
++            // Additionally the width of the container should be set for
++            // the vertical Carousel
++            if (isVertical) {
++                size = getCarouselItemSize.call(carousel, "width");
++                if(cols) {
++                    size = size * cols;
++                }
++                Dom.setStyle(carousel._carouselEl, "width", size + "px");// Bug fix for vertical carousel (goes in conjunction with .yui-carousel-element {... 3200px removed from styles), and allows for multirows in IEs).
++                if (size < config.VERT_MIN_WIDTH) {
++                    size = config.VERT_MIN_WIDTH;
++                    carousel.addClass(cssClass.MIN_WIDTH);// set a min width on vertical carousel, don't see why this shouldn't always be set...
++                }
++                carousel.setStyle("width",  size + "px");
++            } else {
++                if(rows) {
++                    size = getCarouselItemSize.call(carousel, "height");
++                    size = size * rows;
++                    Dom.setStyle(carousel._carouselEl, "height", size + "px");
++                }
++            }
++        },
++
++        /**
++         * Set the value for the Carousel's first visible item.
++         *
++         * @method _setFirstVisible
++         * @param val {Number} The new value for firstVisible
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setFirstVisible: function (val) {
++            var carousel = this;
++
++            if (val >= 0 && val < carousel.get("numItems")) {
++                carousel.scrollTo(val);
++            } else {
++                val = carousel.get("firstVisible");
++            }
++            return val;
++        },
++
++        /**
++         * Set the value for the Carousel's navigation.
++         *
++         * @method _setNavigation
++         * @param cfg {Object} The navigation configuration
++         * @return {Object} The new value that would be set
++         * @protected
++         */
++        _setNavigation: function (cfg) {
++            var carousel = this;
++
++            if (cfg.prev) {
++                Event.on(cfg.prev, "click", scrollPageBackward, carousel);
++            }
++            if (cfg.next) {
++                Event.on(cfg.next, "click", scrollPageForward, carousel);
++            }
++        },
++
++        /**
++         * Clip the container size every time numVisible is set.
++         *
++         * @method _setNumVisible
++         * @param val {Number} The new value for numVisible
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setNumVisible: function (val) { // TODO: _setNumVisible should just be reserved for setting numVisible.
++            var carousel = this;
++
++            carousel._setClipContainerSize(carousel._clipEl, val);
++        },
++
++        /**
++         * Set the value for the number of visible items in the Carousel.
++         *
++         * @method _numVisibleSetter
++         * @param val {Number} The new value for numVisible
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _numVisibleSetter: function (val) {
++            var carousel = this,
++                numVisible = val;
++
++            if(JS.isArray(val)) {
++                carousel._cols = val[0];
++                carousel._rows = val[1];
++                numVisible = val[0] *  val[1];
++            }
++            return numVisible;
++        },
++
++        /**
++         * Set the value for selectedItem.
++         *
++         * @method _selectedItemSetter
++         * @param val {Number} The new value for selectedItem
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _selectedItemSetter: function (val) {
++            var carousel = this;
++            return (val < carousel.get("numItems")) ? val : 0;
++        },
++
++        /**
++         * Set the number of items in the Carousel.
++         * Warning: Setting this to a lower number than the current removes
++         * items from the end.
++         *
++         * @method _setNumItems
++         * @param val {Number} The new value for numItems
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setNumItems: function (val) {
++            var carousel = this,
++                num      = carousel._itemsTable.numItems;
++
++            if (JS.isArray(carousel._itemsTable.items)) {
++                if (carousel._itemsTable.items.length != num) { // out of sync
++                    num = carousel._itemsTable.items.length;
++                    carousel._itemsTable.numItems = num;
++                }
++            }
++
++            if (val < num) {
++                while (num > val) {
++                    carousel.removeItem(num - 1);
++                    num--;
++                }
++            }
++
++            return val;
++        },
++
++        /**
++         * Set the orientation of the Carousel.
++         *
++         * @method _setOrientation
++         * @param val {Boolean} The new value for isVertical
++         * @return {Boolean} The new value that would be set
++         * @protected
++         */
++        _setOrientation: function (val) {
++            var carousel = this,
++                cssClass = carousel.CLASSES;
++
++            if (val) {
++                carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL);
++            } else {
++                carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL);
++            }
++            this._itemAttrCache = {}; // force recomputed next time
++
++            return val;
++        },
++
++        /**
++         * Set the value for the reveal amount percentage in the Carousel.
++         *
++         * @method _setRevealAmount
++         * @param val {Number} The new value for revealAmount
++         * @return {Number} The new value that would be set
++         * @protected
++         */
++        _setRevealAmount: function (val) {
++            var carousel = this;
++
++            if (val >= 0 && val <= 100) {
++                val = parseInt(val, 10);
++                val = JS.isNumber(val) ? val : 0;
++                carousel._setClipContainerSize();
++            } else {
++                val = carousel.get("revealAmount");
++            }
++            return val;
++        },
++
++        /**
++         * Set the value for the selected item.
++         *
++         * @method _setSelectedItem
++         * @param val {Number} The new value for "selected" item
++         * @protected
++         */
++        _setSelectedItem: function (val) {
++            this._selectedItem = val;
++        },
++
++        /**
++         * Get the total number of pages.
++         *
++         * @method _getNumPages
++         * @protected
++         */
++        _getNumPages: function () {
++            return Math.ceil(
++                parseInt(this.get("numItems"),10) / parseInt(this.get("numVisible"),10)
++            );
++        },
++
++        /**
++         * Get the index of the last visible item
++         *
++         * @method _getLastVisible
++         * @protected
++         */
++        _getLastVisible: function () {
++            var carousel = this;
++            return carousel.get("currentPage") + 1 == carousel.get("numPages") ?
++                   carousel.get("numItems") - 1:
++                   carousel.get("firstVisible") + carousel.get("numVisible") - 1;
++        },
++
++        /**
++         * Synchronize and redraw the UI after an item is added.
++         *
++         * @method _syncUiForItemAdd
++         * @protected
++         */
++        _syncUiForItemAdd: function (obj) {
++            var attr,
++                carousel   = this,
++                carouselEl = carousel._carouselEl,
++                el,
++                item,
++                itemsTable = carousel._itemsTable,
++                oel,
++                pos,
++                sibling,
++                styles;
++
++            pos  = JS.isUndefined(obj.pos) ?
++                   obj.newPos || itemsTable.numItems - 1 : obj.pos;
++
++            if (!oel) {
++                item = itemsTable.items[pos] || {};
++                el = carousel._createCarouselItem({
++                        className : item.className,
++                        styles    : item.styles,
++                        content   : item.item,
++                        id        : item.id,
++                        pos       : pos
++                });
++                if (JS.isUndefined(obj.pos)) {
++                    if (!JS.isUndefined(itemsTable.loading[pos])) {
++                        oel = itemsTable.loading[pos];
++                        // if oel is null, it is a problem ...
++                    }
++                    if (oel) {
++                        // replace the node
++                        carouselEl.replaceChild(el, oel);
++                        // ... and remove the item from the data structure
++                        delete itemsTable.loading[pos];
++                    } else {
++                        carouselEl.appendChild(el);
++                    }
++                } else {
++                    if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
++                        sibling = Dom.get(itemsTable.items[obj.pos + 1].id);
++                    }
++                    if (sibling) {
++                        carouselEl.insertBefore(el, sibling);
++                    } else {
++                    }
++                }
++            } else {
++                if (JS.isUndefined(obj.pos)) {
++                    if (!Dom.isAncestor(carousel._carouselEl, oel)) {
++                        carouselEl.appendChild(oel);
++                    }
++                } else {
++                    if (!Dom.isAncestor(carouselEl, oel)) {
++                        if (!JS.isUndefined(itemsTable.items[obj.pos + 1])) {
++                            carouselEl.insertBefore(oel,
++                                    Dom.get(itemsTable.items[obj.pos + 1].id));
++                        }
++                    }
++                }
++            }
++
++            if (!carousel._hasRendered) {
++                carousel._refreshUi();
++            }
++
++            if (carousel.get("selectedItem") < 0) {
++                carousel.set("selectedItem", carousel.get("firstVisible"));
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Synchronize and redraw the UI after an item is replaced.
++         *
++         * @method _syncUiForItemReplace
++         * @protected
++         */
++        _syncUiForItemReplace: function (o) {
++            var carousel   = this,
++                carouselEl = carousel._carouselEl,
++                itemsTable = carousel._itemsTable,
++                pos        = o.pos,
++                item       = o.newItem,
++                oel        = o.oldItem,
++                el;
++
++            el = carousel._createCarouselItem({
++                className : item.className,
++                styles    : item.styles,
++                content   : item.item,
++                id        : item.id,
++                pos       : pos
++            });
++
++            if(el && oel) {
++                Event.purgeElement(oel, true);
++                carouselEl.replaceChild(el, Dom.get(oel.id));
++                if (!JS.isUndefined(itemsTable.loading[pos])) {
++                    itemsTable.numItems++;
++                    delete itemsTable.loading[pos];
++                }
++            }
++            // TODO: should we add the item if oel is undefined?
++
++            if (!carousel._hasRendered) {
++                carousel._refreshUi();
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Synchronize and redraw the UI after an item is removed.
++         *
++         * @method _syncUiForItemAdd
++         * @protected
++         */
++        _syncUiForItemRemove: function (obj) {
++            var carousel   = this,
++                carouselEl = carousel._carouselEl,
++                el, item, num, pos;
++
++            num  = carousel.get("numItems");
++            item = obj.item;
++            pos  = obj.pos;
++
++            if (item && (el = Dom.get(item.id))) {
++                if (el && Dom.isAncestor(carouselEl, el)) {
++                    Event.purgeElement(el, true);
++                    carouselEl.removeChild(el);
++                }
++
++                if (carousel.get("selectedItem") == pos) {
++                    pos = pos >= num ? num - 1 : pos;
++                }
++            } else {
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Synchronize and redraw the UI for lazy loading.
++         *
++         * @method _syncUiForLazyLoading
++         * @protected
++         */
++        _syncUiForLazyLoading: function (obj) {
++            var carousel   = this,
++                carouselEl = carousel._carouselEl,
++                itemsTable = carousel._itemsTable,
++                len = itemsTable.items.length,
++                sibling = itemsTable.items[obj.last + 1],
++                el,
++                j;
++
++            // attempt to find the next closest sibling
++            if(!sibling && obj.last < len){
++                j = obj.first;
++                do {
++                    sibling = itemsTable.items[j];
++                    j++;
++                } while (j<len && !sibling);
++            }
++
++            for (var i = obj.first; i <= obj.last; i++) {
++                if(JS.isUndefined(itemsTable.loading[i]) && JS.isUndefined(itemsTable.items[i])){
++                    el = carousel._createCarouselItem({
++                            className : carousel.CLASSES.ITEM_LOADING,
++                            content   : carousel.STRINGS.ITEM_LOADING_CONTENT,
++                            id        : Dom.generateId(),
++                            pos       : i
++                    });
++                    if (el) {
++                        if (sibling) {
++                            sibling = Dom.get(sibling.id);
++                            if (sibling) {
++                                carouselEl.insertBefore(el, sibling);
++                            } else {
++                            }
++                        } else {
++                            carouselEl.appendChild(el);
++                        }
++                    }
++                    itemsTable.loading[i] = el;
++                }
++            }
++
++            carousel._syncUiItems();
++        },
++
++        /**
++         * Redraw the UI for item positioning.
++         *
++         * @method _syncUiItems
++         * @protected
++         */
++        _syncUiItems: function () {
++            var attr,
++                carousel = this,
++                numItems = carousel.get("numItems"),
++                i,
++                itemsTable = carousel._itemsTable,
++                items = itemsTable.items,
++                loading = itemsTable.loading,
++                item,
++                styles;
++
++            for (i = 0; i < numItems; i++) {
++                item = items[i] || loading[i];
++
++                if (item && item.id) {
++                    styles = getCarouselItemPosition.call(carousel, i);
++                    item.styles = item.styles || {};
++                    for (attr in styles) {
++                        if (styles.hasOwnProperty(attr)) {
++                            item.styles[attr] = styles[attr];
++                        }
++                    }
++                    setStyles(Dom.get(item.id), styles);
++                }
++            }
++        },
++
++        /**
++         * Set the correct class for the navigation buttons.
++         *
++         * @method _updateNavButtons
++         * @param el {Object} The target button
++         * @param setFocus {Boolean} True to set focus ring, false otherwise.
++         * @protected
++         */
++        _updateNavButtons: function (el, setFocus) {
++            var children,
++                cssClass = this.CLASSES,
++                grandParent,
++                parent   = el.parentNode;
++
++            if (!parent) {
++                return;
++            }
++            grandParent = parent.parentNode;
++
++            if (el.nodeName.toUpperCase() == "BUTTON" &&
++                Dom.hasClass(parent, cssClass.BUTTON)) {
++                if (setFocus) {
++                    if (grandParent) {
++                        children = Dom.getChildren(grandParent);
++                        if (children) {
++                            Dom.removeClass(children, cssClass.FOCUSSED_BUTTON);
++                        }
++                    }
++                    Dom.addClass(parent, cssClass.FOCUSSED_BUTTON);
++                } else {
++                    Dom.removeClass(parent, cssClass.FOCUSSED_BUTTON);
++                }
++            }
++        },
++
++        /**
++         * Update the UI for the pager buttons based on the current page and
++         * the number of pages.
++         *
++         * @method _updatePagerButtons
++         * @protected
++         */
++         _updatePagerButtons: function () {
++             var carousel = this,
++                 css      = carousel.CLASSES,
++                 cur      = carousel._pages.cur, // current page
++                 el,
++                 html,
++                 i,
++                 item,
++                 n        = carousel.get("numVisible"),
++                 num      = carousel._pages.num, // total pages
++                 pager    = carousel._pages.el;  // the pager container element
++
++             if (num === 0 || !pager) {
++                 return;         // don't do anything if number of pages is 0
++             }
++
++             // Hide the pager before redrawing it
++             Dom.setStyle(pager, "visibility", "hidden");
++
++             // Remove all nodes from the pager
++             while (pager.firstChild) {
++                 pager.removeChild(pager.firstChild);
++             }
++
++             for (i = 0; i < num; i++) {
++
++                 el   = document.createElement("LI");
++
++                 if (i === 0) {
++                     Dom.addClass(el, css.FIRST_PAGE);
++                 }
++                 if (i == cur) {
++                     Dom.addClass(el, css.SELECTED_NAV);
++                 }
++
++                 html = "<a class=" + css.PAGER_ITEM + " href=\"#" + (i+1) + "\" tabindex=\"0\"><em>"   +
++                         carousel.STRINGS.PAGER_PREFIX_TEXT + " " + (i+1) +
++                         "</em></a>";
++                 el.innerHTML = html;
++
++                 pager.appendChild(el);
++             }
++
++             // Show the pager now
++             Dom.setStyle(pager, "visibility", "visible");
++         },
++
++        /**
++         * Update the UI for the pager menu based on the current page and
++         * the number of pages.  If the number of pages is greater than
++         * MAX_PAGER_BUTTONS, then the selection of pages is provided by a drop
++         * down menu instead of a set of buttons.
++         *
++         * @method _updatePagerMenu
++         * @protected
++         */
++        _updatePagerMenu: function () {
++            var carousel = this,
++                css      = carousel.CLASSES,
++                cur      = carousel._pages.cur, // current page
++                el,
++                i,
++                item,
++                n        = carousel.get("numVisible"),
++                num      = carousel._pages.num, // total pages
++                pager    = carousel._pages.el,  // the pager container element
++                sel;
++
++            if (num === 0) {
++                return;// don't do anything if number of pages is 0
++            }
++
++            sel = document.createElement("SELECT");
++
++
++            if (!sel) {
++                return;
++            }
++
++            // Hide the pager before redrawing it
++            Dom.setStyle(pager, "visibility", "hidden");
++
++            // Remove all nodes from the pager
++            while (pager.firstChild) {
++                pager.removeChild(pager.firstChild);
++            }
++
++            for (i = 0; i < num; i++) {
++
++                el   = document.createElement("OPTION");
++                el.value     = i+1;
++                el.innerHTML = carousel.STRINGS.PAGER_PREFIX_TEXT+" "+(i+1);
++
++                if (i == cur) {
++                    el.setAttribute("selected", "selected");
++                }
++
++                sel.appendChild(el);
++            }
++
++            el = document.createElement("FORM");
++            if (!el) {
++            } else {
++                el.appendChild(sel);
++                pager.appendChild(el);
++            }
++
++            // Show the pager now
++            Event.addListener(sel, "change", carousel._pagerChangeHandler, this, true);
++            Dom.setStyle(pager, "visibility", "visible");
++        },
++
++        /**
++         * Set the correct tab index for the Carousel items.
++         *
++         * @method _updateTabIndex
++         * @param el {Object} The element to be focussed
++         * @protected
++         */
++        _updateTabIndex: function (el) {
++            var carousel = this;
++
++            if (el) {
++                if (carousel._focusableItemEl) {
++                    carousel._focusableItemEl.tabIndex = -1;
++                }
++                carousel._focusableItemEl = el;
++                el.tabIndex = 0;
++            }
++        },
++
++        /**
++         * Validate animation parameters.
++         *
++         * @method _validateAnimation
++         * @param cfg {Object} The animation configuration
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateAnimation: function (cfg) {
++            var rv = true;
++
++            if (JS.isObject(cfg)) {
++                if (cfg.speed) {
++                    rv = rv && JS.isNumber(cfg.speed);
++                }
++                if (cfg.effect) {
++                    rv = rv && JS.isFunction(cfg.effect);
++                } else if (!JS.isUndefined(YAHOO.util.Easing)) {
++                    cfg.effect = YAHOO.util.Easing.easeOut;
++                }
++            } else {
++                rv = false;
++            }
++
++            return rv;
++        },
++
++        /**
++         * Validate the firstVisible value.
++         *
++         * @method _validateFirstVisible
++         * @param val {Number} The first visible value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateFirstVisible: function (val) {
++            var carousel = this, numItems = carousel.get("numItems");
++
++            if (JS.isNumber(val)) {
++                if (numItems === 0 && val == numItems) {
++                    return true;
++                } else {
++                    return (val >= 0 && val < numItems);
++                }
++            }
++
++            return false;
++        },
++
++        /**
++         * Validate and navigation parameters.
++         *
++         * @method _validateNavigation
++         * @param cfg {Object} The navigation configuration
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateNavigation : function (cfg) {
++            var i;
++
++            if (!JS.isObject(cfg)) {
++                return false;
++            }
++
++            if (cfg.prev) {
++                if (!JS.isArray(cfg.prev)) {
++                    return false;
++                }
++                for (i in cfg.prev) {
++                    if (cfg.prev.hasOwnProperty(i)) {
++                        if (!JS.isString(cfg.prev[i].nodeName)) {
++                            return false;
++                        }
++                    }
++                }
++            }
++
++            if (cfg.next) {
++                if (!JS.isArray(cfg.next)) {
++                    return false;
++                }
++                for (i in cfg.next) {
++                    if (cfg.next.hasOwnProperty(i)) {
++                        if (!JS.isString(cfg.next[i].nodeName)) {
++                            return false;
++                        }
++                    }
++                }
++            }
++
++            return true;
++        },
++
++        /**
++         * Validate the numItems value.
++         *
++         * @method _validateNumItems
++         * @param val {Number} The numItems value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateNumItems: function (val) {
++            return JS.isNumber(val) && (val >= 0);
++        },
++
++        /**
++         * Validate the numVisible value.
++         *
++         * @method _validateNumVisible
++         * @param val {Number} The numVisible value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateNumVisible: function (val) {
++            var rv = false;
++
++            if (JS.isNumber(val)) {
++                rv = val > 0 && val <= this.get("numItems");
++            } else if (JS.isArray(val)) {
++                if (JS.isNumber(val[0]) && JS.isNumber(val[1])) {
++                    rv = val[0] * val[1] > 0 && val.length == 2;
++                }
++            }
++
++            return rv;
++        },
++
++        /**
++         * Validate the revealAmount value.
++         *
++         * @method _validateRevealAmount
++         * @param val {Number} The revealAmount value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateRevealAmount: function (val) {
++            var rv = false;
++
++            if (JS.isNumber(val)) {
++                rv = val >= 0 && val < 100;
++            }
++
++            return rv;
++        },
++
++        /**
++         * Validate the scrollIncrement value.
++         *
++         * @method _validateScrollIncrement
++         * @param val {Number} The scrollIncrement value
++         * @return {Boolean} The status of the validation
++         * @protected
++         */
++        _validateScrollIncrement: function (val) {
++            var rv = false;
++
++            if (JS.isNumber(val)) {
++                rv = (val > 0 && val < this.get("numItems"));
++            }
++
++            return rv;
++        }
++
++    });
++
++})();
++/*
++;;  Local variables: **
++;;  mode: js2 **
++;;  indent-tabs-mode: nil **
++;;  End: **
++*/
++YAHOO.register("carousel", YAHOO.widget.Carousel, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/charts/assets/charts.swf b/pylons_app/public/js/yui/charts/assets/charts.swf
+new file mode 100644
+index 0000000000000000000000000000000000000000..e8c1e53318b43d3368ae09a33f2445c61e3b568e
+GIT binary patch
+literal 81768
+zc$@%FK(N0<S5pe?ngRfL+N6C4d>cjfzjn3S(XN_XY{d>ip@o)44({-A@KbCh5xAW#
+z6LLT9bc!uI0$K7&vJ=DI?-zRSy@%d=@4Z9laKLf&dh~W2aOD4eGrOx*am@Yx^5;!?
+z^JeBvd-JC3c(p@$%i-`}<ZuKfM|<sbhr{u|^^Z#q$4<Gyq1N8^#i7+B=}f*AzTeDV
+zStyLQ&YQPt)vCFx7S7G)hUYEVamO9!&EIa`cH7MX#hm;^rjS@YCzIcF_Rc(k_GEq_
+zml`dkvY8P16DzV~h2PAcZKOIlU?n;_mP_*_2M6XQ)5(!!rjVbvVD17WG&s;Yl+BGK
+z3Ogr8N7Jc+1SL0b^_=|5?7-fu6647^L+M0*<xca8gcPTcDx{M;hX=DOlA*=v<m%AE
+zP`DVMQwtIz9xO7tv#pp3iamEAJ2G!HmmM4%08c|mibu9bp(IAfR-{w;mC4-BW0}1(
+z*;OKoB9>?da>+y?TS{T#C_J6W438y-lRHPcc$nqqJSGY#&)9HiyI*b_+HU^*9R(YN
+z-DzG~Z5tRg;LeWrnh%^iIojm)>(~EIccO(=fYbSPorC|@%k%!QDO&tty=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mVhCf=oR9Ed-yM*LZTc%DT3&m#-dfcSGew9$Bqn6QLCOgt_l0`U&3SSic|RG%G~
+zJG{e!5u-3X6XD58-{##tjQ@5E|0n(rB1NYoe{wjj0OhX=E&uah{-DsrR{mcgxKjtA
+C5s1P7
+
+diff --git a/pylons_app/public/js/yui/charts/charts-debug.js b/pylons_app/public/js/yui/charts/charts-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/charts/charts-debug.js
+@@ -0,0 +1,2061 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Charts widget provides a Flash control for displaying data
++ * graphically by series across A-grade browsers with Flash Player installed.
++ *
++ * @module charts
++ * @requires yahoo, dom, event, datasource
++ * @title Charts Widget
++ * @experimental
++ */
++ 
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Chart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class Chart
++ * @uses YAHOO.util.AttributeProvider
++ * @constructor
++ * @param type {String} The char type. May be "line", "column", "bar", or "pie"
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.Chart = function(type, containerId, dataSource, configurationAttributes)
++{
++	this._type = type;
++	this._dataSource = dataSource;
++		
++	var possibleParams = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
++	var attributes = {fixedAttributes:{allowScriptAccess:"always"}, flashVars:{allowedDomain : document.location.hostname}, backgroundColor:"#ffffff", host:this, version:9.045};
++	
++	for(var i in configurationAttributes)
++	{
++		if(possibleParams.hasOwnProperty(i))
++		{
++			attributes.fixedAttributes[i] = configurationAttributes[i];
++		}
++		else
++		{
++			attributes[i] = configurationAttributes[i];
++		}
++	}
++	
++	this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
++	
++	if(attributes.version && attributes.version != null && attributes.version != undefined && attributes.version != "undefined")
++	{ 
++		var version = (/\w*.\w*/.exec(((attributes.version).toString()).replace(/.0./g, "."))).toString();
++		var verSplit = version.split(".");
++		version = verSplit[0] + ".";
++		switch((verSplit[1].toString()).length)
++		{
++			case 1: 
++				version += "00";
++			break;
++			case 2:
++				version += "0";
++			break;	
++		} 
++		version += verSplit[1];
++		attributes.version = parseFloat(version); 
++	}
++	
++	this._swfURL = YAHOO.widget.Chart.SWFURL;
++	this._containerID = containerId;
++	
++	this._attributes = attributes
++	this._swfEmbed = new YAHOO.widget.SWF(containerId, YAHOO.widget.Chart.SWFURL, attributes);
++	
++	this._swf = this._swfEmbed.swf;
++	this._swfEmbed.subscribe("swfReady", this._eventHandler, this, true);
++			
++	/**
++	 * Fires when the SWF is initialized and communication is possible.
++	 * @event contentReady
++	 */
++	//Fix for iframe cross-domain issue with FF2x 
++	try
++	{
++		this.createEvent("contentReady");
++	}
++	catch(e){}
++	
++	/**
++	 * Fires when the user moves the mouse over the bounds of an item renderer in the chart.
++	 *
++	 * @event itemMouseOverEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemMouseOverEvent");
++	
++	/**
++	 * Fires when the user moves the mouse out of the bounds of an item renderer in the chart.
++	 *
++	 * @event itemMouseOutEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemMouseOutEvent");
++	
++	/**
++	 * Fires when the user clicks an item renderer in the chart with the mouse.
++	 *
++	 * @event itemClickEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemClickEvent");
++	
++	/**
++	 * Fires when the user double-clicks an item renderer in the chart with the mouse.
++	 *
++	 * @event itemDoubleClickEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDoubleClickEvent");
++	
++	/**
++	 * Fires when the user presses the mouse down on an item to initiate a drag action.
++	 *
++	 * @event itemDragStartEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDragStartEvent");
++	
++	/**
++	 * Fires when the user moves the mouse during a drag action.
++	 *
++	 * @event itemDragEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDragEvent");
++
++	/**
++	 * Fires when the user releases the mouse during a drag action.
++	 *
++	 * @event itemDragEndEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDragEndEvent");
++};
++
++YAHOO.extend(YAHOO.widget.Chart, YAHOO.util.AttributeProvider,
++{
++	/**
++	 * The type of this chart instance.
++	 * @property _type
++	 * @type String
++	 * @private
++	 */
++	_type: null,
++
++	/**
++	 * The id returned from the DataSource's setInterval function.
++	 * @property _pollingID
++	 * @type Number
++	 * @private
++	 */
++	_pollingID: null,
++
++	/**
++	 * The time, in ms, between requests for data.
++	 * @property _pollingInterval
++	 * @type Number
++	 * @private
++	 */
++	_pollingInterval: null,
++
++	/**
++	 * Stores a reference to the dataTipFunction created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _dataTipFunction
++	 * @type String
++	 * @private
++	 */
++	_dataTipFunction: null,
++	
++	/**
++	 * Stores a reference to the legendLabelFunction created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _legendLabelFunction
++	 * @type String
++	 * @private
++	 */
++	_legendLabelFunction: null,	
++	
++	/**
++	 * Stores references to series function values created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _seriesFunctions
++	 * @type Array
++	 * @private
++	 */
++	_seriesFunctions: null,
++
++	/**
++	 * Public accessor to the unique name of the Chart instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the Chart instance.
++	 */
++	toString: function()
++	{
++		return "Chart " + this._id;
++	},
++	
++	/**
++	 * Sets a single style value on the Chart instance.
++	 *
++	 * @method setStyle
++	 * @param name {String} Name of the Chart style value to change.
++	 * @param value {Object} New value to pass to the Chart style.
++	 */
++	setStyle: function(name, value)
++	{
++		//we must jsonify this because Flash Player versions below 9.0.60 don't handle
++		//complex ExternalInterface parsing correctly
++		value = YAHOO.lang.JSON.stringify(value);
++		this._swf.setStyle(name, value);
++	},
++	
++	/**
++	 * Resets all styles on the Chart instance.
++	 *
++	 * @method setStyles
++	 * @param styles {Object} Initializer for all Chart styles.
++	 */
++	setStyles: function(styles)
++	{
++		//we must jsonify this because Flash Player versions below 9.0.60 don't handle
++		//complex ExternalInterface parsing correctly
++		styles = YAHOO.lang.JSON.stringify(styles);
++		this._swf.setStyles(styles);
++	},
++	
++	/**
++	 * Sets the styles on all series in the Chart.
++	 *
++	 * @method setSeriesStyles
++	 * @param styles {Array} Initializer for all Chart series styles.
++	 */
++	setSeriesStyles: function(styles)
++	{
++		//we must jsonify this because Flash Player versions below 9.0.60 don't handle
++		//complex ExternalInterface parsing correctly
++		for(var i = 0; i < styles.length; i++)
++		{
++			styles[i] = YAHOO.lang.JSON.stringify(styles[i]);	
++		}
++		this._swf.setSeriesStyles(styles);
++	},
++	
++	destroy: function()
++	{
++		//stop polling if needed
++		if(this._dataSource !== null)
++		{
++			if(this._pollingID !== null)
++			{
++				this._dataSource.clearInterval(this._pollingID);
++				this._pollingID = null;
++			}
++		}
++		
++		//remove proxy functions
++		if(this._dataTipFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
++		}
++		
++		if(this._legendLabelFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
++		}
++		
++		//kill the Flash Player instance
++		if(this._swf)
++		{
++			var container = YAHOO.util.Dom.get(this._containerID);
++			container.removeChild(this._swf);
++		}
++		
++		var instanceName = this._id;
++		
++		//null out properties
++		for(var prop in this)
++		{
++			if(YAHOO.lang.hasOwnProperty(this, prop))
++			{
++				this[prop] = null;
++			}
++		}
++	},
++	
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{
++		//YAHOO.widget.Chart.superclass._initAttributes.call(this, attributes);
++		/**
++		 * @attribute wmode
++		 * @description Sets the window mode of the Flash Player control. May be
++		 *		"window", "opaque", or "transparent". Only available in the constructor
++		 *		because it may not be set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute expressInstall
++		 * @description URL pointing to a SWF file that handles Flash Player's express
++		 *		install feature. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute version
++		 * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute backgroundColor
++		 * @description The background color of the SWF. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute altText
++		 * @description The alternative text to provide for screen readers and other assistive technology.
++		 * @type String
++		 */
++		this.setAttributeConfig("altText",
++		{
++			method: this._setAltText,
++			getter: this._getAltText
++			
++		});
++		
++		/**
++		 * @attribute swfURL
++		 * @description Absolute or relative URL to the SWF displayed by the Chart. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		this.setAttributeConfig("swfURL",
++		{
++			getter: this._getSWFURL
++		});		
++
++		/**
++		 * @attribute request
++		 * @description Request to be sent to the Chart's DataSource.
++		 * @type String
++		 */
++		this.setAttributeConfig("request",
++		{
++			method: this._setRequest,
++			getter: this._getRequest
++		});
++		
++		/**
++		 * @attribute dataSource
++		 * @description The DataSource instance to display in the Chart.
++		 * @type DataSource
++		 */
++		this.setAttributeConfig("dataSource",
++		{
++			method: this._setDataSource,
++			getter: this._getDataSource
++		});
++		
++		/**
++		 * @attribute series
++		 * @description Defines the series to be displayed by the Chart.
++		 * @type Array
++		 */
++		this.setAttributeConfig("series",
++		{
++			method: this._setSeriesDefs,
++			getter: this._getSeriesDefs
++		});
++		
++		/**
++		 * @attribute categoryNames
++		 * @description Defines the names of the categories to be displayed in the Chart..
++		 * @type Array
++		 */
++		this.setAttributeConfig("categoryNames",
++		{
++			validator: YAHOO.lang.isArray,
++			method: this._setCategoryNames,
++			getter: this._getCategoryNames
++		});
++		
++		/**
++		 * @attribute dataTipFunction
++		 * @description The string representation of a globally-accessible function
++		 * that may be called by the SWF to generate the datatip text for a Chart's item.
++		 * @type String
++		 */
++		this.setAttributeConfig("dataTipFunction",
++		{
++			method: this._setDataTipFunction,
++			getter: this._getDataTipFunction
++		});
++		
++		/**
++		 * @attribute legendLabelFunction
++		 * @description The string representation of a globally-accessible function
++		 * that may be called by the SWF to format the labels of a Chart's legend.
++		 * @type String
++		 */	
++		this.setAttributeConfig("legendLabelFunction",
++		{
++			method: this._setLegendLabelFunction,
++			getter: this._legendLabelFunction
++		});
++
++		/**
++		 * @attribute polling
++		 * @description A numeric value indicating the number of milliseconds between
++		 * polling requests to the DataSource.
++		 * @type Number
++		 */
++		this.setAttributeConfig("polling",
++		{
++			method: this._setPolling,
++			getter: this._getPolling
++		});
++	},
++	
++	/**
++	 * Handles swfReady event from SWF.
++	 *
++	 * @method _eventHandler
++	 * @private
++	 */
++	_eventHandler: function(event)
++	{ 
++		if(event.type == "swfReady")
++		{
++   			this._swf = this._swfEmbed._swf;
++			this._loadHandler();
++   			this.fireEvent("contentReady");
++		}
++	},	
++	
++	/**
++	 * Called when the SWF is ready for communication. Sets the type, initializes
++	 * the styles, and sets the DataSource.
++	 *
++	 * @method _loadHandler
++	 * @private
++	 */
++	_loadHandler: function()
++	{
++		//the type is set separately because it must be first!
++		if(!this._swf || !this._swf.setType) return;
++		this._swf.setType(this._type);
++
++
++		//set initial styles
++		if(this._attributes.style)
++		{
++			var style = this._attributes.style;
++			this.setStyles(style);		
++		}
++
++		this._initialized = false;
++
++		this._initAttributes(this._attributes);
++		this.setAttributes(this._attributes, true);
++
++		this._initialized = true;
++		if(this._dataSource)
++		{
++			this.set("dataSource", this._dataSource);
++		}
++	},	
++
++	/**
++	 * Sends (or resends) the request to the DataSource.
++	 *
++	 * @method refreshData
++	 */
++	refreshData: function()
++	{
++		if(!this._initialized)
++		{
++			return;
++		}
++		
++		if(this._dataSource !== null)
++		{
++			if(this._pollingID !== null)
++			{
++				this._dataSource.clearInterval(this._pollingID);
++				this._pollingID = null;
++			}
++			
++			if(this._pollingInterval > 0)
++			{
++				this._pollingID = this._dataSource.setInterval(this._pollingInterval, this._request, this._loadDataHandler, this);
++			}
++			this._dataSource.sendRequest(this._request, this._loadDataHandler, this);
++		}
++	},
++
++	/**
++	 * Called when the DataSource receives new data. The series definitions are used
++	 * to build a data provider for the SWF chart.
++	 *
++	 * @method _loadDataHandler
++	 * @private
++	 */
++	_loadDataHandler: function(request, response, error)
++	{
++		if(this._swf)
++		{
++			if(error)
++			{
++				YAHOO.log("Unable to load data.", "error");
++			}
++			else
++			{
++				var i;
++				if(this._seriesFunctions)
++				{
++					var count = this._seriesFunctions.length;
++					for(i = 0; i < count; i++)
++					{
++						YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[i]);
++					}
++					this._seriesFunctions = null;
++				}
++				this._seriesFunctions = [];
++
++				//make a copy of the series definitions so that we aren't
++				//editing them directly.
++				var dataProvider = [];	
++				var seriesCount = 0;
++				var currentSeries = null;
++				if(this._seriesDefs !== null)
++				{
++					seriesCount = this._seriesDefs.length;
++					for(i = 0; i < seriesCount; i++)
++					{
++						currentSeries = this._seriesDefs[i];
++						var clonedSeries = {};
++						for(var prop in currentSeries)
++						{
++							if(YAHOO.lang.hasOwnProperty(currentSeries, prop))
++							{
++								if(prop == "style")
++								{
++									if(currentSeries.style !== null)
++									{
++										clonedSeries.style = YAHOO.lang.JSON.stringify(currentSeries.style);
++									}
++								}
++
++								else if(prop == "labelFunction")
++								{
++									if(currentSeries.labelFunction !== null)
++									{	
++										clonedSeries.labelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.labelFunction);
++										this._seriesFunctions.push(clonedSeries.labelFunction);
++									}
++								}
++
++								else if(prop == "dataTipFunction")
++								{
++									if(currentSeries.dataTipFunction !== null)
++									{
++										clonedSeries.dataTipFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.dataTipFunction);
++										this._seriesFunctions.push(clonedSeries.dataTipFunction);
++									}	
++								}
++								
++								else if(prop == "legendLabelFunction")
++								{
++									if(currentSeries.legendLabelFunction !== null)
++									{
++										clonedSeries.legendLabelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.legendLabelFunction);
++										this._seriesFunctions.push(clonedSeries.legendLabelFunction); 
++									}	
++								}								
++
++								else
++								{
++									clonedSeries[prop] = currentSeries[prop];
++								}
++							}
++						}
++						dataProvider.push(clonedSeries);
++					}
++				}
++
++				if(seriesCount > 0)
++				{
++					for(i = 0; i < seriesCount; i++)
++					{
++						currentSeries = dataProvider[i];
++						if(!currentSeries.type)
++						{
++							currentSeries.type = this._type;
++						}
++						currentSeries.dataProvider = response.results;
++					}
++				}
++				else
++				{
++					var series = {type: this._type, dataProvider: response.results};
++					dataProvider.push(series);
++				}
++				try
++				{
++					if(this._swf.setDataProvider) this._swf.setDataProvider(dataProvider);
++				}
++				catch(e)
++				{
++					this._swf.setDataProvider(dataProvider);
++				}
++			}
++		}
++	},
++
++	/**
++	 * Storage for the request attribute.
++	 * 
++	 * @property _request
++	 * @private
++	 */
++	_request: "",
++	
++	/**
++	 * Getter for the request attribute.
++	 *
++	 * @method _getRequest
++	 * @private
++	 */
++	_getRequest: function()
++	{
++		return this._request;
++	},
++	
++	/**
++	 * Setter for the request attribute.
++	 *
++	 * @method _setRequest
++	 * @private
++	 */
++	_setRequest: function(value)
++	{
++		this._request = value;
++		this.refreshData();
++	},
++
++	/**
++	 * Storage for the dataSource attribute.
++	 * 
++	 * @property _dataSource
++	 * @private
++	 */
++	_dataSource: null,
++	
++	/**
++	 * Getter for the dataSource attribute.
++	 *
++	 * @method _getDataSource
++	 * @private
++	 */
++	_getDataSource: function()
++	{
++		return this._dataSource;
++	},
++
++	/**
++	 * Setter for the dataSource attribute.
++	 *
++	 * @method _setDataSource
++	 * @private
++	 */
++	_setDataSource: function(value)
++	{	
++		this._dataSource = value;
++		this.refreshData();
++	},
++	
++	/**
++	 * Storage for the series attribute.
++	 * 
++	 * @property _seriesDefs
++	 * @private
++	 */
++	_seriesDefs: null,
++	
++	/**
++	 * Getter for the series attribute.
++	 *
++	 * @method _getSeriesDefs
++	 * @private
++	 */
++	_getSeriesDefs: function()
++	{
++		return this._seriesDefs;
++	},
++	
++	/**
++	 * Setter for the series attribute.
++	 *
++	 * @method _setSeriesDefs
++	 * @private
++	 */
++	_setSeriesDefs: function(value)
++	{
++		this._seriesDefs = value;
++		this.refreshData();
++	},
++
++	/**
++	 * Getter for the categoryNames attribute.
++	 *
++	 * @method _getCategoryNames
++	 * @private
++	 */
++	_getCategoryNames: function()
++	{
++		return this._swf.getCategoryNames();
++	},
++
++	/**
++	 * Setter for the categoryNames attribute.
++	 *
++	 * @method _setCategoryNames
++	 * @private
++	 */
++	_setCategoryNames: function(value)
++	{
++		this._swf.setCategoryNames(value);
++	},
++	
++	/**
++	 * Setter for the dataTipFunction attribute.
++	 *
++	 * @method _setDataTipFunction
++	 * @private
++	 */
++	_setDataTipFunction: function(value)
++	{
++		if(this._dataTipFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
++		}
++		
++		if(value)
++		{
++			this._dataTipFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
++		}
++		this._swf.setDataTipFunction(value);
++	},
++	
++	/**
++	 * Setter for the legendLabelFunction attribute.
++	 *
++	 * @method _setLegendLabelFunction
++	 * @private
++	 */
++	_setLegendLabelFunction: function(value)
++	{
++		if(this._legendLabelFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
++		}
++		
++		if(value)
++		{
++			this._legendLabelFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
++		}
++		this._swf.setLegendLabelFunction(value);
++	},
++
++	/**
++	 * Getter for the polling attribute.
++	 *
++	 * @method _getPolling
++	 * @private
++	 */
++	_getPolling: function()
++	{
++		return this._pollingInterval;
++	},
++
++	/**
++	 * Setter for the polling attribute.
++	 *
++	 * @method _setPolling
++	 * @private
++	 */
++	_setPolling: function(value)
++	{
++		this._pollingInterval = value;
++		this.refreshData();
++	},
++
++	/**
++	 * The javascript wrapper for the swf object
++	 *
++	 * @property _swfEmbed
++	 * @type swf
++	 * @private
++	 */
++	_swfEmbed: null,
++	
++	/**
++	 * The URL of the SWF file.
++	 * @property _swfURL
++	 * @type String
++	 * @private
++	 */
++	_swfURL: null,
++
++	/**
++	 * The ID of the containing DIV.
++	 * @property _containerID
++	 * @type String
++	 * @private
++	 */
++	_containerID: null,
++
++	/**
++	 * A reference to the embedded SWF file.
++	 * @property _swf
++	 * @private
++	 */
++	_swf: null,
++
++	/**
++	 * The id of this instance.
++	 * @property _id
++	 * @type String
++	 * @private
++	 */
++	_id: null,
++
++	/**
++	 * Indicates whether the SWF has been initialized and is ready
++	 * to communicate with JavaScript
++	 * @property _initialized
++	 * @type Boolean
++	 * @private
++	 */
++	_initialized: false,
++	
++	/**
++	 * The initializing attributes are stored here until the SWF is ready.
++	 * @property _attributes
++	 * @type Object
++	 * @private
++	 */
++	_attributes: null, //the intializing attributes
++	
++	set: function(name, value)
++	{
++		//save all the attributes in case the swf reloads
++		//so that we can pass them in again
++		this._attributes[name] = value;
++		YAHOO.widget.Chart.superclass.set.call(this, name, value);
++	},
++	
++	/**
++	 * Getter for swfURL attribute.
++	 *
++	 * @method _getSWFURL
++	 * @private
++	 */
++	_getSWFURL: function()
++	{
++		return this._swfURL;
++	},
++	
++	/**
++	 * Getter for altText attribute.
++	 *
++	 * @method _getAltText
++	 * @private
++	 */
++	_getAltText: function()
++	{
++		return this._swf.getAltText();
++	},
++
++	/**
++	 * Setter for altText attribute.
++	 *
++	 * @method _setAltText
++	 * @private
++	 */
++	_setAltText: function(value)
++	{
++	 	this._swf.setAltText(value);
++	}
++});
++
++/**
++ * The number of proxy functions that have been created.
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.proxyFunctionCount = 0;
++
++/**
++ * Creates a globally accessible function that wraps a function reference.
++ * Returns the proxy function's name as a string for use by the SWF through
++ * ExternalInterface.
++ *
++ * @method YAHOO.widget.Chart.createProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.createProxyFunction = function(func, scope)
++{
++	var scope = scope || null;
++	var index = YAHOO.widget.Chart.proxyFunctionCount;
++	YAHOO.widget.Chart["proxyFunction" + index] = function()
++	{
++		return func.apply(scope, arguments);
++	};
++	YAHOO.widget.Chart.proxyFunctionCount++;
++	return "YAHOO.widget.Chart.proxyFunction" + index.toString();
++};
++
++/**
++ * Uses YAHOO.widget.Chart.createProxyFunction to return string
++ * reference to a function. 
++ *
++ * @method YAHOO.widget.Chart.getFunctionReference
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.getFunctionReference = function(value)
++{
++	if(typeof value == "function")
++	{
++		value = YAHOO.widget.Chart.createProxyFunction(value);
++	}
++	else if(value.func && typeof value.func == "function")
++	{
++		var args = [value.func];
++		if(value.scope && typeof value.scope == "object")
++		{
++			args.push(value.scope);
++		}
++		value = YAHOO.widget.Chart.createProxyFunction.apply(this, args);
++	}
++	return value;	
++}
++
++/**
++ * Removes a function created with createProxyFunction()
++ * 
++ * @method YAHOO.widget.Chart.removeProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.removeProxyFunction = function(funcName)
++{
++	//quick error check
++	if(!funcName || funcName.indexOf("YAHOO.widget.Chart.proxyFunction") < 0)
++	{
++		return;
++	}
++	
++	funcName = funcName.substr(26);
++	YAHOO.widget.Chart[funcName] = null;
++};
++
++/**
++ * Storage for the dataTipFunction attribute.
++ *
++ * @property Chart.SWFURL
++ * @private
++ * @static
++ * @final
++ * @default "assets/charts.swf"
++ */
++YAHOO.widget.Chart.SWFURL = "assets/charts.swf";
++/**
++ * PieChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class PieChart
++ * @uses YAHOO.widget.Chart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.PieChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.PieChart.superclass.constructor.call(this, "pie", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.PieChart, YAHOO.widget.Chart,
++{
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{	
++		YAHOO.widget.PieChart.superclass._initAttributes.call(this, attributes);
++		
++		/**
++		 * @attribute dataField
++		 * @description The field in each item that corresponds to the data value.
++		 * @type String
++		 */
++		this.setAttributeConfig("dataField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setDataField,
++			getter: this._getDataField
++		});
++   
++		/**
++		 * @attribute categoryField
++		 * @description The field in each item that corresponds to the category value.
++		 * @type String
++		 */
++		this.setAttributeConfig("categoryField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setCategoryField,
++			getter: this._getCategoryField
++		});
++	},
++
++	/**
++	 * Getter for the dataField attribute.
++	 *
++	 * @method _getDataField
++	 * @private
++	 */
++	_getDataField: function()
++	{
++		return this._swf.getDataField();
++	},
++
++	/**
++	 * Setter for the dataField attribute.
++	 *
++	 * @method _setDataField
++	 * @private
++	 */
++	_setDataField: function(value)
++	{
++		this._swf.setDataField(value);
++	},
++
++	/**
++	 * Getter for the categoryField attribute.
++	 *
++	 * @method _getCategoryField
++	 * @private
++	 */
++	_getCategoryField: function()
++	{
++		return this._swf.getCategoryField();
++	},
++
++	/**
++	 * Setter for the categoryField attribute.
++	 *
++	 * @method _setCategoryField
++	 * @private
++	 */
++	_setCategoryField: function(value)
++	{
++		this._swf.setCategoryField(value);
++	}
++});
++/**
++ * CartesianChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class CartesianChart
++ * @uses YAHOO.widget.Chart
++ * @constructor
++ * @param type {String} The char type. May be "line", "column", or "bar"
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++ YAHOO.widget.CartesianChart = function(type, containerId, dataSource, attributes)
++{
++	YAHOO.widget.CartesianChart.superclass.constructor.call(this, type, containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.CartesianChart, YAHOO.widget.Chart,
++{
++	/**
++	 * Stores a reference to the xAxis labelFunction created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _xAxisLabelFunctions
++	 * @type String
++	 * @private
++	 */
++	_xAxisLabelFunctions: [],
++	
++	/**
++	 * Stores a reference to the yAxis labelFunctions created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _yAxisLabelFunctions
++	 * @type Array
++	 * @private
++	 */
++	_yAxisLabelFunctions: [],
++	
++	destroy: function()
++	{
++		//remove proxy functions
++		this._removeAxisFunctions(this._xAxisLabelFunctions);
++		this._removeAxisFunctions(this._yAxisLabelFunctions);
++		
++		//call last
++		YAHOO.widget.CartesianChart.superclass.destroy.call(this);
++	},
++	
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{	
++		YAHOO.widget.CartesianChart.superclass._initAttributes.call(this, attributes);
++		
++		/**
++		 * @attribute xField
++		 * @description The field in each item that corresponds to a value on the x axis.
++		 * @type String
++		 */
++		this.setAttributeConfig("xField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setXField,
++			getter: this._getXField
++		});
++
++		/**
++		 * @attribute yField
++		 * @description The field in each item that corresponds to a value on the x axis.
++		 * @type String
++		 */
++		this.setAttributeConfig("yField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setYField,
++			getter: this._getYField
++		});
++
++		/**
++		 * @attribute xAxis
++		 * @description A custom configuration for the horizontal x axis.
++		 * @type Axis
++		 */
++		this.setAttributeConfig("xAxis",
++		{
++			method: this._setXAxis
++		});
++		
++		/**
++		 * @attribute xAxes
++		 * @description Custom configurations for the horizontal x axes.
++		 * @type Array
++		 */		
++		this.setAttributeConfig("xAxes",
++		{
++			method: this._setXAxes
++		});	
++
++		/**
++		 * @attribute yAxis
++		 * @description A custom configuration for the vertical y axis.
++		 * @type Axis
++		 */
++		this.setAttributeConfig("yAxis",
++		{
++			method: this._setYAxis
++		});
++		
++		/**
++		 * @attribute yAxes
++		 * @description Custom configurations for the vertical y axes.
++		 * @type Array
++		 */		
++		this.setAttributeConfig("yAxes",
++		{
++			method: this._setYAxes
++		});	
++		
++		/**
++		 * @attribute constrainViewport
++		 * @description Determines whether the viewport is constrained to prevent series data from overflow.
++		 * @type Boolean
++		 */
++		this.setAttributeConfig("constrainViewport",
++		{
++			method: this._setConstrainViewport
++		});	
++	},
++
++	/**
++	 * Getter for the xField attribute.
++	 *
++	 * @method _getXField
++	 * @private
++	 */
++	_getXField: function()
++	{
++		return this._swf.getHorizontalField();
++	},
++
++	/**
++	 * Setter for the xField attribute.
++	 *
++	 * @method _setXField
++	 * @private
++	 */
++	_setXField: function(value)
++	{
++		this._swf.setHorizontalField(value);
++	},
++
++	/**
++	 * Getter for the yField attribute.
++	 *
++	 * @method _getYField
++	 * @private
++	 */
++	_getYField: function()
++	{
++		return this._swf.getVerticalField();
++	},
++
++	/**
++	 * Setter for the yField attribute.
++	 *
++	 * @method _setYField
++	 * @private
++	 */
++	_setYField: function(value)
++	{
++		this._swf.setVerticalField(value);
++	},
++	
++	/**
++	 * Receives an axis object, creates a proxy function for 
++	 * the labelFunction and returns the updated object. 
++	 *
++	 * @method _getClonedAxis
++	 * @private
++	 */
++	_getClonedAxis: function(value)
++	{
++		var clonedAxis = {};
++		for(var prop in value)
++		{
++			if(prop == "labelFunction")
++			{
++				if(value.labelFunction && value.labelFunction !== null)
++				{
++					clonedAxis.labelFunction = YAHOO.widget.Chart.getFunctionReference(value.labelFunction);
++				}
++			}
++			else
++			{
++				clonedAxis[prop] = value[prop];
++			}
++		}
++		return clonedAxis;
++	},
++	
++	/**
++	 * Removes axis functions contained in an array
++	 * 
++	 * @method _removeAxisFunctions
++	 * @private
++	 */
++	_removeAxisFunctions: function(axisFunctions)
++	{
++		if(axisFunctions && axisFunctions.length > 0)
++		{
++			var len = axisFunctions.length;
++			for(var i = 0; i < len; i++)
++			{
++				if(axisFunctions[i] !== null)
++				{
++					YAHOO.widget.Chart.removeProxyFunction(axisFunctions[i]);
++				}
++			}
++			axisFunctions = [];
++		}
++	},	
++	
++	/**
++	 * Setter for the xAxis attribute.
++	 *
++	 * @method _setXAxis
++	 * @private
++	 */
++	_setXAxis: function(value)
++	{
++		if(value.position != "bottom" && value.position != "top") value.position = "bottom";
++		this._removeAxisFunctions(this._xAxisLabelFunctions);
++		value = this._getClonedAxis(value);
++		this._xAxisLabelFunctions.push(value.labelFunction);
++		this._swf.setHorizontalAxis(value);
++	},
++	
++	/**
++	 * Setter for the xAxes attribute
++	 *
++	 * @method _setXAxes
++	 * @private
++	 */
++	_setXAxes: function(value)
++	{
++		this._removeAxisFunctions(this._xAxisLabelFunctions);
++		var len = value.length;
++		for(var i = 0; i < len; i++)
++		{
++			if(value[i].position == "left") value[i].position = "bottom";
++			value[i] = this._getClonedAxis(value[i]);
++			if(value[i].labelFunction) this._xAxisLabelFunctions.push(value[i].labelFunction);
++			this._swf.setHorizontalAxis(value[i]);
++		}
++	},
++
++	/**
++	 * Setter for the yAxis attribute.
++	 *
++	 * @method _setYAxis
++	 * @private
++	 */
++	_setYAxis: function(value)
++	{
++		this._removeAxisFunctions(this._yAxisLabelFunctions);
++		value = this._getClonedAxis(value);
++		this._yAxisLabelFunctions.push(value.labelFunction);		
++		this._swf.setVerticalAxis(value);
++	},
++	
++	/**
++	 * Setter for the yAxes attribute.
++	 *
++	 * @method _setYAxes
++	 * @private
++	 */	
++	_setYAxes: function(value)
++	{
++		this._removeAxisFunctions(this._yAxisLabelFunctions);
++		var len = value.length;
++		for(var i = 0; i < len; i++)
++		{
++			value[i] = this._getClonedAxis(value[i]);
++			if(value[i].labelFunction) this._yAxisLabelFunctions.push(value[i].labelFunction);
++			this._swf.setVerticalAxis(value[i]);
++		}		
++	},
++	
++	/**
++	 * Setter for the constrainViewport attribute
++	 *
++	 * @method _setConstrainViewport
++	 * @private
++	 */
++	_setConstrainViewport: function(value)
++	{
++		this._swf.setConstrainViewport(value);
++	},
++	
++	/**
++	 * Sets the style object for a single series based on its index
++	 * 
++	 * @method setSeriesStylesByIndex
++	 * @param index {Number} The position within the series definition to apply the style
++	 * @param style {object} Style object to be applied to the selected series
++	 */
++	setSeriesStylesByIndex:function(index, style)
++	{
++		style = YAHOO.lang.JSON.stringify(style);
++		if(this._swf && this._swf.setSeriesStylesByIndex) this._swf.setSeriesStylesByIndex(index, style);
++	}
++});
++/**
++ * LineChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class LineChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.LineChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.LineChart.superclass.constructor.call(this, "line", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.LineChart, YAHOO.widget.CartesianChart);
++
++/**
++ * ColumnChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class ColumnChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.ColumnChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.ColumnChart.superclass.constructor.call(this, "column", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.ColumnChart, YAHOO.widget.CartesianChart);
++
++/**
++ * BarChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class BarChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.BarChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.BarChart.superclass.constructor.call(this, "bar", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.BarChart, YAHOO.widget.CartesianChart);
++
++/**
++ * StackedColumnChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedColumnChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.StackedColumnChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.StackedColumnChart.superclass.constructor.call(this, "stackcolumn", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedColumnChart, YAHOO.widget.CartesianChart);
++
++/**
++ * StackedBarChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedBarChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.StackedBarChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.StackedBarChart.superclass.constructor.call(this, "stackbar", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedBarChart, YAHOO.widget.CartesianChart);
++/**
++ * Defines a CartesianChart's vertical or horizontal axis.
++ *
++ * @namespace YAHOO.widget
++ * @class Axis
++ * @constructor
++ */
++YAHOO.widget.Axis = function()
++{
++};
++
++YAHOO.widget.Axis.prototype = 
++{
++	/**
++	 * The type of axis.
++	 *
++	 * @property type
++	 * @type String
++	 */
++	type: null,
++	
++	/**
++	 * If true, the items on the axis will be drawn in opposite direction.
++	 *
++	 * @property reverse
++	 * @type Boolean
++	 */
++	reverse: false,
++	
++	/**
++	 * A string reference to the globally-accessible function that may be called to
++	 * determine each of the label values for this axis. Also accepts function references.
++	 *
++	 * @property labelFunction
++	 * @type String
++	 */
++	labelFunction: null,
++	
++	/**
++	 * The space, in pixels, between labels on an axis.
++	 *
++	 * @property labelSpacing
++	 * @type Number
++	 */
++	labelSpacing: 2,
++	
++	/**
++	 * The text that will appear next to the axis to indicate information about the data that it displays.
++	 *
++	 * @property title
++	 * @type String
++	 */
++	title: null 
++};
++/**
++ * A type of axis whose units are measured in numeric values.
++ *
++ * @namespace YAHOO.widget
++ * @class NumericAxis
++ * @extends YAHOO.widget.Axis
++ * @constructor
++ */
++YAHOO.widget.NumericAxis = function()
++{
++	YAHOO.widget.NumericAxis.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
++{
++	type: "numeric",
++	
++	/**
++	 * The minimum value drawn by the axis. If not set explicitly, the axis minimum
++	 * will be calculated automatically.
++	 *
++	 * @property minimum
++	 * @type Number
++	 */
++	minimum: NaN,
++	
++	/**
++	 * The maximum value drawn by the axis. If not set explicitly, the axis maximum
++	 * will be calculated automatically.
++	 *
++	 * @property maximum
++	 * @type Number
++	 */
++	maximum: NaN,
++	
++	/**
++	 * The spacing between major intervals on this axis.
++	 *
++	 * @property majorUnit
++	 * @type Number
++	 */
++	majorUnit: NaN,
++
++	/**
++	 * The spacing between minor intervals on this axis.
++	 *
++	 * @property minorUnit
++	 * @type Number
++	 */
++	minorUnit: NaN,
++	
++	/**
++	 * If true, the labels, ticks, gridlines, and other objects will snap to
++	 * the nearest major or minor unit. If false, their position will be based
++	 * on the minimum value.
++	 *
++	 * @property snapToUnits
++	 * @type Boolean
++	 */
++	snapToUnits: true,
++	
++	/**
++	 * Series that are stackable will only stack when this value is set to true.
++	 *
++	 * @property stackingEnabled
++	 * @type Boolean
++	 */
++	stackingEnabled: false,
++
++	/**
++	 * If true, and the bounds are calculated automatically, either the minimum or
++	 * maximum will be set to zero.
++	 *
++	 * @property alwaysShowZero
++	 * @type Boolean
++	 */
++	alwaysShowZero: true,
++
++	/**
++	 * The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
++	 *
++	 * @property scale
++	 * @type String
++	 */
++	scale: "linear",
++	
++	/**
++	 * Indicates whether to round the major unit.
++	 * 
++	 * @property roundMajorUnit
++	 * @type Boolean
++	 */
++	roundMajorUnit: true, 
++	
++	/**
++	 * Indicates whether to factor in the size of the labels when calculating a major unit.
++	 *
++	 * @property calculateByLabelSize
++	 * @type Boolean
++	 */
++	calculateByLabelSize: true,
++	
++	/**
++	 * Indicates the position of the axis relative to the chart
++	 *
++	 * @property position
++	 * @type String
++	 */
++	position:"left",
++	
++	/**
++	 * Indicates whether to extend maximum beyond data's maximum to the nearest 
++	 * majorUnit.
++	 *
++	 * @property adjustMaximumByMajorUnit
++	 * @type Boolean
++	 */
++	adjustMaximumByMajorUnit:true,
++	
++	/**
++	 * Indicates whether to extend the minimum beyond data's minimum to the nearest
++	 * majorUnit.
++	 *
++	 * @property adjustMinimumByMajorUnit
++	 * @type Boolean
++	 */
++	adjustMinimumByMajorUnit:true
++});
++/**
++ * A type of axis whose units are measured in time-based values.
++ *
++ * @namespace YAHOO.widget
++ * @class TimeAxis
++ * @constructor
++ */
++YAHOO.widget.TimeAxis = function()
++{
++	YAHOO.widget.TimeAxis.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.TimeAxis, YAHOO.widget.Axis,
++{
++	type: "time",
++	
++	/**
++	 * The minimum value drawn by the axis. If not set explicitly, the axis minimum
++	 * will be calculated automatically.
++	 *
++	 * @property minimum
++	 * @type Date
++	 */
++	minimum: null,
++
++	/**
++	 * The maximum value drawn by the axis. If not set explicitly, the axis maximum
++	 * will be calculated automatically.
++	 *
++	 * @property maximum
++	 * @type Number
++	 */
++	maximum: null,
++	
++	/**
++	 * The spacing between major intervals on this axis.
++	 *
++	 * @property majorUnit
++	 * @type Number
++	 */
++	majorUnit: NaN,
++	
++	/**
++	 * The time unit used by the majorUnit.
++	 *
++	 * @property majorTimeUnit
++	 * @type String
++	 */
++	majorTimeUnit: null,
++	
++	/**
++	 * The spacing between minor intervals on this axis.
++	 *
++	 * @property majorUnit
++	 * @type Number
++	 */
++	minorUnit: NaN,
++	
++	/**
++	 * The time unit used by the minorUnit.
++	 *
++	 * @property majorTimeUnit
++	 * @type String
++	 */
++	minorTimeUnit: null,
++
++	/**
++	 * If true, the labels, ticks, gridlines, and other objects will snap to
++	 * the nearest major or minor unit. If false, their position will be based
++	 * on the minimum value.
++	 *
++	 * @property snapToUnits
++	 * @type Boolean
++	 */
++	snapToUnits: true,
++
++	/**
++	 * Series that are stackable will only stack when this value is set to true.
++	 *
++	 * @property stackingEnabled
++	 * @type Boolean
++	 */
++	stackingEnabled: false,
++
++	/**
++	 * Indicates whether to factor in the size of the labels when calculating a major unit.
++	 *
++	 * @property calculateByLabelSize
++	 * @type Boolean
++	 */
++	calculateByLabelSize: true	
++});
++/**
++ * A type of axis that displays items in categories.
++ *
++ * @namespace YAHOO.widget
++ * @class CategoryAxis
++ * @constructor
++ */
++YAHOO.widget.CategoryAxis = function()
++{
++	YAHOO.widget.CategoryAxis.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
++{
++	type: "category",
++	
++	/**
++	 * A list of category names to display along this axis.
++	 *
++	 * @property categoryNames
++	 * @type Array
++	 */
++	categoryNames: null,
++	
++	/**
++	 * Indicates whether or not to calculate the number of categories (ticks and labels)
++	 * when there is not enough room to display all labels on the axis. If set to true, the axis 
++	 * will determine the number of categories to plot. If not, all categories will be plotted.
++	 *
++	 * @property calculateCategoryCount
++	 * @type Boolean
++	 */
++	calculateCategoryCount: false 
++});
++ /**
++ * Functionality common to most series. Generally, a <code>Series</code> 
++ * object shouldn't be instantiated directly. Instead, a subclass with a 
++ * concrete implementation should be used.
++ *
++ * @namespace YAHOO.widget
++ * @class Series
++ * @constructor
++ */
++YAHOO.widget.Series = function() {};
++
++YAHOO.widget.Series.prototype = 
++{
++	/**
++	 * The type of series.
++	 *
++	 * @property type
++	 * @type String
++	 */
++	type: null,
++	
++	/**
++	 * The human-readable name of the series.
++	 *
++	 * @property displayName
++	 * @type String
++	 */
++	displayName: null
++};
++
++/**
++ * Functionality common to most series appearing in cartesian charts.
++ * Generally, a <code>CartesianSeries</code> object shouldn't be
++ * instantiated directly. Instead, a subclass with a concrete implementation
++ * should be used.
++ *
++ * @namespace YAHOO.widget
++ * @class CartesianSeries
++ * @uses YAHOO.widget.Series
++ * @constructor
++ */
++YAHOO.widget.CartesianSeries = function() 
++{
++	YAHOO.widget.CartesianSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.CartesianSeries, YAHOO.widget.Series,
++{
++	/**
++	 * The field used to access the x-axis value from the items from the data source.
++	 *
++	 * @property xField
++	 * @type String
++	 */
++	xField: null,
++	
++	/**
++	 * The field used to access the y-axis value from the items from the data source.
++	 *
++	 * @property yField
++	 * @type String
++	 */
++	yField: null,
++	
++	/**
++	 * Indicates which axis the series will bind to
++	 *
++	 * @property axis
++	 * @type String
++	 */
++	axis: "primary",
++	
++	/**
++	 * When a Legend is present, indicates whether the series will show in the legend.
++	 * 
++	 * @property showInLegend
++	 * @type Boolean
++	 */
++	showInLegend: true
++});
++
++/**
++ * ColumnSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class ColumnSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.ColumnSeries = function() 
++{
++	YAHOO.widget.ColumnSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.ColumnSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "column"
++});
++
++/**
++ * LineSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class LineSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.LineSeries = function() 
++{
++	YAHOO.widget.LineSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.LineSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "line"
++});
++
++
++/**
++ * BarSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class BarSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.BarSeries = function() 
++{
++	YAHOO.widget.BarSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.BarSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "bar"
++});
++
++
++/**
++ * PieSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class PieSeries
++ * @uses YAHOO.widget.Series
++ * @constructor
++ */
++YAHOO.widget.PieSeries = function() 
++{
++	YAHOO.widget.PieSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.PieSeries, YAHOO.widget.Series,
++{
++	type: "pie",
++	
++	/**
++	 * The field used to access the data value from the items from the data source.
++	 *
++	 * @property dataField
++	 * @type String
++	 */
++	dataField: null,
++	
++	/**
++	 * The field used to access the category value from the items from the data source.
++	 *
++	 * @property categoryField
++	 * @type String
++	 */
++	categoryField: null,
++
++	/**
++	 * A string reference to the globally-accessible function that may be called to
++	 * determine each of the label values for this series. Also accepts function references.
++	 *
++	 * @property labelFunction
++	 * @type String
++	 */
++	labelFunction: null
++});
++
++/**
++ * StackedBarSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedBarSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.StackedBarSeries = function() 
++{
++	YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedBarSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "stackbar"
++});
++
++/**
++ * StackedColumnSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedColumnSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.StackedColumnSeries = function() 
++{
++	YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "stackcolumn"
++});
++YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/charts/charts-min.js b/pylons_app/public/js/yui/charts/charts-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/charts/charts-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.widget.Chart=function(I,F,A,J){this._type=I;this._dataSource=A;var B={align:"",allowNetworking:"",allowScriptAccess:"",base:"",bgcolor:"",menu:"",name:"",quality:"",salign:"",scale:"",tabindex:"",wmode:""};var D={fixedAttributes:{allowScriptAccess:"always"},flashVars:{allowedDomain:document.location.hostname},backgroundColor:"#ffffff",host:this,version:9.045};for(var E in J){if(B.hasOwnProperty(E)){D.fixedAttributes[E]=J[E];}else{D[E]=J[E];}}this._id=D.id=D.id||YAHOO.util.Dom.generateId(null,"yuigen");if(D.version&&D.version!=null&&D.version!=undefined&&D.version!="undefined"){var H=(/\w*.\w*/.exec(((D.version).toString()).replace(/.0./g,"."))).toString();var C=H.split(".");H=C[0]+".";switch((C[1].toString()).length){case 1:H+="00";break;case 2:H+="0";break;}H+=C[1];D.version=parseFloat(H);}this._swfURL=YAHOO.widget.Chart.SWFURL;this._containerID=F;this._attributes=D;this._swfEmbed=new YAHOO.widget.SWF(F,YAHOO.widget.Chart.SWFURL,D);this._swf=this._swfEmbed.swf;this._swfEmbed.subscribe("swfReady",this._eventHandler,this,true);try{this.createEvent("contentReady");}catch(G){}this.createEvent("itemMouseOverEvent");this.createEvent("itemMouseOutEvent");this.createEvent("itemClickEvent");this.createEvent("itemDoubleClickEvent");this.createEvent("itemDragStartEvent");this.createEvent("itemDragEvent");this.createEvent("itemDragEndEvent");};YAHOO.extend(YAHOO.widget.Chart,YAHOO.util.AttributeProvider,{_type:null,_pollingID:null,_pollingInterval:null,_dataTipFunction:null,_legendLabelFunction:null,_seriesFunctions:null,toString:function(){return"Chart "+this._id;},setStyle:function(A,B){B=YAHOO.lang.JSON.stringify(B);this._swf.setStyle(A,B);},setStyles:function(A){A=YAHOO.lang.JSON.stringify(A);this._swf.setStyles(A);},setSeriesStyles:function(B){for(var A=0;A<B.length;A++){B[A]=YAHOO.lang.JSON.stringify(B[A]);}this._swf.setSeriesStyles(B);},destroy:function(){if(this._dataSource!==null){if(this._pollingID!==null){this._dataSource.clearInterval(this._pollingID);this._pollingID=null;}}if(this._dataTipFunction){YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);}if(this._legendLabelFunction){YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);}if(this._swf){var B=YAHOO.util.Dom.get(this._containerID);B.removeChild(this._swf);}var A=this._id;for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}},_initAttributes:function(A){this.setAttributeConfig("altText",{method:this._setAltText,getter:this._getAltText});this.setAttributeConfig("swfURL",{getter:this._getSWFURL});this.setAttributeConfig("request",{method:this._setRequest,getter:this._getRequest});this.setAttributeConfig("dataSource",{method:this._setDataSource,getter:this._getDataSource});this.setAttributeConfig("series",{method:this._setSeriesDefs,getter:this._getSeriesDefs});this.setAttributeConfig("categoryNames",{validator:YAHOO.lang.isArray,method:this._setCategoryNames,getter:this._getCategoryNames});this.setAttributeConfig("dataTipFunction",{method:this._setDataTipFunction,getter:this._getDataTipFunction});this.setAttributeConfig("legendLabelFunction",{method:this._setLegendLabelFunction,getter:this._legendLabelFunction});this.setAttributeConfig("polling",{method:this._setPolling,getter:this._getPolling});},_eventHandler:function(A){if(A.type=="swfReady"){this._swf=this._swfEmbed._swf;this._loadHandler();this.fireEvent("contentReady");}},_loadHandler:function(){if(!this._swf||!this._swf.setType){return;}this._swf.setType(this._type);if(this._attributes.style){var A=this._attributes.style;this.setStyles(A);}this._initialized=false;this._initAttributes(this._attributes);this.setAttributes(this._attributes,true);this._initialized=true;if(this._dataSource){this.set("dataSource",this._dataSource);}},refreshData:function(){if(!this._initialized){return;}if(this._dataSource!==null){if(this._pollingID!==null){this._dataSource.clearInterval(this._pollingID);this._pollingID=null;}if(this._pollingInterval>0){this._pollingID=this._dataSource.setInterval(this._pollingInterval,this._request,this._loadDataHandler,this);}this._dataSource.sendRequest(this._request,this._loadDataHandler,this);}},_loadDataHandler:function(D,C,K){if(this._swf){if(K){}else{var H;if(this._seriesFunctions){var I=this._seriesFunctions.length;for(H=0;H<I;H++){YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[H]);}this._seriesFunctions=null;}this._seriesFunctions=[];var F=[];var E=0;var L=null;if(this._seriesDefs!==null){E=this._seriesDefs.length;for(H=0;H<E;H++){L=this._seriesDefs[H];var B={};for(var A in L){if(YAHOO.lang.hasOwnProperty(L,A)){if(A=="style"){if(L.style!==null){B.style=YAHOO.lang.JSON.stringify(L.style);}}else{if(A=="labelFunction"){if(L.labelFunction!==null){B.labelFunction=YAHOO.widget.Chart.getFunctionReference(L.labelFunction);this._seriesFunctions.push(B.labelFunction);}}else{if(A=="dataTipFunction"){if(L.dataTipFunction!==null){B.dataTipFunction=YAHOO.widget.Chart.getFunctionReference(L.dataTipFunction);this._seriesFunctions.push(B.dataTipFunction);}}else{if(A=="legendLabelFunction"){if(L.legendLabelFunction!==null){B.legendLabelFunction=YAHOO.widget.Chart.getFunctionReference(L.legendLabelFunction);this._seriesFunctions.push(B.legendLabelFunction);}}else{B[A]=L[A];}}}}}}F.push(B);}}if(E>0){for(H=0;H<E;H++){L=F[H];if(!L.type){L.type=this._type;}L.dataProvider=C.results;}}else{var G={type:this._type,dataProvider:C.results};F.push(G);}try{if(this._swf.setDataProvider){this._swf.setDataProvider(F);}}catch(J){this._swf.setDataProvider(F);}}}},_request:"",_getRequest:function(){return this._request;},_setRequest:function(A){this._request=A;this.refreshData();},_dataSource:null,_getDataSource:function(){return this._dataSource;},_setDataSource:function(A){this._dataSource=A;this.refreshData();},_seriesDefs:null,_getSeriesDefs:function(){return this._seriesDefs;},_setSeriesDefs:function(A){this._seriesDefs=A;this.refreshData();},_getCategoryNames:function(){return this._swf.getCategoryNames();},_setCategoryNames:function(A){this._swf.setCategoryNames(A);
++},_setDataTipFunction:function(A){if(this._dataTipFunction){YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);}if(A){this._dataTipFunction=A=YAHOO.widget.Chart.getFunctionReference(A);}this._swf.setDataTipFunction(A);},_setLegendLabelFunction:function(A){if(this._legendLabelFunction){YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);}if(A){this._legendLabelFunction=A=YAHOO.widget.Chart.getFunctionReference(A);}this._swf.setLegendLabelFunction(A);},_getPolling:function(){return this._pollingInterval;},_setPolling:function(A){this._pollingInterval=A;this.refreshData();},_swfEmbed:null,_swfURL:null,_containerID:null,_swf:null,_id:null,_initialized:false,_attributes:null,set:function(A,B){this._attributes[A]=B;YAHOO.widget.Chart.superclass.set.call(this,A,B);},_getSWFURL:function(){return this._swfURL;},_getAltText:function(){return this._swf.getAltText();},_setAltText:function(A){this._swf.setAltText(A);}});YAHOO.widget.Chart.proxyFunctionCount=0;YAHOO.widget.Chart.createProxyFunction=function(C,B){var B=B||null;var A=YAHOO.widget.Chart.proxyFunctionCount;YAHOO.widget.Chart["proxyFunction"+A]=function(){return C.apply(B,arguments);};YAHOO.widget.Chart.proxyFunctionCount++;return"YAHOO.widget.Chart.proxyFunction"+A.toString();};YAHOO.widget.Chart.getFunctionReference=function(B){if(typeof B=="function"){B=YAHOO.widget.Chart.createProxyFunction(B);}else{if(B.func&&typeof B.func=="function"){var A=[B.func];if(B.scope&&typeof B.scope=="object"){A.push(B.scope);}B=YAHOO.widget.Chart.createProxyFunction.apply(this,A);}}return B;};YAHOO.widget.Chart.removeProxyFunction=function(A){if(!A||A.indexOf("YAHOO.widget.Chart.proxyFunction")<0){return;}A=A.substr(26);YAHOO.widget.Chart[A]=null;};YAHOO.widget.Chart.SWFURL="assets/charts.swf";YAHOO.widget.PieChart=function(A,C,B){YAHOO.widget.PieChart.superclass.constructor.call(this,"pie",A,C,B);};YAHOO.lang.extend(YAHOO.widget.PieChart,YAHOO.widget.Chart,{_initAttributes:function(A){YAHOO.widget.PieChart.superclass._initAttributes.call(this,A);this.setAttributeConfig("dataField",{validator:YAHOO.lang.isString,method:this._setDataField,getter:this._getDataField});this.setAttributeConfig("categoryField",{validator:YAHOO.lang.isString,method:this._setCategoryField,getter:this._getCategoryField});},_getDataField:function(){return this._swf.getDataField();},_setDataField:function(A){this._swf.setDataField(A);},_getCategoryField:function(){return this._swf.getCategoryField();},_setCategoryField:function(A){this._swf.setCategoryField(A);}});YAHOO.widget.CartesianChart=function(C,A,D,B){YAHOO.widget.CartesianChart.superclass.constructor.call(this,C,A,D,B);};YAHOO.lang.extend(YAHOO.widget.CartesianChart,YAHOO.widget.Chart,{_xAxisLabelFunctions:[],_yAxisLabelFunctions:[],destroy:function(){this._removeAxisFunctions(this._xAxisLabelFunctions);this._removeAxisFunctions(this._yAxisLabelFunctions);YAHOO.widget.CartesianChart.superclass.destroy.call(this);},_initAttributes:function(A){YAHOO.widget.CartesianChart.superclass._initAttributes.call(this,A);this.setAttributeConfig("xField",{validator:YAHOO.lang.isString,method:this._setXField,getter:this._getXField});this.setAttributeConfig("yField",{validator:YAHOO.lang.isString,method:this._setYField,getter:this._getYField});this.setAttributeConfig("xAxis",{method:this._setXAxis});this.setAttributeConfig("xAxes",{method:this._setXAxes});this.setAttributeConfig("yAxis",{method:this._setYAxis});this.setAttributeConfig("yAxes",{method:this._setYAxes});this.setAttributeConfig("constrainViewport",{method:this._setConstrainViewport});},_getXField:function(){return this._swf.getHorizontalField();},_setXField:function(A){this._swf.setHorizontalField(A);},_getYField:function(){return this._swf.getVerticalField();},_setYField:function(A){this._swf.setVerticalField(A);},_getClonedAxis:function(A){var B={};for(var C in A){if(C=="labelFunction"){if(A.labelFunction&&A.labelFunction!==null){B.labelFunction=YAHOO.widget.Chart.getFunctionReference(A.labelFunction);}}else{B[C]=A[C];}}return B;},_removeAxisFunctions:function(C){if(C&&C.length>0){var A=C.length;for(var B=0;B<A;B++){if(C[B]!==null){YAHOO.widget.Chart.removeProxyFunction(C[B]);}}C=[];}},_setXAxis:function(A){if(A.position!="bottom"&&A.position!="top"){A.position="bottom";}this._removeAxisFunctions(this._xAxisLabelFunctions);A=this._getClonedAxis(A);this._xAxisLabelFunctions.push(A.labelFunction);this._swf.setHorizontalAxis(A);},_setXAxes:function(C){this._removeAxisFunctions(this._xAxisLabelFunctions);var A=C.length;for(var B=0;B<A;B++){if(C[B].position=="left"){C[B].position="bottom";}C[B]=this._getClonedAxis(C[B]);if(C[B].labelFunction){this._xAxisLabelFunctions.push(C[B].labelFunction);}this._swf.setHorizontalAxis(C[B]);}},_setYAxis:function(A){this._removeAxisFunctions(this._yAxisLabelFunctions);A=this._getClonedAxis(A);this._yAxisLabelFunctions.push(A.labelFunction);this._swf.setVerticalAxis(A);},_setYAxes:function(C){this._removeAxisFunctions(this._yAxisLabelFunctions);var A=C.length;for(var B=0;B<A;B++){C[B]=this._getClonedAxis(C[B]);if(C[B].labelFunction){this._yAxisLabelFunctions.push(C[B].labelFunction);}this._swf.setVerticalAxis(C[B]);}},_setConstrainViewport:function(A){this._swf.setConstrainViewport(A);},setSeriesStylesByIndex:function(A,B){B=YAHOO.lang.JSON.stringify(B);if(this._swf&&this._swf.setSeriesStylesByIndex){this._swf.setSeriesStylesByIndex(A,B);}}});YAHOO.widget.LineChart=function(A,C,B){YAHOO.widget.LineChart.superclass.constructor.call(this,"line",A,C,B);};YAHOO.lang.extend(YAHOO.widget.LineChart,YAHOO.widget.CartesianChart);YAHOO.widget.ColumnChart=function(A,C,B){YAHOO.widget.ColumnChart.superclass.constructor.call(this,"column",A,C,B);};YAHOO.lang.extend(YAHOO.widget.ColumnChart,YAHOO.widget.CartesianChart);YAHOO.widget.BarChart=function(A,C,B){YAHOO.widget.BarChart.superclass.constructor.call(this,"bar",A,C,B);};YAHOO.lang.extend(YAHOO.widget.BarChart,YAHOO.widget.CartesianChart);YAHOO.widget.StackedColumnChart=function(A,C,B){YAHOO.widget.StackedColumnChart.superclass.constructor.call(this,"stackcolumn",A,C,B);
++};YAHOO.lang.extend(YAHOO.widget.StackedColumnChart,YAHOO.widget.CartesianChart);YAHOO.widget.StackedBarChart=function(A,C,B){YAHOO.widget.StackedBarChart.superclass.constructor.call(this,"stackbar",A,C,B);};YAHOO.lang.extend(YAHOO.widget.StackedBarChart,YAHOO.widget.CartesianChart);YAHOO.widget.Axis=function(){};YAHOO.widget.Axis.prototype={type:null,reverse:false,labelFunction:null,labelSpacing:2,title:null};YAHOO.widget.NumericAxis=function(){YAHOO.widget.NumericAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.NumericAxis,YAHOO.widget.Axis,{type:"numeric",minimum:NaN,maximum:NaN,majorUnit:NaN,minorUnit:NaN,snapToUnits:true,stackingEnabled:false,alwaysShowZero:true,scale:"linear",roundMajorUnit:true,calculateByLabelSize:true,position:"left",adjustMaximumByMajorUnit:true,adjustMinimumByMajorUnit:true});YAHOO.widget.TimeAxis=function(){YAHOO.widget.TimeAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.TimeAxis,YAHOO.widget.Axis,{type:"time",minimum:null,maximum:null,majorUnit:NaN,majorTimeUnit:null,minorUnit:NaN,minorTimeUnit:null,snapToUnits:true,stackingEnabled:false,calculateByLabelSize:true});YAHOO.widget.CategoryAxis=function(){YAHOO.widget.CategoryAxis.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.CategoryAxis,YAHOO.widget.Axis,{type:"category",categoryNames:null,calculateCategoryCount:false});YAHOO.widget.Series=function(){};YAHOO.widget.Series.prototype={type:null,displayName:null};YAHOO.widget.CartesianSeries=function(){YAHOO.widget.CartesianSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.CartesianSeries,YAHOO.widget.Series,{xField:null,yField:null,axis:"primary",showInLegend:true});YAHOO.widget.ColumnSeries=function(){YAHOO.widget.ColumnSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.ColumnSeries,YAHOO.widget.CartesianSeries,{type:"column"});YAHOO.widget.LineSeries=function(){YAHOO.widget.LineSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.LineSeries,YAHOO.widget.CartesianSeries,{type:"line"});YAHOO.widget.BarSeries=function(){YAHOO.widget.BarSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.BarSeries,YAHOO.widget.CartesianSeries,{type:"bar"});YAHOO.widget.PieSeries=function(){YAHOO.widget.PieSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.PieSeries,YAHOO.widget.Series,{type:"pie",dataField:null,categoryField:null,labelFunction:null});YAHOO.widget.StackedBarSeries=function(){YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.StackedBarSeries,YAHOO.widget.CartesianSeries,{type:"stackbar"});YAHOO.widget.StackedColumnSeries=function(){YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);};YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries,YAHOO.widget.CartesianSeries,{type:"stackcolumn"});YAHOO.register("charts",YAHOO.widget.Chart,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/charts/charts.js b/pylons_app/public/js/yui/charts/charts.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/charts/charts.js
+@@ -0,0 +1,2060 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Charts widget provides a Flash control for displaying data
++ * graphically by series across A-grade browsers with Flash Player installed.
++ *
++ * @module charts
++ * @requires yahoo, dom, event, datasource
++ * @title Charts Widget
++ * @experimental
++ */
++ 
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Chart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class Chart
++ * @uses YAHOO.util.AttributeProvider
++ * @constructor
++ * @param type {String} The char type. May be "line", "column", "bar", or "pie"
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.Chart = function(type, containerId, dataSource, configurationAttributes)
++{
++	this._type = type;
++	this._dataSource = dataSource;
++		
++	var possibleParams = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
++	var attributes = {fixedAttributes:{allowScriptAccess:"always"}, flashVars:{allowedDomain : document.location.hostname}, backgroundColor:"#ffffff", host:this, version:9.045};
++	
++	for(var i in configurationAttributes)
++	{
++		if(possibleParams.hasOwnProperty(i))
++		{
++			attributes.fixedAttributes[i] = configurationAttributes[i];
++		}
++		else
++		{
++			attributes[i] = configurationAttributes[i];
++		}
++	}
++	
++	this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
++	
++	if(attributes.version && attributes.version != null && attributes.version != undefined && attributes.version != "undefined")
++	{ 
++		var version = (/\w*.\w*/.exec(((attributes.version).toString()).replace(/.0./g, "."))).toString();
++		var verSplit = version.split(".");
++		version = verSplit[0] + ".";
++		switch((verSplit[1].toString()).length)
++		{
++			case 1: 
++				version += "00";
++			break;
++			case 2:
++				version += "0";
++			break;	
++		} 
++		version += verSplit[1];
++		attributes.version = parseFloat(version); 
++	}
++	
++	this._swfURL = YAHOO.widget.Chart.SWFURL;
++	this._containerID = containerId;
++	
++	this._attributes = attributes
++	this._swfEmbed = new YAHOO.widget.SWF(containerId, YAHOO.widget.Chart.SWFURL, attributes);
++	
++	this._swf = this._swfEmbed.swf;
++	this._swfEmbed.subscribe("swfReady", this._eventHandler, this, true);
++			
++	/**
++	 * Fires when the SWF is initialized and communication is possible.
++	 * @event contentReady
++	 */
++	//Fix for iframe cross-domain issue with FF2x 
++	try
++	{
++		this.createEvent("contentReady");
++	}
++	catch(e){}
++	
++	/**
++	 * Fires when the user moves the mouse over the bounds of an item renderer in the chart.
++	 *
++	 * @event itemMouseOverEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemMouseOverEvent");
++	
++	/**
++	 * Fires when the user moves the mouse out of the bounds of an item renderer in the chart.
++	 *
++	 * @event itemMouseOutEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemMouseOutEvent");
++	
++	/**
++	 * Fires when the user clicks an item renderer in the chart with the mouse.
++	 *
++	 * @event itemClickEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemClickEvent");
++	
++	/**
++	 * Fires when the user double-clicks an item renderer in the chart with the mouse.
++	 *
++	 * @event itemDoubleClickEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDoubleClickEvent");
++	
++	/**
++	 * Fires when the user presses the mouse down on an item to initiate a drag action.
++	 *
++	 * @event itemDragStartEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDragStartEvent");
++	
++	/**
++	 * Fires when the user moves the mouse during a drag action.
++	 *
++	 * @event itemDragEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDragEvent");
++
++	/**
++	 * Fires when the user releases the mouse during a drag action.
++	 *
++	 * @event itemDragEndEvent
++	 * @param event.type {String} The event type
++	 * @param event.item {Object} The data displayed by the renderer
++	 * @param event.index {Number} The position within the series that the item appears.
++	 * @param event.seriesIndex {Number} The position within the series definition that the series appears.
++	 * @param event.x {Number} The horizontal position of the mouse, relative to the SWF.
++	 * @param event.y {Number} The vertical position of the mouse, relative to the SWF.
++	 */
++	this.createEvent("itemDragEndEvent");
++};
++
++YAHOO.extend(YAHOO.widget.Chart, YAHOO.util.AttributeProvider,
++{
++	/**
++	 * The type of this chart instance.
++	 * @property _type
++	 * @type String
++	 * @private
++	 */
++	_type: null,
++
++	/**
++	 * The id returned from the DataSource's setInterval function.
++	 * @property _pollingID
++	 * @type Number
++	 * @private
++	 */
++	_pollingID: null,
++
++	/**
++	 * The time, in ms, between requests for data.
++	 * @property _pollingInterval
++	 * @type Number
++	 * @private
++	 */
++	_pollingInterval: null,
++
++	/**
++	 * Stores a reference to the dataTipFunction created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _dataTipFunction
++	 * @type String
++	 * @private
++	 */
++	_dataTipFunction: null,
++	
++	/**
++	 * Stores a reference to the legendLabelFunction created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _legendLabelFunction
++	 * @type String
++	 * @private
++	 */
++	_legendLabelFunction: null,	
++	
++	/**
++	 * Stores references to series function values created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _seriesFunctions
++	 * @type Array
++	 * @private
++	 */
++	_seriesFunctions: null,
++
++	/**
++	 * Public accessor to the unique name of the Chart instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the Chart instance.
++	 */
++	toString: function()
++	{
++		return "Chart " + this._id;
++	},
++	
++	/**
++	 * Sets a single style value on the Chart instance.
++	 *
++	 * @method setStyle
++	 * @param name {String} Name of the Chart style value to change.
++	 * @param value {Object} New value to pass to the Chart style.
++	 */
++	setStyle: function(name, value)
++	{
++		//we must jsonify this because Flash Player versions below 9.0.60 don't handle
++		//complex ExternalInterface parsing correctly
++		value = YAHOO.lang.JSON.stringify(value);
++		this._swf.setStyle(name, value);
++	},
++	
++	/**
++	 * Resets all styles on the Chart instance.
++	 *
++	 * @method setStyles
++	 * @param styles {Object} Initializer for all Chart styles.
++	 */
++	setStyles: function(styles)
++	{
++		//we must jsonify this because Flash Player versions below 9.0.60 don't handle
++		//complex ExternalInterface parsing correctly
++		styles = YAHOO.lang.JSON.stringify(styles);
++		this._swf.setStyles(styles);
++	},
++	
++	/**
++	 * Sets the styles on all series in the Chart.
++	 *
++	 * @method setSeriesStyles
++	 * @param styles {Array} Initializer for all Chart series styles.
++	 */
++	setSeriesStyles: function(styles)
++	{
++		//we must jsonify this because Flash Player versions below 9.0.60 don't handle
++		//complex ExternalInterface parsing correctly
++		for(var i = 0; i < styles.length; i++)
++		{
++			styles[i] = YAHOO.lang.JSON.stringify(styles[i]);	
++		}
++		this._swf.setSeriesStyles(styles);
++	},
++	
++	destroy: function()
++	{
++		//stop polling if needed
++		if(this._dataSource !== null)
++		{
++			if(this._pollingID !== null)
++			{
++				this._dataSource.clearInterval(this._pollingID);
++				this._pollingID = null;
++			}
++		}
++		
++		//remove proxy functions
++		if(this._dataTipFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
++		}
++		
++		if(this._legendLabelFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
++		}
++		
++		//kill the Flash Player instance
++		if(this._swf)
++		{
++			var container = YAHOO.util.Dom.get(this._containerID);
++			container.removeChild(this._swf);
++		}
++		
++		var instanceName = this._id;
++		
++		//null out properties
++		for(var prop in this)
++		{
++			if(YAHOO.lang.hasOwnProperty(this, prop))
++			{
++				this[prop] = null;
++			}
++		}
++	},
++	
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{
++		//YAHOO.widget.Chart.superclass._initAttributes.call(this, attributes);
++		/**
++		 * @attribute wmode
++		 * @description Sets the window mode of the Flash Player control. May be
++		 *		"window", "opaque", or "transparent". Only available in the constructor
++		 *		because it may not be set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute expressInstall
++		 * @description URL pointing to a SWF file that handles Flash Player's express
++		 *		install feature. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute version
++		 * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute backgroundColor
++		 * @description The background color of the SWF. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute altText
++		 * @description The alternative text to provide for screen readers and other assistive technology.
++		 * @type String
++		 */
++		this.setAttributeConfig("altText",
++		{
++			method: this._setAltText,
++			getter: this._getAltText
++			
++		});
++		
++		/**
++		 * @attribute swfURL
++		 * @description Absolute or relative URL to the SWF displayed by the Chart. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		this.setAttributeConfig("swfURL",
++		{
++			getter: this._getSWFURL
++		});		
++
++		/**
++		 * @attribute request
++		 * @description Request to be sent to the Chart's DataSource.
++		 * @type String
++		 */
++		this.setAttributeConfig("request",
++		{
++			method: this._setRequest,
++			getter: this._getRequest
++		});
++		
++		/**
++		 * @attribute dataSource
++		 * @description The DataSource instance to display in the Chart.
++		 * @type DataSource
++		 */
++		this.setAttributeConfig("dataSource",
++		{
++			method: this._setDataSource,
++			getter: this._getDataSource
++		});
++		
++		/**
++		 * @attribute series
++		 * @description Defines the series to be displayed by the Chart.
++		 * @type Array
++		 */
++		this.setAttributeConfig("series",
++		{
++			method: this._setSeriesDefs,
++			getter: this._getSeriesDefs
++		});
++		
++		/**
++		 * @attribute categoryNames
++		 * @description Defines the names of the categories to be displayed in the Chart..
++		 * @type Array
++		 */
++		this.setAttributeConfig("categoryNames",
++		{
++			validator: YAHOO.lang.isArray,
++			method: this._setCategoryNames,
++			getter: this._getCategoryNames
++		});
++		
++		/**
++		 * @attribute dataTipFunction
++		 * @description The string representation of a globally-accessible function
++		 * that may be called by the SWF to generate the datatip text for a Chart's item.
++		 * @type String
++		 */
++		this.setAttributeConfig("dataTipFunction",
++		{
++			method: this._setDataTipFunction,
++			getter: this._getDataTipFunction
++		});
++		
++		/**
++		 * @attribute legendLabelFunction
++		 * @description The string representation of a globally-accessible function
++		 * that may be called by the SWF to format the labels of a Chart's legend.
++		 * @type String
++		 */	
++		this.setAttributeConfig("legendLabelFunction",
++		{
++			method: this._setLegendLabelFunction,
++			getter: this._legendLabelFunction
++		});
++
++		/**
++		 * @attribute polling
++		 * @description A numeric value indicating the number of milliseconds between
++		 * polling requests to the DataSource.
++		 * @type Number
++		 */
++		this.setAttributeConfig("polling",
++		{
++			method: this._setPolling,
++			getter: this._getPolling
++		});
++	},
++	
++	/**
++	 * Handles swfReady event from SWF.
++	 *
++	 * @method _eventHandler
++	 * @private
++	 */
++	_eventHandler: function(event)
++	{ 
++		if(event.type == "swfReady")
++		{
++   			this._swf = this._swfEmbed._swf;
++			this._loadHandler();
++   			this.fireEvent("contentReady");
++		}
++	},	
++	
++	/**
++	 * Called when the SWF is ready for communication. Sets the type, initializes
++	 * the styles, and sets the DataSource.
++	 *
++	 * @method _loadHandler
++	 * @private
++	 */
++	_loadHandler: function()
++	{
++		//the type is set separately because it must be first!
++		if(!this._swf || !this._swf.setType) return;
++		this._swf.setType(this._type);
++
++
++		//set initial styles
++		if(this._attributes.style)
++		{
++			var style = this._attributes.style;
++			this.setStyles(style);		
++		}
++
++		this._initialized = false;
++
++		this._initAttributes(this._attributes);
++		this.setAttributes(this._attributes, true);
++
++		this._initialized = true;
++		if(this._dataSource)
++		{
++			this.set("dataSource", this._dataSource);
++		}
++	},	
++
++	/**
++	 * Sends (or resends) the request to the DataSource.
++	 *
++	 * @method refreshData
++	 */
++	refreshData: function()
++	{
++		if(!this._initialized)
++		{
++			return;
++		}
++		
++		if(this._dataSource !== null)
++		{
++			if(this._pollingID !== null)
++			{
++				this._dataSource.clearInterval(this._pollingID);
++				this._pollingID = null;
++			}
++			
++			if(this._pollingInterval > 0)
++			{
++				this._pollingID = this._dataSource.setInterval(this._pollingInterval, this._request, this._loadDataHandler, this);
++			}
++			this._dataSource.sendRequest(this._request, this._loadDataHandler, this);
++		}
++	},
++
++	/**
++	 * Called when the DataSource receives new data. The series definitions are used
++	 * to build a data provider for the SWF chart.
++	 *
++	 * @method _loadDataHandler
++	 * @private
++	 */
++	_loadDataHandler: function(request, response, error)
++	{
++		if(this._swf)
++		{
++			if(error)
++			{
++			}
++			else
++			{
++				var i;
++				if(this._seriesFunctions)
++				{
++					var count = this._seriesFunctions.length;
++					for(i = 0; i < count; i++)
++					{
++						YAHOO.widget.Chart.removeProxyFunction(this._seriesFunctions[i]);
++					}
++					this._seriesFunctions = null;
++				}
++				this._seriesFunctions = [];
++
++				//make a copy of the series definitions so that we aren't
++				//editing them directly.
++				var dataProvider = [];	
++				var seriesCount = 0;
++				var currentSeries = null;
++				if(this._seriesDefs !== null)
++				{
++					seriesCount = this._seriesDefs.length;
++					for(i = 0; i < seriesCount; i++)
++					{
++						currentSeries = this._seriesDefs[i];
++						var clonedSeries = {};
++						for(var prop in currentSeries)
++						{
++							if(YAHOO.lang.hasOwnProperty(currentSeries, prop))
++							{
++								if(prop == "style")
++								{
++									if(currentSeries.style !== null)
++									{
++										clonedSeries.style = YAHOO.lang.JSON.stringify(currentSeries.style);
++									}
++								}
++
++								else if(prop == "labelFunction")
++								{
++									if(currentSeries.labelFunction !== null)
++									{	
++										clonedSeries.labelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.labelFunction);
++										this._seriesFunctions.push(clonedSeries.labelFunction);
++									}
++								}
++
++								else if(prop == "dataTipFunction")
++								{
++									if(currentSeries.dataTipFunction !== null)
++									{
++										clonedSeries.dataTipFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.dataTipFunction);
++										this._seriesFunctions.push(clonedSeries.dataTipFunction);
++									}	
++								}
++								
++								else if(prop == "legendLabelFunction")
++								{
++									if(currentSeries.legendLabelFunction !== null)
++									{
++										clonedSeries.legendLabelFunction = YAHOO.widget.Chart.getFunctionReference(currentSeries.legendLabelFunction);
++										this._seriesFunctions.push(clonedSeries.legendLabelFunction); 
++									}	
++								}								
++
++								else
++								{
++									clonedSeries[prop] = currentSeries[prop];
++								}
++							}
++						}
++						dataProvider.push(clonedSeries);
++					}
++				}
++
++				if(seriesCount > 0)
++				{
++					for(i = 0; i < seriesCount; i++)
++					{
++						currentSeries = dataProvider[i];
++						if(!currentSeries.type)
++						{
++							currentSeries.type = this._type;
++						}
++						currentSeries.dataProvider = response.results;
++					}
++				}
++				else
++				{
++					var series = {type: this._type, dataProvider: response.results};
++					dataProvider.push(series);
++				}
++				try
++				{
++					if(this._swf.setDataProvider) this._swf.setDataProvider(dataProvider);
++				}
++				catch(e)
++				{
++					this._swf.setDataProvider(dataProvider);
++				}
++			}
++		}
++	},
++
++	/**
++	 * Storage for the request attribute.
++	 * 
++	 * @property _request
++	 * @private
++	 */
++	_request: "",
++	
++	/**
++	 * Getter for the request attribute.
++	 *
++	 * @method _getRequest
++	 * @private
++	 */
++	_getRequest: function()
++	{
++		return this._request;
++	},
++	
++	/**
++	 * Setter for the request attribute.
++	 *
++	 * @method _setRequest
++	 * @private
++	 */
++	_setRequest: function(value)
++	{
++		this._request = value;
++		this.refreshData();
++	},
++
++	/**
++	 * Storage for the dataSource attribute.
++	 * 
++	 * @property _dataSource
++	 * @private
++	 */
++	_dataSource: null,
++	
++	/**
++	 * Getter for the dataSource attribute.
++	 *
++	 * @method _getDataSource
++	 * @private
++	 */
++	_getDataSource: function()
++	{
++		return this._dataSource;
++	},
++
++	/**
++	 * Setter for the dataSource attribute.
++	 *
++	 * @method _setDataSource
++	 * @private
++	 */
++	_setDataSource: function(value)
++	{	
++		this._dataSource = value;
++		this.refreshData();
++	},
++	
++	/**
++	 * Storage for the series attribute.
++	 * 
++	 * @property _seriesDefs
++	 * @private
++	 */
++	_seriesDefs: null,
++	
++	/**
++	 * Getter for the series attribute.
++	 *
++	 * @method _getSeriesDefs
++	 * @private
++	 */
++	_getSeriesDefs: function()
++	{
++		return this._seriesDefs;
++	},
++	
++	/**
++	 * Setter for the series attribute.
++	 *
++	 * @method _setSeriesDefs
++	 * @private
++	 */
++	_setSeriesDefs: function(value)
++	{
++		this._seriesDefs = value;
++		this.refreshData();
++	},
++
++	/**
++	 * Getter for the categoryNames attribute.
++	 *
++	 * @method _getCategoryNames
++	 * @private
++	 */
++	_getCategoryNames: function()
++	{
++		return this._swf.getCategoryNames();
++	},
++
++	/**
++	 * Setter for the categoryNames attribute.
++	 *
++	 * @method _setCategoryNames
++	 * @private
++	 */
++	_setCategoryNames: function(value)
++	{
++		this._swf.setCategoryNames(value);
++	},
++	
++	/**
++	 * Setter for the dataTipFunction attribute.
++	 *
++	 * @method _setDataTipFunction
++	 * @private
++	 */
++	_setDataTipFunction: function(value)
++	{
++		if(this._dataTipFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._dataTipFunction);
++		}
++		
++		if(value)
++		{
++			this._dataTipFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
++		}
++		this._swf.setDataTipFunction(value);
++	},
++	
++	/**
++	 * Setter for the legendLabelFunction attribute.
++	 *
++	 * @method _setLegendLabelFunction
++	 * @private
++	 */
++	_setLegendLabelFunction: function(value)
++	{
++		if(this._legendLabelFunction)
++		{
++			YAHOO.widget.Chart.removeProxyFunction(this._legendLabelFunction);
++		}
++		
++		if(value)
++		{
++			this._legendLabelFunction = value = YAHOO.widget.Chart.getFunctionReference(value);
++		}
++		this._swf.setLegendLabelFunction(value);
++	},
++
++	/**
++	 * Getter for the polling attribute.
++	 *
++	 * @method _getPolling
++	 * @private
++	 */
++	_getPolling: function()
++	{
++		return this._pollingInterval;
++	},
++
++	/**
++	 * Setter for the polling attribute.
++	 *
++	 * @method _setPolling
++	 * @private
++	 */
++	_setPolling: function(value)
++	{
++		this._pollingInterval = value;
++		this.refreshData();
++	},
++
++	/**
++	 * The javascript wrapper for the swf object
++	 *
++	 * @property _swfEmbed
++	 * @type swf
++	 * @private
++	 */
++	_swfEmbed: null,
++	
++	/**
++	 * The URL of the SWF file.
++	 * @property _swfURL
++	 * @type String
++	 * @private
++	 */
++	_swfURL: null,
++
++	/**
++	 * The ID of the containing DIV.
++	 * @property _containerID
++	 * @type String
++	 * @private
++	 */
++	_containerID: null,
++
++	/**
++	 * A reference to the embedded SWF file.
++	 * @property _swf
++	 * @private
++	 */
++	_swf: null,
++
++	/**
++	 * The id of this instance.
++	 * @property _id
++	 * @type String
++	 * @private
++	 */
++	_id: null,
++
++	/**
++	 * Indicates whether the SWF has been initialized and is ready
++	 * to communicate with JavaScript
++	 * @property _initialized
++	 * @type Boolean
++	 * @private
++	 */
++	_initialized: false,
++	
++	/**
++	 * The initializing attributes are stored here until the SWF is ready.
++	 * @property _attributes
++	 * @type Object
++	 * @private
++	 */
++	_attributes: null, //the intializing attributes
++	
++	set: function(name, value)
++	{
++		//save all the attributes in case the swf reloads
++		//so that we can pass them in again
++		this._attributes[name] = value;
++		YAHOO.widget.Chart.superclass.set.call(this, name, value);
++	},
++	
++	/**
++	 * Getter for swfURL attribute.
++	 *
++	 * @method _getSWFURL
++	 * @private
++	 */
++	_getSWFURL: function()
++	{
++		return this._swfURL;
++	},
++	
++	/**
++	 * Getter for altText attribute.
++	 *
++	 * @method _getAltText
++	 * @private
++	 */
++	_getAltText: function()
++	{
++		return this._swf.getAltText();
++	},
++
++	/**
++	 * Setter for altText attribute.
++	 *
++	 * @method _setAltText
++	 * @private
++	 */
++	_setAltText: function(value)
++	{
++	 	this._swf.setAltText(value);
++	}
++});
++
++/**
++ * The number of proxy functions that have been created.
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.proxyFunctionCount = 0;
++
++/**
++ * Creates a globally accessible function that wraps a function reference.
++ * Returns the proxy function's name as a string for use by the SWF through
++ * ExternalInterface.
++ *
++ * @method YAHOO.widget.Chart.createProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.createProxyFunction = function(func, scope)
++{
++	var scope = scope || null;
++	var index = YAHOO.widget.Chart.proxyFunctionCount;
++	YAHOO.widget.Chart["proxyFunction" + index] = function()
++	{
++		return func.apply(scope, arguments);
++	};
++	YAHOO.widget.Chart.proxyFunctionCount++;
++	return "YAHOO.widget.Chart.proxyFunction" + index.toString();
++};
++
++/**
++ * Uses YAHOO.widget.Chart.createProxyFunction to return string
++ * reference to a function. 
++ *
++ * @method YAHOO.widget.Chart.getFunctionReference
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.getFunctionReference = function(value)
++{
++	if(typeof value == "function")
++	{
++		value = YAHOO.widget.Chart.createProxyFunction(value);
++	}
++	else if(value.func && typeof value.func == "function")
++	{
++		var args = [value.func];
++		if(value.scope && typeof value.scope == "object")
++		{
++			args.push(value.scope);
++		}
++		value = YAHOO.widget.Chart.createProxyFunction.apply(this, args);
++	}
++	return value;	
++}
++
++/**
++ * Removes a function created with createProxyFunction()
++ * 
++ * @method YAHOO.widget.Chart.removeProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.Chart.removeProxyFunction = function(funcName)
++{
++	//quick error check
++	if(!funcName || funcName.indexOf("YAHOO.widget.Chart.proxyFunction") < 0)
++	{
++		return;
++	}
++	
++	funcName = funcName.substr(26);
++	YAHOO.widget.Chart[funcName] = null;
++};
++
++/**
++ * Storage for the dataTipFunction attribute.
++ *
++ * @property Chart.SWFURL
++ * @private
++ * @static
++ * @final
++ * @default "assets/charts.swf"
++ */
++YAHOO.widget.Chart.SWFURL = "assets/charts.swf";
++/**
++ * PieChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class PieChart
++ * @uses YAHOO.widget.Chart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.PieChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.PieChart.superclass.constructor.call(this, "pie", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.PieChart, YAHOO.widget.Chart,
++{
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{	
++		YAHOO.widget.PieChart.superclass._initAttributes.call(this, attributes);
++		
++		/**
++		 * @attribute dataField
++		 * @description The field in each item that corresponds to the data value.
++		 * @type String
++		 */
++		this.setAttributeConfig("dataField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setDataField,
++			getter: this._getDataField
++		});
++   
++		/**
++		 * @attribute categoryField
++		 * @description The field in each item that corresponds to the category value.
++		 * @type String
++		 */
++		this.setAttributeConfig("categoryField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setCategoryField,
++			getter: this._getCategoryField
++		});
++	},
++
++	/**
++	 * Getter for the dataField attribute.
++	 *
++	 * @method _getDataField
++	 * @private
++	 */
++	_getDataField: function()
++	{
++		return this._swf.getDataField();
++	},
++
++	/**
++	 * Setter for the dataField attribute.
++	 *
++	 * @method _setDataField
++	 * @private
++	 */
++	_setDataField: function(value)
++	{
++		this._swf.setDataField(value);
++	},
++
++	/**
++	 * Getter for the categoryField attribute.
++	 *
++	 * @method _getCategoryField
++	 * @private
++	 */
++	_getCategoryField: function()
++	{
++		return this._swf.getCategoryField();
++	},
++
++	/**
++	 * Setter for the categoryField attribute.
++	 *
++	 * @method _setCategoryField
++	 * @private
++	 */
++	_setCategoryField: function(value)
++	{
++		this._swf.setCategoryField(value);
++	}
++});
++/**
++ * CartesianChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class CartesianChart
++ * @uses YAHOO.widget.Chart
++ * @constructor
++ * @param type {String} The char type. May be "line", "column", or "bar"
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++ YAHOO.widget.CartesianChart = function(type, containerId, dataSource, attributes)
++{
++	YAHOO.widget.CartesianChart.superclass.constructor.call(this, type, containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.CartesianChart, YAHOO.widget.Chart,
++{
++	/**
++	 * Stores a reference to the xAxis labelFunction created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _xAxisLabelFunctions
++	 * @type String
++	 * @private
++	 */
++	_xAxisLabelFunctions: [],
++	
++	/**
++	 * Stores a reference to the yAxis labelFunctions created by
++	 * YAHOO.widget.Chart.createProxyFunction()
++	 * @property _yAxisLabelFunctions
++	 * @type Array
++	 * @private
++	 */
++	_yAxisLabelFunctions: [],
++	
++	destroy: function()
++	{
++		//remove proxy functions
++		this._removeAxisFunctions(this._xAxisLabelFunctions);
++		this._removeAxisFunctions(this._yAxisLabelFunctions);
++		
++		//call last
++		YAHOO.widget.CartesianChart.superclass.destroy.call(this);
++	},
++	
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{	
++		YAHOO.widget.CartesianChart.superclass._initAttributes.call(this, attributes);
++		
++		/**
++		 * @attribute xField
++		 * @description The field in each item that corresponds to a value on the x axis.
++		 * @type String
++		 */
++		this.setAttributeConfig("xField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setXField,
++			getter: this._getXField
++		});
++
++		/**
++		 * @attribute yField
++		 * @description The field in each item that corresponds to a value on the x axis.
++		 * @type String
++		 */
++		this.setAttributeConfig("yField",
++		{
++			validator: YAHOO.lang.isString,
++			method: this._setYField,
++			getter: this._getYField
++		});
++
++		/**
++		 * @attribute xAxis
++		 * @description A custom configuration for the horizontal x axis.
++		 * @type Axis
++		 */
++		this.setAttributeConfig("xAxis",
++		{
++			method: this._setXAxis
++		});
++		
++		/**
++		 * @attribute xAxes
++		 * @description Custom configurations for the horizontal x axes.
++		 * @type Array
++		 */		
++		this.setAttributeConfig("xAxes",
++		{
++			method: this._setXAxes
++		});	
++
++		/**
++		 * @attribute yAxis
++		 * @description A custom configuration for the vertical y axis.
++		 * @type Axis
++		 */
++		this.setAttributeConfig("yAxis",
++		{
++			method: this._setYAxis
++		});
++		
++		/**
++		 * @attribute yAxes
++		 * @description Custom configurations for the vertical y axes.
++		 * @type Array
++		 */		
++		this.setAttributeConfig("yAxes",
++		{
++			method: this._setYAxes
++		});	
++		
++		/**
++		 * @attribute constrainViewport
++		 * @description Determines whether the viewport is constrained to prevent series data from overflow.
++		 * @type Boolean
++		 */
++		this.setAttributeConfig("constrainViewport",
++		{
++			method: this._setConstrainViewport
++		});	
++	},
++
++	/**
++	 * Getter for the xField attribute.
++	 *
++	 * @method _getXField
++	 * @private
++	 */
++	_getXField: function()
++	{
++		return this._swf.getHorizontalField();
++	},
++
++	/**
++	 * Setter for the xField attribute.
++	 *
++	 * @method _setXField
++	 * @private
++	 */
++	_setXField: function(value)
++	{
++		this._swf.setHorizontalField(value);
++	},
++
++	/**
++	 * Getter for the yField attribute.
++	 *
++	 * @method _getYField
++	 * @private
++	 */
++	_getYField: function()
++	{
++		return this._swf.getVerticalField();
++	},
++
++	/**
++	 * Setter for the yField attribute.
++	 *
++	 * @method _setYField
++	 * @private
++	 */
++	_setYField: function(value)
++	{
++		this._swf.setVerticalField(value);
++	},
++	
++	/**
++	 * Receives an axis object, creates a proxy function for 
++	 * the labelFunction and returns the updated object. 
++	 *
++	 * @method _getClonedAxis
++	 * @private
++	 */
++	_getClonedAxis: function(value)
++	{
++		var clonedAxis = {};
++		for(var prop in value)
++		{
++			if(prop == "labelFunction")
++			{
++				if(value.labelFunction && value.labelFunction !== null)
++				{
++					clonedAxis.labelFunction = YAHOO.widget.Chart.getFunctionReference(value.labelFunction);
++				}
++			}
++			else
++			{
++				clonedAxis[prop] = value[prop];
++			}
++		}
++		return clonedAxis;
++	},
++	
++	/**
++	 * Removes axis functions contained in an array
++	 * 
++	 * @method _removeAxisFunctions
++	 * @private
++	 */
++	_removeAxisFunctions: function(axisFunctions)
++	{
++		if(axisFunctions && axisFunctions.length > 0)
++		{
++			var len = axisFunctions.length;
++			for(var i = 0; i < len; i++)
++			{
++				if(axisFunctions[i] !== null)
++				{
++					YAHOO.widget.Chart.removeProxyFunction(axisFunctions[i]);
++				}
++			}
++			axisFunctions = [];
++		}
++	},	
++	
++	/**
++	 * Setter for the xAxis attribute.
++	 *
++	 * @method _setXAxis
++	 * @private
++	 */
++	_setXAxis: function(value)
++	{
++		if(value.position != "bottom" && value.position != "top") value.position = "bottom";
++		this._removeAxisFunctions(this._xAxisLabelFunctions);
++		value = this._getClonedAxis(value);
++		this._xAxisLabelFunctions.push(value.labelFunction);
++		this._swf.setHorizontalAxis(value);
++	},
++	
++	/**
++	 * Setter for the xAxes attribute
++	 *
++	 * @method _setXAxes
++	 * @private
++	 */
++	_setXAxes: function(value)
++	{
++		this._removeAxisFunctions(this._xAxisLabelFunctions);
++		var len = value.length;
++		for(var i = 0; i < len; i++)
++		{
++			if(value[i].position == "left") value[i].position = "bottom";
++			value[i] = this._getClonedAxis(value[i]);
++			if(value[i].labelFunction) this._xAxisLabelFunctions.push(value[i].labelFunction);
++			this._swf.setHorizontalAxis(value[i]);
++		}
++	},
++
++	/**
++	 * Setter for the yAxis attribute.
++	 *
++	 * @method _setYAxis
++	 * @private
++	 */
++	_setYAxis: function(value)
++	{
++		this._removeAxisFunctions(this._yAxisLabelFunctions);
++		value = this._getClonedAxis(value);
++		this._yAxisLabelFunctions.push(value.labelFunction);		
++		this._swf.setVerticalAxis(value);
++	},
++	
++	/**
++	 * Setter for the yAxes attribute.
++	 *
++	 * @method _setYAxes
++	 * @private
++	 */	
++	_setYAxes: function(value)
++	{
++		this._removeAxisFunctions(this._yAxisLabelFunctions);
++		var len = value.length;
++		for(var i = 0; i < len; i++)
++		{
++			value[i] = this._getClonedAxis(value[i]);
++			if(value[i].labelFunction) this._yAxisLabelFunctions.push(value[i].labelFunction);
++			this._swf.setVerticalAxis(value[i]);
++		}		
++	},
++	
++	/**
++	 * Setter for the constrainViewport attribute
++	 *
++	 * @method _setConstrainViewport
++	 * @private
++	 */
++	_setConstrainViewport: function(value)
++	{
++		this._swf.setConstrainViewport(value);
++	},
++	
++	/**
++	 * Sets the style object for a single series based on its index
++	 * 
++	 * @method setSeriesStylesByIndex
++	 * @param index {Number} The position within the series definition to apply the style
++	 * @param style {object} Style object to be applied to the selected series
++	 */
++	setSeriesStylesByIndex:function(index, style)
++	{
++		style = YAHOO.lang.JSON.stringify(style);
++		if(this._swf && this._swf.setSeriesStylesByIndex) this._swf.setSeriesStylesByIndex(index, style);
++	}
++});
++/**
++ * LineChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class LineChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.LineChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.LineChart.superclass.constructor.call(this, "line", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.LineChart, YAHOO.widget.CartesianChart);
++
++/**
++ * ColumnChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class ColumnChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.ColumnChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.ColumnChart.superclass.constructor.call(this, "column", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.ColumnChart, YAHOO.widget.CartesianChart);
++
++/**
++ * BarChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class BarChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.BarChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.BarChart.superclass.constructor.call(this, "bar", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.BarChart, YAHOO.widget.CartesianChart);
++
++/**
++ * StackedColumnChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedColumnChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.StackedColumnChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.StackedColumnChart.superclass.constructor.call(this, "stackcolumn", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedColumnChart, YAHOO.widget.CartesianChart);
++
++/**
++ * StackedBarChart class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedBarChart
++ * @uses YAHOO.widget.CartesianChart
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param dataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param attributes {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.StackedBarChart = function(containerId, dataSource, attributes)
++{
++	YAHOO.widget.StackedBarChart.superclass.constructor.call(this, "stackbar", containerId, dataSource, attributes);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedBarChart, YAHOO.widget.CartesianChart);
++/**
++ * Defines a CartesianChart's vertical or horizontal axis.
++ *
++ * @namespace YAHOO.widget
++ * @class Axis
++ * @constructor
++ */
++YAHOO.widget.Axis = function()
++{
++};
++
++YAHOO.widget.Axis.prototype = 
++{
++	/**
++	 * The type of axis.
++	 *
++	 * @property type
++	 * @type String
++	 */
++	type: null,
++	
++	/**
++	 * If true, the items on the axis will be drawn in opposite direction.
++	 *
++	 * @property reverse
++	 * @type Boolean
++	 */
++	reverse: false,
++	
++	/**
++	 * A string reference to the globally-accessible function that may be called to
++	 * determine each of the label values for this axis. Also accepts function references.
++	 *
++	 * @property labelFunction
++	 * @type String
++	 */
++	labelFunction: null,
++	
++	/**
++	 * The space, in pixels, between labels on an axis.
++	 *
++	 * @property labelSpacing
++	 * @type Number
++	 */
++	labelSpacing: 2,
++	
++	/**
++	 * The text that will appear next to the axis to indicate information about the data that it displays.
++	 *
++	 * @property title
++	 * @type String
++	 */
++	title: null 
++};
++/**
++ * A type of axis whose units are measured in numeric values.
++ *
++ * @namespace YAHOO.widget
++ * @class NumericAxis
++ * @extends YAHOO.widget.Axis
++ * @constructor
++ */
++YAHOO.widget.NumericAxis = function()
++{
++	YAHOO.widget.NumericAxis.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.NumericAxis, YAHOO.widget.Axis,
++{
++	type: "numeric",
++	
++	/**
++	 * The minimum value drawn by the axis. If not set explicitly, the axis minimum
++	 * will be calculated automatically.
++	 *
++	 * @property minimum
++	 * @type Number
++	 */
++	minimum: NaN,
++	
++	/**
++	 * The maximum value drawn by the axis. If not set explicitly, the axis maximum
++	 * will be calculated automatically.
++	 *
++	 * @property maximum
++	 * @type Number
++	 */
++	maximum: NaN,
++	
++	/**
++	 * The spacing between major intervals on this axis.
++	 *
++	 * @property majorUnit
++	 * @type Number
++	 */
++	majorUnit: NaN,
++
++	/**
++	 * The spacing between minor intervals on this axis.
++	 *
++	 * @property minorUnit
++	 * @type Number
++	 */
++	minorUnit: NaN,
++	
++	/**
++	 * If true, the labels, ticks, gridlines, and other objects will snap to
++	 * the nearest major or minor unit. If false, their position will be based
++	 * on the minimum value.
++	 *
++	 * @property snapToUnits
++	 * @type Boolean
++	 */
++	snapToUnits: true,
++	
++	/**
++	 * Series that are stackable will only stack when this value is set to true.
++	 *
++	 * @property stackingEnabled
++	 * @type Boolean
++	 */
++	stackingEnabled: false,
++
++	/**
++	 * If true, and the bounds are calculated automatically, either the minimum or
++	 * maximum will be set to zero.
++	 *
++	 * @property alwaysShowZero
++	 * @type Boolean
++	 */
++	alwaysShowZero: true,
++
++	/**
++	 * The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
++	 *
++	 * @property scale
++	 * @type String
++	 */
++	scale: "linear",
++	
++	/**
++	 * Indicates whether to round the major unit.
++	 * 
++	 * @property roundMajorUnit
++	 * @type Boolean
++	 */
++	roundMajorUnit: true, 
++	
++	/**
++	 * Indicates whether to factor in the size of the labels when calculating a major unit.
++	 *
++	 * @property calculateByLabelSize
++	 * @type Boolean
++	 */
++	calculateByLabelSize: true,
++	
++	/**
++	 * Indicates the position of the axis relative to the chart
++	 *
++	 * @property position
++	 * @type String
++	 */
++	position:"left",
++	
++	/**
++	 * Indicates whether to extend maximum beyond data's maximum to the nearest 
++	 * majorUnit.
++	 *
++	 * @property adjustMaximumByMajorUnit
++	 * @type Boolean
++	 */
++	adjustMaximumByMajorUnit:true,
++	
++	/**
++	 * Indicates whether to extend the minimum beyond data's minimum to the nearest
++	 * majorUnit.
++	 *
++	 * @property adjustMinimumByMajorUnit
++	 * @type Boolean
++	 */
++	adjustMinimumByMajorUnit:true
++});
++/**
++ * A type of axis whose units are measured in time-based values.
++ *
++ * @namespace YAHOO.widget
++ * @class TimeAxis
++ * @constructor
++ */
++YAHOO.widget.TimeAxis = function()
++{
++	YAHOO.widget.TimeAxis.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.TimeAxis, YAHOO.widget.Axis,
++{
++	type: "time",
++	
++	/**
++	 * The minimum value drawn by the axis. If not set explicitly, the axis minimum
++	 * will be calculated automatically.
++	 *
++	 * @property minimum
++	 * @type Date
++	 */
++	minimum: null,
++
++	/**
++	 * The maximum value drawn by the axis. If not set explicitly, the axis maximum
++	 * will be calculated automatically.
++	 *
++	 * @property maximum
++	 * @type Number
++	 */
++	maximum: null,
++	
++	/**
++	 * The spacing between major intervals on this axis.
++	 *
++	 * @property majorUnit
++	 * @type Number
++	 */
++	majorUnit: NaN,
++	
++	/**
++	 * The time unit used by the majorUnit.
++	 *
++	 * @property majorTimeUnit
++	 * @type String
++	 */
++	majorTimeUnit: null,
++	
++	/**
++	 * The spacing between minor intervals on this axis.
++	 *
++	 * @property majorUnit
++	 * @type Number
++	 */
++	minorUnit: NaN,
++	
++	/**
++	 * The time unit used by the minorUnit.
++	 *
++	 * @property majorTimeUnit
++	 * @type String
++	 */
++	minorTimeUnit: null,
++
++	/**
++	 * If true, the labels, ticks, gridlines, and other objects will snap to
++	 * the nearest major or minor unit. If false, their position will be based
++	 * on the minimum value.
++	 *
++	 * @property snapToUnits
++	 * @type Boolean
++	 */
++	snapToUnits: true,
++
++	/**
++	 * Series that are stackable will only stack when this value is set to true.
++	 *
++	 * @property stackingEnabled
++	 * @type Boolean
++	 */
++	stackingEnabled: false,
++
++	/**
++	 * Indicates whether to factor in the size of the labels when calculating a major unit.
++	 *
++	 * @property calculateByLabelSize
++	 * @type Boolean
++	 */
++	calculateByLabelSize: true	
++});
++/**
++ * A type of axis that displays items in categories.
++ *
++ * @namespace YAHOO.widget
++ * @class CategoryAxis
++ * @constructor
++ */
++YAHOO.widget.CategoryAxis = function()
++{
++	YAHOO.widget.CategoryAxis.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.CategoryAxis, YAHOO.widget.Axis,
++{
++	type: "category",
++	
++	/**
++	 * A list of category names to display along this axis.
++	 *
++	 * @property categoryNames
++	 * @type Array
++	 */
++	categoryNames: null,
++	
++	/**
++	 * Indicates whether or not to calculate the number of categories (ticks and labels)
++	 * when there is not enough room to display all labels on the axis. If set to true, the axis 
++	 * will determine the number of categories to plot. If not, all categories will be plotted.
++	 *
++	 * @property calculateCategoryCount
++	 * @type Boolean
++	 */
++	calculateCategoryCount: false 
++});
++ /**
++ * Functionality common to most series. Generally, a <code>Series</code> 
++ * object shouldn't be instantiated directly. Instead, a subclass with a 
++ * concrete implementation should be used.
++ *
++ * @namespace YAHOO.widget
++ * @class Series
++ * @constructor
++ */
++YAHOO.widget.Series = function() {};
++
++YAHOO.widget.Series.prototype = 
++{
++	/**
++	 * The type of series.
++	 *
++	 * @property type
++	 * @type String
++	 */
++	type: null,
++	
++	/**
++	 * The human-readable name of the series.
++	 *
++	 * @property displayName
++	 * @type String
++	 */
++	displayName: null
++};
++
++/**
++ * Functionality common to most series appearing in cartesian charts.
++ * Generally, a <code>CartesianSeries</code> object shouldn't be
++ * instantiated directly. Instead, a subclass with a concrete implementation
++ * should be used.
++ *
++ * @namespace YAHOO.widget
++ * @class CartesianSeries
++ * @uses YAHOO.widget.Series
++ * @constructor
++ */
++YAHOO.widget.CartesianSeries = function() 
++{
++	YAHOO.widget.CartesianSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.CartesianSeries, YAHOO.widget.Series,
++{
++	/**
++	 * The field used to access the x-axis value from the items from the data source.
++	 *
++	 * @property xField
++	 * @type String
++	 */
++	xField: null,
++	
++	/**
++	 * The field used to access the y-axis value from the items from the data source.
++	 *
++	 * @property yField
++	 * @type String
++	 */
++	yField: null,
++	
++	/**
++	 * Indicates which axis the series will bind to
++	 *
++	 * @property axis
++	 * @type String
++	 */
++	axis: "primary",
++	
++	/**
++	 * When a Legend is present, indicates whether the series will show in the legend.
++	 * 
++	 * @property showInLegend
++	 * @type Boolean
++	 */
++	showInLegend: true
++});
++
++/**
++ * ColumnSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class ColumnSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.ColumnSeries = function() 
++{
++	YAHOO.widget.ColumnSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.ColumnSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "column"
++});
++
++/**
++ * LineSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class LineSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.LineSeries = function() 
++{
++	YAHOO.widget.LineSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.LineSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "line"
++});
++
++
++/**
++ * BarSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class BarSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.BarSeries = function() 
++{
++	YAHOO.widget.BarSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.BarSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "bar"
++});
++
++
++/**
++ * PieSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class PieSeries
++ * @uses YAHOO.widget.Series
++ * @constructor
++ */
++YAHOO.widget.PieSeries = function() 
++{
++	YAHOO.widget.PieSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.PieSeries, YAHOO.widget.Series,
++{
++	type: "pie",
++	
++	/**
++	 * The field used to access the data value from the items from the data source.
++	 *
++	 * @property dataField
++	 * @type String
++	 */
++	dataField: null,
++	
++	/**
++	 * The field used to access the category value from the items from the data source.
++	 *
++	 * @property categoryField
++	 * @type String
++	 */
++	categoryField: null,
++
++	/**
++	 * A string reference to the globally-accessible function that may be called to
++	 * determine each of the label values for this series. Also accepts function references.
++	 *
++	 * @property labelFunction
++	 * @type String
++	 */
++	labelFunction: null
++});
++
++/**
++ * StackedBarSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedBarSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.StackedBarSeries = function() 
++{
++	YAHOO.widget.StackedBarSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedBarSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "stackbar"
++});
++
++/**
++ * StackedColumnSeries class for the YUI Charts widget.
++ *
++ * @namespace YAHOO.widget
++ * @class StackedColumnSeries
++ * @uses YAHOO.widget.CartesianSeries
++ * @constructor
++ */
++YAHOO.widget.StackedColumnSeries = function() 
++{
++	YAHOO.widget.StackedColumnSeries.superclass.constructor.call(this);
++};
++
++YAHOO.lang.extend(YAHOO.widget.StackedColumnSeries, YAHOO.widget.CartesianSeries,
++{
++	type: "stackcolumn"
++});
++YAHOO.register("charts", YAHOO.widget.Chart, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/colorpicker-core.css b/pylons_app/public/js/yui/colorpicker/assets/colorpicker-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/colorpicker/assets/colorpicker-core.css
+@@ -0,0 +1,6 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/hue_thumb.png b/pylons_app/public/js/yui/colorpicker/assets/hue_thumb.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..14d5db4862403a43231ac4766301552afa79e8ae
+GIT binary patch
+literal 195
+zc%17D@N?(olHy`uVBq!ia0vp^LLkh+3?vf;>QaFeOS+@4BLl;=8&~`zjDUQ}64!{5
+z;QX|b^2DN42FH~Aq*MjZ+{E<Mpwz^a%EFVWHb6z30X`wF|Ns97GJ#~>`+k2Qi@7Ao
+zFBm9x{S+_IKn6ok7srr_TS*Cr7<jgbC%G^QD7vw!9N-X2N^uBd6=CLFC~>4CR#a^B
+hhMOMV_Dn1i4C!Z>gq7E&G66L+c)I$ztaD0e0ssu{I5q$P
+
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/picker_mask.png b/pylons_app/public/js/yui/colorpicker/assets/picker_mask.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..f8d91932b376af76ccfac030c12eb9fec7ee4c63
+GIT binary patch
+literal 12174
+zc$@)_FLBU`P)<h;3K|Lk000e1NJLTq006cC006cK1^@s6bntfs00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBVMAW1|)RCwC#
+zUE7x9IC4zr>_6|b&%Dfjpyv}j54LBIXFZqhE-_t{2r7|?ya1%Cs>h{sswI&ir4|Fh
+z$jAgxe*E!Arq9Rc<1hC3+xpMn|Ni&&sREphKX2dqw+!rCg4f<Q^c-!Qd7XLxUfaC)
+zv#-5v*=ysy9>vHA{v>|sAOH9VUq1Wx=i{&V_yqRn;}h7QkI%<<rLmbm<HtAn4GQ?9
+zXxr=eLhZcw@b&ip^V$&jy!{z$@3x80K(BA@#q0ff{aco$Y|r&QE!XAt{POa0Yr8&w
+z`SOMS{PR!x*T4Qn|Mj2$ML+%fPq%$P{M!%v5B<ZBKYX9SPJG|=1$SO&-ph*~wc|58
+zR@C0wueM7-6Zk)Mz!uxPZS@@WGgh!l@K#{&f6L?bD`?9N%&&jf>-7fW_4(VkZ}j!+
+z*W3A4Q2+7AAN1S*{zm`&=RfJ^|M;1H`st@nDf0RFlp-IAiA&;HZ{w3b`^>wEDMb|H
+zcWo7$YKZ}V2ee&$PJPY#JEPa?S+a1^5~E@1g&W3xW#A&D$3t?w{=G7DSsA*r_4-%Y
+z`s<fFW3LkAx8Hud$&g?E`xpB8=bvwK<ih~lxE&(UPJ#4f(0TwHktaOzy&Ne4C6WZK
+z26pmwvkg6OpkxWw^?$X$Zrkm;SpvHPxq^BH^7{M=;G#kO^6jCi*T+qUyaM~z|M``E
+z`Q?|J99cpBZon4je+qCX09+CQmdpN`&jKB|WI77c>|z_E&o@}NSYWQ_Q@Xg&3d|Ou
+zW&0J1V(Gn21@Ok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FHin8at8
+zf231nfja`;X`qjQ{TPtT2$-J+=#L;%GCuZM%zFe-GoTq|EqXG0J-rjFA!)<E$4KYP
+z|BmD7@}o>YD@D%G+(%jVtWGl1QAU{d2%u&<<*Zbo86f4@e+txxnf@rS&tmU0L4FkI
+zvtVzu0H1hQIRnIJ0C_feJe#F6_kc5iO=q3M`0__VKFhGvjLYYO_Y5XJ1jJ{7c^Yep
+zHW&J!52nA`qtNH$?S3o4*oSLk&tTSPNrW?X?<5;9naK^$U}fVxx$Ap|<T-vP;4^{E
+zPXXW)LH;bT9|_#%I?>$u2f@bg3gWkxHK%Fp4+8RMf$}i0&g=*$e&(C#qxaD0ZvpHl
+zv+I<EDo+IDQ$cjLM0zHOXC&753hXDaE5Gaa`~Et}u~=%TT;Y^Y{C<Ib`i10=`5*cq
+zwg?~noyured5?>6`Mm!BUmxWOUFGBaUp^pXA9e5eL-vl3cNcl?@AS6vgTG5D@?CMq
+zTi=Sx2mN33JO2+a9~-FUJu&myl|RHap8Fr(82g7GfB2M~pO3%P<NpL009r=Zt$joe
+QQ~&?~07*qoM6N<$f&<h~%m4rY
+
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/picker_thumb.png b/pylons_app/public/js/yui/colorpicker/assets/picker_thumb.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..78445a2fe060047216b3692980ebabfb0683c3c6
+GIT binary patch
+literal 192
+zc%17D@N?(olHy`uVBq!ia0vp^+#t-s3?%0jwTl2LmUKs7M+Sy#H?H_c7y<c`C9V-A
+z!TD(=<%vb942~)JNvR5+xryniL8*x;m4zo$ZGeh61AIbUf%JbcD6UwV4CFAE1o;L3
+z|Icv!6fe*~20c#~$B>F!NeM|wNi2*CXBkqA8W@y2&T>3yVv%g*IK)!uk)}MmImzx&
+dTmu6$gLVMJ@>Lg{{{wY0c)I$ztaD0e0szdFI<Ei#
+
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/skins/sam/colorpicker-skin.css b/pylons_app/public/js/yui/colorpicker/assets/skins/sam/colorpicker-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/colorpicker/assets/skins/sam/colorpicker-skin.css
+@@ -0,0 +1,105 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++.yui-picker-panel {
++    background: #e3e3e3;
++    border-color: #888;
++}
++
++.yui-picker-panel .hd {
++	background-color:#ccc;
++	font-size:100%;
++	line-height:100%;
++	border:1px solid #e3e3e3;
++	font-weight:bold;
++	overflow:hidden;
++	padding: 6px;
++    color: #000;
++}
++
++.yui-picker-panel .bd {
++    background: #e8e8e8;
++    margin: 1px;
++    height: 200px;
++}
++
++.yui-picker-panel .ft {
++    background: #e8e8e8;
++    margin: 1px;
++    padding: 1px;
++             /*
++    text-align: center;
++    */
++}
++
++.yui-picker {
++    position: relative;
++}
++
++.yui-picker-hue-thumb { cursor:default; width:18px; height:18px; 
++top: -8px;
++left: -2px;
++    z-index: 9; position:absolute; }
++.yui-picker-hue-bg {-moz-outline: none; outline:0px none;
++    position:absolute; left:200px; height:183px; width:14px;
++    background:url(hue_bg.png) no-repeat; 
++    top:4px; 
++}
++
++.yui-picker-bg {
++    -moz-outline: none; 
++    outline:0px none; 
++    position:absolute; 
++    top:4px;
++    left:4px; 
++    height:182px; 
++    width:182px; 
++    background-color:#F00; 
++    background-image: url(picker_mask.png);
++} 
++
++*html .yui-picker-bg {
++    background-image: none;
++    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png', sizingMethod='scale');
++}
++
++
++.yui-picker-mask { position:absolute; z-index: 1; top:0px; left:0px; } 
++
++.yui-picker-thumb { cursor:default; width:11px; height:11px; z-index: 9; position:absolute; 
++    top:-4px; left:-4px; }
++
++.yui-picker-swatch { position:absolute; left:240px; top:4px; height:60px;
++    width:55px; border:1px solid #888; }
++.yui-picker-websafe-swatch { position:absolute; left:304px; top:4px;
++    height:24px; width:24px; border:1px solid #888; }
++
++.yui-picker-controls { position:absolute; top: 72px; left:226px; font:1em monospace;}
++.yui-picker-controls .hd { background: transparent; border-width: 0px !important;}
++.yui-picker-controls .bd { height: 100px; border-width: 0px !important;}
++.yui-picker-controls ul {float:left;padding:0 2px 0 0;margin:0}
++.yui-picker-controls li {padding:2px;list-style:none;margin:0}
++.yui-picker-controls input { 
++    font-size: 0.85em;
++    width: 2.4em;
++}
++.yui-picker-hex-controls { 
++    clear: both; 
++    padding: 2px;
++}
++.yui-picker-hex-controls input { 
++    width: 4.6em;
++}
++
++.yui-picker-controls a {
++    font: 1em arial,helvetica,clean,sans-serif;
++    display:block;
++    *display:inline-block; /* IE */
++    padding: 0;
++    color: #000;
++
++}
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/skins/sam/colorpicker.css b/pylons_app/public/js/yui/colorpicker/assets/skins/sam/colorpicker.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/colorpicker/assets/skins/sam/colorpicker.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-picker-panel{background:#e3e3e3;border-color:#888;}.yui-picker-panel .hd{background-color:#ccc;font-size:100%;line-height:100%;border:1px solid #e3e3e3;font-weight:bold;overflow:hidden;padding:6px;color:#000;}.yui-picker-panel .bd{background:#e8e8e8;margin:1px;height:200px;}.yui-picker-panel .ft{background:#e8e8e8;margin:1px;padding:1px;}.yui-picker{position:relative;}.yui-picker-hue-thumb{cursor:default;width:18px;height:18px;top:-8px;left:-2px;z-index:9;position:absolute;}.yui-picker-hue-bg{-moz-outline:none;outline:0 none;position:absolute;left:200px;height:183px;width:14px;background:url(hue_bg.png) no-repeat;top:4px;}.yui-picker-bg{-moz-outline:none;outline:0 none;position:absolute;top:4px;left:4px;height:182px;width:182px;background-color:#F00;background-image:url(picker_mask.png);}*html .yui-picker-bg{background-image:none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../../build/colorpicker/assets/picker_mask.png',sizingMethod='scale');}.yui-picker-mask{position:absolute;z-index:1;top:0;left:0;}.yui-picker-thumb{cursor:default;width:11px;height:11px;z-index:9;position:absolute;top:-4px;left:-4px;}.yui-picker-swatch{position:absolute;left:240px;top:4px;height:60px;width:55px;border:1px solid #888;}.yui-picker-websafe-swatch{position:absolute;left:304px;top:4px;height:24px;width:24px;border:1px solid #888;}.yui-picker-controls{position:absolute;top:72px;left:226px;font:1em monospace;}.yui-picker-controls .hd{background:transparent;border-width:0!important;}.yui-picker-controls .bd{height:100px;border-width:0!important;}.yui-picker-controls ul{float:left;padding:0 2px 0 0;margin:0;}.yui-picker-controls li{padding:2px;list-style:none;margin:0;}.yui-picker-controls input{font-size:.85em;width:2.4em;}.yui-picker-hex-controls{clear:both;padding:2px;}.yui-picker-hex-controls input{width:4.6em;}.yui-picker-controls a{font:1em arial,helvetica,clean,sans-serif;display:block;*display:inline-block;padding:0;color:#000;}
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/skins/sam/hue_bg.png b/pylons_app/public/js/yui/colorpicker/assets/skins/sam/hue_bg.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..d9bcdeb5c49910d5c32c9ebbb134200bf138b7b4
+GIT binary patch
+literal 1120
+zc$^hfZA?>V6h6*nD|EKy_G>T#efd;-TcIEZRG=3KG$^eF2Q{FAMV4*KY}f{qh`QSV
+zerz}DmTbC_Y|fEr#w0P0=t#CW_qsTZ+oCcxM!nmzgkYx0y)F9Qv+IxZJb6w|&dGC5
+zaz;Z<^@~z7QUPF5prJObvq_J$hJ`xXo5wcl^n8zhtsmg}%|C)|K3%8x)wT6C_ipWb
+zw=>oa{%CJkw=1x%v!^@U-5DL&ajAP1z;mggH7#{nz-rJ$faL=7qA45La$rShQh@N!
+zu%sTCvXE1t{K=eCf%*<$g}~m_lTbYf%#DuhOcn)}oyL+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OgnsQX&U)iT;-NK
+mNV9m%-8>YlD8E#--~|}G|8JkdYdiH90fD-v+HZu-d;bSJ8}W_+
+
+diff --git a/pylons_app/public/js/yui/colorpicker/assets/skins/sam/picker_mask.png b/pylons_app/public/js/yui/colorpicker/assets/skins/sam/picker_mask.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..f8d91932b376af76ccfac030c12eb9fec7ee4c63
+GIT binary patch
+literal 12174
+zc$@)_FLBU`P)<h;3K|Lk000e1NJLTq006cC006cK1^@s6bntfs00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBVMAW1|)RCwC#
+zUE7x9IC4zr>_6|b&%Dfjpyv}j54LBIXFZqhE-_t{2r7|?ya1%Cs>h{sswI&ir4|Fh
+z$jAgxe*E!Arq9Rc<1hC3+xpMn|Ni&&sREphKX2dqw+!rCg4f<Q^c-!Qd7XLxUfaC)
+zv#-5v*=ysy9>vHA{v>|sAOH9VUq1Wx=i{&V_yqRn;}h7QkI%<<rLmbm<HtAn4GQ?9
+zXxr=eLhZcw@b&ip^V$&jy!{z$@3x80K(BA@#q0ff{aco$Y|r&QE!XAt{POa0Yr8&w
+z`SOMS{PR!x*T4Qn|Mj2$ML+%fPq%$P{M!%v5B<ZBKYX9SPJG|=1$SO&-ph*~wc|58
+zR@C0wueM7-6Zk)Mz!uxPZS@@WGgh!l@K#{&f6L?bD`?9N%&&jf>-7fW_4(VkZ}j!+
+z*W3A4Q2+7AAN1S*{zm`&=RfJ^|M;1H`st@nDf0RFlp-IAiA&;HZ{w3b`^>wEDMb|H
+zcWo7$YKZ}V2ee&$PJPY#JEPa?S+a1^5~E@1g&W3xW#A&D$3t?w{=G7DSsA*r_4-%Y
+z`s<fFW3LkAx8Hud$&g?E`xpB8=bvwK<ih~lxE&(UPJ#4f(0TwHktaOzy&Ne4C6WZK
+z26pmwvkg6OpkxWw^?$X$Zrkm;SpvHPxq^BH^7{M=;G#kO^6jCi*T+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}d`x3eTZ?RLY=?o8@$7*!k>srvp9PW)jSU?U;_9
+z^Qe?K+IdESZGby%u+M1qd$#NeEItDAvw?m9$ftmLQX9{>7*l{gdPf)rHlFHin8at8
+zf231nfja`;X`qjQ{TPtT2$-J+=#L;%GCuZM%zFe-GoTq|EqXG0J-rjFA!)<E$4KYP
+z|BmD7@}o>YD@D%G+(%jVtWGl1QAU{d2%u&<<*Zbo86f4@e+txxnf@rS&tmU0L4FkI
+zvtVzu0H1hQIRnIJ0C_feJe#F6_kc5iO=q3M`0__VKFhGvjLYYO_Y5XJ1jJ{7c^Yep
+zHW&J!52nA`qtNH$?S3o4*oSLk&tTSPNrW?X?<5;9naK^$U}fVxx$Ap|<T-vP;4^{E
+zPXXW)LH;bT9|_#%I?>$u2f@bg3gWkxHK%Fp4+8RMf$}i0&g=*$e&(C#qxaD0ZvpHl
+zv+I<EDo+IDQ$cjLM0zHOXC&753hXDaE5Gaa`~Et}u~=%TT;Y^Y{C<Ib`i10=`5*cq
+zwg?~noyured5?>6`Mm!BUmxWOUFGBaUp^pXA9e5eL-vl3cNcl?@AS6vgTG5D@?CMq
+zTi=Sx2mN33JO2+a9~-FUJu&myl|RHap8Fr(82g7GfB2M~pO3%P<NpL009r=Zt$joe
+QQ~&?~07*qoM6N<$f&<h~%m4rY
+
+diff --git a/pylons_app/public/js/yui/colorpicker/colorpicker-debug.js b/pylons_app/public/js/yui/colorpicker/colorpicker-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/colorpicker/colorpicker-debug.js
+@@ -0,0 +1,1783 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides color conversion and validation utils
++ * @class YAHOO.util.Color
++ * @namespace YAHOO.util
++ */
++YAHOO.util.Color = function() {
++
++    var ZERO     = "0",
++        isArray  = YAHOO.lang.isArray,
++        isNumber = YAHOO.lang.isNumber;
++
++    return {
++
++        /**
++         * Converts 0-1 to 0-255
++         * @method real2dec
++         * @param n {float} the number to convert
++         * @return {int} a number 0-255
++         */
++        real2dec: function(n) {
++            return Math.min(255, Math.round(n*256));
++        },
++
++        /**
++         * Converts HSV (h[0-360], s[0-1]), v[0-1] to RGB [255,255,255]
++         * @method hsv2rgb
++         * @param h {int|[int, float, float]} the hue, or an
++         *        array containing all three parameters
++         * @param s {float} the saturation
++         * @param v {float} the value/brightness
++         * @return {[int, int, int]} the red, green, blue values in
++         *          decimal.
++         */
++        hsv2rgb: function(h, s, v) { 
++
++            if (isArray(h)) {
++                return this.hsv2rgb.call(this, h[0], h[1], h[2]);
++            }
++
++            var r, g, b,
++                i = Math.floor((h/60)%6),
++                f = (h/60)-i,
++                p = v*(1-s),
++                q = v*(1-f*s),
++                t = v*(1-(1-f)*s),
++                fn;
++
++            switch (i) {
++                case 0: r=v; g=t; b=p; break;
++                case 1: r=q; g=v; b=p; break;
++                case 2: r=p; g=v; b=t; break;
++                case 3: r=p; g=q; b=v; break;
++                case 4: r=t; g=p; b=v; break;
++                case 5: r=v; g=p; b=q; break;
++            }
++
++            fn=this.real2dec;
++
++            return [fn(r), fn(g), fn(b)];
++        },
++
++        /**
++         * Converts to RGB [255,255,255] to HSV (h[0-360], s[0-1]), v[0-1]
++         * @method rgb2hsv
++         * @param r {int|[int, int, int]} the red value, or an
++         *        array containing all three parameters
++         * @param g {int} the green value
++         * @param b {int} the blue value
++         * @return {[int, float, float]} the value converted to hsv
++         */
++        rgb2hsv: function(r, g, b) {
++
++            if (isArray(r)) {
++                return this.rgb2hsv.apply(this, r);
++            }
++
++            r /= 255;
++            g /= 255;
++            b /= 255;
++
++            var h,s,
++                min = Math.min(Math.min(r,g),b),
++                max = Math.max(Math.max(r,g),b),
++                delta = max-min,
++                hsv;
++
++            switch (max) {
++                case min: h=0; break;
++                case r:   h=60*(g-b)/delta; 
++                          if (g<b) {
++                              h+=360;
++                          }
++                          break;
++                case g:   h=(60*(b-r)/delta)+120; break;
++                case b:   h=(60*(r-g)/delta)+240; break;
++            }
++            
++            s = (max === 0) ? 0 : 1-(min/max);
++
++            hsv = [Math.round(h), s, max];
++
++            return hsv;
++        },
++
++        /**
++         * Converts decimal rgb values into a hex string
++         * 255,255,255 -> FFFFFF
++         * @method rgb2hex
++         * @param r {int|[int, int, int]} the red value, or an
++         *        array containing all three parameters
++         * @param g {int} the green value
++         * @param b {int} the blue value
++         * @return {string} the hex string
++         */
++        rgb2hex: function(r, g, b) {
++            if (isArray(r)) {
++                return this.rgb2hex.apply(this, r);
++            }
++
++            var f=this.dec2hex;
++            return f(r) + f(g) + f(b);
++        },
++     
++        /**
++         * Converts an int 0...255 to hex pair 00...FF
++         * @method dec2hex
++         * @param n {int} the number to convert
++         * @return {string} the hex equivalent
++         */
++        dec2hex: function(n) {
++            n = parseInt(n,10)|0;
++            n = (n > 255 || n < 0) ? 0 : n;
++
++            return (ZERO+n.toString(16)).slice(-2).toUpperCase();
++        },
++
++        /**
++         * Converts a hex pair 00...FF to an int 0...255 
++         * @method hex2dec
++         * @param str {string} the hex pair to convert
++         * @return {int} the decimal
++         */
++        hex2dec: function(str) {
++            return parseInt(str,16);
++        },
++
++        /**
++         * Converts a hex string to rgb
++         * @method hex2rgb
++         * @param str {string} the hex string
++         * @return {[int, int, int]} an array containing the rgb values
++         */
++        hex2rgb: function(s) { 
++            var f = this.hex2dec;
++            return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
++        },
++
++        /**
++         * Returns the closest websafe color to the supplied rgb value.
++         * @method websafe
++         * @param r {int|[int, int, int]} the red value, or an
++         *        array containing all three parameters
++         * @param g {int} the green value
++         * @param b {int} the blue value
++         * @return {[int, int, int]} an array containing the closes
++         *                           websafe rgb colors.
++         */
++        websafe: function(r, g, b) {
++
++            if (isArray(r)) {
++                return this.websafe.apply(this, r);
++            }
++
++            // returns the closest match [0, 51, 102, 153, 204, 255]
++            var f = function(v) {
++                if (isNumber(v)) {
++                    v = Math.min(Math.max(0, v), 255);
++                    var i, next;
++                    for (i=0; i<256; i=i+51) {
++                        next = i+51;
++                        if (v >= i && v <= next) {
++                            return (v-i > 25) ? next : i;
++                        }
++                    }
++ YAHOO.log("Error calculating the websafe value for " + v, "warn");
++                }
++
++                return v;
++            };
++
++            return [f(r), f(g), f(b)];
++        }
++    };
++}();
++
++
++/**
++ * The colorpicker module provides a widget for selecting colors
++ * @module colorpicker
++ * @requires yahoo, dom, event, element, slider
++ */
++(function() {
++
++    var _pickercount = 0,
++        util   = YAHOO.util,
++        lang   = YAHOO.lang,
++        Slider = YAHOO.widget.Slider,
++        Color  = util.Color,
++        Dom    = util.Dom,
++        Event  = util.Event,
++        sub    = lang.substitute,
++        
++        b = "yui-picker";
++    
++
++    /**
++     * A widget to select colors
++     * @namespace YAHOO.widget
++     * @class YAHOO.widget.ColorPicker
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param {HTMLElement | String | Object} el(optional) The html 
++     * element that represents the colorpicker, or the attribute object to use. 
++     * An element will be created if none provided.
++     * @param {Object} attr (optional) A key map of the colorpicker's 
++     * initial attributes.  Ignored if first arg is attributes object.
++     */
++    function ColorPicker(el, attr) {
++        _pickercount = _pickercount + 1;
++        this.logger = new YAHOO.widget.LogWriter("ColorPicker");
++        attr = attr || {};
++        if (arguments.length === 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
++            attr = el; // treat first arg as attr object
++            el = attr.element || null;
++        }
++        
++        if (!el && !attr.element) { // create if we dont have one
++            this.logger.log("creating host element");
++            el = this._createHostElement(attr);
++        }
++
++    	ColorPicker.superclass.constructor.call(this, el, attr); 
++
++        this.initPicker();
++    }
++
++    YAHOO.extend(ColorPicker, YAHOO.util.Element, {
++    
++        /**
++         * The element ids used by this control
++         * @property ID
++         * @final
++         */
++        ID : {
++
++            /**
++             * The id for the "red" form field
++             * @property ID.R
++             * @type String
++             * @final
++             * @default yui-picker-r
++             */
++            R: b + "-r",
++
++            /**
++             * The id for the "red" hex pair output
++             * @property ID.R_HEX
++             * @type String
++             * @final
++             * @default yui-picker-rhex
++             */
++            R_HEX: b + "-rhex",
++
++            /**
++             * The id for the "green" form field
++             * @property ID.G
++             * @type String
++             * @final
++             * @default yui-picker-g
++             */
++            G: b + "-g",
++
++            /**
++             * The id for the "green" hex pair output
++             * @property ID.G_HEX
++             * @type String
++             * @final
++             * @default yui-picker-ghex
++             */
++            G_HEX: b + "-ghex",
++
++
++            /**
++             * The id for the "blue" form field
++             * @property ID.B
++             * @type String
++             * @final
++             * @default yui-picker-b
++             */
++            B: b + "-b",
++
++            /**
++             * The id for the "blue" hex pair output
++             * @property ID.B_HEX
++             * @type String
++             * @final
++             * @default yui-picker-bhex
++             */
++            B_HEX: b + "-bhex",
++
++            /**
++             * The id for the "hue" form field
++             * @property ID.H
++             * @type String
++             * @final
++             * @default yui-picker-h
++             */
++            H: b + "-h",
++
++            /**
++             * The id for the "saturation" form field
++             * @property ID.S
++             * @type String
++             * @final
++             * @default yui-picker-s
++             */
++            S: b + "-s",
++
++            /**
++             * The id for the "value" form field
++             * @property ID.V
++             * @type String
++             * @final
++             * @default yui-picker-v
++             */
++            V: b + "-v",
++
++            /**
++             * The id for the picker region slider
++             * @property ID.PICKER_BG
++             * @type String
++             * @final
++             * @default yui-picker-bg
++             */
++            PICKER_BG:      b + "-bg",
++
++            /**
++             * The id for the picker region thumb
++             * @property ID.PICKER_THUMB
++             * @type String
++             * @final
++             * @default yui-picker-thumb
++             */
++            PICKER_THUMB:   b + "-thumb",
++
++            /**
++             * The id for the hue slider
++             * @property ID.HUE_BG
++             * @type String
++             * @final
++             * @default yui-picker-hue-bg
++             */
++            HUE_BG:         b + "-hue-bg",
++
++            /**
++             * The id for the hue thumb
++             * @property ID.HUE_THUMB
++             * @type String
++             * @final
++             * @default yui-picker-hue-thumb
++             */
++            HUE_THUMB:      b + "-hue-thumb",
++
++            /**
++             * The id for the hex value form field
++             * @property ID.HEX
++             * @type String
++             * @final
++             * @default yui-picker-hex
++             */
++            HEX:            b + "-hex",
++
++            /**
++             * The id for the color swatch
++             * @property ID.SWATCH
++             * @type String
++             * @final
++             * @default yui-picker-swatch
++             */
++            SWATCH:         b + "-swatch",
++
++            /**
++             * The id for the websafe color swatch
++             * @property ID.WEBSAFE_SWATCH
++             * @type String
++             * @final
++             * @default yui-picker-websafe-swatch
++             */
++            WEBSAFE_SWATCH: b + "-websafe-swatch",
++
++            /**
++             * The id for the control details
++             * @property ID.CONTROLS
++             * @final
++             * @default yui-picker-controls
++             */
++            CONTROLS: b + "-controls",
++
++            /**
++             * The id for the rgb controls
++             * @property ID.RGB_CONTROLS
++             * @final
++             * @default yui-picker-rgb-controls
++             */
++            RGB_CONTROLS: b + "-rgb-controls",
++
++            /**
++             * The id for the hsv controls
++             * @property ID.HSV_CONTROLS
++             * @final
++             * @default yui-picker-hsv-controls
++             */
++            HSV_CONTROLS: b + "-hsv-controls",
++            
++            /**
++             * The id for the hsv controls
++             * @property ID.HEX_CONTROLS
++             * @final
++             * @default yui-picker-hex-controls
++             */
++            HEX_CONTROLS: b + "-hex-controls",
++
++            /**
++             * The id for the hex summary
++             * @property ID.HEX_SUMMARY
++             * @final
++             * @default yui-picker-hex-summary
++             */
++            HEX_SUMMARY: b + "-hex-summary",
++
++            /**
++             * The id for the controls section header
++             * @property ID.CONTROLS_LABEL
++             * @final
++             * @default yui-picker-controls-label
++             */
++            CONTROLS_LABEL: b + "-controls-label"
++        },
++
++        /**
++         * Constants for any script-generated messages.  The values here
++         * are the default messages.  They can be updated by providing
++         * the complete list to the constructor for the "txt" attribute.
++         * @property TXT
++         * @final
++         */
++        TXT : {
++            ILLEGAL_HEX: "Illegal hex value entered",
++            SHOW_CONTROLS: "Show color details",
++            HIDE_CONTROLS: "Hide color details",
++            CURRENT_COLOR: "Currently selected color: {rgb}",
++            CLOSEST_WEBSAFE: "Closest websafe color: {rgb}. Click to select.",
++            R: "R",
++            G: "G",
++            B: "B",
++            H: "H",
++            S: "S",
++            V: "V",
++            HEX: "#",
++            DEG: "\u00B0",
++            PERCENT: "%"
++        },
++
++        /**
++         * Constants for the default image locations for img tags that are
++         * generated by the control.  They can be modified by passing the
++         * complete list to the contructor for the "images" attribute
++         * @property IMAGE
++         * @final
++         */
++        IMAGE : {
++            PICKER_THUMB: "../../build/colorpicker/assets/picker_thumb.png",
++            HUE_THUMB: "../../build/colorpicker/assets/hue_thumb.png"
++        },
++
++        /**
++         * Constants for the control's default default values
++         * @property DEFAULT
++         * @final
++         */
++        DEFAULT : {
++            PICKER_SIZE: 180
++        },
++
++        /**
++         * Constants for the control's configuration attributes
++         * @property OPT
++         * @final
++         */
++        OPT : {
++            HUE         : "hue",
++            SATURATION  : "saturation",
++            VALUE       : "value",
++            RED     : "red",
++            GREEN   : "green",
++            BLUE    : "blue",
++            HSV     : "hsv",
++            RGB     : "rgb",
++            WEBSAFE : "websafe",
++            HEX     : "hex",
++            PICKER_SIZE       : "pickersize",
++            SHOW_CONTROLS     : "showcontrols",
++            SHOW_RGB_CONTROLS : "showrgbcontrols",
++            SHOW_HSV_CONTROLS : "showhsvcontrols",
++            SHOW_HEX_CONTROLS : "showhexcontrols",
++            SHOW_HEX_SUMMARY  : "showhexsummary",
++            SHOW_WEBSAFE      : "showwebsafe",
++            CONTAINER         : "container",
++            IDS      : "ids",
++            ELEMENTS : "elements",
++            TXT      : "txt",
++            IMAGES   : "images",
++            ANIMATE  : "animate"
++        },
++
++        /**
++         * Flag to allow individual UI updates to forego animation if available.
++         * True during construction for initial thumb placement.  Set to false
++         * after that.
++         *
++         * @property skipAnim
++         * @type Boolean
++         * @default true
++         */
++        skipAnim : true,
++
++        /**
++         * Creates the host element if it doesn't exist
++         * @method _createHostElement
++         * @protected
++         */
++        _createHostElement : function () {
++            var el = document.createElement('div');
++
++            if (this.CSS.BASE) {
++                el.className = this.CSS.BASE;
++            }
++            
++            return el;
++        },
++
++        /**
++         * Moves the hue slider into the position dictated by the current state
++         * of the control
++         * @method _updateHueSlider
++         * @protected
++         */
++        _updateHueSlider : function() {
++            var size = this.get(this.OPT.PICKER_SIZE),
++                h = this.get(this.OPT.HUE);
++
++            h = size - Math.round(h / 360 * size);
++            
++            // 0 is at the top and bottom of the hue slider.  Always go to
++            // the top so we don't end up sending the thumb to the bottom
++            // when the value didn't actually change (e.g., a conversion
++            // produced 360 instead of 0 and the value was already 0).
++            if (h === size) {
++                h = 0;
++            }
++            this.logger.log("Hue slider is being set to " + h);
++
++            this.hueSlider.setValue(h, this.skipAnim);
++        },
++
++        /**
++         * Moves the picker slider into the position dictated by the current state
++         * of the control
++         * @method _updatePickerSlider
++         * @protected
++         */
++        _updatePickerSlider : function() {
++            var size = this.get(this.OPT.PICKER_SIZE),
++                s = this.get(this.OPT.SATURATION),
++                v = this.get(this.OPT.VALUE);
++
++            s = Math.round(s * size / 100);
++            v = Math.round(size - (v * size / 100));
++
++            this.logger.log("Setting picker slider to " + [s, v]);
++
++            this.pickerSlider.setRegionValue(s, v, this.skipAnim);
++        },
++
++        /**
++         * Moves the sliders into the position dictated by the current state
++         * of the control
++         * @method _updateSliders
++         * @protected
++         */
++        _updateSliders : function() {
++            this._updateHueSlider();
++            this._updatePickerSlider();
++        },
++
++        /**
++         * Sets the control to the specified rgb value and
++         * moves the sliders to the proper positions
++         * @method setValue
++         * @param rgb {[int, int, int]} the rgb value
++         * @param silent {boolean} whether or not to fire the change event
++         */
++        setValue : function(rgb, silent) {
++            silent = (silent) || false;
++            this.set(this.OPT.RGB, rgb, silent);
++            this._updateSliders();
++        },
++
++        /**
++         * The hue slider
++         * @property hueSlider
++         * @type YAHOO.widget.Slider
++         */
++        hueSlider : null,
++        
++        /**
++         * The picker region
++         * @property pickerSlider
++         * @type YAHOO.widget.Slider
++         */
++        pickerSlider : null,
++
++        /**
++         * Translates the slider value into hue, int[0,359]
++         * @method _getH
++         * @protected
++         * @return {int} the hue from 0 to 359
++         */
++        _getH : function() {
++            var size = this.get(this.OPT.PICKER_SIZE),
++                h = (size - this.hueSlider.getValue()) / size;
++            h = Math.round(h*360);
++            return (h === 360) ? 0 : h;
++        },
++
++        /**
++         * Translates the slider value into saturation, int[0,1], left to right
++         * @method _getS
++         * @protected
++         * @return {int} the saturation from 0 to 1
++         */
++        _getS : function() {
++            return this.pickerSlider.getXValue() / this.get(this.OPT.PICKER_SIZE);
++        },
++
++        /**
++         * Translates the slider value into value/brightness, int[0,1], top
++         * to bottom
++         * @method _getV
++         * @protected
++         * @return {int} the value from 0 to 1
++         */
++        _getV : function() {
++            var size = this.get(this.OPT.PICKER_SIZE);
++            return (size - this.pickerSlider.getYValue()) / size;
++        },
++
++        /**
++         * Updates the background of the swatch with the current rbg value.
++         * Also updates the websafe swatch to the closest websafe color
++         * @method _updateSwatch
++         * @protected
++         */
++        _updateSwatch : function() {
++            var rgb = this.get(this.OPT.RGB),
++                websafe = this.get(this.OPT.WEBSAFE),
++                el = this.getElement(this.ID.SWATCH),
++                color = rgb.join(","),
++                txt = this.get(this.OPT.TXT);
++
++            Dom.setStyle(el, "background-color", "rgb(" + color  + ")");
++            el.title = sub(txt.CURRENT_COLOR, {
++                    "rgb": "#" + this.get(this.OPT.HEX)
++                });
++
++
++            el = this.getElement(this.ID.WEBSAFE_SWATCH);
++            color = websafe.join(",");
++
++            Dom.setStyle(el, "background-color", "rgb(" + color + ")");
++            el.title = sub(txt.CLOSEST_WEBSAFE, {
++                    "rgb": "#" + Color.rgb2hex(websafe)
++                });
++
++        },
++
++        /**
++         * Reads the sliders and converts the values to RGB, updating the
++         * internal state for all the individual form fields
++         * @method _getValuesFromSliders
++         * @protected
++         */
++        _getValuesFromSliders : function() {
++            this.logger.log("hsv " + [this._getH(),this._getS(),this._getV()]);
++            this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV()));
++        },
++
++        /**
++         * Updates the form field controls with the state data contained
++         * in the control.
++         * @method _updateFormFields
++         * @protected
++         */
++        _updateFormFields : function() {
++            this.getElement(this.ID.H).value = this.get(this.OPT.HUE);
++            this.getElement(this.ID.S).value = this.get(this.OPT.SATURATION);
++            this.getElement(this.ID.V).value = this.get(this.OPT.VALUE);
++            this.getElement(this.ID.R).value = this.get(this.OPT.RED);
++            this.getElement(this.ID.R_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.RED));
++            this.getElement(this.ID.G).value = this.get(this.OPT.GREEN);
++            this.getElement(this.ID.G_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.GREEN));
++            this.getElement(this.ID.B).value = this.get(this.OPT.BLUE);
++            this.getElement(this.ID.B_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.BLUE));
++            this.getElement(this.ID.HEX).value = this.get(this.OPT.HEX);
++        },
++
++        /**
++         * Event handler for the hue slider.
++         * @method _onHueSliderChange
++         * @param newOffset {int} pixels from the start position
++         * @protected
++         */
++        _onHueSliderChange : function(newOffset) {
++            this.logger.log("hue update: " + newOffset , "warn");
++
++            var h        = this._getH(),
++                rgb      = Color.hsv2rgb(h, 1, 1),
++                styleDef = "rgb(" + rgb.join(",") + ")";
++
++            this.set(this.OPT.HUE, h, true);
++
++            // set picker background to the hue
++            Dom.setStyle(this.getElement(this.ID.PICKER_BG), "background-color", styleDef);
++
++            if (this.hueSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
++                this._getValuesFromSliders();
++            }
++
++            this._updateFormFields();
++            this._updateSwatch();
++        },
++
++        /**
++         * Event handler for the picker slider, which controls the
++         * saturation and value/brightness.
++         * @method _onPickerSliderChange
++         * @param newOffset {{x: int, y: int}} x/y pixels from the start position
++         * @protected
++         */
++        _onPickerSliderChange : function(newOffset) {
++            this.logger.log(sub("picker update [{x}, {y}]", newOffset));
++
++            var s=this._getS(), v=this._getV();
++            this.set(this.OPT.SATURATION, Math.round(s*100), true);
++            this.set(this.OPT.VALUE, Math.round(v*100), true);
++
++            if (this.pickerSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
++                this._getValuesFromSliders();
++            }
++
++            this._updateFormFields();
++            this._updateSwatch();
++        },
++
++
++        /**
++         * Key map to well-known commands for txt field input
++         * @method _getCommand
++         * @param e {Event} the keypress or keydown event
++         * @return {int} a command code
++         * <ul>
++         * <li>0 = not a number, letter in range, or special key</li>
++         * <li>1 = number</li>
++         * <li>2 = a-fA-F</li>
++         * <li>3 = increment (up arrow)</li>
++         * <li>4 = decrement (down arrow)</li>
++         * <li>5 = special key (tab, delete, return, escape, left, right)</li> 
++         * <li>6 = return</li>
++         * </ul>
++         * @protected
++         */
++        _getCommand : function(e) {
++            var c = Event.getCharCode(e);
++
++            //alert(Event.getCharCode(e) + ", " + e.keyCode + ", " + e.charCode);
++
++            // special keys
++            if (c === 38) { // up arrow
++                return 3;
++            } else if (c === 13) { // return
++                return 6;
++            } else if (c === 40) { // down array
++                return 4;
++            } else if (c >= 48 && c<=57) { // 0-9
++                return 1;
++            } else if (c >= 97 && c<=102) { // a-f
++                return 2;
++            } else if (c >= 65 && c<=70) { // A-F
++                return 2;
++            //} else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 || 
++            //              (c >= 112 && c <=123)) { // including F-keys
++            // tab, delete, return, escape, left, right or ctrl/meta sequences
++            } else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 ||
++                       e.ctrlKey || e.metaKey) { // special chars
++                return 5;
++            } else { // something we probably don't want
++                return 0;
++            }
++        },
++
++        /**
++         * Use the value of the text field to update the control
++         * @method _useFieldValue
++         * @param e {Event} an event
++         * @param el {HTMLElement} the field
++         * @param prop {string} the key to the linked property
++         * @protected
++         */
++        _useFieldValue : function(e, el, prop) {
++            var val = el.value;
++
++            if (prop !== this.OPT.HEX) {
++                val = parseInt(val, 10);
++            }
++
++            if (val !== this.get(prop)) {
++                this.set(prop, val);
++            }
++        },
++
++        /**
++         * Handle keypress on one of the rgb or hsv fields.
++         * @method _rgbFieldKeypress
++         * @param e {Event} the keypress event
++         * @param el {HTMLElement} the field
++         * @param prop {string} the key to the linked property
++         * @protected
++         */
++        _rgbFieldKeypress : function(e, el, prop) {
++            var command = this._getCommand(e),
++                inc = (e.shiftKey) ? 10 : 1;
++            switch (command) {
++                case 6: // return, update the value
++                    this._useFieldValue.apply(this, arguments);
++                    break;
++                            
++                case 3: // up arrow, increment
++                    this.set(prop, Math.min(this.get(prop)+inc, 255));
++                    this._updateFormFields();
++                    //Event.stopEvent(e);
++                    break;
++                case 4: // down arrow, decrement
++                    this.set(prop, Math.max(this.get(prop)-inc, 0));
++                    this._updateFormFields();
++                    //Event.stopEvent(e);
++                    break;
++
++                default:
++            }
++
++        },
++
++        /**
++         * Handle keydown on the hex field
++         * @method _hexFieldKeypress
++         * @param e {Event} the keypress event
++         * @param el {HTMLElement} the field
++         * @param prop {string} the key to the linked property
++         * @protected
++         */
++        _hexFieldKeypress : function(e, el, prop) {
++            var command = this._getCommand(e);
++            if (command === 6) { // return, update the value
++                this._useFieldValue.apply(this, arguments);
++            }
++        },
++
++        /** 
++         * Allows numbers and special chars, and by default allows a-f.  
++         * Used for the hex field keypress handler.
++         * @method _hexOnly
++         * @param e {Event} the event
++         * @param numbersOnly omits a-f if set to true
++         * @protected
++         * @return {boolean} false if we are canceling the event
++         */
++        _hexOnly : function(e, numbersOnly) {
++            var command = this._getCommand(e);
++            switch (command) {
++                case 6: // return
++                case 5: // special char
++                case 1: // number
++                    break;
++                case 2: // hex char (a-f)
++                    if (numbersOnly !== true) {
++                        break;
++                    }
++
++                    // fallthrough is intentional
++
++                default: // prevent alpha and punctuation
++                    Event.stopEvent(e);
++                    return false;
++            }
++        },
++
++        /** 
++         * Allows numbers and special chars only.  Used for the
++         * rgb and hsv fields keypress handler.
++         * @method _numbersOnly
++         * @param e {Event} the event
++         * @protected
++         * @return {boolean} false if we are canceling the event
++         */
++        _numbersOnly : function(e) {
++            return this._hexOnly(e, true);
++        },
++
++        /**
++         * Returns the element reference that is saved.  The id can be either
++         * the element id, or the key for this id in the "id" config attribute.
++         * For instance, the host element id can be obtained by passing its
++         * id (default: "yui_picker") or by its key "YUI_PICKER".
++         * @param id {string} the element id, or key 
++         * @return {HTMLElement} a reference to the element
++         */
++        getElement : function(id) { 
++            return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[id]]; 
++        },
++
++        _createElements : function() {
++            this.logger.log("Building markup");
++            var el, child, img, fld, p,
++                ids = this.get(this.OPT.IDS),
++                txt = this.get(this.OPT.TXT),
++                images = this.get(this.OPT.IMAGES),
++                Elem = function(type, o) {
++                    var n = document.createElement(type);
++                    if (o) {
++                        lang.augmentObject(n, o, true);
++                    }
++                    return n;
++                },
++                RGBElem = function(type, obj) {
++                    var o = lang.merge({
++                            //type: "txt",
++                            autocomplete: "off",
++                            value: "0",
++                            size: 3,
++                            maxlength: 3
++                        }, obj);
++
++                    o.name = o.id;
++                    return new Elem(type, o);
++                };
++
++            p = this.get("element");
++
++            // Picker slider (S and V) ---------------------------------------------
++
++            el = new Elem("div", {
++                id: ids[this.ID.PICKER_BG],
++                className: "yui-picker-bg",
++                tabIndex: -1,
++                hideFocus: true
++            });
++
++            child = new Elem("div", {
++                id: ids[this.ID.PICKER_THUMB],
++                className: "yui-picker-thumb"
++            });
++
++            img = new Elem("img", {
++                src: images.PICKER_THUMB
++            });
++
++            child.appendChild(img);
++            el.appendChild(child);
++            p.appendChild(el);
++            
++            // Hue slider ---------------------------------------------
++            el = new Elem("div", {
++                id: ids[this.ID.HUE_BG],
++                className: "yui-picker-hue-bg",
++                tabIndex: -1,
++                hideFocus: true
++            });
++
++            child = new Elem("div", {
++                id: ids[this.ID.HUE_THUMB],
++                className: "yui-picker-hue-thumb"
++            });
++
++            img = new Elem("img", {
++                src: images.HUE_THUMB
++            });
++
++            child.appendChild(img);
++            el.appendChild(child);
++            p.appendChild(el);
++
++
++            // controls ---------------------------------------------
++
++            el = new Elem("div", {
++                id: ids[this.ID.CONTROLS],
++                className: "yui-picker-controls"
++            });
++
++            p.appendChild(el);
++            p = el;
++
++                // controls header
++                el = new Elem("div", {
++                    className: "hd"
++                });
++
++                child = new Elem("a", {
++                    id: ids[this.ID.CONTROLS_LABEL],
++                    //className: "yui-picker-controls-label",
++                    href: "#"
++                });
++                el.appendChild(child);
++                p.appendChild(el);
++
++                // bd
++                el = new Elem("div", {
++                    className: "bd"
++                });
++
++                p.appendChild(el);
++                p = el;
++
++                    // rgb
++                    el = new Elem("ul", {
++                        id: ids[this.ID.RGB_CONTROLS],
++                        className: "yui-picker-rgb-controls"
++                    });
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.R + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.R],
++                        className: "yui-picker-r"
++                    });
++
++                    child.appendChild(fld);
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.G + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.G],
++                        className: "yui-picker-g"
++                    });
++
++                    child.appendChild(fld);
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.B + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.B],
++                        className: "yui-picker-b"
++                    });
++
++                    child.appendChild(fld);
++                    el.appendChild(child);
++
++                    p.appendChild(el);
++
++                    // hsv
++                    el = new Elem("ul", {
++                        id: ids[this.ID.HSV_CONTROLS],
++                        className: "yui-picker-hsv-controls"
++                    });
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.H + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.H],
++                        className: "yui-picker-h"
++                    });
++
++                    child.appendChild(fld);
++                    child.appendChild(document.createTextNode(" " + txt.DEG));
++
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.S + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.S],
++                        className: "yui-picker-s"
++                    });
++
++                    child.appendChild(fld);
++                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
++
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.V + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.V],
++                        className: "yui-picker-v"
++                    });
++
++                    child.appendChild(fld);
++                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
++
++                    el.appendChild(child);
++                    p.appendChild(el);
++
++
++                    // hex summary
++
++                    el = new Elem("ul", {
++                        id: ids[this.ID.HEX_SUMMARY],
++                        className: "yui-picker-hex_summary"
++                    });
++
++                    child = new Elem("li", {
++                        id: ids[this.ID.R_HEX]
++                    });
++                    el.appendChild(child);
++
++                    child = new Elem("li", {
++                        id: ids[this.ID.G_HEX]
++                    });
++                    el.appendChild(child);
++
++                    child = new Elem("li", {
++                        id: ids[this.ID.B_HEX]
++                    });
++                    el.appendChild(child);
++                    p.appendChild(el);
++
++                    // hex field
++                    el = new Elem("div", {
++                        id: ids[this.ID.HEX_CONTROLS],
++                        className: "yui-picker-hex-controls"
++                    });
++                    el.appendChild(document.createTextNode(txt.HEX + " "));
++
++                    child = new RGBElem("input", {
++                        id: ids[this.ID.HEX],
++                        className: "yui-picker-hex",
++                        size: 6,
++                        maxlength: 6
++                    });
++
++                    el.appendChild(child);
++                    p.appendChild(el);
++
++                    p = this.get("element");
++
++                    // swatch
++                    el = new Elem("div", {
++                        id: ids[this.ID.SWATCH],
++                        className: "yui-picker-swatch"
++                    });
++
++                    p.appendChild(el);
++
++                    // websafe swatch
++                    el = new Elem("div", {
++                        id: ids[this.ID.WEBSAFE_SWATCH],
++                        className: "yui-picker-websafe-swatch"
++                    });
++
++                    p.appendChild(el);
++
++        },
++
++        _attachRGBHSV : function(id, config) {
++            Event.on(this.getElement(id), "keydown", function(e, me) {
++                    me._rgbFieldKeypress(e, this, config);
++                }, this);
++            Event.on(this.getElement(id), "keypress", this._numbersOnly, this, true);
++            Event.on(this.getElement(id), "blur", function(e, me) {
++                    me._useFieldValue(e, this, config);
++                }, this);
++        },
++
++
++        /**
++         * Updates the rgb attribute with the current state of the r,g,b
++         * fields.  This is invoked from change listeners on these
++         * attributes to facilitate updating these values from the
++         * individual form fields
++         * @method _updateRGB
++         * @protected
++         */
++        _updateRGB : function() {
++            var rgb = [this.get(this.OPT.RED), 
++                       this.get(this.OPT.GREEN),
++                       this.get(this.OPT.BLUE)];
++
++            this.logger.log("RGB value set to " + rgb);
++            this.set(this.OPT.RGB, rgb);
++
++            this._updateSliders();
++        },
++
++        /**
++         * Creates any missing DOM structure.
++         *
++         * @method _initElements
++         * @protected
++         */
++        _initElements : function () {
++            // bind all of our elements
++            var o=this.OPT, 
++                ids = this.get(o.IDS), 
++                els = this.get(o.ELEMENTS), 
++                      i, el, id;
++
++            // Add the default value as a key for each element for easier lookup
++            for (i in this.ID) {
++                if (lang.hasOwnProperty(this.ID, i)) {
++                    ids[this.ID[i]] = ids[i];
++                }
++            }
++
++            // Check for picker element, if not there, create all of them
++            el = Dom.get(ids[this.ID.PICKER_BG]);
++            if (!el) {
++                this._createElements();
++            } else {
++                this.logger.log("Using pre-existing markup");
++            }
++
++            for (i in ids) {
++                if (lang.hasOwnProperty(ids, i)) {
++                    // look for element
++                    el = Dom.get(ids[i]);
++
++                    // generate an id if the implementer passed in an element reference,
++                    // and the element did not have an id already
++                    id = Dom.generateId(el);
++
++                    // update the id in case we generated the id
++                    ids[i] = id; // key is WEBSAFE_SWATCH
++                    ids[ids[i]] = id; // key is websafe_swatch
++
++                    // store the dom ref
++                    els[id] = el;
++                }
++            }
++
++        },
++
++        /**
++         * Sets the initial state of the sliders
++         * @method initPicker
++         */
++        initPicker : function () {
++            this._initSliders();
++            this._bindUI();
++            this.syncUI(true);
++        },
++
++        /**
++         * Creates the Hue and Value/Saturation Sliders.
++         *
++         * @method _initSliders
++         * @protected
++         */
++        _initSliders : function () {
++            var ID = this.ID,
++                size = this.get(this.OPT.PICKER_SIZE);
++
++            this.logger.log("picker size" + size);
++
++            this.hueSlider = Slider.getVertSlider(
++                this.getElement(ID.HUE_BG), 
++                this.getElement(ID.HUE_THUMB), 0, size);
++
++            this.pickerSlider = Slider.getSliderRegion(
++                this.getElement(ID.PICKER_BG), 
++                this.getElement(ID.PICKER_THUMB), 0, size, 0, size);
++
++            // Apply animate attribute configuration
++            this.set(this.OPT.ANIMATE, this.get(this.OPT.ANIMATE));
++        },
++
++        /**
++         * Adds event listeners to Sliders and UI elements.  Wires everything
++         * up.
++         *
++         * @method _bindUI
++         * @protected
++         */
++        _bindUI : function () {
++            var ID = this.ID,
++                O  = this.OPT;
++
++            this.hueSlider.subscribe("change",
++                this._onHueSliderChange, this, true);
++            this.pickerSlider.subscribe("change",
++                this._onPickerSliderChange, this, true);
++
++            Event.on(this.getElement(ID.WEBSAFE_SWATCH), "click", function(e) {
++                   this.setValue(this.get(O.WEBSAFE));
++               }, this, true);
++
++            Event.on(this.getElement(ID.CONTROLS_LABEL), "click", function(e) {
++                   this.set(O.SHOW_CONTROLS, !this.get(O.SHOW_CONTROLS));
++                   Event.preventDefault(e);
++               }, this, true);
++
++            this._attachRGBHSV(ID.R, O.RED); 
++            this._attachRGBHSV(ID.G, O.GREEN); 
++            this._attachRGBHSV(ID.B, O.BLUE); 
++            this._attachRGBHSV(ID.H, O.HUE); 
++            this._attachRGBHSV(ID.S, O.SATURATION); 
++            this._attachRGBHSV(ID.V, O.VALUE); 
++
++            Event.on(this.getElement(ID.HEX), "keydown", function(e, me) {
++                    me._hexFieldKeypress(e, this, O.HEX);
++                }, this);
++
++            Event.on(this.getElement(this.ID.HEX), "keypress",
++                this._hexOnly, this,true);
++            Event.on(this.getElement(this.ID.HEX), "blur", function(e, me) {
++                    me._useFieldValue(e, this, O.HEX);
++                }, this);
++        },
++
++        /**
++         * Wrapper for _updateRGB, but allows setting 
++         *
++         * @method syncUI
++         * @param skipAnim {Boolean} Omit Slider animation for this action
++         */
++        syncUI : function (skipAnim) {
++            this.skipAnim = skipAnim;
++            this._updateRGB();
++            this.skipAnim = false;
++        },
++
++
++        /**
++         * Updates the RGB values from the current state of the HSV
++         * values.  Executed when the one of the HSV form fields are
++         * updated
++         * _updateRGBFromHSV
++         * @protected
++         */
++        _updateRGBFromHSV : function() {
++            var hsv = [this.get(this.OPT.HUE), 
++                       this.get(this.OPT.SATURATION)/100,
++                       this.get(this.OPT.VALUE)/100],
++                rgb = Color.hsv2rgb(hsv);
++
++            this.logger.log("HSV converted to RGB " + hsv + " : " + rgb);
++            this.set(this.OPT.RGB, rgb);
++
++            this._updateSliders();
++        },
++
++        /**
++         * Parses the hex string to normalize shorthand values, converts
++         * the hex value to rgb and updates the rgb attribute (which
++         * updates the state for all of the other values)
++         * method _updateHex
++         * @protected
++         */
++        _updateHex : function() {
++           
++            var hex = this.get(this.OPT.HEX),
++                l   = hex.length,
++                c,i,rgb;
++
++            // support #369 -> #336699 shorthand
++            if (l === 3) {
++                c = hex.split("");
++                for (i=0; i<l; i=i+1) {
++                    c[i] = c[i] + c[i];
++                }
++
++                hex = c.join("");
++            }
++
++            if (hex.length !== 6) {
++                this.logger.log(this.get(this.TXT.ILLEGAL_HEX), "error");
++                return false;
++            }
++
++            rgb = Color.hex2rgb(hex);
++
++            this.logger.log(sub("Hex value set to {hex} ({rgb})", {
++                    hex: hex, rgb: rgb
++                }));
++
++            this.setValue(rgb);
++        },
++
++
++        /**
++         * Returns the cached element reference.  If the id is not a string, it
++         * is assumed that it is an element and this is returned.
++         * @param id {string|HTMLElement} the element key, id, or ref
++         * @param on {boolean} hide or show.  If true, show
++         * @protected
++         */
++        _hideShowEl : function(id, on) {
++            var el = (lang.isString(id) ? this.getElement(id) : id);
++            Dom.setStyle(el, "display", (on) ? "" : "none");
++        },
++
++
++        /**
++         * Sets up the config attributes and the change listeners for this
++         * properties
++         * @method initAttributes
++         * @param attr An object containing default attribute values
++         */
++        initAttributes : function(attr) {
++
++            attr = attr || {};
++            ColorPicker.superclass.initAttributes.call(this, attr);
++            
++            /**
++             * The size of the picker. Trying to change this is not recommended.
++             * @attribute pickersize
++             * @default 180
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.PICKER_SIZE, {
++                    value: attr.size || this.DEFAULT.PICKER_SIZE
++                });
++
++            /**
++             * The current hue value 0-360
++             * @attribute hue
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.HUE, {
++                    value: attr.hue || 0,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current saturation value 0-100
++             * @attribute saturation
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.SATURATION, {
++                    value: attr.saturation || 0,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current value/brightness value 0-100
++             * @attribute value
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.VALUE, {
++                    value: lang.isNumber(attr.value) ? attr.value : 100,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current red value 0-255
++             * @attribute red
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.RED, {
++                    value: lang.isNumber(attr.red) ? attr.red : 255,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current green value 0-255
++             * @attribute green 
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.GREEN, {
++                    value: lang.isNumber(attr.green) ? attr.green : 255,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current blue value 0-255
++             * @attribute blue
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.BLUE, {
++                    value: lang.isNumber(attr.blue) ? attr.blue : 255,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current hex value #000000-#FFFFFF, without the #
++             * @attribute hex
++             * @type string
++             */
++            this.setAttributeConfig(this.OPT.HEX, {
++                    value: attr.hex || "FFFFFF",
++                    validator: lang.isString
++                });
++
++            /**
++             * The current rgb value.  Updates the state of all of the
++             * other value fields.  Read-only: use setValue to set the
++             * controls rgb value.
++             * @attribute hex
++             * @type [int, int, int]
++             * @readonly
++             */
++            this.setAttributeConfig(this.OPT.RGB, {
++                    value: attr.rgb || [255,255,255],
++                    method: function(rgb) {
++
++                        this.set(this.OPT.RED, rgb[0], true);
++                        this.set(this.OPT.GREEN, rgb[1], true);
++                        this.set(this.OPT.BLUE, rgb[2], true);
++
++                        var websafe = Color.websafe(rgb),
++                            hex = Color.rgb2hex(rgb),
++                            hsv = Color.rgb2hsv(rgb);
++
++                        this.set(this.OPT.WEBSAFE, websafe, true);
++                        this.set(this.OPT.HEX, hex, true);
++
++
++                        this.logger.log(sub("RGB value set to {rgb} (hsv: {hsv})", {
++                                "hsv": hsv, "rgb": rgb
++                            }));
++
++                        // fix bug #1754338 - when saturation is 0, hue is
++                        // silently always set to 0, but input field not updated
++                        if (hsv[1]) {
++                            this.set(this.OPT.HUE, hsv[0], true);
++                        }
++                        this.set(this.OPT.SATURATION, Math.round(hsv[1]*100), true);
++                        this.set(this.OPT.VALUE, Math.round(hsv[2]*100), true);
++                    },
++                    readonly: true
++                });
++
++            /**
++             * If the color picker will live inside of a container object,
++             * set, provide a reference to it so the control can use the
++             * container's events.
++             * @attribute container
++             * @type YAHOO.widget.Panel
++             */
++            this.setAttributeConfig(this.OPT.CONTAINER, {
++                        value: null,
++                        method: function(container) {
++                            if (container) {
++                                // Position can get out of sync when the
++                                // control is manipulated while display is
++                                // none.  Resetting the slider constraints
++                                // when it is visible gets the state back in
++                                // order.
++                                container.showEvent.subscribe(function() {
++                                    // this.pickerSlider.thumb.resetConstraints();
++                                    // this.hueSlider.thumb.resetConstraints();
++                                    this.pickerSlider.focus();
++                                }, this, true);
++                            }
++                        }
++                    });
++            /**
++             * The closest current websafe value
++             * @attribute websafe
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.WEBSAFE, {
++                    value: attr.websafe || [255,255,255]
++                });
++
++
++            var ids = attr.ids || lang.merge({}, this.ID), i;
++
++            if (!attr.ids && _pickercount > 1) {
++                for (i in ids) {
++                    if (lang.hasOwnProperty(ids, i)) {
++                        ids[i] = ids[i] + _pickercount;
++                    }
++                }
++            }
++
++
++            /**
++             * A list of element ids and/or element references used by the 
++             * control.  The default is the this.ID list, and can be customized
++             * by passing a list in the contructor
++             * @attribute ids
++             * @type {referenceid: realid}
++             * @writeonce
++             */
++            this.setAttributeConfig(this.OPT.IDS, {
++                    value: ids,
++                    writeonce: true
++                });
++
++            /**
++             * A list of txt strings for internationalization.  Default
++             * is this.TXT
++             * @attribute txt
++             * @type {key: txt}
++             * @writeonce
++             */
++            this.setAttributeConfig(this.OPT.TXT, {
++                    value: attr.txt || this.TXT,
++                    writeonce: true
++                });
++
++            /**
++             * The img src default list
++             * is this.IMAGES
++             * @attribute images
++             * @type {key: image}
++             * @writeonce
++             */
++            this.setAttributeConfig(this.OPT.IMAGES, {
++                    value: attr.images || this.IMAGE,
++                    writeonce: true
++                });
++            /**
++             * The element refs used by this control.  Set at initialization
++             * @attribute elements
++             * @type {id: HTMLElement}
++             * @readonly
++             */
++            this.setAttributeConfig(this.OPT.ELEMENTS, {
++                    value: {},
++                    readonly: true
++                });
++
++            /**
++             * Hide/show the entire set of controls
++             * @attribute showcontrols
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_CONTROLS, {
++                    value: lang.isBoolean(attr.showcontrols) ? attr.showcontrols : true,
++                    method: function(on) {
++
++                        var el = Dom.getElementsByClassName("bd", "div", 
++                                this.getElement(this.ID.CONTROLS))[0];
++
++                        this._hideShowEl(el, on);
++
++                        this.getElement(this.ID.CONTROLS_LABEL).innerHTML = 
++                            (on) ? this.get(this.OPT.TXT).HIDE_CONTROLS :
++                                   this.get(this.OPT.TXT).SHOW_CONTROLS;
++
++                    }
++                });
++
++            /**
++             * Hide/show the rgb controls
++             * @attribute showrgbcontrols
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS, {
++                    value: lang.isBoolean(attr.showrgbcontrols) ? attr.showrgbcontrols : true,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.RGB_CONTROLS, on);
++                    }
++                });
++
++            /**
++             * Hide/show the hsv controls
++             * @attribute showhsvcontrols
++             * @type boolean
++             * @default false
++             */
++            this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS, {
++                    value: lang.isBoolean(attr.showhsvcontrols) ?
++                                          attr.showhsvcontrols : false,
++                    method: function(on) {
++                        //Dom.setStyle(this.getElement(this.ID.HSV_CONTROLS), "visibility", (on) ? "" : "hidden");
++                        this._hideShowEl(this.ID.HSV_CONTROLS, on);
++
++                        // can't show both the hsv controls and the rbg hex summary
++                        if (on && this.get(this.OPT.SHOW_HEX_SUMMARY)) {
++                            this.set(this.OPT.SHOW_HEX_SUMMARY, false);
++                        }
++                    }
++                });
++
++            /**
++             * Hide/show the hex controls
++             * @attribute showhexcontrols
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS, {
++                    value: lang.isBoolean(attr.showhexcontrols) ?
++                                          attr.showhexcontrols : false,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.HEX_CONTROLS, on);
++                    }
++                });
++
++            /**
++             * Hide/show the websafe swatch
++             * @attribute showwebsafe
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_WEBSAFE, {
++                    value: lang.isBoolean(attr.showwebsafe) ? attr.showwebsafe : true,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.WEBSAFE_SWATCH, on);
++                    }
++                });
++
++            /**
++             * Hide/show the hex summary
++             * @attribute showhexsummary
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY, {
++                    value: lang.isBoolean(attr.showhexsummary) ? attr.showhexsummary : true,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.HEX_SUMMARY, on);
++
++                        // can't show both the hsv controls and the rbg hex summary
++                        if (on && this.get(this.OPT.SHOW_HSV_CONTROLS)) {
++                            this.set(this.OPT.SHOW_HSV_CONTROLS, false);
++                        }
++                    }
++                });
++            this.setAttributeConfig(this.OPT.ANIMATE, {
++                    value: lang.isBoolean(attr.animate) ? attr.animate : true,
++                    method: function(on) {
++                        if (this.pickerSlider) {
++                            this.pickerSlider.animate = on;
++                            this.hueSlider.animate = on;
++                        }
++                    }
++                });
++
++            this.on(this.OPT.HUE + "Change", this._updateRGBFromHSV, this, true);
++            this.on(this.OPT.SATURATION + "Change", this._updateRGBFromHSV, this, true);
++            this.on(this.OPT.VALUE + "Change", this._updateRGBFromHSV, this, true);
++
++            this.on(this.OPT.RED + "Change", this._updateRGB, this, true);
++            this.on(this.OPT.GREEN + "Change", this._updateRGB, this, true);
++            this.on(this.OPT.BLUE + "Change", this._updateRGB, this, true);
++
++            this.on(this.OPT.HEX + "Change", this._updateHex, this, true);
++
++            this._initElements();
++        }
++    });
++
++    YAHOO.widget.ColorPicker = ColorPicker;
++})();
++YAHOO.register("colorpicker", YAHOO.widget.ColorPicker, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/colorpicker/colorpicker-min.js b/pylons_app/public/js/yui/colorpicker/colorpicker-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/colorpicker/colorpicker-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.Color=function(){var A="0",B=YAHOO.lang.isArray,C=YAHOO.lang.isNumber;return{real2dec:function(D){return Math.min(255,Math.round(D*256));},hsv2rgb:function(H,O,M){if(B(H)){return this.hsv2rgb.call(this,H[0],H[1],H[2]);}var D,I,L,G=Math.floor((H/60)%6),J=(H/60)-G,F=M*(1-O),E=M*(1-J*O),N=M*(1-(1-J)*O),K;switch(G){case 0:D=M;I=N;L=F;break;case 1:D=E;I=M;L=F;break;case 2:D=F;I=M;L=N;break;case 3:D=F;I=E;L=M;break;case 4:D=N;I=F;L=M;break;case 5:D=M;I=F;L=E;break;}K=this.real2dec;return[K(D),K(I),K(L)];},rgb2hsv:function(D,H,I){if(B(D)){return this.rgb2hsv.apply(this,D);}D/=255;H/=255;I/=255;var G,L,E=Math.min(Math.min(D,H),I),J=Math.max(Math.max(D,H),I),K=J-E,F;switch(J){case E:G=0;break;case D:G=60*(H-I)/K;if(H<I){G+=360;}break;case H:G=(60*(I-D)/K)+120;break;case I:G=(60*(D-H)/K)+240;break;}L=(J===0)?0:1-(E/J);F=[Math.round(G),L,J];return F;},rgb2hex:function(F,E,D){if(B(F)){return this.rgb2hex.apply(this,F);}var G=this.dec2hex;return G(F)+G(E)+G(D);},dec2hex:function(D){D=parseInt(D,10)|0;D=(D>255||D<0)?0:D;return(A+D.toString(16)).slice(-2).toUpperCase();},hex2dec:function(D){return parseInt(D,16);},hex2rgb:function(D){var E=this.hex2dec;return[E(D.slice(0,2)),E(D.slice(2,4)),E(D.slice(4,6))];},websafe:function(F,E,D){if(B(F)){return this.websafe.apply(this,F);}var G=function(H){if(C(H)){H=Math.min(Math.max(0,H),255);var I,J;for(I=0;I<256;I=I+51){J=I+51;if(H>=I&&H<=J){return(H-I>25)?J:I;}}}return H;};return[G(F),G(E),G(D)];}};}();(function(){var J=0,F=YAHOO.util,C=YAHOO.lang,D=YAHOO.widget.Slider,B=F.Color,E=F.Dom,I=F.Event,A=C.substitute,H="yui-picker";function G(L,K){J=J+1;K=K||{};if(arguments.length===1&&!YAHOO.lang.isString(L)&&!L.nodeName){K=L;L=K.element||null;}if(!L&&!K.element){L=this._createHostElement(K);}G.superclass.constructor.call(this,L,K);this.initPicker();}YAHOO.extend(G,YAHOO.util.Element,{ID:{R:H+"-r",R_HEX:H+"-rhex",G:H+"-g",G_HEX:H+"-ghex",B:H+"-b",B_HEX:H+"-bhex",H:H+"-h",S:H+"-s",V:H+"-v",PICKER_BG:H+"-bg",PICKER_THUMB:H+"-thumb",HUE_BG:H+"-hue-bg",HUE_THUMB:H+"-hue-thumb",HEX:H+"-hex",SWATCH:H+"-swatch",WEBSAFE_SWATCH:H+"-websafe-swatch",CONTROLS:H+"-controls",RGB_CONTROLS:H+"-rgb-controls",HSV_CONTROLS:H+"-hsv-controls",HEX_CONTROLS:H+"-hex-controls",HEX_SUMMARY:H+"-hex-summary",CONTROLS_LABEL:H+"-controls-label"},TXT:{ILLEGAL_HEX:"Illegal hex value entered",SHOW_CONTROLS:"Show color details",HIDE_CONTROLS:"Hide color details",CURRENT_COLOR:"Currently selected color: {rgb}",CLOSEST_WEBSAFE:"Closest websafe color: {rgb}. Click to select.",R:"R",G:"G",B:"B",H:"H",S:"S",V:"V",HEX:"#",DEG:"\u00B0",PERCENT:"%"},IMAGE:{PICKER_THUMB:"../../build/colorpicker/assets/picker_thumb.png",HUE_THUMB:"../../build/colorpicker/assets/hue_thumb.png"},DEFAULT:{PICKER_SIZE:180},OPT:{HUE:"hue",SATURATION:"saturation",VALUE:"value",RED:"red",GREEN:"green",BLUE:"blue",HSV:"hsv",RGB:"rgb",WEBSAFE:"websafe",HEX:"hex",PICKER_SIZE:"pickersize",SHOW_CONTROLS:"showcontrols",SHOW_RGB_CONTROLS:"showrgbcontrols",SHOW_HSV_CONTROLS:"showhsvcontrols",SHOW_HEX_CONTROLS:"showhexcontrols",SHOW_HEX_SUMMARY:"showhexsummary",SHOW_WEBSAFE:"showwebsafe",CONTAINER:"container",IDS:"ids",ELEMENTS:"elements",TXT:"txt",IMAGES:"images",ANIMATE:"animate"},skipAnim:true,_createHostElement:function(){var K=document.createElement("div");if(this.CSS.BASE){K.className=this.CSS.BASE;}return K;},_updateHueSlider:function(){var K=this.get(this.OPT.PICKER_SIZE),L=this.get(this.OPT.HUE);L=K-Math.round(L/360*K);if(L===K){L=0;}this.hueSlider.setValue(L,this.skipAnim);},_updatePickerSlider:function(){var L=this.get(this.OPT.PICKER_SIZE),M=this.get(this.OPT.SATURATION),K=this.get(this.OPT.VALUE);M=Math.round(M*L/100);K=Math.round(L-(K*L/100));this.pickerSlider.setRegionValue(M,K,this.skipAnim);},_updateSliders:function(){this._updateHueSlider();this._updatePickerSlider();},setValue:function(L,K){K=(K)||false;this.set(this.OPT.RGB,L,K);this._updateSliders();},hueSlider:null,pickerSlider:null,_getH:function(){var K=this.get(this.OPT.PICKER_SIZE),L=(K-this.hueSlider.getValue())/K;L=Math.round(L*360);return(L===360)?0:L;},_getS:function(){return this.pickerSlider.getXValue()/this.get(this.OPT.PICKER_SIZE);},_getV:function(){var K=this.get(this.OPT.PICKER_SIZE);return(K-this.pickerSlider.getYValue())/K;},_updateSwatch:function(){var M=this.get(this.OPT.RGB),O=this.get(this.OPT.WEBSAFE),N=this.getElement(this.ID.SWATCH),L=M.join(","),K=this.get(this.OPT.TXT);E.setStyle(N,"background-color","rgb("+L+")");N.title=A(K.CURRENT_COLOR,{"rgb":"#"+this.get(this.OPT.HEX)});N=this.getElement(this.ID.WEBSAFE_SWATCH);L=O.join(",");E.setStyle(N,"background-color","rgb("+L+")");N.title=A(K.CLOSEST_WEBSAFE,{"rgb":"#"+B.rgb2hex(O)});},_getValuesFromSliders:function(){this.set(this.OPT.RGB,B.hsv2rgb(this._getH(),this._getS(),this._getV()));},_updateFormFields:function(){this.getElement(this.ID.H).value=this.get(this.OPT.HUE);this.getElement(this.ID.S).value=this.get(this.OPT.SATURATION);this.getElement(this.ID.V).value=this.get(this.OPT.VALUE);this.getElement(this.ID.R).value=this.get(this.OPT.RED);this.getElement(this.ID.R_HEX).innerHTML=B.dec2hex(this.get(this.OPT.RED));this.getElement(this.ID.G).value=this.get(this.OPT.GREEN);this.getElement(this.ID.G_HEX).innerHTML=B.dec2hex(this.get(this.OPT.GREEN));this.getElement(this.ID.B).value=this.get(this.OPT.BLUE);this.getElement(this.ID.B_HEX).innerHTML=B.dec2hex(this.get(this.OPT.BLUE));this.getElement(this.ID.HEX).value=this.get(this.OPT.HEX);},_onHueSliderChange:function(N){var L=this._getH(),K=B.hsv2rgb(L,1,1),M="rgb("+K.join(",")+")";this.set(this.OPT.HUE,L,true);E.setStyle(this.getElement(this.ID.PICKER_BG),"background-color",M);if(this.hueSlider.valueChangeSource!==D.SOURCE_SET_VALUE){this._getValuesFromSliders();}this._updateFormFields();this._updateSwatch();},_onPickerSliderChange:function(M){var L=this._getS(),K=this._getV();this.set(this.OPT.SATURATION,Math.round(L*100),true);this.set(this.OPT.VALUE,Math.round(K*100),true);if(this.pickerSlider.valueChangeSource!==D.SOURCE_SET_VALUE){this._getValuesFromSliders();
++}this._updateFormFields();this._updateSwatch();},_getCommand:function(K){var L=I.getCharCode(K);if(L===38){return 3;}else{if(L===13){return 6;}else{if(L===40){return 4;}else{if(L>=48&&L<=57){return 1;}else{if(L>=97&&L<=102){return 2;}else{if(L>=65&&L<=70){return 2;}else{if("8, 9, 13, 27, 37, 39".indexOf(L)>-1||K.ctrlKey||K.metaKey){return 5;}else{return 0;}}}}}}}},_useFieldValue:function(L,K,N){var M=K.value;if(N!==this.OPT.HEX){M=parseInt(M,10);}if(M!==this.get(N)){this.set(N,M);}},_rgbFieldKeypress:function(M,K,O){var N=this._getCommand(M),L=(M.shiftKey)?10:1;switch(N){case 6:this._useFieldValue.apply(this,arguments);break;case 3:this.set(O,Math.min(this.get(O)+L,255));this._updateFormFields();break;case 4:this.set(O,Math.max(this.get(O)-L,0));this._updateFormFields();break;default:}},_hexFieldKeypress:function(L,K,N){var M=this._getCommand(L);if(M===6){this._useFieldValue.apply(this,arguments);}},_hexOnly:function(L,K){var M=this._getCommand(L);switch(M){case 6:case 5:case 1:break;case 2:if(K!==true){break;}default:I.stopEvent(L);return false;}},_numbersOnly:function(K){return this._hexOnly(K,true);},getElement:function(K){return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[K]];},_createElements:function(){var N,M,P,O,L,K=this.get(this.OPT.IDS),Q=this.get(this.OPT.TXT),S=this.get(this.OPT.IMAGES),R=function(U,V){var W=document.createElement(U);if(V){C.augmentObject(W,V,true);}return W;},T=function(U,V){var W=C.merge({autocomplete:"off",value:"0",size:3,maxlength:3},V);W.name=W.id;return new R(U,W);};L=this.get("element");N=new R("div",{id:K[this.ID.PICKER_BG],className:"yui-picker-bg",tabIndex:-1,hideFocus:true});M=new R("div",{id:K[this.ID.PICKER_THUMB],className:"yui-picker-thumb"});P=new R("img",{src:S.PICKER_THUMB});M.appendChild(P);N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.HUE_BG],className:"yui-picker-hue-bg",tabIndex:-1,hideFocus:true});M=new R("div",{id:K[this.ID.HUE_THUMB],className:"yui-picker-hue-thumb"});P=new R("img",{src:S.HUE_THUMB});M.appendChild(P);N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.CONTROLS],className:"yui-picker-controls"});L.appendChild(N);L=N;N=new R("div",{className:"hd"});M=new R("a",{id:K[this.ID.CONTROLS_LABEL],href:"#"});N.appendChild(M);L.appendChild(N);N=new R("div",{className:"bd"});L.appendChild(N);L=N;N=new R("ul",{id:K[this.ID.RGB_CONTROLS],className:"yui-picker-rgb-controls"});M=new R("li");M.appendChild(document.createTextNode(Q.R+" "));O=new T("input",{id:K[this.ID.R],className:"yui-picker-r"});M.appendChild(O);N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.G+" "));O=new T("input",{id:K[this.ID.G],className:"yui-picker-g"});M.appendChild(O);N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.B+" "));O=new T("input",{id:K[this.ID.B],className:"yui-picker-b"});M.appendChild(O);N.appendChild(M);L.appendChild(N);N=new R("ul",{id:K[this.ID.HSV_CONTROLS],className:"yui-picker-hsv-controls"});M=new R("li");M.appendChild(document.createTextNode(Q.H+" "));O=new T("input",{id:K[this.ID.H],className:"yui-picker-h"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.DEG));N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.S+" "));O=new T("input",{id:K[this.ID.S],className:"yui-picker-s"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.PERCENT));N.appendChild(M);M=new R("li");M.appendChild(document.createTextNode(Q.V+" "));O=new T("input",{id:K[this.ID.V],className:"yui-picker-v"});M.appendChild(O);M.appendChild(document.createTextNode(" "+Q.PERCENT));N.appendChild(M);L.appendChild(N);N=new R("ul",{id:K[this.ID.HEX_SUMMARY],className:"yui-picker-hex_summary"});M=new R("li",{id:K[this.ID.R_HEX]});N.appendChild(M);M=new R("li",{id:K[this.ID.G_HEX]});N.appendChild(M);M=new R("li",{id:K[this.ID.B_HEX]});N.appendChild(M);L.appendChild(N);N=new R("div",{id:K[this.ID.HEX_CONTROLS],className:"yui-picker-hex-controls"});N.appendChild(document.createTextNode(Q.HEX+" "));M=new T("input",{id:K[this.ID.HEX],className:"yui-picker-hex",size:6,maxlength:6});N.appendChild(M);L.appendChild(N);L=this.get("element");N=new R("div",{id:K[this.ID.SWATCH],className:"yui-picker-swatch"});L.appendChild(N);N=new R("div",{id:K[this.ID.WEBSAFE_SWATCH],className:"yui-picker-websafe-swatch"});L.appendChild(N);},_attachRGBHSV:function(L,K){I.on(this.getElement(L),"keydown",function(N,M){M._rgbFieldKeypress(N,this,K);},this);I.on(this.getElement(L),"keypress",this._numbersOnly,this,true);I.on(this.getElement(L),"blur",function(N,M){M._useFieldValue(N,this,K);},this);},_updateRGB:function(){var K=[this.get(this.OPT.RED),this.get(this.OPT.GREEN),this.get(this.OPT.BLUE)];this.set(this.OPT.RGB,K);this._updateSliders();},_initElements:function(){var O=this.OPT,N=this.get(O.IDS),L=this.get(O.ELEMENTS),K,M,P;for(K in this.ID){if(C.hasOwnProperty(this.ID,K)){N[this.ID[K]]=N[K];}}M=E.get(N[this.ID.PICKER_BG]);if(!M){this._createElements();}else{}for(K in N){if(C.hasOwnProperty(N,K)){M=E.get(N[K]);P=E.generateId(M);N[K]=P;N[N[K]]=P;L[P]=M;}}},initPicker:function(){this._initSliders();this._bindUI();this.syncUI(true);},_initSliders:function(){var K=this.ID,L=this.get(this.OPT.PICKER_SIZE);this.hueSlider=D.getVertSlider(this.getElement(K.HUE_BG),this.getElement(K.HUE_THUMB),0,L);this.pickerSlider=D.getSliderRegion(this.getElement(K.PICKER_BG),this.getElement(K.PICKER_THUMB),0,L,0,L);this.set(this.OPT.ANIMATE,this.get(this.OPT.ANIMATE));},_bindUI:function(){var K=this.ID,L=this.OPT;this.hueSlider.subscribe("change",this._onHueSliderChange,this,true);this.pickerSlider.subscribe("change",this._onPickerSliderChange,this,true);I.on(this.getElement(K.WEBSAFE_SWATCH),"click",function(M){this.setValue(this.get(L.WEBSAFE));},this,true);I.on(this.getElement(K.CONTROLS_LABEL),"click",function(M){this.set(L.SHOW_CONTROLS,!this.get(L.SHOW_CONTROLS));I.preventDefault(M);},this,true);this._attachRGBHSV(K.R,L.RED);this._attachRGBHSV(K.G,L.GREEN);this._attachRGBHSV(K.B,L.BLUE);this._attachRGBHSV(K.H,L.HUE);
++this._attachRGBHSV(K.S,L.SATURATION);this._attachRGBHSV(K.V,L.VALUE);I.on(this.getElement(K.HEX),"keydown",function(N,M){M._hexFieldKeypress(N,this,L.HEX);},this);I.on(this.getElement(this.ID.HEX),"keypress",this._hexOnly,this,true);I.on(this.getElement(this.ID.HEX),"blur",function(N,M){M._useFieldValue(N,this,L.HEX);},this);},syncUI:function(K){this.skipAnim=K;this._updateRGB();this.skipAnim=false;},_updateRGBFromHSV:function(){var L=[this.get(this.OPT.HUE),this.get(this.OPT.SATURATION)/100,this.get(this.OPT.VALUE)/100],K=B.hsv2rgb(L);this.set(this.OPT.RGB,K);this._updateSliders();},_updateHex:function(){var N=this.get(this.OPT.HEX),K=N.length,O,M,L;if(K===3){O=N.split("");for(M=0;M<K;M=M+1){O[M]=O[M]+O[M];}N=O.join("");}if(N.length!==6){return false;}L=B.hex2rgb(N);this.setValue(L);},_hideShowEl:function(M,K){var L=(C.isString(M)?this.getElement(M):M);E.setStyle(L,"display",(K)?"":"none");},initAttributes:function(K){K=K||{};G.superclass.initAttributes.call(this,K);this.setAttributeConfig(this.OPT.PICKER_SIZE,{value:K.size||this.DEFAULT.PICKER_SIZE});this.setAttributeConfig(this.OPT.HUE,{value:K.hue||0,validator:C.isNumber});this.setAttributeConfig(this.OPT.SATURATION,{value:K.saturation||0,validator:C.isNumber});this.setAttributeConfig(this.OPT.VALUE,{value:C.isNumber(K.value)?K.value:100,validator:C.isNumber});this.setAttributeConfig(this.OPT.RED,{value:C.isNumber(K.red)?K.red:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.GREEN,{value:C.isNumber(K.green)?K.green:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.BLUE,{value:C.isNumber(K.blue)?K.blue:255,validator:C.isNumber});this.setAttributeConfig(this.OPT.HEX,{value:K.hex||"FFFFFF",validator:C.isString});this.setAttributeConfig(this.OPT.RGB,{value:K.rgb||[255,255,255],method:function(O){this.set(this.OPT.RED,O[0],true);this.set(this.OPT.GREEN,O[1],true);this.set(this.OPT.BLUE,O[2],true);var Q=B.websafe(O),P=B.rgb2hex(O),N=B.rgb2hsv(O);this.set(this.OPT.WEBSAFE,Q,true);this.set(this.OPT.HEX,P,true);if(N[1]){this.set(this.OPT.HUE,N[0],true);}this.set(this.OPT.SATURATION,Math.round(N[1]*100),true);this.set(this.OPT.VALUE,Math.round(N[2]*100),true);},readonly:true});this.setAttributeConfig(this.OPT.CONTAINER,{value:null,method:function(N){if(N){N.showEvent.subscribe(function(){this.pickerSlider.focus();},this,true);}}});this.setAttributeConfig(this.OPT.WEBSAFE,{value:K.websafe||[255,255,255]});var M=K.ids||C.merge({},this.ID),L;if(!K.ids&&J>1){for(L in M){if(C.hasOwnProperty(M,L)){M[L]=M[L]+J;}}}this.setAttributeConfig(this.OPT.IDS,{value:M,writeonce:true});this.setAttributeConfig(this.OPT.TXT,{value:K.txt||this.TXT,writeonce:true});this.setAttributeConfig(this.OPT.IMAGES,{value:K.images||this.IMAGE,writeonce:true});this.setAttributeConfig(this.OPT.ELEMENTS,{value:{},readonly:true});this.setAttributeConfig(this.OPT.SHOW_CONTROLS,{value:C.isBoolean(K.showcontrols)?K.showcontrols:true,method:function(N){var O=E.getElementsByClassName("bd","div",this.getElement(this.ID.CONTROLS))[0];this._hideShowEl(O,N);this.getElement(this.ID.CONTROLS_LABEL).innerHTML=(N)?this.get(this.OPT.TXT).HIDE_CONTROLS:this.get(this.OPT.TXT).SHOW_CONTROLS;}});this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS,{value:C.isBoolean(K.showrgbcontrols)?K.showrgbcontrols:true,method:function(N){this._hideShowEl(this.ID.RGB_CONTROLS,N);}});this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS,{value:C.isBoolean(K.showhsvcontrols)?K.showhsvcontrols:false,method:function(N){this._hideShowEl(this.ID.HSV_CONTROLS,N);if(N&&this.get(this.OPT.SHOW_HEX_SUMMARY)){this.set(this.OPT.SHOW_HEX_SUMMARY,false);}}});this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS,{value:C.isBoolean(K.showhexcontrols)?K.showhexcontrols:false,method:function(N){this._hideShowEl(this.ID.HEX_CONTROLS,N);}});this.setAttributeConfig(this.OPT.SHOW_WEBSAFE,{value:C.isBoolean(K.showwebsafe)?K.showwebsafe:true,method:function(N){this._hideShowEl(this.ID.WEBSAFE_SWATCH,N);}});this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY,{value:C.isBoolean(K.showhexsummary)?K.showhexsummary:true,method:function(N){this._hideShowEl(this.ID.HEX_SUMMARY,N);if(N&&this.get(this.OPT.SHOW_HSV_CONTROLS)){this.set(this.OPT.SHOW_HSV_CONTROLS,false);}}});this.setAttributeConfig(this.OPT.ANIMATE,{value:C.isBoolean(K.animate)?K.animate:true,method:function(N){if(this.pickerSlider){this.pickerSlider.animate=N;this.hueSlider.animate=N;}}});this.on(this.OPT.HUE+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.SATURATION+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.VALUE+"Change",this._updateRGBFromHSV,this,true);this.on(this.OPT.RED+"Change",this._updateRGB,this,true);this.on(this.OPT.GREEN+"Change",this._updateRGB,this,true);this.on(this.OPT.BLUE+"Change",this._updateRGB,this,true);this.on(this.OPT.HEX+"Change",this._updateHex,this,true);this._initElements();}});YAHOO.widget.ColorPicker=G;})();YAHOO.register("colorpicker",YAHOO.widget.ColorPicker,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/colorpicker/colorpicker.js b/pylons_app/public/js/yui/colorpicker/colorpicker.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/colorpicker/colorpicker.js
+@@ -0,0 +1,1763 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides color conversion and validation utils
++ * @class YAHOO.util.Color
++ * @namespace YAHOO.util
++ */
++YAHOO.util.Color = function() {
++
++    var ZERO     = "0",
++        isArray  = YAHOO.lang.isArray,
++        isNumber = YAHOO.lang.isNumber;
++
++    return {
++
++        /**
++         * Converts 0-1 to 0-255
++         * @method real2dec
++         * @param n {float} the number to convert
++         * @return {int} a number 0-255
++         */
++        real2dec: function(n) {
++            return Math.min(255, Math.round(n*256));
++        },
++
++        /**
++         * Converts HSV (h[0-360], s[0-1]), v[0-1] to RGB [255,255,255]
++         * @method hsv2rgb
++         * @param h {int|[int, float, float]} the hue, or an
++         *        array containing all three parameters
++         * @param s {float} the saturation
++         * @param v {float} the value/brightness
++         * @return {[int, int, int]} the red, green, blue values in
++         *          decimal.
++         */
++        hsv2rgb: function(h, s, v) { 
++
++            if (isArray(h)) {
++                return this.hsv2rgb.call(this, h[0], h[1], h[2]);
++            }
++
++            var r, g, b,
++                i = Math.floor((h/60)%6),
++                f = (h/60)-i,
++                p = v*(1-s),
++                q = v*(1-f*s),
++                t = v*(1-(1-f)*s),
++                fn;
++
++            switch (i) {
++                case 0: r=v; g=t; b=p; break;
++                case 1: r=q; g=v; b=p; break;
++                case 2: r=p; g=v; b=t; break;
++                case 3: r=p; g=q; b=v; break;
++                case 4: r=t; g=p; b=v; break;
++                case 5: r=v; g=p; b=q; break;
++            }
++
++            fn=this.real2dec;
++
++            return [fn(r), fn(g), fn(b)];
++        },
++
++        /**
++         * Converts to RGB [255,255,255] to HSV (h[0-360], s[0-1]), v[0-1]
++         * @method rgb2hsv
++         * @param r {int|[int, int, int]} the red value, or an
++         *        array containing all three parameters
++         * @param g {int} the green value
++         * @param b {int} the blue value
++         * @return {[int, float, float]} the value converted to hsv
++         */
++        rgb2hsv: function(r, g, b) {
++
++            if (isArray(r)) {
++                return this.rgb2hsv.apply(this, r);
++            }
++
++            r /= 255;
++            g /= 255;
++            b /= 255;
++
++            var h,s,
++                min = Math.min(Math.min(r,g),b),
++                max = Math.max(Math.max(r,g),b),
++                delta = max-min,
++                hsv;
++
++            switch (max) {
++                case min: h=0; break;
++                case r:   h=60*(g-b)/delta; 
++                          if (g<b) {
++                              h+=360;
++                          }
++                          break;
++                case g:   h=(60*(b-r)/delta)+120; break;
++                case b:   h=(60*(r-g)/delta)+240; break;
++            }
++            
++            s = (max === 0) ? 0 : 1-(min/max);
++
++            hsv = [Math.round(h), s, max];
++
++            return hsv;
++        },
++
++        /**
++         * Converts decimal rgb values into a hex string
++         * 255,255,255 -> FFFFFF
++         * @method rgb2hex
++         * @param r {int|[int, int, int]} the red value, or an
++         *        array containing all three parameters
++         * @param g {int} the green value
++         * @param b {int} the blue value
++         * @return {string} the hex string
++         */
++        rgb2hex: function(r, g, b) {
++            if (isArray(r)) {
++                return this.rgb2hex.apply(this, r);
++            }
++
++            var f=this.dec2hex;
++            return f(r) + f(g) + f(b);
++        },
++     
++        /**
++         * Converts an int 0...255 to hex pair 00...FF
++         * @method dec2hex
++         * @param n {int} the number to convert
++         * @return {string} the hex equivalent
++         */
++        dec2hex: function(n) {
++            n = parseInt(n,10)|0;
++            n = (n > 255 || n < 0) ? 0 : n;
++
++            return (ZERO+n.toString(16)).slice(-2).toUpperCase();
++        },
++
++        /**
++         * Converts a hex pair 00...FF to an int 0...255 
++         * @method hex2dec
++         * @param str {string} the hex pair to convert
++         * @return {int} the decimal
++         */
++        hex2dec: function(str) {
++            return parseInt(str,16);
++        },
++
++        /**
++         * Converts a hex string to rgb
++         * @method hex2rgb
++         * @param str {string} the hex string
++         * @return {[int, int, int]} an array containing the rgb values
++         */
++        hex2rgb: function(s) { 
++            var f = this.hex2dec;
++            return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
++        },
++
++        /**
++         * Returns the closest websafe color to the supplied rgb value.
++         * @method websafe
++         * @param r {int|[int, int, int]} the red value, or an
++         *        array containing all three parameters
++         * @param g {int} the green value
++         * @param b {int} the blue value
++         * @return {[int, int, int]} an array containing the closes
++         *                           websafe rgb colors.
++         */
++        websafe: function(r, g, b) {
++
++            if (isArray(r)) {
++                return this.websafe.apply(this, r);
++            }
++
++            // returns the closest match [0, 51, 102, 153, 204, 255]
++            var f = function(v) {
++                if (isNumber(v)) {
++                    v = Math.min(Math.max(0, v), 255);
++                    var i, next;
++                    for (i=0; i<256; i=i+51) {
++                        next = i+51;
++                        if (v >= i && v <= next) {
++                            return (v-i > 25) ? next : i;
++                        }
++                    }
++                }
++
++                return v;
++            };
++
++            return [f(r), f(g), f(b)];
++        }
++    };
++}();
++
++
++/**
++ * The colorpicker module provides a widget for selecting colors
++ * @module colorpicker
++ * @requires yahoo, dom, event, element, slider
++ */
++(function() {
++
++    var _pickercount = 0,
++        util   = YAHOO.util,
++        lang   = YAHOO.lang,
++        Slider = YAHOO.widget.Slider,
++        Color  = util.Color,
++        Dom    = util.Dom,
++        Event  = util.Event,
++        sub    = lang.substitute,
++        
++        b = "yui-picker";
++    
++
++    /**
++     * A widget to select colors
++     * @namespace YAHOO.widget
++     * @class YAHOO.widget.ColorPicker
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param {HTMLElement | String | Object} el(optional) The html 
++     * element that represents the colorpicker, or the attribute object to use. 
++     * An element will be created if none provided.
++     * @param {Object} attr (optional) A key map of the colorpicker's 
++     * initial attributes.  Ignored if first arg is attributes object.
++     */
++    function ColorPicker(el, attr) {
++        _pickercount = _pickercount + 1;
++        attr = attr || {};
++        if (arguments.length === 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
++            attr = el; // treat first arg as attr object
++            el = attr.element || null;
++        }
++        
++        if (!el && !attr.element) { // create if we dont have one
++            el = this._createHostElement(attr);
++        }
++
++    	ColorPicker.superclass.constructor.call(this, el, attr); 
++
++        this.initPicker();
++    }
++
++    YAHOO.extend(ColorPicker, YAHOO.util.Element, {
++    
++        /**
++         * The element ids used by this control
++         * @property ID
++         * @final
++         */
++        ID : {
++
++            /**
++             * The id for the "red" form field
++             * @property ID.R
++             * @type String
++             * @final
++             * @default yui-picker-r
++             */
++            R: b + "-r",
++
++            /**
++             * The id for the "red" hex pair output
++             * @property ID.R_HEX
++             * @type String
++             * @final
++             * @default yui-picker-rhex
++             */
++            R_HEX: b + "-rhex",
++
++            /**
++             * The id for the "green" form field
++             * @property ID.G
++             * @type String
++             * @final
++             * @default yui-picker-g
++             */
++            G: b + "-g",
++
++            /**
++             * The id for the "green" hex pair output
++             * @property ID.G_HEX
++             * @type String
++             * @final
++             * @default yui-picker-ghex
++             */
++            G_HEX: b + "-ghex",
++
++
++            /**
++             * The id for the "blue" form field
++             * @property ID.B
++             * @type String
++             * @final
++             * @default yui-picker-b
++             */
++            B: b + "-b",
++
++            /**
++             * The id for the "blue" hex pair output
++             * @property ID.B_HEX
++             * @type String
++             * @final
++             * @default yui-picker-bhex
++             */
++            B_HEX: b + "-bhex",
++
++            /**
++             * The id for the "hue" form field
++             * @property ID.H
++             * @type String
++             * @final
++             * @default yui-picker-h
++             */
++            H: b + "-h",
++
++            /**
++             * The id for the "saturation" form field
++             * @property ID.S
++             * @type String
++             * @final
++             * @default yui-picker-s
++             */
++            S: b + "-s",
++
++            /**
++             * The id for the "value" form field
++             * @property ID.V
++             * @type String
++             * @final
++             * @default yui-picker-v
++             */
++            V: b + "-v",
++
++            /**
++             * The id for the picker region slider
++             * @property ID.PICKER_BG
++             * @type String
++             * @final
++             * @default yui-picker-bg
++             */
++            PICKER_BG:      b + "-bg",
++
++            /**
++             * The id for the picker region thumb
++             * @property ID.PICKER_THUMB
++             * @type String
++             * @final
++             * @default yui-picker-thumb
++             */
++            PICKER_THUMB:   b + "-thumb",
++
++            /**
++             * The id for the hue slider
++             * @property ID.HUE_BG
++             * @type String
++             * @final
++             * @default yui-picker-hue-bg
++             */
++            HUE_BG:         b + "-hue-bg",
++
++            /**
++             * The id for the hue thumb
++             * @property ID.HUE_THUMB
++             * @type String
++             * @final
++             * @default yui-picker-hue-thumb
++             */
++            HUE_THUMB:      b + "-hue-thumb",
++
++            /**
++             * The id for the hex value form field
++             * @property ID.HEX
++             * @type String
++             * @final
++             * @default yui-picker-hex
++             */
++            HEX:            b + "-hex",
++
++            /**
++             * The id for the color swatch
++             * @property ID.SWATCH
++             * @type String
++             * @final
++             * @default yui-picker-swatch
++             */
++            SWATCH:         b + "-swatch",
++
++            /**
++             * The id for the websafe color swatch
++             * @property ID.WEBSAFE_SWATCH
++             * @type String
++             * @final
++             * @default yui-picker-websafe-swatch
++             */
++            WEBSAFE_SWATCH: b + "-websafe-swatch",
++
++            /**
++             * The id for the control details
++             * @property ID.CONTROLS
++             * @final
++             * @default yui-picker-controls
++             */
++            CONTROLS: b + "-controls",
++
++            /**
++             * The id for the rgb controls
++             * @property ID.RGB_CONTROLS
++             * @final
++             * @default yui-picker-rgb-controls
++             */
++            RGB_CONTROLS: b + "-rgb-controls",
++
++            /**
++             * The id for the hsv controls
++             * @property ID.HSV_CONTROLS
++             * @final
++             * @default yui-picker-hsv-controls
++             */
++            HSV_CONTROLS: b + "-hsv-controls",
++            
++            /**
++             * The id for the hsv controls
++             * @property ID.HEX_CONTROLS
++             * @final
++             * @default yui-picker-hex-controls
++             */
++            HEX_CONTROLS: b + "-hex-controls",
++
++            /**
++             * The id for the hex summary
++             * @property ID.HEX_SUMMARY
++             * @final
++             * @default yui-picker-hex-summary
++             */
++            HEX_SUMMARY: b + "-hex-summary",
++
++            /**
++             * The id for the controls section header
++             * @property ID.CONTROLS_LABEL
++             * @final
++             * @default yui-picker-controls-label
++             */
++            CONTROLS_LABEL: b + "-controls-label"
++        },
++
++        /**
++         * Constants for any script-generated messages.  The values here
++         * are the default messages.  They can be updated by providing
++         * the complete list to the constructor for the "txt" attribute.
++         * @property TXT
++         * @final
++         */
++        TXT : {
++            ILLEGAL_HEX: "Illegal hex value entered",
++            SHOW_CONTROLS: "Show color details",
++            HIDE_CONTROLS: "Hide color details",
++            CURRENT_COLOR: "Currently selected color: {rgb}",
++            CLOSEST_WEBSAFE: "Closest websafe color: {rgb}. Click to select.",
++            R: "R",
++            G: "G",
++            B: "B",
++            H: "H",
++            S: "S",
++            V: "V",
++            HEX: "#",
++            DEG: "\u00B0",
++            PERCENT: "%"
++        },
++
++        /**
++         * Constants for the default image locations for img tags that are
++         * generated by the control.  They can be modified by passing the
++         * complete list to the contructor for the "images" attribute
++         * @property IMAGE
++         * @final
++         */
++        IMAGE : {
++            PICKER_THUMB: "../../build/colorpicker/assets/picker_thumb.png",
++            HUE_THUMB: "../../build/colorpicker/assets/hue_thumb.png"
++        },
++
++        /**
++         * Constants for the control's default default values
++         * @property DEFAULT
++         * @final
++         */
++        DEFAULT : {
++            PICKER_SIZE: 180
++        },
++
++        /**
++         * Constants for the control's configuration attributes
++         * @property OPT
++         * @final
++         */
++        OPT : {
++            HUE         : "hue",
++            SATURATION  : "saturation",
++            VALUE       : "value",
++            RED     : "red",
++            GREEN   : "green",
++            BLUE    : "blue",
++            HSV     : "hsv",
++            RGB     : "rgb",
++            WEBSAFE : "websafe",
++            HEX     : "hex",
++            PICKER_SIZE       : "pickersize",
++            SHOW_CONTROLS     : "showcontrols",
++            SHOW_RGB_CONTROLS : "showrgbcontrols",
++            SHOW_HSV_CONTROLS : "showhsvcontrols",
++            SHOW_HEX_CONTROLS : "showhexcontrols",
++            SHOW_HEX_SUMMARY  : "showhexsummary",
++            SHOW_WEBSAFE      : "showwebsafe",
++            CONTAINER         : "container",
++            IDS      : "ids",
++            ELEMENTS : "elements",
++            TXT      : "txt",
++            IMAGES   : "images",
++            ANIMATE  : "animate"
++        },
++
++        /**
++         * Flag to allow individual UI updates to forego animation if available.
++         * True during construction for initial thumb placement.  Set to false
++         * after that.
++         *
++         * @property skipAnim
++         * @type Boolean
++         * @default true
++         */
++        skipAnim : true,
++
++        /**
++         * Creates the host element if it doesn't exist
++         * @method _createHostElement
++         * @protected
++         */
++        _createHostElement : function () {
++            var el = document.createElement('div');
++
++            if (this.CSS.BASE) {
++                el.className = this.CSS.BASE;
++            }
++            
++            return el;
++        },
++
++        /**
++         * Moves the hue slider into the position dictated by the current state
++         * of the control
++         * @method _updateHueSlider
++         * @protected
++         */
++        _updateHueSlider : function() {
++            var size = this.get(this.OPT.PICKER_SIZE),
++                h = this.get(this.OPT.HUE);
++
++            h = size - Math.round(h / 360 * size);
++            
++            // 0 is at the top and bottom of the hue slider.  Always go to
++            // the top so we don't end up sending the thumb to the bottom
++            // when the value didn't actually change (e.g., a conversion
++            // produced 360 instead of 0 and the value was already 0).
++            if (h === size) {
++                h = 0;
++            }
++
++            this.hueSlider.setValue(h, this.skipAnim);
++        },
++
++        /**
++         * Moves the picker slider into the position dictated by the current state
++         * of the control
++         * @method _updatePickerSlider
++         * @protected
++         */
++        _updatePickerSlider : function() {
++            var size = this.get(this.OPT.PICKER_SIZE),
++                s = this.get(this.OPT.SATURATION),
++                v = this.get(this.OPT.VALUE);
++
++            s = Math.round(s * size / 100);
++            v = Math.round(size - (v * size / 100));
++
++
++            this.pickerSlider.setRegionValue(s, v, this.skipAnim);
++        },
++
++        /**
++         * Moves the sliders into the position dictated by the current state
++         * of the control
++         * @method _updateSliders
++         * @protected
++         */
++        _updateSliders : function() {
++            this._updateHueSlider();
++            this._updatePickerSlider();
++        },
++
++        /**
++         * Sets the control to the specified rgb value and
++         * moves the sliders to the proper positions
++         * @method setValue
++         * @param rgb {[int, int, int]} the rgb value
++         * @param silent {boolean} whether or not to fire the change event
++         */
++        setValue : function(rgb, silent) {
++            silent = (silent) || false;
++            this.set(this.OPT.RGB, rgb, silent);
++            this._updateSliders();
++        },
++
++        /**
++         * The hue slider
++         * @property hueSlider
++         * @type YAHOO.widget.Slider
++         */
++        hueSlider : null,
++        
++        /**
++         * The picker region
++         * @property pickerSlider
++         * @type YAHOO.widget.Slider
++         */
++        pickerSlider : null,
++
++        /**
++         * Translates the slider value into hue, int[0,359]
++         * @method _getH
++         * @protected
++         * @return {int} the hue from 0 to 359
++         */
++        _getH : function() {
++            var size = this.get(this.OPT.PICKER_SIZE),
++                h = (size - this.hueSlider.getValue()) / size;
++            h = Math.round(h*360);
++            return (h === 360) ? 0 : h;
++        },
++
++        /**
++         * Translates the slider value into saturation, int[0,1], left to right
++         * @method _getS
++         * @protected
++         * @return {int} the saturation from 0 to 1
++         */
++        _getS : function() {
++            return this.pickerSlider.getXValue() / this.get(this.OPT.PICKER_SIZE);
++        },
++
++        /**
++         * Translates the slider value into value/brightness, int[0,1], top
++         * to bottom
++         * @method _getV
++         * @protected
++         * @return {int} the value from 0 to 1
++         */
++        _getV : function() {
++            var size = this.get(this.OPT.PICKER_SIZE);
++            return (size - this.pickerSlider.getYValue()) / size;
++        },
++
++        /**
++         * Updates the background of the swatch with the current rbg value.
++         * Also updates the websafe swatch to the closest websafe color
++         * @method _updateSwatch
++         * @protected
++         */
++        _updateSwatch : function() {
++            var rgb = this.get(this.OPT.RGB),
++                websafe = this.get(this.OPT.WEBSAFE),
++                el = this.getElement(this.ID.SWATCH),
++                color = rgb.join(","),
++                txt = this.get(this.OPT.TXT);
++
++            Dom.setStyle(el, "background-color", "rgb(" + color  + ")");
++            el.title = sub(txt.CURRENT_COLOR, {
++                    "rgb": "#" + this.get(this.OPT.HEX)
++                });
++
++
++            el = this.getElement(this.ID.WEBSAFE_SWATCH);
++            color = websafe.join(",");
++
++            Dom.setStyle(el, "background-color", "rgb(" + color + ")");
++            el.title = sub(txt.CLOSEST_WEBSAFE, {
++                    "rgb": "#" + Color.rgb2hex(websafe)
++                });
++
++        },
++
++        /**
++         * Reads the sliders and converts the values to RGB, updating the
++         * internal state for all the individual form fields
++         * @method _getValuesFromSliders
++         * @protected
++         */
++        _getValuesFromSliders : function() {
++            this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV()));
++        },
++
++        /**
++         * Updates the form field controls with the state data contained
++         * in the control.
++         * @method _updateFormFields
++         * @protected
++         */
++        _updateFormFields : function() {
++            this.getElement(this.ID.H).value = this.get(this.OPT.HUE);
++            this.getElement(this.ID.S).value = this.get(this.OPT.SATURATION);
++            this.getElement(this.ID.V).value = this.get(this.OPT.VALUE);
++            this.getElement(this.ID.R).value = this.get(this.OPT.RED);
++            this.getElement(this.ID.R_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.RED));
++            this.getElement(this.ID.G).value = this.get(this.OPT.GREEN);
++            this.getElement(this.ID.G_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.GREEN));
++            this.getElement(this.ID.B).value = this.get(this.OPT.BLUE);
++            this.getElement(this.ID.B_HEX).innerHTML = Color.dec2hex(this.get(this.OPT.BLUE));
++            this.getElement(this.ID.HEX).value = this.get(this.OPT.HEX);
++        },
++
++        /**
++         * Event handler for the hue slider.
++         * @method _onHueSliderChange
++         * @param newOffset {int} pixels from the start position
++         * @protected
++         */
++        _onHueSliderChange : function(newOffset) {
++
++            var h        = this._getH(),
++                rgb      = Color.hsv2rgb(h, 1, 1),
++                styleDef = "rgb(" + rgb.join(",") + ")";
++
++            this.set(this.OPT.HUE, h, true);
++
++            // set picker background to the hue
++            Dom.setStyle(this.getElement(this.ID.PICKER_BG), "background-color", styleDef);
++
++            if (this.hueSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
++                this._getValuesFromSliders();
++            }
++
++            this._updateFormFields();
++            this._updateSwatch();
++        },
++
++        /**
++         * Event handler for the picker slider, which controls the
++         * saturation and value/brightness.
++         * @method _onPickerSliderChange
++         * @param newOffset {{x: int, y: int}} x/y pixels from the start position
++         * @protected
++         */
++        _onPickerSliderChange : function(newOffset) {
++
++            var s=this._getS(), v=this._getV();
++            this.set(this.OPT.SATURATION, Math.round(s*100), true);
++            this.set(this.OPT.VALUE, Math.round(v*100), true);
++
++            if (this.pickerSlider.valueChangeSource !== Slider.SOURCE_SET_VALUE) {
++                this._getValuesFromSliders();
++            }
++
++            this._updateFormFields();
++            this._updateSwatch();
++        },
++
++
++        /**
++         * Key map to well-known commands for txt field input
++         * @method _getCommand
++         * @param e {Event} the keypress or keydown event
++         * @return {int} a command code
++         * <ul>
++         * <li>0 = not a number, letter in range, or special key</li>
++         * <li>1 = number</li>
++         * <li>2 = a-fA-F</li>
++         * <li>3 = increment (up arrow)</li>
++         * <li>4 = decrement (down arrow)</li>
++         * <li>5 = special key (tab, delete, return, escape, left, right)</li> 
++         * <li>6 = return</li>
++         * </ul>
++         * @protected
++         */
++        _getCommand : function(e) {
++            var c = Event.getCharCode(e);
++
++            //alert(Event.getCharCode(e) + ", " + e.keyCode + ", " + e.charCode);
++
++            // special keys
++            if (c === 38) { // up arrow
++                return 3;
++            } else if (c === 13) { // return
++                return 6;
++            } else if (c === 40) { // down array
++                return 4;
++            } else if (c >= 48 && c<=57) { // 0-9
++                return 1;
++            } else if (c >= 97 && c<=102) { // a-f
++                return 2;
++            } else if (c >= 65 && c<=70) { // A-F
++                return 2;
++            //} else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 || 
++            //              (c >= 112 && c <=123)) { // including F-keys
++            // tab, delete, return, escape, left, right or ctrl/meta sequences
++            } else if ("8, 9, 13, 27, 37, 39".indexOf(c) > -1 ||
++                       e.ctrlKey || e.metaKey) { // special chars
++                return 5;
++            } else { // something we probably don't want
++                return 0;
++            }
++        },
++
++        /**
++         * Use the value of the text field to update the control
++         * @method _useFieldValue
++         * @param e {Event} an event
++         * @param el {HTMLElement} the field
++         * @param prop {string} the key to the linked property
++         * @protected
++         */
++        _useFieldValue : function(e, el, prop) {
++            var val = el.value;
++
++            if (prop !== this.OPT.HEX) {
++                val = parseInt(val, 10);
++            }
++
++            if (val !== this.get(prop)) {
++                this.set(prop, val);
++            }
++        },
++
++        /**
++         * Handle keypress on one of the rgb or hsv fields.
++         * @method _rgbFieldKeypress
++         * @param e {Event} the keypress event
++         * @param el {HTMLElement} the field
++         * @param prop {string} the key to the linked property
++         * @protected
++         */
++        _rgbFieldKeypress : function(e, el, prop) {
++            var command = this._getCommand(e),
++                inc = (e.shiftKey) ? 10 : 1;
++            switch (command) {
++                case 6: // return, update the value
++                    this._useFieldValue.apply(this, arguments);
++                    break;
++                            
++                case 3: // up arrow, increment
++                    this.set(prop, Math.min(this.get(prop)+inc, 255));
++                    this._updateFormFields();
++                    //Event.stopEvent(e);
++                    break;
++                case 4: // down arrow, decrement
++                    this.set(prop, Math.max(this.get(prop)-inc, 0));
++                    this._updateFormFields();
++                    //Event.stopEvent(e);
++                    break;
++
++                default:
++            }
++
++        },
++
++        /**
++         * Handle keydown on the hex field
++         * @method _hexFieldKeypress
++         * @param e {Event} the keypress event
++         * @param el {HTMLElement} the field
++         * @param prop {string} the key to the linked property
++         * @protected
++         */
++        _hexFieldKeypress : function(e, el, prop) {
++            var command = this._getCommand(e);
++            if (command === 6) { // return, update the value
++                this._useFieldValue.apply(this, arguments);
++            }
++        },
++
++        /** 
++         * Allows numbers and special chars, and by default allows a-f.  
++         * Used for the hex field keypress handler.
++         * @method _hexOnly
++         * @param e {Event} the event
++         * @param numbersOnly omits a-f if set to true
++         * @protected
++         * @return {boolean} false if we are canceling the event
++         */
++        _hexOnly : function(e, numbersOnly) {
++            var command = this._getCommand(e);
++            switch (command) {
++                case 6: // return
++                case 5: // special char
++                case 1: // number
++                    break;
++                case 2: // hex char (a-f)
++                    if (numbersOnly !== true) {
++                        break;
++                    }
++
++                    // fallthrough is intentional
++
++                default: // prevent alpha and punctuation
++                    Event.stopEvent(e);
++                    return false;
++            }
++        },
++
++        /** 
++         * Allows numbers and special chars only.  Used for the
++         * rgb and hsv fields keypress handler.
++         * @method _numbersOnly
++         * @param e {Event} the event
++         * @protected
++         * @return {boolean} false if we are canceling the event
++         */
++        _numbersOnly : function(e) {
++            return this._hexOnly(e, true);
++        },
++
++        /**
++         * Returns the element reference that is saved.  The id can be either
++         * the element id, or the key for this id in the "id" config attribute.
++         * For instance, the host element id can be obtained by passing its
++         * id (default: "yui_picker") or by its key "YUI_PICKER".
++         * @param id {string} the element id, or key 
++         * @return {HTMLElement} a reference to the element
++         */
++        getElement : function(id) { 
++            return this.get(this.OPT.ELEMENTS)[this.get(this.OPT.IDS)[id]]; 
++        },
++
++        _createElements : function() {
++            var el, child, img, fld, p,
++                ids = this.get(this.OPT.IDS),
++                txt = this.get(this.OPT.TXT),
++                images = this.get(this.OPT.IMAGES),
++                Elem = function(type, o) {
++                    var n = document.createElement(type);
++                    if (o) {
++                        lang.augmentObject(n, o, true);
++                    }
++                    return n;
++                },
++                RGBElem = function(type, obj) {
++                    var o = lang.merge({
++                            //type: "txt",
++                            autocomplete: "off",
++                            value: "0",
++                            size: 3,
++                            maxlength: 3
++                        }, obj);
++
++                    o.name = o.id;
++                    return new Elem(type, o);
++                };
++
++            p = this.get("element");
++
++            // Picker slider (S and V) ---------------------------------------------
++
++            el = new Elem("div", {
++                id: ids[this.ID.PICKER_BG],
++                className: "yui-picker-bg",
++                tabIndex: -1,
++                hideFocus: true
++            });
++
++            child = new Elem("div", {
++                id: ids[this.ID.PICKER_THUMB],
++                className: "yui-picker-thumb"
++            });
++
++            img = new Elem("img", {
++                src: images.PICKER_THUMB
++            });
++
++            child.appendChild(img);
++            el.appendChild(child);
++            p.appendChild(el);
++            
++            // Hue slider ---------------------------------------------
++            el = new Elem("div", {
++                id: ids[this.ID.HUE_BG],
++                className: "yui-picker-hue-bg",
++                tabIndex: -1,
++                hideFocus: true
++            });
++
++            child = new Elem("div", {
++                id: ids[this.ID.HUE_THUMB],
++                className: "yui-picker-hue-thumb"
++            });
++
++            img = new Elem("img", {
++                src: images.HUE_THUMB
++            });
++
++            child.appendChild(img);
++            el.appendChild(child);
++            p.appendChild(el);
++
++
++            // controls ---------------------------------------------
++
++            el = new Elem("div", {
++                id: ids[this.ID.CONTROLS],
++                className: "yui-picker-controls"
++            });
++
++            p.appendChild(el);
++            p = el;
++
++                // controls header
++                el = new Elem("div", {
++                    className: "hd"
++                });
++
++                child = new Elem("a", {
++                    id: ids[this.ID.CONTROLS_LABEL],
++                    //className: "yui-picker-controls-label",
++                    href: "#"
++                });
++                el.appendChild(child);
++                p.appendChild(el);
++
++                // bd
++                el = new Elem("div", {
++                    className: "bd"
++                });
++
++                p.appendChild(el);
++                p = el;
++
++                    // rgb
++                    el = new Elem("ul", {
++                        id: ids[this.ID.RGB_CONTROLS],
++                        className: "yui-picker-rgb-controls"
++                    });
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.R + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.R],
++                        className: "yui-picker-r"
++                    });
++
++                    child.appendChild(fld);
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.G + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.G],
++                        className: "yui-picker-g"
++                    });
++
++                    child.appendChild(fld);
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.B + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.B],
++                        className: "yui-picker-b"
++                    });
++
++                    child.appendChild(fld);
++                    el.appendChild(child);
++
++                    p.appendChild(el);
++
++                    // hsv
++                    el = new Elem("ul", {
++                        id: ids[this.ID.HSV_CONTROLS],
++                        className: "yui-picker-hsv-controls"
++                    });
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.H + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.H],
++                        className: "yui-picker-h"
++                    });
++
++                    child.appendChild(fld);
++                    child.appendChild(document.createTextNode(" " + txt.DEG));
++
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.S + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.S],
++                        className: "yui-picker-s"
++                    });
++
++                    child.appendChild(fld);
++                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
++
++                    el.appendChild(child);
++
++                    child = new Elem("li");
++                    child.appendChild(document.createTextNode(txt.V + " "));
++
++                    fld = new RGBElem("input", {
++                        id: ids[this.ID.V],
++                        className: "yui-picker-v"
++                    });
++
++                    child.appendChild(fld);
++                    child.appendChild(document.createTextNode(" " + txt.PERCENT));
++
++                    el.appendChild(child);
++                    p.appendChild(el);
++
++
++                    // hex summary
++
++                    el = new Elem("ul", {
++                        id: ids[this.ID.HEX_SUMMARY],
++                        className: "yui-picker-hex_summary"
++                    });
++
++                    child = new Elem("li", {
++                        id: ids[this.ID.R_HEX]
++                    });
++                    el.appendChild(child);
++
++                    child = new Elem("li", {
++                        id: ids[this.ID.G_HEX]
++                    });
++                    el.appendChild(child);
++
++                    child = new Elem("li", {
++                        id: ids[this.ID.B_HEX]
++                    });
++                    el.appendChild(child);
++                    p.appendChild(el);
++
++                    // hex field
++                    el = new Elem("div", {
++                        id: ids[this.ID.HEX_CONTROLS],
++                        className: "yui-picker-hex-controls"
++                    });
++                    el.appendChild(document.createTextNode(txt.HEX + " "));
++
++                    child = new RGBElem("input", {
++                        id: ids[this.ID.HEX],
++                        className: "yui-picker-hex",
++                        size: 6,
++                        maxlength: 6
++                    });
++
++                    el.appendChild(child);
++                    p.appendChild(el);
++
++                    p = this.get("element");
++
++                    // swatch
++                    el = new Elem("div", {
++                        id: ids[this.ID.SWATCH],
++                        className: "yui-picker-swatch"
++                    });
++
++                    p.appendChild(el);
++
++                    // websafe swatch
++                    el = new Elem("div", {
++                        id: ids[this.ID.WEBSAFE_SWATCH],
++                        className: "yui-picker-websafe-swatch"
++                    });
++
++                    p.appendChild(el);
++
++        },
++
++        _attachRGBHSV : function(id, config) {
++            Event.on(this.getElement(id), "keydown", function(e, me) {
++                    me._rgbFieldKeypress(e, this, config);
++                }, this);
++            Event.on(this.getElement(id), "keypress", this._numbersOnly, this, true);
++            Event.on(this.getElement(id), "blur", function(e, me) {
++                    me._useFieldValue(e, this, config);
++                }, this);
++        },
++
++
++        /**
++         * Updates the rgb attribute with the current state of the r,g,b
++         * fields.  This is invoked from change listeners on these
++         * attributes to facilitate updating these values from the
++         * individual form fields
++         * @method _updateRGB
++         * @protected
++         */
++        _updateRGB : function() {
++            var rgb = [this.get(this.OPT.RED), 
++                       this.get(this.OPT.GREEN),
++                       this.get(this.OPT.BLUE)];
++
++            this.set(this.OPT.RGB, rgb);
++
++            this._updateSliders();
++        },
++
++        /**
++         * Creates any missing DOM structure.
++         *
++         * @method _initElements
++         * @protected
++         */
++        _initElements : function () {
++            // bind all of our elements
++            var o=this.OPT, 
++                ids = this.get(o.IDS), 
++                els = this.get(o.ELEMENTS), 
++                      i, el, id;
++
++            // Add the default value as a key for each element for easier lookup
++            for (i in this.ID) {
++                if (lang.hasOwnProperty(this.ID, i)) {
++                    ids[this.ID[i]] = ids[i];
++                }
++            }
++
++            // Check for picker element, if not there, create all of them
++            el = Dom.get(ids[this.ID.PICKER_BG]);
++            if (!el) {
++                this._createElements();
++            } else {
++            }
++
++            for (i in ids) {
++                if (lang.hasOwnProperty(ids, i)) {
++                    // look for element
++                    el = Dom.get(ids[i]);
++
++                    // generate an id if the implementer passed in an element reference,
++                    // and the element did not have an id already
++                    id = Dom.generateId(el);
++
++                    // update the id in case we generated the id
++                    ids[i] = id; // key is WEBSAFE_SWATCH
++                    ids[ids[i]] = id; // key is websafe_swatch
++
++                    // store the dom ref
++                    els[id] = el;
++                }
++            }
++
++        },
++
++        /**
++         * Sets the initial state of the sliders
++         * @method initPicker
++         */
++        initPicker : function () {
++            this._initSliders();
++            this._bindUI();
++            this.syncUI(true);
++        },
++
++        /**
++         * Creates the Hue and Value/Saturation Sliders.
++         *
++         * @method _initSliders
++         * @protected
++         */
++        _initSliders : function () {
++            var ID = this.ID,
++                size = this.get(this.OPT.PICKER_SIZE);
++
++
++            this.hueSlider = Slider.getVertSlider(
++                this.getElement(ID.HUE_BG), 
++                this.getElement(ID.HUE_THUMB), 0, size);
++
++            this.pickerSlider = Slider.getSliderRegion(
++                this.getElement(ID.PICKER_BG), 
++                this.getElement(ID.PICKER_THUMB), 0, size, 0, size);
++
++            // Apply animate attribute configuration
++            this.set(this.OPT.ANIMATE, this.get(this.OPT.ANIMATE));
++        },
++
++        /**
++         * Adds event listeners to Sliders and UI elements.  Wires everything
++         * up.
++         *
++         * @method _bindUI
++         * @protected
++         */
++        _bindUI : function () {
++            var ID = this.ID,
++                O  = this.OPT;
++
++            this.hueSlider.subscribe("change",
++                this._onHueSliderChange, this, true);
++            this.pickerSlider.subscribe("change",
++                this._onPickerSliderChange, this, true);
++
++            Event.on(this.getElement(ID.WEBSAFE_SWATCH), "click", function(e) {
++                   this.setValue(this.get(O.WEBSAFE));
++               }, this, true);
++
++            Event.on(this.getElement(ID.CONTROLS_LABEL), "click", function(e) {
++                   this.set(O.SHOW_CONTROLS, !this.get(O.SHOW_CONTROLS));
++                   Event.preventDefault(e);
++               }, this, true);
++
++            this._attachRGBHSV(ID.R, O.RED); 
++            this._attachRGBHSV(ID.G, O.GREEN); 
++            this._attachRGBHSV(ID.B, O.BLUE); 
++            this._attachRGBHSV(ID.H, O.HUE); 
++            this._attachRGBHSV(ID.S, O.SATURATION); 
++            this._attachRGBHSV(ID.V, O.VALUE); 
++
++            Event.on(this.getElement(ID.HEX), "keydown", function(e, me) {
++                    me._hexFieldKeypress(e, this, O.HEX);
++                }, this);
++
++            Event.on(this.getElement(this.ID.HEX), "keypress",
++                this._hexOnly, this,true);
++            Event.on(this.getElement(this.ID.HEX), "blur", function(e, me) {
++                    me._useFieldValue(e, this, O.HEX);
++                }, this);
++        },
++
++        /**
++         * Wrapper for _updateRGB, but allows setting 
++         *
++         * @method syncUI
++         * @param skipAnim {Boolean} Omit Slider animation for this action
++         */
++        syncUI : function (skipAnim) {
++            this.skipAnim = skipAnim;
++            this._updateRGB();
++            this.skipAnim = false;
++        },
++
++
++        /**
++         * Updates the RGB values from the current state of the HSV
++         * values.  Executed when the one of the HSV form fields are
++         * updated
++         * _updateRGBFromHSV
++         * @protected
++         */
++        _updateRGBFromHSV : function() {
++            var hsv = [this.get(this.OPT.HUE), 
++                       this.get(this.OPT.SATURATION)/100,
++                       this.get(this.OPT.VALUE)/100],
++                rgb = Color.hsv2rgb(hsv);
++
++            this.set(this.OPT.RGB, rgb);
++
++            this._updateSliders();
++        },
++
++        /**
++         * Parses the hex string to normalize shorthand values, converts
++         * the hex value to rgb and updates the rgb attribute (which
++         * updates the state for all of the other values)
++         * method _updateHex
++         * @protected
++         */
++        _updateHex : function() {
++           
++            var hex = this.get(this.OPT.HEX),
++                l   = hex.length,
++                c,i,rgb;
++
++            // support #369 -> #336699 shorthand
++            if (l === 3) {
++                c = hex.split("");
++                for (i=0; i<l; i=i+1) {
++                    c[i] = c[i] + c[i];
++                }
++
++                hex = c.join("");
++            }
++
++            if (hex.length !== 6) {
++                return false;
++            }
++
++            rgb = Color.hex2rgb(hex);
++
++
++            this.setValue(rgb);
++        },
++
++
++        /**
++         * Returns the cached element reference.  If the id is not a string, it
++         * is assumed that it is an element and this is returned.
++         * @param id {string|HTMLElement} the element key, id, or ref
++         * @param on {boolean} hide or show.  If true, show
++         * @protected
++         */
++        _hideShowEl : function(id, on) {
++            var el = (lang.isString(id) ? this.getElement(id) : id);
++            Dom.setStyle(el, "display", (on) ? "" : "none");
++        },
++
++
++        /**
++         * Sets up the config attributes and the change listeners for this
++         * properties
++         * @method initAttributes
++         * @param attr An object containing default attribute values
++         */
++        initAttributes : function(attr) {
++
++            attr = attr || {};
++            ColorPicker.superclass.initAttributes.call(this, attr);
++            
++            /**
++             * The size of the picker. Trying to change this is not recommended.
++             * @attribute pickersize
++             * @default 180
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.PICKER_SIZE, {
++                    value: attr.size || this.DEFAULT.PICKER_SIZE
++                });
++
++            /**
++             * The current hue value 0-360
++             * @attribute hue
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.HUE, {
++                    value: attr.hue || 0,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current saturation value 0-100
++             * @attribute saturation
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.SATURATION, {
++                    value: attr.saturation || 0,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current value/brightness value 0-100
++             * @attribute value
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.VALUE, {
++                    value: lang.isNumber(attr.value) ? attr.value : 100,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current red value 0-255
++             * @attribute red
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.RED, {
++                    value: lang.isNumber(attr.red) ? attr.red : 255,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current green value 0-255
++             * @attribute green 
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.GREEN, {
++                    value: lang.isNumber(attr.green) ? attr.green : 255,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current blue value 0-255
++             * @attribute blue
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.BLUE, {
++                    value: lang.isNumber(attr.blue) ? attr.blue : 255,
++                    validator: lang.isNumber
++                });
++
++            /**
++             * The current hex value #000000-#FFFFFF, without the #
++             * @attribute hex
++             * @type string
++             */
++            this.setAttributeConfig(this.OPT.HEX, {
++                    value: attr.hex || "FFFFFF",
++                    validator: lang.isString
++                });
++
++            /**
++             * The current rgb value.  Updates the state of all of the
++             * other value fields.  Read-only: use setValue to set the
++             * controls rgb value.
++             * @attribute hex
++             * @type [int, int, int]
++             * @readonly
++             */
++            this.setAttributeConfig(this.OPT.RGB, {
++                    value: attr.rgb || [255,255,255],
++                    method: function(rgb) {
++
++                        this.set(this.OPT.RED, rgb[0], true);
++                        this.set(this.OPT.GREEN, rgb[1], true);
++                        this.set(this.OPT.BLUE, rgb[2], true);
++
++                        var websafe = Color.websafe(rgb),
++                            hex = Color.rgb2hex(rgb),
++                            hsv = Color.rgb2hsv(rgb);
++
++                        this.set(this.OPT.WEBSAFE, websafe, true);
++                        this.set(this.OPT.HEX, hex, true);
++
++
++
++                        // fix bug #1754338 - when saturation is 0, hue is
++                        // silently always set to 0, but input field not updated
++                        if (hsv[1]) {
++                            this.set(this.OPT.HUE, hsv[0], true);
++                        }
++                        this.set(this.OPT.SATURATION, Math.round(hsv[1]*100), true);
++                        this.set(this.OPT.VALUE, Math.round(hsv[2]*100), true);
++                    },
++                    readonly: true
++                });
++
++            /**
++             * If the color picker will live inside of a container object,
++             * set, provide a reference to it so the control can use the
++             * container's events.
++             * @attribute container
++             * @type YAHOO.widget.Panel
++             */
++            this.setAttributeConfig(this.OPT.CONTAINER, {
++                        value: null,
++                        method: function(container) {
++                            if (container) {
++                                // Position can get out of sync when the
++                                // control is manipulated while display is
++                                // none.  Resetting the slider constraints
++                                // when it is visible gets the state back in
++                                // order.
++                                container.showEvent.subscribe(function() {
++                                    // this.pickerSlider.thumb.resetConstraints();
++                                    // this.hueSlider.thumb.resetConstraints();
++                                    this.pickerSlider.focus();
++                                }, this, true);
++                            }
++                        }
++                    });
++            /**
++             * The closest current websafe value
++             * @attribute websafe
++             * @type int
++             */
++            this.setAttributeConfig(this.OPT.WEBSAFE, {
++                    value: attr.websafe || [255,255,255]
++                });
++
++
++            var ids = attr.ids || lang.merge({}, this.ID), i;
++
++            if (!attr.ids && _pickercount > 1) {
++                for (i in ids) {
++                    if (lang.hasOwnProperty(ids, i)) {
++                        ids[i] = ids[i] + _pickercount;
++                    }
++                }
++            }
++
++
++            /**
++             * A list of element ids and/or element references used by the 
++             * control.  The default is the this.ID list, and can be customized
++             * by passing a list in the contructor
++             * @attribute ids
++             * @type {referenceid: realid}
++             * @writeonce
++             */
++            this.setAttributeConfig(this.OPT.IDS, {
++                    value: ids,
++                    writeonce: true
++                });
++
++            /**
++             * A list of txt strings for internationalization.  Default
++             * is this.TXT
++             * @attribute txt
++             * @type {key: txt}
++             * @writeonce
++             */
++            this.setAttributeConfig(this.OPT.TXT, {
++                    value: attr.txt || this.TXT,
++                    writeonce: true
++                });
++
++            /**
++             * The img src default list
++             * is this.IMAGES
++             * @attribute images
++             * @type {key: image}
++             * @writeonce
++             */
++            this.setAttributeConfig(this.OPT.IMAGES, {
++                    value: attr.images || this.IMAGE,
++                    writeonce: true
++                });
++            /**
++             * The element refs used by this control.  Set at initialization
++             * @attribute elements
++             * @type {id: HTMLElement}
++             * @readonly
++             */
++            this.setAttributeConfig(this.OPT.ELEMENTS, {
++                    value: {},
++                    readonly: true
++                });
++
++            /**
++             * Hide/show the entire set of controls
++             * @attribute showcontrols
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_CONTROLS, {
++                    value: lang.isBoolean(attr.showcontrols) ? attr.showcontrols : true,
++                    method: function(on) {
++
++                        var el = Dom.getElementsByClassName("bd", "div", 
++                                this.getElement(this.ID.CONTROLS))[0];
++
++                        this._hideShowEl(el, on);
++
++                        this.getElement(this.ID.CONTROLS_LABEL).innerHTML = 
++                            (on) ? this.get(this.OPT.TXT).HIDE_CONTROLS :
++                                   this.get(this.OPT.TXT).SHOW_CONTROLS;
++
++                    }
++                });
++
++            /**
++             * Hide/show the rgb controls
++             * @attribute showrgbcontrols
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_RGB_CONTROLS, {
++                    value: lang.isBoolean(attr.showrgbcontrols) ? attr.showrgbcontrols : true,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.RGB_CONTROLS, on);
++                    }
++                });
++
++            /**
++             * Hide/show the hsv controls
++             * @attribute showhsvcontrols
++             * @type boolean
++             * @default false
++             */
++            this.setAttributeConfig(this.OPT.SHOW_HSV_CONTROLS, {
++                    value: lang.isBoolean(attr.showhsvcontrols) ?
++                                          attr.showhsvcontrols : false,
++                    method: function(on) {
++                        //Dom.setStyle(this.getElement(this.ID.HSV_CONTROLS), "visibility", (on) ? "" : "hidden");
++                        this._hideShowEl(this.ID.HSV_CONTROLS, on);
++
++                        // can't show both the hsv controls and the rbg hex summary
++                        if (on && this.get(this.OPT.SHOW_HEX_SUMMARY)) {
++                            this.set(this.OPT.SHOW_HEX_SUMMARY, false);
++                        }
++                    }
++                });
++
++            /**
++             * Hide/show the hex controls
++             * @attribute showhexcontrols
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_HEX_CONTROLS, {
++                    value: lang.isBoolean(attr.showhexcontrols) ?
++                                          attr.showhexcontrols : false,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.HEX_CONTROLS, on);
++                    }
++                });
++
++            /**
++             * Hide/show the websafe swatch
++             * @attribute showwebsafe
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_WEBSAFE, {
++                    value: lang.isBoolean(attr.showwebsafe) ? attr.showwebsafe : true,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.WEBSAFE_SWATCH, on);
++                    }
++                });
++
++            /**
++             * Hide/show the hex summary
++             * @attribute showhexsummary
++             * @type boolean
++             * @default true
++             */
++            this.setAttributeConfig(this.OPT.SHOW_HEX_SUMMARY, {
++                    value: lang.isBoolean(attr.showhexsummary) ? attr.showhexsummary : true,
++                    method: function(on) {
++                        this._hideShowEl(this.ID.HEX_SUMMARY, on);
++
++                        // can't show both the hsv controls and the rbg hex summary
++                        if (on && this.get(this.OPT.SHOW_HSV_CONTROLS)) {
++                            this.set(this.OPT.SHOW_HSV_CONTROLS, false);
++                        }
++                    }
++                });
++            this.setAttributeConfig(this.OPT.ANIMATE, {
++                    value: lang.isBoolean(attr.animate) ? attr.animate : true,
++                    method: function(on) {
++                        if (this.pickerSlider) {
++                            this.pickerSlider.animate = on;
++                            this.hueSlider.animate = on;
++                        }
++                    }
++                });
++
++            this.on(this.OPT.HUE + "Change", this._updateRGBFromHSV, this, true);
++            this.on(this.OPT.SATURATION + "Change", this._updateRGBFromHSV, this, true);
++            this.on(this.OPT.VALUE + "Change", this._updateRGBFromHSV, this, true);
++
++            this.on(this.OPT.RED + "Change", this._updateRGB, this, true);
++            this.on(this.OPT.GREEN + "Change", this._updateRGB, this, true);
++            this.on(this.OPT.BLUE + "Change", this._updateRGB, this, true);
++
++            this.on(this.OPT.HEX + "Change", this._updateHex, this, true);
++
++            this._initElements();
++        }
++    });
++
++    YAHOO.widget.ColorPicker = ColorPicker;
++})();
++YAHOO.register("colorpicker", YAHOO.widget.ColorPicker, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/connection/connection-debug.js b/pylons_app/public/js/yui/connection/connection-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/connection/connection-debug.js
+@@ -0,0 +1,1576 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Connection Manager provides a simplified interface to the XMLHttpRequest
++ * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
++ * interactive states and server response, returning the results to a pre-defined
++ * callback you create.
++ *
++ * @namespace YAHOO.util
++ * @module connection
++ * @requires yahoo
++ * @requires event
++ */
++
++/**
++ * The Connection Manager singleton provides methods for creating and managing
++ * asynchronous transactions.
++ *
++ * @class Connect
++ */
++
++YAHOO.util.Connect =
++{
++  /**
++   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
++   * @property _msxml_progid
++   * @private
++   * @static
++   * @type array
++   */
++	_msxml_progid:[
++		'Microsoft.XMLHTTP',
++		'MSXML2.XMLHTTP.3.0',
++		'MSXML2.XMLHTTP'
++		],
++
++  /**
++   * @description Object literal of HTTP header(s)
++   * @property _http_header
++   * @private
++   * @static
++   * @type object
++   */
++	_http_headers:{},
++
++  /**
++   * @description Determines if HTTP headers are set.
++   * @property _has_http_headers
++   * @private
++   * @static
++   * @type boolean
++   */
++	_has_http_headers:false,
++
++ /**
++  * @description Determines if a default header of
++  * Content-Type of 'application/x-www-form-urlencoded'
++  * will be added to any client HTTP headers sent for POST
++  * transactions.
++  * @property _use_default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_post_header:true,
++
++ /**
++  * @description The default header used for POST transactions.
++  * @property _default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
++
++ /**
++  * @description The default header used for transactions involving the
++  * use of HTML forms.
++  * @property _default_form_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_form_header:'application/x-www-form-urlencoded',
++
++ /**
++  * @description Determines if a default header of
++  * 'X-Requested-With: XMLHttpRequest'
++  * will be added to each transaction.
++  * @property _use_default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_xhr_header:true,
++
++ /**
++  * @description The default header value for the label
++  * "X-Requested-With".  This is sent with each
++  * transaction, by default, to identify the
++  * request as being made by YUI Connection Manager.
++  * @property _default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_xhr_header:'XMLHttpRequest',
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _has_default_headers:true,
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_headers:{},
++
++ /**
++  * @description Collection of polling references to the polling mechanism in handleReadyState.
++  * @property _poll
++  * @private
++  * @static
++  * @type object
++  */
++    _poll:{},
++
++ /**
++  * @description Queue of timeout values for each transaction callback with a defined timeout value.
++  * @property _timeOut
++  * @private
++  * @static
++  * @type object
++  */
++    _timeOut:{},
++
++  /**
++   * @description The polling frequency, in milliseconds, for HandleReadyState.
++   * when attempting to determine a transaction's XHR readyState.
++   * The default is 50 milliseconds.
++   * @property _polling_interval
++   * @private
++   * @static
++   * @type int
++   */
++     _polling_interval:50,
++
++  /**
++   * @description A transaction counter that increments the transaction id for each transaction.
++   * @property _transaction_id
++   * @private
++   * @static
++   * @type int
++   */
++     _transaction_id:0,
++
++  /**
++   * @description Custom event that fires at the start of a transaction
++   * @property startEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	startEvent: new YAHOO.util.CustomEvent('start'),
++
++  /**
++   * @description Custom event that fires when a transaction response has completed.
++   * @property completeEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	completeEvent: new YAHOO.util.CustomEvent('complete'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 2xx range.
++   * @property successEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	successEvent: new YAHOO.util.CustomEvent('success'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 4xx/5xx range.
++   * @property failureEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	failureEvent: new YAHOO.util.CustomEvent('failure'),
++
++  /**
++   * @description Custom event that fires when a transaction is successfully aborted.
++   * @property abortEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	abortEvent: new YAHOO.util.CustomEvent('abort'),
++
++  /**
++   * @description A reference table that maps callback custom events members to its specific
++   * event name.
++   * @property _customEvents
++   * @private
++   * @static
++   * @type object
++   */
++	_customEvents:
++	{
++		onStart:['startEvent', 'start'],
++		onComplete:['completeEvent', 'complete'],
++		onSuccess:['successEvent', 'success'],
++		onFailure:['failureEvent', 'failure'],
++		onUpload:['uploadEvent', 'upload'],
++		onAbort:['abortEvent', 'abort']
++	},
++
++  /**
++   * @description Member to add an ActiveX id to the existing xml_progid array.
++   * In the event(unlikely) a new ActiveX id is introduced, it can be added
++   * without internal code modifications.
++   * @method setProgId
++   * @public
++   * @static
++   * @param {string} id The ActiveX id to be added to initialize the XHR object.
++   * @return void
++   */
++	setProgId:function(id)
++	{
++		this._msxml_progid.unshift(id);
++		YAHOO.log('ActiveX Program Id  ' + id + ' added to _msxml_progid.', 'info', 'Connection');
++	},
++
++  /**
++   * @description Member to override the default POST header.
++   * @method setDefaultPostHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultPostHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_post_header = b;
++			YAHOO.log('Default POST header set to  ' + b, 'info', 'Connection');
++		}
++		else if(typeof b == 'boolean'){
++			this._use_default_post_header = b;
++		}
++	},
++
++  /**
++   * @description Member to override the default transaction header..
++   * @method setDefaultXhrHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultXhrHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_xhr_header = b;
++			YAHOO.log('Default XHR header set to  ' + b, 'info', 'Connection');
++		}
++		else{
++			this._use_default_xhr_header = b;
++		}
++	},
++
++  /**
++   * @description Member to modify the default polling interval.
++   * @method setPollingInterval
++   * @public
++   * @static
++   * @param {int} i The polling interval in milliseconds.
++   * @return void
++   */
++	setPollingInterval:function(i)
++	{
++		if(typeof i == 'number' && isFinite(i)){
++			this._polling_interval = i;
++			YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection');
++		}
++	},
++
++  /**
++   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
++   * the XMLHttpRequest instance and the transaction id.
++   * @method createXhrObject
++   * @private
++   * @static
++   * @param {int} transactionId Property containing the transaction id for this transaction.
++   * @return object
++   */
++	createXhrObject:function(transactionId)
++	{
++		var obj,http,i;
++		try
++		{
++			// Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
++			http = new XMLHttpRequest();
++			//  Object literal with http and tId properties
++			obj = { conn:http, tId:transactionId, xhr: true };
++			YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
++		}
++		catch(e)
++		{
++			for(i=0; i<this._msxml_progid.length; ++i){
++				try
++				{
++					// Instantiates XMLHttpRequest for IE and assign to http
++					http = new ActiveXObject(this._msxml_progid[i]);
++					//  Object literal with conn and tId properties
++					obj = { conn:http, tId:transactionId, xhr: true };
++					YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection');
++					break;
++				}
++				catch(e1){}
++			}
++		}
++		finally
++		{
++			return obj;
++		}
++	},
++
++  /**
++   * @description This method is called by asyncRequest to create a
++   * valid connection object for the transaction.  It also passes a
++   * transaction id and increments the transaction id counter.
++   * @method getConnectionObject
++   * @private
++   * @static
++   * @return {object}
++   */
++	getConnectionObject:function(t)
++	{
++		var o, tId = this._transaction_id;
++
++		try
++		{
++			if(!t){
++				o = this.createXhrObject(tId);
++			}
++			else{
++				o = {tId:tId};
++				if(t==='xdr'){
++					o.conn = this._transport;
++					o.xdr = true;
++				}
++				else if(t==='upload'){
++					o.upload = true;
++				}
++			}
++
++			if(o){
++				this._transaction_id++;
++			}
++		}
++		catch(e){}
++		return o;
++	},
++
++  /**
++   * @description Method for initiating an asynchronous request via the XHR object.
++   * @method asyncRequest
++   * @public
++   * @static
++   * @param {string} method HTTP transaction method
++   * @param {string} uri Fully qualified path of resource
++   * @param {callback} callback User-defined callback function or object
++   * @param {string} postData POST body
++   * @return {object} Returns the connection object
++   */
++	asyncRequest:function(method, uri, callback, postData)
++	{
++		var o,t,args = (callback && callback.argument)?callback.argument:null;
++
++		if(this._isFileUpload){
++			t = 'upload';
++		}
++		else if(callback.xdr){
++			t = 'xdr';
++		}
++
++		o = this.getConnectionObject(t);
++		if(!o){
++			YAHOO.log('Unable to create connection object.', 'error', 'Connection');
++			return null;
++		}
++		else{
++
++			// Intialize any transaction-specific custom events, if provided.
++			if(callback && callback.customevents){
++				this.initCustomEvents(o, callback);
++			}
++
++			if(this._isFormSubmit){
++				if(this._isFileUpload){
++					this.uploadFile(o, callback, uri, postData);
++					return o;
++				}
++
++				// If the specified HTTP method is GET, setForm() will return an
++				// encoded string that is concatenated to the uri to
++				// create a querystring.
++				if(method.toUpperCase() == 'GET'){
++					if(this._sFormData.length !== 0){
++						// If the URI already contains a querystring, append an ampersand
++						// and then concatenate _sFormData to the URI.
++						uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
++					}
++				}
++				else if(method.toUpperCase() == 'POST'){
++					// If POST data exist in addition to the HTML form data,
++					// it will be concatenated to the form data.
++					postData = postData?this._sFormData + "&" + postData:this._sFormData;
++				}
++			}
++
++			if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
++				// If callback.cache is defined and set to false, a
++				// timestamp value will be added to the querystring.
++				uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
++			}
++
++			// Each transaction will automatically include a custom header of
++			// "X-Requested-With: XMLHttpRequest" to identify the request as
++			// having originated from Connection Manager.
++			if(this._use_default_xhr_header){
++				if(!this._default_headers['X-Requested-With']){
++					this.initHeader('X-Requested-With', this._default_xhr_header, true);
++					YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.', 'info', 'Connection');
++				}
++			}
++
++			//If the transaction method is POST and the POST header value is set to true
++			//or a custom value, initalize the Content-Type header to this value.
++			if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
++				this.initHeader('Content-Type', this._default_post_header);
++				YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.', 'info', 'Connection');
++			}
++
++			if(o.xdr){
++				this.xdr(o, method, uri, callback, postData);
++				return o;
++			}
++
++			o.conn.open(method, uri, true);
++			//Initialize all default and custom HTTP headers,
++			if(this._has_default_headers || this._has_http_headers){
++				this.setHeader(o);
++			}
++
++			this.handleReadyState(o, callback);
++			o.conn.send(postData || '');
++			YAHOO.log('Transaction ' + o.tId + ' sent.', 'info', 'Connection');
++
++			// Reset the HTML form data and state properties as
++			// soon as the data are submitted.
++			if(this._isFormSubmit === true){
++				this.resetFormState();
++			}
++
++			// Fire global custom event -- startEvent
++			this.startEvent.fire(o, args);
++
++			if(o.startEvent){
++				// Fire transaction custom event -- startEvent
++				o.startEvent.fire(o, args);
++			}
++
++			return o;
++		}
++	},
++
++  /**
++   * @description This method creates and subscribes custom events,
++   * specific to each transaction
++   * @method initCustomEvents
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++	initCustomEvents:function(o, callback)
++	{
++		var prop;
++		// Enumerate through callback.customevents members and bind/subscribe
++		// events that match in the _customEvents table.
++		for(prop in callback.customevents){
++			if(this._customEvents[prop][0]){
++				// Create the custom event
++				o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
++				YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' created.', 'info', 'Connection');
++
++				// Subscribe the custom event
++				o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
++				YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' subscribed.', 'info', 'Connection');
++			}
++		}
++	},
++
++  /**
++   * @description This method serves as a timer that polls the XHR object's readyState
++   * property during a transaction, instead of binding a callback to the
++   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
++   * will process the response, and the timer will be cleared.
++   * @method handleReadyState
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++
++    handleReadyState:function(o, callback)
++
++    {
++		var oConn = this,
++			args = (callback && callback.argument)?callback.argument:null;
++
++		if(callback && callback.timeout){
++			this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
++		}
++
++		this._poll[o.tId] = window.setInterval(
++			function(){
++				if(o.conn && o.conn.readyState === 4){
++
++					// Clear the polling interval for the transaction
++					// and remove the reference from _poll.
++					window.clearInterval(oConn._poll[o.tId]);
++					delete oConn._poll[o.tId];
++
++					if(callback && callback.timeout){
++						window.clearTimeout(oConn._timeOut[o.tId]);
++						delete oConn._timeOut[o.tId];
++					}
++
++					// Fire global custom event -- completeEvent
++					oConn.completeEvent.fire(o, args);
++
++					if(o.completeEvent){
++						// Fire transaction custom event -- completeEvent
++						o.completeEvent.fire(o, args);
++					}
++
++					oConn.handleTransactionResponse(o, callback);
++				}
++			}
++		,this._polling_interval);
++    },
++
++  /**
++   * @description This method attempts to interpret the server response and
++   * determine whether the transaction was successful, or if an error or
++   * exception was encountered.
++   * @method handleTransactionResponse
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {object} callback The user-defined callback object
++   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
++   * @return {void}
++   */
++    handleTransactionResponse:function(o, callback, isAbort)
++    {
++		var httpStatus, responseObject,
++			args = (callback && callback.argument)?callback.argument:null,
++			xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
++			xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
++			xdrA = isAbort;
++
++		try
++		{
++			if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
++				// XDR requests will not have HTTP status defined. The
++				// statusText property will define the response status
++				// set by the Flash transport.
++				httpStatus = o.conn.status;
++			}
++			else if(xdrF && !xdrA){
++				// Set XDR transaction failure to a status of 0, which
++				// resolves as an HTTP failure, instead of an exception.
++				httpStatus = 0;
++			}
++			else{
++				httpStatus = 13030;
++			}
++		}
++		catch(e){
++
++			 // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
++			 // when the XHR object's status and statusText properties are
++			 // unavailable, and a query attempt throws an exception.
++			httpStatus = 13030;
++		}
++
++		if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
++			responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
++			if(callback && callback.success){
++				if(!callback.scope){
++					callback.success(responseObject);
++					YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection');
++				}
++				else{
++					// If a scope property is defined, the callback will be fired from
++					// the context of the object.
++					callback.success.apply(callback.scope, [responseObject]);
++					YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection');
++				}
++			}
++
++			// Fire global custom event -- successEvent
++			this.successEvent.fire(responseObject);
++
++			if(o.successEvent){
++				// Fire transaction custom event -- successEvent
++				o.successEvent.fire(responseObject);
++			}
++		}
++		else{
++			switch(httpStatus){
++				// The following cases are wininet.dll error codes that may be encountered.
++				case 12002: // Server timeout
++				case 12029: // 12029 to 12031 correspond to dropped connections.
++				case 12030:
++				case 12031:
++				case 12152: // Connection closed by server.
++				case 13030: // See above comments for variable status.
++					// XDR transactions will not resolve to this case, since the
++					// response object is already built in the xdr response.
++					responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++							YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++							YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
++						}
++					}
++
++					break;
++				default:
++					responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++							YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection');
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++							YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection');
++						}
++					}
++			}
++
++			// Fire global custom event -- failureEvent
++			this.failureEvent.fire(responseObject);
++
++			if(o.failureEvent){
++				// Fire transaction custom event -- failureEvent
++				o.failureEvent.fire(responseObject);
++			}
++
++		}
++
++		this.releaseObject(o);
++		responseObject = null;
++    },
++
++  /**
++   * @description This method evaluates the server response, creates and returns the results via
++   * its properties.  Success and failure cases will differ in the response
++   * object's property values.
++   * @method createResponseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @return {object}
++   */
++    createResponseObject:function(o, callbackArg)
++    {
++		var obj = {}, headerObj = {},
++			i, headerStr, header, delimitPos;
++
++		try
++		{
++			headerStr = o.conn.getAllResponseHeaders();
++			header = headerStr.split('\n');
++			for(i=0; i<header.length; i++){
++				delimitPos = header[i].indexOf(':');
++				if(delimitPos != -1){
++					headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
++				}
++			}
++		}
++		catch(e){}
++
++		obj.tId = o.tId;
++		// Normalize IE's response to HTTP 204 when Win error 1223.
++		obj.status = (o.conn.status == 1223)?204:o.conn.status;
++		// Normalize IE's statusText to "No Content" instead of "Unknown".
++		obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
++		obj.getResponseHeader = headerObj;
++		obj.getAllResponseHeaders = headerStr;
++		obj.responseText = o.conn.responseText;
++		obj.responseXML = o.conn.responseXML;
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description If a transaction cannot be completed due to dropped or closed connections,
++   * there may be not be enough information to build a full response object.
++   * The failure callback will be fired and this specific condition can be identified
++   * by a status property value of 0.
++   *
++   * If an abort was successful, the status property will report a value of -1.
++   *
++   * @method createExceptionObject
++   * @private
++   * @static
++   * @param {int} tId The Transaction Id
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
++   * @return {object}
++   */
++    createExceptionObject:function(tId, callbackArg, isAbort)
++    {
++		var COMM_CODE = 0,
++			COMM_ERROR = 'communication failure',
++			ABORT_CODE = -1,
++			ABORT_ERROR = 'transaction aborted',
++			obj = {};
++
++		obj.tId = tId;
++		if(isAbort){
++			obj.status = ABORT_CODE;
++			obj.statusText = ABORT_ERROR;
++		}
++		else{
++			obj.status = COMM_CODE;
++			obj.statusText = COMM_ERROR;
++		}
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description Method that initializes the custom HTTP headers for the each transaction.
++   * @method initHeader
++   * @public
++   * @static
++   * @param {string} label The HTTP header label
++   * @param {string} value The HTTP header value
++   * @param {string} isDefault Determines if the specific header is a default header
++   * automatically sent with each transaction.
++   * @return {void}
++   */
++	initHeader:function(label, value, isDefault)
++	{
++		var headerObj = (isDefault)?this._default_headers:this._http_headers;
++
++		headerObj[label] = value;
++		if(isDefault){
++			this._has_default_headers = true;
++		}
++		else{
++			this._has_http_headers = true;
++		}
++	},
++
++
++  /**
++   * @description Accessor that sets the HTTP headers for each transaction.
++   * @method setHeader
++   * @private
++   * @static
++   * @param {object} o The connection object for the transaction.
++   * @return {void}
++   */
++	setHeader:function(o)
++	{
++		var prop;
++		if(this._has_default_headers){
++			for(prop in this._default_headers){
++				if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
++					o.conn.setRequestHeader(prop, this._default_headers[prop]);
++					YAHOO.log('Default HTTP header ' + prop + ' set with value of ' + this._default_headers[prop], 'info', 'Connection');
++				}
++			}
++		}
++
++		if(this._has_http_headers){
++			for(prop in this._http_headers){
++				if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
++					o.conn.setRequestHeader(prop, this._http_headers[prop]);
++					YAHOO.log('HTTP header ' + prop + ' set with value of ' + this._http_headers[prop], 'info', 'Connection');
++				}
++			}
++
++			this._http_headers = {};
++			this._has_http_headers = false;
++		}
++	},
++
++  /**
++   * @description Resets the default HTTP headers object
++   * @method resetDefaultHeaders
++   * @public
++   * @static
++   * @return {void}
++   */
++	resetDefaultHeaders:function(){
++		this._default_headers = {};
++		this._has_default_headers = false;
++	},
++
++  /**
++   * @description Method to terminate a transaction, if it has not reached readyState 4.
++   * @method abort
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest.
++   * @param {object} callback  User-defined callback object.
++   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
++   * @return {boolean}
++   */
++	abort:function(o, callback, isTimeout)
++	{
++		var abortStatus,
++			args = (callback && callback.argument)?callback.argument:null;
++			o = o || {};
++
++		if(o.conn){
++			if(o.xhr){
++				if(this.isCallInProgress(o)){
++					// Issue abort request
++					o.conn.abort();
++
++					window.clearInterval(this._poll[o.tId]);
++					delete this._poll[o.tId];
++
++					if(isTimeout){
++						window.clearTimeout(this._timeOut[o.tId]);
++						delete this._timeOut[o.tId];
++					}
++
++					abortStatus = true;
++				}
++			}
++			else if(o.xdr){
++				o.conn.abort(o.tId);
++				abortStatus = true;
++			}
++		}
++		else if(o.upload){
++			var frameId = 'yuiIO' + o.tId;
++			var io = document.getElementById(frameId);
++
++			if(io){
++				// Remove all listeners on the iframe prior to
++				// its destruction.
++				YAHOO.util.Event.removeListener(io, "load");
++				// Destroy the iframe facilitating the transaction.
++				document.body.removeChild(io);
++				YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
++
++				if(isTimeout){
++					window.clearTimeout(this._timeOut[o.tId]);
++					delete this._timeOut[o.tId];
++				}
++
++				abortStatus = true;
++			}
++		}
++		else{
++			abortStatus = false;
++		}
++
++		if(abortStatus === true){
++			// Fire global custom event -- abortEvent
++			this.abortEvent.fire(o, args);
++
++			if(o.abortEvent){
++				// Fire transaction custom event -- abortEvent
++				o.abortEvent.fire(o, args);
++			}
++
++			this.handleTransactionResponse(o, callback, true);
++			YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection');
++		}
++
++		return abortStatus;
++	},
++
++  /**
++   * @description Determines if the transaction is still being processed.
++   * @method isCallInProgress
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest
++   * @return {boolean}
++   */
++	isCallInProgress:function(o)
++	{
++		o = o || {};
++		// if the XHR object assigned to the transaction has not been dereferenced,
++		// then check its readyState status.  Otherwise, return false.
++		if(o.xhr && o.conn){
++			return o.conn.readyState !== 4 && o.conn.readyState !== 0;
++		}
++		else if(o.xdr && o.conn){
++			return o.conn.isCallInProgress(o.tId);
++		}
++		else if(o.upload === true){
++			return document.getElementById('yuiIO' + o.tId)?true:false;
++		}
++		else{
++			return false;
++		}
++	},
++
++  /**
++   * @description Dereference the XHR instance and the connection object after the transaction is completed.
++   * @method releaseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @return {void}
++   */
++	releaseObject:function(o)
++	{
++		if(o && o.conn){
++			//dereference the XHR instance.
++			o.conn = null;
++
++			YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection');
++
++			//dereference the connection object.
++			o = null;
++		}
++	}
++};
++
++/**
++  * @for Connect
++  */
++(function() {
++	var YCM = YAHOO.util.Connect, _fn = {};
++
++   /**
++    * @description This method creates and instantiates the Flash transport.
++    * @method _swf
++    * @private
++    * @static
++    * @param {string} URI to connection.swf.
++    * @return {void}
++    */
++	function _swf(uri) {
++		var o = '<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="' +
++		        uri + '" width="0" height="0">' +
++		     	'<param name="movie" value="' + uri + '">' +
++                '<param name="allowScriptAccess" value="always">' +
++		    	'</object>',
++		    c = document.createElement('div');
++
++		document.body.appendChild(c);
++		c.innerHTML = o;
++	}
++
++   /**
++    * @description This method calls the public method on the
++    * Flash transport to start the XDR transaction.  It is analogous
++    * to Connection Manager's asyncRequest method.
++    * @method xdr
++    * @private
++    * @static
++    * @param {object} The transaction object.
++    * @param {string} HTTP request method.
++    * @param {string} URI for the transaction.
++    * @param {object} The transaction's callback object.
++    * @param {object} The JSON object used as HTTP POST data.
++    * @return {void}
++    */
++	function _xdr(o, m, u, c, d) {
++		_fn[parseInt(o.tId)] = { 'o':o, 'c':c };
++		if (d) {
++			c.method = m;
++			c.data = d;
++		}
++
++		o.conn.send(u, c, o.tId);
++	}
++
++   /**
++    * @description This method instantiates the Flash transport and
++    * establishes a static reference to it, used for all XDR requests.
++    * @method transport
++    * @public
++    * @static
++    * @param {string} URI to connection.swf.
++    * @return {void}
++    */
++	function _init(uri) {
++		_swf(uri);
++		YCM._transport = document.getElementById('YUIConnectionSwf');
++	}
++
++	function _xdrReady() {
++		YCM.xdrReadyEvent.fire();
++	}
++
++   /**
++    * @description This method fires the global and transaction start
++    * events.
++    * @method _xdrStart
++    * @private
++    * @static
++    * @param {object} The transaction object.
++    * @param {string} The transaction's callback object.
++    * @return {void}
++    */
++	function _xdrStart(o, cb) {
++		if (o) {
++			// Fire global custom event -- startEvent
++			YCM.startEvent.fire(o, cb.argument);
++
++			if(o.startEvent){
++				// Fire transaction custom event -- startEvent
++				o.startEvent.fire(o, cb.argument);
++			}
++		}
++	}
++
++   /**
++    * @description This method is the initial response handler
++    * for XDR transactions.  The Flash transport calls this
++    * function and sends the response payload.
++    * @method handleXdrResponse
++    * @private
++    * @static
++    * @param {object} The response object sent from the Flash transport.
++    * @return {void}
++    */
++	function _handleXdrResponse(r) {
++		var o = _fn[r.tId].o,
++			cb = _fn[r.tId].c;
++
++		if (r.statusText === 'xdr:start') {
++			_xdrStart(o, cb);
++			return;
++		}
++
++		r.responseText = decodeURI(r.responseText);
++		o.r = r;
++		if (cb.argument) {
++			o.r.argument = cb.argument;
++		}
++
++		this.handleTransactionResponse(o, cb, r.statusText === 'xdr:abort' ? true : false);
++		delete _fn[r.tId];
++	}
++
++	// Bind the functions to Connection Manager as static fields.
++	YCM.xdr = _xdr;
++	YCM.swf = _swf;
++	YCM.transport = _init;
++	YCM.xdrReadyEvent = new YAHOO.util.CustomEvent('xdrReady');
++	YCM.xdrReady = _xdrReady;
++	YCM.handleXdrResponse = _handleXdrResponse;
++})();
++
++/**
++  * @for Connect
++  */
++(function(){
++	var YCM = YAHOO.util.Connect,
++		YE = YAHOO.util.Event;
++   /**
++	* @description Property modified by setForm() to determine if the data
++	* should be submitted as an HTML form.
++	* @property _isFormSubmit
++	* @private
++	* @static
++	* @type boolean
++	*/
++	YCM._isFormSubmit = false;
++
++   /**
++	* @description Property modified by setForm() to determine if a file(s)
++	* upload is expected.
++	* @property _isFileUpload
++	* @private
++	* @static
++	* @type boolean
++	*/
++	YCM._isFileUpload = false;
++
++   /**
++	* @description Property modified by setForm() to set a reference to the HTML
++	* form node if the desired action is file upload.
++	* @property _formNode
++	* @private
++	* @static
++	* @type object
++	*/
++	YCM._formNode = null;
++
++   /**
++	* @description Property modified by setForm() to set the HTML form data
++	* for each transaction.
++	* @property _sFormData
++	* @private
++	* @static
++	* @type string
++	*/
++	YCM._sFormData = null;
++
++   /**
++	* @description Tracks the name-value pair of the "clicked" submit button if multiple submit
++	* buttons are present in an HTML form; and, if YAHOO.util.Event is available.
++	* @property _submitElementValue
++	* @private
++	* @static
++	* @type string
++	*/
++	YCM._submitElementValue = null;
++
++   /**
++    * @description Custom event that fires when handleTransactionResponse() determines a
++    * response in the HTTP 4xx/5xx range.
++    * @property failureEvent
++    * @private
++    * @static
++    * @type CustomEvent
++    */
++	YCM.uploadEvent = new YAHOO.util.CustomEvent('upload'),
++
++   /**
++	* @description Determines whether YAHOO.util.Event is available and returns true or false.
++	* If true, an event listener is bound at the document level to trap click events that
++	* resolve to a target type of "Submit".  This listener will enable setForm() to determine
++	* the clicked "Submit" value in a multi-Submit button, HTML form.
++	* @property _hasSubmitListener
++	* @private
++	* @static
++	*/
++	YCM._hasSubmitListener = function() {
++		if(YE){
++			YE.addListener(
++				document,
++				'click',
++				function(e){
++					var obj = YE.getTarget(e),
++						name = obj.nodeName.toLowerCase();
++
++					if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
++						YCM._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
++					}
++				});
++			return true;
++		}
++		return false;
++	}();
++
++  /**
++   * @description This method assembles the form label and value pairs and
++   * constructs an encoded string.
++   * asyncRequest() will automatically initialize the transaction with a
++   * a HTTP header Content-Type of application/x-www-form-urlencoded.
++   * @method setForm
++   * @public
++   * @static
++   * @param {string || object} form id or name attribute, or form object.
++   * @param {boolean} optional enable file upload.
++   * @param {boolean} optional enable file upload over SSL in IE only.
++   * @return {string} string of the HTML form field name and value pairs..
++   */
++	function _setForm(formId, isUpload, secureUri)
++	{
++		var oForm, oElement, oName, oValue, oDisabled,
++			hasSubmit = false,
++			data = [], item = 0,
++			i,len,j,jlen,opt;
++
++		this.resetFormState();
++
++		if(typeof formId == 'string'){
++			// Determine if the argument is a form id or a form name.
++			// Note form name usage is deprecated by supported
++			// here for legacy reasons.
++			oForm = (document.getElementById(formId) || document.forms[formId]);
++		}
++		else if(typeof formId == 'object'){
++			// Treat argument as an HTML form object.
++			oForm = formId;
++		}
++		else{
++			YAHOO.log('Unable to create form object ' + formId, 'warn', 'Connection');
++			return;
++		}
++
++		// If the isUpload argument is true, setForm will call createFrame to initialize
++		// an iframe as the form target.
++		//
++		// The argument secureURI is also required by IE in SSL environments
++		// where the secureURI string is a fully qualified HTTP path, used to set the source
++		// of the iframe, to a stub resource in the same domain.
++		if(isUpload){
++
++			// Create iframe in preparation for file upload.
++			this.createFrame(secureUri?secureUri:null);
++
++			// Set form reference and file upload properties to true.
++			this._isFormSubmit = true;
++			this._isFileUpload = true;
++			this._formNode = oForm;
++
++			return;
++		}
++
++		// Iterate over the form elements collection to construct the
++		// label-value pairs.
++		for (i=0,len=oForm.elements.length; i<len; ++i){
++			oElement  = oForm.elements[i];
++			oDisabled = oElement.disabled;
++			oName     = oElement.name;
++
++			// Do not submit fields that are disabled or
++			// do not have a name attribute value.
++			if(!oDisabled && oName)
++			{
++				oName  = encodeURIComponent(oName)+'=';
++				oValue = encodeURIComponent(oElement.value);
++
++				switch(oElement.type)
++				{
++					// Safari, Opera, FF all default opt.value from .text if
++					// value attribute not specified in markup
++					case 'select-one':
++						if (oElement.selectedIndex > -1) {
++							opt = oElement.options[oElement.selectedIndex];
++							data[item++] = oName + encodeURIComponent(
++								(opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
++						}
++						break;
++					case 'select-multiple':
++						if (oElement.selectedIndex > -1) {
++							for(j=oElement.selectedIndex, jlen=oElement.options.length; j<jlen; ++j){
++								opt = oElement.options[j];
++								if (opt.selected) {
++									data[item++] = oName + encodeURIComponent(
++										(opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
++								}
++							}
++						}
++						break;
++					case 'radio':
++					case 'checkbox':
++						if(oElement.checked){
++							data[item++] = oName + oValue;
++						}
++						break;
++					case 'file':
++						// stub case as XMLHttpRequest will only send the file path as a string.
++					case undefined:
++						// stub case for fieldset element which returns undefined.
++					case 'reset':
++						// stub case for input type reset button.
++					case 'button':
++						// stub case for input type button elements.
++						break;
++					case 'submit':
++						if(hasSubmit === false){
++							if(this._hasSubmitListener && this._submitElementValue){
++								data[item++] = this._submitElementValue;
++							}
++							hasSubmit = true;
++						}
++						break;
++					default:
++						data[item++] = oName + oValue;
++				}
++			}
++		}
++
++		this._isFormSubmit = true;
++		this._sFormData = data.join('&');
++
++		YAHOO.log('Form initialized for transaction. HTML form POST message is: ' + this._sFormData, 'info', 'Connection');
++
++		this.initHeader('Content-Type', this._default_form_header);
++		YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded for setForm() transaction.', 'info', 'Connection');
++
++		return this._sFormData;
++	}
++
++   /**
++    * @description Resets HTML form properties when an HTML form or HTML form
++    * with file upload transaction is sent.
++    * @method resetFormState
++    * @private
++    * @static
++    * @return {void}
++    */
++	function _resetFormState(){
++		this._isFormSubmit = false;
++		this._isFileUpload = false;
++		this._formNode = null;
++		this._sFormData = "";
++	}
++
++
++   /**
++    * @description Creates an iframe to be used for form file uploads.  It is remove from the
++    * document upon completion of the upload transaction.
++    * @method createFrame
++    * @private
++    * @static
++    * @param {string} optional qualified path of iframe resource for SSL in IE.
++    * @return {void}
++    */
++	function _createFrame(secureUri){
++
++		// IE does not allow the setting of id and name attributes as object
++		// properties via createElement().  A different iframe creation
++		// pattern is required for IE.
++		var frameId = 'yuiIO' + this._transaction_id,
++			io;
++		if(YAHOO.env.ua.ie){
++			io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
++
++			// IE will throw a security exception in an SSL environment if the
++			// iframe source is undefined.
++			if(typeof secureUri == 'boolean'){
++				io.src = 'javascript:false';
++			}
++		}
++		else{
++			io = document.createElement('iframe');
++			io.id = frameId;
++			io.name = frameId;
++		}
++
++		io.style.position = 'absolute';
++		io.style.top = '-1000px';
++		io.style.left = '-1000px';
++
++		document.body.appendChild(io);
++		YAHOO.log('File upload iframe created. Id is:' + frameId, 'info', 'Connection');
++	}
++
++   /**
++    * @description Parses the POST data and creates hidden form elements
++    * for each key-value, and appends them to the HTML form object.
++    * @method appendPostData
++    * @private
++    * @static
++    * @param {string} postData The HTTP POST data
++    * @return {array} formElements Collection of hidden fields.
++    */
++	function _appendPostData(postData){
++		var formElements = [],
++			postMessage = postData.split('&'),
++			i, delimitPos;
++
++		for(i=0; i < postMessage.length; i++){
++			delimitPos = postMessage[i].indexOf('=');
++			if(delimitPos != -1){
++				formElements[i] = document.createElement('input');
++				formElements[i].type = 'hidden';
++				formElements[i].name = decodeURIComponent(postMessage[i].substring(0,delimitPos));
++				formElements[i].value = decodeURIComponent(postMessage[i].substring(delimitPos+1));
++				this._formNode.appendChild(formElements[i]);
++			}
++		}
++
++		return formElements;
++	}
++
++   /**
++    * @description Uploads HTML form, inclusive of files/attachments, using the
++    * iframe created in createFrame to facilitate the transaction.
++    * @method uploadFile
++    * @private
++    * @static
++    * @param {int} id The transaction id.
++    * @param {object} callback User-defined callback object.
++    * @param {string} uri Fully qualified path of resource.
++    * @param {string} postData POST data to be submitted in addition to HTML form.
++    * @return {void}
++    */
++	function _uploadFile(o, callback, uri, postData){
++		// Each iframe has an id prefix of "yuiIO" followed
++		// by the unique transaction id.
++		var frameId = 'yuiIO' + o.tId,
++		    uploadEncoding = 'multipart/form-data',
++		    io = document.getElementById(frameId),
++		    ie8 = (document.documentMode && document.documentMode === 8) ? true : false,
++		    oConn = this,
++			args = (callback && callback.argument)?callback.argument:null,
++            oElements,i,prop,obj, rawFormAttributes, uploadCallback;
++
++		// Track original HTML form attribute values.
++		rawFormAttributes = {
++			action:this._formNode.getAttribute('action'),
++			method:this._formNode.getAttribute('method'),
++			target:this._formNode.getAttribute('target')
++		};
++
++		// Initialize the HTML form properties in case they are
++		// not defined in the HTML form.
++		this._formNode.setAttribute('action', uri);
++		this._formNode.setAttribute('method', 'POST');
++		this._formNode.setAttribute('target', frameId);
++
++		if(YAHOO.env.ua.ie && !ie8){
++			// IE does not respect property enctype for HTML forms.
++			// Instead it uses the property - "encoding".
++			this._formNode.setAttribute('encoding', uploadEncoding);
++		}
++		else{
++			this._formNode.setAttribute('enctype', uploadEncoding);
++		}
++
++		if(postData){
++			oElements = this.appendPostData(postData);
++		}
++
++		// Start file upload.
++		this._formNode.submit();
++
++		// Fire global custom event -- startEvent
++		this.startEvent.fire(o, args);
++
++		if(o.startEvent){
++			// Fire transaction custom event -- startEvent
++			o.startEvent.fire(o, args);
++		}
++
++		// Start polling if a callback is present and the timeout
++		// property has been defined.
++		if(callback && callback.timeout){
++			this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
++		}
++
++		// Remove HTML elements created by appendPostData
++		if(oElements && oElements.length > 0){
++			for(i=0; i < oElements.length; i++){
++				this._formNode.removeChild(oElements[i]);
++			}
++		}
++
++		// Restore HTML form attributes to their original
++		// values prior to file upload.
++		for(prop in rawFormAttributes){
++			if(YAHOO.lang.hasOwnProperty(rawFormAttributes, prop)){
++				if(rawFormAttributes[prop]){
++					this._formNode.setAttribute(prop, rawFormAttributes[prop]);
++				}
++				else{
++					this._formNode.removeAttribute(prop);
++				}
++			}
++		}
++
++		// Reset HTML form state properties.
++		this.resetFormState();
++
++		// Create the upload callback handler that fires when the iframe
++		// receives the load event.  Subsequently, the event handler is detached
++		// and the iframe removed from the document.
++		uploadCallback = function() {
++			if(callback && callback.timeout){
++				window.clearTimeout(oConn._timeOut[o.tId]);
++				delete oConn._timeOut[o.tId];
++			}
++
++			// Fire global custom event -- completeEvent
++			oConn.completeEvent.fire(o, args);
++
++			if(o.completeEvent){
++				// Fire transaction custom event -- completeEvent
++				o.completeEvent.fire(o, args);
++			}
++
++			obj = {
++			    tId : o.tId,
++			    argument : callback.argument
++            };
++
++			try
++			{
++				// responseText and responseXML will be populated with the same data from the iframe.
++				// Since the HTTP headers cannot be read from the iframe
++				obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:io.contentWindow.document.documentElement.textContent;
++				obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
++			}
++			catch(e){}
++
++			if(callback && callback.upload){
++				if(!callback.scope){
++					callback.upload(obj);
++					YAHOO.log('Upload callback.', 'info', 'Connection');
++				}
++				else{
++					callback.upload.apply(callback.scope, [obj]);
++					YAHOO.log('Upload callback with scope.', 'info', 'Connection');
++				}
++			}
++
++			// Fire global custom event -- uploadEvent
++			oConn.uploadEvent.fire(obj);
++
++			if(o.uploadEvent){
++				// Fire transaction custom event -- uploadEvent
++				o.uploadEvent.fire(obj);
++			}
++
++			YE.removeListener(io, "load", uploadCallback);
++
++			setTimeout(
++				function(){
++					document.body.removeChild(io);
++					oConn.releaseObject(o);
++					YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
++				}, 100);
++		};
++
++		// Bind the onload handler to the iframe to detect the file upload response.
++		YE.addListener(io, "load", uploadCallback);
++	}
++
++	YCM.setForm = _setForm;
++	YCM.resetFormState = _resetFormState;
++	YCM.createFrame = _createFrame;
++	YCM.appendPostData = _appendPostData;
++	YCM.uploadFile = _uploadFile;
++})();
++
++YAHOO.register("connection", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/connection/connection-min.js b/pylons_app/public/js/yui/connection/connection-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/connection/connection-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var D,A,B;try{A=new XMLHttpRequest();D={conn:A,tId:F,xhr:true};}catch(C){for(B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:F,xhr:true};break;}catch(E){}}}finally{return D;}},getConnectionObject:function(A){var C,D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={tId:D};if(A==="xdr"){C.conn=this._transport;C.xdr=true;}else{if(A==="upload"){C.upload=true;}}}if(C){this._transaction_id++;}}catch(B){}return C;},asyncRequest:function(G,D,F,A){var E,C,B=(F&&F.argument)?F.argument:null;if(this._isFileUpload){C="upload";}else{if(F.xdr){C="xdr";}}E=this.getConnectionObject(C);if(!E){return null;}else{if(F&&F.customevents){this.initCustomEvents(E,F);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(E,F,D,A);return E;}if(G.toUpperCase()=="GET"){if(this._sFormData.length!==0){D+=((D.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(G.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(G.toUpperCase()=="GET"&&(F&&F.cache===false)){D+=((D.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((G.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(E.xdr){this.xdr(E,G,D,F,A);return E;}E.conn.open(G,D,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(E);}this.handleReadyState(E,F);E.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(E,B);if(E.startEvent){E.startEvent.fire(E,B);}return E;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this,A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(B,I,D){var E,A,G=(I&&I.argument)?I.argument:null,C=(B.r&&B.r.statusText==="xdr:success")?true:false,H=(B.r&&B.r.statusText==="xdr:failure")?true:false,J=D;try{if((B.conn.status!==undefined&&B.conn.status!==0)||C){E=B.conn.status;}else{if(H&&!J){E=0;}else{E=13030;}}}catch(F){E=13030;}if((E>=200&&E<300)||E===1223||C){A=B.xdr?B.r:this.createResponseObject(B,G);if(I&&I.success){if(!I.scope){I.success(A);}else{I.success.apply(I.scope,[A]);}}this.successEvent.fire(A);if(B.successEvent){B.successEvent.fire(A);}}else{switch(E){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:A=this.createExceptionObject(B.tId,G,(D?D:false));if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}break;default:A=(B.xdr)?B.response:this.createResponseObject(B,G);if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}}this.failureEvent.fire(A);if(B.failureEvent){B.failureEvent.fire(A);}}this.releaseObject(B);A=null;},createResponseObject:function(A,G){var D={},I={},E,C,F,B;try{C=A.conn.getAllResponseHeaders();F=C.split("\n");for(E=0;E<F.length;E++){B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=YAHOO.lang.trim(F[E].substring(B+2));}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0,G="communication failure",C=-1,B="transaction aborted",E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);
++}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(E,G,A){var D,B=(G&&G.argument)?G.argument:null;E=E||{};if(E.conn){if(E.xhr){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E.xdr){E.conn.abort(E.tId);D=true;}}}else{if(E.upload){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(A){A=A||{};if(A.xhr&&A.conn){return A.conn.readyState!==4&&A.conn.readyState!==0;}else{if(A.xdr&&A.conn){return A.conn.isCallInProgress(A.tId);}else{if(A.upload===true){return document.getElementById("yuiIO"+A.tId)?true:false;}else{return false;}}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};(function(){var G=YAHOO.util.Connect,H={};function D(I){var J='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+I+'" width="0" height="0">'+'<param name="movie" value="'+I+'">'+'<param name="allowScriptAccess" value="always">'+"</object>",K=document.createElement("div");document.body.appendChild(K);K.innerHTML=J;}function B(L,I,J,M,K){H[parseInt(L.tId)]={"o":L,"c":M};if(K){M.method=I;M.data=K;}L.conn.send(J,M,L.tId);}function E(I){D(I);G._transport=document.getElementById("YUIConnectionSwf");}function C(){G.xdrReadyEvent.fire();}function A(J,I){if(J){G.startEvent.fire(J,I.argument);if(J.startEvent){J.startEvent.fire(J,I.argument);}}}function F(J){var K=H[J.tId].o,I=H[J.tId].c;if(J.statusText==="xdr:start"){A(K,I);return;}J.responseText=decodeURI(J.responseText);K.r=J;if(I.argument){K.r.argument=I.argument;}this.handleTransactionResponse(K,I,J.statusText==="xdr:abort"?true:false);delete H[J.tId];}G.xdr=B;G.swf=D;G.transport=E;G.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");G.xdrReady=C;G.handleXdrResponse=F;})();(function(){var D=YAHOO.util.Connect,F=YAHOO.util.Event;D._isFormSubmit=false;D._isFileUpload=false;D._formNode=null;D._sFormData=null;D._submitElementValue=null;D.uploadEvent=new YAHOO.util.CustomEvent("upload"),D._hasSubmitListener=function(){if(F){F.addListener(document,"click",function(J){var I=F.getTarget(J),H=I.nodeName.toLowerCase();if((H==="input"||H==="button")&&(I.type&&I.type.toLowerCase()=="submit")){D._submitElementValue=encodeURIComponent(I.name)+"="+encodeURIComponent(I.value);}});return true;}return false;}();function G(T,O,J){var S,I,R,P,W,Q=false,M=[],V=0,L,N,K,U,H;this.resetFormState();if(typeof T=="string"){S=(document.getElementById(T)||document.forms[T]);}else{if(typeof T=="object"){S=T;}else{return;}}if(O){this.createFrame(J?J:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=S;return;}for(L=0,N=S.elements.length;L<N;++L){I=S.elements[L];W=I.disabled;R=I.name;if(!W&&R){R=encodeURIComponent(R)+"=";P=encodeURIComponent(I.value);switch(I.type){case"select-one":if(I.selectedIndex>-1){H=I.options[I.selectedIndex];M[V++]=R+encodeURIComponent((H.attributes.value&&H.attributes.value.specified)?H.value:H.text);}break;case"select-multiple":if(I.selectedIndex>-1){for(K=I.selectedIndex,U=I.options.length;K<U;++K){H=I.options[K];if(H.selected){M[V++]=R+encodeURIComponent((H.attributes.value&&H.attributes.value.specified)?H.value:H.text);}}}break;case"radio":case"checkbox":if(I.checked){M[V++]=R+P;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(Q===false){if(this._hasSubmitListener&&this._submitElementValue){M[V++]=this._submitElementValue;}Q=true;}break;default:M[V++]=R+P;}}}this._isFormSubmit=true;this._sFormData=M.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;}function C(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";}function B(H){var I="yuiIO"+this._transaction_id,J;if(YAHOO.env.ua.ie){J=document.createElement('<iframe id="'+I+'" name="'+I+'" />');if(typeof H=="boolean"){J.src="javascript:false";}}else{J=document.createElement("iframe");J.id=I;J.name=I;}J.style.position="absolute";J.style.top="-1000px";J.style.left="-1000px";document.body.appendChild(J);}function E(H){var K=[],I=H.split("&"),J,L;for(J=0;J<I.length;J++){L=I[J].indexOf("=");if(L!=-1){K[J]=document.createElement("input");K[J].type="hidden";K[J].name=decodeURIComponent(I[J].substring(0,L));K[J].value=decodeURIComponent(I[J].substring(L+1));this._formNode.appendChild(K[J]);}}return K;}function A(K,V,L,J){var Q="yuiIO"+K.tId,R="multipart/form-data",T=document.getElementById(Q),M=(document.documentMode&&document.documentMode===8)?true:false,W=this,S=(V&&V.argument)?V.argument:null,U,P,I,O,H,N;H={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",L);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",Q);if(YAHOO.env.ua.ie&&!M){this._formNode.setAttribute("encoding",R);}else{this._formNode.setAttribute("enctype",R);}if(J){U=this.appendPostData(J);}this._formNode.submit();this.startEvent.fire(K,S);if(K.startEvent){K.startEvent.fire(K,S);}if(V&&V.timeout){this._timeOut[K.tId]=window.setTimeout(function(){W.abort(K,V,true);},V.timeout);}if(U&&U.length>0){for(P=0;P<U.length;P++){this._formNode.removeChild(U[P]);}}for(I in H){if(YAHOO.lang.hasOwnProperty(H,I)){if(H[I]){this._formNode.setAttribute(I,H[I]);}else{this._formNode.removeAttribute(I);}}}this.resetFormState();N=function(){if(V&&V.timeout){window.clearTimeout(W._timeOut[K.tId]);delete W._timeOut[K.tId];}W.completeEvent.fire(K,S);if(K.completeEvent){K.completeEvent.fire(K,S);
++}O={tId:K.tId,argument:V.argument};try{O.responseText=T.contentWindow.document.body?T.contentWindow.document.body.innerHTML:T.contentWindow.document.documentElement.textContent;O.responseXML=T.contentWindow.document.XMLDocument?T.contentWindow.document.XMLDocument:T.contentWindow.document;}catch(X){}if(V&&V.upload){if(!V.scope){V.upload(O);}else{V.upload.apply(V.scope,[O]);}}W.uploadEvent.fire(O);if(K.uploadEvent){K.uploadEvent.fire(O);}F.removeListener(T,"load",N);setTimeout(function(){document.body.removeChild(T);W.releaseObject(K);},100);};F.addListener(T,"load",N);}D.setForm=G;D.resetFormState=C;D.createFrame=B;D.appendPostData=E;D.uploadFile=A;})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/connection/connection.js b/pylons_app/public/js/yui/connection/connection.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/connection/connection.js
+@@ -0,0 +1,1546 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Connection Manager provides a simplified interface to the XMLHttpRequest
++ * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
++ * interactive states and server response, returning the results to a pre-defined
++ * callback you create.
++ *
++ * @namespace YAHOO.util
++ * @module connection
++ * @requires yahoo
++ * @requires event
++ */
++
++/**
++ * The Connection Manager singleton provides methods for creating and managing
++ * asynchronous transactions.
++ *
++ * @class Connect
++ */
++
++YAHOO.util.Connect =
++{
++  /**
++   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
++   * @property _msxml_progid
++   * @private
++   * @static
++   * @type array
++   */
++	_msxml_progid:[
++		'Microsoft.XMLHTTP',
++		'MSXML2.XMLHTTP.3.0',
++		'MSXML2.XMLHTTP'
++		],
++
++  /**
++   * @description Object literal of HTTP header(s)
++   * @property _http_header
++   * @private
++   * @static
++   * @type object
++   */
++	_http_headers:{},
++
++  /**
++   * @description Determines if HTTP headers are set.
++   * @property _has_http_headers
++   * @private
++   * @static
++   * @type boolean
++   */
++	_has_http_headers:false,
++
++ /**
++  * @description Determines if a default header of
++  * Content-Type of 'application/x-www-form-urlencoded'
++  * will be added to any client HTTP headers sent for POST
++  * transactions.
++  * @property _use_default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_post_header:true,
++
++ /**
++  * @description The default header used for POST transactions.
++  * @property _default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
++
++ /**
++  * @description The default header used for transactions involving the
++  * use of HTML forms.
++  * @property _default_form_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_form_header:'application/x-www-form-urlencoded',
++
++ /**
++  * @description Determines if a default header of
++  * 'X-Requested-With: XMLHttpRequest'
++  * will be added to each transaction.
++  * @property _use_default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_xhr_header:true,
++
++ /**
++  * @description The default header value for the label
++  * "X-Requested-With".  This is sent with each
++  * transaction, by default, to identify the
++  * request as being made by YUI Connection Manager.
++  * @property _default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_xhr_header:'XMLHttpRequest',
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _has_default_headers:true,
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_headers:{},
++
++ /**
++  * @description Collection of polling references to the polling mechanism in handleReadyState.
++  * @property _poll
++  * @private
++  * @static
++  * @type object
++  */
++    _poll:{},
++
++ /**
++  * @description Queue of timeout values for each transaction callback with a defined timeout value.
++  * @property _timeOut
++  * @private
++  * @static
++  * @type object
++  */
++    _timeOut:{},
++
++  /**
++   * @description The polling frequency, in milliseconds, for HandleReadyState.
++   * when attempting to determine a transaction's XHR readyState.
++   * The default is 50 milliseconds.
++   * @property _polling_interval
++   * @private
++   * @static
++   * @type int
++   */
++     _polling_interval:50,
++
++  /**
++   * @description A transaction counter that increments the transaction id for each transaction.
++   * @property _transaction_id
++   * @private
++   * @static
++   * @type int
++   */
++     _transaction_id:0,
++
++  /**
++   * @description Custom event that fires at the start of a transaction
++   * @property startEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	startEvent: new YAHOO.util.CustomEvent('start'),
++
++  /**
++   * @description Custom event that fires when a transaction response has completed.
++   * @property completeEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	completeEvent: new YAHOO.util.CustomEvent('complete'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 2xx range.
++   * @property successEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	successEvent: new YAHOO.util.CustomEvent('success'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 4xx/5xx range.
++   * @property failureEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	failureEvent: new YAHOO.util.CustomEvent('failure'),
++
++  /**
++   * @description Custom event that fires when a transaction is successfully aborted.
++   * @property abortEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	abortEvent: new YAHOO.util.CustomEvent('abort'),
++
++  /**
++   * @description A reference table that maps callback custom events members to its specific
++   * event name.
++   * @property _customEvents
++   * @private
++   * @static
++   * @type object
++   */
++	_customEvents:
++	{
++		onStart:['startEvent', 'start'],
++		onComplete:['completeEvent', 'complete'],
++		onSuccess:['successEvent', 'success'],
++		onFailure:['failureEvent', 'failure'],
++		onUpload:['uploadEvent', 'upload'],
++		onAbort:['abortEvent', 'abort']
++	},
++
++  /**
++   * @description Member to add an ActiveX id to the existing xml_progid array.
++   * In the event(unlikely) a new ActiveX id is introduced, it can be added
++   * without internal code modifications.
++   * @method setProgId
++   * @public
++   * @static
++   * @param {string} id The ActiveX id to be added to initialize the XHR object.
++   * @return void
++   */
++	setProgId:function(id)
++	{
++		this._msxml_progid.unshift(id);
++	},
++
++  /**
++   * @description Member to override the default POST header.
++   * @method setDefaultPostHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultPostHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_post_header = b;
++		}
++		else if(typeof b == 'boolean'){
++			this._use_default_post_header = b;
++		}
++	},
++
++  /**
++   * @description Member to override the default transaction header..
++   * @method setDefaultXhrHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultXhrHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_xhr_header = b;
++		}
++		else{
++			this._use_default_xhr_header = b;
++		}
++	},
++
++  /**
++   * @description Member to modify the default polling interval.
++   * @method setPollingInterval
++   * @public
++   * @static
++   * @param {int} i The polling interval in milliseconds.
++   * @return void
++   */
++	setPollingInterval:function(i)
++	{
++		if(typeof i == 'number' && isFinite(i)){
++			this._polling_interval = i;
++		}
++	},
++
++  /**
++   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
++   * the XMLHttpRequest instance and the transaction id.
++   * @method createXhrObject
++   * @private
++   * @static
++   * @param {int} transactionId Property containing the transaction id for this transaction.
++   * @return object
++   */
++	createXhrObject:function(transactionId)
++	{
++		var obj,http,i;
++		try
++		{
++			// Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
++			http = new XMLHttpRequest();
++			//  Object literal with http and tId properties
++			obj = { conn:http, tId:transactionId, xhr: true };
++		}
++		catch(e)
++		{
++			for(i=0; i<this._msxml_progid.length; ++i){
++				try
++				{
++					// Instantiates XMLHttpRequest for IE and assign to http
++					http = new ActiveXObject(this._msxml_progid[i]);
++					//  Object literal with conn and tId properties
++					obj = { conn:http, tId:transactionId, xhr: true };
++					break;
++				}
++				catch(e1){}
++			}
++		}
++		finally
++		{
++			return obj;
++		}
++	},
++
++  /**
++   * @description This method is called by asyncRequest to create a
++   * valid connection object for the transaction.  It also passes a
++   * transaction id and increments the transaction id counter.
++   * @method getConnectionObject
++   * @private
++   * @static
++   * @return {object}
++   */
++	getConnectionObject:function(t)
++	{
++		var o, tId = this._transaction_id;
++
++		try
++		{
++			if(!t){
++				o = this.createXhrObject(tId);
++			}
++			else{
++				o = {tId:tId};
++				if(t==='xdr'){
++					o.conn = this._transport;
++					o.xdr = true;
++				}
++				else if(t==='upload'){
++					o.upload = true;
++				}
++			}
++
++			if(o){
++				this._transaction_id++;
++			}
++		}
++		catch(e){}
++		return o;
++	},
++
++  /**
++   * @description Method for initiating an asynchronous request via the XHR object.
++   * @method asyncRequest
++   * @public
++   * @static
++   * @param {string} method HTTP transaction method
++   * @param {string} uri Fully qualified path of resource
++   * @param {callback} callback User-defined callback function or object
++   * @param {string} postData POST body
++   * @return {object} Returns the connection object
++   */
++	asyncRequest:function(method, uri, callback, postData)
++	{
++		var o,t,args = (callback && callback.argument)?callback.argument:null;
++
++		if(this._isFileUpload){
++			t = 'upload';
++		}
++		else if(callback.xdr){
++			t = 'xdr';
++		}
++
++		o = this.getConnectionObject(t);
++		if(!o){
++			return null;
++		}
++		else{
++
++			// Intialize any transaction-specific custom events, if provided.
++			if(callback && callback.customevents){
++				this.initCustomEvents(o, callback);
++			}
++
++			if(this._isFormSubmit){
++				if(this._isFileUpload){
++					this.uploadFile(o, callback, uri, postData);
++					return o;
++				}
++
++				// If the specified HTTP method is GET, setForm() will return an
++				// encoded string that is concatenated to the uri to
++				// create a querystring.
++				if(method.toUpperCase() == 'GET'){
++					if(this._sFormData.length !== 0){
++						// If the URI already contains a querystring, append an ampersand
++						// and then concatenate _sFormData to the URI.
++						uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
++					}
++				}
++				else if(method.toUpperCase() == 'POST'){
++					// If POST data exist in addition to the HTML form data,
++					// it will be concatenated to the form data.
++					postData = postData?this._sFormData + "&" + postData:this._sFormData;
++				}
++			}
++
++			if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
++				// If callback.cache is defined and set to false, a
++				// timestamp value will be added to the querystring.
++				uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
++			}
++
++			// Each transaction will automatically include a custom header of
++			// "X-Requested-With: XMLHttpRequest" to identify the request as
++			// having originated from Connection Manager.
++			if(this._use_default_xhr_header){
++				if(!this._default_headers['X-Requested-With']){
++					this.initHeader('X-Requested-With', this._default_xhr_header, true);
++				}
++			}
++
++			//If the transaction method is POST and the POST header value is set to true
++			//or a custom value, initalize the Content-Type header to this value.
++			if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
++				this.initHeader('Content-Type', this._default_post_header);
++			}
++
++			if(o.xdr){
++				this.xdr(o, method, uri, callback, postData);
++				return o;
++			}
++
++			o.conn.open(method, uri, true);
++			//Initialize all default and custom HTTP headers,
++			if(this._has_default_headers || this._has_http_headers){
++				this.setHeader(o);
++			}
++
++			this.handleReadyState(o, callback);
++			o.conn.send(postData || '');
++
++			// Reset the HTML form data and state properties as
++			// soon as the data are submitted.
++			if(this._isFormSubmit === true){
++				this.resetFormState();
++			}
++
++			// Fire global custom event -- startEvent
++			this.startEvent.fire(o, args);
++
++			if(o.startEvent){
++				// Fire transaction custom event -- startEvent
++				o.startEvent.fire(o, args);
++			}
++
++			return o;
++		}
++	},
++
++  /**
++   * @description This method creates and subscribes custom events,
++   * specific to each transaction
++   * @method initCustomEvents
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++	initCustomEvents:function(o, callback)
++	{
++		var prop;
++		// Enumerate through callback.customevents members and bind/subscribe
++		// events that match in the _customEvents table.
++		for(prop in callback.customevents){
++			if(this._customEvents[prop][0]){
++				// Create the custom event
++				o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
++
++				// Subscribe the custom event
++				o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
++			}
++		}
++	},
++
++  /**
++   * @description This method serves as a timer that polls the XHR object's readyState
++   * property during a transaction, instead of binding a callback to the
++   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
++   * will process the response, and the timer will be cleared.
++   * @method handleReadyState
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++
++    handleReadyState:function(o, callback)
++
++    {
++		var oConn = this,
++			args = (callback && callback.argument)?callback.argument:null;
++
++		if(callback && callback.timeout){
++			this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
++		}
++
++		this._poll[o.tId] = window.setInterval(
++			function(){
++				if(o.conn && o.conn.readyState === 4){
++
++					// Clear the polling interval for the transaction
++					// and remove the reference from _poll.
++					window.clearInterval(oConn._poll[o.tId]);
++					delete oConn._poll[o.tId];
++
++					if(callback && callback.timeout){
++						window.clearTimeout(oConn._timeOut[o.tId]);
++						delete oConn._timeOut[o.tId];
++					}
++
++					// Fire global custom event -- completeEvent
++					oConn.completeEvent.fire(o, args);
++
++					if(o.completeEvent){
++						// Fire transaction custom event -- completeEvent
++						o.completeEvent.fire(o, args);
++					}
++
++					oConn.handleTransactionResponse(o, callback);
++				}
++			}
++		,this._polling_interval);
++    },
++
++  /**
++   * @description This method attempts to interpret the server response and
++   * determine whether the transaction was successful, or if an error or
++   * exception was encountered.
++   * @method handleTransactionResponse
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {object} callback The user-defined callback object
++   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
++   * @return {void}
++   */
++    handleTransactionResponse:function(o, callback, isAbort)
++    {
++		var httpStatus, responseObject,
++			args = (callback && callback.argument)?callback.argument:null,
++			xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
++			xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
++			xdrA = isAbort;
++
++		try
++		{
++			if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
++				// XDR requests will not have HTTP status defined. The
++				// statusText property will define the response status
++				// set by the Flash transport.
++				httpStatus = o.conn.status;
++			}
++			else if(xdrF && !xdrA){
++				// Set XDR transaction failure to a status of 0, which
++				// resolves as an HTTP failure, instead of an exception.
++				httpStatus = 0;
++			}
++			else{
++				httpStatus = 13030;
++			}
++		}
++		catch(e){
++
++			 // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
++			 // when the XHR object's status and statusText properties are
++			 // unavailable, and a query attempt throws an exception.
++			httpStatus = 13030;
++		}
++
++		if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
++			responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
++			if(callback && callback.success){
++				if(!callback.scope){
++					callback.success(responseObject);
++				}
++				else{
++					// If a scope property is defined, the callback will be fired from
++					// the context of the object.
++					callback.success.apply(callback.scope, [responseObject]);
++				}
++			}
++
++			// Fire global custom event -- successEvent
++			this.successEvent.fire(responseObject);
++
++			if(o.successEvent){
++				// Fire transaction custom event -- successEvent
++				o.successEvent.fire(responseObject);
++			}
++		}
++		else{
++			switch(httpStatus){
++				// The following cases are wininet.dll error codes that may be encountered.
++				case 12002: // Server timeout
++				case 12029: // 12029 to 12031 correspond to dropped connections.
++				case 12030:
++				case 12031:
++				case 12152: // Connection closed by server.
++				case 13030: // See above comments for variable status.
++					// XDR transactions will not resolve to this case, since the
++					// response object is already built in the xdr response.
++					responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++						}
++					}
++
++					break;
++				default:
++					responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++						}
++					}
++			}
++
++			// Fire global custom event -- failureEvent
++			this.failureEvent.fire(responseObject);
++
++			if(o.failureEvent){
++				// Fire transaction custom event -- failureEvent
++				o.failureEvent.fire(responseObject);
++			}
++
++		}
++
++		this.releaseObject(o);
++		responseObject = null;
++    },
++
++  /**
++   * @description This method evaluates the server response, creates and returns the results via
++   * its properties.  Success and failure cases will differ in the response
++   * object's property values.
++   * @method createResponseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @return {object}
++   */
++    createResponseObject:function(o, callbackArg)
++    {
++		var obj = {}, headerObj = {},
++			i, headerStr, header, delimitPos;
++
++		try
++		{
++			headerStr = o.conn.getAllResponseHeaders();
++			header = headerStr.split('\n');
++			for(i=0; i<header.length; i++){
++				delimitPos = header[i].indexOf(':');
++				if(delimitPos != -1){
++					headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
++				}
++			}
++		}
++		catch(e){}
++
++		obj.tId = o.tId;
++		// Normalize IE's response to HTTP 204 when Win error 1223.
++		obj.status = (o.conn.status == 1223)?204:o.conn.status;
++		// Normalize IE's statusText to "No Content" instead of "Unknown".
++		obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
++		obj.getResponseHeader = headerObj;
++		obj.getAllResponseHeaders = headerStr;
++		obj.responseText = o.conn.responseText;
++		obj.responseXML = o.conn.responseXML;
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description If a transaction cannot be completed due to dropped or closed connections,
++   * there may be not be enough information to build a full response object.
++   * The failure callback will be fired and this specific condition can be identified
++   * by a status property value of 0.
++   *
++   * If an abort was successful, the status property will report a value of -1.
++   *
++   * @method createExceptionObject
++   * @private
++   * @static
++   * @param {int} tId The Transaction Id
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
++   * @return {object}
++   */
++    createExceptionObject:function(tId, callbackArg, isAbort)
++    {
++		var COMM_CODE = 0,
++			COMM_ERROR = 'communication failure',
++			ABORT_CODE = -1,
++			ABORT_ERROR = 'transaction aborted',
++			obj = {};
++
++		obj.tId = tId;
++		if(isAbort){
++			obj.status = ABORT_CODE;
++			obj.statusText = ABORT_ERROR;
++		}
++		else{
++			obj.status = COMM_CODE;
++			obj.statusText = COMM_ERROR;
++		}
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description Method that initializes the custom HTTP headers for the each transaction.
++   * @method initHeader
++   * @public
++   * @static
++   * @param {string} label The HTTP header label
++   * @param {string} value The HTTP header value
++   * @param {string} isDefault Determines if the specific header is a default header
++   * automatically sent with each transaction.
++   * @return {void}
++   */
++	initHeader:function(label, value, isDefault)
++	{
++		var headerObj = (isDefault)?this._default_headers:this._http_headers;
++
++		headerObj[label] = value;
++		if(isDefault){
++			this._has_default_headers = true;
++		}
++		else{
++			this._has_http_headers = true;
++		}
++	},
++
++
++  /**
++   * @description Accessor that sets the HTTP headers for each transaction.
++   * @method setHeader
++   * @private
++   * @static
++   * @param {object} o The connection object for the transaction.
++   * @return {void}
++   */
++	setHeader:function(o)
++	{
++		var prop;
++		if(this._has_default_headers){
++			for(prop in this._default_headers){
++				if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
++					o.conn.setRequestHeader(prop, this._default_headers[prop]);
++				}
++			}
++		}
++
++		if(this._has_http_headers){
++			for(prop in this._http_headers){
++				if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
++					o.conn.setRequestHeader(prop, this._http_headers[prop]);
++				}
++			}
++
++			this._http_headers = {};
++			this._has_http_headers = false;
++		}
++	},
++
++  /**
++   * @description Resets the default HTTP headers object
++   * @method resetDefaultHeaders
++   * @public
++   * @static
++   * @return {void}
++   */
++	resetDefaultHeaders:function(){
++		this._default_headers = {};
++		this._has_default_headers = false;
++	},
++
++  /**
++   * @description Method to terminate a transaction, if it has not reached readyState 4.
++   * @method abort
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest.
++   * @param {object} callback  User-defined callback object.
++   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
++   * @return {boolean}
++   */
++	abort:function(o, callback, isTimeout)
++	{
++		var abortStatus,
++			args = (callback && callback.argument)?callback.argument:null;
++			o = o || {};
++
++		if(o.conn){
++			if(o.xhr){
++				if(this.isCallInProgress(o)){
++					// Issue abort request
++					o.conn.abort();
++
++					window.clearInterval(this._poll[o.tId]);
++					delete this._poll[o.tId];
++
++					if(isTimeout){
++						window.clearTimeout(this._timeOut[o.tId]);
++						delete this._timeOut[o.tId];
++					}
++
++					abortStatus = true;
++				}
++			}
++			else if(o.xdr){
++				o.conn.abort(o.tId);
++				abortStatus = true;
++			}
++		}
++		else if(o.upload){
++			var frameId = 'yuiIO' + o.tId;
++			var io = document.getElementById(frameId);
++
++			if(io){
++				// Remove all listeners on the iframe prior to
++				// its destruction.
++				YAHOO.util.Event.removeListener(io, "load");
++				// Destroy the iframe facilitating the transaction.
++				document.body.removeChild(io);
++
++				if(isTimeout){
++					window.clearTimeout(this._timeOut[o.tId]);
++					delete this._timeOut[o.tId];
++				}
++
++				abortStatus = true;
++			}
++		}
++		else{
++			abortStatus = false;
++		}
++
++		if(abortStatus === true){
++			// Fire global custom event -- abortEvent
++			this.abortEvent.fire(o, args);
++
++			if(o.abortEvent){
++				// Fire transaction custom event -- abortEvent
++				o.abortEvent.fire(o, args);
++			}
++
++			this.handleTransactionResponse(o, callback, true);
++		}
++
++		return abortStatus;
++	},
++
++  /**
++   * @description Determines if the transaction is still being processed.
++   * @method isCallInProgress
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest
++   * @return {boolean}
++   */
++	isCallInProgress:function(o)
++	{
++		o = o || {};
++		// if the XHR object assigned to the transaction has not been dereferenced,
++		// then check its readyState status.  Otherwise, return false.
++		if(o.xhr && o.conn){
++			return o.conn.readyState !== 4 && o.conn.readyState !== 0;
++		}
++		else if(o.xdr && o.conn){
++			return o.conn.isCallInProgress(o.tId);
++		}
++		else if(o.upload === true){
++			return document.getElementById('yuiIO' + o.tId)?true:false;
++		}
++		else{
++			return false;
++		}
++	},
++
++  /**
++   * @description Dereference the XHR instance and the connection object after the transaction is completed.
++   * @method releaseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @return {void}
++   */
++	releaseObject:function(o)
++	{
++		if(o && o.conn){
++			//dereference the XHR instance.
++			o.conn = null;
++
++
++			//dereference the connection object.
++			o = null;
++		}
++	}
++};
++
++/**
++  * @for Connect
++  */
++(function() {
++	var YCM = YAHOO.util.Connect, _fn = {};
++
++   /**
++    * @description This method creates and instantiates the Flash transport.
++    * @method _swf
++    * @private
++    * @static
++    * @param {string} URI to connection.swf.
++    * @return {void}
++    */
++	function _swf(uri) {
++		var o = '<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="' +
++		        uri + '" width="0" height="0">' +
++		     	'<param name="movie" value="' + uri + '">' +
++                '<param name="allowScriptAccess" value="always">' +
++		    	'</object>',
++		    c = document.createElement('div');
++
++		document.body.appendChild(c);
++		c.innerHTML = o;
++	}
++
++   /**
++    * @description This method calls the public method on the
++    * Flash transport to start the XDR transaction.  It is analogous
++    * to Connection Manager's asyncRequest method.
++    * @method xdr
++    * @private
++    * @static
++    * @param {object} The transaction object.
++    * @param {string} HTTP request method.
++    * @param {string} URI for the transaction.
++    * @param {object} The transaction's callback object.
++    * @param {object} The JSON object used as HTTP POST data.
++    * @return {void}
++    */
++	function _xdr(o, m, u, c, d) {
++		_fn[parseInt(o.tId)] = { 'o':o, 'c':c };
++		if (d) {
++			c.method = m;
++			c.data = d;
++		}
++
++		o.conn.send(u, c, o.tId);
++	}
++
++   /**
++    * @description This method instantiates the Flash transport and
++    * establishes a static reference to it, used for all XDR requests.
++    * @method transport
++    * @public
++    * @static
++    * @param {string} URI to connection.swf.
++    * @return {void}
++    */
++	function _init(uri) {
++		_swf(uri);
++		YCM._transport = document.getElementById('YUIConnectionSwf');
++	}
++
++	function _xdrReady() {
++		YCM.xdrReadyEvent.fire();
++	}
++
++   /**
++    * @description This method fires the global and transaction start
++    * events.
++    * @method _xdrStart
++    * @private
++    * @static
++    * @param {object} The transaction object.
++    * @param {string} The transaction's callback object.
++    * @return {void}
++    */
++	function _xdrStart(o, cb) {
++		if (o) {
++			// Fire global custom event -- startEvent
++			YCM.startEvent.fire(o, cb.argument);
++
++			if(o.startEvent){
++				// Fire transaction custom event -- startEvent
++				o.startEvent.fire(o, cb.argument);
++			}
++		}
++	}
++
++   /**
++    * @description This method is the initial response handler
++    * for XDR transactions.  The Flash transport calls this
++    * function and sends the response payload.
++    * @method handleXdrResponse
++    * @private
++    * @static
++    * @param {object} The response object sent from the Flash transport.
++    * @return {void}
++    */
++	function _handleXdrResponse(r) {
++		var o = _fn[r.tId].o,
++			cb = _fn[r.tId].c;
++
++		if (r.statusText === 'xdr:start') {
++			_xdrStart(o, cb);
++			return;
++		}
++
++		r.responseText = decodeURI(r.responseText);
++		o.r = r;
++		if (cb.argument) {
++			o.r.argument = cb.argument;
++		}
++
++		this.handleTransactionResponse(o, cb, r.statusText === 'xdr:abort' ? true : false);
++		delete _fn[r.tId];
++	}
++
++	// Bind the functions to Connection Manager as static fields.
++	YCM.xdr = _xdr;
++	YCM.swf = _swf;
++	YCM.transport = _init;
++	YCM.xdrReadyEvent = new YAHOO.util.CustomEvent('xdrReady');
++	YCM.xdrReady = _xdrReady;
++	YCM.handleXdrResponse = _handleXdrResponse;
++})();
++
++/**
++  * @for Connect
++  */
++(function(){
++	var YCM = YAHOO.util.Connect,
++		YE = YAHOO.util.Event;
++   /**
++	* @description Property modified by setForm() to determine if the data
++	* should be submitted as an HTML form.
++	* @property _isFormSubmit
++	* @private
++	* @static
++	* @type boolean
++	*/
++	YCM._isFormSubmit = false;
++
++   /**
++	* @description Property modified by setForm() to determine if a file(s)
++	* upload is expected.
++	* @property _isFileUpload
++	* @private
++	* @static
++	* @type boolean
++	*/
++	YCM._isFileUpload = false;
++
++   /**
++	* @description Property modified by setForm() to set a reference to the HTML
++	* form node if the desired action is file upload.
++	* @property _formNode
++	* @private
++	* @static
++	* @type object
++	*/
++	YCM._formNode = null;
++
++   /**
++	* @description Property modified by setForm() to set the HTML form data
++	* for each transaction.
++	* @property _sFormData
++	* @private
++	* @static
++	* @type string
++	*/
++	YCM._sFormData = null;
++
++   /**
++	* @description Tracks the name-value pair of the "clicked" submit button if multiple submit
++	* buttons are present in an HTML form; and, if YAHOO.util.Event is available.
++	* @property _submitElementValue
++	* @private
++	* @static
++	* @type string
++	*/
++	YCM._submitElementValue = null;
++
++   /**
++    * @description Custom event that fires when handleTransactionResponse() determines a
++    * response in the HTTP 4xx/5xx range.
++    * @property failureEvent
++    * @private
++    * @static
++    * @type CustomEvent
++    */
++	YCM.uploadEvent = new YAHOO.util.CustomEvent('upload'),
++
++   /**
++	* @description Determines whether YAHOO.util.Event is available and returns true or false.
++	* If true, an event listener is bound at the document level to trap click events that
++	* resolve to a target type of "Submit".  This listener will enable setForm() to determine
++	* the clicked "Submit" value in a multi-Submit button, HTML form.
++	* @property _hasSubmitListener
++	* @private
++	* @static
++	*/
++	YCM._hasSubmitListener = function() {
++		if(YE){
++			YE.addListener(
++				document,
++				'click',
++				function(e){
++					var obj = YE.getTarget(e),
++						name = obj.nodeName.toLowerCase();
++
++					if((name === 'input' || name === 'button') && (obj.type && obj.type.toLowerCase() == 'submit')){
++						YCM._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
++					}
++				});
++			return true;
++		}
++		return false;
++	}();
++
++  /**
++   * @description This method assembles the form label and value pairs and
++   * constructs an encoded string.
++   * asyncRequest() will automatically initialize the transaction with a
++   * a HTTP header Content-Type of application/x-www-form-urlencoded.
++   * @method setForm
++   * @public
++   * @static
++   * @param {string || object} form id or name attribute, or form object.
++   * @param {boolean} optional enable file upload.
++   * @param {boolean} optional enable file upload over SSL in IE only.
++   * @return {string} string of the HTML form field name and value pairs..
++   */
++	function _setForm(formId, isUpload, secureUri)
++	{
++		var oForm, oElement, oName, oValue, oDisabled,
++			hasSubmit = false,
++			data = [], item = 0,
++			i,len,j,jlen,opt;
++
++		this.resetFormState();
++
++		if(typeof formId == 'string'){
++			// Determine if the argument is a form id or a form name.
++			// Note form name usage is deprecated by supported
++			// here for legacy reasons.
++			oForm = (document.getElementById(formId) || document.forms[formId]);
++		}
++		else if(typeof formId == 'object'){
++			// Treat argument as an HTML form object.
++			oForm = formId;
++		}
++		else{
++			return;
++		}
++
++		// If the isUpload argument is true, setForm will call createFrame to initialize
++		// an iframe as the form target.
++		//
++		// The argument secureURI is also required by IE in SSL environments
++		// where the secureURI string is a fully qualified HTTP path, used to set the source
++		// of the iframe, to a stub resource in the same domain.
++		if(isUpload){
++
++			// Create iframe in preparation for file upload.
++			this.createFrame(secureUri?secureUri:null);
++
++			// Set form reference and file upload properties to true.
++			this._isFormSubmit = true;
++			this._isFileUpload = true;
++			this._formNode = oForm;
++
++			return;
++		}
++
++		// Iterate over the form elements collection to construct the
++		// label-value pairs.
++		for (i=0,len=oForm.elements.length; i<len; ++i){
++			oElement  = oForm.elements[i];
++			oDisabled = oElement.disabled;
++			oName     = oElement.name;
++
++			// Do not submit fields that are disabled or
++			// do not have a name attribute value.
++			if(!oDisabled && oName)
++			{
++				oName  = encodeURIComponent(oName)+'=';
++				oValue = encodeURIComponent(oElement.value);
++
++				switch(oElement.type)
++				{
++					// Safari, Opera, FF all default opt.value from .text if
++					// value attribute not specified in markup
++					case 'select-one':
++						if (oElement.selectedIndex > -1) {
++							opt = oElement.options[oElement.selectedIndex];
++							data[item++] = oName + encodeURIComponent(
++								(opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
++						}
++						break;
++					case 'select-multiple':
++						if (oElement.selectedIndex > -1) {
++							for(j=oElement.selectedIndex, jlen=oElement.options.length; j<jlen; ++j){
++								opt = oElement.options[j];
++								if (opt.selected) {
++									data[item++] = oName + encodeURIComponent(
++										(opt.attributes.value && opt.attributes.value.specified) ? opt.value : opt.text);
++								}
++							}
++						}
++						break;
++					case 'radio':
++					case 'checkbox':
++						if(oElement.checked){
++							data[item++] = oName + oValue;
++						}
++						break;
++					case 'file':
++						// stub case as XMLHttpRequest will only send the file path as a string.
++					case undefined:
++						// stub case for fieldset element which returns undefined.
++					case 'reset':
++						// stub case for input type reset button.
++					case 'button':
++						// stub case for input type button elements.
++						break;
++					case 'submit':
++						if(hasSubmit === false){
++							if(this._hasSubmitListener && this._submitElementValue){
++								data[item++] = this._submitElementValue;
++							}
++							hasSubmit = true;
++						}
++						break;
++					default:
++						data[item++] = oName + oValue;
++				}
++			}
++		}
++
++		this._isFormSubmit = true;
++		this._sFormData = data.join('&');
++
++
++		this.initHeader('Content-Type', this._default_form_header);
++
++		return this._sFormData;
++	}
++
++   /**
++    * @description Resets HTML form properties when an HTML form or HTML form
++    * with file upload transaction is sent.
++    * @method resetFormState
++    * @private
++    * @static
++    * @return {void}
++    */
++	function _resetFormState(){
++		this._isFormSubmit = false;
++		this._isFileUpload = false;
++		this._formNode = null;
++		this._sFormData = "";
++	}
++
++
++   /**
++    * @description Creates an iframe to be used for form file uploads.  It is remove from the
++    * document upon completion of the upload transaction.
++    * @method createFrame
++    * @private
++    * @static
++    * @param {string} optional qualified path of iframe resource for SSL in IE.
++    * @return {void}
++    */
++	function _createFrame(secureUri){
++
++		// IE does not allow the setting of id and name attributes as object
++		// properties via createElement().  A different iframe creation
++		// pattern is required for IE.
++		var frameId = 'yuiIO' + this._transaction_id,
++			io;
++		if(YAHOO.env.ua.ie){
++			io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
++
++			// IE will throw a security exception in an SSL environment if the
++			// iframe source is undefined.
++			if(typeof secureUri == 'boolean'){
++				io.src = 'javascript:false';
++			}
++		}
++		else{
++			io = document.createElement('iframe');
++			io.id = frameId;
++			io.name = frameId;
++		}
++
++		io.style.position = 'absolute';
++		io.style.top = '-1000px';
++		io.style.left = '-1000px';
++
++		document.body.appendChild(io);
++	}
++
++   /**
++    * @description Parses the POST data and creates hidden form elements
++    * for each key-value, and appends them to the HTML form object.
++    * @method appendPostData
++    * @private
++    * @static
++    * @param {string} postData The HTTP POST data
++    * @return {array} formElements Collection of hidden fields.
++    */
++	function _appendPostData(postData){
++		var formElements = [],
++			postMessage = postData.split('&'),
++			i, delimitPos;
++
++		for(i=0; i < postMessage.length; i++){
++			delimitPos = postMessage[i].indexOf('=');
++			if(delimitPos != -1){
++				formElements[i] = document.createElement('input');
++				formElements[i].type = 'hidden';
++				formElements[i].name = decodeURIComponent(postMessage[i].substring(0,delimitPos));
++				formElements[i].value = decodeURIComponent(postMessage[i].substring(delimitPos+1));
++				this._formNode.appendChild(formElements[i]);
++			}
++		}
++
++		return formElements;
++	}
++
++   /**
++    * @description Uploads HTML form, inclusive of files/attachments, using the
++    * iframe created in createFrame to facilitate the transaction.
++    * @method uploadFile
++    * @private
++    * @static
++    * @param {int} id The transaction id.
++    * @param {object} callback User-defined callback object.
++    * @param {string} uri Fully qualified path of resource.
++    * @param {string} postData POST data to be submitted in addition to HTML form.
++    * @return {void}
++    */
++	function _uploadFile(o, callback, uri, postData){
++		// Each iframe has an id prefix of "yuiIO" followed
++		// by the unique transaction id.
++		var frameId = 'yuiIO' + o.tId,
++		    uploadEncoding = 'multipart/form-data',
++		    io = document.getElementById(frameId),
++		    ie8 = (document.documentMode && document.documentMode === 8) ? true : false,
++		    oConn = this,
++			args = (callback && callback.argument)?callback.argument:null,
++            oElements,i,prop,obj, rawFormAttributes, uploadCallback;
++
++		// Track original HTML form attribute values.
++		rawFormAttributes = {
++			action:this._formNode.getAttribute('action'),
++			method:this._formNode.getAttribute('method'),
++			target:this._formNode.getAttribute('target')
++		};
++
++		// Initialize the HTML form properties in case they are
++		// not defined in the HTML form.
++		this._formNode.setAttribute('action', uri);
++		this._formNode.setAttribute('method', 'POST');
++		this._formNode.setAttribute('target', frameId);
++
++		if(YAHOO.env.ua.ie && !ie8){
++			// IE does not respect property enctype for HTML forms.
++			// Instead it uses the property - "encoding".
++			this._formNode.setAttribute('encoding', uploadEncoding);
++		}
++		else{
++			this._formNode.setAttribute('enctype', uploadEncoding);
++		}
++
++		if(postData){
++			oElements = this.appendPostData(postData);
++		}
++
++		// Start file upload.
++		this._formNode.submit();
++
++		// Fire global custom event -- startEvent
++		this.startEvent.fire(o, args);
++
++		if(o.startEvent){
++			// Fire transaction custom event -- startEvent
++			o.startEvent.fire(o, args);
++		}
++
++		// Start polling if a callback is present and the timeout
++		// property has been defined.
++		if(callback && callback.timeout){
++			this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
++		}
++
++		// Remove HTML elements created by appendPostData
++		if(oElements && oElements.length > 0){
++			for(i=0; i < oElements.length; i++){
++				this._formNode.removeChild(oElements[i]);
++			}
++		}
++
++		// Restore HTML form attributes to their original
++		// values prior to file upload.
++		for(prop in rawFormAttributes){
++			if(YAHOO.lang.hasOwnProperty(rawFormAttributes, prop)){
++				if(rawFormAttributes[prop]){
++					this._formNode.setAttribute(prop, rawFormAttributes[prop]);
++				}
++				else{
++					this._formNode.removeAttribute(prop);
++				}
++			}
++		}
++
++		// Reset HTML form state properties.
++		this.resetFormState();
++
++		// Create the upload callback handler that fires when the iframe
++		// receives the load event.  Subsequently, the event handler is detached
++		// and the iframe removed from the document.
++		uploadCallback = function() {
++			if(callback && callback.timeout){
++				window.clearTimeout(oConn._timeOut[o.tId]);
++				delete oConn._timeOut[o.tId];
++			}
++
++			// Fire global custom event -- completeEvent
++			oConn.completeEvent.fire(o, args);
++
++			if(o.completeEvent){
++				// Fire transaction custom event -- completeEvent
++				o.completeEvent.fire(o, args);
++			}
++
++			obj = {
++			    tId : o.tId,
++			    argument : callback.argument
++            };
++
++			try
++			{
++				// responseText and responseXML will be populated with the same data from the iframe.
++				// Since the HTTP headers cannot be read from the iframe
++				obj.responseText = io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:io.contentWindow.document.documentElement.textContent;
++				obj.responseXML = io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;
++			}
++			catch(e){}
++
++			if(callback && callback.upload){
++				if(!callback.scope){
++					callback.upload(obj);
++				}
++				else{
++					callback.upload.apply(callback.scope, [obj]);
++				}
++			}
++
++			// Fire global custom event -- uploadEvent
++			oConn.uploadEvent.fire(obj);
++
++			if(o.uploadEvent){
++				// Fire transaction custom event -- uploadEvent
++				o.uploadEvent.fire(obj);
++			}
++
++			YE.removeListener(io, "load", uploadCallback);
++
++			setTimeout(
++				function(){
++					document.body.removeChild(io);
++					oConn.releaseObject(o);
++				}, 100);
++		};
++
++		// Bind the onload handler to the iframe to detect the file upload response.
++		YE.addListener(io, "load", uploadCallback);
++	}
++
++	YCM.setForm = _setForm;
++	YCM.resetFormState = _resetFormState;
++	YCM.createFrame = _createFrame;
++	YCM.appendPostData = _appendPostData;
++	YCM.uploadFile = _uploadFile;
++})();
++
++YAHOO.register("connection", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/connection/connection.swf b/pylons_app/public/js/yui/connection/connection.swf
+new file mode 100644
+index 0000000000000000000000000000000000000000..c33a7fe2748316e549cc345836942ce4d4331df1
+GIT binary patch
+literal 2423
+zc$@)u35fPXS5pbe4*&po+KpG;QybS6zh`%)yDJG00?Sx@L}10(L`VWBw!s*K`G_H4
+zIeavZi_ET8E2LPg$nJ`dX=Xx`rb#>POxj5^)0w8tQ#;e?TOaz^KcFuL&$ONCOQ%nL
+z<94R+^xR$90vgxVz}<7t$M2kb&beo$T_XL1kmg?#(g9?;^#UQ}!?r&GA!AmdIJz`F
+z8{gfmnD!{{ZuOTOXKOT_-r3nn?OaV&t&Q~1$jC@KGn^hC9z=~nd(U*V-9gj7*gx(9
+zOdGatmA9O7)r|AKmao>FTmAiY)PnvTbgO1nT*!i+HY&!ZVLEntC^dvY1%0$wwKg?p
+zT-(~Jly!~6rFRGIQdNJvqiq|5#foN^#?lQ%ZsU}liZMP}sOF9MY{l4(UyV;T>|Je7
+zg)0{tfsUUzrpB#PdUZ3sWmO9`9b+mYlxuv_ghOoA@|Ch(GOY2M`Pi)PcrF@TuA^Iq
+z=2TB>JmYbBMKd>Q+J-ScbI+AM-@7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!k|k>MstdO`N`W7{LUy?4e4F!)ga-
+zy^T@IqM!ucMwDfaGD4QwiW)g64ivA}VO|&5>NAc9hMadi&KnWDE9^miQwK)zLj+bN
+z4DT8OuX(_0NALi0$#+@qAo(!)?Nwo4{4-m3O%sB4jj3vndj2pQ7np|D0l!}fe1O(E
+zx4utwgaBN|1YG9D0)j~fE99;p6mJy!XRpI2x`f!pL&ScRTxX@cv?}h4*y@kf$RWCr
+z(8cD{?SY7okSkA%Bij*dHD*4|juQ4hca05#zO7vQVYVHZjWGlzjNu1>LDcZpp#vUB
+zjR#WWfz)^)+dPmR^t{78=lQA7=U&6-cd!J%kKkZqALM<FaJ8H4!&A}lZrleqoR6Uq
+z&-b7n&?mg5LOiE72J|U-N&OUfRzCv_;4|QP)xEs_5b7n%juG~w`sNMv7es&cUGdg-
+z1cx8{@iTFDoUqT~c^Q6!t`E5DpK{kt0`|!uy8fc>`U_w`^DHAcJ=vFalxqp;cVFIR
+zKZkxCCe7UFA{u>FH~I?LFCo`;knIBYD{k@Lz!mm2$8QmEY`*p+gUVrpsA5LFolz$;
+p>SRW}lTkzX_keV}pHdKYxJg$Ve_5RTHk>-~yKDkw{{aPr(-^X}v;hDB
+
+diff --git a/pylons_app/public/js/yui/connection/connection_core-debug.js b/pylons_app/public/js/yui/connection/connection_core-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/connection/connection_core-debug.js
+@@ -0,0 +1,980 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Connection Manager provides a simplified interface to the XMLHttpRequest
++ * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
++ * interactive states and server response, returning the results to a pre-defined
++ * callback you create.
++ *
++ * @namespace YAHOO.util
++ * @module connection
++ * @requires yahoo
++ * @requires event
++ */
++
++/**
++ * The Connection Manager singleton provides methods for creating and managing
++ * asynchronous transactions.
++ *
++ * @class Connect
++ */
++
++YAHOO.util.Connect =
++{
++  /**
++   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
++   * @property _msxml_progid
++   * @private
++   * @static
++   * @type array
++   */
++	_msxml_progid:[
++		'Microsoft.XMLHTTP',
++		'MSXML2.XMLHTTP.3.0',
++		'MSXML2.XMLHTTP'
++		],
++
++  /**
++   * @description Object literal of HTTP header(s)
++   * @property _http_header
++   * @private
++   * @static
++   * @type object
++   */
++	_http_headers:{},
++
++  /**
++   * @description Determines if HTTP headers are set.
++   * @property _has_http_headers
++   * @private
++   * @static
++   * @type boolean
++   */
++	_has_http_headers:false,
++
++ /**
++  * @description Determines if a default header of
++  * Content-Type of 'application/x-www-form-urlencoded'
++  * will be added to any client HTTP headers sent for POST
++  * transactions.
++  * @property _use_default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_post_header:true,
++
++ /**
++  * @description The default header used for POST transactions.
++  * @property _default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
++
++ /**
++  * @description The default header used for transactions involving the
++  * use of HTML forms.
++  * @property _default_form_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_form_header:'application/x-www-form-urlencoded',
++
++ /**
++  * @description Determines if a default header of
++  * 'X-Requested-With: XMLHttpRequest'
++  * will be added to each transaction.
++  * @property _use_default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_xhr_header:true,
++
++ /**
++  * @description The default header value for the label
++  * "X-Requested-With".  This is sent with each
++  * transaction, by default, to identify the
++  * request as being made by YUI Connection Manager.
++  * @property _default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_xhr_header:'XMLHttpRequest',
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _has_default_headers:true,
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_headers:{},
++
++ /**
++  * @description Collection of polling references to the polling mechanism in handleReadyState.
++  * @property _poll
++  * @private
++  * @static
++  * @type object
++  */
++    _poll:{},
++
++ /**
++  * @description Queue of timeout values for each transaction callback with a defined timeout value.
++  * @property _timeOut
++  * @private
++  * @static
++  * @type object
++  */
++    _timeOut:{},
++
++  /**
++   * @description The polling frequency, in milliseconds, for HandleReadyState.
++   * when attempting to determine a transaction's XHR readyState.
++   * The default is 50 milliseconds.
++   * @property _polling_interval
++   * @private
++   * @static
++   * @type int
++   */
++     _polling_interval:50,
++
++  /**
++   * @description A transaction counter that increments the transaction id for each transaction.
++   * @property _transaction_id
++   * @private
++   * @static
++   * @type int
++   */
++     _transaction_id:0,
++
++  /**
++   * @description Custom event that fires at the start of a transaction
++   * @property startEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	startEvent: new YAHOO.util.CustomEvent('start'),
++
++  /**
++   * @description Custom event that fires when a transaction response has completed.
++   * @property completeEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	completeEvent: new YAHOO.util.CustomEvent('complete'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 2xx range.
++   * @property successEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	successEvent: new YAHOO.util.CustomEvent('success'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 4xx/5xx range.
++   * @property failureEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	failureEvent: new YAHOO.util.CustomEvent('failure'),
++
++  /**
++   * @description Custom event that fires when a transaction is successfully aborted.
++   * @property abortEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	abortEvent: new YAHOO.util.CustomEvent('abort'),
++
++  /**
++   * @description A reference table that maps callback custom events members to its specific
++   * event name.
++   * @property _customEvents
++   * @private
++   * @static
++   * @type object
++   */
++	_customEvents:
++	{
++		onStart:['startEvent', 'start'],
++		onComplete:['completeEvent', 'complete'],
++		onSuccess:['successEvent', 'success'],
++		onFailure:['failureEvent', 'failure'],
++		onUpload:['uploadEvent', 'upload'],
++		onAbort:['abortEvent', 'abort']
++	},
++
++  /**
++   * @description Member to add an ActiveX id to the existing xml_progid array.
++   * In the event(unlikely) a new ActiveX id is introduced, it can be added
++   * without internal code modifications.
++   * @method setProgId
++   * @public
++   * @static
++   * @param {string} id The ActiveX id to be added to initialize the XHR object.
++   * @return void
++   */
++	setProgId:function(id)
++	{
++		this._msxml_progid.unshift(id);
++		YAHOO.log('ActiveX Program Id  ' + id + ' added to _msxml_progid.', 'info', 'Connection');
++	},
++
++  /**
++   * @description Member to override the default POST header.
++   * @method setDefaultPostHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultPostHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_post_header = b;
++			YAHOO.log('Default POST header set to  ' + b, 'info', 'Connection');
++		}
++		else if(typeof b == 'boolean'){
++			this._use_default_post_header = b;
++		}
++	},
++
++  /**
++   * @description Member to override the default transaction header..
++   * @method setDefaultXhrHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultXhrHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_xhr_header = b;
++			YAHOO.log('Default XHR header set to  ' + b, 'info', 'Connection');
++		}
++		else{
++			this._use_default_xhr_header = b;
++		}
++	},
++
++  /**
++   * @description Member to modify the default polling interval.
++   * @method setPollingInterval
++   * @public
++   * @static
++   * @param {int} i The polling interval in milliseconds.
++   * @return void
++   */
++	setPollingInterval:function(i)
++	{
++		if(typeof i == 'number' && isFinite(i)){
++			this._polling_interval = i;
++			YAHOO.log('Default polling interval set to ' + i +'ms', 'info', 'Connection');
++		}
++	},
++
++  /**
++   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
++   * the XMLHttpRequest instance and the transaction id.
++   * @method createXhrObject
++   * @private
++   * @static
++   * @param {int} transactionId Property containing the transaction id for this transaction.
++   * @return object
++   */
++	createXhrObject:function(transactionId)
++	{
++		var obj,http,i;
++		try
++		{
++			// Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
++			http = new XMLHttpRequest();
++			//  Object literal with http and tId properties
++			obj = { conn:http, tId:transactionId, xhr: true };
++			YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
++		}
++		catch(e)
++		{
++			for(i=0; i<this._msxml_progid.length; ++i){
++				try
++				{
++					// Instantiates XMLHttpRequest for IE and assign to http
++					http = new ActiveXObject(this._msxml_progid[i]);
++					//  Object literal with conn and tId properties
++					obj = { conn:http, tId:transactionId, xhr: true };
++					YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection');
++					break;
++				}
++				catch(e1){}
++			}
++		}
++		finally
++		{
++			return obj;
++		}
++	},
++
++  /**
++   * @description This method is called by asyncRequest to create a
++   * valid connection object for the transaction.  It also passes a
++   * transaction id and increments the transaction id counter.
++   * @method getConnectionObject
++   * @private
++   * @static
++   * @return {object}
++   */
++	getConnectionObject:function(t)
++	{
++		var o, tId = this._transaction_id;
++
++		try
++		{
++			if(!t){
++				o = this.createXhrObject(tId);
++			}
++			else{
++				o = {tId:tId};
++				if(t==='xdr'){
++					o.conn = this._transport;
++					o.xdr = true;
++				}
++				else if(t==='upload'){
++					o.upload = true;
++				}
++			}
++
++			if(o){
++				this._transaction_id++;
++			}
++		}
++		catch(e){}
++		return o;
++	},
++
++  /**
++   * @description Method for initiating an asynchronous request via the XHR object.
++   * @method asyncRequest
++   * @public
++   * @static
++   * @param {string} method HTTP transaction method
++   * @param {string} uri Fully qualified path of resource
++   * @param {callback} callback User-defined callback function or object
++   * @param {string} postData POST body
++   * @return {object} Returns the connection object
++   */
++	asyncRequest:function(method, uri, callback, postData)
++	{
++		var o,t,args = (callback && callback.argument)?callback.argument:null;
++
++		if(this._isFileUpload){
++			t = 'upload';
++		}
++		else if(callback.xdr){
++			t = 'xdr';
++		}
++
++		o = this.getConnectionObject(t);
++		if(!o){
++			YAHOO.log('Unable to create connection object.', 'error', 'Connection');
++			return null;
++		}
++		else{
++
++			// Intialize any transaction-specific custom events, if provided.
++			if(callback && callback.customevents){
++				this.initCustomEvents(o, callback);
++			}
++
++			if(this._isFormSubmit){
++				if(this._isFileUpload){
++					this.uploadFile(o, callback, uri, postData);
++					return o;
++				}
++
++				// If the specified HTTP method is GET, setForm() will return an
++				// encoded string that is concatenated to the uri to
++				// create a querystring.
++				if(method.toUpperCase() == 'GET'){
++					if(this._sFormData.length !== 0){
++						// If the URI already contains a querystring, append an ampersand
++						// and then concatenate _sFormData to the URI.
++						uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
++					}
++				}
++				else if(method.toUpperCase() == 'POST'){
++					// If POST data exist in addition to the HTML form data,
++					// it will be concatenated to the form data.
++					postData = postData?this._sFormData + "&" + postData:this._sFormData;
++				}
++			}
++
++			if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
++				// If callback.cache is defined and set to false, a
++				// timestamp value will be added to the querystring.
++				uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
++			}
++
++			// Each transaction will automatically include a custom header of
++			// "X-Requested-With: XMLHttpRequest" to identify the request as
++			// having originated from Connection Manager.
++			if(this._use_default_xhr_header){
++				if(!this._default_headers['X-Requested-With']){
++					this.initHeader('X-Requested-With', this._default_xhr_header, true);
++					YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.', 'info', 'Connection');
++				}
++			}
++
++			//If the transaction method is POST and the POST header value is set to true
++			//or a custom value, initalize the Content-Type header to this value.
++			if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
++				this.initHeader('Content-Type', this._default_post_header);
++				YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.', 'info', 'Connection');
++			}
++
++			if(o.xdr){
++				this.xdr(o, method, uri, callback, postData);
++				return o;
++			}
++
++			o.conn.open(method, uri, true);
++			//Initialize all default and custom HTTP headers,
++			if(this._has_default_headers || this._has_http_headers){
++				this.setHeader(o);
++			}
++
++			this.handleReadyState(o, callback);
++			o.conn.send(postData || '');
++			YAHOO.log('Transaction ' + o.tId + ' sent.', 'info', 'Connection');
++
++			// Reset the HTML form data and state properties as
++			// soon as the data are submitted.
++			if(this._isFormSubmit === true){
++				this.resetFormState();
++			}
++
++			// Fire global custom event -- startEvent
++			this.startEvent.fire(o, args);
++
++			if(o.startEvent){
++				// Fire transaction custom event -- startEvent
++				o.startEvent.fire(o, args);
++			}
++
++			return o;
++		}
++	},
++
++  /**
++   * @description This method creates and subscribes custom events,
++   * specific to each transaction
++   * @method initCustomEvents
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++	initCustomEvents:function(o, callback)
++	{
++		var prop;
++		// Enumerate through callback.customevents members and bind/subscribe
++		// events that match in the _customEvents table.
++		for(prop in callback.customevents){
++			if(this._customEvents[prop][0]){
++				// Create the custom event
++				o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
++				YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' created.', 'info', 'Connection');
++
++				// Subscribe the custom event
++				o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
++				YAHOO.log('Transaction-specific Custom Event ' + o[this._customEvents[prop][1]] + ' subscribed.', 'info', 'Connection');
++			}
++		}
++	},
++
++  /**
++   * @description This method serves as a timer that polls the XHR object's readyState
++   * property during a transaction, instead of binding a callback to the
++   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
++   * will process the response, and the timer will be cleared.
++   * @method handleReadyState
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++
++    handleReadyState:function(o, callback)
++
++    {
++		var oConn = this,
++			args = (callback && callback.argument)?callback.argument:null;
++
++		if(callback && callback.timeout){
++			this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
++		}
++
++		this._poll[o.tId] = window.setInterval(
++			function(){
++				if(o.conn && o.conn.readyState === 4){
++
++					// Clear the polling interval for the transaction
++					// and remove the reference from _poll.
++					window.clearInterval(oConn._poll[o.tId]);
++					delete oConn._poll[o.tId];
++
++					if(callback && callback.timeout){
++						window.clearTimeout(oConn._timeOut[o.tId]);
++						delete oConn._timeOut[o.tId];
++					}
++
++					// Fire global custom event -- completeEvent
++					oConn.completeEvent.fire(o, args);
++
++					if(o.completeEvent){
++						// Fire transaction custom event -- completeEvent
++						o.completeEvent.fire(o, args);
++					}
++
++					oConn.handleTransactionResponse(o, callback);
++				}
++			}
++		,this._polling_interval);
++    },
++
++  /**
++   * @description This method attempts to interpret the server response and
++   * determine whether the transaction was successful, or if an error or
++   * exception was encountered.
++   * @method handleTransactionResponse
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {object} callback The user-defined callback object
++   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
++   * @return {void}
++   */
++    handleTransactionResponse:function(o, callback, isAbort)
++    {
++		var httpStatus, responseObject,
++			args = (callback && callback.argument)?callback.argument:null,
++			xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
++			xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
++			xdrA = isAbort;
++
++		try
++		{
++			if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
++				// XDR requests will not have HTTP status defined. The
++				// statusText property will define the response status
++				// set by the Flash transport.
++				httpStatus = o.conn.status;
++			}
++			else if(xdrF && !xdrA){
++				// Set XDR transaction failure to a status of 0, which
++				// resolves as an HTTP failure, instead of an exception.
++				httpStatus = 0;
++			}
++			else{
++				httpStatus = 13030;
++			}
++		}
++		catch(e){
++
++			 // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
++			 // when the XHR object's status and statusText properties are
++			 // unavailable, and a query attempt throws an exception.
++			httpStatus = 13030;
++		}
++
++		if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
++			responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
++			if(callback && callback.success){
++				if(!callback.scope){
++					callback.success(responseObject);
++					YAHOO.log('Success callback. HTTP code is ' + httpStatus, 'info', 'Connection');
++				}
++				else{
++					// If a scope property is defined, the callback will be fired from
++					// the context of the object.
++					callback.success.apply(callback.scope, [responseObject]);
++					YAHOO.log('Success callback with scope. HTTP code is ' + httpStatus, 'info', 'Connection');
++				}
++			}
++
++			// Fire global custom event -- successEvent
++			this.successEvent.fire(responseObject);
++
++			if(o.successEvent){
++				// Fire transaction custom event -- successEvent
++				o.successEvent.fire(responseObject);
++			}
++		}
++		else{
++			switch(httpStatus){
++				// The following cases are wininet.dll error codes that may be encountered.
++				case 12002: // Server timeout
++				case 12029: // 12029 to 12031 correspond to dropped connections.
++				case 12030:
++				case 12031:
++				case 12152: // Connection closed by server.
++				case 13030: // See above comments for variable status.
++					// XDR transactions will not resolve to this case, since the
++					// response object is already built in the xdr response.
++					responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++							YAHOO.log('Failure callback. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++							YAHOO.log('Failure callback with scope. Exception detected. Status code is ' + httpStatus, 'warn', 'Connection');
++						}
++					}
++
++					break;
++				default:
++					responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++							YAHOO.log('Failure callback. HTTP status code is ' + httpStatus, 'warn', 'Connection');
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++							YAHOO.log('Failure callback with scope. HTTP status code is ' + httpStatus, 'warn', 'Connection');
++						}
++					}
++			}
++
++			// Fire global custom event -- failureEvent
++			this.failureEvent.fire(responseObject);
++
++			if(o.failureEvent){
++				// Fire transaction custom event -- failureEvent
++				o.failureEvent.fire(responseObject);
++			}
++
++		}
++
++		this.releaseObject(o);
++		responseObject = null;
++    },
++
++  /**
++   * @description This method evaluates the server response, creates and returns the results via
++   * its properties.  Success and failure cases will differ in the response
++   * object's property values.
++   * @method createResponseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @return {object}
++   */
++    createResponseObject:function(o, callbackArg)
++    {
++		var obj = {}, headerObj = {},
++			i, headerStr, header, delimitPos;
++
++		try
++		{
++			headerStr = o.conn.getAllResponseHeaders();
++			header = headerStr.split('\n');
++			for(i=0; i<header.length; i++){
++				delimitPos = header[i].indexOf(':');
++				if(delimitPos != -1){
++					headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
++				}
++			}
++		}
++		catch(e){}
++
++		obj.tId = o.tId;
++		// Normalize IE's response to HTTP 204 when Win error 1223.
++		obj.status = (o.conn.status == 1223)?204:o.conn.status;
++		// Normalize IE's statusText to "No Content" instead of "Unknown".
++		obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
++		obj.getResponseHeader = headerObj;
++		obj.getAllResponseHeaders = headerStr;
++		obj.responseText = o.conn.responseText;
++		obj.responseXML = o.conn.responseXML;
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description If a transaction cannot be completed due to dropped or closed connections,
++   * there may be not be enough information to build a full response object.
++   * The failure callback will be fired and this specific condition can be identified
++   * by a status property value of 0.
++   *
++   * If an abort was successful, the status property will report a value of -1.
++   *
++   * @method createExceptionObject
++   * @private
++   * @static
++   * @param {int} tId The Transaction Id
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
++   * @return {object}
++   */
++    createExceptionObject:function(tId, callbackArg, isAbort)
++    {
++		var COMM_CODE = 0,
++			COMM_ERROR = 'communication failure',
++			ABORT_CODE = -1,
++			ABORT_ERROR = 'transaction aborted',
++			obj = {};
++
++		obj.tId = tId;
++		if(isAbort){
++			obj.status = ABORT_CODE;
++			obj.statusText = ABORT_ERROR;
++		}
++		else{
++			obj.status = COMM_CODE;
++			obj.statusText = COMM_ERROR;
++		}
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description Method that initializes the custom HTTP headers for the each transaction.
++   * @method initHeader
++   * @public
++   * @static
++   * @param {string} label The HTTP header label
++   * @param {string} value The HTTP header value
++   * @param {string} isDefault Determines if the specific header is a default header
++   * automatically sent with each transaction.
++   * @return {void}
++   */
++	initHeader:function(label, value, isDefault)
++	{
++		var headerObj = (isDefault)?this._default_headers:this._http_headers;
++
++		headerObj[label] = value;
++		if(isDefault){
++			this._has_default_headers = true;
++		}
++		else{
++			this._has_http_headers = true;
++		}
++	},
++
++
++  /**
++   * @description Accessor that sets the HTTP headers for each transaction.
++   * @method setHeader
++   * @private
++   * @static
++   * @param {object} o The connection object for the transaction.
++   * @return {void}
++   */
++	setHeader:function(o)
++	{
++		var prop;
++		if(this._has_default_headers){
++			for(prop in this._default_headers){
++				if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
++					o.conn.setRequestHeader(prop, this._default_headers[prop]);
++					YAHOO.log('Default HTTP header ' + prop + ' set with value of ' + this._default_headers[prop], 'info', 'Connection');
++				}
++			}
++		}
++
++		if(this._has_http_headers){
++			for(prop in this._http_headers){
++				if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
++					o.conn.setRequestHeader(prop, this._http_headers[prop]);
++					YAHOO.log('HTTP header ' + prop + ' set with value of ' + this._http_headers[prop], 'info', 'Connection');
++				}
++			}
++
++			this._http_headers = {};
++			this._has_http_headers = false;
++		}
++	},
++
++  /**
++   * @description Resets the default HTTP headers object
++   * @method resetDefaultHeaders
++   * @public
++   * @static
++   * @return {void}
++   */
++	resetDefaultHeaders:function(){
++		this._default_headers = {};
++		this._has_default_headers = false;
++	},
++
++  /**
++   * @description Method to terminate a transaction, if it has not reached readyState 4.
++   * @method abort
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest.
++   * @param {object} callback  User-defined callback object.
++   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
++   * @return {boolean}
++   */
++	abort:function(o, callback, isTimeout)
++	{
++		var abortStatus,
++			args = (callback && callback.argument)?callback.argument:null;
++			o = o || {};
++
++		if(o.conn){
++			if(o.xhr){
++				if(this.isCallInProgress(o)){
++					// Issue abort request
++					o.conn.abort();
++
++					window.clearInterval(this._poll[o.tId]);
++					delete this._poll[o.tId];
++
++					if(isTimeout){
++						window.clearTimeout(this._timeOut[o.tId]);
++						delete this._timeOut[o.tId];
++					}
++
++					abortStatus = true;
++				}
++			}
++			else if(o.xdr){
++				o.conn.abort(o.tId);
++				abortStatus = true;
++			}
++		}
++		else if(o.upload){
++			var frameId = 'yuiIO' + o.tId;
++			var io = document.getElementById(frameId);
++
++			if(io){
++				// Remove all listeners on the iframe prior to
++				// its destruction.
++				YAHOO.util.Event.removeListener(io, "load");
++				// Destroy the iframe facilitating the transaction.
++				document.body.removeChild(io);
++				YAHOO.log('File upload iframe destroyed. Id is:' + frameId, 'info', 'Connection');
++
++				if(isTimeout){
++					window.clearTimeout(this._timeOut[o.tId]);
++					delete this._timeOut[o.tId];
++				}
++
++				abortStatus = true;
++			}
++		}
++		else{
++			abortStatus = false;
++		}
++
++		if(abortStatus === true){
++			// Fire global custom event -- abortEvent
++			this.abortEvent.fire(o, args);
++
++			if(o.abortEvent){
++				// Fire transaction custom event -- abortEvent
++				o.abortEvent.fire(o, args);
++			}
++
++			this.handleTransactionResponse(o, callback, true);
++			YAHOO.log('Transaction ' + o.tId + ' aborted.', 'info', 'Connection');
++		}
++
++		return abortStatus;
++	},
++
++  /**
++   * @description Determines if the transaction is still being processed.
++   * @method isCallInProgress
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest
++   * @return {boolean}
++   */
++	isCallInProgress:function(o)
++	{
++		o = o || {};
++		// if the XHR object assigned to the transaction has not been dereferenced,
++		// then check its readyState status.  Otherwise, return false.
++		if(o.xhr && o.conn){
++			return o.conn.readyState !== 4 && o.conn.readyState !== 0;
++		}
++		else if(o.xdr && o.conn){
++			return o.conn.isCallInProgress(o.tId);
++		}
++		else if(o.upload === true){
++			return document.getElementById('yuiIO' + o.tId)?true:false;
++		}
++		else{
++			return false;
++		}
++	},
++
++  /**
++   * @description Dereference the XHR instance and the connection object after the transaction is completed.
++   * @method releaseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @return {void}
++   */
++	releaseObject:function(o)
++	{
++		if(o && o.conn){
++			//dereference the XHR instance.
++			o.conn = null;
++
++			YAHOO.log('Connection object for transaction ' + o.tId + ' destroyed.', 'info', 'Connection');
++
++			//dereference the connection object.
++			o = null;
++		}
++	}
++};
++
++YAHOO.register("connection_core", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/connection/connection_core-min.js b/pylons_app/public/js/yui/connection/connection_core-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/connection/connection_core-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var D,A,B;try{A=new XMLHttpRequest();D={conn:A,tId:F,xhr:true};}catch(C){for(B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:F,xhr:true};break;}catch(E){}}}finally{return D;}},getConnectionObject:function(A){var C,D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={tId:D};if(A==="xdr"){C.conn=this._transport;C.xdr=true;}else{if(A==="upload"){C.upload=true;}}}if(C){this._transaction_id++;}}catch(B){}return C;},asyncRequest:function(G,D,F,A){var E,C,B=(F&&F.argument)?F.argument:null;if(this._isFileUpload){C="upload";}else{if(F.xdr){C="xdr";}}E=this.getConnectionObject(C);if(!E){return null;}else{if(F&&F.customevents){this.initCustomEvents(E,F);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(E,F,D,A);return E;}if(G.toUpperCase()=="GET"){if(this._sFormData.length!==0){D+=((D.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(G.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(G.toUpperCase()=="GET"&&(F&&F.cache===false)){D+=((D.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((G.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(E.xdr){this.xdr(E,G,D,F,A);return E;}E.conn.open(G,D,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(E);}this.handleReadyState(E,F);E.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(E,B);if(E.startEvent){E.startEvent.fire(E,B);}return E;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this,A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(B,I,D){var E,A,G=(I&&I.argument)?I.argument:null,C=(B.r&&B.r.statusText==="xdr:success")?true:false,H=(B.r&&B.r.statusText==="xdr:failure")?true:false,J=D;try{if((B.conn.status!==undefined&&B.conn.status!==0)||C){E=B.conn.status;}else{if(H&&!J){E=0;}else{E=13030;}}}catch(F){E=13030;}if((E>=200&&E<300)||E===1223||C){A=B.xdr?B.r:this.createResponseObject(B,G);if(I&&I.success){if(!I.scope){I.success(A);}else{I.success.apply(I.scope,[A]);}}this.successEvent.fire(A);if(B.successEvent){B.successEvent.fire(A);}}else{switch(E){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:A=this.createExceptionObject(B.tId,G,(D?D:false));if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}break;default:A=(B.xdr)?B.response:this.createResponseObject(B,G);if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}}this.failureEvent.fire(A);if(B.failureEvent){B.failureEvent.fire(A);}}this.releaseObject(B);A=null;},createResponseObject:function(A,G){var D={},I={},E,C,F,B;try{C=A.conn.getAllResponseHeaders();F=C.split("\n");for(E=0;E<F.length;E++){B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=YAHOO.lang.trim(F[E].substring(B+2));}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0,G="communication failure",C=-1,B="transaction aborted",E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);
++}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(E,G,A){var D,B=(G&&G.argument)?G.argument:null;E=E||{};if(E.conn){if(E.xhr){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E.xdr){E.conn.abort(E.tId);D=true;}}}else{if(E.upload){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(A){A=A||{};if(A.xhr&&A.conn){return A.conn.readyState!==4&&A.conn.readyState!==0;}else{if(A.xdr&&A.conn){return A.conn.isCallInProgress(A.tId);}else{if(A.upload===true){return document.getElementById("yuiIO"+A.tId)?true:false;}else{return false;}}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};YAHOO.register("connection_core",YAHOO.util.Connect,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/connection/connection_core.js b/pylons_app/public/js/yui/connection/connection_core.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/connection/connection_core.js
+@@ -0,0 +1,957 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Connection Manager provides a simplified interface to the XMLHttpRequest
++ * object.  It handles cross-browser instantiantion of XMLHttpRequest, negotiates the
++ * interactive states and server response, returning the results to a pre-defined
++ * callback you create.
++ *
++ * @namespace YAHOO.util
++ * @module connection
++ * @requires yahoo
++ * @requires event
++ */
++
++/**
++ * The Connection Manager singleton provides methods for creating and managing
++ * asynchronous transactions.
++ *
++ * @class Connect
++ */
++
++YAHOO.util.Connect =
++{
++  /**
++   * @description Array of MSFT ActiveX ids for XMLHttpRequest.
++   * @property _msxml_progid
++   * @private
++   * @static
++   * @type array
++   */
++	_msxml_progid:[
++		'Microsoft.XMLHTTP',
++		'MSXML2.XMLHTTP.3.0',
++		'MSXML2.XMLHTTP'
++		],
++
++  /**
++   * @description Object literal of HTTP header(s)
++   * @property _http_header
++   * @private
++   * @static
++   * @type object
++   */
++	_http_headers:{},
++
++  /**
++   * @description Determines if HTTP headers are set.
++   * @property _has_http_headers
++   * @private
++   * @static
++   * @type boolean
++   */
++	_has_http_headers:false,
++
++ /**
++  * @description Determines if a default header of
++  * Content-Type of 'application/x-www-form-urlencoded'
++  * will be added to any client HTTP headers sent for POST
++  * transactions.
++  * @property _use_default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_post_header:true,
++
++ /**
++  * @description The default header used for POST transactions.
++  * @property _default_post_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',
++
++ /**
++  * @description The default header used for transactions involving the
++  * use of HTML forms.
++  * @property _default_form_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_form_header:'application/x-www-form-urlencoded',
++
++ /**
++  * @description Determines if a default header of
++  * 'X-Requested-With: XMLHttpRequest'
++  * will be added to each transaction.
++  * @property _use_default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _use_default_xhr_header:true,
++
++ /**
++  * @description The default header value for the label
++  * "X-Requested-With".  This is sent with each
++  * transaction, by default, to identify the
++  * request as being made by YUI Connection Manager.
++  * @property _default_xhr_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_xhr_header:'XMLHttpRequest',
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _has_default_headers:true,
++
++ /**
++  * @description Determines if custom, default headers
++  * are set for each transaction.
++  * @property _has_default_header
++  * @private
++  * @static
++  * @type boolean
++  */
++    _default_headers:{},
++
++ /**
++  * @description Collection of polling references to the polling mechanism in handleReadyState.
++  * @property _poll
++  * @private
++  * @static
++  * @type object
++  */
++    _poll:{},
++
++ /**
++  * @description Queue of timeout values for each transaction callback with a defined timeout value.
++  * @property _timeOut
++  * @private
++  * @static
++  * @type object
++  */
++    _timeOut:{},
++
++  /**
++   * @description The polling frequency, in milliseconds, for HandleReadyState.
++   * when attempting to determine a transaction's XHR readyState.
++   * The default is 50 milliseconds.
++   * @property _polling_interval
++   * @private
++   * @static
++   * @type int
++   */
++     _polling_interval:50,
++
++  /**
++   * @description A transaction counter that increments the transaction id for each transaction.
++   * @property _transaction_id
++   * @private
++   * @static
++   * @type int
++   */
++     _transaction_id:0,
++
++  /**
++   * @description Custom event that fires at the start of a transaction
++   * @property startEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	startEvent: new YAHOO.util.CustomEvent('start'),
++
++  /**
++   * @description Custom event that fires when a transaction response has completed.
++   * @property completeEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	completeEvent: new YAHOO.util.CustomEvent('complete'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 2xx range.
++   * @property successEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	successEvent: new YAHOO.util.CustomEvent('success'),
++
++  /**
++   * @description Custom event that fires when handleTransactionResponse() determines a
++   * response in the HTTP 4xx/5xx range.
++   * @property failureEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	failureEvent: new YAHOO.util.CustomEvent('failure'),
++
++  /**
++   * @description Custom event that fires when a transaction is successfully aborted.
++   * @property abortEvent
++   * @private
++   * @static
++   * @type CustomEvent
++   */
++	abortEvent: new YAHOO.util.CustomEvent('abort'),
++
++  /**
++   * @description A reference table that maps callback custom events members to its specific
++   * event name.
++   * @property _customEvents
++   * @private
++   * @static
++   * @type object
++   */
++	_customEvents:
++	{
++		onStart:['startEvent', 'start'],
++		onComplete:['completeEvent', 'complete'],
++		onSuccess:['successEvent', 'success'],
++		onFailure:['failureEvent', 'failure'],
++		onUpload:['uploadEvent', 'upload'],
++		onAbort:['abortEvent', 'abort']
++	},
++
++  /**
++   * @description Member to add an ActiveX id to the existing xml_progid array.
++   * In the event(unlikely) a new ActiveX id is introduced, it can be added
++   * without internal code modifications.
++   * @method setProgId
++   * @public
++   * @static
++   * @param {string} id The ActiveX id to be added to initialize the XHR object.
++   * @return void
++   */
++	setProgId:function(id)
++	{
++		this._msxml_progid.unshift(id);
++	},
++
++  /**
++   * @description Member to override the default POST header.
++   * @method setDefaultPostHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultPostHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_post_header = b;
++		}
++		else if(typeof b == 'boolean'){
++			this._use_default_post_header = b;
++		}
++	},
++
++  /**
++   * @description Member to override the default transaction header..
++   * @method setDefaultXhrHeader
++   * @public
++   * @static
++   * @param {boolean} b Set and use default header - true or false .
++   * @return void
++   */
++	setDefaultXhrHeader:function(b)
++	{
++		if(typeof b == 'string'){
++			this._default_xhr_header = b;
++		}
++		else{
++			this._use_default_xhr_header = b;
++		}
++	},
++
++  /**
++   * @description Member to modify the default polling interval.
++   * @method setPollingInterval
++   * @public
++   * @static
++   * @param {int} i The polling interval in milliseconds.
++   * @return void
++   */
++	setPollingInterval:function(i)
++	{
++		if(typeof i == 'number' && isFinite(i)){
++			this._polling_interval = i;
++		}
++	},
++
++  /**
++   * @description Instantiates a XMLHttpRequest object and returns an object with two properties:
++   * the XMLHttpRequest instance and the transaction id.
++   * @method createXhrObject
++   * @private
++   * @static
++   * @param {int} transactionId Property containing the transaction id for this transaction.
++   * @return object
++   */
++	createXhrObject:function(transactionId)
++	{
++		var obj,http,i;
++		try
++		{
++			// Instantiates XMLHttpRequest in non-IE browsers and assigns to http.
++			http = new XMLHttpRequest();
++			//  Object literal with http and tId properties
++			obj = { conn:http, tId:transactionId, xhr: true };
++		}
++		catch(e)
++		{
++			for(i=0; i<this._msxml_progid.length; ++i){
++				try
++				{
++					// Instantiates XMLHttpRequest for IE and assign to http
++					http = new ActiveXObject(this._msxml_progid[i]);
++					//  Object literal with conn and tId properties
++					obj = { conn:http, tId:transactionId, xhr: true };
++					break;
++				}
++				catch(e1){}
++			}
++		}
++		finally
++		{
++			return obj;
++		}
++	},
++
++  /**
++   * @description This method is called by asyncRequest to create a
++   * valid connection object for the transaction.  It also passes a
++   * transaction id and increments the transaction id counter.
++   * @method getConnectionObject
++   * @private
++   * @static
++   * @return {object}
++   */
++	getConnectionObject:function(t)
++	{
++		var o, tId = this._transaction_id;
++
++		try
++		{
++			if(!t){
++				o = this.createXhrObject(tId);
++			}
++			else{
++				o = {tId:tId};
++				if(t==='xdr'){
++					o.conn = this._transport;
++					o.xdr = true;
++				}
++				else if(t==='upload'){
++					o.upload = true;
++				}
++			}
++
++			if(o){
++				this._transaction_id++;
++			}
++		}
++		catch(e){}
++		return o;
++	},
++
++  /**
++   * @description Method for initiating an asynchronous request via the XHR object.
++   * @method asyncRequest
++   * @public
++   * @static
++   * @param {string} method HTTP transaction method
++   * @param {string} uri Fully qualified path of resource
++   * @param {callback} callback User-defined callback function or object
++   * @param {string} postData POST body
++   * @return {object} Returns the connection object
++   */
++	asyncRequest:function(method, uri, callback, postData)
++	{
++		var o,t,args = (callback && callback.argument)?callback.argument:null;
++
++		if(this._isFileUpload){
++			t = 'upload';
++		}
++		else if(callback.xdr){
++			t = 'xdr';
++		}
++
++		o = this.getConnectionObject(t);
++		if(!o){
++			return null;
++		}
++		else{
++
++			// Intialize any transaction-specific custom events, if provided.
++			if(callback && callback.customevents){
++				this.initCustomEvents(o, callback);
++			}
++
++			if(this._isFormSubmit){
++				if(this._isFileUpload){
++					this.uploadFile(o, callback, uri, postData);
++					return o;
++				}
++
++				// If the specified HTTP method is GET, setForm() will return an
++				// encoded string that is concatenated to the uri to
++				// create a querystring.
++				if(method.toUpperCase() == 'GET'){
++					if(this._sFormData.length !== 0){
++						// If the URI already contains a querystring, append an ampersand
++						// and then concatenate _sFormData to the URI.
++						uri += ((uri.indexOf('?') == -1)?'?':'&') + this._sFormData;
++					}
++				}
++				else if(method.toUpperCase() == 'POST'){
++					// If POST data exist in addition to the HTML form data,
++					// it will be concatenated to the form data.
++					postData = postData?this._sFormData + "&" + postData:this._sFormData;
++				}
++			}
++
++			if(method.toUpperCase() == 'GET' && (callback && callback.cache === false)){
++				// If callback.cache is defined and set to false, a
++				// timestamp value will be added to the querystring.
++				uri += ((uri.indexOf('?') == -1)?'?':'&') + "rnd=" + new Date().valueOf().toString();
++			}
++
++			// Each transaction will automatically include a custom header of
++			// "X-Requested-With: XMLHttpRequest" to identify the request as
++			// having originated from Connection Manager.
++			if(this._use_default_xhr_header){
++				if(!this._default_headers['X-Requested-With']){
++					this.initHeader('X-Requested-With', this._default_xhr_header, true);
++				}
++			}
++
++			//If the transaction method is POST and the POST header value is set to true
++			//or a custom value, initalize the Content-Type header to this value.
++			if((method.toUpperCase() === 'POST' && this._use_default_post_header) && this._isFormSubmit === false){
++				this.initHeader('Content-Type', this._default_post_header);
++			}
++
++			if(o.xdr){
++				this.xdr(o, method, uri, callback, postData);
++				return o;
++			}
++
++			o.conn.open(method, uri, true);
++			//Initialize all default and custom HTTP headers,
++			if(this._has_default_headers || this._has_http_headers){
++				this.setHeader(o);
++			}
++
++			this.handleReadyState(o, callback);
++			o.conn.send(postData || '');
++
++			// Reset the HTML form data and state properties as
++			// soon as the data are submitted.
++			if(this._isFormSubmit === true){
++				this.resetFormState();
++			}
++
++			// Fire global custom event -- startEvent
++			this.startEvent.fire(o, args);
++
++			if(o.startEvent){
++				// Fire transaction custom event -- startEvent
++				o.startEvent.fire(o, args);
++			}
++
++			return o;
++		}
++	},
++
++  /**
++   * @description This method creates and subscribes custom events,
++   * specific to each transaction
++   * @method initCustomEvents
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++	initCustomEvents:function(o, callback)
++	{
++		var prop;
++		// Enumerate through callback.customevents members and bind/subscribe
++		// events that match in the _customEvents table.
++		for(prop in callback.customevents){
++			if(this._customEvents[prop][0]){
++				// Create the custom event
++				o[this._customEvents[prop][0]] = new YAHOO.util.CustomEvent(this._customEvents[prop][1], (callback.scope)?callback.scope:null);
++
++				// Subscribe the custom event
++				o[this._customEvents[prop][0]].subscribe(callback.customevents[prop]);
++			}
++		}
++	},
++
++  /**
++   * @description This method serves as a timer that polls the XHR object's readyState
++   * property during a transaction, instead of binding a callback to the
++   * onreadystatechange event.  Upon readyState 4, handleTransactionResponse
++   * will process the response, and the timer will be cleared.
++   * @method handleReadyState
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callback} callback The user-defined callback object
++   * @return {void}
++   */
++
++    handleReadyState:function(o, callback)
++
++    {
++		var oConn = this,
++			args = (callback && callback.argument)?callback.argument:null;
++
++		if(callback && callback.timeout){
++			this._timeOut[o.tId] = window.setTimeout(function(){ oConn.abort(o, callback, true); }, callback.timeout);
++		}
++
++		this._poll[o.tId] = window.setInterval(
++			function(){
++				if(o.conn && o.conn.readyState === 4){
++
++					// Clear the polling interval for the transaction
++					// and remove the reference from _poll.
++					window.clearInterval(oConn._poll[o.tId]);
++					delete oConn._poll[o.tId];
++
++					if(callback && callback.timeout){
++						window.clearTimeout(oConn._timeOut[o.tId]);
++						delete oConn._timeOut[o.tId];
++					}
++
++					// Fire global custom event -- completeEvent
++					oConn.completeEvent.fire(o, args);
++
++					if(o.completeEvent){
++						// Fire transaction custom event -- completeEvent
++						o.completeEvent.fire(o, args);
++					}
++
++					oConn.handleTransactionResponse(o, callback);
++				}
++			}
++		,this._polling_interval);
++    },
++
++  /**
++   * @description This method attempts to interpret the server response and
++   * determine whether the transaction was successful, or if an error or
++   * exception was encountered.
++   * @method handleTransactionResponse
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {object} callback The user-defined callback object
++   * @param {boolean} isAbort Determines if the transaction was terminated via abort().
++   * @return {void}
++   */
++    handleTransactionResponse:function(o, callback, isAbort)
++    {
++		var httpStatus, responseObject,
++			args = (callback && callback.argument)?callback.argument:null,
++			xdrS = (o.r && o.r.statusText === 'xdr:success')?true:false,
++			xdrF = (o.r && o.r.statusText === 'xdr:failure')?true:false,
++			xdrA = isAbort;
++
++		try
++		{
++			if((o.conn.status !== undefined && o.conn.status !== 0) || xdrS){
++				// XDR requests will not have HTTP status defined. The
++				// statusText property will define the response status
++				// set by the Flash transport.
++				httpStatus = o.conn.status;
++			}
++			else if(xdrF && !xdrA){
++				// Set XDR transaction failure to a status of 0, which
++				// resolves as an HTTP failure, instead of an exception.
++				httpStatus = 0;
++			}
++			else{
++				httpStatus = 13030;
++			}
++		}
++		catch(e){
++
++			 // 13030 is a custom code to indicate the condition -- in Mozilla/FF --
++			 // when the XHR object's status and statusText properties are
++			 // unavailable, and a query attempt throws an exception.
++			httpStatus = 13030;
++		}
++
++		if((httpStatus >= 200 && httpStatus < 300) || httpStatus === 1223 || xdrS){
++			responseObject = o.xdr ? o.r : this.createResponseObject(o, args);
++			if(callback && callback.success){
++				if(!callback.scope){
++					callback.success(responseObject);
++				}
++				else{
++					// If a scope property is defined, the callback will be fired from
++					// the context of the object.
++					callback.success.apply(callback.scope, [responseObject]);
++				}
++			}
++
++			// Fire global custom event -- successEvent
++			this.successEvent.fire(responseObject);
++
++			if(o.successEvent){
++				// Fire transaction custom event -- successEvent
++				o.successEvent.fire(responseObject);
++			}
++		}
++		else{
++			switch(httpStatus){
++				// The following cases are wininet.dll error codes that may be encountered.
++				case 12002: // Server timeout
++				case 12029: // 12029 to 12031 correspond to dropped connections.
++				case 12030:
++				case 12031:
++				case 12152: // Connection closed by server.
++				case 13030: // See above comments for variable status.
++					// XDR transactions will not resolve to this case, since the
++					// response object is already built in the xdr response.
++					responseObject = this.createExceptionObject(o.tId, args, (isAbort?isAbort:false));
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++						}
++					}
++
++					break;
++				default:
++					responseObject = (o.xdr) ? o.response : this.createResponseObject(o, args);
++					if(callback && callback.failure){
++						if(!callback.scope){
++							callback.failure(responseObject);
++						}
++						else{
++							callback.failure.apply(callback.scope, [responseObject]);
++						}
++					}
++			}
++
++			// Fire global custom event -- failureEvent
++			this.failureEvent.fire(responseObject);
++
++			if(o.failureEvent){
++				// Fire transaction custom event -- failureEvent
++				o.failureEvent.fire(responseObject);
++			}
++
++		}
++
++		this.releaseObject(o);
++		responseObject = null;
++    },
++
++  /**
++   * @description This method evaluates the server response, creates and returns the results via
++   * its properties.  Success and failure cases will differ in the response
++   * object's property values.
++   * @method createResponseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @return {object}
++   */
++    createResponseObject:function(o, callbackArg)
++    {
++		var obj = {}, headerObj = {},
++			i, headerStr, header, delimitPos;
++
++		try
++		{
++			headerStr = o.conn.getAllResponseHeaders();
++			header = headerStr.split('\n');
++			for(i=0; i<header.length; i++){
++				delimitPos = header[i].indexOf(':');
++				if(delimitPos != -1){
++					headerObj[header[i].substring(0,delimitPos)] = YAHOO.lang.trim(header[i].substring(delimitPos+2));
++				}
++			}
++		}
++		catch(e){}
++
++		obj.tId = o.tId;
++		// Normalize IE's response to HTTP 204 when Win error 1223.
++		obj.status = (o.conn.status == 1223)?204:o.conn.status;
++		// Normalize IE's statusText to "No Content" instead of "Unknown".
++		obj.statusText = (o.conn.status == 1223)?"No Content":o.conn.statusText;
++		obj.getResponseHeader = headerObj;
++		obj.getAllResponseHeaders = headerStr;
++		obj.responseText = o.conn.responseText;
++		obj.responseXML = o.conn.responseXML;
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description If a transaction cannot be completed due to dropped or closed connections,
++   * there may be not be enough information to build a full response object.
++   * The failure callback will be fired and this specific condition can be identified
++   * by a status property value of 0.
++   *
++   * If an abort was successful, the status property will report a value of -1.
++   *
++   * @method createExceptionObject
++   * @private
++   * @static
++   * @param {int} tId The Transaction Id
++   * @param {callbackArg} callbackArg The user-defined argument or arguments to be passed to the callback
++   * @param {boolean} isAbort Determines if the exception case is caused by a transaction abort
++   * @return {object}
++   */
++    createExceptionObject:function(tId, callbackArg, isAbort)
++    {
++		var COMM_CODE = 0,
++			COMM_ERROR = 'communication failure',
++			ABORT_CODE = -1,
++			ABORT_ERROR = 'transaction aborted',
++			obj = {};
++
++		obj.tId = tId;
++		if(isAbort){
++			obj.status = ABORT_CODE;
++			obj.statusText = ABORT_ERROR;
++		}
++		else{
++			obj.status = COMM_CODE;
++			obj.statusText = COMM_ERROR;
++		}
++
++		if(callbackArg){
++			obj.argument = callbackArg;
++		}
++
++		return obj;
++    },
++
++  /**
++   * @description Method that initializes the custom HTTP headers for the each transaction.
++   * @method initHeader
++   * @public
++   * @static
++   * @param {string} label The HTTP header label
++   * @param {string} value The HTTP header value
++   * @param {string} isDefault Determines if the specific header is a default header
++   * automatically sent with each transaction.
++   * @return {void}
++   */
++	initHeader:function(label, value, isDefault)
++	{
++		var headerObj = (isDefault)?this._default_headers:this._http_headers;
++
++		headerObj[label] = value;
++		if(isDefault){
++			this._has_default_headers = true;
++		}
++		else{
++			this._has_http_headers = true;
++		}
++	},
++
++
++  /**
++   * @description Accessor that sets the HTTP headers for each transaction.
++   * @method setHeader
++   * @private
++   * @static
++   * @param {object} o The connection object for the transaction.
++   * @return {void}
++   */
++	setHeader:function(o)
++	{
++		var prop;
++		if(this._has_default_headers){
++			for(prop in this._default_headers){
++				if(YAHOO.lang.hasOwnProperty(this._default_headers, prop)){
++					o.conn.setRequestHeader(prop, this._default_headers[prop]);
++				}
++			}
++		}
++
++		if(this._has_http_headers){
++			for(prop in this._http_headers){
++				if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
++					o.conn.setRequestHeader(prop, this._http_headers[prop]);
++				}
++			}
++
++			this._http_headers = {};
++			this._has_http_headers = false;
++		}
++	},
++
++  /**
++   * @description Resets the default HTTP headers object
++   * @method resetDefaultHeaders
++   * @public
++   * @static
++   * @return {void}
++   */
++	resetDefaultHeaders:function(){
++		this._default_headers = {};
++		this._has_default_headers = false;
++	},
++
++  /**
++   * @description Method to terminate a transaction, if it has not reached readyState 4.
++   * @method abort
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest.
++   * @param {object} callback  User-defined callback object.
++   * @param {string} isTimeout boolean to indicate if abort resulted from a callback timeout.
++   * @return {boolean}
++   */
++	abort:function(o, callback, isTimeout)
++	{
++		var abortStatus,
++			args = (callback && callback.argument)?callback.argument:null;
++			o = o || {};
++
++		if(o.conn){
++			if(o.xhr){
++				if(this.isCallInProgress(o)){
++					// Issue abort request
++					o.conn.abort();
++
++					window.clearInterval(this._poll[o.tId]);
++					delete this._poll[o.tId];
++
++					if(isTimeout){
++						window.clearTimeout(this._timeOut[o.tId]);
++						delete this._timeOut[o.tId];
++					}
++
++					abortStatus = true;
++				}
++			}
++			else if(o.xdr){
++				o.conn.abort(o.tId);
++				abortStatus = true;
++			}
++		}
++		else if(o.upload){
++			var frameId = 'yuiIO' + o.tId;
++			var io = document.getElementById(frameId);
++
++			if(io){
++				// Remove all listeners on the iframe prior to
++				// its destruction.
++				YAHOO.util.Event.removeListener(io, "load");
++				// Destroy the iframe facilitating the transaction.
++				document.body.removeChild(io);
++
++				if(isTimeout){
++					window.clearTimeout(this._timeOut[o.tId]);
++					delete this._timeOut[o.tId];
++				}
++
++				abortStatus = true;
++			}
++		}
++		else{
++			abortStatus = false;
++		}
++
++		if(abortStatus === true){
++			// Fire global custom event -- abortEvent
++			this.abortEvent.fire(o, args);
++
++			if(o.abortEvent){
++				// Fire transaction custom event -- abortEvent
++				o.abortEvent.fire(o, args);
++			}
++
++			this.handleTransactionResponse(o, callback, true);
++		}
++
++		return abortStatus;
++	},
++
++  /**
++   * @description Determines if the transaction is still being processed.
++   * @method isCallInProgress
++   * @public
++   * @static
++   * @param {object} o The connection object returned by asyncRequest
++   * @return {boolean}
++   */
++	isCallInProgress:function(o)
++	{
++		o = o || {};
++		// if the XHR object assigned to the transaction has not been dereferenced,
++		// then check its readyState status.  Otherwise, return false.
++		if(o.xhr && o.conn){
++			return o.conn.readyState !== 4 && o.conn.readyState !== 0;
++		}
++		else if(o.xdr && o.conn){
++			return o.conn.isCallInProgress(o.tId);
++		}
++		else if(o.upload === true){
++			return document.getElementById('yuiIO' + o.tId)?true:false;
++		}
++		else{
++			return false;
++		}
++	},
++
++  /**
++   * @description Dereference the XHR instance and the connection object after the transaction is completed.
++   * @method releaseObject
++   * @private
++   * @static
++   * @param {object} o The connection object
++   * @return {void}
++   */
++	releaseObject:function(o)
++	{
++		if(o && o.conn){
++			//dereference the XHR instance.
++			o.conn = null;
++
++
++			//dereference the connection object.
++			o = null;
++		}
++	}
++};
++
++YAHOO.register("connection_core", YAHOO.util.Connect, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/container/assets/alrt16_1.gif b/pylons_app/public/js/yui/container/assets/alrt16_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..443d39bbfcdb29d508f2f0d632ee15d72579005c
+GIT binary patch
+literal 971
+zc${<hbhEHb6krfw`0mT_Vuj7`SDU^+*!lD9j92^3o-eU|xzpn17Rwi_te?$sc(LB<
+z`69b#bM2qaw|lwG^2HjPmpd$8tg(Kv(dxwptLMvXpD(q2xykCqTI>I}<~*C}@N9;|
+z|NsA=EwFpJ-~8Duhv%zpo=tOjvC8JfTC11aEne+4d$G;p=@iFjvmIXTGJmnj^5t&x
+zr&AqYZnu2C(C+0{%NHwcUM#bHwa@(3Zu94hZJ#f+eLBtY*<_~|n=N1MF@Ler`q^B&
+z=Zo#W-Ku@Q+~(ON$ETAWU+pt{x!3&pJiF%$?4B>Pd9lIz<sS2wK*NDvSZDRHT>8}k
+zv#+Op7)HS;zy=h5vM@3*_%i5#IG{Yiz_Eg1HiwMIh6Rp|-qU16R=7N9Xkp>tNwC<E
+zIJw=sVS+(XN|JE5?W}|dCj|y!Q8opO0~b`D98i_@In@yGsDV|0Et%!!ftJ>8X(5pZ
+zIvvcdo+@H$9UO@h7c>gm%<%CLddNC)8MCZR!l5TjObjAv3AsuNttZ(NxOFlXxEyd`
+y6!NKCyCI=t0*l-&qdgxO8G4vZqzo)3G9KaT=AWVwcP3(Ee`}YxmzjhBgEasv{?C;F
+
+diff --git a/pylons_app/public/js/yui/container/assets/blck16_1.gif b/pylons_app/public/js/yui/container/assets/blck16_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..56689611db271fcafe42e652c6496b703f38d9e3
+GIT binary patch
+literal 591
+zc${<hbhEHb6krfwcox9$rM&!ief{ri*M2G}{3$H|$;0!--TkMg=1&okpCKVXxwt;N
+zxcth@c*Vv2Q&{-tkt5$~YJLa`{ycj0>&%&7XV3nrrS+MI=d+K`XHn5_?d?BJO@AsW
+z{Zv)`YG(E_BlD|}&_^rl?}CEgy1RcG8h!;T5EXr^r~ge|{U;yaPbsON?(SbLEx!~N
+zewCB^p{Ms#Qu3>h&(GwzuioCjFJJy*Wc1VC{%e2#Pd2unyu9D6tbX$I|8#Tv8W#4`
+z*!ZWP-%n1?Zxt0Ei;A9yhW*sn|0yl~B{cM_i_2#lo8P&)@4~{r#K!(ijJwXn^eM>g
+z=bk;^jExxv8BqMm!pOi7z@P)-fZ~LKeN96^Q*%pes~?MRmoJN7TY#Uhx3?juot9-^
+z%f!i?4D+o`{bx;><ju|0Z05ga79$VOiWY`7{*Fz)jBG2LM7BD!E9}_SB;>kAO3z(}
+z?=V|{!&X~yekEp~CO40*{>rk#O#&`A0<`^^*+tcLT1-^cnpl{brEQE`R5+~Un*1d6
+zHK%-Nnxx3Yr?zBHOF_c}W*$l101bzV6HblYTy=LAWSsDv#O5=@M8Jv5OM$@}0I|un
+As{jB1
+
+diff --git a/pylons_app/public/js/yui/container/assets/close12_1.gif b/pylons_app/public/js/yui/container/assets/close12_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..e2f67d72efc158da4e069822cbe338915761e396
+GIT binary patch
+literal 85
+zc${<hbhEHb<YC}pn8?5ooUrHA&F?kc7v6mRqxh4B0R(hF1W2BNNo`8M`DtDwmkh>z
+lf$Gy9znh?Y?^x%Bps9Cfw!UsJn!aoAS>7kV)`>G%0|4uCA&me4
+
+diff --git a/pylons_app/public/js/yui/container/assets/container-core.css b/pylons_app/public/js/yui/container/assets/container-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/assets/container-core.css
+@@ -0,0 +1,176 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-overlay,
++.yui-panel-container {
++    visibility: hidden;
++    position: absolute;
++    z-index: 2;
++}
++
++.yui-panel {
++    position:relative;
++}
++
++.yui-panel-container form {
++    margin: 0;
++}
++
++.mask {
++    z-index: 1;
++    display: none;
++    position: absolute;
++    top: 0;
++    left: 0;
++    right: 0;
++    bottom: 0;
++}
++
++.mask.block-scrollbars {
++    /*
++        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
++   + YUILibrary 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, .yui-effect-fade .yui-tt-shadow {
++    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;
++}
++
++.yui-override-padding {
++    padding:0 !important;
++}
++
++.yui-panel-container .container-close {
++    overflow:hidden;
++    text-indent:-10000em;
++    text-decoration:none;
++}
++
++.yui-overlay.yui-force-redraw, .yui-panel-container.yui-force-redraw {
++    margin-bottom:1px;
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/container/assets/container.css b/pylons_app/public/js/yui/container/assets/container.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/assets/container.css
+@@ -0,0 +1,324 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-overlay,
++.yui-panel-container {
++    visibility:hidden;
++    position:absolute;
++    z-index: 2;
++}
++
++.yui-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
++   + YUILibrary 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;
++    text-indent:-10000em;
++    overflow:hidden;
++    text-decoration:none;
++}
++
++.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;
++}
++
++.yui-override-padding {
++    padding:0 !important;
++}
+diff --git a/pylons_app/public/js/yui/container/assets/hlp16_1.gif b/pylons_app/public/js/yui/container/assets/hlp16_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..4645c8fdfa693126bd5fe969737dc1ccac1e62e1
+GIT binary patch
+literal 928
+zc${<hbhEHb6krfw_-?>(y^ZbFe)X>pdVXIIcs^hJNiYA4HF8fnd0uW*csg0|*(}jl
+z`_x|_)OfyJ`t<?L*9SD7bn(5~s{Cq?`tv2yulA@uZs&QmQ}y{m$(P%dU+q<UwOj4Q
+zO4+AVg<l`ke7#@&`Er@(OC+Do5qq&j>cvW#7eMYJ$(NgzUhYtNHbdmqF11(tG+wNe
+ze>Pv@+j-kFHC!JrMKFwlQ9wta_>+Z^fx&=52gCv82?mZ@hD44Q#RaVg#q?QtVmKZ@
+zU|^Fo3aB_JaIBk=QHCXA!NEhEJR;&{6$_M}baSW)2qZ{2ICZt^he>E02sqF^L5#OY
+zfpLM-8D4och69lwU6}<{+kVM#JYwQr>dh*|!Dy<*!>SP@5PM3oF>G~0tysec(Kn4;
+PscUyd>=t!%V6X-NObUQy
+
+diff --git a/pylons_app/public/js/yui/container/assets/info16_1.gif b/pylons_app/public/js/yui/container/assets/info16_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..22f697a9917f3bae423726ef6c541e618e7a0221
+GIT binary patch
+literal 601
+zc${<hbhEHb6krfwc*ekR^2`$>r}fqW+ji}_yJYokZHxH}m!7X}I}?_)$H;t^iq<51
+z=Q+}%ZYnzMy4K6|tXJyWt`_1CmRGK`4ch7!yH!cOTSh)#$8w3X<^)ZX8Jjj7)YD4R
+zv0UsNwN+Im+c|Qxyi$XTZl|efbxhsqsOlp&_LH02_MbZYysT(KOUEHeshsMn1>ULK
+zcJ8{NpjI!y<89(Jm7mMa#AU9wZo~BX*R*u%c{v<Zv?d!nEYvWby=mh?5y4Oyac_H<
+zd5Ws-B0|yIcU+QJso-I=QP${_RVuD1otDsg(Is-Rnts1y<nGwU^9DL;T4oDd+7Aix
+z`EK8KUPeAwLAAQRew}C7_QvMz<{qm9^N;P=dCf2Dh@Q<NE8k7tX$OtWXR7K<R?(a&
+zCYmH6nWk<yT}w4Y$9#^yalg93RD0Kjr_aAuH=L+%xAy=4{|uA?#h)yU3=G)}Iv@@x
+zP8is?HDot6x3sourg6ndaI3XtGjk@(3N!Ni#HQ%BFq_MVF|uT_WM*0_gg3{CL@Z6u
+zN?)3pXx!v$;l;Q#n1f?erch9}ZK&rab`$pfsY=<-QM=Y{*e@QRE$YU!Y5m6i_StsI
+zw=Uhy<ns{BR@I5Vy+J@mGQ&|iJH$XGl9g3Giy?#I;u{U66~_c685n<XXEYvHP|%8D
+pFkv{r;Gp4DB2e{+(PxT4hLk|zA&0|@MZM#WY*1u#UFg7I4FIr6!2kdN
+
+diff --git a/pylons_app/public/js/yui/container/assets/skins/sam/container-skin.css b/pylons_app/public/js/yui/container/assets/skins/sam/container-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/assets/skins/sam/container-skin.css
+@@ -0,0 +1,242 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* 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 added for IE to allow 0,0 alignment with shadow */
++    *padding:2px;
++}
++
++.yui-skin-sam .yui-panel {
++    position: relative;
++    left:0;
++    top:0;
++    border-style: solid;
++    border-width: 1px 0;
++    border-color: #808080;
++    z-index: 1;
++
++    /* Rollback rounded corner support for IE6/7 */
++    *border-width:1px;
++    *zoom:1;
++    _zoom:normal;
++}
++
++.yui-skin-sam .yui-panel .hd,
++.yui-skin-sam .yui-panel .bd,
++.yui-skin-sam .yui-panel .ft {
++    border-style: solid;
++    border-width: 0 1px;
++    border-color: #808080;
++    margin: 0 -1px;
++
++    /* Rollback rounded corner support for IE6/7 */
++    *margin:0;
++    *border:0;
++}
++
++.yui-skin-sam .yui-panel .hd {
++    border-bottom: solid 1px #ccc;
++}
++
++.yui-skin-sam .yui-panel .bd,
++.yui-skin-sam .yui-panel .ft {
++    background-color: #F2F2F2;
++}
++
++.yui-skin-sam .yui-panel .hd {
++    padding: 0 10px;
++    font-size: 93%;  /* 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 4px 0 2px;
++}
++
++.yui-skin-sam .yui-panel-container.shadow .underlay {
++    position: absolute;
++    top: 2px;
++    left: -3px;
++    right: -3px;
++    bottom: -3px;
++
++    /* IE7 Strict (provides 3px shadow (when combined with 2px padding applied to container) */
++    *top: 4px;
++    *left: -1px;
++    *right: -1px;
++    *bottom: -1px;
++
++    /* IE 7 Quirks Mode and IE 6 Standards Mode and Quirks mode */
++    _top: 0;
++    _left: 0;
++    _right: 0;
++    _bottom: 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;
++}
++
++/* Dialog YUI Button disabled state */
++.yui-skin-sam .yui-dialog .ft span.yui-button-disabled {
++    background-position:0pt -1500px;
++    border-color:#ccc;
++}
++
++.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child {
++    border-color:#ccc;
++}
++
++.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button {
++    color:#a6a6a6;
++}
++
++/* 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/pylons_app/public/js/yui/container/assets/skins/sam/container.css b/pylons_app/public/js/yui/container/assets/skins/sam/container.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/assets/skins/sam/container.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.yui-panel{position:relative;}.yui-panel-container form{margin:0;}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0;}.mask.block-scrollbars{overflow:auto;}.masked select,.drag select,.hide-select select{_visibility:hidden;}.yui-panel-container select{_visibility:inherit;}.hide-scrollbars,.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.show-scrollbars{overflow:auto;}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible;}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto;}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px;}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none;}.yui-tt-shadow{position:absolute;}.yui-override-padding{padding:0!important;}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none;}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px;}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0;}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc;}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#F2F2F2;}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(../../../../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 .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 4px 0 2px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yui-dialog .ft{border-top:none;padding:0 10px 10px 10px;font-size:100%;}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right;}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold;}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px;}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369;}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6;}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(../../../../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/pylons_app/public/js/yui/container/assets/tip16_1.gif b/pylons_app/public/js/yui/container/assets/tip16_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..8f0be2b8d1fc2151459ddf48c8676f296489a32e
+GIT binary patch
+literal 552
+zc${<hbhEHb6krfwcoxdAqKt250pG88J6`NoJHNgC#7vPV=gNM)KlSdk<?bnx=Qesg
+z-75d_vh&vm!N=BSUt6d2>6-h;E3R*j89zJi_ws<w^&?$(7qGlPXR~Fh*V&CBw-5MU
+z+GzOsruU28s!ujay*^_2>8jg}jVf1H%U_x=y1GH>{3efE$9ulq^}jNY_s7%7Yg^Q>
+zZ&AOxukg+`jfa=Ee7NLzbDQSVEiw;Q@LgK3a&HmayE9fFE_$AvDtPZi>Gka<>-s%k
+z9n`(GMepbgxjmD_e!N<=V~Wp)c9DO7zkGWX`t@GmmMQi>->ki{LVRtP{*x0vzu)HE
+z*rxgVklvf)rq8x3zBy*}WTVvm#T@rfmVUgN{`~e~hJgl(KUo+V7(y9zKpaq<FtE2a
+zgf=y|w6?KX8fZ&fv^7h4x-psgD{}R*2|F?I3Yc0e>9lFtGkIysi2L|)wt4fYJG&@w
+zh;ZAr8FT0hva`!G2ROC`=?eJ<2QwS8^7X0m%bt{Db?s}CbU$h2alJ`RBhW-l;$EmI
+k<4Z=XXCd$2KVxCAQD$&>rl(?S&cO1liGjg_i-o}&0QF(ThX4Qo
+
+diff --git a/pylons_app/public/js/yui/container/assets/warn16_1.gif b/pylons_app/public/js/yui/container/assets/warn16_1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..d679df5aae924ed5a4b16a921c3c4578cd6ea970
+GIT binary patch
+literal 580
+zc${<hbhEHb6krfwc*el+xK`w8Ci9Cj{%bZ0KW-lQw59R=42!=X9>1HQ`TNnaZ`+e^
+zxiCGg7yWvC!5vSgkFyM)RZCt{XMB>%`sdC4t0s)k%aq@3nExPx>EmqU4>OHk)k?l;
+zmwHep@UB<k+o{<X<QZO82|uY9|FEa?NgDHYE5>KJ>`yaTpH~^(FBLo^!f?M>@KLq!
+zyFQK2XP13hAOB*u@2iQ4XT=z<nK6CZ-1y^Q$%kp$A7>l<xN+d;tsVCQnO?R?yy<uP
+z{p$YLO%bo^#NKo$JxbvCu(t75DEF&Qr*{jIem%Ny)1K*yF5}lVuCIHXUiUhkm0-9Z
+z%Jg}$^_@_TNAb)rDnz~=>AmgF^t_P!+l2!krs_OSVY}-K<O)AZ68bpT^y|?DFKU#3
+z9IJnn<M^Ob=xwL;|Ns9PXa*F2vM@3*Br)iKIG{LTU|-mf)YRP4+Lpx1$jI8>!onyK
+z%E;2&WNjbI#pE@WSJgI=U0N-=H%7-KF)@KjwB0z^LvK|=LYQN#aD=28+rq61kv1(Z
+z0lr%kIkzS_7&N;oN6BvG3_NWY6w>4=WqO*8W2+T|UtE&85dUco3ppO`_;?K?F=qiq
+xhM)SYKK^xL_P6-beckEE0e!8cIXe!h92aHh?wPQlK;=-oswP{Al?VreH2~$w+`#|<
+
+diff --git a/pylons_app/public/js/yui/container/container-debug.js b/pylons_app/public/js/yui/container/container-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/container-debug.js
+@@ -0,0 +1,9076 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++    /**
++    * Config is a utility used within an Object to allow the implementer to
++    * maintain a list of local configuration properties and listen for changes 
++    * to those properties dynamically using CustomEvent. The initial values are 
++    * also maintained so that the configuration can be reset at any given point 
++    * to its initial state.
++    * @namespace YAHOO.util
++    * @class Config
++    * @constructor
++    * @param {Object} owner The owner Object to which this Config Object belongs
++    */
++    YAHOO.util.Config = function (owner) {
++
++        if (owner) {
++            this.init(owner);
++        }
++
++        if (!owner) {  YAHOO.log("No owner specified for Config object", "error", "Config"); }
++
++    };
++
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Config = YAHOO.util.Config;
++
++
++    /**
++     * Constant representing the CustomEvent type for the config changed event.
++     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
++     * @private
++     * @static
++     * @final
++     */
++    Config.CONFIG_CHANGED_EVENT = "configChanged";
++    
++    /**
++     * Constant representing the boolean type string
++     * @property YAHOO.util.Config.BOOLEAN_TYPE
++     * @private
++     * @static
++     * @final
++     */
++    Config.BOOLEAN_TYPE = "boolean";
++    
++    Config.prototype = {
++     
++        /**
++        * Object reference to the owner of this Config Object
++        * @property owner
++        * @type Object
++        */
++        owner: null,
++        
++        /**
++        * Boolean flag that specifies whether a queue is currently 
++        * being executed
++        * @property queueInProgress
++        * @type Boolean
++        */
++        queueInProgress: false,
++        
++        /**
++        * Maintains the local collection of configuration property objects and 
++        * their specified values
++        * @property config
++        * @private
++        * @type Object
++        */ 
++        config: null,
++        
++        /**
++        * Maintains the local collection of configuration property objects as 
++        * they were initially applied.
++        * This object is used when resetting a property.
++        * @property initialConfig
++        * @private
++        * @type Object
++        */ 
++        initialConfig: null,
++        
++        /**
++        * Maintains the local, normalized CustomEvent queue
++        * @property eventQueue
++        * @private
++        * @type Object
++        */ 
++        eventQueue: null,
++        
++        /**
++        * Custom Event, notifying subscribers when Config properties are set 
++        * (setProperty is called without the silent flag
++        * @event configChangedEvent
++        */
++        configChangedEvent: null,
++    
++        /**
++        * Initializes the configuration Object and all of its local members.
++        * @method init
++        * @param {Object} owner The owner Object to which this Config 
++        * Object belongs
++        */
++        init: function (owner) {
++    
++            this.owner = owner;
++    
++            this.configChangedEvent = 
++                this.createEvent(Config.CONFIG_CHANGED_EVENT);
++    
++            this.configChangedEvent.signature = CustomEvent.LIST;
++            this.queueInProgress = false;
++            this.config = {};
++            this.initialConfig = {};
++            this.eventQueue = [];
++        
++        },
++        
++        /**
++        * Validates that the value passed in is a Boolean.
++        * @method checkBoolean
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */ 
++        checkBoolean: function (val) {
++            return (typeof val == Config.BOOLEAN_TYPE);
++        },
++        
++        /**
++        * Validates that the value passed in is a number.
++        * @method checkNumber
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */
++        checkNumber: function (val) {
++            return (!isNaN(val));
++        },
++        
++        /**
++        * Fires a configuration property event using the specified value. 
++        * @method fireEvent
++        * @private
++        * @param {String} key The configuration property's name
++        * @param {value} Object The value of the correct type for the property
++        */ 
++        fireEvent: function ( key, value ) {
++            YAHOO.log("Firing Config event: " + key + "=" + value, "info", "Config");
++            var property = this.config[key];
++        
++            if (property && property.event) {
++                property.event.fire(value);
++            } 
++        },
++        
++        /**
++        * Adds a property to the Config Object's private config hash.
++        * @method addProperty
++        * @param {String} key The configuration property's name
++        * @param {Object} propertyObject The Object containing all of this 
++        * property's arguments
++        */
++        addProperty: function ( key, propertyObject ) {
++            key = key.toLowerCase();
++            YAHOO.log("Added property: " + key, "info", "Config");
++        
++            this.config[key] = propertyObject;
++        
++            propertyObject.event = this.createEvent(key, { scope: this.owner });
++            propertyObject.event.signature = CustomEvent.LIST;
++            
++            
++            propertyObject.key = key;
++        
++            if (propertyObject.handler) {
++                propertyObject.event.subscribe(propertyObject.handler, 
++                    this.owner);
++            }
++        
++            this.setProperty(key, propertyObject.value, true);
++            
++            if (! propertyObject.suppressEvent) {
++                this.queueProperty(key, propertyObject.value);
++            }
++            
++        },
++        
++        /**
++        * Returns a key-value configuration map of the values currently set in  
++        * the Config Object.
++        * @method getConfig
++        * @return {Object} The current config, represented in a key-value map
++        */
++        getConfig: function () {
++        
++            var cfg = {},
++                currCfg = this.config,
++                prop,
++                property;
++                
++            for (prop in currCfg) {
++                if (Lang.hasOwnProperty(currCfg, prop)) {
++                    property = currCfg[prop];
++                    if (property && property.event) {
++                        cfg[prop] = property.value;
++                    }
++                }
++            }
++
++            return cfg;
++        },
++        
++        /**
++        * Returns the value of specified property.
++        * @method getProperty
++        * @param {String} key The name of the property
++        * @return {Object}  The value of the specified property
++        */
++        getProperty: function (key) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.value;
++            } else {
++                return undefined;
++            }
++        },
++        
++        /**
++        * Resets the specified property's value to its initial value.
++        * @method resetProperty
++        * @param {String} key The name of the property
++        * @return {Boolean} True is the property was reset, false if not
++        */
++        resetProperty: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event) {
++    
++                if (this.initialConfig[key] && 
++                    !Lang.isUndefined(this.initialConfig[key])) {
++    
++                    this.setProperty(key, this.initialConfig[key]);
++
++                    return true;
++    
++                }
++    
++            } else {
++    
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Sets the value of a property. If the silent property is passed as 
++        * true, the property's event will not be fired.
++        * @method setProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @param {Boolean} silent Whether the value should be set silently, 
++        * without firing the property event.
++        * @return {Boolean} True, if the set was successful, false if it failed.
++        */
++        setProperty: function (key, value, silent) {
++        
++            var property;
++        
++            key = key.toLowerCase();
++            YAHOO.log("setProperty: " + key + "=" + value, "info", "Config");
++        
++            if (this.queueInProgress && ! silent) {
++                // Currently running through a queue... 
++                this.queueProperty(key,value);
++                return true;
++    
++            } else {
++                property = this.config[key];
++                if (property && property.event) {
++                    if (property.validator && !property.validator(value)) {
++                        return false;
++                    } else {
++                        property.value = value;
++                        if (! silent) {
++                            this.fireEvent(key, value);
++                            this.configChangedEvent.fire([key, value]);
++                        }
++                        return true;
++                    }
++                } else {
++                    return false;
++                }
++            }
++        },
++        
++        /**
++        * Sets the value of a property and queues its event to execute. If the 
++        * event is already scheduled to execute, it is
++        * moved from its current position to the end of the queue.
++        * @method queueProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @return {Boolean}  true, if the set was successful, false if 
++        * it failed.
++        */ 
++        queueProperty: function (key, value) {
++        
++            key = key.toLowerCase();
++            YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
++        
++            var property = this.config[key],
++                foundDuplicate = false,
++                iLen,
++                queueItem,
++                queueItemKey,
++                queueItemValue,
++                sLen,
++                supercedesCheck,
++                qLen,
++                queueItemCheck,
++                queueItemCheckKey,
++                queueItemCheckValue,
++                i,
++                s,
++                q;
++                                
++            if (property && property.event) {
++    
++                if (!Lang.isUndefined(value) && property.validator && 
++                    !property.validator(value)) { // validator
++                    return false;
++                } else {
++        
++                    if (!Lang.isUndefined(value)) {
++                        property.value = value;
++                    } else {
++                        value = property.value;
++                    }
++        
++                    foundDuplicate = false;
++                    iLen = this.eventQueue.length;
++        
++                    for (i = 0; i < iLen; i++) {
++                        queueItem = this.eventQueue[i];
++        
++                        if (queueItem) {
++                            queueItemKey = queueItem[0];
++                            queueItemValue = queueItem[1];
++
++                            if (queueItemKey == key) {
++    
++                                /*
++                                    found a dupe... push to end of queue, null 
++                                    current item, and break
++                                */
++    
++                                this.eventQueue[i] = null;
++    
++                                this.eventQueue.push(
++                                    [key, (!Lang.isUndefined(value) ? 
++                                    value : queueItemValue)]);
++    
++                                foundDuplicate = true;
++                                break;
++                            }
++                        }
++                    }
++                    
++                    // this is a refire, or a new property in the queue
++    
++                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
++                        this.eventQueue.push([key, value]);
++                    }
++                }
++        
++                if (property.supercedes) {
++
++                    sLen = property.supercedes.length;
++
++                    for (s = 0; s < sLen; s++) {
++
++                        supercedesCheck = property.supercedes[s];
++                        qLen = this.eventQueue.length;
++
++                        for (q = 0; q < qLen; q++) {
++                            queueItemCheck = this.eventQueue[q];
++
++                            if (queueItemCheck) {
++                                queueItemCheckKey = queueItemCheck[0];
++                                queueItemCheckValue = queueItemCheck[1];
++
++                                if (queueItemCheckKey == 
++                                    supercedesCheck.toLowerCase() ) {
++
++                                    this.eventQueue.push([queueItemCheckKey, 
++                                        queueItemCheckValue]);
++
++                                    this.eventQueue[q] = null;
++                                    break;
++
++                                }
++                            }
++                        }
++                    }
++                }
++
++                YAHOO.log("Config event queue: " + this.outputEventQueue(), "info", "Config");
++
++                return true;
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Fires the event for a property using the property's current value.
++        * @method refireEvent
++        * @param {String} key The name of the property
++        */
++        refireEvent: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event && 
++    
++                !Lang.isUndefined(property.value)) {
++    
++                if (this.queueInProgress) {
++    
++                    this.queueProperty(key);
++    
++                } else {
++    
++                    this.fireEvent(key, property.value);
++    
++                }
++    
++            }
++        },
++        
++        /**
++        * Applies a key-value Object literal to the configuration, replacing  
++        * any existing values, and queueing the property events.
++        * Although the values will be set, fireQueue() must be called for their 
++        * associated events to execute.
++        * @method applyConfig
++        * @param {Object} userConfig The configuration Object literal
++        * @param {Boolean} init  When set to true, the initialConfig will 
++        * be set to the userConfig passed in, so that calling a reset will 
++        * reset the properties to the passed values.
++        */
++        applyConfig: function (userConfig, init) {
++        
++            var sKey,
++                oConfig;
++
++            if (init) {
++                oConfig = {};
++                for (sKey in userConfig) {
++                    if (Lang.hasOwnProperty(userConfig, sKey)) {
++                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
++                    }
++                }
++                this.initialConfig = oConfig;
++            }
++
++            for (sKey in userConfig) {
++                if (Lang.hasOwnProperty(userConfig, sKey)) {
++                    this.queueProperty(sKey, userConfig[sKey]);
++                }
++            }
++        },
++        
++        /**
++        * Refires the events for all configuration properties using their 
++        * current values.
++        * @method refresh
++        */
++        refresh: function () {
++
++            var prop;
++
++            for (prop in this.config) {
++                if (Lang.hasOwnProperty(this.config, prop)) {
++                    this.refireEvent(prop);
++                }
++            }
++        },
++        
++        /**
++        * Fires the normalized list of queued property change events
++        * @method fireQueue
++        */
++        fireQueue: function () {
++        
++            var i, 
++                queueItem,
++                key,
++                value,
++                property;
++        
++            this.queueInProgress = true;
++            for (i = 0;i < this.eventQueue.length; i++) {
++                queueItem = this.eventQueue[i];
++                if (queueItem) {
++        
++                    key = queueItem[0];
++                    value = queueItem[1];
++                    property = this.config[key];
++
++                    property.value = value;
++
++                    // Clear out queue entry, to avoid it being 
++                    // re-added to the queue by any queueProperty/supercedes
++                    // calls which are invoked during fireEvent
++                    this.eventQueue[i] = null;
++
++                    this.fireEvent(key,value);
++                }
++            }
++            
++            this.queueInProgress = false;
++            this.eventQueue = [];
++        },
++        
++        /**
++        * Subscribes an external handler to the change event for any 
++        * given property. 
++        * @method subscribeToConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event handler 
++        * (see CustomEvent documentation)
++        * @param {Boolean} overrideContext Optional. If true, will override
++        * "this" within the handler to map to the scope Object passed into the
++        * method.
++        * @return {Boolean} True, if the subscription was successful, 
++        * otherwise false.
++        */ 
++        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
++    
++            var property = this.config[key.toLowerCase()];
++    
++            if (property && property.event) {
++                if (!Config.alreadySubscribed(property.event, handler, obj)) {
++                    property.event.subscribe(handler, obj, overrideContext);
++                }
++                return true;
++            } else {
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Unsubscribes an external handler from the change event for any 
++        * given property. 
++        * @method unsubscribeFromConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event 
++        * handler (see CustomEvent documentation)
++        * @return {Boolean} True, if the unsubscription was successful, 
++        * otherwise false.
++        */
++        unsubscribeFromConfigEvent: function (key, handler, obj) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.event.unsubscribe(handler, obj);
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Returns a string representation of the Config object
++        * @method toString
++        * @return {String} The Config object in string format.
++        */
++        toString: function () {
++            var output = "Config";
++            if (this.owner) {
++                output += " [" + this.owner.toString() + "]";
++            }
++            return output;
++        },
++        
++        /**
++        * Returns a string representation of the Config object's current 
++        * CustomEvent queue
++        * @method outputEventQueue
++        * @return {String} The string list of CustomEvents currently queued 
++        * for execution
++        */
++        outputEventQueue: function () {
++
++            var output = "",
++                queueItem,
++                q,
++                nQueue = this.eventQueue.length;
++              
++            for (q = 0; q < nQueue; q++) {
++                queueItem = this.eventQueue[q];
++                if (queueItem) {
++                    output += queueItem[0] + "=" + queueItem[1] + ", ";
++                }
++            }
++            return output;
++        },
++
++        /**
++        * Sets all properties to null, unsubscribes all listeners from each 
++        * property's change event and all listeners from the configChangedEvent.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var oConfig = this.config,
++                sProperty,
++                oProperty;
++
++
++            for (sProperty in oConfig) {
++            
++                if (Lang.hasOwnProperty(oConfig, sProperty)) {
++
++                    oProperty = oConfig[sProperty];
++
++                    oProperty.event.unsubscribeAll();
++                    oProperty.event = null;
++
++                }
++            
++            }
++            
++            this.configChangedEvent.unsubscribeAll();
++            
++            this.configChangedEvent = null;
++            this.owner = null;
++            this.config = null;
++            this.initialConfig = null;
++            this.eventQueue = null;
++        
++        }
++
++    };
++    
++    
++    
++    /**
++    * Checks to determine if a particular function/Object pair are already 
++    * subscribed to the specified CustomEvent
++    * @method YAHOO.util.Config.alreadySubscribed
++    * @static
++    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
++    * the subscriptions
++    * @param {Function} fn The function to look for in the subscribers list
++    * @param {Object} obj The execution scope Object for the subscription
++    * @return {Boolean} true, if the function/Object pair is already subscribed 
++    * to the CustomEvent passed in
++    */
++    Config.alreadySubscribed = function (evt, fn, obj) {
++    
++        var nSubscribers = evt.subscribers.length,
++            subsc,
++            i;
++
++        if (nSubscribers > 0) {
++            i = nSubscribers - 1;
++            do {
++                subsc = evt.subscribers[i];
++                if (subsc && subsc.obj == obj && subsc.fn == fn) {
++                    return true;
++                }
++            }
++            while (i--);
++        }
++
++        return false;
++
++    };
++
++    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * The Container family of components is designed to enable developers to 
++    * create different kinds of content-containing modules on the web. Module 
++    * and Overlay are the most basic containers, and they can be used directly 
++    * or extended to build custom containers. Also part of the Container family 
++    * are four UI controls that extend Module and Overlay: Tooltip, Panel, 
++    * Dialog, and SimpleDialog.
++    * @module container
++    * @title Container
++    * @requires yahoo, dom, event 
++    * @optional dragdrop, animation, button
++    */
++    
++    /**
++    * Module is a JavaScript representation of the Standard Module Format. 
++    * Standard Module Format is a simple standard for markup containers where 
++    * child nodes representing the header, body, and footer of the content are 
++    * denoted using the CSS classes "hd", "bd", and "ft" respectively. 
++    * Module is the base class for all other classes in the YUI 
++    * Container package.
++    * @namespace YAHOO.widget
++    * @class Module
++    * @constructor
++    * @param {String} el The element ID representing the Module <em>OR</em>
++    * @param {HTMLElement} el The element representing the Module
++    * @param {Object} userConfig The configuration Object literal containing 
++    * the configuration that should be set for this module. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Module = function (el, userConfig) {
++        if (el) {
++            this.init(el, userConfig);
++        } else {
++            YAHOO.log("No element or element ID specified" + 
++                " for Module instantiation", "error");
++        }
++    };
++
++    var Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        UA = YAHOO.env.ua,
++
++        m_oModuleTemplate,
++        m_oHeaderTemplate,
++        m_oBodyTemplate,
++        m_oFooterTemplate,
++
++        /**
++        * Constant representing the name of the Module's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_INIT": "beforeInit",
++            "INIT": "init",
++            "APPEND": "append",
++            "BEFORE_RENDER": "beforeRender",
++            "RENDER": "render",
++            "CHANGE_HEADER": "changeHeader",
++            "CHANGE_BODY": "changeBody",
++            "CHANGE_FOOTER": "changeFooter",
++            "CHANGE_CONTENT": "changeContent",
++            "DESTROY": "destroy",
++            "BEFORE_SHOW": "beforeShow",
++            "SHOW": "show",
++            "BEFORE_HIDE": "beforeHide",
++            "HIDE": "hide"
++        },
++            
++        /**
++        * Constant representing the Module's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++        
++            "VISIBLE": { 
++                key: "visible", 
++                value: true, 
++                validator: YAHOO.lang.isBoolean 
++            },
++
++            "EFFECT": {
++                key: "effect",
++                suppressEvent: true,
++                supercedes: ["visible"]
++            },
++
++            "MONITOR_RESIZE": {
++                key: "monitorresize",
++                value: true
++            },
++
++            "APPEND_TO_DOCUMENT_BODY": {
++                key: "appendtodocumentbody",
++                value: false
++            }
++        };
++
++    /**
++    * Constant representing the prefix path to use for non-secure images
++    * @property YAHOO.widget.Module.IMG_ROOT
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT = null;
++    
++    /**
++    * Constant representing the prefix path to use for securely served images
++    * @property YAHOO.widget.Module.IMG_ROOT_SSL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT_SSL = null;
++    
++    /**
++    * Constant for the default CSS class name that represents a Module
++    * @property YAHOO.widget.Module.CSS_MODULE
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_MODULE = "yui-module";
++    
++    /**
++    * Constant representing the module header
++    * @property YAHOO.widget.Module.CSS_HEADER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_HEADER = "hd";
++
++    /**
++    * Constant representing the module body
++    * @property YAHOO.widget.Module.CSS_BODY
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_BODY = "bd";
++    
++    /**
++    * Constant representing the module footer
++    * @property YAHOO.widget.Module.CSS_FOOTER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_FOOTER = "ft";
++    
++    /**
++    * Constant representing the url for the "src" attribute of the iframe 
++    * used to monitor changes to the browser's base font size
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
++
++    /**
++    * Constant representing the buffer amount (in pixels) to use when positioning
++    * the text resize monitor offscreen. The resize monitor is positioned
++    * offscreen by an amount eqaul to its offsetHeight + the buffer value.
++    * 
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_BUFFER
++    * @static
++    * @type Number
++    */
++    // Set to 1, to work around pixel offset in IE8, which increases when zoom is used
++    Module.RESIZE_MONITOR_BUFFER = 1;
++
++    /**
++    * Singleton CustomEvent fired when the font size is changed in the browser.
++    * Opera's "zoom" functionality currently does not support text 
++    * size detection.
++    * @event YAHOO.widget.Module.textResizeEvent
++    */
++    Module.textResizeEvent = new CustomEvent("textResize");
++
++    /**
++     * Helper utility method, which forces a document level 
++     * redraw for Opera, which can help remove repaint
++     * irregularities after applying DOM changes.
++     *
++     * @method YAHOO.widget.Module.forceDocumentRedraw
++     * @static
++     */
++    Module.forceDocumentRedraw = function() {
++        var docEl = document.documentElement;
++        if (docEl) {
++            docEl.className += " ";
++            docEl.className = YAHOO.lang.trim(docEl.className);
++        }
++    };
++
++    function createModuleTemplate() {
++
++        if (!m_oModuleTemplate) {
++            m_oModuleTemplate = document.createElement("div");
++            
++            m_oModuleTemplate.innerHTML = ("<div class=\"" + 
++                Module.CSS_HEADER + "\"></div>" + "<div class=\"" + 
++                Module.CSS_BODY + "\"></div><div class=\"" + 
++                Module.CSS_FOOTER + "\"></div>");
++
++            m_oHeaderTemplate = m_oModuleTemplate.firstChild;
++            m_oBodyTemplate = m_oHeaderTemplate.nextSibling;
++            m_oFooterTemplate = m_oBodyTemplate.nextSibling;
++        }
++
++        return m_oModuleTemplate;
++    }
++
++    function createHeader() {
++        if (!m_oHeaderTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oHeaderTemplate.cloneNode(false));
++    }
++
++    function createBody() {
++        if (!m_oBodyTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oBodyTemplate.cloneNode(false));
++    }
++
++    function createFooter() {
++        if (!m_oFooterTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oFooterTemplate.cloneNode(false));
++    }
++
++    Module.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: Module,
++        
++        /**
++        * The main module element that contains the header, body, and footer
++        * @property element
++        * @type HTMLElement
++        */
++        element: null,
++
++        /**
++        * The header element, denoted with CSS class "hd"
++        * @property header
++        * @type HTMLElement
++        */
++        header: null,
++
++        /**
++        * The body element, denoted with CSS class "bd"
++        * @property body
++        * @type HTMLElement
++        */
++        body: null,
++
++        /**
++        * The footer element, denoted with CSS class "ft"
++        * @property footer
++        * @type HTMLElement
++        */
++        footer: null,
++
++        /**
++        * The id of the element
++        * @property id
++        * @type String
++        */
++        id: null,
++
++        /**
++        * A string representing the root path for all images created by
++        * a Module instance.
++        * @deprecated It is recommend that any images for a Module be applied
++        * via CSS using the "background-image" property.
++        * @property imageRoot
++        * @type String
++        */
++        imageRoot: Module.IMG_ROOT,
++
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired prior to class initalization.
++            * @event beforeInitEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */
++            this.beforeInitEvent = this.createEvent(EVENT_TYPES.BEFORE_INIT);
++            this.beforeInitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after class initalization.
++            * @event initEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */  
++            this.initEvent = this.createEvent(EVENT_TYPES.INIT);
++            this.initEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is appended to the DOM
++            * @event appendEvent
++            */
++            this.appendEvent = this.createEvent(EVENT_TYPES.APPEND);
++            this.appendEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is rendered
++            * @event beforeRenderEvent
++            */
++            this.beforeRenderEvent = this.createEvent(EVENT_TYPES.BEFORE_RENDER);
++            this.beforeRenderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired after the Module is rendered
++            * @event renderEvent
++            */
++            this.renderEvent = this.createEvent(EVENT_TYPES.RENDER);
++            this.renderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the header content of the Module 
++            * is modified
++            * @event changeHeaderEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new header content
++            */
++            this.changeHeaderEvent = this.createEvent(EVENT_TYPES.CHANGE_HEADER);
++            this.changeHeaderEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the body content of the Module is modified
++            * @event changeBodyEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new body content
++            */  
++            this.changeBodyEvent = this.createEvent(EVENT_TYPES.CHANGE_BODY);
++            this.changeBodyEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the footer content of the Module 
++            * is modified
++            * @event changeFooterEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new footer content
++            */
++            this.changeFooterEvent = this.createEvent(EVENT_TYPES.CHANGE_FOOTER);
++            this.changeFooterEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the content of the Module is modified
++            * @event changeContentEvent
++            */
++            this.changeContentEvent = this.createEvent(EVENT_TYPES.CHANGE_CONTENT);
++            this.changeContentEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is destroyed
++            * @event destroyEvent
++            */
++            this.destroyEvent = this.createEvent(EVENT_TYPES.DESTROY);
++            this.destroyEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is shown
++            * @event beforeShowEvent
++            */
++            this.beforeShowEvent = this.createEvent(EVENT_TYPES.BEFORE_SHOW);
++            this.beforeShowEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is shown
++            * @event showEvent
++            */
++            this.showEvent = this.createEvent(EVENT_TYPES.SHOW);
++            this.showEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is hidden
++            * @event beforeHideEvent
++            */
++            this.beforeHideEvent = this.createEvent(EVENT_TYPES.BEFORE_HIDE);
++            this.beforeHideEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is hidden
++            * @event hideEvent
++            */
++            this.hideEvent = this.createEvent(EVENT_TYPES.HIDE);
++            this.hideEvent.signature = SIGNATURE;
++        }, 
++
++        /**
++        * String representing the current user-agent platform
++        * @property platform
++        * @type String
++        */
++        platform: function () {
++            var ua = navigator.userAgent.toLowerCase();
++
++            if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
++                return "windows";
++            } else if (ua.indexOf("macintosh") != -1) {
++                return "mac";
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * String representing the user-agent of the browser
++        * @deprecated Use YAHOO.env.ua
++        * @property browser
++        * @type String
++        */
++        browser: function () {
++            var ua = navigator.userAgent.toLowerCase();
++            /*
++                 Check Opera first in case of spoof and check Safari before
++                 Gecko since Safari's user agent string includes "like Gecko"
++            */
++            if (ua.indexOf('opera') != -1) { 
++                return 'opera';
++            } else if (ua.indexOf('msie 7') != -1) {
++                return 'ie7';
++            } else if (ua.indexOf('msie') != -1) {
++                return 'ie';
++            } else if (ua.indexOf('safari') != -1) { 
++                return 'safari';
++            } else if (ua.indexOf('gecko') != -1) {
++                return 'gecko';
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Boolean representing whether or not the current browsing context is 
++        * secure (https)
++        * @property isSecure
++        * @type Boolean
++        */
++        isSecure: function () {
++            if (window.location.href.toLowerCase().indexOf("https") === 0) {
++                return true;
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        */
++        initDefaultConfig: function () {
++            // Add properties //
++            /**
++            * Specifies whether the Module is visible on the page.
++            * @config visible
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.VISIBLE.key, {
++                handler: this.configVisible, 
++                value: DEFAULT_CONFIG.VISIBLE.value, 
++                validator: DEFAULT_CONFIG.VISIBLE.validator
++            });
++
++            /**
++            * <p>
++            * Object or array of objects representing the ContainerEffect 
++            * classes that are active for animating the container.
++            * </p>
++            * <p>
++            * <strong>NOTE:</strong> Although this configuration 
++            * property is introduced at the Module level, an out of the box
++            * implementation is not shipped for the Module class so setting
++            * the proroperty on the Module class has no effect. The Overlay 
++            * class is the first class to provide out of the box ContainerEffect 
++            * support.
++            * </p>
++            * @config effect
++            * @type Object
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.EFFECT.key, {
++                suppressEvent: DEFAULT_CONFIG.EFFECT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.EFFECT.supercedes
++            });
++
++            /**
++            * Specifies whether to create a special proxy iframe to monitor 
++            * for user font resizing in the document
++            * @config monitorresize
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.MONITOR_RESIZE.key, {
++                handler: this.configMonitorResize,
++                value: DEFAULT_CONFIG.MONITOR_RESIZE.value
++            });
++
++            /**
++            * Specifies if the module should be rendered as the first child 
++            * of document.body or appended as the last child when render is called
++            * with document.body as the "appendToNode".
++            * <p>
++            * Appending to the body while the DOM is still being constructed can 
++            * lead to Operation Aborted errors in IE hence this flag is set to 
++            * false by default.
++            * </p>
++            * 
++            * @config appendtodocumentbody
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.key, {
++                value: DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.value
++            });
++        },
++
++        /**
++        * The Module class's initialization method, which is executed for
++        * Module and all of its subclasses. 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.
++        * <p>
++        * If the element passed in does not have an id, one will be generated
++        * for it.
++        * </p>
++        * @method init
++        * @param {String} el The element ID representing the Module <em>OR</em>
++        * @param {HTMLElement} el The element representing the Module
++        * @param {Object} userConfig The configuration Object literal 
++        * containing the configuration that should be set for this module. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            var elId, child;
++
++            this.initEvents();
++            this.beforeInitEvent.fire(Module);
++
++            /**
++            * The Module's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type YAHOO.util.Config
++            */
++            this.cfg = new Config(this);
++
++            if (this.isSecure) {
++                this.imageRoot = Module.IMG_ROOT_SSL;
++            }
++
++            if (typeof el == "string") {
++                elId = el;
++                el = document.getElementById(el);
++                if (! el) {
++                    el = (createModuleTemplate()).cloneNode(false);
++                    el.id = elId;
++                }
++            }
++
++            this.id = Dom.generateId(el);
++            this.element = el;
++
++            child = this.element.firstChild;
++
++            if (child) {
++                var fndHd = false, fndBd = false, fndFt = false;
++                do {
++                    // We're looking for elements
++                    if (1 == child.nodeType) {
++                        if (!fndHd && Dom.hasClass(child, Module.CSS_HEADER)) {
++                            this.header = child;
++                            fndHd = true;
++                        } else if (!fndBd && Dom.hasClass(child, Module.CSS_BODY)) {
++                            this.body = child;
++                            fndBd = true;
++                        } else if (!fndFt && Dom.hasClass(child, Module.CSS_FOOTER)){
++                            this.footer = child;
++                            fndFt = true;
++                        }
++                    }
++                } while ((child = child.nextSibling));
++            }
++
++            this.initDefaultConfig();
++
++            Dom.addClass(this.element, Module.CSS_MODULE);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            /*
++                Subscribe to the fireQueue() method of Config so that any 
++                queued configuration changes are excecuted upon render of 
++                the Module
++            */ 
++
++            if (!Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) {
++                this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true);
++            }
++
++            this.initEvent.fire(Module);
++        },
++
++        /**
++        * Initialize an empty IFRAME that is placed out of the visible area 
++        * that can be used to detect text resize.
++        * @method initResizeMonitor
++        */
++        initResizeMonitor: function () {
++
++            var isGeckoWin = (UA.gecko && this.platform == "windows");
++            if (isGeckoWin) {
++                // Help prevent spinning loading icon which 
++                // started with FireFox 2.0.0.8/Win
++                var self = this;
++                setTimeout(function(){self._initResizeMonitor();}, 0);
++            } else {
++                this._initResizeMonitor();
++            }
++        },
++
++        /**
++         * Create and initialize the text resize monitoring iframe.
++         * 
++         * @protected
++         * @method _initResizeMonitor
++         */
++        _initResizeMonitor : function() {
++
++            var oDoc, 
++                oIFrame, 
++                sHTML;
++
++            function fireTextResize() {
++                Module.textResizeEvent.fire();
++            }
++
++            if (!UA.opera) {
++                oIFrame = Dom.get("_yuiResizeMonitor");
++
++                var supportsCWResize = this._supportsCWResize();
++
++                if (!oIFrame) {
++                    oIFrame = document.createElement("iframe");
++
++                    if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && UA.ie) {
++                        oIFrame.src = Module.RESIZE_MONITOR_SECURE_URL;
++                    }
++
++                    if (!supportsCWResize) {
++                        // Can't monitor on contentWindow, so fire from inside iframe
++                        sHTML = ["<html><head><script ",
++                                 "type=\"text/javascript\">",
++                                 "window.onresize=function(){window.parent.",
++                                 "YAHOO.widget.Module.textResizeEvent.",
++                                 "fire();};<",
++                                 "\/script></head>",
++                                 "<body></body></html>"].join('');
++
++                        oIFrame.src = "data:text/html;charset=utf-8," + encodeURIComponent(sHTML);
++                    }
++
++                    oIFrame.id = "_yuiResizeMonitor";
++                    oIFrame.title = "Text Resize Monitor";
++                    /*
++                        Need to set "position" property before inserting the 
++                        iframe into the document or Safari's status bar will 
++                        forever indicate the iframe is loading 
++                        (See YUILibrary bug #1723064)
++                    */
++                    oIFrame.style.position = "absolute";
++                    oIFrame.style.visibility = "hidden";
++
++                    var db = document.body,
++                        fc = db.firstChild;
++                    if (fc) {
++                        db.insertBefore(oIFrame, fc);
++                    } else {
++                        db.appendChild(oIFrame);
++                    }
++
++                    // Setting the background color fixes an issue with IE6/IE7, where
++                    // elements in the DOM, with -ve margin-top which positioned them 
++                    // offscreen (so they would be overlapped by the iframe and its -ve top
++                    // setting), would have their -ve margin-top ignored, when the iframe 
++                    // was added.
++                    oIFrame.style.backgroundColor = "transparent";
++
++                    oIFrame.style.borderWidth = "0";
++                    oIFrame.style.width = "2em";
++                    oIFrame.style.height = "2em";
++                    oIFrame.style.left = "0";
++                    oIFrame.style.top = (-1 * (oIFrame.offsetHeight + Module.RESIZE_MONITOR_BUFFER)) + "px";
++                    oIFrame.style.visibility = "visible";
++
++                    /*
++                       Don't open/close the document for Gecko like we used to, since it
++                       leads to duplicate cookies. (See YUILibrary bug #1721755)
++                    */
++                    if (UA.webkit) {
++                        oDoc = oIFrame.contentWindow.document;
++                        oDoc.open();
++                        oDoc.close();
++                    }
++                }
++
++                if (oIFrame && oIFrame.contentWindow) {
++                    Module.textResizeEvent.subscribe(this.onDomResize, this, true);
++
++                    if (!Module.textResizeInitialized) {
++                        if (supportsCWResize) {
++                            if (!Event.on(oIFrame.contentWindow, "resize", fireTextResize)) {
++                                /*
++                                     This will fail in IE if document.domain has 
++                                     changed, so we must change the listener to 
++                                     use the oIFrame element instead
++                                */
++                                Event.on(oIFrame, "resize", fireTextResize);
++                            }
++                        }
++                        Module.textResizeInitialized = true;
++                    }
++                    this.resizeMonitor = oIFrame;
++                }
++            }
++        },
++
++        /**
++         * Text resize monitor helper method.
++         * Determines if the browser supports resize events on iframe content windows.
++         * 
++         * @private
++         * @method _supportsCWResize
++         */
++        _supportsCWResize : function() {
++            /*
++                Gecko 1.8.0 (FF1.5), 1.8.1.0-5 (FF2) won't fire resize on contentWindow.
++                Gecko 1.8.1.6+ (FF2.0.0.6+) and all other browsers will fire resize on contentWindow.
++
++                We don't want to start sniffing for patch versions, so fire textResize the same
++                way on all FF2 flavors
++             */
++            var bSupported = true;
++            if (UA.gecko && UA.gecko <= 1.8) {
++                bSupported = false;
++            }
++            return bSupported;
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The DOM resize event
++        * @param {Object} obj The scope object passed to the handler
++        */
++        onDomResize: function (e, obj) {
++
++            var nTop = -1 * (this.resizeMonitor.offsetHeight + Module.RESIZE_MONITOR_BUFFER);
++
++            this.resizeMonitor.style.top = nTop + "px";
++            this.resizeMonitor.style.left = "0";
++        },
++
++        /**
++        * Sets the Module's header content to the string specified, or appends 
++        * the passed element to the header. If no header is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the header.
++        * 
++        * @method setHeader
++        * @param {String} headerContent The string used to set the header.
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the header innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} headerContent The HTMLElement to append to 
++        * <em>OR</em>
++        * @param {DocumentFragment} headerContent The document fragment 
++        * containing elements which are to be added to the header
++        */
++        setHeader: function (headerContent) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            if (headerContent.nodeName) {
++                oHeader.innerHTML = "";
++                oHeader.appendChild(headerContent);
++            } else {
++                oHeader.innerHTML = headerContent;
++            }
++
++            if (this._rendered) {
++                this._renderHeader();
++            }
++
++            this.changeHeaderEvent.fire(headerContent);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Appends the passed element to the header. If no header is present, 
++        * one will be automatically created.
++        * @method appendToHeader
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the header. In the case of a document fragment, the
++        * children of the fragment will be appended to the header.
++        */
++        appendToHeader: function (element) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            oHeader.appendChild(element);
++
++            this.changeHeaderEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Sets the Module's body content to the HTML specified. 
++        * 
++        * If no body is present, one will be automatically created. 
++        * 
++        * An empty string can be passed to the method to clear the contents of the body.
++        * @method setBody
++        * @param {String} bodyContent The HTML used to set the body. 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the body innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} bodyContent The HTMLElement to add as the first and only
++        * child of the body element.
++        * <em>OR</em>
++        * @param {DocumentFragment} bodyContent The document fragment 
++        * containing elements which are to be added to the body
++        */
++        setBody: function (bodyContent) {
++            var oBody = this.body || (this.body = createBody());
++
++            if (bodyContent.nodeName) {
++                oBody.innerHTML = "";
++                oBody.appendChild(bodyContent);
++            } else {
++                oBody.innerHTML = bodyContent;
++            }
++
++            if (this._rendered) {
++                this._renderBody();
++            }
++
++            this.changeBodyEvent.fire(bodyContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the body. If no body is present, one 
++        * will be automatically created.
++        * @method appendToBody
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the body. In the case of a document fragment, the
++        * children of the fragment will be appended to the body.
++        * 
++        */
++        appendToBody: function (element) {
++            var oBody = this.body || (this.body = createBody());
++        
++            oBody.appendChild(element);
++
++            this.changeBodyEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++        
++        /**
++        * Sets the Module's footer content to the HTML specified, or appends 
++        * the passed element to the footer. If no footer is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the footer.
++        * @method setFooter
++        * @param {String} footerContent The HTML used to set the footer 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the footer innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} footerContent The HTMLElement to append to 
++        * the footer
++        * <em>OR</em>
++        * @param {DocumentFragment} footerContent The document fragment containing 
++        * elements which are to be added to the footer
++        */
++        setFooter: function (footerContent) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            if (footerContent.nodeName) {
++                oFooter.innerHTML = "";
++                oFooter.appendChild(footerContent);
++            } else {
++                oFooter.innerHTML = footerContent;
++            }
++
++            if (this._rendered) {
++                this._renderFooter();
++            }
++
++            this.changeFooterEvent.fire(footerContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the footer. If no footer is present, 
++        * one will be automatically created.
++        * @method appendToFooter
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the footer. In the case of a document fragment, the
++        * children of the fragment will be appended to the footer
++        */
++        appendToFooter: function (element) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            oFooter.appendChild(element);
++
++            this.changeFooterEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Renders the Module by inserting the elements that are not already 
++        * in the main Module into their correct places. Optionally appends 
++        * the Module to the specified node prior to the render's execution. 
++        * <p>
++        * For Modules without existing markup, the appendToNode argument 
++        * is REQUIRED. If this argument is ommitted and the current element is 
++        * not present in the document, the function will return false, 
++        * indicating that the render was a failure.
++        * </p>
++        * <p>
++        * NOTE: As of 2.3.1, if the appendToNode is the document's body element
++        * then the module is rendered as the first child of the body element, 
++        * and not appended to it, to avoid Operation Aborted errors in IE when 
++        * rendering the module before window's load event is fired. You can 
++        * use the appendtodocumentbody configuration property to change this 
++        * to append to document.body if required.
++        * </p>
++        * @method render
++        * @param {String} appendToNode The element id to which the Module 
++        * should be appended to prior to rendering <em>OR</em>
++        * @param {HTMLElement} appendToNode The element to which the Module 
++        * should be appended to prior to rendering
++        * @param {HTMLElement} moduleElement OPTIONAL. The element that 
++        * represents the actual Standard Module container.
++        * @return {Boolean} Success or failure of the render
++        */
++        render: function (appendToNode, moduleElement) {
++
++            var me = this;
++
++            function appendTo(parentNode) {
++                if (typeof parentNode == "string") {
++                    parentNode = document.getElementById(parentNode);
++                }
++
++                if (parentNode) {
++                    me._addToParent(parentNode, me.element);
++                    me.appendEvent.fire();
++                }
++            }
++
++            this.beforeRenderEvent.fire();
++
++            if (! moduleElement) {
++                moduleElement = this.element;
++            }
++
++            if (appendToNode) {
++                appendTo(appendToNode);
++            } else { 
++                // No node was passed in. If the element is not already in the Dom, this fails
++                if (! Dom.inDocument(this.element)) {
++                    YAHOO.log("Render failed. Must specify appendTo node if " + " Module isn't already in the DOM.", "error");
++                    return false;
++                }
++            }
++
++            this._renderHeader(moduleElement);
++            this._renderBody(moduleElement);
++            this._renderFooter(moduleElement);
++
++            this._rendered = true;
++
++            this.renderEvent.fire();
++            return true;
++        },
++
++        /**
++         * Renders the currently set header into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderHeader
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderHeader: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            // Need to get everything into the DOM if it isn't already
++            if (this.header && !Dom.inDocument(this.header)) {
++                // There is a header, but it's not in the DOM yet. Need to add it.
++                var firstChild = moduleElement.firstChild;
++                if (firstChild) {
++                    moduleElement.insertBefore(this.header, firstChild);
++                } else {
++                    moduleElement.appendChild(this.header);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set body into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderBody
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element.
++         */
++        _renderBody: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.body && !Dom.inDocument(this.body)) {
++                // There is a body, but it's not in the DOM yet. Need to add it.
++                if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
++                    moduleElement.insertBefore(this.body, this.footer);
++                } else {
++                    moduleElement.appendChild(this.body);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set footer into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderFooter
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderFooter: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.footer && !Dom.inDocument(this.footer)) {
++                // There is a footer, but it's not in the DOM yet. Need to add it.
++                moduleElement.appendChild(this.footer);
++            }
++        },
++
++        /**
++        * Removes the Module element from the DOM and sets all child elements 
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var parent;
++
++            if (this.element) {
++                Event.purgeElement(this.element, true);
++                parent = this.element.parentNode;
++            }
++
++            if (parent) {
++                parent.removeChild(this.element);
++            }
++        
++            this.element = null;
++            this.header = null;
++            this.body = null;
++            this.footer = null;
++
++            Module.textResizeEvent.unsubscribe(this.onDomResize, this);
++
++            this.cfg.destroy();
++            this.cfg = null;
++
++            this.destroyEvent.fire();
++        },
++
++        /**
++        * Shows the Module element by setting the visible configuration 
++        * property to true. Also fires two events: beforeShowEvent prior to 
++        * the visibility change, and showEvent after.
++        * @method show
++        */
++        show: function () {
++            this.cfg.setProperty("visible", true);
++        },
++
++        /**
++        * Hides the Module element by setting the visible configuration 
++        * property to false. Also fires two events: beforeHideEvent prior to 
++        * the visibility change, and hideEvent after.
++        * @method hide
++        */
++        hide: function () {
++            this.cfg.setProperty("visible", false);
++        },
++        
++        // BUILT-IN EVENT HANDLERS FOR MODULE //
++        /**
++        * Default event handler for changing the visibility property of a 
++        * Module. By default, this is achieved by switching the "display" style 
++        * between "block" and "none".
++        * This method is responsible for firing showEvent and hideEvent.
++        * @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.
++        * @method configVisible
++        */
++        configVisible: function (type, args, obj) {
++            var visible = args[0];
++            if (visible) {
++                this.beforeShowEvent.fire();
++                Dom.setStyle(this.element, "display", "block");
++                this.showEvent.fire();
++            } else {
++                this.beforeHideEvent.fire();
++                Dom.setStyle(this.element, "display", "none");
++                this.hideEvent.fire();
++            }
++        },
++
++        /**
++        * Default event handler for the "monitorresize" configuration property
++        * @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.
++        * @method configMonitorResize
++        */
++        configMonitorResize: function (type, args, obj) {
++            var monitor = args[0];
++            if (monitor) {
++                this.initResizeMonitor();
++            } else {
++                Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
++                this.resizeMonitor = null;
++            }
++        },
++
++        /**
++         * This method is a protected helper, used when constructing the DOM structure for the module 
++         * to account for situations which may cause Operation Aborted errors in IE. It should not 
++         * be used for general DOM construction.
++         * <p>
++         * If the parentNode is not document.body, the element is appended as the last element.
++         * </p>
++         * <p>
++         * If the parentNode is document.body the element is added as the first child to help
++         * prevent Operation Aborted errors in IE.
++         * </p>
++         *
++         * @param {parentNode} The HTML element to which the element will be added
++         * @param {element} The HTML element to be added to parentNode's children
++         * @method _addToParent
++         * @protected
++         */
++        _addToParent: function(parentNode, element) {
++            if (!this.cfg.getProperty("appendtodocumentbody") && parentNode === document.body && parentNode.firstChild) {
++                parentNode.insertBefore(element, parentNode.firstChild);
++            } else {
++                parentNode.appendChild(element);
++            }
++        },
++
++        /**
++        * Returns a String representation of the Object.
++        * @method toString
++        * @return {String} The string representation of the Module
++        */
++        toString: function () {
++            return "Module " + this.id;
++        }
++    };
++
++    YAHOO.lang.augmentProto(Module, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * Overlay is a Module that is absolutely positioned above the page flow. It 
++    * has convenience methods for positioning and sizing, as well as options for 
++    * controlling zIndex and constraining the Overlay's position to the current 
++    * visible viewport. Overlay also contains a dynamicly generated IFRAME which 
++    * is placed beneath it for Internet Explorer 6 and 5.x so that it will be 
++    * properly rendered above SELECT elements.
++    * @namespace YAHOO.widget
++    * @class Overlay
++    * @extends YAHOO.widget.Module
++    * @param {String} el The element ID representing the Overlay <em>OR</em>
++    * @param {HTMLElement} el The element representing the Overlay
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Overlay. See configuration 
++    * documentation for more details.
++    * @constructor
++    */
++    YAHOO.widget.Overlay = function (el, userConfig) {
++        YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        UA = YAHOO.env.ua,
++        Overlay = YAHOO.widget.Overlay,
++
++        _SUBSCRIBE = "subscribe",
++        _UNSUBSCRIBE = "unsubscribe",
++        _CONTAINED = "contained",
++
++        m_oIFrameTemplate,
++
++        /**
++        * Constant representing the name of the Overlay's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_MOVE": "beforeMove",
++            "MOVE": "move"
++        },
++
++        /**
++        * Constant representing the Overlay's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "X": { 
++                key: "x", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "Y": { 
++                key: "y", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "XY": { 
++                key: "xy", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "CONTEXT": { 
++                key: "context", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "FIXED_CENTER": { 
++                key: "fixedcenter", 
++                value: false, 
++                supercedes: ["iframe", "visible"] 
++            },
++
++            "WIDTH": { 
++                key: "width",
++                suppressEvent: true,
++                supercedes: ["context", "fixedcenter", "iframe"]
++            }, 
++
++            "HEIGHT": { 
++                key: "height", 
++                suppressEvent: true, 
++                supercedes: ["context", "fixedcenter", "iframe"] 
++            },
++
++            "AUTO_FILL_HEIGHT" : {
++                key: "autofillheight",
++                supercedes: ["height"],
++                value:"body"
++            },
++
++            "ZINDEX": { 
++                key: "zindex", 
++                value: null 
++            },
++
++            "CONSTRAIN_TO_VIEWPORT": { 
++                key: "constraintoviewport", 
++                value: false, 
++                validator: Lang.isBoolean, 
++                supercedes: ["iframe", "x", "y", "xy"]
++            }, 
++
++            "IFRAME": { 
++                key: "iframe", 
++                value: (UA.ie == 6 ? true : false), 
++                validator: Lang.isBoolean, 
++                supercedes: ["zindex"] 
++            },
++
++            "PREVENT_CONTEXT_OVERLAP": {
++                key: "preventcontextoverlap",
++                value: false,
++                validator: Lang.isBoolean,  
++                supercedes: ["constraintoviewport"]
++            }
++
++        };
++
++    /**
++    * The URL that will be placed in the iframe
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.IFRAME_SRC = "javascript:false;";
++
++    /**
++    * Number representing how much the iframe shim should be offset from each 
++    * side of an Overlay instance, in pixels.
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @default 3
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.IFRAME_OFFSET = 3;
++
++    /**
++    * Number representing the minimum distance an Overlay instance should be 
++    * positioned relative to the boundaries of the browser's viewport, in pixels.
++    * @property YAHOO.widget.Overlay.VIEWPORT_OFFSET
++    * @default 10
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.VIEWPORT_OFFSET = 10;
++
++    /**
++    * Constant representing the top left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_LEFT = "tl";
++
++    /**
++    * Constant representing the top right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_RIGHT = "tr";
++
++    /**
++    * Constant representing the top bottom left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_LEFT = "bl";
++
++    /**
++    * Constant representing the bottom right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_RIGHT = "br";
++
++    Overlay.PREVENT_OVERLAP_X = {
++        "tltr": true,
++        "blbr": true,
++        "brbl": true,
++        "trtl": true
++    };
++            
++    Overlay.PREVENT_OVERLAP_Y = {
++        "trbr": true,
++        "tlbl": true,
++        "bltl": true,
++        "brtr": true
++    };
++
++    /**
++    * Constant representing the default CSS class used for an Overlay
++    * @property YAHOO.widget.Overlay.CSS_OVERLAY
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_OVERLAY = "yui-overlay";
++
++    /**
++    * Constant representing the default hidden CSS class used for an Overlay. This class is 
++    * applied to the overlay's outer DIV whenever it's hidden.
++    *
++    * @property YAHOO.widget.Overlay.CSS_HIDDEN
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_HIDDEN = "yui-overlay-hidden";
++
++    /**
++    * Constant representing the default CSS class used for an Overlay iframe shim.
++    * 
++    * @property YAHOO.widget.Overlay.CSS_IFRAME
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_IFRAME = "yui-overlay-iframe";
++
++    /**
++     * Constant representing the names of the standard module elements
++     * used in the overlay.
++     * @property YAHOO.widget.Overlay.STD_MOD_RE
++     * @static
++     * @final
++     * @type RegExp
++     */
++    Overlay.STD_MOD_RE = /^\s*?(body|footer|header)\s*?$/i;
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for 
++    * window scroll
++    * @event YAHOO.widget.Overlay.windowScrollEvent
++    */
++    Overlay.windowScrollEvent = new CustomEvent("windowScroll");
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for
++    * window resize
++    * @event YAHOO.widget.Overlay.windowResizeEvent
++    */
++    Overlay.windowResizeEvent = new CustomEvent("windowResize");
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window scroll
++    * @method YAHOO.widget.Overlay.windowScrollHandler
++    * @static
++    * @param {DOMEvent} e The DOM scroll event
++    */
++    Overlay.windowScrollHandler = function (e) {
++        var t = Event.getTarget(e);
++
++        // - Webkit (Safari 2/3) and Opera 9.2x bubble scroll events from elements to window
++        // - FF2/3 and IE6/7, Opera 9.5x don't bubble scroll events from elements to window
++        // - IE doesn't recognize scroll registered on the document.
++        //
++        // Also, when document view is scrolled, IE doesn't provide a target, 
++        // rest of the browsers set target to window.document, apart from opera 
++        // which sets target to window.
++        if (!t || t === window || t === window.document) {
++            if (UA.ie) {
++
++                if (! window.scrollEnd) {
++                    window.scrollEnd = -1;
++                }
++
++                clearTimeout(window.scrollEnd);
++        
++                window.scrollEnd = setTimeout(function () { 
++                    Overlay.windowScrollEvent.fire(); 
++                }, 1);
++        
++            } else {
++                Overlay.windowScrollEvent.fire();
++            }
++        }
++    };
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window resize
++    * @method YAHOO.widget.Overlay.windowResizeHandler
++    * @static
++    * @param {DOMEvent} e The DOM resize event
++    */
++    Overlay.windowResizeHandler = function (e) {
++
++        if (UA.ie) {
++            if (! window.resizeEnd) {
++                window.resizeEnd = -1;
++            }
++
++            clearTimeout(window.resizeEnd);
++
++            window.resizeEnd = setTimeout(function () {
++                Overlay.windowResizeEvent.fire(); 
++            }, 100);
++        } else {
++            Overlay.windowResizeEvent.fire();
++        }
++    };
++
++    /**
++    * A boolean that indicated whether the window resize and scroll events have 
++    * already been subscribed to.
++    * @property YAHOO.widget.Overlay._initialized
++    * @private
++    * @type Boolean
++    */
++    Overlay._initialized = null;
++
++    if (Overlay._initialized === null) {
++        Event.on(window, "scroll", Overlay.windowScrollHandler);
++        Event.on(window, "resize", Overlay.windowResizeHandler);
++        Overlay._initialized = true;
++    }
++
++    /**
++     * Internal map of special event types, which are provided
++     * by the instance. It maps the event type to the custom event 
++     * instance. Contains entries for the "windowScroll", "windowResize" and
++     * "textResize" static container events.
++     *
++     * @property YAHOO.widget.Overlay._TRIGGER_MAP
++     * @type Object
++     * @static
++     * @private
++     */
++    Overlay._TRIGGER_MAP = {
++        "windowScroll" : Overlay.windowScrollEvent,
++        "windowResize" : Overlay.windowResizeEvent,
++        "textResize"   : Module.textResizeEvent
++    };
++
++    YAHOO.extend(Overlay, Module, {
++
++        /**
++         * <p>
++         * Array of default event types which will trigger
++         * context alignment for the Overlay class.
++         * </p>
++         * <p>The array is empty by default for Overlay,
++         * but maybe populated in future releases, so classes extending
++         * Overlay which need to define their own set of CONTEXT_TRIGGERS
++         * should concatenate their super class's prototype.CONTEXT_TRIGGERS 
++         * value with their own array of values.
++         * </p>
++         * <p>
++         * E.g.:
++         * <code>CustomOverlay.prototype.CONTEXT_TRIGGERS = YAHOO.widget.Overlay.prototype.CONTEXT_TRIGGERS.concat(["windowScroll"]);</code>
++         * </p>
++         * 
++         * @property CONTEXT_TRIGGERS
++         * @type Array
++         * @final
++         */
++        CONTEXT_TRIGGERS : [],
++
++        /**
++        * The Overlay initialization method, which is executed for Overlay and  
++        * all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the Overlay <em>OR</em>
++        * @param {HTMLElement} el The element representing the Overlay
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Overlay. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                 Note that we don't pass the user config in here yet because we
++                 only want it executed once, at the lowest subclass level
++            */
++
++            Overlay.superclass.init.call(this, el/*, userConfig*/);
++
++            this.beforeInitEvent.fire(Overlay);
++
++            Dom.addClass(this.element, Overlay.CSS_OVERLAY);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            if (this.platform == "mac" && UA.gecko) {
++
++                if (! Config.alreadySubscribed(this.showEvent,
++                    this.showMacGeckoScrollbars, this)) {
++
++                    this.showEvent.subscribe(this.showMacGeckoScrollbars, 
++                        this, true);
++
++                }
++
++                if (! Config.alreadySubscribed(this.hideEvent, 
++                    this.hideMacGeckoScrollbars, this)) {
++
++                    this.hideEvent.subscribe(this.hideMacGeckoScrollbars, 
++                        this, true);
++
++                }
++            }
++
++            this.initEvent.fire(Overlay);
++        },
++        
++        /**
++        * Initializes the custom events for Overlay which are fired  
++        * automatically at appropriate times by the Overlay class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            Overlay.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired before the Overlay is moved.
++            * @event beforeMoveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.beforeMoveEvent = this.createEvent(EVENT_TYPES.BEFORE_MOVE);
++            this.beforeMoveEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Overlay is moved.
++            * @event moveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.moveEvent = this.createEvent(EVENT_TYPES.MOVE);
++            this.moveEvent.signature = SIGNATURE;
++
++        },
++        
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the Overlay's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++    
++            Overlay.superclass.initDefaultConfig.call(this);
++
++            var cfg = this.cfg;
++
++            // Add overlay config properties //
++            
++            /**
++            * The absolute x-coordinate position of the Overlay
++            * @config x
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.X.key, { 
++    
++                handler: this.configX, 
++                validator: DEFAULT_CONFIG.X.validator, 
++                suppressEvent: DEFAULT_CONFIG.X.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.X.supercedes
++    
++            });
++
++            /**
++            * The absolute y-coordinate position of the Overlay
++            * @config y
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.Y.key, {
++
++                handler: this.configY, 
++                validator: DEFAULT_CONFIG.Y.validator, 
++                suppressEvent: DEFAULT_CONFIG.Y.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.Y.supercedes
++
++            });
++
++            /**
++            * An array with the absolute x and y positions of the Overlay
++            * @config xy
++            * @type Number[]
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.XY.key, {
++                handler: this.configXY, 
++                suppressEvent: DEFAULT_CONFIG.XY.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.XY.supercedes
++            });
++
++            /**
++            * <p>
++            * The array of context arguments for context-sensitive positioning. 
++            * </p>
++            *
++            * <p>
++            * The format of the array is: <code>[contextElementOrId, overlayCorner, contextCorner, arrayOfTriggerEvents (optional), xyOffset (optional)]</code>, the
++            * the 5 array elements described in detail below:
++            * </p>
++            *
++            * <dl>
++            * <dt>contextElementOrId &#60;String|HTMLElement&#62;</dt>
++            * <dd>A reference to the context element to which the overlay should be aligned (or it's id).</dd>
++            * <dt>overlayCorner &#60;String&#62;</dt>
++            * <dd>The corner of the overlay which is to be used for alignment. This corner will be aligned to the 
++            * corner of the context element defined by the "contextCorner" entry which follows. Supported string values are: 
++            * "tr" (top right), "tl" (top left), "br" (bottom right), or "bl" (bottom left).</dd>
++            * <dt>contextCorner &#60;String&#62;</dt>
++            * <dd>The corner of the context element which is to be used for alignment. Supported string values are the same ones listed for the "overlayCorner" entry above.</dd>
++            * <dt>arrayOfTriggerEvents (optional) &#60;Array[String|CustomEvent]&#62;</dt>
++            * <dd>
++            * <p>
++            * By default, context alignment is a one time operation, aligning the Overlay to the context element when context configuration property is set, or when the <a href="#method_align">align</a> 
++            * method is invoked. However, you can use the optional "arrayOfTriggerEvents" entry to define the list of events which should force the overlay to re-align itself with the context element. 
++            * This is useful in situations where the layout of the document may change, resulting in the context element's position being modified.
++            * </p>
++            * <p>
++            * The array can contain either event type strings for events the instance publishes (e.g. "beforeShow") or CustomEvent instances. Additionally the following
++            * 3 static container event types are also currently supported : <code>"windowResize", "windowScroll", "textResize"</code> (defined in <a href="#property__TRIGGER_MAP">_TRIGGER_MAP</a> private property).
++            * </p>
++            * </dd>
++            * <dt>xyOffset &#60;Number[]&#62;</dt>
++            * <dd>
++            * A 2 element Array specifying the X and Y pixel amounts by which the Overlay should be offset from the aligned corner. e.g. [5,0] offsets the Overlay 5 pixels to the left, <em>after</em> aligning the given context corners.
++            * NOTE: If using this property and no triggers need to be defined, the arrayOfTriggerEvents property should be set to null to maintain correct array positions for the arguments. 
++            * </dd>
++            * </dl>
++            *
++            * <p>
++            * For example, setting this property to <code>["img1", "tl", "bl"]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1".
++            * </p>
++            * <p>
++            * Setting this property to <code>["img1", "tl", "bl", null, [0,5]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1", and then offset it by 5 pixels on the Y axis (providing a 5 pixel gap between the bottom of the context element and top of the overlay).
++            * </p>
++            * <p>
++            * Adding the optional trigger values: <code>["img1", "tl", "bl", ["beforeShow", "windowResize"], [0,5]]</code>,
++            * will re-align the overlay position, whenever the "beforeShow" or "windowResize" events are fired.
++            * </p>
++            *
++            * @config context
++            * @type Array
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.CONTEXT.key, {
++                handler: this.configContext, 
++                suppressEvent: DEFAULT_CONFIG.CONTEXT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.CONTEXT.supercedes
++            });
++
++            /**
++            * Determines whether or not the Overlay should be anchored 
++            * to the center of the viewport.
++            * 
++            * <p>This property can be set to:</p>
++            * 
++            * <dl>
++            * <dt>true</dt>
++            * <dd>
++            * To enable fixed center positioning
++            * <p>
++            * When enabled, the overlay will 
++            * be positioned in the center of viewport when initially displayed, and 
++            * will remain in the center of the viewport whenever the window is 
++            * scrolled or resized.
++            * </p>
++            * <p>
++            * If the overlay is too big for the viewport, 
++            * it's top left corner will be aligned with the top left corner of the viewport.
++            * </p>
++            * </dd>
++            * <dt>false</dt>
++            * <dd>
++            * To disable fixed center positioning.
++            * <p>In this case the overlay can still be 
++            * centered as a one-off operation, by invoking the <code>center()</code> method,
++            * however it will not remain centered when the window is scrolled/resized.
++            * </dd>
++            * <dt>"contained"<dt>
++            * <dd>To enable fixed center positioning, as with the <code>true</code> option.
++            * <p>However, unlike setting the property to <code>true</code>, 
++            * when the property is set to <code>"contained"</code>, if the overlay is 
++            * too big for the viewport, it will not get automatically centered when the 
++            * user scrolls or resizes the window (until the window is large enough to contain the 
++            * overlay). This is useful in cases where the Overlay has both header and footer 
++            * UI controls which the user may need to access.
++            * </p>
++            * </dd>
++            * </dl>
++            *
++            * @config fixedcenter
++            * @type Boolean | String
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
++                handler: this.configFixedCenter,
++                value: DEFAULT_CONFIG.FIXED_CENTER.value, 
++                validator: DEFAULT_CONFIG.FIXED_CENTER.validator, 
++                supercedes: DEFAULT_CONFIG.FIXED_CENTER.supercedes
++            });
++    
++            /**
++            * CSS width of the Overlay.
++            * @config width
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.WIDTH.key, {
++                handler: this.configWidth, 
++                suppressEvent: DEFAULT_CONFIG.WIDTH.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.WIDTH.supercedes
++            });
++
++            /**
++            * CSS height of the Overlay.
++            * @config height
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.HEIGHT.key, {
++                handler: this.configHeight, 
++                suppressEvent: DEFAULT_CONFIG.HEIGHT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.HEIGHT.supercedes
++            });
++
++            /**
++            * Standard module element which should auto fill out the height of the Overlay if the height config property is set.
++            * Supported values are "header", "body", "footer".
++            *
++            * @config autofillheight
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.AUTO_FILL_HEIGHT.key, {
++                handler: this.configAutoFillHeight, 
++                value : DEFAULT_CONFIG.AUTO_FILL_HEIGHT.value,
++                validator : this._validateAutoFill,
++                supercedes: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.supercedes
++            });
++
++            /**
++            * CSS z-index of the Overlay.
++            * @config zIndex
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.ZINDEX.key, {
++                handler: this.configzIndex,
++                value: DEFAULT_CONFIG.ZINDEX.value
++            });
++
++            /**
++            * True if the Overlay should be prevented from being positioned 
++            * out of the viewport.
++            * @config constraintoviewport
++            * @type Boolean
++            * @default false
++            */
++            cfg.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 iframe
++            * @description Boolean indicating whether or not the Overlay 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 Overlay instance is intially
++            * made visible.
++            * @type Boolean
++            * @default true for IE6 and below, false for all other browsers.
++            */
++            cfg.addProperty(DEFAULT_CONFIG.IFRAME.key, {
++
++                handler: this.configIframe, 
++                value: DEFAULT_CONFIG.IFRAME.value, 
++                validator: DEFAULT_CONFIG.IFRAME.validator, 
++                supercedes: DEFAULT_CONFIG.IFRAME.supercedes
++
++            });
++
++            /**
++            * @config preventcontextoverlap
++            * @description Boolean indicating whether or not the Overlay should overlap its 
++            * context element (defined using the "context" configuration property) when the 
++            * "constraintoviewport" configuration property is set to "true".
++            * @type Boolean
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.key, {
++                value: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.value, 
++                validator: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.validator, 
++                supercedes: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.supercedes
++            });
++        },
++
++        /**
++        * Moves the Overlay to the specified position. This function is  
++        * identical to calling this.cfg.setProperty("xy", [x,y]);
++        * @method moveTo
++        * @param {Number} x The Overlay's new x position
++        * @param {Number} y The Overlay's new y position
++        */
++        moveTo: function (x, y) {
++            this.cfg.setProperty("xy", [x, y]);
++        },
++
++        /**
++        * Adds a CSS class ("hide-scrollbars") and removes a CSS class 
++        * ("show-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method hideMacGeckoScrollbars
++        */
++        hideMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "show-scrollbars", "hide-scrollbars");
++        },
++
++        /**
++        * Adds a CSS class ("show-scrollbars") and removes a CSS class 
++        * ("hide-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method showMacGeckoScrollbars
++        */
++        showMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "hide-scrollbars", "show-scrollbars");
++        },
++
++        /**
++         * Internal implementation to set the visibility of the overlay in the DOM.
++         *
++         * @method _setDomVisibility
++         * @param {boolean} visible Whether to show or hide the Overlay's outer element
++         * @protected
++         */
++        _setDomVisibility : function(show) {
++            Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
++            var hiddenClass = Overlay.CSS_HIDDEN;
++
++            if (show) {
++                Dom.removeClass(this.element, hiddenClass);
++            } else {
++                Dom.addClass(this.element, hiddenClass);
++            }
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * The default event handler fired when the "visible" property is 
++        * changed.  This method is responsible for firing showEvent
++        * and hideEvent.
++        * @method configVisible
++        * @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.
++        */
++        configVisible: function (type, args, obj) {
++
++            var visible = args[0],
++                currentVis = Dom.getStyle(this.element, "visibility"),
++                effect = this.cfg.getProperty("effect"),
++                effectInstances = [],
++                isMacGecko = (this.platform == "mac" && UA.gecko),
++                alreadySubscribed = Config.alreadySubscribed,
++                eff, ei, e, i, j, k, h,
++                nEffects,
++                nEffectInstances;
++
++            if (currentVis == "inherit") {
++                e = this.element.parentNode;
++
++                while (e.nodeType != 9 && e.nodeType != 11) {
++                    currentVis = Dom.getStyle(e, "visibility");
++
++                    if (currentVis != "inherit") {
++                        break;
++                    }
++
++                    e = e.parentNode;
++                }
++
++                if (currentVis == "inherit") {
++                    currentVis = "visible";
++                }
++            }
++
++            if (effect) {
++                if (effect instanceof Array) {
++                    nEffects = effect.length;
++
++                    for (i = 0; i < nEffects; i++) {
++                        eff = effect[i];
++                        effectInstances[effectInstances.length] = 
++                            eff.effect(this, eff.duration);
++
++                    }
++                } else {
++                    effectInstances[effectInstances.length] = 
++                        effect.effect(this, effect.duration);
++                }
++            }
++
++            if (visible) { // Show
++                if (isMacGecko) {
++                    this.showMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate in
++                    if (visible) { // Animate in if not showing
++                        if (currentVis != "visible" || currentVis === "") {
++                            this.beforeShowEvent.fire();
++                            nEffectInstances = effectInstances.length;
++
++                            for (j = 0; j < nEffectInstances; j++) {
++                                ei = effectInstances[j];
++                                if (j === 0 && !alreadySubscribed(
++                                        ei.animateInCompleteEvent, 
++                                        this.showEvent.fire, this.showEvent)) {
++
++                                    /*
++                                         Delegate showEvent until end 
++                                         of animateInComplete
++                                    */
++
++                                    ei.animateInCompleteEvent.subscribe(
++                                     this.showEvent.fire, this.showEvent, true);
++                                }
++                                ei.animateIn();
++                            }
++                        }
++                    }
++                } else { // Show
++                    if (currentVis != "visible" || currentVis === "") {
++                        this.beforeShowEvent.fire();
++
++                        this._setDomVisibility(true);
++
++                        this.cfg.refireEvent("iframe");
++                        this.showEvent.fire();
++                    } else {
++                        this._setDomVisibility(true);
++                    }
++                }
++            } else { // Hide
++
++                if (isMacGecko) {
++                    this.hideMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate out if showing
++                    if (currentVis == "visible") {
++                        this.beforeHideEvent.fire();
++
++                        nEffectInstances = effectInstances.length;
++                        for (k = 0; k < nEffectInstances; k++) {
++                            h = effectInstances[k];
++    
++                            if (k === 0 && !alreadySubscribed(
++                                h.animateOutCompleteEvent, this.hideEvent.fire, 
++                                this.hideEvent)) {
++    
++                                /*
++                                     Delegate hideEvent until end 
++                                     of animateOutComplete
++                                */
++    
++                                h.animateOutCompleteEvent.subscribe(
++                                    this.hideEvent.fire, this.hideEvent, true);
++    
++                            }
++                            h.animateOut();
++                        }
++
++                    } else if (currentVis === "") {
++                        this._setDomVisibility(false);
++                    }
++
++                } else { // Simple hide
++
++                    if (currentVis == "visible" || currentVis === "") {
++                        this.beforeHideEvent.fire();
++                        this._setDomVisibility(false);
++                        this.hideEvent.fire();
++                    } else {
++                        this._setDomVisibility(false);
++                    }
++                }
++            }
++        },
++
++        /**
++        * Fixed center event handler used for centering on scroll/resize, but only if 
++        * the overlay is visible and, if "fixedcenter" is set to "contained", only if 
++        * the overlay fits within the viewport.
++        *
++        * @method doCenterOnDOMEvent
++        */
++        doCenterOnDOMEvent: function () {
++            var cfg = this.cfg,
++                fc = cfg.getProperty("fixedcenter");
++
++            if (cfg.getProperty("visible")) {
++                if (fc && (fc !== _CONTAINED || this.fitsInViewport())) {
++                    this.center();
++                }
++            }
++        },
++
++        /**
++         * Determines if the Overlay (including the offset value defined by Overlay.VIEWPORT_OFFSET) 
++         * will fit entirely inside the viewport, in both dimensions - width and height.
++         * 
++         * @method fitsInViewport
++         * @return boolean true if the Overlay will fit, false if not
++         */
++        fitsInViewport : function() {
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                element = this.element,
++                elementWidth = element.offsetWidth,
++                elementHeight = element.offsetHeight,
++                viewportWidth = Dom.getViewportWidth(),
++                viewportHeight = Dom.getViewportHeight();
++
++            return ((elementWidth + nViewportOffset < viewportWidth) && (elementHeight + nViewportOffset < viewportHeight));
++        },
++
++        /**
++        * The default event handler fired when the "fixedcenter" property 
++        * is changed.
++        * @method configFixedCenter
++        * @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.
++        */
++        configFixedCenter: function (type, args, obj) {
++
++            var val = args[0],
++                alreadySubscribed = Config.alreadySubscribed,
++                windowResizeEvent = Overlay.windowResizeEvent,
++                windowScrollEvent = Overlay.windowScrollEvent;
++
++            if (val) {
++                this.center();
++
++                if (!alreadySubscribed(this.beforeShowEvent, this.center)) {
++                    this.beforeShowEvent.subscribe(this.center);
++                }
++
++                if (!alreadySubscribed(windowResizeEvent, this.doCenterOnDOMEvent, this)) {
++                    windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++                if (!alreadySubscribed(windowScrollEvent, this.doCenterOnDOMEvent, this)) {
++                    windowScrollEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++            } else {
++                this.beforeShowEvent.unsubscribe(this.center);
++
++                windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++                windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "height" property is changed.
++        * @method configHeight
++        * @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.
++        */
++        configHeight: function (type, args, obj) {
++
++            var height = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "height", height);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++         * The default event handler fired when the "autofillheight" property is changed.
++         * @method configAutoFillHeight
++         *
++         * @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.
++         */
++        configAutoFillHeight: function (type, args, obj) {
++            var fillEl = args[0],
++                cfg = this.cfg,
++                autoFillHeight = "autofillheight",
++                height = "height",
++                currEl = cfg.getProperty(autoFillHeight),
++                autoFill = this._autoFillOnHeightChange;
++
++            cfg.unsubscribeFromConfigEvent(height, autoFill);
++            Module.textResizeEvent.unsubscribe(autoFill);
++            this.changeContentEvent.unsubscribe(autoFill);
++
++            if (currEl && fillEl !== currEl && this[currEl]) {
++                Dom.setStyle(this[currEl], height, "");
++            }
++
++            if (fillEl) {
++                fillEl = Lang.trim(fillEl.toLowerCase());
++
++                cfg.subscribeToConfigEvent(height, autoFill, this[fillEl], this);
++                Module.textResizeEvent.subscribe(autoFill, this[fillEl], this);
++                this.changeContentEvent.subscribe(autoFill, this[fillEl], this);
++
++                cfg.setProperty(autoFillHeight, fillEl, true);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "width" property is changed.
++        * @method configWidth
++        * @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.
++        */
++        configWidth: function (type, args, obj) {
++
++            var width = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "width", width);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++        * The default event handler fired when the "zIndex" property is changed.
++        * @method configzIndex
++        * @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.
++        */
++        configzIndex: function (type, args, obj) {
++
++            var zIndex = args[0],
++                el = this.element;
++
++            if (! zIndex) {
++                zIndex = Dom.getStyle(el, "zIndex");
++                if (! zIndex || isNaN(zIndex)) {
++                    zIndex = 0;
++                }
++            }
++
++            if (this.iframe || this.cfg.getProperty("iframe") === true) {
++                if (zIndex <= 0) {
++                    zIndex = 1;
++                }
++            }
++
++            Dom.setStyle(el, "zIndex", zIndex);
++            this.cfg.setProperty("zIndex", zIndex, true);
++
++            if (this.iframe) {
++                this.stackIframe();
++            }
++        },
++
++        /**
++        * The default event handler fired when the "xy" property is changed.
++        * @method configXY
++        * @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.
++        */
++        configXY: function (type, args, obj) {
++
++            var pos = args[0],
++                x = pos[0],
++                y = pos[1];
++
++            this.cfg.setProperty("x", x);
++            this.cfg.setProperty("y", y);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            YAHOO.log(("xy: " + [x, y]), "iframe");
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "x" property is changed.
++        * @method configX
++        * @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.
++        */
++        configX: function (type, args, obj) {
++
++            var x = args[0],
++                y = this.cfg.getProperty("y");
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setX(this.element, x, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "y" property is changed.
++        * @method configY
++        * @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.
++        */
++        configY: function (type, args, obj) {
++
++            var x = this.cfg.getProperty("x"),
++                y = args[0];
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setY(this.element, y, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++        
++        /**
++        * Shows the iframe shim, if it has been enabled.
++        * @method showIframe
++        */
++        showIframe: function () {
++
++            var oIFrame = this.iframe,
++                oParentNode;
++
++            if (oIFrame) {
++                oParentNode = this.element.parentNode;
++
++                if (oParentNode != oIFrame.parentNode) {
++                    this._addToParent(oParentNode, oIFrame);
++                }
++                oIFrame.style.display = "block";
++            }
++        },
++
++        /**
++        * Hides the iframe shim, if it has been enabled.
++        * @method hideIframe
++        */
++        hideIframe: function () {
++            if (this.iframe) {
++                this.iframe.style.display = "none";
++            }
++        },
++
++        /**
++        * Syncronizes the size and position of iframe shim to that of its 
++        * corresponding Overlay instance.
++        * @method syncIframe
++        */
++        syncIframe: function () {
++
++            var oIFrame = this.iframe,
++                oElement = this.element,
++                nOffset = Overlay.IFRAME_OFFSET,
++                nDimensionOffset = (nOffset * 2),
++                aXY;
++
++            if (oIFrame) {
++                // Size <iframe>
++                oIFrame.style.width = (oElement.offsetWidth + nDimensionOffset + "px");
++                oIFrame.style.height = (oElement.offsetHeight + nDimensionOffset + "px");
++
++                // Position <iframe>
++                aXY = this.cfg.getProperty("xy");
++
++                if (!Lang.isArray(aXY) || (isNaN(aXY[0]) || isNaN(aXY[1]))) {
++                    this.syncPosition();
++                    aXY = this.cfg.getProperty("xy");
++                }
++                Dom.setXY(oIFrame, [(aXY[0] - nOffset), (aXY[1] - nOffset)]);
++            }
++        },
++
++        /**
++         * Sets the zindex of the iframe shim, if it exists, based on the zindex of
++         * the Overlay element. The zindex of the iframe is set to be one less 
++         * than the Overlay element's zindex.
++         * 
++         * <p>NOTE: This method will not bump up the zindex of the Overlay element
++         * to ensure that the iframe shim has a non-negative zindex.
++         * If you require the iframe zindex to be 0 or higher, the zindex of 
++         * the Overlay element should be set to a value greater than 0, before 
++         * this method is called.
++         * </p>
++         * @method stackIframe
++         */
++        stackIframe: function () {
++            if (this.iframe) {
++                var overlayZ = Dom.getStyle(this.element, "zIndex");
++                if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
++                    Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
++                }
++            }
++        },
++
++        /**
++        * The default event handler fired when the "iframe" property is changed.
++        * @method configIframe
++        * @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.
++        */
++        configIframe: function (type, args, obj) {
++
++            var bIFrame = args[0];
++
++            function createIFrame() {
++
++                var oIFrame = this.iframe,
++                    oElement = this.element,
++                    oParent;
++
++                if (!oIFrame) {
++                    if (!m_oIFrameTemplate) {
++                        m_oIFrameTemplate = document.createElement("iframe");
++
++                        if (this.isSecure) {
++                            m_oIFrameTemplate.src = Overlay.IFRAME_SRC;
++                        }
++
++                        /*
++                            Set the opacity of the <iframe> to 0 so that it 
++                            doesn't modify the opacity of any transparent 
++                            elements that may be on top of it (like a shadow).
++                        */
++                        if (UA.ie) {
++                            m_oIFrameTemplate.style.filter = "alpha(opacity=0)";
++                            /*
++                                 Need to set the "frameBorder" property to 0 
++                                 supress the default <iframe> border in IE.  
++                                 Setting the CSS "border" property alone 
++                                 doesn't supress it.
++                            */
++                            m_oIFrameTemplate.frameBorder = 0;
++                        }
++                        else {
++                            m_oIFrameTemplate.style.opacity = "0";
++                        }
++
++                        m_oIFrameTemplate.style.position = "absolute";
++                        m_oIFrameTemplate.style.border = "none";
++                        m_oIFrameTemplate.style.margin = "0";
++                        m_oIFrameTemplate.style.padding = "0";
++                        m_oIFrameTemplate.style.display = "none";
++                        m_oIFrameTemplate.tabIndex = -1;
++                        m_oIFrameTemplate.className = Overlay.CSS_IFRAME;
++                    }
++
++                    oIFrame = m_oIFrameTemplate.cloneNode(false);
++                    oIFrame.id = this.id + "_f";
++                    oParent = oElement.parentNode;
++
++                    var parentNode = oParent || document.body;
++
++                    this._addToParent(parentNode, oIFrame);
++                    this.iframe = oIFrame;
++                }
++
++                /*
++                     Show the <iframe> before positioning it since the "setXY" 
++                     method of DOM requires the element be in the document 
++                     and visible.
++                */
++                this.showIframe();
++
++                /*
++                     Syncronize the size and position of the <iframe> to that 
++                     of the Overlay.
++                */
++                this.syncIframe();
++                this.stackIframe();
++
++                // Add event listeners to update the <iframe> when necessary
++                if (!this._hasIframeEventListeners) {
++                    this.showEvent.subscribe(this.showIframe);
++                    this.hideEvent.subscribe(this.hideIframe);
++                    this.changeContentEvent.subscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = true;
++                }
++            }
++
++            function onBeforeShow() {
++                createIFrame.call(this);
++                this.beforeShowEvent.unsubscribe(onBeforeShow);
++                this._iframeDeferred = false;
++            }
++
++            if (bIFrame) { // <iframe> shim is enabled
++
++                if (this.cfg.getProperty("visible")) {
++                    createIFrame.call(this);
++                } else {
++                    if (!this._iframeDeferred) {
++                        this.beforeShowEvent.subscribe(onBeforeShow);
++                        this._iframeDeferred = true;
++                    }
++                }
++
++            } else {    // <iframe> shim is disabled
++                this.hideIframe();
++
++                if (this._hasIframeEventListeners) {
++                    this.showEvent.unsubscribe(this.showIframe);
++                    this.hideEvent.unsubscribe(this.hideIframe);
++                    this.changeContentEvent.unsubscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = false;
++                }
++            }
++        },
++
++        /**
++         * Set's the container's XY value from DOM if not already set.
++         * 
++         * Differs from syncPosition, in that the XY value is only sync'd with DOM if 
++         * not already set. The method also refire's the XY config property event, so any
++         * beforeMove, Move event listeners are invoked.
++         * 
++         * @method _primeXYFromDOM
++         * @protected
++         */
++        _primeXYFromDOM : function() {
++            if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
++                // Set CFG XY based on DOM XY
++                this.syncPosition();
++                // Account for XY being set silently in syncPosition (no moveTo fired/called)
++                this.cfg.refireEvent("xy");
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "constraintoviewport" 
++        * property is changed.
++        * @method configConstrainToViewport
++        * @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.
++        */
++        configConstrainToViewport: function (type, args, obj) {
++            var val = args[0];
++
++            if (val) {
++                if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
++                    this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
++                }
++                if (! Config.alreadySubscribed(this.beforeShowEvent, this._primeXYFromDOM)) {
++                    this.beforeShowEvent.subscribe(this._primeXYFromDOM);
++                }
++            } else {
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++                this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this);
++            }
++        },
++
++         /**
++        * The default event handler fired when the "context" property
++        * is changed.
++        *
++        * @method configContext
++        * @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.
++        */
++        configContext: function (type, args, obj) {
++
++            var contextArgs = args[0],
++                contextEl,
++                elementMagnetCorner,
++                contextMagnetCorner,
++                triggers,
++                offset,
++                defTriggers = this.CONTEXT_TRIGGERS;
++
++            if (contextArgs) {
++
++                contextEl = contextArgs[0];
++                elementMagnetCorner = contextArgs[1];
++                contextMagnetCorner = contextArgs[2];
++                triggers = contextArgs[3];
++                offset = contextArgs[4];
++
++                if (defTriggers && defTriggers.length > 0) {
++                    triggers = (triggers || []).concat(defTriggers);
++                }
++
++                if (contextEl) {
++                    if (typeof contextEl == "string") {
++                        this.cfg.setProperty("context", [
++                                document.getElementById(contextEl), 
++                                elementMagnetCorner,
++                                contextMagnetCorner,
++                                triggers,
++                                offset],
++                                true);
++                    }
++
++                    if (elementMagnetCorner && contextMagnetCorner) {
++                        this.align(elementMagnetCorner, contextMagnetCorner, offset);
++                    }
++
++                    if (this._contextTriggers) {
++                        // Unsubscribe Old Set
++                        this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++                    }
++
++                    if (triggers) {
++                        // Subscribe New Set
++                        this._processTriggers(triggers, _SUBSCRIBE, this._alignOnTrigger);
++                        this._contextTriggers = triggers;
++                    }
++                }
++            }
++        },
++
++        /**
++         * Custom Event handler for context alignment triggers. Invokes the align method
++         * 
++         * @method _alignOnTrigger
++         * @protected
++         * 
++         * @param {String} type The event type (not used by the default implementation)
++         * @param {Any[]} args The array of arguments for the trigger event (not used by the default implementation)
++         */
++        _alignOnTrigger: function(type, args) {
++            this.align();
++        },
++
++        /**
++         * Helper method to locate the custom event instance for the event name string
++         * passed in. As a convenience measure, any custom events passed in are returned.
++         *
++         * @method _findTriggerCE
++         * @private
++         *
++         * @param {String|CustomEvent} t Either a CustomEvent, or event type (e.g. "windowScroll") for which a 
++         * custom event instance needs to be looked up from the Overlay._TRIGGER_MAP.
++         */
++        _findTriggerCE : function(t) {
++            var tce = null;
++            if (t instanceof CustomEvent) {
++                tce = t;
++            } else if (Overlay._TRIGGER_MAP[t]) {
++                tce = Overlay._TRIGGER_MAP[t];
++            }
++            return tce;
++        },
++
++        /**
++         * Utility method that subscribes or unsubscribes the given 
++         * function from the list of trigger events provided.
++         *
++         * @method _processTriggers
++         * @protected 
++         *
++         * @param {Array[String|CustomEvent]} triggers An array of either CustomEvents, event type strings 
++         * (e.g. "beforeShow", "windowScroll") to/from which the provided function should be 
++         * subscribed/unsubscribed respectively.
++         *
++         * @param {String} mode Either "subscribe" or "unsubscribe", specifying whether or not
++         * we are subscribing or unsubscribing trigger listeners
++         * 
++         * @param {Function} fn The function to be subscribed/unsubscribed to/from the trigger event.
++         * Context is always set to the overlay instance, and no additional object argument 
++         * get passed to the subscribed function.
++         */
++        _processTriggers : function(triggers, mode, fn) {
++            var t, tce;
++
++            for (var i = 0, l = triggers.length; i < l; ++i) {
++                t = triggers[i];
++                tce = this._findTriggerCE(t);
++                if (tce) {
++                    tce[mode](fn, this, true);
++                } else {
++                    this[mode](t, fn);
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * Aligns the Overlay to its context element using the specified corner 
++        * points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, 
++        * and BOTTOM_RIGHT.
++        * @method align
++        * @param {String} elementAlign  The String representing the corner of 
++        * the Overlay that should be aligned to the context element
++        * @param {String} contextAlign  The corner of the context element 
++        * that the elementAlign corner should stick to.
++        * @param {Number[]} xyOffset Optional. A 2 element array specifying the x and y pixel offsets which should be applied
++        * after aligning the element and context corners. For example, passing in [5, -10] for this value, would offset the 
++        * Overlay by 5 pixels along the X axis (horizontally) and -10 pixels along the Y axis (vertically) after aligning the specified corners.
++        */
++        align: function (elementAlign, contextAlign, xyOffset) {
++
++            var contextArgs = this.cfg.getProperty("context"),
++                me = this,
++                context,
++                element,
++                contextRegion;
++
++            function doAlign(v, h) {
++
++                var alignX = null, alignY = null;
++
++                switch (elementAlign) {
++    
++                    case Overlay.TOP_LEFT:
++                        alignX = h;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.TOP_RIGHT:
++                        alignX = h - element.offsetWidth;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.BOTTOM_LEFT:
++                        alignX = h;
++                        alignY = v - element.offsetHeight;
++                        break;
++        
++                    case Overlay.BOTTOM_RIGHT:
++                        alignX = h - element.offsetWidth; 
++                        alignY = v - element.offsetHeight;
++                        break;
++                }
++
++                if (alignX !== null && alignY !== null) {
++                    if (xyOffset) {
++                        alignX += xyOffset[0];
++                        alignY += xyOffset[1];
++                    }
++                    me.moveTo(alignX, alignY);
++                }
++            }
++
++            if (contextArgs) {
++                context = contextArgs[0];
++                element = this.element;
++                me = this;
++
++                if (! elementAlign) {
++                    elementAlign = contextArgs[1];
++                }
++
++                if (! contextAlign) {
++                    contextAlign = contextArgs[2];
++                }
++
++                if (!xyOffset && contextArgs[4]) {
++                    xyOffset = contextArgs[4];
++                }
++
++                if (element && context) {
++                    contextRegion = Dom.getRegion(context);
++
++                    switch (contextAlign) {
++    
++                        case Overlay.TOP_LEFT:
++                            doAlign(contextRegion.top, contextRegion.left);
++                            break;
++        
++                        case Overlay.TOP_RIGHT:
++                            doAlign(contextRegion.top, contextRegion.right);
++                            break;
++        
++                        case Overlay.BOTTOM_LEFT:
++                            doAlign(contextRegion.bottom, contextRegion.left);
++                            break;
++        
++                        case Overlay.BOTTOM_RIGHT:
++                            doAlign(contextRegion.bottom, contextRegion.right);
++                            break;
++                    }
++                }
++            }
++        },
++
++        /**
++        * The default event handler executed when the moveEvent is fired, if the 
++        * "constraintoviewport" is set to true.
++        * @method enforceConstraints
++        * @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.
++        */
++        enforceConstraints: function (type, args, obj) {
++            var pos = args[0];
++
++            var cXY = this.getConstrainedXY(pos[0], pos[1]);
++            this.cfg.setProperty("x", cXY[0], true);
++            this.cfg.setProperty("y", cXY[1], true);
++            this.cfg.setProperty("xy", cXY, true);
++        },
++
++        /**
++         * Shared implementation method for getConstrainedX and getConstrainedY.
++         * 
++         * <p>
++         * Given a coordinate value, returns the calculated coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions, scroll values and preventoverlap 
++         * settings
++         * </p>
++         *
++         * @method _getConstrainedPos
++         * @protected
++         * @param {String} pos The coordinate which needs to be constrained, either "x" or "y"
++         * @param {Number} The coordinate value which needs to be constrained
++         * @return {Number} The constrained coordinate value
++         */
++        _getConstrainedPos: function(pos, val) {
++
++            var overlayEl = this.element,
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                x = (pos == "x"),
++
++                overlaySize      = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
++                viewportSize     = (x) ? Dom.getViewportWidth() : Dom.getViewportHeight(),
++                docScroll        = (x) ? Dom.getDocumentScrollLeft() : Dom.getDocumentScrollTop(),
++                overlapPositions = (x) ? Overlay.PREVENT_OVERLAP_X : Overlay.PREVENT_OVERLAP_Y,
++
++                context = this.cfg.getProperty("context"),
++
++                bOverlayFitsInViewport = (overlaySize + buffer < viewportSize),
++                bPreventContextOverlap = this.cfg.getProperty("preventcontextoverlap") && context && overlapPositions[(context[1] + context[2])],
++
++                minConstraint = docScroll + buffer,
++                maxConstraint = docScroll + viewportSize - overlaySize - buffer,
++
++                constrainedVal = val;
++
++            if (val < minConstraint || val > maxConstraint) {
++                if (bPreventContextOverlap) {
++                    constrainedVal = this._preventOverlap(pos, context[0], overlaySize, viewportSize, docScroll);
++                } else {
++                    if (bOverlayFitsInViewport) {
++                        if (val < minConstraint) {
++                            constrainedVal = minConstraint;
++                        } else if (val > maxConstraint) {
++                            constrainedVal = maxConstraint;
++                        }
++                    } else {
++                        constrainedVal = minConstraint;
++                    }
++                }
++            }
++
++            return constrainedVal;
++        },
++
++        /**
++         * Helper method, used to position the Overlap to prevent overlap with the 
++         * context element (used when preventcontextoverlap is enabled)
++         *
++         * @method _preventOverlap
++         * @protected
++         * @param {String} pos The coordinate to prevent overlap for, either "x" or "y".
++         * @param {HTMLElement} contextEl The context element
++         * @param {Number} overlaySize The related overlay dimension value (for "x", the width, for "y", the height)
++         * @param {Number} viewportSize The related viewport dimension value (for "x", the width, for "y", the height)
++         * @param {Object} docScroll  The related document scroll value (for "x", the scrollLeft, for "y", the scrollTop)
++         *
++         * @return {Number} The new coordinate value which was set to prevent overlap
++         */
++        _preventOverlap : function(pos, contextEl, overlaySize, viewportSize, docScroll) {
++            
++            var x = (pos == "x"),
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                overlay = this,
++
++                contextElPos   = ((x) ? Dom.getX(contextEl) : Dom.getY(contextEl)) - docScroll,
++                contextElSize  = (x) ? contextEl.offsetWidth : contextEl.offsetHeight,
++
++                minRegionSize = contextElPos - buffer,
++                maxRegionSize = (viewportSize - (contextElPos + contextElSize)) - buffer,
++
++                bFlipped = false,
++
++                flip = function () {
++                    var flippedVal;
++
++                    if ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) {
++                        flippedVal = (contextElPos - overlaySize);
++                    } else {
++                        flippedVal = (contextElPos + contextElSize);
++                    }
++
++                    overlay.cfg.setProperty(pos, (flippedVal + docScroll), true);
++
++                    return flippedVal;
++                },
++
++                setPosition = function () {
++
++                    var displayRegionSize = ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) ? maxRegionSize : minRegionSize,
++                        position;
++
++                    if (overlaySize > displayRegionSize) {
++                        if (bFlipped) {
++                            /*
++                                 All possible positions and values have been 
++                                 tried, but none were successful, so fall back 
++                                 to the original size and position.
++                            */
++                            flip();
++                        } else {
++                            flip();
++                            bFlipped = true;
++                            position = setPosition();
++                        }
++                    }
++
++                    return position;
++                };
++
++            setPosition();
++
++            return this.cfg.getProperty(pos);
++        },
++
++        /**
++         * Given x coordinate value, returns the calculated x coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @return {Number} The constrained x coordinate
++         */		
++        getConstrainedX: function (x) {
++            return this._getConstrainedPos("x", x);
++        },
++
++        /**
++         * Given y coordinate value, returns the calculated y coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Number} The constrained y coordinate
++         */		
++        getConstrainedY : function (y) {
++            return this._getConstrainedPos("y", y);
++        },
++
++        /**
++         * Given x, y coordinate values, returns the calculated coordinates required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Array} The constrained x and y coordinates at index 0 and 1 respectively;
++         */
++        getConstrainedXY: function(x, y) {
++            return [this.getConstrainedX(x), this.getConstrainedY(y)];
++        },
++
++        /**
++        * Centers the container in the viewport.
++        * @method center
++        */
++        center: function () {
++
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                elementWidth = this.element.offsetWidth,
++                elementHeight = this.element.offsetHeight,
++                viewPortWidth = Dom.getViewportWidth(),
++                viewPortHeight = Dom.getViewportHeight(),
++                x,
++                y;
++
++            if (elementWidth < viewPortWidth) {
++                x = (viewPortWidth / 2) - (elementWidth / 2) + Dom.getDocumentScrollLeft();
++            } else {
++                x = nViewportOffset + Dom.getDocumentScrollLeft();
++            }
++
++            if (elementHeight < viewPortHeight) {
++                y = (viewPortHeight / 2) - (elementHeight / 2) + Dom.getDocumentScrollTop();
++            } else {
++                y = nViewportOffset + Dom.getDocumentScrollTop();
++            }
++
++            this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
++            this.cfg.refireEvent("iframe");
++
++            if (UA.webkit) {
++                this.forceContainerRedraw();
++            }
++        },
++
++        /**
++        * Synchronizes the Panel's "xy", "x", and "y" properties with the 
++        * Panel's position in the DOM. This is primarily used to update  
++        * position information during drag & drop.
++        * @method syncPosition
++        */
++        syncPosition: function () {
++
++            var pos = Dom.getXY(this.element);
++
++            this.cfg.setProperty("x", pos[0], true);
++            this.cfg.setProperty("y", pos[1], true);
++            this.cfg.setProperty("xy", pos, true);
++
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The resize DOM event
++        * @param {Object} obj The scope object
++        */
++        onDomResize: function (e, obj) {
++
++            var me = this;
++
++            Overlay.superclass.onDomResize.call(this, e, obj);
++
++            setTimeout(function () {
++                me.syncPosition();
++                me.cfg.refireEvent("iframe");
++                me.cfg.refireEvent("context");
++            }, 0);
++        },
++
++        /**
++         * Determines the content box height of the given element (height of the element, without padding or borders) in pixels.
++         *
++         * @method _getComputedHeight
++         * @private
++         * @param {HTMLElement} el The element for which the content height needs to be determined
++         * @return {Number} The content box height of the given element, or null if it could not be determined.
++         */
++        _getComputedHeight : (function() {
++
++            if (document.defaultView && document.defaultView.getComputedStyle) {
++                return function(el) {
++                    var height = null;
++                    if (el.ownerDocument && el.ownerDocument.defaultView) {
++                        var computed = el.ownerDocument.defaultView.getComputedStyle(el, '');
++                        if (computed) {
++                            height = parseInt(computed.height, 10);
++                        }
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            } else {
++                return function(el) {
++                    var height = null;
++                    if (el.style.pixelHeight) {
++                        height = el.style.pixelHeight;
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            }
++        })(),
++
++        /**
++         * autofillheight validator. Verifies that the autofill value is either null 
++         * or one of the strings : "body", "header" or "footer".
++         *
++         * @method _validateAutoFillHeight
++         * @protected
++         * @param {String} val
++         * @return true, if valid, false otherwise
++         */
++        _validateAutoFillHeight : function(val) {
++            return (!val) || (Lang.isString(val) && Overlay.STD_MOD_RE.test(val));
++        },
++
++        /**
++         * The default custom event handler executed when the overlay's height is changed, 
++         * if the autofillheight property has been set.
++         *
++         * @method _autoFillOnHeightChange
++         * @protected
++         * @param {String} type The event type
++         * @param {Array} args The array of arguments passed to event subscribers
++         * @param {HTMLElement} el The header, body or footer element which is to be resized to fill
++         * out the containers height
++         */
++        _autoFillOnHeightChange : function(type, args, el) {
++            var height = this.cfg.getProperty("height");
++            if ((height && height !== "auto") || (height === 0)) {
++                this.fillHeight(el);
++            }
++        },
++
++        /**
++         * Returns the sub-pixel height of the el, using getBoundingClientRect, if available,
++         * otherwise returns the offsetHeight
++         * @method _getPreciseHeight
++         * @private
++         * @param {HTMLElement} el
++         * @return {Float} The sub-pixel height if supported by the browser, else the rounded height.
++         */
++        _getPreciseHeight : function(el) {
++            var height = el.offsetHeight;
++
++            if (el.getBoundingClientRect) {
++                var rect = el.getBoundingClientRect();
++                height = rect.bottom - rect.top;
++            }
++
++            return height;
++        },
++
++        /**
++         * <p>
++         * Sets the height on the provided header, body or footer element to 
++         * fill out the height of the container. It determines the height of the 
++         * containers content box, based on it's configured height value, and 
++         * sets the height of the autofillheight element to fill out any 
++         * space remaining after the other standard module element heights 
++         * have been accounted for.
++         * </p>
++         * <p><strong>NOTE:</strong> This method is not designed to work if an explicit 
++         * height has not been set on the container, since for an "auto" height container, 
++         * the heights of the header/body/footer will drive the height of the container.</p>
++         *
++         * @method fillHeight
++         * @param {HTMLElement} el The element which should be resized to fill out the height
++         * of the container element.
++         */
++        fillHeight : function(el) {
++            if (el) {
++                var container = this.innerElement || this.element,
++                    containerEls = [this.header, this.body, this.footer],
++                    containerEl,
++                    total = 0,
++                    filled = 0,
++                    remaining = 0,
++                    validEl = false;
++
++                for (var i = 0, l = containerEls.length; i < l; i++) {
++                    containerEl = containerEls[i];
++                    if (containerEl) {
++                        if (el !== containerEl) {
++                            filled += this._getPreciseHeight(containerEl);
++                        } else {
++                            validEl = true;
++                        }
++                    }
++                }
++
++                if (validEl) {
++
++                    if (UA.ie || UA.opera) {
++                        // Need to set height to 0, to allow height to be reduced
++                        Dom.setStyle(el, 'height', 0 + 'px');
++                    }
++
++                    total = this._getComputedHeight(container);
++
++                    // Fallback, if we can't get computed value for content height
++                    if (total === null) {
++                        Dom.addClass(container, "yui-override-padding");
++                        total = container.clientHeight; // Content, No Border, 0 Padding (set by yui-override-padding)
++                        Dom.removeClass(container, "yui-override-padding");
++                    }
++    
++                    remaining = Math.max(total - filled, 0);
++    
++                    Dom.setStyle(el, "height", remaining + "px");
++    
++                    // Re-adjust height if required, to account for el padding and border
++                    if (el.offsetHeight != remaining) {
++                        remaining = Math.max(remaining - (el.offsetHeight - remaining), 0);
++                    }
++                    Dom.setStyle(el, "height", remaining + "px");
++                }
++            }
++        },
++
++        /**
++        * Places the Overlay on top of all other instances of 
++        * YAHOO.widget.Overlay.
++        * @method bringToTop
++        */
++        bringToTop: function () {
++
++            var aOverlays = [],
++                oElement = this.element;
++
++            function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
++
++                var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
++                    sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
++
++                    nZIndex1 = (!sZIndex1 || isNaN(sZIndex1)) ? 0 : parseInt(sZIndex1, 10),
++                    nZIndex2 = (!sZIndex2 || isNaN(sZIndex2)) ? 0 : parseInt(sZIndex2, 10);
++
++                if (nZIndex1 > nZIndex2) {
++                    return -1;
++                } else if (nZIndex1 < nZIndex2) {
++                    return 1;
++                } else {
++                    return 0;
++                }
++            }
++
++            function isOverlayElement(p_oElement) {
++
++                var isOverlay = Dom.hasClass(p_oElement, Overlay.CSS_OVERLAY),
++                    Panel = YAHOO.widget.Panel;
++
++                if (isOverlay && !Dom.isAncestor(oElement, p_oElement)) {
++                    if (Panel && Dom.hasClass(p_oElement, Panel.CSS_PANEL)) {
++                        aOverlays[aOverlays.length] = p_oElement.parentNode;
++                    } else {
++                        aOverlays[aOverlays.length] = p_oElement;
++                    }
++                }
++            }
++
++            Dom.getElementsBy(isOverlayElement, "DIV", document.body);
++
++            aOverlays.sort(compareZIndexDesc);
++
++            var oTopOverlay = aOverlays[0],
++                nTopZIndex;
++
++            if (oTopOverlay) {
++                nTopZIndex = Dom.getStyle(oTopOverlay, "zIndex");
++
++                if (!isNaN(nTopZIndex)) {
++                    var bRequiresBump = false;
++
++                    if (oTopOverlay != oElement) {
++                        bRequiresBump = true;
++                    } else if (aOverlays.length > 1) {
++                        var nNextZIndex = Dom.getStyle(aOverlays[1], "zIndex");
++                        // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                        if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                            bRequiresBump = true;
++                        }
++                    }
++                    if (bRequiresBump) {
++                        this.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                    }
++                }
++            }
++        },
++
++        /**
++        * Removes the Overlay element from the DOM and sets all child 
++        * elements to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            if (this.iframe) {
++                this.iframe.parentNode.removeChild(this.iframe);
++            }
++
++            this.iframe = null;
++
++            Overlay.windowResizeEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++    
++            Overlay.windowScrollEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++
++            Module.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);
++
++            if (this._contextTriggers) {
++                // Unsubscribe context triggers - to cover context triggers which listen for global
++                // events such as windowResize and windowScroll. Easier just to unsubscribe all
++                this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++            }
++
++            Overlay.superclass.destroy.call(this);
++        },
++
++        /**
++         * Can be used to force the container to repaint/redraw it's contents.
++         * <p>
++         * By default applies and then removes a 1px bottom margin through the 
++         * application/removal of a "yui-force-redraw" class.
++         * </p>
++         * <p>
++         * It is currently used by Overlay to force a repaint for webkit 
++         * browsers, when centering.
++         * </p>
++         * @method forceContainerRedraw
++         */
++        forceContainerRedraw : function() {
++            var c = this;
++            Dom.addClass(c.element, "yui-force-redraw");
++            setTimeout(function() {
++                Dom.removeClass(c.element, "yui-force-redraw");
++            }, 0);
++        },
++
++        /**
++        * Returns a String representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Overlay.
++        */
++        toString: function () {
++            return "Overlay " + this.id;
++        }
++
++    });
++}());
++(function () {
++
++    /**
++    * OverlayManager is used for maintaining the focus status of 
++    * multiple Overlays.
++    * @namespace YAHOO.widget
++    * @namespace YAHOO.widget
++    * @class OverlayManager
++    * @constructor
++    * @param {Array} overlays Optional. A collection of Overlays to register 
++    * with the manager.
++    * @param {Object} userConfig  The object literal representing the user 
++    * configuration of the OverlayManager
++    */
++    YAHOO.widget.OverlayManager = function (userConfig) {
++        this.init(userConfig);
++    };
++
++    var Overlay = YAHOO.widget.Overlay,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        CustomEvent = YAHOO.util.CustomEvent,
++        OverlayManager = YAHOO.widget.OverlayManager;
++
++    /**
++    * The CSS class representing a focused Overlay
++    * @property OverlayManager.CSS_FOCUSED
++    * @static
++    * @final
++    * @type String
++    */
++    OverlayManager.CSS_FOCUSED = "focused";
++
++    OverlayManager.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: OverlayManager,
++
++        /**
++        * The array of Overlays that are currently registered
++        * @property overlays
++        * @type YAHOO.widget.Overlay[]
++        */
++        overlays: null,
++
++        /**
++        * Initializes the default configuration of the OverlayManager
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++            /**
++            * The collection of registered Overlays in use by 
++            * the OverlayManager
++            * @config overlays
++            * @type YAHOO.widget.Overlay[]
++            * @default null
++            */
++            this.cfg.addProperty("overlays", { suppressEvent: true } );
++
++            /**
++            * The default DOM event that should be used to focus an Overlay
++            * @config focusevent
++            * @type String
++            * @default "mousedown"
++            */
++            this.cfg.addProperty("focusevent", { value: "mousedown" } );
++        },
++
++        /**
++        * Initializes the OverlayManager
++        * @method init
++        * @param {Overlay[]} overlays Optional. A collection of Overlays to 
++        * register with the manager.
++        * @param {Object} userConfig  The object literal representing the user 
++        * configuration of the OverlayManager
++        */
++        init: function (userConfig) {
++
++            /**
++            * The OverlayManager's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type Config
++            */
++            this.cfg = new Config(this);
++
++            this.initDefaultConfig();
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++            this.cfg.fireQueue();
++
++            /**
++            * The currently activated Overlay
++            * @property activeOverlay
++            * @private
++            * @type YAHOO.widget.Overlay
++            */
++            var activeOverlay = null;
++
++            /**
++            * Returns the currently focused Overlay
++            * @method getActive
++            * @return {Overlay} The currently focused Overlay
++            */
++            this.getActive = function () {
++                return activeOverlay;
++            };
++
++            /**
++            * Focuses the specified Overlay
++            * @method focus
++            * @param {Overlay} overlay The Overlay to focus
++            * @param {String} overlay The id of the Overlay to focus
++            */
++            this.focus = function (overlay) {
++                var o = this.find(overlay);
++                if (o) {
++                    o.focus();
++                }
++            };
++
++            /**
++            * Removes the specified Overlay from the manager
++            * @method remove
++            * @param {Overlay} overlay The Overlay to remove
++            * @param {String} overlay The id of the Overlay to remove
++            */
++            this.remove = function (overlay) {
++
++                var o = this.find(overlay), 
++                        originalZ;
++
++                if (o) {
++                    if (activeOverlay == o) {
++                        activeOverlay = null;
++                    }
++
++                    var bDestroyed = (o.element === null && o.cfg === null) ? true : false;
++
++                    if (!bDestroyed) {
++                        // Set it's zindex so that it's sorted to the end.
++                        originalZ = Dom.getStyle(o.element, "zIndex");
++                        o.cfg.setProperty("zIndex", -1000, true);
++                    }
++
++                    this.overlays.sort(this.compareZIndexDesc);
++                    this.overlays = this.overlays.slice(0, (this.overlays.length - 1));
++
++                    o.hideEvent.unsubscribe(o.blur);
++                    o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
++                    o.focusEvent.unsubscribe(this._onOverlayFocusHandler, o);
++                    o.blurEvent.unsubscribe(this._onOverlayBlurHandler, o);
++
++                    if (!bDestroyed) {
++                        Event.removeListener(o.element, this.cfg.getProperty("focusevent"), this._onOverlayElementFocus);
++                        o.cfg.setProperty("zIndex", originalZ, true);
++                        o.cfg.setProperty("manager", null);
++                    }
++
++                    /* _managed Flag for custom or existing. Don't want to remove existing */
++                    if (o.focusEvent._managed) { o.focusEvent = null; }
++                    if (o.blurEvent._managed) { o.blurEvent = null; }
++
++                    if (o.focus._managed) { o.focus = null; }
++                    if (o.blur._managed) { o.blur = null; }
++                }
++            };
++
++            /**
++            * Removes focus from all registered Overlays in the manager
++            * @method blurAll
++            */
++            this.blurAll = function () {
++
++                var nOverlays = this.overlays.length,
++                    i;
++
++                if (nOverlays > 0) {
++                    i = nOverlays - 1;
++                    do {
++                        this.overlays[i].blur();
++                    }
++                    while(i--);
++                }
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay
++             * being blurred.
++             * 
++             * @method _manageBlur
++             * @param {Overlay} overlay The overlay instance which got blurred.
++             * @protected
++             */
++            this._manageBlur = function (overlay) {
++                var changed = false;
++                if (activeOverlay == overlay) {
++                    Dom.removeClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    activeOverlay = null;
++                    changed = true;
++                }
++                return changed;
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay 
++             * receiving focus.
++             *
++             * @method _manageFocus
++             * @param {Overlay} overlay The overlay instance which got focus.
++             * @protected
++             */
++            this._manageFocus = function(overlay) {
++                var changed = false;
++                if (activeOverlay != overlay) {
++                    if (activeOverlay) {
++                        activeOverlay.blur();
++                    }
++                    activeOverlay = overlay;
++                    this.bringToTop(activeOverlay);
++                    Dom.addClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    changed = true;
++                }
++                return changed;
++            };
++
++            var overlays = this.cfg.getProperty("overlays");
++
++            if (! this.overlays) {
++                this.overlays = [];
++            }
++
++            if (overlays) {
++                this.register(overlays);
++                this.overlays.sort(this.compareZIndexDesc);
++            }
++        },
++
++        /**
++        * @method _onOverlayElementFocus
++        * @description Event handler for the DOM event that is used to focus 
++        * the Overlay instance as specified by the "focusevent" 
++        * configuration property.
++        * @private
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (Event).
++        */
++        _onOverlayElementFocus: function (p_oEvent) {
++
++            var oTarget = Event.getTarget(p_oEvent),
++                oClose = this.close;
++
++            if (oClose && (oTarget == oClose || Dom.isAncestor(oClose, oTarget))) {
++                this.blur();
++            } else {
++                this.focus();
++            }
++        },
++
++        /**
++        * @method _onOverlayDestroy
++        * @description "destroy" event handler for the Overlay.
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayDestroy: function (p_sType, p_aArgs, p_oOverlay) {
++            this.remove(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayFocusHandler
++        *
++        * @description focusEvent Handler, used to delegate to _manageFocus with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayFocusHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageFocus(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayBlurHandler
++        * @description blurEvent Handler, used to delegate to _manageBlur with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayBlurHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageBlur(p_oOverlay);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance focusEvent, to allow the OverlayManager to
++         * monitor focus state.
++         * 
++         * If the instance already has a focusEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing focusEvent, however if a focusEvent or focus method does not exist
++         * on the instance, the _bindFocus method will add them, and the focus method will 
++         * update the OverlayManager's state directly.
++         * 
++         * @method _bindFocus
++         * @param {Overlay} overlay The overlay for which focus needs to be managed
++         * @protected
++         */
++        _bindFocus : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.focusEvent) {
++                overlay.focusEvent = overlay.createEvent("focus");
++                overlay.focusEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.focusEvent.subscribe(mgr._onOverlayFocusHandler, overlay, mgr);
++            }
++
++            if (!overlay.focus) {
++                Event.on(overlay.element, mgr.cfg.getProperty("focusevent"), mgr._onOverlayElementFocus, null, overlay);
++                overlay.focus = function () {
++                    if (mgr._manageFocus(this)) {
++                        // For Panel/Dialog
++                        if (this.cfg.getProperty("visible") && this.focusFirst) {
++                            this.focusFirst();
++                        }
++                        this.focusEvent.fire();
++                    }
++                };
++                overlay.focus._managed = true;
++            }
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's blurEvent to allow the OverlayManager to
++         * monitor blur state.
++         *
++         * If the instance already has a blurEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing blurEvent, however if a blurEvent or blur method does not exist
++         * on the instance, the _bindBlur method will add them, and the blur method 
++         * update the OverlayManager's state directly.
++         *
++         * @method _bindBlur
++         * @param {Overlay} overlay The overlay for which blur needs to be managed
++         * @protected
++         */
++        _bindBlur : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.blurEvent) {
++                overlay.blurEvent = overlay.createEvent("blur");
++                overlay.blurEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.blurEvent.subscribe(mgr._onOverlayBlurHandler, overlay, mgr);
++            }
++
++            if (!overlay.blur) {
++                overlay.blur = function () {
++                    if (mgr._manageBlur(this)) {
++                        this.blurEvent.fire();
++                    }
++                };
++                overlay.blur._managed = true;
++            }
++
++            overlay.hideEvent.subscribe(overlay.blur);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's destroyEvent, to allow the Overlay
++         * to be removed for the OverlayManager when destroyed.
++         * 
++         * @method _bindDestroy
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _bindDestroy : function(overlay) {
++            var mgr = this;
++            overlay.destroyEvent.subscribe(mgr._onOverlayDestroy, overlay, mgr);
++        },
++
++        /**
++         * Ensures the zIndex configuration property on the managed overlay based instance
++         * is set to the computed zIndex value from the DOM (with "auto" translating to 0).
++         *
++         * @method _syncZIndex
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _syncZIndex : function(overlay) {
++            var zIndex = Dom.getStyle(overlay.element, "zIndex");
++            if (!isNaN(zIndex)) {
++                overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10));
++            } else {
++                overlay.cfg.setProperty("zIndex", 0);
++            }
++        },
++
++        /**
++        * Registers an Overlay or an array of Overlays with the manager. Upon 
++        * registration, the Overlay receives functions for focus and blur, 
++        * along with CustomEvents for each.
++        *
++        * @method register
++        * @param {Overlay} overlay  An Overlay to register with the manager.
++        * @param {Overlay[]} overlay  An array of Overlays to register with 
++        * the manager.
++        * @return {boolean} true if any Overlays are registered.
++        */
++        register: function (overlay) {
++
++            var registered = false,
++                i,
++                n;
++
++            if (overlay instanceof Overlay) {
++
++                overlay.cfg.addProperty("manager", { value: this } );
++
++                this._bindFocus(overlay);
++                this._bindBlur(overlay);
++                this._bindDestroy(overlay);
++                this._syncZIndex(overlay);
++
++                this.overlays.push(overlay);
++                this.bringToTop(overlay);
++
++                registered = true;
++
++            } else if (overlay instanceof Array) {
++
++                for (i = 0, n = overlay.length; i < n; i++) {
++                    registered = this.register(overlay[i]) || registered;
++                }
++
++            }
++
++            return registered;
++        },
++
++        /**
++        * Places the specified Overlay instance on top of all other 
++        * Overlay instances.
++        * @method bringToTop
++        * @param {YAHOO.widget.Overlay} p_oOverlay Object representing an 
++        * Overlay instance.
++        * @param {String} p_oOverlay String representing the id of an 
++        * Overlay instance.
++        */        
++        bringToTop: function (p_oOverlay) {
++
++            var oOverlay = this.find(p_oOverlay),
++                nTopZIndex,
++                oTopOverlay,
++                aOverlays;
++
++            if (oOverlay) {
++
++                aOverlays = this.overlays;
++                aOverlays.sort(this.compareZIndexDesc);
++
++                oTopOverlay = aOverlays[0];
++
++                if (oTopOverlay) {
++                    nTopZIndex = Dom.getStyle(oTopOverlay.element, "zIndex");
++
++                    if (!isNaN(nTopZIndex)) {
++
++                        var bRequiresBump = false;
++
++                        if (oTopOverlay !== oOverlay) {
++                            bRequiresBump = true;
++                        } else if (aOverlays.length > 1) {
++                            var nNextZIndex = Dom.getStyle(aOverlays[1].element, "zIndex");
++                            // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                            if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                                bRequiresBump = true;
++                            }
++                        }
++
++                        if (bRequiresBump) {
++                            oOverlay.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                        }
++                    }
++                    aOverlays.sort(this.compareZIndexDesc);
++                }
++            }
++        },
++
++        /**
++        * Attempts to locate an Overlay by instance or ID.
++        * @method find
++        * @param {Overlay} overlay  An Overlay to locate within the manager
++        * @param {String} overlay  An Overlay id to locate within the manager
++        * @return {Overlay} The requested Overlay, if found, or null if it 
++        * cannot be located.
++        */
++        find: function (overlay) {
++
++            var isInstance = overlay instanceof Overlay,
++                overlays = this.overlays,
++                n = overlays.length,
++                found = null,
++                o,
++                i;
++
++            if (isInstance || typeof overlay == "string") {
++                for (i = n-1; i >= 0; i--) {
++                    o = overlays[i];
++                    if ((isInstance && (o === overlay)) || (o.id == overlay)) {
++                        found = o;
++                        break;
++                    }
++                }
++            }
++
++            return found;
++        },
++
++        /**
++        * Used for sorting the manager's Overlays by z-index.
++        * @method compareZIndexDesc
++        * @private
++        * @return {Number} 0, 1, or -1, depending on where the Overlay should 
++        * fall in the stacking order.
++        */
++        compareZIndexDesc: function (o1, o2) {
++
++            var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
++                zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
++
++            if (zIndex1 === null && zIndex2 === null) {
++                return 0;
++            } else if (zIndex1 === null){
++                return 1;
++            } else if (zIndex2 === null) {
++                return -1;
++            } else if (zIndex1 > zIndex2) {
++                return -1;
++            } else if (zIndex1 < zIndex2) {
++                return 1;
++            } else {
++                return 0;
++            }
++        },
++
++        /**
++        * Shows all Overlays in the manager.
++        * @method showAll
++        */
++        showAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].show();
++            }
++        },
++
++        /**
++        * Hides all Overlays in the manager.
++        * @method hideAll
++        */
++        hideAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].hide();
++            }
++        },
++
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the OverlayManager
++        */
++        toString: function () {
++            return "OverlayManager";
++        }
++    };
++}());
++(function () {
++
++    /**
++    * Tooltip is an implementation of Overlay that behaves like an OS tooltip, 
++    * displaying when the user mouses over a particular element, and 
++    * disappearing on mouse out.
++    * @namespace YAHOO.widget
++    * @class Tooltip
++    * @extends YAHOO.widget.Overlay
++    * @constructor
++    * @param {String} el The element ID representing the Tooltip <em>OR</em>
++    * @param {HTMLElement} el The element representing the Tooltip
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Overlay. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Tooltip = function (el, userConfig) {
++        YAHOO.widget.Tooltip.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Lang = YAHOO.lang,
++        Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Dom = YAHOO.util.Dom,
++        Tooltip = YAHOO.widget.Tooltip,
++        UA = YAHOO.env.ua,
++        bIEQuirks = (UA.ie && (UA.ie <= 6 || document.compatMode == "BackCompat")),
++
++        m_oShadowTemplate,
++
++        /**
++        * Constant representing the Tooltip's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "PREVENT_OVERLAP": { 
++                key: "preventoverlap", 
++                value: true, 
++                validator: Lang.isBoolean, 
++                supercedes: ["x", "y", "xy"] 
++            },
++
++            "SHOW_DELAY": { 
++                key: "showdelay", 
++                value: 200, 
++                validator: Lang.isNumber 
++            }, 
++
++            "AUTO_DISMISS_DELAY": { 
++                key: "autodismissdelay", 
++                value: 5000, 
++                validator: Lang.isNumber 
++            }, 
++
++            "HIDE_DELAY": { 
++                key: "hidedelay", 
++                value: 250, 
++                validator: Lang.isNumber 
++            }, 
++
++            "TEXT": { 
++                key: "text", 
++                suppressEvent: true 
++            }, 
++
++            "CONTAINER": { 
++                key: "container"
++            },
++
++            "DISABLED": {
++                key: "disabled",
++                value: false,
++                suppressEvent: true
++            },
++
++            "XY_OFFSET": {
++                key: "xyoffset",
++                value: [0, 25],
++                suppressEvent: true
++            }
++        },
++
++        /**
++        * Constant representing the name of the Tooltip's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "CONTEXT_MOUSE_OVER": "contextMouseOver",
++            "CONTEXT_MOUSE_OUT": "contextMouseOut",
++            "CONTEXT_TRIGGER": "contextTrigger"
++        };
++
++    /**
++    * Constant representing the Tooltip CSS class
++    * @property YAHOO.widget.Tooltip.CSS_TOOLTIP
++    * @static
++    * @final
++    * @type String
++    */
++    Tooltip.CSS_TOOLTIP = "yui-tt";
++
++    function restoreOriginalWidth(sOriginalWidth, sForcedWidth) {
++
++        var oConfig = this.cfg,
++            sCurrentWidth = oConfig.getProperty("width");
++
++        if (sCurrentWidth == sForcedWidth) {
++            oConfig.setProperty("width", sOriginalWidth);
++        }
++    }
++
++    /* 
++        changeContent event handler that sets a Tooltip instance's "width"
++        configuration property to the value of its root HTML 
++        elements's offsetWidth if a specific width has not been set.
++    */
++
++    function setWidthToOffsetWidth(p_sType, p_aArgs) {
++
++        if ("_originalWidth" in this) {
++            restoreOriginalWidth.call(this, this._originalWidth, this._forcedWidth);
++        }
++
++        var oBody = document.body,
++            oConfig = this.cfg,
++            sOriginalWidth = oConfig.getProperty("width"),
++            sNewWidth,
++            oClone;
++
++        if ((!sOriginalWidth || sOriginalWidth == "auto") && 
++            (oConfig.getProperty("container") != oBody || 
++            oConfig.getProperty("x") >= Dom.getViewportWidth() || 
++            oConfig.getProperty("y") >= Dom.getViewportHeight())) {
++
++            oClone = this.element.cloneNode(true);
++            oClone.style.visibility = "hidden";
++            oClone.style.top = "0px";
++            oClone.style.left = "0px";
++
++            oBody.appendChild(oClone);
++
++            sNewWidth = (oClone.offsetWidth + "px");
++
++            oBody.removeChild(oClone);
++            oClone = null;
++
++            oConfig.setProperty("width", sNewWidth);
++            oConfig.refireEvent("xy");
++
++            this._originalWidth = sOriginalWidth || "";
++            this._forcedWidth = sNewWidth;
++        }
++    }
++
++    // "onDOMReady" that renders the ToolTip
++
++    function onDOMReady(p_sType, p_aArgs, p_oObject) {
++        this.render(p_oObject);
++    }
++
++    //  "init" event handler that automatically renders the Tooltip
++
++    function onInit() {
++        Event.onDOMReady(onDOMReady, this.cfg.getProperty("container"), this);
++    }
++
++    YAHOO.extend(Tooltip, YAHOO.widget.Overlay, { 
++
++        /**
++        * The Tooltip initialization method. This method is automatically 
++        * called by the constructor. A Tooltip is automatically rendered by 
++        * the init method, and it also is set to be invisible by default, 
++        * and constrained to viewport by default as well.
++        * @method init
++        * @param {String} el The element ID representing the Tooltip <em>OR</em>
++        * @param {HTMLElement} el The element representing the Tooltip
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Tooltip. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            this.logger = new YAHOO.widget.LogWriter(this.toString());
++
++            Tooltip.superclass.init.call(this, el);
++
++            this.beforeInitEvent.fire(Tooltip);
++
++            Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            this.cfg.queueProperty("visible", false);
++            this.cfg.queueProperty("constraintoviewport", true);
++
++            this.setBody("");
++
++            this.subscribe("changeContent", setWidthToOffsetWidth);
++            this.subscribe("init", onInit);
++            this.subscribe("render", this.onRender);
++
++            this.initEvent.fire(Tooltip);
++        },
++
++        /**
++        * Initializes the custom events for Tooltip
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            Tooltip.superclass.initEvents.call(this);
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired when user mouses over a context element. Returning false from
++            * a subscriber to this event will prevent the tooltip from being displayed for
++            * the current context element.
++            * 
++            * @event contextMouseOverEvent
++            * @param {HTMLElement} context The context element which the user just moused over
++            * @param {DOMEvent} e The DOM event object, associated with the mouse over
++            */
++            this.contextMouseOverEvent = this.createEvent(EVENT_TYPES.CONTEXT_MOUSE_OVER);
++            this.contextMouseOverEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the user mouses out of a context element.
++            * 
++            * @event contextMouseOutEvent
++            * @param {HTMLElement} context The context element which the user just moused out of
++            * @param {DOMEvent} e The DOM event object, associated with the mouse out
++            */
++            this.contextMouseOutEvent = this.createEvent(EVENT_TYPES.CONTEXT_MOUSE_OUT);
++            this.contextMouseOutEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired just before the tooltip is displayed for the current context.
++            * <p>
++            *  You can subscribe to this event if you need to set up the text for the 
++            *  tooltip based on the context element for which it is about to be displayed.
++            * </p>
++            * <p>This event differs from the beforeShow event in following respects:</p>
++            * <ol>
++            *   <li>
++            *    When moving from one context element to another, if the tooltip is not
++            *    hidden (the <code>hidedelay</code> is not reached), the beforeShow and Show events will not
++            *    be fired when the tooltip is displayed for the new context since it is already visible.
++            *    However the contextTrigger event is always fired before displaying the tooltip for
++            *    a new context.
++            *   </li>
++            *   <li>
++            *    The trigger event provides access to the context element, allowing you to 
++            *    set the text of the tooltip based on context element for which the tooltip is
++            *    triggered.
++            *   </li>
++            * </ol>
++            * <p>
++            *  It is not possible to prevent the tooltip from being displayed
++            *  using this event. You can use the contextMouseOverEvent if you need to prevent
++            *  the tooltip from being displayed.
++            * </p>
++            * @event contextTriggerEvent
++            * @param {HTMLElement} context The context element for which the tooltip is triggered
++            */
++            this.contextTriggerEvent = this.createEvent(EVENT_TYPES.CONTEXT_TRIGGER);
++            this.contextTriggerEvent.signature = SIGNATURE;
++        },
++
++        /**
++        * Initializes the class's configurable properties which can be 
++        * changed using the Overlay's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++
++            Tooltip.superclass.initDefaultConfig.call(this);
++
++            /**
++            * Specifies whether the Tooltip should be kept from overlapping 
++            * its context element.
++            * @config preventoverlap
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.PREVENT_OVERLAP.key, {
++                value: DEFAULT_CONFIG.PREVENT_OVERLAP.value, 
++                validator: DEFAULT_CONFIG.PREVENT_OVERLAP.validator, 
++                supercedes: DEFAULT_CONFIG.PREVENT_OVERLAP.supercedes
++            });
++
++            /**
++            * The number of milliseconds to wait before showing a Tooltip 
++            * on mouseover.
++            * @config showdelay
++            * @type Number
++            * @default 200
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.SHOW_DELAY.key, {
++                handler: this.configShowDelay,
++                value: 200, 
++                validator: DEFAULT_CONFIG.SHOW_DELAY.validator
++            });
++
++            /**
++            * The number of milliseconds to wait before automatically 
++            * dismissing a Tooltip after the mouse has been resting on the 
++            * context element.
++            * @config autodismissdelay
++            * @type Number
++            * @default 5000
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.AUTO_DISMISS_DELAY.key, {
++                handler: this.configAutoDismissDelay,
++                value: DEFAULT_CONFIG.AUTO_DISMISS_DELAY.value,
++                validator: DEFAULT_CONFIG.AUTO_DISMISS_DELAY.validator
++            });
++
++            /**
++            * The number of milliseconds to wait before hiding a Tooltip 
++            * after mouseout.
++            * @config hidedelay
++            * @type Number
++            * @default 250
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.HIDE_DELAY.key, {
++                handler: this.configHideDelay,
++                value: DEFAULT_CONFIG.HIDE_DELAY.value, 
++                validator: DEFAULT_CONFIG.HIDE_DELAY.validator
++            });
++
++            /**
++            * Specifies the Tooltip's text. 
++            * @config text
++            * @type String
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.TEXT.key, {
++                handler: this.configText,
++                suppressEvent: DEFAULT_CONFIG.TEXT.suppressEvent
++            });
++
++            /**
++            * Specifies the container element that the Tooltip's markup 
++            * should be rendered into.
++            * @config container
++            * @type HTMLElement/String
++            * @default document.body
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.CONTAINER.key, {
++                handler: this.configContainer,
++                value: document.body
++            });
++
++            /**
++            * Specifies whether or not the tooltip is disabled. Disabled tooltips
++            * will not be displayed. If the tooltip is driven by the title attribute
++            * of the context element, the title attribute will still be removed for 
++            * disabled tooltips, to prevent default tooltip behavior.
++            * 
++            * @config disabled
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.DISABLED.key, {
++                handler: this.configContainer,
++                value: DEFAULT_CONFIG.DISABLED.value,
++                supressEvent: DEFAULT_CONFIG.DISABLED.suppressEvent
++            });
++
++            /**
++            * Specifies the XY offset from the mouse position, where the tooltip should be displayed, specified
++            * as a 2 element array (e.g. [10, 20]); 
++            *
++            * @config xyoffset
++            * @type Array
++            * @default [0, 25]
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.XY_OFFSET.key, {
++                value: DEFAULT_CONFIG.XY_OFFSET.value.concat(),
++                supressEvent: DEFAULT_CONFIG.XY_OFFSET.suppressEvent 
++            });
++
++            /**
++            * Specifies the element or elements that the Tooltip should be 
++            * anchored to on mouseover.
++            * @config context
++            * @type HTMLElement[]/String[]
++            * @default null
++            */ 
++
++            /**
++            * String representing the width of the Tooltip.  <em>Please note:
++            * </em> As of version 2.3 if either no value or a value of "auto" 
++            * is specified, and the Toolip's "container" configuration property
++            * is set to something other than <code>document.body</code> or 
++            * its "context" element resides outside the immediately visible 
++            * portion of the document, the width of the Tooltip will be 
++            * calculated based on the offsetWidth of its root HTML and set just 
++            * before it is made visible.  The original value will be 
++            * restored when the Tooltip is hidden. This ensures the Tooltip is 
++            * rendered at a usable width.  For more information see 
++            * YUILibrary bug #1685496 and YUILibrary 
++            * bug #1735423.
++            * @config width
++            * @type String
++            * @default null
++            */
++        
++        },
++        
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * The default event handler fired when the "text" property is changed.
++        * @method configText
++        * @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.
++        */
++        configText: function (type, args, obj) {
++            var text = args[0];
++            if (text) {
++                this.setBody(text);
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "container" property 
++        * is changed.
++        * @method configContainer
++        * @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.
++        */
++        configContainer: function (type, args, obj) {
++            var container = args[0];
++
++            if (typeof container == 'string') {
++                this.cfg.setProperty("container", document.getElementById(container), true);
++            }
++        },
++        
++        /**
++        * @method _removeEventListeners
++        * @description Removes all of the DOM event handlers from the HTML
++        *  element(s) that trigger the display of the tooltip.
++        * @protected
++        */
++        _removeEventListeners: function () {
++        
++            var aElements = this._context,
++                nElements,
++                oElement,
++                i;
++
++            if (aElements) {
++                nElements = aElements.length;
++                if (nElements > 0) {
++                    i = nElements - 1;
++                    do {
++                        oElement = aElements[i];
++                        Event.removeListener(oElement, "mouseover", this.onContextMouseOver);
++                        Event.removeListener(oElement, "mousemove", this.onContextMouseMove);
++                        Event.removeListener(oElement, "mouseout", this.onContextMouseOut);
++                    }
++                    while (i--);
++                }
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "context" property 
++        * is changed.
++        * @method configContext
++        * @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.
++        */
++        configContext: function (type, args, obj) {
++
++            var context = args[0],
++                aElements,
++                nElements,
++                oElement,
++                i;
++
++            if (context) {
++
++                // Normalize parameter into an array
++                if (! (context instanceof Array)) {
++                    if (typeof context == "string") {
++                        this.cfg.setProperty("context", [document.getElementById(context)], true);
++                    } else { // Assuming this is an element
++                        this.cfg.setProperty("context", [context], true);
++                    }
++                    context = this.cfg.getProperty("context");
++                }
++
++                // Remove any existing mouseover/mouseout listeners
++                this._removeEventListeners();
++
++                // Add mouseover/mouseout listeners to context elements
++                this._context = context;
++
++                aElements = this._context;
++
++                if (aElements) {
++                    nElements = aElements.length;
++                    if (nElements > 0) {
++                        i = nElements - 1;
++                        do {
++                            oElement = aElements[i];
++                            Event.on(oElement, "mouseover", this.onContextMouseOver, this);
++                            Event.on(oElement, "mousemove", this.onContextMouseMove, this);
++                            Event.on(oElement, "mouseout", this.onContextMouseOut, this);
++                        }
++                        while (i--);
++                    }
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++
++        // BEGIN BUILT-IN DOM EVENT HANDLERS //
++
++        /**
++        * The default event handler fired when the user moves the mouse while 
++        * over the context element.
++        * @method onContextMouseMove
++        * @param {DOMEvent} e The current DOM event
++        * @param {Object} obj The object argument
++        */
++        onContextMouseMove: function (e, obj) {
++            obj.pageX = Event.getPageX(e);
++            obj.pageY = Event.getPageY(e);
++        },
++
++        /**
++        * The default event handler fired when the user mouses over the 
++        * context element.
++        * @method onContextMouseOver
++        * @param {DOMEvent} e The current DOM event
++        * @param {Object} obj The object argument
++        */
++        onContextMouseOver: function (e, obj) {
++            var context = this;
++
++            if (context.title) {
++                obj._tempTitle = context.title;
++                context.title = "";
++            }
++
++            // Fire first, to honor disabled set in the listner
++            if (obj.fireEvent("contextMouseOver", context, e) !== false 
++                    && !obj.cfg.getProperty("disabled")) {
++
++                // Stop the tooltip from being hidden (set on last mouseout)
++                if (obj.hideProcId) {
++                    clearTimeout(obj.hideProcId);
++                    obj.logger.log("Clearing hide timer: " + obj.hideProcId, "time");
++                    obj.hideProcId = null;
++                }
++
++                Event.on(context, "mousemove", obj.onContextMouseMove, obj);
++
++                /**
++                * The unique process ID associated with the thread responsible 
++                * for showing the Tooltip.
++                * @type int
++                */
++                obj.showProcId = obj.doShow(e, context);
++                obj.logger.log("Setting show tooltip timeout: " + obj.showProcId, "time");
++            }
++        },
++
++        /**
++        * The default event handler fired when the user mouses out of 
++        * the context element.
++        * @method onContextMouseOut
++        * @param {DOMEvent} e The current DOM event
++        * @param {Object} obj The object argument
++        */
++        onContextMouseOut: function (e, obj) {
++            var el = this;
++
++            if (obj._tempTitle) {
++                el.title = obj._tempTitle;
++                obj._tempTitle = null;
++            }
++
++            if (obj.showProcId) {
++                clearTimeout(obj.showProcId);
++                obj.logger.log("Clearing show timer: " + obj.showProcId, "time");
++                obj.showProcId = null;
++            }
++
++            if (obj.hideProcId) {
++                clearTimeout(obj.hideProcId);
++                obj.logger.log("Clearing hide timer: " + obj.hideProcId, "time");
++                obj.hideProcId = null;
++            }
++
++            obj.fireEvent("contextMouseOut", el, e);
++
++            obj.hideProcId = setTimeout(function () {
++                obj.hide();
++            }, obj.cfg.getProperty("hidedelay"));
++        },
++
++        // END BUILT-IN DOM EVENT HANDLERS //
++
++        /**
++        * Processes the showing of the Tooltip by setting the timeout delay 
++        * and offset of the Tooltip.
++        * @method doShow
++        * @param {DOMEvent} e The current DOM event
++        * @param {HTMLElement} context The current context element
++        * @return {Number} The process ID of the timeout function associated 
++        * with doShow
++        */
++        doShow: function (e, context) {
++
++            var offset = this.cfg.getProperty("xyoffset"),
++                xOffset = offset[0],
++                yOffset = offset[1],
++                me = this;
++
++            if (UA.opera && context.tagName && 
++                context.tagName.toUpperCase() == "A") {
++                yOffset += 12;
++            }
++
++            return setTimeout(function () {
++
++                var txt = me.cfg.getProperty("text");
++
++                // title does not over-ride text
++                if (me._tempTitle && (txt === "" || YAHOO.lang.isUndefined(txt) || YAHOO.lang.isNull(txt))) {
++                    me.setBody(me._tempTitle);
++                } else {
++                    me.cfg.refireEvent("text");
++                }
++
++                me.logger.log("Show tooltip", "time");
++                me.moveTo(me.pageX + xOffset, me.pageY + yOffset);
++
++                if (me.cfg.getProperty("preventoverlap")) {
++                    me.preventOverlap(me.pageX, me.pageY);
++                }
++
++                Event.removeListener(context, "mousemove", me.onContextMouseMove);
++
++                me.contextTriggerEvent.fire(context);
++
++                me.show();
++
++                me.hideProcId = me.doHide();
++                me.logger.log("Hide tooltip time active: " + me.hideProcId, "time");
++
++            }, this.cfg.getProperty("showdelay"));
++        },
++
++        /**
++        * Sets the timeout for the auto-dismiss delay, which by default is 5 
++        * seconds, meaning that a tooltip will automatically dismiss itself 
++        * after 5 seconds of being displayed.
++        * @method doHide
++        */
++        doHide: function () {
++
++            var me = this;
++
++            me.logger.log("Setting hide tooltip timeout", "time");
++
++            return setTimeout(function () {
++
++                me.logger.log("Hide tooltip", "time");
++                me.hide();
++
++            }, this.cfg.getProperty("autodismissdelay"));
++
++        },
++
++        /**
++        * Fired when the Tooltip is moved, this event handler is used to 
++        * prevent the Tooltip from overlapping with its context element.
++        * @method preventOverlay
++        * @param {Number} pageX The x coordinate position of the mouse pointer
++        * @param {Number} pageY The y coordinate position of the mouse pointer
++        */
++        preventOverlap: function (pageX, pageY) {
++        
++            var height = this.element.offsetHeight,
++                mousePoint = new YAHOO.util.Point(pageX, pageY),
++                elementRegion = Dom.getRegion(this.element);
++        
++            elementRegion.top -= 5;
++            elementRegion.left -= 5;
++            elementRegion.right += 5;
++            elementRegion.bottom += 5;
++        
++            this.logger.log("context " + elementRegion, "ttip");
++            this.logger.log("mouse " + mousePoint, "ttip");
++        
++            if (elementRegion.contains(mousePoint)) {
++                this.logger.log("OVERLAP", "warn");
++                this.cfg.setProperty("y", (pageY - height - 5));
++            }
++        },
++
++
++        /**
++        * @method onRender
++        * @description "render" event handler for the Tooltip.
++        * @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.underlay;
++            
++                if (oShadow) {
++                    oShadow.style.width = (oElement.offsetWidth + 6) + "px";
++                    oShadow.style.height = (oElement.offsetHeight + 1) + "px"; 
++                }
++            
++            }
++
++            function addShadowVisibleClass() {
++                Dom.addClass(this.underlay, "yui-tt-shadow-visible");
++
++                if (UA.ie) {
++                    this.forceUnderlayRedraw();
++                }
++            }
++
++            function removeShadowVisibleClass() {
++                Dom.removeClass(this.underlay, "yui-tt-shadow-visible");
++            }
++
++            function createShadow() {
++    
++                var oShadow = this.underlay,
++                    oElement,
++                    Module,
++                    nIE,
++                    me;
++    
++                if (!oShadow) {
++    
++                    oElement = this.element;
++                    Module = YAHOO.widget.Module;
++                    nIE = UA.ie;
++                    me = this;
++
++                    if (!m_oShadowTemplate) {
++                        m_oShadowTemplate = document.createElement("div");
++                        m_oShadowTemplate.className = "yui-tt-shadow";
++                    }
++
++                    oShadow = m_oShadowTemplate.cloneNode(false);
++
++                    oElement.appendChild(oShadow);
++
++                    this.underlay = oShadow;
++
++                    // Backward compatibility, even though it's probably 
++                    // intended to be "private", it isn't marked as such in the api docs
++                    this._shadow = this.underlay;
++
++                    addShadowVisibleClass.call(this);
++
++                    this.subscribe("beforeShow", addShadowVisibleClass);
++                    this.subscribe("hide", removeShadowVisibleClass);
++
++                    if (bIEQuirks) {
++                        window.setTimeout(function () { 
++                            sizeShadow.call(me); 
++                        }, 0);
++    
++                        this.cfg.subscribeToConfigEvent("width", sizeShadow);
++                        this.cfg.subscribeToConfigEvent("height", sizeShadow);
++                        this.subscribe("changeContent", sizeShadow);
++
++                        Module.textResizeEvent.subscribe(sizeShadow, this, true);
++                        this.subscribe("destroy", function () {
++                            Module.textResizeEvent.unsubscribe(sizeShadow, this);
++                        });
++                    }
++                }
++            }
++
++            function onBeforeShow() {
++                createShadow.call(this);
++                this.unsubscribe("beforeShow", onBeforeShow);
++            }
++
++            if (this.cfg.getProperty("visible")) {
++                createShadow.call(this);
++            } else {
++                this.subscribe("beforeShow", onBeforeShow);
++            }
++        
++        },
++
++        /**
++         * Forces the underlay element to be repainted, through the application/removal
++         * of a yui-force-redraw class to the underlay element.
++         * 
++         * @method forceUnderlayRedraw
++         */
++        forceUnderlayRedraw : function() {
++            var tt = this;
++            Dom.addClass(tt.underlay, "yui-force-redraw");
++            setTimeout(function() {Dom.removeClass(tt.underlay, "yui-force-redraw");}, 0);
++        },
++
++        /**
++        * Removes the Tooltip element from the DOM and sets all child 
++        * elements to null.
++        * @method destroy
++        */
++        destroy: function () {
++        
++            // Remove any existing mouseover/mouseout listeners
++            this._removeEventListeners();
++
++            Tooltip.superclass.destroy.call(this);  
++        
++        },
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Tooltip
++        */
++        toString: function () {
++            return "Tooltip " + this.id;
++        }
++    
++    });
++
++}());
++(function () {
++
++    /**
++    * Panel is an implementation of Overlay that behaves like an OS window, 
++    * with a draggable header and an optional close icon at the top right.
++    * @namespace YAHOO.widget
++    * @class Panel
++    * @extends YAHOO.widget.Overlay
++    * @constructor
++    * @param {String} el The element ID representing the Panel <em>OR</em>
++    * @param {HTMLElement} el The element representing the Panel
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Panel. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Panel = function (el, userConfig) {
++        YAHOO.widget.Panel.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var _currentModal = null;
++
++    var Lang = YAHOO.lang,
++        Util = YAHOO.util,
++        Dom = Util.Dom,
++        Event = Util.Event,
++        CustomEvent = Util.CustomEvent,
++        KeyListener = YAHOO.util.KeyListener,
++        Config = Util.Config,
++        Overlay = YAHOO.widget.Overlay,
++        Panel = YAHOO.widget.Panel,
++        UA = YAHOO.env.ua,
++
++        bIEQuirks = (UA.ie && (UA.ie <= 6 || document.compatMode == "BackCompat")),
++
++        m_oMaskTemplate,
++        m_oUnderlayTemplate,
++        m_oCloseIconTemplate,
++
++        /**
++        * Constant representing the name of the Panel's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "SHOW_MASK": "showMask",
++            "HIDE_MASK": "hideMask",
++            "DRAG": "drag"
++        },
++
++        /**
++        * Constant representing the Panel's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "CLOSE": { 
++                key: "close", 
++                value: true, 
++                validator: Lang.isBoolean, 
++                supercedes: ["visible"] 
++            },
++
++            "DRAGGABLE": {
++                key: "draggable", 
++                value: (Util.DD ? true : false), 
++                validator: Lang.isBoolean, 
++                supercedes: ["visible"]  
++            },
++
++            "DRAG_ONLY" : {
++                key: "dragonly",
++                value: false,
++                validator: Lang.isBoolean,
++                supercedes: ["draggable"]
++            },
++
++            "UNDERLAY": { 
++                key: "underlay", 
++                value: "shadow", 
++                supercedes: ["visible"] 
++            },
++
++            "MODAL": { 
++                key: "modal", 
++                value: false, 
++                validator: Lang.isBoolean, 
++                supercedes: ["visible", "zindex"]
++            },
++
++            "KEY_LISTENERS": {
++                key: "keylisteners",
++                suppressEvent: true,
++                supercedes: ["visible"]
++            },
++
++            "STRINGS" : {
++                key: "strings",
++                supercedes: ["close"],
++                validator: Lang.isObject,
++                value: {
++                    close: "Close"
++                }
++            }
++        };
++
++    /**
++    * Constant representing the default CSS class used for a Panel
++    * @property YAHOO.widget.Panel.CSS_PANEL
++    * @static
++    * @final
++    * @type String
++    */
++    Panel.CSS_PANEL = "yui-panel";
++    
++    /**
++    * Constant representing the default CSS class used for a Panel's 
++    * wrapping container
++    * @property YAHOO.widget.Panel.CSS_PANEL_CONTAINER
++    * @static
++    * @final
++    * @type String
++    */
++    Panel.CSS_PANEL_CONTAINER = "yui-panel-container";
++
++    /**
++     * Constant representing the default set of focusable elements 
++     * on the pagewhich Modal Panels will prevent access to, when
++     * the modal mask is displayed
++     * 
++     * @property YAHOO.widget.Panel.FOCUSABLE
++     * @static
++     * @type Array
++     */
++    Panel.FOCUSABLE = [
++        "a",
++        "button",
++        "select",
++        "textarea",
++        "input",
++        "iframe"
++    ];
++
++    // Private CustomEvent listeners
++
++    /* 
++        "beforeRender" event handler that creates an empty header for a Panel 
++        instance if its "draggable" configuration property is set to "true" 
++        and no header has been created.
++    */
++
++    function createHeader(p_sType, p_aArgs) {
++        if (!this.header && this.cfg.getProperty("draggable")) {
++            this.setHeader("&#160;");
++        }
++    }
++
++    /* 
++        "hide" event handler that sets a Panel instance's "width"
++        configuration property back to its original value before 
++        "setWidthToOffsetWidth" was called.
++    */
++    
++    function restoreOriginalWidth(p_sType, p_aArgs, p_oObject) {
++
++        var sOriginalWidth = p_oObject[0],
++            sNewWidth = p_oObject[1],
++            oConfig = this.cfg,
++            sCurrentWidth = oConfig.getProperty("width");
++
++        if (sCurrentWidth == sNewWidth) {
++            oConfig.setProperty("width", sOriginalWidth);
++        }
++
++        this.unsubscribe("hide", restoreOriginalWidth, p_oObject);
++    }
++
++    /* 
++        "beforeShow" event handler that sets a Panel instance's "width"
++        configuration property to the value of its root HTML 
++        elements's offsetWidth
++    */
++
++    function setWidthToOffsetWidth(p_sType, p_aArgs) {
++
++        var oConfig,
++            sOriginalWidth,
++            sNewWidth;
++
++        if (bIEQuirks) {
++
++            oConfig = this.cfg;
++            sOriginalWidth = oConfig.getProperty("width");
++            
++            if (!sOriginalWidth || sOriginalWidth == "auto") {
++    
++                sNewWidth = (this.element.offsetWidth + "px");
++    
++                oConfig.setProperty("width", sNewWidth);
++
++                this.subscribe("hide", restoreOriginalWidth, 
++                    [(sOriginalWidth || ""), sNewWidth]);
++            
++            }
++        }
++    }
++
++    YAHOO.extend(Panel, Overlay, {
++
++        /**
++        * The Overlay initialization method, which is executed for Overlay and 
++        * all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the Overlay <em>OR</em>
++        * @param {HTMLElement} el The element representing the Overlay
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Overlay. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++            /*
++                 Note that we don't pass the user config in here yet because 
++                 we only want it executed once, at the lowest subclass level
++            */
++
++            Panel.superclass.init.call(this, el/*, userConfig*/);
++
++            this.beforeInitEvent.fire(Panel);
++
++            Dom.addClass(this.element, Panel.CSS_PANEL);
++
++            this.buildWrapper();
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            this.subscribe("showMask", this._addFocusHandlers);
++            this.subscribe("hideMask", this._removeFocusHandlers);
++            this.subscribe("beforeRender", createHeader);
++
++            this.subscribe("render", function() {
++                this.setFirstLastFocusable();
++                this.subscribe("changeContent", this.setFirstLastFocusable);
++            });
++
++            this.subscribe("show", this.focusFirst);
++
++            this.initEvent.fire(Panel);
++        },
++
++        /**
++         * @method _onElementFocus
++         * @private
++         *
++         * "focus" event handler for a focuable element. Used to automatically
++         * blur the element when it receives focus to ensure that a Panel
++         * instance's modality is not compromised.
++         *
++         * @param {Event} e The DOM event object
++         */
++        _onElementFocus : function(e){
++
++            if(_currentModal === this) {
++
++                var target = Event.getTarget(e),
++                    doc = document.documentElement,
++                    insideDoc = (target !== doc && target !== window);
++
++                // mask and documentElement checks added for IE, which focuses on the mask when it's clicked on, and focuses on 
++                // the documentElement, when the document scrollbars are clicked on
++                if (insideDoc && target !== this.element && target !== this.mask && !Dom.isAncestor(this.element, target)) {
++                    try {
++                        if (this.firstElement) {
++                            this.firstElement.focus();
++                        } else {
++                            if (this._modalFocus) {
++                                this._modalFocus.focus();
++                            } else {
++                                this.innerElement.focus();
++                            }
++                        }
++                    } catch(err){
++                        // Just in case we fail to focus
++                        try {
++                            if (insideDoc && target !== document.body) {
++                                target.blur();
++                            }
++                        } catch(err2) { }
++                    }
++                }
++            }
++        },
++
++        /** 
++         *  @method _addFocusHandlers
++         *  @protected
++         *  
++         *  "showMask" event handler that adds a "focus" event handler to all
++         *  focusable elements in the document to enforce a Panel instance's 
++         *  modality from being compromised.
++         *
++         *  @param p_sType {String} Custom event type
++         *  @param p_aArgs {Array} Custom event arguments
++         */
++        _addFocusHandlers: function(p_sType, p_aArgs) {
++            if (!this.firstElement) {
++                if (UA.webkit || UA.opera) {
++                    if (!this._modalFocus) {
++                        this._createHiddenFocusElement();
++                    }
++                } else {
++                    this.innerElement.tabIndex = 0;
++                }
++            }
++            this.setTabLoop(this.firstElement, this.lastElement);
++            Event.onFocus(document.documentElement, this._onElementFocus, this, true);
++            _currentModal = this;
++        },
++
++        /**
++         * Creates a hidden focusable element, used to focus on,
++         * to enforce modality for browsers in which focus cannot
++         * be applied to the container box.
++         * 
++         * @method _createHiddenFocusElement
++         * @private
++         */
++        _createHiddenFocusElement : function() {
++            var e = document.createElement("button");
++            e.style.height = "1px";
++            e.style.width = "1px";
++            e.style.position = "absolute";
++            e.style.left = "-10000em";
++            e.style.opacity = 0;
++            e.tabIndex = -1;
++            this.innerElement.appendChild(e);
++            this._modalFocus = e;
++        },
++
++        /**
++         *  @method _removeFocusHandlers
++         *  @protected
++         *
++         *  "hideMask" event handler that removes all "focus" event handlers added 
++         *  by the "addFocusEventHandlers" method.
++         *
++         *  @param p_sType {String} Event type
++         *  @param p_aArgs {Array} Event Arguments
++         */
++        _removeFocusHandlers: function(p_sType, p_aArgs) {
++            Event.removeFocusListener(document.documentElement, this._onElementFocus, this);
++
++            if (_currentModal == this) {
++                _currentModal = null;
++            }
++        },
++
++        /**
++         * Sets focus to the first element in the Panel.
++         *
++         * @method focusFirst
++         */
++        focusFirst: function (type, args, obj) {
++            var el = this.firstElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (el) {
++                try {
++                    el.focus();
++                } catch(err) {
++                    // Ignore
++                }
++            }
++        },
++
++        /**
++         * Sets focus to the last element in the Panel.
++         *
++         * @method focusLast
++         */
++        focusLast: function (type, args, obj) {
++            var el = this.lastElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (el) {
++                try {
++                    el.focus();
++                } catch(err) {
++                    // Ignore
++                }
++            }
++        },
++
++        /**
++         * Sets up a tab, shift-tab loop between the first and last elements
++         * provided. NOTE: Sets up the preventBackTab and preventTabOut KeyListener
++         * instance properties, which are reset everytime this method is invoked.
++         *
++         * @method setTabLoop
++         * @param {HTMLElement} firstElement
++         * @param {HTMLElement} lastElement
++         *
++         */
++        setTabLoop : function(firstElement, lastElement) {
++
++            var backTab = this.preventBackTab, tab = this.preventTabOut,
++                showEvent = this.showEvent, hideEvent = this.hideEvent;
++
++            if (backTab) {
++                backTab.disable();
++                showEvent.unsubscribe(backTab.enable, backTab);
++                hideEvent.unsubscribe(backTab.disable, backTab);
++                backTab = this.preventBackTab = null;
++            }
++
++            if (tab) {
++                tab.disable();
++                showEvent.unsubscribe(tab.enable, tab);
++                hideEvent.unsubscribe(tab.disable,tab);
++                tab = this.preventTabOut = null;
++            }
++
++            if (firstElement) {
++                this.preventBackTab = new KeyListener(firstElement, 
++                    {shift:true, keys:9},
++                    {fn:this.focusLast, scope:this, correctScope:true}
++                );
++                backTab = this.preventBackTab;
++
++                showEvent.subscribe(backTab.enable, backTab, true);
++                hideEvent.subscribe(backTab.disable,backTab, true);
++            }
++
++            if (lastElement) {
++                this.preventTabOut = new KeyListener(lastElement, 
++                    {shift:false, keys:9}, 
++                    {fn:this.focusFirst, scope:this, correctScope:true}
++                );
++                tab = this.preventTabOut;
++
++                showEvent.subscribe(tab.enable, tab, true);
++                hideEvent.subscribe(tab.disable,tab, true);
++            }
++        },
++
++        /**
++         * Returns an array of the currently focusable items which reside within
++         * Panel. The set of focusable elements the method looks for are defined
++         * in the Panel.FOCUSABLE static property
++         *
++         * @method getFocusableElements
++         * @param {HTMLElement} root element to start from.
++         */
++        getFocusableElements : function(root) {
++
++            root = root || this.innerElement;
++
++            var focusable = {};
++            for (var i = 0; i < Panel.FOCUSABLE.length; i++) {
++                focusable[Panel.FOCUSABLE[i]] = true;
++            }
++
++            function isFocusable(el) {
++                if (el.focus && el.type !== "hidden" && !el.disabled && focusable[el.tagName.toLowerCase()]) {
++                    return true;
++                }
++                return false;
++            }
++
++            // Not looking by Tag, since we want elements in DOM order
++            return Dom.getElementsBy(isFocusable, null, root);
++        },
++
++        /**
++         * Sets the firstElement and lastElement instance properties
++         * to the first and last focusable elements in the Panel.
++         *
++         * @method setFirstLastFocusable
++         */
++        setFirstLastFocusable : function() {
++
++            this.firstElement = null;
++            this.lastElement = null;
++
++            var elements = this.getFocusableElements();
++            this.focusableElements = elements;
++
++            if (elements.length > 0) {
++                this.firstElement = elements[0];
++                this.lastElement = elements[elements.length - 1];
++            }
++
++            if (this.cfg.getProperty("modal")) {
++                this.setTabLoop(this.firstElement, this.lastElement);
++            }
++        },
++
++        /**
++         * Initializes the custom events for Module which are fired 
++         * automatically at appropriate times by the Module class.
++         */
++        initEvents: function () {
++            Panel.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired after the modality mask is shown
++            * @event showMaskEvent
++            */
++            this.showMaskEvent = this.createEvent(EVENT_TYPES.SHOW_MASK);
++            this.showMaskEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the modality mask is hidden
++            * @event hideMaskEvent
++            */
++            this.hideMaskEvent = this.createEvent(EVENT_TYPES.HIDE_MASK);
++            this.hideMaskEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent when the Panel is dragged
++            * @event dragEvent
++            */
++            this.dragEvent = this.createEvent(EVENT_TYPES.DRAG);
++            this.dragEvent.signature = SIGNATURE;
++        },
++
++        /**
++         * Initializes the class's configurable properties which can be changed 
++         * using the Panel's Config object (cfg).
++         * @method initDefaultConfig
++         */
++        initDefaultConfig: function () {
++            Panel.superclass.initDefaultConfig.call(this);
++
++            // Add panel config properties //
++
++            /**
++            * True if the Panel should display a "close" button
++            * @config close
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.CLOSE.key, { 
++                handler: this.configClose, 
++                value: DEFAULT_CONFIG.CLOSE.value, 
++                validator: DEFAULT_CONFIG.CLOSE.validator, 
++                supercedes: DEFAULT_CONFIG.CLOSE.supercedes 
++            });
++
++            /**
++            * Boolean specifying if the Panel should be draggable.  The default 
++            * value is "true" if the Drag and Drop utility is included, 
++            * otherwise it is "false." <strong>PLEASE NOTE:</strong> There is a 
++            * known issue in IE 6 (Strict Mode and Quirks Mode) and IE 7 
++            * (Quirks Mode) where Panels that either don't have a value set for 
++            * their "width" configuration property, or their "width" 
++            * configuration property is set to "auto" will only be draggable by
++            * placing the mouse on the text of the Panel's header element.
++            * To fix this bug, draggable Panels missing a value for their 
++            * "width" configuration property, or whose "width" configuration 
++            * property is set to "auto" will have it set to the value of 
++            * their root HTML element's offsetWidth before they are made 
++            * visible.  The calculated width is then removed when the Panel is   
++            * hidden. <em>This fix is only applied to draggable Panels in IE 6 
++            * (Strict Mode and Quirks Mode) and IE 7 (Quirks Mode)</em>. For 
++            * more information on this issue see:
++            * YUILibrary bugs #1726972 and #1589210.
++            * @config draggable
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.DRAGGABLE.key, {
++                handler: this.configDraggable,
++                value: (Util.DD) ? true : false,
++                validator: DEFAULT_CONFIG.DRAGGABLE.validator,
++                supercedes: DEFAULT_CONFIG.DRAGGABLE.supercedes
++            });
++
++            /**
++            * Boolean specifying if the draggable Panel should be drag only, not interacting with drop 
++            * targets on the page.
++            * <p>
++            * When set to true, draggable Panels will not check to see if they are over drop targets,
++            * or fire the DragDrop events required to support drop target interaction (onDragEnter, 
++            * onDragOver, onDragOut, onDragDrop etc.).
++            * If the Panel is not designed to be dropped on any target elements on the page, then this 
++            * flag can be set to true to improve performance.
++            * </p>
++            * <p>
++            * When set to false, all drop target related events will be fired.
++            * </p>
++            * <p>
++            * The property is set to false by default to maintain backwards compatibility but should be 
++            * set to true if drop target interaction is not required for the Panel, to improve performance.</p>
++            * 
++            * @config dragOnly
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.DRAG_ONLY.key, { 
++                value: DEFAULT_CONFIG.DRAG_ONLY.value, 
++                validator: DEFAULT_CONFIG.DRAG_ONLY.validator, 
++                supercedes: DEFAULT_CONFIG.DRAG_ONLY.supercedes 
++            });
++
++            /**
++            * Sets the type of underlay to display for the Panel. Valid values 
++            * are "shadow," "matte," and "none".  <strong>PLEASE NOTE:</strong> 
++            * The creation of the underlay element is deferred until the Panel 
++            * is initially made visible.  For Gecko-based browsers on Mac
++            * OS X the underlay elment is always created as it is used as a 
++            * shim to prevent Aqua scrollbars below a Panel instance from poking 
++            * through it (See YUILibrary bug #1723530).
++            * @config underlay
++            * @type String
++            * @default shadow
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.UNDERLAY.key, { 
++                handler: this.configUnderlay, 
++                value: DEFAULT_CONFIG.UNDERLAY.value, 
++                supercedes: DEFAULT_CONFIG.UNDERLAY.supercedes 
++            });
++        
++            /**
++            * True if the Panel should be displayed in a modal fashion, 
++            * automatically creating a transparent mask over the document that
++            * will not be removed until the Panel is dismissed.
++            * @config modal
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.MODAL.key, { 
++                handler: this.configModal, 
++                value: DEFAULT_CONFIG.MODAL.value,
++                validator: DEFAULT_CONFIG.MODAL.validator, 
++                supercedes: DEFAULT_CONFIG.MODAL.supercedes 
++            });
++
++            /**
++            * A KeyListener (or array of KeyListeners) that will be enabled 
++            * when the Panel is shown, and disabled when the Panel is hidden.
++            * @config keylisteners
++            * @type YAHOO.util.KeyListener[]
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.KEY_LISTENERS.key, { 
++                handler: this.configKeyListeners, 
++                suppressEvent: DEFAULT_CONFIG.KEY_LISTENERS.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.KEY_LISTENERS.supercedes 
++            });
++
++            /**
++            * UI Strings used by the Panel
++            * 
++            * @config strings
++            * @type Object
++            * @default An object literal with the properties shown below:
++            *     <dl>
++            *         <dt>close</dt><dd><em>String</em> : The string to use for the close icon. Defaults to "Close".</dd>
++            *     </dl>
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.STRINGS.key, { 
++                value:DEFAULT_CONFIG.STRINGS.value,
++                handler:this.configStrings,
++                validator:DEFAULT_CONFIG.STRINGS.validator,
++                supercedes:DEFAULT_CONFIG.STRINGS.supercedes
++            });
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * The default event handler fired when the "close" property is changed.
++        * The method controls the appending or hiding of the close icon at the 
++        * top right of the Panel.
++        * @method configClose
++        * @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.
++        */
++        configClose: function (type, args, obj) {
++
++            var val = args[0],
++                oClose = this.close,
++                strings = this.cfg.getProperty("strings");
++
++            if (val) {
++                if (!oClose) {
++
++                    if (!m_oCloseIconTemplate) {
++                        m_oCloseIconTemplate = document.createElement("a");
++                        m_oCloseIconTemplate.className = "container-close";
++                        m_oCloseIconTemplate.href = "#";
++                    }
++
++                    oClose = m_oCloseIconTemplate.cloneNode(true);
++                    this.innerElement.appendChild(oClose);
++
++                    oClose.innerHTML = (strings && strings.close) ? strings.close : "&#160;";
++
++                    Event.on(oClose, "click", this._doClose, this, true);
++
++                    this.close = oClose;
++
++                } else {
++                    oClose.style.display = "block";
++                }
++
++            } else {
++                if (oClose) {
++                    oClose.style.display = "none";
++                }
++            }
++
++        },
++
++        /**
++         * Event handler for the close icon
++         * 
++         * @method _doClose
++         * @protected
++         * 
++         * @param {DOMEvent} e
++         */
++        _doClose : function (e) {
++            Event.preventDefault(e);
++            this.hide();
++        },
++
++        /**
++        * The default event handler fired when the "draggable" property 
++        * is changed.
++        * @method configDraggable
++        * @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.
++        */
++        configDraggable: function (type, args, obj) {
++            var val = args[0];
++
++            if (val) {
++                if (!Util.DD) {
++                    YAHOO.log("DD dependency not met.", "error");
++                    this.cfg.setProperty("draggable", false);
++                    return;
++                }
++
++                if (this.header) {
++                    Dom.setStyle(this.header, "cursor", "move");
++                    this.registerDragDrop();
++                }
++
++                this.subscribe("beforeShow", setWidthToOffsetWidth);
++
++            } else {
++
++                if (this.dd) {
++                    this.dd.unreg();
++                }
++
++                if (this.header) {
++                    Dom.setStyle(this.header,"cursor","auto");
++                }
++
++                this.unsubscribe("beforeShow", setWidthToOffsetWidth);
++            }
++        },
++      
++        /**
++        * The default event handler fired when the "underlay" property 
++        * is changed.
++        * @method configUnderlay
++        * @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.
++        */
++        configUnderlay: function (type, args, obj) {
++
++            var bMacGecko = (this.platform == "mac" && UA.gecko),
++                sUnderlay = args[0].toLowerCase(),
++                oUnderlay = this.underlay,
++                oElement = this.element;
++
++            function createUnderlay() {
++                var bNew = false;
++                if (!oUnderlay) { // create if not already in DOM
++
++                    if (!m_oUnderlayTemplate) {
++                        m_oUnderlayTemplate = document.createElement("div");
++                        m_oUnderlayTemplate.className = "underlay";
++                    }
++
++                    oUnderlay = m_oUnderlayTemplate.cloneNode(false);
++                    this.element.appendChild(oUnderlay);
++
++                    this.underlay = oUnderlay;
++
++                    if (bIEQuirks) {
++                        this.sizeUnderlay();
++                        this.cfg.subscribeToConfigEvent("width", this.sizeUnderlay);
++                        this.cfg.subscribeToConfigEvent("height", this.sizeUnderlay);
++
++                        this.changeContentEvent.subscribe(this.sizeUnderlay);
++                        YAHOO.widget.Module.textResizeEvent.subscribe(this.sizeUnderlay, this, true);
++                    }
++
++                    if (UA.webkit && UA.webkit < 420) {
++                        this.changeContentEvent.subscribe(this.forceUnderlayRedraw);
++                    }
++
++                    bNew = true;
++                }
++            }
++
++            function onBeforeShow() {
++                var bNew = createUnderlay.call(this);
++                if (!bNew && bIEQuirks) {
++                    this.sizeUnderlay();
++                }
++                this._underlayDeferred = false;
++                this.beforeShowEvent.unsubscribe(onBeforeShow);
++            }
++
++            function destroyUnderlay() {
++                if (this._underlayDeferred) {
++                    this.beforeShowEvent.unsubscribe(onBeforeShow);
++                    this._underlayDeferred = false;
++                }
++
++                if (oUnderlay) {
++                    this.cfg.unsubscribeFromConfigEvent("width", this.sizeUnderlay);
++                    this.cfg.unsubscribeFromConfigEvent("height",this.sizeUnderlay);
++                    this.changeContentEvent.unsubscribe(this.sizeUnderlay);
++                    this.changeContentEvent.unsubscribe(this.forceUnderlayRedraw);
++                    YAHOO.widget.Module.textResizeEvent.unsubscribe(this.sizeUnderlay, this, true);
++
++                    this.element.removeChild(oUnderlay);
++
++                    this.underlay = null;
++                }
++            }
++
++            switch (sUnderlay) {
++                case "shadow":
++                    Dom.removeClass(oElement, "matte");
++                    Dom.addClass(oElement, "shadow");
++                    break;
++                case "matte":
++                    if (!bMacGecko) {
++                        destroyUnderlay.call(this);
++                    }
++                    Dom.removeClass(oElement, "shadow");
++                    Dom.addClass(oElement, "matte");
++                    break;
++                default:
++                    if (!bMacGecko) {
++                        destroyUnderlay.call(this);
++                    }
++                    Dom.removeClass(oElement, "shadow");
++                    Dom.removeClass(oElement, "matte");
++                    break;
++            }
++
++            if ((sUnderlay == "shadow") || (bMacGecko && !oUnderlay)) {
++                if (this.cfg.getProperty("visible")) {
++                    var bNew = createUnderlay.call(this);
++                    if (!bNew && bIEQuirks) {
++                        this.sizeUnderlay();
++                    }
++                } else {
++                    if (!this._underlayDeferred) {
++                        this.beforeShowEvent.subscribe(onBeforeShow);
++                        this._underlayDeferred = true;
++                    }
++                }
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "modal" property is 
++        * changed. This handler subscribes or unsubscribes to the show and hide
++        * events to handle the display or hide of the modality mask.
++        * @method configModal
++        * @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.
++        */
++        configModal: function (type, args, obj) {
++
++            var modal = args[0];
++            if (modal) {
++                if (!this._hasModalityEventListeners) {
++
++                    this.subscribe("beforeShow", this.buildMask);
++                    this.subscribe("beforeShow", this.bringToTop);
++                    this.subscribe("beforeShow", this.showMask);
++                    this.subscribe("hide", this.hideMask);
++
++                    Overlay.windowResizeEvent.subscribe(this.sizeMask, 
++                        this, true);
++
++                    this._hasModalityEventListeners = true;
++                }
++            } else {
++                if (this._hasModalityEventListeners) {
++
++                    if (this.cfg.getProperty("visible")) {
++                        this.hideMask();
++                        this.removeMask();
++                    }
++
++                    this.unsubscribe("beforeShow", this.buildMask);
++                    this.unsubscribe("beforeShow", this.bringToTop);
++                    this.unsubscribe("beforeShow", this.showMask);
++                    this.unsubscribe("hide", this.hideMask);
++
++                    Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this);
++
++                    this._hasModalityEventListeners = false;
++                }
++            }
++        },
++
++        /**
++        * Removes the modality mask.
++        * @method removeMask
++        */
++        removeMask: function () {
++
++            var oMask = this.mask,
++                oParentNode;
++
++            if (oMask) {
++                /*
++                    Hide the mask before destroying it to ensure that DOM
++                    event handlers on focusable elements get removed.
++                */
++                this.hideMask();
++
++                oParentNode = oMask.parentNode;
++                if (oParentNode) {
++                    oParentNode.removeChild(oMask);
++                }
++
++                this.mask = null;
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "keylisteners" property 
++        * is changed.
++        * @method configKeyListeners
++        * @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.
++        */
++        configKeyListeners: function (type, args, obj) {
++
++            var listeners = args[0],
++                listener,
++                nListeners,
++                i;
++        
++            if (listeners) {
++
++                if (listeners instanceof Array) {
++
++                    nListeners = listeners.length;
++
++                    for (i = 0; i < nListeners; i++) {
++
++                        listener = listeners[i];
++        
++                        if (!Config.alreadySubscribed(this.showEvent, 
++                            listener.enable, listener)) {
++
++                            this.showEvent.subscribe(listener.enable, 
++                                listener, true);
++
++                        }
++
++                        if (!Config.alreadySubscribed(this.hideEvent, 
++                            listener.disable, listener)) {
++
++                            this.hideEvent.subscribe(listener.disable, 
++                                listener, true);
++
++                            this.destroyEvent.subscribe(listener.disable, 
++                                listener, true);
++                        }
++                    }
++
++                } else {
++
++                    if (!Config.alreadySubscribed(this.showEvent, 
++                        listeners.enable, listeners)) {
++
++                        this.showEvent.subscribe(listeners.enable, 
++                            listeners, true);
++                    }
++
++                    if (!Config.alreadySubscribed(this.hideEvent, 
++                        listeners.disable, listeners)) {
++
++                        this.hideEvent.subscribe(listeners.disable, 
++                            listeners, true);
++
++                        this.destroyEvent.subscribe(listeners.disable, 
++                            listeners, true);
++
++                    }
++
++                }
++
++            }
++
++        },
++
++        /**
++        * The default handler for the "strings" property
++        * @method configStrings
++        */
++        configStrings : function(type, args, obj) {
++            var val = Lang.merge(DEFAULT_CONFIG.STRINGS.value, args[0]);
++            this.cfg.setProperty(DEFAULT_CONFIG.STRINGS.key, val, true);
++        },
++
++        /**
++        * The default event handler fired when the "height" property is changed.
++        * @method configHeight
++        * @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.
++        */
++        configHeight: function (type, args, obj) {
++            var height = args[0],
++                el = this.innerElement;
++
++            Dom.setStyle(el, "height", height);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++         * The default custom event handler executed when the Panel's height is changed, 
++         * if the autofillheight property has been set.
++         *
++         * @method _autoFillOnHeightChange
++         * @protected
++         * @param {String} type The event type
++         * @param {Array} args The array of arguments passed to event subscribers
++         * @param {HTMLElement} el The header, body or footer element which is to be resized to fill
++         * out the containers height
++         */
++        _autoFillOnHeightChange : function(type, args, el) {
++            Panel.superclass._autoFillOnHeightChange.apply(this, arguments);
++            if (bIEQuirks) {
++                var panel = this;
++                setTimeout(function() {
++                    panel.sizeUnderlay();
++                },0);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "width" property is changed.
++        * @method configWidth
++        * @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.
++        */
++        configWidth: function (type, args, obj) {
++    
++            var width = args[0],
++                el = this.innerElement;
++    
++            Dom.setStyle(el, "width", width);
++            this.cfg.refireEvent("iframe");
++    
++        },
++        
++        /**
++        * The default event handler fired when the "zIndex" property is changed.
++        * @method configzIndex
++        * @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.
++        */
++        configzIndex: function (type, args, obj) {
++            Panel.superclass.configzIndex.call(this, type, args, obj);
++
++            if (this.mask || this.cfg.getProperty("modal") === true) {
++                var panelZ = Dom.getStyle(this.element, "zIndex");
++                if (!panelZ || isNaN(panelZ)) {
++                    panelZ = 0;
++                }
++
++                if (panelZ === 0) {
++                    // Recursive call to configzindex (which should be stopped
++                    // from going further because panelZ should no longer === 0)
++                    this.cfg.setProperty("zIndex", 1);
++                } else {
++                    this.stackMask();
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * Builds the wrapping container around the Panel that is used for 
++        * positioning the shadow and matte underlays. The container element is 
++        * assigned to a  local instance variable called container, and the 
++        * element is reinserted inside of it.
++        * @method buildWrapper
++        */
++        buildWrapper: function () {
++
++            var elementParent = this.element.parentNode,
++                originalElement = this.element,
++                wrapper = document.createElement("div");
++
++            wrapper.className = Panel.CSS_PANEL_CONTAINER;
++            wrapper.id = originalElement.id + "_c";
++
++            if (elementParent) {
++                elementParent.insertBefore(wrapper, originalElement);
++            }
++
++            wrapper.appendChild(originalElement);
++
++            this.element = wrapper;
++            this.innerElement = originalElement;
++
++            Dom.setStyle(this.innerElement, "visibility", "inherit");
++        },
++
++        /**
++        * Adjusts the size of the shadow based on the size of the element.
++        * @method sizeUnderlay
++        */
++        sizeUnderlay: function () {
++            var oUnderlay = this.underlay,
++                oElement;
++
++            if (oUnderlay) {
++                oElement = this.element;
++                oUnderlay.style.width = oElement.offsetWidth + "px";
++                oUnderlay.style.height = oElement.offsetHeight + "px";
++            }
++        },
++
++        /**
++        * Registers the Panel's header for drag & drop capability.
++        * @method registerDragDrop
++        */
++        registerDragDrop: function () {
++
++            var me = this;
++
++            if (this.header) {
++
++                if (!Util.DD) {
++                    YAHOO.log("DD dependency not met.", "error");
++                    return;
++                }
++
++                var bDragOnly = (this.cfg.getProperty("dragonly") === true);
++
++                /**
++                 * The YAHOO.util.DD instance, used to implement the draggable header for the panel if draggable is enabled
++                 *
++                 * @property dd
++                 * @type YAHOO.util.DD
++                 */
++                this.dd = new Util.DD(this.element.id, this.id, {dragOnly: bDragOnly});
++
++                if (!this.header.id) {
++                    this.header.id = this.id + "_h";
++                }
++
++                this.dd.startDrag = function () {
++
++                    var offsetHeight,
++                        offsetWidth,
++                        viewPortWidth,
++                        viewPortHeight,
++                        scrollX,
++                        scrollY;
++
++                    if (YAHOO.env.ua.ie == 6) {
++                        Dom.addClass(me.element,"drag");
++                    }
++
++                    if (me.cfg.getProperty("constraintoviewport")) {
++
++                        var nViewportOffset = Overlay.VIEWPORT_OFFSET;
++
++                        offsetHeight = me.element.offsetHeight;
++                        offsetWidth = me.element.offsetWidth;
++
++                        viewPortWidth = Dom.getViewportWidth();
++                        viewPortHeight = Dom.getViewportHeight();
++
++                        scrollX = Dom.getDocumentScrollLeft();
++                        scrollY = Dom.getDocumentScrollTop();
++
++                        if (offsetHeight + nViewportOffset < viewPortHeight) {
++                            this.minY = scrollY + nViewportOffset;
++                            this.maxY = scrollY + viewPortHeight - offsetHeight - nViewportOffset;
++                        } else {
++                            this.minY = scrollY + nViewportOffset;
++                            this.maxY = scrollY + nViewportOffset;
++                        }
++
++                        if (offsetWidth + nViewportOffset < viewPortWidth) {
++                            this.minX = scrollX + nViewportOffset;
++                            this.maxX = scrollX + viewPortWidth - offsetWidth - nViewportOffset;
++                        } else {
++                            this.minX = scrollX + nViewportOffset;
++                            this.maxX = scrollX + nViewportOffset;
++                        }
++
++                        this.constrainX = true;
++                        this.constrainY = true;
++                    } else {
++                        this.constrainX = false;
++                        this.constrainY = false;
++                    }
++
++                    me.dragEvent.fire("startDrag", arguments);
++                };
++
++                this.dd.onDrag = function () {
++                    me.syncPosition();
++                    me.cfg.refireEvent("iframe");
++                    if (this.platform == "mac" && YAHOO.env.ua.gecko) {
++                        this.showMacGeckoScrollbars();
++                    }
++
++                    me.dragEvent.fire("onDrag", arguments);
++                };
++
++                this.dd.endDrag = function () {
++
++                    if (YAHOO.env.ua.ie == 6) {
++                        Dom.removeClass(me.element,"drag");
++                    }
++
++                    me.dragEvent.fire("endDrag", arguments);
++                    me.moveEvent.fire(me.cfg.getProperty("xy"));
++
++                };
++
++                this.dd.setHandleElId(this.header.id);
++                this.dd.addInvalidHandleType("INPUT");
++                this.dd.addInvalidHandleType("SELECT");
++                this.dd.addInvalidHandleType("TEXTAREA");
++            }
++        },
++        
++        /**
++        * Builds the mask that is laid over the document when the Panel is 
++        * configured to be modal.
++        * @method buildMask
++        */
++        buildMask: function () {
++            var oMask = this.mask;
++            if (!oMask) {
++                if (!m_oMaskTemplate) {
++                    m_oMaskTemplate = document.createElement("div");
++                    m_oMaskTemplate.className = "mask";
++                    m_oMaskTemplate.innerHTML = "&#160;";
++                }
++                oMask = m_oMaskTemplate.cloneNode(true);
++                oMask.id = this.id + "_mask";
++
++                document.body.insertBefore(oMask, document.body.firstChild);
++
++                this.mask = oMask;
++
++                if (YAHOO.env.ua.gecko && this.platform == "mac") {
++                    Dom.addClass(this.mask, "block-scrollbars");
++                }
++
++                // Stack mask based on the element zindex
++                this.stackMask();
++            }
++        },
++
++        /**
++        * Hides the modality mask.
++        * @method hideMask
++        */
++        hideMask: function () {
++            if (this.cfg.getProperty("modal") && this.mask) {
++                this.mask.style.display = "none";
++                Dom.removeClass(document.body, "masked");
++                this.hideMaskEvent.fire();
++            }
++        },
++
++        /**
++        * Shows the modality mask.
++        * @method showMask
++        */
++        showMask: function () {
++            if (this.cfg.getProperty("modal") && this.mask) {
++                Dom.addClass(document.body, "masked");
++                this.sizeMask();
++                this.mask.style.display = "block";
++                this.showMaskEvent.fire();
++            }
++        },
++
++        /**
++        * Sets the size of the modality mask to cover the entire scrollable 
++        * area of the document
++        * @method sizeMask
++        */
++        sizeMask: function () {
++            if (this.mask) {
++
++                // Shrink mask first, so it doesn't affect the document size.
++                var mask = this.mask,
++                    viewWidth = Dom.getViewportWidth(),
++                    viewHeight = Dom.getViewportHeight();
++
++                if (mask.offsetHeight > viewHeight) {
++                    mask.style.height = viewHeight + "px";
++                }
++
++                if (mask.offsetWidth > viewWidth) {
++                    mask.style.width = viewWidth + "px";
++                }
++
++                // Then size it to the document
++                mask.style.height = Dom.getDocumentHeight() + "px";
++                mask.style.width = Dom.getDocumentWidth() + "px";
++            }
++        },
++
++        /**
++         * Sets the zindex of the mask, if it exists, based on the zindex of 
++         * the Panel element. The zindex of the mask is set to be one less 
++         * than the Panel element's zindex.
++         * 
++         * <p>NOTE: This method will not bump up the zindex of the Panel
++         * to ensure that the mask has a non-negative zindex. If you require the
++         * mask zindex to be 0 or higher, the zindex of the Panel 
++         * should be set to a value higher than 0, before this method is called.
++         * </p>
++         * @method stackMask
++         */
++        stackMask: function() {
++            if (this.mask) {
++                var panelZ = Dom.getStyle(this.element, "zIndex");
++                if (!YAHOO.lang.isUndefined(panelZ) && !isNaN(panelZ)) {
++                    Dom.setStyle(this.mask, "zIndex", panelZ - 1);
++                }
++            }
++        },
++
++        /**
++        * Renders the Panel by inserting the elements that are not already in 
++        * the main Panel into their correct places. Optionally appends the 
++        * Panel to the specified node prior to the render's execution. NOTE: 
++        * For Panels without existing markup, the appendToNode argument is 
++        * REQUIRED. If this argument is ommitted and the current element is 
++        * not present in the document, the function will return false, 
++        * indicating that the render was a failure.
++        * @method render
++        * @param {String} appendToNode The element id to which the Module 
++        * should be appended to prior to rendering <em>OR</em>
++        * @param {HTMLElement} appendToNode The element to which the Module 
++        * should be appended to prior to rendering
++        * @return {boolean} Success or failure of the render
++        */
++        render: function (appendToNode) {
++            return Panel.superclass.render.call(this, appendToNode, this.innerElement);
++        },
++
++        /**
++         * Renders the currently set header into it's proper position under the 
++         * module element. If the module element is not provided, "this.innerElement" 
++         * is used.
++         *
++         * @method _renderHeader
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderHeader: function(moduleElement){
++            moduleElement = moduleElement || this.innerElement;
++			Panel.superclass._renderHeader.call(this, moduleElement);
++        },
++
++        /**
++         * Renders the currently set body into it's proper position under the 
++         * module element. If the module element is not provided, "this.innerElement" 
++         * is used.
++         * 
++         * @method _renderBody
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element.
++         */
++        _renderBody: function(moduleElement){
++            moduleElement = moduleElement || this.innerElement;
++            Panel.superclass._renderBody.call(this, moduleElement);
++        },
++
++        /**
++         * Renders the currently set footer into it's proper position under the 
++         * module element. If the module element is not provided, "this.innerElement" 
++         * is used.
++         *
++         * @method _renderFooter
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderFooter: function(moduleElement){
++            moduleElement = moduleElement || this.innerElement;
++            Panel.superclass._renderFooter.call(this, moduleElement);
++        },
++        
++        /**
++        * Removes the Panel element from the DOM and sets all child elements
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++            Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this);
++            this.removeMask();
++            if (this.close) {
++                Event.purgeElement(this.close);
++            }
++            Panel.superclass.destroy.call(this);  
++        },
++
++        /**
++         * Forces the underlay element to be repainted through the application/removal 
++         * of a yui-force-redraw class to the underlay element.
++         *
++         * @method forceUnderlayRedraw
++         */
++        forceUnderlayRedraw : function () {
++            var u = this.underlay;
++            Dom.addClass(u, "yui-force-redraw");
++            setTimeout(function(){Dom.removeClass(u, "yui-force-redraw");}, 0);
++        },
++
++        /**
++        * Returns a String representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Panel.
++        */
++        toString: function () {
++            return "Panel " + this.id;
++        }
++    
++    });
++
++}());
++(function () {
++
++    /**
++    * <p>
++    * Dialog is an implementation of Panel that can be used to submit form 
++    * data.
++    * </p>
++    * <p>
++    * Built-in functionality for buttons with event handlers is included. 
++    * If the optional YUI Button dependancy is included on the page, the buttons
++    * created will be instances of YAHOO.widget.Button, otherwise regular HTML buttons
++    * will be created.
++    * </p>
++    * <p>
++    * Forms can be processed in 3 ways -- via an asynchronous Connection utility call, 
++    * a simple form POST or GET, or manually. The YUI Connection utility should be
++    * included if you're using the default "async" postmethod, but is not required if
++    * you're using any of the other postmethod values.
++    * </p>
++    * @namespace YAHOO.widget
++    * @class Dialog
++    * @extends YAHOO.widget.Panel
++    * @constructor
++    * @param {String} el The element ID representing the Dialog <em>OR</em>
++    * @param {HTMLElement} el The element representing the Dialog
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Dialog. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Dialog = function (el, userConfig) {
++        YAHOO.widget.Dialog.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Dom = YAHOO.util.Dom,
++        Dialog = YAHOO.widget.Dialog,
++        Lang = YAHOO.lang,
++
++        /**
++         * Constant representing the name of the Dialog's events
++         * @property EVENT_TYPES
++         * @private
++         * @final
++         * @type Object
++         */
++        EVENT_TYPES = {
++            "BEFORE_SUBMIT": "beforeSubmit",
++            "SUBMIT": "submit",
++            "MANUAL_SUBMIT": "manualSubmit",
++            "ASYNC_SUBMIT": "asyncSubmit",
++            "FORM_SUBMIT": "formSubmit",
++            "CANCEL": "cancel"
++        },
++
++        /**
++        * Constant representing the Dialog's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "POST_METHOD": { 
++                key: "postmethod", 
++                value: "async"
++            },
++
++            "POST_DATA" : {
++                key: "postdata",
++                value: null
++            },
++
++            "BUTTONS": {
++                key: "buttons",
++                value: "none",
++                supercedes: ["visible"]
++            },
++
++            "HIDEAFTERSUBMIT" : {
++                key: "hideaftersubmit",
++                value: true
++            }
++
++        };
++
++    /**
++    * Constant representing the default CSS class used for a Dialog
++    * @property YAHOO.widget.Dialog.CSS_DIALOG
++    * @static
++    * @final
++    * @type String
++    */
++    Dialog.CSS_DIALOG = "yui-dialog";
++
++    function removeButtonEventHandlers() {
++
++        var aButtons = this._aButtons,
++            nButtons,
++            oButton,
++            i;
++
++        if (Lang.isArray(aButtons)) {
++            nButtons = aButtons.length;
++
++            if (nButtons > 0) {
++                i = nButtons - 1;
++                do {
++                    oButton = aButtons[i];
++
++                    if (YAHOO.widget.Button && oButton instanceof YAHOO.widget.Button) {
++                        oButton.destroy();
++                    }
++                    else if (oButton.tagName.toUpperCase() == "BUTTON") {
++                        Event.purgeElement(oButton);
++                        Event.purgeElement(oButton, false);
++                    }
++                }
++                while (i--);
++            }
++        }
++    }
++
++    YAHOO.extend(Dialog, YAHOO.widget.Panel, { 
++
++        /**
++        * @property form
++        * @description Object reference to the Dialog's 
++        * <code>&#60;form&#62;</code> element.
++        * @default null 
++        * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-40002357">HTMLFormElement</a>
++        */
++        form: null,
++    
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the Dialog's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++            Dialog.superclass.initDefaultConfig.call(this);
++
++            /**
++            * The internally maintained callback object for use with the 
++            * Connection utility. The format of the callback object is 
++            * similar to Connection Manager's callback object and is 
++            * simply passed through to Connection Manager when the async 
++            * request is made.
++            * @property callback
++            * @type Object
++            */
++            this.callback = {
++
++                /**
++                * The function to execute upon success of the 
++                * Connection submission (when the form does not
++                * contain a file input element).
++                * 
++                * @property callback.success
++                * @type Function
++                */
++                success: null,
++
++                /**
++                * The function to execute upon failure of the 
++                * Connection submission
++                * @property callback.failure
++                * @type Function
++                */
++                failure: null,
++
++                /**
++                *<p>
++                * The function to execute upon success of the 
++                * Connection submission, when the form contains
++                * a file input element.
++                * </p>
++                * <p>
++                * <em>NOTE:</em> Connection manager will not
++                * invoke the success or failure handlers for the file
++                * upload use case. This will be the only callback
++                * handler invoked.
++                * </p>
++                * <p>
++                * For more information, see the <a href="http://developer.yahoo.com/yui/connection/#file">
++                * Connection Manager documenation on file uploads</a>.
++                * </p>
++                * @property callback.upload
++                * @type Function
++                */
++
++                /**
++                * The arbitraty argument or arguments to pass to the Connection 
++                * callback functions
++                * @property callback.argument
++                * @type Object
++                */
++                argument: null
++
++            };
++
++            // Add form dialog config properties //
++            /**
++            * The method to use for posting the Dialog's form. Possible values 
++            * are "async", "form", and "manual".
++            * @config postmethod
++            * @type String
++            * @default async
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.POST_METHOD.key, {
++                handler: this.configPostMethod, 
++                value: DEFAULT_CONFIG.POST_METHOD.value, 
++                validator: function (val) {
++                    if (val != "form" && val != "async" && val != "none" && 
++                        val != "manual") {
++                        return false;
++                    } else {
++                        return true;
++                    }
++                }
++            });
++
++            /**
++            * Any additional post data which needs to be sent when using the 
++            * <a href="#config_postmethod">async</a> postmethod for dialog POST submissions.
++            * The format for the post data string is defined by Connection Manager's 
++            * <a href="YAHOO.util.Connect.html#method_asyncRequest">asyncRequest</a> 
++            * method.
++            * @config postdata
++            * @type String
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.POST_DATA.key, {
++                value: DEFAULT_CONFIG.POST_DATA.value
++            });
++
++            /**
++            * This property is used to configure whether or not the 
++            * dialog should be automatically hidden after submit.
++            * 
++            * @config hideaftersubmit
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.HIDEAFTERSUBMIT.key, {
++                value: DEFAULT_CONFIG.HIDEAFTERSUBMIT.value
++            });
++
++            /**
++            * Array of object literals, each containing a set of properties 
++            * defining a button to be appended into the Dialog's footer.
++            *
++            * <p>Each button object in the buttons array can have three properties:</p>
++            * <dl>
++            *    <dt>text:</dt>
++            *    <dd>
++            *       The text that will display on the face of the button. The text can 
++            *       include HTML, as long as it is compliant with HTML Button specifications.
++            *    </dd>
++            *    <dt>handler:</dt>
++            *    <dd>Can be either:
++            *    <ol>
++            *       <li>A reference to a function that should fire when the 
++            *       button is clicked.  (In this case scope of this function is 
++            *       always its Dialog instance.)</li>
++            *
++            *       <li>An object literal representing the code to be 
++            *       executed when the button is clicked.
++            *       
++            *       <p>Format:</p>
++            *
++            *       <p>
++            *       <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>
++            *       </p>
++            *       </li>
++            *     </ol>
++            *     </dd>
++            *     <dt>isDefault:</dt>
++            *     <dd>
++            *        An optional boolean value that specifies that a button 
++            *        should be highlighted and focused by default.
++            *     </dd>
++            * </dl>
++            *
++            * <em>NOTE:</em>If the YUI Button Widget is included on the page, 
++            * the buttons created will be instances of YAHOO.widget.Button. 
++            * Otherwise, HTML Buttons (<code>&#60;BUTTON&#62;</code>) will be 
++            * created.
++            *
++            * @config buttons
++            * @type {Array|String}
++            * @default "none"
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.BUTTONS.key, {
++                handler: this.configButtons,
++                value: DEFAULT_CONFIG.BUTTONS.value,
++                supercedes : DEFAULT_CONFIG.BUTTONS.supercedes
++            }); 
++
++        },
++
++        /**
++        * Initializes the custom events for Dialog which are fired 
++        * automatically at appropriate times by the Dialog class.
++        * @method initEvents
++        */
++        initEvents: function () {
++            Dialog.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired prior to submission
++            * @event beforeSubmitEvent
++            */ 
++            this.beforeSubmitEvent = 
++                this.createEvent(EVENT_TYPES.BEFORE_SUBMIT);
++            this.beforeSubmitEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired after submission
++            * @event submitEvent
++            */
++            this.submitEvent = this.createEvent(EVENT_TYPES.SUBMIT);
++            this.submitEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired for manual submission, before the generic submit event is fired
++            * @event manualSubmitEvent
++            */
++            this.manualSubmitEvent = 
++                this.createEvent(EVENT_TYPES.MANUAL_SUBMIT);
++            this.manualSubmitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after asynchronous submission, before the generic submit event is fired
++            *
++            * @event asyncSubmitEvent
++            * @param {Object} conn The connection object, returned by YAHOO.util.Connect.asyncRequest
++            */
++            this.asyncSubmitEvent = this.createEvent(EVENT_TYPES.ASYNC_SUBMIT);
++            this.asyncSubmitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after form-based submission, before the generic submit event is fired
++            * @event formSubmitEvent
++            */
++            this.formSubmitEvent = this.createEvent(EVENT_TYPES.FORM_SUBMIT);
++            this.formSubmitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after cancel
++            * @event cancelEvent
++            */
++            this.cancelEvent = this.createEvent(EVENT_TYPES.CANCEL);
++            this.cancelEvent.signature = SIGNATURE;
++        
++        },
++        
++        /**
++        * The Dialog initialization method, which is executed for Dialog and 
++        * all of its subclasses. 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.
++        * 
++        * @method init
++        * @param {String} el The element ID representing the Dialog <em>OR</em>
++        * @param {HTMLElement} el The element representing the Dialog
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Dialog. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                 Note that we don't pass the user config in here yet because 
++                 we only want it executed once, at the lowest subclass level
++            */
++
++            Dialog.superclass.init.call(this, el/*, userConfig*/); 
++
++            this.beforeInitEvent.fire(Dialog);
++
++            Dom.addClass(this.element, Dialog.CSS_DIALOG);
++
++            this.cfg.setProperty("visible", false);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            this.showEvent.subscribe(this.focusFirst, this, true);
++            this.beforeHideEvent.subscribe(this.blurButtons, this, true);
++
++            this.subscribe("changeBody", this.registerForm);
++
++            this.initEvent.fire(Dialog);
++        },
++
++        /**
++        * Submits the Dialog's form depending on the value of the 
++        * "postmethod" configuration property.  <strong>Please note:
++        * </strong> As of version 2.3 this method will automatically handle 
++        * asyncronous file uploads should the Dialog instance's form contain 
++        * <code>&#60;input type="file"&#62;</code> elements.  If a Dialog 
++        * instance will be handling asyncronous file uploads, its 
++        * <code>callback</code> property will need to be setup with a 
++        * <code>upload</code> handler rather than the standard 
++        * <code>success</code> and, or <code>failure</code> handlers.  For more 
++        * information, see the <a href="http://developer.yahoo.com/yui/
++        * connection/#file">Connection Manager documenation on file uploads</a>.
++        * @method doSubmit
++        */
++        doSubmit: function () {
++
++            var Connect = YAHOO.util.Connect,
++                oForm = this.form,
++                bUseFileUpload = false,
++                bUseSecureFileUpload = false,
++                aElements,
++                nElements,
++                i,
++                formAttrs;
++
++            switch (this.cfg.getProperty("postmethod")) {
++
++                case "async":
++                    aElements = oForm.elements;
++                    nElements = aElements.length;
++
++                    if (nElements > 0) {
++                        i = nElements - 1;
++                        do {
++                            if (aElements[i].type == "file") {
++                                bUseFileUpload = true;
++                                break;
++                            }
++                        }
++                        while(i--);
++                    }
++
++                    if (bUseFileUpload && YAHOO.env.ua.ie && this.isSecure) {
++                        bUseSecureFileUpload = true;
++                    }
++
++                    formAttrs = this._getFormAttributes(oForm);
++
++                    Connect.setForm(oForm, bUseFileUpload, bUseSecureFileUpload);
++
++                    var postData = this.cfg.getProperty("postdata");
++                    var c = Connect.asyncRequest(formAttrs.method, formAttrs.action, this.callback, postData);
++
++                    this.asyncSubmitEvent.fire(c);
++
++                    break;
++
++                case "form":
++                    oForm.submit();
++                    this.formSubmitEvent.fire();
++                    break;
++
++                case "none":
++                case "manual":
++                    this.manualSubmitEvent.fire();
++                    break;
++            }
++        },
++
++        /**
++         * Retrieves important attributes (currently method and action) from
++         * the form element, accounting for any elements which may have the same name 
++         * as the attributes. Defaults to "POST" and "" for method and action respectively
++         * if the attribute cannot be retrieved.
++         *
++         * @method _getFormAttributes
++         * @protected
++         * @param {HTMLFormElement} oForm The HTML Form element from which to retrieve the attributes
++         * @return {Object} Object literal, with method and action String properties.
++         */
++        _getFormAttributes : function(oForm){
++            var attrs = {
++                method : null,
++                action : null
++            };
++
++            if (oForm) {
++                if (oForm.getAttributeNode) {
++                    var action = oForm.getAttributeNode("action");
++                    var method = oForm.getAttributeNode("method");
++
++                    if (action) {
++                        attrs.action = action.value;
++                    }
++
++                    if (method) {
++                        attrs.method = method.value;
++                    }
++
++                } else {
++                    attrs.action = oForm.getAttribute("action");
++                    attrs.method = oForm.getAttribute("method");
++                }
++            }
++
++            attrs.method = (Lang.isString(attrs.method) ? attrs.method : "POST").toUpperCase();
++            attrs.action = Lang.isString(attrs.action) ? attrs.action : "";
++
++            return attrs;
++        },
++
++        /**
++        * Prepares the Dialog's internal FORM object, creating one if one is
++        * not currently present.
++        * @method registerForm
++        */
++        registerForm: function() {
++
++            var form = this.element.getElementsByTagName("form")[0];
++
++            if (this.form) {
++                if (this.form == form && Dom.isAncestor(this.element, this.form)) {
++                    return;
++                } else {
++                    Event.purgeElement(this.form);
++                    this.form = null;
++                }
++            }
++
++            if (!form) {
++                form = document.createElement("form");
++                form.name = "frm_" + this.id;
++                this.body.appendChild(form);
++            }
++
++            if (form) {
++                this.form = form;
++                Event.on(form, "submit", this._submitHandler, this, true);
++            }
++        },
++
++        /**
++         * Internal handler for the form submit event
++         *
++         * @method _submitHandler
++         * @protected
++         * @param {DOMEvent} e The DOM Event object
++         */
++        _submitHandler : function(e) {
++            Event.stopEvent(e);
++            this.submit();
++            this.form.blur();
++        },
++
++        /**
++         * Sets up a tab, shift-tab loop between the first and last elements
++         * provided. NOTE: Sets up the preventBackTab and preventTabOut KeyListener
++         * instance properties, which are reset everytime this method is invoked.
++         *
++         * @method setTabLoop
++         * @param {HTMLElement} firstElement
++         * @param {HTMLElement} lastElement
++         *
++         */
++        setTabLoop : function(firstElement, lastElement) {
++
++            firstElement = firstElement || this.firstButton;
++            lastElement = this.lastButton || lastElement;
++
++            Dialog.superclass.setTabLoop.call(this, firstElement, lastElement);
++        },
++
++        /**
++         * Configures instance properties, pointing to the 
++         * first and last focusable elements in the Dialog's form.
++         *
++         * @method setFirstLastFocusable
++         */
++        setFirstLastFocusable : function() {
++
++            Dialog.superclass.setFirstLastFocusable.call(this);
++
++            var i, l, el, elements = this.focusableElements;
++
++            this.firstFormElement = null;
++            this.lastFormElement = null;
++
++            if (this.form && elements && elements.length > 0) {
++                l = elements.length;
++
++                for (i = 0; i < l; ++i) {
++                    el = elements[i];
++                    if (this.form === el.form) {
++                        this.firstFormElement = el;
++                        break;
++                    }
++                }
++
++                for (i = l-1; i >= 0; --i) {
++                    el = elements[i];
++                    if (this.form === el.form) {
++                        this.lastFormElement = el;
++                        break;
++                    }
++                }
++            }
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * The default event handler fired when the "close" property is 
++        * changed. The method controls the appending or hiding of the close
++        * icon at the top right of the Dialog.
++        * @method configClose
++        * @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.
++        */
++        configClose: function (type, args, obj) {
++            Dialog.superclass.configClose.apply(this, arguments);
++        },
++
++        /**
++         * Event handler for the close icon
++         * 
++         * @method _doClose
++         * @protected
++         * 
++         * @param {DOMEvent} e
++         */
++         _doClose : function(e) {
++            Event.preventDefault(e);
++            this.cancel();
++        },
++
++        /**
++        * The default event handler for the "buttons" configuration property
++        * @method configButtons
++        * @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.
++        */
++        configButtons: function (type, args, obj) {
++
++            var Button = YAHOO.widget.Button,
++                aButtons = args[0],
++                oInnerElement = this.innerElement,
++                oButton,
++                oButtonEl,
++                oYUIButton,
++                nButtons,
++                oSpan,
++                oFooter,
++                i;
++
++            removeButtonEventHandlers.call(this);
++
++            this._aButtons = null;
++
++            if (Lang.isArray(aButtons)) {
++
++                oSpan = document.createElement("span");
++                oSpan.className = "button-group";
++                nButtons = aButtons.length;
++
++                this._aButtons = [];
++                this.defaultHtmlButton = null;
++
++                for (i = 0; i < nButtons; i++) {
++                    oButton = aButtons[i];
++
++                    if (Button) {
++                        oYUIButton = new Button({ label: oButton.text});
++                        oYUIButton.appendTo(oSpan);
++
++                        oButtonEl = oYUIButton.get("element");
++
++                        if (oButton.isDefault) {
++                            oYUIButton.addClass("default");
++                            this.defaultHtmlButton = oButtonEl;
++                        }
++
++                        if (Lang.isFunction(oButton.handler)) {
++
++                            oYUIButton.set("onclick", { 
++                                fn: oButton.handler, 
++                                obj: this, 
++                                scope: this 
++                            });
++
++                        } else if (Lang.isObject(oButton.handler) && Lang.isFunction(oButton.handler.fn)) {
++
++                            oYUIButton.set("onclick", { 
++                                fn: oButton.handler.fn, 
++                                obj: ((!Lang.isUndefined(oButton.handler.obj)) ? oButton.handler.obj : this), 
++                                scope: (oButton.handler.scope || this) 
++                            });
++
++                        }
++
++                        this._aButtons[this._aButtons.length] = oYUIButton;
++
++                    } else {
++
++                        oButtonEl = document.createElement("button");
++                        oButtonEl.setAttribute("type", "button");
++
++                        if (oButton.isDefault) {
++                            oButtonEl.className = "default";
++                            this.defaultHtmlButton = oButtonEl;
++                        }
++
++                        oButtonEl.innerHTML = oButton.text;
++
++                        if (Lang.isFunction(oButton.handler)) {
++                            Event.on(oButtonEl, "click", oButton.handler, this, true);
++                        } else if (Lang.isObject(oButton.handler) && 
++                            Lang.isFunction(oButton.handler.fn)) {
++    
++                            Event.on(oButtonEl, "click", 
++                                oButton.handler.fn, 
++                                ((!Lang.isUndefined(oButton.handler.obj)) ? oButton.handler.obj : this), 
++                                (oButton.handler.scope || this));
++                        }
++
++                        oSpan.appendChild(oButtonEl);
++                        this._aButtons[this._aButtons.length] = oButtonEl;
++                    }
++
++                    oButton.htmlButton = oButtonEl;
++
++                    if (i === 0) {
++                        this.firstButton = oButtonEl;
++                    }
++
++                    if (i == (nButtons - 1)) {
++                        this.lastButton = oButtonEl;
++                    }
++                }
++
++                this.setFooter(oSpan);
++
++                oFooter = this.footer;
++
++                if (Dom.inDocument(this.element) && !Dom.isAncestor(oInnerElement, oFooter)) {
++                    oInnerElement.appendChild(oFooter);
++                }
++
++                this.buttonSpan = oSpan;
++
++            } else { // Do cleanup
++                oSpan = this.buttonSpan;
++                oFooter = this.footer;
++                if (oSpan && oFooter) {
++                    oFooter.removeChild(oSpan);
++                    this.buttonSpan = null;
++                    this.firstButton = null;
++                    this.lastButton = null;
++                    this.defaultHtmlButton = null;
++                }
++            }
++
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * @method getButtons
++        * @description Returns an array containing each of the Dialog's 
++        * buttons, by default an array of HTML <code>&#60;BUTTON&#62;</code> 
++        * elements.  If the Dialog's buttons were created using the 
++        * YAHOO.widget.Button class (via the inclusion of the optional Button 
++        * dependancy on the page), an array of YAHOO.widget.Button instances 
++        * is returned.
++        * @return {Array}
++        */
++        getButtons: function () {
++            return this._aButtons || null;
++        },
++
++        /**
++         * <p>
++         * Sets focus to the first focusable element in the Dialog's form if found, 
++         * else, the default button if found, else the first button defined via the 
++         * "buttons" configuration property.
++         * </p>
++         * <p>
++         * This method is invoked when the Dialog is made visible.
++         * </p>
++         * @method focusFirst
++         */
++        focusFirst: function (type, args, obj) {
++
++            var el = this.firstFormElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (el) {
++                try {
++                    el.focus();
++                } catch(oException) {
++                    // Ignore
++                }
++            } else {
++                if (this.defaultHtmlButton) {
++                    this.focusDefaultButton();
++                } else {
++                    this.focusFirstButton();
++                }
++            }
++        },
++
++        /**
++        * Sets focus to the last element in the Dialog's form or the last 
++        * button defined via the "buttons" configuration property.
++        * @method focusLast
++        */
++        focusLast: function (type, args, obj) {
++
++            var aButtons = this.cfg.getProperty("buttons"),
++                el = this.lastFormElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                this.focusLastButton();
++            } else {
++                if (el) {
++                    try {
++                        el.focus();
++                    } catch(oException) {
++                        // Ignore
++                    }
++                }
++            }
++        },
++
++        /**
++         * Helper method to normalize button references. It either returns the 
++         * YUI Button instance for the given element if found,
++         * or the passes back the HTMLElement reference if a corresponding YUI Button
++         * reference is not found or YAHOO.widget.Button does not exist on the page.
++         *
++         * @method _getButton
++         * @private
++         * @param {HTMLElement} button
++         * @return {YAHOO.widget.Button|HTMLElement}
++         */
++        _getButton : function(button) {
++            var Button = YAHOO.widget.Button;
++
++            // If we have an HTML button and YUI Button is on the page, 
++            // get the YUI Button reference if available.
++            if (Button && button && button.nodeName && button.id) {
++                button = Button.getButton(button.id) || button;
++            }
++
++            return button;
++        },
++
++        /**
++        * Sets the focus to the button that is designated as the default via 
++        * the "buttons" configuration property. By default, this method is 
++        * called when the Dialog is made visible.
++        * @method focusDefaultButton
++        */
++        focusDefaultButton: function () {
++            var button = this._getButton(this.defaultHtmlButton);
++            if (button) {
++                /*
++                    Place the call to the "focus" method inside a try/catch
++                    block to prevent IE from throwing JavaScript errors if
++                    the element is disabled or hidden.
++                */
++                try {
++                    button.focus();
++                } catch(oException) {
++                }
++            }
++        },
++
++        /**
++        * Blurs all the buttons defined via the "buttons" 
++        * configuration property.
++        * @method blurButtons
++        */
++        blurButtons: function () {
++            
++            var aButtons = this.cfg.getProperty("buttons"),
++                nButtons,
++                oButton,
++                oElement,
++                i;
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                nButtons = aButtons.length;
++                if (nButtons > 0) {
++                    i = (nButtons - 1);
++                    do {
++                        oButton = aButtons[i];
++                        if (oButton) {
++                            oElement = this._getButton(oButton.htmlButton);
++                            if (oElement) {
++                                /*
++                                    Place the call to the "blur" method inside  
++                                    a try/catch block to prevent IE from  
++                                    throwing JavaScript errors if the element 
++                                    is disabled or hidden.
++                                */
++                                try {
++                                    oElement.blur();
++                                } catch(oException) {
++                                    // ignore
++                                }
++                            }
++                        }
++                    } while(i--);
++                }
++            }
++        },
++
++        /**
++        * Sets the focus to the first button created via the "buttons"
++        * configuration property.
++        * @method focusFirstButton
++        */
++        focusFirstButton: function () {
++
++            var aButtons = this.cfg.getProperty("buttons"),
++                oButton,
++                oElement;
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                oButton = aButtons[0];
++                if (oButton) {
++                    oElement = this._getButton(oButton.htmlButton);
++                    if (oElement) {
++                        /*
++                            Place the call to the "focus" method inside a 
++                            try/catch block to prevent IE from throwing 
++                            JavaScript errors if the element is disabled 
++                            or hidden.
++                        */
++                        try {
++                            oElement.focus();
++                        } catch(oException) {
++                            // ignore
++                        }
++                    }
++                }
++            }
++        },
++
++        /**
++        * Sets the focus to the last button created via the "buttons" 
++        * configuration property.
++        * @method focusLastButton
++        */
++        focusLastButton: function () {
++
++            var aButtons = this.cfg.getProperty("buttons"),
++                nButtons,
++                oButton,
++                oElement;
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                nButtons = aButtons.length;
++                if (nButtons > 0) {
++                    oButton = aButtons[(nButtons - 1)];
++
++                    if (oButton) {
++                        oElement = this._getButton(oButton.htmlButton);
++                        if (oElement) {
++                            /*
++                                Place the call to the "focus" method inside a 
++                                try/catch block to prevent IE from throwing 
++                                JavaScript errors if the element is disabled
++                                or hidden.
++                            */
++        
++                            try {
++                                oElement.focus();
++                            } catch(oException) {
++                                // Ignore
++                            }
++                        }
++                    }
++                }
++            }
++        },
++
++        /**
++        * The default event handler for the "postmethod" configuration property
++        * @method configPostMethod
++        * @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.
++        */
++        configPostMethod: function (type, args, obj) {
++            this.registerForm();
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * Built-in function hook for writing a validation function that will 
++        * be checked for a "true" value prior to a submit. This function, as 
++        * implemented by default, always returns true, so it should be 
++        * overridden if validation is necessary.
++        * @method validate
++        */
++        validate: function () {
++            return true;
++        },
++
++        /**
++        * Executes a submit of the Dialog if validation 
++        * is successful. By default the Dialog is hidden
++        * after submission, but you can set the "hideaftersubmit"
++        * configuration property to false, to prevent the Dialog
++        * from being hidden.
++        * 
++        * @method submit
++        */
++        submit: function () {
++            if (this.validate()) {
++                if (this.beforeSubmitEvent.fire()) {
++                    this.doSubmit();
++                    this.submitEvent.fire();
++    
++                    if (this.cfg.getProperty("hideaftersubmit")) {
++                        this.hide();
++                    }
++    
++                    return true;
++                } else {
++                    return false;
++                }
++            } else {
++                return false;
++            }
++        },
++
++        /**
++        * Executes the cancel of the Dialog followed by a hide.
++        * @method cancel
++        */
++        cancel: function () {
++            this.cancelEvent.fire();
++            this.hide();
++        },
++        
++        /**
++        * Returns a JSON-compatible data structure representing the data 
++        * currently contained in the form.
++        * @method getData
++        * @return {Object} A JSON object reprsenting the data of the 
++        * current form.
++        */
++        getData: function () {
++
++            var oForm = this.form,
++                aElements,
++                nTotalElements,
++                oData,
++                sName,
++                oElement,
++                nElements,
++                sType,
++                sTagName,
++                aOptions,
++                nOptions,
++                aValues,
++                oOption,
++                oRadio,
++                oCheckbox,
++                valueAttr,
++                i,
++                n;    
++    
++            function isFormElement(p_oElement) {
++                var sTag = p_oElement.tagName.toUpperCase();
++                return ((sTag == "INPUT" || sTag == "TEXTAREA" || 
++                        sTag == "SELECT") && p_oElement.name == sName);
++            }
++
++            if (oForm) {
++
++                aElements = oForm.elements;
++                nTotalElements = aElements.length;
++                oData = {};
++
++                for (i = 0; i < nTotalElements; i++) {
++                    sName = aElements[i].name;
++
++                    /*
++                        Using "Dom.getElementsBy" to safeguard user from JS 
++                        errors that result from giving a form field (or set of 
++                        fields) the same name as a native method of a form 
++                        (like "submit") or a DOM collection (such as the "item"
++                        method). Originally tried accessing fields via the 
++                        "namedItem" method of the "element" collection, but 
++                        discovered that it won't return a collection of fields 
++                        in Gecko.
++                    */
++
++                    oElement = Dom.getElementsBy(isFormElement, "*", oForm);
++                    nElements = oElement.length;
++
++                    if (nElements > 0) {
++                        if (nElements == 1) {
++                            oElement = oElement[0];
++
++                            sType = oElement.type;
++                            sTagName = oElement.tagName.toUpperCase();
++
++                            switch (sTagName) {
++                                case "INPUT":
++                                    if (sType == "checkbox") {
++                                        oData[sName] = oElement.checked;
++                                    } else if (sType != "radio") {
++                                        oData[sName] = oElement.value;
++                                    }
++                                    break;
++
++                                case "TEXTAREA":
++                                    oData[sName] = oElement.value;
++                                    break;
++    
++                                case "SELECT":
++                                    aOptions = oElement.options;
++                                    nOptions = aOptions.length;
++                                    aValues = [];
++    
++                                    for (n = 0; n < nOptions; n++) {
++                                        oOption = aOptions[n];
++                                        if (oOption.selected) {
++                                            valueAttr = oOption.attributes.value;
++                                            aValues[aValues.length] = (valueAttr && valueAttr.specified) ? oOption.value : oOption.text;
++                                        }
++                                    }
++                                    oData[sName] = aValues;
++                                    break;
++                            }
++        
++                        } else {
++                            sType = oElement[0].type;
++                            switch (sType) {
++                                case "radio":
++                                    for (n = 0; n < nElements; n++) {
++                                        oRadio = oElement[n];
++                                        if (oRadio.checked) {
++                                            oData[sName] = oRadio.value;
++                                            break;
++                                        }
++                                    }
++                                    break;
++        
++                                case "checkbox":
++                                    aValues = [];
++                                    for (n = 0; n < nElements; n++) {
++                                        oCheckbox = oElement[n];
++                                        if (oCheckbox.checked) {
++                                            aValues[aValues.length] =  oCheckbox.value;
++                                        }
++                                    }
++                                    oData[sName] = aValues;
++                                    break;
++                            }
++                        }
++                    }
++                }
++            }
++
++            return oData;
++        },
++
++        /**
++        * Removes the Panel element from the DOM and sets all child elements 
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++            removeButtonEventHandlers.call(this);
++
++            this._aButtons = null;
++
++            var aForms = this.element.getElementsByTagName("form"),
++                oForm;
++
++            if (aForms.length > 0) {
++                oForm = aForms[0];
++
++                if (oForm) {
++                    Event.purgeElement(oForm);
++                    if (oForm.parentNode) {
++                        oForm.parentNode.removeChild(oForm);
++                    }
++                    this.form = null;
++                }
++            }
++            Dialog.superclass.destroy.call(this);
++        },
++
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Dialog
++        */
++        toString: function () {
++            return "Dialog " + this.id;
++        }
++    
++    });
++
++}());
++(function () {
++
++    /**
++    * SimpleDialog is a simple implementation of Dialog that can be used to 
++    * submit a single value. Forms can be processed in 3 ways -- via an 
++    * asynchronous Connection utility call, a simple form POST or GET, 
++    * or manually.
++    * @namespace YAHOO.widget
++    * @class SimpleDialog
++    * @extends YAHOO.widget.Dialog
++    * @constructor
++    * @param {String} el The element ID representing the SimpleDialog 
++    * <em>OR</em>
++    * @param {HTMLElement} el The element representing the SimpleDialog
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this SimpleDialog. See 
++    * configuration documentation for more details.
++    */
++    YAHOO.widget.SimpleDialog = function (el, userConfig) {
++    
++        YAHOO.widget.SimpleDialog.superclass.constructor.call(this, 
++            el, userConfig);
++    
++    };
++
++    var Dom = YAHOO.util.Dom,
++        SimpleDialog = YAHOO.widget.SimpleDialog,
++    
++        /**
++        * Constant representing the SimpleDialog's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++        
++            "ICON": { 
++                key: "icon", 
++                value: "none", 
++                suppressEvent: true  
++            },
++        
++            "TEXT": { 
++                key: "text", 
++                value: "", 
++                suppressEvent: true, 
++                supercedes: ["icon"] 
++            }
++        
++        };
++
++    /**
++    * Constant for the standard network icon for a blocking action
++    * @property YAHOO.widget.SimpleDialog.ICON_BLOCK
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_BLOCK = "blckicon";
++    
++    /**
++    * Constant for the standard network icon for alarm
++    * @property YAHOO.widget.SimpleDialog.ICON_ALARM
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_ALARM = "alrticon";
++    
++    /**
++    * Constant for the standard network icon for help
++    * @property YAHOO.widget.SimpleDialog.ICON_HELP
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_HELP  = "hlpicon";
++    
++    /**
++    * Constant for the standard network icon for info
++    * @property YAHOO.widget.SimpleDialog.ICON_INFO
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_INFO  = "infoicon";
++    
++    /**
++    * Constant for the standard network icon for warn
++    * @property YAHOO.widget.SimpleDialog.ICON_WARN
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_WARN  = "warnicon";
++    
++    /**
++    * Constant for the standard network icon for a tip
++    * @property YAHOO.widget.SimpleDialog.ICON_TIP
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_TIP   = "tipicon";
++
++    /**
++    * Constant representing the name of the CSS class applied to the element 
++    * created by the "icon" configuration property.
++    * @property YAHOO.widget.SimpleDialog.ICON_CSS_CLASSNAME
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_CSS_CLASSNAME = "yui-icon";
++    
++    /**
++    * Constant representing the default CSS class used for a SimpleDialog
++    * @property YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.CSS_SIMPLEDIALOG = "yui-simple-dialog";
++
++    
++    YAHOO.extend(SimpleDialog, YAHOO.widget.Dialog, {
++    
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the SimpleDialog's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++        
++            SimpleDialog.superclass.initDefaultConfig.call(this);
++        
++            // Add dialog config properties //
++        
++            /**
++            * Sets the informational icon for the SimpleDialog
++            * @config icon
++            * @type String
++            * @default "none"
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.ICON.key, {
++                handler: this.configIcon,
++                value: DEFAULT_CONFIG.ICON.value,
++                suppressEvent: DEFAULT_CONFIG.ICON.suppressEvent
++            });
++        
++            /**
++            * Sets the text for the SimpleDialog
++            * @config text
++            * @type String
++            * @default ""
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.TEXT.key, { 
++                handler: this.configText, 
++                value: DEFAULT_CONFIG.TEXT.value, 
++                suppressEvent: DEFAULT_CONFIG.TEXT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.TEXT.supercedes 
++            });
++        
++        },
++        
++        
++        /**
++        * The SimpleDialog initialization method, which is executed for 
++        * SimpleDialog and all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the SimpleDialog 
++        * <em>OR</em>
++        * @param {HTMLElement} el The element representing the SimpleDialog
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this 
++        * SimpleDialog. See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                Note that we don't pass the user config in here yet because we 
++                only want it executed once, at the lowest subclass level
++            */
++
++            SimpleDialog.superclass.init.call(this, el/*, userConfig*/);
++        
++            this.beforeInitEvent.fire(SimpleDialog);
++        
++            Dom.addClass(this.element, SimpleDialog.CSS_SIMPLEDIALOG);
++        
++            this.cfg.queueProperty("postmethod", "manual");
++        
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++        
++            this.beforeRenderEvent.subscribe(function () {
++                if (! this.body) {
++                    this.setBody("");
++                }
++            }, this, true);
++        
++            this.initEvent.fire(SimpleDialog);
++        
++        },
++        
++        /**
++        * Prepares the SimpleDialog's internal FORM object, creating one if one 
++        * is not currently present, and adding the value hidden field.
++        * @method registerForm
++        */
++        registerForm: function () {
++
++            SimpleDialog.superclass.registerForm.call(this);
++
++            this.form.innerHTML += "<input type=\"hidden\" name=\"" + 
++                this.id + "\" value=\"\"/>";
++
++        },
++        
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * Fired when the "icon" property is set.
++        * @method configIcon
++        * @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.
++        */
++        configIcon: function (type,args,obj) {
++        
++            var sIcon = args[0],
++                oBody = this.body,
++                sCSSClass = SimpleDialog.ICON_CSS_CLASSNAME,
++				aElements,
++                oIcon,
++                oIconParent;
++        
++            if (sIcon && sIcon != "none") {
++
++                aElements = Dom.getElementsByClassName(sCSSClass, "*" , oBody);
++
++				if (aElements.length === 1) {
++
++					oIcon = aElements[0];
++                    oIconParent = oIcon.parentNode;
++
++                    if (oIconParent) {
++
++                        oIconParent.removeChild(oIcon);
++
++                        oIcon = null;
++
++                    }
++
++				}
++
++
++                if (sIcon.indexOf(".") == -1) {
++
++                    oIcon = document.createElement("span");
++                    oIcon.className = (sCSSClass + " " + sIcon);
++                    oIcon.innerHTML = "&#160;";
++
++                } else {
++
++                    oIcon = document.createElement("img");
++                    oIcon.src = (this.imageRoot + sIcon);
++                    oIcon.className = sCSSClass;
++
++                }
++                
++
++                if (oIcon) {
++                
++                    oBody.insertBefore(oIcon, oBody.firstChild);
++                
++                }
++
++            }
++
++        },
++
++        /**
++        * Fired when the "text" property is set.
++        * @method configText
++        * @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.
++        */
++        configText: function (type,args,obj) {
++            var text = args[0];
++            if (text) {
++                this.setBody(text);
++                this.cfg.refireEvent("icon");
++            }
++        },
++        
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the SimpleDialog
++        */
++        toString: function () {
++            return "SimpleDialog " + this.id;
++        }
++
++        /**
++        * <p>
++        * Sets the SimpleDialog's body content to the HTML specified. 
++        * If no body is present, one will be automatically created. 
++        * An empty string can be passed to the method to clear the contents of the body.
++        * </p>
++        * <p><strong>NOTE:</strong> SimpleDialog provides the <a href="#config_text">text</a>
++        * and <a href="#config_icon">icon</a> configuration properties to set the contents
++        * of it's body element in accordance with the UI design for a SimpleDialog (an 
++        * icon and message text). Calling setBody on the SimpleDialog will not enforce this 
++        * UI design constraint and will replace the entire contents of the SimpleDialog body. 
++        * It should only be used if you wish the replace the default icon/text body structure 
++        * of a SimpleDialog with your own custom markup.</p>
++        * 
++        * @method setBody
++        * @param {String} bodyContent The HTML used to set the body. 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the body innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} bodyContent The HTMLElement to add as the first and only child of the body element.
++        * <em>OR</em>
++        * @param {DocumentFragment} bodyContent The document fragment 
++        * containing elements which are to be added to the body
++        */
++    });
++
++}());
++(function () {
++
++    /**
++    * ContainerEffect encapsulates animation transitions that are executed when 
++    * an Overlay is shown or hidden.
++    * @namespace YAHOO.widget
++    * @class ContainerEffect
++    * @constructor
++    * @param {YAHOO.widget.Overlay} overlay The Overlay that the animation 
++    * should be associated with
++    * @param {Object} attrIn The object literal representing the animation 
++    * arguments to be used for the animate-in transition. The arguments for 
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {Object} attrOut The object literal representing the animation 
++    * arguments to be used for the animate-out transition. The arguments for  
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {HTMLElement} targetElement Optional. The target element that  
++    * should be animated during the transition. Defaults to overlay.element.
++    * @param {class} Optional. The animation class to instantiate. Defaults to 
++    * YAHOO.util.Anim. Other options include YAHOO.util.Motion.
++    */
++    YAHOO.widget.ContainerEffect = function (overlay, attrIn, attrOut, targetElement, animClass) {
++
++        if (!animClass) {
++            animClass = YAHOO.util.Anim;
++        }
++
++        /**
++        * The overlay to animate
++        * @property overlay
++        * @type YAHOO.widget.Overlay
++        */
++        this.overlay = overlay;
++    
++        /**
++        * The animation attributes to use when transitioning into view
++        * @property attrIn
++        * @type Object
++        */
++        this.attrIn = attrIn;
++    
++        /**
++        * The animation attributes to use when transitioning out of view
++        * @property attrOut
++        * @type Object
++        */
++        this.attrOut = attrOut;
++    
++        /**
++        * The target element to be animated
++        * @property targetElement
++        * @type HTMLElement
++        */
++        this.targetElement = targetElement || overlay.element;
++    
++        /**
++        * The animation class to use for animating the overlay
++        * @property animClass
++        * @type class
++        */
++        this.animClass = animClass;
++    
++    };
++
++
++    var Dom = YAHOO.util.Dom,
++        CustomEvent = YAHOO.util.CustomEvent,
++        ContainerEffect = YAHOO.widget.ContainerEffect;
++
++
++    /**
++    * A pre-configured ContainerEffect instance that can be used for fading 
++    * an overlay in and out.
++    * @method FADE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.FADE = function (overlay, dur) {
++
++        var Easing = YAHOO.util.Easing,
++            fin = {
++                attributes: {opacity:{from:0, to:1}},
++                duration: dur,
++                method: Easing.easeIn
++            },
++            fout = {
++                attributes: {opacity:{to:0}},
++                duration: dur,
++                method: Easing.easeOut
++            },
++            fade = new ContainerEffect(overlay, fin, fout, overlay.element);
++
++        fade.handleUnderlayStart = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                var hasFilters = (underlay.filters && underlay.filters.length > 0);
++                if(hasFilters) {
++                    Dom.addClass(overlay.element, "yui-effect-fade");
++                }
++            }
++        };
++
++        fade.handleUnderlayComplete = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                Dom.removeClass(overlay.element, "yui-effect-fade");
++            }
++        };
++
++        fade.handleStartAnimateIn = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++
++            if (!obj.overlay.underlay) {
++                obj.overlay.cfg.refireEvent("underlay");
++            }
++
++            obj.handleUnderlayStart();
++
++            obj.overlay._setDomVisibility(true);
++            Dom.setStyle(obj.overlay.element, "opacity", 0);
++        };
++
++        fade.handleCompleteAnimateIn = function (type,args,obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++
++        fade.handleStartAnimateOut = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++            obj.handleUnderlayStart();
++        };
++
++        fade.handleCompleteAnimateOut =  function (type, args, obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++            obj.overlay._setDomVisibility(false);
++            Dom.setStyle(obj.overlay.element, "opacity", 1);
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        fade.init();
++        return fade;
++    };
++    
++    
++    /**
++    * A pre-configured ContainerEffect instance that can be used for sliding an 
++    * overlay in and out.
++    * @method SLIDE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.SLIDE = function (overlay, dur) {
++        var Easing = YAHOO.util.Easing,
++
++            x = overlay.cfg.getProperty("x") || Dom.getX(overlay.element),
++            y = overlay.cfg.getProperty("y") || Dom.getY(overlay.element),
++            clientWidth = Dom.getClientWidth(),
++            offsetWidth = overlay.element.offsetWidth,
++
++            sin =  { 
++                attributes: { points: { to: [x, y] } },
++                duration: dur,
++                method: Easing.easeIn 
++            },
++
++            sout = {
++                attributes: { points: { to: [(clientWidth + 25), y] } },
++                duration: dur,
++                method: Easing.easeOut 
++            },
++
++            slide = new ContainerEffect(overlay, sin, sout, overlay.element, YAHOO.util.Motion);
++
++        slide.handleStartAnimateIn = function (type,args,obj) {
++            obj.overlay.element.style.left = ((-25) - offsetWidth) + "px";
++            obj.overlay.element.style.top  = y + "px";
++        };
++
++        slide.handleTweenAnimateIn = function (type, args, obj) {
++        
++            var pos = Dom.getXY(obj.overlay.element),
++                currentX = pos[0],
++                currentY = pos[1];
++        
++            if (Dom.getStyle(obj.overlay.element, "visibility") == 
++                "hidden" && currentX < x) {
++
++                obj.overlay._setDomVisibility(true);
++
++            }
++        
++            obj.overlay.cfg.setProperty("xy", [currentX, currentY], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateIn = function (type, args, obj) {
++            obj.overlay.cfg.setProperty("xy", [x, y], true);
++            obj.startX = x;
++            obj.startY = y;
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++        
++        slide.handleStartAnimateOut = function (type, args, obj) {
++    
++            var vw = Dom.getViewportWidth(),
++                pos = Dom.getXY(obj.overlay.element),
++                yso = pos[1];
++    
++            obj.animOut.attributes.points.to = [(vw + 25), yso];
++        };
++        
++        slide.handleTweenAnimateOut = function (type, args, obj) {
++    
++            var pos = Dom.getXY(obj.overlay.element),
++                xto = pos[0],
++                yto = pos[1];
++        
++            obj.overlay.cfg.setProperty("xy", [xto, yto], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateOut = function (type, args, obj) {
++            obj.overlay._setDomVisibility(false);
++
++            obj.overlay.cfg.setProperty("xy", [x, y]);
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        slide.init();
++        return slide;
++    };
++
++    ContainerEffect.prototype = {
++
++        /**
++        * Initializes the animation classes and events.
++        * @method init
++        */
++        init: function () {
++
++            this.beforeAnimateInEvent = this.createEvent("beforeAnimateIn");
++            this.beforeAnimateInEvent.signature = CustomEvent.LIST;
++            
++            this.beforeAnimateOutEvent = this.createEvent("beforeAnimateOut");
++            this.beforeAnimateOutEvent.signature = CustomEvent.LIST;
++        
++            this.animateInCompleteEvent = this.createEvent("animateInComplete");
++            this.animateInCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animateOutCompleteEvent = 
++                this.createEvent("animateOutComplete");
++            this.animateOutCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animIn = new this.animClass(this.targetElement, 
++                this.attrIn.attributes, this.attrIn.duration, 
++                this.attrIn.method);
++
++            this.animIn.onStart.subscribe(this.handleStartAnimateIn, this);
++            this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this);
++
++            this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, 
++                this);
++        
++            this.animOut = new this.animClass(this.targetElement, 
++                this.attrOut.attributes, this.attrOut.duration, 
++                this.attrOut.method);
++
++            this.animOut.onStart.subscribe(this.handleStartAnimateOut, this);
++            this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this);
++            this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, 
++                this);
++
++        },
++        
++        /**
++        * Triggers the in-animation.
++        * @method animateIn
++        */
++        animateIn: function () {
++            this.beforeAnimateInEvent.fire();
++            this.animIn.animate();
++        },
++
++        /**
++        * Triggers the out-animation.
++        * @method animateOut
++        */
++        animateOut: function () {
++            this.beforeAnimateOutEvent.fire();
++            this.animOut.animate();
++        },
++
++        /**
++        * The default onStart handler for the in-animation.
++        * @method handleStartAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the in-animation.
++        * @method handleTweenAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the in-animation.
++        * @method handleCompleteAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onStart handler for the out-animation.
++        * @method handleStartAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the out-animation.
++        * @method handleTweenAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the out-animation.
++        * @method handleCompleteAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateOut: function (type, args, obj) { },
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the ContainerEffect
++        */
++        toString: function () {
++            var output = "ContainerEffect";
++            if (this.overlay) {
++                output += " [" + this.overlay.toString() + "]";
++            }
++            return output;
++        }
++    };
++
++    YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
++
++})();
++YAHOO.register("container", YAHOO.widget.Module, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/container/container-min.js b/pylons_app/public/js/yui/container/container-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/container-min.js
+@@ -0,0 +1,19 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){YAHOO.util.Config=function(D){if(D){this.init(D);}};var B=YAHOO.lang,C=YAHOO.util.CustomEvent,A=YAHOO.util.Config;A.CONFIG_CHANGED_EVENT="configChanged";A.BOOLEAN_TYPE="boolean";A.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(D){this.owner=D;this.configChangedEvent=this.createEvent(A.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=C.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[];},checkBoolean:function(D){return(typeof D==A.BOOLEAN_TYPE);},checkNumber:function(D){return(!isNaN(D));},fireEvent:function(D,F){var E=this.config[D];if(E&&E.event){E.event.fire(F);}},addProperty:function(E,D){E=E.toLowerCase();this.config[E]=D;D.event=this.createEvent(E,{scope:this.owner});D.event.signature=C.LIST;D.key=E;if(D.handler){D.event.subscribe(D.handler,this.owner);}this.setProperty(E,D.value,true);if(!D.suppressEvent){this.queueProperty(E,D.value);}},getConfig:function(){var D={},F=this.config,G,E;for(G in F){if(B.hasOwnProperty(F,G)){E=F[G];if(E&&E.event){D[G]=E.value;}}}return D;},getProperty:function(D){var E=this.config[D.toLowerCase()];if(E&&E.event){return E.value;}else{return undefined;}},resetProperty:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event){if(this.initialConfig[D]&&!B.isUndefined(this.initialConfig[D])){this.setProperty(D,this.initialConfig[D]);return true;}}else{return false;}},setProperty:function(E,G,D){var F;E=E.toLowerCase();if(this.queueInProgress&&!D){this.queueProperty(E,G);return true;}else{F=this.config[E];if(F&&F.event){if(F.validator&&!F.validator(G)){return false;}else{F.value=G;if(!D){this.fireEvent(E,G);this.configChangedEvent.fire([E,G]);}return true;}}else{return false;}}},queueProperty:function(S,P){S=S.toLowerCase();var R=this.config[S],K=false,J,G,H,I,O,Q,F,M,N,D,L,T,E;if(R&&R.event){if(!B.isUndefined(P)&&R.validator&&!R.validator(P)){return false;}else{if(!B.isUndefined(P)){R.value=P;}else{P=R.value;}K=false;J=this.eventQueue.length;for(L=0;L<J;L++){G=this.eventQueue[L];if(G){H=G[0];I=G[1];if(H==S){this.eventQueue[L]=null;this.eventQueue.push([S,(!B.isUndefined(P)?P:I)]);K=true;break;}}}if(!K&&!B.isUndefined(P)){this.eventQueue.push([S,P]);}}if(R.supercedes){O=R.supercedes.length;for(T=0;T<O;T++){Q=R.supercedes[T];F=this.eventQueue.length;for(E=0;E<F;E++){M=this.eventQueue[E];if(M){N=M[0];D=M[1];if(N==Q.toLowerCase()){this.eventQueue.push([N,D]);this.eventQueue[E]=null;break;}}}}}return true;}else{return false;}},refireEvent:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event&&!B.isUndefined(E.value)){if(this.queueInProgress){this.queueProperty(D);}else{this.fireEvent(D,E.value);}}},applyConfig:function(D,G){var F,E;if(G){E={};for(F in D){if(B.hasOwnProperty(D,F)){E[F.toLowerCase()]=D[F];}}this.initialConfig=E;}for(F in D){if(B.hasOwnProperty(D,F)){this.queueProperty(F,D[F]);}}},refresh:function(){var D;for(D in this.config){if(B.hasOwnProperty(this.config,D)){this.refireEvent(D);}}},fireQueue:function(){var E,H,D,G,F;this.queueInProgress=true;for(E=0;E<this.eventQueue.length;E++){H=this.eventQueue[E];if(H){D=H[0];G=H[1];F=this.config[D];F.value=G;this.eventQueue[E]=null;this.fireEvent(D,G);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(D,E,G,H){var F=this.config[D.toLowerCase()];if(F&&F.event){if(!A.alreadySubscribed(F.event,E,G)){F.event.subscribe(E,G,H);}return true;}else{return false;}},unsubscribeFromConfigEvent:function(D,E,G){var F=this.config[D.toLowerCase()];if(F&&F.event){return F.event.unsubscribe(E,G);}else{return false;}},toString:function(){var D="Config";if(this.owner){D+=" ["+this.owner.toString()+"]";}return D;},outputEventQueue:function(){var D="",G,E,F=this.eventQueue.length;for(E=0;E<F;E++){G=this.eventQueue[E];if(G){D+=G[0]+"="+G[1]+", ";}}return D;},destroy:function(){var E=this.config,D,F;for(D in E){if(B.hasOwnProperty(E,D)){F=E[D];F.event.unsubscribeAll();F.event=null;}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null;}};A.alreadySubscribed=function(E,H,I){var F=E.subscribers.length,D,G;if(F>0){G=F-1;do{D=E.subscribers[G];if(D&&D.obj==I&&D.fn==H){return true;}}while(G--);}return false;};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Module=function(R,Q){if(R){this.init(R,Q);}else{}};var F=YAHOO.util.Dom,D=YAHOO.util.Config,N=YAHOO.util.Event,M=YAHOO.util.CustomEvent,G=YAHOO.widget.Module,I=YAHOO.env.ua,H,P,O,E,A={"BEFORE_INIT":"beforeInit","INIT":"init","APPEND":"append","BEFORE_RENDER":"beforeRender","RENDER":"render","CHANGE_HEADER":"changeHeader","CHANGE_BODY":"changeBody","CHANGE_FOOTER":"changeFooter","CHANGE_CONTENT":"changeContent","DESTROY":"destroy","BEFORE_SHOW":"beforeShow","SHOW":"show","BEFORE_HIDE":"beforeHide","HIDE":"hide"},J={"VISIBLE":{key:"visible",value:true,validator:YAHOO.lang.isBoolean},"EFFECT":{key:"effect",suppressEvent:true,supercedes:["visible"]},"MONITOR_RESIZE":{key:"monitorresize",value:true},"APPEND_TO_DOCUMENT_BODY":{key:"appendtodocumentbody",value:false}};G.IMG_ROOT=null;G.IMG_ROOT_SSL=null;G.CSS_MODULE="yui-module";G.CSS_HEADER="hd";G.CSS_BODY="bd";G.CSS_FOOTER="ft";G.RESIZE_MONITOR_SECURE_URL="javascript:false;";G.RESIZE_MONITOR_BUFFER=1;G.textResizeEvent=new M("textResize");G.forceDocumentRedraw=function(){var Q=document.documentElement;if(Q){Q.className+=" ";Q.className=YAHOO.lang.trim(Q.className);}};function L(){if(!H){H=document.createElement("div");H.innerHTML=('<div class="'+G.CSS_HEADER+'"></div>'+'<div class="'+G.CSS_BODY+'"></div><div class="'+G.CSS_FOOTER+'"></div>');P=H.firstChild;O=P.nextSibling;E=O.nextSibling;}return H;}function K(){if(!P){L();}return(P.cloneNode(false));}function B(){if(!O){L();}return(O.cloneNode(false));}function C(){if(!E){L();}return(E.cloneNode(false));}G.prototype={constructor:G,element:null,header:null,body:null,footer:null,id:null,imageRoot:G.IMG_ROOT,initEvents:function(){var Q=M.LIST;
++this.beforeInitEvent=this.createEvent(A.BEFORE_INIT);this.beforeInitEvent.signature=Q;this.initEvent=this.createEvent(A.INIT);this.initEvent.signature=Q;this.appendEvent=this.createEvent(A.APPEND);this.appendEvent.signature=Q;this.beforeRenderEvent=this.createEvent(A.BEFORE_RENDER);this.beforeRenderEvent.signature=Q;this.renderEvent=this.createEvent(A.RENDER);this.renderEvent.signature=Q;this.changeHeaderEvent=this.createEvent(A.CHANGE_HEADER);this.changeHeaderEvent.signature=Q;this.changeBodyEvent=this.createEvent(A.CHANGE_BODY);this.changeBodyEvent.signature=Q;this.changeFooterEvent=this.createEvent(A.CHANGE_FOOTER);this.changeFooterEvent.signature=Q;this.changeContentEvent=this.createEvent(A.CHANGE_CONTENT);this.changeContentEvent.signature=Q;this.destroyEvent=this.createEvent(A.DESTROY);this.destroyEvent.signature=Q;this.beforeShowEvent=this.createEvent(A.BEFORE_SHOW);this.beforeShowEvent.signature=Q;this.showEvent=this.createEvent(A.SHOW);this.showEvent.signature=Q;this.beforeHideEvent=this.createEvent(A.BEFORE_HIDE);this.beforeHideEvent.signature=Q;this.hideEvent=this.createEvent(A.HIDE);this.hideEvent.signature=Q;},platform:function(){var Q=navigator.userAgent.toLowerCase();if(Q.indexOf("windows")!=-1||Q.indexOf("win32")!=-1){return"windows";}else{if(Q.indexOf("macintosh")!=-1){return"mac";}else{return false;}}}(),browser:function(){var Q=navigator.userAgent.toLowerCase();if(Q.indexOf("opera")!=-1){return"opera";}else{if(Q.indexOf("msie 7")!=-1){return"ie7";}else{if(Q.indexOf("msie")!=-1){return"ie";}else{if(Q.indexOf("safari")!=-1){return"safari";}else{if(Q.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true;}else{return false;}}(),initDefaultConfig:function(){this.cfg.addProperty(J.VISIBLE.key,{handler:this.configVisible,value:J.VISIBLE.value,validator:J.VISIBLE.validator});this.cfg.addProperty(J.EFFECT.key,{suppressEvent:J.EFFECT.suppressEvent,supercedes:J.EFFECT.supercedes});this.cfg.addProperty(J.MONITOR_RESIZE.key,{handler:this.configMonitorResize,value:J.MONITOR_RESIZE.value});this.cfg.addProperty(J.APPEND_TO_DOCUMENT_BODY.key,{value:J.APPEND_TO_DOCUMENT_BODY.value});},init:function(V,U){var S,W;this.initEvents();this.beforeInitEvent.fire(G);this.cfg=new D(this);if(this.isSecure){this.imageRoot=G.IMG_ROOT_SSL;}if(typeof V=="string"){S=V;V=document.getElementById(V);if(!V){V=(L()).cloneNode(false);V.id=S;}}this.id=F.generateId(V);this.element=V;W=this.element.firstChild;if(W){var R=false,Q=false,T=false;do{if(1==W.nodeType){if(!R&&F.hasClass(W,G.CSS_HEADER)){this.header=W;R=true;}else{if(!Q&&F.hasClass(W,G.CSS_BODY)){this.body=W;Q=true;}else{if(!T&&F.hasClass(W,G.CSS_FOOTER)){this.footer=W;T=true;}}}}}while((W=W.nextSibling));}this.initDefaultConfig();F.addClass(this.element,G.CSS_MODULE);if(U){this.cfg.applyConfig(U,true);}if(!D.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true);}this.initEvent.fire(G);},initResizeMonitor:function(){var R=(I.gecko&&this.platform=="windows");if(R){var Q=this;setTimeout(function(){Q._initResizeMonitor();},0);}else{this._initResizeMonitor();}},_initResizeMonitor:function(){var Q,S,U;function W(){G.textResizeEvent.fire();}if(!I.opera){S=F.get("_yuiResizeMonitor");var V=this._supportsCWResize();if(!S){S=document.createElement("iframe");if(this.isSecure&&G.RESIZE_MONITOR_SECURE_URL&&I.ie){S.src=G.RESIZE_MONITOR_SECURE_URL;}if(!V){U=["<html><head><script ",'type="text/javascript">',"window.onresize=function(){window.parent.","YAHOO.widget.Module.textResizeEvent.","fire();};<","/script></head>","<body></body></html>"].join("");S.src="data:text/html;charset=utf-8,"+encodeURIComponent(U);}S.id="_yuiResizeMonitor";S.title="Text Resize Monitor";S.style.position="absolute";S.style.visibility="hidden";var R=document.body,T=R.firstChild;if(T){R.insertBefore(S,T);}else{R.appendChild(S);}S.style.backgroundColor="transparent";S.style.borderWidth="0";S.style.width="2em";S.style.height="2em";S.style.left="0";S.style.top=(-1*(S.offsetHeight+G.RESIZE_MONITOR_BUFFER))+"px";S.style.visibility="visible";if(I.webkit){Q=S.contentWindow.document;Q.open();Q.close();}}if(S&&S.contentWindow){G.textResizeEvent.subscribe(this.onDomResize,this,true);if(!G.textResizeInitialized){if(V){if(!N.on(S.contentWindow,"resize",W)){N.on(S,"resize",W);}}G.textResizeInitialized=true;}this.resizeMonitor=S;}}},_supportsCWResize:function(){var Q=true;if(I.gecko&&I.gecko<=1.8){Q=false;}return Q;},onDomResize:function(S,R){var Q=-1*(this.resizeMonitor.offsetHeight+G.RESIZE_MONITOR_BUFFER);this.resizeMonitor.style.top=Q+"px";this.resizeMonitor.style.left="0";},setHeader:function(R){var Q=this.header||(this.header=K());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}if(this._rendered){this._renderHeader();}this.changeHeaderEvent.fire(R);this.changeContentEvent.fire();},appendToHeader:function(R){var Q=this.header||(this.header=K());Q.appendChild(R);this.changeHeaderEvent.fire(R);this.changeContentEvent.fire();},setBody:function(R){var Q=this.body||(this.body=B());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}if(this._rendered){this._renderBody();}this.changeBodyEvent.fire(R);this.changeContentEvent.fire();},appendToBody:function(R){var Q=this.body||(this.body=B());Q.appendChild(R);this.changeBodyEvent.fire(R);this.changeContentEvent.fire();},setFooter:function(R){var Q=this.footer||(this.footer=C());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}if(this._rendered){this._renderFooter();}this.changeFooterEvent.fire(R);this.changeContentEvent.fire();},appendToFooter:function(R){var Q=this.footer||(this.footer=C());Q.appendChild(R);this.changeFooterEvent.fire(R);this.changeContentEvent.fire();},render:function(S,Q){var T=this;function R(U){if(typeof U=="string"){U=document.getElementById(U);}if(U){T._addToParent(U,T.element);T.appendEvent.fire();}}this.beforeRenderEvent.fire();
++if(!Q){Q=this.element;}if(S){R(S);}else{if(!F.inDocument(this.element)){return false;}}this._renderHeader(Q);this._renderBody(Q);this._renderFooter(Q);this._rendered=true;this.renderEvent.fire();return true;},_renderHeader:function(Q){Q=Q||this.element;if(this.header&&!F.inDocument(this.header)){var R=Q.firstChild;if(R){Q.insertBefore(this.header,R);}else{Q.appendChild(this.header);}}},_renderBody:function(Q){Q=Q||this.element;if(this.body&&!F.inDocument(this.body)){if(this.footer&&F.isAncestor(Q,this.footer)){Q.insertBefore(this.body,this.footer);}else{Q.appendChild(this.body);}}},_renderFooter:function(Q){Q=Q||this.element;if(this.footer&&!F.inDocument(this.footer)){Q.appendChild(this.footer);}},destroy:function(){var Q;if(this.element){N.purgeElement(this.element,true);Q=this.element.parentNode;}if(Q){Q.removeChild(this.element);}this.element=null;this.header=null;this.body=null;this.footer=null;G.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();},show:function(){this.cfg.setProperty("visible",true);},hide:function(){this.cfg.setProperty("visible",false);},configVisible:function(R,Q,S){var T=Q[0];if(T){this.beforeShowEvent.fire();F.setStyle(this.element,"display","block");this.showEvent.fire();}else{this.beforeHideEvent.fire();F.setStyle(this.element,"display","none");this.hideEvent.fire();}},configMonitorResize:function(S,R,T){var Q=R[0];if(Q){this.initResizeMonitor();}else{G.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null;}},_addToParent:function(Q,R){if(!this.cfg.getProperty("appendtodocumentbody")&&Q===document.body&&Q.firstChild){Q.insertBefore(R,Q.firstChild);}else{Q.appendChild(R);}},toString:function(){return"Module "+this.id;}};YAHOO.lang.augmentProto(G,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Overlay=function(P,O){YAHOO.widget.Overlay.superclass.constructor.call(this,P,O);};var I=YAHOO.lang,M=YAHOO.util.CustomEvent,G=YAHOO.widget.Module,N=YAHOO.util.Event,F=YAHOO.util.Dom,D=YAHOO.util.Config,K=YAHOO.env.ua,B=YAHOO.widget.Overlay,H="subscribe",E="unsubscribe",C="contained",J,A={"BEFORE_MOVE":"beforeMove","MOVE":"move"},L={"X":{key:"x",validator:I.isNumber,suppressEvent:true,supercedes:["iframe"]},"Y":{key:"y",validator:I.isNumber,suppressEvent:true,supercedes:["iframe"]},"XY":{key:"xy",suppressEvent:true,supercedes:["iframe"]},"CONTEXT":{key:"context",suppressEvent:true,supercedes:["iframe"]},"FIXED_CENTER":{key:"fixedcenter",value:false,supercedes:["iframe","visible"]},"WIDTH":{key:"width",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"HEIGHT":{key:"height",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"AUTO_FILL_HEIGHT":{key:"autofillheight",supercedes:["height"],value:"body"},"ZINDEX":{key:"zindex",value:null},"CONSTRAIN_TO_VIEWPORT":{key:"constraintoviewport",value:false,validator:I.isBoolean,supercedes:["iframe","x","y","xy"]},"IFRAME":{key:"iframe",value:(K.ie==6?true:false),validator:I.isBoolean,supercedes:["zindex"]},"PREVENT_CONTEXT_OVERLAP":{key:"preventcontextoverlap",value:false,validator:I.isBoolean,supercedes:["constraintoviewport"]}};B.IFRAME_SRC="javascript:false;";B.IFRAME_OFFSET=3;B.VIEWPORT_OFFSET=10;B.TOP_LEFT="tl";B.TOP_RIGHT="tr";B.BOTTOM_LEFT="bl";B.BOTTOM_RIGHT="br";B.PREVENT_OVERLAP_X={"tltr":true,"blbr":true,"brbl":true,"trtl":true};B.PREVENT_OVERLAP_Y={"trbr":true,"tlbl":true,"bltl":true,"brtr":true};B.CSS_OVERLAY="yui-overlay";B.CSS_HIDDEN="yui-overlay-hidden";B.CSS_IFRAME="yui-overlay-iframe";B.STD_MOD_RE=/^\s*?(body|footer|header)\s*?$/i;B.windowScrollEvent=new M("windowScroll");B.windowResizeEvent=new M("windowResize");B.windowScrollHandler=function(P){var O=N.getTarget(P);if(!O||O===window||O===window.document){if(K.ie){if(!window.scrollEnd){window.scrollEnd=-1;}clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){B.windowScrollEvent.fire();},1);}else{B.windowScrollEvent.fire();}}};B.windowResizeHandler=function(O){if(K.ie){if(!window.resizeEnd){window.resizeEnd=-1;}clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){B.windowResizeEvent.fire();},100);}else{B.windowResizeEvent.fire();}};B._initialized=null;if(B._initialized===null){N.on(window,"scroll",B.windowScrollHandler);N.on(window,"resize",B.windowResizeHandler);B._initialized=true;}B._TRIGGER_MAP={"windowScroll":B.windowScrollEvent,"windowResize":B.windowResizeEvent,"textResize":G.textResizeEvent};YAHOO.extend(B,G,{CONTEXT_TRIGGERS:[],init:function(P,O){B.superclass.init.call(this,P);this.beforeInitEvent.fire(B);F.addClass(this.element,B.CSS_OVERLAY);if(O){this.cfg.applyConfig(O,true);}if(this.platform=="mac"&&K.gecko){if(!D.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);}if(!D.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}}this.initEvent.fire(B);},initEvents:function(){B.superclass.initEvents.call(this);var O=M.LIST;this.beforeMoveEvent=this.createEvent(A.BEFORE_MOVE);this.beforeMoveEvent.signature=O;this.moveEvent=this.createEvent(A.MOVE);this.moveEvent.signature=O;},initDefaultConfig:function(){B.superclass.initDefaultConfig.call(this);var O=this.cfg;O.addProperty(L.X.key,{handler:this.configX,validator:L.X.validator,suppressEvent:L.X.suppressEvent,supercedes:L.X.supercedes});O.addProperty(L.Y.key,{handler:this.configY,validator:L.Y.validator,suppressEvent:L.Y.suppressEvent,supercedes:L.Y.supercedes});O.addProperty(L.XY.key,{handler:this.configXY,suppressEvent:L.XY.suppressEvent,supercedes:L.XY.supercedes});O.addProperty(L.CONTEXT.key,{handler:this.configContext,suppressEvent:L.CONTEXT.suppressEvent,supercedes:L.CONTEXT.supercedes});O.addProperty(L.FIXED_CENTER.key,{handler:this.configFixedCenter,value:L.FIXED_CENTER.value,validator:L.FIXED_CENTER.validator,supercedes:L.FIXED_CENTER.supercedes});O.addProperty(L.WIDTH.key,{handler:this.configWidth,suppressEvent:L.WIDTH.suppressEvent,supercedes:L.WIDTH.supercedes});
++O.addProperty(L.HEIGHT.key,{handler:this.configHeight,suppressEvent:L.HEIGHT.suppressEvent,supercedes:L.HEIGHT.supercedes});O.addProperty(L.AUTO_FILL_HEIGHT.key,{handler:this.configAutoFillHeight,value:L.AUTO_FILL_HEIGHT.value,validator:this._validateAutoFill,supercedes:L.AUTO_FILL_HEIGHT.supercedes});O.addProperty(L.ZINDEX.key,{handler:this.configzIndex,value:L.ZINDEX.value});O.addProperty(L.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:L.CONSTRAIN_TO_VIEWPORT.value,validator:L.CONSTRAIN_TO_VIEWPORT.validator,supercedes:L.CONSTRAIN_TO_VIEWPORT.supercedes});O.addProperty(L.IFRAME.key,{handler:this.configIframe,value:L.IFRAME.value,validator:L.IFRAME.validator,supercedes:L.IFRAME.supercedes});O.addProperty(L.PREVENT_CONTEXT_OVERLAP.key,{value:L.PREVENT_CONTEXT_OVERLAP.value,validator:L.PREVENT_CONTEXT_OVERLAP.validator,supercedes:L.PREVENT_CONTEXT_OVERLAP.supercedes});},moveTo:function(O,P){this.cfg.setProperty("xy",[O,P]);},hideMacGeckoScrollbars:function(){F.replaceClass(this.element,"show-scrollbars","hide-scrollbars");},showMacGeckoScrollbars:function(){F.replaceClass(this.element,"hide-scrollbars","show-scrollbars");},_setDomVisibility:function(O){F.setStyle(this.element,"visibility",(O)?"visible":"hidden");var P=B.CSS_HIDDEN;if(O){F.removeClass(this.element,P);}else{F.addClass(this.element,P);}},configVisible:function(R,O,X){var Q=O[0],S=F.getStyle(this.element,"visibility"),Y=this.cfg.getProperty("effect"),V=[],U=(this.platform=="mac"&&K.gecko),g=D.alreadySubscribed,W,P,f,c,b,a,d,Z,T;if(S=="inherit"){f=this.element.parentNode;while(f.nodeType!=9&&f.nodeType!=11){S=F.getStyle(f,"visibility");if(S!="inherit"){break;}f=f.parentNode;}if(S=="inherit"){S="visible";}}if(Y){if(Y instanceof Array){Z=Y.length;for(c=0;c<Z;c++){W=Y[c];V[V.length]=W.effect(this,W.duration);}}else{V[V.length]=Y.effect(this,Y.duration);}}if(Q){if(U){this.showMacGeckoScrollbars();}if(Y){if(Q){if(S!="visible"||S===""){this.beforeShowEvent.fire();T=V.length;for(b=0;b<T;b++){P=V[b];if(b===0&&!g(P.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){P.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true);}P.animateIn();}}}}else{if(S!="visible"||S===""){this.beforeShowEvent.fire();this._setDomVisibility(true);this.cfg.refireEvent("iframe");this.showEvent.fire();}else{this._setDomVisibility(true);}}}else{if(U){this.hideMacGeckoScrollbars();}if(Y){if(S=="visible"){this.beforeHideEvent.fire();T=V.length;for(a=0;a<T;a++){d=V[a];if(a===0&&!g(d.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){d.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true);}d.animateOut();}}else{if(S===""){this._setDomVisibility(false);}}}else{if(S=="visible"||S===""){this.beforeHideEvent.fire();this._setDomVisibility(false);this.hideEvent.fire();}else{this._setDomVisibility(false);}}}},doCenterOnDOMEvent:function(){var O=this.cfg,P=O.getProperty("fixedcenter");if(O.getProperty("visible")){if(P&&(P!==C||this.fitsInViewport())){this.center();}}},fitsInViewport:function(){var S=B.VIEWPORT_OFFSET,Q=this.element,T=Q.offsetWidth,R=Q.offsetHeight,O=F.getViewportWidth(),P=F.getViewportHeight();return((T+S<O)&&(R+S<P));},configFixedCenter:function(S,Q,T){var U=Q[0],P=D.alreadySubscribed,R=B.windowResizeEvent,O=B.windowScrollEvent;if(U){this.center();if(!P(this.beforeShowEvent,this.center)){this.beforeShowEvent.subscribe(this.center);}if(!P(R,this.doCenterOnDOMEvent,this)){R.subscribe(this.doCenterOnDOMEvent,this,true);}if(!P(O,this.doCenterOnDOMEvent,this)){O.subscribe(this.doCenterOnDOMEvent,this,true);}}else{this.beforeShowEvent.unsubscribe(this.center);R.unsubscribe(this.doCenterOnDOMEvent,this);O.unsubscribe(this.doCenterOnDOMEvent,this);}},configHeight:function(R,P,S){var O=P[0],Q=this.element;F.setStyle(Q,"height",O);this.cfg.refireEvent("iframe");},configAutoFillHeight:function(T,S,P){var V=S[0],Q=this.cfg,U="autofillheight",W="height",R=Q.getProperty(U),O=this._autoFillOnHeightChange;Q.unsubscribeFromConfigEvent(W,O);G.textResizeEvent.unsubscribe(O);this.changeContentEvent.unsubscribe(O);if(R&&V!==R&&this[R]){F.setStyle(this[R],W,"");}if(V){V=I.trim(V.toLowerCase());Q.subscribeToConfigEvent(W,O,this[V],this);G.textResizeEvent.subscribe(O,this[V],this);this.changeContentEvent.subscribe(O,this[V],this);Q.setProperty(U,V,true);}},configWidth:function(R,O,S){var Q=O[0],P=this.element;F.setStyle(P,"width",Q);this.cfg.refireEvent("iframe");},configzIndex:function(Q,O,R){var S=O[0],P=this.element;if(!S){S=F.getStyle(P,"zIndex");if(!S||isNaN(S)){S=0;}}if(this.iframe||this.cfg.getProperty("iframe")===true){if(S<=0){S=1;}}F.setStyle(P,"zIndex",S);this.cfg.setProperty("zIndex",S,true);if(this.iframe){this.stackIframe();}},configXY:function(Q,P,R){var T=P[0],O=T[0],S=T[1];this.cfg.setProperty("x",O);this.cfg.setProperty("y",S);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},configX:function(Q,P,R){var O=P[0],S=this.cfg.getProperty("y");this.cfg.setProperty("x",O,true);this.cfg.setProperty("y",S,true);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");F.setX(this.element,O,true);this.cfg.setProperty("xy",[O,S],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},configY:function(Q,P,R){var O=this.cfg.getProperty("x"),S=P[0];this.cfg.setProperty("x",O,true);this.cfg.setProperty("y",S,true);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");F.setY(this.element,S,true);this.cfg.setProperty("xy",[O,S],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},showIframe:function(){var P=this.iframe,O;if(P){O=this.element.parentNode;if(O!=P.parentNode){this._addToParent(O,P);}P.style.display="block";}},hideIframe:function(){if(this.iframe){this.iframe.style.display="none";}},syncIframe:function(){var O=this.iframe,Q=this.element,S=B.IFRAME_OFFSET,P=(S*2),R;if(O){O.style.width=(Q.offsetWidth+P+"px");
++O.style.height=(Q.offsetHeight+P+"px");R=this.cfg.getProperty("xy");if(!I.isArray(R)||(isNaN(R[0])||isNaN(R[1]))){this.syncPosition();R=this.cfg.getProperty("xy");}F.setXY(O,[(R[0]-S),(R[1]-S)]);}},stackIframe:function(){if(this.iframe){var O=F.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(O)&&!isNaN(O)){F.setStyle(this.iframe,"zIndex",(O-1));}}},configIframe:function(R,Q,S){var O=Q[0];function T(){var V=this.iframe,W=this.element,X;if(!V){if(!J){J=document.createElement("iframe");if(this.isSecure){J.src=B.IFRAME_SRC;}if(K.ie){J.style.filter="alpha(opacity=0)";J.frameBorder=0;}else{J.style.opacity="0";}J.style.position="absolute";J.style.border="none";J.style.margin="0";J.style.padding="0";J.style.display="none";J.tabIndex=-1;J.className=B.CSS_IFRAME;}V=J.cloneNode(false);V.id=this.id+"_f";X=W.parentNode;var U=X||document.body;this._addToParent(U,V);this.iframe=V;}this.showIframe();this.syncIframe();this.stackIframe();if(!this._hasIframeEventListeners){this.showEvent.subscribe(this.showIframe);this.hideEvent.subscribe(this.hideIframe);this.changeContentEvent.subscribe(this.syncIframe);this._hasIframeEventListeners=true;}}function P(){T.call(this);this.beforeShowEvent.unsubscribe(P);this._iframeDeferred=false;}if(O){if(this.cfg.getProperty("visible")){T.call(this);}else{if(!this._iframeDeferred){this.beforeShowEvent.subscribe(P);this._iframeDeferred=true;}}}else{this.hideIframe();if(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);this.changeContentEvent.unsubscribe(this.syncIframe);this._hasIframeEventListeners=false;}}},_primeXYFromDOM:function(){if(YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))){this.syncPosition();this.cfg.refireEvent("xy");this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);}},configConstrainToViewport:function(P,O,Q){var R=O[0];if(R){if(!D.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true);}if(!D.alreadySubscribed(this.beforeShowEvent,this._primeXYFromDOM)){this.beforeShowEvent.subscribe(this._primeXYFromDOM);}}else{this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this);}},configContext:function(U,T,Q){var X=T[0],R,O,V,S,P,W=this.CONTEXT_TRIGGERS;if(X){R=X[0];O=X[1];V=X[2];S=X[3];P=X[4];if(W&&W.length>0){S=(S||[]).concat(W);}if(R){if(typeof R=="string"){this.cfg.setProperty("context",[document.getElementById(R),O,V,S,P],true);}if(O&&V){this.align(O,V,P);}if(this._contextTriggers){this._processTriggers(this._contextTriggers,E,this._alignOnTrigger);}if(S){this._processTriggers(S,H,this._alignOnTrigger);this._contextTriggers=S;}}}},_alignOnTrigger:function(P,O){this.align();},_findTriggerCE:function(O){var P=null;if(O instanceof M){P=O;}else{if(B._TRIGGER_MAP[O]){P=B._TRIGGER_MAP[O];}}return P;},_processTriggers:function(S,U,R){var Q,T;for(var P=0,O=S.length;P<O;++P){Q=S[P];T=this._findTriggerCE(Q);if(T){T[U](R,this,true);}else{this[U](Q,R);}}},align:function(P,W,S){var V=this.cfg.getProperty("context"),T=this,O,Q,U;function R(Z,a){var Y=null,X=null;switch(P){case B.TOP_LEFT:Y=a;X=Z;break;case B.TOP_RIGHT:Y=a-Q.offsetWidth;X=Z;break;case B.BOTTOM_LEFT:Y=a;X=Z-Q.offsetHeight;break;case B.BOTTOM_RIGHT:Y=a-Q.offsetWidth;X=Z-Q.offsetHeight;break;}if(Y!==null&&X!==null){if(S){Y+=S[0];X+=S[1];}T.moveTo(Y,X);}}if(V){O=V[0];Q=this.element;T=this;if(!P){P=V[1];}if(!W){W=V[2];}if(!S&&V[4]){S=V[4];}if(Q&&O){U=F.getRegion(O);switch(W){case B.TOP_LEFT:R(U.top,U.left);break;case B.TOP_RIGHT:R(U.top,U.right);break;case B.BOTTOM_LEFT:R(U.bottom,U.left);break;case B.BOTTOM_RIGHT:R(U.bottom,U.right);break;}}}},enforceConstraints:function(P,O,Q){var S=O[0];var R=this.getConstrainedXY(S[0],S[1]);this.cfg.setProperty("x",R[0],true);this.cfg.setProperty("y",R[1],true);this.cfg.setProperty("xy",R,true);},_getConstrainedPos:function(X,P){var T=this.element,R=B.VIEWPORT_OFFSET,Z=(X=="x"),Y=(Z)?T.offsetWidth:T.offsetHeight,S=(Z)?F.getViewportWidth():F.getViewportHeight(),c=(Z)?F.getDocumentScrollLeft():F.getDocumentScrollTop(),b=(Z)?B.PREVENT_OVERLAP_X:B.PREVENT_OVERLAP_Y,O=this.cfg.getProperty("context"),U=(Y+R<S),W=this.cfg.getProperty("preventcontextoverlap")&&O&&b[(O[1]+O[2])],V=c+R,a=c+S-Y-R,Q=P;if(P<V||P>a){if(W){Q=this._preventOverlap(X,O[0],Y,S,c);}else{if(U){if(P<V){Q=V;}else{if(P>a){Q=a;}}}else{Q=V;}}}return Q;},_preventOverlap:function(X,W,Y,U,b){var Z=(X=="x"),T=B.VIEWPORT_OFFSET,S=this,Q=((Z)?F.getX(W):F.getY(W))-b,O=(Z)?W.offsetWidth:W.offsetHeight,P=Q-T,R=(U-(Q+O))-T,c=false,V=function(){var d;if((S.cfg.getProperty(X)-b)>Q){d=(Q-Y);}else{d=(Q+O);}S.cfg.setProperty(X,(d+b),true);return d;},a=function(){var e=((S.cfg.getProperty(X)-b)>Q)?R:P,d;if(Y>e){if(c){V();}else{V();c=true;d=a();}}return d;};a();return this.cfg.getProperty(X);},getConstrainedX:function(O){return this._getConstrainedPos("x",O);},getConstrainedY:function(O){return this._getConstrainedPos("y",O);},getConstrainedXY:function(O,P){return[this.getConstrainedX(O),this.getConstrainedY(P)];},center:function(){var R=B.VIEWPORT_OFFSET,S=this.element.offsetWidth,Q=this.element.offsetHeight,P=F.getViewportWidth(),T=F.getViewportHeight(),O,U;if(S<P){O=(P/2)-(S/2)+F.getDocumentScrollLeft();}else{O=R+F.getDocumentScrollLeft();}if(Q<T){U=(T/2)-(Q/2)+F.getDocumentScrollTop();}else{U=R+F.getDocumentScrollTop();}this.cfg.setProperty("xy",[parseInt(O,10),parseInt(U,10)]);this.cfg.refireEvent("iframe");if(K.webkit){this.forceContainerRedraw();}},syncPosition:function(){var O=F.getXY(this.element);this.cfg.setProperty("x",O[0],true);this.cfg.setProperty("y",O[1],true);this.cfg.setProperty("xy",O,true);},onDomResize:function(Q,P){var O=this;B.superclass.onDomResize.call(this,Q,P);setTimeout(function(){O.syncPosition();O.cfg.refireEvent("iframe");O.cfg.refireEvent("context");},0);},_getComputedHeight:(function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(P){var O=null;
++if(P.ownerDocument&&P.ownerDocument.defaultView){var Q=P.ownerDocument.defaultView.getComputedStyle(P,"");if(Q){O=parseInt(Q.height,10);}}return(I.isNumber(O))?O:null;};}else{return function(P){var O=null;if(P.style.pixelHeight){O=P.style.pixelHeight;}return(I.isNumber(O))?O:null;};}})(),_validateAutoFillHeight:function(O){return(!O)||(I.isString(O)&&B.STD_MOD_RE.test(O));},_autoFillOnHeightChange:function(R,P,Q){var O=this.cfg.getProperty("height");if((O&&O!=="auto")||(O===0)){this.fillHeight(Q);}},_getPreciseHeight:function(P){var O=P.offsetHeight;if(P.getBoundingClientRect){var Q=P.getBoundingClientRect();O=Q.bottom-Q.top;}return O;},fillHeight:function(R){if(R){var P=this.innerElement||this.element,O=[this.header,this.body,this.footer],V,W=0,X=0,T=0,Q=false;for(var U=0,S=O.length;U<S;U++){V=O[U];if(V){if(R!==V){X+=this._getPreciseHeight(V);}else{Q=true;}}}if(Q){if(K.ie||K.opera){F.setStyle(R,"height",0+"px");}W=this._getComputedHeight(P);if(W===null){F.addClass(P,"yui-override-padding");W=P.clientHeight;F.removeClass(P,"yui-override-padding");}T=Math.max(W-X,0);F.setStyle(R,"height",T+"px");if(R.offsetHeight!=T){T=Math.max(T-(R.offsetHeight-T),0);}F.setStyle(R,"height",T+"px");}}},bringToTop:function(){var S=[],R=this.element;function V(Z,Y){var b=F.getStyle(Z,"zIndex"),a=F.getStyle(Y,"zIndex"),X=(!b||isNaN(b))?0:parseInt(b,10),W=(!a||isNaN(a))?0:parseInt(a,10);if(X>W){return -1;}else{if(X<W){return 1;}else{return 0;}}}function Q(Y){var X=F.hasClass(Y,B.CSS_OVERLAY),W=YAHOO.widget.Panel;if(X&&!F.isAncestor(R,Y)){if(W&&F.hasClass(Y,W.CSS_PANEL)){S[S.length]=Y.parentNode;}else{S[S.length]=Y;}}}F.getElementsBy(Q,"DIV",document.body);S.sort(V);var O=S[0],U;if(O){U=F.getStyle(O,"zIndex");if(!isNaN(U)){var T=false;if(O!=R){T=true;}else{if(S.length>1){var P=F.getStyle(S[1],"zIndex");if(!isNaN(P)&&(U==P)){T=true;}}}if(T){this.cfg.setProperty("zindex",(parseInt(U,10)+2));}}}},destroy:function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);}this.iframe=null;B.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);B.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);G.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);if(this._contextTriggers){this._processTriggers(this._contextTriggers,E,this._alignOnTrigger);}B.superclass.destroy.call(this);},forceContainerRedraw:function(){var O=this;F.addClass(O.element,"yui-force-redraw");setTimeout(function(){F.removeClass(O.element,"yui-force-redraw");},0);},toString:function(){return"Overlay "+this.id;}});}());(function(){YAHOO.widget.OverlayManager=function(G){this.init(G);};var D=YAHOO.widget.Overlay,C=YAHOO.util.Event,E=YAHOO.util.Dom,B=YAHOO.util.Config,F=YAHOO.util.CustomEvent,A=YAHOO.widget.OverlayManager;A.CSS_FOCUSED="focused";A.prototype={constructor:A,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(I){this.cfg=new B(this);this.initDefaultConfig();if(I){this.cfg.applyConfig(I,true);}this.cfg.fireQueue();var H=null;this.getActive=function(){return H;};this.focus=function(J){var K=this.find(J);if(K){K.focus();}};this.remove=function(K){var M=this.find(K),J;if(M){if(H==M){H=null;}var L=(M.element===null&&M.cfg===null)?true:false;if(!L){J=E.getStyle(M.element,"zIndex");M.cfg.setProperty("zIndex",-1000,true);}this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.length-1));M.hideEvent.unsubscribe(M.blur);M.destroyEvent.unsubscribe(this._onOverlayDestroy,M);M.focusEvent.unsubscribe(this._onOverlayFocusHandler,M);M.blurEvent.unsubscribe(this._onOverlayBlurHandler,M);if(!L){C.removeListener(M.element,this.cfg.getProperty("focusevent"),this._onOverlayElementFocus);M.cfg.setProperty("zIndex",J,true);M.cfg.setProperty("manager",null);}if(M.focusEvent._managed){M.focusEvent=null;}if(M.blurEvent._managed){M.blurEvent=null;}if(M.focus._managed){M.focus=null;}if(M.blur._managed){M.blur=null;}}};this.blurAll=function(){var K=this.overlays.length,J;if(K>0){J=K-1;do{this.overlays[J].blur();}while(J--);}};this._manageBlur=function(J){var K=false;if(H==J){E.removeClass(H.element,A.CSS_FOCUSED);H=null;K=true;}return K;};this._manageFocus=function(J){var K=false;if(H!=J){if(H){H.blur();}H=J;this.bringToTop(H);E.addClass(H.element,A.CSS_FOCUSED);K=true;}return K;};var G=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[];}if(G){this.register(G);this.overlays.sort(this.compareZIndexDesc);}},_onOverlayElementFocus:function(I){var G=C.getTarget(I),H=this.close;if(H&&(G==H||E.isAncestor(H,G))){this.blur();}else{this.focus();}},_onOverlayDestroy:function(H,G,I){this.remove(I);},_onOverlayFocusHandler:function(H,G,I){this._manageFocus(I);},_onOverlayBlurHandler:function(H,G,I){this._manageBlur(I);},_bindFocus:function(G){var H=this;if(!G.focusEvent){G.focusEvent=G.createEvent("focus");G.focusEvent.signature=F.LIST;G.focusEvent._managed=true;}else{G.focusEvent.subscribe(H._onOverlayFocusHandler,G,H);}if(!G.focus){C.on(G.element,H.cfg.getProperty("focusevent"),H._onOverlayElementFocus,null,G);G.focus=function(){if(H._manageFocus(this)){if(this.cfg.getProperty("visible")&&this.focusFirst){this.focusFirst();}this.focusEvent.fire();}};G.focus._managed=true;}},_bindBlur:function(G){var H=this;if(!G.blurEvent){G.blurEvent=G.createEvent("blur");G.blurEvent.signature=F.LIST;G.focusEvent._managed=true;}else{G.blurEvent.subscribe(H._onOverlayBlurHandler,G,H);}if(!G.blur){G.blur=function(){if(H._manageBlur(this)){this.blurEvent.fire();}};G.blur._managed=true;}G.hideEvent.subscribe(G.blur);},_bindDestroy:function(G){var H=this;G.destroyEvent.subscribe(H._onOverlayDestroy,G,H);},_syncZIndex:function(G){var H=E.getStyle(G.element,"zIndex");if(!isNaN(H)){G.cfg.setProperty("zIndex",parseInt(H,10));}else{G.cfg.setProperty("zIndex",0);}},register:function(G){var J=false,H,I;if(G instanceof D){G.cfg.addProperty("manager",{value:this});this._bindFocus(G);this._bindBlur(G);this._bindDestroy(G);
++this._syncZIndex(G);this.overlays.push(G);this.bringToTop(G);J=true;}else{if(G instanceof Array){for(H=0,I=G.length;H<I;H++){J=this.register(G[H])||J;}}}return J;},bringToTop:function(M){var I=this.find(M),L,G,J;if(I){J=this.overlays;J.sort(this.compareZIndexDesc);G=J[0];if(G){L=E.getStyle(G.element,"zIndex");if(!isNaN(L)){var K=false;if(G!==I){K=true;}else{if(J.length>1){var H=E.getStyle(J[1].element,"zIndex");if(!isNaN(H)&&(L==H)){K=true;}}}if(K){I.cfg.setProperty("zindex",(parseInt(L,10)+2));}}J.sort(this.compareZIndexDesc);}}},find:function(G){var K=G instanceof D,I=this.overlays,M=I.length,J=null,L,H;if(K||typeof G=="string"){for(H=M-1;H>=0;H--){L=I[H];if((K&&(L===G))||(L.id==G)){J=L;break;}}}return J;},compareZIndexDesc:function(J,I){var H=(J.cfg)?J.cfg.getProperty("zIndex"):null,G=(I.cfg)?I.cfg.getProperty("zIndex"):null;if(H===null&&G===null){return 0;}else{if(H===null){return 1;}else{if(G===null){return -1;}else{if(H>G){return -1;}else{if(H<G){return 1;}else{return 0;}}}}}},showAll:function(){var H=this.overlays,I=H.length,G;for(G=I-1;G>=0;G--){H[G].show();}},hideAll:function(){var H=this.overlays,I=H.length,G;for(G=I-1;G>=0;G--){H[G].hide();}},toString:function(){return"OverlayManager";}};}());(function(){YAHOO.widget.Tooltip=function(P,O){YAHOO.widget.Tooltip.superclass.constructor.call(this,P,O);};var E=YAHOO.lang,N=YAHOO.util.Event,M=YAHOO.util.CustomEvent,C=YAHOO.util.Dom,J=YAHOO.widget.Tooltip,H=YAHOO.env.ua,G=(H.ie&&(H.ie<=6||document.compatMode=="BackCompat")),F,I={"PREVENT_OVERLAP":{key:"preventoverlap",value:true,validator:E.isBoolean,supercedes:["x","y","xy"]},"SHOW_DELAY":{key:"showdelay",value:200,validator:E.isNumber},"AUTO_DISMISS_DELAY":{key:"autodismissdelay",value:5000,validator:E.isNumber},"HIDE_DELAY":{key:"hidedelay",value:250,validator:E.isNumber},"TEXT":{key:"text",suppressEvent:true},"CONTAINER":{key:"container"},"DISABLED":{key:"disabled",value:false,suppressEvent:true},"XY_OFFSET":{key:"xyoffset",value:[0,25],suppressEvent:true}},A={"CONTEXT_MOUSE_OVER":"contextMouseOver","CONTEXT_MOUSE_OUT":"contextMouseOut","CONTEXT_TRIGGER":"contextTrigger"};J.CSS_TOOLTIP="yui-tt";function K(Q,O){var P=this.cfg,R=P.getProperty("width");if(R==O){P.setProperty("width",Q);}}function D(P,O){if("_originalWidth" in this){K.call(this,this._originalWidth,this._forcedWidth);}var Q=document.body,U=this.cfg,T=U.getProperty("width"),R,S;if((!T||T=="auto")&&(U.getProperty("container")!=Q||U.getProperty("x")>=C.getViewportWidth()||U.getProperty("y")>=C.getViewportHeight())){S=this.element.cloneNode(true);S.style.visibility="hidden";S.style.top="0px";S.style.left="0px";Q.appendChild(S);R=(S.offsetWidth+"px");Q.removeChild(S);S=null;U.setProperty("width",R);U.refireEvent("xy");this._originalWidth=T||"";this._forcedWidth=R;}}function B(P,O,Q){this.render(Q);}function L(){N.onDOMReady(B,this.cfg.getProperty("container"),this);}YAHOO.extend(J,YAHOO.widget.Overlay,{init:function(P,O){J.superclass.init.call(this,P);this.beforeInitEvent.fire(J);C.addClass(this.element,J.CSS_TOOLTIP);if(O){this.cfg.applyConfig(O,true);}this.cfg.queueProperty("visible",false);this.cfg.queueProperty("constraintoviewport",true);this.setBody("");this.subscribe("changeContent",D);this.subscribe("init",L);this.subscribe("render",this.onRender);this.initEvent.fire(J);},initEvents:function(){J.superclass.initEvents.call(this);var O=M.LIST;this.contextMouseOverEvent=this.createEvent(A.CONTEXT_MOUSE_OVER);this.contextMouseOverEvent.signature=O;this.contextMouseOutEvent=this.createEvent(A.CONTEXT_MOUSE_OUT);this.contextMouseOutEvent.signature=O;this.contextTriggerEvent=this.createEvent(A.CONTEXT_TRIGGER);this.contextTriggerEvent.signature=O;},initDefaultConfig:function(){J.superclass.initDefaultConfig.call(this);this.cfg.addProperty(I.PREVENT_OVERLAP.key,{value:I.PREVENT_OVERLAP.value,validator:I.PREVENT_OVERLAP.validator,supercedes:I.PREVENT_OVERLAP.supercedes});this.cfg.addProperty(I.SHOW_DELAY.key,{handler:this.configShowDelay,value:200,validator:I.SHOW_DELAY.validator});this.cfg.addProperty(I.AUTO_DISMISS_DELAY.key,{handler:this.configAutoDismissDelay,value:I.AUTO_DISMISS_DELAY.value,validator:I.AUTO_DISMISS_DELAY.validator});this.cfg.addProperty(I.HIDE_DELAY.key,{handler:this.configHideDelay,value:I.HIDE_DELAY.value,validator:I.HIDE_DELAY.validator});this.cfg.addProperty(I.TEXT.key,{handler:this.configText,suppressEvent:I.TEXT.suppressEvent});this.cfg.addProperty(I.CONTAINER.key,{handler:this.configContainer,value:document.body});this.cfg.addProperty(I.DISABLED.key,{handler:this.configContainer,value:I.DISABLED.value,supressEvent:I.DISABLED.suppressEvent});this.cfg.addProperty(I.XY_OFFSET.key,{value:I.XY_OFFSET.value.concat(),supressEvent:I.XY_OFFSET.suppressEvent});},configText:function(P,O,Q){var R=O[0];if(R){this.setBody(R);}},configContainer:function(Q,P,R){var O=P[0];if(typeof O=="string"){this.cfg.setProperty("container",document.getElementById(O),true);}},_removeEventListeners:function(){var R=this._context,O,Q,P;if(R){O=R.length;if(O>0){P=O-1;do{Q=R[P];N.removeListener(Q,"mouseover",this.onContextMouseOver);N.removeListener(Q,"mousemove",this.onContextMouseMove);N.removeListener(Q,"mouseout",this.onContextMouseOut);}while(P--);}}},configContext:function(T,P,U){var S=P[0],V,O,R,Q;if(S){if(!(S instanceof Array)){if(typeof S=="string"){this.cfg.setProperty("context",[document.getElementById(S)],true);}else{this.cfg.setProperty("context",[S],true);}S=this.cfg.getProperty("context");}this._removeEventListeners();this._context=S;V=this._context;if(V){O=V.length;if(O>0){Q=O-1;do{R=V[Q];N.on(R,"mouseover",this.onContextMouseOver,this);N.on(R,"mousemove",this.onContextMouseMove,this);N.on(R,"mouseout",this.onContextMouseOut,this);}while(Q--);}}}},onContextMouseMove:function(P,O){O.pageX=N.getPageX(P);O.pageY=N.getPageY(P);},onContextMouseOver:function(Q,P){var O=this;if(O.title){P._tempTitle=O.title;O.title="";}if(P.fireEvent("contextMouseOver",O,Q)!==false&&!P.cfg.getProperty("disabled")){if(P.hideProcId){clearTimeout(P.hideProcId);
++P.hideProcId=null;}N.on(O,"mousemove",P.onContextMouseMove,P);P.showProcId=P.doShow(Q,O);}},onContextMouseOut:function(Q,P){var O=this;if(P._tempTitle){O.title=P._tempTitle;P._tempTitle=null;}if(P.showProcId){clearTimeout(P.showProcId);P.showProcId=null;}if(P.hideProcId){clearTimeout(P.hideProcId);P.hideProcId=null;}P.fireEvent("contextMouseOut",O,Q);P.hideProcId=setTimeout(function(){P.hide();},P.cfg.getProperty("hidedelay"));},doShow:function(R,O){var T=this.cfg.getProperty("xyoffset"),P=T[0],S=T[1],Q=this;if(H.opera&&O.tagName&&O.tagName.toUpperCase()=="A"){S+=12;}return setTimeout(function(){var U=Q.cfg.getProperty("text");if(Q._tempTitle&&(U===""||YAHOO.lang.isUndefined(U)||YAHOO.lang.isNull(U))){Q.setBody(Q._tempTitle);}else{Q.cfg.refireEvent("text");}Q.moveTo(Q.pageX+P,Q.pageY+S);if(Q.cfg.getProperty("preventoverlap")){Q.preventOverlap(Q.pageX,Q.pageY);}N.removeListener(O,"mousemove",Q.onContextMouseMove);Q.contextTriggerEvent.fire(O);Q.show();Q.hideProcId=Q.doHide();},this.cfg.getProperty("showdelay"));},doHide:function(){var O=this;return setTimeout(function(){O.hide();},this.cfg.getProperty("autodismissdelay"));},preventOverlap:function(S,R){var O=this.element.offsetHeight,Q=new YAHOO.util.Point(S,R),P=C.getRegion(this.element);P.top-=5;P.left-=5;P.right+=5;P.bottom+=5;if(P.contains(Q)){this.cfg.setProperty("y",(R-O-5));}},onRender:function(S,R){function T(){var W=this.element,V=this.underlay;if(V){V.style.width=(W.offsetWidth+6)+"px";V.style.height=(W.offsetHeight+1)+"px";}}function P(){C.addClass(this.underlay,"yui-tt-shadow-visible");if(H.ie){this.forceUnderlayRedraw();}}function O(){C.removeClass(this.underlay,"yui-tt-shadow-visible");}function U(){var X=this.underlay,W,V,Z,Y;if(!X){W=this.element;V=YAHOO.widget.Module;Z=H.ie;Y=this;if(!F){F=document.createElement("div");F.className="yui-tt-shadow";}X=F.cloneNode(false);W.appendChild(X);this.underlay=X;this._shadow=this.underlay;P.call(this);this.subscribe("beforeShow",P);this.subscribe("hide",O);if(G){window.setTimeout(function(){T.call(Y);},0);this.cfg.subscribeToConfigEvent("width",T);this.cfg.subscribeToConfigEvent("height",T);this.subscribe("changeContent",T);V.textResizeEvent.subscribe(T,this,true);this.subscribe("destroy",function(){V.textResizeEvent.unsubscribe(T,this);});}}}function Q(){U.call(this);this.unsubscribe("beforeShow",Q);}if(this.cfg.getProperty("visible")){U.call(this);}else{this.subscribe("beforeShow",Q);}},forceUnderlayRedraw:function(){var O=this;C.addClass(O.underlay,"yui-force-redraw");setTimeout(function(){C.removeClass(O.underlay,"yui-force-redraw");},0);},destroy:function(){this._removeEventListeners();J.superclass.destroy.call(this);},toString:function(){return"Tooltip "+this.id;}});}());(function(){YAHOO.widget.Panel=function(V,U){YAHOO.widget.Panel.superclass.constructor.call(this,V,U);};var S=null;var E=YAHOO.lang,F=YAHOO.util,A=F.Dom,T=F.Event,M=F.CustomEvent,K=YAHOO.util.KeyListener,I=F.Config,H=YAHOO.widget.Overlay,O=YAHOO.widget.Panel,L=YAHOO.env.ua,P=(L.ie&&(L.ie<=6||document.compatMode=="BackCompat")),G,Q,C,D={"SHOW_MASK":"showMask","HIDE_MASK":"hideMask","DRAG":"drag"},N={"CLOSE":{key:"close",value:true,validator:E.isBoolean,supercedes:["visible"]},"DRAGGABLE":{key:"draggable",value:(F.DD?true:false),validator:E.isBoolean,supercedes:["visible"]},"DRAG_ONLY":{key:"dragonly",value:false,validator:E.isBoolean,supercedes:["draggable"]},"UNDERLAY":{key:"underlay",value:"shadow",supercedes:["visible"]},"MODAL":{key:"modal",value:false,validator:E.isBoolean,supercedes:["visible","zindex"]},"KEY_LISTENERS":{key:"keylisteners",suppressEvent:true,supercedes:["visible"]},"STRINGS":{key:"strings",supercedes:["close"],validator:E.isObject,value:{close:"Close"}}};O.CSS_PANEL="yui-panel";O.CSS_PANEL_CONTAINER="yui-panel-container";O.FOCUSABLE=["a","button","select","textarea","input","iframe"];function J(V,U){if(!this.header&&this.cfg.getProperty("draggable")){this.setHeader("&#160;");}}function R(V,U,W){var Z=W[0],X=W[1],Y=this.cfg,a=Y.getProperty("width");if(a==X){Y.setProperty("width",Z);}this.unsubscribe("hide",R,W);}function B(V,U){var Y,X,W;if(P){Y=this.cfg;X=Y.getProperty("width");if(!X||X=="auto"){W=(this.element.offsetWidth+"px");Y.setProperty("width",W);this.subscribe("hide",R,[(X||""),W]);}}}YAHOO.extend(O,H,{init:function(V,U){O.superclass.init.call(this,V);this.beforeInitEvent.fire(O);A.addClass(this.element,O.CSS_PANEL);this.buildWrapper();if(U){this.cfg.applyConfig(U,true);}this.subscribe("showMask",this._addFocusHandlers);this.subscribe("hideMask",this._removeFocusHandlers);this.subscribe("beforeRender",J);this.subscribe("render",function(){this.setFirstLastFocusable();this.subscribe("changeContent",this.setFirstLastFocusable);});this.subscribe("show",this.focusFirst);this.initEvent.fire(O);},_onElementFocus:function(Z){if(S===this){var Y=T.getTarget(Z),X=document.documentElement,V=(Y!==X&&Y!==window);if(V&&Y!==this.element&&Y!==this.mask&&!A.isAncestor(this.element,Y)){try{if(this.firstElement){this.firstElement.focus();}else{if(this._modalFocus){this._modalFocus.focus();}else{this.innerElement.focus();}}}catch(W){try{if(V&&Y!==document.body){Y.blur();}}catch(U){}}}}},_addFocusHandlers:function(V,U){if(!this.firstElement){if(L.webkit||L.opera){if(!this._modalFocus){this._createHiddenFocusElement();}}else{this.innerElement.tabIndex=0;}}this.setTabLoop(this.firstElement,this.lastElement);T.onFocus(document.documentElement,this._onElementFocus,this,true);S=this;},_createHiddenFocusElement:function(){var U=document.createElement("button");U.style.height="1px";U.style.width="1px";U.style.position="absolute";U.style.left="-10000em";U.style.opacity=0;U.tabIndex=-1;this.innerElement.appendChild(U);this._modalFocus=U;},_removeFocusHandlers:function(V,U){T.removeFocusListener(document.documentElement,this._onElementFocus,this);if(S==this){S=null;}},focusFirst:function(W,U,Y){var V=this.firstElement;if(U&&U[1]){T.stopEvent(U[1]);}if(V){try{V.focus();}catch(X){}}},focusLast:function(W,U,Y){var V=this.lastElement;
++if(U&&U[1]){T.stopEvent(U[1]);}if(V){try{V.focus();}catch(X){}}},setTabLoop:function(X,Z){var V=this.preventBackTab,W=this.preventTabOut,U=this.showEvent,Y=this.hideEvent;if(V){V.disable();U.unsubscribe(V.enable,V);Y.unsubscribe(V.disable,V);V=this.preventBackTab=null;}if(W){W.disable();U.unsubscribe(W.enable,W);Y.unsubscribe(W.disable,W);W=this.preventTabOut=null;}if(X){this.preventBackTab=new K(X,{shift:true,keys:9},{fn:this.focusLast,scope:this,correctScope:true});V=this.preventBackTab;U.subscribe(V.enable,V,true);Y.subscribe(V.disable,V,true);}if(Z){this.preventTabOut=new K(Z,{shift:false,keys:9},{fn:this.focusFirst,scope:this,correctScope:true});W=this.preventTabOut;U.subscribe(W.enable,W,true);Y.subscribe(W.disable,W,true);}},getFocusableElements:function(U){U=U||this.innerElement;var X={};for(var W=0;W<O.FOCUSABLE.length;W++){X[O.FOCUSABLE[W]]=true;}function V(Y){if(Y.focus&&Y.type!=="hidden"&&!Y.disabled&&X[Y.tagName.toLowerCase()]){return true;}return false;}return A.getElementsBy(V,null,U);},setFirstLastFocusable:function(){this.firstElement=null;this.lastElement=null;var U=this.getFocusableElements();this.focusableElements=U;if(U.length>0){this.firstElement=U[0];this.lastElement=U[U.length-1];}if(this.cfg.getProperty("modal")){this.setTabLoop(this.firstElement,this.lastElement);}},initEvents:function(){O.superclass.initEvents.call(this);var U=M.LIST;this.showMaskEvent=this.createEvent(D.SHOW_MASK);this.showMaskEvent.signature=U;this.hideMaskEvent=this.createEvent(D.HIDE_MASK);this.hideMaskEvent.signature=U;this.dragEvent=this.createEvent(D.DRAG);this.dragEvent.signature=U;},initDefaultConfig:function(){O.superclass.initDefaultConfig.call(this);this.cfg.addProperty(N.CLOSE.key,{handler:this.configClose,value:N.CLOSE.value,validator:N.CLOSE.validator,supercedes:N.CLOSE.supercedes});this.cfg.addProperty(N.DRAGGABLE.key,{handler:this.configDraggable,value:(F.DD)?true:false,validator:N.DRAGGABLE.validator,supercedes:N.DRAGGABLE.supercedes});this.cfg.addProperty(N.DRAG_ONLY.key,{value:N.DRAG_ONLY.value,validator:N.DRAG_ONLY.validator,supercedes:N.DRAG_ONLY.supercedes});this.cfg.addProperty(N.UNDERLAY.key,{handler:this.configUnderlay,value:N.UNDERLAY.value,supercedes:N.UNDERLAY.supercedes});this.cfg.addProperty(N.MODAL.key,{handler:this.configModal,value:N.MODAL.value,validator:N.MODAL.validator,supercedes:N.MODAL.supercedes});this.cfg.addProperty(N.KEY_LISTENERS.key,{handler:this.configKeyListeners,suppressEvent:N.KEY_LISTENERS.suppressEvent,supercedes:N.KEY_LISTENERS.supercedes});this.cfg.addProperty(N.STRINGS.key,{value:N.STRINGS.value,handler:this.configStrings,validator:N.STRINGS.validator,supercedes:N.STRINGS.supercedes});},configClose:function(X,V,Y){var Z=V[0],W=this.close,U=this.cfg.getProperty("strings");if(Z){if(!W){if(!C){C=document.createElement("a");C.className="container-close";C.href="#";}W=C.cloneNode(true);this.innerElement.appendChild(W);W.innerHTML=(U&&U.close)?U.close:"&#160;";T.on(W,"click",this._doClose,this,true);this.close=W;}else{W.style.display="block";}}else{if(W){W.style.display="none";}}},_doClose:function(U){T.preventDefault(U);this.hide();},configDraggable:function(V,U,W){var X=U[0];if(X){if(!F.DD){this.cfg.setProperty("draggable",false);return;}if(this.header){A.setStyle(this.header,"cursor","move");this.registerDragDrop();}this.subscribe("beforeShow",B);}else{if(this.dd){this.dd.unreg();}if(this.header){A.setStyle(this.header,"cursor","auto");}this.unsubscribe("beforeShow",B);}},configUnderlay:function(d,c,Z){var b=(this.platform=="mac"&&L.gecko),e=c[0].toLowerCase(),V=this.underlay,W=this.element;function X(){var f=false;if(!V){if(!Q){Q=document.createElement("div");Q.className="underlay";}V=Q.cloneNode(false);this.element.appendChild(V);this.underlay=V;if(P){this.sizeUnderlay();this.cfg.subscribeToConfigEvent("width",this.sizeUnderlay);this.cfg.subscribeToConfigEvent("height",this.sizeUnderlay);this.changeContentEvent.subscribe(this.sizeUnderlay);YAHOO.widget.Module.textResizeEvent.subscribe(this.sizeUnderlay,this,true);}if(L.webkit&&L.webkit<420){this.changeContentEvent.subscribe(this.forceUnderlayRedraw);}f=true;}}function a(){var f=X.call(this);if(!f&&P){this.sizeUnderlay();}this._underlayDeferred=false;this.beforeShowEvent.unsubscribe(a);}function Y(){if(this._underlayDeferred){this.beforeShowEvent.unsubscribe(a);this._underlayDeferred=false;}if(V){this.cfg.unsubscribeFromConfigEvent("width",this.sizeUnderlay);this.cfg.unsubscribeFromConfigEvent("height",this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.sizeUnderlay);this.changeContentEvent.unsubscribe(this.forceUnderlayRedraw);YAHOO.widget.Module.textResizeEvent.unsubscribe(this.sizeUnderlay,this,true);this.element.removeChild(V);this.underlay=null;}}switch(e){case"shadow":A.removeClass(W,"matte");A.addClass(W,"shadow");break;case"matte":if(!b){Y.call(this);}A.removeClass(W,"shadow");A.addClass(W,"matte");break;default:if(!b){Y.call(this);}A.removeClass(W,"shadow");A.removeClass(W,"matte");break;}if((e=="shadow")||(b&&!V)){if(this.cfg.getProperty("visible")){var U=X.call(this);if(!U&&P){this.sizeUnderlay();}}else{if(!this._underlayDeferred){this.beforeShowEvent.subscribe(a);this._underlayDeferred=true;}}}},configModal:function(V,U,X){var W=U[0];if(W){if(!this._hasModalityEventListeners){this.subscribe("beforeShow",this.buildMask);this.subscribe("beforeShow",this.bringToTop);this.subscribe("beforeShow",this.showMask);this.subscribe("hide",this.hideMask);H.windowResizeEvent.subscribe(this.sizeMask,this,true);this._hasModalityEventListeners=true;}}else{if(this._hasModalityEventListeners){if(this.cfg.getProperty("visible")){this.hideMask();this.removeMask();}this.unsubscribe("beforeShow",this.buildMask);this.unsubscribe("beforeShow",this.bringToTop);this.unsubscribe("beforeShow",this.showMask);this.unsubscribe("hide",this.hideMask);H.windowResizeEvent.unsubscribe(this.sizeMask,this);this._hasModalityEventListeners=false;}}},removeMask:function(){var V=this.mask,U;if(V){this.hideMask();U=V.parentNode;
++if(U){U.removeChild(V);}this.mask=null;}},configKeyListeners:function(X,U,a){var W=U[0],Z,Y,V;if(W){if(W instanceof Array){Y=W.length;for(V=0;V<Y;V++){Z=W[V];if(!I.alreadySubscribed(this.showEvent,Z.enable,Z)){this.showEvent.subscribe(Z.enable,Z,true);}if(!I.alreadySubscribed(this.hideEvent,Z.disable,Z)){this.hideEvent.subscribe(Z.disable,Z,true);this.destroyEvent.subscribe(Z.disable,Z,true);}}}else{if(!I.alreadySubscribed(this.showEvent,W.enable,W)){this.showEvent.subscribe(W.enable,W,true);}if(!I.alreadySubscribed(this.hideEvent,W.disable,W)){this.hideEvent.subscribe(W.disable,W,true);this.destroyEvent.subscribe(W.disable,W,true);}}}},configStrings:function(V,U,W){var X=E.merge(N.STRINGS.value,U[0]);this.cfg.setProperty(N.STRINGS.key,X,true);},configHeight:function(X,V,Y){var U=V[0],W=this.innerElement;A.setStyle(W,"height",U);this.cfg.refireEvent("iframe");},_autoFillOnHeightChange:function(X,V,W){O.superclass._autoFillOnHeightChange.apply(this,arguments);if(P){var U=this;setTimeout(function(){U.sizeUnderlay();},0);}},configWidth:function(X,U,Y){var W=U[0],V=this.innerElement;A.setStyle(V,"width",W);this.cfg.refireEvent("iframe");},configzIndex:function(V,U,X){O.superclass.configzIndex.call(this,V,U,X);if(this.mask||this.cfg.getProperty("modal")===true){var W=A.getStyle(this.element,"zIndex");if(!W||isNaN(W)){W=0;}if(W===0){this.cfg.setProperty("zIndex",1);}else{this.stackMask();}}},buildWrapper:function(){var W=this.element.parentNode,U=this.element,V=document.createElement("div");V.className=O.CSS_PANEL_CONTAINER;V.id=U.id+"_c";if(W){W.insertBefore(V,U);}V.appendChild(U);this.element=V;this.innerElement=U;A.setStyle(this.innerElement,"visibility","inherit");},sizeUnderlay:function(){var V=this.underlay,U;if(V){U=this.element;V.style.width=U.offsetWidth+"px";V.style.height=U.offsetHeight+"px";}},registerDragDrop:function(){var V=this;if(this.header){if(!F.DD){return;}var U=(this.cfg.getProperty("dragonly")===true);this.dd=new F.DD(this.element.id,this.id,{dragOnly:U});if(!this.header.id){this.header.id=this.id+"_h";}this.dd.startDrag=function(){var X,Z,W,c,b,a;if(YAHOO.env.ua.ie==6){A.addClass(V.element,"drag");}if(V.cfg.getProperty("constraintoviewport")){var Y=H.VIEWPORT_OFFSET;X=V.element.offsetHeight;Z=V.element.offsetWidth;W=A.getViewportWidth();c=A.getViewportHeight();b=A.getDocumentScrollLeft();a=A.getDocumentScrollTop();if(X+Y<c){this.minY=a+Y;this.maxY=a+c-X-Y;}else{this.minY=a+Y;this.maxY=a+Y;}if(Z+Y<W){this.minX=b+Y;this.maxX=b+W-Z-Y;}else{this.minX=b+Y;this.maxX=b+Y;}this.constrainX=true;this.constrainY=true;}else{this.constrainX=false;this.constrainY=false;}V.dragEvent.fire("startDrag",arguments);};this.dd.onDrag=function(){V.syncPosition();V.cfg.refireEvent("iframe");if(this.platform=="mac"&&YAHOO.env.ua.gecko){this.showMacGeckoScrollbars();}V.dragEvent.fire("onDrag",arguments);};this.dd.endDrag=function(){if(YAHOO.env.ua.ie==6){A.removeClass(V.element,"drag");}V.dragEvent.fire("endDrag",arguments);V.moveEvent.fire(V.cfg.getProperty("xy"));};this.dd.setHandleElId(this.header.id);this.dd.addInvalidHandleType("INPUT");this.dd.addInvalidHandleType("SELECT");this.dd.addInvalidHandleType("TEXTAREA");}},buildMask:function(){var U=this.mask;if(!U){if(!G){G=document.createElement("div");G.className="mask";G.innerHTML="&#160;";}U=G.cloneNode(true);U.id=this.id+"_mask";document.body.insertBefore(U,document.body.firstChild);this.mask=U;if(YAHOO.env.ua.gecko&&this.platform=="mac"){A.addClass(this.mask,"block-scrollbars");}this.stackMask();}},hideMask:function(){if(this.cfg.getProperty("modal")&&this.mask){this.mask.style.display="none";A.removeClass(document.body,"masked");this.hideMaskEvent.fire();}},showMask:function(){if(this.cfg.getProperty("modal")&&this.mask){A.addClass(document.body,"masked");this.sizeMask();this.mask.style.display="block";this.showMaskEvent.fire();}},sizeMask:function(){if(this.mask){var V=this.mask,W=A.getViewportWidth(),U=A.getViewportHeight();if(V.offsetHeight>U){V.style.height=U+"px";}if(V.offsetWidth>W){V.style.width=W+"px";}V.style.height=A.getDocumentHeight()+"px";V.style.width=A.getDocumentWidth()+"px";}},stackMask:function(){if(this.mask){var U=A.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(U)&&!isNaN(U)){A.setStyle(this.mask,"zIndex",U-1);}}},render:function(U){return O.superclass.render.call(this,U,this.innerElement);},_renderHeader:function(U){U=U||this.innerElement;O.superclass._renderHeader.call(this,U);},_renderBody:function(U){U=U||this.innerElement;O.superclass._renderBody.call(this,U);},_renderFooter:function(U){U=U||this.innerElement;O.superclass._renderFooter.call(this,U);},destroy:function(){H.windowResizeEvent.unsubscribe(this.sizeMask,this);this.removeMask();if(this.close){T.purgeElement(this.close);}O.superclass.destroy.call(this);},forceUnderlayRedraw:function(){var U=this.underlay;A.addClass(U,"yui-force-redraw");setTimeout(function(){A.removeClass(U,"yui-force-redraw");},0);},toString:function(){return"Panel "+this.id;}});}());(function(){YAHOO.widget.Dialog=function(J,I){YAHOO.widget.Dialog.superclass.constructor.call(this,J,I);};var B=YAHOO.util.Event,G=YAHOO.util.CustomEvent,E=YAHOO.util.Dom,A=YAHOO.widget.Dialog,F=YAHOO.lang,H={"BEFORE_SUBMIT":"beforeSubmit","SUBMIT":"submit","MANUAL_SUBMIT":"manualSubmit","ASYNC_SUBMIT":"asyncSubmit","FORM_SUBMIT":"formSubmit","CANCEL":"cancel"},C={"POST_METHOD":{key:"postmethod",value:"async"},"POST_DATA":{key:"postdata",value:null},"BUTTONS":{key:"buttons",value:"none",supercedes:["visible"]},"HIDEAFTERSUBMIT":{key:"hideaftersubmit",value:true}};A.CSS_DIALOG="yui-dialog";function D(){var L=this._aButtons,J,K,I;if(F.isArray(L)){J=L.length;if(J>0){I=J-1;do{K=L[I];if(YAHOO.widget.Button&&K instanceof YAHOO.widget.Button){K.destroy();}else{if(K.tagName.toUpperCase()=="BUTTON"){B.purgeElement(K);B.purgeElement(K,false);}}}while(I--);}}}YAHOO.extend(A,YAHOO.widget.Panel,{form:null,initDefaultConfig:function(){A.superclass.initDefaultConfig.call(this);this.callback={success:null,failure:null,argument:null};
++this.cfg.addProperty(C.POST_METHOD.key,{handler:this.configPostMethod,value:C.POST_METHOD.value,validator:function(I){if(I!="form"&&I!="async"&&I!="none"&&I!="manual"){return false;}else{return true;}}});this.cfg.addProperty(C.POST_DATA.key,{value:C.POST_DATA.value});this.cfg.addProperty(C.HIDEAFTERSUBMIT.key,{value:C.HIDEAFTERSUBMIT.value});this.cfg.addProperty(C.BUTTONS.key,{handler:this.configButtons,value:C.BUTTONS.value,supercedes:C.BUTTONS.supercedes});},initEvents:function(){A.superclass.initEvents.call(this);var I=G.LIST;this.beforeSubmitEvent=this.createEvent(H.BEFORE_SUBMIT);this.beforeSubmitEvent.signature=I;this.submitEvent=this.createEvent(H.SUBMIT);this.submitEvent.signature=I;this.manualSubmitEvent=this.createEvent(H.MANUAL_SUBMIT);this.manualSubmitEvent.signature=I;this.asyncSubmitEvent=this.createEvent(H.ASYNC_SUBMIT);this.asyncSubmitEvent.signature=I;this.formSubmitEvent=this.createEvent(H.FORM_SUBMIT);this.formSubmitEvent.signature=I;this.cancelEvent=this.createEvent(H.CANCEL);this.cancelEvent.signature=I;},init:function(J,I){A.superclass.init.call(this,J);this.beforeInitEvent.fire(A);E.addClass(this.element,A.CSS_DIALOG);this.cfg.setProperty("visible",false);if(I){this.cfg.applyConfig(I,true);}this.showEvent.subscribe(this.focusFirst,this,true);this.beforeHideEvent.subscribe(this.blurButtons,this,true);this.subscribe("changeBody",this.registerForm);this.initEvent.fire(A);},doSubmit:function(){var P=YAHOO.util.Connect,Q=this.form,K=false,N=false,R,M,L,I;switch(this.cfg.getProperty("postmethod")){case"async":R=Q.elements;M=R.length;if(M>0){L=M-1;do{if(R[L].type=="file"){K=true;break;}}while(L--);}if(K&&YAHOO.env.ua.ie&&this.isSecure){N=true;}I=this._getFormAttributes(Q);P.setForm(Q,K,N);var J=this.cfg.getProperty("postdata");var O=P.asyncRequest(I.method,I.action,this.callback,J);this.asyncSubmitEvent.fire(O);break;case"form":Q.submit();this.formSubmitEvent.fire();break;case"none":case"manual":this.manualSubmitEvent.fire();break;}},_getFormAttributes:function(K){var I={method:null,action:null};if(K){if(K.getAttributeNode){var J=K.getAttributeNode("action");var L=K.getAttributeNode("method");if(J){I.action=J.value;}if(L){I.method=L.value;}}else{I.action=K.getAttribute("action");I.method=K.getAttribute("method");}}I.method=(F.isString(I.method)?I.method:"POST").toUpperCase();I.action=F.isString(I.action)?I.action:"";return I;},registerForm:function(){var I=this.element.getElementsByTagName("form")[0];if(this.form){if(this.form==I&&E.isAncestor(this.element,this.form)){return;}else{B.purgeElement(this.form);this.form=null;}}if(!I){I=document.createElement("form");I.name="frm_"+this.id;this.body.appendChild(I);}if(I){this.form=I;B.on(I,"submit",this._submitHandler,this,true);}},_submitHandler:function(I){B.stopEvent(I);this.submit();this.form.blur();},setTabLoop:function(I,J){I=I||this.firstButton;J=this.lastButton||J;A.superclass.setTabLoop.call(this,I,J);},setFirstLastFocusable:function(){A.superclass.setFirstLastFocusable.call(this);var J,I,K,L=this.focusableElements;this.firstFormElement=null;this.lastFormElement=null;if(this.form&&L&&L.length>0){I=L.length;for(J=0;J<I;++J){K=L[J];if(this.form===K.form){this.firstFormElement=K;break;}}for(J=I-1;J>=0;--J){K=L[J];if(this.form===K.form){this.lastFormElement=K;break;}}}},configClose:function(J,I,K){A.superclass.configClose.apply(this,arguments);},_doClose:function(I){B.preventDefault(I);this.cancel();},configButtons:function(S,R,M){var N=YAHOO.widget.Button,U=R[0],K=this.innerElement,T,P,J,Q,O,I,L;D.call(this);this._aButtons=null;if(F.isArray(U)){O=document.createElement("span");O.className="button-group";Q=U.length;this._aButtons=[];this.defaultHtmlButton=null;for(L=0;L<Q;L++){T=U[L];if(N){J=new N({label:T.text});J.appendTo(O);P=J.get("element");if(T.isDefault){J.addClass("default");this.defaultHtmlButton=P;}if(F.isFunction(T.handler)){J.set("onclick",{fn:T.handler,obj:this,scope:this});}else{if(F.isObject(T.handler)&&F.isFunction(T.handler.fn)){J.set("onclick",{fn:T.handler.fn,obj:((!F.isUndefined(T.handler.obj))?T.handler.obj:this),scope:(T.handler.scope||this)});}}this._aButtons[this._aButtons.length]=J;}else{P=document.createElement("button");P.setAttribute("type","button");if(T.isDefault){P.className="default";this.defaultHtmlButton=P;}P.innerHTML=T.text;if(F.isFunction(T.handler)){B.on(P,"click",T.handler,this,true);}else{if(F.isObject(T.handler)&&F.isFunction(T.handler.fn)){B.on(P,"click",T.handler.fn,((!F.isUndefined(T.handler.obj))?T.handler.obj:this),(T.handler.scope||this));}}O.appendChild(P);this._aButtons[this._aButtons.length]=P;}T.htmlButton=P;if(L===0){this.firstButton=P;}if(L==(Q-1)){this.lastButton=P;}}this.setFooter(O);I=this.footer;if(E.inDocument(this.element)&&!E.isAncestor(K,I)){K.appendChild(I);}this.buttonSpan=O;}else{O=this.buttonSpan;I=this.footer;if(O&&I){I.removeChild(O);this.buttonSpan=null;this.firstButton=null;this.lastButton=null;this.defaultHtmlButton=null;}}this.changeContentEvent.fire();},getButtons:function(){return this._aButtons||null;},focusFirst:function(K,I,M){var J=this.firstFormElement;if(I&&I[1]){B.stopEvent(I[1]);}if(J){try{J.focus();}catch(L){}}else{if(this.defaultHtmlButton){this.focusDefaultButton();}else{this.focusFirstButton();}}},focusLast:function(K,I,M){var N=this.cfg.getProperty("buttons"),J=this.lastFormElement;if(I&&I[1]){B.stopEvent(I[1]);}if(N&&F.isArray(N)){this.focusLastButton();}else{if(J){try{J.focus();}catch(L){}}}},_getButton:function(J){var I=YAHOO.widget.Button;if(I&&J&&J.nodeName&&J.id){J=I.getButton(J.id)||J;}return J;},focusDefaultButton:function(){var I=this._getButton(this.defaultHtmlButton);if(I){try{I.focus();}catch(J){}}},blurButtons:function(){var N=this.cfg.getProperty("buttons"),K,M,J,I;if(N&&F.isArray(N)){K=N.length;if(K>0){I=(K-1);do{M=N[I];if(M){J=this._getButton(M.htmlButton);if(J){try{J.blur();}catch(L){}}}}while(I--);}}},focusFirstButton:function(){var L=this.cfg.getProperty("buttons"),K,I;if(L&&F.isArray(L)){K=L[0];if(K){I=this._getButton(K.htmlButton);
++if(I){try{I.focus();}catch(J){}}}}},focusLastButton:function(){var M=this.cfg.getProperty("buttons"),J,L,I;if(M&&F.isArray(M)){J=M.length;if(J>0){L=M[(J-1)];if(L){I=this._getButton(L.htmlButton);if(I){try{I.focus();}catch(K){}}}}}},configPostMethod:function(J,I,K){this.registerForm();},validate:function(){return true;},submit:function(){if(this.validate()){if(this.beforeSubmitEvent.fire()){this.doSubmit();this.submitEvent.fire();if(this.cfg.getProperty("hideaftersubmit")){this.hide();}return true;}else{return false;}}else{return false;}},cancel:function(){this.cancelEvent.fire();this.hide();},getData:function(){var Y=this.form,J,R,U,L,S,P,O,I,V,K,W,Z,N,a,M,X,T;function Q(c){var b=c.tagName.toUpperCase();return((b=="INPUT"||b=="TEXTAREA"||b=="SELECT")&&c.name==L);}if(Y){J=Y.elements;R=J.length;U={};for(X=0;X<R;X++){L=J[X].name;S=E.getElementsBy(Q,"*",Y);P=S.length;if(P>0){if(P==1){S=S[0];O=S.type;I=S.tagName.toUpperCase();switch(I){case"INPUT":if(O=="checkbox"){U[L]=S.checked;}else{if(O!="radio"){U[L]=S.value;}}break;case"TEXTAREA":U[L]=S.value;break;case"SELECT":V=S.options;K=V.length;W=[];for(T=0;T<K;T++){Z=V[T];if(Z.selected){M=Z.attributes.value;W[W.length]=(M&&M.specified)?Z.value:Z.text;}}U[L]=W;break;}}else{O=S[0].type;switch(O){case"radio":for(T=0;T<P;T++){N=S[T];if(N.checked){U[L]=N.value;break;}}break;case"checkbox":W=[];for(T=0;T<P;T++){a=S[T];if(a.checked){W[W.length]=a.value;}}U[L]=W;break;}}}}}return U;},destroy:function(){D.call(this);this._aButtons=null;var I=this.element.getElementsByTagName("form"),J;if(I.length>0){J=I[0];if(J){B.purgeElement(J);if(J.parentNode){J.parentNode.removeChild(J);}this.form=null;}}A.superclass.destroy.call(this);},toString:function(){return"Dialog "+this.id;}});}());(function(){YAHOO.widget.SimpleDialog=function(E,D){YAHOO.widget.SimpleDialog.superclass.constructor.call(this,E,D);};var C=YAHOO.util.Dom,B=YAHOO.widget.SimpleDialog,A={"ICON":{key:"icon",value:"none",suppressEvent:true},"TEXT":{key:"text",value:"",suppressEvent:true,supercedes:["icon"]}};B.ICON_BLOCK="blckicon";B.ICON_ALARM="alrticon";B.ICON_HELP="hlpicon";B.ICON_INFO="infoicon";B.ICON_WARN="warnicon";B.ICON_TIP="tipicon";B.ICON_CSS_CLASSNAME="yui-icon";B.CSS_SIMPLEDIALOG="yui-simple-dialog";YAHOO.extend(B,YAHOO.widget.Dialog,{initDefaultConfig:function(){B.superclass.initDefaultConfig.call(this);this.cfg.addProperty(A.ICON.key,{handler:this.configIcon,value:A.ICON.value,suppressEvent:A.ICON.suppressEvent});this.cfg.addProperty(A.TEXT.key,{handler:this.configText,value:A.TEXT.value,suppressEvent:A.TEXT.suppressEvent,supercedes:A.TEXT.supercedes});},init:function(E,D){B.superclass.init.call(this,E);this.beforeInitEvent.fire(B);C.addClass(this.element,B.CSS_SIMPLEDIALOG);this.cfg.queueProperty("postmethod","manual");if(D){this.cfg.applyConfig(D,true);}this.beforeRenderEvent.subscribe(function(){if(!this.body){this.setBody("");}},this,true);this.initEvent.fire(B);},registerForm:function(){B.superclass.registerForm.call(this);this.form.innerHTML+='<input type="hidden" name="'+this.id+'" value=""/>';},configIcon:function(K,J,H){var D=J[0],E=this.body,F=B.ICON_CSS_CLASSNAME,L,I,G;if(D&&D!="none"){L=C.getElementsByClassName(F,"*",E);if(L.length===1){I=L[0];G=I.parentNode;if(G){G.removeChild(I);I=null;}}if(D.indexOf(".")==-1){I=document.createElement("span");I.className=(F+" "+D);I.innerHTML="&#160;";}else{I=document.createElement("img");I.src=(this.imageRoot+D);I.className=F;}if(I){E.insertBefore(I,E.firstChild);}}},configText:function(E,D,F){var G=D[0];if(G){this.setBody(G);this.cfg.refireEvent("icon");}},toString:function(){return"SimpleDialog "+this.id;}});}());(function(){YAHOO.widget.ContainerEffect=function(E,H,G,D,F){if(!F){F=YAHOO.util.Anim;}this.overlay=E;this.attrIn=H;this.attrOut=G;this.targetElement=D||E.element;this.animClass=F;};var B=YAHOO.util.Dom,C=YAHOO.util.CustomEvent,A=YAHOO.widget.ContainerEffect;A.FADE=function(D,F){var G=YAHOO.util.Easing,I={attributes:{opacity:{from:0,to:1}},duration:F,method:G.easeIn},E={attributes:{opacity:{to:0}},duration:F,method:G.easeOut},H=new A(D,I,E,D.element);H.handleUnderlayStart=function(){var K=this.overlay.underlay;if(K&&YAHOO.env.ua.ie){var J=(K.filters&&K.filters.length>0);if(J){B.addClass(D.element,"yui-effect-fade");}}};H.handleUnderlayComplete=function(){var J=this.overlay.underlay;if(J&&YAHOO.env.ua.ie){B.removeClass(D.element,"yui-effect-fade");}};H.handleStartAnimateIn=function(K,J,L){B.addClass(L.overlay.element,"hide-select");if(!L.overlay.underlay){L.overlay.cfg.refireEvent("underlay");}L.handleUnderlayStart();L.overlay._setDomVisibility(true);B.setStyle(L.overlay.element,"opacity",0);};H.handleCompleteAnimateIn=function(K,J,L){B.removeClass(L.overlay.element,"hide-select");if(L.overlay.element.style.filter){L.overlay.element.style.filter=null;}L.handleUnderlayComplete();L.overlay.cfg.refireEvent("iframe");L.animateInCompleteEvent.fire();};H.handleStartAnimateOut=function(K,J,L){B.addClass(L.overlay.element,"hide-select");L.handleUnderlayStart();};H.handleCompleteAnimateOut=function(K,J,L){B.removeClass(L.overlay.element,"hide-select");if(L.overlay.element.style.filter){L.overlay.element.style.filter=null;}L.overlay._setDomVisibility(false);B.setStyle(L.overlay.element,"opacity",1);L.handleUnderlayComplete();L.overlay.cfg.refireEvent("iframe");L.animateOutCompleteEvent.fire();};H.init();return H;};A.SLIDE=function(F,D){var I=YAHOO.util.Easing,L=F.cfg.getProperty("x")||B.getX(F.element),K=F.cfg.getProperty("y")||B.getY(F.element),M=B.getClientWidth(),H=F.element.offsetWidth,J={attributes:{points:{to:[L,K]}},duration:D,method:I.easeIn},E={attributes:{points:{to:[(M+25),K]}},duration:D,method:I.easeOut},G=new A(F,J,E,F.element,YAHOO.util.Motion);G.handleStartAnimateIn=function(O,N,P){P.overlay.element.style.left=((-25)-H)+"px";P.overlay.element.style.top=K+"px";};G.handleTweenAnimateIn=function(Q,P,R){var S=B.getXY(R.overlay.element),O=S[0],N=S[1];if(B.getStyle(R.overlay.element,"visibility")=="hidden"&&O<L){R.overlay._setDomVisibility(true);
++}R.overlay.cfg.setProperty("xy",[O,N],true);R.overlay.cfg.refireEvent("iframe");};G.handleCompleteAnimateIn=function(O,N,P){P.overlay.cfg.setProperty("xy",[L,K],true);P.startX=L;P.startY=K;P.overlay.cfg.refireEvent("iframe");P.animateInCompleteEvent.fire();};G.handleStartAnimateOut=function(O,N,R){var P=B.getViewportWidth(),S=B.getXY(R.overlay.element),Q=S[1];R.animOut.attributes.points.to=[(P+25),Q];};G.handleTweenAnimateOut=function(P,O,Q){var S=B.getXY(Q.overlay.element),N=S[0],R=S[1];Q.overlay.cfg.setProperty("xy",[N,R],true);Q.overlay.cfg.refireEvent("iframe");};G.handleCompleteAnimateOut=function(O,N,P){P.overlay._setDomVisibility(false);P.overlay.cfg.setProperty("xy",[L,K]);P.animateOutCompleteEvent.fire();};G.init();return G;};A.prototype={init:function(){this.beforeAnimateInEvent=this.createEvent("beforeAnimateIn");this.beforeAnimateInEvent.signature=C.LIST;this.beforeAnimateOutEvent=this.createEvent("beforeAnimateOut");this.beforeAnimateOutEvent.signature=C.LIST;this.animateInCompleteEvent=this.createEvent("animateInComplete");this.animateInCompleteEvent.signature=C.LIST;this.animateOutCompleteEvent=this.createEvent("animateOutComplete");this.animateOutCompleteEvent.signature=C.LIST;this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);},animateIn:function(){this.beforeAnimateInEvent.fire();this.animIn.animate();},animateOut:function(){this.beforeAnimateOutEvent.fire();this.animOut.animate();},handleStartAnimateIn:function(E,D,F){},handleTweenAnimateIn:function(E,D,F){},handleCompleteAnimateIn:function(E,D,F){},handleStartAnimateOut:function(E,D,F){},handleTweenAnimateOut:function(E,D,F){},handleCompleteAnimateOut:function(E,D,F){},toString:function(){var D="ContainerEffect";if(this.overlay){D+=" ["+this.overlay.toString()+"]";}return D;}};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);})();YAHOO.register("container",YAHOO.widget.Module,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/container/container.js b/pylons_app/public/js/yui/container/container.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/container.js
+@@ -0,0 +1,9052 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++    /**
++    * Config is a utility used within an Object to allow the implementer to
++    * maintain a list of local configuration properties and listen for changes 
++    * to those properties dynamically using CustomEvent. The initial values are 
++    * also maintained so that the configuration can be reset at any given point 
++    * to its initial state.
++    * @namespace YAHOO.util
++    * @class Config
++    * @constructor
++    * @param {Object} owner The owner Object to which this Config Object belongs
++    */
++    YAHOO.util.Config = function (owner) {
++
++        if (owner) {
++            this.init(owner);
++        }
++
++
++    };
++
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Config = YAHOO.util.Config;
++
++
++    /**
++     * Constant representing the CustomEvent type for the config changed event.
++     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
++     * @private
++     * @static
++     * @final
++     */
++    Config.CONFIG_CHANGED_EVENT = "configChanged";
++    
++    /**
++     * Constant representing the boolean type string
++     * @property YAHOO.util.Config.BOOLEAN_TYPE
++     * @private
++     * @static
++     * @final
++     */
++    Config.BOOLEAN_TYPE = "boolean";
++    
++    Config.prototype = {
++     
++        /**
++        * Object reference to the owner of this Config Object
++        * @property owner
++        * @type Object
++        */
++        owner: null,
++        
++        /**
++        * Boolean flag that specifies whether a queue is currently 
++        * being executed
++        * @property queueInProgress
++        * @type Boolean
++        */
++        queueInProgress: false,
++        
++        /**
++        * Maintains the local collection of configuration property objects and 
++        * their specified values
++        * @property config
++        * @private
++        * @type Object
++        */ 
++        config: null,
++        
++        /**
++        * Maintains the local collection of configuration property objects as 
++        * they were initially applied.
++        * This object is used when resetting a property.
++        * @property initialConfig
++        * @private
++        * @type Object
++        */ 
++        initialConfig: null,
++        
++        /**
++        * Maintains the local, normalized CustomEvent queue
++        * @property eventQueue
++        * @private
++        * @type Object
++        */ 
++        eventQueue: null,
++        
++        /**
++        * Custom Event, notifying subscribers when Config properties are set 
++        * (setProperty is called without the silent flag
++        * @event configChangedEvent
++        */
++        configChangedEvent: null,
++    
++        /**
++        * Initializes the configuration Object and all of its local members.
++        * @method init
++        * @param {Object} owner The owner Object to which this Config 
++        * Object belongs
++        */
++        init: function (owner) {
++    
++            this.owner = owner;
++    
++            this.configChangedEvent = 
++                this.createEvent(Config.CONFIG_CHANGED_EVENT);
++    
++            this.configChangedEvent.signature = CustomEvent.LIST;
++            this.queueInProgress = false;
++            this.config = {};
++            this.initialConfig = {};
++            this.eventQueue = [];
++        
++        },
++        
++        /**
++        * Validates that the value passed in is a Boolean.
++        * @method checkBoolean
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */ 
++        checkBoolean: function (val) {
++            return (typeof val == Config.BOOLEAN_TYPE);
++        },
++        
++        /**
++        * Validates that the value passed in is a number.
++        * @method checkNumber
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */
++        checkNumber: function (val) {
++            return (!isNaN(val));
++        },
++        
++        /**
++        * Fires a configuration property event using the specified value. 
++        * @method fireEvent
++        * @private
++        * @param {String} key The configuration property's name
++        * @param {value} Object The value of the correct type for the property
++        */ 
++        fireEvent: function ( key, value ) {
++            var property = this.config[key];
++        
++            if (property && property.event) {
++                property.event.fire(value);
++            } 
++        },
++        
++        /**
++        * Adds a property to the Config Object's private config hash.
++        * @method addProperty
++        * @param {String} key The configuration property's name
++        * @param {Object} propertyObject The Object containing all of this 
++        * property's arguments
++        */
++        addProperty: function ( key, propertyObject ) {
++            key = key.toLowerCase();
++        
++            this.config[key] = propertyObject;
++        
++            propertyObject.event = this.createEvent(key, { scope: this.owner });
++            propertyObject.event.signature = CustomEvent.LIST;
++            
++            
++            propertyObject.key = key;
++        
++            if (propertyObject.handler) {
++                propertyObject.event.subscribe(propertyObject.handler, 
++                    this.owner);
++            }
++        
++            this.setProperty(key, propertyObject.value, true);
++            
++            if (! propertyObject.suppressEvent) {
++                this.queueProperty(key, propertyObject.value);
++            }
++            
++        },
++        
++        /**
++        * Returns a key-value configuration map of the values currently set in  
++        * the Config Object.
++        * @method getConfig
++        * @return {Object} The current config, represented in a key-value map
++        */
++        getConfig: function () {
++        
++            var cfg = {},
++                currCfg = this.config,
++                prop,
++                property;
++                
++            for (prop in currCfg) {
++                if (Lang.hasOwnProperty(currCfg, prop)) {
++                    property = currCfg[prop];
++                    if (property && property.event) {
++                        cfg[prop] = property.value;
++                    }
++                }
++            }
++
++            return cfg;
++        },
++        
++        /**
++        * Returns the value of specified property.
++        * @method getProperty
++        * @param {String} key The name of the property
++        * @return {Object}  The value of the specified property
++        */
++        getProperty: function (key) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.value;
++            } else {
++                return undefined;
++            }
++        },
++        
++        /**
++        * Resets the specified property's value to its initial value.
++        * @method resetProperty
++        * @param {String} key The name of the property
++        * @return {Boolean} True is the property was reset, false if not
++        */
++        resetProperty: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event) {
++    
++                if (this.initialConfig[key] && 
++                    !Lang.isUndefined(this.initialConfig[key])) {
++    
++                    this.setProperty(key, this.initialConfig[key]);
++
++                    return true;
++    
++                }
++    
++            } else {
++    
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Sets the value of a property. If the silent property is passed as 
++        * true, the property's event will not be fired.
++        * @method setProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @param {Boolean} silent Whether the value should be set silently, 
++        * without firing the property event.
++        * @return {Boolean} True, if the set was successful, false if it failed.
++        */
++        setProperty: function (key, value, silent) {
++        
++            var property;
++        
++            key = key.toLowerCase();
++        
++            if (this.queueInProgress && ! silent) {
++                // Currently running through a queue... 
++                this.queueProperty(key,value);
++                return true;
++    
++            } else {
++                property = this.config[key];
++                if (property && property.event) {
++                    if (property.validator && !property.validator(value)) {
++                        return false;
++                    } else {
++                        property.value = value;
++                        if (! silent) {
++                            this.fireEvent(key, value);
++                            this.configChangedEvent.fire([key, value]);
++                        }
++                        return true;
++                    }
++                } else {
++                    return false;
++                }
++            }
++        },
++        
++        /**
++        * Sets the value of a property and queues its event to execute. If the 
++        * event is already scheduled to execute, it is
++        * moved from its current position to the end of the queue.
++        * @method queueProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @return {Boolean}  true, if the set was successful, false if 
++        * it failed.
++        */ 
++        queueProperty: function (key, value) {
++        
++            key = key.toLowerCase();
++        
++            var property = this.config[key],
++                foundDuplicate = false,
++                iLen,
++                queueItem,
++                queueItemKey,
++                queueItemValue,
++                sLen,
++                supercedesCheck,
++                qLen,
++                queueItemCheck,
++                queueItemCheckKey,
++                queueItemCheckValue,
++                i,
++                s,
++                q;
++                                
++            if (property && property.event) {
++    
++                if (!Lang.isUndefined(value) && property.validator && 
++                    !property.validator(value)) { // validator
++                    return false;
++                } else {
++        
++                    if (!Lang.isUndefined(value)) {
++                        property.value = value;
++                    } else {
++                        value = property.value;
++                    }
++        
++                    foundDuplicate = false;
++                    iLen = this.eventQueue.length;
++        
++                    for (i = 0; i < iLen; i++) {
++                        queueItem = this.eventQueue[i];
++        
++                        if (queueItem) {
++                            queueItemKey = queueItem[0];
++                            queueItemValue = queueItem[1];
++
++                            if (queueItemKey == key) {
++    
++                                /*
++                                    found a dupe... push to end of queue, null 
++                                    current item, and break
++                                */
++    
++                                this.eventQueue[i] = null;
++    
++                                this.eventQueue.push(
++                                    [key, (!Lang.isUndefined(value) ? 
++                                    value : queueItemValue)]);
++    
++                                foundDuplicate = true;
++                                break;
++                            }
++                        }
++                    }
++                    
++                    // this is a refire, or a new property in the queue
++    
++                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
++                        this.eventQueue.push([key, value]);
++                    }
++                }
++        
++                if (property.supercedes) {
++
++                    sLen = property.supercedes.length;
++
++                    for (s = 0; s < sLen; s++) {
++
++                        supercedesCheck = property.supercedes[s];
++                        qLen = this.eventQueue.length;
++
++                        for (q = 0; q < qLen; q++) {
++                            queueItemCheck = this.eventQueue[q];
++
++                            if (queueItemCheck) {
++                                queueItemCheckKey = queueItemCheck[0];
++                                queueItemCheckValue = queueItemCheck[1];
++
++                                if (queueItemCheckKey == 
++                                    supercedesCheck.toLowerCase() ) {
++
++                                    this.eventQueue.push([queueItemCheckKey, 
++                                        queueItemCheckValue]);
++
++                                    this.eventQueue[q] = null;
++                                    break;
++
++                                }
++                            }
++                        }
++                    }
++                }
++
++
++                return true;
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Fires the event for a property using the property's current value.
++        * @method refireEvent
++        * @param {String} key The name of the property
++        */
++        refireEvent: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event && 
++    
++                !Lang.isUndefined(property.value)) {
++    
++                if (this.queueInProgress) {
++    
++                    this.queueProperty(key);
++    
++                } else {
++    
++                    this.fireEvent(key, property.value);
++    
++                }
++    
++            }
++        },
++        
++        /**
++        * Applies a key-value Object literal to the configuration, replacing  
++        * any existing values, and queueing the property events.
++        * Although the values will be set, fireQueue() must be called for their 
++        * associated events to execute.
++        * @method applyConfig
++        * @param {Object} userConfig The configuration Object literal
++        * @param {Boolean} init  When set to true, the initialConfig will 
++        * be set to the userConfig passed in, so that calling a reset will 
++        * reset the properties to the passed values.
++        */
++        applyConfig: function (userConfig, init) {
++        
++            var sKey,
++                oConfig;
++
++            if (init) {
++                oConfig = {};
++                for (sKey in userConfig) {
++                    if (Lang.hasOwnProperty(userConfig, sKey)) {
++                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
++                    }
++                }
++                this.initialConfig = oConfig;
++            }
++
++            for (sKey in userConfig) {
++                if (Lang.hasOwnProperty(userConfig, sKey)) {
++                    this.queueProperty(sKey, userConfig[sKey]);
++                }
++            }
++        },
++        
++        /**
++        * Refires the events for all configuration properties using their 
++        * current values.
++        * @method refresh
++        */
++        refresh: function () {
++
++            var prop;
++
++            for (prop in this.config) {
++                if (Lang.hasOwnProperty(this.config, prop)) {
++                    this.refireEvent(prop);
++                }
++            }
++        },
++        
++        /**
++        * Fires the normalized list of queued property change events
++        * @method fireQueue
++        */
++        fireQueue: function () {
++        
++            var i, 
++                queueItem,
++                key,
++                value,
++                property;
++        
++            this.queueInProgress = true;
++            for (i = 0;i < this.eventQueue.length; i++) {
++                queueItem = this.eventQueue[i];
++                if (queueItem) {
++        
++                    key = queueItem[0];
++                    value = queueItem[1];
++                    property = this.config[key];
++
++                    property.value = value;
++
++                    // Clear out queue entry, to avoid it being 
++                    // re-added to the queue by any queueProperty/supercedes
++                    // calls which are invoked during fireEvent
++                    this.eventQueue[i] = null;
++
++                    this.fireEvent(key,value);
++                }
++            }
++            
++            this.queueInProgress = false;
++            this.eventQueue = [];
++        },
++        
++        /**
++        * Subscribes an external handler to the change event for any 
++        * given property. 
++        * @method subscribeToConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event handler 
++        * (see CustomEvent documentation)
++        * @param {Boolean} overrideContext Optional. If true, will override
++        * "this" within the handler to map to the scope Object passed into the
++        * method.
++        * @return {Boolean} True, if the subscription was successful, 
++        * otherwise false.
++        */ 
++        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
++    
++            var property = this.config[key.toLowerCase()];
++    
++            if (property && property.event) {
++                if (!Config.alreadySubscribed(property.event, handler, obj)) {
++                    property.event.subscribe(handler, obj, overrideContext);
++                }
++                return true;
++            } else {
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Unsubscribes an external handler from the change event for any 
++        * given property. 
++        * @method unsubscribeFromConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event 
++        * handler (see CustomEvent documentation)
++        * @return {Boolean} True, if the unsubscription was successful, 
++        * otherwise false.
++        */
++        unsubscribeFromConfigEvent: function (key, handler, obj) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.event.unsubscribe(handler, obj);
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Returns a string representation of the Config object
++        * @method toString
++        * @return {String} The Config object in string format.
++        */
++        toString: function () {
++            var output = "Config";
++            if (this.owner) {
++                output += " [" + this.owner.toString() + "]";
++            }
++            return output;
++        },
++        
++        /**
++        * Returns a string representation of the Config object's current 
++        * CustomEvent queue
++        * @method outputEventQueue
++        * @return {String} The string list of CustomEvents currently queued 
++        * for execution
++        */
++        outputEventQueue: function () {
++
++            var output = "",
++                queueItem,
++                q,
++                nQueue = this.eventQueue.length;
++              
++            for (q = 0; q < nQueue; q++) {
++                queueItem = this.eventQueue[q];
++                if (queueItem) {
++                    output += queueItem[0] + "=" + queueItem[1] + ", ";
++                }
++            }
++            return output;
++        },
++
++        /**
++        * Sets all properties to null, unsubscribes all listeners from each 
++        * property's change event and all listeners from the configChangedEvent.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var oConfig = this.config,
++                sProperty,
++                oProperty;
++
++
++            for (sProperty in oConfig) {
++            
++                if (Lang.hasOwnProperty(oConfig, sProperty)) {
++
++                    oProperty = oConfig[sProperty];
++
++                    oProperty.event.unsubscribeAll();
++                    oProperty.event = null;
++
++                }
++            
++            }
++            
++            this.configChangedEvent.unsubscribeAll();
++            
++            this.configChangedEvent = null;
++            this.owner = null;
++            this.config = null;
++            this.initialConfig = null;
++            this.eventQueue = null;
++        
++        }
++
++    };
++    
++    
++    
++    /**
++    * Checks to determine if a particular function/Object pair are already 
++    * subscribed to the specified CustomEvent
++    * @method YAHOO.util.Config.alreadySubscribed
++    * @static
++    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
++    * the subscriptions
++    * @param {Function} fn The function to look for in the subscribers list
++    * @param {Object} obj The execution scope Object for the subscription
++    * @return {Boolean} true, if the function/Object pair is already subscribed 
++    * to the CustomEvent passed in
++    */
++    Config.alreadySubscribed = function (evt, fn, obj) {
++    
++        var nSubscribers = evt.subscribers.length,
++            subsc,
++            i;
++
++        if (nSubscribers > 0) {
++            i = nSubscribers - 1;
++            do {
++                subsc = evt.subscribers[i];
++                if (subsc && subsc.obj == obj && subsc.fn == fn) {
++                    return true;
++                }
++            }
++            while (i--);
++        }
++
++        return false;
++
++    };
++
++    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * The Container family of components is designed to enable developers to 
++    * create different kinds of content-containing modules on the web. Module 
++    * and Overlay are the most basic containers, and they can be used directly 
++    * or extended to build custom containers. Also part of the Container family 
++    * are four UI controls that extend Module and Overlay: Tooltip, Panel, 
++    * Dialog, and SimpleDialog.
++    * @module container
++    * @title Container
++    * @requires yahoo, dom, event 
++    * @optional dragdrop, animation, button
++    */
++    
++    /**
++    * Module is a JavaScript representation of the Standard Module Format. 
++    * Standard Module Format is a simple standard for markup containers where 
++    * child nodes representing the header, body, and footer of the content are 
++    * denoted using the CSS classes "hd", "bd", and "ft" respectively. 
++    * Module is the base class for all other classes in the YUI 
++    * Container package.
++    * @namespace YAHOO.widget
++    * @class Module
++    * @constructor
++    * @param {String} el The element ID representing the Module <em>OR</em>
++    * @param {HTMLElement} el The element representing the Module
++    * @param {Object} userConfig The configuration Object literal containing 
++    * the configuration that should be set for this module. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Module = function (el, userConfig) {
++        if (el) {
++            this.init(el, userConfig);
++        } else {
++        }
++    };
++
++    var Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        UA = YAHOO.env.ua,
++
++        m_oModuleTemplate,
++        m_oHeaderTemplate,
++        m_oBodyTemplate,
++        m_oFooterTemplate,
++
++        /**
++        * Constant representing the name of the Module's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_INIT": "beforeInit",
++            "INIT": "init",
++            "APPEND": "append",
++            "BEFORE_RENDER": "beforeRender",
++            "RENDER": "render",
++            "CHANGE_HEADER": "changeHeader",
++            "CHANGE_BODY": "changeBody",
++            "CHANGE_FOOTER": "changeFooter",
++            "CHANGE_CONTENT": "changeContent",
++            "DESTROY": "destroy",
++            "BEFORE_SHOW": "beforeShow",
++            "SHOW": "show",
++            "BEFORE_HIDE": "beforeHide",
++            "HIDE": "hide"
++        },
++            
++        /**
++        * Constant representing the Module's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++        
++            "VISIBLE": { 
++                key: "visible", 
++                value: true, 
++                validator: YAHOO.lang.isBoolean 
++            },
++
++            "EFFECT": {
++                key: "effect",
++                suppressEvent: true,
++                supercedes: ["visible"]
++            },
++
++            "MONITOR_RESIZE": {
++                key: "monitorresize",
++                value: true
++            },
++
++            "APPEND_TO_DOCUMENT_BODY": {
++                key: "appendtodocumentbody",
++                value: false
++            }
++        };
++
++    /**
++    * Constant representing the prefix path to use for non-secure images
++    * @property YAHOO.widget.Module.IMG_ROOT
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT = null;
++    
++    /**
++    * Constant representing the prefix path to use for securely served images
++    * @property YAHOO.widget.Module.IMG_ROOT_SSL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT_SSL = null;
++    
++    /**
++    * Constant for the default CSS class name that represents a Module
++    * @property YAHOO.widget.Module.CSS_MODULE
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_MODULE = "yui-module";
++    
++    /**
++    * Constant representing the module header
++    * @property YAHOO.widget.Module.CSS_HEADER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_HEADER = "hd";
++
++    /**
++    * Constant representing the module body
++    * @property YAHOO.widget.Module.CSS_BODY
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_BODY = "bd";
++    
++    /**
++    * Constant representing the module footer
++    * @property YAHOO.widget.Module.CSS_FOOTER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_FOOTER = "ft";
++    
++    /**
++    * Constant representing the url for the "src" attribute of the iframe 
++    * used to monitor changes to the browser's base font size
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
++
++    /**
++    * Constant representing the buffer amount (in pixels) to use when positioning
++    * the text resize monitor offscreen. The resize monitor is positioned
++    * offscreen by an amount eqaul to its offsetHeight + the buffer value.
++    * 
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_BUFFER
++    * @static
++    * @type Number
++    */
++    // Set to 1, to work around pixel offset in IE8, which increases when zoom is used
++    Module.RESIZE_MONITOR_BUFFER = 1;
++
++    /**
++    * Singleton CustomEvent fired when the font size is changed in the browser.
++    * Opera's "zoom" functionality currently does not support text 
++    * size detection.
++    * @event YAHOO.widget.Module.textResizeEvent
++    */
++    Module.textResizeEvent = new CustomEvent("textResize");
++
++    /**
++     * Helper utility method, which forces a document level 
++     * redraw for Opera, which can help remove repaint
++     * irregularities after applying DOM changes.
++     *
++     * @method YAHOO.widget.Module.forceDocumentRedraw
++     * @static
++     */
++    Module.forceDocumentRedraw = function() {
++        var docEl = document.documentElement;
++        if (docEl) {
++            docEl.className += " ";
++            docEl.className = YAHOO.lang.trim(docEl.className);
++        }
++    };
++
++    function createModuleTemplate() {
++
++        if (!m_oModuleTemplate) {
++            m_oModuleTemplate = document.createElement("div");
++            
++            m_oModuleTemplate.innerHTML = ("<div class=\"" + 
++                Module.CSS_HEADER + "\"></div>" + "<div class=\"" + 
++                Module.CSS_BODY + "\"></div><div class=\"" + 
++                Module.CSS_FOOTER + "\"></div>");
++
++            m_oHeaderTemplate = m_oModuleTemplate.firstChild;
++            m_oBodyTemplate = m_oHeaderTemplate.nextSibling;
++            m_oFooterTemplate = m_oBodyTemplate.nextSibling;
++        }
++
++        return m_oModuleTemplate;
++    }
++
++    function createHeader() {
++        if (!m_oHeaderTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oHeaderTemplate.cloneNode(false));
++    }
++
++    function createBody() {
++        if (!m_oBodyTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oBodyTemplate.cloneNode(false));
++    }
++
++    function createFooter() {
++        if (!m_oFooterTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oFooterTemplate.cloneNode(false));
++    }
++
++    Module.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: Module,
++        
++        /**
++        * The main module element that contains the header, body, and footer
++        * @property element
++        * @type HTMLElement
++        */
++        element: null,
++
++        /**
++        * The header element, denoted with CSS class "hd"
++        * @property header
++        * @type HTMLElement
++        */
++        header: null,
++
++        /**
++        * The body element, denoted with CSS class "bd"
++        * @property body
++        * @type HTMLElement
++        */
++        body: null,
++
++        /**
++        * The footer element, denoted with CSS class "ft"
++        * @property footer
++        * @type HTMLElement
++        */
++        footer: null,
++
++        /**
++        * The id of the element
++        * @property id
++        * @type String
++        */
++        id: null,
++
++        /**
++        * A string representing the root path for all images created by
++        * a Module instance.
++        * @deprecated It is recommend that any images for a Module be applied
++        * via CSS using the "background-image" property.
++        * @property imageRoot
++        * @type String
++        */
++        imageRoot: Module.IMG_ROOT,
++
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired prior to class initalization.
++            * @event beforeInitEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */
++            this.beforeInitEvent = this.createEvent(EVENT_TYPES.BEFORE_INIT);
++            this.beforeInitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after class initalization.
++            * @event initEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */  
++            this.initEvent = this.createEvent(EVENT_TYPES.INIT);
++            this.initEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is appended to the DOM
++            * @event appendEvent
++            */
++            this.appendEvent = this.createEvent(EVENT_TYPES.APPEND);
++            this.appendEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is rendered
++            * @event beforeRenderEvent
++            */
++            this.beforeRenderEvent = this.createEvent(EVENT_TYPES.BEFORE_RENDER);
++            this.beforeRenderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired after the Module is rendered
++            * @event renderEvent
++            */
++            this.renderEvent = this.createEvent(EVENT_TYPES.RENDER);
++            this.renderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the header content of the Module 
++            * is modified
++            * @event changeHeaderEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new header content
++            */
++            this.changeHeaderEvent = this.createEvent(EVENT_TYPES.CHANGE_HEADER);
++            this.changeHeaderEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the body content of the Module is modified
++            * @event changeBodyEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new body content
++            */  
++            this.changeBodyEvent = this.createEvent(EVENT_TYPES.CHANGE_BODY);
++            this.changeBodyEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the footer content of the Module 
++            * is modified
++            * @event changeFooterEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new footer content
++            */
++            this.changeFooterEvent = this.createEvent(EVENT_TYPES.CHANGE_FOOTER);
++            this.changeFooterEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the content of the Module is modified
++            * @event changeContentEvent
++            */
++            this.changeContentEvent = this.createEvent(EVENT_TYPES.CHANGE_CONTENT);
++            this.changeContentEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is destroyed
++            * @event destroyEvent
++            */
++            this.destroyEvent = this.createEvent(EVENT_TYPES.DESTROY);
++            this.destroyEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is shown
++            * @event beforeShowEvent
++            */
++            this.beforeShowEvent = this.createEvent(EVENT_TYPES.BEFORE_SHOW);
++            this.beforeShowEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is shown
++            * @event showEvent
++            */
++            this.showEvent = this.createEvent(EVENT_TYPES.SHOW);
++            this.showEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is hidden
++            * @event beforeHideEvent
++            */
++            this.beforeHideEvent = this.createEvent(EVENT_TYPES.BEFORE_HIDE);
++            this.beforeHideEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is hidden
++            * @event hideEvent
++            */
++            this.hideEvent = this.createEvent(EVENT_TYPES.HIDE);
++            this.hideEvent.signature = SIGNATURE;
++        }, 
++
++        /**
++        * String representing the current user-agent platform
++        * @property platform
++        * @type String
++        */
++        platform: function () {
++            var ua = navigator.userAgent.toLowerCase();
++
++            if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
++                return "windows";
++            } else if (ua.indexOf("macintosh") != -1) {
++                return "mac";
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * String representing the user-agent of the browser
++        * @deprecated Use YAHOO.env.ua
++        * @property browser
++        * @type String
++        */
++        browser: function () {
++            var ua = navigator.userAgent.toLowerCase();
++            /*
++                 Check Opera first in case of spoof and check Safari before
++                 Gecko since Safari's user agent string includes "like Gecko"
++            */
++            if (ua.indexOf('opera') != -1) { 
++                return 'opera';
++            } else if (ua.indexOf('msie 7') != -1) {
++                return 'ie7';
++            } else if (ua.indexOf('msie') != -1) {
++                return 'ie';
++            } else if (ua.indexOf('safari') != -1) { 
++                return 'safari';
++            } else if (ua.indexOf('gecko') != -1) {
++                return 'gecko';
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Boolean representing whether or not the current browsing context is 
++        * secure (https)
++        * @property isSecure
++        * @type Boolean
++        */
++        isSecure: function () {
++            if (window.location.href.toLowerCase().indexOf("https") === 0) {
++                return true;
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        */
++        initDefaultConfig: function () {
++            // Add properties //
++            /**
++            * Specifies whether the Module is visible on the page.
++            * @config visible
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.VISIBLE.key, {
++                handler: this.configVisible, 
++                value: DEFAULT_CONFIG.VISIBLE.value, 
++                validator: DEFAULT_CONFIG.VISIBLE.validator
++            });
++
++            /**
++            * <p>
++            * Object or array of objects representing the ContainerEffect 
++            * classes that are active for animating the container.
++            * </p>
++            * <p>
++            * <strong>NOTE:</strong> Although this configuration 
++            * property is introduced at the Module level, an out of the box
++            * implementation is not shipped for the Module class so setting
++            * the proroperty on the Module class has no effect. The Overlay 
++            * class is the first class to provide out of the box ContainerEffect 
++            * support.
++            * </p>
++            * @config effect
++            * @type Object
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.EFFECT.key, {
++                suppressEvent: DEFAULT_CONFIG.EFFECT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.EFFECT.supercedes
++            });
++
++            /**
++            * Specifies whether to create a special proxy iframe to monitor 
++            * for user font resizing in the document
++            * @config monitorresize
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.MONITOR_RESIZE.key, {
++                handler: this.configMonitorResize,
++                value: DEFAULT_CONFIG.MONITOR_RESIZE.value
++            });
++
++            /**
++            * Specifies if the module should be rendered as the first child 
++            * of document.body or appended as the last child when render is called
++            * with document.body as the "appendToNode".
++            * <p>
++            * Appending to the body while the DOM is still being constructed can 
++            * lead to Operation Aborted errors in IE hence this flag is set to 
++            * false by default.
++            * </p>
++            * 
++            * @config appendtodocumentbody
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.key, {
++                value: DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.value
++            });
++        },
++
++        /**
++        * The Module class's initialization method, which is executed for
++        * Module and all of its subclasses. 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.
++        * <p>
++        * If the element passed in does not have an id, one will be generated
++        * for it.
++        * </p>
++        * @method init
++        * @param {String} el The element ID representing the Module <em>OR</em>
++        * @param {HTMLElement} el The element representing the Module
++        * @param {Object} userConfig The configuration Object literal 
++        * containing the configuration that should be set for this module. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            var elId, child;
++
++            this.initEvents();
++            this.beforeInitEvent.fire(Module);
++
++            /**
++            * The Module's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type YAHOO.util.Config
++            */
++            this.cfg = new Config(this);
++
++            if (this.isSecure) {
++                this.imageRoot = Module.IMG_ROOT_SSL;
++            }
++
++            if (typeof el == "string") {
++                elId = el;
++                el = document.getElementById(el);
++                if (! el) {
++                    el = (createModuleTemplate()).cloneNode(false);
++                    el.id = elId;
++                }
++            }
++
++            this.id = Dom.generateId(el);
++            this.element = el;
++
++            child = this.element.firstChild;
++
++            if (child) {
++                var fndHd = false, fndBd = false, fndFt = false;
++                do {
++                    // We're looking for elements
++                    if (1 == child.nodeType) {
++                        if (!fndHd && Dom.hasClass(child, Module.CSS_HEADER)) {
++                            this.header = child;
++                            fndHd = true;
++                        } else if (!fndBd && Dom.hasClass(child, Module.CSS_BODY)) {
++                            this.body = child;
++                            fndBd = true;
++                        } else if (!fndFt && Dom.hasClass(child, Module.CSS_FOOTER)){
++                            this.footer = child;
++                            fndFt = true;
++                        }
++                    }
++                } while ((child = child.nextSibling));
++            }
++
++            this.initDefaultConfig();
++
++            Dom.addClass(this.element, Module.CSS_MODULE);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            /*
++                Subscribe to the fireQueue() method of Config so that any 
++                queued configuration changes are excecuted upon render of 
++                the Module
++            */ 
++
++            if (!Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) {
++                this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true);
++            }
++
++            this.initEvent.fire(Module);
++        },
++
++        /**
++        * Initialize an empty IFRAME that is placed out of the visible area 
++        * that can be used to detect text resize.
++        * @method initResizeMonitor
++        */
++        initResizeMonitor: function () {
++
++            var isGeckoWin = (UA.gecko && this.platform == "windows");
++            if (isGeckoWin) {
++                // Help prevent spinning loading icon which 
++                // started with FireFox 2.0.0.8/Win
++                var self = this;
++                setTimeout(function(){self._initResizeMonitor();}, 0);
++            } else {
++                this._initResizeMonitor();
++            }
++        },
++
++        /**
++         * Create and initialize the text resize monitoring iframe.
++         * 
++         * @protected
++         * @method _initResizeMonitor
++         */
++        _initResizeMonitor : function() {
++
++            var oDoc, 
++                oIFrame, 
++                sHTML;
++
++            function fireTextResize() {
++                Module.textResizeEvent.fire();
++            }
++
++            if (!UA.opera) {
++                oIFrame = Dom.get("_yuiResizeMonitor");
++
++                var supportsCWResize = this._supportsCWResize();
++
++                if (!oIFrame) {
++                    oIFrame = document.createElement("iframe");
++
++                    if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && UA.ie) {
++                        oIFrame.src = Module.RESIZE_MONITOR_SECURE_URL;
++                    }
++
++                    if (!supportsCWResize) {
++                        // Can't monitor on contentWindow, so fire from inside iframe
++                        sHTML = ["<html><head><script ",
++                                 "type=\"text/javascript\">",
++                                 "window.onresize=function(){window.parent.",
++                                 "YAHOO.widget.Module.textResizeEvent.",
++                                 "fire();};<",
++                                 "\/script></head>",
++                                 "<body></body></html>"].join('');
++
++                        oIFrame.src = "data:text/html;charset=utf-8," + encodeURIComponent(sHTML);
++                    }
++
++                    oIFrame.id = "_yuiResizeMonitor";
++                    oIFrame.title = "Text Resize Monitor";
++                    /*
++                        Need to set "position" property before inserting the 
++                        iframe into the document or Safari's status bar will 
++                        forever indicate the iframe is loading 
++                        (See YUILibrary bug #1723064)
++                    */
++                    oIFrame.style.position = "absolute";
++                    oIFrame.style.visibility = "hidden";
++
++                    var db = document.body,
++                        fc = db.firstChild;
++                    if (fc) {
++                        db.insertBefore(oIFrame, fc);
++                    } else {
++                        db.appendChild(oIFrame);
++                    }
++
++                    // Setting the background color fixes an issue with IE6/IE7, where
++                    // elements in the DOM, with -ve margin-top which positioned them 
++                    // offscreen (so they would be overlapped by the iframe and its -ve top
++                    // setting), would have their -ve margin-top ignored, when the iframe 
++                    // was added.
++                    oIFrame.style.backgroundColor = "transparent";
++
++                    oIFrame.style.borderWidth = "0";
++                    oIFrame.style.width = "2em";
++                    oIFrame.style.height = "2em";
++                    oIFrame.style.left = "0";
++                    oIFrame.style.top = (-1 * (oIFrame.offsetHeight + Module.RESIZE_MONITOR_BUFFER)) + "px";
++                    oIFrame.style.visibility = "visible";
++
++                    /*
++                       Don't open/close the document for Gecko like we used to, since it
++                       leads to duplicate cookies. (See YUILibrary bug #1721755)
++                    */
++                    if (UA.webkit) {
++                        oDoc = oIFrame.contentWindow.document;
++                        oDoc.open();
++                        oDoc.close();
++                    }
++                }
++
++                if (oIFrame && oIFrame.contentWindow) {
++                    Module.textResizeEvent.subscribe(this.onDomResize, this, true);
++
++                    if (!Module.textResizeInitialized) {
++                        if (supportsCWResize) {
++                            if (!Event.on(oIFrame.contentWindow, "resize", fireTextResize)) {
++                                /*
++                                     This will fail in IE if document.domain has 
++                                     changed, so we must change the listener to 
++                                     use the oIFrame element instead
++                                */
++                                Event.on(oIFrame, "resize", fireTextResize);
++                            }
++                        }
++                        Module.textResizeInitialized = true;
++                    }
++                    this.resizeMonitor = oIFrame;
++                }
++            }
++        },
++
++        /**
++         * Text resize monitor helper method.
++         * Determines if the browser supports resize events on iframe content windows.
++         * 
++         * @private
++         * @method _supportsCWResize
++         */
++        _supportsCWResize : function() {
++            /*
++                Gecko 1.8.0 (FF1.5), 1.8.1.0-5 (FF2) won't fire resize on contentWindow.
++                Gecko 1.8.1.6+ (FF2.0.0.6+) and all other browsers will fire resize on contentWindow.
++
++                We don't want to start sniffing for patch versions, so fire textResize the same
++                way on all FF2 flavors
++             */
++            var bSupported = true;
++            if (UA.gecko && UA.gecko <= 1.8) {
++                bSupported = false;
++            }
++            return bSupported;
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The DOM resize event
++        * @param {Object} obj The scope object passed to the handler
++        */
++        onDomResize: function (e, obj) {
++
++            var nTop = -1 * (this.resizeMonitor.offsetHeight + Module.RESIZE_MONITOR_BUFFER);
++
++            this.resizeMonitor.style.top = nTop + "px";
++            this.resizeMonitor.style.left = "0";
++        },
++
++        /**
++        * Sets the Module's header content to the string specified, or appends 
++        * the passed element to the header. If no header is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the header.
++        * 
++        * @method setHeader
++        * @param {String} headerContent The string used to set the header.
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the header innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} headerContent The HTMLElement to append to 
++        * <em>OR</em>
++        * @param {DocumentFragment} headerContent The document fragment 
++        * containing elements which are to be added to the header
++        */
++        setHeader: function (headerContent) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            if (headerContent.nodeName) {
++                oHeader.innerHTML = "";
++                oHeader.appendChild(headerContent);
++            } else {
++                oHeader.innerHTML = headerContent;
++            }
++
++            if (this._rendered) {
++                this._renderHeader();
++            }
++
++            this.changeHeaderEvent.fire(headerContent);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Appends the passed element to the header. If no header is present, 
++        * one will be automatically created.
++        * @method appendToHeader
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the header. In the case of a document fragment, the
++        * children of the fragment will be appended to the header.
++        */
++        appendToHeader: function (element) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            oHeader.appendChild(element);
++
++            this.changeHeaderEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Sets the Module's body content to the HTML specified. 
++        * 
++        * If no body is present, one will be automatically created. 
++        * 
++        * An empty string can be passed to the method to clear the contents of the body.
++        * @method setBody
++        * @param {String} bodyContent The HTML used to set the body. 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the body innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} bodyContent The HTMLElement to add as the first and only
++        * child of the body element.
++        * <em>OR</em>
++        * @param {DocumentFragment} bodyContent The document fragment 
++        * containing elements which are to be added to the body
++        */
++        setBody: function (bodyContent) {
++            var oBody = this.body || (this.body = createBody());
++
++            if (bodyContent.nodeName) {
++                oBody.innerHTML = "";
++                oBody.appendChild(bodyContent);
++            } else {
++                oBody.innerHTML = bodyContent;
++            }
++
++            if (this._rendered) {
++                this._renderBody();
++            }
++
++            this.changeBodyEvent.fire(bodyContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the body. If no body is present, one 
++        * will be automatically created.
++        * @method appendToBody
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the body. In the case of a document fragment, the
++        * children of the fragment will be appended to the body.
++        * 
++        */
++        appendToBody: function (element) {
++            var oBody = this.body || (this.body = createBody());
++        
++            oBody.appendChild(element);
++
++            this.changeBodyEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++        
++        /**
++        * Sets the Module's footer content to the HTML specified, or appends 
++        * the passed element to the footer. If no footer is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the footer.
++        * @method setFooter
++        * @param {String} footerContent The HTML used to set the footer 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the footer innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} footerContent The HTMLElement to append to 
++        * the footer
++        * <em>OR</em>
++        * @param {DocumentFragment} footerContent The document fragment containing 
++        * elements which are to be added to the footer
++        */
++        setFooter: function (footerContent) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            if (footerContent.nodeName) {
++                oFooter.innerHTML = "";
++                oFooter.appendChild(footerContent);
++            } else {
++                oFooter.innerHTML = footerContent;
++            }
++
++            if (this._rendered) {
++                this._renderFooter();
++            }
++
++            this.changeFooterEvent.fire(footerContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the footer. If no footer is present, 
++        * one will be automatically created.
++        * @method appendToFooter
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the footer. In the case of a document fragment, the
++        * children of the fragment will be appended to the footer
++        */
++        appendToFooter: function (element) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            oFooter.appendChild(element);
++
++            this.changeFooterEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Renders the Module by inserting the elements that are not already 
++        * in the main Module into their correct places. Optionally appends 
++        * the Module to the specified node prior to the render's execution. 
++        * <p>
++        * For Modules without existing markup, the appendToNode argument 
++        * is REQUIRED. If this argument is ommitted and the current element is 
++        * not present in the document, the function will return false, 
++        * indicating that the render was a failure.
++        * </p>
++        * <p>
++        * NOTE: As of 2.3.1, if the appendToNode is the document's body element
++        * then the module is rendered as the first child of the body element, 
++        * and not appended to it, to avoid Operation Aborted errors in IE when 
++        * rendering the module before window's load event is fired. You can 
++        * use the appendtodocumentbody configuration property to change this 
++        * to append to document.body if required.
++        * </p>
++        * @method render
++        * @param {String} appendToNode The element id to which the Module 
++        * should be appended to prior to rendering <em>OR</em>
++        * @param {HTMLElement} appendToNode The element to which the Module 
++        * should be appended to prior to rendering
++        * @param {HTMLElement} moduleElement OPTIONAL. The element that 
++        * represents the actual Standard Module container.
++        * @return {Boolean} Success or failure of the render
++        */
++        render: function (appendToNode, moduleElement) {
++
++            var me = this;
++
++            function appendTo(parentNode) {
++                if (typeof parentNode == "string") {
++                    parentNode = document.getElementById(parentNode);
++                }
++
++                if (parentNode) {
++                    me._addToParent(parentNode, me.element);
++                    me.appendEvent.fire();
++                }
++            }
++
++            this.beforeRenderEvent.fire();
++
++            if (! moduleElement) {
++                moduleElement = this.element;
++            }
++
++            if (appendToNode) {
++                appendTo(appendToNode);
++            } else { 
++                // No node was passed in. If the element is not already in the Dom, this fails
++                if (! Dom.inDocument(this.element)) {
++                    return false;
++                }
++            }
++
++            this._renderHeader(moduleElement);
++            this._renderBody(moduleElement);
++            this._renderFooter(moduleElement);
++
++            this._rendered = true;
++
++            this.renderEvent.fire();
++            return true;
++        },
++
++        /**
++         * Renders the currently set header into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderHeader
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderHeader: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            // Need to get everything into the DOM if it isn't already
++            if (this.header && !Dom.inDocument(this.header)) {
++                // There is a header, but it's not in the DOM yet. Need to add it.
++                var firstChild = moduleElement.firstChild;
++                if (firstChild) {
++                    moduleElement.insertBefore(this.header, firstChild);
++                } else {
++                    moduleElement.appendChild(this.header);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set body into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderBody
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element.
++         */
++        _renderBody: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.body && !Dom.inDocument(this.body)) {
++                // There is a body, but it's not in the DOM yet. Need to add it.
++                if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
++                    moduleElement.insertBefore(this.body, this.footer);
++                } else {
++                    moduleElement.appendChild(this.body);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set footer into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderFooter
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderFooter: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.footer && !Dom.inDocument(this.footer)) {
++                // There is a footer, but it's not in the DOM yet. Need to add it.
++                moduleElement.appendChild(this.footer);
++            }
++        },
++
++        /**
++        * Removes the Module element from the DOM and sets all child elements 
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var parent;
++
++            if (this.element) {
++                Event.purgeElement(this.element, true);
++                parent = this.element.parentNode;
++            }
++
++            if (parent) {
++                parent.removeChild(this.element);
++            }
++        
++            this.element = null;
++            this.header = null;
++            this.body = null;
++            this.footer = null;
++
++            Module.textResizeEvent.unsubscribe(this.onDomResize, this);
++
++            this.cfg.destroy();
++            this.cfg = null;
++
++            this.destroyEvent.fire();
++        },
++
++        /**
++        * Shows the Module element by setting the visible configuration 
++        * property to true. Also fires two events: beforeShowEvent prior to 
++        * the visibility change, and showEvent after.
++        * @method show
++        */
++        show: function () {
++            this.cfg.setProperty("visible", true);
++        },
++
++        /**
++        * Hides the Module element by setting the visible configuration 
++        * property to false. Also fires two events: beforeHideEvent prior to 
++        * the visibility change, and hideEvent after.
++        * @method hide
++        */
++        hide: function () {
++            this.cfg.setProperty("visible", false);
++        },
++        
++        // BUILT-IN EVENT HANDLERS FOR MODULE //
++        /**
++        * Default event handler for changing the visibility property of a 
++        * Module. By default, this is achieved by switching the "display" style 
++        * between "block" and "none".
++        * This method is responsible for firing showEvent and hideEvent.
++        * @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.
++        * @method configVisible
++        */
++        configVisible: function (type, args, obj) {
++            var visible = args[0];
++            if (visible) {
++                this.beforeShowEvent.fire();
++                Dom.setStyle(this.element, "display", "block");
++                this.showEvent.fire();
++            } else {
++                this.beforeHideEvent.fire();
++                Dom.setStyle(this.element, "display", "none");
++                this.hideEvent.fire();
++            }
++        },
++
++        /**
++        * Default event handler for the "monitorresize" configuration property
++        * @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.
++        * @method configMonitorResize
++        */
++        configMonitorResize: function (type, args, obj) {
++            var monitor = args[0];
++            if (monitor) {
++                this.initResizeMonitor();
++            } else {
++                Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
++                this.resizeMonitor = null;
++            }
++        },
++
++        /**
++         * This method is a protected helper, used when constructing the DOM structure for the module 
++         * to account for situations which may cause Operation Aborted errors in IE. It should not 
++         * be used for general DOM construction.
++         * <p>
++         * If the parentNode is not document.body, the element is appended as the last element.
++         * </p>
++         * <p>
++         * If the parentNode is document.body the element is added as the first child to help
++         * prevent Operation Aborted errors in IE.
++         * </p>
++         *
++         * @param {parentNode} The HTML element to which the element will be added
++         * @param {element} The HTML element to be added to parentNode's children
++         * @method _addToParent
++         * @protected
++         */
++        _addToParent: function(parentNode, element) {
++            if (!this.cfg.getProperty("appendtodocumentbody") && parentNode === document.body && parentNode.firstChild) {
++                parentNode.insertBefore(element, parentNode.firstChild);
++            } else {
++                parentNode.appendChild(element);
++            }
++        },
++
++        /**
++        * Returns a String representation of the Object.
++        * @method toString
++        * @return {String} The string representation of the Module
++        */
++        toString: function () {
++            return "Module " + this.id;
++        }
++    };
++
++    YAHOO.lang.augmentProto(Module, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * Overlay is a Module that is absolutely positioned above the page flow. It 
++    * has convenience methods for positioning and sizing, as well as options for 
++    * controlling zIndex and constraining the Overlay's position to the current 
++    * visible viewport. Overlay also contains a dynamicly generated IFRAME which 
++    * is placed beneath it for Internet Explorer 6 and 5.x so that it will be 
++    * properly rendered above SELECT elements.
++    * @namespace YAHOO.widget
++    * @class Overlay
++    * @extends YAHOO.widget.Module
++    * @param {String} el The element ID representing the Overlay <em>OR</em>
++    * @param {HTMLElement} el The element representing the Overlay
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Overlay. See configuration 
++    * documentation for more details.
++    * @constructor
++    */
++    YAHOO.widget.Overlay = function (el, userConfig) {
++        YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        UA = YAHOO.env.ua,
++        Overlay = YAHOO.widget.Overlay,
++
++        _SUBSCRIBE = "subscribe",
++        _UNSUBSCRIBE = "unsubscribe",
++        _CONTAINED = "contained",
++
++        m_oIFrameTemplate,
++
++        /**
++        * Constant representing the name of the Overlay's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_MOVE": "beforeMove",
++            "MOVE": "move"
++        },
++
++        /**
++        * Constant representing the Overlay's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "X": { 
++                key: "x", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "Y": { 
++                key: "y", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "XY": { 
++                key: "xy", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "CONTEXT": { 
++                key: "context", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "FIXED_CENTER": { 
++                key: "fixedcenter", 
++                value: false, 
++                supercedes: ["iframe", "visible"] 
++            },
++
++            "WIDTH": { 
++                key: "width",
++                suppressEvent: true,
++                supercedes: ["context", "fixedcenter", "iframe"]
++            }, 
++
++            "HEIGHT": { 
++                key: "height", 
++                suppressEvent: true, 
++                supercedes: ["context", "fixedcenter", "iframe"] 
++            },
++
++            "AUTO_FILL_HEIGHT" : {
++                key: "autofillheight",
++                supercedes: ["height"],
++                value:"body"
++            },
++
++            "ZINDEX": { 
++                key: "zindex", 
++                value: null 
++            },
++
++            "CONSTRAIN_TO_VIEWPORT": { 
++                key: "constraintoviewport", 
++                value: false, 
++                validator: Lang.isBoolean, 
++                supercedes: ["iframe", "x", "y", "xy"]
++            }, 
++
++            "IFRAME": { 
++                key: "iframe", 
++                value: (UA.ie == 6 ? true : false), 
++                validator: Lang.isBoolean, 
++                supercedes: ["zindex"] 
++            },
++
++            "PREVENT_CONTEXT_OVERLAP": {
++                key: "preventcontextoverlap",
++                value: false,
++                validator: Lang.isBoolean,  
++                supercedes: ["constraintoviewport"]
++            }
++
++        };
++
++    /**
++    * The URL that will be placed in the iframe
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.IFRAME_SRC = "javascript:false;";
++
++    /**
++    * Number representing how much the iframe shim should be offset from each 
++    * side of an Overlay instance, in pixels.
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @default 3
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.IFRAME_OFFSET = 3;
++
++    /**
++    * Number representing the minimum distance an Overlay instance should be 
++    * positioned relative to the boundaries of the browser's viewport, in pixels.
++    * @property YAHOO.widget.Overlay.VIEWPORT_OFFSET
++    * @default 10
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.VIEWPORT_OFFSET = 10;
++
++    /**
++    * Constant representing the top left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_LEFT = "tl";
++
++    /**
++    * Constant representing the top right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_RIGHT = "tr";
++
++    /**
++    * Constant representing the top bottom left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_LEFT = "bl";
++
++    /**
++    * Constant representing the bottom right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_RIGHT = "br";
++
++    Overlay.PREVENT_OVERLAP_X = {
++        "tltr": true,
++        "blbr": true,
++        "brbl": true,
++        "trtl": true
++    };
++            
++    Overlay.PREVENT_OVERLAP_Y = {
++        "trbr": true,
++        "tlbl": true,
++        "bltl": true,
++        "brtr": true
++    };
++
++    /**
++    * Constant representing the default CSS class used for an Overlay
++    * @property YAHOO.widget.Overlay.CSS_OVERLAY
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_OVERLAY = "yui-overlay";
++
++    /**
++    * Constant representing the default hidden CSS class used for an Overlay. This class is 
++    * applied to the overlay's outer DIV whenever it's hidden.
++    *
++    * @property YAHOO.widget.Overlay.CSS_HIDDEN
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_HIDDEN = "yui-overlay-hidden";
++
++    /**
++    * Constant representing the default CSS class used for an Overlay iframe shim.
++    * 
++    * @property YAHOO.widget.Overlay.CSS_IFRAME
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_IFRAME = "yui-overlay-iframe";
++
++    /**
++     * Constant representing the names of the standard module elements
++     * used in the overlay.
++     * @property YAHOO.widget.Overlay.STD_MOD_RE
++     * @static
++     * @final
++     * @type RegExp
++     */
++    Overlay.STD_MOD_RE = /^\s*?(body|footer|header)\s*?$/i;
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for 
++    * window scroll
++    * @event YAHOO.widget.Overlay.windowScrollEvent
++    */
++    Overlay.windowScrollEvent = new CustomEvent("windowScroll");
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for
++    * window resize
++    * @event YAHOO.widget.Overlay.windowResizeEvent
++    */
++    Overlay.windowResizeEvent = new CustomEvent("windowResize");
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window scroll
++    * @method YAHOO.widget.Overlay.windowScrollHandler
++    * @static
++    * @param {DOMEvent} e The DOM scroll event
++    */
++    Overlay.windowScrollHandler = function (e) {
++        var t = Event.getTarget(e);
++
++        // - Webkit (Safari 2/3) and Opera 9.2x bubble scroll events from elements to window
++        // - FF2/3 and IE6/7, Opera 9.5x don't bubble scroll events from elements to window
++        // - IE doesn't recognize scroll registered on the document.
++        //
++        // Also, when document view is scrolled, IE doesn't provide a target, 
++        // rest of the browsers set target to window.document, apart from opera 
++        // which sets target to window.
++        if (!t || t === window || t === window.document) {
++            if (UA.ie) {
++
++                if (! window.scrollEnd) {
++                    window.scrollEnd = -1;
++                }
++
++                clearTimeout(window.scrollEnd);
++        
++                window.scrollEnd = setTimeout(function () { 
++                    Overlay.windowScrollEvent.fire(); 
++                }, 1);
++        
++            } else {
++                Overlay.windowScrollEvent.fire();
++            }
++        }
++    };
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window resize
++    * @method YAHOO.widget.Overlay.windowResizeHandler
++    * @static
++    * @param {DOMEvent} e The DOM resize event
++    */
++    Overlay.windowResizeHandler = function (e) {
++
++        if (UA.ie) {
++            if (! window.resizeEnd) {
++                window.resizeEnd = -1;
++            }
++
++            clearTimeout(window.resizeEnd);
++
++            window.resizeEnd = setTimeout(function () {
++                Overlay.windowResizeEvent.fire(); 
++            }, 100);
++        } else {
++            Overlay.windowResizeEvent.fire();
++        }
++    };
++
++    /**
++    * A boolean that indicated whether the window resize and scroll events have 
++    * already been subscribed to.
++    * @property YAHOO.widget.Overlay._initialized
++    * @private
++    * @type Boolean
++    */
++    Overlay._initialized = null;
++
++    if (Overlay._initialized === null) {
++        Event.on(window, "scroll", Overlay.windowScrollHandler);
++        Event.on(window, "resize", Overlay.windowResizeHandler);
++        Overlay._initialized = true;
++    }
++
++    /**
++     * Internal map of special event types, which are provided
++     * by the instance. It maps the event type to the custom event 
++     * instance. Contains entries for the "windowScroll", "windowResize" and
++     * "textResize" static container events.
++     *
++     * @property YAHOO.widget.Overlay._TRIGGER_MAP
++     * @type Object
++     * @static
++     * @private
++     */
++    Overlay._TRIGGER_MAP = {
++        "windowScroll" : Overlay.windowScrollEvent,
++        "windowResize" : Overlay.windowResizeEvent,
++        "textResize"   : Module.textResizeEvent
++    };
++
++    YAHOO.extend(Overlay, Module, {
++
++        /**
++         * <p>
++         * Array of default event types which will trigger
++         * context alignment for the Overlay class.
++         * </p>
++         * <p>The array is empty by default for Overlay,
++         * but maybe populated in future releases, so classes extending
++         * Overlay which need to define their own set of CONTEXT_TRIGGERS
++         * should concatenate their super class's prototype.CONTEXT_TRIGGERS 
++         * value with their own array of values.
++         * </p>
++         * <p>
++         * E.g.:
++         * <code>CustomOverlay.prototype.CONTEXT_TRIGGERS = YAHOO.widget.Overlay.prototype.CONTEXT_TRIGGERS.concat(["windowScroll"]);</code>
++         * </p>
++         * 
++         * @property CONTEXT_TRIGGERS
++         * @type Array
++         * @final
++         */
++        CONTEXT_TRIGGERS : [],
++
++        /**
++        * The Overlay initialization method, which is executed for Overlay and  
++        * all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the Overlay <em>OR</em>
++        * @param {HTMLElement} el The element representing the Overlay
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Overlay. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                 Note that we don't pass the user config in here yet because we
++                 only want it executed once, at the lowest subclass level
++            */
++
++            Overlay.superclass.init.call(this, el/*, userConfig*/);
++
++            this.beforeInitEvent.fire(Overlay);
++
++            Dom.addClass(this.element, Overlay.CSS_OVERLAY);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            if (this.platform == "mac" && UA.gecko) {
++
++                if (! Config.alreadySubscribed(this.showEvent,
++                    this.showMacGeckoScrollbars, this)) {
++
++                    this.showEvent.subscribe(this.showMacGeckoScrollbars, 
++                        this, true);
++
++                }
++
++                if (! Config.alreadySubscribed(this.hideEvent, 
++                    this.hideMacGeckoScrollbars, this)) {
++
++                    this.hideEvent.subscribe(this.hideMacGeckoScrollbars, 
++                        this, true);
++
++                }
++            }
++
++            this.initEvent.fire(Overlay);
++        },
++        
++        /**
++        * Initializes the custom events for Overlay which are fired  
++        * automatically at appropriate times by the Overlay class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            Overlay.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired before the Overlay is moved.
++            * @event beforeMoveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.beforeMoveEvent = this.createEvent(EVENT_TYPES.BEFORE_MOVE);
++            this.beforeMoveEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Overlay is moved.
++            * @event moveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.moveEvent = this.createEvent(EVENT_TYPES.MOVE);
++            this.moveEvent.signature = SIGNATURE;
++
++        },
++        
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the Overlay's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++    
++            Overlay.superclass.initDefaultConfig.call(this);
++
++            var cfg = this.cfg;
++
++            // Add overlay config properties //
++            
++            /**
++            * The absolute x-coordinate position of the Overlay
++            * @config x
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.X.key, { 
++    
++                handler: this.configX, 
++                validator: DEFAULT_CONFIG.X.validator, 
++                suppressEvent: DEFAULT_CONFIG.X.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.X.supercedes
++    
++            });
++
++            /**
++            * The absolute y-coordinate position of the Overlay
++            * @config y
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.Y.key, {
++
++                handler: this.configY, 
++                validator: DEFAULT_CONFIG.Y.validator, 
++                suppressEvent: DEFAULT_CONFIG.Y.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.Y.supercedes
++
++            });
++
++            /**
++            * An array with the absolute x and y positions of the Overlay
++            * @config xy
++            * @type Number[]
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.XY.key, {
++                handler: this.configXY, 
++                suppressEvent: DEFAULT_CONFIG.XY.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.XY.supercedes
++            });
++
++            /**
++            * <p>
++            * The array of context arguments for context-sensitive positioning. 
++            * </p>
++            *
++            * <p>
++            * The format of the array is: <code>[contextElementOrId, overlayCorner, contextCorner, arrayOfTriggerEvents (optional), xyOffset (optional)]</code>, the
++            * the 5 array elements described in detail below:
++            * </p>
++            *
++            * <dl>
++            * <dt>contextElementOrId &#60;String|HTMLElement&#62;</dt>
++            * <dd>A reference to the context element to which the overlay should be aligned (or it's id).</dd>
++            * <dt>overlayCorner &#60;String&#62;</dt>
++            * <dd>The corner of the overlay which is to be used for alignment. This corner will be aligned to the 
++            * corner of the context element defined by the "contextCorner" entry which follows. Supported string values are: 
++            * "tr" (top right), "tl" (top left), "br" (bottom right), or "bl" (bottom left).</dd>
++            * <dt>contextCorner &#60;String&#62;</dt>
++            * <dd>The corner of the context element which is to be used for alignment. Supported string values are the same ones listed for the "overlayCorner" entry above.</dd>
++            * <dt>arrayOfTriggerEvents (optional) &#60;Array[String|CustomEvent]&#62;</dt>
++            * <dd>
++            * <p>
++            * By default, context alignment is a one time operation, aligning the Overlay to the context element when context configuration property is set, or when the <a href="#method_align">align</a> 
++            * method is invoked. However, you can use the optional "arrayOfTriggerEvents" entry to define the list of events which should force the overlay to re-align itself with the context element. 
++            * This is useful in situations where the layout of the document may change, resulting in the context element's position being modified.
++            * </p>
++            * <p>
++            * The array can contain either event type strings for events the instance publishes (e.g. "beforeShow") or CustomEvent instances. Additionally the following
++            * 3 static container event types are also currently supported : <code>"windowResize", "windowScroll", "textResize"</code> (defined in <a href="#property__TRIGGER_MAP">_TRIGGER_MAP</a> private property).
++            * </p>
++            * </dd>
++            * <dt>xyOffset &#60;Number[]&#62;</dt>
++            * <dd>
++            * A 2 element Array specifying the X and Y pixel amounts by which the Overlay should be offset from the aligned corner. e.g. [5,0] offsets the Overlay 5 pixels to the left, <em>after</em> aligning the given context corners.
++            * NOTE: If using this property and no triggers need to be defined, the arrayOfTriggerEvents property should be set to null to maintain correct array positions for the arguments. 
++            * </dd>
++            * </dl>
++            *
++            * <p>
++            * For example, setting this property to <code>["img1", "tl", "bl"]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1".
++            * </p>
++            * <p>
++            * Setting this property to <code>["img1", "tl", "bl", null, [0,5]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1", and then offset it by 5 pixels on the Y axis (providing a 5 pixel gap between the bottom of the context element and top of the overlay).
++            * </p>
++            * <p>
++            * Adding the optional trigger values: <code>["img1", "tl", "bl", ["beforeShow", "windowResize"], [0,5]]</code>,
++            * will re-align the overlay position, whenever the "beforeShow" or "windowResize" events are fired.
++            * </p>
++            *
++            * @config context
++            * @type Array
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.CONTEXT.key, {
++                handler: this.configContext, 
++                suppressEvent: DEFAULT_CONFIG.CONTEXT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.CONTEXT.supercedes
++            });
++
++            /**
++            * Determines whether or not the Overlay should be anchored 
++            * to the center of the viewport.
++            * 
++            * <p>This property can be set to:</p>
++            * 
++            * <dl>
++            * <dt>true</dt>
++            * <dd>
++            * To enable fixed center positioning
++            * <p>
++            * When enabled, the overlay will 
++            * be positioned in the center of viewport when initially displayed, and 
++            * will remain in the center of the viewport whenever the window is 
++            * scrolled or resized.
++            * </p>
++            * <p>
++            * If the overlay is too big for the viewport, 
++            * it's top left corner will be aligned with the top left corner of the viewport.
++            * </p>
++            * </dd>
++            * <dt>false</dt>
++            * <dd>
++            * To disable fixed center positioning.
++            * <p>In this case the overlay can still be 
++            * centered as a one-off operation, by invoking the <code>center()</code> method,
++            * however it will not remain centered when the window is scrolled/resized.
++            * </dd>
++            * <dt>"contained"<dt>
++            * <dd>To enable fixed center positioning, as with the <code>true</code> option.
++            * <p>However, unlike setting the property to <code>true</code>, 
++            * when the property is set to <code>"contained"</code>, if the overlay is 
++            * too big for the viewport, it will not get automatically centered when the 
++            * user scrolls or resizes the window (until the window is large enough to contain the 
++            * overlay). This is useful in cases where the Overlay has both header and footer 
++            * UI controls which the user may need to access.
++            * </p>
++            * </dd>
++            * </dl>
++            *
++            * @config fixedcenter
++            * @type Boolean | String
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
++                handler: this.configFixedCenter,
++                value: DEFAULT_CONFIG.FIXED_CENTER.value, 
++                validator: DEFAULT_CONFIG.FIXED_CENTER.validator, 
++                supercedes: DEFAULT_CONFIG.FIXED_CENTER.supercedes
++            });
++    
++            /**
++            * CSS width of the Overlay.
++            * @config width
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.WIDTH.key, {
++                handler: this.configWidth, 
++                suppressEvent: DEFAULT_CONFIG.WIDTH.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.WIDTH.supercedes
++            });
++
++            /**
++            * CSS height of the Overlay.
++            * @config height
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.HEIGHT.key, {
++                handler: this.configHeight, 
++                suppressEvent: DEFAULT_CONFIG.HEIGHT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.HEIGHT.supercedes
++            });
++
++            /**
++            * Standard module element which should auto fill out the height of the Overlay if the height config property is set.
++            * Supported values are "header", "body", "footer".
++            *
++            * @config autofillheight
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.AUTO_FILL_HEIGHT.key, {
++                handler: this.configAutoFillHeight, 
++                value : DEFAULT_CONFIG.AUTO_FILL_HEIGHT.value,
++                validator : this._validateAutoFill,
++                supercedes: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.supercedes
++            });
++
++            /**
++            * CSS z-index of the Overlay.
++            * @config zIndex
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.ZINDEX.key, {
++                handler: this.configzIndex,
++                value: DEFAULT_CONFIG.ZINDEX.value
++            });
++
++            /**
++            * True if the Overlay should be prevented from being positioned 
++            * out of the viewport.
++            * @config constraintoviewport
++            * @type Boolean
++            * @default false
++            */
++            cfg.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 iframe
++            * @description Boolean indicating whether or not the Overlay 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 Overlay instance is intially
++            * made visible.
++            * @type Boolean
++            * @default true for IE6 and below, false for all other browsers.
++            */
++            cfg.addProperty(DEFAULT_CONFIG.IFRAME.key, {
++
++                handler: this.configIframe, 
++                value: DEFAULT_CONFIG.IFRAME.value, 
++                validator: DEFAULT_CONFIG.IFRAME.validator, 
++                supercedes: DEFAULT_CONFIG.IFRAME.supercedes
++
++            });
++
++            /**
++            * @config preventcontextoverlap
++            * @description Boolean indicating whether or not the Overlay should overlap its 
++            * context element (defined using the "context" configuration property) when the 
++            * "constraintoviewport" configuration property is set to "true".
++            * @type Boolean
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.key, {
++                value: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.value, 
++                validator: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.validator, 
++                supercedes: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.supercedes
++            });
++        },
++
++        /**
++        * Moves the Overlay to the specified position. This function is  
++        * identical to calling this.cfg.setProperty("xy", [x,y]);
++        * @method moveTo
++        * @param {Number} x The Overlay's new x position
++        * @param {Number} y The Overlay's new y position
++        */
++        moveTo: function (x, y) {
++            this.cfg.setProperty("xy", [x, y]);
++        },
++
++        /**
++        * Adds a CSS class ("hide-scrollbars") and removes a CSS class 
++        * ("show-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method hideMacGeckoScrollbars
++        */
++        hideMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "show-scrollbars", "hide-scrollbars");
++        },
++
++        /**
++        * Adds a CSS class ("show-scrollbars") and removes a CSS class 
++        * ("hide-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method showMacGeckoScrollbars
++        */
++        showMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "hide-scrollbars", "show-scrollbars");
++        },
++
++        /**
++         * Internal implementation to set the visibility of the overlay in the DOM.
++         *
++         * @method _setDomVisibility
++         * @param {boolean} visible Whether to show or hide the Overlay's outer element
++         * @protected
++         */
++        _setDomVisibility : function(show) {
++            Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
++            var hiddenClass = Overlay.CSS_HIDDEN;
++
++            if (show) {
++                Dom.removeClass(this.element, hiddenClass);
++            } else {
++                Dom.addClass(this.element, hiddenClass);
++            }
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * The default event handler fired when the "visible" property is 
++        * changed.  This method is responsible for firing showEvent
++        * and hideEvent.
++        * @method configVisible
++        * @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.
++        */
++        configVisible: function (type, args, obj) {
++
++            var visible = args[0],
++                currentVis = Dom.getStyle(this.element, "visibility"),
++                effect = this.cfg.getProperty("effect"),
++                effectInstances = [],
++                isMacGecko = (this.platform == "mac" && UA.gecko),
++                alreadySubscribed = Config.alreadySubscribed,
++                eff, ei, e, i, j, k, h,
++                nEffects,
++                nEffectInstances;
++
++            if (currentVis == "inherit") {
++                e = this.element.parentNode;
++
++                while (e.nodeType != 9 && e.nodeType != 11) {
++                    currentVis = Dom.getStyle(e, "visibility");
++
++                    if (currentVis != "inherit") {
++                        break;
++                    }
++
++                    e = e.parentNode;
++                }
++
++                if (currentVis == "inherit") {
++                    currentVis = "visible";
++                }
++            }
++
++            if (effect) {
++                if (effect instanceof Array) {
++                    nEffects = effect.length;
++
++                    for (i = 0; i < nEffects; i++) {
++                        eff = effect[i];
++                        effectInstances[effectInstances.length] = 
++                            eff.effect(this, eff.duration);
++
++                    }
++                } else {
++                    effectInstances[effectInstances.length] = 
++                        effect.effect(this, effect.duration);
++                }
++            }
++
++            if (visible) { // Show
++                if (isMacGecko) {
++                    this.showMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate in
++                    if (visible) { // Animate in if not showing
++                        if (currentVis != "visible" || currentVis === "") {
++                            this.beforeShowEvent.fire();
++                            nEffectInstances = effectInstances.length;
++
++                            for (j = 0; j < nEffectInstances; j++) {
++                                ei = effectInstances[j];
++                                if (j === 0 && !alreadySubscribed(
++                                        ei.animateInCompleteEvent, 
++                                        this.showEvent.fire, this.showEvent)) {
++
++                                    /*
++                                         Delegate showEvent until end 
++                                         of animateInComplete
++                                    */
++
++                                    ei.animateInCompleteEvent.subscribe(
++                                     this.showEvent.fire, this.showEvent, true);
++                                }
++                                ei.animateIn();
++                            }
++                        }
++                    }
++                } else { // Show
++                    if (currentVis != "visible" || currentVis === "") {
++                        this.beforeShowEvent.fire();
++
++                        this._setDomVisibility(true);
++
++                        this.cfg.refireEvent("iframe");
++                        this.showEvent.fire();
++                    } else {
++                        this._setDomVisibility(true);
++                    }
++                }
++            } else { // Hide
++
++                if (isMacGecko) {
++                    this.hideMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate out if showing
++                    if (currentVis == "visible") {
++                        this.beforeHideEvent.fire();
++
++                        nEffectInstances = effectInstances.length;
++                        for (k = 0; k < nEffectInstances; k++) {
++                            h = effectInstances[k];
++    
++                            if (k === 0 && !alreadySubscribed(
++                                h.animateOutCompleteEvent, this.hideEvent.fire, 
++                                this.hideEvent)) {
++    
++                                /*
++                                     Delegate hideEvent until end 
++                                     of animateOutComplete
++                                */
++    
++                                h.animateOutCompleteEvent.subscribe(
++                                    this.hideEvent.fire, this.hideEvent, true);
++    
++                            }
++                            h.animateOut();
++                        }
++
++                    } else if (currentVis === "") {
++                        this._setDomVisibility(false);
++                    }
++
++                } else { // Simple hide
++
++                    if (currentVis == "visible" || currentVis === "") {
++                        this.beforeHideEvent.fire();
++                        this._setDomVisibility(false);
++                        this.hideEvent.fire();
++                    } else {
++                        this._setDomVisibility(false);
++                    }
++                }
++            }
++        },
++
++        /**
++        * Fixed center event handler used for centering on scroll/resize, but only if 
++        * the overlay is visible and, if "fixedcenter" is set to "contained", only if 
++        * the overlay fits within the viewport.
++        *
++        * @method doCenterOnDOMEvent
++        */
++        doCenterOnDOMEvent: function () {
++            var cfg = this.cfg,
++                fc = cfg.getProperty("fixedcenter");
++
++            if (cfg.getProperty("visible")) {
++                if (fc && (fc !== _CONTAINED || this.fitsInViewport())) {
++                    this.center();
++                }
++            }
++        },
++
++        /**
++         * Determines if the Overlay (including the offset value defined by Overlay.VIEWPORT_OFFSET) 
++         * will fit entirely inside the viewport, in both dimensions - width and height.
++         * 
++         * @method fitsInViewport
++         * @return boolean true if the Overlay will fit, false if not
++         */
++        fitsInViewport : function() {
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                element = this.element,
++                elementWidth = element.offsetWidth,
++                elementHeight = element.offsetHeight,
++                viewportWidth = Dom.getViewportWidth(),
++                viewportHeight = Dom.getViewportHeight();
++
++            return ((elementWidth + nViewportOffset < viewportWidth) && (elementHeight + nViewportOffset < viewportHeight));
++        },
++
++        /**
++        * The default event handler fired when the "fixedcenter" property 
++        * is changed.
++        * @method configFixedCenter
++        * @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.
++        */
++        configFixedCenter: function (type, args, obj) {
++
++            var val = args[0],
++                alreadySubscribed = Config.alreadySubscribed,
++                windowResizeEvent = Overlay.windowResizeEvent,
++                windowScrollEvent = Overlay.windowScrollEvent;
++
++            if (val) {
++                this.center();
++
++                if (!alreadySubscribed(this.beforeShowEvent, this.center)) {
++                    this.beforeShowEvent.subscribe(this.center);
++                }
++
++                if (!alreadySubscribed(windowResizeEvent, this.doCenterOnDOMEvent, this)) {
++                    windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++                if (!alreadySubscribed(windowScrollEvent, this.doCenterOnDOMEvent, this)) {
++                    windowScrollEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++            } else {
++                this.beforeShowEvent.unsubscribe(this.center);
++
++                windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++                windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "height" property is changed.
++        * @method configHeight
++        * @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.
++        */
++        configHeight: function (type, args, obj) {
++
++            var height = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "height", height);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++         * The default event handler fired when the "autofillheight" property is changed.
++         * @method configAutoFillHeight
++         *
++         * @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.
++         */
++        configAutoFillHeight: function (type, args, obj) {
++            var fillEl = args[0],
++                cfg = this.cfg,
++                autoFillHeight = "autofillheight",
++                height = "height",
++                currEl = cfg.getProperty(autoFillHeight),
++                autoFill = this._autoFillOnHeightChange;
++
++            cfg.unsubscribeFromConfigEvent(height, autoFill);
++            Module.textResizeEvent.unsubscribe(autoFill);
++            this.changeContentEvent.unsubscribe(autoFill);
++
++            if (currEl && fillEl !== currEl && this[currEl]) {
++                Dom.setStyle(this[currEl], height, "");
++            }
++
++            if (fillEl) {
++                fillEl = Lang.trim(fillEl.toLowerCase());
++
++                cfg.subscribeToConfigEvent(height, autoFill, this[fillEl], this);
++                Module.textResizeEvent.subscribe(autoFill, this[fillEl], this);
++                this.changeContentEvent.subscribe(autoFill, this[fillEl], this);
++
++                cfg.setProperty(autoFillHeight, fillEl, true);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "width" property is changed.
++        * @method configWidth
++        * @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.
++        */
++        configWidth: function (type, args, obj) {
++
++            var width = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "width", width);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++        * The default event handler fired when the "zIndex" property is changed.
++        * @method configzIndex
++        * @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.
++        */
++        configzIndex: function (type, args, obj) {
++
++            var zIndex = args[0],
++                el = this.element;
++
++            if (! zIndex) {
++                zIndex = Dom.getStyle(el, "zIndex");
++                if (! zIndex || isNaN(zIndex)) {
++                    zIndex = 0;
++                }
++            }
++
++            if (this.iframe || this.cfg.getProperty("iframe") === true) {
++                if (zIndex <= 0) {
++                    zIndex = 1;
++                }
++            }
++
++            Dom.setStyle(el, "zIndex", zIndex);
++            this.cfg.setProperty("zIndex", zIndex, true);
++
++            if (this.iframe) {
++                this.stackIframe();
++            }
++        },
++
++        /**
++        * The default event handler fired when the "xy" property is changed.
++        * @method configXY
++        * @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.
++        */
++        configXY: function (type, args, obj) {
++
++            var pos = args[0],
++                x = pos[0],
++                y = pos[1];
++
++            this.cfg.setProperty("x", x);
++            this.cfg.setProperty("y", y);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "x" property is changed.
++        * @method configX
++        * @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.
++        */
++        configX: function (type, args, obj) {
++
++            var x = args[0],
++                y = this.cfg.getProperty("y");
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setX(this.element, x, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "y" property is changed.
++        * @method configY
++        * @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.
++        */
++        configY: function (type, args, obj) {
++
++            var x = this.cfg.getProperty("x"),
++                y = args[0];
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setY(this.element, y, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++        
++        /**
++        * Shows the iframe shim, if it has been enabled.
++        * @method showIframe
++        */
++        showIframe: function () {
++
++            var oIFrame = this.iframe,
++                oParentNode;
++
++            if (oIFrame) {
++                oParentNode = this.element.parentNode;
++
++                if (oParentNode != oIFrame.parentNode) {
++                    this._addToParent(oParentNode, oIFrame);
++                }
++                oIFrame.style.display = "block";
++            }
++        },
++
++        /**
++        * Hides the iframe shim, if it has been enabled.
++        * @method hideIframe
++        */
++        hideIframe: function () {
++            if (this.iframe) {
++                this.iframe.style.display = "none";
++            }
++        },
++
++        /**
++        * Syncronizes the size and position of iframe shim to that of its 
++        * corresponding Overlay instance.
++        * @method syncIframe
++        */
++        syncIframe: function () {
++
++            var oIFrame = this.iframe,
++                oElement = this.element,
++                nOffset = Overlay.IFRAME_OFFSET,
++                nDimensionOffset = (nOffset * 2),
++                aXY;
++
++            if (oIFrame) {
++                // Size <iframe>
++                oIFrame.style.width = (oElement.offsetWidth + nDimensionOffset + "px");
++                oIFrame.style.height = (oElement.offsetHeight + nDimensionOffset + "px");
++
++                // Position <iframe>
++                aXY = this.cfg.getProperty("xy");
++
++                if (!Lang.isArray(aXY) || (isNaN(aXY[0]) || isNaN(aXY[1]))) {
++                    this.syncPosition();
++                    aXY = this.cfg.getProperty("xy");
++                }
++                Dom.setXY(oIFrame, [(aXY[0] - nOffset), (aXY[1] - nOffset)]);
++            }
++        },
++
++        /**
++         * Sets the zindex of the iframe shim, if it exists, based on the zindex of
++         * the Overlay element. The zindex of the iframe is set to be one less 
++         * than the Overlay element's zindex.
++         * 
++         * <p>NOTE: This method will not bump up the zindex of the Overlay element
++         * to ensure that the iframe shim has a non-negative zindex.
++         * If you require the iframe zindex to be 0 or higher, the zindex of 
++         * the Overlay element should be set to a value greater than 0, before 
++         * this method is called.
++         * </p>
++         * @method stackIframe
++         */
++        stackIframe: function () {
++            if (this.iframe) {
++                var overlayZ = Dom.getStyle(this.element, "zIndex");
++                if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
++                    Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
++                }
++            }
++        },
++
++        /**
++        * The default event handler fired when the "iframe" property is changed.
++        * @method configIframe
++        * @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.
++        */
++        configIframe: function (type, args, obj) {
++
++            var bIFrame = args[0];
++
++            function createIFrame() {
++
++                var oIFrame = this.iframe,
++                    oElement = this.element,
++                    oParent;
++
++                if (!oIFrame) {
++                    if (!m_oIFrameTemplate) {
++                        m_oIFrameTemplate = document.createElement("iframe");
++
++                        if (this.isSecure) {
++                            m_oIFrameTemplate.src = Overlay.IFRAME_SRC;
++                        }
++
++                        /*
++                            Set the opacity of the <iframe> to 0 so that it 
++                            doesn't modify the opacity of any transparent 
++                            elements that may be on top of it (like a shadow).
++                        */
++                        if (UA.ie) {
++                            m_oIFrameTemplate.style.filter = "alpha(opacity=0)";
++                            /*
++                                 Need to set the "frameBorder" property to 0 
++                                 supress the default <iframe> border in IE.  
++                                 Setting the CSS "border" property alone 
++                                 doesn't supress it.
++                            */
++                            m_oIFrameTemplate.frameBorder = 0;
++                        }
++                        else {
++                            m_oIFrameTemplate.style.opacity = "0";
++                        }
++
++                        m_oIFrameTemplate.style.position = "absolute";
++                        m_oIFrameTemplate.style.border = "none";
++                        m_oIFrameTemplate.style.margin = "0";
++                        m_oIFrameTemplate.style.padding = "0";
++                        m_oIFrameTemplate.style.display = "none";
++                        m_oIFrameTemplate.tabIndex = -1;
++                        m_oIFrameTemplate.className = Overlay.CSS_IFRAME;
++                    }
++
++                    oIFrame = m_oIFrameTemplate.cloneNode(false);
++                    oIFrame.id = this.id + "_f";
++                    oParent = oElement.parentNode;
++
++                    var parentNode = oParent || document.body;
++
++                    this._addToParent(parentNode, oIFrame);
++                    this.iframe = oIFrame;
++                }
++
++                /*
++                     Show the <iframe> before positioning it since the "setXY" 
++                     method of DOM requires the element be in the document 
++                     and visible.
++                */
++                this.showIframe();
++
++                /*
++                     Syncronize the size and position of the <iframe> to that 
++                     of the Overlay.
++                */
++                this.syncIframe();
++                this.stackIframe();
++
++                // Add event listeners to update the <iframe> when necessary
++                if (!this._hasIframeEventListeners) {
++                    this.showEvent.subscribe(this.showIframe);
++                    this.hideEvent.subscribe(this.hideIframe);
++                    this.changeContentEvent.subscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = true;
++                }
++            }
++
++            function onBeforeShow() {
++                createIFrame.call(this);
++                this.beforeShowEvent.unsubscribe(onBeforeShow);
++                this._iframeDeferred = false;
++            }
++
++            if (bIFrame) { // <iframe> shim is enabled
++
++                if (this.cfg.getProperty("visible")) {
++                    createIFrame.call(this);
++                } else {
++                    if (!this._iframeDeferred) {
++                        this.beforeShowEvent.subscribe(onBeforeShow);
++                        this._iframeDeferred = true;
++                    }
++                }
++
++            } else {    // <iframe> shim is disabled
++                this.hideIframe();
++
++                if (this._hasIframeEventListeners) {
++                    this.showEvent.unsubscribe(this.showIframe);
++                    this.hideEvent.unsubscribe(this.hideIframe);
++                    this.changeContentEvent.unsubscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = false;
++                }
++            }
++        },
++
++        /**
++         * Set's the container's XY value from DOM if not already set.
++         * 
++         * Differs from syncPosition, in that the XY value is only sync'd with DOM if 
++         * not already set. The method also refire's the XY config property event, so any
++         * beforeMove, Move event listeners are invoked.
++         * 
++         * @method _primeXYFromDOM
++         * @protected
++         */
++        _primeXYFromDOM : function() {
++            if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
++                // Set CFG XY based on DOM XY
++                this.syncPosition();
++                // Account for XY being set silently in syncPosition (no moveTo fired/called)
++                this.cfg.refireEvent("xy");
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "constraintoviewport" 
++        * property is changed.
++        * @method configConstrainToViewport
++        * @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.
++        */
++        configConstrainToViewport: function (type, args, obj) {
++            var val = args[0];
++
++            if (val) {
++                if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
++                    this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
++                }
++                if (! Config.alreadySubscribed(this.beforeShowEvent, this._primeXYFromDOM)) {
++                    this.beforeShowEvent.subscribe(this._primeXYFromDOM);
++                }
++            } else {
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++                this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this);
++            }
++        },
++
++         /**
++        * The default event handler fired when the "context" property
++        * is changed.
++        *
++        * @method configContext
++        * @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.
++        */
++        configContext: function (type, args, obj) {
++
++            var contextArgs = args[0],
++                contextEl,
++                elementMagnetCorner,
++                contextMagnetCorner,
++                triggers,
++                offset,
++                defTriggers = this.CONTEXT_TRIGGERS;
++
++            if (contextArgs) {
++
++                contextEl = contextArgs[0];
++                elementMagnetCorner = contextArgs[1];
++                contextMagnetCorner = contextArgs[2];
++                triggers = contextArgs[3];
++                offset = contextArgs[4];
++
++                if (defTriggers && defTriggers.length > 0) {
++                    triggers = (triggers || []).concat(defTriggers);
++                }
++
++                if (contextEl) {
++                    if (typeof contextEl == "string") {
++                        this.cfg.setProperty("context", [
++                                document.getElementById(contextEl), 
++                                elementMagnetCorner,
++                                contextMagnetCorner,
++                                triggers,
++                                offset],
++                                true);
++                    }
++
++                    if (elementMagnetCorner && contextMagnetCorner) {
++                        this.align(elementMagnetCorner, contextMagnetCorner, offset);
++                    }
++
++                    if (this._contextTriggers) {
++                        // Unsubscribe Old Set
++                        this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++                    }
++
++                    if (triggers) {
++                        // Subscribe New Set
++                        this._processTriggers(triggers, _SUBSCRIBE, this._alignOnTrigger);
++                        this._contextTriggers = triggers;
++                    }
++                }
++            }
++        },
++
++        /**
++         * Custom Event handler for context alignment triggers. Invokes the align method
++         * 
++         * @method _alignOnTrigger
++         * @protected
++         * 
++         * @param {String} type The event type (not used by the default implementation)
++         * @param {Any[]} args The array of arguments for the trigger event (not used by the default implementation)
++         */
++        _alignOnTrigger: function(type, args) {
++            this.align();
++        },
++
++        /**
++         * Helper method to locate the custom event instance for the event name string
++         * passed in. As a convenience measure, any custom events passed in are returned.
++         *
++         * @method _findTriggerCE
++         * @private
++         *
++         * @param {String|CustomEvent} t Either a CustomEvent, or event type (e.g. "windowScroll") for which a 
++         * custom event instance needs to be looked up from the Overlay._TRIGGER_MAP.
++         */
++        _findTriggerCE : function(t) {
++            var tce = null;
++            if (t instanceof CustomEvent) {
++                tce = t;
++            } else if (Overlay._TRIGGER_MAP[t]) {
++                tce = Overlay._TRIGGER_MAP[t];
++            }
++            return tce;
++        },
++
++        /**
++         * Utility method that subscribes or unsubscribes the given 
++         * function from the list of trigger events provided.
++         *
++         * @method _processTriggers
++         * @protected 
++         *
++         * @param {Array[String|CustomEvent]} triggers An array of either CustomEvents, event type strings 
++         * (e.g. "beforeShow", "windowScroll") to/from which the provided function should be 
++         * subscribed/unsubscribed respectively.
++         *
++         * @param {String} mode Either "subscribe" or "unsubscribe", specifying whether or not
++         * we are subscribing or unsubscribing trigger listeners
++         * 
++         * @param {Function} fn The function to be subscribed/unsubscribed to/from the trigger event.
++         * Context is always set to the overlay instance, and no additional object argument 
++         * get passed to the subscribed function.
++         */
++        _processTriggers : function(triggers, mode, fn) {
++            var t, tce;
++
++            for (var i = 0, l = triggers.length; i < l; ++i) {
++                t = triggers[i];
++                tce = this._findTriggerCE(t);
++                if (tce) {
++                    tce[mode](fn, this, true);
++                } else {
++                    this[mode](t, fn);
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * Aligns the Overlay to its context element using the specified corner 
++        * points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, 
++        * and BOTTOM_RIGHT.
++        * @method align
++        * @param {String} elementAlign  The String representing the corner of 
++        * the Overlay that should be aligned to the context element
++        * @param {String} contextAlign  The corner of the context element 
++        * that the elementAlign corner should stick to.
++        * @param {Number[]} xyOffset Optional. A 2 element array specifying the x and y pixel offsets which should be applied
++        * after aligning the element and context corners. For example, passing in [5, -10] for this value, would offset the 
++        * Overlay by 5 pixels along the X axis (horizontally) and -10 pixels along the Y axis (vertically) after aligning the specified corners.
++        */
++        align: function (elementAlign, contextAlign, xyOffset) {
++
++            var contextArgs = this.cfg.getProperty("context"),
++                me = this,
++                context,
++                element,
++                contextRegion;
++
++            function doAlign(v, h) {
++
++                var alignX = null, alignY = null;
++
++                switch (elementAlign) {
++    
++                    case Overlay.TOP_LEFT:
++                        alignX = h;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.TOP_RIGHT:
++                        alignX = h - element.offsetWidth;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.BOTTOM_LEFT:
++                        alignX = h;
++                        alignY = v - element.offsetHeight;
++                        break;
++        
++                    case Overlay.BOTTOM_RIGHT:
++                        alignX = h - element.offsetWidth; 
++                        alignY = v - element.offsetHeight;
++                        break;
++                }
++
++                if (alignX !== null && alignY !== null) {
++                    if (xyOffset) {
++                        alignX += xyOffset[0];
++                        alignY += xyOffset[1];
++                    }
++                    me.moveTo(alignX, alignY);
++                }
++            }
++
++            if (contextArgs) {
++                context = contextArgs[0];
++                element = this.element;
++                me = this;
++
++                if (! elementAlign) {
++                    elementAlign = contextArgs[1];
++                }
++
++                if (! contextAlign) {
++                    contextAlign = contextArgs[2];
++                }
++
++                if (!xyOffset && contextArgs[4]) {
++                    xyOffset = contextArgs[4];
++                }
++
++                if (element && context) {
++                    contextRegion = Dom.getRegion(context);
++
++                    switch (contextAlign) {
++    
++                        case Overlay.TOP_LEFT:
++                            doAlign(contextRegion.top, contextRegion.left);
++                            break;
++        
++                        case Overlay.TOP_RIGHT:
++                            doAlign(contextRegion.top, contextRegion.right);
++                            break;
++        
++                        case Overlay.BOTTOM_LEFT:
++                            doAlign(contextRegion.bottom, contextRegion.left);
++                            break;
++        
++                        case Overlay.BOTTOM_RIGHT:
++                            doAlign(contextRegion.bottom, contextRegion.right);
++                            break;
++                    }
++                }
++            }
++        },
++
++        /**
++        * The default event handler executed when the moveEvent is fired, if the 
++        * "constraintoviewport" is set to true.
++        * @method enforceConstraints
++        * @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.
++        */
++        enforceConstraints: function (type, args, obj) {
++            var pos = args[0];
++
++            var cXY = this.getConstrainedXY(pos[0], pos[1]);
++            this.cfg.setProperty("x", cXY[0], true);
++            this.cfg.setProperty("y", cXY[1], true);
++            this.cfg.setProperty("xy", cXY, true);
++        },
++
++        /**
++         * Shared implementation method for getConstrainedX and getConstrainedY.
++         * 
++         * <p>
++         * Given a coordinate value, returns the calculated coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions, scroll values and preventoverlap 
++         * settings
++         * </p>
++         *
++         * @method _getConstrainedPos
++         * @protected
++         * @param {String} pos The coordinate which needs to be constrained, either "x" or "y"
++         * @param {Number} The coordinate value which needs to be constrained
++         * @return {Number} The constrained coordinate value
++         */
++        _getConstrainedPos: function(pos, val) {
++
++            var overlayEl = this.element,
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                x = (pos == "x"),
++
++                overlaySize      = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
++                viewportSize     = (x) ? Dom.getViewportWidth() : Dom.getViewportHeight(),
++                docScroll        = (x) ? Dom.getDocumentScrollLeft() : Dom.getDocumentScrollTop(),
++                overlapPositions = (x) ? Overlay.PREVENT_OVERLAP_X : Overlay.PREVENT_OVERLAP_Y,
++
++                context = this.cfg.getProperty("context"),
++
++                bOverlayFitsInViewport = (overlaySize + buffer < viewportSize),
++                bPreventContextOverlap = this.cfg.getProperty("preventcontextoverlap") && context && overlapPositions[(context[1] + context[2])],
++
++                minConstraint = docScroll + buffer,
++                maxConstraint = docScroll + viewportSize - overlaySize - buffer,
++
++                constrainedVal = val;
++
++            if (val < minConstraint || val > maxConstraint) {
++                if (bPreventContextOverlap) {
++                    constrainedVal = this._preventOverlap(pos, context[0], overlaySize, viewportSize, docScroll);
++                } else {
++                    if (bOverlayFitsInViewport) {
++                        if (val < minConstraint) {
++                            constrainedVal = minConstraint;
++                        } else if (val > maxConstraint) {
++                            constrainedVal = maxConstraint;
++                        }
++                    } else {
++                        constrainedVal = minConstraint;
++                    }
++                }
++            }
++
++            return constrainedVal;
++        },
++
++        /**
++         * Helper method, used to position the Overlap to prevent overlap with the 
++         * context element (used when preventcontextoverlap is enabled)
++         *
++         * @method _preventOverlap
++         * @protected
++         * @param {String} pos The coordinate to prevent overlap for, either "x" or "y".
++         * @param {HTMLElement} contextEl The context element
++         * @param {Number} overlaySize The related overlay dimension value (for "x", the width, for "y", the height)
++         * @param {Number} viewportSize The related viewport dimension value (for "x", the width, for "y", the height)
++         * @param {Object} docScroll  The related document scroll value (for "x", the scrollLeft, for "y", the scrollTop)
++         *
++         * @return {Number} The new coordinate value which was set to prevent overlap
++         */
++        _preventOverlap : function(pos, contextEl, overlaySize, viewportSize, docScroll) {
++            
++            var x = (pos == "x"),
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                overlay = this,
++
++                contextElPos   = ((x) ? Dom.getX(contextEl) : Dom.getY(contextEl)) - docScroll,
++                contextElSize  = (x) ? contextEl.offsetWidth : contextEl.offsetHeight,
++
++                minRegionSize = contextElPos - buffer,
++                maxRegionSize = (viewportSize - (contextElPos + contextElSize)) - buffer,
++
++                bFlipped = false,
++
++                flip = function () {
++                    var flippedVal;
++
++                    if ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) {
++                        flippedVal = (contextElPos - overlaySize);
++                    } else {
++                        flippedVal = (contextElPos + contextElSize);
++                    }
++
++                    overlay.cfg.setProperty(pos, (flippedVal + docScroll), true);
++
++                    return flippedVal;
++                },
++
++                setPosition = function () {
++
++                    var displayRegionSize = ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) ? maxRegionSize : minRegionSize,
++                        position;
++
++                    if (overlaySize > displayRegionSize) {
++                        if (bFlipped) {
++                            /*
++                                 All possible positions and values have been 
++                                 tried, but none were successful, so fall back 
++                                 to the original size and position.
++                            */
++                            flip();
++                        } else {
++                            flip();
++                            bFlipped = true;
++                            position = setPosition();
++                        }
++                    }
++
++                    return position;
++                };
++
++            setPosition();
++
++            return this.cfg.getProperty(pos);
++        },
++
++        /**
++         * Given x coordinate value, returns the calculated x coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @return {Number} The constrained x coordinate
++         */		
++        getConstrainedX: function (x) {
++            return this._getConstrainedPos("x", x);
++        },
++
++        /**
++         * Given y coordinate value, returns the calculated y coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Number} The constrained y coordinate
++         */		
++        getConstrainedY : function (y) {
++            return this._getConstrainedPos("y", y);
++        },
++
++        /**
++         * Given x, y coordinate values, returns the calculated coordinates required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Array} The constrained x and y coordinates at index 0 and 1 respectively;
++         */
++        getConstrainedXY: function(x, y) {
++            return [this.getConstrainedX(x), this.getConstrainedY(y)];
++        },
++
++        /**
++        * Centers the container in the viewport.
++        * @method center
++        */
++        center: function () {
++
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                elementWidth = this.element.offsetWidth,
++                elementHeight = this.element.offsetHeight,
++                viewPortWidth = Dom.getViewportWidth(),
++                viewPortHeight = Dom.getViewportHeight(),
++                x,
++                y;
++
++            if (elementWidth < viewPortWidth) {
++                x = (viewPortWidth / 2) - (elementWidth / 2) + Dom.getDocumentScrollLeft();
++            } else {
++                x = nViewportOffset + Dom.getDocumentScrollLeft();
++            }
++
++            if (elementHeight < viewPortHeight) {
++                y = (viewPortHeight / 2) - (elementHeight / 2) + Dom.getDocumentScrollTop();
++            } else {
++                y = nViewportOffset + Dom.getDocumentScrollTop();
++            }
++
++            this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
++            this.cfg.refireEvent("iframe");
++
++            if (UA.webkit) {
++                this.forceContainerRedraw();
++            }
++        },
++
++        /**
++        * Synchronizes the Panel's "xy", "x", and "y" properties with the 
++        * Panel's position in the DOM. This is primarily used to update  
++        * position information during drag & drop.
++        * @method syncPosition
++        */
++        syncPosition: function () {
++
++            var pos = Dom.getXY(this.element);
++
++            this.cfg.setProperty("x", pos[0], true);
++            this.cfg.setProperty("y", pos[1], true);
++            this.cfg.setProperty("xy", pos, true);
++
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The resize DOM event
++        * @param {Object} obj The scope object
++        */
++        onDomResize: function (e, obj) {
++
++            var me = this;
++
++            Overlay.superclass.onDomResize.call(this, e, obj);
++
++            setTimeout(function () {
++                me.syncPosition();
++                me.cfg.refireEvent("iframe");
++                me.cfg.refireEvent("context");
++            }, 0);
++        },
++
++        /**
++         * Determines the content box height of the given element (height of the element, without padding or borders) in pixels.
++         *
++         * @method _getComputedHeight
++         * @private
++         * @param {HTMLElement} el The element for which the content height needs to be determined
++         * @return {Number} The content box height of the given element, or null if it could not be determined.
++         */
++        _getComputedHeight : (function() {
++
++            if (document.defaultView && document.defaultView.getComputedStyle) {
++                return function(el) {
++                    var height = null;
++                    if (el.ownerDocument && el.ownerDocument.defaultView) {
++                        var computed = el.ownerDocument.defaultView.getComputedStyle(el, '');
++                        if (computed) {
++                            height = parseInt(computed.height, 10);
++                        }
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            } else {
++                return function(el) {
++                    var height = null;
++                    if (el.style.pixelHeight) {
++                        height = el.style.pixelHeight;
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            }
++        })(),
++
++        /**
++         * autofillheight validator. Verifies that the autofill value is either null 
++         * or one of the strings : "body", "header" or "footer".
++         *
++         * @method _validateAutoFillHeight
++         * @protected
++         * @param {String} val
++         * @return true, if valid, false otherwise
++         */
++        _validateAutoFillHeight : function(val) {
++            return (!val) || (Lang.isString(val) && Overlay.STD_MOD_RE.test(val));
++        },
++
++        /**
++         * The default custom event handler executed when the overlay's height is changed, 
++         * if the autofillheight property has been set.
++         *
++         * @method _autoFillOnHeightChange
++         * @protected
++         * @param {String} type The event type
++         * @param {Array} args The array of arguments passed to event subscribers
++         * @param {HTMLElement} el The header, body or footer element which is to be resized to fill
++         * out the containers height
++         */
++        _autoFillOnHeightChange : function(type, args, el) {
++            var height = this.cfg.getProperty("height");
++            if ((height && height !== "auto") || (height === 0)) {
++                this.fillHeight(el);
++            }
++        },
++
++        /**
++         * Returns the sub-pixel height of the el, using getBoundingClientRect, if available,
++         * otherwise returns the offsetHeight
++         * @method _getPreciseHeight
++         * @private
++         * @param {HTMLElement} el
++         * @return {Float} The sub-pixel height if supported by the browser, else the rounded height.
++         */
++        _getPreciseHeight : function(el) {
++            var height = el.offsetHeight;
++
++            if (el.getBoundingClientRect) {
++                var rect = el.getBoundingClientRect();
++                height = rect.bottom - rect.top;
++            }
++
++            return height;
++        },
++
++        /**
++         * <p>
++         * Sets the height on the provided header, body or footer element to 
++         * fill out the height of the container. It determines the height of the 
++         * containers content box, based on it's configured height value, and 
++         * sets the height of the autofillheight element to fill out any 
++         * space remaining after the other standard module element heights 
++         * have been accounted for.
++         * </p>
++         * <p><strong>NOTE:</strong> This method is not designed to work if an explicit 
++         * height has not been set on the container, since for an "auto" height container, 
++         * the heights of the header/body/footer will drive the height of the container.</p>
++         *
++         * @method fillHeight
++         * @param {HTMLElement} el The element which should be resized to fill out the height
++         * of the container element.
++         */
++        fillHeight : function(el) {
++            if (el) {
++                var container = this.innerElement || this.element,
++                    containerEls = [this.header, this.body, this.footer],
++                    containerEl,
++                    total = 0,
++                    filled = 0,
++                    remaining = 0,
++                    validEl = false;
++
++                for (var i = 0, l = containerEls.length; i < l; i++) {
++                    containerEl = containerEls[i];
++                    if (containerEl) {
++                        if (el !== containerEl) {
++                            filled += this._getPreciseHeight(containerEl);
++                        } else {
++                            validEl = true;
++                        }
++                    }
++                }
++
++                if (validEl) {
++
++                    if (UA.ie || UA.opera) {
++                        // Need to set height to 0, to allow height to be reduced
++                        Dom.setStyle(el, 'height', 0 + 'px');
++                    }
++
++                    total = this._getComputedHeight(container);
++
++                    // Fallback, if we can't get computed value for content height
++                    if (total === null) {
++                        Dom.addClass(container, "yui-override-padding");
++                        total = container.clientHeight; // Content, No Border, 0 Padding (set by yui-override-padding)
++                        Dom.removeClass(container, "yui-override-padding");
++                    }
++    
++                    remaining = Math.max(total - filled, 0);
++    
++                    Dom.setStyle(el, "height", remaining + "px");
++    
++                    // Re-adjust height if required, to account for el padding and border
++                    if (el.offsetHeight != remaining) {
++                        remaining = Math.max(remaining - (el.offsetHeight - remaining), 0);
++                    }
++                    Dom.setStyle(el, "height", remaining + "px");
++                }
++            }
++        },
++
++        /**
++        * Places the Overlay on top of all other instances of 
++        * YAHOO.widget.Overlay.
++        * @method bringToTop
++        */
++        bringToTop: function () {
++
++            var aOverlays = [],
++                oElement = this.element;
++
++            function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
++
++                var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
++                    sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
++
++                    nZIndex1 = (!sZIndex1 || isNaN(sZIndex1)) ? 0 : parseInt(sZIndex1, 10),
++                    nZIndex2 = (!sZIndex2 || isNaN(sZIndex2)) ? 0 : parseInt(sZIndex2, 10);
++
++                if (nZIndex1 > nZIndex2) {
++                    return -1;
++                } else if (nZIndex1 < nZIndex2) {
++                    return 1;
++                } else {
++                    return 0;
++                }
++            }
++
++            function isOverlayElement(p_oElement) {
++
++                var isOverlay = Dom.hasClass(p_oElement, Overlay.CSS_OVERLAY),
++                    Panel = YAHOO.widget.Panel;
++
++                if (isOverlay && !Dom.isAncestor(oElement, p_oElement)) {
++                    if (Panel && Dom.hasClass(p_oElement, Panel.CSS_PANEL)) {
++                        aOverlays[aOverlays.length] = p_oElement.parentNode;
++                    } else {
++                        aOverlays[aOverlays.length] = p_oElement;
++                    }
++                }
++            }
++
++            Dom.getElementsBy(isOverlayElement, "DIV", document.body);
++
++            aOverlays.sort(compareZIndexDesc);
++
++            var oTopOverlay = aOverlays[0],
++                nTopZIndex;
++
++            if (oTopOverlay) {
++                nTopZIndex = Dom.getStyle(oTopOverlay, "zIndex");
++
++                if (!isNaN(nTopZIndex)) {
++                    var bRequiresBump = false;
++
++                    if (oTopOverlay != oElement) {
++                        bRequiresBump = true;
++                    } else if (aOverlays.length > 1) {
++                        var nNextZIndex = Dom.getStyle(aOverlays[1], "zIndex");
++                        // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                        if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                            bRequiresBump = true;
++                        }
++                    }
++                    if (bRequiresBump) {
++                        this.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                    }
++                }
++            }
++        },
++
++        /**
++        * Removes the Overlay element from the DOM and sets all child 
++        * elements to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            if (this.iframe) {
++                this.iframe.parentNode.removeChild(this.iframe);
++            }
++
++            this.iframe = null;
++
++            Overlay.windowResizeEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++    
++            Overlay.windowScrollEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++
++            Module.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);
++
++            if (this._contextTriggers) {
++                // Unsubscribe context triggers - to cover context triggers which listen for global
++                // events such as windowResize and windowScroll. Easier just to unsubscribe all
++                this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++            }
++
++            Overlay.superclass.destroy.call(this);
++        },
++
++        /**
++         * Can be used to force the container to repaint/redraw it's contents.
++         * <p>
++         * By default applies and then removes a 1px bottom margin through the 
++         * application/removal of a "yui-force-redraw" class.
++         * </p>
++         * <p>
++         * It is currently used by Overlay to force a repaint for webkit 
++         * browsers, when centering.
++         * </p>
++         * @method forceContainerRedraw
++         */
++        forceContainerRedraw : function() {
++            var c = this;
++            Dom.addClass(c.element, "yui-force-redraw");
++            setTimeout(function() {
++                Dom.removeClass(c.element, "yui-force-redraw");
++            }, 0);
++        },
++
++        /**
++        * Returns a String representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Overlay.
++        */
++        toString: function () {
++            return "Overlay " + this.id;
++        }
++
++    });
++}());
++(function () {
++
++    /**
++    * OverlayManager is used for maintaining the focus status of 
++    * multiple Overlays.
++    * @namespace YAHOO.widget
++    * @namespace YAHOO.widget
++    * @class OverlayManager
++    * @constructor
++    * @param {Array} overlays Optional. A collection of Overlays to register 
++    * with the manager.
++    * @param {Object} userConfig  The object literal representing the user 
++    * configuration of the OverlayManager
++    */
++    YAHOO.widget.OverlayManager = function (userConfig) {
++        this.init(userConfig);
++    };
++
++    var Overlay = YAHOO.widget.Overlay,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        CustomEvent = YAHOO.util.CustomEvent,
++        OverlayManager = YAHOO.widget.OverlayManager;
++
++    /**
++    * The CSS class representing a focused Overlay
++    * @property OverlayManager.CSS_FOCUSED
++    * @static
++    * @final
++    * @type String
++    */
++    OverlayManager.CSS_FOCUSED = "focused";
++
++    OverlayManager.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: OverlayManager,
++
++        /**
++        * The array of Overlays that are currently registered
++        * @property overlays
++        * @type YAHOO.widget.Overlay[]
++        */
++        overlays: null,
++
++        /**
++        * Initializes the default configuration of the OverlayManager
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++            /**
++            * The collection of registered Overlays in use by 
++            * the OverlayManager
++            * @config overlays
++            * @type YAHOO.widget.Overlay[]
++            * @default null
++            */
++            this.cfg.addProperty("overlays", { suppressEvent: true } );
++
++            /**
++            * The default DOM event that should be used to focus an Overlay
++            * @config focusevent
++            * @type String
++            * @default "mousedown"
++            */
++            this.cfg.addProperty("focusevent", { value: "mousedown" } );
++        },
++
++        /**
++        * Initializes the OverlayManager
++        * @method init
++        * @param {Overlay[]} overlays Optional. A collection of Overlays to 
++        * register with the manager.
++        * @param {Object} userConfig  The object literal representing the user 
++        * configuration of the OverlayManager
++        */
++        init: function (userConfig) {
++
++            /**
++            * The OverlayManager's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type Config
++            */
++            this.cfg = new Config(this);
++
++            this.initDefaultConfig();
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++            this.cfg.fireQueue();
++
++            /**
++            * The currently activated Overlay
++            * @property activeOverlay
++            * @private
++            * @type YAHOO.widget.Overlay
++            */
++            var activeOverlay = null;
++
++            /**
++            * Returns the currently focused Overlay
++            * @method getActive
++            * @return {Overlay} The currently focused Overlay
++            */
++            this.getActive = function () {
++                return activeOverlay;
++            };
++
++            /**
++            * Focuses the specified Overlay
++            * @method focus
++            * @param {Overlay} overlay The Overlay to focus
++            * @param {String} overlay The id of the Overlay to focus
++            */
++            this.focus = function (overlay) {
++                var o = this.find(overlay);
++                if (o) {
++                    o.focus();
++                }
++            };
++
++            /**
++            * Removes the specified Overlay from the manager
++            * @method remove
++            * @param {Overlay} overlay The Overlay to remove
++            * @param {String} overlay The id of the Overlay to remove
++            */
++            this.remove = function (overlay) {
++
++                var o = this.find(overlay), 
++                        originalZ;
++
++                if (o) {
++                    if (activeOverlay == o) {
++                        activeOverlay = null;
++                    }
++
++                    var bDestroyed = (o.element === null && o.cfg === null) ? true : false;
++
++                    if (!bDestroyed) {
++                        // Set it's zindex so that it's sorted to the end.
++                        originalZ = Dom.getStyle(o.element, "zIndex");
++                        o.cfg.setProperty("zIndex", -1000, true);
++                    }
++
++                    this.overlays.sort(this.compareZIndexDesc);
++                    this.overlays = this.overlays.slice(0, (this.overlays.length - 1));
++
++                    o.hideEvent.unsubscribe(o.blur);
++                    o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
++                    o.focusEvent.unsubscribe(this._onOverlayFocusHandler, o);
++                    o.blurEvent.unsubscribe(this._onOverlayBlurHandler, o);
++
++                    if (!bDestroyed) {
++                        Event.removeListener(o.element, this.cfg.getProperty("focusevent"), this._onOverlayElementFocus);
++                        o.cfg.setProperty("zIndex", originalZ, true);
++                        o.cfg.setProperty("manager", null);
++                    }
++
++                    /* _managed Flag for custom or existing. Don't want to remove existing */
++                    if (o.focusEvent._managed) { o.focusEvent = null; }
++                    if (o.blurEvent._managed) { o.blurEvent = null; }
++
++                    if (o.focus._managed) { o.focus = null; }
++                    if (o.blur._managed) { o.blur = null; }
++                }
++            };
++
++            /**
++            * Removes focus from all registered Overlays in the manager
++            * @method blurAll
++            */
++            this.blurAll = function () {
++
++                var nOverlays = this.overlays.length,
++                    i;
++
++                if (nOverlays > 0) {
++                    i = nOverlays - 1;
++                    do {
++                        this.overlays[i].blur();
++                    }
++                    while(i--);
++                }
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay
++             * being blurred.
++             * 
++             * @method _manageBlur
++             * @param {Overlay} overlay The overlay instance which got blurred.
++             * @protected
++             */
++            this._manageBlur = function (overlay) {
++                var changed = false;
++                if (activeOverlay == overlay) {
++                    Dom.removeClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    activeOverlay = null;
++                    changed = true;
++                }
++                return changed;
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay 
++             * receiving focus.
++             *
++             * @method _manageFocus
++             * @param {Overlay} overlay The overlay instance which got focus.
++             * @protected
++             */
++            this._manageFocus = function(overlay) {
++                var changed = false;
++                if (activeOverlay != overlay) {
++                    if (activeOverlay) {
++                        activeOverlay.blur();
++                    }
++                    activeOverlay = overlay;
++                    this.bringToTop(activeOverlay);
++                    Dom.addClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    changed = true;
++                }
++                return changed;
++            };
++
++            var overlays = this.cfg.getProperty("overlays");
++
++            if (! this.overlays) {
++                this.overlays = [];
++            }
++
++            if (overlays) {
++                this.register(overlays);
++                this.overlays.sort(this.compareZIndexDesc);
++            }
++        },
++
++        /**
++        * @method _onOverlayElementFocus
++        * @description Event handler for the DOM event that is used to focus 
++        * the Overlay instance as specified by the "focusevent" 
++        * configuration property.
++        * @private
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (Event).
++        */
++        _onOverlayElementFocus: function (p_oEvent) {
++
++            var oTarget = Event.getTarget(p_oEvent),
++                oClose = this.close;
++
++            if (oClose && (oTarget == oClose || Dom.isAncestor(oClose, oTarget))) {
++                this.blur();
++            } else {
++                this.focus();
++            }
++        },
++
++        /**
++        * @method _onOverlayDestroy
++        * @description "destroy" event handler for the Overlay.
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayDestroy: function (p_sType, p_aArgs, p_oOverlay) {
++            this.remove(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayFocusHandler
++        *
++        * @description focusEvent Handler, used to delegate to _manageFocus with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayFocusHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageFocus(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayBlurHandler
++        * @description blurEvent Handler, used to delegate to _manageBlur with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayBlurHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageBlur(p_oOverlay);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance focusEvent, to allow the OverlayManager to
++         * monitor focus state.
++         * 
++         * If the instance already has a focusEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing focusEvent, however if a focusEvent or focus method does not exist
++         * on the instance, the _bindFocus method will add them, and the focus method will 
++         * update the OverlayManager's state directly.
++         * 
++         * @method _bindFocus
++         * @param {Overlay} overlay The overlay for which focus needs to be managed
++         * @protected
++         */
++        _bindFocus : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.focusEvent) {
++                overlay.focusEvent = overlay.createEvent("focus");
++                overlay.focusEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.focusEvent.subscribe(mgr._onOverlayFocusHandler, overlay, mgr);
++            }
++
++            if (!overlay.focus) {
++                Event.on(overlay.element, mgr.cfg.getProperty("focusevent"), mgr._onOverlayElementFocus, null, overlay);
++                overlay.focus = function () {
++                    if (mgr._manageFocus(this)) {
++                        // For Panel/Dialog
++                        if (this.cfg.getProperty("visible") && this.focusFirst) {
++                            this.focusFirst();
++                        }
++                        this.focusEvent.fire();
++                    }
++                };
++                overlay.focus._managed = true;
++            }
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's blurEvent to allow the OverlayManager to
++         * monitor blur state.
++         *
++         * If the instance already has a blurEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing blurEvent, however if a blurEvent or blur method does not exist
++         * on the instance, the _bindBlur method will add them, and the blur method 
++         * update the OverlayManager's state directly.
++         *
++         * @method _bindBlur
++         * @param {Overlay} overlay The overlay for which blur needs to be managed
++         * @protected
++         */
++        _bindBlur : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.blurEvent) {
++                overlay.blurEvent = overlay.createEvent("blur");
++                overlay.blurEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.blurEvent.subscribe(mgr._onOverlayBlurHandler, overlay, mgr);
++            }
++
++            if (!overlay.blur) {
++                overlay.blur = function () {
++                    if (mgr._manageBlur(this)) {
++                        this.blurEvent.fire();
++                    }
++                };
++                overlay.blur._managed = true;
++            }
++
++            overlay.hideEvent.subscribe(overlay.blur);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's destroyEvent, to allow the Overlay
++         * to be removed for the OverlayManager when destroyed.
++         * 
++         * @method _bindDestroy
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _bindDestroy : function(overlay) {
++            var mgr = this;
++            overlay.destroyEvent.subscribe(mgr._onOverlayDestroy, overlay, mgr);
++        },
++
++        /**
++         * Ensures the zIndex configuration property on the managed overlay based instance
++         * is set to the computed zIndex value from the DOM (with "auto" translating to 0).
++         *
++         * @method _syncZIndex
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _syncZIndex : function(overlay) {
++            var zIndex = Dom.getStyle(overlay.element, "zIndex");
++            if (!isNaN(zIndex)) {
++                overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10));
++            } else {
++                overlay.cfg.setProperty("zIndex", 0);
++            }
++        },
++
++        /**
++        * Registers an Overlay or an array of Overlays with the manager. Upon 
++        * registration, the Overlay receives functions for focus and blur, 
++        * along with CustomEvents for each.
++        *
++        * @method register
++        * @param {Overlay} overlay  An Overlay to register with the manager.
++        * @param {Overlay[]} overlay  An array of Overlays to register with 
++        * the manager.
++        * @return {boolean} true if any Overlays are registered.
++        */
++        register: function (overlay) {
++
++            var registered = false,
++                i,
++                n;
++
++            if (overlay instanceof Overlay) {
++
++                overlay.cfg.addProperty("manager", { value: this } );
++
++                this._bindFocus(overlay);
++                this._bindBlur(overlay);
++                this._bindDestroy(overlay);
++                this._syncZIndex(overlay);
++
++                this.overlays.push(overlay);
++                this.bringToTop(overlay);
++
++                registered = true;
++
++            } else if (overlay instanceof Array) {
++
++                for (i = 0, n = overlay.length; i < n; i++) {
++                    registered = this.register(overlay[i]) || registered;
++                }
++
++            }
++
++            return registered;
++        },
++
++        /**
++        * Places the specified Overlay instance on top of all other 
++        * Overlay instances.
++        * @method bringToTop
++        * @param {YAHOO.widget.Overlay} p_oOverlay Object representing an 
++        * Overlay instance.
++        * @param {String} p_oOverlay String representing the id of an 
++        * Overlay instance.
++        */        
++        bringToTop: function (p_oOverlay) {
++
++            var oOverlay = this.find(p_oOverlay),
++                nTopZIndex,
++                oTopOverlay,
++                aOverlays;
++
++            if (oOverlay) {
++
++                aOverlays = this.overlays;
++                aOverlays.sort(this.compareZIndexDesc);
++
++                oTopOverlay = aOverlays[0];
++
++                if (oTopOverlay) {
++                    nTopZIndex = Dom.getStyle(oTopOverlay.element, "zIndex");
++
++                    if (!isNaN(nTopZIndex)) {
++
++                        var bRequiresBump = false;
++
++                        if (oTopOverlay !== oOverlay) {
++                            bRequiresBump = true;
++                        } else if (aOverlays.length > 1) {
++                            var nNextZIndex = Dom.getStyle(aOverlays[1].element, "zIndex");
++                            // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                            if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                                bRequiresBump = true;
++                            }
++                        }
++
++                        if (bRequiresBump) {
++                            oOverlay.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                        }
++                    }
++                    aOverlays.sort(this.compareZIndexDesc);
++                }
++            }
++        },
++
++        /**
++        * Attempts to locate an Overlay by instance or ID.
++        * @method find
++        * @param {Overlay} overlay  An Overlay to locate within the manager
++        * @param {String} overlay  An Overlay id to locate within the manager
++        * @return {Overlay} The requested Overlay, if found, or null if it 
++        * cannot be located.
++        */
++        find: function (overlay) {
++
++            var isInstance = overlay instanceof Overlay,
++                overlays = this.overlays,
++                n = overlays.length,
++                found = null,
++                o,
++                i;
++
++            if (isInstance || typeof overlay == "string") {
++                for (i = n-1; i >= 0; i--) {
++                    o = overlays[i];
++                    if ((isInstance && (o === overlay)) || (o.id == overlay)) {
++                        found = o;
++                        break;
++                    }
++                }
++            }
++
++            return found;
++        },
++
++        /**
++        * Used for sorting the manager's Overlays by z-index.
++        * @method compareZIndexDesc
++        * @private
++        * @return {Number} 0, 1, or -1, depending on where the Overlay should 
++        * fall in the stacking order.
++        */
++        compareZIndexDesc: function (o1, o2) {
++
++            var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
++                zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
++
++            if (zIndex1 === null && zIndex2 === null) {
++                return 0;
++            } else if (zIndex1 === null){
++                return 1;
++            } else if (zIndex2 === null) {
++                return -1;
++            } else if (zIndex1 > zIndex2) {
++                return -1;
++            } else if (zIndex1 < zIndex2) {
++                return 1;
++            } else {
++                return 0;
++            }
++        },
++
++        /**
++        * Shows all Overlays in the manager.
++        * @method showAll
++        */
++        showAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].show();
++            }
++        },
++
++        /**
++        * Hides all Overlays in the manager.
++        * @method hideAll
++        */
++        hideAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].hide();
++            }
++        },
++
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the OverlayManager
++        */
++        toString: function () {
++            return "OverlayManager";
++        }
++    };
++}());
++(function () {
++
++    /**
++    * Tooltip is an implementation of Overlay that behaves like an OS tooltip, 
++    * displaying when the user mouses over a particular element, and 
++    * disappearing on mouse out.
++    * @namespace YAHOO.widget
++    * @class Tooltip
++    * @extends YAHOO.widget.Overlay
++    * @constructor
++    * @param {String} el The element ID representing the Tooltip <em>OR</em>
++    * @param {HTMLElement} el The element representing the Tooltip
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Overlay. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Tooltip = function (el, userConfig) {
++        YAHOO.widget.Tooltip.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Lang = YAHOO.lang,
++        Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Dom = YAHOO.util.Dom,
++        Tooltip = YAHOO.widget.Tooltip,
++        UA = YAHOO.env.ua,
++        bIEQuirks = (UA.ie && (UA.ie <= 6 || document.compatMode == "BackCompat")),
++
++        m_oShadowTemplate,
++
++        /**
++        * Constant representing the Tooltip's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "PREVENT_OVERLAP": { 
++                key: "preventoverlap", 
++                value: true, 
++                validator: Lang.isBoolean, 
++                supercedes: ["x", "y", "xy"] 
++            },
++
++            "SHOW_DELAY": { 
++                key: "showdelay", 
++                value: 200, 
++                validator: Lang.isNumber 
++            }, 
++
++            "AUTO_DISMISS_DELAY": { 
++                key: "autodismissdelay", 
++                value: 5000, 
++                validator: Lang.isNumber 
++            }, 
++
++            "HIDE_DELAY": { 
++                key: "hidedelay", 
++                value: 250, 
++                validator: Lang.isNumber 
++            }, 
++
++            "TEXT": { 
++                key: "text", 
++                suppressEvent: true 
++            }, 
++
++            "CONTAINER": { 
++                key: "container"
++            },
++
++            "DISABLED": {
++                key: "disabled",
++                value: false,
++                suppressEvent: true
++            },
++
++            "XY_OFFSET": {
++                key: "xyoffset",
++                value: [0, 25],
++                suppressEvent: true
++            }
++        },
++
++        /**
++        * Constant representing the name of the Tooltip's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "CONTEXT_MOUSE_OVER": "contextMouseOver",
++            "CONTEXT_MOUSE_OUT": "contextMouseOut",
++            "CONTEXT_TRIGGER": "contextTrigger"
++        };
++
++    /**
++    * Constant representing the Tooltip CSS class
++    * @property YAHOO.widget.Tooltip.CSS_TOOLTIP
++    * @static
++    * @final
++    * @type String
++    */
++    Tooltip.CSS_TOOLTIP = "yui-tt";
++
++    function restoreOriginalWidth(sOriginalWidth, sForcedWidth) {
++
++        var oConfig = this.cfg,
++            sCurrentWidth = oConfig.getProperty("width");
++
++        if (sCurrentWidth == sForcedWidth) {
++            oConfig.setProperty("width", sOriginalWidth);
++        }
++    }
++
++    /* 
++        changeContent event handler that sets a Tooltip instance's "width"
++        configuration property to the value of its root HTML 
++        elements's offsetWidth if a specific width has not been set.
++    */
++
++    function setWidthToOffsetWidth(p_sType, p_aArgs) {
++
++        if ("_originalWidth" in this) {
++            restoreOriginalWidth.call(this, this._originalWidth, this._forcedWidth);
++        }
++
++        var oBody = document.body,
++            oConfig = this.cfg,
++            sOriginalWidth = oConfig.getProperty("width"),
++            sNewWidth,
++            oClone;
++
++        if ((!sOriginalWidth || sOriginalWidth == "auto") && 
++            (oConfig.getProperty("container") != oBody || 
++            oConfig.getProperty("x") >= Dom.getViewportWidth() || 
++            oConfig.getProperty("y") >= Dom.getViewportHeight())) {
++
++            oClone = this.element.cloneNode(true);
++            oClone.style.visibility = "hidden";
++            oClone.style.top = "0px";
++            oClone.style.left = "0px";
++
++            oBody.appendChild(oClone);
++
++            sNewWidth = (oClone.offsetWidth + "px");
++
++            oBody.removeChild(oClone);
++            oClone = null;
++
++            oConfig.setProperty("width", sNewWidth);
++            oConfig.refireEvent("xy");
++
++            this._originalWidth = sOriginalWidth || "";
++            this._forcedWidth = sNewWidth;
++        }
++    }
++
++    // "onDOMReady" that renders the ToolTip
++
++    function onDOMReady(p_sType, p_aArgs, p_oObject) {
++        this.render(p_oObject);
++    }
++
++    //  "init" event handler that automatically renders the Tooltip
++
++    function onInit() {
++        Event.onDOMReady(onDOMReady, this.cfg.getProperty("container"), this);
++    }
++
++    YAHOO.extend(Tooltip, YAHOO.widget.Overlay, { 
++
++        /**
++        * The Tooltip initialization method. This method is automatically 
++        * called by the constructor. A Tooltip is automatically rendered by 
++        * the init method, and it also is set to be invisible by default, 
++        * and constrained to viewport by default as well.
++        * @method init
++        * @param {String} el The element ID representing the Tooltip <em>OR</em>
++        * @param {HTMLElement} el The element representing the Tooltip
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Tooltip. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++
++            Tooltip.superclass.init.call(this, el);
++
++            this.beforeInitEvent.fire(Tooltip);
++
++            Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            this.cfg.queueProperty("visible", false);
++            this.cfg.queueProperty("constraintoviewport", true);
++
++            this.setBody("");
++
++            this.subscribe("changeContent", setWidthToOffsetWidth);
++            this.subscribe("init", onInit);
++            this.subscribe("render", this.onRender);
++
++            this.initEvent.fire(Tooltip);
++        },
++
++        /**
++        * Initializes the custom events for Tooltip
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            Tooltip.superclass.initEvents.call(this);
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired when user mouses over a context element. Returning false from
++            * a subscriber to this event will prevent the tooltip from being displayed for
++            * the current context element.
++            * 
++            * @event contextMouseOverEvent
++            * @param {HTMLElement} context The context element which the user just moused over
++            * @param {DOMEvent} e The DOM event object, associated with the mouse over
++            */
++            this.contextMouseOverEvent = this.createEvent(EVENT_TYPES.CONTEXT_MOUSE_OVER);
++            this.contextMouseOverEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the user mouses out of a context element.
++            * 
++            * @event contextMouseOutEvent
++            * @param {HTMLElement} context The context element which the user just moused out of
++            * @param {DOMEvent} e The DOM event object, associated with the mouse out
++            */
++            this.contextMouseOutEvent = this.createEvent(EVENT_TYPES.CONTEXT_MOUSE_OUT);
++            this.contextMouseOutEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired just before the tooltip is displayed for the current context.
++            * <p>
++            *  You can subscribe to this event if you need to set up the text for the 
++            *  tooltip based on the context element for which it is about to be displayed.
++            * </p>
++            * <p>This event differs from the beforeShow event in following respects:</p>
++            * <ol>
++            *   <li>
++            *    When moving from one context element to another, if the tooltip is not
++            *    hidden (the <code>hidedelay</code> is not reached), the beforeShow and Show events will not
++            *    be fired when the tooltip is displayed for the new context since it is already visible.
++            *    However the contextTrigger event is always fired before displaying the tooltip for
++            *    a new context.
++            *   </li>
++            *   <li>
++            *    The trigger event provides access to the context element, allowing you to 
++            *    set the text of the tooltip based on context element for which the tooltip is
++            *    triggered.
++            *   </li>
++            * </ol>
++            * <p>
++            *  It is not possible to prevent the tooltip from being displayed
++            *  using this event. You can use the contextMouseOverEvent if you need to prevent
++            *  the tooltip from being displayed.
++            * </p>
++            * @event contextTriggerEvent
++            * @param {HTMLElement} context The context element for which the tooltip is triggered
++            */
++            this.contextTriggerEvent = this.createEvent(EVENT_TYPES.CONTEXT_TRIGGER);
++            this.contextTriggerEvent.signature = SIGNATURE;
++        },
++
++        /**
++        * Initializes the class's configurable properties which can be 
++        * changed using the Overlay's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++
++            Tooltip.superclass.initDefaultConfig.call(this);
++
++            /**
++            * Specifies whether the Tooltip should be kept from overlapping 
++            * its context element.
++            * @config preventoverlap
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.PREVENT_OVERLAP.key, {
++                value: DEFAULT_CONFIG.PREVENT_OVERLAP.value, 
++                validator: DEFAULT_CONFIG.PREVENT_OVERLAP.validator, 
++                supercedes: DEFAULT_CONFIG.PREVENT_OVERLAP.supercedes
++            });
++
++            /**
++            * The number of milliseconds to wait before showing a Tooltip 
++            * on mouseover.
++            * @config showdelay
++            * @type Number
++            * @default 200
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.SHOW_DELAY.key, {
++                handler: this.configShowDelay,
++                value: 200, 
++                validator: DEFAULT_CONFIG.SHOW_DELAY.validator
++            });
++
++            /**
++            * The number of milliseconds to wait before automatically 
++            * dismissing a Tooltip after the mouse has been resting on the 
++            * context element.
++            * @config autodismissdelay
++            * @type Number
++            * @default 5000
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.AUTO_DISMISS_DELAY.key, {
++                handler: this.configAutoDismissDelay,
++                value: DEFAULT_CONFIG.AUTO_DISMISS_DELAY.value,
++                validator: DEFAULT_CONFIG.AUTO_DISMISS_DELAY.validator
++            });
++
++            /**
++            * The number of milliseconds to wait before hiding a Tooltip 
++            * after mouseout.
++            * @config hidedelay
++            * @type Number
++            * @default 250
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.HIDE_DELAY.key, {
++                handler: this.configHideDelay,
++                value: DEFAULT_CONFIG.HIDE_DELAY.value, 
++                validator: DEFAULT_CONFIG.HIDE_DELAY.validator
++            });
++
++            /**
++            * Specifies the Tooltip's text. 
++            * @config text
++            * @type String
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.TEXT.key, {
++                handler: this.configText,
++                suppressEvent: DEFAULT_CONFIG.TEXT.suppressEvent
++            });
++
++            /**
++            * Specifies the container element that the Tooltip's markup 
++            * should be rendered into.
++            * @config container
++            * @type HTMLElement/String
++            * @default document.body
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.CONTAINER.key, {
++                handler: this.configContainer,
++                value: document.body
++            });
++
++            /**
++            * Specifies whether or not the tooltip is disabled. Disabled tooltips
++            * will not be displayed. If the tooltip is driven by the title attribute
++            * of the context element, the title attribute will still be removed for 
++            * disabled tooltips, to prevent default tooltip behavior.
++            * 
++            * @config disabled
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.DISABLED.key, {
++                handler: this.configContainer,
++                value: DEFAULT_CONFIG.DISABLED.value,
++                supressEvent: DEFAULT_CONFIG.DISABLED.suppressEvent
++            });
++
++            /**
++            * Specifies the XY offset from the mouse position, where the tooltip should be displayed, specified
++            * as a 2 element array (e.g. [10, 20]); 
++            *
++            * @config xyoffset
++            * @type Array
++            * @default [0, 25]
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.XY_OFFSET.key, {
++                value: DEFAULT_CONFIG.XY_OFFSET.value.concat(),
++                supressEvent: DEFAULT_CONFIG.XY_OFFSET.suppressEvent 
++            });
++
++            /**
++            * Specifies the element or elements that the Tooltip should be 
++            * anchored to on mouseover.
++            * @config context
++            * @type HTMLElement[]/String[]
++            * @default null
++            */ 
++
++            /**
++            * String representing the width of the Tooltip.  <em>Please note:
++            * </em> As of version 2.3 if either no value or a value of "auto" 
++            * is specified, and the Toolip's "container" configuration property
++            * is set to something other than <code>document.body</code> or 
++            * its "context" element resides outside the immediately visible 
++            * portion of the document, the width of the Tooltip will be 
++            * calculated based on the offsetWidth of its root HTML and set just 
++            * before it is made visible.  The original value will be 
++            * restored when the Tooltip is hidden. This ensures the Tooltip is 
++            * rendered at a usable width.  For more information see 
++            * YUILibrary bug #1685496 and YUILibrary 
++            * bug #1735423.
++            * @config width
++            * @type String
++            * @default null
++            */
++        
++        },
++        
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * The default event handler fired when the "text" property is changed.
++        * @method configText
++        * @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.
++        */
++        configText: function (type, args, obj) {
++            var text = args[0];
++            if (text) {
++                this.setBody(text);
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "container" property 
++        * is changed.
++        * @method configContainer
++        * @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.
++        */
++        configContainer: function (type, args, obj) {
++            var container = args[0];
++
++            if (typeof container == 'string') {
++                this.cfg.setProperty("container", document.getElementById(container), true);
++            }
++        },
++        
++        /**
++        * @method _removeEventListeners
++        * @description Removes all of the DOM event handlers from the HTML
++        *  element(s) that trigger the display of the tooltip.
++        * @protected
++        */
++        _removeEventListeners: function () {
++        
++            var aElements = this._context,
++                nElements,
++                oElement,
++                i;
++
++            if (aElements) {
++                nElements = aElements.length;
++                if (nElements > 0) {
++                    i = nElements - 1;
++                    do {
++                        oElement = aElements[i];
++                        Event.removeListener(oElement, "mouseover", this.onContextMouseOver);
++                        Event.removeListener(oElement, "mousemove", this.onContextMouseMove);
++                        Event.removeListener(oElement, "mouseout", this.onContextMouseOut);
++                    }
++                    while (i--);
++                }
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "context" property 
++        * is changed.
++        * @method configContext
++        * @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.
++        */
++        configContext: function (type, args, obj) {
++
++            var context = args[0],
++                aElements,
++                nElements,
++                oElement,
++                i;
++
++            if (context) {
++
++                // Normalize parameter into an array
++                if (! (context instanceof Array)) {
++                    if (typeof context == "string") {
++                        this.cfg.setProperty("context", [document.getElementById(context)], true);
++                    } else { // Assuming this is an element
++                        this.cfg.setProperty("context", [context], true);
++                    }
++                    context = this.cfg.getProperty("context");
++                }
++
++                // Remove any existing mouseover/mouseout listeners
++                this._removeEventListeners();
++
++                // Add mouseover/mouseout listeners to context elements
++                this._context = context;
++
++                aElements = this._context;
++
++                if (aElements) {
++                    nElements = aElements.length;
++                    if (nElements > 0) {
++                        i = nElements - 1;
++                        do {
++                            oElement = aElements[i];
++                            Event.on(oElement, "mouseover", this.onContextMouseOver, this);
++                            Event.on(oElement, "mousemove", this.onContextMouseMove, this);
++                            Event.on(oElement, "mouseout", this.onContextMouseOut, this);
++                        }
++                        while (i--);
++                    }
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++
++        // BEGIN BUILT-IN DOM EVENT HANDLERS //
++
++        /**
++        * The default event handler fired when the user moves the mouse while 
++        * over the context element.
++        * @method onContextMouseMove
++        * @param {DOMEvent} e The current DOM event
++        * @param {Object} obj The object argument
++        */
++        onContextMouseMove: function (e, obj) {
++            obj.pageX = Event.getPageX(e);
++            obj.pageY = Event.getPageY(e);
++        },
++
++        /**
++        * The default event handler fired when the user mouses over the 
++        * context element.
++        * @method onContextMouseOver
++        * @param {DOMEvent} e The current DOM event
++        * @param {Object} obj The object argument
++        */
++        onContextMouseOver: function (e, obj) {
++            var context = this;
++
++            if (context.title) {
++                obj._tempTitle = context.title;
++                context.title = "";
++            }
++
++            // Fire first, to honor disabled set in the listner
++            if (obj.fireEvent("contextMouseOver", context, e) !== false 
++                    && !obj.cfg.getProperty("disabled")) {
++
++                // Stop the tooltip from being hidden (set on last mouseout)
++                if (obj.hideProcId) {
++                    clearTimeout(obj.hideProcId);
++                    obj.hideProcId = null;
++                }
++
++                Event.on(context, "mousemove", obj.onContextMouseMove, obj);
++
++                /**
++                * The unique process ID associated with the thread responsible 
++                * for showing the Tooltip.
++                * @type int
++                */
++                obj.showProcId = obj.doShow(e, context);
++            }
++        },
++
++        /**
++        * The default event handler fired when the user mouses out of 
++        * the context element.
++        * @method onContextMouseOut
++        * @param {DOMEvent} e The current DOM event
++        * @param {Object} obj The object argument
++        */
++        onContextMouseOut: function (e, obj) {
++            var el = this;
++
++            if (obj._tempTitle) {
++                el.title = obj._tempTitle;
++                obj._tempTitle = null;
++            }
++
++            if (obj.showProcId) {
++                clearTimeout(obj.showProcId);
++                obj.showProcId = null;
++            }
++
++            if (obj.hideProcId) {
++                clearTimeout(obj.hideProcId);
++                obj.hideProcId = null;
++            }
++
++            obj.fireEvent("contextMouseOut", el, e);
++
++            obj.hideProcId = setTimeout(function () {
++                obj.hide();
++            }, obj.cfg.getProperty("hidedelay"));
++        },
++
++        // END BUILT-IN DOM EVENT HANDLERS //
++
++        /**
++        * Processes the showing of the Tooltip by setting the timeout delay 
++        * and offset of the Tooltip.
++        * @method doShow
++        * @param {DOMEvent} e The current DOM event
++        * @param {HTMLElement} context The current context element
++        * @return {Number} The process ID of the timeout function associated 
++        * with doShow
++        */
++        doShow: function (e, context) {
++
++            var offset = this.cfg.getProperty("xyoffset"),
++                xOffset = offset[0],
++                yOffset = offset[1],
++                me = this;
++
++            if (UA.opera && context.tagName && 
++                context.tagName.toUpperCase() == "A") {
++                yOffset += 12;
++            }
++
++            return setTimeout(function () {
++
++                var txt = me.cfg.getProperty("text");
++
++                // title does not over-ride text
++                if (me._tempTitle && (txt === "" || YAHOO.lang.isUndefined(txt) || YAHOO.lang.isNull(txt))) {
++                    me.setBody(me._tempTitle);
++                } else {
++                    me.cfg.refireEvent("text");
++                }
++
++                me.moveTo(me.pageX + xOffset, me.pageY + yOffset);
++
++                if (me.cfg.getProperty("preventoverlap")) {
++                    me.preventOverlap(me.pageX, me.pageY);
++                }
++
++                Event.removeListener(context, "mousemove", me.onContextMouseMove);
++
++                me.contextTriggerEvent.fire(context);
++
++                me.show();
++
++                me.hideProcId = me.doHide();
++
++            }, this.cfg.getProperty("showdelay"));
++        },
++
++        /**
++        * Sets the timeout for the auto-dismiss delay, which by default is 5 
++        * seconds, meaning that a tooltip will automatically dismiss itself 
++        * after 5 seconds of being displayed.
++        * @method doHide
++        */
++        doHide: function () {
++
++            var me = this;
++
++
++            return setTimeout(function () {
++
++                me.hide();
++
++            }, this.cfg.getProperty("autodismissdelay"));
++
++        },
++
++        /**
++        * Fired when the Tooltip is moved, this event handler is used to 
++        * prevent the Tooltip from overlapping with its context element.
++        * @method preventOverlay
++        * @param {Number} pageX The x coordinate position of the mouse pointer
++        * @param {Number} pageY The y coordinate position of the mouse pointer
++        */
++        preventOverlap: function (pageX, pageY) {
++        
++            var height = this.element.offsetHeight,
++                mousePoint = new YAHOO.util.Point(pageX, pageY),
++                elementRegion = Dom.getRegion(this.element);
++        
++            elementRegion.top -= 5;
++            elementRegion.left -= 5;
++            elementRegion.right += 5;
++            elementRegion.bottom += 5;
++        
++        
++            if (elementRegion.contains(mousePoint)) {
++                this.cfg.setProperty("y", (pageY - height - 5));
++            }
++        },
++
++
++        /**
++        * @method onRender
++        * @description "render" event handler for the Tooltip.
++        * @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.underlay;
++            
++                if (oShadow) {
++                    oShadow.style.width = (oElement.offsetWidth + 6) + "px";
++                    oShadow.style.height = (oElement.offsetHeight + 1) + "px"; 
++                }
++            
++            }
++
++            function addShadowVisibleClass() {
++                Dom.addClass(this.underlay, "yui-tt-shadow-visible");
++
++                if (UA.ie) {
++                    this.forceUnderlayRedraw();
++                }
++            }
++
++            function removeShadowVisibleClass() {
++                Dom.removeClass(this.underlay, "yui-tt-shadow-visible");
++            }
++
++            function createShadow() {
++    
++                var oShadow = this.underlay,
++                    oElement,
++                    Module,
++                    nIE,
++                    me;
++    
++                if (!oShadow) {
++    
++                    oElement = this.element;
++                    Module = YAHOO.widget.Module;
++                    nIE = UA.ie;
++                    me = this;
++
++                    if (!m_oShadowTemplate) {
++                        m_oShadowTemplate = document.createElement("div");
++                        m_oShadowTemplate.className = "yui-tt-shadow";
++                    }
++
++                    oShadow = m_oShadowTemplate.cloneNode(false);
++
++                    oElement.appendChild(oShadow);
++
++                    this.underlay = oShadow;
++
++                    // Backward compatibility, even though it's probably 
++                    // intended to be "private", it isn't marked as such in the api docs
++                    this._shadow = this.underlay;
++
++                    addShadowVisibleClass.call(this);
++
++                    this.subscribe("beforeShow", addShadowVisibleClass);
++                    this.subscribe("hide", removeShadowVisibleClass);
++
++                    if (bIEQuirks) {
++                        window.setTimeout(function () { 
++                            sizeShadow.call(me); 
++                        }, 0);
++    
++                        this.cfg.subscribeToConfigEvent("width", sizeShadow);
++                        this.cfg.subscribeToConfigEvent("height", sizeShadow);
++                        this.subscribe("changeContent", sizeShadow);
++
++                        Module.textResizeEvent.subscribe(sizeShadow, this, true);
++                        this.subscribe("destroy", function () {
++                            Module.textResizeEvent.unsubscribe(sizeShadow, this);
++                        });
++                    }
++                }
++            }
++
++            function onBeforeShow() {
++                createShadow.call(this);
++                this.unsubscribe("beforeShow", onBeforeShow);
++            }
++
++            if (this.cfg.getProperty("visible")) {
++                createShadow.call(this);
++            } else {
++                this.subscribe("beforeShow", onBeforeShow);
++            }
++        
++        },
++
++        /**
++         * Forces the underlay element to be repainted, through the application/removal
++         * of a yui-force-redraw class to the underlay element.
++         * 
++         * @method forceUnderlayRedraw
++         */
++        forceUnderlayRedraw : function() {
++            var tt = this;
++            Dom.addClass(tt.underlay, "yui-force-redraw");
++            setTimeout(function() {Dom.removeClass(tt.underlay, "yui-force-redraw");}, 0);
++        },
++
++        /**
++        * Removes the Tooltip element from the DOM and sets all child 
++        * elements to null.
++        * @method destroy
++        */
++        destroy: function () {
++        
++            // Remove any existing mouseover/mouseout listeners
++            this._removeEventListeners();
++
++            Tooltip.superclass.destroy.call(this);  
++        
++        },
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Tooltip
++        */
++        toString: function () {
++            return "Tooltip " + this.id;
++        }
++    
++    });
++
++}());
++(function () {
++
++    /**
++    * Panel is an implementation of Overlay that behaves like an OS window, 
++    * with a draggable header and an optional close icon at the top right.
++    * @namespace YAHOO.widget
++    * @class Panel
++    * @extends YAHOO.widget.Overlay
++    * @constructor
++    * @param {String} el The element ID representing the Panel <em>OR</em>
++    * @param {HTMLElement} el The element representing the Panel
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Panel. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Panel = function (el, userConfig) {
++        YAHOO.widget.Panel.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var _currentModal = null;
++
++    var Lang = YAHOO.lang,
++        Util = YAHOO.util,
++        Dom = Util.Dom,
++        Event = Util.Event,
++        CustomEvent = Util.CustomEvent,
++        KeyListener = YAHOO.util.KeyListener,
++        Config = Util.Config,
++        Overlay = YAHOO.widget.Overlay,
++        Panel = YAHOO.widget.Panel,
++        UA = YAHOO.env.ua,
++
++        bIEQuirks = (UA.ie && (UA.ie <= 6 || document.compatMode == "BackCompat")),
++
++        m_oMaskTemplate,
++        m_oUnderlayTemplate,
++        m_oCloseIconTemplate,
++
++        /**
++        * Constant representing the name of the Panel's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "SHOW_MASK": "showMask",
++            "HIDE_MASK": "hideMask",
++            "DRAG": "drag"
++        },
++
++        /**
++        * Constant representing the Panel's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "CLOSE": { 
++                key: "close", 
++                value: true, 
++                validator: Lang.isBoolean, 
++                supercedes: ["visible"] 
++            },
++
++            "DRAGGABLE": {
++                key: "draggable", 
++                value: (Util.DD ? true : false), 
++                validator: Lang.isBoolean, 
++                supercedes: ["visible"]  
++            },
++
++            "DRAG_ONLY" : {
++                key: "dragonly",
++                value: false,
++                validator: Lang.isBoolean,
++                supercedes: ["draggable"]
++            },
++
++            "UNDERLAY": { 
++                key: "underlay", 
++                value: "shadow", 
++                supercedes: ["visible"] 
++            },
++
++            "MODAL": { 
++                key: "modal", 
++                value: false, 
++                validator: Lang.isBoolean, 
++                supercedes: ["visible", "zindex"]
++            },
++
++            "KEY_LISTENERS": {
++                key: "keylisteners",
++                suppressEvent: true,
++                supercedes: ["visible"]
++            },
++
++            "STRINGS" : {
++                key: "strings",
++                supercedes: ["close"],
++                validator: Lang.isObject,
++                value: {
++                    close: "Close"
++                }
++            }
++        };
++
++    /**
++    * Constant representing the default CSS class used for a Panel
++    * @property YAHOO.widget.Panel.CSS_PANEL
++    * @static
++    * @final
++    * @type String
++    */
++    Panel.CSS_PANEL = "yui-panel";
++    
++    /**
++    * Constant representing the default CSS class used for a Panel's 
++    * wrapping container
++    * @property YAHOO.widget.Panel.CSS_PANEL_CONTAINER
++    * @static
++    * @final
++    * @type String
++    */
++    Panel.CSS_PANEL_CONTAINER = "yui-panel-container";
++
++    /**
++     * Constant representing the default set of focusable elements 
++     * on the pagewhich Modal Panels will prevent access to, when
++     * the modal mask is displayed
++     * 
++     * @property YAHOO.widget.Panel.FOCUSABLE
++     * @static
++     * @type Array
++     */
++    Panel.FOCUSABLE = [
++        "a",
++        "button",
++        "select",
++        "textarea",
++        "input",
++        "iframe"
++    ];
++
++    // Private CustomEvent listeners
++
++    /* 
++        "beforeRender" event handler that creates an empty header for a Panel 
++        instance if its "draggable" configuration property is set to "true" 
++        and no header has been created.
++    */
++
++    function createHeader(p_sType, p_aArgs) {
++        if (!this.header && this.cfg.getProperty("draggable")) {
++            this.setHeader("&#160;");
++        }
++    }
++
++    /* 
++        "hide" event handler that sets a Panel instance's "width"
++        configuration property back to its original value before 
++        "setWidthToOffsetWidth" was called.
++    */
++    
++    function restoreOriginalWidth(p_sType, p_aArgs, p_oObject) {
++
++        var sOriginalWidth = p_oObject[0],
++            sNewWidth = p_oObject[1],
++            oConfig = this.cfg,
++            sCurrentWidth = oConfig.getProperty("width");
++
++        if (sCurrentWidth == sNewWidth) {
++            oConfig.setProperty("width", sOriginalWidth);
++        }
++
++        this.unsubscribe("hide", restoreOriginalWidth, p_oObject);
++    }
++
++    /* 
++        "beforeShow" event handler that sets a Panel instance's "width"
++        configuration property to the value of its root HTML 
++        elements's offsetWidth
++    */
++
++    function setWidthToOffsetWidth(p_sType, p_aArgs) {
++
++        var oConfig,
++            sOriginalWidth,
++            sNewWidth;
++
++        if (bIEQuirks) {
++
++            oConfig = this.cfg;
++            sOriginalWidth = oConfig.getProperty("width");
++            
++            if (!sOriginalWidth || sOriginalWidth == "auto") {
++    
++                sNewWidth = (this.element.offsetWidth + "px");
++    
++                oConfig.setProperty("width", sNewWidth);
++
++                this.subscribe("hide", restoreOriginalWidth, 
++                    [(sOriginalWidth || ""), sNewWidth]);
++            
++            }
++        }
++    }
++
++    YAHOO.extend(Panel, Overlay, {
++
++        /**
++        * The Overlay initialization method, which is executed for Overlay and 
++        * all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the Overlay <em>OR</em>
++        * @param {HTMLElement} el The element representing the Overlay
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Overlay. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++            /*
++                 Note that we don't pass the user config in here yet because 
++                 we only want it executed once, at the lowest subclass level
++            */
++
++            Panel.superclass.init.call(this, el/*, userConfig*/);
++
++            this.beforeInitEvent.fire(Panel);
++
++            Dom.addClass(this.element, Panel.CSS_PANEL);
++
++            this.buildWrapper();
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            this.subscribe("showMask", this._addFocusHandlers);
++            this.subscribe("hideMask", this._removeFocusHandlers);
++            this.subscribe("beforeRender", createHeader);
++
++            this.subscribe("render", function() {
++                this.setFirstLastFocusable();
++                this.subscribe("changeContent", this.setFirstLastFocusable);
++            });
++
++            this.subscribe("show", this.focusFirst);
++
++            this.initEvent.fire(Panel);
++        },
++
++        /**
++         * @method _onElementFocus
++         * @private
++         *
++         * "focus" event handler for a focuable element. Used to automatically
++         * blur the element when it receives focus to ensure that a Panel
++         * instance's modality is not compromised.
++         *
++         * @param {Event} e The DOM event object
++         */
++        _onElementFocus : function(e){
++
++            if(_currentModal === this) {
++
++                var target = Event.getTarget(e),
++                    doc = document.documentElement,
++                    insideDoc = (target !== doc && target !== window);
++
++                // mask and documentElement checks added for IE, which focuses on the mask when it's clicked on, and focuses on 
++                // the documentElement, when the document scrollbars are clicked on
++                if (insideDoc && target !== this.element && target !== this.mask && !Dom.isAncestor(this.element, target)) {
++                    try {
++                        if (this.firstElement) {
++                            this.firstElement.focus();
++                        } else {
++                            if (this._modalFocus) {
++                                this._modalFocus.focus();
++                            } else {
++                                this.innerElement.focus();
++                            }
++                        }
++                    } catch(err){
++                        // Just in case we fail to focus
++                        try {
++                            if (insideDoc && target !== document.body) {
++                                target.blur();
++                            }
++                        } catch(err2) { }
++                    }
++                }
++            }
++        },
++
++        /** 
++         *  @method _addFocusHandlers
++         *  @protected
++         *  
++         *  "showMask" event handler that adds a "focus" event handler to all
++         *  focusable elements in the document to enforce a Panel instance's 
++         *  modality from being compromised.
++         *
++         *  @param p_sType {String} Custom event type
++         *  @param p_aArgs {Array} Custom event arguments
++         */
++        _addFocusHandlers: function(p_sType, p_aArgs) {
++            if (!this.firstElement) {
++                if (UA.webkit || UA.opera) {
++                    if (!this._modalFocus) {
++                        this._createHiddenFocusElement();
++                    }
++                } else {
++                    this.innerElement.tabIndex = 0;
++                }
++            }
++            this.setTabLoop(this.firstElement, this.lastElement);
++            Event.onFocus(document.documentElement, this._onElementFocus, this, true);
++            _currentModal = this;
++        },
++
++        /**
++         * Creates a hidden focusable element, used to focus on,
++         * to enforce modality for browsers in which focus cannot
++         * be applied to the container box.
++         * 
++         * @method _createHiddenFocusElement
++         * @private
++         */
++        _createHiddenFocusElement : function() {
++            var e = document.createElement("button");
++            e.style.height = "1px";
++            e.style.width = "1px";
++            e.style.position = "absolute";
++            e.style.left = "-10000em";
++            e.style.opacity = 0;
++            e.tabIndex = -1;
++            this.innerElement.appendChild(e);
++            this._modalFocus = e;
++        },
++
++        /**
++         *  @method _removeFocusHandlers
++         *  @protected
++         *
++         *  "hideMask" event handler that removes all "focus" event handlers added 
++         *  by the "addFocusEventHandlers" method.
++         *
++         *  @param p_sType {String} Event type
++         *  @param p_aArgs {Array} Event Arguments
++         */
++        _removeFocusHandlers: function(p_sType, p_aArgs) {
++            Event.removeFocusListener(document.documentElement, this._onElementFocus, this);
++
++            if (_currentModal == this) {
++                _currentModal = null;
++            }
++        },
++
++        /**
++         * Sets focus to the first element in the Panel.
++         *
++         * @method focusFirst
++         */
++        focusFirst: function (type, args, obj) {
++            var el = this.firstElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (el) {
++                try {
++                    el.focus();
++                } catch(err) {
++                    // Ignore
++                }
++            }
++        },
++
++        /**
++         * Sets focus to the last element in the Panel.
++         *
++         * @method focusLast
++         */
++        focusLast: function (type, args, obj) {
++            var el = this.lastElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (el) {
++                try {
++                    el.focus();
++                } catch(err) {
++                    // Ignore
++                }
++            }
++        },
++
++        /**
++         * Sets up a tab, shift-tab loop between the first and last elements
++         * provided. NOTE: Sets up the preventBackTab and preventTabOut KeyListener
++         * instance properties, which are reset everytime this method is invoked.
++         *
++         * @method setTabLoop
++         * @param {HTMLElement} firstElement
++         * @param {HTMLElement} lastElement
++         *
++         */
++        setTabLoop : function(firstElement, lastElement) {
++
++            var backTab = this.preventBackTab, tab = this.preventTabOut,
++                showEvent = this.showEvent, hideEvent = this.hideEvent;
++
++            if (backTab) {
++                backTab.disable();
++                showEvent.unsubscribe(backTab.enable, backTab);
++                hideEvent.unsubscribe(backTab.disable, backTab);
++                backTab = this.preventBackTab = null;
++            }
++
++            if (tab) {
++                tab.disable();
++                showEvent.unsubscribe(tab.enable, tab);
++                hideEvent.unsubscribe(tab.disable,tab);
++                tab = this.preventTabOut = null;
++            }
++
++            if (firstElement) {
++                this.preventBackTab = new KeyListener(firstElement, 
++                    {shift:true, keys:9},
++                    {fn:this.focusLast, scope:this, correctScope:true}
++                );
++                backTab = this.preventBackTab;
++
++                showEvent.subscribe(backTab.enable, backTab, true);
++                hideEvent.subscribe(backTab.disable,backTab, true);
++            }
++
++            if (lastElement) {
++                this.preventTabOut = new KeyListener(lastElement, 
++                    {shift:false, keys:9}, 
++                    {fn:this.focusFirst, scope:this, correctScope:true}
++                );
++                tab = this.preventTabOut;
++
++                showEvent.subscribe(tab.enable, tab, true);
++                hideEvent.subscribe(tab.disable,tab, true);
++            }
++        },
++
++        /**
++         * Returns an array of the currently focusable items which reside within
++         * Panel. The set of focusable elements the method looks for are defined
++         * in the Panel.FOCUSABLE static property
++         *
++         * @method getFocusableElements
++         * @param {HTMLElement} root element to start from.
++         */
++        getFocusableElements : function(root) {
++
++            root = root || this.innerElement;
++
++            var focusable = {};
++            for (var i = 0; i < Panel.FOCUSABLE.length; i++) {
++                focusable[Panel.FOCUSABLE[i]] = true;
++            }
++
++            function isFocusable(el) {
++                if (el.focus && el.type !== "hidden" && !el.disabled && focusable[el.tagName.toLowerCase()]) {
++                    return true;
++                }
++                return false;
++            }
++
++            // Not looking by Tag, since we want elements in DOM order
++            return Dom.getElementsBy(isFocusable, null, root);
++        },
++
++        /**
++         * Sets the firstElement and lastElement instance properties
++         * to the first and last focusable elements in the Panel.
++         *
++         * @method setFirstLastFocusable
++         */
++        setFirstLastFocusable : function() {
++
++            this.firstElement = null;
++            this.lastElement = null;
++
++            var elements = this.getFocusableElements();
++            this.focusableElements = elements;
++
++            if (elements.length > 0) {
++                this.firstElement = elements[0];
++                this.lastElement = elements[elements.length - 1];
++            }
++
++            if (this.cfg.getProperty("modal")) {
++                this.setTabLoop(this.firstElement, this.lastElement);
++            }
++        },
++
++        /**
++         * Initializes the custom events for Module which are fired 
++         * automatically at appropriate times by the Module class.
++         */
++        initEvents: function () {
++            Panel.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired after the modality mask is shown
++            * @event showMaskEvent
++            */
++            this.showMaskEvent = this.createEvent(EVENT_TYPES.SHOW_MASK);
++            this.showMaskEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the modality mask is hidden
++            * @event hideMaskEvent
++            */
++            this.hideMaskEvent = this.createEvent(EVENT_TYPES.HIDE_MASK);
++            this.hideMaskEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent when the Panel is dragged
++            * @event dragEvent
++            */
++            this.dragEvent = this.createEvent(EVENT_TYPES.DRAG);
++            this.dragEvent.signature = SIGNATURE;
++        },
++
++        /**
++         * Initializes the class's configurable properties which can be changed 
++         * using the Panel's Config object (cfg).
++         * @method initDefaultConfig
++         */
++        initDefaultConfig: function () {
++            Panel.superclass.initDefaultConfig.call(this);
++
++            // Add panel config properties //
++
++            /**
++            * True if the Panel should display a "close" button
++            * @config close
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.CLOSE.key, { 
++                handler: this.configClose, 
++                value: DEFAULT_CONFIG.CLOSE.value, 
++                validator: DEFAULT_CONFIG.CLOSE.validator, 
++                supercedes: DEFAULT_CONFIG.CLOSE.supercedes 
++            });
++
++            /**
++            * Boolean specifying if the Panel should be draggable.  The default 
++            * value is "true" if the Drag and Drop utility is included, 
++            * otherwise it is "false." <strong>PLEASE NOTE:</strong> There is a 
++            * known issue in IE 6 (Strict Mode and Quirks Mode) and IE 7 
++            * (Quirks Mode) where Panels that either don't have a value set for 
++            * their "width" configuration property, or their "width" 
++            * configuration property is set to "auto" will only be draggable by
++            * placing the mouse on the text of the Panel's header element.
++            * To fix this bug, draggable Panels missing a value for their 
++            * "width" configuration property, or whose "width" configuration 
++            * property is set to "auto" will have it set to the value of 
++            * their root HTML element's offsetWidth before they are made 
++            * visible.  The calculated width is then removed when the Panel is   
++            * hidden. <em>This fix is only applied to draggable Panels in IE 6 
++            * (Strict Mode and Quirks Mode) and IE 7 (Quirks Mode)</em>. For 
++            * more information on this issue see:
++            * YUILibrary bugs #1726972 and #1589210.
++            * @config draggable
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.DRAGGABLE.key, {
++                handler: this.configDraggable,
++                value: (Util.DD) ? true : false,
++                validator: DEFAULT_CONFIG.DRAGGABLE.validator,
++                supercedes: DEFAULT_CONFIG.DRAGGABLE.supercedes
++            });
++
++            /**
++            * Boolean specifying if the draggable Panel should be drag only, not interacting with drop 
++            * targets on the page.
++            * <p>
++            * When set to true, draggable Panels will not check to see if they are over drop targets,
++            * or fire the DragDrop events required to support drop target interaction (onDragEnter, 
++            * onDragOver, onDragOut, onDragDrop etc.).
++            * If the Panel is not designed to be dropped on any target elements on the page, then this 
++            * flag can be set to true to improve performance.
++            * </p>
++            * <p>
++            * When set to false, all drop target related events will be fired.
++            * </p>
++            * <p>
++            * The property is set to false by default to maintain backwards compatibility but should be 
++            * set to true if drop target interaction is not required for the Panel, to improve performance.</p>
++            * 
++            * @config dragOnly
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.DRAG_ONLY.key, { 
++                value: DEFAULT_CONFIG.DRAG_ONLY.value, 
++                validator: DEFAULT_CONFIG.DRAG_ONLY.validator, 
++                supercedes: DEFAULT_CONFIG.DRAG_ONLY.supercedes 
++            });
++
++            /**
++            * Sets the type of underlay to display for the Panel. Valid values 
++            * are "shadow," "matte," and "none".  <strong>PLEASE NOTE:</strong> 
++            * The creation of the underlay element is deferred until the Panel 
++            * is initially made visible.  For Gecko-based browsers on Mac
++            * OS X the underlay elment is always created as it is used as a 
++            * shim to prevent Aqua scrollbars below a Panel instance from poking 
++            * through it (See YUILibrary bug #1723530).
++            * @config underlay
++            * @type String
++            * @default shadow
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.UNDERLAY.key, { 
++                handler: this.configUnderlay, 
++                value: DEFAULT_CONFIG.UNDERLAY.value, 
++                supercedes: DEFAULT_CONFIG.UNDERLAY.supercedes 
++            });
++        
++            /**
++            * True if the Panel should be displayed in a modal fashion, 
++            * automatically creating a transparent mask over the document that
++            * will not be removed until the Panel is dismissed.
++            * @config modal
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.MODAL.key, { 
++                handler: this.configModal, 
++                value: DEFAULT_CONFIG.MODAL.value,
++                validator: DEFAULT_CONFIG.MODAL.validator, 
++                supercedes: DEFAULT_CONFIG.MODAL.supercedes 
++            });
++
++            /**
++            * A KeyListener (or array of KeyListeners) that will be enabled 
++            * when the Panel is shown, and disabled when the Panel is hidden.
++            * @config keylisteners
++            * @type YAHOO.util.KeyListener[]
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.KEY_LISTENERS.key, { 
++                handler: this.configKeyListeners, 
++                suppressEvent: DEFAULT_CONFIG.KEY_LISTENERS.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.KEY_LISTENERS.supercedes 
++            });
++
++            /**
++            * UI Strings used by the Panel
++            * 
++            * @config strings
++            * @type Object
++            * @default An object literal with the properties shown below:
++            *     <dl>
++            *         <dt>close</dt><dd><em>String</em> : The string to use for the close icon. Defaults to "Close".</dd>
++            *     </dl>
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.STRINGS.key, { 
++                value:DEFAULT_CONFIG.STRINGS.value,
++                handler:this.configStrings,
++                validator:DEFAULT_CONFIG.STRINGS.validator,
++                supercedes:DEFAULT_CONFIG.STRINGS.supercedes
++            });
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * The default event handler fired when the "close" property is changed.
++        * The method controls the appending or hiding of the close icon at the 
++        * top right of the Panel.
++        * @method configClose
++        * @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.
++        */
++        configClose: function (type, args, obj) {
++
++            var val = args[0],
++                oClose = this.close,
++                strings = this.cfg.getProperty("strings");
++
++            if (val) {
++                if (!oClose) {
++
++                    if (!m_oCloseIconTemplate) {
++                        m_oCloseIconTemplate = document.createElement("a");
++                        m_oCloseIconTemplate.className = "container-close";
++                        m_oCloseIconTemplate.href = "#";
++                    }
++
++                    oClose = m_oCloseIconTemplate.cloneNode(true);
++                    this.innerElement.appendChild(oClose);
++
++                    oClose.innerHTML = (strings && strings.close) ? strings.close : "&#160;";
++
++                    Event.on(oClose, "click", this._doClose, this, true);
++
++                    this.close = oClose;
++
++                } else {
++                    oClose.style.display = "block";
++                }
++
++            } else {
++                if (oClose) {
++                    oClose.style.display = "none";
++                }
++            }
++
++        },
++
++        /**
++         * Event handler for the close icon
++         * 
++         * @method _doClose
++         * @protected
++         * 
++         * @param {DOMEvent} e
++         */
++        _doClose : function (e) {
++            Event.preventDefault(e);
++            this.hide();
++        },
++
++        /**
++        * The default event handler fired when the "draggable" property 
++        * is changed.
++        * @method configDraggable
++        * @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.
++        */
++        configDraggable: function (type, args, obj) {
++            var val = args[0];
++
++            if (val) {
++                if (!Util.DD) {
++                    this.cfg.setProperty("draggable", false);
++                    return;
++                }
++
++                if (this.header) {
++                    Dom.setStyle(this.header, "cursor", "move");
++                    this.registerDragDrop();
++                }
++
++                this.subscribe("beforeShow", setWidthToOffsetWidth);
++
++            } else {
++
++                if (this.dd) {
++                    this.dd.unreg();
++                }
++
++                if (this.header) {
++                    Dom.setStyle(this.header,"cursor","auto");
++                }
++
++                this.unsubscribe("beforeShow", setWidthToOffsetWidth);
++            }
++        },
++      
++        /**
++        * The default event handler fired when the "underlay" property 
++        * is changed.
++        * @method configUnderlay
++        * @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.
++        */
++        configUnderlay: function (type, args, obj) {
++
++            var bMacGecko = (this.platform == "mac" && UA.gecko),
++                sUnderlay = args[0].toLowerCase(),
++                oUnderlay = this.underlay,
++                oElement = this.element;
++
++            function createUnderlay() {
++                var bNew = false;
++                if (!oUnderlay) { // create if not already in DOM
++
++                    if (!m_oUnderlayTemplate) {
++                        m_oUnderlayTemplate = document.createElement("div");
++                        m_oUnderlayTemplate.className = "underlay";
++                    }
++
++                    oUnderlay = m_oUnderlayTemplate.cloneNode(false);
++                    this.element.appendChild(oUnderlay);
++
++                    this.underlay = oUnderlay;
++
++                    if (bIEQuirks) {
++                        this.sizeUnderlay();
++                        this.cfg.subscribeToConfigEvent("width", this.sizeUnderlay);
++                        this.cfg.subscribeToConfigEvent("height", this.sizeUnderlay);
++
++                        this.changeContentEvent.subscribe(this.sizeUnderlay);
++                        YAHOO.widget.Module.textResizeEvent.subscribe(this.sizeUnderlay, this, true);
++                    }
++
++                    if (UA.webkit && UA.webkit < 420) {
++                        this.changeContentEvent.subscribe(this.forceUnderlayRedraw);
++                    }
++
++                    bNew = true;
++                }
++            }
++
++            function onBeforeShow() {
++                var bNew = createUnderlay.call(this);
++                if (!bNew && bIEQuirks) {
++                    this.sizeUnderlay();
++                }
++                this._underlayDeferred = false;
++                this.beforeShowEvent.unsubscribe(onBeforeShow);
++            }
++
++            function destroyUnderlay() {
++                if (this._underlayDeferred) {
++                    this.beforeShowEvent.unsubscribe(onBeforeShow);
++                    this._underlayDeferred = false;
++                }
++
++                if (oUnderlay) {
++                    this.cfg.unsubscribeFromConfigEvent("width", this.sizeUnderlay);
++                    this.cfg.unsubscribeFromConfigEvent("height",this.sizeUnderlay);
++                    this.changeContentEvent.unsubscribe(this.sizeUnderlay);
++                    this.changeContentEvent.unsubscribe(this.forceUnderlayRedraw);
++                    YAHOO.widget.Module.textResizeEvent.unsubscribe(this.sizeUnderlay, this, true);
++
++                    this.element.removeChild(oUnderlay);
++
++                    this.underlay = null;
++                }
++            }
++
++            switch (sUnderlay) {
++                case "shadow":
++                    Dom.removeClass(oElement, "matte");
++                    Dom.addClass(oElement, "shadow");
++                    break;
++                case "matte":
++                    if (!bMacGecko) {
++                        destroyUnderlay.call(this);
++                    }
++                    Dom.removeClass(oElement, "shadow");
++                    Dom.addClass(oElement, "matte");
++                    break;
++                default:
++                    if (!bMacGecko) {
++                        destroyUnderlay.call(this);
++                    }
++                    Dom.removeClass(oElement, "shadow");
++                    Dom.removeClass(oElement, "matte");
++                    break;
++            }
++
++            if ((sUnderlay == "shadow") || (bMacGecko && !oUnderlay)) {
++                if (this.cfg.getProperty("visible")) {
++                    var bNew = createUnderlay.call(this);
++                    if (!bNew && bIEQuirks) {
++                        this.sizeUnderlay();
++                    }
++                } else {
++                    if (!this._underlayDeferred) {
++                        this.beforeShowEvent.subscribe(onBeforeShow);
++                        this._underlayDeferred = true;
++                    }
++                }
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "modal" property is 
++        * changed. This handler subscribes or unsubscribes to the show and hide
++        * events to handle the display or hide of the modality mask.
++        * @method configModal
++        * @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.
++        */
++        configModal: function (type, args, obj) {
++
++            var modal = args[0];
++            if (modal) {
++                if (!this._hasModalityEventListeners) {
++
++                    this.subscribe("beforeShow", this.buildMask);
++                    this.subscribe("beforeShow", this.bringToTop);
++                    this.subscribe("beforeShow", this.showMask);
++                    this.subscribe("hide", this.hideMask);
++
++                    Overlay.windowResizeEvent.subscribe(this.sizeMask, 
++                        this, true);
++
++                    this._hasModalityEventListeners = true;
++                }
++            } else {
++                if (this._hasModalityEventListeners) {
++
++                    if (this.cfg.getProperty("visible")) {
++                        this.hideMask();
++                        this.removeMask();
++                    }
++
++                    this.unsubscribe("beforeShow", this.buildMask);
++                    this.unsubscribe("beforeShow", this.bringToTop);
++                    this.unsubscribe("beforeShow", this.showMask);
++                    this.unsubscribe("hide", this.hideMask);
++
++                    Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this);
++
++                    this._hasModalityEventListeners = false;
++                }
++            }
++        },
++
++        /**
++        * Removes the modality mask.
++        * @method removeMask
++        */
++        removeMask: function () {
++
++            var oMask = this.mask,
++                oParentNode;
++
++            if (oMask) {
++                /*
++                    Hide the mask before destroying it to ensure that DOM
++                    event handlers on focusable elements get removed.
++                */
++                this.hideMask();
++
++                oParentNode = oMask.parentNode;
++                if (oParentNode) {
++                    oParentNode.removeChild(oMask);
++                }
++
++                this.mask = null;
++            }
++        },
++        
++        /**
++        * The default event handler fired when the "keylisteners" property 
++        * is changed.
++        * @method configKeyListeners
++        * @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.
++        */
++        configKeyListeners: function (type, args, obj) {
++
++            var listeners = args[0],
++                listener,
++                nListeners,
++                i;
++        
++            if (listeners) {
++
++                if (listeners instanceof Array) {
++
++                    nListeners = listeners.length;
++
++                    for (i = 0; i < nListeners; i++) {
++
++                        listener = listeners[i];
++        
++                        if (!Config.alreadySubscribed(this.showEvent, 
++                            listener.enable, listener)) {
++
++                            this.showEvent.subscribe(listener.enable, 
++                                listener, true);
++
++                        }
++
++                        if (!Config.alreadySubscribed(this.hideEvent, 
++                            listener.disable, listener)) {
++
++                            this.hideEvent.subscribe(listener.disable, 
++                                listener, true);
++
++                            this.destroyEvent.subscribe(listener.disable, 
++                                listener, true);
++                        }
++                    }
++
++                } else {
++
++                    if (!Config.alreadySubscribed(this.showEvent, 
++                        listeners.enable, listeners)) {
++
++                        this.showEvent.subscribe(listeners.enable, 
++                            listeners, true);
++                    }
++
++                    if (!Config.alreadySubscribed(this.hideEvent, 
++                        listeners.disable, listeners)) {
++
++                        this.hideEvent.subscribe(listeners.disable, 
++                            listeners, true);
++
++                        this.destroyEvent.subscribe(listeners.disable, 
++                            listeners, true);
++
++                    }
++
++                }
++
++            }
++
++        },
++
++        /**
++        * The default handler for the "strings" property
++        * @method configStrings
++        */
++        configStrings : function(type, args, obj) {
++            var val = Lang.merge(DEFAULT_CONFIG.STRINGS.value, args[0]);
++            this.cfg.setProperty(DEFAULT_CONFIG.STRINGS.key, val, true);
++        },
++
++        /**
++        * The default event handler fired when the "height" property is changed.
++        * @method configHeight
++        * @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.
++        */
++        configHeight: function (type, args, obj) {
++            var height = args[0],
++                el = this.innerElement;
++
++            Dom.setStyle(el, "height", height);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++         * The default custom event handler executed when the Panel's height is changed, 
++         * if the autofillheight property has been set.
++         *
++         * @method _autoFillOnHeightChange
++         * @protected
++         * @param {String} type The event type
++         * @param {Array} args The array of arguments passed to event subscribers
++         * @param {HTMLElement} el The header, body or footer element which is to be resized to fill
++         * out the containers height
++         */
++        _autoFillOnHeightChange : function(type, args, el) {
++            Panel.superclass._autoFillOnHeightChange.apply(this, arguments);
++            if (bIEQuirks) {
++                var panel = this;
++                setTimeout(function() {
++                    panel.sizeUnderlay();
++                },0);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "width" property is changed.
++        * @method configWidth
++        * @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.
++        */
++        configWidth: function (type, args, obj) {
++    
++            var width = args[0],
++                el = this.innerElement;
++    
++            Dom.setStyle(el, "width", width);
++            this.cfg.refireEvent("iframe");
++    
++        },
++        
++        /**
++        * The default event handler fired when the "zIndex" property is changed.
++        * @method configzIndex
++        * @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.
++        */
++        configzIndex: function (type, args, obj) {
++            Panel.superclass.configzIndex.call(this, type, args, obj);
++
++            if (this.mask || this.cfg.getProperty("modal") === true) {
++                var panelZ = Dom.getStyle(this.element, "zIndex");
++                if (!panelZ || isNaN(panelZ)) {
++                    panelZ = 0;
++                }
++
++                if (panelZ === 0) {
++                    // Recursive call to configzindex (which should be stopped
++                    // from going further because panelZ should no longer === 0)
++                    this.cfg.setProperty("zIndex", 1);
++                } else {
++                    this.stackMask();
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * Builds the wrapping container around the Panel that is used for 
++        * positioning the shadow and matte underlays. The container element is 
++        * assigned to a  local instance variable called container, and the 
++        * element is reinserted inside of it.
++        * @method buildWrapper
++        */
++        buildWrapper: function () {
++
++            var elementParent = this.element.parentNode,
++                originalElement = this.element,
++                wrapper = document.createElement("div");
++
++            wrapper.className = Panel.CSS_PANEL_CONTAINER;
++            wrapper.id = originalElement.id + "_c";
++
++            if (elementParent) {
++                elementParent.insertBefore(wrapper, originalElement);
++            }
++
++            wrapper.appendChild(originalElement);
++
++            this.element = wrapper;
++            this.innerElement = originalElement;
++
++            Dom.setStyle(this.innerElement, "visibility", "inherit");
++        },
++
++        /**
++        * Adjusts the size of the shadow based on the size of the element.
++        * @method sizeUnderlay
++        */
++        sizeUnderlay: function () {
++            var oUnderlay = this.underlay,
++                oElement;
++
++            if (oUnderlay) {
++                oElement = this.element;
++                oUnderlay.style.width = oElement.offsetWidth + "px";
++                oUnderlay.style.height = oElement.offsetHeight + "px";
++            }
++        },
++
++        /**
++        * Registers the Panel's header for drag & drop capability.
++        * @method registerDragDrop
++        */
++        registerDragDrop: function () {
++
++            var me = this;
++
++            if (this.header) {
++
++                if (!Util.DD) {
++                    return;
++                }
++
++                var bDragOnly = (this.cfg.getProperty("dragonly") === true);
++
++                /**
++                 * The YAHOO.util.DD instance, used to implement the draggable header for the panel if draggable is enabled
++                 *
++                 * @property dd
++                 * @type YAHOO.util.DD
++                 */
++                this.dd = new Util.DD(this.element.id, this.id, {dragOnly: bDragOnly});
++
++                if (!this.header.id) {
++                    this.header.id = this.id + "_h";
++                }
++
++                this.dd.startDrag = function () {
++
++                    var offsetHeight,
++                        offsetWidth,
++                        viewPortWidth,
++                        viewPortHeight,
++                        scrollX,
++                        scrollY;
++
++                    if (YAHOO.env.ua.ie == 6) {
++                        Dom.addClass(me.element,"drag");
++                    }
++
++                    if (me.cfg.getProperty("constraintoviewport")) {
++
++                        var nViewportOffset = Overlay.VIEWPORT_OFFSET;
++
++                        offsetHeight = me.element.offsetHeight;
++                        offsetWidth = me.element.offsetWidth;
++
++                        viewPortWidth = Dom.getViewportWidth();
++                        viewPortHeight = Dom.getViewportHeight();
++
++                        scrollX = Dom.getDocumentScrollLeft();
++                        scrollY = Dom.getDocumentScrollTop();
++
++                        if (offsetHeight + nViewportOffset < viewPortHeight) {
++                            this.minY = scrollY + nViewportOffset;
++                            this.maxY = scrollY + viewPortHeight - offsetHeight - nViewportOffset;
++                        } else {
++                            this.minY = scrollY + nViewportOffset;
++                            this.maxY = scrollY + nViewportOffset;
++                        }
++
++                        if (offsetWidth + nViewportOffset < viewPortWidth) {
++                            this.minX = scrollX + nViewportOffset;
++                            this.maxX = scrollX + viewPortWidth - offsetWidth - nViewportOffset;
++                        } else {
++                            this.minX = scrollX + nViewportOffset;
++                            this.maxX = scrollX + nViewportOffset;
++                        }
++
++                        this.constrainX = true;
++                        this.constrainY = true;
++                    } else {
++                        this.constrainX = false;
++                        this.constrainY = false;
++                    }
++
++                    me.dragEvent.fire("startDrag", arguments);
++                };
++
++                this.dd.onDrag = function () {
++                    me.syncPosition();
++                    me.cfg.refireEvent("iframe");
++                    if (this.platform == "mac" && YAHOO.env.ua.gecko) {
++                        this.showMacGeckoScrollbars();
++                    }
++
++                    me.dragEvent.fire("onDrag", arguments);
++                };
++
++                this.dd.endDrag = function () {
++
++                    if (YAHOO.env.ua.ie == 6) {
++                        Dom.removeClass(me.element,"drag");
++                    }
++
++                    me.dragEvent.fire("endDrag", arguments);
++                    me.moveEvent.fire(me.cfg.getProperty("xy"));
++
++                };
++
++                this.dd.setHandleElId(this.header.id);
++                this.dd.addInvalidHandleType("INPUT");
++                this.dd.addInvalidHandleType("SELECT");
++                this.dd.addInvalidHandleType("TEXTAREA");
++            }
++        },
++        
++        /**
++        * Builds the mask that is laid over the document when the Panel is 
++        * configured to be modal.
++        * @method buildMask
++        */
++        buildMask: function () {
++            var oMask = this.mask;
++            if (!oMask) {
++                if (!m_oMaskTemplate) {
++                    m_oMaskTemplate = document.createElement("div");
++                    m_oMaskTemplate.className = "mask";
++                    m_oMaskTemplate.innerHTML = "&#160;";
++                }
++                oMask = m_oMaskTemplate.cloneNode(true);
++                oMask.id = this.id + "_mask";
++
++                document.body.insertBefore(oMask, document.body.firstChild);
++
++                this.mask = oMask;
++
++                if (YAHOO.env.ua.gecko && this.platform == "mac") {
++                    Dom.addClass(this.mask, "block-scrollbars");
++                }
++
++                // Stack mask based on the element zindex
++                this.stackMask();
++            }
++        },
++
++        /**
++        * Hides the modality mask.
++        * @method hideMask
++        */
++        hideMask: function () {
++            if (this.cfg.getProperty("modal") && this.mask) {
++                this.mask.style.display = "none";
++                Dom.removeClass(document.body, "masked");
++                this.hideMaskEvent.fire();
++            }
++        },
++
++        /**
++        * Shows the modality mask.
++        * @method showMask
++        */
++        showMask: function () {
++            if (this.cfg.getProperty("modal") && this.mask) {
++                Dom.addClass(document.body, "masked");
++                this.sizeMask();
++                this.mask.style.display = "block";
++                this.showMaskEvent.fire();
++            }
++        },
++
++        /**
++        * Sets the size of the modality mask to cover the entire scrollable 
++        * area of the document
++        * @method sizeMask
++        */
++        sizeMask: function () {
++            if (this.mask) {
++
++                // Shrink mask first, so it doesn't affect the document size.
++                var mask = this.mask,
++                    viewWidth = Dom.getViewportWidth(),
++                    viewHeight = Dom.getViewportHeight();
++
++                if (mask.offsetHeight > viewHeight) {
++                    mask.style.height = viewHeight + "px";
++                }
++
++                if (mask.offsetWidth > viewWidth) {
++                    mask.style.width = viewWidth + "px";
++                }
++
++                // Then size it to the document
++                mask.style.height = Dom.getDocumentHeight() + "px";
++                mask.style.width = Dom.getDocumentWidth() + "px";
++            }
++        },
++
++        /**
++         * Sets the zindex of the mask, if it exists, based on the zindex of 
++         * the Panel element. The zindex of the mask is set to be one less 
++         * than the Panel element's zindex.
++         * 
++         * <p>NOTE: This method will not bump up the zindex of the Panel
++         * to ensure that the mask has a non-negative zindex. If you require the
++         * mask zindex to be 0 or higher, the zindex of the Panel 
++         * should be set to a value higher than 0, before this method is called.
++         * </p>
++         * @method stackMask
++         */
++        stackMask: function() {
++            if (this.mask) {
++                var panelZ = Dom.getStyle(this.element, "zIndex");
++                if (!YAHOO.lang.isUndefined(panelZ) && !isNaN(panelZ)) {
++                    Dom.setStyle(this.mask, "zIndex", panelZ - 1);
++                }
++            }
++        },
++
++        /**
++        * Renders the Panel by inserting the elements that are not already in 
++        * the main Panel into their correct places. Optionally appends the 
++        * Panel to the specified node prior to the render's execution. NOTE: 
++        * For Panels without existing markup, the appendToNode argument is 
++        * REQUIRED. If this argument is ommitted and the current element is 
++        * not present in the document, the function will return false, 
++        * indicating that the render was a failure.
++        * @method render
++        * @param {String} appendToNode The element id to which the Module 
++        * should be appended to prior to rendering <em>OR</em>
++        * @param {HTMLElement} appendToNode The element to which the Module 
++        * should be appended to prior to rendering
++        * @return {boolean} Success or failure of the render
++        */
++        render: function (appendToNode) {
++            return Panel.superclass.render.call(this, appendToNode, this.innerElement);
++        },
++
++        /**
++         * Renders the currently set header into it's proper position under the 
++         * module element. If the module element is not provided, "this.innerElement" 
++         * is used.
++         *
++         * @method _renderHeader
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderHeader: function(moduleElement){
++            moduleElement = moduleElement || this.innerElement;
++			Panel.superclass._renderHeader.call(this, moduleElement);
++        },
++
++        /**
++         * Renders the currently set body into it's proper position under the 
++         * module element. If the module element is not provided, "this.innerElement" 
++         * is used.
++         * 
++         * @method _renderBody
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element.
++         */
++        _renderBody: function(moduleElement){
++            moduleElement = moduleElement || this.innerElement;
++            Panel.superclass._renderBody.call(this, moduleElement);
++        },
++
++        /**
++         * Renders the currently set footer into it's proper position under the 
++         * module element. If the module element is not provided, "this.innerElement" 
++         * is used.
++         *
++         * @method _renderFooter
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderFooter: function(moduleElement){
++            moduleElement = moduleElement || this.innerElement;
++            Panel.superclass._renderFooter.call(this, moduleElement);
++        },
++        
++        /**
++        * Removes the Panel element from the DOM and sets all child elements
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++            Overlay.windowResizeEvent.unsubscribe(this.sizeMask, this);
++            this.removeMask();
++            if (this.close) {
++                Event.purgeElement(this.close);
++            }
++            Panel.superclass.destroy.call(this);  
++        },
++
++        /**
++         * Forces the underlay element to be repainted through the application/removal 
++         * of a yui-force-redraw class to the underlay element.
++         *
++         * @method forceUnderlayRedraw
++         */
++        forceUnderlayRedraw : function () {
++            var u = this.underlay;
++            Dom.addClass(u, "yui-force-redraw");
++            setTimeout(function(){Dom.removeClass(u, "yui-force-redraw");}, 0);
++        },
++
++        /**
++        * Returns a String representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Panel.
++        */
++        toString: function () {
++            return "Panel " + this.id;
++        }
++    
++    });
++
++}());
++(function () {
++
++    /**
++    * <p>
++    * Dialog is an implementation of Panel that can be used to submit form 
++    * data.
++    * </p>
++    * <p>
++    * Built-in functionality for buttons with event handlers is included. 
++    * If the optional YUI Button dependancy is included on the page, the buttons
++    * created will be instances of YAHOO.widget.Button, otherwise regular HTML buttons
++    * will be created.
++    * </p>
++    * <p>
++    * Forms can be processed in 3 ways -- via an asynchronous Connection utility call, 
++    * a simple form POST or GET, or manually. The YUI Connection utility should be
++    * included if you're using the default "async" postmethod, but is not required if
++    * you're using any of the other postmethod values.
++    * </p>
++    * @namespace YAHOO.widget
++    * @class Dialog
++    * @extends YAHOO.widget.Panel
++    * @constructor
++    * @param {String} el The element ID representing the Dialog <em>OR</em>
++    * @param {HTMLElement} el The element representing the Dialog
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Dialog. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Dialog = function (el, userConfig) {
++        YAHOO.widget.Dialog.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Dom = YAHOO.util.Dom,
++        Dialog = YAHOO.widget.Dialog,
++        Lang = YAHOO.lang,
++
++        /**
++         * Constant representing the name of the Dialog's events
++         * @property EVENT_TYPES
++         * @private
++         * @final
++         * @type Object
++         */
++        EVENT_TYPES = {
++            "BEFORE_SUBMIT": "beforeSubmit",
++            "SUBMIT": "submit",
++            "MANUAL_SUBMIT": "manualSubmit",
++            "ASYNC_SUBMIT": "asyncSubmit",
++            "FORM_SUBMIT": "formSubmit",
++            "CANCEL": "cancel"
++        },
++
++        /**
++        * Constant representing the Dialog's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "POST_METHOD": { 
++                key: "postmethod", 
++                value: "async"
++            },
++
++            "POST_DATA" : {
++                key: "postdata",
++                value: null
++            },
++
++            "BUTTONS": {
++                key: "buttons",
++                value: "none",
++                supercedes: ["visible"]
++            },
++
++            "HIDEAFTERSUBMIT" : {
++                key: "hideaftersubmit",
++                value: true
++            }
++
++        };
++
++    /**
++    * Constant representing the default CSS class used for a Dialog
++    * @property YAHOO.widget.Dialog.CSS_DIALOG
++    * @static
++    * @final
++    * @type String
++    */
++    Dialog.CSS_DIALOG = "yui-dialog";
++
++    function removeButtonEventHandlers() {
++
++        var aButtons = this._aButtons,
++            nButtons,
++            oButton,
++            i;
++
++        if (Lang.isArray(aButtons)) {
++            nButtons = aButtons.length;
++
++            if (nButtons > 0) {
++                i = nButtons - 1;
++                do {
++                    oButton = aButtons[i];
++
++                    if (YAHOO.widget.Button && oButton instanceof YAHOO.widget.Button) {
++                        oButton.destroy();
++                    }
++                    else if (oButton.tagName.toUpperCase() == "BUTTON") {
++                        Event.purgeElement(oButton);
++                        Event.purgeElement(oButton, false);
++                    }
++                }
++                while (i--);
++            }
++        }
++    }
++
++    YAHOO.extend(Dialog, YAHOO.widget.Panel, { 
++
++        /**
++        * @property form
++        * @description Object reference to the Dialog's 
++        * <code>&#60;form&#62;</code> element.
++        * @default null 
++        * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
++        * level-one-html.html#ID-40002357">HTMLFormElement</a>
++        */
++        form: null,
++    
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the Dialog's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++            Dialog.superclass.initDefaultConfig.call(this);
++
++            /**
++            * The internally maintained callback object for use with the 
++            * Connection utility. The format of the callback object is 
++            * similar to Connection Manager's callback object and is 
++            * simply passed through to Connection Manager when the async 
++            * request is made.
++            * @property callback
++            * @type Object
++            */
++            this.callback = {
++
++                /**
++                * The function to execute upon success of the 
++                * Connection submission (when the form does not
++                * contain a file input element).
++                * 
++                * @property callback.success
++                * @type Function
++                */
++                success: null,
++
++                /**
++                * The function to execute upon failure of the 
++                * Connection submission
++                * @property callback.failure
++                * @type Function
++                */
++                failure: null,
++
++                /**
++                *<p>
++                * The function to execute upon success of the 
++                * Connection submission, when the form contains
++                * a file input element.
++                * </p>
++                * <p>
++                * <em>NOTE:</em> Connection manager will not
++                * invoke the success or failure handlers for the file
++                * upload use case. This will be the only callback
++                * handler invoked.
++                * </p>
++                * <p>
++                * For more information, see the <a href="http://developer.yahoo.com/yui/connection/#file">
++                * Connection Manager documenation on file uploads</a>.
++                * </p>
++                * @property callback.upload
++                * @type Function
++                */
++
++                /**
++                * The arbitraty argument or arguments to pass to the Connection 
++                * callback functions
++                * @property callback.argument
++                * @type Object
++                */
++                argument: null
++
++            };
++
++            // Add form dialog config properties //
++            /**
++            * The method to use for posting the Dialog's form. Possible values 
++            * are "async", "form", and "manual".
++            * @config postmethod
++            * @type String
++            * @default async
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.POST_METHOD.key, {
++                handler: this.configPostMethod, 
++                value: DEFAULT_CONFIG.POST_METHOD.value, 
++                validator: function (val) {
++                    if (val != "form" && val != "async" && val != "none" && 
++                        val != "manual") {
++                        return false;
++                    } else {
++                        return true;
++                    }
++                }
++            });
++
++            /**
++            * Any additional post data which needs to be sent when using the 
++            * <a href="#config_postmethod">async</a> postmethod for dialog POST submissions.
++            * The format for the post data string is defined by Connection Manager's 
++            * <a href="YAHOO.util.Connect.html#method_asyncRequest">asyncRequest</a> 
++            * method.
++            * @config postdata
++            * @type String
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.POST_DATA.key, {
++                value: DEFAULT_CONFIG.POST_DATA.value
++            });
++
++            /**
++            * This property is used to configure whether or not the 
++            * dialog should be automatically hidden after submit.
++            * 
++            * @config hideaftersubmit
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.HIDEAFTERSUBMIT.key, {
++                value: DEFAULT_CONFIG.HIDEAFTERSUBMIT.value
++            });
++
++            /**
++            * Array of object literals, each containing a set of properties 
++            * defining a button to be appended into the Dialog's footer.
++            *
++            * <p>Each button object in the buttons array can have three properties:</p>
++            * <dl>
++            *    <dt>text:</dt>
++            *    <dd>
++            *       The text that will display on the face of the button. The text can 
++            *       include HTML, as long as it is compliant with HTML Button specifications.
++            *    </dd>
++            *    <dt>handler:</dt>
++            *    <dd>Can be either:
++            *    <ol>
++            *       <li>A reference to a function that should fire when the 
++            *       button is clicked.  (In this case scope of this function is 
++            *       always its Dialog instance.)</li>
++            *
++            *       <li>An object literal representing the code to be 
++            *       executed when the button is clicked.
++            *       
++            *       <p>Format:</p>
++            *
++            *       <p>
++            *       <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>
++            *       </p>
++            *       </li>
++            *     </ol>
++            *     </dd>
++            *     <dt>isDefault:</dt>
++            *     <dd>
++            *        An optional boolean value that specifies that a button 
++            *        should be highlighted and focused by default.
++            *     </dd>
++            * </dl>
++            *
++            * <em>NOTE:</em>If the YUI Button Widget is included on the page, 
++            * the buttons created will be instances of YAHOO.widget.Button. 
++            * Otherwise, HTML Buttons (<code>&#60;BUTTON&#62;</code>) will be 
++            * created.
++            *
++            * @config buttons
++            * @type {Array|String}
++            * @default "none"
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.BUTTONS.key, {
++                handler: this.configButtons,
++                value: DEFAULT_CONFIG.BUTTONS.value,
++                supercedes : DEFAULT_CONFIG.BUTTONS.supercedes
++            }); 
++
++        },
++
++        /**
++        * Initializes the custom events for Dialog which are fired 
++        * automatically at appropriate times by the Dialog class.
++        * @method initEvents
++        */
++        initEvents: function () {
++            Dialog.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired prior to submission
++            * @event beforeSubmitEvent
++            */ 
++            this.beforeSubmitEvent = 
++                this.createEvent(EVENT_TYPES.BEFORE_SUBMIT);
++            this.beforeSubmitEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired after submission
++            * @event submitEvent
++            */
++            this.submitEvent = this.createEvent(EVENT_TYPES.SUBMIT);
++            this.submitEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired for manual submission, before the generic submit event is fired
++            * @event manualSubmitEvent
++            */
++            this.manualSubmitEvent = 
++                this.createEvent(EVENT_TYPES.MANUAL_SUBMIT);
++            this.manualSubmitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after asynchronous submission, before the generic submit event is fired
++            *
++            * @event asyncSubmitEvent
++            * @param {Object} conn The connection object, returned by YAHOO.util.Connect.asyncRequest
++            */
++            this.asyncSubmitEvent = this.createEvent(EVENT_TYPES.ASYNC_SUBMIT);
++            this.asyncSubmitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after form-based submission, before the generic submit event is fired
++            * @event formSubmitEvent
++            */
++            this.formSubmitEvent = this.createEvent(EVENT_TYPES.FORM_SUBMIT);
++            this.formSubmitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after cancel
++            * @event cancelEvent
++            */
++            this.cancelEvent = this.createEvent(EVENT_TYPES.CANCEL);
++            this.cancelEvent.signature = SIGNATURE;
++        
++        },
++        
++        /**
++        * The Dialog initialization method, which is executed for Dialog and 
++        * all of its subclasses. 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.
++        * 
++        * @method init
++        * @param {String} el The element ID representing the Dialog <em>OR</em>
++        * @param {HTMLElement} el The element representing the Dialog
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Dialog. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                 Note that we don't pass the user config in here yet because 
++                 we only want it executed once, at the lowest subclass level
++            */
++
++            Dialog.superclass.init.call(this, el/*, userConfig*/); 
++
++            this.beforeInitEvent.fire(Dialog);
++
++            Dom.addClass(this.element, Dialog.CSS_DIALOG);
++
++            this.cfg.setProperty("visible", false);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            this.showEvent.subscribe(this.focusFirst, this, true);
++            this.beforeHideEvent.subscribe(this.blurButtons, this, true);
++
++            this.subscribe("changeBody", this.registerForm);
++
++            this.initEvent.fire(Dialog);
++        },
++
++        /**
++        * Submits the Dialog's form depending on the value of the 
++        * "postmethod" configuration property.  <strong>Please note:
++        * </strong> As of version 2.3 this method will automatically handle 
++        * asyncronous file uploads should the Dialog instance's form contain 
++        * <code>&#60;input type="file"&#62;</code> elements.  If a Dialog 
++        * instance will be handling asyncronous file uploads, its 
++        * <code>callback</code> property will need to be setup with a 
++        * <code>upload</code> handler rather than the standard 
++        * <code>success</code> and, or <code>failure</code> handlers.  For more 
++        * information, see the <a href="http://developer.yahoo.com/yui/
++        * connection/#file">Connection Manager documenation on file uploads</a>.
++        * @method doSubmit
++        */
++        doSubmit: function () {
++
++            var Connect = YAHOO.util.Connect,
++                oForm = this.form,
++                bUseFileUpload = false,
++                bUseSecureFileUpload = false,
++                aElements,
++                nElements,
++                i,
++                formAttrs;
++
++            switch (this.cfg.getProperty("postmethod")) {
++
++                case "async":
++                    aElements = oForm.elements;
++                    nElements = aElements.length;
++
++                    if (nElements > 0) {
++                        i = nElements - 1;
++                        do {
++                            if (aElements[i].type == "file") {
++                                bUseFileUpload = true;
++                                break;
++                            }
++                        }
++                        while(i--);
++                    }
++
++                    if (bUseFileUpload && YAHOO.env.ua.ie && this.isSecure) {
++                        bUseSecureFileUpload = true;
++                    }
++
++                    formAttrs = this._getFormAttributes(oForm);
++
++                    Connect.setForm(oForm, bUseFileUpload, bUseSecureFileUpload);
++
++                    var postData = this.cfg.getProperty("postdata");
++                    var c = Connect.asyncRequest(formAttrs.method, formAttrs.action, this.callback, postData);
++
++                    this.asyncSubmitEvent.fire(c);
++
++                    break;
++
++                case "form":
++                    oForm.submit();
++                    this.formSubmitEvent.fire();
++                    break;
++
++                case "none":
++                case "manual":
++                    this.manualSubmitEvent.fire();
++                    break;
++            }
++        },
++
++        /**
++         * Retrieves important attributes (currently method and action) from
++         * the form element, accounting for any elements which may have the same name 
++         * as the attributes. Defaults to "POST" and "" for method and action respectively
++         * if the attribute cannot be retrieved.
++         *
++         * @method _getFormAttributes
++         * @protected
++         * @param {HTMLFormElement} oForm The HTML Form element from which to retrieve the attributes
++         * @return {Object} Object literal, with method and action String properties.
++         */
++        _getFormAttributes : function(oForm){
++            var attrs = {
++                method : null,
++                action : null
++            };
++
++            if (oForm) {
++                if (oForm.getAttributeNode) {
++                    var action = oForm.getAttributeNode("action");
++                    var method = oForm.getAttributeNode("method");
++
++                    if (action) {
++                        attrs.action = action.value;
++                    }
++
++                    if (method) {
++                        attrs.method = method.value;
++                    }
++
++                } else {
++                    attrs.action = oForm.getAttribute("action");
++                    attrs.method = oForm.getAttribute("method");
++                }
++            }
++
++            attrs.method = (Lang.isString(attrs.method) ? attrs.method : "POST").toUpperCase();
++            attrs.action = Lang.isString(attrs.action) ? attrs.action : "";
++
++            return attrs;
++        },
++
++        /**
++        * Prepares the Dialog's internal FORM object, creating one if one is
++        * not currently present.
++        * @method registerForm
++        */
++        registerForm: function() {
++
++            var form = this.element.getElementsByTagName("form")[0];
++
++            if (this.form) {
++                if (this.form == form && Dom.isAncestor(this.element, this.form)) {
++                    return;
++                } else {
++                    Event.purgeElement(this.form);
++                    this.form = null;
++                }
++            }
++
++            if (!form) {
++                form = document.createElement("form");
++                form.name = "frm_" + this.id;
++                this.body.appendChild(form);
++            }
++
++            if (form) {
++                this.form = form;
++                Event.on(form, "submit", this._submitHandler, this, true);
++            }
++        },
++
++        /**
++         * Internal handler for the form submit event
++         *
++         * @method _submitHandler
++         * @protected
++         * @param {DOMEvent} e The DOM Event object
++         */
++        _submitHandler : function(e) {
++            Event.stopEvent(e);
++            this.submit();
++            this.form.blur();
++        },
++
++        /**
++         * Sets up a tab, shift-tab loop between the first and last elements
++         * provided. NOTE: Sets up the preventBackTab and preventTabOut KeyListener
++         * instance properties, which are reset everytime this method is invoked.
++         *
++         * @method setTabLoop
++         * @param {HTMLElement} firstElement
++         * @param {HTMLElement} lastElement
++         *
++         */
++        setTabLoop : function(firstElement, lastElement) {
++
++            firstElement = firstElement || this.firstButton;
++            lastElement = this.lastButton || lastElement;
++
++            Dialog.superclass.setTabLoop.call(this, firstElement, lastElement);
++        },
++
++        /**
++         * Configures instance properties, pointing to the 
++         * first and last focusable elements in the Dialog's form.
++         *
++         * @method setFirstLastFocusable
++         */
++        setFirstLastFocusable : function() {
++
++            Dialog.superclass.setFirstLastFocusable.call(this);
++
++            var i, l, el, elements = this.focusableElements;
++
++            this.firstFormElement = null;
++            this.lastFormElement = null;
++
++            if (this.form && elements && elements.length > 0) {
++                l = elements.length;
++
++                for (i = 0; i < l; ++i) {
++                    el = elements[i];
++                    if (this.form === el.form) {
++                        this.firstFormElement = el;
++                        break;
++                    }
++                }
++
++                for (i = l-1; i >= 0; --i) {
++                    el = elements[i];
++                    if (this.form === el.form) {
++                        this.lastFormElement = el;
++                        break;
++                    }
++                }
++            }
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * The default event handler fired when the "close" property is 
++        * changed. The method controls the appending or hiding of the close
++        * icon at the top right of the Dialog.
++        * @method configClose
++        * @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.
++        */
++        configClose: function (type, args, obj) {
++            Dialog.superclass.configClose.apply(this, arguments);
++        },
++
++        /**
++         * Event handler for the close icon
++         * 
++         * @method _doClose
++         * @protected
++         * 
++         * @param {DOMEvent} e
++         */
++         _doClose : function(e) {
++            Event.preventDefault(e);
++            this.cancel();
++        },
++
++        /**
++        * The default event handler for the "buttons" configuration property
++        * @method configButtons
++        * @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.
++        */
++        configButtons: function (type, args, obj) {
++
++            var Button = YAHOO.widget.Button,
++                aButtons = args[0],
++                oInnerElement = this.innerElement,
++                oButton,
++                oButtonEl,
++                oYUIButton,
++                nButtons,
++                oSpan,
++                oFooter,
++                i;
++
++            removeButtonEventHandlers.call(this);
++
++            this._aButtons = null;
++
++            if (Lang.isArray(aButtons)) {
++
++                oSpan = document.createElement("span");
++                oSpan.className = "button-group";
++                nButtons = aButtons.length;
++
++                this._aButtons = [];
++                this.defaultHtmlButton = null;
++
++                for (i = 0; i < nButtons; i++) {
++                    oButton = aButtons[i];
++
++                    if (Button) {
++                        oYUIButton = new Button({ label: oButton.text});
++                        oYUIButton.appendTo(oSpan);
++
++                        oButtonEl = oYUIButton.get("element");
++
++                        if (oButton.isDefault) {
++                            oYUIButton.addClass("default");
++                            this.defaultHtmlButton = oButtonEl;
++                        }
++
++                        if (Lang.isFunction(oButton.handler)) {
++
++                            oYUIButton.set("onclick", { 
++                                fn: oButton.handler, 
++                                obj: this, 
++                                scope: this 
++                            });
++
++                        } else if (Lang.isObject(oButton.handler) && Lang.isFunction(oButton.handler.fn)) {
++
++                            oYUIButton.set("onclick", { 
++                                fn: oButton.handler.fn, 
++                                obj: ((!Lang.isUndefined(oButton.handler.obj)) ? oButton.handler.obj : this), 
++                                scope: (oButton.handler.scope || this) 
++                            });
++
++                        }
++
++                        this._aButtons[this._aButtons.length] = oYUIButton;
++
++                    } else {
++
++                        oButtonEl = document.createElement("button");
++                        oButtonEl.setAttribute("type", "button");
++
++                        if (oButton.isDefault) {
++                            oButtonEl.className = "default";
++                            this.defaultHtmlButton = oButtonEl;
++                        }
++
++                        oButtonEl.innerHTML = oButton.text;
++
++                        if (Lang.isFunction(oButton.handler)) {
++                            Event.on(oButtonEl, "click", oButton.handler, this, true);
++                        } else if (Lang.isObject(oButton.handler) && 
++                            Lang.isFunction(oButton.handler.fn)) {
++    
++                            Event.on(oButtonEl, "click", 
++                                oButton.handler.fn, 
++                                ((!Lang.isUndefined(oButton.handler.obj)) ? oButton.handler.obj : this), 
++                                (oButton.handler.scope || this));
++                        }
++
++                        oSpan.appendChild(oButtonEl);
++                        this._aButtons[this._aButtons.length] = oButtonEl;
++                    }
++
++                    oButton.htmlButton = oButtonEl;
++
++                    if (i === 0) {
++                        this.firstButton = oButtonEl;
++                    }
++
++                    if (i == (nButtons - 1)) {
++                        this.lastButton = oButtonEl;
++                    }
++                }
++
++                this.setFooter(oSpan);
++
++                oFooter = this.footer;
++
++                if (Dom.inDocument(this.element) && !Dom.isAncestor(oInnerElement, oFooter)) {
++                    oInnerElement.appendChild(oFooter);
++                }
++
++                this.buttonSpan = oSpan;
++
++            } else { // Do cleanup
++                oSpan = this.buttonSpan;
++                oFooter = this.footer;
++                if (oSpan && oFooter) {
++                    oFooter.removeChild(oSpan);
++                    this.buttonSpan = null;
++                    this.firstButton = null;
++                    this.lastButton = null;
++                    this.defaultHtmlButton = null;
++                }
++            }
++
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * @method getButtons
++        * @description Returns an array containing each of the Dialog's 
++        * buttons, by default an array of HTML <code>&#60;BUTTON&#62;</code> 
++        * elements.  If the Dialog's buttons were created using the 
++        * YAHOO.widget.Button class (via the inclusion of the optional Button 
++        * dependancy on the page), an array of YAHOO.widget.Button instances 
++        * is returned.
++        * @return {Array}
++        */
++        getButtons: function () {
++            return this._aButtons || null;
++        },
++
++        /**
++         * <p>
++         * Sets focus to the first focusable element in the Dialog's form if found, 
++         * else, the default button if found, else the first button defined via the 
++         * "buttons" configuration property.
++         * </p>
++         * <p>
++         * This method is invoked when the Dialog is made visible.
++         * </p>
++         * @method focusFirst
++         */
++        focusFirst: function (type, args, obj) {
++
++            var el = this.firstFormElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (el) {
++                try {
++                    el.focus();
++                } catch(oException) {
++                    // Ignore
++                }
++            } else {
++                if (this.defaultHtmlButton) {
++                    this.focusDefaultButton();
++                } else {
++                    this.focusFirstButton();
++                }
++            }
++        },
++
++        /**
++        * Sets focus to the last element in the Dialog's form or the last 
++        * button defined via the "buttons" configuration property.
++        * @method focusLast
++        */
++        focusLast: function (type, args, obj) {
++
++            var aButtons = this.cfg.getProperty("buttons"),
++                el = this.lastFormElement;
++
++            if (args && args[1]) {
++                Event.stopEvent(args[1]);
++            }
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                this.focusLastButton();
++            } else {
++                if (el) {
++                    try {
++                        el.focus();
++                    } catch(oException) {
++                        // Ignore
++                    }
++                }
++            }
++        },
++
++        /**
++         * Helper method to normalize button references. It either returns the 
++         * YUI Button instance for the given element if found,
++         * or the passes back the HTMLElement reference if a corresponding YUI Button
++         * reference is not found or YAHOO.widget.Button does not exist on the page.
++         *
++         * @method _getButton
++         * @private
++         * @param {HTMLElement} button
++         * @return {YAHOO.widget.Button|HTMLElement}
++         */
++        _getButton : function(button) {
++            var Button = YAHOO.widget.Button;
++
++            // If we have an HTML button and YUI Button is on the page, 
++            // get the YUI Button reference if available.
++            if (Button && button && button.nodeName && button.id) {
++                button = Button.getButton(button.id) || button;
++            }
++
++            return button;
++        },
++
++        /**
++        * Sets the focus to the button that is designated as the default via 
++        * the "buttons" configuration property. By default, this method is 
++        * called when the Dialog is made visible.
++        * @method focusDefaultButton
++        */
++        focusDefaultButton: function () {
++            var button = this._getButton(this.defaultHtmlButton);
++            if (button) {
++                /*
++                    Place the call to the "focus" method inside a try/catch
++                    block to prevent IE from throwing JavaScript errors if
++                    the element is disabled or hidden.
++                */
++                try {
++                    button.focus();
++                } catch(oException) {
++                }
++            }
++        },
++
++        /**
++        * Blurs all the buttons defined via the "buttons" 
++        * configuration property.
++        * @method blurButtons
++        */
++        blurButtons: function () {
++            
++            var aButtons = this.cfg.getProperty("buttons"),
++                nButtons,
++                oButton,
++                oElement,
++                i;
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                nButtons = aButtons.length;
++                if (nButtons > 0) {
++                    i = (nButtons - 1);
++                    do {
++                        oButton = aButtons[i];
++                        if (oButton) {
++                            oElement = this._getButton(oButton.htmlButton);
++                            if (oElement) {
++                                /*
++                                    Place the call to the "blur" method inside  
++                                    a try/catch block to prevent IE from  
++                                    throwing JavaScript errors if the element 
++                                    is disabled or hidden.
++                                */
++                                try {
++                                    oElement.blur();
++                                } catch(oException) {
++                                    // ignore
++                                }
++                            }
++                        }
++                    } while(i--);
++                }
++            }
++        },
++
++        /**
++        * Sets the focus to the first button created via the "buttons"
++        * configuration property.
++        * @method focusFirstButton
++        */
++        focusFirstButton: function () {
++
++            var aButtons = this.cfg.getProperty("buttons"),
++                oButton,
++                oElement;
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                oButton = aButtons[0];
++                if (oButton) {
++                    oElement = this._getButton(oButton.htmlButton);
++                    if (oElement) {
++                        /*
++                            Place the call to the "focus" method inside a 
++                            try/catch block to prevent IE from throwing 
++                            JavaScript errors if the element is disabled 
++                            or hidden.
++                        */
++                        try {
++                            oElement.focus();
++                        } catch(oException) {
++                            // ignore
++                        }
++                    }
++                }
++            }
++        },
++
++        /**
++        * Sets the focus to the last button created via the "buttons" 
++        * configuration property.
++        * @method focusLastButton
++        */
++        focusLastButton: function () {
++
++            var aButtons = this.cfg.getProperty("buttons"),
++                nButtons,
++                oButton,
++                oElement;
++
++            if (aButtons && Lang.isArray(aButtons)) {
++                nButtons = aButtons.length;
++                if (nButtons > 0) {
++                    oButton = aButtons[(nButtons - 1)];
++
++                    if (oButton) {
++                        oElement = this._getButton(oButton.htmlButton);
++                        if (oElement) {
++                            /*
++                                Place the call to the "focus" method inside a 
++                                try/catch block to prevent IE from throwing 
++                                JavaScript errors if the element is disabled
++                                or hidden.
++                            */
++        
++                            try {
++                                oElement.focus();
++                            } catch(oException) {
++                                // Ignore
++                            }
++                        }
++                    }
++                }
++            }
++        },
++
++        /**
++        * The default event handler for the "postmethod" configuration property
++        * @method configPostMethod
++        * @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.
++        */
++        configPostMethod: function (type, args, obj) {
++            this.registerForm();
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * Built-in function hook for writing a validation function that will 
++        * be checked for a "true" value prior to a submit. This function, as 
++        * implemented by default, always returns true, so it should be 
++        * overridden if validation is necessary.
++        * @method validate
++        */
++        validate: function () {
++            return true;
++        },
++
++        /**
++        * Executes a submit of the Dialog if validation 
++        * is successful. By default the Dialog is hidden
++        * after submission, but you can set the "hideaftersubmit"
++        * configuration property to false, to prevent the Dialog
++        * from being hidden.
++        * 
++        * @method submit
++        */
++        submit: function () {
++            if (this.validate()) {
++                if (this.beforeSubmitEvent.fire()) {
++                    this.doSubmit();
++                    this.submitEvent.fire();
++    
++                    if (this.cfg.getProperty("hideaftersubmit")) {
++                        this.hide();
++                    }
++    
++                    return true;
++                } else {
++                    return false;
++                }
++            } else {
++                return false;
++            }
++        },
++
++        /**
++        * Executes the cancel of the Dialog followed by a hide.
++        * @method cancel
++        */
++        cancel: function () {
++            this.cancelEvent.fire();
++            this.hide();
++        },
++        
++        /**
++        * Returns a JSON-compatible data structure representing the data 
++        * currently contained in the form.
++        * @method getData
++        * @return {Object} A JSON object reprsenting the data of the 
++        * current form.
++        */
++        getData: function () {
++
++            var oForm = this.form,
++                aElements,
++                nTotalElements,
++                oData,
++                sName,
++                oElement,
++                nElements,
++                sType,
++                sTagName,
++                aOptions,
++                nOptions,
++                aValues,
++                oOption,
++                oRadio,
++                oCheckbox,
++                valueAttr,
++                i,
++                n;    
++    
++            function isFormElement(p_oElement) {
++                var sTag = p_oElement.tagName.toUpperCase();
++                return ((sTag == "INPUT" || sTag == "TEXTAREA" || 
++                        sTag == "SELECT") && p_oElement.name == sName);
++            }
++
++            if (oForm) {
++
++                aElements = oForm.elements;
++                nTotalElements = aElements.length;
++                oData = {};
++
++                for (i = 0; i < nTotalElements; i++) {
++                    sName = aElements[i].name;
++
++                    /*
++                        Using "Dom.getElementsBy" to safeguard user from JS 
++                        errors that result from giving a form field (or set of 
++                        fields) the same name as a native method of a form 
++                        (like "submit") or a DOM collection (such as the "item"
++                        method). Originally tried accessing fields via the 
++                        "namedItem" method of the "element" collection, but 
++                        discovered that it won't return a collection of fields 
++                        in Gecko.
++                    */
++
++                    oElement = Dom.getElementsBy(isFormElement, "*", oForm);
++                    nElements = oElement.length;
++
++                    if (nElements > 0) {
++                        if (nElements == 1) {
++                            oElement = oElement[0];
++
++                            sType = oElement.type;
++                            sTagName = oElement.tagName.toUpperCase();
++
++                            switch (sTagName) {
++                                case "INPUT":
++                                    if (sType == "checkbox") {
++                                        oData[sName] = oElement.checked;
++                                    } else if (sType != "radio") {
++                                        oData[sName] = oElement.value;
++                                    }
++                                    break;
++
++                                case "TEXTAREA":
++                                    oData[sName] = oElement.value;
++                                    break;
++    
++                                case "SELECT":
++                                    aOptions = oElement.options;
++                                    nOptions = aOptions.length;
++                                    aValues = [];
++    
++                                    for (n = 0; n < nOptions; n++) {
++                                        oOption = aOptions[n];
++                                        if (oOption.selected) {
++                                            valueAttr = oOption.attributes.value;
++                                            aValues[aValues.length] = (valueAttr && valueAttr.specified) ? oOption.value : oOption.text;
++                                        }
++                                    }
++                                    oData[sName] = aValues;
++                                    break;
++                            }
++        
++                        } else {
++                            sType = oElement[0].type;
++                            switch (sType) {
++                                case "radio":
++                                    for (n = 0; n < nElements; n++) {
++                                        oRadio = oElement[n];
++                                        if (oRadio.checked) {
++                                            oData[sName] = oRadio.value;
++                                            break;
++                                        }
++                                    }
++                                    break;
++        
++                                case "checkbox":
++                                    aValues = [];
++                                    for (n = 0; n < nElements; n++) {
++                                        oCheckbox = oElement[n];
++                                        if (oCheckbox.checked) {
++                                            aValues[aValues.length] =  oCheckbox.value;
++                                        }
++                                    }
++                                    oData[sName] = aValues;
++                                    break;
++                            }
++                        }
++                    }
++                }
++            }
++
++            return oData;
++        },
++
++        /**
++        * Removes the Panel element from the DOM and sets all child elements 
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++            removeButtonEventHandlers.call(this);
++
++            this._aButtons = null;
++
++            var aForms = this.element.getElementsByTagName("form"),
++                oForm;
++
++            if (aForms.length > 0) {
++                oForm = aForms[0];
++
++                if (oForm) {
++                    Event.purgeElement(oForm);
++                    if (oForm.parentNode) {
++                        oForm.parentNode.removeChild(oForm);
++                    }
++                    this.form = null;
++                }
++            }
++            Dialog.superclass.destroy.call(this);
++        },
++
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Dialog
++        */
++        toString: function () {
++            return "Dialog " + this.id;
++        }
++    
++    });
++
++}());
++(function () {
++
++    /**
++    * SimpleDialog is a simple implementation of Dialog that can be used to 
++    * submit a single value. Forms can be processed in 3 ways -- via an 
++    * asynchronous Connection utility call, a simple form POST or GET, 
++    * or manually.
++    * @namespace YAHOO.widget
++    * @class SimpleDialog
++    * @extends YAHOO.widget.Dialog
++    * @constructor
++    * @param {String} el The element ID representing the SimpleDialog 
++    * <em>OR</em>
++    * @param {HTMLElement} el The element representing the SimpleDialog
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this SimpleDialog. See 
++    * configuration documentation for more details.
++    */
++    YAHOO.widget.SimpleDialog = function (el, userConfig) {
++    
++        YAHOO.widget.SimpleDialog.superclass.constructor.call(this, 
++            el, userConfig);
++    
++    };
++
++    var Dom = YAHOO.util.Dom,
++        SimpleDialog = YAHOO.widget.SimpleDialog,
++    
++        /**
++        * Constant representing the SimpleDialog's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++        
++            "ICON": { 
++                key: "icon", 
++                value: "none", 
++                suppressEvent: true  
++            },
++        
++            "TEXT": { 
++                key: "text", 
++                value: "", 
++                suppressEvent: true, 
++                supercedes: ["icon"] 
++            }
++        
++        };
++
++    /**
++    * Constant for the standard network icon for a blocking action
++    * @property YAHOO.widget.SimpleDialog.ICON_BLOCK
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_BLOCK = "blckicon";
++    
++    /**
++    * Constant for the standard network icon for alarm
++    * @property YAHOO.widget.SimpleDialog.ICON_ALARM
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_ALARM = "alrticon";
++    
++    /**
++    * Constant for the standard network icon for help
++    * @property YAHOO.widget.SimpleDialog.ICON_HELP
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_HELP  = "hlpicon";
++    
++    /**
++    * Constant for the standard network icon for info
++    * @property YAHOO.widget.SimpleDialog.ICON_INFO
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_INFO  = "infoicon";
++    
++    /**
++    * Constant for the standard network icon for warn
++    * @property YAHOO.widget.SimpleDialog.ICON_WARN
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_WARN  = "warnicon";
++    
++    /**
++    * Constant for the standard network icon for a tip
++    * @property YAHOO.widget.SimpleDialog.ICON_TIP
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_TIP   = "tipicon";
++
++    /**
++    * Constant representing the name of the CSS class applied to the element 
++    * created by the "icon" configuration property.
++    * @property YAHOO.widget.SimpleDialog.ICON_CSS_CLASSNAME
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.ICON_CSS_CLASSNAME = "yui-icon";
++    
++    /**
++    * Constant representing the default CSS class used for a SimpleDialog
++    * @property YAHOO.widget.SimpleDialog.CSS_SIMPLEDIALOG
++    * @static
++    * @final
++    * @type String
++    */
++    SimpleDialog.CSS_SIMPLEDIALOG = "yui-simple-dialog";
++
++    
++    YAHOO.extend(SimpleDialog, YAHOO.widget.Dialog, {
++    
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the SimpleDialog's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++        
++            SimpleDialog.superclass.initDefaultConfig.call(this);
++        
++            // Add dialog config properties //
++        
++            /**
++            * Sets the informational icon for the SimpleDialog
++            * @config icon
++            * @type String
++            * @default "none"
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.ICON.key, {
++                handler: this.configIcon,
++                value: DEFAULT_CONFIG.ICON.value,
++                suppressEvent: DEFAULT_CONFIG.ICON.suppressEvent
++            });
++        
++            /**
++            * Sets the text for the SimpleDialog
++            * @config text
++            * @type String
++            * @default ""
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.TEXT.key, { 
++                handler: this.configText, 
++                value: DEFAULT_CONFIG.TEXT.value, 
++                suppressEvent: DEFAULT_CONFIG.TEXT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.TEXT.supercedes 
++            });
++        
++        },
++        
++        
++        /**
++        * The SimpleDialog initialization method, which is executed for 
++        * SimpleDialog and all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the SimpleDialog 
++        * <em>OR</em>
++        * @param {HTMLElement} el The element representing the SimpleDialog
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this 
++        * SimpleDialog. See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                Note that we don't pass the user config in here yet because we 
++                only want it executed once, at the lowest subclass level
++            */
++
++            SimpleDialog.superclass.init.call(this, el/*, userConfig*/);
++        
++            this.beforeInitEvent.fire(SimpleDialog);
++        
++            Dom.addClass(this.element, SimpleDialog.CSS_SIMPLEDIALOG);
++        
++            this.cfg.queueProperty("postmethod", "manual");
++        
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++        
++            this.beforeRenderEvent.subscribe(function () {
++                if (! this.body) {
++                    this.setBody("");
++                }
++            }, this, true);
++        
++            this.initEvent.fire(SimpleDialog);
++        
++        },
++        
++        /**
++        * Prepares the SimpleDialog's internal FORM object, creating one if one 
++        * is not currently present, and adding the value hidden field.
++        * @method registerForm
++        */
++        registerForm: function () {
++
++            SimpleDialog.superclass.registerForm.call(this);
++
++            this.form.innerHTML += "<input type=\"hidden\" name=\"" + 
++                this.id + "\" value=\"\"/>";
++
++        },
++        
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * Fired when the "icon" property is set.
++        * @method configIcon
++        * @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.
++        */
++        configIcon: function (type,args,obj) {
++        
++            var sIcon = args[0],
++                oBody = this.body,
++                sCSSClass = SimpleDialog.ICON_CSS_CLASSNAME,
++				aElements,
++                oIcon,
++                oIconParent;
++        
++            if (sIcon && sIcon != "none") {
++
++                aElements = Dom.getElementsByClassName(sCSSClass, "*" , oBody);
++
++				if (aElements.length === 1) {
++
++					oIcon = aElements[0];
++                    oIconParent = oIcon.parentNode;
++
++                    if (oIconParent) {
++
++                        oIconParent.removeChild(oIcon);
++
++                        oIcon = null;
++
++                    }
++
++				}
++
++
++                if (sIcon.indexOf(".") == -1) {
++
++                    oIcon = document.createElement("span");
++                    oIcon.className = (sCSSClass + " " + sIcon);
++                    oIcon.innerHTML = "&#160;";
++
++                } else {
++
++                    oIcon = document.createElement("img");
++                    oIcon.src = (this.imageRoot + sIcon);
++                    oIcon.className = sCSSClass;
++
++                }
++                
++
++                if (oIcon) {
++                
++                    oBody.insertBefore(oIcon, oBody.firstChild);
++                
++                }
++
++            }
++
++        },
++
++        /**
++        * Fired when the "text" property is set.
++        * @method configText
++        * @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.
++        */
++        configText: function (type,args,obj) {
++            var text = args[0];
++            if (text) {
++                this.setBody(text);
++                this.cfg.refireEvent("icon");
++            }
++        },
++        
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the SimpleDialog
++        */
++        toString: function () {
++            return "SimpleDialog " + this.id;
++        }
++
++        /**
++        * <p>
++        * Sets the SimpleDialog's body content to the HTML specified. 
++        * If no body is present, one will be automatically created. 
++        * An empty string can be passed to the method to clear the contents of the body.
++        * </p>
++        * <p><strong>NOTE:</strong> SimpleDialog provides the <a href="#config_text">text</a>
++        * and <a href="#config_icon">icon</a> configuration properties to set the contents
++        * of it's body element in accordance with the UI design for a SimpleDialog (an 
++        * icon and message text). Calling setBody on the SimpleDialog will not enforce this 
++        * UI design constraint and will replace the entire contents of the SimpleDialog body. 
++        * It should only be used if you wish the replace the default icon/text body structure 
++        * of a SimpleDialog with your own custom markup.</p>
++        * 
++        * @method setBody
++        * @param {String} bodyContent The HTML used to set the body. 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the body innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} bodyContent The HTMLElement to add as the first and only child of the body element.
++        * <em>OR</em>
++        * @param {DocumentFragment} bodyContent The document fragment 
++        * containing elements which are to be added to the body
++        */
++    });
++
++}());
++(function () {
++
++    /**
++    * ContainerEffect encapsulates animation transitions that are executed when 
++    * an Overlay is shown or hidden.
++    * @namespace YAHOO.widget
++    * @class ContainerEffect
++    * @constructor
++    * @param {YAHOO.widget.Overlay} overlay The Overlay that the animation 
++    * should be associated with
++    * @param {Object} attrIn The object literal representing the animation 
++    * arguments to be used for the animate-in transition. The arguments for 
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {Object} attrOut The object literal representing the animation 
++    * arguments to be used for the animate-out transition. The arguments for  
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {HTMLElement} targetElement Optional. The target element that  
++    * should be animated during the transition. Defaults to overlay.element.
++    * @param {class} Optional. The animation class to instantiate. Defaults to 
++    * YAHOO.util.Anim. Other options include YAHOO.util.Motion.
++    */
++    YAHOO.widget.ContainerEffect = function (overlay, attrIn, attrOut, targetElement, animClass) {
++
++        if (!animClass) {
++            animClass = YAHOO.util.Anim;
++        }
++
++        /**
++        * The overlay to animate
++        * @property overlay
++        * @type YAHOO.widget.Overlay
++        */
++        this.overlay = overlay;
++    
++        /**
++        * The animation attributes to use when transitioning into view
++        * @property attrIn
++        * @type Object
++        */
++        this.attrIn = attrIn;
++    
++        /**
++        * The animation attributes to use when transitioning out of view
++        * @property attrOut
++        * @type Object
++        */
++        this.attrOut = attrOut;
++    
++        /**
++        * The target element to be animated
++        * @property targetElement
++        * @type HTMLElement
++        */
++        this.targetElement = targetElement || overlay.element;
++    
++        /**
++        * The animation class to use for animating the overlay
++        * @property animClass
++        * @type class
++        */
++        this.animClass = animClass;
++    
++    };
++
++
++    var Dom = YAHOO.util.Dom,
++        CustomEvent = YAHOO.util.CustomEvent,
++        ContainerEffect = YAHOO.widget.ContainerEffect;
++
++
++    /**
++    * A pre-configured ContainerEffect instance that can be used for fading 
++    * an overlay in and out.
++    * @method FADE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.FADE = function (overlay, dur) {
++
++        var Easing = YAHOO.util.Easing,
++            fin = {
++                attributes: {opacity:{from:0, to:1}},
++                duration: dur,
++                method: Easing.easeIn
++            },
++            fout = {
++                attributes: {opacity:{to:0}},
++                duration: dur,
++                method: Easing.easeOut
++            },
++            fade = new ContainerEffect(overlay, fin, fout, overlay.element);
++
++        fade.handleUnderlayStart = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                var hasFilters = (underlay.filters && underlay.filters.length > 0);
++                if(hasFilters) {
++                    Dom.addClass(overlay.element, "yui-effect-fade");
++                }
++            }
++        };
++
++        fade.handleUnderlayComplete = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                Dom.removeClass(overlay.element, "yui-effect-fade");
++            }
++        };
++
++        fade.handleStartAnimateIn = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++
++            if (!obj.overlay.underlay) {
++                obj.overlay.cfg.refireEvent("underlay");
++            }
++
++            obj.handleUnderlayStart();
++
++            obj.overlay._setDomVisibility(true);
++            Dom.setStyle(obj.overlay.element, "opacity", 0);
++        };
++
++        fade.handleCompleteAnimateIn = function (type,args,obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++
++        fade.handleStartAnimateOut = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++            obj.handleUnderlayStart();
++        };
++
++        fade.handleCompleteAnimateOut =  function (type, args, obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++            obj.overlay._setDomVisibility(false);
++            Dom.setStyle(obj.overlay.element, "opacity", 1);
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        fade.init();
++        return fade;
++    };
++    
++    
++    /**
++    * A pre-configured ContainerEffect instance that can be used for sliding an 
++    * overlay in and out.
++    * @method SLIDE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.SLIDE = function (overlay, dur) {
++        var Easing = YAHOO.util.Easing,
++
++            x = overlay.cfg.getProperty("x") || Dom.getX(overlay.element),
++            y = overlay.cfg.getProperty("y") || Dom.getY(overlay.element),
++            clientWidth = Dom.getClientWidth(),
++            offsetWidth = overlay.element.offsetWidth,
++
++            sin =  { 
++                attributes: { points: { to: [x, y] } },
++                duration: dur,
++                method: Easing.easeIn 
++            },
++
++            sout = {
++                attributes: { points: { to: [(clientWidth + 25), y] } },
++                duration: dur,
++                method: Easing.easeOut 
++            },
++
++            slide = new ContainerEffect(overlay, sin, sout, overlay.element, YAHOO.util.Motion);
++
++        slide.handleStartAnimateIn = function (type,args,obj) {
++            obj.overlay.element.style.left = ((-25) - offsetWidth) + "px";
++            obj.overlay.element.style.top  = y + "px";
++        };
++
++        slide.handleTweenAnimateIn = function (type, args, obj) {
++        
++            var pos = Dom.getXY(obj.overlay.element),
++                currentX = pos[0],
++                currentY = pos[1];
++        
++            if (Dom.getStyle(obj.overlay.element, "visibility") == 
++                "hidden" && currentX < x) {
++
++                obj.overlay._setDomVisibility(true);
++
++            }
++        
++            obj.overlay.cfg.setProperty("xy", [currentX, currentY], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateIn = function (type, args, obj) {
++            obj.overlay.cfg.setProperty("xy", [x, y], true);
++            obj.startX = x;
++            obj.startY = y;
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++        
++        slide.handleStartAnimateOut = function (type, args, obj) {
++    
++            var vw = Dom.getViewportWidth(),
++                pos = Dom.getXY(obj.overlay.element),
++                yso = pos[1];
++    
++            obj.animOut.attributes.points.to = [(vw + 25), yso];
++        };
++        
++        slide.handleTweenAnimateOut = function (type, args, obj) {
++    
++            var pos = Dom.getXY(obj.overlay.element),
++                xto = pos[0],
++                yto = pos[1];
++        
++            obj.overlay.cfg.setProperty("xy", [xto, yto], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateOut = function (type, args, obj) {
++            obj.overlay._setDomVisibility(false);
++
++            obj.overlay.cfg.setProperty("xy", [x, y]);
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        slide.init();
++        return slide;
++    };
++
++    ContainerEffect.prototype = {
++
++        /**
++        * Initializes the animation classes and events.
++        * @method init
++        */
++        init: function () {
++
++            this.beforeAnimateInEvent = this.createEvent("beforeAnimateIn");
++            this.beforeAnimateInEvent.signature = CustomEvent.LIST;
++            
++            this.beforeAnimateOutEvent = this.createEvent("beforeAnimateOut");
++            this.beforeAnimateOutEvent.signature = CustomEvent.LIST;
++        
++            this.animateInCompleteEvent = this.createEvent("animateInComplete");
++            this.animateInCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animateOutCompleteEvent = 
++                this.createEvent("animateOutComplete");
++            this.animateOutCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animIn = new this.animClass(this.targetElement, 
++                this.attrIn.attributes, this.attrIn.duration, 
++                this.attrIn.method);
++
++            this.animIn.onStart.subscribe(this.handleStartAnimateIn, this);
++            this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this);
++
++            this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, 
++                this);
++        
++            this.animOut = new this.animClass(this.targetElement, 
++                this.attrOut.attributes, this.attrOut.duration, 
++                this.attrOut.method);
++
++            this.animOut.onStart.subscribe(this.handleStartAnimateOut, this);
++            this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this);
++            this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, 
++                this);
++
++        },
++        
++        /**
++        * Triggers the in-animation.
++        * @method animateIn
++        */
++        animateIn: function () {
++            this.beforeAnimateInEvent.fire();
++            this.animIn.animate();
++        },
++
++        /**
++        * Triggers the out-animation.
++        * @method animateOut
++        */
++        animateOut: function () {
++            this.beforeAnimateOutEvent.fire();
++            this.animOut.animate();
++        },
++
++        /**
++        * The default onStart handler for the in-animation.
++        * @method handleStartAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the in-animation.
++        * @method handleTweenAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the in-animation.
++        * @method handleCompleteAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onStart handler for the out-animation.
++        * @method handleStartAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the out-animation.
++        * @method handleTweenAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the out-animation.
++        * @method handleCompleteAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateOut: function (type, args, obj) { },
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the ContainerEffect
++        */
++        toString: function () {
++            var output = "ContainerEffect";
++            if (this.overlay) {
++                output += " [" + this.overlay.toString() + "]";
++            }
++            return output;
++        }
++    };
++
++    YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
++
++})();
++YAHOO.register("container", YAHOO.widget.Module, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/container/container_core-debug.js b/pylons_app/public/js/yui/container/container_core-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/container_core-debug.js
+@@ -0,0 +1,5136 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++    /**
++    * Config is a utility used within an Object to allow the implementer to
++    * maintain a list of local configuration properties and listen for changes 
++    * to those properties dynamically using CustomEvent. The initial values are 
++    * also maintained so that the configuration can be reset at any given point 
++    * to its initial state.
++    * @namespace YAHOO.util
++    * @class Config
++    * @constructor
++    * @param {Object} owner The owner Object to which this Config Object belongs
++    */
++    YAHOO.util.Config = function (owner) {
++
++        if (owner) {
++            this.init(owner);
++        }
++
++        if (!owner) {  YAHOO.log("No owner specified for Config object", "error", "Config"); }
++
++    };
++
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Config = YAHOO.util.Config;
++
++
++    /**
++     * Constant representing the CustomEvent type for the config changed event.
++     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
++     * @private
++     * @static
++     * @final
++     */
++    Config.CONFIG_CHANGED_EVENT = "configChanged";
++    
++    /**
++     * Constant representing the boolean type string
++     * @property YAHOO.util.Config.BOOLEAN_TYPE
++     * @private
++     * @static
++     * @final
++     */
++    Config.BOOLEAN_TYPE = "boolean";
++    
++    Config.prototype = {
++     
++        /**
++        * Object reference to the owner of this Config Object
++        * @property owner
++        * @type Object
++        */
++        owner: null,
++        
++        /**
++        * Boolean flag that specifies whether a queue is currently 
++        * being executed
++        * @property queueInProgress
++        * @type Boolean
++        */
++        queueInProgress: false,
++        
++        /**
++        * Maintains the local collection of configuration property objects and 
++        * their specified values
++        * @property config
++        * @private
++        * @type Object
++        */ 
++        config: null,
++        
++        /**
++        * Maintains the local collection of configuration property objects as 
++        * they were initially applied.
++        * This object is used when resetting a property.
++        * @property initialConfig
++        * @private
++        * @type Object
++        */ 
++        initialConfig: null,
++        
++        /**
++        * Maintains the local, normalized CustomEvent queue
++        * @property eventQueue
++        * @private
++        * @type Object
++        */ 
++        eventQueue: null,
++        
++        /**
++        * Custom Event, notifying subscribers when Config properties are set 
++        * (setProperty is called without the silent flag
++        * @event configChangedEvent
++        */
++        configChangedEvent: null,
++    
++        /**
++        * Initializes the configuration Object and all of its local members.
++        * @method init
++        * @param {Object} owner The owner Object to which this Config 
++        * Object belongs
++        */
++        init: function (owner) {
++    
++            this.owner = owner;
++    
++            this.configChangedEvent = 
++                this.createEvent(Config.CONFIG_CHANGED_EVENT);
++    
++            this.configChangedEvent.signature = CustomEvent.LIST;
++            this.queueInProgress = false;
++            this.config = {};
++            this.initialConfig = {};
++            this.eventQueue = [];
++        
++        },
++        
++        /**
++        * Validates that the value passed in is a Boolean.
++        * @method checkBoolean
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */ 
++        checkBoolean: function (val) {
++            return (typeof val == Config.BOOLEAN_TYPE);
++        },
++        
++        /**
++        * Validates that the value passed in is a number.
++        * @method checkNumber
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */
++        checkNumber: function (val) {
++            return (!isNaN(val));
++        },
++        
++        /**
++        * Fires a configuration property event using the specified value. 
++        * @method fireEvent
++        * @private
++        * @param {String} key The configuration property's name
++        * @param {value} Object The value of the correct type for the property
++        */ 
++        fireEvent: function ( key, value ) {
++            YAHOO.log("Firing Config event: " + key + "=" + value, "info", "Config");
++            var property = this.config[key];
++        
++            if (property && property.event) {
++                property.event.fire(value);
++            } 
++        },
++        
++        /**
++        * Adds a property to the Config Object's private config hash.
++        * @method addProperty
++        * @param {String} key The configuration property's name
++        * @param {Object} propertyObject The Object containing all of this 
++        * property's arguments
++        */
++        addProperty: function ( key, propertyObject ) {
++            key = key.toLowerCase();
++            YAHOO.log("Added property: " + key, "info", "Config");
++        
++            this.config[key] = propertyObject;
++        
++            propertyObject.event = this.createEvent(key, { scope: this.owner });
++            propertyObject.event.signature = CustomEvent.LIST;
++            
++            
++            propertyObject.key = key;
++        
++            if (propertyObject.handler) {
++                propertyObject.event.subscribe(propertyObject.handler, 
++                    this.owner);
++            }
++        
++            this.setProperty(key, propertyObject.value, true);
++            
++            if (! propertyObject.suppressEvent) {
++                this.queueProperty(key, propertyObject.value);
++            }
++            
++        },
++        
++        /**
++        * Returns a key-value configuration map of the values currently set in  
++        * the Config Object.
++        * @method getConfig
++        * @return {Object} The current config, represented in a key-value map
++        */
++        getConfig: function () {
++        
++            var cfg = {},
++                currCfg = this.config,
++                prop,
++                property;
++                
++            for (prop in currCfg) {
++                if (Lang.hasOwnProperty(currCfg, prop)) {
++                    property = currCfg[prop];
++                    if (property && property.event) {
++                        cfg[prop] = property.value;
++                    }
++                }
++            }
++
++            return cfg;
++        },
++        
++        /**
++        * Returns the value of specified property.
++        * @method getProperty
++        * @param {String} key The name of the property
++        * @return {Object}  The value of the specified property
++        */
++        getProperty: function (key) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.value;
++            } else {
++                return undefined;
++            }
++        },
++        
++        /**
++        * Resets the specified property's value to its initial value.
++        * @method resetProperty
++        * @param {String} key The name of the property
++        * @return {Boolean} True is the property was reset, false if not
++        */
++        resetProperty: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event) {
++    
++                if (this.initialConfig[key] && 
++                    !Lang.isUndefined(this.initialConfig[key])) {
++    
++                    this.setProperty(key, this.initialConfig[key]);
++
++                    return true;
++    
++                }
++    
++            } else {
++    
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Sets the value of a property. If the silent property is passed as 
++        * true, the property's event will not be fired.
++        * @method setProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @param {Boolean} silent Whether the value should be set silently, 
++        * without firing the property event.
++        * @return {Boolean} True, if the set was successful, false if it failed.
++        */
++        setProperty: function (key, value, silent) {
++        
++            var property;
++        
++            key = key.toLowerCase();
++            YAHOO.log("setProperty: " + key + "=" + value, "info", "Config");
++        
++            if (this.queueInProgress && ! silent) {
++                // Currently running through a queue... 
++                this.queueProperty(key,value);
++                return true;
++    
++            } else {
++                property = this.config[key];
++                if (property && property.event) {
++                    if (property.validator && !property.validator(value)) {
++                        return false;
++                    } else {
++                        property.value = value;
++                        if (! silent) {
++                            this.fireEvent(key, value);
++                            this.configChangedEvent.fire([key, value]);
++                        }
++                        return true;
++                    }
++                } else {
++                    return false;
++                }
++            }
++        },
++        
++        /**
++        * Sets the value of a property and queues its event to execute. If the 
++        * event is already scheduled to execute, it is
++        * moved from its current position to the end of the queue.
++        * @method queueProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @return {Boolean}  true, if the set was successful, false if 
++        * it failed.
++        */ 
++        queueProperty: function (key, value) {
++        
++            key = key.toLowerCase();
++            YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
++        
++            var property = this.config[key],
++                foundDuplicate = false,
++                iLen,
++                queueItem,
++                queueItemKey,
++                queueItemValue,
++                sLen,
++                supercedesCheck,
++                qLen,
++                queueItemCheck,
++                queueItemCheckKey,
++                queueItemCheckValue,
++                i,
++                s,
++                q;
++                                
++            if (property && property.event) {
++    
++                if (!Lang.isUndefined(value) && property.validator && 
++                    !property.validator(value)) { // validator
++                    return false;
++                } else {
++        
++                    if (!Lang.isUndefined(value)) {
++                        property.value = value;
++                    } else {
++                        value = property.value;
++                    }
++        
++                    foundDuplicate = false;
++                    iLen = this.eventQueue.length;
++        
++                    for (i = 0; i < iLen; i++) {
++                        queueItem = this.eventQueue[i];
++        
++                        if (queueItem) {
++                            queueItemKey = queueItem[0];
++                            queueItemValue = queueItem[1];
++
++                            if (queueItemKey == key) {
++    
++                                /*
++                                    found a dupe... push to end of queue, null 
++                                    current item, and break
++                                */
++    
++                                this.eventQueue[i] = null;
++    
++                                this.eventQueue.push(
++                                    [key, (!Lang.isUndefined(value) ? 
++                                    value : queueItemValue)]);
++    
++                                foundDuplicate = true;
++                                break;
++                            }
++                        }
++                    }
++                    
++                    // this is a refire, or a new property in the queue
++    
++                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
++                        this.eventQueue.push([key, value]);
++                    }
++                }
++        
++                if (property.supercedes) {
++
++                    sLen = property.supercedes.length;
++
++                    for (s = 0; s < sLen; s++) {
++
++                        supercedesCheck = property.supercedes[s];
++                        qLen = this.eventQueue.length;
++
++                        for (q = 0; q < qLen; q++) {
++                            queueItemCheck = this.eventQueue[q];
++
++                            if (queueItemCheck) {
++                                queueItemCheckKey = queueItemCheck[0];
++                                queueItemCheckValue = queueItemCheck[1];
++
++                                if (queueItemCheckKey == 
++                                    supercedesCheck.toLowerCase() ) {
++
++                                    this.eventQueue.push([queueItemCheckKey, 
++                                        queueItemCheckValue]);
++
++                                    this.eventQueue[q] = null;
++                                    break;
++
++                                }
++                            }
++                        }
++                    }
++                }
++
++                YAHOO.log("Config event queue: " + this.outputEventQueue(), "info", "Config");
++
++                return true;
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Fires the event for a property using the property's current value.
++        * @method refireEvent
++        * @param {String} key The name of the property
++        */
++        refireEvent: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event && 
++    
++                !Lang.isUndefined(property.value)) {
++    
++                if (this.queueInProgress) {
++    
++                    this.queueProperty(key);
++    
++                } else {
++    
++                    this.fireEvent(key, property.value);
++    
++                }
++    
++            }
++        },
++        
++        /**
++        * Applies a key-value Object literal to the configuration, replacing  
++        * any existing values, and queueing the property events.
++        * Although the values will be set, fireQueue() must be called for their 
++        * associated events to execute.
++        * @method applyConfig
++        * @param {Object} userConfig The configuration Object literal
++        * @param {Boolean} init  When set to true, the initialConfig will 
++        * be set to the userConfig passed in, so that calling a reset will 
++        * reset the properties to the passed values.
++        */
++        applyConfig: function (userConfig, init) {
++        
++            var sKey,
++                oConfig;
++
++            if (init) {
++                oConfig = {};
++                for (sKey in userConfig) {
++                    if (Lang.hasOwnProperty(userConfig, sKey)) {
++                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
++                    }
++                }
++                this.initialConfig = oConfig;
++            }
++
++            for (sKey in userConfig) {
++                if (Lang.hasOwnProperty(userConfig, sKey)) {
++                    this.queueProperty(sKey, userConfig[sKey]);
++                }
++            }
++        },
++        
++        /**
++        * Refires the events for all configuration properties using their 
++        * current values.
++        * @method refresh
++        */
++        refresh: function () {
++
++            var prop;
++
++            for (prop in this.config) {
++                if (Lang.hasOwnProperty(this.config, prop)) {
++                    this.refireEvent(prop);
++                }
++            }
++        },
++        
++        /**
++        * Fires the normalized list of queued property change events
++        * @method fireQueue
++        */
++        fireQueue: function () {
++        
++            var i, 
++                queueItem,
++                key,
++                value,
++                property;
++        
++            this.queueInProgress = true;
++            for (i = 0;i < this.eventQueue.length; i++) {
++                queueItem = this.eventQueue[i];
++                if (queueItem) {
++        
++                    key = queueItem[0];
++                    value = queueItem[1];
++                    property = this.config[key];
++
++                    property.value = value;
++
++                    // Clear out queue entry, to avoid it being 
++                    // re-added to the queue by any queueProperty/supercedes
++                    // calls which are invoked during fireEvent
++                    this.eventQueue[i] = null;
++
++                    this.fireEvent(key,value);
++                }
++            }
++            
++            this.queueInProgress = false;
++            this.eventQueue = [];
++        },
++        
++        /**
++        * Subscribes an external handler to the change event for any 
++        * given property. 
++        * @method subscribeToConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event handler 
++        * (see CustomEvent documentation)
++        * @param {Boolean} overrideContext Optional. If true, will override
++        * "this" within the handler to map to the scope Object passed into the
++        * method.
++        * @return {Boolean} True, if the subscription was successful, 
++        * otherwise false.
++        */ 
++        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
++    
++            var property = this.config[key.toLowerCase()];
++    
++            if (property && property.event) {
++                if (!Config.alreadySubscribed(property.event, handler, obj)) {
++                    property.event.subscribe(handler, obj, overrideContext);
++                }
++                return true;
++            } else {
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Unsubscribes an external handler from the change event for any 
++        * given property. 
++        * @method unsubscribeFromConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event 
++        * handler (see CustomEvent documentation)
++        * @return {Boolean} True, if the unsubscription was successful, 
++        * otherwise false.
++        */
++        unsubscribeFromConfigEvent: function (key, handler, obj) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.event.unsubscribe(handler, obj);
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Returns a string representation of the Config object
++        * @method toString
++        * @return {String} The Config object in string format.
++        */
++        toString: function () {
++            var output = "Config";
++            if (this.owner) {
++                output += " [" + this.owner.toString() + "]";
++            }
++            return output;
++        },
++        
++        /**
++        * Returns a string representation of the Config object's current 
++        * CustomEvent queue
++        * @method outputEventQueue
++        * @return {String} The string list of CustomEvents currently queued 
++        * for execution
++        */
++        outputEventQueue: function () {
++
++            var output = "",
++                queueItem,
++                q,
++                nQueue = this.eventQueue.length;
++              
++            for (q = 0; q < nQueue; q++) {
++                queueItem = this.eventQueue[q];
++                if (queueItem) {
++                    output += queueItem[0] + "=" + queueItem[1] + ", ";
++                }
++            }
++            return output;
++        },
++
++        /**
++        * Sets all properties to null, unsubscribes all listeners from each 
++        * property's change event and all listeners from the configChangedEvent.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var oConfig = this.config,
++                sProperty,
++                oProperty;
++
++
++            for (sProperty in oConfig) {
++            
++                if (Lang.hasOwnProperty(oConfig, sProperty)) {
++
++                    oProperty = oConfig[sProperty];
++
++                    oProperty.event.unsubscribeAll();
++                    oProperty.event = null;
++
++                }
++            
++            }
++            
++            this.configChangedEvent.unsubscribeAll();
++            
++            this.configChangedEvent = null;
++            this.owner = null;
++            this.config = null;
++            this.initialConfig = null;
++            this.eventQueue = null;
++        
++        }
++
++    };
++    
++    
++    
++    /**
++    * Checks to determine if a particular function/Object pair are already 
++    * subscribed to the specified CustomEvent
++    * @method YAHOO.util.Config.alreadySubscribed
++    * @static
++    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
++    * the subscriptions
++    * @param {Function} fn The function to look for in the subscribers list
++    * @param {Object} obj The execution scope Object for the subscription
++    * @return {Boolean} true, if the function/Object pair is already subscribed 
++    * to the CustomEvent passed in
++    */
++    Config.alreadySubscribed = function (evt, fn, obj) {
++    
++        var nSubscribers = evt.subscribers.length,
++            subsc,
++            i;
++
++        if (nSubscribers > 0) {
++            i = nSubscribers - 1;
++            do {
++                subsc = evt.subscribers[i];
++                if (subsc && subsc.obj == obj && subsc.fn == fn) {
++                    return true;
++                }
++            }
++            while (i--);
++        }
++
++        return false;
++
++    };
++
++    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * The Container family of components is designed to enable developers to 
++    * create different kinds of content-containing modules on the web. Module 
++    * and Overlay are the most basic containers, and they can be used directly 
++    * or extended to build custom containers. Also part of the Container family 
++    * are four UI controls that extend Module and Overlay: Tooltip, Panel, 
++    * Dialog, and SimpleDialog.
++    * @module container
++    * @title Container
++    * @requires yahoo, dom, event 
++    * @optional dragdrop, animation, button
++    */
++    
++    /**
++    * Module is a JavaScript representation of the Standard Module Format. 
++    * Standard Module Format is a simple standard for markup containers where 
++    * child nodes representing the header, body, and footer of the content are 
++    * denoted using the CSS classes "hd", "bd", and "ft" respectively. 
++    * Module is the base class for all other classes in the YUI 
++    * Container package.
++    * @namespace YAHOO.widget
++    * @class Module
++    * @constructor
++    * @param {String} el The element ID representing the Module <em>OR</em>
++    * @param {HTMLElement} el The element representing the Module
++    * @param {Object} userConfig The configuration Object literal containing 
++    * the configuration that should be set for this module. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Module = function (el, userConfig) {
++        if (el) {
++            this.init(el, userConfig);
++        } else {
++            YAHOO.log("No element or element ID specified" + 
++                " for Module instantiation", "error");
++        }
++    };
++
++    var Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        UA = YAHOO.env.ua,
++
++        m_oModuleTemplate,
++        m_oHeaderTemplate,
++        m_oBodyTemplate,
++        m_oFooterTemplate,
++
++        /**
++        * Constant representing the name of the Module's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_INIT": "beforeInit",
++            "INIT": "init",
++            "APPEND": "append",
++            "BEFORE_RENDER": "beforeRender",
++            "RENDER": "render",
++            "CHANGE_HEADER": "changeHeader",
++            "CHANGE_BODY": "changeBody",
++            "CHANGE_FOOTER": "changeFooter",
++            "CHANGE_CONTENT": "changeContent",
++            "DESTROY": "destroy",
++            "BEFORE_SHOW": "beforeShow",
++            "SHOW": "show",
++            "BEFORE_HIDE": "beforeHide",
++            "HIDE": "hide"
++        },
++            
++        /**
++        * Constant representing the Module's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++        
++            "VISIBLE": { 
++                key: "visible", 
++                value: true, 
++                validator: YAHOO.lang.isBoolean 
++            },
++
++            "EFFECT": {
++                key: "effect",
++                suppressEvent: true,
++                supercedes: ["visible"]
++            },
++
++            "MONITOR_RESIZE": {
++                key: "monitorresize",
++                value: true
++            },
++
++            "APPEND_TO_DOCUMENT_BODY": {
++                key: "appendtodocumentbody",
++                value: false
++            }
++        };
++
++    /**
++    * Constant representing the prefix path to use for non-secure images
++    * @property YAHOO.widget.Module.IMG_ROOT
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT = null;
++    
++    /**
++    * Constant representing the prefix path to use for securely served images
++    * @property YAHOO.widget.Module.IMG_ROOT_SSL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT_SSL = null;
++    
++    /**
++    * Constant for the default CSS class name that represents a Module
++    * @property YAHOO.widget.Module.CSS_MODULE
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_MODULE = "yui-module";
++    
++    /**
++    * Constant representing the module header
++    * @property YAHOO.widget.Module.CSS_HEADER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_HEADER = "hd";
++
++    /**
++    * Constant representing the module body
++    * @property YAHOO.widget.Module.CSS_BODY
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_BODY = "bd";
++    
++    /**
++    * Constant representing the module footer
++    * @property YAHOO.widget.Module.CSS_FOOTER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_FOOTER = "ft";
++    
++    /**
++    * Constant representing the url for the "src" attribute of the iframe 
++    * used to monitor changes to the browser's base font size
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
++
++    /**
++    * Constant representing the buffer amount (in pixels) to use when positioning
++    * the text resize monitor offscreen. The resize monitor is positioned
++    * offscreen by an amount eqaul to its offsetHeight + the buffer value.
++    * 
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_BUFFER
++    * @static
++    * @type Number
++    */
++    // Set to 1, to work around pixel offset in IE8, which increases when zoom is used
++    Module.RESIZE_MONITOR_BUFFER = 1;
++
++    /**
++    * Singleton CustomEvent fired when the font size is changed in the browser.
++    * Opera's "zoom" functionality currently does not support text 
++    * size detection.
++    * @event YAHOO.widget.Module.textResizeEvent
++    */
++    Module.textResizeEvent = new CustomEvent("textResize");
++
++    /**
++     * Helper utility method, which forces a document level 
++     * redraw for Opera, which can help remove repaint
++     * irregularities after applying DOM changes.
++     *
++     * @method YAHOO.widget.Module.forceDocumentRedraw
++     * @static
++     */
++    Module.forceDocumentRedraw = function() {
++        var docEl = document.documentElement;
++        if (docEl) {
++            docEl.className += " ";
++            docEl.className = YAHOO.lang.trim(docEl.className);
++        }
++    };
++
++    function createModuleTemplate() {
++
++        if (!m_oModuleTemplate) {
++            m_oModuleTemplate = document.createElement("div");
++            
++            m_oModuleTemplate.innerHTML = ("<div class=\"" + 
++                Module.CSS_HEADER + "\"></div>" + "<div class=\"" + 
++                Module.CSS_BODY + "\"></div><div class=\"" + 
++                Module.CSS_FOOTER + "\"></div>");
++
++            m_oHeaderTemplate = m_oModuleTemplate.firstChild;
++            m_oBodyTemplate = m_oHeaderTemplate.nextSibling;
++            m_oFooterTemplate = m_oBodyTemplate.nextSibling;
++        }
++
++        return m_oModuleTemplate;
++    }
++
++    function createHeader() {
++        if (!m_oHeaderTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oHeaderTemplate.cloneNode(false));
++    }
++
++    function createBody() {
++        if (!m_oBodyTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oBodyTemplate.cloneNode(false));
++    }
++
++    function createFooter() {
++        if (!m_oFooterTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oFooterTemplate.cloneNode(false));
++    }
++
++    Module.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: Module,
++        
++        /**
++        * The main module element that contains the header, body, and footer
++        * @property element
++        * @type HTMLElement
++        */
++        element: null,
++
++        /**
++        * The header element, denoted with CSS class "hd"
++        * @property header
++        * @type HTMLElement
++        */
++        header: null,
++
++        /**
++        * The body element, denoted with CSS class "bd"
++        * @property body
++        * @type HTMLElement
++        */
++        body: null,
++
++        /**
++        * The footer element, denoted with CSS class "ft"
++        * @property footer
++        * @type HTMLElement
++        */
++        footer: null,
++
++        /**
++        * The id of the element
++        * @property id
++        * @type String
++        */
++        id: null,
++
++        /**
++        * A string representing the root path for all images created by
++        * a Module instance.
++        * @deprecated It is recommend that any images for a Module be applied
++        * via CSS using the "background-image" property.
++        * @property imageRoot
++        * @type String
++        */
++        imageRoot: Module.IMG_ROOT,
++
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired prior to class initalization.
++            * @event beforeInitEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */
++            this.beforeInitEvent = this.createEvent(EVENT_TYPES.BEFORE_INIT);
++            this.beforeInitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after class initalization.
++            * @event initEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */  
++            this.initEvent = this.createEvent(EVENT_TYPES.INIT);
++            this.initEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is appended to the DOM
++            * @event appendEvent
++            */
++            this.appendEvent = this.createEvent(EVENT_TYPES.APPEND);
++            this.appendEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is rendered
++            * @event beforeRenderEvent
++            */
++            this.beforeRenderEvent = this.createEvent(EVENT_TYPES.BEFORE_RENDER);
++            this.beforeRenderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired after the Module is rendered
++            * @event renderEvent
++            */
++            this.renderEvent = this.createEvent(EVENT_TYPES.RENDER);
++            this.renderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the header content of the Module 
++            * is modified
++            * @event changeHeaderEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new header content
++            */
++            this.changeHeaderEvent = this.createEvent(EVENT_TYPES.CHANGE_HEADER);
++            this.changeHeaderEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the body content of the Module is modified
++            * @event changeBodyEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new body content
++            */  
++            this.changeBodyEvent = this.createEvent(EVENT_TYPES.CHANGE_BODY);
++            this.changeBodyEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the footer content of the Module 
++            * is modified
++            * @event changeFooterEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new footer content
++            */
++            this.changeFooterEvent = this.createEvent(EVENT_TYPES.CHANGE_FOOTER);
++            this.changeFooterEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the content of the Module is modified
++            * @event changeContentEvent
++            */
++            this.changeContentEvent = this.createEvent(EVENT_TYPES.CHANGE_CONTENT);
++            this.changeContentEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is destroyed
++            * @event destroyEvent
++            */
++            this.destroyEvent = this.createEvent(EVENT_TYPES.DESTROY);
++            this.destroyEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is shown
++            * @event beforeShowEvent
++            */
++            this.beforeShowEvent = this.createEvent(EVENT_TYPES.BEFORE_SHOW);
++            this.beforeShowEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is shown
++            * @event showEvent
++            */
++            this.showEvent = this.createEvent(EVENT_TYPES.SHOW);
++            this.showEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is hidden
++            * @event beforeHideEvent
++            */
++            this.beforeHideEvent = this.createEvent(EVENT_TYPES.BEFORE_HIDE);
++            this.beforeHideEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is hidden
++            * @event hideEvent
++            */
++            this.hideEvent = this.createEvent(EVENT_TYPES.HIDE);
++            this.hideEvent.signature = SIGNATURE;
++        }, 
++
++        /**
++        * String representing the current user-agent platform
++        * @property platform
++        * @type String
++        */
++        platform: function () {
++            var ua = navigator.userAgent.toLowerCase();
++
++            if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
++                return "windows";
++            } else if (ua.indexOf("macintosh") != -1) {
++                return "mac";
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * String representing the user-agent of the browser
++        * @deprecated Use YAHOO.env.ua
++        * @property browser
++        * @type String
++        */
++        browser: function () {
++            var ua = navigator.userAgent.toLowerCase();
++            /*
++                 Check Opera first in case of spoof and check Safari before
++                 Gecko since Safari's user agent string includes "like Gecko"
++            */
++            if (ua.indexOf('opera') != -1) { 
++                return 'opera';
++            } else if (ua.indexOf('msie 7') != -1) {
++                return 'ie7';
++            } else if (ua.indexOf('msie') != -1) {
++                return 'ie';
++            } else if (ua.indexOf('safari') != -1) { 
++                return 'safari';
++            } else if (ua.indexOf('gecko') != -1) {
++                return 'gecko';
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Boolean representing whether or not the current browsing context is 
++        * secure (https)
++        * @property isSecure
++        * @type Boolean
++        */
++        isSecure: function () {
++            if (window.location.href.toLowerCase().indexOf("https") === 0) {
++                return true;
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        */
++        initDefaultConfig: function () {
++            // Add properties //
++            /**
++            * Specifies whether the Module is visible on the page.
++            * @config visible
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.VISIBLE.key, {
++                handler: this.configVisible, 
++                value: DEFAULT_CONFIG.VISIBLE.value, 
++                validator: DEFAULT_CONFIG.VISIBLE.validator
++            });
++
++            /**
++            * <p>
++            * Object or array of objects representing the ContainerEffect 
++            * classes that are active for animating the container.
++            * </p>
++            * <p>
++            * <strong>NOTE:</strong> Although this configuration 
++            * property is introduced at the Module level, an out of the box
++            * implementation is not shipped for the Module class so setting
++            * the proroperty on the Module class has no effect. The Overlay 
++            * class is the first class to provide out of the box ContainerEffect 
++            * support.
++            * </p>
++            * @config effect
++            * @type Object
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.EFFECT.key, {
++                suppressEvent: DEFAULT_CONFIG.EFFECT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.EFFECT.supercedes
++            });
++
++            /**
++            * Specifies whether to create a special proxy iframe to monitor 
++            * for user font resizing in the document
++            * @config monitorresize
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.MONITOR_RESIZE.key, {
++                handler: this.configMonitorResize,
++                value: DEFAULT_CONFIG.MONITOR_RESIZE.value
++            });
++
++            /**
++            * Specifies if the module should be rendered as the first child 
++            * of document.body or appended as the last child when render is called
++            * with document.body as the "appendToNode".
++            * <p>
++            * Appending to the body while the DOM is still being constructed can 
++            * lead to Operation Aborted errors in IE hence this flag is set to 
++            * false by default.
++            * </p>
++            * 
++            * @config appendtodocumentbody
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.key, {
++                value: DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.value
++            });
++        },
++
++        /**
++        * The Module class's initialization method, which is executed for
++        * Module and all of its subclasses. 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.
++        * <p>
++        * If the element passed in does not have an id, one will be generated
++        * for it.
++        * </p>
++        * @method init
++        * @param {String} el The element ID representing the Module <em>OR</em>
++        * @param {HTMLElement} el The element representing the Module
++        * @param {Object} userConfig The configuration Object literal 
++        * containing the configuration that should be set for this module. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            var elId, child;
++
++            this.initEvents();
++            this.beforeInitEvent.fire(Module);
++
++            /**
++            * The Module's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type YAHOO.util.Config
++            */
++            this.cfg = new Config(this);
++
++            if (this.isSecure) {
++                this.imageRoot = Module.IMG_ROOT_SSL;
++            }
++
++            if (typeof el == "string") {
++                elId = el;
++                el = document.getElementById(el);
++                if (! el) {
++                    el = (createModuleTemplate()).cloneNode(false);
++                    el.id = elId;
++                }
++            }
++
++            this.id = Dom.generateId(el);
++            this.element = el;
++
++            child = this.element.firstChild;
++
++            if (child) {
++                var fndHd = false, fndBd = false, fndFt = false;
++                do {
++                    // We're looking for elements
++                    if (1 == child.nodeType) {
++                        if (!fndHd && Dom.hasClass(child, Module.CSS_HEADER)) {
++                            this.header = child;
++                            fndHd = true;
++                        } else if (!fndBd && Dom.hasClass(child, Module.CSS_BODY)) {
++                            this.body = child;
++                            fndBd = true;
++                        } else if (!fndFt && Dom.hasClass(child, Module.CSS_FOOTER)){
++                            this.footer = child;
++                            fndFt = true;
++                        }
++                    }
++                } while ((child = child.nextSibling));
++            }
++
++            this.initDefaultConfig();
++
++            Dom.addClass(this.element, Module.CSS_MODULE);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            /*
++                Subscribe to the fireQueue() method of Config so that any 
++                queued configuration changes are excecuted upon render of 
++                the Module
++            */ 
++
++            if (!Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) {
++                this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true);
++            }
++
++            this.initEvent.fire(Module);
++        },
++
++        /**
++        * Initialize an empty IFRAME that is placed out of the visible area 
++        * that can be used to detect text resize.
++        * @method initResizeMonitor
++        */
++        initResizeMonitor: function () {
++
++            var isGeckoWin = (UA.gecko && this.platform == "windows");
++            if (isGeckoWin) {
++                // Help prevent spinning loading icon which 
++                // started with FireFox 2.0.0.8/Win
++                var self = this;
++                setTimeout(function(){self._initResizeMonitor();}, 0);
++            } else {
++                this._initResizeMonitor();
++            }
++        },
++
++        /**
++         * Create and initialize the text resize monitoring iframe.
++         * 
++         * @protected
++         * @method _initResizeMonitor
++         */
++        _initResizeMonitor : function() {
++
++            var oDoc, 
++                oIFrame, 
++                sHTML;
++
++            function fireTextResize() {
++                Module.textResizeEvent.fire();
++            }
++
++            if (!UA.opera) {
++                oIFrame = Dom.get("_yuiResizeMonitor");
++
++                var supportsCWResize = this._supportsCWResize();
++
++                if (!oIFrame) {
++                    oIFrame = document.createElement("iframe");
++
++                    if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && UA.ie) {
++                        oIFrame.src = Module.RESIZE_MONITOR_SECURE_URL;
++                    }
++
++                    if (!supportsCWResize) {
++                        // Can't monitor on contentWindow, so fire from inside iframe
++                        sHTML = ["<html><head><script ",
++                                 "type=\"text/javascript\">",
++                                 "window.onresize=function(){window.parent.",
++                                 "YAHOO.widget.Module.textResizeEvent.",
++                                 "fire();};<",
++                                 "\/script></head>",
++                                 "<body></body></html>"].join('');
++
++                        oIFrame.src = "data:text/html;charset=utf-8," + encodeURIComponent(sHTML);
++                    }
++
++                    oIFrame.id = "_yuiResizeMonitor";
++                    oIFrame.title = "Text Resize Monitor";
++                    /*
++                        Need to set "position" property before inserting the 
++                        iframe into the document or Safari's status bar will 
++                        forever indicate the iframe is loading 
++                        (See YUILibrary bug #1723064)
++                    */
++                    oIFrame.style.position = "absolute";
++                    oIFrame.style.visibility = "hidden";
++
++                    var db = document.body,
++                        fc = db.firstChild;
++                    if (fc) {
++                        db.insertBefore(oIFrame, fc);
++                    } else {
++                        db.appendChild(oIFrame);
++                    }
++
++                    // Setting the background color fixes an issue with IE6/IE7, where
++                    // elements in the DOM, with -ve margin-top which positioned them 
++                    // offscreen (so they would be overlapped by the iframe and its -ve top
++                    // setting), would have their -ve margin-top ignored, when the iframe 
++                    // was added.
++                    oIFrame.style.backgroundColor = "transparent";
++
++                    oIFrame.style.borderWidth = "0";
++                    oIFrame.style.width = "2em";
++                    oIFrame.style.height = "2em";
++                    oIFrame.style.left = "0";
++                    oIFrame.style.top = (-1 * (oIFrame.offsetHeight + Module.RESIZE_MONITOR_BUFFER)) + "px";
++                    oIFrame.style.visibility = "visible";
++
++                    /*
++                       Don't open/close the document for Gecko like we used to, since it
++                       leads to duplicate cookies. (See YUILibrary bug #1721755)
++                    */
++                    if (UA.webkit) {
++                        oDoc = oIFrame.contentWindow.document;
++                        oDoc.open();
++                        oDoc.close();
++                    }
++                }
++
++                if (oIFrame && oIFrame.contentWindow) {
++                    Module.textResizeEvent.subscribe(this.onDomResize, this, true);
++
++                    if (!Module.textResizeInitialized) {
++                        if (supportsCWResize) {
++                            if (!Event.on(oIFrame.contentWindow, "resize", fireTextResize)) {
++                                /*
++                                     This will fail in IE if document.domain has 
++                                     changed, so we must change the listener to 
++                                     use the oIFrame element instead
++                                */
++                                Event.on(oIFrame, "resize", fireTextResize);
++                            }
++                        }
++                        Module.textResizeInitialized = true;
++                    }
++                    this.resizeMonitor = oIFrame;
++                }
++            }
++        },
++
++        /**
++         * Text resize monitor helper method.
++         * Determines if the browser supports resize events on iframe content windows.
++         * 
++         * @private
++         * @method _supportsCWResize
++         */
++        _supportsCWResize : function() {
++            /*
++                Gecko 1.8.0 (FF1.5), 1.8.1.0-5 (FF2) won't fire resize on contentWindow.
++                Gecko 1.8.1.6+ (FF2.0.0.6+) and all other browsers will fire resize on contentWindow.
++
++                We don't want to start sniffing for patch versions, so fire textResize the same
++                way on all FF2 flavors
++             */
++            var bSupported = true;
++            if (UA.gecko && UA.gecko <= 1.8) {
++                bSupported = false;
++            }
++            return bSupported;
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The DOM resize event
++        * @param {Object} obj The scope object passed to the handler
++        */
++        onDomResize: function (e, obj) {
++
++            var nTop = -1 * (this.resizeMonitor.offsetHeight + Module.RESIZE_MONITOR_BUFFER);
++
++            this.resizeMonitor.style.top = nTop + "px";
++            this.resizeMonitor.style.left = "0";
++        },
++
++        /**
++        * Sets the Module's header content to the string specified, or appends 
++        * the passed element to the header. If no header is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the header.
++        * 
++        * @method setHeader
++        * @param {String} headerContent The string used to set the header.
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the header innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} headerContent The HTMLElement to append to 
++        * <em>OR</em>
++        * @param {DocumentFragment} headerContent The document fragment 
++        * containing elements which are to be added to the header
++        */
++        setHeader: function (headerContent) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            if (headerContent.nodeName) {
++                oHeader.innerHTML = "";
++                oHeader.appendChild(headerContent);
++            } else {
++                oHeader.innerHTML = headerContent;
++            }
++
++            if (this._rendered) {
++                this._renderHeader();
++            }
++
++            this.changeHeaderEvent.fire(headerContent);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Appends the passed element to the header. If no header is present, 
++        * one will be automatically created.
++        * @method appendToHeader
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the header. In the case of a document fragment, the
++        * children of the fragment will be appended to the header.
++        */
++        appendToHeader: function (element) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            oHeader.appendChild(element);
++
++            this.changeHeaderEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Sets the Module's body content to the HTML specified. 
++        * 
++        * If no body is present, one will be automatically created. 
++        * 
++        * An empty string can be passed to the method to clear the contents of the body.
++        * @method setBody
++        * @param {String} bodyContent The HTML used to set the body. 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the body innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} bodyContent The HTMLElement to add as the first and only
++        * child of the body element.
++        * <em>OR</em>
++        * @param {DocumentFragment} bodyContent The document fragment 
++        * containing elements which are to be added to the body
++        */
++        setBody: function (bodyContent) {
++            var oBody = this.body || (this.body = createBody());
++
++            if (bodyContent.nodeName) {
++                oBody.innerHTML = "";
++                oBody.appendChild(bodyContent);
++            } else {
++                oBody.innerHTML = bodyContent;
++            }
++
++            if (this._rendered) {
++                this._renderBody();
++            }
++
++            this.changeBodyEvent.fire(bodyContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the body. If no body is present, one 
++        * will be automatically created.
++        * @method appendToBody
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the body. In the case of a document fragment, the
++        * children of the fragment will be appended to the body.
++        * 
++        */
++        appendToBody: function (element) {
++            var oBody = this.body || (this.body = createBody());
++        
++            oBody.appendChild(element);
++
++            this.changeBodyEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++        
++        /**
++        * Sets the Module's footer content to the HTML specified, or appends 
++        * the passed element to the footer. If no footer is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the footer.
++        * @method setFooter
++        * @param {String} footerContent The HTML used to set the footer 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the footer innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} footerContent The HTMLElement to append to 
++        * the footer
++        * <em>OR</em>
++        * @param {DocumentFragment} footerContent The document fragment containing 
++        * elements which are to be added to the footer
++        */
++        setFooter: function (footerContent) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            if (footerContent.nodeName) {
++                oFooter.innerHTML = "";
++                oFooter.appendChild(footerContent);
++            } else {
++                oFooter.innerHTML = footerContent;
++            }
++
++            if (this._rendered) {
++                this._renderFooter();
++            }
++
++            this.changeFooterEvent.fire(footerContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the footer. If no footer is present, 
++        * one will be automatically created.
++        * @method appendToFooter
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the footer. In the case of a document fragment, the
++        * children of the fragment will be appended to the footer
++        */
++        appendToFooter: function (element) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            oFooter.appendChild(element);
++
++            this.changeFooterEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Renders the Module by inserting the elements that are not already 
++        * in the main Module into their correct places. Optionally appends 
++        * the Module to the specified node prior to the render's execution. 
++        * <p>
++        * For Modules without existing markup, the appendToNode argument 
++        * is REQUIRED. If this argument is ommitted and the current element is 
++        * not present in the document, the function will return false, 
++        * indicating that the render was a failure.
++        * </p>
++        * <p>
++        * NOTE: As of 2.3.1, if the appendToNode is the document's body element
++        * then the module is rendered as the first child of the body element, 
++        * and not appended to it, to avoid Operation Aborted errors in IE when 
++        * rendering the module before window's load event is fired. You can 
++        * use the appendtodocumentbody configuration property to change this 
++        * to append to document.body if required.
++        * </p>
++        * @method render
++        * @param {String} appendToNode The element id to which the Module 
++        * should be appended to prior to rendering <em>OR</em>
++        * @param {HTMLElement} appendToNode The element to which the Module 
++        * should be appended to prior to rendering
++        * @param {HTMLElement} moduleElement OPTIONAL. The element that 
++        * represents the actual Standard Module container.
++        * @return {Boolean} Success or failure of the render
++        */
++        render: function (appendToNode, moduleElement) {
++
++            var me = this;
++
++            function appendTo(parentNode) {
++                if (typeof parentNode == "string") {
++                    parentNode = document.getElementById(parentNode);
++                }
++
++                if (parentNode) {
++                    me._addToParent(parentNode, me.element);
++                    me.appendEvent.fire();
++                }
++            }
++
++            this.beforeRenderEvent.fire();
++
++            if (! moduleElement) {
++                moduleElement = this.element;
++            }
++
++            if (appendToNode) {
++                appendTo(appendToNode);
++            } else { 
++                // No node was passed in. If the element is not already in the Dom, this fails
++                if (! Dom.inDocument(this.element)) {
++                    YAHOO.log("Render failed. Must specify appendTo node if " + " Module isn't already in the DOM.", "error");
++                    return false;
++                }
++            }
++
++            this._renderHeader(moduleElement);
++            this._renderBody(moduleElement);
++            this._renderFooter(moduleElement);
++
++            this._rendered = true;
++
++            this.renderEvent.fire();
++            return true;
++        },
++
++        /**
++         * Renders the currently set header into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderHeader
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderHeader: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            // Need to get everything into the DOM if it isn't already
++            if (this.header && !Dom.inDocument(this.header)) {
++                // There is a header, but it's not in the DOM yet. Need to add it.
++                var firstChild = moduleElement.firstChild;
++                if (firstChild) {
++                    moduleElement.insertBefore(this.header, firstChild);
++                } else {
++                    moduleElement.appendChild(this.header);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set body into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderBody
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element.
++         */
++        _renderBody: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.body && !Dom.inDocument(this.body)) {
++                // There is a body, but it's not in the DOM yet. Need to add it.
++                if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
++                    moduleElement.insertBefore(this.body, this.footer);
++                } else {
++                    moduleElement.appendChild(this.body);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set footer into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderFooter
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderFooter: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.footer && !Dom.inDocument(this.footer)) {
++                // There is a footer, but it's not in the DOM yet. Need to add it.
++                moduleElement.appendChild(this.footer);
++            }
++        },
++
++        /**
++        * Removes the Module element from the DOM and sets all child elements 
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var parent;
++
++            if (this.element) {
++                Event.purgeElement(this.element, true);
++                parent = this.element.parentNode;
++            }
++
++            if (parent) {
++                parent.removeChild(this.element);
++            }
++        
++            this.element = null;
++            this.header = null;
++            this.body = null;
++            this.footer = null;
++
++            Module.textResizeEvent.unsubscribe(this.onDomResize, this);
++
++            this.cfg.destroy();
++            this.cfg = null;
++
++            this.destroyEvent.fire();
++        },
++
++        /**
++        * Shows the Module element by setting the visible configuration 
++        * property to true. Also fires two events: beforeShowEvent prior to 
++        * the visibility change, and showEvent after.
++        * @method show
++        */
++        show: function () {
++            this.cfg.setProperty("visible", true);
++        },
++
++        /**
++        * Hides the Module element by setting the visible configuration 
++        * property to false. Also fires two events: beforeHideEvent prior to 
++        * the visibility change, and hideEvent after.
++        * @method hide
++        */
++        hide: function () {
++            this.cfg.setProperty("visible", false);
++        },
++        
++        // BUILT-IN EVENT HANDLERS FOR MODULE //
++        /**
++        * Default event handler for changing the visibility property of a 
++        * Module. By default, this is achieved by switching the "display" style 
++        * between "block" and "none".
++        * This method is responsible for firing showEvent and hideEvent.
++        * @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.
++        * @method configVisible
++        */
++        configVisible: function (type, args, obj) {
++            var visible = args[0];
++            if (visible) {
++                this.beforeShowEvent.fire();
++                Dom.setStyle(this.element, "display", "block");
++                this.showEvent.fire();
++            } else {
++                this.beforeHideEvent.fire();
++                Dom.setStyle(this.element, "display", "none");
++                this.hideEvent.fire();
++            }
++        },
++
++        /**
++        * Default event handler for the "monitorresize" configuration property
++        * @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.
++        * @method configMonitorResize
++        */
++        configMonitorResize: function (type, args, obj) {
++            var monitor = args[0];
++            if (monitor) {
++                this.initResizeMonitor();
++            } else {
++                Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
++                this.resizeMonitor = null;
++            }
++        },
++
++        /**
++         * This method is a protected helper, used when constructing the DOM structure for the module 
++         * to account for situations which may cause Operation Aborted errors in IE. It should not 
++         * be used for general DOM construction.
++         * <p>
++         * If the parentNode is not document.body, the element is appended as the last element.
++         * </p>
++         * <p>
++         * If the parentNode is document.body the element is added as the first child to help
++         * prevent Operation Aborted errors in IE.
++         * </p>
++         *
++         * @param {parentNode} The HTML element to which the element will be added
++         * @param {element} The HTML element to be added to parentNode's children
++         * @method _addToParent
++         * @protected
++         */
++        _addToParent: function(parentNode, element) {
++            if (!this.cfg.getProperty("appendtodocumentbody") && parentNode === document.body && parentNode.firstChild) {
++                parentNode.insertBefore(element, parentNode.firstChild);
++            } else {
++                parentNode.appendChild(element);
++            }
++        },
++
++        /**
++        * Returns a String representation of the Object.
++        * @method toString
++        * @return {String} The string representation of the Module
++        */
++        toString: function () {
++            return "Module " + this.id;
++        }
++    };
++
++    YAHOO.lang.augmentProto(Module, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * Overlay is a Module that is absolutely positioned above the page flow. It 
++    * has convenience methods for positioning and sizing, as well as options for 
++    * controlling zIndex and constraining the Overlay's position to the current 
++    * visible viewport. Overlay also contains a dynamicly generated IFRAME which 
++    * is placed beneath it for Internet Explorer 6 and 5.x so that it will be 
++    * properly rendered above SELECT elements.
++    * @namespace YAHOO.widget
++    * @class Overlay
++    * @extends YAHOO.widget.Module
++    * @param {String} el The element ID representing the Overlay <em>OR</em>
++    * @param {HTMLElement} el The element representing the Overlay
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Overlay. See configuration 
++    * documentation for more details.
++    * @constructor
++    */
++    YAHOO.widget.Overlay = function (el, userConfig) {
++        YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        UA = YAHOO.env.ua,
++        Overlay = YAHOO.widget.Overlay,
++
++        _SUBSCRIBE = "subscribe",
++        _UNSUBSCRIBE = "unsubscribe",
++        _CONTAINED = "contained",
++
++        m_oIFrameTemplate,
++
++        /**
++        * Constant representing the name of the Overlay's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_MOVE": "beforeMove",
++            "MOVE": "move"
++        },
++
++        /**
++        * Constant representing the Overlay's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "X": { 
++                key: "x", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "Y": { 
++                key: "y", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "XY": { 
++                key: "xy", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "CONTEXT": { 
++                key: "context", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "FIXED_CENTER": { 
++                key: "fixedcenter", 
++                value: false, 
++                supercedes: ["iframe", "visible"] 
++            },
++
++            "WIDTH": { 
++                key: "width",
++                suppressEvent: true,
++                supercedes: ["context", "fixedcenter", "iframe"]
++            }, 
++
++            "HEIGHT": { 
++                key: "height", 
++                suppressEvent: true, 
++                supercedes: ["context", "fixedcenter", "iframe"] 
++            },
++
++            "AUTO_FILL_HEIGHT" : {
++                key: "autofillheight",
++                supercedes: ["height"],
++                value:"body"
++            },
++
++            "ZINDEX": { 
++                key: "zindex", 
++                value: null 
++            },
++
++            "CONSTRAIN_TO_VIEWPORT": { 
++                key: "constraintoviewport", 
++                value: false, 
++                validator: Lang.isBoolean, 
++                supercedes: ["iframe", "x", "y", "xy"]
++            }, 
++
++            "IFRAME": { 
++                key: "iframe", 
++                value: (UA.ie == 6 ? true : false), 
++                validator: Lang.isBoolean, 
++                supercedes: ["zindex"] 
++            },
++
++            "PREVENT_CONTEXT_OVERLAP": {
++                key: "preventcontextoverlap",
++                value: false,
++                validator: Lang.isBoolean,  
++                supercedes: ["constraintoviewport"]
++            }
++
++        };
++
++    /**
++    * The URL that will be placed in the iframe
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.IFRAME_SRC = "javascript:false;";
++
++    /**
++    * Number representing how much the iframe shim should be offset from each 
++    * side of an Overlay instance, in pixels.
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @default 3
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.IFRAME_OFFSET = 3;
++
++    /**
++    * Number representing the minimum distance an Overlay instance should be 
++    * positioned relative to the boundaries of the browser's viewport, in pixels.
++    * @property YAHOO.widget.Overlay.VIEWPORT_OFFSET
++    * @default 10
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.VIEWPORT_OFFSET = 10;
++
++    /**
++    * Constant representing the top left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_LEFT = "tl";
++
++    /**
++    * Constant representing the top right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_RIGHT = "tr";
++
++    /**
++    * Constant representing the top bottom left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_LEFT = "bl";
++
++    /**
++    * Constant representing the bottom right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_RIGHT = "br";
++
++    Overlay.PREVENT_OVERLAP_X = {
++        "tltr": true,
++        "blbr": true,
++        "brbl": true,
++        "trtl": true
++    };
++            
++    Overlay.PREVENT_OVERLAP_Y = {
++        "trbr": true,
++        "tlbl": true,
++        "bltl": true,
++        "brtr": true
++    };
++
++    /**
++    * Constant representing the default CSS class used for an Overlay
++    * @property YAHOO.widget.Overlay.CSS_OVERLAY
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_OVERLAY = "yui-overlay";
++
++    /**
++    * Constant representing the default hidden CSS class used for an Overlay. This class is 
++    * applied to the overlay's outer DIV whenever it's hidden.
++    *
++    * @property YAHOO.widget.Overlay.CSS_HIDDEN
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_HIDDEN = "yui-overlay-hidden";
++
++    /**
++    * Constant representing the default CSS class used for an Overlay iframe shim.
++    * 
++    * @property YAHOO.widget.Overlay.CSS_IFRAME
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_IFRAME = "yui-overlay-iframe";
++
++    /**
++     * Constant representing the names of the standard module elements
++     * used in the overlay.
++     * @property YAHOO.widget.Overlay.STD_MOD_RE
++     * @static
++     * @final
++     * @type RegExp
++     */
++    Overlay.STD_MOD_RE = /^\s*?(body|footer|header)\s*?$/i;
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for 
++    * window scroll
++    * @event YAHOO.widget.Overlay.windowScrollEvent
++    */
++    Overlay.windowScrollEvent = new CustomEvent("windowScroll");
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for
++    * window resize
++    * @event YAHOO.widget.Overlay.windowResizeEvent
++    */
++    Overlay.windowResizeEvent = new CustomEvent("windowResize");
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window scroll
++    * @method YAHOO.widget.Overlay.windowScrollHandler
++    * @static
++    * @param {DOMEvent} e The DOM scroll event
++    */
++    Overlay.windowScrollHandler = function (e) {
++        var t = Event.getTarget(e);
++
++        // - Webkit (Safari 2/3) and Opera 9.2x bubble scroll events from elements to window
++        // - FF2/3 and IE6/7, Opera 9.5x don't bubble scroll events from elements to window
++        // - IE doesn't recognize scroll registered on the document.
++        //
++        // Also, when document view is scrolled, IE doesn't provide a target, 
++        // rest of the browsers set target to window.document, apart from opera 
++        // which sets target to window.
++        if (!t || t === window || t === window.document) {
++            if (UA.ie) {
++
++                if (! window.scrollEnd) {
++                    window.scrollEnd = -1;
++                }
++
++                clearTimeout(window.scrollEnd);
++        
++                window.scrollEnd = setTimeout(function () { 
++                    Overlay.windowScrollEvent.fire(); 
++                }, 1);
++        
++            } else {
++                Overlay.windowScrollEvent.fire();
++            }
++        }
++    };
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window resize
++    * @method YAHOO.widget.Overlay.windowResizeHandler
++    * @static
++    * @param {DOMEvent} e The DOM resize event
++    */
++    Overlay.windowResizeHandler = function (e) {
++
++        if (UA.ie) {
++            if (! window.resizeEnd) {
++                window.resizeEnd = -1;
++            }
++
++            clearTimeout(window.resizeEnd);
++
++            window.resizeEnd = setTimeout(function () {
++                Overlay.windowResizeEvent.fire(); 
++            }, 100);
++        } else {
++            Overlay.windowResizeEvent.fire();
++        }
++    };
++
++    /**
++    * A boolean that indicated whether the window resize and scroll events have 
++    * already been subscribed to.
++    * @property YAHOO.widget.Overlay._initialized
++    * @private
++    * @type Boolean
++    */
++    Overlay._initialized = null;
++
++    if (Overlay._initialized === null) {
++        Event.on(window, "scroll", Overlay.windowScrollHandler);
++        Event.on(window, "resize", Overlay.windowResizeHandler);
++        Overlay._initialized = true;
++    }
++
++    /**
++     * Internal map of special event types, which are provided
++     * by the instance. It maps the event type to the custom event 
++     * instance. Contains entries for the "windowScroll", "windowResize" and
++     * "textResize" static container events.
++     *
++     * @property YAHOO.widget.Overlay._TRIGGER_MAP
++     * @type Object
++     * @static
++     * @private
++     */
++    Overlay._TRIGGER_MAP = {
++        "windowScroll" : Overlay.windowScrollEvent,
++        "windowResize" : Overlay.windowResizeEvent,
++        "textResize"   : Module.textResizeEvent
++    };
++
++    YAHOO.extend(Overlay, Module, {
++
++        /**
++         * <p>
++         * Array of default event types which will trigger
++         * context alignment for the Overlay class.
++         * </p>
++         * <p>The array is empty by default for Overlay,
++         * but maybe populated in future releases, so classes extending
++         * Overlay which need to define their own set of CONTEXT_TRIGGERS
++         * should concatenate their super class's prototype.CONTEXT_TRIGGERS 
++         * value with their own array of values.
++         * </p>
++         * <p>
++         * E.g.:
++         * <code>CustomOverlay.prototype.CONTEXT_TRIGGERS = YAHOO.widget.Overlay.prototype.CONTEXT_TRIGGERS.concat(["windowScroll"]);</code>
++         * </p>
++         * 
++         * @property CONTEXT_TRIGGERS
++         * @type Array
++         * @final
++         */
++        CONTEXT_TRIGGERS : [],
++
++        /**
++        * The Overlay initialization method, which is executed for Overlay and  
++        * all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the Overlay <em>OR</em>
++        * @param {HTMLElement} el The element representing the Overlay
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Overlay. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                 Note that we don't pass the user config in here yet because we
++                 only want it executed once, at the lowest subclass level
++            */
++
++            Overlay.superclass.init.call(this, el/*, userConfig*/);
++
++            this.beforeInitEvent.fire(Overlay);
++
++            Dom.addClass(this.element, Overlay.CSS_OVERLAY);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            if (this.platform == "mac" && UA.gecko) {
++
++                if (! Config.alreadySubscribed(this.showEvent,
++                    this.showMacGeckoScrollbars, this)) {
++
++                    this.showEvent.subscribe(this.showMacGeckoScrollbars, 
++                        this, true);
++
++                }
++
++                if (! Config.alreadySubscribed(this.hideEvent, 
++                    this.hideMacGeckoScrollbars, this)) {
++
++                    this.hideEvent.subscribe(this.hideMacGeckoScrollbars, 
++                        this, true);
++
++                }
++            }
++
++            this.initEvent.fire(Overlay);
++        },
++        
++        /**
++        * Initializes the custom events for Overlay which are fired  
++        * automatically at appropriate times by the Overlay class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            Overlay.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired before the Overlay is moved.
++            * @event beforeMoveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.beforeMoveEvent = this.createEvent(EVENT_TYPES.BEFORE_MOVE);
++            this.beforeMoveEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Overlay is moved.
++            * @event moveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.moveEvent = this.createEvent(EVENT_TYPES.MOVE);
++            this.moveEvent.signature = SIGNATURE;
++
++        },
++        
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the Overlay's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++    
++            Overlay.superclass.initDefaultConfig.call(this);
++
++            var cfg = this.cfg;
++
++            // Add overlay config properties //
++            
++            /**
++            * The absolute x-coordinate position of the Overlay
++            * @config x
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.X.key, { 
++    
++                handler: this.configX, 
++                validator: DEFAULT_CONFIG.X.validator, 
++                suppressEvent: DEFAULT_CONFIG.X.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.X.supercedes
++    
++            });
++
++            /**
++            * The absolute y-coordinate position of the Overlay
++            * @config y
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.Y.key, {
++
++                handler: this.configY, 
++                validator: DEFAULT_CONFIG.Y.validator, 
++                suppressEvent: DEFAULT_CONFIG.Y.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.Y.supercedes
++
++            });
++
++            /**
++            * An array with the absolute x and y positions of the Overlay
++            * @config xy
++            * @type Number[]
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.XY.key, {
++                handler: this.configXY, 
++                suppressEvent: DEFAULT_CONFIG.XY.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.XY.supercedes
++            });
++
++            /**
++            * <p>
++            * The array of context arguments for context-sensitive positioning. 
++            * </p>
++            *
++            * <p>
++            * The format of the array is: <code>[contextElementOrId, overlayCorner, contextCorner, arrayOfTriggerEvents (optional), xyOffset (optional)]</code>, the
++            * the 5 array elements described in detail below:
++            * </p>
++            *
++            * <dl>
++            * <dt>contextElementOrId &#60;String|HTMLElement&#62;</dt>
++            * <dd>A reference to the context element to which the overlay should be aligned (or it's id).</dd>
++            * <dt>overlayCorner &#60;String&#62;</dt>
++            * <dd>The corner of the overlay which is to be used for alignment. This corner will be aligned to the 
++            * corner of the context element defined by the "contextCorner" entry which follows. Supported string values are: 
++            * "tr" (top right), "tl" (top left), "br" (bottom right), or "bl" (bottom left).</dd>
++            * <dt>contextCorner &#60;String&#62;</dt>
++            * <dd>The corner of the context element which is to be used for alignment. Supported string values are the same ones listed for the "overlayCorner" entry above.</dd>
++            * <dt>arrayOfTriggerEvents (optional) &#60;Array[String|CustomEvent]&#62;</dt>
++            * <dd>
++            * <p>
++            * By default, context alignment is a one time operation, aligning the Overlay to the context element when context configuration property is set, or when the <a href="#method_align">align</a> 
++            * method is invoked. However, you can use the optional "arrayOfTriggerEvents" entry to define the list of events which should force the overlay to re-align itself with the context element. 
++            * This is useful in situations where the layout of the document may change, resulting in the context element's position being modified.
++            * </p>
++            * <p>
++            * The array can contain either event type strings for events the instance publishes (e.g. "beforeShow") or CustomEvent instances. Additionally the following
++            * 3 static container event types are also currently supported : <code>"windowResize", "windowScroll", "textResize"</code> (defined in <a href="#property__TRIGGER_MAP">_TRIGGER_MAP</a> private property).
++            * </p>
++            * </dd>
++            * <dt>xyOffset &#60;Number[]&#62;</dt>
++            * <dd>
++            * A 2 element Array specifying the X and Y pixel amounts by which the Overlay should be offset from the aligned corner. e.g. [5,0] offsets the Overlay 5 pixels to the left, <em>after</em> aligning the given context corners.
++            * NOTE: If using this property and no triggers need to be defined, the arrayOfTriggerEvents property should be set to null to maintain correct array positions for the arguments. 
++            * </dd>
++            * </dl>
++            *
++            * <p>
++            * For example, setting this property to <code>["img1", "tl", "bl"]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1".
++            * </p>
++            * <p>
++            * Setting this property to <code>["img1", "tl", "bl", null, [0,5]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1", and then offset it by 5 pixels on the Y axis (providing a 5 pixel gap between the bottom of the context element and top of the overlay).
++            * </p>
++            * <p>
++            * Adding the optional trigger values: <code>["img1", "tl", "bl", ["beforeShow", "windowResize"], [0,5]]</code>,
++            * will re-align the overlay position, whenever the "beforeShow" or "windowResize" events are fired.
++            * </p>
++            *
++            * @config context
++            * @type Array
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.CONTEXT.key, {
++                handler: this.configContext, 
++                suppressEvent: DEFAULT_CONFIG.CONTEXT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.CONTEXT.supercedes
++            });
++
++            /**
++            * Determines whether or not the Overlay should be anchored 
++            * to the center of the viewport.
++            * 
++            * <p>This property can be set to:</p>
++            * 
++            * <dl>
++            * <dt>true</dt>
++            * <dd>
++            * To enable fixed center positioning
++            * <p>
++            * When enabled, the overlay will 
++            * be positioned in the center of viewport when initially displayed, and 
++            * will remain in the center of the viewport whenever the window is 
++            * scrolled or resized.
++            * </p>
++            * <p>
++            * If the overlay is too big for the viewport, 
++            * it's top left corner will be aligned with the top left corner of the viewport.
++            * </p>
++            * </dd>
++            * <dt>false</dt>
++            * <dd>
++            * To disable fixed center positioning.
++            * <p>In this case the overlay can still be 
++            * centered as a one-off operation, by invoking the <code>center()</code> method,
++            * however it will not remain centered when the window is scrolled/resized.
++            * </dd>
++            * <dt>"contained"<dt>
++            * <dd>To enable fixed center positioning, as with the <code>true</code> option.
++            * <p>However, unlike setting the property to <code>true</code>, 
++            * when the property is set to <code>"contained"</code>, if the overlay is 
++            * too big for the viewport, it will not get automatically centered when the 
++            * user scrolls or resizes the window (until the window is large enough to contain the 
++            * overlay). This is useful in cases where the Overlay has both header and footer 
++            * UI controls which the user may need to access.
++            * </p>
++            * </dd>
++            * </dl>
++            *
++            * @config fixedcenter
++            * @type Boolean | String
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
++                handler: this.configFixedCenter,
++                value: DEFAULT_CONFIG.FIXED_CENTER.value, 
++                validator: DEFAULT_CONFIG.FIXED_CENTER.validator, 
++                supercedes: DEFAULT_CONFIG.FIXED_CENTER.supercedes
++            });
++    
++            /**
++            * CSS width of the Overlay.
++            * @config width
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.WIDTH.key, {
++                handler: this.configWidth, 
++                suppressEvent: DEFAULT_CONFIG.WIDTH.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.WIDTH.supercedes
++            });
++
++            /**
++            * CSS height of the Overlay.
++            * @config height
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.HEIGHT.key, {
++                handler: this.configHeight, 
++                suppressEvent: DEFAULT_CONFIG.HEIGHT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.HEIGHT.supercedes
++            });
++
++            /**
++            * Standard module element which should auto fill out the height of the Overlay if the height config property is set.
++            * Supported values are "header", "body", "footer".
++            *
++            * @config autofillheight
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.AUTO_FILL_HEIGHT.key, {
++                handler: this.configAutoFillHeight, 
++                value : DEFAULT_CONFIG.AUTO_FILL_HEIGHT.value,
++                validator : this._validateAutoFill,
++                supercedes: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.supercedes
++            });
++
++            /**
++            * CSS z-index of the Overlay.
++            * @config zIndex
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.ZINDEX.key, {
++                handler: this.configzIndex,
++                value: DEFAULT_CONFIG.ZINDEX.value
++            });
++
++            /**
++            * True if the Overlay should be prevented from being positioned 
++            * out of the viewport.
++            * @config constraintoviewport
++            * @type Boolean
++            * @default false
++            */
++            cfg.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 iframe
++            * @description Boolean indicating whether or not the Overlay 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 Overlay instance is intially
++            * made visible.
++            * @type Boolean
++            * @default true for IE6 and below, false for all other browsers.
++            */
++            cfg.addProperty(DEFAULT_CONFIG.IFRAME.key, {
++
++                handler: this.configIframe, 
++                value: DEFAULT_CONFIG.IFRAME.value, 
++                validator: DEFAULT_CONFIG.IFRAME.validator, 
++                supercedes: DEFAULT_CONFIG.IFRAME.supercedes
++
++            });
++
++            /**
++            * @config preventcontextoverlap
++            * @description Boolean indicating whether or not the Overlay should overlap its 
++            * context element (defined using the "context" configuration property) when the 
++            * "constraintoviewport" configuration property is set to "true".
++            * @type Boolean
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.key, {
++                value: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.value, 
++                validator: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.validator, 
++                supercedes: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.supercedes
++            });
++        },
++
++        /**
++        * Moves the Overlay to the specified position. This function is  
++        * identical to calling this.cfg.setProperty("xy", [x,y]);
++        * @method moveTo
++        * @param {Number} x The Overlay's new x position
++        * @param {Number} y The Overlay's new y position
++        */
++        moveTo: function (x, y) {
++            this.cfg.setProperty("xy", [x, y]);
++        },
++
++        /**
++        * Adds a CSS class ("hide-scrollbars") and removes a CSS class 
++        * ("show-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method hideMacGeckoScrollbars
++        */
++        hideMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "show-scrollbars", "hide-scrollbars");
++        },
++
++        /**
++        * Adds a CSS class ("show-scrollbars") and removes a CSS class 
++        * ("hide-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method showMacGeckoScrollbars
++        */
++        showMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "hide-scrollbars", "show-scrollbars");
++        },
++
++        /**
++         * Internal implementation to set the visibility of the overlay in the DOM.
++         *
++         * @method _setDomVisibility
++         * @param {boolean} visible Whether to show or hide the Overlay's outer element
++         * @protected
++         */
++        _setDomVisibility : function(show) {
++            Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
++            var hiddenClass = Overlay.CSS_HIDDEN;
++
++            if (show) {
++                Dom.removeClass(this.element, hiddenClass);
++            } else {
++                Dom.addClass(this.element, hiddenClass);
++            }
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * The default event handler fired when the "visible" property is 
++        * changed.  This method is responsible for firing showEvent
++        * and hideEvent.
++        * @method configVisible
++        * @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.
++        */
++        configVisible: function (type, args, obj) {
++
++            var visible = args[0],
++                currentVis = Dom.getStyle(this.element, "visibility"),
++                effect = this.cfg.getProperty("effect"),
++                effectInstances = [],
++                isMacGecko = (this.platform == "mac" && UA.gecko),
++                alreadySubscribed = Config.alreadySubscribed,
++                eff, ei, e, i, j, k, h,
++                nEffects,
++                nEffectInstances;
++
++            if (currentVis == "inherit") {
++                e = this.element.parentNode;
++
++                while (e.nodeType != 9 && e.nodeType != 11) {
++                    currentVis = Dom.getStyle(e, "visibility");
++
++                    if (currentVis != "inherit") {
++                        break;
++                    }
++
++                    e = e.parentNode;
++                }
++
++                if (currentVis == "inherit") {
++                    currentVis = "visible";
++                }
++            }
++
++            if (effect) {
++                if (effect instanceof Array) {
++                    nEffects = effect.length;
++
++                    for (i = 0; i < nEffects; i++) {
++                        eff = effect[i];
++                        effectInstances[effectInstances.length] = 
++                            eff.effect(this, eff.duration);
++
++                    }
++                } else {
++                    effectInstances[effectInstances.length] = 
++                        effect.effect(this, effect.duration);
++                }
++            }
++
++            if (visible) { // Show
++                if (isMacGecko) {
++                    this.showMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate in
++                    if (visible) { // Animate in if not showing
++                        if (currentVis != "visible" || currentVis === "") {
++                            this.beforeShowEvent.fire();
++                            nEffectInstances = effectInstances.length;
++
++                            for (j = 0; j < nEffectInstances; j++) {
++                                ei = effectInstances[j];
++                                if (j === 0 && !alreadySubscribed(
++                                        ei.animateInCompleteEvent, 
++                                        this.showEvent.fire, this.showEvent)) {
++
++                                    /*
++                                         Delegate showEvent until end 
++                                         of animateInComplete
++                                    */
++
++                                    ei.animateInCompleteEvent.subscribe(
++                                     this.showEvent.fire, this.showEvent, true);
++                                }
++                                ei.animateIn();
++                            }
++                        }
++                    }
++                } else { // Show
++                    if (currentVis != "visible" || currentVis === "") {
++                        this.beforeShowEvent.fire();
++
++                        this._setDomVisibility(true);
++
++                        this.cfg.refireEvent("iframe");
++                        this.showEvent.fire();
++                    } else {
++                        this._setDomVisibility(true);
++                    }
++                }
++            } else { // Hide
++
++                if (isMacGecko) {
++                    this.hideMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate out if showing
++                    if (currentVis == "visible") {
++                        this.beforeHideEvent.fire();
++
++                        nEffectInstances = effectInstances.length;
++                        for (k = 0; k < nEffectInstances; k++) {
++                            h = effectInstances[k];
++    
++                            if (k === 0 && !alreadySubscribed(
++                                h.animateOutCompleteEvent, this.hideEvent.fire, 
++                                this.hideEvent)) {
++    
++                                /*
++                                     Delegate hideEvent until end 
++                                     of animateOutComplete
++                                */
++    
++                                h.animateOutCompleteEvent.subscribe(
++                                    this.hideEvent.fire, this.hideEvent, true);
++    
++                            }
++                            h.animateOut();
++                        }
++
++                    } else if (currentVis === "") {
++                        this._setDomVisibility(false);
++                    }
++
++                } else { // Simple hide
++
++                    if (currentVis == "visible" || currentVis === "") {
++                        this.beforeHideEvent.fire();
++                        this._setDomVisibility(false);
++                        this.hideEvent.fire();
++                    } else {
++                        this._setDomVisibility(false);
++                    }
++                }
++            }
++        },
++
++        /**
++        * Fixed center event handler used for centering on scroll/resize, but only if 
++        * the overlay is visible and, if "fixedcenter" is set to "contained", only if 
++        * the overlay fits within the viewport.
++        *
++        * @method doCenterOnDOMEvent
++        */
++        doCenterOnDOMEvent: function () {
++            var cfg = this.cfg,
++                fc = cfg.getProperty("fixedcenter");
++
++            if (cfg.getProperty("visible")) {
++                if (fc && (fc !== _CONTAINED || this.fitsInViewport())) {
++                    this.center();
++                }
++            }
++        },
++
++        /**
++         * Determines if the Overlay (including the offset value defined by Overlay.VIEWPORT_OFFSET) 
++         * will fit entirely inside the viewport, in both dimensions - width and height.
++         * 
++         * @method fitsInViewport
++         * @return boolean true if the Overlay will fit, false if not
++         */
++        fitsInViewport : function() {
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                element = this.element,
++                elementWidth = element.offsetWidth,
++                elementHeight = element.offsetHeight,
++                viewportWidth = Dom.getViewportWidth(),
++                viewportHeight = Dom.getViewportHeight();
++
++            return ((elementWidth + nViewportOffset < viewportWidth) && (elementHeight + nViewportOffset < viewportHeight));
++        },
++
++        /**
++        * The default event handler fired when the "fixedcenter" property 
++        * is changed.
++        * @method configFixedCenter
++        * @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.
++        */
++        configFixedCenter: function (type, args, obj) {
++
++            var val = args[0],
++                alreadySubscribed = Config.alreadySubscribed,
++                windowResizeEvent = Overlay.windowResizeEvent,
++                windowScrollEvent = Overlay.windowScrollEvent;
++
++            if (val) {
++                this.center();
++
++                if (!alreadySubscribed(this.beforeShowEvent, this.center)) {
++                    this.beforeShowEvent.subscribe(this.center);
++                }
++
++                if (!alreadySubscribed(windowResizeEvent, this.doCenterOnDOMEvent, this)) {
++                    windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++                if (!alreadySubscribed(windowScrollEvent, this.doCenterOnDOMEvent, this)) {
++                    windowScrollEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++            } else {
++                this.beforeShowEvent.unsubscribe(this.center);
++
++                windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++                windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "height" property is changed.
++        * @method configHeight
++        * @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.
++        */
++        configHeight: function (type, args, obj) {
++
++            var height = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "height", height);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++         * The default event handler fired when the "autofillheight" property is changed.
++         * @method configAutoFillHeight
++         *
++         * @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.
++         */
++        configAutoFillHeight: function (type, args, obj) {
++            var fillEl = args[0],
++                cfg = this.cfg,
++                autoFillHeight = "autofillheight",
++                height = "height",
++                currEl = cfg.getProperty(autoFillHeight),
++                autoFill = this._autoFillOnHeightChange;
++
++            cfg.unsubscribeFromConfigEvent(height, autoFill);
++            Module.textResizeEvent.unsubscribe(autoFill);
++            this.changeContentEvent.unsubscribe(autoFill);
++
++            if (currEl && fillEl !== currEl && this[currEl]) {
++                Dom.setStyle(this[currEl], height, "");
++            }
++
++            if (fillEl) {
++                fillEl = Lang.trim(fillEl.toLowerCase());
++
++                cfg.subscribeToConfigEvent(height, autoFill, this[fillEl], this);
++                Module.textResizeEvent.subscribe(autoFill, this[fillEl], this);
++                this.changeContentEvent.subscribe(autoFill, this[fillEl], this);
++
++                cfg.setProperty(autoFillHeight, fillEl, true);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "width" property is changed.
++        * @method configWidth
++        * @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.
++        */
++        configWidth: function (type, args, obj) {
++
++            var width = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "width", width);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++        * The default event handler fired when the "zIndex" property is changed.
++        * @method configzIndex
++        * @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.
++        */
++        configzIndex: function (type, args, obj) {
++
++            var zIndex = args[0],
++                el = this.element;
++
++            if (! zIndex) {
++                zIndex = Dom.getStyle(el, "zIndex");
++                if (! zIndex || isNaN(zIndex)) {
++                    zIndex = 0;
++                }
++            }
++
++            if (this.iframe || this.cfg.getProperty("iframe") === true) {
++                if (zIndex <= 0) {
++                    zIndex = 1;
++                }
++            }
++
++            Dom.setStyle(el, "zIndex", zIndex);
++            this.cfg.setProperty("zIndex", zIndex, true);
++
++            if (this.iframe) {
++                this.stackIframe();
++            }
++        },
++
++        /**
++        * The default event handler fired when the "xy" property is changed.
++        * @method configXY
++        * @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.
++        */
++        configXY: function (type, args, obj) {
++
++            var pos = args[0],
++                x = pos[0],
++                y = pos[1];
++
++            this.cfg.setProperty("x", x);
++            this.cfg.setProperty("y", y);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            YAHOO.log(("xy: " + [x, y]), "iframe");
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "x" property is changed.
++        * @method configX
++        * @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.
++        */
++        configX: function (type, args, obj) {
++
++            var x = args[0],
++                y = this.cfg.getProperty("y");
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setX(this.element, x, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "y" property is changed.
++        * @method configY
++        * @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.
++        */
++        configY: function (type, args, obj) {
++
++            var x = this.cfg.getProperty("x"),
++                y = args[0];
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setY(this.element, y, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++        
++        /**
++        * Shows the iframe shim, if it has been enabled.
++        * @method showIframe
++        */
++        showIframe: function () {
++
++            var oIFrame = this.iframe,
++                oParentNode;
++
++            if (oIFrame) {
++                oParentNode = this.element.parentNode;
++
++                if (oParentNode != oIFrame.parentNode) {
++                    this._addToParent(oParentNode, oIFrame);
++                }
++                oIFrame.style.display = "block";
++            }
++        },
++
++        /**
++        * Hides the iframe shim, if it has been enabled.
++        * @method hideIframe
++        */
++        hideIframe: function () {
++            if (this.iframe) {
++                this.iframe.style.display = "none";
++            }
++        },
++
++        /**
++        * Syncronizes the size and position of iframe shim to that of its 
++        * corresponding Overlay instance.
++        * @method syncIframe
++        */
++        syncIframe: function () {
++
++            var oIFrame = this.iframe,
++                oElement = this.element,
++                nOffset = Overlay.IFRAME_OFFSET,
++                nDimensionOffset = (nOffset * 2),
++                aXY;
++
++            if (oIFrame) {
++                // Size <iframe>
++                oIFrame.style.width = (oElement.offsetWidth + nDimensionOffset + "px");
++                oIFrame.style.height = (oElement.offsetHeight + nDimensionOffset + "px");
++
++                // Position <iframe>
++                aXY = this.cfg.getProperty("xy");
++
++                if (!Lang.isArray(aXY) || (isNaN(aXY[0]) || isNaN(aXY[1]))) {
++                    this.syncPosition();
++                    aXY = this.cfg.getProperty("xy");
++                }
++                Dom.setXY(oIFrame, [(aXY[0] - nOffset), (aXY[1] - nOffset)]);
++            }
++        },
++
++        /**
++         * Sets the zindex of the iframe shim, if it exists, based on the zindex of
++         * the Overlay element. The zindex of the iframe is set to be one less 
++         * than the Overlay element's zindex.
++         * 
++         * <p>NOTE: This method will not bump up the zindex of the Overlay element
++         * to ensure that the iframe shim has a non-negative zindex.
++         * If you require the iframe zindex to be 0 or higher, the zindex of 
++         * the Overlay element should be set to a value greater than 0, before 
++         * this method is called.
++         * </p>
++         * @method stackIframe
++         */
++        stackIframe: function () {
++            if (this.iframe) {
++                var overlayZ = Dom.getStyle(this.element, "zIndex");
++                if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
++                    Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
++                }
++            }
++        },
++
++        /**
++        * The default event handler fired when the "iframe" property is changed.
++        * @method configIframe
++        * @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.
++        */
++        configIframe: function (type, args, obj) {
++
++            var bIFrame = args[0];
++
++            function createIFrame() {
++
++                var oIFrame = this.iframe,
++                    oElement = this.element,
++                    oParent;
++
++                if (!oIFrame) {
++                    if (!m_oIFrameTemplate) {
++                        m_oIFrameTemplate = document.createElement("iframe");
++
++                        if (this.isSecure) {
++                            m_oIFrameTemplate.src = Overlay.IFRAME_SRC;
++                        }
++
++                        /*
++                            Set the opacity of the <iframe> to 0 so that it 
++                            doesn't modify the opacity of any transparent 
++                            elements that may be on top of it (like a shadow).
++                        */
++                        if (UA.ie) {
++                            m_oIFrameTemplate.style.filter = "alpha(opacity=0)";
++                            /*
++                                 Need to set the "frameBorder" property to 0 
++                                 supress the default <iframe> border in IE.  
++                                 Setting the CSS "border" property alone 
++                                 doesn't supress it.
++                            */
++                            m_oIFrameTemplate.frameBorder = 0;
++                        }
++                        else {
++                            m_oIFrameTemplate.style.opacity = "0";
++                        }
++
++                        m_oIFrameTemplate.style.position = "absolute";
++                        m_oIFrameTemplate.style.border = "none";
++                        m_oIFrameTemplate.style.margin = "0";
++                        m_oIFrameTemplate.style.padding = "0";
++                        m_oIFrameTemplate.style.display = "none";
++                        m_oIFrameTemplate.tabIndex = -1;
++                        m_oIFrameTemplate.className = Overlay.CSS_IFRAME;
++                    }
++
++                    oIFrame = m_oIFrameTemplate.cloneNode(false);
++                    oIFrame.id = this.id + "_f";
++                    oParent = oElement.parentNode;
++
++                    var parentNode = oParent || document.body;
++
++                    this._addToParent(parentNode, oIFrame);
++                    this.iframe = oIFrame;
++                }
++
++                /*
++                     Show the <iframe> before positioning it since the "setXY" 
++                     method of DOM requires the element be in the document 
++                     and visible.
++                */
++                this.showIframe();
++
++                /*
++                     Syncronize the size and position of the <iframe> to that 
++                     of the Overlay.
++                */
++                this.syncIframe();
++                this.stackIframe();
++
++                // Add event listeners to update the <iframe> when necessary
++                if (!this._hasIframeEventListeners) {
++                    this.showEvent.subscribe(this.showIframe);
++                    this.hideEvent.subscribe(this.hideIframe);
++                    this.changeContentEvent.subscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = true;
++                }
++            }
++
++            function onBeforeShow() {
++                createIFrame.call(this);
++                this.beforeShowEvent.unsubscribe(onBeforeShow);
++                this._iframeDeferred = false;
++            }
++
++            if (bIFrame) { // <iframe> shim is enabled
++
++                if (this.cfg.getProperty("visible")) {
++                    createIFrame.call(this);
++                } else {
++                    if (!this._iframeDeferred) {
++                        this.beforeShowEvent.subscribe(onBeforeShow);
++                        this._iframeDeferred = true;
++                    }
++                }
++
++            } else {    // <iframe> shim is disabled
++                this.hideIframe();
++
++                if (this._hasIframeEventListeners) {
++                    this.showEvent.unsubscribe(this.showIframe);
++                    this.hideEvent.unsubscribe(this.hideIframe);
++                    this.changeContentEvent.unsubscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = false;
++                }
++            }
++        },
++
++        /**
++         * Set's the container's XY value from DOM if not already set.
++         * 
++         * Differs from syncPosition, in that the XY value is only sync'd with DOM if 
++         * not already set. The method also refire's the XY config property event, so any
++         * beforeMove, Move event listeners are invoked.
++         * 
++         * @method _primeXYFromDOM
++         * @protected
++         */
++        _primeXYFromDOM : function() {
++            if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
++                // Set CFG XY based on DOM XY
++                this.syncPosition();
++                // Account for XY being set silently in syncPosition (no moveTo fired/called)
++                this.cfg.refireEvent("xy");
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "constraintoviewport" 
++        * property is changed.
++        * @method configConstrainToViewport
++        * @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.
++        */
++        configConstrainToViewport: function (type, args, obj) {
++            var val = args[0];
++
++            if (val) {
++                if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
++                    this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
++                }
++                if (! Config.alreadySubscribed(this.beforeShowEvent, this._primeXYFromDOM)) {
++                    this.beforeShowEvent.subscribe(this._primeXYFromDOM);
++                }
++            } else {
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++                this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this);
++            }
++        },
++
++         /**
++        * The default event handler fired when the "context" property
++        * is changed.
++        *
++        * @method configContext
++        * @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.
++        */
++        configContext: function (type, args, obj) {
++
++            var contextArgs = args[0],
++                contextEl,
++                elementMagnetCorner,
++                contextMagnetCorner,
++                triggers,
++                offset,
++                defTriggers = this.CONTEXT_TRIGGERS;
++
++            if (contextArgs) {
++
++                contextEl = contextArgs[0];
++                elementMagnetCorner = contextArgs[1];
++                contextMagnetCorner = contextArgs[2];
++                triggers = contextArgs[3];
++                offset = contextArgs[4];
++
++                if (defTriggers && defTriggers.length > 0) {
++                    triggers = (triggers || []).concat(defTriggers);
++                }
++
++                if (contextEl) {
++                    if (typeof contextEl == "string") {
++                        this.cfg.setProperty("context", [
++                                document.getElementById(contextEl), 
++                                elementMagnetCorner,
++                                contextMagnetCorner,
++                                triggers,
++                                offset],
++                                true);
++                    }
++
++                    if (elementMagnetCorner && contextMagnetCorner) {
++                        this.align(elementMagnetCorner, contextMagnetCorner, offset);
++                    }
++
++                    if (this._contextTriggers) {
++                        // Unsubscribe Old Set
++                        this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++                    }
++
++                    if (triggers) {
++                        // Subscribe New Set
++                        this._processTriggers(triggers, _SUBSCRIBE, this._alignOnTrigger);
++                        this._contextTriggers = triggers;
++                    }
++                }
++            }
++        },
++
++        /**
++         * Custom Event handler for context alignment triggers. Invokes the align method
++         * 
++         * @method _alignOnTrigger
++         * @protected
++         * 
++         * @param {String} type The event type (not used by the default implementation)
++         * @param {Any[]} args The array of arguments for the trigger event (not used by the default implementation)
++         */
++        _alignOnTrigger: function(type, args) {
++            this.align();
++        },
++
++        /**
++         * Helper method to locate the custom event instance for the event name string
++         * passed in. As a convenience measure, any custom events passed in are returned.
++         *
++         * @method _findTriggerCE
++         * @private
++         *
++         * @param {String|CustomEvent} t Either a CustomEvent, or event type (e.g. "windowScroll") for which a 
++         * custom event instance needs to be looked up from the Overlay._TRIGGER_MAP.
++         */
++        _findTriggerCE : function(t) {
++            var tce = null;
++            if (t instanceof CustomEvent) {
++                tce = t;
++            } else if (Overlay._TRIGGER_MAP[t]) {
++                tce = Overlay._TRIGGER_MAP[t];
++            }
++            return tce;
++        },
++
++        /**
++         * Utility method that subscribes or unsubscribes the given 
++         * function from the list of trigger events provided.
++         *
++         * @method _processTriggers
++         * @protected 
++         *
++         * @param {Array[String|CustomEvent]} triggers An array of either CustomEvents, event type strings 
++         * (e.g. "beforeShow", "windowScroll") to/from which the provided function should be 
++         * subscribed/unsubscribed respectively.
++         *
++         * @param {String} mode Either "subscribe" or "unsubscribe", specifying whether or not
++         * we are subscribing or unsubscribing trigger listeners
++         * 
++         * @param {Function} fn The function to be subscribed/unsubscribed to/from the trigger event.
++         * Context is always set to the overlay instance, and no additional object argument 
++         * get passed to the subscribed function.
++         */
++        _processTriggers : function(triggers, mode, fn) {
++            var t, tce;
++
++            for (var i = 0, l = triggers.length; i < l; ++i) {
++                t = triggers[i];
++                tce = this._findTriggerCE(t);
++                if (tce) {
++                    tce[mode](fn, this, true);
++                } else {
++                    this[mode](t, fn);
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * Aligns the Overlay to its context element using the specified corner 
++        * points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, 
++        * and BOTTOM_RIGHT.
++        * @method align
++        * @param {String} elementAlign  The String representing the corner of 
++        * the Overlay that should be aligned to the context element
++        * @param {String} contextAlign  The corner of the context element 
++        * that the elementAlign corner should stick to.
++        * @param {Number[]} xyOffset Optional. A 2 element array specifying the x and y pixel offsets which should be applied
++        * after aligning the element and context corners. For example, passing in [5, -10] for this value, would offset the 
++        * Overlay by 5 pixels along the X axis (horizontally) and -10 pixels along the Y axis (vertically) after aligning the specified corners.
++        */
++        align: function (elementAlign, contextAlign, xyOffset) {
++
++            var contextArgs = this.cfg.getProperty("context"),
++                me = this,
++                context,
++                element,
++                contextRegion;
++
++            function doAlign(v, h) {
++
++                var alignX = null, alignY = null;
++
++                switch (elementAlign) {
++    
++                    case Overlay.TOP_LEFT:
++                        alignX = h;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.TOP_RIGHT:
++                        alignX = h - element.offsetWidth;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.BOTTOM_LEFT:
++                        alignX = h;
++                        alignY = v - element.offsetHeight;
++                        break;
++        
++                    case Overlay.BOTTOM_RIGHT:
++                        alignX = h - element.offsetWidth; 
++                        alignY = v - element.offsetHeight;
++                        break;
++                }
++
++                if (alignX !== null && alignY !== null) {
++                    if (xyOffset) {
++                        alignX += xyOffset[0];
++                        alignY += xyOffset[1];
++                    }
++                    me.moveTo(alignX, alignY);
++                }
++            }
++
++            if (contextArgs) {
++                context = contextArgs[0];
++                element = this.element;
++                me = this;
++
++                if (! elementAlign) {
++                    elementAlign = contextArgs[1];
++                }
++
++                if (! contextAlign) {
++                    contextAlign = contextArgs[2];
++                }
++
++                if (!xyOffset && contextArgs[4]) {
++                    xyOffset = contextArgs[4];
++                }
++
++                if (element && context) {
++                    contextRegion = Dom.getRegion(context);
++
++                    switch (contextAlign) {
++    
++                        case Overlay.TOP_LEFT:
++                            doAlign(contextRegion.top, contextRegion.left);
++                            break;
++        
++                        case Overlay.TOP_RIGHT:
++                            doAlign(contextRegion.top, contextRegion.right);
++                            break;
++        
++                        case Overlay.BOTTOM_LEFT:
++                            doAlign(contextRegion.bottom, contextRegion.left);
++                            break;
++        
++                        case Overlay.BOTTOM_RIGHT:
++                            doAlign(contextRegion.bottom, contextRegion.right);
++                            break;
++                    }
++                }
++            }
++        },
++
++        /**
++        * The default event handler executed when the moveEvent is fired, if the 
++        * "constraintoviewport" is set to true.
++        * @method enforceConstraints
++        * @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.
++        */
++        enforceConstraints: function (type, args, obj) {
++            var pos = args[0];
++
++            var cXY = this.getConstrainedXY(pos[0], pos[1]);
++            this.cfg.setProperty("x", cXY[0], true);
++            this.cfg.setProperty("y", cXY[1], true);
++            this.cfg.setProperty("xy", cXY, true);
++        },
++
++        /**
++         * Shared implementation method for getConstrainedX and getConstrainedY.
++         * 
++         * <p>
++         * Given a coordinate value, returns the calculated coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions, scroll values and preventoverlap 
++         * settings
++         * </p>
++         *
++         * @method _getConstrainedPos
++         * @protected
++         * @param {String} pos The coordinate which needs to be constrained, either "x" or "y"
++         * @param {Number} The coordinate value which needs to be constrained
++         * @return {Number} The constrained coordinate value
++         */
++        _getConstrainedPos: function(pos, val) {
++
++            var overlayEl = this.element,
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                x = (pos == "x"),
++
++                overlaySize      = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
++                viewportSize     = (x) ? Dom.getViewportWidth() : Dom.getViewportHeight(),
++                docScroll        = (x) ? Dom.getDocumentScrollLeft() : Dom.getDocumentScrollTop(),
++                overlapPositions = (x) ? Overlay.PREVENT_OVERLAP_X : Overlay.PREVENT_OVERLAP_Y,
++
++                context = this.cfg.getProperty("context"),
++
++                bOverlayFitsInViewport = (overlaySize + buffer < viewportSize),
++                bPreventContextOverlap = this.cfg.getProperty("preventcontextoverlap") && context && overlapPositions[(context[1] + context[2])],
++
++                minConstraint = docScroll + buffer,
++                maxConstraint = docScroll + viewportSize - overlaySize - buffer,
++
++                constrainedVal = val;
++
++            if (val < minConstraint || val > maxConstraint) {
++                if (bPreventContextOverlap) {
++                    constrainedVal = this._preventOverlap(pos, context[0], overlaySize, viewportSize, docScroll);
++                } else {
++                    if (bOverlayFitsInViewport) {
++                        if (val < minConstraint) {
++                            constrainedVal = minConstraint;
++                        } else if (val > maxConstraint) {
++                            constrainedVal = maxConstraint;
++                        }
++                    } else {
++                        constrainedVal = minConstraint;
++                    }
++                }
++            }
++
++            return constrainedVal;
++        },
++
++        /**
++         * Helper method, used to position the Overlap to prevent overlap with the 
++         * context element (used when preventcontextoverlap is enabled)
++         *
++         * @method _preventOverlap
++         * @protected
++         * @param {String} pos The coordinate to prevent overlap for, either "x" or "y".
++         * @param {HTMLElement} contextEl The context element
++         * @param {Number} overlaySize The related overlay dimension value (for "x", the width, for "y", the height)
++         * @param {Number} viewportSize The related viewport dimension value (for "x", the width, for "y", the height)
++         * @param {Object} docScroll  The related document scroll value (for "x", the scrollLeft, for "y", the scrollTop)
++         *
++         * @return {Number} The new coordinate value which was set to prevent overlap
++         */
++        _preventOverlap : function(pos, contextEl, overlaySize, viewportSize, docScroll) {
++            
++            var x = (pos == "x"),
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                overlay = this,
++
++                contextElPos   = ((x) ? Dom.getX(contextEl) : Dom.getY(contextEl)) - docScroll,
++                contextElSize  = (x) ? contextEl.offsetWidth : contextEl.offsetHeight,
++
++                minRegionSize = contextElPos - buffer,
++                maxRegionSize = (viewportSize - (contextElPos + contextElSize)) - buffer,
++
++                bFlipped = false,
++
++                flip = function () {
++                    var flippedVal;
++
++                    if ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) {
++                        flippedVal = (contextElPos - overlaySize);
++                    } else {
++                        flippedVal = (contextElPos + contextElSize);
++                    }
++
++                    overlay.cfg.setProperty(pos, (flippedVal + docScroll), true);
++
++                    return flippedVal;
++                },
++
++                setPosition = function () {
++
++                    var displayRegionSize = ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) ? maxRegionSize : minRegionSize,
++                        position;
++
++                    if (overlaySize > displayRegionSize) {
++                        if (bFlipped) {
++                            /*
++                                 All possible positions and values have been 
++                                 tried, but none were successful, so fall back 
++                                 to the original size and position.
++                            */
++                            flip();
++                        } else {
++                            flip();
++                            bFlipped = true;
++                            position = setPosition();
++                        }
++                    }
++
++                    return position;
++                };
++
++            setPosition();
++
++            return this.cfg.getProperty(pos);
++        },
++
++        /**
++         * Given x coordinate value, returns the calculated x coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @return {Number} The constrained x coordinate
++         */		
++        getConstrainedX: function (x) {
++            return this._getConstrainedPos("x", x);
++        },
++
++        /**
++         * Given y coordinate value, returns the calculated y coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Number} The constrained y coordinate
++         */		
++        getConstrainedY : function (y) {
++            return this._getConstrainedPos("y", y);
++        },
++
++        /**
++         * Given x, y coordinate values, returns the calculated coordinates required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Array} The constrained x and y coordinates at index 0 and 1 respectively;
++         */
++        getConstrainedXY: function(x, y) {
++            return [this.getConstrainedX(x), this.getConstrainedY(y)];
++        },
++
++        /**
++        * Centers the container in the viewport.
++        * @method center
++        */
++        center: function () {
++
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                elementWidth = this.element.offsetWidth,
++                elementHeight = this.element.offsetHeight,
++                viewPortWidth = Dom.getViewportWidth(),
++                viewPortHeight = Dom.getViewportHeight(),
++                x,
++                y;
++
++            if (elementWidth < viewPortWidth) {
++                x = (viewPortWidth / 2) - (elementWidth / 2) + Dom.getDocumentScrollLeft();
++            } else {
++                x = nViewportOffset + Dom.getDocumentScrollLeft();
++            }
++
++            if (elementHeight < viewPortHeight) {
++                y = (viewPortHeight / 2) - (elementHeight / 2) + Dom.getDocumentScrollTop();
++            } else {
++                y = nViewportOffset + Dom.getDocumentScrollTop();
++            }
++
++            this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
++            this.cfg.refireEvent("iframe");
++
++            if (UA.webkit) {
++                this.forceContainerRedraw();
++            }
++        },
++
++        /**
++        * Synchronizes the Panel's "xy", "x", and "y" properties with the 
++        * Panel's position in the DOM. This is primarily used to update  
++        * position information during drag & drop.
++        * @method syncPosition
++        */
++        syncPosition: function () {
++
++            var pos = Dom.getXY(this.element);
++
++            this.cfg.setProperty("x", pos[0], true);
++            this.cfg.setProperty("y", pos[1], true);
++            this.cfg.setProperty("xy", pos, true);
++
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The resize DOM event
++        * @param {Object} obj The scope object
++        */
++        onDomResize: function (e, obj) {
++
++            var me = this;
++
++            Overlay.superclass.onDomResize.call(this, e, obj);
++
++            setTimeout(function () {
++                me.syncPosition();
++                me.cfg.refireEvent("iframe");
++                me.cfg.refireEvent("context");
++            }, 0);
++        },
++
++        /**
++         * Determines the content box height of the given element (height of the element, without padding or borders) in pixels.
++         *
++         * @method _getComputedHeight
++         * @private
++         * @param {HTMLElement} el The element for which the content height needs to be determined
++         * @return {Number} The content box height of the given element, or null if it could not be determined.
++         */
++        _getComputedHeight : (function() {
++
++            if (document.defaultView && document.defaultView.getComputedStyle) {
++                return function(el) {
++                    var height = null;
++                    if (el.ownerDocument && el.ownerDocument.defaultView) {
++                        var computed = el.ownerDocument.defaultView.getComputedStyle(el, '');
++                        if (computed) {
++                            height = parseInt(computed.height, 10);
++                        }
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            } else {
++                return function(el) {
++                    var height = null;
++                    if (el.style.pixelHeight) {
++                        height = el.style.pixelHeight;
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            }
++        })(),
++
++        /**
++         * autofillheight validator. Verifies that the autofill value is either null 
++         * or one of the strings : "body", "header" or "footer".
++         *
++         * @method _validateAutoFillHeight
++         * @protected
++         * @param {String} val
++         * @return true, if valid, false otherwise
++         */
++        _validateAutoFillHeight : function(val) {
++            return (!val) || (Lang.isString(val) && Overlay.STD_MOD_RE.test(val));
++        },
++
++        /**
++         * The default custom event handler executed when the overlay's height is changed, 
++         * if the autofillheight property has been set.
++         *
++         * @method _autoFillOnHeightChange
++         * @protected
++         * @param {String} type The event type
++         * @param {Array} args The array of arguments passed to event subscribers
++         * @param {HTMLElement} el The header, body or footer element which is to be resized to fill
++         * out the containers height
++         */
++        _autoFillOnHeightChange : function(type, args, el) {
++            var height = this.cfg.getProperty("height");
++            if ((height && height !== "auto") || (height === 0)) {
++                this.fillHeight(el);
++            }
++        },
++
++        /**
++         * Returns the sub-pixel height of the el, using getBoundingClientRect, if available,
++         * otherwise returns the offsetHeight
++         * @method _getPreciseHeight
++         * @private
++         * @param {HTMLElement} el
++         * @return {Float} The sub-pixel height if supported by the browser, else the rounded height.
++         */
++        _getPreciseHeight : function(el) {
++            var height = el.offsetHeight;
++
++            if (el.getBoundingClientRect) {
++                var rect = el.getBoundingClientRect();
++                height = rect.bottom - rect.top;
++            }
++
++            return height;
++        },
++
++        /**
++         * <p>
++         * Sets the height on the provided header, body or footer element to 
++         * fill out the height of the container. It determines the height of the 
++         * containers content box, based on it's configured height value, and 
++         * sets the height of the autofillheight element to fill out any 
++         * space remaining after the other standard module element heights 
++         * have been accounted for.
++         * </p>
++         * <p><strong>NOTE:</strong> This method is not designed to work if an explicit 
++         * height has not been set on the container, since for an "auto" height container, 
++         * the heights of the header/body/footer will drive the height of the container.</p>
++         *
++         * @method fillHeight
++         * @param {HTMLElement} el The element which should be resized to fill out the height
++         * of the container element.
++         */
++        fillHeight : function(el) {
++            if (el) {
++                var container = this.innerElement || this.element,
++                    containerEls = [this.header, this.body, this.footer],
++                    containerEl,
++                    total = 0,
++                    filled = 0,
++                    remaining = 0,
++                    validEl = false;
++
++                for (var i = 0, l = containerEls.length; i < l; i++) {
++                    containerEl = containerEls[i];
++                    if (containerEl) {
++                        if (el !== containerEl) {
++                            filled += this._getPreciseHeight(containerEl);
++                        } else {
++                            validEl = true;
++                        }
++                    }
++                }
++
++                if (validEl) {
++
++                    if (UA.ie || UA.opera) {
++                        // Need to set height to 0, to allow height to be reduced
++                        Dom.setStyle(el, 'height', 0 + 'px');
++                    }
++
++                    total = this._getComputedHeight(container);
++
++                    // Fallback, if we can't get computed value for content height
++                    if (total === null) {
++                        Dom.addClass(container, "yui-override-padding");
++                        total = container.clientHeight; // Content, No Border, 0 Padding (set by yui-override-padding)
++                        Dom.removeClass(container, "yui-override-padding");
++                    }
++    
++                    remaining = Math.max(total - filled, 0);
++    
++                    Dom.setStyle(el, "height", remaining + "px");
++    
++                    // Re-adjust height if required, to account for el padding and border
++                    if (el.offsetHeight != remaining) {
++                        remaining = Math.max(remaining - (el.offsetHeight - remaining), 0);
++                    }
++                    Dom.setStyle(el, "height", remaining + "px");
++                }
++            }
++        },
++
++        /**
++        * Places the Overlay on top of all other instances of 
++        * YAHOO.widget.Overlay.
++        * @method bringToTop
++        */
++        bringToTop: function () {
++
++            var aOverlays = [],
++                oElement = this.element;
++
++            function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
++
++                var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
++                    sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
++
++                    nZIndex1 = (!sZIndex1 || isNaN(sZIndex1)) ? 0 : parseInt(sZIndex1, 10),
++                    nZIndex2 = (!sZIndex2 || isNaN(sZIndex2)) ? 0 : parseInt(sZIndex2, 10);
++
++                if (nZIndex1 > nZIndex2) {
++                    return -1;
++                } else if (nZIndex1 < nZIndex2) {
++                    return 1;
++                } else {
++                    return 0;
++                }
++            }
++
++            function isOverlayElement(p_oElement) {
++
++                var isOverlay = Dom.hasClass(p_oElement, Overlay.CSS_OVERLAY),
++                    Panel = YAHOO.widget.Panel;
++
++                if (isOverlay && !Dom.isAncestor(oElement, p_oElement)) {
++                    if (Panel && Dom.hasClass(p_oElement, Panel.CSS_PANEL)) {
++                        aOverlays[aOverlays.length] = p_oElement.parentNode;
++                    } else {
++                        aOverlays[aOverlays.length] = p_oElement;
++                    }
++                }
++            }
++
++            Dom.getElementsBy(isOverlayElement, "DIV", document.body);
++
++            aOverlays.sort(compareZIndexDesc);
++
++            var oTopOverlay = aOverlays[0],
++                nTopZIndex;
++
++            if (oTopOverlay) {
++                nTopZIndex = Dom.getStyle(oTopOverlay, "zIndex");
++
++                if (!isNaN(nTopZIndex)) {
++                    var bRequiresBump = false;
++
++                    if (oTopOverlay != oElement) {
++                        bRequiresBump = true;
++                    } else if (aOverlays.length > 1) {
++                        var nNextZIndex = Dom.getStyle(aOverlays[1], "zIndex");
++                        // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                        if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                            bRequiresBump = true;
++                        }
++                    }
++                    if (bRequiresBump) {
++                        this.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                    }
++                }
++            }
++        },
++
++        /**
++        * Removes the Overlay element from the DOM and sets all child 
++        * elements to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            if (this.iframe) {
++                this.iframe.parentNode.removeChild(this.iframe);
++            }
++
++            this.iframe = null;
++
++            Overlay.windowResizeEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++    
++            Overlay.windowScrollEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++
++            Module.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);
++
++            if (this._contextTriggers) {
++                // Unsubscribe context triggers - to cover context triggers which listen for global
++                // events such as windowResize and windowScroll. Easier just to unsubscribe all
++                this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++            }
++
++            Overlay.superclass.destroy.call(this);
++        },
++
++        /**
++         * Can be used to force the container to repaint/redraw it's contents.
++         * <p>
++         * By default applies and then removes a 1px bottom margin through the 
++         * application/removal of a "yui-force-redraw" class.
++         * </p>
++         * <p>
++         * It is currently used by Overlay to force a repaint for webkit 
++         * browsers, when centering.
++         * </p>
++         * @method forceContainerRedraw
++         */
++        forceContainerRedraw : function() {
++            var c = this;
++            Dom.addClass(c.element, "yui-force-redraw");
++            setTimeout(function() {
++                Dom.removeClass(c.element, "yui-force-redraw");
++            }, 0);
++        },
++
++        /**
++        * Returns a String representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Overlay.
++        */
++        toString: function () {
++            return "Overlay " + this.id;
++        }
++
++    });
++}());
++(function () {
++
++    /**
++    * OverlayManager is used for maintaining the focus status of 
++    * multiple Overlays.
++    * @namespace YAHOO.widget
++    * @namespace YAHOO.widget
++    * @class OverlayManager
++    * @constructor
++    * @param {Array} overlays Optional. A collection of Overlays to register 
++    * with the manager.
++    * @param {Object} userConfig  The object literal representing the user 
++    * configuration of the OverlayManager
++    */
++    YAHOO.widget.OverlayManager = function (userConfig) {
++        this.init(userConfig);
++    };
++
++    var Overlay = YAHOO.widget.Overlay,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        CustomEvent = YAHOO.util.CustomEvent,
++        OverlayManager = YAHOO.widget.OverlayManager;
++
++    /**
++    * The CSS class representing a focused Overlay
++    * @property OverlayManager.CSS_FOCUSED
++    * @static
++    * @final
++    * @type String
++    */
++    OverlayManager.CSS_FOCUSED = "focused";
++
++    OverlayManager.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: OverlayManager,
++
++        /**
++        * The array of Overlays that are currently registered
++        * @property overlays
++        * @type YAHOO.widget.Overlay[]
++        */
++        overlays: null,
++
++        /**
++        * Initializes the default configuration of the OverlayManager
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++            /**
++            * The collection of registered Overlays in use by 
++            * the OverlayManager
++            * @config overlays
++            * @type YAHOO.widget.Overlay[]
++            * @default null
++            */
++            this.cfg.addProperty("overlays", { suppressEvent: true } );
++
++            /**
++            * The default DOM event that should be used to focus an Overlay
++            * @config focusevent
++            * @type String
++            * @default "mousedown"
++            */
++            this.cfg.addProperty("focusevent", { value: "mousedown" } );
++        },
++
++        /**
++        * Initializes the OverlayManager
++        * @method init
++        * @param {Overlay[]} overlays Optional. A collection of Overlays to 
++        * register with the manager.
++        * @param {Object} userConfig  The object literal representing the user 
++        * configuration of the OverlayManager
++        */
++        init: function (userConfig) {
++
++            /**
++            * The OverlayManager's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type Config
++            */
++            this.cfg = new Config(this);
++
++            this.initDefaultConfig();
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++            this.cfg.fireQueue();
++
++            /**
++            * The currently activated Overlay
++            * @property activeOverlay
++            * @private
++            * @type YAHOO.widget.Overlay
++            */
++            var activeOverlay = null;
++
++            /**
++            * Returns the currently focused Overlay
++            * @method getActive
++            * @return {Overlay} The currently focused Overlay
++            */
++            this.getActive = function () {
++                return activeOverlay;
++            };
++
++            /**
++            * Focuses the specified Overlay
++            * @method focus
++            * @param {Overlay} overlay The Overlay to focus
++            * @param {String} overlay The id of the Overlay to focus
++            */
++            this.focus = function (overlay) {
++                var o = this.find(overlay);
++                if (o) {
++                    o.focus();
++                }
++            };
++
++            /**
++            * Removes the specified Overlay from the manager
++            * @method remove
++            * @param {Overlay} overlay The Overlay to remove
++            * @param {String} overlay The id of the Overlay to remove
++            */
++            this.remove = function (overlay) {
++
++                var o = this.find(overlay), 
++                        originalZ;
++
++                if (o) {
++                    if (activeOverlay == o) {
++                        activeOverlay = null;
++                    }
++
++                    var bDestroyed = (o.element === null && o.cfg === null) ? true : false;
++
++                    if (!bDestroyed) {
++                        // Set it's zindex so that it's sorted to the end.
++                        originalZ = Dom.getStyle(o.element, "zIndex");
++                        o.cfg.setProperty("zIndex", -1000, true);
++                    }
++
++                    this.overlays.sort(this.compareZIndexDesc);
++                    this.overlays = this.overlays.slice(0, (this.overlays.length - 1));
++
++                    o.hideEvent.unsubscribe(o.blur);
++                    o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
++                    o.focusEvent.unsubscribe(this._onOverlayFocusHandler, o);
++                    o.blurEvent.unsubscribe(this._onOverlayBlurHandler, o);
++
++                    if (!bDestroyed) {
++                        Event.removeListener(o.element, this.cfg.getProperty("focusevent"), this._onOverlayElementFocus);
++                        o.cfg.setProperty("zIndex", originalZ, true);
++                        o.cfg.setProperty("manager", null);
++                    }
++
++                    /* _managed Flag for custom or existing. Don't want to remove existing */
++                    if (o.focusEvent._managed) { o.focusEvent = null; }
++                    if (o.blurEvent._managed) { o.blurEvent = null; }
++
++                    if (o.focus._managed) { o.focus = null; }
++                    if (o.blur._managed) { o.blur = null; }
++                }
++            };
++
++            /**
++            * Removes focus from all registered Overlays in the manager
++            * @method blurAll
++            */
++            this.blurAll = function () {
++
++                var nOverlays = this.overlays.length,
++                    i;
++
++                if (nOverlays > 0) {
++                    i = nOverlays - 1;
++                    do {
++                        this.overlays[i].blur();
++                    }
++                    while(i--);
++                }
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay
++             * being blurred.
++             * 
++             * @method _manageBlur
++             * @param {Overlay} overlay The overlay instance which got blurred.
++             * @protected
++             */
++            this._manageBlur = function (overlay) {
++                var changed = false;
++                if (activeOverlay == overlay) {
++                    Dom.removeClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    activeOverlay = null;
++                    changed = true;
++                }
++                return changed;
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay 
++             * receiving focus.
++             *
++             * @method _manageFocus
++             * @param {Overlay} overlay The overlay instance which got focus.
++             * @protected
++             */
++            this._manageFocus = function(overlay) {
++                var changed = false;
++                if (activeOverlay != overlay) {
++                    if (activeOverlay) {
++                        activeOverlay.blur();
++                    }
++                    activeOverlay = overlay;
++                    this.bringToTop(activeOverlay);
++                    Dom.addClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    changed = true;
++                }
++                return changed;
++            };
++
++            var overlays = this.cfg.getProperty("overlays");
++
++            if (! this.overlays) {
++                this.overlays = [];
++            }
++
++            if (overlays) {
++                this.register(overlays);
++                this.overlays.sort(this.compareZIndexDesc);
++            }
++        },
++
++        /**
++        * @method _onOverlayElementFocus
++        * @description Event handler for the DOM event that is used to focus 
++        * the Overlay instance as specified by the "focusevent" 
++        * configuration property.
++        * @private
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (Event).
++        */
++        _onOverlayElementFocus: function (p_oEvent) {
++
++            var oTarget = Event.getTarget(p_oEvent),
++                oClose = this.close;
++
++            if (oClose && (oTarget == oClose || Dom.isAncestor(oClose, oTarget))) {
++                this.blur();
++            } else {
++                this.focus();
++            }
++        },
++
++        /**
++        * @method _onOverlayDestroy
++        * @description "destroy" event handler for the Overlay.
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayDestroy: function (p_sType, p_aArgs, p_oOverlay) {
++            this.remove(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayFocusHandler
++        *
++        * @description focusEvent Handler, used to delegate to _manageFocus with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayFocusHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageFocus(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayBlurHandler
++        * @description blurEvent Handler, used to delegate to _manageBlur with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayBlurHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageBlur(p_oOverlay);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance focusEvent, to allow the OverlayManager to
++         * monitor focus state.
++         * 
++         * If the instance already has a focusEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing focusEvent, however if a focusEvent or focus method does not exist
++         * on the instance, the _bindFocus method will add them, and the focus method will 
++         * update the OverlayManager's state directly.
++         * 
++         * @method _bindFocus
++         * @param {Overlay} overlay The overlay for which focus needs to be managed
++         * @protected
++         */
++        _bindFocus : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.focusEvent) {
++                overlay.focusEvent = overlay.createEvent("focus");
++                overlay.focusEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.focusEvent.subscribe(mgr._onOverlayFocusHandler, overlay, mgr);
++            }
++
++            if (!overlay.focus) {
++                Event.on(overlay.element, mgr.cfg.getProperty("focusevent"), mgr._onOverlayElementFocus, null, overlay);
++                overlay.focus = function () {
++                    if (mgr._manageFocus(this)) {
++                        // For Panel/Dialog
++                        if (this.cfg.getProperty("visible") && this.focusFirst) {
++                            this.focusFirst();
++                        }
++                        this.focusEvent.fire();
++                    }
++                };
++                overlay.focus._managed = true;
++            }
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's blurEvent to allow the OverlayManager to
++         * monitor blur state.
++         *
++         * If the instance already has a blurEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing blurEvent, however if a blurEvent or blur method does not exist
++         * on the instance, the _bindBlur method will add them, and the blur method 
++         * update the OverlayManager's state directly.
++         *
++         * @method _bindBlur
++         * @param {Overlay} overlay The overlay for which blur needs to be managed
++         * @protected
++         */
++        _bindBlur : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.blurEvent) {
++                overlay.blurEvent = overlay.createEvent("blur");
++                overlay.blurEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.blurEvent.subscribe(mgr._onOverlayBlurHandler, overlay, mgr);
++            }
++
++            if (!overlay.blur) {
++                overlay.blur = function () {
++                    if (mgr._manageBlur(this)) {
++                        this.blurEvent.fire();
++                    }
++                };
++                overlay.blur._managed = true;
++            }
++
++            overlay.hideEvent.subscribe(overlay.blur);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's destroyEvent, to allow the Overlay
++         * to be removed for the OverlayManager when destroyed.
++         * 
++         * @method _bindDestroy
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _bindDestroy : function(overlay) {
++            var mgr = this;
++            overlay.destroyEvent.subscribe(mgr._onOverlayDestroy, overlay, mgr);
++        },
++
++        /**
++         * Ensures the zIndex configuration property on the managed overlay based instance
++         * is set to the computed zIndex value from the DOM (with "auto" translating to 0).
++         *
++         * @method _syncZIndex
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _syncZIndex : function(overlay) {
++            var zIndex = Dom.getStyle(overlay.element, "zIndex");
++            if (!isNaN(zIndex)) {
++                overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10));
++            } else {
++                overlay.cfg.setProperty("zIndex", 0);
++            }
++        },
++
++        /**
++        * Registers an Overlay or an array of Overlays with the manager. Upon 
++        * registration, the Overlay receives functions for focus and blur, 
++        * along with CustomEvents for each.
++        *
++        * @method register
++        * @param {Overlay} overlay  An Overlay to register with the manager.
++        * @param {Overlay[]} overlay  An array of Overlays to register with 
++        * the manager.
++        * @return {boolean} true if any Overlays are registered.
++        */
++        register: function (overlay) {
++
++            var registered = false,
++                i,
++                n;
++
++            if (overlay instanceof Overlay) {
++
++                overlay.cfg.addProperty("manager", { value: this } );
++
++                this._bindFocus(overlay);
++                this._bindBlur(overlay);
++                this._bindDestroy(overlay);
++                this._syncZIndex(overlay);
++
++                this.overlays.push(overlay);
++                this.bringToTop(overlay);
++
++                registered = true;
++
++            } else if (overlay instanceof Array) {
++
++                for (i = 0, n = overlay.length; i < n; i++) {
++                    registered = this.register(overlay[i]) || registered;
++                }
++
++            }
++
++            return registered;
++        },
++
++        /**
++        * Places the specified Overlay instance on top of all other 
++        * Overlay instances.
++        * @method bringToTop
++        * @param {YAHOO.widget.Overlay} p_oOverlay Object representing an 
++        * Overlay instance.
++        * @param {String} p_oOverlay String representing the id of an 
++        * Overlay instance.
++        */        
++        bringToTop: function (p_oOverlay) {
++
++            var oOverlay = this.find(p_oOverlay),
++                nTopZIndex,
++                oTopOverlay,
++                aOverlays;
++
++            if (oOverlay) {
++
++                aOverlays = this.overlays;
++                aOverlays.sort(this.compareZIndexDesc);
++
++                oTopOverlay = aOverlays[0];
++
++                if (oTopOverlay) {
++                    nTopZIndex = Dom.getStyle(oTopOverlay.element, "zIndex");
++
++                    if (!isNaN(nTopZIndex)) {
++
++                        var bRequiresBump = false;
++
++                        if (oTopOverlay !== oOverlay) {
++                            bRequiresBump = true;
++                        } else if (aOverlays.length > 1) {
++                            var nNextZIndex = Dom.getStyle(aOverlays[1].element, "zIndex");
++                            // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                            if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                                bRequiresBump = true;
++                            }
++                        }
++
++                        if (bRequiresBump) {
++                            oOverlay.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                        }
++                    }
++                    aOverlays.sort(this.compareZIndexDesc);
++                }
++            }
++        },
++
++        /**
++        * Attempts to locate an Overlay by instance or ID.
++        * @method find
++        * @param {Overlay} overlay  An Overlay to locate within the manager
++        * @param {String} overlay  An Overlay id to locate within the manager
++        * @return {Overlay} The requested Overlay, if found, or null if it 
++        * cannot be located.
++        */
++        find: function (overlay) {
++
++            var isInstance = overlay instanceof Overlay,
++                overlays = this.overlays,
++                n = overlays.length,
++                found = null,
++                o,
++                i;
++
++            if (isInstance || typeof overlay == "string") {
++                for (i = n-1; i >= 0; i--) {
++                    o = overlays[i];
++                    if ((isInstance && (o === overlay)) || (o.id == overlay)) {
++                        found = o;
++                        break;
++                    }
++                }
++            }
++
++            return found;
++        },
++
++        /**
++        * Used for sorting the manager's Overlays by z-index.
++        * @method compareZIndexDesc
++        * @private
++        * @return {Number} 0, 1, or -1, depending on where the Overlay should 
++        * fall in the stacking order.
++        */
++        compareZIndexDesc: function (o1, o2) {
++
++            var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
++                zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
++
++            if (zIndex1 === null && zIndex2 === null) {
++                return 0;
++            } else if (zIndex1 === null){
++                return 1;
++            } else if (zIndex2 === null) {
++                return -1;
++            } else if (zIndex1 > zIndex2) {
++                return -1;
++            } else if (zIndex1 < zIndex2) {
++                return 1;
++            } else {
++                return 0;
++            }
++        },
++
++        /**
++        * Shows all Overlays in the manager.
++        * @method showAll
++        */
++        showAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].show();
++            }
++        },
++
++        /**
++        * Hides all Overlays in the manager.
++        * @method hideAll
++        */
++        hideAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].hide();
++            }
++        },
++
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the OverlayManager
++        */
++        toString: function () {
++            return "OverlayManager";
++        }
++    };
++}());
++(function () {
++
++    /**
++    * ContainerEffect encapsulates animation transitions that are executed when 
++    * an Overlay is shown or hidden.
++    * @namespace YAHOO.widget
++    * @class ContainerEffect
++    * @constructor
++    * @param {YAHOO.widget.Overlay} overlay The Overlay that the animation 
++    * should be associated with
++    * @param {Object} attrIn The object literal representing the animation 
++    * arguments to be used for the animate-in transition. The arguments for 
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {Object} attrOut The object literal representing the animation 
++    * arguments to be used for the animate-out transition. The arguments for  
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {HTMLElement} targetElement Optional. The target element that  
++    * should be animated during the transition. Defaults to overlay.element.
++    * @param {class} Optional. The animation class to instantiate. Defaults to 
++    * YAHOO.util.Anim. Other options include YAHOO.util.Motion.
++    */
++    YAHOO.widget.ContainerEffect = function (overlay, attrIn, attrOut, targetElement, animClass) {
++
++        if (!animClass) {
++            animClass = YAHOO.util.Anim;
++        }
++
++        /**
++        * The overlay to animate
++        * @property overlay
++        * @type YAHOO.widget.Overlay
++        */
++        this.overlay = overlay;
++    
++        /**
++        * The animation attributes to use when transitioning into view
++        * @property attrIn
++        * @type Object
++        */
++        this.attrIn = attrIn;
++    
++        /**
++        * The animation attributes to use when transitioning out of view
++        * @property attrOut
++        * @type Object
++        */
++        this.attrOut = attrOut;
++    
++        /**
++        * The target element to be animated
++        * @property targetElement
++        * @type HTMLElement
++        */
++        this.targetElement = targetElement || overlay.element;
++    
++        /**
++        * The animation class to use for animating the overlay
++        * @property animClass
++        * @type class
++        */
++        this.animClass = animClass;
++    
++    };
++
++
++    var Dom = YAHOO.util.Dom,
++        CustomEvent = YAHOO.util.CustomEvent,
++        ContainerEffect = YAHOO.widget.ContainerEffect;
++
++
++    /**
++    * A pre-configured ContainerEffect instance that can be used for fading 
++    * an overlay in and out.
++    * @method FADE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.FADE = function (overlay, dur) {
++
++        var Easing = YAHOO.util.Easing,
++            fin = {
++                attributes: {opacity:{from:0, to:1}},
++                duration: dur,
++                method: Easing.easeIn
++            },
++            fout = {
++                attributes: {opacity:{to:0}},
++                duration: dur,
++                method: Easing.easeOut
++            },
++            fade = new ContainerEffect(overlay, fin, fout, overlay.element);
++
++        fade.handleUnderlayStart = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                var hasFilters = (underlay.filters && underlay.filters.length > 0);
++                if(hasFilters) {
++                    Dom.addClass(overlay.element, "yui-effect-fade");
++                }
++            }
++        };
++
++        fade.handleUnderlayComplete = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                Dom.removeClass(overlay.element, "yui-effect-fade");
++            }
++        };
++
++        fade.handleStartAnimateIn = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++
++            if (!obj.overlay.underlay) {
++                obj.overlay.cfg.refireEvent("underlay");
++            }
++
++            obj.handleUnderlayStart();
++
++            obj.overlay._setDomVisibility(true);
++            Dom.setStyle(obj.overlay.element, "opacity", 0);
++        };
++
++        fade.handleCompleteAnimateIn = function (type,args,obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++
++        fade.handleStartAnimateOut = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++            obj.handleUnderlayStart();
++        };
++
++        fade.handleCompleteAnimateOut =  function (type, args, obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++            obj.overlay._setDomVisibility(false);
++            Dom.setStyle(obj.overlay.element, "opacity", 1);
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        fade.init();
++        return fade;
++    };
++    
++    
++    /**
++    * A pre-configured ContainerEffect instance that can be used for sliding an 
++    * overlay in and out.
++    * @method SLIDE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.SLIDE = function (overlay, dur) {
++        var Easing = YAHOO.util.Easing,
++
++            x = overlay.cfg.getProperty("x") || Dom.getX(overlay.element),
++            y = overlay.cfg.getProperty("y") || Dom.getY(overlay.element),
++            clientWidth = Dom.getClientWidth(),
++            offsetWidth = overlay.element.offsetWidth,
++
++            sin =  { 
++                attributes: { points: { to: [x, y] } },
++                duration: dur,
++                method: Easing.easeIn 
++            },
++
++            sout = {
++                attributes: { points: { to: [(clientWidth + 25), y] } },
++                duration: dur,
++                method: Easing.easeOut 
++            },
++
++            slide = new ContainerEffect(overlay, sin, sout, overlay.element, YAHOO.util.Motion);
++
++        slide.handleStartAnimateIn = function (type,args,obj) {
++            obj.overlay.element.style.left = ((-25) - offsetWidth) + "px";
++            obj.overlay.element.style.top  = y + "px";
++        };
++
++        slide.handleTweenAnimateIn = function (type, args, obj) {
++        
++            var pos = Dom.getXY(obj.overlay.element),
++                currentX = pos[0],
++                currentY = pos[1];
++        
++            if (Dom.getStyle(obj.overlay.element, "visibility") == 
++                "hidden" && currentX < x) {
++
++                obj.overlay._setDomVisibility(true);
++
++            }
++        
++            obj.overlay.cfg.setProperty("xy", [currentX, currentY], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateIn = function (type, args, obj) {
++            obj.overlay.cfg.setProperty("xy", [x, y], true);
++            obj.startX = x;
++            obj.startY = y;
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++        
++        slide.handleStartAnimateOut = function (type, args, obj) {
++    
++            var vw = Dom.getViewportWidth(),
++                pos = Dom.getXY(obj.overlay.element),
++                yso = pos[1];
++    
++            obj.animOut.attributes.points.to = [(vw + 25), yso];
++        };
++        
++        slide.handleTweenAnimateOut = function (type, args, obj) {
++    
++            var pos = Dom.getXY(obj.overlay.element),
++                xto = pos[0],
++                yto = pos[1];
++        
++            obj.overlay.cfg.setProperty("xy", [xto, yto], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateOut = function (type, args, obj) {
++            obj.overlay._setDomVisibility(false);
++
++            obj.overlay.cfg.setProperty("xy", [x, y]);
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        slide.init();
++        return slide;
++    };
++
++    ContainerEffect.prototype = {
++
++        /**
++        * Initializes the animation classes and events.
++        * @method init
++        */
++        init: function () {
++
++            this.beforeAnimateInEvent = this.createEvent("beforeAnimateIn");
++            this.beforeAnimateInEvent.signature = CustomEvent.LIST;
++            
++            this.beforeAnimateOutEvent = this.createEvent("beforeAnimateOut");
++            this.beforeAnimateOutEvent.signature = CustomEvent.LIST;
++        
++            this.animateInCompleteEvent = this.createEvent("animateInComplete");
++            this.animateInCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animateOutCompleteEvent = 
++                this.createEvent("animateOutComplete");
++            this.animateOutCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animIn = new this.animClass(this.targetElement, 
++                this.attrIn.attributes, this.attrIn.duration, 
++                this.attrIn.method);
++
++            this.animIn.onStart.subscribe(this.handleStartAnimateIn, this);
++            this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this);
++
++            this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, 
++                this);
++        
++            this.animOut = new this.animClass(this.targetElement, 
++                this.attrOut.attributes, this.attrOut.duration, 
++                this.attrOut.method);
++
++            this.animOut.onStart.subscribe(this.handleStartAnimateOut, this);
++            this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this);
++            this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, 
++                this);
++
++        },
++        
++        /**
++        * Triggers the in-animation.
++        * @method animateIn
++        */
++        animateIn: function () {
++            this.beforeAnimateInEvent.fire();
++            this.animIn.animate();
++        },
++
++        /**
++        * Triggers the out-animation.
++        * @method animateOut
++        */
++        animateOut: function () {
++            this.beforeAnimateOutEvent.fire();
++            this.animOut.animate();
++        },
++
++        /**
++        * The default onStart handler for the in-animation.
++        * @method handleStartAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the in-animation.
++        * @method handleTweenAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the in-animation.
++        * @method handleCompleteAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onStart handler for the out-animation.
++        * @method handleStartAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the out-animation.
++        * @method handleTweenAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the out-animation.
++        * @method handleCompleteAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateOut: function (type, args, obj) { },
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the ContainerEffect
++        */
++        toString: function () {
++            var output = "ContainerEffect";
++            if (this.overlay) {
++                output += " [" + this.overlay.toString() + "]";
++            }
++            return output;
++        }
++    };
++
++    YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
++
++})();
++YAHOO.register("containercore", YAHOO.widget.Module, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/container/container_core-min.js b/pylons_app/public/js/yui/container/container_core-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/container_core-min.js
+@@ -0,0 +1,14 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){YAHOO.util.Config=function(D){if(D){this.init(D);}};var B=YAHOO.lang,C=YAHOO.util.CustomEvent,A=YAHOO.util.Config;A.CONFIG_CHANGED_EVENT="configChanged";A.BOOLEAN_TYPE="boolean";A.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(D){this.owner=D;this.configChangedEvent=this.createEvent(A.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=C.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[];},checkBoolean:function(D){return(typeof D==A.BOOLEAN_TYPE);},checkNumber:function(D){return(!isNaN(D));},fireEvent:function(D,F){var E=this.config[D];if(E&&E.event){E.event.fire(F);}},addProperty:function(E,D){E=E.toLowerCase();this.config[E]=D;D.event=this.createEvent(E,{scope:this.owner});D.event.signature=C.LIST;D.key=E;if(D.handler){D.event.subscribe(D.handler,this.owner);}this.setProperty(E,D.value,true);if(!D.suppressEvent){this.queueProperty(E,D.value);}},getConfig:function(){var D={},F=this.config,G,E;for(G in F){if(B.hasOwnProperty(F,G)){E=F[G];if(E&&E.event){D[G]=E.value;}}}return D;},getProperty:function(D){var E=this.config[D.toLowerCase()];if(E&&E.event){return E.value;}else{return undefined;}},resetProperty:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event){if(this.initialConfig[D]&&!B.isUndefined(this.initialConfig[D])){this.setProperty(D,this.initialConfig[D]);return true;}}else{return false;}},setProperty:function(E,G,D){var F;E=E.toLowerCase();if(this.queueInProgress&&!D){this.queueProperty(E,G);return true;}else{F=this.config[E];if(F&&F.event){if(F.validator&&!F.validator(G)){return false;}else{F.value=G;if(!D){this.fireEvent(E,G);this.configChangedEvent.fire([E,G]);}return true;}}else{return false;}}},queueProperty:function(S,P){S=S.toLowerCase();var R=this.config[S],K=false,J,G,H,I,O,Q,F,M,N,D,L,T,E;if(R&&R.event){if(!B.isUndefined(P)&&R.validator&&!R.validator(P)){return false;}else{if(!B.isUndefined(P)){R.value=P;}else{P=R.value;}K=false;J=this.eventQueue.length;for(L=0;L<J;L++){G=this.eventQueue[L];if(G){H=G[0];I=G[1];if(H==S){this.eventQueue[L]=null;this.eventQueue.push([S,(!B.isUndefined(P)?P:I)]);K=true;break;}}}if(!K&&!B.isUndefined(P)){this.eventQueue.push([S,P]);}}if(R.supercedes){O=R.supercedes.length;for(T=0;T<O;T++){Q=R.supercedes[T];F=this.eventQueue.length;for(E=0;E<F;E++){M=this.eventQueue[E];if(M){N=M[0];D=M[1];if(N==Q.toLowerCase()){this.eventQueue.push([N,D]);this.eventQueue[E]=null;break;}}}}}return true;}else{return false;}},refireEvent:function(D){D=D.toLowerCase();var E=this.config[D];if(E&&E.event&&!B.isUndefined(E.value)){if(this.queueInProgress){this.queueProperty(D);}else{this.fireEvent(D,E.value);}}},applyConfig:function(D,G){var F,E;if(G){E={};for(F in D){if(B.hasOwnProperty(D,F)){E[F.toLowerCase()]=D[F];}}this.initialConfig=E;}for(F in D){if(B.hasOwnProperty(D,F)){this.queueProperty(F,D[F]);}}},refresh:function(){var D;for(D in this.config){if(B.hasOwnProperty(this.config,D)){this.refireEvent(D);}}},fireQueue:function(){var E,H,D,G,F;this.queueInProgress=true;for(E=0;E<this.eventQueue.length;E++){H=this.eventQueue[E];if(H){D=H[0];G=H[1];F=this.config[D];F.value=G;this.eventQueue[E]=null;this.fireEvent(D,G);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(D,E,G,H){var F=this.config[D.toLowerCase()];if(F&&F.event){if(!A.alreadySubscribed(F.event,E,G)){F.event.subscribe(E,G,H);}return true;}else{return false;}},unsubscribeFromConfigEvent:function(D,E,G){var F=this.config[D.toLowerCase()];if(F&&F.event){return F.event.unsubscribe(E,G);}else{return false;}},toString:function(){var D="Config";if(this.owner){D+=" ["+this.owner.toString()+"]";}return D;},outputEventQueue:function(){var D="",G,E,F=this.eventQueue.length;for(E=0;E<F;E++){G=this.eventQueue[E];if(G){D+=G[0]+"="+G[1]+", ";}}return D;},destroy:function(){var E=this.config,D,F;for(D in E){if(B.hasOwnProperty(E,D)){F=E[D];F.event.unsubscribeAll();F.event=null;}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null;}};A.alreadySubscribed=function(E,H,I){var F=E.subscribers.length,D,G;if(F>0){G=F-1;do{D=E.subscribers[G];if(D&&D.obj==I&&D.fn==H){return true;}}while(G--);}return false;};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Module=function(R,Q){if(R){this.init(R,Q);}else{}};var F=YAHOO.util.Dom,D=YAHOO.util.Config,N=YAHOO.util.Event,M=YAHOO.util.CustomEvent,G=YAHOO.widget.Module,I=YAHOO.env.ua,H,P,O,E,A={"BEFORE_INIT":"beforeInit","INIT":"init","APPEND":"append","BEFORE_RENDER":"beforeRender","RENDER":"render","CHANGE_HEADER":"changeHeader","CHANGE_BODY":"changeBody","CHANGE_FOOTER":"changeFooter","CHANGE_CONTENT":"changeContent","DESTROY":"destroy","BEFORE_SHOW":"beforeShow","SHOW":"show","BEFORE_HIDE":"beforeHide","HIDE":"hide"},J={"VISIBLE":{key:"visible",value:true,validator:YAHOO.lang.isBoolean},"EFFECT":{key:"effect",suppressEvent:true,supercedes:["visible"]},"MONITOR_RESIZE":{key:"monitorresize",value:true},"APPEND_TO_DOCUMENT_BODY":{key:"appendtodocumentbody",value:false}};G.IMG_ROOT=null;G.IMG_ROOT_SSL=null;G.CSS_MODULE="yui-module";G.CSS_HEADER="hd";G.CSS_BODY="bd";G.CSS_FOOTER="ft";G.RESIZE_MONITOR_SECURE_URL="javascript:false;";G.RESIZE_MONITOR_BUFFER=1;G.textResizeEvent=new M("textResize");G.forceDocumentRedraw=function(){var Q=document.documentElement;if(Q){Q.className+=" ";Q.className=YAHOO.lang.trim(Q.className);}};function L(){if(!H){H=document.createElement("div");H.innerHTML=('<div class="'+G.CSS_HEADER+'"></div>'+'<div class="'+G.CSS_BODY+'"></div><div class="'+G.CSS_FOOTER+'"></div>');P=H.firstChild;O=P.nextSibling;E=O.nextSibling;}return H;}function K(){if(!P){L();}return(P.cloneNode(false));}function B(){if(!O){L();}return(O.cloneNode(false));}function C(){if(!E){L();}return(E.cloneNode(false));}G.prototype={constructor:G,element:null,header:null,body:null,footer:null,id:null,imageRoot:G.IMG_ROOT,initEvents:function(){var Q=M.LIST;
++this.beforeInitEvent=this.createEvent(A.BEFORE_INIT);this.beforeInitEvent.signature=Q;this.initEvent=this.createEvent(A.INIT);this.initEvent.signature=Q;this.appendEvent=this.createEvent(A.APPEND);this.appendEvent.signature=Q;this.beforeRenderEvent=this.createEvent(A.BEFORE_RENDER);this.beforeRenderEvent.signature=Q;this.renderEvent=this.createEvent(A.RENDER);this.renderEvent.signature=Q;this.changeHeaderEvent=this.createEvent(A.CHANGE_HEADER);this.changeHeaderEvent.signature=Q;this.changeBodyEvent=this.createEvent(A.CHANGE_BODY);this.changeBodyEvent.signature=Q;this.changeFooterEvent=this.createEvent(A.CHANGE_FOOTER);this.changeFooterEvent.signature=Q;this.changeContentEvent=this.createEvent(A.CHANGE_CONTENT);this.changeContentEvent.signature=Q;this.destroyEvent=this.createEvent(A.DESTROY);this.destroyEvent.signature=Q;this.beforeShowEvent=this.createEvent(A.BEFORE_SHOW);this.beforeShowEvent.signature=Q;this.showEvent=this.createEvent(A.SHOW);this.showEvent.signature=Q;this.beforeHideEvent=this.createEvent(A.BEFORE_HIDE);this.beforeHideEvent.signature=Q;this.hideEvent=this.createEvent(A.HIDE);this.hideEvent.signature=Q;},platform:function(){var Q=navigator.userAgent.toLowerCase();if(Q.indexOf("windows")!=-1||Q.indexOf("win32")!=-1){return"windows";}else{if(Q.indexOf("macintosh")!=-1){return"mac";}else{return false;}}}(),browser:function(){var Q=navigator.userAgent.toLowerCase();if(Q.indexOf("opera")!=-1){return"opera";}else{if(Q.indexOf("msie 7")!=-1){return"ie7";}else{if(Q.indexOf("msie")!=-1){return"ie";}else{if(Q.indexOf("safari")!=-1){return"safari";}else{if(Q.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true;}else{return false;}}(),initDefaultConfig:function(){this.cfg.addProperty(J.VISIBLE.key,{handler:this.configVisible,value:J.VISIBLE.value,validator:J.VISIBLE.validator});this.cfg.addProperty(J.EFFECT.key,{suppressEvent:J.EFFECT.suppressEvent,supercedes:J.EFFECT.supercedes});this.cfg.addProperty(J.MONITOR_RESIZE.key,{handler:this.configMonitorResize,value:J.MONITOR_RESIZE.value});this.cfg.addProperty(J.APPEND_TO_DOCUMENT_BODY.key,{value:J.APPEND_TO_DOCUMENT_BODY.value});},init:function(V,U){var S,W;this.initEvents();this.beforeInitEvent.fire(G);this.cfg=new D(this);if(this.isSecure){this.imageRoot=G.IMG_ROOT_SSL;}if(typeof V=="string"){S=V;V=document.getElementById(V);if(!V){V=(L()).cloneNode(false);V.id=S;}}this.id=F.generateId(V);this.element=V;W=this.element.firstChild;if(W){var R=false,Q=false,T=false;do{if(1==W.nodeType){if(!R&&F.hasClass(W,G.CSS_HEADER)){this.header=W;R=true;}else{if(!Q&&F.hasClass(W,G.CSS_BODY)){this.body=W;Q=true;}else{if(!T&&F.hasClass(W,G.CSS_FOOTER)){this.footer=W;T=true;}}}}}while((W=W.nextSibling));}this.initDefaultConfig();F.addClass(this.element,G.CSS_MODULE);if(U){this.cfg.applyConfig(U,true);}if(!D.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true);}this.initEvent.fire(G);},initResizeMonitor:function(){var R=(I.gecko&&this.platform=="windows");if(R){var Q=this;setTimeout(function(){Q._initResizeMonitor();},0);}else{this._initResizeMonitor();}},_initResizeMonitor:function(){var Q,S,U;function W(){G.textResizeEvent.fire();}if(!I.opera){S=F.get("_yuiResizeMonitor");var V=this._supportsCWResize();if(!S){S=document.createElement("iframe");if(this.isSecure&&G.RESIZE_MONITOR_SECURE_URL&&I.ie){S.src=G.RESIZE_MONITOR_SECURE_URL;}if(!V){U=["<html><head><script ",'type="text/javascript">',"window.onresize=function(){window.parent.","YAHOO.widget.Module.textResizeEvent.","fire();};<","/script></head>","<body></body></html>"].join("");S.src="data:text/html;charset=utf-8,"+encodeURIComponent(U);}S.id="_yuiResizeMonitor";S.title="Text Resize Monitor";S.style.position="absolute";S.style.visibility="hidden";var R=document.body,T=R.firstChild;if(T){R.insertBefore(S,T);}else{R.appendChild(S);}S.style.backgroundColor="transparent";S.style.borderWidth="0";S.style.width="2em";S.style.height="2em";S.style.left="0";S.style.top=(-1*(S.offsetHeight+G.RESIZE_MONITOR_BUFFER))+"px";S.style.visibility="visible";if(I.webkit){Q=S.contentWindow.document;Q.open();Q.close();}}if(S&&S.contentWindow){G.textResizeEvent.subscribe(this.onDomResize,this,true);if(!G.textResizeInitialized){if(V){if(!N.on(S.contentWindow,"resize",W)){N.on(S,"resize",W);}}G.textResizeInitialized=true;}this.resizeMonitor=S;}}},_supportsCWResize:function(){var Q=true;if(I.gecko&&I.gecko<=1.8){Q=false;}return Q;},onDomResize:function(S,R){var Q=-1*(this.resizeMonitor.offsetHeight+G.RESIZE_MONITOR_BUFFER);this.resizeMonitor.style.top=Q+"px";this.resizeMonitor.style.left="0";},setHeader:function(R){var Q=this.header||(this.header=K());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}if(this._rendered){this._renderHeader();}this.changeHeaderEvent.fire(R);this.changeContentEvent.fire();},appendToHeader:function(R){var Q=this.header||(this.header=K());Q.appendChild(R);this.changeHeaderEvent.fire(R);this.changeContentEvent.fire();},setBody:function(R){var Q=this.body||(this.body=B());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}if(this._rendered){this._renderBody();}this.changeBodyEvent.fire(R);this.changeContentEvent.fire();},appendToBody:function(R){var Q=this.body||(this.body=B());Q.appendChild(R);this.changeBodyEvent.fire(R);this.changeContentEvent.fire();},setFooter:function(R){var Q=this.footer||(this.footer=C());if(R.nodeName){Q.innerHTML="";Q.appendChild(R);}else{Q.innerHTML=R;}if(this._rendered){this._renderFooter();}this.changeFooterEvent.fire(R);this.changeContentEvent.fire();},appendToFooter:function(R){var Q=this.footer||(this.footer=C());Q.appendChild(R);this.changeFooterEvent.fire(R);this.changeContentEvent.fire();},render:function(S,Q){var T=this;function R(U){if(typeof U=="string"){U=document.getElementById(U);}if(U){T._addToParent(U,T.element);T.appendEvent.fire();}}this.beforeRenderEvent.fire();
++if(!Q){Q=this.element;}if(S){R(S);}else{if(!F.inDocument(this.element)){return false;}}this._renderHeader(Q);this._renderBody(Q);this._renderFooter(Q);this._rendered=true;this.renderEvent.fire();return true;},_renderHeader:function(Q){Q=Q||this.element;if(this.header&&!F.inDocument(this.header)){var R=Q.firstChild;if(R){Q.insertBefore(this.header,R);}else{Q.appendChild(this.header);}}},_renderBody:function(Q){Q=Q||this.element;if(this.body&&!F.inDocument(this.body)){if(this.footer&&F.isAncestor(Q,this.footer)){Q.insertBefore(this.body,this.footer);}else{Q.appendChild(this.body);}}},_renderFooter:function(Q){Q=Q||this.element;if(this.footer&&!F.inDocument(this.footer)){Q.appendChild(this.footer);}},destroy:function(){var Q;if(this.element){N.purgeElement(this.element,true);Q=this.element.parentNode;}if(Q){Q.removeChild(this.element);}this.element=null;this.header=null;this.body=null;this.footer=null;G.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();},show:function(){this.cfg.setProperty("visible",true);},hide:function(){this.cfg.setProperty("visible",false);},configVisible:function(R,Q,S){var T=Q[0];if(T){this.beforeShowEvent.fire();F.setStyle(this.element,"display","block");this.showEvent.fire();}else{this.beforeHideEvent.fire();F.setStyle(this.element,"display","none");this.hideEvent.fire();}},configMonitorResize:function(S,R,T){var Q=R[0];if(Q){this.initResizeMonitor();}else{G.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null;}},_addToParent:function(Q,R){if(!this.cfg.getProperty("appendtodocumentbody")&&Q===document.body&&Q.firstChild){Q.insertBefore(R,Q.firstChild);}else{Q.appendChild(R);}},toString:function(){return"Module "+this.id;}};YAHOO.lang.augmentProto(G,YAHOO.util.EventProvider);}());(function(){YAHOO.widget.Overlay=function(P,O){YAHOO.widget.Overlay.superclass.constructor.call(this,P,O);};var I=YAHOO.lang,M=YAHOO.util.CustomEvent,G=YAHOO.widget.Module,N=YAHOO.util.Event,F=YAHOO.util.Dom,D=YAHOO.util.Config,K=YAHOO.env.ua,B=YAHOO.widget.Overlay,H="subscribe",E="unsubscribe",C="contained",J,A={"BEFORE_MOVE":"beforeMove","MOVE":"move"},L={"X":{key:"x",validator:I.isNumber,suppressEvent:true,supercedes:["iframe"]},"Y":{key:"y",validator:I.isNumber,suppressEvent:true,supercedes:["iframe"]},"XY":{key:"xy",suppressEvent:true,supercedes:["iframe"]},"CONTEXT":{key:"context",suppressEvent:true,supercedes:["iframe"]},"FIXED_CENTER":{key:"fixedcenter",value:false,supercedes:["iframe","visible"]},"WIDTH":{key:"width",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"HEIGHT":{key:"height",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"AUTO_FILL_HEIGHT":{key:"autofillheight",supercedes:["height"],value:"body"},"ZINDEX":{key:"zindex",value:null},"CONSTRAIN_TO_VIEWPORT":{key:"constraintoviewport",value:false,validator:I.isBoolean,supercedes:["iframe","x","y","xy"]},"IFRAME":{key:"iframe",value:(K.ie==6?true:false),validator:I.isBoolean,supercedes:["zindex"]},"PREVENT_CONTEXT_OVERLAP":{key:"preventcontextoverlap",value:false,validator:I.isBoolean,supercedes:["constraintoviewport"]}};B.IFRAME_SRC="javascript:false;";B.IFRAME_OFFSET=3;B.VIEWPORT_OFFSET=10;B.TOP_LEFT="tl";B.TOP_RIGHT="tr";B.BOTTOM_LEFT="bl";B.BOTTOM_RIGHT="br";B.PREVENT_OVERLAP_X={"tltr":true,"blbr":true,"brbl":true,"trtl":true};B.PREVENT_OVERLAP_Y={"trbr":true,"tlbl":true,"bltl":true,"brtr":true};B.CSS_OVERLAY="yui-overlay";B.CSS_HIDDEN="yui-overlay-hidden";B.CSS_IFRAME="yui-overlay-iframe";B.STD_MOD_RE=/^\s*?(body|footer|header)\s*?$/i;B.windowScrollEvent=new M("windowScroll");B.windowResizeEvent=new M("windowResize");B.windowScrollHandler=function(P){var O=N.getTarget(P);if(!O||O===window||O===window.document){if(K.ie){if(!window.scrollEnd){window.scrollEnd=-1;}clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){B.windowScrollEvent.fire();},1);}else{B.windowScrollEvent.fire();}}};B.windowResizeHandler=function(O){if(K.ie){if(!window.resizeEnd){window.resizeEnd=-1;}clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){B.windowResizeEvent.fire();},100);}else{B.windowResizeEvent.fire();}};B._initialized=null;if(B._initialized===null){N.on(window,"scroll",B.windowScrollHandler);N.on(window,"resize",B.windowResizeHandler);B._initialized=true;}B._TRIGGER_MAP={"windowScroll":B.windowScrollEvent,"windowResize":B.windowResizeEvent,"textResize":G.textResizeEvent};YAHOO.extend(B,G,{CONTEXT_TRIGGERS:[],init:function(P,O){B.superclass.init.call(this,P);this.beforeInitEvent.fire(B);F.addClass(this.element,B.CSS_OVERLAY);if(O){this.cfg.applyConfig(O,true);}if(this.platform=="mac"&&K.gecko){if(!D.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true);}if(!D.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true);}}this.initEvent.fire(B);},initEvents:function(){B.superclass.initEvents.call(this);var O=M.LIST;this.beforeMoveEvent=this.createEvent(A.BEFORE_MOVE);this.beforeMoveEvent.signature=O;this.moveEvent=this.createEvent(A.MOVE);this.moveEvent.signature=O;},initDefaultConfig:function(){B.superclass.initDefaultConfig.call(this);var O=this.cfg;O.addProperty(L.X.key,{handler:this.configX,validator:L.X.validator,suppressEvent:L.X.suppressEvent,supercedes:L.X.supercedes});O.addProperty(L.Y.key,{handler:this.configY,validator:L.Y.validator,suppressEvent:L.Y.suppressEvent,supercedes:L.Y.supercedes});O.addProperty(L.XY.key,{handler:this.configXY,suppressEvent:L.XY.suppressEvent,supercedes:L.XY.supercedes});O.addProperty(L.CONTEXT.key,{handler:this.configContext,suppressEvent:L.CONTEXT.suppressEvent,supercedes:L.CONTEXT.supercedes});O.addProperty(L.FIXED_CENTER.key,{handler:this.configFixedCenter,value:L.FIXED_CENTER.value,validator:L.FIXED_CENTER.validator,supercedes:L.FIXED_CENTER.supercedes});O.addProperty(L.WIDTH.key,{handler:this.configWidth,suppressEvent:L.WIDTH.suppressEvent,supercedes:L.WIDTH.supercedes});
++O.addProperty(L.HEIGHT.key,{handler:this.configHeight,suppressEvent:L.HEIGHT.suppressEvent,supercedes:L.HEIGHT.supercedes});O.addProperty(L.AUTO_FILL_HEIGHT.key,{handler:this.configAutoFillHeight,value:L.AUTO_FILL_HEIGHT.value,validator:this._validateAutoFill,supercedes:L.AUTO_FILL_HEIGHT.supercedes});O.addProperty(L.ZINDEX.key,{handler:this.configzIndex,value:L.ZINDEX.value});O.addProperty(L.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:L.CONSTRAIN_TO_VIEWPORT.value,validator:L.CONSTRAIN_TO_VIEWPORT.validator,supercedes:L.CONSTRAIN_TO_VIEWPORT.supercedes});O.addProperty(L.IFRAME.key,{handler:this.configIframe,value:L.IFRAME.value,validator:L.IFRAME.validator,supercedes:L.IFRAME.supercedes});O.addProperty(L.PREVENT_CONTEXT_OVERLAP.key,{value:L.PREVENT_CONTEXT_OVERLAP.value,validator:L.PREVENT_CONTEXT_OVERLAP.validator,supercedes:L.PREVENT_CONTEXT_OVERLAP.supercedes});},moveTo:function(O,P){this.cfg.setProperty("xy",[O,P]);},hideMacGeckoScrollbars:function(){F.replaceClass(this.element,"show-scrollbars","hide-scrollbars");},showMacGeckoScrollbars:function(){F.replaceClass(this.element,"hide-scrollbars","show-scrollbars");},_setDomVisibility:function(O){F.setStyle(this.element,"visibility",(O)?"visible":"hidden");var P=B.CSS_HIDDEN;if(O){F.removeClass(this.element,P);}else{F.addClass(this.element,P);}},configVisible:function(R,O,X){var Q=O[0],S=F.getStyle(this.element,"visibility"),Y=this.cfg.getProperty("effect"),V=[],U=(this.platform=="mac"&&K.gecko),g=D.alreadySubscribed,W,P,f,c,b,a,d,Z,T;if(S=="inherit"){f=this.element.parentNode;while(f.nodeType!=9&&f.nodeType!=11){S=F.getStyle(f,"visibility");if(S!="inherit"){break;}f=f.parentNode;}if(S=="inherit"){S="visible";}}if(Y){if(Y instanceof Array){Z=Y.length;for(c=0;c<Z;c++){W=Y[c];V[V.length]=W.effect(this,W.duration);}}else{V[V.length]=Y.effect(this,Y.duration);}}if(Q){if(U){this.showMacGeckoScrollbars();}if(Y){if(Q){if(S!="visible"||S===""){this.beforeShowEvent.fire();T=V.length;for(b=0;b<T;b++){P=V[b];if(b===0&&!g(P.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){P.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true);}P.animateIn();}}}}else{if(S!="visible"||S===""){this.beforeShowEvent.fire();this._setDomVisibility(true);this.cfg.refireEvent("iframe");this.showEvent.fire();}else{this._setDomVisibility(true);}}}else{if(U){this.hideMacGeckoScrollbars();}if(Y){if(S=="visible"){this.beforeHideEvent.fire();T=V.length;for(a=0;a<T;a++){d=V[a];if(a===0&&!g(d.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){d.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true);}d.animateOut();}}else{if(S===""){this._setDomVisibility(false);}}}else{if(S=="visible"||S===""){this.beforeHideEvent.fire();this._setDomVisibility(false);this.hideEvent.fire();}else{this._setDomVisibility(false);}}}},doCenterOnDOMEvent:function(){var O=this.cfg,P=O.getProperty("fixedcenter");if(O.getProperty("visible")){if(P&&(P!==C||this.fitsInViewport())){this.center();}}},fitsInViewport:function(){var S=B.VIEWPORT_OFFSET,Q=this.element,T=Q.offsetWidth,R=Q.offsetHeight,O=F.getViewportWidth(),P=F.getViewportHeight();return((T+S<O)&&(R+S<P));},configFixedCenter:function(S,Q,T){var U=Q[0],P=D.alreadySubscribed,R=B.windowResizeEvent,O=B.windowScrollEvent;if(U){this.center();if(!P(this.beforeShowEvent,this.center)){this.beforeShowEvent.subscribe(this.center);}if(!P(R,this.doCenterOnDOMEvent,this)){R.subscribe(this.doCenterOnDOMEvent,this,true);}if(!P(O,this.doCenterOnDOMEvent,this)){O.subscribe(this.doCenterOnDOMEvent,this,true);}}else{this.beforeShowEvent.unsubscribe(this.center);R.unsubscribe(this.doCenterOnDOMEvent,this);O.unsubscribe(this.doCenterOnDOMEvent,this);}},configHeight:function(R,P,S){var O=P[0],Q=this.element;F.setStyle(Q,"height",O);this.cfg.refireEvent("iframe");},configAutoFillHeight:function(T,S,P){var V=S[0],Q=this.cfg,U="autofillheight",W="height",R=Q.getProperty(U),O=this._autoFillOnHeightChange;Q.unsubscribeFromConfigEvent(W,O);G.textResizeEvent.unsubscribe(O);this.changeContentEvent.unsubscribe(O);if(R&&V!==R&&this[R]){F.setStyle(this[R],W,"");}if(V){V=I.trim(V.toLowerCase());Q.subscribeToConfigEvent(W,O,this[V],this);G.textResizeEvent.subscribe(O,this[V],this);this.changeContentEvent.subscribe(O,this[V],this);Q.setProperty(U,V,true);}},configWidth:function(R,O,S){var Q=O[0],P=this.element;F.setStyle(P,"width",Q);this.cfg.refireEvent("iframe");},configzIndex:function(Q,O,R){var S=O[0],P=this.element;if(!S){S=F.getStyle(P,"zIndex");if(!S||isNaN(S)){S=0;}}if(this.iframe||this.cfg.getProperty("iframe")===true){if(S<=0){S=1;}}F.setStyle(P,"zIndex",S);this.cfg.setProperty("zIndex",S,true);if(this.iframe){this.stackIframe();}},configXY:function(Q,P,R){var T=P[0],O=T[0],S=T[1];this.cfg.setProperty("x",O);this.cfg.setProperty("y",S);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},configX:function(Q,P,R){var O=P[0],S=this.cfg.getProperty("y");this.cfg.setProperty("x",O,true);this.cfg.setProperty("y",S,true);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");F.setX(this.element,O,true);this.cfg.setProperty("xy",[O,S],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},configY:function(Q,P,R){var O=this.cfg.getProperty("x"),S=P[0];this.cfg.setProperty("x",O,true);this.cfg.setProperty("y",S,true);this.beforeMoveEvent.fire([O,S]);O=this.cfg.getProperty("x");S=this.cfg.getProperty("y");F.setY(this.element,S,true);this.cfg.setProperty("xy",[O,S],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([O,S]);},showIframe:function(){var P=this.iframe,O;if(P){O=this.element.parentNode;if(O!=P.parentNode){this._addToParent(O,P);}P.style.display="block";}},hideIframe:function(){if(this.iframe){this.iframe.style.display="none";}},syncIframe:function(){var O=this.iframe,Q=this.element,S=B.IFRAME_OFFSET,P=(S*2),R;if(O){O.style.width=(Q.offsetWidth+P+"px");
++O.style.height=(Q.offsetHeight+P+"px");R=this.cfg.getProperty("xy");if(!I.isArray(R)||(isNaN(R[0])||isNaN(R[1]))){this.syncPosition();R=this.cfg.getProperty("xy");}F.setXY(O,[(R[0]-S),(R[1]-S)]);}},stackIframe:function(){if(this.iframe){var O=F.getStyle(this.element,"zIndex");if(!YAHOO.lang.isUndefined(O)&&!isNaN(O)){F.setStyle(this.iframe,"zIndex",(O-1));}}},configIframe:function(R,Q,S){var O=Q[0];function T(){var V=this.iframe,W=this.element,X;if(!V){if(!J){J=document.createElement("iframe");if(this.isSecure){J.src=B.IFRAME_SRC;}if(K.ie){J.style.filter="alpha(opacity=0)";J.frameBorder=0;}else{J.style.opacity="0";}J.style.position="absolute";J.style.border="none";J.style.margin="0";J.style.padding="0";J.style.display="none";J.tabIndex=-1;J.className=B.CSS_IFRAME;}V=J.cloneNode(false);V.id=this.id+"_f";X=W.parentNode;var U=X||document.body;this._addToParent(U,V);this.iframe=V;}this.showIframe();this.syncIframe();this.stackIframe();if(!this._hasIframeEventListeners){this.showEvent.subscribe(this.showIframe);this.hideEvent.subscribe(this.hideIframe);this.changeContentEvent.subscribe(this.syncIframe);this._hasIframeEventListeners=true;}}function P(){T.call(this);this.beforeShowEvent.unsubscribe(P);this._iframeDeferred=false;}if(O){if(this.cfg.getProperty("visible")){T.call(this);}else{if(!this._iframeDeferred){this.beforeShowEvent.subscribe(P);this._iframeDeferred=true;}}}else{this.hideIframe();if(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);this.changeContentEvent.unsubscribe(this.syncIframe);this._hasIframeEventListeners=false;}}},_primeXYFromDOM:function(){if(YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))){this.syncPosition();this.cfg.refireEvent("xy");this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);}},configConstrainToViewport:function(P,O,Q){var R=O[0];if(R){if(!D.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true);}if(!D.alreadySubscribed(this.beforeShowEvent,this._primeXYFromDOM)){this.beforeShowEvent.subscribe(this._primeXYFromDOM);}}else{this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this);}},configContext:function(U,T,Q){var X=T[0],R,O,V,S,P,W=this.CONTEXT_TRIGGERS;if(X){R=X[0];O=X[1];V=X[2];S=X[3];P=X[4];if(W&&W.length>0){S=(S||[]).concat(W);}if(R){if(typeof R=="string"){this.cfg.setProperty("context",[document.getElementById(R),O,V,S,P],true);}if(O&&V){this.align(O,V,P);}if(this._contextTriggers){this._processTriggers(this._contextTriggers,E,this._alignOnTrigger);}if(S){this._processTriggers(S,H,this._alignOnTrigger);this._contextTriggers=S;}}}},_alignOnTrigger:function(P,O){this.align();},_findTriggerCE:function(O){var P=null;if(O instanceof M){P=O;}else{if(B._TRIGGER_MAP[O]){P=B._TRIGGER_MAP[O];}}return P;},_processTriggers:function(S,U,R){var Q,T;for(var P=0,O=S.length;P<O;++P){Q=S[P];T=this._findTriggerCE(Q);if(T){T[U](R,this,true);}else{this[U](Q,R);}}},align:function(P,W,S){var V=this.cfg.getProperty("context"),T=this,O,Q,U;function R(Z,a){var Y=null,X=null;switch(P){case B.TOP_LEFT:Y=a;X=Z;break;case B.TOP_RIGHT:Y=a-Q.offsetWidth;X=Z;break;case B.BOTTOM_LEFT:Y=a;X=Z-Q.offsetHeight;break;case B.BOTTOM_RIGHT:Y=a-Q.offsetWidth;X=Z-Q.offsetHeight;break;}if(Y!==null&&X!==null){if(S){Y+=S[0];X+=S[1];}T.moveTo(Y,X);}}if(V){O=V[0];Q=this.element;T=this;if(!P){P=V[1];}if(!W){W=V[2];}if(!S&&V[4]){S=V[4];}if(Q&&O){U=F.getRegion(O);switch(W){case B.TOP_LEFT:R(U.top,U.left);break;case B.TOP_RIGHT:R(U.top,U.right);break;case B.BOTTOM_LEFT:R(U.bottom,U.left);break;case B.BOTTOM_RIGHT:R(U.bottom,U.right);break;}}}},enforceConstraints:function(P,O,Q){var S=O[0];var R=this.getConstrainedXY(S[0],S[1]);this.cfg.setProperty("x",R[0],true);this.cfg.setProperty("y",R[1],true);this.cfg.setProperty("xy",R,true);},_getConstrainedPos:function(X,P){var T=this.element,R=B.VIEWPORT_OFFSET,Z=(X=="x"),Y=(Z)?T.offsetWidth:T.offsetHeight,S=(Z)?F.getViewportWidth():F.getViewportHeight(),c=(Z)?F.getDocumentScrollLeft():F.getDocumentScrollTop(),b=(Z)?B.PREVENT_OVERLAP_X:B.PREVENT_OVERLAP_Y,O=this.cfg.getProperty("context"),U=(Y+R<S),W=this.cfg.getProperty("preventcontextoverlap")&&O&&b[(O[1]+O[2])],V=c+R,a=c+S-Y-R,Q=P;if(P<V||P>a){if(W){Q=this._preventOverlap(X,O[0],Y,S,c);}else{if(U){if(P<V){Q=V;}else{if(P>a){Q=a;}}}else{Q=V;}}}return Q;},_preventOverlap:function(X,W,Y,U,b){var Z=(X=="x"),T=B.VIEWPORT_OFFSET,S=this,Q=((Z)?F.getX(W):F.getY(W))-b,O=(Z)?W.offsetWidth:W.offsetHeight,P=Q-T,R=(U-(Q+O))-T,c=false,V=function(){var d;if((S.cfg.getProperty(X)-b)>Q){d=(Q-Y);}else{d=(Q+O);}S.cfg.setProperty(X,(d+b),true);return d;},a=function(){var e=((S.cfg.getProperty(X)-b)>Q)?R:P,d;if(Y>e){if(c){V();}else{V();c=true;d=a();}}return d;};a();return this.cfg.getProperty(X);},getConstrainedX:function(O){return this._getConstrainedPos("x",O);},getConstrainedY:function(O){return this._getConstrainedPos("y",O);},getConstrainedXY:function(O,P){return[this.getConstrainedX(O),this.getConstrainedY(P)];},center:function(){var R=B.VIEWPORT_OFFSET,S=this.element.offsetWidth,Q=this.element.offsetHeight,P=F.getViewportWidth(),T=F.getViewportHeight(),O,U;if(S<P){O=(P/2)-(S/2)+F.getDocumentScrollLeft();}else{O=R+F.getDocumentScrollLeft();}if(Q<T){U=(T/2)-(Q/2)+F.getDocumentScrollTop();}else{U=R+F.getDocumentScrollTop();}this.cfg.setProperty("xy",[parseInt(O,10),parseInt(U,10)]);this.cfg.refireEvent("iframe");if(K.webkit){this.forceContainerRedraw();}},syncPosition:function(){var O=F.getXY(this.element);this.cfg.setProperty("x",O[0],true);this.cfg.setProperty("y",O[1],true);this.cfg.setProperty("xy",O,true);},onDomResize:function(Q,P){var O=this;B.superclass.onDomResize.call(this,Q,P);setTimeout(function(){O.syncPosition();O.cfg.refireEvent("iframe");O.cfg.refireEvent("context");},0);},_getComputedHeight:(function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(P){var O=null;
++if(P.ownerDocument&&P.ownerDocument.defaultView){var Q=P.ownerDocument.defaultView.getComputedStyle(P,"");if(Q){O=parseInt(Q.height,10);}}return(I.isNumber(O))?O:null;};}else{return function(P){var O=null;if(P.style.pixelHeight){O=P.style.pixelHeight;}return(I.isNumber(O))?O:null;};}})(),_validateAutoFillHeight:function(O){return(!O)||(I.isString(O)&&B.STD_MOD_RE.test(O));},_autoFillOnHeightChange:function(R,P,Q){var O=this.cfg.getProperty("height");if((O&&O!=="auto")||(O===0)){this.fillHeight(Q);}},_getPreciseHeight:function(P){var O=P.offsetHeight;if(P.getBoundingClientRect){var Q=P.getBoundingClientRect();O=Q.bottom-Q.top;}return O;},fillHeight:function(R){if(R){var P=this.innerElement||this.element,O=[this.header,this.body,this.footer],V,W=0,X=0,T=0,Q=false;for(var U=0,S=O.length;U<S;U++){V=O[U];if(V){if(R!==V){X+=this._getPreciseHeight(V);}else{Q=true;}}}if(Q){if(K.ie||K.opera){F.setStyle(R,"height",0+"px");}W=this._getComputedHeight(P);if(W===null){F.addClass(P,"yui-override-padding");W=P.clientHeight;F.removeClass(P,"yui-override-padding");}T=Math.max(W-X,0);F.setStyle(R,"height",T+"px");if(R.offsetHeight!=T){T=Math.max(T-(R.offsetHeight-T),0);}F.setStyle(R,"height",T+"px");}}},bringToTop:function(){var S=[],R=this.element;function V(Z,Y){var b=F.getStyle(Z,"zIndex"),a=F.getStyle(Y,"zIndex"),X=(!b||isNaN(b))?0:parseInt(b,10),W=(!a||isNaN(a))?0:parseInt(a,10);if(X>W){return -1;}else{if(X<W){return 1;}else{return 0;}}}function Q(Y){var X=F.hasClass(Y,B.CSS_OVERLAY),W=YAHOO.widget.Panel;if(X&&!F.isAncestor(R,Y)){if(W&&F.hasClass(Y,W.CSS_PANEL)){S[S.length]=Y.parentNode;}else{S[S.length]=Y;}}}F.getElementsBy(Q,"DIV",document.body);S.sort(V);var O=S[0],U;if(O){U=F.getStyle(O,"zIndex");if(!isNaN(U)){var T=false;if(O!=R){T=true;}else{if(S.length>1){var P=F.getStyle(S[1],"zIndex");if(!isNaN(P)&&(U==P)){T=true;}}}if(T){this.cfg.setProperty("zindex",(parseInt(U,10)+2));}}}},destroy:function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe);}this.iframe=null;B.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);B.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);G.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);if(this._contextTriggers){this._processTriggers(this._contextTriggers,E,this._alignOnTrigger);}B.superclass.destroy.call(this);},forceContainerRedraw:function(){var O=this;F.addClass(O.element,"yui-force-redraw");setTimeout(function(){F.removeClass(O.element,"yui-force-redraw");},0);},toString:function(){return"Overlay "+this.id;}});}());(function(){YAHOO.widget.OverlayManager=function(G){this.init(G);};var D=YAHOO.widget.Overlay,C=YAHOO.util.Event,E=YAHOO.util.Dom,B=YAHOO.util.Config,F=YAHOO.util.CustomEvent,A=YAHOO.widget.OverlayManager;A.CSS_FOCUSED="focused";A.prototype={constructor:A,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"});},init:function(I){this.cfg=new B(this);this.initDefaultConfig();if(I){this.cfg.applyConfig(I,true);}this.cfg.fireQueue();var H=null;this.getActive=function(){return H;};this.focus=function(J){var K=this.find(J);if(K){K.focus();}};this.remove=function(K){var M=this.find(K),J;if(M){if(H==M){H=null;}var L=(M.element===null&&M.cfg===null)?true:false;if(!L){J=E.getStyle(M.element,"zIndex");M.cfg.setProperty("zIndex",-1000,true);}this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.length-1));M.hideEvent.unsubscribe(M.blur);M.destroyEvent.unsubscribe(this._onOverlayDestroy,M);M.focusEvent.unsubscribe(this._onOverlayFocusHandler,M);M.blurEvent.unsubscribe(this._onOverlayBlurHandler,M);if(!L){C.removeListener(M.element,this.cfg.getProperty("focusevent"),this._onOverlayElementFocus);M.cfg.setProperty("zIndex",J,true);M.cfg.setProperty("manager",null);}if(M.focusEvent._managed){M.focusEvent=null;}if(M.blurEvent._managed){M.blurEvent=null;}if(M.focus._managed){M.focus=null;}if(M.blur._managed){M.blur=null;}}};this.blurAll=function(){var K=this.overlays.length,J;if(K>0){J=K-1;do{this.overlays[J].blur();}while(J--);}};this._manageBlur=function(J){var K=false;if(H==J){E.removeClass(H.element,A.CSS_FOCUSED);H=null;K=true;}return K;};this._manageFocus=function(J){var K=false;if(H!=J){if(H){H.blur();}H=J;this.bringToTop(H);E.addClass(H.element,A.CSS_FOCUSED);K=true;}return K;};var G=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[];}if(G){this.register(G);this.overlays.sort(this.compareZIndexDesc);}},_onOverlayElementFocus:function(I){var G=C.getTarget(I),H=this.close;if(H&&(G==H||E.isAncestor(H,G))){this.blur();}else{this.focus();}},_onOverlayDestroy:function(H,G,I){this.remove(I);},_onOverlayFocusHandler:function(H,G,I){this._manageFocus(I);},_onOverlayBlurHandler:function(H,G,I){this._manageBlur(I);},_bindFocus:function(G){var H=this;if(!G.focusEvent){G.focusEvent=G.createEvent("focus");G.focusEvent.signature=F.LIST;G.focusEvent._managed=true;}else{G.focusEvent.subscribe(H._onOverlayFocusHandler,G,H);}if(!G.focus){C.on(G.element,H.cfg.getProperty("focusevent"),H._onOverlayElementFocus,null,G);G.focus=function(){if(H._manageFocus(this)){if(this.cfg.getProperty("visible")&&this.focusFirst){this.focusFirst();}this.focusEvent.fire();}};G.focus._managed=true;}},_bindBlur:function(G){var H=this;if(!G.blurEvent){G.blurEvent=G.createEvent("blur");G.blurEvent.signature=F.LIST;G.focusEvent._managed=true;}else{G.blurEvent.subscribe(H._onOverlayBlurHandler,G,H);}if(!G.blur){G.blur=function(){if(H._manageBlur(this)){this.blurEvent.fire();}};G.blur._managed=true;}G.hideEvent.subscribe(G.blur);},_bindDestroy:function(G){var H=this;G.destroyEvent.subscribe(H._onOverlayDestroy,G,H);},_syncZIndex:function(G){var H=E.getStyle(G.element,"zIndex");if(!isNaN(H)){G.cfg.setProperty("zIndex",parseInt(H,10));}else{G.cfg.setProperty("zIndex",0);}},register:function(G){var J=false,H,I;if(G instanceof D){G.cfg.addProperty("manager",{value:this});this._bindFocus(G);this._bindBlur(G);this._bindDestroy(G);
++this._syncZIndex(G);this.overlays.push(G);this.bringToTop(G);J=true;}else{if(G instanceof Array){for(H=0,I=G.length;H<I;H++){J=this.register(G[H])||J;}}}return J;},bringToTop:function(M){var I=this.find(M),L,G,J;if(I){J=this.overlays;J.sort(this.compareZIndexDesc);G=J[0];if(G){L=E.getStyle(G.element,"zIndex");if(!isNaN(L)){var K=false;if(G!==I){K=true;}else{if(J.length>1){var H=E.getStyle(J[1].element,"zIndex");if(!isNaN(H)&&(L==H)){K=true;}}}if(K){I.cfg.setProperty("zindex",(parseInt(L,10)+2));}}J.sort(this.compareZIndexDesc);}}},find:function(G){var K=G instanceof D,I=this.overlays,M=I.length,J=null,L,H;if(K||typeof G=="string"){for(H=M-1;H>=0;H--){L=I[H];if((K&&(L===G))||(L.id==G)){J=L;break;}}}return J;},compareZIndexDesc:function(J,I){var H=(J.cfg)?J.cfg.getProperty("zIndex"):null,G=(I.cfg)?I.cfg.getProperty("zIndex"):null;if(H===null&&G===null){return 0;}else{if(H===null){return 1;}else{if(G===null){return -1;}else{if(H>G){return -1;}else{if(H<G){return 1;}else{return 0;}}}}}},showAll:function(){var H=this.overlays,I=H.length,G;for(G=I-1;G>=0;G--){H[G].show();}},hideAll:function(){var H=this.overlays,I=H.length,G;for(G=I-1;G>=0;G--){H[G].hide();}},toString:function(){return"OverlayManager";}};}());(function(){YAHOO.widget.ContainerEffect=function(E,H,G,D,F){if(!F){F=YAHOO.util.Anim;}this.overlay=E;this.attrIn=H;this.attrOut=G;this.targetElement=D||E.element;this.animClass=F;};var B=YAHOO.util.Dom,C=YAHOO.util.CustomEvent,A=YAHOO.widget.ContainerEffect;A.FADE=function(D,F){var G=YAHOO.util.Easing,I={attributes:{opacity:{from:0,to:1}},duration:F,method:G.easeIn},E={attributes:{opacity:{to:0}},duration:F,method:G.easeOut},H=new A(D,I,E,D.element);H.handleUnderlayStart=function(){var K=this.overlay.underlay;if(K&&YAHOO.env.ua.ie){var J=(K.filters&&K.filters.length>0);if(J){B.addClass(D.element,"yui-effect-fade");}}};H.handleUnderlayComplete=function(){var J=this.overlay.underlay;if(J&&YAHOO.env.ua.ie){B.removeClass(D.element,"yui-effect-fade");}};H.handleStartAnimateIn=function(K,J,L){B.addClass(L.overlay.element,"hide-select");if(!L.overlay.underlay){L.overlay.cfg.refireEvent("underlay");}L.handleUnderlayStart();L.overlay._setDomVisibility(true);B.setStyle(L.overlay.element,"opacity",0);};H.handleCompleteAnimateIn=function(K,J,L){B.removeClass(L.overlay.element,"hide-select");if(L.overlay.element.style.filter){L.overlay.element.style.filter=null;}L.handleUnderlayComplete();L.overlay.cfg.refireEvent("iframe");L.animateInCompleteEvent.fire();};H.handleStartAnimateOut=function(K,J,L){B.addClass(L.overlay.element,"hide-select");L.handleUnderlayStart();};H.handleCompleteAnimateOut=function(K,J,L){B.removeClass(L.overlay.element,"hide-select");if(L.overlay.element.style.filter){L.overlay.element.style.filter=null;}L.overlay._setDomVisibility(false);B.setStyle(L.overlay.element,"opacity",1);L.handleUnderlayComplete();L.overlay.cfg.refireEvent("iframe");L.animateOutCompleteEvent.fire();};H.init();return H;};A.SLIDE=function(F,D){var I=YAHOO.util.Easing,L=F.cfg.getProperty("x")||B.getX(F.element),K=F.cfg.getProperty("y")||B.getY(F.element),M=B.getClientWidth(),H=F.element.offsetWidth,J={attributes:{points:{to:[L,K]}},duration:D,method:I.easeIn},E={attributes:{points:{to:[(M+25),K]}},duration:D,method:I.easeOut},G=new A(F,J,E,F.element,YAHOO.util.Motion);G.handleStartAnimateIn=function(O,N,P){P.overlay.element.style.left=((-25)-H)+"px";P.overlay.element.style.top=K+"px";};G.handleTweenAnimateIn=function(Q,P,R){var S=B.getXY(R.overlay.element),O=S[0],N=S[1];if(B.getStyle(R.overlay.element,"visibility")=="hidden"&&O<L){R.overlay._setDomVisibility(true);}R.overlay.cfg.setProperty("xy",[O,N],true);R.overlay.cfg.refireEvent("iframe");};G.handleCompleteAnimateIn=function(O,N,P){P.overlay.cfg.setProperty("xy",[L,K],true);P.startX=L;P.startY=K;P.overlay.cfg.refireEvent("iframe");P.animateInCompleteEvent.fire();};G.handleStartAnimateOut=function(O,N,R){var P=B.getViewportWidth(),S=B.getXY(R.overlay.element),Q=S[1];R.animOut.attributes.points.to=[(P+25),Q];};G.handleTweenAnimateOut=function(P,O,Q){var S=B.getXY(Q.overlay.element),N=S[0],R=S[1];Q.overlay.cfg.setProperty("xy",[N,R],true);Q.overlay.cfg.refireEvent("iframe");};G.handleCompleteAnimateOut=function(O,N,P){P.overlay._setDomVisibility(false);P.overlay.cfg.setProperty("xy",[L,K]);P.animateOutCompleteEvent.fire();};G.init();return G;};A.prototype={init:function(){this.beforeAnimateInEvent=this.createEvent("beforeAnimateIn");this.beforeAnimateInEvent.signature=C.LIST;this.beforeAnimateOutEvent=this.createEvent("beforeAnimateOut");this.beforeAnimateOutEvent.signature=C.LIST;this.animateInCompleteEvent=this.createEvent("animateInComplete");this.animateInCompleteEvent.signature=C.LIST;this.animateOutCompleteEvent=this.createEvent("animateOutComplete");this.animateOutCompleteEvent.signature=C.LIST;this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this);},animateIn:function(){this.beforeAnimateInEvent.fire();this.animIn.animate();},animateOut:function(){this.beforeAnimateOutEvent.fire();this.animOut.animate();},handleStartAnimateIn:function(E,D,F){},handleTweenAnimateIn:function(E,D,F){},handleCompleteAnimateIn:function(E,D,F){},handleStartAnimateOut:function(E,D,F){},handleTweenAnimateOut:function(E,D,F){},handleCompleteAnimateOut:function(E,D,F){},toString:function(){var D="ContainerEffect";if(this.overlay){D+=" ["+this.overlay.toString()+"]";}return D;}};YAHOO.lang.augmentProto(A,YAHOO.util.EventProvider);
++})();YAHOO.register("containercore",YAHOO.widget.Module,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/container/container_core.js b/pylons_app/public/js/yui/container/container_core.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/container/container_core.js
+@@ -0,0 +1,5126 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++    /**
++    * Config is a utility used within an Object to allow the implementer to
++    * maintain a list of local configuration properties and listen for changes 
++    * to those properties dynamically using CustomEvent. The initial values are 
++    * also maintained so that the configuration can be reset at any given point 
++    * to its initial state.
++    * @namespace YAHOO.util
++    * @class Config
++    * @constructor
++    * @param {Object} owner The owner Object to which this Config Object belongs
++    */
++    YAHOO.util.Config = function (owner) {
++
++        if (owner) {
++            this.init(owner);
++        }
++
++
++    };
++
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Config = YAHOO.util.Config;
++
++
++    /**
++     * Constant representing the CustomEvent type for the config changed event.
++     * @property YAHOO.util.Config.CONFIG_CHANGED_EVENT
++     * @private
++     * @static
++     * @final
++     */
++    Config.CONFIG_CHANGED_EVENT = "configChanged";
++    
++    /**
++     * Constant representing the boolean type string
++     * @property YAHOO.util.Config.BOOLEAN_TYPE
++     * @private
++     * @static
++     * @final
++     */
++    Config.BOOLEAN_TYPE = "boolean";
++    
++    Config.prototype = {
++     
++        /**
++        * Object reference to the owner of this Config Object
++        * @property owner
++        * @type Object
++        */
++        owner: null,
++        
++        /**
++        * Boolean flag that specifies whether a queue is currently 
++        * being executed
++        * @property queueInProgress
++        * @type Boolean
++        */
++        queueInProgress: false,
++        
++        /**
++        * Maintains the local collection of configuration property objects and 
++        * their specified values
++        * @property config
++        * @private
++        * @type Object
++        */ 
++        config: null,
++        
++        /**
++        * Maintains the local collection of configuration property objects as 
++        * they were initially applied.
++        * This object is used when resetting a property.
++        * @property initialConfig
++        * @private
++        * @type Object
++        */ 
++        initialConfig: null,
++        
++        /**
++        * Maintains the local, normalized CustomEvent queue
++        * @property eventQueue
++        * @private
++        * @type Object
++        */ 
++        eventQueue: null,
++        
++        /**
++        * Custom Event, notifying subscribers when Config properties are set 
++        * (setProperty is called without the silent flag
++        * @event configChangedEvent
++        */
++        configChangedEvent: null,
++    
++        /**
++        * Initializes the configuration Object and all of its local members.
++        * @method init
++        * @param {Object} owner The owner Object to which this Config 
++        * Object belongs
++        */
++        init: function (owner) {
++    
++            this.owner = owner;
++    
++            this.configChangedEvent = 
++                this.createEvent(Config.CONFIG_CHANGED_EVENT);
++    
++            this.configChangedEvent.signature = CustomEvent.LIST;
++            this.queueInProgress = false;
++            this.config = {};
++            this.initialConfig = {};
++            this.eventQueue = [];
++        
++        },
++        
++        /**
++        * Validates that the value passed in is a Boolean.
++        * @method checkBoolean
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */ 
++        checkBoolean: function (val) {
++            return (typeof val == Config.BOOLEAN_TYPE);
++        },
++        
++        /**
++        * Validates that the value passed in is a number.
++        * @method checkNumber
++        * @param {Object} val The value to validate
++        * @return {Boolean} true, if the value is valid
++        */
++        checkNumber: function (val) {
++            return (!isNaN(val));
++        },
++        
++        /**
++        * Fires a configuration property event using the specified value. 
++        * @method fireEvent
++        * @private
++        * @param {String} key The configuration property's name
++        * @param {value} Object The value of the correct type for the property
++        */ 
++        fireEvent: function ( key, value ) {
++            var property = this.config[key];
++        
++            if (property && property.event) {
++                property.event.fire(value);
++            } 
++        },
++        
++        /**
++        * Adds a property to the Config Object's private config hash.
++        * @method addProperty
++        * @param {String} key The configuration property's name
++        * @param {Object} propertyObject The Object containing all of this 
++        * property's arguments
++        */
++        addProperty: function ( key, propertyObject ) {
++            key = key.toLowerCase();
++        
++            this.config[key] = propertyObject;
++        
++            propertyObject.event = this.createEvent(key, { scope: this.owner });
++            propertyObject.event.signature = CustomEvent.LIST;
++            
++            
++            propertyObject.key = key;
++        
++            if (propertyObject.handler) {
++                propertyObject.event.subscribe(propertyObject.handler, 
++                    this.owner);
++            }
++        
++            this.setProperty(key, propertyObject.value, true);
++            
++            if (! propertyObject.suppressEvent) {
++                this.queueProperty(key, propertyObject.value);
++            }
++            
++        },
++        
++        /**
++        * Returns a key-value configuration map of the values currently set in  
++        * the Config Object.
++        * @method getConfig
++        * @return {Object} The current config, represented in a key-value map
++        */
++        getConfig: function () {
++        
++            var cfg = {},
++                currCfg = this.config,
++                prop,
++                property;
++                
++            for (prop in currCfg) {
++                if (Lang.hasOwnProperty(currCfg, prop)) {
++                    property = currCfg[prop];
++                    if (property && property.event) {
++                        cfg[prop] = property.value;
++                    }
++                }
++            }
++
++            return cfg;
++        },
++        
++        /**
++        * Returns the value of specified property.
++        * @method getProperty
++        * @param {String} key The name of the property
++        * @return {Object}  The value of the specified property
++        */
++        getProperty: function (key) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.value;
++            } else {
++                return undefined;
++            }
++        },
++        
++        /**
++        * Resets the specified property's value to its initial value.
++        * @method resetProperty
++        * @param {String} key The name of the property
++        * @return {Boolean} True is the property was reset, false if not
++        */
++        resetProperty: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event) {
++    
++                if (this.initialConfig[key] && 
++                    !Lang.isUndefined(this.initialConfig[key])) {
++    
++                    this.setProperty(key, this.initialConfig[key]);
++
++                    return true;
++    
++                }
++    
++            } else {
++    
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Sets the value of a property. If the silent property is passed as 
++        * true, the property's event will not be fired.
++        * @method setProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @param {Boolean} silent Whether the value should be set silently, 
++        * without firing the property event.
++        * @return {Boolean} True, if the set was successful, false if it failed.
++        */
++        setProperty: function (key, value, silent) {
++        
++            var property;
++        
++            key = key.toLowerCase();
++        
++            if (this.queueInProgress && ! silent) {
++                // Currently running through a queue... 
++                this.queueProperty(key,value);
++                return true;
++    
++            } else {
++                property = this.config[key];
++                if (property && property.event) {
++                    if (property.validator && !property.validator(value)) {
++                        return false;
++                    } else {
++                        property.value = value;
++                        if (! silent) {
++                            this.fireEvent(key, value);
++                            this.configChangedEvent.fire([key, value]);
++                        }
++                        return true;
++                    }
++                } else {
++                    return false;
++                }
++            }
++        },
++        
++        /**
++        * Sets the value of a property and queues its event to execute. If the 
++        * event is already scheduled to execute, it is
++        * moved from its current position to the end of the queue.
++        * @method queueProperty
++        * @param {String} key The name of the property
++        * @param {String} value The value to set the property to
++        * @return {Boolean}  true, if the set was successful, false if 
++        * it failed.
++        */ 
++        queueProperty: function (key, value) {
++        
++            key = key.toLowerCase();
++        
++            var property = this.config[key],
++                foundDuplicate = false,
++                iLen,
++                queueItem,
++                queueItemKey,
++                queueItemValue,
++                sLen,
++                supercedesCheck,
++                qLen,
++                queueItemCheck,
++                queueItemCheckKey,
++                queueItemCheckValue,
++                i,
++                s,
++                q;
++                                
++            if (property && property.event) {
++    
++                if (!Lang.isUndefined(value) && property.validator && 
++                    !property.validator(value)) { // validator
++                    return false;
++                } else {
++        
++                    if (!Lang.isUndefined(value)) {
++                        property.value = value;
++                    } else {
++                        value = property.value;
++                    }
++        
++                    foundDuplicate = false;
++                    iLen = this.eventQueue.length;
++        
++                    for (i = 0; i < iLen; i++) {
++                        queueItem = this.eventQueue[i];
++        
++                        if (queueItem) {
++                            queueItemKey = queueItem[0];
++                            queueItemValue = queueItem[1];
++
++                            if (queueItemKey == key) {
++    
++                                /*
++                                    found a dupe... push to end of queue, null 
++                                    current item, and break
++                                */
++    
++                                this.eventQueue[i] = null;
++    
++                                this.eventQueue.push(
++                                    [key, (!Lang.isUndefined(value) ? 
++                                    value : queueItemValue)]);
++    
++                                foundDuplicate = true;
++                                break;
++                            }
++                        }
++                    }
++                    
++                    // this is a refire, or a new property in the queue
++    
++                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
++                        this.eventQueue.push([key, value]);
++                    }
++                }
++        
++                if (property.supercedes) {
++
++                    sLen = property.supercedes.length;
++
++                    for (s = 0; s < sLen; s++) {
++
++                        supercedesCheck = property.supercedes[s];
++                        qLen = this.eventQueue.length;
++
++                        for (q = 0; q < qLen; q++) {
++                            queueItemCheck = this.eventQueue[q];
++
++                            if (queueItemCheck) {
++                                queueItemCheckKey = queueItemCheck[0];
++                                queueItemCheckValue = queueItemCheck[1];
++
++                                if (queueItemCheckKey == 
++                                    supercedesCheck.toLowerCase() ) {
++
++                                    this.eventQueue.push([queueItemCheckKey, 
++                                        queueItemCheckValue]);
++
++                                    this.eventQueue[q] = null;
++                                    break;
++
++                                }
++                            }
++                        }
++                    }
++                }
++
++
++                return true;
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Fires the event for a property using the property's current value.
++        * @method refireEvent
++        * @param {String} key The name of the property
++        */
++        refireEvent: function (key) {
++    
++            key = key.toLowerCase();
++        
++            var property = this.config[key];
++    
++            if (property && property.event && 
++    
++                !Lang.isUndefined(property.value)) {
++    
++                if (this.queueInProgress) {
++    
++                    this.queueProperty(key);
++    
++                } else {
++    
++                    this.fireEvent(key, property.value);
++    
++                }
++    
++            }
++        },
++        
++        /**
++        * Applies a key-value Object literal to the configuration, replacing  
++        * any existing values, and queueing the property events.
++        * Although the values will be set, fireQueue() must be called for their 
++        * associated events to execute.
++        * @method applyConfig
++        * @param {Object} userConfig The configuration Object literal
++        * @param {Boolean} init  When set to true, the initialConfig will 
++        * be set to the userConfig passed in, so that calling a reset will 
++        * reset the properties to the passed values.
++        */
++        applyConfig: function (userConfig, init) {
++        
++            var sKey,
++                oConfig;
++
++            if (init) {
++                oConfig = {};
++                for (sKey in userConfig) {
++                    if (Lang.hasOwnProperty(userConfig, sKey)) {
++                        oConfig[sKey.toLowerCase()] = userConfig[sKey];
++                    }
++                }
++                this.initialConfig = oConfig;
++            }
++
++            for (sKey in userConfig) {
++                if (Lang.hasOwnProperty(userConfig, sKey)) {
++                    this.queueProperty(sKey, userConfig[sKey]);
++                }
++            }
++        },
++        
++        /**
++        * Refires the events for all configuration properties using their 
++        * current values.
++        * @method refresh
++        */
++        refresh: function () {
++
++            var prop;
++
++            for (prop in this.config) {
++                if (Lang.hasOwnProperty(this.config, prop)) {
++                    this.refireEvent(prop);
++                }
++            }
++        },
++        
++        /**
++        * Fires the normalized list of queued property change events
++        * @method fireQueue
++        */
++        fireQueue: function () {
++        
++            var i, 
++                queueItem,
++                key,
++                value,
++                property;
++        
++            this.queueInProgress = true;
++            for (i = 0;i < this.eventQueue.length; i++) {
++                queueItem = this.eventQueue[i];
++                if (queueItem) {
++        
++                    key = queueItem[0];
++                    value = queueItem[1];
++                    property = this.config[key];
++
++                    property.value = value;
++
++                    // Clear out queue entry, to avoid it being 
++                    // re-added to the queue by any queueProperty/supercedes
++                    // calls which are invoked during fireEvent
++                    this.eventQueue[i] = null;
++
++                    this.fireEvent(key,value);
++                }
++            }
++            
++            this.queueInProgress = false;
++            this.eventQueue = [];
++        },
++        
++        /**
++        * Subscribes an external handler to the change event for any 
++        * given property. 
++        * @method subscribeToConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event handler 
++        * (see CustomEvent documentation)
++        * @param {Boolean} overrideContext Optional. If true, will override
++        * "this" within the handler to map to the scope Object passed into the
++        * method.
++        * @return {Boolean} True, if the subscription was successful, 
++        * otherwise false.
++        */ 
++        subscribeToConfigEvent: function (key, handler, obj, overrideContext) {
++    
++            var property = this.config[key.toLowerCase()];
++    
++            if (property && property.event) {
++                if (!Config.alreadySubscribed(property.event, handler, obj)) {
++                    property.event.subscribe(handler, obj, overrideContext);
++                }
++                return true;
++            } else {
++                return false;
++            }
++    
++        },
++        
++        /**
++        * Unsubscribes an external handler from the change event for any 
++        * given property. 
++        * @method unsubscribeFromConfigEvent
++        * @param {String} key The property name
++        * @param {Function} handler The handler function to use subscribe to 
++        * the property's event
++        * @param {Object} obj The Object to use for scoping the event 
++        * handler (see CustomEvent documentation)
++        * @return {Boolean} True, if the unsubscription was successful, 
++        * otherwise false.
++        */
++        unsubscribeFromConfigEvent: function (key, handler, obj) {
++            var property = this.config[key.toLowerCase()];
++            if (property && property.event) {
++                return property.event.unsubscribe(handler, obj);
++            } else {
++                return false;
++            }
++        },
++        
++        /**
++        * Returns a string representation of the Config object
++        * @method toString
++        * @return {String} The Config object in string format.
++        */
++        toString: function () {
++            var output = "Config";
++            if (this.owner) {
++                output += " [" + this.owner.toString() + "]";
++            }
++            return output;
++        },
++        
++        /**
++        * Returns a string representation of the Config object's current 
++        * CustomEvent queue
++        * @method outputEventQueue
++        * @return {String} The string list of CustomEvents currently queued 
++        * for execution
++        */
++        outputEventQueue: function () {
++
++            var output = "",
++                queueItem,
++                q,
++                nQueue = this.eventQueue.length;
++              
++            for (q = 0; q < nQueue; q++) {
++                queueItem = this.eventQueue[q];
++                if (queueItem) {
++                    output += queueItem[0] + "=" + queueItem[1] + ", ";
++                }
++            }
++            return output;
++        },
++
++        /**
++        * Sets all properties to null, unsubscribes all listeners from each 
++        * property's change event and all listeners from the configChangedEvent.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var oConfig = this.config,
++                sProperty,
++                oProperty;
++
++
++            for (sProperty in oConfig) {
++            
++                if (Lang.hasOwnProperty(oConfig, sProperty)) {
++
++                    oProperty = oConfig[sProperty];
++
++                    oProperty.event.unsubscribeAll();
++                    oProperty.event = null;
++
++                }
++            
++            }
++            
++            this.configChangedEvent.unsubscribeAll();
++            
++            this.configChangedEvent = null;
++            this.owner = null;
++            this.config = null;
++            this.initialConfig = null;
++            this.eventQueue = null;
++        
++        }
++
++    };
++    
++    
++    
++    /**
++    * Checks to determine if a particular function/Object pair are already 
++    * subscribed to the specified CustomEvent
++    * @method YAHOO.util.Config.alreadySubscribed
++    * @static
++    * @param {YAHOO.util.CustomEvent} evt The CustomEvent for which to check 
++    * the subscriptions
++    * @param {Function} fn The function to look for in the subscribers list
++    * @param {Object} obj The execution scope Object for the subscription
++    * @return {Boolean} true, if the function/Object pair is already subscribed 
++    * to the CustomEvent passed in
++    */
++    Config.alreadySubscribed = function (evt, fn, obj) {
++    
++        var nSubscribers = evt.subscribers.length,
++            subsc,
++            i;
++
++        if (nSubscribers > 0) {
++            i = nSubscribers - 1;
++            do {
++                subsc = evt.subscribers[i];
++                if (subsc && subsc.obj == obj && subsc.fn == fn) {
++                    return true;
++                }
++            }
++            while (i--);
++        }
++
++        return false;
++
++    };
++
++    YAHOO.lang.augmentProto(Config, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * The Container family of components is designed to enable developers to 
++    * create different kinds of content-containing modules on the web. Module 
++    * and Overlay are the most basic containers, and they can be used directly 
++    * or extended to build custom containers. Also part of the Container family 
++    * are four UI controls that extend Module and Overlay: Tooltip, Panel, 
++    * Dialog, and SimpleDialog.
++    * @module container
++    * @title Container
++    * @requires yahoo, dom, event 
++    * @optional dragdrop, animation, button
++    */
++    
++    /**
++    * Module is a JavaScript representation of the Standard Module Format. 
++    * Standard Module Format is a simple standard for markup containers where 
++    * child nodes representing the header, body, and footer of the content are 
++    * denoted using the CSS classes "hd", "bd", and "ft" respectively. 
++    * Module is the base class for all other classes in the YUI 
++    * Container package.
++    * @namespace YAHOO.widget
++    * @class Module
++    * @constructor
++    * @param {String} el The element ID representing the Module <em>OR</em>
++    * @param {HTMLElement} el The element representing the Module
++    * @param {Object} userConfig The configuration Object literal containing 
++    * the configuration that should be set for this module. See configuration 
++    * documentation for more details.
++    */
++    YAHOO.widget.Module = function (el, userConfig) {
++        if (el) {
++            this.init(el, userConfig);
++        } else {
++        }
++    };
++
++    var Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        Event = YAHOO.util.Event,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        UA = YAHOO.env.ua,
++
++        m_oModuleTemplate,
++        m_oHeaderTemplate,
++        m_oBodyTemplate,
++        m_oFooterTemplate,
++
++        /**
++        * Constant representing the name of the Module's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_INIT": "beforeInit",
++            "INIT": "init",
++            "APPEND": "append",
++            "BEFORE_RENDER": "beforeRender",
++            "RENDER": "render",
++            "CHANGE_HEADER": "changeHeader",
++            "CHANGE_BODY": "changeBody",
++            "CHANGE_FOOTER": "changeFooter",
++            "CHANGE_CONTENT": "changeContent",
++            "DESTROY": "destroy",
++            "BEFORE_SHOW": "beforeShow",
++            "SHOW": "show",
++            "BEFORE_HIDE": "beforeHide",
++            "HIDE": "hide"
++        },
++            
++        /**
++        * Constant representing the Module's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++        
++            "VISIBLE": { 
++                key: "visible", 
++                value: true, 
++                validator: YAHOO.lang.isBoolean 
++            },
++
++            "EFFECT": {
++                key: "effect",
++                suppressEvent: true,
++                supercedes: ["visible"]
++            },
++
++            "MONITOR_RESIZE": {
++                key: "monitorresize",
++                value: true
++            },
++
++            "APPEND_TO_DOCUMENT_BODY": {
++                key: "appendtodocumentbody",
++                value: false
++            }
++        };
++
++    /**
++    * Constant representing the prefix path to use for non-secure images
++    * @property YAHOO.widget.Module.IMG_ROOT
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT = null;
++    
++    /**
++    * Constant representing the prefix path to use for securely served images
++    * @property YAHOO.widget.Module.IMG_ROOT_SSL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.IMG_ROOT_SSL = null;
++    
++    /**
++    * Constant for the default CSS class name that represents a Module
++    * @property YAHOO.widget.Module.CSS_MODULE
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_MODULE = "yui-module";
++    
++    /**
++    * Constant representing the module header
++    * @property YAHOO.widget.Module.CSS_HEADER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_HEADER = "hd";
++
++    /**
++    * Constant representing the module body
++    * @property YAHOO.widget.Module.CSS_BODY
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_BODY = "bd";
++    
++    /**
++    * Constant representing the module footer
++    * @property YAHOO.widget.Module.CSS_FOOTER
++    * @static
++    * @final
++    * @type String
++    */
++    Module.CSS_FOOTER = "ft";
++    
++    /**
++    * Constant representing the url for the "src" attribute of the iframe 
++    * used to monitor changes to the browser's base font size
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL
++    * @static
++    * @final
++    * @type String
++    */
++    Module.RESIZE_MONITOR_SECURE_URL = "javascript:false;";
++
++    /**
++    * Constant representing the buffer amount (in pixels) to use when positioning
++    * the text resize monitor offscreen. The resize monitor is positioned
++    * offscreen by an amount eqaul to its offsetHeight + the buffer value.
++    * 
++    * @property YAHOO.widget.Module.RESIZE_MONITOR_BUFFER
++    * @static
++    * @type Number
++    */
++    // Set to 1, to work around pixel offset in IE8, which increases when zoom is used
++    Module.RESIZE_MONITOR_BUFFER = 1;
++
++    /**
++    * Singleton CustomEvent fired when the font size is changed in the browser.
++    * Opera's "zoom" functionality currently does not support text 
++    * size detection.
++    * @event YAHOO.widget.Module.textResizeEvent
++    */
++    Module.textResizeEvent = new CustomEvent("textResize");
++
++    /**
++     * Helper utility method, which forces a document level 
++     * redraw for Opera, which can help remove repaint
++     * irregularities after applying DOM changes.
++     *
++     * @method YAHOO.widget.Module.forceDocumentRedraw
++     * @static
++     */
++    Module.forceDocumentRedraw = function() {
++        var docEl = document.documentElement;
++        if (docEl) {
++            docEl.className += " ";
++            docEl.className = YAHOO.lang.trim(docEl.className);
++        }
++    };
++
++    function createModuleTemplate() {
++
++        if (!m_oModuleTemplate) {
++            m_oModuleTemplate = document.createElement("div");
++            
++            m_oModuleTemplate.innerHTML = ("<div class=\"" + 
++                Module.CSS_HEADER + "\"></div>" + "<div class=\"" + 
++                Module.CSS_BODY + "\"></div><div class=\"" + 
++                Module.CSS_FOOTER + "\"></div>");
++
++            m_oHeaderTemplate = m_oModuleTemplate.firstChild;
++            m_oBodyTemplate = m_oHeaderTemplate.nextSibling;
++            m_oFooterTemplate = m_oBodyTemplate.nextSibling;
++        }
++
++        return m_oModuleTemplate;
++    }
++
++    function createHeader() {
++        if (!m_oHeaderTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oHeaderTemplate.cloneNode(false));
++    }
++
++    function createBody() {
++        if (!m_oBodyTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oBodyTemplate.cloneNode(false));
++    }
++
++    function createFooter() {
++        if (!m_oFooterTemplate) {
++            createModuleTemplate();
++        }
++        return (m_oFooterTemplate.cloneNode(false));
++    }
++
++    Module.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: Module,
++        
++        /**
++        * The main module element that contains the header, body, and footer
++        * @property element
++        * @type HTMLElement
++        */
++        element: null,
++
++        /**
++        * The header element, denoted with CSS class "hd"
++        * @property header
++        * @type HTMLElement
++        */
++        header: null,
++
++        /**
++        * The body element, denoted with CSS class "bd"
++        * @property body
++        * @type HTMLElement
++        */
++        body: null,
++
++        /**
++        * The footer element, denoted with CSS class "ft"
++        * @property footer
++        * @type HTMLElement
++        */
++        footer: null,
++
++        /**
++        * The id of the element
++        * @property id
++        * @type String
++        */
++        id: null,
++
++        /**
++        * A string representing the root path for all images created by
++        * a Module instance.
++        * @deprecated It is recommend that any images for a Module be applied
++        * via CSS using the "background-image" property.
++        * @property imageRoot
++        * @type String
++        */
++        imageRoot: Module.IMG_ROOT,
++
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired prior to class initalization.
++            * @event beforeInitEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */
++            this.beforeInitEvent = this.createEvent(EVENT_TYPES.BEFORE_INIT);
++            this.beforeInitEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after class initalization.
++            * @event initEvent
++            * @param {class} classRef class reference of the initializing 
++            * class, such as this.beforeInitEvent.fire(Module)
++            */  
++            this.initEvent = this.createEvent(EVENT_TYPES.INIT);
++            this.initEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is appended to the DOM
++            * @event appendEvent
++            */
++            this.appendEvent = this.createEvent(EVENT_TYPES.APPEND);
++            this.appendEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is rendered
++            * @event beforeRenderEvent
++            */
++            this.beforeRenderEvent = this.createEvent(EVENT_TYPES.BEFORE_RENDER);
++            this.beforeRenderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired after the Module is rendered
++            * @event renderEvent
++            */
++            this.renderEvent = this.createEvent(EVENT_TYPES.RENDER);
++            this.renderEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the header content of the Module 
++            * is modified
++            * @event changeHeaderEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new header content
++            */
++            this.changeHeaderEvent = this.createEvent(EVENT_TYPES.CHANGE_HEADER);
++            this.changeHeaderEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the body content of the Module is modified
++            * @event changeBodyEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new body content
++            */  
++            this.changeBodyEvent = this.createEvent(EVENT_TYPES.CHANGE_BODY);
++            this.changeBodyEvent.signature = SIGNATURE;
++            
++            /**
++            * CustomEvent fired when the footer content of the Module 
++            * is modified
++            * @event changeFooterEvent
++            * @param {String/HTMLElement} content String/element representing 
++            * the new footer content
++            */
++            this.changeFooterEvent = this.createEvent(EVENT_TYPES.CHANGE_FOOTER);
++            this.changeFooterEvent.signature = SIGNATURE;
++        
++            /**
++            * CustomEvent fired when the content of the Module is modified
++            * @event changeContentEvent
++            */
++            this.changeContentEvent = this.createEvent(EVENT_TYPES.CHANGE_CONTENT);
++            this.changeContentEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired when the Module is destroyed
++            * @event destroyEvent
++            */
++            this.destroyEvent = this.createEvent(EVENT_TYPES.DESTROY);
++            this.destroyEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is shown
++            * @event beforeShowEvent
++            */
++            this.beforeShowEvent = this.createEvent(EVENT_TYPES.BEFORE_SHOW);
++            this.beforeShowEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is shown
++            * @event showEvent
++            */
++            this.showEvent = this.createEvent(EVENT_TYPES.SHOW);
++            this.showEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired before the Module is hidden
++            * @event beforeHideEvent
++            */
++            this.beforeHideEvent = this.createEvent(EVENT_TYPES.BEFORE_HIDE);
++            this.beforeHideEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Module is hidden
++            * @event hideEvent
++            */
++            this.hideEvent = this.createEvent(EVENT_TYPES.HIDE);
++            this.hideEvent.signature = SIGNATURE;
++        }, 
++
++        /**
++        * String representing the current user-agent platform
++        * @property platform
++        * @type String
++        */
++        platform: function () {
++            var ua = navigator.userAgent.toLowerCase();
++
++            if (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1) {
++                return "windows";
++            } else if (ua.indexOf("macintosh") != -1) {
++                return "mac";
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * String representing the user-agent of the browser
++        * @deprecated Use YAHOO.env.ua
++        * @property browser
++        * @type String
++        */
++        browser: function () {
++            var ua = navigator.userAgent.toLowerCase();
++            /*
++                 Check Opera first in case of spoof and check Safari before
++                 Gecko since Safari's user agent string includes "like Gecko"
++            */
++            if (ua.indexOf('opera') != -1) { 
++                return 'opera';
++            } else if (ua.indexOf('msie 7') != -1) {
++                return 'ie7';
++            } else if (ua.indexOf('msie') != -1) {
++                return 'ie';
++            } else if (ua.indexOf('safari') != -1) { 
++                return 'safari';
++            } else if (ua.indexOf('gecko') != -1) {
++                return 'gecko';
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Boolean representing whether or not the current browsing context is 
++        * secure (https)
++        * @property isSecure
++        * @type Boolean
++        */
++        isSecure: function () {
++            if (window.location.href.toLowerCase().indexOf("https") === 0) {
++                return true;
++            } else {
++                return false;
++            }
++        }(),
++        
++        /**
++        * Initializes the custom events for Module which are fired 
++        * automatically at appropriate times by the Module class.
++        */
++        initDefaultConfig: function () {
++            // Add properties //
++            /**
++            * Specifies whether the Module is visible on the page.
++            * @config visible
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.VISIBLE.key, {
++                handler: this.configVisible, 
++                value: DEFAULT_CONFIG.VISIBLE.value, 
++                validator: DEFAULT_CONFIG.VISIBLE.validator
++            });
++
++            /**
++            * <p>
++            * Object or array of objects representing the ContainerEffect 
++            * classes that are active for animating the container.
++            * </p>
++            * <p>
++            * <strong>NOTE:</strong> Although this configuration 
++            * property is introduced at the Module level, an out of the box
++            * implementation is not shipped for the Module class so setting
++            * the proroperty on the Module class has no effect. The Overlay 
++            * class is the first class to provide out of the box ContainerEffect 
++            * support.
++            * </p>
++            * @config effect
++            * @type Object
++            * @default null
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.EFFECT.key, {
++                suppressEvent: DEFAULT_CONFIG.EFFECT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.EFFECT.supercedes
++            });
++
++            /**
++            * Specifies whether to create a special proxy iframe to monitor 
++            * for user font resizing in the document
++            * @config monitorresize
++            * @type Boolean
++            * @default true
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.MONITOR_RESIZE.key, {
++                handler: this.configMonitorResize,
++                value: DEFAULT_CONFIG.MONITOR_RESIZE.value
++            });
++
++            /**
++            * Specifies if the module should be rendered as the first child 
++            * of document.body or appended as the last child when render is called
++            * with document.body as the "appendToNode".
++            * <p>
++            * Appending to the body while the DOM is still being constructed can 
++            * lead to Operation Aborted errors in IE hence this flag is set to 
++            * false by default.
++            * </p>
++            * 
++            * @config appendtodocumentbody
++            * @type Boolean
++            * @default false
++            */
++            this.cfg.addProperty(DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.key, {
++                value: DEFAULT_CONFIG.APPEND_TO_DOCUMENT_BODY.value
++            });
++        },
++
++        /**
++        * The Module class's initialization method, which is executed for
++        * Module and all of its subclasses. 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.
++        * <p>
++        * If the element passed in does not have an id, one will be generated
++        * for it.
++        * </p>
++        * @method init
++        * @param {String} el The element ID representing the Module <em>OR</em>
++        * @param {HTMLElement} el The element representing the Module
++        * @param {Object} userConfig The configuration Object literal 
++        * containing the configuration that should be set for this module. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            var elId, child;
++
++            this.initEvents();
++            this.beforeInitEvent.fire(Module);
++
++            /**
++            * The Module's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type YAHOO.util.Config
++            */
++            this.cfg = new Config(this);
++
++            if (this.isSecure) {
++                this.imageRoot = Module.IMG_ROOT_SSL;
++            }
++
++            if (typeof el == "string") {
++                elId = el;
++                el = document.getElementById(el);
++                if (! el) {
++                    el = (createModuleTemplate()).cloneNode(false);
++                    el.id = elId;
++                }
++            }
++
++            this.id = Dom.generateId(el);
++            this.element = el;
++
++            child = this.element.firstChild;
++
++            if (child) {
++                var fndHd = false, fndBd = false, fndFt = false;
++                do {
++                    // We're looking for elements
++                    if (1 == child.nodeType) {
++                        if (!fndHd && Dom.hasClass(child, Module.CSS_HEADER)) {
++                            this.header = child;
++                            fndHd = true;
++                        } else if (!fndBd && Dom.hasClass(child, Module.CSS_BODY)) {
++                            this.body = child;
++                            fndBd = true;
++                        } else if (!fndFt && Dom.hasClass(child, Module.CSS_FOOTER)){
++                            this.footer = child;
++                            fndFt = true;
++                        }
++                    }
++                } while ((child = child.nextSibling));
++            }
++
++            this.initDefaultConfig();
++
++            Dom.addClass(this.element, Module.CSS_MODULE);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            /*
++                Subscribe to the fireQueue() method of Config so that any 
++                queued configuration changes are excecuted upon render of 
++                the Module
++            */ 
++
++            if (!Config.alreadySubscribed(this.renderEvent, this.cfg.fireQueue, this.cfg)) {
++                this.renderEvent.subscribe(this.cfg.fireQueue, this.cfg, true);
++            }
++
++            this.initEvent.fire(Module);
++        },
++
++        /**
++        * Initialize an empty IFRAME that is placed out of the visible area 
++        * that can be used to detect text resize.
++        * @method initResizeMonitor
++        */
++        initResizeMonitor: function () {
++
++            var isGeckoWin = (UA.gecko && this.platform == "windows");
++            if (isGeckoWin) {
++                // Help prevent spinning loading icon which 
++                // started with FireFox 2.0.0.8/Win
++                var self = this;
++                setTimeout(function(){self._initResizeMonitor();}, 0);
++            } else {
++                this._initResizeMonitor();
++            }
++        },
++
++        /**
++         * Create and initialize the text resize monitoring iframe.
++         * 
++         * @protected
++         * @method _initResizeMonitor
++         */
++        _initResizeMonitor : function() {
++
++            var oDoc, 
++                oIFrame, 
++                sHTML;
++
++            function fireTextResize() {
++                Module.textResizeEvent.fire();
++            }
++
++            if (!UA.opera) {
++                oIFrame = Dom.get("_yuiResizeMonitor");
++
++                var supportsCWResize = this._supportsCWResize();
++
++                if (!oIFrame) {
++                    oIFrame = document.createElement("iframe");
++
++                    if (this.isSecure && Module.RESIZE_MONITOR_SECURE_URL && UA.ie) {
++                        oIFrame.src = Module.RESIZE_MONITOR_SECURE_URL;
++                    }
++
++                    if (!supportsCWResize) {
++                        // Can't monitor on contentWindow, so fire from inside iframe
++                        sHTML = ["<html><head><script ",
++                                 "type=\"text/javascript\">",
++                                 "window.onresize=function(){window.parent.",
++                                 "YAHOO.widget.Module.textResizeEvent.",
++                                 "fire();};<",
++                                 "\/script></head>",
++                                 "<body></body></html>"].join('');
++
++                        oIFrame.src = "data:text/html;charset=utf-8," + encodeURIComponent(sHTML);
++                    }
++
++                    oIFrame.id = "_yuiResizeMonitor";
++                    oIFrame.title = "Text Resize Monitor";
++                    /*
++                        Need to set "position" property before inserting the 
++                        iframe into the document or Safari's status bar will 
++                        forever indicate the iframe is loading 
++                        (See YUILibrary bug #1723064)
++                    */
++                    oIFrame.style.position = "absolute";
++                    oIFrame.style.visibility = "hidden";
++
++                    var db = document.body,
++                        fc = db.firstChild;
++                    if (fc) {
++                        db.insertBefore(oIFrame, fc);
++                    } else {
++                        db.appendChild(oIFrame);
++                    }
++
++                    // Setting the background color fixes an issue with IE6/IE7, where
++                    // elements in the DOM, with -ve margin-top which positioned them 
++                    // offscreen (so they would be overlapped by the iframe and its -ve top
++                    // setting), would have their -ve margin-top ignored, when the iframe 
++                    // was added.
++                    oIFrame.style.backgroundColor = "transparent";
++
++                    oIFrame.style.borderWidth = "0";
++                    oIFrame.style.width = "2em";
++                    oIFrame.style.height = "2em";
++                    oIFrame.style.left = "0";
++                    oIFrame.style.top = (-1 * (oIFrame.offsetHeight + Module.RESIZE_MONITOR_BUFFER)) + "px";
++                    oIFrame.style.visibility = "visible";
++
++                    /*
++                       Don't open/close the document for Gecko like we used to, since it
++                       leads to duplicate cookies. (See YUILibrary bug #1721755)
++                    */
++                    if (UA.webkit) {
++                        oDoc = oIFrame.contentWindow.document;
++                        oDoc.open();
++                        oDoc.close();
++                    }
++                }
++
++                if (oIFrame && oIFrame.contentWindow) {
++                    Module.textResizeEvent.subscribe(this.onDomResize, this, true);
++
++                    if (!Module.textResizeInitialized) {
++                        if (supportsCWResize) {
++                            if (!Event.on(oIFrame.contentWindow, "resize", fireTextResize)) {
++                                /*
++                                     This will fail in IE if document.domain has 
++                                     changed, so we must change the listener to 
++                                     use the oIFrame element instead
++                                */
++                                Event.on(oIFrame, "resize", fireTextResize);
++                            }
++                        }
++                        Module.textResizeInitialized = true;
++                    }
++                    this.resizeMonitor = oIFrame;
++                }
++            }
++        },
++
++        /**
++         * Text resize monitor helper method.
++         * Determines if the browser supports resize events on iframe content windows.
++         * 
++         * @private
++         * @method _supportsCWResize
++         */
++        _supportsCWResize : function() {
++            /*
++                Gecko 1.8.0 (FF1.5), 1.8.1.0-5 (FF2) won't fire resize on contentWindow.
++                Gecko 1.8.1.6+ (FF2.0.0.6+) and all other browsers will fire resize on contentWindow.
++
++                We don't want to start sniffing for patch versions, so fire textResize the same
++                way on all FF2 flavors
++             */
++            var bSupported = true;
++            if (UA.gecko && UA.gecko <= 1.8) {
++                bSupported = false;
++            }
++            return bSupported;
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The DOM resize event
++        * @param {Object} obj The scope object passed to the handler
++        */
++        onDomResize: function (e, obj) {
++
++            var nTop = -1 * (this.resizeMonitor.offsetHeight + Module.RESIZE_MONITOR_BUFFER);
++
++            this.resizeMonitor.style.top = nTop + "px";
++            this.resizeMonitor.style.left = "0";
++        },
++
++        /**
++        * Sets the Module's header content to the string specified, or appends 
++        * the passed element to the header. If no header is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the header.
++        * 
++        * @method setHeader
++        * @param {String} headerContent The string used to set the header.
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the header innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} headerContent The HTMLElement to append to 
++        * <em>OR</em>
++        * @param {DocumentFragment} headerContent The document fragment 
++        * containing elements which are to be added to the header
++        */
++        setHeader: function (headerContent) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            if (headerContent.nodeName) {
++                oHeader.innerHTML = "";
++                oHeader.appendChild(headerContent);
++            } else {
++                oHeader.innerHTML = headerContent;
++            }
++
++            if (this._rendered) {
++                this._renderHeader();
++            }
++
++            this.changeHeaderEvent.fire(headerContent);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Appends the passed element to the header. If no header is present, 
++        * one will be automatically created.
++        * @method appendToHeader
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the header. In the case of a document fragment, the
++        * children of the fragment will be appended to the header.
++        */
++        appendToHeader: function (element) {
++            var oHeader = this.header || (this.header = createHeader());
++
++            oHeader.appendChild(element);
++
++            this.changeHeaderEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Sets the Module's body content to the HTML specified. 
++        * 
++        * If no body is present, one will be automatically created. 
++        * 
++        * An empty string can be passed to the method to clear the contents of the body.
++        * @method setBody
++        * @param {String} bodyContent The HTML used to set the body. 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the body innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} bodyContent The HTMLElement to add as the first and only
++        * child of the body element.
++        * <em>OR</em>
++        * @param {DocumentFragment} bodyContent The document fragment 
++        * containing elements which are to be added to the body
++        */
++        setBody: function (bodyContent) {
++            var oBody = this.body || (this.body = createBody());
++
++            if (bodyContent.nodeName) {
++                oBody.innerHTML = "";
++                oBody.appendChild(bodyContent);
++            } else {
++                oBody.innerHTML = bodyContent;
++            }
++
++            if (this._rendered) {
++                this._renderBody();
++            }
++
++            this.changeBodyEvent.fire(bodyContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the body. If no body is present, one 
++        * will be automatically created.
++        * @method appendToBody
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the body. In the case of a document fragment, the
++        * children of the fragment will be appended to the body.
++        * 
++        */
++        appendToBody: function (element) {
++            var oBody = this.body || (this.body = createBody());
++        
++            oBody.appendChild(element);
++
++            this.changeBodyEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++        
++        /**
++        * Sets the Module's footer content to the HTML specified, or appends 
++        * the passed element to the footer. If no footer is present, one will 
++        * be automatically created. An empty string can be passed to the method
++        * to clear the contents of the footer.
++        * @method setFooter
++        * @param {String} footerContent The HTML used to set the footer 
++        * As a convenience, non HTMLElement objects can also be passed into 
++        * the method, and will be treated as strings, with the footer innerHTML
++        * set to their default toString implementations.
++        * <em>OR</em>
++        * @param {HTMLElement} footerContent The HTMLElement to append to 
++        * the footer
++        * <em>OR</em>
++        * @param {DocumentFragment} footerContent The document fragment containing 
++        * elements which are to be added to the footer
++        */
++        setFooter: function (footerContent) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            if (footerContent.nodeName) {
++                oFooter.innerHTML = "";
++                oFooter.appendChild(footerContent);
++            } else {
++                oFooter.innerHTML = footerContent;
++            }
++
++            if (this._rendered) {
++                this._renderFooter();
++            }
++
++            this.changeFooterEvent.fire(footerContent);
++            this.changeContentEvent.fire();
++        },
++
++        /**
++        * Appends the passed element to the footer. If no footer is present, 
++        * one will be automatically created.
++        * @method appendToFooter
++        * @param {HTMLElement | DocumentFragment} element The element to 
++        * append to the footer. In the case of a document fragment, the
++        * children of the fragment will be appended to the footer
++        */
++        appendToFooter: function (element) {
++
++            var oFooter = this.footer || (this.footer = createFooter());
++
++            oFooter.appendChild(element);
++
++            this.changeFooterEvent.fire(element);
++            this.changeContentEvent.fire();
++
++        },
++
++        /**
++        * Renders the Module by inserting the elements that are not already 
++        * in the main Module into their correct places. Optionally appends 
++        * the Module to the specified node prior to the render's execution. 
++        * <p>
++        * For Modules without existing markup, the appendToNode argument 
++        * is REQUIRED. If this argument is ommitted and the current element is 
++        * not present in the document, the function will return false, 
++        * indicating that the render was a failure.
++        * </p>
++        * <p>
++        * NOTE: As of 2.3.1, if the appendToNode is the document's body element
++        * then the module is rendered as the first child of the body element, 
++        * and not appended to it, to avoid Operation Aborted errors in IE when 
++        * rendering the module before window's load event is fired. You can 
++        * use the appendtodocumentbody configuration property to change this 
++        * to append to document.body if required.
++        * </p>
++        * @method render
++        * @param {String} appendToNode The element id to which the Module 
++        * should be appended to prior to rendering <em>OR</em>
++        * @param {HTMLElement} appendToNode The element to which the Module 
++        * should be appended to prior to rendering
++        * @param {HTMLElement} moduleElement OPTIONAL. The element that 
++        * represents the actual Standard Module container.
++        * @return {Boolean} Success or failure of the render
++        */
++        render: function (appendToNode, moduleElement) {
++
++            var me = this;
++
++            function appendTo(parentNode) {
++                if (typeof parentNode == "string") {
++                    parentNode = document.getElementById(parentNode);
++                }
++
++                if (parentNode) {
++                    me._addToParent(parentNode, me.element);
++                    me.appendEvent.fire();
++                }
++            }
++
++            this.beforeRenderEvent.fire();
++
++            if (! moduleElement) {
++                moduleElement = this.element;
++            }
++
++            if (appendToNode) {
++                appendTo(appendToNode);
++            } else { 
++                // No node was passed in. If the element is not already in the Dom, this fails
++                if (! Dom.inDocument(this.element)) {
++                    return false;
++                }
++            }
++
++            this._renderHeader(moduleElement);
++            this._renderBody(moduleElement);
++            this._renderFooter(moduleElement);
++
++            this._rendered = true;
++
++            this.renderEvent.fire();
++            return true;
++        },
++
++        /**
++         * Renders the currently set header into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderHeader
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderHeader: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            // Need to get everything into the DOM if it isn't already
++            if (this.header && !Dom.inDocument(this.header)) {
++                // There is a header, but it's not in the DOM yet. Need to add it.
++                var firstChild = moduleElement.firstChild;
++                if (firstChild) {
++                    moduleElement.insertBefore(this.header, firstChild);
++                } else {
++                    moduleElement.appendChild(this.header);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set body into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderBody
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element.
++         */
++        _renderBody: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.body && !Dom.inDocument(this.body)) {
++                // There is a body, but it's not in the DOM yet. Need to add it.
++                if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
++                    moduleElement.insertBefore(this.body, this.footer);
++                } else {
++                    moduleElement.appendChild(this.body);
++                }
++            }
++        },
++
++        /**
++         * Renders the currently set footer into it's proper position under the 
++         * module element. If the module element is not provided, "this.element" 
++         * is used.
++         * 
++         * @method _renderFooter
++         * @protected
++         * @param {HTMLElement} moduleElement Optional. A reference to the module element
++         */
++        _renderFooter: function(moduleElement){
++            moduleElement = moduleElement || this.element;
++
++            if (this.footer && !Dom.inDocument(this.footer)) {
++                // There is a footer, but it's not in the DOM yet. Need to add it.
++                moduleElement.appendChild(this.footer);
++            }
++        },
++
++        /**
++        * Removes the Module element from the DOM and sets all child elements 
++        * to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            var parent;
++
++            if (this.element) {
++                Event.purgeElement(this.element, true);
++                parent = this.element.parentNode;
++            }
++
++            if (parent) {
++                parent.removeChild(this.element);
++            }
++        
++            this.element = null;
++            this.header = null;
++            this.body = null;
++            this.footer = null;
++
++            Module.textResizeEvent.unsubscribe(this.onDomResize, this);
++
++            this.cfg.destroy();
++            this.cfg = null;
++
++            this.destroyEvent.fire();
++        },
++
++        /**
++        * Shows the Module element by setting the visible configuration 
++        * property to true. Also fires two events: beforeShowEvent prior to 
++        * the visibility change, and showEvent after.
++        * @method show
++        */
++        show: function () {
++            this.cfg.setProperty("visible", true);
++        },
++
++        /**
++        * Hides the Module element by setting the visible configuration 
++        * property to false. Also fires two events: beforeHideEvent prior to 
++        * the visibility change, and hideEvent after.
++        * @method hide
++        */
++        hide: function () {
++            this.cfg.setProperty("visible", false);
++        },
++        
++        // BUILT-IN EVENT HANDLERS FOR MODULE //
++        /**
++        * Default event handler for changing the visibility property of a 
++        * Module. By default, this is achieved by switching the "display" style 
++        * between "block" and "none".
++        * This method is responsible for firing showEvent and hideEvent.
++        * @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.
++        * @method configVisible
++        */
++        configVisible: function (type, args, obj) {
++            var visible = args[0];
++            if (visible) {
++                this.beforeShowEvent.fire();
++                Dom.setStyle(this.element, "display", "block");
++                this.showEvent.fire();
++            } else {
++                this.beforeHideEvent.fire();
++                Dom.setStyle(this.element, "display", "none");
++                this.hideEvent.fire();
++            }
++        },
++
++        /**
++        * Default event handler for the "monitorresize" configuration property
++        * @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.
++        * @method configMonitorResize
++        */
++        configMonitorResize: function (type, args, obj) {
++            var monitor = args[0];
++            if (monitor) {
++                this.initResizeMonitor();
++            } else {
++                Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
++                this.resizeMonitor = null;
++            }
++        },
++
++        /**
++         * This method is a protected helper, used when constructing the DOM structure for the module 
++         * to account for situations which may cause Operation Aborted errors in IE. It should not 
++         * be used for general DOM construction.
++         * <p>
++         * If the parentNode is not document.body, the element is appended as the last element.
++         * </p>
++         * <p>
++         * If the parentNode is document.body the element is added as the first child to help
++         * prevent Operation Aborted errors in IE.
++         * </p>
++         *
++         * @param {parentNode} The HTML element to which the element will be added
++         * @param {element} The HTML element to be added to parentNode's children
++         * @method _addToParent
++         * @protected
++         */
++        _addToParent: function(parentNode, element) {
++            if (!this.cfg.getProperty("appendtodocumentbody") && parentNode === document.body && parentNode.firstChild) {
++                parentNode.insertBefore(element, parentNode.firstChild);
++            } else {
++                parentNode.appendChild(element);
++            }
++        },
++
++        /**
++        * Returns a String representation of the Object.
++        * @method toString
++        * @return {String} The string representation of the Module
++        */
++        toString: function () {
++            return "Module " + this.id;
++        }
++    };
++
++    YAHOO.lang.augmentProto(Module, YAHOO.util.EventProvider);
++
++}());
++(function () {
++
++    /**
++    * Overlay is a Module that is absolutely positioned above the page flow. It 
++    * has convenience methods for positioning and sizing, as well as options for 
++    * controlling zIndex and constraining the Overlay's position to the current 
++    * visible viewport. Overlay also contains a dynamicly generated IFRAME which 
++    * is placed beneath it for Internet Explorer 6 and 5.x so that it will be 
++    * properly rendered above SELECT elements.
++    * @namespace YAHOO.widget
++    * @class Overlay
++    * @extends YAHOO.widget.Module
++    * @param {String} el The element ID representing the Overlay <em>OR</em>
++    * @param {HTMLElement} el The element representing the Overlay
++    * @param {Object} userConfig The configuration object literal containing 
++    * the configuration that should be set for this Overlay. See configuration 
++    * documentation for more details.
++    * @constructor
++    */
++    YAHOO.widget.Overlay = function (el, userConfig) {
++        YAHOO.widget.Overlay.superclass.constructor.call(this, el, userConfig);
++    };
++
++    var Lang = YAHOO.lang,
++        CustomEvent = YAHOO.util.CustomEvent,
++        Module = YAHOO.widget.Module,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        UA = YAHOO.env.ua,
++        Overlay = YAHOO.widget.Overlay,
++
++        _SUBSCRIBE = "subscribe",
++        _UNSUBSCRIBE = "unsubscribe",
++        _CONTAINED = "contained",
++
++        m_oIFrameTemplate,
++
++        /**
++        * Constant representing the name of the Overlay's events
++        * @property EVENT_TYPES
++        * @private
++        * @final
++        * @type Object
++        */
++        EVENT_TYPES = {
++            "BEFORE_MOVE": "beforeMove",
++            "MOVE": "move"
++        },
++
++        /**
++        * Constant representing the Overlay's configuration properties
++        * @property DEFAULT_CONFIG
++        * @private
++        * @final
++        * @type Object
++        */
++        DEFAULT_CONFIG = {
++
++            "X": { 
++                key: "x", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "Y": { 
++                key: "y", 
++                validator: Lang.isNumber, 
++                suppressEvent: true, 
++                supercedes: ["iframe"]
++            },
++
++            "XY": { 
++                key: "xy", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "CONTEXT": { 
++                key: "context", 
++                suppressEvent: true, 
++                supercedes: ["iframe"] 
++            },
++
++            "FIXED_CENTER": { 
++                key: "fixedcenter", 
++                value: false, 
++                supercedes: ["iframe", "visible"] 
++            },
++
++            "WIDTH": { 
++                key: "width",
++                suppressEvent: true,
++                supercedes: ["context", "fixedcenter", "iframe"]
++            }, 
++
++            "HEIGHT": { 
++                key: "height", 
++                suppressEvent: true, 
++                supercedes: ["context", "fixedcenter", "iframe"] 
++            },
++
++            "AUTO_FILL_HEIGHT" : {
++                key: "autofillheight",
++                supercedes: ["height"],
++                value:"body"
++            },
++
++            "ZINDEX": { 
++                key: "zindex", 
++                value: null 
++            },
++
++            "CONSTRAIN_TO_VIEWPORT": { 
++                key: "constraintoviewport", 
++                value: false, 
++                validator: Lang.isBoolean, 
++                supercedes: ["iframe", "x", "y", "xy"]
++            }, 
++
++            "IFRAME": { 
++                key: "iframe", 
++                value: (UA.ie == 6 ? true : false), 
++                validator: Lang.isBoolean, 
++                supercedes: ["zindex"] 
++            },
++
++            "PREVENT_CONTEXT_OVERLAP": {
++                key: "preventcontextoverlap",
++                value: false,
++                validator: Lang.isBoolean,  
++                supercedes: ["constraintoviewport"]
++            }
++
++        };
++
++    /**
++    * The URL that will be placed in the iframe
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.IFRAME_SRC = "javascript:false;";
++
++    /**
++    * Number representing how much the iframe shim should be offset from each 
++    * side of an Overlay instance, in pixels.
++    * @property YAHOO.widget.Overlay.IFRAME_SRC
++    * @default 3
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.IFRAME_OFFSET = 3;
++
++    /**
++    * Number representing the minimum distance an Overlay instance should be 
++    * positioned relative to the boundaries of the browser's viewport, in pixels.
++    * @property YAHOO.widget.Overlay.VIEWPORT_OFFSET
++    * @default 10
++    * @static
++    * @final
++    * @type Number
++    */
++    Overlay.VIEWPORT_OFFSET = 10;
++
++    /**
++    * Constant representing the top left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_LEFT = "tl";
++
++    /**
++    * Constant representing the top right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.TOP_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.TOP_RIGHT = "tr";
++
++    /**
++    * Constant representing the top bottom left corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_LEFT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_LEFT = "bl";
++
++    /**
++    * Constant representing the bottom right corner of an element, used for 
++    * configuring the context element alignment
++    * @property YAHOO.widget.Overlay.BOTTOM_RIGHT
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.BOTTOM_RIGHT = "br";
++
++    Overlay.PREVENT_OVERLAP_X = {
++        "tltr": true,
++        "blbr": true,
++        "brbl": true,
++        "trtl": true
++    };
++            
++    Overlay.PREVENT_OVERLAP_Y = {
++        "trbr": true,
++        "tlbl": true,
++        "bltl": true,
++        "brtr": true
++    };
++
++    /**
++    * Constant representing the default CSS class used for an Overlay
++    * @property YAHOO.widget.Overlay.CSS_OVERLAY
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_OVERLAY = "yui-overlay";
++
++    /**
++    * Constant representing the default hidden CSS class used for an Overlay. This class is 
++    * applied to the overlay's outer DIV whenever it's hidden.
++    *
++    * @property YAHOO.widget.Overlay.CSS_HIDDEN
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_HIDDEN = "yui-overlay-hidden";
++
++    /**
++    * Constant representing the default CSS class used for an Overlay iframe shim.
++    * 
++    * @property YAHOO.widget.Overlay.CSS_IFRAME
++    * @static
++    * @final
++    * @type String
++    */
++    Overlay.CSS_IFRAME = "yui-overlay-iframe";
++
++    /**
++     * Constant representing the names of the standard module elements
++     * used in the overlay.
++     * @property YAHOO.widget.Overlay.STD_MOD_RE
++     * @static
++     * @final
++     * @type RegExp
++     */
++    Overlay.STD_MOD_RE = /^\s*?(body|footer|header)\s*?$/i;
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for 
++    * window scroll
++    * @event YAHOO.widget.Overlay.windowScrollEvent
++    */
++    Overlay.windowScrollEvent = new CustomEvent("windowScroll");
++
++    /**
++    * A singleton CustomEvent used for reacting to the DOM event for
++    * window resize
++    * @event YAHOO.widget.Overlay.windowResizeEvent
++    */
++    Overlay.windowResizeEvent = new CustomEvent("windowResize");
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window scroll
++    * @method YAHOO.widget.Overlay.windowScrollHandler
++    * @static
++    * @param {DOMEvent} e The DOM scroll event
++    */
++    Overlay.windowScrollHandler = function (e) {
++        var t = Event.getTarget(e);
++
++        // - Webkit (Safari 2/3) and Opera 9.2x bubble scroll events from elements to window
++        // - FF2/3 and IE6/7, Opera 9.5x don't bubble scroll events from elements to window
++        // - IE doesn't recognize scroll registered on the document.
++        //
++        // Also, when document view is scrolled, IE doesn't provide a target, 
++        // rest of the browsers set target to window.document, apart from opera 
++        // which sets target to window.
++        if (!t || t === window || t === window.document) {
++            if (UA.ie) {
++
++                if (! window.scrollEnd) {
++                    window.scrollEnd = -1;
++                }
++
++                clearTimeout(window.scrollEnd);
++        
++                window.scrollEnd = setTimeout(function () { 
++                    Overlay.windowScrollEvent.fire(); 
++                }, 1);
++        
++            } else {
++                Overlay.windowScrollEvent.fire();
++            }
++        }
++    };
++
++    /**
++    * The DOM event handler used to fire the CustomEvent for window resize
++    * @method YAHOO.widget.Overlay.windowResizeHandler
++    * @static
++    * @param {DOMEvent} e The DOM resize event
++    */
++    Overlay.windowResizeHandler = function (e) {
++
++        if (UA.ie) {
++            if (! window.resizeEnd) {
++                window.resizeEnd = -1;
++            }
++
++            clearTimeout(window.resizeEnd);
++
++            window.resizeEnd = setTimeout(function () {
++                Overlay.windowResizeEvent.fire(); 
++            }, 100);
++        } else {
++            Overlay.windowResizeEvent.fire();
++        }
++    };
++
++    /**
++    * A boolean that indicated whether the window resize and scroll events have 
++    * already been subscribed to.
++    * @property YAHOO.widget.Overlay._initialized
++    * @private
++    * @type Boolean
++    */
++    Overlay._initialized = null;
++
++    if (Overlay._initialized === null) {
++        Event.on(window, "scroll", Overlay.windowScrollHandler);
++        Event.on(window, "resize", Overlay.windowResizeHandler);
++        Overlay._initialized = true;
++    }
++
++    /**
++     * Internal map of special event types, which are provided
++     * by the instance. It maps the event type to the custom event 
++     * instance. Contains entries for the "windowScroll", "windowResize" and
++     * "textResize" static container events.
++     *
++     * @property YAHOO.widget.Overlay._TRIGGER_MAP
++     * @type Object
++     * @static
++     * @private
++     */
++    Overlay._TRIGGER_MAP = {
++        "windowScroll" : Overlay.windowScrollEvent,
++        "windowResize" : Overlay.windowResizeEvent,
++        "textResize"   : Module.textResizeEvent
++    };
++
++    YAHOO.extend(Overlay, Module, {
++
++        /**
++         * <p>
++         * Array of default event types which will trigger
++         * context alignment for the Overlay class.
++         * </p>
++         * <p>The array is empty by default for Overlay,
++         * but maybe populated in future releases, so classes extending
++         * Overlay which need to define their own set of CONTEXT_TRIGGERS
++         * should concatenate their super class's prototype.CONTEXT_TRIGGERS 
++         * value with their own array of values.
++         * </p>
++         * <p>
++         * E.g.:
++         * <code>CustomOverlay.prototype.CONTEXT_TRIGGERS = YAHOO.widget.Overlay.prototype.CONTEXT_TRIGGERS.concat(["windowScroll"]);</code>
++         * </p>
++         * 
++         * @property CONTEXT_TRIGGERS
++         * @type Array
++         * @final
++         */
++        CONTEXT_TRIGGERS : [],
++
++        /**
++        * The Overlay initialization method, which is executed for Overlay and  
++        * all of its subclasses. 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.
++        * @method init
++        * @param {String} el The element ID representing the Overlay <em>OR</em>
++        * @param {HTMLElement} el The element representing the Overlay
++        * @param {Object} userConfig The configuration object literal 
++        * containing the configuration that should be set for this Overlay. 
++        * See configuration documentation for more details.
++        */
++        init: function (el, userConfig) {
++
++            /*
++                 Note that we don't pass the user config in here yet because we
++                 only want it executed once, at the lowest subclass level
++            */
++
++            Overlay.superclass.init.call(this, el/*, userConfig*/);
++
++            this.beforeInitEvent.fire(Overlay);
++
++            Dom.addClass(this.element, Overlay.CSS_OVERLAY);
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++
++            if (this.platform == "mac" && UA.gecko) {
++
++                if (! Config.alreadySubscribed(this.showEvent,
++                    this.showMacGeckoScrollbars, this)) {
++
++                    this.showEvent.subscribe(this.showMacGeckoScrollbars, 
++                        this, true);
++
++                }
++
++                if (! Config.alreadySubscribed(this.hideEvent, 
++                    this.hideMacGeckoScrollbars, this)) {
++
++                    this.hideEvent.subscribe(this.hideMacGeckoScrollbars, 
++                        this, true);
++
++                }
++            }
++
++            this.initEvent.fire(Overlay);
++        },
++        
++        /**
++        * Initializes the custom events for Overlay which are fired  
++        * automatically at appropriate times by the Overlay class.
++        * @method initEvents
++        */
++        initEvents: function () {
++
++            Overlay.superclass.initEvents.call(this);
++
++            var SIGNATURE = CustomEvent.LIST;
++
++            /**
++            * CustomEvent fired before the Overlay is moved.
++            * @event beforeMoveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.beforeMoveEvent = this.createEvent(EVENT_TYPES.BEFORE_MOVE);
++            this.beforeMoveEvent.signature = SIGNATURE;
++
++            /**
++            * CustomEvent fired after the Overlay is moved.
++            * @event moveEvent
++            * @param {Number} x x coordinate
++            * @param {Number} y y coordinate
++            */
++            this.moveEvent = this.createEvent(EVENT_TYPES.MOVE);
++            this.moveEvent.signature = SIGNATURE;
++
++        },
++        
++        /**
++        * Initializes the class's configurable properties which can be changed 
++        * using the Overlay's Config object (cfg).
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++    
++            Overlay.superclass.initDefaultConfig.call(this);
++
++            var cfg = this.cfg;
++
++            // Add overlay config properties //
++            
++            /**
++            * The absolute x-coordinate position of the Overlay
++            * @config x
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.X.key, { 
++    
++                handler: this.configX, 
++                validator: DEFAULT_CONFIG.X.validator, 
++                suppressEvent: DEFAULT_CONFIG.X.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.X.supercedes
++    
++            });
++
++            /**
++            * The absolute y-coordinate position of the Overlay
++            * @config y
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.Y.key, {
++
++                handler: this.configY, 
++                validator: DEFAULT_CONFIG.Y.validator, 
++                suppressEvent: DEFAULT_CONFIG.Y.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.Y.supercedes
++
++            });
++
++            /**
++            * An array with the absolute x and y positions of the Overlay
++            * @config xy
++            * @type Number[]
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.XY.key, {
++                handler: this.configXY, 
++                suppressEvent: DEFAULT_CONFIG.XY.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.XY.supercedes
++            });
++
++            /**
++            * <p>
++            * The array of context arguments for context-sensitive positioning. 
++            * </p>
++            *
++            * <p>
++            * The format of the array is: <code>[contextElementOrId, overlayCorner, contextCorner, arrayOfTriggerEvents (optional), xyOffset (optional)]</code>, the
++            * the 5 array elements described in detail below:
++            * </p>
++            *
++            * <dl>
++            * <dt>contextElementOrId &#60;String|HTMLElement&#62;</dt>
++            * <dd>A reference to the context element to which the overlay should be aligned (or it's id).</dd>
++            * <dt>overlayCorner &#60;String&#62;</dt>
++            * <dd>The corner of the overlay which is to be used for alignment. This corner will be aligned to the 
++            * corner of the context element defined by the "contextCorner" entry which follows. Supported string values are: 
++            * "tr" (top right), "tl" (top left), "br" (bottom right), or "bl" (bottom left).</dd>
++            * <dt>contextCorner &#60;String&#62;</dt>
++            * <dd>The corner of the context element which is to be used for alignment. Supported string values are the same ones listed for the "overlayCorner" entry above.</dd>
++            * <dt>arrayOfTriggerEvents (optional) &#60;Array[String|CustomEvent]&#62;</dt>
++            * <dd>
++            * <p>
++            * By default, context alignment is a one time operation, aligning the Overlay to the context element when context configuration property is set, or when the <a href="#method_align">align</a> 
++            * method is invoked. However, you can use the optional "arrayOfTriggerEvents" entry to define the list of events which should force the overlay to re-align itself with the context element. 
++            * This is useful in situations where the layout of the document may change, resulting in the context element's position being modified.
++            * </p>
++            * <p>
++            * The array can contain either event type strings for events the instance publishes (e.g. "beforeShow") or CustomEvent instances. Additionally the following
++            * 3 static container event types are also currently supported : <code>"windowResize", "windowScroll", "textResize"</code> (defined in <a href="#property__TRIGGER_MAP">_TRIGGER_MAP</a> private property).
++            * </p>
++            * </dd>
++            * <dt>xyOffset &#60;Number[]&#62;</dt>
++            * <dd>
++            * A 2 element Array specifying the X and Y pixel amounts by which the Overlay should be offset from the aligned corner. e.g. [5,0] offsets the Overlay 5 pixels to the left, <em>after</em> aligning the given context corners.
++            * NOTE: If using this property and no triggers need to be defined, the arrayOfTriggerEvents property should be set to null to maintain correct array positions for the arguments. 
++            * </dd>
++            * </dl>
++            *
++            * <p>
++            * For example, setting this property to <code>["img1", "tl", "bl"]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1".
++            * </p>
++            * <p>
++            * Setting this property to <code>["img1", "tl", "bl", null, [0,5]</code> will 
++            * align the Overlay's top left corner to the bottom left corner of the
++            * context element with id "img1", and then offset it by 5 pixels on the Y axis (providing a 5 pixel gap between the bottom of the context element and top of the overlay).
++            * </p>
++            * <p>
++            * Adding the optional trigger values: <code>["img1", "tl", "bl", ["beforeShow", "windowResize"], [0,5]]</code>,
++            * will re-align the overlay position, whenever the "beforeShow" or "windowResize" events are fired.
++            * </p>
++            *
++            * @config context
++            * @type Array
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.CONTEXT.key, {
++                handler: this.configContext, 
++                suppressEvent: DEFAULT_CONFIG.CONTEXT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.CONTEXT.supercedes
++            });
++
++            /**
++            * Determines whether or not the Overlay should be anchored 
++            * to the center of the viewport.
++            * 
++            * <p>This property can be set to:</p>
++            * 
++            * <dl>
++            * <dt>true</dt>
++            * <dd>
++            * To enable fixed center positioning
++            * <p>
++            * When enabled, the overlay will 
++            * be positioned in the center of viewport when initially displayed, and 
++            * will remain in the center of the viewport whenever the window is 
++            * scrolled or resized.
++            * </p>
++            * <p>
++            * If the overlay is too big for the viewport, 
++            * it's top left corner will be aligned with the top left corner of the viewport.
++            * </p>
++            * </dd>
++            * <dt>false</dt>
++            * <dd>
++            * To disable fixed center positioning.
++            * <p>In this case the overlay can still be 
++            * centered as a one-off operation, by invoking the <code>center()</code> method,
++            * however it will not remain centered when the window is scrolled/resized.
++            * </dd>
++            * <dt>"contained"<dt>
++            * <dd>To enable fixed center positioning, as with the <code>true</code> option.
++            * <p>However, unlike setting the property to <code>true</code>, 
++            * when the property is set to <code>"contained"</code>, if the overlay is 
++            * too big for the viewport, it will not get automatically centered when the 
++            * user scrolls or resizes the window (until the window is large enough to contain the 
++            * overlay). This is useful in cases where the Overlay has both header and footer 
++            * UI controls which the user may need to access.
++            * </p>
++            * </dd>
++            * </dl>
++            *
++            * @config fixedcenter
++            * @type Boolean | String
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.FIXED_CENTER.key, {
++                handler: this.configFixedCenter,
++                value: DEFAULT_CONFIG.FIXED_CENTER.value, 
++                validator: DEFAULT_CONFIG.FIXED_CENTER.validator, 
++                supercedes: DEFAULT_CONFIG.FIXED_CENTER.supercedes
++            });
++    
++            /**
++            * CSS width of the Overlay.
++            * @config width
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.WIDTH.key, {
++                handler: this.configWidth, 
++                suppressEvent: DEFAULT_CONFIG.WIDTH.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.WIDTH.supercedes
++            });
++
++            /**
++            * CSS height of the Overlay.
++            * @config height
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.HEIGHT.key, {
++                handler: this.configHeight, 
++                suppressEvent: DEFAULT_CONFIG.HEIGHT.suppressEvent, 
++                supercedes: DEFAULT_CONFIG.HEIGHT.supercedes
++            });
++
++            /**
++            * Standard module element which should auto fill out the height of the Overlay if the height config property is set.
++            * Supported values are "header", "body", "footer".
++            *
++            * @config autofillheight
++            * @type String
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.AUTO_FILL_HEIGHT.key, {
++                handler: this.configAutoFillHeight, 
++                value : DEFAULT_CONFIG.AUTO_FILL_HEIGHT.value,
++                validator : this._validateAutoFill,
++                supercedes: DEFAULT_CONFIG.AUTO_FILL_HEIGHT.supercedes
++            });
++
++            /**
++            * CSS z-index of the Overlay.
++            * @config zIndex
++            * @type Number
++            * @default null
++            */
++            cfg.addProperty(DEFAULT_CONFIG.ZINDEX.key, {
++                handler: this.configzIndex,
++                value: DEFAULT_CONFIG.ZINDEX.value
++            });
++
++            /**
++            * True if the Overlay should be prevented from being positioned 
++            * out of the viewport.
++            * @config constraintoviewport
++            * @type Boolean
++            * @default false
++            */
++            cfg.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 iframe
++            * @description Boolean indicating whether or not the Overlay 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 Overlay instance is intially
++            * made visible.
++            * @type Boolean
++            * @default true for IE6 and below, false for all other browsers.
++            */
++            cfg.addProperty(DEFAULT_CONFIG.IFRAME.key, {
++
++                handler: this.configIframe, 
++                value: DEFAULT_CONFIG.IFRAME.value, 
++                validator: DEFAULT_CONFIG.IFRAME.validator, 
++                supercedes: DEFAULT_CONFIG.IFRAME.supercedes
++
++            });
++
++            /**
++            * @config preventcontextoverlap
++            * @description Boolean indicating whether or not the Overlay should overlap its 
++            * context element (defined using the "context" configuration property) when the 
++            * "constraintoviewport" configuration property is set to "true".
++            * @type Boolean
++            * @default false
++            */
++            cfg.addProperty(DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.key, {
++                value: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.value, 
++                validator: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.validator, 
++                supercedes: DEFAULT_CONFIG.PREVENT_CONTEXT_OVERLAP.supercedes
++            });
++        },
++
++        /**
++        * Moves the Overlay to the specified position. This function is  
++        * identical to calling this.cfg.setProperty("xy", [x,y]);
++        * @method moveTo
++        * @param {Number} x The Overlay's new x position
++        * @param {Number} y The Overlay's new y position
++        */
++        moveTo: function (x, y) {
++            this.cfg.setProperty("xy", [x, y]);
++        },
++
++        /**
++        * Adds a CSS class ("hide-scrollbars") and removes a CSS class 
++        * ("show-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method hideMacGeckoScrollbars
++        */
++        hideMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "show-scrollbars", "hide-scrollbars");
++        },
++
++        /**
++        * Adds a CSS class ("show-scrollbars") and removes a CSS class 
++        * ("hide-scrollbars") to the Overlay to fix a bug in Gecko on Mac OS X 
++        * (https://bugzilla.mozilla.org/show_bug.cgi?id=187435)
++        * @method showMacGeckoScrollbars
++        */
++        showMacGeckoScrollbars: function () {
++            Dom.replaceClass(this.element, "hide-scrollbars", "show-scrollbars");
++        },
++
++        /**
++         * Internal implementation to set the visibility of the overlay in the DOM.
++         *
++         * @method _setDomVisibility
++         * @param {boolean} visible Whether to show or hide the Overlay's outer element
++         * @protected
++         */
++        _setDomVisibility : function(show) {
++            Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
++            var hiddenClass = Overlay.CSS_HIDDEN;
++
++            if (show) {
++                Dom.removeClass(this.element, hiddenClass);
++            } else {
++                Dom.addClass(this.element, hiddenClass);
++            }
++        },
++
++        // BEGIN BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * The default event handler fired when the "visible" property is 
++        * changed.  This method is responsible for firing showEvent
++        * and hideEvent.
++        * @method configVisible
++        * @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.
++        */
++        configVisible: function (type, args, obj) {
++
++            var visible = args[0],
++                currentVis = Dom.getStyle(this.element, "visibility"),
++                effect = this.cfg.getProperty("effect"),
++                effectInstances = [],
++                isMacGecko = (this.platform == "mac" && UA.gecko),
++                alreadySubscribed = Config.alreadySubscribed,
++                eff, ei, e, i, j, k, h,
++                nEffects,
++                nEffectInstances;
++
++            if (currentVis == "inherit") {
++                e = this.element.parentNode;
++
++                while (e.nodeType != 9 && e.nodeType != 11) {
++                    currentVis = Dom.getStyle(e, "visibility");
++
++                    if (currentVis != "inherit") {
++                        break;
++                    }
++
++                    e = e.parentNode;
++                }
++
++                if (currentVis == "inherit") {
++                    currentVis = "visible";
++                }
++            }
++
++            if (effect) {
++                if (effect instanceof Array) {
++                    nEffects = effect.length;
++
++                    for (i = 0; i < nEffects; i++) {
++                        eff = effect[i];
++                        effectInstances[effectInstances.length] = 
++                            eff.effect(this, eff.duration);
++
++                    }
++                } else {
++                    effectInstances[effectInstances.length] = 
++                        effect.effect(this, effect.duration);
++                }
++            }
++
++            if (visible) { // Show
++                if (isMacGecko) {
++                    this.showMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate in
++                    if (visible) { // Animate in if not showing
++                        if (currentVis != "visible" || currentVis === "") {
++                            this.beforeShowEvent.fire();
++                            nEffectInstances = effectInstances.length;
++
++                            for (j = 0; j < nEffectInstances; j++) {
++                                ei = effectInstances[j];
++                                if (j === 0 && !alreadySubscribed(
++                                        ei.animateInCompleteEvent, 
++                                        this.showEvent.fire, this.showEvent)) {
++
++                                    /*
++                                         Delegate showEvent until end 
++                                         of animateInComplete
++                                    */
++
++                                    ei.animateInCompleteEvent.subscribe(
++                                     this.showEvent.fire, this.showEvent, true);
++                                }
++                                ei.animateIn();
++                            }
++                        }
++                    }
++                } else { // Show
++                    if (currentVis != "visible" || currentVis === "") {
++                        this.beforeShowEvent.fire();
++
++                        this._setDomVisibility(true);
++
++                        this.cfg.refireEvent("iframe");
++                        this.showEvent.fire();
++                    } else {
++                        this._setDomVisibility(true);
++                    }
++                }
++            } else { // Hide
++
++                if (isMacGecko) {
++                    this.hideMacGeckoScrollbars();
++                }
++
++                if (effect) { // Animate out if showing
++                    if (currentVis == "visible") {
++                        this.beforeHideEvent.fire();
++
++                        nEffectInstances = effectInstances.length;
++                        for (k = 0; k < nEffectInstances; k++) {
++                            h = effectInstances[k];
++    
++                            if (k === 0 && !alreadySubscribed(
++                                h.animateOutCompleteEvent, this.hideEvent.fire, 
++                                this.hideEvent)) {
++    
++                                /*
++                                     Delegate hideEvent until end 
++                                     of animateOutComplete
++                                */
++    
++                                h.animateOutCompleteEvent.subscribe(
++                                    this.hideEvent.fire, this.hideEvent, true);
++    
++                            }
++                            h.animateOut();
++                        }
++
++                    } else if (currentVis === "") {
++                        this._setDomVisibility(false);
++                    }
++
++                } else { // Simple hide
++
++                    if (currentVis == "visible" || currentVis === "") {
++                        this.beforeHideEvent.fire();
++                        this._setDomVisibility(false);
++                        this.hideEvent.fire();
++                    } else {
++                        this._setDomVisibility(false);
++                    }
++                }
++            }
++        },
++
++        /**
++        * Fixed center event handler used for centering on scroll/resize, but only if 
++        * the overlay is visible and, if "fixedcenter" is set to "contained", only if 
++        * the overlay fits within the viewport.
++        *
++        * @method doCenterOnDOMEvent
++        */
++        doCenterOnDOMEvent: function () {
++            var cfg = this.cfg,
++                fc = cfg.getProperty("fixedcenter");
++
++            if (cfg.getProperty("visible")) {
++                if (fc && (fc !== _CONTAINED || this.fitsInViewport())) {
++                    this.center();
++                }
++            }
++        },
++
++        /**
++         * Determines if the Overlay (including the offset value defined by Overlay.VIEWPORT_OFFSET) 
++         * will fit entirely inside the viewport, in both dimensions - width and height.
++         * 
++         * @method fitsInViewport
++         * @return boolean true if the Overlay will fit, false if not
++         */
++        fitsInViewport : function() {
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                element = this.element,
++                elementWidth = element.offsetWidth,
++                elementHeight = element.offsetHeight,
++                viewportWidth = Dom.getViewportWidth(),
++                viewportHeight = Dom.getViewportHeight();
++
++            return ((elementWidth + nViewportOffset < viewportWidth) && (elementHeight + nViewportOffset < viewportHeight));
++        },
++
++        /**
++        * The default event handler fired when the "fixedcenter" property 
++        * is changed.
++        * @method configFixedCenter
++        * @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.
++        */
++        configFixedCenter: function (type, args, obj) {
++
++            var val = args[0],
++                alreadySubscribed = Config.alreadySubscribed,
++                windowResizeEvent = Overlay.windowResizeEvent,
++                windowScrollEvent = Overlay.windowScrollEvent;
++
++            if (val) {
++                this.center();
++
++                if (!alreadySubscribed(this.beforeShowEvent, this.center)) {
++                    this.beforeShowEvent.subscribe(this.center);
++                }
++
++                if (!alreadySubscribed(windowResizeEvent, this.doCenterOnDOMEvent, this)) {
++                    windowResizeEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++                if (!alreadySubscribed(windowScrollEvent, this.doCenterOnDOMEvent, this)) {
++                    windowScrollEvent.subscribe(this.doCenterOnDOMEvent, this, true);
++                }
++
++            } else {
++                this.beforeShowEvent.unsubscribe(this.center);
++
++                windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++                windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent, this);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "height" property is changed.
++        * @method configHeight
++        * @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.
++        */
++        configHeight: function (type, args, obj) {
++
++            var height = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "height", height);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++         * The default event handler fired when the "autofillheight" property is changed.
++         * @method configAutoFillHeight
++         *
++         * @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.
++         */
++        configAutoFillHeight: function (type, args, obj) {
++            var fillEl = args[0],
++                cfg = this.cfg,
++                autoFillHeight = "autofillheight",
++                height = "height",
++                currEl = cfg.getProperty(autoFillHeight),
++                autoFill = this._autoFillOnHeightChange;
++
++            cfg.unsubscribeFromConfigEvent(height, autoFill);
++            Module.textResizeEvent.unsubscribe(autoFill);
++            this.changeContentEvent.unsubscribe(autoFill);
++
++            if (currEl && fillEl !== currEl && this[currEl]) {
++                Dom.setStyle(this[currEl], height, "");
++            }
++
++            if (fillEl) {
++                fillEl = Lang.trim(fillEl.toLowerCase());
++
++                cfg.subscribeToConfigEvent(height, autoFill, this[fillEl], this);
++                Module.textResizeEvent.subscribe(autoFill, this[fillEl], this);
++                this.changeContentEvent.subscribe(autoFill, this[fillEl], this);
++
++                cfg.setProperty(autoFillHeight, fillEl, true);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "width" property is changed.
++        * @method configWidth
++        * @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.
++        */
++        configWidth: function (type, args, obj) {
++
++            var width = args[0],
++                el = this.element;
++
++            Dom.setStyle(el, "width", width);
++            this.cfg.refireEvent("iframe");
++        },
++
++        /**
++        * The default event handler fired when the "zIndex" property is changed.
++        * @method configzIndex
++        * @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.
++        */
++        configzIndex: function (type, args, obj) {
++
++            var zIndex = args[0],
++                el = this.element;
++
++            if (! zIndex) {
++                zIndex = Dom.getStyle(el, "zIndex");
++                if (! zIndex || isNaN(zIndex)) {
++                    zIndex = 0;
++                }
++            }
++
++            if (this.iframe || this.cfg.getProperty("iframe") === true) {
++                if (zIndex <= 0) {
++                    zIndex = 1;
++                }
++            }
++
++            Dom.setStyle(el, "zIndex", zIndex);
++            this.cfg.setProperty("zIndex", zIndex, true);
++
++            if (this.iframe) {
++                this.stackIframe();
++            }
++        },
++
++        /**
++        * The default event handler fired when the "xy" property is changed.
++        * @method configXY
++        * @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.
++        */
++        configXY: function (type, args, obj) {
++
++            var pos = args[0],
++                x = pos[0],
++                y = pos[1];
++
++            this.cfg.setProperty("x", x);
++            this.cfg.setProperty("y", y);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "x" property is changed.
++        * @method configX
++        * @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.
++        */
++        configX: function (type, args, obj) {
++
++            var x = args[0],
++                y = this.cfg.getProperty("y");
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setX(this.element, x, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++
++        /**
++        * The default event handler fired when the "y" property is changed.
++        * @method configY
++        * @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.
++        */
++        configY: function (type, args, obj) {
++
++            var x = this.cfg.getProperty("x"),
++                y = args[0];
++
++            this.cfg.setProperty("x", x, true);
++            this.cfg.setProperty("y", y, true);
++
++            this.beforeMoveEvent.fire([x, y]);
++
++            x = this.cfg.getProperty("x");
++            y = this.cfg.getProperty("y");
++
++            Dom.setY(this.element, y, true);
++
++            this.cfg.setProperty("xy", [x, y], true);
++
++            this.cfg.refireEvent("iframe");
++            this.moveEvent.fire([x, y]);
++        },
++        
++        /**
++        * Shows the iframe shim, if it has been enabled.
++        * @method showIframe
++        */
++        showIframe: function () {
++
++            var oIFrame = this.iframe,
++                oParentNode;
++
++            if (oIFrame) {
++                oParentNode = this.element.parentNode;
++
++                if (oParentNode != oIFrame.parentNode) {
++                    this._addToParent(oParentNode, oIFrame);
++                }
++                oIFrame.style.display = "block";
++            }
++        },
++
++        /**
++        * Hides the iframe shim, if it has been enabled.
++        * @method hideIframe
++        */
++        hideIframe: function () {
++            if (this.iframe) {
++                this.iframe.style.display = "none";
++            }
++        },
++
++        /**
++        * Syncronizes the size and position of iframe shim to that of its 
++        * corresponding Overlay instance.
++        * @method syncIframe
++        */
++        syncIframe: function () {
++
++            var oIFrame = this.iframe,
++                oElement = this.element,
++                nOffset = Overlay.IFRAME_OFFSET,
++                nDimensionOffset = (nOffset * 2),
++                aXY;
++
++            if (oIFrame) {
++                // Size <iframe>
++                oIFrame.style.width = (oElement.offsetWidth + nDimensionOffset + "px");
++                oIFrame.style.height = (oElement.offsetHeight + nDimensionOffset + "px");
++
++                // Position <iframe>
++                aXY = this.cfg.getProperty("xy");
++
++                if (!Lang.isArray(aXY) || (isNaN(aXY[0]) || isNaN(aXY[1]))) {
++                    this.syncPosition();
++                    aXY = this.cfg.getProperty("xy");
++                }
++                Dom.setXY(oIFrame, [(aXY[0] - nOffset), (aXY[1] - nOffset)]);
++            }
++        },
++
++        /**
++         * Sets the zindex of the iframe shim, if it exists, based on the zindex of
++         * the Overlay element. The zindex of the iframe is set to be one less 
++         * than the Overlay element's zindex.
++         * 
++         * <p>NOTE: This method will not bump up the zindex of the Overlay element
++         * to ensure that the iframe shim has a non-negative zindex.
++         * If you require the iframe zindex to be 0 or higher, the zindex of 
++         * the Overlay element should be set to a value greater than 0, before 
++         * this method is called.
++         * </p>
++         * @method stackIframe
++         */
++        stackIframe: function () {
++            if (this.iframe) {
++                var overlayZ = Dom.getStyle(this.element, "zIndex");
++                if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
++                    Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
++                }
++            }
++        },
++
++        /**
++        * The default event handler fired when the "iframe" property is changed.
++        * @method configIframe
++        * @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.
++        */
++        configIframe: function (type, args, obj) {
++
++            var bIFrame = args[0];
++
++            function createIFrame() {
++
++                var oIFrame = this.iframe,
++                    oElement = this.element,
++                    oParent;
++
++                if (!oIFrame) {
++                    if (!m_oIFrameTemplate) {
++                        m_oIFrameTemplate = document.createElement("iframe");
++
++                        if (this.isSecure) {
++                            m_oIFrameTemplate.src = Overlay.IFRAME_SRC;
++                        }
++
++                        /*
++                            Set the opacity of the <iframe> to 0 so that it 
++                            doesn't modify the opacity of any transparent 
++                            elements that may be on top of it (like a shadow).
++                        */
++                        if (UA.ie) {
++                            m_oIFrameTemplate.style.filter = "alpha(opacity=0)";
++                            /*
++                                 Need to set the "frameBorder" property to 0 
++                                 supress the default <iframe> border in IE.  
++                                 Setting the CSS "border" property alone 
++                                 doesn't supress it.
++                            */
++                            m_oIFrameTemplate.frameBorder = 0;
++                        }
++                        else {
++                            m_oIFrameTemplate.style.opacity = "0";
++                        }
++
++                        m_oIFrameTemplate.style.position = "absolute";
++                        m_oIFrameTemplate.style.border = "none";
++                        m_oIFrameTemplate.style.margin = "0";
++                        m_oIFrameTemplate.style.padding = "0";
++                        m_oIFrameTemplate.style.display = "none";
++                        m_oIFrameTemplate.tabIndex = -1;
++                        m_oIFrameTemplate.className = Overlay.CSS_IFRAME;
++                    }
++
++                    oIFrame = m_oIFrameTemplate.cloneNode(false);
++                    oIFrame.id = this.id + "_f";
++                    oParent = oElement.parentNode;
++
++                    var parentNode = oParent || document.body;
++
++                    this._addToParent(parentNode, oIFrame);
++                    this.iframe = oIFrame;
++                }
++
++                /*
++                     Show the <iframe> before positioning it since the "setXY" 
++                     method of DOM requires the element be in the document 
++                     and visible.
++                */
++                this.showIframe();
++
++                /*
++                     Syncronize the size and position of the <iframe> to that 
++                     of the Overlay.
++                */
++                this.syncIframe();
++                this.stackIframe();
++
++                // Add event listeners to update the <iframe> when necessary
++                if (!this._hasIframeEventListeners) {
++                    this.showEvent.subscribe(this.showIframe);
++                    this.hideEvent.subscribe(this.hideIframe);
++                    this.changeContentEvent.subscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = true;
++                }
++            }
++
++            function onBeforeShow() {
++                createIFrame.call(this);
++                this.beforeShowEvent.unsubscribe(onBeforeShow);
++                this._iframeDeferred = false;
++            }
++
++            if (bIFrame) { // <iframe> shim is enabled
++
++                if (this.cfg.getProperty("visible")) {
++                    createIFrame.call(this);
++                } else {
++                    if (!this._iframeDeferred) {
++                        this.beforeShowEvent.subscribe(onBeforeShow);
++                        this._iframeDeferred = true;
++                    }
++                }
++
++            } else {    // <iframe> shim is disabled
++                this.hideIframe();
++
++                if (this._hasIframeEventListeners) {
++                    this.showEvent.unsubscribe(this.showIframe);
++                    this.hideEvent.unsubscribe(this.hideIframe);
++                    this.changeContentEvent.unsubscribe(this.syncIframe);
++
++                    this._hasIframeEventListeners = false;
++                }
++            }
++        },
++
++        /**
++         * Set's the container's XY value from DOM if not already set.
++         * 
++         * Differs from syncPosition, in that the XY value is only sync'd with DOM if 
++         * not already set. The method also refire's the XY config property event, so any
++         * beforeMove, Move event listeners are invoked.
++         * 
++         * @method _primeXYFromDOM
++         * @protected
++         */
++        _primeXYFromDOM : function() {
++            if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
++                // Set CFG XY based on DOM XY
++                this.syncPosition();
++                // Account for XY being set silently in syncPosition (no moveTo fired/called)
++                this.cfg.refireEvent("xy");
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++            }
++        },
++
++        /**
++        * The default event handler fired when the "constraintoviewport" 
++        * property is changed.
++        * @method configConstrainToViewport
++        * @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.
++        */
++        configConstrainToViewport: function (type, args, obj) {
++            var val = args[0];
++
++            if (val) {
++                if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
++                    this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
++                }
++                if (! Config.alreadySubscribed(this.beforeShowEvent, this._primeXYFromDOM)) {
++                    this.beforeShowEvent.subscribe(this._primeXYFromDOM);
++                }
++            } else {
++                this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);
++                this.beforeMoveEvent.unsubscribe(this.enforceConstraints, this);
++            }
++        },
++
++         /**
++        * The default event handler fired when the "context" property
++        * is changed.
++        *
++        * @method configContext
++        * @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.
++        */
++        configContext: function (type, args, obj) {
++
++            var contextArgs = args[0],
++                contextEl,
++                elementMagnetCorner,
++                contextMagnetCorner,
++                triggers,
++                offset,
++                defTriggers = this.CONTEXT_TRIGGERS;
++
++            if (contextArgs) {
++
++                contextEl = contextArgs[0];
++                elementMagnetCorner = contextArgs[1];
++                contextMagnetCorner = contextArgs[2];
++                triggers = contextArgs[3];
++                offset = contextArgs[4];
++
++                if (defTriggers && defTriggers.length > 0) {
++                    triggers = (triggers || []).concat(defTriggers);
++                }
++
++                if (contextEl) {
++                    if (typeof contextEl == "string") {
++                        this.cfg.setProperty("context", [
++                                document.getElementById(contextEl), 
++                                elementMagnetCorner,
++                                contextMagnetCorner,
++                                triggers,
++                                offset],
++                                true);
++                    }
++
++                    if (elementMagnetCorner && contextMagnetCorner) {
++                        this.align(elementMagnetCorner, contextMagnetCorner, offset);
++                    }
++
++                    if (this._contextTriggers) {
++                        // Unsubscribe Old Set
++                        this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++                    }
++
++                    if (triggers) {
++                        // Subscribe New Set
++                        this._processTriggers(triggers, _SUBSCRIBE, this._alignOnTrigger);
++                        this._contextTriggers = triggers;
++                    }
++                }
++            }
++        },
++
++        /**
++         * Custom Event handler for context alignment triggers. Invokes the align method
++         * 
++         * @method _alignOnTrigger
++         * @protected
++         * 
++         * @param {String} type The event type (not used by the default implementation)
++         * @param {Any[]} args The array of arguments for the trigger event (not used by the default implementation)
++         */
++        _alignOnTrigger: function(type, args) {
++            this.align();
++        },
++
++        /**
++         * Helper method to locate the custom event instance for the event name string
++         * passed in. As a convenience measure, any custom events passed in are returned.
++         *
++         * @method _findTriggerCE
++         * @private
++         *
++         * @param {String|CustomEvent} t Either a CustomEvent, or event type (e.g. "windowScroll") for which a 
++         * custom event instance needs to be looked up from the Overlay._TRIGGER_MAP.
++         */
++        _findTriggerCE : function(t) {
++            var tce = null;
++            if (t instanceof CustomEvent) {
++                tce = t;
++            } else if (Overlay._TRIGGER_MAP[t]) {
++                tce = Overlay._TRIGGER_MAP[t];
++            }
++            return tce;
++        },
++
++        /**
++         * Utility method that subscribes or unsubscribes the given 
++         * function from the list of trigger events provided.
++         *
++         * @method _processTriggers
++         * @protected 
++         *
++         * @param {Array[String|CustomEvent]} triggers An array of either CustomEvents, event type strings 
++         * (e.g. "beforeShow", "windowScroll") to/from which the provided function should be 
++         * subscribed/unsubscribed respectively.
++         *
++         * @param {String} mode Either "subscribe" or "unsubscribe", specifying whether or not
++         * we are subscribing or unsubscribing trigger listeners
++         * 
++         * @param {Function} fn The function to be subscribed/unsubscribed to/from the trigger event.
++         * Context is always set to the overlay instance, and no additional object argument 
++         * get passed to the subscribed function.
++         */
++        _processTriggers : function(triggers, mode, fn) {
++            var t, tce;
++
++            for (var i = 0, l = triggers.length; i < l; ++i) {
++                t = triggers[i];
++                tce = this._findTriggerCE(t);
++                if (tce) {
++                    tce[mode](fn, this, true);
++                } else {
++                    this[mode](t, fn);
++                }
++            }
++        },
++
++        // END BUILT-IN PROPERTY EVENT HANDLERS //
++        /**
++        * Aligns the Overlay to its context element using the specified corner 
++        * points (represented by the constants TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, 
++        * and BOTTOM_RIGHT.
++        * @method align
++        * @param {String} elementAlign  The String representing the corner of 
++        * the Overlay that should be aligned to the context element
++        * @param {String} contextAlign  The corner of the context element 
++        * that the elementAlign corner should stick to.
++        * @param {Number[]} xyOffset Optional. A 2 element array specifying the x and y pixel offsets which should be applied
++        * after aligning the element and context corners. For example, passing in [5, -10] for this value, would offset the 
++        * Overlay by 5 pixels along the X axis (horizontally) and -10 pixels along the Y axis (vertically) after aligning the specified corners.
++        */
++        align: function (elementAlign, contextAlign, xyOffset) {
++
++            var contextArgs = this.cfg.getProperty("context"),
++                me = this,
++                context,
++                element,
++                contextRegion;
++
++            function doAlign(v, h) {
++
++                var alignX = null, alignY = null;
++
++                switch (elementAlign) {
++    
++                    case Overlay.TOP_LEFT:
++                        alignX = h;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.TOP_RIGHT:
++                        alignX = h - element.offsetWidth;
++                        alignY = v;
++                        break;
++        
++                    case Overlay.BOTTOM_LEFT:
++                        alignX = h;
++                        alignY = v - element.offsetHeight;
++                        break;
++        
++                    case Overlay.BOTTOM_RIGHT:
++                        alignX = h - element.offsetWidth; 
++                        alignY = v - element.offsetHeight;
++                        break;
++                }
++
++                if (alignX !== null && alignY !== null) {
++                    if (xyOffset) {
++                        alignX += xyOffset[0];
++                        alignY += xyOffset[1];
++                    }
++                    me.moveTo(alignX, alignY);
++                }
++            }
++
++            if (contextArgs) {
++                context = contextArgs[0];
++                element = this.element;
++                me = this;
++
++                if (! elementAlign) {
++                    elementAlign = contextArgs[1];
++                }
++
++                if (! contextAlign) {
++                    contextAlign = contextArgs[2];
++                }
++
++                if (!xyOffset && contextArgs[4]) {
++                    xyOffset = contextArgs[4];
++                }
++
++                if (element && context) {
++                    contextRegion = Dom.getRegion(context);
++
++                    switch (contextAlign) {
++    
++                        case Overlay.TOP_LEFT:
++                            doAlign(contextRegion.top, contextRegion.left);
++                            break;
++        
++                        case Overlay.TOP_RIGHT:
++                            doAlign(contextRegion.top, contextRegion.right);
++                            break;
++        
++                        case Overlay.BOTTOM_LEFT:
++                            doAlign(contextRegion.bottom, contextRegion.left);
++                            break;
++        
++                        case Overlay.BOTTOM_RIGHT:
++                            doAlign(contextRegion.bottom, contextRegion.right);
++                            break;
++                    }
++                }
++            }
++        },
++
++        /**
++        * The default event handler executed when the moveEvent is fired, if the 
++        * "constraintoviewport" is set to true.
++        * @method enforceConstraints
++        * @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.
++        */
++        enforceConstraints: function (type, args, obj) {
++            var pos = args[0];
++
++            var cXY = this.getConstrainedXY(pos[0], pos[1]);
++            this.cfg.setProperty("x", cXY[0], true);
++            this.cfg.setProperty("y", cXY[1], true);
++            this.cfg.setProperty("xy", cXY, true);
++        },
++
++        /**
++         * Shared implementation method for getConstrainedX and getConstrainedY.
++         * 
++         * <p>
++         * Given a coordinate value, returns the calculated coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions, scroll values and preventoverlap 
++         * settings
++         * </p>
++         *
++         * @method _getConstrainedPos
++         * @protected
++         * @param {String} pos The coordinate which needs to be constrained, either "x" or "y"
++         * @param {Number} The coordinate value which needs to be constrained
++         * @return {Number} The constrained coordinate value
++         */
++        _getConstrainedPos: function(pos, val) {
++
++            var overlayEl = this.element,
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                x = (pos == "x"),
++
++                overlaySize      = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
++                viewportSize     = (x) ? Dom.getViewportWidth() : Dom.getViewportHeight(),
++                docScroll        = (x) ? Dom.getDocumentScrollLeft() : Dom.getDocumentScrollTop(),
++                overlapPositions = (x) ? Overlay.PREVENT_OVERLAP_X : Overlay.PREVENT_OVERLAP_Y,
++
++                context = this.cfg.getProperty("context"),
++
++                bOverlayFitsInViewport = (overlaySize + buffer < viewportSize),
++                bPreventContextOverlap = this.cfg.getProperty("preventcontextoverlap") && context && overlapPositions[(context[1] + context[2])],
++
++                minConstraint = docScroll + buffer,
++                maxConstraint = docScroll + viewportSize - overlaySize - buffer,
++
++                constrainedVal = val;
++
++            if (val < minConstraint || val > maxConstraint) {
++                if (bPreventContextOverlap) {
++                    constrainedVal = this._preventOverlap(pos, context[0], overlaySize, viewportSize, docScroll);
++                } else {
++                    if (bOverlayFitsInViewport) {
++                        if (val < minConstraint) {
++                            constrainedVal = minConstraint;
++                        } else if (val > maxConstraint) {
++                            constrainedVal = maxConstraint;
++                        }
++                    } else {
++                        constrainedVal = minConstraint;
++                    }
++                }
++            }
++
++            return constrainedVal;
++        },
++
++        /**
++         * Helper method, used to position the Overlap to prevent overlap with the 
++         * context element (used when preventcontextoverlap is enabled)
++         *
++         * @method _preventOverlap
++         * @protected
++         * @param {String} pos The coordinate to prevent overlap for, either "x" or "y".
++         * @param {HTMLElement} contextEl The context element
++         * @param {Number} overlaySize The related overlay dimension value (for "x", the width, for "y", the height)
++         * @param {Number} viewportSize The related viewport dimension value (for "x", the width, for "y", the height)
++         * @param {Object} docScroll  The related document scroll value (for "x", the scrollLeft, for "y", the scrollTop)
++         *
++         * @return {Number} The new coordinate value which was set to prevent overlap
++         */
++        _preventOverlap : function(pos, contextEl, overlaySize, viewportSize, docScroll) {
++            
++            var x = (pos == "x"),
++
++                buffer = Overlay.VIEWPORT_OFFSET,
++
++                overlay = this,
++
++                contextElPos   = ((x) ? Dom.getX(contextEl) : Dom.getY(contextEl)) - docScroll,
++                contextElSize  = (x) ? contextEl.offsetWidth : contextEl.offsetHeight,
++
++                minRegionSize = contextElPos - buffer,
++                maxRegionSize = (viewportSize - (contextElPos + contextElSize)) - buffer,
++
++                bFlipped = false,
++
++                flip = function () {
++                    var flippedVal;
++
++                    if ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) {
++                        flippedVal = (contextElPos - overlaySize);
++                    } else {
++                        flippedVal = (contextElPos + contextElSize);
++                    }
++
++                    overlay.cfg.setProperty(pos, (flippedVal + docScroll), true);
++
++                    return flippedVal;
++                },
++
++                setPosition = function () {
++
++                    var displayRegionSize = ((overlay.cfg.getProperty(pos) - docScroll) > contextElPos) ? maxRegionSize : minRegionSize,
++                        position;
++
++                    if (overlaySize > displayRegionSize) {
++                        if (bFlipped) {
++                            /*
++                                 All possible positions and values have been 
++                                 tried, but none were successful, so fall back 
++                                 to the original size and position.
++                            */
++                            flip();
++                        } else {
++                            flip();
++                            bFlipped = true;
++                            position = setPosition();
++                        }
++                    }
++
++                    return position;
++                };
++
++            setPosition();
++
++            return this.cfg.getProperty(pos);
++        },
++
++        /**
++         * Given x coordinate value, returns the calculated x coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @return {Number} The constrained x coordinate
++         */		
++        getConstrainedX: function (x) {
++            return this._getConstrainedPos("x", x);
++        },
++
++        /**
++         * Given y coordinate value, returns the calculated y coordinate required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Number} The constrained y coordinate
++         */		
++        getConstrainedY : function (y) {
++            return this._getConstrainedPos("y", y);
++        },
++
++        /**
++         * Given x, y coordinate values, returns the calculated coordinates required to 
++         * position the Overlay if it is to be constrained to the viewport, based on the 
++         * current element size, viewport dimensions and scroll values.
++         *
++         * @param {Number} x The X coordinate value to be constrained
++         * @param {Number} y The Y coordinate value to be constrained
++         * @return {Array} The constrained x and y coordinates at index 0 and 1 respectively;
++         */
++        getConstrainedXY: function(x, y) {
++            return [this.getConstrainedX(x), this.getConstrainedY(y)];
++        },
++
++        /**
++        * Centers the container in the viewport.
++        * @method center
++        */
++        center: function () {
++
++            var nViewportOffset = Overlay.VIEWPORT_OFFSET,
++                elementWidth = this.element.offsetWidth,
++                elementHeight = this.element.offsetHeight,
++                viewPortWidth = Dom.getViewportWidth(),
++                viewPortHeight = Dom.getViewportHeight(),
++                x,
++                y;
++
++            if (elementWidth < viewPortWidth) {
++                x = (viewPortWidth / 2) - (elementWidth / 2) + Dom.getDocumentScrollLeft();
++            } else {
++                x = nViewportOffset + Dom.getDocumentScrollLeft();
++            }
++
++            if (elementHeight < viewPortHeight) {
++                y = (viewPortHeight / 2) - (elementHeight / 2) + Dom.getDocumentScrollTop();
++            } else {
++                y = nViewportOffset + Dom.getDocumentScrollTop();
++            }
++
++            this.cfg.setProperty("xy", [parseInt(x, 10), parseInt(y, 10)]);
++            this.cfg.refireEvent("iframe");
++
++            if (UA.webkit) {
++                this.forceContainerRedraw();
++            }
++        },
++
++        /**
++        * Synchronizes the Panel's "xy", "x", and "y" properties with the 
++        * Panel's position in the DOM. This is primarily used to update  
++        * position information during drag & drop.
++        * @method syncPosition
++        */
++        syncPosition: function () {
++
++            var pos = Dom.getXY(this.element);
++
++            this.cfg.setProperty("x", pos[0], true);
++            this.cfg.setProperty("y", pos[1], true);
++            this.cfg.setProperty("xy", pos, true);
++
++        },
++
++        /**
++        * Event handler fired when the resize monitor element is resized.
++        * @method onDomResize
++        * @param {DOMEvent} e The resize DOM event
++        * @param {Object} obj The scope object
++        */
++        onDomResize: function (e, obj) {
++
++            var me = this;
++
++            Overlay.superclass.onDomResize.call(this, e, obj);
++
++            setTimeout(function () {
++                me.syncPosition();
++                me.cfg.refireEvent("iframe");
++                me.cfg.refireEvent("context");
++            }, 0);
++        },
++
++        /**
++         * Determines the content box height of the given element (height of the element, without padding or borders) in pixels.
++         *
++         * @method _getComputedHeight
++         * @private
++         * @param {HTMLElement} el The element for which the content height needs to be determined
++         * @return {Number} The content box height of the given element, or null if it could not be determined.
++         */
++        _getComputedHeight : (function() {
++
++            if (document.defaultView && document.defaultView.getComputedStyle) {
++                return function(el) {
++                    var height = null;
++                    if (el.ownerDocument && el.ownerDocument.defaultView) {
++                        var computed = el.ownerDocument.defaultView.getComputedStyle(el, '');
++                        if (computed) {
++                            height = parseInt(computed.height, 10);
++                        }
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            } else {
++                return function(el) {
++                    var height = null;
++                    if (el.style.pixelHeight) {
++                        height = el.style.pixelHeight;
++                    }
++                    return (Lang.isNumber(height)) ? height : null;
++                };
++            }
++        })(),
++
++        /**
++         * autofillheight validator. Verifies that the autofill value is either null 
++         * or one of the strings : "body", "header" or "footer".
++         *
++         * @method _validateAutoFillHeight
++         * @protected
++         * @param {String} val
++         * @return true, if valid, false otherwise
++         */
++        _validateAutoFillHeight : function(val) {
++            return (!val) || (Lang.isString(val) && Overlay.STD_MOD_RE.test(val));
++        },
++
++        /**
++         * The default custom event handler executed when the overlay's height is changed, 
++         * if the autofillheight property has been set.
++         *
++         * @method _autoFillOnHeightChange
++         * @protected
++         * @param {String} type The event type
++         * @param {Array} args The array of arguments passed to event subscribers
++         * @param {HTMLElement} el The header, body or footer element which is to be resized to fill
++         * out the containers height
++         */
++        _autoFillOnHeightChange : function(type, args, el) {
++            var height = this.cfg.getProperty("height");
++            if ((height && height !== "auto") || (height === 0)) {
++                this.fillHeight(el);
++            }
++        },
++
++        /**
++         * Returns the sub-pixel height of the el, using getBoundingClientRect, if available,
++         * otherwise returns the offsetHeight
++         * @method _getPreciseHeight
++         * @private
++         * @param {HTMLElement} el
++         * @return {Float} The sub-pixel height if supported by the browser, else the rounded height.
++         */
++        _getPreciseHeight : function(el) {
++            var height = el.offsetHeight;
++
++            if (el.getBoundingClientRect) {
++                var rect = el.getBoundingClientRect();
++                height = rect.bottom - rect.top;
++            }
++
++            return height;
++        },
++
++        /**
++         * <p>
++         * Sets the height on the provided header, body or footer element to 
++         * fill out the height of the container. It determines the height of the 
++         * containers content box, based on it's configured height value, and 
++         * sets the height of the autofillheight element to fill out any 
++         * space remaining after the other standard module element heights 
++         * have been accounted for.
++         * </p>
++         * <p><strong>NOTE:</strong> This method is not designed to work if an explicit 
++         * height has not been set on the container, since for an "auto" height container, 
++         * the heights of the header/body/footer will drive the height of the container.</p>
++         *
++         * @method fillHeight
++         * @param {HTMLElement} el The element which should be resized to fill out the height
++         * of the container element.
++         */
++        fillHeight : function(el) {
++            if (el) {
++                var container = this.innerElement || this.element,
++                    containerEls = [this.header, this.body, this.footer],
++                    containerEl,
++                    total = 0,
++                    filled = 0,
++                    remaining = 0,
++                    validEl = false;
++
++                for (var i = 0, l = containerEls.length; i < l; i++) {
++                    containerEl = containerEls[i];
++                    if (containerEl) {
++                        if (el !== containerEl) {
++                            filled += this._getPreciseHeight(containerEl);
++                        } else {
++                            validEl = true;
++                        }
++                    }
++                }
++
++                if (validEl) {
++
++                    if (UA.ie || UA.opera) {
++                        // Need to set height to 0, to allow height to be reduced
++                        Dom.setStyle(el, 'height', 0 + 'px');
++                    }
++
++                    total = this._getComputedHeight(container);
++
++                    // Fallback, if we can't get computed value for content height
++                    if (total === null) {
++                        Dom.addClass(container, "yui-override-padding");
++                        total = container.clientHeight; // Content, No Border, 0 Padding (set by yui-override-padding)
++                        Dom.removeClass(container, "yui-override-padding");
++                    }
++    
++                    remaining = Math.max(total - filled, 0);
++    
++                    Dom.setStyle(el, "height", remaining + "px");
++    
++                    // Re-adjust height if required, to account for el padding and border
++                    if (el.offsetHeight != remaining) {
++                        remaining = Math.max(remaining - (el.offsetHeight - remaining), 0);
++                    }
++                    Dom.setStyle(el, "height", remaining + "px");
++                }
++            }
++        },
++
++        /**
++        * Places the Overlay on top of all other instances of 
++        * YAHOO.widget.Overlay.
++        * @method bringToTop
++        */
++        bringToTop: function () {
++
++            var aOverlays = [],
++                oElement = this.element;
++
++            function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
++
++                var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
++                    sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
++
++                    nZIndex1 = (!sZIndex1 || isNaN(sZIndex1)) ? 0 : parseInt(sZIndex1, 10),
++                    nZIndex2 = (!sZIndex2 || isNaN(sZIndex2)) ? 0 : parseInt(sZIndex2, 10);
++
++                if (nZIndex1 > nZIndex2) {
++                    return -1;
++                } else if (nZIndex1 < nZIndex2) {
++                    return 1;
++                } else {
++                    return 0;
++                }
++            }
++
++            function isOverlayElement(p_oElement) {
++
++                var isOverlay = Dom.hasClass(p_oElement, Overlay.CSS_OVERLAY),
++                    Panel = YAHOO.widget.Panel;
++
++                if (isOverlay && !Dom.isAncestor(oElement, p_oElement)) {
++                    if (Panel && Dom.hasClass(p_oElement, Panel.CSS_PANEL)) {
++                        aOverlays[aOverlays.length] = p_oElement.parentNode;
++                    } else {
++                        aOverlays[aOverlays.length] = p_oElement;
++                    }
++                }
++            }
++
++            Dom.getElementsBy(isOverlayElement, "DIV", document.body);
++
++            aOverlays.sort(compareZIndexDesc);
++
++            var oTopOverlay = aOverlays[0],
++                nTopZIndex;
++
++            if (oTopOverlay) {
++                nTopZIndex = Dom.getStyle(oTopOverlay, "zIndex");
++
++                if (!isNaN(nTopZIndex)) {
++                    var bRequiresBump = false;
++
++                    if (oTopOverlay != oElement) {
++                        bRequiresBump = true;
++                    } else if (aOverlays.length > 1) {
++                        var nNextZIndex = Dom.getStyle(aOverlays[1], "zIndex");
++                        // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                        if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                            bRequiresBump = true;
++                        }
++                    }
++                    if (bRequiresBump) {
++                        this.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                    }
++                }
++            }
++        },
++
++        /**
++        * Removes the Overlay element from the DOM and sets all child 
++        * elements to null.
++        * @method destroy
++        */
++        destroy: function () {
++
++            if (this.iframe) {
++                this.iframe.parentNode.removeChild(this.iframe);
++            }
++
++            this.iframe = null;
++
++            Overlay.windowResizeEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++    
++            Overlay.windowScrollEvent.unsubscribe(
++                this.doCenterOnDOMEvent, this);
++
++            Module.textResizeEvent.unsubscribe(this._autoFillOnHeightChange);
++
++            if (this._contextTriggers) {
++                // Unsubscribe context triggers - to cover context triggers which listen for global
++                // events such as windowResize and windowScroll. Easier just to unsubscribe all
++                this._processTriggers(this._contextTriggers, _UNSUBSCRIBE, this._alignOnTrigger);
++            }
++
++            Overlay.superclass.destroy.call(this);
++        },
++
++        /**
++         * Can be used to force the container to repaint/redraw it's contents.
++         * <p>
++         * By default applies and then removes a 1px bottom margin through the 
++         * application/removal of a "yui-force-redraw" class.
++         * </p>
++         * <p>
++         * It is currently used by Overlay to force a repaint for webkit 
++         * browsers, when centering.
++         * </p>
++         * @method forceContainerRedraw
++         */
++        forceContainerRedraw : function() {
++            var c = this;
++            Dom.addClass(c.element, "yui-force-redraw");
++            setTimeout(function() {
++                Dom.removeClass(c.element, "yui-force-redraw");
++            }, 0);
++        },
++
++        /**
++        * Returns a String representation of the object.
++        * @method toString
++        * @return {String} The string representation of the Overlay.
++        */
++        toString: function () {
++            return "Overlay " + this.id;
++        }
++
++    });
++}());
++(function () {
++
++    /**
++    * OverlayManager is used for maintaining the focus status of 
++    * multiple Overlays.
++    * @namespace YAHOO.widget
++    * @namespace YAHOO.widget
++    * @class OverlayManager
++    * @constructor
++    * @param {Array} overlays Optional. A collection of Overlays to register 
++    * with the manager.
++    * @param {Object} userConfig  The object literal representing the user 
++    * configuration of the OverlayManager
++    */
++    YAHOO.widget.OverlayManager = function (userConfig) {
++        this.init(userConfig);
++    };
++
++    var Overlay = YAHOO.widget.Overlay,
++        Event = YAHOO.util.Event,
++        Dom = YAHOO.util.Dom,
++        Config = YAHOO.util.Config,
++        CustomEvent = YAHOO.util.CustomEvent,
++        OverlayManager = YAHOO.widget.OverlayManager;
++
++    /**
++    * The CSS class representing a focused Overlay
++    * @property OverlayManager.CSS_FOCUSED
++    * @static
++    * @final
++    * @type String
++    */
++    OverlayManager.CSS_FOCUSED = "focused";
++
++    OverlayManager.prototype = {
++
++        /**
++        * The class's constructor function
++        * @property contructor
++        * @type Function
++        */
++        constructor: OverlayManager,
++
++        /**
++        * The array of Overlays that are currently registered
++        * @property overlays
++        * @type YAHOO.widget.Overlay[]
++        */
++        overlays: null,
++
++        /**
++        * Initializes the default configuration of the OverlayManager
++        * @method initDefaultConfig
++        */
++        initDefaultConfig: function () {
++            /**
++            * The collection of registered Overlays in use by 
++            * the OverlayManager
++            * @config overlays
++            * @type YAHOO.widget.Overlay[]
++            * @default null
++            */
++            this.cfg.addProperty("overlays", { suppressEvent: true } );
++
++            /**
++            * The default DOM event that should be used to focus an Overlay
++            * @config focusevent
++            * @type String
++            * @default "mousedown"
++            */
++            this.cfg.addProperty("focusevent", { value: "mousedown" } );
++        },
++
++        /**
++        * Initializes the OverlayManager
++        * @method init
++        * @param {Overlay[]} overlays Optional. A collection of Overlays to 
++        * register with the manager.
++        * @param {Object} userConfig  The object literal representing the user 
++        * configuration of the OverlayManager
++        */
++        init: function (userConfig) {
++
++            /**
++            * The OverlayManager's Config object used for monitoring 
++            * configuration properties.
++            * @property cfg
++            * @type Config
++            */
++            this.cfg = new Config(this);
++
++            this.initDefaultConfig();
++
++            if (userConfig) {
++                this.cfg.applyConfig(userConfig, true);
++            }
++            this.cfg.fireQueue();
++
++            /**
++            * The currently activated Overlay
++            * @property activeOverlay
++            * @private
++            * @type YAHOO.widget.Overlay
++            */
++            var activeOverlay = null;
++
++            /**
++            * Returns the currently focused Overlay
++            * @method getActive
++            * @return {Overlay} The currently focused Overlay
++            */
++            this.getActive = function () {
++                return activeOverlay;
++            };
++
++            /**
++            * Focuses the specified Overlay
++            * @method focus
++            * @param {Overlay} overlay The Overlay to focus
++            * @param {String} overlay The id of the Overlay to focus
++            */
++            this.focus = function (overlay) {
++                var o = this.find(overlay);
++                if (o) {
++                    o.focus();
++                }
++            };
++
++            /**
++            * Removes the specified Overlay from the manager
++            * @method remove
++            * @param {Overlay} overlay The Overlay to remove
++            * @param {String} overlay The id of the Overlay to remove
++            */
++            this.remove = function (overlay) {
++
++                var o = this.find(overlay), 
++                        originalZ;
++
++                if (o) {
++                    if (activeOverlay == o) {
++                        activeOverlay = null;
++                    }
++
++                    var bDestroyed = (o.element === null && o.cfg === null) ? true : false;
++
++                    if (!bDestroyed) {
++                        // Set it's zindex so that it's sorted to the end.
++                        originalZ = Dom.getStyle(o.element, "zIndex");
++                        o.cfg.setProperty("zIndex", -1000, true);
++                    }
++
++                    this.overlays.sort(this.compareZIndexDesc);
++                    this.overlays = this.overlays.slice(0, (this.overlays.length - 1));
++
++                    o.hideEvent.unsubscribe(o.blur);
++                    o.destroyEvent.unsubscribe(this._onOverlayDestroy, o);
++                    o.focusEvent.unsubscribe(this._onOverlayFocusHandler, o);
++                    o.blurEvent.unsubscribe(this._onOverlayBlurHandler, o);
++
++                    if (!bDestroyed) {
++                        Event.removeListener(o.element, this.cfg.getProperty("focusevent"), this._onOverlayElementFocus);
++                        o.cfg.setProperty("zIndex", originalZ, true);
++                        o.cfg.setProperty("manager", null);
++                    }
++
++                    /* _managed Flag for custom or existing. Don't want to remove existing */
++                    if (o.focusEvent._managed) { o.focusEvent = null; }
++                    if (o.blurEvent._managed) { o.blurEvent = null; }
++
++                    if (o.focus._managed) { o.focus = null; }
++                    if (o.blur._managed) { o.blur = null; }
++                }
++            };
++
++            /**
++            * Removes focus from all registered Overlays in the manager
++            * @method blurAll
++            */
++            this.blurAll = function () {
++
++                var nOverlays = this.overlays.length,
++                    i;
++
++                if (nOverlays > 0) {
++                    i = nOverlays - 1;
++                    do {
++                        this.overlays[i].blur();
++                    }
++                    while(i--);
++                }
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay
++             * being blurred.
++             * 
++             * @method _manageBlur
++             * @param {Overlay} overlay The overlay instance which got blurred.
++             * @protected
++             */
++            this._manageBlur = function (overlay) {
++                var changed = false;
++                if (activeOverlay == overlay) {
++                    Dom.removeClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    activeOverlay = null;
++                    changed = true;
++                }
++                return changed;
++            };
++
++            /**
++             * Updates the state of the OverlayManager and overlay, as a result of the overlay 
++             * receiving focus.
++             *
++             * @method _manageFocus
++             * @param {Overlay} overlay The overlay instance which got focus.
++             * @protected
++             */
++            this._manageFocus = function(overlay) {
++                var changed = false;
++                if (activeOverlay != overlay) {
++                    if (activeOverlay) {
++                        activeOverlay.blur();
++                    }
++                    activeOverlay = overlay;
++                    this.bringToTop(activeOverlay);
++                    Dom.addClass(activeOverlay.element, OverlayManager.CSS_FOCUSED);
++                    changed = true;
++                }
++                return changed;
++            };
++
++            var overlays = this.cfg.getProperty("overlays");
++
++            if (! this.overlays) {
++                this.overlays = [];
++            }
++
++            if (overlays) {
++                this.register(overlays);
++                this.overlays.sort(this.compareZIndexDesc);
++            }
++        },
++
++        /**
++        * @method _onOverlayElementFocus
++        * @description Event handler for the DOM event that is used to focus 
++        * the Overlay instance as specified by the "focusevent" 
++        * configuration property.
++        * @private
++        * @param {Event} p_oEvent Object representing the DOM event 
++        * object passed back by the event utility (Event).
++        */
++        _onOverlayElementFocus: function (p_oEvent) {
++
++            var oTarget = Event.getTarget(p_oEvent),
++                oClose = this.close;
++
++            if (oClose && (oTarget == oClose || Dom.isAncestor(oClose, oTarget))) {
++                this.blur();
++            } else {
++                this.focus();
++            }
++        },
++
++        /**
++        * @method _onOverlayDestroy
++        * @description "destroy" event handler for the Overlay.
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayDestroy: function (p_sType, p_aArgs, p_oOverlay) {
++            this.remove(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayFocusHandler
++        *
++        * @description focusEvent Handler, used to delegate to _manageFocus with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayFocusHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageFocus(p_oOverlay);
++        },
++
++        /**
++        * @method _onOverlayBlurHandler
++        * @description blurEvent Handler, used to delegate to _manageBlur with the correct arguments.
++        *
++        * @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 {Overlay} p_oOverlay Object representing the overlay that 
++        * fired the event.
++        */
++        _onOverlayBlurHandler: function(p_sType, p_aArgs, p_oOverlay) {
++            this._manageBlur(p_oOverlay);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance focusEvent, to allow the OverlayManager to
++         * monitor focus state.
++         * 
++         * If the instance already has a focusEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing focusEvent, however if a focusEvent or focus method does not exist
++         * on the instance, the _bindFocus method will add them, and the focus method will 
++         * update the OverlayManager's state directly.
++         * 
++         * @method _bindFocus
++         * @param {Overlay} overlay The overlay for which focus needs to be managed
++         * @protected
++         */
++        _bindFocus : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.focusEvent) {
++                overlay.focusEvent = overlay.createEvent("focus");
++                overlay.focusEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.focusEvent.subscribe(mgr._onOverlayFocusHandler, overlay, mgr);
++            }
++
++            if (!overlay.focus) {
++                Event.on(overlay.element, mgr.cfg.getProperty("focusevent"), mgr._onOverlayElementFocus, null, overlay);
++                overlay.focus = function () {
++                    if (mgr._manageFocus(this)) {
++                        // For Panel/Dialog
++                        if (this.cfg.getProperty("visible") && this.focusFirst) {
++                            this.focusFirst();
++                        }
++                        this.focusEvent.fire();
++                    }
++                };
++                overlay.focus._managed = true;
++            }
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's blurEvent to allow the OverlayManager to
++         * monitor blur state.
++         *
++         * If the instance already has a blurEvent (e.g. Menu), OverlayManager will subscribe 
++         * to the existing blurEvent, however if a blurEvent or blur method does not exist
++         * on the instance, the _bindBlur method will add them, and the blur method 
++         * update the OverlayManager's state directly.
++         *
++         * @method _bindBlur
++         * @param {Overlay} overlay The overlay for which blur needs to be managed
++         * @protected
++         */
++        _bindBlur : function(overlay) {
++            var mgr = this;
++
++            if (!overlay.blurEvent) {
++                overlay.blurEvent = overlay.createEvent("blur");
++                overlay.blurEvent.signature = CustomEvent.LIST;
++                overlay.focusEvent._managed = true;
++            } else {
++                overlay.blurEvent.subscribe(mgr._onOverlayBlurHandler, overlay, mgr);
++            }
++
++            if (!overlay.blur) {
++                overlay.blur = function () {
++                    if (mgr._manageBlur(this)) {
++                        this.blurEvent.fire();
++                    }
++                };
++                overlay.blur._managed = true;
++            }
++
++            overlay.hideEvent.subscribe(overlay.blur);
++        },
++
++        /**
++         * Subscribes to the Overlay based instance's destroyEvent, to allow the Overlay
++         * to be removed for the OverlayManager when destroyed.
++         * 
++         * @method _bindDestroy
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _bindDestroy : function(overlay) {
++            var mgr = this;
++            overlay.destroyEvent.subscribe(mgr._onOverlayDestroy, overlay, mgr);
++        },
++
++        /**
++         * Ensures the zIndex configuration property on the managed overlay based instance
++         * is set to the computed zIndex value from the DOM (with "auto" translating to 0).
++         *
++         * @method _syncZIndex
++         * @param {Overlay} overlay The overlay instance being managed
++         * @protected
++         */
++        _syncZIndex : function(overlay) {
++            var zIndex = Dom.getStyle(overlay.element, "zIndex");
++            if (!isNaN(zIndex)) {
++                overlay.cfg.setProperty("zIndex", parseInt(zIndex, 10));
++            } else {
++                overlay.cfg.setProperty("zIndex", 0);
++            }
++        },
++
++        /**
++        * Registers an Overlay or an array of Overlays with the manager. Upon 
++        * registration, the Overlay receives functions for focus and blur, 
++        * along with CustomEvents for each.
++        *
++        * @method register
++        * @param {Overlay} overlay  An Overlay to register with the manager.
++        * @param {Overlay[]} overlay  An array of Overlays to register with 
++        * the manager.
++        * @return {boolean} true if any Overlays are registered.
++        */
++        register: function (overlay) {
++
++            var registered = false,
++                i,
++                n;
++
++            if (overlay instanceof Overlay) {
++
++                overlay.cfg.addProperty("manager", { value: this } );
++
++                this._bindFocus(overlay);
++                this._bindBlur(overlay);
++                this._bindDestroy(overlay);
++                this._syncZIndex(overlay);
++
++                this.overlays.push(overlay);
++                this.bringToTop(overlay);
++
++                registered = true;
++
++            } else if (overlay instanceof Array) {
++
++                for (i = 0, n = overlay.length; i < n; i++) {
++                    registered = this.register(overlay[i]) || registered;
++                }
++
++            }
++
++            return registered;
++        },
++
++        /**
++        * Places the specified Overlay instance on top of all other 
++        * Overlay instances.
++        * @method bringToTop
++        * @param {YAHOO.widget.Overlay} p_oOverlay Object representing an 
++        * Overlay instance.
++        * @param {String} p_oOverlay String representing the id of an 
++        * Overlay instance.
++        */        
++        bringToTop: function (p_oOverlay) {
++
++            var oOverlay = this.find(p_oOverlay),
++                nTopZIndex,
++                oTopOverlay,
++                aOverlays;
++
++            if (oOverlay) {
++
++                aOverlays = this.overlays;
++                aOverlays.sort(this.compareZIndexDesc);
++
++                oTopOverlay = aOverlays[0];
++
++                if (oTopOverlay) {
++                    nTopZIndex = Dom.getStyle(oTopOverlay.element, "zIndex");
++
++                    if (!isNaN(nTopZIndex)) {
++
++                        var bRequiresBump = false;
++
++                        if (oTopOverlay !== oOverlay) {
++                            bRequiresBump = true;
++                        } else if (aOverlays.length > 1) {
++                            var nNextZIndex = Dom.getStyle(aOverlays[1].element, "zIndex");
++                            // Don't rely on DOM order to stack if 2 overlays are at the same zindex.
++                            if (!isNaN(nNextZIndex) && (nTopZIndex == nNextZIndex)) {
++                                bRequiresBump = true;
++                            }
++                        }
++
++                        if (bRequiresBump) {
++                            oOverlay.cfg.setProperty("zindex", (parseInt(nTopZIndex, 10) + 2));
++                        }
++                    }
++                    aOverlays.sort(this.compareZIndexDesc);
++                }
++            }
++        },
++
++        /**
++        * Attempts to locate an Overlay by instance or ID.
++        * @method find
++        * @param {Overlay} overlay  An Overlay to locate within the manager
++        * @param {String} overlay  An Overlay id to locate within the manager
++        * @return {Overlay} The requested Overlay, if found, or null if it 
++        * cannot be located.
++        */
++        find: function (overlay) {
++
++            var isInstance = overlay instanceof Overlay,
++                overlays = this.overlays,
++                n = overlays.length,
++                found = null,
++                o,
++                i;
++
++            if (isInstance || typeof overlay == "string") {
++                for (i = n-1; i >= 0; i--) {
++                    o = overlays[i];
++                    if ((isInstance && (o === overlay)) || (o.id == overlay)) {
++                        found = o;
++                        break;
++                    }
++                }
++            }
++
++            return found;
++        },
++
++        /**
++        * Used for sorting the manager's Overlays by z-index.
++        * @method compareZIndexDesc
++        * @private
++        * @return {Number} 0, 1, or -1, depending on where the Overlay should 
++        * fall in the stacking order.
++        */
++        compareZIndexDesc: function (o1, o2) {
++
++            var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
++                zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
++
++            if (zIndex1 === null && zIndex2 === null) {
++                return 0;
++            } else if (zIndex1 === null){
++                return 1;
++            } else if (zIndex2 === null) {
++                return -1;
++            } else if (zIndex1 > zIndex2) {
++                return -1;
++            } else if (zIndex1 < zIndex2) {
++                return 1;
++            } else {
++                return 0;
++            }
++        },
++
++        /**
++        * Shows all Overlays in the manager.
++        * @method showAll
++        */
++        showAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].show();
++            }
++        },
++
++        /**
++        * Hides all Overlays in the manager.
++        * @method hideAll
++        */
++        hideAll: function () {
++            var overlays = this.overlays,
++                n = overlays.length,
++                i;
++
++            for (i = n - 1; i >= 0; i--) {
++                overlays[i].hide();
++            }
++        },
++
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the OverlayManager
++        */
++        toString: function () {
++            return "OverlayManager";
++        }
++    };
++}());
++(function () {
++
++    /**
++    * ContainerEffect encapsulates animation transitions that are executed when 
++    * an Overlay is shown or hidden.
++    * @namespace YAHOO.widget
++    * @class ContainerEffect
++    * @constructor
++    * @param {YAHOO.widget.Overlay} overlay The Overlay that the animation 
++    * should be associated with
++    * @param {Object} attrIn The object literal representing the animation 
++    * arguments to be used for the animate-in transition. The arguments for 
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {Object} attrOut The object literal representing the animation 
++    * arguments to be used for the animate-out transition. The arguments for  
++    * this literal are: attributes(object, see YAHOO.util.Anim for description), 
++    * duration(Number), and method(i.e. Easing.easeIn).
++    * @param {HTMLElement} targetElement Optional. The target element that  
++    * should be animated during the transition. Defaults to overlay.element.
++    * @param {class} Optional. The animation class to instantiate. Defaults to 
++    * YAHOO.util.Anim. Other options include YAHOO.util.Motion.
++    */
++    YAHOO.widget.ContainerEffect = function (overlay, attrIn, attrOut, targetElement, animClass) {
++
++        if (!animClass) {
++            animClass = YAHOO.util.Anim;
++        }
++
++        /**
++        * The overlay to animate
++        * @property overlay
++        * @type YAHOO.widget.Overlay
++        */
++        this.overlay = overlay;
++    
++        /**
++        * The animation attributes to use when transitioning into view
++        * @property attrIn
++        * @type Object
++        */
++        this.attrIn = attrIn;
++    
++        /**
++        * The animation attributes to use when transitioning out of view
++        * @property attrOut
++        * @type Object
++        */
++        this.attrOut = attrOut;
++    
++        /**
++        * The target element to be animated
++        * @property targetElement
++        * @type HTMLElement
++        */
++        this.targetElement = targetElement || overlay.element;
++    
++        /**
++        * The animation class to use for animating the overlay
++        * @property animClass
++        * @type class
++        */
++        this.animClass = animClass;
++    
++    };
++
++
++    var Dom = YAHOO.util.Dom,
++        CustomEvent = YAHOO.util.CustomEvent,
++        ContainerEffect = YAHOO.widget.ContainerEffect;
++
++
++    /**
++    * A pre-configured ContainerEffect instance that can be used for fading 
++    * an overlay in and out.
++    * @method FADE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.FADE = function (overlay, dur) {
++
++        var Easing = YAHOO.util.Easing,
++            fin = {
++                attributes: {opacity:{from:0, to:1}},
++                duration: dur,
++                method: Easing.easeIn
++            },
++            fout = {
++                attributes: {opacity:{to:0}},
++                duration: dur,
++                method: Easing.easeOut
++            },
++            fade = new ContainerEffect(overlay, fin, fout, overlay.element);
++
++        fade.handleUnderlayStart = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                var hasFilters = (underlay.filters && underlay.filters.length > 0);
++                if(hasFilters) {
++                    Dom.addClass(overlay.element, "yui-effect-fade");
++                }
++            }
++        };
++
++        fade.handleUnderlayComplete = function() {
++            var underlay = this.overlay.underlay;
++            if (underlay && YAHOO.env.ua.ie) {
++                Dom.removeClass(overlay.element, "yui-effect-fade");
++            }
++        };
++
++        fade.handleStartAnimateIn = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++
++            if (!obj.overlay.underlay) {
++                obj.overlay.cfg.refireEvent("underlay");
++            }
++
++            obj.handleUnderlayStart();
++
++            obj.overlay._setDomVisibility(true);
++            Dom.setStyle(obj.overlay.element, "opacity", 0);
++        };
++
++        fade.handleCompleteAnimateIn = function (type,args,obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++
++        fade.handleStartAnimateOut = function (type, args, obj) {
++            Dom.addClass(obj.overlay.element, "hide-select");
++            obj.handleUnderlayStart();
++        };
++
++        fade.handleCompleteAnimateOut =  function (type, args, obj) {
++            Dom.removeClass(obj.overlay.element, "hide-select");
++            if (obj.overlay.element.style.filter) {
++                obj.overlay.element.style.filter = null;
++            }
++            obj.overlay._setDomVisibility(false);
++            Dom.setStyle(obj.overlay.element, "opacity", 1);
++
++            obj.handleUnderlayComplete();
++
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        fade.init();
++        return fade;
++    };
++    
++    
++    /**
++    * A pre-configured ContainerEffect instance that can be used for sliding an 
++    * overlay in and out.
++    * @method SLIDE
++    * @static
++    * @param {YAHOO.widget.Overlay} overlay The Overlay object to animate
++    * @param {Number} dur The duration of the animation
++    * @return {YAHOO.widget.ContainerEffect} The configured ContainerEffect object
++    */
++    ContainerEffect.SLIDE = function (overlay, dur) {
++        var Easing = YAHOO.util.Easing,
++
++            x = overlay.cfg.getProperty("x") || Dom.getX(overlay.element),
++            y = overlay.cfg.getProperty("y") || Dom.getY(overlay.element),
++            clientWidth = Dom.getClientWidth(),
++            offsetWidth = overlay.element.offsetWidth,
++
++            sin =  { 
++                attributes: { points: { to: [x, y] } },
++                duration: dur,
++                method: Easing.easeIn 
++            },
++
++            sout = {
++                attributes: { points: { to: [(clientWidth + 25), y] } },
++                duration: dur,
++                method: Easing.easeOut 
++            },
++
++            slide = new ContainerEffect(overlay, sin, sout, overlay.element, YAHOO.util.Motion);
++
++        slide.handleStartAnimateIn = function (type,args,obj) {
++            obj.overlay.element.style.left = ((-25) - offsetWidth) + "px";
++            obj.overlay.element.style.top  = y + "px";
++        };
++
++        slide.handleTweenAnimateIn = function (type, args, obj) {
++        
++            var pos = Dom.getXY(obj.overlay.element),
++                currentX = pos[0],
++                currentY = pos[1];
++        
++            if (Dom.getStyle(obj.overlay.element, "visibility") == 
++                "hidden" && currentX < x) {
++
++                obj.overlay._setDomVisibility(true);
++
++            }
++        
++            obj.overlay.cfg.setProperty("xy", [currentX, currentY], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateIn = function (type, args, obj) {
++            obj.overlay.cfg.setProperty("xy", [x, y], true);
++            obj.startX = x;
++            obj.startY = y;
++            obj.overlay.cfg.refireEvent("iframe");
++            obj.animateInCompleteEvent.fire();
++        };
++        
++        slide.handleStartAnimateOut = function (type, args, obj) {
++    
++            var vw = Dom.getViewportWidth(),
++                pos = Dom.getXY(obj.overlay.element),
++                yso = pos[1];
++    
++            obj.animOut.attributes.points.to = [(vw + 25), yso];
++        };
++        
++        slide.handleTweenAnimateOut = function (type, args, obj) {
++    
++            var pos = Dom.getXY(obj.overlay.element),
++                xto = pos[0],
++                yto = pos[1];
++        
++            obj.overlay.cfg.setProperty("xy", [xto, yto], true);
++            obj.overlay.cfg.refireEvent("iframe");
++        };
++        
++        slide.handleCompleteAnimateOut = function (type, args, obj) {
++            obj.overlay._setDomVisibility(false);
++
++            obj.overlay.cfg.setProperty("xy", [x, y]);
++            obj.animateOutCompleteEvent.fire();
++        };
++
++        slide.init();
++        return slide;
++    };
++
++    ContainerEffect.prototype = {
++
++        /**
++        * Initializes the animation classes and events.
++        * @method init
++        */
++        init: function () {
++
++            this.beforeAnimateInEvent = this.createEvent("beforeAnimateIn");
++            this.beforeAnimateInEvent.signature = CustomEvent.LIST;
++            
++            this.beforeAnimateOutEvent = this.createEvent("beforeAnimateOut");
++            this.beforeAnimateOutEvent.signature = CustomEvent.LIST;
++        
++            this.animateInCompleteEvent = this.createEvent("animateInComplete");
++            this.animateInCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animateOutCompleteEvent = 
++                this.createEvent("animateOutComplete");
++            this.animateOutCompleteEvent.signature = CustomEvent.LIST;
++        
++            this.animIn = new this.animClass(this.targetElement, 
++                this.attrIn.attributes, this.attrIn.duration, 
++                this.attrIn.method);
++
++            this.animIn.onStart.subscribe(this.handleStartAnimateIn, this);
++            this.animIn.onTween.subscribe(this.handleTweenAnimateIn, this);
++
++            this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn, 
++                this);
++        
++            this.animOut = new this.animClass(this.targetElement, 
++                this.attrOut.attributes, this.attrOut.duration, 
++                this.attrOut.method);
++
++            this.animOut.onStart.subscribe(this.handleStartAnimateOut, this);
++            this.animOut.onTween.subscribe(this.handleTweenAnimateOut, this);
++            this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut, 
++                this);
++
++        },
++        
++        /**
++        * Triggers the in-animation.
++        * @method animateIn
++        */
++        animateIn: function () {
++            this.beforeAnimateInEvent.fire();
++            this.animIn.animate();
++        },
++
++        /**
++        * Triggers the out-animation.
++        * @method animateOut
++        */
++        animateOut: function () {
++            this.beforeAnimateOutEvent.fire();
++            this.animOut.animate();
++        },
++
++        /**
++        * The default onStart handler for the in-animation.
++        * @method handleStartAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the in-animation.
++        * @method handleTweenAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the in-animation.
++        * @method handleCompleteAnimateIn
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateIn: function (type, args, obj) { },
++
++        /**
++        * The default onStart handler for the out-animation.
++        * @method handleStartAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleStartAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onTween handler for the out-animation.
++        * @method handleTweenAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleTweenAnimateOut: function (type, args, obj) { },
++
++        /**
++        * The default onComplete handler for the out-animation.
++        * @method handleCompleteAnimateOut
++        * @param {String} type The CustomEvent type
++        * @param {Object[]} args The CustomEvent arguments
++        * @param {Object} obj The scope object
++        */
++        handleCompleteAnimateOut: function (type, args, obj) { },
++        
++        /**
++        * Returns a string representation of the object.
++        * @method toString
++        * @return {String} The string representation of the ContainerEffect
++        */
++        toString: function () {
++            var output = "ContainerEffect";
++            if (this.overlay) {
++                output += " [" + this.overlay.toString() + "]";
++            }
++            return output;
++        }
++    };
++
++    YAHOO.lang.augmentProto(ContainerEffect, YAHOO.util.EventProvider);
++
++})();
++YAHOO.register("containercore", YAHOO.widget.Module, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/cookie/cookie-debug.js b/pylons_app/public/js/yui/cookie/cookie-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/cookie/cookie-debug.js
+@@ -0,0 +1,482 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Utilities for cookie management
++ * @namespace YAHOO.util
++ * @module cookie
++ */
++YAHOO.namespace("util");
++
++/**
++ * Cookie utility.
++ * @class Cookie
++ * @static
++ */
++YAHOO.util.Cookie = {
++    
++    //-------------------------------------------------------------------------
++    // Private Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Creates a cookie string that can be assigned into document.cookie.
++     * @param {String} name The name of the cookie.
++     * @param {String} value The value of the cookie.
++     * @param {Boolean} encodeValue True to encode the value, false to leave as-is.
++     * @param {Object} options (Optional) Options for the cookie.
++     * @return {String} The formatted cookie string.
++     * @method _createCookieString
++     * @private
++     * @static
++     */
++    _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {
++        
++        //shortcut
++        var lang = YAHOO.lang,
++            text = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value);
++        
++        
++        if (lang.isObject(options)){
++            //expiration date
++            if (options.expires instanceof Date){
++                text += "; expires=" + options.expires.toUTCString();
++            }
++            
++            //path
++            if (lang.isString(options.path) && options.path !== ""){
++                text += "; path=" + options.path;
++            }
++            
++            //domain
++            if (lang.isString(options.domain) && options.domain !== ""){
++                text += "; domain=" + options.domain;
++            }
++            
++            //secure
++            if (options.secure === true){
++                text += "; secure";
++            }
++        }
++        
++        return text;
++    },
++    
++    /**
++     * Formats a cookie value for an object containing multiple values.
++     * @param {Object} hash An object of key-value pairs to create a string for.
++     * @return {String} A string suitable for use as a cookie value.
++     * @method _createCookieHashString
++     * @private
++     * @static
++     */
++    _createCookieHashString : function (hash /*:Object*/) /*:String*/ {
++        
++        //shortcuts
++        var lang = YAHOO.lang;
++        
++        if (!lang.isObject(hash)){
++            throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");
++        }
++        
++        var text /*:Array*/ = [];
++        
++        for (var key in hash){
++            if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){
++                text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key])));
++            }
++        }
++        
++        return text.join("&");
++    },
++    
++    /**
++     * Parses a cookie hash string into an object.
++     * @param {String} text The cookie hash string to parse. The string should already be URL-decoded.
++     * @return {Object} An object containing entries for each cookie value.
++     * @method _parseCookieHash
++     * @private
++     * @static
++     */
++    _parseCookieHash : function (text /*:String*/) /*:Object*/ {
++        
++        var hashParts /*:Array*/ = text.split("&"),
++            hashPart /*:Array*/ = null,
++            hash /*:Object*/ = {};
++        
++        if (text.length > 0){
++            for (var i=0, len=hashParts.length; i < len; i++){
++                hashPart = hashParts[i].split("=");
++                hash[decodeURIComponent(hashPart[0])] = decodeURIComponent(hashPart[1]);
++            }
++        }
++        
++        return hash;
++    },
++    
++    /**
++     * Parses a cookie string into an object representing all accessible cookies.
++     * @param {String} text The cookie string to parse.
++     * @param {Boolean} decode (Optional) Indicates if the cookie values should be decoded or not. Default is true.
++     * @return {Object} An object containing entries for each accessible cookie.
++     * @method _parseCookieString
++     * @private
++     * @static
++     */
++    _parseCookieString : function (text /*:String*/, decode /*:Boolean*/) /*:Object*/ {
++        
++        var cookies /*:Object*/ = {};
++        
++        if (YAHOO.lang.isString(text) && text.length > 0) {
++            
++            var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
++            
++            //if (/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(text)){
++                var cookieParts /*:Array*/ = text.split(/;\s/g),
++                    cookieName /*:String*/ = null,
++                    cookieValue /*:String*/ = null,
++                    cookieNameValue /*:Array*/ = null;
++                
++                for (var i=0, len=cookieParts.length; i < len; i++){
++                    
++                    //check for normally-formatted cookie (name-value)
++                    cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
++                    if (cookieNameValue instanceof Array){
++                        try {
++                            cookieName = decodeURIComponent(cookieNameValue[1]);
++                            cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
++                        } catch (ex){
++                            //ignore the entire cookie - encoding is likely invalid
++                        }
++                    } else {
++                        //means the cookie does not have an "=", so treat it as a boolean flag
++                        cookieName = decodeURIComponent(cookieParts[i]);
++                        cookieValue = "";
++                    }
++                    cookies[cookieName] = cookieValue;
++                }
++            //}
++        }
++        
++        return cookies;
++    },
++    
++    //-------------------------------------------------------------------------
++    // Public Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Determines if the cookie with the given name exists. This is useful for
++     * Boolean cookies (those that do not follow the name=value convention).
++     * @param {String} name The name of the cookie to check.
++     * @return {Boolean} True if the cookie exists, false if not.
++     * @method exists
++     * @static
++     */
++    exists: function(name) {
++
++        if (!YAHOO.lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.");
++        }
++
++        var cookies /*:Object*/ = this._parseCookieString(document.cookie, true);
++        
++        return cookies.hasOwnProperty(name);
++    },
++    
++    /**
++     * Returns the cookie value for the given name.
++     * @param {String} name The name of the cookie to retrieve.
++     * @param {Object|Function} options (Optional) An object containing one or more
++     *      cookie options: raw (true/false) and converter (a function).
++     *      The converter function is run on the value before returning it. The
++     *      function is not used if the cookie doesn't exist. The function can be
++     *      passed instead of the options object for backwards compatibility.
++     * @return {Variant} If no converter is specified, returns a string or null if
++     *      the cookie doesn't exist. If the converter is specified, returns the value
++     *      returned from the converter or null if the cookie doesn't exist.
++     * @method get
++     * @static
++     */
++    get : function (name /*:String*/, options /*:Variant*/) /*:Variant*/{
++        
++        var lang = YAHOO.lang,
++            converter;
++        
++        if (lang.isFunction(options)) {
++            converter = options;
++            options = {};
++        } else if (lang.isObject(options)) {
++            converter = options.converter;
++        } else {
++            options = {};
++        }
++        
++        var cookies /*:Object*/ = this._parseCookieString(document.cookie, !options.raw);
++        
++        if (!lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");
++        }
++        
++        if (lang.isUndefined(cookies[name])) {
++            return null;
++        }
++        
++        if (!lang.isFunction(converter)){
++            return cookies[name];
++        } else {
++            return converter(cookies[name]);
++        }
++    },
++    
++    /**
++     * Returns the value of a subcookie.
++     * @param {String} name The name of the cookie to retrieve.
++     * @param {String} subName The name of the subcookie to retrieve.
++     * @param {Function} converter (Optional) A function to run on the value before returning
++     *      it. The function is not used if the cookie doesn't exist.
++     * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie
++     *      doesn't exist, null if also returned. If no converter is specified and the
++     *      subcookie exists, a string is returned. If a converter is specified and the
++     *      subcookie exists, the value returned from the converter is returned.
++     * @method getSub
++     * @static
++     */
++    getSub : function (name, subName, converter) {
++        
++        var lang = YAHOO.lang,
++            hash = this.getSubs(name);
++        
++        if (hash !== null) {
++            
++            if (!lang.isString(subName) || subName === ""){
++                throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");
++            }
++            
++            if (lang.isUndefined(hash[subName])){
++                return null;
++            }
++            
++            if (!lang.isFunction(converter)){
++                return hash[subName];
++            } else {
++                return converter(hash[subName]);
++            }
++        } else {
++            return null;
++        }
++    
++    },
++    
++    /**
++     * Returns an object containing name-value pairs stored in the cookie with the given name.
++     * @param {String} name The name of the cookie to retrieve.
++     * @return {Object} An object of name-value pairs if the cookie with the given name
++     *      exists, null if it does not.
++     * @method getSubs
++     * @static
++     */
++    getSubs : function (name /*:String*/) /*:Object*/ {
++    
++        var isString = YAHOO.lang.isString;
++        
++        //check cookie name
++        if (!isString(name) || name === ""){
++            throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
++        }
++        
++        var cookies = this._parseCookieString(document.cookie, false);
++        if (isString(cookies[name])){
++            return this._parseCookieHash(cookies[name]);
++        }
++        return null;
++    },
++    
++    /**
++     * Removes a cookie from the machine by setting its expiration date to
++     * sometime in the past.
++     * @param {String} name The name of the cookie to remove.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string),
++     *      and secure (true/false). The expires option will be overwritten
++     *      by the method.
++     * @return {String} The created cookie string.
++     * @method remove
++     * @static
++     */
++    remove : function (name /*:String*/, options /*:Object*/) /*:String*/ {
++        
++        //check cookie name
++        if (!YAHOO.lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");
++        }
++        
++        //set options - clone options so the original isn't affected
++        options = YAHOO.lang.merge(options || {}, {
++            expires: new Date(0)
++        });
++        
++        //set cookie
++        return this.set(name, "", options);
++    },
++    
++    /**
++     * Removes a subcookie with a given name. Removing the last subcookie
++     *      won't remove the entire cookie unless options.removeIfEmpty is true.
++     * @param {String} name The name of the cookie in which the subcookie exists.
++     * @param {String} subName The name of the subcookie to remove.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      removeIfEmpty (true/false), and secure (true/false). This must be the same
++     *      settings as the original subcookie.
++     * @return {String} The created cookie string.
++     * @method removeSub
++     * @static
++     */
++    removeSub : function(name /*:String*/, subName /*:String*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        options = options || {};
++        
++        //check cookie name
++        if (!lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");
++        }
++        
++        //check subcookie name
++        if (!lang.isString(subName) || subName === ""){
++            throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");
++        }
++        
++        //get all subcookies for this cookie
++        var subs = this.getSubs(name);
++        
++        //delete the indicated subcookie
++        if (lang.isObject(subs) && lang.hasOwnProperty(subs, subName)){
++            delete subs[subName];
++
++            if (!options.removeIfEmpty) {
++                //reset the cookie
++
++                return this.setSubs(name, subs, options);
++            } else {
++                //reset the cookie if there are subcookies left, else remove
++                for (var key in subs){
++                    if (lang.hasOwnProperty(subs, key) && !lang.isFunction(subs[key]) && !lang.isUndefined(subs[key])){
++                        return this.setSubs(name, subs, options);
++                    }
++                }
++                
++                return this.remove(name, options);
++            }
++        } else {
++            return "";
++        }
++        
++    },
++    
++    /**
++     * Sets a cookie with a given name and value.
++     * @param {String} name The name of the cookie to set.
++     * @param {Variant} value The value to set for the cookie.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      raw (true/false), and secure (true/false).
++     * @return {String} The created cookie string.
++     * @method set
++     * @static
++     */
++    set : function (name /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        options = options || {};
++        
++        if (!lang.isString(name)){
++            throw new TypeError("Cookie.set(): Cookie name must be a string.");
++        }
++        
++        if (lang.isUndefined(value)){
++            throw new TypeError("Cookie.set(): Value cannot be undefined.");
++        }
++        
++        var text /*:String*/ = this._createCookieString(name, value, !options.raw, options);
++        document.cookie = text;
++        return text;
++    },
++    
++    /**
++     * Sets a sub cookie with a given name to a particular value.
++     * @param {String} name The name of the cookie to set.
++     * @param {String} subName The name of the subcookie to set.
++     * @param {Variant} value The value to set.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      and secure (true/false).
++     * @return {String} The created cookie string.
++     * @method setSub
++     * @static
++     */
++    setSub : function (name /*:String*/, subName /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        if (!lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");
++        }
++        
++        if (!lang.isString(subName) || subName === ""){
++            throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");
++        }
++        
++        if (lang.isUndefined(value)){
++            throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");
++        }
++        
++        var hash /*:Object*/ = this.getSubs(name);
++        
++        if (!lang.isObject(hash)){
++            hash = {};
++        }
++        
++        hash[subName] = value;
++        
++        return this.setSubs(name, hash, options);
++        
++    },
++    
++    /**
++     * Sets a cookie with a given name to contain a hash of name-value pairs.
++     * @param {String} name The name of the cookie to set.
++     * @param {Object} value An object containing name-value pairs.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      and secure (true/false).
++     * @return {String} The created cookie string.
++     * @method setSubs
++     * @static
++     */
++    setSubs : function (name /*:String*/, value /*:Object*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        if (!lang.isString(name)){
++            throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");
++        }
++        
++        if (!lang.isObject(value)){
++            throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");
++        }
++        
++        var text /*:String*/ = this._createCookieString(name, this._createCookieHashString(value), false, options);
++        document.cookie = text;
++        return text;
++    }
++
++};
++
++YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/cookie/cookie-min.js b/pylons_app/public/js/yui/cookie/cookie-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/cookie/cookie-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("util");YAHOO.util.Cookie={_createCookieString:function(B,D,C,A){var F=YAHOO.lang,E=encodeURIComponent(B)+"="+(C?encodeURIComponent(D):D);if(F.isObject(A)){if(A.expires instanceof Date){E+="; expires="+A.expires.toUTCString();}if(F.isString(A.path)&&A.path!==""){E+="; path="+A.path;}if(F.isString(A.domain)&&A.domain!==""){E+="; domain="+A.domain;}if(A.secure===true){E+="; secure";}}return E;},_createCookieHashString:function(B){var D=YAHOO.lang;if(!D.isObject(B)){throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");}var C=[];for(var A in B){if(D.hasOwnProperty(B,A)&&!D.isFunction(B[A])&&!D.isUndefined(B[A])){C.push(encodeURIComponent(A)+"="+encodeURIComponent(String(B[A])));}}return C.join("&");},_parseCookieHash:function(E){var D=E.split("&"),F=null,C={};if(E.length>0){for(var B=0,A=D.length;B<A;B++){F=D[B].split("=");C[decodeURIComponent(F[0])]=decodeURIComponent(F[1]);}}return C;},_parseCookieString:function(J,A){var K={};if(YAHOO.lang.isString(J)&&J.length>0){var B=(A===false?function(L){return L;}:decodeURIComponent);var H=J.split(/;\s/g),I=null,C=null,E=null;for(var D=0,F=H.length;D<F;D++){E=H[D].match(/([^=]+)=/i);if(E instanceof Array){try{I=decodeURIComponent(E[1]);C=B(H[D].substring(E[1].length+1));}catch(G){}}else{I=decodeURIComponent(H[D]);C="";}K[I]=C;}}return K;},exists:function(A){if(!YAHOO.lang.isString(A)||A===""){throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.");}var B=this._parseCookieString(document.cookie,true);return B.hasOwnProperty(A);},get:function(B,A){var E=YAHOO.lang,C;if(E.isFunction(A)){C=A;A={};}else{if(E.isObject(A)){C=A.converter;}else{A={};}}var D=this._parseCookieString(document.cookie,!A.raw);if(!E.isString(B)||B===""){throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");}if(E.isUndefined(D[B])){return null;}if(!E.isFunction(C)){return D[B];}else{return C(D[B]);}},getSub:function(A,C,B){var E=YAHOO.lang,D=this.getSubs(A);if(D!==null){if(!E.isString(C)||C===""){throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");}if(E.isUndefined(D[C])){return null;}if(!E.isFunction(B)){return D[C];}else{return B(D[C]);}}else{return null;}},getSubs:function(B){var A=YAHOO.lang.isString;if(!A(B)||B===""){throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");}var C=this._parseCookieString(document.cookie,false);if(A(C[B])){return this._parseCookieHash(C[B]);}return null;},remove:function(B,A){if(!YAHOO.lang.isString(B)||B===""){throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");}A=YAHOO.lang.merge(A||{},{expires:new Date(0)});return this.set(B,"",A);},removeSub:function(B,E,A){var F=YAHOO.lang;A=A||{};if(!F.isString(B)||B===""){throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");}if(!F.isString(E)||E===""){throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");}var D=this.getSubs(B);if(F.isObject(D)&&F.hasOwnProperty(D,E)){delete D[E];if(!A.removeIfEmpty){return this.setSubs(B,D,A);}else{for(var C in D){if(F.hasOwnProperty(D,C)&&!F.isFunction(D[C])&&!F.isUndefined(D[C])){return this.setSubs(B,D,A);}}return this.remove(B,A);}}else{return"";}},set:function(B,C,A){var E=YAHOO.lang;A=A||{};if(!E.isString(B)){throw new TypeError("Cookie.set(): Cookie name must be a string.");}if(E.isUndefined(C)){throw new TypeError("Cookie.set(): Value cannot be undefined.");}var D=this._createCookieString(B,C,!A.raw,A);document.cookie=D;return D;},setSub:function(B,D,C,A){var F=YAHOO.lang;if(!F.isString(B)||B===""){throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");}if(!F.isString(D)||D===""){throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");}if(F.isUndefined(C)){throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");}var E=this.getSubs(B);if(!F.isObject(E)){E={};}E[D]=C;return this.setSubs(B,E,A);},setSubs:function(B,C,A){var E=YAHOO.lang;if(!E.isString(B)){throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");}if(!E.isObject(C)){throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");}var D=this._createCookieString(B,this._createCookieHashString(C),false,A);document.cookie=D;return D;}};YAHOO.register("cookie",YAHOO.util.Cookie,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/cookie/cookie.js b/pylons_app/public/js/yui/cookie/cookie.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/cookie/cookie.js
+@@ -0,0 +1,482 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Utilities for cookie management
++ * @namespace YAHOO.util
++ * @module cookie
++ */
++YAHOO.namespace("util");
++
++/**
++ * Cookie utility.
++ * @class Cookie
++ * @static
++ */
++YAHOO.util.Cookie = {
++    
++    //-------------------------------------------------------------------------
++    // Private Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Creates a cookie string that can be assigned into document.cookie.
++     * @param {String} name The name of the cookie.
++     * @param {String} value The value of the cookie.
++     * @param {Boolean} encodeValue True to encode the value, false to leave as-is.
++     * @param {Object} options (Optional) Options for the cookie.
++     * @return {String} The formatted cookie string.
++     * @method _createCookieString
++     * @private
++     * @static
++     */
++    _createCookieString : function (name /*:String*/, value /*:Variant*/, encodeValue /*:Boolean*/, options /*:Object*/) /*:String*/ {
++        
++        //shortcut
++        var lang = YAHOO.lang,
++            text = encodeURIComponent(name) + "=" + (encodeValue ? encodeURIComponent(value) : value);
++        
++        
++        if (lang.isObject(options)){
++            //expiration date
++            if (options.expires instanceof Date){
++                text += "; expires=" + options.expires.toUTCString();
++            }
++            
++            //path
++            if (lang.isString(options.path) && options.path !== ""){
++                text += "; path=" + options.path;
++            }
++            
++            //domain
++            if (lang.isString(options.domain) && options.domain !== ""){
++                text += "; domain=" + options.domain;
++            }
++            
++            //secure
++            if (options.secure === true){
++                text += "; secure";
++            }
++        }
++        
++        return text;
++    },
++    
++    /**
++     * Formats a cookie value for an object containing multiple values.
++     * @param {Object} hash An object of key-value pairs to create a string for.
++     * @return {String} A string suitable for use as a cookie value.
++     * @method _createCookieHashString
++     * @private
++     * @static
++     */
++    _createCookieHashString : function (hash /*:Object*/) /*:String*/ {
++        
++        //shortcuts
++        var lang = YAHOO.lang;
++        
++        if (!lang.isObject(hash)){
++            throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");
++        }
++        
++        var text /*:Array*/ = [];
++        
++        for (var key in hash){
++            if (lang.hasOwnProperty(hash, key) && !lang.isFunction(hash[key]) && !lang.isUndefined(hash[key])){
++                text.push(encodeURIComponent(key) + "=" + encodeURIComponent(String(hash[key])));
++            }
++        }
++        
++        return text.join("&");
++    },
++    
++    /**
++     * Parses a cookie hash string into an object.
++     * @param {String} text The cookie hash string to parse. The string should already be URL-decoded.
++     * @return {Object} An object containing entries for each cookie value.
++     * @method _parseCookieHash
++     * @private
++     * @static
++     */
++    _parseCookieHash : function (text /*:String*/) /*:Object*/ {
++        
++        var hashParts /*:Array*/ = text.split("&"),
++            hashPart /*:Array*/ = null,
++            hash /*:Object*/ = {};
++        
++        if (text.length > 0){
++            for (var i=0, len=hashParts.length; i < len; i++){
++                hashPart = hashParts[i].split("=");
++                hash[decodeURIComponent(hashPart[0])] = decodeURIComponent(hashPart[1]);
++            }
++        }
++        
++        return hash;
++    },
++    
++    /**
++     * Parses a cookie string into an object representing all accessible cookies.
++     * @param {String} text The cookie string to parse.
++     * @param {Boolean} decode (Optional) Indicates if the cookie values should be decoded or not. Default is true.
++     * @return {Object} An object containing entries for each accessible cookie.
++     * @method _parseCookieString
++     * @private
++     * @static
++     */
++    _parseCookieString : function (text /*:String*/, decode /*:Boolean*/) /*:Object*/ {
++        
++        var cookies /*:Object*/ = {};
++        
++        if (YAHOO.lang.isString(text) && text.length > 0) {
++            
++            var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
++            
++            //if (/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(text)){
++                var cookieParts /*:Array*/ = text.split(/;\s/g),
++                    cookieName /*:String*/ = null,
++                    cookieValue /*:String*/ = null,
++                    cookieNameValue /*:Array*/ = null;
++                
++                for (var i=0, len=cookieParts.length; i < len; i++){
++                    
++                    //check for normally-formatted cookie (name-value)
++                    cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
++                    if (cookieNameValue instanceof Array){
++                        try {
++                            cookieName = decodeURIComponent(cookieNameValue[1]);
++                            cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1));
++                        } catch (ex){
++                            //ignore the entire cookie - encoding is likely invalid
++                        }
++                    } else {
++                        //means the cookie does not have an "=", so treat it as a boolean flag
++                        cookieName = decodeURIComponent(cookieParts[i]);
++                        cookieValue = "";
++                    }
++                    cookies[cookieName] = cookieValue;
++                }
++            //}
++        }
++        
++        return cookies;
++    },
++    
++    //-------------------------------------------------------------------------
++    // Public Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Determines if the cookie with the given name exists. This is useful for
++     * Boolean cookies (those that do not follow the name=value convention).
++     * @param {String} name The name of the cookie to check.
++     * @return {Boolean} True if the cookie exists, false if not.
++     * @method exists
++     * @static
++     */
++    exists: function(name) {
++
++        if (!YAHOO.lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.exists(): Cookie name must be a non-empty string.");
++        }
++
++        var cookies /*:Object*/ = this._parseCookieString(document.cookie, true);
++        
++        return cookies.hasOwnProperty(name);
++    },
++    
++    /**
++     * Returns the cookie value for the given name.
++     * @param {String} name The name of the cookie to retrieve.
++     * @param {Object|Function} options (Optional) An object containing one or more
++     *      cookie options: raw (true/false) and converter (a function).
++     *      The converter function is run on the value before returning it. The
++     *      function is not used if the cookie doesn't exist. The function can be
++     *      passed instead of the options object for backwards compatibility.
++     * @return {Variant} If no converter is specified, returns a string or null if
++     *      the cookie doesn't exist. If the converter is specified, returns the value
++     *      returned from the converter or null if the cookie doesn't exist.
++     * @method get
++     * @static
++     */
++    get : function (name /*:String*/, options /*:Variant*/) /*:Variant*/{
++        
++        var lang = YAHOO.lang,
++            converter;
++        
++        if (lang.isFunction(options)) {
++            converter = options;
++            options = {};
++        } else if (lang.isObject(options)) {
++            converter = options.converter;
++        } else {
++            options = {};
++        }
++        
++        var cookies /*:Object*/ = this._parseCookieString(document.cookie, !options.raw);
++        
++        if (!lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.get(): Cookie name must be a non-empty string.");
++        }
++        
++        if (lang.isUndefined(cookies[name])) {
++            return null;
++        }
++        
++        if (!lang.isFunction(converter)){
++            return cookies[name];
++        } else {
++            return converter(cookies[name]);
++        }
++    },
++    
++    /**
++     * Returns the value of a subcookie.
++     * @param {String} name The name of the cookie to retrieve.
++     * @param {String} subName The name of the subcookie to retrieve.
++     * @param {Function} converter (Optional) A function to run on the value before returning
++     *      it. The function is not used if the cookie doesn't exist.
++     * @return {Variant} If the cookie doesn't exist, null is returned. If the subcookie
++     *      doesn't exist, null if also returned. If no converter is specified and the
++     *      subcookie exists, a string is returned. If a converter is specified and the
++     *      subcookie exists, the value returned from the converter is returned.
++     * @method getSub
++     * @static
++     */
++    getSub : function (name, subName, converter) {
++        
++        var lang = YAHOO.lang,
++            hash = this.getSubs(name);
++        
++        if (hash !== null) {
++            
++            if (!lang.isString(subName) || subName === ""){
++                throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty string.");
++            }
++            
++            if (lang.isUndefined(hash[subName])){
++                return null;
++            }
++            
++            if (!lang.isFunction(converter)){
++                return hash[subName];
++            } else {
++                return converter(hash[subName]);
++            }
++        } else {
++            return null;
++        }
++    
++    },
++    
++    /**
++     * Returns an object containing name-value pairs stored in the cookie with the given name.
++     * @param {String} name The name of the cookie to retrieve.
++     * @return {Object} An object of name-value pairs if the cookie with the given name
++     *      exists, null if it does not.
++     * @method getSubs
++     * @static
++     */
++    getSubs : function (name /*:String*/) /*:Object*/ {
++    
++        var isString = YAHOO.lang.isString;
++        
++        //check cookie name
++        if (!isString(name) || name === ""){
++            throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
++        }
++        
++        var cookies = this._parseCookieString(document.cookie, false);
++        if (isString(cookies[name])){
++            return this._parseCookieHash(cookies[name]);
++        }
++        return null;
++    },
++    
++    /**
++     * Removes a cookie from the machine by setting its expiration date to
++     * sometime in the past.
++     * @param {String} name The name of the cookie to remove.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string),
++     *      and secure (true/false). The expires option will be overwritten
++     *      by the method.
++     * @return {String} The created cookie string.
++     * @method remove
++     * @static
++     */
++    remove : function (name /*:String*/, options /*:Object*/) /*:String*/ {
++        
++        //check cookie name
++        if (!YAHOO.lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");
++        }
++        
++        //set options - clone options so the original isn't affected
++        options = YAHOO.lang.merge(options || {}, {
++            expires: new Date(0)
++        });
++        
++        //set cookie
++        return this.set(name, "", options);
++    },
++    
++    /**
++     * Removes a subcookie with a given name. Removing the last subcookie
++     *      won't remove the entire cookie unless options.removeIfEmpty is true.
++     * @param {String} name The name of the cookie in which the subcookie exists.
++     * @param {String} subName The name of the subcookie to remove.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      removeIfEmpty (true/false), and secure (true/false). This must be the same
++     *      settings as the original subcookie.
++     * @return {String} The created cookie string.
++     * @method removeSub
++     * @static
++     */
++    removeSub : function(name /*:String*/, subName /*:String*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        options = options || {};
++        
++        //check cookie name
++        if (!lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.removeSub(): Cookie name must be a non-empty string.");
++        }
++        
++        //check subcookie name
++        if (!lang.isString(subName) || subName === ""){
++            throw new TypeError("Cookie.removeSub(): Subcookie name must be a non-empty string.");
++        }
++        
++        //get all subcookies for this cookie
++        var subs = this.getSubs(name);
++        
++        //delete the indicated subcookie
++        if (lang.isObject(subs) && lang.hasOwnProperty(subs, subName)){
++            delete subs[subName];
++
++            if (!options.removeIfEmpty) {
++                //reset the cookie
++
++                return this.setSubs(name, subs, options);
++            } else {
++                //reset the cookie if there are subcookies left, else remove
++                for (var key in subs){
++                    if (lang.hasOwnProperty(subs, key) && !lang.isFunction(subs[key]) && !lang.isUndefined(subs[key])){
++                        return this.setSubs(name, subs, options);
++                    }
++                }
++                
++                return this.remove(name, options);
++            }
++        } else {
++            return "";
++        }
++        
++    },
++    
++    /**
++     * Sets a cookie with a given name and value.
++     * @param {String} name The name of the cookie to set.
++     * @param {Variant} value The value to set for the cookie.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      raw (true/false), and secure (true/false).
++     * @return {String} The created cookie string.
++     * @method set
++     * @static
++     */
++    set : function (name /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        options = options || {};
++        
++        if (!lang.isString(name)){
++            throw new TypeError("Cookie.set(): Cookie name must be a string.");
++        }
++        
++        if (lang.isUndefined(value)){
++            throw new TypeError("Cookie.set(): Value cannot be undefined.");
++        }
++        
++        var text /*:String*/ = this._createCookieString(name, value, !options.raw, options);
++        document.cookie = text;
++        return text;
++    },
++    
++    /**
++     * Sets a sub cookie with a given name to a particular value.
++     * @param {String} name The name of the cookie to set.
++     * @param {String} subName The name of the subcookie to set.
++     * @param {Variant} value The value to set.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      and secure (true/false).
++     * @return {String} The created cookie string.
++     * @method setSub
++     * @static
++     */
++    setSub : function (name /*:String*/, subName /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        if (!lang.isString(name) || name === ""){
++            throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");
++        }
++        
++        if (!lang.isString(subName) || subName === ""){
++            throw new TypeError("Cookie.setSub(): Subcookie name must be a non-empty string.");
++        }
++        
++        if (lang.isUndefined(value)){
++            throw new TypeError("Cookie.setSub(): Subcookie value cannot be undefined.");
++        }
++        
++        var hash /*:Object*/ = this.getSubs(name);
++        
++        if (!lang.isObject(hash)){
++            hash = {};
++        }
++        
++        hash[subName] = value;
++        
++        return this.setSubs(name, hash, options);
++        
++    },
++    
++    /**
++     * Sets a cookie with a given name to contain a hash of name-value pairs.
++     * @param {String} name The name of the cookie to set.
++     * @param {Object} value An object containing name-value pairs.
++     * @param {Object} options (Optional) An object containing one or more
++     *      cookie options: path (a string), domain (a string), expires (a Date object),
++     *      and secure (true/false).
++     * @return {String} The created cookie string.
++     * @method setSubs
++     * @static
++     */
++    setSubs : function (name /*:String*/, value /*:Object*/, options /*:Object*/) /*:String*/ {
++        
++        var lang = YAHOO.lang;
++        
++        if (!lang.isString(name)){
++            throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");
++        }
++        
++        if (!lang.isObject(value)){
++            throw new TypeError("Cookie.setSubs(): Cookie value must be an object.");
++        }
++        
++        var text /*:String*/ = this._createCookieString(name, this._createCookieHashString(value), false, options);
++        document.cookie = text;
++        return text;
++    }
++
++};
++
++YAHOO.register("cookie", YAHOO.util.Cookie, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/datasource/datasource-debug.js b/pylons_app/public/js/yui/datasource/datasource-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datasource/datasource-debug.js
+@@ -0,0 +1,3067 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    Ev     = util.Event;
++
++/**
++ * The DataSource utility provides a common configurable interface for widgets to
++ * access a variety of data, from JavaScript arrays to online database servers.
++ *
++ * @module datasource
++ * @requires yahoo, event
++ * @optional json, get, connection 
++ * @title DataSource Utility
++ */
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Base class for the YUI DataSource utility.
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.DataSourceBase
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.DataSourceBase = function(oLiveData, oConfigs) {
++    if(oLiveData === null || oLiveData === undefined) {
++        YAHOO.log("Could not instantiate DataSource due to invalid live database",
++                "error", this.toString());
++        return;
++    }
++    
++    this.liveData = oLiveData;
++    this._oQueue = {interval:null, conn:null, requests:[]};
++    this.responseSchema = {};   
++
++    // 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];
++            }
++        }
++    }
++    
++    // Validate and initialize public configs
++    var maxCacheEntries = this.maxCacheEntries;
++    if(!lang.isNumber(maxCacheEntries) || (maxCacheEntries < 0)) {
++        maxCacheEntries = 0;
++    }
++
++    // Initialize interval tracker
++    this._aIntervals = [];
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Custom Events
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Fired when a request is made to the local cache.
++     *
++     * @event cacheRequestEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("cacheRequestEvent");
++
++    /**
++     * Fired when data is retrieved from the local cache.
++     *
++     * @event cacheResponseEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("cacheResponseEvent");
++
++    /**
++     * Fired when a request is sent to the live data source.
++     *
++     * @event requestEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.tId {Number} Transaction ID.     
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("requestEvent");
++
++    /**
++     * Fired when live data source sends response.
++     *
++     * @event responseEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The raw response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.tId {Number} Transaction ID.     
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("responseEvent");
++
++    /**
++     * Fired when response is parsed.
++     *
++     * @event responseParseEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The parsed response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("responseParseEvent");
++
++    /**
++     * Fired when response is cached.
++     *
++     * @event responseCacheEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The parsed response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("responseCacheEvent");
++    /**
++     * Fired when an error is encountered with the live data source.
++     *
++     * @event dataErrorEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {String} The response object (if available).
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     * @param oArgs.message {String} The error message.
++     */
++    this.createEvent("dataErrorEvent");
++
++    /**
++     * Fired when the local cache is flushed.
++     *
++     * @event cacheFlushEvent
++     */
++    this.createEvent("cacheFlushEvent");
++
++    var DS = util.DataSourceBase;
++    this._sName = "DataSource instance" + DS._nIndex;
++    DS._nIndex++;
++    YAHOO.log("DataSource initialized", "info", this.toString());
++};
++
++var DS = util.DataSourceBase;
++
++lang.augmentObject(DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public constants
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Type is unknown.
++ *
++ * @property TYPE_UNKNOWN
++ * @type Number
++ * @final
++ * @default -1
++ */
++TYPE_UNKNOWN : -1,
++
++/**
++ * Type is a JavaScript Array.
++ *
++ * @property TYPE_JSARRAY
++ * @type Number
++ * @final
++ * @default 0
++ */
++TYPE_JSARRAY : 0,
++
++/**
++ * Type is a JavaScript Function.
++ *
++ * @property TYPE_JSFUNCTION
++ * @type Number
++ * @final
++ * @default 1
++ */
++TYPE_JSFUNCTION : 1,
++
++/**
++ * Type is hosted on a server via an XHR connection.
++ *
++ * @property TYPE_XHR
++ * @type Number
++ * @final
++ * @default 2
++ */
++TYPE_XHR : 2,
++
++/**
++ * Type is JSON.
++ *
++ * @property TYPE_JSON
++ * @type Number
++ * @final
++ * @default 3
++ */
++TYPE_JSON : 3,
++
++/**
++ * Type is XML.
++ *
++ * @property TYPE_XML
++ * @type Number
++ * @final
++ * @default 4
++ */
++TYPE_XML : 4,
++
++/**
++ * Type is plain text.
++ *
++ * @property TYPE_TEXT
++ * @type Number
++ * @final
++ * @default 5
++ */
++TYPE_TEXT : 5,
++
++/**
++ * Type is an HTML TABLE element. Data is parsed out of TR elements from all TBODY elements.
++ *
++ * @property TYPE_HTMLTABLE
++ * @type Number
++ * @final
++ * @default 6
++ */
++TYPE_HTMLTABLE : 6,
++
++/**
++ * Type is hosted on a server via a dynamic script node.
++ *
++ * @property TYPE_SCRIPTNODE
++ * @type Number
++ * @final
++ * @default 7
++ */
++TYPE_SCRIPTNODE : 7,
++
++/**
++ * Type is local.
++ *
++ * @property TYPE_LOCAL
++ * @type Number
++ * @final
++ * @default 8
++ */
++TYPE_LOCAL : 8,
++
++/**
++ * Error message for invalid dataresponses.
++ *
++ * @property ERROR_DATAINVALID
++ * @type String
++ * @final
++ * @default "Invalid data"
++ */
++ERROR_DATAINVALID : "Invalid data",
++
++/**
++ * Error message for null data responses.
++ *
++ * @property ERROR_DATANULL
++ * @type String
++ * @final
++ * @default "Null data"
++ */
++ERROR_DATANULL : "Null data",
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase private static properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Internal class variable to index multiple DataSource instances.
++ *
++ * @property DataSourceBase._nIndex
++ * @type Number
++ * @private
++ * @static
++ */
++_nIndex : 0,
++
++/**
++ * Internal class variable to assign unique transaction IDs.
++ *
++ * @property DataSourceBase._nTransactionId
++ * @type Number
++ * @private
++ * @static
++ */
++_nTransactionId : 0,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase private static methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Get an XPath-specified value for a given field from an XML node or document.
++ *
++ * @method _getLocationValue
++ * @param field {String | Object} Field definition.
++ * @param context {Object} XML node or document to search within.
++ * @return {Object} Data value or null.
++ * @static
++ * @private
++ */
++_getLocationValue: function(field, context) {
++    var locator = field.locator || field.key || field,
++        xmldoc = context.ownerDocument || context,
++        result, res, value = null;
++
++    try {
++        // Standards mode
++        if(!lang.isUndefined(xmldoc.evaluate)) {
++            result = xmldoc.evaluate(locator, context, xmldoc.createNSResolver(!context.ownerDocument ? context.documentElement : context.ownerDocument.documentElement), 0, null);
++            while(res = result.iterateNext()) {
++                value = res.textContent;
++            }
++        }
++        // IE mode
++        else {
++            xmldoc.setProperty("SelectionLanguage", "XPath");
++            result = context.selectNodes(locator)[0];
++            value = result.value || result.text || null;
++        }
++        return value;
++
++    }
++    catch(e) {
++    }
++},
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public static methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Executes a configured callback.  For object literal callbacks, the third
++ * param determines whether to execute the success handler or failure handler.
++ *  
++ * @method issueCallback
++ * @param callback {Function|Object} the callback to execute
++ * @param params {Array} params to be passed to the callback method
++ * @param error {Boolean} whether an error occurred
++ * @param scope {Object} the scope from which to execute the callback
++ * (deprecated - use an object literal callback)
++ * @static     
++ */
++issueCallback : function (callback,params,error,scope) {
++    if (lang.isFunction(callback)) {
++        callback.apply(scope, params);
++    } else if (lang.isObject(callback)) {
++        scope = callback.scope || scope || window;
++        var callbackFunc = callback.success;
++        if (error) {
++            callbackFunc = callback.failure;
++        }
++        if (callbackFunc) {
++            callbackFunc.apply(scope, params.concat([callback.argument]));
++        }
++    }
++},
++
++/**
++ * Converts data to type String.
++ *
++ * @method DataSourceBase.parseString
++ * @param oData {String | Number | Boolean | Date | Array | Object} Data to parse.
++ * The special values null and undefined will return null.
++ * @return {String} A string, or null.
++ * @static
++ */
++parseString : function(oData) {
++    // Special case null and undefined
++    if(!lang.isValue(oData)) {
++        return null;
++    }
++    
++    //Convert to string
++    var string = oData + "";
++
++    // Validate
++    if(lang.isString(string)) {
++        return string;
++    }
++    else {
++        YAHOO.log("Could not convert data " + lang.dump(oData) + " to type String", "warn", this.toString());
++        return null;
++    }
++},
++
++/**
++ * Converts data to type Number.
++ *
++ * @method DataSourceBase.parseNumber
++ * @param oData {String | Number | Boolean} Data to convert. Note, the following
++ * values return as null: null, undefined, NaN, "". 
++ * @return {Number} A number, or null.
++ * @static
++ */
++parseNumber : function(oData) {
++    if(!lang.isValue(oData) || (oData === "")) {
++        return null;
++    }
++
++    //Convert to number
++    var number = oData * 1;
++    
++    // Validate
++    if(lang.isNumber(number)) {
++        return number;
++    }
++    else {
++        YAHOO.log("Could not convert data " + lang.dump(oData) + " to type Number", "warn", this.toString());
++        return null;
++    }
++},
++// Backward compatibility
++convertNumber : function(oData) {
++    YAHOO.log("The method YAHOO.util.DataSourceBase.convertNumber() has been" +
++    " deprecated in favor of YAHOO.util.DataSourceBase.parseNumber()", "warn",
++    this.toString());
++    return DS.parseNumber(oData);
++},
++
++/**
++ * Converts data to type Date.
++ *
++ * @method DataSourceBase.parseDate
++ * @param oData {Date | String | Number} Data to convert.
++ * @return {Date} A Date instance.
++ * @static
++ */
++parseDate : function(oData) {
++    var date = null;
++    
++    //Convert to date
++    if(!(oData instanceof Date)) {
++        date = new Date(oData);
++    }
++    else {
++        return oData;
++    }
++    
++    // Validate
++    if(date instanceof Date) {
++        return date;
++    }
++    else {
++        YAHOO.log("Could not convert data " + lang.dump(oData) + " to type Date", "warn", this.toString());
++        return null;
++    }
++},
++// Backward compatibility
++convertDate : function(oData) {
++    YAHOO.log("The method YAHOO.util.DataSourceBase.convertDate() has been" +
++    " deprecated in favor of YAHOO.util.DataSourceBase.parseDate()", "warn",
++    this.toString());
++    return DS.parseDate(oData);
++}
++
++});
++
++// Done in separate step so referenced functions are defined.
++/**
++ * Data parsing functions.
++ * @property DataSource.Parser
++ * @type Object
++ * @static
++ */
++DS.Parser = {
++    string   : DS.parseString,
++    number   : DS.parseNumber,
++    date     : DS.parseDate
++};
++
++// Prototype properties and methods
++DS.prototype = {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase private properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Name of DataSource instance.
++ *
++ * @property _sName
++ * @type String
++ * @private
++ */
++_sName : null,
++
++/**
++ * Local cache of data result object literals indexed chronologically.
++ *
++ * @property _aCache
++ * @type Object[]
++ * @private
++ */
++_aCache : null,
++
++/**
++ * Local queue of request connections, enabled if queue needs to be managed.
++ *
++ * @property _oQueue
++ * @type Object
++ * @private
++ */
++_oQueue : null,
++
++/**
++ * Array of polling interval IDs that have been enabled, needed to clear all intervals.
++ *
++ * @property _aIntervals
++ * @type Array
++ * @private
++ */
++_aIntervals : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * 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 0
++ */
++maxCacheEntries : 0,
++
++ /**
++ * Pointer to live database.
++ *
++ * @property liveData
++ * @type Object
++ */
++liveData : null,
++
++/**
++ * Where the live data is held:
++ * 
++ * <dl>  
++ *    <dt>TYPE_UNKNOWN</dt>
++ *    <dt>TYPE_LOCAL</dt>
++ *    <dt>TYPE_XHR</dt>
++ *    <dt>TYPE_SCRIPTNODE</dt>
++ *    <dt>TYPE_JSFUNCTION</dt>
++ * </dl> 
++ *  
++ * @property dataType
++ * @type Number
++ * @default YAHOO.util.DataSourceBase.TYPE_UNKNOWN
++ *
++ */
++dataType : DS.TYPE_UNKNOWN,
++
++/**
++ * Format of response:
++ *  
++ * <dl>  
++ *    <dt>TYPE_UNKNOWN</dt>
++ *    <dt>TYPE_JSARRAY</dt>
++ *    <dt>TYPE_JSON</dt>
++ *    <dt>TYPE_XML</dt>
++ *    <dt>TYPE_TEXT</dt>
++ *    <dt>TYPE_HTMLTABLE</dt> 
++ * </dl> 
++ *
++ * @property responseType
++ * @type Number
++ * @default YAHOO.util.DataSourceBase.TYPE_UNKNOWN
++ */
++responseType : DS.TYPE_UNKNOWN,
++
++/**
++ * Response schema object literal takes a combination of the following properties:
++ *
++ * <dl>
++ * <dt>resultsList</dt> <dd>Pointer to array of tabular data</dd>
++ * <dt>resultNode</dt> <dd>Pointer to node name of row data (XML data only)</dd>
++ * <dt>recordDelim</dt> <dd>Record delimiter (text data only)</dd>
++ * <dt>fieldDelim</dt> <dd>Field delimiter (text data only)</dd>
++ * <dt>fields</dt> <dd>Array of field names (aka keys), or array of object literals
++ * such as: {key:"fieldname",parser:YAHOO.util.DataSourceBase.parseDate}</dd>
++ * <dt>metaFields</dt> <dd>Object literal of keys to include in the oParsedResponse.meta collection</dd>
++ * <dt>metaNode</dt> <dd>Name of the node under which to search for meta information in XML response data</dd>
++ * </dl>
++ *
++ * @property responseSchema
++ * @type Object
++ */
++responseSchema : null,
++
++/**
++ * Additional arguments passed to the JSON parse routine.  The JSON string
++ * is the assumed first argument (where applicable).  This property is not
++ * set by default, but the parse methods will use it if present.
++ *
++ * @property parseJSONArgs
++ * @type {MIXED|Array} If an Array, contents are used as individual arguments.
++ *                     Otherwise, value is used as an additional argument.
++ */
++// property intentionally undefined
++ 
++/**
++ * When working with XML data, setting this property to true enables support for
++ * XPath-syntaxed locators in schema definitions.
++ *
++ * @property useXPath
++ * @type Boolean
++ * @default false
++ */
++useXPath : false,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Public accessor to the unique name of the DataSource instance.
++ *
++ * @method toString
++ * @return {String} Unique name of the DataSource instance.
++ */
++toString : function() {
++    return this._sName;
++},
++
++/**
++ * Overridable method passes request to cache and returns cached response if any,
++ * refreshing the hit in the cache as the newest item. Returns null if there is
++ * no cache hit.
++ *
++ * @method getCachedResponse
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object.
++ * @param oCaller {Object} (deprecated) Use callback object.
++ * @return {Object} Cached response object or null.
++ */
++getCachedResponse : function(oRequest, oCallback, oCaller) {
++    var aCache = this._aCache;
++
++    // If cache is enabled...
++    if(this.maxCacheEntries > 0) {        
++        // Initialize local cache
++        if(!aCache) {
++            this._aCache = [];
++            YAHOO.log("Cache initialized", "info", this.toString());
++        }
++        // Look in local cache
++        else {
++            var nCacheLength = aCache.length;
++            if(nCacheLength > 0) {
++                var oResponse = null;
++                this.fireEvent("cacheRequestEvent", {request:oRequest,callback:oCallback,caller:oCaller});
++        
++                // Loop through each cached element
++                for(var i = nCacheLength-1; i >= 0; i--) {
++                    var oCacheElem = aCache[i];
++        
++                    // Defer cache hit logic to a public overridable method
++                    if(this.isCacheHit(oRequest,oCacheElem.request)) {
++                        // The cache returned a hit!
++                        // Grab the cached response
++                        oResponse = oCacheElem.response;
++                        this.fireEvent("cacheResponseEvent", {request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});
++                        
++                        // Refresh the position of the cache hit
++                        if(i < nCacheLength-1) {
++                            // Remove element from its original location
++                            aCache.splice(i,1);
++                            // Add as newest
++                            this.addToCache(oRequest, oResponse);
++                            YAHOO.log("Refreshed cache position of the response for \"" +  oRequest + "\"", "info", this.toString());
++                        }
++                        
++                        // Add a cache flag
++                        oResponse.cached = true;
++                        break;
++                    }
++                }
++                YAHOO.log("The cached response for \"" + lang.dump(oRequest) +
++                        "\" is " + lang.dump(oResponse), "info", this.toString());
++                return oResponse;
++            }
++        }
++    }
++    else if(aCache) {
++        this._aCache = null;
++        YAHOO.log("Cache destroyed", "info", this.toString());
++    }
++    return null;
++},
++
++/**
++ * Default overridable method matches given request to given cached request.
++ * Returns true if is a hit, returns false otherwise.  Implementers should
++ * override this method to customize the cache-matching algorithm.
++ *
++ * @method isCacheHit
++ * @param oRequest {Object} Request object.
++ * @param oCachedRequest {Object} Cached request object.
++ * @return {Boolean} True if given request matches cached request, false otherwise.
++ */
++isCacheHit : function(oRequest, oCachedRequest) {
++    return (oRequest === oCachedRequest);
++},
++
++/**
++ * Adds a new item to the cache. If cache is full, evicts the stalest item
++ * before adding the new item.
++ *
++ * @method addToCache
++ * @param oRequest {Object} Request object.
++ * @param oResponse {Object} Response object to cache.
++ */
++addToCache : function(oRequest, oResponse) {
++    var aCache = this._aCache;
++    if(!aCache) {
++        return;
++    }
++
++    // If the cache is full, make room by removing stalest element (index=0)
++    while(aCache.length >= this.maxCacheEntries) {
++        aCache.shift();
++    }
++
++    // Add to cache in the newest position, at the end of the array
++    var oCacheElem = {request:oRequest,response:oResponse};
++    aCache[aCache.length] = oCacheElem;
++    this.fireEvent("responseCacheEvent", {request:oRequest,response:oResponse});
++    YAHOO.log("Cached the response for \"" +  oRequest + "\"", "info", this.toString());
++},
++
++/**
++ * Flushes cache.
++ *
++ * @method flushCache
++ */
++flushCache : function() {
++    if(this._aCache) {
++        this._aCache = [];
++        this.fireEvent("cacheFlushEvent");
++        YAHOO.log("Flushed the cache", "info", this.toString());
++    }
++},
++
++/**
++ * Sets up a polling mechanism to send requests at set intervals and forward
++ * responses to given callback.
++ *
++ * @method setInterval
++ * @param nMsec {Number} Length of interval in milliseconds.
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Function} Handler function to receive the response.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Interval ID.
++ */
++setInterval : function(nMsec, oRequest, oCallback, oCaller) {
++    if(lang.isNumber(nMsec) && (nMsec >= 0)) {
++        YAHOO.log("Enabling polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
++        var oSelf = this;
++        var nId = setInterval(function() {
++            oSelf.makeConnection(oRequest, oCallback, oCaller);
++        }, nMsec);
++        this._aIntervals.push(nId);
++        return nId;
++    }
++    else {
++        YAHOO.log("Could not enable polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
++    }
++},
++
++/**
++ * Disables polling mechanism associated with the given interval ID.
++ *
++ * @method clearInterval
++ * @param nId {Number} Interval ID.
++ */
++clearInterval : function(nId) {
++    // Remove from tracker if there
++    var tracker = this._aIntervals || [];
++    for(var i=tracker.length-1; i>-1; i--) {
++        if(tracker[i] === nId) {
++            tracker.splice(i,1);
++            clearInterval(nId);
++        }
++    }
++},
++
++/**
++ * Disables all known polling intervals.
++ *
++ * @method clearAllIntervals
++ */
++clearAllIntervals : function() {
++    var tracker = this._aIntervals || [];
++    for(var i=tracker.length-1; i>-1; i--) {
++        clearInterval(tracker[i]);
++    }
++    tracker = [];
++},
++
++/**
++ * First looks for cached response, then sends request to live data. The
++ * following arguments are passed to the callback function:
++ *     <dl>
++ *     <dt><code>oRequest</code></dt>
++ *     <dd>The same value that was passed in as the first argument to sendRequest.</dd>
++ *     <dt><code>oParsedResponse</code></dt>
++ *     <dd>An object literal containing the following properties:
++ *         <dl>
++ *         <dt><code>tId</code></dt>
++ *         <dd>Unique transaction ID number.</dd>
++ *         <dt><code>results</code></dt>
++ *         <dd>Schema-parsed data results.</dd>
++ *         <dt><code>error</code></dt>
++ *         <dd>True in cases of data error.</dd>
++ *         <dt><code>cached</code></dt>
++ *         <dd>True when response is returned from DataSource cache.</dd> 
++ *         <dt><code>meta</code></dt>
++ *         <dd>Schema-parsed meta data.</dd>
++ *         </dl>
++ *     <dt><code>oPayload</code></dt>
++ *     <dd>The same value as was passed in as <code>argument</code> in the oCallback object literal.</dd>
++ *     </dl> 
++ *
++ * @method sendRequest
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} An object literal with the following properties:
++ *     <dl>
++ *     <dt><code>success</code></dt>
++ *     <dd>The function to call when the data is ready.</dd>
++ *     <dt><code>failure</code></dt>
++ *     <dd>The function to call upon a response failure condition.</dd>
++ *     <dt><code>scope</code></dt>
++ *     <dd>The object to serve as the scope for the success and failure handlers.</dd>
++ *     <dt><code>argument</code></dt>
++ *     <dd>Arbitrary data that will be passed back to the success and failure handlers.</dd>
++ *     </dl> 
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID, or null if response found in cache.
++ */
++sendRequest : function(oRequest, oCallback, oCaller) {
++    // First look in cache
++    var oCachedResponse = this.getCachedResponse(oRequest, oCallback, oCaller);
++    if(oCachedResponse) {
++        DS.issueCallback(oCallback,[oRequest,oCachedResponse],false,oCaller);
++        return null;
++    }
++
++
++    // Not in cache, so forward request to live data
++    YAHOO.log("Making connection to live data for \"" + oRequest + "\"", "info", this.toString());
++    return this.makeConnection(oRequest, oCallback, oCaller);
++},
++
++/**
++ * Overridable default method generates a unique transaction ID and passes 
++ * the live data reference directly to the  handleResponse function. This
++ * method should be implemented by subclasses to achieve more complex behavior
++ * or to access remote data.          
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId, request:oRequest,callback:oCallback,caller:oCaller});
++
++    /* accounts for the following cases:
++    YAHOO.util.DataSourceBase.TYPE_UNKNOWN
++    YAHOO.util.DataSourceBase.TYPE_JSARRAY
++    YAHOO.util.DataSourceBase.TYPE_JSON
++    YAHOO.util.DataSourceBase.TYPE_HTMLTABLE
++    YAHOO.util.DataSourceBase.TYPE_XML
++    YAHOO.util.DataSourceBase.TYPE_TEXT
++    */
++    var oRawResponse = this.liveData;
++    
++    this.handleResponse(oRequest, oRawResponse, oCallback, oCaller, tId);
++    return tId;
++},
++
++/**
++ * Receives raw data response and type converts to XML, JSON, etc as necessary.
++ * Forwards oFullResponse to appropriate parsing function to get turned into
++ * oParsedResponse. Calls doBeforeCallback() and adds oParsedResponse to 
++ * the cache when appropriate before calling issueCallback().
++ * 
++ * The oParsedResponse object literal has the following properties:
++ * <dl>
++ *     <dd><dt>tId {Number}</dt> Unique transaction ID</dd>
++ *     <dd><dt>results {Array}</dt> Array of parsed data results</dd>
++ *     <dd><dt>meta {Object}</dt> Object literal of meta values</dd> 
++ *     <dd><dt>error {Boolean}</dt> (optional) True if there was an error</dd>
++ *     <dd><dt>cached {Boolean}</dt> (optional) True if response was cached</dd>
++ * </dl>
++ *
++ * @method handleResponse
++ * @param oRequest {Object} Request object
++ * @param oRawResponse {Object} The raw response from the live database.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @param tId {Number} Transaction ID.
++ */
++handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
++    this.fireEvent("responseEvent", {tId:tId, request:oRequest, response:oRawResponse,
++            callback:oCallback, caller:oCaller});
++    YAHOO.log("Received live data response for \"" + oRequest + "\"", "info", this.toString());
++    var xhr = (this.dataType == DS.TYPE_XHR) ? true : false;
++    var oParsedResponse = null;
++    var oFullResponse = oRawResponse;
++    
++    // Try to sniff data type if it has not been defined
++    if(this.responseType === DS.TYPE_UNKNOWN) {
++        var ctype = (oRawResponse && oRawResponse.getResponseHeader) ? oRawResponse.getResponseHeader["Content-Type"] : null;
++        if(ctype) {
++             // xml
++            if(ctype.indexOf("text/xml") > -1) {
++                this.responseType = DS.TYPE_XML;
++            }
++            else if(ctype.indexOf("application/json") > -1) { // json
++                this.responseType = DS.TYPE_JSON;
++            }
++            else if(ctype.indexOf("text/plain") > -1) { // text
++                this.responseType = DS.TYPE_TEXT;
++            }
++        }
++        else {
++            if(YAHOO.lang.isArray(oRawResponse)) { // array
++                this.responseType = DS.TYPE_JSARRAY;
++            }
++             // xml
++            else if(oRawResponse && oRawResponse.nodeType && (oRawResponse.nodeType === 9 || oRawResponse.nodeType === 1 || oRawResponse.nodeType === 11)) {
++                this.responseType = DS.TYPE_XML;
++            }
++            else if(oRawResponse && oRawResponse.nodeName && (oRawResponse.nodeName.toLowerCase() == "table")) { // table
++                this.responseType = DS.TYPE_HTMLTABLE;
++            }    
++            else if(YAHOO.lang.isObject(oRawResponse)) { // json
++                this.responseType = DS.TYPE_JSON;
++            }
++            else if(YAHOO.lang.isString(oRawResponse)) { // text
++                this.responseType = DS.TYPE_TEXT;
++            }
++        }
++    }
++
++    switch(this.responseType) {
++        case DS.TYPE_JSARRAY:
++            if(xhr && oRawResponse && oRawResponse.responseText) {
++                oFullResponse = oRawResponse.responseText; 
++            }
++            try {
++                // Convert to JS array if it's a string
++                if(lang.isString(oFullResponse)) {
++                    var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
++                    // Check for YUI JSON Util
++                    if(lang.JSON) {
++                        oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json2.js
++                    else if(window.JSON && JSON.parse) {
++                        oFullResponse = JSON.parse.apply(JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json.js
++                    else if(oFullResponse.parseJSON) {
++                        oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
++                    }
++                    // No JSON lib found so parse the string
++                    else {
++                        // Trim leading spaces
++                        while (oFullResponse.length > 0 &&
++                                (oFullResponse.charAt(0) != "{") &&
++                                (oFullResponse.charAt(0) != "[")) {
++                            oFullResponse = oFullResponse.substring(1, oFullResponse.length);
++                        }
++
++                        if(oFullResponse.length > 0) {
++                            // Strip extraneous stuff at the end
++                            var arrayEnd =
++Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));
++                            oFullResponse = oFullResponse.substring(0,arrayEnd+1);
++
++                            // Turn the string into an object literal...
++                            // ...eval is necessary here
++                            oFullResponse = eval("(" + oFullResponse + ")");
++
++                        }
++                    }
++                }
++            }
++            catch(e1) {
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseArrayData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_JSON:
++            if(xhr && oRawResponse && oRawResponse.responseText) {
++                oFullResponse = oRawResponse.responseText;
++            }
++            try {
++                // Convert to JSON object if it's a string
++                if(lang.isString(oFullResponse)) {
++                    var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
++                    // Check for YUI JSON Util
++                    if(lang.JSON) {
++                        oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json2.js
++                    else if(window.JSON && JSON.parse) {
++                        oFullResponse = JSON.parse.apply(JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json.js
++                    else if(oFullResponse.parseJSON) {
++                        oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
++                    }
++                    // No JSON lib found so parse the string
++                    else {
++                        // Trim leading spaces
++                        while (oFullResponse.length > 0 &&
++                                (oFullResponse.charAt(0) != "{") &&
++                                (oFullResponse.charAt(0) != "[")) {
++                            oFullResponse = oFullResponse.substring(1, oFullResponse.length);
++                        }
++    
++                        if(oFullResponse.length > 0) {
++                            // Strip extraneous stuff at the end
++                            var objEnd = Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));
++                            oFullResponse = oFullResponse.substring(0,objEnd+1);
++    
++                            // Turn the string into an object literal...
++                            // ...eval is necessary here
++                            oFullResponse = eval("(" + oFullResponse + ")");
++    
++                        }
++                    }
++                }
++            }
++            catch(e) {
++            }
++
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseJSONData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_HTMLTABLE:
++            if(xhr && oRawResponse.responseText) {
++                var el = document.createElement('div');
++                el.innerHTML = oRawResponse.responseText;
++                oFullResponse = el.getElementsByTagName('table')[0];
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseHTMLTableData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_XML:
++            if(xhr && oRawResponse.responseXML) {
++                oFullResponse = oRawResponse.responseXML;
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseXMLData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_TEXT:
++            if(xhr && lang.isString(oRawResponse.responseText)) {
++                oFullResponse = oRawResponse.responseText;
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseTextData(oRequest, oFullResponse);
++            break;
++        default:
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseData(oRequest, oFullResponse);
++            break;
++    }
++
++
++    // Clean up for consistent signature
++    oParsedResponse = oParsedResponse || {};
++    if(!oParsedResponse.results) {
++        oParsedResponse.results = [];
++    }
++    if(!oParsedResponse.meta) {
++        oParsedResponse.meta = {};
++    }
++
++    // Success
++    if(!oParsedResponse.error) {
++        // Last chance to touch the raw response or the parsed response
++        oParsedResponse = this.doBeforeCallback(oRequest, oFullResponse, oParsedResponse, oCallback);
++        this.fireEvent("responseParseEvent", {request:oRequest,
++                response:oParsedResponse, callback:oCallback, caller:oCaller});
++        // Cache the response
++        this.addToCache(oRequest, oParsedResponse);
++    }
++    // Error
++    else {
++        // Be sure the error flag is on
++        oParsedResponse.error = true;
++        this.fireEvent("dataErrorEvent", {request:oRequest, response: oRawResponse, callback:oCallback, 
++                caller:oCaller, message:DS.ERROR_DATANULL});
++        YAHOO.log(DS.ERROR_DATANULL, "error", this.toString());
++    }
++
++    // Send the response back to the caller
++    oParsedResponse.tId = tId;
++    DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller);
++},
++
++/**
++ * Overridable method gives implementers access to the original full response
++ * before the data gets parsed. Implementers should take care not to return an
++ * unparsable or otherwise invalid response.
++ *
++ * @method doBeforeParseData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full response from the live database.
++ * @param oCallback {Object} The callback object.  
++ * @return {Object} Full response for parsing.
++  
++ */
++doBeforeParseData : function(oRequest, oFullResponse, oCallback) {
++    return oFullResponse;
++},
++
++/**
++ * Overridable method gives implementers access to the original full response and
++ * the parsed response (parsed against the given schema) before the data
++ * is added to the cache (if applicable) and then sent back to callback function.
++ * This is your chance to access the raw response and/or populate the parsed
++ * response with any custom data.
++ *
++ * @method doBeforeCallback
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full response from the live database.
++ * @param oParsedResponse {Object} The parsed response to return to calling object.
++ * @param oCallback {Object} The callback object. 
++ * @return {Object} Parsed response object.
++ */
++doBeforeCallback : function(oRequest, oFullResponse, oParsedResponse, oCallback) {
++    return oParsedResponse;
++},
++
++/**
++ * Overridable method parses data of generic RESPONSE_TYPE into a response object.
++ *
++ * @method parseData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full Array from the live database.
++ * @return {Object} Parsed response object with the following properties:<br>
++ *     - results {Array} Array of parsed data results<br>
++ *     - meta {Object} Object literal of meta values<br>
++ *     - error {Boolean} (optional) True if there was an error<br>
++ */
++parseData : function(oRequest, oFullResponse) {
++    if(lang.isValue(oFullResponse)) {
++        var oParsedResponse = {results:oFullResponse,meta:{}};
++        YAHOO.log("Parsed generic data is " +
++                lang.dump(oParsedResponse), "info", this.toString());
++        return oParsedResponse;
++
++    }
++    YAHOO.log("Generic data could not be parsed: " + lang.dump(oFullResponse), 
++            "error", this.toString());
++    return null;
++},
++
++/**
++ * Overridable method parses Array data into a response object.
++ *
++ * @method parseArrayData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full Array from the live database.
++ * @return {Object} Parsed response object with the following properties:<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseArrayData : function(oRequest, oFullResponse) {
++    if(lang.isArray(oFullResponse)) {
++        var results = [],
++            i, j,
++            rec, field, data;
++        
++        // Parse for fields
++        if(lang.isArray(this.responseSchema.fields)) {
++            var fields = this.responseSchema.fields;
++            for (i = fields.length - 1; i >= 0; --i) {
++                if (typeof fields[i] !== 'object') {
++                    fields[i] = { key : fields[i] };
++                }
++            }
++
++            var parsers = {}, p;
++            for (i = fields.length - 1; i >= 0; --i) {
++                p = (typeof fields[i].parser === 'function' ?
++                          fields[i].parser :
++                          DS.Parser[fields[i].parser+'']) || fields[i].converter;
++                if (p) {
++                    parsers[fields[i].key] = p;
++                }
++            }
++
++            var arrType = lang.isArray(oFullResponse[0]);
++            for(i=oFullResponse.length-1; i>-1; i--) {
++                var oResult = {};
++                rec = oFullResponse[i];
++                if (typeof rec === 'object') {
++                    for(j=fields.length-1; j>-1; j--) {
++                        field = fields[j];
++                        data = arrType ? rec[j] : rec[field.key];
++
++                        if (parsers[field.key]) {
++                            data = parsers[field.key].call(this,data);
++                        }
++
++                        // Safety measure
++                        if(data === undefined) {
++                            data = null;
++                        }
++
++                        oResult[field.key] = data;
++                    }
++                }
++                else if (lang.isString(rec)) {
++                    for(j=fields.length-1; j>-1; j--) {
++                        field = fields[j];
++                        data = rec;
++
++                        if (parsers[field.key]) {
++                            data = parsers[field.key].call(this,data);
++                        }
++
++                        // Safety measure
++                        if(data === undefined) {
++                            data = null;
++                        }
++
++                        oResult[field.key] = data;
++                    }                
++                }
++                results[i] = oResult;
++            }    
++        }
++        // Return entire data set
++        else {
++            results = oFullResponse;
++        }
++        var oParsedResponse = {results:results};
++        YAHOO.log("Parsed array data is " +
++                lang.dump(oParsedResponse), "info", this.toString());
++        return oParsedResponse;
++
++    }
++    YAHOO.log("Array data could not be parsed: " + lang.dump(oFullResponse), 
++            "error", this.toString());
++    return null;
++},
++
++/**
++ * Overridable method parses plain text data into a response object.
++ *
++ * @method parseTextData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full text response from the live database.
++ * @return {Object} Parsed response object with the following properties:<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseTextData : function(oRequest, oFullResponse) {
++    if(lang.isString(oFullResponse)) {
++        if(lang.isString(this.responseSchema.recordDelim) &&
++                lang.isString(this.responseSchema.fieldDelim)) {
++            var oParsedResponse = {results:[]};
++            var recDelim = this.responseSchema.recordDelim;
++            var fieldDelim = this.responseSchema.fieldDelim;
++            if(oFullResponse.length > 0) {
++                // Delete the last line delimiter at the end of the data if it exists
++                var newLength = oFullResponse.length-recDelim.length;
++                if(oFullResponse.substr(newLength) == recDelim) {
++                    oFullResponse = oFullResponse.substr(0, newLength);
++                }
++                if(oFullResponse.length > 0) {
++                    // Split along record delimiter to get an array of strings
++                    var recordsarray = oFullResponse.split(recDelim);
++                    // Cycle through each record
++                    for(var i = 0, len = recordsarray.length, recIdx = 0; i < len; ++i) {
++                        var bError = false,
++                            sRecord = recordsarray[i];
++                        if (lang.isString(sRecord) && (sRecord.length > 0)) {
++                            // Split each record along field delimiter to get data
++                            var fielddataarray = recordsarray[i].split(fieldDelim);
++                            var oResult = {};
++                            
++                            // Filter for fields data
++                            if(lang.isArray(this.responseSchema.fields)) {
++                                var fields = this.responseSchema.fields;
++                                for(var j=fields.length-1; j>-1; j--) {
++                                    try {
++                                        // Remove quotation marks from edges, if applicable
++                                        var data = fielddataarray[j];
++                                        if (lang.isString(data)) {
++                                            if(data.charAt(0) == "\"") {
++                                                data = data.substr(1);
++                                            }
++                                            if(data.charAt(data.length-1) == "\"") {
++                                                data = data.substr(0,data.length-1);
++                                            }
++                                            var field = fields[j];
++                                            var key = (lang.isValue(field.key)) ? field.key : field;
++                                            // Backward compatibility
++                                            if(!field.parser && field.converter) {
++                                                field.parser = field.converter;
++                                                YAHOO.log("The field property converter has been deprecated" +
++                                                        " in favor of parser", "warn", this.toString());
++                                            }
++                                            var parser = (typeof field.parser === 'function') ?
++                                                field.parser :
++                                                DS.Parser[field.parser+''];
++                                            if(parser) {
++                                                data = parser.call(this, data);
++                                            }
++                                            // Safety measure
++                                            if(data === undefined) {
++                                                data = null;
++                                            }
++                                            oResult[key] = data;
++                                        }
++                                        else {
++                                            bError = true;
++                                        }
++                                    }
++                                    catch(e) {
++                                        bError = true;
++                                    }
++                                }
++                            }            
++                            // No fields defined so pass along all data as an array
++                            else {
++                                oResult = fielddataarray;
++                            }
++                            if(!bError) {
++                                oParsedResponse.results[recIdx++] = oResult;
++                            }
++                        }
++                    }
++                }
++            }
++            YAHOO.log("Parsed text data is " +
++                    lang.dump(oParsedResponse), "info", this.toString());
++            return oParsedResponse;
++        }
++    }
++    YAHOO.log("Text data could not be parsed: " + lang.dump(oFullResponse), 
++            "error", this.toString());
++    return null;
++            
++},
++
++/**
++ * Overridable method parses XML data for one result into an object literal.
++ *
++ * @method parseXMLResult
++ * @param result {XML} XML for one result.
++ * @return {Object} Object literal of data for one result.
++ */
++parseXMLResult : function(result) {
++    var oResult = {},
++        schema = this.responseSchema;
++        
++    try {
++        // Loop through each data field in each result using the schema
++        for(var m = schema.fields.length-1; m >= 0 ; m--) {
++            var field = schema.fields[m];
++            var key = (lang.isValue(field.key)) ? field.key : field;
++            var data = null;
++
++            if(this.useXPath) {
++                data = YAHOO.util.DataSource._getLocationValue(field, result);
++            }
++            else {
++                // Values may be held in an attribute...
++                var xmlAttr = result.attributes.getNamedItem(key);
++                if(xmlAttr) {
++                    data = xmlAttr.value;
++                }
++                // ...or in a node
++                else {
++                    var xmlNode = result.getElementsByTagName(key);
++                    if(xmlNode && xmlNode.item(0)) {
++                        var item = xmlNode.item(0);
++                        // For IE, then DOM...
++                        data = (item) ? ((item.text) ? item.text : (item.textContent) ? item.textContent : null) : null;
++                        // ...then fallback, but check for multiple child nodes
++                        if(!data) {
++                            var datapieces = [];
++                            for(var j=0, len=item.childNodes.length; j<len; j++) {
++                                if(item.childNodes[j].nodeValue) {
++                                    datapieces[datapieces.length] = item.childNodes[j].nodeValue;
++                                }
++                            }
++                            if(datapieces.length > 0) {
++                                data = datapieces.join("");
++                            }
++                        }
++                    }
++                }
++            }
++            
++            
++            // Safety net
++            if(data === null) {
++                   data = "";
++            }
++            // Backward compatibility
++            if(!field.parser && field.converter) {
++                field.parser = field.converter;
++                YAHOO.log("The field property converter has been deprecated" +
++                        " in favor of parser", "warn", this.toString());
++            }
++            var parser = (typeof field.parser === 'function') ?
++                field.parser :
++                DS.Parser[field.parser+''];
++            if(parser) {
++                data = parser.call(this, data);
++            }
++            // Safety measure
++            if(data === undefined) {
++                data = null;
++            }
++            oResult[key] = data;
++        }
++    }
++    catch(e) {
++        YAHOO.log("Error while parsing XML result: " + e.message);
++    }
++
++    return oResult;
++},
++
++
++
++/**
++ * Overridable method parses XML data into a response object.
++ *
++ * @method parseXMLData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full XML response from the live database.
++ * @return {Object} Parsed response object with the following properties<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseXMLData : function(oRequest, oFullResponse) {
++    var bError = false,
++        schema = this.responseSchema,
++        oParsedResponse = {meta:{}},
++        xmlList = null,
++        metaNode      = schema.metaNode,
++        metaLocators  = schema.metaFields || {},
++        i,k,loc,v;
++
++    // In case oFullResponse is something funky
++    try {
++        // Pull any meta identified
++        if(this.useXPath) {
++            for (k in metaLocators) {
++                oParsedResponse.meta[k] = YAHOO.util.DataSource._getLocationValue(metaLocators[k], oFullResponse);
++            }
++        }
++        else {
++            metaNode = metaNode ? oFullResponse.getElementsByTagName(metaNode)[0] :
++                       oFullResponse;
++
++            if (metaNode) {
++                for (k in metaLocators) {
++                    if (lang.hasOwnProperty(metaLocators, k)) {
++                        loc = metaLocators[k];
++                        // Look for a node
++                        v = metaNode.getElementsByTagName(loc)[0];
++
++                        if (v) {
++                            v = v.firstChild.nodeValue;
++                        } else {
++                            // Look for an attribute
++                            v = metaNode.attributes.getNamedItem(loc);
++                            if (v) {
++                                v = v.value;
++                            }
++                        }
++
++                        if (lang.isValue(v)) {
++                            oParsedResponse.meta[k] = v;
++                        }
++                    }
++                }
++            }
++        }
++        
++        // For result data
++        xmlList = (schema.resultNode) ?
++            oFullResponse.getElementsByTagName(schema.resultNode) :
++            null;
++    }
++    catch(e) {
++        YAHOO.log("Error while parsing XML data: " + e.message);
++    }
++    if(!xmlList || !lang.isArray(schema.fields)) {
++        bError = true;
++    }
++    // Loop through each result
++    else {
++        oParsedResponse.results = [];
++        for(i = xmlList.length-1; i >= 0 ; --i) {
++            var oResult = this.parseXMLResult(xmlList.item(i));
++            // Capture each array of values into an array of results
++            oParsedResponse.results[i] = oResult;
++        }
++    }
++    if(bError) {
++        YAHOO.log("XML data could not be parsed: " +
++                lang.dump(oFullResponse), "error", this.toString());
++        oParsedResponse.error = true;
++    }
++    else {
++        YAHOO.log("Parsed XML data is " +
++                lang.dump(oParsedResponse), "info", this.toString());
++    }
++    return oParsedResponse;
++},
++
++/**
++ * Overridable method parses JSON data into a response object.
++ *
++ * @method parseJSONData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full JSON from the live database.
++ * @return {Object} Parsed response object with the following properties<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseJSONData : function(oRequest, oFullResponse) {
++    var oParsedResponse = {results:[],meta:{}};
++    
++    if(lang.isObject(oFullResponse) && this.responseSchema.resultsList) {
++        var schema = this.responseSchema,
++            fields          = schema.fields,
++            resultsList     = oFullResponse,
++            results         = [],
++            metaFields      = schema.metaFields || {},
++            fieldParsers    = [],
++            fieldPaths      = [],
++            simpleFields    = [],
++            bError          = false,
++            i,len,j,v,key,parser,path;
++
++        // Function to convert the schema's fields into walk paths
++        var buildPath = function (needle) {
++            var path = null, keys = [], i = 0;
++            if (needle) {
++                // Strip the ["string keys"] and [1] array indexes
++                needle = needle.
++                    replace(/\[(['"])(.*?)\1\]/g,
++                    function (x,$1,$2) {keys[i]=$2;return '.@'+(i++);}).
++                    replace(/\[(\d+)\]/g,
++                    function (x,$1) {keys[i]=parseInt($1,10)|0;return '.@'+(i++);}).
++                    replace(/^\./,''); // remove leading dot
++
++                // If the cleaned needle contains invalid characters, the
++                // path is invalid
++                if (!/[^\w\.\$@]/.test(needle)) {
++                    path = needle.split('.');
++                    for (i=path.length-1; i >= 0; --i) {
++                        if (path[i].charAt(0) === '@') {
++                            path[i] = keys[parseInt(path[i].substr(1),10)];
++                        }
++                    }
++                }
++                else {
++                    YAHOO.log("Invalid locator: " + needle, "error", this.toString());
++                }
++            }
++            return path;
++        };
++
++
++        // Function to walk a path and return the pot of gold
++        var walkPath = function (path, origin) {
++            var v=origin,i=0,len=path.length;
++            for (;i<len && v;++i) {
++                v = v[path[i]];
++            }
++            return v;
++        };
++
++        // Parse the response
++        // Step 1. Pull the resultsList from oFullResponse (default assumes
++        // oFullResponse IS the resultsList)
++        path = buildPath(schema.resultsList);
++        if (path) {
++            resultsList = walkPath(path, oFullResponse);
++            if (resultsList === undefined) {
++                bError = true;
++            }
++        } else {
++            bError = true;
++        }
++        
++        if (!resultsList) {
++            resultsList = [];
++        }
++
++        if (!lang.isArray(resultsList)) {
++            resultsList = [resultsList];
++        }
++
++        if (!bError) {
++            // Step 2. Parse out field data if identified
++            if(schema.fields) {
++                var field;
++                // Build the field parser map and location paths
++                for (i=0, len=fields.length; i<len; i++) {
++                    field = fields[i];
++                    key    = field.key || field;
++                    parser = ((typeof field.parser === 'function') ?
++                        field.parser :
++                        DS.Parser[field.parser+'']) || field.converter;
++                    path   = buildPath(key);
++    
++                    if (parser) {
++                        fieldParsers[fieldParsers.length] = {key:key,parser:parser};
++                    }
++    
++                    if (path) {
++                        if (path.length > 1) {
++                            fieldPaths[fieldPaths.length] = {key:key,path:path};
++                        } else {
++                            simpleFields[simpleFields.length] = {key:key,path:path[0]};
++                        }
++                    } else {
++                        YAHOO.log("Invalid key syntax: " + key,"warn",this.toString());
++                    }
++                }
++
++                // Process the results, flattening the records and/or applying parsers if needed
++                for (i = resultsList.length - 1; i >= 0; --i) {
++                    var r = resultsList[i], rec = {};
++                    if(r) {
++                        for (j = simpleFields.length - 1; j >= 0; --j) {
++                            // Bug 1777850: data might be held in an array
++                            rec[simpleFields[j].key] =
++                                    (r[simpleFields[j].path] !== undefined) ?
++                                    r[simpleFields[j].path] : r[j];
++                        }
++
++                        for (j = fieldPaths.length - 1; j >= 0; --j) {
++                            rec[fieldPaths[j].key] = walkPath(fieldPaths[j].path,r);
++                        }
++
++                        for (j = fieldParsers.length - 1; j >= 0; --j) {
++                            var p = fieldParsers[j].key;
++                            rec[p] = fieldParsers[j].parser(rec[p]);
++                            if (rec[p] === undefined) {
++                                rec[p] = null;
++                            }
++                        }
++                    }
++                    results[i] = rec;
++                }
++            }
++            else {
++                results = resultsList;
++            }
++
++            for (key in metaFields) {
++                if (lang.hasOwnProperty(metaFields,key)) {
++                    path = buildPath(metaFields[key]);
++                    if (path) {
++                        v = walkPath(path, oFullResponse);
++                        oParsedResponse.meta[key] = v;
++                    }
++                }
++            }
++
++        } else {
++            YAHOO.log("JSON data could not be parsed due to invalid responseSchema.resultsList or invalid response: " +
++                    lang.dump(oFullResponse), "error", this.toString());
++
++            oParsedResponse.error = true;
++        }
++
++        oParsedResponse.results = results;
++    }
++    else {
++        YAHOO.log("JSON data could not be parsed: " +
++                lang.dump(oFullResponse), "error", this.toString());
++        oParsedResponse.error = true;
++    }
++
++    return oParsedResponse;
++},
++
++/**
++ * Overridable method parses an HTML TABLE element reference into a response object.
++ * Data is parsed out of TR elements from all TBODY elements. 
++ *
++ * @method parseHTMLTableData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full HTML element reference from the live database.
++ * @return {Object} Parsed response object with the following properties<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseHTMLTableData : function(oRequest, oFullResponse) {
++    var bError = false;
++    var elTable = oFullResponse;
++    var fields = this.responseSchema.fields;
++    var oParsedResponse = {results:[]};
++
++    if(lang.isArray(fields)) {
++        // Iterate through each TBODY
++        for(var i=0; i<elTable.tBodies.length; i++) {
++            var elTbody = elTable.tBodies[i];
++    
++            // Iterate through each TR
++            for(var j=elTbody.rows.length-1; j>-1; j--) {
++                var elRow = elTbody.rows[j];
++                var oResult = {};
++                
++                for(var k=fields.length-1; k>-1; k--) {
++                    var field = fields[k];
++                    var key = (lang.isValue(field.key)) ? field.key : field;
++                    var data = elRow.cells[k].innerHTML;
++    
++                    // Backward compatibility
++                    if(!field.parser && field.converter) {
++                        field.parser = field.converter;
++                        YAHOO.log("The field property converter has been deprecated" +
++                                " in favor of parser", "warn", this.toString());
++                    }
++                    var parser = (typeof field.parser === 'function') ?
++                        field.parser :
++                        DS.Parser[field.parser+''];
++                    if(parser) {
++                        data = parser.call(this, data);
++                    }
++                    // Safety measure
++                    if(data === undefined) {
++                        data = null;
++                    }
++                    oResult[key] = data;
++                }
++                oParsedResponse.results[j] = oResult;
++            }
++        }
++    }
++    else {
++        bError = true;
++        YAHOO.log("Invalid responseSchema.fields", "error", this.toString());
++    }
++
++    if(bError) {
++        YAHOO.log("HTML TABLE data could not be parsed: " +
++                lang.dump(oFullResponse), "error", this.toString());
++        oParsedResponse.error = true;
++    }
++    else {
++        YAHOO.log("Parsed HTML TABLE data is " +
++                lang.dump(oParsedResponse), "info", this.toString());
++    }
++    return oParsedResponse;
++}
++
++};
++
++// DataSourceBase uses EventProvider
++lang.augmentProto(DS, util.EventProvider);
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * LocalDataSource class for in-memory data structs including JavaScript arrays,
++ * JavaScript object literals (JSON), XML documents, and HTML tables.
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.LocalDataSource
++ * @extends YAHOO.util.DataSourceBase 
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.LocalDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_LOCAL;
++    
++    if(oLiveData) {
++        if(YAHOO.lang.isArray(oLiveData)) { // array
++            this.responseType = DS.TYPE_JSARRAY;
++        }
++         // xml
++        else if(oLiveData.nodeType && oLiveData.nodeType == 9) {
++            this.responseType = DS.TYPE_XML;
++        }
++        else if(oLiveData.nodeName && (oLiveData.nodeName.toLowerCase() == "table")) { // table
++            this.responseType = DS.TYPE_HTMLTABLE;
++            oLiveData = oLiveData.cloneNode(true);
++        }    
++        else if(YAHOO.lang.isString(oLiveData)) { // text
++            this.responseType = DS.TYPE_TEXT;
++        }
++        else if(YAHOO.lang.isObject(oLiveData)) { // json
++            this.responseType = DS.TYPE_JSON;
++        }
++    }
++    else {
++        oLiveData = [];
++        this.responseType = DS.TYPE_JSARRAY;
++    }
++    
++    util.LocalDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// LocalDataSource extends DataSourceBase
++lang.extend(util.LocalDataSource, DS);
++
++// Copy static members to LocalDataSource class
++lang.augmentObject(util.LocalDataSource, DS);
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * FunctionDataSource class for JavaScript functions.
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.FunctionDataSource
++ * @extends YAHOO.util.DataSourceBase  
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.FunctionDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_JSFUNCTION;
++    oLiveData = oLiveData || function() {};
++    
++    util.FunctionDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// FunctionDataSource extends DataSourceBase
++lang.extend(util.FunctionDataSource, DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// FunctionDataSource public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Context in which to execute the function. By default, is the DataSource
++ * instance itself. If set, the function will receive the DataSource instance
++ * as an additional argument. 
++ *
++ * @property scope
++ * @type Object
++ * @default null
++ */
++scope : null,
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// FunctionDataSource public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Overriding method passes query to a function. The returned response is then
++ * forwarded to the handleResponse function.
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId,request:oRequest,callback:oCallback,caller:oCaller});
++
++    // Pass the request in as a parameter and
++    // forward the return value to the handler
++    
++    
++    var oRawResponse = (this.scope) ? this.liveData.call(this.scope, oRequest, this) : this.liveData(oRequest);
++    
++    // Try to sniff data type if it has not been defined
++    if(this.responseType === DS.TYPE_UNKNOWN) {
++        if(YAHOO.lang.isArray(oRawResponse)) { // array
++            this.responseType = DS.TYPE_JSARRAY;
++        }
++         // xml
++        else if(oRawResponse && oRawResponse.nodeType && oRawResponse.nodeType == 9) {
++            this.responseType = DS.TYPE_XML;
++        }
++        else if(oRawResponse && oRawResponse.nodeName && (oRawResponse.nodeName.toLowerCase() == "table")) { // table
++            this.responseType = DS.TYPE_HTMLTABLE;
++        }    
++        else if(YAHOO.lang.isObject(oRawResponse)) { // json
++            this.responseType = DS.TYPE_JSON;
++        }
++        else if(YAHOO.lang.isString(oRawResponse)) { // text
++            this.responseType = DS.TYPE_TEXT;
++        }
++    }
++
++    this.handleResponse(oRequest, oRawResponse, oCallback, oCaller, tId);
++    return tId;
++}
++
++});
++
++// Copy static members to FunctionDataSource class
++lang.augmentObject(util.FunctionDataSource, DS);
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * ScriptNodeDataSource class for accessing remote data via the YUI Get Utility. 
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.ScriptNodeDataSource
++ * @extends YAHOO.util.DataSourceBase  
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.ScriptNodeDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_SCRIPTNODE;
++    oLiveData = oLiveData || "";
++    
++    util.ScriptNodeDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// ScriptNodeDataSource extends DataSourceBase
++lang.extend(util.ScriptNodeDataSource, DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// ScriptNodeDataSource public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Alias to YUI Get Utility, to allow implementers to use a custom class.
++ *
++ * @property getUtility
++ * @type Object
++ * @default YAHOO.util.Get
++ */
++getUtility : util.Get,
++
++/**
++ * 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"
++ */
++asyncMode : "allowAll",
++
++/**
++ * Callback string parameter name sent to the remote script. By default,
++ * requests are sent to
++ * &#60;URI&#62;?&#60;scriptCallbackParam&#62;=callbackFunction
++ *
++ * @property scriptCallbackParam
++ * @type String
++ * @default "callback"
++ */
++scriptCallbackParam : "callback",
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// ScriptNodeDataSource public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Creates a request callback that gets appended to the script URI. Implementers
++ * can customize this string to match their server's query syntax.
++ *
++ * @method generateRequestCallback
++ * @return {String} String fragment that gets appended to script URI that 
++ * specifies the callback function 
++ */
++generateRequestCallback : function(id) {
++    return "&" + this.scriptCallbackParam + "=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]" ;
++},
++
++/**
++ * Overridable method gives implementers access to modify the URI before the dynamic
++ * script node gets inserted. Implementers should take care not to return an
++ * invalid URI.
++ *
++ * @method doBeforeGetScriptNode
++ * @param {String} URI to the script 
++ * @return {String} URI to the script
++ */
++doBeforeGetScriptNode : function(sUri) {
++    return sUri;
++},
++
++/**
++ * Overriding method passes query to Get Utility. The returned
++ * response is then forwarded to the handleResponse function.
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId,request:oRequest,callback:oCallback,caller:oCaller});
++    
++    // If there are no global pending requests, it is safe to purge global callback stack and global counter
++    if(util.ScriptNodeDataSource._nPending === 0) {
++        util.ScriptNodeDataSource.callbacks = [];
++        util.ScriptNodeDataSource._nId = 0;
++    }
++    
++    // ID for this request
++    var id = util.ScriptNodeDataSource._nId;
++    util.ScriptNodeDataSource._nId++;
++    
++    // Dynamically add handler function with a closure to the callback stack
++    var oSelf = this;
++    util.ScriptNodeDataSource.callbacks[id] = function(oRawResponse) {
++        if((oSelf.asyncMode !== "ignoreStaleResponses")||
++                (id === util.ScriptNodeDataSource.callbacks.length-1)) { // Must ignore stale responses
++                
++            // Try to sniff data type if it has not been defined
++            if(oSelf.responseType === DS.TYPE_UNKNOWN) {
++                if(YAHOO.lang.isArray(oRawResponse)) { // array
++                    oSelf.responseType = DS.TYPE_JSARRAY;
++                }
++                 // xml
++                else if(oRawResponse.nodeType && oRawResponse.nodeType == 9) {
++                    oSelf.responseType = DS.TYPE_XML;
++                }
++                else if(oRawResponse.nodeName && (oRawResponse.nodeName.toLowerCase() == "table")) { // table
++                    oSelf.responseType = DS.TYPE_HTMLTABLE;
++                }    
++                else if(YAHOO.lang.isObject(oRawResponse)) { // json
++                    oSelf.responseType = DS.TYPE_JSON;
++                }
++                else if(YAHOO.lang.isString(oRawResponse)) { // text
++                    oSelf.responseType = DS.TYPE_TEXT;
++                }
++            }
++
++            oSelf.handleResponse(oRequest, oRawResponse, oCallback, oCaller, tId);
++        }
++        else {
++            YAHOO.log("DataSource ignored stale response for tId " + tId + "(" + oRequest + ")", "info", oSelf.toString());
++        }
++    
++        delete util.ScriptNodeDataSource.callbacks[id];
++    };
++    
++    // We are now creating a request
++    util.ScriptNodeDataSource._nPending++;
++    var sUri = this.liveData + oRequest + this.generateRequestCallback(id);
++    sUri = this.doBeforeGetScriptNode(sUri);
++    YAHOO.log("DataSource is querying URL " + sUri, "info", this.toString());
++    this.getUtility.script(sUri,
++            {autopurge: true,
++            onsuccess: util.ScriptNodeDataSource._bumpPendingDown,
++            onfail: util.ScriptNodeDataSource._bumpPendingDown});
++
++    return tId;
++}
++
++});
++
++// Copy static members to ScriptNodeDataSource class
++lang.augmentObject(util.ScriptNodeDataSource, DS);
++
++// Copy static members to ScriptNodeDataSource class
++lang.augmentObject(util.ScriptNodeDataSource,  {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// ScriptNodeDataSource private static properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Unique ID to track requests.
++ *
++ * @property _nId
++ * @type Number
++ * @private
++ * @static
++ */
++_nId : 0,
++
++/**
++ * Counter for pending requests. When this is 0, it is safe to purge callbacks
++ * array.
++ *
++ * @property _nPending
++ * @type Number
++ * @private
++ * @static
++ */
++_nPending : 0,
++
++/**
++ * Global array of callback functions, one for each request sent.
++ *
++ * @property callbacks
++ * @type Function[]
++ * @static
++ */
++callbacks : []
++
++});
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * XHRDataSource class for accessing remote data via the YUI Connection Manager
++ * Utility
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.XHRDataSource
++ * @extends YAHOO.util.DataSourceBase  
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.XHRDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_XHR;
++    this.connMgr = this.connMgr || util.Connect;
++    oLiveData = oLiveData || "";
++    
++    util.XHRDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// XHRDataSource extends DataSourceBase
++lang.extend(util.XHRDataSource, DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// XHRDataSource public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++ /**
++ * Alias to YUI Connection Manager, to allow implementers to use a custom class.
++ *
++ * @property connMgr
++ * @type Object
++ * @default YAHOO.util.Connect
++ */
++connMgr: null,
++
++ /**
++ * 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 connXhrMode
++ * @type String
++ * @default "allowAll"
++ */
++connXhrMode: "allowAll",
++
++ /**
++ * True if data is to be sent via POST. By default, data will be sent via GET.
++ *
++ * @property connMethodPost
++ * @type Boolean
++ * @default false
++ */
++connMethodPost: false,
++
++ /**
++ * The connection timeout defines how many  milliseconds the XHR connection will
++ * wait for a server response. Any non-zero value will enable the Connection Manager's
++ * Auto-Abort feature.
++ *
++ * @property connTimeout
++ * @type Number
++ * @default 0
++ */
++connTimeout: 0,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// XHRDataSource public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Overriding method passes query to Connection Manager. The returned
++ * response is then forwarded to the handleResponse function.
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++
++    var oRawResponse = null;
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId,request:oRequest,callback:oCallback,caller:oCaller});
++
++    // Set up the callback object and
++    // pass the request in as a URL query and
++    // forward the response to the handler
++    var oSelf = this;
++    var oConnMgr = this.connMgr;
++    var oQueue = this._oQueue;
++
++    /**
++     * Define Connection Manager success handler
++     *
++     * @method _xhrSuccess
++     * @param oResponse {Object} HTTPXMLRequest object
++     * @private
++     */
++    var _xhrSuccess = function(oResponse) {
++        // If response ID does not match last made request ID,
++        // silently fail and wait for the next response
++        if(oResponse && (this.connXhrMode == "ignoreStaleResponses") &&
++                (oResponse.tId != oQueue.conn.tId)) {
++            YAHOO.log("Ignored stale response", "warn", this.toString());
++            return null;
++        }
++        // Error if no response
++        else if(!oResponse) {
++            this.fireEvent("dataErrorEvent", {request:oRequest, response:null,
++                    callback:oCallback, caller:oCaller,
++                    message:DS.ERROR_DATANULL});
++            YAHOO.log(DS.ERROR_DATANULL, "error", this.toString());
++
++            // Send error response back to the caller with the error flag on
++            DS.issueCallback(oCallback,[oRequest, {error:true}], true, oCaller);
++
++            return null;
++        }
++        // Forward to handler
++        else {
++            // Try to sniff data type if it has not been defined
++            if(this.responseType === DS.TYPE_UNKNOWN) {
++                var ctype = (oResponse.getResponseHeader) ? oResponse.getResponseHeader["Content-Type"] : null;
++                if(ctype) {
++                    // xml
++                    if(ctype.indexOf("text/xml") > -1) {
++                        this.responseType = DS.TYPE_XML;
++                    }
++                    else if(ctype.indexOf("application/json") > -1) { // json
++                        this.responseType = DS.TYPE_JSON;
++                    }
++                    else if(ctype.indexOf("text/plain") > -1) { // text
++                        this.responseType = DS.TYPE_TEXT;
++                    }
++                }
++            }
++            this.handleResponse(oRequest, oResponse, oCallback, oCaller, tId);
++        }
++    };
++
++    /**
++     * Define Connection Manager failure handler
++     *
++     * @method _xhrFailure
++     * @param oResponse {Object} HTTPXMLRequest object
++     * @private
++     */
++    var _xhrFailure = function(oResponse) {
++        this.fireEvent("dataErrorEvent", {request:oRequest, response: oResponse,
++                callback:oCallback, caller:oCaller,
++                message:DS.ERROR_DATAINVALID});
++        YAHOO.log(DS.ERROR_DATAINVALID + ": " +
++                oResponse.statusText, "error", this.toString());
++
++        // Backward compatibility
++        if(lang.isString(this.liveData) && lang.isString(oRequest) &&
++            (this.liveData.lastIndexOf("?") !== this.liveData.length-1) &&
++            (oRequest.indexOf("?") !== 0)){
++                YAHOO.log("DataSources using XHR no longer automatically supply " + 
++                "a \"?\" between the host and query parameters" +
++                " -- please check that the request URL is correct", "warn", this.toString());
++        }
++
++        // Send failure response back to the caller with the error flag on
++        oResponse = oResponse || {};
++        oResponse.error = true;
++        DS.issueCallback(oCallback,[oRequest,oResponse],true, oCaller);
++
++        return null;
++    };
++
++    /**
++     * Define Connection Manager callback object
++     *
++     * @property _xhrCallback
++     * @param oResponse {Object} HTTPXMLRequest object
++     * @private
++     */
++     var _xhrCallback = {
++        success:_xhrSuccess,
++        failure:_xhrFailure,
++        scope: this
++    };
++
++    // Apply Connection Manager timeout
++    if(lang.isNumber(this.connTimeout)) {
++        _xhrCallback.timeout = this.connTimeout;
++    }
++
++    // Cancel stale requests
++    if(this.connXhrMode == "cancelStaleRequests") {
++            // Look in queue for stale requests
++            if(oQueue.conn) {
++                if(oConnMgr.abort) {
++                    oConnMgr.abort(oQueue.conn);
++                    oQueue.conn = null;
++                    YAHOO.log("Canceled stale request", "warn", this.toString());
++                }
++                else {
++                    YAHOO.log("Could not find Connection Manager abort() function", "error", this.toString());
++                }
++            }
++    }
++
++    // Get ready to send the request URL
++    if(oConnMgr && oConnMgr.asyncRequest) {
++        var sLiveData = this.liveData;
++        var isPost = this.connMethodPost;
++        var sMethod = (isPost) ? "POST" : "GET";
++        // Validate request
++        var sUri = (isPost || !lang.isValue(oRequest)) ? sLiveData : sLiveData+oRequest;
++        var sRequest = (isPost) ? oRequest : null;
++
++        // Send the request right away
++        if(this.connXhrMode != "queueRequests") {
++            oQueue.conn = oConnMgr.asyncRequest(sMethod, sUri, _xhrCallback, sRequest);
++        }
++        // Queue up then send the request
++        else {
++            // Found a request already in progress
++            if(oQueue.conn) {
++                var allRequests = oQueue.requests;
++                // Add request to queue
++                allRequests.push({request:oRequest, callback:_xhrCallback});
++
++                // Interval needs to be started
++                if(!oQueue.interval) {
++                    oQueue.interval = setInterval(function() {
++                        // Connection is in progress
++                        if(oConnMgr.isCallInProgress(oQueue.conn)) {
++                            return;
++                        }
++                        else {
++                            // Send next request
++                            if(allRequests.length > 0) {
++                                // Validate request
++                                sUri = (isPost || !lang.isValue(allRequests[0].request)) ? sLiveData : sLiveData+allRequests[0].request;
++                                sRequest = (isPost) ? allRequests[0].request : null;
++                                oQueue.conn = oConnMgr.asyncRequest(sMethod, sUri, allRequests[0].callback, sRequest);
++
++                                // Remove request from queue
++                                allRequests.shift();
++                            }
++                            // No more requests
++                            else {
++                                clearInterval(oQueue.interval);
++                                oQueue.interval = null;
++                            }
++                        }
++                    }, 50);
++                }
++            }
++            // Nothing is in progress
++            else {
++                oQueue.conn = oConnMgr.asyncRequest(sMethod, sUri, _xhrCallback, sRequest);
++            }
++        }
++    }
++    else {
++        YAHOO.log("Could not find Connection Manager asyncRequest() function", "error", this.toString());
++        // Send null response back to the caller with the error flag on
++        DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);
++    }
++
++    return tId;
++}
++
++});
++
++// Copy static members to XHRDataSource class
++lang.augmentObject(util.XHRDataSource, DS);
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Factory class for creating a BaseDataSource subclass instance. The sublcass is
++ * determined by oLiveData's type, unless the dataType config is explicitly passed in.  
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.DataSource
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.DataSource = function(oLiveData, oConfigs) {
++    oConfigs = oConfigs || {};
++    
++    // Point to one of the subclasses, first by dataType if given, then by sniffing oLiveData type.
++    var dataType = oConfigs.dataType;
++    if(dataType) {
++        if(dataType == DS.TYPE_LOCAL) {
++            lang.augmentObject(util.DataSource, util.LocalDataSource);
++            return new util.LocalDataSource(oLiveData, oConfigs);            
++        }
++        else if(dataType == DS.TYPE_XHR) {
++            lang.augmentObject(util.DataSource, util.XHRDataSource);
++            return new util.XHRDataSource(oLiveData, oConfigs);            
++        }
++        else if(dataType == DS.TYPE_SCRIPTNODE) {
++            lang.augmentObject(util.DataSource, util.ScriptNodeDataSource);
++            return new util.ScriptNodeDataSource(oLiveData, oConfigs);            
++        }
++        else if(dataType == DS.TYPE_JSFUNCTION) {
++            lang.augmentObject(util.DataSource, util.FunctionDataSource);
++            return new util.FunctionDataSource(oLiveData, oConfigs);            
++        }
++    }
++    
++    if(YAHOO.lang.isString(oLiveData)) { // strings default to xhr
++        lang.augmentObject(util.DataSource, util.XHRDataSource);
++        return new util.XHRDataSource(oLiveData, oConfigs);
++    }
++    else if(YAHOO.lang.isFunction(oLiveData)) {
++        lang.augmentObject(util.DataSource, util.FunctionDataSource);
++        return new util.FunctionDataSource(oLiveData, oConfigs);
++    }
++    else { // ultimate default is local
++        lang.augmentObject(util.DataSource, util.LocalDataSource);
++        return new util.LocalDataSource(oLiveData, oConfigs);
++    }
++};
++
++// Copy static members to DataSource class
++lang.augmentObject(util.DataSource, DS);
++
++})();
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The static Number class provides helper functions to deal with data of type
++ * Number.
++ *
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @class Number
++ * @static
++ */
++ YAHOO.util.Number = {
++ 
++     /**
++     * Takes a native JavaScript Number and formats to string for display to user.
++     *
++     * @method format
++     * @param nData {Number} Number.
++     * @param oConfig {Object} (Optional) Optional configuration values:
++     *  <dl>
++     *   <dt>prefix {String}</dd>
++     *   <dd>String prepended before each number, like a currency designator "$"</dd>
++     *   <dt>decimalPlaces {Number}</dd>
++     *   <dd>Number of decimal places to round.</dd>
++     *   <dt>decimalSeparator {String}</dd>
++     *   <dd>Decimal separator</dd>
++     *   <dt>thousandsSeparator {String}</dd>
++     *   <dd>Thousands separator</dd>
++     *   <dt>suffix {String}</dd>
++     *   <dd>String appended after each number, like " items" (note the space)</dd>
++     *   <dt>negativeFormat</dt>
++     *   <dd>String used as a guide for how to indicate negative numbers.  The first '#' character in the string will be replaced by the number.  Default '-#'.</dd>
++     *  </dl>
++     * @return {String} Formatted number for display. Note, the following values
++     * return as "": null, undefined, NaN, "".
++     */
++    format : function(n, cfg) {
++        if (!isFinite(+n)) {
++            return '';
++        }
++
++        n   = !isFinite(+n) ? 0 : +n;
++        cfg = YAHOO.lang.merge(YAHOO.util.Number.format.defaults, (cfg || {}));
++
++        var neg    = n < 0,        absN   = Math.abs(n),
++            places = cfg.decimalPlaces,
++            sep    = cfg.thousandsSeparator,
++            s, bits, i;
++
++        if (places < 0) {
++            // Get rid of the decimal info
++            s = absN - (absN % 1) + '';
++            i = s.length + places;
++
++            // avoid 123 vs decimalPlaces -4 (should return "0")
++            if (i > 0) {
++                    // leverage toFixed by making 123 => 0.123 for the rounding
++                    // operation, then add the appropriate number of zeros back on
++                s = Number('.' + s).toFixed(i).slice(2) +
++                    new Array(s.length - i + 1).join('0');
++            } else {
++                s = "0";
++            }
++        } else {        // There is a bug in IE's toFixed implementation:
++            // for n in {(-0.94, -0.5], [0.5, 0.94)} n.toFixed() returns 0
++            // instead of -1 and 1. Manually handle that case.
++            s = absN < 1 && absN >= 0.5 && !places ? '1' : absN.toFixed(places);
++        }
++
++        if (absN > 1000) {
++            bits  = s.split(/\D/);
++            i  = bits[0].length % 3 || 3;
++
++            bits[0] = bits[0].slice(0,i) +
++                      bits[0].slice(i).replace(/(\d{3})/g, sep + '$1');
++
++            s = bits.join(cfg.decimalSeparator);
++        }
++
++        s = cfg.prefix + s + cfg.suffix;
++
++        return neg ? cfg.negativeFormat.replace(/#/,s) : s;
++    }
++};
++YAHOO.util.Number.format.defaults = {
++    decimalSeparator : '.',
++    decimalPlaces    : null,
++    thousandsSeparator : '',
++    prefix : '',
++    suffix : '',
++    negativeFormat : '-#'
++};
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++(function () {
++
++var xPad=function (x, pad, r)
++{
++    if(typeof r === 'undefined')
++    {
++        r=10;
++    }
++    for( ; parseInt(x, 10)<r && r>1; r/=10) {
++        x = pad.toString() + x;
++    }
++    return x.toString();
++};
++
++
++/**
++ * The static Date class provides helper functions to deal with data of type Date.
++ *
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @class Date
++ * @static
++ */
++ var Dt = {
++    formats: {
++        a: function (d, l) { return l.a[d.getDay()]; },
++        A: function (d, l) { return l.A[d.getDay()]; },
++        b: function (d, l) { return l.b[d.getMonth()]; },
++        B: function (d, l) { return l.B[d.getMonth()]; },
++        C: function (d) { return xPad(parseInt(d.getFullYear()/100, 10), 0); },
++        d: ['getDate', '0'],
++        e: ['getDate', ' '],
++        g: function (d) { return xPad(parseInt(Dt.formats.G(d)%100, 10), 0); },
++        G: function (d) {
++                var y = d.getFullYear();
++                var V = parseInt(Dt.formats.V(d), 10);
++                var W = parseInt(Dt.formats.W(d), 10);
++    
++                if(W > V) {
++                    y++;
++                } else if(W===0 && V>=52) {
++                    y--;
++                }
++    
++                return y;
++            },
++        H: ['getHours', '0'],
++        I: function (d) { var I=d.getHours()%12; return xPad(I===0?12:I, 0); },
++        j: function (d) {
++                var gmd_1 = new Date('' + d.getFullYear() + '/1/1 GMT');
++                var gmdate = new Date('' + d.getFullYear() + '/' + (d.getMonth()+1) + '/' + d.getDate() + ' GMT');
++                var ms = gmdate - gmd_1;
++                var doy = parseInt(ms/60000/60/24, 10)+1;
++                return xPad(doy, 0, 100);
++            },
++        k: ['getHours', ' '],
++        l: function (d) { var I=d.getHours()%12; return xPad(I===0?12:I, ' '); },
++        m: function (d) { return xPad(d.getMonth()+1, 0); },
++        M: ['getMinutes', '0'],
++        p: function (d, l) { return l.p[d.getHours() >= 12 ? 1 : 0 ]; },
++        P: function (d, l) { return l.P[d.getHours() >= 12 ? 1 : 0 ]; },
++        s: function (d, l) { return parseInt(d.getTime()/1000, 10); },
++        S: ['getSeconds', '0'],
++        u: function (d) { var dow = d.getDay(); return dow===0?7:dow; },
++        U: function (d) {
++                var doy = parseInt(Dt.formats.j(d), 10);
++                var rdow = 6-d.getDay();
++                var woy = parseInt((doy+rdow)/7, 10);
++                return xPad(woy, 0);
++            },
++        V: function (d) {
++                var woy = parseInt(Dt.formats.W(d), 10);
++                var dow1_1 = (new Date('' + d.getFullYear() + '/1/1')).getDay();
++                // First week is 01 and not 00 as in the case of %U and %W,
++                // so we add 1 to the final result except if day 1 of the year
++                // is a Monday (then %W returns 01).
++                // We also need to subtract 1 if the day 1 of the year is 
++                // Friday-Sunday, so the resulting equation becomes:
++                var idow = woy + (dow1_1 > 4 || dow1_1 <= 1 ? 0 : 1);
++                if(idow === 53 && (new Date('' + d.getFullYear() + '/12/31')).getDay() < 4)
++                {
++                    idow = 1;
++                }
++                else if(idow === 0)
++                {
++                    idow = Dt.formats.V(new Date('' + (d.getFullYear()-1) + '/12/31'));
++                }
++    
++                return xPad(idow, 0);
++            },
++        w: 'getDay',
++        W: function (d) {
++                var doy = parseInt(Dt.formats.j(d), 10);
++                var rdow = 7-Dt.formats.u(d);
++                var woy = parseInt((doy+rdow)/7, 10);
++                return xPad(woy, 0, 10);
++            },
++        y: function (d) { return xPad(d.getFullYear()%100, 0); },
++        Y: 'getFullYear',
++        z: function (d) {
++                var o = d.getTimezoneOffset();
++                var H = xPad(parseInt(Math.abs(o/60), 10), 0);
++                var M = xPad(Math.abs(o%60), 0);
++                return (o>0?'-':'+') + H + M;
++            },
++        Z: function (d) {
++		var tz = d.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/, '$2').replace(/[a-z ]/g, '');
++		if(tz.length > 4) {
++			tz = Dt.formats.z(d);
++		}
++		return tz;
++	},
++        '%': function (d) { return '%'; }
++    },
++
++    aggregates: {
++        c: 'locale',
++        D: '%m/%d/%y',
++        F: '%Y-%m-%d',
++        h: '%b',
++        n: '\n',
++        r: 'locale',
++        R: '%H:%M',
++        t: '\t',
++        T: '%H:%M:%S',
++        x: 'locale',
++        X: 'locale'
++        //'+': '%a %b %e %T %Z %Y'
++    },
++
++     /**
++     * Takes a native JavaScript Date and formats to string for display to user.
++     *
++     * @method format
++     * @param oDate {Date} Date.
++     * @param oConfig {Object} (Optional) Object literal of configuration values:
++     *  <dl>
++     *   <dt>format &lt;String&gt;</dt>
++     *   <dd>
++     *   <p>
++     *   Any strftime string is supported, such as "%I:%M:%S %p". strftime has several format specifiers defined by the Open group at 
++     *   <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html">http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html</a>
++     *   </p>
++     *   <p>   
++     *   PHP added a few of its own, defined at <a href="http://www.php.net/strftime">http://www.php.net/strftime</a>
++     *   </p>
++     *   <p>
++     *   This javascript implementation supports all the PHP specifiers and a few more.  The full list is below:
++     *   </p>
++     *   <dl>
++     *    <dt>%a</dt> <dd>abbreviated weekday name according to the current locale</dd>
++     *    <dt>%A</dt> <dd>full weekday name according to the current locale</dd>
++     *    <dt>%b</dt> <dd>abbreviated month name according to the current locale</dd>
++     *    <dt>%B</dt> <dd>full month name according to the current locale</dd>
++     *    <dt>%c</dt> <dd>preferred date and time representation for the current locale</dd>
++     *    <dt>%C</dt> <dd>century number (the year divided by 100 and truncated to an integer, range 00 to 99)</dd>
++     *    <dt>%d</dt> <dd>day of the month as a decimal number (range 01 to 31)</dd>
++     *    <dt>%D</dt> <dd>same as %m/%d/%y</dd>
++     *    <dt>%e</dt> <dd>day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')</dd>
++     *    <dt>%F</dt> <dd>same as %Y-%m-%d (ISO 8601 date format)</dd>
++     *    <dt>%g</dt> <dd>like %G, but without the century</dd>
++     *    <dt>%G</dt> <dd>The 4-digit year corresponding to the ISO week number</dd>
++     *    <dt>%h</dt> <dd>same as %b</dd>
++     *    <dt>%H</dt> <dd>hour as a decimal number using a 24-hour clock (range 00 to 23)</dd>
++     *    <dt>%I</dt> <dd>hour as a decimal number using a 12-hour clock (range 01 to 12)</dd>
++     *    <dt>%j</dt> <dd>day of the year as a decimal number (range 001 to 366)</dd>
++     *    <dt>%k</dt> <dd>hour as a decimal number using a 24-hour clock (range 0 to 23); single digits are preceded by a blank. (See also %H.)</dd>
++     *    <dt>%l</dt> <dd>hour as a decimal number using a 12-hour clock (range 1 to 12); single digits are preceded by a blank. (See also %I.) </dd>
++     *    <dt>%m</dt> <dd>month as a decimal number (range 01 to 12)</dd>
++     *    <dt>%M</dt> <dd>minute as a decimal number</dd>
++     *    <dt>%n</dt> <dd>newline character</dd>
++     *    <dt>%p</dt> <dd>either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale</dd>
++     *    <dt>%P</dt> <dd>like %p, but lower case</dd>
++     *    <dt>%r</dt> <dd>time in a.m. and p.m. notation equal to %I:%M:%S %p</dd>
++     *    <dt>%R</dt> <dd>time in 24 hour notation equal to %H:%M</dd>
++     *    <dt>%s</dt> <dd>number of seconds since the Epoch, ie, since 1970-01-01 00:00:00 UTC</dd>
++     *    <dt>%S</dt> <dd>second as a decimal number</dd>
++     *    <dt>%t</dt> <dd>tab character</dd>
++     *    <dt>%T</dt> <dd>current time, equal to %H:%M:%S</dd>
++     *    <dt>%u</dt> <dd>weekday as a decimal number [1,7], with 1 representing Monday</dd>
++     *    <dt>%U</dt> <dd>week number of the current year as a decimal number, starting with the
++     *            first Sunday as the first day of the first week</dd>
++     *    <dt>%V</dt> <dd>The ISO 8601:1988 week number of the current year as a decimal number,
++     *            range 01 to 53, where week 1 is the first week that has at least 4 days
++     *            in the current year, and with Monday as the first day of the week.</dd>
++     *    <dt>%w</dt> <dd>day of the week as a decimal, Sunday being 0</dd>
++     *    <dt>%W</dt> <dd>week number of the current year as a decimal number, starting with the
++     *            first Monday as the first day of the first week</dd>
++     *    <dt>%x</dt> <dd>preferred date representation for the current locale without the time</dd>
++     *    <dt>%X</dt> <dd>preferred time representation for the current locale without the date</dd>
++     *    <dt>%y</dt> <dd>year as a decimal number without a century (range 00 to 99)</dd>
++     *    <dt>%Y</dt> <dd>year as a decimal number including the century</dd>
++     *    <dt>%z</dt> <dd>numerical time zone representation</dd>
++     *    <dt>%Z</dt> <dd>time zone name or abbreviation</dd>
++     *    <dt>%%</dt> <dd>a literal `%' character</dd>
++     *   </dl>
++     *  </dd>
++     * </dl>
++     * @param sLocale {String} (Optional) The locale to use when displaying days of week,
++     *  months of the year, and other locale specific strings.  The following locales are
++     *  built in:
++     *  <dl>
++     *   <dt>en</dt>
++     *   <dd>English</dd>
++     *   <dt>en-US</dt>
++     *   <dd>US English</dd>
++     *   <dt>en-GB</dt>
++     *   <dd>British English</dd>
++     *   <dt>en-AU</dt>
++     *   <dd>Australian English (identical to British English)</dd>
++     *  </dl>
++     *  More locales may be added by subclassing of YAHOO.util.DateLocale.
++     *  See YAHOO.util.DateLocale for more information.
++     * @return {String} Formatted date for display.
++     * @sa YAHOO.util.DateLocale
++     */
++    format : function (oDate, oConfig, sLocale) {
++        oConfig = oConfig || {};
++        
++        if(!(oDate instanceof Date)) {
++            return YAHOO.lang.isValue(oDate) ? oDate : "";
++        }
++
++        var format = oConfig.format || "%m/%d/%Y";
++
++        // Be backwards compatible, support strings that are
++        // exactly equal to YYYY/MM/DD, DD/MM/YYYY and MM/DD/YYYY
++        if(format === 'YYYY/MM/DD') {
++            format = '%Y/%m/%d';
++        } else if(format === 'DD/MM/YYYY') {
++            format = '%d/%m/%Y';
++        } else if(format === 'MM/DD/YYYY') {
++            format = '%m/%d/%Y';
++        }
++        // end backwards compatibility block
++ 
++        sLocale = sLocale || "en";
++
++        // Make sure we have a definition for the requested locale, or default to en.
++        if(!(sLocale in YAHOO.util.DateLocale)) {
++            if(sLocale.replace(/-[a-zA-Z]+$/, '') in YAHOO.util.DateLocale) {
++                sLocale = sLocale.replace(/-[a-zA-Z]+$/, '');
++            } else {
++                sLocale = "en";
++            }
++        }
++
++        var aLocale = YAHOO.util.DateLocale[sLocale];
++
++        var replace_aggs = function (m0, m1) {
++            var f = Dt.aggregates[m1];
++            return (f === 'locale' ? aLocale[m1] : f);
++        };
++
++        var replace_formats = function (m0, m1) {
++            var f = Dt.formats[m1];
++            if(typeof f === 'string') {             // string => built in date function
++                return oDate[f]();
++            } else if(typeof f === 'function') {    // function => our own function
++                return f.call(oDate, oDate, aLocale);
++            } else if(typeof f === 'object' && typeof f[0] === 'string') {  // built in function with padding
++                return xPad(oDate[f[0]](), f[1]);
++            } else {
++                return m1;
++            }
++        };
++
++        // First replace aggregates (run in a loop because an agg may be made up of other aggs)
++        while(format.match(/%[cDFhnrRtTxX]/)) {
++            format = format.replace(/%([cDFhnrRtTxX])/g, replace_aggs);
++        }
++
++        // Now replace formats (do not run in a loop otherwise %%a will be replace with the value of %a)
++        var str = format.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g, replace_formats);
++
++        replace_aggs = replace_formats = undefined;
++
++        return str;
++    }
++ };
++ 
++ YAHOO.namespace("YAHOO.util");
++ YAHOO.util.Date = Dt;
++
++/**
++ * The DateLocale class is a container and base class for all
++ * localised date strings used by YAHOO.util.Date. It is used
++ * internally, but may be extended to provide new date localisations.
++ *
++ * To create your own DateLocale, follow these steps:
++ * <ol>
++ *  <li>Find an existing locale that matches closely with your needs</li>
++ *  <li>Use this as your base class.  Use YAHOO.util.DateLocale if nothing
++ *   matches.</li>
++ *  <li>Create your own class as an extension of the base class using
++ *   YAHOO.lang.merge, and add your own localisations where needed.</li>
++ * </ol>
++ * See the YAHOO.util.DateLocale['en-US'] and YAHOO.util.DateLocale['en-GB']
++ * classes which extend YAHOO.util.DateLocale['en'].
++ *
++ * For example, to implement locales for French french and Canadian french,
++ * we would do the following:
++ * <ol>
++ *  <li>For French french, we have no existing similar locale, so use
++ *   YAHOO.util.DateLocale as the base, and extend it:
++ *   <pre>
++ *      YAHOO.util.DateLocale['fr'] = YAHOO.lang.merge(YAHOO.util.DateLocale, {
++ *          a: ['dim', 'lun', 'mar', 'mer', 'jeu', 'ven', 'sam'],
++ *          A: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
++ *          b: ['jan', 'f&eacute;v', 'mar', 'avr', 'mai', 'jun', 'jui', 'ao&ucirc;', 'sep', 'oct', 'nov', 'd&eacute;c'],
++ *          B: ['janvier', 'f&eacute;vrier', 'mars', 'avril', 'mai', 'juin', 'juillet', 'ao&ucirc;t', 'septembre', 'octobre', 'novembre', 'd&eacute;cembre'],
++ *          c: '%a %d %b %Y %T %Z',
++ *          p: ['', ''],
++ *          P: ['', ''],
++ *          x: '%d.%m.%Y',
++ *          X: '%T'
++ *      });
++ *   </pre>
++ *  </li>
++ *  <li>For Canadian french, we start with French french and change the meaning of \%x:
++ *   <pre>
++ *      YAHOO.util.DateLocale['fr-CA'] = YAHOO.lang.merge(YAHOO.util.DateLocale['fr'], {
++ *          x: '%Y-%m-%d'
++ *      });
++ *   </pre>
++ *  </li>
++ * </ol>
++ *
++ * With that, you can use your new locales:
++ * <pre>
++ *    var d = new Date("2008/04/22");
++ *    YAHOO.util.Date.format(d, {format: "%A, %d %B == %x"}, "fr");
++ * </pre>
++ * will return:
++ * <pre>
++ *    mardi, 22 avril == 22.04.2008
++ * </pre>
++ * And
++ * <pre>
++ *    YAHOO.util.Date.format(d, {format: "%A, %d %B == %x"}, "fr-CA");
++ * </pre>
++ * Will return:
++ * <pre>
++ *   mardi, 22 avril == 2008-04-22
++ * </pre>
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @class DateLocale
++ */
++ YAHOO.util.DateLocale = {
++        a: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
++        A: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
++        b: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
++        B: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
++        c: '%a %d %b %Y %T %Z',
++        p: ['AM', 'PM'],
++        P: ['am', 'pm'],
++        r: '%I:%M:%S %p',
++        x: '%d/%m/%y',
++        X: '%T'
++ };
++
++ YAHOO.util.DateLocale['en'] = YAHOO.lang.merge(YAHOO.util.DateLocale, {});
++
++ YAHOO.util.DateLocale['en-US'] = YAHOO.lang.merge(YAHOO.util.DateLocale['en'], {
++        c: '%a %d %b %Y %I:%M:%S %p %Z',
++        x: '%m/%d/%Y',
++        X: '%I:%M:%S %p'
++ });
++
++ YAHOO.util.DateLocale['en-GB'] = YAHOO.lang.merge(YAHOO.util.DateLocale['en'], {
++        r: '%l:%M:%S %P %Z'
++ });
++ YAHOO.util.DateLocale['en-AU'] = YAHOO.lang.merge(YAHOO.util.DateLocale['en']);
++
++})();
++
++YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/datasource/datasource-min.js b/pylons_app/public/js/yui/datasource/datasource-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datasource/datasource-min.js
+@@ -0,0 +1,12 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var lang=YAHOO.lang,util=YAHOO.util,Ev=util.Event;util.DataSourceBase=function(oLiveData,oConfigs){if(oLiveData===null||oLiveData===undefined){return;}this.liveData=oLiveData;this._oQueue={interval:null,conn:null,requests:[]};this.responseSchema={};if(oConfigs&&(oConfigs.constructor==Object)){for(var sConfig in oConfigs){if(sConfig){this[sConfig]=oConfigs[sConfig];}}}var maxCacheEntries=this.maxCacheEntries;if(!lang.isNumber(maxCacheEntries)||(maxCacheEntries<0)){maxCacheEntries=0;}this._aIntervals=[];this.createEvent("cacheRequestEvent");this.createEvent("cacheResponseEvent");this.createEvent("requestEvent");this.createEvent("responseEvent");this.createEvent("responseParseEvent");this.createEvent("responseCacheEvent");this.createEvent("dataErrorEvent");this.createEvent("cacheFlushEvent");var DS=util.DataSourceBase;this._sName="DataSource instance"+DS._nIndex;DS._nIndex++;};var DS=util.DataSourceBase;lang.augmentObject(DS,{TYPE_UNKNOWN:-1,TYPE_JSARRAY:0,TYPE_JSFUNCTION:1,TYPE_XHR:2,TYPE_JSON:3,TYPE_XML:4,TYPE_TEXT:5,TYPE_HTMLTABLE:6,TYPE_SCRIPTNODE:7,TYPE_LOCAL:8,ERROR_DATAINVALID:"Invalid data",ERROR_DATANULL:"Null data",_nIndex:0,_nTransactionId:0,_getLocationValue:function(field,context){var locator=field.locator||field.key||field,xmldoc=context.ownerDocument||context,result,res,value=null;try{if(!lang.isUndefined(xmldoc.evaluate)){result=xmldoc.evaluate(locator,context,xmldoc.createNSResolver(!context.ownerDocument?context.documentElement:context.ownerDocument.documentElement),0,null);while(res=result.iterateNext()){value=res.textContent;}}else{xmldoc.setProperty("SelectionLanguage","XPath");result=context.selectNodes(locator)[0];value=result.value||result.text||null;}return value;}catch(e){}},issueCallback:function(callback,params,error,scope){if(lang.isFunction(callback)){callback.apply(scope,params);}else{if(lang.isObject(callback)){scope=callback.scope||scope||window;var callbackFunc=callback.success;if(error){callbackFunc=callback.failure;}if(callbackFunc){callbackFunc.apply(scope,params.concat([callback.argument]));}}}},parseString:function(oData){if(!lang.isValue(oData)){return null;}var string=oData+"";if(lang.isString(string)){return string;}else{return null;}},parseNumber:function(oData){if(!lang.isValue(oData)||(oData==="")){return null;}var number=oData*1;if(lang.isNumber(number)){return number;}else{return null;}},convertNumber:function(oData){return DS.parseNumber(oData);},parseDate:function(oData){var date=null;if(!(oData instanceof Date)){date=new Date(oData);}else{return oData;}if(date instanceof Date){return date;}else{return null;}},convertDate:function(oData){return DS.parseDate(oData);}});DS.Parser={string:DS.parseString,number:DS.parseNumber,date:DS.parseDate};DS.prototype={_sName:null,_aCache:null,_oQueue:null,_aIntervals:null,maxCacheEntries:0,liveData:null,dataType:DS.TYPE_UNKNOWN,responseType:DS.TYPE_UNKNOWN,responseSchema:null,useXPath:false,toString:function(){return this._sName;},getCachedResponse:function(oRequest,oCallback,oCaller){var aCache=this._aCache;if(this.maxCacheEntries>0){if(!aCache){this._aCache=[];}else{var nCacheLength=aCache.length;if(nCacheLength>0){var oResponse=null;this.fireEvent("cacheRequestEvent",{request:oRequest,callback:oCallback,caller:oCaller});for(var i=nCacheLength-1;i>=0;i--){var oCacheElem=aCache[i];if(this.isCacheHit(oRequest,oCacheElem.request)){oResponse=oCacheElem.response;this.fireEvent("cacheResponseEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});if(i<nCacheLength-1){aCache.splice(i,1);this.addToCache(oRequest,oResponse);}oResponse.cached=true;break;}}return oResponse;}}}else{if(aCache){this._aCache=null;}}return null;},isCacheHit:function(oRequest,oCachedRequest){return(oRequest===oCachedRequest);},addToCache:function(oRequest,oResponse){var aCache=this._aCache;if(!aCache){return;}while(aCache.length>=this.maxCacheEntries){aCache.shift();}var oCacheElem={request:oRequest,response:oResponse};aCache[aCache.length]=oCacheElem;this.fireEvent("responseCacheEvent",{request:oRequest,response:oResponse});},flushCache:function(){if(this._aCache){this._aCache=[];this.fireEvent("cacheFlushEvent");}},setInterval:function(nMsec,oRequest,oCallback,oCaller){if(lang.isNumber(nMsec)&&(nMsec>=0)){var oSelf=this;var nId=setInterval(function(){oSelf.makeConnection(oRequest,oCallback,oCaller);},nMsec);this._aIntervals.push(nId);return nId;}else{}},clearInterval:function(nId){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){if(tracker[i]===nId){tracker.splice(i,1);clearInterval(nId);}}},clearAllIntervals:function(){var tracker=this._aIntervals||[];for(var i=tracker.length-1;i>-1;i--){clearInterval(tracker[i]);}tracker=[];},sendRequest:function(oRequest,oCallback,oCaller){var oCachedResponse=this.getCachedResponse(oRequest,oCallback,oCaller);if(oCachedResponse){DS.issueCallback(oCallback,[oRequest,oCachedResponse],false,oCaller);return null;}return this.makeConnection(oRequest,oCallback,oCaller);},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=this.liveData;this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId;},handleResponse:function(oRequest,oRawResponse,oCallback,oCaller,tId){this.fireEvent("responseEvent",{tId:tId,request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});var xhr=(this.dataType==DS.TYPE_XHR)?true:false;var oParsedResponse=null;var oFullResponse=oRawResponse;if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oRawResponse&&oRawResponse.getResponseHeader)?oRawResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML;}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON;}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT;}}}}else{if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY;
++}else{if(oRawResponse&&oRawResponse.nodeType&&(oRawResponse.nodeType===9||oRawResponse.nodeType===1||oRawResponse.nodeType===11)){this.responseType=DS.TYPE_XML;}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT;}}}}}}}switch(this.responseType){case DS.TYPE_JSARRAY:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText;}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs);}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length);}if(oFullResponse.length>0){var arrayEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,arrayEnd+1);oFullResponse=eval("("+oFullResponse+")");}}}}}}catch(e1){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseArrayData(oRequest,oFullResponse);break;case DS.TYPE_JSON:if(xhr&&oRawResponse&&oRawResponse.responseText){oFullResponse=oRawResponse.responseText;}try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON){oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);}else{if(window.JSON&&JSON.parse){oFullResponse=JSON.parse.apply(JSON,parseArgs);}else{if(oFullResponse.parseJSON){oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));}else{while(oFullResponse.length>0&&(oFullResponse.charAt(0)!="{")&&(oFullResponse.charAt(0)!="[")){oFullResponse=oFullResponse.substring(1,oFullResponse.length);}if(oFullResponse.length>0){var objEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,objEnd+1);oFullResponse=eval("("+oFullResponse+")");}}}}}}catch(e){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseJSONData(oRequest,oFullResponse);break;case DS.TYPE_HTMLTABLE:if(xhr&&oRawResponse.responseText){var el=document.createElement("div");el.innerHTML=oRawResponse.responseText;oFullResponse=el.getElementsByTagName("table")[0];}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseHTMLTableData(oRequest,oFullResponse);break;case DS.TYPE_XML:if(xhr&&oRawResponse.responseXML){oFullResponse=oRawResponse.responseXML;}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseXMLData(oRequest,oFullResponse);break;case DS.TYPE_TEXT:if(xhr&&lang.isString(oRawResponse.responseText)){oFullResponse=oRawResponse.responseText;}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseTextData(oRequest,oFullResponse);break;default:oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback);oParsedResponse=this.parseData(oRequest,oFullResponse);break;}oParsedResponse=oParsedResponse||{};if(!oParsedResponse.results){oParsedResponse.results=[];}if(!oParsedResponse.meta){oParsedResponse.meta={};}if(!oParsedResponse.error){oParsedResponse=this.doBeforeCallback(oRequest,oFullResponse,oParsedResponse,oCallback);this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller});this.addToCache(oRequest,oParsedResponse);}else{oParsedResponse.error=true;this.fireEvent("dataErrorEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});}oParsedResponse.tId=tId;DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller);},doBeforeParseData:function(oRequest,oFullResponse,oCallback){return oFullResponse;},doBeforeCallback:function(oRequest,oFullResponse,oParsedResponse,oCallback){return oParsedResponse;},parseData:function(oRequest,oFullResponse){if(lang.isValue(oFullResponse)){var oParsedResponse={results:oFullResponse,meta:{}};return oParsedResponse;}return null;},parseArrayData:function(oRequest,oFullResponse){if(lang.isArray(oFullResponse)){var results=[],i,j,rec,field,data;if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(i=fields.length-1;i>=0;--i){if(typeof fields[i]!=="object"){fields[i]={key:fields[i]};}}var parsers={},p;for(i=fields.length-1;i>=0;--i){p=(typeof fields[i].parser==="function"?fields[i].parser:DS.Parser[fields[i].parser+""])||fields[i].converter;if(p){parsers[fields[i].key]=p;}}var arrType=lang.isArray(oFullResponse[0]);for(i=oFullResponse.length-1;i>-1;i--){var oResult={};rec=oFullResponse[i];if(typeof rec==="object"){for(j=fields.length-1;j>-1;j--){field=fields[j];data=arrType?rec[j]:rec[field.key];if(parsers[field.key]){data=parsers[field.key].call(this,data);}if(data===undefined){data=null;}oResult[field.key]=data;}}else{if(lang.isString(rec)){for(j=fields.length-1;j>-1;j--){field=fields[j];data=rec;if(parsers[field.key]){data=parsers[field.key].call(this,data);}if(data===undefined){data=null;}oResult[field.key]=data;}}}results[i]=oResult;}}else{results=oFullResponse;}var oParsedResponse={results:results};return oParsedResponse;}return null;},parseTextData:function(oRequest,oFullResponse){if(lang.isString(oFullResponse)){if(lang.isString(this.responseSchema.recordDelim)&&lang.isString(this.responseSchema.fieldDelim)){var oParsedResponse={results:[]};var recDelim=this.responseSchema.recordDelim;var fieldDelim=this.responseSchema.fieldDelim;if(oFullResponse.length>0){var newLength=oFullResponse.length-recDelim.length;if(oFullResponse.substr(newLength)==recDelim){oFullResponse=oFullResponse.substr(0,newLength);
++}if(oFullResponse.length>0){var recordsarray=oFullResponse.split(recDelim);for(var i=0,len=recordsarray.length,recIdx=0;i<len;++i){var bError=false,sRecord=recordsarray[i];if(lang.isString(sRecord)&&(sRecord.length>0)){var fielddataarray=recordsarray[i].split(fieldDelim);var oResult={};if(lang.isArray(this.responseSchema.fields)){var fields=this.responseSchema.fields;for(var j=fields.length-1;j>-1;j--){try{var data=fielddataarray[j];if(lang.isString(data)){if(data.charAt(0)=='"'){data=data.substr(1);}if(data.charAt(data.length-1)=='"'){data=data.substr(0,data.length-1);}var field=fields[j];var key=(lang.isValue(field.key))?field.key:field;if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}else{bError=true;}}catch(e){bError=true;}}}else{oResult=fielddataarray;}if(!bError){oParsedResponse.results[recIdx++]=oResult;}}}}}return oParsedResponse;}}return null;},parseXMLResult:function(result){var oResult={},schema=this.responseSchema;try{for(var m=schema.fields.length-1;m>=0;m--){var field=schema.fields[m];var key=(lang.isValue(field.key))?field.key:field;var data=null;if(this.useXPath){data=YAHOO.util.DataSource._getLocationValue(field,result);}else{var xmlAttr=result.attributes.getNamedItem(key);if(xmlAttr){data=xmlAttr.value;}else{var xmlNode=result.getElementsByTagName(key);if(xmlNode&&xmlNode.item(0)){var item=xmlNode.item(0);data=(item)?((item.text)?item.text:(item.textContent)?item.textContent:null):null;if(!data){var datapieces=[];for(var j=0,len=item.childNodes.length;j<len;j++){if(item.childNodes[j].nodeValue){datapieces[datapieces.length]=item.childNodes[j].nodeValue;}}if(datapieces.length>0){data=datapieces.join("");}}}}}if(data===null){data="";}if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}}catch(e){}return oResult;},parseXMLData:function(oRequest,oFullResponse){var bError=false,schema=this.responseSchema,oParsedResponse={meta:{}},xmlList=null,metaNode=schema.metaNode,metaLocators=schema.metaFields||{},i,k,loc,v;try{if(this.useXPath){for(k in metaLocators){oParsedResponse.meta[k]=YAHOO.util.DataSource._getLocationValue(metaLocators[k],oFullResponse);}}else{metaNode=metaNode?oFullResponse.getElementsByTagName(metaNode)[0]:oFullResponse;if(metaNode){for(k in metaLocators){if(lang.hasOwnProperty(metaLocators,k)){loc=metaLocators[k];v=metaNode.getElementsByTagName(loc)[0];if(v){v=v.firstChild.nodeValue;}else{v=metaNode.attributes.getNamedItem(loc);if(v){v=v.value;}}if(lang.isValue(v)){oParsedResponse.meta[k]=v;}}}}}xmlList=(schema.resultNode)?oFullResponse.getElementsByTagName(schema.resultNode):null;}catch(e){}if(!xmlList||!lang.isArray(schema.fields)){bError=true;}else{oParsedResponse.results=[];for(i=xmlList.length-1;i>=0;--i){var oResult=this.parseXMLResult(xmlList.item(i));oParsedResponse.results[i]=oResult;}}if(bError){oParsedResponse.error=true;}else{}return oParsedResponse;},parseJSONData:function(oRequest,oFullResponse){var oParsedResponse={results:[],meta:{}};if(lang.isObject(oFullResponse)&&this.responseSchema.resultsList){var schema=this.responseSchema,fields=schema.fields,resultsList=oFullResponse,results=[],metaFields=schema.metaFields||{},fieldParsers=[],fieldPaths=[],simpleFields=[],bError=false,i,len,j,v,key,parser,path;var buildPath=function(needle){var path=null,keys=[],i=0;if(needle){needle=needle.replace(/\[(['"])(.*?)\1\]/g,function(x,$1,$2){keys[i]=$2;return".@"+(i++);}).replace(/\[(\d+)\]/g,function(x,$1){keys[i]=parseInt($1,10)|0;return".@"+(i++);}).replace(/^\./,"");if(!/[^\w\.\$@]/.test(needle)){path=needle.split(".");for(i=path.length-1;i>=0;--i){if(path[i].charAt(0)==="@"){path[i]=keys[parseInt(path[i].substr(1),10)];}}}else{}}return path;};var walkPath=function(path,origin){var v=origin,i=0,len=path.length;for(;i<len&&v;++i){v=v[path[i]];}return v;};path=buildPath(schema.resultsList);if(path){resultsList=walkPath(path,oFullResponse);if(resultsList===undefined){bError=true;}}else{bError=true;}if(!resultsList){resultsList=[];}if(!lang.isArray(resultsList)){resultsList=[resultsList];}if(!bError){if(schema.fields){var field;for(i=0,len=fields.length;i<len;i++){field=fields[i];key=field.key||field;parser=((typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""])||field.converter;path=buildPath(key);if(parser){fieldParsers[fieldParsers.length]={key:key,parser:parser};}if(path){if(path.length>1){fieldPaths[fieldPaths.length]={key:key,path:path};}else{simpleFields[simpleFields.length]={key:key,path:path[0]};}}else{}}for(i=resultsList.length-1;i>=0;--i){var r=resultsList[i],rec={};if(r){for(j=simpleFields.length-1;j>=0;--j){rec[simpleFields[j].key]=(r[simpleFields[j].path]!==undefined)?r[simpleFields[j].path]:r[j];}for(j=fieldPaths.length-1;j>=0;--j){rec[fieldPaths[j].key]=walkPath(fieldPaths[j].path,r);}for(j=fieldParsers.length-1;j>=0;--j){var p=fieldParsers[j].key;rec[p]=fieldParsers[j].parser(rec[p]);if(rec[p]===undefined){rec[p]=null;}}}results[i]=rec;}}else{results=resultsList;}for(key in metaFields){if(lang.hasOwnProperty(metaFields,key)){path=buildPath(metaFields[key]);if(path){v=walkPath(path,oFullResponse);oParsedResponse.meta[key]=v;}}}}else{oParsedResponse.error=true;}oParsedResponse.results=results;}else{oParsedResponse.error=true;}return oParsedResponse;},parseHTMLTableData:function(oRequest,oFullResponse){var bError=false;var elTable=oFullResponse;var fields=this.responseSchema.fields;var oParsedResponse={results:[]};if(lang.isArray(fields)){for(var i=0;i<elTable.tBodies.length;i++){var elTbody=elTable.tBodies[i];for(var j=elTbody.rows.length-1;j>-1;j--){var elRow=elTbody.rows[j];var oResult={};for(var k=fields.length-1;k>-1;k--){var field=fields[k];var key=(lang.isValue(field.key))?field.key:field;
++var data=elRow.cells[k].innerHTML;if(!field.parser&&field.converter){field.parser=field.converter;}var parser=(typeof field.parser==="function")?field.parser:DS.Parser[field.parser+""];if(parser){data=parser.call(this,data);}if(data===undefined){data=null;}oResult[key]=data;}oParsedResponse.results[j]=oResult;}}}else{bError=true;}if(bError){oParsedResponse.error=true;}else{}return oParsedResponse;}};lang.augmentProto(DS,util.EventProvider);util.LocalDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_LOCAL;if(oLiveData){if(YAHOO.lang.isArray(oLiveData)){this.responseType=DS.TYPE_JSARRAY;}else{if(oLiveData.nodeType&&oLiveData.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oLiveData.nodeName&&(oLiveData.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;oLiveData=oLiveData.cloneNode(true);}else{if(YAHOO.lang.isString(oLiveData)){this.responseType=DS.TYPE_TEXT;}else{if(YAHOO.lang.isObject(oLiveData)){this.responseType=DS.TYPE_JSON;}}}}}}else{oLiveData=[];this.responseType=DS.TYPE_JSARRAY;}util.LocalDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.LocalDataSource,DS);lang.augmentObject(util.LocalDataSource,DS);util.FunctionDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_JSFUNCTION;oLiveData=oLiveData||function(){};util.FunctionDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.FunctionDataSource,DS,{scope:null,makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oRawResponse=(this.scope)?this.liveData.call(this.scope,oRequest,this):this.liveData(oRequest);if(this.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){this.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse&&oRawResponse.nodeType&&oRawResponse.nodeType==9){this.responseType=DS.TYPE_XML;}else{if(oRawResponse&&oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){this.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){this.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){this.responseType=DS.TYPE_TEXT;}}}}}}this.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);return tId;}});lang.augmentObject(util.FunctionDataSource,DS);util.ScriptNodeDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_SCRIPTNODE;oLiveData=oLiveData||"";util.ScriptNodeDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.ScriptNodeDataSource,DS,{getUtility:util.Get,asyncMode:"allowAll",scriptCallbackParam:"callback",generateRequestCallback:function(id){return"&"+this.scriptCallbackParam+"=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]";},doBeforeGetScriptNode:function(sUri){return sUri;},makeConnection:function(oRequest,oCallback,oCaller){var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});if(util.ScriptNodeDataSource._nPending===0){util.ScriptNodeDataSource.callbacks=[];util.ScriptNodeDataSource._nId=0;}var id=util.ScriptNodeDataSource._nId;util.ScriptNodeDataSource._nId++;var oSelf=this;util.ScriptNodeDataSource.callbacks[id]=function(oRawResponse){if((oSelf.asyncMode!=="ignoreStaleResponses")||(id===util.ScriptNodeDataSource.callbacks.length-1)){if(oSelf.responseType===DS.TYPE_UNKNOWN){if(YAHOO.lang.isArray(oRawResponse)){oSelf.responseType=DS.TYPE_JSARRAY;}else{if(oRawResponse.nodeType&&oRawResponse.nodeType==9){oSelf.responseType=DS.TYPE_XML;}else{if(oRawResponse.nodeName&&(oRawResponse.nodeName.toLowerCase()=="table")){oSelf.responseType=DS.TYPE_HTMLTABLE;}else{if(YAHOO.lang.isObject(oRawResponse)){oSelf.responseType=DS.TYPE_JSON;}else{if(YAHOO.lang.isString(oRawResponse)){oSelf.responseType=DS.TYPE_TEXT;}}}}}}oSelf.handleResponse(oRequest,oRawResponse,oCallback,oCaller,tId);}else{}delete util.ScriptNodeDataSource.callbacks[id];};util.ScriptNodeDataSource._nPending++;var sUri=this.liveData+oRequest+this.generateRequestCallback(id);sUri=this.doBeforeGetScriptNode(sUri);this.getUtility.script(sUri,{autopurge:true,onsuccess:util.ScriptNodeDataSource._bumpPendingDown,onfail:util.ScriptNodeDataSource._bumpPendingDown});return tId;}});lang.augmentObject(util.ScriptNodeDataSource,DS);lang.augmentObject(util.ScriptNodeDataSource,{_nId:0,_nPending:0,callbacks:[]});util.XHRDataSource=function(oLiveData,oConfigs){this.dataType=DS.TYPE_XHR;this.connMgr=this.connMgr||util.Connect;oLiveData=oLiveData||"";util.XHRDataSource.superclass.constructor.call(this,oLiveData,oConfigs);};lang.extend(util.XHRDataSource,DS,{connMgr:null,connXhrMode:"allowAll",connMethodPost:false,connTimeout:0,makeConnection:function(oRequest,oCallback,oCaller){var oRawResponse=null;var tId=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:tId,request:oRequest,callback:oCallback,caller:oCaller});var oSelf=this;var oConnMgr=this.connMgr;var oQueue=this._oQueue;var _xhrSuccess=function(oResponse){if(oResponse&&(this.connXhrMode=="ignoreStaleResponses")&&(oResponse.tId!=oQueue.conn.tId)){return null;}else{if(!oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,response:null,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL});DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);return null;}else{if(this.responseType===DS.TYPE_UNKNOWN){var ctype=(oResponse.getResponseHeader)?oResponse.getResponseHeader["Content-Type"]:null;if(ctype){if(ctype.indexOf("text/xml")>-1){this.responseType=DS.TYPE_XML;}else{if(ctype.indexOf("application/json")>-1){this.responseType=DS.TYPE_JSON;}else{if(ctype.indexOf("text/plain")>-1){this.responseType=DS.TYPE_TEXT;}}}}}this.handleResponse(oRequest,oResponse,oCallback,oCaller,tId);}}};var _xhrFailure=function(oResponse){this.fireEvent("dataErrorEvent",{request:oRequest,response:oResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATAINVALID});if(lang.isString(this.liveData)&&lang.isString(oRequest)&&(this.liveData.lastIndexOf("?")!==this.liveData.length-1)&&(oRequest.indexOf("?")!==0)){}oResponse=oResponse||{};
++oResponse.error=true;DS.issueCallback(oCallback,[oRequest,oResponse],true,oCaller);return null;};var _xhrCallback={success:_xhrSuccess,failure:_xhrFailure,scope:this};if(lang.isNumber(this.connTimeout)){_xhrCallback.timeout=this.connTimeout;}if(this.connXhrMode=="cancelStaleRequests"){if(oQueue.conn){if(oConnMgr.abort){oConnMgr.abort(oQueue.conn);oQueue.conn=null;}else{}}}if(oConnMgr&&oConnMgr.asyncRequest){var sLiveData=this.liveData;var isPost=this.connMethodPost;var sMethod=(isPost)?"POST":"GET";var sUri=(isPost||!lang.isValue(oRequest))?sLiveData:sLiveData+oRequest;var sRequest=(isPost)?oRequest:null;if(this.connXhrMode!="queueRequests"){oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest);}else{if(oQueue.conn){var allRequests=oQueue.requests;allRequests.push({request:oRequest,callback:_xhrCallback});if(!oQueue.interval){oQueue.interval=setInterval(function(){if(oConnMgr.isCallInProgress(oQueue.conn)){return;}else{if(allRequests.length>0){sUri=(isPost||!lang.isValue(allRequests[0].request))?sLiveData:sLiveData+allRequests[0].request;sRequest=(isPost)?allRequests[0].request:null;oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,allRequests[0].callback,sRequest);allRequests.shift();}else{clearInterval(oQueue.interval);oQueue.interval=null;}}},50);}}else{oQueue.conn=oConnMgr.asyncRequest(sMethod,sUri,_xhrCallback,sRequest);}}}else{DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);}return tId;}});lang.augmentObject(util.XHRDataSource,DS);util.DataSource=function(oLiveData,oConfigs){oConfigs=oConfigs||{};var dataType=oConfigs.dataType;if(dataType){if(dataType==DS.TYPE_LOCAL){lang.augmentObject(util.DataSource,util.LocalDataSource);return new util.LocalDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_XHR){lang.augmentObject(util.DataSource,util.XHRDataSource);return new util.XHRDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_SCRIPTNODE){lang.augmentObject(util.DataSource,util.ScriptNodeDataSource);return new util.ScriptNodeDataSource(oLiveData,oConfigs);}else{if(dataType==DS.TYPE_JSFUNCTION){lang.augmentObject(util.DataSource,util.FunctionDataSource);return new util.FunctionDataSource(oLiveData,oConfigs);}}}}}if(YAHOO.lang.isString(oLiveData)){lang.augmentObject(util.DataSource,util.XHRDataSource);return new util.XHRDataSource(oLiveData,oConfigs);}else{if(YAHOO.lang.isFunction(oLiveData)){lang.augmentObject(util.DataSource,util.FunctionDataSource);return new util.FunctionDataSource(oLiveData,oConfigs);}else{lang.augmentObject(util.DataSource,util.LocalDataSource);return new util.LocalDataSource(oLiveData,oConfigs);}}};lang.augmentObject(util.DataSource,DS);})();YAHOO.util.Number={format:function(B,E){if(!isFinite(+B)){return"";}B=!isFinite(+B)?0:+B;E=YAHOO.lang.merge(YAHOO.util.Number.format.defaults,(E||{}));var C=B<0,F=Math.abs(B),A=E.decimalPlaces,I=E.thousandsSeparator,H,G,D;if(A<0){H=F-(F%1)+"";D=H.length+A;if(D>0){H=Number("."+H).toFixed(D).slice(2)+new Array(H.length-D+1).join("0");}else{H="0";}}else{H=F<1&&F>=0.5&&!A?"1":F.toFixed(A);}if(F>1000){G=H.split(/\D/);D=G[0].length%3||3;G[0]=G[0].slice(0,D)+G[0].slice(D).replace(/(\d{3})/g,I+"$1");H=G.join(E.decimalSeparator);}H=E.prefix+H+E.suffix;return C?E.negativeFormat.replace(/#/,H):H;}};YAHOO.util.Number.format.defaults={decimalSeparator:".",decimalPlaces:null,thousandsSeparator:"",prefix:"",suffix:"",negativeFormat:"-#"};(function(){var A=function(C,E,D){if(typeof D==="undefined"){D=10;}for(;parseInt(C,10)<D&&D>1;D/=10){C=E.toString()+C;}return C.toString();};var B={formats:{a:function(D,C){return C.a[D.getDay()];},A:function(D,C){return C.A[D.getDay()];},b:function(D,C){return C.b[D.getMonth()];},B:function(D,C){return C.B[D.getMonth()];},C:function(C){return A(parseInt(C.getFullYear()/100,10),0);},d:["getDate","0"],e:["getDate"," "],g:function(C){return A(parseInt(B.formats.G(C)%100,10),0);},G:function(E){var F=E.getFullYear();var D=parseInt(B.formats.V(E),10);var C=parseInt(B.formats.W(E),10);if(C>D){F++;}else{if(C===0&&D>=52){F--;}}return F;},H:["getHours","0"],I:function(D){var C=D.getHours()%12;return A(C===0?12:C,0);},j:function(G){var F=new Date(""+G.getFullYear()+"/1/1 GMT");var D=new Date(""+G.getFullYear()+"/"+(G.getMonth()+1)+"/"+G.getDate()+" GMT");var C=D-F;var E=parseInt(C/60000/60/24,10)+1;return A(E,0,100);},k:["getHours"," "],l:function(D){var C=D.getHours()%12;return A(C===0?12:C," ");},m:function(C){return A(C.getMonth()+1,0);},M:["getMinutes","0"],p:function(D,C){return C.p[D.getHours()>=12?1:0];},P:function(D,C){return C.P[D.getHours()>=12?1:0];},s:function(D,C){return parseInt(D.getTime()/1000,10);},S:["getSeconds","0"],u:function(C){var D=C.getDay();return D===0?7:D;},U:function(F){var C=parseInt(B.formats.j(F),10);var E=6-F.getDay();var D=parseInt((C+E)/7,10);return A(D,0);},V:function(F){var E=parseInt(B.formats.W(F),10);var C=(new Date(""+F.getFullYear()+"/1/1")).getDay();var D=E+(C>4||C<=1?0:1);if(D===53&&(new Date(""+F.getFullYear()+"/12/31")).getDay()<4){D=1;}else{if(D===0){D=B.formats.V(new Date(""+(F.getFullYear()-1)+"/12/31"));}}return A(D,0);},w:"getDay",W:function(F){var C=parseInt(B.formats.j(F),10);var E=7-B.formats.u(F);var D=parseInt((C+E)/7,10);return A(D,0,10);},y:function(C){return A(C.getFullYear()%100,0);},Y:"getFullYear",z:function(E){var D=E.getTimezoneOffset();var C=A(parseInt(Math.abs(D/60),10),0);var F=A(Math.abs(D%60),0);return(D>0?"-":"+")+C+F;},Z:function(C){var D=C.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");if(D.length>4){D=B.formats.z(C);}return D;},"%":function(C){return"%";}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(G,F,D){F=F||{};if(!(G instanceof Date)){return YAHOO.lang.isValue(G)?G:"";}var H=F.format||"%m/%d/%Y";if(H==="YYYY/MM/DD"){H="%Y/%m/%d";}else{if(H==="DD/MM/YYYY"){H="%d/%m/%Y";}else{if(H==="MM/DD/YYYY"){H="%m/%d/%Y";}}}D=D||"en";if(!(D in YAHOO.util.DateLocale)){if(D.replace(/-[a-zA-Z]+$/,"") in YAHOO.util.DateLocale){D=D.replace(/-[a-zA-Z]+$/,"");
++}else{D="en";}}var J=YAHOO.util.DateLocale[D];var C=function(L,K){var M=B.aggregates[K];return(M==="locale"?J[K]:M);};var E=function(L,K){var M=B.formats[K];if(typeof M==="string"){return G[M]();}else{if(typeof M==="function"){return M.call(G,G,J);}else{if(typeof M==="object"&&typeof M[0]==="string"){return A(G[M[0]](),M[1]);}else{return K;}}}};while(H.match(/%[cDFhnrRtTxX]/)){H=H.replace(/%([cDFhnrRtTxX])/g,C);}var I=H.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,E);C=E=undefined;return I;}};YAHOO.namespace("YAHOO.util");YAHOO.util.Date=B;YAHOO.util.DateLocale={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"};YAHOO.util.DateLocale["en"]=YAHOO.lang.merge(YAHOO.util.DateLocale,{});YAHOO.util.DateLocale["en-US"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"],{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"});YAHOO.util.DateLocale["en-GB"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"],{r:"%l:%M:%S %P %Z"});YAHOO.util.DateLocale["en-AU"]=YAHOO.lang.merge(YAHOO.util.DateLocale["en"]);})();YAHOO.register("datasource",YAHOO.util.DataSource,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/datasource/datasource.js b/pylons_app/public/js/yui/datasource/datasource.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datasource/datasource.js
+@@ -0,0 +1,2996 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    Ev     = util.Event;
++
++/**
++ * The DataSource utility provides a common configurable interface for widgets to
++ * access a variety of data, from JavaScript arrays to online database servers.
++ *
++ * @module datasource
++ * @requires yahoo, event
++ * @optional json, get, connection 
++ * @title DataSource Utility
++ */
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Base class for the YUI DataSource utility.
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.DataSourceBase
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.DataSourceBase = function(oLiveData, oConfigs) {
++    if(oLiveData === null || oLiveData === undefined) {
++        return;
++    }
++    
++    this.liveData = oLiveData;
++    this._oQueue = {interval:null, conn:null, requests:[]};
++    this.responseSchema = {};   
++
++    // 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];
++            }
++        }
++    }
++    
++    // Validate and initialize public configs
++    var maxCacheEntries = this.maxCacheEntries;
++    if(!lang.isNumber(maxCacheEntries) || (maxCacheEntries < 0)) {
++        maxCacheEntries = 0;
++    }
++
++    // Initialize interval tracker
++    this._aIntervals = [];
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Custom Events
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Fired when a request is made to the local cache.
++     *
++     * @event cacheRequestEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("cacheRequestEvent");
++
++    /**
++     * Fired when data is retrieved from the local cache.
++     *
++     * @event cacheResponseEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("cacheResponseEvent");
++
++    /**
++     * Fired when a request is sent to the live data source.
++     *
++     * @event requestEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.tId {Number} Transaction ID.     
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("requestEvent");
++
++    /**
++     * Fired when live data source sends response.
++     *
++     * @event responseEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The raw response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.tId {Number} Transaction ID.     
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("responseEvent");
++
++    /**
++     * Fired when response is parsed.
++     *
++     * @event responseParseEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The parsed response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("responseParseEvent");
++
++    /**
++     * Fired when response is cached.
++     *
++     * @event responseCacheEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {Object} The parsed response object.
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     */
++    this.createEvent("responseCacheEvent");
++    /**
++     * Fired when an error is encountered with the live data source.
++     *
++     * @event dataErrorEvent
++     * @param oArgs.request {Object} The request object.
++     * @param oArgs.response {String} The response object (if available).
++     * @param oArgs.callback {Object} The callback object.
++     * @param oArgs.caller {Object} (deprecated) Use callback.scope.
++     * @param oArgs.message {String} The error message.
++     */
++    this.createEvent("dataErrorEvent");
++
++    /**
++     * Fired when the local cache is flushed.
++     *
++     * @event cacheFlushEvent
++     */
++    this.createEvent("cacheFlushEvent");
++
++    var DS = util.DataSourceBase;
++    this._sName = "DataSource instance" + DS._nIndex;
++    DS._nIndex++;
++};
++
++var DS = util.DataSourceBase;
++
++lang.augmentObject(DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public constants
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Type is unknown.
++ *
++ * @property TYPE_UNKNOWN
++ * @type Number
++ * @final
++ * @default -1
++ */
++TYPE_UNKNOWN : -1,
++
++/**
++ * Type is a JavaScript Array.
++ *
++ * @property TYPE_JSARRAY
++ * @type Number
++ * @final
++ * @default 0
++ */
++TYPE_JSARRAY : 0,
++
++/**
++ * Type is a JavaScript Function.
++ *
++ * @property TYPE_JSFUNCTION
++ * @type Number
++ * @final
++ * @default 1
++ */
++TYPE_JSFUNCTION : 1,
++
++/**
++ * Type is hosted on a server via an XHR connection.
++ *
++ * @property TYPE_XHR
++ * @type Number
++ * @final
++ * @default 2
++ */
++TYPE_XHR : 2,
++
++/**
++ * Type is JSON.
++ *
++ * @property TYPE_JSON
++ * @type Number
++ * @final
++ * @default 3
++ */
++TYPE_JSON : 3,
++
++/**
++ * Type is XML.
++ *
++ * @property TYPE_XML
++ * @type Number
++ * @final
++ * @default 4
++ */
++TYPE_XML : 4,
++
++/**
++ * Type is plain text.
++ *
++ * @property TYPE_TEXT
++ * @type Number
++ * @final
++ * @default 5
++ */
++TYPE_TEXT : 5,
++
++/**
++ * Type is an HTML TABLE element. Data is parsed out of TR elements from all TBODY elements.
++ *
++ * @property TYPE_HTMLTABLE
++ * @type Number
++ * @final
++ * @default 6
++ */
++TYPE_HTMLTABLE : 6,
++
++/**
++ * Type is hosted on a server via a dynamic script node.
++ *
++ * @property TYPE_SCRIPTNODE
++ * @type Number
++ * @final
++ * @default 7
++ */
++TYPE_SCRIPTNODE : 7,
++
++/**
++ * Type is local.
++ *
++ * @property TYPE_LOCAL
++ * @type Number
++ * @final
++ * @default 8
++ */
++TYPE_LOCAL : 8,
++
++/**
++ * Error message for invalid dataresponses.
++ *
++ * @property ERROR_DATAINVALID
++ * @type String
++ * @final
++ * @default "Invalid data"
++ */
++ERROR_DATAINVALID : "Invalid data",
++
++/**
++ * Error message for null data responses.
++ *
++ * @property ERROR_DATANULL
++ * @type String
++ * @final
++ * @default "Null data"
++ */
++ERROR_DATANULL : "Null data",
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase private static properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Internal class variable to index multiple DataSource instances.
++ *
++ * @property DataSourceBase._nIndex
++ * @type Number
++ * @private
++ * @static
++ */
++_nIndex : 0,
++
++/**
++ * Internal class variable to assign unique transaction IDs.
++ *
++ * @property DataSourceBase._nTransactionId
++ * @type Number
++ * @private
++ * @static
++ */
++_nTransactionId : 0,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase private static methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Get an XPath-specified value for a given field from an XML node or document.
++ *
++ * @method _getLocationValue
++ * @param field {String | Object} Field definition.
++ * @param context {Object} XML node or document to search within.
++ * @return {Object} Data value or null.
++ * @static
++ * @private
++ */
++_getLocationValue: function(field, context) {
++    var locator = field.locator || field.key || field,
++        xmldoc = context.ownerDocument || context,
++        result, res, value = null;
++
++    try {
++        // Standards mode
++        if(!lang.isUndefined(xmldoc.evaluate)) {
++            result = xmldoc.evaluate(locator, context, xmldoc.createNSResolver(!context.ownerDocument ? context.documentElement : context.ownerDocument.documentElement), 0, null);
++            while(res = result.iterateNext()) {
++                value = res.textContent;
++            }
++        }
++        // IE mode
++        else {
++            xmldoc.setProperty("SelectionLanguage", "XPath");
++            result = context.selectNodes(locator)[0];
++            value = result.value || result.text || null;
++        }
++        return value;
++
++    }
++    catch(e) {
++    }
++},
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public static methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Executes a configured callback.  For object literal callbacks, the third
++ * param determines whether to execute the success handler or failure handler.
++ *  
++ * @method issueCallback
++ * @param callback {Function|Object} the callback to execute
++ * @param params {Array} params to be passed to the callback method
++ * @param error {Boolean} whether an error occurred
++ * @param scope {Object} the scope from which to execute the callback
++ * (deprecated - use an object literal callback)
++ * @static     
++ */
++issueCallback : function (callback,params,error,scope) {
++    if (lang.isFunction(callback)) {
++        callback.apply(scope, params);
++    } else if (lang.isObject(callback)) {
++        scope = callback.scope || scope || window;
++        var callbackFunc = callback.success;
++        if (error) {
++            callbackFunc = callback.failure;
++        }
++        if (callbackFunc) {
++            callbackFunc.apply(scope, params.concat([callback.argument]));
++        }
++    }
++},
++
++/**
++ * Converts data to type String.
++ *
++ * @method DataSourceBase.parseString
++ * @param oData {String | Number | Boolean | Date | Array | Object} Data to parse.
++ * The special values null and undefined will return null.
++ * @return {String} A string, or null.
++ * @static
++ */
++parseString : function(oData) {
++    // Special case null and undefined
++    if(!lang.isValue(oData)) {
++        return null;
++    }
++    
++    //Convert to string
++    var string = oData + "";
++
++    // Validate
++    if(lang.isString(string)) {
++        return string;
++    }
++    else {
++        return null;
++    }
++},
++
++/**
++ * Converts data to type Number.
++ *
++ * @method DataSourceBase.parseNumber
++ * @param oData {String | Number | Boolean} Data to convert. Note, the following
++ * values return as null: null, undefined, NaN, "". 
++ * @return {Number} A number, or null.
++ * @static
++ */
++parseNumber : function(oData) {
++    if(!lang.isValue(oData) || (oData === "")) {
++        return null;
++    }
++
++    //Convert to number
++    var number = oData * 1;
++    
++    // Validate
++    if(lang.isNumber(number)) {
++        return number;
++    }
++    else {
++        return null;
++    }
++},
++// Backward compatibility
++convertNumber : function(oData) {
++    return DS.parseNumber(oData);
++},
++
++/**
++ * Converts data to type Date.
++ *
++ * @method DataSourceBase.parseDate
++ * @param oData {Date | String | Number} Data to convert.
++ * @return {Date} A Date instance.
++ * @static
++ */
++parseDate : function(oData) {
++    var date = null;
++    
++    //Convert to date
++    if(!(oData instanceof Date)) {
++        date = new Date(oData);
++    }
++    else {
++        return oData;
++    }
++    
++    // Validate
++    if(date instanceof Date) {
++        return date;
++    }
++    else {
++        return null;
++    }
++},
++// Backward compatibility
++convertDate : function(oData) {
++    return DS.parseDate(oData);
++}
++
++});
++
++// Done in separate step so referenced functions are defined.
++/**
++ * Data parsing functions.
++ * @property DataSource.Parser
++ * @type Object
++ * @static
++ */
++DS.Parser = {
++    string   : DS.parseString,
++    number   : DS.parseNumber,
++    date     : DS.parseDate
++};
++
++// Prototype properties and methods
++DS.prototype = {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase private properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Name of DataSource instance.
++ *
++ * @property _sName
++ * @type String
++ * @private
++ */
++_sName : null,
++
++/**
++ * Local cache of data result object literals indexed chronologically.
++ *
++ * @property _aCache
++ * @type Object[]
++ * @private
++ */
++_aCache : null,
++
++/**
++ * Local queue of request connections, enabled if queue needs to be managed.
++ *
++ * @property _oQueue
++ * @type Object
++ * @private
++ */
++_oQueue : null,
++
++/**
++ * Array of polling interval IDs that have been enabled, needed to clear all intervals.
++ *
++ * @property _aIntervals
++ * @type Array
++ * @private
++ */
++_aIntervals : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * 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 0
++ */
++maxCacheEntries : 0,
++
++ /**
++ * Pointer to live database.
++ *
++ * @property liveData
++ * @type Object
++ */
++liveData : null,
++
++/**
++ * Where the live data is held:
++ * 
++ * <dl>  
++ *    <dt>TYPE_UNKNOWN</dt>
++ *    <dt>TYPE_LOCAL</dt>
++ *    <dt>TYPE_XHR</dt>
++ *    <dt>TYPE_SCRIPTNODE</dt>
++ *    <dt>TYPE_JSFUNCTION</dt>
++ * </dl> 
++ *  
++ * @property dataType
++ * @type Number
++ * @default YAHOO.util.DataSourceBase.TYPE_UNKNOWN
++ *
++ */
++dataType : DS.TYPE_UNKNOWN,
++
++/**
++ * Format of response:
++ *  
++ * <dl>  
++ *    <dt>TYPE_UNKNOWN</dt>
++ *    <dt>TYPE_JSARRAY</dt>
++ *    <dt>TYPE_JSON</dt>
++ *    <dt>TYPE_XML</dt>
++ *    <dt>TYPE_TEXT</dt>
++ *    <dt>TYPE_HTMLTABLE</dt> 
++ * </dl> 
++ *
++ * @property responseType
++ * @type Number
++ * @default YAHOO.util.DataSourceBase.TYPE_UNKNOWN
++ */
++responseType : DS.TYPE_UNKNOWN,
++
++/**
++ * Response schema object literal takes a combination of the following properties:
++ *
++ * <dl>
++ * <dt>resultsList</dt> <dd>Pointer to array of tabular data</dd>
++ * <dt>resultNode</dt> <dd>Pointer to node name of row data (XML data only)</dd>
++ * <dt>recordDelim</dt> <dd>Record delimiter (text data only)</dd>
++ * <dt>fieldDelim</dt> <dd>Field delimiter (text data only)</dd>
++ * <dt>fields</dt> <dd>Array of field names (aka keys), or array of object literals
++ * such as: {key:"fieldname",parser:YAHOO.util.DataSourceBase.parseDate}</dd>
++ * <dt>metaFields</dt> <dd>Object literal of keys to include in the oParsedResponse.meta collection</dd>
++ * <dt>metaNode</dt> <dd>Name of the node under which to search for meta information in XML response data</dd>
++ * </dl>
++ *
++ * @property responseSchema
++ * @type Object
++ */
++responseSchema : null,
++
++/**
++ * Additional arguments passed to the JSON parse routine.  The JSON string
++ * is the assumed first argument (where applicable).  This property is not
++ * set by default, but the parse methods will use it if present.
++ *
++ * @property parseJSONArgs
++ * @type {MIXED|Array} If an Array, contents are used as individual arguments.
++ *                     Otherwise, value is used as an additional argument.
++ */
++// property intentionally undefined
++ 
++/**
++ * When working with XML data, setting this property to true enables support for
++ * XPath-syntaxed locators in schema definitions.
++ *
++ * @property useXPath
++ * @type Boolean
++ * @default false
++ */
++useXPath : false,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataSourceBase public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Public accessor to the unique name of the DataSource instance.
++ *
++ * @method toString
++ * @return {String} Unique name of the DataSource instance.
++ */
++toString : function() {
++    return this._sName;
++},
++
++/**
++ * Overridable method passes request to cache and returns cached response if any,
++ * refreshing the hit in the cache as the newest item. Returns null if there is
++ * no cache hit.
++ *
++ * @method getCachedResponse
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object.
++ * @param oCaller {Object} (deprecated) Use callback object.
++ * @return {Object} Cached response object or null.
++ */
++getCachedResponse : function(oRequest, oCallback, oCaller) {
++    var aCache = this._aCache;
++
++    // If cache is enabled...
++    if(this.maxCacheEntries > 0) {        
++        // Initialize local cache
++        if(!aCache) {
++            this._aCache = [];
++        }
++        // Look in local cache
++        else {
++            var nCacheLength = aCache.length;
++            if(nCacheLength > 0) {
++                var oResponse = null;
++                this.fireEvent("cacheRequestEvent", {request:oRequest,callback:oCallback,caller:oCaller});
++        
++                // Loop through each cached element
++                for(var i = nCacheLength-1; i >= 0; i--) {
++                    var oCacheElem = aCache[i];
++        
++                    // Defer cache hit logic to a public overridable method
++                    if(this.isCacheHit(oRequest,oCacheElem.request)) {
++                        // The cache returned a hit!
++                        // Grab the cached response
++                        oResponse = oCacheElem.response;
++                        this.fireEvent("cacheResponseEvent", {request:oRequest,response:oResponse,callback:oCallback,caller:oCaller});
++                        
++                        // Refresh the position of the cache hit
++                        if(i < nCacheLength-1) {
++                            // Remove element from its original location
++                            aCache.splice(i,1);
++                            // Add as newest
++                            this.addToCache(oRequest, oResponse);
++                        }
++                        
++                        // Add a cache flag
++                        oResponse.cached = true;
++                        break;
++                    }
++                }
++                return oResponse;
++            }
++        }
++    }
++    else if(aCache) {
++        this._aCache = null;
++    }
++    return null;
++},
++
++/**
++ * Default overridable method matches given request to given cached request.
++ * Returns true if is a hit, returns false otherwise.  Implementers should
++ * override this method to customize the cache-matching algorithm.
++ *
++ * @method isCacheHit
++ * @param oRequest {Object} Request object.
++ * @param oCachedRequest {Object} Cached request object.
++ * @return {Boolean} True if given request matches cached request, false otherwise.
++ */
++isCacheHit : function(oRequest, oCachedRequest) {
++    return (oRequest === oCachedRequest);
++},
++
++/**
++ * Adds a new item to the cache. If cache is full, evicts the stalest item
++ * before adding the new item.
++ *
++ * @method addToCache
++ * @param oRequest {Object} Request object.
++ * @param oResponse {Object} Response object to cache.
++ */
++addToCache : function(oRequest, oResponse) {
++    var aCache = this._aCache;
++    if(!aCache) {
++        return;
++    }
++
++    // If the cache is full, make room by removing stalest element (index=0)
++    while(aCache.length >= this.maxCacheEntries) {
++        aCache.shift();
++    }
++
++    // Add to cache in the newest position, at the end of the array
++    var oCacheElem = {request:oRequest,response:oResponse};
++    aCache[aCache.length] = oCacheElem;
++    this.fireEvent("responseCacheEvent", {request:oRequest,response:oResponse});
++},
++
++/**
++ * Flushes cache.
++ *
++ * @method flushCache
++ */
++flushCache : function() {
++    if(this._aCache) {
++        this._aCache = [];
++        this.fireEvent("cacheFlushEvent");
++    }
++},
++
++/**
++ * Sets up a polling mechanism to send requests at set intervals and forward
++ * responses to given callback.
++ *
++ * @method setInterval
++ * @param nMsec {Number} Length of interval in milliseconds.
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Function} Handler function to receive the response.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Interval ID.
++ */
++setInterval : function(nMsec, oRequest, oCallback, oCaller) {
++    if(lang.isNumber(nMsec) && (nMsec >= 0)) {
++        var oSelf = this;
++        var nId = setInterval(function() {
++            oSelf.makeConnection(oRequest, oCallback, oCaller);
++        }, nMsec);
++        this._aIntervals.push(nId);
++        return nId;
++    }
++    else {
++    }
++},
++
++/**
++ * Disables polling mechanism associated with the given interval ID.
++ *
++ * @method clearInterval
++ * @param nId {Number} Interval ID.
++ */
++clearInterval : function(nId) {
++    // Remove from tracker if there
++    var tracker = this._aIntervals || [];
++    for(var i=tracker.length-1; i>-1; i--) {
++        if(tracker[i] === nId) {
++            tracker.splice(i,1);
++            clearInterval(nId);
++        }
++    }
++},
++
++/**
++ * Disables all known polling intervals.
++ *
++ * @method clearAllIntervals
++ */
++clearAllIntervals : function() {
++    var tracker = this._aIntervals || [];
++    for(var i=tracker.length-1; i>-1; i--) {
++        clearInterval(tracker[i]);
++    }
++    tracker = [];
++},
++
++/**
++ * First looks for cached response, then sends request to live data. The
++ * following arguments are passed to the callback function:
++ *     <dl>
++ *     <dt><code>oRequest</code></dt>
++ *     <dd>The same value that was passed in as the first argument to sendRequest.</dd>
++ *     <dt><code>oParsedResponse</code></dt>
++ *     <dd>An object literal containing the following properties:
++ *         <dl>
++ *         <dt><code>tId</code></dt>
++ *         <dd>Unique transaction ID number.</dd>
++ *         <dt><code>results</code></dt>
++ *         <dd>Schema-parsed data results.</dd>
++ *         <dt><code>error</code></dt>
++ *         <dd>True in cases of data error.</dd>
++ *         <dt><code>cached</code></dt>
++ *         <dd>True when response is returned from DataSource cache.</dd> 
++ *         <dt><code>meta</code></dt>
++ *         <dd>Schema-parsed meta data.</dd>
++ *         </dl>
++ *     <dt><code>oPayload</code></dt>
++ *     <dd>The same value as was passed in as <code>argument</code> in the oCallback object literal.</dd>
++ *     </dl> 
++ *
++ * @method sendRequest
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} An object literal with the following properties:
++ *     <dl>
++ *     <dt><code>success</code></dt>
++ *     <dd>The function to call when the data is ready.</dd>
++ *     <dt><code>failure</code></dt>
++ *     <dd>The function to call upon a response failure condition.</dd>
++ *     <dt><code>scope</code></dt>
++ *     <dd>The object to serve as the scope for the success and failure handlers.</dd>
++ *     <dt><code>argument</code></dt>
++ *     <dd>Arbitrary data that will be passed back to the success and failure handlers.</dd>
++ *     </dl> 
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID, or null if response found in cache.
++ */
++sendRequest : function(oRequest, oCallback, oCaller) {
++    // First look in cache
++    var oCachedResponse = this.getCachedResponse(oRequest, oCallback, oCaller);
++    if(oCachedResponse) {
++        DS.issueCallback(oCallback,[oRequest,oCachedResponse],false,oCaller);
++        return null;
++    }
++
++
++    // Not in cache, so forward request to live data
++    return this.makeConnection(oRequest, oCallback, oCaller);
++},
++
++/**
++ * Overridable default method generates a unique transaction ID and passes 
++ * the live data reference directly to the  handleResponse function. This
++ * method should be implemented by subclasses to achieve more complex behavior
++ * or to access remote data.          
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId, request:oRequest,callback:oCallback,caller:oCaller});
++
++    /* accounts for the following cases:
++    YAHOO.util.DataSourceBase.TYPE_UNKNOWN
++    YAHOO.util.DataSourceBase.TYPE_JSARRAY
++    YAHOO.util.DataSourceBase.TYPE_JSON
++    YAHOO.util.DataSourceBase.TYPE_HTMLTABLE
++    YAHOO.util.DataSourceBase.TYPE_XML
++    YAHOO.util.DataSourceBase.TYPE_TEXT
++    */
++    var oRawResponse = this.liveData;
++    
++    this.handleResponse(oRequest, oRawResponse, oCallback, oCaller, tId);
++    return tId;
++},
++
++/**
++ * Receives raw data response and type converts to XML, JSON, etc as necessary.
++ * Forwards oFullResponse to appropriate parsing function to get turned into
++ * oParsedResponse. Calls doBeforeCallback() and adds oParsedResponse to 
++ * the cache when appropriate before calling issueCallback().
++ * 
++ * The oParsedResponse object literal has the following properties:
++ * <dl>
++ *     <dd><dt>tId {Number}</dt> Unique transaction ID</dd>
++ *     <dd><dt>results {Array}</dt> Array of parsed data results</dd>
++ *     <dd><dt>meta {Object}</dt> Object literal of meta values</dd> 
++ *     <dd><dt>error {Boolean}</dt> (optional) True if there was an error</dd>
++ *     <dd><dt>cached {Boolean}</dt> (optional) True if response was cached</dd>
++ * </dl>
++ *
++ * @method handleResponse
++ * @param oRequest {Object} Request object
++ * @param oRawResponse {Object} The raw response from the live database.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @param tId {Number} Transaction ID.
++ */
++handleResponse : function(oRequest, oRawResponse, oCallback, oCaller, tId) {
++    this.fireEvent("responseEvent", {tId:tId, request:oRequest, response:oRawResponse,
++            callback:oCallback, caller:oCaller});
++    var xhr = (this.dataType == DS.TYPE_XHR) ? true : false;
++    var oParsedResponse = null;
++    var oFullResponse = oRawResponse;
++    
++    // Try to sniff data type if it has not been defined
++    if(this.responseType === DS.TYPE_UNKNOWN) {
++        var ctype = (oRawResponse && oRawResponse.getResponseHeader) ? oRawResponse.getResponseHeader["Content-Type"] : null;
++        if(ctype) {
++             // xml
++            if(ctype.indexOf("text/xml") > -1) {
++                this.responseType = DS.TYPE_XML;
++            }
++            else if(ctype.indexOf("application/json") > -1) { // json
++                this.responseType = DS.TYPE_JSON;
++            }
++            else if(ctype.indexOf("text/plain") > -1) { // text
++                this.responseType = DS.TYPE_TEXT;
++            }
++        }
++        else {
++            if(YAHOO.lang.isArray(oRawResponse)) { // array
++                this.responseType = DS.TYPE_JSARRAY;
++            }
++             // xml
++            else if(oRawResponse && oRawResponse.nodeType && (oRawResponse.nodeType === 9 || oRawResponse.nodeType === 1 || oRawResponse.nodeType === 11)) {
++                this.responseType = DS.TYPE_XML;
++            }
++            else if(oRawResponse && oRawResponse.nodeName && (oRawResponse.nodeName.toLowerCase() == "table")) { // table
++                this.responseType = DS.TYPE_HTMLTABLE;
++            }    
++            else if(YAHOO.lang.isObject(oRawResponse)) { // json
++                this.responseType = DS.TYPE_JSON;
++            }
++            else if(YAHOO.lang.isString(oRawResponse)) { // text
++                this.responseType = DS.TYPE_TEXT;
++            }
++        }
++    }
++
++    switch(this.responseType) {
++        case DS.TYPE_JSARRAY:
++            if(xhr && oRawResponse && oRawResponse.responseText) {
++                oFullResponse = oRawResponse.responseText; 
++            }
++            try {
++                // Convert to JS array if it's a string
++                if(lang.isString(oFullResponse)) {
++                    var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
++                    // Check for YUI JSON Util
++                    if(lang.JSON) {
++                        oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json2.js
++                    else if(window.JSON && JSON.parse) {
++                        oFullResponse = JSON.parse.apply(JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json.js
++                    else if(oFullResponse.parseJSON) {
++                        oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
++                    }
++                    // No JSON lib found so parse the string
++                    else {
++                        // Trim leading spaces
++                        while (oFullResponse.length > 0 &&
++                                (oFullResponse.charAt(0) != "{") &&
++                                (oFullResponse.charAt(0) != "[")) {
++                            oFullResponse = oFullResponse.substring(1, oFullResponse.length);
++                        }
++
++                        if(oFullResponse.length > 0) {
++                            // Strip extraneous stuff at the end
++                            var arrayEnd =
++Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));
++                            oFullResponse = oFullResponse.substring(0,arrayEnd+1);
++
++                            // Turn the string into an object literal...
++                            // ...eval is necessary here
++                            oFullResponse = eval("(" + oFullResponse + ")");
++
++                        }
++                    }
++                }
++            }
++            catch(e1) {
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseArrayData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_JSON:
++            if(xhr && oRawResponse && oRawResponse.responseText) {
++                oFullResponse = oRawResponse.responseText;
++            }
++            try {
++                // Convert to JSON object if it's a string
++                if(lang.isString(oFullResponse)) {
++                    var parseArgs = [oFullResponse].concat(this.parseJSONArgs);
++                    // Check for YUI JSON Util
++                    if(lang.JSON) {
++                        oFullResponse = lang.JSON.parse.apply(lang.JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json2.js
++                    else if(window.JSON && JSON.parse) {
++                        oFullResponse = JSON.parse.apply(JSON,parseArgs);
++                    }
++                    // Look for JSON parsers using an API similar to json.js
++                    else if(oFullResponse.parseJSON) {
++                        oFullResponse = oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));
++                    }
++                    // No JSON lib found so parse the string
++                    else {
++                        // Trim leading spaces
++                        while (oFullResponse.length > 0 &&
++                                (oFullResponse.charAt(0) != "{") &&
++                                (oFullResponse.charAt(0) != "[")) {
++                            oFullResponse = oFullResponse.substring(1, oFullResponse.length);
++                        }
++    
++                        if(oFullResponse.length > 0) {
++                            // Strip extraneous stuff at the end
++                            var objEnd = Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));
++                            oFullResponse = oFullResponse.substring(0,objEnd+1);
++    
++                            // Turn the string into an object literal...
++                            // ...eval is necessary here
++                            oFullResponse = eval("(" + oFullResponse + ")");
++    
++                        }
++                    }
++                }
++            }
++            catch(e) {
++            }
++
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseJSONData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_HTMLTABLE:
++            if(xhr && oRawResponse.responseText) {
++                var el = document.createElement('div');
++                el.innerHTML = oRawResponse.responseText;
++                oFullResponse = el.getElementsByTagName('table')[0];
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseHTMLTableData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_XML:
++            if(xhr && oRawResponse.responseXML) {
++                oFullResponse = oRawResponse.responseXML;
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseXMLData(oRequest, oFullResponse);
++            break;
++        case DS.TYPE_TEXT:
++            if(xhr && lang.isString(oRawResponse.responseText)) {
++                oFullResponse = oRawResponse.responseText;
++            }
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseTextData(oRequest, oFullResponse);
++            break;
++        default:
++            oFullResponse = this.doBeforeParseData(oRequest, oFullResponse, oCallback);
++            oParsedResponse = this.parseData(oRequest, oFullResponse);
++            break;
++    }
++
++
++    // Clean up for consistent signature
++    oParsedResponse = oParsedResponse || {};
++    if(!oParsedResponse.results) {
++        oParsedResponse.results = [];
++    }
++    if(!oParsedResponse.meta) {
++        oParsedResponse.meta = {};
++    }
++
++    // Success
++    if(!oParsedResponse.error) {
++        // Last chance to touch the raw response or the parsed response
++        oParsedResponse = this.doBeforeCallback(oRequest, oFullResponse, oParsedResponse, oCallback);
++        this.fireEvent("responseParseEvent", {request:oRequest,
++                response:oParsedResponse, callback:oCallback, caller:oCaller});
++        // Cache the response
++        this.addToCache(oRequest, oParsedResponse);
++    }
++    // Error
++    else {
++        // Be sure the error flag is on
++        oParsedResponse.error = true;
++        this.fireEvent("dataErrorEvent", {request:oRequest, response: oRawResponse, callback:oCallback, 
++                caller:oCaller, message:DS.ERROR_DATANULL});
++    }
++
++    // Send the response back to the caller
++    oParsedResponse.tId = tId;
++    DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller);
++},
++
++/**
++ * Overridable method gives implementers access to the original full response
++ * before the data gets parsed. Implementers should take care not to return an
++ * unparsable or otherwise invalid response.
++ *
++ * @method doBeforeParseData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full response from the live database.
++ * @param oCallback {Object} The callback object.  
++ * @return {Object} Full response for parsing.
++  
++ */
++doBeforeParseData : function(oRequest, oFullResponse, oCallback) {
++    return oFullResponse;
++},
++
++/**
++ * Overridable method gives implementers access to the original full response and
++ * the parsed response (parsed against the given schema) before the data
++ * is added to the cache (if applicable) and then sent back to callback function.
++ * This is your chance to access the raw response and/or populate the parsed
++ * response with any custom data.
++ *
++ * @method doBeforeCallback
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full response from the live database.
++ * @param oParsedResponse {Object} The parsed response to return to calling object.
++ * @param oCallback {Object} The callback object. 
++ * @return {Object} Parsed response object.
++ */
++doBeforeCallback : function(oRequest, oFullResponse, oParsedResponse, oCallback) {
++    return oParsedResponse;
++},
++
++/**
++ * Overridable method parses data of generic RESPONSE_TYPE into a response object.
++ *
++ * @method parseData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full Array from the live database.
++ * @return {Object} Parsed response object with the following properties:<br>
++ *     - results {Array} Array of parsed data results<br>
++ *     - meta {Object} Object literal of meta values<br>
++ *     - error {Boolean} (optional) True if there was an error<br>
++ */
++parseData : function(oRequest, oFullResponse) {
++    if(lang.isValue(oFullResponse)) {
++        var oParsedResponse = {results:oFullResponse,meta:{}};
++        return oParsedResponse;
++
++    }
++    return null;
++},
++
++/**
++ * Overridable method parses Array data into a response object.
++ *
++ * @method parseArrayData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full Array from the live database.
++ * @return {Object} Parsed response object with the following properties:<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseArrayData : function(oRequest, oFullResponse) {
++    if(lang.isArray(oFullResponse)) {
++        var results = [],
++            i, j,
++            rec, field, data;
++        
++        // Parse for fields
++        if(lang.isArray(this.responseSchema.fields)) {
++            var fields = this.responseSchema.fields;
++            for (i = fields.length - 1; i >= 0; --i) {
++                if (typeof fields[i] !== 'object') {
++                    fields[i] = { key : fields[i] };
++                }
++            }
++
++            var parsers = {}, p;
++            for (i = fields.length - 1; i >= 0; --i) {
++                p = (typeof fields[i].parser === 'function' ?
++                          fields[i].parser :
++                          DS.Parser[fields[i].parser+'']) || fields[i].converter;
++                if (p) {
++                    parsers[fields[i].key] = p;
++                }
++            }
++
++            var arrType = lang.isArray(oFullResponse[0]);
++            for(i=oFullResponse.length-1; i>-1; i--) {
++                var oResult = {};
++                rec = oFullResponse[i];
++                if (typeof rec === 'object') {
++                    for(j=fields.length-1; j>-1; j--) {
++                        field = fields[j];
++                        data = arrType ? rec[j] : rec[field.key];
++
++                        if (parsers[field.key]) {
++                            data = parsers[field.key].call(this,data);
++                        }
++
++                        // Safety measure
++                        if(data === undefined) {
++                            data = null;
++                        }
++
++                        oResult[field.key] = data;
++                    }
++                }
++                else if (lang.isString(rec)) {
++                    for(j=fields.length-1; j>-1; j--) {
++                        field = fields[j];
++                        data = rec;
++
++                        if (parsers[field.key]) {
++                            data = parsers[field.key].call(this,data);
++                        }
++
++                        // Safety measure
++                        if(data === undefined) {
++                            data = null;
++                        }
++
++                        oResult[field.key] = data;
++                    }                
++                }
++                results[i] = oResult;
++            }    
++        }
++        // Return entire data set
++        else {
++            results = oFullResponse;
++        }
++        var oParsedResponse = {results:results};
++        return oParsedResponse;
++
++    }
++    return null;
++},
++
++/**
++ * Overridable method parses plain text data into a response object.
++ *
++ * @method parseTextData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full text response from the live database.
++ * @return {Object} Parsed response object with the following properties:<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseTextData : function(oRequest, oFullResponse) {
++    if(lang.isString(oFullResponse)) {
++        if(lang.isString(this.responseSchema.recordDelim) &&
++                lang.isString(this.responseSchema.fieldDelim)) {
++            var oParsedResponse = {results:[]};
++            var recDelim = this.responseSchema.recordDelim;
++            var fieldDelim = this.responseSchema.fieldDelim;
++            if(oFullResponse.length > 0) {
++                // Delete the last line delimiter at the end of the data if it exists
++                var newLength = oFullResponse.length-recDelim.length;
++                if(oFullResponse.substr(newLength) == recDelim) {
++                    oFullResponse = oFullResponse.substr(0, newLength);
++                }
++                if(oFullResponse.length > 0) {
++                    // Split along record delimiter to get an array of strings
++                    var recordsarray = oFullResponse.split(recDelim);
++                    // Cycle through each record
++                    for(var i = 0, len = recordsarray.length, recIdx = 0; i < len; ++i) {
++                        var bError = false,
++                            sRecord = recordsarray[i];
++                        if (lang.isString(sRecord) && (sRecord.length > 0)) {
++                            // Split each record along field delimiter to get data
++                            var fielddataarray = recordsarray[i].split(fieldDelim);
++                            var oResult = {};
++                            
++                            // Filter for fields data
++                            if(lang.isArray(this.responseSchema.fields)) {
++                                var fields = this.responseSchema.fields;
++                                for(var j=fields.length-1; j>-1; j--) {
++                                    try {
++                                        // Remove quotation marks from edges, if applicable
++                                        var data = fielddataarray[j];
++                                        if (lang.isString(data)) {
++                                            if(data.charAt(0) == "\"") {
++                                                data = data.substr(1);
++                                            }
++                                            if(data.charAt(data.length-1) == "\"") {
++                                                data = data.substr(0,data.length-1);
++                                            }
++                                            var field = fields[j];
++                                            var key = (lang.isValue(field.key)) ? field.key : field;
++                                            // Backward compatibility
++                                            if(!field.parser && field.converter) {
++                                                field.parser = field.converter;
++                                            }
++                                            var parser = (typeof field.parser === 'function') ?
++                                                field.parser :
++                                                DS.Parser[field.parser+''];
++                                            if(parser) {
++                                                data = parser.call(this, data);
++                                            }
++                                            // Safety measure
++                                            if(data === undefined) {
++                                                data = null;
++                                            }
++                                            oResult[key] = data;
++                                        }
++                                        else {
++                                            bError = true;
++                                        }
++                                    }
++                                    catch(e) {
++                                        bError = true;
++                                    }
++                                }
++                            }            
++                            // No fields defined so pass along all data as an array
++                            else {
++                                oResult = fielddataarray;
++                            }
++                            if(!bError) {
++                                oParsedResponse.results[recIdx++] = oResult;
++                            }
++                        }
++                    }
++                }
++            }
++            return oParsedResponse;
++        }
++    }
++    return null;
++            
++},
++
++/**
++ * Overridable method parses XML data for one result into an object literal.
++ *
++ * @method parseXMLResult
++ * @param result {XML} XML for one result.
++ * @return {Object} Object literal of data for one result.
++ */
++parseXMLResult : function(result) {
++    var oResult = {},
++        schema = this.responseSchema;
++        
++    try {
++        // Loop through each data field in each result using the schema
++        for(var m = schema.fields.length-1; m >= 0 ; m--) {
++            var field = schema.fields[m];
++            var key = (lang.isValue(field.key)) ? field.key : field;
++            var data = null;
++
++            if(this.useXPath) {
++                data = YAHOO.util.DataSource._getLocationValue(field, result);
++            }
++            else {
++                // Values may be held in an attribute...
++                var xmlAttr = result.attributes.getNamedItem(key);
++                if(xmlAttr) {
++                    data = xmlAttr.value;
++                }
++                // ...or in a node
++                else {
++                    var xmlNode = result.getElementsByTagName(key);
++                    if(xmlNode && xmlNode.item(0)) {
++                        var item = xmlNode.item(0);
++                        // For IE, then DOM...
++                        data = (item) ? ((item.text) ? item.text : (item.textContent) ? item.textContent : null) : null;
++                        // ...then fallback, but check for multiple child nodes
++                        if(!data) {
++                            var datapieces = [];
++                            for(var j=0, len=item.childNodes.length; j<len; j++) {
++                                if(item.childNodes[j].nodeValue) {
++                                    datapieces[datapieces.length] = item.childNodes[j].nodeValue;
++                                }
++                            }
++                            if(datapieces.length > 0) {
++                                data = datapieces.join("");
++                            }
++                        }
++                    }
++                }
++            }
++            
++            
++            // Safety net
++            if(data === null) {
++                   data = "";
++            }
++            // Backward compatibility
++            if(!field.parser && field.converter) {
++                field.parser = field.converter;
++            }
++            var parser = (typeof field.parser === 'function') ?
++                field.parser :
++                DS.Parser[field.parser+''];
++            if(parser) {
++                data = parser.call(this, data);
++            }
++            // Safety measure
++            if(data === undefined) {
++                data = null;
++            }
++            oResult[key] = data;
++        }
++    }
++    catch(e) {
++    }
++
++    return oResult;
++},
++
++
++
++/**
++ * Overridable method parses XML data into a response object.
++ *
++ * @method parseXMLData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full XML response from the live database.
++ * @return {Object} Parsed response object with the following properties<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseXMLData : function(oRequest, oFullResponse) {
++    var bError = false,
++        schema = this.responseSchema,
++        oParsedResponse = {meta:{}},
++        xmlList = null,
++        metaNode      = schema.metaNode,
++        metaLocators  = schema.metaFields || {},
++        i,k,loc,v;
++
++    // In case oFullResponse is something funky
++    try {
++        // Pull any meta identified
++        if(this.useXPath) {
++            for (k in metaLocators) {
++                oParsedResponse.meta[k] = YAHOO.util.DataSource._getLocationValue(metaLocators[k], oFullResponse);
++            }
++        }
++        else {
++            metaNode = metaNode ? oFullResponse.getElementsByTagName(metaNode)[0] :
++                       oFullResponse;
++
++            if (metaNode) {
++                for (k in metaLocators) {
++                    if (lang.hasOwnProperty(metaLocators, k)) {
++                        loc = metaLocators[k];
++                        // Look for a node
++                        v = metaNode.getElementsByTagName(loc)[0];
++
++                        if (v) {
++                            v = v.firstChild.nodeValue;
++                        } else {
++                            // Look for an attribute
++                            v = metaNode.attributes.getNamedItem(loc);
++                            if (v) {
++                                v = v.value;
++                            }
++                        }
++
++                        if (lang.isValue(v)) {
++                            oParsedResponse.meta[k] = v;
++                        }
++                    }
++                }
++            }
++        }
++        
++        // For result data
++        xmlList = (schema.resultNode) ?
++            oFullResponse.getElementsByTagName(schema.resultNode) :
++            null;
++    }
++    catch(e) {
++    }
++    if(!xmlList || !lang.isArray(schema.fields)) {
++        bError = true;
++    }
++    // Loop through each result
++    else {
++        oParsedResponse.results = [];
++        for(i = xmlList.length-1; i >= 0 ; --i) {
++            var oResult = this.parseXMLResult(xmlList.item(i));
++            // Capture each array of values into an array of results
++            oParsedResponse.results[i] = oResult;
++        }
++    }
++    if(bError) {
++        oParsedResponse.error = true;
++    }
++    else {
++    }
++    return oParsedResponse;
++},
++
++/**
++ * Overridable method parses JSON data into a response object.
++ *
++ * @method parseJSONData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full JSON from the live database.
++ * @return {Object} Parsed response object with the following properties<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseJSONData : function(oRequest, oFullResponse) {
++    var oParsedResponse = {results:[],meta:{}};
++    
++    if(lang.isObject(oFullResponse) && this.responseSchema.resultsList) {
++        var schema = this.responseSchema,
++            fields          = schema.fields,
++            resultsList     = oFullResponse,
++            results         = [],
++            metaFields      = schema.metaFields || {},
++            fieldParsers    = [],
++            fieldPaths      = [],
++            simpleFields    = [],
++            bError          = false,
++            i,len,j,v,key,parser,path;
++
++        // Function to convert the schema's fields into walk paths
++        var buildPath = function (needle) {
++            var path = null, keys = [], i = 0;
++            if (needle) {
++                // Strip the ["string keys"] and [1] array indexes
++                needle = needle.
++                    replace(/\[(['"])(.*?)\1\]/g,
++                    function (x,$1,$2) {keys[i]=$2;return '.@'+(i++);}).
++                    replace(/\[(\d+)\]/g,
++                    function (x,$1) {keys[i]=parseInt($1,10)|0;return '.@'+(i++);}).
++                    replace(/^\./,''); // remove leading dot
++
++                // If the cleaned needle contains invalid characters, the
++                // path is invalid
++                if (!/[^\w\.\$@]/.test(needle)) {
++                    path = needle.split('.');
++                    for (i=path.length-1; i >= 0; --i) {
++                        if (path[i].charAt(0) === '@') {
++                            path[i] = keys[parseInt(path[i].substr(1),10)];
++                        }
++                    }
++                }
++                else {
++                }
++            }
++            return path;
++        };
++
++
++        // Function to walk a path and return the pot of gold
++        var walkPath = function (path, origin) {
++            var v=origin,i=0,len=path.length;
++            for (;i<len && v;++i) {
++                v = v[path[i]];
++            }
++            return v;
++        };
++
++        // Parse the response
++        // Step 1. Pull the resultsList from oFullResponse (default assumes
++        // oFullResponse IS the resultsList)
++        path = buildPath(schema.resultsList);
++        if (path) {
++            resultsList = walkPath(path, oFullResponse);
++            if (resultsList === undefined) {
++                bError = true;
++            }
++        } else {
++            bError = true;
++        }
++        
++        if (!resultsList) {
++            resultsList = [];
++        }
++
++        if (!lang.isArray(resultsList)) {
++            resultsList = [resultsList];
++        }
++
++        if (!bError) {
++            // Step 2. Parse out field data if identified
++            if(schema.fields) {
++                var field;
++                // Build the field parser map and location paths
++                for (i=0, len=fields.length; i<len; i++) {
++                    field = fields[i];
++                    key    = field.key || field;
++                    parser = ((typeof field.parser === 'function') ?
++                        field.parser :
++                        DS.Parser[field.parser+'']) || field.converter;
++                    path   = buildPath(key);
++    
++                    if (parser) {
++                        fieldParsers[fieldParsers.length] = {key:key,parser:parser};
++                    }
++    
++                    if (path) {
++                        if (path.length > 1) {
++                            fieldPaths[fieldPaths.length] = {key:key,path:path};
++                        } else {
++                            simpleFields[simpleFields.length] = {key:key,path:path[0]};
++                        }
++                    } else {
++                    }
++                }
++
++                // Process the results, flattening the records and/or applying parsers if needed
++                for (i = resultsList.length - 1; i >= 0; --i) {
++                    var r = resultsList[i], rec = {};
++                    if(r) {
++                        for (j = simpleFields.length - 1; j >= 0; --j) {
++                            // Bug 1777850: data might be held in an array
++                            rec[simpleFields[j].key] =
++                                    (r[simpleFields[j].path] !== undefined) ?
++                                    r[simpleFields[j].path] : r[j];
++                        }
++
++                        for (j = fieldPaths.length - 1; j >= 0; --j) {
++                            rec[fieldPaths[j].key] = walkPath(fieldPaths[j].path,r);
++                        }
++
++                        for (j = fieldParsers.length - 1; j >= 0; --j) {
++                            var p = fieldParsers[j].key;
++                            rec[p] = fieldParsers[j].parser(rec[p]);
++                            if (rec[p] === undefined) {
++                                rec[p] = null;
++                            }
++                        }
++                    }
++                    results[i] = rec;
++                }
++            }
++            else {
++                results = resultsList;
++            }
++
++            for (key in metaFields) {
++                if (lang.hasOwnProperty(metaFields,key)) {
++                    path = buildPath(metaFields[key]);
++                    if (path) {
++                        v = walkPath(path, oFullResponse);
++                        oParsedResponse.meta[key] = v;
++                    }
++                }
++            }
++
++        } else {
++
++            oParsedResponse.error = true;
++        }
++
++        oParsedResponse.results = results;
++    }
++    else {
++        oParsedResponse.error = true;
++    }
++
++    return oParsedResponse;
++},
++
++/**
++ * Overridable method parses an HTML TABLE element reference into a response object.
++ * Data is parsed out of TR elements from all TBODY elements. 
++ *
++ * @method parseHTMLTableData
++ * @param oRequest {Object} Request object.
++ * @param oFullResponse {Object} The full HTML element reference from the live database.
++ * @return {Object} Parsed response object with the following properties<br>
++ *     - results (Array) Array of parsed data results<br>
++ *     - error (Boolean) True if there was an error
++ */
++parseHTMLTableData : function(oRequest, oFullResponse) {
++    var bError = false;
++    var elTable = oFullResponse;
++    var fields = this.responseSchema.fields;
++    var oParsedResponse = {results:[]};
++
++    if(lang.isArray(fields)) {
++        // Iterate through each TBODY
++        for(var i=0; i<elTable.tBodies.length; i++) {
++            var elTbody = elTable.tBodies[i];
++    
++            // Iterate through each TR
++            for(var j=elTbody.rows.length-1; j>-1; j--) {
++                var elRow = elTbody.rows[j];
++                var oResult = {};
++                
++                for(var k=fields.length-1; k>-1; k--) {
++                    var field = fields[k];
++                    var key = (lang.isValue(field.key)) ? field.key : field;
++                    var data = elRow.cells[k].innerHTML;
++    
++                    // Backward compatibility
++                    if(!field.parser && field.converter) {
++                        field.parser = field.converter;
++                    }
++                    var parser = (typeof field.parser === 'function') ?
++                        field.parser :
++                        DS.Parser[field.parser+''];
++                    if(parser) {
++                        data = parser.call(this, data);
++                    }
++                    // Safety measure
++                    if(data === undefined) {
++                        data = null;
++                    }
++                    oResult[key] = data;
++                }
++                oParsedResponse.results[j] = oResult;
++            }
++        }
++    }
++    else {
++        bError = true;
++    }
++
++    if(bError) {
++        oParsedResponse.error = true;
++    }
++    else {
++    }
++    return oParsedResponse;
++}
++
++};
++
++// DataSourceBase uses EventProvider
++lang.augmentProto(DS, util.EventProvider);
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * LocalDataSource class for in-memory data structs including JavaScript arrays,
++ * JavaScript object literals (JSON), XML documents, and HTML tables.
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.LocalDataSource
++ * @extends YAHOO.util.DataSourceBase 
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.LocalDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_LOCAL;
++    
++    if(oLiveData) {
++        if(YAHOO.lang.isArray(oLiveData)) { // array
++            this.responseType = DS.TYPE_JSARRAY;
++        }
++         // xml
++        else if(oLiveData.nodeType && oLiveData.nodeType == 9) {
++            this.responseType = DS.TYPE_XML;
++        }
++        else if(oLiveData.nodeName && (oLiveData.nodeName.toLowerCase() == "table")) { // table
++            this.responseType = DS.TYPE_HTMLTABLE;
++            oLiveData = oLiveData.cloneNode(true);
++        }    
++        else if(YAHOO.lang.isString(oLiveData)) { // text
++            this.responseType = DS.TYPE_TEXT;
++        }
++        else if(YAHOO.lang.isObject(oLiveData)) { // json
++            this.responseType = DS.TYPE_JSON;
++        }
++    }
++    else {
++        oLiveData = [];
++        this.responseType = DS.TYPE_JSARRAY;
++    }
++    
++    util.LocalDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// LocalDataSource extends DataSourceBase
++lang.extend(util.LocalDataSource, DS);
++
++// Copy static members to LocalDataSource class
++lang.augmentObject(util.LocalDataSource, DS);
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * FunctionDataSource class for JavaScript functions.
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.FunctionDataSource
++ * @extends YAHOO.util.DataSourceBase  
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.FunctionDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_JSFUNCTION;
++    oLiveData = oLiveData || function() {};
++    
++    util.FunctionDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// FunctionDataSource extends DataSourceBase
++lang.extend(util.FunctionDataSource, DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// FunctionDataSource public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Context in which to execute the function. By default, is the DataSource
++ * instance itself. If set, the function will receive the DataSource instance
++ * as an additional argument. 
++ *
++ * @property scope
++ * @type Object
++ * @default null
++ */
++scope : null,
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// FunctionDataSource public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Overriding method passes query to a function. The returned response is then
++ * forwarded to the handleResponse function.
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId,request:oRequest,callback:oCallback,caller:oCaller});
++
++    // Pass the request in as a parameter and
++    // forward the return value to the handler
++    
++    
++    var oRawResponse = (this.scope) ? this.liveData.call(this.scope, oRequest, this) : this.liveData(oRequest);
++    
++    // Try to sniff data type if it has not been defined
++    if(this.responseType === DS.TYPE_UNKNOWN) {
++        if(YAHOO.lang.isArray(oRawResponse)) { // array
++            this.responseType = DS.TYPE_JSARRAY;
++        }
++         // xml
++        else if(oRawResponse && oRawResponse.nodeType && oRawResponse.nodeType == 9) {
++            this.responseType = DS.TYPE_XML;
++        }
++        else if(oRawResponse && oRawResponse.nodeName && (oRawResponse.nodeName.toLowerCase() == "table")) { // table
++            this.responseType = DS.TYPE_HTMLTABLE;
++        }    
++        else if(YAHOO.lang.isObject(oRawResponse)) { // json
++            this.responseType = DS.TYPE_JSON;
++        }
++        else if(YAHOO.lang.isString(oRawResponse)) { // text
++            this.responseType = DS.TYPE_TEXT;
++        }
++    }
++
++    this.handleResponse(oRequest, oRawResponse, oCallback, oCaller, tId);
++    return tId;
++}
++
++});
++
++// Copy static members to FunctionDataSource class
++lang.augmentObject(util.FunctionDataSource, DS);
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * ScriptNodeDataSource class for accessing remote data via the YUI Get Utility. 
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.ScriptNodeDataSource
++ * @extends YAHOO.util.DataSourceBase  
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.ScriptNodeDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_SCRIPTNODE;
++    oLiveData = oLiveData || "";
++    
++    util.ScriptNodeDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// ScriptNodeDataSource extends DataSourceBase
++lang.extend(util.ScriptNodeDataSource, DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// ScriptNodeDataSource public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Alias to YUI Get Utility, to allow implementers to use a custom class.
++ *
++ * @property getUtility
++ * @type Object
++ * @default YAHOO.util.Get
++ */
++getUtility : util.Get,
++
++/**
++ * 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"
++ */
++asyncMode : "allowAll",
++
++/**
++ * Callback string parameter name sent to the remote script. By default,
++ * requests are sent to
++ * &#60;URI&#62;?&#60;scriptCallbackParam&#62;=callbackFunction
++ *
++ * @property scriptCallbackParam
++ * @type String
++ * @default "callback"
++ */
++scriptCallbackParam : "callback",
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// ScriptNodeDataSource public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Creates a request callback that gets appended to the script URI. Implementers
++ * can customize this string to match their server's query syntax.
++ *
++ * @method generateRequestCallback
++ * @return {String} String fragment that gets appended to script URI that 
++ * specifies the callback function 
++ */
++generateRequestCallback : function(id) {
++    return "&" + this.scriptCallbackParam + "=YAHOO.util.ScriptNodeDataSource.callbacks["+id+"]" ;
++},
++
++/**
++ * Overridable method gives implementers access to modify the URI before the dynamic
++ * script node gets inserted. Implementers should take care not to return an
++ * invalid URI.
++ *
++ * @method doBeforeGetScriptNode
++ * @param {String} URI to the script 
++ * @return {String} URI to the script
++ */
++doBeforeGetScriptNode : function(sUri) {
++    return sUri;
++},
++
++/**
++ * Overriding method passes query to Get Utility. The returned
++ * response is then forwarded to the handleResponse function.
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId,request:oRequest,callback:oCallback,caller:oCaller});
++    
++    // If there are no global pending requests, it is safe to purge global callback stack and global counter
++    if(util.ScriptNodeDataSource._nPending === 0) {
++        util.ScriptNodeDataSource.callbacks = [];
++        util.ScriptNodeDataSource._nId = 0;
++    }
++    
++    // ID for this request
++    var id = util.ScriptNodeDataSource._nId;
++    util.ScriptNodeDataSource._nId++;
++    
++    // Dynamically add handler function with a closure to the callback stack
++    var oSelf = this;
++    util.ScriptNodeDataSource.callbacks[id] = function(oRawResponse) {
++        if((oSelf.asyncMode !== "ignoreStaleResponses")||
++                (id === util.ScriptNodeDataSource.callbacks.length-1)) { // Must ignore stale responses
++                
++            // Try to sniff data type if it has not been defined
++            if(oSelf.responseType === DS.TYPE_UNKNOWN) {
++                if(YAHOO.lang.isArray(oRawResponse)) { // array
++                    oSelf.responseType = DS.TYPE_JSARRAY;
++                }
++                 // xml
++                else if(oRawResponse.nodeType && oRawResponse.nodeType == 9) {
++                    oSelf.responseType = DS.TYPE_XML;
++                }
++                else if(oRawResponse.nodeName && (oRawResponse.nodeName.toLowerCase() == "table")) { // table
++                    oSelf.responseType = DS.TYPE_HTMLTABLE;
++                }    
++                else if(YAHOO.lang.isObject(oRawResponse)) { // json
++                    oSelf.responseType = DS.TYPE_JSON;
++                }
++                else if(YAHOO.lang.isString(oRawResponse)) { // text
++                    oSelf.responseType = DS.TYPE_TEXT;
++                }
++            }
++
++            oSelf.handleResponse(oRequest, oRawResponse, oCallback, oCaller, tId);
++        }
++        else {
++        }
++    
++        delete util.ScriptNodeDataSource.callbacks[id];
++    };
++    
++    // We are now creating a request
++    util.ScriptNodeDataSource._nPending++;
++    var sUri = this.liveData + oRequest + this.generateRequestCallback(id);
++    sUri = this.doBeforeGetScriptNode(sUri);
++    this.getUtility.script(sUri,
++            {autopurge: true,
++            onsuccess: util.ScriptNodeDataSource._bumpPendingDown,
++            onfail: util.ScriptNodeDataSource._bumpPendingDown});
++
++    return tId;
++}
++
++});
++
++// Copy static members to ScriptNodeDataSource class
++lang.augmentObject(util.ScriptNodeDataSource, DS);
++
++// Copy static members to ScriptNodeDataSource class
++lang.augmentObject(util.ScriptNodeDataSource,  {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// ScriptNodeDataSource private static properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Unique ID to track requests.
++ *
++ * @property _nId
++ * @type Number
++ * @private
++ * @static
++ */
++_nId : 0,
++
++/**
++ * Counter for pending requests. When this is 0, it is safe to purge callbacks
++ * array.
++ *
++ * @property _nPending
++ * @type Number
++ * @private
++ * @static
++ */
++_nPending : 0,
++
++/**
++ * Global array of callback functions, one for each request sent.
++ *
++ * @property callbacks
++ * @type Function[]
++ * @static
++ */
++callbacks : []
++
++});
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * XHRDataSource class for accessing remote data via the YUI Connection Manager
++ * Utility
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.XHRDataSource
++ * @extends YAHOO.util.DataSourceBase  
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.XHRDataSource = function(oLiveData, oConfigs) {
++    this.dataType = DS.TYPE_XHR;
++    this.connMgr = this.connMgr || util.Connect;
++    oLiveData = oLiveData || "";
++    
++    util.XHRDataSource.superclass.constructor.call(this, oLiveData, oConfigs); 
++};
++
++// XHRDataSource extends DataSourceBase
++lang.extend(util.XHRDataSource, DS, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// XHRDataSource public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++
++ /**
++ * Alias to YUI Connection Manager, to allow implementers to use a custom class.
++ *
++ * @property connMgr
++ * @type Object
++ * @default YAHOO.util.Connect
++ */
++connMgr: null,
++
++ /**
++ * 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 connXhrMode
++ * @type String
++ * @default "allowAll"
++ */
++connXhrMode: "allowAll",
++
++ /**
++ * True if data is to be sent via POST. By default, data will be sent via GET.
++ *
++ * @property connMethodPost
++ * @type Boolean
++ * @default false
++ */
++connMethodPost: false,
++
++ /**
++ * The connection timeout defines how many  milliseconds the XHR connection will
++ * wait for a server response. Any non-zero value will enable the Connection Manager's
++ * Auto-Abort feature.
++ *
++ * @property connTimeout
++ * @type Number
++ * @default 0
++ */
++connTimeout: 0,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// XHRDataSource public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Overriding method passes query to Connection Manager. The returned
++ * response is then forwarded to the handleResponse function.
++ *
++ * @method makeConnection
++ * @param oRequest {Object} Request object.
++ * @param oCallback {Object} Callback object literal.
++ * @param oCaller {Object} (deprecated) Use oCallback.scope.
++ * @return {Number} Transaction ID.
++ */
++makeConnection : function(oRequest, oCallback, oCaller) {
++
++    var oRawResponse = null;
++    var tId = DS._nTransactionId++;
++    this.fireEvent("requestEvent", {tId:tId,request:oRequest,callback:oCallback,caller:oCaller});
++
++    // Set up the callback object and
++    // pass the request in as a URL query and
++    // forward the response to the handler
++    var oSelf = this;
++    var oConnMgr = this.connMgr;
++    var oQueue = this._oQueue;
++
++    /**
++     * Define Connection Manager success handler
++     *
++     * @method _xhrSuccess
++     * @param oResponse {Object} HTTPXMLRequest object
++     * @private
++     */
++    var _xhrSuccess = function(oResponse) {
++        // If response ID does not match last made request ID,
++        // silently fail and wait for the next response
++        if(oResponse && (this.connXhrMode == "ignoreStaleResponses") &&
++                (oResponse.tId != oQueue.conn.tId)) {
++            return null;
++        }
++        // Error if no response
++        else if(!oResponse) {
++            this.fireEvent("dataErrorEvent", {request:oRequest, response:null,
++                    callback:oCallback, caller:oCaller,
++                    message:DS.ERROR_DATANULL});
++
++            // Send error response back to the caller with the error flag on
++            DS.issueCallback(oCallback,[oRequest, {error:true}], true, oCaller);
++
++            return null;
++        }
++        // Forward to handler
++        else {
++            // Try to sniff data type if it has not been defined
++            if(this.responseType === DS.TYPE_UNKNOWN) {
++                var ctype = (oResponse.getResponseHeader) ? oResponse.getResponseHeader["Content-Type"] : null;
++                if(ctype) {
++                    // xml
++                    if(ctype.indexOf("text/xml") > -1) {
++                        this.responseType = DS.TYPE_XML;
++                    }
++                    else if(ctype.indexOf("application/json") > -1) { // json
++                        this.responseType = DS.TYPE_JSON;
++                    }
++                    else if(ctype.indexOf("text/plain") > -1) { // text
++                        this.responseType = DS.TYPE_TEXT;
++                    }
++                }
++            }
++            this.handleResponse(oRequest, oResponse, oCallback, oCaller, tId);
++        }
++    };
++
++    /**
++     * Define Connection Manager failure handler
++     *
++     * @method _xhrFailure
++     * @param oResponse {Object} HTTPXMLRequest object
++     * @private
++     */
++    var _xhrFailure = function(oResponse) {
++        this.fireEvent("dataErrorEvent", {request:oRequest, response: oResponse,
++                callback:oCallback, caller:oCaller,
++                message:DS.ERROR_DATAINVALID});
++
++        // Backward compatibility
++        if(lang.isString(this.liveData) && lang.isString(oRequest) &&
++            (this.liveData.lastIndexOf("?") !== this.liveData.length-1) &&
++            (oRequest.indexOf("?") !== 0)){
++        }
++
++        // Send failure response back to the caller with the error flag on
++        oResponse = oResponse || {};
++        oResponse.error = true;
++        DS.issueCallback(oCallback,[oRequest,oResponse],true, oCaller);
++
++        return null;
++    };
++
++    /**
++     * Define Connection Manager callback object
++     *
++     * @property _xhrCallback
++     * @param oResponse {Object} HTTPXMLRequest object
++     * @private
++     */
++     var _xhrCallback = {
++        success:_xhrSuccess,
++        failure:_xhrFailure,
++        scope: this
++    };
++
++    // Apply Connection Manager timeout
++    if(lang.isNumber(this.connTimeout)) {
++        _xhrCallback.timeout = this.connTimeout;
++    }
++
++    // Cancel stale requests
++    if(this.connXhrMode == "cancelStaleRequests") {
++            // Look in queue for stale requests
++            if(oQueue.conn) {
++                if(oConnMgr.abort) {
++                    oConnMgr.abort(oQueue.conn);
++                    oQueue.conn = null;
++                }
++                else {
++                }
++            }
++    }
++
++    // Get ready to send the request URL
++    if(oConnMgr && oConnMgr.asyncRequest) {
++        var sLiveData = this.liveData;
++        var isPost = this.connMethodPost;
++        var sMethod = (isPost) ? "POST" : "GET";
++        // Validate request
++        var sUri = (isPost || !lang.isValue(oRequest)) ? sLiveData : sLiveData+oRequest;
++        var sRequest = (isPost) ? oRequest : null;
++
++        // Send the request right away
++        if(this.connXhrMode != "queueRequests") {
++            oQueue.conn = oConnMgr.asyncRequest(sMethod, sUri, _xhrCallback, sRequest);
++        }
++        // Queue up then send the request
++        else {
++            // Found a request already in progress
++            if(oQueue.conn) {
++                var allRequests = oQueue.requests;
++                // Add request to queue
++                allRequests.push({request:oRequest, callback:_xhrCallback});
++
++                // Interval needs to be started
++                if(!oQueue.interval) {
++                    oQueue.interval = setInterval(function() {
++                        // Connection is in progress
++                        if(oConnMgr.isCallInProgress(oQueue.conn)) {
++                            return;
++                        }
++                        else {
++                            // Send next request
++                            if(allRequests.length > 0) {
++                                // Validate request
++                                sUri = (isPost || !lang.isValue(allRequests[0].request)) ? sLiveData : sLiveData+allRequests[0].request;
++                                sRequest = (isPost) ? allRequests[0].request : null;
++                                oQueue.conn = oConnMgr.asyncRequest(sMethod, sUri, allRequests[0].callback, sRequest);
++
++                                // Remove request from queue
++                                allRequests.shift();
++                            }
++                            // No more requests
++                            else {
++                                clearInterval(oQueue.interval);
++                                oQueue.interval = null;
++                            }
++                        }
++                    }, 50);
++                }
++            }
++            // Nothing is in progress
++            else {
++                oQueue.conn = oConnMgr.asyncRequest(sMethod, sUri, _xhrCallback, sRequest);
++            }
++        }
++    }
++    else {
++        // Send null response back to the caller with the error flag on
++        DS.issueCallback(oCallback,[oRequest,{error:true}],true,oCaller);
++    }
++
++    return tId;
++}
++
++});
++
++// Copy static members to XHRDataSource class
++lang.augmentObject(util.XHRDataSource, DS);
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Factory class for creating a BaseDataSource subclass instance. The sublcass is
++ * determined by oLiveData's type, unless the dataType config is explicitly passed in.  
++ *
++ * @namespace YAHOO.util
++ * @class YAHOO.util.DataSource
++ * @constructor
++ * @param oLiveData {HTMLElement}  Pointer to live data.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++util.DataSource = function(oLiveData, oConfigs) {
++    oConfigs = oConfigs || {};
++    
++    // Point to one of the subclasses, first by dataType if given, then by sniffing oLiveData type.
++    var dataType = oConfigs.dataType;
++    if(dataType) {
++        if(dataType == DS.TYPE_LOCAL) {
++            lang.augmentObject(util.DataSource, util.LocalDataSource);
++            return new util.LocalDataSource(oLiveData, oConfigs);            
++        }
++        else if(dataType == DS.TYPE_XHR) {
++            lang.augmentObject(util.DataSource, util.XHRDataSource);
++            return new util.XHRDataSource(oLiveData, oConfigs);            
++        }
++        else if(dataType == DS.TYPE_SCRIPTNODE) {
++            lang.augmentObject(util.DataSource, util.ScriptNodeDataSource);
++            return new util.ScriptNodeDataSource(oLiveData, oConfigs);            
++        }
++        else if(dataType == DS.TYPE_JSFUNCTION) {
++            lang.augmentObject(util.DataSource, util.FunctionDataSource);
++            return new util.FunctionDataSource(oLiveData, oConfigs);            
++        }
++    }
++    
++    if(YAHOO.lang.isString(oLiveData)) { // strings default to xhr
++        lang.augmentObject(util.DataSource, util.XHRDataSource);
++        return new util.XHRDataSource(oLiveData, oConfigs);
++    }
++    else if(YAHOO.lang.isFunction(oLiveData)) {
++        lang.augmentObject(util.DataSource, util.FunctionDataSource);
++        return new util.FunctionDataSource(oLiveData, oConfigs);
++    }
++    else { // ultimate default is local
++        lang.augmentObject(util.DataSource, util.LocalDataSource);
++        return new util.LocalDataSource(oLiveData, oConfigs);
++    }
++};
++
++// Copy static members to DataSource class
++lang.augmentObject(util.DataSource, DS);
++
++})();
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The static Number class provides helper functions to deal with data of type
++ * Number.
++ *
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @class Number
++ * @static
++ */
++ YAHOO.util.Number = {
++ 
++     /**
++     * Takes a native JavaScript Number and formats to string for display to user.
++     *
++     * @method format
++     * @param nData {Number} Number.
++     * @param oConfig {Object} (Optional) Optional configuration values:
++     *  <dl>
++     *   <dt>prefix {String}</dd>
++     *   <dd>String prepended before each number, like a currency designator "$"</dd>
++     *   <dt>decimalPlaces {Number}</dd>
++     *   <dd>Number of decimal places to round.</dd>
++     *   <dt>decimalSeparator {String}</dd>
++     *   <dd>Decimal separator</dd>
++     *   <dt>thousandsSeparator {String}</dd>
++     *   <dd>Thousands separator</dd>
++     *   <dt>suffix {String}</dd>
++     *   <dd>String appended after each number, like " items" (note the space)</dd>
++     *   <dt>negativeFormat</dt>
++     *   <dd>String used as a guide for how to indicate negative numbers.  The first '#' character in the string will be replaced by the number.  Default '-#'.</dd>
++     *  </dl>
++     * @return {String} Formatted number for display. Note, the following values
++     * return as "": null, undefined, NaN, "".
++     */
++    format : function(n, cfg) {
++        if (!isFinite(+n)) {
++            return '';
++        }
++
++        n   = !isFinite(+n) ? 0 : +n;
++        cfg = YAHOO.lang.merge(YAHOO.util.Number.format.defaults, (cfg || {}));
++
++        var neg    = n < 0,        absN   = Math.abs(n),
++            places = cfg.decimalPlaces,
++            sep    = cfg.thousandsSeparator,
++            s, bits, i;
++
++        if (places < 0) {
++            // Get rid of the decimal info
++            s = absN - (absN % 1) + '';
++            i = s.length + places;
++
++            // avoid 123 vs decimalPlaces -4 (should return "0")
++            if (i > 0) {
++                    // leverage toFixed by making 123 => 0.123 for the rounding
++                    // operation, then add the appropriate number of zeros back on
++                s = Number('.' + s).toFixed(i).slice(2) +
++                    new Array(s.length - i + 1).join('0');
++            } else {
++                s = "0";
++            }
++        } else {        // There is a bug in IE's toFixed implementation:
++            // for n in {(-0.94, -0.5], [0.5, 0.94)} n.toFixed() returns 0
++            // instead of -1 and 1. Manually handle that case.
++            s = absN < 1 && absN >= 0.5 && !places ? '1' : absN.toFixed(places);
++        }
++
++        if (absN > 1000) {
++            bits  = s.split(/\D/);
++            i  = bits[0].length % 3 || 3;
++
++            bits[0] = bits[0].slice(0,i) +
++                      bits[0].slice(i).replace(/(\d{3})/g, sep + '$1');
++
++            s = bits.join(cfg.decimalSeparator);
++        }
++
++        s = cfg.prefix + s + cfg.suffix;
++
++        return neg ? cfg.negativeFormat.replace(/#/,s) : s;
++    }
++};
++YAHOO.util.Number.format.defaults = {
++    decimalSeparator : '.',
++    decimalPlaces    : null,
++    thousandsSeparator : '',
++    prefix : '',
++    suffix : '',
++    negativeFormat : '-#'
++};
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++(function () {
++
++var xPad=function (x, pad, r)
++{
++    if(typeof r === 'undefined')
++    {
++        r=10;
++    }
++    for( ; parseInt(x, 10)<r && r>1; r/=10) {
++        x = pad.toString() + x;
++    }
++    return x.toString();
++};
++
++
++/**
++ * The static Date class provides helper functions to deal with data of type Date.
++ *
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @class Date
++ * @static
++ */
++ var Dt = {
++    formats: {
++        a: function (d, l) { return l.a[d.getDay()]; },
++        A: function (d, l) { return l.A[d.getDay()]; },
++        b: function (d, l) { return l.b[d.getMonth()]; },
++        B: function (d, l) { return l.B[d.getMonth()]; },
++        C: function (d) { return xPad(parseInt(d.getFullYear()/100, 10), 0); },
++        d: ['getDate', '0'],
++        e: ['getDate', ' '],
++        g: function (d) { return xPad(parseInt(Dt.formats.G(d)%100, 10), 0); },
++        G: function (d) {
++                var y = d.getFullYear();
++                var V = parseInt(Dt.formats.V(d), 10);
++                var W = parseInt(Dt.formats.W(d), 10);
++    
++                if(W > V) {
++                    y++;
++                } else if(W===0 && V>=52) {
++                    y--;
++                }
++    
++                return y;
++            },
++        H: ['getHours', '0'],
++        I: function (d) { var I=d.getHours()%12; return xPad(I===0?12:I, 0); },
++        j: function (d) {
++                var gmd_1 = new Date('' + d.getFullYear() + '/1/1 GMT');
++                var gmdate = new Date('' + d.getFullYear() + '/' + (d.getMonth()+1) + '/' + d.getDate() + ' GMT');
++                var ms = gmdate - gmd_1;
++                var doy = parseInt(ms/60000/60/24, 10)+1;
++                return xPad(doy, 0, 100);
++            },
++        k: ['getHours', ' '],
++        l: function (d) { var I=d.getHours()%12; return xPad(I===0?12:I, ' '); },
++        m: function (d) { return xPad(d.getMonth()+1, 0); },
++        M: ['getMinutes', '0'],
++        p: function (d, l) { return l.p[d.getHours() >= 12 ? 1 : 0 ]; },
++        P: function (d, l) { return l.P[d.getHours() >= 12 ? 1 : 0 ]; },
++        s: function (d, l) { return parseInt(d.getTime()/1000, 10); },
++        S: ['getSeconds', '0'],
++        u: function (d) { var dow = d.getDay(); return dow===0?7:dow; },
++        U: function (d) {
++                var doy = parseInt(Dt.formats.j(d), 10);
++                var rdow = 6-d.getDay();
++                var woy = parseInt((doy+rdow)/7, 10);
++                return xPad(woy, 0);
++            },
++        V: function (d) {
++                var woy = parseInt(Dt.formats.W(d), 10);
++                var dow1_1 = (new Date('' + d.getFullYear() + '/1/1')).getDay();
++                // First week is 01 and not 00 as in the case of %U and %W,
++                // so we add 1 to the final result except if day 1 of the year
++                // is a Monday (then %W returns 01).
++                // We also need to subtract 1 if the day 1 of the year is 
++                // Friday-Sunday, so the resulting equation becomes:
++                var idow = woy + (dow1_1 > 4 || dow1_1 <= 1 ? 0 : 1);
++                if(idow === 53 && (new Date('' + d.getFullYear() + '/12/31')).getDay() < 4)
++                {
++                    idow = 1;
++                }
++                else if(idow === 0)
++                {
++                    idow = Dt.formats.V(new Date('' + (d.getFullYear()-1) + '/12/31'));
++                }
++    
++                return xPad(idow, 0);
++            },
++        w: 'getDay',
++        W: function (d) {
++                var doy = parseInt(Dt.formats.j(d), 10);
++                var rdow = 7-Dt.formats.u(d);
++                var woy = parseInt((doy+rdow)/7, 10);
++                return xPad(woy, 0, 10);
++            },
++        y: function (d) { return xPad(d.getFullYear()%100, 0); },
++        Y: 'getFullYear',
++        z: function (d) {
++                var o = d.getTimezoneOffset();
++                var H = xPad(parseInt(Math.abs(o/60), 10), 0);
++                var M = xPad(Math.abs(o%60), 0);
++                return (o>0?'-':'+') + H + M;
++            },
++        Z: function (d) {
++		var tz = d.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/, '$2').replace(/[a-z ]/g, '');
++		if(tz.length > 4) {
++			tz = Dt.formats.z(d);
++		}
++		return tz;
++	},
++        '%': function (d) { return '%'; }
++    },
++
++    aggregates: {
++        c: 'locale',
++        D: '%m/%d/%y',
++        F: '%Y-%m-%d',
++        h: '%b',
++        n: '\n',
++        r: 'locale',
++        R: '%H:%M',
++        t: '\t',
++        T: '%H:%M:%S',
++        x: 'locale',
++        X: 'locale'
++        //'+': '%a %b %e %T %Z %Y'
++    },
++
++     /**
++     * Takes a native JavaScript Date and formats to string for display to user.
++     *
++     * @method format
++     * @param oDate {Date} Date.
++     * @param oConfig {Object} (Optional) Object literal of configuration values:
++     *  <dl>
++     *   <dt>format &lt;String&gt;</dt>
++     *   <dd>
++     *   <p>
++     *   Any strftime string is supported, such as "%I:%M:%S %p". strftime has several format specifiers defined by the Open group at 
++     *   <a href="http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html">http://www.opengroup.org/onlinepubs/007908799/xsh/strftime.html</a>
++     *   </p>
++     *   <p>   
++     *   PHP added a few of its own, defined at <a href="http://www.php.net/strftime">http://www.php.net/strftime</a>
++     *   </p>
++     *   <p>
++     *   This javascript implementation supports all the PHP specifiers and a few more.  The full list is below:
++     *   </p>
++     *   <dl>
++     *    <dt>%a</dt> <dd>abbreviated weekday name according to the current locale</dd>
++     *    <dt>%A</dt> <dd>full weekday name according to the current locale</dd>
++     *    <dt>%b</dt> <dd>abbreviated month name according to the current locale</dd>
++     *    <dt>%B</dt> <dd>full month name according to the current locale</dd>
++     *    <dt>%c</dt> <dd>preferred date and time representation for the current locale</dd>
++     *    <dt>%C</dt> <dd>century number (the year divided by 100 and truncated to an integer, range 00 to 99)</dd>
++     *    <dt>%d</dt> <dd>day of the month as a decimal number (range 01 to 31)</dd>
++     *    <dt>%D</dt> <dd>same as %m/%d/%y</dd>
++     *    <dt>%e</dt> <dd>day of the month as a decimal number, a single digit is preceded by a space (range ' 1' to '31')</dd>
++     *    <dt>%F</dt> <dd>same as %Y-%m-%d (ISO 8601 date format)</dd>
++     *    <dt>%g</dt> <dd>like %G, but without the century</dd>
++     *    <dt>%G</dt> <dd>The 4-digit year corresponding to the ISO week number</dd>
++     *    <dt>%h</dt> <dd>same as %b</dd>
++     *    <dt>%H</dt> <dd>hour as a decimal number using a 24-hour clock (range 00 to 23)</dd>
++     *    <dt>%I</dt> <dd>hour as a decimal number using a 12-hour clock (range 01 to 12)</dd>
++     *    <dt>%j</dt> <dd>day of the year as a decimal number (range 001 to 366)</dd>
++     *    <dt>%k</dt> <dd>hour as a decimal number using a 24-hour clock (range 0 to 23); single digits are preceded by a blank. (See also %H.)</dd>
++     *    <dt>%l</dt> <dd>hour as a decimal number using a 12-hour clock (range 1 to 12); single digits are preceded by a blank. (See also %I.) </dd>
++     *    <dt>%m</dt> <dd>month as a decimal number (range 01 to 12)</dd>
++     *    <dt>%M</dt> <dd>minute as a decimal number</dd>
++     *    <dt>%n</dt> <dd>newline character</dd>
++     *    <dt>%p</dt> <dd>either `AM' or `PM' according to the given time value, or the corresponding strings for the current locale</dd>
++     *    <dt>%P</dt> <dd>like %p, but lower case</dd>
++     *    <dt>%r</dt> <dd>time in a.m. and p.m. notation equal to %I:%M:%S %p</dd>
++     *    <dt>%R</dt> <dd>time in 24 hour notation equal to %H:%M</dd>
++     *    <dt>%s</dt> <dd>number of seconds since the Epoch, ie, since 1970-01-01 00:00:00 UTC</dd>
++     *    <dt>%S</dt> <dd>second as a decimal number</dd>
++     *    <dt>%t</dt> <dd>tab character</dd>
++     *    <dt>%T</dt> <dd>current time, equal to %H:%M:%S</dd>
++     *    <dt>%u</dt> <dd>weekday as a decimal number [1,7], with 1 representing Monday</dd>
++     *    <dt>%U</dt> <dd>week number of the current year as a decimal number, starting with the
++     *            first Sunday as the first day of the first week</dd>
++     *    <dt>%V</dt> <dd>The ISO 8601:1988 week number of the current year as a decimal number,
++     *            range 01 to 53, where week 1 is the first week that has at least 4 days
++     *            in the current year, and with Monday as the first day of the week.</dd>
++     *    <dt>%w</dt> <dd>day of the week as a decimal, Sunday being 0</dd>
++     *    <dt>%W</dt> <dd>week number of the current year as a decimal number, starting with the
++     *            first Monday as the first day of the first week</dd>
++     *    <dt>%x</dt> <dd>preferred date representation for the current locale without the time</dd>
++     *    <dt>%X</dt> <dd>preferred time representation for the current locale without the date</dd>
++     *    <dt>%y</dt> <dd>year as a decimal number without a century (range 00 to 99)</dd>
++     *    <dt>%Y</dt> <dd>year as a decimal number including the century</dd>
++     *    <dt>%z</dt> <dd>numerical time zone representation</dd>
++     *    <dt>%Z</dt> <dd>time zone name or abbreviation</dd>
++     *    <dt>%%</dt> <dd>a literal `%' character</dd>
++     *   </dl>
++     *  </dd>
++     * </dl>
++     * @param sLocale {String} (Optional) The locale to use when displaying days of week,
++     *  months of the year, and other locale specific strings.  The following locales are
++     *  built in:
++     *  <dl>
++     *   <dt>en</dt>
++     *   <dd>English</dd>
++     *   <dt>en-US</dt>
++     *   <dd>US English</dd>
++     *   <dt>en-GB</dt>
++     *   <dd>British English</dd>
++     *   <dt>en-AU</dt>
++     *   <dd>Australian English (identical to British English)</dd>
++     *  </dl>
++     *  More locales may be added by subclassing of YAHOO.util.DateLocale.
++     *  See YAHOO.util.DateLocale for more information.
++     * @return {String} Formatted date for display.
++     * @sa YAHOO.util.DateLocale
++     */
++    format : function (oDate, oConfig, sLocale) {
++        oConfig = oConfig || {};
++        
++        if(!(oDate instanceof Date)) {
++            return YAHOO.lang.isValue(oDate) ? oDate : "";
++        }
++
++        var format = oConfig.format || "%m/%d/%Y";
++
++        // Be backwards compatible, support strings that are
++        // exactly equal to YYYY/MM/DD, DD/MM/YYYY and MM/DD/YYYY
++        if(format === 'YYYY/MM/DD') {
++            format = '%Y/%m/%d';
++        } else if(format === 'DD/MM/YYYY') {
++            format = '%d/%m/%Y';
++        } else if(format === 'MM/DD/YYYY') {
++            format = '%m/%d/%Y';
++        }
++        // end backwards compatibility block
++ 
++        sLocale = sLocale || "en";
++
++        // Make sure we have a definition for the requested locale, or default to en.
++        if(!(sLocale in YAHOO.util.DateLocale)) {
++            if(sLocale.replace(/-[a-zA-Z]+$/, '') in YAHOO.util.DateLocale) {
++                sLocale = sLocale.replace(/-[a-zA-Z]+$/, '');
++            } else {
++                sLocale = "en";
++            }
++        }
++
++        var aLocale = YAHOO.util.DateLocale[sLocale];
++
++        var replace_aggs = function (m0, m1) {
++            var f = Dt.aggregates[m1];
++            return (f === 'locale' ? aLocale[m1] : f);
++        };
++
++        var replace_formats = function (m0, m1) {
++            var f = Dt.formats[m1];
++            if(typeof f === 'string') {             // string => built in date function
++                return oDate[f]();
++            } else if(typeof f === 'function') {    // function => our own function
++                return f.call(oDate, oDate, aLocale);
++            } else if(typeof f === 'object' && typeof f[0] === 'string') {  // built in function with padding
++                return xPad(oDate[f[0]](), f[1]);
++            } else {
++                return m1;
++            }
++        };
++
++        // First replace aggregates (run in a loop because an agg may be made up of other aggs)
++        while(format.match(/%[cDFhnrRtTxX]/)) {
++            format = format.replace(/%([cDFhnrRtTxX])/g, replace_aggs);
++        }
++
++        // Now replace formats (do not run in a loop otherwise %%a will be replace with the value of %a)
++        var str = format.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g, replace_formats);
++
++        replace_aggs = replace_formats = undefined;
++
++        return str;
++    }
++ };
++ 
++ YAHOO.namespace("YAHOO.util");
++ YAHOO.util.Date = Dt;
++
++/**
++ * The DateLocale class is a container and base class for all
++ * localised date strings used by YAHOO.util.Date. It is used
++ * internally, but may be extended to provide new date localisations.
++ *
++ * To create your own DateLocale, follow these steps:
++ * <ol>
++ *  <li>Find an existing locale that matches closely with your needs</li>
++ *  <li>Use this as your base class.  Use YAHOO.util.DateLocale if nothing
++ *   matches.</li>
++ *  <li>Create your own class as an extension of the base class using
++ *   YAHOO.lang.merge, and add your own localisations where needed.</li>
++ * </ol>
++ * See the YAHOO.util.DateLocale['en-US'] and YAHOO.util.DateLocale['en-GB']
++ * classes which extend YAHOO.util.DateLocale['en'].
++ *
++ * For example, to implement locales for French french and Canadian french,
++ * we would do the following:
++ * <ol>
++ *  <li>For French french, we have no existing similar locale, so use
++ *   YAHOO.util.DateLocale as the base, and extend it:
++ *   <pre>
++ *      YAHOO.util.DateLocale['fr'] = YAHOO.lang.merge(YAHOO.util.DateLocale, {
++ *          a: ['dim', 'lun', 'mar', 'mer', 'jeu', 'ven', 'sam'],
++ *          A: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
++ *          b: ['jan', 'f&eacute;v', 'mar', 'avr', 'mai', 'jun', 'jui', 'ao&ucirc;', 'sep', 'oct', 'nov', 'd&eacute;c'],
++ *          B: ['janvier', 'f&eacute;vrier', 'mars', 'avril', 'mai', 'juin', 'juillet', 'ao&ucirc;t', 'septembre', 'octobre', 'novembre', 'd&eacute;cembre'],
++ *          c: '%a %d %b %Y %T %Z',
++ *          p: ['', ''],
++ *          P: ['', ''],
++ *          x: '%d.%m.%Y',
++ *          X: '%T'
++ *      });
++ *   </pre>
++ *  </li>
++ *  <li>For Canadian french, we start with French french and change the meaning of \%x:
++ *   <pre>
++ *      YAHOO.util.DateLocale['fr-CA'] = YAHOO.lang.merge(YAHOO.util.DateLocale['fr'], {
++ *          x: '%Y-%m-%d'
++ *      });
++ *   </pre>
++ *  </li>
++ * </ol>
++ *
++ * With that, you can use your new locales:
++ * <pre>
++ *    var d = new Date("2008/04/22");
++ *    YAHOO.util.Date.format(d, {format: "%A, %d %B == %x"}, "fr");
++ * </pre>
++ * will return:
++ * <pre>
++ *    mardi, 22 avril == 22.04.2008
++ * </pre>
++ * And
++ * <pre>
++ *    YAHOO.util.Date.format(d, {format: "%A, %d %B == %x"}, "fr-CA");
++ * </pre>
++ * Will return:
++ * <pre>
++ *   mardi, 22 avril == 2008-04-22
++ * </pre>
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @class DateLocale
++ */
++ YAHOO.util.DateLocale = {
++        a: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
++        A: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
++        b: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
++        B: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
++        c: '%a %d %b %Y %T %Z',
++        p: ['AM', 'PM'],
++        P: ['am', 'pm'],
++        r: '%I:%M:%S %p',
++        x: '%d/%m/%y',
++        X: '%T'
++ };
++
++ YAHOO.util.DateLocale['en'] = YAHOO.lang.merge(YAHOO.util.DateLocale, {});
++
++ YAHOO.util.DateLocale['en-US'] = YAHOO.lang.merge(YAHOO.util.DateLocale['en'], {
++        c: '%a %d %b %Y %I:%M:%S %p %Z',
++        x: '%m/%d/%Y',
++        X: '%I:%M:%S %p'
++ });
++
++ YAHOO.util.DateLocale['en-GB'] = YAHOO.lang.merge(YAHOO.util.DateLocale['en'], {
++        r: '%l:%M:%S %P %Z'
++ });
++ YAHOO.util.DateLocale['en-AU'] = YAHOO.lang.merge(YAHOO.util.DateLocale['en']);
++
++})();
++
++YAHOO.register("datasource", YAHOO.util.DataSource, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/datatable/assets/datatable-core.css b/pylons_app/public/js/yui/datatable/assets/datatable-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/assets/datatable-core.css
+@@ -0,0 +1,93 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* foundational CSS */
++
++/* mask */
++.yui-skin-sam .yui-dt-mask {
++    position:absolute;
++    z-index:9500;
++}
++
++/* scrollable */
++.yui-dt-tmp {
++    position:absolute;
++    left:-9000px;
++}
++
++.yui-dt-scrollable .yui-dt-bd {
++    overflow:auto;
++}
++.yui-dt-scrollable .yui-dt-hd {
++    overflow:hidden;
++    position:relative; /* for ie overflow bug http://rowanw.com/bugs/overflow_relative.htm */
++} 
++
++.yui-dt-scrollable .yui-dt-bd thead tr,
++.yui-dt-scrollable .yui-dt-bd thead th {
++    position:absolute;
++    left:-1500px;
++}
++
++.yui-dt-scrollable tbody {
++    -moz-outline:none;
++}
++
++/* sortable columns */
++
++.yui-skin-sam thead .yui-dt-sortable {
++    cursor:pointer;
++}
++
++/* draggable columns */
++.yui-skin-sam thead .yui-dt-draggable {
++    cursor: move;
++}
++.yui-dt-coltarget {
++    position: absolute;
++    z-index: 999;
++}
++
++/* resizeable columns */
++.yui-dt-hd {
++    zoom:1; 
++}
++th.yui-dt-resizeable .yui-dt-resizerliner {
++    position:relative;
++}
++.yui-dt-resizer {
++    position:absolute;
++    right:0;
++    bottom:0;
++    height:100%;
++    cursor:e-resize;
++    cursor:col-resize;
++    background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */
++}
++.yui-dt-resizerproxy {
++    visibility:hidden;
++    position:absolute;
++    z-index:9000;
++    background-color:#CCC;opacity:0;filter: alpha(opacity=0); /* Bug 1952811: IE transparency z-index */
++}
++
++/* hidden columns */
++th.yui-dt-hidden .yui-dt-liner, 
++td.yui-dt-hidden .yui-dt-liner,
++th.yui-dt-hidden .yui-dt-resizer {
++    /*TODO: document change from 2.5.2 to 2.6
++    margin:0;
++    padding:0;
++    white-space:nowrap;
++    width:1px;
++    overflow:hidden;*/
++    display:none;
++}
++
++/* editing */
++.yui-dt-editor {
++    position:absolute;z-index:9000;
++}
+diff --git a/pylons_app/public/js/yui/datatable/assets/datatable.css b/pylons_app/public/js/yui/datatable/assets/datatable.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/assets/datatable.css
+@@ -0,0 +1,49 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/*foundational css*/
++.yui-dt-table th, .yui-dt-table td {
++    overflow:hidden;
++}
++
++th .yui-dt-header {
++    position:relative;
++}
++
++th .yui-dt-label {
++    position:relative;
++    border-right:10px;
++}
++
++th .yui-dt-resizer {
++    position:absolute;
++    margin-right:-6px;
++    right:0;
++    bottom:0;
++    width:6px;
++    height:100%;
++    cursor:w-resize;
++    cursor:col-resize;
++}
++
++/* foundational scrolling css */
++.yui-dt-scrollable  {
++    *overflow-y:auto; /* for ie */
++}
++.yui-dt-scrollable  thead {
++    display:block; /* for safari and opera */
++}
++.yui-dt-scrollable thead tr {
++    position:relative;  /* for ie */
++}
++.yui-dt-scrollbody {
++    display:block; /* for safari and opera */
++    overflow:auto; /* for gecko */
++}
++
++.yui-dt-editor {
++    position:absolute;
++}
+diff --git a/pylons_app/public/js/yui/datatable/assets/skins/sam/datatable-skin.css b/pylons_app/public/js/yui/datatable/assets/skins/sam/datatable-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/assets/skins/sam/datatable-skin.css
+@@ -0,0 +1,240 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* basic skin styles */
++.yui-skin-sam .yui-dt table {
++    margin:0;padding:0;
++    font-family:arial;font-size:inherit;
++    border-collapse:separate;*border-collapse:collapse;border-spacing:0; /* since ie6 and ie7 behave differently */
++    border:1px solid #7F7F7F;
++}
++.yui-skin-sam .yui-dt thead {border-spacing:0;} /* for safari bug */
++
++.yui-skin-sam .yui-dt caption {
++    color:#000000;
++    font-size:85%;
++    font-weight:normal;
++    font-style:italic;
++    line-height:1;
++    padding:1em 0pt;
++    text-align:center;
++}
++
++.yui-skin-sam .yui-dt th {
++    background:#D8D8DA url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0; /* header gradient */
++}
++.yui-skin-sam .yui-dt th,
++.yui-skin-sam .yui-dt th a {
++    font-weight:normal;text-decoration:none;color:#000; /* header text */
++    vertical-align:bottom;
++}
++.yui-skin-sam .yui-dt th {
++    margin:0;padding:0;
++    border:none;
++    border-right:1px solid #CBCBCB;/*  inner column border */
++}
++.yui-skin-sam .yui-dt tr.yui-dt-first td {
++    border-top:1px solid #7F7F7F;  /* tbody top border  */
++}
++.yui-skin-sam .yui-dt th .yui-dt-liner {
++    white-space:nowrap;
++}
++.yui-skin-sam .yui-dt-liner {
++    margin:0;padding:0;
++    padding:4px 10px 4px 10px; /* cell padding */
++}
++.yui-skin-sam .yui-dt-coltarget {
++    width: 5px;
++    background-color: red;
++}
++.yui-skin-sam .yui-dt td {
++    margin:0;padding:0;
++    border:none;
++    border-right:1px solid #CBCBCB; /* inner column border */
++    text-align:left;
++}
++.yui-skin-sam .yui-dt-list td {
++    border-right:none; /* disable inner column border in list mode */
++}
++.yui-skin-sam .yui-dt-resizer {
++    width:6px;
++}
++
++/* mask */
++.yui-skin-sam .yui-dt-mask {
++    background-color: #000;
++    opacity: .25;
++    filter: alpha(opacity=25);  /* Set opacity in IE */
++}
++
++/* messaging */
++.yui-skin-sam .yui-dt-message  {
++    background-color:#FFF;
++}
++
++/* scrolling */
++.yui-skin-sam .yui-dt-scrollable table {border:none;}
++.yui-skin-sam .yui-dt-scrollable .yui-dt-hd {border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}
++.yui-skin-sam .yui-dt-scrollable .yui-dt-bd {border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}
++.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td {border-bottom:1px solid #7F7F7F;}
++
++/* sortable columns */
++.yui-skin-sam th.yui-dt-asc,
++.yui-skin-sam th.yui-dt-desc {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -100px; /* sorted header gradient */
++}
++.yui-skin-sam th.yui-dt-sortable .yui-dt-label {
++    margin-right:10px;
++}
++.yui-skin-sam th.yui-dt-asc .yui-dt-liner {
++    background:url(dt-arrow-up.png) no-repeat right; /* sorted header gradient */
++}
++.yui-skin-sam th.yui-dt-desc .yui-dt-liner {
++    background:url(dt-arrow-dn.png) no-repeat right; /* sorted header gradient */
++}
++
++/* editing */
++tbody .yui-dt-editable {
++    cursor:pointer;
++}
++.yui-dt-editor {
++    text-align:left;
++    background-color:#F2F2F2;
++    border:1px solid #808080;
++    padding:6px;
++}
++.yui-dt-editor label {
++    padding-left:4px;padding-right:6px;
++}
++.yui-dt-editor .yui-dt-button {
++    padding-top:6px;text-align:right;
++}
++.yui-dt-editor .yui-dt-button button {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++    border:1px solid #999;
++    width:4em;height:1.8em;
++    margin-left:6px;
++}
++.yui-dt-editor .yui-dt-button button.yui-dt-default {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
++    background-color: #5584E0;
++    border:1px solid #304369;
++    color:#FFF
++}
++.yui-dt-editor .yui-dt-button button:hover {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
++    color:#000;
++}
++.yui-dt-editor .yui-dt-button button:active {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
++    color:#000;
++}
++
++/* striping */
++.yui-skin-sam tr.yui-dt-even { background-color:#FFF; } /* white */
++.yui-skin-sam tr.yui-dt-odd { background-color:#EDF5FF; } /* light blue */
++.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,
++.yui-skin-sam tr.yui-dt-even td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
++.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,
++.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc { background-color:#DBEAFF; } /* dark blue sorted */
++
++/* disable striping in list mode */
++.yui-skin-sam .yui-dt-list tr.yui-dt-even { background-color:#FFF; } /* white */
++.yui-skin-sam .yui-dt-list tr.yui-dt-odd { background-color:#FFF; } /* white */
++.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,
++.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
++.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,
++.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc { background-color:#EDF5FF; } /* light blue sorted */
++
++/* highlighting */
++.yui-skin-sam th.yui-dt-highlighted,
++.yui-skin-sam th.yui-dt-highlighted a {
++    background-color:#B2D2FF; /* med blue hover */
++}
++.yui-skin-sam tr.yui-dt-highlighted,
++.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,
++.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,
++.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,
++.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted {
++    cursor:pointer;
++    background-color:#B2D2FF; /* med blue hover */
++}
++
++/* enable highlighting in list mode */
++.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,
++.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a {
++    background-color:#B2D2FF; /* med blue hover */
++}
++.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,
++.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,
++.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,
++.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,
++.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted {
++    cursor:pointer;
++    background-color:#B2D2FF; /* med blue  hover */
++}
++
++/* selection */
++.yui-skin-sam th.yui-dt-selected,
++.yui-skin-sam th.yui-dt-selected a {
++    background-color:#446CD7; /* bright blue selected cell */
++}
++.yui-skin-sam tr.yui-dt-selected td,
++.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,
++.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc {
++    background-color:#426FD9; /* bright blue selected row */
++    color:#FFF;
++}
++.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,
++.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected {
++    background-color:#446CD7; /* bright blue selected cell */
++    color:#FFF;
++}
++
++/* enable selection in list mode */
++.yui-skin-sam .yui-dt-list th.yui-dt-selected,
++.yui-skin-sam .yui-dt-list th.yui-dt-selected a {
++    background-color:#446CD7; /* bright blue selected cell */
++}
++.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,
++.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,
++.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc {
++    background-color:#426FD9; /* bright blue selected row */
++    color:#FFF;
++}
++.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,
++.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected {
++    background-color:#446CD7; /* bright blue selected cell */
++    color:#FFF;
++}
++
++/* pagination */
++.yui-skin-sam .yui-dt-paginator {
++    display:block;margin:6px 0;white-space:nowrap;
++}
++.yui-skin-sam .yui-dt-paginator .yui-dt-first,
++.yui-skin-sam .yui-dt-paginator .yui-dt-last,
++.yui-skin-sam .yui-dt-paginator .yui-dt-selected {
++    padding:2px 6px;
++}
++.yui-skin-sam .yui-dt-paginator a.yui-dt-first,
++.yui-skin-sam .yui-dt-paginator a.yui-dt-last {
++    text-decoration:none;
++}
++.yui-skin-sam .yui-dt-paginator .yui-dt-previous,
++.yui-skin-sam .yui-dt-paginator .yui-dt-next {
++    display:none;
++}
++.yui-skin-sam a.yui-dt-page {
++    border:1px solid #CBCBCB;
++    padding:2px 6px;
++    text-decoration:none;
++    background-color:#fff
++}
++.yui-skin-sam .yui-dt-selected {
++    border:1px solid #fff;
++    background-color:#fff;
++}
+diff --git a/pylons_app/public/js/yui/datatable/assets/skins/sam/datatable.css b/pylons_app/public/js/yui/datatable/assets/skins/sam/datatable.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/assets/skins/sam/datatable.css
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-dt-mask{position:absolute;z-index:9500;}.yui-dt-tmp{position:absolute;left:-9000px;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.yui-dt-scrollable .yui-dt-bd thead tr,.yui-dt-scrollable .yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-scrollable tbody{-moz-outline:none;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.yui-skin-sam thead .yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-resizerliner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;background-color:#CCC;opacity:0;filter:alpha(opacity=0);}th.yui-dt-hidden .yui-dt-liner,td.yui-dt-hidden .yui-dt-liner,th.yui-dt-hidden .yui-dt-resizer{display:none;}.yui-dt-editor{position:absolute;z-index:9000;}.yui-skin-sam .yui-dt table{margin:0;padding:0;font-family:arial;font-size:inherit;border-collapse:separate;*border-collapse:collapse;border-spacing:0;border:1px solid #7F7F7F;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{color:#000;font-size:85%;font-weight:normal;font-style:italic;line-height:1;padding:1em 0;text-align:center;}.yui-skin-sam .yui-dt th{background:#D8D8DA url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;}.yui-skin-sam .yui-dt th,.yui-skin-sam .yui-dt th a{font-weight:normal;text-decoration:none;color:#000;vertical-align:bottom;}.yui-skin-sam .yui-dt th{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;}.yui-skin-sam .yui-dt tr.yui-dt-first td{border-top:1px solid #7F7F7F;}.yui-skin-sam .yui-dt th .yui-dt-liner{white-space:nowrap;}.yui-skin-sam .yui-dt-liner{margin:0;padding:0;padding:4px 10px 4px 10px;}.yui-skin-sam .yui-dt-coltarget{width:5px;background-color:red;}.yui-skin-sam .yui-dt td{margin:0;padding:0;border:none;border-right:1px solid #CBCBCB;text-align:left;}.yui-skin-sam .yui-dt-list td{border-right:none;}.yui-skin-sam .yui-dt-resizer{width:6px;}.yui-skin-sam .yui-dt-mask{background-color:#000;opacity:.25;filter:alpha(opacity=25);}.yui-skin-sam .yui-dt-message{background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable table{border:none;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;background-color:#FFF;}.yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td{border-bottom:1px solid #7F7F7F;}.yui-skin-sam th.yui-dt-asc,.yui-skin-sam th.yui-dt-desc{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -100px;}.yui-skin-sam th.yui-dt-sortable .yui-dt-label{margin-right:10px;}.yui-skin-sam th.yui-dt-asc .yui-dt-liner{background:url(dt-arrow-up.png) no-repeat right;}.yui-skin-sam th.yui-dt-desc .yui-dt-liner{background:url(dt-arrow-dn.png) no-repeat right;}tbody .yui-dt-editable{cursor:pointer;}.yui-dt-editor{text-align:left;background-color:#F2F2F2;border:1px solid #808080;padding:6px;}.yui-dt-editor label{padding-left:4px;padding-right:6px;}.yui-dt-editor .yui-dt-button{padding-top:6px;text-align:right;}.yui-dt-editor .yui-dt-button button{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;border:1px solid #999;width:4em;height:1.8em;margin-left:6px;}.yui-dt-editor .yui-dt-button button.yui-dt-default{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;background-color:#5584E0;border:1px solid #304369;color:#FFF;}.yui-dt-editor .yui-dt-button button:hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;color:#000;}.yui-dt-editor .yui-dt-button button:active{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;color:#000;}.yui-skin-sam tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam tr.yui-dt-odd{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam tr.yui-dt-odd td.yui-dt-desc{background-color:#DBEAFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd{background-color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc{background-color:#EDF5FF;}.yui-skin-sam th.yui-dt-highlighted,.yui-skin-sam th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam tr.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list th.yui-dt-highlighted,.yui-skin-sam .yui-dt-list th.yui-dt-highlighted a{background-color:#B2D2FF;}.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted{cursor:pointer;background-color:#B2D2FF;}.yui-skin-sam th.yui-dt-selected,.yui-skin-sam th.yui-dt-selected a{background-color:#446CD7;}.yui-skin-sam tr.yui-dt-selected td,.yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-list th.yui-dt-selected,.yui-skin-sam .yui-dt-list th.yui-dt-selected a{background-color:#446CD7;}
++.yui-skin-sam .yui-dt-list tr.yui-dt-selected td,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,.yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc{background-color:#426FD9;color:#FFF;}.yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,.yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected{background-color:#446CD7;color:#FFF;}.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-dt-paginator .yui-dt-first,.yui-skin-sam .yui-dt-paginator .yui-dt-last,.yui-skin-sam .yui-dt-paginator .yui-dt-selected{padding:2px 6px;}.yui-skin-sam .yui-dt-paginator a.yui-dt-first,.yui-skin-sam .yui-dt-paginator a.yui-dt-last{text-decoration:none;}.yui-skin-sam .yui-dt-paginator .yui-dt-previous,.yui-skin-sam .yui-dt-paginator .yui-dt-next{display:none;}.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff;}.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}
+diff --git a/pylons_app/public/js/yui/datatable/assets/skins/sam/dt-arrow-dn.png b/pylons_app/public/js/yui/datatable/assets/skins/sam/dt-arrow-dn.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..85fda0bbca21cefc6b8cf1726bc83e43bff993c4
+GIT binary patch
+literal 116
+zc%17D@N?(olHy`uVBq!ia0vp@K+M9#3?wzWV%32ZXMj(L>;M1%fy~Ir2;r~IJAo|5
+zk|4ie28U-i(tsREPZ!6Kid)Guq>ddput17Y#X`7&C779+nL(zFDdZjVkv^az22WQ%
+Jmvv4FO#tWt9i9LH
+
+diff --git a/pylons_app/public/js/yui/datatable/assets/skins/sam/dt-arrow-up.png b/pylons_app/public/js/yui/datatable/assets/skins/sam/dt-arrow-up.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..1c674316aed41943dae79b01583956db63c8be08
+GIT binary patch
+literal 116
+zc%17D@N?(olHy`uVBq!ia0vp@K+M9#3?wzWV%32ZXMj(L>;M1%fy}VT__niwAVJ2G
+zAirP+hi5m^fE-Cr7srr_TgeGo2?+@gd>DjQ2|6TYNiZ`ri2h~@(drDS1}b9kboFyt
+I=akR{0K<nI-2eap
+
+diff --git a/pylons_app/public/js/yui/datatable/datatable-debug.js b/pylons_app/public/js/yui/datatable/datatable-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/datatable-debug.js
+@@ -0,0 +1,17360 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Mechanism to execute a series of callbacks in a non-blocking queue.  Each callback is executed via setTimout unless configured with a negative timeout, in which case it is run in blocking mode in the same execution thread as the previous callback.  Callbacks can be function references or object literals with the following keys:
++ * <ul>
++ *    <li><code>method</code> - {Function} REQUIRED the callback function.</li>
++ *    <li><code>scope</code> - {Object} the scope from which to execute the callback.  Default is the global window scope.</li>
++ *    <li><code>argument</code> - {Array} parameters to be passed to method as individual arguments.</li>
++ *    <li><code>timeout</code> - {number} millisecond delay to wait after previous callback completion before executing this callback.  Negative values cause immediate blocking execution.  Default 0.</li>
++ *    <li><code>until</code> - {Function} boolean function executed before each iteration.  Return true to indicate completion and proceed to the next callback.</li>
++ *    <li><code>iterations</code> - {Number} number of times to execute the callback before proceeding to the next callback in the chain. Incompatible with <code>until</code>.</li>
++ * </ul>
++ *
++ * @namespace YAHOO.util
++ * @class Chain
++ * @constructor
++ * @param callback* {Function|Object} Any number of callbacks to initialize the queue
++*/
++YAHOO.util.Chain = function () {
++    /**
++     * The callback queue
++     * @property q
++     * @type {Array}
++     * @private
++     */
++    this.q = [].slice.call(arguments);
++
++    /**
++     * Event fired when the callback queue is emptied via execution (not via
++     * a call to chain.stop().
++     * @event end
++     */
++    this.createEvent('end');
++};
++
++YAHOO.util.Chain.prototype = {
++    /**
++     * Timeout id used to pause or stop execution and indicate the execution state of the Chain.  0 indicates paused or stopped, -1 indicates blocking execution, and any positive number indicates non-blocking execution.
++     * @property id
++     * @type {number}
++     * @private
++     */
++    id   : 0,
++
++    /**
++     * Begin executing the chain, or resume execution from the last paused position.
++     * @method run
++     * @return {Chain} the Chain instance
++     */
++    run : function () {
++        // Grab the first callback in the queue
++        var c  = this.q[0],
++            fn;
++
++        // If there is no callback in the queue or the Chain is currently
++        // in an execution mode, return
++        if (!c) {
++            this.fireEvent('end');
++            return this;
++        } else if (this.id) {
++            return this;
++        }
++
++        fn = c.method || c;
++
++        if (typeof fn === 'function') {
++            var o    = c.scope || {},
++                args = c.argument || [],
++                ms   = c.timeout || 0,
++                me   = this;
++                
++            if (!(args instanceof Array)) {
++                args = [args];
++            }
++
++            // Execute immediately if the callback timeout is negative.
++            if (ms < 0) {
++                this.id = ms;
++                if (c.until) {
++                    for (;!c.until();) {
++                        // Execute the callback from scope, with argument
++                        fn.apply(o,args);
++                    }
++                } else if (c.iterations) {
++                    for (;c.iterations-- > 0;) {
++                        fn.apply(o,args);
++                    }
++                } else {
++                    fn.apply(o,args);
++                }
++                this.q.shift();
++                this.id = 0;
++                return this.run();
++            } else {
++                // If the until condition is set, check if we're done
++                if (c.until) {
++                    if (c.until()) {
++                        // Shift this callback from the queue and execute the next
++                        // callback
++                        this.q.shift();
++                        return this.run();
++                    }
++                // Otherwise if either iterations is not set or we're
++                // executing the last iteration, shift callback from the queue
++                } else if (!c.iterations || !--c.iterations) {
++                    this.q.shift();
++                }
++
++                // Otherwise set to execute after the configured timeout
++                this.id = setTimeout(function () {
++                    // Execute the callback from scope, with argument
++                    fn.apply(o,args);
++                    // Check if the Chain was not paused from inside the callback
++                    if (me.id) {
++                        // Indicate ready to run state
++                        me.id = 0;
++                        // Start the fun all over again
++                        me.run();
++                    }
++                },ms);
++            }
++        }
++
++        return this;
++    },
++    
++    /**
++     * Add a callback to the end of the queue
++     * @method add
++     * @param c {Function|Object} the callback function ref or object literal
++     * @return {Chain} the Chain instance
++     */
++    add  : function (c) {
++        this.q.push(c);
++        return this;
++    },
++
++    /**
++     * Pause the execution of the Chain after the current execution of the
++     * current callback completes.  If called interstitially, clears the
++     * timeout for the pending callback. Paused Chains can be restarted with
++     * chain.run()
++     * @method pause
++     * @return {Chain} the Chain instance
++     */
++    pause: function () {
++        // Conditional added for Caja compatibility
++        if (this.id > 0) {
++            clearTimeout(this.id);
++        }
++        this.id = 0;
++        return this;
++    },
++
++    /**
++     * Stop and clear the Chain's queue after the current execution of the
++     * current callback completes.
++     * @method stop
++     * @return {Chain} the Chain instance
++     */
++    stop : function () { 
++        this.pause();
++        this.q = [];
++        return this;
++    }
++};
++YAHOO.lang.augmentProto(YAHOO.util.Chain,YAHOO.util.EventProvider);
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The ColumnSet class defines and manages a DataTable's Columns,
++ * including nested hierarchies and access to individual Column instances.
++ *
++ * @namespace YAHOO.widget
++ * @class ColumnSet
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param aDefinitions {Object[]} Array of object literals that define cells in
++ * the THEAD.
++ */
++YAHOO.widget.ColumnSet = function(aDefinitions) {
++    this._sId = "yui-cs" + YAHOO.widget.ColumnSet._nCount;
++
++    // First clone the defs
++    aDefinitions = YAHOO.widget.DataTable._cloneObject(aDefinitions);
++    this._init(aDefinitions);
++
++    YAHOO.widget.ColumnSet._nCount++;
++    YAHOO.log("ColumnSet initialized", "info", this.toString());
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Internal class variable to index multiple ColumnSet instances.
++ *
++ * @property ColumnSet._nCount
++ * @type Number
++ * @private
++ * @static
++ */
++YAHOO.widget.ColumnSet._nCount = 0;
++
++YAHOO.widget.ColumnSet.prototype = {
++    /**
++     * Unique instance name.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Array of object literal Column definitions passed to the constructor.
++     *
++     * @property _aDefinitions
++     * @type Object[]
++     * @private
++     */
++    _aDefinitions : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Top-down tree representation of Column hierarchy.
++     *
++     * @property tree
++     * @type YAHOO.widget.Column[]
++     */
++    tree : null,
++
++    /**
++     * Flattened representation of all Columns.
++     *
++     * @property flat
++     * @type YAHOO.widget.Column[]
++     * @default []
++     */
++    flat : null,
++
++    /**
++     * Array of Columns that map one-to-one to a table column.
++     *
++     * @property keys
++     * @type YAHOO.widget.Column[]
++     * @default []
++     */
++    keys : null,
++
++    /**
++     * ID index of nested parent hierarchies for HEADERS accessibility attribute.
++     *
++     * @property headers
++     * @type String[]
++     * @default []
++     */
++    headers : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Initializes ColumnSet instance with data from Column definitions.
++     *
++     * @method _init
++     * @param aDefinitions {Object[]} Array of object literals that define cells in
++     * the THEAD .
++     * @private
++     */
++
++    _init : function(aDefinitions) {        
++        // DOM tree representation of all Columns
++        var tree = [];
++        // Flat representation of all Columns
++        var flat = [];
++        // Flat representation of only Columns that are meant to display data
++        var keys = [];
++        // Array of HEADERS attribute values for all keys in the "keys" array
++        var headers = [];
++
++        // Tracks current node list depth being tracked
++        var nodeDepth = -1;
++
++        // Internal recursive function to define Column instances
++        var parseColumns = function(nodeList, parent) {
++            // One level down
++            nodeDepth++;
++
++            // Create corresponding tree node if not already there for this depth
++            if(!tree[nodeDepth]) {
++                tree[nodeDepth] = [];
++            }
++
++
++            // Parse each node at this depth for attributes and any children
++            for(var j=0; j<nodeList.length; j++) {
++                var currentNode = nodeList[j];
++
++                // Instantiate a new Column for each node
++                var oColumn = new YAHOO.widget.Column(currentNode);
++                
++                // Cross-reference Column ID back to the original object literal definition
++                currentNode.yuiColumnId = oColumn._sId;
++                
++                // Add the new Column to the flat list
++                flat.push(oColumn);
++
++                // Assign its parent as an attribute, if applicable
++                if(parent) {
++                    oColumn._oParent = parent;
++                }
++
++                // The Column has descendants
++                if(YAHOO.lang.isArray(currentNode.children)) {
++                    oColumn.children = currentNode.children;
++
++                    // Determine COLSPAN value for this Column
++                    var terminalChildNodes = 0;
++                    var countTerminalChildNodes = function(ancestor) {
++                        var descendants = ancestor.children;
++                        // Drill down each branch and count terminal nodes
++                        for(var k=0; k<descendants.length; k++) {
++                            // Keep drilling down
++                            if(YAHOO.lang.isArray(descendants[k].children)) {
++                                countTerminalChildNodes(descendants[k]);
++                            }
++                            // Reached branch terminus
++                            else {
++                                terminalChildNodes++;
++                            }
++                        }
++                    };
++                    countTerminalChildNodes(currentNode);
++                    oColumn._nColspan = terminalChildNodes;
++
++                    // Cascade certain properties to children if not defined on their own
++                    var currentChildren = currentNode.children;
++                    for(var k=0; k<currentChildren.length; k++) {
++                        var child = currentChildren[k];
++                        if(oColumn.className && (child.className === undefined)) {
++                            child.className = oColumn.className;
++                        }
++                        if(oColumn.editor && (child.editor === undefined)) {
++                            child.editor = oColumn.editor;
++                        }
++                        //TODO: Deprecated
++                        if(oColumn.editorOptions && (child.editorOptions === undefined)) {
++                            child.editorOptions = oColumn.editorOptions;
++                        }
++                        if(oColumn.formatter && (child.formatter === undefined)) {
++                            child.formatter = oColumn.formatter;
++                        }
++                        if(oColumn.resizeable && (child.resizeable === undefined)) {
++                            child.resizeable = oColumn.resizeable;
++                        }
++                        if(oColumn.sortable && (child.sortable === undefined)) {
++                            child.sortable = oColumn.sortable;
++                        }
++                        if(oColumn.hidden) {
++                            child.hidden = true;
++                        }
++                        if(oColumn.width && (child.width === undefined)) {
++                            child.width = oColumn.width;
++                        }
++                        if(oColumn.minWidth && (child.minWidth === undefined)) {
++                            child.minWidth = oColumn.minWidth;
++                        }
++                        if(oColumn.maxAutoWidth && (child.maxAutoWidth === undefined)) {
++                            child.maxAutoWidth = oColumn.maxAutoWidth;
++                        }
++                        // Backward compatibility
++                        if(oColumn.type && (child.type === undefined)) {
++                            child.type = oColumn.type;
++                        }
++                        if(oColumn.type && !oColumn.formatter) {
++                            YAHOO.log("The property type has been" +
++                            " deprecated in favor of formatter", "warn", oColumn.toString());
++                            oColumn.formatter = oColumn.type;
++                        }
++                        if(oColumn.text && !YAHOO.lang.isValue(oColumn.label)) {
++                            YAHOO.log("The property text has been" +
++                            " deprecated in favor of label", "warn", oColumn.toString());
++                            oColumn.label = oColumn.text;
++                        }
++                        if(oColumn.parser) {
++                            YAHOO.log("The property parser is no longer supported",
++                            "warn", this.toString());
++                        }
++                        if(oColumn.sortOptions && ((oColumn.sortOptions.ascFunction) ||
++                                (oColumn.sortOptions.descFunction))) {
++                            YAHOO.log("The properties sortOptions.ascFunction and " +
++                            " sortOptions.descFunction have been deprecated in favor " +
++                            " of sortOptions.sortFunction", "warn", oColumn.toString());
++                        }
++                    }
++
++                    // The children themselves must also be parsed for Column instances
++                    if(!tree[nodeDepth+1]) {
++                        tree[nodeDepth+1] = [];
++                    }
++                    parseColumns(currentChildren, oColumn);
++                }
++                // This Column does not have any children
++                else {
++                    oColumn._nKeyIndex = keys.length;
++                    oColumn._nColspan = 1;
++                    keys.push(oColumn);
++                }
++
++                // Add the Column to the top-down tree
++                tree[nodeDepth].push(oColumn);
++            }
++            nodeDepth--;
++        };
++
++        // Parse out Column instances from the array of object literals
++        if(YAHOO.lang.isArray(aDefinitions)) {
++            parseColumns(aDefinitions);
++
++            // Store the array
++            this._aDefinitions = aDefinitions;
++        }
++        else {
++            YAHOO.log("Could not initialize ColumnSet due to invalid definitions","error");
++            return null;
++        }
++
++        var i;
++
++        // Determine ROWSPAN value for each Column in the tree
++        var parseTreeForRowspan = function(tree) {
++            var maxRowDepth = 1;
++            var currentRow;
++            var currentColumn;
++
++            // Calculate the max depth of descendants for this row
++            var countMaxRowDepth = function(row, tmpRowDepth) {
++                tmpRowDepth = tmpRowDepth || 1;
++
++                for(var n=0; n<row.length; n++) {
++                    var col = row[n];
++                    // Column has children, so keep counting
++                    if(YAHOO.lang.isArray(col.children)) {
++                        tmpRowDepth++;
++                        countMaxRowDepth(col.children, tmpRowDepth);
++                        tmpRowDepth--;
++                    }
++                    // No children, is it the max depth?
++                    else {
++                        if(tmpRowDepth > maxRowDepth) {
++                            maxRowDepth = tmpRowDepth;
++                        }
++                    }
++
++                }
++            };
++
++            // Count max row depth for each row
++            for(var m=0; m<tree.length; m++) {
++                currentRow = tree[m];
++                countMaxRowDepth(currentRow);
++
++                // Assign the right ROWSPAN values to each Column in the row
++                for(var p=0; p<currentRow.length; p++) {
++                    currentColumn = currentRow[p];
++                    if(!YAHOO.lang.isArray(currentColumn.children)) {
++                        currentColumn._nRowspan = maxRowDepth;
++                    }
++                    else {
++                        currentColumn._nRowspan = 1;
++                    }
++                }
++
++                // Reset counter for next row
++                maxRowDepth = 1;
++            }
++        };
++        parseTreeForRowspan(tree);
++
++        // Store tree index values
++        for(i=0; i<tree[0].length; i++) {
++            tree[0][i]._nTreeIndex = i;
++        }
++
++        // Store header relationships in an array for HEADERS attribute
++        var recurseAncestorsForHeaders = function(i, oColumn) {
++            headers[i].push(oColumn.getSanitizedKey());
++            if(oColumn._oParent) {
++                recurseAncestorsForHeaders(i, oColumn._oParent);
++            }
++        };
++        for(i=0; i<keys.length; i++) {
++            headers[i] = [];
++            recurseAncestorsForHeaders(i, keys[i]);
++            headers[i] = headers[i].reverse();
++        }
++
++        // Save to the ColumnSet instance
++        this.tree = tree;
++        this.flat = flat;
++        this.keys = keys;
++        this.headers = headers;
++    },
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique name of the ColumnSet instance.
++     *
++     * @method getId
++     * @return {String} Unique name of the ColumnSet instance.
++     */
++
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * ColumnSet instance name, for logging.
++     *
++     * @method toString
++     * @return {String} Unique name of the ColumnSet instance.
++     */
++
++    toString : function() {
++        return "ColumnSet instance " + this._sId;
++    },
++
++    /**
++     * Public accessor to the definitions array.
++     *
++     * @method getDefinitions
++     * @return {Object[]} Array of object literal Column definitions.
++     */
++
++    getDefinitions : function() {
++        var aDefinitions = this._aDefinitions;
++        
++        // Internal recursive function to define Column instances
++        var parseColumns = function(nodeList, oSelf) {
++            // Parse each node at this depth for attributes and any children
++            for(var j=0; j<nodeList.length; j++) {
++                var currentNode = nodeList[j];
++                
++                // Get the Column for each node
++                var oColumn = oSelf.getColumnById(currentNode.yuiColumnId);
++                
++                if(oColumn) {    
++                    // Update the current values
++                    var oDefinition = oColumn.getDefinition();
++                    for(var name in oDefinition) {
++                        if(YAHOO.lang.hasOwnProperty(oDefinition, name)) {
++                            currentNode[name] = oDefinition[name];
++                        }
++                    }
++                }
++                            
++                // The Column has descendants
++                if(YAHOO.lang.isArray(currentNode.children)) {
++                    // The children themselves must also be parsed for Column instances
++                    parseColumns(currentNode.children, oSelf);
++                }
++            }
++        };
++
++        parseColumns(aDefinitions, this);
++        this._aDefinitions = aDefinitions;
++        return aDefinitions;
++    },
++
++    /**
++     * Returns Column instance with given ID.
++     *
++     * @method getColumnById
++     * @param column {String} Column ID.
++     * @return {YAHOO.widget.Column} Column instance.
++     */
++
++    getColumnById : function(column) {
++        if(YAHOO.lang.isString(column)) {
++            var allColumns = this.flat;
++            for(var i=allColumns.length-1; i>-1; i--) {
++                if(allColumns[i]._sId === column) {
++                    return allColumns[i];
++                }
++            }
++        }
++        return null;
++    },
++
++    /**
++     * Returns Column instance with given key or ColumnSet key index.
++     *
++     * @method getColumn
++     * @param column {String | Number} Column key or ColumnSet key index.
++     * @return {YAHOO.widget.Column} Column instance.
++     */
++
++    getColumn : function(column) {
++        if(YAHOO.lang.isNumber(column) && this.keys[column]) {
++            return this.keys[column];
++        }
++        else if(YAHOO.lang.isString(column)) {
++            var allColumns = this.flat;
++            var aColumns = [];
++            for(var i=0; i<allColumns.length; i++) {
++                if(allColumns[i].key === column) {
++                    aColumns.push(allColumns[i]);
++                }
++            }
++            if(aColumns.length === 1) {
++                return aColumns[0];
++            }
++            else if(aColumns.length > 1) {
++                return aColumns;
++            }
++        }
++        return null;
++    },
++
++    /**
++     * Public accessor returns array of given Column's desendants (if any), including itself.
++     *
++     * @method getDescendants
++     * @parem {YAHOO.widget.Column} Column instance.
++     * @return {Array} Array including the Column itself and all descendants (if any).
++     */
++    getDescendants : function(oColumn) {
++        var oSelf = this;
++        var allDescendants = [];
++        var i;
++
++        // Recursive function to loop thru all children
++        var parse = function(oParent) {
++            allDescendants.push(oParent);
++            // This Column has children
++            if(oParent.children) {
++                for(i=0; i<oParent.children.length; i++) {
++                    parse(oSelf.getColumn(oParent.children[i].key));
++                }
++            }
++        };
++        parse(oColumn);
++
++        return allDescendants;
++    }
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The Column class defines and manages attributes of DataTable Columns
++ *
++ * @namespace YAHOO.widget
++ * @class Column
++ * @constructor
++ * @param oConfigs {Object} Object literal of definitions.
++ */
++YAHOO.widget.Column = function(oConfigs) {
++    this._sId = "yui-col" + YAHOO.widget.Column._nCount;
++    
++    // Object literal defines Column attributes
++    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
++        for(var sConfig in oConfigs) {
++            if(sConfig) {
++                this[sConfig] = oConfigs[sConfig];
++            }
++        }
++    }
++
++    // Assign a key if not found
++    if(!YAHOO.lang.isValue(this.key)) {
++        this.key = "yui-dt-col" + YAHOO.widget.Column._nCount;
++    }
++    
++    // Assign a field if not found, defaults to key
++    if(!YAHOO.lang.isValue(this.field)) {
++        this.field = this.key;
++    }
++
++    // Increment counter
++    YAHOO.widget.Column._nCount++;
++
++    // Backward compatibility
++    if(this.width && !YAHOO.lang.isNumber(this.width)) {
++        this.width = null;
++        YAHOO.log("The Column property width must be a number", "warn", this.toString());
++    }
++    if(this.editor && YAHOO.lang.isString(this.editor)) {
++        this.editor = new YAHOO.widget.CellEditor(this.editor, this.editorOptions);
++        YAHOO.log("The Column property editor must be an instance of YAHOO.widget.CellEditor", "warn", this.toString());
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++YAHOO.lang.augmentObject(YAHOO.widget.Column, {
++    /**
++     * Internal class variable to index multiple Column instances.
++     *
++     * @property Column._nCount
++     * @type Number
++     * @private
++     * @static
++     */
++    _nCount : 0,
++
++    formatCheckbox : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatCheckbox() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatCheckbox()", "warn",
++        "YAHOO.widget.Column.formatCheckbox");
++        YAHOO.widget.DataTable.formatCheckbox(elCell, oRecord, oColumn, oData);
++    },
++
++    formatCurrency : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatCurrency() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatCurrency()", "warn",
++        "YAHOO.widget.Column.formatCurrency");
++        YAHOO.widget.DataTable.formatCurrency(elCell, oRecord, oColumn, oData);
++    },
++
++    formatDate : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatDate() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatDate()", "warn",
++        "YAHOO.widget.Column.formatDate");
++        YAHOO.widget.DataTable.formatDate(elCell, oRecord, oColumn, oData);
++    },
++
++    formatEmail : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatEmail() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatEmail()", "warn",
++        "YAHOO.widget.Column.formatEmail");
++        YAHOO.widget.DataTable.formatEmail(elCell, oRecord, oColumn, oData);
++    },
++
++    formatLink : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatLink() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatLink()", "warn",
++        "YAHOO.widget.Column.formatLink");
++        YAHOO.widget.DataTable.formatLink(elCell, oRecord, oColumn, oData);
++    },
++
++    formatNumber : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatNumber() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatNumber()", "warn",
++        "YAHOO.widget.Column.formatNumber");
++        YAHOO.widget.DataTable.formatNumber(elCell, oRecord, oColumn, oData);
++    },
++
++    formatSelect : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.log("The method YAHOO.widget.Column.formatSelect() has been" +
++        " deprecated in favor of YAHOO.widget.DataTable.formatDropdown()", "warn",
++        "YAHOO.widget.Column.formatSelect");
++        YAHOO.widget.DataTable.formatDropdown(elCell, oRecord, oColumn, oData);
++    }
++});
++
++YAHOO.widget.Column.prototype = {
++    /**
++     * Unique String identifier assigned at instantiation.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Reference to Column's current position index within its ColumnSet's keys
++     * array, if applicable. This property only applies to non-nested and bottom-
++     * level child Columns.
++     *
++     * @property _nKeyIndex
++     * @type Number
++     * @private
++     */
++    _nKeyIndex : null,
++
++    /**
++     * Reference to Column's current position index within its ColumnSet's tree
++     * array, if applicable. This property only applies to non-nested and top-
++     * level parent Columns.
++     *
++     * @property _nTreeIndex
++     * @type Number
++     * @private
++     */
++    _nTreeIndex : null,
++
++    /**
++     * Number of table cells the Column spans.
++     *
++     * @property _nColspan
++     * @type Number
++     * @private
++     */
++    _nColspan : 1,
++
++    /**
++     * Number of table rows the Column spans.
++     *
++     * @property _nRowspan
++     * @type Number
++     * @private
++     */
++    _nRowspan : 1,
++
++    /**
++     * Column's parent Column instance, or null.
++     *
++     * @property _oParent
++     * @type YAHOO.widget.Column
++     * @private
++     */
++    _oParent : null,
++
++    /**
++     * The DOM reference to the associated TH element.
++     *
++     * @property _elTh
++     * @type HTMLElement
++     * @private
++     */
++    _elTh : null,
++
++    /**
++     * The DOM reference to the associated TH element's liner DIV element.
++     *
++     * @property _elThLiner
++     * @type HTMLElement
++     * @private
++     */
++    _elThLiner : null,
++
++    /**
++     * The DOM reference to the associated TH element's label SPAN element.
++     *
++     * @property _elThLabel
++     * @type HTMLElement
++     * @private
++     */
++    _elThLabel : null,
++
++    /**
++     * The DOM reference to the associated resizerelement (if any).
++     *
++     * @property _elResizer
++     * @type HTMLElement
++     * @private
++     */
++    _elResizer : null,
++
++    /**
++     * Internal width tracker.
++     *
++     * @property _nWidth
++     * @type Number
++     * @private
++     */
++    _nWidth : null,
++
++    /**
++     * For unreg() purposes, a reference to the Column's DragDrop instance.
++     *
++     * @property _dd
++     * @type YAHOO.util.DragDrop
++     * @private
++     */
++    _dd : null,
++
++    /**
++     * For unreg() purposes, a reference to the Column resizer's DragDrop instance.
++     *
++     * @property _ddResizer
++     * @type YAHOO.util.DragDrop
++     * @private
++     */
++    _ddResizer : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Unique name, required.
++     *
++     * @property key
++     * @type String
++     */
++    key : null,
++
++    /**
++     * Associated database field, or null.
++     *
++     * @property field
++     * @type String
++     */
++    field : null,
++
++    /**
++     * Text or HTML for display as Column's label in the TH element.
++     *
++     * @property label
++     * @type String
++     */
++    label : null,
++
++    /**
++     * Column head cell ABBR for accessibility.
++     *
++     * @property abbr
++     * @type String
++     */
++    abbr : null,
++
++    /**
++     * Array of object literals that define children (nested headers) of a Column.
++     *
++     * @property children
++     * @type Object[]
++     */
++    children : null,
++
++    /**
++     * Column width (in pixels).
++     *
++     * @property width
++     * @type Number
++     */
++    width : null,
++
++    /**
++     * Minimum Column width (in pixels).
++     *
++     * @property minWidth
++     * @type Number
++     * @default null
++     */
++    minWidth : null,
++
++    /**
++     * When a width is not defined for a Column, maxAutoWidth defines an upper
++     * limit that the Column should be auto-sized to. If resizeable is enabled, 
++     * users may still resize to a greater width. Most useful for Columns intended
++     * to hold long unbroken, unwrapped Strings, such as URLs, to prevent very
++     * wide Columns from disrupting visual readability by inducing truncation.
++     *
++     * @property maxAutoWidth
++     * @type Number
++     * @default null
++     */
++    maxAutoWidth : null,
++
++    /**
++     * True if Column is in hidden state.
++     *
++     * @property hidden
++     * @type Boolean
++     * @default false     
++     */
++    hidden : false,
++
++    /**
++     * True if Column is in selected state.
++     *
++     * @property selected
++     * @type Boolean
++     * @default false     
++     */
++    selected : false,
++
++    /**
++     * Custom CSS class or array of classes to be applied to every cell in the Column.
++     *
++     * @property className
++     * @type String || String[]
++     */
++    className : null,
++
++    /**
++     * Defines a format function.
++     *
++     * @property formatter
++     * @type String || HTMLFunction
++     */
++    formatter : null,
++    
++    /**
++     * Config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
++     *
++     * @property currencyOptions
++     * @type Object
++     * @default null
++     */
++    currencyOptions : null,
++
++    /**
++     * Config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
++     *
++     * @property dateOptions
++     * @type Object
++     * @default null
++     */
++    dateOptions : null,
++
++    /**
++     * Array of dropdown values for formatter:"dropdown" cases. Can either be a simple array (e.g.,
++     * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g.,
++     * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
++     * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]).
++     *
++     * @property dropdownOptions
++     * @type String[] | Object[]
++     */
++    dropdownOptions : null,
++     
++    /**
++     * A CellEditor instance, otherwise Column is not editable.     
++     *
++     * @property editor
++     * @type YAHOO.widget.CellEditor
++     */
++    editor : null,
++
++    /**
++     * True if Column is resizeable, false otherwise. The Drag & Drop Utility is
++     * required to enable this feature. Only bottom-level and non-nested Columns are
++     * resizeble. 
++     *
++     * @property resizeable
++     * @type Boolean
++     * @default false
++     */
++    resizeable : false,
++
++    /**
++     * True if Column is sortable, false otherwise.
++     *
++     * @property sortable
++     * @type Boolean
++     * @default false
++     */
++    sortable : false,
++
++    /**
++     * @property sortOptions.defaultOrder
++     * @deprecated Use sortOptions.defaultDir.
++     */
++    /**
++     * Default sort direction for Column: YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC.
++     *
++     * @property sortOptions.defaultDir
++     * @type String
++     * @default null
++     */
++    /**
++     * Custom field to sort on.
++     *
++     * @property sortOptions.field
++     * @type String
++     * @default null
++     */
++    /**
++     * Custom sort handler. Signature: sortFunction(a, b, desc, field) where field is the sortOptions.field value
++     *
++     * @property sortOptions.sortFunction
++     * @type Function
++     * @default null
++     */
++    sortOptions : null,
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique ID string.
++     *
++     * @method getId
++     * @return {String} Unique ID string.
++     */
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * Column instance name, for logging.
++     *
++     * @method toString
++     * @return {String} Column's unique name.
++     */
++    toString : function() {
++        return "Column instance " + this._sId;
++    },
++
++    /**
++     * Returns object literal definition.
++     *
++     * @method getDefinition
++     * @return {Object} Object literal definition.
++     */
++    getDefinition : function() {
++        var oDefinition = {};
++        
++        // Update the definition
++        oDefinition.abbr = this.abbr;
++        oDefinition.className = this.className;
++        oDefinition.editor = this.editor;
++        oDefinition.editorOptions = this.editorOptions; //TODO: deprecated
++        oDefinition.field = this.field;
++        oDefinition.formatter = this.formatter;
++        oDefinition.hidden = this.hidden;
++        oDefinition.key = this.key;
++        oDefinition.label = this.label;
++        oDefinition.minWidth = this.minWidth;
++        oDefinition.maxAutoWidth = this.maxAutoWidth;
++        oDefinition.resizeable = this.resizeable;
++        oDefinition.selected = this.selected;
++        oDefinition.sortable = this.sortable;
++        oDefinition.sortOptions = this.sortOptions;
++        oDefinition.width = this.width;
++
++        return oDefinition;
++    },
++
++    /**
++     * Returns unique Column key.
++     *
++     * @method getKey
++     * @return {String} Column key.
++     */
++    getKey : function() {
++        return this.key;
++    },
++    
++    /**
++     * Returns field.
++     *
++     * @method getField
++     * @return {String} Column field.
++     */
++    getField : function() {
++        return this.field;
++    },
++    
++    /**
++     * Returns Column key which has been sanitized for DOM (class and ID) usage
++     * starts with letter, contains only letters, numbers, hyphen, or period.
++     *
++     * @method getSanitizedKey
++     * @return {String} Sanitized Column key.
++     */
++    getSanitizedKey : function() {
++        return this.getKey().replace(/[^\w\-]/g,"");
++    },
++
++    /**
++     * Public accessor returns Column's current position index within its
++     * ColumnSet's keys array, if applicable. Only non-nested and bottom-level
++     * child Columns will return a value.
++     *
++     * @method getKeyIndex
++     * @return {Number} Position index, or null.
++     */
++    getKeyIndex : function() {
++        return this._nKeyIndex;
++    },
++
++    /**
++     * Public accessor returns Column's current position index within its
++     * ColumnSet's tree array, if applicable. Only non-nested and top-level parent
++     * Columns will return a value;
++     *
++     * @method getTreeIndex
++     * @return {Number} Position index, or null.
++     */
++    getTreeIndex : function() {
++        return this._nTreeIndex;
++    },
++
++    /**
++     * Public accessor returns Column's parent instance if any, or null otherwise.
++     *
++     * @method getParent
++     * @return {YAHOO.widget.Column} Column's parent instance.
++     */
++    getParent : function() {
++        return this._oParent;
++    },
++
++    /**
++     * Public accessor returns Column's calculated COLSPAN value.
++     *
++     * @method getColspan
++     * @return {Number} Column's COLSPAN value.
++     */
++    getColspan : function() {
++        return this._nColspan;
++    },
++    // Backward compatibility
++    getColSpan : function() {
++        YAHOO.log("The method getColSpan() has been" +
++        " deprecated in favor of getColspan()", "warn", this.toString());
++        return this.getColspan();
++    },
++
++    /**
++     * Public accessor returns Column's calculated ROWSPAN value.
++     *
++     * @method getRowspan
++     * @return {Number} Column's ROWSPAN value.
++     */
++    getRowspan : function() {
++        return this._nRowspan;
++    },
++
++    /**
++     * Returns DOM reference to the key TH element.
++     *
++     * @method getThEl
++     * @return {HTMLElement} TH element.
++     */
++    getThEl : function() {
++        return this._elTh;
++    },
++
++    /**
++     * Returns DOM reference to the TH's liner DIV element. Introduced since
++     * resizeable Columns may have an extra resizer liner, making the DIV liner
++     * not reliably the TH element's first child.               
++     *
++     * @method getThLInerEl
++     * @return {HTMLElement} TH element.
++     */
++    getThLinerEl : function() {
++        return this._elThLiner;
++    },
++    
++    /**
++     * Returns DOM reference to the resizer element, or null.
++     *
++     * @method getResizerEl
++     * @return {HTMLElement} DIV element.
++     */
++    getResizerEl : function() {
++        return this._elResizer;
++    },
++
++    // Backward compatibility
++    /**
++     * @method getColEl
++     * @deprecated Use getThEl
++     */
++    getColEl : function() {
++        YAHOO.log("The method getColEl() has been" +
++        " deprecated in favor of getThEl()", "warn",
++        this.toString());
++        return this.getThEl();
++    },
++    getIndex : function() {
++        YAHOO.log("The method getIndex() has been" +
++        " deprecated in favor of getKeyIndex()", "warn",
++        this.toString());
++        return this.getKeyIndex();
++    },
++    format : function() {
++        YAHOO.log("The method format() has been deprecated in favor of the " +
++        "DataTable method formatCell()", "error", this.toString());
++    }
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Sort static utility to support Column sorting.
++ *
++ * @namespace YAHOO.util
++ * @class Sort
++ * @static
++ */
++YAHOO.util.Sort = {
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Comparator function for simple case-insensitive string sorting.
++     *
++     * @method compare
++     * @param a {Object} First sort argument.
++     * @param b {Object} Second sort argument.
++     * @param desc {Boolean} True if sort direction is descending, false if
++     * sort direction is ascending.
++     */
++    compare: function(a, b, desc) {
++        if((a === null) || (typeof a == "undefined")) {
++            if((b === null) || (typeof b == "undefined")) {
++                return 0;
++            }
++            else {
++                return 1;
++            }
++        }
++        else if((b === null) || (typeof b == "undefined")) {
++            return -1;
++        }
++
++        if(a.constructor == String) {
++            a = a.toLowerCase();
++        }
++        if(b.constructor == String) {
++            b = b.toLowerCase();
++        }
++        if(a < b) {
++            return (desc) ? 1 : -1;
++        }
++        else if (a > b) {
++            return (desc) ? -1 : 1;
++        }
++        else {
++            return 0;
++        }
++    }
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * ColumnDD subclasses DragDrop to support rearrangeable Columns.
++ *
++ * @namespace YAHOO.util
++ * @class ColumnDD
++ * @extends YAHOO.util.DDProxy
++ * @constructor
++ * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param elTh {HTMLElement} TH element reference.
++ * @param elTarget {HTMLElement} Drag target element.
++ */
++YAHOO.widget.ColumnDD = function(oDataTable, oColumn, elTh, elTarget) {
++    if(oDataTable && oColumn && elTh && elTarget) {
++        this.datatable = oDataTable;
++        this.table = oDataTable.getTableEl();
++        this.column = oColumn;
++        this.headCell = elTh;
++        this.pointer = elTarget;
++        this.newIndex = null;
++        this.init(elTh);
++        this.initFrame(); // Needed for DDProxy
++        this.invalidHandleTypes = {};
++
++        // Set top/bottom padding to account for children of nested columns
++        this.setPadding(10, 0, (this.datatable.getTheadEl().offsetHeight + 10) , 0);
++
++        YAHOO.util.Event.on(window, 'resize', function() {
++            this.initConstraints();
++        }, this, true);
++    }
++    else {
++        YAHOO.log("Column dragdrop could not be created","warn",oDataTable.toString());
++    }
++};
++
++if(YAHOO.util.DDProxy) {
++    YAHOO.extend(YAHOO.widget.ColumnDD, YAHOO.util.DDProxy, {
++        initConstraints: function() {
++            //Get the top, right, bottom and left positions
++            var region = YAHOO.util.Dom.getRegion(this.table),
++                //Get the element we are working on
++                el = this.getEl(),
++                //Get the xy position of it
++                xy = YAHOO.util.Dom.getXY(el),
++                //Get the width and height
++                width = parseInt(YAHOO.util.Dom.getStyle(el, 'width'), 10),
++                height = parseInt(YAHOO.util.Dom.getStyle(el, 'height'), 10),
++                //Set left to x minus left
++                left = ((xy[0] - region.left) + 15), //Buffer of 15px
++                //Set right to right minus x minus width
++                right = ((region.right - xy[0] - width) + 15);
++    
++            //Set the constraints based on the above calculations
++            this.setXConstraint(left, right);
++            this.setYConstraint(10, 10);            
++        },
++        _resizeProxy: function() {
++            YAHOO.widget.ColumnDD.superclass._resizeProxy.apply(this, arguments);
++            var dragEl = this.getDragEl(),
++                el = this.getEl();
++
++            YAHOO.util.Dom.setStyle(this.pointer, 'height', (this.table.parentNode.offsetHeight + 10) + 'px');
++            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'block');
++            var xy = YAHOO.util.Dom.getXY(el);
++            YAHOO.util.Dom.setXY(this.pointer, [xy[0], (xy[1] - 5)]);
++            
++            YAHOO.util.Dom.setStyle(dragEl, 'height', this.datatable.getContainerEl().offsetHeight + "px");
++            YAHOO.util.Dom.setStyle(dragEl, 'width', (parseInt(YAHOO.util.Dom.getStyle(dragEl, 'width'),10) + 4) + 'px');
++            YAHOO.util.Dom.setXY(this.dragEl, xy);
++        },
++        onMouseDown: function() {
++                this.initConstraints();
++                this.resetConstraints();
++        },
++        clickValidator: function(e) {
++            if(!this.column.hidden) {
++                var target = YAHOO.util.Event.getTarget(e);
++                return ( this.isValidHandleChild(target) &&
++                            (this.id == this.handleElId ||
++                                this.DDM.handleWasClicked(target, this.id)) );
++            }
++        },
++        onDragOver: function(ev, id) {
++            // Validate target as a Column
++            var target = this.datatable.getColumn(id);
++            if(target) {                
++                // Validate target as a top-level parent
++                var targetIndex = target.getTreeIndex();
++                while((targetIndex === null) && target.getParent()) {
++                    target = target.getParent();
++                    targetIndex = target.getTreeIndex();
++                }
++                if(targetIndex !== null) {
++                    // Are we placing to left or right of target?
++                    var elTarget = target.getThEl();
++                    var newIndex = targetIndex;
++                    var mouseX = YAHOO.util.Event.getPageX(ev),
++                        targetX = YAHOO.util.Dom.getX(elTarget),
++                        midX = targetX + ((YAHOO.util.Dom.get(elTarget).offsetWidth)/2),
++                        currentIndex =  this.column.getTreeIndex();
++                    
++                    if (mouseX < midX) {
++                       YAHOO.util.Dom.setX(this.pointer, targetX);
++                    } else {
++                        var targetWidth = parseInt(elTarget.offsetWidth, 10);
++                        YAHOO.util.Dom.setX(this.pointer, (targetX + targetWidth));
++                        newIndex++;
++                    }
++                    if (targetIndex > currentIndex) {
++                        newIndex--;
++                    }
++                    if(newIndex < 0) {
++                        newIndex = 0;
++                    }
++                    else if(newIndex > this.datatable.getColumnSet().tree[0].length) {
++                        newIndex = this.datatable.getColumnSet().tree[0].length;
++                    }
++                    this.newIndex = newIndex;
++                }
++            }
++        },
++        onDragDrop: function() {
++            this.datatable.reorderColumn(this.column, this.newIndex);
++        },
++        endDrag: function() {
++            this.newIndex = null;
++            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'none');
++        }
++    });
++}
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * ColumnResizer subclasses DragDrop to support resizeable Columns.
++ *
++ * @namespace YAHOO.util
++ * @class ColumnResizer
++ * @extends YAHOO.util.DDProxy
++ * @constructor
++ * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param elTh {HTMLElement} TH element reference.
++ * @param sHandleElId {String} DOM ID of the handle element that causes the resize.
++ * @param elProxy {HTMLElement} Resizer proxy element.
++ */
++YAHOO.util.ColumnResizer = function(oDataTable, oColumn, elTh, sHandleId, elProxy) {
++    if(oDataTable && oColumn && elTh && sHandleId) {
++        this.datatable = oDataTable;
++        this.column = oColumn;
++        this.headCell = elTh;
++        this.headCellLiner = oColumn.getThLinerEl();
++        this.resizerLiner = elTh.firstChild;
++        this.init(sHandleId, sHandleId, {dragOnly:true, dragElId: elProxy.id});
++        this.initFrame(); // Needed for proxy
++        this.resetResizerEl(); // Needed when rowspan > 0
++
++        // Set right padding for bug 1858462
++        this.setPadding(0, 1, 0, 0);
++    }
++    else {
++        YAHOO.log("Column resizer could not be created","warn",oDataTable.toString());
++    }
++};
++
++if(YAHOO.util.DD) {
++    YAHOO.extend(YAHOO.util.ColumnResizer, YAHOO.util.DDProxy, {
++        /////////////////////////////////////////////////////////////////////////////
++        //
++        // Public methods
++        //
++        /////////////////////////////////////////////////////////////////////////////
++        /**
++         * Resets resizer element.
++         *
++         * @method resetResizerEl
++         */
++        resetResizerEl : function() {
++            var resizerStyle = YAHOO.util.Dom.get(this.handleElId).style;
++            resizerStyle.left = "auto";
++            resizerStyle.right = 0;
++            resizerStyle.top = "auto";
++            resizerStyle.bottom = 0;
++            resizerStyle.height = this.headCell.offsetHeight+"px";
++        },
++    
++        /////////////////////////////////////////////////////////////////////////////
++        //
++        // Public DOM event handlers
++        //
++        /////////////////////////////////////////////////////////////////////////////
++    
++        /**
++         * Handles mouseup events on the Column resizer.
++         *
++         * @method onMouseUp
++         * @param e {string} The mouseup event
++         */
++        onMouseUp : function(e) {
++            // Reset height of all resizer els in case TH's have changed height
++            var allKeys = this.datatable.getColumnSet().keys,
++                col;
++            for(var i=0, len=allKeys.length; i<len; i++) {
++                col = allKeys[i];
++                if(col._ddResizer) {
++                    col._ddResizer.resetResizerEl();
++                }
++            }
++            this.resetResizerEl();
++            
++            var el = this.headCellLiner;
++            var newWidth = el.offsetWidth -
++                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingLeft"),10)|0) -
++                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingRight"),10)|0);
++
++            this.datatable.fireEvent("columnResizeEvent", {column:this.column,target:this.headCell,width:newWidth});
++        },
++    
++        /**
++         * Handles mousedown events on the Column resizer.
++         *
++         * @method onMouseDown
++         * @param e {string} The mousedown event
++         */
++        onMouseDown : function(e) {
++            this.startWidth = this.headCellLiner.offsetWidth;
++            this.startX = YAHOO.util.Event.getXY(e)[0];
++            this.nLinerPadding = (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingLeft"),10)|0) +
++                    (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingRight"),10)|0);
++        },
++    
++        /**
++         * Custom clickValidator to ensure Column is not in hidden state.
++         *
++         * @method clickValidator
++         * @param {Event} e
++         * @private
++         */
++        clickValidator : function(e) {
++            if(!this.column.hidden) {
++                var target = YAHOO.util.Event.getTarget(e);
++                return ( this.isValidHandleChild(target) &&
++                            (this.id == this.handleElId ||
++                                this.DDM.handleWasClicked(target, this.id)) );
++            }
++        },
++    
++        /**
++         * Handles start drag on the Column resizer.
++         *
++         * @method startDrag
++         * @param e {string} The drag event
++         */
++        startDrag : function() {
++            // Shrinks height of all resizer els to not hold open TH els
++            var allKeys = this.datatable.getColumnSet().keys,
++                thisKey = this.column.getKeyIndex(),
++                col;
++            for(var i=0, len=allKeys.length; i<len; i++) {
++                col = allKeys[i];
++                if(col._ddResizer) {
++                    YAHOO.util.Dom.get(col._ddResizer.handleElId).style.height = "1em";
++                }
++            }
++        },
++
++        /**
++         * Handles drag events on the Column resizer.
++         *
++         * @method onDrag
++         * @param e {string} The drag event
++         */
++        onDrag : function(e) {
++            var newX = YAHOO.util.Event.getXY(e)[0];
++            if(newX > YAHOO.util.Dom.getX(this.headCellLiner)) {
++                var offsetX = newX - this.startX;
++                var newWidth = this.startWidth + offsetX - this.nLinerPadding;
++                if(newWidth > 0) {
++                    this.datatable.setColumnWidth(this.column, newWidth);
++                }
++            }
++        }
++    });
++}
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * @property editorOptions
++ * @deprecated Pass configs directly to CellEditor constructor. 
++ */
++
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    DT     = widget.DataTable;
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * A RecordSet defines and manages a set of Records.
++ *
++ * @namespace YAHOO.widget
++ * @class RecordSet
++ * @param data {Object || Object[]} An object literal or an array of data.
++ * @constructor
++ */
++YAHOO.widget.RecordSet = function(data) {
++    // Internal variables
++    this._sId = "yui-rs" + widget.RecordSet._nCount;
++    widget.RecordSet._nCount++;
++    this._records = [];
++    //this._length = 0;
++
++    if(data) {
++        if(lang.isArray(data)) {
++            this.addRecords(data);
++        }
++        else if(lang.isObject(data)) {
++            this.addRecord(data);
++        }
++    }
++
++    YAHOO.log("RecordSet initialized", "info", this.toString());
++};
++
++var RS = widget.RecordSet;
++
++/**
++ * Internal class variable to name multiple Recordset instances.
++ *
++ * @property RecordSet._nCount
++ * @type Number
++ * @private
++ * @static
++ */
++RS._nCount = 0;
++
++RS.prototype = {
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * Unique String identifier assigned at instantiation.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Internal counter of how many Records are in the RecordSet.
++     *
++     * @property _length
++     * @type Number
++     * @private
++     * @deprecated No longer used
++     */
++    //_length : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Adds one Record to the RecordSet at the given index. If index is null,
++     * then adds the Record to the end of the RecordSet.
++     *
++     * @method _addRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     * @private
++     */
++    _addRecord : function(oData, index) {
++        var oRecord = new YAHOO.widget.Record(oData);
++        
++        if(YAHOO.lang.isNumber(index) && (index > -1)) {
++            this._records.splice(index,0,oRecord);
++        }
++        else {
++            //index = this.getLength();
++            //this._records[index] = oRecord;
++            this._records[this._records.length] = oRecord;
++        }
++        //this._length++;
++        return oRecord;
++    },
++
++    /**
++     * Sets/replaces one Record to the RecordSet at the given index.  Existing
++     * Records with higher indexes are not shifted.  If no index specified, the
++     * Record is added to the end of the RecordSet.
++     *
++     * @method _setRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     * @private
++     */
++    _setRecord : function(oData, index) {
++        if (!lang.isNumber(index) || index < 0) {
++            index = this._records.length;
++        }
++        return (this._records[index] = new widget.Record(oData));
++        /*
++        if(lang.isNumber(index) && (index > -1)) {
++            this._records[index] = oRecord;
++            if((index+1) > this.getLength()) {
++                this._length = index+1;
++            }
++        }
++        else {
++            this._records[this.getLength()] = oRecord;
++            this._length++;
++        }
++        return oRecord;
++        */
++    },
++
++    /**
++     * Deletes Records from the RecordSet at the given index. If range is null,
++     * then only one Record is deleted.
++     *
++     * @method _deleteRecord
++     * @param index {Number} Position index.
++     * @param range {Number} (optional) How many Records to delete
++     * @private
++     */
++    _deleteRecord : function(index, range) {
++        if(!lang.isNumber(range) || (range < 0)) {
++            range = 1;
++        }
++        this._records.splice(index, range);
++        //this._length = this._length - range;
++    },
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique name of the RecordSet instance.
++     *
++     * @method getId
++     * @return {String} Unique name of the RecordSet instance.
++     */
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * Public accessor to the unique name of the RecordSet instance.
++     *
++     * @method toString
++     * @return {String} Unique name of the RecordSet instance.
++     */
++    toString : function() {
++        return "RecordSet instance " + this._sId;
++    },
++
++    /**
++     * Returns the number of Records held in the RecordSet.
++     *
++     * @method getLength
++     * @return {Number} Number of records in the RecordSet.
++     */
++    getLength : function() {
++            //return this._length;
++            return this._records.length;
++    },
++
++    /**
++     * Returns Record by ID or RecordSet position index.
++     *
++     * @method getRecord
++     * @param record {YAHOO.widget.Record | Number | String} Record instance,
++     * RecordSet position index, or Record ID.
++     * @return {YAHOO.widget.Record} Record object.
++     */
++    getRecord : function(record) {
++        var i;
++        if(record instanceof widget.Record) {
++            for(i=0; i<this._records.length; i++) {
++                if(this._records[i] && (this._records[i]._sId === record._sId)) {
++                    return record;
++                }
++            }
++        }
++        else if(lang.isNumber(record)) {
++            if((record > -1) && (record < this.getLength())) {
++                return this._records[record];
++            }
++        }
++        else if(lang.isString(record)) {
++            for(i=0; i<this._records.length; i++) {
++                if(this._records[i] && (this._records[i]._sId === record)) {
++                    return this._records[i];
++                }
++            }
++        }
++        // Not a valid Record for this RecordSet
++        return null;
++
++    },
++
++    /**
++     * Returns an array of Records from the RecordSet.
++     *
++     * @method getRecords
++     * @param index {Number} (optional) Recordset position index of which Record to
++     * start at.
++     * @param range {Number} (optional) Number of Records to get.
++     * @return {YAHOO.widget.Record[]} Array of Records starting at given index and
++     * length equal to given range. If index is not given, all Records are returned.
++     */
++    getRecords : function(index, range) {
++        if(!lang.isNumber(index)) {
++            return this._records;
++        }
++        if(!lang.isNumber(range)) {
++            return this._records.slice(index);
++        }
++        return this._records.slice(index, index+range);
++    },
++
++    /**
++     * Returns a boolean indicating whether Records exist in the RecordSet at the
++     * specified index range.  Returns true if and only if a Record exists at each
++     * index in the range.
++     * @method hasRecords
++     * @param index
++     * @param range
++     * @return {Boolean} true if all indices are populated in the RecordSet
++     */
++    hasRecords : function (index, range) {
++        var recs = this.getRecords(index,range);
++        for (var i = 0; i < range; ++i) {
++            if (typeof recs[i] === 'undefined') {
++                return false;
++            }
++        }
++        return true;
++    },
++
++    /**
++     * Returns current position index for the given Record.
++     *
++     * @method getRecordIndex
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @return {Number} Record's RecordSet position index.
++     */
++
++    getRecordIndex : function(oRecord) {
++        if(oRecord) {
++            for(var i=this._records.length-1; i>-1; i--) {
++                if(this._records[i] && oRecord.getId() === this._records[i].getId()) {
++                    return i;
++                }
++            }
++        }
++        return null;
++
++    },
++
++    /**
++     * Adds one Record to the RecordSet at the given index. If index is null,
++     * then adds the Record to the end of the RecordSet.
++     *
++     * @method addRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     */
++    addRecord : function(oData, index) {
++        if(lang.isObject(oData)) {
++            var oRecord = this._addRecord(oData, index);
++            this.fireEvent("recordAddEvent",{record:oRecord,data:oData});
++            YAHOO.log("Added Record at index " + index +
++                    " with data " + lang.dump(oData), "info", this.toString());
++            return oRecord;
++        }
++        else {
++            YAHOO.log("Could not add Record with data" +
++                    lang.dump(oData), "info", this.toString());
++            return null;
++        }
++    },
++
++    /**
++     * Adds multiple Records at once to the RecordSet at the given index with the
++     * given object literal data. If index is null, then the new Records are
++     * added to the end of the RecordSet.
++     *
++     * @method addRecords
++     * @param aData {Object[]} An object literal data or an array of data object literals.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record[]} An array of Record instances.
++     */
++    addRecords : function(aData, index) {
++        if(lang.isArray(aData)) {
++            var newRecords = [],
++                idx,i,len;
++
++            index = lang.isNumber(index) ? index : this._records.length;
++            idx = index;
++
++            // Can't go backwards bc we need to preserve order
++            for(i=0,len=aData.length; i<len; ++i) {
++                if(lang.isObject(aData[i])) {
++                    var record = this._addRecord(aData[i], idx++);
++                    newRecords.push(record);
++                }
++           }
++            this.fireEvent("recordsAddEvent",{records:newRecords,data:aData});
++            YAHOO.log("Added " + newRecords.length + " Record(s) at index " + index +
++                    " with data " + lang.dump(aData), "info", this.toString());
++           return newRecords;
++        }
++        else if(lang.isObject(aData)) {
++            var oRecord = this._addRecord(aData);
++            this.fireEvent("recordsAddEvent",{records:[oRecord],data:aData});
++            YAHOO.log("Added 1 Record at index " + index +
++                    " with data " + lang.dump(aData), "info", this.toString());
++            return oRecord;
++        }
++        else {
++            YAHOO.log("Could not add Records with data " +
++                    lang.dump(aData), "info", this.toString());
++            return null;
++        }
++    },
++
++    /**
++     * Sets or replaces one Record to the RecordSet at the given index. Unlike
++     * addRecord, an existing Record at that index is not shifted to preserve it.
++     * If no index is specified, it adds the Record to the end of the RecordSet.
++     *
++     * @method setRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     */
++    setRecord : function(oData, index) {
++        if(lang.isObject(oData)) {
++            var oRecord = this._setRecord(oData, index);
++            this.fireEvent("recordSetEvent",{record:oRecord,data:oData});
++            YAHOO.log("Set Record at index " + index +
++                    " with data " + lang.dump(oData), "info", this.toString());
++            return oRecord;
++        }
++        else {
++            YAHOO.log("Could not set Record with data" +
++                    lang.dump(oData), "info", this.toString());
++            return null;
++        }
++    },
++
++    /**
++     * Sets or replaces multiple Records at once to the RecordSet with the given
++     * data, starting at the given index. If index is not specified, then the new
++     * Records are added to the end of the RecordSet.
++     *
++     * @method setRecords
++     * @param aData {Object[]} An array of object literal data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record[]} An array of Record instances.
++     */
++    setRecords : function(aData, index) {
++        var Rec   = widget.Record,
++            a     = lang.isArray(aData) ? aData : [aData],
++            added = [],
++            i = 0, l = a.length, j = 0;
++
++        index = parseInt(index,10)|0;
++
++        for(; i < l; ++i) {
++            if (typeof a[i] === 'object' && a[i]) {
++                added[j++] = this._records[index + i] = new Rec(a[i]);
++            }
++        }
++
++        this.fireEvent("recordsSetEvent",{records:added,data:aData});
++        // Backward compatibility for bug 1918245
++        this.fireEvent("recordsSet",{records:added,data:aData});
++        YAHOO.log("Set "+j+" Record(s) at index "+index, "info",
++                  this.toString());
++
++        if (a.length && !added.length) {
++            YAHOO.log("Could not set Records with data " +
++                    lang.dump(aData), "info", this.toString());
++        }
++
++        return added.length > 1 ? added : added[0];
++    },
++
++    /**
++     * Updates given Record with given data.
++     *
++     * @method updateRecord
++     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
++     * a RecordSet position index, or a Record ID.
++     * @param oData {Object} Object literal of new data.
++     * @return {YAHOO.widget.Record} Updated Record, or null.
++     */
++    updateRecord : function(record, oData) {
++        var oRecord = this.getRecord(record);
++        if(oRecord && lang.isObject(oData)) {
++            // Copy data from the Record for the event that gets fired later
++            var oldData = {};
++            for(var key in oRecord._oData) {
++                if(lang.hasOwnProperty(oRecord._oData, key)) {
++                    oldData[key] = oRecord._oData[key];
++                }
++            }
++            oRecord._oData = oData;
++            this.fireEvent("recordUpdateEvent",{record:oRecord,newData:oData,oldData:oldData});
++            YAHOO.log("Record at index " + this.getRecordIndex(oRecord) +
++                    " updated with data " + lang.dump(oData), "info", this.toString());
++            return oRecord;
++        }
++        else {
++            YAHOO.log("Could not update Record " + record, "error", this.toString());
++            return null;
++        }
++    },
++
++    /**
++     * @method updateKey
++     * @deprecated Use updateRecordValue
++     */
++    updateKey : function(record, sKey, oData) {
++        this.updateRecordValue(record, sKey, oData);
++    },
++    /**
++     * Sets given Record at given key to given data.
++     *
++     * @method updateRecordValue
++     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
++     * a RecordSet position index, or a Record ID.
++     * @param sKey {String} Key name.
++     * @param oData {Object} New data.
++     */
++    updateRecordValue : function(record, sKey, oData) {
++        var oRecord = this.getRecord(record);
++        if(oRecord) {
++            var oldData = null;
++            var keyValue = oRecord._oData[sKey];
++            // Copy data from the Record for the event that gets fired later
++            if(keyValue && lang.isObject(keyValue)) {
++                oldData = {};
++                for(var key in keyValue)  {
++                    if(lang.hasOwnProperty(keyValue, key)) {
++                        oldData[key] = keyValue[key];
++                    }
++                }
++            }
++            // Copy by value
++            else {
++                oldData = keyValue;
++            }
++
++            oRecord._oData[sKey] = oData;
++            this.fireEvent("keyUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
++            this.fireEvent("recordValueUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
++            YAHOO.log("Key \"" + sKey +
++                    "\" for Record at index " + this.getRecordIndex(oRecord) +
++                    " updated to \"" + lang.dump(oData) + "\"", "info", this.toString());
++        }
++        else {
++            YAHOO.log("Could not update key " + sKey + " for Record " + record, "error", this.toString());
++        }
++    },
++
++    /**
++     * Replaces all Records in RecordSet with new object literal data.
++     *
++     * @method replaceRecords
++     * @param data {Object || Object[]} An object literal of data or an array of
++     * data object literals.
++     * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record instance or
++     * an array of Records.
++     */
++    replaceRecords : function(data) {
++        this.reset();
++        return this.addRecords(data);
++    },
++
++    /**
++     * Sorts all Records by given function. Records keep their unique IDs but will
++     * have new RecordSet position indexes.
++     *
++     * @method sortRecords
++     * @param fnSort {Function} Reference to a sort function.
++     * @param desc {Boolean} True if sort direction is descending, false if sort
++     * direction is ascending.
++     * @param field {String} The field to sort by, from sortOptions.field
++     * @return {YAHOO.widget.Record[]} Sorted array of Records.
++     */
++    sortRecords : function(fnSort, desc, field) {
++        return this._records.sort(function(a, b) {return fnSort(a, b, desc, field);});
++    },
++
++    /**
++     * Reverses all Records, so ["one", "two", "three"] becomes ["three", "two", "one"].
++     *
++     * @method reverseRecords
++     * @return {YAHOO.widget.Record[]} Reverse-sorted array of Records.
++     */
++    reverseRecords : function() {
++        return this._records.reverse();
++    },
++
++    /**
++     * Removes the Record at the given position index from the RecordSet. If a range
++     * is also provided, removes that many Records, starting from the index. Length
++     * of RecordSet is correspondingly shortened.
++     *
++     * @method deleteRecord
++     * @param index {Number} Record's RecordSet position index.
++     * @param range {Number} (optional) How many Records to delete.
++     * @return {Object} A copy of the data held by the deleted Record.
++     */
++    deleteRecord : function(index) {
++        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
++            // Copy data from the Record for the event that gets fired later
++            var oData = widget.DataTable._cloneObject(this.getRecord(index).getData());
++            
++            this._deleteRecord(index);
++            this.fireEvent("recordDeleteEvent",{data:oData,index:index});
++            YAHOO.log("Record deleted at index " + index +
++                    " and containing data " + lang.dump(oData), "info", this.toString());
++            return oData;
++        }
++        else {
++            YAHOO.log("Could not delete Record at index " + index, "error", this.toString());
++            return null;
++        }
++    },
++
++    /**
++     * Removes the Record at the given position index from the RecordSet. If a range
++     * is also provided, removes that many Records, starting from the index. Length
++     * of RecordSet is correspondingly shortened.
++     *
++     * @method deleteRecords
++     * @param index {Number} Record's RecordSet position index.
++     * @param range {Number} (optional) How many Records to delete.
++     * @return {Object[]} An array of copies of the data held by the deleted Records.     
++     */
++    deleteRecords : function(index, range) {
++        if(!lang.isNumber(range)) {
++            range = 1;
++        }
++        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
++            var recordsToDelete = this.getRecords(index, range);
++            // Copy data from each Record for the event that gets fired later
++            var deletedData = [];
++            
++            for(var i=0; i<recordsToDelete.length; i++) {
++                deletedData[deletedData.length] = widget.DataTable._cloneObject(recordsToDelete[i]);
++            }
++            this._deleteRecord(index, range);
++
++            this.fireEvent("recordsDeleteEvent",{data:deletedData,index:index});
++            YAHOO.log(range + "Record(s) deleted at index " + index +
++                    " and containing data " + lang.dump(deletedData), "info", this.toString());
++
++            return deletedData;
++        }
++        else {
++            YAHOO.log("Could not delete Records at index " + index, "error", this.toString());
++            return null;
++        }
++    },
++
++    /**
++     * Deletes all Records from the RecordSet.
++     *
++     * @method reset
++     */
++    reset : function() {
++        this._records = [];
++        //this._length = 0;
++        this.fireEvent("resetEvent");
++        YAHOO.log("All Records deleted from RecordSet", "info", this.toString());
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Custom Events
++//
++/////////////////////////////////////////////////////////////////////////////
++
++// RecordSet uses EventProvider
++lang.augmentProto(RS, util.EventProvider);
++
++/**
++ * Fired when a new Record is added to the RecordSet.
++ *
++ * @event recordAddEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.data {Object} Data added.
++ */
++
++/**
++ * Fired when multiple Records are added to the RecordSet at once.
++ *
++ * @event recordsAddEvent
++ * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
++ * @param oArgs.data {Object[]} Data added.
++ */
++
++/**
++ * Fired when a Record is set in the RecordSet.
++ *
++ * @event recordSetEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.data {Object} Data added.
++ */
++
++/**
++ * Fired when multiple Records are set in the RecordSet at once.
++ *
++ * @event recordsSetEvent
++ * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
++ * @param oArgs.data {Object[]} Data added.
++ */
++
++/**
++ * Fired when a Record is updated with new data.
++ *
++ * @event recordUpdateEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.newData {Object} New data.
++ * @param oArgs.oldData {Object} Old data.
++ */
++
++/**
++ * Fired when a Record is deleted from the RecordSet.
++ *
++ * @event recordDeleteEvent
++ * @param oArgs.data {Object} A copy of the data held by the Record,
++ * or an array of data object literals if multiple Records were deleted at once.
++ * @param oArgs.index {Object} Index of the deleted Record.
++ */
++
++/**
++ * Fired when multiple Records are deleted from the RecordSet at once.
++ *
++ * @event recordsDeleteEvent
++ * @param oArgs.data {Object[]} An array of data object literals copied
++ * from the Records.
++ * @param oArgs.index {Object} Index of the first deleted Record.
++ */
++
++/**
++ * Fired when all Records are deleted from the RecordSet at once.
++ *
++ * @event resetEvent
++ */
++
++/**
++ * @event keyUpdateEvent    
++ * @deprecated Use recordValueUpdateEvent     
++ */
++
++/**
++ * Fired when a Record value is updated with new data.
++ *
++ * @event recordValueUpdateEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.key {String} The updated key.
++ * @param oArgs.newData {Object} New data.
++ * @param oArgs.oldData {Object} Old data.
++ *
++ */
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The Record class defines a DataTable record.
++ *
++ * @namespace YAHOO.widget
++ * @class Record
++ * @constructor
++ * @param oConfigs {Object} (optional) Object literal of key/value pairs.
++ */
++YAHOO.widget.Record = function(oLiteral) {
++    this._nCount = widget.Record._nCount;
++    this._sId = "yui-rec" + this._nCount;
++    widget.Record._nCount++;
++    this._oData = {};
++    if(lang.isObject(oLiteral)) {
++        for(var sKey in oLiteral) {
++            if(lang.hasOwnProperty(oLiteral, sKey)) {
++                this._oData[sKey] = oLiteral[sKey];
++            }
++        }
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Internal class variable to give unique IDs to Record instances.
++ *
++ * @property Record._nCount
++ * @type Number
++ * @private
++ */
++YAHOO.widget.Record._nCount = 0;
++
++YAHOO.widget.Record.prototype = {
++    /**
++     * Immutable unique count assigned at instantiation. Remains constant while a
++     * Record's position index can change from sorting.
++     *
++     * @property _nCount
++     * @type Number
++     * @private
++     */
++    _nCount : null,
++
++    /**
++     * Immutable unique ID assigned at instantiation. Remains constant while a
++     * Record's position index can change from sorting.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Holds data for the Record in an object literal.
++     *
++     * @property _oData
++     * @type Object
++     * @private
++     */
++    _oData : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique count assigned at instantiation.
++     *
++     * @method getCount
++     * @return Number
++     */
++    getCount : function() {
++        return this._nCount;
++    },
++
++    /**
++     * Returns unique ID assigned at instantiation.
++     *
++     * @method getId
++     * @return String
++     */
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * Returns data for the Record for a field if given, or the entire object
++     * literal otherwise.
++     *
++     * @method getData
++     * @param sField {String} (Optional) The field from which to retrieve data value.
++     * @return Object
++     */
++    getData : function(sField) {
++        if(lang.isString(sField)) {
++            return this._oData[sField];
++        }
++        else {
++            return this._oData;
++        }
++    },
++
++    /**
++     * Sets given data at the given key. Use the RecordSet method updateRecordValue to trigger
++     * events. 
++     *
++     * @method setData
++     * @param sKey {String} The key of the new value.
++     * @param oData {MIXED} The new value.
++     */
++    setData : function(sKey, oData) {
++        this._oData[sKey] = oData;
++    }
++};
++
++})();
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    ua     = YAHOO.env.ua,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    DS     = util.DataSourceBase;
++
++/**
++ * The DataTable widget provides a progressively enhanced DHTML control for
++ * displaying tabular data across A-grade browsers.
++ *
++ * @module datatable
++ * @requires yahoo, dom, event, element, datasource
++ * @optional dragdrop, dragdrop
++ * @title DataTable Widget
++ */
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * DataTable class for the YUI DataTable widget.
++ *
++ * @namespace YAHOO.widget
++ * @class DataTable
++ * @extends YAHOO.util.Element
++ * @constructor
++ * @param elContainer {HTMLElement} Container element for the TABLE.
++ * @param aColumnDefs {Object[]} Array of object literal Column definitions.
++ * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.DataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
++    var DT = widget.DataTable;
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Backward compatibility for SDT, but prevent infinite loops
++    
++    if(oConfigs && oConfigs.scrollable) {
++        return new YAHOO.widget.ScrollingDataTable(elContainer,aColumnDefs,oDataSource,oConfigs);
++    }
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Initialization
++
++    // Internal vars
++    this._nIndex = DT._nCount;
++    this._sId = "yui-dt"+this._nIndex;
++    this._oChainRender = new YAHOO.util.Chain();
++    this._oChainRender.subscribe("end",this._onRenderChainEnd, this, true);
++
++    // Initialize configs
++    this._initConfigs(oConfigs);
++
++    // Initialize DataSource
++    this._initDataSource(oDataSource);
++    if(!this._oDataSource) {
++        YAHOO.log("Could not instantiate DataTable due to an invalid DataSource", "error", this.toString());
++        return;
++    }
++
++    // Initialize ColumnSet
++    this._initColumnSet(aColumnDefs);
++    if(!this._oColumnSet) {
++        YAHOO.log("Could not instantiate DataTable due to an invalid ColumnSet", "error", this.toString());
++        return;
++    }
++
++    // Initialize RecordSet
++    this._initRecordSet();
++    if(!this._oRecordSet) {
++    }
++
++    // Initialize Attributes
++    DT.superclass.constructor.call(this, elContainer, this.configs);
++
++    // Initialize DOM elements
++    var okDom = this._initDomElements(elContainer);
++    if(!okDom) {
++        YAHOO.log("Could not instantiate DataTable due to an invalid DOM element", "error", this.toString());
++        return;
++    }
++            
++    // Show message as soon as config is available
++    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Once per instance
++    this._initEvents();
++
++    DT._nCount++;
++    DT._nCurrentCount++;
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Data integration
++
++    // Send a simple initial request
++    var oCallback = {
++        success : this.onDataReturnSetRows,
++        failure : this.onDataReturnSetRows,
++        scope   : this,
++        argument: this.getState()
++    };
++    
++    var initialLoad = this.get("initialLoad");
++    if(initialLoad === true) {
++        this._oDataSource.sendRequest(this.get("initialRequest"), oCallback);
++    }
++    // Do not send an initial request at all
++    else if(initialLoad === false) {
++        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);
++    }
++    // Send an initial request with a custom payload
++    else {
++        var oCustom = initialLoad || {};
++        oCallback.argument = oCustom.argument || {};
++        this._oDataSource.sendRequest(oCustom.request, oCallback);
++    }
++};
++
++var DT = widget.DataTable;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public constants
++//
++/////////////////////////////////////////////////////////////////////////////
++
++lang.augmentObject(DT, {
++
++    /**
++     * Class name assigned to outer DataTable container.
++     *
++     * @property DataTable.CLASS_DATATABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt"
++     */
++    CLASS_DATATABLE : "yui-dt",
++
++    /**
++     * Class name assigned to liner DIV elements.
++     *
++     * @property DataTable.CLASS_LINER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-liner"
++     */
++    CLASS_LINER : "yui-dt-liner",
++
++    /**
++     * Class name assigned to display label elements.
++     *
++     * @property DataTable.CLASS_LABEL
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-label"
++     */
++    CLASS_LABEL : "yui-dt-label",
++
++    /**
++     * Class name assigned to messaging elements.
++     *
++     * @property DataTable.CLASS_MESSAGE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-message"
++     */
++    CLASS_MESSAGE : "yui-dt-message",
++
++    /**
++     * Class name assigned to mask element when DataTable is disabled.
++     *
++     * @property DataTable.CLASS_MASK
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-mask"
++     */
++    CLASS_MASK : "yui-dt-mask",
++
++    /**
++     * Class name assigned to data elements.
++     *
++     * @property DataTable.CLASS_DATA
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-data"
++     */
++    CLASS_DATA : "yui-dt-data",
++
++    /**
++     * Class name assigned to Column drag target.
++     *
++     * @property DataTable.CLASS_COLTARGET
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-coltarget"
++     */
++    CLASS_COLTARGET : "yui-dt-coltarget",
++
++    /**
++     * Class name assigned to resizer handle elements.
++     *
++     * @property DataTable.CLASS_RESIZER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizer"
++     */
++    CLASS_RESIZER : "yui-dt-resizer",
++
++    /**
++     * Class name assigned to resizer liner elements.
++     *
++     * @property DataTable.CLASS_RESIZERLINER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizerliner"
++     */
++    CLASS_RESIZERLINER : "yui-dt-resizerliner",
++
++    /**
++     * Class name assigned to resizer proxy elements.
++     *
++     * @property DataTable.CLASS_RESIZERPROXY
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizerproxy"
++     */
++    CLASS_RESIZERPROXY : "yui-dt-resizerproxy",
++
++    /**
++     * Class name assigned to CellEditor container elements.
++     *
++     * @property DataTable.CLASS_EDITOR
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-editor"
++     */
++    CLASS_EDITOR : "yui-dt-editor",
++
++    /**
++     * Class name assigned to paginator container elements.
++     *
++     * @property DataTable.CLASS_PAGINATOR
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-paginator"
++     */
++    CLASS_PAGINATOR : "yui-dt-paginator",
++
++    /**
++     * Class name assigned to page number indicators.
++     *
++     * @property DataTable.CLASS_PAGE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-page"
++     */
++    CLASS_PAGE : "yui-dt-page",
++
++    /**
++     * Class name assigned to default indicators.
++     *
++     * @property DataTable.CLASS_DEFAULT
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-default"
++     */
++    CLASS_DEFAULT : "yui-dt-default",
++
++    /**
++     * Class name assigned to previous indicators.
++     *
++     * @property DataTable.CLASS_PREVIOUS
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-previous"
++     */
++    CLASS_PREVIOUS : "yui-dt-previous",
++
++    /**
++     * Class name assigned next indicators.
++     *
++     * @property DataTable.CLASS_NEXT
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-next"
++     */
++    CLASS_NEXT : "yui-dt-next",
++
++    /**
++     * Class name assigned to first elements.
++     *
++     * @property DataTable.CLASS_FIRST
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-first"
++     */
++    CLASS_FIRST : "yui-dt-first",
++
++    /**
++     * Class name assigned to last elements.
++     *
++     * @property DataTable.CLASS_LAST
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-last"
++     */
++    CLASS_LAST : "yui-dt-last",
++
++    /**
++     * Class name assigned to even elements.
++     *
++     * @property DataTable.CLASS_EVEN
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-even"
++     */
++    CLASS_EVEN : "yui-dt-even",
++
++    /**
++     * Class name assigned to odd elements.
++     *
++     * @property DataTable.CLASS_ODD
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-odd"
++     */
++    CLASS_ODD : "yui-dt-odd",
++
++    /**
++     * Class name assigned to selected elements.
++     *
++     * @property DataTable.CLASS_SELECTED
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-selected"
++     */
++    CLASS_SELECTED : "yui-dt-selected",
++
++    /**
++     * Class name assigned to highlighted elements.
++     *
++     * @property DataTable.CLASS_HIGHLIGHTED
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-highlighted"
++     */
++    CLASS_HIGHLIGHTED : "yui-dt-highlighted",
++
++    /**
++     * Class name assigned to hidden elements.
++     *
++     * @property DataTable.CLASS_HIDDEN
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-hidden"
++     */
++    CLASS_HIDDEN : "yui-dt-hidden",
++
++    /**
++     * Class name assigned to disabled elements.
++     *
++     * @property DataTable.CLASS_DISABLED
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-disabled"
++     */
++    CLASS_DISABLED : "yui-dt-disabled",
++
++    /**
++     * Class name assigned to empty indicators.
++     *
++     * @property DataTable.CLASS_EMPTY
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-empty"
++     */
++    CLASS_EMPTY : "yui-dt-empty",
++
++    /**
++     * Class name assigned to loading indicatorx.
++     *
++     * @property DataTable.CLASS_LOADING
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-loading"
++     */
++    CLASS_LOADING : "yui-dt-loading",
++
++    /**
++     * Class name assigned to error indicators.
++     *
++     * @property DataTable.CLASS_ERROR
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-error"
++     */
++    CLASS_ERROR : "yui-dt-error",
++
++    /**
++     * Class name assigned to editable elements.
++     *
++     * @property DataTable.CLASS_EDITABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-editable"
++     */
++    CLASS_EDITABLE : "yui-dt-editable",
++
++    /**
++     * Class name assigned to draggable elements.
++     *
++     * @property DataTable.CLASS_DRAGGABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-draggable"
++     */
++    CLASS_DRAGGABLE : "yui-dt-draggable",
++
++    /**
++     * Class name assigned to resizeable elements.
++     *
++     * @property DataTable.CLASS_RESIZEABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizeable"
++     */
++    CLASS_RESIZEABLE : "yui-dt-resizeable",
++
++    /**
++     * Class name assigned to scrollable elements.
++     *
++     * @property DataTable.CLASS_SCROLLABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-scrollable"
++     */
++    CLASS_SCROLLABLE : "yui-dt-scrollable",
++
++    /**
++     * Class name assigned to sortable elements.
++     *
++     * @property DataTable.CLASS_SORTABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-sortable"
++     */
++    CLASS_SORTABLE : "yui-dt-sortable",
++
++    /**
++     * Class name assigned to ascending elements.
++     *
++     * @property DataTable.CLASS_ASC
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-asc"
++     */
++    CLASS_ASC : "yui-dt-asc",
++
++    /**
++     * Class name assigned to descending elements.
++     *
++     * @property DataTable.CLASS_DESC
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-desc"
++     */
++    CLASS_DESC : "yui-dt-desc",
++
++    /**
++     * Class name assigned to BUTTON elements and/or container elements.
++     *
++     * @property DataTable.CLASS_BUTTON
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-button"
++     */
++    CLASS_BUTTON : "yui-dt-button",
++
++    /**
++     * Class name assigned to INPUT TYPE=CHECKBOX elements and/or container elements.
++     *
++     * @property DataTable.CLASS_CHECKBOX
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-checkbox"
++     */
++    CLASS_CHECKBOX : "yui-dt-checkbox",
++
++    /**
++     * Class name assigned to SELECT elements and/or container elements.
++     *
++     * @property DataTable.CLASS_DROPDOWN
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-dropdown"
++     */
++    CLASS_DROPDOWN : "yui-dt-dropdown",
++
++    /**
++     * Class name assigned to INPUT TYPE=RADIO elements and/or container elements.
++     *
++     * @property DataTable.CLASS_RADIO
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-radio"
++     */
++    CLASS_RADIO : "yui-dt-radio",
++
++    /////////////////////////////////////////////////////////////////////////
++    //
++    // Private static properties
++    //
++    /////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Internal class variable for indexing multiple DataTable instances.
++     *
++     * @property DataTable._nCount
++     * @type Number
++     * @private
++     * @static
++     */
++    _nCount : 0,
++
++    /**
++     * Internal class variable tracking current number of DataTable instances,
++     * so that certain class values can be reset when all instances are destroyed.          
++     *
++     * @property DataTable._nCurrentCount
++     * @type Number
++     * @private
++     * @static
++     */
++    _nCurrentCount : 0,
++
++    /**
++     * Reference to the STYLE node that is dynamically created and updated
++     * in order to manage Column widths.
++     *
++     * @property DataTable._elDynStyleNode
++     * @type HTMLElement
++     * @private
++     * @static     
++     */
++    _elDynStyleNode : null,
++
++    /**
++     * Set to true if _elDynStyleNode cannot be populated due to browser incompatibility.
++     *
++     * @property DataTable._bDynStylesFallback
++     * @type boolean
++     * @private
++     * @static     
++     */
++    _bDynStylesFallback : (ua.ie) ? true : false,
++
++    /**
++     * Object literal hash of Columns and their dynamically create style rules.
++     *
++     * @property DataTable._oDynStyles
++     * @type Object
++     * @private
++     * @static     
++     */
++    _oDynStyles : {},
++
++    /**
++     * Element reference to shared Column drag target.
++     *
++     * @property DataTable._elColumnDragTarget
++     * @type HTMLElement
++     * @private
++     * @static 
++     */
++    _elColumnDragTarget : null,
++
++    /**
++     * Element reference to shared Column resizer proxy.
++     *
++     * @property DataTable._elColumnResizerProxy
++     * @type HTMLElement
++     * @private
++     * @static 
++     */
++    _elColumnResizerProxy : null,
++
++    /////////////////////////////////////////////////////////////////////////
++    //
++    // Private static methods
++    //
++    /////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Clones object literal or array of object literals.
++     *
++     * @method DataTable._cloneObject
++     * @param o {Object} Object.
++     * @private
++     * @static     
++     */
++    _cloneObject : function(o) {
++        if(!lang.isValue(o)) {
++            return o;
++        }
++        
++        var copy = {};
++        
++        if(o instanceof YAHOO.widget.BaseCellEditor) {
++            copy = o;
++        }
++        else if(lang.isFunction(o)) {
++            copy = o;
++        }
++        else if(lang.isArray(o)) {
++            var array = [];
++            for(var i=0,len=o.length;i<len;i++) {
++                array[i] = DT._cloneObject(o[i]);
++            }
++            copy = array;
++        }
++        else if(lang.isObject(o)) { 
++            for (var x in o){
++                if(lang.hasOwnProperty(o, x)) {
++                    if(lang.isValue(o[x]) && lang.isObject(o[x]) || lang.isArray(o[x])) {
++                        copy[x] = DT._cloneObject(o[x]);
++                    }
++                    else {
++                        copy[x] = o[x];
++                    }
++                }
++            }
++        }
++        else {
++            copy = o;
++        }
++    
++        return copy;
++    },
++
++    /**
++     * Destroys shared Column drag target.
++     *
++     * @method DataTable._destroyColumnDragTargetEl
++     * @private
++     * @static 
++     */
++    _destroyColumnDragTargetEl : function() {
++        if(DT._elColumnDragTarget) {
++            var el = DT._elColumnDragTarget;
++            YAHOO.util.Event.purgeElement(el);
++            el.parentNode.removeChild(el);
++            DT._elColumnDragTarget = null;
++            
++        }
++    },
++
++    /**
++     * Creates HTML markup for shared Column drag target.
++     *
++     * @method DataTable._initColumnDragTargetEl
++     * @return {HTMLElement} Reference to Column drag target. 
++     * @private
++     * @static 
++     */
++    _initColumnDragTargetEl : function() {
++        if(!DT._elColumnDragTarget) {
++            // Attach Column drag target element as first child of body
++            var elColumnDragTarget = document.createElement('div');
++            elColumnDragTarget.className = DT.CLASS_COLTARGET;
++            elColumnDragTarget.style.display = "none";
++            document.body.insertBefore(elColumnDragTarget, document.body.firstChild);
++
++            // Internal tracker of Column drag target
++            DT._elColumnDragTarget = elColumnDragTarget;
++            
++        }
++        return DT._elColumnDragTarget;
++    },
++
++    /**
++     * Destroys shared Column resizer proxy.
++     *
++     * @method DataTable._destroyColumnResizerProxyEl
++     * @return {HTMLElement} Reference to Column resizer proxy.
++     * @private 
++     * @static 
++     */
++    _destroyColumnResizerProxyEl : function() {
++        if(DT._elColumnResizerProxy) {
++            var el = DT._elColumnResizerProxy;
++            YAHOO.util.Event.purgeElement(el);
++            el.parentNode.removeChild(el);
++            DT._elColumnResizerProxy = null;
++        }
++    },
++
++    /**
++     * Creates HTML markup for shared Column resizer proxy.
++     *
++     * @method DataTable._initColumnResizerProxyEl
++     * @return {HTMLElement} Reference to Column resizer proxy.
++     * @private 
++     * @static 
++     */
++    _initColumnResizerProxyEl : function() {
++        if(!DT._elColumnResizerProxy) {
++            // Attach Column resizer element as first child of body
++            var elColumnResizerProxy = document.createElement("div");
++            elColumnResizerProxy.id = "yui-dt-colresizerproxy"; // Needed for ColumnResizer
++            elColumnResizerProxy.className = DT.CLASS_RESIZERPROXY;
++            document.body.insertBefore(elColumnResizerProxy, document.body.firstChild);
++
++            // Internal tracker of Column resizer proxy
++            DT._elColumnResizerProxy = elColumnResizerProxy;
++        }
++        return DT._elColumnResizerProxy;
++    },
++
++    /**
++     * Formats a BUTTON element.
++     *
++     * @method DataTable.formatButton
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object | Boolean} Data value for the cell. By default, the value
++     * is what gets written to the BUTTON.
++     * @static
++     */
++    formatButton : function(el, oRecord, oColumn, oData) {
++        var sValue = lang.isValue(oData) ? oData : "Click";
++        //TODO: support YAHOO.widget.Button
++        //if(YAHOO.widget.Button) {
++
++        //}
++        //else {
++            el.innerHTML = "<button type=\"button\" class=\""+
++                    DT.CLASS_BUTTON + "\">" + sValue + "</button>";
++        //}
++    },
++
++    /**
++     * Formats a CHECKBOX element.
++     *
++     * @method DataTable.formatCheckbox
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object | Boolean} Data value for the cell. Can be a simple
++     * Boolean to indicate whether checkbox is checked or not. Can be object literal
++     * {checked:bBoolean, label:sLabel}. Other forms of oData require a custom
++     * formatter.
++     * @static
++     */
++    formatCheckbox : function(el, oRecord, oColumn, oData) {
++        var bChecked = oData;
++        bChecked = (bChecked) ? " checked=\"checked\"" : "";
++        el.innerHTML = "<input type=\"checkbox\"" + bChecked +
++                " class=\"" + DT.CLASS_CHECKBOX + "\" />";
++    },
++
++    /**
++     * Formats currency. Default unit is USD.
++     *
++     * @method DataTable.formatCurrency
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Number} Data value for the cell.
++     * @static
++     */
++    formatCurrency : function(el, oRecord, oColumn, oData) {
++        el.innerHTML = util.Number.format(oData, oColumn.currencyOptions || this.get("currencyOptions"));
++    },
++
++    /**
++     * Formats JavaScript Dates.
++     *
++     * @method DataTable.formatDate
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatDate : function(el, oRecord, oColumn, oData) {
++        var oConfig = oColumn.dateOptions || this.get("dateOptions");
++        el.innerHTML = util.Date.format(oData, oConfig, oConfig.locale);
++    },
++
++    /**
++     * Formats SELECT elements.
++     *
++     * @method DataTable.formatDropdown
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatDropdown : function(el, oRecord, oColumn, oData) {
++        var selectedValue = (lang.isValue(oData)) ? oData : oRecord.getData(oColumn.field),
++            options = (lang.isArray(oColumn.dropdownOptions)) ?
++                oColumn.dropdownOptions : null,
++
++            selectEl,
++            collection = el.getElementsByTagName("select");
++
++        // Create the form element only once, so we can attach the onChange listener
++        if(collection.length === 0) {
++            // Create SELECT element
++            selectEl = document.createElement("select");
++            selectEl.className = DT.CLASS_DROPDOWN;
++            selectEl = el.appendChild(selectEl);
++
++            // Add event listener
++            Ev.addListener(selectEl,"change",this._onDropdownChange,this);
++        }
++
++        selectEl = collection[0];
++
++        // Update the form element
++        if(selectEl) {
++            // Clear out previous options
++            selectEl.innerHTML = "";
++
++            // We have options to populate
++            if(options) {
++                // Create OPTION elements
++                for(var i=0; i<options.length; i++) {
++                    var option = options[i];
++                    var optionEl = document.createElement("option");
++                    optionEl.value = (lang.isValue(option.value)) ?
++                            option.value : option;
++                    // Bug 2334323: Support legacy text, support label for consistency with DropdownCellEditor
++                    optionEl.innerHTML = (lang.isValue(option.text)) ?
++                            option.text : (lang.isValue(option.label)) ? option.label : option;
++                    optionEl = selectEl.appendChild(optionEl);
++                    if (optionEl.value == selectedValue) {
++                        optionEl.selected = true;
++                    }
++                }
++            }
++            // Selected value is our only option
++            else {
++                selectEl.innerHTML = "<option selected value=\"" + selectedValue + "\">" + selectedValue + "</option>";
++            }
++        }
++        else {
++            el.innerHTML = lang.isValue(oData) ? oData : "";
++        }
++    },
++
++    /**
++     * Formats emails.
++     *
++     * @method DataTable.formatEmail
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatEmail : function(el, oRecord, oColumn, oData) {
++        if(lang.isString(oData)) {
++            el.innerHTML = "<a href=\"mailto:" + oData + "\">" + oData + "</a>";
++        }
++        else {
++            el.innerHTML = lang.isValue(oData) ? oData : "";
++        }
++    },
++
++    /**
++     * Formats links.
++     *
++     * @method DataTable.formatLink
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatLink : function(el, oRecord, oColumn, oData) {
++        if(lang.isString(oData)) {
++            el.innerHTML = "<a href=\"" + oData + "\">" + oData + "</a>";
++        }
++        else {
++            el.innerHTML = lang.isValue(oData) ? oData : "";
++        }
++    },
++
++    /**
++     * Formats numbers.
++     *
++     * @method DataTable.formatNumber
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatNumber : function(el, oRecord, oColumn, oData) {
++        el.innerHTML = util.Number.format(oData, oColumn.numberOptions || this.get("numberOptions"));
++    },
++
++    /**
++     * Formats INPUT TYPE=RADIO elements.
++     *
++     * @method DataTable.formatRadio
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatRadio : function(el, oRecord, oColumn, oData) {
++        var bChecked = oData;
++        bChecked = (bChecked) ? " checked=\"checked\"" : "";
++        el.innerHTML = "<input type=\"radio\"" + bChecked +
++                " name=\""+this.getId()+"-col-" + oColumn.getSanitizedKey() + "\"" +
++                " class=\"" + DT.CLASS_RADIO+ "\" />";
++    },
++
++    /**
++     * Formats text strings.
++     *
++     * @method DataTable.formatText
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatText : function(el, oRecord, oColumn, oData) {
++        var value = (lang.isValue(oData)) ? oData : "";
++        //TODO: move to util function
++        el.innerHTML = value.toString().replace(/&/g, "&#38;").replace(/</g, "&#60;").replace(/>/g, "&#62;");
++    },
++
++    /**
++     * Formats TEXTAREA elements.
++     *
++     * @method DataTable.formatTextarea
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatTextarea : function(el, oRecord, oColumn, oData) {
++        var value = (lang.isValue(oData)) ? oData : "",
++            markup = "<textarea>" + value + "</textarea>";
++        el.innerHTML = markup;
++    },
++
++    /**
++     * Formats INPUT TYPE=TEXT elements.
++     *
++     * @method DataTable.formatTextbox
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatTextbox : function(el, oRecord, oColumn, oData) {
++        var value = (lang.isValue(oData)) ? oData : "",
++            markup = "<input type=\"text\" value=\"" + value + "\" />";
++        el.innerHTML = markup;
++    },
++
++    /**
++     * Default cell formatter
++     *
++     * @method DataTable.formatDefault
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatDefault : function(el, oRecord, oColumn, oData) {
++        el.innerHTML = oData === undefined ||
++                       oData === null ||
++                       (typeof oData === 'number' && isNaN(oData)) ?
++                       "&#160;" : oData.toString();
++    },
++
++    /**
++     * Validates data value to type Number, doing type conversion as
++     * necessary. A valid Number value is return, else null is returned
++     * if input value does not validate.
++     *
++     *
++     * @method DataTable.validateNumber
++     * @param oData {Object} Data to validate.
++     * @static
++    */
++    validateNumber : function(oData) {
++        //Convert to number
++        var number = oData * 1;
++
++        // Validate
++        if(lang.isNumber(number)) {
++            return number;
++        }
++        else {
++            YAHOO.log("Could not validate data " + lang.dump(oData) + " to type Number", "warn", this.toString());
++            return undefined;
++        }
++    }
++});
++
++// Done in separate step so referenced functions are defined.
++/**
++ * Cell formatting functions.
++ * @property DataTable.Formatter
++ * @type Object
++ * @static
++ */
++DT.Formatter = {
++    button   : DT.formatButton,
++    checkbox : DT.formatCheckbox,
++    currency : DT.formatCurrency,
++    "date"   : DT.formatDate,
++    dropdown : DT.formatDropdown,
++    email    : DT.formatEmail,
++    link     : DT.formatLink,
++    "number" : DT.formatNumber,
++    radio    : DT.formatRadio,
++    text     : DT.formatText,
++    textarea : DT.formatTextarea,
++    textbox  : DT.formatTextbox,
++
++    defaultFormatter : DT.formatDefault
++};
++
++lang.extend(DT, util.Element, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Superclass methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Implementation of Element's abstract method. Sets up config values.
++ *
++ * @method initAttributes
++ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
++ * @private
++ */
++
++initAttributes : function(oConfigs) {
++    oConfigs = oConfigs || {};
++    DT.superclass.initAttributes.call(this, oConfigs);
++
++    /**
++    * @attribute summary
++    * @description Value for the SUMMARY attribute.
++    * @type String
++    * @default ""    
++    */
++    this.setAttributeConfig("summary", {
++        value: "",
++        validator: lang.isString,
++        method: function(sSummary) {
++            if(this._elTable) {
++                this._elTable.summary = sSummary;
++            }
++        }
++    });
++
++    /**
++    * @attribute selectionMode
++    * @description Specifies row or cell selection mode. Accepts the following strings:
++    *    <dl>
++    *      <dt>"standard"</dt>
++    *      <dd>Standard row selection with support for modifier keys to enable
++    *      multiple selections.</dd>
++    *
++    *      <dt>"single"</dt>
++    *      <dd>Row selection with modifier keys disabled to not allow
++    *      multiple selections.</dd>
++    *
++    *      <dt>"singlecell"</dt>
++    *      <dd>Cell selection with modifier keys disabled to not allow
++    *      multiple selections.</dd>
++    *
++    *      <dt>"cellblock"</dt>
++    *      <dd>Cell selection with support for modifier keys to enable multiple
++    *      selections in a block-fashion, like a spreadsheet.</dd>
++    *
++    *      <dt>"cellrange"</dt>
++    *      <dd>Cell selection with support for modifier keys to enable multiple
++    *      selections in a range-fashion, like a calendar.</dd>
++    *    </dl>
++    *
++    * @default "standard"
++    * @type String
++    */
++    this.setAttributeConfig("selectionMode", {
++        value: "standard",
++        validator: lang.isString
++    });
++
++    /**
++    * @attribute sortedBy
++    * @description Object literal provides metadata for initial sort values if
++    * data will arrive pre-sorted:
++    * <dl>
++    *     <dt>sortedBy.key</dt>
++    *     <dd>{String} Key of sorted Column</dd>
++    *     <dt>sortedBy.dir</dt>
++    *     <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
++    * </dl>
++    * @type Object | null
++    */
++    this.setAttributeConfig("sortedBy", {
++        value: null,
++        // TODO: accepted array for nested sorts
++        validator: function(oNewSortedBy) {
++            if(oNewSortedBy) {
++                return (lang.isObject(oNewSortedBy) && oNewSortedBy.key);
++            }
++            else {
++                return (oNewSortedBy === null);
++            }
++        },
++        method: function(oNewSortedBy) {
++            // Stash the previous value
++            var oOldSortedBy = this.get("sortedBy");
++            
++            // Workaround for bug 1827195
++            this._configs.sortedBy.value = oNewSortedBy;
++
++            // Remove ASC/DESC from TH
++            var oOldColumn,
++                nOldColumnKeyIndex,
++                oNewColumn,
++                nNewColumnKeyIndex;
++                
++            if(this._elThead) {
++                if(oOldSortedBy && oOldSortedBy.key && oOldSortedBy.dir) {
++                    oOldColumn = this._oColumnSet.getColumn(oOldSortedBy.key);
++                    nOldColumnKeyIndex = oOldColumn.getKeyIndex();
++                    
++                    // Remove previous UI from THEAD
++                    var elOldTh = oOldColumn.getThEl();
++                    Dom.removeClass(elOldTh, oOldSortedBy.dir);
++                    this.formatTheadCell(oOldColumn.getThLinerEl().firstChild, oOldColumn, oNewSortedBy);
++                }
++                if(oNewSortedBy) {
++                    oNewColumn = (oNewSortedBy.column) ? oNewSortedBy.column : this._oColumnSet.getColumn(oNewSortedBy.key);
++                    nNewColumnKeyIndex = oNewColumn.getKeyIndex();
++    
++                    // Update THEAD with new UI
++                    var elNewTh = oNewColumn.getThEl();
++                    // Backward compatibility
++                    if(oNewSortedBy.dir && ((oNewSortedBy.dir == "asc") ||  (oNewSortedBy.dir == "desc"))) {
++                        var newClass = (oNewSortedBy.dir == "desc") ?
++                                DT.CLASS_DESC :
++                                DT.CLASS_ASC;
++                        Dom.addClass(elNewTh, newClass);
++                    }
++                    else {
++                         var sortClass = oNewSortedBy.dir || DT.CLASS_ASC;
++                         Dom.addClass(elNewTh, sortClass);
++                    }
++                    this.formatTheadCell(oNewColumn.getThLinerEl().firstChild, oNewColumn, oNewSortedBy);
++                }
++            }
++          
++            if(this._elTbody) {
++                // Update TBODY UI
++                this._elTbody.style.display = "none";
++                var allRows = this._elTbody.rows,
++                    allCells;
++                for(var i=allRows.length-1; i>-1; i--) {
++                    allCells = allRows[i].childNodes;
++                    if(allCells[nOldColumnKeyIndex]) {
++                        Dom.removeClass(allCells[nOldColumnKeyIndex], oOldSortedBy.dir);
++                    }
++                    if(allCells[nNewColumnKeyIndex]) {
++                        Dom.addClass(allCells[nNewColumnKeyIndex], oNewSortedBy.dir);
++                    }
++                }
++                this._elTbody.style.display = "";
++            }
++                
++            this._clearTrTemplateEl();
++        }
++    });
++    
++    /**
++    * @attribute paginator
++    * @description An instance of YAHOO.widget.Paginator.
++    * @default null
++    * @type {Object|YAHOO.widget.Paginator}
++    */
++    this.setAttributeConfig("paginator", {
++        value : null,
++        validator : function (val) {
++            return val === null || val instanceof widget.Paginator;
++        },
++        method : function () { this._updatePaginator.apply(this,arguments); }
++    });
++
++    /**
++    * @attribute caption
++    * @description Value for the CAPTION element. NB: Not supported in
++    * ScrollingDataTable.    
++    * @type String
++    */
++    this.setAttributeConfig("caption", {
++        value: null,
++        validator: lang.isString,
++        method: function(sCaption) {
++            this._initCaptionEl(sCaption);
++        }
++    });
++
++    /**
++    * @attribute draggableColumns
++    * @description True if Columns are draggable to reorder, false otherwise.
++    * The Drag & Drop Utility is required to enable this feature. Only top-level
++    * and non-nested Columns are draggable. Write once.
++    * @default false
++    * @type Boolean
++    */
++    this.setAttributeConfig("draggableColumns", {
++        value: false,
++        validator: lang.isBoolean,
++        method: function(oParam) {
++            if(this._elThead) {
++                if(oParam) {
++                    this._initDraggableColumns();
++                }
++                else {
++                    this._destroyDraggableColumns();
++                }
++            }
++        }
++    });
++
++    /**
++    * @attribute renderLoopSize 	 
++    * @description A value greater than 0 enables DOM rendering of rows to be
++    * executed from a non-blocking timeout queue and sets how many rows to be
++    * rendered per timeout. Recommended for very large data sets.     
++    * @type Number 	 
++    * @default 0 	 
++    */ 	 
++     this.setAttributeConfig("renderLoopSize", { 	 
++         value: 0, 	 
++         validator: lang.isNumber 	 
++     }); 	 
++
++    /**
++    * @attribute formatRow
++    * @description A function that accepts a TR element and its associated Record
++    * for custom formatting. The function must return TRUE in order to automatically
++    * continue formatting of child TD elements, else TD elements will not be
++    * automatically formatted.
++    * @type function
++    * @default null
++    */
++    this.setAttributeConfig("formatRow", {
++        value: null,
++        validator: lang.isFunction
++    });
++
++    /**
++    * @attribute generateRequest
++    * @description A function that converts an object literal of desired DataTable
++    * states into a request value which is then passed to the DataSource's
++    * sendRequest method in order to retrieve data for those states. This
++    * function is passed an object literal of state data and a reference to the
++    * DataTable instance:
++    *     
++    * <dl>
++    *   <dt>pagination<dt>
++    *   <dd>        
++    *         <dt>offsetRecord</dt>
++    *         <dd>{Number} Index of the first Record of the desired page</dd>
++    *         <dt>rowsPerPage</dt>
++    *         <dd>{Number} Number of rows per page</dd>
++    *   </dd>
++    *   <dt>sortedBy</dt>
++    *   <dd>                
++    *         <dt>key</dt>
++    *         <dd>{String} Key of sorted Column</dd>
++    *         <dt>dir</dt>
++    *         <dd>{String} Sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
++    *   </dd>
++    *   <dt>self</dt>
++    *   <dd>The DataTable instance</dd>
++    * </dl>
++    * 
++    * and by default returns a String of syntax:
++    * "sort={sortColumn}&dir={sortDir}&startIndex={pageStartIndex}&results={rowsPerPage}"
++    * @type function
++    * @default HTMLFunction
++    */
++    this.setAttributeConfig("generateRequest", {
++        value: function(oState, oSelf) {
++            // Set defaults
++            oState = oState || {pagination:null, sortedBy:null};
++            var sort = encodeURIComponent((oState.sortedBy) ? oState.sortedBy.key : oSelf.getColumnSet().keys[0].getKey());
++            var dir = (oState.sortedBy && oState.sortedBy.dir === YAHOO.widget.DataTable.CLASS_DESC) ? "desc" : "asc";
++            var startIndex = (oState.pagination) ? oState.pagination.recordOffset : 0;
++            var results = (oState.pagination) ? oState.pagination.rowsPerPage : null;
++            
++            // Build the request
++            return  "sort=" + sort +
++                    "&dir=" + dir +
++                    "&startIndex=" + startIndex +
++                    ((results !== null) ? "&results=" + results : "");
++        },
++        validator: lang.isFunction
++    });
++
++    /**
++    * @attribute initialRequest
++    * @description Defines the initial request that gets sent to the DataSource
++    * during initialization. Value is ignored if initialLoad is set to any value
++    * other than true.    
++    * @type MIXED
++    * @default null
++    */
++    this.setAttributeConfig("initialRequest", {
++        value: null
++    });
++
++    /**
++    * @attribute initialLoad
++    * @description Determines whether or not to load data at instantiation. By
++    * default, will trigger a sendRequest() to the DataSource and pass in the
++    * request defined by initialRequest. If set to false, data will not load
++    * at instantiation. Alternatively, implementers who wish to work with a 
++    * custom payload may pass in an object literal with the following values:
++    *     
++    *    <dl>
++    *      <dt>request (MIXED)</dt>
++    *      <dd>Request value.</dd>
++    *
++    *      <dt>argument (MIXED)</dt>
++    *      <dd>Custom data that will be passed through to the callback function.</dd>
++    *    </dl>
++    *
++    *                    
++    * @type Boolean | Object
++    * @default true
++    */
++    this.setAttributeConfig("initialLoad", {
++        value: true
++    });
++    
++    /**
++    * @attribute dynamicData
++    * @description If true, sorting and pagination are relegated to the DataSource
++    * for handling, using the request returned by the "generateRequest" function.
++    * Each new DataSource response blows away all previous Records. False by default, so 
++    * sorting and pagination will be handled directly on the client side, without
++    * causing any new requests for data from the DataSource.
++    * @type Boolean
++    * @default false
++    */
++    this.setAttributeConfig("dynamicData", {
++        value: false,
++        validator: lang.isBoolean
++    });
++
++    /**
++     * @attribute MSG_EMPTY 	 
++     * @description Message to display if DataTable has no data.     
++     * @type String 	 
++     * @default "No records found." 	 
++     */ 	 
++     this.setAttributeConfig("MSG_EMPTY", { 	 
++         value: "No records found.", 	 
++         validator: lang.isString 	 
++     }); 	 
++
++    /**
++     * @attribute MSG_LOADING	 
++     * @description Message to display while DataTable is loading data.
++     * @type String 	 
++     * @default "Loading..." 	 
++     */ 	 
++     this.setAttributeConfig("MSG_LOADING", { 	 
++         value: "Loading...", 	 
++         validator: lang.isString 	 
++     }); 	 
++
++    /**
++     * @attribute MSG_ERROR	 
++     * @description Message to display while DataTable has data error.
++     * @type String 	 
++     * @default "Data error." 	 
++     */ 	 
++     this.setAttributeConfig("MSG_ERROR", { 	 
++         value: "Data error.", 	 
++         validator: lang.isString 	 
++     }); 	 
++
++    /**
++     * @attribute MSG_SORTASC 
++     * @description Message to display in tooltip to sort Column in ascending order.
++     * @type String 	 
++     * @default "Click to sort ascending" 	 
++     */ 	 
++     this.setAttributeConfig("MSG_SORTASC", { 	 
++         value: "Click to sort ascending", 	 
++         validator: lang.isString,
++         method: function(sParam) {
++            if(this._elThead) {
++                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
++                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_ASC) {
++                        allKeys[i]._elThLabel.firstChild.title = sParam;
++                    }
++                }
++            }      
++         }
++     });
++
++    /**
++     * @attribute MSG_SORTDESC 
++     * @description Message to display in tooltip to sort Column in descending order.
++     * @type String 	 
++     * @default "Click to sort descending" 	 
++     */ 	 
++     this.setAttributeConfig("MSG_SORTDESC", { 	 
++         value: "Click to sort descending", 	 
++         validator: lang.isString,
++         method: function(sParam) {
++            if(this._elThead) {
++                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
++                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_DESC) {
++                        allKeys[i]._elThLabel.firstChild.title = sParam;
++                    }
++                }
++            }               
++         }
++     });
++     
++    /**
++     * @attribute currencySymbol
++     * @deprecated
++     */
++    this.setAttributeConfig("currencySymbol", {
++        value: "$",
++        validator: lang.isString
++    });
++    
++    /**
++     * Default config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
++     * @attribute currencyOptions
++     * @type Object
++     * @default {prefix: $, decimalPlaces:2, decimalSeparator:".", thousandsSeparator:","}
++     */
++    this.setAttributeConfig("currencyOptions", {
++        value: {
++            prefix: this.get("currencySymbol"), // TODO: deprecate currencySymbol
++            decimalPlaces:2,
++            decimalSeparator:".",
++            thousandsSeparator:","
++        }
++    });
++    
++    /**
++     * Default config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
++     * @attribute dateOptions
++     * @type Object
++     * @default {format:"%m/%d/%Y", locale:"en"}
++     */
++    this.setAttributeConfig("dateOptions", {
++        value: {format:"%m/%d/%Y", locale:"en"}
++    });
++    
++    /**
++     * Default config passed to YAHOO.util.Number.format() by the 'number' Column formatter.
++     * @attribute numberOptions
++     * @type Object
++     * @default {decimalPlaces:0, thousandsSeparator:","}
++     */
++    this.setAttributeConfig("numberOptions", {
++        value: {
++            decimalPlaces:0,
++            thousandsSeparator:","
++        }
++    });
++
++},
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * True if instance is initialized, so as to fire the initEvent after render.
++ *
++ * @property _bInit
++ * @type Boolean
++ * @default true
++ * @private
++ */
++_bInit : true,
++
++/**
++ * Index assigned to instance.
++ *
++ * @property _nIndex
++ * @type Number
++ * @private
++ */
++_nIndex : null,
++
++/**
++ * Counter for IDs assigned to TR elements.
++ *
++ * @property _nTrCount
++ * @type Number
++ * @private
++ */
++_nTrCount : 0,
++
++/**
++ * Counter for IDs assigned to TD elements.
++ *
++ * @property _nTdCount
++ * @type Number
++ * @private
++ */
++_nTdCount : 0,
++
++/**
++ * Unique id assigned to instance "yui-dtN", useful prefix for generating unique
++ * DOM ID strings and log messages.
++ *
++ * @property _sId
++ * @type String
++ * @private
++ */
++_sId : null,
++
++/**
++ * Render chain.
++ *
++ * @property _oChainRender
++ * @type YAHOO.util.Chain
++ * @private
++ */
++_oChainRender : null,
++
++/**
++ * DOM reference to the container element for the DataTable instance into which
++ * all other elements get created.
++ *
++ * @property _elContainer
++ * @type HTMLElement
++ * @private
++ */
++_elContainer : null,
++
++/**
++ * DOM reference to the mask element for the DataTable instance which disables it.
++ *
++ * @property _elMask
++ * @type HTMLElement
++ * @private
++ */
++_elMask : null,
++
++/**
++ * DOM reference to the TABLE element for the DataTable instance.
++ *
++ * @property _elTable
++ * @type HTMLElement
++ * @private
++ */
++_elTable : null,
++
++/**
++ * DOM reference to the CAPTION element for the DataTable instance.
++ *
++ * @property _elCaption
++ * @type HTMLElement
++ * @private
++ */
++_elCaption : null,
++
++/**
++ * DOM reference to the COLGROUP element for the DataTable instance.
++ *
++ * @property _elColgroup
++ * @type HTMLElement
++ * @private
++ */
++_elColgroup : null,
++
++/**
++ * DOM reference to the THEAD element for the DataTable instance.
++ *
++ * @property _elThead
++ * @type HTMLElement
++ * @private
++ */
++_elThead : null,
++
++/**
++ * DOM reference to the primary TBODY element for the DataTable instance.
++ *
++ * @property _elTbody
++ * @type HTMLElement
++ * @private
++ */
++_elTbody : null,
++
++/**
++ * DOM reference to the secondary TBODY element used to display DataTable messages.
++ *
++ * @property _elMsgTbody
++ * @type HTMLElement
++ * @private
++ */
++_elMsgTbody : null,
++
++/**
++ * DOM reference to the secondary TBODY element's single TR element used to display DataTable messages.
++ *
++ * @property _elMsgTr
++ * @type HTMLElement
++ * @private
++ */
++_elMsgTr : null,
++
++/**
++ * DOM reference to the secondary TBODY element's single TD element used to display DataTable messages.
++ *
++ * @property _elMsgTd
++ * @type HTMLElement
++ * @private
++ */
++_elMsgTd : null,
++
++/**
++ * DataSource instance for the DataTable instance.
++ *
++ * @property _oDataSource
++ * @type YAHOO.util.DataSource
++ * @private
++ */
++_oDataSource : null,
++
++/**
++ * ColumnSet instance for the DataTable instance.
++ *
++ * @property _oColumnSet
++ * @type YAHOO.widget.ColumnSet
++ * @private
++ */
++_oColumnSet : null,
++
++/**
++ * RecordSet instance for the DataTable instance.
++ *
++ * @property _oRecordSet
++ * @type YAHOO.widget.RecordSet
++ * @private
++ */
++_oRecordSet : null,
++
++/**
++ * The active CellEditor instance for the DataTable instance.
++ *
++ * @property _oCellEditor
++ * @type YAHOO.widget.CellEditor
++ * @private
++ */
++_oCellEditor : null,
++
++/**
++ * ID string of first TR element of the current DataTable page.
++ *
++ * @property _sFirstTrId
++ * @type String
++ * @private
++ */
++_sFirstTrId : null,
++
++/**
++ * ID string of the last TR element of the current DataTable page.
++ *
++ * @property _sLastTrId
++ * @type String
++ * @private
++ */
++_sLastTrId : null,
++
++/**
++ * Template row to create all new rows from.
++ * @property _elTrTemplate
++ * @type {HTMLElement}
++ * @private 
++ */
++_elTrTemplate : null,
++
++/**
++ * Sparse array of custom functions to set column widths for browsers that don't
++ * support dynamic CSS rules.  Functions are added at the index representing
++ * the number of rows they update.
++ *
++ * @property _aDynFunctions
++ * @type Array
++ * @private
++ */
++_aDynFunctions : [],
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Clears browser text selection. Useful to call on rowSelectEvent or
++ * cellSelectEvent to prevent clicks or dblclicks from selecting text in the
++ * browser.
++ *
++ * @method clearTextSelection
++ */
++clearTextSelection : function() {
++    var sel;
++    if(window.getSelection) {
++    	sel = window.getSelection();
++    }
++    else if(document.getSelection) {
++    	sel = document.getSelection();
++    }
++    else if(document.selection) {
++    	sel = document.selection;
++    }
++    if(sel) {
++        if(sel.empty) {
++            sel.empty();
++        }
++        else if (sel.removeAllRanges) {
++            sel.removeAllRanges();
++        }
++        else if(sel.collapse) {
++            sel.collapse();
++        }
++    }
++},
++
++/**
++ * Sets focus on the given element.
++ *
++ * @method _focusEl
++ * @param el {HTMLElement} Element.
++ * @private
++ */
++_focusEl : function(el) {
++    el = el || this._elTbody;
++    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
++    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
++    // strange unexpected things as the user clicks on buttons and other controls.
++    setTimeout(function() {
++        try {
++            el.focus();
++        }
++        catch(e) {
++        }
++    },0);
++},
++
++/**
++ * Forces Gecko repaint.
++ *
++ * @method _repaintGecko
++ * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
++ * @private
++ */
++_repaintGecko : (ua.gecko) ? 
++    function(el) {
++        el = el || this._elContainer;
++        var parent = el.parentNode;
++        var nextSibling = el.nextSibling;
++        parent.insertBefore(parent.removeChild(el), nextSibling);
++    } : function() {},
++
++/**
++ * Forces Opera repaint.
++ *
++ * @method _repaintOpera
++ * @private 
++ */
++_repaintOpera : (ua.opera) ? 
++    function() {
++        if(ua.opera) {
++            document.documentElement.className += " ";
++            document.documentElement.className = YAHOO.lang.trim(document.documentElement.className);
++        }
++    } : function() {} ,
++
++/**
++ * Forces Webkit repaint.
++ *
++ * @method _repaintWebkit
++ * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
++ * @private
++ */
++_repaintWebkit : (ua.webkit) ? 
++    function(el) {
++        el = el || this._elContainer;
++        var parent = el.parentNode;
++        var nextSibling = el.nextSibling;
++        parent.insertBefore(parent.removeChild(el), nextSibling);
++    } : function() {},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// INIT FUNCTIONS
++
++/**
++ * Initializes object literal of config values.
++ *
++ * @method _initConfigs
++ * @param oConfig {Object} Object literal of config values.
++ * @private
++ */
++_initConfigs : function(oConfigs) {
++    if(!oConfigs || !lang.isObject(oConfigs)) {
++        oConfigs = {};
++    }
++    this.configs = oConfigs;
++},
++
++/**
++ * Initializes ColumnSet.
++ *
++ * @method _initColumnSet
++ * @param aColumnDefs {Object[]} Array of object literal Column definitions.
++ * @private
++ */
++_initColumnSet : function(aColumnDefs) {
++    var oColumn, i, len;
++    
++    if(this._oColumnSet) {
++        // First clear _oDynStyles for existing ColumnSet and
++        // uregister CellEditor Custom Events
++        for(i=0, len=this._oColumnSet.keys.length; i<len; i++) {
++            oColumn = this._oColumnSet.keys[i];
++            DT._oDynStyles["."+this.getId()+"-col-"+oColumn.getSanitizedKey()+" ."+DT.CLASS_LINER] = undefined;
++            if(oColumn.editor && oColumn.editor.unsubscribeAll) { // Backward compatibility
++                oColumn.editor.unsubscribeAll();
++            }
++        }
++        
++        this._oColumnSet = null;
++        this._clearTrTemplateEl();
++    }
++    
++    if(lang.isArray(aColumnDefs)) {
++        this._oColumnSet =  new YAHOO.widget.ColumnSet(aColumnDefs);
++    }
++    // Backward compatibility
++    else if(aColumnDefs instanceof YAHOO.widget.ColumnSet) {
++        this._oColumnSet =  aColumnDefs;
++        YAHOO.log("DataTable's constructor now requires an array" +
++        " of object literal Column definitions instead of a ColumnSet instance",
++        "warn", this.toString());
++    }
++
++    // Register CellEditor Custom Events
++    var allKeys = this._oColumnSet.keys;
++    for(i=0, len=allKeys.length; i<len; i++) {
++        oColumn = allKeys[i];
++        if(oColumn.editor && oColumn.editor.subscribe) { // Backward incompatibility
++            oColumn.editor.subscribe("showEvent", this._onEditorShowEvent, this, true);
++            oColumn.editor.subscribe("keydownEvent", this._onEditorKeydownEvent, this, true);
++            oColumn.editor.subscribe("revertEvent", this._onEditorRevertEvent, this, true);
++            oColumn.editor.subscribe("saveEvent", this._onEditorSaveEvent, this, true);
++            oColumn.editor.subscribe("cancelEvent", this._onEditorCancelEvent, this, true);
++            oColumn.editor.subscribe("blurEvent", this._onEditorBlurEvent, this, true);
++            oColumn.editor.subscribe("blockEvent", this._onEditorBlockEvent, this, true);
++            oColumn.editor.subscribe("unblockEvent", this._onEditorUnblockEvent, this, true);
++        }
++    }
++},
++
++/**
++ * Initializes DataSource.
++ *
++ * @method _initDataSource
++ * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
++ * @private
++ */
++_initDataSource : function(oDataSource) {
++    this._oDataSource = null;
++    if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
++        this._oDataSource = oDataSource;
++    }
++    // Backward compatibility
++    else {
++        var tmpTable = null;
++        var tmpContainer = this._elContainer;
++        var i=0;
++        //TODO: this will break if re-initing DS at runtime for SDT
++        // Peek in container child nodes to see if TABLE already exists
++        if(tmpContainer.hasChildNodes()) {
++            var tmpChildren = tmpContainer.childNodes;
++            for(i=0; i<tmpChildren.length; i++) {
++                if(tmpChildren[i].nodeName && tmpChildren[i].nodeName.toLowerCase() == "table") {
++                    tmpTable = tmpChildren[i];
++                    break;
++                }
++            }
++            if(tmpTable) {
++                var tmpFieldsArray = [];
++                for(; i<this._oColumnSet.keys.length; i++) {
++                    tmpFieldsArray.push({key:this._oColumnSet.keys[i].key});
++                }
++
++                this._oDataSource = new DS(tmpTable);
++                this._oDataSource.responseType = DS.TYPE_HTMLTABLE;
++                this._oDataSource.responseSchema = {fields: tmpFieldsArray};
++                YAHOO.log("Null DataSource for progressive enhancement from" +
++                " markup has been deprecated", "warn", this.toString());
++            }
++        }
++    }
++},
++
++/**
++ * Initializes RecordSet.
++ *
++ * @method _initRecordSet
++ * @private
++ */
++_initRecordSet : function() {
++    if(this._oRecordSet) {
++        this._oRecordSet.reset();
++    }
++    else {
++        this._oRecordSet = new YAHOO.widget.RecordSet();
++    }
++},
++
++/**
++ * Initializes DOM elements.
++ *
++ * @method _initDomElements
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
++ * return {Boolean} False in case of error, otherwise true 
++ * @private
++ */
++_initDomElements : function(elContainer) {
++    // Outer container
++    this._initContainerEl(elContainer);
++    // TABLE
++    this._initTableEl(this._elContainer);
++    // COLGROUP
++    this._initColgroupEl(this._elTable);
++    // THEAD
++    this._initTheadEl(this._elTable);
++    
++    // Message TBODY
++    this._initMsgTbodyEl(this._elTable);  
++
++    // Primary TBODY
++    this._initTbodyEl(this._elTable);
++
++    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody) {
++        return false;
++    }
++    else {
++        return true;
++    }
++},
++
++/**
++ * Destroy's the DataTable outer container element, if available.
++ *
++ * @method _destroyContainerEl
++ * @param elContainer {HTMLElement} Reference to the container element. 
++ * @private
++ */
++_destroyContainerEl : function(elContainer) {
++    Dom.removeClass(elContainer, DT.CLASS_DATATABLE);
++    Ev.purgeElement(elContainer, true);
++    elContainer.innerHTML = "";
++    
++    this._elContainer = null;
++    this._elColgroup = null;
++    this._elThead = null;
++    this._elTbody = null;
++},
++
++/**
++ * Initializes the DataTable outer container element, including a mask.
++ *
++ * @method _initContainerEl
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
++ * @private
++ */
++_initContainerEl : function(elContainer) {
++    // Validate container
++    elContainer = Dom.get(elContainer);
++    
++    if(elContainer && elContainer.nodeName && (elContainer.nodeName.toLowerCase() == "div")) {
++        // Destroy previous
++        this._destroyContainerEl(elContainer);
++
++        Dom.addClass(elContainer, DT.CLASS_DATATABLE);
++        Ev.addListener(elContainer, "focus", this._onTableFocus, this);
++        Ev.addListener(elContainer, "dblclick", this._onTableDblclick, this);
++        this._elContainer = elContainer;
++        
++        var elMask = document.createElement("div");
++        elMask.className = DT.CLASS_MASK;
++        elMask.style.display = "none";
++        this._elMask = elContainer.appendChild(elMask);
++    }
++},
++
++/**
++ * Destroy's the DataTable TABLE element, if available.
++ *
++ * @method _destroyTableEl
++ * @private
++ */
++_destroyTableEl : function() {
++    var elTable = this._elTable;
++    if(elTable) {
++        Ev.purgeElement(elTable, true);
++        elTable.parentNode.removeChild(elTable);
++        this._elCaption = null;
++        this._elColgroup = null;
++        this._elThead = null;
++        this._elTbody = null;
++    }
++},
++
++/**
++ * Creates HTML markup CAPTION element.
++ *
++ * @method _initCaptionEl
++ * @param sCaption {String} Text for caption.
++ * @private
++ */
++_initCaptionEl : function(sCaption) {
++    if(this._elTable && sCaption) {
++        // Create CAPTION element
++        if(!this._elCaption) { 
++            this._elCaption = this._elTable.createCaption();
++        }
++        // Set CAPTION value
++        this._elCaption.innerHTML = sCaption;
++    }
++    else if(this._elCaption) {
++        this._elCaption.parentNode.removeChild(this._elCaption);
++    }
++},
++
++/**
++ * Creates HTML markup for TABLE, COLGROUP, THEAD and TBODY elements in outer
++ * container element.
++ *
++ * @method _initTableEl
++ * @param elContainer {HTMLElement} Container element into which to create TABLE.
++ * @private
++ */
++_initTableEl : function(elContainer) {
++    if(elContainer) {
++        // Destroy previous
++        this._destroyTableEl();
++    
++        // Create TABLE
++        this._elTable = elContainer.appendChild(document.createElement("table"));  
++         
++        // Set SUMMARY attribute
++        this._elTable.summary = this.get("summary");
++        
++        // Create CAPTION element
++        if(this.get("caption")) {
++            this._initCaptionEl(this.get("caption"));
++        }
++    } 
++},
++
++/**
++ * Destroy's the DataTable COLGROUP element, if available.
++ *
++ * @method _destroyColgroupEl
++ * @private
++ */
++_destroyColgroupEl : function() {
++    var elColgroup = this._elColgroup;
++    if(elColgroup) {
++        var elTable = elColgroup.parentNode;
++        Ev.purgeElement(elColgroup, true);
++        elTable.removeChild(elColgroup);
++        this._elColgroup = null;
++    }
++},
++
++/**
++ * Initializes COLGROUP and COL elements for managing minWidth.
++ *
++ * @method _initColgroupEl
++ * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
++ * @private
++ */
++_initColgroupEl : function(elTable) {
++    if(elTable) {
++        // Destroy previous
++        this._destroyColgroupEl();
++
++        // Add COLs to DOCUMENT FRAGMENT
++        var allCols = this._aColIds || [],
++            allKeys = this._oColumnSet.keys,
++            i = 0, len = allCols.length,
++            elCol, oColumn,
++            elFragment = document.createDocumentFragment(),
++            elColTemplate = document.createElement("col");
++    
++        for(i=0,len=allKeys.length; i<len; i++) {
++            oColumn = allKeys[i];
++            elCol = elFragment.appendChild(elColTemplate.cloneNode(false));
++        }
++    
++        // Create COLGROUP
++        var elColgroup = elTable.insertBefore(document.createElement("colgroup"), elTable.firstChild);
++        elColgroup.appendChild(elFragment);
++        this._elColgroup = elColgroup;
++    }
++},
++
++/**
++ * Adds a COL element to COLGROUP at given index.
++ *
++ * @method _insertColgroupColEl
++ * @param index {Number} Index of new COL element.
++ * @private
++ */
++_insertColgroupColEl : function(index) {
++    if(lang.isNumber(index)&& this._elColgroup) {
++        var nextSibling = this._elColgroup.childNodes[index] || null;
++        this._elColgroup.insertBefore(document.createElement("col"), nextSibling);
++    }
++},
++
++/**
++ * Removes a COL element to COLGROUP at given index.
++ *
++ * @method _removeColgroupColEl
++ * @param index {Number} Index of removed COL element.
++ * @private
++ */
++_removeColgroupColEl : function(index) {
++    if(lang.isNumber(index) && this._elColgroup && this._elColgroup.childNodes[index]) {
++        this._elColgroup.removeChild(this._elColgroup.childNodes[index]);
++    }
++},
++
++/**
++ * Reorders a COL element from old index(es) to new index.
++ *
++ * @method _reorderColgroupColEl
++ * @param aKeyIndexes {Number[]} Array of indexes of removed COL element.
++ * @param newIndex {Number} New index. 
++ * @private
++ */
++_reorderColgroupColEl : function(aKeyIndexes, newIndex) {
++    if(lang.isArray(aKeyIndexes) && lang.isNumber(newIndex) && this._elColgroup && (this._elColgroup.childNodes.length > aKeyIndexes[aKeyIndexes.length-1])) {
++        var i,
++            tmpCols = [];
++        // Remove COL
++        for(i=aKeyIndexes.length-1; i>-1; i--) {
++            tmpCols.push(this._elColgroup.removeChild(this._elColgroup.childNodes[aKeyIndexes[i]]));
++        }
++        // Insert COL
++        var nextSibling = this._elColgroup.childNodes[newIndex] || null;
++        for(i=tmpCols.length-1; i>-1; i--) {
++            this._elColgroup.insertBefore(tmpCols[i], nextSibling);
++        }
++    }
++},
++
++/**
++ * Destroy's the DataTable THEAD element, if available.
++ *
++ * @method _destroyTheadEl
++ * @private
++ */
++_destroyTheadEl : function() {
++    var elThead = this._elThead;
++    if(elThead) {
++        var elTable = elThead.parentNode;
++        Ev.purgeElement(elThead, true);
++        this._destroyColumnHelpers();
++        elTable.removeChild(elThead);
++        this._elThead = null;
++    }
++},
++
++/**
++ * Initializes THEAD element.
++ *
++ * @method _initTheadEl
++ * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
++ * @param {HTMLElement} Initialized THEAD element. 
++ * @private
++ */
++_initTheadEl : function(elTable) {
++    elTable = elTable || this._elTable;
++    
++    if(elTable) {
++        // Destroy previous
++        this._destroyTheadEl();
++    
++        //TODO: append to DOM later for performance
++        var elThead = (this._elColgroup) ?
++            elTable.insertBefore(document.createElement("thead"), this._elColgroup.nextSibling) :
++            elTable.appendChild(document.createElement("thead"));
++    
++        // Set up DOM events for THEAD
++        Ev.addListener(elThead, "focus", this._onTheadFocus, this);
++        Ev.addListener(elThead, "keydown", this._onTheadKeydown, this);
++        Ev.addListener(elThead, "mouseover", this._onTableMouseover, this);
++        Ev.addListener(elThead, "mouseout", this._onTableMouseout, this);
++        Ev.addListener(elThead, "mousedown", this._onTableMousedown, this);
++        Ev.addListener(elThead, "mouseup", this._onTableMouseup, this);
++        Ev.addListener(elThead, "click", this._onTheadClick, this);
++
++        // Since we can't listen for click and dblclick on the same element...
++        // Attach separately to THEAD and TBODY
++        ///Ev.addListener(elThead, "dblclick", this._onTableDblclick, this);
++        
++       var oColumnSet = this._oColumnSet,
++            oColumn, i,j, l;
++        
++        // Add TRs to the THEAD
++        var colTree = oColumnSet.tree;
++        var elTh;
++        for(i=0; i<colTree.length; i++) {
++            var elTheadTr = elThead.appendChild(document.createElement("tr"));
++    
++            // ...and create TH cells
++            for(j=0; j<colTree[i].length; j++) {
++                oColumn = colTree[i][j];
++                elTh = elTheadTr.appendChild(document.createElement("th"));
++                this._initThEl(elTh,oColumn);
++            }
++    
++                // Set FIRST/LAST on THEAD rows
++                if(i === 0) {
++                    Dom.addClass(elTheadTr, DT.CLASS_FIRST);
++                }
++                if(i === (colTree.length-1)) {
++                    Dom.addClass(elTheadTr, DT.CLASS_LAST);
++                }
++
++        }
++
++        // Set FIRST/LAST on edge TH elements using the values in ColumnSet headers array
++        var aFirstHeaders = oColumnSet.headers[0] || [];
++        for(i=0; i<aFirstHeaders.length; i++) {
++            Dom.addClass(Dom.get(this.getId() +"-th-"+aFirstHeaders[i]), DT.CLASS_FIRST);
++        }
++        var aLastHeaders = oColumnSet.headers[oColumnSet.headers.length-1] || [];
++        for(i=0; i<aLastHeaders.length; i++) {
++            Dom.addClass(Dom.get(this.getId() +"-th-"+aLastHeaders[i]), DT.CLASS_LAST);
++        }
++        
++        YAHOO.log("TH cells for " + this._oColumnSet.keys.length + " keys created","info",this.toString());
++
++        ///TODO: try _repaintGecko(this._elContainer) instead
++        // Bug 1806891
++        if(ua.webkit && ua.webkit < 420) {
++            var oSelf = this;
++            setTimeout(function() {
++                elThead.style.display = "";
++            },0);
++            elThead.style.display = 'none';
++        }
++        
++        this._elThead = elThead;
++        
++        // Column helpers needs _elThead to exist
++        this._initColumnHelpers();  
++    }
++},
++
++/**
++ * Populates TH element as defined by Column.
++ *
++ * @method _initThEl
++ * @param elTh {HTMLElement} TH element reference.
++ * @param oColumn {YAHOO.widget.Column} Column object.
++ * @private
++ */
++_initThEl : function(elTh, oColumn) {
++    elTh.id = this.getId() + "-th-" + oColumn.getSanitizedKey(); // Needed for accessibility, getColumn by TH, and ColumnDD
++    elTh.innerHTML = "";
++    elTh.rowSpan = oColumn.getRowspan();
++    elTh.colSpan = oColumn.getColspan();
++    oColumn._elTh = elTh;
++    
++    var elThLiner = elTh.appendChild(document.createElement("div"));
++    elThLiner.id = elTh.id + "-liner"; // Needed for resizer
++    elThLiner.className = DT.CLASS_LINER;
++    oColumn._elThLiner = elThLiner;
++    
++    var elThLabel = elThLiner.appendChild(document.createElement("span"));
++    elThLabel.className = DT.CLASS_LABEL;    
++
++    // Assign abbr attribute
++    if(oColumn.abbr) {
++        elTh.abbr = oColumn.abbr;
++    }
++    // Clear minWidth on hidden Columns
++    if(oColumn.hidden) {
++        this._clearMinWidth(oColumn);
++    }
++        
++    elTh.className = this._getColumnClassNames(oColumn);
++            
++    // Set Column width...
++    if(oColumn.width) {
++        // Validate minWidth
++        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
++                oColumn.minWidth : oColumn.width;
++        // ...for fallback cases
++        if(DT._bDynStylesFallback) {
++            elTh.firstChild.style.overflow = 'hidden';
++            elTh.firstChild.style.width = nWidth + 'px';        
++        }
++        // ...for non fallback cases
++        else {
++            this._setColumnWidthDynStyles(oColumn, nWidth + 'px', 'hidden');
++        }
++    }
++
++    this.formatTheadCell(elThLabel, oColumn, this.get("sortedBy"));
++    oColumn._elThLabel = elThLabel;
++},
++
++/**
++ * Outputs markup into the given TH based on given Column.
++ *
++ * @method DataTable.formatTheadCell
++ * @param elCellLabel {HTMLElement} The label SPAN element within the TH liner,
++ * not the liner DIV element.     
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param oSortedBy {Object} Sort state object literal.
++*/
++formatTheadCell : function(elCellLabel, oColumn, oSortedBy) {
++    var sKey = oColumn.getKey();
++    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
++
++    // Add accessibility link for sortable Columns
++    if(oColumn.sortable) {
++        // Calculate the direction
++        var sSortClass = this.getColumnSortDir(oColumn, oSortedBy);
++        var bDesc = (sSortClass === DT.CLASS_DESC);
++
++        // This is the sorted Column
++        if(oSortedBy && (oColumn.key === oSortedBy.key)) {
++            bDesc = !(oSortedBy.dir === DT.CLASS_DESC);
++        }
++
++        // Generate a unique HREF for visited status
++        var sHref = this.getId() + "-href-" + oColumn.getSanitizedKey();
++        
++        // Generate a dynamic TITLE for sort status
++        var sTitle = (bDesc) ? this.get("MSG_SORTDESC") : this.get("MSG_SORTASC");
++        
++        // Format the element
++        elCellLabel.innerHTML = "<a href=\"" + sHref + "\" title=\"" + sTitle + "\" class=\"" + DT.CLASS_SORTABLE + "\">" + sLabel + "</a>";
++    }
++    // Just display the label for non-sortable Columns
++    else {
++        elCellLabel.innerHTML = sLabel;
++    }
++},
++
++/**
++ * Disables DD from top-level Column TH elements.
++ *
++ * @method _destroyDraggableColumns
++ * @private
++ */
++_destroyDraggableColumns : function() {
++    var oColumn, elTh;
++    for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
++        oColumn = this._oColumnSet.tree[0][i];
++        if(oColumn._dd) {
++            oColumn._dd = oColumn._dd.unreg();
++            Dom.removeClass(oColumn.getThEl(), DT.CLASS_DRAGGABLE);       
++        }
++    }
++},
++
++/**
++ * Initializes top-level Column TH elements into DD instances.
++ *
++ * @method _initDraggableColumns
++ * @private
++ */
++_initDraggableColumns : function() {
++    this._destroyDraggableColumns();
++    if(util.DD) {
++        var oColumn, elTh, elDragTarget;
++        for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
++            oColumn = this._oColumnSet.tree[0][i];
++            elTh = oColumn.getThEl();
++            Dom.addClass(elTh, DT.CLASS_DRAGGABLE);
++            elDragTarget = DT._initColumnDragTargetEl();
++            oColumn._dd = new YAHOO.widget.ColumnDD(this, oColumn, elTh, elDragTarget);
++        }
++    }
++    else {
++        YAHOO.log("Could not find DragDrop for draggable Columns", "warn", this.toString());
++    }
++},
++
++/**
++ * Disables resizeability on key Column TH elements.
++ *
++ * @method _destroyResizeableColumns
++ * @private
++ */
++_destroyResizeableColumns : function() {
++    var aKeys = this._oColumnSet.keys;
++    for(var i=0, len=aKeys.length; i<len; i++) {
++        if(aKeys[i]._ddResizer) {
++            aKeys[i]._ddResizer = aKeys[i]._ddResizer.unreg();
++            Dom.removeClass(aKeys[i].getThEl(), DT.CLASS_RESIZEABLE);
++        }
++    }
++},
++
++/**
++ * Initializes resizeability on key Column TH elements.
++ *
++ * @method _initResizeableColumns
++ * @private
++ */
++_initResizeableColumns : function() {
++    this._destroyResizeableColumns();
++    if(util.DD) {
++        var oColumn, elTh, elThLiner, elThResizerLiner, elThResizer, elResizerProxy, cancelClick;
++        for(var i=0, len=this._oColumnSet.keys.length; i<len; i++) {
++            oColumn = this._oColumnSet.keys[i];
++            if(oColumn.resizeable) {
++                elTh = oColumn.getThEl();
++                Dom.addClass(elTh, DT.CLASS_RESIZEABLE);
++                elThLiner = oColumn.getThLinerEl();
++                
++                // Bug 1915349: So resizer is as tall as TH when rowspan > 1
++                // Create a separate resizer liner with position:relative
++                elThResizerLiner = elTh.appendChild(document.createElement("div"));
++                elThResizerLiner.className = DT.CLASS_RESIZERLINER;
++                
++                // Move TH contents into the new resizer liner
++                elThResizerLiner.appendChild(elThLiner);
++                
++                // Create the resizer
++                elThResizer = elThResizerLiner.appendChild(document.createElement("div"));
++                elThResizer.id = elTh.id + "-resizer"; // Needed for ColumnResizer
++                elThResizer.className = DT.CLASS_RESIZER;
++                oColumn._elResizer = elThResizer;
++
++                // Create the resizer proxy, once globally
++                elResizerProxy = DT._initColumnResizerProxyEl();
++                oColumn._ddResizer = new YAHOO.util.ColumnResizer(
++                        this, oColumn, elTh, elThResizer, elResizerProxy);
++                cancelClick = function(e) {
++                    Ev.stopPropagation(e);
++                };
++                Ev.addListener(elThResizer,"click",cancelClick);
++            }
++        }
++    }
++    else {
++        YAHOO.log("Could not find DragDrop for resizeable Columns", "warn", this.toString());
++    }
++},
++
++/**
++ * Destroys elements associated with Column functionality: ColumnDD and ColumnResizers.
++ *
++ * @method _destroyColumnHelpers
++ * @private
++ */
++_destroyColumnHelpers : function() {
++    this._destroyDraggableColumns();
++    this._destroyResizeableColumns();
++},
++
++/**
++ * Initializes elements associated with Column functionality: ColumnDD and ColumnResizers.
++ *
++ * @method _initColumnHelpers
++ * @private
++ */
++_initColumnHelpers : function() {
++    if(this.get("draggableColumns")) {
++        this._initDraggableColumns();
++    }
++    this._initResizeableColumns();
++},
++
++/**
++ * Destroy's the DataTable TBODY element, if available.
++ *
++ * @method _destroyTbodyEl
++ * @private
++ */
++_destroyTbodyEl : function() {
++    var elTbody = this._elTbody;
++    if(elTbody) {
++        var elTable = elTbody.parentNode;
++        Ev.purgeElement(elTbody, true);
++        elTable.removeChild(elTbody);
++        this._elTbody = null;
++    }
++},
++
++/**
++ * Initializes TBODY element for data.
++ *
++ * @method _initTbodyEl
++ * @param elTable {HTMLElement} TABLE element into which to create TBODY .
++ * @private
++ */
++_initTbodyEl : function(elTable) {
++    if(elTable) {
++        // Destroy previous
++        this._destroyTbodyEl();
++        
++        // Create TBODY
++        var elTbody = elTable.appendChild(document.createElement("tbody"));
++        elTbody.tabIndex = 0;
++        elTbody.className = DT.CLASS_DATA;
++    
++        // Set up DOM events for TBODY
++        Ev.addListener(elTbody, "focus", this._onTbodyFocus, this);
++        Ev.addListener(elTbody, "mouseover", this._onTableMouseover, this);
++        Ev.addListener(elTbody, "mouseout", this._onTableMouseout, this);
++        Ev.addListener(elTbody, "mousedown", this._onTableMousedown, this);
++        Ev.addListener(elTbody, "mouseup", this._onTableMouseup, this);
++        Ev.addListener(elTbody, "keydown", this._onTbodyKeydown, this);
++        Ev.addListener(elTbody, "keypress", this._onTableKeypress, this);
++        Ev.addListener(elTbody, "click", this._onTbodyClick, this);
++        
++        // Since we can't listen for click and dblclick on the same element...
++        // Attach separately to THEAD and TBODY
++        ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this);
++        
++    
++        // IE puts focus outline in the wrong place
++        if(ua.ie) {
++            elTbody.hideFocus=true;
++        }
++
++        this._elTbody = elTbody;
++    }
++},
++
++/**
++ * Destroy's the DataTable message TBODY element, if available.
++ *
++ * @method _destroyMsgTbodyEl
++ * @private
++ */
++_destroyMsgTbodyEl : function() {
++    var elMsgTbody = this._elMsgTbody;
++    if(elMsgTbody) {
++        var elTable = elMsgTbody.parentNode;
++        Ev.purgeElement(elMsgTbody, true);
++        elTable.removeChild(elMsgTbody);
++        this._elTbody = null;
++    }
++},
++
++/**
++ * Initializes TBODY element for messaging.
++ *
++ * @method _initMsgTbodyEl
++ * @param elTable {HTMLElement} TABLE element into which to create TBODY 
++ * @private
++ */
++_initMsgTbodyEl : function(elTable) {
++    if(elTable) {
++        var elMsgTbody = document.createElement("tbody");
++        elMsgTbody.className = DT.CLASS_MESSAGE;
++        var elMsgTr = elMsgTbody.appendChild(document.createElement("tr"));
++        elMsgTr.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
++        this._elMsgTr = elMsgTr;
++        var elMsgTd = elMsgTr.appendChild(document.createElement("td"));
++        elMsgTd.colSpan = this._oColumnSet.keys.length || 1;
++        elMsgTd.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
++        this._elMsgTd = elMsgTd;
++        elMsgTbody = elTable.insertBefore(elMsgTbody, this._elTbody);
++        var elMsgLiner = elMsgTd.appendChild(document.createElement("div"));
++        elMsgLiner.className = DT.CLASS_LINER;
++        this._elMsgTbody = elMsgTbody;
++
++        // Set up DOM events for TBODY
++        Ev.addListener(elMsgTbody, "focus", this._onTbodyFocus, this);
++        Ev.addListener(elMsgTbody, "mouseover", this._onTableMouseover, this);
++        Ev.addListener(elMsgTbody, "mouseout", this._onTableMouseout, this);
++        Ev.addListener(elMsgTbody, "mousedown", this._onTableMousedown, this);
++        Ev.addListener(elMsgTbody, "mouseup", this._onTableMouseup, this);
++        Ev.addListener(elMsgTbody, "keydown", this._onTbodyKeydown, this);
++        Ev.addListener(elMsgTbody, "keypress", this._onTableKeypress, this);
++        Ev.addListener(elMsgTbody, "click", this._onTbodyClick, this);
++    }
++},
++
++/**
++ * Initialize internal event listeners
++ *
++ * @method _initEvents
++ * @private
++ */
++_initEvents : function () {
++    // Initialize Column sort
++    this._initColumnSort();
++        
++    // Add the document level click listener
++    YAHOO.util.Event.addListener(document, "click", this._onDocumentClick, this);
++
++    // Paginator integration
++    this.subscribe("paginatorChange",function () {
++        this._handlePaginatorChange.apply(this,arguments);
++    });
++
++    this.subscribe("initEvent",function () {
++        this.renderPaginator();
++    });
++
++    // Initialize CellEditor integration
++    this._initCellEditing();
++},
++
++/** 	 
++  * Initializes Column sorting. 	 
++  * 	 
++  * @method _initColumnSort 	 
++  * @private 	 
++  */ 	 
++_initColumnSort : function() {
++    this.subscribe("theadCellClickEvent", this.onEventSortColumn); 	 
++
++    // Backward compatibility
++    var oSortedBy = this.get("sortedBy");
++    if(oSortedBy) {
++        if(oSortedBy.dir == "desc") {
++            this._configs.sortedBy.value.dir = DT.CLASS_DESC;
++        }
++        else if(oSortedBy.dir == "asc") {
++            this._configs.sortedBy.value.dir = DT.CLASS_ASC;
++        }
++    }
++},
++
++/** 	 
++  * Initializes CellEditor integration. 	 
++  * 	 
++  * @method _initCellEditing 	 
++  * @private 	 
++  */ 	 
++_initCellEditing : function() {
++    this.subscribe("editorBlurEvent",function () {
++        this.onEditorBlurEvent.apply(this,arguments);
++    });
++    this.subscribe("editorBlockEvent",function () {
++        this.onEditorBlockEvent.apply(this,arguments);
++    });
++    this.subscribe("editorUnblockEvent",function () {
++        this.onEditorUnblockEvent.apply(this,arguments);
++    });
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// DOM MUTATION FUNCTIONS
++
++/**
++ * Retruns classnames to represent current Column states.
++ * @method _getColumnClassnames 
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param aAddClasses {String[]} An array of additional classnames to add to the
++ * return value.  
++ * @return {String} A String of classnames to be assigned to TH or TD elements
++ * for given Column.  
++ * @private 
++ */
++_getColumnClassNames : function (oColumn, aAddClasses) {
++    var allClasses;
++    
++    // Add CSS classes
++    if(lang.isString(oColumn.className)) {
++        // Single custom class
++        allClasses = [oColumn.className];
++    }
++    else if(lang.isArray(oColumn.className)) {
++        // Array of custom classes
++        allClasses = oColumn.className;
++    }
++    else {
++        // no custom classes
++        allClasses = [];
++    }
++    
++    // Hook for setting width with via dynamic style uses key since ID is too disposable
++    allClasses[allClasses.length] = this.getId() + "-col-" +oColumn.getSanitizedKey();
++
++    // Column key - minus any chars other than "A-Z", "a-z", "0-9", "_", "-", ".", or ":"
++    allClasses[allClasses.length] = "yui-dt-col-" +oColumn.getSanitizedKey();
++
++    var isSortedBy = this.get("sortedBy") || {};
++    // Sorted
++    if(oColumn.key === isSortedBy.key) {
++        allClasses[allClasses.length] = isSortedBy.dir || '';
++    }
++    // Hidden
++    if(oColumn.hidden) {
++        allClasses[allClasses.length] = DT.CLASS_HIDDEN;
++    }
++    // Selected
++    if(oColumn.selected) {
++        allClasses[allClasses.length] = DT.CLASS_SELECTED;
++    }
++    // Sortable
++    if(oColumn.sortable) {
++        allClasses[allClasses.length] = DT.CLASS_SORTABLE;
++    }
++    // Resizeable
++    if(oColumn.resizeable) {
++        allClasses[allClasses.length] = DT.CLASS_RESIZEABLE;
++    }
++    // Editable
++    if(oColumn.editor) {
++        allClasses[allClasses.length] = DT.CLASS_EDITABLE;
++    }
++    
++    // Addtnl classes, including First/Last
++    if(aAddClasses) {
++        allClasses = allClasses.concat(aAddClasses);
++    }
++    
++    return allClasses.join(' ');  
++},
++
++/**
++ * Clears TR element template in response to any Column state change.
++ * @method _clearTrTemplateEl
++ * @private 
++ */
++_clearTrTemplateEl : function () {
++    this._elTrTemplate = null;
++},
++
++/**
++ * Returns a new TR element template with TD elements classed with current
++ * Column states.
++ * @method _getTrTemplateEl 
++ * @return {HTMLElement} A TR element to be cloned and added to the DOM.
++ * @private 
++ */
++_getTrTemplateEl : function (oRecord, index) {
++    // Template is already available
++    if(this._elTrTemplate) {
++        return this._elTrTemplate;
++    }
++    // Template needs to be created
++    else {
++        var d   = document,
++            tr  = d.createElement('tr'),
++            td  = d.createElement('td'),
++            div = d.createElement('div');
++    
++        // Append the liner element
++        td.appendChild(div);
++
++        // Create TD elements into DOCUMENT FRAGMENT
++        var df = document.createDocumentFragment(),
++            allKeys = this._oColumnSet.keys,
++            elTd;
++
++        // Set state for each TD;
++        var aAddClasses;
++        for(var i=0, keysLen=allKeys.length; i<keysLen; i++) {
++            // Clone the TD template
++            elTd = td.cloneNode(true);
++
++            // Format the base TD
++            elTd = this._formatTdEl(allKeys[i], elTd, i, (i===keysLen-1));
++                        
++            df.appendChild(elTd);
++        }
++        tr.appendChild(df);
++        this._elTrTemplate = tr;
++        return tr;
++    }   
++},
++
++/**
++ * Formats a basic TD element.
++ * @method _formatTdEl 
++ * @param oColumn {YAHOO.widget.Column} Associated Column instance. 
++ * @param elTd {HTMLElement} An unformatted TD element.
++ * @param index {Number} Column key index. 
++ * @param isLast {Boolean} True if Column is last key of the ColumnSet.
++ * @return {HTMLElement} A formatted TD element.
++ * @private 
++ */
++_formatTdEl : function (oColumn, elTd, index, isLast) {
++    var oColumnSet = this._oColumnSet;
++    
++    // Set the TD's accessibility headers
++    var allHeaders = oColumnSet.headers,
++        allColHeaders = allHeaders[index],
++        sTdHeaders = "",
++        sHeader;
++    for(var j=0, headersLen=allColHeaders.length; j < headersLen; j++) {
++        sHeader = this._sId + "-th-" + allColHeaders[j] + ' ';
++        sTdHeaders += sHeader;
++    }
++    elTd.headers = sTdHeaders;
++    
++    // Class the TD element
++    var aAddClasses = [];
++    if(index === 0) {
++        aAddClasses[aAddClasses.length] = DT.CLASS_FIRST;
++    }
++    if(isLast) {
++        aAddClasses[aAddClasses.length] = DT.CLASS_LAST;
++    }
++    elTd.className = this._getColumnClassNames(oColumn, aAddClasses);
++
++    // Class the liner element
++    elTd.firstChild.className = DT.CLASS_LINER;
++
++    // Set Column width for fallback cases
++    if(oColumn.width && DT._bDynStylesFallback) {
++        // Validate minWidth
++        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
++                oColumn.minWidth : oColumn.width;
++        elTd.firstChild.style.overflow = 'hidden';
++        elTd.firstChild.style.width = nWidth + 'px';
++    }
++    
++    return elTd;
++},
++
++
++/**
++ * Create a new TR element for a given Record and appends it with the correct
++ * number of Column-state-classed TD elements. Striping is the responsibility of
++ * the calling function, which may decide to stripe the single row, a subset of
++ * rows, or all the rows.
++ * @method _createTrEl
++ * @param oRecord {YAHOO.widget.Record} Record instance
++ * @return {HTMLElement} The new TR element.  This must be added to the DOM.
++ * @private 
++ */
++_addTrEl : function (oRecord) {
++    var elTrTemplate = this._getTrTemplateEl();
++    
++    // Clone the TR template.
++    var elTr = elTrTemplate.cloneNode(true);
++    
++    // Populate content
++    return this._updateTrEl(elTr,oRecord);
++},
++
++/**
++ * Formats the contents of the given TR's TD elements with data from the given
++ * Record. Only innerHTML should change, nothing structural.
++ *
++ * @method _updateTrEl
++ * @param elTr {HTMLElement} The TR element to update.
++ * @param oRecord {YAHOO.widget.Record} The associated Record instance.
++ * @return {HTMLElement} DOM reference to the new TR element.
++ * @private
++ */
++_updateTrEl : function(elTr, oRecord) {
++    var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true;
++    if(ok) {
++        // Hide the row to prevent constant reflows
++        elTr.style.display = 'none';
++        
++        // Update TD elements with new data
++        var allTds = elTr.childNodes,
++            elTd;
++        for(var i=0,len=allTds.length; i<len; ++i) {
++            elTd = allTds[i];
++            
++            // Set the cell content
++            this.formatCell(allTds[i].firstChild, oRecord, this._oColumnSet.keys[i]);
++        }
++        
++        // Redisplay the row for reflow
++        elTr.style.display = '';
++    }
++    
++    elTr.id = oRecord.getId(); // Needed for Record association and tracking of FIRST/LAST
++    return elTr;
++},
++
++
++/**
++ * Deletes TR element by DOM reference or by DataTable page row index.
++ *
++ * @method _deleteTrEl
++ * @param row {HTMLElement | Number} TR element reference or Datatable page row index.
++ * @return {Boolean} Returns true if successful, else returns false.
++ * @private
++ */
++_deleteTrEl : function(row) {
++    var rowIndex;
++
++    // Get page row index for the element
++    if(!lang.isNumber(row)) {
++        rowIndex = Dom.get(row).sectionRowIndex;
++    }
++    else {
++        rowIndex = row;
++    }
++    if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
++        // Cannot use tbody.deleteRow due to IE6 instability
++        //return this._elTbody.deleteRow(rowIndex);
++        return this._elTbody.removeChild(this.getTrEl(row));
++    }
++    else {
++        return null;
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// CSS/STATE FUNCTIONS
++
++
++
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_FIRST from the first TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _unsetFirstRow
++ * @private
++ */
++_unsetFirstRow : function() {
++    // Remove FIRST
++    if(this._sFirstTrId) {
++        Dom.removeClass(this._sFirstTrId, DT.CLASS_FIRST);
++        this._sFirstTrId = null;
++    }
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_FIRST to the first TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _setFirstRow
++ * @private
++ */
++_setFirstRow : function() {
++    this._unsetFirstRow();
++    var elTr = this.getFirstTrEl();
++    if(elTr) {
++        // Set FIRST
++        Dom.addClass(elTr, DT.CLASS_FIRST);
++        this._sFirstTrId = elTr.id;
++    }
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_LAST from the last TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _unsetLastRow
++ * @private
++ */
++_unsetLastRow : function() {
++    // Unassign previous class
++    if(this._sLastTrId) {
++        Dom.removeClass(this._sLastTrId, DT.CLASS_LAST);
++        this._sLastTrId = null;
++    }   
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_LAST to the last TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _setLastRow
++ * @private
++ */
++_setLastRow : function() {
++    this._unsetLastRow();
++    var elTr = this.getLastTrEl();
++    if(elTr) {
++        // Assign class
++        Dom.addClass(elTr, DT.CLASS_LAST);
++        this._sLastTrId = elTr.id;
++    }
++},
++
++/**
++ * Assigns the classes DT.CLASS_EVEN and DT.CLASS_ODD to one, many, or all TR elements.
++ *
++ * @method _setRowStripes
++ * @param row {HTMLElement | String | Number} (optional) HTML TR element reference
++ * or string ID, or page row index of where to start striping.
++ * @param range {Number} (optional) If given, how many rows to stripe, otherwise
++ * stripe all the rows until the end.
++ * @private
++ */
++_setRowStripes : function(row, range) {
++    // Default values stripe all rows
++    var allRows = this._elTbody.rows,
++        nStartIndex = 0,
++        nEndIndex = allRows.length,
++        aOdds = [], nOddIdx = 0,
++        aEvens = [], nEvenIdx = 0;
++
++    // Stripe a subset
++    if((row !== null) && (row !== undefined)) {
++        // Validate given start row
++        var elStartRow = this.getTrEl(row);
++        if(elStartRow) {
++            nStartIndex = elStartRow.sectionRowIndex;
++
++            // Validate given range
++            if(lang.isNumber(range) && (range > 1)) {
++                nEndIndex = nStartIndex + range;
++            }
++        }
++    }
++
++    for(var i=nStartIndex; i<nEndIndex; i++) {
++        if(i%2) {
++            aOdds[nOddIdx++] = allRows[i];
++        } else {
++            aEvens[nEvenIdx++] = allRows[i];
++        }
++    }
++
++    if (aOdds.length) {
++        Dom.replaceClass(aOdds, DT.CLASS_EVEN, DT.CLASS_ODD);
++    }
++
++    if (aEvens.length) {
++        Dom.replaceClass(aEvens, DT.CLASS_ODD, DT.CLASS_EVEN);
++    }
++},
++
++/**
++ * Assigns the class DT.CLASS_SELECTED to TR and TD elements.
++ *
++ * @method _setSelections
++ * @private
++ */
++_setSelections : function() {
++    // Keep track of selected rows
++    var allSelectedRows = this.getSelectedRows();
++    // Keep track of selected cells
++    var allSelectedCells = this.getSelectedCells();
++    // Anything to select?
++    if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) {
++        var oColumnSet = this._oColumnSet,
++            el;
++        // Loop over each row
++        for(var i=0; i<allSelectedRows.length; i++) {
++            el = Dom.get(allSelectedRows[i]);
++            if(el) {
++                Dom.addClass(el, DT.CLASS_SELECTED);
++            }
++        }
++        // Loop over each cell
++        for(i=0; i<allSelectedCells.length; i++) {
++            el = Dom.get(allSelectedCells[i].recordId);
++            if(el) {
++                Dom.addClass(el.childNodes[oColumnSet.getColumn(allSelectedCells[i].columnKey).getKeyIndex()], DT.CLASS_SELECTED);
++            }
++        }
++    }       
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private DOM Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Validates minWidths whenever the render chain ends.
++ *
++ * @method _onRenderChainEnd
++ * @private
++ */
++_onRenderChainEnd : function() {
++    // Hide loading message
++    this.hideTableMessage();
++    
++    // Show empty message
++    if(this._elTbody.rows.length === 0) {
++        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);        
++    }
++
++    // Execute in timeout thread to give implementers a chance
++    // to subscribe after the constructor
++    var oSelf = this;
++    setTimeout(function() {
++        if((oSelf instanceof DT) && oSelf._sId) {        
++            // Init event
++            if(oSelf._bInit) {
++                oSelf._bInit = false;
++                oSelf.fireEvent("initEvent");
++            }
++    
++            // Render event
++            oSelf.fireEvent("renderEvent");
++            // Backward compatibility
++            oSelf.fireEvent("refreshEvent");
++            YAHOO.log("DataTable rendered", "info", oSelf.toString());
++    
++            // Post-render routine
++            oSelf.validateColumnWidths();
++    
++            // Post-render event
++            oSelf.fireEvent("postRenderEvent");
++            
++            /*if(YAHOO.example.Performance.trialStart) {
++                YAHOO.log((new Date()).getTime() - YAHOO.example.Performance.trialStart.getTime() + " ms", "time");
++                YAHOO.example.Performance.trialStart = null;
++            }*/
++            
++            YAHOO.log("Post-render routine executed", "info", oSelf.toString());
++        }
++    }, 0);
++},
++
++/**
++ * Handles click events on the DOCUMENT.
++ *
++ * @method _onDocumentClick
++ * @param e {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onDocumentClick : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++
++    if(!Dom.isAncestor(oSelf._elContainer, elTarget)) {
++        oSelf.fireEvent("tableBlurEvent");
++
++        // Fires editorBlurEvent when click is not within the TABLE.
++        // For cases when click is within the TABLE, due to timing issues,
++        // the editorBlurEvent needs to get fired by the lower-level DOM click
++        // handlers below rather than by the TABLE click handler directly.
++        if(oSelf._oCellEditor) {
++            if(oSelf._oCellEditor.getContainerEl) {
++                var elContainer = oSelf._oCellEditor.getContainerEl();
++                // Only if the click was not within the CellEditor container
++                if(!Dom.isAncestor(elContainer, elTarget) &&
++                        (elContainer.id !== elTarget.id)) {
++                    oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++                }
++            }
++            // Backward Compatibility
++            else if(oSelf._oCellEditor.isActive) {
++                // Only if the click was not within the Cell Editor container
++                if(!Dom.isAncestor(oSelf._oCellEditor.container, elTarget) &&
++                        (oSelf._oCellEditor.container.id !== elTarget.id)) {
++                    oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Handles focus events on the DataTable instance.
++ *
++ * @method _onTableFocus
++ * @param e {HTMLEvent} The focus event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableFocus : function(e, oSelf) {
++    oSelf.fireEvent("tableFocusEvent");
++},
++
++/**
++ * Handles focus events on the THEAD element.
++ *
++ * @method _onTheadFocus
++ * @param e {HTMLEvent} The focus event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTheadFocus : function(e, oSelf) {
++    oSelf.fireEvent("theadFocusEvent");
++    oSelf.fireEvent("tableFocusEvent");
++},
++
++/**
++ * Handles focus events on the TBODY element.
++ *
++ * @method _onTbodyFocus
++ * @param e {HTMLEvent} The focus event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTbodyFocus : function(e, oSelf) {
++    oSelf.fireEvent("tbodyFocusEvent");
++    oSelf.fireEvent("tableFocusEvent");
++},
++
++/**
++ * Handles mouseover events on the DataTable instance.
++ *
++ * @method _onTableMouseover
++ * @param e {HTMLEvent} The mouseover event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMouseover : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++        var elTag = elTarget.nodeName.toLowerCase();
++        var bKeepBubbling = true;
++        while(elTarget && (elTag != "table")) {
++            switch(elTag) {
++                case "body":
++                     return;
++                case "a":
++                    break;
++                case "td":
++                    bKeepBubbling = oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e});
++                    break;
++                case "span":
++                    if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                        bKeepBubbling = oSelf.fireEvent("theadLabelMouseoverEvent",{target:elTarget,event:e});
++                        // Backward compatibility
++                        bKeepBubbling = oSelf.fireEvent("headerLabelMouseoverEvent",{target:elTarget,event:e});
++                    }
++                    break;
++                case "th":
++                    bKeepBubbling = oSelf.fireEvent("theadCellMouseoverEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerCellMouseoverEvent",{target:elTarget,event:e});
++                    break;
++                case "tr":
++                    if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                        bKeepBubbling = oSelf.fireEvent("theadRowMouseoverEvent",{target:elTarget,event:e});
++                        // Backward compatibility
++                        bKeepBubbling = oSelf.fireEvent("headerRowMouseoverEvent",{target:elTarget,event:e});
++                    }
++                    else {
++                        bKeepBubbling = oSelf.fireEvent("rowMouseoverEvent",{target:elTarget,event:e});
++                    }
++                    break;
++                default:
++                    break;
++            }
++            if(bKeepBubbling === false) {
++                return;
++            }
++            else {
++                elTarget = elTarget.parentNode;
++                if(elTarget) {
++                    elTag = elTarget.nodeName.toLowerCase();
++                }
++            }
++        }
++        oSelf.fireEvent("tableMouseoverEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles mouseout events on the DataTable instance.
++ *
++ * @method _onTableMouseout
++ * @param e {HTMLEvent} The mouseout event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMouseout : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "a":
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseoutEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseoutEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellMouseoutEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellMouseoutEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowMouseoutEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowMouseoutEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowMouseoutEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableMouseoutEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles mousedown events on the DataTable instance.
++ *
++ * @method _onTableMousedown
++ * @param e {HTMLEvent} The mousedown event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMousedown : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "a":
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelMousedownEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelMousedownEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellMousedownEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellMousedownEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowMousedownEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowMousedownEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowMousedownEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableMousedownEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles mouseup events on the DataTable instance.
++ *
++ * @method _onTableMouseup
++ * @param e {HTMLEvent} The mouseup event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMouseup : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "a":
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellMouseupEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseupEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseupEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellMouseupEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellMouseupEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowMouseupEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowMouseupEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowMouseupEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableMouseupEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles dblclick events on the DataTable instance.
++ *
++ * @method _onTableDblclick
++ * @param e {HTMLEvent} The dblclick event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableDblclick : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellDblclickEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelDblclickEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelDblclickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellDblclickEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellDblclickEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowDblclickEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowDblclickEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowDblclickEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableDblclickEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++/**
++ * Handles keydown events on the THEAD element.
++ *
++ * @method _onTheadKeydown
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTheadKeydown : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++            case "textarea":
++                // TODO: implement textareaKeyEvent
++                break;
++            case "thead":
++                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles keydown events on the TBODY element. Handles selection behavior,
++ * provides hooks for ENTER to edit functionality.
++ *
++ * @method _onTbodyKeydown
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTbodyKeydown : function(e, oSelf) {
++    var sMode = oSelf.get("selectionMode");
++
++    if(sMode == "standard") {
++        oSelf._handleStandardSelectionByKey(e);
++    }
++    else if(sMode == "single") {
++        oSelf._handleSingleSelectionByKey(e);
++    }
++    else if(sMode == "cellblock") {
++        oSelf._handleCellBlockSelectionByKey(e);
++    }
++    else if(sMode == "cellrange") {
++        oSelf._handleCellRangeSelectionByKey(e);
++    }
++    else if(sMode == "singlecell") {
++        oSelf._handleSingleCellSelectionByKey(e);
++    }
++    
++    if(oSelf._oCellEditor) {
++        if(oSelf._oCellEditor.fireEvent) {
++            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++        }
++        else if(oSelf._oCellEditor.isActive) {
++            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        }
++    }
++
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "tbody":
++                bKeepBubbling = oSelf.fireEvent("tbodyKeyEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles keypress events on the TABLE. Mainly to support stopEvent on Mac.
++ *
++ * @method _onTableKeypress
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableKeypress : function(e, oSelf) {
++    if(ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") !== -1) && (ua.webkit < 420)) {
++        var nKey = Ev.getCharCode(e);
++        // arrow down
++        if(nKey == 40) {
++            Ev.stopEvent(e);
++        }
++        // arrow up
++        else if(nKey == 38) {
++            Ev.stopEvent(e);
++        }
++    }
++},
++
++/**
++ * Handles click events on the THEAD element.
++ *
++ * @method _onTheadClick
++ * @param e {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTheadClick : function(e, oSelf) {
++    // This blurs the CellEditor
++    if(oSelf._oCellEditor) {
++        if(oSelf._oCellEditor.fireEvent) {
++            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++        }
++        // Backward compatibility
++        else if(oSelf._oCellEditor.isActive) {
++            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        }
++    }
++
++    var elTarget = Ev.getTarget(e),
++        elTag = elTarget.nodeName.toLowerCase(),
++        bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++                var sType = elTarget.type.toLowerCase();
++                if(sType == "checkbox") {
++                    bKeepBubbling = oSelf.fireEvent("theadCheckboxClickEvent",{target:elTarget,event:e});
++                }
++                else if(sType == "radio") {
++                    bKeepBubbling = oSelf.fireEvent("theadRadioClickEvent",{target:elTarget,event:e});
++                }
++                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
++                    bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "a":
++                bKeepBubbling = oSelf.fireEvent("theadLinkClickEvent",{target:elTarget,event:e});
++                break;
++            case "button":
++                bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelClickEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelClickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellClickEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellClickEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                bKeepBubbling = oSelf.fireEvent("theadRowClickEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerRowClickEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles click events on the primary TBODY element.
++ *
++ * @method _onTbodyClick
++ * @param e {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTbodyClick : function(e, oSelf) {
++    // This blurs the CellEditor
++    if(oSelf._oCellEditor) {
++        if(oSelf._oCellEditor.fireEvent) {
++            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++        }
++        else if(oSelf._oCellEditor.isActive) {
++            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        }
++    }
++
++    // Fire Custom Events
++    var elTarget = Ev.getTarget(e),
++        elTag = elTarget.nodeName.toLowerCase(),
++        bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++                var sType = elTarget.type.toLowerCase();
++                if(sType == "checkbox") {
++                    bKeepBubbling = oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e});
++                }
++                else if(sType == "radio") {
++                    bKeepBubbling = oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e});
++                }
++                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
++                    bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "a":
++                bKeepBubbling = oSelf.fireEvent("linkClickEvent",{target:elTarget,event:e});
++                break;
++            case "button":
++                bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                bKeepBubbling = oSelf.fireEvent("rowClickEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles change events on SELECT elements within DataTable.
++ *
++ * @method _onDropdownChange
++ * @param e {HTMLEvent} The change event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onDropdownChange : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    oSelf.fireEvent("dropdownChangeEvent", {event:e, target:elTarget});
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Returns object literal of initial configs.
++ *
++ * @property configs
++ * @type Object
++ * @default {} 
++ */
++configs: null,
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Returns unique id assigned to instance, which is a useful prefix for
++ * generating unique DOM ID strings.
++ *
++ * @method getId
++ * @return {String} Unique ID of the DataSource instance.
++ */
++getId : function() {
++    return this._sId;
++},
++
++/**
++ * DataSource instance name, for logging.
++ *
++ * @method toString
++ * @return {String} Unique name of the DataSource instance.
++ */
++
++toString : function() {
++    return "DataTable instance " + this._sId;
++},
++
++/**
++ * Returns the DataTable instance's DataSource instance.
++ *
++ * @method getDataSource
++ * @return {YAHOO.util.DataSource} DataSource instance.
++ */
++getDataSource : function() {
++    return this._oDataSource;
++},
++
++/**
++ * Returns the DataTable instance's ColumnSet instance.
++ *
++ * @method getColumnSet
++ * @return {YAHOO.widget.ColumnSet} ColumnSet instance.
++ */
++getColumnSet : function() {
++    return this._oColumnSet;
++},
++
++/**
++ * Returns the DataTable instance's RecordSet instance.
++ *
++ * @method getRecordSet
++ * @return {YAHOO.widget.RecordSet} RecordSet instance.
++ */
++getRecordSet : function() {
++    return this._oRecordSet;
++},
++
++/**
++ * Returns on object literal representing the DataTable instance's current
++ * state with the following properties:
++ * <dl>
++ * <dt>pagination</dt>
++ * <dd>Instance of YAHOO.widget.Paginator</dd>
++ *
++ * <dt>sortedBy</dt>
++ * <dd>
++ *     <dl>
++ *         <dt>sortedBy.key</dt>
++ *         <dd>{String} Key of sorted Column</dd>
++ *         <dt>sortedBy.dir</dt>
++ *         <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
++ *     </dl>
++ * </dd>
++ *
++ * <dt>selectedRows</dt>
++ * <dd>Array of selected rows by Record ID.</dd>
++ *
++ * <dt>selectedCells</dt>
++ * <dd>Selected cells as an array of object literals:
++ *     {recordId:sRecordId, columnKey:sColumnKey}</dd>
++ * </dl>
++ *  
++ * @method getState
++ * @return {Object} DataTable instance state object literal values.
++ */
++getState : function() {
++    return {
++        totalRecords: this.get('paginator') ? this.get('paginator').get("totalRecords") : this._oRecordSet.getLength(),
++        pagination: this.get("paginator") ? this.get("paginator").getState() : null,
++        sortedBy: this.get("sortedBy"),
++        selectedRows: this.getSelectedRows(),
++        selectedCells: this.getSelectedCells()
++    };
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// DOM ACCESSORS
++
++/**
++ * Returns DOM reference to the DataTable's container element.
++ *
++ * @method getContainerEl
++ * @return {HTMLElement} Reference to DIV element.
++ */
++getContainerEl : function() {
++    return this._elContainer;
++},
++
++/**
++ * Returns DOM reference to the DataTable's TABLE element.
++ *
++ * @method getTableEl
++ * @return {HTMLElement} Reference to TABLE element.
++ */
++getTableEl : function() {
++    return this._elTable;
++},
++
++/**
++ * Returns DOM reference to the DataTable's THEAD element.
++ *
++ * @method getTheadEl
++ * @return {HTMLElement} Reference to THEAD element.
++ */
++getTheadEl : function() {
++    return this._elThead;
++},
++
++/**
++ * Returns DOM reference to the DataTable's primary TBODY element.
++ *
++ * @method getTbodyEl
++ * @return {HTMLElement} Reference to TBODY element.
++ */
++getTbodyEl : function() {
++    return this._elTbody;
++},
++
++/**
++ * Returns DOM reference to the DataTable's secondary TBODY element that is
++ * used to display messages.
++ *
++ * @method getMsgTbodyEl
++ * @return {HTMLElement} Reference to TBODY element.
++ */
++getMsgTbodyEl : function() {
++    return this._elMsgTbody;
++},
++
++/**
++ * Returns DOM reference to the TD element within the secondary TBODY that is
++ * used to display messages.
++ *
++ * @method getMsgTdEl
++ * @return {HTMLElement} Reference to TD element.
++ */
++getMsgTdEl : function() {
++    return this._elMsgTd;
++},
++
++/**
++ * Returns the corresponding TR reference for a given DOM element, ID string or
++ * directly page row index. If the given identifier is a child of a TR element,
++ * then DOM tree is traversed until a parent TR element is returned, otherwise
++ * null.
++ *
++ * @method getTrEl
++ * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Which row to
++ * get: by element reference, ID string, page row index, or Record.
++ * @return {HTMLElement} Reference to TR element, or null.
++ */
++getTrEl : function(row) {
++    // By Record
++    if(row instanceof YAHOO.widget.Record) {
++        return document.getElementById(row.getId());
++    }
++    // By page row index
++    else if(lang.isNumber(row)) {
++        var allRows = this._elTbody.rows;
++        return ((row > -1) && (row < allRows.length)) ? allRows[row] : null;
++    }
++    // By ID string or element reference
++    else {
++        var elRow = (lang.isString(row)) ? document.getElementById(row) : row;
++
++        // Validate HTML element
++        if(elRow && (elRow.ownerDocument == document)) {
++            // Validate TR element
++            if(elRow.nodeName.toLowerCase() != "tr") {
++                // Traverse up the DOM to find the corresponding TR element
++                elRow = Dom.getAncestorByTagName(elRow,"tr");
++            }
++
++            return elRow;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns DOM reference to the first TR element in the DataTable page, or null.
++ *
++ * @method getFirstTrEl
++ * @return {HTMLElement} Reference to TR element.
++ */
++getFirstTrEl : function() {
++    return this._elTbody.rows[0] || null;
++},
++
++/**
++ * Returns DOM reference to the last TR element in the DataTable page, or null.
++ *
++ * @method getLastTrEl
++ * @return {HTMLElement} Reference to last TR element.
++ */
++getLastTrEl : function() {
++    var allRows = this._elTbody.rows;
++        if(allRows.length > 0) {
++            return allRows[allRows.length-1] || null;
++        }
++},
++
++/**
++ * Returns DOM reference to the next TR element from the given TR element, or null.
++ *
++ * @method getNextTrEl
++ * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
++ * reference, ID string, page row index, or Record from which to get next TR element.
++ * @return {HTMLElement} Reference to next TR element.
++ */
++getNextTrEl : function(row) {
++    var nThisTrIndex = this.getTrIndex(row);
++    if(nThisTrIndex !== null) {
++        var allRows = this._elTbody.rows;
++        if(nThisTrIndex < allRows.length-1) {
++            return allRows[nThisTrIndex+1];
++        }
++    }
++
++    YAHOO.log("Could not get next TR element for row " + row, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to the previous TR element from the given TR element, or null.
++ *
++ * @method getPreviousTrEl
++ * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
++ * reference, ID string, page row index, or Record from which to get previous TR element.
++ * @return {HTMLElement} Reference to previous TR element.
++ */
++getPreviousTrEl : function(row) {
++    var nThisTrIndex = this.getTrIndex(row);
++    if(nThisTrIndex !== null) {
++        var allRows = this._elTbody.rows;
++        if(nThisTrIndex > 0) {
++            return allRows[nThisTrIndex-1];
++        }
++    }
++
++    YAHOO.log("Could not get previous TR element for row " + row, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to a TD liner element.
++ *
++ * @method getTdLinerEl
++ * @param cell {HTMLElement | Object} TD element or child of a TD element, or
++ * object literal of syntax {record:oRecord, column:oColumn}.
++ * @return {HTMLElement} Reference to TD liner element.
++ */
++getTdLinerEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    return elCell.firstChild || null;
++},
++
++/**
++ * Returns DOM reference to a TD element.
++ *
++ * @method getTdEl
++ * @param cell {HTMLElement | String | Object} TD element or child of a TD element, or
++ * object literal of syntax {record:oRecord, column:oColumn}.
++ * @return {HTMLElement} Reference to TD element.
++ */
++getTdEl : function(cell) {
++    var elCell;
++    var el = Dom.get(cell);
++
++    // Validate HTML element
++    if(el && (el.ownerDocument == document)) {
++        // Validate TD element
++        if(el.nodeName.toLowerCase() != "td") {
++            // Traverse up the DOM to find the corresponding TR element
++            elCell = Dom.getAncestorByTagName(el, "td");
++        }
++        else {
++            elCell = el;
++        }
++        
++        // Make sure the TD is in this TBODY
++        // Bug 2527707 and bug 2263558
++        if(elCell && ((elCell.parentNode.parentNode == this._elTbody) || (elCell.parentNode.parentNode === null))) {
++            // Now we can return the TD element
++            return elCell;
++        }
++    }
++    else if(cell) {
++        var oRecord, nColKeyIndex;
++
++        if(lang.isString(cell.columnKey) && lang.isString(cell.recordId)) {
++            oRecord = this.getRecord(cell.recordId);
++            var oColumn = this.getColumn(cell.columnKey);
++            if(oColumn) {
++                nColKeyIndex = oColumn.getKeyIndex();
++            }
++
++        }
++        if(cell.record && cell.column && cell.column.getKeyIndex) {
++            oRecord = cell.record;
++            nColKeyIndex = cell.column.getKeyIndex();
++        }
++        var elRow = this.getTrEl(oRecord);
++        if((nColKeyIndex !== null) && elRow && elRow.cells && elRow.cells.length > 0) {
++            return elRow.cells[nColKeyIndex] || null;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns DOM reference to the first TD element in the DataTable page (by default),
++ * the first TD element of the optionally given row, or null.
++ *
++ * @method getFirstTdEl
++ * @param row {HTMLElement} (optional) row from which to get first TD
++ * @return {HTMLElement} Reference to TD element.
++ */
++getFirstTdEl : function(row) {
++    var elRow = this.getTrEl(row) || this.getFirstTrEl();
++    if(elRow && (elRow.cells.length > 0)) {
++        return elRow.cells[0];
++    }
++    YAHOO.log("Could not get first TD element for row " + elRow, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to the last TD element in the DataTable page (by default),
++ * the first TD element of the optionally given row, or null.
++ *
++ * @method getLastTdEl
++ * @return {HTMLElement} Reference to last TD element.
++ */
++getLastTdEl : function(row) {
++    var elRow = this.getTrEl(row) || this.getLastTrEl();
++    if(elRow && (elRow.cells.length > 0)) {
++        return elRow.cells[elRow.cells.length-1];
++    }
++    YAHOO.log("Could not get last TD element for row " + elRow, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to the next TD element from the given cell, or null.
++ *
++ * @method getNextTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
++ * @return {HTMLElement} Reference to next TD element, or null.
++ */
++getNextTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var nThisTdIndex = elCell.cellIndex;
++        var elRow = this.getTrEl(elCell);
++        if(nThisTdIndex < elRow.cells.length-1) {
++            return elRow.cells[nThisTdIndex+1];
++        }
++        else {
++            var elNextRow = this.getNextTrEl(elRow);
++            if(elNextRow) {
++                return elNextRow.cells[0];
++            }
++        }
++    }
++    YAHOO.log("Could not get next TD element for cell " + cell, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to the previous TD element from the given cell, or null.
++ *
++ * @method getPreviousTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
++ * @return {HTMLElement} Reference to previous TD element, or null.
++ */
++getPreviousTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var nThisTdIndex = elCell.cellIndex;
++        var elRow = this.getTrEl(elCell);
++        if(nThisTdIndex > 0) {
++            return elRow.cells[nThisTdIndex-1];
++        }
++        else {
++            var elPreviousRow = this.getPreviousTrEl(elRow);
++            if(elPreviousRow) {
++                return this.getLastTdEl(elPreviousRow);
++            }
++        }
++    }
++    YAHOO.log("Could not get next TD element for cell " + cell, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to the above TD element from the given cell, or null.
++ *
++ * @method getAboveTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
++ * @return {HTMLElement} Reference to next TD element, or null.
++ */
++getAboveTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var elPreviousRow = this.getPreviousTrEl(elCell);
++        if(elPreviousRow) {
++            return elPreviousRow.cells[elCell.cellIndex];
++        }
++    }
++    YAHOO.log("Could not get above TD element for cell " + cell, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to the below TD element from the given cell, or null.
++ *
++ * @method getBelowTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
++ * @return {HTMLElement} Reference to previous TD element, or null.
++ */
++getBelowTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var elNextRow = this.getNextTrEl(elCell);
++        if(elNextRow) {
++            return elNextRow.cells[elCell.cellIndex];
++        }
++    }
++    YAHOO.log("Could not get below TD element for cell " + cell, "info", this.toString());
++    return null;
++},
++
++/**
++ * Returns DOM reference to a TH liner element. Needed to normalize for resizeable 
++ * Columns, which have an additional resizer liner DIV element between the TH
++ * element and the liner DIV element. 
++ *
++ * @method getThLinerEl
++ * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
++ * DOM element reference, or string ID.
++ * @return {HTMLElement} Reference to TH liner element.
++ */
++getThLinerEl : function(theadCell) {
++    var oColumn = this.getColumn(theadCell);
++    return (oColumn) ? oColumn.getThLinerEl() : null;
++},
++
++/**
++ * Returns DOM reference to a TH element.
++ *
++ * @method getThEl
++ * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
++ * DOM element reference, or string ID.
++ * @return {HTMLElement} Reference to TH element.
++ */
++getThEl : function(theadCell) {
++    var elTh;
++
++    // Validate Column instance
++    if(theadCell instanceof YAHOO.widget.Column) {
++        var oColumn = theadCell;
++        elTh = oColumn.getThEl();
++        if(elTh) {
++            return elTh;
++        }
++    }
++    // Validate HTML element
++    else {
++        var el = Dom.get(theadCell);
++
++        if(el && (el.ownerDocument == document)) {
++            // Validate TH element
++            if(el.nodeName.toLowerCase() != "th") {
++                // Traverse up the DOM to find the corresponding TR element
++                elTh = Dom.getAncestorByTagName(el,"th");
++            }
++            else {
++                elTh = el;
++            }
++
++            return elTh;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns the page row index of given row. Returns null if the row is not on the
++ * current DataTable page.
++ *
++ * @method getTrIndex
++ * @param row {HTMLElement | String | YAHOO.widget.Record | Number} DOM or ID
++ * string reference to an element within the DataTable page, a Record instance,
++ * or a Record's RecordSet index.
++ * @return {Number} Page row index, or null if row does not exist or is not on current page.
++ */
++getTrIndex : function(row) {
++    var nRecordIndex;
++
++    // By Record
++    if(row instanceof YAHOO.widget.Record) {
++        nRecordIndex = this._oRecordSet.getRecordIndex(row);
++        if(nRecordIndex === null) {
++            // Not a valid Record
++            return null;
++        }
++    }
++    // Calculate page row index from Record index
++    else if(lang.isNumber(row)) {
++        nRecordIndex = row;
++    }
++    if(lang.isNumber(nRecordIndex)) {
++        // Validate the number
++        if((nRecordIndex > -1) && (nRecordIndex < this._oRecordSet.getLength())) {
++            // DataTable is paginated
++            var oPaginator = this.get('paginator');
++            if(oPaginator) {
++                // Check the record index is within the indices of the
++                // current page
++                var rng = oPaginator.getPageRecords();
++                if (rng && nRecordIndex >= rng[0] && nRecordIndex <= rng[1]) {
++                    // This Record is on current page
++                    return nRecordIndex - rng[0];
++                }
++                // This Record is not on current page
++                else {
++                    return null;
++                }
++            }
++            // Not paginated, just return the Record index
++            else {
++                return nRecordIndex;
++            }
++        }
++        // RecordSet index is out of range
++        else {
++            return null;
++        }
++    }
++    // By element reference or ID string
++    else {
++        // Validate TR element
++        var elRow = this.getTrEl(row);
++        if(elRow && (elRow.ownerDocument == document) &&
++                (elRow.parentNode == this._elTbody)) {
++            return elRow.sectionRowIndex;
++        }
++    }
++
++    YAHOO.log("Could not get page row index for row " + row, "info", this.toString());
++    return null;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// TABLE FUNCTIONS
++
++/**
++ * Resets a RecordSet with the given data and populates the page view
++ * with the new data. Any previous data, and selection and sort states are
++ * cleared. New data should be added as a separate step. 
++ *
++ * @method initializeTable
++ */
++initializeTable : function() {
++    // Reset init flag
++    this._bInit = true;
++    
++    // Clear the RecordSet
++    this._oRecordSet.reset();
++
++    // Clear the Paginator's totalRecords if paginating
++    var pag = this.get('paginator');
++    if (pag) {
++        pag.set('totalRecords',0);
++    }
++
++    // Clear selections
++    this._unselectAllTrEls();
++    this._unselectAllTdEls();
++    this._aSelections = null;
++    this._oAnchorRecord = null;
++    this._oAnchorCell = null;
++    
++    // Clear sort
++    this.set("sortedBy", null);
++},
++
++/**
++ * Internal wrapper calls run() on render Chain instance.
++ *
++ * @method _runRenderChain
++ * @private 
++ */
++_runRenderChain : function() {
++    this._oChainRender.run();
++},
++
++/**
++ * Renders the view with existing Records from the RecordSet while
++ * maintaining sort, pagination, and selection states. For performance, reuses
++ * existing DOM elements when possible while deleting extraneous elements.
++ *
++ * @method render
++ */
++render : function() {
++//YAHOO.example.Performance.trialStart = new Date();
++
++    this._oChainRender.stop();
++
++    this.fireEvent("beforeRenderEvent");
++    YAHOO.log("DataTable rendering...", "info", this.toString());
++
++    var i, j, k, len, allRecords;
++
++    var oPaginator = this.get('paginator');
++    // Paginator is enabled, show a subset of Records and update Paginator UI
++    if(oPaginator) {
++        allRecords = this._oRecordSet.getRecords(
++                        oPaginator.getStartIndex(),
++                        oPaginator.getRowsPerPage());
++    }
++    // Not paginated, show all records
++    else {
++        allRecords = this._oRecordSet.getRecords();
++    }
++
++    // From the top, update in-place existing rows, so as to reuse DOM elements
++    var elTbody = this._elTbody,
++        loopN = this.get("renderLoopSize"),
++        nRecordsLength = allRecords.length;
++    
++    // Table has rows
++    if(nRecordsLength > 0) {                
++        elTbody.style.display = "none";
++        while(elTbody.lastChild) {
++            elTbody.removeChild(elTbody.lastChild);
++        }
++        elTbody.style.display = "";
++
++        // Set up the loop Chain to render rows
++        this._oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId) {
++                    var i = oArg.nCurrentRecord,
++                        endRecordIndex = ((oArg.nCurrentRecord+oArg.nLoopLength) > nRecordsLength) ?
++                                nRecordsLength : (oArg.nCurrentRecord+oArg.nLoopLength),
++                        elRow, nextSibling;
++
++                    elTbody.style.display = "none";
++                    
++                    for(; i<endRecordIndex; i++) {
++                        elRow = Dom.get(allRecords[i].getId());
++                        elRow = elRow || this._addTrEl(allRecords[i]);
++                        nextSibling = elTbody.childNodes[i] || null;
++                        elTbody.insertBefore(elRow, nextSibling);
++                    }
++                    elTbody.style.display = "";
++                    
++                    // Set up for the next loop
++                    oArg.nCurrentRecord = i;
++                }
++            },
++            scope: this,
++            iterations: (loopN > 0) ? Math.ceil(nRecordsLength/loopN) : 1,
++            argument: {
++                nCurrentRecord: 0,//nRecordsLength-1,  // Start at first Record
++                nLoopLength: (loopN > 0) ? loopN : nRecordsLength
++            },
++            timeout: (loopN > 0) ? 0 : -1
++        });
++        
++        // Post-render tasks
++        this._oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId) {
++                    while(elTbody.rows.length > nRecordsLength) {
++                        elTbody.removeChild(elTbody.lastChild);
++                    }
++                    this._setFirstRow();
++                    this._setLastRow();
++                    this._setRowStripes();
++                    this._setSelections();
++                }
++            },
++            scope: this,
++            timeout: (loopN > 0) ? 0 : -1
++        });
++     
++    }
++    // Table has no rows
++    else {
++        // Set up the loop Chain to delete rows
++        var nTotal = elTbody.rows.length;
++        if(nTotal > 0) {
++            this._oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId) {
++                        var i = oArg.nCurrent,
++                            loopN = oArg.nLoopLength,
++                            nIterEnd = (i - loopN < 0) ? -1 : i - loopN;
++    
++                        elTbody.style.display = "none";
++                        
++                        for(; i>nIterEnd; i--) {
++                            elTbody.deleteRow(-1);
++                        }
++                        elTbody.style.display = "";
++                        
++                        // Set up for the next loop
++                        oArg.nCurrent = i;
++                    }
++                },
++                scope: this,
++                iterations: (loopN > 0) ? Math.ceil(nTotal/loopN) : 1,
++                argument: {
++                    nCurrent: nTotal, 
++                    nLoopLength: (loopN > 0) ? loopN : nTotal
++                },
++                timeout: (loopN > 0) ? 0 : -1
++            });
++        }
++    }
++    this._runRenderChain();
++},
++
++/**
++ * Disables DataTable UI.
++ *
++ * @method disable
++ */
++disable : function() {
++    var elTable = this._elTable;
++    var elMask = this._elMask;
++    elMask.style.width = elTable.offsetWidth + "px";
++    elMask.style.height = elTable.offsetHeight + "px";
++    elMask.style.display = "";
++    this.fireEvent("disableEvent");
++},
++
++/**
++ * Undisables DataTable UI.
++ *
++ * @method undisable
++ */
++undisable : function() {
++    this._elMask.style.display = "none";
++    this.fireEvent("undisableEvent");
++},
++
++/**
++ * Nulls out the entire DataTable instance and related objects, removes attached
++ * event listeners, and clears out DOM elements inside the container. After
++ * calling this method, the instance reference should be expliclitly nulled by
++ * implementer, as in myDataTable = null. Use with caution!
++ *
++ * @method destroy
++ */
++destroy : function() {
++    // Store for later
++    var instanceName = this.toString();
++
++    this._oChainRender.stop();
++    
++    // Destroy static resizer proxy and column proxy
++    DT._destroyColumnDragTargetEl();
++    DT._destroyColumnResizerProxyEl();
++    
++    // Destroy ColumnDD and ColumnResizers
++    this._destroyColumnHelpers();
++    
++    // Destroy all CellEditors
++    var oCellEditor;
++    for(var i=0, len=this._oColumnSet.flat.length; i<len; i++) {
++        oCellEditor = this._oColumnSet.flat[i].editor;
++        if(oCellEditor && oCellEditor.destroy) {
++            oCellEditor.destroy();
++            this._oColumnSet.flat[i].editor = null;
++        }
++    }
++
++    // Destroy Paginator
++    this._destroyPaginator();
++
++    // Unhook custom events
++    this._oRecordSet.unsubscribeAll();
++    this.unsubscribeAll();
++
++    // Unhook DOM events
++    Ev.removeListener(document, "click", this._onDocumentClick);
++    
++    // Clear out the container
++    this._destroyContainerEl(this._elContainer);
++
++    // Null out objects
++    for(var param in this) {
++        if(lang.hasOwnProperty(this, param)) {
++            this[param] = null;
++        }
++    }
++    
++    // Clean up static values
++    DT._nCurrentCount--;
++    
++    if(DT._nCurrentCount < 1) {
++        if(DT._elDynStyleNode) {
++            document.getElementsByTagName('head')[0].removeChild(DT._elDynStyleNode);
++            DT._elDynStyleNode = null;
++        }
++    }
++
++    YAHOO.log("DataTable instance destroyed: " + instanceName);
++},
++
++/**
++ * Displays message within secondary TBODY.
++ *
++ * @method showTableMessage
++ * @param sHTML {String} (optional) Value for innerHTMlang.
++ * @param sClassName {String} (optional) Classname.
++ */
++showTableMessage : function(sHTML, sClassName) {
++    var elCell = this._elMsgTd;
++    if(lang.isString(sHTML)) {
++        elCell.firstChild.innerHTML = sHTML;
++    }
++    if(lang.isString(sClassName)) {
++        elCell.className = sClassName;
++    }
++
++    this._elMsgTbody.style.display = "";
++
++    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
++    YAHOO.log("DataTable showing message: " + sHTML, "info", this.toString());
++},
++
++/**
++ * Hides secondary TBODY.
++ *
++ * @method hideTableMessage
++ */
++hideTableMessage : function() {
++    if(this._elMsgTbody.style.display != "none") {
++        this._elMsgTbody.style.display = "none";
++        this._elMsgTbody.parentNode.style.width = "";
++        this.fireEvent("tableMsgHideEvent");
++        YAHOO.log("DataTable message hidden", "info", this.toString());
++    }
++},
++
++/**
++ * Brings focus to the TBODY element. Alias to focusTbodyEl.
++ *
++ * @method focus
++ */
++focus : function() {
++    this.focusTbodyEl();
++},
++
++/**
++ * Brings focus to the THEAD element.
++ *
++ * @method focusTheadEl
++ */
++focusTheadEl : function() {
++    this._focusEl(this._elThead);
++},
++
++/**
++ * Brings focus to the TBODY element.
++ *
++ * @method focusTbodyEl
++ */
++focusTbodyEl : function() {
++    this._focusEl(this._elTbody);
++},
++
++/**
++ * Setting display:none on DataTable or any parent may impact width validations.
++ * After setting display back to "", implementers should call this method to 
++ * manually perform those validations.
++ *
++ * @method onShow
++ */
++onShow : function() {
++    this.validateColumnWidths();
++    
++    for(var allKeys = this._oColumnSet.keys, i=0, len=allKeys.length, col; i<len; i++) {
++        col = allKeys[i];
++        if(col._ddResizer) {
++            col._ddResizer.resetResizerEl();
++        }
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// RECORDSET FUNCTIONS
++
++/**
++ * Returns Record index for given TR element or page row index.
++ *
++ * @method getRecordIndex
++ * @param row {YAHOO.widget.Record | HTMLElement | Number} Record instance, TR
++ * element reference or page row index.
++ * @return {Number} Record's RecordSet index, or null.
++ */
++getRecordIndex : function(row) {
++    var nTrIndex;
++
++    if(!lang.isNumber(row)) {
++        // By Record
++        if(row instanceof YAHOO.widget.Record) {
++            return this._oRecordSet.getRecordIndex(row);
++        }
++        // By element reference
++        else {
++            // Find the TR element
++            var el = this.getTrEl(row);
++            if(el) {
++                nTrIndex = el.sectionRowIndex;
++            }
++        }
++    }
++    // By page row index
++    else {
++        nTrIndex = row;
++    }
++
++    if(lang.isNumber(nTrIndex)) {
++        var oPaginator = this.get("paginator");
++        if(oPaginator) {
++            return oPaginator.get('recordOffset') + nTrIndex;
++        }
++        else {
++            return nTrIndex;
++        }
++    }
++
++    YAHOO.log("Could not get Record index for row " + row, "info", this.toString());
++    return null;
++},
++
++/**
++ * For the given identifier, returns the associated Record instance.
++ *
++ * @method getRecord
++ * @param row {HTMLElement | Number | String} DOM reference to a TR element (or
++ * child of a TR element), RecordSet position index, or Record ID.
++ * @return {YAHOO.widget.Record} Record instance.
++ */
++getRecord : function(row) {
++    var oRecord = this._oRecordSet.getRecord(row);
++
++    if(!oRecord) {
++        // Validate TR element
++        var elRow = this.getTrEl(row);
++        if(elRow) {
++            oRecord = this._oRecordSet.getRecord(elRow.id);
++        }
++    }
++
++    if(oRecord instanceof YAHOO.widget.Record) {
++        return this._oRecordSet.getRecord(oRecord);
++    }
++    else {
++        YAHOO.log("Could not get Record for row at " + row, "info", this.toString());
++        return null;
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// COLUMN FUNCTIONS
++
++/**
++ * For the given identifier, returns the associated Column instance. Note: For
++ * getting Columns by Column ID string, please use the method getColumnById().
++ *
++ * @method getColumn
++ * @param column {HTMLElement | String | Number} TH/TD element (or child of a
++ * TH/TD element), a Column key, or a ColumnSet key index.
++ * @return {YAHOO.widget.Column} Column instance.
++ */
++getColumn : function(column) {
++    var oColumn = this._oColumnSet.getColumn(column);
++
++    if(!oColumn) {
++        // Validate TD element
++        var elCell = this.getTdEl(column);
++        if(elCell) {
++            oColumn = this._oColumnSet.getColumn(elCell.cellIndex);
++        }
++        // Validate TH element
++        else {
++            elCell = this.getThEl(column);
++            if(elCell) {
++                // Find by TH el ID
++                var allColumns = this._oColumnSet.flat;
++                for(var i=0, len=allColumns.length; i<len; i++) {
++                    if(allColumns[i].getThEl().id === elCell.id) {
++                        oColumn = allColumns[i];
++                    } 
++                }
++            }
++        }
++    }
++    if(!oColumn) {
++        YAHOO.log("Could not get Column for column at " + column, "info", this.toString());
++    }
++    return oColumn;
++},
++
++/**
++ * For the given Column ID, returns the associated Column instance. Note: For
++ * getting Columns by key, please use the method getColumn().
++ *
++ * @method getColumnById
++ * @param column {String} Column ID string.
++ * @return {YAHOO.widget.Column} Column instance.
++ */
++getColumnById : function(column) {
++    return this._oColumnSet.getColumnById(column);
++},
++
++/**
++ * For the given Column instance, returns next direction to sort.
++ *
++ * @method getColumnSortDir
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param oSortedBy {Object} (optional) Specify the state, or use current state. 
++ * @return {String} YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTableCLASS_DESC.
++ */
++getColumnSortDir : function(oColumn, oSortedBy) {
++    // Backward compatibility
++    if(oColumn.sortOptions && oColumn.sortOptions.defaultOrder) {
++        if(oColumn.sortOptions.defaultOrder == "asc") {
++            oColumn.sortOptions.defaultDir = DT.CLASS_ASC;
++        }
++        else if (oColumn.sortOptions.defaultOrder == "desc") {
++            oColumn.sortOptions.defaultDir = DT.CLASS_DESC;
++        }
++    }
++    
++    // What is the Column's default sort direction?
++    var sortDir = (oColumn.sortOptions && oColumn.sortOptions.defaultDir) ? oColumn.sortOptions.defaultDir : DT.CLASS_ASC;
++
++    // Is the Column currently sorted?
++    var bSorted = false;
++    oSortedBy = oSortedBy || this.get("sortedBy");
++    if(oSortedBy && (oSortedBy.key === oColumn.key)) {
++        bSorted = true;
++        if(oSortedBy.dir) {
++            sortDir = (oSortedBy.dir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
++        }
++        else {
++            sortDir = (sortDir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
++        }
++    }
++    return sortDir;
++},
++
++/**
++ * Overridable method gives implementers a hook to show loading message before
++ * sorting Column.
++ *
++ * @method doBeforeSortColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sSortDir {String} YAHOO.widget.DataTable.CLASS_ASC or
++ * YAHOO.widget.DataTable.CLASS_DESC.
++ * @return {Boolean} Return true to continue sorting Column.
++ */
++doBeforeSortColumn : function(oColumn, sSortDir) {
++    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
++    return true;
++},
++
++/**
++ * Sorts given Column. If "dynamicData" is true, current selections are purged before
++ * a request is sent to the DataSource for data for the new state (using the
++ * request returned by "generateRequest()").
++ *
++ * @method sortColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sDir {String} (Optional) YAHOO.widget.DataTable.CLASS_ASC or
++ * YAHOO.widget.DataTable.CLASS_DESC
++ */
++sortColumn : function(oColumn, sDir) {
++    if(oColumn && (oColumn instanceof YAHOO.widget.Column)) {
++        if(!oColumn.sortable) {
++            Dom.addClass(this.getThEl(oColumn), DT.CLASS_SORTABLE);
++        }
++        
++        // Validate given direction
++        if(sDir && (sDir !== DT.CLASS_ASC) && (sDir !== DT.CLASS_DESC)) {
++            sDir = null;
++        }
++        
++        // Get the sort dir
++        var sSortDir = sDir || this.getColumnSortDir(oColumn);
++
++        // Is the Column currently sorted?
++        var oSortedBy = this.get("sortedBy") || {};
++        var bSorted = (oSortedBy.key === oColumn.key) ? true : false;
++
++        var ok = this.doBeforeSortColumn(oColumn, sSortDir);
++        if(ok) {
++            // Server-side sort
++            if(this.get("dynamicData")) {
++                // Get current state
++                var oState = this.getState();
++                
++                // Reset record offset, if paginated
++                if(oState.pagination) {
++                    oState.pagination.recordOffset = 0;
++                }
++                
++                // Update sortedBy to new values
++                oState.sortedBy = {
++                    key: oColumn.key,
++                    dir: sSortDir
++                };
++                
++                // Get the request for the new state
++                var request = this.get("generateRequest")(oState, this);
++
++                // Purge selections
++                this.unselectAllRows();
++                this.unselectAllCells();
++
++                // Send request for new data
++                var callback = {
++                    success : this.onDataReturnSetRows,
++                    failure : this.onDataReturnSetRows,
++                    argument : oState, // Pass along the new state to the callback
++                    scope : this
++                };
++                this._oDataSource.sendRequest(request, callback);            
++            }
++            // Client-side sort
++            else {
++                // Is there a custom sort handler function defined?
++                var sortFnc = (oColumn.sortOptions && lang.isFunction(oColumn.sortOptions.sortFunction)) ?
++                        // Custom sort function
++                        oColumn.sortOptions.sortFunction : null;
++                   
++                // Sort the Records
++                if(!bSorted || sDir || sortFnc) {
++                    // Shortcut for the frequently-used compare method
++                    var compare = YAHOO.util.Sort.compare;
++
++                    // Default sort function if necessary
++                    sortFnc = sortFnc || 
++                        function(a, b, desc, field) {
++                            var sorted = compare(a.getData(field),b.getData(field), desc);
++                            if(sorted === 0) {
++                                return compare(a.getCount(),b.getCount(), desc); // Bug 1932978
++                            }
++                            else {
++                                return sorted;
++                            }
++                        };
++
++                    // Get the field to sort
++                    var sField = (oColumn.sortOptions && oColumn.sortOptions.field) ? oColumn.sortOptions.field : oColumn.field;
++
++                    // Sort the Records        
++                    this._oRecordSet.sortRecords(sortFnc, ((sSortDir == DT.CLASS_DESC) ? true : false), sField);
++                }
++                // Just reverse the Records
++                else {
++                    this._oRecordSet.reverseRecords();
++                }
++        
++                // Reset to first page if paginated
++                var oPaginator = this.get('paginator');
++                if (oPaginator) {
++                    // Set page silently, so as not to fire change event.
++                    oPaginator.setPage(1,true);
++                }
++        
++                // Update UI via sortedBy
++                this.render();
++                this.set("sortedBy", {key:oColumn.key, dir:sSortDir, column:oColumn}); 
++            }       
++            
++            this.fireEvent("columnSortEvent",{column:oColumn,dir:sSortDir});
++            YAHOO.log("Column \"" + oColumn.key + "\" sorted \"" + sSortDir + "\"", "info", this.toString());
++            return;
++        }
++    }
++    YAHOO.log("Could not sort Column \"" + oColumn.key + "\"", "warn", this.toString());
++},
++
++/**
++ * Sets given Column to given pixel width. If new width is less than minimum
++ * width, sets to minimum width. Updates oColumn.width value.
++ *
++ * @method setColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param nWidth {Number} New width in pixels. A null value auto-sizes Column,
++ * subject to minWidth and maxAutoWidth validations. 
++ */
++setColumnWidth : function(oColumn, nWidth) {
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    if(oColumn) {
++        // Validate new width against minimum width
++        if(lang.isNumber(nWidth)) {
++            // This is why we must require a Number... :-|
++            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
++
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, nWidth+"px");
++            
++            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
++            YAHOO.log("Set width of Column " + oColumn + " to " + nWidth + "px", "info", this.toString());
++        }
++        // Unsets a width to auto-size
++        else if(nWidth === null) {
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, "auto");
++            this.validateColumnWidths(oColumn);
++            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
++            YAHOO.log("Column " + oColumn + " width unset", "info", this.toString());
++        }
++                
++        // Bug 2339454: resize then sort misaligment
++        this._clearTrTemplateEl();
++    }
++    else {
++        YAHOO.log("Could not set width of Column " + oColumn + " to " + nWidth + "px", "warn", this.toString());
++    }
++},
++
++/**
++ * Sets liner DIV elements of given Column to given width. When value should be
++ * auto-calculated to fit content overflow is set to visible, otherwise overflow
++ * is set to hidden. No validations against minimum width and no updating
++ * Column.width value.
++ *
++ * @method _setColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sWidth {String} New width value.
++ * @param sOverflow {String} Should be "hidden" when Column width is explicitly
++ * being set to a value, but should be "visible" when Column is meant to auto-fit content.  
++ * @private
++ */
++_setColumnWidth : function(oColumn, sWidth, sOverflow) {
++    if(oColumn && (oColumn.getKeyIndex() !== null)) {
++        sOverflow = sOverflow || (((sWidth === '') || (sWidth === 'auto')) ? 'visible' : 'hidden');
++    
++        // Dynamic style algorithm
++        if(!DT._bDynStylesFallback) {
++            this._setColumnWidthDynStyles(oColumn, sWidth, sOverflow);
++        }
++        // Dynamic function algorithm
++        else {
++            this._setColumnWidthDynFunction(oColumn, sWidth, sOverflow);
++        }
++    }
++    else {
++        YAHOO.log("Could not set width of unknown Column " + oColumn + " to " + sWidth, "warn", this.toString());
++    }
++},
++
++/**
++ * Updates width of a Column's liner DIV elements by dynamically creating a
++ * STYLE node and writing and updating CSS style rules to it. If this fails during
++ * runtime, the fallback method _setColumnWidthDynFunction() will be called.
++ * Notes: This technique is not performant in IE6. IE7 crashes if DataTable is
++ * nested within another TABLE element. For these cases, it is recommended to
++ * use the method _setColumnWidthDynFunction by setting _bDynStylesFallback to TRUE.
++ *
++ * @method _setColumnWidthDynStyles
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sWidth {String} New width value.
++ * @private
++ */
++_setColumnWidthDynStyles : function(oColumn, sWidth, sOverflow) {
++    var s = DT._elDynStyleNode,
++        rule;
++    
++    // Create a new STYLE node
++    if(!s) {
++        s = document.createElement('style');
++        s.type = 'text/css';
++        s = document.getElementsByTagName('head').item(0).appendChild(s);
++        DT._elDynStyleNode = s;
++    }
++    
++    // We have a STYLE node to update
++    if(s) {
++        // Use unique classname for this Column instance as a hook for resizing
++        var sClassname = "." + this.getId() + "-col-" + oColumn.getSanitizedKey() + " ." + DT.CLASS_LINER;
++        
++        // Hide for performance
++        if(this._elTbody) {
++            this._elTbody.style.display = 'none';
++        }
++        
++        rule = DT._oDynStyles[sClassname];
++
++        // The Column does not yet have a rule
++        if(!rule) {
++            if(s.styleSheet && s.styleSheet.addRule) {
++                s.styleSheet.addRule(sClassname,"overflow:"+sOverflow);
++                s.styleSheet.addRule(sClassname,'width:'+sWidth);
++                rule = s.styleSheet.rules[s.styleSheet.rules.length-1];
++                DT._oDynStyles[sClassname] = rule;
++            }
++            else if(s.sheet && s.sheet.insertRule) {
++                s.sheet.insertRule(sClassname+" {overflow:"+sOverflow+";width:"+sWidth+";}",s.sheet.cssRules.length);
++                rule = s.sheet.cssRules[s.sheet.cssRules.length-1];
++                DT._oDynStyles[sClassname] = rule;
++            }
++        }
++        // We have a rule to update
++        else {
++            rule.style.overflow = sOverflow;
++            rule.style.width = sWidth;
++        } 
++        
++        // Unhide
++        if(this._elTbody) {
++            this._elTbody.style.display = '';
++        }
++    }
++    
++    // That was not a success, we must call the fallback routine
++    if(!rule) {
++        DT._bDynStylesFallback = true;
++        this._setColumnWidthDynFunction(oColumn, sWidth);
++    }
++},
++
++/**
++ * Updates width of a Column's liner DIV elements by dynamically creating a
++ * function to update all element style properties in one pass. Note: This
++ * technique is not supported in sandboxed environments that prohibit EVALs.    
++ *
++ * @method _setColumnWidthDynFunction
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sWidth {String} New width value.
++ * @private
++ */
++_setColumnWidthDynFunction : function(oColumn, sWidth, sOverflow) {
++    // TODO: why is this here?
++    if(sWidth == 'auto') {
++        sWidth = ''; 
++    }
++    
++    // Create one function for each value of rows.length
++    var rowslen = this._elTbody ? this._elTbody.rows.length : 0;
++    
++    // Dynamically create the function
++    if (!this._aDynFunctions[rowslen]) {
++        
++        //Compile a custom function to do all the liner div width
++        //assignments at the same time.  A unique function is required
++        //for each unique number of rows in _elTbody.  This will
++        //result in a function declaration like:
++        //function (oColumn,sWidth,sOverflow) {
++        //    var colIdx = oColumn.getKeyIndex();
++        //    oColumn.getThLinerEl().style.overflow =
++        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.overflow =
++        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.overflow =
++        //    ... (for all row indices in this._elTbody.rows.length - 1)
++        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.overflow =
++        //    sOverflow;
++        //    oColumn.getThLinerEl().style.width =
++        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.width =
++        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.width =
++        //    ... (for all row indices in this._elTbody.rows.length - 1)
++        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.width =
++        //    sWidth;
++        //}
++        
++        var i,j,k;
++        var resizerDef = [
++            'var colIdx=oColumn.getKeyIndex();',
++            'oColumn.getThLinerEl().style.overflow='
++        ];
++        for (i=rowslen-1, j=2; i >= 0; --i) {
++            resizerDef[j++] = 'this._elTbody.rows[';
++            resizerDef[j++] = i;
++            resizerDef[j++] = '].cells[colIdx].firstChild.style.overflow=';
++        }
++        resizerDef[j] = 'sOverflow;';
++        resizerDef[j+1] = 'oColumn.getThLinerEl().style.width=';
++        for (i=rowslen-1, k=j+2; i >= 0; --i) {
++            resizerDef[k++] = 'this._elTbody.rows[';
++            resizerDef[k++] = i;
++            resizerDef[k++] = '].cells[colIdx].firstChild.style.width=';
++        }
++        resizerDef[k] = 'sWidth;';
++        this._aDynFunctions[rowslen] =
++            new Function('oColumn','sWidth','sOverflow',resizerDef.join(''));
++    }
++    
++    // Get the function to execute
++    var resizerFn = this._aDynFunctions[rowslen];
++
++    // TODO: Hide TBODY for performance in _setColumnWidthDynFunction?
++    if (resizerFn) {
++        resizerFn.call(this,oColumn,sWidth,sOverflow);
++    }
++},
++
++/**
++ * For one or all Columns, when Column is not hidden, width is not set, and minWidth
++ * and/or maxAutoWidth is set, validates auto-width against minWidth and maxAutoWidth.
++ *
++ * @method validateColumnWidths
++ * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
++ */
++validateColumnWidths : function(oColumn) {
++    var elColgroup = this._elColgroup;
++    var elColgroupClone = elColgroup.cloneNode(true);
++    var bNeedsValidation = false;
++    var allKeys = this._oColumnSet.keys;
++    var elThLiner;
++    // Validate just one Column's minWidth and/or maxAutoWidth
++    if(oColumn && !oColumn.hidden && !oColumn.width && (oColumn.getKeyIndex() !== null)) {
++            elThLiner = oColumn.getThLinerEl();
++            if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
++                elColgroupClone.childNodes[oColumn.getKeyIndex()].style.width = 
++                        oColumn.minWidth + 
++                        (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
++                        (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
++                bNeedsValidation = true;
++            }
++            else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
++                this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
++            }
++    }
++    // Validate all Columns
++    else {
++        for(var i=0, len=allKeys.length; i<len; i++) {
++            oColumn = allKeys[i];
++            if(!oColumn.hidden && !oColumn.width) {
++                elThLiner = oColumn.getThLinerEl();
++                if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
++                    elColgroupClone.childNodes[i].style.width = 
++                            oColumn.minWidth + 
++                            (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
++                            (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
++                    bNeedsValidation = true;
++                }
++                else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
++                    this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
++                }
++            }
++        }
++    }
++    if(bNeedsValidation) {
++        elColgroup.parentNode.replaceChild(elColgroupClone, elColgroup);
++        this._elColgroup = elColgroupClone;
++    }
++},
++
++/**
++ * Clears minWidth.
++ *
++ * @method _clearMinWidth
++ * @param oColumn {YAHOO.widget.Column} Which Column.
++ * @private
++ */
++_clearMinWidth : function(oColumn) {
++    if(oColumn.getKeyIndex() !== null) {
++        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = '';
++    }
++},
++
++/**
++ * Restores minWidth.
++ *
++ * @method _restoreMinWidth
++ * @param oColumn {YAHOO.widget.Column} Which Column.
++ * @private
++ */
++_restoreMinWidth : function(oColumn) {
++    if(oColumn.minWidth && (oColumn.getKeyIndex() !== null)) {
++        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = oColumn.minWidth + 'px';
++    }
++},
++
++/**
++ * Hides given Column. NOTE: You cannot hide/show nested Columns. You can only
++ * hide/show non-nested Columns, and top-level parent Columns (which will
++ * hide/show all children Columns).
++ *
++ * @method hideColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ */
++hideColumn : function(oColumn) {
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    // Only top-level Columns can get hidden due to issues in FF2 and SF3
++    if(oColumn && !oColumn.hidden && oColumn.getTreeIndex() !== null) {
++        
++        var allrows = this.getTbodyEl().rows;
++        var l = allrows.length;
++        var allDescendants = this._oColumnSet.getDescendants(oColumn);
++        
++        // Hide each nested Column
++        for(var i=0; i<allDescendants.length; i++) {
++            var thisColumn = allDescendants[i];
++            thisColumn.hidden = true;
++
++            // Style the head cell
++            Dom.addClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
++            
++            // Does this Column have body cells?
++            var thisKeyIndex = thisColumn.getKeyIndex();
++            if(thisKeyIndex !== null) {                    
++                // Clear minWidth
++                this._clearMinWidth(oColumn);
++                
++                // Style the body cells
++                for(var j=0;j<l;j++) {
++                    Dom.addClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
++                }
++            }
++            
++            this.fireEvent("columnHideEvent",{column:thisColumn});
++            YAHOO.log("Column \"" + oColumn.key + "\" hidden", "info", this.toString());
++        }
++      
++        this._repaintOpera();
++        this._clearTrTemplateEl();
++    }
++    else {
++        YAHOO.log("Could not hide Column \"" + lang.dump(oColumn) + "\". Only non-nested Columns can be hidden", "warn", this.toString());
++    }
++},
++
++/**
++ * Shows given Column. NOTE: You cannot hide/show nested Columns. You can only
++ * hide/show non-nested Columns, and top-level parent Columns (which will
++ * hide/show all children Columns).
++ *
++ * @method showColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ */
++showColumn : function(oColumn) {
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    // Only top-level Columns can get hidden
++    if(oColumn && oColumn.hidden && (oColumn.getTreeIndex() !== null)) {
++        var allrows = this.getTbodyEl().rows;
++        var l = allrows.length;
++        var allDescendants = this._oColumnSet.getDescendants(oColumn);
++        
++        // Show each nested Column
++        for(var i=0; i<allDescendants.length; i++) {
++            var thisColumn = allDescendants[i];
++            thisColumn.hidden = false;
++            
++            // Unstyle the head cell
++            Dom.removeClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
++
++            // Does this Column have body cells?
++            var thisKeyIndex = thisColumn.getKeyIndex();
++            if(thisKeyIndex !== null) {
++                // Restore minWidth
++                this._restoreMinWidth(oColumn);
++                
++            
++                // Unstyle the body cells
++                for(var j=0;j<l;j++) {
++                    Dom.removeClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
++                }
++            }
++
++            this.fireEvent("columnShowEvent",{column:thisColumn});
++            YAHOO.log("Column \"" + oColumn.key + "\" shown", "info", this.toString());
++        }
++        this._clearTrTemplateEl();
++    }
++    else {
++        YAHOO.log("Could not show Column \"" + lang.dump(oColumn) + "\". Only non-nested Columns can be shown", "warn", this.toString());
++    }
++},
++
++/**
++ * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
++ * non-nested Columns, and top-level parent Columns (which will remove all
++ * children Columns).
++ *
++ * @method removeColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @return oColumn {YAHOO.widget.Column} Removed Column instance.
++ */
++removeColumn : function(oColumn) {
++    // Validate Column
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    if(oColumn) {
++        var nColTreeIndex = oColumn.getTreeIndex();
++        if(nColTreeIndex !== null) {
++            // Which key index(es)
++            var i, len,
++                aKeyIndexes = oColumn.getKeyIndex();
++            // Must be a parent Column
++            if(aKeyIndexes === null) {
++                var descKeyIndexes = [];
++                var allDescendants = this._oColumnSet.getDescendants(oColumn);
++                for(i=0, len=allDescendants.length; i<len; i++) {
++                    // Is this descendant a key Column?
++                    var thisKey = allDescendants[i].getKeyIndex();
++                    if(thisKey !== null) {
++                        descKeyIndexes[descKeyIndexes.length] = thisKey;
++                    }
++                }
++                if(descKeyIndexes.length > 0) {
++                    aKeyIndexes = descKeyIndexes;
++                }
++            }
++            // Must be a key Column
++            else {
++                aKeyIndexes = [aKeyIndexes];
++            }
++            
++            if(aKeyIndexes !== null) {
++                // Sort the indexes so we can remove from the right
++                aKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
++                
++                // Destroy previous THEAD
++                this._destroyTheadEl();
++    
++                // Create new THEAD
++                var aOrigColumnDefs = this._oColumnSet.getDefinitions();
++                oColumn = aOrigColumnDefs.splice(nColTreeIndex,1)[0];
++                this._initColumnSet(aOrigColumnDefs);
++                this._initTheadEl();
++                
++                // Remove COL
++                for(i=aKeyIndexes.length-1; i>-1; i--) {
++                    this._removeColgroupColEl(aKeyIndexes[i]);
++                }
++                
++                // Remove TD
++                var allRows = this._elTbody.rows;
++                if(allRows.length > 0) {
++                    var loopN = this.get("renderLoopSize"),
++                        loopEnd = allRows.length;
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var i = oArg.nCurrentRow,
++                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
++                                    aIndexes = oArg.aIndexes,
++                                    j;
++                                for(; i < len; ++i) {
++                                    for(j = aIndexes.length-1; j>-1; j--) {
++                                        allRows[i].removeChild(allRows[i].childNodes[aIndexes[j]]);
++                                    }
++                                }
++                                oArg.nCurrentRow = i;
++                            }
++                        },
++                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                        argument: {nCurrentRow:0, aIndexes:aKeyIndexes},
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                }
++        
++                this.fireEvent("columnRemoveEvent",{column:oColumn});
++                YAHOO.log("Column \"" + oColumn.key + "\" removed", "info", this.toString());
++                return oColumn;
++            }
++        }
++    }
++    YAHOO.log("Could not remove Column \"" + oColumn.key + "\". Only non-nested Columns can be removed", "warn", this.toString());
++},
++
++/**
++ * Inserts given Column at the index if given, otherwise at the end. NOTE: You
++ * can only add non-nested Columns and top-level parent Columns. You cannot add
++ * a nested Column to an existing parent.
++ *
++ * @method insertColumn
++ * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
++ * definition or a Column instance.
++ * @param index {Number} (optional) New tree index.
++ * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
++ */
++insertColumn : function(oColumn, index) {
++    // Validate Column
++    if(oColumn instanceof YAHOO.widget.Column) {
++        oColumn = oColumn.getDefinition();
++    }
++    else if(oColumn.constructor !== Object) {
++        YAHOO.log("Could not insert Column \"" + oColumn + "\" due to invalid argument", "warn", this.toString());
++        return;
++    }
++    
++    // Validate index or append new Column to the end of the ColumnSet
++    var oColumnSet = this._oColumnSet;
++    if(!lang.isValue(index) || !lang.isNumber(index)) {
++        index = oColumnSet.tree[0].length;
++    }
++    
++    // Destroy previous THEAD
++    this._destroyTheadEl();
++    
++    // Create new THEAD
++    var aNewColumnDefs = this._oColumnSet.getDefinitions();
++    aNewColumnDefs.splice(index, 0, oColumn);
++    this._initColumnSet(aNewColumnDefs);
++    this._initTheadEl();
++    
++    // Need to refresh the reference
++    oColumnSet = this._oColumnSet;
++    var oNewColumn = oColumnSet.tree[0][index];
++    
++    // Get key index(es) for new Column
++    var i, len,
++        descKeyIndexes = [];
++    var allDescendants = oColumnSet.getDescendants(oNewColumn);
++    for(i=0, len=allDescendants.length; i<len; i++) {
++        // Is this descendant a key Column?
++        var thisKey = allDescendants[i].getKeyIndex();
++        if(thisKey !== null) {
++            descKeyIndexes[descKeyIndexes.length] = thisKey;
++        }
++    }
++    
++    if(descKeyIndexes.length > 0) {  
++        // Sort the indexes
++        var newIndex = descKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
++        
++        // Add COL
++        for(i=descKeyIndexes.length-1; i>-1; i--) {
++            this._insertColgroupColEl(descKeyIndexes[i]);
++        }
++            
++        // Add TD
++        var allRows = this._elTbody.rows;
++        if(allRows.length > 0) {
++            var loopN = this.get("renderLoopSize"),
++                loopEnd = allRows.length;
++            
++            // Get templates for each new TD
++            var aTdTemplates = [],
++                elTdTemplate;
++            for(i=0, len=descKeyIndexes.length; i<len; i++) {
++                var thisKeyIndex = descKeyIndexes[i];
++                elTdTemplate = this._getTrTemplateEl().childNodes[i].cloneNode(true);
++                elTdTemplate = this._formatTdEl(this._oColumnSet.keys[thisKeyIndex], elTdTemplate, thisKeyIndex, (thisKeyIndex===this._oColumnSet.keys.length-1));
++                aTdTemplates[thisKeyIndex] = elTdTemplate;
++            }
++            
++            this._oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId) {
++                        var i = oArg.nCurrentRow, j,
++                            descKeyIndexes = oArg.descKeyIndexes,
++                            len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
++                            nextSibling;
++                        for(; i < len; ++i) {
++                            nextSibling = allRows[i].childNodes[newIndex] || null;
++                            for(j=descKeyIndexes.length-1; j>-1; j--) {
++                                allRows[i].insertBefore(oArg.aTdTemplates[descKeyIndexes[j]].cloneNode(true), nextSibling);
++                            }
++                        }
++                        oArg.nCurrentRow = i;
++                    }
++                },
++                iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                argument: {nCurrentRow:0,aTdTemplates:aTdTemplates,descKeyIndexes:descKeyIndexes},
++                scope: this,
++                timeout: (loopN > 0) ? 0 : -1
++            });
++            this._runRenderChain(); 
++        }
++
++        this.fireEvent("columnInsertEvent",{column:oColumn,index:index});
++        YAHOO.log("Column \"" + oColumn.key + "\" inserted into index " + index, "info", this.toString());
++        return oNewColumn;
++    }
++},
++
++/**
++ * Removes given Column and inserts into given tree index. NOTE: You
++ * can only reorder non-nested Columns and top-level parent Columns. You cannot
++ * reorder a nested Column to an existing parent.
++ *
++ * @method reorderColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param index {Number} New tree index.
++ * @return oColumn {YAHOO.widget.Column} Reordered Column instance. 
++ */
++reorderColumn : function(oColumn, index) {
++    // Validate Column and new index
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    if(oColumn && YAHOO.lang.isNumber(index)) {
++        var nOrigTreeIndex = oColumn.getTreeIndex();
++        if((nOrigTreeIndex !== null) && (nOrigTreeIndex !== index)) {
++            // Which key index(es)
++            var i, len,
++                aOrigKeyIndexes = oColumn.getKeyIndex(),
++                allDescendants,
++                descKeyIndexes = [],
++                thisKey;
++            // Must be a parent Column...
++            if(aOrigKeyIndexes === null) {
++                allDescendants = this._oColumnSet.getDescendants(oColumn);
++                for(i=0, len=allDescendants.length; i<len; i++) {
++                    // Is this descendant a key Column?
++                    thisKey = allDescendants[i].getKeyIndex();
++                    if(thisKey !== null) {
++                        descKeyIndexes[descKeyIndexes.length] = thisKey;
++                    }
++                }
++                if(descKeyIndexes.length > 0) {
++                    aOrigKeyIndexes = descKeyIndexes;
++                }
++            }
++            // ...or else must be a key Column
++            else {
++                aOrigKeyIndexes = [aOrigKeyIndexes];
++            }
++            
++            if(aOrigKeyIndexes !== null) {                   
++                // Sort the indexes
++                aOrigKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
++                
++                // Destroy previous THEAD
++                this._destroyTheadEl();
++    
++                // Create new THEAD
++                var aColumnDefs = this._oColumnSet.getDefinitions();
++                var oColumnDef = aColumnDefs.splice(nOrigTreeIndex,1)[0];
++                aColumnDefs.splice(index, 0, oColumnDef);
++                this._initColumnSet(aColumnDefs);
++                this._initTheadEl();
++                
++                // Need to refresh the reference
++                var oNewColumn = this._oColumnSet.tree[0][index];
++
++                // What are new key index(es)
++                var aNewKeyIndexes = oNewColumn.getKeyIndex();
++                // Must be a parent Column
++                if(aNewKeyIndexes === null) {
++                    descKeyIndexes = [];
++                    allDescendants = this._oColumnSet.getDescendants(oNewColumn);
++                    for(i=0, len=allDescendants.length; i<len; i++) {
++                        // Is this descendant a key Column?
++                        thisKey = allDescendants[i].getKeyIndex();
++                        if(thisKey !== null) {
++                            descKeyIndexes[descKeyIndexes.length] = thisKey;
++                        }
++                    }
++                    if(descKeyIndexes.length > 0) {
++                        aNewKeyIndexes = descKeyIndexes;
++                    }
++                }
++                // Must be a key Column
++                else {
++                    aNewKeyIndexes = [aNewKeyIndexes];
++                }
++                
++                // Sort the new indexes and grab the first one for the new location
++                var newIndex = aNewKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
++
++                // Reorder COL
++                this._reorderColgroupColEl(aOrigKeyIndexes, newIndex);
++                
++                // Reorder TD
++                var allRows = this._elTbody.rows;
++                if(allRows.length > 0) {
++                    var loopN = this.get("renderLoopSize"),
++                        loopEnd = allRows.length;
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var i = oArg.nCurrentRow, j, tmpTds, nextSibling,
++                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
++                                    aIndexes = oArg.aIndexes, thisTr;
++                                // For each row
++                                for(; i < len; ++i) {
++                                    tmpTds = [];
++                                    thisTr = allRows[i];
++                                    
++                                    // Remove each TD
++                                    for(j=aIndexes.length-1; j>-1; j--) {
++                                        tmpTds.push(thisTr.removeChild(thisTr.childNodes[aIndexes[j]]));
++                                    }
++                                    
++                                    // Insert each TD
++                                    nextSibling = thisTr.childNodes[newIndex] || null;
++                                    for(j=tmpTds.length-1; j>-1; j--) {
++                                        thisTr.insertBefore(tmpTds[j], nextSibling);
++                                    }                                    
++                                }
++                                oArg.nCurrentRow = i;
++                            }
++                        },
++                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                        argument: {nCurrentRow:0, aIndexes:aOrigKeyIndexes},
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                }
++        
++                this.fireEvent("columnReorderEvent",{column:oNewColumn});
++                YAHOO.log("Column \"" + oNewColumn.key + "\" reordered", "info", this.toString());
++                return oNewColumn;
++            }
++        }
++    }
++    YAHOO.log("Could not reorder Column \"" + oColumn.key + "\". Only non-nested Columns can be reordered", "warn", this.toString());
++},
++
++/**
++ * Selects given Column. NOTE: You cannot select/unselect nested Columns. You can only
++ * select/unselect non-nested Columns, and bottom-level key Columns.
++ *
++ * @method selectColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++selectColumn : function(oColumn) {
++    oColumn = this.getColumn(oColumn);
++    if(oColumn && !oColumn.selected) {
++        // Only bottom-level Columns can get hidden
++        if(oColumn.getKeyIndex() !== null) {
++            oColumn.selected = true;
++            
++            // Update head cell
++            var elTh = oColumn.getThEl();
++            Dom.addClass(elTh,DT.CLASS_SELECTED);
++
++            // Update body cells
++            var allRows = this.getTbodyEl().rows;
++            var oChainRender = this._oChainRender;
++            oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                        Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED);                    
++                    }
++                    oArg.rowIndex++;
++                },
++                scope: this,
++                iterations: allRows.length,
++                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
++            });
++
++            this._clearTrTemplateEl();
++            
++            this._elTbody.style.display = "none";
++            this._runRenderChain();
++            this._elTbody.style.display = "";      
++            
++            this.fireEvent("columnSelectEvent",{column:oColumn});
++            YAHOO.log("Column \"" + oColumn.key + "\" selected", "info", this.toString());
++        }
++        else {
++            YAHOO.log("Could not select Column \"" + oColumn.key + "\". Only non-nested Columns can be selected", "warn", this.toString());
++        }
++    }
++},
++
++/**
++ * Unselects given Column. NOTE: You cannot select/unselect nested Columns. You can only
++ * select/unselect non-nested Columns, and bottom-level key Columns.
++ *
++ * @method unselectColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++unselectColumn : function(oColumn) {
++    oColumn = this.getColumn(oColumn);
++    if(oColumn && oColumn.selected) {
++        // Only bottom-level Columns can get hidden
++        if(oColumn.getKeyIndex() !== null) {
++            oColumn.selected = false;
++            
++            // Update head cell
++            var elTh = oColumn.getThEl();
++            Dom.removeClass(elTh,DT.CLASS_SELECTED);
++
++            // Update body cells
++            var allRows = this.getTbodyEl().rows;
++            var oChainRender = this._oChainRender;
++            oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                        Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED); 
++                    }                   
++                    oArg.rowIndex++;
++                },
++                scope: this,
++                iterations:allRows.length,
++                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
++            });
++            
++            this._clearTrTemplateEl();
++
++            this._elTbody.style.display = "none";
++            this._runRenderChain();
++            this._elTbody.style.display = "";      
++            
++            this.fireEvent("columnUnselectEvent",{column:oColumn});
++            YAHOO.log("Column \"" + oColumn.key + "\" unselected", "info", this.toString());
++        }
++        else {
++            YAHOO.log("Could not unselect Column \"" + oColumn.key + "\". Only non-nested Columns can be unselected", "warn", this.toString());
++        }
++    }
++},
++
++/**
++ * Returns an array selected Column instances.
++ *
++ * @method getSelectedColumns
++ * @return {YAHOO.widget.Column[]} Array of Column instances.
++ */
++getSelectedColumns : function(oColumn) {
++    var selectedColumns = [];
++    var aKeys = this._oColumnSet.keys;
++    for(var i=0,len=aKeys.length; i<len; i++) {
++        if(aKeys[i].selected) {
++            selectedColumns[selectedColumns.length] = aKeys[i];
++        }
++    }
++    return selectedColumns;
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
++ * NOTE: You cannot highlight/unhighlight nested Columns. You can only
++ * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
++ *
++ * @method highlightColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++highlightColumn : function(column) {
++    var oColumn = this.getColumn(column);
++    // Only bottom-level Columns can get highlighted
++    if(oColumn && (oColumn.getKeyIndex() !== null)) {            
++        // Update head cell
++        var elTh = oColumn.getThEl();
++        Dom.addClass(elTh,DT.CLASS_HIGHLIGHTED);
++
++        // Update body cells
++        var allRows = this.getTbodyEl().rows;
++        var oChainRender = this._oChainRender;
++        oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                    Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);   
++                }                 
++                oArg.rowIndex++;
++            },
++            scope: this,
++            iterations:allRows.length,
++            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
++            timeout: -1
++        });
++        this._elTbody.style.display = "none";
++        this._runRenderChain();
++        this._elTbody.style.display = "";      
++            
++        this.fireEvent("columnHighlightEvent",{column:oColumn});
++        YAHOO.log("Column \"" + oColumn.key + "\" highlighed", "info", this.toString());
++    }
++    else {
++        YAHOO.log("Could not highlight Column \"" + oColumn.key + "\". Only non-nested Columns can be highlighted", "warn", this.toString());
++    }
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
++ * NOTE: You cannot highlight/unhighlight nested Columns. You can only
++ * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
++ *
++ * @method unhighlightColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++unhighlightColumn : function(column) {
++    var oColumn = this.getColumn(column);
++    // Only bottom-level Columns can get highlighted
++    if(oColumn && (oColumn.getKeyIndex() !== null)) {
++        // Update head cell
++        var elTh = oColumn.getThEl();
++        Dom.removeClass(elTh,DT.CLASS_HIGHLIGHTED);
++
++        // Update body cells
++        var allRows = this.getTbodyEl().rows;
++        var oChainRender = this._oChainRender;
++        oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                    Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);
++                }                 
++                oArg.rowIndex++;
++            },
++            scope: this,
++            iterations:allRows.length,
++            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
++            timeout: -1
++        });
++        this._elTbody.style.display = "none";
++        this._runRenderChain();
++        this._elTbody.style.display = "";     
++            
++        this.fireEvent("columnUnhighlightEvent",{column:oColumn});
++        YAHOO.log("Column \"" + oColumn.key + "\" unhighlighted", "info", this.toString());
++    }
++    else {
++        YAHOO.log("Could not unhighlight Column \"" + oColumn.key + "\". Only non-nested Columns can be unhighlighted", "warn", this.toString());
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// ROW FUNCTIONS
++
++/**
++ * Adds one new Record of data into the RecordSet at the index if given,
++ * otherwise at the end. If the new Record is in page view, the
++ * corresponding DOM elements are also updated.
++ *
++ * @method addRow
++ * @param oData {Object} Object literal of data for the row.
++ * @param index {Number} (optional) RecordSet position index at which to add data.
++ */
++addRow : function(oData, index) {
++    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
++        YAHOO.log("Could not add row at index " + index + " with " + lang.dump(oData), "warn", this.toString());
++        return;
++    }
++
++    if(oData && lang.isObject(oData)) {
++        var oRecord = this._oRecordSet.addRecord(oData, index);
++        if(oRecord) {
++            var recIndex;
++            var oPaginator = this.get('paginator');
++
++            // Paginated
++            if (oPaginator) {     
++                // Update the paginator's totalRecords
++                var totalRecords = oPaginator.get('totalRecords');
++                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                    oPaginator.set('totalRecords',totalRecords + 1);
++                }
++
++                recIndex = this.getRecordIndex(oRecord);
++                var endRecIndex = (oPaginator.getPageRecords())[1];
++
++                // New record affects the view
++                if (recIndex <= endRecIndex) {
++                    // Defer UI updates to the render method
++                    this.render();
++                }
++                
++                this.fireEvent("rowAddEvent", {record:oRecord});
++                YAHOO.log("Added a row for Record " + YAHOO.lang.dump(oRecord) + " at RecordSet index " + recIndex, "info", this.toString()); 
++                return;
++            }
++            // Not paginated
++            else {
++                recIndex = this.getTrIndex(oRecord);
++                if(lang.isNumber(recIndex)) {
++                    // Add the TR element
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var oRecord = oArg.record;
++                                var recIndex = oArg.recIndex;
++                                var elNewTr = this._addTrEl(oRecord);
++                                if(elNewTr) {
++                                    var elNext = (this._elTbody.rows[recIndex]) ? this._elTbody.rows[recIndex] : null;
++                                    this._elTbody.insertBefore(elNewTr, elNext);
++
++                                    // Set FIRST/LAST
++                                    if(recIndex === 0) {
++                                        this._setFirstRow();
++                                    }
++                                    if(elNext === null) {
++                                        this._setLastRow();
++                                    }
++                                    // Set EVEN/ODD
++                                    this._setRowStripes();                           
++                                    
++                                    this.hideTableMessage();
++            
++                                    this.fireEvent("rowAddEvent", {record:oRecord});
++                                    YAHOO.log("Added a row for Record " + YAHOO.lang.dump(oRecord) + " at RecordSet index " + recIndex, "info", this.toString());
++                                }
++                            }
++                        },
++                        argument: {record: oRecord, recIndex: recIndex},
++                        scope: this,
++                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                    return;
++                }
++            }            
++        }
++    }
++    YAHOO.log("Could not add row at index " + index + " with " + lang.dump(oData), "warn", this.toString());
++},
++
++/**
++ * Convenience method to add multiple rows.
++ *
++ * @method addRows
++ * @param aData {Object[]} Array of object literal data for the rows.
++ * @param index {Number} (optional) RecordSet position index at which to add data.
++ */
++addRows : function(aData, index) {
++    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
++        YAHOO.log("Could not add rows at index " + index + " with " + lang.dump(aData), "warn", this.toString());    
++        return;
++    }
++
++    if(lang.isArray(aData)) {
++        var aRecords = this._oRecordSet.addRecords(aData, index);
++        if(aRecords) {
++            var recIndex = this.getRecordIndex(aRecords[0]);
++            
++            // Paginated
++            var oPaginator = this.get('paginator');
++            if (oPaginator) {
++                // Update the paginator's totalRecords
++                var totalRecords = oPaginator.get('totalRecords');
++                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                    oPaginator.set('totalRecords',totalRecords + aRecords.length);
++                }
++    
++                var endRecIndex = (oPaginator.getPageRecords())[1];
++
++                // At least one of the new records affects the view
++                if (recIndex <= endRecIndex) {
++                    this.render();
++                }
++                
++                this.fireEvent("rowsAddEvent", {records:aRecords});
++                YAHOO.log("Added " + aRecords.length + 
++                        " rows at index " + this._oRecordSet.getRecordIndex(aRecords[0]) +
++                        " with data " + lang.dump(aData), "info", this.toString());
++                return;
++            }
++            // Not paginated
++            else {
++                // Add the TR elements
++                var loopN = this.get("renderLoopSize");
++                var loopEnd = recIndex + aData.length;
++                var nRowsNeeded = (loopEnd - recIndex); // how many needed
++                var isLast = (recIndex >= this._elTbody.rows.length);
++                this._oChainRender.add({
++                    method: function(oArg) {
++                        if((this instanceof DT) && this._sId) {
++                            var aRecords = oArg.aRecords,
++                                i = oArg.nCurrentRow,
++                                j = oArg.nCurrentRecord,
++                                len = loopN > 0 ? Math.min(i + loopN,loopEnd) : loopEnd,
++                                df = document.createDocumentFragment(),
++                                elNext = (this._elTbody.rows[i]) ? this._elTbody.rows[i] : null;
++                            for(; i < len; i++, j++) {
++                                df.appendChild(this._addTrEl(aRecords[j]));
++                            }
++                            this._elTbody.insertBefore(df, elNext);
++                            oArg.nCurrentRow = i;
++                            oArg.nCurrentRecord = j;
++                        }
++                    },
++                    iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                    argument: {nCurrentRow:recIndex,nCurrentRecord:0,aRecords:aRecords},
++                    scope: this,
++                    timeout: (loopN > 0) ? 0 : -1
++                });
++                this._oChainRender.add({
++                    method: function(oArg) {
++                        var recIndex = oArg.recIndex;
++                        // Set FIRST/LAST
++                        if(recIndex === 0) {
++                            this._setFirstRow();
++                        }
++                        if(oArg.isLast) {
++                            this._setLastRow();
++                        }
++                        // Set EVEN/ODD
++                        this._setRowStripes();                           
++
++                        this.fireEvent("rowsAddEvent", {records:aRecords});
++                        YAHOO.log("Added " + aRecords.length + 
++                                " rows at index " + this._oRecordSet.getRecordIndex(aRecords[0]) +
++                                " with data " + lang.dump(aData), "info", this.toString());
++                    },
++                    argument: {recIndex: recIndex, isLast: isLast},
++                    scope: this,
++                    timeout: -1 // Needs to run immediately after the DOM insertions above
++                });
++                this._runRenderChain();
++                this.hideTableMessage();                
++                return;
++            }            
++        }
++    }
++    YAHOO.log("Could not add rows at index " + index + " with " + lang.dump(aData), "warn", this.toString());    
++},
++
++/**
++ * For the given row, updates the associated Record with the given data. If the
++ * row is on current page, the corresponding DOM elements are also updated.
++ *
++ * @method updateRow
++ * @param row {YAHOO.widget.Record | Number | HTMLElement | String}
++ * Which row to update: By Record instance, by Record's RecordSet
++ * position index, by HTMLElement reference to the TR element, or by ID string
++ * of the TR element.
++ * @param oData {Object} Object literal of data for the row.
++ */
++updateRow : function(row, oData) {
++    var index = row;
++    if (!lang.isNumber(index)) {
++        index = this.getRecordIndex(row);
++    }
++
++    // Update the Record
++    if(lang.isNumber(index) && (index >= 0)) {
++        var oRecordSet = this._oRecordSet,
++            oldRecord = oRecordSet.getRecord(index);
++            
++        
++        if(oldRecord) {
++            var updatedRecord = this._oRecordSet.setRecord(oData, index),
++                elRow = this.getTrEl(oldRecord),
++                // Copy data from the Record for the event that gets fired later
++                oldData = oldRecord ? oldRecord.getData() : null;
++               
++            if(updatedRecord) {
++                // Update selected rows as necessary
++                var tracker = this._aSelections || [],
++                i=0,
++                oldId = oldRecord.getId(),
++                newId = updatedRecord.getId();
++                for(; i<tracker.length; i++) {
++                    if((tracker[i] === oldId)) {
++                        tracker[i] = newId;
++                    }
++                    else if(tracker[i].recordId === oldId) {
++                        tracker[i].recordId = newId;
++                    }
++                }
++
++                // Update the TR only if row is on current page
++                this._oChainRender.add({
++                    method: function() {
++                        if((this instanceof DT) && this._sId) {
++                            // Paginated
++                            var oPaginator = this.get('paginator');
++                            if (oPaginator) {
++                                var pageStartIndex = (oPaginator.getPageRecords())[0],
++                                    pageLastIndex = (oPaginator.getPageRecords())[1];
++        
++                                // At least one of the new records affects the view
++                                if ((index >= pageStartIndex) || (index <= pageLastIndex)) {
++                                    this.render();
++                                }
++                            }
++                            else {
++                                if(elRow) {
++                                    this._updateTrEl(elRow, updatedRecord);
++                                }
++                                else {
++                                    this.getTbodyEl().appendChild(this._addTrEl(updatedRecord));
++                                }
++                            }
++                            this.fireEvent("rowUpdateEvent", {record:updatedRecord, oldData:oldData});
++                            YAHOO.log("DataTable row updated: Record ID = " + updatedRecord.getId() +
++                                    ", Record index = " + this.getRecordIndex(updatedRecord) +
++                                    ", page row index = " + this.getTrIndex(updatedRecord), "info", this.toString());
++                        }
++                    },
++                    scope: this,
++                    timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                });
++                this._runRenderChain();
++                return;
++            }
++        }
++    }
++    YAHOO.log("Could not update row " + row + " with the data : " + lang.dump(oData), "warn", this.toString());
++    return;
++},
++
++/**
++ * Starting with the given row, updates associated Records with the given data.
++ * The number of rows to update are determined by the array of data provided.
++ * Undefined data (i.e., not an object literal) causes a row to be skipped. If
++ * any of the rows are on current page, the corresponding DOM elements are also
++ * updated.
++ *
++ * @method updateRows
++ * @param startrow {YAHOO.widget.Record | Number | HTMLElement | String}
++ * Starting row to update: By Record instance, by Record's RecordSet
++ * position index, by HTMLElement reference to the TR element, or by ID string
++ * of the TR element.
++ * @param aData {Object[]} Array of object literal of data for the rows.
++ */
++updateRows : function(startrow, aData) {
++    if(lang.isArray(aData)) {
++        var startIndex = startrow,
++            oRecordSet = this._oRecordSet;
++            
++        if (!lang.isNumber(startrow)) {
++            startIndex = this.getRecordIndex(startrow);
++        }
++            
++        if(lang.isNumber(startIndex) && (startIndex >= 0) && (startIndex < oRecordSet.getLength())) {
++            var lastIndex = startIndex + aData.length,
++                aOldRecords = oRecordSet.getRecords(startIndex, aData.length),
++                aNewRecords = oRecordSet.setRecords(aData, startIndex);
++            if(aNewRecords) {
++                // Update selected rows as necessary
++                var tracker = this._aSelections || [],
++                    i=0, j, newId, oldId;
++                for(; i<tracker.length; i++) {
++                    for(j=0; j<aOldRecords.length; j++) {
++                        oldId = aOldRecords[j].getId();
++                        if((tracker[i] === oldId)) {
++                            tracker[i] = aNewRecords[j].getId();
++                        }
++                        else if(tracker[i].recordId === oldId) {
++                            tracker[i].recordId = aNewRecords[j].getId();
++                        }
++                    }
++                }
++            
++                // Paginated
++                var oPaginator = this.get('paginator');
++                if (oPaginator) {
++                    var pageStartIndex = (oPaginator.getPageRecords())[0],
++                        pageLastIndex = (oPaginator.getPageRecords())[1];
++    
++                    // At least one of the new records affects the view
++                    if ((startIndex >= pageStartIndex) || (lastIndex <= pageLastIndex)) {
++                        this.render();
++                    }
++                    
++                    this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
++                    YAHOO.log("Added " + aNewRecords.length + 
++                            " rows starting at index " + startIndex +
++                            " with data " + lang.dump(aData), "info", this.toString());
++                    return;
++                }
++                // Not paginated
++                else {
++                    // Update the TR elements
++                    var loopN = this.get("renderLoopSize"),
++                        rowCount = aData.length, // how many needed
++                        lastRowIndex = this._elTbody.rows.length,
++                        isLast = (lastIndex >= lastRowIndex),
++                        isAdding = (lastIndex > lastRowIndex);
++                                           
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var aRecords = oArg.aRecords,
++                                    i = oArg.nCurrentRow,
++                                    j = oArg.nDataPointer,
++                                    len = loopN > 0 ? Math.min(i+loopN, startIndex+aRecords.length) : startIndex+aRecords.length;
++                                    
++                                for(; i < len; i++,j++) {
++                                    if(isAdding && (i>=lastRowIndex)) {
++                                        this._elTbody.appendChild(this._addTrEl(aRecords[j]));
++                                    }
++                                    else {
++                                        this._updateTrEl(this._elTbody.rows[i], aRecords[j]);
++                                    }
++                                }
++                                oArg.nCurrentRow = i;
++                                oArg.nDataPointer = j;
++                            }
++                        },
++                        iterations: (loopN > 0) ? Math.ceil(rowCount/loopN) : 1,
++                        argument: {nCurrentRow:startIndex,aRecords:aNewRecords,nDataPointer:0,isAdding:isAdding},
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            var recIndex = oArg.recIndex;
++                            // Set FIRST/LAST
++                            if(recIndex === 0) {
++                                this._setFirstRow();
++                            }
++                            if(oArg.isLast) {
++                                this._setLastRow();
++                            }
++                            // Set EVEN/ODD
++                            this._setRowStripes();                           
++    
++                            this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
++                            YAHOO.log("Added " + aNewRecords.length + 
++                                    " rows starting at index " + startIndex +
++                                    " with data " + lang.dump(aData), "info", this.toString());
++                        },
++                        argument: {recIndex: startIndex, isLast: isLast},
++                        scope: this,
++                        timeout: -1 // Needs to run immediately after the DOM insertions above
++                    });
++                    this._runRenderChain();
++                    this.hideTableMessage();                
++                    return;
++                }            
++            }
++        }
++    }
++    YAHOO.log("Could not update rows at " + startrow + " with " + lang.dump(aData), "warn", this.toString());
++},
++
++/**
++ * Deletes the given row's Record from the RecordSet. If the row is on current page,
++ * the corresponding DOM elements are also deleted.
++ *
++ * @method deleteRow
++ * @param row {HTMLElement | String | Number} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ */
++deleteRow : function(row) {
++    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
++    if(lang.isNumber(nRecordIndex)) {
++        var oRecord = this.getRecord(nRecordIndex);
++        if(oRecord) {
++            var nTrIndex = this.getTrIndex(nRecordIndex);
++            
++            // Remove from selection tracker if there
++            var sRecordId = oRecord.getId();
++            var tracker = this._aSelections || [];
++            for(var j=tracker.length-1; j>-1; j--) {
++                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
++                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
++                    tracker.splice(j,1);
++                }
++            }
++    
++            // Delete Record from RecordSet
++            var oData = this._oRecordSet.deleteRecord(nRecordIndex);
++    
++            // Update the UI
++            if(oData) {
++                // If paginated and the deleted row was on this or a prior page, just
++                // re-render
++                var oPaginator = this.get('paginator');
++                if (oPaginator) {
++                    // Update the paginator's totalRecords
++                    var totalRecords = oPaginator.get('totalRecords'),
++                        // must capture before the totalRecords change because
++                        // Paginator shifts to previous page automatically
++                        rng = oPaginator.getPageRecords();
++
++                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                        oPaginator.set('totalRecords',totalRecords - 1);
++                    }
++    
++                    // The deleted record was on this or a prior page, re-render
++                    if (!rng || nRecordIndex <= rng[1]) {
++                        this.render();
++                    }
++
++                    this._oChainRender.add({
++                        method: function() {
++                            if((this instanceof DT) && this._sId) {
++                                this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex, oldData:oData, trElIndex:nTrIndex});
++                                YAHOO.log("Deleted row with data " + YAHOO.lang.dump(oData) + " at RecordSet index " + nRecordIndex + " and page row index " + nTrIndex, "info", this.toString());     
++                            }
++                        },
++                        scope: this,
++                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                }
++                // Not paginated
++                else {
++                    if(lang.isNumber(nTrIndex)) {
++                        this._oChainRender.add({
++                            method: function() {
++                                if((this instanceof DT) && this._sId) {
++                                    var isLast = (nRecordIndex === this._oRecordSet.getLength());//(nTrIndex == this.getLastTrEl().sectionRowIndex);
++                                    this._deleteTrEl(nTrIndex);
++                    
++                                    // Post-delete tasks
++                                    if(this._elTbody.rows.length > 0) {
++                                        // Set FIRST/LAST
++                                        if(nTrIndex === 0) {
++                                            this._setFirstRow();
++                                        }
++                                        if(isLast) {
++                                            this._setLastRow();
++                                        }
++                                        // Set EVEN/ODD
++                                        if(nTrIndex != this._elTbody.rows.length) {
++                                            this._setRowStripes(nTrIndex);
++                                        }                                
++                                    }
++                    
++                                    this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex,oldData:oData, trElIndex:nTrIndex});
++                                    YAHOO.log("Deleted row with data " + YAHOO.lang.dump(oData) + " at RecordSet index " + nRecordIndex + " and page row index " + nTrIndex, "info", this.toString());     
++                                }
++                            },
++                            scope: this,
++                            timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                        });
++                        this._runRenderChain();
++                        return;
++                    }
++                }
++            }
++        }
++    }
++    YAHOO.log("Could not delete row: " + row, "warn", this.toString());
++    return null;
++},
++
++/**
++ * Convenience method to delete multiple rows.
++ *
++ * @method deleteRows
++ * @param row {HTMLElement | String | Number} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ * @param count {Number} (optional) How many rows to delete. A negative value
++ * will delete towards the beginning.
++ */
++deleteRows : function(row, count) {
++    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
++    if(lang.isNumber(nRecordIndex)) {
++        var oRecord = this.getRecord(nRecordIndex);
++        if(oRecord) {
++            var nTrIndex = this.getTrIndex(nRecordIndex);
++            
++            // Remove from selection tracker if there
++            var sRecordId = oRecord.getId();
++            var tracker = this._aSelections || [];
++            for(var j=tracker.length-1; j>-1; j--) {
++                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
++                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
++                    tracker.splice(j,1);
++                }
++            }
++    
++            // Delete Record from RecordSet
++            var highIndex = nRecordIndex;
++            var lowIndex = nRecordIndex;
++        
++            // Validate count and account for negative value
++            if(count && lang.isNumber(count)) {
++                highIndex = (count > 0) ? nRecordIndex + count -1 : nRecordIndex;
++                lowIndex = (count > 0) ? nRecordIndex : nRecordIndex + count + 1;
++                count = (count > 0) ? count : count*-1;
++                if(lowIndex < 0) {
++                    lowIndex = 0;
++                    count = highIndex - lowIndex + 1;
++                }
++            }
++            else {
++                count = 1;
++            }
++            
++            var aData = this._oRecordSet.deleteRecords(lowIndex, count);
++    
++            // Update the UI
++            if(aData) {
++                var oPaginator = this.get('paginator'),
++                    loopN = this.get("renderLoopSize");
++                // If paginated and the deleted row was on this or a prior page, just
++                // re-render
++                if (oPaginator) {
++                    // Update the paginator's totalRecords
++                    var totalRecords = oPaginator.get('totalRecords'),
++                        // must capture before the totalRecords change because
++                        // Paginator shifts to previous page automatically
++                        rng = oPaginator.getPageRecords();
++
++                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                        oPaginator.set('totalRecords',totalRecords - aData.length);
++                    }
++    
++                    // The records were on this or a prior page, re-render
++                    if (!rng || lowIndex <= rng[1]) {
++                        this.render();
++                    }
++
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
++                                YAHOO.log("DataTable " + count + " rows deleted starting at index " + lowIndex, "info", this.toString());
++                            }
++                        },
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                    return;
++                }
++                // Not paginated
++                else {
++                    if(lang.isNumber(nTrIndex)) {
++                        // Delete the TR elements starting with highest index
++                        var loopEnd = lowIndex;
++                        var nRowsNeeded = count; // how many needed
++                        this._oChainRender.add({
++                            method: function(oArg) {
++                                if((this instanceof DT) && this._sId) {
++                                    var i = oArg.nCurrentRow,
++                                        len = (loopN > 0) ? (Math.max(i - loopN,loopEnd)-1) : loopEnd-1;
++                                    for(; i>len; --i) {
++                                        this._deleteTrEl(i);
++                                    }
++                                    oArg.nCurrentRow = i;
++                                }
++                            },
++                            iterations: (loopN > 0) ? Math.ceil(count/loopN) : 1,
++                            argument: {nCurrentRow:highIndex},
++                            scope: this,
++                            timeout: (loopN > 0) ? 0 : -1
++                        });
++                        this._oChainRender.add({
++                            method: function() {    
++                                // Post-delete tasks
++                                if(this._elTbody.rows.length > 0) {
++                                    this._setFirstRow();
++                                    this._setLastRow();
++                                    this._setRowStripes();
++                                }
++                                
++                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
++                                YAHOO.log("DataTable " + count + " rows deleted starting at index " + lowIndex, "info", this.toString());
++                            },
++                            scope: this,
++                            timeout: -1 // Needs to run immediately after the DOM deletions above
++                        });
++                        this._runRenderChain();
++                        return;
++                    }
++                }
++            }
++        }
++    }
++    YAHOO.log("Could not delete " + count + " rows at row " + row, "warn", this.toString());
++    return null;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// CELL FUNCTIONS
++
++/**
++ * Outputs markup into the given TD based on given Record.
++ *
++ * @method formatCell
++ * @param elLiner {HTMLElement} The liner DIV element within the TD.
++ * @param oRecord {YAHOO.widget.Record} (Optional) Record instance.
++ * @param oColumn {YAHOO.widget.Column} (Optional) Column instance.
++ */
++formatCell : function(elLiner, oRecord, oColumn) {
++    if(!oRecord) {
++        oRecord = this.getRecord(elLiner);
++    }
++    if(!oColumn) {
++        oColumn = this.getColumn(elLiner.parentNode.cellIndex);
++    }
++
++    if(oRecord && oColumn) {
++        var sField = oColumn.field;
++        var oData = oRecord.getData(sField);
++
++        var fnFormatter = typeof oColumn.formatter === 'function' ?
++                          oColumn.formatter :
++                          DT.Formatter[oColumn.formatter+''] ||
++                          DT.Formatter.defaultFormatter;
++
++        // Apply special formatter
++        if(fnFormatter) {
++            fnFormatter.call(this, elLiner, oRecord, oColumn, oData);
++        }
++        else {
++            elLiner.innerHTML = oData;
++        }
++
++        this.fireEvent("cellFormatEvent", {record:oRecord, column:oColumn, key:oColumn.key, el:elLiner});
++    }
++    else {
++        YAHOO.log("Could not format cell " + elLiner, "error", this.toString());
++    }
++},
++
++/**
++ * For the given row and column, updates the Record with the given data. If the
++ * cell is on current page, the corresponding DOM elements are also updated.
++ *
++ * @method updateCell
++ * @param oRecord {YAHOO.widget.Record} Record instance.
++ * @param oColumn {YAHOO.widget.Column | String | Number} A Column key, or a ColumnSet key index.
++ * @param oData {Object} New data value for the cell.
++ */
++updateCell : function(oRecord, oColumn, oData) {    
++    // Validate Column and Record
++    oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
++    if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
++        var sKey = oColumn.getField(),
++        
++        // Copy data from the Record for the event that gets fired later
++        //var oldData = YAHOO.widget.DataTable._cloneObject(oRecord.getData());
++            oldData = oRecord.getData(sKey);
++
++        // Update Record with new data
++        this._oRecordSet.updateRecordValue(oRecord, sKey, oData);
++    
++        // Update the TD only if row is on current page
++        var elTd = this.getTdEl({record: oRecord, column: oColumn});
++        if(elTd) {
++            this._oChainRender.add({
++                method: function() {
++                    if((this instanceof DT) && this._sId) {
++                        this.formatCell(elTd.firstChild);
++                        this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
++                        YAHOO.log("DataTable cell updated: Record ID = " + oRecord.getId() +
++                                ", Record index = " + this.getRecordIndex(oRecord) +
++                                ", page row index = " + this.getTrIndex(oRecord) +
++                                ", Column key = " + oColumn.getKey(), "info", this.toString());
++                    }
++                },
++                scope: this,
++                timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++            });
++            this._runRenderChain();
++        }
++        else {
++            this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
++            YAHOO.log("DataTable cell updated: Record ID = " + oRecord.getId() +
++                    ", Record index = " + this.getRecordIndex(oRecord) +
++                    ", page row index = " + this.getTrIndex(oRecord) +
++                    ", Column key = " + oColumn.getKey(), "info", this.toString());   
++        }
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// PAGINATION
++/**
++ * Method executed during set() operation for the "paginator" attribute.
++ * Adds and/or severs event listeners between DataTable and Paginator
++ *
++ * @method _updatePaginator
++ * @param newPag {Paginator} Paginator instance (or null) for DataTable to use
++ * @private
++ */
++_updatePaginator : function (newPag) {
++    var oldPag = this.get('paginator');
++    if (oldPag && newPag !== oldPag) {
++        oldPag.unsubscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
++    }
++    if (newPag) {
++        newPag.subscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
++    }
++},
++
++/**
++ * Update the UI infrastructure in response to a "paginator" attribute change.
++ *
++ * @method _handlePaginatorChange
++ * @param e {Object} Change event object containing keys 'type','newValue',
++ *                   and 'prevValue'
++ * @private
++ */
++_handlePaginatorChange : function (e) {
++    if (e.prevValue === e.newValue) { return; }
++
++    var newPag     = e.newValue,
++        oldPag     = e.prevValue,
++        containers = this._defaultPaginatorContainers();
++
++    if (oldPag) {
++        if (oldPag.getContainerNodes()[0] == containers[0]) {
++            oldPag.set('containers',[]);
++        }
++        oldPag.destroy();
++
++        // Convenience: share the default containers if possible.
++        // Otherwise, remove the default containers from the DOM.
++        if (containers[0]) {
++            if (newPag && !newPag.getContainerNodes().length) {
++                newPag.set('containers',containers);
++            } else {
++                // No new Paginator to use existing containers, OR new
++                // Paginator has configured containers.
++                for (var i = containers.length - 1; i >= 0; --i) {
++                    if (containers[i]) {
++                        containers[i].parentNode.removeChild(containers[i]);
++                    }
++                }
++            }
++        }
++    }
++
++    if (!this._bInit) {
++        this.render();
++
++    }
++
++    if (newPag) {
++        this.renderPaginator();
++    }
++
++},
++
++/**
++ * Returns the default containers used for Paginators.  If create param is
++ * passed, the containers will be created and added to the DataTable container.
++ *
++ * @method _defaultPaginatorContainers
++ * @param create {boolean} Create the default containers if not found
++ * @private
++ */
++_defaultPaginatorContainers : function (create) {
++    var above_id = this._sId + '-paginator0',
++        below_id = this._sId + '-paginator1',
++        above    = Dom.get(above_id),
++        below    = Dom.get(below_id);
++
++    if (create && (!above || !below)) {
++        // One above and one below the table
++        if (!above) {
++            above    = document.createElement('div');
++            above.id = above_id;
++            Dom.addClass(above, DT.CLASS_PAGINATOR);
++
++            this._elContainer.insertBefore(above,this._elContainer.firstChild);
++        }
++
++        if (!below) {
++            below    = document.createElement('div');
++            below.id = below_id;
++            Dom.addClass(below, DT.CLASS_PAGINATOR);
++
++            this._elContainer.appendChild(below);
++        }
++    }
++
++    return [above,below];
++},
++
++/**
++ * Calls Paginator's destroy() method
++ *
++ * @method _destroyPaginator
++ * @private
++ */
++_destroyPaginator : function () {
++    var oldPag = this.get('paginator');
++    if (oldPag) {
++        oldPag.destroy();
++    }
++},
++
++/**
++ * Renders the Paginator to the DataTable UI
++ *
++ * @method renderPaginator
++ */
++renderPaginator : function () {
++    var pag = this.get("paginator");
++    if (!pag) { return; }
++
++    // Add the containers if the Paginator is not configured with containers
++    if (!pag.getContainerNodes().length) {
++        pag.set('containers',this._defaultPaginatorContainers(true));
++    }
++
++    pag.render();
++},
++
++/**
++ * Overridable method gives implementers a hook to show loading message before
++ * changing Paginator value.
++ *
++ * @method doBeforePaginatorChange
++ * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
++ * @return {Boolean} Return true to continue changing Paginator value.
++ */
++doBeforePaginatorChange : function(oPaginatorState) {
++    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
++    return true;
++},
++
++/**
++ * Responds to new Pagination states. By default, updates the UI to reflect the
++ * new state. If "dynamicData" is true, current selections are purged before
++ * a request is sent to the DataSource for data for the new state (using the
++ * request returned by "generateRequest()").
++ *  
++ * @method onPaginatorChangeRequest
++ * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
++ */
++onPaginatorChangeRequest : function (oPaginatorState) {
++    var ok = this.doBeforePaginatorChange(oPaginatorState);
++    if(ok) {
++        // Server-side pagination
++        if(this.get("dynamicData")) {
++            // Get the current state
++            var oState = this.getState();
++            
++            // Update pagination values
++            oState.pagination = oPaginatorState;
++    
++            // Get the request for the new state
++            var request = this.get("generateRequest")(oState, this);
++            
++            // Purge selections
++            this.unselectAllRows();
++            this.unselectAllCells();
++            
++            // Get the new data from the server
++            var callback = {
++                success : this.onDataReturnSetRows,
++                failure : this.onDataReturnSetRows,
++                argument : oState, // Pass along the new state to the callback
++                scope : this
++            };
++            this._oDataSource.sendRequest(request, callback);
++        }
++        // Client-side pagination
++        else {
++            // Set the core pagination values silently (the second param)
++            // to avoid looping back through the changeRequest mechanism
++            oPaginatorState.paginator.setStartIndex(oPaginatorState.recordOffset,true);
++            oPaginatorState.paginator.setRowsPerPage(oPaginatorState.rowsPerPage,true);
++    
++            // Update the UI
++            this.render();
++        }
++    }
++    else {
++        YAHOO.log("Could not change Paginator value \"" + oPaginatorState + "\"", "warn", this.toString());
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// SELECTION/HIGHLIGHTING
++
++/*
++ * Reference to last highlighted cell element
++ *
++ * @property _elLastHighlightedTd
++ * @type HTMLElement
++ * @private
++ */
++_elLastHighlightedTd : null,
++
++/*
++ * ID string of last highlighted row element
++ *
++ * @property _sLastHighlightedTrElId
++ * @type String
++ * @private
++ */
++//_sLastHighlightedTrElId : null,
++
++/**
++ * Array to track row selections (by sRecordId) and/or cell selections
++ * (by {recordId:sRecordId, columnKey:sColumnKey})
++ *
++ * @property _aSelections
++ * @type Object[]
++ * @private
++ */
++_aSelections : null,
++
++/**
++ * Record instance of the row selection anchor.
++ *
++ * @property _oAnchorRecord
++ * @type YAHOO.widget.Record
++ * @private
++ */
++_oAnchorRecord : null,
++
++/**
++ * Object literal representing cell selection anchor:
++ * {recordId:sRecordId, columnKey:sColumnKey}.
++ *
++ * @property _oAnchorCell
++ * @type Object
++ * @private
++ */
++_oAnchorCell : null,
++
++/**
++ * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
++ * from all TR elements on the page.
++ *
++ * @method _unselectAllTrEls
++ * @private
++ */
++_unselectAllTrEls : function() {
++    var selectedRows = Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
++    Dom.removeClass(selectedRows, DT.CLASS_SELECTED);
++},
++
++/**
++ * Returns object literal of values that represent the selection trigger. Used
++ * to determine selection behavior resulting from a key event.
++ *
++ * @method _getSelectionTrigger
++ * @private
++ */
++_getSelectionTrigger : function() {
++    var sMode = this.get("selectionMode");
++    var oTrigger = {};
++    var oTriggerCell, oTriggerRecord, nTriggerRecordIndex, elTriggerRow, nTriggerTrIndex;
++
++    // Cell mode
++    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
++        oTriggerCell = this.getLastSelectedCell();
++        // No selected cells found
++        if(!oTriggerCell) {
++            return null;
++        }
++        else {
++            oTriggerRecord = this.getRecord(oTriggerCell.recordId);
++            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
++            elTriggerRow = this.getTrEl(oTriggerRecord);
++            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
++
++            // Selected cell not found on this page
++            if(nTriggerTrIndex === null) {
++                return null;
++            }
++            else {
++                oTrigger.record = oTriggerRecord;
++                oTrigger.recordIndex = nTriggerRecordIndex;
++                oTrigger.el = this.getTdEl(oTriggerCell);
++                oTrigger.trIndex = nTriggerTrIndex;
++                oTrigger.column = this.getColumn(oTriggerCell.columnKey);
++                oTrigger.colKeyIndex = oTrigger.column.getKeyIndex();
++                oTrigger.cell = oTriggerCell;
++                return oTrigger;
++            }
++        }
++    }
++    // Row mode
++    else {
++        oTriggerRecord = this.getLastSelectedRecord();
++        // No selected rows found
++        if(!oTriggerRecord) {
++                return null;
++        }
++        else {
++            // Selected row found, but is it on current page?
++            oTriggerRecord = this.getRecord(oTriggerRecord);
++            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
++            elTriggerRow = this.getTrEl(oTriggerRecord);
++            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
++
++            // Selected row not found on this page
++            if(nTriggerTrIndex === null) {
++                return null;
++            }
++            else {
++                oTrigger.record = oTriggerRecord;
++                oTrigger.recordIndex = nTriggerRecordIndex;
++                oTrigger.el = elTriggerRow;
++                oTrigger.trIndex = nTriggerTrIndex;
++                return oTrigger;
++            }
++        }
++    }
++},
++
++/**
++ * Returns object literal of values that represent the selection anchor. Used
++ * to determine selection behavior resulting from a user event.
++ *
++ * @method _getSelectionAnchor
++ * @param oTrigger {Object} (Optional) Object literal of selection trigger values
++ * (for key events).
++ * @private
++ */
++_getSelectionAnchor : function(oTrigger) {
++    var sMode = this.get("selectionMode");
++    var oAnchor = {};
++    var oAnchorRecord, nAnchorRecordIndex, nAnchorTrIndex;
++
++    // Cell mode
++    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
++        // Validate anchor cell
++        var oAnchorCell = this._oAnchorCell;
++        if(!oAnchorCell) {
++            if(oTrigger) {
++                oAnchorCell = this._oAnchorCell = oTrigger.cell;
++            }
++            else {
++                return null;
++            }
++        }
++        oAnchorRecord = this._oAnchorCell.record;
++        nAnchorRecordIndex = this._oRecordSet.getRecordIndex(oAnchorRecord);
++        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
++        // If anchor cell is not on this page...
++        if(nAnchorTrIndex === null) {
++            // ...set TR index equal to top TR
++            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
++                nAnchorTrIndex = 0;
++            }
++            // ...set TR index equal to bottom TR
++            else {
++                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
++            }
++        }
++
++        oAnchor.record = oAnchorRecord;
++        oAnchor.recordIndex = nAnchorRecordIndex;
++        oAnchor.trIndex = nAnchorTrIndex;
++        oAnchor.column = this._oAnchorCell.column;
++        oAnchor.colKeyIndex = oAnchor.column.getKeyIndex();
++        oAnchor.cell = oAnchorCell;
++        return oAnchor;
++    }
++    // Row mode
++    else {
++        oAnchorRecord = this._oAnchorRecord;
++        if(!oAnchorRecord) {
++            if(oTrigger) {
++                oAnchorRecord = this._oAnchorRecord = oTrigger.record;
++            }
++            else {
++                return null;
++            }
++        }
++
++        nAnchorRecordIndex = this.getRecordIndex(oAnchorRecord);
++        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
++        // If anchor row is not on this page...
++        if(nAnchorTrIndex === null) {
++            // ...set TR index equal to top TR
++            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
++                nAnchorTrIndex = 0;
++            }
++            // ...set TR index equal to bottom TR
++            else {
++                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
++            }
++        }
++
++        oAnchor.record = oAnchorRecord;
++        oAnchor.recordIndex = nAnchorRecordIndex;
++        oAnchor.trIndex = nAnchorTrIndex;
++        return oAnchor;
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "standard".
++ *
++ * @method _handleStandardSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleStandardSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target row
++    var elTargetRow = this.getTrEl(elTarget);
++    if(elTargetRow) {
++        var e = oArgs.event;
++        var bSHIFT = e.shiftKey;
++        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
++
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
++
++        var oAnchor = this._getSelectionAnchor();
++
++        var i;
++
++        // Both SHIFT and CTRL
++        if(bSHIFT && bCTRL) {
++            // Validate anchor
++            if(oAnchor) {
++                if(this.isSelected(oAnchor.record)) {
++                    // Select all rows between anchor row and target row, including target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex; i++) {
++                            if(!this.isSelected(i)) {
++                                this.selectRow(i);
++                            }
++                        }
++                    }
++                    // Select all rows between target row and anchor row, including target row
++                    else {
++                        for(i=oAnchor.recordIndex-1; i>=nTargetRecordIndex; i--) {
++                            if(!this.isSelected(i)) {
++                                this.selectRow(i);
++                            }
++                        }
++                    }
++                }
++                else {
++                    // Unselect all rows between anchor row and target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex-1; i++) {
++                            if(this.isSelected(i)) {
++                                this.unselectRow(i);
++                            }
++                        }
++                    }
++                    // Unselect all rows between target row and anchor row
++                    else {
++                        for(i=nTargetRecordIndex+1; i<=oAnchor.recordIndex-1; i++) {
++                            if(this.isSelected(i)) {
++                                this.unselectRow(i);
++                            }
++                        }
++                    }
++                    // Select the target row
++                    this.selectRow(oTargetRecord);
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorRecord = oTargetRecord;
++
++                // Toggle selection of target
++                if(this.isSelected(oTargetRecord)) {
++                    this.unselectRow(oTargetRecord);
++                }
++                else {
++                    this.selectRow(oTargetRecord);
++                }
++            }
++        }
++         // Only SHIFT
++        else if(bSHIFT) {
++            this.unselectAllRows();
++
++            // Validate anchor
++            if(oAnchor) {
++                // Select all rows between anchor row and target row,
++                // including the anchor row and target row
++                if(oAnchor.recordIndex < nTargetRecordIndex) {
++                    for(i=oAnchor.recordIndex; i<=nTargetRecordIndex; i++) {
++                        this.selectRow(i);
++                    }
++                }
++                // Select all rows between target row and anchor row,
++                // including the target row and anchor row
++                else {
++                    for(i=oAnchor.recordIndex; i>=nTargetRecordIndex; i--) {
++                        this.selectRow(i);
++                    }
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorRecord = oTargetRecord;
++
++                // Select target row only
++                this.selectRow(oTargetRecord);
++            }
++        }
++        // Only CTRL
++        else if(bCTRL) {
++            // Set anchor
++            this._oAnchorRecord = oTargetRecord;
++
++            // Toggle selection of target
++            if(this.isSelected(oTargetRecord)) {
++                this.unselectRow(oTargetRecord);
++            }
++            else {
++                this.selectRow(oTargetRecord);
++            }
++        }
++        // Neither SHIFT nor CTRL
++        else {
++            this._handleSingleSelectionByMouse(oArgs);
++            return;
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "standard".
++ *
++ * @method _handleStandardSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleStandardSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++
++    if((nKey == 38) || (nKey == 40)) {
++        var bSHIFT = e.shiftKey;
++
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Validate anchor
++        var oAnchor = this._getSelectionAnchor(oTrigger);
++
++        // Determine which direction we're going to
++        if(bSHIFT) {
++            // Selecting down away from anchor row
++            if((nKey == 40) && (oAnchor.recordIndex <= oTrigger.trIndex)) {
++                this.selectRow(this.getNextTrEl(oTrigger.el));
++            }
++            // Selecting up away from anchor row
++            else if((nKey == 38) && (oAnchor.recordIndex >= oTrigger.trIndex)) {
++                this.selectRow(this.getPreviousTrEl(oTrigger.el));
++            }
++            // Unselect trigger
++            else {
++                this.unselectRow(oTrigger.el);
++            }
++        }
++        else {
++            this._handleSingleSelectionByKey(e);
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "single".
++ *
++ * @method _handleSingleSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleSingleSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target row
++    var elTargetRow = this.getTrEl(elTarget);
++    if(elTargetRow) {
++        var oTargetRecord = this.getRecord(elTargetRow);
++
++        // Set anchor
++        this._oAnchorRecord = oTargetRecord;
++
++        // Select only target
++        this.unselectAllRows();
++        this.selectRow(oTargetRecord);
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "single".
++ *
++ * @method _handleSingleSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleSingleSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++
++    if((nKey == 38) || (nKey == 40)) {
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Determine the new row to select
++        var elNew;
++        if(nKey == 38) { // arrow up
++            elNew = this.getPreviousTrEl(oTrigger.el);
++
++            // Validate new row
++            if(elNew === null) {
++                //TODO: wrap around to last tr on current page
++                //elNew = this.getLastTrEl();
++
++                //TODO: wrap back to last tr of previous page
++
++                // Top row selection is sticky
++                elNew = this.getFirstTrEl();
++            }
++        }
++        else if(nKey == 40) { // arrow down
++            elNew = this.getNextTrEl(oTrigger.el);
++
++            // Validate new row
++            if(elNew === null) {
++                //TODO: wrap around to first tr on current page
++                //elNew = this.getFirstTrEl();
++
++                //TODO: wrap forward to first tr of previous page
++
++                // Bottom row selection is sticky
++                elNew = this.getLastTrEl();
++            }
++        }
++
++        // Unselect all rows
++        this.unselectAllRows();
++
++        // Select the new row
++        this.selectRow(elNew);
++
++        // Set new anchor
++        this._oAnchorRecord = this.getRecord(elNew);
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "cellblock".
++ *
++ * @method _handleCellBlockSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleCellBlockSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target cell
++    var elTargetCell = this.getTdEl(elTarget);
++    if(elTargetCell) {
++        var e = oArgs.event;
++        var bSHIFT = e.shiftKey;
++        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
++
++        var elTargetRow = this.getTrEl(elTargetCell);
++        var nTargetTrIndex = this.getTrIndex(elTargetRow);
++        var oTargetColumn = this.getColumn(elTargetCell);
++        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
++        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
++
++        var oAnchor = this._getSelectionAnchor();
++
++        var allRows = this.getTbodyEl().rows;
++        var startIndex, endIndex, currentRow, i, j;
++
++        // Both SHIFT and CTRL
++        if(bSHIFT && bCTRL) {
++
++            // Validate anchor
++            if(oAnchor) {
++                // Anchor is selected
++                if(this.isSelected(oAnchor.cell)) {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Select all cells between anchor cell and target cell, including target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell, including target cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
++                        endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
++
++                        // Select all cells from startIndex to endIndex on rows between anchor row and target row
++                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                            for(j=startIndex; j<=endIndex; j++) {
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        startIndex = Math.min(oAnchor.trIndex, nTargetColKeyIndex);
++                        endIndex = Math.max(oAnchor.trIndex, nTargetColKeyIndex);
++
++                        // Select all cells from startIndex to endIndex on rows between target row and anchor row
++                        for(i=oAnchor.trIndex; i>=nTargetTrIndex; i--) {
++                            for(j=endIndex; j>=startIndex; j--) {
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++                    }
++                }
++                // Anchor cell is unselected
++                else {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Unselect all cells between anchor cell and target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        // Unselect all cells from anchor cell to target cell
++                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the anchor row, only unselect cells after the anchor cell
++                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
++                                    if(j>oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the target row, only unelect cells before the target cell
++                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
++                                    if(j<nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        // Unselect all cells from target cell to anchor cell
++                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the target row, only unselect cells after the target cell
++                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                    if(j>nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the anchor row, only unselect cells before the anchor cell
++                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                    if(j<oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++
++                    // Select the target cell
++                    this.selectCell(elTargetCell);
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Toggle selection of target
++                if(this.isSelected(oTargetCell)) {
++                    this.unselectCell(oTargetCell);
++                }
++                else {
++                    this.selectCell(oTargetCell);
++                }
++            }
++
++        }
++         // Only SHIFT
++        else if(bSHIFT) {
++            this.unselectAllCells();
++
++            // Validate anchor
++            if(oAnchor) {
++                // All cells are on the same row
++                if(oAnchor.recordIndex === nTargetRecordIndex) {
++                    // Select all cells between anchor cell and target cell,
++                    // including the anchor cell and target cell
++                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                    // Select all cells between target cell and anchor cell
++                    // including the target cell and anchor cell
++                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                }
++                // Anchor row is above target row
++                else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                    // Select the cellblock from anchor cell to target cell
++                    // including the anchor cell and the target cell
++                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
++                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
++
++                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                        for(j=startIndex; j<=endIndex; j++) {
++                            this.selectCell(allRows[i].cells[j]);
++                        }
++                    }
++                }
++                // Anchor row is below target row
++                else {
++                    // Select the cellblock from target cell to anchor cell
++                    // including the target cell and the anchor cell
++                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
++                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
++
++                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                        for(j=startIndex; j<=endIndex; j++) {
++                            this.selectCell(allRows[i].cells[j]);
++                        }
++                    }
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Select target only
++                this.selectCell(oTargetCell);
++            }
++        }
++        // Only CTRL
++        else if(bCTRL) {
++
++            // Set anchor
++            this._oAnchorCell = oTargetCell;
++
++            // Toggle selection of target
++            if(this.isSelected(oTargetCell)) {
++                this.unselectCell(oTargetCell);
++            }
++            else {
++                this.selectCell(oTargetCell);
++            }
++
++        }
++        // Neither SHIFT nor CTRL
++        else {
++            this._handleSingleCellSelectionByMouse(oArgs);
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "cellblock".
++ *
++ * @method _handleCellBlockSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleCellBlockSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++    var bSHIFT = e.shiftKey;
++    if((nKey == 9) || !bSHIFT) {
++        this._handleSingleCellSelectionByKey(e);
++        return;
++    }
++
++    if((nKey > 36) && (nKey < 41)) {
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Validate anchor
++        var oAnchor = this._getSelectionAnchor(oTrigger);
++
++        var i, startIndex, endIndex, elNew, elNewRow;
++        var allRows = this.getTbodyEl().rows;
++        var elThisRow = oTrigger.el.parentNode;
++
++        // Determine which direction we're going to
++
++        if(nKey == 40) { // arrow down
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
++                // Select the horiz block on the next row...
++                // ...making sure there is room below the trigger row
++                elNewRow = this.getNextTrEl(oTrigger.el);
++                if(elNewRow) {
++                    startIndex = oAnchor.colKeyIndex;
++                    endIndex = oTrigger.colKeyIndex;
++                    // ...going left
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going right
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                // Unselect the horiz block on this row towards the next row
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++            }
++        }
++        // Arrow up
++        else if(nKey == 38) {
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
++                // Select the horiz block on the previous row...
++                // ...making sure there is room
++                elNewRow = this.getPreviousTrEl(oTrigger.el);
++                if(elNewRow) {
++                    // Select in order from anchor to trigger...
++                    startIndex = oAnchor.colKeyIndex;
++                    endIndex = oTrigger.colKeyIndex;
++                    // ...going left
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going right
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                // Unselect the horiz block on this row towards the previous row
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++            }
++        }
++        // Arrow right
++        else if(nKey == 39) {
++            // Selecting away from anchor cell
++            if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
++                // Select the next vert block to the right...
++                // ...making sure there is room
++                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                    // Select in order from anchor to trigger...
++                    startIndex = oAnchor.trIndex;
++                    endIndex = oTrigger.trIndex;
++                    // ...going up
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going down
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect the vert block on this column towards the right
++                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
++                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
++                }
++            }
++        }
++        // Arrow left
++        else if(nKey == 37) {
++            // Selecting away from anchor cell
++            if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
++                //Select the previous vert block to the left
++                if(oTrigger.colKeyIndex > 0) {
++                    // Select in order from anchor to trigger...
++                    startIndex = oAnchor.trIndex;
++                    endIndex = oTrigger.trIndex;
++                    // ...going up
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going down
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect the vert block on this column towards the left
++                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
++                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "cellrange".
++ *
++ * @method _handleCellRangeSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleCellRangeSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target cell
++    var elTargetCell = this.getTdEl(elTarget);
++    if(elTargetCell) {
++        var e = oArgs.event;
++        var bSHIFT = e.shiftKey;
++        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
++
++        var elTargetRow = this.getTrEl(elTargetCell);
++        var nTargetTrIndex = this.getTrIndex(elTargetRow);
++        var oTargetColumn = this.getColumn(elTargetCell);
++        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
++        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
++
++        var oAnchor = this._getSelectionAnchor();
++
++        var allRows = this.getTbodyEl().rows;
++        var currentRow, i, j;
++
++        // Both SHIFT and CTRL
++        if(bSHIFT && bCTRL) {
++
++            // Validate anchor
++            if(oAnchor) {
++                // Anchor is selected
++                if(this.isSelected(oAnchor.cell)) {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Select all cells between anchor cell and target cell, including target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell, including target cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        // Select all cells on anchor row from anchor cell to the end of the row
++                        for(i=oAnchor.colKeyIndex+1; i<elTargetRow.cells.length; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++
++                        // Select all cells on all rows between anchor row and target row
++                        for(i=oAnchor.trIndex+1; i<nTargetTrIndex; i++) {
++                            for(j=0; j<allRows[i].cells.length; j++){
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++
++                        // Select all cells on target row from first cell to the target cell
++                        for(i=0; i<=nTargetColKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        // Select all cells on target row from target cell to the end of the row
++                        for(i=nTargetColKeyIndex; i<elTargetRow.cells.length; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++
++                        // Select all cells on all rows between target row and anchor row
++                        for(i=nTargetTrIndex+1; i<oAnchor.trIndex; i++) {
++                            for(j=0; j<allRows[i].cells.length; j++){
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++
++                        // Select all cells on anchor row from first cell to the anchor cell
++                        for(i=0; i<oAnchor.colKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                }
++                // Anchor cell is unselected
++                else {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Unselect all cells between anchor cell and target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        // Unselect all cells from anchor cell to target cell
++                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the anchor row, only unselect cells after the anchor cell
++                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
++                                    if(j>oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the target row, only unelect cells before the target cell
++                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
++                                    if(j<nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        // Unselect all cells from target cell to anchor cell
++                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the target row, only unselect cells after the target cell
++                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                    if(j>nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the anchor row, only unselect cells before the anchor cell
++                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                    if(j<oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++
++                    // Select the target cell
++                    this.selectCell(elTargetCell);
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Toggle selection of target
++                if(this.isSelected(oTargetCell)) {
++                    this.unselectCell(oTargetCell);
++                }
++                else {
++                    this.selectCell(oTargetCell);
++                }
++            }
++        }
++         // Only SHIFT
++        else if(bSHIFT) {
++
++            this.unselectAllCells();
++
++            // Validate anchor
++            if(oAnchor) {
++                // All cells are on the same row
++                if(oAnchor.recordIndex === nTargetRecordIndex) {
++                    // Select all cells between anchor cell and target cell,
++                    // including the anchor cell and target cell
++                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                    // Select all cells between target cell and anchor cell
++                    // including the target cell and anchor cell
++                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                }
++                // Anchor row is above target row
++                else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                    // Select all cells from anchor cell to target cell
++                    // including the anchor cell and target cell
++                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                        currentRow = allRows[i];
++                        for(j=0; j<currentRow.cells.length; j++) {
++                            // This is the anchor row, only select the anchor cell and after
++                            if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                if(j>=oAnchor.colKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // This is the target row, only select the target cell and before
++                            else if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                if(j<=nTargetColKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // Select all cells on this row
++                            else {
++                                this.selectCell(currentRow.cells[j]);
++                            }
++                        }
++                    }
++                }
++                // Anchor row is below target row
++                else {
++                    // Select all cells from target cell to anchor cell,
++                    // including the target cell and anchor cell
++                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                        currentRow = allRows[i];
++                        for(j=0; j<currentRow.cells.length; j++) {
++                            // This is the target row, only select the target cell and after
++                            if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                if(j>=nTargetColKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // This is the anchor row, only select the anchor cell and before
++                            else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                if(j<=oAnchor.colKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // Select all cells on this row
++                            else {
++                                this.selectCell(currentRow.cells[j]);
++                            }
++                        }
++                    }
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Select target only
++                this.selectCell(oTargetCell);
++            }
++
++
++        }
++        // Only CTRL
++        else if(bCTRL) {
++
++            // Set anchor
++            this._oAnchorCell = oTargetCell;
++
++            // Toggle selection of target
++            if(this.isSelected(oTargetCell)) {
++                this.unselectCell(oTargetCell);
++            }
++            else {
++                this.selectCell(oTargetCell);
++            }
++
++        }
++        // Neither SHIFT nor CTRL
++        else {
++            this._handleSingleCellSelectionByMouse(oArgs);
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "cellrange".
++ *
++ * @method _handleCellRangeSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleCellRangeSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++    var bSHIFT = e.shiftKey;
++    if((nKey == 9) || !bSHIFT) {
++        this._handleSingleCellSelectionByKey(e);
++        return;
++    }
++
++    if((nKey > 36) && (nKey < 41)) {
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Validate anchor
++        var oAnchor = this._getSelectionAnchor(oTrigger);
++
++        var i, elNewRow, elNew;
++        var allRows = this.getTbodyEl().rows;
++        var elThisRow = oTrigger.el.parentNode;
++
++        // Arrow down
++        if(nKey == 40) {
++            elNewRow = this.getNextTrEl(oTrigger.el);
++
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
++                // Select all cells to the end of this row
++                for(i=oTrigger.colKeyIndex+1; i<elThisRow.cells.length; i++){
++                    elNew = elThisRow.cells[i];
++                    this.selectCell(elNew);
++                }
++
++                // Select some of the cells on the next row down
++                if(elNewRow) {
++                    for(i=0; i<=oTrigger.colKeyIndex; i++){
++                        elNew = elNewRow.cells[i];
++                        this.selectCell(elNew);
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect all cells to the end of this row
++                for(i=oTrigger.colKeyIndex; i<elThisRow.cells.length; i++){
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++
++                // Unselect some of the cells on the next row down
++                if(elNewRow) {
++                    for(i=0; i<oTrigger.colKeyIndex; i++){
++                        this.unselectCell(elNewRow.cells[i]);
++                    }
++                }
++            }
++        }
++        // Arrow up
++        else if(nKey == 38) {
++            elNewRow = this.getPreviousTrEl(oTrigger.el);
++
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
++                // Select all the cells to the beginning of this row
++                for(i=oTrigger.colKeyIndex-1; i>-1; i--){
++                    elNew = elThisRow.cells[i];
++                    this.selectCell(elNew);
++                }
++
++                // Select some of the cells from the end of the previous row
++                if(elNewRow) {
++                    for(i=elThisRow.cells.length-1; i>=oTrigger.colKeyIndex; i--){
++                        elNew = elNewRow.cells[i];
++                        this.selectCell(elNew);
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect all the cells to the beginning of this row
++                for(i=oTrigger.colKeyIndex; i>-1; i--){
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++
++                // Unselect some of the cells from the end of the previous row
++                if(elNewRow) {
++                    for(i=elThisRow.cells.length-1; i>oTrigger.colKeyIndex; i--){
++                        this.unselectCell(elNewRow.cells[i]);
++                    }
++                }
++            }
++        }
++        // Arrow right
++        else if(nKey == 39) {
++            elNewRow = this.getNextTrEl(oTrigger.el);
++
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex < oTrigger.recordIndex) {
++                // Select the next cell to the right
++                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                    elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
++                    this.selectCell(elNew);
++                }
++                // Select the first cell of the next row
++                else if(elNewRow) {
++                    elNew = elNewRow.cells[0];
++                    this.selectCell(elNew);
++                }
++            }
++            // Unselecting towards anchor cell
++            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
++                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++
++                // Unselect this cell towards the right
++                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                }
++                // Unselect this cells towards the first cell of the next row
++                else {
++                }
++            }
++            // Anchor is on this row
++            else {
++                // Selecting away from anchor
++                if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
++                    // Select the next cell to the right
++                    if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                        elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
++                        this.selectCell(elNew);
++                    }
++                    // Select the first cell on the next row
++                    else if(oTrigger.trIndex < allRows.length-1){
++                        elNew = elNewRow.cells[0];
++                        this.selectCell(elNew);
++                    }
++                }
++                // Unselecting towards anchor
++                else {
++                    // Unselect this cell towards the right
++                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++                }
++            }
++        }
++        // Arrow left
++        else if(nKey == 37) {
++            elNewRow = this.getPreviousTrEl(oTrigger.el);
++
++            // Unselecting towards the anchor
++            if(oAnchor.recordIndex < oTrigger.recordIndex) {
++                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++
++                // Unselect this cell towards the left
++                if(oTrigger.colKeyIndex > 0) {
++                }
++                // Unselect this cell towards the last cell of the previous row
++                else {
++                }
++            }
++            // Selecting towards the anchor
++            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
++                // Select the next cell to the left
++                if(oTrigger.colKeyIndex > 0) {
++                    elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
++                    this.selectCell(elNew);
++                }
++                // Select the last cell of the previous row
++                else if(oTrigger.trIndex > 0){
++                    elNew = elNewRow.cells[elNewRow.cells.length-1];
++                    this.selectCell(elNew);
++                }
++            }
++            // Anchor is on this row
++            else {
++                // Selecting away from anchor cell
++                if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
++                    // Select the next cell to the left
++                    if(oTrigger.colKeyIndex > 0) {
++                        elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
++                        this.selectCell(elNew);
++                    }
++                    // Select the last cell of the previous row
++                    else if(oTrigger.trIndex > 0){
++                        elNew = elNewRow.cells[elNewRow.cells.length-1];
++                        this.selectCell(elNew);
++                    }
++                }
++                // Unselecting towards anchor cell
++                else {
++                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++
++                    // Unselect this cell towards the left
++                    if(oTrigger.colKeyIndex > 0) {
++                    }
++                    // Unselect this cell towards the last cell of the previous row
++                    else {
++                    }
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "singlecell".
++ *
++ * @method _handleSingleCellSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleSingleCellSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target cell
++    var elTargetCell = this.getTdEl(elTarget);
++    if(elTargetCell) {
++        var elTargetRow = this.getTrEl(elTargetCell);
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var oTargetColumn = this.getColumn(elTargetCell);
++        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
++
++        // Set anchor
++        this._oAnchorCell = oTargetCell;
++
++        // Select only target
++        this.unselectAllCells();
++        this.selectCell(oTargetCell);
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "singlecell".
++ *
++ * @method _handleSingleCellSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleSingleCellSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++    if((nKey == 9) || ((nKey > 36) && (nKey < 41))) {
++        var bSHIFT = e.shiftKey;
++
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        // Determine the new cell to select
++        var elNew;
++        if(nKey == 40) { // Arrow down
++            elNew = this.getBelowTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to first tr on current page
++
++                //TODO: wrap forward to first tr of next page
++
++                // Bottom selection is sticky
++                elNew = oTrigger.el;
++            }
++        }
++        else if(nKey == 38) { // Arrow up
++            elNew = this.getAboveTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to last tr on current page
++
++                //TODO: wrap back to last tr of previous page
++
++                // Top selection is sticky
++                elNew = oTrigger.el;
++            }
++        }
++        else if((nKey == 39) || (!bSHIFT && (nKey == 9))) { // Arrow right or tab
++            elNew = this.getNextTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to first td on current page
++
++                //TODO: wrap forward to first td of next page
++
++                // Top-left selection is sticky, and release TAB focus
++                //elNew = oTrigger.el;
++                return;
++            }
++        }
++        else if((nKey == 37) || (bSHIFT && (nKey == 9))) { // Arrow left or shift-tab
++            elNew = this.getPreviousTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to last td on current page
++
++                //TODO: wrap back to last td of previous page
++
++                // Bottom-right selection is sticky, and release TAB focus
++                //elNew = oTrigger.el;
++                return;
++            }
++        }
++
++        Ev.stopEvent(e);
++        
++        // Unselect all cells
++        this.unselectAllCells();
++
++        // Select the new cell
++        this.selectCell(elNew);
++
++        // Set new anchor
++        this._oAnchorCell = {record:this.getRecord(elNew), column:this.getColumn(elNew)};
++    }
++},
++
++/**
++ * Returns array of selected TR elements on the page.
++ *
++ * @method getSelectedTrEls
++ * @return {HTMLElement[]} Array of selected TR elements.
++ */
++getSelectedTrEls : function() {
++    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
++},
++
++/**
++ * Sets given row to the selected state.
++ *
++ * @method selectRow
++ * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
++ * reference or ID string, Record instance, or RecordSet position index.
++ */
++selectRow : function(row) {
++    var oRecord, elRow;
++
++    if(row instanceof YAHOO.widget.Record) {
++        oRecord = this._oRecordSet.getRecord(row);
++        elRow = this.getTrEl(oRecord);
++    }
++    else if(lang.isNumber(row)) {
++        oRecord = this.getRecord(row);
++        elRow = this.getTrEl(oRecord);
++    }
++    else {
++        elRow = this.getTrEl(row);
++        oRecord = this.getRecord(elRow);
++    }
++
++    if(oRecord) {
++        // Update selection trackers
++        var tracker = this._aSelections || [];
++        var sRecordId = oRecord.getId();
++        var index = -1;
++
++        // Remove if already there:
++        // Use Array.indexOf if available...
++        /*if(tracker.indexOf && (tracker.indexOf(sRecordId) >  -1)) {
++            tracker.splice(tracker.indexOf(sRecordId),1);
++        }*/
++        if(tracker.indexOf) {
++            index = tracker.indexOf(sRecordId);
++            
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var j=tracker.length-1; j>-1; j--) {
++                if(tracker[j] === sRecordId){
++                    index = j;
++                    break;
++                }
++            }
++        }
++        if(index > -1) {
++            tracker.splice(index,1);
++        }
++        
++        // Add to the end
++        tracker.push(sRecordId);
++        this._aSelections = tracker;
++
++        // Update trackers
++        if(!this._oAnchorRecord) {
++            this._oAnchorRecord = oRecord;
++        }
++
++        // Update UI
++        if(elRow) {
++            Dom.addClass(elRow, DT.CLASS_SELECTED);
++        }
++
++        this.fireEvent("rowSelectEvent", {record:oRecord, el:elRow});
++        YAHOO.log("Selected " + elRow, "info", this.toString());
++    }
++    else {
++        YAHOO.log("Could not select row " + row, "warn", this.toString());
++    }
++},
++
++/**
++ * Sets given row to the unselected state.
++ *
++ * @method unselectRow
++ * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
++ * reference or ID string, Record instance, or RecordSet position index.
++ */
++unselectRow : function(row) {
++    var elRow = this.getTrEl(row);
++
++    var oRecord;
++    if(row instanceof YAHOO.widget.Record) {
++        oRecord = this._oRecordSet.getRecord(row);
++    }
++    else if(lang.isNumber(row)) {
++        oRecord = this.getRecord(row);
++    }
++    else {
++        oRecord = this.getRecord(elRow);
++    }
++
++    if(oRecord) {
++        // Update selection trackers
++        var tracker = this._aSelections || [];
++        var sRecordId = oRecord.getId();
++        var index = -1;
++
++        // Use Array.indexOf if available...
++        if(tracker.indexOf) {
++            index = tracker.indexOf(sRecordId);
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var j=tracker.length-1; j>-1; j--) {
++                if(tracker[j] === sRecordId){
++                    index = j;
++                    break;
++                }
++            }
++        }
++        if(index > -1) {
++            // Update tracker
++            tracker.splice(index,1);
++            this._aSelections = tracker;
++
++            // Update the UI
++            Dom.removeClass(elRow, DT.CLASS_SELECTED);
++
++            this.fireEvent("rowUnselectEvent", {record:oRecord, el:elRow});
++            YAHOO.log("Unselected " + elRow, "info", this.toString());
++
++            return;
++        }
++    }
++    YAHOO.log("Could not unselect row " + row, "warn", this.toString());
++},
++
++/**
++ * Clears out all row selections.
++ *
++ * @method unselectAllRows
++ */
++unselectAllRows : function() {
++    // Remove all rows from tracker
++    var tracker = this._aSelections || [],
++        recId,
++        removed = [];
++    for(var j=tracker.length-1; j>-1; j--) {
++       if(lang.isString(tracker[j])){
++            recId = tracker.splice(j,1);
++            removed[removed.length] = this.getRecord(lang.isArray(recId) ? recId[0] : recId);
++        }
++    }
++
++    // Update tracker
++    this._aSelections = tracker;
++
++    // Update UI
++    this._unselectAllTrEls();
++
++    this.fireEvent("unselectAllRowsEvent", {records: removed});
++    YAHOO.log("Unselected all rows", "info", this.toString());
++},
++
++/**
++ * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
++ * from all TD elements in the internal tracker.
++ *
++ * @method _unselectAllTdEls
++ * @private
++ */
++_unselectAllTdEls : function() {
++    var selectedCells = Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
++    Dom.removeClass(selectedCells, DT.CLASS_SELECTED);
++},
++
++/**
++ * Returns array of selected TD elements on the page.
++ *
++ * @method getSelectedTdEls
++ * @return {HTMLElement[]} Array of selected TD elements.
++ */
++getSelectedTdEls : function() {
++    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
++},
++
++/**
++ * Sets given cell to the selected state.
++ *
++ * @method selectCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ */
++selectCell : function(cell) {
++//TODO: accept {record} in selectCell()
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        var oRecord = this.getRecord(elCell);
++        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
++
++        if(oRecord && sColumnKey) {
++            // Get Record ID
++            var tracker = this._aSelections || [];
++            var sRecordId = oRecord.getId();
++
++            // Remove if there
++            for(var j=tracker.length-1; j>-1; j--) {
++               if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
++                    tracker.splice(j,1);
++                    break;
++                }
++            }
++
++            // Add to the end
++            tracker.push({recordId:sRecordId, columnKey:sColumnKey});
++
++            // Update trackers
++            this._aSelections = tracker;
++            if(!this._oAnchorCell) {
++                this._oAnchorCell = {record:oRecord, column:this.getColumn(sColumnKey)};
++            }
++
++            // Update the UI
++            Dom.addClass(elCell, DT.CLASS_SELECTED);
++
++            this.fireEvent("cellSelectEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key: this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++            YAHOO.log("Selected " + elCell, "info", this.toString());
++            return;
++        }
++    }
++    YAHOO.log("Could not select cell " + cell, "warn", this.toString());
++},
++
++/**
++ * Sets given cell to the unselected state.
++ *
++ * @method unselectCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ */
++unselectCell : function(cell) {
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        var oRecord = this.getRecord(elCell);
++        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
++
++        if(oRecord && sColumnKey) {
++            // Get Record ID
++            var tracker = this._aSelections || [];
++            var id = oRecord.getId();
++
++            // Is it selected?
++            for(var j=tracker.length-1; j>-1; j--) {
++                if((tracker[j].recordId === id) && (tracker[j].columnKey === sColumnKey)){
++                    // Remove from tracker
++                    tracker.splice(j,1);
++
++                    // Update tracker
++                    this._aSelections = tracker;
++
++                    // Update the UI
++                    Dom.removeClass(elCell, DT.CLASS_SELECTED);
++
++                    this.fireEvent("cellUnselectEvent", {record:oRecord, column: this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++                    YAHOO.log("Unselected " + elCell, "info", this.toString());
++                    return;
++                }
++            }
++        }
++    }
++    YAHOO.log("Could not unselect cell " + cell, "warn", this.toString());
++},
++
++/**
++ * Clears out all cell selections.
++ *
++ * @method unselectAllCells
++ */
++unselectAllCells : function() {
++    // Remove all cells from tracker
++    var tracker = this._aSelections || [];
++    for(var j=tracker.length-1; j>-1; j--) {
++       if(lang.isObject(tracker[j])){
++            tracker.splice(j,1);
++        }
++    }
++
++    // Update tracker
++    this._aSelections = tracker;
++
++    // Update UI
++    this._unselectAllTdEls();
++
++    //TODO: send data to unselectAllCellsEvent handler
++    this.fireEvent("unselectAllCellsEvent");
++    YAHOO.log("Unselected all cells", "info", this.toString());
++},
++
++/**
++ * Returns true if given item is selected, false otherwise.
++ *
++ * @method isSelected
++ * @param o {String | HTMLElement | YAHOO.widget.Record | Number
++ * {record:YAHOO.widget.Record, column:YAHOO.widget.Column} } TR or TD element by
++ * reference or ID string, a Record instance, a RecordSet position index,
++ * or an object literal representation
++ * of a cell.
++ * @return {Boolean} True if item is selected.
++ */
++isSelected : function(o) {
++    if(o && (o.ownerDocument == document)) {
++        return (Dom.hasClass(this.getTdEl(o),DT.CLASS_SELECTED) || Dom.hasClass(this.getTrEl(o),DT.CLASS_SELECTED));
++    }
++    else {
++        var oRecord, sRecordId, j;
++        var tracker = this._aSelections;
++        if(tracker && tracker.length > 0) {
++            // Looking for a Record?
++            if(o instanceof YAHOO.widget.Record) {
++                oRecord = o;
++            }
++            else if(lang.isNumber(o)) {
++                oRecord = this.getRecord(o);
++            }
++            if(oRecord) {
++                sRecordId = oRecord.getId();
++
++                // Is it there?
++                // Use Array.indexOf if available...
++                if(tracker.indexOf) {
++                    if(tracker.indexOf(sRecordId) >  -1) {
++                        return true;
++                    }
++                }
++                // ...or do it the old-fashioned way
++                else {
++                    for(j=tracker.length-1; j>-1; j--) {
++                       if(tracker[j] === sRecordId){
++                        return true;
++                       }
++                    }
++                }
++            }
++            // Looking for a cell
++            else if(o.record && o.column){
++                sRecordId = o.record.getId();
++                var sColumnKey = o.column.getKey();
++
++                for(j=tracker.length-1; j>-1; j--) {
++                    if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
++                        return true;
++                    }
++                }
++            }
++        }
++    }
++    return false;
++},
++
++/**
++ * Returns selected rows as an array of Record IDs.
++ *
++ * @method getSelectedRows
++ * @return {String[]} Array of selected rows by Record ID.
++ */
++getSelectedRows : function() {
++    var aSelectedRows = [];
++    var tracker = this._aSelections || [];
++    for(var j=0; j<tracker.length; j++) {
++       if(lang.isString(tracker[j])){
++            aSelectedRows.push(tracker[j]);
++        }
++    }
++    return aSelectedRows;
++},
++
++/**
++ * Returns selected cells as an array of object literals:
++ *     {recordId:sRecordId, columnKey:sColumnKey}.
++ *
++ * @method getSelectedCells
++ * @return {Object[]} Array of selected cells by Record ID and Column ID.
++ */
++getSelectedCells : function() {
++    var aSelectedCells = [];
++    var tracker = this._aSelections || [];
++    for(var j=0; j<tracker.length; j++) {
++       if(tracker[j] && lang.isObject(tracker[j])){
++            aSelectedCells.push(tracker[j]);
++        }
++    }
++    return aSelectedCells;
++},
++
++/**
++ * Returns last selected Record ID.
++ *
++ * @method getLastSelectedRecord
++ * @return {String} Record ID of last selected row.
++ */
++getLastSelectedRecord : function() {
++    var tracker = this._aSelections;
++    if(tracker && tracker.length > 0) {
++        for(var i=tracker.length-1; i>-1; i--) {
++           if(lang.isString(tracker[i])){
++                return tracker[i];
++            }
++        }
++    }
++},
++
++/**
++ * Returns last selected cell as an object literal:
++ *     {recordId:sRecordId, columnKey:sColumnKey}.
++ *
++ * @method getLastSelectedCell
++ * @return {Object} Object literal representation of a cell.
++ */
++getLastSelectedCell : function() {
++    var tracker = this._aSelections;
++    if(tracker && tracker.length > 0) {
++        for(var i=tracker.length-1; i>-1; i--) {
++           if(tracker[i].recordId && tracker[i].columnKey){
++                return tracker[i];
++            }
++        }
++    }
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given row.
++ *
++ * @method highlightRow
++ * @param row {HTMLElement | String} DOM element reference or ID string.
++ */
++highlightRow : function(row) {
++    var elRow = this.getTrEl(row);
++
++    if(elRow) {
++        // Make sure previous row is unhighlighted
++/*        if(this._sLastHighlightedTrElId) {
++            Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
++        }*/
++        var oRecord = this.getRecord(elRow);
++        Dom.addClass(elRow,DT.CLASS_HIGHLIGHTED);
++        //this._sLastHighlightedTrElId = elRow.id;
++        this.fireEvent("rowHighlightEvent", {record:oRecord, el:elRow});
++        YAHOO.log("Highlighted " + elRow, "info", this.toString());
++        return;
++    }
++    YAHOO.log("Could not highlight row " + row, "warn", this.toString());
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given row.
++ *
++ * @method unhighlightRow
++ * @param row {HTMLElement | String} DOM element reference or ID string.
++ */
++unhighlightRow : function(row) {
++    var elRow = this.getTrEl(row);
++
++    if(elRow) {
++        var oRecord = this.getRecord(elRow);
++        Dom.removeClass(elRow,DT.CLASS_HIGHLIGHTED);
++        this.fireEvent("rowUnhighlightEvent", {record:oRecord, el:elRow});
++        YAHOO.log("Unhighlighted " + elRow, "info", this.toString());
++        return;
++    }
++    YAHOO.log("Could not unhighlight row " + row, "warn", this.toString());
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given cell.
++ *
++ * @method highlightCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string.
++ */
++highlightCell : function(cell) {
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        // Make sure previous cell is unhighlighted
++        if(this._elLastHighlightedTd) {
++            this.unhighlightCell(this._elLastHighlightedTd);
++        }
++
++        var oRecord = this.getRecord(elCell);
++        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
++        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
++        this._elLastHighlightedTd = elCell;
++        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++        YAHOO.log("Highlighted " + elCell, "info", this.toString());
++        return;
++    }
++    YAHOO.log("Could not highlight cell " + cell, "warn", this.toString());
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given cell.
++ *
++ * @method unhighlightCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string.
++ */
++unhighlightCell : function(cell) {
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        var oRecord = this.getRecord(elCell);
++        Dom.removeClass(elCell,DT.CLASS_HIGHLIGHTED);
++        this._elLastHighlightedTd = null;
++        this.fireEvent("cellUnhighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++        YAHOO.log("Unhighlighted " + elCell, "info", this.toString());
++        return;
++    }
++    YAHOO.log("Could not unhighlight cell " + cell, "warn", this.toString());
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// INLINE EDITING
++
++/**
++ * Returns current CellEditor instance, or null.
++ * @method getCellEditor
++ * @return {YAHOO.widget.CellEditor} CellEditor instance.
++ */
++getCellEditor : function() {
++    return this._oCellEditor;
++},
++
++
++/**
++ * Activates and shows CellEditor instance for the given cell while deactivating and
++ * canceling previous CellEditor. It is baked into DataTable that only one CellEditor
++ * can be active at any given time. 
++ *
++ * @method showCellEditor
++ * @param elCell {HTMLElement | String} Cell to edit.
++ */
++showCellEditor : function(elCell, oRecord, oColumn) {
++    // Get a particular CellEditor
++    elCell = this.getTdEl(elCell);
++    if(elCell) {
++        oColumn = this.getColumn(elCell);
++        if(oColumn && oColumn.editor) {
++            var oCellEditor = this._oCellEditor;
++            // Clean up active CellEditor
++            if(oCellEditor) {
++                if(this._oCellEditor.cancel) {
++                    this._oCellEditor.cancel();
++                }
++                else if(oCellEditor.isActive) {
++                    this.cancelCellEditor();
++                }
++            }
++            
++            if(oColumn.editor instanceof YAHOO.widget.BaseCellEditor) {
++                // Get CellEditor
++                oCellEditor = oColumn.editor;
++                var ok = oCellEditor.attach(this, elCell);
++                if(ok) {
++                    oCellEditor.move();
++                    ok = this.doBeforeShowCellEditor(oCellEditor);
++                    if(ok) {
++                        oCellEditor.show();
++                        this._oCellEditor = oCellEditor;
++                    }
++                }
++            }
++            // Backward compatibility
++            else {
++                    if(!oRecord || !(oRecord instanceof YAHOO.widget.Record)) {
++                        oRecord = this.getRecord(elCell);
++                    }
++                    if(!oColumn || !(oColumn instanceof YAHOO.widget.Column)) {
++                        oColumn = this.getColumn(elCell);
++                    }
++                    if(oRecord && oColumn) {
++                        if(!this._oCellEditor || this._oCellEditor.container) {
++                            this._initCellEditorEl();
++                        }
++                        
++                        // Update Editor values
++                        oCellEditor = this._oCellEditor;
++                        oCellEditor.cell = elCell;
++                        oCellEditor.record = oRecord;
++                        oCellEditor.column = oColumn;
++                        oCellEditor.validator = (oColumn.editorOptions &&
++                                lang.isFunction(oColumn.editorOptions.validator)) ?
++                                oColumn.editorOptions.validator : null;
++                        oCellEditor.value = oRecord.getData(oColumn.key);
++                        oCellEditor.defaultValue = null;
++            
++                        // Move Editor
++                        var elContainer = oCellEditor.container;
++                        var x = Dom.getX(elCell);
++                        var y = Dom.getY(elCell);
++            
++                        // SF doesn't get xy for cells in scrolling table
++                        // when tbody display is set to block
++                        if(isNaN(x) || isNaN(y)) {
++                            x = elCell.offsetLeft + // cell pos relative to table
++                                    Dom.getX(this._elTbody.parentNode) - // plus table pos relative to document
++                                    this._elTbody.scrollLeft; // minus tbody scroll
++                            y = elCell.offsetTop + // cell pos relative to table
++                                    Dom.getY(this._elTbody.parentNode) - // plus table pos relative to document
++                                    this._elTbody.scrollTop + // minus tbody scroll
++                                    this._elThead.offsetHeight; // account for fixed THEAD cells
++                        }
++            
++                        elContainer.style.left = x + "px";
++                        elContainer.style.top = y + "px";
++            
++                        // Hook to customize the UI
++                        this.doBeforeShowCellEditor(this._oCellEditor);
++            
++                        //TODO: This is temporarily up here due so elements can be focused
++                        // Show Editor
++                        elContainer.style.display = "";
++            
++                        // Handle ESC key
++                        Ev.addListener(elContainer, "keydown", function(e, oSelf) {
++                            // ESC hides Cell Editor
++                            if((e.keyCode == 27)) {
++                                oSelf.cancelCellEditor();
++                                oSelf.focusTbodyEl();
++                            }
++                            else {
++                                oSelf.fireEvent("editorKeydownEvent", {editor:oSelf._oCellEditor, event:e});
++                            }
++                        }, this);
++            
++                        // Render Editor markup
++                        var fnEditor;
++                        if(lang.isString(oColumn.editor)) {
++                            switch(oColumn.editor) {
++                                case "checkbox":
++                                    fnEditor = DT.editCheckbox;
++                                    break;
++                                case "date":
++                                    fnEditor = DT.editDate;
++                                    break;
++                                case "dropdown":
++                                    fnEditor = DT.editDropdown;
++                                    break;
++                                case "radio":
++                                    fnEditor = DT.editRadio;
++                                    break;
++                                case "textarea":
++                                    fnEditor = DT.editTextarea;
++                                    break;
++                                case "textbox":
++                                    fnEditor = DT.editTextbox;
++                                    break;
++                                default:
++                                    fnEditor = null;
++                            }
++                        }
++                        else if(lang.isFunction(oColumn.editor)) {
++                            fnEditor = oColumn.editor;
++                        }
++            
++                        if(fnEditor) {
++                            // Create DOM input elements
++                            fnEditor(this._oCellEditor, this);
++            
++                            // Show Save/Cancel buttons
++                            if(!oColumn.editorOptions || !oColumn.editorOptions.disableBtns) {
++                                this.showCellEditorBtns(elContainer);
++                            }
++            
++                            oCellEditor.isActive = true;
++            
++                            //TODO: verify which args to pass
++                            this.fireEvent("editorShowEvent", {editor:oCellEditor});
++                            YAHOO.log("Cell Editor shown for " + elCell, "info", this.toString());
++                            return;
++                        }
++                    }
++
++
++
++            
++            }
++        }
++    }
++},
++
++/**
++ * Backward compatibility.
++ *
++ * @method _initCellEditorEl
++ * @private
++ * @deprecated 
++ */
++_initCellEditorEl : function() {
++    // Attach Cell Editor container element as first child of body
++    var elCellEditor = document.createElement("div");
++    elCellEditor.id = this._sId + "-celleditor";
++    elCellEditor.style.display = "none";
++    elCellEditor.tabIndex = 0;
++    Dom.addClass(elCellEditor, DT.CLASS_EDITOR);
++    var elFirstChild = Dom.getFirstChild(document.body);
++    if(elFirstChild) {
++        elCellEditor = Dom.insertBefore(elCellEditor, elFirstChild);
++    }
++    else {
++        elCellEditor = document.body.appendChild(elCellEditor);
++    }
++    
++    // Internal tracker of Cell Editor values
++    var oCellEditor = {};
++    oCellEditor.container = elCellEditor;
++    oCellEditor.value = null;
++    oCellEditor.isActive = false;
++    this._oCellEditor = oCellEditor;
++},
++
++/**
++ * Overridable abstract method to customize CellEditor before showing.
++ *
++ * @method doBeforeShowCellEditor
++ * @param oCellEditor {YAHOO.widget.CellEditor} The CellEditor instance.
++ * @return {Boolean} Return true to continue showing CellEditor.
++ */
++doBeforeShowCellEditor : function(oCellEditor) {
++    return true;
++},
++
++/**
++ * Saves active CellEditor input to Record and upates DOM UI.
++ *
++ * @method saveCellEditor
++ */
++saveCellEditor : function() {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.save) {
++            this._oCellEditor.save();
++        }
++        // Backward compatibility
++        else if(this._oCellEditor.isActive) {
++            var newData = this._oCellEditor.value;
++            // Copy the data to pass to the event
++            //var oldData = YAHOO.widget.DataTable._cloneObject(this._oCellEditor.record.getData(this._oCellEditor.column.key));
++            var oldData = this._oCellEditor.record.getData(this._oCellEditor.column.key);
++    
++            // Validate input data
++            if(this._oCellEditor.validator) {
++                newData = this._oCellEditor.value = this._oCellEditor.validator.call(this, newData, oldData, this._oCellEditor);
++                if(newData === null ) {
++                    this.resetCellEditor();
++                    this.fireEvent("editorRevertEvent",
++                            {editor:this._oCellEditor, oldData:oldData, newData:newData});
++                    YAHOO.log("Could not save Cell Editor input due to invalid data " +
++                            lang.dump(newData), "warn", this.toString());
++                    return;
++                }
++            }
++            // Update the Record
++            this._oRecordSet.updateRecordValue(this._oCellEditor.record, this._oCellEditor.column.key, this._oCellEditor.value);
++            // Update the UI
++            this.formatCell(this._oCellEditor.cell.firstChild);
++            
++            // Bug fix 1764044
++            this._oChainRender.add({
++                method: function() {
++                    this.validateColumnWidths();
++                },
++                scope: this
++            });
++            this._oChainRender.run();
++            // Clear out the Cell Editor
++            this.resetCellEditor();
++    
++            this.fireEvent("editorSaveEvent",
++                    {editor:this._oCellEditor, oldData:oldData, newData:newData});
++            YAHOO.log("Cell Editor input saved", "info", this.toString());
++        }
++    }   
++},
++
++/**
++ * Cancels active CellEditor.
++ *
++ * @method cancelCellEditor
++ */
++cancelCellEditor : function() {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.cancel) {
++            this._oCellEditor.cancel();
++        }
++        // Backward compatibility
++        else if(this._oCellEditor.isActive) {
++            this.resetCellEditor();
++            //TODO: preserve values for the event?
++            this.fireEvent("editorCancelEvent", {editor:this._oCellEditor});
++            YAHOO.log("Cell Editor input canceled", "info", this.toString());
++        }
++
++        YAHOO.log("CellEditor input canceled", "info", this.toString());
++    }
++},
++
++/**
++ * Destroys active CellEditor instance and UI.
++ *
++ * @method destroyCellEditor
++ */
++destroyCellEditor : function() {
++    if(this._oCellEditor) {
++        this._oCellEditor.destroy();
++        this._oCellEditor = null;
++    }   
++},
++
++/**
++ * Passes through showEvent of the active CellEditor.
++ *
++ * @method _onEditorShowEvent
++ * @param oArgs {Object}  Custom Event args.
++ * @private 
++ */
++_onEditorShowEvent : function(oArgs) {
++    this.fireEvent("editorShowEvent", oArgs);
++},
++
++/**
++ * Passes through keydownEvent of the active CellEditor.
++ * @param oArgs {Object}  Custom Event args. 
++ *
++ * @method _onEditorKeydownEvent
++ * @private 
++ */
++_onEditorKeydownEvent : function(oArgs) {
++    this.fireEvent("editorKeydownEvent", oArgs);
++},
++
++/**
++ * Passes through revertEvent of the active CellEditor.
++ *
++ * @method _onEditorRevertEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorRevertEvent : function(oArgs) {
++    this.fireEvent("editorRevertEvent", oArgs);
++},
++
++/**
++ * Passes through saveEvent of the active CellEditor.
++ *
++ * @method _onEditorSaveEvent
++ * @param oArgs {Object}  Custom Event args.  
++ * @private 
++ */
++_onEditorSaveEvent : function(oArgs) {
++    this.fireEvent("editorSaveEvent", oArgs);
++},
++
++/**
++ * Passes through cancelEvent of the active CellEditor.
++ *
++ * @method _onEditorCancelEvent
++ * @param oArgs {Object}  Custom Event args.
++ * @private   
++ */
++_onEditorCancelEvent : function(oArgs) {
++    this.fireEvent("editorCancelEvent", oArgs);
++},
++
++/**
++ * Passes through blurEvent of the active CellEditor.
++ *
++ * @method _onEditorBlurEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorBlurEvent : function(oArgs) {
++    this.fireEvent("editorBlurEvent", oArgs);
++},
++
++/**
++ * Passes through blockEvent of the active CellEditor.
++ *
++ * @method _onEditorBlockEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorBlockEvent : function(oArgs) {
++    this.fireEvent("editorBlockEvent", oArgs);
++},
++
++/**
++ * Passes through unblockEvent of the active CellEditor.
++ *
++ * @method _onEditorUnblockEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorUnblockEvent : function(oArgs) {
++    this.fireEvent("editorUnblockEvent", oArgs);
++},
++
++/**
++ * Public handler of the editorBlurEvent. By default, saves on blur if
++ * disableBtns is true, otherwise cancels on blur. 
++ *
++ * @method onEditorBlurEvent
++ * @param oArgs {Object}  Custom Event args.  
++ */
++onEditorBlurEvent : function(oArgs) {
++    if(oArgs.editor.disableBtns) {
++        // Save on blur
++        if(oArgs.editor.save) { // Backward incompatible
++            oArgs.editor.save();
++        }
++    }      
++    else if(oArgs.editor.cancel) { // Backward incompatible
++        // Cancel on blur
++        oArgs.editor.cancel();
++    }      
++},
++
++/**
++ * Public handler of the editorBlockEvent. By default, disables DataTable UI.
++ *
++ * @method onEditorBlockEvent
++ * @param oArgs {Object}  Custom Event args.  
++ */
++onEditorBlockEvent : function(oArgs) {
++    this.disable();
++},
++
++/**
++ * Public handler of the editorUnblockEvent. By default, undisables DataTable UI.
++ *
++ * @method onEditorUnblockEvent
++ * @param oArgs {Object}  Custom Event args.  
++ */
++onEditorUnblockEvent : function(oArgs) {
++    this.undisable();
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// ABSTRACT METHODS
++
++/**
++ * Overridable method gives implementers a hook to access data before
++ * it gets added to RecordSet and rendered to the TBODY.
++ *
++ * @method doBeforeLoadData
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} additional arguments
++ * @return {Boolean} Return true to continue loading data into RecordSet and
++ * updating DataTable with new Records, false to cancel.
++ */
++doBeforeLoadData : function(sRequest, oResponse, oPayload) {
++    return true;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public Custom Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Overridable custom event handler to sort Column.
++ *
++ * @method onEventSortColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSortColumn : function(oArgs) {
++//TODO: support form elements in sortable columns
++    var evt = oArgs.event;
++    var target = oArgs.target;
++
++    var el = this.getThEl(target) || this.getTdEl(target);
++    if(el) {
++        var oColumn = this.getColumn(el);
++        if(oColumn.sortable) {
++            Ev.stopEvent(evt);
++            this.sortColumn(oColumn);
++        }
++    }
++    else {
++        YAHOO.log("Could not find Column for " + target, "warn", this.toString());
++    }
++},
++
++/**
++ * Overridable custom event handler to select Column.
++ *
++ * @method onEventSelectColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSelectColumn : function(oArgs) {
++    this.selectColumn(oArgs.target);
++},
++
++/**
++ * Overridable custom event handler to highlight Column. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventHighlightColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventHighlightColumn : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.highlightColumn(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to unhighlight Column. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventUnhighlightColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventUnhighlightColumn : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.unhighlightColumn(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to manage selection according to desktop paradigm.
++ *
++ * @method onEventSelectRow
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSelectRow : function(oArgs) {
++    var sMode = this.get("selectionMode");
++    if(sMode == "single") {
++        this._handleSingleSelectionByMouse(oArgs);
++    }
++    else {
++        this._handleStandardSelectionByMouse(oArgs);
++    }
++},
++
++/**
++ * Overridable custom event handler to select cell.
++ *
++ * @method onEventSelectCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSelectCell : function(oArgs) {
++    var sMode = this.get("selectionMode");
++    if(sMode == "cellblock") {
++        this._handleCellBlockSelectionByMouse(oArgs);
++    }
++    else if(sMode == "cellrange") {
++        this._handleCellRangeSelectionByMouse(oArgs);
++    }
++    else {
++        this._handleSingleCellSelectionByMouse(oArgs);
++    }
++},
++
++/**
++ * Overridable custom event handler to highlight row. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventHighlightRow
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventHighlightRow : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.highlightRow(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to unhighlight row. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventUnhighlightRow
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventUnhighlightRow : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.unhighlightRow(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to highlight cell. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventHighlightCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventHighlightCell : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.highlightCell(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to unhighlight cell. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventUnhighlightCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventUnhighlightCell : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.unhighlightCell(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to format cell.
++ *
++ * @method onEventFormatCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventFormatCell : function(oArgs) {
++    var target = oArgs.target;
++
++    var elCell = this.getTdEl(target);
++    if(elCell) {
++        var oColumn = this.getColumn(elCell.cellIndex);
++        this.formatCell(elCell.firstChild, this.getRecord(elCell), oColumn);
++    }
++    else {
++        YAHOO.log("Could not format cell " + target, "warn", this.toString());
++    }
++},
++
++/**
++ * Overridable custom event handler to edit cell.
++ *
++ * @method onEventShowCellEditor
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventShowCellEditor : function(oArgs) {
++    this.showCellEditor(oArgs.target);
++},
++
++/**
++ * Overridable custom event handler to save active CellEditor input.
++ *
++ * @method onEventSaveCellEditor
++ */
++onEventSaveCellEditor : function(oArgs) {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.save) {
++            this._oCellEditor.save();
++        }
++        // Backward compatibility
++        else {
++            this.saveCellEditor();
++        }
++    }
++},
++
++/**
++ * Overridable custom event handler to cancel active CellEditor.
++ *
++ * @method onEventCancelCellEditor
++ */
++onEventCancelCellEditor : function(oArgs) {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.cancel) {
++            this._oCellEditor.cancel();
++        }
++        // Backward compatibility
++        else {
++            this.cancelCellEditor();
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and populates an entire
++ * DataTable with Records and TR elements, clearing previous Records, if any.
++ *
++ * @method onDataReturnInitializeTable
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnInitializeTable : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.initializeTable();
++    
++        this.onDataReturnSetRows(sRequest,oResponse,oPayload);
++    }
++},
++
++/**
++ * Callback function receives reponse from DataSource, replaces all existing
++ * Records in  RecordSet, updates TR elements with new data, and updates state
++ * UI for pagination and sorting from payload data, if necessary. 
++ *  
++ * @method onDataReturnReplaceRows
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnReplaceRows : function(oRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
++            pag   = this.get('paginator'),
++            index = 0;
++    
++        // Data ok to set
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Update Records
++            this._oRecordSet.reset();
++    
++            if (this.get('dynamicData')) {
++                if (oPayload && oPayload.pagination &&
++                    lang.isNumber(oPayload.pagination.recordOffset)) {
++                    index = oPayload.pagination.recordOffset;
++                } else if (pag) {
++                    index = pag.getStartIndex();
++                }
++            }
++    
++            this._oRecordSet.setRecords(oResponse.results, index | 0);
++            
++            // Update state
++            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
++            
++            // Update UI
++            this.render();    
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and appends to an existing
++ * DataTable new Records and, if applicable, creates or updates
++ * corresponding TR elements.
++ *
++ * @method onDataReturnAppendRows
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnAppendRows : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
++    
++        // Data ok to append
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {        
++            // Append rows
++            this.addRows(oResponse.results);
++    
++            // Update state
++            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and inserts new records
++ * starting at the index specified in oPayload.insertIndex. The value for
++ * oPayload.insertIndex can be populated when sending the request to the DataSource,
++ * or by accessing oPayload.insertIndex with the doBeforeLoadData() method at runtime.
++ * If applicable, creates or updates corresponding TR elements.
++ *
++ * @method onDataReturnInsertRows
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} Argument payload, looks in oPayload.insertIndex.
++ */
++onDataReturnInsertRows : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
++    
++        // Data ok to append
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Insert rows
++            this.addRows(oResponse.results, (oPayload ? oPayload.insertIndex : 0));
++    
++            // Update state
++            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and incrementally updates Records
++ * starting at the index specified in oPayload.updateIndex. The value for
++ * oPayload.updateIndex can be populated when sending the request to the DataSource,
++ * or by accessing oPayload.updateIndex with the doBeforeLoadData() method at runtime.
++ * If applicable, creates or updates corresponding TR elements.
++ *
++ * @method onDataReturnUpdateRows
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} Argument payload, looks in oPayload.updateIndex.
++ */
++onDataReturnUpdateRows : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
++    
++        // Data ok to append
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Insert rows
++            this.updateRows((oPayload ? oPayload.updateIndex : 0), oResponse.results);
++    
++            // Update state
++            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives reponse from DataSource and populates the
++ * RecordSet with the results.
++ *  
++ * @method onDataReturnSetRows
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnSetRows : function(oRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
++            pag   = this.get('paginator'),
++            index = 0;
++    
++        // Data ok to set
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Update Records
++            if (this.get('dynamicData')) {
++                if (oPayload && oPayload.pagination &&
++                    lang.isNumber(oPayload.pagination.recordOffset)) {
++                    index = oPayload.pagination.recordOffset;
++                } else if (pag) {
++                    index = pag.getStartIndex();
++                }
++                
++                this._oRecordSet.reset(); // Bug 2290604: dyanmic data shouldn't keep accumulating by default
++            }
++    
++            this._oRecordSet.setRecords(oResponse.results, index | 0);
++    
++            // Update state
++            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
++            
++            // Update UI
++            this.render();
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++    else {
++        YAHOO.log("Instance destroyed before data returned.","info",this.toString());
++    }
++},
++
++/**
++ * Hook to update oPayload before consumption.
++ *  
++ * @method handleDataReturnPayload
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} State values.
++ * @return oPayload {MIXED} State values.
++ */
++handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
++    return oPayload;
++},
++
++/**
++ * Updates the DataTable with state data sent in an onDataReturn* payload.
++ *  
++ * @method handleDataReturnPayload
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} State values
++ */
++_handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
++    oPayload = this.handleDataReturnPayload(oRequest, oResponse, oPayload);
++    if(oPayload) {
++        // Update pagination
++        var oPaginator = this.get('paginator');
++        if (oPaginator) {
++            // Update totalRecords
++            if(this.get("dynamicData")) {
++                if (widget.Paginator.isNumeric(oPayload.totalRecords)) {
++                    oPaginator.set('totalRecords',oPayload.totalRecords);
++                }
++            }
++            else {
++                oPaginator.set('totalRecords',this._oRecordSet.getLength());
++            }
++            // Update other paginator values
++            if (lang.isObject(oPayload.pagination)) {
++                oPaginator.set('rowsPerPage',oPayload.pagination.rowsPerPage);
++                oPaginator.set('recordOffset',oPayload.pagination.recordOffset);
++            }
++        }
++
++        // Update sorting
++        if (oPayload.sortedBy) {
++            // Set the sorting values in preparation for refresh
++            this.set('sortedBy', oPayload.sortedBy);
++        }
++        // Backwards compatibility for sorting
++        else if (oPayload.sorting) {
++            // Set the sorting values in preparation for refresh
++            this.set('sortedBy', oPayload.sorting);
++        }
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Custom Events
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Fired when the DataTable's rows are rendered from an initialized state.
++     *
++     * @event initEvent
++     */
++
++    /**
++     * Fired before the DataTable's DOM is rendered or modified.
++     *
++     * @event beforeRenderEvent
++     */
++
++    /**
++     * Fired when the DataTable's DOM is rendered or modified.
++     *
++     * @event renderEvent
++     */
++
++    /**
++     * Fired when the DataTable's post-render routine is complete, including
++     * Column width validations.
++     *
++     * @event postRenderEvent
++     */
++
++    /**
++     * Fired when the DataTable is disabled.
++     *
++     * @event disableEvent
++     */
++
++    /**
++     * Fired when the DataTable is undisabled.
++     *
++     * @event undisableEvent
++     */
++
++    /**
++     * Fired when data is returned from DataSource but before it is consumed by
++     * DataTable.
++     *
++     * @event dataReturnEvent
++     * @param oArgs.request {String} Original request.
++     * @param oArgs.response {Object} Response object.
++     */
++
++    /**
++     * Fired when the DataTable has a focus event.
++     *
++     * @event tableFocusEvent
++     */
++
++    /**
++     * Fired when the DataTable THEAD element has a focus event.
++     *
++     * @event theadFocusEvent
++     */
++
++    /**
++     * Fired when the DataTable TBODY element has a focus event.
++     *
++     * @event tbodyFocusEvent
++     */
++
++    /**
++     * Fired when the DataTable has a blur event.
++     *
++     * @event tableBlurEvent
++     */
++
++    /*TODO implement theadBlurEvent
++     * Fired when the DataTable THEAD element has a blur event.
++     *
++     * @event theadBlurEvent
++     */
++
++    /*TODO: implement tbodyBlurEvent
++     * Fired when the DataTable TBODY element has a blur event.
++     *
++     * @event tbodyBlurEvent
++     */
++
++    /**
++     * Fired when the DataTable has a key event.
++     *
++     * @event tableKeyEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     */
++
++    /**
++     * Fired when the DataTable THEAD element has a key event.
++     *
++     * @event theadKeyEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     */
++
++    /**
++     * Fired when the DataTable TBODY element has a key event.
++     *
++     * @event tbodyKeyEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     */
++
++    /**
++     * Fired when the DataTable has a mouseover.
++     *
++     * @event tableMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a mouseout.
++     *
++     * @event tableMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a mousedown.
++     *
++     * @event tableMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a mouseup.
++     *
++     * @event tableMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a click.
++     *
++     * @event tableClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a dblclick.
++     *
++     * @event tableDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when a message is shown in the DataTable's message element.
++     *
++     * @event tableMsgShowEvent
++     * @param oArgs.html {String} The HTML displayed.
++     * @param oArgs.className {String} The className assigned.
++     *
++     */
++
++    /**
++     * Fired when the DataTable's message element is hidden.
++     *
++     * @event tableMsgHideEvent
++     */
++
++    /**
++     * Fired when a THEAD row has a mouseover.
++     *
++     * @event theadRowMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a mouseout.
++     *
++     * @event theadRowMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a mousedown.
++     *
++     * @event theadRowMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a mouseup.
++     *
++     * @event theadRowMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a click.
++     *
++     * @event theadRowClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a dblclick.
++     *
++     * @event theadRowDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a mouseover.
++     *
++     * @event theadCellMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD cell has a mouseout.
++     *
++     * @event theadCellMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD cell has a mousedown.
++     *
++     * @event theadCellMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a mouseup.
++     *
++     * @event theadCellMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a click.
++     *
++     * @event theadCellClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a dblclick.
++     *
++     * @event theadCellDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD label has a mouseover.
++     *
++     * @event theadLabelMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD label has a mouseout.
++     *
++     * @event theadLabelMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD label has a mousedown.
++     *
++     * @event theadLabelMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a THEAD label has a mouseup.
++     *
++     * @event theadLabelMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a THEAD label has a click.
++     *
++     * @event theadLabelClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a THEAD label has a dblclick.
++     *
++     * @event theadLabelDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a column is sorted.
++     *
++     * @event columnSortEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.dir {String} Sort direction: YAHOO.widget.DataTable.CLASS_ASC
++     * or YAHOO.widget.DataTable.CLASS_DESC.
++     */
++
++    /**
++     * Fired when a column width is set.
++     *
++     * @event columnSetWidthEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.width {Number} The width in pixels.
++     */
++
++    /**
++     * Fired when a column width is unset.
++     *
++     * @event columnUnsetWidthEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is drag-resized.
++     *
++     * @event columnResizeEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.target {HTMLElement} The TH element.
++     * @param oArgs.width {Number} Width in pixels.     
++     */
++
++    /**
++     * Fired when a Column is moved to a new index.
++     *
++     * @event columnReorderEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.oldIndex {Number} The previous index position.
++     */
++
++    /**
++     * Fired when a column is hidden.
++     *
++     * @event columnHideEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is shown.
++     *
++     * @event columnShowEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is selected.
++     *
++     * @event columnSelectEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is unselected.
++     *
++     * @event columnUnselectEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++    /**
++     * Fired when a column is removed.
++     *
++     * @event columnRemoveEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is inserted.
++     *
++     * @event columnInsertEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.index {Number} The index position.
++     */
++
++    /**
++     * Fired when a column is highlighted.
++     *
++     * @event columnHighlightEvent
++     * @param oArgs.column {YAHOO.widget.Column} The highlighted Column.
++     */
++
++    /**
++     * Fired when a column is unhighlighted.
++     *
++     * @event columnUnhighlightEvent
++     * @param oArgs.column {YAHOO.widget.Column} The unhighlighted Column.
++     */
++
++
++    /**
++     * Fired when a row has a mouseover.
++     *
++     * @event rowMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a mouseout.
++     *
++     * @event rowMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a mousedown.
++     *
++     * @event rowMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a mouseup.
++     *
++     * @event rowMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a click.
++     *
++     * @event rowClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a dblclick.
++     *
++     * @event rowDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row is added.
++     *
++     * @event rowAddEvent
++     * @param oArgs.record {YAHOO.widget.Record} The added Record.
++     */
++     
++    /**
++     * Fired when rows are added.
++     *
++     * @event rowsAddEvent
++     * @param oArgs.record {YAHOO.widget.Record[]} The added Records.
++     */
++
++    /**
++     * Fired when a row is updated.
++     *
++     * @event rowUpdateEvent
++     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
++     * @param oArgs.oldData {Object} Object literal of the old data.
++     */
++
++    /**
++     * Fired when a row is deleted.
++     *
++     * @event rowDeleteEvent
++     * @param oArgs.oldData {Object} Object literal of the deleted data.
++     * @param oArgs.recordIndex {Number} Index of the deleted Record.
++     * @param oArgs.trElIndex {Number} Index of the deleted TR element, if on current page.
++     */
++     
++    /**
++     * Fired when rows are deleted.
++     *
++     * @event rowsDeleteEvent
++     * @param oArgs.oldData {Object[]} Array of object literals of the deleted data.
++     * @param oArgs.recordIndex {Number} Index of the first deleted Record.
++     * @param oArgs.count {Number} Number of deleted Records.
++     */
++
++    /**
++     * Fired when a row is selected.
++     *
++     * @event rowSelectEvent
++     * @param oArgs.el {HTMLElement} The selected TR element, if applicable.
++     * @param oArgs.record {YAHOO.widget.Record} The selected Record.
++     */
++
++    /**
++     * Fired when a row is unselected.
++     *
++     * @event rowUnselectEvent
++     * @param oArgs.el {HTMLElement} The unselected TR element, if applicable.
++     * @param oArgs.record {YAHOO.widget.Record} The unselected Record.
++     */
++
++    /**
++     * Fired when all row selections are cleared.
++     *
++     * @event unselectAllRowsEvent
++     */
++
++    /**
++     * Fired when a row is highlighted.
++     *
++     * @event rowHighlightEvent
++     * @param oArgs.el {HTMLElement} The highlighted TR element.
++     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
++     */
++
++    /**
++     * Fired when a row is unhighlighted.
++     *
++     * @event rowUnhighlightEvent
++     * @param oArgs.el {HTMLElement} The highlighted TR element.
++     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
++     */
++
++    /**
++     * Fired when a cell is updated.
++     *
++     * @event cellUpdateEvent
++     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
++     * @param oArgs.column {YAHOO.widget.Column} The updated Column.
++     * @param oArgs.oldData {Object} Original data value of the updated cell.
++     */
++
++    /**
++     * Fired when a cell has a mouseover.
++     *
++     * @event cellMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a mouseout.
++     *
++     * @event cellMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a mousedown.
++     *
++     * @event cellMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a mouseup.
++     *
++     * @event cellMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a click.
++     *
++     * @event cellClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a dblclick.
++     *
++     * @event cellDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell is formatted.
++     *
++     * @event cellFormatEvent
++     * @param oArgs.el {HTMLElement} The formatted TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the formatted cell.
++     */
++
++    /**
++     * Fired when a cell is selected.
++     *
++     * @event cellSelectEvent
++     * @param oArgs.el {HTMLElement} The selected TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the selected cell.
++     */
++
++    /**
++     * Fired when a cell is unselected.
++     *
++     * @event cellUnselectEvent
++     * @param oArgs.el {HTMLElement} The unselected TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the unselected cell.
++
++     */
++
++    /**
++     * Fired when a cell is highlighted.
++     *
++     * @event cellHighlightEvent
++     * @param oArgs.el {HTMLElement} The highlighted TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the highlighted cell.
++
++     */
++
++    /**
++     * Fired when a cell is unhighlighted.
++     *
++     * @event cellUnhighlightEvent
++     * @param oArgs.el {HTMLElement} The unhighlighted TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the unhighlighted cell.
++
++     */
++
++    /**
++     * Fired when all cell selections are cleared.
++     *
++     * @event unselectAllCellsEvent
++     */
++
++    /**
++     * Fired when a CellEditor is shown.
++     *
++     * @event editorShowEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor has a keydown.
++     *
++     * @event editorKeydownEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     * @param oArgs.event {HTMLEvent} The event object.
++     */
++
++    /**
++     * Fired when a CellEditor input is reverted.
++     *
++     * @event editorRevertEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     * @param oArgs.newData {Object} New data value from form input field.
++     * @param oArgs.oldData {Object} Old data value.
++     */
++
++    /**
++     * Fired when a CellEditor input is saved.
++     *
++     * @event editorSaveEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     * @param oArgs.newData {Object} New data value from form input field.
++     * @param oArgs.oldData {Object} Old data value.
++     */
++
++    /**
++     * Fired when a CellEditor input is canceled.
++     *
++     * @event editorCancelEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor has a blur event.
++     *
++     * @event editorBlurEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor is blocked.
++     *
++     * @event editorBlockEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor is unblocked.
++     *
++     * @event editorUnblockEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++
++
++
++
++    /**
++     * Fired when a link is clicked.
++     *
++     * @event linkClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The A element.
++     */
++
++    /**
++     * Fired when a BUTTON element or INPUT element of type "button", "image",
++     * "submit", "reset" is clicked.
++     *
++     * @event buttonClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The BUTTON element.
++     */
++
++    /**
++     * Fired when a CHECKBOX element is clicked.
++     *
++     * @event checkboxClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The CHECKBOX element.
++     */
++
++    /**
++     * Fired when a SELECT element is changed.
++     *
++     * @event dropdownChangeEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SELECT element.
++     */
++
++    /**
++     * Fired when a RADIO element is clicked.
++     *
++     * @event radioClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The RADIO element.
++     */
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated APIs
++//
++/////////////////////////////////////////////////////////////////////////////
++  
++/*
++ * @method showCellEditorBtns
++ * @deprecated Use CellEditor.renderBtns() 
++ */
++showCellEditorBtns : function(elContainer) {
++    // Buttons
++    var elBtnsDiv = elContainer.appendChild(document.createElement("div"));
++    Dom.addClass(elBtnsDiv, DT.CLASS_BUTTON);
++
++    // Save button
++    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    Dom.addClass(elSaveBtn, DT.CLASS_DEFAULT);
++    elSaveBtn.innerHTML = "OK";
++    Ev.addListener(elSaveBtn, "click", function(oArgs, oSelf) {
++        oSelf.onEventSaveCellEditor(oArgs, oSelf);
++        oSelf.focusTbodyEl();
++    }, this, true);
++
++    // Cancel button
++    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    elCancelBtn.innerHTML = "Cancel";
++    Ev.addListener(elCancelBtn, "click", function(oArgs, oSelf) {
++        oSelf.onEventCancelCellEditor(oArgs, oSelf);
++        oSelf.focusTbodyEl();
++    }, this, true);
++
++    YAHOO.log("The method showCellEditorBtns() has been deprecated." +
++            " Please use the CellEditor class.", "warn", this.toString());
++},
++
++/**
++ * @method resetCellEditor
++ * @deprecated Use destroyCellEditor 
++ */
++resetCellEditor : function() {
++    var elContainer = this._oCellEditor.container;
++    elContainer.style.display = "none";
++    Ev.purgeElement(elContainer, true);
++    elContainer.innerHTML = "";
++    this._oCellEditor.value = null;
++    this._oCellEditor.isActive = false;
++
++    YAHOO.log("The method resetCellEditor() has been deprecated." +
++            " Please use the CellEditor class.", "warn", this.toString());
++},
++
++/**
++ * @event editorUpdateEvent
++ * @deprecated Use CellEditor class.
++ */
++
++/**
++ * @method getBody
++ * @deprecated Use getTbodyEl().
++ */
++getBody : function() {
++    // Backward compatibility
++    YAHOO.log("The method getBody() has been deprecated" +
++            " in favor of getTbodyEl()", "warn", this.toString());
++    return this.getTbodyEl();
++},
++
++/**
++ * @method getCell
++ * @deprecated Use getTdEl().
++ */
++getCell : function(index) {
++    // Backward compatibility
++    YAHOO.log("The method getCell() has been deprecated" +
++            " in favor of getTdEl()", "warn", this.toString());
++    return this.getTdEl(index);
++},
++
++/**
++ * @method getRow
++ * @deprecated Use getTrEl().
++ */
++getRow : function(index) {
++    // Backward compatibility
++    YAHOO.log("The method getRow() has been deprecated" +
++            " in favor of getTrEl()", "warn", this.toString());
++    return this.getTrEl(index);
++},
++
++/**
++ * @method refreshView
++ * @deprecated Use render.
++ */
++refreshView : function() {
++    // Backward compatibility
++    YAHOO.log("The method refreshView() has been deprecated" +
++            " in favor of render()", "warn", this.toString());
++    this.render();
++},
++
++/**
++ * @method select
++ * @deprecated Use selectRow.
++ */
++select : function(els) {
++    // Backward compatibility
++    YAHOO.log("The method select() has been deprecated" +
++            " in favor of selectRow()", "warn", this.toString());
++    if(!lang.isArray(els)) {
++        els = [els];
++    }
++    for(var i=0; i<els.length; i++) {
++        this.selectRow(els[i]);
++    }
++},
++
++/**
++ * @method onEventEditCell
++ * @deprecated Use onEventShowCellEditor.
++ */
++onEventEditCell : function(oArgs) {
++    // Backward compatibility
++    YAHOO.log("The method onEventEditCell() has been deprecated" +
++        " in favor of onEventShowCellEditor()", "warn", this.toString());
++    this.onEventShowCellEditor(oArgs);
++},
++
++/**
++ * @method _syncColWidths
++ * @deprecated Use validateColumnWidths.
++ */
++_syncColWidths : function() {
++    // Backward compatibility
++    YAHOO.log("The method _syncColWidths() has been deprecated" +
++        " in favor of validateColumnWidths()", "warn", this.toString());
++    this.validateColumnWidths();
++}
++
++/**
++ * @event headerRowMouseoverEvent
++ * @deprecated Use theadRowMouseoverEvent.
++ */
++
++/**
++ * @event headerRowMouseoutEvent
++ * @deprecated Use theadRowMouseoutEvent.
++ */
++
++/**
++ * @event headerRowMousedownEvent
++ * @deprecated Use theadRowMousedownEvent.
++ */
++
++/**
++ * @event headerRowClickEvent
++ * @deprecated Use theadRowClickEvent.
++ */
++
++/**
++ * @event headerRowDblclickEvent
++ * @deprecated Use theadRowDblclickEvent.
++ */
++
++/**
++ * @event headerCellMouseoverEvent
++ * @deprecated Use theadCellMouseoverEvent.
++ */
++
++/**
++ * @event headerCellMouseoutEvent
++ * @deprecated Use theadCellMouseoutEvent.
++ */
++
++/**
++ * @event headerCellMousedownEvent
++ * @deprecated Use theadCellMousedownEvent.
++ */
++
++/**
++ * @event headerCellClickEvent
++ * @deprecated Use theadCellClickEvent.
++ */
++
++/**
++ * @event headerCellDblclickEvent
++ * @deprecated Use theadCellDblclickEvent.
++ */
++
++/**
++ * @event headerLabelMouseoverEvent
++ * @deprecated Use theadLabelMouseoverEvent.
++ */
++
++/**
++ * @event headerLabelMouseoutEvent
++ * @deprecated Use theadLabelMouseoutEvent.
++ */
++
++/**
++ * @event headerLabelMousedownEvent
++ * @deprecated Use theadLabelMousedownEvent.
++ */
++
++/**
++ * @event headerLabelClickEvent
++ * @deprecated Use theadLabelClickEvent.
++ */
++
++/**
++ * @event headerLabelDbllickEvent
++ * @deprecated Use theadLabelDblclickEvent.
++ */
++
++});
++
++/**
++ * Alias for onDataReturnSetRows for backward compatibility
++ * @method onDataReturnSetRecords
++ * @deprecated Use onDataReturnSetRows
++ */
++DT.prototype.onDataReturnSetRecords = DT.prototype.onDataReturnSetRows;
++
++/**
++ * Alias for onPaginatorChange for backward compatibility
++ * @method onPaginatorChange
++ * @deprecated Use onPaginatorChangeRequest
++ */
++DT.prototype.onPaginatorChange = DT.prototype.onPaginatorChangeRequest;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated static APIs
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * @method DataTable.formatTheadCell
++ * @deprecated  Use formatTheadCell.
++ */
++DT.formatTheadCell = function() {};
++
++/**
++ * @method DataTable.editCheckbox
++ * @deprecated  Use YAHOO.widget.CheckboxCellEditor.
++ */
++DT.editCheckbox = function() {};
++
++/**
++ * @method DataTable.editDate
++ * @deprecated Use YAHOO.widget.DateCellEditor.
++ */
++DT.editDate = function() {};
++
++/**
++ * @method DataTable.editDropdown
++ * @deprecated Use YAHOO.widget.DropdownCellEditor.
++ */
++DT.editDropdown = function() {};
++
++/**
++ * @method DataTable.editRadio
++ * @deprecated Use YAHOO.widget.RadioCellEditor.
++ */
++DT.editRadio = function() {};
++
++/**
++ * @method DataTable.editTextarea
++ * @deprecated Use YAHOO.widget.TextareaCellEditor
++ */
++DT.editTextarea = function() {};
++
++/**
++ * @method DataTable.editTextbox
++ * @deprecated Use YAHOO.widget.TextboxCellEditor
++ */
++DT.editTextbox= function() {};
++
++})();
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    ua     = YAHOO.env.ua,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    DS     = util.DataSourceBase,
++    DT     = widget.DataTable,
++    Pag    = widget.Paginator;
++    
++/**
++ * The ScrollingDataTable class extends the DataTable class to provide
++ * functionality for x-scrolling, y-scrolling, and xy-scrolling.
++ *
++ * @namespace YAHOO.widget
++ * @class ScrollingDataTable
++ * @extends YAHOO.widget.DataTable
++ * @constructor
++ * @param elContainer {HTMLElement} Container element for the TABLE.
++ * @param aColumnDefs {Object[]} Array of object literal Column definitions.
++ * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++widget.ScrollingDataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
++    oConfigs = oConfigs || {};
++    
++    // Prevent infinite loop
++    if(oConfigs.scrollable) {
++        oConfigs.scrollable = false;
++    }
++
++    widget.ScrollingDataTable.superclass.constructor.call(this, elContainer,aColumnDefs,oDataSource,oConfigs); 
++
++    // Once per instance
++    this.subscribe("columnShowEvent", this._onColumnChange);
++};
++
++var SDT = widget.ScrollingDataTable;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public constants
++//
++/////////////////////////////////////////////////////////////////////////////
++lang.augmentObject(SDT, {
++
++    /**
++     * Class name assigned to inner DataTable header container.
++     *
++     * @property DataTable.CLASS_HEADER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-hd"
++     */
++    CLASS_HEADER : "yui-dt-hd",
++    
++    /**
++     * Class name assigned to inner DataTable body container.
++     *
++     * @property DataTable.CLASS_BODY
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-bd"
++     */
++    CLASS_BODY : "yui-dt-bd"
++});
++
++lang.extend(SDT, DT, {
++
++/**
++ * Container for fixed header TABLE element.
++ *
++ * @property _elHdContainer
++ * @type HTMLElement
++ * @private
++ */
++_elHdContainer : null,
++
++/**
++ * Fixed header TABLE element.
++ *
++ * @property _elHdTable
++ * @type HTMLElement
++ * @private
++ */
++_elHdTable : null,
++
++/**
++ * Container for scrolling body TABLE element.
++ *
++ * @property _elBdContainer
++ * @type HTMLElement
++ * @private
++ */
++_elBdContainer : null,
++
++/**
++ * Body THEAD element.
++ *
++ * @property _elBdThead
++ * @type HTMLElement
++ * @private
++ */
++_elBdThead : null,
++
++/**
++ * Offscreen container to temporarily clone SDT for auto-width calculation.
++ *
++ * @property _elTmpContainer
++ * @type HTMLElement
++ * @private
++ */
++_elTmpContainer : null,
++
++/**
++ * Offscreen TABLE element for auto-width calculation.
++ *
++ * @property _elTmpTable
++ * @type HTMLElement
++ * @private
++ */
++_elTmpTable : null,
++
++/**
++ * True if x-scrollbar is currently visible.
++ * @property _bScrollbarX
++ * @type Boolean
++ * @private 
++ */
++_bScrollbarX : null,
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Superclass methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Implementation of Element's abstract method. Sets up config values.
++ *
++ * @method initAttributes
++ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
++ * @private
++ */
++
++initAttributes : function(oConfigs) {
++    oConfigs = oConfigs || {};
++    SDT.superclass.initAttributes.call(this, oConfigs);
++
++    /**
++    * @attribute width
++    * @description Table width for scrollable tables (e.g., "40em").
++    * @type String
++    */
++    this.setAttributeConfig("width", {
++        value: null,
++        validator: lang.isString,
++        method: function(oParam) {
++            if(this._elHdContainer && this._elBdContainer) {
++                this._elHdContainer.style.width = oParam;
++                this._elBdContainer.style.width = oParam;            
++                this._syncScrollX();      
++                this._syncScrollOverhang();
++            }
++        }
++    });
++
++    /**
++    * @attribute height
++    * @description Table body height for scrollable tables, not including headers (e.g., "40em").
++    * @type String
++    */
++    this.setAttributeConfig("height", {
++        value: null,
++        validator: lang.isString,
++        method: function(oParam) {
++            if(this._elHdContainer && this._elBdContainer) {
++                this._elBdContainer.style.height = oParam;    
++                this._syncScrollX();   
++                this._syncScrollY();
++                this._syncScrollOverhang();
++            }
++        }
++    });
++
++    /**
++    * @attribute COLOR_COLUMNFILLER
++    * @description CSS color value assigned to header filler on scrollable tables.  
++    * @type String
++    * @default "#F2F2F2"
++    */
++    this.setAttributeConfig("COLOR_COLUMNFILLER", {
++        value: "#F2F2F2",
++        validator: lang.isString,
++        method: function(oParam) {
++            this._elHdContainer.style.backgroundColor = oParam;
++        }
++    });
++},
++
++/**
++ * Initializes DOM elements for a ScrollingDataTable, including creation of
++ * two separate TABLE elements.
++ *
++ * @method _initDomElements
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
++ * return {Boolean} False in case of error, otherwise true 
++ * @private
++ */
++_initDomElements : function(elContainer) {
++    // Outer and inner containers
++    this._initContainerEl(elContainer);
++    if(this._elContainer && this._elHdContainer && this._elBdContainer) {
++        // TABLEs
++        this._initTableEl();
++        
++        if(this._elHdTable && this._elTable) {
++            // COLGROUPs
++            ///this._initColgroupEl(this._elHdTable, this._elTable);  
++            this._initColgroupEl(this._elHdTable);        
++            
++            // THEADs
++            this._initTheadEl(this._elHdTable, this._elTable);
++            
++            // Primary TBODY
++            this._initTbodyEl(this._elTable);
++            // Message TBODY
++            this._initMsgTbodyEl(this._elTable);            
++        }
++    }
++    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody ||
++            !this._elHdTable || !this._elBdThead) {
++        YAHOO.log("Could not instantiate DataTable due to an invalid DOM elements", "error", this.toString());
++        return false;
++    }
++    else {
++        return true;
++    }
++},
++
++/**
++ * Destroy's the DataTable outer and inner container elements, if available.
++ *
++ * @method _destroyContainerEl
++ * @param elContainer {HTMLElement} Reference to the container element. 
++ * @private
++ */
++_destroyContainerEl : function(elContainer) {
++    Dom.removeClass(elContainer, DT.CLASS_SCROLLABLE);
++    SDT.superclass._destroyContainerEl.call(this, elContainer);
++    this._elHdContainer = null;
++    this._elBdContainer = null;
++},
++
++/**
++ * Initializes the DataTable outer container element and creates inner header
++ * and body container elements.
++ *
++ * @method _initContainerEl
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
++ * @private
++ */
++_initContainerEl : function(elContainer) {
++    SDT.superclass._initContainerEl.call(this, elContainer);
++    
++    if(this._elContainer) {
++        elContainer = this._elContainer; // was constructor input, now is DOM ref
++        Dom.addClass(elContainer, DT.CLASS_SCROLLABLE);
++        
++        // Container for header TABLE
++        var elHdContainer = document.createElement("div");
++        elHdContainer.style.width = this.get("width") || "";
++        elHdContainer.style.backgroundColor = this.get("COLOR_COLUMNFILLER");
++        Dom.addClass(elHdContainer, SDT.CLASS_HEADER);
++        this._elHdContainer = elHdContainer;
++        elContainer.appendChild(elHdContainer);
++    
++        // Container for body TABLE
++        var elBdContainer = document.createElement("div");
++        elBdContainer.style.width = this.get("width") || "";
++        elBdContainer.style.height = this.get("height") || "";
++        Dom.addClass(elBdContainer, SDT.CLASS_BODY);
++        Ev.addListener(elBdContainer, "scroll", this._onScroll, this); // to sync horiz scroll headers
++        this._elBdContainer = elBdContainer;
++        elContainer.appendChild(elBdContainer);
++    }
++},
++
++/**
++ * Creates HTML markup CAPTION element.
++ *
++ * @method _initCaptionEl
++ * @param sCaption {String} Text for caption.
++ * @private
++ */
++_initCaptionEl : function(sCaption) {
++    // Not yet supported
++    /*if(this._elHdTable && sCaption) {
++        // Create CAPTION element
++        if(!this._elCaption) { 
++            this._elCaption = this._elHdTable.createCaption();
++        }
++        // Set CAPTION value
++        this._elCaption.innerHTML = sCaption;
++    }
++    else if(this._elCaption) {
++        this._elCaption.parentNode.removeChild(this._elCaption);
++    }*/
++},
++
++/**
++ * Destroy's the DataTable head TABLE element, if available.
++ *
++ * @method _destroyHdTableEl
++ * @private
++ */
++_destroyHdTableEl : function() {
++    var elTable = this._elHdTable;
++    if(elTable) {
++        Ev.purgeElement(elTable, true);
++        elTable.parentNode.removeChild(elTable);
++        
++        // A little out of place, but where else can we null out these extra elements?
++        ///this._elBdColgroup = null;
++        this._elBdThead = null;
++    }
++},
++
++/**
++ * Initializes ScrollingDataTable TABLE elements into the two inner containers.
++ *
++ * @method _initTableEl
++ * @private
++ */
++_initTableEl : function() {
++    // Head TABLE
++    if(this._elHdContainer) {
++        this._destroyHdTableEl();
++    
++        // Create TABLE
++        this._elHdTable = this._elHdContainer.appendChild(document.createElement("table"));   
++    } 
++    // Body TABLE
++    SDT.superclass._initTableEl.call(this, this._elBdContainer);
++},
++
++/**
++ * Initializes ScrollingDataTable THEAD elements into the two inner containers.
++ *
++ * @method _initTheadEl
++ * @param elHdTable {HTMLElement} (optional) Fixed header TABLE element reference.
++ * @param elTable {HTMLElement} (optional) TABLE element reference.
++ * @private
++ */
++_initTheadEl : function(elHdTable, elTable) {
++    elHdTable = elHdTable || this._elHdTable;
++    elTable = elTable || this._elTable;
++    
++    // Scrolling body's THEAD
++    this._initBdTheadEl(elTable);
++    // Standard fixed head THEAD
++    SDT.superclass._initTheadEl.call(this, elHdTable);
++},
++
++/**
++ * SDT changes ID so as not to duplicate the accessibility TH IDs.
++ *
++ * @method _initThEl
++ * @param elTh {HTMLElement} TH element reference.
++ * @param oColumn {YAHOO.widget.Column} Column object.
++ * @private
++ */
++_initThEl : function(elTh, oColumn) {
++    SDT.superclass._initThEl.call(this, elTh, oColumn);
++    elTh.id = this.getId() +"-fixedth-" + oColumn.getSanitizedKey(); // Needed for getColumn by TH and ColumnDD
++},
++
++/**
++ * Destroy's the DataTable body THEAD element, if available.
++ *
++ * @method _destroyBdTheadEl
++ * @private
++ */
++_destroyBdTheadEl : function() {
++    var elBdThead = this._elBdThead;
++    if(elBdThead) {
++        var elTable = elBdThead.parentNode;
++        Ev.purgeElement(elBdThead, true);
++        elTable.removeChild(elBdThead);
++        this._elBdThead = null;
++
++        this._destroyColumnHelpers();
++    }
++},
++
++/**
++ * Initializes body THEAD element.
++ *
++ * @method _initBdTheadEl
++ * @param elTable {HTMLElement} TABLE element into which to create THEAD.
++ * @return {HTMLElement} Initialized THEAD element. 
++ * @private
++ */
++_initBdTheadEl : function(elTable) {
++    if(elTable) {
++        // Destroy previous
++        this._destroyBdTheadEl();
++
++        var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild);
++        
++        // Add TRs to the THEAD;
++        var oColumnSet = this._oColumnSet,
++            colTree = oColumnSet.tree,
++            elTh, elTheadTr, oColumn, i, j, k, len;
++
++        for(i=0, k=colTree.length; i<k; i++) {
++            elTheadTr = elThead.appendChild(document.createElement("tr"));
++    
++            // ...and create TH cells
++            for(j=0, len=colTree[i].length; j<len; j++) {
++                oColumn = colTree[i][j];
++                elTh = elTheadTr.appendChild(document.createElement("th"));
++                this._initBdThEl(elTh,oColumn,i,j);
++            }
++        }
++        this._elBdThead = elThead;
++        YAHOO.log("Accessibility TH cells for " + this._oColumnSet.keys.length + " keys created","info",this.toString());
++    }
++},
++
++/**
++ * Populates TH element for the body THEAD element.
++ *
++ * @method _initBdThEl
++ * @param elTh {HTMLElement} TH element reference.
++ * @param oColumn {YAHOO.widget.Column} Column object.
++ * @private
++ */
++_initBdThEl : function(elTh, oColumn) {
++    elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility
++    elTh.rowSpan = oColumn.getRowspan();
++    elTh.colSpan = oColumn.getColspan();
++    // Assign abbr attribute
++    if(oColumn.abbr) {
++        elTh.abbr = oColumn.abbr;
++    }
++
++    // TODO: strip links and form elements
++    var sKey = oColumn.getKey();
++    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
++    elTh.innerHTML = sLabel;
++},
++
++/**
++ * Initializes ScrollingDataTable TBODY element for data
++ *
++ * @method _initTbodyEl
++ * @param elTable {HTMLElement} TABLE element into which to create TBODY .
++ * @private
++ */
++_initTbodyEl : function(elTable) {
++    SDT.superclass._initTbodyEl.call(this, elTable);
++    
++    // Bug 2105534 - Safari 3 gap
++    // Bug 2492591 - IE8 offsetTop
++    elTable.style.marginTop = (this._elTbody.offsetTop > 0) ?
++            "-"+this._elTbody.offsetTop+"px" : 0;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/**
++ * Sets focus on the given element.
++ *
++ * @method _focusEl
++ * @param el {HTMLElement} Element.
++ * @private
++ */
++_focusEl : function(el) {
++    el = el || this._elTbody;
++    var oSelf = this;
++    this._storeScrollPositions();
++    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
++    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
++    // strange unexpected things as the user clicks on buttons and other controls.
++    
++    // Bug 1921135: Wrap the whole thing in a setTimeout
++    setTimeout(function() {
++        setTimeout(function() {
++            try {
++                el.focus();
++                oSelf._restoreScrollPositions();
++            }
++            catch(e) {
++            }
++        },0);
++    }, 0);
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/**
++ * Internal wrapper calls run() on render Chain instance.
++ *
++ * @method _runRenderChain
++ * @private 
++ */
++_runRenderChain : function() {
++    this._storeScrollPositions();
++    this._oChainRender.run();
++},
++
++/**
++ * Stores scroll positions so they can be restored after a render.
++ *
++ * @method _storeScrollPositions
++ * @private
++ */
++ _storeScrollPositions : function() {
++    this._nScrollTop = this._elBdContainer.scrollTop;
++    this._nScrollLeft = this._elBdContainer.scrollLeft;
++},
++
++/**
++ * Clears stored scroll positions to interrupt the automatic restore mechanism.
++ * Useful for setting scroll positions programmatically rather than as part of
++ * the post-render cleanup process.
++ *
++ * @method clearScrollPositions
++ * @private
++ */
++ clearScrollPositions : function() {
++    this._nScrollTop = 0;
++    this._nScrollLeft = 0;
++},
++
++/**
++ * Restores scroll positions to stored value. 
++ *
++ * @method _retoreScrollPositions
++ * @private 
++ */
++ _restoreScrollPositions : function() {
++    // Reset scroll positions
++    if(this._nScrollTop) {
++        this._elBdContainer.scrollTop = this._nScrollTop;
++        this._nScrollTop = null;
++    } 
++    if(this._nScrollLeft) {
++        this._elBdContainer.scrollLeft = this._nScrollLeft;
++        this._nScrollLeft = null;
++    } 
++},
++
++/**
++ * Helper function calculates and sets a validated width for a Column in a ScrollingDataTable.
++ *
++ * @method _validateColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param elTd {HTMLElement} TD element to validate against.
++ * @private
++ */
++_validateColumnWidth : function(oColumn, elTd) {
++    // Only Columns without widths that are not hidden
++    if(!oColumn.width && !oColumn.hidden) {
++        var elTh = oColumn.getThEl();
++        // Unset a calculated auto-width
++        if(oColumn._calculatedWidth) {
++            this._setColumnWidth(oColumn, "auto", "visible");
++        }
++        // Compare auto-widths
++        if(elTh.offsetWidth !== elTd.offsetWidth) {
++            var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
++                    oColumn.getThLinerEl() : elTd.firstChild;               
++
++            // Grab the wider liner width, unless the minWidth is wider
++            var newWidth = Math.max(0,
++                (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
++                oColumn.minWidth);
++                
++            var sOverflow = 'visible';
++            
++            // Now validate against maxAutoWidth
++            if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
++                newWidth = oColumn.maxAutoWidth;
++                sOverflow = "hidden";
++            }
++
++            // Set to the wider auto-width
++            this._elTbody.style.display = "none";
++            this._setColumnWidth(oColumn, newWidth+'px', sOverflow);
++            oColumn._calculatedWidth = newWidth;
++            this._elTbody.style.display = "";
++        }
++    }
++},
++
++/**
++ * For one or all Columns of a ScrollingDataTable, when Column is not hidden,
++ * and width is not set, syncs widths of header and body cells and 
++ * validates that width against minWidth and/or maxAutoWidth as necessary.
++ *
++ * @method validateColumnWidths
++ * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
++ */
++validateColumnWidths : function(oColumn) {
++    // Validate there is at least one TR with proper TDs
++    var allKeys   = this._oColumnSet.keys,
++        allKeysLength = allKeys.length,
++        elRow     = this.getFirstTrEl();
++
++    // Reset overhang for IE
++    if(ua.ie) {
++        this._setOverhangValue(1);
++    }
++
++    if(allKeys && elRow && (elRow.childNodes.length === allKeysLength)) {
++        // Temporarily unsnap container since it causes inaccurate calculations
++        var sWidth = this.get("width");
++        if(sWidth) {
++            this._elHdContainer.style.width = "";
++            this._elBdContainer.style.width = "";
++        }
++        this._elContainer.style.width = "";
++        
++        //Validate just one Column
++        if(oColumn && lang.isNumber(oColumn.getKeyIndex())) {
++            this._validateColumnWidth(oColumn, elRow.childNodes[oColumn.getKeyIndex()]);
++        }
++        // Iterate through all Columns to unset calculated widths in one pass
++        else {
++            var elTd, todos = [], thisTodo, i, len;
++            for(i=0; i<allKeysLength; i++) {
++                oColumn = allKeys[i];
++                // Only Columns without widths that are not hidden, unset a calculated auto-width
++                if(!oColumn.width && !oColumn.hidden && oColumn._calculatedWidth) {
++                    todos[todos.length] = oColumn;      
++                }
++            }
++            
++            this._elTbody.style.display = "none";
++            for(i=0, len=todos.length; i<len; i++) {
++                this._setColumnWidth(todos[i], "auto", "visible");
++            }
++            this._elTbody.style.display = "";
++            
++            todos = [];
++
++            // Iterate through all Columns and make the store the adjustments to make in one pass
++            for(i=0; i<allKeysLength; i++) {
++                oColumn = allKeys[i];
++                elTd = elRow.childNodes[i];
++                // Only Columns without widths that are not hidden
++                if(!oColumn.width && !oColumn.hidden) {
++                    var elTh = oColumn.getThEl();
++
++                    // Compare auto-widths
++                    if(elTh.offsetWidth !== elTd.offsetWidth) {
++                        var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
++                                oColumn.getThLinerEl() : elTd.firstChild;               
++                
++                        // Grab the wider liner width, unless the minWidth is wider
++                        var newWidth = Math.max(0,
++                            (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
++                            oColumn.minWidth);
++                            
++                        var sOverflow = 'visible';
++                        
++                        // Now validate against maxAutoWidth
++                        if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
++                            newWidth = oColumn.maxAutoWidth;
++                            sOverflow = "hidden";
++                        }
++                
++                        todos[todos.length] = [oColumn, newWidth, sOverflow];
++                    }
++                }
++            }
++            
++            this._elTbody.style.display = "none";
++            for(i=0, len=todos.length; i<len; i++) {
++                thisTodo = todos[i];
++                // Set to the wider auto-width
++                this._setColumnWidth(thisTodo[0], thisTodo[1]+"px", thisTodo[2]);
++                thisTodo[0]._calculatedWidth = thisTodo[1];
++            }
++            this._elTbody.style.display = "";
++        }
++    
++        // Resnap unsnapped containers
++        if(sWidth) {
++            this._elHdContainer.style.width = sWidth;
++            this._elBdContainer.style.width = sWidth;
++        } 
++    }
++    
++    this._syncScroll();
++    this._restoreScrollPositions();
++},
++
++/**
++ * Syncs padding around scrollable tables, including Column header right-padding
++ * and container width and height.
++ *
++ * @method _syncScroll
++ * @private 
++ */
++_syncScroll : function() {
++    this._syncScrollX();
++    this._syncScrollY();
++    this._syncScrollOverhang();
++    if(ua.opera) {
++        // Bug 1925874
++        this._elHdContainer.scrollLeft = this._elBdContainer.scrollLeft;
++        if(!this.get("width")) {
++            // Bug 1926125
++            document.body.style += '';
++        }
++    }
++ },
++
++/**
++ * Snaps container width for y-scrolling tables.
++ *
++ * @method _syncScrollY
++ * @private
++ */
++_syncScrollY : function() {
++    var elTbody = this._elTbody,
++        elBdContainer = this._elBdContainer;
++    
++    // X-scrolling not enabled
++    if(!this.get("width")) {
++        // Snap outer container width to content
++        this._elContainer.style.width = 
++                (elBdContainer.scrollHeight > elBdContainer.clientHeight) ?
++                // but account for y-scrollbar since it is visible
++                (elTbody.parentNode.clientWidth + 19) + "px" :
++                // no y-scrollbar, just borders
++                (elTbody.parentNode.clientWidth + 2) + "px";
++    }
++},
++
++/**
++ * Snaps container height for x-scrolling tables in IE. Syncs message TBODY width.
++ *
++ * @method _syncScrollX
++ * @private
++ */
++_syncScrollX : function() {
++    var elTbody = this._elTbody,
++        elBdContainer = this._elBdContainer;
++    
++    // IE 6 and 7 only when y-scrolling not enabled
++    if(!this.get("height") && (ua.ie)) {
++        // Snap outer container height to content
++        elBdContainer.style.height = 
++                // but account for x-scrollbar if it is visible
++                (elBdContainer.scrollWidth > elBdContainer.offsetWidth ) ?
++                (elTbody.parentNode.offsetHeight + 18) + "px" : 
++                elTbody.parentNode.offsetHeight + "px";
++    }
++
++    // Sync message tbody
++    if(this._elTbody.rows.length === 0) {
++        this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
++    }
++    else {
++        this._elMsgTbody.parentNode.style.width = "";
++    }
++},
++
++/**
++ * Adds/removes Column header overhang as necesary.
++ *
++ * @method _syncScrollOverhang
++ * @private
++ */
++_syncScrollOverhang : function() {
++    var elBdContainer = this._elBdContainer,
++        // Overhang should be either 1 (default) or 18px, depending on the location of the right edge of the table
++        nPadding = 1;
++    
++    // Y-scrollbar is visible, which is when the overhang needs to jut out
++    if((elBdContainer.scrollHeight > elBdContainer.clientHeight) &&
++        // X-scrollbar is also visible, which means the right is jagged, not flush with the Column
++        (elBdContainer.scrollWidth > elBdContainer.clientWidth)) {
++        nPadding = 18;
++    }
++    
++    this._setOverhangValue(nPadding);
++    
++},
++
++/**
++ * Sets Column header overhang to given width.
++ *
++ * @method _setOverhangValue
++ * @param nBorderWidth {Number} Value of new border for overhang. 
++ * @private
++ */
++_setOverhangValue : function(nBorderWidth) {
++    var aLastHeaders = this._oColumnSet.headers[this._oColumnSet.headers.length-1] || [],
++        len = aLastHeaders.length,
++        sPrefix = this._sId+"-fixedth-",
++        sValue = nBorderWidth + "px solid " + this.get("COLOR_COLUMNFILLER");
++
++    this._elThead.style.display = "none";
++    for(var i=0; i<len; i++) {
++        Dom.get(sPrefix+aLastHeaders[i]).style.borderRight = sValue;
++    }
++    this._elThead.style.display = "";
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/**
++ * Returns DOM reference to the DataTable's fixed header container element.
++ *
++ * @method getHdContainerEl
++ * @return {HTMLElement} Reference to DIV element.
++ */
++getHdContainerEl : function() {
++    return this._elHdContainer;
++},
++
++/**
++ * Returns DOM reference to the DataTable's scrolling body container element.
++ *
++ * @method getBdContainerEl
++ * @return {HTMLElement} Reference to DIV element.
++ */
++getBdContainerEl : function() {
++    return this._elBdContainer;
++},
++
++/**
++ * Returns DOM reference to the DataTable's fixed header TABLE element.
++ *
++ * @method getHdTableEl
++ * @return {HTMLElement} Reference to TABLE element.
++ */
++getHdTableEl : function() {
++    return this._elHdTable;
++},
++
++/**
++ * Returns DOM reference to the DataTable's scrolling body TABLE element.
++ *
++ * @method getBdTableEl
++ * @return {HTMLElement} Reference to TABLE element.
++ */
++getBdTableEl : function() {
++    return this._elTable;
++},
++
++/**
++ * Disables ScrollingDataTable UI.
++ *
++ * @method disable
++ */
++disable : function() {
++    var elMask = this._elMask;
++    elMask.style.width = this._elBdContainer.offsetWidth + "px";
++    elMask.style.height = this._elHdContainer.offsetHeight + this._elBdContainer.offsetHeight + "px";
++    elMask.style.display = "";
++    this.fireEvent("disableEvent");
++},
++
++/**
++ * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
++ * non-nested Columns, and top-level parent Columns (which will remove all
++ * children Columns).
++ *
++ * @method removeColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @return oColumn {YAHOO.widget.Column} Removed Column instance.
++ */
++removeColumn : function(oColumn) {
++    // Store scroll pos
++    var hdPos = this._elHdContainer.scrollLeft;
++    var bdPos = this._elBdContainer.scrollLeft;
++    
++    // Call superclass method
++    oColumn = SDT.superclass.removeColumn.call(this, oColumn);
++    
++    // Restore scroll pos
++    this._elHdContainer.scrollLeft = hdPos;
++    this._elBdContainer.scrollLeft = bdPos;
++    
++    return oColumn;
++},
++
++/**
++ * Inserts given Column at the index if given, otherwise at the end. NOTE: You
++ * can only add non-nested Columns and top-level parent Columns. You cannot add
++ * a nested Column to an existing parent.
++ *
++ * @method insertColumn
++ * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
++ * definition or a Column instance.
++ * @param index {Number} (optional) New tree index.
++ * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
++ */
++insertColumn : function(oColumn, index) {
++    // Store scroll pos
++    var hdPos = this._elHdContainer.scrollLeft;
++    var bdPos = this._elBdContainer.scrollLeft;
++    
++    // Call superclass method
++    var oNewColumn = SDT.superclass.insertColumn.call(this, oColumn, index);
++    
++    // Restore scroll pos
++    this._elHdContainer.scrollLeft = hdPos;
++    this._elBdContainer.scrollLeft = bdPos;
++    
++    return oNewColumn;
++},
++
++/**
++ * Removes given Column and inserts into given tree index. NOTE: You
++ * can only reorder non-nested Columns and top-level parent Columns. You cannot
++ * reorder a nested Column to an existing parent.
++ *
++ * @method reorderColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param index {Number} New tree index.
++ */
++reorderColumn : function(oColumn, index) {
++    // Store scroll pos
++    var hdPos = this._elHdContainer.scrollLeft;
++    var bdPos = this._elBdContainer.scrollLeft;
++    
++    // Call superclass method
++    var oNewColumn = SDT.superclass.reorderColumn.call(this, oColumn, index);
++    
++    // Restore scroll pos
++    this._elHdContainer.scrollLeft = hdPos;
++    this._elBdContainer.scrollLeft = bdPos;
++
++    return oNewColumn;
++},
++
++/**
++ * Sets given Column to given pixel width. If new width is less than minWidth
++ * width, sets to minWidth. Updates oColumn.width value.
++ *
++ * @method setColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param nWidth {Number} New width in pixels.
++ */
++setColumnWidth : function(oColumn, nWidth) {
++    oColumn = this.getColumn(oColumn);
++    if(oColumn) {
++        this._storeScrollPositions();
++
++        // Validate new width against minWidth
++        if(lang.isNumber(nWidth)) {
++            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
++
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, nWidth+"px");
++            this._syncScroll();
++            
++            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
++            YAHOO.log("Set width of Column " + oColumn + " to " + nWidth + "px", "info", this.toString());
++        }
++        // Unsets a width to auto-size
++        else if(nWidth === null) {
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, "auto");
++            this.validateColumnWidths(oColumn);
++            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
++            YAHOO.log("Column " + oColumn + " width unset", "info", this.toString());
++        }
++        
++        // Bug 2339454: resize then sort misaligment
++        this._clearTrTemplateEl();
++    }
++    else {
++        YAHOO.log("Could not set width of Column " + oColumn + " to " + nWidth + "px", "warn", this.toString());
++    }
++},
++
++/**
++ * Scrolls to given row or cell
++ *
++ * @method scrollTo
++ * @param to {YAHOO.widget.Record | HTMLElement } Itme to scroll to.
++ */
++scrollTo : function(to) {
++        var td = this.getTdEl(to);
++        if(td) {
++            this.clearScrollPositions();
++            this.getBdContainerEl().scrollLeft = td.offsetLeft;
++            this.getBdContainerEl().scrollTop = td.parentNode.offsetTop;
++        }
++        else {
++            var tr = this.getTrEl(to);
++            if(tr) {
++                this.clearScrollPositions();
++                this.getBdContainerEl().scrollTop = tr.offsetTop;
++            }
++        }
++},
++
++/**
++ * Displays message within secondary TBODY.
++ *
++ * @method showTableMessage
++ * @param sHTML {String} (optional) Value for innerHTMlang.
++ * @param sClassName {String} (optional) Classname.
++ */
++showTableMessage : function(sHTML, sClassName) {
++    var elCell = this._elMsgTd;
++    if(lang.isString(sHTML)) {
++        elCell.firstChild.innerHTML = sHTML;
++    }
++    if(lang.isString(sClassName)) {
++        Dom.addClass(elCell.firstChild, sClassName);
++    }
++
++    // Needed for SDT only
++    var elThead = this.getTheadEl();
++    var elTable = elThead.parentNode;
++    var newWidth = elTable.offsetWidth;
++    this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
++
++    this._elMsgTbody.style.display = "";
++
++    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
++    YAHOO.log("DataTable showing message: " + sHTML, "info", this.toString());
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private Custom Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Handles Column mutations
++ *
++ * @method onColumnChange
++ * @param oArgs {Object} Custom Event data.
++ */
++_onColumnChange : function(oArg) {
++    // Figure out which Column changed
++    var oColumn = (oArg.column) ? oArg.column :
++            (oArg.editor) ? oArg.editor.column : null;
++    this._storeScrollPositions();
++    this.validateColumnWidths(oColumn);
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private DOM Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Syncs scrolltop and scrollleft of all TABLEs.
++ *
++ * @method _onScroll
++ * @param e {HTMLEvent} The scroll event.
++ * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
++ * @private
++ */
++_onScroll : function(e, oSelf) {
++    oSelf._elHdContainer.scrollLeft = oSelf._elBdContainer.scrollLeft;
++
++    if(oSelf._oCellEditor && oSelf._oCellEditor.isActive) {
++        oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        oSelf.cancelCellEditor();
++    }
++
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    oSelf.fireEvent("tableScrollEvent", {event:e, target:elTarget});
++},
++
++/**
++ * Handles keydown events on the THEAD element.
++ *
++ * @method _onTheadKeydown
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
++ * @private
++ */
++_onTheadKeydown : function(e, oSelf) {
++    // If tabbing to next TH label link causes THEAD to scroll,
++    // need to sync scrollLeft with TBODY
++    if(Ev.getCharCode(e) === 9) {
++        setTimeout(function() {
++            if((oSelf instanceof SDT) && oSelf._sId) {
++                oSelf._elBdContainer.scrollLeft = oSelf._elHdContainer.scrollLeft;
++            }
++        },0);
++    }
++    
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++            case "textarea":
++                // TODO: implement textareaKeyEvent
++                break;
++            case "thead":
++                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
++}
++
++
++
++
++/**
++ * Fired when a fixed scrolling DataTable has a scroll.
++ *
++ * @event tableScrollEvent
++ * @param oArgs.event {HTMLEvent} The event object.
++ * @param oArgs.target {HTMLElement} The DataTable's CONTAINER element (in IE)
++ * or the DataTable's TBODY element (everyone else).
++ *
++ */
++
++
++
++
++});
++
++})();
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    ua     = YAHOO.env.ua,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    
++    DT     = widget.DataTable;
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The BaseCellEditor class provides base functionality common to all inline cell
++ * editors for a DataTable widget.
++ *
++ * @namespace YAHOO.widget
++ * @class BaseCellEditor
++ * @uses YAHOO.util.EventProvider 
++ * @constructor
++ * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.BaseCellEditor = function(sType, oConfigs) {
++    this._sId = this._sId || "yui-ceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    this._sType = sType;
++    
++    // Validate inputs
++    this._initConfigs(oConfigs); 
++    
++    // Create Custom Events
++    this._initEvents();
++             
++    // Draw UI
++    this.render();
++};
++
++var BCE = widget.BaseCellEditor;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Static members
++//
++/////////////////////////////////////////////////////////////////////////////
++lang.augmentObject(BCE, {
++
++/**
++ * Global instance counter.
++ *
++ * @property CellEditor._nCount
++ * @type Number
++ * @static
++ * @default 0
++ * @private 
++ */
++_nCount : 0,
++
++/**
++ * Class applied to CellEditor container.
++ *
++ * @property CellEditor.CLASS_CELLEDITOR
++ * @type String
++ * @static
++ * @default "yui-ceditor"
++ */
++CLASS_CELLEDITOR : "yui-ceditor"
++
++});
++
++BCE.prototype = {
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private members
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Unique id assigned to instance "yui-ceditorN", useful prefix for generating unique
++ * DOM ID strings and log messages.
++ *
++ * @property _sId
++ * @type String
++ * @private
++ */
++_sId : null,
++
++/**
++ * Editor type.
++ *
++ * @property _sType
++ * @type String
++ * @private
++ */
++_sType : null,
++
++/**
++ * DataTable instance.
++ *
++ * @property _oDataTable
++ * @type YAHOO.widget.DataTable
++ * @private 
++ */
++_oDataTable : null,
++
++/**
++ * Column instance.
++ *
++ * @property _oColumn
++ * @type YAHOO.widget.Column
++ * @default null
++ * @private 
++ */
++_oColumn : null,
++
++/**
++ * Record instance.
++ *
++ * @property _oRecord
++ * @type YAHOO.widget.Record
++ * @default null
++ * @private 
++ */
++_oRecord : null,
++
++/**
++ * TD element.
++ *
++ * @property _elTd
++ * @type HTMLElement
++ * @default null
++ * @private
++ */
++_elTd : null,
++
++/**
++ * Container for inline editor.
++ *
++ * @property _elContainer
++ * @type HTMLElement
++ * @private 
++ */
++_elContainer : null,
++
++/**
++ * Reference to Cancel button, if available.
++ *
++ * @property _elCancelBtn
++ * @type HTMLElement
++ * @default null
++ * @private 
++ */
++_elCancelBtn : null,
++
++/**
++ * Reference to Save button, if available.
++ *
++ * @property _elSaveBtn
++ * @type HTMLElement
++ * @default null
++ * @private 
++ */
++_elSaveBtn : null,
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Initialize configs.
++ *
++ * @method _initConfigs
++ * @private   
++ */
++_initConfigs : function(oConfigs) {
++    // Object literal defines CellEditor configs
++    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
++        for(var sConfig in oConfigs) {
++            if(sConfig) {
++                this[sConfig] = oConfigs[sConfig];
++            }
++        }
++    }
++},
++
++/**
++ * Initialize Custom Events.
++ *
++ * @method _initEvents
++ * @private   
++ */
++_initEvents : function() {
++    this.createEvent("showEvent");
++    this.createEvent("keydownEvent");
++    this.createEvent("invalidDataEvent");
++    this.createEvent("revertEvent");
++    this.createEvent("saveEvent");
++    this.createEvent("cancelEvent");
++    this.createEvent("blurEvent");
++    this.createEvent("blockEvent");
++    this.createEvent("unblockEvent");
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Implementer defined function that can submit the input value to a server. This
++ * function must accept the arguments fnCallback and oNewValue. When the submission
++ * is complete, the function must also call fnCallback(bSuccess, oNewValue) to 
++ * finish the save routine in the CellEditor. This function can also be used to 
++ * perform extra validation or input value manipulation. 
++ *
++ * @property asyncSubmitter
++ * @type HTMLFunction
++ */
++asyncSubmitter : null,
++
++/**
++ * Current value.
++ *
++ * @property value
++ * @type MIXED
++ */
++value : null,
++
++/**
++ * Default value in case Record data is undefined. NB: Null values will not trigger
++ * the default value.
++ *
++ * @property defaultValue
++ * @type MIXED
++ * @default null
++ */
++defaultValue : null,
++
++/**
++ * Validator function for input data, called from the DataTable instance scope,
++ * receives the arguments (inputValue, currentValue, editorInstance) and returns
++ * either the validated (or type-converted) value or undefined.
++ *
++ * @property validator
++ * @type HTMLFunction
++ * @default null
++ */
++validator : null,
++
++/**
++ * If validation is enabled, resets input field of invalid data.
++ *
++ * @property resetInvalidData
++ * @type Boolean
++ * @default true
++ */
++resetInvalidData : true,
++
++/**
++ * True if currently active.
++ *
++ * @property isActive
++ * @type Boolean
++ */
++isActive : false,
++
++/**
++ * Text to display on Save button.
++ *
++ * @property LABEL_SAVE
++ * @type String
++ * @default "Save"
++ */
++LABEL_SAVE : "Save",
++
++/**
++ * Text to display on Cancel button.
++ *
++ * @property LABEL_CANCEL
++ * @type String
++ * @default "Cancel"
++ */
++LABEL_CANCEL : "Cancel",
++
++/**
++ * True if Save/Cancel buttons should not be displayed in the CellEditor.
++ *
++ * @property disableBtns
++ * @type Boolean
++ * @default false
++ */
++disableBtns : false,
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * CellEditor instance name, for logging.
++ *
++ * @method toString
++ * @return {String} Unique name of the CellEditor instance.
++ */
++
++toString : function() {
++    return "CellEditor instance " + this._sId;
++},
++
++/**
++ * CellEditor unique ID.
++ *
++ * @method getId
++ * @return {String} Unique ID of the CellEditor instance.
++ */
++
++getId : function() {
++    return this._sId;
++},
++
++/**
++ * Returns reference to associated DataTable instance.
++ *
++ * @method getDataTable
++ * @return {YAHOO.widget.DataTable} DataTable instance.
++ */
++
++getDataTable : function() {
++    return this._oDataTable;
++},
++
++/**
++ * Returns reference to associated Column instance.
++ *
++ * @method getColumn
++ * @return {YAHOO.widget.Column} Column instance.
++ */
++
++getColumn : function() {
++    return this._oColumn;
++},
++
++/**
++ * Returns reference to associated Record instance.
++ *
++ * @method getRecord
++ * @return {YAHOO.widget.Record} Record instance.
++ */
++
++getRecord : function() {
++    return this._oRecord;
++},
++
++
++
++/**
++ * Returns reference to associated TD element.
++ *
++ * @method getTdEl
++ * @return {HTMLElement} TD element.
++ */
++
++getTdEl : function() {
++    return this._elTd;
++},
++
++/**
++ * Returns container element.
++ *
++ * @method getContainerEl
++ * @return {HTMLElement} Reference to container element.
++ */
++
++getContainerEl : function() {
++    return this._elContainer;
++},
++
++/**
++ * Nulls out the entire CellEditor instance and related objects, removes attached
++ * event listeners, and clears out DOM elements inside the container, removes
++ * container from the DOM.
++ *
++ * @method destroy
++ */
++destroy : function() {
++    this.unsubscribeAll();
++    
++    // Column is late-binding in attach()
++    var oColumn = this.getColumn();
++    if(oColumn) {
++        oColumn.editor = null;
++    }
++    
++    var elContainer = this.getContainerEl();
++    Ev.purgeElement(elContainer, true);
++    elContainer.parentNode.removeChild(elContainer);
++},
++
++/**
++ * Renders DOM elements and attaches event listeners.
++ *
++ * @method render
++ */
++render : function() {
++    if(this._elContainer) {
++        YAHOO.util.Event.purgeElement(this._elContainer, true);
++        this._elContainer.innerHTML = "";
++    }
++
++    // Render Cell Editor container element as first child of body
++    var elContainer = document.createElement("div");
++    elContainer.id = this.getId() + "-container"; // Needed for tracking blur event
++    elContainer.style.display = "none";
++    elContainer.tabIndex = 0;
++    elContainer.className = DT.CLASS_EDITOR;
++    document.body.insertBefore(elContainer, document.body.firstChild);
++    this._elContainer = elContainer;
++    
++    // Handle ESC key
++    Ev.addListener(elContainer, "keydown", function(e, oSelf) {
++        // ESC cancels Cell Editor
++        if((e.keyCode == 27)) {
++            var target = Ev.getTarget(e);
++            // workaround for Mac FF3 bug that disabled clicks when ESC hit when
++            // select is open. [bug 2273056]
++            if (target.nodeName && target.nodeName.toLowerCase() === 'select') {
++                target.blur();
++            }
++            oSelf.cancel();
++        }
++        // Pass through event
++        oSelf.fireEvent("keydownEvent", {editor:this, event:e});
++    }, this);
++    
++    this.renderForm();
++
++    // Show Save/Cancel buttons
++    if(!this.disableBtns) {
++        this.renderBtns();
++    }
++    
++    this.doAfterRender();
++},
++
++/**
++ * Renders Save/Cancel buttons.
++ *
++ * @method renderBtns
++ */
++renderBtns : function() {
++    // Buttons
++    var elBtnsDiv = this.getContainerEl().appendChild(document.createElement("div"));
++    elBtnsDiv.className = DT.CLASS_BUTTON;
++
++    // Save button
++    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    elSaveBtn.className = DT.CLASS_DEFAULT;
++    elSaveBtn.innerHTML = this.LABEL_SAVE;
++    Ev.addListener(elSaveBtn, "click", function(oArgs) {
++        this.save();
++    }, this, true);
++    this._elSaveBtn = elSaveBtn;
++
++    // Cancel button
++    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    elCancelBtn.innerHTML = this.LABEL_CANCEL;
++    Ev.addListener(elCancelBtn, "click", function(oArgs) {
++        this.cancel();
++    }, this, true);
++    this._elCancelBtn = elCancelBtn;
++},
++
++/**
++ * Attach CellEditor for a new interaction.
++ *
++ * @method attach
++ * @param oDataTable {YAHOO.widget.DataTable} Associated DataTable instance.
++ * @param elCell {HTMLElement} Cell to edit.  
++ */
++attach : function(oDataTable, elCell) {
++    // Validate 
++    if(oDataTable instanceof YAHOO.widget.DataTable) {
++        this._oDataTable = oDataTable;
++        
++        // Validate cell
++        elCell = oDataTable.getTdEl(elCell);
++        if(elCell) {
++            this._elTd = elCell;
++
++            // Validate Column
++            var oColumn = oDataTable.getColumn(elCell);
++            if(oColumn) {
++                this._oColumn = oColumn;
++                
++                // Validate Record
++                var oRecord = oDataTable.getRecord(elCell);
++                if(oRecord) {
++                    this._oRecord = oRecord;
++                    var value = oRecord.getData(this.getColumn().getField());
++                    this.value = (value !== undefined) ? value : this.defaultValue;
++                    return true;
++                }
++            }            
++        }
++    }
++    YAHOO.log("Could not attach CellEditor","error",this.toString());
++    return false;
++},
++
++/**
++ * Moves container into position for display.
++ *
++ * @method move
++ */
++move : function() {
++    // Move Editor
++    var elContainer = this.getContainerEl(),
++        elTd = this.getTdEl(),
++        x = Dom.getX(elTd),
++        y = Dom.getY(elTd);
++
++    //TODO: remove scrolling logic
++    // SF doesn't get xy for cells in scrolling table
++    // when tbody display is set to block
++    if(isNaN(x) || isNaN(y)) {
++        var elTbody = this.getDataTable().getTbodyEl();
++        x = elTd.offsetLeft + // cell pos relative to table
++                Dom.getX(elTbody.parentNode) - // plus table pos relative to document
++                elTbody.scrollLeft; // minus tbody scroll
++        y = elTd.offsetTop + // cell pos relative to table
++                Dom.getY(elTbody.parentNode) - // plus table pos relative to document
++                elTbody.scrollTop + // minus tbody scroll
++                this.getDataTable().getTheadEl().offsetHeight; // account for fixed THEAD cells
++    }
++
++    elContainer.style.left = x + "px";
++    elContainer.style.top = y + "px";
++},
++
++/**
++ * Displays CellEditor UI in the correct position.
++ *
++ * @method show
++ */
++show : function() {
++    this.resetForm();
++    this.isActive = true;
++    this.getContainerEl().style.display = "";
++    this.focus();
++    this.fireEvent("showEvent", {editor:this});
++    YAHOO.log("CellEditor shown", "info", this.toString()); 
++},
++
++/**
++ * Fires blockEvent
++ *
++ * @method block
++ */
++block : function() {
++    this.fireEvent("blockEvent", {editor:this});
++    YAHOO.log("CellEditor blocked", "info", this.toString()); 
++},
++
++/**
++ * Fires unblockEvent
++ *
++ * @method unblock
++ */
++unblock : function() {
++    this.fireEvent("unblockEvent", {editor:this});
++    YAHOO.log("CellEditor unblocked", "info", this.toString()); 
++},
++
++/**
++ * Saves value of CellEditor and hides UI.
++ *
++ * @method save
++ */
++save : function() {
++    // Get new value
++    var inputValue = this.getInputValue();
++    var validValue = inputValue;
++    
++    // Validate new value
++    if(this.validator) {
++        validValue = this.validator.call(this.getDataTable(), inputValue, this.value, this);
++        if(validValue === undefined ) {
++            if(this.resetInvalidData) {
++                this.resetForm();
++            }
++            this.fireEvent("invalidDataEvent",
++                    {editor:this, oldData:this.value, newData:inputValue});
++            YAHOO.log("Could not save Cell Editor input due to invalid data " +
++                    lang.dump(inputValue), "warn", this.toString());
++            return;
++        }
++    }
++        
++    var oSelf = this;
++    var finishSave = function(bSuccess, oNewValue) {
++        var oOrigValue = oSelf.value;
++        if(bSuccess) {
++            // Update new value
++            oSelf.value = oNewValue;
++            oSelf.getDataTable().updateCell(oSelf.getRecord(), oSelf.getColumn(), oNewValue);
++            
++            // Hide CellEditor
++            oSelf.getContainerEl().style.display = "none";
++            oSelf.isActive = false;
++            oSelf.getDataTable()._oCellEditor =  null;
++            
++            oSelf.fireEvent("saveEvent",
++                    {editor:oSelf, oldData:oOrigValue, newData:oSelf.value});
++            YAHOO.log("Cell Editor input saved", "info", this.toString());
++        }
++        else {
++            oSelf.resetForm();
++            oSelf.fireEvent("revertEvent",
++                    {editor:oSelf, oldData:oOrigValue, newData:oNewValue});
++            YAHOO.log("Could not save Cell Editor input " +
++                    lang.dump(oNewValue), "warn", oSelf.toString());
++        }
++        oSelf.unblock();
++    };
++    
++    this.block();
++    if(lang.isFunction(this.asyncSubmitter)) {
++        this.asyncSubmitter.call(this, finishSave, validValue);
++    } 
++    else {   
++        finishSave(true, validValue);
++    }
++},
++
++/**
++ * Cancels CellEditor input and hides UI.
++ *
++ * @method cancel
++ */
++cancel : function() {
++    if(this.isActive) {
++        this.getContainerEl().style.display = "none";
++        this.isActive = false;
++        this.getDataTable()._oCellEditor =  null;
++        this.fireEvent("cancelEvent", {editor:this});
++        YAHOO.log("CellEditor canceled", "info", this.toString());
++    }
++    else {
++        YAHOO.log("Unable to cancel CellEditor", "warn", this.toString());
++    }
++},
++
++/**
++ * Renders form elements.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Access to add additional event listeners.
++ *
++ * @method doAfterRender
++ */
++doAfterRender : function() {
++    // To be implemented by subclass
++},
++
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Resets CellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Sets focus in CellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Retrieves input value from CellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    // To be implemented by subclass
++}
++
++};
++
++lang.augmentProto(BCE, util.EventProvider);
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Custom Events
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Fired when a CellEditor is shown.
++ *
++ * @event showEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++ */
++
++/**
++ * Fired when a CellEditor has a keydown.
++ *
++ * @event keydownEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.event {HTMLEvent} The event object.
++ */
++
++/**
++ * Fired when a CellEditor input is reverted due to invalid data.
++ *
++ * @event invalidDataEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.newData {Object} New data value from form input field.
++ * @param oArgs.oldData {Object} Old data value.
++ */
++
++/**
++ * Fired when a CellEditor input is reverted due to asyncSubmitter failure.
++ *
++ * @event revertEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.newData {Object} New data value from form input field.
++ * @param oArgs.oldData {Object} Old data value.
++ */
++
++/**
++ * Fired when a CellEditor input is saved.
++ *
++ * @event saveEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.newData {Object} New data value from form input field.
++ * @param oArgs.oldData {Object} Old data value.
++ */
++
++/**
++ * Fired when a CellEditor input is canceled.
++ *
++ * @event cancelEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ */
++
++/**
++ * Fired when a CellEditor has a blur event.
++ *
++ * @event blurEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ */
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The CheckboxCellEditor class provides functionality for inline editing
++ * DataTable cell data with checkboxes.
++ *
++ * @namespace YAHOO.widget
++ * @class CheckboxCellEditor
++ * @extends YAHOO.widget.BaseCellEditor
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.CheckboxCellEditor = function(oConfigs) {
++    this._sId = "yui-checkboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.CheckboxCellEditor.superclass.constructor.call(this, "checkbox", oConfigs); 
++};
++
++// CheckboxCellEditor extends BaseCellEditor
++lang.extend(widget.CheckboxCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// CheckboxCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Array of checkbox values. Can either be a simple array (e.g., ["red","green","blue"])
++ * or a an array of objects (e.g., [{label:"red", value:"#FF0000"},
++ * {label:"green", value:"#00FF00"}, {label:"blue", value:"#0000FF"}]). 
++ *
++ * @property checkboxOptions
++ * @type String[] | Object[]
++ */
++checkboxOptions : null,
++
++/**
++ * Reference to the checkbox elements.
++ *
++ * @property checkboxes
++ * @type HTMLElement[] 
++ */
++checkboxes : null,
++
++/**
++ * Array of checked values
++ *
++ * @property value
++ * @type String[] 
++ */
++value : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// CheckboxCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with input(s) type=checkbox.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    if(lang.isArray(this.checkboxOptions)) {
++        var checkboxOption, checkboxValue, checkboxId, elLabel, j, len;
++        
++        // Create the checkbox buttons in an IE-friendly way...
++        for(j=0,len=this.checkboxOptions.length; j<len; j++) {
++            checkboxOption = this.checkboxOptions[j];
++            checkboxValue = lang.isValue(checkboxOption.value) ?
++                    checkboxOption.value : checkboxOption;
++
++            checkboxId = this.getId() + "-chk" + j;
++            this.getContainerEl().innerHTML += "<input type=\"checkbox\"" +
++                    " id=\"" + checkboxId + "\"" + // Needed for label
++                    " value=\"" + checkboxValue + "\" />";
++            
++            // Create the labels in an IE-friendly way
++            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
++            elLabel.htmlFor = checkboxId;
++            elLabel.innerHTML = lang.isValue(checkboxOption.label) ?
++                    checkboxOption.label : checkboxOption;
++        }
++        
++        // Store the reference to the checkbox elements
++        var allCheckboxes = [];
++        for(j=0; j<len; j++) {
++            allCheckboxes[allCheckboxes.length] = this.getContainerEl().childNodes[j*2];
++        }
++        this.checkboxes = allCheckboxes;
++
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++    else {
++        YAHOO.log("Could not find checkboxOptions", "error", this.toString());
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    Ev.addListener(this.getContainerEl(), "click", function(v){
++        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
++            // Save on blur
++            this.save();
++        }
++    }, this, true);
++},
++
++/**
++ * Resets CheckboxCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    // Normalize to array
++    var originalValues = lang.isArray(this.value) ? this.value : [this.value];
++    
++    // Match checks to value
++    for(var i=0, j=this.checkboxes.length; i<j; i++) {
++        this.checkboxes[i].checked = false;
++        for(var k=0, len=originalValues.length; k<len; k++) {
++            if(this.checkboxes[i].value === originalValues[k]) {
++                this.checkboxes[i].checked = true;
++            }
++        }
++    }
++},
++
++/**
++ * Sets focus in CheckboxCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    this.checkboxes[0].focus();
++},
++
++/**
++ * Retrieves input value from CheckboxCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    var checkedValues = [];
++    for(var i=0, j=this.checkboxes.length; i<j; i++) {
++        if(this.checkboxes[i].checked) {
++            checkedValues[checkedValues.length] = this.checkboxes[i].value;
++        }
++    }  
++    return checkedValues;
++}
++
++});
++
++// Copy static members to CheckboxCellEditor class
++lang.augmentObject(widget.CheckboxCellEditor, BCE);
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The DataCellEditor class provides functionality for inline editing
++ * DataTable cell data with a YUI Calendar.
++ *
++ * @namespace YAHOO.widget
++ * @class DateCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.DateCellEditor = function(oConfigs) {
++    this._sId = "yui-dateceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.DateCellEditor.superclass.constructor.call(this, "date", oConfigs); 
++};
++
++// CheckboxCellEditor extends BaseCellEditor
++lang.extend(widget.DateCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DateCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to Calendar instance.
++ *
++ * @property calendar
++ * @type YAHOO.widget.Calendar
++ */
++calendar : null,
++
++/**
++ * Configs for the calendar instance, to be passed to Calendar constructor.
++ *
++ * @property calendarOptions
++ * @type Object
++ */
++calendarOptions : null,
++
++/**
++ * Default value.
++ *
++ * @property defaultValue
++ * @type Date
++ * @default new Date()
++ */
++defaultValue : new Date(),
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DateCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a Calendar.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    // Calendar widget
++    if(YAHOO.widget.Calendar) {
++        var calContainer = this.getContainerEl().appendChild(document.createElement("div"));
++        calContainer.id = this.getId() + "-dateContainer"; // Needed for Calendar constructor
++        var calendar =
++                new YAHOO.widget.Calendar(this.getId() + "-date",
++                calContainer.id, this.calendarOptions);
++        calendar.render();
++        calContainer.style.cssFloat = "none";
++
++        if(ua.ie) {
++            var calFloatClearer = this.getContainerEl().appendChild(document.createElement("div"));
++            calFloatClearer.style.clear = "both";
++        }
++        
++        this.calendar = calendar;
++
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++    else {
++        YAHOO.log("Could not find YUI Calendar", "error", this.toString());
++    }
++    
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    this.calendar.selectEvent.subscribe(function(v){
++        // Save on select
++        this.save();
++    }, this, true);
++},
++
++/**
++ * Resets DateCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    var value = this.value;
++    var selectedValue = (value.getMonth()+1)+"/"+value.getDate()+"/"+value.getFullYear();
++    this.calendar.cfg.setProperty("selected",selectedValue,false);
++	this.calendar.render();
++},
++
++/**
++ * Sets focus in DateCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // To be impmlemented by subclass
++},
++
++/**
++ * Retrieves input value from DateCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    return this.calendar.getSelectedDates()[0];
++}
++
++});
++
++// Copy static members to DateCellEditor class
++lang.augmentObject(widget.DateCellEditor, BCE);
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The DropdownCellEditor class provides functionality for inline editing
++ * DataTable cell data a SELECT element.
++ *
++ * @namespace YAHOO.widget
++ * @class DropdownCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.DropdownCellEditor = function(oConfigs) {
++    this._sId = "yui-dropdownceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.DropdownCellEditor.superclass.constructor.call(this, "dropdown", oConfigs);
++};
++
++// DropdownCellEditor extends BaseCellEditor
++lang.extend(widget.DropdownCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DropdownCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Array of dropdown values. Can either be a simple array (e.g.,
++ * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g., 
++ * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
++ * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]). 
++ *
++ * @property dropdownOptions
++ * @type String[] | Object[]
++ */
++dropdownOptions : null,
++
++/**
++ * Reference to Dropdown element.
++ *
++ * @property dropdown
++ * @type HTMLElement
++ */
++dropdown : null,
++
++/**
++ * Enables multi-select.
++ *
++ * @property multiple
++ * @type Boolean
++ */
++multiple : false,
++
++/**
++ * Specifies number of visible options.
++ *
++ * @property size
++ * @type Number
++ */
++size : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DropdownCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with select element.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    var elDropdown = this.getContainerEl().appendChild(document.createElement("select"));
++    elDropdown.style.zoom = 1;
++    if(this.multiple) {
++        elDropdown.multiple = "multiple";
++    }
++    if(lang.isNumber(this.size)) {
++        elDropdown.size = this.size;
++    }
++    this.dropdown = elDropdown;
++    
++    if(lang.isArray(this.dropdownOptions)) {
++        var dropdownOption, elOption;
++        for(var i=0, j=this.dropdownOptions.length; i<j; i++) {
++            dropdownOption = this.dropdownOptions[i];
++            elOption = document.createElement("option");
++            elOption.value = (lang.isValue(dropdownOption.value)) ?
++                    dropdownOption.value : dropdownOption;
++            elOption.innerHTML = (lang.isValue(dropdownOption.label)) ?
++                    dropdownOption.label : dropdownOption;
++            elOption = elDropdown.appendChild(elOption);
++        }
++        
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    // Save on blur for multi-select
++    if(this.multiple) {
++        Ev.addListener(this.dropdown, "blur", function(v){
++            // Save on change
++            this.save();
++        }, this, true);
++    }
++    // Save on change for single-select
++    else {
++        Ev.addListener(this.dropdown, "change", function(v){
++            // Save on change
++            this.save();
++        }, this, true);
++    }
++},
++
++/**
++ * Resets DropdownCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    var allOptions = this.dropdown.options,
++        i=0, j=allOptions.length;
++
++    // Look for multi-select selections
++    if(lang.isArray(this.value)) {
++        var allValues = this.value,
++            m=0, n=allValues.length,
++            hash = {};
++        // Reset all selections and stash options in a value hash
++        for(; i<j; i++) {
++            allOptions[i].selected = false;
++            hash[allOptions[i].value] = allOptions[i];
++        }
++        for(; m<n; m++) {
++            if(hash[allValues[m]]) {
++                hash[allValues[m]].selected = true;
++            }
++        }
++    }
++    // Only need to look for a single selection
++    else {
++        for(; i<j; i++) {
++            if(this.value === allOptions[i].value) {
++                allOptions[i].selected = true;
++            }
++        }
++    }
++},
++
++/**
++ * Sets focus in DropdownCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    this.getDataTable()._focusEl(this.dropdown);
++},
++
++/**
++ * Retrieves input value from DropdownCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    var allOptions = this.dropdown.options;
++    
++    // Look for multiple selections
++    if(this.multiple) {
++        var values = [],
++            i=0, j=allOptions.length;
++        for(; i<j; i++) {
++            if(allOptions[i].selected) {
++                values.push(allOptions[i].value);
++            }
++        }
++        return values;
++    }
++    // Only need to look for single selection
++    else {
++        return allOptions[allOptions.selectedIndex].value;
++    }
++}
++
++});
++
++// Copy static members to DropdownCellEditor class
++lang.augmentObject(widget.DropdownCellEditor, BCE);
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The RadioCellEditor class provides functionality for inline editing
++ * DataTable cell data with radio buttons.
++ *
++ * @namespace YAHOO.widget
++ * @class RadioCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.RadioCellEditor = function(oConfigs) {
++    this._sId = "yui-radioceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.RadioCellEditor.superclass.constructor.call(this, "radio", oConfigs); 
++};
++
++// RadioCellEditor extends BaseCellEditor
++lang.extend(widget.RadioCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// RadioCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to radio elements.
++ *
++ * @property radios
++ * @type HTMLElement[]
++ */
++radios : null,
++
++/**
++ * Array of radio values. Can either be a simple array (e.g., ["yes","no","maybe"])
++ * or a an array of objects (e.g., [{label:"yes", value:1}, {label:"no", value:-1},
++ * {label:"maybe", value:0}]). 
++ *
++ * @property radioOptions
++ * @type String[] | Object[]
++ */
++radioOptions : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// RadioCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with input(s) type=radio.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    if(lang.isArray(this.radioOptions)) {
++        var radioOption, radioValue, radioId, elLabel;
++        
++        // Create the radio buttons in an IE-friendly way
++        for(var i=0, len=this.radioOptions.length; i<len; i++) {
++            radioOption = this.radioOptions[i];
++            radioValue = lang.isValue(radioOption.value) ?
++                    radioOption.value : radioOption;
++            radioId = this.getId() + "-radio" + i;
++            this.getContainerEl().innerHTML += "<input type=\"radio\"" +
++                    " name=\"" + this.getId() + "\"" +
++                    " value=\"" + radioValue + "\"" +
++                    " id=\"" +  radioId + "\" />"; // Needed for label
++            
++            // Create the labels in an IE-friendly way
++            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
++            elLabel.htmlFor = radioId;
++            elLabel.innerHTML = (lang.isValue(radioOption.label)) ?
++                    radioOption.label : radioOption;
++        }
++        
++        // Store the reference to the checkbox elements
++        var allRadios = [],
++            elRadio;
++        for(var j=0; j<len; j++) {
++            elRadio = this.getContainerEl().childNodes[j*2];
++            allRadios[allRadios.length] = elRadio;
++        }
++        this.radios = allRadios;
++
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++    else {
++        YAHOO.log("Could not find radioOptions", "error", this.toString());
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    Ev.addListener(this.getContainerEl(), "click", function(v){
++        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
++            // Save on blur
++            this.save();
++        }
++    }, this, true);
++},
++
++/**
++ * Resets RadioCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    for(var i=0, j=this.radios.length; i<j; i++) {
++        var elRadio = this.radios[i];
++        if(this.value === elRadio.value) {
++            elRadio.checked = true;
++            return;
++        }
++    }
++},
++
++/**
++ * Sets focus in RadioCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    for(var i=0, j=this.radios.length; i<j; i++) {
++        if(this.radios[i].checked) {
++            this.radios[i].focus();
++            return;
++        }
++    }
++},
++
++/**
++ * Retrieves input value from RadioCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    for(var i=0, j=this.radios.length; i<j; i++) {
++        if(this.radios[i].checked) {
++            return this.radios[i].value;
++        }
++    }
++}
++
++});
++
++// Copy static members to RadioCellEditor class
++lang.augmentObject(widget.RadioCellEditor, BCE);
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The TextareaCellEditor class provides functionality for inline editing
++ * DataTable cell data with a TEXTAREA element.
++ *
++ * @namespace YAHOO.widget
++ * @class TextareaCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.TextareaCellEditor = function(oConfigs) {
++    this._sId = "yui-textareaceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.TextareaCellEditor.superclass.constructor.call(this, "textarea", oConfigs); 
++};
++
++// TextareaCellEditor extends BaseCellEditor
++lang.extend(widget.TextareaCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextareaCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to textarea element.
++ *
++ * @property textarea
++ * @type HTMLElement
++ */
++textarea : null,
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextareaCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with textarea.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    var elTextarea = this.getContainerEl().appendChild(document.createElement("textarea"));
++    this.textarea = elTextarea;
++
++    if(this.disableBtns) {
++        this.handleDisabledBtns();
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    Ev.addListener(this.textarea, "blur", function(v){
++        // Save on blur
++        this.save();
++    }, this, true);        
++},
++
++/**
++ * Moves TextareaCellEditor UI to a cell.
++ *
++ * @method move
++ */
++move : function() {
++    this.textarea.style.width = this.getTdEl().offsetWidth + "px";
++    this.textarea.style.height = "3em";
++    YAHOO.widget.TextareaCellEditor.superclass.move.call(this);
++},
++
++/**
++ * Resets TextareaCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    this.textarea.value = this.value;
++},
++
++/**
++ * Sets focus in TextareaCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // Bug 2303181, Bug 2263600
++    this.getDataTable()._focusEl(this.textarea);
++    this.textarea.select();
++},
++
++/**
++ * Retrieves input value from TextareaCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    return this.textarea.value;
++}
++
++});
++
++// Copy static members to TextareaCellEditor class
++lang.augmentObject(widget.TextareaCellEditor, BCE);
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The TextboxCellEditor class provides functionality for inline editing
++ * DataTable cell data with an INPUT TYPE=TEXT element.
++ *
++ * @namespace YAHOO.widget
++ * @class TextboxCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.TextboxCellEditor = function(oConfigs) {
++    this._sId = "yui-textboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.TextboxCellEditor.superclass.constructor.call(this, "textbox", oConfigs); 
++};
++
++// TextboxCellEditor extends BaseCellEditor
++lang.extend(widget.TextboxCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextboxCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to the textbox element.
++ *
++ * @property textbox
++ */
++textbox : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextboxCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with input type=text.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    var elTextbox;
++    // Bug 1802582: SF3/Mac needs a form element wrapping the input
++    if(ua.webkit>420) {
++        elTextbox = this.getContainerEl().appendChild(document.createElement("form")).appendChild(document.createElement("input"));
++    }
++    else {
++        elTextbox = this.getContainerEl().appendChild(document.createElement("input"));
++    }
++    elTextbox.type = "text";
++    this.textbox = elTextbox;
++
++    // Save on enter by default
++    // Bug: 1802582 Set up a listener on each textbox to track on keypress
++    // since SF/OP can't preventDefault on keydown
++    Ev.addListener(elTextbox, "keypress", function(v){
++        if((v.keyCode === 13)) {
++            // Prevent form submit
++            YAHOO.util.Event.preventDefault(v);
++            this.save();
++        }
++    }, this, true);
++
++    if(this.disableBtns) {
++        // By default this is no-op since enter saves by default
++        this.handleDisabledBtns();
++    }
++},
++
++/**
++ * Moves TextboxCellEditor UI to a cell.
++ *
++ * @method move
++ */
++move : function() {
++    this.textbox.style.width = this.getTdEl().offsetWidth + "px";
++    widget.TextboxCellEditor.superclass.move.call(this);
++},
++
++/**
++ * Resets TextboxCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    this.textbox.value = lang.isValue(this.value) ? this.value.toString() : "";
++},
++
++/**
++ * Sets focus in TextboxCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // Bug 2303181, Bug 2263600
++    this.getDataTable()._focusEl(this.textbox);
++    this.textbox.select();
++},
++
++/**
++ * Returns new value for TextboxCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    return this.textbox.value;
++}
++
++});
++
++// Copy static members to TextboxCellEditor class
++lang.augmentObject(widget.TextboxCellEditor, BCE);
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataTable extension
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * CellEditor subclasses.
++ * @property DataTable.Editors
++ * @type Object
++ * @static
++ */
++DT.Editors = {
++    checkbox : widget.CheckboxCellEditor,
++    "date"   : widget.DateCellEditor,
++    dropdown : widget.DropdownCellEditor,
++    radio    : widget.RadioCellEditor,
++    textarea : widget.TextareaCellEditor,
++    textbox  : widget.TextboxCellEditor
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * Factory class for instantiating a BaseCellEditor subclass.
++ *
++ * @namespace YAHOO.widget
++ * @class CellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.CellEditor = function(sType, oConfigs) {
++    // Point to one of the subclasses
++    if(sType && DT.Editors[sType]) {
++        lang.augmentObject(BCE, DT.Editors[sType]);
++        return new DT.Editors[sType](oConfigs);
++    }
++    else {
++        return new BCE(null, oConfigs);
++    }
++};
++
++var CE = widget.CellEditor;
++
++// Copy static members to CellEditor class
++lang.augmentObject(CE, BCE);
++
++
++})();
++
++YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/datatable/datatable-min.js b/pylons_app/public/js/yui/datatable/datatable-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/datatable-min.js
+@@ -0,0 +1,29 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.Chain=function(){this.q=[].slice.call(arguments);this.createEvent("end");};YAHOO.util.Chain.prototype={id:0,run:function(){var F=this.q[0],C;if(!F){this.fireEvent("end");return this;}else{if(this.id){return this;}}C=F.method||F;if(typeof C==="function"){var E=F.scope||{},B=F.argument||[],A=F.timeout||0,D=this;if(!(B instanceof Array)){B=[B];}if(A<0){this.id=A;if(F.until){for(;!F.until();){C.apply(E,B);}}else{if(F.iterations){for(;F.iterations-->0;){C.apply(E,B);}}else{C.apply(E,B);}}this.q.shift();this.id=0;return this.run();}else{if(F.until){if(F.until()){this.q.shift();return this.run();}}else{if(!F.iterations||!--F.iterations){this.q.shift();}}this.id=setTimeout(function(){C.apply(E,B);if(D.id){D.id=0;D.run();}},A);}}return this;},add:function(A){this.q.push(A);return this;},pause:function(){if(this.id>0){clearTimeout(this.id);}this.id=0;return this;},stop:function(){this.pause();this.q=[];return this;}};YAHOO.lang.augmentProto(YAHOO.util.Chain,YAHOO.util.EventProvider);YAHOO.widget.ColumnSet=function(A){this._sId="yui-cs"+YAHOO.widget.ColumnSet._nCount;A=YAHOO.widget.DataTable._cloneObject(A);this._init(A);YAHOO.widget.ColumnSet._nCount++;};YAHOO.widget.ColumnSet._nCount=0;YAHOO.widget.ColumnSet.prototype={_sId:null,_aDefinitions:null,tree:null,flat:null,keys:null,headers:null,_init:function(I){var J=[];var A=[];var G=[];var E=[];var C=-1;var B=function(M,S){C++;if(!J[C]){J[C]=[];}for(var O=0;O<M.length;O++){var K=M[O];var Q=new YAHOO.widget.Column(K);K.yuiColumnId=Q._sId;A.push(Q);if(S){Q._oParent=S;}if(YAHOO.lang.isArray(K.children)){Q.children=K.children;var R=0;var P=function(V){var W=V.children;for(var U=0;U<W.length;U++){if(YAHOO.lang.isArray(W[U].children)){P(W[U]);}else{R++;}}};P(K);Q._nColspan=R;var T=K.children;for(var N=0;N<T.length;N++){var L=T[N];if(Q.className&&(L.className===undefined)){L.className=Q.className;}if(Q.editor&&(L.editor===undefined)){L.editor=Q.editor;}if(Q.editorOptions&&(L.editorOptions===undefined)){L.editorOptions=Q.editorOptions;}if(Q.formatter&&(L.formatter===undefined)){L.formatter=Q.formatter;}if(Q.resizeable&&(L.resizeable===undefined)){L.resizeable=Q.resizeable;}if(Q.sortable&&(L.sortable===undefined)){L.sortable=Q.sortable;}if(Q.hidden){L.hidden=true;}if(Q.width&&(L.width===undefined)){L.width=Q.width;}if(Q.minWidth&&(L.minWidth===undefined)){L.minWidth=Q.minWidth;}if(Q.maxAutoWidth&&(L.maxAutoWidth===undefined)){L.maxAutoWidth=Q.maxAutoWidth;}if(Q.type&&(L.type===undefined)){L.type=Q.type;}if(Q.type&&!Q.formatter){Q.formatter=Q.type;}if(Q.text&&!YAHOO.lang.isValue(Q.label)){Q.label=Q.text;}if(Q.parser){}if(Q.sortOptions&&((Q.sortOptions.ascFunction)||(Q.sortOptions.descFunction))){}}if(!J[C+1]){J[C+1]=[];}B(T,Q);}else{Q._nKeyIndex=G.length;Q._nColspan=1;G.push(Q);}J[C].push(Q);}C--;};if(YAHOO.lang.isArray(I)){B(I);this._aDefinitions=I;}else{return null;}var F;var D=function(L){var M=1;var O;var N;var P=function(T,S){S=S||1;for(var U=0;U<T.length;U++){var R=T[U];if(YAHOO.lang.isArray(R.children)){S++;P(R.children,S);S--;}else{if(S>M){M=S;}}}};for(var K=0;K<L.length;K++){O=L[K];P(O);for(var Q=0;Q<O.length;Q++){N=O[Q];if(!YAHOO.lang.isArray(N.children)){N._nRowspan=M;}else{N._nRowspan=1;}}M=1;}};D(J);for(F=0;F<J[0].length;F++){J[0][F]._nTreeIndex=F;}var H=function(K,L){E[K].push(L.getSanitizedKey());if(L._oParent){H(K,L._oParent);}};for(F=0;F<G.length;F++){E[F]=[];H(F,G[F]);E[F]=E[F].reverse();}this.tree=J;this.flat=A;this.keys=G;this.headers=E;},getId:function(){return this._sId;},toString:function(){return"ColumnSet instance "+this._sId;},getDefinitions:function(){var A=this._aDefinitions;var B=function(E,G){for(var D=0;D<E.length;D++){var F=E[D];var I=G.getColumnById(F.yuiColumnId);if(I){var H=I.getDefinition();for(var C in H){if(YAHOO.lang.hasOwnProperty(H,C)){F[C]=H[C];}}}if(YAHOO.lang.isArray(F.children)){B(F.children,G);}}};B(A,this);this._aDefinitions=A;return A;},getColumnById:function(C){if(YAHOO.lang.isString(C)){var A=this.flat;for(var B=A.length-1;B>-1;B--){if(A[B]._sId===C){return A[B];}}}return null;},getColumn:function(C){if(YAHOO.lang.isNumber(C)&&this.keys[C]){return this.keys[C];}else{if(YAHOO.lang.isString(C)){var A=this.flat;var D=[];for(var B=0;B<A.length;B++){if(A[B].key===C){D.push(A[B]);}}if(D.length===1){return D[0];}else{if(D.length>1){return D;}}}}return null;},getDescendants:function(D){var B=this;var C=[];var A;var E=function(F){C.push(F);if(F.children){for(A=0;A<F.children.length;A++){E(B.getColumn(F.children[A].key));}}};E(D);return C;}};YAHOO.widget.Column=function(B){this._sId="yui-col"+YAHOO.widget.Column._nCount;if(B&&YAHOO.lang.isObject(B)){for(var A in B){if(A){this[A]=B[A];}}}if(!YAHOO.lang.isValue(this.key)){this.key="yui-dt-col"+YAHOO.widget.Column._nCount;}if(!YAHOO.lang.isValue(this.field)){this.field=this.key;}YAHOO.widget.Column._nCount++;if(this.width&&!YAHOO.lang.isNumber(this.width)){this.width=null;}if(this.editor&&YAHOO.lang.isString(this.editor)){this.editor=new YAHOO.widget.CellEditor(this.editor,this.editorOptions);}};YAHOO.lang.augmentObject(YAHOO.widget.Column,{_nCount:0,formatCheckbox:function(B,A,C,D){YAHOO.widget.DataTable.formatCheckbox(B,A,C,D);},formatCurrency:function(B,A,C,D){YAHOO.widget.DataTable.formatCurrency(B,A,C,D);},formatDate:function(B,A,C,D){YAHOO.widget.DataTable.formatDate(B,A,C,D);},formatEmail:function(B,A,C,D){YAHOO.widget.DataTable.formatEmail(B,A,C,D);},formatLink:function(B,A,C,D){YAHOO.widget.DataTable.formatLink(B,A,C,D);},formatNumber:function(B,A,C,D){YAHOO.widget.DataTable.formatNumber(B,A,C,D);},formatSelect:function(B,A,C,D){YAHOO.widget.DataTable.formatDropdown(B,A,C,D);}});YAHOO.widget.Column.prototype={_sId:null,_nKeyIndex:null,_nTreeIndex:null,_nColspan:1,_nRowspan:1,_oParent:null,_elTh:null,_elThLiner:null,_elThLabel:null,_elResizer:null,_nWidth:null,_dd:null,_ddResizer:null,key:null,field:null,label:null,abbr:null,children:null,width:null,minWidth:null,maxAutoWidth:null,hidden:false,selected:false,className:null,formatter:null,currencyOptions:null,dateOptions:null,dropdownOptions:null,editor:null,resizeable:false,sortable:false,sortOptions:null,getId:function(){return this._sId;
++},toString:function(){return"Column instance "+this._sId;},getDefinition:function(){var A={};A.abbr=this.abbr;A.className=this.className;A.editor=this.editor;A.editorOptions=this.editorOptions;A.field=this.field;A.formatter=this.formatter;A.hidden=this.hidden;A.key=this.key;A.label=this.label;A.minWidth=this.minWidth;A.maxAutoWidth=this.maxAutoWidth;A.resizeable=this.resizeable;A.selected=this.selected;A.sortable=this.sortable;A.sortOptions=this.sortOptions;A.width=this.width;return A;},getKey:function(){return this.key;},getField:function(){return this.field;},getSanitizedKey:function(){return this.getKey().replace(/[^\w\-]/g,"");},getKeyIndex:function(){return this._nKeyIndex;},getTreeIndex:function(){return this._nTreeIndex;},getParent:function(){return this._oParent;},getColspan:function(){return this._nColspan;},getColSpan:function(){return this.getColspan();},getRowspan:function(){return this._nRowspan;},getThEl:function(){return this._elTh;},getThLinerEl:function(){return this._elThLiner;},getResizerEl:function(){return this._elResizer;},getColEl:function(){return this.getThEl();},getIndex:function(){return this.getKeyIndex();},format:function(){}};YAHOO.util.Sort={compare:function(B,A,C){if((B===null)||(typeof B=="undefined")){if((A===null)||(typeof A=="undefined")){return 0;}else{return 1;}}else{if((A===null)||(typeof A=="undefined")){return -1;}}if(B.constructor==String){B=B.toLowerCase();}if(A.constructor==String){A=A.toLowerCase();}if(B<A){return(C)?1:-1;}else{if(B>A){return(C)?-1:1;}else{return 0;}}}};YAHOO.widget.ColumnDD=function(D,A,C,B){if(D&&A&&C&&B){this.datatable=D;this.table=D.getTableEl();this.column=A;this.headCell=C;this.pointer=B;this.newIndex=null;this.init(C);this.initFrame();this.invalidHandleTypes={};this.setPadding(10,0,(this.datatable.getTheadEl().offsetHeight+10),0);YAHOO.util.Event.on(window,"resize",function(){this.initConstraints();},this,true);}else{}};if(YAHOO.util.DDProxy){YAHOO.extend(YAHOO.widget.ColumnDD,YAHOO.util.DDProxy,{initConstraints:function(){var G=YAHOO.util.Dom.getRegion(this.table),D=this.getEl(),F=YAHOO.util.Dom.getXY(D),C=parseInt(YAHOO.util.Dom.getStyle(D,"width"),10),A=parseInt(YAHOO.util.Dom.getStyle(D,"height"),10),E=((F[0]-G.left)+15),B=((G.right-F[0]-C)+15);this.setXConstraint(E,B);this.setYConstraint(10,10);},_resizeProxy:function(){YAHOO.widget.ColumnDD.superclass._resizeProxy.apply(this,arguments);var A=this.getDragEl(),B=this.getEl();YAHOO.util.Dom.setStyle(this.pointer,"height",(this.table.parentNode.offsetHeight+10)+"px");YAHOO.util.Dom.setStyle(this.pointer,"display","block");var C=YAHOO.util.Dom.getXY(B);YAHOO.util.Dom.setXY(this.pointer,[C[0],(C[1]-5)]);YAHOO.util.Dom.setStyle(A,"height",this.datatable.getContainerEl().offsetHeight+"px");YAHOO.util.Dom.setStyle(A,"width",(parseInt(YAHOO.util.Dom.getStyle(A,"width"),10)+4)+"px");YAHOO.util.Dom.setXY(this.dragEl,C);},onMouseDown:function(){this.initConstraints();this.resetConstraints();},clickValidator:function(B){if(!this.column.hidden){var A=YAHOO.util.Event.getTarget(B);return(this.isValidHandleChild(A)&&(this.id==this.handleElId||this.DDM.handleWasClicked(A,this.id)));}},onDragOver:function(H,A){var F=this.datatable.getColumn(A);if(F){var C=F.getTreeIndex();while((C===null)&&F.getParent()){F=F.getParent();C=F.getTreeIndex();}if(C!==null){var B=F.getThEl();var K=C;var D=YAHOO.util.Event.getPageX(H),I=YAHOO.util.Dom.getX(B),J=I+((YAHOO.util.Dom.get(B).offsetWidth)/2),E=this.column.getTreeIndex();if(D<J){YAHOO.util.Dom.setX(this.pointer,I);}else{var G=parseInt(B.offsetWidth,10);YAHOO.util.Dom.setX(this.pointer,(I+G));K++;}if(C>E){K--;}if(K<0){K=0;}else{if(K>this.datatable.getColumnSet().tree[0].length){K=this.datatable.getColumnSet().tree[0].length;}}this.newIndex=K;}}},onDragDrop:function(){this.datatable.reorderColumn(this.column,this.newIndex);},endDrag:function(){this.newIndex=null;YAHOO.util.Dom.setStyle(this.pointer,"display","none");}});}YAHOO.util.ColumnResizer=function(E,C,D,A,B){if(E&&C&&D&&A){this.datatable=E;this.column=C;this.headCell=D;this.headCellLiner=C.getThLinerEl();this.resizerLiner=D.firstChild;this.init(A,A,{dragOnly:true,dragElId:B.id});this.initFrame();this.resetResizerEl();this.setPadding(0,1,0,0);}else{}};if(YAHOO.util.DD){YAHOO.extend(YAHOO.util.ColumnResizer,YAHOO.util.DDProxy,{resetResizerEl:function(){var A=YAHOO.util.Dom.get(this.handleElId).style;A.left="auto";A.right=0;A.top="auto";A.bottom=0;A.height=this.headCell.offsetHeight+"px";},onMouseUp:function(G){var E=this.datatable.getColumnSet().keys,B;for(var C=0,A=E.length;C<A;C++){B=E[C];if(B._ddResizer){B._ddResizer.resetResizerEl();}}this.resetResizerEl();var D=this.headCellLiner;var F=D.offsetWidth-(parseInt(YAHOO.util.Dom.getStyle(D,"paddingLeft"),10)|0)-(parseInt(YAHOO.util.Dom.getStyle(D,"paddingRight"),10)|0);this.datatable.fireEvent("columnResizeEvent",{column:this.column,target:this.headCell,width:F});},onMouseDown:function(A){this.startWidth=this.headCellLiner.offsetWidth;this.startX=YAHOO.util.Event.getXY(A)[0];this.nLinerPadding=(parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingLeft"),10)|0)+(parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingRight"),10)|0);},clickValidator:function(B){if(!this.column.hidden){var A=YAHOO.util.Event.getTarget(B);return(this.isValidHandleChild(A)&&(this.id==this.handleElId||this.DDM.handleWasClicked(A,this.id)));}},startDrag:function(){var E=this.datatable.getColumnSet().keys,D=this.column.getKeyIndex(),B;for(var C=0,A=E.length;C<A;C++){B=E[C];if(B._ddResizer){YAHOO.util.Dom.get(B._ddResizer.handleElId).style.height="1em";}}},onDrag:function(C){var D=YAHOO.util.Event.getXY(C)[0];if(D>YAHOO.util.Dom.getX(this.headCellLiner)){var A=D-this.startX;var B=this.startWidth+A-this.nLinerPadding;if(B>0){this.datatable.setColumnWidth(this.column,B);}}}});}(function(){var G=YAHOO.lang,A=YAHOO.util,E=YAHOO.widget,C=A.Dom,F=A.Event,D=E.DataTable;YAHOO.widget.RecordSet=function(H){this._sId="yui-rs"+E.RecordSet._nCount;E.RecordSet._nCount++;this._records=[];
++if(H){if(G.isArray(H)){this.addRecords(H);}else{if(G.isObject(H)){this.addRecord(H);}}}};var B=E.RecordSet;B._nCount=0;B.prototype={_sId:null,_addRecord:function(J,H){var I=new YAHOO.widget.Record(J);if(YAHOO.lang.isNumber(H)&&(H>-1)){this._records.splice(H,0,I);}else{this._records[this._records.length]=I;}return I;},_setRecord:function(I,H){if(!G.isNumber(H)||H<0){H=this._records.length;}return(this._records[H]=new E.Record(I));},_deleteRecord:function(I,H){if(!G.isNumber(H)||(H<0)){H=1;}this._records.splice(I,H);},getId:function(){return this._sId;},toString:function(){return"RecordSet instance "+this._sId;},getLength:function(){return this._records.length;},getRecord:function(H){var I;if(H instanceof E.Record){for(I=0;I<this._records.length;I++){if(this._records[I]&&(this._records[I]._sId===H._sId)){return H;}}}else{if(G.isNumber(H)){if((H>-1)&&(H<this.getLength())){return this._records[H];}}else{if(G.isString(H)){for(I=0;I<this._records.length;I++){if(this._records[I]&&(this._records[I]._sId===H)){return this._records[I];}}}}}return null;},getRecords:function(I,H){if(!G.isNumber(I)){return this._records;}if(!G.isNumber(H)){return this._records.slice(I);}return this._records.slice(I,I+H);},hasRecords:function(I,H){var K=this.getRecords(I,H);for(var J=0;J<H;++J){if(typeof K[J]==="undefined"){return false;}}return true;},getRecordIndex:function(I){if(I){for(var H=this._records.length-1;H>-1;H--){if(this._records[H]&&I.getId()===this._records[H].getId()){return H;}}}return null;},addRecord:function(J,H){if(G.isObject(J)){var I=this._addRecord(J,H);this.fireEvent("recordAddEvent",{record:I,data:J});return I;}else{return null;}},addRecords:function(L,K){if(G.isArray(L)){var O=[],I,M,H;K=G.isNumber(K)?K:this._records.length;I=K;for(M=0,H=L.length;M<H;++M){if(G.isObject(L[M])){var J=this._addRecord(L[M],I++);O.push(J);}}this.fireEvent("recordsAddEvent",{records:O,data:L});return O;}else{if(G.isObject(L)){var N=this._addRecord(L);this.fireEvent("recordsAddEvent",{records:[N],data:L});return N;}else{return null;}}},setRecord:function(J,H){if(G.isObject(J)){var I=this._setRecord(J,H);this.fireEvent("recordSetEvent",{record:I,data:J});return I;}else{return null;}},setRecords:function(L,K){var O=E.Record,I=G.isArray(L)?L:[L],N=[],M=0,H=I.length,J=0;K=parseInt(K,10)|0;for(;M<H;++M){if(typeof I[M]==="object"&&I[M]){N[J++]=this._records[K+M]=new O(I[M]);}}this.fireEvent("recordsSetEvent",{records:N,data:L});this.fireEvent("recordsSet",{records:N,data:L});if(I.length&&!N.length){}return N.length>1?N:N[0];},updateRecord:function(H,L){var J=this.getRecord(H);if(J&&G.isObject(L)){var K={};for(var I in J._oData){if(G.hasOwnProperty(J._oData,I)){K[I]=J._oData[I];}}J._oData=L;this.fireEvent("recordUpdateEvent",{record:J,newData:L,oldData:K});return J;}else{return null;}},updateKey:function(H,I,J){this.updateRecordValue(H,I,J);},updateRecordValue:function(H,K,N){var J=this.getRecord(H);if(J){var M=null;var L=J._oData[K];if(L&&G.isObject(L)){M={};for(var I in L){if(G.hasOwnProperty(L,I)){M[I]=L[I];}}}else{M=L;}J._oData[K]=N;this.fireEvent("keyUpdateEvent",{record:J,key:K,newData:N,oldData:M});this.fireEvent("recordValueUpdateEvent",{record:J,key:K,newData:N,oldData:M});}else{}},replaceRecords:function(H){this.reset();return this.addRecords(H);},sortRecords:function(H,J,I){return this._records.sort(function(L,K){return H(L,K,J,I);});},reverseRecords:function(){return this._records.reverse();},deleteRecord:function(H){if(G.isNumber(H)&&(H>-1)&&(H<this.getLength())){var I=E.DataTable._cloneObject(this.getRecord(H).getData());this._deleteRecord(H);this.fireEvent("recordDeleteEvent",{data:I,index:H});return I;}else{return null;}},deleteRecords:function(J,H){if(!G.isNumber(H)){H=1;}if(G.isNumber(J)&&(J>-1)&&(J<this.getLength())){var L=this.getRecords(J,H);var I=[];for(var K=0;K<L.length;K++){I[I.length]=E.DataTable._cloneObject(L[K]);}this._deleteRecord(J,H);this.fireEvent("recordsDeleteEvent",{data:I,index:J});return I;}else{return null;}},reset:function(){this._records=[];this.fireEvent("resetEvent");}};G.augmentProto(B,A.EventProvider);YAHOO.widget.Record=function(H){this._nCount=E.Record._nCount;this._sId="yui-rec"+this._nCount;E.Record._nCount++;this._oData={};if(G.isObject(H)){for(var I in H){if(G.hasOwnProperty(H,I)){this._oData[I]=H[I];}}}};YAHOO.widget.Record._nCount=0;YAHOO.widget.Record.prototype={_nCount:null,_sId:null,_oData:null,getCount:function(){return this._nCount;},getId:function(){return this._sId;},getData:function(H){if(G.isString(H)){return this._oData[H];}else{return this._oData;}},setData:function(H,I){this._oData[H]=I;}};})();(function(){var H=YAHOO.lang,A=YAHOO.util,E=YAHOO.widget,B=YAHOO.env.ua,C=A.Dom,G=A.Event,F=A.DataSourceBase;YAHOO.widget.DataTable=function(I,M,O,K){var L=E.DataTable;if(K&&K.scrollable){return new YAHOO.widget.ScrollingDataTable(I,M,O,K);}this._nIndex=L._nCount;this._sId="yui-dt"+this._nIndex;this._oChainRender=new YAHOO.util.Chain();this._oChainRender.subscribe("end",this._onRenderChainEnd,this,true);this._initConfigs(K);this._initDataSource(O);if(!this._oDataSource){return;}this._initColumnSet(M);if(!this._oColumnSet){return;}this._initRecordSet();if(!this._oRecordSet){}L.superclass.constructor.call(this,I,this.configs);var Q=this._initDomElements(I);if(!Q){return;}this.showTableMessage(this.get("MSG_LOADING"),L.CLASS_LOADING);this._initEvents();L._nCount++;L._nCurrentCount++;var N={success:this.onDataReturnSetRows,failure:this.onDataReturnSetRows,scope:this,argument:this.getState()};var P=this.get("initialLoad");if(P===true){this._oDataSource.sendRequest(this.get("initialRequest"),N);}else{if(P===false){this.showTableMessage(this.get("MSG_EMPTY"),L.CLASS_EMPTY);}else{var J=P||{};N.argument=J.argument||{};this._oDataSource.sendRequest(J.request,N);}}};var D=E.DataTable;H.augmentObject(D,{CLASS_DATATABLE:"yui-dt",CLASS_LINER:"yui-dt-liner",CLASS_LABEL:"yui-dt-label",CLASS_MESSAGE:"yui-dt-message",CLASS_MASK:"yui-dt-mask",CLASS_DATA:"yui-dt-data",CLASS_COLTARGET:"yui-dt-coltarget",CLASS_RESIZER:"yui-dt-resizer",CLASS_RESIZERLINER:"yui-dt-resizerliner",CLASS_RESIZERPROXY:"yui-dt-resizerproxy",CLASS_EDITOR:"yui-dt-editor",CLASS_PAGINATOR:"yui-dt-paginator",CLASS_PAGE:"yui-dt-page",CLASS_DEFAULT:"yui-dt-default",CLASS_PREVIOUS:"yui-dt-previous",CLASS_NEXT:"yui-dt-next",CLASS_FIRST:"yui-dt-first",CLASS_LAST:"yui-dt-last",CLASS_EVEN:"yui-dt-even",CLASS_ODD:"yui-dt-odd",CLASS_SELECTED:"yui-dt-selected",CLASS_HIGHLIGHTED:"yui-dt-highlighted",CLASS_HIDDEN:"yui-dt-hidden",CLASS_DISABLED:"yui-dt-disabled",CLASS_EMPTY:"yui-dt-empty",CLASS_LOADING:"yui-dt-loading",CLASS_ERROR:"yui-dt-error",CLASS_EDITABLE:"yui-dt-editable",CLASS_DRAGGABLE:"yui-dt-draggable",CLASS_RESIZEABLE:"yui-dt-resizeable",CLASS_SCROLLABLE:"yui-dt-scrollable",CLASS_SORTABLE:"yui-dt-sortable",CLASS_ASC:"yui-dt-asc",CLASS_DESC:"yui-dt-desc",CLASS_BUTTON:"yui-dt-button",CLASS_CHECKBOX:"yui-dt-checkbox",CLASS_DROPDOWN:"yui-dt-dropdown",CLASS_RADIO:"yui-dt-radio",_nCount:0,_nCurrentCount:0,_elDynStyleNode:null,_bDynStylesFallback:(B.ie)?true:false,_oDynStyles:{},_elColumnDragTarget:null,_elColumnResizerProxy:null,_cloneObject:function(L){if(!H.isValue(L)){return L;
++}var N={};if(L instanceof YAHOO.widget.BaseCellEditor){N=L;}else{if(H.isFunction(L)){N=L;}else{if(H.isArray(L)){var M=[];for(var K=0,J=L.length;K<J;K++){M[K]=D._cloneObject(L[K]);}N=M;}else{if(H.isObject(L)){for(var I in L){if(H.hasOwnProperty(L,I)){if(H.isValue(L[I])&&H.isObject(L[I])||H.isArray(L[I])){N[I]=D._cloneObject(L[I]);}else{N[I]=L[I];}}}}else{N=L;}}}}return N;},_destroyColumnDragTargetEl:function(){if(D._elColumnDragTarget){var I=D._elColumnDragTarget;YAHOO.util.Event.purgeElement(I);I.parentNode.removeChild(I);D._elColumnDragTarget=null;}},_initColumnDragTargetEl:function(){if(!D._elColumnDragTarget){var I=document.createElement("div");I.className=D.CLASS_COLTARGET;I.style.display="none";document.body.insertBefore(I,document.body.firstChild);D._elColumnDragTarget=I;}return D._elColumnDragTarget;},_destroyColumnResizerProxyEl:function(){if(D._elColumnResizerProxy){var I=D._elColumnResizerProxy;YAHOO.util.Event.purgeElement(I);I.parentNode.removeChild(I);D._elColumnResizerProxy=null;}},_initColumnResizerProxyEl:function(){if(!D._elColumnResizerProxy){var I=document.createElement("div");I.id="yui-dt-colresizerproxy";I.className=D.CLASS_RESIZERPROXY;document.body.insertBefore(I,document.body.firstChild);D._elColumnResizerProxy=I;}return D._elColumnResizerProxy;},formatButton:function(I,J,K,M){var L=H.isValue(M)?M:"Click";I.innerHTML='<button type="button" class="'+D.CLASS_BUTTON+'">'+L+"</button>";},formatCheckbox:function(I,J,K,M){var L=M;L=(L)?' checked="checked"':"";I.innerHTML='<input type="checkbox"'+L+' class="'+D.CLASS_CHECKBOX+'" />';},formatCurrency:function(I,J,K,L){I.innerHTML=A.Number.format(L,K.currencyOptions||this.get("currencyOptions"));},formatDate:function(I,K,L,M){var J=L.dateOptions||this.get("dateOptions");I.innerHTML=A.Date.format(M,J,J.locale);},formatDropdown:function(K,R,P,I){var Q=(H.isValue(I))?I:R.getData(P.field),S=(H.isArray(P.dropdownOptions))?P.dropdownOptions:null,J,O=K.getElementsByTagName("select");if(O.length===0){J=document.createElement("select");J.className=D.CLASS_DROPDOWN;J=K.appendChild(J);G.addListener(J,"change",this._onDropdownChange,this);}J=O[0];if(J){J.innerHTML="";if(S){for(var M=0;M<S.length;M++){var N=S[M];var L=document.createElement("option");L.value=(H.isValue(N.value))?N.value:N;L.innerHTML=(H.isValue(N.text))?N.text:(H.isValue(N.label))?N.label:N;L=J.appendChild(L);if(L.value==Q){L.selected=true;}}}else{J.innerHTML='<option selected value="'+Q+'">'+Q+"</option>";}}else{K.innerHTML=H.isValue(I)?I:"";}},formatEmail:function(I,J,K,L){if(H.isString(L)){I.innerHTML='<a href="mailto:'+L+'">'+L+"</a>";}else{I.innerHTML=H.isValue(L)?L:"";}},formatLink:function(I,J,K,L){if(H.isString(L)){I.innerHTML='<a href="'+L+'">'+L+"</a>";}else{I.innerHTML=H.isValue(L)?L:"";}},formatNumber:function(I,J,K,L){I.innerHTML=A.Number.format(L,K.numberOptions||this.get("numberOptions"));},formatRadio:function(I,J,K,M){var L=M;L=(L)?' checked="checked"':"";I.innerHTML='<input type="radio"'+L+' name="'+this.getId()+"-col-"+K.getSanitizedKey()+'"'+' class="'+D.CLASS_RADIO+'" />';},formatText:function(I,J,L,M){var K=(H.isValue(M))?M:"";I.innerHTML=K.toString().replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;");},formatTextarea:function(J,K,M,N){var L=(H.isValue(N))?N:"",I="<textarea>"+L+"</textarea>";J.innerHTML=I;},formatTextbox:function(J,K,M,N){var L=(H.isValue(N))?N:"",I='<input type="text" value="'+L+'" />';J.innerHTML=I;},formatDefault:function(I,J,K,L){I.innerHTML=L===undefined||L===null||(typeof L==="number"&&isNaN(L))?"&#160;":L.toString();},validateNumber:function(J){var I=J*1;if(H.isNumber(I)){return I;}else{return undefined;}}});D.Formatter={button:D.formatButton,checkbox:D.formatCheckbox,currency:D.formatCurrency,"date":D.formatDate,dropdown:D.formatDropdown,email:D.formatEmail,link:D.formatLink,"number":D.formatNumber,radio:D.formatRadio,text:D.formatText,textarea:D.formatTextarea,textbox:D.formatTextbox,defaultFormatter:D.formatDefault};H.extend(D,A.Element,{initAttributes:function(I){I=I||{};D.superclass.initAttributes.call(this,I);this.setAttributeConfig("summary",{value:"",validator:H.isString,method:function(J){if(this._elTable){this._elTable.summary=J;}}});this.setAttributeConfig("selectionMode",{value:"standard",validator:H.isString});this.setAttributeConfig("sortedBy",{value:null,validator:function(J){if(J){return(H.isObject(J)&&J.key);}else{return(J===null);}},method:function(K){var R=this.get("sortedBy");this._configs.sortedBy.value=K;var J,O,M,Q;if(this._elThead){if(R&&R.key&&R.dir){J=this._oColumnSet.getColumn(R.key);O=J.getKeyIndex();var U=J.getThEl();C.removeClass(U,R.dir);this.formatTheadCell(J.getThLinerEl().firstChild,J,K);}if(K){M=(K.column)?K.column:this._oColumnSet.getColumn(K.key);Q=M.getKeyIndex();var V=M.getThEl();if(K.dir&&((K.dir=="asc")||(K.dir=="desc"))){var P=(K.dir=="desc")?D.CLASS_DESC:D.CLASS_ASC;C.addClass(V,P);}else{var L=K.dir||D.CLASS_ASC;C.addClass(V,L);}this.formatTheadCell(M.getThLinerEl().firstChild,M,K);}}if(this._elTbody){this._elTbody.style.display="none";var S=this._elTbody.rows,T;for(var N=S.length-1;N>-1;N--){T=S[N].childNodes;if(T[O]){C.removeClass(T[O],R.dir);}if(T[Q]){C.addClass(T[Q],K.dir);}}this._elTbody.style.display="";}this._clearTrTemplateEl();}});this.setAttributeConfig("paginator",{value:null,validator:function(J){return J===null||J instanceof E.Paginator;},method:function(){this._updatePaginator.apply(this,arguments);}});this.setAttributeConfig("caption",{value:null,validator:H.isString,method:function(J){this._initCaptionEl(J);}});this.setAttributeConfig("draggableColumns",{value:false,validator:H.isBoolean,method:function(J){if(this._elThead){if(J){this._initDraggableColumns();}else{this._destroyDraggableColumns();}}}});this.setAttributeConfig("renderLoopSize",{value:0,validator:H.isNumber});this.setAttributeConfig("formatRow",{value:null,validator:H.isFunction});this.setAttributeConfig("generateRequest",{value:function(K,N){K=K||{pagination:null,sortedBy:null};var M=encodeURIComponent((K.sortedBy)?K.sortedBy.key:N.getColumnSet().keys[0].getKey());
++var J=(K.sortedBy&&K.sortedBy.dir===YAHOO.widget.DataTable.CLASS_DESC)?"desc":"asc";var O=(K.pagination)?K.pagination.recordOffset:0;var L=(K.pagination)?K.pagination.rowsPerPage:null;return"sort="+M+"&dir="+J+"&startIndex="+O+((L!==null)?"&results="+L:"");},validator:H.isFunction});this.setAttributeConfig("initialRequest",{value:null});this.setAttributeConfig("initialLoad",{value:true});this.setAttributeConfig("dynamicData",{value:false,validator:H.isBoolean});this.setAttributeConfig("MSG_EMPTY",{value:"No records found.",validator:H.isString});this.setAttributeConfig("MSG_LOADING",{value:"Loading...",validator:H.isString});this.setAttributeConfig("MSG_ERROR",{value:"Data error.",validator:H.isString});this.setAttributeConfig("MSG_SORTASC",{value:"Click to sort ascending",validator:H.isString,method:function(K){if(this._elThead){for(var L=0,M=this.getColumnSet().keys,J=M.length;L<J;L++){if(M[L].sortable&&this.getColumnSortDir(M[L])===D.CLASS_ASC){M[L]._elThLabel.firstChild.title=K;}}}}});this.setAttributeConfig("MSG_SORTDESC",{value:"Click to sort descending",validator:H.isString,method:function(K){if(this._elThead){for(var L=0,M=this.getColumnSet().keys,J=M.length;L<J;L++){if(M[L].sortable&&this.getColumnSortDir(M[L])===D.CLASS_DESC){M[L]._elThLabel.firstChild.title=K;}}}}});this.setAttributeConfig("currencySymbol",{value:"$",validator:H.isString});this.setAttributeConfig("currencyOptions",{value:{prefix:this.get("currencySymbol"),decimalPlaces:2,decimalSeparator:".",thousandsSeparator:","}});this.setAttributeConfig("dateOptions",{value:{format:"%m/%d/%Y",locale:"en"}});this.setAttributeConfig("numberOptions",{value:{decimalPlaces:0,thousandsSeparator:","}});},_bInit:true,_nIndex:null,_nTrCount:0,_nTdCount:0,_sId:null,_oChainRender:null,_elContainer:null,_elMask:null,_elTable:null,_elCaption:null,_elColgroup:null,_elThead:null,_elTbody:null,_elMsgTbody:null,_elMsgTr:null,_elMsgTd:null,_oDataSource:null,_oColumnSet:null,_oRecordSet:null,_oCellEditor:null,_sFirstTrId:null,_sLastTrId:null,_elTrTemplate:null,_aDynFunctions:[],clearTextSelection:function(){var I;if(window.getSelection){I=window.getSelection();}else{if(document.getSelection){I=document.getSelection();}else{if(document.selection){I=document.selection;}}}if(I){if(I.empty){I.empty();}else{if(I.removeAllRanges){I.removeAllRanges();}else{if(I.collapse){I.collapse();}}}}},_focusEl:function(I){I=I||this._elTbody;setTimeout(function(){try{I.focus();}catch(J){}},0);},_repaintGecko:(B.gecko)?function(J){J=J||this._elContainer;var I=J.parentNode;var K=J.nextSibling;I.insertBefore(I.removeChild(J),K);}:function(){},_repaintOpera:(B.opera)?function(){if(B.opera){document.documentElement.className+=" ";document.documentElement.className=YAHOO.lang.trim(document.documentElement.className);}}:function(){},_repaintWebkit:(B.webkit)?function(J){J=J||this._elContainer;var I=J.parentNode;var K=J.nextSibling;I.insertBefore(I.removeChild(J),K);}:function(){},_initConfigs:function(I){if(!I||!H.isObject(I)){I={};}this.configs=I;},_initColumnSet:function(M){var L,J,I;if(this._oColumnSet){for(J=0,I=this._oColumnSet.keys.length;J<I;J++){L=this._oColumnSet.keys[J];D._oDynStyles["."+this.getId()+"-col-"+L.getSanitizedKey()+" ."+D.CLASS_LINER]=undefined;if(L.editor&&L.editor.unsubscribeAll){L.editor.unsubscribeAll();}}this._oColumnSet=null;this._clearTrTemplateEl();}if(H.isArray(M)){this._oColumnSet=new YAHOO.widget.ColumnSet(M);}else{if(M instanceof YAHOO.widget.ColumnSet){this._oColumnSet=M;}}var K=this._oColumnSet.keys;for(J=0,I=K.length;J<I;J++){L=K[J];if(L.editor&&L.editor.subscribe){L.editor.subscribe("showEvent",this._onEditorShowEvent,this,true);L.editor.subscribe("keydownEvent",this._onEditorKeydownEvent,this,true);L.editor.subscribe("revertEvent",this._onEditorRevertEvent,this,true);L.editor.subscribe("saveEvent",this._onEditorSaveEvent,this,true);L.editor.subscribe("cancelEvent",this._onEditorCancelEvent,this,true);L.editor.subscribe("blurEvent",this._onEditorBlurEvent,this,true);L.editor.subscribe("blockEvent",this._onEditorBlockEvent,this,true);L.editor.subscribe("unblockEvent",this._onEditorUnblockEvent,this,true);}}},_initDataSource:function(I){this._oDataSource=null;if(I&&(H.isFunction(I.sendRequest))){this._oDataSource=I;}else{var J=null;var N=this._elContainer;var K=0;if(N.hasChildNodes()){var M=N.childNodes;for(K=0;K<M.length;K++){if(M[K].nodeName&&M[K].nodeName.toLowerCase()=="table"){J=M[K];break;}}if(J){var L=[];for(;K<this._oColumnSet.keys.length;K++){L.push({key:this._oColumnSet.keys[K].key});}this._oDataSource=new F(J);this._oDataSource.responseType=F.TYPE_HTMLTABLE;this._oDataSource.responseSchema={fields:L};}}}},_initRecordSet:function(){if(this._oRecordSet){this._oRecordSet.reset();}else{this._oRecordSet=new YAHOO.widget.RecordSet();}},_initDomElements:function(I){this._initContainerEl(I);this._initTableEl(this._elContainer);this._initColgroupEl(this._elTable);this._initTheadEl(this._elTable);this._initMsgTbodyEl(this._elTable);this._initTbodyEl(this._elTable);if(!this._elContainer||!this._elTable||!this._elColgroup||!this._elThead||!this._elTbody||!this._elMsgTbody){return false;}else{return true;}},_destroyContainerEl:function(I){C.removeClass(I,D.CLASS_DATATABLE);G.purgeElement(I,true);I.innerHTML="";this._elContainer=null;this._elColgroup=null;this._elThead=null;this._elTbody=null;},_initContainerEl:function(J){J=C.get(J);if(J&&J.nodeName&&(J.nodeName.toLowerCase()=="div")){this._destroyContainerEl(J);C.addClass(J,D.CLASS_DATATABLE);G.addListener(J,"focus",this._onTableFocus,this);G.addListener(J,"dblclick",this._onTableDblclick,this);this._elContainer=J;var I=document.createElement("div");I.className=D.CLASS_MASK;I.style.display="none";this._elMask=J.appendChild(I);}},_destroyTableEl:function(){var I=this._elTable;if(I){G.purgeElement(I,true);I.parentNode.removeChild(I);this._elCaption=null;this._elColgroup=null;this._elThead=null;this._elTbody=null;}},_initCaptionEl:function(I){if(this._elTable&&I){if(!this._elCaption){this._elCaption=this._elTable.createCaption();
++}this._elCaption.innerHTML=I;}else{if(this._elCaption){this._elCaption.parentNode.removeChild(this._elCaption);}}},_initTableEl:function(I){if(I){this._destroyTableEl();this._elTable=I.appendChild(document.createElement("table"));this._elTable.summary=this.get("summary");if(this.get("caption")){this._initCaptionEl(this.get("caption"));}}},_destroyColgroupEl:function(){var I=this._elColgroup;if(I){var J=I.parentNode;G.purgeElement(I,true);J.removeChild(I);this._elColgroup=null;}},_initColgroupEl:function(R){if(R){this._destroyColgroupEl();var K=this._aColIds||[],Q=this._oColumnSet.keys,L=0,O=K.length,I,N,P=document.createDocumentFragment(),M=document.createElement("col");for(L=0,O=Q.length;L<O;L++){N=Q[L];I=P.appendChild(M.cloneNode(false));}var J=R.insertBefore(document.createElement("colgroup"),R.firstChild);J.appendChild(P);this._elColgroup=J;}},_insertColgroupColEl:function(I){if(H.isNumber(I)&&this._elColgroup){var J=this._elColgroup.childNodes[I]||null;this._elColgroup.insertBefore(document.createElement("col"),J);}},_removeColgroupColEl:function(I){if(H.isNumber(I)&&this._elColgroup&&this._elColgroup.childNodes[I]){this._elColgroup.removeChild(this._elColgroup.childNodes[I]);}},_reorderColgroupColEl:function(K,J){if(H.isArray(K)&&H.isNumber(J)&&this._elColgroup&&(this._elColgroup.childNodes.length>K[K.length-1])){var I,M=[];for(I=K.length-1;I>-1;I--){M.push(this._elColgroup.removeChild(this._elColgroup.childNodes[K[I]]));}var L=this._elColgroup.childNodes[J]||null;for(I=M.length-1;I>-1;I--){this._elColgroup.insertBefore(M[I],L);}}},_destroyTheadEl:function(){var J=this._elThead;if(J){var I=J.parentNode;G.purgeElement(J,true);this._destroyColumnHelpers();I.removeChild(J);this._elThead=null;}},_initTheadEl:function(S){S=S||this._elTable;if(S){this._destroyTheadEl();var N=(this._elColgroup)?S.insertBefore(document.createElement("thead"),this._elColgroup.nextSibling):S.appendChild(document.createElement("thead"));G.addListener(N,"focus",this._onTheadFocus,this);G.addListener(N,"keydown",this._onTheadKeydown,this);G.addListener(N,"mouseover",this._onTableMouseover,this);G.addListener(N,"mouseout",this._onTableMouseout,this);G.addListener(N,"mousedown",this._onTableMousedown,this);G.addListener(N,"mouseup",this._onTableMouseup,this);G.addListener(N,"click",this._onTheadClick,this);var U=this._oColumnSet,Q,O,M,K;var T=U.tree;var L;for(O=0;O<T.length;O++){var J=N.appendChild(document.createElement("tr"));for(M=0;M<T[O].length;M++){Q=T[O][M];L=J.appendChild(document.createElement("th"));this._initThEl(L,Q);}if(O===0){C.addClass(J,D.CLASS_FIRST);}if(O===(T.length-1)){C.addClass(J,D.CLASS_LAST);}}var I=U.headers[0]||[];for(O=0;O<I.length;O++){C.addClass(C.get(this.getId()+"-th-"+I[O]),D.CLASS_FIRST);}var P=U.headers[U.headers.length-1]||[];for(O=0;O<P.length;O++){C.addClass(C.get(this.getId()+"-th-"+P[O]),D.CLASS_LAST);}if(B.webkit&&B.webkit<420){var R=this;setTimeout(function(){N.style.display="";},0);N.style.display="none";}this._elThead=N;this._initColumnHelpers();}},_initThEl:function(M,L){M.id=this.getId()+"-th-"+L.getSanitizedKey();M.innerHTML="";M.rowSpan=L.getRowspan();M.colSpan=L.getColspan();L._elTh=M;var I=M.appendChild(document.createElement("div"));I.id=M.id+"-liner";I.className=D.CLASS_LINER;L._elThLiner=I;var J=I.appendChild(document.createElement("span"));J.className=D.CLASS_LABEL;if(L.abbr){M.abbr=L.abbr;}if(L.hidden){this._clearMinWidth(L);}M.className=this._getColumnClassNames(L);if(L.width){var K=(L.minWidth&&(L.width<L.minWidth))?L.minWidth:L.width;if(D._bDynStylesFallback){M.firstChild.style.overflow="hidden";M.firstChild.style.width=K+"px";}else{this._setColumnWidthDynStyles(L,K+"px","hidden");}}this.formatTheadCell(J,L,this.get("sortedBy"));L._elThLabel=J;},formatTheadCell:function(I,M,K){var Q=M.getKey();var P=H.isValue(M.label)?M.label:Q;if(M.sortable){var N=this.getColumnSortDir(M,K);var J=(N===D.CLASS_DESC);if(K&&(M.key===K.key)){J=!(K.dir===D.CLASS_DESC);}var L=this.getId()+"-href-"+M.getSanitizedKey();var O=(J)?this.get("MSG_SORTDESC"):this.get("MSG_SORTASC");I.innerHTML='<a href="'+L+'" title="'+O+'" class="'+D.CLASS_SORTABLE+'">'+P+"</a>";}else{I.innerHTML=P;}},_destroyDraggableColumns:function(){var K,L;for(var J=0,I=this._oColumnSet.tree[0].length;J<I;J++){K=this._oColumnSet.tree[0][J];if(K._dd){K._dd=K._dd.unreg();C.removeClass(K.getThEl(),D.CLASS_DRAGGABLE);}}},_initDraggableColumns:function(){this._destroyDraggableColumns();if(A.DD){var L,M,J;for(var K=0,I=this._oColumnSet.tree[0].length;K<I;K++){L=this._oColumnSet.tree[0][K];M=L.getThEl();C.addClass(M,D.CLASS_DRAGGABLE);J=D._initColumnDragTargetEl();L._dd=new YAHOO.widget.ColumnDD(this,L,M,J);}}else{}},_destroyResizeableColumns:function(){var J=this._oColumnSet.keys;for(var K=0,I=J.length;K<I;K++){if(J[K]._ddResizer){J[K]._ddResizer=J[K]._ddResizer.unreg();C.removeClass(J[K].getThEl(),D.CLASS_RESIZEABLE);}}},_initResizeableColumns:function(){this._destroyResizeableColumns();if(A.DD){var O,J,M,P,I,Q,L;for(var K=0,N=this._oColumnSet.keys.length;K<N;K++){O=this._oColumnSet.keys[K];if(O.resizeable){J=O.getThEl();C.addClass(J,D.CLASS_RESIZEABLE);M=O.getThLinerEl();P=J.appendChild(document.createElement("div"));P.className=D.CLASS_RESIZERLINER;P.appendChild(M);I=P.appendChild(document.createElement("div"));I.id=J.id+"-resizer";I.className=D.CLASS_RESIZER;O._elResizer=I;Q=D._initColumnResizerProxyEl();O._ddResizer=new YAHOO.util.ColumnResizer(this,O,J,I,Q);L=function(R){G.stopPropagation(R);};G.addListener(I,"click",L);}}}else{}},_destroyColumnHelpers:function(){this._destroyDraggableColumns();this._destroyResizeableColumns();},_initColumnHelpers:function(){if(this.get("draggableColumns")){this._initDraggableColumns();}this._initResizeableColumns();},_destroyTbodyEl:function(){var I=this._elTbody;if(I){var J=I.parentNode;G.purgeElement(I,true);J.removeChild(I);this._elTbody=null;}},_initTbodyEl:function(J){if(J){this._destroyTbodyEl();var I=J.appendChild(document.createElement("tbody"));I.tabIndex=0;I.className=D.CLASS_DATA;
++G.addListener(I,"focus",this._onTbodyFocus,this);G.addListener(I,"mouseover",this._onTableMouseover,this);G.addListener(I,"mouseout",this._onTableMouseout,this);G.addListener(I,"mousedown",this._onTableMousedown,this);G.addListener(I,"mouseup",this._onTableMouseup,this);G.addListener(I,"keydown",this._onTbodyKeydown,this);G.addListener(I,"keypress",this._onTableKeypress,this);G.addListener(I,"click",this._onTbodyClick,this);if(B.ie){I.hideFocus=true;}this._elTbody=I;}},_destroyMsgTbodyEl:function(){var I=this._elMsgTbody;if(I){var J=I.parentNode;G.purgeElement(I,true);J.removeChild(I);this._elTbody=null;}},_initMsgTbodyEl:function(L){if(L){var K=document.createElement("tbody");K.className=D.CLASS_MESSAGE;var J=K.appendChild(document.createElement("tr"));J.className=D.CLASS_FIRST+" "+D.CLASS_LAST;this._elMsgTr=J;var M=J.appendChild(document.createElement("td"));M.colSpan=this._oColumnSet.keys.length||1;M.className=D.CLASS_FIRST+" "+D.CLASS_LAST;this._elMsgTd=M;K=L.insertBefore(K,this._elTbody);var I=M.appendChild(document.createElement("div"));I.className=D.CLASS_LINER;this._elMsgTbody=K;G.addListener(K,"focus",this._onTbodyFocus,this);G.addListener(K,"mouseover",this._onTableMouseover,this);G.addListener(K,"mouseout",this._onTableMouseout,this);G.addListener(K,"mousedown",this._onTableMousedown,this);G.addListener(K,"mouseup",this._onTableMouseup,this);G.addListener(K,"keydown",this._onTbodyKeydown,this);G.addListener(K,"keypress",this._onTableKeypress,this);G.addListener(K,"click",this._onTbodyClick,this);}},_initEvents:function(){this._initColumnSort();YAHOO.util.Event.addListener(document,"click",this._onDocumentClick,this);this.subscribe("paginatorChange",function(){this._handlePaginatorChange.apply(this,arguments);});this.subscribe("initEvent",function(){this.renderPaginator();});this._initCellEditing();},_initColumnSort:function(){this.subscribe("theadCellClickEvent",this.onEventSortColumn);var I=this.get("sortedBy");if(I){if(I.dir=="desc"){this._configs.sortedBy.value.dir=D.CLASS_DESC;}else{if(I.dir=="asc"){this._configs.sortedBy.value.dir=D.CLASS_ASC;}}}},_initCellEditing:function(){this.subscribe("editorBlurEvent",function(){this.onEditorBlurEvent.apply(this,arguments);});this.subscribe("editorBlockEvent",function(){this.onEditorBlockEvent.apply(this,arguments);});this.subscribe("editorUnblockEvent",function(){this.onEditorUnblockEvent.apply(this,arguments);});},_getColumnClassNames:function(L,K){var I;if(H.isString(L.className)){I=[L.className];}else{if(H.isArray(L.className)){I=L.className;}else{I=[];}}I[I.length]=this.getId()+"-col-"+L.getSanitizedKey();I[I.length]="yui-dt-col-"+L.getSanitizedKey();var J=this.get("sortedBy")||{};if(L.key===J.key){I[I.length]=J.dir||"";}if(L.hidden){I[I.length]=D.CLASS_HIDDEN;}if(L.selected){I[I.length]=D.CLASS_SELECTED;}if(L.sortable){I[I.length]=D.CLASS_SORTABLE;}if(L.resizeable){I[I.length]=D.CLASS_RESIZEABLE;}if(L.editor){I[I.length]=D.CLASS_EDITABLE;}if(K){I=I.concat(K);}return I.join(" ");},_clearTrTemplateEl:function(){this._elTrTemplate=null;},_getTrTemplateEl:function(T,N){if(this._elTrTemplate){return this._elTrTemplate;}else{var P=document,R=P.createElement("tr"),K=P.createElement("td"),J=P.createElement("div");K.appendChild(J);var S=document.createDocumentFragment(),Q=this._oColumnSet.keys,M;var O;for(var L=0,I=Q.length;L<I;L++){M=K.cloneNode(true);M=this._formatTdEl(Q[L],M,L,(L===I-1));S.appendChild(M);}R.appendChild(S);this._elTrTemplate=R;return R;}},_formatTdEl:function(M,O,P,L){var S=this._oColumnSet;var I=S.headers,J=I[P],N="",U;for(var K=0,T=J.length;K<T;K++){U=this._sId+"-th-"+J[K]+" ";N+=U;}O.headers=N;var R=[];if(P===0){R[R.length]=D.CLASS_FIRST;}if(L){R[R.length]=D.CLASS_LAST;}O.className=this._getColumnClassNames(M,R);O.firstChild.className=D.CLASS_LINER;if(M.width&&D._bDynStylesFallback){var Q=(M.minWidth&&(M.width<M.minWidth))?M.minWidth:M.width;O.firstChild.style.overflow="hidden";O.firstChild.style.width=Q+"px";}return O;},_addTrEl:function(K){var J=this._getTrTemplateEl();var I=J.cloneNode(true);return this._updateTrEl(I,K);},_updateTrEl:function(J,N){var M=this.get("formatRow")?this.get("formatRow").call(this,J,N):true;if(M){J.style.display="none";var O=J.childNodes,K;for(var L=0,I=O.length;L<I;++L){K=O[L];this.formatCell(O[L].firstChild,N,this._oColumnSet.keys[L]);}J.style.display="";}J.id=N.getId();return J;},_deleteTrEl:function(I){var J;if(!H.isNumber(I)){J=C.get(I).sectionRowIndex;}else{J=I;}if(H.isNumber(J)&&(J>-2)&&(J<this._elTbody.rows.length)){return this._elTbody.removeChild(this.getTrEl(I));}else{return null;}},_unsetFirstRow:function(){if(this._sFirstTrId){C.removeClass(this._sFirstTrId,D.CLASS_FIRST);this._sFirstTrId=null;}},_setFirstRow:function(){this._unsetFirstRow();var I=this.getFirstTrEl();if(I){C.addClass(I,D.CLASS_FIRST);this._sFirstTrId=I.id;}},_unsetLastRow:function(){if(this._sLastTrId){C.removeClass(this._sLastTrId,D.CLASS_LAST);this._sLastTrId=null;}},_setLastRow:function(){this._unsetLastRow();var I=this.getLastTrEl();if(I){C.addClass(I,D.CLASS_LAST);this._sLastTrId=I.id;}},_setRowStripes:function(S,K){var L=this._elTbody.rows,P=0,R=L.length,O=[],Q=0,M=[],I=0;if((S!==null)&&(S!==undefined)){var N=this.getTrEl(S);if(N){P=N.sectionRowIndex;if(H.isNumber(K)&&(K>1)){R=P+K;}}}for(var J=P;J<R;J++){if(J%2){O[Q++]=L[J];}else{M[I++]=L[J];}}if(O.length){C.replaceClass(O,D.CLASS_EVEN,D.CLASS_ODD);}if(M.length){C.replaceClass(M,D.CLASS_ODD,D.CLASS_EVEN);}},_setSelections:function(){var K=this.getSelectedRows();var M=this.getSelectedCells();if((K.length>0)||(M.length>0)){var L=this._oColumnSet,J;for(var I=0;I<K.length;I++){J=C.get(K[I]);if(J){C.addClass(J,D.CLASS_SELECTED);}}for(I=0;I<M.length;I++){J=C.get(M[I].recordId);if(J){C.addClass(J.childNodes[L.getColumn(M[I].columnKey).getKeyIndex()],D.CLASS_SELECTED);}}}},_onRenderChainEnd:function(){this.hideTableMessage();if(this._elTbody.rows.length===0){this.showTableMessage(this.get("MSG_EMPTY"),D.CLASS_EMPTY);}var I=this;setTimeout(function(){if((I instanceof D)&&I._sId){if(I._bInit){I._bInit=false;
++I.fireEvent("initEvent");}I.fireEvent("renderEvent");I.fireEvent("refreshEvent");I.validateColumnWidths();I.fireEvent("postRenderEvent");}},0);},_onDocumentClick:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();if(!C.isAncestor(J._elContainer,M)){J.fireEvent("tableBlurEvent");if(J._oCellEditor){if(J._oCellEditor.getContainerEl){var K=J._oCellEditor.getContainerEl();if(!C.isAncestor(K,M)&&(K.id!==M.id)){J._oCellEditor.fireEvent("blurEvent",{editor:J._oCellEditor});}}else{if(J._oCellEditor.isActive){if(!C.isAncestor(J._oCellEditor.container,M)&&(J._oCellEditor.container.id!==M.id)){J.fireEvent("editorBlurEvent",{editor:J._oCellEditor});}}}}}},_onTableFocus:function(J,I){I.fireEvent("tableFocusEvent");},_onTheadFocus:function(J,I){I.fireEvent("theadFocusEvent");I.fireEvent("tableFocusEvent");},_onTbodyFocus:function(J,I){I.fireEvent("tbodyFocusEvent");I.fireEvent("tableFocusEvent");},_onTableMouseover:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMouseoverEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMouseoverEvent",{target:M,event:L});K=J.fireEvent("headerLabelMouseoverEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMouseoverEvent",{target:M,event:L});K=J.fireEvent("headerCellMouseoverEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMouseoverEvent",{target:M,event:L});K=J.fireEvent("headerRowMouseoverEvent",{target:M,event:L});}else{K=J.fireEvent("rowMouseoverEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMouseoverEvent",{target:(M||J._elContainer),event:L});},_onTableMouseout:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMouseoutEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMouseoutEvent",{target:M,event:L});K=J.fireEvent("headerLabelMouseoutEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMouseoutEvent",{target:M,event:L});K=J.fireEvent("headerCellMouseoutEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMouseoutEvent",{target:M,event:L});K=J.fireEvent("headerRowMouseoutEvent",{target:M,event:L});}else{K=J.fireEvent("rowMouseoutEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMouseoutEvent",{target:(M||J._elContainer),event:L});},_onTableMousedown:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMousedownEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMousedownEvent",{target:M,event:L});K=J.fireEvent("headerLabelMousedownEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMousedownEvent",{target:M,event:L});K=J.fireEvent("headerCellMousedownEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMousedownEvent",{target:M,event:L});K=J.fireEvent("headerRowMousedownEvent",{target:M,event:L});}else{K=J.fireEvent("rowMousedownEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMousedownEvent",{target:(M||J._elContainer),event:L});},_onTableMouseup:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"a":break;case"td":K=J.fireEvent("cellMouseupEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelMouseupEvent",{target:M,event:L});K=J.fireEvent("headerLabelMouseupEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellMouseupEvent",{target:M,event:L});K=J.fireEvent("headerCellMouseupEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowMouseupEvent",{target:M,event:L});K=J.fireEvent("headerRowMouseupEvent",{target:M,event:L});}else{K=J.fireEvent("rowMouseupEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableMouseupEvent",{target:(M||J._elContainer),event:L});},_onTableDblclick:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"td":K=J.fireEvent("cellDblclickEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelDblclickEvent",{target:M,event:L});K=J.fireEvent("headerLabelDblclickEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellDblclickEvent",{target:M,event:L});K=J.fireEvent("headerCellDblclickEvent",{target:M,event:L});break;case"tr":if(M.parentNode.nodeName.toLowerCase()=="thead"){K=J.fireEvent("theadRowDblclickEvent",{target:M,event:L});K=J.fireEvent("headerRowDblclickEvent",{target:M,event:L});}else{K=J.fireEvent("rowDblclickEvent",{target:M,event:L});}break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableDblclickEvent",{target:(M||J._elContainer),event:L});},_onTheadKeydown:function(L,J){var M=G.getTarget(L);var I=M.nodeName.toLowerCase();var K=true;while(M&&(I!="table")){switch(I){case"body":return;case"input":case"textarea":break;case"thead":K=J.fireEvent("theadKeyEvent",{target:M,event:L});break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableKeyEvent",{target:(M||J._elContainer),event:L});
++},_onTbodyKeydown:function(M,K){var J=K.get("selectionMode");if(J=="standard"){K._handleStandardSelectionByKey(M);}else{if(J=="single"){K._handleSingleSelectionByKey(M);}else{if(J=="cellblock"){K._handleCellBlockSelectionByKey(M);}else{if(J=="cellrange"){K._handleCellRangeSelectionByKey(M);}else{if(J=="singlecell"){K._handleSingleCellSelectionByKey(M);}}}}}if(K._oCellEditor){if(K._oCellEditor.fireEvent){K._oCellEditor.fireEvent("blurEvent",{editor:K._oCellEditor});}else{if(K._oCellEditor.isActive){K.fireEvent("editorBlurEvent",{editor:K._oCellEditor});}}}var N=G.getTarget(M);var I=N.nodeName.toLowerCase();var L=true;while(N&&(I!="table")){switch(I){case"body":return;case"tbody":L=K.fireEvent("tbodyKeyEvent",{target:N,event:M});break;default:break;}if(L===false){return;}else{N=N.parentNode;if(N){I=N.nodeName.toLowerCase();}}}K.fireEvent("tableKeyEvent",{target:(N||K._elContainer),event:M});},_onTableKeypress:function(K,J){if(B.opera||(navigator.userAgent.toLowerCase().indexOf("mac")!==-1)&&(B.webkit<420)){var I=G.getCharCode(K);if(I==40){G.stopEvent(K);}else{if(I==38){G.stopEvent(K);}}}},_onTheadClick:function(L,J){if(J._oCellEditor){if(J._oCellEditor.fireEvent){J._oCellEditor.fireEvent("blurEvent",{editor:J._oCellEditor});}else{if(J._oCellEditor.isActive){J.fireEvent("editorBlurEvent",{editor:J._oCellEditor});}}}var M=G.getTarget(L),I=M.nodeName.toLowerCase(),K=true;while(M&&(I!="table")){switch(I){case"body":return;case"input":var N=M.type.toLowerCase();if(N=="checkbox"){K=J.fireEvent("theadCheckboxClickEvent",{target:M,event:L});}else{if(N=="radio"){K=J.fireEvent("theadRadioClickEvent",{target:M,event:L});}else{if((N=="button")||(N=="image")||(N=="submit")||(N=="reset")){K=J.fireEvent("theadButtonClickEvent",{target:M,event:L});}}}break;case"a":K=J.fireEvent("theadLinkClickEvent",{target:M,event:L});break;case"button":K=J.fireEvent("theadButtonClickEvent",{target:M,event:L});break;case"span":if(C.hasClass(M,D.CLASS_LABEL)){K=J.fireEvent("theadLabelClickEvent",{target:M,event:L});K=J.fireEvent("headerLabelClickEvent",{target:M,event:L});}break;case"th":K=J.fireEvent("theadCellClickEvent",{target:M,event:L});K=J.fireEvent("headerCellClickEvent",{target:M,event:L});break;case"tr":K=J.fireEvent("theadRowClickEvent",{target:M,event:L});K=J.fireEvent("headerRowClickEvent",{target:M,event:L});break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableClickEvent",{target:(M||J._elContainer),event:L});},_onTbodyClick:function(L,J){if(J._oCellEditor){if(J._oCellEditor.fireEvent){J._oCellEditor.fireEvent("blurEvent",{editor:J._oCellEditor});}else{if(J._oCellEditor.isActive){J.fireEvent("editorBlurEvent",{editor:J._oCellEditor});}}}var M=G.getTarget(L),I=M.nodeName.toLowerCase(),K=true;while(M&&(I!="table")){switch(I){case"body":return;case"input":var N=M.type.toLowerCase();if(N=="checkbox"){K=J.fireEvent("checkboxClickEvent",{target:M,event:L});}else{if(N=="radio"){K=J.fireEvent("radioClickEvent",{target:M,event:L});}else{if((N=="button")||(N=="image")||(N=="submit")||(N=="reset")){K=J.fireEvent("buttonClickEvent",{target:M,event:L});}}}break;case"a":K=J.fireEvent("linkClickEvent",{target:M,event:L});break;case"button":K=J.fireEvent("buttonClickEvent",{target:M,event:L});break;case"td":K=J.fireEvent("cellClickEvent",{target:M,event:L});break;case"tr":K=J.fireEvent("rowClickEvent",{target:M,event:L});break;default:break;}if(K===false){return;}else{M=M.parentNode;if(M){I=M.nodeName.toLowerCase();}}}J.fireEvent("tableClickEvent",{target:(M||J._elContainer),event:L});},_onDropdownChange:function(J,I){var K=G.getTarget(J);I.fireEvent("dropdownChangeEvent",{event:J,target:K});},configs:null,getId:function(){return this._sId;},toString:function(){return"DataTable instance "+this._sId;},getDataSource:function(){return this._oDataSource;},getColumnSet:function(){return this._oColumnSet;},getRecordSet:function(){return this._oRecordSet;},getState:function(){return{totalRecords:this.get("paginator")?this.get("paginator").get("totalRecords"):this._oRecordSet.getLength(),pagination:this.get("paginator")?this.get("paginator").getState():null,sortedBy:this.get("sortedBy"),selectedRows:this.getSelectedRows(),selectedCells:this.getSelectedCells()};},getContainerEl:function(){return this._elContainer;},getTableEl:function(){return this._elTable;},getTheadEl:function(){return this._elThead;},getTbodyEl:function(){return this._elTbody;},getMsgTbodyEl:function(){return this._elMsgTbody;},getMsgTdEl:function(){return this._elMsgTd;},getTrEl:function(K){if(K instanceof YAHOO.widget.Record){return document.getElementById(K.getId());}else{if(H.isNumber(K)){var J=this._elTbody.rows;return((K>-1)&&(K<J.length))?J[K]:null;}else{var I=(H.isString(K))?document.getElementById(K):K;if(I&&(I.ownerDocument==document)){if(I.nodeName.toLowerCase()!="tr"){I=C.getAncestorByTagName(I,"tr");}return I;}}}return null;},getFirstTrEl:function(){return this._elTbody.rows[0]||null;},getLastTrEl:function(){var I=this._elTbody.rows;if(I.length>0){return I[I.length-1]||null;}},getNextTrEl:function(K){var I=this.getTrIndex(K);if(I!==null){var J=this._elTbody.rows;if(I<J.length-1){return J[I+1];}}return null;},getPreviousTrEl:function(K){var I=this.getTrIndex(K);if(I!==null){var J=this._elTbody.rows;if(I>0){return J[I-1];}}return null;},getTdLinerEl:function(I){var J=this.getTdEl(I);return J.firstChild||null;},getTdEl:function(I){var N;var L=C.get(I);if(L&&(L.ownerDocument==document)){if(L.nodeName.toLowerCase()!="td"){N=C.getAncestorByTagName(L,"td");}else{N=L;}if(N&&((N.parentNode.parentNode==this._elTbody)||(N.parentNode.parentNode===null))){return N;}}else{if(I){var M,K;if(H.isString(I.columnKey)&&H.isString(I.recordId)){M=this.getRecord(I.recordId);var O=this.getColumn(I.columnKey);if(O){K=O.getKeyIndex();}}if(I.record&&I.column&&I.column.getKeyIndex){M=I.record;K=I.column.getKeyIndex();}var J=this.getTrEl(M);if((K!==null)&&J&&J.cells&&J.cells.length>0){return J.cells[K]||null;}}}return null;
++},getFirstTdEl:function(J){var I=this.getTrEl(J)||this.getFirstTrEl();if(I&&(I.cells.length>0)){return I.cells[0];}return null;},getLastTdEl:function(J){var I=this.getTrEl(J)||this.getLastTrEl();if(I&&(I.cells.length>0)){return I.cells[I.cells.length-1];}return null;},getNextTdEl:function(I){var M=this.getTdEl(I);if(M){var K=M.cellIndex;var J=this.getTrEl(M);if(K<J.cells.length-1){return J.cells[K+1];}else{var L=this.getNextTrEl(J);if(L){return L.cells[0];}}}return null;},getPreviousTdEl:function(I){var M=this.getTdEl(I);if(M){var K=M.cellIndex;var J=this.getTrEl(M);if(K>0){return J.cells[K-1];}else{var L=this.getPreviousTrEl(J);if(L){return this.getLastTdEl(L);}}}return null;},getAboveTdEl:function(I){var K=this.getTdEl(I);if(K){var J=this.getPreviousTrEl(K);if(J){return J.cells[K.cellIndex];}}return null;},getBelowTdEl:function(I){var K=this.getTdEl(I);if(K){var J=this.getNextTrEl(K);if(J){return J.cells[K.cellIndex];}}return null;},getThLinerEl:function(J){var I=this.getColumn(J);return(I)?I.getThLinerEl():null;},getThEl:function(K){var L;if(K instanceof YAHOO.widget.Column){var J=K;L=J.getThEl();if(L){return L;}}else{var I=C.get(K);if(I&&(I.ownerDocument==document)){if(I.nodeName.toLowerCase()!="th"){L=C.getAncestorByTagName(I,"th");}else{L=I;}return L;}}return null;},getTrIndex:function(M){var L;if(M instanceof YAHOO.widget.Record){L=this._oRecordSet.getRecordIndex(M);if(L===null){return null;}}else{if(H.isNumber(M)){L=M;}}if(H.isNumber(L)){if((L>-1)&&(L<this._oRecordSet.getLength())){var K=this.get("paginator");if(K){var J=K.getPageRecords();if(J&&L>=J[0]&&L<=J[1]){return L-J[0];}else{return null;}}else{return L;}}else{return null;}}else{var I=this.getTrEl(M);if(I&&(I.ownerDocument==document)&&(I.parentNode==this._elTbody)){return I.sectionRowIndex;}}return null;},initializeTable:function(){this._bInit=true;this._oRecordSet.reset();var I=this.get("paginator");if(I){I.set("totalRecords",0);}this._unselectAllTrEls();this._unselectAllTdEls();this._aSelections=null;this._oAnchorRecord=null;this._oAnchorCell=null;this.set("sortedBy",null);},_runRenderChain:function(){this._oChainRender.run();},render:function(){this._oChainRender.stop();this.fireEvent("beforeRenderEvent");var O,M,L,P,I;var R=this.get("paginator");if(R){I=this._oRecordSet.getRecords(R.getStartIndex(),R.getRowsPerPage());}else{I=this._oRecordSet.getRecords();}var J=this._elTbody,N=this.get("renderLoopSize"),Q=I.length;if(Q>0){J.style.display="none";while(J.lastChild){J.removeChild(J.lastChild);}J.style.display="";this._oChainRender.add({method:function(U){if((this instanceof D)&&this._sId){var T=U.nCurrentRecord,W=((U.nCurrentRecord+U.nLoopLength)>Q)?Q:(U.nCurrentRecord+U.nLoopLength),S,V;J.style.display="none";for(;T<W;T++){S=C.get(I[T].getId());S=S||this._addTrEl(I[T]);V=J.childNodes[T]||null;J.insertBefore(S,V);}J.style.display="";U.nCurrentRecord=T;}},scope:this,iterations:(N>0)?Math.ceil(Q/N):1,argument:{nCurrentRecord:0,nLoopLength:(N>0)?N:Q},timeout:(N>0)?0:-1});this._oChainRender.add({method:function(S){if((this instanceof D)&&this._sId){while(J.rows.length>Q){J.removeChild(J.lastChild);}this._setFirstRow();this._setLastRow();this._setRowStripes();this._setSelections();}},scope:this,timeout:(N>0)?0:-1});}else{var K=J.rows.length;if(K>0){this._oChainRender.add({method:function(T){if((this instanceof D)&&this._sId){var S=T.nCurrent,V=T.nLoopLength,U=(S-V<0)?-1:S-V;J.style.display="none";for(;S>U;S--){J.deleteRow(-1);}J.style.display="";T.nCurrent=S;}},scope:this,iterations:(N>0)?Math.ceil(K/N):1,argument:{nCurrent:K,nLoopLength:(N>0)?N:K},timeout:(N>0)?0:-1});}}this._runRenderChain();},disable:function(){var I=this._elTable;var J=this._elMask;J.style.width=I.offsetWidth+"px";J.style.height=I.offsetHeight+"px";J.style.display="";this.fireEvent("disableEvent");},undisable:function(){this._elMask.style.display="none";this.fireEvent("undisableEvent");},destroy:function(){var J=this.toString();this._oChainRender.stop();D._destroyColumnDragTargetEl();D._destroyColumnResizerProxyEl();this._destroyColumnHelpers();var L;for(var K=0,I=this._oColumnSet.flat.length;K<I;K++){L=this._oColumnSet.flat[K].editor;if(L&&L.destroy){L.destroy();this._oColumnSet.flat[K].editor=null;}}this._destroyPaginator();this._oRecordSet.unsubscribeAll();this.unsubscribeAll();G.removeListener(document,"click",this._onDocumentClick);this._destroyContainerEl(this._elContainer);for(var M in this){if(H.hasOwnProperty(this,M)){this[M]=null;}}D._nCurrentCount--;if(D._nCurrentCount<1){if(D._elDynStyleNode){document.getElementsByTagName("head")[0].removeChild(D._elDynStyleNode);D._elDynStyleNode=null;}}},showTableMessage:function(J,I){var K=this._elMsgTd;if(H.isString(J)){K.firstChild.innerHTML=J;}if(H.isString(I)){K.className=I;}this._elMsgTbody.style.display="";this.fireEvent("tableMsgShowEvent",{html:J,className:I});},hideTableMessage:function(){if(this._elMsgTbody.style.display!="none"){this._elMsgTbody.style.display="none";this._elMsgTbody.parentNode.style.width="";this.fireEvent("tableMsgHideEvent");}},focus:function(){this.focusTbodyEl();},focusTheadEl:function(){this._focusEl(this._elThead);},focusTbodyEl:function(){this._focusEl(this._elTbody);},onShow:function(){this.validateColumnWidths();for(var L=this._oColumnSet.keys,K=0,I=L.length,J;K<I;K++){J=L[K];if(J._ddResizer){J._ddResizer.resetResizerEl();}}},getRecordIndex:function(L){var K;if(!H.isNumber(L)){if(L instanceof YAHOO.widget.Record){return this._oRecordSet.getRecordIndex(L);}else{var J=this.getTrEl(L);if(J){K=J.sectionRowIndex;}}}else{K=L;}if(H.isNumber(K)){var I=this.get("paginator");if(I){return I.get("recordOffset")+K;}else{return K;}}return null;},getRecord:function(K){var J=this._oRecordSet.getRecord(K);if(!J){var I=this.getTrEl(K);if(I){J=this._oRecordSet.getRecord(I.id);}}if(J instanceof YAHOO.widget.Record){return this._oRecordSet.getRecord(J);}else{return null;}},getColumn:function(L){var N=this._oColumnSet.getColumn(L);if(!N){var M=this.getTdEl(L);if(M){N=this._oColumnSet.getColumn(M.cellIndex);
++}else{M=this.getThEl(L);if(M){var J=this._oColumnSet.flat;for(var K=0,I=J.length;K<I;K++){if(J[K].getThEl().id===M.id){N=J[K];}}}}}if(!N){}return N;},getColumnById:function(I){return this._oColumnSet.getColumnById(I);},getColumnSortDir:function(K,L){if(K.sortOptions&&K.sortOptions.defaultOrder){if(K.sortOptions.defaultOrder=="asc"){K.sortOptions.defaultDir=D.CLASS_ASC;}else{if(K.sortOptions.defaultOrder=="desc"){K.sortOptions.defaultDir=D.CLASS_DESC;}}}var J=(K.sortOptions&&K.sortOptions.defaultDir)?K.sortOptions.defaultDir:D.CLASS_ASC;var I=false;L=L||this.get("sortedBy");if(L&&(L.key===K.key)){I=true;if(L.dir){J=(L.dir===D.CLASS_ASC)?D.CLASS_DESC:D.CLASS_ASC;}else{J=(J===D.CLASS_ASC)?D.CLASS_DESC:D.CLASS_ASC;}}return J;},doBeforeSortColumn:function(J,I){this.showTableMessage(this.get("MSG_LOADING"),D.CLASS_LOADING);return true;},sortColumn:function(N,K){if(N&&(N instanceof YAHOO.widget.Column)){if(!N.sortable){C.addClass(this.getThEl(N),D.CLASS_SORTABLE);}if(K&&(K!==D.CLASS_ASC)&&(K!==D.CLASS_DESC)){K=null;}var O=K||this.getColumnSortDir(N);var M=this.get("sortedBy")||{};var U=(M.key===N.key)?true:false;var Q=this.doBeforeSortColumn(N,O);if(Q){if(this.get("dynamicData")){var T=this.getState();if(T.pagination){T.pagination.recordOffset=0;}T.sortedBy={key:N.key,dir:O};var L=this.get("generateRequest")(T,this);this.unselectAllRows();this.unselectAllCells();var S={success:this.onDataReturnSetRows,failure:this.onDataReturnSetRows,argument:T,scope:this};this._oDataSource.sendRequest(L,S);}else{var I=(N.sortOptions&&H.isFunction(N.sortOptions.sortFunction))?N.sortOptions.sortFunction:null;if(!U||K||I){var J=YAHOO.util.Sort.compare;I=I||function(W,V,Z,Y){var X=J(W.getData(Y),V.getData(Y),Z);if(X===0){return J(W.getCount(),V.getCount(),Z);}else{return X;}};var R=(N.sortOptions&&N.sortOptions.field)?N.sortOptions.field:N.field;this._oRecordSet.sortRecords(I,((O==D.CLASS_DESC)?true:false),R);}else{this._oRecordSet.reverseRecords();}var P=this.get("paginator");if(P){P.setPage(1,true);}this.render();this.set("sortedBy",{key:N.key,dir:O,column:N});}this.fireEvent("columnSortEvent",{column:N,dir:O});return;}}},setColumnWidth:function(J,I){if(!(J instanceof YAHOO.widget.Column)){J=this.getColumn(J);}if(J){if(H.isNumber(I)){I=(I>J.minWidth)?I:J.minWidth;J.width=I;this._setColumnWidth(J,I+"px");this.fireEvent("columnSetWidthEvent",{column:J,width:I});}else{if(I===null){J.width=I;this._setColumnWidth(J,"auto");this.validateColumnWidths(J);this.fireEvent("columnUnsetWidthEvent",{column:J});}}this._clearTrTemplateEl();}else{}},_setColumnWidth:function(J,I,K){if(J&&(J.getKeyIndex()!==null)){K=K||(((I==="")||(I==="auto"))?"visible":"hidden");if(!D._bDynStylesFallback){this._setColumnWidthDynStyles(J,I,K);}else{this._setColumnWidthDynFunction(J,I,K);}}else{}},_setColumnWidthDynStyles:function(M,L,N){var J=D._elDynStyleNode,K;if(!J){J=document.createElement("style");J.type="text/css";J=document.getElementsByTagName("head").item(0).appendChild(J);D._elDynStyleNode=J;}if(J){var I="."+this.getId()+"-col-"+M.getSanitizedKey()+" ."+D.CLASS_LINER;if(this._elTbody){this._elTbody.style.display="none";}K=D._oDynStyles[I];if(!K){if(J.styleSheet&&J.styleSheet.addRule){J.styleSheet.addRule(I,"overflow:"+N);J.styleSheet.addRule(I,"width:"+L);K=J.styleSheet.rules[J.styleSheet.rules.length-1];D._oDynStyles[I]=K;}else{if(J.sheet&&J.sheet.insertRule){J.sheet.insertRule(I+" {overflow:"+N+";width:"+L+";}",J.sheet.cssRules.length);K=J.sheet.cssRules[J.sheet.cssRules.length-1];D._oDynStyles[I]=K;}}}else{K.style.overflow=N;K.style.width=L;}if(this._elTbody){this._elTbody.style.display="";}}if(!K){D._bDynStylesFallback=true;this._setColumnWidthDynFunction(M,L);}},_setColumnWidthDynFunction:function(O,J,P){if(J=="auto"){J="";}var I=this._elTbody?this._elTbody.rows.length:0;if(!this._aDynFunctions[I]){var N,M,L;var Q=["var colIdx=oColumn.getKeyIndex();","oColumn.getThLinerEl().style.overflow="];for(N=I-1,M=2;N>=0;--N){Q[M++]="this._elTbody.rows[";Q[M++]=N;Q[M++]="].cells[colIdx].firstChild.style.overflow=";}Q[M]="sOverflow;";Q[M+1]="oColumn.getThLinerEl().style.width=";for(N=I-1,L=M+2;N>=0;--N){Q[L++]="this._elTbody.rows[";Q[L++]=N;Q[L++]="].cells[colIdx].firstChild.style.width=";}Q[L]="sWidth;";this._aDynFunctions[I]=new Function("oColumn","sWidth","sOverflow",Q.join(""));}var K=this._aDynFunctions[I];if(K){K.call(this,O,J,P);}},validateColumnWidths:function(N){var K=this._elColgroup;var P=K.cloneNode(true);var O=false;var M=this._oColumnSet.keys;var J;if(N&&!N.hidden&&!N.width&&(N.getKeyIndex()!==null)){J=N.getThLinerEl();if((N.minWidth>0)&&(J.offsetWidth<N.minWidth)){P.childNodes[N.getKeyIndex()].style.width=N.minWidth+(parseInt(C.getStyle(J,"paddingLeft"),10)|0)+(parseInt(C.getStyle(J,"paddingRight"),10)|0)+"px";O=true;}else{if((N.maxAutoWidth>0)&&(J.offsetWidth>N.maxAutoWidth)){this._setColumnWidth(N,N.maxAutoWidth+"px","hidden");}}}else{for(var L=0,I=M.length;L<I;L++){N=M[L];if(!N.hidden&&!N.width){J=N.getThLinerEl();if((N.minWidth>0)&&(J.offsetWidth<N.minWidth)){P.childNodes[L].style.width=N.minWidth+(parseInt(C.getStyle(J,"paddingLeft"),10)|0)+(parseInt(C.getStyle(J,"paddingRight"),10)|0)+"px";O=true;}else{if((N.maxAutoWidth>0)&&(J.offsetWidth>N.maxAutoWidth)){this._setColumnWidth(N,N.maxAutoWidth+"px","hidden");}}}}}if(O){K.parentNode.replaceChild(P,K);this._elColgroup=P;}},_clearMinWidth:function(I){if(I.getKeyIndex()!==null){this._elColgroup.childNodes[I.getKeyIndex()].style.width="";}},_restoreMinWidth:function(I){if(I.minWidth&&(I.getKeyIndex()!==null)){this._elColgroup.childNodes[I.getKeyIndex()].style.width=I.minWidth+"px";}},hideColumn:function(N){if(!(N instanceof YAHOO.widget.Column)){N=this.getColumn(N);}if(N&&!N.hidden&&N.getTreeIndex()!==null){var O=this.getTbodyEl().rows;var I=O.length;var M=this._oColumnSet.getDescendants(N);for(var L=0;L<M.length;L++){var K=M[L];K.hidden=true;C.addClass(K.getThEl(),D.CLASS_HIDDEN);var P=K.getKeyIndex();if(P!==null){this._clearMinWidth(N);for(var J=0;J<I;J++){C.addClass(O[J].cells[P],D.CLASS_HIDDEN);
++}}this.fireEvent("columnHideEvent",{column:K});}this._repaintOpera();this._clearTrTemplateEl();}else{}},showColumn:function(N){if(!(N instanceof YAHOO.widget.Column)){N=this.getColumn(N);}if(N&&N.hidden&&(N.getTreeIndex()!==null)){var O=this.getTbodyEl().rows;var I=O.length;var M=this._oColumnSet.getDescendants(N);for(var L=0;L<M.length;L++){var K=M[L];K.hidden=false;C.removeClass(K.getThEl(),D.CLASS_HIDDEN);var P=K.getKeyIndex();if(P!==null){this._restoreMinWidth(N);for(var J=0;J<I;J++){C.removeClass(O[J].cells[P],D.CLASS_HIDDEN);}}this.fireEvent("columnShowEvent",{column:K});}this._clearTrTemplateEl();}else{}},removeColumn:function(O){if(!(O instanceof YAHOO.widget.Column)){O=this.getColumn(O);}if(O){var L=O.getTreeIndex();if(L!==null){var N,Q,P=O.getKeyIndex();if(P===null){var T=[];var I=this._oColumnSet.getDescendants(O);for(N=0,Q=I.length;N<Q;N++){var R=I[N].getKeyIndex();if(R!==null){T[T.length]=R;}}if(T.length>0){P=T;}}else{P=[P];}if(P!==null){P.sort(function(V,U){return YAHOO.util.Sort.compare(V,U);});this._destroyTheadEl();var J=this._oColumnSet.getDefinitions();O=J.splice(L,1)[0];this._initColumnSet(J);this._initTheadEl();for(N=P.length-1;N>-1;N--){this._removeColgroupColEl(P[N]);}var S=this._elTbody.rows;if(S.length>0){var M=this.get("renderLoopSize"),K=S.length;this._oChainRender.add({method:function(X){if((this instanceof D)&&this._sId){var W=X.nCurrentRow,U=M>0?Math.min(W+M,S.length):S.length,Y=X.aIndexes,V;for(;W<U;++W){for(V=Y.length-1;V>-1;V--){S[W].removeChild(S[W].childNodes[Y[V]]);}}X.nCurrentRow=W;}},iterations:(M>0)?Math.ceil(K/M):1,argument:{nCurrentRow:0,aIndexes:P},scope:this,timeout:(M>0)?0:-1});this._runRenderChain();}this.fireEvent("columnRemoveEvent",{column:O});return O;}}}},insertColumn:function(Q,R){if(Q instanceof YAHOO.widget.Column){Q=Q.getDefinition();}else{if(Q.constructor!==Object){return;}}var W=this._oColumnSet;if(!H.isValue(R)||!H.isNumber(R)){R=W.tree[0].length;}this._destroyTheadEl();var Y=this._oColumnSet.getDefinitions();Y.splice(R,0,Q);this._initColumnSet(Y);this._initTheadEl();W=this._oColumnSet;var M=W.tree[0][R];var O,S,V=[];var K=W.getDescendants(M);for(O=0,S=K.length;O<S;O++){var T=K[O].getKeyIndex();if(T!==null){V[V.length]=T;}}if(V.length>0){var X=V.sort(function(c,Z){return YAHOO.util.Sort.compare(c,Z);})[0];for(O=V.length-1;O>-1;O--){this._insertColgroupColEl(V[O]);}var U=this._elTbody.rows;if(U.length>0){var N=this.get("renderLoopSize"),L=U.length;var J=[],P;for(O=0,S=V.length;O<S;O++){var I=V[O];P=this._getTrTemplateEl().childNodes[O].cloneNode(true);P=this._formatTdEl(this._oColumnSet.keys[I],P,I,(I===this._oColumnSet.keys.length-1));J[I]=P;}this._oChainRender.add({method:function(c){if((this instanceof D)&&this._sId){var b=c.nCurrentRow,a,e=c.descKeyIndexes,Z=N>0?Math.min(b+N,U.length):U.length,d;for(;b<Z;++b){d=U[b].childNodes[X]||null;for(a=e.length-1;a>-1;a--){U[b].insertBefore(c.aTdTemplates[e[a]].cloneNode(true),d);}}c.nCurrentRow=b;}},iterations:(N>0)?Math.ceil(L/N):1,argument:{nCurrentRow:0,aTdTemplates:J,descKeyIndexes:V},scope:this,timeout:(N>0)?0:-1});this._runRenderChain();}this.fireEvent("columnInsertEvent",{column:Q,index:R});return M;}},reorderColumn:function(P,Q){if(!(P instanceof YAHOO.widget.Column)){P=this.getColumn(P);}if(P&&YAHOO.lang.isNumber(Q)){var Y=P.getTreeIndex();if((Y!==null)&&(Y!==Q)){var O,R,K=P.getKeyIndex(),J,U=[],S;if(K===null){J=this._oColumnSet.getDescendants(P);for(O=0,R=J.length;O<R;O++){S=J[O].getKeyIndex();if(S!==null){U[U.length]=S;}}if(U.length>0){K=U;}}else{K=[K];}if(K!==null){K.sort(function(c,Z){return YAHOO.util.Sort.compare(c,Z);});this._destroyTheadEl();var V=this._oColumnSet.getDefinitions();var I=V.splice(Y,1)[0];V.splice(Q,0,I);this._initColumnSet(V);this._initTheadEl();var M=this._oColumnSet.tree[0][Q];var X=M.getKeyIndex();if(X===null){U=[];J=this._oColumnSet.getDescendants(M);for(O=0,R=J.length;O<R;O++){S=J[O].getKeyIndex();if(S!==null){U[U.length]=S;}}if(U.length>0){X=U;}}else{X=[X];}var W=X.sort(function(c,Z){return YAHOO.util.Sort.compare(c,Z);})[0];this._reorderColgroupColEl(K,W);var T=this._elTbody.rows;if(T.length>0){var N=this.get("renderLoopSize"),L=T.length;this._oChainRender.add({method:function(c){if((this instanceof D)&&this._sId){var b=c.nCurrentRow,a,e,d,Z=N>0?Math.min(b+N,T.length):T.length,g=c.aIndexes,f;for(;b<Z;++b){e=[];f=T[b];for(a=g.length-1;a>-1;a--){e.push(f.removeChild(f.childNodes[g[a]]));}d=f.childNodes[W]||null;for(a=e.length-1;a>-1;a--){f.insertBefore(e[a],d);}}c.nCurrentRow=b;}},iterations:(N>0)?Math.ceil(L/N):1,argument:{nCurrentRow:0,aIndexes:K},scope:this,timeout:(N>0)?0:-1});this._runRenderChain();}this.fireEvent("columnReorderEvent",{column:M});return M;}}}},selectColumn:function(K){K=this.getColumn(K);if(K&&!K.selected){if(K.getKeyIndex()!==null){K.selected=true;var L=K.getThEl();C.addClass(L,D.CLASS_SELECTED);var J=this.getTbodyEl().rows;var I=this._oChainRender;I.add({method:function(M){if((this instanceof D)&&this._sId&&J[M.rowIndex]&&J[M.rowIndex].cells[M.cellIndex]){C.addClass(J[M.rowIndex].cells[M.cellIndex],D.CLASS_SELECTED);}M.rowIndex++;},scope:this,iterations:J.length,argument:{rowIndex:0,cellIndex:K.getKeyIndex()}});this._clearTrTemplateEl();this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnSelectEvent",{column:K});}else{}}},unselectColumn:function(K){K=this.getColumn(K);if(K&&K.selected){if(K.getKeyIndex()!==null){K.selected=false;var L=K.getThEl();C.removeClass(L,D.CLASS_SELECTED);var J=this.getTbodyEl().rows;var I=this._oChainRender;I.add({method:function(M){if((this instanceof D)&&this._sId&&J[M.rowIndex]&&J[M.rowIndex].cells[M.cellIndex]){C.removeClass(J[M.rowIndex].cells[M.cellIndex],D.CLASS_SELECTED);}M.rowIndex++;},scope:this,iterations:J.length,argument:{rowIndex:0,cellIndex:K.getKeyIndex()}});this._clearTrTemplateEl();this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnUnselectEvent",{column:K});}else{}}},getSelectedColumns:function(M){var J=[];
++var K=this._oColumnSet.keys;for(var L=0,I=K.length;L<I;L++){if(K[L].selected){J[J.length]=K[L];}}return J;},highlightColumn:function(I){var L=this.getColumn(I);if(L&&(L.getKeyIndex()!==null)){var M=L.getThEl();C.addClass(M,D.CLASS_HIGHLIGHTED);var K=this.getTbodyEl().rows;var J=this._oChainRender;J.add({method:function(N){if((this instanceof D)&&this._sId&&K[N.rowIndex]&&K[N.rowIndex].cells[N.cellIndex]){C.addClass(K[N.rowIndex].cells[N.cellIndex],D.CLASS_HIGHLIGHTED);}N.rowIndex++;},scope:this,iterations:K.length,argument:{rowIndex:0,cellIndex:L.getKeyIndex()},timeout:-1});this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnHighlightEvent",{column:L});}else{}},unhighlightColumn:function(I){var L=this.getColumn(I);if(L&&(L.getKeyIndex()!==null)){var M=L.getThEl();C.removeClass(M,D.CLASS_HIGHLIGHTED);var K=this.getTbodyEl().rows;var J=this._oChainRender;J.add({method:function(N){if((this instanceof D)&&this._sId&&K[N.rowIndex]&&K[N.rowIndex].cells[N.cellIndex]){C.removeClass(K[N.rowIndex].cells[N.cellIndex],D.CLASS_HIGHLIGHTED);}N.rowIndex++;},scope:this,iterations:K.length,argument:{rowIndex:0,cellIndex:L.getKeyIndex()},timeout:-1});this._elTbody.style.display="none";this._runRenderChain();this._elTbody.style.display="";this.fireEvent("columnUnhighlightEvent",{column:L});}else{}},addRow:function(O,K){if(H.isNumber(K)&&(K<0||K>this._oRecordSet.getLength())){return;}if(O&&H.isObject(O)){var M=this._oRecordSet.addRecord(O,K);if(M){var I;var J=this.get("paginator");if(J){var N=J.get("totalRecords");if(N!==E.Paginator.VALUE_UNLIMITED){J.set("totalRecords",N+1);}I=this.getRecordIndex(M);var L=(J.getPageRecords())[1];if(I<=L){this.render();}this.fireEvent("rowAddEvent",{record:M});return;}else{I=this.getTrIndex(M);if(H.isNumber(I)){this._oChainRender.add({method:function(R){if((this instanceof D)&&this._sId){var S=R.record;var P=R.recIndex;var T=this._addTrEl(S);if(T){var Q=(this._elTbody.rows[P])?this._elTbody.rows[P]:null;this._elTbody.insertBefore(T,Q);if(P===0){this._setFirstRow();}if(Q===null){this._setLastRow();}this._setRowStripes();this.hideTableMessage();this.fireEvent("rowAddEvent",{record:S});}}},argument:{record:M,recIndex:I},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();return;}}}}},addRows:function(K,N){if(H.isNumber(N)&&(N<0||N>this._oRecordSet.getLength())){return;}if(H.isArray(K)){var O=this._oRecordSet.addRecords(K,N);if(O){var S=this.getRecordIndex(O[0]);var R=this.get("paginator");if(R){var P=R.get("totalRecords");if(P!==E.Paginator.VALUE_UNLIMITED){R.set("totalRecords",P+O.length);}var Q=(R.getPageRecords())[1];if(S<=Q){this.render();}this.fireEvent("rowsAddEvent",{records:O});return;}else{var M=this.get("renderLoopSize");var J=S+K.length;var I=(J-S);var L=(S>=this._elTbody.rows.length);this._oChainRender.add({method:function(X){if((this instanceof D)&&this._sId){var Y=X.aRecords,W=X.nCurrentRow,V=X.nCurrentRecord,T=M>0?Math.min(W+M,J):J,Z=document.createDocumentFragment(),U=(this._elTbody.rows[W])?this._elTbody.rows[W]:null;for(;W<T;W++,V++){Z.appendChild(this._addTrEl(Y[V]));}this._elTbody.insertBefore(Z,U);X.nCurrentRow=W;X.nCurrentRecord=V;}},iterations:(M>0)?Math.ceil(J/M):1,argument:{nCurrentRow:S,nCurrentRecord:0,aRecords:O},scope:this,timeout:(M>0)?0:-1});this._oChainRender.add({method:function(U){var T=U.recIndex;if(T===0){this._setFirstRow();}if(U.isLast){this._setLastRow();}this._setRowStripes();this.fireEvent("rowsAddEvent",{records:O});},argument:{recIndex:S,isLast:L},scope:this,timeout:-1});this._runRenderChain();this.hideTableMessage();return;}}}},updateRow:function(T,J){var Q=T;if(!H.isNumber(Q)){Q=this.getRecordIndex(T);}if(H.isNumber(Q)&&(Q>=0)){var R=this._oRecordSet,P=R.getRecord(Q);if(P){var N=this._oRecordSet.setRecord(J,Q),I=this.getTrEl(P),O=P?P.getData():null;if(N){var S=this._aSelections||[],M=0,K=P.getId(),L=N.getId();for(;M<S.length;M++){if((S[M]===K)){S[M]=L;}else{if(S[M].recordId===K){S[M].recordId=L;}}}this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){var V=this.get("paginator");if(V){var U=(V.getPageRecords())[0],W=(V.getPageRecords())[1];if((Q>=U)||(Q<=W)){this.render();}}else{if(I){this._updateTrEl(I,N);}else{this.getTbodyEl().appendChild(this._addTrEl(N));}}this.fireEvent("rowUpdateEvent",{record:N,oldData:O});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();return;}}}return;},updateRows:function(V,K){if(H.isArray(K)){var O=V,J=this._oRecordSet;if(!H.isNumber(V)){O=this.getRecordIndex(V);}if(H.isNumber(O)&&(O>=0)&&(O<J.getLength())){var Z=O+K.length,W=J.getRecords(O,K.length),b=J.setRecords(K,O);if(b){var Q=this._aSelections||[],Y=0,X,T,U;for(;Y<Q.length;Y++){for(X=0;X<W.length;X++){U=W[X].getId();if((Q[Y]===U)){Q[Y]=b[X].getId();}else{if(Q[Y].recordId===U){Q[Y].recordId=b[X].getId();}}}}var a=this.get("paginator");if(a){var P=(a.getPageRecords())[0],M=(a.getPageRecords())[1];if((O>=P)||(Z<=M)){this.render();}this.fireEvent("rowsAddEvent",{newRecords:b,oldRecords:W});return;}else{var I=this.get("renderLoopSize"),R=K.length,L=this._elTbody.rows.length,S=(Z>=L),N=(Z>L);this._oChainRender.add({method:function(f){if((this instanceof D)&&this._sId){var g=f.aRecords,e=f.nCurrentRow,d=f.nDataPointer,c=I>0?Math.min(e+I,O+g.length):O+g.length;for(;e<c;e++,d++){if(N&&(e>=L)){this._elTbody.appendChild(this._addTrEl(g[d]));}else{this._updateTrEl(this._elTbody.rows[e],g[d]);}}f.nCurrentRow=e;f.nDataPointer=d;}},iterations:(I>0)?Math.ceil(R/I):1,argument:{nCurrentRow:O,aRecords:b,nDataPointer:0,isAdding:N},scope:this,timeout:(I>0)?0:-1});this._oChainRender.add({method:function(d){var c=d.recIndex;if(c===0){this._setFirstRow();}if(d.isLast){this._setLastRow();}this._setRowStripes();this.fireEvent("rowsAddEvent",{newRecords:b,oldRecords:W});},argument:{recIndex:O,isLast:S},scope:this,timeout:-1});this._runRenderChain();this.hideTableMessage();return;}}}}},deleteRow:function(R){var J=(H.isNumber(R))?R:this.getRecordIndex(R);
++if(H.isNumber(J)){var S=this.getRecord(J);if(S){var L=this.getTrIndex(J);var O=S.getId();var Q=this._aSelections||[];for(var M=Q.length-1;M>-1;M--){if((H.isString(Q[M])&&(Q[M]===O))||(H.isObject(Q[M])&&(Q[M].recordId===O))){Q.splice(M,1);}}var K=this._oRecordSet.deleteRecord(J);if(K){var P=this.get("paginator");if(P){var N=P.get("totalRecords"),I=P.getPageRecords();if(N!==E.Paginator.VALUE_UNLIMITED){P.set("totalRecords",N-1);}if(!I||J<=I[1]){this.render();}this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){this.fireEvent("rowDeleteEvent",{recordIndex:J,oldData:K,trElIndex:L});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();}else{if(H.isNumber(L)){this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){var T=(J===this._oRecordSet.getLength());this._deleteTrEl(L);if(this._elTbody.rows.length>0){if(L===0){this._setFirstRow();}if(T){this._setLastRow();}if(L!=this._elTbody.rows.length){this._setRowStripes(L);}}this.fireEvent("rowDeleteEvent",{recordIndex:J,oldData:K,trElIndex:L});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();return;}}}}}return null;},deleteRows:function(X,R){var K=(H.isNumber(X))?X:this.getRecordIndex(X);if(H.isNumber(K)){var Y=this.getRecord(K);if(Y){var L=this.getTrIndex(K);var T=Y.getId();var W=this._aSelections||[];for(var P=W.length-1;P>-1;P--){if((H.isString(W[P])&&(W[P]===T))||(H.isObject(W[P])&&(W[P].recordId===T))){W.splice(P,1);}}var M=K;var V=K;if(R&&H.isNumber(R)){M=(R>0)?K+R-1:K;V=(R>0)?K:K+R+1;R=(R>0)?R:R*-1;if(V<0){V=0;R=M-V+1;}}else{R=1;}var O=this._oRecordSet.deleteRecords(V,R);if(O){var U=this.get("paginator"),Q=this.get("renderLoopSize");if(U){var S=U.get("totalRecords"),J=U.getPageRecords();if(S!==E.Paginator.VALUE_UNLIMITED){U.set("totalRecords",S-O.length);}if(!J||V<=J[1]){this.render();}this._oChainRender.add({method:function(Z){if((this instanceof D)&&this._sId){this.fireEvent("rowsDeleteEvent",{recordIndex:V,oldData:O,count:R});}},scope:this,timeout:(Q>0)?0:-1});this._runRenderChain();return;}else{if(H.isNumber(L)){var N=V;var I=R;this._oChainRender.add({method:function(b){if((this instanceof D)&&this._sId){var a=b.nCurrentRow,Z=(Q>0)?(Math.max(a-Q,N)-1):N-1;for(;a>Z;--a){this._deleteTrEl(a);}b.nCurrentRow=a;}},iterations:(Q>0)?Math.ceil(R/Q):1,argument:{nCurrentRow:M},scope:this,timeout:(Q>0)?0:-1});this._oChainRender.add({method:function(){if(this._elTbody.rows.length>0){this._setFirstRow();this._setLastRow();this._setRowStripes();}this.fireEvent("rowsDeleteEvent",{recordIndex:V,oldData:O,count:R});},scope:this,timeout:-1});this._runRenderChain();return;}}}}}return null;},formatCell:function(J,L,M){if(!L){L=this.getRecord(J);}if(!M){M=this.getColumn(J.parentNode.cellIndex);}if(L&&M){var I=M.field;var N=L.getData(I);var K=typeof M.formatter==="function"?M.formatter:D.Formatter[M.formatter+""]||D.Formatter.defaultFormatter;if(K){K.call(this,J,L,M,N);}else{J.innerHTML=N;}this.fireEvent("cellFormatEvent",{record:L,column:M,key:M.key,el:J});}else{}},updateCell:function(J,L,N){L=(L instanceof YAHOO.widget.Column)?L:this.getColumn(L);if(L&&L.getField()&&(J instanceof YAHOO.widget.Record)){var K=L.getField(),M=J.getData(K);this._oRecordSet.updateRecordValue(J,K,N);var I=this.getTdEl({record:J,column:L});if(I){this._oChainRender.add({method:function(){if((this instanceof D)&&this._sId){this.formatCell(I.firstChild);this.fireEvent("cellUpdateEvent",{record:J,column:L,oldData:M});}},scope:this,timeout:(this.get("renderLoopSize")>0)?0:-1});this._runRenderChain();}else{this.fireEvent("cellUpdateEvent",{record:J,column:L,oldData:M});}}},_updatePaginator:function(J){var I=this.get("paginator");if(I&&J!==I){I.unsubscribe("changeRequest",this.onPaginatorChangeRequest,this,true);}if(J){J.subscribe("changeRequest",this.onPaginatorChangeRequest,this,true);}},_handlePaginatorChange:function(K){if(K.prevValue===K.newValue){return;}var M=K.newValue,L=K.prevValue,J=this._defaultPaginatorContainers();if(L){if(L.getContainerNodes()[0]==J[0]){L.set("containers",[]);}L.destroy();if(J[0]){if(M&&!M.getContainerNodes().length){M.set("containers",J);}else{for(var I=J.length-1;I>=0;--I){if(J[I]){J[I].parentNode.removeChild(J[I]);}}}}}if(!this._bInit){this.render();}if(M){this.renderPaginator();}},_defaultPaginatorContainers:function(L){var J=this._sId+"-paginator0",K=this._sId+"-paginator1",I=C.get(J),M=C.get(K);if(L&&(!I||!M)){if(!I){I=document.createElement("div");I.id=J;C.addClass(I,D.CLASS_PAGINATOR);this._elContainer.insertBefore(I,this._elContainer.firstChild);}if(!M){M=document.createElement("div");M.id=K;C.addClass(M,D.CLASS_PAGINATOR);this._elContainer.appendChild(M);}}return[I,M];},_destroyPaginator:function(){var I=this.get("paginator");if(I){I.destroy();}},renderPaginator:function(){var I=this.get("paginator");if(!I){return;}if(!I.getContainerNodes().length){I.set("containers",this._defaultPaginatorContainers(true));}I.render();},doBeforePaginatorChange:function(I){this.showTableMessage(this.get("MSG_LOADING"),D.CLASS_LOADING);return true;},onPaginatorChangeRequest:function(L){var J=this.doBeforePaginatorChange(L);if(J){if(this.get("dynamicData")){var I=this.getState();I.pagination=L;var K=this.get("generateRequest")(I,this);this.unselectAllRows();this.unselectAllCells();var M={success:this.onDataReturnSetRows,failure:this.onDataReturnSetRows,argument:I,scope:this};this._oDataSource.sendRequest(K,M);}else{L.paginator.setStartIndex(L.recordOffset,true);L.paginator.setRowsPerPage(L.rowsPerPage,true);this.render();}}else{}},_elLastHighlightedTd:null,_aSelections:null,_oAnchorRecord:null,_oAnchorCell:null,_unselectAllTrEls:function(){var I=C.getElementsByClassName(D.CLASS_SELECTED,"tr",this._elTbody);C.removeClass(I,D.CLASS_SELECTED);},_getSelectionTrigger:function(){var L=this.get("selectionMode");var K={};var O,I,J,N,M;if((L=="cellblock")||(L=="cellrange")||(L=="singlecell")){O=this.getLastSelectedCell();if(!O){return null;}else{I=this.getRecord(O.recordId);
++J=this.getRecordIndex(I);N=this.getTrEl(I);M=this.getTrIndex(N);if(M===null){return null;}else{K.record=I;K.recordIndex=J;K.el=this.getTdEl(O);K.trIndex=M;K.column=this.getColumn(O.columnKey);K.colKeyIndex=K.column.getKeyIndex();K.cell=O;return K;}}}else{I=this.getLastSelectedRecord();if(!I){return null;}else{I=this.getRecord(I);J=this.getRecordIndex(I);N=this.getTrEl(I);M=this.getTrIndex(N);if(M===null){return null;}else{K.record=I;K.recordIndex=J;K.el=N;K.trIndex=M;return K;}}}},_getSelectionAnchor:function(K){var J=this.get("selectionMode");var L={};var M,O,I;if((J=="cellblock")||(J=="cellrange")||(J=="singlecell")){var N=this._oAnchorCell;if(!N){if(K){N=this._oAnchorCell=K.cell;}else{return null;}}M=this._oAnchorCell.record;O=this._oRecordSet.getRecordIndex(M);I=this.getTrIndex(M);if(I===null){if(O<this.getRecordIndex(this.getFirstTrEl())){I=0;}else{I=this.getRecordIndex(this.getLastTrEl());}}L.record=M;L.recordIndex=O;L.trIndex=I;L.column=this._oAnchorCell.column;L.colKeyIndex=L.column.getKeyIndex();L.cell=N;return L;}else{M=this._oAnchorRecord;if(!M){if(K){M=this._oAnchorRecord=K.record;}else{return null;}}O=this.getRecordIndex(M);I=this.getTrIndex(M);if(I===null){if(O<this.getRecordIndex(this.getFirstTrEl())){I=0;}else{I=this.getRecordIndex(this.getLastTrEl());}}L.record=M;L.recordIndex=O;L.trIndex=I;return L;}},_handleStandardSelectionByMouse:function(J){var I=J.target;var L=this.getTrEl(I);if(L){var O=J.event;var R=O.shiftKey;var N=O.ctrlKey||((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&O.metaKey);var Q=this.getRecord(L);var K=this._oRecordSet.getRecordIndex(Q);var P=this._getSelectionAnchor();var M;if(R&&N){if(P){if(this.isSelected(P.record)){if(P.recordIndex<K){for(M=P.recordIndex+1;M<=K;M++){if(!this.isSelected(M)){this.selectRow(M);}}}else{for(M=P.recordIndex-1;M>=K;M--){if(!this.isSelected(M)){this.selectRow(M);}}}}else{if(P.recordIndex<K){for(M=P.recordIndex+1;M<=K-1;M++){if(this.isSelected(M)){this.unselectRow(M);}}}else{for(M=K+1;M<=P.recordIndex-1;M++){if(this.isSelected(M)){this.unselectRow(M);}}}this.selectRow(Q);}}else{this._oAnchorRecord=Q;if(this.isSelected(Q)){this.unselectRow(Q);}else{this.selectRow(Q);}}}else{if(R){this.unselectAllRows();if(P){if(P.recordIndex<K){for(M=P.recordIndex;M<=K;M++){this.selectRow(M);}}else{for(M=P.recordIndex;M>=K;M--){this.selectRow(M);}}}else{this._oAnchorRecord=Q;this.selectRow(Q);}}else{if(N){this._oAnchorRecord=Q;if(this.isSelected(Q)){this.unselectRow(Q);}else{this.selectRow(Q);}}else{this._handleSingleSelectionByMouse(J);return;}}}}},_handleStandardSelectionByKey:function(M){var I=G.getCharCode(M);if((I==38)||(I==40)){var K=M.shiftKey;var J=this._getSelectionTrigger();if(!J){return null;}G.stopEvent(M);var L=this._getSelectionAnchor(J);if(K){if((I==40)&&(L.recordIndex<=J.trIndex)){this.selectRow(this.getNextTrEl(J.el));}else{if((I==38)&&(L.recordIndex>=J.trIndex)){this.selectRow(this.getPreviousTrEl(J.el));}else{this.unselectRow(J.el);}}}else{this._handleSingleSelectionByKey(M);}}},_handleSingleSelectionByMouse:function(K){var L=K.target;var J=this.getTrEl(L);if(J){var I=this.getRecord(J);this._oAnchorRecord=I;this.unselectAllRows();this.selectRow(I);}},_handleSingleSelectionByKey:function(L){var I=G.getCharCode(L);if((I==38)||(I==40)){var J=this._getSelectionTrigger();if(!J){return null;}G.stopEvent(L);var K;if(I==38){K=this.getPreviousTrEl(J.el);if(K===null){K=this.getFirstTrEl();}}else{if(I==40){K=this.getNextTrEl(J.el);if(K===null){K=this.getLastTrEl();}}}this.unselectAllRows();this.selectRow(K);this._oAnchorRecord=this.getRecord(K);}},_handleCellBlockSelectionByMouse:function(Y){var Z=Y.target;var J=this.getTdEl(Z);if(J){var X=Y.event;var O=X.shiftKey;var K=X.ctrlKey||((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&X.metaKey);var Q=this.getTrEl(J);var P=this.getTrIndex(Q);var T=this.getColumn(J);var U=T.getKeyIndex();var S=this.getRecord(Q);var b=this._oRecordSet.getRecordIndex(S);var N={record:S,column:T};var R=this._getSelectionAnchor();var M=this.getTbodyEl().rows;var L,I,a,W,V;if(O&&K){if(R){if(this.isSelected(R.cell)){if(R.recordIndex===b){if(R.colKeyIndex<U){for(W=R.colKeyIndex+1;W<=U;W++){this.selectCell(Q.cells[W]);}}else{if(U<R.colKeyIndex){for(W=U;W<R.colKeyIndex;W++){this.selectCell(Q.cells[W]);}}}}else{if(R.recordIndex<b){L=Math.min(R.colKeyIndex,U);I=Math.max(R.colKeyIndex,U);for(W=R.trIndex;W<=P;W++){for(V=L;V<=I;V++){this.selectCell(M[W].cells[V]);}}}else{L=Math.min(R.trIndex,U);I=Math.max(R.trIndex,U);for(W=R.trIndex;W>=P;W--){for(V=I;V>=L;V--){this.selectCell(M[W].cells[V]);}}}}}else{if(R.recordIndex===b){if(R.colKeyIndex<U){for(W=R.colKeyIndex+1;W<U;W++){this.unselectCell(Q.cells[W]);}}else{if(U<R.colKeyIndex){for(W=U+1;W<R.colKeyIndex;W++){this.unselectCell(Q.cells[W]);}}}}if(R.recordIndex<b){for(W=R.trIndex;W<=P;W++){a=M[W];for(V=0;V<a.cells.length;V++){if(a.sectionRowIndex===R.trIndex){if(V>R.colKeyIndex){this.unselectCell(a.cells[V]);}}else{if(a.sectionRowIndex===P){if(V<U){this.unselectCell(a.cells[V]);}}else{this.unselectCell(a.cells[V]);}}}}}else{for(W=P;W<=R.trIndex;W++){a=M[W];for(V=0;V<a.cells.length;V++){if(a.sectionRowIndex==P){if(V>U){this.unselectCell(a.cells[V]);}}else{if(a.sectionRowIndex==R.trIndex){if(V<R.colKeyIndex){this.unselectCell(a.cells[V]);}}else{this.unselectCell(a.cells[V]);}}}}}this.selectCell(J);}}else{this._oAnchorCell=N;if(this.isSelected(N)){this.unselectCell(N);}else{this.selectCell(N);}}}else{if(O){this.unselectAllCells();if(R){if(R.recordIndex===b){if(R.colKeyIndex<U){for(W=R.colKeyIndex;W<=U;W++){this.selectCell(Q.cells[W]);}}else{if(U<R.colKeyIndex){for(W=U;W<=R.colKeyIndex;W++){this.selectCell(Q.cells[W]);}}}}else{if(R.recordIndex<b){L=Math.min(R.colKeyIndex,U);I=Math.max(R.colKeyIndex,U);for(W=R.trIndex;W<=P;W++){for(V=L;V<=I;V++){this.selectCell(M[W].cells[V]);}}}else{L=Math.min(R.colKeyIndex,U);I=Math.max(R.colKeyIndex,U);for(W=P;W<=R.trIndex;W++){for(V=L;V<=I;V++){this.selectCell(M[W].cells[V]);}}}}}else{this._oAnchorCell=N;this.selectCell(N);
++}}else{if(K){this._oAnchorCell=N;if(this.isSelected(N)){this.unselectCell(N);}else{this.selectCell(N);}}else{this._handleSingleCellSelectionByMouse(Y);}}}}},_handleCellBlockSelectionByKey:function(N){var I=G.getCharCode(N);var S=N.shiftKey;if((I==9)||!S){this._handleSingleCellSelectionByKey(N);return;}if((I>36)&&(I<41)){var T=this._getSelectionTrigger();if(!T){return null;}G.stopEvent(N);var Q=this._getSelectionAnchor(T);var J,R,K,P,L;var O=this.getTbodyEl().rows;var M=T.el.parentNode;if(I==40){if(Q.recordIndex<=T.recordIndex){L=this.getNextTrEl(T.el);if(L){R=Q.colKeyIndex;K=T.colKeyIndex;if(R>K){for(J=R;J>=K;J--){P=L.cells[J];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=L.cells[J];this.selectCell(P);}}}}else{R=Math.min(Q.colKeyIndex,T.colKeyIndex);K=Math.max(Q.colKeyIndex,T.colKeyIndex);for(J=R;J<=K;J++){this.unselectCell(M.cells[J]);}}}else{if(I==38){if(Q.recordIndex>=T.recordIndex){L=this.getPreviousTrEl(T.el);if(L){R=Q.colKeyIndex;K=T.colKeyIndex;if(R>K){for(J=R;J>=K;J--){P=L.cells[J];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=L.cells[J];this.selectCell(P);}}}}else{R=Math.min(Q.colKeyIndex,T.colKeyIndex);K=Math.max(Q.colKeyIndex,T.colKeyIndex);for(J=R;J<=K;J++){this.unselectCell(M.cells[J]);}}}else{if(I==39){if(Q.colKeyIndex<=T.colKeyIndex){if(T.colKeyIndex<M.cells.length-1){R=Q.trIndex;K=T.trIndex;if(R>K){for(J=R;J>=K;J--){P=O[J].cells[T.colKeyIndex+1];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=O[J].cells[T.colKeyIndex+1];this.selectCell(P);}}}}else{R=Math.min(Q.trIndex,T.trIndex);K=Math.max(Q.trIndex,T.trIndex);for(J=R;J<=K;J++){this.unselectCell(O[J].cells[T.colKeyIndex]);}}}else{if(I==37){if(Q.colKeyIndex>=T.colKeyIndex){if(T.colKeyIndex>0){R=Q.trIndex;K=T.trIndex;if(R>K){for(J=R;J>=K;J--){P=O[J].cells[T.colKeyIndex-1];this.selectCell(P);}}else{for(J=R;J<=K;J++){P=O[J].cells[T.colKeyIndex-1];this.selectCell(P);}}}}else{R=Math.min(Q.trIndex,T.trIndex);K=Math.max(Q.trIndex,T.trIndex);for(J=R;J<=K;J++){this.unselectCell(O[J].cells[T.colKeyIndex]);}}}}}}}},_handleCellRangeSelectionByMouse:function(W){var X=W.target;var I=this.getTdEl(X);if(I){var V=W.event;var M=V.shiftKey;var J=V.ctrlKey||((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)&&V.metaKey);var O=this.getTrEl(I);var N=this.getTrIndex(O);var R=this.getColumn(I);var S=R.getKeyIndex();var Q=this.getRecord(O);var Z=this._oRecordSet.getRecordIndex(Q);var L={record:Q,column:R};var P=this._getSelectionAnchor();var K=this.getTbodyEl().rows;var Y,U,T;if(M&&J){if(P){if(this.isSelected(P.cell)){if(P.recordIndex===Z){if(P.colKeyIndex<S){for(U=P.colKeyIndex+1;U<=S;U++){this.selectCell(O.cells[U]);}}else{if(S<P.colKeyIndex){for(U=S;U<P.colKeyIndex;U++){this.selectCell(O.cells[U]);}}}}else{if(P.recordIndex<Z){for(U=P.colKeyIndex+1;U<O.cells.length;U++){this.selectCell(O.cells[U]);}for(U=P.trIndex+1;U<N;U++){for(T=0;T<K[U].cells.length;T++){this.selectCell(K[U].cells[T]);}}for(U=0;U<=S;U++){this.selectCell(O.cells[U]);}}else{for(U=S;U<O.cells.length;U++){this.selectCell(O.cells[U]);}for(U=N+1;U<P.trIndex;U++){for(T=0;T<K[U].cells.length;T++){this.selectCell(K[U].cells[T]);}}for(U=0;U<P.colKeyIndex;U++){this.selectCell(O.cells[U]);}}}}else{if(P.recordIndex===Z){if(P.colKeyIndex<S){for(U=P.colKeyIndex+1;U<S;U++){this.unselectCell(O.cells[U]);}}else{if(S<P.colKeyIndex){for(U=S+1;U<P.colKeyIndex;U++){this.unselectCell(O.cells[U]);}}}}if(P.recordIndex<Z){for(U=P.trIndex;U<=N;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex===P.trIndex){if(T>P.colKeyIndex){this.unselectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex===N){if(T<S){this.unselectCell(Y.cells[T]);}}else{this.unselectCell(Y.cells[T]);}}}}}else{for(U=N;U<=P.trIndex;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex==N){if(T>S){this.unselectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex==P.trIndex){if(T<P.colKeyIndex){this.unselectCell(Y.cells[T]);}}else{this.unselectCell(Y.cells[T]);}}}}}this.selectCell(I);}}else{this._oAnchorCell=L;if(this.isSelected(L)){this.unselectCell(L);}else{this.selectCell(L);}}}else{if(M){this.unselectAllCells();if(P){if(P.recordIndex===Z){if(P.colKeyIndex<S){for(U=P.colKeyIndex;U<=S;U++){this.selectCell(O.cells[U]);}}else{if(S<P.colKeyIndex){for(U=S;U<=P.colKeyIndex;U++){this.selectCell(O.cells[U]);}}}}else{if(P.recordIndex<Z){for(U=P.trIndex;U<=N;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex==P.trIndex){if(T>=P.colKeyIndex){this.selectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex==N){if(T<=S){this.selectCell(Y.cells[T]);}}else{this.selectCell(Y.cells[T]);}}}}}else{for(U=N;U<=P.trIndex;U++){Y=K[U];for(T=0;T<Y.cells.length;T++){if(Y.sectionRowIndex==N){if(T>=S){this.selectCell(Y.cells[T]);}}else{if(Y.sectionRowIndex==P.trIndex){if(T<=P.colKeyIndex){this.selectCell(Y.cells[T]);}}else{this.selectCell(Y.cells[T]);}}}}}}}else{this._oAnchorCell=L;this.selectCell(L);}}else{if(J){this._oAnchorCell=L;if(this.isSelected(L)){this.unselectCell(L);}else{this.selectCell(L);}}else{this._handleSingleCellSelectionByMouse(W);}}}}},_handleCellRangeSelectionByKey:function(M){var I=G.getCharCode(M);var Q=M.shiftKey;if((I==9)||!Q){this._handleSingleCellSelectionByKey(M);return;}if((I>36)&&(I<41)){var R=this._getSelectionTrigger();if(!R){return null;}G.stopEvent(M);var P=this._getSelectionAnchor(R);var J,K,O;var N=this.getTbodyEl().rows;var L=R.el.parentNode;if(I==40){K=this.getNextTrEl(R.el);if(P.recordIndex<=R.recordIndex){for(J=R.colKeyIndex+1;J<L.cells.length;J++){O=L.cells[J];this.selectCell(O);}if(K){for(J=0;J<=R.colKeyIndex;J++){O=K.cells[J];this.selectCell(O);}}}else{for(J=R.colKeyIndex;J<L.cells.length;J++){this.unselectCell(L.cells[J]);}if(K){for(J=0;J<R.colKeyIndex;J++){this.unselectCell(K.cells[J]);}}}}else{if(I==38){K=this.getPreviousTrEl(R.el);if(P.recordIndex>=R.recordIndex){for(J=R.colKeyIndex-1;J>-1;J--){O=L.cells[J];this.selectCell(O);}if(K){for(J=L.cells.length-1;J>=R.colKeyIndex;J--){O=K.cells[J];this.selectCell(O);}}}else{for(J=R.colKeyIndex;J>-1;J--){this.unselectCell(L.cells[J]);}if(K){for(J=L.cells.length-1;J>R.colKeyIndex;
++J--){this.unselectCell(K.cells[J]);}}}}else{if(I==39){K=this.getNextTrEl(R.el);if(P.recordIndex<R.recordIndex){if(R.colKeyIndex<L.cells.length-1){O=L.cells[R.colKeyIndex+1];this.selectCell(O);}else{if(K){O=K.cells[0];this.selectCell(O);}}}else{if(P.recordIndex>R.recordIndex){this.unselectCell(L.cells[R.colKeyIndex]);if(R.colKeyIndex<L.cells.length-1){}else{}}else{if(P.colKeyIndex<=R.colKeyIndex){if(R.colKeyIndex<L.cells.length-1){O=L.cells[R.colKeyIndex+1];this.selectCell(O);}else{if(R.trIndex<N.length-1){O=K.cells[0];this.selectCell(O);}}}else{this.unselectCell(L.cells[R.colKeyIndex]);}}}}else{if(I==37){K=this.getPreviousTrEl(R.el);if(P.recordIndex<R.recordIndex){this.unselectCell(L.cells[R.colKeyIndex]);if(R.colKeyIndex>0){}else{}}else{if(P.recordIndex>R.recordIndex){if(R.colKeyIndex>0){O=L.cells[R.colKeyIndex-1];this.selectCell(O);}else{if(R.trIndex>0){O=K.cells[K.cells.length-1];this.selectCell(O);}}}else{if(P.colKeyIndex>=R.colKeyIndex){if(R.colKeyIndex>0){O=L.cells[R.colKeyIndex-1];this.selectCell(O);}else{if(R.trIndex>0){O=K.cells[K.cells.length-1];this.selectCell(O);}}}else{this.unselectCell(L.cells[R.colKeyIndex]);if(R.colKeyIndex>0){}else{}}}}}}}}}},_handleSingleCellSelectionByMouse:function(N){var O=N.target;var K=this.getTdEl(O);if(K){var J=this.getTrEl(K);var I=this.getRecord(J);var M=this.getColumn(K);var L={record:I,column:M};this._oAnchorCell=L;this.unselectAllCells();this.selectCell(L);}},_handleSingleCellSelectionByKey:function(M){var I=G.getCharCode(M);if((I==9)||((I>36)&&(I<41))){var K=M.shiftKey;var J=this._getSelectionTrigger();if(!J){return null;}var L;if(I==40){L=this.getBelowTdEl(J.el);if(L===null){L=J.el;}}else{if(I==38){L=this.getAboveTdEl(J.el);if(L===null){L=J.el;}}else{if((I==39)||(!K&&(I==9))){L=this.getNextTdEl(J.el);if(L===null){return;}}else{if((I==37)||(K&&(I==9))){L=this.getPreviousTdEl(J.el);if(L===null){return;}}}}}G.stopEvent(M);this.unselectAllCells();this.selectCell(L);this._oAnchorCell={record:this.getRecord(L),column:this.getColumn(L)};}},getSelectedTrEls:function(){return C.getElementsByClassName(D.CLASS_SELECTED,"tr",this._elTbody);},selectRow:function(O){var N,I;if(O instanceof YAHOO.widget.Record){N=this._oRecordSet.getRecord(O);I=this.getTrEl(N);}else{if(H.isNumber(O)){N=this.getRecord(O);I=this.getTrEl(N);}else{I=this.getTrEl(O);N=this.getRecord(I);}}if(N){var M=this._aSelections||[];var L=N.getId();var K=-1;if(M.indexOf){K=M.indexOf(L);}else{for(var J=M.length-1;J>-1;J--){if(M[J]===L){K=J;break;}}}if(K>-1){M.splice(K,1);}M.push(L);this._aSelections=M;if(!this._oAnchorRecord){this._oAnchorRecord=N;}if(I){C.addClass(I,D.CLASS_SELECTED);}this.fireEvent("rowSelectEvent",{record:N,el:I});}else{}},unselectRow:function(O){var I=this.getTrEl(O);var N;if(O instanceof YAHOO.widget.Record){N=this._oRecordSet.getRecord(O);}else{if(H.isNumber(O)){N=this.getRecord(O);}else{N=this.getRecord(I);}}if(N){var M=this._aSelections||[];var L=N.getId();var K=-1;if(M.indexOf){K=M.indexOf(L);}else{for(var J=M.length-1;J>-1;J--){if(M[J]===L){K=J;break;}}}if(K>-1){M.splice(K,1);this._aSelections=M;C.removeClass(I,D.CLASS_SELECTED);this.fireEvent("rowUnselectEvent",{record:N,el:I});return;}}},unselectAllRows:function(){var J=this._aSelections||[],L,K=[];for(var I=J.length-1;I>-1;I--){if(H.isString(J[I])){L=J.splice(I,1);K[K.length]=this.getRecord(H.isArray(L)?L[0]:L);}}this._aSelections=J;this._unselectAllTrEls();this.fireEvent("unselectAllRowsEvent",{records:K});},_unselectAllTdEls:function(){var I=C.getElementsByClassName(D.CLASS_SELECTED,"td",this._elTbody);C.removeClass(I,D.CLASS_SELECTED);},getSelectedTdEls:function(){return C.getElementsByClassName(D.CLASS_SELECTED,"td",this._elTbody);},selectCell:function(I){var O=this.getTdEl(I);if(O){var N=this.getRecord(O);var L=this.getColumn(O.cellIndex).getKey();if(N&&L){var M=this._aSelections||[];var K=N.getId();for(var J=M.length-1;J>-1;J--){if((M[J].recordId===K)&&(M[J].columnKey===L)){M.splice(J,1);break;}}M.push({recordId:K,columnKey:L});this._aSelections=M;if(!this._oAnchorCell){this._oAnchorCell={record:N,column:this.getColumn(L)};}C.addClass(O,D.CLASS_SELECTED);this.fireEvent("cellSelectEvent",{record:N,column:this.getColumn(O.cellIndex),key:this.getColumn(O.cellIndex).getKey(),el:O});return;}}},unselectCell:function(I){var N=this.getTdEl(I);if(N){var M=this.getRecord(N);var K=this.getColumn(N.cellIndex).getKey();if(M&&K){var L=this._aSelections||[];var O=M.getId();for(var J=L.length-1;J>-1;J--){if((L[J].recordId===O)&&(L[J].columnKey===K)){L.splice(J,1);this._aSelections=L;C.removeClass(N,D.CLASS_SELECTED);this.fireEvent("cellUnselectEvent",{record:M,column:this.getColumn(N.cellIndex),key:this.getColumn(N.cellIndex).getKey(),el:N});return;}}}}},unselectAllCells:function(){var J=this._aSelections||[];for(var I=J.length-1;I>-1;I--){if(H.isObject(J[I])){J.splice(I,1);}}this._aSelections=J;this._unselectAllTdEls();this.fireEvent("unselectAllCellsEvent");},isSelected:function(N){if(N&&(N.ownerDocument==document)){return(C.hasClass(this.getTdEl(N),D.CLASS_SELECTED)||C.hasClass(this.getTrEl(N),D.CLASS_SELECTED));}else{var M,J,I;var L=this._aSelections;if(L&&L.length>0){if(N instanceof YAHOO.widget.Record){M=N;}else{if(H.isNumber(N)){M=this.getRecord(N);}}if(M){J=M.getId();if(L.indexOf){if(L.indexOf(J)>-1){return true;}}else{for(I=L.length-1;I>-1;I--){if(L[I]===J){return true;}}}}else{if(N.record&&N.column){J=N.record.getId();var K=N.column.getKey();for(I=L.length-1;I>-1;I--){if((L[I].recordId===J)&&(L[I].columnKey===K)){return true;}}}}}}return false;},getSelectedRows:function(){var I=[];var K=this._aSelections||[];for(var J=0;J<K.length;J++){if(H.isString(K[J])){I.push(K[J]);}}return I;},getSelectedCells:function(){var J=[];var K=this._aSelections||[];for(var I=0;I<K.length;I++){if(K[I]&&H.isObject(K[I])){J.push(K[I]);}}return J;},getLastSelectedRecord:function(){var J=this._aSelections;if(J&&J.length>0){for(var I=J.length-1;I>-1;I--){if(H.isString(J[I])){return J[I];}}}},getLastSelectedCell:function(){var J=this._aSelections;
++if(J&&J.length>0){for(var I=J.length-1;I>-1;I--){if(J[I].recordId&&J[I].columnKey){return J[I];}}}},highlightRow:function(K){var I=this.getTrEl(K);if(I){var J=this.getRecord(I);C.addClass(I,D.CLASS_HIGHLIGHTED);this.fireEvent("rowHighlightEvent",{record:J,el:I});return;}},unhighlightRow:function(K){var I=this.getTrEl(K);if(I){var J=this.getRecord(I);C.removeClass(I,D.CLASS_HIGHLIGHTED);this.fireEvent("rowUnhighlightEvent",{record:J,el:I});return;}},highlightCell:function(I){var L=this.getTdEl(I);if(L){if(this._elLastHighlightedTd){this.unhighlightCell(this._elLastHighlightedTd);}var K=this.getRecord(L);var J=this.getColumn(L.cellIndex).getKey();C.addClass(L,D.CLASS_HIGHLIGHTED);this._elLastHighlightedTd=L;this.fireEvent("cellHighlightEvent",{record:K,column:this.getColumn(L.cellIndex),key:this.getColumn(L.cellIndex).getKey(),el:L});return;}},unhighlightCell:function(I){var K=this.getTdEl(I);if(K){var J=this.getRecord(K);C.removeClass(K,D.CLASS_HIGHLIGHTED);this._elLastHighlightedTd=null;this.fireEvent("cellUnhighlightEvent",{record:J,column:this.getColumn(K.cellIndex),key:this.getColumn(K.cellIndex).getKey(),el:K});return;}},getCellEditor:function(){return this._oCellEditor;},showCellEditor:function(P,Q,L){P=this.getTdEl(P);if(P){L=this.getColumn(P);if(L&&L.editor){var J=this._oCellEditor;if(J){if(this._oCellEditor.cancel){this._oCellEditor.cancel();}else{if(J.isActive){this.cancelCellEditor();}}}if(L.editor instanceof YAHOO.widget.BaseCellEditor){J=L.editor;var N=J.attach(this,P);if(N){J.move();N=this.doBeforeShowCellEditor(J);if(N){J.show();this._oCellEditor=J;}}}else{if(!Q||!(Q instanceof YAHOO.widget.Record)){Q=this.getRecord(P);}if(!L||!(L instanceof YAHOO.widget.Column)){L=this.getColumn(P);}if(Q&&L){if(!this._oCellEditor||this._oCellEditor.container){this._initCellEditorEl();}J=this._oCellEditor;J.cell=P;J.record=Q;J.column=L;J.validator=(L.editorOptions&&H.isFunction(L.editorOptions.validator))?L.editorOptions.validator:null;J.value=Q.getData(L.key);J.defaultValue=null;var K=J.container;var O=C.getX(P);var M=C.getY(P);if(isNaN(O)||isNaN(M)){O=P.offsetLeft+C.getX(this._elTbody.parentNode)-this._elTbody.scrollLeft;M=P.offsetTop+C.getY(this._elTbody.parentNode)-this._elTbody.scrollTop+this._elThead.offsetHeight;}K.style.left=O+"px";K.style.top=M+"px";this.doBeforeShowCellEditor(this._oCellEditor);K.style.display="";G.addListener(K,"keydown",function(S,R){if((S.keyCode==27)){R.cancelCellEditor();R.focusTbodyEl();}else{R.fireEvent("editorKeydownEvent",{editor:R._oCellEditor,event:S});}},this);var I;if(H.isString(L.editor)){switch(L.editor){case"checkbox":I=D.editCheckbox;break;case"date":I=D.editDate;break;case"dropdown":I=D.editDropdown;break;case"radio":I=D.editRadio;break;case"textarea":I=D.editTextarea;break;case"textbox":I=D.editTextbox;break;default:I=null;}}else{if(H.isFunction(L.editor)){I=L.editor;}}if(I){I(this._oCellEditor,this);if(!L.editorOptions||!L.editorOptions.disableBtns){this.showCellEditorBtns(K);}J.isActive=true;this.fireEvent("editorShowEvent",{editor:J});return;}}}}}},_initCellEditorEl:function(){var I=document.createElement("div");I.id=this._sId+"-celleditor";I.style.display="none";I.tabIndex=0;C.addClass(I,D.CLASS_EDITOR);var K=C.getFirstChild(document.body);if(K){I=C.insertBefore(I,K);}else{I=document.body.appendChild(I);}var J={};J.container=I;J.value=null;J.isActive=false;this._oCellEditor=J;},doBeforeShowCellEditor:function(I){return true;},saveCellEditor:function(){if(this._oCellEditor){if(this._oCellEditor.save){this._oCellEditor.save();}else{if(this._oCellEditor.isActive){var I=this._oCellEditor.value;var J=this._oCellEditor.record.getData(this._oCellEditor.column.key);if(this._oCellEditor.validator){I=this._oCellEditor.value=this._oCellEditor.validator.call(this,I,J,this._oCellEditor);if(I===null){this.resetCellEditor();this.fireEvent("editorRevertEvent",{editor:this._oCellEditor,oldData:J,newData:I});return;}}this._oRecordSet.updateRecordValue(this._oCellEditor.record,this._oCellEditor.column.key,this._oCellEditor.value);this.formatCell(this._oCellEditor.cell.firstChild);this._oChainRender.add({method:function(){this.validateColumnWidths();},scope:this});this._oChainRender.run();this.resetCellEditor();this.fireEvent("editorSaveEvent",{editor:this._oCellEditor,oldData:J,newData:I});}}}},cancelCellEditor:function(){if(this._oCellEditor){if(this._oCellEditor.cancel){this._oCellEditor.cancel();}else{if(this._oCellEditor.isActive){this.resetCellEditor();this.fireEvent("editorCancelEvent",{editor:this._oCellEditor});}}}},destroyCellEditor:function(){if(this._oCellEditor){this._oCellEditor.destroy();this._oCellEditor=null;}},_onEditorShowEvent:function(I){this.fireEvent("editorShowEvent",I);},_onEditorKeydownEvent:function(I){this.fireEvent("editorKeydownEvent",I);},_onEditorRevertEvent:function(I){this.fireEvent("editorRevertEvent",I);},_onEditorSaveEvent:function(I){this.fireEvent("editorSaveEvent",I);},_onEditorCancelEvent:function(I){this.fireEvent("editorCancelEvent",I);},_onEditorBlurEvent:function(I){this.fireEvent("editorBlurEvent",I);},_onEditorBlockEvent:function(I){this.fireEvent("editorBlockEvent",I);},_onEditorUnblockEvent:function(I){this.fireEvent("editorUnblockEvent",I);},onEditorBlurEvent:function(I){if(I.editor.disableBtns){if(I.editor.save){I.editor.save();}}else{if(I.editor.cancel){I.editor.cancel();}}},onEditorBlockEvent:function(I){this.disable();},onEditorUnblockEvent:function(I){this.undisable();},doBeforeLoadData:function(I,J,K){return true;},onEventSortColumn:function(K){var I=K.event;var M=K.target;var J=this.getThEl(M)||this.getTdEl(M);if(J){var L=this.getColumn(J);if(L.sortable){G.stopEvent(I);this.sortColumn(L);}}else{}},onEventSelectColumn:function(I){this.selectColumn(I.target);},onEventHighlightColumn:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.highlightColumn(I.target);}},onEventUnhighlightColumn:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.unhighlightColumn(I.target);}},onEventSelectRow:function(J){var I=this.get("selectionMode");
++if(I=="single"){this._handleSingleSelectionByMouse(J);}else{this._handleStandardSelectionByMouse(J);}},onEventSelectCell:function(J){var I=this.get("selectionMode");if(I=="cellblock"){this._handleCellBlockSelectionByMouse(J);}else{if(I=="cellrange"){this._handleCellRangeSelectionByMouse(J);}else{this._handleSingleCellSelectionByMouse(J);}}},onEventHighlightRow:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.highlightRow(I.target);}},onEventUnhighlightRow:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.unhighlightRow(I.target);}},onEventHighlightCell:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.highlightCell(I.target);}},onEventUnhighlightCell:function(I){if(!C.isAncestor(I.target,G.getRelatedTarget(I.event))){this.unhighlightCell(I.target);}},onEventFormatCell:function(I){var L=I.target;var J=this.getTdEl(L);if(J){var K=this.getColumn(J.cellIndex);this.formatCell(J.firstChild,this.getRecord(J),K);}else{}},onEventShowCellEditor:function(I){this.showCellEditor(I.target);},onEventSaveCellEditor:function(I){if(this._oCellEditor){if(this._oCellEditor.save){this._oCellEditor.save();}else{this.saveCellEditor();}}},onEventCancelCellEditor:function(I){if(this._oCellEditor){if(this._oCellEditor.cancel){this._oCellEditor.cancel();}else{this.cancelCellEditor();}}},onDataReturnInitializeTable:function(I,J,K){if((this instanceof D)&&this._sId){this.initializeTable();this.onDataReturnSetRows(I,J,K);}},onDataReturnReplaceRows:function(M,L,N){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:M,response:L,payload:N});var J=this.doBeforeLoadData(M,L,N),K=this.get("paginator"),I=0;if(J&&L&&!L.error&&H.isArray(L.results)){this._oRecordSet.reset();if(this.get("dynamicData")){if(N&&N.pagination&&H.isNumber(N.pagination.recordOffset)){I=N.pagination.recordOffset;}else{if(K){I=K.getStartIndex();}}}this._oRecordSet.setRecords(L.results,I|0);this._handleDataReturnPayload(M,L,N);this.render();}else{if(J&&L.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnAppendRows:function(J,K,L){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:J,response:K,payload:L});var I=this.doBeforeLoadData(J,K,L);if(I&&K&&!K.error&&H.isArray(K.results)){this.addRows(K.results);this._handleDataReturnPayload(J,K,L);}else{if(I&&K.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnInsertRows:function(J,K,L){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:J,response:K,payload:L});var I=this.doBeforeLoadData(J,K,L);if(I&&K&&!K.error&&H.isArray(K.results)){this.addRows(K.results,(L?L.insertIndex:0));this._handleDataReturnPayload(J,K,L);}else{if(I&&K.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnUpdateRows:function(J,K,L){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:J,response:K,payload:L});var I=this.doBeforeLoadData(J,K,L);if(I&&K&&!K.error&&H.isArray(K.results)){this.updateRows((L?L.updateIndex:0),K.results);this._handleDataReturnPayload(J,K,L);}else{if(I&&K.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}},onDataReturnSetRows:function(M,L,N){if((this instanceof D)&&this._sId){this.fireEvent("dataReturnEvent",{request:M,response:L,payload:N});var J=this.doBeforeLoadData(M,L,N),K=this.get("paginator"),I=0;if(J&&L&&!L.error&&H.isArray(L.results)){if(this.get("dynamicData")){if(N&&N.pagination&&H.isNumber(N.pagination.recordOffset)){I=N.pagination.recordOffset;}else{if(K){I=K.getStartIndex();}}this._oRecordSet.reset();}this._oRecordSet.setRecords(L.results,I|0);this._handleDataReturnPayload(M,L,N);this.render();}else{if(J&&L.error){this.showTableMessage(this.get("MSG_ERROR"),D.CLASS_ERROR);}}}else{}},handleDataReturnPayload:function(J,I,K){return K;},_handleDataReturnPayload:function(K,J,L){L=this.handleDataReturnPayload(K,J,L);if(L){var I=this.get("paginator");if(I){if(this.get("dynamicData")){if(E.Paginator.isNumeric(L.totalRecords)){I.set("totalRecords",L.totalRecords);}}else{I.set("totalRecords",this._oRecordSet.getLength());}if(H.isObject(L.pagination)){I.set("rowsPerPage",L.pagination.rowsPerPage);I.set("recordOffset",L.pagination.recordOffset);}}if(L.sortedBy){this.set("sortedBy",L.sortedBy);}else{if(L.sorting){this.set("sortedBy",L.sorting);}}}},showCellEditorBtns:function(K){var L=K.appendChild(document.createElement("div"));C.addClass(L,D.CLASS_BUTTON);var J=L.appendChild(document.createElement("button"));C.addClass(J,D.CLASS_DEFAULT);J.innerHTML="OK";G.addListener(J,"click",function(N,M){M.onEventSaveCellEditor(N,M);M.focusTbodyEl();},this,true);var I=L.appendChild(document.createElement("button"));I.innerHTML="Cancel";G.addListener(I,"click",function(N,M){M.onEventCancelCellEditor(N,M);M.focusTbodyEl();},this,true);},resetCellEditor:function(){var I=this._oCellEditor.container;I.style.display="none";G.purgeElement(I,true);I.innerHTML="";this._oCellEditor.value=null;this._oCellEditor.isActive=false;},getBody:function(){return this.getTbodyEl();},getCell:function(I){return this.getTdEl(I);},getRow:function(I){return this.getTrEl(I);},refreshView:function(){this.render();},select:function(J){if(!H.isArray(J)){J=[J];}for(var I=0;I<J.length;I++){this.selectRow(J[I]);}},onEventEditCell:function(I){this.onEventShowCellEditor(I);},_syncColWidths:function(){this.validateColumnWidths();}});D.prototype.onDataReturnSetRecords=D.prototype.onDataReturnSetRows;D.prototype.onPaginatorChange=D.prototype.onPaginatorChangeRequest;D.formatTheadCell=function(){};D.editCheckbox=function(){};D.editDate=function(){};D.editDropdown=function(){};D.editRadio=function(){};D.editTextarea=function(){};D.editTextbox=function(){};})();(function(){var C=YAHOO.lang,F=YAHOO.util,E=YAHOO.widget,A=YAHOO.env.ua,D=F.Dom,J=F.Event,I=F.DataSourceBase,G=E.DataTable,B=E.Paginator;E.ScrollingDataTable=function(N,M,K,L){L=L||{};if(L.scrollable){L.scrollable=false;}E.ScrollingDataTable.superclass.constructor.call(this,N,M,K,L);
++this.subscribe("columnShowEvent",this._onColumnChange);};var H=E.ScrollingDataTable;C.augmentObject(H,{CLASS_HEADER:"yui-dt-hd",CLASS_BODY:"yui-dt-bd"});C.extend(H,G,{_elHdContainer:null,_elHdTable:null,_elBdContainer:null,_elBdThead:null,_elTmpContainer:null,_elTmpTable:null,_bScrollbarX:null,initAttributes:function(K){K=K||{};H.superclass.initAttributes.call(this,K);this.setAttributeConfig("width",{value:null,validator:C.isString,method:function(L){if(this._elHdContainer&&this._elBdContainer){this._elHdContainer.style.width=L;this._elBdContainer.style.width=L;this._syncScrollX();this._syncScrollOverhang();}}});this.setAttributeConfig("height",{value:null,validator:C.isString,method:function(L){if(this._elHdContainer&&this._elBdContainer){this._elBdContainer.style.height=L;this._syncScrollX();this._syncScrollY();this._syncScrollOverhang();}}});this.setAttributeConfig("COLOR_COLUMNFILLER",{value:"#F2F2F2",validator:C.isString,method:function(L){this._elHdContainer.style.backgroundColor=L;}});},_initDomElements:function(K){this._initContainerEl(K);if(this._elContainer&&this._elHdContainer&&this._elBdContainer){this._initTableEl();if(this._elHdTable&&this._elTable){this._initColgroupEl(this._elHdTable);this._initTheadEl(this._elHdTable,this._elTable);this._initTbodyEl(this._elTable);this._initMsgTbodyEl(this._elTable);}}if(!this._elContainer||!this._elTable||!this._elColgroup||!this._elThead||!this._elTbody||!this._elMsgTbody||!this._elHdTable||!this._elBdThead){return false;}else{return true;}},_destroyContainerEl:function(K){D.removeClass(K,G.CLASS_SCROLLABLE);H.superclass._destroyContainerEl.call(this,K);this._elHdContainer=null;this._elBdContainer=null;},_initContainerEl:function(L){H.superclass._initContainerEl.call(this,L);if(this._elContainer){L=this._elContainer;D.addClass(L,G.CLASS_SCROLLABLE);var K=document.createElement("div");K.style.width=this.get("width")||"";K.style.backgroundColor=this.get("COLOR_COLUMNFILLER");D.addClass(K,H.CLASS_HEADER);this._elHdContainer=K;L.appendChild(K);var M=document.createElement("div");M.style.width=this.get("width")||"";M.style.height=this.get("height")||"";D.addClass(M,H.CLASS_BODY);J.addListener(M,"scroll",this._onScroll,this);this._elBdContainer=M;L.appendChild(M);}},_initCaptionEl:function(K){},_destroyHdTableEl:function(){var K=this._elHdTable;if(K){J.purgeElement(K,true);K.parentNode.removeChild(K);this._elBdThead=null;}},_initTableEl:function(){if(this._elHdContainer){this._destroyHdTableEl();this._elHdTable=this._elHdContainer.appendChild(document.createElement("table"));}H.superclass._initTableEl.call(this,this._elBdContainer);},_initTheadEl:function(L,K){L=L||this._elHdTable;K=K||this._elTable;this._initBdTheadEl(K);H.superclass._initTheadEl.call(this,L);},_initThEl:function(L,K){H.superclass._initThEl.call(this,L,K);L.id=this.getId()+"-fixedth-"+K.getSanitizedKey();},_destroyBdTheadEl:function(){var K=this._elBdThead;if(K){var L=K.parentNode;J.purgeElement(K,true);L.removeChild(K);this._elBdThead=null;this._destroyColumnHelpers();}},_initBdTheadEl:function(S){if(S){this._destroyBdTheadEl();var O=S.insertBefore(document.createElement("thead"),S.firstChild);var U=this._oColumnSet,T=U.tree,N,K,R,P,M,L,Q;for(P=0,L=T.length;P<L;P++){K=O.appendChild(document.createElement("tr"));for(M=0,Q=T[P].length;M<Q;M++){R=T[P][M];N=K.appendChild(document.createElement("th"));this._initBdThEl(N,R,P,M);}}this._elBdThead=O;}},_initBdThEl:function(N,M){N.id=this.getId()+"-th-"+M.getSanitizedKey();N.rowSpan=M.getRowspan();N.colSpan=M.getColspan();if(M.abbr){N.abbr=M.abbr;}var L=M.getKey();var K=C.isValue(M.label)?M.label:L;N.innerHTML=K;},_initTbodyEl:function(K){H.superclass._initTbodyEl.call(this,K);K.style.marginTop=(this._elTbody.offsetTop>0)?"-"+this._elTbody.offsetTop+"px":0;},_focusEl:function(L){L=L||this._elTbody;var K=this;this._storeScrollPositions();setTimeout(function(){setTimeout(function(){try{L.focus();K._restoreScrollPositions();}catch(M){}},0);},0);},_runRenderChain:function(){this._storeScrollPositions();this._oChainRender.run();},_storeScrollPositions:function(){this._nScrollTop=this._elBdContainer.scrollTop;this._nScrollLeft=this._elBdContainer.scrollLeft;},clearScrollPositions:function(){this._nScrollTop=0;this._nScrollLeft=0;},_restoreScrollPositions:function(){if(this._nScrollTop){this._elBdContainer.scrollTop=this._nScrollTop;this._nScrollTop=null;}if(this._nScrollLeft){this._elBdContainer.scrollLeft=this._nScrollLeft;this._nScrollLeft=null;}},_validateColumnWidth:function(N,K){if(!N.width&&!N.hidden){var P=N.getThEl();if(N._calculatedWidth){this._setColumnWidth(N,"auto","visible");}if(P.offsetWidth!==K.offsetWidth){var M=(P.offsetWidth>K.offsetWidth)?N.getThLinerEl():K.firstChild;var L=Math.max(0,(M.offsetWidth-(parseInt(D.getStyle(M,"paddingLeft"),10)|0)-(parseInt(D.getStyle(M,"paddingRight"),10)|0)),N.minWidth);var O="visible";if((N.maxAutoWidth>0)&&(L>N.maxAutoWidth)){L=N.maxAutoWidth;O="hidden";}this._elTbody.style.display="none";this._setColumnWidth(N,L+"px",O);N._calculatedWidth=L;this._elTbody.style.display="";}}},validateColumnWidths:function(S){var U=this._oColumnSet.keys,W=U.length,L=this.getFirstTrEl();if(A.ie){this._setOverhangValue(1);}if(U&&L&&(L.childNodes.length===W)){var M=this.get("width");if(M){this._elHdContainer.style.width="";this._elBdContainer.style.width="";}this._elContainer.style.width="";if(S&&C.isNumber(S.getKeyIndex())){this._validateColumnWidth(S,L.childNodes[S.getKeyIndex()]);}else{var T,K=[],O,Q,R;for(Q=0;Q<W;Q++){S=U[Q];if(!S.width&&!S.hidden&&S._calculatedWidth){K[K.length]=S;}}this._elTbody.style.display="none";for(Q=0,R=K.length;Q<R;Q++){this._setColumnWidth(K[Q],"auto","visible");}this._elTbody.style.display="";K=[];for(Q=0;Q<W;Q++){S=U[Q];T=L.childNodes[Q];if(!S.width&&!S.hidden){var N=S.getThEl();if(N.offsetWidth!==T.offsetWidth){var V=(N.offsetWidth>T.offsetWidth)?S.getThLinerEl():T.firstChild;var P=Math.max(0,(V.offsetWidth-(parseInt(D.getStyle(V,"paddingLeft"),10)|0)-(parseInt(D.getStyle(V,"paddingRight"),10)|0)),S.minWidth);
++var X="visible";if((S.maxAutoWidth>0)&&(P>S.maxAutoWidth)){P=S.maxAutoWidth;X="hidden";}K[K.length]=[S,P,X];}}}this._elTbody.style.display="none";for(Q=0,R=K.length;Q<R;Q++){O=K[Q];this._setColumnWidth(O[0],O[1]+"px",O[2]);O[0]._calculatedWidth=O[1];}this._elTbody.style.display="";}if(M){this._elHdContainer.style.width=M;this._elBdContainer.style.width=M;}}this._syncScroll();this._restoreScrollPositions();},_syncScroll:function(){this._syncScrollX();this._syncScrollY();this._syncScrollOverhang();if(A.opera){this._elHdContainer.scrollLeft=this._elBdContainer.scrollLeft;if(!this.get("width")){document.body.style+="";}}},_syncScrollY:function(){var K=this._elTbody,L=this._elBdContainer;if(!this.get("width")){this._elContainer.style.width=(L.scrollHeight>L.clientHeight)?(K.parentNode.clientWidth+19)+"px":(K.parentNode.clientWidth+2)+"px";}},_syncScrollX:function(){var K=this._elTbody,L=this._elBdContainer;if(!this.get("height")&&(A.ie)){L.style.height=(L.scrollWidth>L.offsetWidth)?(K.parentNode.offsetHeight+18)+"px":K.parentNode.offsetHeight+"px";}if(this._elTbody.rows.length===0){this._elMsgTbody.parentNode.style.width=this.getTheadEl().parentNode.offsetWidth+"px";}else{this._elMsgTbody.parentNode.style.width="";}},_syncScrollOverhang:function(){var L=this._elBdContainer,K=1;if((L.scrollHeight>L.clientHeight)&&(L.scrollWidth>L.clientWidth)){K=18;}this._setOverhangValue(K);},_setOverhangValue:function(N){var P=this._oColumnSet.headers[this._oColumnSet.headers.length-1]||[],L=P.length,K=this._sId+"-fixedth-",O=N+"px solid "+this.get("COLOR_COLUMNFILLER");this._elThead.style.display="none";for(var M=0;M<L;M++){D.get(K+P[M]).style.borderRight=O;}this._elThead.style.display="";},getHdContainerEl:function(){return this._elHdContainer;},getBdContainerEl:function(){return this._elBdContainer;},getHdTableEl:function(){return this._elHdTable;},getBdTableEl:function(){return this._elTable;},disable:function(){var K=this._elMask;K.style.width=this._elBdContainer.offsetWidth+"px";K.style.height=this._elHdContainer.offsetHeight+this._elBdContainer.offsetHeight+"px";K.style.display="";this.fireEvent("disableEvent");},removeColumn:function(M){var K=this._elHdContainer.scrollLeft;var L=this._elBdContainer.scrollLeft;M=H.superclass.removeColumn.call(this,M);this._elHdContainer.scrollLeft=K;this._elBdContainer.scrollLeft=L;return M;},insertColumn:function(N,L){var K=this._elHdContainer.scrollLeft;var M=this._elBdContainer.scrollLeft;var O=H.superclass.insertColumn.call(this,N,L);this._elHdContainer.scrollLeft=K;this._elBdContainer.scrollLeft=M;return O;},reorderColumn:function(N,L){var K=this._elHdContainer.scrollLeft;var M=this._elBdContainer.scrollLeft;var O=H.superclass.reorderColumn.call(this,N,L);this._elHdContainer.scrollLeft=K;this._elBdContainer.scrollLeft=M;return O;},setColumnWidth:function(L,K){L=this.getColumn(L);if(L){this._storeScrollPositions();if(C.isNumber(K)){K=(K>L.minWidth)?K:L.minWidth;L.width=K;this._setColumnWidth(L,K+"px");this._syncScroll();this.fireEvent("columnSetWidthEvent",{column:L,width:K});}else{if(K===null){L.width=K;this._setColumnWidth(L,"auto");this.validateColumnWidths(L);this.fireEvent("columnUnsetWidthEvent",{column:L});}}this._clearTrTemplateEl();}else{}},scrollTo:function(M){var L=this.getTdEl(M);if(L){this.clearScrollPositions();this.getBdContainerEl().scrollLeft=L.offsetLeft;this.getBdContainerEl().scrollTop=L.parentNode.offsetTop;}else{var K=this.getTrEl(M);if(K){this.clearScrollPositions();this.getBdContainerEl().scrollTop=K.offsetTop;}}},showTableMessage:function(O,K){var P=this._elMsgTd;if(C.isString(O)){P.firstChild.innerHTML=O;}if(C.isString(K)){D.addClass(P.firstChild,K);}var N=this.getTheadEl();var L=N.parentNode;var M=L.offsetWidth;this._elMsgTbody.parentNode.style.width=this.getTheadEl().parentNode.offsetWidth+"px";this._elMsgTbody.style.display="";this.fireEvent("tableMsgShowEvent",{html:O,className:K});},_onColumnChange:function(K){var L=(K.column)?K.column:(K.editor)?K.editor.column:null;this._storeScrollPositions();this.validateColumnWidths(L);},_onScroll:function(M,L){L._elHdContainer.scrollLeft=L._elBdContainer.scrollLeft;if(L._oCellEditor&&L._oCellEditor.isActive){L.fireEvent("editorBlurEvent",{editor:L._oCellEditor});L.cancelCellEditor();}var N=J.getTarget(M);var K=N.nodeName.toLowerCase();L.fireEvent("tableScrollEvent",{event:M,target:N});},_onTheadKeydown:function(N,L){if(J.getCharCode(N)===9){setTimeout(function(){if((L instanceof H)&&L._sId){L._elBdContainer.scrollLeft=L._elHdContainer.scrollLeft;}},0);}var O=J.getTarget(N);var K=O.nodeName.toLowerCase();var M=true;while(O&&(K!="table")){switch(K){case"body":return;case"input":case"textarea":break;case"thead":M=L.fireEvent("theadKeyEvent",{target:O,event:N});break;default:break;}if(M===false){return;}else{O=O.parentNode;if(O){K=O.nodeName.toLowerCase();}}}L.fireEvent("tableKeyEvent",{target:(O||L._elContainer),event:N});}});})();(function(){var C=YAHOO.lang,F=YAHOO.util,E=YAHOO.widget,B=YAHOO.env.ua,D=F.Dom,I=F.Event,H=E.DataTable;E.BaseCellEditor=function(K,J){this._sId=this._sId||"yui-ceditor"+YAHOO.widget.BaseCellEditor._nCount++;this._sType=K;this._initConfigs(J);this._initEvents();this.render();};var A=E.BaseCellEditor;C.augmentObject(A,{_nCount:0,CLASS_CELLEDITOR:"yui-ceditor"});A.prototype={_sId:null,_sType:null,_oDataTable:null,_oColumn:null,_oRecord:null,_elTd:null,_elContainer:null,_elCancelBtn:null,_elSaveBtn:null,_initConfigs:function(K){if(K&&YAHOO.lang.isObject(K)){for(var J in K){if(J){this[J]=K[J];}}}},_initEvents:function(){this.createEvent("showEvent");this.createEvent("keydownEvent");this.createEvent("invalidDataEvent");this.createEvent("revertEvent");this.createEvent("saveEvent");this.createEvent("cancelEvent");this.createEvent("blurEvent");this.createEvent("blockEvent");this.createEvent("unblockEvent");},asyncSubmitter:null,value:null,defaultValue:null,validator:null,resetInvalidData:true,isActive:false,LABEL_SAVE:"Save",LABEL_CANCEL:"Cancel",disableBtns:false,toString:function(){return"CellEditor instance "+this._sId;
++},getId:function(){return this._sId;},getDataTable:function(){return this._oDataTable;},getColumn:function(){return this._oColumn;},getRecord:function(){return this._oRecord;},getTdEl:function(){return this._elTd;},getContainerEl:function(){return this._elContainer;},destroy:function(){this.unsubscribeAll();var K=this.getColumn();if(K){K.editor=null;}var J=this.getContainerEl();I.purgeElement(J,true);J.parentNode.removeChild(J);},render:function(){if(this._elContainer){YAHOO.util.Event.purgeElement(this._elContainer,true);this._elContainer.innerHTML="";}var J=document.createElement("div");J.id=this.getId()+"-container";J.style.display="none";J.tabIndex=0;J.className=H.CLASS_EDITOR;document.body.insertBefore(J,document.body.firstChild);this._elContainer=J;I.addListener(J,"keydown",function(M,K){if((M.keyCode==27)){var L=I.getTarget(M);if(L.nodeName&&L.nodeName.toLowerCase()==="select"){L.blur();}K.cancel();}K.fireEvent("keydownEvent",{editor:this,event:M});},this);this.renderForm();if(!this.disableBtns){this.renderBtns();}this.doAfterRender();},renderBtns:function(){var L=this.getContainerEl().appendChild(document.createElement("div"));L.className=H.CLASS_BUTTON;var K=L.appendChild(document.createElement("button"));K.className=H.CLASS_DEFAULT;K.innerHTML=this.LABEL_SAVE;I.addListener(K,"click",function(M){this.save();},this,true);this._elSaveBtn=K;var J=L.appendChild(document.createElement("button"));J.innerHTML=this.LABEL_CANCEL;I.addListener(J,"click",function(M){this.cancel();},this,true);this._elCancelBtn=J;},attach:function(N,L){if(N instanceof YAHOO.widget.DataTable){this._oDataTable=N;L=N.getTdEl(L);if(L){this._elTd=L;var M=N.getColumn(L);if(M){this._oColumn=M;var J=N.getRecord(L);if(J){this._oRecord=J;var K=J.getData(this.getColumn().getField());this.value=(K!==undefined)?K:this.defaultValue;return true;}}}}return false;},move:function(){var M=this.getContainerEl(),L=this.getTdEl(),J=D.getX(L),N=D.getY(L);if(isNaN(J)||isNaN(N)){var K=this.getDataTable().getTbodyEl();J=L.offsetLeft+D.getX(K.parentNode)-K.scrollLeft;N=L.offsetTop+D.getY(K.parentNode)-K.scrollTop+this.getDataTable().getTheadEl().offsetHeight;}M.style.left=J+"px";M.style.top=N+"px";},show:function(){this.resetForm();this.isActive=true;this.getContainerEl().style.display="";this.focus();this.fireEvent("showEvent",{editor:this});},block:function(){this.fireEvent("blockEvent",{editor:this});},unblock:function(){this.fireEvent("unblockEvent",{editor:this});},save:function(){var K=this.getInputValue();var L=K;if(this.validator){L=this.validator.call(this.getDataTable(),K,this.value,this);if(L===undefined){if(this.resetInvalidData){this.resetForm();}this.fireEvent("invalidDataEvent",{editor:this,oldData:this.value,newData:K});return;}}var M=this;var J=function(O,N){var P=M.value;if(O){M.value=N;M.getDataTable().updateCell(M.getRecord(),M.getColumn(),N);M.getContainerEl().style.display="none";M.isActive=false;M.getDataTable()._oCellEditor=null;M.fireEvent("saveEvent",{editor:M,oldData:P,newData:M.value});}else{M.resetForm();M.fireEvent("revertEvent",{editor:M,oldData:P,newData:N});}M.unblock();};this.block();if(C.isFunction(this.asyncSubmitter)){this.asyncSubmitter.call(this,J,L);}else{J(true,L);}},cancel:function(){if(this.isActive){this.getContainerEl().style.display="none";this.isActive=false;this.getDataTable()._oCellEditor=null;this.fireEvent("cancelEvent",{editor:this});}else{}},renderForm:function(){},doAfterRender:function(){},handleDisabledBtns:function(){},resetForm:function(){},focus:function(){},getInputValue:function(){}};C.augmentProto(A,F.EventProvider);E.CheckboxCellEditor=function(J){this._sId="yui-checkboxceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.CheckboxCellEditor.superclass.constructor.call(this,"checkbox",J);};C.extend(E.CheckboxCellEditor,A,{checkboxOptions:null,checkboxes:null,value:null,renderForm:function(){if(C.isArray(this.checkboxOptions)){var M,N,P,K,L,J;for(L=0,J=this.checkboxOptions.length;L<J;L++){M=this.checkboxOptions[L];N=C.isValue(M.value)?M.value:M;P=this.getId()+"-chk"+L;this.getContainerEl().innerHTML+='<input type="checkbox"'+' id="'+P+'"'+' value="'+N+'" />';K=this.getContainerEl().appendChild(document.createElement("label"));K.htmlFor=P;K.innerHTML=C.isValue(M.label)?M.label:M;}var O=[];for(L=0;L<J;L++){O[O.length]=this.getContainerEl().childNodes[L*2];}this.checkboxes=O;if(this.disableBtns){this.handleDisabledBtns();}}else{}},handleDisabledBtns:function(){I.addListener(this.getContainerEl(),"click",function(J){if(I.getTarget(J).tagName.toLowerCase()==="input"){this.save();}},this,true);},resetForm:function(){var N=C.isArray(this.value)?this.value:[this.value];for(var M=0,L=this.checkboxes.length;M<L;M++){this.checkboxes[M].checked=false;for(var K=0,J=N.length;K<J;K++){if(this.checkboxes[M].value===N[K]){this.checkboxes[M].checked=true;}}}},focus:function(){this.checkboxes[0].focus();},getInputValue:function(){var J=[];for(var L=0,K=this.checkboxes.length;L<K;L++){if(this.checkboxes[L].checked){J[J.length]=this.checkboxes[L].value;}}return J;}});C.augmentObject(E.CheckboxCellEditor,A);E.DateCellEditor=function(J){this._sId="yui-dateceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.DateCellEditor.superclass.constructor.call(this,"date",J);};C.extend(E.DateCellEditor,A,{calendar:null,calendarOptions:null,defaultValue:new Date(),renderForm:function(){if(YAHOO.widget.Calendar){var K=this.getContainerEl().appendChild(document.createElement("div"));K.id=this.getId()+"-dateContainer";var L=new YAHOO.widget.Calendar(this.getId()+"-date",K.id,this.calendarOptions);L.render();K.style.cssFloat="none";if(B.ie){var J=this.getContainerEl().appendChild(document.createElement("div"));J.style.clear="both";}this.calendar=L;if(this.disableBtns){this.handleDisabledBtns();}}else{}},handleDisabledBtns:function(){this.calendar.selectEvent.subscribe(function(J){this.save();},this,true);},resetForm:function(){var K=this.value;var J=(K.getMonth()+1)+"/"+K.getDate()+"/"+K.getFullYear();this.calendar.cfg.setProperty("selected",J,false);
++this.calendar.render();},focus:function(){},getInputValue:function(){return this.calendar.getSelectedDates()[0];}});C.augmentObject(E.DateCellEditor,A);E.DropdownCellEditor=function(J){this._sId="yui-dropdownceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.DropdownCellEditor.superclass.constructor.call(this,"dropdown",J);};C.extend(E.DropdownCellEditor,A,{dropdownOptions:null,dropdown:null,multiple:false,size:null,renderForm:function(){var M=this.getContainerEl().appendChild(document.createElement("select"));M.style.zoom=1;if(this.multiple){M.multiple="multiple";}if(C.isNumber(this.size)){M.size=this.size;}this.dropdown=M;if(C.isArray(this.dropdownOptions)){var N,L;for(var K=0,J=this.dropdownOptions.length;K<J;K++){N=this.dropdownOptions[K];L=document.createElement("option");L.value=(C.isValue(N.value))?N.value:N;L.innerHTML=(C.isValue(N.label))?N.label:N;L=M.appendChild(L);}if(this.disableBtns){this.handleDisabledBtns();}}},handleDisabledBtns:function(){if(this.multiple){I.addListener(this.dropdown,"blur",function(J){this.save();},this,true);}else{I.addListener(this.dropdown,"change",function(J){this.save();},this,true);}},resetForm:function(){var P=this.dropdown.options,M=0,L=P.length;if(C.isArray(this.value)){var K=this.value,J=0,O=K.length,N={};for(;M<L;M++){P[M].selected=false;N[P[M].value]=P[M];}for(;J<O;J++){if(N[K[J]]){N[K[J]].selected=true;}}}else{for(;M<L;M++){if(this.value===P[M].value){P[M].selected=true;}}}},focus:function(){this.getDataTable()._focusEl(this.dropdown);},getInputValue:function(){var M=this.dropdown.options;if(this.multiple){var J=[],L=0,K=M.length;for(;L<K;L++){if(M[L].selected){J.push(M[L].value);}}return J;}else{return M[M.selectedIndex].value;}}});C.augmentObject(E.DropdownCellEditor,A);E.RadioCellEditor=function(J){this._sId="yui-radioceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.RadioCellEditor.superclass.constructor.call(this,"radio",J);};C.extend(E.RadioCellEditor,A,{radios:null,radioOptions:null,renderForm:function(){if(C.isArray(this.radioOptions)){var J,K,Q,N;for(var M=0,O=this.radioOptions.length;M<O;M++){J=this.radioOptions[M];K=C.isValue(J.value)?J.value:J;Q=this.getId()+"-radio"+M;this.getContainerEl().innerHTML+='<input type="radio"'+' name="'+this.getId()+'"'+' value="'+K+'"'+' id="'+Q+'" />';N=this.getContainerEl().appendChild(document.createElement("label"));N.htmlFor=Q;N.innerHTML=(C.isValue(J.label))?J.label:J;}var P=[],R;for(var L=0;L<O;L++){R=this.getContainerEl().childNodes[L*2];P[P.length]=R;}this.radios=P;if(this.disableBtns){this.handleDisabledBtns();}}else{}},handleDisabledBtns:function(){I.addListener(this.getContainerEl(),"click",function(J){if(I.getTarget(J).tagName.toLowerCase()==="input"){this.save();}},this,true);},resetForm:function(){for(var L=0,K=this.radios.length;L<K;L++){var J=this.radios[L];if(this.value===J.value){J.checked=true;return;}}},focus:function(){for(var K=0,J=this.radios.length;K<J;K++){if(this.radios[K].checked){this.radios[K].focus();return;}}},getInputValue:function(){for(var K=0,J=this.radios.length;K<J;K++){if(this.radios[K].checked){return this.radios[K].value;}}}});C.augmentObject(E.RadioCellEditor,A);E.TextareaCellEditor=function(J){this._sId="yui-textareaceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.TextareaCellEditor.superclass.constructor.call(this,"textarea",J);};C.extend(E.TextareaCellEditor,A,{textarea:null,renderForm:function(){var J=this.getContainerEl().appendChild(document.createElement("textarea"));this.textarea=J;if(this.disableBtns){this.handleDisabledBtns();}},handleDisabledBtns:function(){I.addListener(this.textarea,"blur",function(J){this.save();},this,true);},move:function(){this.textarea.style.width=this.getTdEl().offsetWidth+"px";this.textarea.style.height="3em";YAHOO.widget.TextareaCellEditor.superclass.move.call(this);},resetForm:function(){this.textarea.value=this.value;},focus:function(){this.getDataTable()._focusEl(this.textarea);this.textarea.select();},getInputValue:function(){return this.textarea.value;}});C.augmentObject(E.TextareaCellEditor,A);E.TextboxCellEditor=function(J){this._sId="yui-textboxceditor"+YAHOO.widget.BaseCellEditor._nCount++;E.TextboxCellEditor.superclass.constructor.call(this,"textbox",J);};C.extend(E.TextboxCellEditor,A,{textbox:null,renderForm:function(){var J;if(B.webkit>420){J=this.getContainerEl().appendChild(document.createElement("form")).appendChild(document.createElement("input"));}else{J=this.getContainerEl().appendChild(document.createElement("input"));}J.type="text";this.textbox=J;I.addListener(J,"keypress",function(K){if((K.keyCode===13)){YAHOO.util.Event.preventDefault(K);this.save();}},this,true);if(this.disableBtns){this.handleDisabledBtns();}},move:function(){this.textbox.style.width=this.getTdEl().offsetWidth+"px";E.TextboxCellEditor.superclass.move.call(this);},resetForm:function(){this.textbox.value=C.isValue(this.value)?this.value.toString():"";},focus:function(){this.getDataTable()._focusEl(this.textbox);this.textbox.select();},getInputValue:function(){return this.textbox.value;}});C.augmentObject(E.TextboxCellEditor,A);H.Editors={checkbox:E.CheckboxCellEditor,"date":E.DateCellEditor,dropdown:E.DropdownCellEditor,radio:E.RadioCellEditor,textarea:E.TextareaCellEditor,textbox:E.TextboxCellEditor};E.CellEditor=function(K,J){if(K&&H.Editors[K]){C.augmentObject(A,H.Editors[K]);return new H.Editors[K](J);}else{return new A(null,J);}};var G=E.CellEditor;C.augmentObject(G,A);})();YAHOO.register("datatable",YAHOO.widget.DataTable,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/datatable/datatable.js b/pylons_app/public/js/yui/datatable/datatable.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datatable/datatable.js
+@@ -0,0 +1,17122 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Mechanism to execute a series of callbacks in a non-blocking queue.  Each callback is executed via setTimout unless configured with a negative timeout, in which case it is run in blocking mode in the same execution thread as the previous callback.  Callbacks can be function references or object literals with the following keys:
++ * <ul>
++ *    <li><code>method</code> - {Function} REQUIRED the callback function.</li>
++ *    <li><code>scope</code> - {Object} the scope from which to execute the callback.  Default is the global window scope.</li>
++ *    <li><code>argument</code> - {Array} parameters to be passed to method as individual arguments.</li>
++ *    <li><code>timeout</code> - {number} millisecond delay to wait after previous callback completion before executing this callback.  Negative values cause immediate blocking execution.  Default 0.</li>
++ *    <li><code>until</code> - {Function} boolean function executed before each iteration.  Return true to indicate completion and proceed to the next callback.</li>
++ *    <li><code>iterations</code> - {Number} number of times to execute the callback before proceeding to the next callback in the chain. Incompatible with <code>until</code>.</li>
++ * </ul>
++ *
++ * @namespace YAHOO.util
++ * @class Chain
++ * @constructor
++ * @param callback* {Function|Object} Any number of callbacks to initialize the queue
++*/
++YAHOO.util.Chain = function () {
++    /**
++     * The callback queue
++     * @property q
++     * @type {Array}
++     * @private
++     */
++    this.q = [].slice.call(arguments);
++
++    /**
++     * Event fired when the callback queue is emptied via execution (not via
++     * a call to chain.stop().
++     * @event end
++     */
++    this.createEvent('end');
++};
++
++YAHOO.util.Chain.prototype = {
++    /**
++     * Timeout id used to pause or stop execution and indicate the execution state of the Chain.  0 indicates paused or stopped, -1 indicates blocking execution, and any positive number indicates non-blocking execution.
++     * @property id
++     * @type {number}
++     * @private
++     */
++    id   : 0,
++
++    /**
++     * Begin executing the chain, or resume execution from the last paused position.
++     * @method run
++     * @return {Chain} the Chain instance
++     */
++    run : function () {
++        // Grab the first callback in the queue
++        var c  = this.q[0],
++            fn;
++
++        // If there is no callback in the queue or the Chain is currently
++        // in an execution mode, return
++        if (!c) {
++            this.fireEvent('end');
++            return this;
++        } else if (this.id) {
++            return this;
++        }
++
++        fn = c.method || c;
++
++        if (typeof fn === 'function') {
++            var o    = c.scope || {},
++                args = c.argument || [],
++                ms   = c.timeout || 0,
++                me   = this;
++                
++            if (!(args instanceof Array)) {
++                args = [args];
++            }
++
++            // Execute immediately if the callback timeout is negative.
++            if (ms < 0) {
++                this.id = ms;
++                if (c.until) {
++                    for (;!c.until();) {
++                        // Execute the callback from scope, with argument
++                        fn.apply(o,args);
++                    }
++                } else if (c.iterations) {
++                    for (;c.iterations-- > 0;) {
++                        fn.apply(o,args);
++                    }
++                } else {
++                    fn.apply(o,args);
++                }
++                this.q.shift();
++                this.id = 0;
++                return this.run();
++            } else {
++                // If the until condition is set, check if we're done
++                if (c.until) {
++                    if (c.until()) {
++                        // Shift this callback from the queue and execute the next
++                        // callback
++                        this.q.shift();
++                        return this.run();
++                    }
++                // Otherwise if either iterations is not set or we're
++                // executing the last iteration, shift callback from the queue
++                } else if (!c.iterations || !--c.iterations) {
++                    this.q.shift();
++                }
++
++                // Otherwise set to execute after the configured timeout
++                this.id = setTimeout(function () {
++                    // Execute the callback from scope, with argument
++                    fn.apply(o,args);
++                    // Check if the Chain was not paused from inside the callback
++                    if (me.id) {
++                        // Indicate ready to run state
++                        me.id = 0;
++                        // Start the fun all over again
++                        me.run();
++                    }
++                },ms);
++            }
++        }
++
++        return this;
++    },
++    
++    /**
++     * Add a callback to the end of the queue
++     * @method add
++     * @param c {Function|Object} the callback function ref or object literal
++     * @return {Chain} the Chain instance
++     */
++    add  : function (c) {
++        this.q.push(c);
++        return this;
++    },
++
++    /**
++     * Pause the execution of the Chain after the current execution of the
++     * current callback completes.  If called interstitially, clears the
++     * timeout for the pending callback. Paused Chains can be restarted with
++     * chain.run()
++     * @method pause
++     * @return {Chain} the Chain instance
++     */
++    pause: function () {
++        // Conditional added for Caja compatibility
++        if (this.id > 0) {
++            clearTimeout(this.id);
++        }
++        this.id = 0;
++        return this;
++    },
++
++    /**
++     * Stop and clear the Chain's queue after the current execution of the
++     * current callback completes.
++     * @method stop
++     * @return {Chain} the Chain instance
++     */
++    stop : function () { 
++        this.pause();
++        this.q = [];
++        return this;
++    }
++};
++YAHOO.lang.augmentProto(YAHOO.util.Chain,YAHOO.util.EventProvider);
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The ColumnSet class defines and manages a DataTable's Columns,
++ * including nested hierarchies and access to individual Column instances.
++ *
++ * @namespace YAHOO.widget
++ * @class ColumnSet
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param aDefinitions {Object[]} Array of object literals that define cells in
++ * the THEAD.
++ */
++YAHOO.widget.ColumnSet = function(aDefinitions) {
++    this._sId = "yui-cs" + YAHOO.widget.ColumnSet._nCount;
++
++    // First clone the defs
++    aDefinitions = YAHOO.widget.DataTable._cloneObject(aDefinitions);
++    this._init(aDefinitions);
++
++    YAHOO.widget.ColumnSet._nCount++;
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Internal class variable to index multiple ColumnSet instances.
++ *
++ * @property ColumnSet._nCount
++ * @type Number
++ * @private
++ * @static
++ */
++YAHOO.widget.ColumnSet._nCount = 0;
++
++YAHOO.widget.ColumnSet.prototype = {
++    /**
++     * Unique instance name.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Array of object literal Column definitions passed to the constructor.
++     *
++     * @property _aDefinitions
++     * @type Object[]
++     * @private
++     */
++    _aDefinitions : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Top-down tree representation of Column hierarchy.
++     *
++     * @property tree
++     * @type YAHOO.widget.Column[]
++     */
++    tree : null,
++
++    /**
++     * Flattened representation of all Columns.
++     *
++     * @property flat
++     * @type YAHOO.widget.Column[]
++     * @default []
++     */
++    flat : null,
++
++    /**
++     * Array of Columns that map one-to-one to a table column.
++     *
++     * @property keys
++     * @type YAHOO.widget.Column[]
++     * @default []
++     */
++    keys : null,
++
++    /**
++     * ID index of nested parent hierarchies for HEADERS accessibility attribute.
++     *
++     * @property headers
++     * @type String[]
++     * @default []
++     */
++    headers : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Initializes ColumnSet instance with data from Column definitions.
++     *
++     * @method _init
++     * @param aDefinitions {Object[]} Array of object literals that define cells in
++     * the THEAD .
++     * @private
++     */
++
++    _init : function(aDefinitions) {        
++        // DOM tree representation of all Columns
++        var tree = [];
++        // Flat representation of all Columns
++        var flat = [];
++        // Flat representation of only Columns that are meant to display data
++        var keys = [];
++        // Array of HEADERS attribute values for all keys in the "keys" array
++        var headers = [];
++
++        // Tracks current node list depth being tracked
++        var nodeDepth = -1;
++
++        // Internal recursive function to define Column instances
++        var parseColumns = function(nodeList, parent) {
++            // One level down
++            nodeDepth++;
++
++            // Create corresponding tree node if not already there for this depth
++            if(!tree[nodeDepth]) {
++                tree[nodeDepth] = [];
++            }
++
++
++            // Parse each node at this depth for attributes and any children
++            for(var j=0; j<nodeList.length; j++) {
++                var currentNode = nodeList[j];
++
++                // Instantiate a new Column for each node
++                var oColumn = new YAHOO.widget.Column(currentNode);
++                
++                // Cross-reference Column ID back to the original object literal definition
++                currentNode.yuiColumnId = oColumn._sId;
++                
++                // Add the new Column to the flat list
++                flat.push(oColumn);
++
++                // Assign its parent as an attribute, if applicable
++                if(parent) {
++                    oColumn._oParent = parent;
++                }
++
++                // The Column has descendants
++                if(YAHOO.lang.isArray(currentNode.children)) {
++                    oColumn.children = currentNode.children;
++
++                    // Determine COLSPAN value for this Column
++                    var terminalChildNodes = 0;
++                    var countTerminalChildNodes = function(ancestor) {
++                        var descendants = ancestor.children;
++                        // Drill down each branch and count terminal nodes
++                        for(var k=0; k<descendants.length; k++) {
++                            // Keep drilling down
++                            if(YAHOO.lang.isArray(descendants[k].children)) {
++                                countTerminalChildNodes(descendants[k]);
++                            }
++                            // Reached branch terminus
++                            else {
++                                terminalChildNodes++;
++                            }
++                        }
++                    };
++                    countTerminalChildNodes(currentNode);
++                    oColumn._nColspan = terminalChildNodes;
++
++                    // Cascade certain properties to children if not defined on their own
++                    var currentChildren = currentNode.children;
++                    for(var k=0; k<currentChildren.length; k++) {
++                        var child = currentChildren[k];
++                        if(oColumn.className && (child.className === undefined)) {
++                            child.className = oColumn.className;
++                        }
++                        if(oColumn.editor && (child.editor === undefined)) {
++                            child.editor = oColumn.editor;
++                        }
++                        //TODO: Deprecated
++                        if(oColumn.editorOptions && (child.editorOptions === undefined)) {
++                            child.editorOptions = oColumn.editorOptions;
++                        }
++                        if(oColumn.formatter && (child.formatter === undefined)) {
++                            child.formatter = oColumn.formatter;
++                        }
++                        if(oColumn.resizeable && (child.resizeable === undefined)) {
++                            child.resizeable = oColumn.resizeable;
++                        }
++                        if(oColumn.sortable && (child.sortable === undefined)) {
++                            child.sortable = oColumn.sortable;
++                        }
++                        if(oColumn.hidden) {
++                            child.hidden = true;
++                        }
++                        if(oColumn.width && (child.width === undefined)) {
++                            child.width = oColumn.width;
++                        }
++                        if(oColumn.minWidth && (child.minWidth === undefined)) {
++                            child.minWidth = oColumn.minWidth;
++                        }
++                        if(oColumn.maxAutoWidth && (child.maxAutoWidth === undefined)) {
++                            child.maxAutoWidth = oColumn.maxAutoWidth;
++                        }
++                        // Backward compatibility
++                        if(oColumn.type && (child.type === undefined)) {
++                            child.type = oColumn.type;
++                        }
++                        if(oColumn.type && !oColumn.formatter) {
++                            oColumn.formatter = oColumn.type;
++                        }
++                        if(oColumn.text && !YAHOO.lang.isValue(oColumn.label)) {
++                            oColumn.label = oColumn.text;
++                        }
++                        if(oColumn.parser) {
++                        }
++                        if(oColumn.sortOptions && ((oColumn.sortOptions.ascFunction) ||
++                                (oColumn.sortOptions.descFunction))) {
++                        }
++                    }
++
++                    // The children themselves must also be parsed for Column instances
++                    if(!tree[nodeDepth+1]) {
++                        tree[nodeDepth+1] = [];
++                    }
++                    parseColumns(currentChildren, oColumn);
++                }
++                // This Column does not have any children
++                else {
++                    oColumn._nKeyIndex = keys.length;
++                    oColumn._nColspan = 1;
++                    keys.push(oColumn);
++                }
++
++                // Add the Column to the top-down tree
++                tree[nodeDepth].push(oColumn);
++            }
++            nodeDepth--;
++        };
++
++        // Parse out Column instances from the array of object literals
++        if(YAHOO.lang.isArray(aDefinitions)) {
++            parseColumns(aDefinitions);
++
++            // Store the array
++            this._aDefinitions = aDefinitions;
++        }
++        else {
++            return null;
++        }
++
++        var i;
++
++        // Determine ROWSPAN value for each Column in the tree
++        var parseTreeForRowspan = function(tree) {
++            var maxRowDepth = 1;
++            var currentRow;
++            var currentColumn;
++
++            // Calculate the max depth of descendants for this row
++            var countMaxRowDepth = function(row, tmpRowDepth) {
++                tmpRowDepth = tmpRowDepth || 1;
++
++                for(var n=0; n<row.length; n++) {
++                    var col = row[n];
++                    // Column has children, so keep counting
++                    if(YAHOO.lang.isArray(col.children)) {
++                        tmpRowDepth++;
++                        countMaxRowDepth(col.children, tmpRowDepth);
++                        tmpRowDepth--;
++                    }
++                    // No children, is it the max depth?
++                    else {
++                        if(tmpRowDepth > maxRowDepth) {
++                            maxRowDepth = tmpRowDepth;
++                        }
++                    }
++
++                }
++            };
++
++            // Count max row depth for each row
++            for(var m=0; m<tree.length; m++) {
++                currentRow = tree[m];
++                countMaxRowDepth(currentRow);
++
++                // Assign the right ROWSPAN values to each Column in the row
++                for(var p=0; p<currentRow.length; p++) {
++                    currentColumn = currentRow[p];
++                    if(!YAHOO.lang.isArray(currentColumn.children)) {
++                        currentColumn._nRowspan = maxRowDepth;
++                    }
++                    else {
++                        currentColumn._nRowspan = 1;
++                    }
++                }
++
++                // Reset counter for next row
++                maxRowDepth = 1;
++            }
++        };
++        parseTreeForRowspan(tree);
++
++        // Store tree index values
++        for(i=0; i<tree[0].length; i++) {
++            tree[0][i]._nTreeIndex = i;
++        }
++
++        // Store header relationships in an array for HEADERS attribute
++        var recurseAncestorsForHeaders = function(i, oColumn) {
++            headers[i].push(oColumn.getSanitizedKey());
++            if(oColumn._oParent) {
++                recurseAncestorsForHeaders(i, oColumn._oParent);
++            }
++        };
++        for(i=0; i<keys.length; i++) {
++            headers[i] = [];
++            recurseAncestorsForHeaders(i, keys[i]);
++            headers[i] = headers[i].reverse();
++        }
++
++        // Save to the ColumnSet instance
++        this.tree = tree;
++        this.flat = flat;
++        this.keys = keys;
++        this.headers = headers;
++    },
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique name of the ColumnSet instance.
++     *
++     * @method getId
++     * @return {String} Unique name of the ColumnSet instance.
++     */
++
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * ColumnSet instance name, for logging.
++     *
++     * @method toString
++     * @return {String} Unique name of the ColumnSet instance.
++     */
++
++    toString : function() {
++        return "ColumnSet instance " + this._sId;
++    },
++
++    /**
++     * Public accessor to the definitions array.
++     *
++     * @method getDefinitions
++     * @return {Object[]} Array of object literal Column definitions.
++     */
++
++    getDefinitions : function() {
++        var aDefinitions = this._aDefinitions;
++        
++        // Internal recursive function to define Column instances
++        var parseColumns = function(nodeList, oSelf) {
++            // Parse each node at this depth for attributes and any children
++            for(var j=0; j<nodeList.length; j++) {
++                var currentNode = nodeList[j];
++                
++                // Get the Column for each node
++                var oColumn = oSelf.getColumnById(currentNode.yuiColumnId);
++                
++                if(oColumn) {    
++                    // Update the current values
++                    var oDefinition = oColumn.getDefinition();
++                    for(var name in oDefinition) {
++                        if(YAHOO.lang.hasOwnProperty(oDefinition, name)) {
++                            currentNode[name] = oDefinition[name];
++                        }
++                    }
++                }
++                            
++                // The Column has descendants
++                if(YAHOO.lang.isArray(currentNode.children)) {
++                    // The children themselves must also be parsed for Column instances
++                    parseColumns(currentNode.children, oSelf);
++                }
++            }
++        };
++
++        parseColumns(aDefinitions, this);
++        this._aDefinitions = aDefinitions;
++        return aDefinitions;
++    },
++
++    /**
++     * Returns Column instance with given ID.
++     *
++     * @method getColumnById
++     * @param column {String} Column ID.
++     * @return {YAHOO.widget.Column} Column instance.
++     */
++
++    getColumnById : function(column) {
++        if(YAHOO.lang.isString(column)) {
++            var allColumns = this.flat;
++            for(var i=allColumns.length-1; i>-1; i--) {
++                if(allColumns[i]._sId === column) {
++                    return allColumns[i];
++                }
++            }
++        }
++        return null;
++    },
++
++    /**
++     * Returns Column instance with given key or ColumnSet key index.
++     *
++     * @method getColumn
++     * @param column {String | Number} Column key or ColumnSet key index.
++     * @return {YAHOO.widget.Column} Column instance.
++     */
++
++    getColumn : function(column) {
++        if(YAHOO.lang.isNumber(column) && this.keys[column]) {
++            return this.keys[column];
++        }
++        else if(YAHOO.lang.isString(column)) {
++            var allColumns = this.flat;
++            var aColumns = [];
++            for(var i=0; i<allColumns.length; i++) {
++                if(allColumns[i].key === column) {
++                    aColumns.push(allColumns[i]);
++                }
++            }
++            if(aColumns.length === 1) {
++                return aColumns[0];
++            }
++            else if(aColumns.length > 1) {
++                return aColumns;
++            }
++        }
++        return null;
++    },
++
++    /**
++     * Public accessor returns array of given Column's desendants (if any), including itself.
++     *
++     * @method getDescendants
++     * @parem {YAHOO.widget.Column} Column instance.
++     * @return {Array} Array including the Column itself and all descendants (if any).
++     */
++    getDescendants : function(oColumn) {
++        var oSelf = this;
++        var allDescendants = [];
++        var i;
++
++        // Recursive function to loop thru all children
++        var parse = function(oParent) {
++            allDescendants.push(oParent);
++            // This Column has children
++            if(oParent.children) {
++                for(i=0; i<oParent.children.length; i++) {
++                    parse(oSelf.getColumn(oParent.children[i].key));
++                }
++            }
++        };
++        parse(oColumn);
++
++        return allDescendants;
++    }
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The Column class defines and manages attributes of DataTable Columns
++ *
++ * @namespace YAHOO.widget
++ * @class Column
++ * @constructor
++ * @param oConfigs {Object} Object literal of definitions.
++ */
++YAHOO.widget.Column = function(oConfigs) {
++    this._sId = "yui-col" + YAHOO.widget.Column._nCount;
++    
++    // Object literal defines Column attributes
++    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
++        for(var sConfig in oConfigs) {
++            if(sConfig) {
++                this[sConfig] = oConfigs[sConfig];
++            }
++        }
++    }
++
++    // Assign a key if not found
++    if(!YAHOO.lang.isValue(this.key)) {
++        this.key = "yui-dt-col" + YAHOO.widget.Column._nCount;
++    }
++    
++    // Assign a field if not found, defaults to key
++    if(!YAHOO.lang.isValue(this.field)) {
++        this.field = this.key;
++    }
++
++    // Increment counter
++    YAHOO.widget.Column._nCount++;
++
++    // Backward compatibility
++    if(this.width && !YAHOO.lang.isNumber(this.width)) {
++        this.width = null;
++    }
++    if(this.editor && YAHOO.lang.isString(this.editor)) {
++        this.editor = new YAHOO.widget.CellEditor(this.editor, this.editorOptions);
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++YAHOO.lang.augmentObject(YAHOO.widget.Column, {
++    /**
++     * Internal class variable to index multiple Column instances.
++     *
++     * @property Column._nCount
++     * @type Number
++     * @private
++     * @static
++     */
++    _nCount : 0,
++
++    formatCheckbox : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatCheckbox(elCell, oRecord, oColumn, oData);
++    },
++
++    formatCurrency : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatCurrency(elCell, oRecord, oColumn, oData);
++    },
++
++    formatDate : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatDate(elCell, oRecord, oColumn, oData);
++    },
++
++    formatEmail : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatEmail(elCell, oRecord, oColumn, oData);
++    },
++
++    formatLink : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatLink(elCell, oRecord, oColumn, oData);
++    },
++
++    formatNumber : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatNumber(elCell, oRecord, oColumn, oData);
++    },
++
++    formatSelect : function(elCell, oRecord, oColumn, oData) {
++        YAHOO.widget.DataTable.formatDropdown(elCell, oRecord, oColumn, oData);
++    }
++});
++
++YAHOO.widget.Column.prototype = {
++    /**
++     * Unique String identifier assigned at instantiation.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Reference to Column's current position index within its ColumnSet's keys
++     * array, if applicable. This property only applies to non-nested and bottom-
++     * level child Columns.
++     *
++     * @property _nKeyIndex
++     * @type Number
++     * @private
++     */
++    _nKeyIndex : null,
++
++    /**
++     * Reference to Column's current position index within its ColumnSet's tree
++     * array, if applicable. This property only applies to non-nested and top-
++     * level parent Columns.
++     *
++     * @property _nTreeIndex
++     * @type Number
++     * @private
++     */
++    _nTreeIndex : null,
++
++    /**
++     * Number of table cells the Column spans.
++     *
++     * @property _nColspan
++     * @type Number
++     * @private
++     */
++    _nColspan : 1,
++
++    /**
++     * Number of table rows the Column spans.
++     *
++     * @property _nRowspan
++     * @type Number
++     * @private
++     */
++    _nRowspan : 1,
++
++    /**
++     * Column's parent Column instance, or null.
++     *
++     * @property _oParent
++     * @type YAHOO.widget.Column
++     * @private
++     */
++    _oParent : null,
++
++    /**
++     * The DOM reference to the associated TH element.
++     *
++     * @property _elTh
++     * @type HTMLElement
++     * @private
++     */
++    _elTh : null,
++
++    /**
++     * The DOM reference to the associated TH element's liner DIV element.
++     *
++     * @property _elThLiner
++     * @type HTMLElement
++     * @private
++     */
++    _elThLiner : null,
++
++    /**
++     * The DOM reference to the associated TH element's label SPAN element.
++     *
++     * @property _elThLabel
++     * @type HTMLElement
++     * @private
++     */
++    _elThLabel : null,
++
++    /**
++     * The DOM reference to the associated resizerelement (if any).
++     *
++     * @property _elResizer
++     * @type HTMLElement
++     * @private
++     */
++    _elResizer : null,
++
++    /**
++     * Internal width tracker.
++     *
++     * @property _nWidth
++     * @type Number
++     * @private
++     */
++    _nWidth : null,
++
++    /**
++     * For unreg() purposes, a reference to the Column's DragDrop instance.
++     *
++     * @property _dd
++     * @type YAHOO.util.DragDrop
++     * @private
++     */
++    _dd : null,
++
++    /**
++     * For unreg() purposes, a reference to the Column resizer's DragDrop instance.
++     *
++     * @property _ddResizer
++     * @type YAHOO.util.DragDrop
++     * @private
++     */
++    _ddResizer : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Unique name, required.
++     *
++     * @property key
++     * @type String
++     */
++    key : null,
++
++    /**
++     * Associated database field, or null.
++     *
++     * @property field
++     * @type String
++     */
++    field : null,
++
++    /**
++     * Text or HTML for display as Column's label in the TH element.
++     *
++     * @property label
++     * @type String
++     */
++    label : null,
++
++    /**
++     * Column head cell ABBR for accessibility.
++     *
++     * @property abbr
++     * @type String
++     */
++    abbr : null,
++
++    /**
++     * Array of object literals that define children (nested headers) of a Column.
++     *
++     * @property children
++     * @type Object[]
++     */
++    children : null,
++
++    /**
++     * Column width (in pixels).
++     *
++     * @property width
++     * @type Number
++     */
++    width : null,
++
++    /**
++     * Minimum Column width (in pixels).
++     *
++     * @property minWidth
++     * @type Number
++     * @default null
++     */
++    minWidth : null,
++
++    /**
++     * When a width is not defined for a Column, maxAutoWidth defines an upper
++     * limit that the Column should be auto-sized to. If resizeable is enabled, 
++     * users may still resize to a greater width. Most useful for Columns intended
++     * to hold long unbroken, unwrapped Strings, such as URLs, to prevent very
++     * wide Columns from disrupting visual readability by inducing truncation.
++     *
++     * @property maxAutoWidth
++     * @type Number
++     * @default null
++     */
++    maxAutoWidth : null,
++
++    /**
++     * True if Column is in hidden state.
++     *
++     * @property hidden
++     * @type Boolean
++     * @default false     
++     */
++    hidden : false,
++
++    /**
++     * True if Column is in selected state.
++     *
++     * @property selected
++     * @type Boolean
++     * @default false     
++     */
++    selected : false,
++
++    /**
++     * Custom CSS class or array of classes to be applied to every cell in the Column.
++     *
++     * @property className
++     * @type String || String[]
++     */
++    className : null,
++
++    /**
++     * Defines a format function.
++     *
++     * @property formatter
++     * @type String || HTMLFunction
++     */
++    formatter : null,
++    
++    /**
++     * Config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
++     *
++     * @property currencyOptions
++     * @type Object
++     * @default null
++     */
++    currencyOptions : null,
++
++    /**
++     * Config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
++     *
++     * @property dateOptions
++     * @type Object
++     * @default null
++     */
++    dateOptions : null,
++
++    /**
++     * Array of dropdown values for formatter:"dropdown" cases. Can either be a simple array (e.g.,
++     * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g.,
++     * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
++     * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]).
++     *
++     * @property dropdownOptions
++     * @type String[] | Object[]
++     */
++    dropdownOptions : null,
++     
++    /**
++     * A CellEditor instance, otherwise Column is not editable.     
++     *
++     * @property editor
++     * @type YAHOO.widget.CellEditor
++     */
++    editor : null,
++
++    /**
++     * True if Column is resizeable, false otherwise. The Drag & Drop Utility is
++     * required to enable this feature. Only bottom-level and non-nested Columns are
++     * resizeble. 
++     *
++     * @property resizeable
++     * @type Boolean
++     * @default false
++     */
++    resizeable : false,
++
++    /**
++     * True if Column is sortable, false otherwise.
++     *
++     * @property sortable
++     * @type Boolean
++     * @default false
++     */
++    sortable : false,
++
++    /**
++     * @property sortOptions.defaultOrder
++     * @deprecated Use sortOptions.defaultDir.
++     */
++    /**
++     * Default sort direction for Column: YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC.
++     *
++     * @property sortOptions.defaultDir
++     * @type String
++     * @default null
++     */
++    /**
++     * Custom field to sort on.
++     *
++     * @property sortOptions.field
++     * @type String
++     * @default null
++     */
++    /**
++     * Custom sort handler. Signature: sortFunction(a, b, desc, field) where field is the sortOptions.field value
++     *
++     * @property sortOptions.sortFunction
++     * @type Function
++     * @default null
++     */
++    sortOptions : null,
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique ID string.
++     *
++     * @method getId
++     * @return {String} Unique ID string.
++     */
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * Column instance name, for logging.
++     *
++     * @method toString
++     * @return {String} Column's unique name.
++     */
++    toString : function() {
++        return "Column instance " + this._sId;
++    },
++
++    /**
++     * Returns object literal definition.
++     *
++     * @method getDefinition
++     * @return {Object} Object literal definition.
++     */
++    getDefinition : function() {
++        var oDefinition = {};
++        
++        // Update the definition
++        oDefinition.abbr = this.abbr;
++        oDefinition.className = this.className;
++        oDefinition.editor = this.editor;
++        oDefinition.editorOptions = this.editorOptions; //TODO: deprecated
++        oDefinition.field = this.field;
++        oDefinition.formatter = this.formatter;
++        oDefinition.hidden = this.hidden;
++        oDefinition.key = this.key;
++        oDefinition.label = this.label;
++        oDefinition.minWidth = this.minWidth;
++        oDefinition.maxAutoWidth = this.maxAutoWidth;
++        oDefinition.resizeable = this.resizeable;
++        oDefinition.selected = this.selected;
++        oDefinition.sortable = this.sortable;
++        oDefinition.sortOptions = this.sortOptions;
++        oDefinition.width = this.width;
++
++        return oDefinition;
++    },
++
++    /**
++     * Returns unique Column key.
++     *
++     * @method getKey
++     * @return {String} Column key.
++     */
++    getKey : function() {
++        return this.key;
++    },
++    
++    /**
++     * Returns field.
++     *
++     * @method getField
++     * @return {String} Column field.
++     */
++    getField : function() {
++        return this.field;
++    },
++    
++    /**
++     * Returns Column key which has been sanitized for DOM (class and ID) usage
++     * starts with letter, contains only letters, numbers, hyphen, or period.
++     *
++     * @method getSanitizedKey
++     * @return {String} Sanitized Column key.
++     */
++    getSanitizedKey : function() {
++        return this.getKey().replace(/[^\w\-]/g,"");
++    },
++
++    /**
++     * Public accessor returns Column's current position index within its
++     * ColumnSet's keys array, if applicable. Only non-nested and bottom-level
++     * child Columns will return a value.
++     *
++     * @method getKeyIndex
++     * @return {Number} Position index, or null.
++     */
++    getKeyIndex : function() {
++        return this._nKeyIndex;
++    },
++
++    /**
++     * Public accessor returns Column's current position index within its
++     * ColumnSet's tree array, if applicable. Only non-nested and top-level parent
++     * Columns will return a value;
++     *
++     * @method getTreeIndex
++     * @return {Number} Position index, or null.
++     */
++    getTreeIndex : function() {
++        return this._nTreeIndex;
++    },
++
++    /**
++     * Public accessor returns Column's parent instance if any, or null otherwise.
++     *
++     * @method getParent
++     * @return {YAHOO.widget.Column} Column's parent instance.
++     */
++    getParent : function() {
++        return this._oParent;
++    },
++
++    /**
++     * Public accessor returns Column's calculated COLSPAN value.
++     *
++     * @method getColspan
++     * @return {Number} Column's COLSPAN value.
++     */
++    getColspan : function() {
++        return this._nColspan;
++    },
++    // Backward compatibility
++    getColSpan : function() {
++        return this.getColspan();
++    },
++
++    /**
++     * Public accessor returns Column's calculated ROWSPAN value.
++     *
++     * @method getRowspan
++     * @return {Number} Column's ROWSPAN value.
++     */
++    getRowspan : function() {
++        return this._nRowspan;
++    },
++
++    /**
++     * Returns DOM reference to the key TH element.
++     *
++     * @method getThEl
++     * @return {HTMLElement} TH element.
++     */
++    getThEl : function() {
++        return this._elTh;
++    },
++
++    /**
++     * Returns DOM reference to the TH's liner DIV element. Introduced since
++     * resizeable Columns may have an extra resizer liner, making the DIV liner
++     * not reliably the TH element's first child.               
++     *
++     * @method getThLInerEl
++     * @return {HTMLElement} TH element.
++     */
++    getThLinerEl : function() {
++        return this._elThLiner;
++    },
++    
++    /**
++     * Returns DOM reference to the resizer element, or null.
++     *
++     * @method getResizerEl
++     * @return {HTMLElement} DIV element.
++     */
++    getResizerEl : function() {
++        return this._elResizer;
++    },
++
++    // Backward compatibility
++    /**
++     * @method getColEl
++     * @deprecated Use getThEl
++     */
++    getColEl : function() {
++        return this.getThEl();
++    },
++    getIndex : function() {
++        return this.getKeyIndex();
++    },
++    format : function() {
++    }
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * Sort static utility to support Column sorting.
++ *
++ * @namespace YAHOO.util
++ * @class Sort
++ * @static
++ */
++YAHOO.util.Sort = {
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Comparator function for simple case-insensitive string sorting.
++     *
++     * @method compare
++     * @param a {Object} First sort argument.
++     * @param b {Object} Second sort argument.
++     * @param desc {Boolean} True if sort direction is descending, false if
++     * sort direction is ascending.
++     */
++    compare: function(a, b, desc) {
++        if((a === null) || (typeof a == "undefined")) {
++            if((b === null) || (typeof b == "undefined")) {
++                return 0;
++            }
++            else {
++                return 1;
++            }
++        }
++        else if((b === null) || (typeof b == "undefined")) {
++            return -1;
++        }
++
++        if(a.constructor == String) {
++            a = a.toLowerCase();
++        }
++        if(b.constructor == String) {
++            b = b.toLowerCase();
++        }
++        if(a < b) {
++            return (desc) ? 1 : -1;
++        }
++        else if (a > b) {
++            return (desc) ? -1 : 1;
++        }
++        else {
++            return 0;
++        }
++    }
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * ColumnDD subclasses DragDrop to support rearrangeable Columns.
++ *
++ * @namespace YAHOO.util
++ * @class ColumnDD
++ * @extends YAHOO.util.DDProxy
++ * @constructor
++ * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param elTh {HTMLElement} TH element reference.
++ * @param elTarget {HTMLElement} Drag target element.
++ */
++YAHOO.widget.ColumnDD = function(oDataTable, oColumn, elTh, elTarget) {
++    if(oDataTable && oColumn && elTh && elTarget) {
++        this.datatable = oDataTable;
++        this.table = oDataTable.getTableEl();
++        this.column = oColumn;
++        this.headCell = elTh;
++        this.pointer = elTarget;
++        this.newIndex = null;
++        this.init(elTh);
++        this.initFrame(); // Needed for DDProxy
++        this.invalidHandleTypes = {};
++
++        // Set top/bottom padding to account for children of nested columns
++        this.setPadding(10, 0, (this.datatable.getTheadEl().offsetHeight + 10) , 0);
++
++        YAHOO.util.Event.on(window, 'resize', function() {
++            this.initConstraints();
++        }, this, true);
++    }
++    else {
++    }
++};
++
++if(YAHOO.util.DDProxy) {
++    YAHOO.extend(YAHOO.widget.ColumnDD, YAHOO.util.DDProxy, {
++        initConstraints: function() {
++            //Get the top, right, bottom and left positions
++            var region = YAHOO.util.Dom.getRegion(this.table),
++                //Get the element we are working on
++                el = this.getEl(),
++                //Get the xy position of it
++                xy = YAHOO.util.Dom.getXY(el),
++                //Get the width and height
++                width = parseInt(YAHOO.util.Dom.getStyle(el, 'width'), 10),
++                height = parseInt(YAHOO.util.Dom.getStyle(el, 'height'), 10),
++                //Set left to x minus left
++                left = ((xy[0] - region.left) + 15), //Buffer of 15px
++                //Set right to right minus x minus width
++                right = ((region.right - xy[0] - width) + 15);
++    
++            //Set the constraints based on the above calculations
++            this.setXConstraint(left, right);
++            this.setYConstraint(10, 10);            
++        },
++        _resizeProxy: function() {
++            YAHOO.widget.ColumnDD.superclass._resizeProxy.apply(this, arguments);
++            var dragEl = this.getDragEl(),
++                el = this.getEl();
++
++            YAHOO.util.Dom.setStyle(this.pointer, 'height', (this.table.parentNode.offsetHeight + 10) + 'px');
++            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'block');
++            var xy = YAHOO.util.Dom.getXY(el);
++            YAHOO.util.Dom.setXY(this.pointer, [xy[0], (xy[1] - 5)]);
++            
++            YAHOO.util.Dom.setStyle(dragEl, 'height', this.datatable.getContainerEl().offsetHeight + "px");
++            YAHOO.util.Dom.setStyle(dragEl, 'width', (parseInt(YAHOO.util.Dom.getStyle(dragEl, 'width'),10) + 4) + 'px');
++            YAHOO.util.Dom.setXY(this.dragEl, xy);
++        },
++        onMouseDown: function() {
++                this.initConstraints();
++                this.resetConstraints();
++        },
++        clickValidator: function(e) {
++            if(!this.column.hidden) {
++                var target = YAHOO.util.Event.getTarget(e);
++                return ( this.isValidHandleChild(target) &&
++                            (this.id == this.handleElId ||
++                                this.DDM.handleWasClicked(target, this.id)) );
++            }
++        },
++        onDragOver: function(ev, id) {
++            // Validate target as a Column
++            var target = this.datatable.getColumn(id);
++            if(target) {                
++                // Validate target as a top-level parent
++                var targetIndex = target.getTreeIndex();
++                while((targetIndex === null) && target.getParent()) {
++                    target = target.getParent();
++                    targetIndex = target.getTreeIndex();
++                }
++                if(targetIndex !== null) {
++                    // Are we placing to left or right of target?
++                    var elTarget = target.getThEl();
++                    var newIndex = targetIndex;
++                    var mouseX = YAHOO.util.Event.getPageX(ev),
++                        targetX = YAHOO.util.Dom.getX(elTarget),
++                        midX = targetX + ((YAHOO.util.Dom.get(elTarget).offsetWidth)/2),
++                        currentIndex =  this.column.getTreeIndex();
++                    
++                    if (mouseX < midX) {
++                       YAHOO.util.Dom.setX(this.pointer, targetX);
++                    } else {
++                        var targetWidth = parseInt(elTarget.offsetWidth, 10);
++                        YAHOO.util.Dom.setX(this.pointer, (targetX + targetWidth));
++                        newIndex++;
++                    }
++                    if (targetIndex > currentIndex) {
++                        newIndex--;
++                    }
++                    if(newIndex < 0) {
++                        newIndex = 0;
++                    }
++                    else if(newIndex > this.datatable.getColumnSet().tree[0].length) {
++                        newIndex = this.datatable.getColumnSet().tree[0].length;
++                    }
++                    this.newIndex = newIndex;
++                }
++            }
++        },
++        onDragDrop: function() {
++            this.datatable.reorderColumn(this.column, this.newIndex);
++        },
++        endDrag: function() {
++            this.newIndex = null;
++            YAHOO.util.Dom.setStyle(this.pointer, 'display', 'none');
++        }
++    });
++}
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * ColumnResizer subclasses DragDrop to support resizeable Columns.
++ *
++ * @namespace YAHOO.util
++ * @class ColumnResizer
++ * @extends YAHOO.util.DDProxy
++ * @constructor
++ * @param oDataTable {YAHOO.widget.DataTable} DataTable instance.
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param elTh {HTMLElement} TH element reference.
++ * @param sHandleElId {String} DOM ID of the handle element that causes the resize.
++ * @param elProxy {HTMLElement} Resizer proxy element.
++ */
++YAHOO.util.ColumnResizer = function(oDataTable, oColumn, elTh, sHandleId, elProxy) {
++    if(oDataTable && oColumn && elTh && sHandleId) {
++        this.datatable = oDataTable;
++        this.column = oColumn;
++        this.headCell = elTh;
++        this.headCellLiner = oColumn.getThLinerEl();
++        this.resizerLiner = elTh.firstChild;
++        this.init(sHandleId, sHandleId, {dragOnly:true, dragElId: elProxy.id});
++        this.initFrame(); // Needed for proxy
++        this.resetResizerEl(); // Needed when rowspan > 0
++
++        // Set right padding for bug 1858462
++        this.setPadding(0, 1, 0, 0);
++    }
++    else {
++    }
++};
++
++if(YAHOO.util.DD) {
++    YAHOO.extend(YAHOO.util.ColumnResizer, YAHOO.util.DDProxy, {
++        /////////////////////////////////////////////////////////////////////////////
++        //
++        // Public methods
++        //
++        /////////////////////////////////////////////////////////////////////////////
++        /**
++         * Resets resizer element.
++         *
++         * @method resetResizerEl
++         */
++        resetResizerEl : function() {
++            var resizerStyle = YAHOO.util.Dom.get(this.handleElId).style;
++            resizerStyle.left = "auto";
++            resizerStyle.right = 0;
++            resizerStyle.top = "auto";
++            resizerStyle.bottom = 0;
++            resizerStyle.height = this.headCell.offsetHeight+"px";
++        },
++    
++        /////////////////////////////////////////////////////////////////////////////
++        //
++        // Public DOM event handlers
++        //
++        /////////////////////////////////////////////////////////////////////////////
++    
++        /**
++         * Handles mouseup events on the Column resizer.
++         *
++         * @method onMouseUp
++         * @param e {string} The mouseup event
++         */
++        onMouseUp : function(e) {
++            // Reset height of all resizer els in case TH's have changed height
++            var allKeys = this.datatable.getColumnSet().keys,
++                col;
++            for(var i=0, len=allKeys.length; i<len; i++) {
++                col = allKeys[i];
++                if(col._ddResizer) {
++                    col._ddResizer.resetResizerEl();
++                }
++            }
++            this.resetResizerEl();
++            
++            var el = this.headCellLiner;
++            var newWidth = el.offsetWidth -
++                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingLeft"),10)|0) -
++                (parseInt(YAHOO.util.Dom.getStyle(el,"paddingRight"),10)|0);
++
++            this.datatable.fireEvent("columnResizeEvent", {column:this.column,target:this.headCell,width:newWidth});
++        },
++    
++        /**
++         * Handles mousedown events on the Column resizer.
++         *
++         * @method onMouseDown
++         * @param e {string} The mousedown event
++         */
++        onMouseDown : function(e) {
++            this.startWidth = this.headCellLiner.offsetWidth;
++            this.startX = YAHOO.util.Event.getXY(e)[0];
++            this.nLinerPadding = (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingLeft"),10)|0) +
++                    (parseInt(YAHOO.util.Dom.getStyle(this.headCellLiner,"paddingRight"),10)|0);
++        },
++    
++        /**
++         * Custom clickValidator to ensure Column is not in hidden state.
++         *
++         * @method clickValidator
++         * @param {Event} e
++         * @private
++         */
++        clickValidator : function(e) {
++            if(!this.column.hidden) {
++                var target = YAHOO.util.Event.getTarget(e);
++                return ( this.isValidHandleChild(target) &&
++                            (this.id == this.handleElId ||
++                                this.DDM.handleWasClicked(target, this.id)) );
++            }
++        },
++    
++        /**
++         * Handles start drag on the Column resizer.
++         *
++         * @method startDrag
++         * @param e {string} The drag event
++         */
++        startDrag : function() {
++            // Shrinks height of all resizer els to not hold open TH els
++            var allKeys = this.datatable.getColumnSet().keys,
++                thisKey = this.column.getKeyIndex(),
++                col;
++            for(var i=0, len=allKeys.length; i<len; i++) {
++                col = allKeys[i];
++                if(col._ddResizer) {
++                    YAHOO.util.Dom.get(col._ddResizer.handleElId).style.height = "1em";
++                }
++            }
++        },
++
++        /**
++         * Handles drag events on the Column resizer.
++         *
++         * @method onDrag
++         * @param e {string} The drag event
++         */
++        onDrag : function(e) {
++            var newX = YAHOO.util.Event.getXY(e)[0];
++            if(newX > YAHOO.util.Dom.getX(this.headCellLiner)) {
++                var offsetX = newX - this.startX;
++                var newWidth = this.startWidth + offsetX - this.nLinerPadding;
++                if(newWidth > 0) {
++                    this.datatable.setColumnWidth(this.column, newWidth);
++                }
++            }
++        }
++    });
++}
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * @property editorOptions
++ * @deprecated Pass configs directly to CellEditor constructor. 
++ */
++
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    DT     = widget.DataTable;
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * A RecordSet defines and manages a set of Records.
++ *
++ * @namespace YAHOO.widget
++ * @class RecordSet
++ * @param data {Object || Object[]} An object literal or an array of data.
++ * @constructor
++ */
++YAHOO.widget.RecordSet = function(data) {
++    // Internal variables
++    this._sId = "yui-rs" + widget.RecordSet._nCount;
++    widget.RecordSet._nCount++;
++    this._records = [];
++    //this._length = 0;
++
++    if(data) {
++        if(lang.isArray(data)) {
++            this.addRecords(data);
++        }
++        else if(lang.isObject(data)) {
++            this.addRecord(data);
++        }
++    }
++
++};
++
++var RS = widget.RecordSet;
++
++/**
++ * Internal class variable to name multiple Recordset instances.
++ *
++ * @property RecordSet._nCount
++ * @type Number
++ * @private
++ * @static
++ */
++RS._nCount = 0;
++
++RS.prototype = {
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * Unique String identifier assigned at instantiation.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Internal counter of how many Records are in the RecordSet.
++     *
++     * @property _length
++     * @type Number
++     * @private
++     * @deprecated No longer used
++     */
++    //_length : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Adds one Record to the RecordSet at the given index. If index is null,
++     * then adds the Record to the end of the RecordSet.
++     *
++     * @method _addRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     * @private
++     */
++    _addRecord : function(oData, index) {
++        var oRecord = new YAHOO.widget.Record(oData);
++        
++        if(YAHOO.lang.isNumber(index) && (index > -1)) {
++            this._records.splice(index,0,oRecord);
++        }
++        else {
++            //index = this.getLength();
++            //this._records[index] = oRecord;
++            this._records[this._records.length] = oRecord;
++        }
++        //this._length++;
++        return oRecord;
++    },
++
++    /**
++     * Sets/replaces one Record to the RecordSet at the given index.  Existing
++     * Records with higher indexes are not shifted.  If no index specified, the
++     * Record is added to the end of the RecordSet.
++     *
++     * @method _setRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     * @private
++     */
++    _setRecord : function(oData, index) {
++        if (!lang.isNumber(index) || index < 0) {
++            index = this._records.length;
++        }
++        return (this._records[index] = new widget.Record(oData));
++        /*
++        if(lang.isNumber(index) && (index > -1)) {
++            this._records[index] = oRecord;
++            if((index+1) > this.getLength()) {
++                this._length = index+1;
++            }
++        }
++        else {
++            this._records[this.getLength()] = oRecord;
++            this._length++;
++        }
++        return oRecord;
++        */
++    },
++
++    /**
++     * Deletes Records from the RecordSet at the given index. If range is null,
++     * then only one Record is deleted.
++     *
++     * @method _deleteRecord
++     * @param index {Number} Position index.
++     * @param range {Number} (optional) How many Records to delete
++     * @private
++     */
++    _deleteRecord : function(index, range) {
++        if(!lang.isNumber(range) || (range < 0)) {
++            range = 1;
++        }
++        this._records.splice(index, range);
++        //this._length = this._length - range;
++    },
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique name of the RecordSet instance.
++     *
++     * @method getId
++     * @return {String} Unique name of the RecordSet instance.
++     */
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * Public accessor to the unique name of the RecordSet instance.
++     *
++     * @method toString
++     * @return {String} Unique name of the RecordSet instance.
++     */
++    toString : function() {
++        return "RecordSet instance " + this._sId;
++    },
++
++    /**
++     * Returns the number of Records held in the RecordSet.
++     *
++     * @method getLength
++     * @return {Number} Number of records in the RecordSet.
++     */
++    getLength : function() {
++            //return this._length;
++            return this._records.length;
++    },
++
++    /**
++     * Returns Record by ID or RecordSet position index.
++     *
++     * @method getRecord
++     * @param record {YAHOO.widget.Record | Number | String} Record instance,
++     * RecordSet position index, or Record ID.
++     * @return {YAHOO.widget.Record} Record object.
++     */
++    getRecord : function(record) {
++        var i;
++        if(record instanceof widget.Record) {
++            for(i=0; i<this._records.length; i++) {
++                if(this._records[i] && (this._records[i]._sId === record._sId)) {
++                    return record;
++                }
++            }
++        }
++        else if(lang.isNumber(record)) {
++            if((record > -1) && (record < this.getLength())) {
++                return this._records[record];
++            }
++        }
++        else if(lang.isString(record)) {
++            for(i=0; i<this._records.length; i++) {
++                if(this._records[i] && (this._records[i]._sId === record)) {
++                    return this._records[i];
++                }
++            }
++        }
++        // Not a valid Record for this RecordSet
++        return null;
++
++    },
++
++    /**
++     * Returns an array of Records from the RecordSet.
++     *
++     * @method getRecords
++     * @param index {Number} (optional) Recordset position index of which Record to
++     * start at.
++     * @param range {Number} (optional) Number of Records to get.
++     * @return {YAHOO.widget.Record[]} Array of Records starting at given index and
++     * length equal to given range. If index is not given, all Records are returned.
++     */
++    getRecords : function(index, range) {
++        if(!lang.isNumber(index)) {
++            return this._records;
++        }
++        if(!lang.isNumber(range)) {
++            return this._records.slice(index);
++        }
++        return this._records.slice(index, index+range);
++    },
++
++    /**
++     * Returns a boolean indicating whether Records exist in the RecordSet at the
++     * specified index range.  Returns true if and only if a Record exists at each
++     * index in the range.
++     * @method hasRecords
++     * @param index
++     * @param range
++     * @return {Boolean} true if all indices are populated in the RecordSet
++     */
++    hasRecords : function (index, range) {
++        var recs = this.getRecords(index,range);
++        for (var i = 0; i < range; ++i) {
++            if (typeof recs[i] === 'undefined') {
++                return false;
++            }
++        }
++        return true;
++    },
++
++    /**
++     * Returns current position index for the given Record.
++     *
++     * @method getRecordIndex
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @return {Number} Record's RecordSet position index.
++     */
++
++    getRecordIndex : function(oRecord) {
++        if(oRecord) {
++            for(var i=this._records.length-1; i>-1; i--) {
++                if(this._records[i] && oRecord.getId() === this._records[i].getId()) {
++                    return i;
++                }
++            }
++        }
++        return null;
++
++    },
++
++    /**
++     * Adds one Record to the RecordSet at the given index. If index is null,
++     * then adds the Record to the end of the RecordSet.
++     *
++     * @method addRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     */
++    addRecord : function(oData, index) {
++        if(lang.isObject(oData)) {
++            var oRecord = this._addRecord(oData, index);
++            this.fireEvent("recordAddEvent",{record:oRecord,data:oData});
++            return oRecord;
++        }
++        else {
++            return null;
++        }
++    },
++
++    /**
++     * Adds multiple Records at once to the RecordSet at the given index with the
++     * given object literal data. If index is null, then the new Records are
++     * added to the end of the RecordSet.
++     *
++     * @method addRecords
++     * @param aData {Object[]} An object literal data or an array of data object literals.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record[]} An array of Record instances.
++     */
++    addRecords : function(aData, index) {
++        if(lang.isArray(aData)) {
++            var newRecords = [],
++                idx,i,len;
++
++            index = lang.isNumber(index) ? index : this._records.length;
++            idx = index;
++
++            // Can't go backwards bc we need to preserve order
++            for(i=0,len=aData.length; i<len; ++i) {
++                if(lang.isObject(aData[i])) {
++                    var record = this._addRecord(aData[i], idx++);
++                    newRecords.push(record);
++                }
++           }
++            this.fireEvent("recordsAddEvent",{records:newRecords,data:aData});
++           return newRecords;
++        }
++        else if(lang.isObject(aData)) {
++            var oRecord = this._addRecord(aData);
++            this.fireEvent("recordsAddEvent",{records:[oRecord],data:aData});
++            return oRecord;
++        }
++        else {
++            return null;
++        }
++    },
++
++    /**
++     * Sets or replaces one Record to the RecordSet at the given index. Unlike
++     * addRecord, an existing Record at that index is not shifted to preserve it.
++     * If no index is specified, it adds the Record to the end of the RecordSet.
++     *
++     * @method setRecord
++     * @param oData {Object} An object literal of data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record} A Record instance.
++     */
++    setRecord : function(oData, index) {
++        if(lang.isObject(oData)) {
++            var oRecord = this._setRecord(oData, index);
++            this.fireEvent("recordSetEvent",{record:oRecord,data:oData});
++            return oRecord;
++        }
++        else {
++            return null;
++        }
++    },
++
++    /**
++     * Sets or replaces multiple Records at once to the RecordSet with the given
++     * data, starting at the given index. If index is not specified, then the new
++     * Records are added to the end of the RecordSet.
++     *
++     * @method setRecords
++     * @param aData {Object[]} An array of object literal data.
++     * @param index {Number} (optional) Position index.
++     * @return {YAHOO.widget.Record[]} An array of Record instances.
++     */
++    setRecords : function(aData, index) {
++        var Rec   = widget.Record,
++            a     = lang.isArray(aData) ? aData : [aData],
++            added = [],
++            i = 0, l = a.length, j = 0;
++
++        index = parseInt(index,10)|0;
++
++        for(; i < l; ++i) {
++            if (typeof a[i] === 'object' && a[i]) {
++                added[j++] = this._records[index + i] = new Rec(a[i]);
++            }
++        }
++
++        this.fireEvent("recordsSetEvent",{records:added,data:aData});
++        // Backward compatibility for bug 1918245
++        this.fireEvent("recordsSet",{records:added,data:aData});
++
++        if (a.length && !added.length) {
++        }
++
++        return added.length > 1 ? added : added[0];
++    },
++
++    /**
++     * Updates given Record with given data.
++     *
++     * @method updateRecord
++     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
++     * a RecordSet position index, or a Record ID.
++     * @param oData {Object} Object literal of new data.
++     * @return {YAHOO.widget.Record} Updated Record, or null.
++     */
++    updateRecord : function(record, oData) {
++        var oRecord = this.getRecord(record);
++        if(oRecord && lang.isObject(oData)) {
++            // Copy data from the Record for the event that gets fired later
++            var oldData = {};
++            for(var key in oRecord._oData) {
++                if(lang.hasOwnProperty(oRecord._oData, key)) {
++                    oldData[key] = oRecord._oData[key];
++                }
++            }
++            oRecord._oData = oData;
++            this.fireEvent("recordUpdateEvent",{record:oRecord,newData:oData,oldData:oldData});
++            return oRecord;
++        }
++        else {
++            return null;
++        }
++    },
++
++    /**
++     * @method updateKey
++     * @deprecated Use updateRecordValue
++     */
++    updateKey : function(record, sKey, oData) {
++        this.updateRecordValue(record, sKey, oData);
++    },
++    /**
++     * Sets given Record at given key to given data.
++     *
++     * @method updateRecordValue
++     * @param record {YAHOO.widget.Record | Number | String} A Record instance,
++     * a RecordSet position index, or a Record ID.
++     * @param sKey {String} Key name.
++     * @param oData {Object} New data.
++     */
++    updateRecordValue : function(record, sKey, oData) {
++        var oRecord = this.getRecord(record);
++        if(oRecord) {
++            var oldData = null;
++            var keyValue = oRecord._oData[sKey];
++            // Copy data from the Record for the event that gets fired later
++            if(keyValue && lang.isObject(keyValue)) {
++                oldData = {};
++                for(var key in keyValue)  {
++                    if(lang.hasOwnProperty(keyValue, key)) {
++                        oldData[key] = keyValue[key];
++                    }
++                }
++            }
++            // Copy by value
++            else {
++                oldData = keyValue;
++            }
++
++            oRecord._oData[sKey] = oData;
++            this.fireEvent("keyUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
++            this.fireEvent("recordValueUpdateEvent",{record:oRecord,key:sKey,newData:oData,oldData:oldData});
++        }
++        else {
++        }
++    },
++
++    /**
++     * Replaces all Records in RecordSet with new object literal data.
++     *
++     * @method replaceRecords
++     * @param data {Object || Object[]} An object literal of data or an array of
++     * data object literals.
++     * @return {YAHOO.widget.Record || YAHOO.widget.Record[]} A Record instance or
++     * an array of Records.
++     */
++    replaceRecords : function(data) {
++        this.reset();
++        return this.addRecords(data);
++    },
++
++    /**
++     * Sorts all Records by given function. Records keep their unique IDs but will
++     * have new RecordSet position indexes.
++     *
++     * @method sortRecords
++     * @param fnSort {Function} Reference to a sort function.
++     * @param desc {Boolean} True if sort direction is descending, false if sort
++     * direction is ascending.
++     * @param field {String} The field to sort by, from sortOptions.field
++     * @return {YAHOO.widget.Record[]} Sorted array of Records.
++     */
++    sortRecords : function(fnSort, desc, field) {
++        return this._records.sort(function(a, b) {return fnSort(a, b, desc, field);});
++    },
++
++    /**
++     * Reverses all Records, so ["one", "two", "three"] becomes ["three", "two", "one"].
++     *
++     * @method reverseRecords
++     * @return {YAHOO.widget.Record[]} Reverse-sorted array of Records.
++     */
++    reverseRecords : function() {
++        return this._records.reverse();
++    },
++
++    /**
++     * Removes the Record at the given position index from the RecordSet. If a range
++     * is also provided, removes that many Records, starting from the index. Length
++     * of RecordSet is correspondingly shortened.
++     *
++     * @method deleteRecord
++     * @param index {Number} Record's RecordSet position index.
++     * @param range {Number} (optional) How many Records to delete.
++     * @return {Object} A copy of the data held by the deleted Record.
++     */
++    deleteRecord : function(index) {
++        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
++            // Copy data from the Record for the event that gets fired later
++            var oData = widget.DataTable._cloneObject(this.getRecord(index).getData());
++            
++            this._deleteRecord(index);
++            this.fireEvent("recordDeleteEvent",{data:oData,index:index});
++            return oData;
++        }
++        else {
++            return null;
++        }
++    },
++
++    /**
++     * Removes the Record at the given position index from the RecordSet. If a range
++     * is also provided, removes that many Records, starting from the index. Length
++     * of RecordSet is correspondingly shortened.
++     *
++     * @method deleteRecords
++     * @param index {Number} Record's RecordSet position index.
++     * @param range {Number} (optional) How many Records to delete.
++     * @return {Object[]} An array of copies of the data held by the deleted Records.     
++     */
++    deleteRecords : function(index, range) {
++        if(!lang.isNumber(range)) {
++            range = 1;
++        }
++        if(lang.isNumber(index) && (index > -1) && (index < this.getLength())) {
++            var recordsToDelete = this.getRecords(index, range);
++            // Copy data from each Record for the event that gets fired later
++            var deletedData = [];
++            
++            for(var i=0; i<recordsToDelete.length; i++) {
++                deletedData[deletedData.length] = widget.DataTable._cloneObject(recordsToDelete[i]);
++            }
++            this._deleteRecord(index, range);
++
++            this.fireEvent("recordsDeleteEvent",{data:deletedData,index:index});
++
++            return deletedData;
++        }
++        else {
++            return null;
++        }
++    },
++
++    /**
++     * Deletes all Records from the RecordSet.
++     *
++     * @method reset
++     */
++    reset : function() {
++        this._records = [];
++        //this._length = 0;
++        this.fireEvent("resetEvent");
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Custom Events
++//
++/////////////////////////////////////////////////////////////////////////////
++
++// RecordSet uses EventProvider
++lang.augmentProto(RS, util.EventProvider);
++
++/**
++ * Fired when a new Record is added to the RecordSet.
++ *
++ * @event recordAddEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.data {Object} Data added.
++ */
++
++/**
++ * Fired when multiple Records are added to the RecordSet at once.
++ *
++ * @event recordsAddEvent
++ * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
++ * @param oArgs.data {Object[]} Data added.
++ */
++
++/**
++ * Fired when a Record is set in the RecordSet.
++ *
++ * @event recordSetEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.data {Object} Data added.
++ */
++
++/**
++ * Fired when multiple Records are set in the RecordSet at once.
++ *
++ * @event recordsSetEvent
++ * @param oArgs.records {YAHOO.widget.Record[]} An array of Record instances.
++ * @param oArgs.data {Object[]} Data added.
++ */
++
++/**
++ * Fired when a Record is updated with new data.
++ *
++ * @event recordUpdateEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.newData {Object} New data.
++ * @param oArgs.oldData {Object} Old data.
++ */
++
++/**
++ * Fired when a Record is deleted from the RecordSet.
++ *
++ * @event recordDeleteEvent
++ * @param oArgs.data {Object} A copy of the data held by the Record,
++ * or an array of data object literals if multiple Records were deleted at once.
++ * @param oArgs.index {Object} Index of the deleted Record.
++ */
++
++/**
++ * Fired when multiple Records are deleted from the RecordSet at once.
++ *
++ * @event recordsDeleteEvent
++ * @param oArgs.data {Object[]} An array of data object literals copied
++ * from the Records.
++ * @param oArgs.index {Object} Index of the first deleted Record.
++ */
++
++/**
++ * Fired when all Records are deleted from the RecordSet at once.
++ *
++ * @event resetEvent
++ */
++
++/**
++ * @event keyUpdateEvent    
++ * @deprecated Use recordValueUpdateEvent     
++ */
++
++/**
++ * Fired when a Record value is updated with new data.
++ *
++ * @event recordValueUpdateEvent
++ * @param oArgs.record {YAHOO.widget.Record} The Record instance.
++ * @param oArgs.key {String} The updated key.
++ * @param oArgs.newData {Object} New data.
++ * @param oArgs.oldData {Object} Old data.
++ *
++ */
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The Record class defines a DataTable record.
++ *
++ * @namespace YAHOO.widget
++ * @class Record
++ * @constructor
++ * @param oConfigs {Object} (optional) Object literal of key/value pairs.
++ */
++YAHOO.widget.Record = function(oLiteral) {
++    this._nCount = widget.Record._nCount;
++    this._sId = "yui-rec" + this._nCount;
++    widget.Record._nCount++;
++    this._oData = {};
++    if(lang.isObject(oLiteral)) {
++        for(var sKey in oLiteral) {
++            if(lang.hasOwnProperty(oLiteral, sKey)) {
++                this._oData[sKey] = oLiteral[sKey];
++            }
++        }
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Internal class variable to give unique IDs to Record instances.
++ *
++ * @property Record._nCount
++ * @type Number
++ * @private
++ */
++YAHOO.widget.Record._nCount = 0;
++
++YAHOO.widget.Record.prototype = {
++    /**
++     * Immutable unique count assigned at instantiation. Remains constant while a
++     * Record's position index can change from sorting.
++     *
++     * @property _nCount
++     * @type Number
++     * @private
++     */
++    _nCount : null,
++
++    /**
++     * Immutable unique ID assigned at instantiation. Remains constant while a
++     * Record's position index can change from sorting.
++     *
++     * @property _sId
++     * @type String
++     * @private
++     */
++    _sId : null,
++
++    /**
++     * Holds data for the Record in an object literal.
++     *
++     * @property _oData
++     * @type Object
++     * @private
++     */
++    _oData : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public member variables
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Returns unique count assigned at instantiation.
++     *
++     * @method getCount
++     * @return Number
++     */
++    getCount : function() {
++        return this._nCount;
++    },
++
++    /**
++     * Returns unique ID assigned at instantiation.
++     *
++     * @method getId
++     * @return String
++     */
++    getId : function() {
++        return this._sId;
++    },
++
++    /**
++     * Returns data for the Record for a field if given, or the entire object
++     * literal otherwise.
++     *
++     * @method getData
++     * @param sField {String} (Optional) The field from which to retrieve data value.
++     * @return Object
++     */
++    getData : function(sField) {
++        if(lang.isString(sField)) {
++            return this._oData[sField];
++        }
++        else {
++            return this._oData;
++        }
++    },
++
++    /**
++     * Sets given data at the given key. Use the RecordSet method updateRecordValue to trigger
++     * events. 
++     *
++     * @method setData
++     * @param sKey {String} The key of the new value.
++     * @param oData {MIXED} The new value.
++     */
++    setData : function(sKey, oData) {
++        this._oData[sKey] = oData;
++    }
++};
++
++})();
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    ua     = YAHOO.env.ua,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    DS     = util.DataSourceBase;
++
++/**
++ * The DataTable widget provides a progressively enhanced DHTML control for
++ * displaying tabular data across A-grade browsers.
++ *
++ * @module datatable
++ * @requires yahoo, dom, event, element, datasource
++ * @optional dragdrop, dragdrop
++ * @title DataTable Widget
++ */
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * DataTable class for the YUI DataTable widget.
++ *
++ * @namespace YAHOO.widget
++ * @class DataTable
++ * @extends YAHOO.util.Element
++ * @constructor
++ * @param elContainer {HTMLElement} Container element for the TABLE.
++ * @param aColumnDefs {Object[]} Array of object literal Column definitions.
++ * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++YAHOO.widget.DataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
++    var DT = widget.DataTable;
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Backward compatibility for SDT, but prevent infinite loops
++    
++    if(oConfigs && oConfigs.scrollable) {
++        return new YAHOO.widget.ScrollingDataTable(elContainer,aColumnDefs,oDataSource,oConfigs);
++    }
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Initialization
++
++    // Internal vars
++    this._nIndex = DT._nCount;
++    this._sId = "yui-dt"+this._nIndex;
++    this._oChainRender = new YAHOO.util.Chain();
++    this._oChainRender.subscribe("end",this._onRenderChainEnd, this, true);
++
++    // Initialize configs
++    this._initConfigs(oConfigs);
++
++    // Initialize DataSource
++    this._initDataSource(oDataSource);
++    if(!this._oDataSource) {
++        return;
++    }
++
++    // Initialize ColumnSet
++    this._initColumnSet(aColumnDefs);
++    if(!this._oColumnSet) {
++        return;
++    }
++
++    // Initialize RecordSet
++    this._initRecordSet();
++    if(!this._oRecordSet) {
++    }
++
++    // Initialize Attributes
++    DT.superclass.constructor.call(this, elContainer, this.configs);
++
++    // Initialize DOM elements
++    var okDom = this._initDomElements(elContainer);
++    if(!okDom) {
++        return;
++    }
++            
++    // Show message as soon as config is available
++    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Once per instance
++    this._initEvents();
++
++    DT._nCount++;
++    DT._nCurrentCount++;
++    
++    ////////////////////////////////////////////////////////////////////////////
++    // Data integration
++
++    // Send a simple initial request
++    var oCallback = {
++        success : this.onDataReturnSetRows,
++        failure : this.onDataReturnSetRows,
++        scope   : this,
++        argument: this.getState()
++    };
++    
++    var initialLoad = this.get("initialLoad");
++    if(initialLoad === true) {
++        this._oDataSource.sendRequest(this.get("initialRequest"), oCallback);
++    }
++    // Do not send an initial request at all
++    else if(initialLoad === false) {
++        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);
++    }
++    // Send an initial request with a custom payload
++    else {
++        var oCustom = initialLoad || {};
++        oCallback.argument = oCustom.argument || {};
++        this._oDataSource.sendRequest(oCustom.request, oCallback);
++    }
++};
++
++var DT = widget.DataTable;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public constants
++//
++/////////////////////////////////////////////////////////////////////////////
++
++lang.augmentObject(DT, {
++
++    /**
++     * Class name assigned to outer DataTable container.
++     *
++     * @property DataTable.CLASS_DATATABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt"
++     */
++    CLASS_DATATABLE : "yui-dt",
++
++    /**
++     * Class name assigned to liner DIV elements.
++     *
++     * @property DataTable.CLASS_LINER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-liner"
++     */
++    CLASS_LINER : "yui-dt-liner",
++
++    /**
++     * Class name assigned to display label elements.
++     *
++     * @property DataTable.CLASS_LABEL
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-label"
++     */
++    CLASS_LABEL : "yui-dt-label",
++
++    /**
++     * Class name assigned to messaging elements.
++     *
++     * @property DataTable.CLASS_MESSAGE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-message"
++     */
++    CLASS_MESSAGE : "yui-dt-message",
++
++    /**
++     * Class name assigned to mask element when DataTable is disabled.
++     *
++     * @property DataTable.CLASS_MASK
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-mask"
++     */
++    CLASS_MASK : "yui-dt-mask",
++
++    /**
++     * Class name assigned to data elements.
++     *
++     * @property DataTable.CLASS_DATA
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-data"
++     */
++    CLASS_DATA : "yui-dt-data",
++
++    /**
++     * Class name assigned to Column drag target.
++     *
++     * @property DataTable.CLASS_COLTARGET
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-coltarget"
++     */
++    CLASS_COLTARGET : "yui-dt-coltarget",
++
++    /**
++     * Class name assigned to resizer handle elements.
++     *
++     * @property DataTable.CLASS_RESIZER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizer"
++     */
++    CLASS_RESIZER : "yui-dt-resizer",
++
++    /**
++     * Class name assigned to resizer liner elements.
++     *
++     * @property DataTable.CLASS_RESIZERLINER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizerliner"
++     */
++    CLASS_RESIZERLINER : "yui-dt-resizerliner",
++
++    /**
++     * Class name assigned to resizer proxy elements.
++     *
++     * @property DataTable.CLASS_RESIZERPROXY
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizerproxy"
++     */
++    CLASS_RESIZERPROXY : "yui-dt-resizerproxy",
++
++    /**
++     * Class name assigned to CellEditor container elements.
++     *
++     * @property DataTable.CLASS_EDITOR
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-editor"
++     */
++    CLASS_EDITOR : "yui-dt-editor",
++
++    /**
++     * Class name assigned to paginator container elements.
++     *
++     * @property DataTable.CLASS_PAGINATOR
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-paginator"
++     */
++    CLASS_PAGINATOR : "yui-dt-paginator",
++
++    /**
++     * Class name assigned to page number indicators.
++     *
++     * @property DataTable.CLASS_PAGE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-page"
++     */
++    CLASS_PAGE : "yui-dt-page",
++
++    /**
++     * Class name assigned to default indicators.
++     *
++     * @property DataTable.CLASS_DEFAULT
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-default"
++     */
++    CLASS_DEFAULT : "yui-dt-default",
++
++    /**
++     * Class name assigned to previous indicators.
++     *
++     * @property DataTable.CLASS_PREVIOUS
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-previous"
++     */
++    CLASS_PREVIOUS : "yui-dt-previous",
++
++    /**
++     * Class name assigned next indicators.
++     *
++     * @property DataTable.CLASS_NEXT
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-next"
++     */
++    CLASS_NEXT : "yui-dt-next",
++
++    /**
++     * Class name assigned to first elements.
++     *
++     * @property DataTable.CLASS_FIRST
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-first"
++     */
++    CLASS_FIRST : "yui-dt-first",
++
++    /**
++     * Class name assigned to last elements.
++     *
++     * @property DataTable.CLASS_LAST
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-last"
++     */
++    CLASS_LAST : "yui-dt-last",
++
++    /**
++     * Class name assigned to even elements.
++     *
++     * @property DataTable.CLASS_EVEN
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-even"
++     */
++    CLASS_EVEN : "yui-dt-even",
++
++    /**
++     * Class name assigned to odd elements.
++     *
++     * @property DataTable.CLASS_ODD
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-odd"
++     */
++    CLASS_ODD : "yui-dt-odd",
++
++    /**
++     * Class name assigned to selected elements.
++     *
++     * @property DataTable.CLASS_SELECTED
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-selected"
++     */
++    CLASS_SELECTED : "yui-dt-selected",
++
++    /**
++     * Class name assigned to highlighted elements.
++     *
++     * @property DataTable.CLASS_HIGHLIGHTED
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-highlighted"
++     */
++    CLASS_HIGHLIGHTED : "yui-dt-highlighted",
++
++    /**
++     * Class name assigned to hidden elements.
++     *
++     * @property DataTable.CLASS_HIDDEN
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-hidden"
++     */
++    CLASS_HIDDEN : "yui-dt-hidden",
++
++    /**
++     * Class name assigned to disabled elements.
++     *
++     * @property DataTable.CLASS_DISABLED
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-disabled"
++     */
++    CLASS_DISABLED : "yui-dt-disabled",
++
++    /**
++     * Class name assigned to empty indicators.
++     *
++     * @property DataTable.CLASS_EMPTY
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-empty"
++     */
++    CLASS_EMPTY : "yui-dt-empty",
++
++    /**
++     * Class name assigned to loading indicatorx.
++     *
++     * @property DataTable.CLASS_LOADING
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-loading"
++     */
++    CLASS_LOADING : "yui-dt-loading",
++
++    /**
++     * Class name assigned to error indicators.
++     *
++     * @property DataTable.CLASS_ERROR
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-error"
++     */
++    CLASS_ERROR : "yui-dt-error",
++
++    /**
++     * Class name assigned to editable elements.
++     *
++     * @property DataTable.CLASS_EDITABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-editable"
++     */
++    CLASS_EDITABLE : "yui-dt-editable",
++
++    /**
++     * Class name assigned to draggable elements.
++     *
++     * @property DataTable.CLASS_DRAGGABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-draggable"
++     */
++    CLASS_DRAGGABLE : "yui-dt-draggable",
++
++    /**
++     * Class name assigned to resizeable elements.
++     *
++     * @property DataTable.CLASS_RESIZEABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-resizeable"
++     */
++    CLASS_RESIZEABLE : "yui-dt-resizeable",
++
++    /**
++     * Class name assigned to scrollable elements.
++     *
++     * @property DataTable.CLASS_SCROLLABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-scrollable"
++     */
++    CLASS_SCROLLABLE : "yui-dt-scrollable",
++
++    /**
++     * Class name assigned to sortable elements.
++     *
++     * @property DataTable.CLASS_SORTABLE
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-sortable"
++     */
++    CLASS_SORTABLE : "yui-dt-sortable",
++
++    /**
++     * Class name assigned to ascending elements.
++     *
++     * @property DataTable.CLASS_ASC
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-asc"
++     */
++    CLASS_ASC : "yui-dt-asc",
++
++    /**
++     * Class name assigned to descending elements.
++     *
++     * @property DataTable.CLASS_DESC
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-desc"
++     */
++    CLASS_DESC : "yui-dt-desc",
++
++    /**
++     * Class name assigned to BUTTON elements and/or container elements.
++     *
++     * @property DataTable.CLASS_BUTTON
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-button"
++     */
++    CLASS_BUTTON : "yui-dt-button",
++
++    /**
++     * Class name assigned to INPUT TYPE=CHECKBOX elements and/or container elements.
++     *
++     * @property DataTable.CLASS_CHECKBOX
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-checkbox"
++     */
++    CLASS_CHECKBOX : "yui-dt-checkbox",
++
++    /**
++     * Class name assigned to SELECT elements and/or container elements.
++     *
++     * @property DataTable.CLASS_DROPDOWN
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-dropdown"
++     */
++    CLASS_DROPDOWN : "yui-dt-dropdown",
++
++    /**
++     * Class name assigned to INPUT TYPE=RADIO elements and/or container elements.
++     *
++     * @property DataTable.CLASS_RADIO
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-radio"
++     */
++    CLASS_RADIO : "yui-dt-radio",
++
++    /////////////////////////////////////////////////////////////////////////
++    //
++    // Private static properties
++    //
++    /////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Internal class variable for indexing multiple DataTable instances.
++     *
++     * @property DataTable._nCount
++     * @type Number
++     * @private
++     * @static
++     */
++    _nCount : 0,
++
++    /**
++     * Internal class variable tracking current number of DataTable instances,
++     * so that certain class values can be reset when all instances are destroyed.          
++     *
++     * @property DataTable._nCurrentCount
++     * @type Number
++     * @private
++     * @static
++     */
++    _nCurrentCount : 0,
++
++    /**
++     * Reference to the STYLE node that is dynamically created and updated
++     * in order to manage Column widths.
++     *
++     * @property DataTable._elDynStyleNode
++     * @type HTMLElement
++     * @private
++     * @static     
++     */
++    _elDynStyleNode : null,
++
++    /**
++     * Set to true if _elDynStyleNode cannot be populated due to browser incompatibility.
++     *
++     * @property DataTable._bDynStylesFallback
++     * @type boolean
++     * @private
++     * @static     
++     */
++    _bDynStylesFallback : (ua.ie) ? true : false,
++
++    /**
++     * Object literal hash of Columns and their dynamically create style rules.
++     *
++     * @property DataTable._oDynStyles
++     * @type Object
++     * @private
++     * @static     
++     */
++    _oDynStyles : {},
++
++    /**
++     * Element reference to shared Column drag target.
++     *
++     * @property DataTable._elColumnDragTarget
++     * @type HTMLElement
++     * @private
++     * @static 
++     */
++    _elColumnDragTarget : null,
++
++    /**
++     * Element reference to shared Column resizer proxy.
++     *
++     * @property DataTable._elColumnResizerProxy
++     * @type HTMLElement
++     * @private
++     * @static 
++     */
++    _elColumnResizerProxy : null,
++
++    /////////////////////////////////////////////////////////////////////////
++    //
++    // Private static methods
++    //
++    /////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Clones object literal or array of object literals.
++     *
++     * @method DataTable._cloneObject
++     * @param o {Object} Object.
++     * @private
++     * @static     
++     */
++    _cloneObject : function(o) {
++        if(!lang.isValue(o)) {
++            return o;
++        }
++        
++        var copy = {};
++        
++        if(o instanceof YAHOO.widget.BaseCellEditor) {
++            copy = o;
++        }
++        else if(lang.isFunction(o)) {
++            copy = o;
++        }
++        else if(lang.isArray(o)) {
++            var array = [];
++            for(var i=0,len=o.length;i<len;i++) {
++                array[i] = DT._cloneObject(o[i]);
++            }
++            copy = array;
++        }
++        else if(lang.isObject(o)) { 
++            for (var x in o){
++                if(lang.hasOwnProperty(o, x)) {
++                    if(lang.isValue(o[x]) && lang.isObject(o[x]) || lang.isArray(o[x])) {
++                        copy[x] = DT._cloneObject(o[x]);
++                    }
++                    else {
++                        copy[x] = o[x];
++                    }
++                }
++            }
++        }
++        else {
++            copy = o;
++        }
++    
++        return copy;
++    },
++
++    /**
++     * Destroys shared Column drag target.
++     *
++     * @method DataTable._destroyColumnDragTargetEl
++     * @private
++     * @static 
++     */
++    _destroyColumnDragTargetEl : function() {
++        if(DT._elColumnDragTarget) {
++            var el = DT._elColumnDragTarget;
++            YAHOO.util.Event.purgeElement(el);
++            el.parentNode.removeChild(el);
++            DT._elColumnDragTarget = null;
++            
++        }
++    },
++
++    /**
++     * Creates HTML markup for shared Column drag target.
++     *
++     * @method DataTable._initColumnDragTargetEl
++     * @return {HTMLElement} Reference to Column drag target. 
++     * @private
++     * @static 
++     */
++    _initColumnDragTargetEl : function() {
++        if(!DT._elColumnDragTarget) {
++            // Attach Column drag target element as first child of body
++            var elColumnDragTarget = document.createElement('div');
++            elColumnDragTarget.className = DT.CLASS_COLTARGET;
++            elColumnDragTarget.style.display = "none";
++            document.body.insertBefore(elColumnDragTarget, document.body.firstChild);
++
++            // Internal tracker of Column drag target
++            DT._elColumnDragTarget = elColumnDragTarget;
++            
++        }
++        return DT._elColumnDragTarget;
++    },
++
++    /**
++     * Destroys shared Column resizer proxy.
++     *
++     * @method DataTable._destroyColumnResizerProxyEl
++     * @return {HTMLElement} Reference to Column resizer proxy.
++     * @private 
++     * @static 
++     */
++    _destroyColumnResizerProxyEl : function() {
++        if(DT._elColumnResizerProxy) {
++            var el = DT._elColumnResizerProxy;
++            YAHOO.util.Event.purgeElement(el);
++            el.parentNode.removeChild(el);
++            DT._elColumnResizerProxy = null;
++        }
++    },
++
++    /**
++     * Creates HTML markup for shared Column resizer proxy.
++     *
++     * @method DataTable._initColumnResizerProxyEl
++     * @return {HTMLElement} Reference to Column resizer proxy.
++     * @private 
++     * @static 
++     */
++    _initColumnResizerProxyEl : function() {
++        if(!DT._elColumnResizerProxy) {
++            // Attach Column resizer element as first child of body
++            var elColumnResizerProxy = document.createElement("div");
++            elColumnResizerProxy.id = "yui-dt-colresizerproxy"; // Needed for ColumnResizer
++            elColumnResizerProxy.className = DT.CLASS_RESIZERPROXY;
++            document.body.insertBefore(elColumnResizerProxy, document.body.firstChild);
++
++            // Internal tracker of Column resizer proxy
++            DT._elColumnResizerProxy = elColumnResizerProxy;
++        }
++        return DT._elColumnResizerProxy;
++    },
++
++    /**
++     * Formats a BUTTON element.
++     *
++     * @method DataTable.formatButton
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object | Boolean} Data value for the cell. By default, the value
++     * is what gets written to the BUTTON.
++     * @static
++     */
++    formatButton : function(el, oRecord, oColumn, oData) {
++        var sValue = lang.isValue(oData) ? oData : "Click";
++        //TODO: support YAHOO.widget.Button
++        //if(YAHOO.widget.Button) {
++
++        //}
++        //else {
++            el.innerHTML = "<button type=\"button\" class=\""+
++                    DT.CLASS_BUTTON + "\">" + sValue + "</button>";
++        //}
++    },
++
++    /**
++     * Formats a CHECKBOX element.
++     *
++     * @method DataTable.formatCheckbox
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object | Boolean} Data value for the cell. Can be a simple
++     * Boolean to indicate whether checkbox is checked or not. Can be object literal
++     * {checked:bBoolean, label:sLabel}. Other forms of oData require a custom
++     * formatter.
++     * @static
++     */
++    formatCheckbox : function(el, oRecord, oColumn, oData) {
++        var bChecked = oData;
++        bChecked = (bChecked) ? " checked=\"checked\"" : "";
++        el.innerHTML = "<input type=\"checkbox\"" + bChecked +
++                " class=\"" + DT.CLASS_CHECKBOX + "\" />";
++    },
++
++    /**
++     * Formats currency. Default unit is USD.
++     *
++     * @method DataTable.formatCurrency
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Number} Data value for the cell.
++     * @static
++     */
++    formatCurrency : function(el, oRecord, oColumn, oData) {
++        el.innerHTML = util.Number.format(oData, oColumn.currencyOptions || this.get("currencyOptions"));
++    },
++
++    /**
++     * Formats JavaScript Dates.
++     *
++     * @method DataTable.formatDate
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatDate : function(el, oRecord, oColumn, oData) {
++        var oConfig = oColumn.dateOptions || this.get("dateOptions");
++        el.innerHTML = util.Date.format(oData, oConfig, oConfig.locale);
++    },
++
++    /**
++     * Formats SELECT elements.
++     *
++     * @method DataTable.formatDropdown
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatDropdown : function(el, oRecord, oColumn, oData) {
++        var selectedValue = (lang.isValue(oData)) ? oData : oRecord.getData(oColumn.field),
++            options = (lang.isArray(oColumn.dropdownOptions)) ?
++                oColumn.dropdownOptions : null,
++
++            selectEl,
++            collection = el.getElementsByTagName("select");
++
++        // Create the form element only once, so we can attach the onChange listener
++        if(collection.length === 0) {
++            // Create SELECT element
++            selectEl = document.createElement("select");
++            selectEl.className = DT.CLASS_DROPDOWN;
++            selectEl = el.appendChild(selectEl);
++
++            // Add event listener
++            Ev.addListener(selectEl,"change",this._onDropdownChange,this);
++        }
++
++        selectEl = collection[0];
++
++        // Update the form element
++        if(selectEl) {
++            // Clear out previous options
++            selectEl.innerHTML = "";
++
++            // We have options to populate
++            if(options) {
++                // Create OPTION elements
++                for(var i=0; i<options.length; i++) {
++                    var option = options[i];
++                    var optionEl = document.createElement("option");
++                    optionEl.value = (lang.isValue(option.value)) ?
++                            option.value : option;
++                    // Bug 2334323: Support legacy text, support label for consistency with DropdownCellEditor
++                    optionEl.innerHTML = (lang.isValue(option.text)) ?
++                            option.text : (lang.isValue(option.label)) ? option.label : option;
++                    optionEl = selectEl.appendChild(optionEl);
++                    if (optionEl.value == selectedValue) {
++                        optionEl.selected = true;
++                    }
++                }
++            }
++            // Selected value is our only option
++            else {
++                selectEl.innerHTML = "<option selected value=\"" + selectedValue + "\">" + selectedValue + "</option>";
++            }
++        }
++        else {
++            el.innerHTML = lang.isValue(oData) ? oData : "";
++        }
++    },
++
++    /**
++     * Formats emails.
++     *
++     * @method DataTable.formatEmail
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatEmail : function(el, oRecord, oColumn, oData) {
++        if(lang.isString(oData)) {
++            el.innerHTML = "<a href=\"mailto:" + oData + "\">" + oData + "</a>";
++        }
++        else {
++            el.innerHTML = lang.isValue(oData) ? oData : "";
++        }
++    },
++
++    /**
++     * Formats links.
++     *
++     * @method DataTable.formatLink
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatLink : function(el, oRecord, oColumn, oData) {
++        if(lang.isString(oData)) {
++            el.innerHTML = "<a href=\"" + oData + "\">" + oData + "</a>";
++        }
++        else {
++            el.innerHTML = lang.isValue(oData) ? oData : "";
++        }
++    },
++
++    /**
++     * Formats numbers.
++     *
++     * @method DataTable.formatNumber
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} Data value for the cell, or null.
++     * @static
++     */
++    formatNumber : function(el, oRecord, oColumn, oData) {
++        el.innerHTML = util.Number.format(oData, oColumn.numberOptions || this.get("numberOptions"));
++    },
++
++    /**
++     * Formats INPUT TYPE=RADIO elements.
++     *
++     * @method DataTable.formatRadio
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatRadio : function(el, oRecord, oColumn, oData) {
++        var bChecked = oData;
++        bChecked = (bChecked) ? " checked=\"checked\"" : "";
++        el.innerHTML = "<input type=\"radio\"" + bChecked +
++                " name=\""+this.getId()+"-col-" + oColumn.getSanitizedKey() + "\"" +
++                " class=\"" + DT.CLASS_RADIO+ "\" />";
++    },
++
++    /**
++     * Formats text strings.
++     *
++     * @method DataTable.formatText
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatText : function(el, oRecord, oColumn, oData) {
++        var value = (lang.isValue(oData)) ? oData : "";
++        //TODO: move to util function
++        el.innerHTML = value.toString().replace(/&/g, "&#38;").replace(/</g, "&#60;").replace(/>/g, "&#62;");
++    },
++
++    /**
++     * Formats TEXTAREA elements.
++     *
++     * @method DataTable.formatTextarea
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatTextarea : function(el, oRecord, oColumn, oData) {
++        var value = (lang.isValue(oData)) ? oData : "",
++            markup = "<textarea>" + value + "</textarea>";
++        el.innerHTML = markup;
++    },
++
++    /**
++     * Formats INPUT TYPE=TEXT elements.
++     *
++     * @method DataTable.formatTextbox
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatTextbox : function(el, oRecord, oColumn, oData) {
++        var value = (lang.isValue(oData)) ? oData : "",
++            markup = "<input type=\"text\" value=\"" + value + "\" />";
++        el.innerHTML = markup;
++    },
++
++    /**
++     * Default cell formatter
++     *
++     * @method DataTable.formatDefault
++     * @param el {HTMLElement} The element to format with markup.
++     * @param oRecord {YAHOO.widget.Record} Record instance.
++     * @param oColumn {YAHOO.widget.Column} Column instance.
++     * @param oData {Object} (Optional) Data value for the cell.
++     * @static
++     */
++    formatDefault : function(el, oRecord, oColumn, oData) {
++        el.innerHTML = oData === undefined ||
++                       oData === null ||
++                       (typeof oData === 'number' && isNaN(oData)) ?
++                       "&#160;" : oData.toString();
++    },
++
++    /**
++     * Validates data value to type Number, doing type conversion as
++     * necessary. A valid Number value is return, else null is returned
++     * if input value does not validate.
++     *
++     *
++     * @method DataTable.validateNumber
++     * @param oData {Object} Data to validate.
++     * @static
++    */
++    validateNumber : function(oData) {
++        //Convert to number
++        var number = oData * 1;
++
++        // Validate
++        if(lang.isNumber(number)) {
++            return number;
++        }
++        else {
++            return undefined;
++        }
++    }
++});
++
++// Done in separate step so referenced functions are defined.
++/**
++ * Cell formatting functions.
++ * @property DataTable.Formatter
++ * @type Object
++ * @static
++ */
++DT.Formatter = {
++    button   : DT.formatButton,
++    checkbox : DT.formatCheckbox,
++    currency : DT.formatCurrency,
++    "date"   : DT.formatDate,
++    dropdown : DT.formatDropdown,
++    email    : DT.formatEmail,
++    link     : DT.formatLink,
++    "number" : DT.formatNumber,
++    radio    : DT.formatRadio,
++    text     : DT.formatText,
++    textarea : DT.formatTextarea,
++    textbox  : DT.formatTextbox,
++
++    defaultFormatter : DT.formatDefault
++};
++
++lang.extend(DT, util.Element, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Superclass methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Implementation of Element's abstract method. Sets up config values.
++ *
++ * @method initAttributes
++ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
++ * @private
++ */
++
++initAttributes : function(oConfigs) {
++    oConfigs = oConfigs || {};
++    DT.superclass.initAttributes.call(this, oConfigs);
++
++    /**
++    * @attribute summary
++    * @description Value for the SUMMARY attribute.
++    * @type String
++    * @default ""    
++    */
++    this.setAttributeConfig("summary", {
++        value: "",
++        validator: lang.isString,
++        method: function(sSummary) {
++            if(this._elTable) {
++                this._elTable.summary = sSummary;
++            }
++        }
++    });
++
++    /**
++    * @attribute selectionMode
++    * @description Specifies row or cell selection mode. Accepts the following strings:
++    *    <dl>
++    *      <dt>"standard"</dt>
++    *      <dd>Standard row selection with support for modifier keys to enable
++    *      multiple selections.</dd>
++    *
++    *      <dt>"single"</dt>
++    *      <dd>Row selection with modifier keys disabled to not allow
++    *      multiple selections.</dd>
++    *
++    *      <dt>"singlecell"</dt>
++    *      <dd>Cell selection with modifier keys disabled to not allow
++    *      multiple selections.</dd>
++    *
++    *      <dt>"cellblock"</dt>
++    *      <dd>Cell selection with support for modifier keys to enable multiple
++    *      selections in a block-fashion, like a spreadsheet.</dd>
++    *
++    *      <dt>"cellrange"</dt>
++    *      <dd>Cell selection with support for modifier keys to enable multiple
++    *      selections in a range-fashion, like a calendar.</dd>
++    *    </dl>
++    *
++    * @default "standard"
++    * @type String
++    */
++    this.setAttributeConfig("selectionMode", {
++        value: "standard",
++        validator: lang.isString
++    });
++
++    /**
++    * @attribute sortedBy
++    * @description Object literal provides metadata for initial sort values if
++    * data will arrive pre-sorted:
++    * <dl>
++    *     <dt>sortedBy.key</dt>
++    *     <dd>{String} Key of sorted Column</dd>
++    *     <dt>sortedBy.dir</dt>
++    *     <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
++    * </dl>
++    * @type Object | null
++    */
++    this.setAttributeConfig("sortedBy", {
++        value: null,
++        // TODO: accepted array for nested sorts
++        validator: function(oNewSortedBy) {
++            if(oNewSortedBy) {
++                return (lang.isObject(oNewSortedBy) && oNewSortedBy.key);
++            }
++            else {
++                return (oNewSortedBy === null);
++            }
++        },
++        method: function(oNewSortedBy) {
++            // Stash the previous value
++            var oOldSortedBy = this.get("sortedBy");
++            
++            // Workaround for bug 1827195
++            this._configs.sortedBy.value = oNewSortedBy;
++
++            // Remove ASC/DESC from TH
++            var oOldColumn,
++                nOldColumnKeyIndex,
++                oNewColumn,
++                nNewColumnKeyIndex;
++                
++            if(this._elThead) {
++                if(oOldSortedBy && oOldSortedBy.key && oOldSortedBy.dir) {
++                    oOldColumn = this._oColumnSet.getColumn(oOldSortedBy.key);
++                    nOldColumnKeyIndex = oOldColumn.getKeyIndex();
++                    
++                    // Remove previous UI from THEAD
++                    var elOldTh = oOldColumn.getThEl();
++                    Dom.removeClass(elOldTh, oOldSortedBy.dir);
++                    this.formatTheadCell(oOldColumn.getThLinerEl().firstChild, oOldColumn, oNewSortedBy);
++                }
++                if(oNewSortedBy) {
++                    oNewColumn = (oNewSortedBy.column) ? oNewSortedBy.column : this._oColumnSet.getColumn(oNewSortedBy.key);
++                    nNewColumnKeyIndex = oNewColumn.getKeyIndex();
++    
++                    // Update THEAD with new UI
++                    var elNewTh = oNewColumn.getThEl();
++                    // Backward compatibility
++                    if(oNewSortedBy.dir && ((oNewSortedBy.dir == "asc") ||  (oNewSortedBy.dir == "desc"))) {
++                        var newClass = (oNewSortedBy.dir == "desc") ?
++                                DT.CLASS_DESC :
++                                DT.CLASS_ASC;
++                        Dom.addClass(elNewTh, newClass);
++                    }
++                    else {
++                         var sortClass = oNewSortedBy.dir || DT.CLASS_ASC;
++                         Dom.addClass(elNewTh, sortClass);
++                    }
++                    this.formatTheadCell(oNewColumn.getThLinerEl().firstChild, oNewColumn, oNewSortedBy);
++                }
++            }
++          
++            if(this._elTbody) {
++                // Update TBODY UI
++                this._elTbody.style.display = "none";
++                var allRows = this._elTbody.rows,
++                    allCells;
++                for(var i=allRows.length-1; i>-1; i--) {
++                    allCells = allRows[i].childNodes;
++                    if(allCells[nOldColumnKeyIndex]) {
++                        Dom.removeClass(allCells[nOldColumnKeyIndex], oOldSortedBy.dir);
++                    }
++                    if(allCells[nNewColumnKeyIndex]) {
++                        Dom.addClass(allCells[nNewColumnKeyIndex], oNewSortedBy.dir);
++                    }
++                }
++                this._elTbody.style.display = "";
++            }
++                
++            this._clearTrTemplateEl();
++        }
++    });
++    
++    /**
++    * @attribute paginator
++    * @description An instance of YAHOO.widget.Paginator.
++    * @default null
++    * @type {Object|YAHOO.widget.Paginator}
++    */
++    this.setAttributeConfig("paginator", {
++        value : null,
++        validator : function (val) {
++            return val === null || val instanceof widget.Paginator;
++        },
++        method : function () { this._updatePaginator.apply(this,arguments); }
++    });
++
++    /**
++    * @attribute caption
++    * @description Value for the CAPTION element. NB: Not supported in
++    * ScrollingDataTable.    
++    * @type String
++    */
++    this.setAttributeConfig("caption", {
++        value: null,
++        validator: lang.isString,
++        method: function(sCaption) {
++            this._initCaptionEl(sCaption);
++        }
++    });
++
++    /**
++    * @attribute draggableColumns
++    * @description True if Columns are draggable to reorder, false otherwise.
++    * The Drag & Drop Utility is required to enable this feature. Only top-level
++    * and non-nested Columns are draggable. Write once.
++    * @default false
++    * @type Boolean
++    */
++    this.setAttributeConfig("draggableColumns", {
++        value: false,
++        validator: lang.isBoolean,
++        method: function(oParam) {
++            if(this._elThead) {
++                if(oParam) {
++                    this._initDraggableColumns();
++                }
++                else {
++                    this._destroyDraggableColumns();
++                }
++            }
++        }
++    });
++
++    /**
++    * @attribute renderLoopSize 	 
++    * @description A value greater than 0 enables DOM rendering of rows to be
++    * executed from a non-blocking timeout queue and sets how many rows to be
++    * rendered per timeout. Recommended for very large data sets.     
++    * @type Number 	 
++    * @default 0 	 
++    */ 	 
++     this.setAttributeConfig("renderLoopSize", { 	 
++         value: 0, 	 
++         validator: lang.isNumber 	 
++     }); 	 
++
++    /**
++    * @attribute formatRow
++    * @description A function that accepts a TR element and its associated Record
++    * for custom formatting. The function must return TRUE in order to automatically
++    * continue formatting of child TD elements, else TD elements will not be
++    * automatically formatted.
++    * @type function
++    * @default null
++    */
++    this.setAttributeConfig("formatRow", {
++        value: null,
++        validator: lang.isFunction
++    });
++
++    /**
++    * @attribute generateRequest
++    * @description A function that converts an object literal of desired DataTable
++    * states into a request value which is then passed to the DataSource's
++    * sendRequest method in order to retrieve data for those states. This
++    * function is passed an object literal of state data and a reference to the
++    * DataTable instance:
++    *     
++    * <dl>
++    *   <dt>pagination<dt>
++    *   <dd>        
++    *         <dt>offsetRecord</dt>
++    *         <dd>{Number} Index of the first Record of the desired page</dd>
++    *         <dt>rowsPerPage</dt>
++    *         <dd>{Number} Number of rows per page</dd>
++    *   </dd>
++    *   <dt>sortedBy</dt>
++    *   <dd>                
++    *         <dt>key</dt>
++    *         <dd>{String} Key of sorted Column</dd>
++    *         <dt>dir</dt>
++    *         <dd>{String} Sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
++    *   </dd>
++    *   <dt>self</dt>
++    *   <dd>The DataTable instance</dd>
++    * </dl>
++    * 
++    * and by default returns a String of syntax:
++    * "sort={sortColumn}&dir={sortDir}&startIndex={pageStartIndex}&results={rowsPerPage}"
++    * @type function
++    * @default HTMLFunction
++    */
++    this.setAttributeConfig("generateRequest", {
++        value: function(oState, oSelf) {
++            // Set defaults
++            oState = oState || {pagination:null, sortedBy:null};
++            var sort = encodeURIComponent((oState.sortedBy) ? oState.sortedBy.key : oSelf.getColumnSet().keys[0].getKey());
++            var dir = (oState.sortedBy && oState.sortedBy.dir === YAHOO.widget.DataTable.CLASS_DESC) ? "desc" : "asc";
++            var startIndex = (oState.pagination) ? oState.pagination.recordOffset : 0;
++            var results = (oState.pagination) ? oState.pagination.rowsPerPage : null;
++            
++            // Build the request
++            return  "sort=" + sort +
++                    "&dir=" + dir +
++                    "&startIndex=" + startIndex +
++                    ((results !== null) ? "&results=" + results : "");
++        },
++        validator: lang.isFunction
++    });
++
++    /**
++    * @attribute initialRequest
++    * @description Defines the initial request that gets sent to the DataSource
++    * during initialization. Value is ignored if initialLoad is set to any value
++    * other than true.    
++    * @type MIXED
++    * @default null
++    */
++    this.setAttributeConfig("initialRequest", {
++        value: null
++    });
++
++    /**
++    * @attribute initialLoad
++    * @description Determines whether or not to load data at instantiation. By
++    * default, will trigger a sendRequest() to the DataSource and pass in the
++    * request defined by initialRequest. If set to false, data will not load
++    * at instantiation. Alternatively, implementers who wish to work with a 
++    * custom payload may pass in an object literal with the following values:
++    *     
++    *    <dl>
++    *      <dt>request (MIXED)</dt>
++    *      <dd>Request value.</dd>
++    *
++    *      <dt>argument (MIXED)</dt>
++    *      <dd>Custom data that will be passed through to the callback function.</dd>
++    *    </dl>
++    *
++    *                    
++    * @type Boolean | Object
++    * @default true
++    */
++    this.setAttributeConfig("initialLoad", {
++        value: true
++    });
++    
++    /**
++    * @attribute dynamicData
++    * @description If true, sorting and pagination are relegated to the DataSource
++    * for handling, using the request returned by the "generateRequest" function.
++    * Each new DataSource response blows away all previous Records. False by default, so 
++    * sorting and pagination will be handled directly on the client side, without
++    * causing any new requests for data from the DataSource.
++    * @type Boolean
++    * @default false
++    */
++    this.setAttributeConfig("dynamicData", {
++        value: false,
++        validator: lang.isBoolean
++    });
++
++    /**
++     * @attribute MSG_EMPTY 	 
++     * @description Message to display if DataTable has no data.     
++     * @type String 	 
++     * @default "No records found." 	 
++     */ 	 
++     this.setAttributeConfig("MSG_EMPTY", { 	 
++         value: "No records found.", 	 
++         validator: lang.isString 	 
++     }); 	 
++
++    /**
++     * @attribute MSG_LOADING	 
++     * @description Message to display while DataTable is loading data.
++     * @type String 	 
++     * @default "Loading..." 	 
++     */ 	 
++     this.setAttributeConfig("MSG_LOADING", { 	 
++         value: "Loading...", 	 
++         validator: lang.isString 	 
++     }); 	 
++
++    /**
++     * @attribute MSG_ERROR	 
++     * @description Message to display while DataTable has data error.
++     * @type String 	 
++     * @default "Data error." 	 
++     */ 	 
++     this.setAttributeConfig("MSG_ERROR", { 	 
++         value: "Data error.", 	 
++         validator: lang.isString 	 
++     }); 	 
++
++    /**
++     * @attribute MSG_SORTASC 
++     * @description Message to display in tooltip to sort Column in ascending order.
++     * @type String 	 
++     * @default "Click to sort ascending" 	 
++     */ 	 
++     this.setAttributeConfig("MSG_SORTASC", { 	 
++         value: "Click to sort ascending", 	 
++         validator: lang.isString,
++         method: function(sParam) {
++            if(this._elThead) {
++                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
++                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_ASC) {
++                        allKeys[i]._elThLabel.firstChild.title = sParam;
++                    }
++                }
++            }      
++         }
++     });
++
++    /**
++     * @attribute MSG_SORTDESC 
++     * @description Message to display in tooltip to sort Column in descending order.
++     * @type String 	 
++     * @default "Click to sort descending" 	 
++     */ 	 
++     this.setAttributeConfig("MSG_SORTDESC", { 	 
++         value: "Click to sort descending", 	 
++         validator: lang.isString,
++         method: function(sParam) {
++            if(this._elThead) {
++                for(var i=0, allKeys=this.getColumnSet().keys, len=allKeys.length; i<len; i++) {
++                    if(allKeys[i].sortable && this.getColumnSortDir(allKeys[i]) === DT.CLASS_DESC) {
++                        allKeys[i]._elThLabel.firstChild.title = sParam;
++                    }
++                }
++            }               
++         }
++     });
++     
++    /**
++     * @attribute currencySymbol
++     * @deprecated
++     */
++    this.setAttributeConfig("currencySymbol", {
++        value: "$",
++        validator: lang.isString
++    });
++    
++    /**
++     * Default config passed to YAHOO.util.Number.format() by the 'currency' Column formatter.
++     * @attribute currencyOptions
++     * @type Object
++     * @default {prefix: $, decimalPlaces:2, decimalSeparator:".", thousandsSeparator:","}
++     */
++    this.setAttributeConfig("currencyOptions", {
++        value: {
++            prefix: this.get("currencySymbol"), // TODO: deprecate currencySymbol
++            decimalPlaces:2,
++            decimalSeparator:".",
++            thousandsSeparator:","
++        }
++    });
++    
++    /**
++     * Default config passed to YAHOO.util.Date.format() by the 'date' Column formatter.
++     * @attribute dateOptions
++     * @type Object
++     * @default {format:"%m/%d/%Y", locale:"en"}
++     */
++    this.setAttributeConfig("dateOptions", {
++        value: {format:"%m/%d/%Y", locale:"en"}
++    });
++    
++    /**
++     * Default config passed to YAHOO.util.Number.format() by the 'number' Column formatter.
++     * @attribute numberOptions
++     * @type Object
++     * @default {decimalPlaces:0, thousandsSeparator:","}
++     */
++    this.setAttributeConfig("numberOptions", {
++        value: {
++            decimalPlaces:0,
++            thousandsSeparator:","
++        }
++    });
++
++},
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * True if instance is initialized, so as to fire the initEvent after render.
++ *
++ * @property _bInit
++ * @type Boolean
++ * @default true
++ * @private
++ */
++_bInit : true,
++
++/**
++ * Index assigned to instance.
++ *
++ * @property _nIndex
++ * @type Number
++ * @private
++ */
++_nIndex : null,
++
++/**
++ * Counter for IDs assigned to TR elements.
++ *
++ * @property _nTrCount
++ * @type Number
++ * @private
++ */
++_nTrCount : 0,
++
++/**
++ * Counter for IDs assigned to TD elements.
++ *
++ * @property _nTdCount
++ * @type Number
++ * @private
++ */
++_nTdCount : 0,
++
++/**
++ * Unique id assigned to instance "yui-dtN", useful prefix for generating unique
++ * DOM ID strings and log messages.
++ *
++ * @property _sId
++ * @type String
++ * @private
++ */
++_sId : null,
++
++/**
++ * Render chain.
++ *
++ * @property _oChainRender
++ * @type YAHOO.util.Chain
++ * @private
++ */
++_oChainRender : null,
++
++/**
++ * DOM reference to the container element for the DataTable instance into which
++ * all other elements get created.
++ *
++ * @property _elContainer
++ * @type HTMLElement
++ * @private
++ */
++_elContainer : null,
++
++/**
++ * DOM reference to the mask element for the DataTable instance which disables it.
++ *
++ * @property _elMask
++ * @type HTMLElement
++ * @private
++ */
++_elMask : null,
++
++/**
++ * DOM reference to the TABLE element for the DataTable instance.
++ *
++ * @property _elTable
++ * @type HTMLElement
++ * @private
++ */
++_elTable : null,
++
++/**
++ * DOM reference to the CAPTION element for the DataTable instance.
++ *
++ * @property _elCaption
++ * @type HTMLElement
++ * @private
++ */
++_elCaption : null,
++
++/**
++ * DOM reference to the COLGROUP element for the DataTable instance.
++ *
++ * @property _elColgroup
++ * @type HTMLElement
++ * @private
++ */
++_elColgroup : null,
++
++/**
++ * DOM reference to the THEAD element for the DataTable instance.
++ *
++ * @property _elThead
++ * @type HTMLElement
++ * @private
++ */
++_elThead : null,
++
++/**
++ * DOM reference to the primary TBODY element for the DataTable instance.
++ *
++ * @property _elTbody
++ * @type HTMLElement
++ * @private
++ */
++_elTbody : null,
++
++/**
++ * DOM reference to the secondary TBODY element used to display DataTable messages.
++ *
++ * @property _elMsgTbody
++ * @type HTMLElement
++ * @private
++ */
++_elMsgTbody : null,
++
++/**
++ * DOM reference to the secondary TBODY element's single TR element used to display DataTable messages.
++ *
++ * @property _elMsgTr
++ * @type HTMLElement
++ * @private
++ */
++_elMsgTr : null,
++
++/**
++ * DOM reference to the secondary TBODY element's single TD element used to display DataTable messages.
++ *
++ * @property _elMsgTd
++ * @type HTMLElement
++ * @private
++ */
++_elMsgTd : null,
++
++/**
++ * DataSource instance for the DataTable instance.
++ *
++ * @property _oDataSource
++ * @type YAHOO.util.DataSource
++ * @private
++ */
++_oDataSource : null,
++
++/**
++ * ColumnSet instance for the DataTable instance.
++ *
++ * @property _oColumnSet
++ * @type YAHOO.widget.ColumnSet
++ * @private
++ */
++_oColumnSet : null,
++
++/**
++ * RecordSet instance for the DataTable instance.
++ *
++ * @property _oRecordSet
++ * @type YAHOO.widget.RecordSet
++ * @private
++ */
++_oRecordSet : null,
++
++/**
++ * The active CellEditor instance for the DataTable instance.
++ *
++ * @property _oCellEditor
++ * @type YAHOO.widget.CellEditor
++ * @private
++ */
++_oCellEditor : null,
++
++/**
++ * ID string of first TR element of the current DataTable page.
++ *
++ * @property _sFirstTrId
++ * @type String
++ * @private
++ */
++_sFirstTrId : null,
++
++/**
++ * ID string of the last TR element of the current DataTable page.
++ *
++ * @property _sLastTrId
++ * @type String
++ * @private
++ */
++_sLastTrId : null,
++
++/**
++ * Template row to create all new rows from.
++ * @property _elTrTemplate
++ * @type {HTMLElement}
++ * @private 
++ */
++_elTrTemplate : null,
++
++/**
++ * Sparse array of custom functions to set column widths for browsers that don't
++ * support dynamic CSS rules.  Functions are added at the index representing
++ * the number of rows they update.
++ *
++ * @property _aDynFunctions
++ * @type Array
++ * @private
++ */
++_aDynFunctions : [],
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Clears browser text selection. Useful to call on rowSelectEvent or
++ * cellSelectEvent to prevent clicks or dblclicks from selecting text in the
++ * browser.
++ *
++ * @method clearTextSelection
++ */
++clearTextSelection : function() {
++    var sel;
++    if(window.getSelection) {
++    	sel = window.getSelection();
++    }
++    else if(document.getSelection) {
++    	sel = document.getSelection();
++    }
++    else if(document.selection) {
++    	sel = document.selection;
++    }
++    if(sel) {
++        if(sel.empty) {
++            sel.empty();
++        }
++        else if (sel.removeAllRanges) {
++            sel.removeAllRanges();
++        }
++        else if(sel.collapse) {
++            sel.collapse();
++        }
++    }
++},
++
++/**
++ * Sets focus on the given element.
++ *
++ * @method _focusEl
++ * @param el {HTMLElement} Element.
++ * @private
++ */
++_focusEl : function(el) {
++    el = el || this._elTbody;
++    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
++    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
++    // strange unexpected things as the user clicks on buttons and other controls.
++    setTimeout(function() {
++        try {
++            el.focus();
++        }
++        catch(e) {
++        }
++    },0);
++},
++
++/**
++ * Forces Gecko repaint.
++ *
++ * @method _repaintGecko
++ * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
++ * @private
++ */
++_repaintGecko : (ua.gecko) ? 
++    function(el) {
++        el = el || this._elContainer;
++        var parent = el.parentNode;
++        var nextSibling = el.nextSibling;
++        parent.insertBefore(parent.removeChild(el), nextSibling);
++    } : function() {},
++
++/**
++ * Forces Opera repaint.
++ *
++ * @method _repaintOpera
++ * @private 
++ */
++_repaintOpera : (ua.opera) ? 
++    function() {
++        if(ua.opera) {
++            document.documentElement.className += " ";
++            document.documentElement.className = YAHOO.lang.trim(document.documentElement.className);
++        }
++    } : function() {} ,
++
++/**
++ * Forces Webkit repaint.
++ *
++ * @method _repaintWebkit
++ * @el {HTMLElement} (Optional) Element to repaint, otherwise entire document body.
++ * @private
++ */
++_repaintWebkit : (ua.webkit) ? 
++    function(el) {
++        el = el || this._elContainer;
++        var parent = el.parentNode;
++        var nextSibling = el.nextSibling;
++        parent.insertBefore(parent.removeChild(el), nextSibling);
++    } : function() {},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// INIT FUNCTIONS
++
++/**
++ * Initializes object literal of config values.
++ *
++ * @method _initConfigs
++ * @param oConfig {Object} Object literal of config values.
++ * @private
++ */
++_initConfigs : function(oConfigs) {
++    if(!oConfigs || !lang.isObject(oConfigs)) {
++        oConfigs = {};
++    }
++    this.configs = oConfigs;
++},
++
++/**
++ * Initializes ColumnSet.
++ *
++ * @method _initColumnSet
++ * @param aColumnDefs {Object[]} Array of object literal Column definitions.
++ * @private
++ */
++_initColumnSet : function(aColumnDefs) {
++    var oColumn, i, len;
++    
++    if(this._oColumnSet) {
++        // First clear _oDynStyles for existing ColumnSet and
++        // uregister CellEditor Custom Events
++        for(i=0, len=this._oColumnSet.keys.length; i<len; i++) {
++            oColumn = this._oColumnSet.keys[i];
++            DT._oDynStyles["."+this.getId()+"-col-"+oColumn.getSanitizedKey()+" ."+DT.CLASS_LINER] = undefined;
++            if(oColumn.editor && oColumn.editor.unsubscribeAll) { // Backward compatibility
++                oColumn.editor.unsubscribeAll();
++            }
++        }
++        
++        this._oColumnSet = null;
++        this._clearTrTemplateEl();
++    }
++    
++    if(lang.isArray(aColumnDefs)) {
++        this._oColumnSet =  new YAHOO.widget.ColumnSet(aColumnDefs);
++    }
++    // Backward compatibility
++    else if(aColumnDefs instanceof YAHOO.widget.ColumnSet) {
++        this._oColumnSet =  aColumnDefs;
++    }
++
++    // Register CellEditor Custom Events
++    var allKeys = this._oColumnSet.keys;
++    for(i=0, len=allKeys.length; i<len; i++) {
++        oColumn = allKeys[i];
++        if(oColumn.editor && oColumn.editor.subscribe) { // Backward incompatibility
++            oColumn.editor.subscribe("showEvent", this._onEditorShowEvent, this, true);
++            oColumn.editor.subscribe("keydownEvent", this._onEditorKeydownEvent, this, true);
++            oColumn.editor.subscribe("revertEvent", this._onEditorRevertEvent, this, true);
++            oColumn.editor.subscribe("saveEvent", this._onEditorSaveEvent, this, true);
++            oColumn.editor.subscribe("cancelEvent", this._onEditorCancelEvent, this, true);
++            oColumn.editor.subscribe("blurEvent", this._onEditorBlurEvent, this, true);
++            oColumn.editor.subscribe("blockEvent", this._onEditorBlockEvent, this, true);
++            oColumn.editor.subscribe("unblockEvent", this._onEditorUnblockEvent, this, true);
++        }
++    }
++},
++
++/**
++ * Initializes DataSource.
++ *
++ * @method _initDataSource
++ * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
++ * @private
++ */
++_initDataSource : function(oDataSource) {
++    this._oDataSource = null;
++    if(oDataSource && (lang.isFunction(oDataSource.sendRequest))) {
++        this._oDataSource = oDataSource;
++    }
++    // Backward compatibility
++    else {
++        var tmpTable = null;
++        var tmpContainer = this._elContainer;
++        var i=0;
++        //TODO: this will break if re-initing DS at runtime for SDT
++        // Peek in container child nodes to see if TABLE already exists
++        if(tmpContainer.hasChildNodes()) {
++            var tmpChildren = tmpContainer.childNodes;
++            for(i=0; i<tmpChildren.length; i++) {
++                if(tmpChildren[i].nodeName && tmpChildren[i].nodeName.toLowerCase() == "table") {
++                    tmpTable = tmpChildren[i];
++                    break;
++                }
++            }
++            if(tmpTable) {
++                var tmpFieldsArray = [];
++                for(; i<this._oColumnSet.keys.length; i++) {
++                    tmpFieldsArray.push({key:this._oColumnSet.keys[i].key});
++                }
++
++                this._oDataSource = new DS(tmpTable);
++                this._oDataSource.responseType = DS.TYPE_HTMLTABLE;
++                this._oDataSource.responseSchema = {fields: tmpFieldsArray};
++            }
++        }
++    }
++},
++
++/**
++ * Initializes RecordSet.
++ *
++ * @method _initRecordSet
++ * @private
++ */
++_initRecordSet : function() {
++    if(this._oRecordSet) {
++        this._oRecordSet.reset();
++    }
++    else {
++        this._oRecordSet = new YAHOO.widget.RecordSet();
++    }
++},
++
++/**
++ * Initializes DOM elements.
++ *
++ * @method _initDomElements
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
++ * return {Boolean} False in case of error, otherwise true 
++ * @private
++ */
++_initDomElements : function(elContainer) {
++    // Outer container
++    this._initContainerEl(elContainer);
++    // TABLE
++    this._initTableEl(this._elContainer);
++    // COLGROUP
++    this._initColgroupEl(this._elTable);
++    // THEAD
++    this._initTheadEl(this._elTable);
++    
++    // Message TBODY
++    this._initMsgTbodyEl(this._elTable);  
++
++    // Primary TBODY
++    this._initTbodyEl(this._elTable);
++
++    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody) {
++        return false;
++    }
++    else {
++        return true;
++    }
++},
++
++/**
++ * Destroy's the DataTable outer container element, if available.
++ *
++ * @method _destroyContainerEl
++ * @param elContainer {HTMLElement} Reference to the container element. 
++ * @private
++ */
++_destroyContainerEl : function(elContainer) {
++    Dom.removeClass(elContainer, DT.CLASS_DATATABLE);
++    Ev.purgeElement(elContainer, true);
++    elContainer.innerHTML = "";
++    
++    this._elContainer = null;
++    this._elColgroup = null;
++    this._elThead = null;
++    this._elTbody = null;
++},
++
++/**
++ * Initializes the DataTable outer container element, including a mask.
++ *
++ * @method _initContainerEl
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
++ * @private
++ */
++_initContainerEl : function(elContainer) {
++    // Validate container
++    elContainer = Dom.get(elContainer);
++    
++    if(elContainer && elContainer.nodeName && (elContainer.nodeName.toLowerCase() == "div")) {
++        // Destroy previous
++        this._destroyContainerEl(elContainer);
++
++        Dom.addClass(elContainer, DT.CLASS_DATATABLE);
++        Ev.addListener(elContainer, "focus", this._onTableFocus, this);
++        Ev.addListener(elContainer, "dblclick", this._onTableDblclick, this);
++        this._elContainer = elContainer;
++        
++        var elMask = document.createElement("div");
++        elMask.className = DT.CLASS_MASK;
++        elMask.style.display = "none";
++        this._elMask = elContainer.appendChild(elMask);
++    }
++},
++
++/**
++ * Destroy's the DataTable TABLE element, if available.
++ *
++ * @method _destroyTableEl
++ * @private
++ */
++_destroyTableEl : function() {
++    var elTable = this._elTable;
++    if(elTable) {
++        Ev.purgeElement(elTable, true);
++        elTable.parentNode.removeChild(elTable);
++        this._elCaption = null;
++        this._elColgroup = null;
++        this._elThead = null;
++        this._elTbody = null;
++    }
++},
++
++/**
++ * Creates HTML markup CAPTION element.
++ *
++ * @method _initCaptionEl
++ * @param sCaption {String} Text for caption.
++ * @private
++ */
++_initCaptionEl : function(sCaption) {
++    if(this._elTable && sCaption) {
++        // Create CAPTION element
++        if(!this._elCaption) { 
++            this._elCaption = this._elTable.createCaption();
++        }
++        // Set CAPTION value
++        this._elCaption.innerHTML = sCaption;
++    }
++    else if(this._elCaption) {
++        this._elCaption.parentNode.removeChild(this._elCaption);
++    }
++},
++
++/**
++ * Creates HTML markup for TABLE, COLGROUP, THEAD and TBODY elements in outer
++ * container element.
++ *
++ * @method _initTableEl
++ * @param elContainer {HTMLElement} Container element into which to create TABLE.
++ * @private
++ */
++_initTableEl : function(elContainer) {
++    if(elContainer) {
++        // Destroy previous
++        this._destroyTableEl();
++    
++        // Create TABLE
++        this._elTable = elContainer.appendChild(document.createElement("table"));  
++         
++        // Set SUMMARY attribute
++        this._elTable.summary = this.get("summary");
++        
++        // Create CAPTION element
++        if(this.get("caption")) {
++            this._initCaptionEl(this.get("caption"));
++        }
++    } 
++},
++
++/**
++ * Destroy's the DataTable COLGROUP element, if available.
++ *
++ * @method _destroyColgroupEl
++ * @private
++ */
++_destroyColgroupEl : function() {
++    var elColgroup = this._elColgroup;
++    if(elColgroup) {
++        var elTable = elColgroup.parentNode;
++        Ev.purgeElement(elColgroup, true);
++        elTable.removeChild(elColgroup);
++        this._elColgroup = null;
++    }
++},
++
++/**
++ * Initializes COLGROUP and COL elements for managing minWidth.
++ *
++ * @method _initColgroupEl
++ * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
++ * @private
++ */
++_initColgroupEl : function(elTable) {
++    if(elTable) {
++        // Destroy previous
++        this._destroyColgroupEl();
++
++        // Add COLs to DOCUMENT FRAGMENT
++        var allCols = this._aColIds || [],
++            allKeys = this._oColumnSet.keys,
++            i = 0, len = allCols.length,
++            elCol, oColumn,
++            elFragment = document.createDocumentFragment(),
++            elColTemplate = document.createElement("col");
++    
++        for(i=0,len=allKeys.length; i<len; i++) {
++            oColumn = allKeys[i];
++            elCol = elFragment.appendChild(elColTemplate.cloneNode(false));
++        }
++    
++        // Create COLGROUP
++        var elColgroup = elTable.insertBefore(document.createElement("colgroup"), elTable.firstChild);
++        elColgroup.appendChild(elFragment);
++        this._elColgroup = elColgroup;
++    }
++},
++
++/**
++ * Adds a COL element to COLGROUP at given index.
++ *
++ * @method _insertColgroupColEl
++ * @param index {Number} Index of new COL element.
++ * @private
++ */
++_insertColgroupColEl : function(index) {
++    if(lang.isNumber(index)&& this._elColgroup) {
++        var nextSibling = this._elColgroup.childNodes[index] || null;
++        this._elColgroup.insertBefore(document.createElement("col"), nextSibling);
++    }
++},
++
++/**
++ * Removes a COL element to COLGROUP at given index.
++ *
++ * @method _removeColgroupColEl
++ * @param index {Number} Index of removed COL element.
++ * @private
++ */
++_removeColgroupColEl : function(index) {
++    if(lang.isNumber(index) && this._elColgroup && this._elColgroup.childNodes[index]) {
++        this._elColgroup.removeChild(this._elColgroup.childNodes[index]);
++    }
++},
++
++/**
++ * Reorders a COL element from old index(es) to new index.
++ *
++ * @method _reorderColgroupColEl
++ * @param aKeyIndexes {Number[]} Array of indexes of removed COL element.
++ * @param newIndex {Number} New index. 
++ * @private
++ */
++_reorderColgroupColEl : function(aKeyIndexes, newIndex) {
++    if(lang.isArray(aKeyIndexes) && lang.isNumber(newIndex) && this._elColgroup && (this._elColgroup.childNodes.length > aKeyIndexes[aKeyIndexes.length-1])) {
++        var i,
++            tmpCols = [];
++        // Remove COL
++        for(i=aKeyIndexes.length-1; i>-1; i--) {
++            tmpCols.push(this._elColgroup.removeChild(this._elColgroup.childNodes[aKeyIndexes[i]]));
++        }
++        // Insert COL
++        var nextSibling = this._elColgroup.childNodes[newIndex] || null;
++        for(i=tmpCols.length-1; i>-1; i--) {
++            this._elColgroup.insertBefore(tmpCols[i], nextSibling);
++        }
++    }
++},
++
++/**
++ * Destroy's the DataTable THEAD element, if available.
++ *
++ * @method _destroyTheadEl
++ * @private
++ */
++_destroyTheadEl : function() {
++    var elThead = this._elThead;
++    if(elThead) {
++        var elTable = elThead.parentNode;
++        Ev.purgeElement(elThead, true);
++        this._destroyColumnHelpers();
++        elTable.removeChild(elThead);
++        this._elThead = null;
++    }
++},
++
++/**
++ * Initializes THEAD element.
++ *
++ * @method _initTheadEl
++ * @param elTable {HTMLElement} TABLE element into which to create COLGROUP.
++ * @param {HTMLElement} Initialized THEAD element. 
++ * @private
++ */
++_initTheadEl : function(elTable) {
++    elTable = elTable || this._elTable;
++    
++    if(elTable) {
++        // Destroy previous
++        this._destroyTheadEl();
++    
++        //TODO: append to DOM later for performance
++        var elThead = (this._elColgroup) ?
++            elTable.insertBefore(document.createElement("thead"), this._elColgroup.nextSibling) :
++            elTable.appendChild(document.createElement("thead"));
++    
++        // Set up DOM events for THEAD
++        Ev.addListener(elThead, "focus", this._onTheadFocus, this);
++        Ev.addListener(elThead, "keydown", this._onTheadKeydown, this);
++        Ev.addListener(elThead, "mouseover", this._onTableMouseover, this);
++        Ev.addListener(elThead, "mouseout", this._onTableMouseout, this);
++        Ev.addListener(elThead, "mousedown", this._onTableMousedown, this);
++        Ev.addListener(elThead, "mouseup", this._onTableMouseup, this);
++        Ev.addListener(elThead, "click", this._onTheadClick, this);
++
++        // Since we can't listen for click and dblclick on the same element...
++        // Attach separately to THEAD and TBODY
++        ///Ev.addListener(elThead, "dblclick", this._onTableDblclick, this);
++        
++       var oColumnSet = this._oColumnSet,
++            oColumn, i,j, l;
++        
++        // Add TRs to the THEAD
++        var colTree = oColumnSet.tree;
++        var elTh;
++        for(i=0; i<colTree.length; i++) {
++            var elTheadTr = elThead.appendChild(document.createElement("tr"));
++    
++            // ...and create TH cells
++            for(j=0; j<colTree[i].length; j++) {
++                oColumn = colTree[i][j];
++                elTh = elTheadTr.appendChild(document.createElement("th"));
++                this._initThEl(elTh,oColumn);
++            }
++    
++                // Set FIRST/LAST on THEAD rows
++                if(i === 0) {
++                    Dom.addClass(elTheadTr, DT.CLASS_FIRST);
++                }
++                if(i === (colTree.length-1)) {
++                    Dom.addClass(elTheadTr, DT.CLASS_LAST);
++                }
++
++        }
++
++        // Set FIRST/LAST on edge TH elements using the values in ColumnSet headers array
++        var aFirstHeaders = oColumnSet.headers[0] || [];
++        for(i=0; i<aFirstHeaders.length; i++) {
++            Dom.addClass(Dom.get(this.getId() +"-th-"+aFirstHeaders[i]), DT.CLASS_FIRST);
++        }
++        var aLastHeaders = oColumnSet.headers[oColumnSet.headers.length-1] || [];
++        for(i=0; i<aLastHeaders.length; i++) {
++            Dom.addClass(Dom.get(this.getId() +"-th-"+aLastHeaders[i]), DT.CLASS_LAST);
++        }
++        
++
++        ///TODO: try _repaintGecko(this._elContainer) instead
++        // Bug 1806891
++        if(ua.webkit && ua.webkit < 420) {
++            var oSelf = this;
++            setTimeout(function() {
++                elThead.style.display = "";
++            },0);
++            elThead.style.display = 'none';
++        }
++        
++        this._elThead = elThead;
++        
++        // Column helpers needs _elThead to exist
++        this._initColumnHelpers();  
++    }
++},
++
++/**
++ * Populates TH element as defined by Column.
++ *
++ * @method _initThEl
++ * @param elTh {HTMLElement} TH element reference.
++ * @param oColumn {YAHOO.widget.Column} Column object.
++ * @private
++ */
++_initThEl : function(elTh, oColumn) {
++    elTh.id = this.getId() + "-th-" + oColumn.getSanitizedKey(); // Needed for accessibility, getColumn by TH, and ColumnDD
++    elTh.innerHTML = "";
++    elTh.rowSpan = oColumn.getRowspan();
++    elTh.colSpan = oColumn.getColspan();
++    oColumn._elTh = elTh;
++    
++    var elThLiner = elTh.appendChild(document.createElement("div"));
++    elThLiner.id = elTh.id + "-liner"; // Needed for resizer
++    elThLiner.className = DT.CLASS_LINER;
++    oColumn._elThLiner = elThLiner;
++    
++    var elThLabel = elThLiner.appendChild(document.createElement("span"));
++    elThLabel.className = DT.CLASS_LABEL;    
++
++    // Assign abbr attribute
++    if(oColumn.abbr) {
++        elTh.abbr = oColumn.abbr;
++    }
++    // Clear minWidth on hidden Columns
++    if(oColumn.hidden) {
++        this._clearMinWidth(oColumn);
++    }
++        
++    elTh.className = this._getColumnClassNames(oColumn);
++            
++    // Set Column width...
++    if(oColumn.width) {
++        // Validate minWidth
++        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
++                oColumn.minWidth : oColumn.width;
++        // ...for fallback cases
++        if(DT._bDynStylesFallback) {
++            elTh.firstChild.style.overflow = 'hidden';
++            elTh.firstChild.style.width = nWidth + 'px';        
++        }
++        // ...for non fallback cases
++        else {
++            this._setColumnWidthDynStyles(oColumn, nWidth + 'px', 'hidden');
++        }
++    }
++
++    this.formatTheadCell(elThLabel, oColumn, this.get("sortedBy"));
++    oColumn._elThLabel = elThLabel;
++},
++
++/**
++ * Outputs markup into the given TH based on given Column.
++ *
++ * @method DataTable.formatTheadCell
++ * @param elCellLabel {HTMLElement} The label SPAN element within the TH liner,
++ * not the liner DIV element.     
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param oSortedBy {Object} Sort state object literal.
++*/
++formatTheadCell : function(elCellLabel, oColumn, oSortedBy) {
++    var sKey = oColumn.getKey();
++    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
++
++    // Add accessibility link for sortable Columns
++    if(oColumn.sortable) {
++        // Calculate the direction
++        var sSortClass = this.getColumnSortDir(oColumn, oSortedBy);
++        var bDesc = (sSortClass === DT.CLASS_DESC);
++
++        // This is the sorted Column
++        if(oSortedBy && (oColumn.key === oSortedBy.key)) {
++            bDesc = !(oSortedBy.dir === DT.CLASS_DESC);
++        }
++
++        // Generate a unique HREF for visited status
++        var sHref = this.getId() + "-href-" + oColumn.getSanitizedKey();
++        
++        // Generate a dynamic TITLE for sort status
++        var sTitle = (bDesc) ? this.get("MSG_SORTDESC") : this.get("MSG_SORTASC");
++        
++        // Format the element
++        elCellLabel.innerHTML = "<a href=\"" + sHref + "\" title=\"" + sTitle + "\" class=\"" + DT.CLASS_SORTABLE + "\">" + sLabel + "</a>";
++    }
++    // Just display the label for non-sortable Columns
++    else {
++        elCellLabel.innerHTML = sLabel;
++    }
++},
++
++/**
++ * Disables DD from top-level Column TH elements.
++ *
++ * @method _destroyDraggableColumns
++ * @private
++ */
++_destroyDraggableColumns : function() {
++    var oColumn, elTh;
++    for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
++        oColumn = this._oColumnSet.tree[0][i];
++        if(oColumn._dd) {
++            oColumn._dd = oColumn._dd.unreg();
++            Dom.removeClass(oColumn.getThEl(), DT.CLASS_DRAGGABLE);       
++        }
++    }
++},
++
++/**
++ * Initializes top-level Column TH elements into DD instances.
++ *
++ * @method _initDraggableColumns
++ * @private
++ */
++_initDraggableColumns : function() {
++    this._destroyDraggableColumns();
++    if(util.DD) {
++        var oColumn, elTh, elDragTarget;
++        for(var i=0, len=this._oColumnSet.tree[0].length; i<len; i++) {
++            oColumn = this._oColumnSet.tree[0][i];
++            elTh = oColumn.getThEl();
++            Dom.addClass(elTh, DT.CLASS_DRAGGABLE);
++            elDragTarget = DT._initColumnDragTargetEl();
++            oColumn._dd = new YAHOO.widget.ColumnDD(this, oColumn, elTh, elDragTarget);
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * Disables resizeability on key Column TH elements.
++ *
++ * @method _destroyResizeableColumns
++ * @private
++ */
++_destroyResizeableColumns : function() {
++    var aKeys = this._oColumnSet.keys;
++    for(var i=0, len=aKeys.length; i<len; i++) {
++        if(aKeys[i]._ddResizer) {
++            aKeys[i]._ddResizer = aKeys[i]._ddResizer.unreg();
++            Dom.removeClass(aKeys[i].getThEl(), DT.CLASS_RESIZEABLE);
++        }
++    }
++},
++
++/**
++ * Initializes resizeability on key Column TH elements.
++ *
++ * @method _initResizeableColumns
++ * @private
++ */
++_initResizeableColumns : function() {
++    this._destroyResizeableColumns();
++    if(util.DD) {
++        var oColumn, elTh, elThLiner, elThResizerLiner, elThResizer, elResizerProxy, cancelClick;
++        for(var i=0, len=this._oColumnSet.keys.length; i<len; i++) {
++            oColumn = this._oColumnSet.keys[i];
++            if(oColumn.resizeable) {
++                elTh = oColumn.getThEl();
++                Dom.addClass(elTh, DT.CLASS_RESIZEABLE);
++                elThLiner = oColumn.getThLinerEl();
++                
++                // Bug 1915349: So resizer is as tall as TH when rowspan > 1
++                // Create a separate resizer liner with position:relative
++                elThResizerLiner = elTh.appendChild(document.createElement("div"));
++                elThResizerLiner.className = DT.CLASS_RESIZERLINER;
++                
++                // Move TH contents into the new resizer liner
++                elThResizerLiner.appendChild(elThLiner);
++                
++                // Create the resizer
++                elThResizer = elThResizerLiner.appendChild(document.createElement("div"));
++                elThResizer.id = elTh.id + "-resizer"; // Needed for ColumnResizer
++                elThResizer.className = DT.CLASS_RESIZER;
++                oColumn._elResizer = elThResizer;
++
++                // Create the resizer proxy, once globally
++                elResizerProxy = DT._initColumnResizerProxyEl();
++                oColumn._ddResizer = new YAHOO.util.ColumnResizer(
++                        this, oColumn, elTh, elThResizer, elResizerProxy);
++                cancelClick = function(e) {
++                    Ev.stopPropagation(e);
++                };
++                Ev.addListener(elThResizer,"click",cancelClick);
++            }
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * Destroys elements associated with Column functionality: ColumnDD and ColumnResizers.
++ *
++ * @method _destroyColumnHelpers
++ * @private
++ */
++_destroyColumnHelpers : function() {
++    this._destroyDraggableColumns();
++    this._destroyResizeableColumns();
++},
++
++/**
++ * Initializes elements associated with Column functionality: ColumnDD and ColumnResizers.
++ *
++ * @method _initColumnHelpers
++ * @private
++ */
++_initColumnHelpers : function() {
++    if(this.get("draggableColumns")) {
++        this._initDraggableColumns();
++    }
++    this._initResizeableColumns();
++},
++
++/**
++ * Destroy's the DataTable TBODY element, if available.
++ *
++ * @method _destroyTbodyEl
++ * @private
++ */
++_destroyTbodyEl : function() {
++    var elTbody = this._elTbody;
++    if(elTbody) {
++        var elTable = elTbody.parentNode;
++        Ev.purgeElement(elTbody, true);
++        elTable.removeChild(elTbody);
++        this._elTbody = null;
++    }
++},
++
++/**
++ * Initializes TBODY element for data.
++ *
++ * @method _initTbodyEl
++ * @param elTable {HTMLElement} TABLE element into which to create TBODY .
++ * @private
++ */
++_initTbodyEl : function(elTable) {
++    if(elTable) {
++        // Destroy previous
++        this._destroyTbodyEl();
++        
++        // Create TBODY
++        var elTbody = elTable.appendChild(document.createElement("tbody"));
++        elTbody.tabIndex = 0;
++        elTbody.className = DT.CLASS_DATA;
++    
++        // Set up DOM events for TBODY
++        Ev.addListener(elTbody, "focus", this._onTbodyFocus, this);
++        Ev.addListener(elTbody, "mouseover", this._onTableMouseover, this);
++        Ev.addListener(elTbody, "mouseout", this._onTableMouseout, this);
++        Ev.addListener(elTbody, "mousedown", this._onTableMousedown, this);
++        Ev.addListener(elTbody, "mouseup", this._onTableMouseup, this);
++        Ev.addListener(elTbody, "keydown", this._onTbodyKeydown, this);
++        Ev.addListener(elTbody, "keypress", this._onTableKeypress, this);
++        Ev.addListener(elTbody, "click", this._onTbodyClick, this);
++        
++        // Since we can't listen for click and dblclick on the same element...
++        // Attach separately to THEAD and TBODY
++        ///Ev.addListener(elTbody, "dblclick", this._onTableDblclick, this);
++        
++    
++        // IE puts focus outline in the wrong place
++        if(ua.ie) {
++            elTbody.hideFocus=true;
++        }
++
++        this._elTbody = elTbody;
++    }
++},
++
++/**
++ * Destroy's the DataTable message TBODY element, if available.
++ *
++ * @method _destroyMsgTbodyEl
++ * @private
++ */
++_destroyMsgTbodyEl : function() {
++    var elMsgTbody = this._elMsgTbody;
++    if(elMsgTbody) {
++        var elTable = elMsgTbody.parentNode;
++        Ev.purgeElement(elMsgTbody, true);
++        elTable.removeChild(elMsgTbody);
++        this._elTbody = null;
++    }
++},
++
++/**
++ * Initializes TBODY element for messaging.
++ *
++ * @method _initMsgTbodyEl
++ * @param elTable {HTMLElement} TABLE element into which to create TBODY 
++ * @private
++ */
++_initMsgTbodyEl : function(elTable) {
++    if(elTable) {
++        var elMsgTbody = document.createElement("tbody");
++        elMsgTbody.className = DT.CLASS_MESSAGE;
++        var elMsgTr = elMsgTbody.appendChild(document.createElement("tr"));
++        elMsgTr.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
++        this._elMsgTr = elMsgTr;
++        var elMsgTd = elMsgTr.appendChild(document.createElement("td"));
++        elMsgTd.colSpan = this._oColumnSet.keys.length || 1;
++        elMsgTd.className = DT.CLASS_FIRST + " " + DT.CLASS_LAST;
++        this._elMsgTd = elMsgTd;
++        elMsgTbody = elTable.insertBefore(elMsgTbody, this._elTbody);
++        var elMsgLiner = elMsgTd.appendChild(document.createElement("div"));
++        elMsgLiner.className = DT.CLASS_LINER;
++        this._elMsgTbody = elMsgTbody;
++
++        // Set up DOM events for TBODY
++        Ev.addListener(elMsgTbody, "focus", this._onTbodyFocus, this);
++        Ev.addListener(elMsgTbody, "mouseover", this._onTableMouseover, this);
++        Ev.addListener(elMsgTbody, "mouseout", this._onTableMouseout, this);
++        Ev.addListener(elMsgTbody, "mousedown", this._onTableMousedown, this);
++        Ev.addListener(elMsgTbody, "mouseup", this._onTableMouseup, this);
++        Ev.addListener(elMsgTbody, "keydown", this._onTbodyKeydown, this);
++        Ev.addListener(elMsgTbody, "keypress", this._onTableKeypress, this);
++        Ev.addListener(elMsgTbody, "click", this._onTbodyClick, this);
++    }
++},
++
++/**
++ * Initialize internal event listeners
++ *
++ * @method _initEvents
++ * @private
++ */
++_initEvents : function () {
++    // Initialize Column sort
++    this._initColumnSort();
++        
++    // Add the document level click listener
++    YAHOO.util.Event.addListener(document, "click", this._onDocumentClick, this);
++
++    // Paginator integration
++    this.subscribe("paginatorChange",function () {
++        this._handlePaginatorChange.apply(this,arguments);
++    });
++
++    this.subscribe("initEvent",function () {
++        this.renderPaginator();
++    });
++
++    // Initialize CellEditor integration
++    this._initCellEditing();
++},
++
++/** 	 
++  * Initializes Column sorting. 	 
++  * 	 
++  * @method _initColumnSort 	 
++  * @private 	 
++  */ 	 
++_initColumnSort : function() {
++    this.subscribe("theadCellClickEvent", this.onEventSortColumn); 	 
++
++    // Backward compatibility
++    var oSortedBy = this.get("sortedBy");
++    if(oSortedBy) {
++        if(oSortedBy.dir == "desc") {
++            this._configs.sortedBy.value.dir = DT.CLASS_DESC;
++        }
++        else if(oSortedBy.dir == "asc") {
++            this._configs.sortedBy.value.dir = DT.CLASS_ASC;
++        }
++    }
++},
++
++/** 	 
++  * Initializes CellEditor integration. 	 
++  * 	 
++  * @method _initCellEditing 	 
++  * @private 	 
++  */ 	 
++_initCellEditing : function() {
++    this.subscribe("editorBlurEvent",function () {
++        this.onEditorBlurEvent.apply(this,arguments);
++    });
++    this.subscribe("editorBlockEvent",function () {
++        this.onEditorBlockEvent.apply(this,arguments);
++    });
++    this.subscribe("editorUnblockEvent",function () {
++        this.onEditorUnblockEvent.apply(this,arguments);
++    });
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// DOM MUTATION FUNCTIONS
++
++/**
++ * Retruns classnames to represent current Column states.
++ * @method _getColumnClassnames 
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param aAddClasses {String[]} An array of additional classnames to add to the
++ * return value.  
++ * @return {String} A String of classnames to be assigned to TH or TD elements
++ * for given Column.  
++ * @private 
++ */
++_getColumnClassNames : function (oColumn, aAddClasses) {
++    var allClasses;
++    
++    // Add CSS classes
++    if(lang.isString(oColumn.className)) {
++        // Single custom class
++        allClasses = [oColumn.className];
++    }
++    else if(lang.isArray(oColumn.className)) {
++        // Array of custom classes
++        allClasses = oColumn.className;
++    }
++    else {
++        // no custom classes
++        allClasses = [];
++    }
++    
++    // Hook for setting width with via dynamic style uses key since ID is too disposable
++    allClasses[allClasses.length] = this.getId() + "-col-" +oColumn.getSanitizedKey();
++
++    // Column key - minus any chars other than "A-Z", "a-z", "0-9", "_", "-", ".", or ":"
++    allClasses[allClasses.length] = "yui-dt-col-" +oColumn.getSanitizedKey();
++
++    var isSortedBy = this.get("sortedBy") || {};
++    // Sorted
++    if(oColumn.key === isSortedBy.key) {
++        allClasses[allClasses.length] = isSortedBy.dir || '';
++    }
++    // Hidden
++    if(oColumn.hidden) {
++        allClasses[allClasses.length] = DT.CLASS_HIDDEN;
++    }
++    // Selected
++    if(oColumn.selected) {
++        allClasses[allClasses.length] = DT.CLASS_SELECTED;
++    }
++    // Sortable
++    if(oColumn.sortable) {
++        allClasses[allClasses.length] = DT.CLASS_SORTABLE;
++    }
++    // Resizeable
++    if(oColumn.resizeable) {
++        allClasses[allClasses.length] = DT.CLASS_RESIZEABLE;
++    }
++    // Editable
++    if(oColumn.editor) {
++        allClasses[allClasses.length] = DT.CLASS_EDITABLE;
++    }
++    
++    // Addtnl classes, including First/Last
++    if(aAddClasses) {
++        allClasses = allClasses.concat(aAddClasses);
++    }
++    
++    return allClasses.join(' ');  
++},
++
++/**
++ * Clears TR element template in response to any Column state change.
++ * @method _clearTrTemplateEl
++ * @private 
++ */
++_clearTrTemplateEl : function () {
++    this._elTrTemplate = null;
++},
++
++/**
++ * Returns a new TR element template with TD elements classed with current
++ * Column states.
++ * @method _getTrTemplateEl 
++ * @return {HTMLElement} A TR element to be cloned and added to the DOM.
++ * @private 
++ */
++_getTrTemplateEl : function (oRecord, index) {
++    // Template is already available
++    if(this._elTrTemplate) {
++        return this._elTrTemplate;
++    }
++    // Template needs to be created
++    else {
++        var d   = document,
++            tr  = d.createElement('tr'),
++            td  = d.createElement('td'),
++            div = d.createElement('div');
++    
++        // Append the liner element
++        td.appendChild(div);
++
++        // Create TD elements into DOCUMENT FRAGMENT
++        var df = document.createDocumentFragment(),
++            allKeys = this._oColumnSet.keys,
++            elTd;
++
++        // Set state for each TD;
++        var aAddClasses;
++        for(var i=0, keysLen=allKeys.length; i<keysLen; i++) {
++            // Clone the TD template
++            elTd = td.cloneNode(true);
++
++            // Format the base TD
++            elTd = this._formatTdEl(allKeys[i], elTd, i, (i===keysLen-1));
++                        
++            df.appendChild(elTd);
++        }
++        tr.appendChild(df);
++        this._elTrTemplate = tr;
++        return tr;
++    }   
++},
++
++/**
++ * Formats a basic TD element.
++ * @method _formatTdEl 
++ * @param oColumn {YAHOO.widget.Column} Associated Column instance. 
++ * @param elTd {HTMLElement} An unformatted TD element.
++ * @param index {Number} Column key index. 
++ * @param isLast {Boolean} True if Column is last key of the ColumnSet.
++ * @return {HTMLElement} A formatted TD element.
++ * @private 
++ */
++_formatTdEl : function (oColumn, elTd, index, isLast) {
++    var oColumnSet = this._oColumnSet;
++    
++    // Set the TD's accessibility headers
++    var allHeaders = oColumnSet.headers,
++        allColHeaders = allHeaders[index],
++        sTdHeaders = "",
++        sHeader;
++    for(var j=0, headersLen=allColHeaders.length; j < headersLen; j++) {
++        sHeader = this._sId + "-th-" + allColHeaders[j] + ' ';
++        sTdHeaders += sHeader;
++    }
++    elTd.headers = sTdHeaders;
++    
++    // Class the TD element
++    var aAddClasses = [];
++    if(index === 0) {
++        aAddClasses[aAddClasses.length] = DT.CLASS_FIRST;
++    }
++    if(isLast) {
++        aAddClasses[aAddClasses.length] = DT.CLASS_LAST;
++    }
++    elTd.className = this._getColumnClassNames(oColumn, aAddClasses);
++
++    // Class the liner element
++    elTd.firstChild.className = DT.CLASS_LINER;
++
++    // Set Column width for fallback cases
++    if(oColumn.width && DT._bDynStylesFallback) {
++        // Validate minWidth
++        var nWidth = (oColumn.minWidth && (oColumn.width < oColumn.minWidth)) ?
++                oColumn.minWidth : oColumn.width;
++        elTd.firstChild.style.overflow = 'hidden';
++        elTd.firstChild.style.width = nWidth + 'px';
++    }
++    
++    return elTd;
++},
++
++
++/**
++ * Create a new TR element for a given Record and appends it with the correct
++ * number of Column-state-classed TD elements. Striping is the responsibility of
++ * the calling function, which may decide to stripe the single row, a subset of
++ * rows, or all the rows.
++ * @method _createTrEl
++ * @param oRecord {YAHOO.widget.Record} Record instance
++ * @return {HTMLElement} The new TR element.  This must be added to the DOM.
++ * @private 
++ */
++_addTrEl : function (oRecord) {
++    var elTrTemplate = this._getTrTemplateEl();
++    
++    // Clone the TR template.
++    var elTr = elTrTemplate.cloneNode(true);
++    
++    // Populate content
++    return this._updateTrEl(elTr,oRecord);
++},
++
++/**
++ * Formats the contents of the given TR's TD elements with data from the given
++ * Record. Only innerHTML should change, nothing structural.
++ *
++ * @method _updateTrEl
++ * @param elTr {HTMLElement} The TR element to update.
++ * @param oRecord {YAHOO.widget.Record} The associated Record instance.
++ * @return {HTMLElement} DOM reference to the new TR element.
++ * @private
++ */
++_updateTrEl : function(elTr, oRecord) {
++    var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true;
++    if(ok) {
++        // Hide the row to prevent constant reflows
++        elTr.style.display = 'none';
++        
++        // Update TD elements with new data
++        var allTds = elTr.childNodes,
++            elTd;
++        for(var i=0,len=allTds.length; i<len; ++i) {
++            elTd = allTds[i];
++            
++            // Set the cell content
++            this.formatCell(allTds[i].firstChild, oRecord, this._oColumnSet.keys[i]);
++        }
++        
++        // Redisplay the row for reflow
++        elTr.style.display = '';
++    }
++    
++    elTr.id = oRecord.getId(); // Needed for Record association and tracking of FIRST/LAST
++    return elTr;
++},
++
++
++/**
++ * Deletes TR element by DOM reference or by DataTable page row index.
++ *
++ * @method _deleteTrEl
++ * @param row {HTMLElement | Number} TR element reference or Datatable page row index.
++ * @return {Boolean} Returns true if successful, else returns false.
++ * @private
++ */
++_deleteTrEl : function(row) {
++    var rowIndex;
++
++    // Get page row index for the element
++    if(!lang.isNumber(row)) {
++        rowIndex = Dom.get(row).sectionRowIndex;
++    }
++    else {
++        rowIndex = row;
++    }
++    if(lang.isNumber(rowIndex) && (rowIndex > -2) && (rowIndex < this._elTbody.rows.length)) {
++        // Cannot use tbody.deleteRow due to IE6 instability
++        //return this._elTbody.deleteRow(rowIndex);
++        return this._elTbody.removeChild(this.getTrEl(row));
++    }
++    else {
++        return null;
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// CSS/STATE FUNCTIONS
++
++
++
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_FIRST from the first TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _unsetFirstRow
++ * @private
++ */
++_unsetFirstRow : function() {
++    // Remove FIRST
++    if(this._sFirstTrId) {
++        Dom.removeClass(this._sFirstTrId, DT.CLASS_FIRST);
++        this._sFirstTrId = null;
++    }
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_FIRST to the first TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _setFirstRow
++ * @private
++ */
++_setFirstRow : function() {
++    this._unsetFirstRow();
++    var elTr = this.getFirstTrEl();
++    if(elTr) {
++        // Set FIRST
++        Dom.addClass(elTr, DT.CLASS_FIRST);
++        this._sFirstTrId = elTr.id;
++    }
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_LAST from the last TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _unsetLastRow
++ * @private
++ */
++_unsetLastRow : function() {
++    // Unassign previous class
++    if(this._sLastTrId) {
++        Dom.removeClass(this._sLastTrId, DT.CLASS_LAST);
++        this._sLastTrId = null;
++    }   
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_LAST to the last TR element
++ * of the DataTable page and updates internal tracker.
++ *
++ * @method _setLastRow
++ * @private
++ */
++_setLastRow : function() {
++    this._unsetLastRow();
++    var elTr = this.getLastTrEl();
++    if(elTr) {
++        // Assign class
++        Dom.addClass(elTr, DT.CLASS_LAST);
++        this._sLastTrId = elTr.id;
++    }
++},
++
++/**
++ * Assigns the classes DT.CLASS_EVEN and DT.CLASS_ODD to one, many, or all TR elements.
++ *
++ * @method _setRowStripes
++ * @param row {HTMLElement | String | Number} (optional) HTML TR element reference
++ * or string ID, or page row index of where to start striping.
++ * @param range {Number} (optional) If given, how many rows to stripe, otherwise
++ * stripe all the rows until the end.
++ * @private
++ */
++_setRowStripes : function(row, range) {
++    // Default values stripe all rows
++    var allRows = this._elTbody.rows,
++        nStartIndex = 0,
++        nEndIndex = allRows.length,
++        aOdds = [], nOddIdx = 0,
++        aEvens = [], nEvenIdx = 0;
++
++    // Stripe a subset
++    if((row !== null) && (row !== undefined)) {
++        // Validate given start row
++        var elStartRow = this.getTrEl(row);
++        if(elStartRow) {
++            nStartIndex = elStartRow.sectionRowIndex;
++
++            // Validate given range
++            if(lang.isNumber(range) && (range > 1)) {
++                nEndIndex = nStartIndex + range;
++            }
++        }
++    }
++
++    for(var i=nStartIndex; i<nEndIndex; i++) {
++        if(i%2) {
++            aOdds[nOddIdx++] = allRows[i];
++        } else {
++            aEvens[nEvenIdx++] = allRows[i];
++        }
++    }
++
++    if (aOdds.length) {
++        Dom.replaceClass(aOdds, DT.CLASS_EVEN, DT.CLASS_ODD);
++    }
++
++    if (aEvens.length) {
++        Dom.replaceClass(aEvens, DT.CLASS_ODD, DT.CLASS_EVEN);
++    }
++},
++
++/**
++ * Assigns the class DT.CLASS_SELECTED to TR and TD elements.
++ *
++ * @method _setSelections
++ * @private
++ */
++_setSelections : function() {
++    // Keep track of selected rows
++    var allSelectedRows = this.getSelectedRows();
++    // Keep track of selected cells
++    var allSelectedCells = this.getSelectedCells();
++    // Anything to select?
++    if((allSelectedRows.length>0) || (allSelectedCells.length > 0)) {
++        var oColumnSet = this._oColumnSet,
++            el;
++        // Loop over each row
++        for(var i=0; i<allSelectedRows.length; i++) {
++            el = Dom.get(allSelectedRows[i]);
++            if(el) {
++                Dom.addClass(el, DT.CLASS_SELECTED);
++            }
++        }
++        // Loop over each cell
++        for(i=0; i<allSelectedCells.length; i++) {
++            el = Dom.get(allSelectedCells[i].recordId);
++            if(el) {
++                Dom.addClass(el.childNodes[oColumnSet.getColumn(allSelectedCells[i].columnKey).getKeyIndex()], DT.CLASS_SELECTED);
++            }
++        }
++    }       
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private DOM Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Validates minWidths whenever the render chain ends.
++ *
++ * @method _onRenderChainEnd
++ * @private
++ */
++_onRenderChainEnd : function() {
++    // Hide loading message
++    this.hideTableMessage();
++    
++    // Show empty message
++    if(this._elTbody.rows.length === 0) {
++        this.showTableMessage(this.get("MSG_EMPTY"), DT.CLASS_EMPTY);        
++    }
++
++    // Execute in timeout thread to give implementers a chance
++    // to subscribe after the constructor
++    var oSelf = this;
++    setTimeout(function() {
++        if((oSelf instanceof DT) && oSelf._sId) {        
++            // Init event
++            if(oSelf._bInit) {
++                oSelf._bInit = false;
++                oSelf.fireEvent("initEvent");
++            }
++    
++            // Render event
++            oSelf.fireEvent("renderEvent");
++            // Backward compatibility
++            oSelf.fireEvent("refreshEvent");
++    
++            // Post-render routine
++            oSelf.validateColumnWidths();
++    
++            // Post-render event
++            oSelf.fireEvent("postRenderEvent");
++            
++            /*if(YAHOO.example.Performance.trialStart) {
++                YAHOO.example.Performance.trialStart = null;
++            }*/
++            
++        }
++    }, 0);
++},
++
++/**
++ * Handles click events on the DOCUMENT.
++ *
++ * @method _onDocumentClick
++ * @param e {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onDocumentClick : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++
++    if(!Dom.isAncestor(oSelf._elContainer, elTarget)) {
++        oSelf.fireEvent("tableBlurEvent");
++
++        // Fires editorBlurEvent when click is not within the TABLE.
++        // For cases when click is within the TABLE, due to timing issues,
++        // the editorBlurEvent needs to get fired by the lower-level DOM click
++        // handlers below rather than by the TABLE click handler directly.
++        if(oSelf._oCellEditor) {
++            if(oSelf._oCellEditor.getContainerEl) {
++                var elContainer = oSelf._oCellEditor.getContainerEl();
++                // Only if the click was not within the CellEditor container
++                if(!Dom.isAncestor(elContainer, elTarget) &&
++                        (elContainer.id !== elTarget.id)) {
++                    oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++                }
++            }
++            // Backward Compatibility
++            else if(oSelf._oCellEditor.isActive) {
++                // Only if the click was not within the Cell Editor container
++                if(!Dom.isAncestor(oSelf._oCellEditor.container, elTarget) &&
++                        (oSelf._oCellEditor.container.id !== elTarget.id)) {
++                    oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Handles focus events on the DataTable instance.
++ *
++ * @method _onTableFocus
++ * @param e {HTMLEvent} The focus event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableFocus : function(e, oSelf) {
++    oSelf.fireEvent("tableFocusEvent");
++},
++
++/**
++ * Handles focus events on the THEAD element.
++ *
++ * @method _onTheadFocus
++ * @param e {HTMLEvent} The focus event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTheadFocus : function(e, oSelf) {
++    oSelf.fireEvent("theadFocusEvent");
++    oSelf.fireEvent("tableFocusEvent");
++},
++
++/**
++ * Handles focus events on the TBODY element.
++ *
++ * @method _onTbodyFocus
++ * @param e {HTMLEvent} The focus event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTbodyFocus : function(e, oSelf) {
++    oSelf.fireEvent("tbodyFocusEvent");
++    oSelf.fireEvent("tableFocusEvent");
++},
++
++/**
++ * Handles mouseover events on the DataTable instance.
++ *
++ * @method _onTableMouseover
++ * @param e {HTMLEvent} The mouseover event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMouseover : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++        var elTag = elTarget.nodeName.toLowerCase();
++        var bKeepBubbling = true;
++        while(elTarget && (elTag != "table")) {
++            switch(elTag) {
++                case "body":
++                     return;
++                case "a":
++                    break;
++                case "td":
++                    bKeepBubbling = oSelf.fireEvent("cellMouseoverEvent",{target:elTarget,event:e});
++                    break;
++                case "span":
++                    if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                        bKeepBubbling = oSelf.fireEvent("theadLabelMouseoverEvent",{target:elTarget,event:e});
++                        // Backward compatibility
++                        bKeepBubbling = oSelf.fireEvent("headerLabelMouseoverEvent",{target:elTarget,event:e});
++                    }
++                    break;
++                case "th":
++                    bKeepBubbling = oSelf.fireEvent("theadCellMouseoverEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerCellMouseoverEvent",{target:elTarget,event:e});
++                    break;
++                case "tr":
++                    if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                        bKeepBubbling = oSelf.fireEvent("theadRowMouseoverEvent",{target:elTarget,event:e});
++                        // Backward compatibility
++                        bKeepBubbling = oSelf.fireEvent("headerRowMouseoverEvent",{target:elTarget,event:e});
++                    }
++                    else {
++                        bKeepBubbling = oSelf.fireEvent("rowMouseoverEvent",{target:elTarget,event:e});
++                    }
++                    break;
++                default:
++                    break;
++            }
++            if(bKeepBubbling === false) {
++                return;
++            }
++            else {
++                elTarget = elTarget.parentNode;
++                if(elTarget) {
++                    elTag = elTarget.nodeName.toLowerCase();
++                }
++            }
++        }
++        oSelf.fireEvent("tableMouseoverEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles mouseout events on the DataTable instance.
++ *
++ * @method _onTableMouseout
++ * @param e {HTMLEvent} The mouseout event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMouseout : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "a":
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellMouseoutEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseoutEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseoutEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellMouseoutEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellMouseoutEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowMouseoutEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowMouseoutEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowMouseoutEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableMouseoutEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles mousedown events on the DataTable instance.
++ *
++ * @method _onTableMousedown
++ * @param e {HTMLEvent} The mousedown event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMousedown : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "a":
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellMousedownEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelMousedownEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelMousedownEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellMousedownEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellMousedownEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowMousedownEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowMousedownEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowMousedownEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableMousedownEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles mouseup events on the DataTable instance.
++ *
++ * @method _onTableMouseup
++ * @param e {HTMLEvent} The mouseup event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableMouseup : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "a":
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellMouseupEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelMouseupEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelMouseupEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellMouseupEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellMouseupEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowMouseupEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowMouseupEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowMouseupEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableMouseupEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles dblclick events on the DataTable instance.
++ *
++ * @method _onTableDblclick
++ * @param e {HTMLEvent} The dblclick event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableDblclick : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellDblclickEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelDblclickEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelDblclickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellDblclickEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellDblclickEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                if(elTarget.parentNode.nodeName.toLowerCase() == "thead") {
++                    bKeepBubbling = oSelf.fireEvent("theadRowDblclickEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerRowDblclickEvent",{target:elTarget,event:e});
++                }
++                else {
++                    bKeepBubbling = oSelf.fireEvent("rowDblclickEvent",{target:elTarget,event:e});
++                }
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableDblclickEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++/**
++ * Handles keydown events on the THEAD element.
++ *
++ * @method _onTheadKeydown
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTheadKeydown : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++            case "textarea":
++                // TODO: implement textareaKeyEvent
++                break;
++            case "thead":
++                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles keydown events on the TBODY element. Handles selection behavior,
++ * provides hooks for ENTER to edit functionality.
++ *
++ * @method _onTbodyKeydown
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTbodyKeydown : function(e, oSelf) {
++    var sMode = oSelf.get("selectionMode");
++
++    if(sMode == "standard") {
++        oSelf._handleStandardSelectionByKey(e);
++    }
++    else if(sMode == "single") {
++        oSelf._handleSingleSelectionByKey(e);
++    }
++    else if(sMode == "cellblock") {
++        oSelf._handleCellBlockSelectionByKey(e);
++    }
++    else if(sMode == "cellrange") {
++        oSelf._handleCellRangeSelectionByKey(e);
++    }
++    else if(sMode == "singlecell") {
++        oSelf._handleSingleCellSelectionByKey(e);
++    }
++    
++    if(oSelf._oCellEditor) {
++        if(oSelf._oCellEditor.fireEvent) {
++            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++        }
++        else if(oSelf._oCellEditor.isActive) {
++            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        }
++    }
++
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "tbody":
++                bKeepBubbling = oSelf.fireEvent("tbodyKeyEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles keypress events on the TABLE. Mainly to support stopEvent on Mac.
++ *
++ * @method _onTableKeypress
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTableKeypress : function(e, oSelf) {
++    if(ua.opera || (navigator.userAgent.toLowerCase().indexOf("mac") !== -1) && (ua.webkit < 420)) {
++        var nKey = Ev.getCharCode(e);
++        // arrow down
++        if(nKey == 40) {
++            Ev.stopEvent(e);
++        }
++        // arrow up
++        else if(nKey == 38) {
++            Ev.stopEvent(e);
++        }
++    }
++},
++
++/**
++ * Handles click events on the THEAD element.
++ *
++ * @method _onTheadClick
++ * @param e {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTheadClick : function(e, oSelf) {
++    // This blurs the CellEditor
++    if(oSelf._oCellEditor) {
++        if(oSelf._oCellEditor.fireEvent) {
++            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++        }
++        // Backward compatibility
++        else if(oSelf._oCellEditor.isActive) {
++            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        }
++    }
++
++    var elTarget = Ev.getTarget(e),
++        elTag = elTarget.nodeName.toLowerCase(),
++        bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++                var sType = elTarget.type.toLowerCase();
++                if(sType == "checkbox") {
++                    bKeepBubbling = oSelf.fireEvent("theadCheckboxClickEvent",{target:elTarget,event:e});
++                }
++                else if(sType == "radio") {
++                    bKeepBubbling = oSelf.fireEvent("theadRadioClickEvent",{target:elTarget,event:e});
++                }
++                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
++                    bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "a":
++                bKeepBubbling = oSelf.fireEvent("theadLinkClickEvent",{target:elTarget,event:e});
++                break;
++            case "button":
++                bKeepBubbling = oSelf.fireEvent("theadButtonClickEvent",{target:elTarget,event:e});
++                break;
++            case "span":
++                if(Dom.hasClass(elTarget, DT.CLASS_LABEL)) {
++                    bKeepBubbling = oSelf.fireEvent("theadLabelClickEvent",{target:elTarget,event:e});
++                    // Backward compatibility
++                    bKeepBubbling = oSelf.fireEvent("headerLabelClickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "th":
++                bKeepBubbling = oSelf.fireEvent("theadCellClickEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerCellClickEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                bKeepBubbling = oSelf.fireEvent("theadRowClickEvent",{target:elTarget,event:e});
++                // Backward compatibility
++                bKeepBubbling = oSelf.fireEvent("headerRowClickEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles click events on the primary TBODY element.
++ *
++ * @method _onTbodyClick
++ * @param e {HTMLEvent} The click event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onTbodyClick : function(e, oSelf) {
++    // This blurs the CellEditor
++    if(oSelf._oCellEditor) {
++        if(oSelf._oCellEditor.fireEvent) {
++            oSelf._oCellEditor.fireEvent("blurEvent", {editor: oSelf._oCellEditor});
++        }
++        else if(oSelf._oCellEditor.isActive) {
++            oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        }
++    }
++
++    // Fire Custom Events
++    var elTarget = Ev.getTarget(e),
++        elTag = elTarget.nodeName.toLowerCase(),
++        bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++                var sType = elTarget.type.toLowerCase();
++                if(sType == "checkbox") {
++                    bKeepBubbling = oSelf.fireEvent("checkboxClickEvent",{target:elTarget,event:e});
++                }
++                else if(sType == "radio") {
++                    bKeepBubbling = oSelf.fireEvent("radioClickEvent",{target:elTarget,event:e});
++                }
++                else if((sType == "button") || (sType == "image") || (sType == "submit") || (sType == "reset")) {
++                    bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
++                }
++                break;
++            case "a":
++                bKeepBubbling = oSelf.fireEvent("linkClickEvent",{target:elTarget,event:e});
++                break;
++            case "button":
++                bKeepBubbling = oSelf.fireEvent("buttonClickEvent",{target:elTarget,event:e});
++                break;
++            case "td":
++                bKeepBubbling = oSelf.fireEvent("cellClickEvent",{target:elTarget,event:e});
++                break;
++            case "tr":
++                bKeepBubbling = oSelf.fireEvent("rowClickEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableClickEvent",{target:(elTarget || oSelf._elContainer),event:e});
++},
++
++/**
++ * Handles change events on SELECT elements within DataTable.
++ *
++ * @method _onDropdownChange
++ * @param e {HTMLEvent} The change event.
++ * @param oSelf {YAHOO.wiget.DataTable} DataTable instance.
++ * @private
++ */
++_onDropdownChange : function(e, oSelf) {
++    var elTarget = Ev.getTarget(e);
++    oSelf.fireEvent("dropdownChangeEvent", {event:e, target:elTarget});
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Returns object literal of initial configs.
++ *
++ * @property configs
++ * @type Object
++ * @default {} 
++ */
++configs: null,
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Returns unique id assigned to instance, which is a useful prefix for
++ * generating unique DOM ID strings.
++ *
++ * @method getId
++ * @return {String} Unique ID of the DataSource instance.
++ */
++getId : function() {
++    return this._sId;
++},
++
++/**
++ * DataSource instance name, for logging.
++ *
++ * @method toString
++ * @return {String} Unique name of the DataSource instance.
++ */
++
++toString : function() {
++    return "DataTable instance " + this._sId;
++},
++
++/**
++ * Returns the DataTable instance's DataSource instance.
++ *
++ * @method getDataSource
++ * @return {YAHOO.util.DataSource} DataSource instance.
++ */
++getDataSource : function() {
++    return this._oDataSource;
++},
++
++/**
++ * Returns the DataTable instance's ColumnSet instance.
++ *
++ * @method getColumnSet
++ * @return {YAHOO.widget.ColumnSet} ColumnSet instance.
++ */
++getColumnSet : function() {
++    return this._oColumnSet;
++},
++
++/**
++ * Returns the DataTable instance's RecordSet instance.
++ *
++ * @method getRecordSet
++ * @return {YAHOO.widget.RecordSet} RecordSet instance.
++ */
++getRecordSet : function() {
++    return this._oRecordSet;
++},
++
++/**
++ * Returns on object literal representing the DataTable instance's current
++ * state with the following properties:
++ * <dl>
++ * <dt>pagination</dt>
++ * <dd>Instance of YAHOO.widget.Paginator</dd>
++ *
++ * <dt>sortedBy</dt>
++ * <dd>
++ *     <dl>
++ *         <dt>sortedBy.key</dt>
++ *         <dd>{String} Key of sorted Column</dd>
++ *         <dt>sortedBy.dir</dt>
++ *         <dd>{String} Initial sort direction, either YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTable.CLASS_DESC</dd>
++ *     </dl>
++ * </dd>
++ *
++ * <dt>selectedRows</dt>
++ * <dd>Array of selected rows by Record ID.</dd>
++ *
++ * <dt>selectedCells</dt>
++ * <dd>Selected cells as an array of object literals:
++ *     {recordId:sRecordId, columnKey:sColumnKey}</dd>
++ * </dl>
++ *  
++ * @method getState
++ * @return {Object} DataTable instance state object literal values.
++ */
++getState : function() {
++    return {
++        totalRecords: this.get('paginator') ? this.get('paginator').get("totalRecords") : this._oRecordSet.getLength(),
++        pagination: this.get("paginator") ? this.get("paginator").getState() : null,
++        sortedBy: this.get("sortedBy"),
++        selectedRows: this.getSelectedRows(),
++        selectedCells: this.getSelectedCells()
++    };
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// DOM ACCESSORS
++
++/**
++ * Returns DOM reference to the DataTable's container element.
++ *
++ * @method getContainerEl
++ * @return {HTMLElement} Reference to DIV element.
++ */
++getContainerEl : function() {
++    return this._elContainer;
++},
++
++/**
++ * Returns DOM reference to the DataTable's TABLE element.
++ *
++ * @method getTableEl
++ * @return {HTMLElement} Reference to TABLE element.
++ */
++getTableEl : function() {
++    return this._elTable;
++},
++
++/**
++ * Returns DOM reference to the DataTable's THEAD element.
++ *
++ * @method getTheadEl
++ * @return {HTMLElement} Reference to THEAD element.
++ */
++getTheadEl : function() {
++    return this._elThead;
++},
++
++/**
++ * Returns DOM reference to the DataTable's primary TBODY element.
++ *
++ * @method getTbodyEl
++ * @return {HTMLElement} Reference to TBODY element.
++ */
++getTbodyEl : function() {
++    return this._elTbody;
++},
++
++/**
++ * Returns DOM reference to the DataTable's secondary TBODY element that is
++ * used to display messages.
++ *
++ * @method getMsgTbodyEl
++ * @return {HTMLElement} Reference to TBODY element.
++ */
++getMsgTbodyEl : function() {
++    return this._elMsgTbody;
++},
++
++/**
++ * Returns DOM reference to the TD element within the secondary TBODY that is
++ * used to display messages.
++ *
++ * @method getMsgTdEl
++ * @return {HTMLElement} Reference to TD element.
++ */
++getMsgTdEl : function() {
++    return this._elMsgTd;
++},
++
++/**
++ * Returns the corresponding TR reference for a given DOM element, ID string or
++ * directly page row index. If the given identifier is a child of a TR element,
++ * then DOM tree is traversed until a parent TR element is returned, otherwise
++ * null.
++ *
++ * @method getTrEl
++ * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Which row to
++ * get: by element reference, ID string, page row index, or Record.
++ * @return {HTMLElement} Reference to TR element, or null.
++ */
++getTrEl : function(row) {
++    // By Record
++    if(row instanceof YAHOO.widget.Record) {
++        return document.getElementById(row.getId());
++    }
++    // By page row index
++    else if(lang.isNumber(row)) {
++        var allRows = this._elTbody.rows;
++        return ((row > -1) && (row < allRows.length)) ? allRows[row] : null;
++    }
++    // By ID string or element reference
++    else {
++        var elRow = (lang.isString(row)) ? document.getElementById(row) : row;
++
++        // Validate HTML element
++        if(elRow && (elRow.ownerDocument == document)) {
++            // Validate TR element
++            if(elRow.nodeName.toLowerCase() != "tr") {
++                // Traverse up the DOM to find the corresponding TR element
++                elRow = Dom.getAncestorByTagName(elRow,"tr");
++            }
++
++            return elRow;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns DOM reference to the first TR element in the DataTable page, or null.
++ *
++ * @method getFirstTrEl
++ * @return {HTMLElement} Reference to TR element.
++ */
++getFirstTrEl : function() {
++    return this._elTbody.rows[0] || null;
++},
++
++/**
++ * Returns DOM reference to the last TR element in the DataTable page, or null.
++ *
++ * @method getLastTrEl
++ * @return {HTMLElement} Reference to last TR element.
++ */
++getLastTrEl : function() {
++    var allRows = this._elTbody.rows;
++        if(allRows.length > 0) {
++            return allRows[allRows.length-1] || null;
++        }
++},
++
++/**
++ * Returns DOM reference to the next TR element from the given TR element, or null.
++ *
++ * @method getNextTrEl
++ * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
++ * reference, ID string, page row index, or Record from which to get next TR element.
++ * @return {HTMLElement} Reference to next TR element.
++ */
++getNextTrEl : function(row) {
++    var nThisTrIndex = this.getTrIndex(row);
++    if(nThisTrIndex !== null) {
++        var allRows = this._elTbody.rows;
++        if(nThisTrIndex < allRows.length-1) {
++            return allRows[nThisTrIndex+1];
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns DOM reference to the previous TR element from the given TR element, or null.
++ *
++ * @method getPreviousTrEl
++ * @param row {HTMLElement | String | Number | YAHOO.widget.Record} Element
++ * reference, ID string, page row index, or Record from which to get previous TR element.
++ * @return {HTMLElement} Reference to previous TR element.
++ */
++getPreviousTrEl : function(row) {
++    var nThisTrIndex = this.getTrIndex(row);
++    if(nThisTrIndex !== null) {
++        var allRows = this._elTbody.rows;
++        if(nThisTrIndex > 0) {
++            return allRows[nThisTrIndex-1];
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns DOM reference to a TD liner element.
++ *
++ * @method getTdLinerEl
++ * @param cell {HTMLElement | Object} TD element or child of a TD element, or
++ * object literal of syntax {record:oRecord, column:oColumn}.
++ * @return {HTMLElement} Reference to TD liner element.
++ */
++getTdLinerEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    return elCell.firstChild || null;
++},
++
++/**
++ * Returns DOM reference to a TD element.
++ *
++ * @method getTdEl
++ * @param cell {HTMLElement | String | Object} TD element or child of a TD element, or
++ * object literal of syntax {record:oRecord, column:oColumn}.
++ * @return {HTMLElement} Reference to TD element.
++ */
++getTdEl : function(cell) {
++    var elCell;
++    var el = Dom.get(cell);
++
++    // Validate HTML element
++    if(el && (el.ownerDocument == document)) {
++        // Validate TD element
++        if(el.nodeName.toLowerCase() != "td") {
++            // Traverse up the DOM to find the corresponding TR element
++            elCell = Dom.getAncestorByTagName(el, "td");
++        }
++        else {
++            elCell = el;
++        }
++        
++        // Make sure the TD is in this TBODY
++        // Bug 2527707 and bug 2263558
++        if(elCell && ((elCell.parentNode.parentNode == this._elTbody) || (elCell.parentNode.parentNode === null))) {
++            // Now we can return the TD element
++            return elCell;
++        }
++    }
++    else if(cell) {
++        var oRecord, nColKeyIndex;
++
++        if(lang.isString(cell.columnKey) && lang.isString(cell.recordId)) {
++            oRecord = this.getRecord(cell.recordId);
++            var oColumn = this.getColumn(cell.columnKey);
++            if(oColumn) {
++                nColKeyIndex = oColumn.getKeyIndex();
++            }
++
++        }
++        if(cell.record && cell.column && cell.column.getKeyIndex) {
++            oRecord = cell.record;
++            nColKeyIndex = cell.column.getKeyIndex();
++        }
++        var elRow = this.getTrEl(oRecord);
++        if((nColKeyIndex !== null) && elRow && elRow.cells && elRow.cells.length > 0) {
++            return elRow.cells[nColKeyIndex] || null;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns DOM reference to the first TD element in the DataTable page (by default),
++ * the first TD element of the optionally given row, or null.
++ *
++ * @method getFirstTdEl
++ * @param row {HTMLElement} (optional) row from which to get first TD
++ * @return {HTMLElement} Reference to TD element.
++ */
++getFirstTdEl : function(row) {
++    var elRow = this.getTrEl(row) || this.getFirstTrEl();
++    if(elRow && (elRow.cells.length > 0)) {
++        return elRow.cells[0];
++    }
++    return null;
++},
++
++/**
++ * Returns DOM reference to the last TD element in the DataTable page (by default),
++ * the first TD element of the optionally given row, or null.
++ *
++ * @method getLastTdEl
++ * @return {HTMLElement} Reference to last TD element.
++ */
++getLastTdEl : function(row) {
++    var elRow = this.getTrEl(row) || this.getLastTrEl();
++    if(elRow && (elRow.cells.length > 0)) {
++        return elRow.cells[elRow.cells.length-1];
++    }
++    return null;
++},
++
++/**
++ * Returns DOM reference to the next TD element from the given cell, or null.
++ *
++ * @method getNextTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
++ * @return {HTMLElement} Reference to next TD element, or null.
++ */
++getNextTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var nThisTdIndex = elCell.cellIndex;
++        var elRow = this.getTrEl(elCell);
++        if(nThisTdIndex < elRow.cells.length-1) {
++            return elRow.cells[nThisTdIndex+1];
++        }
++        else {
++            var elNextRow = this.getNextTrEl(elRow);
++            if(elNextRow) {
++                return elNextRow.cells[0];
++            }
++        }
++    }
++    return null;
++},
++
++/**
++ * Returns DOM reference to the previous TD element from the given cell, or null.
++ *
++ * @method getPreviousTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
++ * @return {HTMLElement} Reference to previous TD element, or null.
++ */
++getPreviousTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var nThisTdIndex = elCell.cellIndex;
++        var elRow = this.getTrEl(elCell);
++        if(nThisTdIndex > 0) {
++            return elRow.cells[nThisTdIndex-1];
++        }
++        else {
++            var elPreviousRow = this.getPreviousTrEl(elRow);
++            if(elPreviousRow) {
++                return this.getLastTdEl(elPreviousRow);
++            }
++        }
++    }
++    return null;
++},
++
++/**
++ * Returns DOM reference to the above TD element from the given cell, or null.
++ *
++ * @method getAboveTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get next TD element.
++ * @return {HTMLElement} Reference to next TD element, or null.
++ */
++getAboveTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var elPreviousRow = this.getPreviousTrEl(elCell);
++        if(elPreviousRow) {
++            return elPreviousRow.cells[elCell.cellIndex];
++        }
++    }
++    return null;
++},
++
++/**
++ * Returns DOM reference to the below TD element from the given cell, or null.
++ *
++ * @method getBelowTdEl
++ * @param cell {HTMLElement | String | Object} DOM element reference or string ID, or
++ * object literal of syntax {record:oRecord, column:oColumn} from which to get previous TD element.
++ * @return {HTMLElement} Reference to previous TD element, or null.
++ */
++getBelowTdEl : function(cell) {
++    var elCell = this.getTdEl(cell);
++    if(elCell) {
++        var elNextRow = this.getNextTrEl(elCell);
++        if(elNextRow) {
++            return elNextRow.cells[elCell.cellIndex];
++        }
++    }
++    return null;
++},
++
++/**
++ * Returns DOM reference to a TH liner element. Needed to normalize for resizeable 
++ * Columns, which have an additional resizer liner DIV element between the TH
++ * element and the liner DIV element. 
++ *
++ * @method getThLinerEl
++ * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
++ * DOM element reference, or string ID.
++ * @return {HTMLElement} Reference to TH liner element.
++ */
++getThLinerEl : function(theadCell) {
++    var oColumn = this.getColumn(theadCell);
++    return (oColumn) ? oColumn.getThLinerEl() : null;
++},
++
++/**
++ * Returns DOM reference to a TH element.
++ *
++ * @method getThEl
++ * @param theadCell {YAHOO.widget.Column | HTMLElement | String} Column instance,
++ * DOM element reference, or string ID.
++ * @return {HTMLElement} Reference to TH element.
++ */
++getThEl : function(theadCell) {
++    var elTh;
++
++    // Validate Column instance
++    if(theadCell instanceof YAHOO.widget.Column) {
++        var oColumn = theadCell;
++        elTh = oColumn.getThEl();
++        if(elTh) {
++            return elTh;
++        }
++    }
++    // Validate HTML element
++    else {
++        var el = Dom.get(theadCell);
++
++        if(el && (el.ownerDocument == document)) {
++            // Validate TH element
++            if(el.nodeName.toLowerCase() != "th") {
++                // Traverse up the DOM to find the corresponding TR element
++                elTh = Dom.getAncestorByTagName(el,"th");
++            }
++            else {
++                elTh = el;
++            }
++
++            return elTh;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * Returns the page row index of given row. Returns null if the row is not on the
++ * current DataTable page.
++ *
++ * @method getTrIndex
++ * @param row {HTMLElement | String | YAHOO.widget.Record | Number} DOM or ID
++ * string reference to an element within the DataTable page, a Record instance,
++ * or a Record's RecordSet index.
++ * @return {Number} Page row index, or null if row does not exist or is not on current page.
++ */
++getTrIndex : function(row) {
++    var nRecordIndex;
++
++    // By Record
++    if(row instanceof YAHOO.widget.Record) {
++        nRecordIndex = this._oRecordSet.getRecordIndex(row);
++        if(nRecordIndex === null) {
++            // Not a valid Record
++            return null;
++        }
++    }
++    // Calculate page row index from Record index
++    else if(lang.isNumber(row)) {
++        nRecordIndex = row;
++    }
++    if(lang.isNumber(nRecordIndex)) {
++        // Validate the number
++        if((nRecordIndex > -1) && (nRecordIndex < this._oRecordSet.getLength())) {
++            // DataTable is paginated
++            var oPaginator = this.get('paginator');
++            if(oPaginator) {
++                // Check the record index is within the indices of the
++                // current page
++                var rng = oPaginator.getPageRecords();
++                if (rng && nRecordIndex >= rng[0] && nRecordIndex <= rng[1]) {
++                    // This Record is on current page
++                    return nRecordIndex - rng[0];
++                }
++                // This Record is not on current page
++                else {
++                    return null;
++                }
++            }
++            // Not paginated, just return the Record index
++            else {
++                return nRecordIndex;
++            }
++        }
++        // RecordSet index is out of range
++        else {
++            return null;
++        }
++    }
++    // By element reference or ID string
++    else {
++        // Validate TR element
++        var elRow = this.getTrEl(row);
++        if(elRow && (elRow.ownerDocument == document) &&
++                (elRow.parentNode == this._elTbody)) {
++            return elRow.sectionRowIndex;
++        }
++    }
++
++    return null;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// TABLE FUNCTIONS
++
++/**
++ * Resets a RecordSet with the given data and populates the page view
++ * with the new data. Any previous data, and selection and sort states are
++ * cleared. New data should be added as a separate step. 
++ *
++ * @method initializeTable
++ */
++initializeTable : function() {
++    // Reset init flag
++    this._bInit = true;
++    
++    // Clear the RecordSet
++    this._oRecordSet.reset();
++
++    // Clear the Paginator's totalRecords if paginating
++    var pag = this.get('paginator');
++    if (pag) {
++        pag.set('totalRecords',0);
++    }
++
++    // Clear selections
++    this._unselectAllTrEls();
++    this._unselectAllTdEls();
++    this._aSelections = null;
++    this._oAnchorRecord = null;
++    this._oAnchorCell = null;
++    
++    // Clear sort
++    this.set("sortedBy", null);
++},
++
++/**
++ * Internal wrapper calls run() on render Chain instance.
++ *
++ * @method _runRenderChain
++ * @private 
++ */
++_runRenderChain : function() {
++    this._oChainRender.run();
++},
++
++/**
++ * Renders the view with existing Records from the RecordSet while
++ * maintaining sort, pagination, and selection states. For performance, reuses
++ * existing DOM elements when possible while deleting extraneous elements.
++ *
++ * @method render
++ */
++render : function() {
++//YAHOO.example.Performance.trialStart = new Date();
++
++    this._oChainRender.stop();
++
++    this.fireEvent("beforeRenderEvent");
++
++    var i, j, k, len, allRecords;
++
++    var oPaginator = this.get('paginator');
++    // Paginator is enabled, show a subset of Records and update Paginator UI
++    if(oPaginator) {
++        allRecords = this._oRecordSet.getRecords(
++                        oPaginator.getStartIndex(),
++                        oPaginator.getRowsPerPage());
++    }
++    // Not paginated, show all records
++    else {
++        allRecords = this._oRecordSet.getRecords();
++    }
++
++    // From the top, update in-place existing rows, so as to reuse DOM elements
++    var elTbody = this._elTbody,
++        loopN = this.get("renderLoopSize"),
++        nRecordsLength = allRecords.length;
++    
++    // Table has rows
++    if(nRecordsLength > 0) {                
++        elTbody.style.display = "none";
++        while(elTbody.lastChild) {
++            elTbody.removeChild(elTbody.lastChild);
++        }
++        elTbody.style.display = "";
++
++        // Set up the loop Chain to render rows
++        this._oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId) {
++                    var i = oArg.nCurrentRecord,
++                        endRecordIndex = ((oArg.nCurrentRecord+oArg.nLoopLength) > nRecordsLength) ?
++                                nRecordsLength : (oArg.nCurrentRecord+oArg.nLoopLength),
++                        elRow, nextSibling;
++
++                    elTbody.style.display = "none";
++                    
++                    for(; i<endRecordIndex; i++) {
++                        elRow = Dom.get(allRecords[i].getId());
++                        elRow = elRow || this._addTrEl(allRecords[i]);
++                        nextSibling = elTbody.childNodes[i] || null;
++                        elTbody.insertBefore(elRow, nextSibling);
++                    }
++                    elTbody.style.display = "";
++                    
++                    // Set up for the next loop
++                    oArg.nCurrentRecord = i;
++                }
++            },
++            scope: this,
++            iterations: (loopN > 0) ? Math.ceil(nRecordsLength/loopN) : 1,
++            argument: {
++                nCurrentRecord: 0,//nRecordsLength-1,  // Start at first Record
++                nLoopLength: (loopN > 0) ? loopN : nRecordsLength
++            },
++            timeout: (loopN > 0) ? 0 : -1
++        });
++        
++        // Post-render tasks
++        this._oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId) {
++                    while(elTbody.rows.length > nRecordsLength) {
++                        elTbody.removeChild(elTbody.lastChild);
++                    }
++                    this._setFirstRow();
++                    this._setLastRow();
++                    this._setRowStripes();
++                    this._setSelections();
++                }
++            },
++            scope: this,
++            timeout: (loopN > 0) ? 0 : -1
++        });
++     
++    }
++    // Table has no rows
++    else {
++        // Set up the loop Chain to delete rows
++        var nTotal = elTbody.rows.length;
++        if(nTotal > 0) {
++            this._oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId) {
++                        var i = oArg.nCurrent,
++                            loopN = oArg.nLoopLength,
++                            nIterEnd = (i - loopN < 0) ? -1 : i - loopN;
++    
++                        elTbody.style.display = "none";
++                        
++                        for(; i>nIterEnd; i--) {
++                            elTbody.deleteRow(-1);
++                        }
++                        elTbody.style.display = "";
++                        
++                        // Set up for the next loop
++                        oArg.nCurrent = i;
++                    }
++                },
++                scope: this,
++                iterations: (loopN > 0) ? Math.ceil(nTotal/loopN) : 1,
++                argument: {
++                    nCurrent: nTotal, 
++                    nLoopLength: (loopN > 0) ? loopN : nTotal
++                },
++                timeout: (loopN > 0) ? 0 : -1
++            });
++        }
++    }
++    this._runRenderChain();
++},
++
++/**
++ * Disables DataTable UI.
++ *
++ * @method disable
++ */
++disable : function() {
++    var elTable = this._elTable;
++    var elMask = this._elMask;
++    elMask.style.width = elTable.offsetWidth + "px";
++    elMask.style.height = elTable.offsetHeight + "px";
++    elMask.style.display = "";
++    this.fireEvent("disableEvent");
++},
++
++/**
++ * Undisables DataTable UI.
++ *
++ * @method undisable
++ */
++undisable : function() {
++    this._elMask.style.display = "none";
++    this.fireEvent("undisableEvent");
++},
++
++/**
++ * Nulls out the entire DataTable instance and related objects, removes attached
++ * event listeners, and clears out DOM elements inside the container. After
++ * calling this method, the instance reference should be expliclitly nulled by
++ * implementer, as in myDataTable = null. Use with caution!
++ *
++ * @method destroy
++ */
++destroy : function() {
++    // Store for later
++    var instanceName = this.toString();
++
++    this._oChainRender.stop();
++    
++    // Destroy static resizer proxy and column proxy
++    DT._destroyColumnDragTargetEl();
++    DT._destroyColumnResizerProxyEl();
++    
++    // Destroy ColumnDD and ColumnResizers
++    this._destroyColumnHelpers();
++    
++    // Destroy all CellEditors
++    var oCellEditor;
++    for(var i=0, len=this._oColumnSet.flat.length; i<len; i++) {
++        oCellEditor = this._oColumnSet.flat[i].editor;
++        if(oCellEditor && oCellEditor.destroy) {
++            oCellEditor.destroy();
++            this._oColumnSet.flat[i].editor = null;
++        }
++    }
++
++    // Destroy Paginator
++    this._destroyPaginator();
++
++    // Unhook custom events
++    this._oRecordSet.unsubscribeAll();
++    this.unsubscribeAll();
++
++    // Unhook DOM events
++    Ev.removeListener(document, "click", this._onDocumentClick);
++    
++    // Clear out the container
++    this._destroyContainerEl(this._elContainer);
++
++    // Null out objects
++    for(var param in this) {
++        if(lang.hasOwnProperty(this, param)) {
++            this[param] = null;
++        }
++    }
++    
++    // Clean up static values
++    DT._nCurrentCount--;
++    
++    if(DT._nCurrentCount < 1) {
++        if(DT._elDynStyleNode) {
++            document.getElementsByTagName('head')[0].removeChild(DT._elDynStyleNode);
++            DT._elDynStyleNode = null;
++        }
++    }
++
++},
++
++/**
++ * Displays message within secondary TBODY.
++ *
++ * @method showTableMessage
++ * @param sHTML {String} (optional) Value for innerHTMlang.
++ * @param sClassName {String} (optional) Classname.
++ */
++showTableMessage : function(sHTML, sClassName) {
++    var elCell = this._elMsgTd;
++    if(lang.isString(sHTML)) {
++        elCell.firstChild.innerHTML = sHTML;
++    }
++    if(lang.isString(sClassName)) {
++        elCell.className = sClassName;
++    }
++
++    this._elMsgTbody.style.display = "";
++
++    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
++},
++
++/**
++ * Hides secondary TBODY.
++ *
++ * @method hideTableMessage
++ */
++hideTableMessage : function() {
++    if(this._elMsgTbody.style.display != "none") {
++        this._elMsgTbody.style.display = "none";
++        this._elMsgTbody.parentNode.style.width = "";
++        this.fireEvent("tableMsgHideEvent");
++    }
++},
++
++/**
++ * Brings focus to the TBODY element. Alias to focusTbodyEl.
++ *
++ * @method focus
++ */
++focus : function() {
++    this.focusTbodyEl();
++},
++
++/**
++ * Brings focus to the THEAD element.
++ *
++ * @method focusTheadEl
++ */
++focusTheadEl : function() {
++    this._focusEl(this._elThead);
++},
++
++/**
++ * Brings focus to the TBODY element.
++ *
++ * @method focusTbodyEl
++ */
++focusTbodyEl : function() {
++    this._focusEl(this._elTbody);
++},
++
++/**
++ * Setting display:none on DataTable or any parent may impact width validations.
++ * After setting display back to "", implementers should call this method to 
++ * manually perform those validations.
++ *
++ * @method onShow
++ */
++onShow : function() {
++    this.validateColumnWidths();
++    
++    for(var allKeys = this._oColumnSet.keys, i=0, len=allKeys.length, col; i<len; i++) {
++        col = allKeys[i];
++        if(col._ddResizer) {
++            col._ddResizer.resetResizerEl();
++        }
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// RECORDSET FUNCTIONS
++
++/**
++ * Returns Record index for given TR element or page row index.
++ *
++ * @method getRecordIndex
++ * @param row {YAHOO.widget.Record | HTMLElement | Number} Record instance, TR
++ * element reference or page row index.
++ * @return {Number} Record's RecordSet index, or null.
++ */
++getRecordIndex : function(row) {
++    var nTrIndex;
++
++    if(!lang.isNumber(row)) {
++        // By Record
++        if(row instanceof YAHOO.widget.Record) {
++            return this._oRecordSet.getRecordIndex(row);
++        }
++        // By element reference
++        else {
++            // Find the TR element
++            var el = this.getTrEl(row);
++            if(el) {
++                nTrIndex = el.sectionRowIndex;
++            }
++        }
++    }
++    // By page row index
++    else {
++        nTrIndex = row;
++    }
++
++    if(lang.isNumber(nTrIndex)) {
++        var oPaginator = this.get("paginator");
++        if(oPaginator) {
++            return oPaginator.get('recordOffset') + nTrIndex;
++        }
++        else {
++            return nTrIndex;
++        }
++    }
++
++    return null;
++},
++
++/**
++ * For the given identifier, returns the associated Record instance.
++ *
++ * @method getRecord
++ * @param row {HTMLElement | Number | String} DOM reference to a TR element (or
++ * child of a TR element), RecordSet position index, or Record ID.
++ * @return {YAHOO.widget.Record} Record instance.
++ */
++getRecord : function(row) {
++    var oRecord = this._oRecordSet.getRecord(row);
++
++    if(!oRecord) {
++        // Validate TR element
++        var elRow = this.getTrEl(row);
++        if(elRow) {
++            oRecord = this._oRecordSet.getRecord(elRow.id);
++        }
++    }
++
++    if(oRecord instanceof YAHOO.widget.Record) {
++        return this._oRecordSet.getRecord(oRecord);
++    }
++    else {
++        return null;
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// COLUMN FUNCTIONS
++
++/**
++ * For the given identifier, returns the associated Column instance. Note: For
++ * getting Columns by Column ID string, please use the method getColumnById().
++ *
++ * @method getColumn
++ * @param column {HTMLElement | String | Number} TH/TD element (or child of a
++ * TH/TD element), a Column key, or a ColumnSet key index.
++ * @return {YAHOO.widget.Column} Column instance.
++ */
++getColumn : function(column) {
++    var oColumn = this._oColumnSet.getColumn(column);
++
++    if(!oColumn) {
++        // Validate TD element
++        var elCell = this.getTdEl(column);
++        if(elCell) {
++            oColumn = this._oColumnSet.getColumn(elCell.cellIndex);
++        }
++        // Validate TH element
++        else {
++            elCell = this.getThEl(column);
++            if(elCell) {
++                // Find by TH el ID
++                var allColumns = this._oColumnSet.flat;
++                for(var i=0, len=allColumns.length; i<len; i++) {
++                    if(allColumns[i].getThEl().id === elCell.id) {
++                        oColumn = allColumns[i];
++                    } 
++                }
++            }
++        }
++    }
++    if(!oColumn) {
++    }
++    return oColumn;
++},
++
++/**
++ * For the given Column ID, returns the associated Column instance. Note: For
++ * getting Columns by key, please use the method getColumn().
++ *
++ * @method getColumnById
++ * @param column {String} Column ID string.
++ * @return {YAHOO.widget.Column} Column instance.
++ */
++getColumnById : function(column) {
++    return this._oColumnSet.getColumnById(column);
++},
++
++/**
++ * For the given Column instance, returns next direction to sort.
++ *
++ * @method getColumnSortDir
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param oSortedBy {Object} (optional) Specify the state, or use current state. 
++ * @return {String} YAHOO.widget.DataTable.CLASS_ASC or YAHOO.widget.DataTableCLASS_DESC.
++ */
++getColumnSortDir : function(oColumn, oSortedBy) {
++    // Backward compatibility
++    if(oColumn.sortOptions && oColumn.sortOptions.defaultOrder) {
++        if(oColumn.sortOptions.defaultOrder == "asc") {
++            oColumn.sortOptions.defaultDir = DT.CLASS_ASC;
++        }
++        else if (oColumn.sortOptions.defaultOrder == "desc") {
++            oColumn.sortOptions.defaultDir = DT.CLASS_DESC;
++        }
++    }
++    
++    // What is the Column's default sort direction?
++    var sortDir = (oColumn.sortOptions && oColumn.sortOptions.defaultDir) ? oColumn.sortOptions.defaultDir : DT.CLASS_ASC;
++
++    // Is the Column currently sorted?
++    var bSorted = false;
++    oSortedBy = oSortedBy || this.get("sortedBy");
++    if(oSortedBy && (oSortedBy.key === oColumn.key)) {
++        bSorted = true;
++        if(oSortedBy.dir) {
++            sortDir = (oSortedBy.dir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
++        }
++        else {
++            sortDir = (sortDir === DT.CLASS_ASC) ? DT.CLASS_DESC : DT.CLASS_ASC;
++        }
++    }
++    return sortDir;
++},
++
++/**
++ * Overridable method gives implementers a hook to show loading message before
++ * sorting Column.
++ *
++ * @method doBeforeSortColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sSortDir {String} YAHOO.widget.DataTable.CLASS_ASC or
++ * YAHOO.widget.DataTable.CLASS_DESC.
++ * @return {Boolean} Return true to continue sorting Column.
++ */
++doBeforeSortColumn : function(oColumn, sSortDir) {
++    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
++    return true;
++},
++
++/**
++ * Sorts given Column. If "dynamicData" is true, current selections are purged before
++ * a request is sent to the DataSource for data for the new state (using the
++ * request returned by "generateRequest()").
++ *
++ * @method sortColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sDir {String} (Optional) YAHOO.widget.DataTable.CLASS_ASC or
++ * YAHOO.widget.DataTable.CLASS_DESC
++ */
++sortColumn : function(oColumn, sDir) {
++    if(oColumn && (oColumn instanceof YAHOO.widget.Column)) {
++        if(!oColumn.sortable) {
++            Dom.addClass(this.getThEl(oColumn), DT.CLASS_SORTABLE);
++        }
++        
++        // Validate given direction
++        if(sDir && (sDir !== DT.CLASS_ASC) && (sDir !== DT.CLASS_DESC)) {
++            sDir = null;
++        }
++        
++        // Get the sort dir
++        var sSortDir = sDir || this.getColumnSortDir(oColumn);
++
++        // Is the Column currently sorted?
++        var oSortedBy = this.get("sortedBy") || {};
++        var bSorted = (oSortedBy.key === oColumn.key) ? true : false;
++
++        var ok = this.doBeforeSortColumn(oColumn, sSortDir);
++        if(ok) {
++            // Server-side sort
++            if(this.get("dynamicData")) {
++                // Get current state
++                var oState = this.getState();
++                
++                // Reset record offset, if paginated
++                if(oState.pagination) {
++                    oState.pagination.recordOffset = 0;
++                }
++                
++                // Update sortedBy to new values
++                oState.sortedBy = {
++                    key: oColumn.key,
++                    dir: sSortDir
++                };
++                
++                // Get the request for the new state
++                var request = this.get("generateRequest")(oState, this);
++
++                // Purge selections
++                this.unselectAllRows();
++                this.unselectAllCells();
++
++                // Send request for new data
++                var callback = {
++                    success : this.onDataReturnSetRows,
++                    failure : this.onDataReturnSetRows,
++                    argument : oState, // Pass along the new state to the callback
++                    scope : this
++                };
++                this._oDataSource.sendRequest(request, callback);            
++            }
++            // Client-side sort
++            else {
++                // Is there a custom sort handler function defined?
++                var sortFnc = (oColumn.sortOptions && lang.isFunction(oColumn.sortOptions.sortFunction)) ?
++                        // Custom sort function
++                        oColumn.sortOptions.sortFunction : null;
++                   
++                // Sort the Records
++                if(!bSorted || sDir || sortFnc) {
++                    // Shortcut for the frequently-used compare method
++                    var compare = YAHOO.util.Sort.compare;
++
++                    // Default sort function if necessary
++                    sortFnc = sortFnc || 
++                        function(a, b, desc, field) {
++                            var sorted = compare(a.getData(field),b.getData(field), desc);
++                            if(sorted === 0) {
++                                return compare(a.getCount(),b.getCount(), desc); // Bug 1932978
++                            }
++                            else {
++                                return sorted;
++                            }
++                        };
++
++                    // Get the field to sort
++                    var sField = (oColumn.sortOptions && oColumn.sortOptions.field) ? oColumn.sortOptions.field : oColumn.field;
++
++                    // Sort the Records        
++                    this._oRecordSet.sortRecords(sortFnc, ((sSortDir == DT.CLASS_DESC) ? true : false), sField);
++                }
++                // Just reverse the Records
++                else {
++                    this._oRecordSet.reverseRecords();
++                }
++        
++                // Reset to first page if paginated
++                var oPaginator = this.get('paginator');
++                if (oPaginator) {
++                    // Set page silently, so as not to fire change event.
++                    oPaginator.setPage(1,true);
++                }
++        
++                // Update UI via sortedBy
++                this.render();
++                this.set("sortedBy", {key:oColumn.key, dir:sSortDir, column:oColumn}); 
++            }       
++            
++            this.fireEvent("columnSortEvent",{column:oColumn,dir:sSortDir});
++            return;
++        }
++    }
++},
++
++/**
++ * Sets given Column to given pixel width. If new width is less than minimum
++ * width, sets to minimum width. Updates oColumn.width value.
++ *
++ * @method setColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param nWidth {Number} New width in pixels. A null value auto-sizes Column,
++ * subject to minWidth and maxAutoWidth validations. 
++ */
++setColumnWidth : function(oColumn, nWidth) {
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    if(oColumn) {
++        // Validate new width against minimum width
++        if(lang.isNumber(nWidth)) {
++            // This is why we must require a Number... :-|
++            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
++
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, nWidth+"px");
++            
++            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
++        }
++        // Unsets a width to auto-size
++        else if(nWidth === null) {
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, "auto");
++            this.validateColumnWidths(oColumn);
++            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
++        }
++                
++        // Bug 2339454: resize then sort misaligment
++        this._clearTrTemplateEl();
++    }
++    else {
++    }
++},
++
++/**
++ * Sets liner DIV elements of given Column to given width. When value should be
++ * auto-calculated to fit content overflow is set to visible, otherwise overflow
++ * is set to hidden. No validations against minimum width and no updating
++ * Column.width value.
++ *
++ * @method _setColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sWidth {String} New width value.
++ * @param sOverflow {String} Should be "hidden" when Column width is explicitly
++ * being set to a value, but should be "visible" when Column is meant to auto-fit content.  
++ * @private
++ */
++_setColumnWidth : function(oColumn, sWidth, sOverflow) {
++    if(oColumn && (oColumn.getKeyIndex() !== null)) {
++        sOverflow = sOverflow || (((sWidth === '') || (sWidth === 'auto')) ? 'visible' : 'hidden');
++    
++        // Dynamic style algorithm
++        if(!DT._bDynStylesFallback) {
++            this._setColumnWidthDynStyles(oColumn, sWidth, sOverflow);
++        }
++        // Dynamic function algorithm
++        else {
++            this._setColumnWidthDynFunction(oColumn, sWidth, sOverflow);
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * Updates width of a Column's liner DIV elements by dynamically creating a
++ * STYLE node and writing and updating CSS style rules to it. If this fails during
++ * runtime, the fallback method _setColumnWidthDynFunction() will be called.
++ * Notes: This technique is not performant in IE6. IE7 crashes if DataTable is
++ * nested within another TABLE element. For these cases, it is recommended to
++ * use the method _setColumnWidthDynFunction by setting _bDynStylesFallback to TRUE.
++ *
++ * @method _setColumnWidthDynStyles
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sWidth {String} New width value.
++ * @private
++ */
++_setColumnWidthDynStyles : function(oColumn, sWidth, sOverflow) {
++    var s = DT._elDynStyleNode,
++        rule;
++    
++    // Create a new STYLE node
++    if(!s) {
++        s = document.createElement('style');
++        s.type = 'text/css';
++        s = document.getElementsByTagName('head').item(0).appendChild(s);
++        DT._elDynStyleNode = s;
++    }
++    
++    // We have a STYLE node to update
++    if(s) {
++        // Use unique classname for this Column instance as a hook for resizing
++        var sClassname = "." + this.getId() + "-col-" + oColumn.getSanitizedKey() + " ." + DT.CLASS_LINER;
++        
++        // Hide for performance
++        if(this._elTbody) {
++            this._elTbody.style.display = 'none';
++        }
++        
++        rule = DT._oDynStyles[sClassname];
++
++        // The Column does not yet have a rule
++        if(!rule) {
++            if(s.styleSheet && s.styleSheet.addRule) {
++                s.styleSheet.addRule(sClassname,"overflow:"+sOverflow);
++                s.styleSheet.addRule(sClassname,'width:'+sWidth);
++                rule = s.styleSheet.rules[s.styleSheet.rules.length-1];
++                DT._oDynStyles[sClassname] = rule;
++            }
++            else if(s.sheet && s.sheet.insertRule) {
++                s.sheet.insertRule(sClassname+" {overflow:"+sOverflow+";width:"+sWidth+";}",s.sheet.cssRules.length);
++                rule = s.sheet.cssRules[s.sheet.cssRules.length-1];
++                DT._oDynStyles[sClassname] = rule;
++            }
++        }
++        // We have a rule to update
++        else {
++            rule.style.overflow = sOverflow;
++            rule.style.width = sWidth;
++        } 
++        
++        // Unhide
++        if(this._elTbody) {
++            this._elTbody.style.display = '';
++        }
++    }
++    
++    // That was not a success, we must call the fallback routine
++    if(!rule) {
++        DT._bDynStylesFallback = true;
++        this._setColumnWidthDynFunction(oColumn, sWidth);
++    }
++},
++
++/**
++ * Updates width of a Column's liner DIV elements by dynamically creating a
++ * function to update all element style properties in one pass. Note: This
++ * technique is not supported in sandboxed environments that prohibit EVALs.    
++ *
++ * @method _setColumnWidthDynFunction
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param sWidth {String} New width value.
++ * @private
++ */
++_setColumnWidthDynFunction : function(oColumn, sWidth, sOverflow) {
++    // TODO: why is this here?
++    if(sWidth == 'auto') {
++        sWidth = ''; 
++    }
++    
++    // Create one function for each value of rows.length
++    var rowslen = this._elTbody ? this._elTbody.rows.length : 0;
++    
++    // Dynamically create the function
++    if (!this._aDynFunctions[rowslen]) {
++        
++        //Compile a custom function to do all the liner div width
++        //assignments at the same time.  A unique function is required
++        //for each unique number of rows in _elTbody.  This will
++        //result in a function declaration like:
++        //function (oColumn,sWidth,sOverflow) {
++        //    var colIdx = oColumn.getKeyIndex();
++        //    oColumn.getThLinerEl().style.overflow =
++        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.overflow =
++        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.overflow =
++        //    ... (for all row indices in this._elTbody.rows.length - 1)
++        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.overflow =
++        //    sOverflow;
++        //    oColumn.getThLinerEl().style.width =
++        //    this._elTbody.rows[0].cells[colIdx].firstChild.style.width =
++        //    this._elTbody.rows[1].cells[colIdx].firstChild.style.width =
++        //    ... (for all row indices in this._elTbody.rows.length - 1)
++        //    this._elTbody.rows[99].cells[colIdx].firstChild.style.width =
++        //    sWidth;
++        //}
++        
++        var i,j,k;
++        var resizerDef = [
++            'var colIdx=oColumn.getKeyIndex();',
++            'oColumn.getThLinerEl().style.overflow='
++        ];
++        for (i=rowslen-1, j=2; i >= 0; --i) {
++            resizerDef[j++] = 'this._elTbody.rows[';
++            resizerDef[j++] = i;
++            resizerDef[j++] = '].cells[colIdx].firstChild.style.overflow=';
++        }
++        resizerDef[j] = 'sOverflow;';
++        resizerDef[j+1] = 'oColumn.getThLinerEl().style.width=';
++        for (i=rowslen-1, k=j+2; i >= 0; --i) {
++            resizerDef[k++] = 'this._elTbody.rows[';
++            resizerDef[k++] = i;
++            resizerDef[k++] = '].cells[colIdx].firstChild.style.width=';
++        }
++        resizerDef[k] = 'sWidth;';
++        this._aDynFunctions[rowslen] =
++            new Function('oColumn','sWidth','sOverflow',resizerDef.join(''));
++    }
++    
++    // Get the function to execute
++    var resizerFn = this._aDynFunctions[rowslen];
++
++    // TODO: Hide TBODY for performance in _setColumnWidthDynFunction?
++    if (resizerFn) {
++        resizerFn.call(this,oColumn,sWidth,sOverflow);
++    }
++},
++
++/**
++ * For one or all Columns, when Column is not hidden, width is not set, and minWidth
++ * and/or maxAutoWidth is set, validates auto-width against minWidth and maxAutoWidth.
++ *
++ * @method validateColumnWidths
++ * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
++ */
++validateColumnWidths : function(oColumn) {
++    var elColgroup = this._elColgroup;
++    var elColgroupClone = elColgroup.cloneNode(true);
++    var bNeedsValidation = false;
++    var allKeys = this._oColumnSet.keys;
++    var elThLiner;
++    // Validate just one Column's minWidth and/or maxAutoWidth
++    if(oColumn && !oColumn.hidden && !oColumn.width && (oColumn.getKeyIndex() !== null)) {
++            elThLiner = oColumn.getThLinerEl();
++            if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
++                elColgroupClone.childNodes[oColumn.getKeyIndex()].style.width = 
++                        oColumn.minWidth + 
++                        (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
++                        (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
++                bNeedsValidation = true;
++            }
++            else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
++                this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
++            }
++    }
++    // Validate all Columns
++    else {
++        for(var i=0, len=allKeys.length; i<len; i++) {
++            oColumn = allKeys[i];
++            if(!oColumn.hidden && !oColumn.width) {
++                elThLiner = oColumn.getThLinerEl();
++                if((oColumn.minWidth > 0) && (elThLiner.offsetWidth < oColumn.minWidth)) {
++                    elColgroupClone.childNodes[i].style.width = 
++                            oColumn.minWidth + 
++                            (parseInt(Dom.getStyle(elThLiner,"paddingLeft"),10)|0) +
++                            (parseInt(Dom.getStyle(elThLiner,"paddingRight"),10)|0) + "px";
++                    bNeedsValidation = true;
++                }
++                else if((oColumn.maxAutoWidth > 0) && (elThLiner.offsetWidth > oColumn.maxAutoWidth)) {
++                    this._setColumnWidth(oColumn, oColumn.maxAutoWidth+"px", "hidden");
++                }
++            }
++        }
++    }
++    if(bNeedsValidation) {
++        elColgroup.parentNode.replaceChild(elColgroupClone, elColgroup);
++        this._elColgroup = elColgroupClone;
++    }
++},
++
++/**
++ * Clears minWidth.
++ *
++ * @method _clearMinWidth
++ * @param oColumn {YAHOO.widget.Column} Which Column.
++ * @private
++ */
++_clearMinWidth : function(oColumn) {
++    if(oColumn.getKeyIndex() !== null) {
++        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = '';
++    }
++},
++
++/**
++ * Restores minWidth.
++ *
++ * @method _restoreMinWidth
++ * @param oColumn {YAHOO.widget.Column} Which Column.
++ * @private
++ */
++_restoreMinWidth : function(oColumn) {
++    if(oColumn.minWidth && (oColumn.getKeyIndex() !== null)) {
++        this._elColgroup.childNodes[oColumn.getKeyIndex()].style.width = oColumn.minWidth + 'px';
++    }
++},
++
++/**
++ * Hides given Column. NOTE: You cannot hide/show nested Columns. You can only
++ * hide/show non-nested Columns, and top-level parent Columns (which will
++ * hide/show all children Columns).
++ *
++ * @method hideColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ */
++hideColumn : function(oColumn) {
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    // Only top-level Columns can get hidden due to issues in FF2 and SF3
++    if(oColumn && !oColumn.hidden && oColumn.getTreeIndex() !== null) {
++        
++        var allrows = this.getTbodyEl().rows;
++        var l = allrows.length;
++        var allDescendants = this._oColumnSet.getDescendants(oColumn);
++        
++        // Hide each nested Column
++        for(var i=0; i<allDescendants.length; i++) {
++            var thisColumn = allDescendants[i];
++            thisColumn.hidden = true;
++
++            // Style the head cell
++            Dom.addClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
++            
++            // Does this Column have body cells?
++            var thisKeyIndex = thisColumn.getKeyIndex();
++            if(thisKeyIndex !== null) {                    
++                // Clear minWidth
++                this._clearMinWidth(oColumn);
++                
++                // Style the body cells
++                for(var j=0;j<l;j++) {
++                    Dom.addClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
++                }
++            }
++            
++            this.fireEvent("columnHideEvent",{column:thisColumn});
++        }
++      
++        this._repaintOpera();
++        this._clearTrTemplateEl();
++    }
++    else {
++    }
++},
++
++/**
++ * Shows given Column. NOTE: You cannot hide/show nested Columns. You can only
++ * hide/show non-nested Columns, and top-level parent Columns (which will
++ * hide/show all children Columns).
++ *
++ * @method showColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ */
++showColumn : function(oColumn) {
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    // Only top-level Columns can get hidden
++    if(oColumn && oColumn.hidden && (oColumn.getTreeIndex() !== null)) {
++        var allrows = this.getTbodyEl().rows;
++        var l = allrows.length;
++        var allDescendants = this._oColumnSet.getDescendants(oColumn);
++        
++        // Show each nested Column
++        for(var i=0; i<allDescendants.length; i++) {
++            var thisColumn = allDescendants[i];
++            thisColumn.hidden = false;
++            
++            // Unstyle the head cell
++            Dom.removeClass(thisColumn.getThEl(), DT.CLASS_HIDDEN);
++
++            // Does this Column have body cells?
++            var thisKeyIndex = thisColumn.getKeyIndex();
++            if(thisKeyIndex !== null) {
++                // Restore minWidth
++                this._restoreMinWidth(oColumn);
++                
++            
++                // Unstyle the body cells
++                for(var j=0;j<l;j++) {
++                    Dom.removeClass(allrows[j].cells[thisKeyIndex],DT.CLASS_HIDDEN);
++                }
++            }
++
++            this.fireEvent("columnShowEvent",{column:thisColumn});
++        }
++        this._clearTrTemplateEl();
++    }
++    else {
++    }
++},
++
++/**
++ * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
++ * non-nested Columns, and top-level parent Columns (which will remove all
++ * children Columns).
++ *
++ * @method removeColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @return oColumn {YAHOO.widget.Column} Removed Column instance.
++ */
++removeColumn : function(oColumn) {
++    // Validate Column
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    if(oColumn) {
++        var nColTreeIndex = oColumn.getTreeIndex();
++        if(nColTreeIndex !== null) {
++            // Which key index(es)
++            var i, len,
++                aKeyIndexes = oColumn.getKeyIndex();
++            // Must be a parent Column
++            if(aKeyIndexes === null) {
++                var descKeyIndexes = [];
++                var allDescendants = this._oColumnSet.getDescendants(oColumn);
++                for(i=0, len=allDescendants.length; i<len; i++) {
++                    // Is this descendant a key Column?
++                    var thisKey = allDescendants[i].getKeyIndex();
++                    if(thisKey !== null) {
++                        descKeyIndexes[descKeyIndexes.length] = thisKey;
++                    }
++                }
++                if(descKeyIndexes.length > 0) {
++                    aKeyIndexes = descKeyIndexes;
++                }
++            }
++            // Must be a key Column
++            else {
++                aKeyIndexes = [aKeyIndexes];
++            }
++            
++            if(aKeyIndexes !== null) {
++                // Sort the indexes so we can remove from the right
++                aKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
++                
++                // Destroy previous THEAD
++                this._destroyTheadEl();
++    
++                // Create new THEAD
++                var aOrigColumnDefs = this._oColumnSet.getDefinitions();
++                oColumn = aOrigColumnDefs.splice(nColTreeIndex,1)[0];
++                this._initColumnSet(aOrigColumnDefs);
++                this._initTheadEl();
++                
++                // Remove COL
++                for(i=aKeyIndexes.length-1; i>-1; i--) {
++                    this._removeColgroupColEl(aKeyIndexes[i]);
++                }
++                
++                // Remove TD
++                var allRows = this._elTbody.rows;
++                if(allRows.length > 0) {
++                    var loopN = this.get("renderLoopSize"),
++                        loopEnd = allRows.length;
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var i = oArg.nCurrentRow,
++                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
++                                    aIndexes = oArg.aIndexes,
++                                    j;
++                                for(; i < len; ++i) {
++                                    for(j = aIndexes.length-1; j>-1; j--) {
++                                        allRows[i].removeChild(allRows[i].childNodes[aIndexes[j]]);
++                                    }
++                                }
++                                oArg.nCurrentRow = i;
++                            }
++                        },
++                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                        argument: {nCurrentRow:0, aIndexes:aKeyIndexes},
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                }
++        
++                this.fireEvent("columnRemoveEvent",{column:oColumn});
++                return oColumn;
++            }
++        }
++    }
++},
++
++/**
++ * Inserts given Column at the index if given, otherwise at the end. NOTE: You
++ * can only add non-nested Columns and top-level parent Columns. You cannot add
++ * a nested Column to an existing parent.
++ *
++ * @method insertColumn
++ * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
++ * definition or a Column instance.
++ * @param index {Number} (optional) New tree index.
++ * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
++ */
++insertColumn : function(oColumn, index) {
++    // Validate Column
++    if(oColumn instanceof YAHOO.widget.Column) {
++        oColumn = oColumn.getDefinition();
++    }
++    else if(oColumn.constructor !== Object) {
++        return;
++    }
++    
++    // Validate index or append new Column to the end of the ColumnSet
++    var oColumnSet = this._oColumnSet;
++    if(!lang.isValue(index) || !lang.isNumber(index)) {
++        index = oColumnSet.tree[0].length;
++    }
++    
++    // Destroy previous THEAD
++    this._destroyTheadEl();
++    
++    // Create new THEAD
++    var aNewColumnDefs = this._oColumnSet.getDefinitions();
++    aNewColumnDefs.splice(index, 0, oColumn);
++    this._initColumnSet(aNewColumnDefs);
++    this._initTheadEl();
++    
++    // Need to refresh the reference
++    oColumnSet = this._oColumnSet;
++    var oNewColumn = oColumnSet.tree[0][index];
++    
++    // Get key index(es) for new Column
++    var i, len,
++        descKeyIndexes = [];
++    var allDescendants = oColumnSet.getDescendants(oNewColumn);
++    for(i=0, len=allDescendants.length; i<len; i++) {
++        // Is this descendant a key Column?
++        var thisKey = allDescendants[i].getKeyIndex();
++        if(thisKey !== null) {
++            descKeyIndexes[descKeyIndexes.length] = thisKey;
++        }
++    }
++    
++    if(descKeyIndexes.length > 0) {  
++        // Sort the indexes
++        var newIndex = descKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
++        
++        // Add COL
++        for(i=descKeyIndexes.length-1; i>-1; i--) {
++            this._insertColgroupColEl(descKeyIndexes[i]);
++        }
++            
++        // Add TD
++        var allRows = this._elTbody.rows;
++        if(allRows.length > 0) {
++            var loopN = this.get("renderLoopSize"),
++                loopEnd = allRows.length;
++            
++            // Get templates for each new TD
++            var aTdTemplates = [],
++                elTdTemplate;
++            for(i=0, len=descKeyIndexes.length; i<len; i++) {
++                var thisKeyIndex = descKeyIndexes[i];
++                elTdTemplate = this._getTrTemplateEl().childNodes[i].cloneNode(true);
++                elTdTemplate = this._formatTdEl(this._oColumnSet.keys[thisKeyIndex], elTdTemplate, thisKeyIndex, (thisKeyIndex===this._oColumnSet.keys.length-1));
++                aTdTemplates[thisKeyIndex] = elTdTemplate;
++            }
++            
++            this._oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId) {
++                        var i = oArg.nCurrentRow, j,
++                            descKeyIndexes = oArg.descKeyIndexes,
++                            len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
++                            nextSibling;
++                        for(; i < len; ++i) {
++                            nextSibling = allRows[i].childNodes[newIndex] || null;
++                            for(j=descKeyIndexes.length-1; j>-1; j--) {
++                                allRows[i].insertBefore(oArg.aTdTemplates[descKeyIndexes[j]].cloneNode(true), nextSibling);
++                            }
++                        }
++                        oArg.nCurrentRow = i;
++                    }
++                },
++                iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                argument: {nCurrentRow:0,aTdTemplates:aTdTemplates,descKeyIndexes:descKeyIndexes},
++                scope: this,
++                timeout: (loopN > 0) ? 0 : -1
++            });
++            this._runRenderChain(); 
++        }
++
++        this.fireEvent("columnInsertEvent",{column:oColumn,index:index});
++        return oNewColumn;
++    }
++},
++
++/**
++ * Removes given Column and inserts into given tree index. NOTE: You
++ * can only reorder non-nested Columns and top-level parent Columns. You cannot
++ * reorder a nested Column to an existing parent.
++ *
++ * @method reorderColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param index {Number} New tree index.
++ * @return oColumn {YAHOO.widget.Column} Reordered Column instance. 
++ */
++reorderColumn : function(oColumn, index) {
++    // Validate Column and new index
++    if(!(oColumn instanceof YAHOO.widget.Column)) {
++        oColumn = this.getColumn(oColumn);
++    }
++    if(oColumn && YAHOO.lang.isNumber(index)) {
++        var nOrigTreeIndex = oColumn.getTreeIndex();
++        if((nOrigTreeIndex !== null) && (nOrigTreeIndex !== index)) {
++            // Which key index(es)
++            var i, len,
++                aOrigKeyIndexes = oColumn.getKeyIndex(),
++                allDescendants,
++                descKeyIndexes = [],
++                thisKey;
++            // Must be a parent Column...
++            if(aOrigKeyIndexes === null) {
++                allDescendants = this._oColumnSet.getDescendants(oColumn);
++                for(i=0, len=allDescendants.length; i<len; i++) {
++                    // Is this descendant a key Column?
++                    thisKey = allDescendants[i].getKeyIndex();
++                    if(thisKey !== null) {
++                        descKeyIndexes[descKeyIndexes.length] = thisKey;
++                    }
++                }
++                if(descKeyIndexes.length > 0) {
++                    aOrigKeyIndexes = descKeyIndexes;
++                }
++            }
++            // ...or else must be a key Column
++            else {
++                aOrigKeyIndexes = [aOrigKeyIndexes];
++            }
++            
++            if(aOrigKeyIndexes !== null) {                   
++                // Sort the indexes
++                aOrigKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);});
++                
++                // Destroy previous THEAD
++                this._destroyTheadEl();
++    
++                // Create new THEAD
++                var aColumnDefs = this._oColumnSet.getDefinitions();
++                var oColumnDef = aColumnDefs.splice(nOrigTreeIndex,1)[0];
++                aColumnDefs.splice(index, 0, oColumnDef);
++                this._initColumnSet(aColumnDefs);
++                this._initTheadEl();
++                
++                // Need to refresh the reference
++                var oNewColumn = this._oColumnSet.tree[0][index];
++
++                // What are new key index(es)
++                var aNewKeyIndexes = oNewColumn.getKeyIndex();
++                // Must be a parent Column
++                if(aNewKeyIndexes === null) {
++                    descKeyIndexes = [];
++                    allDescendants = this._oColumnSet.getDescendants(oNewColumn);
++                    for(i=0, len=allDescendants.length; i<len; i++) {
++                        // Is this descendant a key Column?
++                        thisKey = allDescendants[i].getKeyIndex();
++                        if(thisKey !== null) {
++                            descKeyIndexes[descKeyIndexes.length] = thisKey;
++                        }
++                    }
++                    if(descKeyIndexes.length > 0) {
++                        aNewKeyIndexes = descKeyIndexes;
++                    }
++                }
++                // Must be a key Column
++                else {
++                    aNewKeyIndexes = [aNewKeyIndexes];
++                }
++                
++                // Sort the new indexes and grab the first one for the new location
++                var newIndex = aNewKeyIndexes.sort(function(a, b) {return YAHOO.util.Sort.compare(a, b);})[0];
++
++                // Reorder COL
++                this._reorderColgroupColEl(aOrigKeyIndexes, newIndex);
++                
++                // Reorder TD
++                var allRows = this._elTbody.rows;
++                if(allRows.length > 0) {
++                    var loopN = this.get("renderLoopSize"),
++                        loopEnd = allRows.length;
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var i = oArg.nCurrentRow, j, tmpTds, nextSibling,
++                                    len = loopN > 0 ? Math.min(i + loopN,allRows.length) : allRows.length,
++                                    aIndexes = oArg.aIndexes, thisTr;
++                                // For each row
++                                for(; i < len; ++i) {
++                                    tmpTds = [];
++                                    thisTr = allRows[i];
++                                    
++                                    // Remove each TD
++                                    for(j=aIndexes.length-1; j>-1; j--) {
++                                        tmpTds.push(thisTr.removeChild(thisTr.childNodes[aIndexes[j]]));
++                                    }
++                                    
++                                    // Insert each TD
++                                    nextSibling = thisTr.childNodes[newIndex] || null;
++                                    for(j=tmpTds.length-1; j>-1; j--) {
++                                        thisTr.insertBefore(tmpTds[j], nextSibling);
++                                    }                                    
++                                }
++                                oArg.nCurrentRow = i;
++                            }
++                        },
++                        iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                        argument: {nCurrentRow:0, aIndexes:aOrigKeyIndexes},
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                }
++        
++                this.fireEvent("columnReorderEvent",{column:oNewColumn});
++                return oNewColumn;
++            }
++        }
++    }
++},
++
++/**
++ * Selects given Column. NOTE: You cannot select/unselect nested Columns. You can only
++ * select/unselect non-nested Columns, and bottom-level key Columns.
++ *
++ * @method selectColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++selectColumn : function(oColumn) {
++    oColumn = this.getColumn(oColumn);
++    if(oColumn && !oColumn.selected) {
++        // Only bottom-level Columns can get hidden
++        if(oColumn.getKeyIndex() !== null) {
++            oColumn.selected = true;
++            
++            // Update head cell
++            var elTh = oColumn.getThEl();
++            Dom.addClass(elTh,DT.CLASS_SELECTED);
++
++            // Update body cells
++            var allRows = this.getTbodyEl().rows;
++            var oChainRender = this._oChainRender;
++            oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                        Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED);                    
++                    }
++                    oArg.rowIndex++;
++                },
++                scope: this,
++                iterations: allRows.length,
++                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
++            });
++
++            this._clearTrTemplateEl();
++            
++            this._elTbody.style.display = "none";
++            this._runRenderChain();
++            this._elTbody.style.display = "";      
++            
++            this.fireEvent("columnSelectEvent",{column:oColumn});
++        }
++        else {
++        }
++    }
++},
++
++/**
++ * Unselects given Column. NOTE: You cannot select/unselect nested Columns. You can only
++ * select/unselect non-nested Columns, and bottom-level key Columns.
++ *
++ * @method unselectColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++unselectColumn : function(oColumn) {
++    oColumn = this.getColumn(oColumn);
++    if(oColumn && oColumn.selected) {
++        // Only bottom-level Columns can get hidden
++        if(oColumn.getKeyIndex() !== null) {
++            oColumn.selected = false;
++            
++            // Update head cell
++            var elTh = oColumn.getThEl();
++            Dom.removeClass(elTh,DT.CLASS_SELECTED);
++
++            // Update body cells
++            var allRows = this.getTbodyEl().rows;
++            var oChainRender = this._oChainRender;
++            oChainRender.add({
++                method: function(oArg) {
++                    if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                        Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_SELECTED); 
++                    }                   
++                    oArg.rowIndex++;
++                },
++                scope: this,
++                iterations:allRows.length,
++                argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()}
++            });
++            
++            this._clearTrTemplateEl();
++
++            this._elTbody.style.display = "none";
++            this._runRenderChain();
++            this._elTbody.style.display = "";      
++            
++            this.fireEvent("columnUnselectEvent",{column:oColumn});
++        }
++        else {
++        }
++    }
++},
++
++/**
++ * Returns an array selected Column instances.
++ *
++ * @method getSelectedColumns
++ * @return {YAHOO.widget.Column[]} Array of Column instances.
++ */
++getSelectedColumns : function(oColumn) {
++    var selectedColumns = [];
++    var aKeys = this._oColumnSet.keys;
++    for(var i=0,len=aKeys.length; i<len; i++) {
++        if(aKeys[i].selected) {
++            selectedColumns[selectedColumns.length] = aKeys[i];
++        }
++    }
++    return selectedColumns;
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
++ * NOTE: You cannot highlight/unhighlight nested Columns. You can only
++ * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
++ *
++ * @method highlightColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++highlightColumn : function(column) {
++    var oColumn = this.getColumn(column);
++    // Only bottom-level Columns can get highlighted
++    if(oColumn && (oColumn.getKeyIndex() !== null)) {            
++        // Update head cell
++        var elTh = oColumn.getThEl();
++        Dom.addClass(elTh,DT.CLASS_HIGHLIGHTED);
++
++        // Update body cells
++        var allRows = this.getTbodyEl().rows;
++        var oChainRender = this._oChainRender;
++        oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                    Dom.addClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);   
++                }                 
++                oArg.rowIndex++;
++            },
++            scope: this,
++            iterations:allRows.length,
++            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
++            timeout: -1
++        });
++        this._elTbody.style.display = "none";
++        this._runRenderChain();
++        this._elTbody.style.display = "";      
++            
++        this.fireEvent("columnHighlightEvent",{column:oColumn});
++    }
++    else {
++    }
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to cells of the given Column.
++ * NOTE: You cannot highlight/unhighlight nested Columns. You can only
++ * highlight/unhighlight non-nested Columns, and bottom-level key Columns.
++ *
++ * @method unhighlightColumn
++ * @param column {HTMLElement | String | Number} DOM reference or ID string to a
++ * TH/TD element (or child of a TH/TD element), a Column key, or a ColumnSet key index.
++ */
++unhighlightColumn : function(column) {
++    var oColumn = this.getColumn(column);
++    // Only bottom-level Columns can get highlighted
++    if(oColumn && (oColumn.getKeyIndex() !== null)) {
++        // Update head cell
++        var elTh = oColumn.getThEl();
++        Dom.removeClass(elTh,DT.CLASS_HIGHLIGHTED);
++
++        // Update body cells
++        var allRows = this.getTbodyEl().rows;
++        var oChainRender = this._oChainRender;
++        oChainRender.add({
++            method: function(oArg) {
++                if((this instanceof DT) && this._sId && allRows[oArg.rowIndex] && allRows[oArg.rowIndex].cells[oArg.cellIndex]) {
++                    Dom.removeClass(allRows[oArg.rowIndex].cells[oArg.cellIndex],DT.CLASS_HIGHLIGHTED);
++                }                 
++                oArg.rowIndex++;
++            },
++            scope: this,
++            iterations:allRows.length,
++            argument: {rowIndex:0,cellIndex:oColumn.getKeyIndex()},
++            timeout: -1
++        });
++        this._elTbody.style.display = "none";
++        this._runRenderChain();
++        this._elTbody.style.display = "";     
++            
++        this.fireEvent("columnUnhighlightEvent",{column:oColumn});
++    }
++    else {
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// ROW FUNCTIONS
++
++/**
++ * Adds one new Record of data into the RecordSet at the index if given,
++ * otherwise at the end. If the new Record is in page view, the
++ * corresponding DOM elements are also updated.
++ *
++ * @method addRow
++ * @param oData {Object} Object literal of data for the row.
++ * @param index {Number} (optional) RecordSet position index at which to add data.
++ */
++addRow : function(oData, index) {
++    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
++        return;
++    }
++
++    if(oData && lang.isObject(oData)) {
++        var oRecord = this._oRecordSet.addRecord(oData, index);
++        if(oRecord) {
++            var recIndex;
++            var oPaginator = this.get('paginator');
++
++            // Paginated
++            if (oPaginator) {     
++                // Update the paginator's totalRecords
++                var totalRecords = oPaginator.get('totalRecords');
++                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                    oPaginator.set('totalRecords',totalRecords + 1);
++                }
++
++                recIndex = this.getRecordIndex(oRecord);
++                var endRecIndex = (oPaginator.getPageRecords())[1];
++
++                // New record affects the view
++                if (recIndex <= endRecIndex) {
++                    // Defer UI updates to the render method
++                    this.render();
++                }
++                
++                this.fireEvent("rowAddEvent", {record:oRecord});
++                return;
++            }
++            // Not paginated
++            else {
++                recIndex = this.getTrIndex(oRecord);
++                if(lang.isNumber(recIndex)) {
++                    // Add the TR element
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var oRecord = oArg.record;
++                                var recIndex = oArg.recIndex;
++                                var elNewTr = this._addTrEl(oRecord);
++                                if(elNewTr) {
++                                    var elNext = (this._elTbody.rows[recIndex]) ? this._elTbody.rows[recIndex] : null;
++                                    this._elTbody.insertBefore(elNewTr, elNext);
++
++                                    // Set FIRST/LAST
++                                    if(recIndex === 0) {
++                                        this._setFirstRow();
++                                    }
++                                    if(elNext === null) {
++                                        this._setLastRow();
++                                    }
++                                    // Set EVEN/ODD
++                                    this._setRowStripes();                           
++                                    
++                                    this.hideTableMessage();
++            
++                                    this.fireEvent("rowAddEvent", {record:oRecord});
++                                }
++                            }
++                        },
++                        argument: {record: oRecord, recIndex: recIndex},
++                        scope: this,
++                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                    return;
++                }
++            }            
++        }
++    }
++},
++
++/**
++ * Convenience method to add multiple rows.
++ *
++ * @method addRows
++ * @param aData {Object[]} Array of object literal data for the rows.
++ * @param index {Number} (optional) RecordSet position index at which to add data.
++ */
++addRows : function(aData, index) {
++    if(lang.isNumber(index) && (index < 0 || index > this._oRecordSet.getLength())) {
++        return;
++    }
++
++    if(lang.isArray(aData)) {
++        var aRecords = this._oRecordSet.addRecords(aData, index);
++        if(aRecords) {
++            var recIndex = this.getRecordIndex(aRecords[0]);
++            
++            // Paginated
++            var oPaginator = this.get('paginator');
++            if (oPaginator) {
++                // Update the paginator's totalRecords
++                var totalRecords = oPaginator.get('totalRecords');
++                if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                    oPaginator.set('totalRecords',totalRecords + aRecords.length);
++                }
++    
++                var endRecIndex = (oPaginator.getPageRecords())[1];
++
++                // At least one of the new records affects the view
++                if (recIndex <= endRecIndex) {
++                    this.render();
++                }
++                
++                this.fireEvent("rowsAddEvent", {records:aRecords});
++                return;
++            }
++            // Not paginated
++            else {
++                // Add the TR elements
++                var loopN = this.get("renderLoopSize");
++                var loopEnd = recIndex + aData.length;
++                var nRowsNeeded = (loopEnd - recIndex); // how many needed
++                var isLast = (recIndex >= this._elTbody.rows.length);
++                this._oChainRender.add({
++                    method: function(oArg) {
++                        if((this instanceof DT) && this._sId) {
++                            var aRecords = oArg.aRecords,
++                                i = oArg.nCurrentRow,
++                                j = oArg.nCurrentRecord,
++                                len = loopN > 0 ? Math.min(i + loopN,loopEnd) : loopEnd,
++                                df = document.createDocumentFragment(),
++                                elNext = (this._elTbody.rows[i]) ? this._elTbody.rows[i] : null;
++                            for(; i < len; i++, j++) {
++                                df.appendChild(this._addTrEl(aRecords[j]));
++                            }
++                            this._elTbody.insertBefore(df, elNext);
++                            oArg.nCurrentRow = i;
++                            oArg.nCurrentRecord = j;
++                        }
++                    },
++                    iterations: (loopN > 0) ? Math.ceil(loopEnd/loopN) : 1,
++                    argument: {nCurrentRow:recIndex,nCurrentRecord:0,aRecords:aRecords},
++                    scope: this,
++                    timeout: (loopN > 0) ? 0 : -1
++                });
++                this._oChainRender.add({
++                    method: function(oArg) {
++                        var recIndex = oArg.recIndex;
++                        // Set FIRST/LAST
++                        if(recIndex === 0) {
++                            this._setFirstRow();
++                        }
++                        if(oArg.isLast) {
++                            this._setLastRow();
++                        }
++                        // Set EVEN/ODD
++                        this._setRowStripes();                           
++
++                        this.fireEvent("rowsAddEvent", {records:aRecords});
++                    },
++                    argument: {recIndex: recIndex, isLast: isLast},
++                    scope: this,
++                    timeout: -1 // Needs to run immediately after the DOM insertions above
++                });
++                this._runRenderChain();
++                this.hideTableMessage();                
++                return;
++            }            
++        }
++    }
++},
++
++/**
++ * For the given row, updates the associated Record with the given data. If the
++ * row is on current page, the corresponding DOM elements are also updated.
++ *
++ * @method updateRow
++ * @param row {YAHOO.widget.Record | Number | HTMLElement | String}
++ * Which row to update: By Record instance, by Record's RecordSet
++ * position index, by HTMLElement reference to the TR element, or by ID string
++ * of the TR element.
++ * @param oData {Object} Object literal of data for the row.
++ */
++updateRow : function(row, oData) {
++    var index = row;
++    if (!lang.isNumber(index)) {
++        index = this.getRecordIndex(row);
++    }
++
++    // Update the Record
++    if(lang.isNumber(index) && (index >= 0)) {
++        var oRecordSet = this._oRecordSet,
++            oldRecord = oRecordSet.getRecord(index);
++            
++        
++        if(oldRecord) {
++            var updatedRecord = this._oRecordSet.setRecord(oData, index),
++                elRow = this.getTrEl(oldRecord),
++                // Copy data from the Record for the event that gets fired later
++                oldData = oldRecord ? oldRecord.getData() : null;
++               
++            if(updatedRecord) {
++                // Update selected rows as necessary
++                var tracker = this._aSelections || [],
++                i=0,
++                oldId = oldRecord.getId(),
++                newId = updatedRecord.getId();
++                for(; i<tracker.length; i++) {
++                    if((tracker[i] === oldId)) {
++                        tracker[i] = newId;
++                    }
++                    else if(tracker[i].recordId === oldId) {
++                        tracker[i].recordId = newId;
++                    }
++                }
++
++                // Update the TR only if row is on current page
++                this._oChainRender.add({
++                    method: function() {
++                        if((this instanceof DT) && this._sId) {
++                            // Paginated
++                            var oPaginator = this.get('paginator');
++                            if (oPaginator) {
++                                var pageStartIndex = (oPaginator.getPageRecords())[0],
++                                    pageLastIndex = (oPaginator.getPageRecords())[1];
++        
++                                // At least one of the new records affects the view
++                                if ((index >= pageStartIndex) || (index <= pageLastIndex)) {
++                                    this.render();
++                                }
++                            }
++                            else {
++                                if(elRow) {
++                                    this._updateTrEl(elRow, updatedRecord);
++                                }
++                                else {
++                                    this.getTbodyEl().appendChild(this._addTrEl(updatedRecord));
++                                }
++                            }
++                            this.fireEvent("rowUpdateEvent", {record:updatedRecord, oldData:oldData});
++                        }
++                    },
++                    scope: this,
++                    timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                });
++                this._runRenderChain();
++                return;
++            }
++        }
++    }
++    return;
++},
++
++/**
++ * Starting with the given row, updates associated Records with the given data.
++ * The number of rows to update are determined by the array of data provided.
++ * Undefined data (i.e., not an object literal) causes a row to be skipped. If
++ * any of the rows are on current page, the corresponding DOM elements are also
++ * updated.
++ *
++ * @method updateRows
++ * @param startrow {YAHOO.widget.Record | Number | HTMLElement | String}
++ * Starting row to update: By Record instance, by Record's RecordSet
++ * position index, by HTMLElement reference to the TR element, or by ID string
++ * of the TR element.
++ * @param aData {Object[]} Array of object literal of data for the rows.
++ */
++updateRows : function(startrow, aData) {
++    if(lang.isArray(aData)) {
++        var startIndex = startrow,
++            oRecordSet = this._oRecordSet;
++            
++        if (!lang.isNumber(startrow)) {
++            startIndex = this.getRecordIndex(startrow);
++        }
++            
++        if(lang.isNumber(startIndex) && (startIndex >= 0) && (startIndex < oRecordSet.getLength())) {
++            var lastIndex = startIndex + aData.length,
++                aOldRecords = oRecordSet.getRecords(startIndex, aData.length),
++                aNewRecords = oRecordSet.setRecords(aData, startIndex);
++            if(aNewRecords) {
++                // Update selected rows as necessary
++                var tracker = this._aSelections || [],
++                    i=0, j, newId, oldId;
++                for(; i<tracker.length; i++) {
++                    for(j=0; j<aOldRecords.length; j++) {
++                        oldId = aOldRecords[j].getId();
++                        if((tracker[i] === oldId)) {
++                            tracker[i] = aNewRecords[j].getId();
++                        }
++                        else if(tracker[i].recordId === oldId) {
++                            tracker[i].recordId = aNewRecords[j].getId();
++                        }
++                    }
++                }
++            
++                // Paginated
++                var oPaginator = this.get('paginator');
++                if (oPaginator) {
++                    var pageStartIndex = (oPaginator.getPageRecords())[0],
++                        pageLastIndex = (oPaginator.getPageRecords())[1];
++    
++                    // At least one of the new records affects the view
++                    if ((startIndex >= pageStartIndex) || (lastIndex <= pageLastIndex)) {
++                        this.render();
++                    }
++                    
++                    this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
++                    return;
++                }
++                // Not paginated
++                else {
++                    // Update the TR elements
++                    var loopN = this.get("renderLoopSize"),
++                        rowCount = aData.length, // how many needed
++                        lastRowIndex = this._elTbody.rows.length,
++                        isLast = (lastIndex >= lastRowIndex),
++                        isAdding = (lastIndex > lastRowIndex);
++                                           
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                var aRecords = oArg.aRecords,
++                                    i = oArg.nCurrentRow,
++                                    j = oArg.nDataPointer,
++                                    len = loopN > 0 ? Math.min(i+loopN, startIndex+aRecords.length) : startIndex+aRecords.length;
++                                    
++                                for(; i < len; i++,j++) {
++                                    if(isAdding && (i>=lastRowIndex)) {
++                                        this._elTbody.appendChild(this._addTrEl(aRecords[j]));
++                                    }
++                                    else {
++                                        this._updateTrEl(this._elTbody.rows[i], aRecords[j]);
++                                    }
++                                }
++                                oArg.nCurrentRow = i;
++                                oArg.nDataPointer = j;
++                            }
++                        },
++                        iterations: (loopN > 0) ? Math.ceil(rowCount/loopN) : 1,
++                        argument: {nCurrentRow:startIndex,aRecords:aNewRecords,nDataPointer:0,isAdding:isAdding},
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            var recIndex = oArg.recIndex;
++                            // Set FIRST/LAST
++                            if(recIndex === 0) {
++                                this._setFirstRow();
++                            }
++                            if(oArg.isLast) {
++                                this._setLastRow();
++                            }
++                            // Set EVEN/ODD
++                            this._setRowStripes();                           
++    
++                            this.fireEvent("rowsAddEvent", {newRecords:aNewRecords, oldRecords:aOldRecords});
++                        },
++                        argument: {recIndex: startIndex, isLast: isLast},
++                        scope: this,
++                        timeout: -1 // Needs to run immediately after the DOM insertions above
++                    });
++                    this._runRenderChain();
++                    this.hideTableMessage();                
++                    return;
++                }            
++            }
++        }
++    }
++},
++
++/**
++ * Deletes the given row's Record from the RecordSet. If the row is on current page,
++ * the corresponding DOM elements are also deleted.
++ *
++ * @method deleteRow
++ * @param row {HTMLElement | String | Number} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ */
++deleteRow : function(row) {
++    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
++    if(lang.isNumber(nRecordIndex)) {
++        var oRecord = this.getRecord(nRecordIndex);
++        if(oRecord) {
++            var nTrIndex = this.getTrIndex(nRecordIndex);
++            
++            // Remove from selection tracker if there
++            var sRecordId = oRecord.getId();
++            var tracker = this._aSelections || [];
++            for(var j=tracker.length-1; j>-1; j--) {
++                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
++                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
++                    tracker.splice(j,1);
++                }
++            }
++    
++            // Delete Record from RecordSet
++            var oData = this._oRecordSet.deleteRecord(nRecordIndex);
++    
++            // Update the UI
++            if(oData) {
++                // If paginated and the deleted row was on this or a prior page, just
++                // re-render
++                var oPaginator = this.get('paginator');
++                if (oPaginator) {
++                    // Update the paginator's totalRecords
++                    var totalRecords = oPaginator.get('totalRecords'),
++                        // must capture before the totalRecords change because
++                        // Paginator shifts to previous page automatically
++                        rng = oPaginator.getPageRecords();
++
++                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                        oPaginator.set('totalRecords',totalRecords - 1);
++                    }
++    
++                    // The deleted record was on this or a prior page, re-render
++                    if (!rng || nRecordIndex <= rng[1]) {
++                        this.render();
++                    }
++
++                    this._oChainRender.add({
++                        method: function() {
++                            if((this instanceof DT) && this._sId) {
++                                this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex, oldData:oData, trElIndex:nTrIndex});
++                            }
++                        },
++                        scope: this,
++                        timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                }
++                // Not paginated
++                else {
++                    if(lang.isNumber(nTrIndex)) {
++                        this._oChainRender.add({
++                            method: function() {
++                                if((this instanceof DT) && this._sId) {
++                                    var isLast = (nRecordIndex === this._oRecordSet.getLength());//(nTrIndex == this.getLastTrEl().sectionRowIndex);
++                                    this._deleteTrEl(nTrIndex);
++                    
++                                    // Post-delete tasks
++                                    if(this._elTbody.rows.length > 0) {
++                                        // Set FIRST/LAST
++                                        if(nTrIndex === 0) {
++                                            this._setFirstRow();
++                                        }
++                                        if(isLast) {
++                                            this._setLastRow();
++                                        }
++                                        // Set EVEN/ODD
++                                        if(nTrIndex != this._elTbody.rows.length) {
++                                            this._setRowStripes(nTrIndex);
++                                        }                                
++                                    }
++                    
++                                    this.fireEvent("rowDeleteEvent", {recordIndex:nRecordIndex,oldData:oData, trElIndex:nTrIndex});
++                                }
++                            },
++                            scope: this,
++                            timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++                        });
++                        this._runRenderChain();
++                        return;
++                    }
++                }
++            }
++        }
++    }
++    return null;
++},
++
++/**
++ * Convenience method to delete multiple rows.
++ *
++ * @method deleteRows
++ * @param row {HTMLElement | String | Number} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ * @param count {Number} (optional) How many rows to delete. A negative value
++ * will delete towards the beginning.
++ */
++deleteRows : function(row, count) {
++    var nRecordIndex = (lang.isNumber(row)) ? row : this.getRecordIndex(row);
++    if(lang.isNumber(nRecordIndex)) {
++        var oRecord = this.getRecord(nRecordIndex);
++        if(oRecord) {
++            var nTrIndex = this.getTrIndex(nRecordIndex);
++            
++            // Remove from selection tracker if there
++            var sRecordId = oRecord.getId();
++            var tracker = this._aSelections || [];
++            for(var j=tracker.length-1; j>-1; j--) {
++                if((lang.isString(tracker[j]) && (tracker[j] === sRecordId)) ||
++                        (lang.isObject(tracker[j]) && (tracker[j].recordId === sRecordId))) {
++                    tracker.splice(j,1);
++                }
++            }
++    
++            // Delete Record from RecordSet
++            var highIndex = nRecordIndex;
++            var lowIndex = nRecordIndex;
++        
++            // Validate count and account for negative value
++            if(count && lang.isNumber(count)) {
++                highIndex = (count > 0) ? nRecordIndex + count -1 : nRecordIndex;
++                lowIndex = (count > 0) ? nRecordIndex : nRecordIndex + count + 1;
++                count = (count > 0) ? count : count*-1;
++                if(lowIndex < 0) {
++                    lowIndex = 0;
++                    count = highIndex - lowIndex + 1;
++                }
++            }
++            else {
++                count = 1;
++            }
++            
++            var aData = this._oRecordSet.deleteRecords(lowIndex, count);
++    
++            // Update the UI
++            if(aData) {
++                var oPaginator = this.get('paginator'),
++                    loopN = this.get("renderLoopSize");
++                // If paginated and the deleted row was on this or a prior page, just
++                // re-render
++                if (oPaginator) {
++                    // Update the paginator's totalRecords
++                    var totalRecords = oPaginator.get('totalRecords'),
++                        // must capture before the totalRecords change because
++                        // Paginator shifts to previous page automatically
++                        rng = oPaginator.getPageRecords();
++
++                    if (totalRecords !== widget.Paginator.VALUE_UNLIMITED) {
++                        oPaginator.set('totalRecords',totalRecords - aData.length);
++                    }
++    
++                    // The records were on this or a prior page, re-render
++                    if (!rng || lowIndex <= rng[1]) {
++                        this.render();
++                    }
++
++                    this._oChainRender.add({
++                        method: function(oArg) {
++                            if((this instanceof DT) && this._sId) {
++                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
++                            }
++                        },
++                        scope: this,
++                        timeout: (loopN > 0) ? 0 : -1
++                    });
++                    this._runRenderChain();
++                    return;
++                }
++                // Not paginated
++                else {
++                    if(lang.isNumber(nTrIndex)) {
++                        // Delete the TR elements starting with highest index
++                        var loopEnd = lowIndex;
++                        var nRowsNeeded = count; // how many needed
++                        this._oChainRender.add({
++                            method: function(oArg) {
++                                if((this instanceof DT) && this._sId) {
++                                    var i = oArg.nCurrentRow,
++                                        len = (loopN > 0) ? (Math.max(i - loopN,loopEnd)-1) : loopEnd-1;
++                                    for(; i>len; --i) {
++                                        this._deleteTrEl(i);
++                                    }
++                                    oArg.nCurrentRow = i;
++                                }
++                            },
++                            iterations: (loopN > 0) ? Math.ceil(count/loopN) : 1,
++                            argument: {nCurrentRow:highIndex},
++                            scope: this,
++                            timeout: (loopN > 0) ? 0 : -1
++                        });
++                        this._oChainRender.add({
++                            method: function() {    
++                                // Post-delete tasks
++                                if(this._elTbody.rows.length > 0) {
++                                    this._setFirstRow();
++                                    this._setLastRow();
++                                    this._setRowStripes();
++                                }
++                                
++                                this.fireEvent("rowsDeleteEvent", {recordIndex:lowIndex, oldData:aData, count:count});
++                            },
++                            scope: this,
++                            timeout: -1 // Needs to run immediately after the DOM deletions above
++                        });
++                        this._runRenderChain();
++                        return;
++                    }
++                }
++            }
++        }
++    }
++    return null;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// CELL FUNCTIONS
++
++/**
++ * Outputs markup into the given TD based on given Record.
++ *
++ * @method formatCell
++ * @param elLiner {HTMLElement} The liner DIV element within the TD.
++ * @param oRecord {YAHOO.widget.Record} (Optional) Record instance.
++ * @param oColumn {YAHOO.widget.Column} (Optional) Column instance.
++ */
++formatCell : function(elLiner, oRecord, oColumn) {
++    if(!oRecord) {
++        oRecord = this.getRecord(elLiner);
++    }
++    if(!oColumn) {
++        oColumn = this.getColumn(elLiner.parentNode.cellIndex);
++    }
++
++    if(oRecord && oColumn) {
++        var sField = oColumn.field;
++        var oData = oRecord.getData(sField);
++
++        var fnFormatter = typeof oColumn.formatter === 'function' ?
++                          oColumn.formatter :
++                          DT.Formatter[oColumn.formatter+''] ||
++                          DT.Formatter.defaultFormatter;
++
++        // Apply special formatter
++        if(fnFormatter) {
++            fnFormatter.call(this, elLiner, oRecord, oColumn, oData);
++        }
++        else {
++            elLiner.innerHTML = oData;
++        }
++
++        this.fireEvent("cellFormatEvent", {record:oRecord, column:oColumn, key:oColumn.key, el:elLiner});
++    }
++    else {
++    }
++},
++
++/**
++ * For the given row and column, updates the Record with the given data. If the
++ * cell is on current page, the corresponding DOM elements are also updated.
++ *
++ * @method updateCell
++ * @param oRecord {YAHOO.widget.Record} Record instance.
++ * @param oColumn {YAHOO.widget.Column | String | Number} A Column key, or a ColumnSet key index.
++ * @param oData {Object} New data value for the cell.
++ */
++updateCell : function(oRecord, oColumn, oData) {    
++    // Validate Column and Record
++    oColumn = (oColumn instanceof YAHOO.widget.Column) ? oColumn : this.getColumn(oColumn);
++    if(oColumn && oColumn.getField() && (oRecord instanceof YAHOO.widget.Record)) {
++        var sKey = oColumn.getField(),
++        
++        // Copy data from the Record for the event that gets fired later
++        //var oldData = YAHOO.widget.DataTable._cloneObject(oRecord.getData());
++            oldData = oRecord.getData(sKey);
++
++        // Update Record with new data
++        this._oRecordSet.updateRecordValue(oRecord, sKey, oData);
++    
++        // Update the TD only if row is on current page
++        var elTd = this.getTdEl({record: oRecord, column: oColumn});
++        if(elTd) {
++            this._oChainRender.add({
++                method: function() {
++                    if((this instanceof DT) && this._sId) {
++                        this.formatCell(elTd.firstChild);
++                        this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
++                    }
++                },
++                scope: this,
++                timeout: (this.get("renderLoopSize") > 0) ? 0 : -1
++            });
++            this._runRenderChain();
++        }
++        else {
++            this.fireEvent("cellUpdateEvent", {record:oRecord, column: oColumn, oldData:oldData});
++        }
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// PAGINATION
++/**
++ * Method executed during set() operation for the "paginator" attribute.
++ * Adds and/or severs event listeners between DataTable and Paginator
++ *
++ * @method _updatePaginator
++ * @param newPag {Paginator} Paginator instance (or null) for DataTable to use
++ * @private
++ */
++_updatePaginator : function (newPag) {
++    var oldPag = this.get('paginator');
++    if (oldPag && newPag !== oldPag) {
++        oldPag.unsubscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
++    }
++    if (newPag) {
++        newPag.subscribe('changeRequest', this.onPaginatorChangeRequest, this, true);
++    }
++},
++
++/**
++ * Update the UI infrastructure in response to a "paginator" attribute change.
++ *
++ * @method _handlePaginatorChange
++ * @param e {Object} Change event object containing keys 'type','newValue',
++ *                   and 'prevValue'
++ * @private
++ */
++_handlePaginatorChange : function (e) {
++    if (e.prevValue === e.newValue) { return; }
++
++    var newPag     = e.newValue,
++        oldPag     = e.prevValue,
++        containers = this._defaultPaginatorContainers();
++
++    if (oldPag) {
++        if (oldPag.getContainerNodes()[0] == containers[0]) {
++            oldPag.set('containers',[]);
++        }
++        oldPag.destroy();
++
++        // Convenience: share the default containers if possible.
++        // Otherwise, remove the default containers from the DOM.
++        if (containers[0]) {
++            if (newPag && !newPag.getContainerNodes().length) {
++                newPag.set('containers',containers);
++            } else {
++                // No new Paginator to use existing containers, OR new
++                // Paginator has configured containers.
++                for (var i = containers.length - 1; i >= 0; --i) {
++                    if (containers[i]) {
++                        containers[i].parentNode.removeChild(containers[i]);
++                    }
++                }
++            }
++        }
++    }
++
++    if (!this._bInit) {
++        this.render();
++
++    }
++
++    if (newPag) {
++        this.renderPaginator();
++    }
++
++},
++
++/**
++ * Returns the default containers used for Paginators.  If create param is
++ * passed, the containers will be created and added to the DataTable container.
++ *
++ * @method _defaultPaginatorContainers
++ * @param create {boolean} Create the default containers if not found
++ * @private
++ */
++_defaultPaginatorContainers : function (create) {
++    var above_id = this._sId + '-paginator0',
++        below_id = this._sId + '-paginator1',
++        above    = Dom.get(above_id),
++        below    = Dom.get(below_id);
++
++    if (create && (!above || !below)) {
++        // One above and one below the table
++        if (!above) {
++            above    = document.createElement('div');
++            above.id = above_id;
++            Dom.addClass(above, DT.CLASS_PAGINATOR);
++
++            this._elContainer.insertBefore(above,this._elContainer.firstChild);
++        }
++
++        if (!below) {
++            below    = document.createElement('div');
++            below.id = below_id;
++            Dom.addClass(below, DT.CLASS_PAGINATOR);
++
++            this._elContainer.appendChild(below);
++        }
++    }
++
++    return [above,below];
++},
++
++/**
++ * Calls Paginator's destroy() method
++ *
++ * @method _destroyPaginator
++ * @private
++ */
++_destroyPaginator : function () {
++    var oldPag = this.get('paginator');
++    if (oldPag) {
++        oldPag.destroy();
++    }
++},
++
++/**
++ * Renders the Paginator to the DataTable UI
++ *
++ * @method renderPaginator
++ */
++renderPaginator : function () {
++    var pag = this.get("paginator");
++    if (!pag) { return; }
++
++    // Add the containers if the Paginator is not configured with containers
++    if (!pag.getContainerNodes().length) {
++        pag.set('containers',this._defaultPaginatorContainers(true));
++    }
++
++    pag.render();
++},
++
++/**
++ * Overridable method gives implementers a hook to show loading message before
++ * changing Paginator value.
++ *
++ * @method doBeforePaginatorChange
++ * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
++ * @return {Boolean} Return true to continue changing Paginator value.
++ */
++doBeforePaginatorChange : function(oPaginatorState) {
++    this.showTableMessage(this.get("MSG_LOADING"), DT.CLASS_LOADING);
++    return true;
++},
++
++/**
++ * Responds to new Pagination states. By default, updates the UI to reflect the
++ * new state. If "dynamicData" is true, current selections are purged before
++ * a request is sent to the DataSource for data for the new state (using the
++ * request returned by "generateRequest()").
++ *  
++ * @method onPaginatorChangeRequest
++ * @param oPaginatorState {Object} An object literal describing the proposed pagination state.
++ */
++onPaginatorChangeRequest : function (oPaginatorState) {
++    var ok = this.doBeforePaginatorChange(oPaginatorState);
++    if(ok) {
++        // Server-side pagination
++        if(this.get("dynamicData")) {
++            // Get the current state
++            var oState = this.getState();
++            
++            // Update pagination values
++            oState.pagination = oPaginatorState;
++    
++            // Get the request for the new state
++            var request = this.get("generateRequest")(oState, this);
++            
++            // Purge selections
++            this.unselectAllRows();
++            this.unselectAllCells();
++            
++            // Get the new data from the server
++            var callback = {
++                success : this.onDataReturnSetRows,
++                failure : this.onDataReturnSetRows,
++                argument : oState, // Pass along the new state to the callback
++                scope : this
++            };
++            this._oDataSource.sendRequest(request, callback);
++        }
++        // Client-side pagination
++        else {
++            // Set the core pagination values silently (the second param)
++            // to avoid looping back through the changeRequest mechanism
++            oPaginatorState.paginator.setStartIndex(oPaginatorState.recordOffset,true);
++            oPaginatorState.paginator.setRowsPerPage(oPaginatorState.rowsPerPage,true);
++    
++            // Update the UI
++            this.render();
++        }
++    }
++    else {
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// SELECTION/HIGHLIGHTING
++
++/*
++ * Reference to last highlighted cell element
++ *
++ * @property _elLastHighlightedTd
++ * @type HTMLElement
++ * @private
++ */
++_elLastHighlightedTd : null,
++
++/*
++ * ID string of last highlighted row element
++ *
++ * @property _sLastHighlightedTrElId
++ * @type String
++ * @private
++ */
++//_sLastHighlightedTrElId : null,
++
++/**
++ * Array to track row selections (by sRecordId) and/or cell selections
++ * (by {recordId:sRecordId, columnKey:sColumnKey})
++ *
++ * @property _aSelections
++ * @type Object[]
++ * @private
++ */
++_aSelections : null,
++
++/**
++ * Record instance of the row selection anchor.
++ *
++ * @property _oAnchorRecord
++ * @type YAHOO.widget.Record
++ * @private
++ */
++_oAnchorRecord : null,
++
++/**
++ * Object literal representing cell selection anchor:
++ * {recordId:sRecordId, columnKey:sColumnKey}.
++ *
++ * @property _oAnchorCell
++ * @type Object
++ * @private
++ */
++_oAnchorCell : null,
++
++/**
++ * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
++ * from all TR elements on the page.
++ *
++ * @method _unselectAllTrEls
++ * @private
++ */
++_unselectAllTrEls : function() {
++    var selectedRows = Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
++    Dom.removeClass(selectedRows, DT.CLASS_SELECTED);
++},
++
++/**
++ * Returns object literal of values that represent the selection trigger. Used
++ * to determine selection behavior resulting from a key event.
++ *
++ * @method _getSelectionTrigger
++ * @private
++ */
++_getSelectionTrigger : function() {
++    var sMode = this.get("selectionMode");
++    var oTrigger = {};
++    var oTriggerCell, oTriggerRecord, nTriggerRecordIndex, elTriggerRow, nTriggerTrIndex;
++
++    // Cell mode
++    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
++        oTriggerCell = this.getLastSelectedCell();
++        // No selected cells found
++        if(!oTriggerCell) {
++            return null;
++        }
++        else {
++            oTriggerRecord = this.getRecord(oTriggerCell.recordId);
++            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
++            elTriggerRow = this.getTrEl(oTriggerRecord);
++            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
++
++            // Selected cell not found on this page
++            if(nTriggerTrIndex === null) {
++                return null;
++            }
++            else {
++                oTrigger.record = oTriggerRecord;
++                oTrigger.recordIndex = nTriggerRecordIndex;
++                oTrigger.el = this.getTdEl(oTriggerCell);
++                oTrigger.trIndex = nTriggerTrIndex;
++                oTrigger.column = this.getColumn(oTriggerCell.columnKey);
++                oTrigger.colKeyIndex = oTrigger.column.getKeyIndex();
++                oTrigger.cell = oTriggerCell;
++                return oTrigger;
++            }
++        }
++    }
++    // Row mode
++    else {
++        oTriggerRecord = this.getLastSelectedRecord();
++        // No selected rows found
++        if(!oTriggerRecord) {
++                return null;
++        }
++        else {
++            // Selected row found, but is it on current page?
++            oTriggerRecord = this.getRecord(oTriggerRecord);
++            nTriggerRecordIndex = this.getRecordIndex(oTriggerRecord);
++            elTriggerRow = this.getTrEl(oTriggerRecord);
++            nTriggerTrIndex = this.getTrIndex(elTriggerRow);
++
++            // Selected row not found on this page
++            if(nTriggerTrIndex === null) {
++                return null;
++            }
++            else {
++                oTrigger.record = oTriggerRecord;
++                oTrigger.recordIndex = nTriggerRecordIndex;
++                oTrigger.el = elTriggerRow;
++                oTrigger.trIndex = nTriggerTrIndex;
++                return oTrigger;
++            }
++        }
++    }
++},
++
++/**
++ * Returns object literal of values that represent the selection anchor. Used
++ * to determine selection behavior resulting from a user event.
++ *
++ * @method _getSelectionAnchor
++ * @param oTrigger {Object} (Optional) Object literal of selection trigger values
++ * (for key events).
++ * @private
++ */
++_getSelectionAnchor : function(oTrigger) {
++    var sMode = this.get("selectionMode");
++    var oAnchor = {};
++    var oAnchorRecord, nAnchorRecordIndex, nAnchorTrIndex;
++
++    // Cell mode
++    if((sMode == "cellblock") || (sMode == "cellrange") || (sMode == "singlecell")) {
++        // Validate anchor cell
++        var oAnchorCell = this._oAnchorCell;
++        if(!oAnchorCell) {
++            if(oTrigger) {
++                oAnchorCell = this._oAnchorCell = oTrigger.cell;
++            }
++            else {
++                return null;
++            }
++        }
++        oAnchorRecord = this._oAnchorCell.record;
++        nAnchorRecordIndex = this._oRecordSet.getRecordIndex(oAnchorRecord);
++        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
++        // If anchor cell is not on this page...
++        if(nAnchorTrIndex === null) {
++            // ...set TR index equal to top TR
++            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
++                nAnchorTrIndex = 0;
++            }
++            // ...set TR index equal to bottom TR
++            else {
++                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
++            }
++        }
++
++        oAnchor.record = oAnchorRecord;
++        oAnchor.recordIndex = nAnchorRecordIndex;
++        oAnchor.trIndex = nAnchorTrIndex;
++        oAnchor.column = this._oAnchorCell.column;
++        oAnchor.colKeyIndex = oAnchor.column.getKeyIndex();
++        oAnchor.cell = oAnchorCell;
++        return oAnchor;
++    }
++    // Row mode
++    else {
++        oAnchorRecord = this._oAnchorRecord;
++        if(!oAnchorRecord) {
++            if(oTrigger) {
++                oAnchorRecord = this._oAnchorRecord = oTrigger.record;
++            }
++            else {
++                return null;
++            }
++        }
++
++        nAnchorRecordIndex = this.getRecordIndex(oAnchorRecord);
++        nAnchorTrIndex = this.getTrIndex(oAnchorRecord);
++        // If anchor row is not on this page...
++        if(nAnchorTrIndex === null) {
++            // ...set TR index equal to top TR
++            if(nAnchorRecordIndex < this.getRecordIndex(this.getFirstTrEl())) {
++                nAnchorTrIndex = 0;
++            }
++            // ...set TR index equal to bottom TR
++            else {
++                nAnchorTrIndex = this.getRecordIndex(this.getLastTrEl());
++            }
++        }
++
++        oAnchor.record = oAnchorRecord;
++        oAnchor.recordIndex = nAnchorRecordIndex;
++        oAnchor.trIndex = nAnchorTrIndex;
++        return oAnchor;
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "standard".
++ *
++ * @method _handleStandardSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleStandardSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target row
++    var elTargetRow = this.getTrEl(elTarget);
++    if(elTargetRow) {
++        var e = oArgs.event;
++        var bSHIFT = e.shiftKey;
++        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
++
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
++
++        var oAnchor = this._getSelectionAnchor();
++
++        var i;
++
++        // Both SHIFT and CTRL
++        if(bSHIFT && bCTRL) {
++            // Validate anchor
++            if(oAnchor) {
++                if(this.isSelected(oAnchor.record)) {
++                    // Select all rows between anchor row and target row, including target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex; i++) {
++                            if(!this.isSelected(i)) {
++                                this.selectRow(i);
++                            }
++                        }
++                    }
++                    // Select all rows between target row and anchor row, including target row
++                    else {
++                        for(i=oAnchor.recordIndex-1; i>=nTargetRecordIndex; i--) {
++                            if(!this.isSelected(i)) {
++                                this.selectRow(i);
++                            }
++                        }
++                    }
++                }
++                else {
++                    // Unselect all rows between anchor row and target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        for(i=oAnchor.recordIndex+1; i<=nTargetRecordIndex-1; i++) {
++                            if(this.isSelected(i)) {
++                                this.unselectRow(i);
++                            }
++                        }
++                    }
++                    // Unselect all rows between target row and anchor row
++                    else {
++                        for(i=nTargetRecordIndex+1; i<=oAnchor.recordIndex-1; i++) {
++                            if(this.isSelected(i)) {
++                                this.unselectRow(i);
++                            }
++                        }
++                    }
++                    // Select the target row
++                    this.selectRow(oTargetRecord);
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorRecord = oTargetRecord;
++
++                // Toggle selection of target
++                if(this.isSelected(oTargetRecord)) {
++                    this.unselectRow(oTargetRecord);
++                }
++                else {
++                    this.selectRow(oTargetRecord);
++                }
++            }
++        }
++         // Only SHIFT
++        else if(bSHIFT) {
++            this.unselectAllRows();
++
++            // Validate anchor
++            if(oAnchor) {
++                // Select all rows between anchor row and target row,
++                // including the anchor row and target row
++                if(oAnchor.recordIndex < nTargetRecordIndex) {
++                    for(i=oAnchor.recordIndex; i<=nTargetRecordIndex; i++) {
++                        this.selectRow(i);
++                    }
++                }
++                // Select all rows between target row and anchor row,
++                // including the target row and anchor row
++                else {
++                    for(i=oAnchor.recordIndex; i>=nTargetRecordIndex; i--) {
++                        this.selectRow(i);
++                    }
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorRecord = oTargetRecord;
++
++                // Select target row only
++                this.selectRow(oTargetRecord);
++            }
++        }
++        // Only CTRL
++        else if(bCTRL) {
++            // Set anchor
++            this._oAnchorRecord = oTargetRecord;
++
++            // Toggle selection of target
++            if(this.isSelected(oTargetRecord)) {
++                this.unselectRow(oTargetRecord);
++            }
++            else {
++                this.selectRow(oTargetRecord);
++            }
++        }
++        // Neither SHIFT nor CTRL
++        else {
++            this._handleSingleSelectionByMouse(oArgs);
++            return;
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "standard".
++ *
++ * @method _handleStandardSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleStandardSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++
++    if((nKey == 38) || (nKey == 40)) {
++        var bSHIFT = e.shiftKey;
++
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Validate anchor
++        var oAnchor = this._getSelectionAnchor(oTrigger);
++
++        // Determine which direction we're going to
++        if(bSHIFT) {
++            // Selecting down away from anchor row
++            if((nKey == 40) && (oAnchor.recordIndex <= oTrigger.trIndex)) {
++                this.selectRow(this.getNextTrEl(oTrigger.el));
++            }
++            // Selecting up away from anchor row
++            else if((nKey == 38) && (oAnchor.recordIndex >= oTrigger.trIndex)) {
++                this.selectRow(this.getPreviousTrEl(oTrigger.el));
++            }
++            // Unselect trigger
++            else {
++                this.unselectRow(oTrigger.el);
++            }
++        }
++        else {
++            this._handleSingleSelectionByKey(e);
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "single".
++ *
++ * @method _handleSingleSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleSingleSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target row
++    var elTargetRow = this.getTrEl(elTarget);
++    if(elTargetRow) {
++        var oTargetRecord = this.getRecord(elTargetRow);
++
++        // Set anchor
++        this._oAnchorRecord = oTargetRecord;
++
++        // Select only target
++        this.unselectAllRows();
++        this.selectRow(oTargetRecord);
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "single".
++ *
++ * @method _handleSingleSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleSingleSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++
++    if((nKey == 38) || (nKey == 40)) {
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Determine the new row to select
++        var elNew;
++        if(nKey == 38) { // arrow up
++            elNew = this.getPreviousTrEl(oTrigger.el);
++
++            // Validate new row
++            if(elNew === null) {
++                //TODO: wrap around to last tr on current page
++                //elNew = this.getLastTrEl();
++
++                //TODO: wrap back to last tr of previous page
++
++                // Top row selection is sticky
++                elNew = this.getFirstTrEl();
++            }
++        }
++        else if(nKey == 40) { // arrow down
++            elNew = this.getNextTrEl(oTrigger.el);
++
++            // Validate new row
++            if(elNew === null) {
++                //TODO: wrap around to first tr on current page
++                //elNew = this.getFirstTrEl();
++
++                //TODO: wrap forward to first tr of previous page
++
++                // Bottom row selection is sticky
++                elNew = this.getLastTrEl();
++            }
++        }
++
++        // Unselect all rows
++        this.unselectAllRows();
++
++        // Select the new row
++        this.selectRow(elNew);
++
++        // Set new anchor
++        this._oAnchorRecord = this.getRecord(elNew);
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "cellblock".
++ *
++ * @method _handleCellBlockSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleCellBlockSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target cell
++    var elTargetCell = this.getTdEl(elTarget);
++    if(elTargetCell) {
++        var e = oArgs.event;
++        var bSHIFT = e.shiftKey;
++        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
++
++        var elTargetRow = this.getTrEl(elTargetCell);
++        var nTargetTrIndex = this.getTrIndex(elTargetRow);
++        var oTargetColumn = this.getColumn(elTargetCell);
++        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
++        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
++
++        var oAnchor = this._getSelectionAnchor();
++
++        var allRows = this.getTbodyEl().rows;
++        var startIndex, endIndex, currentRow, i, j;
++
++        // Both SHIFT and CTRL
++        if(bSHIFT && bCTRL) {
++
++            // Validate anchor
++            if(oAnchor) {
++                // Anchor is selected
++                if(this.isSelected(oAnchor.cell)) {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Select all cells between anchor cell and target cell, including target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell, including target cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
++                        endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
++
++                        // Select all cells from startIndex to endIndex on rows between anchor row and target row
++                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                            for(j=startIndex; j<=endIndex; j++) {
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        startIndex = Math.min(oAnchor.trIndex, nTargetColKeyIndex);
++                        endIndex = Math.max(oAnchor.trIndex, nTargetColKeyIndex);
++
++                        // Select all cells from startIndex to endIndex on rows between target row and anchor row
++                        for(i=oAnchor.trIndex; i>=nTargetTrIndex; i--) {
++                            for(j=endIndex; j>=startIndex; j--) {
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++                    }
++                }
++                // Anchor cell is unselected
++                else {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Unselect all cells between anchor cell and target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        // Unselect all cells from anchor cell to target cell
++                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the anchor row, only unselect cells after the anchor cell
++                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
++                                    if(j>oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the target row, only unelect cells before the target cell
++                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
++                                    if(j<nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        // Unselect all cells from target cell to anchor cell
++                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the target row, only unselect cells after the target cell
++                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                    if(j>nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the anchor row, only unselect cells before the anchor cell
++                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                    if(j<oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++
++                    // Select the target cell
++                    this.selectCell(elTargetCell);
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Toggle selection of target
++                if(this.isSelected(oTargetCell)) {
++                    this.unselectCell(oTargetCell);
++                }
++                else {
++                    this.selectCell(oTargetCell);
++                }
++            }
++
++        }
++         // Only SHIFT
++        else if(bSHIFT) {
++            this.unselectAllCells();
++
++            // Validate anchor
++            if(oAnchor) {
++                // All cells are on the same row
++                if(oAnchor.recordIndex === nTargetRecordIndex) {
++                    // Select all cells between anchor cell and target cell,
++                    // including the anchor cell and target cell
++                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                    // Select all cells between target cell and anchor cell
++                    // including the target cell and anchor cell
++                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                }
++                // Anchor row is above target row
++                else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                    // Select the cellblock from anchor cell to target cell
++                    // including the anchor cell and the target cell
++                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
++                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
++
++                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                        for(j=startIndex; j<=endIndex; j++) {
++                            this.selectCell(allRows[i].cells[j]);
++                        }
++                    }
++                }
++                // Anchor row is below target row
++                else {
++                    // Select the cellblock from target cell to anchor cell
++                    // including the target cell and the anchor cell
++                    startIndex = Math.min(oAnchor.colKeyIndex, nTargetColKeyIndex);
++                    endIndex = Math.max(oAnchor.colKeyIndex, nTargetColKeyIndex);
++
++                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                        for(j=startIndex; j<=endIndex; j++) {
++                            this.selectCell(allRows[i].cells[j]);
++                        }
++                    }
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Select target only
++                this.selectCell(oTargetCell);
++            }
++        }
++        // Only CTRL
++        else if(bCTRL) {
++
++            // Set anchor
++            this._oAnchorCell = oTargetCell;
++
++            // Toggle selection of target
++            if(this.isSelected(oTargetCell)) {
++                this.unselectCell(oTargetCell);
++            }
++            else {
++                this.selectCell(oTargetCell);
++            }
++
++        }
++        // Neither SHIFT nor CTRL
++        else {
++            this._handleSingleCellSelectionByMouse(oArgs);
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "cellblock".
++ *
++ * @method _handleCellBlockSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleCellBlockSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++    var bSHIFT = e.shiftKey;
++    if((nKey == 9) || !bSHIFT) {
++        this._handleSingleCellSelectionByKey(e);
++        return;
++    }
++
++    if((nKey > 36) && (nKey < 41)) {
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Validate anchor
++        var oAnchor = this._getSelectionAnchor(oTrigger);
++
++        var i, startIndex, endIndex, elNew, elNewRow;
++        var allRows = this.getTbodyEl().rows;
++        var elThisRow = oTrigger.el.parentNode;
++
++        // Determine which direction we're going to
++
++        if(nKey == 40) { // arrow down
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
++                // Select the horiz block on the next row...
++                // ...making sure there is room below the trigger row
++                elNewRow = this.getNextTrEl(oTrigger.el);
++                if(elNewRow) {
++                    startIndex = oAnchor.colKeyIndex;
++                    endIndex = oTrigger.colKeyIndex;
++                    // ...going left
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going right
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                // Unselect the horiz block on this row towards the next row
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++            }
++        }
++        // Arrow up
++        else if(nKey == 38) {
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
++                // Select the horiz block on the previous row...
++                // ...making sure there is room
++                elNewRow = this.getPreviousTrEl(oTrigger.el);
++                if(elNewRow) {
++                    // Select in order from anchor to trigger...
++                    startIndex = oAnchor.colKeyIndex;
++                    endIndex = oTrigger.colKeyIndex;
++                    // ...going left
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going right
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = elNewRow.cells[i];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                startIndex = Math.min(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                endIndex = Math.max(oAnchor.colKeyIndex, oTrigger.colKeyIndex);
++                // Unselect the horiz block on this row towards the previous row
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++            }
++        }
++        // Arrow right
++        else if(nKey == 39) {
++            // Selecting away from anchor cell
++            if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
++                // Select the next vert block to the right...
++                // ...making sure there is room
++                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                    // Select in order from anchor to trigger...
++                    startIndex = oAnchor.trIndex;
++                    endIndex = oTrigger.trIndex;
++                    // ...going up
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going down
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex+1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect the vert block on this column towards the right
++                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
++                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
++                }
++            }
++        }
++        // Arrow left
++        else if(nKey == 37) {
++            // Selecting away from anchor cell
++            if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
++                //Select the previous vert block to the left
++                if(oTrigger.colKeyIndex > 0) {
++                    // Select in order from anchor to trigger...
++                    startIndex = oAnchor.trIndex;
++                    endIndex = oTrigger.trIndex;
++                    // ...going up
++                    if(startIndex > endIndex) {
++                        for(i=startIndex; i>=endIndex; i--) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                    // ... going down
++                    else {
++                        for(i=startIndex; i<=endIndex; i++) {
++                            elNew = allRows[i].cells[oTrigger.colKeyIndex-1];
++                            this.selectCell(elNew);
++                        }
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect the vert block on this column towards the left
++                startIndex = Math.min(oAnchor.trIndex, oTrigger.trIndex);
++                endIndex = Math.max(oAnchor.trIndex, oTrigger.trIndex);
++                for(i=startIndex; i<=endIndex; i++) {
++                    this.unselectCell(allRows[i].cells[oTrigger.colKeyIndex]);
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "cellrange".
++ *
++ * @method _handleCellRangeSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleCellRangeSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target cell
++    var elTargetCell = this.getTdEl(elTarget);
++    if(elTargetCell) {
++        var e = oArgs.event;
++        var bSHIFT = e.shiftKey;
++        var bCTRL = e.ctrlKey || ((navigator.userAgent.toLowerCase().indexOf("mac") != -1) && e.metaKey);
++
++        var elTargetRow = this.getTrEl(elTargetCell);
++        var nTargetTrIndex = this.getTrIndex(elTargetRow);
++        var oTargetColumn = this.getColumn(elTargetCell);
++        var nTargetColKeyIndex = oTargetColumn.getKeyIndex();
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var nTargetRecordIndex = this._oRecordSet.getRecordIndex(oTargetRecord);
++        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
++
++        var oAnchor = this._getSelectionAnchor();
++
++        var allRows = this.getTbodyEl().rows;
++        var currentRow, i, j;
++
++        // Both SHIFT and CTRL
++        if(bSHIFT && bCTRL) {
++
++            // Validate anchor
++            if(oAnchor) {
++                // Anchor is selected
++                if(this.isSelected(oAnchor.cell)) {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Select all cells between anchor cell and target cell, including target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<=nTargetColKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell, including target cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex; i<oAnchor.colKeyIndex; i++) {
++                                this.selectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        // Select all cells on anchor row from anchor cell to the end of the row
++                        for(i=oAnchor.colKeyIndex+1; i<elTargetRow.cells.length; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++
++                        // Select all cells on all rows between anchor row and target row
++                        for(i=oAnchor.trIndex+1; i<nTargetTrIndex; i++) {
++                            for(j=0; j<allRows[i].cells.length; j++){
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++
++                        // Select all cells on target row from first cell to the target cell
++                        for(i=0; i<=nTargetColKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        // Select all cells on target row from target cell to the end of the row
++                        for(i=nTargetColKeyIndex; i<elTargetRow.cells.length; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++
++                        // Select all cells on all rows between target row and anchor row
++                        for(i=nTargetTrIndex+1; i<oAnchor.trIndex; i++) {
++                            for(j=0; j<allRows[i].cells.length; j++){
++                                this.selectCell(allRows[i].cells[j]);
++                            }
++                        }
++
++                        // Select all cells on anchor row from first cell to the anchor cell
++                        for(i=0; i<oAnchor.colKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                }
++                // Anchor cell is unselected
++                else {
++                    // All cells are on the same row
++                    if(oAnchor.recordIndex === nTargetRecordIndex) {
++                        // Unselect all cells between anchor cell and target cell
++                        if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                            for(i=oAnchor.colKeyIndex+1; i<nTargetColKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                        // Select all cells between target cell and anchor cell
++                        else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                            for(i=nTargetColKeyIndex+1; i<oAnchor.colKeyIndex; i++) {
++                                this.unselectCell(elTargetRow.cells[i]);
++                            }
++                        }
++                    }
++                    // Anchor row is above target row
++                    if(oAnchor.recordIndex < nTargetRecordIndex) {
++                        // Unselect all cells from anchor cell to target cell
++                        for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the anchor row, only unselect cells after the anchor cell
++                                if(currentRow.sectionRowIndex === oAnchor.trIndex) {
++                                    if(j>oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the target row, only unelect cells before the target cell
++                                else if(currentRow.sectionRowIndex === nTargetTrIndex) {
++                                    if(j<nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++                    // Anchor row is below target row
++                    else {
++                        // Unselect all cells from target cell to anchor cell
++                        for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                            currentRow = allRows[i];
++                            for(j=0; j<currentRow.cells.length; j++) {
++                                // This is the target row, only unselect cells after the target cell
++                                if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                    if(j>nTargetColKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // This is the anchor row, only unselect cells before the anchor cell
++                                else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                    if(j<oAnchor.colKeyIndex) {
++                                        this.unselectCell(currentRow.cells[j]);
++                                    }
++                                }
++                                // Unselect all cells on this row
++                                else {
++                                    this.unselectCell(currentRow.cells[j]);
++                                }
++                            }
++                        }
++                    }
++
++                    // Select the target cell
++                    this.selectCell(elTargetCell);
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Toggle selection of target
++                if(this.isSelected(oTargetCell)) {
++                    this.unselectCell(oTargetCell);
++                }
++                else {
++                    this.selectCell(oTargetCell);
++                }
++            }
++        }
++         // Only SHIFT
++        else if(bSHIFT) {
++
++            this.unselectAllCells();
++
++            // Validate anchor
++            if(oAnchor) {
++                // All cells are on the same row
++                if(oAnchor.recordIndex === nTargetRecordIndex) {
++                    // Select all cells between anchor cell and target cell,
++                    // including the anchor cell and target cell
++                    if(oAnchor.colKeyIndex < nTargetColKeyIndex) {
++                        for(i=oAnchor.colKeyIndex; i<=nTargetColKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                    // Select all cells between target cell and anchor cell
++                    // including the target cell and anchor cell
++                    else if(nTargetColKeyIndex < oAnchor.colKeyIndex) {
++                        for(i=nTargetColKeyIndex; i<=oAnchor.colKeyIndex; i++) {
++                            this.selectCell(elTargetRow.cells[i]);
++                        }
++                    }
++                }
++                // Anchor row is above target row
++                else if(oAnchor.recordIndex < nTargetRecordIndex) {
++                    // Select all cells from anchor cell to target cell
++                    // including the anchor cell and target cell
++                    for(i=oAnchor.trIndex; i<=nTargetTrIndex; i++) {
++                        currentRow = allRows[i];
++                        for(j=0; j<currentRow.cells.length; j++) {
++                            // This is the anchor row, only select the anchor cell and after
++                            if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                if(j>=oAnchor.colKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // This is the target row, only select the target cell and before
++                            else if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                if(j<=nTargetColKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // Select all cells on this row
++                            else {
++                                this.selectCell(currentRow.cells[j]);
++                            }
++                        }
++                    }
++                }
++                // Anchor row is below target row
++                else {
++                    // Select all cells from target cell to anchor cell,
++                    // including the target cell and anchor cell
++                    for(i=nTargetTrIndex; i<=oAnchor.trIndex; i++) {
++                        currentRow = allRows[i];
++                        for(j=0; j<currentRow.cells.length; j++) {
++                            // This is the target row, only select the target cell and after
++                            if(currentRow.sectionRowIndex == nTargetTrIndex) {
++                                if(j>=nTargetColKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // This is the anchor row, only select the anchor cell and before
++                            else if(currentRow.sectionRowIndex == oAnchor.trIndex) {
++                                if(j<=oAnchor.colKeyIndex) {
++                                    this.selectCell(currentRow.cells[j]);
++                                }
++                            }
++                            // Select all cells on this row
++                            else {
++                                this.selectCell(currentRow.cells[j]);
++                            }
++                        }
++                    }
++                }
++            }
++            // Invalid anchor
++            else {
++                // Set anchor
++                this._oAnchorCell = oTargetCell;
++
++                // Select target only
++                this.selectCell(oTargetCell);
++            }
++
++
++        }
++        // Only CTRL
++        else if(bCTRL) {
++
++            // Set anchor
++            this._oAnchorCell = oTargetCell;
++
++            // Toggle selection of target
++            if(this.isSelected(oTargetCell)) {
++                this.unselectCell(oTargetCell);
++            }
++            else {
++                this.selectCell(oTargetCell);
++            }
++
++        }
++        // Neither SHIFT nor CTRL
++        else {
++            this._handleSingleCellSelectionByMouse(oArgs);
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "cellrange".
++ *
++ * @method _handleCellRangeSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleCellRangeSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++    var bSHIFT = e.shiftKey;
++    if((nKey == 9) || !bSHIFT) {
++        this._handleSingleCellSelectionByKey(e);
++        return;
++    }
++
++    if((nKey > 36) && (nKey < 41)) {
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        Ev.stopEvent(e);
++
++        // Validate anchor
++        var oAnchor = this._getSelectionAnchor(oTrigger);
++
++        var i, elNewRow, elNew;
++        var allRows = this.getTbodyEl().rows;
++        var elThisRow = oTrigger.el.parentNode;
++
++        // Arrow down
++        if(nKey == 40) {
++            elNewRow = this.getNextTrEl(oTrigger.el);
++
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex <= oTrigger.recordIndex) {
++                // Select all cells to the end of this row
++                for(i=oTrigger.colKeyIndex+1; i<elThisRow.cells.length; i++){
++                    elNew = elThisRow.cells[i];
++                    this.selectCell(elNew);
++                }
++
++                // Select some of the cells on the next row down
++                if(elNewRow) {
++                    for(i=0; i<=oTrigger.colKeyIndex; i++){
++                        elNew = elNewRow.cells[i];
++                        this.selectCell(elNew);
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect all cells to the end of this row
++                for(i=oTrigger.colKeyIndex; i<elThisRow.cells.length; i++){
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++
++                // Unselect some of the cells on the next row down
++                if(elNewRow) {
++                    for(i=0; i<oTrigger.colKeyIndex; i++){
++                        this.unselectCell(elNewRow.cells[i]);
++                    }
++                }
++            }
++        }
++        // Arrow up
++        else if(nKey == 38) {
++            elNewRow = this.getPreviousTrEl(oTrigger.el);
++
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex >= oTrigger.recordIndex) {
++                // Select all the cells to the beginning of this row
++                for(i=oTrigger.colKeyIndex-1; i>-1; i--){
++                    elNew = elThisRow.cells[i];
++                    this.selectCell(elNew);
++                }
++
++                // Select some of the cells from the end of the previous row
++                if(elNewRow) {
++                    for(i=elThisRow.cells.length-1; i>=oTrigger.colKeyIndex; i--){
++                        elNew = elNewRow.cells[i];
++                        this.selectCell(elNew);
++                    }
++                }
++            }
++            // Unselecting towards anchor cell
++            else {
++                // Unselect all the cells to the beginning of this row
++                for(i=oTrigger.colKeyIndex; i>-1; i--){
++                    this.unselectCell(elThisRow.cells[i]);
++                }
++
++                // Unselect some of the cells from the end of the previous row
++                if(elNewRow) {
++                    for(i=elThisRow.cells.length-1; i>oTrigger.colKeyIndex; i--){
++                        this.unselectCell(elNewRow.cells[i]);
++                    }
++                }
++            }
++        }
++        // Arrow right
++        else if(nKey == 39) {
++            elNewRow = this.getNextTrEl(oTrigger.el);
++
++            // Selecting away from anchor cell
++            if(oAnchor.recordIndex < oTrigger.recordIndex) {
++                // Select the next cell to the right
++                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                    elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
++                    this.selectCell(elNew);
++                }
++                // Select the first cell of the next row
++                else if(elNewRow) {
++                    elNew = elNewRow.cells[0];
++                    this.selectCell(elNew);
++                }
++            }
++            // Unselecting towards anchor cell
++            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
++                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++
++                // Unselect this cell towards the right
++                if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                }
++                // Unselect this cells towards the first cell of the next row
++                else {
++                }
++            }
++            // Anchor is on this row
++            else {
++                // Selecting away from anchor
++                if(oAnchor.colKeyIndex <= oTrigger.colKeyIndex) {
++                    // Select the next cell to the right
++                    if(oTrigger.colKeyIndex < elThisRow.cells.length-1) {
++                        elNew = elThisRow.cells[oTrigger.colKeyIndex+1];
++                        this.selectCell(elNew);
++                    }
++                    // Select the first cell on the next row
++                    else if(oTrigger.trIndex < allRows.length-1){
++                        elNew = elNewRow.cells[0];
++                        this.selectCell(elNew);
++                    }
++                }
++                // Unselecting towards anchor
++                else {
++                    // Unselect this cell towards the right
++                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++                }
++            }
++        }
++        // Arrow left
++        else if(nKey == 37) {
++            elNewRow = this.getPreviousTrEl(oTrigger.el);
++
++            // Unselecting towards the anchor
++            if(oAnchor.recordIndex < oTrigger.recordIndex) {
++                this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++
++                // Unselect this cell towards the left
++                if(oTrigger.colKeyIndex > 0) {
++                }
++                // Unselect this cell towards the last cell of the previous row
++                else {
++                }
++            }
++            // Selecting towards the anchor
++            else if(oAnchor.recordIndex > oTrigger.recordIndex) {
++                // Select the next cell to the left
++                if(oTrigger.colKeyIndex > 0) {
++                    elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
++                    this.selectCell(elNew);
++                }
++                // Select the last cell of the previous row
++                else if(oTrigger.trIndex > 0){
++                    elNew = elNewRow.cells[elNewRow.cells.length-1];
++                    this.selectCell(elNew);
++                }
++            }
++            // Anchor is on this row
++            else {
++                // Selecting away from anchor cell
++                if(oAnchor.colKeyIndex >= oTrigger.colKeyIndex) {
++                    // Select the next cell to the left
++                    if(oTrigger.colKeyIndex > 0) {
++                        elNew = elThisRow.cells[oTrigger.colKeyIndex-1];
++                        this.selectCell(elNew);
++                    }
++                    // Select the last cell of the previous row
++                    else if(oTrigger.trIndex > 0){
++                        elNew = elNewRow.cells[elNewRow.cells.length-1];
++                        this.selectCell(elNew);
++                    }
++                }
++                // Unselecting towards anchor cell
++                else {
++                    this.unselectCell(elThisRow.cells[oTrigger.colKeyIndex]);
++
++                    // Unselect this cell towards the left
++                    if(oTrigger.colKeyIndex > 0) {
++                    }
++                    // Unselect this cell towards the last cell of the previous row
++                    else {
++                    }
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a mouse event when selection mode
++ * is set to "singlecell".
++ *
++ * @method _handleSingleCellSelectionByMouse
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ * @private
++ */
++_handleSingleCellSelectionByMouse : function(oArgs) {
++    var elTarget = oArgs.target;
++
++    // Validate target cell
++    var elTargetCell = this.getTdEl(elTarget);
++    if(elTargetCell) {
++        var elTargetRow = this.getTrEl(elTargetCell);
++        var oTargetRecord = this.getRecord(elTargetRow);
++        var oTargetColumn = this.getColumn(elTargetCell);
++        var oTargetCell = {record:oTargetRecord, column:oTargetColumn};
++
++        // Set anchor
++        this._oAnchorCell = oTargetCell;
++
++        // Select only target
++        this.unselectAllCells();
++        this.selectCell(oTargetCell);
++    }
++},
++
++/**
++ * Determines selection behavior resulting from a key event when selection mode
++ * is set to "singlecell".
++ *
++ * @method _handleSingleCellSelectionByKey
++ * @param e {HTMLEvent} Event object.
++ * @private
++ */
++_handleSingleCellSelectionByKey : function(e) {
++    var nKey = Ev.getCharCode(e);
++    if((nKey == 9) || ((nKey > 36) && (nKey < 41))) {
++        var bSHIFT = e.shiftKey;
++
++        // Validate trigger
++        var oTrigger = this._getSelectionTrigger();
++        // Arrow selection only works if last selected row is on current page
++        if(!oTrigger) {
++            return null;
++        }
++
++        // Determine the new cell to select
++        var elNew;
++        if(nKey == 40) { // Arrow down
++            elNew = this.getBelowTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to first tr on current page
++
++                //TODO: wrap forward to first tr of next page
++
++                // Bottom selection is sticky
++                elNew = oTrigger.el;
++            }
++        }
++        else if(nKey == 38) { // Arrow up
++            elNew = this.getAboveTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to last tr on current page
++
++                //TODO: wrap back to last tr of previous page
++
++                // Top selection is sticky
++                elNew = oTrigger.el;
++            }
++        }
++        else if((nKey == 39) || (!bSHIFT && (nKey == 9))) { // Arrow right or tab
++            elNew = this.getNextTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to first td on current page
++
++                //TODO: wrap forward to first td of next page
++
++                // Top-left selection is sticky, and release TAB focus
++                //elNew = oTrigger.el;
++                return;
++            }
++        }
++        else if((nKey == 37) || (bSHIFT && (nKey == 9))) { // Arrow left or shift-tab
++            elNew = this.getPreviousTdEl(oTrigger.el);
++
++            // Validate new cell
++            if(elNew === null) {
++                //TODO: wrap around to last td on current page
++
++                //TODO: wrap back to last td of previous page
++
++                // Bottom-right selection is sticky, and release TAB focus
++                //elNew = oTrigger.el;
++                return;
++            }
++        }
++
++        Ev.stopEvent(e);
++        
++        // Unselect all cells
++        this.unselectAllCells();
++
++        // Select the new cell
++        this.selectCell(elNew);
++
++        // Set new anchor
++        this._oAnchorCell = {record:this.getRecord(elNew), column:this.getColumn(elNew)};
++    }
++},
++
++/**
++ * Returns array of selected TR elements on the page.
++ *
++ * @method getSelectedTrEls
++ * @return {HTMLElement[]} Array of selected TR elements.
++ */
++getSelectedTrEls : function() {
++    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"tr",this._elTbody);
++},
++
++/**
++ * Sets given row to the selected state.
++ *
++ * @method selectRow
++ * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
++ * reference or ID string, Record instance, or RecordSet position index.
++ */
++selectRow : function(row) {
++    var oRecord, elRow;
++
++    if(row instanceof YAHOO.widget.Record) {
++        oRecord = this._oRecordSet.getRecord(row);
++        elRow = this.getTrEl(oRecord);
++    }
++    else if(lang.isNumber(row)) {
++        oRecord = this.getRecord(row);
++        elRow = this.getTrEl(oRecord);
++    }
++    else {
++        elRow = this.getTrEl(row);
++        oRecord = this.getRecord(elRow);
++    }
++
++    if(oRecord) {
++        // Update selection trackers
++        var tracker = this._aSelections || [];
++        var sRecordId = oRecord.getId();
++        var index = -1;
++
++        // Remove if already there:
++        // Use Array.indexOf if available...
++        /*if(tracker.indexOf && (tracker.indexOf(sRecordId) >  -1)) {
++            tracker.splice(tracker.indexOf(sRecordId),1);
++        }*/
++        if(tracker.indexOf) {
++            index = tracker.indexOf(sRecordId);
++            
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var j=tracker.length-1; j>-1; j--) {
++                if(tracker[j] === sRecordId){
++                    index = j;
++                    break;
++                }
++            }
++        }
++        if(index > -1) {
++            tracker.splice(index,1);
++        }
++        
++        // Add to the end
++        tracker.push(sRecordId);
++        this._aSelections = tracker;
++
++        // Update trackers
++        if(!this._oAnchorRecord) {
++            this._oAnchorRecord = oRecord;
++        }
++
++        // Update UI
++        if(elRow) {
++            Dom.addClass(elRow, DT.CLASS_SELECTED);
++        }
++
++        this.fireEvent("rowSelectEvent", {record:oRecord, el:elRow});
++    }
++    else {
++    }
++},
++
++/**
++ * Sets given row to the unselected state.
++ *
++ * @method unselectRow
++ * @param row {HTMLElement | String | YAHOO.widget.Record | Number} HTML element
++ * reference or ID string, Record instance, or RecordSet position index.
++ */
++unselectRow : function(row) {
++    var elRow = this.getTrEl(row);
++
++    var oRecord;
++    if(row instanceof YAHOO.widget.Record) {
++        oRecord = this._oRecordSet.getRecord(row);
++    }
++    else if(lang.isNumber(row)) {
++        oRecord = this.getRecord(row);
++    }
++    else {
++        oRecord = this.getRecord(elRow);
++    }
++
++    if(oRecord) {
++        // Update selection trackers
++        var tracker = this._aSelections || [];
++        var sRecordId = oRecord.getId();
++        var index = -1;
++
++        // Use Array.indexOf if available...
++        if(tracker.indexOf) {
++            index = tracker.indexOf(sRecordId);
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var j=tracker.length-1; j>-1; j--) {
++                if(tracker[j] === sRecordId){
++                    index = j;
++                    break;
++                }
++            }
++        }
++        if(index > -1) {
++            // Update tracker
++            tracker.splice(index,1);
++            this._aSelections = tracker;
++
++            // Update the UI
++            Dom.removeClass(elRow, DT.CLASS_SELECTED);
++
++            this.fireEvent("rowUnselectEvent", {record:oRecord, el:elRow});
++
++            return;
++        }
++    }
++},
++
++/**
++ * Clears out all row selections.
++ *
++ * @method unselectAllRows
++ */
++unselectAllRows : function() {
++    // Remove all rows from tracker
++    var tracker = this._aSelections || [],
++        recId,
++        removed = [];
++    for(var j=tracker.length-1; j>-1; j--) {
++       if(lang.isString(tracker[j])){
++            recId = tracker.splice(j,1);
++            removed[removed.length] = this.getRecord(lang.isArray(recId) ? recId[0] : recId);
++        }
++    }
++
++    // Update tracker
++    this._aSelections = tracker;
++
++    // Update UI
++    this._unselectAllTrEls();
++
++    this.fireEvent("unselectAllRowsEvent", {records: removed});
++},
++
++/**
++ * Convenience method to remove the class YAHOO.widget.DataTable.CLASS_SELECTED
++ * from all TD elements in the internal tracker.
++ *
++ * @method _unselectAllTdEls
++ * @private
++ */
++_unselectAllTdEls : function() {
++    var selectedCells = Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
++    Dom.removeClass(selectedCells, DT.CLASS_SELECTED);
++},
++
++/**
++ * Returns array of selected TD elements on the page.
++ *
++ * @method getSelectedTdEls
++ * @return {HTMLElement[]} Array of selected TD elements.
++ */
++getSelectedTdEls : function() {
++    return Dom.getElementsByClassName(DT.CLASS_SELECTED,"td",this._elTbody);
++},
++
++/**
++ * Sets given cell to the selected state.
++ *
++ * @method selectCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ */
++selectCell : function(cell) {
++//TODO: accept {record} in selectCell()
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        var oRecord = this.getRecord(elCell);
++        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
++
++        if(oRecord && sColumnKey) {
++            // Get Record ID
++            var tracker = this._aSelections || [];
++            var sRecordId = oRecord.getId();
++
++            // Remove if there
++            for(var j=tracker.length-1; j>-1; j--) {
++               if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
++                    tracker.splice(j,1);
++                    break;
++                }
++            }
++
++            // Add to the end
++            tracker.push({recordId:sRecordId, columnKey:sColumnKey});
++
++            // Update trackers
++            this._aSelections = tracker;
++            if(!this._oAnchorCell) {
++                this._oAnchorCell = {record:oRecord, column:this.getColumn(sColumnKey)};
++            }
++
++            // Update the UI
++            Dom.addClass(elCell, DT.CLASS_SELECTED);
++
++            this.fireEvent("cellSelectEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key: this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++            return;
++        }
++    }
++},
++
++/**
++ * Sets given cell to the unselected state.
++ *
++ * @method unselectCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string
++ * to DataTable page element or RecordSet index.
++ */
++unselectCell : function(cell) {
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        var oRecord = this.getRecord(elCell);
++        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
++
++        if(oRecord && sColumnKey) {
++            // Get Record ID
++            var tracker = this._aSelections || [];
++            var id = oRecord.getId();
++
++            // Is it selected?
++            for(var j=tracker.length-1; j>-1; j--) {
++                if((tracker[j].recordId === id) && (tracker[j].columnKey === sColumnKey)){
++                    // Remove from tracker
++                    tracker.splice(j,1);
++
++                    // Update tracker
++                    this._aSelections = tracker;
++
++                    // Update the UI
++                    Dom.removeClass(elCell, DT.CLASS_SELECTED);
++
++                    this.fireEvent("cellUnselectEvent", {record:oRecord, column: this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++                    return;
++                }
++            }
++        }
++    }
++},
++
++/**
++ * Clears out all cell selections.
++ *
++ * @method unselectAllCells
++ */
++unselectAllCells : function() {
++    // Remove all cells from tracker
++    var tracker = this._aSelections || [];
++    for(var j=tracker.length-1; j>-1; j--) {
++       if(lang.isObject(tracker[j])){
++            tracker.splice(j,1);
++        }
++    }
++
++    // Update tracker
++    this._aSelections = tracker;
++
++    // Update UI
++    this._unselectAllTdEls();
++
++    //TODO: send data to unselectAllCellsEvent handler
++    this.fireEvent("unselectAllCellsEvent");
++},
++
++/**
++ * Returns true if given item is selected, false otherwise.
++ *
++ * @method isSelected
++ * @param o {String | HTMLElement | YAHOO.widget.Record | Number
++ * {record:YAHOO.widget.Record, column:YAHOO.widget.Column} } TR or TD element by
++ * reference or ID string, a Record instance, a RecordSet position index,
++ * or an object literal representation
++ * of a cell.
++ * @return {Boolean} True if item is selected.
++ */
++isSelected : function(o) {
++    if(o && (o.ownerDocument == document)) {
++        return (Dom.hasClass(this.getTdEl(o),DT.CLASS_SELECTED) || Dom.hasClass(this.getTrEl(o),DT.CLASS_SELECTED));
++    }
++    else {
++        var oRecord, sRecordId, j;
++        var tracker = this._aSelections;
++        if(tracker && tracker.length > 0) {
++            // Looking for a Record?
++            if(o instanceof YAHOO.widget.Record) {
++                oRecord = o;
++            }
++            else if(lang.isNumber(o)) {
++                oRecord = this.getRecord(o);
++            }
++            if(oRecord) {
++                sRecordId = oRecord.getId();
++
++                // Is it there?
++                // Use Array.indexOf if available...
++                if(tracker.indexOf) {
++                    if(tracker.indexOf(sRecordId) >  -1) {
++                        return true;
++                    }
++                }
++                // ...or do it the old-fashioned way
++                else {
++                    for(j=tracker.length-1; j>-1; j--) {
++                       if(tracker[j] === sRecordId){
++                        return true;
++                       }
++                    }
++                }
++            }
++            // Looking for a cell
++            else if(o.record && o.column){
++                sRecordId = o.record.getId();
++                var sColumnKey = o.column.getKey();
++
++                for(j=tracker.length-1; j>-1; j--) {
++                    if((tracker[j].recordId === sRecordId) && (tracker[j].columnKey === sColumnKey)){
++                        return true;
++                    }
++                }
++            }
++        }
++    }
++    return false;
++},
++
++/**
++ * Returns selected rows as an array of Record IDs.
++ *
++ * @method getSelectedRows
++ * @return {String[]} Array of selected rows by Record ID.
++ */
++getSelectedRows : function() {
++    var aSelectedRows = [];
++    var tracker = this._aSelections || [];
++    for(var j=0; j<tracker.length; j++) {
++       if(lang.isString(tracker[j])){
++            aSelectedRows.push(tracker[j]);
++        }
++    }
++    return aSelectedRows;
++},
++
++/**
++ * Returns selected cells as an array of object literals:
++ *     {recordId:sRecordId, columnKey:sColumnKey}.
++ *
++ * @method getSelectedCells
++ * @return {Object[]} Array of selected cells by Record ID and Column ID.
++ */
++getSelectedCells : function() {
++    var aSelectedCells = [];
++    var tracker = this._aSelections || [];
++    for(var j=0; j<tracker.length; j++) {
++       if(tracker[j] && lang.isObject(tracker[j])){
++            aSelectedCells.push(tracker[j]);
++        }
++    }
++    return aSelectedCells;
++},
++
++/**
++ * Returns last selected Record ID.
++ *
++ * @method getLastSelectedRecord
++ * @return {String} Record ID of last selected row.
++ */
++getLastSelectedRecord : function() {
++    var tracker = this._aSelections;
++    if(tracker && tracker.length > 0) {
++        for(var i=tracker.length-1; i>-1; i--) {
++           if(lang.isString(tracker[i])){
++                return tracker[i];
++            }
++        }
++    }
++},
++
++/**
++ * Returns last selected cell as an object literal:
++ *     {recordId:sRecordId, columnKey:sColumnKey}.
++ *
++ * @method getLastSelectedCell
++ * @return {Object} Object literal representation of a cell.
++ */
++getLastSelectedCell : function() {
++    var tracker = this._aSelections;
++    if(tracker && tracker.length > 0) {
++        for(var i=tracker.length-1; i>-1; i--) {
++           if(tracker[i].recordId && tracker[i].columnKey){
++                return tracker[i];
++            }
++        }
++    }
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given row.
++ *
++ * @method highlightRow
++ * @param row {HTMLElement | String} DOM element reference or ID string.
++ */
++highlightRow : function(row) {
++    var elRow = this.getTrEl(row);
++
++    if(elRow) {
++        // Make sure previous row is unhighlighted
++/*        if(this._sLastHighlightedTrElId) {
++            Dom.removeClass(this._sLastHighlightedTrElId,DT.CLASS_HIGHLIGHTED);
++        }*/
++        var oRecord = this.getRecord(elRow);
++        Dom.addClass(elRow,DT.CLASS_HIGHLIGHTED);
++        //this._sLastHighlightedTrElId = elRow.id;
++        this.fireEvent("rowHighlightEvent", {record:oRecord, el:elRow});
++        return;
++    }
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given row.
++ *
++ * @method unhighlightRow
++ * @param row {HTMLElement | String} DOM element reference or ID string.
++ */
++unhighlightRow : function(row) {
++    var elRow = this.getTrEl(row);
++
++    if(elRow) {
++        var oRecord = this.getRecord(elRow);
++        Dom.removeClass(elRow,DT.CLASS_HIGHLIGHTED);
++        this.fireEvent("rowUnhighlightEvent", {record:oRecord, el:elRow});
++        return;
++    }
++},
++
++/**
++ * Assigns the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED to the given cell.
++ *
++ * @method highlightCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string.
++ */
++highlightCell : function(cell) {
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        // Make sure previous cell is unhighlighted
++        if(this._elLastHighlightedTd) {
++            this.unhighlightCell(this._elLastHighlightedTd);
++        }
++
++        var oRecord = this.getRecord(elCell);
++        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();
++        Dom.addClass(elCell,DT.CLASS_HIGHLIGHTED);
++        this._elLastHighlightedTd = elCell;
++        this.fireEvent("cellHighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++        return;
++    }
++},
++
++/**
++ * Removes the class YAHOO.widget.DataTable.CLASS_HIGHLIGHTED from the given cell.
++ *
++ * @method unhighlightCell
++ * @param cell {HTMLElement | String} DOM element reference or ID string.
++ */
++unhighlightCell : function(cell) {
++    var elCell = this.getTdEl(cell);
++
++    if(elCell) {
++        var oRecord = this.getRecord(elCell);
++        Dom.removeClass(elCell,DT.CLASS_HIGHLIGHTED);
++        this._elLastHighlightedTd = null;
++        this.fireEvent("cellUnhighlightEvent", {record:oRecord, column:this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
++        return;
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// INLINE EDITING
++
++/**
++ * Returns current CellEditor instance, or null.
++ * @method getCellEditor
++ * @return {YAHOO.widget.CellEditor} CellEditor instance.
++ */
++getCellEditor : function() {
++    return this._oCellEditor;
++},
++
++
++/**
++ * Activates and shows CellEditor instance for the given cell while deactivating and
++ * canceling previous CellEditor. It is baked into DataTable that only one CellEditor
++ * can be active at any given time. 
++ *
++ * @method showCellEditor
++ * @param elCell {HTMLElement | String} Cell to edit.
++ */
++showCellEditor : function(elCell, oRecord, oColumn) {
++    // Get a particular CellEditor
++    elCell = this.getTdEl(elCell);
++    if(elCell) {
++        oColumn = this.getColumn(elCell);
++        if(oColumn && oColumn.editor) {
++            var oCellEditor = this._oCellEditor;
++            // Clean up active CellEditor
++            if(oCellEditor) {
++                if(this._oCellEditor.cancel) {
++                    this._oCellEditor.cancel();
++                }
++                else if(oCellEditor.isActive) {
++                    this.cancelCellEditor();
++                }
++            }
++            
++            if(oColumn.editor instanceof YAHOO.widget.BaseCellEditor) {
++                // Get CellEditor
++                oCellEditor = oColumn.editor;
++                var ok = oCellEditor.attach(this, elCell);
++                if(ok) {
++                    oCellEditor.move();
++                    ok = this.doBeforeShowCellEditor(oCellEditor);
++                    if(ok) {
++                        oCellEditor.show();
++                        this._oCellEditor = oCellEditor;
++                    }
++                }
++            }
++            // Backward compatibility
++            else {
++                    if(!oRecord || !(oRecord instanceof YAHOO.widget.Record)) {
++                        oRecord = this.getRecord(elCell);
++                    }
++                    if(!oColumn || !(oColumn instanceof YAHOO.widget.Column)) {
++                        oColumn = this.getColumn(elCell);
++                    }
++                    if(oRecord && oColumn) {
++                        if(!this._oCellEditor || this._oCellEditor.container) {
++                            this._initCellEditorEl();
++                        }
++                        
++                        // Update Editor values
++                        oCellEditor = this._oCellEditor;
++                        oCellEditor.cell = elCell;
++                        oCellEditor.record = oRecord;
++                        oCellEditor.column = oColumn;
++                        oCellEditor.validator = (oColumn.editorOptions &&
++                                lang.isFunction(oColumn.editorOptions.validator)) ?
++                                oColumn.editorOptions.validator : null;
++                        oCellEditor.value = oRecord.getData(oColumn.key);
++                        oCellEditor.defaultValue = null;
++            
++                        // Move Editor
++                        var elContainer = oCellEditor.container;
++                        var x = Dom.getX(elCell);
++                        var y = Dom.getY(elCell);
++            
++                        // SF doesn't get xy for cells in scrolling table
++                        // when tbody display is set to block
++                        if(isNaN(x) || isNaN(y)) {
++                            x = elCell.offsetLeft + // cell pos relative to table
++                                    Dom.getX(this._elTbody.parentNode) - // plus table pos relative to document
++                                    this._elTbody.scrollLeft; // minus tbody scroll
++                            y = elCell.offsetTop + // cell pos relative to table
++                                    Dom.getY(this._elTbody.parentNode) - // plus table pos relative to document
++                                    this._elTbody.scrollTop + // minus tbody scroll
++                                    this._elThead.offsetHeight; // account for fixed THEAD cells
++                        }
++            
++                        elContainer.style.left = x + "px";
++                        elContainer.style.top = y + "px";
++            
++                        // Hook to customize the UI
++                        this.doBeforeShowCellEditor(this._oCellEditor);
++            
++                        //TODO: This is temporarily up here due so elements can be focused
++                        // Show Editor
++                        elContainer.style.display = "";
++            
++                        // Handle ESC key
++                        Ev.addListener(elContainer, "keydown", function(e, oSelf) {
++                            // ESC hides Cell Editor
++                            if((e.keyCode == 27)) {
++                                oSelf.cancelCellEditor();
++                                oSelf.focusTbodyEl();
++                            }
++                            else {
++                                oSelf.fireEvent("editorKeydownEvent", {editor:oSelf._oCellEditor, event:e});
++                            }
++                        }, this);
++            
++                        // Render Editor markup
++                        var fnEditor;
++                        if(lang.isString(oColumn.editor)) {
++                            switch(oColumn.editor) {
++                                case "checkbox":
++                                    fnEditor = DT.editCheckbox;
++                                    break;
++                                case "date":
++                                    fnEditor = DT.editDate;
++                                    break;
++                                case "dropdown":
++                                    fnEditor = DT.editDropdown;
++                                    break;
++                                case "radio":
++                                    fnEditor = DT.editRadio;
++                                    break;
++                                case "textarea":
++                                    fnEditor = DT.editTextarea;
++                                    break;
++                                case "textbox":
++                                    fnEditor = DT.editTextbox;
++                                    break;
++                                default:
++                                    fnEditor = null;
++                            }
++                        }
++                        else if(lang.isFunction(oColumn.editor)) {
++                            fnEditor = oColumn.editor;
++                        }
++            
++                        if(fnEditor) {
++                            // Create DOM input elements
++                            fnEditor(this._oCellEditor, this);
++            
++                            // Show Save/Cancel buttons
++                            if(!oColumn.editorOptions || !oColumn.editorOptions.disableBtns) {
++                                this.showCellEditorBtns(elContainer);
++                            }
++            
++                            oCellEditor.isActive = true;
++            
++                            //TODO: verify which args to pass
++                            this.fireEvent("editorShowEvent", {editor:oCellEditor});
++                            return;
++                        }
++                    }
++
++
++
++            
++            }
++        }
++    }
++},
++
++/**
++ * Backward compatibility.
++ *
++ * @method _initCellEditorEl
++ * @private
++ * @deprecated 
++ */
++_initCellEditorEl : function() {
++    // Attach Cell Editor container element as first child of body
++    var elCellEditor = document.createElement("div");
++    elCellEditor.id = this._sId + "-celleditor";
++    elCellEditor.style.display = "none";
++    elCellEditor.tabIndex = 0;
++    Dom.addClass(elCellEditor, DT.CLASS_EDITOR);
++    var elFirstChild = Dom.getFirstChild(document.body);
++    if(elFirstChild) {
++        elCellEditor = Dom.insertBefore(elCellEditor, elFirstChild);
++    }
++    else {
++        elCellEditor = document.body.appendChild(elCellEditor);
++    }
++    
++    // Internal tracker of Cell Editor values
++    var oCellEditor = {};
++    oCellEditor.container = elCellEditor;
++    oCellEditor.value = null;
++    oCellEditor.isActive = false;
++    this._oCellEditor = oCellEditor;
++},
++
++/**
++ * Overridable abstract method to customize CellEditor before showing.
++ *
++ * @method doBeforeShowCellEditor
++ * @param oCellEditor {YAHOO.widget.CellEditor} The CellEditor instance.
++ * @return {Boolean} Return true to continue showing CellEditor.
++ */
++doBeforeShowCellEditor : function(oCellEditor) {
++    return true;
++},
++
++/**
++ * Saves active CellEditor input to Record and upates DOM UI.
++ *
++ * @method saveCellEditor
++ */
++saveCellEditor : function() {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.save) {
++            this._oCellEditor.save();
++        }
++        // Backward compatibility
++        else if(this._oCellEditor.isActive) {
++            var newData = this._oCellEditor.value;
++            // Copy the data to pass to the event
++            //var oldData = YAHOO.widget.DataTable._cloneObject(this._oCellEditor.record.getData(this._oCellEditor.column.key));
++            var oldData = this._oCellEditor.record.getData(this._oCellEditor.column.key);
++    
++            // Validate input data
++            if(this._oCellEditor.validator) {
++                newData = this._oCellEditor.value = this._oCellEditor.validator.call(this, newData, oldData, this._oCellEditor);
++                if(newData === null ) {
++                    this.resetCellEditor();
++                    this.fireEvent("editorRevertEvent",
++                            {editor:this._oCellEditor, oldData:oldData, newData:newData});
++                    return;
++                }
++            }
++            // Update the Record
++            this._oRecordSet.updateRecordValue(this._oCellEditor.record, this._oCellEditor.column.key, this._oCellEditor.value);
++            // Update the UI
++            this.formatCell(this._oCellEditor.cell.firstChild);
++            
++            // Bug fix 1764044
++            this._oChainRender.add({
++                method: function() {
++                    this.validateColumnWidths();
++                },
++                scope: this
++            });
++            this._oChainRender.run();
++            // Clear out the Cell Editor
++            this.resetCellEditor();
++    
++            this.fireEvent("editorSaveEvent",
++                    {editor:this._oCellEditor, oldData:oldData, newData:newData});
++        }
++    }   
++},
++
++/**
++ * Cancels active CellEditor.
++ *
++ * @method cancelCellEditor
++ */
++cancelCellEditor : function() {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.cancel) {
++            this._oCellEditor.cancel();
++        }
++        // Backward compatibility
++        else if(this._oCellEditor.isActive) {
++            this.resetCellEditor();
++            //TODO: preserve values for the event?
++            this.fireEvent("editorCancelEvent", {editor:this._oCellEditor});
++        }
++
++    }
++},
++
++/**
++ * Destroys active CellEditor instance and UI.
++ *
++ * @method destroyCellEditor
++ */
++destroyCellEditor : function() {
++    if(this._oCellEditor) {
++        this._oCellEditor.destroy();
++        this._oCellEditor = null;
++    }   
++},
++
++/**
++ * Passes through showEvent of the active CellEditor.
++ *
++ * @method _onEditorShowEvent
++ * @param oArgs {Object}  Custom Event args.
++ * @private 
++ */
++_onEditorShowEvent : function(oArgs) {
++    this.fireEvent("editorShowEvent", oArgs);
++},
++
++/**
++ * Passes through keydownEvent of the active CellEditor.
++ * @param oArgs {Object}  Custom Event args. 
++ *
++ * @method _onEditorKeydownEvent
++ * @private 
++ */
++_onEditorKeydownEvent : function(oArgs) {
++    this.fireEvent("editorKeydownEvent", oArgs);
++},
++
++/**
++ * Passes through revertEvent of the active CellEditor.
++ *
++ * @method _onEditorRevertEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorRevertEvent : function(oArgs) {
++    this.fireEvent("editorRevertEvent", oArgs);
++},
++
++/**
++ * Passes through saveEvent of the active CellEditor.
++ *
++ * @method _onEditorSaveEvent
++ * @param oArgs {Object}  Custom Event args.  
++ * @private 
++ */
++_onEditorSaveEvent : function(oArgs) {
++    this.fireEvent("editorSaveEvent", oArgs);
++},
++
++/**
++ * Passes through cancelEvent of the active CellEditor.
++ *
++ * @method _onEditorCancelEvent
++ * @param oArgs {Object}  Custom Event args.
++ * @private   
++ */
++_onEditorCancelEvent : function(oArgs) {
++    this.fireEvent("editorCancelEvent", oArgs);
++},
++
++/**
++ * Passes through blurEvent of the active CellEditor.
++ *
++ * @method _onEditorBlurEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorBlurEvent : function(oArgs) {
++    this.fireEvent("editorBlurEvent", oArgs);
++},
++
++/**
++ * Passes through blockEvent of the active CellEditor.
++ *
++ * @method _onEditorBlockEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorBlockEvent : function(oArgs) {
++    this.fireEvent("editorBlockEvent", oArgs);
++},
++
++/**
++ * Passes through unblockEvent of the active CellEditor.
++ *
++ * @method _onEditorUnblockEvent
++ * @param oArgs {Object}  Custom Event args. 
++ * @private  
++ */
++_onEditorUnblockEvent : function(oArgs) {
++    this.fireEvent("editorUnblockEvent", oArgs);
++},
++
++/**
++ * Public handler of the editorBlurEvent. By default, saves on blur if
++ * disableBtns is true, otherwise cancels on blur. 
++ *
++ * @method onEditorBlurEvent
++ * @param oArgs {Object}  Custom Event args.  
++ */
++onEditorBlurEvent : function(oArgs) {
++    if(oArgs.editor.disableBtns) {
++        // Save on blur
++        if(oArgs.editor.save) { // Backward incompatible
++            oArgs.editor.save();
++        }
++    }      
++    else if(oArgs.editor.cancel) { // Backward incompatible
++        // Cancel on blur
++        oArgs.editor.cancel();
++    }      
++},
++
++/**
++ * Public handler of the editorBlockEvent. By default, disables DataTable UI.
++ *
++ * @method onEditorBlockEvent
++ * @param oArgs {Object}  Custom Event args.  
++ */
++onEditorBlockEvent : function(oArgs) {
++    this.disable();
++},
++
++/**
++ * Public handler of the editorUnblockEvent. By default, undisables DataTable UI.
++ *
++ * @method onEditorUnblockEvent
++ * @param oArgs {Object}  Custom Event args.  
++ */
++onEditorUnblockEvent : function(oArgs) {
++    this.undisable();
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++// ABSTRACT METHODS
++
++/**
++ * Overridable method gives implementers a hook to access data before
++ * it gets added to RecordSet and rendered to the TBODY.
++ *
++ * @method doBeforeLoadData
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} additional arguments
++ * @return {Boolean} Return true to continue loading data into RecordSet and
++ * updating DataTable with new Records, false to cancel.
++ */
++doBeforeLoadData : function(sRequest, oResponse, oPayload) {
++    return true;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public Custom Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Overridable custom event handler to sort Column.
++ *
++ * @method onEventSortColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSortColumn : function(oArgs) {
++//TODO: support form elements in sortable columns
++    var evt = oArgs.event;
++    var target = oArgs.target;
++
++    var el = this.getThEl(target) || this.getTdEl(target);
++    if(el) {
++        var oColumn = this.getColumn(el);
++        if(oColumn.sortable) {
++            Ev.stopEvent(evt);
++            this.sortColumn(oColumn);
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * Overridable custom event handler to select Column.
++ *
++ * @method onEventSelectColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSelectColumn : function(oArgs) {
++    this.selectColumn(oArgs.target);
++},
++
++/**
++ * Overridable custom event handler to highlight Column. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventHighlightColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventHighlightColumn : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.highlightColumn(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to unhighlight Column. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventUnhighlightColumn
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventUnhighlightColumn : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.unhighlightColumn(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to manage selection according to desktop paradigm.
++ *
++ * @method onEventSelectRow
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSelectRow : function(oArgs) {
++    var sMode = this.get("selectionMode");
++    if(sMode == "single") {
++        this._handleSingleSelectionByMouse(oArgs);
++    }
++    else {
++        this._handleStandardSelectionByMouse(oArgs);
++    }
++},
++
++/**
++ * Overridable custom event handler to select cell.
++ *
++ * @method onEventSelectCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventSelectCell : function(oArgs) {
++    var sMode = this.get("selectionMode");
++    if(sMode == "cellblock") {
++        this._handleCellBlockSelectionByMouse(oArgs);
++    }
++    else if(sMode == "cellrange") {
++        this._handleCellRangeSelectionByMouse(oArgs);
++    }
++    else {
++        this._handleSingleCellSelectionByMouse(oArgs);
++    }
++},
++
++/**
++ * Overridable custom event handler to highlight row. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventHighlightRow
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventHighlightRow : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.highlightRow(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to unhighlight row. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventUnhighlightRow
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventUnhighlightRow : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.unhighlightRow(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to highlight cell. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventHighlightCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventHighlightCell : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.highlightCell(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to unhighlight cell. Accounts for spurious
++ * caused-by-child events. 
++ *
++ * @method onEventUnhighlightCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventUnhighlightCell : function(oArgs) {
++    //TODO: filter for all spurious events at a lower level
++    if(!Dom.isAncestor(oArgs.target,Ev.getRelatedTarget(oArgs.event))) {
++        this.unhighlightCell(oArgs.target);
++    }
++},
++
++/**
++ * Overridable custom event handler to format cell.
++ *
++ * @method onEventFormatCell
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventFormatCell : function(oArgs) {
++    var target = oArgs.target;
++
++    var elCell = this.getTdEl(target);
++    if(elCell) {
++        var oColumn = this.getColumn(elCell.cellIndex);
++        this.formatCell(elCell.firstChild, this.getRecord(elCell), oColumn);
++    }
++    else {
++    }
++},
++
++/**
++ * Overridable custom event handler to edit cell.
++ *
++ * @method onEventShowCellEditor
++ * @param oArgs.event {HTMLEvent} Event object.
++ * @param oArgs.target {HTMLElement} Target element.
++ */
++onEventShowCellEditor : function(oArgs) {
++    this.showCellEditor(oArgs.target);
++},
++
++/**
++ * Overridable custom event handler to save active CellEditor input.
++ *
++ * @method onEventSaveCellEditor
++ */
++onEventSaveCellEditor : function(oArgs) {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.save) {
++            this._oCellEditor.save();
++        }
++        // Backward compatibility
++        else {
++            this.saveCellEditor();
++        }
++    }
++},
++
++/**
++ * Overridable custom event handler to cancel active CellEditor.
++ *
++ * @method onEventCancelCellEditor
++ */
++onEventCancelCellEditor : function(oArgs) {
++    if(this._oCellEditor) {
++        if(this._oCellEditor.cancel) {
++            this._oCellEditor.cancel();
++        }
++        // Backward compatibility
++        else {
++            this.cancelCellEditor();
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and populates an entire
++ * DataTable with Records and TR elements, clearing previous Records, if any.
++ *
++ * @method onDataReturnInitializeTable
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnInitializeTable : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.initializeTable();
++    
++        this.onDataReturnSetRows(sRequest,oResponse,oPayload);
++    }
++},
++
++/**
++ * Callback function receives reponse from DataSource, replaces all existing
++ * Records in  RecordSet, updates TR elements with new data, and updates state
++ * UI for pagination and sorting from payload data, if necessary. 
++ *  
++ * @method onDataReturnReplaceRows
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnReplaceRows : function(oRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
++            pag   = this.get('paginator'),
++            index = 0;
++    
++        // Data ok to set
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Update Records
++            this._oRecordSet.reset();
++    
++            if (this.get('dynamicData')) {
++                if (oPayload && oPayload.pagination &&
++                    lang.isNumber(oPayload.pagination.recordOffset)) {
++                    index = oPayload.pagination.recordOffset;
++                } else if (pag) {
++                    index = pag.getStartIndex();
++                }
++            }
++    
++            this._oRecordSet.setRecords(oResponse.results, index | 0);
++            
++            // Update state
++            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
++            
++            // Update UI
++            this.render();    
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and appends to an existing
++ * DataTable new Records and, if applicable, creates or updates
++ * corresponding TR elements.
++ *
++ * @method onDataReturnAppendRows
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnAppendRows : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
++    
++        // Data ok to append
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {        
++            // Append rows
++            this.addRows(oResponse.results);
++    
++            // Update state
++            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and inserts new records
++ * starting at the index specified in oPayload.insertIndex. The value for
++ * oPayload.insertIndex can be populated when sending the request to the DataSource,
++ * or by accessing oPayload.insertIndex with the doBeforeLoadData() method at runtime.
++ * If applicable, creates or updates corresponding TR elements.
++ *
++ * @method onDataReturnInsertRows
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} Argument payload, looks in oPayload.insertIndex.
++ */
++onDataReturnInsertRows : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
++    
++        // Data ok to append
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Insert rows
++            this.addRows(oResponse.results, (oPayload ? oPayload.insertIndex : 0));
++    
++            // Update state
++            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives data from DataSource and incrementally updates Records
++ * starting at the index specified in oPayload.updateIndex. The value for
++ * oPayload.updateIndex can be populated when sending the request to the DataSource,
++ * or by accessing oPayload.updateIndex with the doBeforeLoadData() method at runtime.
++ * If applicable, creates or updates corresponding TR elements.
++ *
++ * @method onDataReturnUpdateRows
++ * @param sRequest {String} Original request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} Argument payload, looks in oPayload.updateIndex.
++ */
++onDataReturnUpdateRows : function(sRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
++    
++        // Data ok to append
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Insert rows
++            this.updateRows((oPayload ? oPayload.updateIndex : 0), oResponse.results);
++    
++            // Update state
++            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++},
++
++/**
++ * Callback function receives reponse from DataSource and populates the
++ * RecordSet with the results.
++ *  
++ * @method onDataReturnSetRows
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} (optional) Additional argument(s)
++ */
++onDataReturnSetRows : function(oRequest, oResponse, oPayload) {
++    if((this instanceof DT) && this._sId) {
++        this.fireEvent("dataReturnEvent", {request:oRequest,response:oResponse,payload:oPayload});
++    
++        // Pass data through abstract method for any transformations
++        var ok    = this.doBeforeLoadData(oRequest, oResponse, oPayload),
++            pag   = this.get('paginator'),
++            index = 0;
++    
++        // Data ok to set
++        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {
++            // Update Records
++            if (this.get('dynamicData')) {
++                if (oPayload && oPayload.pagination &&
++                    lang.isNumber(oPayload.pagination.recordOffset)) {
++                    index = oPayload.pagination.recordOffset;
++                } else if (pag) {
++                    index = pag.getStartIndex();
++                }
++                
++                this._oRecordSet.reset(); // Bug 2290604: dyanmic data shouldn't keep accumulating by default
++            }
++    
++            this._oRecordSet.setRecords(oResponse.results, index | 0);
++    
++            // Update state
++            this._handleDataReturnPayload(oRequest, oResponse, oPayload);
++            
++            // Update UI
++            this.render();
++        }
++        // Error
++        else if(ok && oResponse.error) {
++            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * Hook to update oPayload before consumption.
++ *  
++ * @method handleDataReturnPayload
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} State values.
++ * @return oPayload {MIXED} State values.
++ */
++handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
++    return oPayload;
++},
++
++/**
++ * Updates the DataTable with state data sent in an onDataReturn* payload.
++ *  
++ * @method handleDataReturnPayload
++ * @param oRequest {MIXED} Original generated request.
++ * @param oResponse {Object} Response object.
++ * @param oPayload {MIXED} State values
++ */
++_handleDataReturnPayload : function (oRequest, oResponse, oPayload) {
++    oPayload = this.handleDataReturnPayload(oRequest, oResponse, oPayload);
++    if(oPayload) {
++        // Update pagination
++        var oPaginator = this.get('paginator');
++        if (oPaginator) {
++            // Update totalRecords
++            if(this.get("dynamicData")) {
++                if (widget.Paginator.isNumeric(oPayload.totalRecords)) {
++                    oPaginator.set('totalRecords',oPayload.totalRecords);
++                }
++            }
++            else {
++                oPaginator.set('totalRecords',this._oRecordSet.getLength());
++            }
++            // Update other paginator values
++            if (lang.isObject(oPayload.pagination)) {
++                oPaginator.set('rowsPerPage',oPayload.pagination.rowsPerPage);
++                oPaginator.set('recordOffset',oPayload.pagination.recordOffset);
++            }
++        }
++
++        // Update sorting
++        if (oPayload.sortedBy) {
++            // Set the sorting values in preparation for refresh
++            this.set('sortedBy', oPayload.sortedBy);
++        }
++        // Backwards compatibility for sorting
++        else if (oPayload.sorting) {
++            // Set the sorting values in preparation for refresh
++            this.set('sortedBy', oPayload.sorting);
++        }
++    }
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Custom Events
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Fired when the DataTable's rows are rendered from an initialized state.
++     *
++     * @event initEvent
++     */
++
++    /**
++     * Fired before the DataTable's DOM is rendered or modified.
++     *
++     * @event beforeRenderEvent
++     */
++
++    /**
++     * Fired when the DataTable's DOM is rendered or modified.
++     *
++     * @event renderEvent
++     */
++
++    /**
++     * Fired when the DataTable's post-render routine is complete, including
++     * Column width validations.
++     *
++     * @event postRenderEvent
++     */
++
++    /**
++     * Fired when the DataTable is disabled.
++     *
++     * @event disableEvent
++     */
++
++    /**
++     * Fired when the DataTable is undisabled.
++     *
++     * @event undisableEvent
++     */
++
++    /**
++     * Fired when data is returned from DataSource but before it is consumed by
++     * DataTable.
++     *
++     * @event dataReturnEvent
++     * @param oArgs.request {String} Original request.
++     * @param oArgs.response {Object} Response object.
++     */
++
++    /**
++     * Fired when the DataTable has a focus event.
++     *
++     * @event tableFocusEvent
++     */
++
++    /**
++     * Fired when the DataTable THEAD element has a focus event.
++     *
++     * @event theadFocusEvent
++     */
++
++    /**
++     * Fired when the DataTable TBODY element has a focus event.
++     *
++     * @event tbodyFocusEvent
++     */
++
++    /**
++     * Fired when the DataTable has a blur event.
++     *
++     * @event tableBlurEvent
++     */
++
++    /*TODO implement theadBlurEvent
++     * Fired when the DataTable THEAD element has a blur event.
++     *
++     * @event theadBlurEvent
++     */
++
++    /*TODO: implement tbodyBlurEvent
++     * Fired when the DataTable TBODY element has a blur event.
++     *
++     * @event tbodyBlurEvent
++     */
++
++    /**
++     * Fired when the DataTable has a key event.
++     *
++     * @event tableKeyEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     */
++
++    /**
++     * Fired when the DataTable THEAD element has a key event.
++     *
++     * @event theadKeyEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     */
++
++    /**
++     * Fired when the DataTable TBODY element has a key event.
++     *
++     * @event tbodyKeyEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     */
++
++    /**
++     * Fired when the DataTable has a mouseover.
++     *
++     * @event tableMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a mouseout.
++     *
++     * @event tableMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a mousedown.
++     *
++     * @event tableMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a mouseup.
++     *
++     * @event tableMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a click.
++     *
++     * @event tableClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when the DataTable has a dblclick.
++     *
++     * @event tableDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The DataTable's TABLE element.
++     *
++     */
++
++    /**
++     * Fired when a message is shown in the DataTable's message element.
++     *
++     * @event tableMsgShowEvent
++     * @param oArgs.html {String} The HTML displayed.
++     * @param oArgs.className {String} The className assigned.
++     *
++     */
++
++    /**
++     * Fired when the DataTable's message element is hidden.
++     *
++     * @event tableMsgHideEvent
++     */
++
++    /**
++     * Fired when a THEAD row has a mouseover.
++     *
++     * @event theadRowMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a mouseout.
++     *
++     * @event theadRowMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a mousedown.
++     *
++     * @event theadRowMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a mouseup.
++     *
++     * @event theadRowMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a click.
++     *
++     * @event theadRowClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD row has a dblclick.
++     *
++     * @event theadRowDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a mouseover.
++     *
++     * @event theadCellMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD cell has a mouseout.
++     *
++     * @event theadCellMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD cell has a mousedown.
++     *
++     * @event theadCellMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a mouseup.
++     *
++     * @event theadCellMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a click.
++     *
++     * @event theadCellClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD cell has a dblclick.
++     *
++     * @event theadCellDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TH element.
++     */
++
++    /**
++     * Fired when a THEAD label has a mouseover.
++     *
++     * @event theadLabelMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD label has a mouseout.
++     *
++     * @event theadLabelMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     *
++     */
++
++    /**
++     * Fired when a THEAD label has a mousedown.
++     *
++     * @event theadLabelMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a THEAD label has a mouseup.
++     *
++     * @event theadLabelMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a THEAD label has a click.
++     *
++     * @event theadLabelClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a THEAD label has a dblclick.
++     *
++     * @event theadLabelDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SPAN element.
++     */
++
++    /**
++     * Fired when a column is sorted.
++     *
++     * @event columnSortEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.dir {String} Sort direction: YAHOO.widget.DataTable.CLASS_ASC
++     * or YAHOO.widget.DataTable.CLASS_DESC.
++     */
++
++    /**
++     * Fired when a column width is set.
++     *
++     * @event columnSetWidthEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.width {Number} The width in pixels.
++     */
++
++    /**
++     * Fired when a column width is unset.
++     *
++     * @event columnUnsetWidthEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is drag-resized.
++     *
++     * @event columnResizeEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.target {HTMLElement} The TH element.
++     * @param oArgs.width {Number} Width in pixels.     
++     */
++
++    /**
++     * Fired when a Column is moved to a new index.
++     *
++     * @event columnReorderEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.oldIndex {Number} The previous index position.
++     */
++
++    /**
++     * Fired when a column is hidden.
++     *
++     * @event columnHideEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is shown.
++     *
++     * @event columnShowEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is selected.
++     *
++     * @event columnSelectEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is unselected.
++     *
++     * @event columnUnselectEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++    /**
++     * Fired when a column is removed.
++     *
++     * @event columnRemoveEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     */
++
++    /**
++     * Fired when a column is inserted.
++     *
++     * @event columnInsertEvent
++     * @param oArgs.column {YAHOO.widget.Column} The Column instance.
++     * @param oArgs.index {Number} The index position.
++     */
++
++    /**
++     * Fired when a column is highlighted.
++     *
++     * @event columnHighlightEvent
++     * @param oArgs.column {YAHOO.widget.Column} The highlighted Column.
++     */
++
++    /**
++     * Fired when a column is unhighlighted.
++     *
++     * @event columnUnhighlightEvent
++     * @param oArgs.column {YAHOO.widget.Column} The unhighlighted Column.
++     */
++
++
++    /**
++     * Fired when a row has a mouseover.
++     *
++     * @event rowMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a mouseout.
++     *
++     * @event rowMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a mousedown.
++     *
++     * @event rowMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a mouseup.
++     *
++     * @event rowMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a click.
++     *
++     * @event rowClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row has a dblclick.
++     *
++     * @event rowDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TR element.
++     */
++
++    /**
++     * Fired when a row is added.
++     *
++     * @event rowAddEvent
++     * @param oArgs.record {YAHOO.widget.Record} The added Record.
++     */
++     
++    /**
++     * Fired when rows are added.
++     *
++     * @event rowsAddEvent
++     * @param oArgs.record {YAHOO.widget.Record[]} The added Records.
++     */
++
++    /**
++     * Fired when a row is updated.
++     *
++     * @event rowUpdateEvent
++     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
++     * @param oArgs.oldData {Object} Object literal of the old data.
++     */
++
++    /**
++     * Fired when a row is deleted.
++     *
++     * @event rowDeleteEvent
++     * @param oArgs.oldData {Object} Object literal of the deleted data.
++     * @param oArgs.recordIndex {Number} Index of the deleted Record.
++     * @param oArgs.trElIndex {Number} Index of the deleted TR element, if on current page.
++     */
++     
++    /**
++     * Fired when rows are deleted.
++     *
++     * @event rowsDeleteEvent
++     * @param oArgs.oldData {Object[]} Array of object literals of the deleted data.
++     * @param oArgs.recordIndex {Number} Index of the first deleted Record.
++     * @param oArgs.count {Number} Number of deleted Records.
++     */
++
++    /**
++     * Fired when a row is selected.
++     *
++     * @event rowSelectEvent
++     * @param oArgs.el {HTMLElement} The selected TR element, if applicable.
++     * @param oArgs.record {YAHOO.widget.Record} The selected Record.
++     */
++
++    /**
++     * Fired when a row is unselected.
++     *
++     * @event rowUnselectEvent
++     * @param oArgs.el {HTMLElement} The unselected TR element, if applicable.
++     * @param oArgs.record {YAHOO.widget.Record} The unselected Record.
++     */
++
++    /**
++     * Fired when all row selections are cleared.
++     *
++     * @event unselectAllRowsEvent
++     */
++
++    /**
++     * Fired when a row is highlighted.
++     *
++     * @event rowHighlightEvent
++     * @param oArgs.el {HTMLElement} The highlighted TR element.
++     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
++     */
++
++    /**
++     * Fired when a row is unhighlighted.
++     *
++     * @event rowUnhighlightEvent
++     * @param oArgs.el {HTMLElement} The highlighted TR element.
++     * @param oArgs.record {YAHOO.widget.Record} The highlighted Record.
++     */
++
++    /**
++     * Fired when a cell is updated.
++     *
++     * @event cellUpdateEvent
++     * @param oArgs.record {YAHOO.widget.Record} The updated Record.
++     * @param oArgs.column {YAHOO.widget.Column} The updated Column.
++     * @param oArgs.oldData {Object} Original data value of the updated cell.
++     */
++
++    /**
++     * Fired when a cell has a mouseover.
++     *
++     * @event cellMouseoverEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a mouseout.
++     *
++     * @event cellMouseoutEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a mousedown.
++     *
++     * @event cellMousedownEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a mouseup.
++     *
++     * @event cellMouseupEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a click.
++     *
++     * @event cellClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell has a dblclick.
++     *
++     * @event cellDblclickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The TD element.
++     */
++
++    /**
++     * Fired when a cell is formatted.
++     *
++     * @event cellFormatEvent
++     * @param oArgs.el {HTMLElement} The formatted TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the formatted cell.
++     */
++
++    /**
++     * Fired when a cell is selected.
++     *
++     * @event cellSelectEvent
++     * @param oArgs.el {HTMLElement} The selected TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the selected cell.
++     */
++
++    /**
++     * Fired when a cell is unselected.
++     *
++     * @event cellUnselectEvent
++     * @param oArgs.el {HTMLElement} The unselected TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the unselected cell.
++
++     */
++
++    /**
++     * Fired when a cell is highlighted.
++     *
++     * @event cellHighlightEvent
++     * @param oArgs.el {HTMLElement} The highlighted TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the highlighted cell.
++
++     */
++
++    /**
++     * Fired when a cell is unhighlighted.
++     *
++     * @event cellUnhighlightEvent
++     * @param oArgs.el {HTMLElement} The unhighlighted TD element.
++     * @param oArgs.record {YAHOO.widget.Record} The associated Record instance.
++     * @param oArgs.column {YAHOO.widget.Column} The associated Column instance.
++     * @param oArgs.key {String} (deprecated) The key of the unhighlighted cell.
++
++     */
++
++    /**
++     * Fired when all cell selections are cleared.
++     *
++     * @event unselectAllCellsEvent
++     */
++
++    /**
++     * Fired when a CellEditor is shown.
++     *
++     * @event editorShowEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor has a keydown.
++     *
++     * @event editorKeydownEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     * @param oArgs.event {HTMLEvent} The event object.
++     */
++
++    /**
++     * Fired when a CellEditor input is reverted.
++     *
++     * @event editorRevertEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     * @param oArgs.newData {Object} New data value from form input field.
++     * @param oArgs.oldData {Object} Old data value.
++     */
++
++    /**
++     * Fired when a CellEditor input is saved.
++     *
++     * @event editorSaveEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     * @param oArgs.newData {Object} New data value from form input field.
++     * @param oArgs.oldData {Object} Old data value.
++     */
++
++    /**
++     * Fired when a CellEditor input is canceled.
++     *
++     * @event editorCancelEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor has a blur event.
++     *
++     * @event editorBlurEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor is blocked.
++     *
++     * @event editorBlockEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++    /**
++     * Fired when a CellEditor is unblocked.
++     *
++     * @event editorUnblockEvent
++     * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++     */
++
++
++
++
++
++    /**
++     * Fired when a link is clicked.
++     *
++     * @event linkClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The A element.
++     */
++
++    /**
++     * Fired when a BUTTON element or INPUT element of type "button", "image",
++     * "submit", "reset" is clicked.
++     *
++     * @event buttonClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The BUTTON element.
++     */
++
++    /**
++     * Fired when a CHECKBOX element is clicked.
++     *
++     * @event checkboxClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The CHECKBOX element.
++     */
++
++    /**
++     * Fired when a SELECT element is changed.
++     *
++     * @event dropdownChangeEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The SELECT element.
++     */
++
++    /**
++     * Fired when a RADIO element is clicked.
++     *
++     * @event radioClickEvent
++     * @param oArgs.event {HTMLEvent} The event object.
++     * @param oArgs.target {HTMLElement} The RADIO element.
++     */
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated APIs
++//
++/////////////////////////////////////////////////////////////////////////////
++  
++/*
++ * @method showCellEditorBtns
++ * @deprecated Use CellEditor.renderBtns() 
++ */
++showCellEditorBtns : function(elContainer) {
++    // Buttons
++    var elBtnsDiv = elContainer.appendChild(document.createElement("div"));
++    Dom.addClass(elBtnsDiv, DT.CLASS_BUTTON);
++
++    // Save button
++    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    Dom.addClass(elSaveBtn, DT.CLASS_DEFAULT);
++    elSaveBtn.innerHTML = "OK";
++    Ev.addListener(elSaveBtn, "click", function(oArgs, oSelf) {
++        oSelf.onEventSaveCellEditor(oArgs, oSelf);
++        oSelf.focusTbodyEl();
++    }, this, true);
++
++    // Cancel button
++    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    elCancelBtn.innerHTML = "Cancel";
++    Ev.addListener(elCancelBtn, "click", function(oArgs, oSelf) {
++        oSelf.onEventCancelCellEditor(oArgs, oSelf);
++        oSelf.focusTbodyEl();
++    }, this, true);
++
++},
++
++/**
++ * @method resetCellEditor
++ * @deprecated Use destroyCellEditor 
++ */
++resetCellEditor : function() {
++    var elContainer = this._oCellEditor.container;
++    elContainer.style.display = "none";
++    Ev.purgeElement(elContainer, true);
++    elContainer.innerHTML = "";
++    this._oCellEditor.value = null;
++    this._oCellEditor.isActive = false;
++
++},
++
++/**
++ * @event editorUpdateEvent
++ * @deprecated Use CellEditor class.
++ */
++
++/**
++ * @method getBody
++ * @deprecated Use getTbodyEl().
++ */
++getBody : function() {
++    // Backward compatibility
++    return this.getTbodyEl();
++},
++
++/**
++ * @method getCell
++ * @deprecated Use getTdEl().
++ */
++getCell : function(index) {
++    // Backward compatibility
++    return this.getTdEl(index);
++},
++
++/**
++ * @method getRow
++ * @deprecated Use getTrEl().
++ */
++getRow : function(index) {
++    // Backward compatibility
++    return this.getTrEl(index);
++},
++
++/**
++ * @method refreshView
++ * @deprecated Use render.
++ */
++refreshView : function() {
++    // Backward compatibility
++    this.render();
++},
++
++/**
++ * @method select
++ * @deprecated Use selectRow.
++ */
++select : function(els) {
++    // Backward compatibility
++    if(!lang.isArray(els)) {
++        els = [els];
++    }
++    for(var i=0; i<els.length; i++) {
++        this.selectRow(els[i]);
++    }
++},
++
++/**
++ * @method onEventEditCell
++ * @deprecated Use onEventShowCellEditor.
++ */
++onEventEditCell : function(oArgs) {
++    // Backward compatibility
++    this.onEventShowCellEditor(oArgs);
++},
++
++/**
++ * @method _syncColWidths
++ * @deprecated Use validateColumnWidths.
++ */
++_syncColWidths : function() {
++    // Backward compatibility
++    this.validateColumnWidths();
++}
++
++/**
++ * @event headerRowMouseoverEvent
++ * @deprecated Use theadRowMouseoverEvent.
++ */
++
++/**
++ * @event headerRowMouseoutEvent
++ * @deprecated Use theadRowMouseoutEvent.
++ */
++
++/**
++ * @event headerRowMousedownEvent
++ * @deprecated Use theadRowMousedownEvent.
++ */
++
++/**
++ * @event headerRowClickEvent
++ * @deprecated Use theadRowClickEvent.
++ */
++
++/**
++ * @event headerRowDblclickEvent
++ * @deprecated Use theadRowDblclickEvent.
++ */
++
++/**
++ * @event headerCellMouseoverEvent
++ * @deprecated Use theadCellMouseoverEvent.
++ */
++
++/**
++ * @event headerCellMouseoutEvent
++ * @deprecated Use theadCellMouseoutEvent.
++ */
++
++/**
++ * @event headerCellMousedownEvent
++ * @deprecated Use theadCellMousedownEvent.
++ */
++
++/**
++ * @event headerCellClickEvent
++ * @deprecated Use theadCellClickEvent.
++ */
++
++/**
++ * @event headerCellDblclickEvent
++ * @deprecated Use theadCellDblclickEvent.
++ */
++
++/**
++ * @event headerLabelMouseoverEvent
++ * @deprecated Use theadLabelMouseoverEvent.
++ */
++
++/**
++ * @event headerLabelMouseoutEvent
++ * @deprecated Use theadLabelMouseoutEvent.
++ */
++
++/**
++ * @event headerLabelMousedownEvent
++ * @deprecated Use theadLabelMousedownEvent.
++ */
++
++/**
++ * @event headerLabelClickEvent
++ * @deprecated Use theadLabelClickEvent.
++ */
++
++/**
++ * @event headerLabelDbllickEvent
++ * @deprecated Use theadLabelDblclickEvent.
++ */
++
++});
++
++/**
++ * Alias for onDataReturnSetRows for backward compatibility
++ * @method onDataReturnSetRecords
++ * @deprecated Use onDataReturnSetRows
++ */
++DT.prototype.onDataReturnSetRecords = DT.prototype.onDataReturnSetRows;
++
++/**
++ * Alias for onPaginatorChange for backward compatibility
++ * @method onPaginatorChange
++ * @deprecated Use onPaginatorChangeRequest
++ */
++DT.prototype.onPaginatorChange = DT.prototype.onPaginatorChangeRequest;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Deprecated static APIs
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * @method DataTable.formatTheadCell
++ * @deprecated  Use formatTheadCell.
++ */
++DT.formatTheadCell = function() {};
++
++/**
++ * @method DataTable.editCheckbox
++ * @deprecated  Use YAHOO.widget.CheckboxCellEditor.
++ */
++DT.editCheckbox = function() {};
++
++/**
++ * @method DataTable.editDate
++ * @deprecated Use YAHOO.widget.DateCellEditor.
++ */
++DT.editDate = function() {};
++
++/**
++ * @method DataTable.editDropdown
++ * @deprecated Use YAHOO.widget.DropdownCellEditor.
++ */
++DT.editDropdown = function() {};
++
++/**
++ * @method DataTable.editRadio
++ * @deprecated Use YAHOO.widget.RadioCellEditor.
++ */
++DT.editRadio = function() {};
++
++/**
++ * @method DataTable.editTextarea
++ * @deprecated Use YAHOO.widget.TextareaCellEditor
++ */
++DT.editTextarea = function() {};
++
++/**
++ * @method DataTable.editTextbox
++ * @deprecated Use YAHOO.widget.TextboxCellEditor
++ */
++DT.editTextbox= function() {};
++
++})();
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    ua     = YAHOO.env.ua,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    DS     = util.DataSourceBase,
++    DT     = widget.DataTable,
++    Pag    = widget.Paginator;
++    
++/**
++ * The ScrollingDataTable class extends the DataTable class to provide
++ * functionality for x-scrolling, y-scrolling, and xy-scrolling.
++ *
++ * @namespace YAHOO.widget
++ * @class ScrollingDataTable
++ * @extends YAHOO.widget.DataTable
++ * @constructor
++ * @param elContainer {HTMLElement} Container element for the TABLE.
++ * @param aColumnDefs {Object[]} Array of object literal Column definitions.
++ * @param oDataSource {YAHOO.util.DataSource} DataSource instance.
++ * @param oConfigs {object} (optional) Object literal of configuration values.
++ */
++widget.ScrollingDataTable = function(elContainer,aColumnDefs,oDataSource,oConfigs) {
++    oConfigs = oConfigs || {};
++    
++    // Prevent infinite loop
++    if(oConfigs.scrollable) {
++        oConfigs.scrollable = false;
++    }
++
++    widget.ScrollingDataTable.superclass.constructor.call(this, elContainer,aColumnDefs,oDataSource,oConfigs); 
++
++    // Once per instance
++    this.subscribe("columnShowEvent", this._onColumnChange);
++};
++
++var SDT = widget.ScrollingDataTable;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public constants
++//
++/////////////////////////////////////////////////////////////////////////////
++lang.augmentObject(SDT, {
++
++    /**
++     * Class name assigned to inner DataTable header container.
++     *
++     * @property DataTable.CLASS_HEADER
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-hd"
++     */
++    CLASS_HEADER : "yui-dt-hd",
++    
++    /**
++     * Class name assigned to inner DataTable body container.
++     *
++     * @property DataTable.CLASS_BODY
++     * @type String
++     * @static
++     * @final
++     * @default "yui-dt-bd"
++     */
++    CLASS_BODY : "yui-dt-bd"
++});
++
++lang.extend(SDT, DT, {
++
++/**
++ * Container for fixed header TABLE element.
++ *
++ * @property _elHdContainer
++ * @type HTMLElement
++ * @private
++ */
++_elHdContainer : null,
++
++/**
++ * Fixed header TABLE element.
++ *
++ * @property _elHdTable
++ * @type HTMLElement
++ * @private
++ */
++_elHdTable : null,
++
++/**
++ * Container for scrolling body TABLE element.
++ *
++ * @property _elBdContainer
++ * @type HTMLElement
++ * @private
++ */
++_elBdContainer : null,
++
++/**
++ * Body THEAD element.
++ *
++ * @property _elBdThead
++ * @type HTMLElement
++ * @private
++ */
++_elBdThead : null,
++
++/**
++ * Offscreen container to temporarily clone SDT for auto-width calculation.
++ *
++ * @property _elTmpContainer
++ * @type HTMLElement
++ * @private
++ */
++_elTmpContainer : null,
++
++/**
++ * Offscreen TABLE element for auto-width calculation.
++ *
++ * @property _elTmpTable
++ * @type HTMLElement
++ * @private
++ */
++_elTmpTable : null,
++
++/**
++ * True if x-scrollbar is currently visible.
++ * @property _bScrollbarX
++ * @type Boolean
++ * @private 
++ */
++_bScrollbarX : null,
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Superclass methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Implementation of Element's abstract method. Sets up config values.
++ *
++ * @method initAttributes
++ * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
++ * @private
++ */
++
++initAttributes : function(oConfigs) {
++    oConfigs = oConfigs || {};
++    SDT.superclass.initAttributes.call(this, oConfigs);
++
++    /**
++    * @attribute width
++    * @description Table width for scrollable tables (e.g., "40em").
++    * @type String
++    */
++    this.setAttributeConfig("width", {
++        value: null,
++        validator: lang.isString,
++        method: function(oParam) {
++            if(this._elHdContainer && this._elBdContainer) {
++                this._elHdContainer.style.width = oParam;
++                this._elBdContainer.style.width = oParam;            
++                this._syncScrollX();      
++                this._syncScrollOverhang();
++            }
++        }
++    });
++
++    /**
++    * @attribute height
++    * @description Table body height for scrollable tables, not including headers (e.g., "40em").
++    * @type String
++    */
++    this.setAttributeConfig("height", {
++        value: null,
++        validator: lang.isString,
++        method: function(oParam) {
++            if(this._elHdContainer && this._elBdContainer) {
++                this._elBdContainer.style.height = oParam;    
++                this._syncScrollX();   
++                this._syncScrollY();
++                this._syncScrollOverhang();
++            }
++        }
++    });
++
++    /**
++    * @attribute COLOR_COLUMNFILLER
++    * @description CSS color value assigned to header filler on scrollable tables.  
++    * @type String
++    * @default "#F2F2F2"
++    */
++    this.setAttributeConfig("COLOR_COLUMNFILLER", {
++        value: "#F2F2F2",
++        validator: lang.isString,
++        method: function(oParam) {
++            this._elHdContainer.style.backgroundColor = oParam;
++        }
++    });
++},
++
++/**
++ * Initializes DOM elements for a ScrollingDataTable, including creation of
++ * two separate TABLE elements.
++ *
++ * @method _initDomElements
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID. 
++ * return {Boolean} False in case of error, otherwise true 
++ * @private
++ */
++_initDomElements : function(elContainer) {
++    // Outer and inner containers
++    this._initContainerEl(elContainer);
++    if(this._elContainer && this._elHdContainer && this._elBdContainer) {
++        // TABLEs
++        this._initTableEl();
++        
++        if(this._elHdTable && this._elTable) {
++            // COLGROUPs
++            ///this._initColgroupEl(this._elHdTable, this._elTable);  
++            this._initColgroupEl(this._elHdTable);        
++            
++            // THEADs
++            this._initTheadEl(this._elHdTable, this._elTable);
++            
++            // Primary TBODY
++            this._initTbodyEl(this._elTable);
++            // Message TBODY
++            this._initMsgTbodyEl(this._elTable);            
++        }
++    }
++    if(!this._elContainer || !this._elTable || !this._elColgroup ||  !this._elThead || !this._elTbody || !this._elMsgTbody ||
++            !this._elHdTable || !this._elBdThead) {
++        return false;
++    }
++    else {
++        return true;
++    }
++},
++
++/**
++ * Destroy's the DataTable outer and inner container elements, if available.
++ *
++ * @method _destroyContainerEl
++ * @param elContainer {HTMLElement} Reference to the container element. 
++ * @private
++ */
++_destroyContainerEl : function(elContainer) {
++    Dom.removeClass(elContainer, DT.CLASS_SCROLLABLE);
++    SDT.superclass._destroyContainerEl.call(this, elContainer);
++    this._elHdContainer = null;
++    this._elBdContainer = null;
++},
++
++/**
++ * Initializes the DataTable outer container element and creates inner header
++ * and body container elements.
++ *
++ * @method _initContainerEl
++ * @param elContainer {HTMLElement | String} HTML DIV element by reference or ID.
++ * @private
++ */
++_initContainerEl : function(elContainer) {
++    SDT.superclass._initContainerEl.call(this, elContainer);
++    
++    if(this._elContainer) {
++        elContainer = this._elContainer; // was constructor input, now is DOM ref
++        Dom.addClass(elContainer, DT.CLASS_SCROLLABLE);
++        
++        // Container for header TABLE
++        var elHdContainer = document.createElement("div");
++        elHdContainer.style.width = this.get("width") || "";
++        elHdContainer.style.backgroundColor = this.get("COLOR_COLUMNFILLER");
++        Dom.addClass(elHdContainer, SDT.CLASS_HEADER);
++        this._elHdContainer = elHdContainer;
++        elContainer.appendChild(elHdContainer);
++    
++        // Container for body TABLE
++        var elBdContainer = document.createElement("div");
++        elBdContainer.style.width = this.get("width") || "";
++        elBdContainer.style.height = this.get("height") || "";
++        Dom.addClass(elBdContainer, SDT.CLASS_BODY);
++        Ev.addListener(elBdContainer, "scroll", this._onScroll, this); // to sync horiz scroll headers
++        this._elBdContainer = elBdContainer;
++        elContainer.appendChild(elBdContainer);
++    }
++},
++
++/**
++ * Creates HTML markup CAPTION element.
++ *
++ * @method _initCaptionEl
++ * @param sCaption {String} Text for caption.
++ * @private
++ */
++_initCaptionEl : function(sCaption) {
++    // Not yet supported
++    /*if(this._elHdTable && sCaption) {
++        // Create CAPTION element
++        if(!this._elCaption) { 
++            this._elCaption = this._elHdTable.createCaption();
++        }
++        // Set CAPTION value
++        this._elCaption.innerHTML = sCaption;
++    }
++    else if(this._elCaption) {
++        this._elCaption.parentNode.removeChild(this._elCaption);
++    }*/
++},
++
++/**
++ * Destroy's the DataTable head TABLE element, if available.
++ *
++ * @method _destroyHdTableEl
++ * @private
++ */
++_destroyHdTableEl : function() {
++    var elTable = this._elHdTable;
++    if(elTable) {
++        Ev.purgeElement(elTable, true);
++        elTable.parentNode.removeChild(elTable);
++        
++        // A little out of place, but where else can we null out these extra elements?
++        ///this._elBdColgroup = null;
++        this._elBdThead = null;
++    }
++},
++
++/**
++ * Initializes ScrollingDataTable TABLE elements into the two inner containers.
++ *
++ * @method _initTableEl
++ * @private
++ */
++_initTableEl : function() {
++    // Head TABLE
++    if(this._elHdContainer) {
++        this._destroyHdTableEl();
++    
++        // Create TABLE
++        this._elHdTable = this._elHdContainer.appendChild(document.createElement("table"));   
++    } 
++    // Body TABLE
++    SDT.superclass._initTableEl.call(this, this._elBdContainer);
++},
++
++/**
++ * Initializes ScrollingDataTable THEAD elements into the two inner containers.
++ *
++ * @method _initTheadEl
++ * @param elHdTable {HTMLElement} (optional) Fixed header TABLE element reference.
++ * @param elTable {HTMLElement} (optional) TABLE element reference.
++ * @private
++ */
++_initTheadEl : function(elHdTable, elTable) {
++    elHdTable = elHdTable || this._elHdTable;
++    elTable = elTable || this._elTable;
++    
++    // Scrolling body's THEAD
++    this._initBdTheadEl(elTable);
++    // Standard fixed head THEAD
++    SDT.superclass._initTheadEl.call(this, elHdTable);
++},
++
++/**
++ * SDT changes ID so as not to duplicate the accessibility TH IDs.
++ *
++ * @method _initThEl
++ * @param elTh {HTMLElement} TH element reference.
++ * @param oColumn {YAHOO.widget.Column} Column object.
++ * @private
++ */
++_initThEl : function(elTh, oColumn) {
++    SDT.superclass._initThEl.call(this, elTh, oColumn);
++    elTh.id = this.getId() +"-fixedth-" + oColumn.getSanitizedKey(); // Needed for getColumn by TH and ColumnDD
++},
++
++/**
++ * Destroy's the DataTable body THEAD element, if available.
++ *
++ * @method _destroyBdTheadEl
++ * @private
++ */
++_destroyBdTheadEl : function() {
++    var elBdThead = this._elBdThead;
++    if(elBdThead) {
++        var elTable = elBdThead.parentNode;
++        Ev.purgeElement(elBdThead, true);
++        elTable.removeChild(elBdThead);
++        this._elBdThead = null;
++
++        this._destroyColumnHelpers();
++    }
++},
++
++/**
++ * Initializes body THEAD element.
++ *
++ * @method _initBdTheadEl
++ * @param elTable {HTMLElement} TABLE element into which to create THEAD.
++ * @return {HTMLElement} Initialized THEAD element. 
++ * @private
++ */
++_initBdTheadEl : function(elTable) {
++    if(elTable) {
++        // Destroy previous
++        this._destroyBdTheadEl();
++
++        var elThead = elTable.insertBefore(document.createElement("thead"), elTable.firstChild);
++        
++        // Add TRs to the THEAD;
++        var oColumnSet = this._oColumnSet,
++            colTree = oColumnSet.tree,
++            elTh, elTheadTr, oColumn, i, j, k, len;
++
++        for(i=0, k=colTree.length; i<k; i++) {
++            elTheadTr = elThead.appendChild(document.createElement("tr"));
++    
++            // ...and create TH cells
++            for(j=0, len=colTree[i].length; j<len; j++) {
++                oColumn = colTree[i][j];
++                elTh = elTheadTr.appendChild(document.createElement("th"));
++                this._initBdThEl(elTh,oColumn,i,j);
++            }
++        }
++        this._elBdThead = elThead;
++    }
++},
++
++/**
++ * Populates TH element for the body THEAD element.
++ *
++ * @method _initBdThEl
++ * @param elTh {HTMLElement} TH element reference.
++ * @param oColumn {YAHOO.widget.Column} Column object.
++ * @private
++ */
++_initBdThEl : function(elTh, oColumn) {
++    elTh.id = this.getId()+"-th-" + oColumn.getSanitizedKey(); // Needed for accessibility
++    elTh.rowSpan = oColumn.getRowspan();
++    elTh.colSpan = oColumn.getColspan();
++    // Assign abbr attribute
++    if(oColumn.abbr) {
++        elTh.abbr = oColumn.abbr;
++    }
++
++    // TODO: strip links and form elements
++    var sKey = oColumn.getKey();
++    var sLabel = lang.isValue(oColumn.label) ? oColumn.label : sKey;
++    elTh.innerHTML = sLabel;
++},
++
++/**
++ * Initializes ScrollingDataTable TBODY element for data
++ *
++ * @method _initTbodyEl
++ * @param elTable {HTMLElement} TABLE element into which to create TBODY .
++ * @private
++ */
++_initTbodyEl : function(elTable) {
++    SDT.superclass._initTbodyEl.call(this, elTable);
++    
++    // Bug 2105534 - Safari 3 gap
++    // Bug 2492591 - IE8 offsetTop
++    elTable.style.marginTop = (this._elTbody.offsetTop > 0) ?
++            "-"+this._elTbody.offsetTop+"px" : 0;
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/**
++ * Sets focus on the given element.
++ *
++ * @method _focusEl
++ * @param el {HTMLElement} Element.
++ * @private
++ */
++_focusEl : function(el) {
++    el = el || this._elTbody;
++    var oSelf = this;
++    this._storeScrollPositions();
++    // http://developer.mozilla.org/en/docs/index.php?title=Key-navigable_custom_DHTML_widgets
++    // The timeout is necessary in both IE and Firefox 1.5, to prevent scripts from doing
++    // strange unexpected things as the user clicks on buttons and other controls.
++    
++    // Bug 1921135: Wrap the whole thing in a setTimeout
++    setTimeout(function() {
++        setTimeout(function() {
++            try {
++                el.focus();
++                oSelf._restoreScrollPositions();
++            }
++            catch(e) {
++            }
++        },0);
++    }, 0);
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/**
++ * Internal wrapper calls run() on render Chain instance.
++ *
++ * @method _runRenderChain
++ * @private 
++ */
++_runRenderChain : function() {
++    this._storeScrollPositions();
++    this._oChainRender.run();
++},
++
++/**
++ * Stores scroll positions so they can be restored after a render.
++ *
++ * @method _storeScrollPositions
++ * @private
++ */
++ _storeScrollPositions : function() {
++    this._nScrollTop = this._elBdContainer.scrollTop;
++    this._nScrollLeft = this._elBdContainer.scrollLeft;
++},
++
++/**
++ * Clears stored scroll positions to interrupt the automatic restore mechanism.
++ * Useful for setting scroll positions programmatically rather than as part of
++ * the post-render cleanup process.
++ *
++ * @method clearScrollPositions
++ * @private
++ */
++ clearScrollPositions : function() {
++    this._nScrollTop = 0;
++    this._nScrollLeft = 0;
++},
++
++/**
++ * Restores scroll positions to stored value. 
++ *
++ * @method _retoreScrollPositions
++ * @private 
++ */
++ _restoreScrollPositions : function() {
++    // Reset scroll positions
++    if(this._nScrollTop) {
++        this._elBdContainer.scrollTop = this._nScrollTop;
++        this._nScrollTop = null;
++    } 
++    if(this._nScrollLeft) {
++        this._elBdContainer.scrollLeft = this._nScrollLeft;
++        this._nScrollLeft = null;
++    } 
++},
++
++/**
++ * Helper function calculates and sets a validated width for a Column in a ScrollingDataTable.
++ *
++ * @method _validateColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param elTd {HTMLElement} TD element to validate against.
++ * @private
++ */
++_validateColumnWidth : function(oColumn, elTd) {
++    // Only Columns without widths that are not hidden
++    if(!oColumn.width && !oColumn.hidden) {
++        var elTh = oColumn.getThEl();
++        // Unset a calculated auto-width
++        if(oColumn._calculatedWidth) {
++            this._setColumnWidth(oColumn, "auto", "visible");
++        }
++        // Compare auto-widths
++        if(elTh.offsetWidth !== elTd.offsetWidth) {
++            var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
++                    oColumn.getThLinerEl() : elTd.firstChild;               
++
++            // Grab the wider liner width, unless the minWidth is wider
++            var newWidth = Math.max(0,
++                (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
++                oColumn.minWidth);
++                
++            var sOverflow = 'visible';
++            
++            // Now validate against maxAutoWidth
++            if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
++                newWidth = oColumn.maxAutoWidth;
++                sOverflow = "hidden";
++            }
++
++            // Set to the wider auto-width
++            this._elTbody.style.display = "none";
++            this._setColumnWidth(oColumn, newWidth+'px', sOverflow);
++            oColumn._calculatedWidth = newWidth;
++            this._elTbody.style.display = "";
++        }
++    }
++},
++
++/**
++ * For one or all Columns of a ScrollingDataTable, when Column is not hidden,
++ * and width is not set, syncs widths of header and body cells and 
++ * validates that width against minWidth and/or maxAutoWidth as necessary.
++ *
++ * @method validateColumnWidths
++ * @param oArg.column {YAHOO.widget.Column} (optional) One Column to validate. If null, all Columns' widths are validated.
++ */
++validateColumnWidths : function(oColumn) {
++    // Validate there is at least one TR with proper TDs
++    var allKeys   = this._oColumnSet.keys,
++        allKeysLength = allKeys.length,
++        elRow     = this.getFirstTrEl();
++
++    // Reset overhang for IE
++    if(ua.ie) {
++        this._setOverhangValue(1);
++    }
++
++    if(allKeys && elRow && (elRow.childNodes.length === allKeysLength)) {
++        // Temporarily unsnap container since it causes inaccurate calculations
++        var sWidth = this.get("width");
++        if(sWidth) {
++            this._elHdContainer.style.width = "";
++            this._elBdContainer.style.width = "";
++        }
++        this._elContainer.style.width = "";
++        
++        //Validate just one Column
++        if(oColumn && lang.isNumber(oColumn.getKeyIndex())) {
++            this._validateColumnWidth(oColumn, elRow.childNodes[oColumn.getKeyIndex()]);
++        }
++        // Iterate through all Columns to unset calculated widths in one pass
++        else {
++            var elTd, todos = [], thisTodo, i, len;
++            for(i=0; i<allKeysLength; i++) {
++                oColumn = allKeys[i];
++                // Only Columns without widths that are not hidden, unset a calculated auto-width
++                if(!oColumn.width && !oColumn.hidden && oColumn._calculatedWidth) {
++                    todos[todos.length] = oColumn;      
++                }
++            }
++            
++            this._elTbody.style.display = "none";
++            for(i=0, len=todos.length; i<len; i++) {
++                this._setColumnWidth(todos[i], "auto", "visible");
++            }
++            this._elTbody.style.display = "";
++            
++            todos = [];
++
++            // Iterate through all Columns and make the store the adjustments to make in one pass
++            for(i=0; i<allKeysLength; i++) {
++                oColumn = allKeys[i];
++                elTd = elRow.childNodes[i];
++                // Only Columns without widths that are not hidden
++                if(!oColumn.width && !oColumn.hidden) {
++                    var elTh = oColumn.getThEl();
++
++                    // Compare auto-widths
++                    if(elTh.offsetWidth !== elTd.offsetWidth) {
++                        var elWider = (elTh.offsetWidth > elTd.offsetWidth) ?
++                                oColumn.getThLinerEl() : elTd.firstChild;               
++                
++                        // Grab the wider liner width, unless the minWidth is wider
++                        var newWidth = Math.max(0,
++                            (elWider.offsetWidth -(parseInt(Dom.getStyle(elWider,"paddingLeft"),10)|0) - (parseInt(Dom.getStyle(elWider,"paddingRight"),10)|0)),
++                            oColumn.minWidth);
++                            
++                        var sOverflow = 'visible';
++                        
++                        // Now validate against maxAutoWidth
++                        if((oColumn.maxAutoWidth > 0) && (newWidth > oColumn.maxAutoWidth)) {
++                            newWidth = oColumn.maxAutoWidth;
++                            sOverflow = "hidden";
++                        }
++                
++                        todos[todos.length] = [oColumn, newWidth, sOverflow];
++                    }
++                }
++            }
++            
++            this._elTbody.style.display = "none";
++            for(i=0, len=todos.length; i<len; i++) {
++                thisTodo = todos[i];
++                // Set to the wider auto-width
++                this._setColumnWidth(thisTodo[0], thisTodo[1]+"px", thisTodo[2]);
++                thisTodo[0]._calculatedWidth = thisTodo[1];
++            }
++            this._elTbody.style.display = "";
++        }
++    
++        // Resnap unsnapped containers
++        if(sWidth) {
++            this._elHdContainer.style.width = sWidth;
++            this._elBdContainer.style.width = sWidth;
++        } 
++    }
++    
++    this._syncScroll();
++    this._restoreScrollPositions();
++},
++
++/**
++ * Syncs padding around scrollable tables, including Column header right-padding
++ * and container width and height.
++ *
++ * @method _syncScroll
++ * @private 
++ */
++_syncScroll : function() {
++    this._syncScrollX();
++    this._syncScrollY();
++    this._syncScrollOverhang();
++    if(ua.opera) {
++        // Bug 1925874
++        this._elHdContainer.scrollLeft = this._elBdContainer.scrollLeft;
++        if(!this.get("width")) {
++            // Bug 1926125
++            document.body.style += '';
++        }
++    }
++ },
++
++/**
++ * Snaps container width for y-scrolling tables.
++ *
++ * @method _syncScrollY
++ * @private
++ */
++_syncScrollY : function() {
++    var elTbody = this._elTbody,
++        elBdContainer = this._elBdContainer;
++    
++    // X-scrolling not enabled
++    if(!this.get("width")) {
++        // Snap outer container width to content
++        this._elContainer.style.width = 
++                (elBdContainer.scrollHeight > elBdContainer.clientHeight) ?
++                // but account for y-scrollbar since it is visible
++                (elTbody.parentNode.clientWidth + 19) + "px" :
++                // no y-scrollbar, just borders
++                (elTbody.parentNode.clientWidth + 2) + "px";
++    }
++},
++
++/**
++ * Snaps container height for x-scrolling tables in IE. Syncs message TBODY width.
++ *
++ * @method _syncScrollX
++ * @private
++ */
++_syncScrollX : function() {
++    var elTbody = this._elTbody,
++        elBdContainer = this._elBdContainer;
++    
++    // IE 6 and 7 only when y-scrolling not enabled
++    if(!this.get("height") && (ua.ie)) {
++        // Snap outer container height to content
++        elBdContainer.style.height = 
++                // but account for x-scrollbar if it is visible
++                (elBdContainer.scrollWidth > elBdContainer.offsetWidth ) ?
++                (elTbody.parentNode.offsetHeight + 18) + "px" : 
++                elTbody.parentNode.offsetHeight + "px";
++    }
++
++    // Sync message tbody
++    if(this._elTbody.rows.length === 0) {
++        this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
++    }
++    else {
++        this._elMsgTbody.parentNode.style.width = "";
++    }
++},
++
++/**
++ * Adds/removes Column header overhang as necesary.
++ *
++ * @method _syncScrollOverhang
++ * @private
++ */
++_syncScrollOverhang : function() {
++    var elBdContainer = this._elBdContainer,
++        // Overhang should be either 1 (default) or 18px, depending on the location of the right edge of the table
++        nPadding = 1;
++    
++    // Y-scrollbar is visible, which is when the overhang needs to jut out
++    if((elBdContainer.scrollHeight > elBdContainer.clientHeight) &&
++        // X-scrollbar is also visible, which means the right is jagged, not flush with the Column
++        (elBdContainer.scrollWidth > elBdContainer.clientWidth)) {
++        nPadding = 18;
++    }
++    
++    this._setOverhangValue(nPadding);
++    
++},
++
++/**
++ * Sets Column header overhang to given width.
++ *
++ * @method _setOverhangValue
++ * @param nBorderWidth {Number} Value of new border for overhang. 
++ * @private
++ */
++_setOverhangValue : function(nBorderWidth) {
++    var aLastHeaders = this._oColumnSet.headers[this._oColumnSet.headers.length-1] || [],
++        len = aLastHeaders.length,
++        sPrefix = this._sId+"-fixedth-",
++        sValue = nBorderWidth + "px solid " + this.get("COLOR_COLUMNFILLER");
++
++    this._elThead.style.display = "none";
++    for(var i=0; i<len; i++) {
++        Dom.get(sPrefix+aLastHeaders[i]).style.borderRight = sValue;
++    }
++    this._elThead.style.display = "";
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/**
++ * Returns DOM reference to the DataTable's fixed header container element.
++ *
++ * @method getHdContainerEl
++ * @return {HTMLElement} Reference to DIV element.
++ */
++getHdContainerEl : function() {
++    return this._elHdContainer;
++},
++
++/**
++ * Returns DOM reference to the DataTable's scrolling body container element.
++ *
++ * @method getBdContainerEl
++ * @return {HTMLElement} Reference to DIV element.
++ */
++getBdContainerEl : function() {
++    return this._elBdContainer;
++},
++
++/**
++ * Returns DOM reference to the DataTable's fixed header TABLE element.
++ *
++ * @method getHdTableEl
++ * @return {HTMLElement} Reference to TABLE element.
++ */
++getHdTableEl : function() {
++    return this._elHdTable;
++},
++
++/**
++ * Returns DOM reference to the DataTable's scrolling body TABLE element.
++ *
++ * @method getBdTableEl
++ * @return {HTMLElement} Reference to TABLE element.
++ */
++getBdTableEl : function() {
++    return this._elTable;
++},
++
++/**
++ * Disables ScrollingDataTable UI.
++ *
++ * @method disable
++ */
++disable : function() {
++    var elMask = this._elMask;
++    elMask.style.width = this._elBdContainer.offsetWidth + "px";
++    elMask.style.height = this._elHdContainer.offsetHeight + this._elBdContainer.offsetHeight + "px";
++    elMask.style.display = "";
++    this.fireEvent("disableEvent");
++},
++
++/**
++ * Removes given Column. NOTE: You cannot remove nested Columns. You can only remove
++ * non-nested Columns, and top-level parent Columns (which will remove all
++ * children Columns).
++ *
++ * @method removeColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @return oColumn {YAHOO.widget.Column} Removed Column instance.
++ */
++removeColumn : function(oColumn) {
++    // Store scroll pos
++    var hdPos = this._elHdContainer.scrollLeft;
++    var bdPos = this._elBdContainer.scrollLeft;
++    
++    // Call superclass method
++    oColumn = SDT.superclass.removeColumn.call(this, oColumn);
++    
++    // Restore scroll pos
++    this._elHdContainer.scrollLeft = hdPos;
++    this._elBdContainer.scrollLeft = bdPos;
++    
++    return oColumn;
++},
++
++/**
++ * Inserts given Column at the index if given, otherwise at the end. NOTE: You
++ * can only add non-nested Columns and top-level parent Columns. You cannot add
++ * a nested Column to an existing parent.
++ *
++ * @method insertColumn
++ * @param oColumn {Object | YAHOO.widget.Column} Object literal Column
++ * definition or a Column instance.
++ * @param index {Number} (optional) New tree index.
++ * @return oColumn {YAHOO.widget.Column} Inserted Column instance. 
++ */
++insertColumn : function(oColumn, index) {
++    // Store scroll pos
++    var hdPos = this._elHdContainer.scrollLeft;
++    var bdPos = this._elBdContainer.scrollLeft;
++    
++    // Call superclass method
++    var oNewColumn = SDT.superclass.insertColumn.call(this, oColumn, index);
++    
++    // Restore scroll pos
++    this._elHdContainer.scrollLeft = hdPos;
++    this._elBdContainer.scrollLeft = bdPos;
++    
++    return oNewColumn;
++},
++
++/**
++ * Removes given Column and inserts into given tree index. NOTE: You
++ * can only reorder non-nested Columns and top-level parent Columns. You cannot
++ * reorder a nested Column to an existing parent.
++ *
++ * @method reorderColumn
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param index {Number} New tree index.
++ */
++reorderColumn : function(oColumn, index) {
++    // Store scroll pos
++    var hdPos = this._elHdContainer.scrollLeft;
++    var bdPos = this._elBdContainer.scrollLeft;
++    
++    // Call superclass method
++    var oNewColumn = SDT.superclass.reorderColumn.call(this, oColumn, index);
++    
++    // Restore scroll pos
++    this._elHdContainer.scrollLeft = hdPos;
++    this._elBdContainer.scrollLeft = bdPos;
++
++    return oNewColumn;
++},
++
++/**
++ * Sets given Column to given pixel width. If new width is less than minWidth
++ * width, sets to minWidth. Updates oColumn.width value.
++ *
++ * @method setColumnWidth
++ * @param oColumn {YAHOO.widget.Column} Column instance.
++ * @param nWidth {Number} New width in pixels.
++ */
++setColumnWidth : function(oColumn, nWidth) {
++    oColumn = this.getColumn(oColumn);
++    if(oColumn) {
++        this._storeScrollPositions();
++
++        // Validate new width against minWidth
++        if(lang.isNumber(nWidth)) {
++            nWidth = (nWidth > oColumn.minWidth) ? nWidth : oColumn.minWidth;
++
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, nWidth+"px");
++            this._syncScroll();
++            
++            this.fireEvent("columnSetWidthEvent",{column:oColumn,width:nWidth});
++        }
++        // Unsets a width to auto-size
++        else if(nWidth === null) {
++            // Save state
++            oColumn.width = nWidth;
++            
++            // Resize the DOM elements
++            this._setColumnWidth(oColumn, "auto");
++            this.validateColumnWidths(oColumn);
++            this.fireEvent("columnUnsetWidthEvent",{column:oColumn});
++        }
++        
++        // Bug 2339454: resize then sort misaligment
++        this._clearTrTemplateEl();
++    }
++    else {
++    }
++},
++
++/**
++ * Scrolls to given row or cell
++ *
++ * @method scrollTo
++ * @param to {YAHOO.widget.Record | HTMLElement } Itme to scroll to.
++ */
++scrollTo : function(to) {
++        var td = this.getTdEl(to);
++        if(td) {
++            this.clearScrollPositions();
++            this.getBdContainerEl().scrollLeft = td.offsetLeft;
++            this.getBdContainerEl().scrollTop = td.parentNode.offsetTop;
++        }
++        else {
++            var tr = this.getTrEl(to);
++            if(tr) {
++                this.clearScrollPositions();
++                this.getBdContainerEl().scrollTop = tr.offsetTop;
++            }
++        }
++},
++
++/**
++ * Displays message within secondary TBODY.
++ *
++ * @method showTableMessage
++ * @param sHTML {String} (optional) Value for innerHTMlang.
++ * @param sClassName {String} (optional) Classname.
++ */
++showTableMessage : function(sHTML, sClassName) {
++    var elCell = this._elMsgTd;
++    if(lang.isString(sHTML)) {
++        elCell.firstChild.innerHTML = sHTML;
++    }
++    if(lang.isString(sClassName)) {
++        Dom.addClass(elCell.firstChild, sClassName);
++    }
++
++    // Needed for SDT only
++    var elThead = this.getTheadEl();
++    var elTable = elThead.parentNode;
++    var newWidth = elTable.offsetWidth;
++    this._elMsgTbody.parentNode.style.width = this.getTheadEl().parentNode.offsetWidth + "px";
++
++    this._elMsgTbody.style.display = "";
++
++    this.fireEvent("tableMsgShowEvent", {html:sHTML, className:sClassName});
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private Custom Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Handles Column mutations
++ *
++ * @method onColumnChange
++ * @param oArgs {Object} Custom Event data.
++ */
++_onColumnChange : function(oArg) {
++    // Figure out which Column changed
++    var oColumn = (oArg.column) ? oArg.column :
++            (oArg.editor) ? oArg.editor.column : null;
++    this._storeScrollPositions();
++    this.validateColumnWidths(oColumn);
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private DOM Event Handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Syncs scrolltop and scrollleft of all TABLEs.
++ *
++ * @method _onScroll
++ * @param e {HTMLEvent} The scroll event.
++ * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
++ * @private
++ */
++_onScroll : function(e, oSelf) {
++    oSelf._elHdContainer.scrollLeft = oSelf._elBdContainer.scrollLeft;
++
++    if(oSelf._oCellEditor && oSelf._oCellEditor.isActive) {
++        oSelf.fireEvent("editorBlurEvent", {editor:oSelf._oCellEditor});
++        oSelf.cancelCellEditor();
++    }
++
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    oSelf.fireEvent("tableScrollEvent", {event:e, target:elTarget});
++},
++
++/**
++ * Handles keydown events on the THEAD element.
++ *
++ * @method _onTheadKeydown
++ * @param e {HTMLEvent} The key event.
++ * @param oSelf {YAHOO.widget.ScrollingDataTable} ScrollingDataTable instance.
++ * @private
++ */
++_onTheadKeydown : function(e, oSelf) {
++    // If tabbing to next TH label link causes THEAD to scroll,
++    // need to sync scrollLeft with TBODY
++    if(Ev.getCharCode(e) === 9) {
++        setTimeout(function() {
++            if((oSelf instanceof SDT) && oSelf._sId) {
++                oSelf._elBdContainer.scrollLeft = oSelf._elHdContainer.scrollLeft;
++            }
++        },0);
++    }
++    
++    var elTarget = Ev.getTarget(e);
++    var elTag = elTarget.nodeName.toLowerCase();
++    var bKeepBubbling = true;
++    while(elTarget && (elTag != "table")) {
++        switch(elTag) {
++            case "body":
++                return;
++            case "input":
++            case "textarea":
++                // TODO: implement textareaKeyEvent
++                break;
++            case "thead":
++                bKeepBubbling = oSelf.fireEvent("theadKeyEvent",{target:elTarget,event:e});
++                break;
++            default:
++                break;
++        }
++        if(bKeepBubbling === false) {
++            return;
++        }
++        else {
++            elTarget = elTarget.parentNode;
++            if(elTarget) {
++                elTag = elTarget.nodeName.toLowerCase();
++            }
++        }
++    }
++    oSelf.fireEvent("tableKeyEvent",{target:(elTarget || oSelf._elContainer),event:e});
++}
++
++
++
++
++/**
++ * Fired when a fixed scrolling DataTable has a scroll.
++ *
++ * @event tableScrollEvent
++ * @param oArgs.event {HTMLEvent} The event object.
++ * @param oArgs.target {HTMLElement} The DataTable's CONTAINER element (in IE)
++ * or the DataTable's TBODY element (everyone else).
++ *
++ */
++
++
++
++
++});
++
++})();
++
++(function () {
++
++var lang   = YAHOO.lang,
++    util   = YAHOO.util,
++    widget = YAHOO.widget,
++    ua     = YAHOO.env.ua,
++    
++    Dom    = util.Dom,
++    Ev     = util.Event,
++    
++    DT     = widget.DataTable;
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The BaseCellEditor class provides base functionality common to all inline cell
++ * editors for a DataTable widget.
++ *
++ * @namespace YAHOO.widget
++ * @class BaseCellEditor
++ * @uses YAHOO.util.EventProvider 
++ * @constructor
++ * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.BaseCellEditor = function(sType, oConfigs) {
++    this._sId = this._sId || "yui-ceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    this._sType = sType;
++    
++    // Validate inputs
++    this._initConfigs(oConfigs); 
++    
++    // Create Custom Events
++    this._initEvents();
++             
++    // Draw UI
++    this.render();
++};
++
++var BCE = widget.BaseCellEditor;
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Static members
++//
++/////////////////////////////////////////////////////////////////////////////
++lang.augmentObject(BCE, {
++
++/**
++ * Global instance counter.
++ *
++ * @property CellEditor._nCount
++ * @type Number
++ * @static
++ * @default 0
++ * @private 
++ */
++_nCount : 0,
++
++/**
++ * Class applied to CellEditor container.
++ *
++ * @property CellEditor.CLASS_CELLEDITOR
++ * @type String
++ * @static
++ * @default "yui-ceditor"
++ */
++CLASS_CELLEDITOR : "yui-ceditor"
++
++});
++
++BCE.prototype = {
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private members
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Unique id assigned to instance "yui-ceditorN", useful prefix for generating unique
++ * DOM ID strings and log messages.
++ *
++ * @property _sId
++ * @type String
++ * @private
++ */
++_sId : null,
++
++/**
++ * Editor type.
++ *
++ * @property _sType
++ * @type String
++ * @private
++ */
++_sType : null,
++
++/**
++ * DataTable instance.
++ *
++ * @property _oDataTable
++ * @type YAHOO.widget.DataTable
++ * @private 
++ */
++_oDataTable : null,
++
++/**
++ * Column instance.
++ *
++ * @property _oColumn
++ * @type YAHOO.widget.Column
++ * @default null
++ * @private 
++ */
++_oColumn : null,
++
++/**
++ * Record instance.
++ *
++ * @property _oRecord
++ * @type YAHOO.widget.Record
++ * @default null
++ * @private 
++ */
++_oRecord : null,
++
++/**
++ * TD element.
++ *
++ * @property _elTd
++ * @type HTMLElement
++ * @default null
++ * @private
++ */
++_elTd : null,
++
++/**
++ * Container for inline editor.
++ *
++ * @property _elContainer
++ * @type HTMLElement
++ * @private 
++ */
++_elContainer : null,
++
++/**
++ * Reference to Cancel button, if available.
++ *
++ * @property _elCancelBtn
++ * @type HTMLElement
++ * @default null
++ * @private 
++ */
++_elCancelBtn : null,
++
++/**
++ * Reference to Save button, if available.
++ *
++ * @property _elSaveBtn
++ * @type HTMLElement
++ * @default null
++ * @private 
++ */
++_elSaveBtn : null,
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Initialize configs.
++ *
++ * @method _initConfigs
++ * @private   
++ */
++_initConfigs : function(oConfigs) {
++    // Object literal defines CellEditor configs
++    if(oConfigs && YAHOO.lang.isObject(oConfigs)) {
++        for(var sConfig in oConfigs) {
++            if(sConfig) {
++                this[sConfig] = oConfigs[sConfig];
++            }
++        }
++    }
++},
++
++/**
++ * Initialize Custom Events.
++ *
++ * @method _initEvents
++ * @private   
++ */
++_initEvents : function() {
++    this.createEvent("showEvent");
++    this.createEvent("keydownEvent");
++    this.createEvent("invalidDataEvent");
++    this.createEvent("revertEvent");
++    this.createEvent("saveEvent");
++    this.createEvent("cancelEvent");
++    this.createEvent("blurEvent");
++    this.createEvent("blockEvent");
++    this.createEvent("unblockEvent");
++},
++
++
++
++
++
++
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Implementer defined function that can submit the input value to a server. This
++ * function must accept the arguments fnCallback and oNewValue. When the submission
++ * is complete, the function must also call fnCallback(bSuccess, oNewValue) to 
++ * finish the save routine in the CellEditor. This function can also be used to 
++ * perform extra validation or input value manipulation. 
++ *
++ * @property asyncSubmitter
++ * @type HTMLFunction
++ */
++asyncSubmitter : null,
++
++/**
++ * Current value.
++ *
++ * @property value
++ * @type MIXED
++ */
++value : null,
++
++/**
++ * Default value in case Record data is undefined. NB: Null values will not trigger
++ * the default value.
++ *
++ * @property defaultValue
++ * @type MIXED
++ * @default null
++ */
++defaultValue : null,
++
++/**
++ * Validator function for input data, called from the DataTable instance scope,
++ * receives the arguments (inputValue, currentValue, editorInstance) and returns
++ * either the validated (or type-converted) value or undefined.
++ *
++ * @property validator
++ * @type HTMLFunction
++ * @default null
++ */
++validator : null,
++
++/**
++ * If validation is enabled, resets input field of invalid data.
++ *
++ * @property resetInvalidData
++ * @type Boolean
++ * @default true
++ */
++resetInvalidData : true,
++
++/**
++ * True if currently active.
++ *
++ * @property isActive
++ * @type Boolean
++ */
++isActive : false,
++
++/**
++ * Text to display on Save button.
++ *
++ * @property LABEL_SAVE
++ * @type String
++ * @default "Save"
++ */
++LABEL_SAVE : "Save",
++
++/**
++ * Text to display on Cancel button.
++ *
++ * @property LABEL_CANCEL
++ * @type String
++ * @default "Cancel"
++ */
++LABEL_CANCEL : "Cancel",
++
++/**
++ * True if Save/Cancel buttons should not be displayed in the CellEditor.
++ *
++ * @property disableBtns
++ * @type Boolean
++ * @default false
++ */
++disableBtns : false,
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * CellEditor instance name, for logging.
++ *
++ * @method toString
++ * @return {String} Unique name of the CellEditor instance.
++ */
++
++toString : function() {
++    return "CellEditor instance " + this._sId;
++},
++
++/**
++ * CellEditor unique ID.
++ *
++ * @method getId
++ * @return {String} Unique ID of the CellEditor instance.
++ */
++
++getId : function() {
++    return this._sId;
++},
++
++/**
++ * Returns reference to associated DataTable instance.
++ *
++ * @method getDataTable
++ * @return {YAHOO.widget.DataTable} DataTable instance.
++ */
++
++getDataTable : function() {
++    return this._oDataTable;
++},
++
++/**
++ * Returns reference to associated Column instance.
++ *
++ * @method getColumn
++ * @return {YAHOO.widget.Column} Column instance.
++ */
++
++getColumn : function() {
++    return this._oColumn;
++},
++
++/**
++ * Returns reference to associated Record instance.
++ *
++ * @method getRecord
++ * @return {YAHOO.widget.Record} Record instance.
++ */
++
++getRecord : function() {
++    return this._oRecord;
++},
++
++
++
++/**
++ * Returns reference to associated TD element.
++ *
++ * @method getTdEl
++ * @return {HTMLElement} TD element.
++ */
++
++getTdEl : function() {
++    return this._elTd;
++},
++
++/**
++ * Returns container element.
++ *
++ * @method getContainerEl
++ * @return {HTMLElement} Reference to container element.
++ */
++
++getContainerEl : function() {
++    return this._elContainer;
++},
++
++/**
++ * Nulls out the entire CellEditor instance and related objects, removes attached
++ * event listeners, and clears out DOM elements inside the container, removes
++ * container from the DOM.
++ *
++ * @method destroy
++ */
++destroy : function() {
++    this.unsubscribeAll();
++    
++    // Column is late-binding in attach()
++    var oColumn = this.getColumn();
++    if(oColumn) {
++        oColumn.editor = null;
++    }
++    
++    var elContainer = this.getContainerEl();
++    Ev.purgeElement(elContainer, true);
++    elContainer.parentNode.removeChild(elContainer);
++},
++
++/**
++ * Renders DOM elements and attaches event listeners.
++ *
++ * @method render
++ */
++render : function() {
++    if(this._elContainer) {
++        YAHOO.util.Event.purgeElement(this._elContainer, true);
++        this._elContainer.innerHTML = "";
++    }
++
++    // Render Cell Editor container element as first child of body
++    var elContainer = document.createElement("div");
++    elContainer.id = this.getId() + "-container"; // Needed for tracking blur event
++    elContainer.style.display = "none";
++    elContainer.tabIndex = 0;
++    elContainer.className = DT.CLASS_EDITOR;
++    document.body.insertBefore(elContainer, document.body.firstChild);
++    this._elContainer = elContainer;
++    
++    // Handle ESC key
++    Ev.addListener(elContainer, "keydown", function(e, oSelf) {
++        // ESC cancels Cell Editor
++        if((e.keyCode == 27)) {
++            var target = Ev.getTarget(e);
++            // workaround for Mac FF3 bug that disabled clicks when ESC hit when
++            // select is open. [bug 2273056]
++            if (target.nodeName && target.nodeName.toLowerCase() === 'select') {
++                target.blur();
++            }
++            oSelf.cancel();
++        }
++        // Pass through event
++        oSelf.fireEvent("keydownEvent", {editor:this, event:e});
++    }, this);
++    
++    this.renderForm();
++
++    // Show Save/Cancel buttons
++    if(!this.disableBtns) {
++        this.renderBtns();
++    }
++    
++    this.doAfterRender();
++},
++
++/**
++ * Renders Save/Cancel buttons.
++ *
++ * @method renderBtns
++ */
++renderBtns : function() {
++    // Buttons
++    var elBtnsDiv = this.getContainerEl().appendChild(document.createElement("div"));
++    elBtnsDiv.className = DT.CLASS_BUTTON;
++
++    // Save button
++    var elSaveBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    elSaveBtn.className = DT.CLASS_DEFAULT;
++    elSaveBtn.innerHTML = this.LABEL_SAVE;
++    Ev.addListener(elSaveBtn, "click", function(oArgs) {
++        this.save();
++    }, this, true);
++    this._elSaveBtn = elSaveBtn;
++
++    // Cancel button
++    var elCancelBtn = elBtnsDiv.appendChild(document.createElement("button"));
++    elCancelBtn.innerHTML = this.LABEL_CANCEL;
++    Ev.addListener(elCancelBtn, "click", function(oArgs) {
++        this.cancel();
++    }, this, true);
++    this._elCancelBtn = elCancelBtn;
++},
++
++/**
++ * Attach CellEditor for a new interaction.
++ *
++ * @method attach
++ * @param oDataTable {YAHOO.widget.DataTable} Associated DataTable instance.
++ * @param elCell {HTMLElement} Cell to edit.  
++ */
++attach : function(oDataTable, elCell) {
++    // Validate 
++    if(oDataTable instanceof YAHOO.widget.DataTable) {
++        this._oDataTable = oDataTable;
++        
++        // Validate cell
++        elCell = oDataTable.getTdEl(elCell);
++        if(elCell) {
++            this._elTd = elCell;
++
++            // Validate Column
++            var oColumn = oDataTable.getColumn(elCell);
++            if(oColumn) {
++                this._oColumn = oColumn;
++                
++                // Validate Record
++                var oRecord = oDataTable.getRecord(elCell);
++                if(oRecord) {
++                    this._oRecord = oRecord;
++                    var value = oRecord.getData(this.getColumn().getField());
++                    this.value = (value !== undefined) ? value : this.defaultValue;
++                    return true;
++                }
++            }            
++        }
++    }
++    return false;
++},
++
++/**
++ * Moves container into position for display.
++ *
++ * @method move
++ */
++move : function() {
++    // Move Editor
++    var elContainer = this.getContainerEl(),
++        elTd = this.getTdEl(),
++        x = Dom.getX(elTd),
++        y = Dom.getY(elTd);
++
++    //TODO: remove scrolling logic
++    // SF doesn't get xy for cells in scrolling table
++    // when tbody display is set to block
++    if(isNaN(x) || isNaN(y)) {
++        var elTbody = this.getDataTable().getTbodyEl();
++        x = elTd.offsetLeft + // cell pos relative to table
++                Dom.getX(elTbody.parentNode) - // plus table pos relative to document
++                elTbody.scrollLeft; // minus tbody scroll
++        y = elTd.offsetTop + // cell pos relative to table
++                Dom.getY(elTbody.parentNode) - // plus table pos relative to document
++                elTbody.scrollTop + // minus tbody scroll
++                this.getDataTable().getTheadEl().offsetHeight; // account for fixed THEAD cells
++    }
++
++    elContainer.style.left = x + "px";
++    elContainer.style.top = y + "px";
++},
++
++/**
++ * Displays CellEditor UI in the correct position.
++ *
++ * @method show
++ */
++show : function() {
++    this.resetForm();
++    this.isActive = true;
++    this.getContainerEl().style.display = "";
++    this.focus();
++    this.fireEvent("showEvent", {editor:this});
++},
++
++/**
++ * Fires blockEvent
++ *
++ * @method block
++ */
++block : function() {
++    this.fireEvent("blockEvent", {editor:this});
++},
++
++/**
++ * Fires unblockEvent
++ *
++ * @method unblock
++ */
++unblock : function() {
++    this.fireEvent("unblockEvent", {editor:this});
++},
++
++/**
++ * Saves value of CellEditor and hides UI.
++ *
++ * @method save
++ */
++save : function() {
++    // Get new value
++    var inputValue = this.getInputValue();
++    var validValue = inputValue;
++    
++    // Validate new value
++    if(this.validator) {
++        validValue = this.validator.call(this.getDataTable(), inputValue, this.value, this);
++        if(validValue === undefined ) {
++            if(this.resetInvalidData) {
++                this.resetForm();
++            }
++            this.fireEvent("invalidDataEvent",
++                    {editor:this, oldData:this.value, newData:inputValue});
++            return;
++        }
++    }
++        
++    var oSelf = this;
++    var finishSave = function(bSuccess, oNewValue) {
++        var oOrigValue = oSelf.value;
++        if(bSuccess) {
++            // Update new value
++            oSelf.value = oNewValue;
++            oSelf.getDataTable().updateCell(oSelf.getRecord(), oSelf.getColumn(), oNewValue);
++            
++            // Hide CellEditor
++            oSelf.getContainerEl().style.display = "none";
++            oSelf.isActive = false;
++            oSelf.getDataTable()._oCellEditor =  null;
++            
++            oSelf.fireEvent("saveEvent",
++                    {editor:oSelf, oldData:oOrigValue, newData:oSelf.value});
++        }
++        else {
++            oSelf.resetForm();
++            oSelf.fireEvent("revertEvent",
++                    {editor:oSelf, oldData:oOrigValue, newData:oNewValue});
++        }
++        oSelf.unblock();
++    };
++    
++    this.block();
++    if(lang.isFunction(this.asyncSubmitter)) {
++        this.asyncSubmitter.call(this, finishSave, validValue);
++    } 
++    else {   
++        finishSave(true, validValue);
++    }
++},
++
++/**
++ * Cancels CellEditor input and hides UI.
++ *
++ * @method cancel
++ */
++cancel : function() {
++    if(this.isActive) {
++        this.getContainerEl().style.display = "none";
++        this.isActive = false;
++        this.getDataTable()._oCellEditor =  null;
++        this.fireEvent("cancelEvent", {editor:this});
++    }
++    else {
++    }
++},
++
++/**
++ * Renders form elements.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Access to add additional event listeners.
++ *
++ * @method doAfterRender
++ */
++doAfterRender : function() {
++    // To be implemented by subclass
++},
++
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Resets CellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Sets focus in CellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // To be implemented by subclass
++},
++
++/**
++ * Retrieves input value from CellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    // To be implemented by subclass
++}
++
++};
++
++lang.augmentProto(BCE, util.EventProvider);
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Custom Events
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Fired when a CellEditor is shown.
++ *
++ * @event showEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance.
++ */
++
++/**
++ * Fired when a CellEditor has a keydown.
++ *
++ * @event keydownEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.event {HTMLEvent} The event object.
++ */
++
++/**
++ * Fired when a CellEditor input is reverted due to invalid data.
++ *
++ * @event invalidDataEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.newData {Object} New data value from form input field.
++ * @param oArgs.oldData {Object} Old data value.
++ */
++
++/**
++ * Fired when a CellEditor input is reverted due to asyncSubmitter failure.
++ *
++ * @event revertEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.newData {Object} New data value from form input field.
++ * @param oArgs.oldData {Object} Old data value.
++ */
++
++/**
++ * Fired when a CellEditor input is saved.
++ *
++ * @event saveEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ * @param oArgs.newData {Object} New data value from form input field.
++ * @param oArgs.oldData {Object} Old data value.
++ */
++
++/**
++ * Fired when a CellEditor input is canceled.
++ *
++ * @event cancelEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ */
++
++/**
++ * Fired when a CellEditor has a blur event.
++ *
++ * @event blurEvent
++ * @param oArgs.editor {YAHOO.widget.CellEditor} The CellEditor instance. 
++ */
++
++
++
++
++
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The CheckboxCellEditor class provides functionality for inline editing
++ * DataTable cell data with checkboxes.
++ *
++ * @namespace YAHOO.widget
++ * @class CheckboxCellEditor
++ * @extends YAHOO.widget.BaseCellEditor
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.CheckboxCellEditor = function(oConfigs) {
++    this._sId = "yui-checkboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.CheckboxCellEditor.superclass.constructor.call(this, "checkbox", oConfigs); 
++};
++
++// CheckboxCellEditor extends BaseCellEditor
++lang.extend(widget.CheckboxCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// CheckboxCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Array of checkbox values. Can either be a simple array (e.g., ["red","green","blue"])
++ * or a an array of objects (e.g., [{label:"red", value:"#FF0000"},
++ * {label:"green", value:"#00FF00"}, {label:"blue", value:"#0000FF"}]). 
++ *
++ * @property checkboxOptions
++ * @type String[] | Object[]
++ */
++checkboxOptions : null,
++
++/**
++ * Reference to the checkbox elements.
++ *
++ * @property checkboxes
++ * @type HTMLElement[] 
++ */
++checkboxes : null,
++
++/**
++ * Array of checked values
++ *
++ * @property value
++ * @type String[] 
++ */
++value : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// CheckboxCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with input(s) type=checkbox.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    if(lang.isArray(this.checkboxOptions)) {
++        var checkboxOption, checkboxValue, checkboxId, elLabel, j, len;
++        
++        // Create the checkbox buttons in an IE-friendly way...
++        for(j=0,len=this.checkboxOptions.length; j<len; j++) {
++            checkboxOption = this.checkboxOptions[j];
++            checkboxValue = lang.isValue(checkboxOption.value) ?
++                    checkboxOption.value : checkboxOption;
++
++            checkboxId = this.getId() + "-chk" + j;
++            this.getContainerEl().innerHTML += "<input type=\"checkbox\"" +
++                    " id=\"" + checkboxId + "\"" + // Needed for label
++                    " value=\"" + checkboxValue + "\" />";
++            
++            // Create the labels in an IE-friendly way
++            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
++            elLabel.htmlFor = checkboxId;
++            elLabel.innerHTML = lang.isValue(checkboxOption.label) ?
++                    checkboxOption.label : checkboxOption;
++        }
++        
++        // Store the reference to the checkbox elements
++        var allCheckboxes = [];
++        for(j=0; j<len; j++) {
++            allCheckboxes[allCheckboxes.length] = this.getContainerEl().childNodes[j*2];
++        }
++        this.checkboxes = allCheckboxes;
++
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    Ev.addListener(this.getContainerEl(), "click", function(v){
++        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
++            // Save on blur
++            this.save();
++        }
++    }, this, true);
++},
++
++/**
++ * Resets CheckboxCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    // Normalize to array
++    var originalValues = lang.isArray(this.value) ? this.value : [this.value];
++    
++    // Match checks to value
++    for(var i=0, j=this.checkboxes.length; i<j; i++) {
++        this.checkboxes[i].checked = false;
++        for(var k=0, len=originalValues.length; k<len; k++) {
++            if(this.checkboxes[i].value === originalValues[k]) {
++                this.checkboxes[i].checked = true;
++            }
++        }
++    }
++},
++
++/**
++ * Sets focus in CheckboxCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    this.checkboxes[0].focus();
++},
++
++/**
++ * Retrieves input value from CheckboxCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    var checkedValues = [];
++    for(var i=0, j=this.checkboxes.length; i<j; i++) {
++        if(this.checkboxes[i].checked) {
++            checkedValues[checkedValues.length] = this.checkboxes[i].value;
++        }
++    }  
++    return checkedValues;
++}
++
++});
++
++// Copy static members to CheckboxCellEditor class
++lang.augmentObject(widget.CheckboxCellEditor, BCE);
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The DataCellEditor class provides functionality for inline editing
++ * DataTable cell data with a YUI Calendar.
++ *
++ * @namespace YAHOO.widget
++ * @class DateCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.DateCellEditor = function(oConfigs) {
++    this._sId = "yui-dateceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.DateCellEditor.superclass.constructor.call(this, "date", oConfigs); 
++};
++
++// CheckboxCellEditor extends BaseCellEditor
++lang.extend(widget.DateCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DateCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to Calendar instance.
++ *
++ * @property calendar
++ * @type YAHOO.widget.Calendar
++ */
++calendar : null,
++
++/**
++ * Configs for the calendar instance, to be passed to Calendar constructor.
++ *
++ * @property calendarOptions
++ * @type Object
++ */
++calendarOptions : null,
++
++/**
++ * Default value.
++ *
++ * @property defaultValue
++ * @type Date
++ * @default new Date()
++ */
++defaultValue : new Date(),
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DateCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a Calendar.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    // Calendar widget
++    if(YAHOO.widget.Calendar) {
++        var calContainer = this.getContainerEl().appendChild(document.createElement("div"));
++        calContainer.id = this.getId() + "-dateContainer"; // Needed for Calendar constructor
++        var calendar =
++                new YAHOO.widget.Calendar(this.getId() + "-date",
++                calContainer.id, this.calendarOptions);
++        calendar.render();
++        calContainer.style.cssFloat = "none";
++
++        if(ua.ie) {
++            var calFloatClearer = this.getContainerEl().appendChild(document.createElement("div"));
++            calFloatClearer.style.clear = "both";
++        }
++        
++        this.calendar = calendar;
++
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++    else {
++    }
++    
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    this.calendar.selectEvent.subscribe(function(v){
++        // Save on select
++        this.save();
++    }, this, true);
++},
++
++/**
++ * Resets DateCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    var value = this.value;
++    var selectedValue = (value.getMonth()+1)+"/"+value.getDate()+"/"+value.getFullYear();
++    this.calendar.cfg.setProperty("selected",selectedValue,false);
++	this.calendar.render();
++},
++
++/**
++ * Sets focus in DateCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // To be impmlemented by subclass
++},
++
++/**
++ * Retrieves input value from DateCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    return this.calendar.getSelectedDates()[0];
++}
++
++});
++
++// Copy static members to DateCellEditor class
++lang.augmentObject(widget.DateCellEditor, BCE);
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The DropdownCellEditor class provides functionality for inline editing
++ * DataTable cell data a SELECT element.
++ *
++ * @namespace YAHOO.widget
++ * @class DropdownCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.DropdownCellEditor = function(oConfigs) {
++    this._sId = "yui-dropdownceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.DropdownCellEditor.superclass.constructor.call(this, "dropdown", oConfigs);
++};
++
++// DropdownCellEditor extends BaseCellEditor
++lang.extend(widget.DropdownCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DropdownCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Array of dropdown values. Can either be a simple array (e.g.,
++ * ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g., 
++ * [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"},
++ * {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]). 
++ *
++ * @property dropdownOptions
++ * @type String[] | Object[]
++ */
++dropdownOptions : null,
++
++/**
++ * Reference to Dropdown element.
++ *
++ * @property dropdown
++ * @type HTMLElement
++ */
++dropdown : null,
++
++/**
++ * Enables multi-select.
++ *
++ * @property multiple
++ * @type Boolean
++ */
++multiple : false,
++
++/**
++ * Specifies number of visible options.
++ *
++ * @property size
++ * @type Number
++ */
++size : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DropdownCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with select element.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    var elDropdown = this.getContainerEl().appendChild(document.createElement("select"));
++    elDropdown.style.zoom = 1;
++    if(this.multiple) {
++        elDropdown.multiple = "multiple";
++    }
++    if(lang.isNumber(this.size)) {
++        elDropdown.size = this.size;
++    }
++    this.dropdown = elDropdown;
++    
++    if(lang.isArray(this.dropdownOptions)) {
++        var dropdownOption, elOption;
++        for(var i=0, j=this.dropdownOptions.length; i<j; i++) {
++            dropdownOption = this.dropdownOptions[i];
++            elOption = document.createElement("option");
++            elOption.value = (lang.isValue(dropdownOption.value)) ?
++                    dropdownOption.value : dropdownOption;
++            elOption.innerHTML = (lang.isValue(dropdownOption.label)) ?
++                    dropdownOption.label : dropdownOption;
++            elOption = elDropdown.appendChild(elOption);
++        }
++        
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    // Save on blur for multi-select
++    if(this.multiple) {
++        Ev.addListener(this.dropdown, "blur", function(v){
++            // Save on change
++            this.save();
++        }, this, true);
++    }
++    // Save on change for single-select
++    else {
++        Ev.addListener(this.dropdown, "change", function(v){
++            // Save on change
++            this.save();
++        }, this, true);
++    }
++},
++
++/**
++ * Resets DropdownCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    var allOptions = this.dropdown.options,
++        i=0, j=allOptions.length;
++
++    // Look for multi-select selections
++    if(lang.isArray(this.value)) {
++        var allValues = this.value,
++            m=0, n=allValues.length,
++            hash = {};
++        // Reset all selections and stash options in a value hash
++        for(; i<j; i++) {
++            allOptions[i].selected = false;
++            hash[allOptions[i].value] = allOptions[i];
++        }
++        for(; m<n; m++) {
++            if(hash[allValues[m]]) {
++                hash[allValues[m]].selected = true;
++            }
++        }
++    }
++    // Only need to look for a single selection
++    else {
++        for(; i<j; i++) {
++            if(this.value === allOptions[i].value) {
++                allOptions[i].selected = true;
++            }
++        }
++    }
++},
++
++/**
++ * Sets focus in DropdownCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    this.getDataTable()._focusEl(this.dropdown);
++},
++
++/**
++ * Retrieves input value from DropdownCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    var allOptions = this.dropdown.options;
++    
++    // Look for multiple selections
++    if(this.multiple) {
++        var values = [],
++            i=0, j=allOptions.length;
++        for(; i<j; i++) {
++            if(allOptions[i].selected) {
++                values.push(allOptions[i].value);
++            }
++        }
++        return values;
++    }
++    // Only need to look for single selection
++    else {
++        return allOptions[allOptions.selectedIndex].value;
++    }
++}
++
++});
++
++// Copy static members to DropdownCellEditor class
++lang.augmentObject(widget.DropdownCellEditor, BCE);
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The RadioCellEditor class provides functionality for inline editing
++ * DataTable cell data with radio buttons.
++ *
++ * @namespace YAHOO.widget
++ * @class RadioCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.RadioCellEditor = function(oConfigs) {
++    this._sId = "yui-radioceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.RadioCellEditor.superclass.constructor.call(this, "radio", oConfigs); 
++};
++
++// RadioCellEditor extends BaseCellEditor
++lang.extend(widget.RadioCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// RadioCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to radio elements.
++ *
++ * @property radios
++ * @type HTMLElement[]
++ */
++radios : null,
++
++/**
++ * Array of radio values. Can either be a simple array (e.g., ["yes","no","maybe"])
++ * or a an array of objects (e.g., [{label:"yes", value:1}, {label:"no", value:-1},
++ * {label:"maybe", value:0}]). 
++ *
++ * @property radioOptions
++ * @type String[] | Object[]
++ */
++radioOptions : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// RadioCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with input(s) type=radio.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    if(lang.isArray(this.radioOptions)) {
++        var radioOption, radioValue, radioId, elLabel;
++        
++        // Create the radio buttons in an IE-friendly way
++        for(var i=0, len=this.radioOptions.length; i<len; i++) {
++            radioOption = this.radioOptions[i];
++            radioValue = lang.isValue(radioOption.value) ?
++                    radioOption.value : radioOption;
++            radioId = this.getId() + "-radio" + i;
++            this.getContainerEl().innerHTML += "<input type=\"radio\"" +
++                    " name=\"" + this.getId() + "\"" +
++                    " value=\"" + radioValue + "\"" +
++                    " id=\"" +  radioId + "\" />"; // Needed for label
++            
++            // Create the labels in an IE-friendly way
++            elLabel = this.getContainerEl().appendChild(document.createElement("label"));
++            elLabel.htmlFor = radioId;
++            elLabel.innerHTML = (lang.isValue(radioOption.label)) ?
++                    radioOption.label : radioOption;
++        }
++        
++        // Store the reference to the checkbox elements
++        var allRadios = [],
++            elRadio;
++        for(var j=0; j<len; j++) {
++            elRadio = this.getContainerEl().childNodes[j*2];
++            allRadios[allRadios.length] = elRadio;
++        }
++        this.radios = allRadios;
++
++        if(this.disableBtns) {
++            this.handleDisabledBtns();
++        }
++    }
++    else {
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    Ev.addListener(this.getContainerEl(), "click", function(v){
++        if(Ev.getTarget(v).tagName.toLowerCase() === "input") {
++            // Save on blur
++            this.save();
++        }
++    }, this, true);
++},
++
++/**
++ * Resets RadioCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    for(var i=0, j=this.radios.length; i<j; i++) {
++        var elRadio = this.radios[i];
++        if(this.value === elRadio.value) {
++            elRadio.checked = true;
++            return;
++        }
++    }
++},
++
++/**
++ * Sets focus in RadioCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    for(var i=0, j=this.radios.length; i<j; i++) {
++        if(this.radios[i].checked) {
++            this.radios[i].focus();
++            return;
++        }
++    }
++},
++
++/**
++ * Retrieves input value from RadioCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    for(var i=0, j=this.radios.length; i<j; i++) {
++        if(this.radios[i].checked) {
++            return this.radios[i].value;
++        }
++    }
++}
++
++});
++
++// Copy static members to RadioCellEditor class
++lang.augmentObject(widget.RadioCellEditor, BCE);
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The TextareaCellEditor class provides functionality for inline editing
++ * DataTable cell data with a TEXTAREA element.
++ *
++ * @namespace YAHOO.widget
++ * @class TextareaCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.TextareaCellEditor = function(oConfigs) {
++    this._sId = "yui-textareaceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.TextareaCellEditor.superclass.constructor.call(this, "textarea", oConfigs); 
++};
++
++// TextareaCellEditor extends BaseCellEditor
++lang.extend(widget.TextareaCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextareaCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to textarea element.
++ *
++ * @property textarea
++ * @type HTMLElement
++ */
++textarea : null,
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextareaCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with textarea.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    var elTextarea = this.getContainerEl().appendChild(document.createElement("textarea"));
++    this.textarea = elTextarea;
++
++    if(this.disableBtns) {
++        this.handleDisabledBtns();
++    }
++},
++
++/**
++ * After rendering form, if disabledBtns is set to true, then sets up a mechanism
++ * to save input without them. 
++ *
++ * @method handleDisabledBtns
++ */
++handleDisabledBtns : function() {
++    Ev.addListener(this.textarea, "blur", function(v){
++        // Save on blur
++        this.save();
++    }, this, true);        
++},
++
++/**
++ * Moves TextareaCellEditor UI to a cell.
++ *
++ * @method move
++ */
++move : function() {
++    this.textarea.style.width = this.getTdEl().offsetWidth + "px";
++    this.textarea.style.height = "3em";
++    YAHOO.widget.TextareaCellEditor.superclass.move.call(this);
++},
++
++/**
++ * Resets TextareaCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    this.textarea.value = this.value;
++},
++
++/**
++ * Sets focus in TextareaCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // Bug 2303181, Bug 2263600
++    this.getDataTable()._focusEl(this.textarea);
++    this.textarea.select();
++},
++
++/**
++ * Retrieves input value from TextareaCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    return this.textarea.value;
++}
++
++});
++
++// Copy static members to TextareaCellEditor class
++lang.augmentObject(widget.TextareaCellEditor, BCE);
++
++
++
++
++
++
++
++
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * The TextboxCellEditor class provides functionality for inline editing
++ * DataTable cell data with an INPUT TYPE=TEXT element.
++ *
++ * @namespace YAHOO.widget
++ * @class TextboxCellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.TextboxCellEditor = function(oConfigs) {
++    this._sId = "yui-textboxceditor" + YAHOO.widget.BaseCellEditor._nCount++;
++    widget.TextboxCellEditor.superclass.constructor.call(this, "textbox", oConfigs); 
++};
++
++// TextboxCellEditor extends BaseCellEditor
++lang.extend(widget.TextboxCellEditor, BCE, {
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextboxCellEditor public properties
++//
++/////////////////////////////////////////////////////////////////////////////
++/**
++ * Reference to the textbox element.
++ *
++ * @property textbox
++ */
++textbox : null,
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// TextboxCellEditor public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Render a form with input type=text.
++ *
++ * @method renderForm
++ */
++renderForm : function() {
++    var elTextbox;
++    // Bug 1802582: SF3/Mac needs a form element wrapping the input
++    if(ua.webkit>420) {
++        elTextbox = this.getContainerEl().appendChild(document.createElement("form")).appendChild(document.createElement("input"));
++    }
++    else {
++        elTextbox = this.getContainerEl().appendChild(document.createElement("input"));
++    }
++    elTextbox.type = "text";
++    this.textbox = elTextbox;
++
++    // Save on enter by default
++    // Bug: 1802582 Set up a listener on each textbox to track on keypress
++    // since SF/OP can't preventDefault on keydown
++    Ev.addListener(elTextbox, "keypress", function(v){
++        if((v.keyCode === 13)) {
++            // Prevent form submit
++            YAHOO.util.Event.preventDefault(v);
++            this.save();
++        }
++    }, this, true);
++
++    if(this.disableBtns) {
++        // By default this is no-op since enter saves by default
++        this.handleDisabledBtns();
++    }
++},
++
++/**
++ * Moves TextboxCellEditor UI to a cell.
++ *
++ * @method move
++ */
++move : function() {
++    this.textbox.style.width = this.getTdEl().offsetWidth + "px";
++    widget.TextboxCellEditor.superclass.move.call(this);
++},
++
++/**
++ * Resets TextboxCellEditor UI to initial state.
++ *
++ * @method resetForm
++ */
++resetForm : function() {
++    this.textbox.value = lang.isValue(this.value) ? this.value.toString() : "";
++},
++
++/**
++ * Sets focus in TextboxCellEditor.
++ *
++ * @method focus
++ */
++focus : function() {
++    // Bug 2303181, Bug 2263600
++    this.getDataTable()._focusEl(this.textbox);
++    this.textbox.select();
++},
++
++/**
++ * Returns new value for TextboxCellEditor.
++ *
++ * @method getInputValue
++ */
++getInputValue : function() {
++    return this.textbox.value;
++}
++
++});
++
++// Copy static members to TextboxCellEditor class
++lang.augmentObject(widget.TextboxCellEditor, BCE);
++
++
++
++
++
++
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// DataTable extension
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * CellEditor subclasses.
++ * @property DataTable.Editors
++ * @type Object
++ * @static
++ */
++DT.Editors = {
++    checkbox : widget.CheckboxCellEditor,
++    "date"   : widget.DateCellEditor,
++    dropdown : widget.DropdownCellEditor,
++    radio    : widget.RadioCellEditor,
++    textarea : widget.TextareaCellEditor,
++    textbox  : widget.TextboxCellEditor
++};
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++    
++/**
++ * Factory class for instantiating a BaseCellEditor subclass.
++ *
++ * @namespace YAHOO.widget
++ * @class CellEditor
++ * @extends YAHOO.widget.BaseCellEditor 
++ * @constructor
++ * @param sType {String} Type indicator, to map to YAHOO.widget.DataTable.Editors.
++ * @param oConfigs {Object} (Optional) Object literal of configs.
++ */
++widget.CellEditor = function(sType, oConfigs) {
++    // Point to one of the subclasses
++    if(sType && DT.Editors[sType]) {
++        lang.augmentObject(BCE, DT.Editors[sType]);
++        return new DT.Editors[sType](oConfigs);
++    }
++    else {
++        return new BCE(null, oConfigs);
++    }
++};
++
++var CE = widget.CellEditor;
++
++// Copy static members to CellEditor class
++lang.augmentObject(CE, BCE);
++
++
++})();
++
++YAHOO.register("datatable", YAHOO.widget.DataTable, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/datemath/datemath-debug.js b/pylons_app/public/js/yui/datemath/datemath-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datemath/datemath-debug.js
+@@ -0,0 +1,408 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
++* comparison. 
++* 
++* @module datemath
++*/
++
++/**
++* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
++* used for adding, subtracting, and comparing dates.
++* @namespace YAHOO.widget
++* @class DateMath
++*/
++YAHOO.widget.DateMath = {
++    /**
++    * Constant field representing Day
++    * @property DAY
++    * @static
++    * @final
++    * @type String
++    */
++    DAY : "D",
++
++    /**
++    * Constant field representing Week
++    * @property WEEK
++    * @static
++    * @final
++    * @type String
++    */
++    WEEK : "W",
++
++    /**
++    * Constant field representing Year
++    * @property YEAR
++    * @static
++    * @final
++    * @type String
++    */
++    YEAR : "Y",
++
++    /**
++    * Constant field representing Month
++    * @property MONTH
++    * @static
++    * @final
++    * @type String
++    */
++    MONTH : "M",
++
++    /**
++    * Constant field representing one day, in milliseconds
++    * @property ONE_DAY_MS
++    * @static
++    * @final
++    * @type Number
++    */
++    ONE_DAY_MS : 1000*60*60*24,
++    
++    /**
++     * Constant field representing the date in first week of January
++     * which identifies the first week of the year.
++     * <p>
++     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
++     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
++     * </p>
++     * @property WEEK_ONE_JAN_DATE
++     * @static
++     * @type Number
++     */
++    WEEK_ONE_JAN_DATE : 1,
++
++    /**
++    * Adds the specified amount of time to the this instance.
++    * @method add
++    * @param {Date} date The JavaScript Date object to perform addition on
++    * @param {String} field The field constant to be used for performing addition.
++    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
++    * @return {Date} The resulting Date object
++    */
++    add : function(date, field, amount) {
++        var d = new Date(date.getTime());
++        switch (field) {
++            case this.MONTH:
++                var newMonth = date.getMonth() + amount;
++                var years = 0;
++
++                if (newMonth < 0) {
++                    while (newMonth < 0) {
++                        newMonth += 12;
++                        years -= 1;
++                    }
++                } else if (newMonth > 11) {
++                    while (newMonth > 11) {
++                        newMonth -= 12;
++                        years += 1;
++                    }
++                }
++
++                d.setMonth(newMonth);
++                d.setFullYear(date.getFullYear() + years);
++                break;
++            case this.DAY:
++                this._addDays(d, amount);
++                // d.setDate(date.getDate() + amount);
++                break;
++            case this.YEAR:
++                d.setFullYear(date.getFullYear() + amount);
++                break;
++            case this.WEEK:
++                this._addDays(d, (amount * 7));
++                // d.setDate(date.getDate() + (amount * 7));
++                break;
++        }
++        return d;
++    },
++
++    /**
++     * Private helper method to account for bug in Safari 2 (webkit < 420)
++     * when Date.setDate(n) is called with n less than -128 or greater than 127.
++     * <p>
++     * Fix approach and original findings are available here:
++     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
++     * </p>
++     * @method _addDays
++     * @param {Date} d JavaScript date object
++     * @param {Number} nDays The number of days to add to the date object (can be negative)
++     * @private
++     */
++    _addDays : function(d, nDays) {
++        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
++            if (nDays < 0) {
++                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
++                for(var min = -128; nDays < min; nDays -= min) {
++                    d.setDate(d.getDate() + min);
++                }
++            } else {
++                // Ensure we don't go above 96 + 31 = 127
++                for(var max = 96; nDays > max; nDays -= max) {
++                    d.setDate(d.getDate() + max);
++                }
++            }
++            // nDays should be remainder between -128 and 96
++        }
++        d.setDate(d.getDate() + nDays);
++    },
++
++    /**
++    * Subtracts the specified amount of time from the this instance.
++    * @method subtract
++    * @param {Date} date The JavaScript Date object to perform subtraction on
++    * @param {Number} field The this field constant to be used for performing subtraction.
++    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
++    * @return {Date} The resulting Date object
++    */
++    subtract : function(date, field, amount) {
++        return this.add(date, field, (amount*-1));
++    },
++
++    /**
++    * Determines whether a given date is before another date on the calendar.
++    * @method before
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs before the compared date; false if not.
++    */
++    before : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() < ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is after another date on the calendar.
++    * @method after
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs after the compared date; false if not.
++    */
++    after : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() > ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is between two other dates on the calendar.
++    * @method between
++    * @param {Date} date  The date to check for
++    * @param {Date} dateBegin The start of the range
++    * @param {Date} dateEnd  The end of the range
++    * @return {Boolean} true if the date occurs between the compared dates; false if not.
++    */
++    between : function(date, dateBegin, dateEnd) {
++        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++    
++    /**
++    * Retrieves a JavaScript Date object representing January 1 of any given year.
++    * @method getJan1
++    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
++    * @return {Date} January 1 of the calendar year specified.
++    */
++    getJan1 : function(calendarYear) {
++        return this.getDate(calendarYear,0,1);
++    },
++
++    /**
++    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
++    * Passing January 1 to this function would return an offset value of zero.
++    * @method getDayOffset
++    * @param {Date} date The JavaScript date for which to find the offset
++    * @param {Number} calendarYear The calendar year to use for determining the offset
++    * @return {Number} The number of days since January 1 of the given year
++    */
++    getDayOffset : function(date, calendarYear) {
++        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
++        
++        // Find the number of days the passed in date is away from the calendar year start
++        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
++        return dayOffset;
++    },
++
++    /**
++    * Calculates the week number for the given date. Can currently support standard
++    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
++    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
++    * 
++    * @method getWeekNumber
++    * @param {Date} date The JavaScript date for which to find the week number
++    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
++    * Defaults to 0
++    * @param {Number} janDate The date in the first week of January which defines week one for the year
++    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
++    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
++    * 
++    * @return {Number} The number of the week containing the given date.
++    */
++    getWeekNumber : function(date, firstDayOfWeek, janDate) {
++
++        // Setup Defaults
++        firstDayOfWeek = firstDayOfWeek || 0;
++        janDate = janDate || this.WEEK_ONE_JAN_DATE;
++
++        var targetDate = this.clearTime(date),
++            startOfWeek,
++            endOfWeek;
++
++        if (targetDate.getDay() === firstDayOfWeek) { 
++            startOfWeek = targetDate;
++        } else {
++            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
++        }
++
++        var startYear = startOfWeek.getFullYear();
++
++        // DST shouldn't be a problem here, math is quicker than setDate();
++        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
++
++        var weekNum;
++        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
++            // If years don't match, endOfWeek is in Jan. and if the 
++            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
++            weekNum = 1;
++        } else {
++            // Get the 1st day of the 1st week, and 
++            // find how many days away we are from it.
++            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
++                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
++
++            // Round days to smoothen out 1 hr DST diff
++            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
++
++            // Calc. Full Weeks
++            var rem = daysDiff % 7;
++            var weeksDiff = (daysDiff - rem)/7;
++            weekNum = weeksDiff + 1;
++        }
++        return weekNum;
++    },
++
++    /**
++     * Get the first day of the week, for the give date. 
++     * @param {Date} dt The date in the week for which the first day is required.
++     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
++     * @return {Date} The first day of the week
++     */
++    getFirstDayOfWeek : function (dt, startOfWeek) {
++        startOfWeek = startOfWeek || 0;
++        var dayOfWeekIndex = dt.getDay(),
++            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
++
++        return this.subtract(dt, this.DAY, dayOfWeek);
++    },
++
++    /**
++    * Determines if a given week overlaps two different years.
++    * @method isYearOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different years.
++    */
++    isYearOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Determines if a given week overlaps two different months.
++    * @method isMonthOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different months.
++    */
++    isMonthOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Gets the first day of a month containing a given date.
++    * @method findMonthStart
++    * @param {Date} date The JavaScript Date used to calculate the month start
++    * @return {Date}  The JavaScript Date representing the first day of the month
++    */
++    findMonthStart : function(date) {
++        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
++        return start;
++    },
++
++    /**
++    * Gets the last day of a month containing a given date.
++    * @method findMonthEnd
++    * @param {Date} date The JavaScript Date used to calculate the month end
++    * @return {Date}  The JavaScript Date representing the last day of the month
++    */
++    findMonthEnd : function(date) {
++        var start = this.findMonthStart(date);
++        var nextMonth = this.add(start, this.MONTH, 1);
++        var end = this.subtract(nextMonth, this.DAY, 1);
++        return end;
++    },
++
++    /**
++    * Clears the time fields from a given date, effectively setting the time to 12 noon.
++    * @method clearTime
++    * @param {Date} date The JavaScript Date for which the time fields will be cleared
++    * @return {Date}  The JavaScript Date cleared of all time fields
++    */
++    clearTime : function(date) {
++        date.setHours(12,0,0,0);
++        return date;
++    },
++
++    /**
++     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
++     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
++     * set the year to 19xx if a year (xx) which is less than 100 is provided.
++     * <p>
++     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
++     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
++     * </p>
++     * @method getDate
++     * @param {Number} y Year.
++     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
++     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
++     * @return {Date} The JavaScript date object with year, month, date set as provided.
++     */
++    getDate : function(y, m, d) {
++        var dt = null;
++        if (YAHOO.lang.isUndefined(d)) {
++            d = 1;
++        }
++        if (y >= 100) {
++            dt = new Date(y, m, d);
++        } else {
++            dt = new Date();
++            dt.setFullYear(y);
++            dt.setMonth(m);
++            dt.setDate(d);
++            dt.setHours(0,0,0,0);
++        }
++        return dt;
++    }
++};
++YAHOO.register("datemath", YAHOO.widget.DateMath, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/datemath/datemath-min.js b/pylons_app/public/js/yui/datemath/datemath-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datemath/datemath-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.widget.DateMath={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:1000*60*60*24,WEEK_ONE_JAN_DATE:1,add:function(A,D,C){var F=new Date(A.getTime());switch(D){case this.MONTH:var E=A.getMonth()+C;var B=0;if(E<0){while(E<0){E+=12;B-=1;}}else{if(E>11){while(E>11){E-=12;B+=1;}}}F.setMonth(E);F.setFullYear(A.getFullYear()+B);break;case this.DAY:this._addDays(F,C);break;case this.YEAR:F.setFullYear(A.getFullYear()+C);break;case this.WEEK:this._addDays(F,(C*7));break;}return F;},_addDays:function(D,C){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420){if(C<0){for(var B=-128;C<B;C-=B){D.setDate(D.getDate()+B);}}else{for(var A=96;C>A;C-=A){D.setDate(D.getDate()+A);}}}D.setDate(D.getDate()+C);},subtract:function(A,C,B){return this.add(A,C,(B*-1));},before:function(C,B){var A=B.getTime();if(C.getTime()<A){return true;}else{return false;}},after:function(C,B){var A=B.getTime();if(C.getTime()>A){return true;}else{return false;}},between:function(B,A,C){if(this.after(B,A)&&this.before(B,C)){return true;}else{return false;}},getJan1:function(A){return this.getDate(A,0,1);},getDayOffset:function(B,D){var C=this.getJan1(D);var A=Math.ceil((B.getTime()-C.getTime())/this.ONE_DAY_MS);return A;},getWeekNumber:function(D,B,G){B=B||0;G=G||this.WEEK_ONE_JAN_DATE;var H=this.clearTime(D),L,M;if(H.getDay()===B){L=H;}else{L=this.getFirstDayOfWeek(H,B);}var I=L.getFullYear();M=new Date(L.getTime()+6*this.ONE_DAY_MS);var F;if(I!==M.getFullYear()&&M.getDate()>=G){F=1;}else{var E=this.clearTime(this.getDate(I,0,G)),A=this.getFirstDayOfWeek(E,B);var J=Math.round((H.getTime()-A.getTime())/this.ONE_DAY_MS);var K=J%7;var C=(J-K)/7;F=C+1;}return F;},getFirstDayOfWeek:function(D,A){A=A||0;var B=D.getDay(),C=(B-A+7)%7;return this.subtract(D,this.DAY,C);},isYearOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getFullYear()!=A.getFullYear()){C=true;}return C;},isMonthOverlapWeek:function(A){var C=false;var B=this.add(A,this.DAY,6);if(B.getMonth()!=A.getMonth()){C=true;}return C;},findMonthStart:function(A){var B=this.getDate(A.getFullYear(),A.getMonth(),1);return B;},findMonthEnd:function(B){var D=this.findMonthStart(B);var C=this.add(D,this.MONTH,1);var A=this.subtract(C,this.DAY,1);return A;},clearTime:function(A){A.setHours(12,0,0,0);return A;},getDate:function(D,A,C){var B=null;if(YAHOO.lang.isUndefined(C)){C=1;}if(D>=100){B=new Date(D,A,C);}else{B=new Date();B.setFullYear(D);B.setMonth(A);B.setDate(C);B.setHours(0,0,0,0);}return B;}};YAHOO.register("datemath",YAHOO.widget.DateMath,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/datemath/datemath.js b/pylons_app/public/js/yui/datemath/datemath.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/datemath/datemath.js
+@@ -0,0 +1,408 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++* The datemath module provides utility methods for basic JavaScript Date object manipulation and 
++* comparison. 
++* 
++* @module datemath
++*/
++
++/**
++* YAHOO.widget.DateMath is used for simple date manipulation. The class is a static utility
++* used for adding, subtracting, and comparing dates.
++* @namespace YAHOO.widget
++* @class DateMath
++*/
++YAHOO.widget.DateMath = {
++    /**
++    * Constant field representing Day
++    * @property DAY
++    * @static
++    * @final
++    * @type String
++    */
++    DAY : "D",
++
++    /**
++    * Constant field representing Week
++    * @property WEEK
++    * @static
++    * @final
++    * @type String
++    */
++    WEEK : "W",
++
++    /**
++    * Constant field representing Year
++    * @property YEAR
++    * @static
++    * @final
++    * @type String
++    */
++    YEAR : "Y",
++
++    /**
++    * Constant field representing Month
++    * @property MONTH
++    * @static
++    * @final
++    * @type String
++    */
++    MONTH : "M",
++
++    /**
++    * Constant field representing one day, in milliseconds
++    * @property ONE_DAY_MS
++    * @static
++    * @final
++    * @type Number
++    */
++    ONE_DAY_MS : 1000*60*60*24,
++    
++    /**
++     * Constant field representing the date in first week of January
++     * which identifies the first week of the year.
++     * <p>
++     * In the U.S, Jan 1st is normally used based on a Sunday start of week.
++     * ISO 8601, used widely throughout Europe, uses Jan 4th, based on a Monday start of week.
++     * </p>
++     * @property WEEK_ONE_JAN_DATE
++     * @static
++     * @type Number
++     */
++    WEEK_ONE_JAN_DATE : 1,
++
++    /**
++    * Adds the specified amount of time to the this instance.
++    * @method add
++    * @param {Date} date The JavaScript Date object to perform addition on
++    * @param {String} field The field constant to be used for performing addition.
++    * @param {Number} amount The number of units (measured in the field constant) to add to the date.
++    * @return {Date} The resulting Date object
++    */
++    add : function(date, field, amount) {
++        var d = new Date(date.getTime());
++        switch (field) {
++            case this.MONTH:
++                var newMonth = date.getMonth() + amount;
++                var years = 0;
++
++                if (newMonth < 0) {
++                    while (newMonth < 0) {
++                        newMonth += 12;
++                        years -= 1;
++                    }
++                } else if (newMonth > 11) {
++                    while (newMonth > 11) {
++                        newMonth -= 12;
++                        years += 1;
++                    }
++                }
++
++                d.setMonth(newMonth);
++                d.setFullYear(date.getFullYear() + years);
++                break;
++            case this.DAY:
++                this._addDays(d, amount);
++                // d.setDate(date.getDate() + amount);
++                break;
++            case this.YEAR:
++                d.setFullYear(date.getFullYear() + amount);
++                break;
++            case this.WEEK:
++                this._addDays(d, (amount * 7));
++                // d.setDate(date.getDate() + (amount * 7));
++                break;
++        }
++        return d;
++    },
++
++    /**
++     * Private helper method to account for bug in Safari 2 (webkit < 420)
++     * when Date.setDate(n) is called with n less than -128 or greater than 127.
++     * <p>
++     * Fix approach and original findings are available here:
++     * http://brianary.blogspot.com/2006/03/safari-date-bug.html
++     * </p>
++     * @method _addDays
++     * @param {Date} d JavaScript date object
++     * @param {Number} nDays The number of days to add to the date object (can be negative)
++     * @private
++     */
++    _addDays : function(d, nDays) {
++        if (YAHOO.env.ua.webkit && YAHOO.env.ua.webkit < 420) {
++            if (nDays < 0) {
++                // Ensure we don't go below -128 (getDate() is always 1 to 31, so we won't go above 127)
++                for(var min = -128; nDays < min; nDays -= min) {
++                    d.setDate(d.getDate() + min);
++                }
++            } else {
++                // Ensure we don't go above 96 + 31 = 127
++                for(var max = 96; nDays > max; nDays -= max) {
++                    d.setDate(d.getDate() + max);
++                }
++            }
++            // nDays should be remainder between -128 and 96
++        }
++        d.setDate(d.getDate() + nDays);
++    },
++
++    /**
++    * Subtracts the specified amount of time from the this instance.
++    * @method subtract
++    * @param {Date} date The JavaScript Date object to perform subtraction on
++    * @param {Number} field The this field constant to be used for performing subtraction.
++    * @param {Number} amount The number of units (measured in the field constant) to subtract from the date.
++    * @return {Date} The resulting Date object
++    */
++    subtract : function(date, field, amount) {
++        return this.add(date, field, (amount*-1));
++    },
++
++    /**
++    * Determines whether a given date is before another date on the calendar.
++    * @method before
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs before the compared date; false if not.
++    */
++    before : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() < ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is after another date on the calendar.
++    * @method after
++    * @param {Date} date  The Date object to compare with the compare argument
++    * @param {Date} compareTo The Date object to use for the comparison
++    * @return {Boolean} true if the date occurs after the compared date; false if not.
++    */
++    after : function(date, compareTo) {
++        var ms = compareTo.getTime();
++        if (date.getTime() > ms) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++
++    /**
++    * Determines whether a given date is between two other dates on the calendar.
++    * @method between
++    * @param {Date} date  The date to check for
++    * @param {Date} dateBegin The start of the range
++    * @param {Date} dateEnd  The end of the range
++    * @return {Boolean} true if the date occurs between the compared dates; false if not.
++    */
++    between : function(date, dateBegin, dateEnd) {
++        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
++            return true;
++        } else {
++            return false;
++        }
++    },
++    
++    /**
++    * Retrieves a JavaScript Date object representing January 1 of any given year.
++    * @method getJan1
++    * @param {Number} calendarYear  The calendar year for which to retrieve January 1
++    * @return {Date} January 1 of the calendar year specified.
++    */
++    getJan1 : function(calendarYear) {
++        return this.getDate(calendarYear,0,1);
++    },
++
++    /**
++    * Calculates the number of days the specified date is from January 1 of the specified calendar year.
++    * Passing January 1 to this function would return an offset value of zero.
++    * @method getDayOffset
++    * @param {Date} date The JavaScript date for which to find the offset
++    * @param {Number} calendarYear The calendar year to use for determining the offset
++    * @return {Number} The number of days since January 1 of the given year
++    */
++    getDayOffset : function(date, calendarYear) {
++        var beginYear = this.getJan1(calendarYear); // Find the start of the year. This will be in week 1.
++        
++        // Find the number of days the passed in date is away from the calendar year start
++        var dayOffset = Math.ceil((date.getTime()-beginYear.getTime()) / this.ONE_DAY_MS);
++        return dayOffset;
++    },
++
++    /**
++    * Calculates the week number for the given date. Can currently support standard
++    * U.S. week numbers, based on Jan 1st defining the 1st week of the year, and 
++    * ISO8601 week numbers, based on Jan 4th defining the 1st week of the year.
++    * 
++    * @method getWeekNumber
++    * @param {Date} date The JavaScript date for which to find the week number
++    * @param {Number} firstDayOfWeek The index of the first day of the week (0 = Sun, 1 = Mon ... 6 = Sat).
++    * Defaults to 0
++    * @param {Number} janDate The date in the first week of January which defines week one for the year
++    * Defaults to the value of YAHOO.widget.DateMath.WEEK_ONE_JAN_DATE, which is 1 (Jan 1st). 
++    * For the U.S, this is normally Jan 1st. ISO8601 uses Jan 4th to define the first week of the year.
++    * 
++    * @return {Number} The number of the week containing the given date.
++    */
++    getWeekNumber : function(date, firstDayOfWeek, janDate) {
++
++        // Setup Defaults
++        firstDayOfWeek = firstDayOfWeek || 0;
++        janDate = janDate || this.WEEK_ONE_JAN_DATE;
++
++        var targetDate = this.clearTime(date),
++            startOfWeek,
++            endOfWeek;
++
++        if (targetDate.getDay() === firstDayOfWeek) { 
++            startOfWeek = targetDate;
++        } else {
++            startOfWeek = this.getFirstDayOfWeek(targetDate, firstDayOfWeek);
++        }
++
++        var startYear = startOfWeek.getFullYear();
++
++        // DST shouldn't be a problem here, math is quicker than setDate();
++        endOfWeek = new Date(startOfWeek.getTime() + 6*this.ONE_DAY_MS);
++
++        var weekNum;
++        if (startYear !== endOfWeek.getFullYear() && endOfWeek.getDate() >= janDate) {
++            // If years don't match, endOfWeek is in Jan. and if the 
++            // week has WEEK_ONE_JAN_DATE in it, it's week one by definition.
++            weekNum = 1;
++        } else {
++            // Get the 1st day of the 1st week, and 
++            // find how many days away we are from it.
++            var weekOne = this.clearTime(this.getDate(startYear, 0, janDate)),
++                weekOneDayOne = this.getFirstDayOfWeek(weekOne, firstDayOfWeek);
++
++            // Round days to smoothen out 1 hr DST diff
++            var daysDiff  = Math.round((targetDate.getTime() - weekOneDayOne.getTime())/this.ONE_DAY_MS);
++
++            // Calc. Full Weeks
++            var rem = daysDiff % 7;
++            var weeksDiff = (daysDiff - rem)/7;
++            weekNum = weeksDiff + 1;
++        }
++        return weekNum;
++    },
++
++    /**
++     * Get the first day of the week, for the give date. 
++     * @param {Date} dt The date in the week for which the first day is required.
++     * @param {Number} startOfWeek The index for the first day of the week, 0 = Sun, 1 = Mon ... 6 = Sat (defaults to 0)
++     * @return {Date} The first day of the week
++     */
++    getFirstDayOfWeek : function (dt, startOfWeek) {
++        startOfWeek = startOfWeek || 0;
++        var dayOfWeekIndex = dt.getDay(),
++            dayOfWeek = (dayOfWeekIndex - startOfWeek + 7) % 7;
++
++        return this.subtract(dt, this.DAY, dayOfWeek);
++    },
++
++    /**
++    * Determines if a given week overlaps two different years.
++    * @method isYearOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different years.
++    */
++    isYearOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getFullYear() != weekBeginDate.getFullYear()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Determines if a given week overlaps two different months.
++    * @method isMonthOverlapWeek
++    * @param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
++    * @return {Boolean} true if the date overlaps two different months.
++    */
++    isMonthOverlapWeek : function(weekBeginDate) {
++        var overlaps = false;
++        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
++        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
++            overlaps = true;
++        }
++        return overlaps;
++    },
++
++    /**
++    * Gets the first day of a month containing a given date.
++    * @method findMonthStart
++    * @param {Date} date The JavaScript Date used to calculate the month start
++    * @return {Date}  The JavaScript Date representing the first day of the month
++    */
++    findMonthStart : function(date) {
++        var start = this.getDate(date.getFullYear(), date.getMonth(), 1);
++        return start;
++    },
++
++    /**
++    * Gets the last day of a month containing a given date.
++    * @method findMonthEnd
++    * @param {Date} date The JavaScript Date used to calculate the month end
++    * @return {Date}  The JavaScript Date representing the last day of the month
++    */
++    findMonthEnd : function(date) {
++        var start = this.findMonthStart(date);
++        var nextMonth = this.add(start, this.MONTH, 1);
++        var end = this.subtract(nextMonth, this.DAY, 1);
++        return end;
++    },
++
++    /**
++    * Clears the time fields from a given date, effectively setting the time to 12 noon.
++    * @method clearTime
++    * @param {Date} date The JavaScript Date for which the time fields will be cleared
++    * @return {Date}  The JavaScript Date cleared of all time fields
++    */
++    clearTime : function(date) {
++        date.setHours(12,0,0,0);
++        return date;
++    },
++
++    /**
++     * Returns a new JavaScript Date object, representing the given year, month and date. Time fields (hr, min, sec, ms) on the new Date object
++     * are set to 0. The method allows Date instances to be created with the a year less than 100. "new Date(year, month, date)" implementations 
++     * set the year to 19xx if a year (xx) which is less than 100 is provided.
++     * <p>
++     * <em>NOTE:</em>Validation on argument values is not performed. It is the caller's responsibility to ensure
++     * arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
++     * </p>
++     * @method getDate
++     * @param {Number} y Year.
++     * @param {Number} m Month index from 0 (Jan) to 11 (Dec).
++     * @param {Number} d (optional) Date from 1 to 31. If not provided, defaults to 1.
++     * @return {Date} The JavaScript date object with year, month, date set as provided.
++     */
++    getDate : function(y, m, d) {
++        var dt = null;
++        if (YAHOO.lang.isUndefined(d)) {
++            d = 1;
++        }
++        if (y >= 100) {
++            dt = new Date(y, m, d);
++        } else {
++            dt = new Date();
++            dt.setFullYear(y);
++            dt.setMonth(m);
++            dt.setDate(d);
++            dt.setHours(0,0,0,0);
++        }
++        return dt;
++    }
++};
++YAHOO.register("datemath", YAHOO.widget.DateMath, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/dom/dom-debug.js b/pylons_app/public/js/yui/dom/dom-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/dom/dom-debug.js
+@@ -0,0 +1,1872 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The dom module provides helper methods for manipulating Dom elements.
++ * @module dom
++ *
++ */
++
++(function() {
++    // for use with generateId (global to save state if Dom is overwritten)
++    YAHOO.env._id_counter = YAHOO.env._id_counter || 0;
++
++    // internal shorthand
++    var Y = YAHOO.util,
++        lang = YAHOO.lang,
++        UA = YAHOO.env.ua,
++        trim = YAHOO.lang.trim,
++        propertyCache = {}, // for faster hyphen converts
++        reCache = {}, // cache className regexes
++        RE_TABLE = /^t(?:able|d|h)$/i, // for _calcBorders
++        RE_COLOR = /color$/i,
++
++        // DOM aliases 
++        document = window.document,     
++        documentElement = document.documentElement,
++
++        // string constants
++        OWNER_DOCUMENT = 'ownerDocument',
++        DEFAULT_VIEW = 'defaultView',
++        DOCUMENT_ELEMENT = 'documentElement',
++        COMPAT_MODE = 'compatMode',
++        OFFSET_LEFT = 'offsetLeft',
++        OFFSET_TOP = 'offsetTop',
++        OFFSET_PARENT = 'offsetParent',
++        PARENT_NODE = 'parentNode',
++        NODE_TYPE = 'nodeType',
++        TAG_NAME = 'tagName',
++        SCROLL_LEFT = 'scrollLeft',
++        SCROLL_TOP = 'scrollTop',
++        GET_BOUNDING_CLIENT_RECT = 'getBoundingClientRect',
++        GET_COMPUTED_STYLE = 'getComputedStyle',
++        CURRENT_STYLE = 'currentStyle',
++        CSS1_COMPAT = 'CSS1Compat',
++        _BACK_COMPAT = 'BackCompat',
++        _CLASS = 'class', // underscore due to reserved word
++        CLASS_NAME = 'className',
++        EMPTY = '',
++        SPACE = ' ',
++        C_START = '(?:^|\\s)',
++        C_END = '(?= |$)',
++        G = 'g',
++        POSITION = 'position',
++        FIXED = 'fixed',
++        RELATIVE = 'relative',
++        LEFT = 'left',
++        TOP = 'top',
++        MEDIUM = 'medium',
++        BORDER_LEFT_WIDTH = 'borderLeftWidth',
++        BORDER_TOP_WIDTH = 'borderTopWidth',
++    
++    // brower detection
++        isOpera = UA.opera,
++        isSafari = UA.webkit, 
++        isGecko = UA.gecko, 
++        isIE = UA.ie; 
++    
++    /**
++     * Provides helper methods for DOM elements.
++     * @namespace YAHOO.util
++     * @class Dom
++     * @requires yahoo, event
++     */
++    Y.Dom = {
++        CUSTOM_ATTRIBUTES: (!documentElement.hasAttribute) ? { // IE < 8
++            'for': 'htmlFor',
++            'class': CLASS_NAME
++        } : { // w3c
++            'htmlFor': 'for',
++            'className': _CLASS
++        },
++
++        DOT_ATTRIBUTES: {},
++
++        /**
++         * Returns an HTMLElement reference.
++         * @method get
++         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements.
++         */
++        get: function(el) {
++            var id, nodes, c, i, len, attr;
++
++            if (el) {
++                if (el[NODE_TYPE] || el.item) { // Node, or NodeList
++                    return el;
++                }
++
++                if (typeof el === 'string') { // id
++                    id = el;
++                    el = document.getElementById(el);
++                    attr = (el) ? el.attributes : null;
++                    if (el && attr && attr.id && attr.id.value === id) { // IE: avoid false match on "name" attribute
++                        return el;
++                    } else if (el && document.all) { // filter by name
++                        el = null;
++                        nodes = document.all[id];
++                        for (i = 0, len = nodes.length; i < len; ++i) {
++                            if (nodes[i].id === id) {
++                                return nodes[i];
++                            }
++                        }
++                    }
++                    return el;
++                }
++                
++                if (YAHOO.util.Element && el instanceof YAHOO.util.Element) {
++                    el = el.get('element');
++                }
++
++                if ('length' in el) { // array-like 
++                    c = [];
++                    for (i = 0, len = el.length; i < len; ++i) {
++                        c[c.length] = Y.Dom.get(el[i]);
++                    }
++                    
++                    return c;
++                }
++
++                return el; // some other object, just pass it back
++            }
++
++            return null;
++        },
++    
++        getComputedStyle: function(el, property) {
++            if (window[GET_COMPUTED_STYLE]) {
++                return el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null)[property];
++            } else if (el[CURRENT_STYLE]) {
++                return Y.Dom.IE_ComputedStyle.get(el, property);
++            }
++        },
++
++        /**
++         * Normalizes currentStyle and ComputedStyle.
++         * @method getStyle
++         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {String} property The style property whose value is returned.
++         * @return {String | Array} The current value of the style property for the element(s).
++         */
++        getStyle: function(el, property) {
++            return Y.Dom.batch(el, Y.Dom._getStyle, property);
++        },
++
++        // branching at load instead of runtime
++        _getStyle: function() {
++            if (window[GET_COMPUTED_STYLE]) { // W3C DOM method
++                return function(el, property) {
++                    property = (property === 'float') ? property = 'cssFloat' :
++                            Y.Dom._toCamel(property);
++
++                    var value = el.style[property],
++                        computed;
++                    
++                    if (!value) {
++                        computed = el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null);
++                        if (computed) { // test computed before touching for safari
++                            value = computed[property];
++                        }
++                    }
++                    
++                    return value;
++                };
++            } else if (documentElement[CURRENT_STYLE]) {
++                return function(el, property) {                         
++                    var value;
++
++                    switch(property) {
++                        case 'opacity' :// IE opacity uses filter
++                            value = 100;
++                            try { // will error if no DXImageTransform
++                                value = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
++
++                            } catch(e) {
++                                try { // make sure its in the document
++                                    value = el.filters('alpha').opacity;
++                                } catch(err) {
++                                    YAHOO.log('getStyle: IE filter failed',
++                                            'error', 'Dom');
++                                }
++                            }
++                            return value / 100;
++                        case 'float': // fix reserved word
++                            property = 'styleFloat'; // fall through
++                        default: 
++                            property = Y.Dom._toCamel(property);
++                            value = el[CURRENT_STYLE] ? el[CURRENT_STYLE][property] : null;
++                            return ( el.style[property] || value );
++                    }
++                };
++            }
++        }(),
++    
++        /**
++         * Wrapper for setting style properties of HTMLElements.  Normalizes "opacity" across modern browsers.
++         * @method setStyle
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {String} property The style property to be set.
++         * @param {String} val The value to apply to the given property.
++         */
++        setStyle: function(el, property, val) {
++            Y.Dom.batch(el, Y.Dom._setStyle, { prop: property, val: val });
++        },
++
++        _setStyle: function() {
++            if (isIE) {
++                return function(el, args) {
++                    var property = Y.Dom._toCamel(args.prop),
++                        val = args.val;
++
++                    if (el) {
++                        switch (property) {
++                            case 'opacity':
++                                if ( lang.isString(el.style.filter) ) { // in case not appended
++                                    el.style.filter = 'alpha(opacity=' + val * 100 + ')';
++                                    
++                                    if (!el[CURRENT_STYLE] || !el[CURRENT_STYLE].hasLayout) {
++                                        el.style.zoom = 1; // when no layout or cant tell
++                                    }
++                                }
++                                break;
++                            case 'float':
++                                property = 'styleFloat';
++                            default:
++                            el.style[property] = val;
++                        }
++                    } else {
++                        YAHOO.log('element ' + el + ' is undefined', 'error', 'Dom');
++                    }
++                };
++            } else {
++                return function(el, args) {
++                    var property = Y.Dom._toCamel(args.prop),
++                        val = args.val;
++                    if (el) {
++                        if (property == 'float') {
++                            property = 'cssFloat';
++                        }
++                        el.style[property] = val;
++                    } else {
++                        YAHOO.log('element ' + el + ' is undefined', 'error', 'Dom');
++                    }
++                };
++            }
++
++        }(),
++        
++        /**
++         * Gets the current position of an element based on page coordinates. 
++         * Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method getXY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM
++         * reference, or an Array of IDs and/or HTMLElements
++         * @return {Array} The XY position of the element(s)
++         */
++        getXY: function(el) {
++            return Y.Dom.batch(el, Y.Dom._getXY);
++        },
++
++        _canPosition: function(el) {
++            return ( Y.Dom._getStyle(el, 'display') !== 'none' && Y.Dom._inDoc(el) );
++        },
++
++        _getXY: function() {
++            if (document[DOCUMENT_ELEMENT][GET_BOUNDING_CLIENT_RECT]) {
++                return function(node) {
++                    var scrollLeft, scrollTop, box, doc,
++                        off1, off2, mode, bLeft, bTop,
++                        floor = Math.floor, // TODO: round?
++                        xy = false;
++
++                    if (Y.Dom._canPosition(node)) {
++                        box = node[GET_BOUNDING_CLIENT_RECT]();
++                        doc = node[OWNER_DOCUMENT];
++                        scrollLeft = Y.Dom.getDocumentScrollLeft(doc);
++                        scrollTop = Y.Dom.getDocumentScrollTop(doc);
++                        xy = [floor(box[LEFT]), floor(box[TOP])];
++
++                        if (isIE && UA.ie < 8) { // IE < 8: viewport off by 2
++                            off1 = 2;
++                            off2 = 2;
++                            mode = doc[COMPAT_MODE];
++
++                            if (UA.ie === 6) {
++                                if (mode !== _BACK_COMPAT) {
++                                    off1 = 0;
++                                    off2 = 0;
++                                }
++                            }
++                            
++                            if ((mode === _BACK_COMPAT)) {
++                                bLeft = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_LEFT_WIDTH);
++                                bTop = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_TOP_WIDTH);
++                                if (bLeft !== MEDIUM) {
++                                    off1 = parseInt(bLeft, 10);
++                                }
++                                if (bTop !== MEDIUM) {
++                                    off2 = parseInt(bTop, 10);
++                                }
++                            }
++                            
++                            xy[0] -= off1;
++                            xy[1] -= off2;
++
++                        }
++
++                        if ((scrollTop || scrollLeft)) {
++                            xy[0] += scrollLeft;
++                            xy[1] += scrollTop;
++                        }
++
++                        // gecko may return sub-pixel (non-int) values
++                        xy[0] = floor(xy[0]);
++                        xy[1] = floor(xy[1]);
++                    } else {
++                        YAHOO.log('getXY failed: element not positionable (either not in a document or not displayed)', 'error', 'Dom');
++                    }
++
++                    return xy;
++                };
++            } else {
++                return function(node) { // ff2, safari: manually calculate by crawling up offsetParents
++                    var docScrollLeft, docScrollTop,
++                        scrollTop, scrollLeft,
++                        bCheck,
++                        xy = false,
++                        parentNode = node;
++
++                    if  (Y.Dom._canPosition(node) ) {
++                        xy = [node[OFFSET_LEFT], node[OFFSET_TOP]];
++                        docScrollLeft = Y.Dom.getDocumentScrollLeft(node[OWNER_DOCUMENT]);
++                        docScrollTop = Y.Dom.getDocumentScrollTop(node[OWNER_DOCUMENT]);
++
++                        // TODO: refactor with !! or just falsey
++                        bCheck = ((isGecko || UA.webkit > 519) ? true : false);
++
++                        // TODO: worth refactoring for TOP/LEFT only?
++                        while ((parentNode = parentNode[OFFSET_PARENT])) {
++                            xy[0] += parentNode[OFFSET_LEFT];
++                            xy[1] += parentNode[OFFSET_TOP];
++                            if (bCheck) {
++                                xy = Y.Dom._calcBorders(parentNode, xy);
++                            }
++                        }
++
++                        // account for any scrolled ancestors
++                        if (Y.Dom._getStyle(node, POSITION) !== FIXED) {
++                            parentNode = node;
++
++                            while ((parentNode = parentNode[PARENT_NODE]) && parentNode[TAG_NAME]) {
++                                scrollTop = parentNode[SCROLL_TOP];
++                                scrollLeft = parentNode[SCROLL_LEFT];
++
++                                //Firefox does something funky with borders when overflow is not visible.
++                                if (isGecko && (Y.Dom._getStyle(parentNode, 'overflow') !== 'visible')) {
++                                        xy = Y.Dom._calcBorders(parentNode, xy);
++                                }
++
++                                if (scrollTop || scrollLeft) {
++                                    xy[0] -= scrollLeft;
++                                    xy[1] -= scrollTop;
++                                }
++                            }
++                            xy[0] += docScrollLeft;
++                            xy[1] += docScrollTop;
++
++                        } else {
++                            //Fix FIXED position -- add scrollbars
++                            if (isOpera) {
++                                xy[0] -= docScrollLeft;
++                                xy[1] -= docScrollTop;
++                            } else if (isSafari || isGecko) {
++                                xy[0] += docScrollLeft;
++                                xy[1] += docScrollTop;
++                            }
++                        }
++                        //Round the numbers so we get sane data back
++                        xy[0] = Math.floor(xy[0]);
++                        xy[1] = Math.floor(xy[1]);
++                    } else {
++                        YAHOO.log('getXY failed: element not positionable (either not in a document or not displayed)', 'error', 'Dom');
++                    }
++                    return xy;                
++                };
++            }
++        }(), // NOTE: Executing for loadtime branching
++        
++        /**
++         * Gets the current X position of an element based on page coordinates.  The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method getX
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
++         * @return {Number | Array} The X position of the element(s)
++         */
++        getX: function(el) {
++            var f = function(el) {
++                return Y.Dom.getXY(el)[0];
++            };
++            
++            return Y.Dom.batch(el, f, Y.Dom, true);
++        },
++        
++        /**
++         * Gets the current Y position of an element based on page coordinates.  Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method getY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
++         * @return {Number | Array} The Y position of the element(s)
++         */
++        getY: function(el) {
++            var f = function(el) {
++                return Y.Dom.getXY(el)[1];
++            };
++            
++            return Y.Dom.batch(el, f, Y.Dom, true);
++        },
++        
++        /**
++         * Set the position of an html element in page coordinates, regardless of how the element is positioned.
++         * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method setXY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
++         * @param {Array} pos Contains X & Y values for new position (coordinates are page-based)
++         * @param {Boolean} noRetry By default we try and set the position a second time if the first fails
++         */
++        setXY: function(el, pos, noRetry) {
++            Y.Dom.batch(el, Y.Dom._setXY, { pos: pos, noRetry: noRetry });
++        },
++
++        _setXY: function(node, args) {
++            var pos = Y.Dom._getStyle(node, POSITION),
++                setStyle = Y.Dom.setStyle,
++                xy = args.pos,
++                noRetry = args.noRetry,
++
++                delta = [ // assuming pixels; if not we will have to retry
++                    parseInt( Y.Dom.getComputedStyle(node, LEFT), 10 ),
++                    parseInt( Y.Dom.getComputedStyle(node, TOP), 10 )
++                ],
++
++                currentXY,
++                newXY;
++        
++            if (pos == 'static') { // default to relative
++                pos = RELATIVE;
++                setStyle(node, POSITION, pos);
++            }
++
++            currentXY = Y.Dom._getXY(node);
++
++            if (!xy || currentXY === false) { // has to be part of doc to have xy
++                YAHOO.log('xy failed: node not available', 'error', 'Node');
++                return false; 
++            }
++            
++            if ( isNaN(delta[0]) ) {// in case of 'auto'
++                delta[0] = (pos == RELATIVE) ? 0 : node[OFFSET_LEFT];
++            } 
++            if ( isNaN(delta[1]) ) { // in case of 'auto'
++                delta[1] = (pos == RELATIVE) ? 0 : node[OFFSET_TOP];
++            } 
++
++            if (xy[0] !== null) { // from setX
++                setStyle(node, LEFT, xy[0] - currentXY[0] + delta[0] + 'px');
++            }
++
++            if (xy[1] !== null) { // from setY
++                setStyle(node, TOP, xy[1] - currentXY[1] + delta[1] + 'px');
++            }
++          
++            if (!noRetry) {
++                newXY = Y.Dom._getXY(node);
++
++                // if retry is true, try one more time if we miss 
++               if ( (xy[0] !== null && newXY[0] != xy[0]) || 
++                    (xy[1] !== null && newXY[1] != xy[1]) ) {
++                   Y.Dom._setXY(node, { pos: xy, noRetry: true });
++               }
++            }        
++
++            YAHOO.log('setXY setting position to ' + xy, 'info', 'Node');
++        },
++        
++        /**
++         * Set the X position of an html element in page coordinates, regardless of how the element is positioned.
++         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method setX
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {Int} x The value to use as the X coordinate for the element(s).
++         */
++        setX: function(el, x) {
++            Y.Dom.setXY(el, [x, null]);
++        },
++        
++        /**
++         * Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
++         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method setY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {Int} x To use as the Y coordinate for the element(s).
++         */
++        setY: function(el, y) {
++            Y.Dom.setXY(el, [null, y]);
++        },
++        
++        /**
++         * Returns the region position of the given element.
++         * The element must be part of the DOM tree to have a region (display:none or elements not appended return false).
++         * @method getRegion
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data.
++         */
++        getRegion: function(el) {
++            var f = function(el) {
++                var region = false;
++                if ( Y.Dom._canPosition(el) ) {
++                    region = Y.Region.getRegion(el);
++                    YAHOO.log('getRegion returning ' + region, 'info', 'Dom');
++                } else {
++                    YAHOO.log('getRegion failed: element not positionable (either not in a document or not displayed)', 'error', 'Dom');
++                }
++
++                return region;
++            };
++            
++            return Y.Dom.batch(el, f, Y.Dom, true);
++        },
++        
++        /**
++         * Returns the width of the client (viewport).
++         * @method getClientWidth
++         * @deprecated Now using getViewportWidth.  This interface left intact for back compat.
++         * @return {Int} The width of the viewable area of the page.
++         */
++        getClientWidth: function() {
++            return Y.Dom.getViewportWidth();
++        },
++        
++        /**
++         * Returns the height of the client (viewport).
++         * @method getClientHeight
++         * @deprecated Now using getViewportHeight.  This interface left intact for back compat.
++         * @return {Int} The height of the viewable area of the page.
++         */
++        getClientHeight: function() {
++            return Y.Dom.getViewportHeight();
++        },
++
++        /**
++         * Returns an array of HTMLElements with the given class.
++         * For optimized performance, include a tag and/or root node when possible.
++         * Note: This method operates against a live collection, so modifying the 
++         * collection in the callback (removing/appending nodes, etc.) will have
++         * side effects.  Instead you should iterate the returned nodes array,
++         * as you would with the native "getElementsByTagName" method. 
++         * @method getElementsByClassName
++         * @param {String} className The class name to match against
++         * @param {String} tag (optional) The tag name of the elements being collected
++         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point.
++         * This element is not included in the className scan.
++         * @param {Function} apply (optional) A function to apply to each element when found 
++         * @param {Any} o (optional) An optional arg that is passed to the supplied method
++         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
++         * @return {Array} An array of elements that have the given class name
++         */
++        getElementsByClassName: function(className, tag, root, apply, o, overrides) {
++            tag = tag || '*';
++            root = (root) ? Y.Dom.get(root) : null || document; 
++            if (!root) {
++                return [];
++            }
++
++            var nodes = [],
++                elements = root.getElementsByTagName(tag),
++                hasClass = Y.Dom.hasClass;
++
++            for (var i = 0, len = elements.length; i < len; ++i) {
++                if ( hasClass(elements[i], className) ) {
++                    nodes[nodes.length] = elements[i];
++                }
++            }
++            
++            if (apply) {
++                Y.Dom.batch(nodes, apply, o, overrides);
++            }
++
++            return nodes;
++        },
++
++        /**
++         * Determines whether an HTMLElement has the given className.
++         * @method hasClass
++         * @param {String | HTMLElement | Array} el The element or collection to test
++         * @param {String} className the class name to search for
++         * @return {Boolean | Array} A boolean value or array of boolean values
++         */
++        hasClass: function(el, className) {
++            return Y.Dom.batch(el, Y.Dom._hasClass, className);
++        },
++
++        _hasClass: function(el, className) {
++            var ret = false,
++                current;
++            
++            if (el && className) {
++                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                if (className.exec) {
++                    ret = className.test(current);
++                } else {
++                    ret = className && (SPACE + current + SPACE).
++                        indexOf(SPACE + className + SPACE) > -1;
++                }
++            } else {
++                YAHOO.log('hasClass called with invalid arguments', 'warn', 'Dom');
++            }
++
++            return ret;
++        },
++    
++        /**
++         * Adds a class name to a given element or collection of elements.
++         * @method addClass         
++         * @param {String | HTMLElement | Array} el The element or collection to add the class to
++         * @param {String} className the class name to add to the class attribute
++         * @return {Boolean | Array} A pass/fail boolean or array of booleans
++         */
++        addClass: function(el, className) {
++            return Y.Dom.batch(el, Y.Dom._addClass, className);
++        },
++
++        _addClass: function(el, className) {
++            var ret = false,
++                current;
++
++            if (el && className) {
++                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                if ( !Y.Dom._hasClass(el, className) ) {
++                    Y.Dom.setAttribute(el, CLASS_NAME, trim(current + SPACE + className));
++                    ret = true;
++                }
++            } else {
++                YAHOO.log('addClass called with invalid arguments', 'warn', 'Dom');
++            }
++
++            return ret;
++        },
++    
++        /**
++         * Removes a class name from a given element or collection of elements.
++         * @method removeClass         
++         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
++         * @param {String} className the class name to remove from the class attribute
++         * @return {Boolean | Array} A pass/fail boolean or array of booleans
++         */
++        removeClass: function(el, className) {
++            return Y.Dom.batch(el, Y.Dom._removeClass, className);
++        },
++        
++        _removeClass: function(el, className) {
++            var ret = false,
++                current,
++                newClass,
++                attr;
++
++            if (el && className) {
++                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                Y.Dom.setAttribute(el, CLASS_NAME, current.replace(Y.Dom._getClassRegex(className), EMPTY));
++
++                newClass = Y.Dom._getAttribute(el, CLASS_NAME);
++                if (current !== newClass) { // else nothing changed
++                    Y.Dom.setAttribute(el, CLASS_NAME, trim(newClass)); // trim after comparing to current class
++                    ret = true;
++
++                    if (Y.Dom._getAttribute(el, CLASS_NAME) === '') { // remove class attribute if empty
++                        attr = (el.hasAttribute && el.hasAttribute(_CLASS)) ? _CLASS : CLASS_NAME;
++                        YAHOO.log('removeClass removing empty class attribute', 'info', 'Dom');
++                        el.removeAttribute(attr);
++                    }
++                }
++
++            } else {
++                YAHOO.log('removeClass called with invalid arguments', 'warn', 'Dom');
++            }
++
++            return ret;
++        },
++        
++        /**
++         * Replace a class with another class for a given element or collection of elements.
++         * If no oldClassName is present, the newClassName is simply added.
++         * @method replaceClass  
++         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
++         * @param {String} oldClassName the class name to be replaced
++         * @param {String} newClassName the class name that will be replacing the old class name
++         * @return {Boolean | Array} A pass/fail boolean or array of booleans
++         */
++        replaceClass: function(el, oldClassName, newClassName) {
++            return Y.Dom.batch(el, Y.Dom._replaceClass, { from: oldClassName, to: newClassName });
++        },
++
++        _replaceClass: function(el, classObj) {
++            var className,
++                from,
++                to,
++                ret = false,
++                current;
++
++            if (el && classObj) {
++                from = classObj.from;
++                to = classObj.to;
++
++                if (!to) {
++                    ret = false;
++                }  else if (!from) { // just add if no "from"
++                    ret = Y.Dom._addClass(el, classObj.to);
++                } else if (from !== to) { // else nothing to replace
++                    // May need to lead with DBLSPACE?
++                    current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                    className = (SPACE + current.replace(Y.Dom._getClassRegex(from), SPACE + to)).
++                               split(Y.Dom._getClassRegex(to));
++
++                    // insert to into what would have been the first occurrence slot
++                    className.splice(1, 0, SPACE + to);
++                    Y.Dom.setAttribute(el, CLASS_NAME, trim(className.join(EMPTY)));
++                    ret = true;
++                }
++            } else {
++                YAHOO.log('replaceClass called with invalid arguments', 'warn', 'Dom');
++            }
++
++            return ret;
++        },
++        
++        /**
++         * Returns an ID and applies it to the element "el", if provided.
++         * @method generateId  
++         * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
++         * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
++         * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element)
++         */
++        generateId: function(el, prefix) {
++            prefix = prefix || 'yui-gen';
++
++            var f = function(el) {
++                if (el && el.id) { // do not override existing ID
++                    YAHOO.log('generateId returning existing id ' + el.id, 'info', 'Dom');
++                    return el.id;
++                }
++
++                var id = prefix + YAHOO.env._id_counter++;
++                YAHOO.log('generateId generating ' + id, 'info', 'Dom');
++
++                if (el) {
++                    if (el[OWNER_DOCUMENT] && el[OWNER_DOCUMENT].getElementById(id)) { // in case one already exists
++                        // use failed id plus prefix to help ensure uniqueness
++                        return Y.Dom.generateId(el, id + prefix);
++                    }
++                    el.id = id;
++                }
++                
++                return id;
++            };
++
++            // batch fails when no element, so just generate and return single ID
++            return Y.Dom.batch(el, f, Y.Dom, true) || f.apply(Y.Dom, arguments);
++        },
++        
++        /**
++         * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
++         * @method isAncestor
++         * @param {String | HTMLElement} haystack The possible ancestor
++         * @param {String | HTMLElement} needle The possible descendent
++         * @return {Boolean} Whether or not the haystack is an ancestor of needle
++         */
++        isAncestor: function(haystack, needle) {
++            haystack = Y.Dom.get(haystack);
++            needle = Y.Dom.get(needle);
++            
++            var ret = false;
++
++            if ( (haystack && needle) && (haystack[NODE_TYPE] && needle[NODE_TYPE]) ) {
++                if (haystack.contains && haystack !== needle) { // contains returns true when equal
++                    ret = haystack.contains(needle);
++                }
++                else if (haystack.compareDocumentPosition) { // gecko
++                    ret = !!(haystack.compareDocumentPosition(needle) & 16);
++                }
++            } else {
++                YAHOO.log('isAncestor failed; invalid input: ' + haystack + ',' + needle, 'error', 'Dom');
++            }
++            YAHOO.log('isAncestor(' + haystack + ',' + needle + ' returning ' + ret, 'info', 'Dom');
++            return ret;
++        },
++        
++        /**
++         * Determines whether an HTMLElement is present in the current document.
++         * @method inDocument         
++         * @param {String | HTMLElement} el The element to search for
++         * @param {Object} doc An optional document to search, defaults to element's owner document 
++         * @return {Boolean} Whether or not the element is present in the current document
++         */
++        inDocument: function(el, doc) {
++            return Y.Dom._inDoc(Y.Dom.get(el), doc);
++        },
++
++        _inDoc: function(el, doc) {
++            var ret = false;
++            if (el && el[TAG_NAME]) {
++                doc = doc || el[OWNER_DOCUMENT]; 
++                ret = Y.Dom.isAncestor(doc[DOCUMENT_ELEMENT], el);
++            } else {
++                YAHOO.log('inDocument failed: invalid input', 'error', 'Dom');
++            }
++            return ret;
++        },
++        
++        /**
++         * Returns an array of HTMLElements that pass the test applied by supplied boolean method.
++         * For optimized performance, include a tag and/or root node when possible.
++         * Note: This method operates against a live collection, so modifying the 
++         * collection in the callback (removing/appending nodes, etc.) will have
++         * side effects.  Instead you should iterate the returned nodes array,
++         * as you would with the native "getElementsByTagName" method. 
++         * @method getElementsBy
++         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
++         * @param {String} tag (optional) The tag name of the elements being collected
++         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
++         * @param {Function} apply (optional) A function to apply to each element when found 
++         * @param {Any} o (optional) An optional arg that is passed to the supplied method
++         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
++         * @return {Array} Array of HTMLElements
++         */
++        getElementsBy: function(method, tag, root, apply, o, overrides, firstOnly) {
++            tag = tag || '*';
++            root = (root) ? Y.Dom.get(root) : null || document; 
++
++            if (!root) {
++                return [];
++            }
++
++            var nodes = [],
++                elements = root.getElementsByTagName(tag);
++            
++            for (var i = 0, len = elements.length; i < len; ++i) {
++                if ( method(elements[i]) ) {
++                    if (firstOnly) {
++                        nodes = elements[i]; 
++                        break;
++                    } else {
++                        nodes[nodes.length] = elements[i];
++                    }
++                }
++            }
++
++            if (apply) {
++                Y.Dom.batch(nodes, apply, o, overrides);
++            }
++
++            YAHOO.log('getElementsBy returning ' + nodes, 'info', 'Dom');
++            
++            return nodes;
++        },
++        
++        /**
++         * Returns the first HTMLElement that passes the test applied by the supplied boolean method.
++         * @method getElementBy
++         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
++         * @param {String} tag (optional) The tag name of the elements being collected
++         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
++         * @return {HTMLElement}
++         */
++        getElementBy: function(method, tag, root) {
++            return Y.Dom.getElementsBy(method, tag, root, null, null, null, true); 
++        },
++
++        /**
++         * Runs the supplied method against each item in the Collection/Array.
++         * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ).
++         * @method batch
++         * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to
++         * @param {Function} method The method to apply to the element(s)
++         * @param {Any} o (optional) An optional arg that is passed to the supplied method
++         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
++         * @return {Any | Array} The return value(s) from the supplied method
++         */
++        batch: function(el, method, o, overrides) {
++            var collection = [],
++                scope = (overrides) ? o : window;
++                
++            el = (el && (el[TAG_NAME] || el.item)) ? el : Y.Dom.get(el); // skip get() when possible
++            if (el && method) {
++                if (el[TAG_NAME] || el.length === undefined) { // element or not array-like 
++                    return method.call(scope, el, o);
++                } 
++
++                for (var i = 0; i < el.length; ++i) {
++                    collection[collection.length] = method.call(scope, el[i], o);
++                }
++            } else {
++                YAHOO.log('batch called with invalid arguments', 'warn', 'Dom');
++                return false;
++            } 
++            return collection;
++        },
++        
++        /**
++         * Returns the height of the document.
++         * @method getDocumentHeight
++         * @return {Int} The height of the actual document (which includes the body and its margin).
++         */
++        getDocumentHeight: function() {
++            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
++                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
++
++            YAHOO.log('getDocumentHeight returning ' + h, 'info', 'Dom');
++            return h;
++        },
++        
++        /**
++         * Returns the width of the document.
++         * @method getDocumentWidth
++         * @return {Int} The width of the actual document (which includes the body and its margin).
++         */
++        getDocumentWidth: function() {
++            var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
++                w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
++            YAHOO.log('getDocumentWidth returning ' + w, 'info', 'Dom');
++            return w;
++        },
++
++        /**
++         * Returns the current height of the viewport.
++         * @method getViewportHeight
++         * @return {Int} The height of the viewable area of the page (excludes scrollbars).
++         */
++        getViewportHeight: function() {
++            var height = self.innerHeight, // Safari, Opera
++                mode = document[COMPAT_MODE];
++        
++            if ( (mode || isIE) && !isOpera ) { // IE, Gecko
++                height = (mode == CSS1_COMPAT) ?
++                        documentElement.clientHeight : // Standards
++                        document.body.clientHeight; // Quirks
++            }
++        
++            YAHOO.log('getViewportHeight returning ' + height, 'info', 'Dom');
++            return height;
++        },
++        
++        /**
++         * Returns the current width of the viewport.
++         * @method getViewportWidth
++         * @return {Int} The width of the viewable area of the page (excludes scrollbars).
++         */
++        
++        getViewportWidth: function() {
++            var width = self.innerWidth,  // Safari
++                mode = document[COMPAT_MODE];
++            
++            if (mode || isIE) { // IE, Gecko, Opera
++                width = (mode == CSS1_COMPAT) ?
++                        documentElement.clientWidth : // Standards
++                        document.body.clientWidth; // Quirks
++            }
++            YAHOO.log('getViewportWidth returning ' + width, 'info', 'Dom');
++            return width;
++        },
++
++       /**
++         * Returns the nearest ancestor that passes the test applied by supplied boolean method.
++         * For performance reasons, IDs are not accepted and argument validation omitted.
++         * @method getAncestorBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
++         * @return {Object} HTMLElement or null if not found
++         */
++        getAncestorBy: function(node, method) {
++            while ( (node = node[PARENT_NODE]) ) { // NOTE: assignment
++                if ( Y.Dom._testElement(node, method) ) {
++                    YAHOO.log('getAncestorBy returning ' + node, 'info', 'Dom');
++                    return node;
++                }
++            } 
++
++            YAHOO.log('getAncestorBy returning null (no ancestor passed test)', 'error', 'Dom');
++            return null;
++        },
++        
++        /**
++         * Returns the nearest ancestor with the given className.
++         * @method getAncestorByClassName
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @param {String} className
++         * @return {Object} HTMLElement
++         */
++        getAncestorByClassName: function(node, className) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                YAHOO.log('getAncestorByClassName failed: invalid node argument', 'error', 'Dom');
++                return null;
++            }
++            var method = function(el) { return Y.Dom.hasClass(el, className); };
++            return Y.Dom.getAncestorBy(node, method);
++        },
++
++        /**
++         * Returns the nearest ancestor with the given tagName.
++         * @method getAncestorByTagName
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @param {String} tagName
++         * @return {Object} HTMLElement
++         */
++        getAncestorByTagName: function(node, tagName) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                YAHOO.log('getAncestorByTagName failed: invalid node argument', 'error', 'Dom');
++                return null;
++            }
++            var method = function(el) {
++                 return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase();
++            };
++
++            return Y.Dom.getAncestorBy(node, method);
++        },
++
++        /**
++         * Returns the previous sibling that is an HTMLElement. 
++         * For performance reasons, IDs are not accepted and argument validation omitted.
++         * Returns the nearest HTMLElement sibling if no method provided.
++         * @method getPreviousSiblingBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test siblings
++         * that receives the sibling node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getPreviousSiblingBy: function(node, method) {
++            while (node) {
++                node = node.previousSibling;
++                if ( Y.Dom._testElement(node, method) ) {
++                    return node;
++                }
++            }
++            return null;
++        }, 
++
++        /**
++         * Returns the previous sibling that is an HTMLElement 
++         * @method getPreviousSibling
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getPreviousSibling: function(node) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                YAHOO.log('getPreviousSibling failed: invalid node argument', 'error', 'Dom');
++                return null;
++            }
++
++            return Y.Dom.getPreviousSiblingBy(node);
++        }, 
++
++        /**
++         * Returns the next HTMLElement sibling that passes the boolean method. 
++         * For performance reasons, IDs are not accepted and argument validation omitted.
++         * Returns the nearest HTMLElement sibling if no method provided.
++         * @method getNextSiblingBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test siblings
++         * that receives the sibling node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getNextSiblingBy: function(node, method) {
++            while (node) {
++                node = node.nextSibling;
++                if ( Y.Dom._testElement(node, method) ) {
++                    return node;
++                }
++            }
++            return null;
++        }, 
++
++        /**
++         * Returns the next sibling that is an HTMLElement 
++         * @method getNextSibling
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getNextSibling: function(node) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                YAHOO.log('getNextSibling failed: invalid node argument', 'error', 'Dom');
++                return null;
++            }
++
++            return Y.Dom.getNextSiblingBy(node);
++        }, 
++
++        /**
++         * Returns the first HTMLElement child that passes the test method. 
++         * @method getFirstChildBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test children
++         * that receives the node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getFirstChildBy: function(node, method) {
++            var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
++            return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
++        }, 
++
++        /**
++         * Returns the first HTMLElement child. 
++         * @method getFirstChild
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getFirstChild: function(node, method) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                YAHOO.log('getFirstChild failed: invalid node argument', 'error', 'Dom');
++                return null;
++            }
++            return Y.Dom.getFirstChildBy(node);
++        }, 
++
++        /**
++         * Returns the last HTMLElement child that passes the test method. 
++         * @method getLastChildBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test children
++         * that receives the node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getLastChildBy: function(node, method) {
++            if (!node) {
++                YAHOO.log('getLastChild failed: invalid node argument', 'error', 'Dom');
++                return null;
++            }
++            var child = ( Y.Dom._testElement(node.lastChild, method) ) ? node.lastChild : null;
++            return child || Y.Dom.getPreviousSiblingBy(node.lastChild, method);
++        }, 
++
++        /**
++         * Returns the last HTMLElement child. 
++         * @method getLastChild
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getLastChild: function(node) {
++            node = Y.Dom.get(node);
++            return Y.Dom.getLastChildBy(node);
++        }, 
++
++        /**
++         * Returns an array of HTMLElement childNodes that pass the test method. 
++         * @method getChildrenBy
++         * @param {HTMLElement} node The HTMLElement to start from
++         * @param {Function} method A boolean function used to test children
++         * that receives the node being tested as its only argument
++         * @return {Array} A static array of HTMLElements
++         */
++        getChildrenBy: function(node, method) {
++            var child = Y.Dom.getFirstChildBy(node, method),
++                children = child ? [child] : [];
++
++            Y.Dom.getNextSiblingBy(child, function(node) {
++                if ( !method || method(node) ) {
++                    children[children.length] = node;
++                }
++                return false; // fail test to collect all children
++            });
++
++            return children;
++        },
++ 
++        /**
++         * Returns an array of HTMLElement childNodes. 
++         * @method getChildren
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Array} A static array of HTMLElements
++         */
++        getChildren: function(node) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                YAHOO.log('getChildren failed: invalid node argument', 'error', 'Dom');
++            }
++
++            return Y.Dom.getChildrenBy(node);
++        },
++
++        /**
++         * Returns the left scroll value of the document 
++         * @method getDocumentScrollLeft
++         * @param {HTMLDocument} document (optional) The document to get the scroll value of
++         * @return {Int}  The amount that the document is scrolled to the left
++         */
++        getDocumentScrollLeft: function(doc) {
++            doc = doc || document;
++            return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft);
++        }, 
++
++        /**
++         * Returns the top scroll value of the document 
++         * @method getDocumentScrollTop
++         * @param {HTMLDocument} document (optional) The document to get the scroll value of
++         * @return {Int}  The amount that the document is scrolled to the top
++         */
++        getDocumentScrollTop: function(doc) {
++            doc = doc || document;
++            return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop);
++        },
++
++        /**
++         * Inserts the new node as the previous sibling of the reference node 
++         * @method insertBefore
++         * @param {String | HTMLElement} newNode The node to be inserted
++         * @param {String | HTMLElement} referenceNode The node to insert the new node before 
++         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
++         */
++        insertBefore: function(newNode, referenceNode) {
++            newNode = Y.Dom.get(newNode); 
++            referenceNode = Y.Dom.get(referenceNode); 
++            
++            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
++                YAHOO.log('insertAfter failed: missing or invalid arg(s)', 'error', 'Dom');
++                return null;
++            }       
++
++            return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode); 
++        },
++
++        /**
++         * Inserts the new node as the next sibling of the reference node 
++         * @method insertAfter
++         * @param {String | HTMLElement} newNode The node to be inserted
++         * @param {String | HTMLElement} referenceNode The node to insert the new node after 
++         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
++         */
++        insertAfter: function(newNode, referenceNode) {
++            newNode = Y.Dom.get(newNode); 
++            referenceNode = Y.Dom.get(referenceNode); 
++            
++            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
++                YAHOO.log('insertAfter failed: missing or invalid arg(s)', 'error', 'Dom');
++                return null;
++            }       
++
++            if (referenceNode.nextSibling) {
++                return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode.nextSibling); 
++            } else {
++                return referenceNode[PARENT_NODE].appendChild(newNode);
++            }
++        },
++
++        /**
++         * Creates a Region based on the viewport relative to the document. 
++         * @method getClientRegion
++         * @return {Region} A Region object representing the viewport which accounts for document scroll
++         */
++        getClientRegion: function() {
++            var t = Y.Dom.getDocumentScrollTop(),
++                l = Y.Dom.getDocumentScrollLeft(),
++                r = Y.Dom.getViewportWidth() + l,
++                b = Y.Dom.getViewportHeight() + t;
++
++            return new Y.Region(t, r, b, l);
++        },
++
++        /**
++         * Provides a normalized attribute interface. 
++         * @method setAttribute
++         * @param {String | HTMLElement} el The target element for the attribute.
++         * @param {String} attr The attribute to set.
++         * @param {String} val The value of the attribute.
++         */
++        setAttribute: function(el, attr, val) {
++            Y.Dom.batch(el, Y.Dom._setAttribute, { attr: attr, val: val });
++        },
++
++        _setAttribute: function(el, args) {
++            var attr = Y.Dom._toCamel(args.attr),
++                val = args.val;
++
++            if (el && el.setAttribute) {
++                if (Y.Dom.DOT_ATTRIBUTES[attr]) {
++                    el[attr] = val;
++                } else {
++                    attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
++                    el.setAttribute(attr, val);
++                }
++            } else {
++                YAHOO.log('setAttribute method not available for ' + el, 'error', 'Dom');
++            }
++        },
++
++        /**
++         * Provides a normalized attribute interface. 
++         * @method getAttribute
++         * @param {String | HTMLElement} el The target element for the attribute.
++         * @param {String} attr The attribute to get.
++         * @return {String} The current value of the attribute. 
++         */
++        getAttribute: function(el, attr) {
++            return Y.Dom.batch(el, Y.Dom._getAttribute, attr);
++        },
++
++
++        _getAttribute: function(el, attr) {
++            var val;
++            attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
++
++            if (el && el.getAttribute) {
++                val = el.getAttribute(attr, 2);
++            } else {
++                YAHOO.log('getAttribute method not available for ' + el, 'error', 'Dom');
++            }
++
++            return val;
++        },
++
++        _toCamel: function(property) {
++            var c = propertyCache;
++
++            function tU(x,l) {
++                return l.toUpperCase();
++            }
++
++            return c[property] || (c[property] = property.indexOf('-') === -1 ? 
++                                    property :
++                                    property.replace( /-([a-z])/gi, tU ));
++        },
++
++        _getClassRegex: function(className) {
++            var re;
++            if (className !== undefined) { // allow empty string to pass
++                if (className.exec) { // already a RegExp
++                    re = className;
++                } else {
++                    re = reCache[className];
++                    if (!re) {
++                        // escape special chars (".", "[", etc.)
++                        className = className.replace(Y.Dom._patterns.CLASS_RE_TOKENS, '\\$1');
++                        re = reCache[className] = new RegExp(C_START + className + C_END, G);
++                    }
++                }
++            }
++            return re;
++        },
++
++        _patterns: {
++            ROOT_TAG: /^body|html$/i, // body for quirks mode, html for standards,
++            CLASS_RE_TOKENS: /([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g
++        },
++
++
++        _testElement: function(node, method) {
++            return node && node[NODE_TYPE] == 1 && ( !method || method(node) );
++        },
++
++        _calcBorders: function(node, xy2) {
++            var t = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_TOP_WIDTH), 10) || 0,
++                l = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_LEFT_WIDTH), 10) || 0;
++            if (isGecko) {
++                if (RE_TABLE.test(node[TAG_NAME])) {
++                    t = 0;
++                    l = 0;
++                }
++            }
++            xy2[0] += l;
++            xy2[1] += t;
++            return xy2;
++        }
++    };
++        
++    var _getComputedStyle = Y.Dom[GET_COMPUTED_STYLE];
++    // fix opera computedStyle default color unit (convert to rgb)
++    if (UA.opera) {
++        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
++            var val = _getComputedStyle(node, att);
++            if (RE_COLOR.test(att)) {
++                val = Y.Dom.Color.toRGB(val);
++            }
++
++            return val;
++        };
++
++    }
++
++    // safari converts transparent to rgba(), others use "transparent"
++    if (UA.webkit) {
++        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
++            var val = _getComputedStyle(node, att);
++
++            if (val === 'rgba(0, 0, 0, 0)') {
++                val = 'transparent'; 
++            }
++
++            return val;
++        };
++
++    }
++
++    if (UA.ie && UA.ie >= 8 && document.documentElement.hasAttribute) { // IE 8 standards
++        Y.Dom.DOT_ATTRIBUTES.type = true; // IE 8 errors on input.setAttribute('type')
++    }
++})();
++/**
++ * A region is a representation of an object on a grid.  It is defined
++ * by the top, right, bottom, left extents, so is rectangular by default.  If 
++ * other shapes are required, this class could be extended to support it.
++ * @namespace YAHOO.util
++ * @class Region
++ * @param {Int} t the top extent
++ * @param {Int} r the right extent
++ * @param {Int} b the bottom extent
++ * @param {Int} l the left extent
++ * @constructor
++ */
++YAHOO.util.Region = function(t, r, b, l) {
++
++    /**
++     * The region's top extent
++     * @property top
++     * @type Int
++     */
++    this.top = t;
++    
++    /**
++     * The region's top extent
++     * @property y
++     * @type Int
++     */
++    this.y = t;
++    
++    /**
++     * The region's top extent as index, for symmetry with set/getXY
++     * @property 1
++     * @type Int
++     */
++    this[1] = t;
++
++    /**
++     * The region's right extent
++     * @property right
++     * @type int
++     */
++    this.right = r;
++
++    /**
++     * The region's bottom extent
++     * @property bottom
++     * @type Int
++     */
++    this.bottom = b;
++
++    /**
++     * The region's left extent
++     * @property left
++     * @type Int
++     */
++    this.left = l;
++    
++    /**
++     * The region's left extent
++     * @property x
++     * @type Int
++     */
++    this.x = l;
++    
++    /**
++     * The region's left extent as index, for symmetry with set/getXY
++     * @property 0
++     * @type Int
++     */
++    this[0] = l;
++
++    /**
++     * The region's total width 
++     * @property width 
++     * @type Int
++     */
++    this.width = this.right - this.left;
++
++    /**
++     * The region's total height 
++     * @property height 
++     * @type Int
++     */
++    this.height = this.bottom - this.top;
++};
++
++/**
++ * Returns true if this region contains the region passed in
++ * @method contains
++ * @param  {Region}  region The region to evaluate
++ * @return {Boolean}        True if the region is contained with this region, 
++ *                          else false
++ */
++YAHOO.util.Region.prototype.contains = function(region) {
++    return ( region.left   >= this.left   && 
++             region.right  <= this.right  && 
++             region.top    >= this.top    && 
++             region.bottom <= this.bottom    );
++
++    // this.logger.debug("does " + this + " contain " + region + " ... " + ret);
++};
++
++/**
++ * Returns the area of the region
++ * @method getArea
++ * @return {Int} the region's area
++ */
++YAHOO.util.Region.prototype.getArea = function() {
++    return ( (this.bottom - this.top) * (this.right - this.left) );
++};
++
++/**
++ * Returns the region where the passed in region overlaps with this one
++ * @method intersect
++ * @param  {Region} region The region that intersects
++ * @return {Region}        The overlap region, or null if there is no overlap
++ */
++YAHOO.util.Region.prototype.intersect = function(region) {
++    var t = Math.max( this.top,    region.top    ),
++        r = Math.min( this.right,  region.right  ),
++        b = Math.min( this.bottom, region.bottom ),
++        l = Math.max( this.left,   region.left   );
++    
++    if (b >= t && r >= l) {
++        return new YAHOO.util.Region(t, r, b, l);
++    } else {
++        return null;
++    }
++};
++
++/**
++ * Returns the region representing the smallest region that can contain both
++ * the passed in region and this region.
++ * @method union
++ * @param  {Region} region The region that to create the union with
++ * @return {Region}        The union region
++ */
++YAHOO.util.Region.prototype.union = function(region) {
++    var t = Math.min( this.top,    region.top    ),
++        r = Math.max( this.right,  region.right  ),
++        b = Math.max( this.bottom, region.bottom ),
++        l = Math.min( this.left,   region.left   );
++
++    return new YAHOO.util.Region(t, r, b, l);
++};
++
++/**
++ * toString
++ * @method toString
++ * @return string the region properties
++ */
++YAHOO.util.Region.prototype.toString = function() {
++    return ( "Region {"    +
++             "top: "       + this.top    + 
++             ", right: "   + this.right  + 
++             ", bottom: "  + this.bottom + 
++             ", left: "    + this.left   + 
++             ", height: "  + this.height + 
++             ", width: "    + this.width   + 
++             "}" );
++};
++
++/**
++ * Returns a region that is occupied by the DOM element
++ * @method getRegion
++ * @param  {HTMLElement} el The element
++ * @return {Region}         The region that the element occupies
++ * @static
++ */
++YAHOO.util.Region.getRegion = function(el) {
++    var p = YAHOO.util.Dom.getXY(el),
++        t = p[1],
++        r = p[0] + el.offsetWidth,
++        b = p[1] + el.offsetHeight,
++        l = p[0];
++
++    return new YAHOO.util.Region(t, r, b, l);
++};
++
++/////////////////////////////////////////////////////////////////////////////
++
++
++/**
++ * A point is a region that is special in that it represents a single point on 
++ * the grid.
++ * @namespace YAHOO.util
++ * @class Point
++ * @param {Int} x The X position of the point
++ * @param {Int} y The Y position of the point
++ * @constructor
++ * @extends YAHOO.util.Region
++ */
++YAHOO.util.Point = function(x, y) {
++   if (YAHOO.lang.isArray(x)) { // accept input from Dom.getXY, Event.getXY, etc.
++      y = x[1]; // dont blow away x yet
++      x = x[0];
++   }
++ 
++    YAHOO.util.Point.superclass.constructor.call(this, y, x, y, x);
++};
++
++YAHOO.extend(YAHOO.util.Point, YAHOO.util.Region);
++
++(function() {
++/**
++ * Add style management functionality to DOM.
++ * @module dom
++ * @for Dom
++ */
++
++var Y = YAHOO.util, 
++    CLIENT_TOP = 'clientTop',
++    CLIENT_LEFT = 'clientLeft',
++    PARENT_NODE = 'parentNode',
++    RIGHT = 'right',
++    HAS_LAYOUT = 'hasLayout',
++    PX = 'px',
++    OPACITY = 'opacity',
++    AUTO = 'auto',
++    BORDER_LEFT_WIDTH = 'borderLeftWidth',
++    BORDER_TOP_WIDTH = 'borderTopWidth',
++    BORDER_RIGHT_WIDTH = 'borderRightWidth',
++    BORDER_BOTTOM_WIDTH = 'borderBottomWidth',
++    VISIBLE = 'visible',
++    TRANSPARENT = 'transparent',
++    HEIGHT = 'height',
++    WIDTH = 'width',
++    STYLE = 'style',
++    CURRENT_STYLE = 'currentStyle',
++
++// IE getComputedStyle
++// TODO: unit-less lineHeight (e.g. 1.22)
++    re_size = /^width|height$/,
++    re_unit = /^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,
++
++    ComputedStyle = {
++        get: function(el, property) {
++            var value = '',
++                current = el[CURRENT_STYLE][property];
++
++            if (property === OPACITY) {
++                value = Y.Dom.getStyle(el, OPACITY);        
++            } else if (!current || (current.indexOf && current.indexOf(PX) > -1)) { // no need to convert
++                value = current;
++            } else if (Y.Dom.IE_COMPUTED[property]) { // use compute function
++                value = Y.Dom.IE_COMPUTED[property](el, property);
++            } else if (re_unit.test(current)) { // convert to pixel
++                value = Y.Dom.IE.ComputedStyle.getPixel(el, property);
++            } else {
++                value = current;
++            }
++
++            return value;
++        },
++
++        getOffset: function(el, prop) {
++            var current = el[CURRENT_STYLE][prop],                        // value of "width", "top", etc.
++                capped = prop.charAt(0).toUpperCase() + prop.substr(1), // "Width", "Top", etc.
++                offset = 'offset' + capped,                             // "offsetWidth", "offsetTop", etc.
++                pixel = 'pixel' + capped,                               // "pixelWidth", "pixelTop", etc.
++                value = '',
++                actual;
++
++            if (current == AUTO) {
++                actual = el[offset]; // offsetHeight/Top etc.
++                if (actual === undefined) { // likely "right" or "bottom"
++                    value = 0;
++                }
++
++                value = actual;
++                if (re_size.test(prop)) { // account for box model diff 
++                    el[STYLE][prop] = actual; 
++                    if (el[offset] > actual) {
++                        // the difference is padding + border (works in Standards & Quirks modes)
++                        value = actual - (el[offset] - actual);
++                    }
++                    el[STYLE][prop] = AUTO; // revert to auto
++                }
++            } else { // convert units to px
++                if (!el[STYLE][pixel] && !el[STYLE][prop]) { // need to map style.width to currentStyle (no currentStyle.pixelWidth)
++                    el[STYLE][prop] = current;              // no style.pixelWidth if no style.width
++                }
++                value = el[STYLE][pixel];
++            }
++            return value + PX;
++        },
++
++        getBorderWidth: function(el, property) {
++            // clientHeight/Width = paddingBox (e.g. offsetWidth - borderWidth)
++            // clientTop/Left = borderWidth
++            var value = null;
++            if (!el[CURRENT_STYLE][HAS_LAYOUT]) { // TODO: unset layout?
++                el[STYLE].zoom = 1; // need layout to measure client
++            }
++
++            switch(property) {
++                case BORDER_TOP_WIDTH:
++                    value = el[CLIENT_TOP];
++                    break;
++                case BORDER_BOTTOM_WIDTH:
++                    value = el.offsetHeight - el.clientHeight - el[CLIENT_TOP];
++                    break;
++                case BORDER_LEFT_WIDTH:
++                    value = el[CLIENT_LEFT];
++                    break;
++                case BORDER_RIGHT_WIDTH:
++                    value = el.offsetWidth - el.clientWidth - el[CLIENT_LEFT];
++                    break;
++            }
++            return value + PX;
++        },
++
++        getPixel: function(node, att) {
++            // use pixelRight to convert to px
++            var val = null,
++                styleRight = node[CURRENT_STYLE][RIGHT],
++                current = node[CURRENT_STYLE][att];
++
++            node[STYLE][RIGHT] = current;
++            val = node[STYLE].pixelRight;
++            node[STYLE][RIGHT] = styleRight; // revert
++
++            return val + PX;
++        },
++
++        getMargin: function(node, att) {
++            var val;
++            if (node[CURRENT_STYLE][att] == AUTO) {
++                val = 0 + PX;
++            } else {
++                val = Y.Dom.IE.ComputedStyle.getPixel(node, att);
++            }
++            return val;
++        },
++
++        getVisibility: function(node, att) {
++            var current;
++            while ( (current = node[CURRENT_STYLE]) && current[att] == 'inherit') { // NOTE: assignment in test
++                node = node[PARENT_NODE];
++            }
++            return (current) ? current[att] : VISIBLE;
++        },
++
++        getColor: function(node, att) {
++            return Y.Dom.Color.toRGB(node[CURRENT_STYLE][att]) || TRANSPARENT;
++        },
++
++        getBorderColor: function(node, att) {
++            var current = node[CURRENT_STYLE],
++                val = current[att] || current.color;
++            return Y.Dom.Color.toRGB(Y.Dom.Color.toHex(val));
++        }
++
++    },
++
++//fontSize: getPixelFont,
++    IEComputed = {};
++
++IEComputed.top = IEComputed.right = IEComputed.bottom = IEComputed.left = 
++        IEComputed[WIDTH] = IEComputed[HEIGHT] = ComputedStyle.getOffset;
++
++IEComputed.color = ComputedStyle.getColor;
++
++IEComputed[BORDER_TOP_WIDTH] = IEComputed[BORDER_RIGHT_WIDTH] =
++        IEComputed[BORDER_BOTTOM_WIDTH] = IEComputed[BORDER_LEFT_WIDTH] =
++        ComputedStyle.getBorderWidth;
++
++IEComputed.marginTop = IEComputed.marginRight = IEComputed.marginBottom =
++        IEComputed.marginLeft = ComputedStyle.getMargin;
++
++IEComputed.visibility = ComputedStyle.getVisibility;
++IEComputed.borderColor = IEComputed.borderTopColor =
++        IEComputed.borderRightColor = IEComputed.borderBottomColor =
++        IEComputed.borderLeftColor = ComputedStyle.getBorderColor;
++
++Y.Dom.IE_COMPUTED = IEComputed;
++Y.Dom.IE_ComputedStyle = ComputedStyle;
++})();
++(function() {
++/**
++ * Add style management functionality to DOM.
++ * @module dom
++ * @for Dom
++ */
++
++var TO_STRING = 'toString',
++    PARSE_INT = parseInt,
++    RE = RegExp,
++    Y = YAHOO.util;
++
++Y.Dom.Color = {
++    KEYWORDS: {
++        black: '000',
++        silver: 'c0c0c0',
++        gray: '808080',
++        white: 'fff',
++        maroon: '800000',
++        red: 'f00',
++        purple: '800080',
++        fuchsia: 'f0f',
++        green: '008000',
++        lime: '0f0',
++        olive: '808000',
++        yellow: 'ff0',
++        navy: '000080',
++        blue: '00f',
++        teal: '008080',
++        aqua: '0ff'
++    },
++
++    re_RGB: /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
++    re_hex: /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
++    re_hex3: /([0-9A-F])/gi,
++
++    toRGB: function(val) {
++        if (!Y.Dom.Color.re_RGB.test(val)) {
++            val = Y.Dom.Color.toHex(val);
++        }
++
++        if(Y.Dom.Color.re_hex.exec(val)) {
++            val = 'rgb(' + [
++                PARSE_INT(RE.$1, 16),
++                PARSE_INT(RE.$2, 16),
++                PARSE_INT(RE.$3, 16)
++            ].join(', ') + ')';
++        }
++        return val;
++    },
++
++    toHex: function(val) {
++        val = Y.Dom.Color.KEYWORDS[val] || val;
++        if (Y.Dom.Color.re_RGB.exec(val)) {
++            var r = (RE.$1.length === 1) ? '0' + RE.$1 : Number(RE.$1),
++                g = (RE.$2.length === 1) ? '0' + RE.$2 : Number(RE.$2),
++                b = (RE.$3.length === 1) ? '0' + RE.$3 : Number(RE.$3);
++
++            val = [
++                r[TO_STRING](16),
++                g[TO_STRING](16),
++                b[TO_STRING](16)
++            ].join('');
++        }
++
++        if (val.length < 6) {
++            val = val.replace(Y.Dom.Color.re_hex3, '$1$1');
++        }
++
++        if (val !== 'transparent' && val.indexOf('#') < 0) {
++            val = '#' + val;
++        }
++
++        return val.toLowerCase();
++    }
++};
++}());
++YAHOO.register("dom", YAHOO.util.Dom, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/dom/dom-min.js b/pylons_app/public/js/yui/dom/dom-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/dom/dom-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},DOT_ATTRIBUTES:{},get:function(z){var AB,x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.attributes:null;if(z&&G&&G.id&&G.id.value===AB){return z;}else{if(z&&K.all){z=null;x=K.all[AB];for(y=0,Y=x.length;y<Y;++y){if(x[y].id===AB){return x[y];}}}}return z;}if(YAHOO.util.Element&&z instanceof YAHOO.util.Element){z=z.get("element");}if("length" in z){AA=[];for(y=0,Y=z.length;y<Y;++y){AA[AA.length]=E.Dom.get(z[y]);}return AA;}return z;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC===c)){G=S(AF[v],q);x=S(AF[v],R);if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom._getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom._getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom._getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;
++y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e]&&y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){E.Dom.batch(Y,E.Dom._setAttribute,{attr:G,val:x});},_setAttribute:function(x,Y){var G=E.Dom._toCamel(Y.attr),y=Y.val;if(x&&x.setAttribute){if(E.Dom.DOT_ATTRIBUTES[G]){x[G]=y;}else{G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;x.setAttribute(G,y);}}else{}},getAttribute:function(Y,G){return E.Dom.batch(Y,E.Dom._getAttribute,G);},_getAttribute:function(Y,G){var x;G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;if(Y&&Y.getAttribute){x=Y.getAttribute(G,2);}else{}return x;},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}if(m.ie&&m.ie>=8&&K.documentElement.hasAttribute){E.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;
++this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/dom/dom.js b/pylons_app/public/js/yui/dom/dom.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/dom/dom.js
+@@ -0,0 +1,1832 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The dom module provides helper methods for manipulating Dom elements.
++ * @module dom
++ *
++ */
++
++(function() {
++    // for use with generateId (global to save state if Dom is overwritten)
++    YAHOO.env._id_counter = YAHOO.env._id_counter || 0;
++
++    // internal shorthand
++    var Y = YAHOO.util,
++        lang = YAHOO.lang,
++        UA = YAHOO.env.ua,
++        trim = YAHOO.lang.trim,
++        propertyCache = {}, // for faster hyphen converts
++        reCache = {}, // cache className regexes
++        RE_TABLE = /^t(?:able|d|h)$/i, // for _calcBorders
++        RE_COLOR = /color$/i,
++
++        // DOM aliases 
++        document = window.document,     
++        documentElement = document.documentElement,
++
++        // string constants
++        OWNER_DOCUMENT = 'ownerDocument',
++        DEFAULT_VIEW = 'defaultView',
++        DOCUMENT_ELEMENT = 'documentElement',
++        COMPAT_MODE = 'compatMode',
++        OFFSET_LEFT = 'offsetLeft',
++        OFFSET_TOP = 'offsetTop',
++        OFFSET_PARENT = 'offsetParent',
++        PARENT_NODE = 'parentNode',
++        NODE_TYPE = 'nodeType',
++        TAG_NAME = 'tagName',
++        SCROLL_LEFT = 'scrollLeft',
++        SCROLL_TOP = 'scrollTop',
++        GET_BOUNDING_CLIENT_RECT = 'getBoundingClientRect',
++        GET_COMPUTED_STYLE = 'getComputedStyle',
++        CURRENT_STYLE = 'currentStyle',
++        CSS1_COMPAT = 'CSS1Compat',
++        _BACK_COMPAT = 'BackCompat',
++        _CLASS = 'class', // underscore due to reserved word
++        CLASS_NAME = 'className',
++        EMPTY = '',
++        SPACE = ' ',
++        C_START = '(?:^|\\s)',
++        C_END = '(?= |$)',
++        G = 'g',
++        POSITION = 'position',
++        FIXED = 'fixed',
++        RELATIVE = 'relative',
++        LEFT = 'left',
++        TOP = 'top',
++        MEDIUM = 'medium',
++        BORDER_LEFT_WIDTH = 'borderLeftWidth',
++        BORDER_TOP_WIDTH = 'borderTopWidth',
++    
++    // brower detection
++        isOpera = UA.opera,
++        isSafari = UA.webkit, 
++        isGecko = UA.gecko, 
++        isIE = UA.ie; 
++    
++    /**
++     * Provides helper methods for DOM elements.
++     * @namespace YAHOO.util
++     * @class Dom
++     * @requires yahoo, event
++     */
++    Y.Dom = {
++        CUSTOM_ATTRIBUTES: (!documentElement.hasAttribute) ? { // IE < 8
++            'for': 'htmlFor',
++            'class': CLASS_NAME
++        } : { // w3c
++            'htmlFor': 'for',
++            'className': _CLASS
++        },
++
++        DOT_ATTRIBUTES: {},
++
++        /**
++         * Returns an HTMLElement reference.
++         * @method get
++         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements.
++         */
++        get: function(el) {
++            var id, nodes, c, i, len, attr;
++
++            if (el) {
++                if (el[NODE_TYPE] || el.item) { // Node, or NodeList
++                    return el;
++                }
++
++                if (typeof el === 'string') { // id
++                    id = el;
++                    el = document.getElementById(el);
++                    attr = (el) ? el.attributes : null;
++                    if (el && attr && attr.id && attr.id.value === id) { // IE: avoid false match on "name" attribute
++                        return el;
++                    } else if (el && document.all) { // filter by name
++                        el = null;
++                        nodes = document.all[id];
++                        for (i = 0, len = nodes.length; i < len; ++i) {
++                            if (nodes[i].id === id) {
++                                return nodes[i];
++                            }
++                        }
++                    }
++                    return el;
++                }
++                
++                if (YAHOO.util.Element && el instanceof YAHOO.util.Element) {
++                    el = el.get('element');
++                }
++
++                if ('length' in el) { // array-like 
++                    c = [];
++                    for (i = 0, len = el.length; i < len; ++i) {
++                        c[c.length] = Y.Dom.get(el[i]);
++                    }
++                    
++                    return c;
++                }
++
++                return el; // some other object, just pass it back
++            }
++
++            return null;
++        },
++    
++        getComputedStyle: function(el, property) {
++            if (window[GET_COMPUTED_STYLE]) {
++                return el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null)[property];
++            } else if (el[CURRENT_STYLE]) {
++                return Y.Dom.IE_ComputedStyle.get(el, property);
++            }
++        },
++
++        /**
++         * Normalizes currentStyle and ComputedStyle.
++         * @method getStyle
++         * @param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {String} property The style property whose value is returned.
++         * @return {String | Array} The current value of the style property for the element(s).
++         */
++        getStyle: function(el, property) {
++            return Y.Dom.batch(el, Y.Dom._getStyle, property);
++        },
++
++        // branching at load instead of runtime
++        _getStyle: function() {
++            if (window[GET_COMPUTED_STYLE]) { // W3C DOM method
++                return function(el, property) {
++                    property = (property === 'float') ? property = 'cssFloat' :
++                            Y.Dom._toCamel(property);
++
++                    var value = el.style[property],
++                        computed;
++                    
++                    if (!value) {
++                        computed = el[OWNER_DOCUMENT][DEFAULT_VIEW][GET_COMPUTED_STYLE](el, null);
++                        if (computed) { // test computed before touching for safari
++                            value = computed[property];
++                        }
++                    }
++                    
++                    return value;
++                };
++            } else if (documentElement[CURRENT_STYLE]) {
++                return function(el, property) {                         
++                    var value;
++
++                    switch(property) {
++                        case 'opacity' :// IE opacity uses filter
++                            value = 100;
++                            try { // will error if no DXImageTransform
++                                value = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
++
++                            } catch(e) {
++                                try { // make sure its in the document
++                                    value = el.filters('alpha').opacity;
++                                } catch(err) {
++                                }
++                            }
++                            return value / 100;
++                        case 'float': // fix reserved word
++                            property = 'styleFloat'; // fall through
++                        default: 
++                            property = Y.Dom._toCamel(property);
++                            value = el[CURRENT_STYLE] ? el[CURRENT_STYLE][property] : null;
++                            return ( el.style[property] || value );
++                    }
++                };
++            }
++        }(),
++    
++        /**
++         * Wrapper for setting style properties of HTMLElements.  Normalizes "opacity" across modern browsers.
++         * @method setStyle
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {String} property The style property to be set.
++         * @param {String} val The value to apply to the given property.
++         */
++        setStyle: function(el, property, val) {
++            Y.Dom.batch(el, Y.Dom._setStyle, { prop: property, val: val });
++        },
++
++        _setStyle: function() {
++            if (isIE) {
++                return function(el, args) {
++                    var property = Y.Dom._toCamel(args.prop),
++                        val = args.val;
++
++                    if (el) {
++                        switch (property) {
++                            case 'opacity':
++                                if ( lang.isString(el.style.filter) ) { // in case not appended
++                                    el.style.filter = 'alpha(opacity=' + val * 100 + ')';
++                                    
++                                    if (!el[CURRENT_STYLE] || !el[CURRENT_STYLE].hasLayout) {
++                                        el.style.zoom = 1; // when no layout or cant tell
++                                    }
++                                }
++                                break;
++                            case 'float':
++                                property = 'styleFloat';
++                            default:
++                            el.style[property] = val;
++                        }
++                    } else {
++                    }
++                };
++            } else {
++                return function(el, args) {
++                    var property = Y.Dom._toCamel(args.prop),
++                        val = args.val;
++                    if (el) {
++                        if (property == 'float') {
++                            property = 'cssFloat';
++                        }
++                        el.style[property] = val;
++                    } else {
++                    }
++                };
++            }
++
++        }(),
++        
++        /**
++         * Gets the current position of an element based on page coordinates. 
++         * Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method getXY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM
++         * reference, or an Array of IDs and/or HTMLElements
++         * @return {Array} The XY position of the element(s)
++         */
++        getXY: function(el) {
++            return Y.Dom.batch(el, Y.Dom._getXY);
++        },
++
++        _canPosition: function(el) {
++            return ( Y.Dom._getStyle(el, 'display') !== 'none' && Y.Dom._inDoc(el) );
++        },
++
++        _getXY: function() {
++            if (document[DOCUMENT_ELEMENT][GET_BOUNDING_CLIENT_RECT]) {
++                return function(node) {
++                    var scrollLeft, scrollTop, box, doc,
++                        off1, off2, mode, bLeft, bTop,
++                        floor = Math.floor, // TODO: round?
++                        xy = false;
++
++                    if (Y.Dom._canPosition(node)) {
++                        box = node[GET_BOUNDING_CLIENT_RECT]();
++                        doc = node[OWNER_DOCUMENT];
++                        scrollLeft = Y.Dom.getDocumentScrollLeft(doc);
++                        scrollTop = Y.Dom.getDocumentScrollTop(doc);
++                        xy = [floor(box[LEFT]), floor(box[TOP])];
++
++                        if (isIE && UA.ie < 8) { // IE < 8: viewport off by 2
++                            off1 = 2;
++                            off2 = 2;
++                            mode = doc[COMPAT_MODE];
++
++                            if (UA.ie === 6) {
++                                if (mode !== _BACK_COMPAT) {
++                                    off1 = 0;
++                                    off2 = 0;
++                                }
++                            }
++                            
++                            if ((mode === _BACK_COMPAT)) {
++                                bLeft = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_LEFT_WIDTH);
++                                bTop = _getComputedStyle(doc[DOCUMENT_ELEMENT], BORDER_TOP_WIDTH);
++                                if (bLeft !== MEDIUM) {
++                                    off1 = parseInt(bLeft, 10);
++                                }
++                                if (bTop !== MEDIUM) {
++                                    off2 = parseInt(bTop, 10);
++                                }
++                            }
++                            
++                            xy[0] -= off1;
++                            xy[1] -= off2;
++
++                        }
++
++                        if ((scrollTop || scrollLeft)) {
++                            xy[0] += scrollLeft;
++                            xy[1] += scrollTop;
++                        }
++
++                        // gecko may return sub-pixel (non-int) values
++                        xy[0] = floor(xy[0]);
++                        xy[1] = floor(xy[1]);
++                    } else {
++                    }
++
++                    return xy;
++                };
++            } else {
++                return function(node) { // ff2, safari: manually calculate by crawling up offsetParents
++                    var docScrollLeft, docScrollTop,
++                        scrollTop, scrollLeft,
++                        bCheck,
++                        xy = false,
++                        parentNode = node;
++
++                    if  (Y.Dom._canPosition(node) ) {
++                        xy = [node[OFFSET_LEFT], node[OFFSET_TOP]];
++                        docScrollLeft = Y.Dom.getDocumentScrollLeft(node[OWNER_DOCUMENT]);
++                        docScrollTop = Y.Dom.getDocumentScrollTop(node[OWNER_DOCUMENT]);
++
++                        // TODO: refactor with !! or just falsey
++                        bCheck = ((isGecko || UA.webkit > 519) ? true : false);
++
++                        // TODO: worth refactoring for TOP/LEFT only?
++                        while ((parentNode = parentNode[OFFSET_PARENT])) {
++                            xy[0] += parentNode[OFFSET_LEFT];
++                            xy[1] += parentNode[OFFSET_TOP];
++                            if (bCheck) {
++                                xy = Y.Dom._calcBorders(parentNode, xy);
++                            }
++                        }
++
++                        // account for any scrolled ancestors
++                        if (Y.Dom._getStyle(node, POSITION) !== FIXED) {
++                            parentNode = node;
++
++                            while ((parentNode = parentNode[PARENT_NODE]) && parentNode[TAG_NAME]) {
++                                scrollTop = parentNode[SCROLL_TOP];
++                                scrollLeft = parentNode[SCROLL_LEFT];
++
++                                //Firefox does something funky with borders when overflow is not visible.
++                                if (isGecko && (Y.Dom._getStyle(parentNode, 'overflow') !== 'visible')) {
++                                        xy = Y.Dom._calcBorders(parentNode, xy);
++                                }
++
++                                if (scrollTop || scrollLeft) {
++                                    xy[0] -= scrollLeft;
++                                    xy[1] -= scrollTop;
++                                }
++                            }
++                            xy[0] += docScrollLeft;
++                            xy[1] += docScrollTop;
++
++                        } else {
++                            //Fix FIXED position -- add scrollbars
++                            if (isOpera) {
++                                xy[0] -= docScrollLeft;
++                                xy[1] -= docScrollTop;
++                            } else if (isSafari || isGecko) {
++                                xy[0] += docScrollLeft;
++                                xy[1] += docScrollTop;
++                            }
++                        }
++                        //Round the numbers so we get sane data back
++                        xy[0] = Math.floor(xy[0]);
++                        xy[1] = Math.floor(xy[1]);
++                    } else {
++                    }
++                    return xy;                
++                };
++            }
++        }(), // NOTE: Executing for loadtime branching
++        
++        /**
++         * Gets the current X position of an element based on page coordinates.  The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method getX
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
++         * @return {Number | Array} The X position of the element(s)
++         */
++        getX: function(el) {
++            var f = function(el) {
++                return Y.Dom.getXY(el)[0];
++            };
++            
++            return Y.Dom.batch(el, f, Y.Dom, true);
++        },
++        
++        /**
++         * Gets the current Y position of an element based on page coordinates.  Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method getY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
++         * @return {Number | Array} The Y position of the element(s)
++         */
++        getY: function(el) {
++            var f = function(el) {
++                return Y.Dom.getXY(el)[1];
++            };
++            
++            return Y.Dom.batch(el, f, Y.Dom, true);
++        },
++        
++        /**
++         * Set the position of an html element in page coordinates, regardless of how the element is positioned.
++         * The element(s) must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method setXY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements
++         * @param {Array} pos Contains X & Y values for new position (coordinates are page-based)
++         * @param {Boolean} noRetry By default we try and set the position a second time if the first fails
++         */
++        setXY: function(el, pos, noRetry) {
++            Y.Dom.batch(el, Y.Dom._setXY, { pos: pos, noRetry: noRetry });
++        },
++
++        _setXY: function(node, args) {
++            var pos = Y.Dom._getStyle(node, POSITION),
++                setStyle = Y.Dom.setStyle,
++                xy = args.pos,
++                noRetry = args.noRetry,
++
++                delta = [ // assuming pixels; if not we will have to retry
++                    parseInt( Y.Dom.getComputedStyle(node, LEFT), 10 ),
++                    parseInt( Y.Dom.getComputedStyle(node, TOP), 10 )
++                ],
++
++                currentXY,
++                newXY;
++        
++            if (pos == 'static') { // default to relative
++                pos = RELATIVE;
++                setStyle(node, POSITION, pos);
++            }
++
++            currentXY = Y.Dom._getXY(node);
++
++            if (!xy || currentXY === false) { // has to be part of doc to have xy
++                return false; 
++            }
++            
++            if ( isNaN(delta[0]) ) {// in case of 'auto'
++                delta[0] = (pos == RELATIVE) ? 0 : node[OFFSET_LEFT];
++            } 
++            if ( isNaN(delta[1]) ) { // in case of 'auto'
++                delta[1] = (pos == RELATIVE) ? 0 : node[OFFSET_TOP];
++            } 
++
++            if (xy[0] !== null) { // from setX
++                setStyle(node, LEFT, xy[0] - currentXY[0] + delta[0] + 'px');
++            }
++
++            if (xy[1] !== null) { // from setY
++                setStyle(node, TOP, xy[1] - currentXY[1] + delta[1] + 'px');
++            }
++          
++            if (!noRetry) {
++                newXY = Y.Dom._getXY(node);
++
++                // if retry is true, try one more time if we miss 
++               if ( (xy[0] !== null && newXY[0] != xy[0]) || 
++                    (xy[1] !== null && newXY[1] != xy[1]) ) {
++                   Y.Dom._setXY(node, { pos: xy, noRetry: true });
++               }
++            }        
++
++        },
++        
++        /**
++         * Set the X position of an html element in page coordinates, regardless of how the element is positioned.
++         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method setX
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {Int} x The value to use as the X coordinate for the element(s).
++         */
++        setX: function(el, x) {
++            Y.Dom.setXY(el, [x, null]);
++        },
++        
++        /**
++         * Set the Y position of an html element in page coordinates, regardless of how the element is positioned.
++         * The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).
++         * @method setY
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @param {Int} x To use as the Y coordinate for the element(s).
++         */
++        setY: function(el, y) {
++            Y.Dom.setXY(el, [null, y]);
++        },
++        
++        /**
++         * Returns the region position of the given element.
++         * The element must be part of the DOM tree to have a region (display:none or elements not appended return false).
++         * @method getRegion
++         * @param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
++         * @return {Region | Array} A Region or array of Region instances containing "top, left, bottom, right" member data.
++         */
++        getRegion: function(el) {
++            var f = function(el) {
++                var region = false;
++                if ( Y.Dom._canPosition(el) ) {
++                    region = Y.Region.getRegion(el);
++                } else {
++                }
++
++                return region;
++            };
++            
++            return Y.Dom.batch(el, f, Y.Dom, true);
++        },
++        
++        /**
++         * Returns the width of the client (viewport).
++         * @method getClientWidth
++         * @deprecated Now using getViewportWidth.  This interface left intact for back compat.
++         * @return {Int} The width of the viewable area of the page.
++         */
++        getClientWidth: function() {
++            return Y.Dom.getViewportWidth();
++        },
++        
++        /**
++         * Returns the height of the client (viewport).
++         * @method getClientHeight
++         * @deprecated Now using getViewportHeight.  This interface left intact for back compat.
++         * @return {Int} The height of the viewable area of the page.
++         */
++        getClientHeight: function() {
++            return Y.Dom.getViewportHeight();
++        },
++
++        /**
++         * Returns an array of HTMLElements with the given class.
++         * For optimized performance, include a tag and/or root node when possible.
++         * Note: This method operates against a live collection, so modifying the 
++         * collection in the callback (removing/appending nodes, etc.) will have
++         * side effects.  Instead you should iterate the returned nodes array,
++         * as you would with the native "getElementsByTagName" method. 
++         * @method getElementsByClassName
++         * @param {String} className The class name to match against
++         * @param {String} tag (optional) The tag name of the elements being collected
++         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point.
++         * This element is not included in the className scan.
++         * @param {Function} apply (optional) A function to apply to each element when found 
++         * @param {Any} o (optional) An optional arg that is passed to the supplied method
++         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
++         * @return {Array} An array of elements that have the given class name
++         */
++        getElementsByClassName: function(className, tag, root, apply, o, overrides) {
++            tag = tag || '*';
++            root = (root) ? Y.Dom.get(root) : null || document; 
++            if (!root) {
++                return [];
++            }
++
++            var nodes = [],
++                elements = root.getElementsByTagName(tag),
++                hasClass = Y.Dom.hasClass;
++
++            for (var i = 0, len = elements.length; i < len; ++i) {
++                if ( hasClass(elements[i], className) ) {
++                    nodes[nodes.length] = elements[i];
++                }
++            }
++            
++            if (apply) {
++                Y.Dom.batch(nodes, apply, o, overrides);
++            }
++
++            return nodes;
++        },
++
++        /**
++         * Determines whether an HTMLElement has the given className.
++         * @method hasClass
++         * @param {String | HTMLElement | Array} el The element or collection to test
++         * @param {String} className the class name to search for
++         * @return {Boolean | Array} A boolean value or array of boolean values
++         */
++        hasClass: function(el, className) {
++            return Y.Dom.batch(el, Y.Dom._hasClass, className);
++        },
++
++        _hasClass: function(el, className) {
++            var ret = false,
++                current;
++            
++            if (el && className) {
++                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                if (className.exec) {
++                    ret = className.test(current);
++                } else {
++                    ret = className && (SPACE + current + SPACE).
++                        indexOf(SPACE + className + SPACE) > -1;
++                }
++            } else {
++            }
++
++            return ret;
++        },
++    
++        /**
++         * Adds a class name to a given element or collection of elements.
++         * @method addClass         
++         * @param {String | HTMLElement | Array} el The element or collection to add the class to
++         * @param {String} className the class name to add to the class attribute
++         * @return {Boolean | Array} A pass/fail boolean or array of booleans
++         */
++        addClass: function(el, className) {
++            return Y.Dom.batch(el, Y.Dom._addClass, className);
++        },
++
++        _addClass: function(el, className) {
++            var ret = false,
++                current;
++
++            if (el && className) {
++                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                if ( !Y.Dom._hasClass(el, className) ) {
++                    Y.Dom.setAttribute(el, CLASS_NAME, trim(current + SPACE + className));
++                    ret = true;
++                }
++            } else {
++            }
++
++            return ret;
++        },
++    
++        /**
++         * Removes a class name from a given element or collection of elements.
++         * @method removeClass         
++         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
++         * @param {String} className the class name to remove from the class attribute
++         * @return {Boolean | Array} A pass/fail boolean or array of booleans
++         */
++        removeClass: function(el, className) {
++            return Y.Dom.batch(el, Y.Dom._removeClass, className);
++        },
++        
++        _removeClass: function(el, className) {
++            var ret = false,
++                current,
++                newClass,
++                attr;
++
++            if (el && className) {
++                current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                Y.Dom.setAttribute(el, CLASS_NAME, current.replace(Y.Dom._getClassRegex(className), EMPTY));
++
++                newClass = Y.Dom._getAttribute(el, CLASS_NAME);
++                if (current !== newClass) { // else nothing changed
++                    Y.Dom.setAttribute(el, CLASS_NAME, trim(newClass)); // trim after comparing to current class
++                    ret = true;
++
++                    if (Y.Dom._getAttribute(el, CLASS_NAME) === '') { // remove class attribute if empty
++                        attr = (el.hasAttribute && el.hasAttribute(_CLASS)) ? _CLASS : CLASS_NAME;
++                        el.removeAttribute(attr);
++                    }
++                }
++
++            } else {
++            }
++
++            return ret;
++        },
++        
++        /**
++         * Replace a class with another class for a given element or collection of elements.
++         * If no oldClassName is present, the newClassName is simply added.
++         * @method replaceClass  
++         * @param {String | HTMLElement | Array} el The element or collection to remove the class from
++         * @param {String} oldClassName the class name to be replaced
++         * @param {String} newClassName the class name that will be replacing the old class name
++         * @return {Boolean | Array} A pass/fail boolean or array of booleans
++         */
++        replaceClass: function(el, oldClassName, newClassName) {
++            return Y.Dom.batch(el, Y.Dom._replaceClass, { from: oldClassName, to: newClassName });
++        },
++
++        _replaceClass: function(el, classObj) {
++            var className,
++                from,
++                to,
++                ret = false,
++                current;
++
++            if (el && classObj) {
++                from = classObj.from;
++                to = classObj.to;
++
++                if (!to) {
++                    ret = false;
++                }  else if (!from) { // just add if no "from"
++                    ret = Y.Dom._addClass(el, classObj.to);
++                } else if (from !== to) { // else nothing to replace
++                    // May need to lead with DBLSPACE?
++                    current = Y.Dom._getAttribute(el, CLASS_NAME) || EMPTY;
++                    className = (SPACE + current.replace(Y.Dom._getClassRegex(from), SPACE + to)).
++                               split(Y.Dom._getClassRegex(to));
++
++                    // insert to into what would have been the first occurrence slot
++                    className.splice(1, 0, SPACE + to);
++                    Y.Dom.setAttribute(el, CLASS_NAME, trim(className.join(EMPTY)));
++                    ret = true;
++                }
++            } else {
++            }
++
++            return ret;
++        },
++        
++        /**
++         * Returns an ID and applies it to the element "el", if provided.
++         * @method generateId  
++         * @param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
++         * @param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
++         * @return {String | Array} The generated ID, or array of generated IDs (or original ID if already present on an element)
++         */
++        generateId: function(el, prefix) {
++            prefix = prefix || 'yui-gen';
++
++            var f = function(el) {
++                if (el && el.id) { // do not override existing ID
++                    return el.id;
++                }
++
++                var id = prefix + YAHOO.env._id_counter++;
++
++                if (el) {
++                    if (el[OWNER_DOCUMENT] && el[OWNER_DOCUMENT].getElementById(id)) { // in case one already exists
++                        // use failed id plus prefix to help ensure uniqueness
++                        return Y.Dom.generateId(el, id + prefix);
++                    }
++                    el.id = id;
++                }
++                
++                return id;
++            };
++
++            // batch fails when no element, so just generate and return single ID
++            return Y.Dom.batch(el, f, Y.Dom, true) || f.apply(Y.Dom, arguments);
++        },
++        
++        /**
++         * Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
++         * @method isAncestor
++         * @param {String | HTMLElement} haystack The possible ancestor
++         * @param {String | HTMLElement} needle The possible descendent
++         * @return {Boolean} Whether or not the haystack is an ancestor of needle
++         */
++        isAncestor: function(haystack, needle) {
++            haystack = Y.Dom.get(haystack);
++            needle = Y.Dom.get(needle);
++            
++            var ret = false;
++
++            if ( (haystack && needle) && (haystack[NODE_TYPE] && needle[NODE_TYPE]) ) {
++                if (haystack.contains && haystack !== needle) { // contains returns true when equal
++                    ret = haystack.contains(needle);
++                }
++                else if (haystack.compareDocumentPosition) { // gecko
++                    ret = !!(haystack.compareDocumentPosition(needle) & 16);
++                }
++            } else {
++            }
++            return ret;
++        },
++        
++        /**
++         * Determines whether an HTMLElement is present in the current document.
++         * @method inDocument         
++         * @param {String | HTMLElement} el The element to search for
++         * @param {Object} doc An optional document to search, defaults to element's owner document 
++         * @return {Boolean} Whether or not the element is present in the current document
++         */
++        inDocument: function(el, doc) {
++            return Y.Dom._inDoc(Y.Dom.get(el), doc);
++        },
++
++        _inDoc: function(el, doc) {
++            var ret = false;
++            if (el && el[TAG_NAME]) {
++                doc = doc || el[OWNER_DOCUMENT]; 
++                ret = Y.Dom.isAncestor(doc[DOCUMENT_ELEMENT], el);
++            } else {
++            }
++            return ret;
++        },
++        
++        /**
++         * Returns an array of HTMLElements that pass the test applied by supplied boolean method.
++         * For optimized performance, include a tag and/or root node when possible.
++         * Note: This method operates against a live collection, so modifying the 
++         * collection in the callback (removing/appending nodes, etc.) will have
++         * side effects.  Instead you should iterate the returned nodes array,
++         * as you would with the native "getElementsByTagName" method. 
++         * @method getElementsBy
++         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
++         * @param {String} tag (optional) The tag name of the elements being collected
++         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
++         * @param {Function} apply (optional) A function to apply to each element when found 
++         * @param {Any} o (optional) An optional arg that is passed to the supplied method
++         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
++         * @return {Array} Array of HTMLElements
++         */
++        getElementsBy: function(method, tag, root, apply, o, overrides, firstOnly) {
++            tag = tag || '*';
++            root = (root) ? Y.Dom.get(root) : null || document; 
++
++            if (!root) {
++                return [];
++            }
++
++            var nodes = [],
++                elements = root.getElementsByTagName(tag);
++            
++            for (var i = 0, len = elements.length; i < len; ++i) {
++                if ( method(elements[i]) ) {
++                    if (firstOnly) {
++                        nodes = elements[i]; 
++                        break;
++                    } else {
++                        nodes[nodes.length] = elements[i];
++                    }
++                }
++            }
++
++            if (apply) {
++                Y.Dom.batch(nodes, apply, o, overrides);
++            }
++
++            
++            return nodes;
++        },
++        
++        /**
++         * Returns the first HTMLElement that passes the test applied by the supplied boolean method.
++         * @method getElementBy
++         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
++         * @param {String} tag (optional) The tag name of the elements being collected
++         * @param {String | HTMLElement} root (optional) The HTMLElement or an ID to use as the starting point 
++         * @return {HTMLElement}
++         */
++        getElementBy: function(method, tag, root) {
++            return Y.Dom.getElementsBy(method, tag, root, null, null, null, true); 
++        },
++
++        /**
++         * Runs the supplied method against each item in the Collection/Array.
++         * The method is called with the element(s) as the first arg, and the optional param as the second ( method(el, o) ).
++         * @method batch
++         * @param {String | HTMLElement | Array} el (optional) An element or array of elements to apply the method to
++         * @param {Function} method The method to apply to the element(s)
++         * @param {Any} o (optional) An optional arg that is passed to the supplied method
++         * @param {Boolean} overrides (optional) Whether or not to override the scope of "method" with "o"
++         * @return {Any | Array} The return value(s) from the supplied method
++         */
++        batch: function(el, method, o, overrides) {
++            var collection = [],
++                scope = (overrides) ? o : window;
++                
++            el = (el && (el[TAG_NAME] || el.item)) ? el : Y.Dom.get(el); // skip get() when possible
++            if (el && method) {
++                if (el[TAG_NAME] || el.length === undefined) { // element or not array-like 
++                    return method.call(scope, el, o);
++                } 
++
++                for (var i = 0; i < el.length; ++i) {
++                    collection[collection.length] = method.call(scope, el[i], o);
++                }
++            } else {
++                return false;
++            } 
++            return collection;
++        },
++        
++        /**
++         * Returns the height of the document.
++         * @method getDocumentHeight
++         * @return {Int} The height of the actual document (which includes the body and its margin).
++         */
++        getDocumentHeight: function() {
++            var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
++                h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
++
++            return h;
++        },
++        
++        /**
++         * Returns the width of the document.
++         * @method getDocumentWidth
++         * @return {Int} The width of the actual document (which includes the body and its margin).
++         */
++        getDocumentWidth: function() {
++            var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
++                w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
++            return w;
++        },
++
++        /**
++         * Returns the current height of the viewport.
++         * @method getViewportHeight
++         * @return {Int} The height of the viewable area of the page (excludes scrollbars).
++         */
++        getViewportHeight: function() {
++            var height = self.innerHeight, // Safari, Opera
++                mode = document[COMPAT_MODE];
++        
++            if ( (mode || isIE) && !isOpera ) { // IE, Gecko
++                height = (mode == CSS1_COMPAT) ?
++                        documentElement.clientHeight : // Standards
++                        document.body.clientHeight; // Quirks
++            }
++        
++            return height;
++        },
++        
++        /**
++         * Returns the current width of the viewport.
++         * @method getViewportWidth
++         * @return {Int} The width of the viewable area of the page (excludes scrollbars).
++         */
++        
++        getViewportWidth: function() {
++            var width = self.innerWidth,  // Safari
++                mode = document[COMPAT_MODE];
++            
++            if (mode || isIE) { // IE, Gecko, Opera
++                width = (mode == CSS1_COMPAT) ?
++                        documentElement.clientWidth : // Standards
++                        document.body.clientWidth; // Quirks
++            }
++            return width;
++        },
++
++       /**
++         * Returns the nearest ancestor that passes the test applied by supplied boolean method.
++         * For performance reasons, IDs are not accepted and argument validation omitted.
++         * @method getAncestorBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method - A boolean method for testing elements which receives the element as its only argument.
++         * @return {Object} HTMLElement or null if not found
++         */
++        getAncestorBy: function(node, method) {
++            while ( (node = node[PARENT_NODE]) ) { // NOTE: assignment
++                if ( Y.Dom._testElement(node, method) ) {
++                    return node;
++                }
++            } 
++
++            return null;
++        },
++        
++        /**
++         * Returns the nearest ancestor with the given className.
++         * @method getAncestorByClassName
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @param {String} className
++         * @return {Object} HTMLElement
++         */
++        getAncestorByClassName: function(node, className) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                return null;
++            }
++            var method = function(el) { return Y.Dom.hasClass(el, className); };
++            return Y.Dom.getAncestorBy(node, method);
++        },
++
++        /**
++         * Returns the nearest ancestor with the given tagName.
++         * @method getAncestorByTagName
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @param {String} tagName
++         * @return {Object} HTMLElement
++         */
++        getAncestorByTagName: function(node, tagName) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                return null;
++            }
++            var method = function(el) {
++                 return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase();
++            };
++
++            return Y.Dom.getAncestorBy(node, method);
++        },
++
++        /**
++         * Returns the previous sibling that is an HTMLElement. 
++         * For performance reasons, IDs are not accepted and argument validation omitted.
++         * Returns the nearest HTMLElement sibling if no method provided.
++         * @method getPreviousSiblingBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test siblings
++         * that receives the sibling node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getPreviousSiblingBy: function(node, method) {
++            while (node) {
++                node = node.previousSibling;
++                if ( Y.Dom._testElement(node, method) ) {
++                    return node;
++                }
++            }
++            return null;
++        }, 
++
++        /**
++         * Returns the previous sibling that is an HTMLElement 
++         * @method getPreviousSibling
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getPreviousSibling: function(node) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                return null;
++            }
++
++            return Y.Dom.getPreviousSiblingBy(node);
++        }, 
++
++        /**
++         * Returns the next HTMLElement sibling that passes the boolean method. 
++         * For performance reasons, IDs are not accepted and argument validation omitted.
++         * Returns the nearest HTMLElement sibling if no method provided.
++         * @method getNextSiblingBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test siblings
++         * that receives the sibling node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getNextSiblingBy: function(node, method) {
++            while (node) {
++                node = node.nextSibling;
++                if ( Y.Dom._testElement(node, method) ) {
++                    return node;
++                }
++            }
++            return null;
++        }, 
++
++        /**
++         * Returns the next sibling that is an HTMLElement 
++         * @method getNextSibling
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getNextSibling: function(node) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                return null;
++            }
++
++            return Y.Dom.getNextSiblingBy(node);
++        }, 
++
++        /**
++         * Returns the first HTMLElement child that passes the test method. 
++         * @method getFirstChildBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test children
++         * that receives the node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getFirstChildBy: function(node, method) {
++            var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
++            return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
++        }, 
++
++        /**
++         * Returns the first HTMLElement child. 
++         * @method getFirstChild
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getFirstChild: function(node, method) {
++            node = Y.Dom.get(node);
++            if (!node) {
++                return null;
++            }
++            return Y.Dom.getFirstChildBy(node);
++        }, 
++
++        /**
++         * Returns the last HTMLElement child that passes the test method. 
++         * @method getLastChildBy
++         * @param {HTMLElement} node The HTMLElement to use as the starting point 
++         * @param {Function} method A boolean function used to test children
++         * that receives the node being tested as its only argument
++         * @return {Object} HTMLElement or null if not found
++         */
++        getLastChildBy: function(node, method) {
++            if (!node) {
++                return null;
++            }
++            var child = ( Y.Dom._testElement(node.lastChild, method) ) ? node.lastChild : null;
++            return child || Y.Dom.getPreviousSiblingBy(node.lastChild, method);
++        }, 
++
++        /**
++         * Returns the last HTMLElement child. 
++         * @method getLastChild
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Object} HTMLElement or null if not found
++         */
++        getLastChild: function(node) {
++            node = Y.Dom.get(node);
++            return Y.Dom.getLastChildBy(node);
++        }, 
++
++        /**
++         * Returns an array of HTMLElement childNodes that pass the test method. 
++         * @method getChildrenBy
++         * @param {HTMLElement} node The HTMLElement to start from
++         * @param {Function} method A boolean function used to test children
++         * that receives the node being tested as its only argument
++         * @return {Array} A static array of HTMLElements
++         */
++        getChildrenBy: function(node, method) {
++            var child = Y.Dom.getFirstChildBy(node, method),
++                children = child ? [child] : [];
++
++            Y.Dom.getNextSiblingBy(child, function(node) {
++                if ( !method || method(node) ) {
++                    children[children.length] = node;
++                }
++                return false; // fail test to collect all children
++            });
++
++            return children;
++        },
++ 
++        /**
++         * Returns an array of HTMLElement childNodes. 
++         * @method getChildren
++         * @param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point 
++         * @return {Array} A static array of HTMLElements
++         */
++        getChildren: function(node) {
++            node = Y.Dom.get(node);
++            if (!node) {
++            }
++
++            return Y.Dom.getChildrenBy(node);
++        },
++
++        /**
++         * Returns the left scroll value of the document 
++         * @method getDocumentScrollLeft
++         * @param {HTMLDocument} document (optional) The document to get the scroll value of
++         * @return {Int}  The amount that the document is scrolled to the left
++         */
++        getDocumentScrollLeft: function(doc) {
++            doc = doc || document;
++            return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft);
++        }, 
++
++        /**
++         * Returns the top scroll value of the document 
++         * @method getDocumentScrollTop
++         * @param {HTMLDocument} document (optional) The document to get the scroll value of
++         * @return {Int}  The amount that the document is scrolled to the top
++         */
++        getDocumentScrollTop: function(doc) {
++            doc = doc || document;
++            return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop);
++        },
++
++        /**
++         * Inserts the new node as the previous sibling of the reference node 
++         * @method insertBefore
++         * @param {String | HTMLElement} newNode The node to be inserted
++         * @param {String | HTMLElement} referenceNode The node to insert the new node before 
++         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
++         */
++        insertBefore: function(newNode, referenceNode) {
++            newNode = Y.Dom.get(newNode); 
++            referenceNode = Y.Dom.get(referenceNode); 
++            
++            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
++                return null;
++            }       
++
++            return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode); 
++        },
++
++        /**
++         * Inserts the new node as the next sibling of the reference node 
++         * @method insertAfter
++         * @param {String | HTMLElement} newNode The node to be inserted
++         * @param {String | HTMLElement} referenceNode The node to insert the new node after 
++         * @return {HTMLElement} The node that was inserted (or null if insert fails) 
++         */
++        insertAfter: function(newNode, referenceNode) {
++            newNode = Y.Dom.get(newNode); 
++            referenceNode = Y.Dom.get(referenceNode); 
++            
++            if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
++                return null;
++            }       
++
++            if (referenceNode.nextSibling) {
++                return referenceNode[PARENT_NODE].insertBefore(newNode, referenceNode.nextSibling); 
++            } else {
++                return referenceNode[PARENT_NODE].appendChild(newNode);
++            }
++        },
++
++        /**
++         * Creates a Region based on the viewport relative to the document. 
++         * @method getClientRegion
++         * @return {Region} A Region object representing the viewport which accounts for document scroll
++         */
++        getClientRegion: function() {
++            var t = Y.Dom.getDocumentScrollTop(),
++                l = Y.Dom.getDocumentScrollLeft(),
++                r = Y.Dom.getViewportWidth() + l,
++                b = Y.Dom.getViewportHeight() + t;
++
++            return new Y.Region(t, r, b, l);
++        },
++
++        /**
++         * Provides a normalized attribute interface. 
++         * @method setAttribute
++         * @param {String | HTMLElement} el The target element for the attribute.
++         * @param {String} attr The attribute to set.
++         * @param {String} val The value of the attribute.
++         */
++        setAttribute: function(el, attr, val) {
++            Y.Dom.batch(el, Y.Dom._setAttribute, { attr: attr, val: val });
++        },
++
++        _setAttribute: function(el, args) {
++            var attr = Y.Dom._toCamel(args.attr),
++                val = args.val;
++
++            if (el && el.setAttribute) {
++                if (Y.Dom.DOT_ATTRIBUTES[attr]) {
++                    el[attr] = val;
++                } else {
++                    attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
++                    el.setAttribute(attr, val);
++                }
++            } else {
++            }
++        },
++
++        /**
++         * Provides a normalized attribute interface. 
++         * @method getAttribute
++         * @param {String | HTMLElement} el The target element for the attribute.
++         * @param {String} attr The attribute to get.
++         * @return {String} The current value of the attribute. 
++         */
++        getAttribute: function(el, attr) {
++            return Y.Dom.batch(el, Y.Dom._getAttribute, attr);
++        },
++
++
++        _getAttribute: function(el, attr) {
++            var val;
++            attr = Y.Dom.CUSTOM_ATTRIBUTES[attr] || attr;
++
++            if (el && el.getAttribute) {
++                val = el.getAttribute(attr, 2);
++            } else {
++            }
++
++            return val;
++        },
++
++        _toCamel: function(property) {
++            var c = propertyCache;
++
++            function tU(x,l) {
++                return l.toUpperCase();
++            }
++
++            return c[property] || (c[property] = property.indexOf('-') === -1 ? 
++                                    property :
++                                    property.replace( /-([a-z])/gi, tU ));
++        },
++
++        _getClassRegex: function(className) {
++            var re;
++            if (className !== undefined) { // allow empty string to pass
++                if (className.exec) { // already a RegExp
++                    re = className;
++                } else {
++                    re = reCache[className];
++                    if (!re) {
++                        // escape special chars (".", "[", etc.)
++                        className = className.replace(Y.Dom._patterns.CLASS_RE_TOKENS, '\\$1');
++                        re = reCache[className] = new RegExp(C_START + className + C_END, G);
++                    }
++                }
++            }
++            return re;
++        },
++
++        _patterns: {
++            ROOT_TAG: /^body|html$/i, // body for quirks mode, html for standards,
++            CLASS_RE_TOKENS: /([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g
++        },
++
++
++        _testElement: function(node, method) {
++            return node && node[NODE_TYPE] == 1 && ( !method || method(node) );
++        },
++
++        _calcBorders: function(node, xy2) {
++            var t = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_TOP_WIDTH), 10) || 0,
++                l = parseInt(Y.Dom[GET_COMPUTED_STYLE](node, BORDER_LEFT_WIDTH), 10) || 0;
++            if (isGecko) {
++                if (RE_TABLE.test(node[TAG_NAME])) {
++                    t = 0;
++                    l = 0;
++                }
++            }
++            xy2[0] += l;
++            xy2[1] += t;
++            return xy2;
++        }
++    };
++        
++    var _getComputedStyle = Y.Dom[GET_COMPUTED_STYLE];
++    // fix opera computedStyle default color unit (convert to rgb)
++    if (UA.opera) {
++        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
++            var val = _getComputedStyle(node, att);
++            if (RE_COLOR.test(att)) {
++                val = Y.Dom.Color.toRGB(val);
++            }
++
++            return val;
++        };
++
++    }
++
++    // safari converts transparent to rgba(), others use "transparent"
++    if (UA.webkit) {
++        Y.Dom[GET_COMPUTED_STYLE] = function(node, att) {
++            var val = _getComputedStyle(node, att);
++
++            if (val === 'rgba(0, 0, 0, 0)') {
++                val = 'transparent'; 
++            }
++
++            return val;
++        };
++
++    }
++
++    if (UA.ie && UA.ie >= 8 && document.documentElement.hasAttribute) { // IE 8 standards
++        Y.Dom.DOT_ATTRIBUTES.type = true; // IE 8 errors on input.setAttribute('type')
++    }
++})();
++/**
++ * A region is a representation of an object on a grid.  It is defined
++ * by the top, right, bottom, left extents, so is rectangular by default.  If 
++ * other shapes are required, this class could be extended to support it.
++ * @namespace YAHOO.util
++ * @class Region
++ * @param {Int} t the top extent
++ * @param {Int} r the right extent
++ * @param {Int} b the bottom extent
++ * @param {Int} l the left extent
++ * @constructor
++ */
++YAHOO.util.Region = function(t, r, b, l) {
++
++    /**
++     * The region's top extent
++     * @property top
++     * @type Int
++     */
++    this.top = t;
++    
++    /**
++     * The region's top extent
++     * @property y
++     * @type Int
++     */
++    this.y = t;
++    
++    /**
++     * The region's top extent as index, for symmetry with set/getXY
++     * @property 1
++     * @type Int
++     */
++    this[1] = t;
++
++    /**
++     * The region's right extent
++     * @property right
++     * @type int
++     */
++    this.right = r;
++
++    /**
++     * The region's bottom extent
++     * @property bottom
++     * @type Int
++     */
++    this.bottom = b;
++
++    /**
++     * The region's left extent
++     * @property left
++     * @type Int
++     */
++    this.left = l;
++    
++    /**
++     * The region's left extent
++     * @property x
++     * @type Int
++     */
++    this.x = l;
++    
++    /**
++     * The region's left extent as index, for symmetry with set/getXY
++     * @property 0
++     * @type Int
++     */
++    this[0] = l;
++
++    /**
++     * The region's total width 
++     * @property width 
++     * @type Int
++     */
++    this.width = this.right - this.left;
++
++    /**
++     * The region's total height 
++     * @property height 
++     * @type Int
++     */
++    this.height = this.bottom - this.top;
++};
++
++/**
++ * Returns true if this region contains the region passed in
++ * @method contains
++ * @param  {Region}  region The region to evaluate
++ * @return {Boolean}        True if the region is contained with this region, 
++ *                          else false
++ */
++YAHOO.util.Region.prototype.contains = function(region) {
++    return ( region.left   >= this.left   && 
++             region.right  <= this.right  && 
++             region.top    >= this.top    && 
++             region.bottom <= this.bottom    );
++
++};
++
++/**
++ * Returns the area of the region
++ * @method getArea
++ * @return {Int} the region's area
++ */
++YAHOO.util.Region.prototype.getArea = function() {
++    return ( (this.bottom - this.top) * (this.right - this.left) );
++};
++
++/**
++ * Returns the region where the passed in region overlaps with this one
++ * @method intersect
++ * @param  {Region} region The region that intersects
++ * @return {Region}        The overlap region, or null if there is no overlap
++ */
++YAHOO.util.Region.prototype.intersect = function(region) {
++    var t = Math.max( this.top,    region.top    ),
++        r = Math.min( this.right,  region.right  ),
++        b = Math.min( this.bottom, region.bottom ),
++        l = Math.max( this.left,   region.left   );
++    
++    if (b >= t && r >= l) {
++        return new YAHOO.util.Region(t, r, b, l);
++    } else {
++        return null;
++    }
++};
++
++/**
++ * Returns the region representing the smallest region that can contain both
++ * the passed in region and this region.
++ * @method union
++ * @param  {Region} region The region that to create the union with
++ * @return {Region}        The union region
++ */
++YAHOO.util.Region.prototype.union = function(region) {
++    var t = Math.min( this.top,    region.top    ),
++        r = Math.max( this.right,  region.right  ),
++        b = Math.max( this.bottom, region.bottom ),
++        l = Math.min( this.left,   region.left   );
++
++    return new YAHOO.util.Region(t, r, b, l);
++};
++
++/**
++ * toString
++ * @method toString
++ * @return string the region properties
++ */
++YAHOO.util.Region.prototype.toString = function() {
++    return ( "Region {"    +
++             "top: "       + this.top    + 
++             ", right: "   + this.right  + 
++             ", bottom: "  + this.bottom + 
++             ", left: "    + this.left   + 
++             ", height: "  + this.height + 
++             ", width: "    + this.width   + 
++             "}" );
++};
++
++/**
++ * Returns a region that is occupied by the DOM element
++ * @method getRegion
++ * @param  {HTMLElement} el The element
++ * @return {Region}         The region that the element occupies
++ * @static
++ */
++YAHOO.util.Region.getRegion = function(el) {
++    var p = YAHOO.util.Dom.getXY(el),
++        t = p[1],
++        r = p[0] + el.offsetWidth,
++        b = p[1] + el.offsetHeight,
++        l = p[0];
++
++    return new YAHOO.util.Region(t, r, b, l);
++};
++
++/////////////////////////////////////////////////////////////////////////////
++
++
++/**
++ * A point is a region that is special in that it represents a single point on 
++ * the grid.
++ * @namespace YAHOO.util
++ * @class Point
++ * @param {Int} x The X position of the point
++ * @param {Int} y The Y position of the point
++ * @constructor
++ * @extends YAHOO.util.Region
++ */
++YAHOO.util.Point = function(x, y) {
++   if (YAHOO.lang.isArray(x)) { // accept input from Dom.getXY, Event.getXY, etc.
++      y = x[1]; // dont blow away x yet
++      x = x[0];
++   }
++ 
++    YAHOO.util.Point.superclass.constructor.call(this, y, x, y, x);
++};
++
++YAHOO.extend(YAHOO.util.Point, YAHOO.util.Region);
++
++(function() {
++/**
++ * Add style management functionality to DOM.
++ * @module dom
++ * @for Dom
++ */
++
++var Y = YAHOO.util, 
++    CLIENT_TOP = 'clientTop',
++    CLIENT_LEFT = 'clientLeft',
++    PARENT_NODE = 'parentNode',
++    RIGHT = 'right',
++    HAS_LAYOUT = 'hasLayout',
++    PX = 'px',
++    OPACITY = 'opacity',
++    AUTO = 'auto',
++    BORDER_LEFT_WIDTH = 'borderLeftWidth',
++    BORDER_TOP_WIDTH = 'borderTopWidth',
++    BORDER_RIGHT_WIDTH = 'borderRightWidth',
++    BORDER_BOTTOM_WIDTH = 'borderBottomWidth',
++    VISIBLE = 'visible',
++    TRANSPARENT = 'transparent',
++    HEIGHT = 'height',
++    WIDTH = 'width',
++    STYLE = 'style',
++    CURRENT_STYLE = 'currentStyle',
++
++// IE getComputedStyle
++// TODO: unit-less lineHeight (e.g. 1.22)
++    re_size = /^width|height$/,
++    re_unit = /^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,
++
++    ComputedStyle = {
++        get: function(el, property) {
++            var value = '',
++                current = el[CURRENT_STYLE][property];
++
++            if (property === OPACITY) {
++                value = Y.Dom.getStyle(el, OPACITY);        
++            } else if (!current || (current.indexOf && current.indexOf(PX) > -1)) { // no need to convert
++                value = current;
++            } else if (Y.Dom.IE_COMPUTED[property]) { // use compute function
++                value = Y.Dom.IE_COMPUTED[property](el, property);
++            } else if (re_unit.test(current)) { // convert to pixel
++                value = Y.Dom.IE.ComputedStyle.getPixel(el, property);
++            } else {
++                value = current;
++            }
++
++            return value;
++        },
++
++        getOffset: function(el, prop) {
++            var current = el[CURRENT_STYLE][prop],                        // value of "width", "top", etc.
++                capped = prop.charAt(0).toUpperCase() + prop.substr(1), // "Width", "Top", etc.
++                offset = 'offset' + capped,                             // "offsetWidth", "offsetTop", etc.
++                pixel = 'pixel' + capped,                               // "pixelWidth", "pixelTop", etc.
++                value = '',
++                actual;
++
++            if (current == AUTO) {
++                actual = el[offset]; // offsetHeight/Top etc.
++                if (actual === undefined) { // likely "right" or "bottom"
++                    value = 0;
++                }
++
++                value = actual;
++                if (re_size.test(prop)) { // account for box model diff 
++                    el[STYLE][prop] = actual; 
++                    if (el[offset] > actual) {
++                        // the difference is padding + border (works in Standards & Quirks modes)
++                        value = actual - (el[offset] - actual);
++                    }
++                    el[STYLE][prop] = AUTO; // revert to auto
++                }
++            } else { // convert units to px
++                if (!el[STYLE][pixel] && !el[STYLE][prop]) { // need to map style.width to currentStyle (no currentStyle.pixelWidth)
++                    el[STYLE][prop] = current;              // no style.pixelWidth if no style.width
++                }
++                value = el[STYLE][pixel];
++            }
++            return value + PX;
++        },
++
++        getBorderWidth: function(el, property) {
++            // clientHeight/Width = paddingBox (e.g. offsetWidth - borderWidth)
++            // clientTop/Left = borderWidth
++            var value = null;
++            if (!el[CURRENT_STYLE][HAS_LAYOUT]) { // TODO: unset layout?
++                el[STYLE].zoom = 1; // need layout to measure client
++            }
++
++            switch(property) {
++                case BORDER_TOP_WIDTH:
++                    value = el[CLIENT_TOP];
++                    break;
++                case BORDER_BOTTOM_WIDTH:
++                    value = el.offsetHeight - el.clientHeight - el[CLIENT_TOP];
++                    break;
++                case BORDER_LEFT_WIDTH:
++                    value = el[CLIENT_LEFT];
++                    break;
++                case BORDER_RIGHT_WIDTH:
++                    value = el.offsetWidth - el.clientWidth - el[CLIENT_LEFT];
++                    break;
++            }
++            return value + PX;
++        },
++
++        getPixel: function(node, att) {
++            // use pixelRight to convert to px
++            var val = null,
++                styleRight = node[CURRENT_STYLE][RIGHT],
++                current = node[CURRENT_STYLE][att];
++
++            node[STYLE][RIGHT] = current;
++            val = node[STYLE].pixelRight;
++            node[STYLE][RIGHT] = styleRight; // revert
++
++            return val + PX;
++        },
++
++        getMargin: function(node, att) {
++            var val;
++            if (node[CURRENT_STYLE][att] == AUTO) {
++                val = 0 + PX;
++            } else {
++                val = Y.Dom.IE.ComputedStyle.getPixel(node, att);
++            }
++            return val;
++        },
++
++        getVisibility: function(node, att) {
++            var current;
++            while ( (current = node[CURRENT_STYLE]) && current[att] == 'inherit') { // NOTE: assignment in test
++                node = node[PARENT_NODE];
++            }
++            return (current) ? current[att] : VISIBLE;
++        },
++
++        getColor: function(node, att) {
++            return Y.Dom.Color.toRGB(node[CURRENT_STYLE][att]) || TRANSPARENT;
++        },
++
++        getBorderColor: function(node, att) {
++            var current = node[CURRENT_STYLE],
++                val = current[att] || current.color;
++            return Y.Dom.Color.toRGB(Y.Dom.Color.toHex(val));
++        }
++
++    },
++
++//fontSize: getPixelFont,
++    IEComputed = {};
++
++IEComputed.top = IEComputed.right = IEComputed.bottom = IEComputed.left = 
++        IEComputed[WIDTH] = IEComputed[HEIGHT] = ComputedStyle.getOffset;
++
++IEComputed.color = ComputedStyle.getColor;
++
++IEComputed[BORDER_TOP_WIDTH] = IEComputed[BORDER_RIGHT_WIDTH] =
++        IEComputed[BORDER_BOTTOM_WIDTH] = IEComputed[BORDER_LEFT_WIDTH] =
++        ComputedStyle.getBorderWidth;
++
++IEComputed.marginTop = IEComputed.marginRight = IEComputed.marginBottom =
++        IEComputed.marginLeft = ComputedStyle.getMargin;
++
++IEComputed.visibility = ComputedStyle.getVisibility;
++IEComputed.borderColor = IEComputed.borderTopColor =
++        IEComputed.borderRightColor = IEComputed.borderBottomColor =
++        IEComputed.borderLeftColor = ComputedStyle.getBorderColor;
++
++Y.Dom.IE_COMPUTED = IEComputed;
++Y.Dom.IE_ComputedStyle = ComputedStyle;
++})();
++(function() {
++/**
++ * Add style management functionality to DOM.
++ * @module dom
++ * @for Dom
++ */
++
++var TO_STRING = 'toString',
++    PARSE_INT = parseInt,
++    RE = RegExp,
++    Y = YAHOO.util;
++
++Y.Dom.Color = {
++    KEYWORDS: {
++        black: '000',
++        silver: 'c0c0c0',
++        gray: '808080',
++        white: 'fff',
++        maroon: '800000',
++        red: 'f00',
++        purple: '800080',
++        fuchsia: 'f0f',
++        green: '008000',
++        lime: '0f0',
++        olive: '808000',
++        yellow: 'ff0',
++        navy: '000080',
++        blue: '00f',
++        teal: '008080',
++        aqua: '0ff'
++    },
++
++    re_RGB: /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,
++    re_hex: /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,
++    re_hex3: /([0-9A-F])/gi,
++
++    toRGB: function(val) {
++        if (!Y.Dom.Color.re_RGB.test(val)) {
++            val = Y.Dom.Color.toHex(val);
++        }
++
++        if(Y.Dom.Color.re_hex.exec(val)) {
++            val = 'rgb(' + [
++                PARSE_INT(RE.$1, 16),
++                PARSE_INT(RE.$2, 16),
++                PARSE_INT(RE.$3, 16)
++            ].join(', ') + ')';
++        }
++        return val;
++    },
++
++    toHex: function(val) {
++        val = Y.Dom.Color.KEYWORDS[val] || val;
++        if (Y.Dom.Color.re_RGB.exec(val)) {
++            var r = (RE.$1.length === 1) ? '0' + RE.$1 : Number(RE.$1),
++                g = (RE.$2.length === 1) ? '0' + RE.$2 : Number(RE.$2),
++                b = (RE.$3.length === 1) ? '0' + RE.$3 : Number(RE.$3);
++
++            val = [
++                r[TO_STRING](16),
++                g[TO_STRING](16),
++                b[TO_STRING](16)
++            ].join('');
++        }
++
++        if (val.length < 6) {
++            val = val.replace(Y.Dom.Color.re_hex3, '$1$1');
++        }
++
++        if (val !== 'transparent' && val.indexOf('#') < 0) {
++            val = '#' + val;
++        }
++
++        return val.toLowerCase();
++    }
++};
++}());
++YAHOO.register("dom", YAHOO.util.Dom, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/dragdrop/dragdrop-debug.js b/pylons_app/public/js/yui/dragdrop/dragdrop-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/dragdrop/dragdrop-debug.js
+@@ -0,0 +1,3710 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The 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,
++        Dom = YAHOO.util.Dom;
++
++    return {
++        /**
++        * This property is used to turn on global use of the shim element on all DragDrop instances, defaults to false for backcompat. (Use: YAHOO.util.DDM.useShim = true)
++        * @property useShim
++        * @type Boolean
++        * @static
++        */
++        useShim: false,
++        /**
++        * This property is used to determine if the shim is active over the screen, default false.
++        * @private
++        * @property _shimActive
++        * @type Boolean
++        * @static
++        */
++        _shimActive: false,
++        /**
++        * This property is used when useShim is set on a DragDrop object to store the current state of DDM.useShim so it can be reset when a drag operation is done.
++        * @private
++        * @property _shimState
++        * @type Boolean
++        * @static
++        */
++        _shimState: false,
++        /**
++        * This property is used when useShim is set to true, it will set the opacity on the shim to .5 for debugging. Use: (YAHOO.util.DDM._debugShim = true;)
++        * @private
++        * @property _debugShim
++        * @type Boolean
++        * @static
++        */
++        _debugShim: false,
++        /**
++        * This method will create a shim element (giving it the id of yui-ddm-shim), it also attaches the mousemove and mouseup listeners to it and attaches a scroll listener on the window
++        * @private
++        * @method _sizeShim
++        * @static
++        */
++        _createShim: function() {
++            YAHOO.log('Creating Shim Element', 'info', 'DragDropMgr');
++            var s = document.createElement('div');
++            s.id = 'yui-ddm-shim';
++            if (document.body.firstChild) {
++                document.body.insertBefore(s, document.body.firstChild);
++            } else {
++                document.body.appendChild(s);
++            }
++            s.style.display = 'none';
++            s.style.backgroundColor = 'red';
++            s.style.position = 'absolute';
++            s.style.zIndex = '99999';
++            Dom.setStyle(s, 'opacity', '0');
++            this._shim = s;
++            Event.on(s, "mouseup",   this.handleMouseUp, this, true);
++            Event.on(s, "mousemove", this.handleMouseMove, this, true);
++            Event.on(window, 'scroll', this._sizeShim, this, true);
++        },
++        /**
++        * This method will size the shim, called from activate and on window scroll event
++        * @private
++        * @method _sizeShim
++        * @static
++        */
++        _sizeShim: function() {
++            if (this._shimActive) {
++                YAHOO.log('Sizing Shim', 'info', 'DragDropMgr');
++                var s = this._shim;
++                s.style.height = Dom.getDocumentHeight() + 'px';
++                s.style.width = Dom.getDocumentWidth() + 'px';
++                s.style.top = '0';
++                s.style.left = '0';
++            }
++        },
++        /**
++        * This method will create the shim element if needed, then show the shim element, size the element and set the _shimActive property to true
++        * @private
++        * @method _activateShim
++        * @static
++        */
++        _activateShim: function() {
++            if (this.useShim) {
++                YAHOO.log('Activating Shim', 'info', 'DragDropMgr');
++                if (!this._shim) {
++                    this._createShim();
++                }
++                this._shimActive = true;
++                var s = this._shim,
++                    o = '0';
++                if (this._debugShim) {
++                    o = '.5';
++                }
++                Dom.setStyle(s, 'opacity', o);
++                this._sizeShim();
++                s.style.display = 'block';
++            }
++        },
++        /**
++        * This method will hide the shim element and set the _shimActive property to false
++        * @private
++        * @method _deactivateShim
++        * @static
++        */
++        _deactivateShim: function() {
++            YAHOO.log('Deactivating Shim', 'info', 'DragDropMgr');
++            this._shim.style.display = 'none';
++            this._shimActive = false;
++        },
++        /**
++        * The HTML element created to use as a shim over the document to track mouse movements
++        * @private
++        * @property _shim
++        * @type HTMLElement
++        * @static
++        */
++        _shim: null,
++        /**
++         * 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) {
++                    var item = this.ids[g];
++                    if (item && item[oDD.id]) {
++                        delete item[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._activateShim();
++
++            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 threshold 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) {
++            if (this.dragCurrent && this.dragCurrent.useShim) {
++                this._shimState = this.useShim;
++                this.useShim = true;
++            }
++            this._activateShim();
++            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.fromTimeout = false;
++                        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 });
++                }
++            }
++
++            if (this._shimActive) {
++                this._deactivateShim();
++                if (this.dragCurrent && this.dragCurrent.useShim) {
++                    this.useShim = this._shimState;
++                    this._shimState = false;
++                }
++            }
++
++            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,
++
++    /**
++     * If this flag is true, a shim will be placed over the screen/viewable area to track mouse events. Should help with dragging elements over iframes and other controls.
++     * @property useShim
++     * @type Boolean
++     */
++    useShim: 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);
++        this.useShim = ((this.config.useShim === 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),
++        b4Return2 = true;
++
++        if (this.events.b4MouseDown) {
++            b4Return2 = this.fireEvent('b4MouseDownEvent', e);
++        }
++        var mDownReturn = this.onMouseDown(e),
++            mDownReturn2 = true;
++        if (this.events.mouseDown) {
++            mDownReturn2 = this.fireEvent('mouseDownEvent', e);
++        }
++
++        if ((b4Return === false) || (mDownReturn === false) || (b4Return2 === false) || (mDownReturn2 === 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 when 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);
++
++            // 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.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/dragdrop/dragdrop-min.js b/pylons_app/public/js/yui/dragdrop/dragdrop-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/dragdrop/dragdrop-min.js
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var A=YAHOO.util.Event,B=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var C=document.createElement("div");C.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(C,document.body.firstChild);}else{document.body.appendChild(C);}C.style.display="none";C.style.backgroundColor="red";C.style.position="absolute";C.style.zIndex="99999";B.setStyle(C,"opacity","0");this._shim=C;A.on(C,"mouseup",this.handleMouseUp,this,true);A.on(C,"mousemove",this.handleMouseMove,this,true);A.on(window,"scroll",this._sizeShim,this,true);},_sizeShim:function(){if(this._shimActive){var C=this._shim;C.style.height=B.getDocumentHeight()+"px";C.style.width=B.getDocumentWidth()+"px";C.style.top="0";C.style.left="0";}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim();}this._shimActive=true;var C=this._shim,D="0";if(this._debugShim){D=".5";}B.setStyle(C,"opacity",D);this._sizeShim();C.style.display="block";}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false;},_shim:null,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(E,D){for(var F in this.ids){for(var C in this.ids[F]){var G=this.ids[F][C];if(!this.isTypeOfDD(G)){continue;}G[E].apply(G,D);}}},_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(C){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(D,C){if(!this.initialized){this.init();}if(!this.ids[C]){this.ids[C]={};}this.ids[C][D.id]=D;},removeDDFromGroup:function(E,C){if(!this.ids[C]){this.ids[C]={};}var D=this.ids[C];if(D&&D[E.id]){delete D[E.id];}},_remove:function(E){for(var D in E.groups){if(D){var C=this.ids[D];if(C&&C[E.id]){delete C[E.id];}}}delete this.handleIds[E.id];},regHandle:function(D,C){if(!this.handleIds[D]){this.handleIds[D]={};}this.handleIds[D][C]=C;},isDragDrop:function(C){return(this.getDDById(C))?true:false;},getRelated:function(H,D){var G=[];for(var F in H.groups){for(var E in this.ids[F]){var C=this.ids[F][E];if(!this.isTypeOfDD(C)){continue;}if(!D||C.isTarget){G[G.length]=C;}}}return G;},isLegalTarget:function(G,F){var D=this.getRelated(G,true);for(var E=0,C=D.length;E<C;++E){if(D[E].id==F.id){return true;}}return false;},isTypeOfDD:function(C){return(C&&C.__ygDragDrop);},isHandle:function(D,C){return(this.handleIds[D]&&this.handleIds[D][C]);},getDDById:function(D){for(var C in this.ids){if(this.ids[C][D]){return this.ids[C][D];}}return null;},handleMouseDown:function(E,D){this.currentTarget=YAHOO.util.Event.getTarget(E);this.dragCurrent=D;var C=D.getEl();this.startX=YAHOO.util.Event.getPageX(E);this.startY=YAHOO.util.Event.getPageY(E);this.deltaX=this.startX-C.offsetLeft;this.deltaY=this.startY-C.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var F=YAHOO.util.DDM;F.startDrag(F.startX,F.startY);F.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(C,E){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true;}this._activateShim();clearTimeout(this.clickTimeout);var D=this.dragCurrent;if(D&&D.events.b4StartDrag){D.b4StartDrag(C,E);D.fireEvent("b4StartDragEvent",{x:C,y:E});}if(D&&D.events.startDrag){D.startDrag(C,E);D.fireEvent("startDragEvent",{x:C,y:E});}this.dragThreshMet=true;},handleMouseUp:function(C){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(C);}this.fromTimeout=false;this.fireEvents(C,true);}else{}this.stopDrag(C);this.stopEvent(C);}},stopEvent:function(C){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(C);}if(this.preventDefault){YAHOO.util.Event.preventDefault(C);}},stopDrag:function(E,D){var C=this.dragCurrent;if(C&&!D){if(this.dragThreshMet){if(C.events.b4EndDrag){C.b4EndDrag(E);C.fireEvent("b4EndDragEvent",{e:E});}if(C.events.endDrag){C.endDrag(E);C.fireEvent("endDragEvent",{e:E});}}if(C.events.mouseUp){C.onMouseUp(E);C.fireEvent("mouseUpEvent",{e:E});}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false;}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(F){var C=this.dragCurrent;if(C){if(YAHOO.util.Event.isIE&&!F.button){this.stopEvent(F);return this.handleMouseUp(F);}else{if(F.clientX<0||F.clientY<0){}}if(!this.dragThreshMet){var E=Math.abs(this.startX-YAHOO.util.Event.getPageX(F));var D=Math.abs(this.startY-YAHOO.util.Event.getPageY(F));if(E>this.clickPixelThresh||D>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(C&&C.events.b4Drag){C.b4Drag(F);C.fireEvent("b4DragEvent",{e:F});}if(C&&C.events.drag){C.onDrag(F);C.fireEvent("dragEvent",{e:F});}if(C){this.fireEvents(F,false);}}this.stopEvent(F);}},fireEvents:function(V,L){var a=this.dragCurrent;if(!a||a.isLocked()||a.dragOnly){return;}var N=YAHOO.util.Event.getPageX(V),M=YAHOO.util.Event.getPageY(V),P=new YAHOO.util.Point(N,M),K=a.getTargetCoord(P.x,P.y),F=a.getDragEl(),E=["out","over","drop","enter"],U=new YAHOO.util.Region(K.y,K.x+F.offsetWidth,K.y+F.offsetHeight,K.x),I=[],D={},Q=[],c={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var S in this.dragOvers){var d=this.dragOvers[S];if(!this.isTypeOfDD(d)){continue;
++}if(!this.isOverTarget(P,d,this.mode,U)){c.outEvts.push(d);}I[S]=true;delete this.dragOvers[S];}for(var R in a.groups){if("string"!=typeof R){continue;}for(S in this.ids[R]){var G=this.ids[R][S];if(!this.isTypeOfDD(G)){continue;}if(G.isTarget&&!G.isLocked()&&G!=a){if(this.isOverTarget(P,G,this.mode,U)){D[R]=true;if(L){c.dropEvts.push(G);}else{if(!I[G.id]){c.enterEvts.push(G);}else{c.overEvts.push(G);}this.dragOvers[G.id]=G;}}}}}this.interactionInfo={out:c.outEvts,enter:c.enterEvts,over:c.overEvts,drop:c.dropEvts,point:P,draggedRegion:U,sourceRegion:this.locationCache[a.id],validDrop:L};for(var C in D){Q.push(C);}if(L&&!c.dropEvts.length){this.interactionInfo.validDrop=false;if(a.events.invalidDrop){a.onInvalidDrop(V);a.fireEvent("invalidDropEvent",{e:V});}}for(S=0;S<E.length;S++){var Y=null;if(c[E[S]+"Evts"]){Y=c[E[S]+"Evts"];}if(Y&&Y.length){var H=E[S].charAt(0).toUpperCase()+E[S].substr(1),X="onDrag"+H,J="b4Drag"+H,O="drag"+H+"Event",W="drag"+H;if(this.mode){if(a.events[J]){a[J](V,Y,Q);a.fireEvent(J+"Event",{event:V,info:Y,group:Q});}if(a.events[W]){a[X](V,Y,Q);a.fireEvent(O,{event:V,info:Y,group:Q});}}else{for(var Z=0,T=Y.length;Z<T;++Z){if(a.events[J]){a[J](V,Y[Z].id,Q[0]);a.fireEvent(J+"Event",{event:V,info:Y[Z].id,group:Q[0]});}if(a.events[W]){a[X](V,Y[Z].id,Q[0]);a.fireEvent(O,{event:V,info:Y[Z].id,group:Q[0]});}}}}}},getBestMatch:function(E){var G=null;var D=E.length;if(D==1){G=E[0];}else{for(var F=0;F<D;++F){var C=E[F];if(this.mode==this.INTERSECT&&C.cursorIsOver){G=C;break;}else{if(!G||!G.overlap||(C.overlap&&G.overlap.getArea()<C.overlap.getArea())){G=C;}}}}return G;},refreshCache:function(D){var F=D||this.ids;for(var C in F){if("string"!=typeof C){continue;}for(var E in this.ids[C]){var G=this.ids[C][E];if(this.isTypeOfDD(G)){var H=this.getLocation(G);if(H){this.locationCache[G.id]=H;}else{delete this.locationCache[G.id];}}}}},verifyEl:function(D){try{if(D){var C=D.offsetParent;if(C){return true;}}}catch(E){}return false;},getLocation:function(H){if(!this.isTypeOfDD(H)){return null;}var F=H.getEl(),K,E,D,M,L,N,C,J,G;try{K=YAHOO.util.Dom.getXY(F);}catch(I){}if(!K){return null;}E=K[0];D=E+F.offsetWidth;M=K[1];L=M+F.offsetHeight;N=M-H.padding[0];C=D+H.padding[1];J=L+H.padding[2];G=E-H.padding[3];return new YAHOO.util.Region(N,C,J,G);},isOverTarget:function(K,C,E,F){var G=this.locationCache[C.id];if(!G||!this.useCache){G=this.getLocation(C);this.locationCache[C.id]=G;}if(!G){return false;}C.cursorIsOver=G.contains(K);var J=this.dragCurrent;if(!J||(!E&&!J.constrainX&&!J.constrainY)){return C.cursorIsOver;}C.overlap=null;if(!F){var H=J.getTargetCoord(K.x,K.y);var D=J.getDragEl();F=new YAHOO.util.Region(H.y,H.x+D.offsetWidth,H.y+D.offsetHeight,H.x);}var I=F.intersect(G);if(I){C.overlap=I;return(E)?true:C.cursorIsOver;}else{return false;}},_onUnload:function(D,C){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(D){var C=this.elementCache[D];if(!C||!C.el){C=this.elementCache[D]=new this.ElementWrapper(YAHOO.util.Dom.get(D));}return C;},getElement:function(C){return YAHOO.util.Dom.get(C);},getCss:function(D){var C=YAHOO.util.Dom.get(D);return(C)?C.style:null;},ElementWrapper:function(C){this.el=C||null;this.id=this.el&&C.id;this.css=this.el&&C.style;},getPosX:function(C){return YAHOO.util.Dom.getX(C);},getPosY:function(C){return YAHOO.util.Dom.getY(C);},swapNode:function(E,C){if(E.swapNode){E.swapNode(C);}else{var F=C.parentNode;var D=C.nextSibling;if(D==E){F.insertBefore(E,C);}else{if(C==E.nextSibling){F.insertBefore(C,E);}else{E.parentNode.replaceChild(C,E);F.insertBefore(E,D);}}}},getScroll:function(){var E,C,F=document.documentElement,D=document.body;if(F&&(F.scrollTop||F.scrollLeft)){E=F.scrollTop;C=F.scrollLeft;}else{if(D){E=D.scrollTop;C=D.scrollLeft;}else{}}return{top:E,left:C};},getStyle:function(D,C){return YAHOO.util.Dom.getStyle(D,C);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(C,E){var D=YAHOO.util.Dom.getXY(E);YAHOO.util.Dom.setXY(C,D);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(D,C){return(D-C);},_timeoutCount:0,_addListeners:function(){var C=YAHOO.util.DDM;if(YAHOO.util.Event&&document){C._onLoad();}else{if(C._timeoutCount>2000){}else{setTimeout(C._addListeners,10);if(document&&document.body){C._timeoutCount+=1;}}}},handleWasClicked:function(C,E){if(this.isHandle(E,C.id)){return true;}else{var D=C.parentNode;while(D){if(this.isHandle(E,D.id)){return true;}else{D=D.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,useShim: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);this.useShim=((this.config.useShim===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(J,I){var D=J.which||J.button;if(this.primaryButtonOnly&&D>1){return;}if(this.isLocked()){return;}var C=this.b4MouseDown(J),F=true;if(this.events.b4MouseDown){F=this.fireEvent("b4MouseDownEvent",J);}var E=this.onMouseDown(J),H=true;if(this.events.mouseDown){H=this.fireEvent("mouseDownEvent",J);}if((C===false)||(E===false)||(F===false)||(H===false)){return;}this.DDM.refreshCache(this.groups);var G=new YAHOO.util.Point(A.getPageX(J),A.getPageY(J));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(G,this)){}else{if(this.clickValidator(J)){this.setStartPosition();this.DDM.handleMouseDown(J,this);this.DDM.stopEvent(J);}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 F=this.getDragEl(),E=YAHOO.util.Dom;if(!F){F=document.createElement("div");F.id=this.dragElId;var D=F.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");F.appendChild(C);A.insertBefore(F,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.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/dragdrop/dragdrop.js b/pylons_app/public/js/yui/dragdrop/dragdrop.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/dragdrop/dragdrop.js
+@@ -0,0 +1,3601 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The 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,
++        Dom = YAHOO.util.Dom;
++
++    return {
++        /**
++        * This property is used to turn on global use of the shim element on all DragDrop instances, defaults to false for backcompat. (Use: YAHOO.util.DDM.useShim = true)
++        * @property useShim
++        * @type Boolean
++        * @static
++        */
++        useShim: false,
++        /**
++        * This property is used to determine if the shim is active over the screen, default false.
++        * @private
++        * @property _shimActive
++        * @type Boolean
++        * @static
++        */
++        _shimActive: false,
++        /**
++        * This property is used when useShim is set on a DragDrop object to store the current state of DDM.useShim so it can be reset when a drag operation is done.
++        * @private
++        * @property _shimState
++        * @type Boolean
++        * @static
++        */
++        _shimState: false,
++        /**
++        * This property is used when useShim is set to true, it will set the opacity on the shim to .5 for debugging. Use: (YAHOO.util.DDM._debugShim = true;)
++        * @private
++        * @property _debugShim
++        * @type Boolean
++        * @static
++        */
++        _debugShim: false,
++        /**
++        * This method will create a shim element (giving it the id of yui-ddm-shim), it also attaches the mousemove and mouseup listeners to it and attaches a scroll listener on the window
++        * @private
++        * @method _sizeShim
++        * @static
++        */
++        _createShim: function() {
++            var s = document.createElement('div');
++            s.id = 'yui-ddm-shim';
++            if (document.body.firstChild) {
++                document.body.insertBefore(s, document.body.firstChild);
++            } else {
++                document.body.appendChild(s);
++            }
++            s.style.display = 'none';
++            s.style.backgroundColor = 'red';
++            s.style.position = 'absolute';
++            s.style.zIndex = '99999';
++            Dom.setStyle(s, 'opacity', '0');
++            this._shim = s;
++            Event.on(s, "mouseup",   this.handleMouseUp, this, true);
++            Event.on(s, "mousemove", this.handleMouseMove, this, true);
++            Event.on(window, 'scroll', this._sizeShim, this, true);
++        },
++        /**
++        * This method will size the shim, called from activate and on window scroll event
++        * @private
++        * @method _sizeShim
++        * @static
++        */
++        _sizeShim: function() {
++            if (this._shimActive) {
++                var s = this._shim;
++                s.style.height = Dom.getDocumentHeight() + 'px';
++                s.style.width = Dom.getDocumentWidth() + 'px';
++                s.style.top = '0';
++                s.style.left = '0';
++            }
++        },
++        /**
++        * This method will create the shim element if needed, then show the shim element, size the element and set the _shimActive property to true
++        * @private
++        * @method _activateShim
++        * @static
++        */
++        _activateShim: function() {
++            if (this.useShim) {
++                if (!this._shim) {
++                    this._createShim();
++                }
++                this._shimActive = true;
++                var s = this._shim,
++                    o = '0';
++                if (this._debugShim) {
++                    o = '.5';
++                }
++                Dom.setStyle(s, 'opacity', o);
++                this._sizeShim();
++                s.style.display = 'block';
++            }
++        },
++        /**
++        * This method will hide the shim element and set the _shimActive property to false
++        * @private
++        * @method _deactivateShim
++        * @static
++        */
++        _deactivateShim: function() {
++            this._shim.style.display = 'none';
++            this._shimActive = false;
++        },
++        /**
++        * The HTML element created to use as a shim over the document to track mouse movements
++        * @private
++        * @property _shim
++        * @type HTMLElement
++        * @static
++        */
++        _shim: null,
++        /**
++         * 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) {
++                    var item = this.ids[g];
++                    if (item && item[oDD.id]) {
++                        delete item[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._activateShim();
++
++            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 threshold 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) {
++            if (this.dragCurrent && this.dragCurrent.useShim) {
++                this._shimState = this.useShim;
++                this.useShim = true;
++            }
++            this._activateShim();
++            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.fromTimeout = false;
++                        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 });
++                }
++            }
++
++            if (this._shimActive) {
++                this._deactivateShim();
++                if (this.dragCurrent && this.dragCurrent.useShim) {
++                    this.useShim = this._shimState;
++                    this._shimState = false;
++                }
++            }
++
++            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,
++
++    /**
++     * If this flag is true, a shim will be placed over the screen/viewable area to track mouse events. Should help with dragging elements over iframes and other controls.
++     * @property useShim
++     * @type Boolean
++     */
++    useShim: 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);
++        this.useShim = ((this.config.useShim === 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),
++        b4Return2 = true;
++
++        if (this.events.b4MouseDown) {
++            b4Return2 = this.fireEvent('b4MouseDownEvent', e);
++        }
++        var mDownReturn = this.onMouseDown(e),
++            mDownReturn2 = true;
++        if (this.events.mouseDown) {
++            mDownReturn2 = this.fireEvent('mouseDownEvent', e);
++        }
++
++        if ((b4Return === false) || (mDownReturn === false) || (b4Return2 === false) || (mDownReturn2 === 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 when 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);
++
++            // 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.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/editor/assets/editor-core.css b/pylons_app/public/js/yui/editor/assets/editor-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/assets/editor-core.css
+@@ -0,0 +1,602 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Set the cursor to busy when we are doing something */
++.yui-busy {
++    cursor: wait !important;
++}
++.yui-toolbar-container fieldset,
++.yui-editor-container fieldset {
++    padding: 0;
++    margin: 0;
++    border: 0;
++}
++.yui-toolbar-container legend {
++    display: none;
++}
++.yui-skin-sam .yui-toolbar-container .yui-button button,
++.yui-skin-sam .yui-toolbar-container .yui-button a,
++.yui-skin-sam .yui-toolbar-container .yui-button a:visited {
++    font-size: 0px;
++}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited {
++    font-size: 12px;
++}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    font-size: 0;
++    line-height: 0;
++    padding: 0;
++}
++
++/* Setup the container with some padding and zoom it for IE's hasLayout */
++.yui-toolbar-container .yui-toolbar-subcont {
++    padding: .25em 0;
++    zoom: 1;
++}
++/* When collapsed set the toolbars container to display none */
++.yui-toolbar-container-collapsed .yui-toolbar-subcont {
++    display: none;
++}
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-container .yui-toolbar-subcont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++
++/* Drag handle for the toolbar's draggable property */
++.yui-toolbar-container span.yui-toolbar-draghandle {
++    cursor: move;
++    border-left: 1px solid #999;
++    border-right: 1px solid #999;
++    overflow: hidden;
++    text-indent: 77777px;
++    width: 2px;
++    height: 20px;
++    display: block;
++    clear: none;
++    float: left;
++    margin: 0 0 0 .2em;
++}
++/* If the titlebar is draggable, the set the cursor */
++.yui-toolbar-container .yui-toolbar-titlebar.draggable {
++    cursor: move;
++}
++/* Set the titlebar to relative so we can position the collapse button */
++.yui-toolbar-container .yui-toolbar-titlebar {
++    position: relative;
++}
++/* Toolbar's titlebar styles */
++.yui-toolbar-container .yui-toolbar-titlebar h2 {
++    font-weight: bold;
++    letter-spacing: 0;
++    border: none;
++    color: #000;
++    margin: 0;
++    padding: .2em;
++}
++.yui-toolbar-container .yui-toolbar-titlebar h2 a {
++    text-decoration: none;
++    color: #000;
++    cursor: default;
++}
++/* If the toolbar is grouped the draghandle needs to be bigger */
++.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle {
++    height: 40px;
++}
++
++/* Float the groups so they position nicely and zoom them for IE */
++.yui-toolbar-container .yui-toolbar-group {
++    float: left;
++    margin-right: .5em;
++    zoom: 1;
++}
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-container .yui-toolbar-group:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++/* Grouped title styles */
++.yui-toolbar-container .yui-toolbar-group h3 {
++    font-size: 75%;
++    padding: 0 0 0 .25em;
++    margin: 0;
++}
++/* Style the separators with a left border */
++.yui-toolbar-container span.yui-toolbar-separator {
++    width: 2px;
++    padding: 0;
++    height: 18px;
++    margin: .2em 0 .2em .1em;
++    display: none;
++    float: left;
++
++}
++/* Set the height of a grouped separator to a little bit bigger */
++.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator {
++    height: 45px;
++    *height: 50px;
++}
++
++/* Reset the height of a separator inside of a group */
++.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator {
++    height: 18px;
++    display: block;
++}
++
++/* Kill the default styles of the list */
++.yui-toolbar-container ul li {
++    margin: 0;
++    padding: 0;
++    list-style-type: none;
++}
++/* Hide the group labels when the .yui-toolbar-nogrouplabels class is applied */
++.yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
++    display: none;
++}
++
++/* Setup the default style of a button in the toolbar */
++.yui-toolbar-container .yui-push-button,
++.yui-toolbar-container .yui-color-button,
++.yui-toolbar-container .yui-menu-button {
++/*.yui-toolbar-container .yui-button {*/
++    position: relative;
++    cursor: pointer;
++}
++
++/* setup the default style of the A inside of the toolbar button */
++.yui-toolbar-container .yui-button .first-child, .yui-toolbar-container .yui-button .first-child a {
++    height: 100%;
++    width: 100%;
++    overflow: hidden;
++    font-size: 0px;
++}
++
++/* Setup the disabled state of a button */
++.yui-toolbar-container .yui-button-disabled {
++    cursor: default;
++}
++/* Disable the icon too */
++.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon {
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++/*Disabled Spin button arrows*/
++.yui-toolbar-container .yui-button-disabled .up,
++.yui-toolbar-container .yui-button-disabled .down {
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++/* remove any padding from the A */
++.yui-toolbar-container .yui-button a {
++    overflow: hidden;
++}
++
++/* Override the default Button style for select menu*/
++.yui-toolbar-container .yui-toolbar-select .first-child a {
++    cursor: pointer;
++}
++
++/* Font Family Menu Style - This styles the menu items and the selected menu item */
++.yui-toolbar-fontname-arial { font-family: Arial; }
++.yui-toolbar-fontname-arial-black { font-family: Arial Black; }
++.yui-toolbar-fontname-comic-sans-ms { font-family: Comic Sans MS; }
++.yui-toolbar-fontname-courier-new { font-family: Courier New; }
++.yui-toolbar-fontname-times-new-roman { font-family: Times New Roman; }
++.yui-toolbar-fontname-verdana { font-family: Verdana; }
++.yui-toolbar-fontname-impact { font-family: Impact; }
++.yui-toolbar-fontname-lucida-console { font-family: Lucida Console; }
++.yui-toolbar-fontname-tahoma { font-family: Tahoma; }
++.yui-toolbar-fontname-trebuchet-ms { font-family: Trebuchet MS; }
++
++/* Spin Button */
++.yui-toolbar-container .yui-toolbar-spinbutton {
++    position: relative;
++}
++
++/* Setup the default style for the A */
++.yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
++    z-index: 0;
++    opacity: 1;
++}
++
++/* Setup the position and style for the up and down arrows */
++.yui-toolbar-container .yui-toolbar-spinbutton a.up, .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    position: absolute;
++    display: block;
++    right: 0;
++    cursor: pointer;
++    z-index: 1;
++    padding: 0;
++    margin: 0;
++}
++/* Position all panels/overlays as absolute by default */
++.yui-toolbar-container .yui-overlay {
++    position: absolute;
++}
++/* Smash the default style for lists */
++.yui-toolbar-container .yui-overlay ul li {
++    margin: 0;
++    list-style-type: none;
++}
++
++/* Reset the z-index of the toolbar container so that menu's appear over the iframe in IE and Safari */
++.yui-toolbar-container {
++    z-index: 1;
++}
++
++/* The div around the iFrame */
++.yui-editor-container .yui-editor-editable-container {
++    position: relative;
++    z-index: 0;
++    width: 100%;
++}
++/* The disbled state of the Editor */
++.yui-editor-container .yui-editor-masked {
++    background-color: #CCC;
++    height: 100%;
++    width: 100%;
++    position: absolute;
++    top: 0;
++    left: 0;
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++/* Style the editable iframe to hide it */
++.yui-editor-container iframe {
++    border: 0px;
++    padding: 0;
++    margin: 0;
++    zoom: 1;
++    display: block;
++}
++/* Reset some padding on the editable iframes container */
++.yui-editor-container .yui-editor-editable {
++    padding: 0;
++    margin: 0;
++}
++/* Style the dom path box at the bottom of the editor */
++.yui-editor-container .dompath {
++    font-size: 85%;
++}
++/* Header styles for the Property Editor */
++.yui-editor-panel .hd {
++    text-align: left;
++    position: relative;
++}
++/* Setup some padding around the h3 */
++.yui-editor-panel .hd h3 {
++    font-weight: bold;
++    padding: 0.25em 0pt 0.25em 0.25em;
++    margin: 0;
++}
++
++/* set it to relative so we can position the close button - Zoom it for IE */
++.yui-editor-panel .bd {
++    width: 100%;
++    zoom: 1;
++    position: relative;
++}
++/* Setup some padding for the body container - Zoom it for IE */
++.yui-editor-panel .bd div.yui-editor-body-cont {
++    padding: .25em .1em;
++    zoom: 1;
++}
++/* Get the caret back in Geckp */
++.yui-editor-panel .bd .gecko form {
++    overflow: auto;
++}
++
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-editor-panel .bd div.yui-editor-body-cont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++
++/* style the footer of the property editor */
++.yui-editor-panel .ft {
++    text-align: right;
++    width: 99%;
++    float: left;
++    clear: both;
++}
++
++/* Style the "tip" icon */
++.yui-editor-panel .ft span.tip {
++    display: block;
++    position: relative;
++    padding: .5em .5em .5em 23px;
++    text-align:left;
++    zoom: 1;
++}
++
++
++/* setup some form fields */
++.yui-editor-panel label {
++    clear: both;
++    float: left;
++    padding: 0;
++    width: 100%;
++    text-align: left;
++    zoom: 1;
++}
++/* This fixes the caret issue in Firefox */
++.yui-editor-panel .gecko label {
++    overflow: auto; 
++}
++/* more form fields */
++.yui-editor-panel label strong {
++    float: left;
++    width: 6em;
++}
++
++/* The remove link in the Link Property Editor */
++.yui-editor-panel .removeLink {
++    width: 80%;
++    text-align: right;
++}
++
++/* More form styling */
++.yui-editor-panel label input {
++    margin-left: .25em;
++    float: left;
++}
++
++.yui-editor-panel .yui-toolbar-group {
++    margin-bottom: 0.75em;
++}
++
++/* Image Padding in the Property Editor */
++.yui-editor-panel .yui-toolbar-group-padding {
++}
++
++/* Image Border in the Property Editor */
++.yui-editor-panel .yui-toolbar-group-border {
++}
++
++/* Image Text Flow in the Property Editor */
++.yui-editor-panel .yui-toolbar-group-textflow {
++}
++
++/* Image Height/Width in the Property Editor */
++.yui-editor-panel .height-width {
++    float: left;
++}
++/* Image Height/Width title */
++.yui-editor-panel .height-width h3 {
++}
++/* Image Height/Width container */
++.yui-editor-panel .height-width span {
++    font-style: italic;
++    display: block;
++    float: left;
++    overflow: visible;
++}
++/* Image Height/Width original info container */
++.yui-editor-panel .height-width span.info {
++    font-size: 70%;
++    margin-top: 3px;
++    float: none;
++}
++
++/* Border Size/Type button widths */
++.yui-editor-panel .yui-toolbar-bordersize, .yui-editor-panel .yui-toolbar-bordertype {
++    font-size: 75%;
++}
++
++/* Kill the separators in the Property Editor */
++.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator {
++    border: none;
++}
++
++/* Border Type solid */
++.yui-editor-panel .yui-toolbar-bordersize span a span,
++.yui-editor-panel .yui-toolbar-bordertype span a span {
++    display: block;
++    height: 8px;
++    left: 4px;
++    position: absolute;
++    top: 3px;
++    _top: -5px;
++    width: 24px;
++    text-indent: 52px;
++    font-size: 0%;
++}
++/* Border Type solid */
++.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid {
++    border-bottom: 1px solid black;
++}
++/* Border Type dotted */
++.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted {
++    border-bottom: 1px dotted black;
++}
++/* Border Type dashed */
++.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed {
++    border-bottom: 1px dashed black;
++}
++/* Border Size 0 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0 {
++    *top: 0px;
++    text-indent: 0px;
++    font-size: 75%;
++}
++/* Border Size 1 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1 {
++    border-bottom: 1px solid black;
++}
++/* Border Size 2 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2 {
++    border-bottom: 2px solid black;
++}
++/* Border Size 3 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3 {
++    top: 2px;
++    *top: -5px;
++    border-bottom: 3px solid black;
++}
++/* Border Size 4 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4 {
++    top: 1px;
++    *top: -5px;
++    border-bottom: 4px solid black;
++}
++/* Border Size 5 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5 {
++    top: 1px;
++    *top: -5px;
++    border-bottom: 5px solid black;
++}
++
++/* Border Size menu size */
++.yui-toolbar-container .yui-toolbar-bordersize-menu,
++.yui-toolbar-container .yui-toolbar-bordertype-menu {
++    width: 95px !important;
++}
++/* Border Size menu styles */
++.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel, 
++.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel:hover {
++    margin:0px 3px 7px 17px;
++}
++/* Border Size menu styles - Checked */
++.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator, .yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator {
++    position: absolute;
++    left: -12px;
++    *top: 14px;
++    *left: 0px;
++}
++
++/* Border Size 1 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a {
++    border-bottom: 1px solid black;
++    height: 14px;
++}
++/* Border Size 2 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a {
++    border-bottom: 2px solid black;
++    height: 14px;
++}
++/* Border Size 3 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a {
++    border-bottom: 3px solid black;
++    height: 14px;
++}
++/* Border Size 4 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a {
++    border-bottom: 4px solid black;
++    height: 14px;
++}
++/* Border Size 5 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a {
++    border-bottom: 5px solid black;
++    height: 14px;
++}
++
++
++/* Border Type Solid - Menu Item */
++.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a {
++    border-bottom: 1px solid black;
++    height: 14px;
++}
++/* Border Type Dashed - Menu Item */
++.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a {
++    border-bottom: 1px dashed black;
++    height: 14px;
++}
++/* Border Type Dotted - Menu Item */
++.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a {
++    border-bottom: 1px dotted black;
++    height: 14px;
++}
++
++/* Hidden Headers for Accessibility */
++h2.yui-editor-skipheader, h3.yui-editor-skipheader {
++    height: 0;
++    margin: 0;
++    padding: 0;
++    border: none;
++    width: 0;
++    overflow: hidden;
++    position: absolute;
++}
++
++/* Setup the default look of a color menu and Zoom it for IE */
++.yui-toolbar-colors {
++    width: 133px;
++    zoom: 1;
++    display: none;
++    z-index: 100;
++    overflow: hidden;
++}
++
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-colors:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++/* Style all of the A's so the float properly */
++.yui-toolbar-colors a {
++    height: 9px;
++    width: 9px;
++    float: left;
++    display: block;
++    overflow: hidden;
++    text-indent: 999px;
++    margin: 0;
++    cursor: pointer;
++    border: 1px solid #F6F7EE;
++}
++/* Put a little border around one that is hovered over */
++.yui-toolbar-colors a:hover {
++    border: 1px solid black;
++}
++
++/* Smash the inhertited Menu style */
++.yui-color-button-menu {
++    overflow: visible;
++    background-color: transparent;
++}
++
++/* This is the preview box at the bottom of the menu - Zoom it for IE */
++.yui-toolbar-colors span {
++    position: relative;
++    display: block;
++    padding: 3px;
++    overflow: hidden;
++    float: left;
++    width: 100%;
++    zoom: 1;
++}
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-colors span:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++
++/* This is the box with the color preview in it */
++.yui-toolbar-colors span em {
++    height: 35px;
++    width: 30px;
++    float: left;
++    display: block;
++    overflow: hidden;
++    text-indent: 999px;
++    margin: 0.75px;
++    border: 1px solid black;
++}
++
++/* The container for the name and hex code */
++.yui-toolbar-colors span strong {
++    font-weight: normal;
++    padding-left: 3px;
++    display: block;
++    font-size: 85%;
++    float: left;
++    width: 65%;
++}
++
++
++.yui-toolbar-group-undoredo h3,
++.yui-toolbar-group-insertitem h3,
++.yui-toolbar-group-indentlist h3 {
++    width: 68px;
++}
++.yui-toolbar-group-indentlist2 h3 {
++    width: 122px;
++}
++.yui-toolbar-group-alignment h3 {
++    width: 130px;
++}
++
+diff --git a/pylons_app/public/js/yui/editor/assets/simpleeditor-core.css b/pylons_app/public/js/yui/editor/assets/simpleeditor-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/assets/simpleeditor-core.css
+@@ -0,0 +1,602 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Set the cursor to busy when we are doing something */
++.yui-busy {
++    cursor: wait !important;
++}
++.yui-toolbar-container fieldset,
++.yui-editor-container fieldset {
++    padding: 0;
++    margin: 0;
++    border: 0;
++}
++.yui-toolbar-container legend {
++    display: none;
++}
++.yui-skin-sam .yui-toolbar-container .yui-button button,
++.yui-skin-sam .yui-toolbar-container .yui-button a,
++.yui-skin-sam .yui-toolbar-container .yui-button a:visited {
++    font-size: 0px;
++}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited {
++    font-size: 12px;
++}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    font-size: 0;
++    line-height: 0;
++    padding: 0;
++}
++
++/* Setup the container with some padding and zoom it for IE's hasLayout */
++.yui-toolbar-container .yui-toolbar-subcont {
++    padding: .25em 0;
++    zoom: 1;
++}
++/* When collapsed set the toolbars container to display none */
++.yui-toolbar-container-collapsed .yui-toolbar-subcont {
++    display: none;
++}
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-container .yui-toolbar-subcont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++
++/* Drag handle for the toolbar's draggable property */
++.yui-toolbar-container span.yui-toolbar-draghandle {
++    cursor: move;
++    border-left: 1px solid #999;
++    border-right: 1px solid #999;
++    overflow: hidden;
++    text-indent: 77777px;
++    width: 2px;
++    height: 20px;
++    display: block;
++    clear: none;
++    float: left;
++    margin: 0 0 0 .2em;
++}
++/* If the titlebar is draggable, the set the cursor */
++.yui-toolbar-container .yui-toolbar-titlebar.draggable {
++    cursor: move;
++}
++/* Set the titlebar to relative so we can position the collapse button */
++.yui-toolbar-container .yui-toolbar-titlebar {
++    position: relative;
++}
++/* Toolbar's titlebar styles */
++.yui-toolbar-container .yui-toolbar-titlebar h2 {
++    font-weight: bold;
++    letter-spacing: 0;
++    border: none;
++    color: #000;
++    margin: 0;
++    padding: .2em;
++}
++.yui-toolbar-container .yui-toolbar-titlebar h2 a {
++    text-decoration: none;
++    color: #000;
++    cursor: default;
++}
++/* If the toolbar is grouped the draghandle needs to be bigger */
++.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle {
++    height: 40px;
++}
++
++/* Float the groups so they position nicely and zoom them for IE */
++.yui-toolbar-container .yui-toolbar-group {
++    float: left;
++    margin-right: .5em;
++    zoom: 1;
++}
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-container .yui-toolbar-group:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++/* Grouped title styles */
++.yui-toolbar-container .yui-toolbar-group h3 {
++    font-size: 75%;
++    padding: 0 0 0 .25em;
++    margin: 0;
++}
++/* Style the separators with a left border */
++.yui-toolbar-container span.yui-toolbar-separator {
++    width: 2px;
++    padding: 0;
++    height: 18px;
++    margin: .2em 0 .2em .1em;
++    display: none;
++    float: left;
++
++}
++/* Set the height of a grouped separator to a little bit bigger */
++.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator {
++    height: 45px;
++    *height: 50px;
++}
++
++/* Reset the height of a separator inside of a group */
++.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator {
++    height: 18px;
++    display: block;
++}
++
++/* Kill the default styles of the list */
++.yui-toolbar-container ul li {
++    margin: 0;
++    padding: 0;
++    list-style-type: none;
++}
++/* Hide the group labels when the .yui-toolbar-nogrouplabels class is applied */
++.yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
++    display: none;
++}
++
++/* Setup the default style of a button in the toolbar */
++.yui-toolbar-container .yui-push-button,
++.yui-toolbar-container .yui-color-button,
++.yui-toolbar-container .yui-menu-button {
++/*.yui-toolbar-container .yui-button {*/
++    position: relative;
++    cursor: pointer;
++}
++
++/* setup the default style of the A inside of the toolbar button */
++.yui-toolbar-container .yui-button .first-child, .yui-toolbar-container .yui-button .first-child a {
++    height: 100%;
++    width: 100%;
++    overflow: hidden;
++    font-size: 0px;
++}
++
++/* Setup the disabled state of a button */
++.yui-toolbar-container .yui-button-disabled {
++    cursor: default;
++}
++/* Disable the icon too */
++.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon {
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++/*Disabled Spin button arrows*/
++.yui-toolbar-container .yui-button-disabled .up,
++.yui-toolbar-container .yui-button-disabled .down {
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++/* remove any padding from the A */
++.yui-toolbar-container .yui-button a {
++    overflow: hidden;
++}
++
++/* Override the default Button style for select menu*/
++.yui-toolbar-container .yui-toolbar-select .first-child a {
++    cursor: pointer;
++}
++
++/* Font Family Menu Style - This styles the menu items and the selected menu item */
++.yui-toolbar-fontname-arial { font-family: Arial; }
++.yui-toolbar-fontname-arial-black { font-family: Arial Black; }
++.yui-toolbar-fontname-comic-sans-ms { font-family: Comic Sans MS; }
++.yui-toolbar-fontname-courier-new { font-family: Courier New; }
++.yui-toolbar-fontname-times-new-roman { font-family: Times New Roman; }
++.yui-toolbar-fontname-verdana { font-family: Verdana; }
++.yui-toolbar-fontname-impact { font-family: Impact; }
++.yui-toolbar-fontname-lucida-console { font-family: Lucida Console; }
++.yui-toolbar-fontname-tahoma { font-family: Tahoma; }
++.yui-toolbar-fontname-trebuchet-ms { font-family: Trebuchet MS; }
++
++/* Spin Button */
++.yui-toolbar-container .yui-toolbar-spinbutton {
++    position: relative;
++}
++
++/* Setup the default style for the A */
++.yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
++    z-index: 0;
++    opacity: 1;
++}
++
++/* Setup the position and style for the up and down arrows */
++.yui-toolbar-container .yui-toolbar-spinbutton a.up, .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    position: absolute;
++    display: block;
++    right: 0;
++    cursor: pointer;
++    z-index: 1;
++    padding: 0;
++    margin: 0;
++}
++/* Position all panels/overlays as absolute by default */
++.yui-toolbar-container .yui-overlay {
++    position: absolute;
++}
++/* Smash the default style for lists */
++.yui-toolbar-container .yui-overlay ul li {
++    margin: 0;
++    list-style-type: none;
++}
++
++/* Reset the z-index of the toolbar container so that menu's appear over the iframe in IE and Safari */
++.yui-toolbar-container {
++    z-index: 1;
++}
++
++/* The div around the iFrame */
++.yui-editor-container .yui-editor-editable-container {
++    position: relative;
++    z-index: 0;
++    width: 100%;
++}
++/* The disbled state of the Editor */
++.yui-editor-container .yui-editor-masked {
++    background-color: #CCC;
++    height: 100%;
++    width: 100%;
++    position: absolute;
++    top: 0;
++    left: 0;
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++/* Style the editable iframe to hide it */
++.yui-editor-container iframe {
++    border: 0px;
++    padding: 0;
++    margin: 0;
++    zoom: 1;
++    display: block;
++}
++/* Reset some padding on the editable iframes container */
++.yui-editor-container .yui-editor-editable {
++    padding: 0;
++    margin: 0;
++}
++/* Style the dom path box at the bottom of the editor */
++.yui-editor-container .dompath {
++    font-size: 85%;
++}
++/* Header styles for the Property Editor */
++.yui-editor-panel .hd {
++    text-align: left;
++    position: relative;
++}
++/* Setup some padding around the h3 */
++.yui-editor-panel .hd h3 {
++    font-weight: bold;
++    padding: 0.25em 0pt 0.25em 0.25em;
++    margin: 0;
++}
++
++/* set it to relative so we can position the close button - Zoom it for IE */
++.yui-editor-panel .bd {
++    width: 100%;
++    zoom: 1;
++    position: relative;
++}
++/* Setup some padding for the body container - Zoom it for IE */
++.yui-editor-panel .bd div.yui-editor-body-cont {
++    padding: .25em .1em;
++    zoom: 1;
++}
++/* Get the caret back in Geckp */
++.yui-editor-panel .bd .gecko form {
++    overflow: auto;
++}
++
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-editor-panel .bd div.yui-editor-body-cont:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++
++/* style the footer of the property editor */
++.yui-editor-panel .ft {
++    text-align: right;
++    width: 99%;
++    float: left;
++    clear: both;
++}
++
++/* Style the "tip" icon */
++.yui-editor-panel .ft span.tip {
++    display: block;
++    position: relative;
++    padding: .5em .5em .5em 23px;
++    text-align:left;
++    zoom: 1;
++}
++
++
++/* setup some form fields */
++.yui-editor-panel label {
++    clear: both;
++    float: left;
++    padding: 0;
++    width: 100%;
++    text-align: left;
++    zoom: 1;
++}
++/* This fixes the caret issue in Firefox */
++.yui-editor-panel .gecko label {
++    overflow: auto; 
++}
++/* more form fields */
++.yui-editor-panel label strong {
++    float: left;
++    width: 6em;
++}
++
++/* The remove link in the Link Property Editor */
++.yui-editor-panel .removeLink {
++    width: 80%;
++    text-align: right;
++}
++
++/* More form styling */
++.yui-editor-panel label input {
++    margin-left: .25em;
++    float: left;
++}
++
++.yui-editor-panel .yui-toolbar-group {
++    margin-bottom: 0.75em;
++}
++
++/* Image Padding in the Property Editor */
++.yui-editor-panel .yui-toolbar-group-padding {
++}
++
++/* Image Border in the Property Editor */
++.yui-editor-panel .yui-toolbar-group-border {
++}
++
++/* Image Text Flow in the Property Editor */
++.yui-editor-panel .yui-toolbar-group-textflow {
++}
++
++/* Image Height/Width in the Property Editor */
++.yui-editor-panel .height-width {
++    float: left;
++}
++/* Image Height/Width title */
++.yui-editor-panel .height-width h3 {
++}
++/* Image Height/Width container */
++.yui-editor-panel .height-width span {
++    font-style: italic;
++    display: block;
++    float: left;
++    overflow: visible;
++}
++/* Image Height/Width original info container */
++.yui-editor-panel .height-width span.info {
++    font-size: 70%;
++    margin-top: 3px;
++    float: none;
++}
++
++/* Border Size/Type button widths */
++.yui-editor-panel .yui-toolbar-bordersize, .yui-editor-panel .yui-toolbar-bordertype {
++    font-size: 75%;
++}
++
++/* Kill the separators in the Property Editor */
++.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator {
++    border: none;
++}
++
++/* Border Type solid */
++.yui-editor-panel .yui-toolbar-bordersize span a span,
++.yui-editor-panel .yui-toolbar-bordertype span a span {
++    display: block;
++    height: 8px;
++    left: 4px;
++    position: absolute;
++    top: 3px;
++    _top: -5px;
++    width: 24px;
++    text-indent: 52px;
++    font-size: 0%;
++}
++/* Border Type solid */
++.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid {
++    border-bottom: 1px solid black;
++}
++/* Border Type dotted */
++.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted {
++    border-bottom: 1px dotted black;
++}
++/* Border Type dashed */
++.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed {
++    border-bottom: 1px dashed black;
++}
++/* Border Size 0 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0 {
++    *top: 0px;
++    text-indent: 0px;
++    font-size: 75%;
++}
++/* Border Size 1 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1 {
++    border-bottom: 1px solid black;
++}
++/* Border Size 2 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2 {
++    border-bottom: 2px solid black;
++}
++/* Border Size 3 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3 {
++    top: 2px;
++    *top: -5px;
++    border-bottom: 3px solid black;
++}
++/* Border Size 4 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4 {
++    top: 1px;
++    *top: -5px;
++    border-bottom: 4px solid black;
++}
++/* Border Size 5 */
++.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5 {
++    top: 1px;
++    *top: -5px;
++    border-bottom: 5px solid black;
++}
++
++/* Border Size menu size */
++.yui-toolbar-container .yui-toolbar-bordersize-menu,
++.yui-toolbar-container .yui-toolbar-bordertype-menu {
++    width: 95px !important;
++}
++/* Border Size menu styles */
++.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel, 
++.yui-toolbar-bordersize-menu .yuimenuitemlabel, .yui-toolbar-bordertype-menu .yuimenuitemlabel:hover {
++    margin:0px 3px 7px 17px;
++}
++/* Border Size menu styles - Checked */
++.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator, .yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator {
++    position: absolute;
++    left: -12px;
++    *top: 14px;
++    *left: 0px;
++}
++
++/* Border Size 1 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a {
++    border-bottom: 1px solid black;
++    height: 14px;
++}
++/* Border Size 2 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a {
++    border-bottom: 2px solid black;
++    height: 14px;
++}
++/* Border Size 3 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a {
++    border-bottom: 3px solid black;
++    height: 14px;
++}
++/* Border Size 4 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a {
++    border-bottom: 4px solid black;
++    height: 14px;
++}
++/* Border Size 5 - Menu Item */
++.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a {
++    border-bottom: 5px solid black;
++    height: 14px;
++}
++
++
++/* Border Type Solid - Menu Item */
++.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a {
++    border-bottom: 1px solid black;
++    height: 14px;
++}
++/* Border Type Dashed - Menu Item */
++.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a {
++    border-bottom: 1px dashed black;
++    height: 14px;
++}
++/* Border Type Dotted - Menu Item */
++.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a {
++    border-bottom: 1px dotted black;
++    height: 14px;
++}
++
++/* Hidden Headers for Accessibility */
++h2.yui-editor-skipheader, h3.yui-editor-skipheader {
++    height: 0;
++    margin: 0;
++    padding: 0;
++    border: none;
++    width: 0;
++    overflow: hidden;
++    position: absolute;
++}
++
++/* Setup the default look of a color menu and Zoom it for IE */
++.yui-toolbar-colors {
++    width: 133px;
++    zoom: 1;
++    display: none;
++    z-index: 100;
++    overflow: hidden;
++}
++
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-colors:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++/* Style all of the A's so the float properly */
++.yui-toolbar-colors a {
++    height: 9px;
++    width: 9px;
++    float: left;
++    display: block;
++    overflow: hidden;
++    text-indent: 999px;
++    margin: 0;
++    cursor: pointer;
++    border: 1px solid #F6F7EE;
++}
++/* Put a little border around one that is hovered over */
++.yui-toolbar-colors a:hover {
++    border: 1px solid black;
++}
++
++/* Smash the inhertited Menu style */
++.yui-color-button-menu {
++    overflow: visible;
++    background-color: transparent;
++}
++
++/* This is the preview box at the bottom of the menu - Zoom it for IE */
++.yui-toolbar-colors span {
++    position: relative;
++    display: block;
++    padding: 3px;
++    overflow: hidden;
++    float: left;
++    width: 100%;
++    zoom: 1;
++}
++/* Setup the :after so that compliant browsers don't loose the bounding box */
++.yui-toolbar-colors span:after { display: block; clear: both; visibility: hidden; content: '.'; height: 0;}
++
++/* This is the box with the color preview in it */
++.yui-toolbar-colors span em {
++    height: 35px;
++    width: 30px;
++    float: left;
++    display: block;
++    overflow: hidden;
++    text-indent: 999px;
++    margin: 0.75px;
++    border: 1px solid black;
++}
++
++/* The container for the name and hex code */
++.yui-toolbar-colors span strong {
++    font-weight: normal;
++    padding-left: 3px;
++    display: block;
++    font-size: 85%;
++    float: left;
++    width: 65%;
++}
++
++
++.yui-toolbar-group-undoredo h3,
++.yui-toolbar-group-insertitem h3,
++.yui-toolbar-group-indentlist h3 {
++    width: 68px;
++}
++.yui-toolbar-group-indentlist2 h3 {
++    width: 122px;
++}
++.yui-toolbar-group-alignment h3 {
++    width: 130px;
++}
++
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/blankimage.png b/pylons_app/public/js/yui/editor/assets/skins/sam/blankimage.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..b87bb2485015d12369549a8f88b4b4e6918da8a7
+GIT binary patch
+literal 2314
+zc$@(W3HA1gP)<h;3K|Lk000e1NJLTq002t>002t}0{{R350Hx300004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUzfKW_SMepzL
+z<K4;V=;+PO&Hw-Zr@G9zxVYKb+3EB3=H}+&$i2PAxx~c5%f+{})!oD0<l*7r$lBb{
+z(9qM;%I@y&+u`Tu;>*?5)vnXr<l@`Q%Er^ov$w>^-@mq~v#Is<_TJv!tH9IQ<n8S2
+z?Cj{(-Q3mc<<R;0`Qz{MnxmTS>e$@Xx30<DslCtW=i|)a>Dl4m?CIp{=H9&7-_qpj
+z@$&Na_V>}=-P_s8t;X5r<>9oxu=V))t;fI5&dBfV=di}q&Ctl)z^}#1!s6l2^YQNR
+z_4fPy{pIZK+vn}2t)%$)_toO#;n%^Nt);HK#<#b(?d|Q^-PrN-^x)*+!OF_W$Hdm!
+z)7aL|?e6dH@9^Q?*SNj5^z`$uytMfH`|<AT-R$tz=<WUe{OjxM@a^57r=I-#`r+c_
+z_xAPC)z9kf?AqAT)YZ@M@ZFc7m+0u_`uqFm=->DE_v7Q^<mBGW%(=qR)6>$@+uYl)
+zwyn<6!SC?!+19@4>g)FN@VIM;P5=N05J^NqRCwC#*lSzbSQiFhNFotI4oL<iMF=H?
+znvOVvpi)hpYQ>6_;vuC{b=qK$I+Xz#Vv+gl@7g<|P-q!D?T7b6AA7YNE^pUbd+%Us
+zvHiGMY?dFDpVm+7|H0xQ7NY(A7RQyM(T<>!bm{vn3=x8=(rL;Q{SFI3)s8?qX$u8u
+zH@N?3nH4ckx}#Azn*N_G4oMxo<@6I6%H5fJK~aq=_stfD8jQ*iH3XfEFQlfX+!}Qx
+ze4~YjL@+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x9<&{!C2rKcXsJrvG#yNhy03)|QoT{41~uw_oBM|R
+k{QsPv*4L~bm;VVc0HT!-jb!e$TmS$707*qoM6N<$g7zKgCjbBd
+
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/editor-knob.gif b/pylons_app/public/js/yui/editor/assets/skins/sam/editor-knob.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..03feab3b00f83ce8bcf2e9b22454e701083ad732
+GIT binary patch
+literal 138
+zc${<hbhEHbRAdljSj5Wk>C>mi#>Q#WroDds`uzFx3^1VhlZBCift5iA%mJ!pVD^vL
+zb?2k*shv#<N*8S3GB_XW?P8y^&@Jd$XIJ)>UF)T$A9BC^GWLvhcs?r+SK^#SA2VJ*
+lnRa2J3+Gcs$t$b2{;ba0dg)F1b>aS#i#GoX@nB%E1_1g!IpF{R
+
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/editor-skin.css b/pylons_app/public/js/yui/editor/assets/skins/sam/editor-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/assets/skins/sam/editor-skin.css
+@@ -0,0 +1,711 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Place the border around the editor */
++.yui-skin-sam .yui-editor-container {
++    border: 1px solid #808080;
++}
++/* Color the border of the container */
++.yui-skin-sam .yui-toolbar-container {
++    zoom: 1;
++}
++/* Load the background image on the Toolbars titlebar */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
++    position: relative;
++}
++.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar {
++    cursor: move;
++}
++
++/* Give the titlebar some color and padding */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2 {
++    color: #000000;
++    font-weight: bold;
++    margin: 0;
++    padding: 0.3em 1em;
++    font-size: 100%;
++    text-align: left;
++}
++
++/* Give the toolbars groups titles some color and padding */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3 {
++    color: #808080;
++    font-size: 75%;
++    margin: 1em 0 0;
++    padding-bottom: 0;
++    padding-left: 0.25em;
++    text-align: left;
++}
++
++/* Hide all of the sepatators borders */
++.yui-toolbar-container span.yui-toolbar-separator {
++    border: none;
++    text-indent: 33px;
++    overflow: hidden;
++    margin: 0 .25em;
++}
++
++/* Background color of the toolbar */
++.yui-skin-sam .yui-toolbar-container {
++    background-color: #F2F2F2;
++}
++
++/* Add some padding to the toolbars sub container */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont {
++    padding: 0 1em 0.35em;
++    border-bottom:1px solid #808080;
++}
++/* When the collapsed class is added, add a border to the bottom of the titlebar (since the toolbar itself is display none) */
++.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar {
++    border-bottom:1px solid #808080;
++}
++
++/* Remove the shadows from the menus in the toolbar - Menu.css override */
++.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,
++.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow {
++    display: none;
++}
++
++/* Remove padding/margin from lists */
++.yui-skin-sam .yui-editor-container ul {
++    list-style-type: none;
++    margin: 0;
++    padding: 0;
++}
++/* Remove padding/margin from list items */
++.yui-skin-sam .yui-editor-container ul li {
++    list-style-type: none;
++    margin: 0;
++    padding: 0;
++}
++/* Float the LI's that wrap the buttons */
++.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem {
++    float: left;
++}
++
++/* Set the color and the border of the dompath container at the bottom of the editor */
++.yui-skin-sam .yui-editor-container .dompath {
++    background-color: #F2F2F2;
++    border-top:1px solid #808080;
++    color: #999;
++    text-align: left;
++    padding: 0.25em;
++}
++
++/* Set the image for the collapse button on the toolbar */
++.yui-skin-sam .yui-toolbar-container .collapse {
++    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;
++}
++/* Set the image for the collapse button on the toolbar */
++.yui-skin-sam .yui-toolbar-container .collapsed {
++    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;
++}
++/* Position the image and the container */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse {
++    cursor: pointer;
++    position: absolute;
++    top: 4px;
++    right: 2px;
++    display: block;
++    overflow: hidden;
++    height: 15px;
++    width: 15px;
++    text-indent: 9999px;
++}
++
++/* Set the default styles for the buttons */
++.yui-skin-sam .yui-toolbar-container .yui-push-button,
++.yui-skin-sam .yui-toolbar-container .yui-color-button,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++    position: relative;
++    display: block;
++    height: 22px;
++    width: 30px;
++    _font-size: 0;
++    margin: 0;
++    border-color: #808080;
++    color: #f2f2f2;
++    border-style: solid;
++    border-width: 1px 0;
++    zoom: 1;
++}
++/* Set the height of the buttons and pad them on the left for the icon */
++.yui-skin-sam .yui-toolbar-container .yui-push-button a,
++.yui-skin-sam .yui-toolbar-container .yui-color-button a,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button a {
++    padding-left: 35px;
++    height: 20px;
++    text-decoration: none;
++    font-size: 0px;
++    line-height: 2;
++    display: block;
++    color: #000;
++    overflow: hidden;
++    white-space: nowrap;
++}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a {
++    font-size: 12px;
++}
++/* Set the height of the buttons and pad them on the left for the icon */
++.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child {
++    border-color: #808080;
++    border-style: solid;
++    border-width: 0 1px;
++    margin: 0 -1px;
++    display: block;
++    position: relative;
++}
++.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child {
++    border-color: #ccc;
++}
++.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,
++.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a {
++    color: #A6A6A6;
++    cursor: default;
++}
++.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,
++.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled {
++    border-color: #ccc;
++}
++/* IE needs a little help positioning the first child */
++.yui-skin-sam .yui-toolbar-container .yui-button .first-child {
++    *left: 0px;
++}
++
++/* Font Family Drop Down */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname {
++    width: 135px;
++}
++
++/* Header Drop Down */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading {
++    width: 92px;
++}
++
++/* Handle the hover state of the buttons */
++.yui-skin-sam .yui-toolbar-container .yui-button-hover {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
++    border-color: #808080;
++}
++
++/* Handle the selected state of the buttons */
++.yui-skin-sam .yui-toolbar-container .yui-button-selected {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
++    border-color: #808080;
++}
++/* When the nogrouplabels class is applied, set the h3's to display none */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
++    display: none;
++}
++/* When not showing the h3 group labels, add some margin to make up for them*/
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group {
++	margin-top: .75em;
++}
++
++
++/* Handle the icon placeholder for the buttons
++    This is very important - position of this must be absolute.
++    If it is not positioned absolute, IE will place it over the a in the Toolbar
++    Doing this will cause the editor to loose focus and loose the selection.
++*/
++.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,
++.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon {
++    display: block;
++    position: absolute;
++    top: 2px;
++    height: 18px;
++    width: 18px;
++    overflow: hidden;
++    background: url(editor-sprite.gif) no-repeat 30px 30px;
++}
++
++/* Swap out the image to an active image */
++.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon, .yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon {
++    background-image: url(editor-sprite-active.gif);
++}
++/* Change the defaults to make them look more like the editor */
++.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel {
++    cursor: pointer;
++    color: #000;
++    *position: relative;
++}
++
++/* Set the background color of all menu containers */
++.yui-skin-sam .yui-toolbar-container .yui-button-menu {
++    background-color: #fff;
++}
++/* Adding this style to Menu's allows the scrolled menu to work in IE */
++.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled {
++    position: relative;
++}
++/* Set the background of all menu items that are selected */
++.yui-skin-sam div.yuimenu li.selected {
++    background-color: #B3D4FF;
++}
++/* Set the color of the hrefs in a selected menu item */
++.yui-skin-sam div.yuimenu li.selected a.selected {
++    color: #000;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon {
++    background-position: 0 0;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon {
++    background-position: 0 -108px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon {
++    background-position: 0 -36px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon {
++    background-position: 0 -1326px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon {
++    background-position: 0 -1355px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon {
++    background-position: 0 -72px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon {
++    background-position: 0 -180px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon {
++    background-position: 0 -144px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon {
++    background-position: 0 -216px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon {
++    background-position: 0 -288px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon {
++    background-position: 0 -324px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon {
++    background-position: 0 -360px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon {
++    background-position: 0 -396px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon {
++    background-position: 0 -432px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon {
++    background-position: 0 -720px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon {
++    background-position: 0 -684px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon {
++    background-position: 0 -792px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon {
++    background-position: 1px -756px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon {
++    background-position: 0 -972px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon {
++    background-position: 0 -936px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon {
++    background-position: 0 -900px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon {
++    background-position: 0 -864px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon {
++    background-position: 0 -252px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon {
++    background-position: 0 -1080px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon {
++    background-position: 0 -1044px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon {
++    background-position: 0 -468px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon {
++    background-position: 0 -504px;
++    left: 5px;
++}
++/* Set the width of the spin buttons */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child {
++    width: 35px;
++}
++/* Pad the first child */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
++    padding-left: 2px;
++    text-align: left;    
++}
++
++/* Spin Buttons - Remove the icon holder, they don't need it */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon {
++    display: none;
++}
++
++/* Spin Buttons - Prep the arrows */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    right: 2px;
++    background: url(editor-sprite.gif) no-repeat 0 -1222px;
++    overflow: hidden;
++    height: 6px;
++    width: 7px;
++    min-height: 0;
++    padding: 0;
++}
++/* Spin Buttons - The up arrow */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up {
++    top: 2px;
++    background-position: 0 -1222px;
++}
++/* Spin Buttons - The down arrow */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    bottom: 2px;
++    background-position: 0 -1187px;
++}
++/* Handle plain Select Elements */
++.yui-skin-sam .yui-toolbar-container select {
++    height: 22px;
++    border: 1px solid #808080;
++}
++/* Pad and align the Select Menus */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a {
++    padding-left: 5px;
++    text-align: left;    
++}
++/* Set the icon of the select menu for the drop down arrow */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon {
++    background: url( editor-sprite.gif ) no-repeat 0 -1144px;
++    overflow: hidden;
++    right: -2px;
++    top: 0px;
++    height: 20px;
++}
++/* Fix the color menu background if it's inside a Property Editor */
++.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd {
++    background-color: transparent;
++    border: none;
++    width: 135px;
++}
++
++/* Place a border around the color menu */
++.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors {
++    border: 1px solid #808080;
++}
++
++
++/* Property Editor Panel styles */
++.yui-skin-sam .yui-editor-panel {
++    padding: 0;
++    margin: 0;
++    border: none;
++    background-color: transparent;
++    overflow: visible;
++    position: absolute;
++}
++
++/* Margins on the header of the Property Editor */
++.yui-skin-sam .yui-editor-panel .hd {
++    margin: 10px 0 0;
++    padding: 0;
++    border: none;
++}
++/* Setup the background image on the title bar
++    We are styling the h3 instead if the div so we can make room
++    for the "knob" that floats on the top of the window.
++*/
++.yui-skin-sam .yui-editor-panel .hd h3 {
++    color: #000;
++    border: 1px solid #808080;
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
++    width: 99%;
++    position: relative;
++    margin: 0;
++    padding: 3px 0 0 0;
++    font-size: 93%;
++    text-indent: 5px;
++    height: 20px;
++}
++/* Style the body of the Property Editor */
++.yui-skin-sam .yui-editor-panel .bd {
++    background-color: #F2F2F2;
++    border-left: 1px solid #808080;
++    border-right: 1px solid #808080;
++    width: 99%;
++    margin: 0;
++    padding: 0;
++    overflow: visible;
++}
++/* Remove the padding/margin on lists in the Property Editor */
++.yui-skin-sam .yui-editor-panel ul {
++    list-style-type: none;
++    margin: 0;
++    padding: 0;
++}
++
++/* Remove the padding/margin on list items in the Property Editor */
++.yui-skin-sam .yui-editor-panel ul li {
++    margin: 0;
++    padding: 0;
++}
++/* IE is havig trouble with our menu sizes here */
++.yui-skin-sam .yui-editor-panel .yuimenu {
++    /**width: 90px !important;*/
++}
++/* Remove the border from the toolbar's container and add some margin to it */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont {
++    padding: 0;
++    border: none;
++    margin-top: 0.35em;
++}
++/* Set the width of the bordersize and bordertype menu buttons */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize, .yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype {
++    width: 50px;
++}
++
++/* Form styling */
++.yui-skin-sam .yui-editor-panel label {
++    display: block;
++    float: none;
++    padding: 4px 0;
++    margin-bottom: 7px;
++}
++/* Form styling */
++.yui-skin-sam .yui-editor-panel label strong {
++    font-weight: normal;
++    font-size: 93%;
++    text-align: right;
++    padding-top: 2px;
++}
++
++/* Form styling */
++.yui-skin-sam .yui-editor-panel label input {
++    width: 75%;
++}
++/* Form styling */
++.yui-skin-sam .yui-editor-panel .createlink_target,
++.yui-skin-sam .yui-editor-panel .insertimage_target {
++    width: auto;
++    margin-right: 5px;
++}
++
++/* Form styling */
++.yui-skin-sam .yui-editor-panel .removeLink {
++    width: 98%;
++}
++/* Color the input yellow if it has the warning class applied */
++.yui-skin-sam .yui-editor-panel label input.warning {
++    background-color: #FFEE69;
++}
++
++/* Style the titles of the toolbar groups */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3 {
++    color: #000;
++    float: left;
++    font-weight: normal;
++    font-size: 93%;
++    margin: 5px 0 0 0;
++    padding: 0 3px 0 0;
++    text-align: right;
++}
++/* Style the header for the Height and Width boxes */
++.yui-skin-sam .yui-editor-panel .height-width h3 {
++    margin: 3px 0 0 10px;
++}
++/* Style the height and width container */
++.yui-skin-sam .yui-editor-panel .height-width {
++    margin: 3px 0 0 35px;
++    *margin-left: 14px;
++    width: 42%;
++    *width: 44%;
++}
++/* Give the border group a width */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border {
++    width: 190px;
++}
++.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border {
++    width: 210px;
++}
++/* Give the padding group a width */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding {
++    width: 203px;
++    _width: 198px;
++}
++.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding {
++    width: 172px;
++}
++/* Fix some margins for the H3's */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3 {
++    margin-left: 25px;
++    *margin-left: 12px;
++}
++/* Image Properties - Text flow container size */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow {
++    width: 182px;
++}
++
++/* Remove the background image set in Panel.css */
++.yui-skin-sam .yui-editor-panel .hd {
++    background: none;
++}
++
++/* Give the footer som color and a border */
++.yui-skin-sam .yui-editor-panel .ft {
++    background-color: #F2F2F2;
++    border: 1px solid #808080;
++    border-top: none;
++    padding: 0;
++    margin: 0 0 2px 0;
++}
++
++/* Style the close button in the Property Editor */
++.yui-skin-sam .yui-editor-panel .hd span.close {
++    background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
++    cursor:pointer;
++    display:block;
++    height:16px;
++    overflow:hidden;
++    position:absolute;
++    right:5px;
++    text-indent:500px;
++    top:2px;
++    width:26px;
++}
++/* Style the tip in the footer */
++.yui-skin-sam .yui-editor-panel .ft span.tip {
++    background-color: #EDF5FF;
++    border-top: 1px solid #808080;
++    font-size: 85%;
++}
++/* Style the tip in the footer */
++.yui-skin-sam .yui-editor-panel .ft span.tip strong {
++    display: block;
++    float: left;
++    margin: 0 2px 8px 0;
++}
++
++
++/* Setup the icon for a tip */
++.yui-skin-sam .yui-editor-panel .ft span.tip span.icon {
++    background: url( editor-sprite.gif ) no-repeat 0 -1260px;
++    display: block;
++    height: 20px;
++    left: 2px;
++    position: absolute;
++    top: 8px;
++    width: 20px;
++}
++/* Setup the background image for an info icon */
++.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info {
++    background-position: 2px -1260px;
++}
++/* Setup the background image for a warning icon */
++.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn {
++    background-position: 2px -1296px;
++}
++
++/* Handle the knob that floats on top of the panel */
++.yui-skin-sam .yui-editor-panel .hd span.knob {
++    position: absolute;
++    height: 10px;
++    width: 28px;
++    top: -10px;
++    left: 25px;
++    text-indent: 9999px;
++    overflow: hidden;
++    background: url( editor-knob.gif ) no-repeat 0 0;
++}
++/* Reset some styles from the editor toolbar, when a toolbar is inside the Property Editor */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-container {
++    float: left;
++    width: 100%;
++    background-image: none;
++    border: none;
++}
++/* Reset styles for menu buttons inside the Property Editor */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd {
++    background-color: #ffffff;
++}
++
++/* This image is the one used to place the blankimage placeholder into the editor when you click on Insert an Image */
++.yui-editor-blankimage {
++    background-image: url( blankimage.png );
++}
++
++.yui-skin-sam .yui-editor-container .yui-resize-handle-br {
++    /* Make the handle a little bigger than the default */
++    height: 11px;
++    width: 11px;
++    /* Resposition the image */
++    background-position: -20px -60px;
++    /* Kill the hover on the handle */
++    background-color: transparent;
++}
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/editor-sprite-active.gif b/pylons_app/public/js/yui/editor/assets/skins/sam/editor-sprite-active.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..3e9d4200b3e6b124354f12d6c5f90513587315d1
+GIT binary patch
+literal 5614
+zc$^iLcRbXO1I9o1xjo!{lubD$*{)PZ%E{hmB%^eSjHD|nE1g~Dp{$g<5<)o*8pfR!
+zLZ>29I-@cghx!`H{rWxsKCkEXdj5IdkF~9pp^@JPz#q9J2HuV@E>Cw=KWalD5brf5
+z7wc(%{`^^vGTB!<d^cKqc=&zz`KW?^`hWS9hWh%IuaADed;Uo%w5fv6ml-+V@f+f5
+z<`tKPzFX5TMvcy_&5ZP$81J2&{QNjkhwgXG-p-y=Ro~v$_PujY|LAwK^zw{IzrieP
+z3v-K;<8BktQXSn)7(L<l;&E3Ow<1nW=L!9gQ{jChbKkywOHR95EU4POQ-9&Db(F2n
+z^Ufh}@57bn<bR4pzj`Bob%)g!p8Y*~u%hB__p|zhq*SBw-rfh7bv3n$3i8F5<1Z#<
+z4S!iyO2?c&8~NYtiKXdlK0mzL^Gt$6LVbPx`pP1<ZP}U^s{bI<vhG<IJO+J~e&WMz
+z{Exc8;jU-Pc@}GnV{Yz;e*d?$yd2Irun|alcw!Ik_fXpBy3A#UM+LXBBvhv1PSSDz
+zz{uEy9alAbiewxeoVTRcm8LRQhGOqOVtlSwnVR{P?7H!T1LD64FAlr(x2t4EZb`}L
+zLT`jQaP8#?&$WB#>-Q^43kwVXjh56;{r((;NP8t1yuEj})vse<JjYXwdvBj&WRZv!
+zJUT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g=*6*wx0WgOcc?0~9MvA<F
+zi~dXUVG++WhA%q;X-&gvrv|bv%I;wIVB#?@B9~J+*jk=M#aDSF2o}%AX5t(1LLi<C
+zC$dousgN!g;hNF$K?v)>H`;JfA9xZDO0c8ahywf2S^%-iCJ`B^Rh~qv==q;<0+CI6
+z0wBWx#0LQJyzhc8^8<1>_yq!2X_-eNP+>wO_>zNNWun7v{++XCF$5OV!U#EVs%Yz}
+z9dH^8j=BX!Lqt4#44(rlVx7o7;%*2vVh5VmE<*MIf<pO(;}G{U(G=zbfQbl!K+i_h
+z+cQug8|#?SaWs@TWeCXth<GwQv<7%Af$X(`<hg+T+Gxvnz>10VD@T8115_s7MT8>?
+zfpNh&2!ks@U_WC+2!Lo$hisT1TNYrC$s=Mi5WlQd%$r2yAS88L2=VY*HmafqdI%sV
+RDPx!cToE9&k%xf2{{!Lm*)sqD
+
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/editor-sprite.gif b/pylons_app/public/js/yui/editor/assets/skins/sam/editor-sprite.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..02042fa1474cd62d7de63588ae536f5495d45be2
+GIT binary patch
+literal 5690
+zc$^iN`9D;R!-mf}b7mjrAf%KTkv*d#OKL2MR7O!K8KEpaHR35eVysz;lYJBhC87)o
+zNg7L8q9!etQe%sx3@ubL@Atiby8eOd^SSQb4tAzy-tvGic2Np^|NaAp;hCA4+S=M-
+zUAeFK4*dD^XDMRGFF)tw$9*iT2m8w%ty0T!pRs@DFe)ST&@i`OGY$5)F!R^V2D+-9
+zZg@L7IKIBEcWPj{KW+DxeB5?3i?Ok>0|yQ^#2W?%p8E2{<Y|!U?Ck9D@UVx+k&uwk
+zs;a8K>I7SB+wq81kGr`bJMPCfpVHFOvZPbSo3}h`zLhV!H8<216B~Q^(&dF$yL)<i
+zA{_Ml`}@oPRhg4WCMQ3B?+yFjefq~+*VfXID_1hEUcG8o*892kqG~Fkv9a;z%!&5)
+z_QmOJpQ%IbSr)%PJ<*`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T(8F!UtZ45xl0)Xg@zsd&WXt!=efbSy_KQ1gM
+zgaXBw@x8cjT*QxY>qq2sU-mNz1u|w~9K|>q6X(l^3C?(5)~zN!nXnEQg(74@A9Wwj
+zTLhD90B4EFSqxG@k~5><ng4<elI9h5ZoG{=7WHrHLsp>}Wdv&`74#FWuv7%+jbc^-
+z%5HIeOv@vi8Tb$y=8QKkL=4C>@F#?bjRaS5kZ2=7f*E+MnCdFQg&=s+73hoz^KlWE
+zjY32^CYuEuK;E1|WbOVz%vr=eUjVnixHBj;igaOvsX7cW^b6IIIS_OKkBxa1xo^Oc
+zL**7g0istJBUncaaAk&)3vg)+#NJ@&j2K8nsX8chTQmeSvC!yX!N|}uJL<;B&?pmt
+z<YbEqhJWz~ibhCveZx{Nbri)lJ$ws`-nNXqwOaQs+z5J2Q8r}|eSRpJFd<WRV6hSL
+z429fafednqe}tXw4AR|P#DE1|ke>3ZS#5x!16zbxQ-=BmHa6goY>S2K9gb`pje_A2
+zyttS_PBZjErjiA>Nr-9!(i9i7`YZy8pdtp~V@$rofxVcRysbbnpeIFTybw4f3>o2E
+z9^$}5+((pRM(Lsw6O|GDReBB(CE`&s9WX(*wOJl9L48PaB#C&8><p1@{v*Z^%msD#
+z{SmQ5R=|PHxffr@AQ*tWfsf&(%G}|kVdg1Q0KoIbs>fo~Bov2KqPd7VLZet6gcnf2
+zToyJFQKuxtZ*K5KkpkYCWWj+eX$nL(^d%K}C=^3+I(?`97aHUd8bb}3#CnrUIdHQw
+cR{5z6xrwa2TLKn}Th16kCL#yxH3(qwf7i6=Gynhq
+
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/editor.css b/pylons_app/public/js/yui/editor/assets/skins/sam/editor.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/assets/skins/sam/editor.css
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
++.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
++.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/simpleeditor-skin.css b/pylons_app/public/js/yui/editor/assets/skins/sam/simpleeditor-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/assets/skins/sam/simpleeditor-skin.css
+@@ -0,0 +1,711 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Place the border around the editor */
++.yui-skin-sam .yui-editor-container {
++    border: 1px solid #808080;
++}
++/* Color the border of the container */
++.yui-skin-sam .yui-toolbar-container {
++    zoom: 1;
++}
++/* Load the background image on the Toolbars titlebar */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
++    position: relative;
++}
++.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar {
++    cursor: move;
++}
++
++/* Give the titlebar some color and padding */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2 {
++    color: #000000;
++    font-weight: bold;
++    margin: 0;
++    padding: 0.3em 1em;
++    font-size: 100%;
++    text-align: left;
++}
++
++/* Give the toolbars groups titles some color and padding */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3 {
++    color: #808080;
++    font-size: 75%;
++    margin: 1em 0 0;
++    padding-bottom: 0;
++    padding-left: 0.25em;
++    text-align: left;
++}
++
++/* Hide all of the sepatators borders */
++.yui-toolbar-container span.yui-toolbar-separator {
++    border: none;
++    text-indent: 33px;
++    overflow: hidden;
++    margin: 0 .25em;
++}
++
++/* Background color of the toolbar */
++.yui-skin-sam .yui-toolbar-container {
++    background-color: #F2F2F2;
++}
++
++/* Add some padding to the toolbars sub container */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont {
++    padding: 0 1em 0.35em;
++    border-bottom:1px solid #808080;
++}
++/* When the collapsed class is added, add a border to the bottom of the titlebar (since the toolbar itself is display none) */
++.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar {
++    border-bottom:1px solid #808080;
++}
++
++/* Remove the shadows from the menus in the toolbar - Menu.css override */
++.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,
++.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow {
++    display: none;
++}
++
++/* Remove padding/margin from lists */
++.yui-skin-sam .yui-editor-container ul {
++    list-style-type: none;
++    margin: 0;
++    padding: 0;
++}
++/* Remove padding/margin from list items */
++.yui-skin-sam .yui-editor-container ul li {
++    list-style-type: none;
++    margin: 0;
++    padding: 0;
++}
++/* Float the LI's that wrap the buttons */
++.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem {
++    float: left;
++}
++
++/* Set the color and the border of the dompath container at the bottom of the editor */
++.yui-skin-sam .yui-editor-container .dompath {
++    background-color: #F2F2F2;
++    border-top:1px solid #808080;
++    color: #999;
++    text-align: left;
++    padding: 0.25em;
++}
++
++/* Set the image for the collapse button on the toolbar */
++.yui-skin-sam .yui-toolbar-container .collapse {
++    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;
++}
++/* Set the image for the collapse button on the toolbar */
++.yui-skin-sam .yui-toolbar-container .collapsed {
++    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;
++}
++/* Position the image and the container */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse {
++    cursor: pointer;
++    position: absolute;
++    top: 4px;
++    right: 2px;
++    display: block;
++    overflow: hidden;
++    height: 15px;
++    width: 15px;
++    text-indent: 9999px;
++}
++
++/* Set the default styles for the buttons */
++.yui-skin-sam .yui-toolbar-container .yui-push-button,
++.yui-skin-sam .yui-toolbar-container .yui-color-button,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++    position: relative;
++    display: block;
++    height: 22px;
++    width: 30px;
++    _font-size: 0;
++    margin: 0;
++    border-color: #808080;
++    color: #f2f2f2;
++    border-style: solid;
++    border-width: 1px 0;
++    zoom: 1;
++}
++/* Set the height of the buttons and pad them on the left for the icon */
++.yui-skin-sam .yui-toolbar-container .yui-push-button a,
++.yui-skin-sam .yui-toolbar-container .yui-color-button a,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button a {
++    padding-left: 35px;
++    height: 20px;
++    text-decoration: none;
++    font-size: 0px;
++    line-height: 2;
++    display: block;
++    color: #000;
++    overflow: hidden;
++    white-space: nowrap;
++}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a {
++    font-size: 12px;
++}
++/* Set the height of the buttons and pad them on the left for the icon */
++.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child {
++    border-color: #808080;
++    border-style: solid;
++    border-width: 0 1px;
++    margin: 0 -1px;
++    display: block;
++    position: relative;
++}
++.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child {
++    border-color: #ccc;
++}
++.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,
++.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a {
++    color: #A6A6A6;
++    cursor: default;
++}
++.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,
++.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled {
++    border-color: #ccc;
++}
++/* IE needs a little help positioning the first child */
++.yui-skin-sam .yui-toolbar-container .yui-button .first-child {
++    *left: 0px;
++}
++
++/* Font Family Drop Down */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname {
++    width: 135px;
++}
++
++/* Header Drop Down */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading {
++    width: 92px;
++}
++
++/* Handle the hover state of the buttons */
++.yui-skin-sam .yui-toolbar-container .yui-button-hover {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;
++    border-color: #808080;
++}
++
++/* Handle the selected state of the buttons */
++.yui-skin-sam .yui-toolbar-container .yui-button-selected {
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;
++    border-color: #808080;
++}
++/* When the nogrouplabels class is applied, set the h3's to display none */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3 {
++    display: none;
++}
++/* When not showing the h3 group labels, add some margin to make up for them*/
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group {
++	margin-top: .75em;
++}
++
++
++/* Handle the icon placeholder for the buttons
++    This is very important - position of this must be absolute.
++    If it is not positioned absolute, IE will place it over the a in the Toolbar
++    Doing this will cause the editor to loose focus and loose the selection.
++*/
++.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,
++.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,
++.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon {
++    display: block;
++    position: absolute;
++    top: 2px;
++    height: 18px;
++    width: 18px;
++    overflow: hidden;
++    background: url(editor-sprite.gif) no-repeat 30px 30px;
++}
++
++/* Swap out the image to an active image */
++.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon, .yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon {
++    background-image: url(editor-sprite-active.gif);
++}
++/* Change the defaults to make them look more like the editor */
++.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel {
++    cursor: pointer;
++    color: #000;
++    *position: relative;
++}
++
++/* Set the background color of all menu containers */
++.yui-skin-sam .yui-toolbar-container .yui-button-menu {
++    background-color: #fff;
++}
++/* Adding this style to Menu's allows the scrolled menu to work in IE */
++.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled {
++    position: relative;
++}
++/* Set the background of all menu items that are selected */
++.yui-skin-sam div.yuimenu li.selected {
++    background-color: #B3D4FF;
++}
++/* Set the color of the hrefs in a selected menu item */
++.yui-skin-sam div.yuimenu li.selected a.selected {
++    color: #000;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon {
++    background-position: 0 0;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon {
++    background-position: 0 -108px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon {
++    background-position: 0 -36px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon {
++    background-position: 0 -1326px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon {
++    background-position: 0 -1355px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon {
++    background-position: 0 -72px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon {
++    background-position: 0 -180px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon {
++    background-position: 0 -144px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon {
++    background-position: 0 -216px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon {
++    background-position: 0 -288px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon {
++    background-position: 0 -324px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon {
++    background-position: 0 -360px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon {
++    background-position: 0 -396px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon {
++    background-position: 0 -432px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon {
++    background-position: 0 -720px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon {
++    background-position: 0 -684px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon {
++    background-position: 0 -792px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon {
++    background-position: 1px -756px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon {
++    background-position: 0 -972px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon {
++    background-position: 0 -936px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon {
++    background-position: 0 -900px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon {
++    background-position: 0 -864px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon {
++    background-position: 0 -252px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon {
++    background-position: 0 -1080px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon {
++    background-position: 0 -1044px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon {
++    background-position: 0 -468px;
++    left: 5px;
++}
++/* Setting the background position of the sprite */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon {
++    background-position: 0 -504px;
++    left: 5px;
++}
++/* Set the width of the spin buttons */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child {
++    width: 35px;
++}
++/* Pad the first child */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a {
++    padding-left: 2px;
++    text-align: left;    
++}
++
++/* Spin Buttons - Remove the icon holder, they don't need it */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon {
++    display: none;
++}
++
++/* Spin Buttons - Prep the arrows */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    right: 2px;
++    background: url(editor-sprite.gif) no-repeat 0 -1222px;
++    overflow: hidden;
++    height: 6px;
++    width: 7px;
++    min-height: 0;
++    padding: 0;
++}
++/* Spin Buttons - The up arrow */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up {
++    top: 2px;
++    background-position: 0 -1222px;
++}
++/* Spin Buttons - The down arrow */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down {
++    bottom: 2px;
++    background-position: 0 -1187px;
++}
++/* Handle plain Select Elements */
++.yui-skin-sam .yui-toolbar-container select {
++    height: 22px;
++    border: 1px solid #808080;
++}
++/* Pad and align the Select Menus */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a {
++    padding-left: 5px;
++    text-align: left;    
++}
++/* Set the icon of the select menu for the drop down arrow */
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon {
++    background: url( editor-sprite.gif ) no-repeat 0 -1144px;
++    overflow: hidden;
++    right: -2px;
++    top: 0px;
++    height: 20px;
++}
++/* Fix the color menu background if it's inside a Property Editor */
++.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd {
++    background-color: transparent;
++    border: none;
++    width: 135px;
++}
++
++/* Place a border around the color menu */
++.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors {
++    border: 1px solid #808080;
++}
++
++
++/* Property Editor Panel styles */
++.yui-skin-sam .yui-editor-panel {
++    padding: 0;
++    margin: 0;
++    border: none;
++    background-color: transparent;
++    overflow: visible;
++    position: absolute;
++}
++
++/* Margins on the header of the Property Editor */
++.yui-skin-sam .yui-editor-panel .hd {
++    margin: 10px 0 0;
++    padding: 0;
++    border: none;
++}
++/* Setup the background image on the title bar
++    We are styling the h3 instead if the div so we can make room
++    for the "knob" that floats on the top of the window.
++*/
++.yui-skin-sam .yui-editor-panel .hd h3 {
++    color: #000;
++    border: 1px solid #808080;
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;
++    width: 99%;
++    position: relative;
++    margin: 0;
++    padding: 3px 0 0 0;
++    font-size: 93%;
++    text-indent: 5px;
++    height: 20px;
++}
++/* Style the body of the Property Editor */
++.yui-skin-sam .yui-editor-panel .bd {
++    background-color: #F2F2F2;
++    border-left: 1px solid #808080;
++    border-right: 1px solid #808080;
++    width: 99%;
++    margin: 0;
++    padding: 0;
++    overflow: visible;
++}
++/* Remove the padding/margin on lists in the Property Editor */
++.yui-skin-sam .yui-editor-panel ul {
++    list-style-type: none;
++    margin: 0;
++    padding: 0;
++}
++
++/* Remove the padding/margin on list items in the Property Editor */
++.yui-skin-sam .yui-editor-panel ul li {
++    margin: 0;
++    padding: 0;
++}
++/* IE is havig trouble with our menu sizes here */
++.yui-skin-sam .yui-editor-panel .yuimenu {
++    /**width: 90px !important;*/
++}
++/* Remove the border from the toolbar's container and add some margin to it */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont {
++    padding: 0;
++    border: none;
++    margin-top: 0.35em;
++}
++/* Set the width of the bordersize and bordertype menu buttons */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize, .yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype {
++    width: 50px;
++}
++
++/* Form styling */
++.yui-skin-sam .yui-editor-panel label {
++    display: block;
++    float: none;
++    padding: 4px 0;
++    margin-bottom: 7px;
++}
++/* Form styling */
++.yui-skin-sam .yui-editor-panel label strong {
++    font-weight: normal;
++    font-size: 93%;
++    text-align: right;
++    padding-top: 2px;
++}
++
++/* Form styling */
++.yui-skin-sam .yui-editor-panel label input {
++    width: 75%;
++}
++/* Form styling */
++.yui-skin-sam .yui-editor-panel .createlink_target,
++.yui-skin-sam .yui-editor-panel .insertimage_target {
++    width: auto;
++    margin-right: 5px;
++}
++
++/* Form styling */
++.yui-skin-sam .yui-editor-panel .removeLink {
++    width: 98%;
++}
++/* Color the input yellow if it has the warning class applied */
++.yui-skin-sam .yui-editor-panel label input.warning {
++    background-color: #FFEE69;
++}
++
++/* Style the titles of the toolbar groups */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3 {
++    color: #000;
++    float: left;
++    font-weight: normal;
++    font-size: 93%;
++    margin: 5px 0 0 0;
++    padding: 0 3px 0 0;
++    text-align: right;
++}
++/* Style the header for the Height and Width boxes */
++.yui-skin-sam .yui-editor-panel .height-width h3 {
++    margin: 3px 0 0 10px;
++}
++/* Style the height and width container */
++.yui-skin-sam .yui-editor-panel .height-width {
++    margin: 3px 0 0 35px;
++    *margin-left: 14px;
++    width: 42%;
++    *width: 44%;
++}
++/* Give the border group a width */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border {
++    width: 190px;
++}
++.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border {
++    width: 210px;
++}
++/* Give the padding group a width */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding {
++    width: 203px;
++    _width: 198px;
++}
++.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding {
++    width: 172px;
++}
++/* Fix some margins for the H3's */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3 {
++    margin-left: 25px;
++    *margin-left: 12px;
++}
++/* Image Properties - Text flow container size */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow {
++    width: 182px;
++}
++
++/* Remove the background image set in Panel.css */
++.yui-skin-sam .yui-editor-panel .hd {
++    background: none;
++}
++
++/* Give the footer som color and a border */
++.yui-skin-sam .yui-editor-panel .ft {
++    background-color: #F2F2F2;
++    border: 1px solid #808080;
++    border-top: none;
++    padding: 0;
++    margin: 0 0 2px 0;
++}
++
++/* Style the close button in the Property Editor */
++.yui-skin-sam .yui-editor-panel .hd span.close {
++    background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
++    cursor:pointer;
++    display:block;
++    height:16px;
++    overflow:hidden;
++    position:absolute;
++    right:5px;
++    text-indent:500px;
++    top:2px;
++    width:26px;
++}
++/* Style the tip in the footer */
++.yui-skin-sam .yui-editor-panel .ft span.tip {
++    background-color: #EDF5FF;
++    border-top: 1px solid #808080;
++    font-size: 85%;
++}
++/* Style the tip in the footer */
++.yui-skin-sam .yui-editor-panel .ft span.tip strong {
++    display: block;
++    float: left;
++    margin: 0 2px 8px 0;
++}
++
++
++/* Setup the icon for a tip */
++.yui-skin-sam .yui-editor-panel .ft span.tip span.icon {
++    background: url( editor-sprite.gif ) no-repeat 0 -1260px;
++    display: block;
++    height: 20px;
++    left: 2px;
++    position: absolute;
++    top: 8px;
++    width: 20px;
++}
++/* Setup the background image for an info icon */
++.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info {
++    background-position: 2px -1260px;
++}
++/* Setup the background image for a warning icon */
++.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn {
++    background-position: 2px -1296px;
++}
++
++/* Handle the knob that floats on top of the panel */
++.yui-skin-sam .yui-editor-panel .hd span.knob {
++    position: absolute;
++    height: 10px;
++    width: 28px;
++    top: -10px;
++    left: 25px;
++    text-indent: 9999px;
++    overflow: hidden;
++    background: url( editor-knob.gif ) no-repeat 0 0;
++}
++/* Reset some styles from the editor toolbar, when a toolbar is inside the Property Editor */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-container {
++    float: left;
++    width: 100%;
++    background-image: none;
++    border: none;
++}
++/* Reset styles for menu buttons inside the Property Editor */
++.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd {
++    background-color: #ffffff;
++}
++
++/* This image is the one used to place the blankimage placeholder into the editor when you click on Insert an Image */
++.yui-editor-blankimage {
++    background-image: url( blankimage.png );
++}
++
++.yui-skin-sam .yui-editor-container .yui-resize-handle-br {
++    /* Make the handle a little bigger than the default */
++    height: 11px;
++    width: 11px;
++    /* Resposition the image */
++    background-position: -20px -60px;
++    /* Kill the hover on the handle */
++    background-color: transparent;
++}
+diff --git a/pylons_app/public/js/yui/editor/assets/skins/sam/simpleeditor.css b/pylons_app/public/js/yui/editor/assets/skins/sam/simpleeditor.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/assets/skins/sam/simpleeditor.css
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-busy{cursor:wait!important;}.yui-toolbar-container fieldset,.yui-editor-container fieldset{padding:0;margin:0;border:0;}.yui-toolbar-container legend{display:none;}.yui-skin-sam .yui-toolbar-container .yui-button button,.yui-skin-sam .yui-toolbar-container .yui-button a,.yui-skin-sam .yui-toolbar-container .yui-button a:visited{font-size:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a:visited,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton button,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a:visited{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{font-size:0;line-height:0;padding:0;}.yui-toolbar-container .yui-toolbar-subcont{padding:.25em 0;zoom:1;}.yui-toolbar-container-collapsed .yui-toolbar-subcont{display:none;}.yui-toolbar-container .yui-toolbar-subcont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container span.yui-toolbar-draghandle{cursor:move;border-left:1px solid #999;border-right:1px solid #999;overflow:hidden;text-indent:77777px;width:2px;height:20px;display:block;clear:none;float:left;margin:0 0 0 .2em;}.yui-toolbar-container .yui-toolbar-titlebar.draggable{cursor:move;}.yui-toolbar-container .yui-toolbar-titlebar{position:relative;}.yui-toolbar-container .yui-toolbar-titlebar h2{font-weight:bold;letter-spacing:0;border:none;color:#000;margin:0;padding:.2em;}.yui-toolbar-container .yui-toolbar-titlebar h2 a{text-decoration:none;color:#000;cursor:default;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;margin-right:.5em;zoom:1;}.yui-toolbar-container .yui-toolbar-group:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-container .yui-toolbar-group h3{font-size:75%;padding:0 0 0 .25em;margin:0;}.yui-toolbar-container span.yui-toolbar-separator{width:2px;padding:0;height:18px;margin:.2em 0 .2em .1em;display:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:45px;*height:50px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;display:block;}.yui-toolbar-container ul li{margin:0;padding:0;list-style-type:none;}.yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-toolbar-container .yui-push-button,.yui-toolbar-container .yui-color-button,.yui-toolbar-container .yui-menu-button{position:relative;cursor:pointer;}.yui-toolbar-container .yui-button .first-child,.yui-toolbar-container .yui-button .first-child a{height:100%;width:100%;overflow:hidden;font-size:0;}.yui-toolbar-container .yui-button-disabled{cursor:default;}.yui-toolbar-container .yui-button-disabled .yui-toolbar-icon{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button-disabled .up,.yui-toolbar-container .yui-button-disabled .down{opacity:.5;filter:alpha(opacity=50);}.yui-toolbar-container .yui-button a{overflow:hidden;}.yui-toolbar-container .yui-toolbar-select .first-child a{cursor:pointer;}.yui-toolbar-fontname-arial{font-family:Arial;}.yui-toolbar-fontname-arial-black{font-family:Arial Black;}.yui-toolbar-fontname-comic-sans-ms{font-family:Comic Sans MS;}.yui-toolbar-fontname-courier-new{font-family:Courier New;}.yui-toolbar-fontname-times-new-roman{font-family:Times New Roman;}.yui-toolbar-fontname-verdana{font-family:Verdana;}.yui-toolbar-fontname-impact{font-family:Impact;}.yui-toolbar-fontname-lucida-console{font-family:Lucida Console;}.yui-toolbar-fontname-tahoma{font-family:Tahoma;}.yui-toolbar-fontname-trebuchet-ms{font-family:Trebuchet MS;}.yui-toolbar-container .yui-toolbar-spinbutton{position:relative;}.yui-toolbar-container .yui-toolbar-spinbutton .first-child a{z-index:0;opacity:1;}.yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-toolbar-container .yui-toolbar-spinbutton a.down{position:absolute;display:block;right:0;cursor:pointer;z-index:1;padding:0;margin:0;}.yui-toolbar-container .yui-overlay{position:absolute;}.yui-toolbar-container .yui-overlay ul li{margin:0;list-style-type:none;}.yui-toolbar-container{z-index:1;}.yui-editor-container .yui-editor-editable-container{position:relative;z-index:0;width:100%;}.yui-editor-container .yui-editor-masked{background-color:#CCC;height:100%;width:100%;position:absolute;top:0;left:0;opacity:.5;filter:alpha(opacity=50);}.yui-editor-container iframe{border:0;padding:0;margin:0;zoom:1;display:block;}.yui-editor-container .yui-editor-editable{padding:0;margin:0;}.yui-editor-container .dompath{font-size:85%;}.yui-editor-panel .hd{text-align:left;position:relative;}.yui-editor-panel .hd h3{font-weight:bold;padding:.25em 0 .25em .25em;margin:0;}.yui-editor-panel .bd{width:100%;zoom:1;position:relative;}.yui-editor-panel .bd div.yui-editor-body-cont{padding:.25em .1em;zoom:1;}.yui-editor-panel .bd .gecko form{overflow:auto;}.yui-editor-panel .bd div.yui-editor-body-cont:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-editor-panel .ft{text-align:right;width:99%;float:left;clear:both;}.yui-editor-panel .ft span.tip{display:block;position:relative;padding:.5em .5em .5em 23px;text-align:left;zoom:1;}.yui-editor-panel label{clear:both;float:left;padding:0;width:100%;text-align:left;zoom:1;}.yui-editor-panel .gecko label{overflow:auto;}.yui-editor-panel label strong{float:left;width:6em;}.yui-editor-panel .removeLink{width:80%;text-align:right;}.yui-editor-panel label input{margin-left:.25em;float:left;}.yui-editor-panel .yui-toolbar-group{margin-bottom:.75em;}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:visible;}.yui-editor-panel .height-width span.info{font-size:70%;margin-top:3px;float:none;}
++.yui-editor-panel .yui-toolbar-bordersize,.yui-editor-panel .yui-toolbar-bordertype{font-size:75%;}.yui-editor-panel .yui-toolbar-container span.yui-toolbar-separator{border:none;}.yui-editor-panel .yui-toolbar-bordersize span a span,.yui-editor-panel .yui-toolbar-bordertype span a span{display:block;height:8px;left:4px;position:absolute;top:3px;_top:-5px;width:24px;text-indent:52px;font-size:0;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-solid{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dotted{border-bottom:1px dotted black;}.yui-editor-panel .yui-toolbar-bordertype span a span.yui-toolbar-bordertype-dashed{border-bottom:1px dashed black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-0{*top:0;text-indent:0;font-size:75%;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-1{border-bottom:1px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-2{border-bottom:2px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-3{top:2px;*top:-5px;border-bottom:3px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-4{top:1px;*top:-5px;border-bottom:4px solid black;}.yui-editor-panel .yui-toolbar-bordersize span a span.yui-toolbar-bordersize-5{top:1px;*top:-5px;border-bottom:5px solid black;}.yui-toolbar-container .yui-toolbar-bordersize-menu,.yui-toolbar-container .yui-toolbar-bordertype-menu{width:95px!important;}.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel,.yui-toolbar-bordersize-menu .yuimenuitemlabel,.yui-toolbar-bordertype-menu .yuimenuitemlabel:hover{margin:0 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-1 a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-2 a{border-bottom:2px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-3 a{border-bottom:3px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-4 a{border-bottom:4px solid black;height:14px;}.yui-toolbar-bordersize-menu li.yui-toolbar-bordersize-5 a{border-bottom:5px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-solid a{border-bottom:1px solid black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dashed a{border-bottom:1px dashed black;height:14px;}.yui-toolbar-bordertype-menu li.yui-toolbar-bordertype-dotted a{border-bottom:1px dotted black;height:14px;}h2.yui-editor-skipheader,h3.yui-editor-skipheader{height:0;margin:0;padding:0;border:none;width:0;overflow:hidden;position:absolute;}.yui-toolbar-colors{width:133px;zoom:1;display:none;z-index:100;overflow:hidden;}.yui-toolbar-colors:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors a{height:9px;width:9px;float:left;display:block;overflow:hidden;text-indent:999px;margin:0;cursor:pointer;border:1px solid #F6F7EE;}.yui-toolbar-colors a:hover{border:1px solid black;}.yui-color-button-menu{overflow:visible;background-color:transparent;}.yui-toolbar-colors span{position:relative;display:block;padding:3px;overflow:hidden;float:left;width:100%;zoom:1;}.yui-toolbar-colors span:after{display:block;clear:both;visibility:hidden;content:'.';height:0;}.yui-toolbar-colors span em{height:35px;width:30px;float:left;display:block;overflow:hidden;text-indent:999px;margin:.75px;border:1px solid black;}.yui-toolbar-colors span strong{font-weight:normal;padding-left:3px;display:block;font-size:85%;float:left;width:65%;}.yui-toolbar-group-undoredo h3,.yui-toolbar-group-insertitem h3,.yui-toolbar-group-indentlist h3{width:68px;}.yui-toolbar-group-indentlist2 h3{width:122px;}.yui-toolbar-group-alignment h3{width:130px;}.yui-skin-sam .yui-editor-container{border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container{zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;position:relative;}.yui-skin-sam .yui-editor-container .draggable .yui-toolbar-titlebar{cursor:move;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar h2{color:#000;font-weight:bold;margin:0;padding:.3em 1em;font-size:100%;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-group h3{color:#808080;font-size:75%;margin:1em 0 0;padding-bottom:0;padding-left:.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:0 .25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em .35em;border-bottom:1px solid #808080;}.yui-skin-sam .yui-toolbar-container-collapsed .yui-toolbar-titlebar{border-bottom:1px solid #808080;}.yui-skin-sam .yui-editor-container .visible .yui-menu-shadow,.yui-skin-sam .yui-editor-panel .visible .yui-menu-shadow{display:none;}.yui-skin-sam .yui-editor-container ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-container ul li{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-toolbar-group ul li.yui-toolbar-groupitem{float:left;}.yui-skin-sam .yui-editor-container .dompath{background-color:#F2F2F2;border-top:1px solid #808080;color:#999;text-align:left;padding:.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -400px;}.yui-skin-sam .yui-toolbar-container .collapsed{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -350px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-titlebar span.collapse{cursor:pointer;position:absolute;top:4px;right:2px;display:block;overflow:hidden;height:15px;width:15px;text-indent:9999px;}
++.yui-skin-sam .yui-toolbar-container .yui-push-button,.yui-skin-sam .yui-toolbar-container .yui-color-button,.yui-skin-sam .yui-toolbar-container .yui-menu-button{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;position:relative;display:block;height:22px;width:30px;_font-size:0;margin:0;border-color:#808080;color:#f2f2f2;border-style:solid;border-width:1px 0;zoom:1;}.yui-skin-sam .yui-toolbar-container .yui-push-button a,.yui-skin-sam .yui-toolbar-container .yui-color-button a,.yui-skin-sam .yui-toolbar-container .yui-menu-button a{padding-left:35px;height:20px;text-decoration:none;font-size:0;line-height:2;display:block;color:#000;overflow:hidden;white-space:nowrap;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a,.yui-skin-sam .yui-toolbar-container .yui-toolbar-select a{font-size:12px;}.yui-skin-sam .yui-toolbar-container .yui-push-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button .first-child{border-color:#808080;border-style:solid;border-width:0 1px;margin:0 -1px;display:block;position:relative;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled .first-child,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled .first-child{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled a,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled a{color:#A6A6A6;cursor:default;}.yui-skin-sam .yui-toolbar-container .yui-push-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-color-button-disabled,.yui-skin-sam .yui-toolbar-container .yui-menu-button-disabled{border-color:#ccc;}.yui-skin-sam .yui-toolbar-container .yui-button .first-child{*left:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-fontname{width:135px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-heading{width:92px;}.yui-skin-sam .yui-toolbar-container .yui-button-hover{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1300px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-button-selected{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;border-color:#808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels h3{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-nogrouplabels .yui-toolbar-group{margin-top:.75em;}.yui-skin-sam .yui-toolbar-container .yui-push-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-color-button span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-menu-button span.yui-toolbar-icon{display:block;position:absolute;top:2px;height:18px;width:18px;overflow:hidden;background:url(editor-sprite.gif) no-repeat 30px 30px;}.yui-skin-sam .yui-toolbar-container .yui-button-selected span.yui-toolbar-icon,.yui-skin-sam .yui-toolbar-container .yui-button-hover span.yui-toolbar-icon{background-image:url(editor-sprite-active.gif);}.yui-skin-sam .yui-toolbar-container .visible .yuimenuitemlabel{cursor:pointer;color:#000;*position:relative;}.yui-skin-sam .yui-toolbar-container .yui-button-menu{background-color:#fff;}.yui-skin-sam .yui-toolbar-container .yui-button-menu .yui-menu-body-scrolled{position:relative;}.yui-skin-sam div.yuimenu li.selected{background-color:#B3D4FF;}.yui-skin-sam div.yuimenu li.selected a.selected{color:#000;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bold span.yui-toolbar-icon{background-position:0 0;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-strikethrough span.yui-toolbar-icon{background-position:0 -108px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-italic span.yui-toolbar-icon{background-position:0 -36px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-undo span.yui-toolbar-icon{background-position:0 -1326px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-redo span.yui-toolbar-icon{background-position:0 -1355px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-underline span.yui-toolbar-icon{background-position:0 -72px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subscript span.yui-toolbar-icon{background-position:0 -180px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-superscript span.yui-toolbar-icon{background-position:0 -144px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-forecolor span.yui-toolbar-icon{background-position:0 -216px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-backcolor span.yui-toolbar-icon{background-position:0 -288px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyleft span.yui-toolbar-icon{background-position:0 -324px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifycenter span.yui-toolbar-icon{background-position:0 -360px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyright span.yui-toolbar-icon{background-position:0 -396px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-justifyfull span.yui-toolbar-icon{background-position:0 -432px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-indent span.yui-toolbar-icon{background-position:0 -720px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-outdent span.yui-toolbar-icon{background-position:0 -684px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-createlink span.yui-toolbar-icon{background-position:0 -792px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertimage span.yui-toolbar-icon{background-position:1px -756px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-left span.yui-toolbar-icon{background-position:0 -972px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-right span.yui-toolbar-icon{background-position:0 -936px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-inline span.yui-toolbar-icon{background-position:0 -900px;left:5px;}
++.yui-skin-sam .yui-toolbar-container .yui-toolbar-block span.yui-toolbar-icon{background-position:0 -864px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-bordercolor span.yui-toolbar-icon{background-position:0 -252px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-removeformat span.yui-toolbar-icon{background-position:0 -1080px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-hiddenelements span.yui-toolbar-icon{background-position:0 -1044px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertunorderedlist span.yui-toolbar-icon{background-position:0 -468px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-insertorderedlist span.yui-toolbar-icon{background-position:0 -504px;left:5px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child{width:35px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton .first-child a{padding-left:2px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton span.yui-toolbar-icon{display:none;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up,.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{right:2px;background:url(editor-sprite.gif) no-repeat 0 -1222px;overflow:hidden;height:6px;width:7px;min-height:0;padding:0;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.up{top:2px;background-position:0 -1222px;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-spinbutton a.down{bottom:2px;background-position:0 -1187px;}.yui-skin-sam .yui-toolbar-container select{height:22px;border:1px solid #808080;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select .first-child a{padding-left:5px;text-align:left;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-select span.yui-toolbar-icon{background:url(editor-sprite.gif) no-repeat 0 -1144px;overflow:hidden;right:-2px;top:0;height:20px;}.yui-skin-sam .yui-editor-panel .yui-color-button-menu .bd{background-color:transparent;border:none;width:135px;}.yui-skin-sam .yui-color-button-menu .yui-toolbar-colors{border:1px solid #808080;}.yui-skin-sam .yui-editor-panel{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;position:absolute;}.yui-skin-sam .yui-editor-panel .hd{margin:10px 0 0;padding:0;border:none;}.yui-skin-sam .yui-editor-panel .hd h3{color:#000;border:1px solid #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px;width:99%;position:relative;margin:0;padding:3px 0 0 0;font-size:93%;text-indent:5px;height:20px;}.yui-skin-sam .yui-editor-panel .bd{background-color:#F2F2F2;border-left:1px solid #808080;border-right:1px solid #808080;width:99%;margin:0;padding:0;overflow:visible;}.yui-skin-sam .yui-editor-panel ul{list-style-type:none;margin:0;padding:0;}.yui-skin-sam .yui-editor-panel ul li{margin:0;padding:0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:.35em;}.yui-skin-sam .yui-editor-panel .yui-toolbar-bordersize,.yui-skin-sam .yui-editor-panel .yui-toolbar-bordertype{width:50px;}.yui-skin-sam .yui-editor-panel label{display:block;float:none;padding:4px 0;margin-bottom:7px;}.yui-skin-sam .yui-editor-panel label strong{font-weight:normal;font-size:93%;text-align:right;padding-top:2px;}.yui-skin-sam .yui-editor-panel label input{width:75%;}.yui-skin-sam .yui-editor-panel .createlink_target,.yui-skin-sam .yui-editor-panel .insertimage_target{width:auto;margin-right:5px;}.yui-skin-sam .yui-editor-panel .removeLink{width:98%;}.yui-skin-sam .yui-editor-panel label input.warning{background-color:#FFEE69;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group h3{color:#000;float:left;font-weight:normal;font-size:93%;margin:5px 0 0 0;padding:0 3px 0 0;text-align:right;}.yui-skin-sam .yui-editor-panel .height-width h3{margin:3px 0 0 10px;}.yui-skin-sam .yui-editor-panel .height-width{margin:3px 0 0 35px;*margin-left:14px;width:42%;*width:44%;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-border{width:190px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-border{width:210px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding{width:203px;_width:198px;}.yui-skin-sam .yui-editor-panel .no-button .yui-toolbar-group-padding{width:172px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-padding h3{margin-left:25px;*margin-left:12px;}.yui-skin-sam .yui-editor-panel .yui-toolbar-group-textflow{width:182px;}.yui-skin-sam .yui-editor-panel .hd{background:none;}.yui-skin-sam .yui-editor-panel .ft{background-color:#F2F2F2;border:1px solid #808080;border-top:none;padding:0;margin:0 0 2px 0;}.yui-skin-sam .yui-editor-panel .hd span.close{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;cursor:pointer;display:block;height:16px;overflow:hidden;position:absolute;right:5px;text-indent:500px;top:2px;width:26px;}.yui-skin-sam .yui-editor-panel .ft span.tip{background-color:#EDF5FF;border-top:1px solid #808080;font-size:85%;}.yui-skin-sam .yui-editor-panel .ft span.tip strong{display:block;float:left;margin:0 2px 8px 0;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon{background:url(editor-sprite.gif) no-repeat 0 -1260px;display:block;height:20px;left:2px;position:absolute;top:8px;width:20px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-info{background-position:2px -1260px;}.yui-skin-sam .yui-editor-panel .ft span.tip span.icon-warn{background-position:2px -1296px;}.yui-skin-sam .yui-editor-panel .hd span.knob{position:absolute;height:10px;width:28px;top:-10px;left:25px;text-indent:9999px;overflow:hidden;background:url(editor-knob.gif) no-repeat 0 0;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container{float:left;width:100%;background-image:none;border:none;}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .bd{background-color:#fff;}.yui-editor-blankimage{background-image:url(blankimage.png);}.yui-skin-sam .yui-editor-container .yui-resize-handle-br{height:11px;width:11px;background-position:-20px -60px;background-color:transparent;}
+diff --git a/pylons_app/public/js/yui/editor/editor-debug.js b/pylons_app/public/js/yui/editor/editor-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/editor-debug.js
+@@ -0,0 +1,9557 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    /**
++     * @module editor    
++     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
++     * @class ToolbarButtonAdvanced
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event, container_core, menu, button
++     * 
++     * Provides a toolbar button based on the button and menu widgets.
++     * @constructor
++     * @class ToolbarButtonAdvanced
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    if (YAHOO.widget.Button) {
++        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
++            var _menuItems = this.getMenu().getItems();
++            if (_menuItems.length === 0) {
++                this.getMenu()._onBeforeShow();
++                _menuItems = this.getMenu().getItems();
++            }
++            for (var i = 0; i < _menuItems.length; i++) {
++                _menuItems[i].cfg.setProperty('checked', false);
++                if (_menuItems[i].value == value) {
++                    _menuItems[i].cfg.setProperty('checked', true);
++                }
++            }      
++        };
++    } else {
++        YAHOO.widget.ToolbarButtonAdvanced = function() {};
++    }
++
++
++    /**
++     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
++     * @class ToolbarButton
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event
++     * @extends YAHOO.util.Element
++     * 
++     * 
++     * @constructor
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    YAHOO.widget.ToolbarButton = function(el, attrs) {
++        YAHOO.log('ToolbarButton Initalizing', 'info', 'ToolbarButton');
++        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = (attrs || {});
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++
++        if (!oConfig.attributes.type) {
++            oConfig.attributes.type = 'push';
++        }
++        
++        oConfig.element = document.createElement('span');
++        oConfig.element.setAttribute('unselectable', 'on');
++        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
++        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
++        oConfig.element.firstChild.firstChild.tabIndex = '-1';
++        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
++        oConfig.element.id = oConfig.attributes.id;
++
++        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        buttonType: 'normal',
++        /**
++        * @method _handleMouseOver
++        * @private
++        * @description Adds classes to the button elements on mouseover (hover)
++        */
++        _handleMouseOver: function() {
++            if (!this.get('disabled')) {
++                this.addClass('yui-button-hover');
++                this.addClass('yui-' + this.get('type') + '-button-hover');
++            }
++        },
++        /**
++        * @method _handleMouseOut
++        * @private
++        * @description Removes classes from the button elements on mouseout (hover)
++        */
++        _handleMouseOut: function() {
++            this.removeClass('yui-button-hover');
++            this.removeClass('yui-' + this.get('type') + '-button-hover');
++        },
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        checkValue: function(value) {
++            if (this.get('type') == 'menu') {
++                var opts = this._button.options;
++                for (var i = 0; i < opts.length; i++) {
++                    if (opts[i].value == value) {
++                        opts.selectedIndex = i;
++                    }
++                }
++            }
++        },
++        /** 
++        * @method init
++        * @description The ToolbarButton class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.on('mouseover', this._handleMouseOver, this, true);
++            this.on('mouseout', this._handleMouseOut, this, true);
++            this.on('click', function(ev) {
++                Event.stopEvent(ev);
++                return false;
++            }, this, true);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */        
++        initAttributes: function(attr) {
++            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
++            /**
++            * @attribute value
++            * @description The value of the button
++            * @type String
++            */            
++            this.setAttributeConfig('value', {
++                value: attr.value
++            });
++            /**
++            * @attribute menu
++            * @description The menu attribute, see YAHOO.widget.Button
++            * @type Object
++            */            
++            this.setAttributeConfig('menu', {
++                value: attr.menu || false
++            });
++            /**
++            * @attribute type
++            * @description The type of button to create: push, menu, color, select, spin
++            * @type String
++            */            
++            this.setAttributeConfig('type', {
++                value: attr.type,
++                writeOnce: true,
++                method: function(type) {
++                    var el, opt;
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    switch (type) {
++                        case 'select':
++                        case 'menu':
++                            el = document.createElement('select');
++                            el.id = this.get('id');
++                            var menu = this.get('menu');
++                            for (var i = 0; i < menu.length; i++) {
++                                opt = document.createElement('option');
++                                opt.innerHTML = menu[i].text;
++                                opt.value = menu[i].value;
++                                if (menu[i].checked) {
++                                    opt.selected = true;
++                                }
++                                el.appendChild(opt);
++                            }
++                            this._button.parentNode.replaceChild(el, this._button);
++                            Event.on(el, 'change', this._handleSelect, this, true);
++                            this._button = el;
++                            break;
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Set the button into a disabled state
++            * @type String
++            */            
++            this.setAttributeConfig('disabled', {
++                value: attr.disabled || false,
++                method: function(disabled) {
++                    if (disabled) {
++                        this.addClass('yui-button-disabled');
++                        this.addClass('yui-' + this.get('type') + '-button-disabled');
++                    } else {
++                        this.removeClass('yui-button-disabled');
++                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
++                    }
++                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
++                        this._button.disabled = disabled;
++                    }
++                }
++            });
++
++            /**
++            * @attribute label
++            * @description The text label for the button
++            * @type String
++            */            
++            this.setAttributeConfig('label', {
++                value: attr.label,
++                method: function(label) {
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    if (this.get('type') == 'push') {
++                        this._button.innerHTML = label;
++                    }
++                }
++            });
++
++            /**
++            * @attribute title
++            * @description The title of the button
++            * @type String
++            */            
++            this.setAttributeConfig('title', {
++                value: attr.title
++            });
++
++            /**
++            * @config container
++            * @description The container that the button is rendered to, handled by Toolbar
++            * @type String
++            */            
++            this.setAttributeConfig('container', {
++                value: null,
++                writeOnce: true,
++                method: function(cont) {
++                    this.appendTo(cont);
++                }
++            });
++
++        },
++        /** 
++        * @private
++        * @method _handleSelect
++        * @description The event fired when a change event gets fired on a select element
++        * @param {Event} ev The change event.
++        */        
++        _handleSelect: function(ev) {
++            var tar = Event.getTarget(ev);
++            var value = tar.options[tar.selectedIndex].value;
++            this.fireEvent('change', {type: 'change', value: value });
++        },
++        /** 
++        * @method getMenu
++        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
++        */        
++        getMenu: function() {
++            return this.get('menu');
++        },
++        /** 
++        * @method destroy
++        * @description Destroy the button
++        */        
++        destroy: function() {
++            Event.purgeElement(this.get('element'), true);
++            this.get('element').parentNode.removeChild(this.get('element'));
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }       
++        },
++        /** 
++        * @method fireEvent
++        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
++        */        
++        fireEvent: function(p_sType, p_aArgs) {
++            //  Disabled buttons should not respond to DOM events
++            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
++                Event.stopEvent(p_aArgs);
++                return;
++            }
++        
++            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */        
++        toString: function() {
++            return 'ToolbarButton (' + this.get('id') + ')';
++        }
++        
++    });
++})();
++/**
++ * @module editor
++ * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbarbutton
++ * @optional container_core, dragdrop
++ */
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    
++    var getButton = function(id) {
++        var button = id;
++        if (Lang.isString(id)) {
++            button = this.getButtonById(id);
++        }
++        if (Lang.isNumber(id)) {
++            button = this.getButtonByIndex(id);
++        }
++        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
++            button = this.getButtonByValue(id);
++        }
++        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
++            return button;
++        }
++        return false;
++    };
++
++    /**
++     * Provides a rich toolbar widget based on the button and menu widgets
++     * @constructor
++     * @class Toolbar
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The element to turn into a toolbar.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    YAHOO.widget.Toolbar = function(el, attrs) {
++        YAHOO.log('Toolbar Initalizing', 'info', 'Toolbar');
++        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = {};
++        if (attrs) {
++            Lang.augmentObject(local_attrs, attrs); //Break the config reference
++        }
++        
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++        
++        
++        if (Lang.isString(el) && Dom.get(el)) {
++            oConfig.element = Dom.get(el);
++        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
++            oConfig.element = Dom.get(el);
++        }
++        
++
++        if (!oConfig.element) {
++            YAHOO.log('No element defined, creating toolbar container', 'warn', 'Toolbar');
++            oConfig.element = document.createElement('DIV');
++            oConfig.element.id = Dom.generateId();
++            
++            if (local_attrs.container && Dom.get(local_attrs.container)) {
++                YAHOO.log('Container found in config appending to it (' + Dom.get(local_attrs.container).id + ')', 'info', 'Toolbar');
++                Dom.get(local_attrs.container).appendChild(oConfig.element);
++            }
++        }
++        
++
++        if (!oConfig.element.id) {
++            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
++            YAHOO.log('No element ID defined for toolbar container, creating..', 'warn', 'Toolbar');
++        }
++        YAHOO.log('Initing toolbar with id: ' + oConfig.element.id, 'info', 'Toolbar');
++        
++        var fs = document.createElement('fieldset');
++        var lg = document.createElement('legend');
++        lg.innerHTML = 'Toolbar';
++        fs.appendChild(lg);
++        
++        var cont = document.createElement('DIV');
++        oConfig.attributes.cont = cont;
++        Dom.addClass(cont, 'yui-toolbar-subcont');
++        fs.appendChild(cont);
++        oConfig.element.appendChild(fs);
++
++        oConfig.element.tabIndex = -1;
++
++        
++        oConfig.attributes.element = oConfig.element;
++        oConfig.attributes.id = oConfig.element.id;
++
++        this._configuredButtons = [];
++
++        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++         
++    };
++
++    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
++        /**
++        * @protected
++        * @property _configuredButtons
++        * @type Array
++        */
++        _configuredButtons: null,
++        /**
++        * @method _addMenuClasses
++        * @private
++        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
++        * @param {String} ev The event that fired.
++        * @param {Array} na Array of event information.
++        * @param {Object} o Button config object. 
++        */
++        _addMenuClasses: function(ev, na, o) {
++            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
++            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
++                Dom.addClass(this.element, 'yui-toolbar-select-menu');
++            }
++            var items = this.getItems();
++            for (var i = 0; i < items.length; i++) {
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
++            }
++        },
++        /** 
++        * @property buttonType
++        * @description The default button to use
++        * @type Object
++        */
++        buttonType: YAHOO.widget.ToolbarButton,
++        /** 
++        * @property dd
++        * @description The DragDrop instance associated with the Toolbar
++        * @type Object
++        */
++        dd: null,
++        /** 
++        * @property _colorData
++        * @description Object reference containing colors hex and text values.
++        * @type Object
++        */
++        _colorData: {
++/* {{{ _colorData */
++    '#111111': 'Obsidian',
++    '#2D2D2D': 'Dark Gray',
++    '#434343': 'Shale',
++    '#5B5B5B': 'Flint',
++    '#737373': 'Gray',
++    '#8B8B8B': 'Concrete',
++    '#A2A2A2': 'Gray',
++    '#B9B9B9': 'Titanium',
++    '#000000': 'Black',
++    '#D0D0D0': 'Light Gray',
++    '#E6E6E6': 'Silver',
++    '#FFFFFF': 'White',
++    '#BFBF00': 'Pumpkin',
++    '#FFFF00': 'Yellow',
++    '#FFFF40': 'Banana',
++    '#FFFF80': 'Pale Yellow',
++    '#FFFFBF': 'Butter',
++    '#525330': 'Raw Siena',
++    '#898A49': 'Mildew',
++    '#AEA945': 'Olive',
++    '#7F7F00': 'Paprika',
++    '#C3BE71': 'Earth',
++    '#E0DCAA': 'Khaki',
++    '#FCFAE1': 'Cream',
++    '#60BF00': 'Cactus',
++    '#80FF00': 'Chartreuse',
++    '#A0FF40': 'Green',
++    '#C0FF80': 'Pale Lime',
++    '#DFFFBF': 'Light Mint',
++    '#3B5738': 'Green',
++    '#668F5A': 'Lime Gray',
++    '#7F9757': 'Yellow',
++    '#407F00': 'Clover',
++    '#8A9B55': 'Pistachio',
++    '#B7C296': 'Light Jade',
++    '#E6EBD5': 'Breakwater',
++    '#00BF00': 'Spring Frost',
++    '#00FF80': 'Pastel Green',
++    '#40FFA0': 'Light Emerald',
++    '#80FFC0': 'Sea Foam',
++    '#BFFFDF': 'Sea Mist',
++    '#033D21': 'Dark Forrest',
++    '#438059': 'Moss',
++    '#7FA37C': 'Medium Green',
++    '#007F40': 'Pine',
++    '#8DAE94': 'Yellow Gray Green',
++    '#ACC6B5': 'Aqua Lung',
++    '#DDEBE2': 'Sea Vapor',
++    '#00BFBF': 'Fog',
++    '#00FFFF': 'Cyan',
++    '#40FFFF': 'Turquoise Blue',
++    '#80FFFF': 'Light Aqua',
++    '#BFFFFF': 'Pale Cyan',
++    '#033D3D': 'Dark Teal',
++    '#347D7E': 'Gray Turquoise',
++    '#609A9F': 'Green Blue',
++    '#007F7F': 'Seaweed',
++    '#96BDC4': 'Green Gray',
++    '#B5D1D7': 'Soapstone',
++    '#E2F1F4': 'Light Turquoise',
++    '#0060BF': 'Summer Sky',
++    '#0080FF': 'Sky Blue',
++    '#40A0FF': 'Electric Blue',
++    '#80C0FF': 'Light Azure',
++    '#BFDFFF': 'Ice Blue',
++    '#1B2C48': 'Navy',
++    '#385376': 'Biscay',
++    '#57708F': 'Dusty Blue',
++    '#00407F': 'Sea Blue',
++    '#7792AC': 'Sky Blue Gray',
++    '#A8BED1': 'Morning Sky',
++    '#DEEBF6': 'Vapor',
++    '#0000BF': 'Deep Blue',
++    '#0000FF': 'Blue',
++    '#4040FF': 'Cerulean Blue',
++    '#8080FF': 'Evening Blue',
++    '#BFBFFF': 'Light Blue',
++    '#212143': 'Deep Indigo',
++    '#373E68': 'Sea Blue',
++    '#444F75': 'Night Blue',
++    '#00007F': 'Indigo Blue',
++    '#585E82': 'Dockside',
++    '#8687A4': 'Blue Gray',
++    '#D2D1E1': 'Light Blue Gray',
++    '#6000BF': 'Neon Violet',
++    '#8000FF': 'Blue Violet',
++    '#A040FF': 'Violet Purple',
++    '#C080FF': 'Violet Dusk',
++    '#DFBFFF': 'Pale Lavender',
++    '#302449': 'Cool Shale',
++    '#54466F': 'Dark Indigo',
++    '#655A7F': 'Dark Violet',
++    '#40007F': 'Violet',
++    '#726284': 'Smoky Violet',
++    '#9E8FA9': 'Slate Gray',
++    '#DCD1DF': 'Violet White',
++    '#BF00BF': 'Royal Violet',
++    '#FF00FF': 'Fuchsia',
++    '#FF40FF': 'Magenta',
++    '#FF80FF': 'Orchid',
++    '#FFBFFF': 'Pale Magenta',
++    '#4A234A': 'Dark Purple',
++    '#794A72': 'Medium Purple',
++    '#936386': 'Cool Granite',
++    '#7F007F': 'Purple',
++    '#9D7292': 'Purple Moon',
++    '#C0A0B6': 'Pale Purple',
++    '#ECDAE5': 'Pink Cloud',
++    '#BF005F': 'Hot Pink',
++    '#FF007F': 'Deep Pink',
++    '#FF409F': 'Grape',
++    '#FF80BF': 'Electric Pink',
++    '#FFBFDF': 'Pink',
++    '#451528': 'Purple Red',
++    '#823857': 'Purple Dino',
++    '#A94A76': 'Purple Gray',
++    '#7F003F': 'Rose',
++    '#BC6F95': 'Antique Mauve',
++    '#D8A5BB': 'Cool Marble',
++    '#F7DDE9': 'Pink Granite',
++    '#C00000': 'Apple',
++    '#FF0000': 'Fire Truck',
++    '#FF4040': 'Pale Red',
++    '#FF8080': 'Salmon',
++    '#FFC0C0': 'Warm Pink',
++    '#441415': 'Sepia',
++    '#82393C': 'Rust',
++    '#AA4D4E': 'Brick',
++    '#800000': 'Brick Red',
++    '#BC6E6E': 'Mauve',
++    '#D8A3A4': 'Shrimp Pink',
++    '#F8DDDD': 'Shell Pink',
++    '#BF5F00': 'Dark Orange',
++    '#FF7F00': 'Orange',
++    '#FF9F40': 'Grapefruit',
++    '#FFBF80': 'Canteloupe',
++    '#FFDFBF': 'Wax',
++    '#482C1B': 'Dark Brick',
++    '#855A40': 'Dirt',
++    '#B27C51': 'Tan',
++    '#7F3F00': 'Nutmeg',
++    '#C49B71': 'Mustard',
++    '#E1C4A8': 'Pale Tan',
++    '#FDEEE0': 'Marble'
++/* }}} */
++        },
++        /** 
++        * @property _colorPicker
++        * @description The HTML Element containing the colorPicker
++        * @type HTMLElement
++        */
++        _colorPicker: null,
++        /** 
++        * @property STR_COLLAPSE
++        * @description String for Toolbar Collapse Button
++        * @type String
++        */
++        STR_COLLAPSE: 'Collapse Toolbar',
++        /** 
++        * @property STR_EXPAND
++        * @description String for Toolbar Collapse Button - Expand
++        * @type String
++        */
++        STR_EXPAND: 'Expand Toolbar',
++        /** 
++        * @property STR_SPIN_LABEL
++        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
++        * @type String
++        */
++        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
++        /** 
++        * @property STR_SPIN_UP
++        * @description String for spinbutton up
++        * @type String
++        */
++        STR_SPIN_UP: 'Click to increase the value of this input',
++        /** 
++        * @property STR_SPIN_DOWN
++        * @description String for spinbutton down
++        * @type String
++        */
++        STR_SPIN_DOWN: 'Click to decrease the value of this input',
++        /** 
++        * @property _titlebar
++        * @description Object reference to the titlebar
++        * @type HTMLElement
++        */
++        _titlebar: null,
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: YAHOO.env.ua,
++        /**
++        * @protected
++        * @property _buttonList
++        * @description Internal property list of current buttons in the toolbar
++        * @type Array
++        */
++        _buttonList: null,
++        /**
++        * @protected
++        * @property _buttonGroupList
++        * @description Internal property list of current button groups in the toolbar
++        * @type Array
++        */
++        _buttonGroupList: null,
++        /**
++        * @protected
++        * @property _sep
++        * @description Internal reference to the separator HTML Element for cloning
++        * @type HTMLElement
++        */
++        _sep: null,
++        /**
++        * @protected
++        * @property _sepCount
++        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
++        * @type Number
++        */
++        _sepCount: null,
++        /**
++        * @protected
++        * @property draghandle
++        * @type HTMLElement
++        */
++        _dragHandle: null,
++        /**
++        * @protected
++        * @property _toolbarConfigs
++        * @type Object
++        */
++        _toolbarConfigs: {
++            renderer: true
++        },
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the toolbar container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-toolbar-container',
++        /**
++        * @protected
++        * @property CLASS_DRAGHANDLE
++        * @description Default CSS class to apply to the toolbar's drag handle element
++        * @type String
++        */
++        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
++        /**
++        * @protected
++        * @property CLASS_SEPARATOR
++        * @description Default CSS class to apply to all separators in the toolbar
++        * @type String
++        */
++        CLASS_SEPARATOR: 'yui-toolbar-separator',
++        /**
++        * @protected
++        * @property CLASS_DISABLED
++        * @description Default CSS class to apply when the toolbar is disabled
++        * @type String
++        */
++        CLASS_DISABLED: 'yui-toolbar-disabled',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-toolbar',
++        /** 
++        * @method init
++        * @description The Toolbar class's initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
++            this.addClass(this.CLASS_CONTAINER);
++
++            /**
++            * @attribute buttonType
++            * @description The buttonType to use (advanced or basic)
++            * @type String
++            */
++            this.setAttributeConfig('buttonType', {
++                value: attr.buttonType || 'basic',
++                writeOnce: true,
++                validator: function(type) {
++                    switch (type) {
++                        case 'advanced':
++                        case 'basic':
++                            return true;
++                    }
++                    return false;
++                },
++                method: function(type) {
++                    if (type == 'advanced') {
++                        if (YAHOO.widget.Button) {
++                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
++                        } else {
++                            YAHOO.log('Can not find YAHOO.widget.Button', 'error', 'Toolbar');
++                            this.buttonType = YAHOO.widget.ToolbarButton;
++                        }
++                    } else {
++                        this.buttonType = YAHOO.widget.ToolbarButton;
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute buttons
++            * @description Object specifying the buttons to include in the toolbar
++            * Example:
++            * <code><pre>
++            * {
++            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
++            *   { type: 'separator' },
++            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
++            *       menu: [
++            *           { text: "Left", value: 'alignleft' },
++            *           { text: "Center", value: 'aligncenter' },
++            *           { text: "Right", value: 'alignright' }
++            *       ]
++            *   }
++            * }
++            * </pre></code>
++            * @type Array
++            */
++            
++            this.setAttributeConfig('buttons', {
++                value: [],
++                writeOnce: true,
++                method: function(data) {
++                    var i, button, buttons, len, b;
++                    for (i in data) {
++                        if (Lang.hasOwnProperty(data, i)) {
++                            if (data[i].type == 'separator') {
++                                this.addSeparator();
++                            } else if (data[i].group !== undefined) {
++                                buttons = this.addButtonGroup(data[i]);
++                                if (buttons) {
++                                    len = buttons.length;
++                                    for(b = 0; b < len; b++) {
++                                        if (buttons[b]) {
++                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
++                                        }
++                                    }
++                                }
++                                
++                            } else {
++                                button = this.addButton(data[i]);
++                                if (button) {
++                                    this._configuredButtons[this._configuredButtons.length] = button.id;
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this.get('disabled') === disabled) {
++                        return false;
++                    }
++                    if (disabled) {
++                        this.addClass(this.CLASS_DISABLED);
++                        this.set('draggable', false);
++                        this.disableAllButtons();
++                    } else {
++                        this.removeClass(this.CLASS_DISABLED);
++                        if (this._configs.draggable._initialConfig.value) {
++                            //Draggable by default, set it back
++                            this.set('draggable', true);
++                        }
++                        this.resetAllButtons();
++                    }
++                }
++            });
++
++            /**
++            * @config cont
++            * @description The container for the toolbar.
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('cont', {
++                value: attr.cont,
++                readOnly: true
++            });
++
++
++            /**
++            * @attribute grouplabels
++            * @description Boolean indicating if the toolbar should show the group label's text string.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('grouplabels', {
++                value: ((attr.grouplabels === false) ? false : true),
++                method: function(grouplabels) {
++                    if (grouplabels) {
++                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    } else {
++                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    }
++                }
++            });
++            /**
++            * @attribute titlebar
++            * @description Boolean indicating if the toolbar should have a titlebar. If
++            * passed a string, it will use that as the titlebar text
++            * @default false
++            * @type Boolean or String
++            */
++            this.setAttributeConfig('titlebar', {
++                value: false,
++                method: function(titlebar) {
++                    if (titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                        this._titlebar = document.createElement('DIV');
++                        this._titlebar.tabIndex = '-1';
++                        Event.on(this._titlebar, 'focus', function() {
++                            this._handleFocus();
++                        }, this, true);
++                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
++                        if (Lang.isString(titlebar)) {
++                            var h2 = document.createElement('h2');
++                            h2.tabIndex = '-1';
++                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
++                            this._titlebar.appendChild(h2);
++                            Event.on(h2.firstChild, 'click', function(ev) {
++                                Event.stopEvent(ev);
++                            });
++                            Event.on([h2, h2.firstChild], 'focus', function() {
++                                this._handleFocus();
++                            }, this, true);
++                        }
++                        if (this.get('firstChild')) {
++                            this.insertBefore(this._titlebar, this.get('firstChild'));
++                        } else {
++                            this.appendChild(this._titlebar);
++                        }
++                        if (this.get('collapse')) {
++                            this.set('collapse', true);
++                        }
++                    } else if (this._titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute collapse
++            * @description Boolean indicating if the the titlebar should have a collapse button.
++            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('collapse', {
++                value: false,
++                method: function(collapse) {
++                    if (this._titlebar) {
++                        var collapseEl = null;
++                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                        if (collapse) {
++                            if (el.length > 0) {
++                                //There is already a collapse button
++                                return true;
++                            }
++                            collapseEl = document.createElement('SPAN');
++                            collapseEl.innerHTML = 'X';
++                            collapseEl.title = this.STR_COLLAPSE;
++
++                            Dom.addClass(collapseEl, 'collapse');
++                            this._titlebar.appendChild(collapseEl);
++                            Event.addListener(collapseEl, 'click', function() {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    this.collapse(false); //Expand Toolbar
++                                } else {
++                                    this.collapse(); //Collapse Toolbar
++                                }
++                            }, this, true);
++                        } else {
++                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                            if (collapseEl[0]) {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    //We are closed, reopen the titlebar..
++                                    this.collapse(false); //Expand Toolbar
++                                }
++                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute draggable
++            * @description Boolean indicating if the toolbar should be draggable.  
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('draggable', {
++                value: (attr.draggable || false),
++                method: function(draggable) {
++                    if (draggable && !this.get('titlebar')) {
++                        YAHOO.log('Dragging enabled', 'info', 'Toolbar');
++                        if (!this._dragHandle) {
++                            this._dragHandle = document.createElement('SPAN');
++                            this._dragHandle.innerHTML = '|';
++                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
++                            this._dragHandle.id = this.get('id') + '_draghandle';
++                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
++                            if (this.get('cont').hasChildNodes()) {
++                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
++                            } else {
++                                this.get('cont').appendChild(this._dragHandle);
++                            }
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._dragHandle.id);
++                            
++                        }
++                    } else {
++                        YAHOO.log('Dragging disabled', 'info', 'Toolbar');
++                        if (this._dragHandle) {
++                            this._dragHandle.parentNode.removeChild(this._dragHandle);
++                            this._dragHandle = null;
++                            this.dd = null;
++                        }
++                    }
++                    if (this._titlebar) {
++                        if (draggable) {
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._titlebar);
++                            Dom.addClass(this._titlebar, 'draggable');
++                        } else {
++                            Dom.removeClass(this._titlebar, 'draggable');
++                            if (this.dd) {
++                                this.dd.unreg();
++                                this.dd = null;
++                            }
++                        }
++                    }
++                },
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.DD) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++
++        },
++        /**
++        * @method addButtonGroup
++        * @description Add a new button group to the toolbar. (uses addButton)
++        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
++        */
++        addButtonGroup: function(oGroup) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButtonGroup', arguments];
++                return false;
++            }
++            
++            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
++                this.addClass(this.CLASS_PREFIX + '-grouped');
++            }
++            var div = document.createElement('DIV');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
++            if (oGroup.label) {
++                var label = document.createElement('h3');
++                label.innerHTML = oGroup.label;
++                div.appendChild(label);
++            }
++            if (!this.get('grouplabels')) {
++                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
++            }
++
++            this.get('cont').appendChild(div);
++
++            //For accessibility, let's put all of the group buttons in an Unordered List
++            var ul = document.createElement('ul');
++            div.appendChild(ul);
++
++            if (!this._buttonGroupList) {
++                this._buttonGroupList = {};
++            }
++            
++            this._buttonGroupList[oGroup.group] = ul;
++
++            //An array of the button ids added to this group
++            //This is used for destruction later...
++            var addedButtons = [],
++                button;
++            
++
++            for (var i = 0; i < oGroup.buttons.length; i++) {
++                var li = document.createElement('li');
++                li.className = this.CLASS_PREFIX + '-groupitem';
++                ul.appendChild(li);
++                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
++                    this.addSeparator(li);
++                } else {
++                    oGroup.buttons[i].container = li;
++                    button = this.addButton(oGroup.buttons[i]);
++                    if (button) {
++                        addedButtons[addedButtons.length]  = button.id;
++                    }
++                }
++            }
++            return addedButtons;
++        },
++        /**
++        * @method addButtonToGroup
++        * @description Add a new button to a toolbar group. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {String} group The Group identifier passed into the initial config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButtonToGroup: function(oButton, group, after) {
++            var groupCont = this._buttonGroupList[group],
++                li = document.createElement('li');
++
++            li.className = this.CLASS_PREFIX + '-groupitem';
++            oButton.container = li;
++            this.addButton(oButton, after);
++            groupCont.appendChild(li);
++        },
++        /**
++        * @method addButton
++        * @description Add a new button to the toolbar. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButton: function(oButton, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButton', arguments];
++                return false;
++            }
++            if (!this._buttonList) {
++                this._buttonList = [];
++            }
++            YAHOO.log('Adding button of type: ' + oButton.type, 'info', 'Toolbar');
++            if (!oButton.container) {
++                oButton.container = this.get('cont');
++            }
++
++            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                if (Lang.isArray(oButton.menu)) {
++                    for (var i in oButton.menu) {
++                        if (Lang.hasOwnProperty(oButton.menu, i)) {
++                            var funcObject = {
++                                fn: function(ev, x, oMenu) {
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                },
++                                scope: this
++                            };
++                            oButton.menu[i].onclick = funcObject;
++                        }
++                    }
++                }
++            }
++            var _oButton = {}, skip = false;
++            for (var o in oButton) {
++                if (Lang.hasOwnProperty(oButton, o)) {
++                    if (!this._toolbarConfigs[o]) {
++                        _oButton[o] = oButton[o];
++                    }
++                }
++            }
++            if (oButton.type == 'select') {
++                _oButton.type = 'menu';
++            }
++            if (oButton.type == 'spin') {
++                _oButton.type = 'push';
++            }
++            if (_oButton.type == 'color') {
++                if (YAHOO.widget.Overlay) {
++                    _oButton = this._makeColorButton(_oButton);
++                } else {
++                    skip = true;
++                }
++            }
++            if (_oButton.menu) {
++                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
++                    oButton.menu.showEvent.subscribe(function() {
++                        this._button = _oButton;
++                    });
++                } else {
++                    for (var m = 0; m < _oButton.menu.length; m++) {
++                        if (!_oButton.menu[m].value) {
++                            _oButton.menu[m].value = _oButton.menu[m].text;
++                        }
++                    }
++                    if (this.browser.webkit) {
++                        _oButton.focusmenu = false;
++                    }
++                }
++            }
++            if (skip) {
++                oButton = false;
++            } else {
++                //Add to .get('buttons') manually
++                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
++                
++                var tmp = new this.buttonType(_oButton);
++                tmp.get('element').tabIndex = '-1';
++                tmp.get('element').setAttribute('role', 'button');
++                tmp._selected = true;
++                
++                if (this.get('disabled')) {
++                    //Toolbar is disabled, disable the new button too!
++                    tmp.set('disabled', true);
++                }
++                if (!oButton.id) {
++                    oButton.id = tmp.get('id');
++                }
++                YAHOO.log('Button created (' + oButton.type + ')', 'info', 'Toolbar');
++                
++                if (after) {
++                    var el = tmp.get('element');
++                    var nextSib = null;
++                    if (after.get) {
++                        nextSib = after.get('element').nextSibling;
++                    } else if (after.nextSibling) {
++                        nextSib = after.nextSibling;
++                    }
++                    if (nextSib) {
++                        nextSib.parentNode.insertBefore(el, nextSib);
++                    }
++                }
++                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
++
++                var icon = document.createElement('span');
++                icon.className = this.CLASS_PREFIX + '-icon';
++                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
++                if (tmp._button.tagName.toLowerCase() == 'button') {
++                    tmp.get('element').setAttribute('unselectable', 'on');
++                    //Replace the Button HTML Element with an a href if it exists
++                    var a = document.createElement('a');
++                    a.innerHTML = tmp._button.innerHTML;
++                    a.href = '#';
++                    a.tabIndex = '-1';
++                    Event.on(a, 'click', function(ev) {
++                        Event.stopEvent(ev);
++                    });
++                    tmp._button.parentNode.replaceChild(a, tmp._button);
++                    tmp._button = a;
++                }
++
++                if (oButton.type == 'select') {
++                    if (tmp._button.tagName.toLowerCase() == 'select') {
++                        icon.parentNode.removeChild(icon);
++                        var iel = tmp._button,
++                            parEl = tmp.get('element');
++                        parEl.parentNode.replaceChild(iel, parEl);
++                        //The 'element' value is currently the orphaned element
++                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
++                        //I'm not sure if there is a direct approach to setting this value.
++                        tmp._configs.element.value = iel;
++                    } else {
++                        //Don't put a class on it if it's a real select element
++                        tmp.addClass(this.CLASS_PREFIX + '-select');
++                    }
++                }
++                if (oButton.type == 'spin') {
++                    if (!Lang.isArray(oButton.range)) {
++                        oButton.range = [ 10, 100 ];
++                    }
++                    this._makeSpinButton(tmp, oButton);
++                }
++                tmp.get('element').setAttribute('title', tmp.get('label'));
++                if (oButton.type != 'spin') {
++                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
++                        var showPicker = function(ev) {
++                            var exec = true;
++                            if (ev.keyCode && (ev.keyCode == 9)) {
++                                exec = false;
++                            }
++                            if (exec) {
++                                if (this._colorPicker) {
++                                    this._colorPicker._button = oButton.value;
++                                }
++                                var menuEL = tmp.getMenu().element;
++                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
++                                    tmp.getMenu().show();
++                                } else {
++                                    tmp.getMenu().hide();
++                                }
++                            }
++                            YAHOO.util.Event.stopEvent(ev);
++                        };
++                        tmp.on('mousedown', showPicker, oButton, this);
++                        tmp.on('keydown', showPicker, oButton, this);
++                        
++                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
++                        tmp.on('keypress', this._buttonClick, oButton, this);
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                            this._buttonClick(ev, oButton);
++                        }, oButton, this);
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                    } else {
++                        //Stop the mousedown event so we can trap the selection in the editor!
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('change', function(ev) {
++                            if (!ev.target) {
++                                if (!oButton.menucmd) {
++                                    oButton.menucmd = oButton.value;
++                                }
++                                oButton.value = ev.value;
++                                this._buttonClick(ev, oButton);
++                            }
++                        }, this, true);
++
++                        var self = this;
++                        //Hijack the mousedown event in the menu and make it fire a button click..
++                        tmp.on('appendTo', function() {
++                            var tmp = this;
++                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
++                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
++                                    YAHOO.log('mouseDownEvent', 'warn', 'Toolbar');
++                                    var oMenu = args[1];
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                    tmp._onMenuClick(args[0], tmp);
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                    self._buttonClick.call(self, args[1], oButton);
++                                    tmp._hideMenu();
++                                    return false;
++                                });
++                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
++                                    YAHOO.log('clickEvent', 'warn', 'Toolbar');
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
++                                    YAHOO.log('mouseUpEvent', 'warn', 'Toolbar');
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                            }
++                        });
++                        
++                    }
++                } else {
++                    //Stop the mousedown event so we can trap the selection in the editor!
++                    tmp.on('mousedown', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                }
++                if (this.browser.ie) {
++                    /*
++                    //Add a couple of new events for IE
++                    tmp.DOM_EVENTS.focusin = true;
++                    tmp.DOM_EVENTS.focusout = true;
++                    
++                    //Stop them so we don't loose focus in the Editor
++                    tmp.on('focusin', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    
++                    tmp.on('focusout', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    */
++                }
++                if (this.browser.webkit) {
++                    //This will keep the document from gaining focus and the editor from loosing it..
++                    //Forcefully remove the focus calls in button!
++                    tmp.hasFocus = function() {
++                        return true;
++                    };
++                }
++                this._buttonList[this._buttonList.length] = tmp;
++                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                    if (Lang.isArray(oButton.menu)) {
++                        YAHOO.log('Button type is (' + oButton.type + '), doing extra renderer work.', 'info', 'Toolbar');
++                        var menu = tmp.getMenu();
++                        if (menu && menu.renderEvent) {
++                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
++                            if (oButton.renderer) {
++                                menu.renderEvent.subscribe(oButton.renderer, tmp);
++                            }
++                        }
++                    }
++                }
++            }
++            return oButton;
++        },
++        /**
++        * @method addSeparator
++        * @description Add a new button separator to the toolbar.
++        * @param {HTMLElement} cont Optional HTML element to insert this button into.
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addSeparator: function(cont, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            var sepCont = ((cont) ? cont : this.get('cont'));
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            if (this._sepCount === null) {
++                this._sepCount = 0;
++            }
++            if (!this._sep) {
++                YAHOO.log('Separator does not yet exist, creating', 'info', 'Toolbar');
++                this._sep = document.createElement('SPAN');
++                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
++                this._sep.innerHTML = '|';
++            }
++            YAHOO.log('Separator does exist, cloning', 'info', 'Toolbar');
++            var _sep = this._sep.cloneNode(true);
++            this._sepCount++;
++            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
++            if (after) {
++                var nextSib = null;
++                if (after.get) {
++                    nextSib = after.get('element').nextSibling;
++                } else if (after.nextSibling) {
++                    nextSib = after.nextSibling;
++                } else {
++                    nextSib = after;
++                }
++                if (nextSib) {
++                    if (nextSib == after) {
++                        nextSib.parentNode.appendChild(_sep);
++                    } else {
++                        nextSib.parentNode.insertBefore(_sep, nextSib);
++                    }
++                }
++            } else {
++                sepCont.appendChild(_sep);
++            }
++            return _sep;
++        },
++        /**
++        * @method _createColorPicker
++        * @private
++        * @description Creates the core DOM reference to the color picker menu item.
++        * @param {String} id the id of the toolbar to prefix this DOM container with.
++        */
++        _createColorPicker: function(id) {
++            if (Dom.get(id + '_colors')) {
++               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
++            }
++            var picker = document.createElement('div');
++            picker.className = 'yui-toolbar-colors';
++            picker.id = id + '_colors';
++            picker.style.display = 'none';
++            Event.on(window, 'load', function() {
++                document.body.appendChild(picker);
++            }, this, true);
++
++            this._colorPicker = picker;
++
++            var html = '';
++            for (var i in this._colorData) {
++                if (Lang.hasOwnProperty(this._colorData, i)) {
++                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
++                }
++            }
++            html += '<span><em>X</em><strong></strong></span>';
++            window.setTimeout(function() {
++                picker.innerHTML = html;
++            }, 0);
++
++            Event.on(picker, 'mouseover', function(ev) {
++                var picker = this._colorPicker;
++                var em = picker.getElementsByTagName('em')[0];
++                var strong = picker.getElementsByTagName('strong')[0];
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    em.style.backgroundColor = tar.style.backgroundColor;
++                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
++                }
++            }, this, true);
++            Event.on(picker, 'focus', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'click', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
++                    if (retVal !== false) {
++                        var info = {
++                            color: tar.innerHTML,
++                            colorName: this._colorData['#' + tar.innerHTML],
++                            value: this._colorPicker._button 
++                        };
++                    
++                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                    }
++                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
++                }
++            }, this, true);
++        },
++        /**
++        * @method _resetColorPicker
++        * @private
++        * @description Clears the currently selected color or mouseover color in the color picker.
++        */
++        _resetColorPicker: function() {
++            var em = this._colorPicker.getElementsByTagName('em')[0];
++            var strong = this._colorPicker.getElementsByTagName('strong')[0];
++            em.style.backgroundColor = 'transparent';
++            strong.innerHTML = '';
++        },
++        /**
++        * @method _makeColorButton
++        * @private
++        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
++        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        */
++        _makeColorButton: function(_oButton) {
++            if (!this._colorPicker) {   
++                this._createColorPicker(this.get('id'));
++            }
++            _oButton.type = 'color';
++            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
++            _oButton.menu.setBody('');
++            _oButton.menu.render(this.get('cont'));
++            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
++            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
++            _oButton.menu.beforeShowEvent.subscribe(function() {
++                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
++                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
++                //Move the DOM reference of the color picker to the Overlay that we are about to show.
++                this._resetColorPicker();
++                var _p = this._colorPicker;
++                if (_p.parentNode) {
++                    _p.parentNode.removeChild(_p);
++                }
++                _oButton.menu.setBody('');
++                _oButton.menu.appendToBody(_p);
++                this._colorPicker.style.display = 'block';
++            }, this, true);
++            return _oButton;
++        },
++        /**
++        * @private
++        * @method _makeSpinButton
++        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
++        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        * @param {Object} oButton Object literal containing the buttons initial config
++        */
++        _makeSpinButton: function(_button, oButton) {
++            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
++            var self = this,
++                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
++                range = oButton.range,
++                _b1 = document.createElement('a'),
++                _b2 = document.createElement('a');
++                _b1.href = '#';
++                _b2.href = '#';
++                _b1.tabIndex = '-1';
++                _b2.tabIndex = '-1';
++            
++            //Setup the up and down arrows
++            _b1.className = 'up';
++            _b1.title = this.STR_SPIN_UP;
++            _b1.innerHTML = this.STR_SPIN_UP;
++            _b2.className = 'down';
++            _b2.title = this.STR_SPIN_DOWN;
++            _b2.innerHTML = this.STR_SPIN_DOWN;
++
++            //Append them to the container
++            _par.appendChild(_b1);
++            _par.appendChild(_b2);
++            
++            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
++            _button.set('title', label);
++
++            var cleanVal = function(value) {
++                value = ((value < range[0]) ? range[0] : value);
++                value = ((value > range[1]) ? range[1] : value);
++                return value;
++            };
++
++            var br = this.browser;
++            var tbar = false;
++            var strLabel = this.STR_SPIN_LABEL;
++            if (this._titlebar && this._titlebar.firstChild) {
++                tbar = this._titlebar.firstChild;
++            }
++            
++            var _intUp = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value++;
++                    value = cleanVal(value);
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intDown = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value--;
++                    value = cleanVal(value);
++
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intKeyUp = function(ev) {
++                if (ev.keyCode == 38) {
++                    _intUp(ev);
++                } else if (ev.keyCode == 40) {
++                    _intDown(ev);
++                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
++                    _intUp(ev);
++                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
++                    _intDown(ev);
++                }
++            };
++
++            //Handle arrow keys..
++            _button.on('keydown', _intKeyUp, this, true);
++
++            //Listen for the click on the up button and act on it
++            //Listen for the click on the down button and act on it
++            Event.on(_b1, 'mousedown',function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b2, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b1, 'click', _intUp, this, true);
++            Event.on(_b2, 'click', _intDown, this, true);
++        },
++        /**
++        * @protected
++        * @method _buttonClick
++        * @description Click handler for all buttons in the toolbar.
++        * @param {String} ev The event that was passed in.
++        * @param {Object} info Object literal of information about the button that was clicked.
++        */
++        _buttonClick: function(ev, info) {
++            var doEvent = true;
++            
++            if (ev && ev.type == 'keypress') {
++                if (ev.keyCode == 9) {
++                    doEvent = false;
++                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
++                } else {
++                    doEvent = false;
++                }
++            }
++
++            if (doEvent) {
++                var fireNextEvent = true,
++                    retValue = false;
++                    
++                info.isSelected = this.isSelected(info.id);
++
++                if (info.value) {
++                    YAHOO.log('fireEvent::' + info.value + 'Click', 'info', 'Toolbar');
++                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                
++                if (info.menucmd && fireNextEvent) {
++                    YAHOO.log('fireEvent::' + info.menucmd + 'Click', 'info', 'Toolbar');
++                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                if (fireNextEvent) {
++                    YAHOO.log('fireEvent::buttonClick', 'info', 'Toolbar');
++                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                }
++
++                if (info.type == 'select') {
++                    var button = this.getButtonById(info.id);
++                    if (button.buttonType == 'rich') {
++                        var txt = info.value;
++                        for (var i = 0; i < info.menu.length; i++) {
++                            if (info.menu[i].value == info.value) {
++                                txt = info.menu[i].text;
++                                break;
++                            }
++                        }
++                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
++                                _items[m].cfg.setProperty('checked', true);
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++                if (ev) {
++                    Event.stopEvent(ev);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _keyNav
++        * @description Flag to determine if the arrow nav listeners have been attached
++        * @type Boolean
++        */
++        _keyNav: null,
++        /**
++        * @private
++        * @property _navCounter
++        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
++        * @type Number
++        */
++        _navCounter: null,
++        /**
++        * @private
++        * @method _navigateButtons
++        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
++        * @param {Event} ev The Key Event
++        */
++        _navigateButtons: function(ev) {
++            switch (ev.keyCode) {
++                case 37:
++                case 39:
++                    if (ev.keyCode == 37) {
++                        this._navCounter--;
++                    } else {
++                        this._navCounter++;
++                    }
++                    if (this._navCounter > (this._buttonList.length - 1)) {
++                        this._navCounter = 0;
++                    }
++                    if (this._navCounter < 0) {
++                        this._navCounter = (this._buttonList.length - 1);
++                    }
++                    if (this._buttonList[this._navCounter]) {
++                        var el = this._buttonList[this._navCounter].get('element');
++                        if (this.browser.ie) {
++                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
++                        }
++                        if (this._buttonList[this._navCounter].get('disabled')) {
++                            this._navigateButtons(ev);
++                        } else {
++                            el.focus();
++                        }
++                    }
++                    break;
++            }
++        },
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Sets up the listeners for the arrow key navigation
++        */
++        _handleFocus: function() {
++            if (!this._keyNav) {
++                var ev = 'keypress';
++                if (this.browser.ie) {
++                    ev = 'keydown';
++                }
++                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
++                this._keyNav = true;
++                this._navCounter = -1;
++            }
++        },
++        /**
++        * @method getButtonById
++        * @description Gets a button instance from the toolbar by is Dom id.
++        * @param {String} id The Dom id to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonById: function(id) {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
++                    return this._buttonList[i];
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByValue
++        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
++        * @param {String} value The button value to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
++        */
++        getButtonByValue: function(value) {
++            var _buttons = this.get('buttons');
++            if (!_buttons) {
++                return false;
++            }
++            var len = _buttons.length;
++            for (var i = 0; i < len; i++) {
++                if (_buttons[i].group !== undefined) {
++                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
++                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
++                            return this.getButtonById(_buttons[i].buttons[m].id);
++                        }
++                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
++                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
++                                if (_buttons[i].buttons[m].menu[s].value == value) {
++                                    return this.getButtonById(_buttons[i].buttons[m].id);
++                                }
++                            }
++                        }
++                    }
++                } else {
++                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
++                        return this.getButtonById(_buttons[i].id);
++                    }
++                    if (_buttons[i].menu) { //Menu Button, loop through the values
++                        for (var j = 0; j < _buttons[i].menu.length; j++) {
++                            if (_buttons[i].menu[j].value == value) {
++                                return this.getButtonById(_buttons[i].id);
++                            }
++                        }
++                    }
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByIndex
++        * @description Gets a button instance from the toolbar by is index in _buttonList.
++        * @param {Number} index The index of the button in _buttonList.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonByIndex: function(index) {
++            if (this._buttonList[index]) {
++                return this._buttonList[index];
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method getButtons
++        * @description Returns an array of buttons in the current toolbar
++        * @return {Array}
++        */
++        getButtons: function() {
++            return this._buttonList;
++        },
++        /**
++        * @method disableButton
++        * @description Disables a button in the toolbar.
++        * @param {String/Number} id Disable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        disableButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.set('disabled', true);
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method enableButton
++        * @description Enables a button in the toolbar.
++        * @param {String/Number} id Enable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        enableButton: function(id) {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var button = getButton.call(this, id);
++            if (button) {
++                if (button.get('disabled')) {
++                    button.set('disabled', false);
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method isSelected
++        * @description Tells if a button is selected or not.
++        * @param {String/Number} id A button by it's id, index or value.
++        * @return {Boolean}
++        */
++        isSelected: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                return button._selected;
++            }
++            return false;
++        },
++        /**
++        * @method selectButton
++        * @description Selects a button in the toolbar.
++        * @param {String/Number} id Select a button by it's id, index or value.
++        * @param {String} value If this is a Menu Button, check this item in the menu
++        * @return {Boolean}
++        */
++        selectButton: function(id, value) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.addClass('yui-button-selected');
++                button.addClass('yui-button-' + button.get('value') + '-selected');
++                button._selected = true;
++                if (value) {
++                    if (button.buttonType == 'rich') {
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value == value) {
++                                _items[m].cfg.setProperty('checked', true);
++                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectButton
++        * @description Deselects a button in the toolbar.
++        * @param {String/Number} id Deselect a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        deselectButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.removeClass('yui-button-selected');
++                button.removeClass('yui-button-' + button.get('value') + '-selected');
++                button.removeClass('yui-button-hover');
++                button._selected = false;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectAllButtons
++        * @description Deselects all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        deselectAllButtons: function() {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.deselectButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method disableAllButtons
++        * @description Disables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        disableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.disableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method enableAllButtons
++        * @description Enables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        enableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.enableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method resetAllButtons
++        * @description Resets all buttons to their initial state.
++        * @param {Object} _ex Except these buttons
++        * @return {Boolean}
++        */
++        resetAllButtons: function(_ex) {
++            if (!Lang.isObject(_ex)) {
++                _ex = {};
++            }
++            if (this.get('disabled') || !this._buttonList) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                var _button = this._buttonList[i];
++                if (_button) {
++                    var disabled = _button._configs.disabled._initialConfig.value;
++                    if (_ex[_button.get('id')]) {
++                        this.enableButton(_button);
++                        this.selectButton(_button);
++                    } else {
++                        if (disabled) {
++                            this.disableButton(_button);
++                        } else {
++                            this.enableButton(_button);
++                        }
++                        this.deselectButton(_button);
++                    }
++                }
++            }
++        },
++        /**
++        * @method destroyButton
++        * @description Destroy a button in the toolbar.
++        * @param {String/Number} id Destroy a button by it's id or index.
++        * @return {Boolean}
++        */
++        destroyButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                var thisID = button.get('id'),
++                    new_list = [], i = 0,
++                    len = this._buttonList.length;
++
++                button.destroy();
++                
++                for (i = 0; i < len; i++) {
++                    if (this._buttonList[i].get('id') != thisID) {
++                        new_list[new_list.length]= this._buttonList[i];
++                    }
++                }
++
++                this._buttonList = new_list;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method destroy
++        * @description Destroys the toolbar, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            var len = this._configuredButtons.length, j, i;
++            for(b = 0; b < len; b++) {
++                this.destroyButton(this._configuredButtons[b]);
++            }
++
++            this._configuredButtons = null;
++        
++            this.get('element').innerHTML = '';
++            this.get('element').className = '';
++            //Brutal Object Destroy
++            for (i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }
++            return true;
++        },
++        /**
++        * @method collapse
++        * @description Programatically collapse the toolbar.
++        * @param {Boolean} collapse True to collapse, false to expand.
++        */
++        collapse: function(collapse) {
++            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++            if (collapse === false) {
++                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                if (el[0]) {
++                    Dom.removeClass(el[0], 'collapsed');
++                    el[0].title = this.STR_COLLAPSE;
++                }
++                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
++            } else {
++                if (el[0]) {
++                    Dom.addClass(el[0], 'collapsed');
++                    el[0].title = this.STR_EXPAND;
++                }
++                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */
++        toString: function() {
++            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
++        }
++    });
++/**
++* @event buttonClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event valueClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description This is a special dynamic event that is created and dispatched based on the value property
++* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* Example:
++* <code><pre>
++* buttons : [
++*   { type: 'button', value: 'test', value: 'testButton' }
++* ]</pre>
++* </code>
++* With the valueClick event you could subscribe to this buttons click event with this:
++* tbar.in('testButtonClick', function() { alert('test button clicked'); })
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarExpanded
++* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarCollapsed
++* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++})();
++/**
++ * @module editor
++ * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbar
++ * @optional animation, container_core, resize, dragdrop
++ */
++
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang,
++    Toolbar = YAHOO.widget.Toolbar;
++
++    /**
++     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
++     * @constructor
++     * @class SimpleEditor
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The textarea element to turn into an editor.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    
++    YAHOO.widget.SimpleEditor = function(el, attrs) {
++        YAHOO.log('SimpleEditor Initalizing', 'info', 'SimpleEditor');
++        
++        var o = {};
++        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
++            Lang.augmentObject(o, el); //Break the config reference
++            el = document.createElement('textarea');
++            this.DOMReady = true;
++            if (o.container) {
++                var c = Dom.get(o.container);
++                c.appendChild(el);
++            } else {
++                document.body.appendChild(el);
++            }
++        } else {
++            if (attrs) {
++                Lang.augmentObject(o, attrs); //Break the config reference
++            }
++        }
++
++        var oConfig = {
++            element: null,
++            attributes: o
++        }, id = null;
++
++        if (Lang.isString(el)) {
++            id = el;
++        } else {
++            if (oConfig.attributes.id) {
++                id = oConfig.attributes.id;
++            } else {
++                this.DOMReady = true;
++                id = Dom.generateId(el);
++            }
++        }
++        oConfig.element = el;
++
++        var element_cont = document.createElement('DIV');
++        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
++            id: id + '_container'
++        });
++        var div = document.createElement('div');
++        Dom.addClass(div, 'first-child');
++        oConfig.attributes.element_cont.appendChild(div);
++        
++        if (!oConfig.attributes.toolbar_cont) {
++            oConfig.attributes.toolbar_cont = document.createElement('DIV');
++            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
++            div.appendChild(oConfig.attributes.toolbar_cont);
++        }
++        var editorWrapper = document.createElement('DIV');
++        div.appendChild(editorWrapper);
++        oConfig.attributes.editor_wrapper = editorWrapper;
++
++        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++
++    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property _resizeConfig
++        * @description The default config for the Resize Utility
++        */
++        _resizeConfig: {
++            handles: ['br'],
++            autoRatio: true,
++            status: true,
++            proxy: true,
++            useShim: true,
++            setSize: false
++        },
++        /**
++        * @private
++        * @method _setupResize
++        * @description Creates the Resize instance and binds its events.
++        */
++        _setupResize: function() {
++            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
++            if (this.get('resize')) {
++                var config = {};
++                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
++                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
++                this.resize.on('resize', function(args) {
++                    var anim = this.get('animate');
++                    this.set('animate', false);
++                    this.set('width', args.width + 'px');
++                    var h = args.height,
++                        th = (this.toolbar.get('element').clientHeight + 2),
++                        dh = 0;
++                    if (this.dompath) {
++                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
++                    }
++                    var newH = (h - th - dh);
++                    this.set('height', newH + 'px');
++                    this.get('element_cont').setStyle('height', '');
++                    this.set('animate', anim);
++                }, this, true);
++            }
++        },
++        /**
++        * @property resize
++        * @description A reference to the Resize object
++        * @type YAHOO.util.Resize
++        */
++        resize: null,
++        /**
++        * @private
++        * @method _setupDD
++        * @description Sets up the DD instance used from the 'drag' config option.
++        */
++        _setupDD: function() {
++            if (!YAHOO.util.DD) { return false; }
++            if (this.get('drag')) {
++                YAHOO.log('Attaching DD instance to Editor', 'info', 'SimpleEditor');
++                var d = this.get('drag'),
++                    dd = YAHOO.util.DD;
++                if (d === 'proxy') {
++                    dd = YAHOO.util.DDProxy;
++                }
++
++                this.dd = new dd(this.get('element_cont').get('element'));
++                this.toolbar.addClass('draggable'); 
++                this.dd.setHandleElId(this.toolbar._titlebar); 
++            }
++        },
++        /**
++        * @property dd
++        * @description A reference to the DragDrop object.
++        * @type YAHOO.util.DD/YAHOO.util.DDProxy
++        */
++        dd: null,
++        /**
++        * @private
++        * @property _lastCommand
++        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
++        * @type String
++        */
++        _lastCommand: null,
++        _undoNodeChange: function() {},
++        _storeUndo: function() {},
++        /**
++        * @private
++        * @method _checkKey
++        * @description Checks a keyMap entry against a key event
++        * @param {Object} k The _keyMap object
++        * @param {Event} e The Mouse Event
++        * @return {Boolean}
++        */
++        _checkKey: function(k, e) {
++            var ret = false;
++            if ((e.keyCode === k.key)) {
++                if (k.mods && (k.mods.length > 0)) {
++                    var val = 0;
++                    for (var i = 0; i < k.mods.length; i++) {
++                        if (this.browser.mac) {
++                            if (k.mods[i] == 'ctrl') {
++                                k.mods[i] = 'meta';
++                            }
++                        }
++                        if (e[k.mods[i] + 'Key'] === true) {
++                            val++;
++                        }
++                    }
++                    if (val === k.mods.length) {
++                        ret = true;
++                    }
++                } else {
++                    ret = true;
++                }
++            }
++            //YAHOO.log('Shortcut Key Check: (' + k.key + ') return: ' + ret, 'info', 'SimpleEditor');
++            return ret;
++        },
++        /**
++        * @private
++        * @property _keyMap
++        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
++        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
++        * @type {Object/Mixed}
++        */
++        _keyMap: {
++            SELECT_ALL: {
++                key: 65, //A key
++                mods: ['ctrl']
++            },
++            CLOSE_WINDOW: {
++                key: 87, //W key
++                mods: ['shift', 'ctrl']
++            },
++            FOCUS_TOOLBAR: {
++                key: 27,
++                mods: ['shift']
++            },
++            FOCUS_AFTER: {
++                key: 27
++            },
++            FONT_SIZE_UP: {
++                key: 38,
++                mods: ['shift', 'ctrl']
++            },
++            FONT_SIZE_DOWN: {
++                key: 40,
++                mods: ['shift', 'ctrl']
++            },
++            CREATE_LINK: {
++                key: 76,
++                mods: ['shift', 'ctrl']
++            },
++            BOLD: {
++                key: 66,
++                mods: ['shift', 'ctrl']
++            },
++            ITALIC: {
++                key: 73,
++                mods: ['shift', 'ctrl']
++            },
++            UNDERLINE: {
++                key: 85,
++                mods: ['shift', 'ctrl']
++            },
++            UNDO: {
++                key: 90,
++                mods: ['ctrl']
++            },
++            REDO: {
++                key: 90,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_LEFT: {
++                key: 219,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_CENTER: {
++                key: 220,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_RIGHT: {
++                key: 221,
++                mods: ['shift', 'ctrl']
++            }
++        },
++        /**
++        * @private
++        * @method _cleanClassName
++        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
++        * @param {String} str The classname to clean up
++        * @return {String}
++        */
++        _cleanClassName: function(str) {
++            return str.replace(/ /g, '-').toLowerCase();
++        },
++        /**
++        * @property _textarea
++        * @description Flag to determine if we are using a textarea or an HTML Node.
++        * @type Boolean
++        */
++        _textarea: null,
++        /**
++        * @property _docType
++        * @description The DOCTYPE to use in the editable container.
++        * @type String
++        */
++        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
++        /**
++        * @property editorDirty
++        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
++        * @type Boolean
++        */
++        editorDirty: null,
++        /**
++        * @property _defaultCSS
++        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
++        * @type String
++        */
++        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
++        /**
++        * @property _defaultToolbar
++        * @private
++        * @description Default toolbar config.
++        * @type Object
++        */
++        _defaultToolbar: null,
++        /**
++        * @property _lastButton
++        * @private
++        * @description The last button pressed, so we don't disable it.
++        * @type Object
++        */
++        _lastButton: null,
++        /**
++        * @property _baseHREF
++        * @private
++        * @description The base location of the editable page (this page) so that relative paths for image work.
++        * @type String
++        */
++        _baseHREF: function() {
++            var href = document.location.href;
++            if (href.indexOf('?') !== -1) { //Remove the query string
++                href = href.substring(0, href.indexOf('?'));
++            }
++            href = href.substring(0, href.lastIndexOf('/')) + '/';
++            return href;
++        }(),
++        /**
++        * @property _lastImage
++        * @private
++        * @description Safari reference for the last image selected (for styling as selected).
++        * @type HTMLElement
++        */
++        _lastImage: null,
++        /**
++        * @property _blankImageLoaded
++        * @private
++        * @description Don't load the blank image more than once..
++        * @type Boolean
++        */
++        _blankImageLoaded: null,
++        /**
++        * @property _fixNodesTimer
++        * @private
++        * @description Holder for the fixNodes timer
++        * @type Date
++        */
++        _fixNodesTimer: null,
++        /**
++        * @property _nodeChangeTimer
++        * @private
++        * @description Holds a reference to the nodeChange setTimeout call
++        * @type Number
++        */
++        _nodeChangeTimer: null,
++        /**
++        * @property _nodeChangeDelayTimer
++        * @private
++        * @description Holds a reference to the nodeChangeDelay setTimeout call
++        * @type Number
++        */
++        _nodeChangeDelayTimer: null,
++        /**
++        * @property _lastNodeChangeEvent
++        * @private
++        * @description Flag to determine the last event that fired a node change
++        * @type Event
++        */
++        _lastNodeChangeEvent: null,
++        /**
++        * @property _lastNodeChange
++        * @private
++        * @description Flag to determine when the last node change was fired
++        * @type Date
++        */
++        _lastNodeChange: 0,
++        /**
++        * @property _rendered
++        * @private
++        * @description Flag to determine if editor has been rendered or not
++        * @type Boolean
++        */
++        _rendered: null,
++        /**
++        * @property DOMReady
++        * @private
++        * @description Flag to determine if DOM is ready or not
++        * @type Boolean
++        */
++        DOMReady: null,
++        /**
++        * @property _selection
++        * @private
++        * @description Holder for caching iframe selections
++        * @type Object
++        */
++        _selection: null,
++        /**
++        * @property _mask
++        * @private
++        * @description DOM Element holder for the editor Mask when disabled
++        * @type Object
++        */
++        _mask: null,
++        /**
++        * @property _showingHiddenElements
++        * @private
++        * @description Status of the hidden elements button
++        * @type Boolean
++        */
++        _showingHiddenElements: null,
++        /**
++        * @property currentWindow
++        * @description A reference to the currently open EditorWindow
++        * @type Object
++        */
++        currentWindow: null,
++        /**
++        * @property currentEvent
++        * @description A reference to the current editor event
++        * @type Event
++        */
++        currentEvent: null,
++        /**
++        * @property operaEvent
++        * @private
++        * @description setTimeout holder for Opera and Image DoubleClick event..
++        * @type Object
++        */
++        operaEvent: null,
++        /**
++        * @property currentFont
++        * @description A reference to the last font selected from the Toolbar
++        * @type HTMLElement
++        */
++        currentFont: null,
++        /**
++        * @property currentElement
++        * @description A reference to the current working element in the editor
++        * @type Array
++        */
++        currentElement: null,
++        /**
++        * @property dompath
++        * @description A reference to the dompath container for writing the current working dom path to.
++        * @type HTMLElement
++        */
++        dompath: null,
++        /**
++        * @property beforeElement
++        * @description A reference to the H2 placed before the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        beforeElement: null,
++        /**
++        * @property afterElement
++        * @description A reference to the H2 placed after the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        afterElement: null,
++        /**
++        * @property invalidHTML
++        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
++        * @type Object
++        */
++        invalidHTML: {
++            form: true,
++            input: true,
++            button: true,
++            select: true,
++            link: true,
++            html: true,
++            body: true,
++            iframe: true,
++            script: true,
++            style: true,
++            textarea: true
++        },
++        /**
++        * @property toolbar
++        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
++        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
++        */
++        toolbar: null,
++        /**
++        * @private
++        * @property _contentTimer
++        * @description setTimeout holder for documentReady check
++        */
++        _contentTimer: null,
++        /**
++        * @private
++        * @property _contentTimerMax
++        * @description The number of times the loaded content should be checked before giving up. Default: 500
++        */
++        _contentTimerMax: 500,
++        /**
++        * @private
++        * @property _contentTimerCounter
++        * @description Counter to check the number of times the body is polled for before giving up
++        * @type Number
++        */
++        _contentTimerCounter: 0,
++        /**
++        * @private
++        * @property _disabled
++        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
++        * @type Array
++        */
++        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
++        /**
++        * @private
++        * @property _alwaysDisabled
++        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
++        * @type Object
++        */
++        _alwaysDisabled: { undo: true, redo: true },
++        /**
++        * @private
++        * @property _alwaysEnabled
++        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
++        * @type Object
++        */
++        _alwaysEnabled: { },
++        /**
++        * @private
++        * @property _semantic
++        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
++        * @type Object
++        */
++        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
++        /**
++        * @private
++        * @property _tag2cmd
++        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
++        * @type Object
++        */
++        _tag2cmd: {
++            'b': 'bold',
++            'strong': 'bold',
++            'i': 'italic',
++            'em': 'italic',
++            'u': 'underline',
++            'sup': 'superscript',
++            'sub': 'subscript',
++            'img': 'insertimage',
++            'a' : 'createlink',
++            'ul' : 'insertunorderedlist',
++            'ol' : 'insertorderedlist'
++        },
++
++        /**
++        * @private _createIframe
++        * @description Creates the DOM and YUI Element for the iFrame editor area.
++        * @param {String} id The string ID to prefix the iframe with
++        * @return {Object} iFrame object
++        */
++        _createIframe: function() {
++            var ifrmDom = document.createElement('iframe');
++            ifrmDom.id = this.get('id') + '_editor';
++            var config = {
++                border: '0',
++                frameBorder: '0',
++                marginWidth: '0',
++                marginHeight: '0',
++                leftMargin: '0',
++                topMargin: '0',
++                allowTransparency: 'true',
++                width: '100%'
++            };
++            if (this.get('autoHeight')) {
++                config.scrolling = 'no';
++            }
++            for (var i in config) {
++                if (Lang.hasOwnProperty(config, i)) {
++                    ifrmDom.setAttribute(i, config[i]);
++                }
++            }
++            var isrc = 'javascript:;';
++            if (this.browser.ie) {
++                //isrc = 'about:blank';
++                //TODO - Check this, I have changed it before..
++                isrc = 'javascript:false;';
++            }
++            ifrmDom.setAttribute('src', isrc);
++            var ifrm = new YAHOO.util.Element(ifrmDom);
++            ifrm.setStyle('visibility', 'hidden');
++            return ifrm;
++        },
++        /**
++        * @private _isElement
++        * @description Checks to see if an Element reference is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return {Boolean}
++        */
++        _isElement: function(el, tag) {
++            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
++                return true;
++            }
++            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private _hasParent
++        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return HTMLElement
++        */
++        _hasParent: function(el, tag) {
++            if (!el || !el.parentNode) {
++                return false;
++            }
++            
++            while (el.parentNode) {
++                if (this._isElement(el, tag)) {
++                    return el;
++                }
++                if (el.parentNode) {
++                    el = el.parentNode;
++                } else {
++                    return false;
++                }
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _getDoc
++        * @description Get the Document of the IFRAME
++        * @return {Object}
++        */
++        _getDoc: function() {
++            var value = false;
++            try {
++                if (this.get('iframe').get('element').contentWindow.document) {
++                    value = this.get('iframe').get('element').contentWindow.document;
++                    return value;
++                }
++            } catch (e) {
++                return false;
++            }
++        },
++        /**
++        * @private
++        * @method _getWindow
++        * @description Get the Window of the IFRAME
++        * @return {Object}
++        */
++        _getWindow: function() {
++            return this.get('iframe').get('element').contentWindow;
++        },
++        /**
++        * @method focus
++        * @description Attempt to set the focus of the iframes window.
++        */
++        focus: function() {
++            this._getWindow().focus();
++        },
++        /**
++        * @private
++        * @depreciated - This should not be used, moved to this.focus();
++        * @method _focusWindow
++        * @description Attempt to set the focus of the iframes window.
++        */
++        _focusWindow: function() {
++            YAHOO.log('_focusWindow: depreciated in favor of this.focus()', 'warn', 'Editor');
++            this.focus();
++        },
++        /**
++        * @private
++        * @method _hasSelection
++        * @description Determines if there is a selection in the editor document.
++        * @return {Boolean}
++        */
++        _hasSelection: function() {
++            var sel = this._getSelection();
++            var range = this._getRange();
++            var hasSel = false;
++
++            if (!sel || !range) {
++                return hasSel;
++            }
++
++            //Internet Explorer
++            if (this.browser.ie || this.browser.opera) {
++                if (range.text) {
++                    hasSel = true;
++                }
++                if (range.html) {
++                    hasSel = true;
++                }
++            } else {
++                if (this.browser.webkit) {
++                    if (sel+'' !== '') {
++                        hasSel = true;
++                    }
++                } else {
++                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
++                        hasSel = true;
++                    }
++                }
++            }
++            return hasSel;
++        },
++        /**
++        * @private
++        * @method _getSelection
++        * @description Handles the different selection objects across the A-Grade list.
++        * @return {Object} Selection Object
++        */
++        _getSelection: function() {
++            var _sel = null;
++            if (this._getDoc() && this._getWindow()) {
++                if (this._getDoc().selection) {
++                    _sel = this._getDoc().selection;
++                } else {
++                    _sel = this._getWindow().getSelection();
++                }
++                //Handle Safari's lack of Selection Object
++                if (this.browser.webkit) {
++                    if (_sel.baseNode) {
++                            this._selection = {};
++                            this._selection.baseNode = _sel.baseNode;
++                            this._selection.baseOffset = _sel.baseOffset;
++                            this._selection.extentNode = _sel.extentNode;
++                            this._selection.extentOffset = _sel.extentOffset;
++                    } else if (this._selection !== null) {
++                        _sel = this._getWindow().getSelection();
++                        _sel.setBaseAndExtent(
++                            this._selection.baseNode,
++                            this._selection.baseOffset,
++                            this._selection.extentNode,
++                            this._selection.extentOffset);
++                        this._selection = null;
++                    }
++                }
++            }
++            return _sel;
++        },
++        /**
++        * @private
++        * @method _selectNode
++        * @description Places the highlight around a given node
++        * @param {HTMLElement} node The node to select
++        */
++        _selectNode: function(node, collapse) {
++            if (!node) {
++                return false;
++            }
++            var sel = this._getSelection(),
++                range = null;
++
++            if (this.browser.ie) {
++                try { //IE freaks out here sometimes..
++                    range = this._getDoc().body.createTextRange();
++                    range.moveToElementText(node);
++                    range.select();
++                } catch (e) {
++                    YAHOO.log('IE failed to select element: ' + node.tagName, 'warn', 'SimpleEditor');
++                }
++            } else if (this.browser.webkit) {
++                if (collapse) {
++				    sel.setBaseAndExtent(node, 1, node, node.innerText.length);
++                } else {
++				    sel.setBaseAndExtent(node, 0, node, node.innerText.length);
++                }
++            } else if (this.browser.opera) {
++                sel = this._getWindow().getSelection();
++                range = this._getDoc().createRange();
++                range.selectNode(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            } else {
++                range = this._getDoc().createRange();
++                range.selectNodeContents(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            }
++            //TODO - Check Performance
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _getRange
++        * @description Handles the different range objects across the A-Grade list.
++        * @return {Object} Range Object
++        */
++        _getRange: function() {
++            var sel = this._getSelection();
++
++            if (sel === null) {
++                return null;
++            }
++
++            if (this.browser.webkit && !sel.getRangeAt) {
++                var _range = this._getDoc().createRange();
++                try {
++                    _range.setStart(sel.anchorNode, sel.anchorOffset);
++                    _range.setEnd(sel.focusNode, sel.focusOffset);
++                } catch (e) {
++                    _range = this._getWindow().getSelection()+'';
++                }
++                return _range;
++            }
++
++            if (this.browser.ie || this.browser.opera) {
++                try {
++                    return sel.createRange();
++                } catch (e2) {
++                    return null;
++                }
++            }
++
++            if (sel.rangeCount > 0) {
++                return sel.getRangeAt(0);
++            }
++            return null;
++        },
++        /**
++        * @private
++        * @method _setDesignMode
++        * @description Sets the designMode property of the iFrame document's body.
++        * @param {String} state This should be either on or off
++        */
++        _setDesignMode: function(state) {
++            if (this.get('setDesignMode')) {
++                try {
++                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
++                } catch(e) { }
++            }
++        },
++        /**
++        * @private
++        * @method _toggleDesignMode
++        * @description Toggles the designMode property of the iFrame document on and off.
++        * @return {String} The state that it was set to.
++        */
++        _toggleDesignMode: function() {
++            YAHOO.log('It is not recommended to use this method and it will be depreciated.', 'warn', 'SimpleEditor');
++            var _dMode = this._getDoc().designMode,
++                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
++            this._setDesignMode(_state);
++            return _state;
++        },
++        /**
++        * @private
++        * @property _focused
++        * @description Holder for trapping focus/blur state and prevent double events
++        * @type Boolean
++        */
++        _focused: null,
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
++        * @param {Event} e The DOM Event
++        */
++        _handleFocus: function(e) {
++            if (!this._focused) {
++                //YAHOO.log('Editor Window Focused', 'info', 'SimpleEditor');
++                this._focused = true;
++                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _handleBlur
++        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
++        * @param {Event} e The DOM Event
++        */
++        _handleBlur: function(e) {
++            if (this._focused) {
++                //YAHOO.log('Editor Window Blurred', 'info', 'SimpleEditor');
++                this._focused = false;
++                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _initEditorEvents
++        * @description This method sets up the listeners on the Editors document.
++        */
++        _initEditorEvents: function() {
++            //Setup Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.on(doc, 'click', this._handleClick, this, true);
++            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
++            /* TODO -- Everyone but Opera works here..
++            Event.on(doc, 'paste', function() {
++                YAHOO.log('PASTE', 'info', 'SimpleEditor');
++            }, this, true);
++            */
++ 
++            //Focus and blur..
++            Event.on(win, 'focus', this._handleFocus, this, true);
++            Event.on(win, 'blur', this._handleBlur, this, true);
++        },
++        /**
++        * @private
++        * @method _removeEditorEvents
++        * @description This method removes the listeners on the Editors document (for disabling).
++        */
++        _removeEditorEvents: function() {
++            //Remove Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.removeListener(doc, 'click', this._handleClick, this, true);
++            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
++
++            //Focus and blur..
++            Event.removeListener(win, 'focus', this._handleFocus, this, true);
++            Event.removeListener(win, 'blur', this._handleBlur, this, true);
++        },
++        _fixWebkitDivs: function() {
++            if (this.browser.webkit) {
++                var divs = this._getDoc().body.getElementsByTagName('div');
++                Dom.addClass(divs, 'yui-wk-div');
++            }
++        },
++        /**
++        * @private
++        * @method _initEditor
++        * @param {Boolean} raw Don't add events.
++        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
++        */
++        _initEditor: function(raw) {
++            if (this._editorInit) {
++                return;
++            }
++            this._editorInit = true;
++            if (this.browser.ie) {
++                this._getDoc().body.style.margin = '0';
++            }
++            if (!this.get('disabled')) {
++                this._setDesignMode('on');
++                this._contentTimerCounter = 0;
++            }
++            if (!this._getDoc().body) {
++                YAHOO.log('Body is null, check again', 'error', 'SimpleEditor');
++                this._contentTimerCounter = 0;
++                this._editorInit = false;
++                this._checkLoaded();
++                return false;
++            }
++            
++            YAHOO.log('editorLoaded', 'info', 'SimpleEditor');
++            if (!raw) {
++                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
++            }
++            if (!this.get('disabled')) {
++                this._initEditorEvents();
++                this.toolbar.set('disabled', false);
++            }
++
++            if (raw) {
++                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
++            } else {
++                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
++            }
++            this._fixWebkitDivs();
++            if (this.get('dompath')) {
++                YAHOO.log('Delayed DomPath write', 'info', 'SimpleEditor');
++                var self = this;
++                setTimeout(function() {
++                    self._writeDomPath.call(self);
++                    self._setupResize.call(self);
++                }, 150);
++            }
++            var br = [];
++            for (var i in this.browser) {
++                if (this.browser[i]) {
++                    br.push(i);
++                }
++            }
++            if (this.get('ptags')) {
++                br.push('ptags');
++            }
++            Dom.addClass(this._getDoc().body, br.join(' '));
++            this.nodeChange(true);
++        },
++        /**
++        * @private
++        * @method _checkLoaded
++        * @param {Boolean} raw Don't add events.
++        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
++        */
++        _checkLoaded: function(raw) {
++            this._editorInit = false;
++            this._contentTimerCounter++;
++            if (this._contentTimer) {
++                clearTimeout(this._contentTimer);
++            }
++            if (this._contentTimerCounter > this._contentTimerMax) {
++                YAHOO.log('ERROR: Body Did Not load', 'error', 'SimpleEditor');
++                return false;
++            }
++            var init = false;
++            try {
++                if (this._getDoc() && this._getDoc().body) {
++                    if (this.browser.ie) {
++                        if (this._getDoc().body.readyState == 'complete') {
++                            init = true;
++                        }
++                    } else {
++                        if (this._getDoc().body._rteLoaded === true) {
++                            init = true;
++                        }
++                    }
++                }
++            } catch (e) {
++                init = false;
++                YAHOO.log('checking body (e)' + e, 'error', 'SimpleEditor');
++            }
++
++            if (init === true) {
++                //The onload event has fired, clean up after ourselves and fire the _initEditor method
++                YAHOO.log('Firing _initEditor', 'info', 'SimpleEditor');
++                this._initEditor(raw);
++            } else {
++                var self = this;
++                this._contentTimer = setTimeout(function() {
++                    self._checkLoaded.call(self, raw);
++                }, 20);
++            }
++        },
++        /**
++        * @private
++        * @method _setInitialContent
++        * @param {Boolean} raw Don't add events.
++        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
++        */
++        _setInitialContent: function(raw) {
++            YAHOO.log('Populating editor body with contents of the text area', 'info', 'SimpleEditor');
++
++            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
++                doc = null;
++
++            if (value === '') {
++                value = '<br>';
++            }
++
++            var html = Lang.substitute(this.get('html'), {
++                TITLE: this.STR_TITLE,
++                CONTENT: this._cleanIncomingHTML(value),
++                CSS: this.get('css'),
++                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
++                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
++            }),
++            check = true;
++
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++
++            if (document.compatMode != 'BackCompat') {
++                YAHOO.log('Adding Doctype to editable area', 'info', 'SimpleEditor');
++                html = this._docType + "\n" + html;
++            } else {
++                YAHOO.log('DocType skipped because we are in BackCompat Mode.', 'warn', 'SimpleEditor');
++            }
++
++            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
++                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
++                try {
++                    //Adobe AIR Code
++                    if (this.browser.air) {
++                        doc = this._getDoc().implementation.createHTMLDocument();
++                        var origDoc = this._getDoc();
++                        origDoc.open();
++                        origDoc.close();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
++                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
++                        origDoc.body._rteLoaded = true;
++                    } else {
++                        doc = this._getDoc();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                    }
++                } catch (e) {
++                    YAHOO.log('Setting doc failed.. (_setInitialContent)', 'error', 'SimpleEditor');
++                    //Safari will only be here if we are hidden
++                    check = false;
++                }
++            } else {
++                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
++                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
++            }
++            this.get('iframe').setStyle('visibility', '');
++            if (check) {
++                this._checkLoaded(raw);
++            }            
++        },
++        /**
++        * @private
++        * @method _setMarkupType
++        * @param {String} action The action to take. Possible values are: css, default or semantic
++        * @description This method will turn on/off the useCSS execCommand.
++        */
++        _setMarkupType: function(action) {
++            switch (this.get('markup')) {
++                case 'css':
++                    this._setEditorStyle(true);
++                    break;
++                case 'default':
++                    this._setEditorStyle(false);
++                    break;
++                case 'semantic':
++                case 'xhtml':
++                    if (this._semantic[action]) {
++                        this._setEditorStyle(false);
++                    } else {
++                        this._setEditorStyle(true);
++                    }
++                    break;
++            }
++        },
++        /**
++        * Set the editor to use CSS instead of HTML
++        * @param {Booleen} stat True/False
++        */
++        _setEditorStyle: function(stat) {
++            try {
++                this._getDoc().execCommand('useCSS', false, !stat);
++            } catch (ex) {
++            }
++        },
++        /**
++        * @private
++        * @method _getSelectedElement
++        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
++        * @return {HTMLElement} The currently selected element.
++        */
++        _getSelectedElement: function() {
++            var doc = this._getDoc(),
++                range = null,
++                sel = null,
++                elm = null,
++                check = true;
++
++            if (this.browser.ie) {
++                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
++                range = this._getRange();
++                if (range) {
++                    elm = range.item ? range.item(0) : range.parentElement();
++                    if (this._hasSelection()) {
++                        //TODO
++                        //WTF.. Why can't I get an element reference here?!??!
++                    }
++                    if (elm === doc.body) {
++                        elm = null;
++                    }
++                }
++                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
++                    elm = Event.getTarget(this.currentEvent);
++                }
++            } else {
++                sel = this._getSelection();
++                range = this._getRange();
++
++                if (!sel || !range) {
++                    return null;
++                }
++                //TODO
++                if (!this._hasSelection() && this.browser.webkit3) {
++                    //check = false;
++                }
++                if (this.browser.gecko) {
++                    //Added in 2.6.0
++                    if (range.startContainer) {
++                        if (range.startContainer.nodeType === 3) {
++                            elm = range.startContainer.parentNode;
++                        } else if (range.startContainer.nodeType === 1) {
++                            elm = range.startContainer;
++                        }
++                        //Added in 2.7.0
++                        if (this.currentEvent) {
++                            var tar = Event.getTarget(this.currentEvent);
++                            if (!this._isElement(tar, 'html')) {
++                                if (elm !== tar) {
++                                    elm = tar;
++                                }
++                            }
++                        }
++                    }
++                }
++                
++                if (check) {
++                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
++                        if (sel.anchorNode.parentNode) { //next check parentNode
++                            elm = sel.anchorNode.parentNode;
++                        }
++                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
++                            elm = sel.anchorNode.nextSibling;
++                        }
++                    }
++                    if (this._isElement(elm, 'br')) {
++                        elm = null;
++                    }
++                    if (!elm) {
++                        elm = range.commonAncestorContainer;
++                        if (!range.collapsed) {
++                            if (range.startContainer == range.endContainer) {
++                                if (range.startOffset - range.endOffset < 2) {
++                                    if (range.startContainer.hasChildNodes()) {
++                                        elm = range.startContainer.childNodes[range.startOffset];
++                                    }
++                                }
++                            }
++                        }
++                    }
++               }
++            }
++            
++            if (this.currentEvent !== null) {
++                try {
++                    switch (this.currentEvent.type) {
++                        case 'click':
++                        case 'mousedown':
++                        case 'mouseup':
++                            if (this.browser.webkit) {
++                                elm = Event.getTarget(this.currentEvent);
++                            }
++                            break;
++                        default:
++                            //Do nothing
++                            break;
++                    }
++                } catch (e) {
++                    YAHOO.log('Firefox 1.5 errors here: ' + e, 'error', 'SimpleEditor');
++                }
++            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
++                //TODO is this still needed?
++                //elm = this.currentElement[0];
++            }
++
++
++            if (this.browser.opera || this.browser.webkit) {
++                if (this.currentEvent && !elm) {
++                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
++                }
++            }
++            if (!elm || !elm.tagName) {
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'html')) {
++                //Safari sometimes gives us the HTML node back..
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'body')) {
++                //make sure that body means this body not the parent..
++                elm = doc.body;
++            }
++            if (elm && !elm.parentNode) { //Not in document
++                elm = doc.body;
++            }
++            if (elm === undefined) {
++                elm = null;
++            }
++            return elm;
++        },
++        /**
++        * @private
++        * @method _getDomPath
++        * @description This method will attempt to build the DOM path from the currently selected element.
++        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
++        * @return {Array} An array of node references that will create the DOM Path.
++        */
++        _getDomPath: function(el) {
++            if (!el) {
++			    el = this._getSelectedElement();
++            }
++			var domPath = [];
++            while (el !== null) {
++                if (el.ownerDocument != this._getDoc()) {
++                    el = null;
++                    break;
++                }
++                //Check to see if we get el.nodeName and nodeType
++                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
++                    domPath[domPath.length] = el;
++                }
++
++                if (this._isElement(el, 'body')) {
++                    break;
++                }
++
++                el = el.parentNode;
++            }
++            if (domPath.length === 0) {
++                if (this._getDoc() && this._getDoc().body) {
++                    domPath[0] = this._getDoc().body;
++                }
++            }
++            return domPath.reverse();
++        },
++        /**
++        * @private
++        * @method _writeDomPath
++        * @description Write the current DOM path out to the dompath container below the editor.
++        */
++        _writeDomPath: function() { 
++            var path = this._getDomPath(),
++                pathArr = [],
++                classPath = '',
++                pathStr = '';
++
++            for (var i = 0; i < path.length; i++) {
++                var tag = path[i].tagName.toLowerCase();
++                if ((tag == 'ol') && (path[i].type)) {
++                    tag += ':' + path[i].type;
++                }
++                if (Dom.hasClass(path[i], 'yui-tag')) {
++                    tag = path[i].getAttribute('tag');
++                }
++                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
++                    switch (tag) {
++                        case 'b': tag = 'strong'; break;
++                        case 'i': tag = 'em'; break;
++                    }
++                }
++                if (!Dom.hasClass(path[i], 'yui-non')) {
++                    if (Dom.hasClass(path[i], 'yui-tag')) {
++                        pathStr = tag;
++                    } else {
++                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
++                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
++                            classPath = '';
++                        }
++                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
++                    }
++                    switch (tag) {
++                        case 'body':
++                            pathStr = 'body';
++                            break;
++                        case 'a':
++                            if (path[i].getAttribute('href', 2)) {
++                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
++                            }
++                            break;
++                        case 'img':
++                            var h = path[i].height;
++                            var w = path[i].width;
++                            if (path[i].style.height) {
++                                h = parseInt(path[i].style.height, 10);
++                            }
++                            if (path[i].style.width) {
++                                w = parseInt(path[i].style.width, 10);
++                            }
++                            pathStr += '(' + w + 'x' + h + ')';
++                        break;
++                    }
++
++                    if (pathStr.length > 10) {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
++                    } else {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
++                    }
++                    pathArr[pathArr.length] = pathStr;
++                }
++            }
++            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
++            //Prevent flickering
++            if (this.dompath.innerHTML != str) {
++                this.dompath.innerHTML = str;
++            }
++        },
++        /**
++        * @private
++        * @method _fixNodes
++        * @description Fix href and imgs as well as remove invalid HTML.
++        */
++        _fixNodes: function() {
++            try {
++                var doc = this._getDoc(),
++                    els = [];
++
++                for (var v in this.invalidHTML) {
++                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                        if (v.toLowerCase() != 'span') {
++                            var tags = doc.body.getElementsByTagName(v);
++                            if (tags.length) {
++                                for (var i = 0; i < tags.length; i++) {
++                                    els.push(tags[i]);
++                                }
++                            }
++                        }
++                    }
++                }
++                for (var h = 0; h < els.length; h++) {
++                    if (els[h].parentNode) {
++                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
++                            this._swapEl(els[h], 'span', function(el) {
++                                el.className = 'yui-non';
++                            });
++                        } else {
++                            els[h].parentNode.removeChild(els[h]);
++                        }
++                    }
++                }
++                var imgs = this._getDoc().getElementsByTagName('img');
++                Dom.addClass(imgs, 'yui-img');
++            } catch(e) {}
++        },
++        /**
++        * @private
++        * @method _isNonEditable
++        * @param Event ev The Dom event being checked
++        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
++        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
++        * disable and enable the Editor's toolbar based on the noedit state.
++        * @return Boolean
++        */
++        _isNonEditable: function(ev) {
++            if (this.get('allowNoEdit')) {
++                var el = Event.getTarget(ev);
++                if (this._isElement(el, 'html')) {
++                    el = null;
++                }
++                var path = this._getDomPath(el);
++                for (var i = (path.length - 1); i > -1; i--) {
++                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
++                        //if (this.toolbar.get('disabled') === false) {
++                        //    this.toolbar.set('disabled', true);
++                        //}
++                        try {
++                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
++                        } catch (e) {}
++                        this.nodeChange();
++                        Event.stopEvent(ev);
++                        YAHOO.log('CLASS_NOEDIT found in DOM Path, stopping event', 'info', 'SimpleEditor');
++                        return true;
++                    }
++                }
++                //if (this.toolbar.get('disabled') === true) {
++                    //Should only happen once..
++                    //this.toolbar.set('disabled', false);
++                    try {
++                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
++                    } catch (e2) {}
++                //}
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _setCurrentEvent
++        * @param {Event} ev The event to cache
++        * @description Sets the current event property
++        */
++        _setCurrentEvent: function(ev) {
++            this.currentEvent = ev;
++        },
++        /**
++        * @private
++        * @method _handleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all click events inside the iFrame document.
++        */
++        _handleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.browser.webkit) {
++                var tar =Event.getTarget(ev);
++                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
++                    Event.stopEvent(ev);
++                    this.nodeChange();
++                }
++            } else {
++                this.nodeChange();
++            }
++            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mouseup events inside the iFrame document.
++        */
++        _handleMouseUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            //Don't set current event for mouseup.
++            //It get's fired after a menu is closed and gives up a bogus event to work with
++            //this._setCurrentEvent(ev);
++            var self = this;
++            if (this.browser.opera) {
++                /*
++                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
++                * @browser Opera
++                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
++                */
++                var sel = Event.getTarget(ev);
++                if (this._isElement(sel, 'img')) {
++                    this.nodeChange();
++                    if (this.operaEvent) {
++                        clearTimeout(this.operaEvent);
++                        this.operaEvent = null;
++                        this._handleDoubleClick(ev);
++                    } else {
++                        this.operaEvent = window.setTimeout(function() {
++                            self.operaEvent = false;
++                        }, 700);
++                    }
++                }
++            }
++            //This will stop Safari from selecting the entire document if you select all the text in the editor
++            if (this.browser.webkit || this.browser.opera) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++            }
++            this.nodeChange();
++            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mousedown events inside the iFrame document.
++        */
++        _handleMouseDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this.browser.webkit && this._hasSelection()) {
++                var _sel = this._getSelection();
++                if (!this.browser.webkit3) {
++                    _sel.collapse(true);
++                } else {
++                    _sel.collapseToStart();
++                }
++            }
++            if (this.browser.webkit && this._lastImage) {
++                Dom.removeClass(this._lastImage, 'selected');
++                this._lastImage = null;
++            }
++            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                    if (this._isElement(sel, 'img')) {
++                        Dom.addClass(sel, 'selected');
++                        this._lastImage = sel;
++                    }
++                }
++                if (this.currentWindow) {
++                    this.closeWindow();
++                }
++                this.nodeChange();
++            }
++            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleDoubleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all doubleclick events inside the iFrame document.
++        */
++        _handleDoubleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this._isElement(sel, 'img')) {
++                this.currentElement[0] = sel;
++                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
++                this.currentElement[0] = this._hasParent(sel, 'a');
++                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            }
++            this.nodeChange();
++            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keyup events inside the iFrame document.
++        */
++        _handleKeyUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._storeUndo();
++            this._setCurrentEvent(ev);
++            switch (ev.keyCode) {
++                case this._keyMap.SELECT_ALL.key:
++                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
++                        this.nodeChange();
++                    }
++                    break;
++                case 32: //Space Bar
++                case 35: //End
++                case 36: //Home
++                case 37: //Left Arrow
++                case 38: //Up Arrow
++                case 39: //Right Arrow
++                case 40: //Down Arrow
++                case 46: //Forward Delete
++                case 8: //Delete
++                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
++                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
++                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
++                            this.closeWindow();
++                        }
++                    } else {
++                        if (!this.browser.ie) {
++                            if (this._nodeChangeTimer) {
++                                clearTimeout(this._nodeChangeTimer);
++                            }
++                            var self = this;
++                            this._nodeChangeTimer = setTimeout(function() {
++                                self._nodeChangeTimer = null;
++                                self.nodeChange.call(self);
++                            }, 100);
++                        } else {
++                            this.nodeChange();
++                        }
++                        this.editorDirty = true;
++                    }
++                    break;
++            }
++            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyPress
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keypress events inside the iFrame document.
++        */
++        _handleKeyPress: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++
++            if (this.get('allowNoEdit')) {
++                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
++                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
++                    //Forward delete key
++                    YAHOO.log('allowNoEdit is set, forward delete key has been disabled', 'warn', 'SimpleEditor');
++                    Event.stopEvent(ev);
++                }
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            this._storeUndo();
++            if (this.browser.opera) {
++                if (ev.keyCode === 13) {
++                    var tar = this._getSelectedElement();
++                    if (!this._isElement(tar, 'li')) {
++                        this.execCommand('inserthtml', '<br>');
++                        Event.stopEvent(ev);
++                    }
++                }
++            }
++            if (this.browser.webkit) {
++                if (!this.browser.webkit3) {
++                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
++                        //This is CMD + z (for undo)
++                        if (this._hasParent(this._getSelectedElement(), 'li')) {
++                            YAHOO.log('We are in an LI and we found CMD + z, stopping the event', 'warn', 'SimpleEditor');
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++                this._listFix(ev);
++            }
++            this._fixListDupIds();
++            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keydown events inside the iFrame document.
++        */
++        _handleKeyDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            var tar = null, _range = null;
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            var doExec = false,
++                action = null,
++                value = null,
++                exec = false;
++
++            //YAHOO.log('keyCode: ' + ev.keyCode, 'info', 'SimpleEditor');
++
++            switch (ev.keyCode) {
++                case this._keyMap.FOCUS_TOOLBAR.key:
++                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
++                        var h = this.toolbar.getElementsByTagName('h2')[0];
++                        if (h && h.firstChild) {
++                            h.firstChild.focus();
++                        }
++                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
++                        //Focus After Element - Esc
++                        this.afterElement.focus();
++                    }
++                    Event.stopEvent(ev);
++                    doExec = false;
++                    break;
++                //case 76: //L
++                case this._keyMap.CREATE_LINK.key: //L
++                    if (this._hasSelection()) {
++                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
++                            var makeLink = true;
++                            if (this.get('limitCommands')) {
++                                if (!this.toolbar.getButtonByValue('createlink')) {
++                                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
++                                    makeLink = false;
++                                }
++                            }
++                            if (makeLink) {
++                                this.execCommand('createlink', '');
++                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++                                doExec = false;
++                            }
++                        }
++                    }
++                    break;
++                //case 90: //Z
++                case this._keyMap.UNDO.key:
++                case this._keyMap.REDO.key:
++                    if (this._checkKey(this._keyMap.REDO, ev)) {
++                        action = 'redo';
++                        doExec = true;
++                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
++                        action = 'undo';
++                        doExec = true;
++                    }
++                    break;
++                //case 66: //B
++                case this._keyMap.BOLD.key:
++                    if (this._checkKey(this._keyMap.BOLD, ev)) {
++                        action = 'bold';
++                        doExec = true;
++                    }
++                    break;
++                case this._keyMap.FONT_SIZE_UP.key:
++                case this._keyMap.FONT_SIZE_DOWN.key:
++                    var uk = false, dk = false;
++                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
++                        uk = true;
++                    }
++                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
++                        dk = true;
++                    }
++                    if (uk || dk) {
++                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
++                            label = parseInt(fs_button.get('label'), 10),
++                            newValue = (label + 1);
++
++                        if (dk) {
++                            newValue = (label - 1);
++                        }
++
++                        action = 'fontsize';
++                        value = newValue + 'px';
++                        doExec = true;
++                    }
++                    break;
++                //case 73: //I
++                case this._keyMap.ITALIC.key:
++                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
++                        action = 'italic';
++                        doExec = true;
++                    }
++                    break;
++                //case 85: //U
++                case this._keyMap.UNDERLINE.key:
++                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
++                        action = 'underline';
++                        doExec = true;
++                    }
++                    break;
++                case 9:
++                    if (this.browser.ie) {
++                        //Insert a tab in Internet Explorer
++                        _range = this._getRange();
++                        tar = this._getSelectedElement();
++                        if (!this._isElement(tar, 'li')) {
++                            if (_range) {
++                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
++                                _range.collapse(false);
++                                _range.select();
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                    //Firefox 3 code
++                    if (this.browser.gecko > 1.8) {
++                        tar = this._getSelectedElement();
++                        if (this._isElement(tar, 'li')) {
++                            if (ev.shiftKey) {
++                                this._getDoc().execCommand('outdent', null, '');
++                            } else {
++                                this._getDoc().execCommand('indent', null, '');
++                            }
++                            
++                        } else if (!this._hasSelection()) {
++                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
++                        }
++                        Event.stopEvent(ev);
++                    }
++                    break;
++                case 13:
++                    var p = null, i = 0;
++                    if (this.get('ptags') && !ev.shiftKey) {
++                        if (this.browser.gecko) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this._hasParent(tar, 'p')) {
++                                    p = this._getDoc().createElement('p');
++                                    p.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(p, tar);
++                                    this._selectNode(p.firstChild);
++                                } else if (this._isElement(tar, 'body')) {
++                                    this.execCommand('insertparagraph', null);
++                                    var ps = this._getDoc().body.getElementsByTagName('p');
++                                    for (i = 0; i < ps.length; i++) {
++                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
++                                            p = this._getDoc().createElement('p');
++                                            p.innerHTML = '&nbsp;';
++                                            Dom.insertAfter(p, ps[i]);
++                                            this._selectNode(p.firstChild);
++                                            ps[i].removeAttribute('_moz_dirty');
++                                        }
++                                    }
++                                } else {
++                                    YAHOO.log('Something went wrong with paragraphs, please file a bug!!', 'error', 'SimpleEditor');
++                                    doExec = true;
++                                    action = 'insertparagraph';
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                this.execCommand('insertparagraph', null);
++                                var divs = this._getDoc().body.getElementsByTagName('div');
++                                for (i = 0; i < divs.length; i++) {
++                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
++                                        Dom.addClass(divs[i], 'yui-wk-p');
++                                    }
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    } else {
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this.browser.webkit4) {
++                                    this.execCommand('insertlinebreak');
++                                } else {
++                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
++                                    var holder = this._getDoc().getElementById('yui-br'),
++                                        br = this._getDoc().createElement('br'),
++                                        caret = this._getDoc().createElement('span');
++
++                                    holder.parentNode.replaceChild(br, holder);
++                                    caret.className = 'yui-non';
++                                    caret.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(caret, br);
++                                    this._selectNode(caret);
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.ie) {
++                            YAHOO.log('Stopping P tags', 'info', 'SimpleEditor');
++                            //Insert a <br> instead of a <p></p> in Internet Explorer
++                            _range = this._getRange();
++                            tar = this._getSelectedElement();
++                            if (!this._isElement(tar, 'li')) {
++                                if (_range) {
++                                    _range.pasteHTML('<br>');
++                                    _range.collapse(false);
++                                    _range.select();
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    }
++                    break;
++            }
++            if (this.browser.ie) {
++                this._listFix(ev);
++            }
++            if (doExec && action) {
++                this.execCommand(action, value);
++                Event.stopEvent(ev);
++                this.nodeChange();
++            }
++            this._storeUndo();
++            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @property _fixListRunning
++        * @type Boolean
++        * @description Keeps more than one _fixListDupIds from running at the same time.
++        */
++        _fixListRunning: null,
++        /**
++        * @private
++        * @method _fixListDupIds
++        * @description Some browsers will duplicate the id of an LI when created in designMode.
++        * This method will fix the duplicate id issue. However it will only preserve the first element 
++        * in the document list with the unique id. 
++        */
++        _fixListDupIds: function() {
++            if (this._fixListRunning) {
++                return false;
++            }
++            if (this._getDoc()) {
++                this._fixListRunning = true;
++                var lis = this._getDoc().body.getElementsByTagName('li'),
++                    i = 0, ids = {};
++                for (i = 0; i < lis.length; i++) {
++                    if (lis[i].id) {
++                        if (ids[lis[i].id]) {
++                            lis[i].id = '';
++                        }
++                        ids[lis[i].id] = true;
++                    }
++                }
++                this._fixListRunning = false;
++            }
++        },
++        /**
++        * @private
++        * @method _listFix
++        * @param {Event} ev The event we are working on.
++        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
++        */
++        _listFix: function(ev) {
++            //YAHOO.log('Lists Fix (' + ev.keyCode + ')', 'info', 'SimpleEditor');
++            var testLi = null, par = null, preContent = false, range = null;
++            //Enter Key
++            if (this.browser.webkit) {
++                if (ev.keyCode && (ev.keyCode == 13)) {
++                    if (this._hasParent(this._getSelectedElement(), 'li')) {
++                        var tar = this._hasParent(this._getSelectedElement(), 'li');
++                        if (tar.previousSibling) {
++                            if (tar.firstChild && (tar.firstChild.length == 1)) {
++                                this._selectNode(tar);
++                            }
++                        }
++                    }
++                }
++            }
++            //Shift + Tab Key
++            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    testLi = this._hasParent(testLi, 'li');
++                    YAHOO.log('We have a SHIFT tab in an LI, reverse it..', 'info', 'SimpleEditor');
++                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
++                        YAHOO.log('We have a double parent, move up a level', 'info', 'SimpleEditor');
++                        par = this._hasParent(testLi, 'ul');
++                        if (!par) {
++                            par = this._hasParent(testLi, 'ol');
++                        }
++                        //YAHOO.log(par.previousSibling + ' :: ' + par.previousSibling.innerHTML);
++                        if (this._isElement(par.previousSibling, 'li')) {
++                            par.removeChild(testLi);
++                            par.parentNode.insertBefore(testLi, par.nextSibling);
++                            if (this.browser.ie) {
++                                range = this._getDoc().body.createTextRange();
++                                range.moveToElementText(testLi);
++                                range.collapse(false);
++                                range.select();
++                            }
++                            if (this.browser.webkit) {
++                                this._selectNode(testLi.firstChild);
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++            }
++            //Tab Key
++            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
++                YAHOO.log('List Fix - Tab', 'info', 'SimpleEditor');
++                var preLi = this._getSelectedElement();
++                if (this._hasParent(preLi, 'li')) {
++                    preContent = this._hasParent(preLi, 'li').innerHTML;
++                }
++                //YAHOO.log('preLI: ' + preLi.tagName + ' :: ' + preLi.innerHTML);
++                if (this.browser.webkit) {
++                    this._getDoc().execCommand('inserttext', false, '\t');
++                }
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    YAHOO.log('We have a tab in an LI', 'info', 'SimpleEditor');
++                    par = this._hasParent(testLi, 'li');
++                    YAHOO.log('parLI: ' + par.tagName + ' :: ' + par.innerHTML);
++                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
++                    if (this.browser.webkit) {
++                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
++                        //Remove the span element that Safari puts in
++                        if (span[0]) {
++                            par.removeChild(span[0]);
++                            par.innerHTML = Lang.trim(par.innerHTML);
++                            //Put the HTML from the LI into this new LI
++                            if (preContent) {
++                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
++                            } else {
++                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
++                            }
++                        }
++                    } else {
++                        if (preContent) {
++                            par.innerHTML = preContent + '&nbsp;';
++                        } else {
++                            par.innerHTML = '&nbsp;';
++                        }
++                    }
++
++                    par.parentNode.replaceChild(newUl, par);
++                    newUl.appendChild(par);
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
++                        if (!this.browser.webkit3) {
++                            par.parentNode.parentNode.style.display = 'list-item';
++                            setTimeout(function() {
++                                par.parentNode.parentNode.style.display = 'block';
++                            }, 1);
++                        }
++                    } else if (this.browser.ie) {
++                        range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(par);
++                        range.collapse(false);
++                        range.select();
++                    } else {
++                        this._selectNode(par);
++                    }
++                    Event.stopEvent(ev);
++                }
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++                this.nodeChange();
++            }
++        },
++        /**
++        * @method nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
++        */
++        nodeChange: function(force) {
++            var NCself = this;
++            this._storeUndo();
++            if (this.get('nodeChangeDelay')) {
++                this._nodeChangeDelayTimer = window.setTimeout(function() {
++                    NCself._nodeChangeDelayTimer = null;
++                    NCself._nodeChange.apply(NCself, arguments);
++                }, 0);
++            } else {
++                this._nodeChange();
++            }
++        },
++        /**
++        * @private
++        * @method _nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Fired from nodeChange in a setTimeout.
++        */
++        _nodeChange: function(force) {
++            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
++                thisNodeChange = Math.round(new Date().getTime() / 1000),
++                self = this;
++
++            if (force === true) {
++                this._lastNodeChange = 0;
++            }
++            
++            if ((this._lastNodeChange + threshold) < thisNodeChange) {
++                if (this._fixNodesTimer === null) {
++                    this._fixNodesTimer = window.setTimeout(function() {
++                        self._fixNodes.call(self);
++                        self._fixNodesTimer = null;
++                    }, 0);
++                }
++            }
++            this._lastNodeChange = thisNodeChange;
++            if (this.currentEvent) {
++                try {
++                    this._lastNodeChangeEvent = this.currentEvent.type;
++                } catch (e) {}
++            }
++
++            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
++            if (beforeNodeChange === false) {
++                return false;
++            }
++            if (this.get('dompath')) {
++                window.setTimeout(function() {
++                    self._writeDomPath.call(self);
++                }, 0);
++            }
++            //Check to see if we are disabled before continuing
++            if (!this.get('disabled')) {
++                if (this.STOP_NODE_CHANGE) {
++                    //Reset this var for next action
++                    this.STOP_NODE_CHANGE = false;
++                    return false;
++                } else {
++                    var sel = this._getSelection(),
++                        range = this._getRange(),
++                        el = this._getSelectedElement(),
++                        fn_button = this.toolbar.getButtonByValue('fontname'),
++                        fs_button = this.toolbar.getButtonByValue('fontsize'),
++                        undo_button = this.toolbar.getButtonByValue('undo'),
++                        redo_button = this.toolbar.getButtonByValue('redo');
++
++                    //Handle updating the toolbar with active buttons
++                    var _ex = {};
++                    if (this._lastButton) {
++                        _ex[this._lastButton.id] = true;
++                        //this._lastButton = null;
++                    }
++                    if (!this._isElement(el, 'body')) {
++                        if (fn_button) {
++                            _ex[fn_button.get('id')] = true;
++                        }
++                        if (fs_button) {
++                            _ex[fs_button.get('id')] = true;
++                        }
++                    }
++                    if (redo_button) {
++                        delete _ex[redo_button.get('id')];
++                    }
++                    this.toolbar.resetAllButtons(_ex);
++
++                    //Handle disabled buttons
++                    for (var d = 0; d < this._disabled.length; d++) {
++                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
++                        if (_button && _button.get) {
++                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
++                                //Skip
++                            } else {
++                                if (!this._hasSelection() && !this.get('insert')) {
++                                    switch (this._disabled[d]) {
++                                        case 'fontname':
++                                        case 'fontsize':
++                                            break;
++                                        default:
++                                            //No Selection - disable
++                                            this.toolbar.disableButton(_button);
++                                    }
++                                } else {
++                                    if (!this._alwaysDisabled[this._disabled[d]]) {
++                                        this.toolbar.enableButton(_button);
++                                    }
++                                }
++                                if (!this._alwaysEnabled[this._disabled[d]]) {
++                                    this.toolbar.deselectButton(_button);
++                                }
++                            }
++                        }
++                    }
++                    var path = this._getDomPath();
++                    var tag = null, cmd = null;
++                    for (var i = 0; i < path.length; i++) {
++                        tag = path[i].tagName.toLowerCase();
++                        if (path[i].getAttribute('tag')) {
++                            tag = path[i].getAttribute('tag').toLowerCase();
++                        }
++                        cmd = this._tag2cmd[tag];
++                        if (cmd === undefined) {
++                            cmd = [];
++                        }
++                        if (!Lang.isArray(cmd)) {
++                            cmd = [cmd];
++                        }
++
++                        //Bold and Italic styles
++                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
++                            cmd[cmd.length] = 'bold';
++                        }
++                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
++                            cmd[cmd.length] = 'italic';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
++                            cmd[cmd.length] = 'underline';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
++                            cmd[cmd.length] = 'strikethrough';
++                        }
++                        if (cmd.length > 0) {
++                            for (var j = 0; j < cmd.length; j++) {
++                                this.toolbar.selectButton(cmd[j]);
++                                this.toolbar.enableButton(cmd[j]);
++                            }
++                        }
++                        //Handle Alignment
++                        switch (path[i].style.textAlign.toLowerCase()) {
++                            case 'left':
++                            case 'right':
++                            case 'center':
++                            case 'justify':
++                                var alignType = path[i].style.textAlign.toLowerCase();
++                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
++                                    alignType = 'full';
++                                }
++                                this.toolbar.selectButton('justify' + alignType);
++                                this.toolbar.enableButton('justify' + alignType);
++                                break;
++                        }
++                    }
++                    //After for loop
++
++                    //Reset Font Family and Size to the inital configs
++                    if (fn_button) {
++                        var family = fn_button._configs.label._initialConfig.value;
++                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
++                        this._updateMenuChecked('fontname', family);
++                    }
++
++                    if (fs_button) {
++                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
++                    }
++
++                    var hd_button = this.toolbar.getButtonByValue('heading');
++                    if (hd_button) {
++                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
++                        this._updateMenuChecked('heading', 'none');
++                    }
++                    var img_button = this.toolbar.getButtonByValue('insertimage');
++                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
++                        this.toolbar.disableButton(img_button);
++                    }
++                    if (this._lastButton && this._lastButton.isSelected) {
++                        this.toolbar.deselectButton(this._lastButton.id);
++                    }
++                    this._undoNodeChange();
++                }
++            }
++
++            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
++        },
++        /**
++        * @private
++        * @method _updateMenuChecked
++        * @param {Object} button The command identifier of the button you want to check
++        * @param {String} value The value of the menu item you want to check
++        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
++        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
++        */
++        _updateMenuChecked: function(button, value, tbar) {
++            if (!tbar) {
++                tbar = this.toolbar;
++            }
++            var _button = tbar.getButtonByValue(button);
++            _button.checkValue(value);
++        },
++        /**
++        * @private
++        * @method _handleToolbarClick
++        * @param {Event} ev The event that triggered the button click
++        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
++        */
++        _handleToolbarClick: function(ev) {
++            var value = '';
++            var str = '';
++            var cmd = ev.button.value;
++            if (ev.button.menucmd) {
++                value = cmd;
++                cmd = ev.button.menucmd;
++            }
++            this._lastButton = ev.button;
++            if (this.STOP_EXEC_COMMAND) {
++                YAHOO.log('execCommand skipped because we found the STOP_EXEC_COMMAND flag set to true', 'warn', 'SimpleEditor');
++                YAHOO.log('NOEXEC::execCommand::(' + cmd + '), (' + value + ')', 'warn', 'SimpleEditor');
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            } else {
++                this.execCommand(cmd, value);
++                if (!this.browser.webkit) {
++                     var Fself = this;
++                     setTimeout(function() {
++                         Fself.focus.call(Fself);
++                     }, 5);
++                 }
++            }
++            Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _setupAfterElement
++        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
++        */
++        _setupAfterElement: function() {
++            if (!this.beforeElement) {
++                this.beforeElement = document.createElement('h2');
++                this.beforeElement.className = 'yui-editor-skipheader';
++                this.beforeElement.tabIndex = '-1';
++                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
++                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
++            }
++            if (!this.afterElement) {
++                this.afterElement = document.createElement('h2');
++                this.afterElement.className = 'yui-editor-skipheader';
++                this.afterElement.tabIndex = '-1';
++                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
++                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
++            }
++        },
++        /**
++        * @private
++        * @method _disableEditor
++        * @param {Boolean} disabled Pass true to disable, false to enable
++        * @description Creates a mask to place over the Editor.
++        */
++        _disableEditor: function(disabled) {
++            var iframe, par, html, height;
++            if (!this.get('disabled_iframe')) {
++                iframe = this._createIframe();
++                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
++                iframe.setStyle('height', '100%');
++                iframe.setStyle('display', 'none');
++                iframe.setStyle('visibility', 'visible');
++                this.set('disabled_iframe', iframe);
++                par = this.get('iframe').get('parentNode');
++                par.appendChild(iframe.get('element'));
++            }
++            if (!iframe) {
++                iframe = this.get('disabled_iframe');
++            }
++            if (disabled) {
++                this._orgIframe = this.get('iframe');
++
++                if (this.toolbar) {
++                    this.toolbar.set('disabled', true);
++                }
++
++                html = this.getEditorHTML();
++                height = this.get('iframe').get('offsetHeight');
++                iframe.setStyle('visibility', '');
++                iframe.setStyle('position', '');
++                iframe.setStyle('top', '');
++                iframe.setStyle('left', '');
++                this._orgIframe.setStyle('visibility', 'hidden');
++                this._orgIframe.setStyle('position', 'absolute');
++                this._orgIframe.setStyle('top', '-99999px');
++                this._orgIframe.setStyle('left', '-99999px');
++                this.set('iframe', iframe);
++                this._setInitialContent(true);
++                
++                if (!this._mask) {
++                    this._mask = document.createElement('DIV');
++                    Dom.addClass(this._mask, 'yui-editor-masked');
++                    if (this.browser.ie) {
++                        this._mask.style.height = height + 'px';
++                    }
++                    this.get('iframe').get('parentNode').appendChild(this._mask);
++                }
++                this.on('editorContentReloaded', function() {
++                    this._getDoc().body._rteLoaded = false;
++                    this.setEditorHTML(html);
++                    iframe.setStyle('display', 'block');
++                    this.unsubscribeAll('editorContentReloaded');
++                });
++            } else {
++                if (this._mask) {
++                    this._mask.parentNode.removeChild(this._mask);
++                    this._mask = null;
++                    if (this.toolbar) {
++                        this.toolbar.set('disabled', false);
++                    }
++                    iframe.setStyle('visibility', 'hidden');
++                    iframe.setStyle('position', 'absolute');
++                    iframe.setStyle('top', '-99999px');
++                    iframe.setStyle('left', '-99999px');
++                    this._orgIframe.setStyle('visibility', '');
++                    this._orgIframe.setStyle('position', '');
++                    this._orgIframe.setStyle('top', '');
++                    this._orgIframe.setStyle('left', '');
++                    this.set('iframe', this._orgIframe);
++
++                    this.focus();
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.nodeChange.call(self);
++                    }, 100);
++                }
++            }
++        },
++        /**
++        * @property SEP_DOMPATH
++        * @description The value to place in between the Dom path items
++        * @type String
++        */
++        SEP_DOMPATH: '<',
++        /**
++        * @property STR_LEAVE_EDITOR
++        * @description The accessibility string for the element after the iFrame
++        * @type String
++        */
++        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
++        /**
++        * @property STR_BEFORE_EDITOR
++        * @description The accessibility string for the element before the iFrame
++        * @type String
++        */
++        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
++        /**
++        * @property STR_TITLE
++        * @description The Title of the HTML document that is created in the iFrame
++        * @type String
++        */
++        STR_TITLE: 'Rich Text Area.',
++        /**
++        * @property STR_IMAGE_HERE
++        * @description The text to place in the URL textbox when using the blankimage.
++        * @type String
++        */
++        STR_IMAGE_HERE: 'Image URL Here',
++        /**
++        * @property STR_IMAGE_URL
++        * @description The label string for Image URL
++        * @type String
++        */
++        STR_IMAGE_URL: 'Image URL',        
++        /**
++        * @property STR_LINK_URL
++        * @description The label string for the Link URL.
++        * @type String
++        */
++        STR_LINK_URL: 'Link URL',
++        /**
++        * @protected
++        * @property STOP_EXEC_COMMAND
++        * @description Set to true when you want the default execCommand function to not process anything
++        * @type Boolean
++        */
++        STOP_EXEC_COMMAND: false,
++        /**
++        * @protected
++        * @property STOP_NODE_CHANGE
++        * @description Set to true when you want the default nodeChange function to not process anything
++        * @type Boolean
++        */
++        STOP_NODE_CHANGE: false,
++        /**
++        * @protected
++        * @property CLASS_NOEDIT
++        * @description CSS class applied to elements that are not editable.
++        * @type String
++        */
++        CLASS_NOEDIT: 'yui-noedit',
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the editors container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-editor-container',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE
++        * @description Default CSS class to apply to the editors iframe element
++        * @type String
++        */
++        CLASS_EDITABLE: 'yui-editor-editable',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE_CONT
++        * @description Default CSS class to apply to the editors iframe's parent element
++        * @type String
++        */
++        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-editor',
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: function() {
++            var br = YAHOO.env.ua;
++            //Check for webkit3
++            if (br.webkit >= 420) {
++                br.webkit3 = br.webkit;
++            } else {
++                br.webkit3 = 0;
++            }
++            if (br.webkit >= 530) {
++                br.webkit4 = br.webkit;
++            } else {
++                br.webkit4 = 0;
++            }
++            br.mac = false;
++            //Check for Mac
++            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
++                br.mac = true;
++            }
++
++            return br;
++        }(),
++        /** 
++        * @method init
++        * @description The Editor class' initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'SimpleEditor');
++
++            if (!this._defaultToolbar) {
++                this._defaultToolbar = {
++                    collapse: true,
++                    titlebar: 'Text Editing Tools',
++                    draggable: false,
++                    buttons: [
++                        { group: 'fontstyle', label: 'Font Name and Size',
++                            buttons: [
++                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
++                                    menu: [
++                                        { text: 'Arial', checked: true },
++                                        { text: 'Arial Black' },
++                                        { text: 'Comic Sans MS' },
++                                        { text: 'Courier New' },
++                                        { text: 'Lucida Console' },
++                                        { text: 'Tahoma' },
++                                        { text: 'Times New Roman' },
++                                        { text: 'Trebuchet MS' },
++                                        { text: 'Verdana' }
++                                    ]
++                                },
++                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle', label: 'Font Style',
++                            buttons: [
++                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
++                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
++                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
++                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
++                                { type: 'separator' },
++                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
++                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
++                                
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'indentlist', label: 'Lists',
++                            buttons: [
++                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
++                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'insertitem', label: 'Insert Item',
++                            buttons: [
++                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
++                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
++            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
++
++
++            this.currentElement = [];
++            this.on('contentReady', function() {
++                this.DOMReady = true;
++                this.fireQueue();
++            }, this, true);
++
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the editor.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the editor.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
++            var self = this;
++
++            /**
++            * @config setDesignMode
++            * @description Should the Editor set designMode on the document. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('setDesignMode', {
++                value: ((attr.setDesignMode === false) ? false : true)
++            });
++            /**
++            * @config nodeChangeDelay
++            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('nodeChangeDelay', {
++                value: ((attr.nodeChangeDelay === false) ? false : true)
++            });
++            /**
++            * @config maxUndo
++            * @description The max number of undo levels to store.
++            * @default 30
++            * @type Number
++            */
++            this.setAttributeConfig('maxUndo', {
++                writeOnce: true,
++                value: attr.maxUndo || 30
++            });
++
++            /**
++            * @config ptags
++            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('ptags', {
++                writeOnce: true,
++                value: attr.ptags || false
++            });
++            /**
++            * @config insert
++            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('insert', {
++                writeOnce: true,
++                value: attr.insert || false,
++                method: function(insert) {
++                    if (insert) {
++                        var buttons = {
++                            fontname: true,
++                            fontsize: true,
++                            forecolor: true,
++                            backcolor: true
++                        };
++                        var tmp = this._defaultToolbar.buttons;
++                        for (var i = 0; i < tmp.length; i++) {
++                            if (tmp[i].buttons) {
++                                for (var a = 0; a < tmp[i].buttons.length; a++) {
++                                    if (tmp[i].buttons[a].value) {
++                                        if (buttons[tmp[i].buttons[a].value]) {
++                                            delete tmp[i].buttons[a].disabled;
++                                        }
++                                    }
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @config container
++            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
++            * We will create one and place it in this container. If no container is passed we will append to document.body.
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('container', {
++                writeOnce: true,
++                value: attr.container || false
++            });
++            /**
++            * @config plainText
++            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('plainText', {
++                writeOnce: true,
++                value: attr.plainText || false
++            });
++            /**
++            * @private
++            * @config iframe
++            * @description Internal config for holding the iframe element.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @config disabled_iframe
++            * @description Internal config for holding the iframe element used when disabling the Editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('disabled_iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @depreciated - No longer used, should use this.get('element')
++            * @config textarea
++            * @description Internal config for holding the textarea element (replaced with element).
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('textarea', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @config nodeChangeThreshold
++            * @description The number of seconds that need to be in between nodeChange processing
++            * @default 3
++            * @type Number
++            */            
++            this.setAttributeConfig('nodeChangeThreshold', {
++                value: attr.nodeChangeThreshold || 3,
++                validator: YAHOO.lang.isNumber
++            });
++            /**
++            * @config allowNoEdit
++            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
++            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('allowNoEdit', {
++                value: attr.allowNoEdit || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config limitCommands
++            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('limitCommands', {
++                value: attr.limitCommands || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config element_cont
++            * @description Internal config for the editors container
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('element_cont', {
++                value: attr.element_cont
++            });
++            /**
++            * @private
++            * @config editor_wrapper
++            * @description The outter wrapper for the entire editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('editor_wrapper', {
++                value: attr.editor_wrapper || null,
++                writeOnce: true
++            });
++            /**
++            * @attribute height
++            * @description The height of the editor iframe container, not including the toolbar..
++            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
++            * @type String
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
++                method: function(height) {
++                    if (this._rendered) {
++                        //We have been rendered, change the height
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
++                                height: {
++                                    to: parseInt(height, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
++                        }
++                    }
++                }
++            });
++            /**
++            * @config autoHeight
++            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
++            * @default false
++            * @type Boolean || Number
++            */
++            this.setAttributeConfig('autoHeight', {
++                value: attr.autoHeight || false,
++                method: function(a) {
++                    if (a) {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
++                        }
++                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
++                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
++                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
++                    } else {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
++                        }
++                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
++                    }
++                }
++            });
++            /**
++            * @attribute width
++            * @description The width of the editor container.
++            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
++            * @type String
++            */            
++            this.setAttributeConfig('width', {
++                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
++                method: function(width) {
++                    if (this._rendered) {
++                        //We have been rendered, change the width
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
++                                width: {
++                                    to: parseInt(width, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            this.get('element_cont').setStyle('width', width);
++                        }
++                    }
++                }
++            });
++                        
++            /**
++            * @attribute blankimage
++            * @description The URL for the image placeholder to put in when inserting an image.
++            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
++            * @type String
++            */            
++            this.setAttributeConfig('blankimage', {
++                value: attr.blankimage || this._getBlankImage()
++            });
++            /**
++            * @attribute css
++            * @description The Base CSS used to format the content of the editor
++            * @default <code><pre>html {
++                height: 95%;
++            }
++            body {
++                height: 100%;
++                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
++            }
++            a {
++                color: blue;
++                text-decoration: underline;
++                cursor: pointer;
++            }
++            .warning-localfile {
++                border-bottom: 1px dashed red !important;
++            }
++            .yui-busy {
++                cursor: wait !important;
++            }
++            img.selected { //Safari image selection
++                border: 2px dotted #808080;
++            }
++            img {
++                cursor: pointer !important;
++                border: none;
++            }
++            </pre></code>
++            * @type String
++            */            
++            this.setAttributeConfig('css', {
++                value: attr.css || this._defaultCSS,
++                writeOnce: true
++            });
++            /**
++            * @attribute html
++            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
++            * @default This HTML requires a few things if you are to override:
++                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
++                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
++                <code>
++                <pre>
++                &lt;html&gt;
++                    &lt;head&gt;
++                        &lt;title&gt;{TITLE}&lt;/title&gt;
++                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
++                        &lt;style&gt;
++                        {CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {HIDDEN_CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {EXTRA_CSS}
++                        &lt;/style&gt;
++                    &lt;/head&gt;
++                &lt;body onload="document.body._rteLoaded = true;"&gt;
++                {CONTENT}
++                &lt;/body&gt;
++                &lt;/html&gt;
++                </pre>
++                </code>
++            * @type String
++            */            
++            this.setAttributeConfig('html', {
++                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute extracss
++            * @description Extra user defined css to load after the default SimpleEditor CSS
++            * @default ''
++            * @type String
++            */            
++            this.setAttributeConfig('extracss', {
++                value: attr.extracss || '',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute handleSubmit
++            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
++            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
++            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('handleSubmit', {
++                value: attr.handleSubmit || false,
++                method: function(exec) {
++                    if (this.get('element').form) {
++                        if (!this._formButtons) {
++                            this._formButtons = [];
++                        }
++                        if (exec) {
++                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
++                            var i = this.get('element').form.getElementsByTagName('input');
++                            for (var s = 0; s < i.length; s++) {
++                                var type = i[s].getAttribute('type');
++                                if (type && (type.toLowerCase() == 'submit')) {
++                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
++                                    this._formButtons[this._formButtons.length] = i[s];
++                                }
++                            }
++                        } else {
++                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
++                            if (this._formButtons) {
++                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @attribute disabled
++            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
++            All Toolbar buttons are also disabled so they cannot be used.
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this._rendered) {
++                        this._disableEditor(disabled);
++                    }
++                }
++            });
++            /**
++            * @config saveEl
++            * @description When save HTML is called, this element will be updated as well as the source of data.
++            * @default element
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('saveEl', {
++                value: this.get('element')
++            });
++            /**
++            * @config toolbar_cont
++            * @description Internal config for the toolbars container
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('toolbar_cont', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @attribute toolbar
++            * @description The default toolbar config.
++            * @type Object
++            */            
++            this.setAttributeConfig('toolbar', {
++                value: attr.toolbar || this._defaultToolbar,
++                writeOnce: true,
++                method: function(toolbar) {
++                    if (!toolbar.buttonType) {
++                        toolbar.buttonType = this._defaultToolbar.buttonType;
++                    }
++                    this._defaultToolbar = toolbar;
++                }
++            });
++            /**
++            * @attribute animate
++            * @description Should the editor animate window movements
++            * @default false unless Animation is found, then true
++            * @type Boolean
++            */            
++            this.setAttributeConfig('animate', {
++                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.Anim) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++            /**
++            * @config panel
++            * @description A reference to the panel we are using for windows.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('panel', {
++                value: null,
++                writeOnce: true,
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.widget.Overlay) {
++                        ret = false;
++                    }
++                    return ret;
++                }               
++            });
++            /**
++            * @attribute focusAtStart
++            * @description Should we focus the window when the content is ready?
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('focusAtStart', {
++                value: attr.focusAtStart || false,
++                writeOnce: true,
++                method: function(fs) {
++                    if (fs) {
++                        this.on('editorContentLoaded', function() {
++                            var self = this;
++                            setTimeout(function() {
++                                self.focus.call(self);
++                                self.editorDirty = false;
++                            }, 400);
++                        }, this, true);
++                    }
++                }
++            });
++            /**
++            * @attribute dompath
++            * @description Toggle the display of the current Dom path below the editor
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('dompath', {
++                value: attr.dompath || false,
++                method: function(dompath) {
++                    if (dompath && !this.dompath) {
++                        this.dompath = document.createElement('DIV');
++                        this.dompath.id = this.get('id') + '_dompath';
++                        Dom.addClass(this.dompath, 'dompath');
++                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
++                        if (this.get('iframe')) {
++                            this._writeDomPath();
++                        }
++                    } else if (!dompath && this.dompath) {
++                        this.dompath.parentNode.removeChild(this.dompath);
++                        this.dompath = null;
++                    }
++                }
++            });
++            /**
++            * @attribute markup
++            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
++            * @default "semantic"
++            * @type String
++            */            
++            this.setAttributeConfig('markup', {
++                value: attr.markup || 'semantic',
++                validator: function(markup) {
++                    switch (markup.toLowerCase()) {
++                        case 'semantic':
++                        case 'css':
++                        case 'default':
++                        case 'xhtml':
++                        return true;
++                    }
++                    return false;
++                }
++            });
++            /**
++            * @attribute removeLineBreaks
++            * @description Should we remove linebreaks and extra spaces on cleanup
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('removeLineBreaks', {
++                value: attr.removeLineBreaks || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            
++            /**
++            * @config drag
++            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
++            * @type {Boolean/String}
++            */
++            this.setAttributeConfig('drag', {
++                writeOnce: true,
++                value: attr.drag || false
++            });
++
++            /**
++            * @config resize
++            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
++            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
++            * @type Boolean
++            */
++            this.setAttributeConfig('resize', {
++                writeOnce: true,
++                value: attr.resize || false
++            });
++
++            /**
++            * @config filterWord
++            * @description Attempt to filter out MS Word HTML from the Editor's output.
++            * @type Boolean
++            */
++            this.setAttributeConfig('filterWord', {
++                value: attr.filterWord || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++        },
++        /**
++        * @private
++        * @method _getBlankImage
++        * @description Retrieves the full url of the image to use as the blank image.
++        * @return {String} The URL to the blank image
++        */
++        _getBlankImage: function() {
++            if (!this.DOMReady) {
++                this._queue[this._queue.length] = ['_getBlankImage', arguments];
++                return '';
++            }
++            var img = '';
++            if (!this._blankImageLoaded) {
++                if (YAHOO.widget.EditorInfo.blankImage) {
++                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
++                    this._blankImageLoaded = true;
++                } else {
++                    var div = document.createElement('div');
++                    div.style.position = 'absolute';
++                    div.style.top = '-9999px';
++                    div.style.left = '-9999px';
++                    div.className = this.CLASS_PREFIX + '-blankimage';
++                    document.body.appendChild(div);
++                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
++                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
++                    //Adobe AIR Code
++                    img = img.replace('app:/', '');             
++                    this.set('blankimage', img);
++                    this._blankImageLoaded = true;
++                    div.parentNode.removeChild(div);
++                    YAHOO.widget.EditorInfo.blankImage = img;
++                }
++            } else {
++                img = this.get('blankimage');
++            }
++            return img;
++        },
++        /**
++        * @private
++        * @method _handleAutoHeight
++        * @description Handles resizing the editor's height based on the content
++        */
++        _handleAutoHeight: function() {
++            var doc = this._getDoc(),
++                body = doc.body,
++                docEl = doc.documentElement;
++
++            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
++            var newHeight = body.scrollHeight;
++            if (this.browser.webkit) {
++                newHeight = docEl.scrollHeight;
++            }
++            if (newHeight < parseInt(this.get('height'), 10)) {
++                newHeight = parseInt(this.get('height'), 10);
++            }
++            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
++                var anim = this.get('animate');
++                this.set('animate', false);
++                this.set('height', newHeight + 'px');
++                this.set('animate', anim);
++                if (this.browser.ie) {
++                    //Internet Explorer needs this
++                    this.get('iframe').setStyle('height', '99%');
++                    this.get('iframe').setStyle('zoom', '1');
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.get('iframe').setStyle('height', '100%');
++                    }, 1);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _formButtons
++        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
++        * @type Array
++        */
++        _formButtons: null,
++        /**
++        * @private
++        * @property _formButtonClicked
++        * @description The form button that was clicked to submit the form.
++        * @type HTMLElement
++        */
++        _formButtonClicked: null,
++        /**
++        * @private
++        * @method _handleFormButtonClick
++        * @description The click listener assigned to each submit button in the Editor's parent form.
++        * @param {Event} ev The click event
++        */
++        _handleFormButtonClick: function(ev) {
++            var tar = Event.getTarget(ev);
++            this._formButtonClicked = tar;
++        },
++        /**
++        * @private
++        * @method _handleFormSubmit
++        * @description Handles the form submission.
++        * @param {Object} ev The Form Submit Event
++        */
++        _handleFormSubmit: function(ev) {
++            this.saveHTML();
++
++            var form = this.get('element').form,
++                tar = this._formButtonClicked || false;
++
++            Event.removeListener(form, 'submit', this._handleFormSubmit);
++            if (YAHOO.env.ua.ie) {
++                //form.fireEvent("onsubmit");
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++            } else {  // Gecko, Opera, and Safari
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++                var oEvent = document.createEvent("HTMLEvents");
++                oEvent.initEvent("submit", true, true);
++                form.dispatchEvent(oEvent);
++                if (YAHOO.env.ua.webkit) {
++                    if (YAHOO.lang.isFunction(form.submit)) {
++                        form.submit();
++                    }
++                }
++            }
++            //2.6.0
++            //Removed this, not need since removing Safari 2.x
++            //Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _handleFontSize
++        * @description Handles the font size button in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleFontSize: function(o) {
++            var button = this.toolbar.getButtonById(o.button.id);
++            var value = button.get('label') + 'px';
++            this.execCommand('fontsize', value);
++            return false;
++        },
++        /**
++        * @private
++        * @description Handles the colorpicker buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleColorPicker: function(o) {
++            var cmd = o.button;
++            var value = '#' + o.color;
++            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
++                this.execCommand(cmd, value);
++            }
++        },
++        /**
++        * @private
++        * @method _handleAlign
++        * @description Handles the alignment buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleAlign: function(o) {
++            var cmd = null;
++            for (var i = 0; i < o.button.menu.length; i++) {
++                if (o.button.menu[i].value == o.button.value) {
++                    cmd = o.button.menu[i].value;
++                }
++            }
++            var value = this._getSelection();
++
++            this.execCommand(cmd, value);
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleAfterNodeChange
++        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
++        */
++        _handleAfterNodeChange: function() {
++            var path = this._getDomPath(),
++                elm = null,
++                family = null,
++                fontsize = null,
++                validFont = false,
++                fn_button = this.toolbar.getButtonByValue('fontname'),
++                fs_button = this.toolbar.getButtonByValue('fontsize'),
++                hd_button = this.toolbar.getButtonByValue('heading');
++
++            for (var i = 0; i < path.length; i++) {
++                elm = path[i];
++
++                var tag = elm.tagName.toLowerCase();
++
++
++                if (elm.getAttribute('tag')) {
++                    tag = elm.getAttribute('tag');
++                }
++
++                family = elm.getAttribute('face');
++                if (Dom.getStyle(elm, 'font-family')) {
++                    family = Dom.getStyle(elm, 'font-family');
++                    //Adobe AIR Code
++                    family = family.replace(/'/g, '');                    
++                }
++
++                if (tag.substring(0, 1) == 'h') {
++                    if (hd_button) {
++                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
++                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
++                                hd_button.set('label', hd_button._configs.menu.value[h].text);
++                            }
++                        }
++                        this._updateMenuChecked('heading', tag);
++                    }
++                }
++            }
++
++            if (fn_button) {
++                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
++                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
++                        validFont = true;
++                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
++                    }
++                }
++                if (!validFont) {
++                    family = fn_button._configs.label._initialConfig.value;
++                }
++                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
++                if (fn_button.get('label') != familyLabel) {
++                    fn_button.set('label', familyLabel);
++                    this._updateMenuChecked('fontname', family);
++                }
++            }
++
++            if (fs_button) {
++                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
++                if ((fontsize === null) || isNaN(fontsize)) {
++                    fontsize = fs_button._configs.label._initialConfig.value;
++                }
++                fs_button.set('label', ''+fontsize);
++            }
++            
++            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
++                this.toolbar.enableButton(fn_button);
++                this.toolbar.enableButton(fs_button);
++                this.toolbar.enableButton('forecolor');
++                this.toolbar.enableButton('backcolor');
++            }
++            if (this._isElement(elm, 'img')) {
++                if (YAHOO.widget.Overlay) {
++                    this.toolbar.enableButton('createlink');
++                }
++            }
++            if (this._hasParent(elm, 'blockquote')) {
++                this.toolbar.selectButton('indent');
++                this.toolbar.disableButton('indent');
++                this.toolbar.enableButton('outdent');
++            }
++            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
++                this.toolbar.disableButton('indent');
++            }
++            this._lastButton = null;
++            
++        },
++        /**
++        * @private
++        * @method _handleInsertImageClick
++        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
++        */
++        _handleInsertImageClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('insertimage')) {
++                    YAHOO.log('Toolbar Button for (insertimage) was not found, skipping exec.', 'info', 'SimpleEditor');
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    src = 'http://';
++                if (!el) {
++                    el = this._getSelectedElement();
++                }
++                if (el) {
++                    if (el.getAttribute('src')) {
++                        src = el.getAttribute('src', 2);
++                        if (src.indexOf(this.get('blankimage')) != -1) {
++                            src = this.STR_IMAGE_HERE;
++                        }
++                    }
++                }
++                var str = prompt(this.STR_IMAGE_URL + ': ', src);
++                if ((str !== '') && (str !== null)) {
++                    el.setAttribute('src', str);
++                } else if (str === '') {
++                    el.parentNode.removeChild(el);
++                    this.currentElement = [];
++                    this.nodeChange();
++                } else if ((str === null)) {
++                    src = el.getAttribute('src', 2);
++                    if (src.indexOf(this.get('blankimage')) != -1) {
++                        el.parentNode.removeChild(el);
++                        this.currentElement = [];
++                        this.nodeChange();
++                    }
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this, true);
++        },
++        /**
++        * @private
++        * @method _handleInsertImageWindowClose
++        * @description Handles the closing of the Image Properties Window.
++        */
++        _handleInsertImageWindowClose: function() {
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _isLocalFile
++        * @param {String} url THe url/string to check
++        * @description Checks to see if a string (href or img src) is possibly a local file reference..
++        */
++        _isLocalFile: function(url) {
++            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkClick
++        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
++        */
++        _handleCreateLinkClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('createlink')) {
++                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    url = '';
++
++                if (el) {
++                    if (el.getAttribute('href', 2) !== null) {
++                        url = el.getAttribute('href', 2);
++                    }
++                }
++                var str = prompt(this.STR_LINK_URL + ': ', url);
++                if ((str !== '') && (str !== null)) {
++                    var urlValue = str;
++                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                            //Found an @ sign, prefix with mailto:
++                            urlValue = 'mailto:' + urlValue;
++                        } else {
++                            /* :// not found adding */
++                            if (urlValue.substring(0, 1) != '#') {
++                                //urlValue = 'http:/'+'/' + urlValue;
++                            }
++                        }
++                    }
++                    el.setAttribute('href', urlValue);
++                } else if (str !== null) {
++                    var _span = this._getDoc().createElement('span');
++                    _span.innerHTML = el.innerHTML;
++                    Dom.addClass(_span, 'yui-non');
++                    el.parentNode.replaceChild(_span, el);
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this);
++
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkWindowClose
++        * @description Handles the closing of the Link Properties Window.
++        */
++        _handleCreateLinkWindowClose: function() {
++            this.nodeChange();
++            this.currentElement = [];
++        },
++        /**
++        * @method render
++        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
++        */
++        render: function() {
++            if (this._rendered) {
++                return false;
++            }
++            YAHOO.log('Render', 'info', 'SimpleEditor');
++            if (!this.DOMReady) {
++                YAHOO.log('!DOMReady', 'info', 'SimpleEditor');
++                this._queue[this._queue.length] = ['render', arguments];
++                return false;
++            }
++            if (this.get('element')) {
++                if (this.get('element').tagName) {
++                    this._textarea = true;
++                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
++                        this._textarea = false;
++                    }
++                } else {
++                    YAHOO.log('No Valid Element', 'error', 'SimpleEditor');
++                    return false;
++                }
++            } else {
++                YAHOO.log('No Element', 'error', 'SimpleEditor');
++                return false;
++            }
++            this._rendered = true;
++            var self = this;
++            window.setTimeout(function() {
++                self._render.call(self);
++            }, 4);
++        },
++        /**
++        * @private
++        * @method _render
++        * @description Causes the toolbar and the editor to render and replace the textarea.
++        */
++        _render: function() {
++            var self = this;
++            this.set('textarea', this.get('element'));
++
++            this.get('element_cont').setStyle('display', 'none');
++            this.get('element_cont').addClass(this.CLASS_CONTAINER);
++            
++            this.set('iframe', this._createIframe());
++
++            window.setTimeout(function() {
++                self._setInitialContent.call(self);
++            }, 10);
++
++            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
++
++            if (this.get('disabled')) {
++                this._disableEditor(true);
++            }
++
++            var tbarConf = this.get('toolbar');
++            //Create Toolbar instance
++            if (tbarConf instanceof Toolbar) {
++                this.toolbar = tbarConf;
++                //Set the toolbar to disabled until content is loaded
++                this.toolbar.set('disabled', true);
++            } else {
++                //Set the toolbar to disabled until content is loaded
++                tbarConf.disabled = true;
++                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
++            }
++
++            YAHOO.log('fireEvent::toolbarLoaded', 'info', 'SimpleEditor');
++            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
++
++            
++            this.toolbar.on('toolbarCollapsed', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('toolbarExpanded', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
++            
++            this.toolbar.on('colorPickerClicked', function(o) {
++                this._handleColorPicker(o);
++                return false; //Stop the buttonClick event
++            }, this, true);
++
++            this.toolbar.on('alignClick', this._handleAlign, this, true);
++            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
++            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
++            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
++            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
++            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
++            
++
++            //Replace Textarea with editable area
++            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
++
++            
++            this.setStyle('visibility', 'hidden');
++            this.setStyle('position', 'absolute');
++            this.setStyle('top', '-9999px');
++            this.setStyle('left', '-9999px');
++            this.get('element_cont').appendChild(this.get('element'));
++            this.get('element_cont').setStyle('display', 'block');
++
++
++            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
++            this.get('iframe').addClass(this.CLASS_EDITABLE);
++
++            //Set height and width of editor container
++            this.get('element_cont').setStyle('width', this.get('width'));
++            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
++
++            this.get('iframe').setStyle('width', '100%'); //WIDTH
++            this.get('iframe').setStyle('height', '100%');
++
++            this._setupDD();
++
++            window.setTimeout(function() {
++                self._setupAfterElement.call(self);
++            }, 0);
++            this.fireEvent('afterRender', { type: 'afterRender', target: this });
++        },
++        /**
++        * @method execCommand
++        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
++        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
++        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
++        */
++        execCommand: function(action, value) {
++            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
++            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            }
++            this._lastCommand = action;
++            this._setMarkupType(action);
++            if (this.browser.ie) {
++                this._getWindow().focus();
++            }
++            var exec = true;
++            
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue(action)) {
++                    YAHOO.log('Toolbar Button for (' + action + ') was not found, skipping exec.', 'info', 'SimpleEditor');
++                    exec = false;
++                }
++            }
++
++            this.editorDirty = true;
++            
++            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
++                YAHOO.log('Found execCommand override method: (cmd_' + action.toLowerCase() + ')', 'info', 'SimpleEditor');
++                var retValue = this['cmd_' + action.toLowerCase()](value);
++                exec = retValue[0];
++                if (retValue[1]) {
++                    action = retValue[1];
++                }
++                if (retValue[2]) {
++                    value = retValue[2];
++                }
++            }
++            if (exec) {
++                YAHOO.log('execCommand::(' + action + '), (' + value + ')', 'info', 'SimpleEditor');
++                try {
++                    this._getDoc().execCommand(action, false, value);
++                } catch(e) {
++                    YAHOO.log('execCommand Failed', 'error', 'SimpleEditor');
++                }
++            } else {
++                YAHOO.log('OVERRIDE::execCommand::(' + action + '),(' + value + ') skipped', 'warn', 'SimpleEditor');
++            }
++            this.on('afterExecCommand', function() {
++                this.unsubscribeAll('afterExecCommand');
++                this.nodeChange();
++            }, this, true);
++            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            
++        },
++    /* {{{  Command Overrides */
++
++        /**
++        * @method cmd_bold
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
++        */
++        cmd_bold: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontWeight == 'bold') {
++                        el.style.fontWeight = '';
++                        var b = this._getDoc().createElement('b'),
++                        par = el.parentNode;
++                        par.replaceChild(b, el);
++                        b.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_italic
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
++        */
++
++        cmd_italic: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontStyle == 'italic') {
++                        el.style.fontStyle = '';
++                        var i = this._getDoc().createElement('i'),
++                        par = el.parentNode;
++                        par.replaceChild(i, el);
++                        i.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++
++
++        /**
++        * @method cmd_underline
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
++        */
++        cmd_underline: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span')) {
++                    if (el.style.textDecoration == 'underline') {
++                        el.style.textDecoration = 'none';
++                    } else {
++                        el.style.textDecoration = 'underline';
++                    }
++                    return [false];
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_backcolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
++        */
++        cmd_backcolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement(),
++                action = 'backcolor';
++
++            if (this.browser.gecko || this.browser.opera) {
++                this._setEditorStyle(true);
++                action = 'hilitecolor';
++            }
++
++            if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                el.style.backgroundColor = value;
++                this._selectNode(el);
++                exec = false;
++            } else {
++                if (this.get('insert')) {
++                    el = this._createInsertElement({ backgroundColor: value });
++                } else {
++                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            }
++
++            return [exec, action];
++        },
++        /**
++        * @method cmd_forecolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
++        */
++        cmd_forecolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement();
++                
++                if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                    Dom.setStyle(el, 'color', value);
++                    this._selectNode(el);
++                    exec = false;
++                } else {
++                    if (this.get('insert')) {
++                        el = this._createInsertElement({ color: value });
++                    } else {
++                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                    exec = false;
++                }
++                return [exec];
++        },
++        /**
++        * @method cmd_unlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
++        */
++        cmd_unlink: function(value) {
++            this._swapEl(this.currentElement[0], 'span', function(el) {
++                el.className = 'yui-non';
++            });
++            return [false];
++        },
++        /**
++        * @method cmd_createlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
++        */
++        cmd_createlink: function(value) {
++            var el = this._getSelectedElement(), _a = null;
++            if (this._hasParent(el, 'a')) {
++                this.currentElement[0] = this._hasParent(el, 'a');
++            } else if (this._isElement(el, 'li')) {
++                _a = this._getDoc().createElement('a');
++                _a.innerHTML = el.innerHTML;
++                el.innerHTML = '';
++                el.appendChild(_a);
++                this.currentElement[0] = _a;
++            } else if (!this._isElement(el, 'a')) {
++                this._createCurrentElement('a');
++                _a = this._swapEl(this.currentElement[0], 'a');
++                this.currentElement[0] = _a;
++            } else {
++                this.currentElement[0] = el;
++            }
++            return [false];
++        },
++        /**
++        * @method cmd_insertimage
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
++        */
++        cmd_insertimage: function(value) {
++            var exec = true, _img = null, action = 'insertimage',
++                el = this._getSelectedElement();
++
++            if (value === '') {
++                value = this.get('blankimage');
++            }
++
++            /*
++            * @knownissue Safari Cursor Position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            
++            YAHOO.log('InsertImage: ' + el.tagName, 'info', 'SimpleEditor');
++            if (this._isElement(el, 'img')) {
++                this.currentElement[0] = el;
++                exec = false;
++            } else {
++                if (this._getDoc().queryCommandEnabled(action)) {
++                    this._getDoc().execCommand(action, false, value);
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var i = 0; i < imgs.length; i++) {
++                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
++                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
++                            this.currentElement[0] = imgs[i];
++                        }
++                    }
++                    exec = false;
++                } else {
++                    if (el == this._getDoc().body) {
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this._getDoc().body.appendChild(_img);
++                    } else {
++                        this._createCurrentElement('img');
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
++                    }
++                    this.currentElement[0] = _img;
++                    exec = false;
++                }
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_inserthtml
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
++        */
++        cmd_inserthtml: function(value) {
++            var exec = true, action = 'inserthtml', _span = null, _range = null;
++            /*
++            * @knownissue Safari cursor position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
++                YAHOO.log('More Safari DOM tricks (inserthtml)', 'info', 'EditorSafari');
++                this._createCurrentElement('img');
++                _span = this._getDoc().createElement('span');
++                _span.innerHTML = value;
++                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
++                exec = false;
++            } else if (this.browser.ie) {
++                _range = this._getRange();
++                if (_range.item) {
++                    _range.item(0).outerHTML = value;
++                } else {
++                    _range.pasteHTML(value);
++                }
++                exec = false;                    
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_list
++        * @param tag The tag of the list you want to create (eg, ul or ol)
++        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
++        */
++        cmd_list: function(tag) {
++            var exec = true, list = null, li = 0, el = null, str = '',
++                selEl = this._getSelectedElement(), action = 'insertorderedlist';
++                if (tag == 'ul') {
++                    action = 'insertunorderedlist';
++                }
++            /*
++            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
++            * @browser Safari 2.x
++            * The issue with this workaround is that when applied to a set of text
++            * that has BR's in it, Safari may or may not pick up the individual items as
++            * list items. This is fixed in WebKit (Safari 3)
++            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
++            */
++            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
++            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
++                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
++                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
++                    el = selEl.parentNode;
++                    list = this._getDoc().createElement('span');
++                    YAHOO.util.Dom.addClass(list, 'yui-non');
++                    str = '';
++                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
++                    for (li = 0; li < lis.length; li++) {
++                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
++                    }
++                    list.innerHTML = str;
++                    this.currentElement[0] = el;
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                } else {
++                    YAHOO.log('Create list item', 'info', 'SimpleEditor');
++                    this._createCurrentElement(tag.toLowerCase());
++                    list = this._getDoc().createElement(tag);
++                    for (li = 0; li < this.currentElement.length; li++) {
++                        var newli = this._getDoc().createElement('li');
++                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
++                        list.appendChild(newli);
++                        if (li > 0) {
++                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
++                        }
++                    }
++                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
++                    items = list.firstChild.innerHTML.split(b_tag), i, item;
++                    if (items.length > 0) {
++                        list.innerHTML = '';
++                        for (i = 0; i < items.length; i++) {
++                            item = this._getDoc().createElement('li');
++                            item.innerHTML = items[i];
++                            list.appendChild(item);
++                        }
++                    }
++
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                    this.currentElement[0] = list;
++                    var _h = this.currentElement[0].firstChild;
++                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
++                    }
++                }
++                exec = false;
++            } else {
++                el = this._getSelectedElement();
++                YAHOO.log(el.tagName);
++                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
++                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
++                    if (this.browser.ie) {
++                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
++                            el = el.getElementsByTagName('li')[0];
++                        }
++                        YAHOO.log('Undo IE', 'info', 'SimpleEditor');
++                        str = '';
++                        var lis2 = el.parentNode.getElementsByTagName('li');
++                        for (var j = 0; j < lis2.length; j++) {
++                            str += lis2[j].innerHTML + '<br>';
++                        }
++                        var newEl = this._getDoc().createElement('span');
++                        newEl.innerHTML = str;
++                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
++                    } else {
++                        this.nodeChange();
++                        this._getDoc().execCommand(action, '', el.parentNode);
++                        this.nodeChange();
++                    }
++                    exec = false;
++                }
++                if (this.browser.opera) {
++                    var self = this;
++                    window.setTimeout(function() {
++                        var liso = self._getDoc().getElementsByTagName('li');
++                        for (var i = 0; i < liso.length; i++) {
++                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
++                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
++                            }
++                        }
++                    },30);
++                }
++                if (this.browser.ie && exec) {
++                    var html = '';
++                    if (this._getRange().html) {
++                        html = '<li>' + this._getRange().html+ '</li>';
++                    } else {
++                        var t = this._getRange().text.split('\n');
++                        if (t.length > 1) {
++                            html = '';
++                            for (var ie = 0; ie < t.length; ie++) {
++                                html += '<li>' + t[ie] + '</li>';
++                            }
++                        } else {
++                            var txt = this._getRange().text;
++                            if (txt === '') {
++                                html = '<li id="new_list_item">' + txt + '</li>';
++                            } else {
++                                html = '<li>' + txt + '</li>';
++                            }
++                        }
++                    }
++                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
++                    var new_item = this._getDoc().getElementById('new_list_item');
++                    if (new_item) {
++                        var range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(new_item);
++                        range.collapse(false);
++                        range.select();                       
++                        new_item.id = '';
++                    }
++                    exec = false;
++                }
++            }
++            return exec;
++        },
++        /**
++        * @method cmd_insertorderedlist
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
++        */
++        cmd_insertorderedlist: function(value) {
++            return [this.cmd_list('ol')];
++        },
++        /**
++        * @method cmd_insertunorderedlist 
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
++        */
++        cmd_insertunorderedlist: function(value) {
++            return [this.cmd_list('ul')];
++        },
++        /**
++        * @method cmd_fontname
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
++        */
++        cmd_fontname: function(value) {
++            var exec = true,
++                selEl = this._getSelectedElement();
++
++            this.currentFont = value;
++            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
++                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
++                exec = false;
++            } else if (this.get('insert') && !this._hasSelection()) {
++                YAHOO.log('No selection and no selected element and we are in insert mode', 'info', 'SimpleEditor');
++                var el = this._createInsertElement({ fontFamily: value });
++                exec = false;
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_fontsize
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
++        */
++        cmd_fontsize: function(value) {
++            var el = null, go = true;
++            el = this._getSelectedElement();
++            if (this.browser.webkit) {
++                if (this.currentElement[0]) {
++                    if (el == this.currentElement[0]) {
++                        go = false;
++                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                        this._selectNode(el);
++                        this.currentElement[0] = el;
++                    }
++                }
++            }
++            if (go) {
++                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
++                    el = this._getSelectedElement();
++                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                    if (this.get('insert') && this.browser.ie) {
++                        var r = this._getRange();
++                        r.collapse(false);
++                        r.select();
++                    } else {
++                        this._selectNode(el);
++                    }
++                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
++                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
++                } else {
++                    if (this.get('insert') && !this._hasSelection()) {
++                        el = this._createInsertElement({ fontSize: value });
++                        this.currentElement[0] = el;
++                        this._selectNode(this.currentElement[0]);
++                    } else {
++                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                }
++            }
++            return [false];
++        },
++    /* }}} */
++        /**
++        * @private
++        * @method _swapEl
++        * @param {HTMLElement} el The element to swap with
++        * @param {String} tagName The tagname of the element that you wish to create
++        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
++        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
++        */
++        _swapEl: function(el, tagName, callback) {
++            var _el = this._getDoc().createElement(tagName);
++            if (el) {
++                _el.innerHTML = el.innerHTML;
++            }
++            if (typeof callback == 'function') {
++                callback.call(this, _el);
++            }
++            if (el) {
++                el.parentNode.replaceChild(_el, el);
++            }
++            return _el;
++        },
++        /**
++        * @private
++        * @method _createInsertElement
++        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
++        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
++        * @return {HTMLElement}
++        */
++        _createInsertElement: function(css) {
++            this._createCurrentElement('span', css);
++            var el = this.currentElement[0];
++            if (this.browser.webkit) {
++                //Little Safari Hackery here..
++                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
++                el = el.firstChild;
++                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
++            } else if (this.browser.ie || this.browser.opera) {
++                el.innerHTML = '&nbsp;';
++            }
++            this.focus();
++            this._selectNode(el, true);
++            return el;
++        },
++        /**
++        * @private
++        * @method _createCurrentElement
++        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
++        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
++        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
++        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
++        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
++        */
++        _createCurrentElement: function(tagName, tagStyle) {
++            tagName = ((tagName) ? tagName : 'a');
++            var tar = null,
++                el = [],
++                _doc = this._getDoc();
++            
++            if (this.currentFont) {
++                if (!tagStyle) {
++                    tagStyle = {};
++                }
++                tagStyle.fontFamily = this.currentFont;
++                this.currentFont = null;
++            }
++            this.currentElement = [];
++
++            var _elCreate = function(tagName, tagStyle) {
++                var el = null;
++                tagName = ((tagName) ? tagName : 'span');
++                tagName = tagName.toLowerCase();
++                switch (tagName) {
++                    case 'h1':
++                    case 'h2':
++                    case 'h3':
++                    case 'h4':
++                    case 'h5':
++                    case 'h6':
++                        el = _doc.createElement(tagName);
++                        break;
++                    default:
++                        el = _doc.createElement(tagName);
++                        if (tagName === 'span') {
++                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
++                            YAHOO.util.Dom.addClass(el, 'yui-tag');
++                            el.setAttribute('tag', tagName);
++                        }
++
++                        for (var k in tagStyle) {
++                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
++                                el.style[k] = tagStyle[k];
++                            }
++                        }
++                        break;
++                }
++                return el;
++            };
++
++            if (!this._hasSelection()) {
++                if (this._getDoc().queryCommandEnabled('insertimage')) {
++                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var j = 0; j < imgs.length; j++) {
++                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
++                            el = _elCreate(tagName, tagStyle);
++                            imgs[j].parentNode.replaceChild(el, imgs[j]);
++                            this.currentElement[this.currentElement.length] = el;
++                        }
++                    }
++                } else {
++                    if (this.currentEvent) {
++                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
++                    } else {
++                        //For Safari..
++                        tar = this._getDoc().body;                        
++                    }
++                }
++                if (tar) {
++                    /*
++                    * @knownissue Safari Cursor Position
++                    * @browser Safari 2.x
++                    * @description The issue here is that we have no way of knowing where the cursor position is
++                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++                    */
++                    el = _elCreate(tagName, tagStyle);
++                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
++                        if (this._isElement(tar, 'html')) {
++                            tar = this._getDoc().body;
++                        }
++                        tar.appendChild(el);
++                    } else if (tar.nextSibling) {
++                        tar.parentNode.insertBefore(el, tar.nextSibling);
++                    } else {
++                        tar.parentNode.appendChild(el);
++                    }
++                    //this.currentElement = el;
++                    this.currentElement[this.currentElement.length] = el;
++                    this.currentEvent = null;
++                    if (this.browser.webkit) {
++                        //Force Safari to focus the new element
++                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                        if (this.browser.webkit3) {
++                            this._getSelection().collapseToStart();
++                        } else {
++                            this._getSelection().collapse(true);
++                        }
++                    }
++                }
++            } else {
++                //Force CSS Styling for this action...
++                this._setEditorStyle(true);
++                this._getDoc().execCommand('fontname', false, 'yui-tmp');
++                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
++
++                if (!this._isElement(this._getSelectedElement(), 'body')) {
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
++                }
++                for (var _els = 0; _els < __els.length; _els++) {
++                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
++                    for (var e = 0; e < _tmp1.length; e++) {
++                        _tmp[_tmp.length] = _tmp1[e];
++                    }
++                }
++
++                
++                for (var i = 0; i < _tmp.length; i++) {
++                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
++                        if (tagName !== 'span') {
++                            el = _elCreate(tagName, tagStyle);
++                        } else {
++                            el = _elCreate(_tmp[i].tagName, tagStyle);
++                        }
++                        el.innerHTML = _tmp[i].innerHTML;
++                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
++                            var fc = _tmp[i].getElementsByTagName('li')[0];
++                            _tmp[i].style.fontFamily = 'inherit';
++                            fc.style.fontFamily = 'inherit';
++                            el.innerHTML = fc.innerHTML;
++                            fc.innerHTML = '';
++                            fc.appendChild(el);
++                            this.currentElement[this.currentElement.length] = el;
++                        } else if (this._isElement(_tmp[i], 'li')) {
++                            _tmp[i].innerHTML = '';
++                            _tmp[i].appendChild(el);
++                            _tmp[i].style.fontFamily = 'inherit';
++                            this.currentElement[this.currentElement.length] = el;
++                        } else {
++                            if (_tmp[i].parentNode) {
++                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
++                                this.currentElement[this.currentElement.length] = el;
++                                this.currentEvent = null;
++                                if (this.browser.webkit) {
++                                    //Force Safari to focus the new element
++                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                                    if (this.browser.webkit3) {
++                                        this._getSelection().collapseToStart();
++                                    } else {
++                                        this._getSelection().collapse(true);
++                                    }
++                                }
++                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
++                                    this._getSelection().empty();
++                                }
++                                if (this.browser.gecko) {
++                                    this._getSelection().collapseToStart();
++                                }
++                            }
++                        }
++                    }
++                }
++                var len = this.currentElement.length;
++                for (var o = 0; o < len; o++) {
++                    if ((o + 1) != len) { //Skip the last one in the list
++                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
++                            if (this._isElement(this.currentElement[o], 'br')) {
++                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
++                            }
++                        }
++                    }
++                }
++            }
++        },
++        /**
++        * @method saveHTML
++        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
++        * @return String
++        */
++        saveHTML: function() {
++            var html = this.cleanHTML();
++            if (this._textarea) {
++                this.get('element').value = html;
++            } else {
++                this.get('element').innerHTML = html;
++            }
++            if (this.get('saveEl') !== this.get('element')) {
++                var out = this.get('saveEl');
++                if (Lang.isString(out)) {
++                    out = Dom.get(out);
++                }
++                if (out) {
++                    if (out.tagName.toLowerCase() === 'textarea') {
++                        out.value = html;
++                    } else {
++                        out.innerHTML = html;
++                    }
++                }
++            }
++            return html;
++        },
++        /**
++        * @method setEditorHTML
++        * @param {String} incomingHTML The html content to load into the editor
++        * @description Loads HTML into the editors body
++        */
++        setEditorHTML: function(incomingHTML) {
++            var html = this._cleanIncomingHTML(incomingHTML);
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++            this._getDoc().body.innerHTML = html;
++            this.nodeChange();
++        },
++        /**
++        * @method getEditorHTML
++        * @description Gets the unprocessed/unfiltered HTML from the editor
++        */
++        getEditorHTML: function() {
++            try {
++                var b = this._getDoc().body;
++                if (b === null) {
++                    YAHOO.log('Body is null, returning null.', 'error', 'SimpleEditor');
++                    return null;
++                }
++                return this._getDoc().body.innerHTML;
++            } catch (e) {
++                return '';
++            }
++        },
++        /**
++        * @method show
++        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
++        */
++        show: function() {
++            if (this.browser.gecko) {
++                this._setDesignMode('on');
++                this.focus();
++            }
++            if (this.browser.webkit) {
++                var self = this;
++                window.setTimeout(function() {
++                    self._setInitialContent.call(self);
++                }, 10);
++            }
++            //Adding this will close all other Editor window's when showing this one.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            //Put the iframe back in place
++            this.get('iframe').setStyle('position', 'static');
++            this.get('iframe').setStyle('left', '');
++        },
++        /**
++        * @method hide
++        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
++        */
++        hide: function() {
++            //Adding this will close all other Editor window's.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this._fixNodesTimer) {
++                clearTimeout(this._fixNodesTimer);
++                this._fixNodesTimer = null;
++            }
++            if (this._nodeChangeTimer) {
++                clearTimeout(this._nodeChangeTimer);
++                this._nodeChangeTimer = null;
++            }
++            this._lastNodeChange = 0;
++            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
++            this.get('iframe').setStyle('position', 'absolute');
++            this.get('iframe').setStyle('left', '-9999px');
++        },
++        /**
++        * @method _cleanIncomingHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the input
++        * @return {String} The filtered HTML
++        */
++        _cleanIncomingHTML: function(html) {
++            html = html.replace(/{/gi, 'RIGHT_BRACKET');
++            html = html.replace(/}/gi, 'LEFT_BRACKET');
++
++            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++            html = html.replace(/<\/strong>/gi, '</b>');   
++
++            //replace embed before em check
++            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
++
++            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++            html = html.replace(/<\/em>/gi, '</i>');
++            html = html.replace(/_moz_dirty=""/gi, '');
++            
++            //Put embed tags back in..
++            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
++            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
++            if (this.get('plainText')) {
++                YAHOO.log('Filtering as plain text', 'info', 'SimpleEditor');
++                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
++                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
++                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
++            }
++            //Removing Script Tags from the Editor
++            html = html.replace(/<script([^>]*)>/gi, '<bad>');
++            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
++            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
++            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
++            //Replace the line feeds
++            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
++            
++            //Remove Bad HTML elements (used to be script nodes)
++            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
++            //Replace the lines feeds
++            html = html.replace(/<YUI_LF>/g, '\n');
++            return html;
++        },
++        /**
++        * @method cleanHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the output
++        * @return {String} The filtered HTML
++        */
++        cleanHTML: function(html) {
++            //Start Filtering Output
++            //Begin RegExs..
++            if (!html) { 
++                html = this.getEditorHTML();
++            }
++            var markup = this.get('markup');
++            //Make some backups...
++            html = this.pre_filter_linebreaks(html, markup);
++
++            //Filter MS Word
++            html = this.filter_msword(html);
++
++		    html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
++		    html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
++
++		    html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
++		    html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
++
++		    html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
++		    html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
++		    html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
++		    html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
++
++		    html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++		    html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
++
++            //Convert b and i tags to strong and em tags
++            if ((markup == 'semantic') || (markup == 'xhtml')) {
++                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
++                html = html.replace(/<\/i>/gi, '</em>');
++                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
++                html = html.replace(/<\/b>/gi, '</strong>');
++            }
++
++            html = html.replace(/_moz_dirty=""/gi, '');
++
++            //normalize strikethrough
++            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
++            html = html.replace(/\/strike>/gi, '/span>');
++            
++            
++            //Case Changing
++            if (this.browser.ie) {
++                html = html.replace(/text-decoration/gi, 'text-decoration');
++                html = html.replace(/font-weight/gi, 'font-weight');
++                html = html.replace(/_width="([^>]*)"/gi, '');
++                html = html.replace(/_height="([^>]*)"/gi, '');
++                //Cleanup Image URL's
++                var url = this._baseHREF.replace(/\//gi, '\\/'),
++                    re = new RegExp('src="' + url, 'gi');
++                html = html.replace(re, 'src="');
++            }
++		    html = html.replace(/<font/gi, '<font');
++		    html = html.replace(/<\/font>/gi, '</font>');
++		    html = html.replace(/<span/gi, '<span');
++		    html = html.replace(/<\/span>/gi, '</span>');
++            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
++                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
++                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
++                if (this.browser.webkit) {
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
++                }
++                html = html.replace(/\/u>/gi, '/span>');
++                if (markup == 'css') {
++                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++                    html = html.replace(/<\/em>/gi, '</i>');
++                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++                    html = html.replace(/<\/strong>/gi, '</b>');
++                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
++                    html = html.replace(/\/b>/gi, '/span>');
++                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
++                    html = html.replace(/\/i>/gi, '/span>');
++                }
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            } else {
++		        html = html.replace(/<u/gi, '<u');
++		        html = html.replace(/\/u>/gi, '/u>');
++            }
++		    html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
++		    html = html.replace(/\/ol>/gi, '/ol>');
++		    html = html.replace(/<li/gi, '<li');
++		    html = html.replace(/\/li>/gi, '/li>');
++            html = this.filter_safari(html);
++
++            html = this.filter_internals(html);
++
++            html = this.filter_all_rgb(html);
++
++            //Replace our backups with the real thing
++            html = this.post_filter_linebreaks(html, markup);
++
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
++            } else {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
++            }
++		    html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
++		    html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
++
++            html = this.filter_invalid_lists(html);
++
++		    html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
++		    html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
++
++		    html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
++		    html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
++            
++            //This should fix &amp;'s in URL's
++            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
++            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
++            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
++            html = html.replace(/&amp;/gi, '&');
++            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
++            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
++            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
++
++            //Trim the output, removing whitespace from the beginning and end
++            html = YAHOO.lang.trim(html);
++
++            if (this.get('removeLineBreaks')) {
++                html = html.replace(/\n/g, '').replace(/\r/g, '');
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            }
++            
++            for (var v in this.invalidHTML) {
++                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                    if (Lang.isObject(v) && v.keepContents) {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
++                    } else {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
++                    }
++                }
++            }
++
++            /* LATER -- Add DOM manipulation
++            console.log(html);
++            var frag = document.createDocumentFragment();
++            frag.innerHTML = html;
++
++            var ps = frag.getElementsByTagName('p'),
++                len = ps.length;
++            for (var i = 0; i < len; i++) {
++                var ps2 = ps[i].getElementsByTagName('p');
++                if (ps2.length) {
++                    
++                }
++                
++            }
++            html = frag.innerHTML;
++            console.log(html);
++            */
++
++            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
++
++            return html;
++        },
++        /**
++        * @method filter_msword
++        * @param String html The HTML string to filter
++        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
++        */
++        filter_msword: function(html) {
++            if (!this.get('filterWord')) {
++                return html;
++            }
++            //Remove the ms o: tags
++            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
++            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
++
++            //Remove the ms w: tags
++            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
++
++            //Remove mso-? styles.
++            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
++
++            //Remove more bogus MS styles.
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
++            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
++            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
++            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
++            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
++
++            //Remove XML declarations
++            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
++
++            //Remove lang
++            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove language tags
++            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove onmouseover and onmouseout events (from MS Word comments effect)
++            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
++            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
++            
++            return html;
++        },
++        /**
++        * @method filter_invalid_lists
++        * @param String html The HTML string to filter
++        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
++        */
++        filter_invalid_lists: function(html) {
++            html = html.replace(/<\/li>\n/gi, '</li>');
++
++            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
++            html = html.replace(/<\/ol>/gi, '</ol></li>');
++            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
++
++            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
++            html = html.replace(/<\/ul>/gi, '</ul></li>');
++            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
++
++            html = html.replace(/<\/li>/gi, "</li>");
++            html = html.replace(/<\/ol>/gi, "</ol>");
++            html = html.replace(/<ol>/gi, "<ol>");
++            html = html.replace(/<ul>/gi, "<ul>");
++            return html;
++        },
++        /**
++        * @method filter_safari
++        * @param String html The HTML string to filter
++        * @description Filters strings specific to Safari
++        * @return String
++        */
++        filter_safari: function(html) {
++            if (this.browser.webkit) {
++                //<span class="Apple-tab-span" style="white-space:pre">	</span>
++                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
++                html = html.replace(/Apple-style-span/gi, '');
++                html = html.replace(/style="line-height: normal;"/gi, '');
++                html = html.replace(/yui-wk-div/gi, '');
++                html = html.replace(/yui-wk-p/gi, '');
++
++
++                //Remove bogus LI's
++                html = html.replace(/<li><\/li>/gi, '');
++                html = html.replace(/<li> <\/li>/gi, '');
++                html = html.replace(/<li>  <\/li>/gi, '');
++                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
++                if (this.get('ptags')) {
++		            html = html.replace(/<div([^>]*)>/g, '<p$1>');
++				    html = html.replace(/<\/div>/gi, '</p>');
++                } else {
++                    //html = html.replace(/<div>/gi, '<br>');
++                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
++				    html = html.replace(/<\/div>/gi, '');
++                }
++            }
++            return html;
++        },
++        /**
++        * @method filter_internals
++        * @param String html The HTML string to filter
++        * @description Filters internal RTE strings and bogus attrs we don't want
++        * @return String
++        */
++        filter_internals: function(html) {
++		    html = html.replace(/\r/g, '');
++            //Fix stuff we don't want
++	        html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
++            //Fix last BR in LI
++		    html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
++
++		    html = html.replace(/yui-tag-span/gi, '');
++		    html = html.replace(/yui-tag/gi, '');
++		    html = html.replace(/yui-non/gi, '');
++		    html = html.replace(/yui-img/gi, '');
++		    html = html.replace(/ tag="span"/gi, '');
++		    html = html.replace(/ class=""/gi, '');
++		    html = html.replace(/ style=""/gi, '');
++		    html = html.replace(/ class=" "/gi, '');
++		    html = html.replace(/ class="  "/gi, '');
++		    html = html.replace(/ target=""/gi, '');
++		    html = html.replace(/ title=""/gi, '');
++
++            if (this.browser.ie) {
++		        html = html.replace(/ class= /gi, '');
++		        html = html.replace(/ class= >/gi, '');
++            }
++            
++            return html;
++        },
++        /**
++        * @method filter_all_rgb
++        * @param String str The HTML string to filter
++        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
++        * @return String
++        */
++        filter_all_rgb: function(str) {
++            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
++            var arr = str.match(exp);
++            if (Lang.isArray(arr)) {
++                for (var i = 0; i < arr.length; i++) {
++                    var color = this.filter_rgb(arr[i]);
++                    str = str.replace(arr[i].toString(), color);
++                }
++            }
++            
++            return str;
++        },
++        /**
++        * @method filter_rgb
++        * @param String css The CSS string containing rgb(#,#,#);
++        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
++        * @return String
++        */
++        filter_rgb: function(css) {
++            if (css.toLowerCase().indexOf('rgb') != -1) {
++                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
++                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
++            
++                if (rgb.length == 5) {
++                    var r = parseInt(rgb[1], 10).toString(16);
++                    var g = parseInt(rgb[2], 10).toString(16);
++                    var b = parseInt(rgb[3], 10).toString(16);
++
++                    r = r.length == 1 ? '0' + r : r;
++                    g = g.length == 1 ? '0' + g : g;
++                    b = b.length == 1 ? '0' + b : b;
++
++                    css = "#" + r + g + b;
++                }
++            }
++            return css;
++        },
++        /**
++        * @method pre_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        pre_filter_linebreaks: function(html, markup) {
++            if (this.browser.webkit) {
++		        html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
++		        html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
++            }
++		    html = html.replace(/<br>/gi, '<YUI_BR>');
++		    html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
++		    html = html.replace(/<br\/>/gi, '<YUI_BR>');
++		    html = html.replace(/<br \/>/gi, '<YUI_BR>');
++		    html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
++		    html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
++            //Fix last BR
++	        html = html.replace(/<YUI_BR>$/, '');
++            //Fix last BR in P
++	        html = html.replace(/<YUI_BR><\/p>/g, '</p>');
++            if (this.browser.ie) {
++	            html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
++            }
++            return html;
++        },
++        /**
++        * @method post_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        post_filter_linebreaks: function(html, markup) {
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_BR>/g, '<br />');
++            } else {
++		        html = html.replace(/<YUI_BR>/g, '<br>');
++            }
++            return html;
++        },
++        /**
++        * @method clearEditorDoc
++        * @description Clear the doc of the Editor
++        */
++        clearEditorDoc: function() {
++            this._getDoc().body.innerHTML = '&nbsp;';
++        },
++        /**
++        * @method openWindow
++        * @description Override Method for Advanced Editor
++        */
++        openWindow: function(win) {
++        },
++        /**
++        * @method moveWindow
++        * @description Override Method for Advanced Editor
++        */
++        moveWindow: function() {
++        },
++        /**
++        * @private
++        * @method _closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        _closeWindow: function() {
++        },
++        /**
++        * @method closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        closeWindow: function() {
++            //this.unsubscribeAll('afterExecCommand');
++            this.toolbar.resetAllButtons();
++            this.focus();        
++        },
++        /**
++        * @method destroy
++        * @description Destroys the editor, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            if (this._nodeChangeDelayTimer) {
++                clearTimeout(this._nodeChangeDelayTimer);
++            }
++            this.hide();
++        
++            YAHOO.log('Destroying Editor', 'warn', 'SimpleEditor');
++            if (this.resize) {
++                YAHOO.log('Destroying Resize', 'warn', 'SimpleEditor');
++                this.resize.destroy();
++            }
++            if (this.dd) {
++                YAHOO.log('Unreg DragDrop Instance', 'warn', 'SimpleEditor');
++                this.dd.unreg();
++            }
++            if (this.get('panel')) {
++                YAHOO.log('Destroying Editor Panel', 'warn', 'SimpleEditor');
++                this.get('panel').destroy();
++            }
++            this.saveHTML();
++            this.toolbar.destroy();
++            YAHOO.log('Restoring TextArea', 'info', 'SimpleEditor');
++            this.setStyle('visibility', 'visible');
++            this.setStyle('position', 'static');
++            this.setStyle('top', '');
++            this.setStyle('left', '');
++            var textArea = this.get('element');
++            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
++            this.get('element_cont').get('element').innerHTML = '';
++            this.set('handleSubmit', false); //Remove the submit handler
++            return true;
++        },        
++        /**
++        * @method toString
++        * @description Returns a string representing the editor.
++        * @return {String}
++        */
++        toString: function() {
++            var str = 'SimpleEditor';
++            if (this.get && this.get('element_cont')) {
++                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
++            }
++            return str;
++        }
++    });
++
++/**
++* @event toolbarLoaded
++* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event cleanHTML
++* @description Event is fired after the cleanHTML method is called.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterRender
++* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorContentLoaded
++* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeNodeChange
++* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterNodeChange
++* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeExecCommand
++* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterExecCommand
++* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++
++/**
++* @event editorWindowFocus
++* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorWindowBlur
++* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++ * @description Singleton object used to track the open window objects and panels across the various open editors
++ * @class EditorInfo
++ * @static
++*/
++YAHOO.widget.EditorInfo = {
++    /**
++    * @private
++    * @property _instances
++    * @description A reference to all editors on the page.
++    * @type Object
++    */
++    _instances: {},
++    /**
++    * @private
++    * @property blankImage
++    * @description A reference to the blankImage url
++    * @type String 
++    */
++    blankImage: '',
++    /**
++    * @private
++    * @property window
++    * @description A reference to the currently open window object in any editor on the page.
++    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
++    */
++    window: {},
++    /**
++    * @private
++    * @property panel
++    * @description A reference to the currently open panel in any editor on the page.
++    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
++    */
++    panel: null,
++    /**
++    * @method getEditorById
++    * @description Returns a reference to the Editor object associated with the given textarea
++    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
++    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
++    */
++    getEditorById: function(id) {
++        if (!YAHOO.lang.isString(id)) {
++            //Not a string, assume a node Reference
++            id = id.id;
++        }
++        if (this._instances[id]) {
++            return this._instances[id];
++        }
++        return false;
++    },
++    /**
++    * @method saveAll
++    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
++    * @param {HTMLElement} form The form to check if this Editor instance belongs to
++    */
++    saveAll: function(form) {
++        var i, e, items = YAHOO.widget.EditorInfo._instances;
++        if (form) {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    e = items[i];
++                    if (e.get('element').form && (e.get('element').form == form)) {
++                        e.saveHTML();
++                    }
++                }
++            }
++        } else {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    items[i].saveHTML();
++                }
++            }
++        }
++    },
++    /**
++    * @method toString
++    * @description Returns a string representing the EditorInfo.
++    * @return {String}
++    */
++    toString: function() {
++        var len = 0;
++        for (var i in this._instances) {
++            if (Lang.hasOwnProperty(this._instances, i)) {
++                len++;
++            }
++        }
++        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
++    }
++};
++
++
++
++    
++})();
++/**
++ * @module editor
++ * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, container_core, simpleeditor
++ * @optional dragdrop, animation, menu, button, resize
++ */
++
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang,
++    Toolbar = YAHOO.widget.Toolbar;
++
++    /**
++     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
++     * @constructor
++     * @class Editor
++     * @extends YAHOO.widget.SimpleEditor
++     * @param {String/HTMLElement} el The textarea element to turn into an editor.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    
++    YAHOO.widget.Editor = function(el, attrs) {
++        YAHOO.log('Editor Initalizing', 'info', 'Editor');
++        YAHOO.widget.Editor.superclass.constructor.call(this, el, attrs);
++    };
++
++    YAHOO.extend(YAHOO.widget.Editor, YAHOO.widget.SimpleEditor, {
++        /**
++        * @private
++        * @property _undoCache
++        * @description An Array hash of the Undo Levels.
++        * @type Array
++        */
++        _undoCache: null,
++        /**
++        * @private
++        * @property _undoLevel
++        * @description The index of the current undo state.
++        * @type Number
++        */
++        _undoLevel: null,    
++        /**
++        * @private
++        * @method _hasUndoLevel
++        * @description Checks to see if we have an undo level available
++        * @return Boolean
++        */
++        _hasUndoLevel: function() {
++            return ((this._undoCache.length > 1) && this._undoLevel);
++        },
++        /**
++        * @private
++        * @method _undoNodeChange
++        * @description nodeChange listener for undo processing
++        */
++        _undoNodeChange: function() {
++            var undo_button = this.toolbar.getButtonByValue('undo'),
++                redo_button = this.toolbar.getButtonByValue('redo');
++            if (undo_button && redo_button) {
++                if (this._hasUndoLevel()) {
++                    this.toolbar.enableButton(undo_button);
++                }
++                if (this._undoLevel < this._undoCache.length) {
++                    this.toolbar.enableButton(redo_button);
++                }
++            }
++            this._lastCommand = null;
++        },
++        /**
++        * @private
++        * @method _checkUndo
++        * @description Prunes the undo cache when it reaches the maxUndo config
++        */
++        _checkUndo: function() {
++            var len = this._undoCache.length,
++            tmp = [];
++            if (len >= this.get('maxUndo')) {
++                //YAHOO.log('Undo cache too large (' + len + '), pruning..', 'info', 'SimpleEditor');
++                for (var i = (len - this.get('maxUndo')); i < len; i++) {
++                    tmp.push(this._undoCache[i]);
++                }
++                this._undoCache = tmp;
++            }
++        },
++        /**
++        * @private
++        * @method _putUndo
++        * @description Puts the content of the Editor into the _undoCache.
++        * //TODO Convert the hash to a series of TEXTAREAS to store state in.
++        * @param {String} str The content of the Editor
++        */
++        _putUndo: function(str) {
++            if (this._undoLevel === this._undoCache.length) {
++                this._undoCache.push(str);
++                this._undoLevel = this._undoCache.length;
++            } else {
++                var str = this.getEditorHTML();
++                var last = this._undoCache[this._undoLevel];
++                if (last) {
++                    if (str !== last) {
++                        this._undoCache = [];
++                        this._undoLevel = 0;
++                    }
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _getUndo
++        * @description Get's a level from the undo cache.
++        * @param {Number} index The index of the undo level we want to get.
++        * @return {String}
++        */
++        _getUndo: function(index) {
++            this._undoLevel = index;
++            return this._undoCache[index];
++        },
++        /**
++        * @private
++        * @method _storeUndo
++        * @description Method to call when you want to store an undo state. Currently called from nodeChange and _handleKeyUp
++        */
++        _storeUndo: function() {
++            if (this._lastCommand === 'undo' || this._lastCommand === 'redo') {
++                return false;
++            }
++            if (!this._undoCache) {
++                this._undoCache = [];
++                this._undoLevel = 0;
++            }
++            this._checkUndo();
++            var str = this.getEditorHTML();
++            //var last = this._undoCache[this._undoCache.length - 1];
++            var last = this._undoCache[this._undoLevel - 1];
++            if (last) {
++                if (str !== last) {
++                    //YAHOO.log('Storing Undo', 'info', 'SimpleEditor');
++                    this._putUndo(str);
++                }
++            } else {
++                //YAHOO.log('Storing Undo', 'info', 'SimpleEditor');
++                this._putUndo(str);
++            }
++            this._undoNodeChange();
++        },    
++        /**
++        * @property STR_BEFORE_EDITOR
++        * @description The accessibility string for the element before the iFrame
++        * @type String
++        */
++        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift [ aligns text left</li> <li>Control Shift | centers text</li> <li>Control Shift ] aligns text right</li> <li>Control Shift L adds an HTML link</li> <li>To exit this text editor use the keyboard shortcut Control + Shift + ESC.</li></ul>',    
++        /**
++        * @property STR_CLOSE_WINDOW
++        * @description The Title of the close button in the Editor Window
++        * @type String
++        */
++        STR_CLOSE_WINDOW: 'Close Window',
++        /**
++        * @property STR_CLOSE_WINDOW_NOTE
++        * @description A note appearing in the Editor Window to tell the user that the Escape key will close the window
++        * @type String
++        */
++        STR_CLOSE_WINDOW_NOTE: 'To close this window use the Control + Shift + W key',
++        /**
++        * @property STR_IMAGE_PROP_TITLE
++        * @description The title for the Image Property Editor Window
++        * @type String
++        */
++        STR_IMAGE_PROP_TITLE: 'Image Options',
++        /**
++        * @property STR_IMAGE_TITLE
++        * @description The label string for Image Description
++        * @type String
++        */
++        STR_IMAGE_TITLE: 'Description',
++        /**
++        * @property STR_IMAGE_SIZE
++        * @description The label string for Image Size
++        * @type String
++        */
++        STR_IMAGE_SIZE: 'Size',
++        /**
++        * @property STR_IMAGE_ORIG_SIZE
++        * @description The label string for Original Image Size
++        * @type String
++        */
++        STR_IMAGE_ORIG_SIZE: 'Original Size',
++        /**
++        * @property STR_IMAGE_COPY
++        * @description The label string for the image copy and paste message for Opera and Safari
++        * @type String
++        */
++        STR_IMAGE_COPY: '<span class="tip"><span class="icon icon-info"></span><strong>Note:</strong>To move this image just highlight it, cut, and paste where ever you\'d like.</span>',
++        /**
++        * @property STR_IMAGE_PADDING
++        * @description The label string for the image padding.
++        * @type String
++        */
++        STR_IMAGE_PADDING: 'Padding',
++        /**
++        * @property STR_IMAGE_BORDER
++        * @description The label string for the image border.
++        * @type String
++        */
++        STR_IMAGE_BORDER: 'Border',
++        /**
++        * @property STR_IMAGE_BORDER_SIZE
++        * @description The label string for the image border size.
++        * @type String
++        */
++        STR_IMAGE_BORDER_SIZE: 'Border Size',
++        /**
++        * @property STR_IMAGE_BORDER_TYPE
++        * @description The label string for the image border type.
++        * @type String
++        */
++        STR_IMAGE_BORDER_TYPE: 'Border Type',
++        /**
++        * @property STR_IMAGE_TEXTFLOW
++        * @description The label string for the image text flow.
++        * @type String
++        */
++        STR_IMAGE_TEXTFLOW: 'Text Flow',
++        /**
++        * @property STR_LOCAL_FILE_WARNING
++        * @description The label string for the local file warning.
++        * @type String
++        */
++        STR_LOCAL_FILE_WARNING: '<span class="tip"><span class="icon icon-warn"></span><strong>Note:</strong>This image/link points to a file on your computer and will not be accessible to others on the internet.</span>',
++        /**
++        * @property STR_LINK_PROP_TITLE
++        * @description The label string for the Link Property Editor Window.
++        * @type String
++        */
++        STR_LINK_PROP_TITLE: 'Link Options',
++        /**
++        * @property STR_LINK_PROP_REMOVE
++        * @description The label string for the Remove link from text link inside the property editor.
++        * @type String
++        */
++        STR_LINK_PROP_REMOVE: 'Remove link from text',
++        /**
++        * @property STR_LINK_NEW_WINDOW
++        * @description The string for the open in a new window label.
++        * @type String
++        */
++        STR_LINK_NEW_WINDOW: 'Open in a new window.',
++        /**
++        * @property STR_LINK_TITLE
++        * @description The string for the link description.
++        * @type String
++        */
++        STR_LINK_TITLE: 'Description',
++        /**
++        * @property STR_NONE
++        * @description The string for the word none.
++        * @type String
++        */
++        STR_NONE: 'none',
++        /**
++        * @protected
++        * @property CLASS_LOCAL_FILE
++        * @description CSS class applied to an element when it's found to have a local url.
++        * @type String
++        */
++        CLASS_LOCAL_FILE: 'warning-localfile',
++        /**
++        * @protected
++        * @property CLASS_HIDDEN
++        * @description CSS class applied to the body when the hiddenelements button is pressed.
++        * @type String
++        */
++        CLASS_HIDDEN: 'yui-hidden',
++        /** 
++        * @method init
++        * @description The Editor class' initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'Editor');
++            
++            this._windows = {};
++            if (!this._defaultToolbar) {            
++                this._defaultToolbar = {
++                    collapse: true,
++                    titlebar: 'Text Editing Tools',
++                    draggable: false,
++                    buttonType: 'advanced',
++                    buttons: [
++                        { group: 'fontstyle', label: 'Font Name and Size',
++                            buttons: [
++                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
++                                    menu: [
++                                        { text: 'Arial', checked: true },
++                                        { text: 'Arial Black' },
++                                        { text: 'Comic Sans MS' },
++                                        { text: 'Courier New' },
++                                        { text: 'Lucida Console' },
++                                        { text: 'Tahoma' },
++                                        { text: 'Times New Roman' },
++                                        { text: 'Trebuchet MS' },
++                                        { text: 'Verdana' }
++                                    ]
++                                },
++                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle', label: 'Font Style',
++                            buttons: [
++                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
++                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
++                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
++                                { type: 'separator' },
++                                { type: 'push', label: 'Subscript', value: 'subscript', disabled: true },
++                                { type: 'push', label: 'Superscript', value: 'superscript', disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle2', label: '&nbsp;',
++                            buttons: [
++                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
++                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
++                                { type: 'separator' },
++                                { type: 'push', label: 'Remove Formatting', value: 'removeformat', disabled: true },
++                                { type: 'push', label: 'Show/Hide Hidden Elements', value: 'hiddenelements' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'undoredo', label: 'Undo/Redo',
++                            buttons: [
++                                { type: 'push', label: 'Undo', value: 'undo', disabled: true },
++                                { type: 'push', label: 'Redo', value: 'redo', disabled: true }
++                                
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'alignment', label: 'Alignment',
++                            buttons: [
++                                { type: 'push', label: 'Align Left CTRL + SHIFT + [', value: 'justifyleft' },
++                                { type: 'push', label: 'Align Center CTRL + SHIFT + |', value: 'justifycenter' },
++                                { type: 'push', label: 'Align Right CTRL + SHIFT + ]', value: 'justifyright' },
++                                { type: 'push', label: 'Justify', value: 'justifyfull' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'parastyle', label: 'Paragraph Style',
++                            buttons: [
++                            { type: 'select', label: 'Normal', value: 'heading', disabled: true,
++                                menu: [
++                                    { text: 'Normal', value: 'none', checked: true },
++                                    { text: 'Header 1', value: 'h1' },
++                                    { text: 'Header 2', value: 'h2' },
++                                    { text: 'Header 3', value: 'h3' },
++                                    { text: 'Header 4', value: 'h4' },
++                                    { text: 'Header 5', value: 'h5' },
++                                    { text: 'Header 6', value: 'h6' }
++                                ]
++                            }
++                            ]
++                        },
++                        { type: 'separator' },
++                        
++                        { group: 'indentlist2', label: 'Indenting and Lists',
++                            buttons: [
++                                { type: 'push', label: 'Indent', value: 'indent', disabled: true },
++                                { type: 'push', label: 'Outdent', value: 'outdent', disabled: true },
++                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
++                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'insertitem', label: 'Insert Item',
++                            buttons: [
++                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
++                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            if (!this._defaultImageToolbarConfig) {
++                this._defaultImageToolbarConfig = {
++                    buttonType: this._defaultToolbar.buttonType,
++                    buttons: [
++                        { group: 'textflow', label: this.STR_IMAGE_TEXTFLOW + ':',
++                            buttons: [
++                                { type: 'push', label: 'Left', value: 'left' },
++                                { type: 'push', label: 'Inline', value: 'inline' },
++                                { type: 'push', label: 'Block', value: 'block' },
++                                { type: 'push', label: 'Right', value: 'right' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'padding', label: this.STR_IMAGE_PADDING + ':',
++                            buttons: [
++                                { type: 'spin', label: '0', value: 'padding', range: [0, 50] }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'border', label: this.STR_IMAGE_BORDER + ':',
++                            buttons: [
++                                { type: 'select', label: this.STR_IMAGE_BORDER_SIZE, value: 'bordersize',
++                                    menu: [
++                                        { text: 'none', value: '0', checked: true },
++                                        { text: '1px', value: '1' },
++                                        { text: '2px', value: '2' },
++                                        { text: '3px', value: '3' },
++                                        { text: '4px', value: '4' },
++                                        { text: '5px', value: '5' }
++                                    ]
++                                },
++                                { type: 'select', label: this.STR_IMAGE_BORDER_TYPE, value: 'bordertype', disabled: true,
++                                    menu: [
++                                        { text: 'Solid', value: 'solid', checked: true },
++                                        { text: 'Dashed', value: 'dashed' },
++                                        { text: 'Dotted', value: 'dotted' }
++                                    ]
++                                },
++                                { type: 'color', label: 'Border Color', value: 'bordercolor', disabled: true }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            YAHOO.widget.Editor.superclass.init.call(this, p_oElement, p_oAttributes);
++        },
++        _render: function() {
++            YAHOO.widget.Editor.superclass._render.apply(this, arguments);
++            var self = this;
++            //Render the panel in another thread and delay it a little..
++            window.setTimeout(function() {
++                self._renderPanel.call(self);
++            }, 800);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the editor.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the editor.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.Editor.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @attribute localFileWarning
++            * @description Should we throw the warning if we detect a file that is local to their machine?
++            * @default true
++            * @type Boolean
++            */            
++            this.setAttributeConfig('localFileWarning', {
++                value: attr.locaFileWarning || true
++            });
++
++            /**
++            * @attribute hiddencss
++            * @description The CSS used to show/hide hidden elements on the page, these rules must be prefixed with the class provided in <code>this.CLASS_HIDDEN</code>
++            * @default <code><pre>
++            .yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u,
++            .yui-hidden div, .yui-hidden p, .yui-hidden span, .yui-hidden img, .yui-hidden ul, .yui-hidden ol,
++            .yui-hidden li, .yui-hidden table {
++                border: 1px dotted #ccc;
++            }
++            .yui-hidden .yui-non {
++                border: none;
++            }
++            .yui-hidden img {
++                padding: 2px;
++            }</pre></code>
++            * @type String
++            */            
++            this.setAttributeConfig('hiddencss', {
++                value: attr.hiddencss || '.yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }',
++                writeOnce: true
++            });
++           
++        },
++        /**
++        * @private
++        * @method _windows
++        * @description A reference to the HTML elements used for the body of Editor Windows.
++        */
++        _windows: null,
++        /**
++        * @private
++        * @method _defaultImageToolbar
++        * @description A reference to the Toolbar Object inside Image Editor Window.
++        */
++        _defaultImageToolbar: null,
++        /**
++        * @private
++        * @method _defaultImageToolbarConfig
++        * @description Config to be used for the default Image Editor Window.
++        */
++        _defaultImageToolbarConfig: null,
++        /**
++        * @private
++        * @method _fixNodes
++        * @description Fix href and imgs as well as remove invalid HTML.
++        */
++        _fixNodes: function() {
++            YAHOO.widget.Editor.superclass._fixNodes.call(this);
++            try {
++                var url = '';
++
++                var imgs = this._getDoc().getElementsByTagName('img');
++                for (var im = 0; im < imgs.length; im++) {
++                    if (imgs[im].getAttribute('href', 2)) {
++                        url = imgs[im].getAttribute('src', 2);
++                        if (this._isLocalFile(url)) {
++                            Dom.addClass(imgs[im], this.CLASS_LOCAL_FILE);
++                        } else {
++                            Dom.removeClass(imgs[im], this.CLASS_LOCAL_FILE);
++                        }
++                    }
++                }
++                var fakeAs = this._getDoc().body.getElementsByTagName('a');
++                for (var a = 0; a < fakeAs.length; a++) {
++                    if (fakeAs[a].getAttribute('href', 2)) {
++                        url = fakeAs[a].getAttribute('href', 2);
++                        if (this._isLocalFile(url)) {
++                            Dom.addClass(fakeAs[a], this.CLASS_LOCAL_FILE);
++                        } else {
++                            Dom.removeClass(fakeAs[a], this.CLASS_LOCAL_FILE);
++                        }
++                    }
++                }
++            } catch(e) {}
++        },
++        /**
++        * @private
++        * @property _disabled
++        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
++        * @type Array
++        */
++        _disabled: [ 'createlink', 'forecolor', 'backcolor', 'fontname', 'fontsize', 'superscript', 'subscript', 'removeformat', 'heading', 'indent' ],
++        /**
++        * @private
++        * @property _alwaysDisabled
++        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
++        * @type Object
++        */
++        _alwaysDisabled: { 'outdent': true },
++        /**
++        * @private
++        * @property _alwaysEnabled
++        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
++        * @type Object
++        */
++        _alwaysEnabled: { hiddenelements: true },
++        /**
++        * @private
++        * @method _handleKeyDown
++        * @param {Event} ev The event we are working on.
++        * @description Override method that handles some new keydown events inside the iFrame document.
++        */
++        _handleKeyDown: function(ev) {
++            YAHOO.widget.Editor.superclass._handleKeyDown.call(this, ev);
++            var doExec = false,
++                action = null,
++                exec = false;
++
++            switch (ev.keyCode) {
++                //case 219: //Left
++                case this._keyMap.JUSTIFY_LEFT.key: //Left
++                    if (this._checkKey(this._keyMap.JUSTIFY_LEFT, ev)) {
++                        action = 'justifyleft';
++                        doExec = true;
++                    }
++                    break;
++                //case 220: //Center
++                case this._keyMap.JUSTIFY_CENTER.key:
++                    if (this._checkKey(this._keyMap.JUSTIFY_CENTER, ev)) {
++                        action = 'justifycenter';
++                        doExec = true;
++                    }
++                    break;
++                case 221: //Right
++                case this._keyMap.JUSTIFY_RIGHT.key:
++                    if (this._checkKey(this._keyMap.JUSTIFY_RIGHT, ev)) {
++                        action = 'justifyright';
++                        doExec = true;
++                    }
++                    break;
++            }
++            if (doExec && action) {
++                this.execCommand(action, null);
++                Event.stopEvent(ev);
++                this.nodeChange();
++            }
++        },        
++        /**
++        * @private
++        * @method _renderCreateLinkWindow
++        * @description Pre renders the CreateLink window so we get faster window opening.
++        */
++        _renderCreateLinkWindow: function() {
++                var str = '<label for="' + this.get('id') + '_createlink_url"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_url" id="' + this.get('id') + '_createlink_url" value=""></label>';
++                str += '<label for="' + this.get('id') + '_createlink_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_createlink_target" id="' + this.get('id') + '_createlink_target" value="_blank" class="createlink_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
++                str += '<label for="' + this.get('id') + '_createlink_title"><strong>' + this.STR_LINK_TITLE + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_title" id="' + this.get('id') + '_createlink_title" value=""></label>';
++                
++                var body = document.createElement('div');
++                body.innerHTML = str;
++
++                var unlinkCont = document.createElement('div');
++                unlinkCont.className = 'removeLink';
++                var unlink = document.createElement('a');
++                unlink.href = '#';
++                unlink.innerHTML = this.STR_LINK_PROP_REMOVE;
++                unlink.title = this.STR_LINK_PROP_REMOVE;
++                Event.on(unlink, 'click', function(ev) {
++                    Event.stopEvent(ev);
++                    this.unsubscribeAll('afterExecCommand');
++                    this.execCommand('unlink');
++                    this.closeWindow();
++                }, this, true);
++                unlinkCont.appendChild(unlink);
++                body.appendChild(unlinkCont);
++                
++                this._windows.createlink = {};
++                this._windows.createlink.body = body;
++                //body.style.display = 'none';
++                Event.on(body, 'keyup', function(e) {
++                    Event.stopPropagation(e);
++                });
++                this.get('panel').editor_form.appendChild(body);
++                this.fireEvent('windowCreateLinkRender', { type: 'windowCreateLinkRender', panel: this.get('panel'), body: body });
++                return body;
++        },
++        _handleCreateLinkClick: function() {
++            var el = this._getSelectedElement();
++            if (this._isElement(el, 'img')) {
++                this.STOP_EXEC_COMMAND = true;
++                this.currentElement[0] = el;
++                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++                return false;
++            }
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('createlink')) {
++                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'Editor');
++                    return false;
++                }
++            }
++            
++            this.on('afterExecCommand', function() {
++                var win = new YAHOO.widget.EditorWindow('createlink', {
++                    width: '350px'
++                });
++                
++                var el = this.currentElement[0],
++                    url = '',
++                    title = '',
++                    target = '',
++                    localFile = false;
++                if (el) {
++                    win.el = el;
++                    if (el.getAttribute('href', 2) !== null) {
++                        url = el.getAttribute('href', 2);
++                        if (this._isLocalFile(url)) {
++                            //Local File throw Warning
++                            YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
++                            win.setFooter(this.STR_LOCAL_FILE_WARNING);
++                            localFile = true;
++                        } else {
++                            win.setFooter(' ');
++                        }
++                    }
++                    if (el.getAttribute('title') !== null) {
++                        title = el.getAttribute('title');
++                    }
++                    if (el.getAttribute('target') !== null) {
++                        target = el.getAttribute('target');
++                    }
++                }
++                var body = null;
++                if (this._windows.createlink && this._windows.createlink.body) {
++                    body = this._windows.createlink.body;
++                } else {
++                    body = this._renderCreateLinkWindow();
++                }
++
++                win.setHeader(this.STR_LINK_PROP_TITLE);
++                win.setBody(body);
++
++                Event.purgeElement(this.get('id') + '_createlink_url');
++
++                Dom.get(this.get('id') + '_createlink_url').value = url;
++                Dom.get(this.get('id') + '_createlink_title').value = title;
++                Dom.get(this.get('id') + '_createlink_target').checked = ((target) ? true : false);
++                
++
++                Event.onAvailable(this.get('id') + '_createlink_url', function() {
++                    var id = this.get('id');
++                    window.setTimeout(function() {
++                        try {
++                            YAHOO.util.Dom.get(id + '_createlink_url').focus();
++                        } catch (e) {}
++                    }, 50);
++
++                    if (this._isLocalFile(url)) {
++                        //Local File throw Warning
++                        Dom.addClass(this.get('id') + '_createlink_url', 'warning');
++                        YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
++                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                    } else {
++                        Dom.removeClass(this.get('id') + '_createlink_url', 'warning');
++                        this.get('panel').setFooter(' ');
++                    }
++                    Event.on(this.get('id') + '_createlink_url', 'blur', function() {
++                        var url = Dom.get(this.get('id') + '_createlink_url');
++                        if (this._isLocalFile(url.value)) {
++                            //Local File throw Warning
++                            Dom.addClass(url, 'warning');
++                            YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
++                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                        } else {
++                            Dom.removeClass(url, 'warning');
++                            this.get('panel').setFooter(' ');
++                        }
++                    }, this, true);
++                }, this, true);
++                
++                this.openWindow(win);
++
++            });
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkWindowClose
++        * @description Handles the closing of the Link Properties Window.
++        */
++        _handleCreateLinkWindowClose: function() {
++            
++            var url = Dom.get(this.get('id') + '_createlink_url'),
++                target = Dom.get(this.get('id') + '_createlink_target'),
++                title = Dom.get(this.get('id') + '_createlink_title'),
++                el = arguments[0].win.el,
++                a = el;
++
++            if (url && url.value) {
++                var urlValue = url.value;
++                if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                    if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        //Found an @ sign, prefix with mailto:
++                        urlValue = 'mailto:' + urlValue;
++                    } else {
++                        // :// not found adding
++                        if (urlValue.substring(0, 1) != '#') {
++                            urlValue = 'http:/'+'/' + urlValue;
++                        }
++                        
++                    }
++                }
++                el.setAttribute('href', urlValue);
++                if (target.checked) {
++                    el.setAttribute('target', target.value);
++                } else {
++                    el.setAttribute('target', '');
++                }
++                el.setAttribute('title', ((title.value) ? title.value : ''));
++
++            } else {
++                var _span = this._getDoc().createElement('span');
++                _span.innerHTML = el.innerHTML;
++                Dom.addClass(_span, 'yui-non');
++                el.parentNode.replaceChild(_span, el);
++            }
++            Dom.removeClass(url, 'warning');
++            Dom.get(this.get('id') + '_createlink_url').value = '';
++            Dom.get(this.get('id') + '_createlink_title').value = '';
++            Dom.get(this.get('id') + '_createlink_target').checked = false;
++            this.nodeChange();
++            this.currentElement = [];
++            
++        },
++        /**
++        * @private
++        * @method _renderInsertImageWindow
++        * @description Pre renders the InsertImage window so we get faster window opening.
++        */
++        _renderInsertImageWindow: function() {
++                var el = this.currentElement[0];
++                var str = '<label for="' + this.get('id') + '_insertimage_url"><strong>' + this.STR_IMAGE_URL + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_url" value="" size="40"></label>';
++                var body = document.createElement('div');
++                body.innerHTML = str;
++
++                var tbarCont = document.createElement('div');
++                tbarCont.id = this.get('id') + '_img_toolbar';
++                body.appendChild(tbarCont);
++
++                var str2 = '<label for="' + this.get('id') + '_insertimage_title"><strong>' + this.STR_IMAGE_TITLE + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_title" value="" size="40"></label>';
++                str2 += '<label for="' + this.get('id') + '_insertimage_link"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_insertimage_link" id="' + this.get('id') + '_insertimage_link" value=""></label>';
++                str2 += '<label for="' + this.get('id') + '_insertimage_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_insertimage_target_" id="' + this.get('id') + '_insertimage_target" value="_blank" class="insertimage_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
++                var div = document.createElement('div');
++                div.innerHTML = str2;
++                body.appendChild(div);
++
++                var o = {};
++                Lang.augmentObject(o, this._defaultImageToolbarConfig); //Break the config reference
++
++                var tbar = new YAHOO.widget.Toolbar(tbarCont, o);
++                tbar.editor_el = el;
++                this._defaultImageToolbar = tbar;
++                
++                var cont = tbar.get('cont');
++                var hw = document.createElement('div');
++                hw.className = 'yui-toolbar-group yui-toolbar-group-height-width height-width';
++                hw.innerHTML = '<h3>' + this.STR_IMAGE_SIZE + ':</h3>';
++                hw.innerHTML += '<span tabIndex="-1"><input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_width"> x <input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_height"></span>';
++                cont.insertBefore(hw, cont.firstChild);
++
++                Event.onAvailable(this.get('id') + '_insertimage_width', function() {
++                    Event.on(this.get('id') + '_insertimage_width', 'blur', function() {
++                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_width').value, 10);
++                        if (value > 5) {
++                           this._defaultImageToolbar.editor_el.style.width = value + 'px';
++                            //Removed moveWindow call so the window doesn't jump
++                            //this.moveWindow();
++                        }
++                    }, this, true);
++                }, this, true);
++                Event.onAvailable(this.get('id') + '_insertimage_height', function() {
++                    Event.on(this.get('id') + '_insertimage_height', 'blur', function() {
++                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_height').value, 10);
++                        if (value > 5) {
++                            this._defaultImageToolbar.editor_el.style.height = value + 'px';
++                            //Removed moveWindow call so the window doesn't jump
++                            //this.moveWindow();
++                        }
++                    }, this, true);
++                }, this, true);
++
++
++                tbar.on('colorPickerClicked', function(o) {
++                    var size = '1', type = 'solid', color = 'black', el = this._defaultImageToolbar.editor_el;
++
++                    if (el.style.borderLeftWidth) {
++                        size = parseInt(el.style.borderLeftWidth, 10);
++                    }
++                    if (el.style.borderLeftStyle) {
++                        type = el.style.borderLeftStyle;
++                    }
++                    if (el.style.borderLeftColor) {
++                        color = el.style.borderLeftColor;
++                    }
++                    var borderString = size + 'px ' + type + ' #' + o.color;
++                    el.style.border = borderString;
++                }, this, true);
++
++                tbar.on('buttonClick', function(o) {
++                    var value = o.button.value,
++                        el = this._defaultImageToolbar.editor_el,
++                        borderString = '';
++                    if (o.button.menucmd) {
++                        value = o.button.menucmd;
++                    }
++                    var size = '1', type = 'solid', color = 'black';
++
++                    /* All border calcs are done on the left border
++                        since our default interface only supports
++                        one border size/type and color */
++                    if (el.style.borderLeftWidth) {
++                        size = parseInt(el.style.borderLeftWidth, 10);
++                    }
++                    if (el.style.borderLeftStyle) {
++                        type = el.style.borderLeftStyle;
++                    }
++                    if (el.style.borderLeftColor) {
++                        color = el.style.borderLeftColor;
++                    }
++                    switch(value) {
++                        case 'bordersize':
++                            if (this.browser.webkit && this._lastImage) {
++                                Dom.removeClass(this._lastImage, 'selected');
++                                this._lastImage = null;
++                            }
++
++                            borderString = parseInt(o.button.value, 10) + 'px ' + type + ' ' + color;
++                            el.style.border = borderString;
++                            if (parseInt(o.button.value, 10) > 0) {
++                                tbar.enableButton('bordertype');
++                                tbar.enableButton('bordercolor');
++                            } else {
++                                tbar.disableButton('bordertype');
++                                tbar.disableButton('bordercolor');
++                            }
++                            break;
++                        case 'bordertype':
++                            if (this.browser.webkit && this._lastImage) {
++                                Dom.removeClass(this._lastImage, 'selected');
++                                this._lastImage = null;
++                            }
++                            borderString = size + 'px ' + o.button.value + ' ' + color;
++                            el.style.border = borderString;
++                            break;
++                        case 'right':
++                        case 'left':
++                            tbar.deselectAllButtons();
++                            el.style.display = '';
++                            el.align = o.button.value;
++                            break;
++                        case 'inline':
++                            tbar.deselectAllButtons();
++                            el.style.display = '';
++                            el.align = '';
++                            break;
++                        case 'block':
++                            tbar.deselectAllButtons();
++                            el.style.display = 'block';
++                            el.align = 'center';
++                            break;
++                        case 'padding':
++                            var _button = tbar.getButtonById(o.button.id);
++                            el.style.margin = _button.get('label') + 'px';
++                            break;
++                    }
++                    tbar.selectButton(o.button.value);
++                    if (value !== 'padding') {
++                        this.moveWindow();
++                    }
++                }, this, true);
++
++
++
++                if (this.get('localFileWarning')) {
++                    Event.on(this.get('id') + '_insertimage_link', 'blur', function() {
++                        var url = Dom.get(this.get('id') + '_insertimage_link');
++                        if (this._isLocalFile(url.value)) {
++                            //Local File throw Warning
++                            Dom.addClass(url, 'warning');
++                            YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
++                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                        } else {
++                            Dom.removeClass(url, 'warning');
++                            this.get('panel').setFooter(' ');
++                            //Adobe AIR Code
++                            if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
++                                this.get('panel').setFooter(this.STR_IMAGE_COPY);
++                            }
++                        }
++                    }, this, true);
++                }
++
++                Event.on(this.get('id') + '_insertimage_url', 'blur', function() {
++                    var url = Dom.get(this.get('id') + '_insertimage_url'),
++                        el = this.currentElement[0];
++
++                    if (url.value && el) {
++                        if (url.value == el.getAttribute('src', 2)) {
++                            YAHOO.log('Images are the same, bail on blur handler', 'info', 'Editor');
++                            return false;
++                        }
++                    }
++                    YAHOO.log('Images are different, process blur handler', 'info', 'Editor');
++                    if (this._isLocalFile(url.value)) {
++                        //Local File throw Warning
++                        Dom.addClass(url, 'warning');
++                        YAHOO.log('Local file reference found, show local warning', 'warn', 'Editor');
++                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                    } else if (this.currentElement[0]) {
++                        Dom.removeClass(url, 'warning');
++                        this.get('panel').setFooter(' ');
++                        //Adobe AIR Code
++                        if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
++                            this.get('panel').setFooter(this.STR_IMAGE_COPY);
++                        }
++                        
++                        if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
++                            this.currentElement[0].setAttribute('src', url.value);
++                            var self = this,
++                                img = new Image();
++
++                            img.onerror = function() {
++                                url.value = self.STR_IMAGE_HERE;
++                                img.setAttribute('src', self.get('blankimage'));
++                                self.currentElement[0].setAttribute('src', self.get('blankimage'));
++                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_height').value = img.height;
++                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_width').value = img.width;
++                            };
++                            var id = this.get('id');
++                            window.setTimeout(function() {
++                                YAHOO.util.Dom.get(id + '_insertimage_height').value = img.height;
++                                YAHOO.util.Dom.get(id + '_insertimage_width').value = img.width;
++                                if (self.currentElement && self.currentElement[0]) {
++                                    if (!self.currentElement[0]._height) {
++                                        self.currentElement[0]._height = img.height;
++                                    }
++                                    if (!self.currentElement[0]._width) {
++                                        self.currentElement[0]._width = img.width;
++                                    }
++                                }
++                                //Removed moveWindow call so the window doesn't jump
++                                //self.moveWindow();
++                            }, 800); //Bumped the timeout up to account for larger images..
++
++                            if (url.value != this.STR_IMAGE_HERE) {
++                                img.src = url.value;
++                            }
++                        }
++                    }
++                    }, this, true);
++
++
++
++                this._windows.insertimage = {};
++                this._windows.insertimage.body = body;
++                //body.style.display = 'none';
++                this.get('panel').editor_form.appendChild(body);
++                this.fireEvent('windowInsertImageRender', { type: 'windowInsertImageRender', panel: this.get('panel'), body: body, toolbar: tbar });
++                return body;
++        },
++        /**
++        * @private
++        * @method _handleInsertImageClick
++        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
++        */
++        _handleInsertImageClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('insertimage')) {
++                    YAHOO.log('Toolbar Button for (insertimage) was not found, skipping exec.', 'info', 'Editor');
++                    return false;
++                }
++            }
++            this.on('afterExecCommand', function() {
++                YAHOO.log('afterExecCommand :: _handleInsertImageClick', 'info', 'Editor');
++                var el = this.currentElement[0],
++                    body = null,
++                    link = '',
++                    target = '',
++                    tbar = null,
++                    title = '',
++                    src = '',
++                    align = '',
++                    height = 75,
++                    width = 75,
++                    padding = 0,
++                    oheight = 0,
++                    owidth = 0,
++                    blankimage = false,
++                    win = new YAHOO.widget.EditorWindow('insertimage', {
++                        width: '415px'
++                    });
++
++                if (!el) {
++                    el = this._getSelectedElement();
++                }
++                if (el) {
++                    win.el = el;
++                    if (el.getAttribute('src')) {
++                        src = el.getAttribute('src', 2);
++                        if (src.indexOf(this.get('blankimage')) != -1) {
++                            src = this.STR_IMAGE_HERE;
++                            blankimage = true;
++                        }
++                    }
++                    if (el.getAttribute('alt', 2)) {
++                        title = el.getAttribute('alt', 2);
++                    }
++                    if (el.getAttribute('title', 2)) {
++                        title = el.getAttribute('title', 2);
++                    }
++
++                    if (el.parentNode && this._isElement(el.parentNode, 'a')) {
++                        link = el.parentNode.getAttribute('href', 2);
++                        if (el.parentNode.getAttribute('target') !== null) {
++                            target = el.parentNode.getAttribute('target');
++                        }
++                    }
++                    height = parseInt(el.height, 10);
++                    width = parseInt(el.width, 10);
++                    if (el.style.height) {
++                        height = parseInt(el.style.height, 10);
++                    }
++                    if (el.style.width) {
++                        width = parseInt(el.style.width, 10);
++                    }
++                    if (el.style.margin) {
++                        padding = parseInt(el.style.margin, 10);
++                    }
++                    if (!blankimage) {
++                        if (!el._height) {
++                            el._height = height;
++                        }
++                        if (!el._width) {
++                            el._width = width;
++                        }
++                        oheight = el._height;
++                        owidth = el._width;
++                    }
++                }
++                if (this._windows.insertimage && this._windows.insertimage.body) {
++                    body = this._windows.insertimage.body;
++                    this._defaultImageToolbar.resetAllButtons();
++                } else {
++                    body = this._renderInsertImageWindow();
++                }
++
++                tbar = this._defaultImageToolbar;
++                tbar.editor_el = el;
++                
++
++                var bsize = '0',
++                    btype = 'solid';
++
++                if (el.style.borderLeftWidth) {
++                    bsize = parseInt(el.style.borderLeftWidth, 10);
++                }
++                if (el.style.borderLeftStyle) {
++                    btype = el.style.borderLeftStyle;
++                }
++                var bs_button = tbar.getButtonByValue('bordersize'),
++                    bSizeStr = ((parseInt(bsize, 10) > 0) ? '' : this.STR_NONE);
++                bs_button.set('label', '<span class="yui-toolbar-bordersize-' + bsize + '">' + bSizeStr + '</span>');
++                this._updateMenuChecked('bordersize', bsize, tbar);
++
++                var bt_button = tbar.getButtonByValue('bordertype');
++                bt_button.set('label', '<span class="yui-toolbar-bordertype-' + btype + '">asdfa</span>');
++                this._updateMenuChecked('bordertype', btype, tbar);
++                if (parseInt(bsize, 10) > 0) {
++                    tbar.enableButton(bt_button);
++                    tbar.enableButton(bs_button);
++                    tbar.enableButton('bordercolor');
++                }
++
++                if ((el.align == 'right') || (el.align == 'left')) {
++                    tbar.selectButton(el.align);
++                } else if (el.style.display == 'block') {
++                    tbar.selectButton('block');
++                } else {
++                    tbar.selectButton('inline');
++                }
++                if (parseInt(el.style.marginLeft, 10) > 0) {
++                    tbar.getButtonByValue('padding').set('label', ''+parseInt(el.style.marginLeft, 10));
++                }
++                if (el.style.borderSize) {
++                    tbar.selectButton('bordersize');
++                    tbar.selectButton(parseInt(el.style.borderSize, 10));
++                }
++                tbar.getButtonByValue('padding').set('label', ''+padding);
++
++
++
++                win.setHeader(this.STR_IMAGE_PROP_TITLE);
++                win.setBody(body);
++                //Adobe AIR Code
++                if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
++                    win.setFooter(this.STR_IMAGE_COPY);
++                }
++                this.openWindow(win);
++                Dom.get(this.get('id') + '_insertimage_url').value = src;
++                Dom.get(this.get('id') + '_insertimage_title').value = title;
++                Dom.get(this.get('id') + '_insertimage_link').value = link;
++                Dom.get(this.get('id') + '_insertimage_target').checked = ((target) ? true : false);
++                Dom.get(this.get('id') + '_insertimage_width').value = width;
++                Dom.get(this.get('id') + '_insertimage_height').value = height;
++
++
++                if (((height != oheight) || (width != owidth)) && (!blankimage)) {
++                    var s = document.createElement('span');
++                    s.className = 'info';
++                    s.innerHTML = this.STR_IMAGE_ORIG_SIZE + ': ('+ owidth +' x ' + oheight + ')';
++                    if (Dom.get(this.get('id') + '_insertimage_height').nextSibling) {
++                        var old = Dom.get(this.get('id') + '_insertimage_height').nextSibling;
++                        old.parentNode.removeChild(old);
++                    }
++                    Dom.get(this.get('id') + '_insertimage_height').parentNode.appendChild(s);
++                }
++
++                this.toolbar.selectButton('insertimage');
++                var id = this.get('id');
++                window.setTimeout(function() {
++                    try {
++                        YAHOO.util.Dom.get(id + '_insertimage_url').focus();
++                        if (blankimage) {
++                            YAHOO.util.Dom.get(id + '_insertimage_url').select();
++                        }
++                    } catch (e) {}
++                }, 50);
++
++            });
++        },
++        /**
++        * @private
++        * @method _handleInsertImageWindowClose
++        * @description Handles the closing of the Image Properties Window.
++        */
++        _handleInsertImageWindowClose: function() {
++            var url = Dom.get(this.get('id') + '_insertimage_url'),
++                title = Dom.get(this.get('id') + '_insertimage_title'),
++                link = Dom.get(this.get('id') + '_insertimage_link'),
++                target = Dom.get(this.get('id') + '_insertimage_target'),
++                el = arguments[0].win.el;
++
++            if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
++                el.setAttribute('src', url.value);
++                el.setAttribute('title', title.value);
++                el.setAttribute('alt', title.value);
++                var par = el.parentNode;
++                if (link.value) {
++                    var urlValue = link.value;
++                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                            //Found an @ sign, prefix with mailto:
++                            urlValue = 'mailto:' + urlValue;
++                        } else {
++                            // :// not found adding
++                            urlValue = 'http:/'+'/' + urlValue;
++                        }
++                    }
++                    if (par && this._isElement(par, 'a')) {
++                        par.setAttribute('href', urlValue);
++                        if (target.checked) {
++                            par.setAttribute('target', target.value);
++                        } else {
++                            par.setAttribute('target', '');
++                        }
++                    } else {
++                        var _a = this._getDoc().createElement('a');
++                        _a.setAttribute('href', urlValue);
++                        if (target.checked) {
++                            _a.setAttribute('target', target.value);
++                        } else {
++                            _a.setAttribute('target', '');
++                        }
++                        el.parentNode.replaceChild(_a, el);
++                        _a.appendChild(el);
++                    }
++                } else {
++                    if (par && this._isElement(par, 'a')) {
++                        par.parentNode.replaceChild(el, par);
++                    }
++                }
++            } else {
++                //No url/src given, remove the node from the document
++                el.parentNode.removeChild(el);
++            }
++            Dom.get(this.get('id') + '_insertimage_url').value = '';
++            Dom.get(this.get('id') + '_insertimage_title').value = '';
++            Dom.get(this.get('id') + '_insertimage_link').value = '';
++            Dom.get(this.get('id') + '_insertimage_target').checked = false;
++            Dom.get(this.get('id') + '_insertimage_width').value = 0;
++            Dom.get(this.get('id') + '_insertimage_height').value = 0;
++            this._defaultImageToolbar.resetAllButtons();
++            this.currentElement = [];
++            this.nodeChange();
++        },
++        /**
++        * @property EDITOR_PANEL_ID
++        * @description HTML id to give the properties window in the DOM.
++        * @type String
++        */
++        EDITOR_PANEL_ID: '-panel',
++        /**
++        * @private
++        * @method _renderPanel
++        * @description Renders the panel used for Editor Windows to the document so we can start using it..
++        * @return {<a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>}
++        */
++        _renderPanel: function() {
++            var panelEl = document.createElement('div');
++            Dom.addClass(panelEl, 'yui-editor-panel');
++            panelEl.id = this.get('id') + this.EDITOR_PANEL_ID;
++            panelEl.style.position = 'absolute';
++            panelEl.style.top = '-9999px';
++            panelEl.style.left = '-9999px';
++            document.body.appendChild(panelEl);
++            this.get('element_cont').insertBefore(panelEl, this.get('element_cont').get('firstChild'));
++
++                
++
++            var panel = new YAHOO.widget.Overlay(this.get('id') + this.EDITOR_PANEL_ID, {
++                    width: '300px',
++                    iframe: true,
++                    visible: false,
++                    underlay: 'none',
++                    draggable: false,
++                    close: false
++                });
++            this.set('panel', panel);
++
++            panel.setBody('---');
++            panel.setHeader(' ');
++            panel.setFooter(' ');
++
++
++            var body = document.createElement('div');
++            body.className = this.CLASS_PREFIX + '-body-cont';
++            for (var b in this.browser) {
++                if (this.browser[b]) {
++                    Dom.addClass(body, b);
++                    break;
++                }
++            }
++            Dom.addClass(body, ((YAHOO.widget.Button && (this._defaultToolbar.buttonType == 'advanced')) ? 'good-button' : 'no-button'));
++
++            var _note = document.createElement('h3');
++            _note.className = 'yui-editor-skipheader';
++            _note.innerHTML = this.STR_CLOSE_WINDOW_NOTE;
++            body.appendChild(_note);
++            var form = document.createElement('fieldset');
++            panel.editor_form = form;
++
++            body.appendChild(form);
++            var _close = document.createElement('span');
++            _close.innerHTML = 'X';
++            _close.title = this.STR_CLOSE_WINDOW;
++            _close.className = 'close';
++            
++            Event.on(_close, 'click', this.closeWindow, this, true);
++
++            var _knob = document.createElement('span');
++            _knob.innerHTML = '^';
++            _knob.className = 'knob';
++            panel.editor_knob = _knob;
++
++            var _header = document.createElement('h3');
++            panel.editor_header = _header;
++            _header.innerHTML = '<span></span>';
++
++            panel.setHeader(' '); //Clear the current header
++            panel.appendToHeader(_header);
++            _header.appendChild(_close);
++            _header.appendChild(_knob);
++            panel.setBody(' '); //Clear the current body
++            panel.setFooter(' '); //Clear the current footer
++            panel.appendToBody(body); //Append the new DOM node to it
++
++            Event.on(panel.element, 'click', function(ev) {
++                Event.stopPropagation(ev);
++            });
++
++            var fireShowEvent = function() {
++                panel.bringToTop();
++                YAHOO.util.Dom.setStyle(this.element, 'display', 'block');
++                this._handleWindowInputs(false);
++            };
++            panel.showEvent.subscribe(fireShowEvent, this, true);
++            panel.hideEvent.subscribe(function() {
++                this._handleWindowInputs(true);
++            }, this, true);
++            panel.renderEvent.subscribe(function() {
++                this._renderInsertImageWindow();
++                this._renderCreateLinkWindow();
++                this.fireEvent('windowRender', { type: 'windowRender', panel: panel });
++                this._handleWindowInputs(true);
++            }, this, true);
++
++            if (this.DOMReady) {
++                this.get('panel').render();
++            } else {
++                Event.onDOMReady(function() {
++                    this.get('panel').render();
++                }, this, true);
++            }
++            return this.get('panel');
++        },
++        /**
++        * @method _handleWindowInputs
++        * @param {Boolean} disable The state to set all inputs in all Editor windows to. Defaults to: false.
++        * @description Disables/Enables all fields inside Editor windows. Used in show/hide events to keep window fields from submitting when the parent form is submitted.
++        */
++        _handleWindowInputs: function(disable) {
++            if (!Lang.isBoolean(disable)) {
++                disable = false;
++            }
++            var inputs = this.get('panel').element.getElementsByTagName('input');
++            for (var i = 0; i < inputs.length; i++) {
++                try {
++                    inputs[i].disabled = disable;
++                } catch (e) {}
++            }
++        },
++        /**
++        * @method openWindow
++        * @param {<a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>} win A <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a> instance
++        * @description Opens a new "window/panel"
++        */
++        openWindow: function(win) {
++            
++            YAHOO.log('openWindow: ' + win.name, 'info', 'Editor');
++            var self = this;
++            window.setTimeout(function() {
++                self.toolbar.set('disabled', true); //Disable the toolbar when an editor window is open..
++            }, 10);
++            Event.on(document, 'keydown', this._closeWindow, this, true);
++            
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            
++            var xy = Dom.getXY(this.currentElement[0]),
++            elXY = Dom.getXY(this.get('iframe').get('element')),
++            panel = this.get('panel'),
++            newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
++            wWidth = (parseInt(win.attrs.width, 10) / 2),
++            align = 'center',
++            body = null;
++
++            this.fireEvent('beforeOpenWindow', { type: 'beforeOpenWindow', win: win, panel: panel });
++
++            var form = panel.editor_form;
++            
++            var wins = this._windows;
++            for (var b in wins) {
++                if (Lang.hasOwnProperty(wins, b)) {
++                    if (wins[b] && wins[b].body) {
++                        if (b == win.name) {
++                            Dom.setStyle(wins[b].body, 'display', 'block');
++                        } else {
++                            Dom.setStyle(wins[b].body, 'display', 'none');
++                        }
++                    }
++                }
++            }
++            
++            if (this._windows[win.name].body) {
++                Dom.setStyle(this._windows[win.name].body, 'display', 'block');
++                form.appendChild(this._windows[win.name].body);
++            } else {
++                if (Lang.isObject(win.body)) { //Assume it's a reference
++                    form.appendChild(win.body);
++                } else { //Assume it's a string
++                    var _tmp = document.createElement('div');
++                    _tmp.innerHTML = win.body;
++                    form.appendChild(_tmp);
++                }
++            }
++            panel.editor_header.firstChild.innerHTML = win.header;
++            if (win.footer !== null) {
++                panel.setFooter(win.footer);
++            }
++            panel.cfg.setProperty('width', win.attrs.width);
++
++            this.currentWindow = win;
++            this.moveWindow(true);
++            panel.show();
++            this.fireEvent('afterOpenWindow', { type: 'afterOpenWindow', win: win, panel: panel });
++        },
++        /**
++        * @method moveWindow
++        * @param {Boolean} force Boolean to tell it to move but not use any animation (Usually done the first time the window is loaded.)
++        * @description Realign the window with the currentElement and reposition the knob above the panel.
++        */
++        moveWindow: function(force) {
++            if (!this.currentWindow) {
++                return false;
++            }
++            var win = this.currentWindow,
++                xy = Dom.getXY(this.currentElement[0]),
++                elXY = Dom.getXY(this.get('iframe').get('element')),
++                panel = this.get('panel'),
++                //newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
++                newXY = [(xy[0] + elXY[0]), (xy[1] + elXY[1])],
++                wWidth = (parseInt(win.attrs.width, 10) / 2),
++                align = 'center',
++                orgXY = panel.cfg.getProperty('xy') || [0,0],
++                _knob = panel.editor_knob,
++                xDiff = 0,
++                yDiff = 0,
++                anim = false;
++
++
++            newXY[0] = ((newXY[0] - wWidth) + 20);
++            //Account for the Scroll bars in a scrolled editor window.
++            newXY[0] = newXY[0] - Dom.getDocumentScrollLeft(this._getDoc());
++            newXY[1] = newXY[1] - Dom.getDocumentScrollTop(this._getDoc());
++            
++            if (this._isElement(this.currentElement[0], 'img')) {
++                if (this.currentElement[0].src.indexOf(this.get('blankimage')) != -1) {
++                    newXY[0] = (newXY[0] + (75 / 2)); //Placeholder size
++                    newXY[1] = (newXY[1] + 75); //Placeholder sizea
++                } else {
++                    var w = parseInt(this.currentElement[0].width, 10);
++                    var h = parseInt(this.currentElement[0].height, 10);
++                    newXY[0] = (newXY[0] + (w / 2));
++                    newXY[1] = (newXY[1] + h);
++                }
++                newXY[1] = newXY[1] + 15;
++            } else {
++                var fs = Dom.getStyle(this.currentElement[0], 'fontSize');
++                if (fs && fs.indexOf && fs.indexOf('px') != -1) {
++                    newXY[1] = newXY[1] + parseInt(Dom.getStyle(this.currentElement[0], 'fontSize'), 10) + 5;
++                } else {
++                    newXY[1] = newXY[1] + 20;
++                }
++            }
++            if (newXY[0] < elXY[0]) {
++                newXY[0] = elXY[0] + 5;
++                align = 'left';
++            }
++
++            if ((newXY[0] + (wWidth * 2)) > (elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10))) {
++                newXY[0] = ((elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10)) - (wWidth * 2) - 5);
++                align = 'right';
++            }
++            
++            try {
++                xDiff = (newXY[0] - orgXY[0]);
++                yDiff = (newXY[1] - orgXY[1]);
++            } catch (e) {}
++
++
++            var iTop = elXY[1] + parseInt(this.get('height'), 10);
++            var iLeft = elXY[0] + parseInt(this.get('width'), 10);
++            if (newXY[1] > iTop) {
++                newXY[1] = iTop;
++            }
++            if (newXY[0] > iLeft) {
++                newXY[0] = (iLeft / 2);
++            }
++            
++            //Convert negative numbers to positive so we can get the difference in distance
++            xDiff = ((xDiff < 0) ? (xDiff * -1) : xDiff);
++            yDiff = ((yDiff < 0) ? (yDiff * -1) : yDiff);
++
++            if (((xDiff > 10) || (yDiff > 10)) || force) { //Only move the window if it's supposed to move more than 10px or force was passed (new window)
++                var _knobLeft = 0,
++                    elW = 0;
++
++                if (this.currentElement[0].width) {
++                    elW = (parseInt(this.currentElement[0].width, 10) / 2);
++                }
++
++                var leftOffset = xy[0] + elXY[0] + elW;
++                _knobLeft = leftOffset - newXY[0];
++                //Check to see if the knob will go off either side & reposition it
++                if (_knobLeft > (parseInt(win.attrs.width, 10) - 1)) {
++                    _knobLeft = ((parseInt(win.attrs.width, 10) - 30) - 1);
++                } else if (_knobLeft < 40) {
++                    _knobLeft = 1;
++                }
++                if (isNaN(_knobLeft)) {
++                    _knobLeft = 1;
++                }
++                if (force) {
++                    if (_knob) {
++                        _knob.style.left = _knobLeft + 'px';
++                    }
++                    //Removed Animation from a forced move..
++                    panel.cfg.setProperty('xy', newXY);
++                } else {
++                    if (this.get('animate')) {
++                        anim = new YAHOO.util.Anim(panel.element, {}, 0.5, YAHOO.util.Easing.easeOut);
++                        anim.attributes = {
++                            top: {
++                                to: newXY[1]
++                            },
++                            left: {
++                                to: newXY[0]
++                            }
++                        };
++                        anim.onComplete.subscribe(function() {
++                            panel.cfg.setProperty('xy', newXY);
++                        });
++                        //We have to animate the iframe shim at the same time as the panel or we get scrollbar bleed ..
++                        var iframeAnim = new YAHOO.util.Anim(panel.iframe, anim.attributes, 0.5, YAHOO.util.Easing.easeOut);
++
++                        var _knobAnim = new YAHOO.util.Anim(_knob, {
++                            left: {
++                                to: _knobLeft
++                            }
++                        }, 0.6, YAHOO.util.Easing.easeOut);
++                        anim.animate();
++                        iframeAnim.animate();
++                        _knobAnim.animate();
++                    } else {
++                        _knob.style.left = _knobLeft + 'px';
++                        panel.cfg.setProperty('xy', newXY);
++                    }
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _closeWindow
++        * @description Close the currently open EditorWindow with the Escape key.
++        * @param {Event} ev The keypress Event that we are trapping
++        */
++        _closeWindow: function(ev) {
++            //if ((ev.charCode == 87) && ev.shiftKey && ev.ctrlKey) {
++            if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {            
++                if (this.currentWindow) {
++                    this.closeWindow();
++                }
++            }
++        },
++        /**
++        * @method closeWindow
++        * @description Close the currently open EditorWindow.
++        */
++        closeWindow: function(keepOpen) {
++            YAHOO.log('closeWindow: ' + this.currentWindow.name, 'info', 'Editor');
++            this.fireEvent('window' + this.currentWindow.name + 'Close', { type: 'window' + this.currentWindow.name + 'Close', win: this.currentWindow, el: this.currentElement[0] });
++            this.fireEvent('closeWindow', { type: 'closeWindow', win: this.currentWindow });
++            this.currentWindow = null;
++            this.get('panel').hide();
++            this.get('panel').cfg.setProperty('xy', [-900,-900]);
++            this.get('panel').syncIframe(); //Needed to move the iframe with the hidden panel
++            this.unsubscribeAll('afterExecCommand');
++            this.toolbar.set('disabled', false); //enable the toolbar now that the window is closed
++            this.toolbar.resetAllButtons();
++            this.focus();
++            Event.removeListener(document, 'keydown', this._closeWindow);
++        },
++
++        /* {{{  Command Overrides - These commands are only over written when we are using the advanced version */
++        
++        /**
++        * @method cmd_undo
++        * @description Pulls an item from the Undo stack and updates the Editor
++        * @param value Value passed from the execCommand method
++        */
++        cmd_undo: function(value) {
++            if (this._hasUndoLevel()) {
++                var c_html = this.getEditorHTML(), html;
++                if (!this._undoLevel) {
++                    this._undoLevel = this._undoCache.length;
++                }
++                this._undoLevel = (this._undoLevel - 1);
++                if (this._undoCache[this._undoLevel]) {
++                    html = this._getUndo(this._undoLevel);
++                    if (html != c_html) {
++                        this.setEditorHTML(html);
++                    } else {
++                        this._undoLevel = (this._undoLevel - 1);
++                        html = this._getUndo(this._undoLevel);
++                        if (html != c_html) {
++                            this.setEditorHTML(html);
++                        }
++                    }
++                } else {
++                    this._undoLevel = 0;
++                    this.toolbar.disableButton('undo');
++                }
++            }
++            return [false];
++        },
++
++        /**
++        * @method cmd_redo
++        * @description Pulls an item from the Undo stack and updates the Editor
++        * @param value Value passed from the execCommand method
++        */
++        cmd_redo: function(value) {
++            this._undoLevel = this._undoLevel + 1;
++            if (this._undoLevel >= this._undoCache.length) {
++                this._undoLevel = this._undoCache.length;
++            }
++            YAHOO.log(this._undoLevel + ' :: ' + this._undoCache.length, 'warn', 'SimpleEditor');
++            if (this._undoCache[this._undoLevel]) {
++                var html = this._getUndo(this._undoLevel);
++                this.setEditorHTML(html);
++            } else {
++                this.toolbar.disableButton('redo');
++            }
++            return [false];
++        },       
++        
++        /**
++        * @method cmd_heading
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('heading') is used.
++        */
++        cmd_heading: function(value) {
++            var exec = true,
++                el = null,
++                action = 'heading',
++                _sel = this._getSelection(),
++                _selEl = this._getSelectedElement();
++
++            if (_selEl) {
++                _sel = _selEl;
++            }
++            
++            if (this.browser.ie) {
++                action = 'formatblock';
++            }
++            if (value == this.STR_NONE) {
++                if ((_sel && _sel.tagName && (_sel.tagName.toLowerCase().substring(0,1) == 'h')) || (_sel && _sel.parentNode && _sel.parentNode.tagName && (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h'))) {
++                    if (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h') {
++                        _sel = _sel.parentNode;
++                    }
++                    if (this._isElement(_sel, 'html')) {
++                        return [false];
++                    }
++                    el = this._swapEl(_selEl, 'span', function(el) {
++                        el.className = 'yui-non';
++                    });
++                    this._selectNode(el);
++                    this.currentElement[0] = el;
++                }
++                exec = false;
++            } else {
++                if (this._isElement(_selEl, 'h1') || this._isElement(_selEl, 'h2') || this._isElement(_selEl, 'h3') || this._isElement(_selEl, 'h4') || this._isElement(_selEl, 'h5') || this._isElement(_selEl, 'h6')) {
++                    el = this._swapEl(_selEl, value);
++                    this._selectNode(el);
++                    this.currentElement[0] = el;
++                } else {
++                    this._createCurrentElement(value);
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            }
++            return [exec, action];
++        },
++        /**
++        * @method cmd_hiddenelements
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('hiddenelements') is used.
++        */
++        cmd_hiddenelements: function(value) {
++            if (this._showingHiddenElements) {
++                //Don't auto highlight the hidden button
++                this._lastButton = null;
++                YAHOO.log('Enabling hidden CSS File', 'info', 'SimpleEditor');
++                this._showingHiddenElements = false;
++                this.toolbar.deselectButton('hiddenelements');
++                Dom.removeClass(this._getDoc().body, this.CLASS_HIDDEN);
++            } else {
++                YAHOO.log('Disabling hidden CSS File', 'info', 'SimpleEditor');
++                this._showingHiddenElements = true;
++                Dom.addClass(this._getDoc().body, this.CLASS_HIDDEN);
++                this.toolbar.selectButton('hiddenelements');
++            }
++            return [false];
++        },
++        /**
++        * @method cmd_removeformat
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('removeformat') is used.
++        */
++        cmd_removeformat: function(value) {
++            var exec = true;
++            /*
++            * @knownissue Remove Format issue
++            * @browser Safari 2.x
++            * @description There is an issue here with Safari, that it may not always remove the format of the item that is selected.
++            * Due to the way that Safari 2.x handles ranges, it is very difficult to determine what the selection holds.
++            * So here we are making the best possible guess and acting on it.
++            */
++            if (this.browser.webkit && !this._getDoc().queryCommandEnabled('removeformat')) {
++                var _txt = this._getSelection()+'';
++                this._createCurrentElement('span');
++                this.currentElement[0].className = 'yui-non';
++                this.currentElement[0].innerHTML = _txt;
++                for (var i = 1; i < this.currentElement.length; i++) {
++                    this.currentElement[i].parentNode.removeChild(this.currentElement[i]);
++                }
++                
++                exec = false;
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_script
++        * @param action action passed from the execCommand method
++        * @param value Value passed from the execCommand method
++        * @description This is a combined execCommand override method. It is called from the cmd_superscript and cmd_subscript methods.
++        */
++        cmd_script: function(action, value) {
++            var exec = true, tag = action.toLowerCase().substring(0, 3),
++                _span = null, _selEl = this._getSelectedElement();
++
++            if (this.browser.webkit) {
++                YAHOO.log('Safari dom fun again (' + action + ')..', 'info', 'EditorSafari');
++                if (this._isElement(_selEl, tag)) {
++                    YAHOO.log('we are a child of tag (' + tag + '), reverse process', 'info', 'EditorSafari');
++                    _span = this._swapEl(this.currentElement[0], 'span', function(el) {
++                        el.className = 'yui-non';
++                    });
++                    this._selectNode(_span);
++                } else {
++                    this._createCurrentElement(tag);
++                    var _sub = this._swapEl(this.currentElement[0], tag);
++                    this._selectNode(_sub);
++                    this.currentElement[0] = _sub;
++                }
++                exec = false;
++            }
++            return exec;
++        },
++        /**
++        * @method cmd_superscript
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('superscript') is used.
++        */
++        cmd_superscript: function(value) {
++            return [this.cmd_script('superscript', value)];
++        },
++        /**
++        * @method cmd_subscript
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('subscript') is used.
++        */
++        cmd_subscript: function(value) {
++            return [this.cmd_script('subscript', value)];
++        },
++        /**
++        * @method cmd_indent
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('indent') is used.
++        */
++        cmd_indent: function(value) {
++            var exec = true, selEl = this._getSelectedElement(), _bq = null;
++
++            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
++            //if (this.browser.webkit || this.browser.ie) {
++            if (this.browser.ie) {
++                if (this._isElement(selEl, 'blockquote')) {
++                    _bq = this._getDoc().createElement('blockquote');
++                    _bq.innerHTML = selEl.innerHTML;
++                    selEl.innerHTML = '';
++                    selEl.appendChild(_bq);
++                    this._selectNode(_bq);
++                } else {
++                    _bq = this._getDoc().createElement('blockquote');
++                    var html = this._getRange().htmlText;
++                    _bq.innerHTML = html;
++                    this._createCurrentElement('blockquote');
++                    /*
++                    for (var i = 0; i < this.currentElement.length; i++) {
++                        _bq = this._getDoc().createElement('blockquote');
++                        _bq.innerHTML = this.currentElement[i].innerHTML;
++                        this.currentElement[i].parentNode.replaceChild(_bq, this.currentElement[i]);
++                        this.currentElement[i] = _bq;
++                    }
++                    */
++                    this.currentElement[0].parentNode.replaceChild(_bq, this.currentElement[0]);
++                    this.currentElement[0] = _bq;
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            } else {
++                value = 'blockquote';
++            }
++            return [exec, 'formatblock', value];
++        },
++        /**
++        * @method cmd_outdent
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('outdent') is used.
++        */
++        cmd_outdent: function(value) {
++            var exec = true, selEl = this._getSelectedElement(), _bq = null, _span = null;
++            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
++            if (this.browser.webkit || this.browser.ie) {
++            //if (this.browser.ie) {
++                selEl = this._getSelectedElement();
++                if (this._isElement(selEl, 'blockquote')) {
++                    var par = selEl.parentNode;
++                    if (this._isElement(selEl.parentNode, 'blockquote')) {
++                        par.innerHTML = selEl.innerHTML;
++                        this._selectNode(par);
++                    } else {
++                        _span = this._getDoc().createElement('span');
++                        _span.innerHTML = selEl.innerHTML;
++                        YAHOO.util.Dom.addClass(_span, 'yui-non');
++                        par.replaceChild(_span, selEl);
++                        this._selectNode(_span);
++                    }
++                } else {
++                    YAHOO.log('Can not outdent, we are not inside a blockquote', 'warn', 'Editor');
++                }
++                exec = false;
++            } else {
++                value = false;
++            }
++            return [exec, 'outdent', value];
++        },
++        /**
++        * @method cmd_justify
++        * @param dir The direction to justify
++        * @description This is a factory method for the justify family of commands.
++        */
++        cmd_justify: function(dir) {
++            if (this.browser.ie) {
++                if (this._hasSelection()) {
++                    this._createCurrentElement('span');
++                    this._swapEl(this.currentElement[0], 'div', function(el) {
++                        el.style.textAlign = dir;
++                    });
++                    
++                    return [false];
++                }
++            }
++            return [true, 'justify' + dir, ''];
++        },
++        /**
++        * @method cmd_justifycenter
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifycenter') is used.
++        */
++        cmd_justifycenter: function() {
++            return [this.cmd_justify('center')];
++        },
++        /**
++        * @method cmd_justifyleft
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyleft') is used.
++        */
++        cmd_justifyleft: function() {
++            return [this.cmd_justify('left')];
++        },
++        /**
++        * @method cmd_justifyright
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyright') is used.
++        */
++        cmd_justifyright: function() {
++            return [this.cmd_justify('right')];
++        },
++        /* }}}*/        
++        /**
++        * @method toString
++        * @description Returns a string representing the editor.
++        * @return {String}
++        */
++        toString: function() {
++            var str = 'Editor';
++            if (this.get && this.get('element_cont')) {
++                str = 'Editor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
++            }
++            return str;
++        }
++    });
++/**
++* @event beforeOpenWindow
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Event fires before an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterOpenWindow
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Event fires after an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event closeWindow
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @description Event fires after an Editor Window is closed. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowCMDOpen
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is opened.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkOpen event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowCMDClose
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is closed.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkClose event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowRender
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Event fired when the initial Overlay is rendered. Can be used to manipulate the content of the panel.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowInsertImageRender
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @param {HTMLElement} body The HTML element used as the body of the window..
++* @param {Toolbar} toolbar A reference to the toolbar object used inside this window.
++* @description Event fired when the pre render of the Insert Image window has finished.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowCreateLinkRender
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @param {HTMLElement} body The HTML element used as the body of the window..
++* @description Event fired when the pre render of the Create Link window has finished.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++
++    /**
++     * @description Class to hold Window information between uses. We use the same panel to show the windows, so using this will allow you to configure a window before it is shown.
++     * This is what you pass to Editor.openWindow();. These parameters will not take effect until the openWindow() is called in the editor.
++     * @class EditorWindow
++     * @param {String} name The name of the window.
++     * @param {Object} attrs Attributes for the window. Current attributes used are : height and width
++    */
++    YAHOO.widget.EditorWindow = function(name, attrs) {
++        /**
++        * @private
++        * @property name
++        * @description A unique name for the window
++        */
++        this.name = name.replace(' ', '_');
++        /**
++        * @private
++        * @property attrs
++        * @description The window attributes
++        */
++        this.attrs = attrs;
++    };
++
++    YAHOO.widget.EditorWindow.prototype = {
++        /**
++        * @private
++        * @property header
++        * @description Holder for the header of the window, used in Editor.openWindow
++        */
++        header: null,
++        /**
++        * @private
++        * @property body
++        * @description Holder for the body of the window, used in Editor.openWindow
++        */
++        body: null,
++        /**
++        * @private
++        * @property footer
++        * @description Holder for the footer of the window, used in Editor.openWindow
++        */
++        footer: null,
++        /**
++        * @method setHeader
++        * @description Sets the header for the window.
++        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows header.
++        */
++        setHeader: function(str) {
++            this.header = str;
++        },
++        /**
++        * @method setBody
++        * @description Sets the body for the window.
++        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows body.
++        */
++        setBody: function(str) {
++            this.body = str;
++        },
++        /**
++        * @method setFooter
++        * @description Sets the footer for the window.
++        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows footer.
++        */
++        setFooter: function(str) {
++            this.footer = str;
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the EditorWindow.
++        * @return {String}
++        */
++        toString: function() {
++            return 'Editor Window (' + this.name + ')';
++        }
++    };
++})();
++YAHOO.register("editor", YAHOO.widget.Editor, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/editor/editor-min.js b/pylons_app/public/js/yui/editor/editor-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/editor-min.js
+@@ -0,0 +1,30 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(F){var E=this.getMenu().getItems();if(E.length===0){this.getMenu()._onBeforeShow();E=this.getMenu().getItems();}for(var D=0;D<E.length;D++){E[D].cfg.setProperty("checked",false);if(E[D].value==F){E[D].cfg.setProperty("checked",true);}}};}else{YAHOO.widget.ToolbarButtonAdvanced=function(){};}YAHOO.widget.ToolbarButton=function(E,D){if(C.isObject(arguments[0])&&!B.get(E).nodeType){D=E;}var G=(D||{});var F={element:null,attributes:G};if(!F.attributes.type){F.attributes.type="push";}F.element=document.createElement("span");F.element.setAttribute("unselectable","on");F.element.className="yui-button yui-"+F.attributes.type+"-button";F.element.innerHTML='<span class="first-child"><a href="#">LABEL</a></span>';F.element.firstChild.firstChild.tabIndex="-1";F.attributes.id=(F.attributes.id||B.generateId());F.element.id=F.attributes.id;YAHOO.widget.ToolbarButton.superclass.constructor.call(this,F.element,F.attributes);};YAHOO.extend(YAHOO.widget.ToolbarButton,YAHOO.util.Element,{buttonType:"normal",_handleMouseOver:function(){if(!this.get("disabled")){this.addClass("yui-button-hover");this.addClass("yui-"+this.get("type")+"-button-hover");}},_handleMouseOut:function(){this.removeClass("yui-button-hover");this.removeClass("yui-"+this.get("type")+"-button-hover");},checkValue:function(F){if(this.get("type")=="menu"){var E=this._button.options;for(var D=0;D<E.length;D++){if(E[D].value==F){E.selectedIndex=D;}}}},init:function(E,D){YAHOO.widget.ToolbarButton.superclass.init.call(this,E,D);this.on("mouseover",this._handleMouseOver,this,true);this.on("mouseout",this._handleMouseOut,this,true);this.on("click",function(F){A.stopEvent(F);return false;},this,true);},initAttributes:function(D){YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this,D);this.setAttributeConfig("value",{value:D.value});this.setAttributeConfig("menu",{value:D.menu||false});this.setAttributeConfig("type",{value:D.type,writeOnce:true,method:function(H){var G,F;if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}switch(H){case"select":case"menu":G=document.createElement("select");G.id=this.get("id");var I=this.get("menu");for(var E=0;E<I.length;E++){F=document.createElement("option");F.innerHTML=I[E].text;F.value=I[E].value;if(I[E].checked){F.selected=true;}G.appendChild(F);}this._button.parentNode.replaceChild(G,this._button);A.on(G,"change",this._handleSelect,this,true);this._button=G;break;}}});this.setAttributeConfig("disabled",{value:D.disabled||false,method:function(E){if(E){this.addClass("yui-button-disabled");this.addClass("yui-"+this.get("type")+"-button-disabled");}else{this.removeClass("yui-button-disabled");this.removeClass("yui-"+this.get("type")+"-button-disabled");}if((this.get("type")=="menu")||(this.get("type")=="select")){this._button.disabled=E;}}});this.setAttributeConfig("label",{value:D.label,method:function(E){if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}if(this.get("type")=="push"){this._button.innerHTML=E;}}});this.setAttributeConfig("title",{value:D.title});this.setAttributeConfig("container",{value:null,writeOnce:true,method:function(E){this.appendTo(E);}});},_handleSelect:function(E){var D=A.getTarget(E);var F=D.options[D.selectedIndex].value;this.fireEvent("change",{type:"change",value:F});},getMenu:function(){return this.get("menu");},destroy:function(){A.purgeElement(this.get("element"),true);this.get("element").parentNode.removeChild(this.get("element"));for(var D in this){if(C.hasOwnProperty(this,D)){this[D]=null;}}},fireEvent:function(E,D){if(this.DOM_EVENTS[E]&&this.get("disabled")){A.stopEvent(D);return;}YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this,E,D);},toString:function(){return"ToolbarButton ("+this.get("id")+")";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F){var E=F;if(D.isString(F)){E=this.getButtonById(F);}if(D.isNumber(F)){E=this.getButtonByIndex(F);}if((!(E instanceof YAHOO.widget.ToolbarButton))&&(!(E instanceof YAHOO.widget.ToolbarButtonAdvanced))){E=this.getButtonByValue(F);}if((E instanceof YAHOO.widget.ToolbarButton)||(E instanceof YAHOO.widget.ToolbarButtonAdvanced)){return E;}return false;};YAHOO.widget.Toolbar=function(I,H){if(D.isObject(arguments[0])&&!C.get(I).nodeType){H=I;}var K={};if(H){D.augmentObject(K,H);}var J={element:null,attributes:K};if(D.isString(I)&&C.get(I)){J.element=C.get(I);}else{if(D.isObject(I)&&C.get(I)&&C.get(I).nodeType){J.element=C.get(I);}}if(!J.element){J.element=document.createElement("DIV");J.element.id=C.generateId();if(K.container&&C.get(K.container)){C.get(K.container).appendChild(J.element);}}if(!J.element.id){J.element.id=((D.isString(I))?I:C.generateId());}var F=document.createElement("fieldset");var G=document.createElement("legend");G.innerHTML="Toolbar";F.appendChild(G);var E=document.createElement("DIV");J.attributes.cont=E;C.addClass(E,"yui-toolbar-subcont");F.appendChild(E);J.element.appendChild(F);J.element.tabIndex=-1;J.attributes.element=J.element;J.attributes.id=J.element.id;this._configuredButtons=[];YAHOO.widget.Toolbar.superclass.constructor.call(this,J.element,J.attributes);};YAHOO.extend(YAHOO.widget.Toolbar,YAHOO.util.Element,{_configuredButtons:null,_addMenuClasses:function(H,E,I){C.addClass(this.element,"yui-toolbar-"+I.get("value")+"-menu");if(C.hasClass(I._button.parentNode.parentNode,"yui-toolbar-select")){C.addClass(this.element,"yui-toolbar-select-menu");}var F=this.getItems();for(var G=0;G<F.length;G++){C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-").toLowerCase():F[G]._oText.nodeValue.replace(/ /g,"-").toLowerCase()));C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-"):F[G]._oText.nodeValue.replace(/ /g,"-")));
++}},buttonType:YAHOO.widget.ToolbarButton,dd:null,_colorData:{"#111111":"Obsidian","#2D2D2D":"Dark Gray","#434343":"Shale","#5B5B5B":"Flint","#737373":"Gray","#8B8B8B":"Concrete","#A2A2A2":"Gray","#B9B9B9":"Titanium","#000000":"Black","#D0D0D0":"Light Gray","#E6E6E6":"Silver","#FFFFFF":"White","#BFBF00":"Pumpkin","#FFFF00":"Yellow","#FFFF40":"Banana","#FFFF80":"Pale Yellow","#FFFFBF":"Butter","#525330":"Raw Siena","#898A49":"Mildew","#AEA945":"Olive","#7F7F00":"Paprika","#C3BE71":"Earth","#E0DCAA":"Khaki","#FCFAE1":"Cream","#60BF00":"Cactus","#80FF00":"Chartreuse","#A0FF40":"Green","#C0FF80":"Pale Lime","#DFFFBF":"Light Mint","#3B5738":"Green","#668F5A":"Lime Gray","#7F9757":"Yellow","#407F00":"Clover","#8A9B55":"Pistachio","#B7C296":"Light Jade","#E6EBD5":"Breakwater","#00BF00":"Spring Frost","#00FF80":"Pastel Green","#40FFA0":"Light Emerald","#80FFC0":"Sea Foam","#BFFFDF":"Sea Mist","#033D21":"Dark Forrest","#438059":"Moss","#7FA37C":"Medium Green","#007F40":"Pine","#8DAE94":"Yellow Gray Green","#ACC6B5":"Aqua Lung","#DDEBE2":"Sea Vapor","#00BFBF":"Fog","#00FFFF":"Cyan","#40FFFF":"Turquoise Blue","#80FFFF":"Light Aqua","#BFFFFF":"Pale Cyan","#033D3D":"Dark Teal","#347D7E":"Gray Turquoise","#609A9F":"Green Blue","#007F7F":"Seaweed","#96BDC4":"Green Gray","#B5D1D7":"Soapstone","#E2F1F4":"Light Turquoise","#0060BF":"Summer Sky","#0080FF":"Sky Blue","#40A0FF":"Electric Blue","#80C0FF":"Light Azure","#BFDFFF":"Ice Blue","#1B2C48":"Navy","#385376":"Biscay","#57708F":"Dusty Blue","#00407F":"Sea Blue","#7792AC":"Sky Blue Gray","#A8BED1":"Morning Sky","#DEEBF6":"Vapor","#0000BF":"Deep Blue","#0000FF":"Blue","#4040FF":"Cerulean Blue","#8080FF":"Evening Blue","#BFBFFF":"Light Blue","#212143":"Deep Indigo","#373E68":"Sea Blue","#444F75":"Night Blue","#00007F":"Indigo Blue","#585E82":"Dockside","#8687A4":"Blue Gray","#D2D1E1":"Light Blue Gray","#6000BF":"Neon Violet","#8000FF":"Blue Violet","#A040FF":"Violet Purple","#C080FF":"Violet Dusk","#DFBFFF":"Pale Lavender","#302449":"Cool Shale","#54466F":"Dark Indigo","#655A7F":"Dark Violet","#40007F":"Violet","#726284":"Smoky Violet","#9E8FA9":"Slate Gray","#DCD1DF":"Violet White","#BF00BF":"Royal Violet","#FF00FF":"Fuchsia","#FF40FF":"Magenta","#FF80FF":"Orchid","#FFBFFF":"Pale Magenta","#4A234A":"Dark Purple","#794A72":"Medium Purple","#936386":"Cool Granite","#7F007F":"Purple","#9D7292":"Purple Moon","#C0A0B6":"Pale Purple","#ECDAE5":"Pink Cloud","#BF005F":"Hot Pink","#FF007F":"Deep Pink","#FF409F":"Grape","#FF80BF":"Electric Pink","#FFBFDF":"Pink","#451528":"Purple Red","#823857":"Purple Dino","#A94A76":"Purple Gray","#7F003F":"Rose","#BC6F95":"Antique Mauve","#D8A5BB":"Cool Marble","#F7DDE9":"Pink Granite","#C00000":"Apple","#FF0000":"Fire Truck","#FF4040":"Pale Red","#FF8080":"Salmon","#FFC0C0":"Warm Pink","#441415":"Sepia","#82393C":"Rust","#AA4D4E":"Brick","#800000":"Brick Red","#BC6E6E":"Mauve","#D8A3A4":"Shrimp Pink","#F8DDDD":"Shell Pink","#BF5F00":"Dark Orange","#FF7F00":"Orange","#FF9F40":"Grapefruit","#FFBF80":"Canteloupe","#FFDFBF":"Wax","#482C1B":"Dark Brick","#855A40":"Dirt","#B27C51":"Tan","#7F3F00":"Nutmeg","#C49B71":"Mustard","#E1C4A8":"Pale Tan","#FDEEE0":"Marble"},_colorPicker:null,STR_COLLAPSE:"Collapse Toolbar",STR_EXPAND:"Expand Toolbar",STR_SPIN_LABEL:"Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.",STR_SPIN_UP:"Click to increase the value of this input",STR_SPIN_DOWN:"Click to decrease the value of this input",_titlebar:null,browser:YAHOO.env.ua,_buttonList:null,_buttonGroupList:null,_sep:null,_sepCount:null,_dragHandle:null,_toolbarConfigs:{renderer:true},CLASS_CONTAINER:"yui-toolbar-container",CLASS_DRAGHANDLE:"yui-toolbar-draghandle",CLASS_SEPARATOR:"yui-toolbar-separator",CLASS_DISABLED:"yui-toolbar-disabled",CLASS_PREFIX:"yui-toolbar",init:function(F,E){YAHOO.widget.Toolbar.superclass.init.call(this,F,E);},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return true;}return false;},method:function(F){if(F=="advanced"){if(YAHOO.widget.Button){this.buttonType=YAHOO.widget.ToolbarButtonAdvanced;}else{this.buttonType=YAHOO.widget.ToolbarButton;}}else{this.buttonType=YAHOO.widget.ToolbarButton;}}});this.setAttributeConfig("buttons",{value:[],writeOnce:true,method:function(K){var I,H,J,G,F;for(I in K){if(D.hasOwnProperty(K,I)){if(K[I].type=="separator"){this.addSeparator();}else{if(K[I].group!==undefined){J=this.addButtonGroup(K[I]);if(J){G=J.length;for(F=0;F<G;F++){if(J[F]){this._configuredButtons[this._configuredButtons.length]=J[F].id;}}}}else{H=this.addButton(K[I]);if(H){this._configuredButtons[this._configuredButtons.length]=H.id;}}}}}}});this.setAttributeConfig("disabled",{value:false,method:function(F){if(this.get("disabled")===F){return false;}if(F){this.addClass(this.CLASS_DISABLED);this.set("draggable",false);this.disableAllButtons();}else{this.removeClass(this.CLASS_DISABLED);if(this._configs.draggable._initialConfig.value){this.set("draggable",true);}this.resetAllButtons();}}});this.setAttributeConfig("cont",{value:E.cont,readOnly:true});this.setAttributeConfig("grouplabels",{value:((E.grouplabels===false)?false:true),method:function(F){if(F){C.removeClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}else{C.addClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}}});this.setAttributeConfig("titlebar",{value:false,method:function(G){if(G){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}this._titlebar=document.createElement("DIV");this._titlebar.tabIndex="-1";A.on(this._titlebar,"focus",function(){this._handleFocus();},this,true);C.addClass(this._titlebar,this.CLASS_PREFIX+"-titlebar");if(D.isString(G)){var F=document.createElement("h2");F.tabIndex="-1";F.innerHTML='<a href="#" tabIndex="0">'+G+"</a>";
++this._titlebar.appendChild(F);A.on(F.firstChild,"click",function(H){A.stopEvent(H);});A.on([F,F.firstChild],"focus",function(){this._handleFocus();},this,true);}if(this.get("firstChild")){this.insertBefore(this._titlebar,this.get("firstChild"));}else{this.appendChild(this._titlebar);}if(this.get("collapse")){this.set("collapse",true);}}else{if(this._titlebar){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}}}}});this.setAttributeConfig("collapse",{value:false,method:function(H){if(this._titlebar){var G=null;var F=C.getElementsByClassName("collapse","span",this._titlebar);if(H){if(F.length>0){return true;}G=document.createElement("SPAN");G.innerHTML="X";G.title=this.STR_COLLAPSE;C.addClass(G,"collapse");this._titlebar.appendChild(G);A.addListener(G,"click",function(){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}else{this.collapse();}},this,true);}else{G=C.getElementsByClassName("collapse","span",this._titlebar);if(G[0]){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}G[0].parentNode.removeChild(G[0]);}}}}});this.setAttributeConfig("draggable",{value:(E.draggable||false),method:function(F){if(F&&!this.get("titlebar")){if(!this._dragHandle){this._dragHandle=document.createElement("SPAN");this._dragHandle.innerHTML="|";this._dragHandle.setAttribute("title","Click to drag the toolbar");this._dragHandle.id=this.get("id")+"_draghandle";C.addClass(this._dragHandle,this.CLASS_DRAGHANDLE);if(this.get("cont").hasChildNodes()){this.get("cont").insertBefore(this._dragHandle,this.get("cont").firstChild);}else{this.get("cont").appendChild(this._dragHandle);}this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._dragHandle.id);}}else{if(this._dragHandle){this._dragHandle.parentNode.removeChild(this._dragHandle);this._dragHandle=null;this.dd=null;}}if(this._titlebar){if(F){this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._titlebar);C.addClass(this._titlebar,"draggable");}else{C.removeClass(this._titlebar,"draggable");if(this.dd){this.dd.unreg();this.dd=null;}}}},validator:function(G){var F=true;if(!YAHOO.util.DD){F=false;}return F;}});},addButtonGroup:function(J){if(!this.get("element")){this._queue[this._queue.length]=["addButtonGroup",arguments];return false;}if(!this.hasClass(this.CLASS_PREFIX+"-grouped")){this.addClass(this.CLASS_PREFIX+"-grouped");}var L=document.createElement("DIV");C.addClass(L,this.CLASS_PREFIX+"-group");C.addClass(L,this.CLASS_PREFIX+"-group-"+J.group);if(J.label){var F=document.createElement("h3");F.innerHTML=J.label;L.appendChild(F);}if(!this.get("grouplabels")){C.addClass(this.get("cont"),this.CLASS_PREFIX,"-nogrouplabels");}this.get("cont").appendChild(L);var I=document.createElement("ul");L.appendChild(I);if(!this._buttonGroupList){this._buttonGroupList={};}this._buttonGroupList[J.group]=I;var K=[],H;for(var G=0;G<J.buttons.length;G++){var E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";I.appendChild(E);if((J.buttons[G].type!==undefined)&&J.buttons[G].type=="separator"){this.addSeparator(E);}else{J.buttons[G].container=E;H=this.addButton(J.buttons[G]);if(H){K[K.length]=H.id;}}}return K;},addButtonToGroup:function(G,H,I){var F=this._buttonGroupList[H],E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";G.container=E;this.addButton(G,I);F.appendChild(E);},addButton:function(J,I){if(!this.get("element")){this._queue[this._queue.length]=["addButton",arguments];return false;}if(!this._buttonList){this._buttonList=[];}if(!J.container){J.container=this.get("cont");}if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){for(var P in J.menu){if(D.hasOwnProperty(J.menu,P)){var V={fn:function(Y,W,X){if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);},scope:this};J.menu[P].onclick=V;}}}}var Q={},N=false;for(var L in J){if(D.hasOwnProperty(J,L)){if(!this._toolbarConfigs[L]){Q[L]=J[L];}}}if(J.type=="select"){Q.type="menu";}if(J.type=="spin"){Q.type="push";}if(Q.type=="color"){if(YAHOO.widget.Overlay){Q=this._makeColorButton(Q);}else{N=true;}}if(Q.menu){if((YAHOO.widget.Overlay)&&(J.menu instanceof YAHOO.widget.Overlay)){J.menu.showEvent.subscribe(function(){this._button=Q;});}else{for(var O=0;O<Q.menu.length;O++){if(!Q.menu[O].value){Q.menu[O].value=Q.menu[O].text;}}if(this.browser.webkit){Q.focusmenu=false;}}}if(N){J=false;}else{this._configs.buttons.value[this._configs.buttons.value.length]=J;var T=new this.buttonType(Q);T.get("element").tabIndex="-1";T.get("element").setAttribute("role","button");T._selected=true;if(this.get("disabled")){T.set("disabled",true);}if(!J.id){J.id=T.get("id");}if(I){var F=T.get("element");var M=null;if(I.get){M=I.get("element").nextSibling;}else{if(I.nextSibling){M=I.nextSibling;}}if(M){M.parentNode.insertBefore(F,M);}}T.addClass(this.CLASS_PREFIX+"-"+T.get("value"));var S=document.createElement("span");S.className=this.CLASS_PREFIX+"-icon";T.get("element").insertBefore(S,T.get("firstChild"));if(T._button.tagName.toLowerCase()=="button"){T.get("element").setAttribute("unselectable","on");var U=document.createElement("a");U.innerHTML=T._button.innerHTML;U.href="#";U.tabIndex="-1";A.on(U,"click",function(W){A.stopEvent(W);});T._button.parentNode.replaceChild(U,T._button);T._button=U;}if(J.type=="select"){if(T._button.tagName.toLowerCase()=="select"){S.parentNode.removeChild(S);var G=T._button,R=T.get("element");R.parentNode.replaceChild(G,R);T._configs.element.value=G;}else{T.addClass(this.CLASS_PREFIX+"-select");}}if(J.type=="spin"){if(!D.isArray(J.range)){J.range=[10,100];}this._makeSpinButton(T,J);}T.get("element").setAttribute("title",T.get("label"));if(J.type!="spin"){if((YAHOO.widget.Overlay)&&(Q.menu instanceof YAHOO.widget.Overlay)){var H=function(Y){var W=true;if(Y.keyCode&&(Y.keyCode==9)){W=false;}if(W){if(this._colorPicker){this._colorPicker._button=J.value;
++}var X=T.getMenu().element;if(C.getStyle(X,"visibility")=="hidden"){T.getMenu().show();}else{T.getMenu().hide();}}YAHOO.util.Event.stopEvent(Y);};T.on("mousedown",H,J,this);T.on("keydown",H,J,this);}else{if((J.type!="menu")&&(J.type!="select")){T.on("keypress",this._buttonClick,J,this);T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);this._buttonClick(W,J);},J,this);T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});T.on("change",function(W){if(!W.target){if(!J.menucmd){J.menucmd=J.value;}J.value=W.value;this._buttonClick(W,J);}},this,true);var K=this;T.on("appendTo",function(){var W=this;if(W.getMenu()&&W.getMenu().mouseDownEvent){W.getMenu().mouseDownEvent.subscribe(function(Z,Y){var X=Y[1];YAHOO.util.Event.stopEvent(Y[0]);W._onMenuClick(Y[0],W);if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);K._buttonClick.call(K,Y[1],J);W._hideMenu();return false;});W.getMenu().clickEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});W.getMenu().mouseUpEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});}});}}}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}if(this.browser.ie){}if(this.browser.webkit){T.hasFocus=function(){return true;};}this._buttonList[this._buttonList.length]=T;if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){var E=T.getMenu();if(E&&E.renderEvent){E.renderEvent.subscribe(this._addMenuClasses,T);if(J.renderer){E.renderEvent.subscribe(J.renderer,T);}}}}}return J;},addSeparator:function(E,H){if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}var F=((E)?E:this.get("cont"));if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}if(this._sepCount===null){this._sepCount=0;}if(!this._sep){this._sep=document.createElement("SPAN");C.addClass(this._sep,this.CLASS_SEPARATOR);this._sep.innerHTML="|";}var G=this._sep.cloneNode(true);this._sepCount++;C.addClass(G,this.CLASS_SEPARATOR+"-"+this._sepCount);if(H){var I=null;if(H.get){I=H.get("element").nextSibling;}else{if(H.nextSibling){I=H.nextSibling;}else{I=H;}}if(I){if(I==H){I.parentNode.appendChild(G);}else{I.parentNode.insertBefore(G,I);}}}else{F.appendChild(G);}return G;},_createColorPicker:function(H){if(C.get(H+"_colors")){C.get(H+"_colors").parentNode.removeChild(C.get(H+"_colors"));}var E=document.createElement("div");E.className="yui-toolbar-colors";E.id=H+"_colors";E.style.display="none";A.on(window,"load",function(){document.body.appendChild(E);},this,true);this._colorPicker=E;var G="";for(var F in this._colorData){if(D.hasOwnProperty(this._colorData,F)){G+='<a style="background-color: '+F+'" href="#">'+F.replace("#","")+"</a>";}}G+="<span><em>X</em><strong></strong></span>";window.setTimeout(function(){E.innerHTML=G;},0);A.on(E,"mouseover",function(M){var K=this._colorPicker;var L=K.getElementsByTagName("em")[0];var J=K.getElementsByTagName("strong")[0];var I=A.getTarget(M);if(I.tagName.toLowerCase()=="a"){L.style.backgroundColor=I.style.backgroundColor;J.innerHTML=this._colorData["#"+I.innerHTML]+"<br>"+I.innerHTML;}},this,true);A.on(E,"focus",function(I){A.stopEvent(I);});A.on(E,"click",function(I){A.stopEvent(I);});A.on(E,"mousedown",function(J){A.stopEvent(J);var I=A.getTarget(J);if(I.tagName.toLowerCase()=="a"){var L=this.fireEvent("colorPickerClicked",{type:"colorPickerClicked",target:this,button:this._colorPicker._button,color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML]});if(L!==false){var K={color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML],value:this._colorPicker._button};this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:K});}this.getButtonByValue(this._colorPicker._button).getMenu().hide();}},this,true);},_resetColorPicker:function(){var F=this._colorPicker.getElementsByTagName("em")[0];var E=this._colorPicker.getElementsByTagName("strong")[0];F.style.backgroundColor="transparent";E.innerHTML="";},_makeColorButton:function(E){if(!this._colorPicker){this._createColorPicker(this.get("id"));}E.type="color";E.menu=new YAHOO.widget.Overlay(this.get("id")+"_"+E.value+"_menu",{visible:false,position:"absolute",iframe:true});E.menu.setBody("");E.menu.render(this.get("cont"));C.addClass(E.menu.element,"yui-button-menu");C.addClass(E.menu.element,"yui-color-button-menu");E.menu.beforeShowEvent.subscribe(function(){E.menu.cfg.setProperty("zindex",5);E.menu.cfg.setProperty("context",[this.getButtonById(E.id).get("element"),"tl","bl"]);this._resetColorPicker();var F=this._colorPicker;if(F.parentNode){F.parentNode.removeChild(F);}E.menu.setBody("");E.menu.appendToBody(F);this._colorPicker.style.display="block";},this,true);return E;},_makeSpinButton:function(R,L){R.addClass(this.CLASS_PREFIX+"-spinbutton");var S=this,N=R._button.parentNode.parentNode,I=L.range,H=document.createElement("a"),G=document.createElement("a");H.href="#";G.href="#";H.tabIndex="-1";G.tabIndex="-1";H.className="up";H.title=this.STR_SPIN_UP;H.innerHTML=this.STR_SPIN_UP;G.className="down";G.title=this.STR_SPIN_DOWN;G.innerHTML=this.STR_SPIN_DOWN;N.appendChild(H);N.appendChild(G);var M=YAHOO.lang.substitute(this.STR_SPIN_LABEL,{VALUE:R.get("label")});R.set("title",M);var Q=function(T){T=((T<I[0])?I[0]:T);T=((T>I[1])?I[1]:T);return T;};var P=this.browser;var F=false;var K=this.STR_SPIN_LABEL;if(this._titlebar&&this._titlebar.firstChild){F=this._titlebar.firstChild;}var E=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);V++;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var O=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);
++V--;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var J=function(T){if(T.keyCode==38){E(T);}else{if(T.keyCode==40){O(T);}else{if(T.keyCode==107&&T.shiftKey){E(T);}else{if(T.keyCode==109&&T.shiftKey){O(T);}}}}};R.on("keydown",J,this,true);A.on(H,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(G,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(H,"click",E,this,true);A.on(G,"click",O,this,true);},_buttonClick:function(L,F){var E=true;if(L&&L.type=="keypress"){if(L.keyCode==9){E=false;}else{if((L.keyCode===13)||(L.keyCode===0)||(L.keyCode===32)){}else{E=false;}}}if(E){var N=true,H=false;F.isSelected=this.isSelected(F.id);if(F.value){H=this.fireEvent(F.value+"Click",{type:F.value+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(F.menucmd&&N){H=this.fireEvent(F.menucmd+"Click",{type:F.menucmd+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(N){this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:F});}if(F.type=="select"){var K=this.getButtonById(F.id);if(K.buttonType=="rich"){var J=F.value;for(var I=0;I<F.menu.length;I++){if(F.menu[I].value==F.value){J=F.menu[I].text;break;}}K.set("label",'<span class="yui-toolbar-'+F.menucmd+"-"+(F.value).replace(/ /g,"-").toLowerCase()+'">'+J+"</span>");var M=K.getMenu().getItems();for(var G=0;G<M.length;G++){if(M[G].value.toLowerCase()==F.value.toLowerCase()){M[G].cfg.setProperty("checked",true);}else{M[G].cfg.setProperty("checked",false);}}}}if(L){A.stopEvent(L);}}},_keyNav:null,_navCounter:null,_navigateButtons:function(F){switch(F.keyCode){case 37:case 39:if(F.keyCode==37){this._navCounter--;}else{this._navCounter++;}if(this._navCounter>(this._buttonList.length-1)){this._navCounter=0;}if(this._navCounter<0){this._navCounter=(this._buttonList.length-1);}if(this._buttonList[this._navCounter]){var E=this._buttonList[this._navCounter].get("element");if(this.browser.ie){E=this._buttonList[this._navCounter].get("element").getElementsByTagName("a")[0];}if(this._buttonList[this._navCounter].get("disabled")){this._navigateButtons(F);}else{E.focus();}}break;}},_handleFocus:function(){if(!this._keyNav){var E="keypress";if(this.browser.ie){E="keydown";}A.on(this.get("element"),E,this._navigateButtons,this,true);this._keyNav=true;this._navCounter=-1;}},getButtonById:function(G){var E=this._buttonList.length;for(var F=0;F<E;F++){if(this._buttonList[F]&&this._buttonList[F].get("id")==G){return this._buttonList[F];}}return false;},getButtonByValue:function(K){var H=this.get("buttons");if(!H){return false;}var F=H.length;for(var I=0;I<F;I++){if(H[I].group!==undefined){for(var E=0;E<H[I].buttons.length;E++){if((H[I].buttons[E].value==K)||(H[I].buttons[E].menucmd==K)){return this.getButtonById(H[I].buttons[E].id);}if(H[I].buttons[E].menu){for(var J=0;J<H[I].buttons[E].menu.length;J++){if(H[I].buttons[E].menu[J].value==K){return this.getButtonById(H[I].buttons[E].id);}}}}}else{if((H[I].value==K)||(H[I].menucmd==K)){return this.getButtonById(H[I].id);}if(H[I].menu){for(var G=0;G<H[I].menu.length;G++){if(H[I].menu[G].value==K){return this.getButtonById(H[I].id);}}}}}return false;},getButtonByIndex:function(E){if(this._buttonList[E]){return this._buttonList[E];}else{return false;}},getButtons:function(){return this._buttonList;},disableButton:function(F){var E=B.call(this,F);if(E){E.set("disabled",true);}else{return false;}},enableButton:function(F){if(this.get("disabled")){return false;}var E=B.call(this,F);if(E){if(E.get("disabled")){E.set("disabled",false);}}else{return false;}},isSelected:function(F){var E=B.call(this,F);if(E){return E._selected;}return false;},selectButton:function(I,G){var F=B.call(this,I);if(F){F.addClass("yui-button-selected");F.addClass("yui-button-"+F.get("value")+"-selected");F._selected=true;if(G){if(F.buttonType=="rich"){var H=F.getMenu().getItems();for(var E=0;E<H.length;E++){if(H[E].value==G){H[E].cfg.setProperty("checked",true);F.set("label",'<span class="yui-toolbar-'+F.get("value")+"-"+(G).replace(/ /g,"-").toLowerCase()+'">'+H[E]._oText.nodeValue+"</span>");}else{H[E].cfg.setProperty("checked",false);}}}}}else{return false;}},deselectButton:function(F){var E=B.call(this,F);if(E){E.removeClass("yui-button-selected");E.removeClass("yui-button-"+E.get("value")+"-selected");E.removeClass("yui-button-hover");E._selected=false;}else{return false;}},deselectAllButtons:function(){var E=this._buttonList.length;for(var F=0;F<E;F++){this.deselectButton(this._buttonList[F]);}},disableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.disableButton(this._buttonList[F]);}},enableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.enableButton(this._buttonList[F]);}},resetAllButtons:function(I){if(!D.isObject(I)){I={};}if(this.get("disabled")||!this._buttonList){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){var H=this._buttonList[F];if(H){var G=H._configs.disabled._initialConfig.value;if(I[H.get("id")]){this.enableButton(H);this.selectButton(H);}else{if(G){this.disableButton(H);}else{this.enableButton(H);}this.deselectButton(H);}}}},destroyButton:function(J){var H=B.call(this,J);if(H){var I=H.get("id"),F=[],G=0,E=this._buttonList.length;H.destroy();for(G=0;G<E;G++){if(this._buttonList[G].get("id")!=I){F[F.length]=this._buttonList[G];}}this._buttonList=F;}else{return false;}},destroy:function(){var E=this._configuredButtons.length,F,G;for(b=0;b<E;b++){this.destroyButton(this._configuredButtons[b]);}this._configuredButtons=null;this.get("element").innerHTML="";this.get("element").className="";for(G in this){if(D.hasOwnProperty(this,G)){this[G]=null;}}return true;},collapse:function(F){var E=C.getElementsByClassName("collapse","span",this._titlebar);if(F===false){C.removeClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");
++if(E[0]){C.removeClass(E[0],"collapsed");E[0].title=this.STR_COLLAPSE;}this.fireEvent("toolbarExpanded",{type:"toolbarExpanded",target:this});}else{if(E[0]){C.addClass(E[0],"collapsed");E[0].title=this.STR_EXPAND;}C.addClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");this.fireEvent("toolbarCollapsed",{type:"toolbarCollapsed",target:this});}},toString:function(){return"Toolbar (#"+this.get("element").id+") with "+this._buttonList.length+" buttons.";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang,B=YAHOO.widget.Toolbar;YAHOO.widget.SimpleEditor=function(H,M){var G={};if(D.isObject(H)&&(!H.tagName)&&!M){D.augmentObject(G,H);H=document.createElement("textarea");this.DOMReady=true;if(G.container){var K=C.get(G.container);K.appendChild(H);}else{document.body.appendChild(H);}}else{if(M){D.augmentObject(G,M);}}var I={element:null,attributes:G},F=null;if(D.isString(H)){F=H;}else{if(I.attributes.id){F=I.attributes.id;}else{this.DOMReady=true;F=C.generateId(H);}}I.element=H;var J=document.createElement("DIV");I.attributes.element_cont=new YAHOO.util.Element(J,{id:F+"_container"});var E=document.createElement("div");C.addClass(E,"first-child");I.attributes.element_cont.appendChild(E);if(!I.attributes.toolbar_cont){I.attributes.toolbar_cont=document.createElement("DIV");I.attributes.toolbar_cont.id=F+"_toolbar";E.appendChild(I.attributes.toolbar_cont);}var L=document.createElement("DIV");E.appendChild(L);I.attributes.editor_wrapper=L;YAHOO.widget.SimpleEditor.superclass.constructor.call(this,I.element,I.attributes);};YAHOO.extend(YAHOO.widget.SimpleEditor,YAHOO.util.Element,{_resizeConfig:{handles:["br"],autoRatio:true,status:true,proxy:true,useShim:true,setSize:false},_setupResize:function(){if(!YAHOO.util.DD||!YAHOO.util.Resize){return false;}if(this.get("resize")){var E={};D.augmentObject(E,this._resizeConfig);this.resize=new YAHOO.util.Resize(this.get("element_cont").get("element"),E);this.resize.on("resize",function(G){var K=this.get("animate");this.set("animate",false);this.set("width",G.width+"px");var H=G.height,I=(this.toolbar.get("element").clientHeight+2),J=0;if(this.dompath){J=(this.dompath.clientHeight+1);}var F=(H-I-J);this.set("height",F+"px");this.get("element_cont").setStyle("height","");this.set("animate",K);},this,true);}},resize:null,_setupDD:function(){if(!YAHOO.util.DD){return false;}if(this.get("drag")){var F=this.get("drag"),E=YAHOO.util.DD;if(F==="proxy"){E=YAHOO.util.DDProxy;}this.dd=new E(this.get("element_cont").get("element"));this.toolbar.addClass("draggable");this.dd.setHandleElId(this.toolbar._titlebar);}},dd:null,_lastCommand:null,_undoNodeChange:function(){},_storeUndo:function(){},_checkKey:function(E,H){var F=false;if((H.keyCode===E.key)){if(E.mods&&(E.mods.length>0)){var I=0;for(var G=0;G<E.mods.length;G++){if(this.browser.mac){if(E.mods[G]=="ctrl"){E.mods[G]="meta";}}if(H[E.mods[G]+"Key"]===true){I++;}}if(I===E.mods.length){F=true;}}else{F=true;}}return F;},_keyMap:{SELECT_ALL:{key:65,mods:["ctrl"]},CLOSE_WINDOW:{key:87,mods:["shift","ctrl"]},FOCUS_TOOLBAR:{key:27,mods:["shift"]},FOCUS_AFTER:{key:27},FONT_SIZE_UP:{key:38,mods:["shift","ctrl"]},FONT_SIZE_DOWN:{key:40,mods:["shift","ctrl"]},CREATE_LINK:{key:76,mods:["shift","ctrl"]},BOLD:{key:66,mods:["shift","ctrl"]},ITALIC:{key:73,mods:["shift","ctrl"]},UNDERLINE:{key:85,mods:["shift","ctrl"]},UNDO:{key:90,mods:["ctrl"]},REDO:{key:90,mods:["shift","ctrl"]},JUSTIFY_LEFT:{key:219,mods:["shift","ctrl"]},JUSTIFY_CENTER:{key:220,mods:["shift","ctrl"]},JUSTIFY_RIGHT:{key:221,mods:["shift","ctrl"]}},_cleanClassName:function(E){return E.replace(/ /g,"-").toLowerCase();},_textarea:null,_docType:'<!DOCTYPE HTML PUBLIC "-/'+"/W3C/"+"/DTD HTML 4.01/"+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',editorDirty:null,_defaultCSS:"html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }",_defaultToolbar:null,_lastButton:null,_baseHREF:function(){var E=document.location.href;if(E.indexOf("?")!==-1){E=E.substring(0,E.indexOf("?"));}E=E.substring(0,E.lastIndexOf("/"))+"/";return E;}(),_lastImage:null,_blankImageLoaded:null,_fixNodesTimer:null,_nodeChangeTimer:null,_nodeChangeDelayTimer:null,_lastNodeChangeEvent:null,_lastNodeChange:0,_rendered:null,DOMReady:null,_selection:null,_mask:null,_showingHiddenElements:null,currentWindow:null,currentEvent:null,operaEvent:null,currentFont:null,currentElement:null,dompath:null,beforeElement:null,afterElement:null,invalidHTML:{form:true,input:true,button:true,select:true,link:true,html:true,body:true,iframe:true,script:true,style:true,textarea:true},toolbar:null,_contentTimer:null,_contentTimerMax:500,_contentTimerCounter:0,_disabled:["createlink","fontname","fontsize","forecolor","backcolor"],_alwaysDisabled:{undo:true,redo:true},_alwaysEnabled:{},_semantic:{"bold":true,"italic":true,"underline":true},_tag2cmd:{"b":"bold","strong":"bold","i":"italic","em":"italic","u":"underline","sup":"superscript","sub":"subscript","img":"insertimage","a":"createlink","ul":"insertunorderedlist","ol":"insertorderedlist"},_createIframe:function(){var I=document.createElement("iframe");I.id=this.get("id")+"_editor";var G={border:"0",frameBorder:"0",marginWidth:"0",marginHeight:"0",leftMargin:"0",topMargin:"0",allowTransparency:"true",width:"100%"};if(this.get("autoHeight")){G.scrolling="no";}for(var H in G){if(D.hasOwnProperty(G,H)){I.setAttribute(H,G[H]);}}var F="javascript:;";if(this.browser.ie){F="javascript:false;";}I.setAttribute("src",F);var E=new YAHOO.util.Element(I);
++E.setStyle("visibility","hidden");return E;},_isElement:function(F,E){if(F&&F.tagName&&(F.tagName.toLowerCase()==E)){return true;}if(F&&F.getAttribute&&(F.getAttribute("tag")==E)){return true;}return false;},_hasParent:function(F,E){if(!F||!F.parentNode){return false;}while(F.parentNode){if(this._isElement(F,E)){return F;}if(F.parentNode){F=F.parentNode;}else{return false;}}return false;},_getDoc:function(){var E=false;try{if(this.get("iframe").get("element").contentWindow.document){E=this.get("iframe").get("element").contentWindow.document;return E;}}catch(F){return false;}},_getWindow:function(){return this.get("iframe").get("element").contentWindow;},focus:function(){this._getWindow().focus();},_focusWindow:function(){this.focus();},_hasSelection:function(){var G=this._getSelection();var E=this._getRange();var F=false;if(!G||!E){return F;}if(this.browser.ie||this.browser.opera){if(E.text){F=true;}if(E.html){F=true;}}else{if(this.browser.webkit){if(G+""!==""){F=true;}}else{if(G&&(G.toString()!=="")&&(G!==undefined)){F=true;}}}return F;},_getSelection:function(){var E=null;if(this._getDoc()&&this._getWindow()){if(this._getDoc().selection){E=this._getDoc().selection;}else{E=this._getWindow().getSelection();}if(this.browser.webkit){if(E.baseNode){this._selection={};this._selection.baseNode=E.baseNode;this._selection.baseOffset=E.baseOffset;this._selection.extentNode=E.extentNode;this._selection.extentOffset=E.extentOffset;}else{if(this._selection!==null){E=this._getWindow().getSelection();E.setBaseAndExtent(this._selection.baseNode,this._selection.baseOffset,this._selection.extentNode,this._selection.extentOffset);this._selection=null;}}}}return E;},_selectNode:function(F,I){if(!F){return false;}var G=this._getSelection(),E=null;if(this.browser.ie){try{E=this._getDoc().body.createTextRange();E.moveToElementText(F);E.select();}catch(H){}}else{if(this.browser.webkit){if(I){G.setBaseAndExtent(F,1,F,F.innerText.length);}else{G.setBaseAndExtent(F,0,F,F.innerText.length);}}else{if(this.browser.opera){G=this._getWindow().getSelection();E=this._getDoc().createRange();E.selectNode(F);G.removeAllRanges();G.addRange(E);}else{E=this._getDoc().createRange();E.selectNodeContents(F);G.removeAllRanges();G.addRange(E);}}}this.nodeChange();},_getRange:function(){var E=this._getSelection();if(E===null){return null;}if(this.browser.webkit&&!E.getRangeAt){var H=this._getDoc().createRange();try{H.setStart(E.anchorNode,E.anchorOffset);H.setEnd(E.focusNode,E.focusOffset);}catch(G){H=this._getWindow().getSelection()+"";}return H;}if(this.browser.ie||this.browser.opera){try{return E.createRange();}catch(F){return null;}}if(E.rangeCount>0){return E.getRangeAt(0);}return null;},_setDesignMode:function(E){if(this.get("setDesignMode")){try{this._getDoc().designMode=((E.toLowerCase()=="off")?"off":"on");}catch(F){}}},_toggleDesignMode:function(){var F=this._getDoc().designMode,E=((F.toLowerCase()=="on")?"off":"on");this._setDesignMode(E);return E;},_focused:null,_handleFocus:function(E){if(!this._focused){this._focused=true;this.fireEvent("editorWindowFocus",{type:"editorWindowFocus",target:this});}},_handleBlur:function(E){if(this._focused){this._focused=false;this.fireEvent("editorWindowBlur",{type:"editorWindowBlur",target:this});}},_initEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.on(F,"mouseup",this._handleMouseUp,this,true);A.on(F,"mousedown",this._handleMouseDown,this,true);A.on(F,"click",this._handleClick,this,true);A.on(F,"dblclick",this._handleDoubleClick,this,true);A.on(F,"keypress",this._handleKeyPress,this,true);A.on(F,"keyup",this._handleKeyUp,this,true);A.on(F,"keydown",this._handleKeyDown,this,true);A.on(E,"focus",this._handleFocus,this,true);A.on(E,"blur",this._handleBlur,this,true);},_removeEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.removeListener(F,"mouseup",this._handleMouseUp,this,true);A.removeListener(F,"mousedown",this._handleMouseDown,this,true);A.removeListener(F,"click",this._handleClick,this,true);A.removeListener(F,"dblclick",this._handleDoubleClick,this,true);A.removeListener(F,"keypress",this._handleKeyPress,this,true);A.removeListener(F,"keyup",this._handleKeyUp,this,true);A.removeListener(F,"keydown",this._handleKeyDown,this,true);A.removeListener(E,"focus",this._handleFocus,this,true);A.removeListener(E,"blur",this._handleBlur,this,true);},_fixWebkitDivs:function(){if(this.browser.webkit){var E=this._getDoc().body.getElementsByTagName("div");C.addClass(E,"yui-wk-div");}},_initEditor:function(F){if(this._editorInit){return;}this._editorInit=true;if(this.browser.ie){this._getDoc().body.style.margin="0";}if(!this.get("disabled")){this._setDesignMode("on");this._contentTimerCounter=0;}if(!this._getDoc().body){this._contentTimerCounter=0;this._editorInit=false;this._checkLoaded();return false;}if(!F){this.toolbar.on("buttonClick",this._handleToolbarClick,this,true);}if(!this.get("disabled")){this._initEditorEvents();this.toolbar.set("disabled",false);}if(F){this.fireEvent("editorContentReloaded",{type:"editorreloaded",target:this});}else{this.fireEvent("editorContentLoaded",{type:"editorLoaded",target:this});}this._fixWebkitDivs();if(this.get("dompath")){var E=this;setTimeout(function(){E._writeDomPath.call(E);E._setupResize.call(E);},150);}var H=[];for(var G in this.browser){if(this.browser[G]){H.push(G);}}if(this.get("ptags")){H.push("ptags");}C.addClass(this._getDoc().body,H.join(" "));this.nodeChange(true);},_checkLoaded:function(F){this._editorInit=false;this._contentTimerCounter++;if(this._contentTimer){clearTimeout(this._contentTimer);}if(this._contentTimerCounter>this._contentTimerMax){return false;}var H=false;try{if(this._getDoc()&&this._getDoc().body){if(this.browser.ie){if(this._getDoc().body.readyState=="complete"){H=true;}}else{if(this._getDoc().body._rteLoaded===true){H=true;}}}}catch(G){H=false;}if(H===true){this._initEditor(F);}else{var E=this;this._contentTimer=setTimeout(function(){E._checkLoaded.call(E,F);},20);}},_setInitialContent:function(F){var I=((this._textarea)?this.get("element").value:this.get("element").innerHTML),K=null;
++if(I===""){I="<br>";}var G=D.substitute(this.get("html"),{TITLE:this.STR_TITLE,CONTENT:this._cleanIncomingHTML(I),CSS:this.get("css"),HIDDEN_CSS:((this.get("hiddencss"))?this.get("hiddencss"):"/* No Hidden CSS */"),EXTRA_CSS:((this.get("extracss"))?this.get("extracss"):"/* No Extra CSS */")}),E=true;G=G.replace(/RIGHT_BRACKET/gi,"{");G=G.replace(/LEFT_BRACKET/gi,"}");if(document.compatMode!="BackCompat"){G=this._docType+"\n"+G;}else{}if(this.browser.ie||this.browser.webkit||this.browser.opera||(navigator.userAgent.indexOf("Firefox/1.5")!=-1)){try{if(this.browser.air){K=this._getDoc().implementation.createHTMLDocument();var L=this._getDoc();L.open();L.close();K.open();K.write(G);K.close();var H=L.importNode(K.getElementsByTagName("html")[0],true);L.replaceChild(H,L.getElementsByTagName("html")[0]);L.body._rteLoaded=true;}else{K=this._getDoc();K.open();K.write(G);K.close();}}catch(J){E=false;}}else{this.get("iframe").get("element").src="data:text/html;charset=utf-8,"+encodeURIComponent(G);}this.get("iframe").setStyle("visibility","");if(E){this._checkLoaded(F);}},_setMarkupType:function(E){switch(this.get("markup")){case"css":this._setEditorStyle(true);break;case"default":this._setEditorStyle(false);break;case"semantic":case"xhtml":if(this._semantic[E]){this._setEditorStyle(false);}else{this._setEditorStyle(true);}break;}},_setEditorStyle:function(F){try{this._getDoc().execCommand("useCSS",false,!F);}catch(E){}},_getSelectedElement:function(){var J=this._getDoc(),G=null,H=null,K=null,F=true;if(this.browser.ie){this.currentEvent=this._getWindow().event;G=this._getRange();if(G){K=G.item?G.item(0):G.parentElement();if(this._hasSelection()){}if(K===J.body){K=null;}}if((this.currentEvent!==null)&&(this.currentEvent.keyCode===0)){K=A.getTarget(this.currentEvent);}}else{H=this._getSelection();G=this._getRange();if(!H||!G){return null;}if(!this._hasSelection()&&this.browser.webkit3){}if(this.browser.gecko){if(G.startContainer){if(G.startContainer.nodeType===3){K=G.startContainer.parentNode;}else{if(G.startContainer.nodeType===1){K=G.startContainer;}}if(this.currentEvent){var E=A.getTarget(this.currentEvent);if(!this._isElement(E,"html")){if(K!==E){K=E;}}}}}if(F){if(H.anchorNode&&(H.anchorNode.nodeType==3)){if(H.anchorNode.parentNode){K=H.anchorNode.parentNode;}if(H.anchorNode.nextSibling!=H.focusNode.nextSibling){K=H.anchorNode.nextSibling;}}if(this._isElement(K,"br")){K=null;}if(!K){K=G.commonAncestorContainer;if(!G.collapsed){if(G.startContainer==G.endContainer){if(G.startOffset-G.endOffset<2){if(G.startContainer.hasChildNodes()){K=G.startContainer.childNodes[G.startOffset];}}}}}}}if(this.currentEvent!==null){try{switch(this.currentEvent.type){case"click":case"mousedown":case"mouseup":if(this.browser.webkit){K=A.getTarget(this.currentEvent);}break;default:break;}}catch(I){}}else{if((this.currentElement&&this.currentElement[0])&&(!this.browser.ie)){}}if(this.browser.opera||this.browser.webkit){if(this.currentEvent&&!K){K=YAHOO.util.Event.getTarget(this.currentEvent);}}if(!K||!K.tagName){K=J.body;}if(this._isElement(K,"html")){K=J.body;}if(this._isElement(K,"body")){K=J.body;}if(K&&!K.parentNode){K=J.body;}if(K===undefined){K=null;}return K;},_getDomPath:function(E){if(!E){E=this._getSelectedElement();}var F=[];while(E!==null){if(E.ownerDocument!=this._getDoc()){E=null;break;}if(E.nodeName&&E.nodeType&&(E.nodeType==1)){F[F.length]=E;}if(this._isElement(E,"body")){break;}E=E.parentNode;}if(F.length===0){if(this._getDoc()&&this._getDoc().body){F[0]=this._getDoc().body;}}return F.reverse();},_writeDomPath:function(){var K=this._getDomPath(),I=[],G="",L="";for(var E=0;E<K.length;E++){var M=K[E].tagName.toLowerCase();if((M=="ol")&&(K[E].type)){M+=":"+K[E].type;}if(C.hasClass(K[E],"yui-tag")){M=K[E].getAttribute("tag");}if((this.get("markup")=="semantic")||(this.get("markup")=="xhtml")){switch(M){case"b":M="strong";break;case"i":M="em";break;}}if(!C.hasClass(K[E],"yui-non")){if(C.hasClass(K[E],"yui-tag")){L=M;}else{G=((K[E].className!=="")?"."+K[E].className.replace(/ /g,"."):"");if((G.indexOf("yui")!=-1)||(G.toLowerCase().indexOf("apple-style-span")!=-1)){G="";}L=M+((K[E].id)?"#"+K[E].id:"")+G;}switch(M){case"body":L="body";break;case"a":if(K[E].getAttribute("href",2)){L+=":"+K[E].getAttribute("href",2).replace("mailto:","").replace("http:/"+"/","").replace("https:/"+"/","");}break;case"img":var F=K[E].height;var J=K[E].width;if(K[E].style.height){F=parseInt(K[E].style.height,10);}if(K[E].style.width){J=parseInt(K[E].style.width,10);}L+="("+J+"x"+F+")";break;}if(L.length>10){L='<span title="'+L+'">'+L.substring(0,10)+"..."+"</span>";}else{L='<span title="'+L+'">'+L+"</span>";}I[I.length]=L;}}var H=I.join(" "+this.SEP_DOMPATH+" ");if(this.dompath.innerHTML!=H){this.dompath.innerHTML=H;}},_fixNodes:function(){try{var K=this._getDoc(),H=[];for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(E.toLowerCase()!="span"){var F=K.body.getElementsByTagName(E);if(F.length){for(var G=0;G<F.length;G++){H.push(F[G]);}}}}}for(var I=0;I<H.length;I++){if(H[I].parentNode){if(D.isObject(this.invalidHTML[H[I].tagName.toLowerCase()])&&this.invalidHTML[H[I].tagName.toLowerCase()].keepContents){this._swapEl(H[I],"span",function(M){M.className="yui-non";});}else{H[I].parentNode.removeChild(H[I]);}}}var L=this._getDoc().getElementsByTagName("img");C.addClass(L,"yui-img");}catch(J){}},_isNonEditable:function(G){if(this.get("allowNoEdit")){var F=A.getTarget(G);if(this._isElement(F,"html")){F=null;}var J=this._getDomPath(F);for(var E=(J.length-1);E>-1;E--){if(C.hasClass(J[E],this.CLASS_NOEDIT)){try{this._getDoc().execCommand("enableObjectResizing",false,"false");}catch(I){}this.nodeChange();A.stopEvent(G);return true;}}try{this._getDoc().execCommand("enableObjectResizing",false,"true");}catch(H){}}return false;},_setCurrentEvent:function(E){this.currentEvent=E;},_handleClick:function(G){var F=this.fireEvent("beforeEditorClick",{type:"beforeEditorClick",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;
++}this._setCurrentEvent(G);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}if(this.browser.webkit){var E=A.getTarget(G);if(this._isElement(E,"a")||this._isElement(E.parentNode,"a")){A.stopEvent(G);this.nodeChange();}}else{this.nodeChange();}this.fireEvent("editorClick",{type:"editorClick",target:this,ev:G});},_handleMouseUp:function(G){var F=this.fireEvent("beforeEditorMouseUp",{type:"beforeEditorMouseUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}var E=this;if(this.browser.opera){var H=A.getTarget(G);if(this._isElement(H,"img")){this.nodeChange();if(this.operaEvent){clearTimeout(this.operaEvent);this.operaEvent=null;this._handleDoubleClick(G);}else{this.operaEvent=window.setTimeout(function(){E.operaEvent=false;},700);}}}if(this.browser.webkit||this.browser.opera){if(this.browser.webkit){A.stopEvent(G);}}this.nodeChange();this.fireEvent("editorMouseUp",{type:"editorMouseUp",target:this,ev:G});},_handleMouseDown:function(F){var E=this.fireEvent("beforeEditorMouseDown",{type:"beforeEditorMouseDown",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this.browser.webkit&&this._hasSelection()){var H=this._getSelection();if(!this.browser.webkit3){H.collapse(true);}else{H.collapseToStart();}}if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}if(this._isElement(G,"img")||this._isElement(G,"a")){if(this.browser.webkit){A.stopEvent(F);if(this._isElement(G,"img")){C.addClass(G,"selected");this._lastImage=G;}}if(this.currentWindow){this.closeWindow();}this.nodeChange();}this.fireEvent("editorMouseDown",{type:"editorMouseDown",target:this,ev:F});},_handleDoubleClick:function(F){var E=this.fireEvent("beforeEditorDoubleClick",{type:"beforeEditorDoubleClick",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this._isElement(G,"img")){this.currentElement[0]=G;this.toolbar.fireEvent("insertimageClick",{type:"insertimageClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}else{if(this._hasParent(G,"a")){this.currentElement[0]=this._hasParent(G,"a");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}}this.nodeChange();this.fireEvent("editorDoubleClick",{type:"editorDoubleClick",target:this,ev:F});},_handleKeyUp:function(G){var F=this.fireEvent("beforeEditorKeyUp",{type:"beforeEditorKeyUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}this._storeUndo();this._setCurrentEvent(G);switch(G.keyCode){case this._keyMap.SELECT_ALL.key:if(this._checkKey(this._keyMap.SELECT_ALL,G)){this.nodeChange();}break;case 32:case 35:case 36:case 37:case 38:case 39:case 40:case 46:case 8:case this._keyMap.CLOSE_WINDOW.key:if((G.keyCode==this._keyMap.CLOSE_WINDOW.key)&&this.currentWindow){if(this._checkKey(this._keyMap.CLOSE_WINDOW,G)){this.closeWindow();}}else{if(!this.browser.ie){if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);}var E=this;this._nodeChangeTimer=setTimeout(function(){E._nodeChangeTimer=null;E.nodeChange.call(E);},100);}else{this.nodeChange();}this.editorDirty=true;}break;}this.fireEvent("editorKeyUp",{type:"editorKeyUp",target:this,ev:G});},_handleKeyPress:function(G){var F=this.fireEvent("beforeEditorKeyPress",{type:"beforeEditorKeyPress",target:this,ev:G});if(F===false){return false;}if(this.get("allowNoEdit")){if(G&&G.keyCode&&(G.keyCode==63272)){A.stopEvent(G);}}if(this._isNonEditable(G)){return false;}this._setCurrentEvent(G);this._storeUndo();if(this.browser.opera){if(G.keyCode===13){var E=this._getSelectedElement();if(!this._isElement(E,"li")){this.execCommand("inserthtml","<br>");A.stopEvent(G);}}}if(this.browser.webkit){if(!this.browser.webkit3){if(G.keyCode&&(G.keyCode==122)&&(G.metaKey)){if(this._hasParent(this._getSelectedElement(),"li")){A.stopEvent(G);}}}this._listFix(G);}this._fixListDupIds();this.fireEvent("editorKeyPress",{type:"editorKeyPress",target:this,ev:G});},_handleKeyDown:function(X){var Z=this.fireEvent("beforeEditorKeyDown",{type:"beforeEditorKeyDown",target:this,ev:X});if(Z===false){return false;}var U=null,E=null;if(this._isNonEditable(X)){return false;}this._setCurrentEvent(X);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}var N=false,S=null,P=null,R=false;switch(X.keyCode){case this._keyMap.FOCUS_TOOLBAR.key:if(this._checkKey(this._keyMap.FOCUS_TOOLBAR,X)){var W=this.toolbar.getElementsByTagName("h2")[0];if(W&&W.firstChild){W.firstChild.focus();}}else{if(this._checkKey(this._keyMap.FOCUS_AFTER,X)){this.afterElement.focus();}}A.stopEvent(X);N=false;break;case this._keyMap.CREATE_LINK.key:if(this._hasSelection()){if(this._checkKey(this._keyMap.CREATE_LINK,X)){var F=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){F=false;}}if(F){this.execCommand("createlink","");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});N=false;}}}break;case this._keyMap.UNDO.key:case this._keyMap.REDO.key:if(this._checkKey(this._keyMap.REDO,X)){S="redo";N=true;}else{if(this._checkKey(this._keyMap.UNDO,X)){S="undo";N=true;}}break;case this._keyMap.BOLD.key:if(this._checkKey(this._keyMap.BOLD,X)){S="bold";N=true;}break;case this._keyMap.FONT_SIZE_UP.key:case this._keyMap.FONT_SIZE_DOWN.key:var K=false,T=false;if(this._checkKey(this._keyMap.FONT_SIZE_UP,X)){K=true;}if(this._checkKey(this._keyMap.FONT_SIZE_DOWN,X)){T=true;}if(K||T){var H=this.toolbar.getButtonByValue("fontsize"),G=parseInt(H.get("label"),10),I=(G+1);if(T){I=(G-1);}S="fontsize";P=I+"px";N=true;}break;case this._keyMap.ITALIC.key:if(this._checkKey(this._keyMap.ITALIC,X)){S="italic";
++N=true;}break;case this._keyMap.UNDERLINE.key:if(this._checkKey(this._keyMap.UNDERLINE,X)){S="underline";N=true;}break;case 9:if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("&nbsp;&nbsp;&nbsp;&nbsp;");E.collapse(false);E.select();}A.stopEvent(X);}}if(this.browser.gecko>1.8){U=this._getSelectedElement();if(this._isElement(U,"li")){if(X.shiftKey){this._getDoc().execCommand("outdent",null,"");}else{this._getDoc().execCommand("indent",null,"");}}else{if(!this._hasSelection()){this.execCommand("inserthtml","&nbsp;&nbsp;&nbsp;&nbsp;");}}A.stopEvent(X);}break;case 13:var M=null,V=0;if(this.get("ptags")&&!X.shiftKey){if(this.browser.gecko){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this._hasParent(U,"p")){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,U);this._selectNode(M.firstChild);}else{if(this._isElement(U,"body")){this.execCommand("insertparagraph",null);var O=this._getDoc().body.getElementsByTagName("p");for(V=0;V<O.length;V++){if(O[V].getAttribute("_moz_dirty")!==null){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,O[V]);this._selectNode(M.firstChild);O[V].removeAttribute("_moz_dirty");}}}else{N=true;S="insertparagraph";}}A.stopEvent(X);}}if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){this.execCommand("insertparagraph",null);var Q=this._getDoc().body.getElementsByTagName("div");for(V=0;V<Q.length;V++){if(!C.hasClass(Q[V],"yui-wk-div")){C.addClass(Q[V],"yui-wk-p");}}A.stopEvent(X);}}}else{if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this.browser.webkit4){this.execCommand("insertlinebreak");}else{this.execCommand("inserthtml",'<var id="yui-br"></var>');var L=this._getDoc().getElementById("yui-br"),Y=this._getDoc().createElement("br"),J=this._getDoc().createElement("span");L.parentNode.replaceChild(Y,L);J.className="yui-non";J.innerHTML="&nbsp;";C.insertAfter(J,Y);this._selectNode(J);}A.stopEvent(X);}}if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("<br>");E.collapse(false);E.select();}A.stopEvent(X);}}}break;}if(this.browser.ie){this._listFix(X);}if(N&&S){this.execCommand(S,P);A.stopEvent(X);this.nodeChange();}this._storeUndo();this.fireEvent("editorKeyDown",{type:"editorKeyDown",target:this,ev:X});},_fixListRunning:null,_fixListDupIds:function(){if(this._fixListRunning){return false;}if(this._getDoc()){this._fixListRunning=true;var E=this._getDoc().body.getElementsByTagName("li"),F=0,G={};for(F=0;F<E.length;F++){if(E[F].id){if(G[E[F].id]){E[F].id="";}G[E[F].id]=true;}}this._fixListRunning=false;}},_listFix:function(K){var M=null,I=null,E=false,G=null;if(this.browser.webkit){if(K.keyCode&&(K.keyCode==13)){if(this._hasParent(this._getSelectedElement(),"li")){var H=this._hasParent(this._getSelectedElement(),"li");if(H.previousSibling){if(H.firstChild&&(H.firstChild.length==1)){this._selectNode(H);}}}}}if(K.keyCode&&((!this.browser.webkit3&&(K.keyCode==25))||((this.browser.webkit3||!this.browser.webkit)&&((K.keyCode==9)&&K.shiftKey)))){M=this._getSelectedElement();if(this._hasParent(M,"li")){M=this._hasParent(M,"li");if(this._hasParent(M,"ul")||this._hasParent(M,"ol")){I=this._hasParent(M,"ul");if(!I){I=this._hasParent(M,"ol");}if(this._isElement(I.previousSibling,"li")){I.removeChild(M);I.parentNode.insertBefore(M,I.nextSibling);if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(M);G.collapse(false);G.select();}if(this.browser.webkit){this._selectNode(M.firstChild);}A.stopEvent(K);}}}}if(K.keyCode&&((K.keyCode==9)&&(!K.shiftKey))){var F=this._getSelectedElement();if(this._hasParent(F,"li")){E=this._hasParent(F,"li").innerHTML;}if(this.browser.webkit){this._getDoc().execCommand("inserttext",false,"\t");}M=this._getSelectedElement();if(this._hasParent(M,"li")){I=this._hasParent(M,"li");var J=this._getDoc().createElement(I.parentNode.tagName.toLowerCase());if(this.browser.webkit){var L=C.getElementsByClassName("Apple-tab-span","span",I);if(L[0]){I.removeChild(L[0]);I.innerHTML=D.trim(I.innerHTML);if(E){I.innerHTML='<span class="yui-non">'+E+"</span>&nbsp;";}else{I.innerHTML='<span class="yui-non">&nbsp;</span>&nbsp;';}}}else{if(E){I.innerHTML=E+"&nbsp;";}else{I.innerHTML="&nbsp;";}}I.parentNode.replaceChild(J,I);J.appendChild(I);if(this.browser.webkit){this._getSelection().setBaseAndExtent(I.firstChild,1,I.firstChild,I.firstChild.innerText.length);if(!this.browser.webkit3){I.parentNode.parentNode.style.display="list-item";setTimeout(function(){I.parentNode.parentNode.style.display="block";},1);}}else{if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(I);G.collapse(false);G.select();}else{this._selectNode(I);}}A.stopEvent(K);}if(this.browser.webkit){A.stopEvent(K);}this.nodeChange();}},nodeChange:function(E){var F=this;this._storeUndo();if(this.get("nodeChangeDelay")){this._nodeChangeDelayTimer=window.setTimeout(function(){F._nodeChangeDelayTimer=null;F._nodeChange.apply(F,arguments);},0);}else{this._nodeChange();}},_nodeChange:function(F){var H=parseInt(this.get("nodeChangeThreshold"),10),O=Math.round(new Date().getTime()/1000),R=this;if(F===true){this._lastNodeChange=0;}if((this._lastNodeChange+H)<O){if(this._fixNodesTimer===null){this._fixNodesTimer=window.setTimeout(function(){R._fixNodes.call(R);R._fixNodesTimer=null;},0);}}this._lastNodeChange=O;if(this.currentEvent){try{this._lastNodeChangeEvent=this.currentEvent.type;}catch(a){}}var Z=this.fireEvent("beforeNodeChange",{type:"beforeNodeChange",target:this});if(Z===false){return false;}if(this.get("dompath")){window.setTimeout(function(){R._writeDomPath.call(R);},0);}if(!this.get("disabled")){if(this.STOP_NODE_CHANGE){this.STOP_NODE_CHANGE=false;return false;}else{var T=this._getSelection(),Q=this._getRange(),E=this._getSelectedElement(),M=this.toolbar.getButtonByValue("fontname"),L=this.toolbar.getButtonByValue("fontsize"),J=this.toolbar.getButtonByValue("undo"),G=this.toolbar.getButtonByValue("redo");
++var N={};if(this._lastButton){N[this._lastButton.id]=true;}if(!this._isElement(E,"body")){if(M){N[M.get("id")]=true;}if(L){N[L.get("id")]=true;}}if(G){delete N[G.get("id")];}this.toolbar.resetAllButtons(N);for(var c=0;c<this._disabled.length;c++){var P=this.toolbar.getButtonByValue(this._disabled[c]);if(P&&P.get){if(this._lastButton&&(P.get("id")===this._lastButton.id)){}else{if(!this._hasSelection()&&!this.get("insert")){switch(this._disabled[c]){case"fontname":case"fontsize":break;default:this.toolbar.disableButton(P);}}else{if(!this._alwaysDisabled[this._disabled[c]]){this.toolbar.enableButton(P);}}if(!this._alwaysEnabled[this._disabled[c]]){this.toolbar.deselectButton(P);}}}}var S=this._getDomPath();var f=null,W=null;for(var X=0;X<S.length;X++){f=S[X].tagName.toLowerCase();if(S[X].getAttribute("tag")){f=S[X].getAttribute("tag").toLowerCase();}W=this._tag2cmd[f];if(W===undefined){W=[];}if(!D.isArray(W)){W=[W];}if(S[X].style.fontWeight.toLowerCase()=="bold"){W[W.length]="bold";}if(S[X].style.fontStyle.toLowerCase()=="italic"){W[W.length]="italic";}if(S[X].style.textDecoration.toLowerCase()=="underline"){W[W.length]="underline";}if(S[X].style.textDecoration.toLowerCase()=="line-through"){W[W.length]="strikethrough";}if(W.length>0){for(var V=0;V<W.length;V++){this.toolbar.selectButton(W[V]);this.toolbar.enableButton(W[V]);}}switch(S[X].style.textAlign.toLowerCase()){case"left":case"right":case"center":case"justify":var U=S[X].style.textAlign.toLowerCase();if(S[X].style.textAlign.toLowerCase()=="justify"){U="full";}this.toolbar.selectButton("justify"+U);this.toolbar.enableButton("justify"+U);break;}}if(M){var Y=M._configs.label._initialConfig.value;M.set("label",'<span class="yui-toolbar-fontname-'+this._cleanClassName(Y)+'">'+Y+"</span>");this._updateMenuChecked("fontname",Y);}if(L){L.set("label",L._configs.label._initialConfig.value);}var K=this.toolbar.getButtonByValue("heading");if(K){K.set("label",K._configs.label._initialConfig.value);this._updateMenuChecked("heading","none");}var I=this.toolbar.getButtonByValue("insertimage");if(I&&this.currentWindow&&(this.currentWindow.name=="insertimage")){this.toolbar.disableButton(I);}if(this._lastButton&&this._lastButton.isSelected){this.toolbar.deselectButton(this._lastButton.id);}this._undoNodeChange();}}this.fireEvent("afterNodeChange",{type:"afterNodeChange",target:this});},_updateMenuChecked:function(E,F,H){if(!H){H=this.toolbar;}var G=H.getButtonByValue(E);G.checkValue(F);},_handleToolbarClick:function(F){var H="";var I="";var G=F.button.value;if(F.button.menucmd){H=G;G=F.button.menucmd;}this._lastButton=F.button;if(this.STOP_EXEC_COMMAND){this.STOP_EXEC_COMMAND=false;return false;}else{this.execCommand(G,H);if(!this.browser.webkit){var E=this;setTimeout(function(){E.focus.call(E);},5);}}A.stopEvent(F);},_setupAfterElement:function(){if(!this.beforeElement){this.beforeElement=document.createElement("h2");this.beforeElement.className="yui-editor-skipheader";this.beforeElement.tabIndex="-1";this.beforeElement.innerHTML=this.STR_BEFORE_EDITOR;this.get("element_cont").get("firstChild").insertBefore(this.beforeElement,this.toolbar.get("nextSibling"));}if(!this.afterElement){this.afterElement=document.createElement("h2");this.afterElement.className="yui-editor-skipheader";this.afterElement.tabIndex="-1";this.afterElement.innerHTML=this.STR_LEAVE_EDITOR;this.get("element_cont").get("firstChild").appendChild(this.afterElement);}},_disableEditor:function(J){var I,H,G,E;if(!this.get("disabled_iframe")){I=this._createIframe();I.set("id","disabled_"+this.get("iframe").get("id"));I.setStyle("height","100%");I.setStyle("display","none");I.setStyle("visibility","visible");this.set("disabled_iframe",I);H=this.get("iframe").get("parentNode");H.appendChild(I.get("element"));}if(!I){I=this.get("disabled_iframe");}if(J){this._orgIframe=this.get("iframe");if(this.toolbar){this.toolbar.set("disabled",true);}G=this.getEditorHTML();E=this.get("iframe").get("offsetHeight");I.setStyle("visibility","");I.setStyle("position","");I.setStyle("top","");I.setStyle("left","");this._orgIframe.setStyle("visibility","hidden");this._orgIframe.setStyle("position","absolute");this._orgIframe.setStyle("top","-99999px");this._orgIframe.setStyle("left","-99999px");this.set("iframe",I);this._setInitialContent(true);if(!this._mask){this._mask=document.createElement("DIV");C.addClass(this._mask,"yui-editor-masked");if(this.browser.ie){this._mask.style.height=E+"px";}this.get("iframe").get("parentNode").appendChild(this._mask);}this.on("editorContentReloaded",function(){this._getDoc().body._rteLoaded=false;this.setEditorHTML(G);I.setStyle("display","block");this.unsubscribeAll("editorContentReloaded");});}else{if(this._mask){this._mask.parentNode.removeChild(this._mask);this._mask=null;if(this.toolbar){this.toolbar.set("disabled",false);}I.setStyle("visibility","hidden");I.setStyle("position","absolute");I.setStyle("top","-99999px");I.setStyle("left","-99999px");this._orgIframe.setStyle("visibility","");this._orgIframe.setStyle("position","");this._orgIframe.setStyle("top","");this._orgIframe.setStyle("left","");this.set("iframe",this._orgIframe);this.focus();var F=this;window.setTimeout(function(){F.nodeChange.call(F);},100);}}},SEP_DOMPATH:"<",STR_LEAVE_EDITOR:"You have left the Rich Text Editor.",STR_BEFORE_EDITOR:"This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>",STR_TITLE:"Rich Text Area.",STR_IMAGE_HERE:"Image URL Here",STR_IMAGE_URL:"Image URL",STR_LINK_URL:"Link URL",STOP_EXEC_COMMAND:false,STOP_NODE_CHANGE:false,CLASS_NOEDIT:"yui-noedit",CLASS_CONTAINER:"yui-editor-container",CLASS_EDITABLE:"yui-editor-editable",CLASS_EDITABLE_CONT:"yui-editor-editable-container",CLASS_PREFIX:"yui-editor",browser:function(){var E=YAHOO.env.ua;
++if(E.webkit>=420){E.webkit3=E.webkit;}else{E.webkit3=0;}if(E.webkit>=530){E.webkit4=E.webkit;}else{E.webkit4=0;}E.mac=false;if(navigator.userAgent.indexOf("Macintosh")!==-1){E.mac=true;}return E;}(),init:function(F,E){if(!this._defaultToolbar){this._defaultToolbar={collapse:true,titlebar:"Text Editing Tools",draggable:false,buttons:[{group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]},{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"push",label:"Strike Through",value:"strikethrough"},{type:"separator"},{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true}]},{type:"separator"},{group:"indentlist",label:"Lists",buttons:[{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{type:"separator"},{group:"insertitem",label:"Insert Item",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true},{type:"push",label:"Insert Image",value:"insertimage"}]}]};}YAHOO.widget.SimpleEditor.superclass.init.call(this,F,E);YAHOO.widget.EditorInfo._instances[this.get("id")]=this;this.currentElement=[];this.on("contentReady",function(){this.DOMReady=true;this.fireQueue();},this,true);},initAttributes:function(E){YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this,E);var F=this;this.setAttributeConfig("setDesignMode",{value:((E.setDesignMode===false)?false:true)});this.setAttributeConfig("nodeChangeDelay",{value:((E.nodeChangeDelay===false)?false:true)});this.setAttributeConfig("maxUndo",{writeOnce:true,value:E.maxUndo||30});this.setAttributeConfig("ptags",{writeOnce:true,value:E.ptags||false});this.setAttributeConfig("insert",{writeOnce:true,value:E.insert||false,method:function(K){if(K){var J={fontname:true,fontsize:true,forecolor:true,backcolor:true};var I=this._defaultToolbar.buttons;for(var H=0;H<I.length;H++){if(I[H].buttons){for(var G=0;G<I[H].buttons.length;G++){if(I[H].buttons[G].value){if(J[I[H].buttons[G].value]){delete I[H].buttons[G].disabled;}}}}}}}});this.setAttributeConfig("container",{writeOnce:true,value:E.container||false});this.setAttributeConfig("plainText",{writeOnce:true,value:E.plainText||false});this.setAttributeConfig("iframe",{value:null});this.setAttributeConfig("disabled_iframe",{value:null});this.setAttributeConfig("textarea",{value:null,writeOnce:true});this.setAttributeConfig("nodeChangeThreshold",{value:E.nodeChangeThreshold||3,validator:YAHOO.lang.isNumber});this.setAttributeConfig("allowNoEdit",{value:E.allowNoEdit||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("limitCommands",{value:E.limitCommands||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("element_cont",{value:E.element_cont});this.setAttributeConfig("editor_wrapper",{value:E.editor_wrapper||null,writeOnce:true});this.setAttributeConfig("height",{value:E.height||C.getStyle(F.get("element"),"height"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("iframe").get("parentNode"),{height:{to:parseInt(G,10)}},0.5);H.animate();}else{C.setStyle(this.get("iframe").get("parentNode"),"height",G);}}}});this.setAttributeConfig("autoHeight",{value:E.autoHeight||false,method:function(G){if(G){if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","no");}this.on("afterNodeChange",this._handleAutoHeight,this,true);this.on("editorKeyDown",this._handleAutoHeight,this,true);this.on("editorKeyPress",this._handleAutoHeight,this,true);}else{if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","auto");}this.unsubscribe("afterNodeChange",this._handleAutoHeight);this.unsubscribe("editorKeyDown",this._handleAutoHeight);this.unsubscribe("editorKeyPress",this._handleAutoHeight);}}});this.setAttributeConfig("width",{value:E.width||C.getStyle(this.get("element"),"width"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("element_cont").get("element"),{width:{to:parseInt(G,10)}},0.5);H.animate();}else{this.get("element_cont").setStyle("width",G);}}}});this.setAttributeConfig("blankimage",{value:E.blankimage||this._getBlankImage()});this.setAttributeConfig("css",{value:E.css||this._defaultCSS,writeOnce:true});this.setAttributeConfig("html",{value:E.html||'<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="'+this._baseHREF+'"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',writeOnce:true});this.setAttributeConfig("extracss",{value:E.extracss||"",writeOnce:true});this.setAttributeConfig("handleSubmit",{value:E.handleSubmit||false,method:function(G){if(this.get("element").form){if(!this._formButtons){this._formButtons=[];}if(G){A.on(this.get("element").form,"submit",this._handleFormSubmit,this,true);var H=this.get("element").form.getElementsByTagName("input");for(var J=0;J<H.length;J++){var I=H[J].getAttribute("type");if(I&&(I.toLowerCase()=="submit")){A.on(H[J],"click",this._handleFormButtonClick,this,true);this._formButtons[this._formButtons.length]=H[J];}}}else{A.removeListener(this.get("element").form,"submit",this._handleFormSubmit);if(this._formButtons){A.removeListener(this._formButtons,"click",this._handleFormButtonClick);}}}}});this.setAttributeConfig("disabled",{value:false,method:function(G){if(this._rendered){this._disableEditor(G);
++}}});this.setAttributeConfig("saveEl",{value:this.get("element")});this.setAttributeConfig("toolbar_cont",{value:null,writeOnce:true});this.setAttributeConfig("toolbar",{value:E.toolbar||this._defaultToolbar,writeOnce:true,method:function(G){if(!G.buttonType){G.buttonType=this._defaultToolbar.buttonType;}this._defaultToolbar=G;}});this.setAttributeConfig("animate",{value:((E.animate)?((YAHOO.util.Anim)?true:false):false),validator:function(H){var G=true;if(!YAHOO.util.Anim){G=false;}return G;}});this.setAttributeConfig("panel",{value:null,writeOnce:true,validator:function(H){var G=true;if(!YAHOO.widget.Overlay){G=false;}return G;}});this.setAttributeConfig("focusAtStart",{value:E.focusAtStart||false,writeOnce:true,method:function(G){if(G){this.on("editorContentLoaded",function(){var H=this;setTimeout(function(){H.focus.call(H);H.editorDirty=false;},400);},this,true);}}});this.setAttributeConfig("dompath",{value:E.dompath||false,method:function(G){if(G&&!this.dompath){this.dompath=document.createElement("DIV");this.dompath.id=this.get("id")+"_dompath";C.addClass(this.dompath,"dompath");this.get("element_cont").get("firstChild").appendChild(this.dompath);if(this.get("iframe")){this._writeDomPath();}}else{if(!G&&this.dompath){this.dompath.parentNode.removeChild(this.dompath);this.dompath=null;}}}});this.setAttributeConfig("markup",{value:E.markup||"semantic",validator:function(G){switch(G.toLowerCase()){case"semantic":case"css":case"default":case"xhtml":return true;}return false;}});this.setAttributeConfig("removeLineBreaks",{value:E.removeLineBreaks||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("drag",{writeOnce:true,value:E.drag||false});this.setAttributeConfig("resize",{writeOnce:true,value:E.resize||false});this.setAttributeConfig("filterWord",{value:E.filterWord||false,validator:YAHOO.lang.isBoolean});},_getBlankImage:function(){if(!this.DOMReady){this._queue[this._queue.length]=["_getBlankImage",arguments];return"";}var E="";if(!this._blankImageLoaded){if(YAHOO.widget.EditorInfo.blankImage){this.set("blankimage",YAHOO.widget.EditorInfo.blankImage);this._blankImageLoaded=true;}else{var F=document.createElement("div");F.style.position="absolute";F.style.top="-9999px";F.style.left="-9999px";F.className=this.CLASS_PREFIX+"-blankimage";document.body.appendChild(F);E=YAHOO.util.Dom.getStyle(F,"background-image");E=E.replace("url(","").replace(")","").replace(/"/g,"");E=E.replace("app:/","");this.set("blankimage",E);this._blankImageLoaded=true;F.parentNode.removeChild(F);YAHOO.widget.EditorInfo.blankImage=E;}}else{E=this.get("blankimage");}return E;},_handleAutoHeight:function(){var J=this._getDoc(),F=J.body,K=J.documentElement;var E=parseInt(C.getStyle(this.get("editor_wrapper"),"height"),10);var G=F.scrollHeight;if(this.browser.webkit){G=K.scrollHeight;}if(G<parseInt(this.get("height"),10)){G=parseInt(this.get("height"),10);}if((E!=G)&&(G>=parseInt(this.get("height"),10))){var I=this.get("animate");this.set("animate",false);this.set("height",G+"px");this.set("animate",I);if(this.browser.ie){this.get("iframe").setStyle("height","99%");this.get("iframe").setStyle("zoom","1");var H=this;window.setTimeout(function(){H.get("iframe").setStyle("height","100%");},1);}}},_formButtons:null,_formButtonClicked:null,_handleFormButtonClick:function(F){var E=A.getTarget(F);this._formButtonClicked=E;},_handleFormSubmit:function(H){this.saveHTML();var G=this.get("element").form,E=this._formButtonClicked||false;A.removeListener(G,"submit",this._handleFormSubmit);if(YAHOO.env.ua.ie){if(E&&!E.disabled){E.click();}}else{if(E&&!E.disabled){E.click();}var F=document.createEvent("HTMLEvents");F.initEvent("submit",true,true);G.dispatchEvent(F);if(YAHOO.env.ua.webkit){if(YAHOO.lang.isFunction(G.submit)){G.submit();}}}},_handleFontSize:function(G){var E=this.toolbar.getButtonById(G.button.id);var F=E.get("label")+"px";this.execCommand("fontsize",F);return false;},_handleColorPicker:function(G){var F=G.button;var E="#"+G.color;if((F=="forecolor")||(F=="backcolor")){this.execCommand(F,E);}},_handleAlign:function(H){var G=null;for(var E=0;E<H.button.menu.length;E++){if(H.button.menu[E].value==H.button.value){G=H.button.menu[E].value;}}var F=this._getSelection();this.execCommand(G,F);return false;},_handleAfterNodeChange:function(){var Q=this._getDomPath(),L=null,H=null,M=null,F=false,J=this.toolbar.getButtonByValue("fontname"),K=this.toolbar.getButtonByValue("fontsize"),E=this.toolbar.getButtonByValue("heading");for(var G=0;G<Q.length;G++){L=Q[G];var P=L.tagName.toLowerCase();if(L.getAttribute("tag")){P=L.getAttribute("tag");}H=L.getAttribute("face");if(C.getStyle(L,"font-family")){H=C.getStyle(L,"font-family");H=H.replace(/'/g,"");}if(P.substring(0,1)=="h"){if(E){for(var I=0;I<E._configs.menu.value.length;I++){if(E._configs.menu.value[I].value.toLowerCase()==P){E.set("label",E._configs.menu.value[I].text);}}this._updateMenuChecked("heading",P);}}}if(J){for(var O=0;O<J._configs.menu.value.length;O++){if(H&&J._configs.menu.value[O].text.toLowerCase()==H.toLowerCase()){F=true;H=J._configs.menu.value[O].text;}}if(!F){H=J._configs.label._initialConfig.value;}var N='<span class="yui-toolbar-fontname-'+this._cleanClassName(H)+'">'+H+"</span>";if(J.get("label")!=N){J.set("label",N);this._updateMenuChecked("fontname",H);}}if(K){M=parseInt(C.getStyle(L,"fontSize"),10);if((M===null)||isNaN(M)){M=K._configs.label._initialConfig.value;}K.set("label",""+M);}if(!this._isElement(L,"body")&&!this._isElement(L,"img")){this.toolbar.enableButton(J);this.toolbar.enableButton(K);this.toolbar.enableButton("forecolor");this.toolbar.enableButton("backcolor");}if(this._isElement(L,"img")){if(YAHOO.widget.Overlay){this.toolbar.enableButton("createlink");}}if(this._hasParent(L,"blockquote")){this.toolbar.selectButton("indent");this.toolbar.disableButton("indent");this.toolbar.enableButton("outdent");}if(this._hasParent(L,"ol")||this._hasParent(L,"ul")){this.toolbar.disableButton("indent");}this._lastButton=null;},_handleInsertImageClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("insertimage")){return false;
++}}this.toolbar.set("disabled",true);var E=function(){var F=this.currentElement[0],H="http://";if(!F){F=this._getSelectedElement();}if(F){if(F.getAttribute("src")){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){H=this.STR_IMAGE_HERE;}}}var G=prompt(this.STR_IMAGE_URL+": ",H);if((G!=="")&&(G!==null)){F.setAttribute("src",G);}else{if(G===""){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}else{if((G===null)){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}}}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this,true);},_handleInsertImageWindowClose:function(){this.nodeChange();},_isLocalFile:function(E){if((E)&&(E!=="")&&((E.indexOf("file:/")!=-1)||(E.indexOf(":\\")!=-1))){return true;}return false;},_handleCreateLinkClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){return false;}}this.toolbar.set("disabled",true);var E=function(){var H=this.currentElement[0],G="";if(H){if(H.getAttribute("href",2)!==null){G=H.getAttribute("href",2);}}var J=prompt(this.STR_LINK_URL+": ",G);if((J!=="")&&(J!==null)){var I=J;if((I.indexOf(":/"+"/")==-1)&&(I.substring(0,1)!="/")&&(I.substring(0,6).toLowerCase()!="mailto")){if((I.indexOf("@")!=-1)&&(I.substring(0,6).toLowerCase()!="mailto")){I="mailto:"+I;}else{if(I.substring(0,1)!="#"){}}}H.setAttribute("href",I);}else{if(J!==null){var F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;C.addClass(F,"yui-non");H.parentNode.replaceChild(F,H);}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this);},_handleCreateLinkWindowClose:function(){this.nodeChange();this.currentElement=[];},render:function(){if(this._rendered){return false;}if(!this.DOMReady){this._queue[this._queue.length]=["render",arguments];return false;}if(this.get("element")){if(this.get("element").tagName){this._textarea=true;if(this.get("element").tagName.toLowerCase()!=="textarea"){this._textarea=false;}}else{return false;}}else{return false;}this._rendered=true;var E=this;window.setTimeout(function(){E._render.call(E);},4);},_render:function(){var E=this;this.set("textarea",this.get("element"));this.get("element_cont").setStyle("display","none");this.get("element_cont").addClass(this.CLASS_CONTAINER);this.set("iframe",this._createIframe());window.setTimeout(function(){E._setInitialContent.call(E);},10);this.get("editor_wrapper").appendChild(this.get("iframe").get("element"));if(this.get("disabled")){this._disableEditor(true);}var F=this.get("toolbar");if(F instanceof B){this.toolbar=F;this.toolbar.set("disabled",true);}else{F.disabled=true;this.toolbar=new B(this.get("toolbar_cont"),F);}this.fireEvent("toolbarLoaded",{type:"toolbarLoaded",target:this.toolbar});this.toolbar.on("toolbarCollapsed",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("toolbarExpanded",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("fontsizeClick",this._handleFontSize,this,true);this.toolbar.on("colorPickerClicked",function(G){this._handleColorPicker(G);return false;},this,true);this.toolbar.on("alignClick",this._handleAlign,this,true);this.on("afterNodeChange",this._handleAfterNodeChange,this,true);this.toolbar.on("insertimageClick",this._handleInsertImageClick,this,true);this.on("windowinsertimageClose",this._handleInsertImageWindowClose,this,true);this.toolbar.on("createlinkClick",this._handleCreateLinkClick,this,true);this.on("windowcreatelinkClose",this._handleCreateLinkWindowClose,this,true);this.get("parentNode").replaceChild(this.get("element_cont").get("element"),this.get("element"));this.setStyle("visibility","hidden");this.setStyle("position","absolute");this.setStyle("top","-9999px");this.setStyle("left","-9999px");this.get("element_cont").appendChild(this.get("element"));this.get("element_cont").setStyle("display","block");C.addClass(this.get("iframe").get("parentNode"),this.CLASS_EDITABLE_CONT);this.get("iframe").addClass(this.CLASS_EDITABLE);this.get("element_cont").setStyle("width",this.get("width"));C.setStyle(this.get("iframe").get("parentNode"),"height",this.get("height"));this.get("iframe").setStyle("width","100%");this.get("iframe").setStyle("height","100%");this._setupDD();window.setTimeout(function(){E._setupAfterElement.call(E);},0);this.fireEvent("afterRender",{type:"afterRender",target:this});},execCommand:function(G,F){var J=this.fireEvent("beforeExecCommand",{type:"beforeExecCommand",target:this,args:arguments});if((J===false)||(this.STOP_EXEC_COMMAND)){this.STOP_EXEC_COMMAND=false;return false;}this._lastCommand=G;this._setMarkupType(G);if(this.browser.ie){this._getWindow().focus();}var E=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue(G)){E=false;}}this.editorDirty=true;if((typeof this["cmd_"+G.toLowerCase()]=="function")&&E){var I=this["cmd_"+G.toLowerCase()](F);E=I[0];if(I[1]){G=I[1];}if(I[2]){F=I[2];}}if(E){try{this._getDoc().execCommand(G,false,F);}catch(H){}}else{}this.on("afterExecCommand",function(){this.unsubscribeAll("afterExecCommand");this.nodeChange();},this,true);this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});},cmd_bold:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontWeight=="bold"){G.style.fontWeight="";var E=this._getDoc().createElement("b"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_italic:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontStyle=="italic"){G.style.fontStyle="";var E=this._getDoc().createElement("i"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_underline:function(F){if(!this.browser.webkit){var E=this._getSelectedElement();
++if(E&&this._isElement(E,"span")){if(E.style.textDecoration=="underline"){E.style.textDecoration="none";}else{E.style.textDecoration="underline";}return[false];}}return[true];},cmd_backcolor:function(H){var E=true,F=this._getSelectedElement(),G="backcolor";if(this.browser.gecko||this.browser.opera){this._setEditorStyle(true);G="hilitecolor";}if(!this._isElement(F,"body")&&!this._hasSelection()){F.style.backgroundColor=H;this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({backgroundColor:H});}else{this._createCurrentElement("span",{backgroundColor:H,color:F.style.color,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily});this._selectNode(this.currentElement[0]);}E=false;}return[E,G];},cmd_forecolor:function(G){var E=true,F=this._getSelectedElement();if(!this._isElement(F,"body")&&!this._hasSelection()){C.setStyle(F,"color",G);this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({color:G});}else{this._createCurrentElement("span",{color:G,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily,backgroundColor:F.style.backgroundColor});this._selectNode(this.currentElement[0]);}E=false;}return[E];},cmd_unlink:function(E){this._swapEl(this.currentElement[0],"span",function(F){F.className="yui-non";});return[false];},cmd_createlink:function(G){var F=this._getSelectedElement(),E=null;if(this._hasParent(F,"a")){this.currentElement[0]=this._hasParent(F,"a");}else{if(this._isElement(F,"li")){E=this._getDoc().createElement("a");E.innerHTML=F.innerHTML;F.innerHTML="";F.appendChild(E);this.currentElement[0]=E;}else{if(!this._isElement(F,"a")){this._createCurrentElement("a");E=this._swapEl(this.currentElement[0],"a");this.currentElement[0]=E;}else{this.currentElement[0]=F;}}}return[false];},cmd_insertimage:function(J){var E=true,F=null,I="insertimage",H=this._getSelectedElement();if(J===""){J=this.get("blankimage");}if(this._isElement(H,"img")){this.currentElement[0]=H;E=false;}else{if(this._getDoc().queryCommandEnabled(I)){this._getDoc().execCommand(I,false,J);var K=this._getDoc().getElementsByTagName("img");for(var G=0;G<K.length;G++){if(!YAHOO.util.Dom.hasClass(K[G],"yui-img")){YAHOO.util.Dom.addClass(K[G],"yui-img");this.currentElement[0]=K[G];}}E=false;}else{if(H==this._getDoc().body){F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this._getDoc().body.appendChild(F);}else{this._createCurrentElement("img");F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);}this.currentElement[0]=F;E=false;}}return[E];},cmd_inserthtml:function(H){var E=true,G="inserthtml",F=null,I=null;if(this.browser.webkit&&!this._getDoc().queryCommandEnabled(G)){this._createCurrentElement("img");F=this._getDoc().createElement("span");F.innerHTML=H;this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);E=false;}else{if(this.browser.ie){I=this._getRange();if(I.item){I.item(0).outerHTML=H;}else{I.pasteHTML(H);}E=false;}}return[E];},cmd_list:function(e){var V=true,Z=null,N=0,G=null,U="",d=this._getSelectedElement(),W="insertorderedlist";if(e=="ul"){W="insertunorderedlist";}if((this.browser.webkit&&!this.browser.webkit4)||(this.browser.opera)){if(this._isElement(d,"li")&&this._isElement(d.parentNode,e)){G=d.parentNode;Z=this._getDoc().createElement("span");YAHOO.util.Dom.addClass(Z,"yui-non");U="";var F=G.getElementsByTagName("li"),I=((this.browser.opera&&this.get("ptags"))?"p":"div");for(N=0;N<F.length;N++){U+="<"+I+">"+F[N].innerHTML+"</"+I+">";}Z.innerHTML=U;this.currentElement[0]=G;this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);}else{this._createCurrentElement(e.toLowerCase());Z=this._getDoc().createElement(e);for(N=0;N<this.currentElement.length;N++){var K=this._getDoc().createElement("li");K.innerHTML=this.currentElement[N].innerHTML+'<span class="yui-non">&nbsp;</span>&nbsp;';Z.appendChild(K);if(N>0){this.currentElement[N].parentNode.removeChild(this.currentElement[N]);}}var T=((this.browser.opera)?"<BR>":"<br>"),S=Z.firstChild.innerHTML.split(T),Y,a;if(S.length>0){Z.innerHTML="";for(Y=0;Y<S.length;Y++){a=this._getDoc().createElement("li");a.innerHTML=S[Y];Z.appendChild(a);}}this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);this.currentElement[0]=Z;var H=this.currentElement[0].firstChild;H=C.getElementsByClassName("yui-non","span",H)[0];if(this.browser.webkit){this._getSelection().setBaseAndExtent(H,1,H,H.innerText.length);}}V=false;}else{G=this._getSelectedElement();if(this._isElement(G,"li")&&this._isElement(G.parentNode,e)||(this.browser.ie&&this._isElement(this._getRange().parentElement,"li"))||(this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){if(this.browser.ie){if((this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){G=G.getElementsByTagName("li")[0];}U="";var J=G.parentNode.getElementsByTagName("li");for(var X=0;X<J.length;X++){U+=J[X].innerHTML+"<br>";}var c=this._getDoc().createElement("span");c.innerHTML=U;G.parentNode.parentNode.replaceChild(c,G.parentNode);}else{this.nodeChange();this._getDoc().execCommand(W,"",G.parentNode);this.nodeChange();}V=false;}if(this.browser.opera){var R=this;window.setTimeout(function(){var f=R._getDoc().getElementsByTagName("li");for(var g=0;g<f.length;g++){if(f[g].innerHTML.toLowerCase()=="<br>"){f[g].parentNode.parentNode.removeChild(f[g].parentNode);}}},30);}if(this.browser.ie&&V){var L="";if(this._getRange().html){L="<li>"+this._getRange().html+"</li>";}else{var M=this._getRange().text.split("\n");if(M.length>1){L="";for(var Q=0;Q<M.length;Q++){L+="<li>"+M[Q]+"</li>";}}else{var P=this._getRange().text;if(P===""){L='<li id="new_list_item">'+P+"</li>";}else{L="<li>"+P+"</li>";}}}this._getRange().pasteHTML("<"+e+">"+L+"</"+e+">");var E=this._getDoc().getElementById("new_list_item");if(E){var O=this._getDoc().body.createTextRange();
++O.moveToElementText(E);O.collapse(false);O.select();E.id="";}V=false;}}return V;},cmd_insertorderedlist:function(E){return[this.cmd_list("ol")];},cmd_insertunorderedlist:function(E){return[this.cmd_list("ul")];},cmd_fontname:function(H){var E=true,G=this._getSelectedElement();this.currentFont=H;if(G&&G.tagName&&!this._hasSelection()&&!this._isElement(G,"body")&&!this.get("insert")){YAHOO.util.Dom.setStyle(G,"font-family",H);E=false;}else{if(this.get("insert")&&!this._hasSelection()){var F=this._createInsertElement({fontFamily:H});E=false;}}return[E];},cmd_fontsize:function(H){var E=null,G=true;E=this._getSelectedElement();if(this.browser.webkit){if(this.currentElement[0]){if(E==this.currentElement[0]){G=false;YAHOO.util.Dom.setStyle(E,"fontSize",H);this._selectNode(E);this.currentElement[0]=E;}}}if(G){if(!this._isElement(this._getSelectedElement(),"body")&&(!this._hasSelection())){E=this._getSelectedElement();YAHOO.util.Dom.setStyle(E,"fontSize",H);if(this.get("insert")&&this.browser.ie){var F=this._getRange();F.collapse(false);F.select();}else{this._selectNode(E);}}else{if(this.currentElement&&(this.currentElement.length>0)&&(!this._hasSelection())&&(!this.get("insert"))){YAHOO.util.Dom.setStyle(this.currentElement,"fontSize",H);}else{if(this.get("insert")&&!this._hasSelection()){E=this._createInsertElement({fontSize:H});this.currentElement[0]=E;this._selectNode(this.currentElement[0]);}else{this._createCurrentElement("span",{"fontSize":H,fontFamily:E.style.fontFamily,color:E.style.color,backgroundColor:E.style.backgroundColor});this._selectNode(this.currentElement[0]);}}}}return[false];},_swapEl:function(F,E,H){var G=this._getDoc().createElement(E);if(F){G.innerHTML=F.innerHTML;}if(typeof H=="function"){H.call(this,G);}if(F){F.parentNode.replaceChild(G,F);}return G;},_createInsertElement:function(E){this._createCurrentElement("span",E);var F=this.currentElement[0];if(this.browser.webkit){F.innerHTML='<span class="yui-non">&nbsp;</span>';F=F.firstChild;this._getSelection().setBaseAndExtent(F,1,F,F.innerText.length);}else{if(this.browser.ie||this.browser.opera){F.innerHTML="&nbsp;";}}this.focus();this._selectNode(F,true);return F;},_createCurrentElement:function(G,J){G=((G)?G:"a");var R=null,F=[],H=this._getDoc();if(this.currentFont){if(!J){J={};}J.fontFamily=this.currentFont;this.currentFont=null;}this.currentElement=[];var M=function(X,Z){var Y=null;X=((X)?X:"span");X=X.toLowerCase();switch(X){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":Y=H.createElement(X);break;default:Y=H.createElement(X);if(X==="span"){YAHOO.util.Dom.addClass(Y,"yui-tag-"+X);YAHOO.util.Dom.addClass(Y,"yui-tag");Y.setAttribute("tag",X);}for(var W in Z){if(YAHOO.lang.hasOwnProperty(Z,W)){Y.style[W]=Z[W];}}break;}return Y;};if(!this._hasSelection()){if(this._getDoc().queryCommandEnabled("insertimage")){this._getDoc().execCommand("insertimage",false,"yui-tmp-img");var L=this._getDoc().getElementsByTagName("img");for(var Q=0;Q<L.length;Q++){if(L[Q].getAttribute("src",2)=="yui-tmp-img"){F=M(G,J);L[Q].parentNode.replaceChild(F,L[Q]);this.currentElement[this.currentElement.length]=F;}}}else{if(this.currentEvent){R=YAHOO.util.Event.getTarget(this.currentEvent);}else{R=this._getDoc().body;}}if(R){F=M(G,J);if(this._isElement(R,"body")||this._isElement(R,"html")){if(this._isElement(R,"html")){R=this._getDoc().body;}R.appendChild(F);}else{if(R.nextSibling){R.parentNode.insertBefore(F,R.nextSibling);}else{R.parentNode.appendChild(F);}}this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}}}else{this._setEditorStyle(true);this._getDoc().execCommand("fontname",false,"yui-tmp");var E=[],P,V=["font","span","i","b","u"];if(!this._isElement(this._getSelectedElement(),"body")){V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);}for(var K=0;K<V.length;K++){var I=this._getDoc().getElementsByTagName(V[K]);for(var U=0;U<I.length;U++){E[E.length]=I[U];}}for(var S=0;S<E.length;S++){if((YAHOO.util.Dom.getStyle(E[S],"font-family")=="yui-tmp")||(E[S].face&&(E[S].face=="yui-tmp"))){if(G!=="span"){F=M(G,J);}else{F=M(E[S].tagName,J);}F.innerHTML=E[S].innerHTML;if(this._isElement(E[S],"ol")||(this._isElement(E[S],"ul"))){var N=E[S].getElementsByTagName("li")[0];E[S].style.fontFamily="inherit";N.style.fontFamily="inherit";F.innerHTML=N.innerHTML;N.innerHTML="";N.appendChild(F);this.currentElement[this.currentElement.length]=F;}else{if(this._isElement(E[S],"li")){E[S].innerHTML="";E[S].appendChild(F);E[S].style.fontFamily="inherit";this.currentElement[this.currentElement.length]=F;}else{if(E[S].parentNode){E[S].parentNode.replaceChild(F,E[S]);this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}if(this.browser.ie&&J&&J.fontSize){this._getSelection().empty();}if(this.browser.gecko){this._getSelection().collapseToStart();}}}}}}var T=this.currentElement.length;for(var O=0;O<T;O++){if((O+1)!=T){if(this.currentElement[O]&&this.currentElement[O].nextSibling){if(this._isElement(this.currentElement[O],"br")){this.currentElement[this.currentElement.length]=this.currentElement[O].nextSibling;}}}}}},saveHTML:function(){var F=this.cleanHTML();if(this._textarea){this.get("element").value=F;}else{this.get("element").innerHTML=F;}if(this.get("saveEl")!==this.get("element")){var E=this.get("saveEl");if(D.isString(E)){E=C.get(E);}if(E){if(E.tagName.toLowerCase()==="textarea"){E.value=F;}else{E.innerHTML=F;}}}return F;},setEditorHTML:function(F){var E=this._cleanIncomingHTML(F);E=E.replace(/RIGHT_BRACKET/gi,"{");E=E.replace(/LEFT_BRACKET/gi,"}");
++this._getDoc().body.innerHTML=E;this.nodeChange();},getEditorHTML:function(){try{var E=this._getDoc().body;if(E===null){return null;}return this._getDoc().body.innerHTML;}catch(F){return"";}},show:function(){if(this.browser.gecko){this._setDesignMode("on");this.focus();}if(this.browser.webkit){var E=this;window.setTimeout(function(){E._setInitialContent.call(E);},10);}if(this.currentWindow){this.closeWindow();}this.get("iframe").setStyle("position","static");this.get("iframe").setStyle("left","");},hide:function(){if(this.currentWindow){this.closeWindow();}if(this._fixNodesTimer){clearTimeout(this._fixNodesTimer);this._fixNodesTimer=null;}if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);this._nodeChangeTimer=null;}this._lastNodeChange=0;this.get("iframe").setStyle("position","absolute");this.get("iframe").setStyle("left","-9999px");},_cleanIncomingHTML:function(E){E=E.replace(/{/gi,"RIGHT_BRACKET");E=E.replace(/}/gi,"LEFT_BRACKET");E=E.replace(/<strong([^>]*)>/gi,"<b$1>");E=E.replace(/<\/strong>/gi,"</b>");E=E.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");E=E.replace(/<\/embed>/gi,"</YUI_EMBED>");E=E.replace(/<em([^>]*)>/gi,"<i$1>");E=E.replace(/<\/em>/gi,"</i>");E=E.replace(/_moz_dirty=""/gi,"");E=E.replace(/<YUI_EMBED([^>]*)>/gi,"<embed$1>");E=E.replace(/<\/YUI_EMBED>/gi,"</embed>");if(this.get("plainText")){E=E.replace(/\n/g,"<br>").replace(/\r/g,"<br>");E=E.replace(/  /gi,"&nbsp;&nbsp;");E=E.replace(/\t/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");}E=E.replace(/<script([^>]*)>/gi,"<bad>");E=E.replace(/<\/script([^>]*)>/gi,"</bad>");E=E.replace(/&lt;script([^>]*)&gt;/gi,"<bad>");E=E.replace(/&lt;\/script([^>]*)&gt;/gi,"</bad>");E=E.replace(/\r\n/g,"<YUI_LF>").replace(/\n/g,"<YUI_LF>").replace(/\r/g,"<YUI_LF>");E=E.replace(new RegExp("<bad([^>]*)>(.*?)</bad>","gi"),"");E=E.replace(/<YUI_LF>/g,"\n");return E;},cleanHTML:function(H){if(!H){H=this.getEditorHTML();}var F=this.get("markup");H=this.pre_filter_linebreaks(H,F);H=this.filter_msword(H);H=H.replace(/<img([^>]*)\/>/gi,"<YUI_IMG$1>");H=H.replace(/<img([^>]*)>/gi,"<YUI_IMG$1>");H=H.replace(/<input([^>]*)\/>/gi,"<YUI_INPUT$1>");H=H.replace(/<input([^>]*)>/gi,"<YUI_INPUT$1>");H=H.replace(/<ul([^>]*)>/gi,"<YUI_UL$1>");H=H.replace(/<\/ul>/gi,"</YUI_UL>");H=H.replace(/<blockquote([^>]*)>/gi,"<YUI_BQ$1>");H=H.replace(/<\/blockquote>/gi,"</YUI_BQ>");H=H.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");H=H.replace(/<\/embed>/gi,"</YUI_EMBED>");if((F=="semantic")||(F=="xhtml")){H=H.replace(/<i(\s+[^>]*)?>/gi,"<em$1>");H=H.replace(/<\/i>/gi,"</em>");H=H.replace(/<b(\s+[^>]*)?>/gi,"<strong$1>");H=H.replace(/<\/b>/gi,"</strong>");}H=H.replace(/_moz_dirty=""/gi,"");H=H.replace(/<strike/gi,'<span style="text-decoration: line-through;"');H=H.replace(/\/strike>/gi,"/span>");if(this.browser.ie){H=H.replace(/text-decoration/gi,"text-decoration");H=H.replace(/font-weight/gi,"font-weight");H=H.replace(/_width="([^>]*)"/gi,"");H=H.replace(/_height="([^>]*)"/gi,"");var G=this._baseHREF.replace(/\//gi,"\\/"),I=new RegExp('src="'+G,"gi");H=H.replace(I,'src="');}H=H.replace(/<font/gi,"<font");H=H.replace(/<\/font>/gi,"</font>");H=H.replace(/<span/gi,"<span");H=H.replace(/<\/span>/gi,"</span>");if((F=="semantic")||(F=="xhtml")||(F=="css")){H=H.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)</font>',"gi"),'<span $1 style="font-family: $2;">$3</span>');H=H.replace(/<u/gi,'<span style="text-decoration: underline;"');if(this.browser.webkit){H=H.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)</span>',"gi"),"<strong>$1</strong>");H=H.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)</span>',"gi"),"<em>$1</em>");}H=H.replace(/\/u>/gi,"/span>");if(F=="css"){H=H.replace(/<em([^>]*)>/gi,"<i$1>");H=H.replace(/<\/em>/gi,"</i>");H=H.replace(/<strong([^>]*)>/gi,"<b$1>");H=H.replace(/<\/strong>/gi,"</b>");H=H.replace(/<b/gi,'<span style="font-weight: bold;"');H=H.replace(/\/b>/gi,"/span>");H=H.replace(/<i/gi,'<span style="font-style: italic;"');H=H.replace(/\/i>/gi,"/span>");}H=H.replace(/  /gi," ");}else{H=H.replace(/<u/gi,"<u");H=H.replace(/\/u>/gi,"/u>");}H=H.replace(/<ol([^>]*)>/gi,"<ol$1>");H=H.replace(/\/ol>/gi,"/ol>");H=H.replace(/<li/gi,"<li");H=H.replace(/\/li>/gi,"/li>");H=this.filter_safari(H);H=this.filter_internals(H);H=this.filter_all_rgb(H);H=this.post_filter_linebreaks(H,F);if(F=="xhtml"){H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1 />");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1 />");}else{H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1>");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1>");}H=H.replace(/<YUI_UL([^>]*)>/g,"<ul$1>");H=H.replace(/<\/YUI_UL>/g,"</ul>");H=this.filter_invalid_lists(H);H=H.replace(/<YUI_BQ([^>]*)>/g,"<blockquote$1>");H=H.replace(/<\/YUI_BQ>/g,"</blockquote>");H=H.replace(/<YUI_EMBED([^>]*)>/g,"<embed$1>");H=H.replace(/<\/YUI_EMBED>/g,"</embed>");H=H.replace(/ &amp; /gi," YUI_AMP ");H=H.replace(/ &amp;/gi," YUI_AMP_F ");H=H.replace(/&amp; /gi," YUI_AMP_R ");H=H.replace(/&amp;/gi,"&");H=H.replace(/ YUI_AMP /gi," &amp; ");H=H.replace(/ YUI_AMP_F /gi," &amp;");H=H.replace(/ YUI_AMP_R /gi,"&amp; ");H=YAHOO.lang.trim(H);if(this.get("removeLineBreaks")){H=H.replace(/\n/g,"").replace(/\r/g,"");H=H.replace(/  /gi," ");}for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(D.isObject(E)&&E.keepContents){H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"$1");}else{H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"");}}}this.fireEvent("cleanHTML",{type:"cleanHTML",target:this,html:H});return H;},filter_msword:function(E){if(!this.get("filterWord")){return E;}E=E.replace(/<o:p>\s*<\/o:p>/g,"");E=E.replace(/<o:p>[\s\S]*?<\/o:p>/g,"&nbsp;");E=E.replace(/<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi,"");E=E.replace(/\s*mso-[^:]+:[^;"]+;?/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*;/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*"/gi,'"');E=E.replace(/\s*TEXT-INDENT: 0cm\s*;/gi,"");E=E.replace(/\s*TEXT-INDENT: 0cm\s*"/gi,'"');E=E.replace(/\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi,'"');
++E=E.replace(/\s*FONT-VARIANT: [^\s;]+;?"/gi,'"');E=E.replace(/\s*tab-stops:[^;"]*;?/gi,"");E=E.replace(/\s*tab-stops:[^"]*/gi,"");E=E.replace(/<\\?\?xml[^>]*>/gi,"");E=E.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) language=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi,"<$1$3");return E;},filter_invalid_lists:function(E){E=E.replace(/<\/li>\n/gi,"</li>");E=E.replace(/<\/li><ol>/gi,"</li><li><ol>");E=E.replace(/<\/ol>/gi,"</ol></li>");E=E.replace(/<\/ol><\/li>\n/gi,"</ol>");E=E.replace(/<\/li><ul>/gi,"</li><li><ul>");E=E.replace(/<\/ul>/gi,"</ul></li>");E=E.replace(/<\/ul><\/li>\n?/gi,"</ul>");E=E.replace(/<\/li>/gi,"</li>");E=E.replace(/<\/ol>/gi,"</ol>");E=E.replace(/<ol>/gi,"<ol>");E=E.replace(/<ul>/gi,"<ul>");return E;},filter_safari:function(E){if(this.browser.webkit){E=E.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");E=E.replace(/Apple-style-span/gi,"");E=E.replace(/style="line-height: normal;"/gi,"");E=E.replace(/yui-wk-div/gi,"");E=E.replace(/yui-wk-p/gi,"");E=E.replace(/<li><\/li>/gi,"");E=E.replace(/<li> <\/li>/gi,"");E=E.replace(/<li>  <\/li>/gi,"");if(this.get("ptags")){E=E.replace(/<div([^>]*)>/g,"<p$1>");E=E.replace(/<\/div>/gi,"</p>");}else{E=E.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi,"<br>");E=E.replace(/<\/div>/gi,"");}}return E;},filter_internals:function(E){E=E.replace(/\r/g,"");E=E.replace(/<\/?(body|head|html)[^>]*>/gi,"");E=E.replace(/<YUI_BR><\/li>/gi,"</li>");E=E.replace(/yui-tag-span/gi,"");E=E.replace(/yui-tag/gi,"");E=E.replace(/yui-non/gi,"");E=E.replace(/yui-img/gi,"");E=E.replace(/ tag="span"/gi,"");E=E.replace(/ class=""/gi,"");E=E.replace(/ style=""/gi,"");E=E.replace(/ class=" "/gi,"");E=E.replace(/ class="  "/gi,"");E=E.replace(/ target=""/gi,"");E=E.replace(/ title=""/gi,"");if(this.browser.ie){E=E.replace(/ class= /gi,"");E=E.replace(/ class= >/gi,"");}return E;},filter_all_rgb:function(I){var H=new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)","gi");var E=I.match(H);if(D.isArray(E)){for(var G=0;G<E.length;G++){var F=this.filter_rgb(E[G]);I=I.replace(E[G].toString(),F);}}return I;},filter_rgb:function(G){if(G.toLowerCase().indexOf("rgb")!=-1){var J=new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)","gi");var F=G.replace(J,"$1,$2,$3,$4,$5").split(",");if(F.length==5){var I=parseInt(F[1],10).toString(16);var H=parseInt(F[2],10).toString(16);var E=parseInt(F[3],10).toString(16);I=I.length==1?"0"+I:I;H=H.length==1?"0"+H:H;E=E.length==1?"0"+E:E;G="#"+I+H+E;}}return G;},pre_filter_linebreaks:function(F,E){if(this.browser.webkit){F=F.replace(/<br class="khtml-block-placeholder">/gi,"<YUI_BR>");F=F.replace(/<br class="webkit-block-placeholder">/gi,"<YUI_BR>");}F=F.replace(/<br>/gi,"<YUI_BR>");F=F.replace(/<br (.*?)>/gi,"<YUI_BR>");F=F.replace(/<br\/>/gi,"<YUI_BR>");F=F.replace(/<br \/>/gi,"<YUI_BR>");F=F.replace(/<div><YUI_BR><\/div>/gi,"<YUI_BR>");F=F.replace(/<p>(&nbsp;|&#160;)<\/p>/g,"<YUI_BR>");F=F.replace(/<p><br>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<p>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<YUI_BR>$/,"");F=F.replace(/<YUI_BR><\/p>/g,"</p>");if(this.browser.ie){F=F.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g,"\t");}return F;},post_filter_linebreaks:function(F,E){if(E=="xhtml"){F=F.replace(/<YUI_BR>/g,"<br />");}else{F=F.replace(/<YUI_BR>/g,"<br>");}return F;},clearEditorDoc:function(){this._getDoc().body.innerHTML="&nbsp;";},openWindow:function(E){},moveWindow:function(){},_closeWindow:function(){},closeWindow:function(){this.toolbar.resetAllButtons();this.focus();},destroy:function(){if(this._nodeChangeDelayTimer){clearTimeout(this._nodeChangeDelayTimer);}this.hide();if(this.resize){this.resize.destroy();}if(this.dd){this.dd.unreg();}if(this.get("panel")){this.get("panel").destroy();}this.saveHTML();this.toolbar.destroy();this.setStyle("visibility","visible");this.setStyle("position","static");this.setStyle("top","");this.setStyle("left","");var E=this.get("element");this.get("element_cont").get("parentNode").replaceChild(E,this.get("element_cont").get("element"));this.get("element_cont").get("element").innerHTML="";this.set("handleSubmit",false);return true;},toString:function(){var E="SimpleEditor";if(this.get&&this.get("element_cont")){E="SimpleEditor (#"+this.get("element_cont").get("id")+")"+((this.get("disabled")?" Disabled":""));}return E;}});YAHOO.widget.EditorInfo={_instances:{},blankImage:"",window:{},panel:null,getEditorById:function(E){if(!YAHOO.lang.isString(E)){E=E.id;}if(this._instances[E]){return this._instances[E];}return false;},saveAll:function(G){var F,H,E=YAHOO.widget.EditorInfo._instances;if(G){for(F in E){if(D.hasOwnProperty(E,F)){H=E[F];if(H.get("element").form&&(H.get("element").form==G)){H.saveHTML();}}}}else{for(F in E){if(D.hasOwnProperty(E,F)){E[F].saveHTML();}}}},toString:function(){var E=0;for(var F in this._instances){if(D.hasOwnProperty(this._instances,F)){E++;}}return"Editor Info ("+E+" registered intance"+((E>1)?"s":"")+")";}};})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang,B=YAHOO.widget.Toolbar;YAHOO.widget.Editor=function(F,E){YAHOO.widget.Editor.superclass.constructor.call(this,F,E);};YAHOO.extend(YAHOO.widget.Editor,YAHOO.widget.SimpleEditor,{_undoCache:null,_undoLevel:null,_hasUndoLevel:function(){return((this._undoCache.length>1)&&this._undoLevel);},_undoNodeChange:function(){var E=this.toolbar.getButtonByValue("undo"),F=this.toolbar.getButtonByValue("redo");if(E&&F){if(this._hasUndoLevel()){this.toolbar.enableButton(E);}if(this._undoLevel<this._undoCache.length){this.toolbar.enableButton(F);}}this._lastCommand=null;},_checkUndo:function(){var E=this._undoCache.length,G=[];if(E>=this.get("maxUndo")){for(var F=(E-this.get("maxUndo"));F<E;F++){G.push(this._undoCache[F]);}this._undoCache=G;}},_putUndo:function(F){if(this._undoLevel===this._undoCache.length){this._undoCache.push(F);
++this._undoLevel=this._undoCache.length;}else{var F=this.getEditorHTML();var E=this._undoCache[this._undoLevel];if(E){if(F!==E){this._undoCache=[];this._undoLevel=0;}}}},_getUndo:function(E){this._undoLevel=E;return this._undoCache[E];},_storeUndo:function(){if(this._lastCommand==="undo"||this._lastCommand==="redo"){return false;}if(!this._undoCache){this._undoCache=[];this._undoLevel=0;}this._checkUndo();var F=this.getEditorHTML();var E=this._undoCache[this._undoLevel-1];if(E){if(F!==E){this._putUndo(F);}}else{this._putUndo(F);}this._undoNodeChange();},STR_BEFORE_EDITOR:"This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift [ aligns text left</li> <li>Control Shift | centers text</li> <li>Control Shift ] aligns text right</li> <li>Control Shift L adds an HTML link</li> <li>To exit this text editor use the keyboard shortcut Control + Shift + ESC.</li></ul>",STR_CLOSE_WINDOW:"Close Window",STR_CLOSE_WINDOW_NOTE:"To close this window use the Control + Shift + W key",STR_IMAGE_PROP_TITLE:"Image Options",STR_IMAGE_TITLE:"Description",STR_IMAGE_SIZE:"Size",STR_IMAGE_ORIG_SIZE:"Original Size",STR_IMAGE_COPY:'<span class="tip"><span class="icon icon-info"></span><strong>Note:</strong>To move this image just highlight it, cut, and paste where ever you\'d like.</span>',STR_IMAGE_PADDING:"Padding",STR_IMAGE_BORDER:"Border",STR_IMAGE_BORDER_SIZE:"Border Size",STR_IMAGE_BORDER_TYPE:"Border Type",STR_IMAGE_TEXTFLOW:"Text Flow",STR_LOCAL_FILE_WARNING:'<span class="tip"><span class="icon icon-warn"></span><strong>Note:</strong>This image/link points to a file on your computer and will not be accessible to others on the internet.</span>',STR_LINK_PROP_TITLE:"Link Options",STR_LINK_PROP_REMOVE:"Remove link from text",STR_LINK_NEW_WINDOW:"Open in a new window.",STR_LINK_TITLE:"Description",STR_NONE:"none",CLASS_LOCAL_FILE:"warning-localfile",CLASS_HIDDEN:"yui-hidden",init:function(F,E){this._windows={};if(!this._defaultToolbar){this._defaultToolbar={collapse:true,titlebar:"Text Editing Tools",draggable:false,buttonType:"advanced",buttons:[{group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]},{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"separator"},{type:"push",label:"Subscript",value:"subscript",disabled:true},{type:"push",label:"Superscript",value:"superscript",disabled:true}]},{type:"separator"},{group:"textstyle2",label:"&nbsp;",buttons:[{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true},{type:"separator"},{type:"push",label:"Remove Formatting",value:"removeformat",disabled:true},{type:"push",label:"Show/Hide Hidden Elements",value:"hiddenelements"}]},{type:"separator"},{group:"undoredo",label:"Undo/Redo",buttons:[{type:"push",label:"Undo",value:"undo",disabled:true},{type:"push",label:"Redo",value:"redo",disabled:true}]},{type:"separator"},{group:"alignment",label:"Alignment",buttons:[{type:"push",label:"Align Left CTRL + SHIFT + [",value:"justifyleft"},{type:"push",label:"Align Center CTRL + SHIFT + |",value:"justifycenter"},{type:"push",label:"Align Right CTRL + SHIFT + ]",value:"justifyright"},{type:"push",label:"Justify",value:"justifyfull"}]},{type:"separator"},{group:"parastyle",label:"Paragraph Style",buttons:[{type:"select",label:"Normal",value:"heading",disabled:true,menu:[{text:"Normal",value:"none",checked:true},{text:"Header 1",value:"h1"},{text:"Header 2",value:"h2"},{text:"Header 3",value:"h3"},{text:"Header 4",value:"h4"},{text:"Header 5",value:"h5"},{text:"Header 6",value:"h6"}]}]},{type:"separator"},{group:"indentlist2",label:"Indenting and Lists",buttons:[{type:"push",label:"Indent",value:"indent",disabled:true},{type:"push",label:"Outdent",value:"outdent",disabled:true},{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{type:"separator"},{group:"insertitem",label:"Insert Item",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true},{type:"push",label:"Insert Image",value:"insertimage"}]}]};}if(!this._defaultImageToolbarConfig){this._defaultImageToolbarConfig={buttonType:this._defaultToolbar.buttonType,buttons:[{group:"textflow",label:this.STR_IMAGE_TEXTFLOW+":",buttons:[{type:"push",label:"Left",value:"left"},{type:"push",label:"Inline",value:"inline"},{type:"push",label:"Block",value:"block"},{type:"push",label:"Right",value:"right"}]},{type:"separator"},{group:"padding",label:this.STR_IMAGE_PADDING+":",buttons:[{type:"spin",label:"0",value:"padding",range:[0,50]}]},{type:"separator"},{group:"border",label:this.STR_IMAGE_BORDER+":",buttons:[{type:"select",label:this.STR_IMAGE_BORDER_SIZE,value:"bordersize",menu:[{text:"none",value:"0",checked:true},{text:"1px",value:"1"},{text:"2px",value:"2"},{text:"3px",value:"3"},{text:"4px",value:"4"},{text:"5px",value:"5"}]},{type:"select",label:this.STR_IMAGE_BORDER_TYPE,value:"bordertype",disabled:true,menu:[{text:"Solid",value:"solid",checked:true},{text:"Dashed",value:"dashed"},{text:"Dotted",value:"dotted"}]},{type:"color",label:"Border Color",value:"bordercolor",disabled:true}]}]};
++}YAHOO.widget.Editor.superclass.init.call(this,F,E);},_render:function(){YAHOO.widget.Editor.superclass._render.apply(this,arguments);var E=this;window.setTimeout(function(){E._renderPanel.call(E);},800);},initAttributes:function(E){YAHOO.widget.Editor.superclass.initAttributes.call(this,E);this.setAttributeConfig("localFileWarning",{value:E.locaFileWarning||true});this.setAttributeConfig("hiddencss",{value:E.hiddencss||".yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }",writeOnce:true});},_windows:null,_defaultImageToolbar:null,_defaultImageToolbarConfig:null,_fixNodes:function(){YAHOO.widget.Editor.superclass._fixNodes.call(this);try{var H="";var J=this._getDoc().getElementsByTagName("img");for(var F=0;F<J.length;F++){if(J[F].getAttribute("href",2)){H=J[F].getAttribute("src",2);if(this._isLocalFile(H)){C.addClass(J[F],this.CLASS_LOCAL_FILE);}else{C.removeClass(J[F],this.CLASS_LOCAL_FILE);}}}var G=this._getDoc().body.getElementsByTagName("a");for(var E=0;E<G.length;E++){if(G[E].getAttribute("href",2)){H=G[E].getAttribute("href",2);if(this._isLocalFile(H)){C.addClass(G[E],this.CLASS_LOCAL_FILE);}else{C.removeClass(G[E],this.CLASS_LOCAL_FILE);}}}}catch(I){}},_disabled:["createlink","forecolor","backcolor","fontname","fontsize","superscript","subscript","removeformat","heading","indent"],_alwaysDisabled:{"outdent":true},_alwaysEnabled:{hiddenelements:true},_handleKeyDown:function(G){YAHOO.widget.Editor.superclass._handleKeyDown.call(this,G);var F=false,H=null,E=false;switch(G.keyCode){case this._keyMap.JUSTIFY_LEFT.key:if(this._checkKey(this._keyMap.JUSTIFY_LEFT,G)){H="justifyleft";F=true;}break;case this._keyMap.JUSTIFY_CENTER.key:if(this._checkKey(this._keyMap.JUSTIFY_CENTER,G)){H="justifycenter";F=true;}break;case 221:case this._keyMap.JUSTIFY_RIGHT.key:if(this._checkKey(this._keyMap.JUSTIFY_RIGHT,G)){H="justifyright";F=true;}break;}if(F&&H){this.execCommand(H,null);A.stopEvent(G);this.nodeChange();}},_renderCreateLinkWindow:function(){var H='<label for="'+this.get("id")+'_createlink_url"><strong>'+this.STR_LINK_URL+':</strong> <input type="text" name="'+this.get("id")+'_createlink_url" id="'+this.get("id")+'_createlink_url" value=""></label>';H+='<label for="'+this.get("id")+'_createlink_target"><strong>&nbsp;</strong><input type="checkbox" name="'+this.get("id")+'_createlink_target" id="'+this.get("id")+'_createlink_target" value="_blank" class="createlink_target"> '+this.STR_LINK_NEW_WINDOW+"</label>";H+='<label for="'+this.get("id")+'_createlink_title"><strong>'+this.STR_LINK_TITLE+':</strong> <input type="text" name="'+this.get("id")+'_createlink_title" id="'+this.get("id")+'_createlink_title" value=""></label>';var E=document.createElement("div");E.innerHTML=H;var G=document.createElement("div");G.className="removeLink";var F=document.createElement("a");F.href="#";F.innerHTML=this.STR_LINK_PROP_REMOVE;F.title=this.STR_LINK_PROP_REMOVE;A.on(F,"click",function(I){A.stopEvent(I);this.unsubscribeAll("afterExecCommand");this.execCommand("unlink");this.closeWindow();},this,true);G.appendChild(F);E.appendChild(G);this._windows.createlink={};this._windows.createlink.body=E;A.on(E,"keyup",function(I){A.stopPropagation(I);});this.get("panel").editor_form.appendChild(E);this.fireEvent("windowCreateLinkRender",{type:"windowCreateLinkRender",panel:this.get("panel"),body:E});return E;},_handleCreateLinkClick:function(){var E=this._getSelectedElement();if(this._isElement(E,"img")){this.STOP_EXEC_COMMAND=true;this.currentElement[0]=E;this.toolbar.fireEvent("insertimageClick",{type:"insertimageClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});return false;}if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){return false;}}this.on("afterExecCommand",function(){var K=new YAHOO.widget.EditorWindow("createlink",{width:"350px"});var I=this.currentElement[0],H="",L="",J="",G=false;if(I){K.el=I;if(I.getAttribute("href",2)!==null){H=I.getAttribute("href",2);if(this._isLocalFile(H)){K.setFooter(this.STR_LOCAL_FILE_WARNING);G=true;}else{K.setFooter(" ");}}if(I.getAttribute("title")!==null){L=I.getAttribute("title");}if(I.getAttribute("target")!==null){J=I.getAttribute("target");}}var F=null;if(this._windows.createlink&&this._windows.createlink.body){F=this._windows.createlink.body;}else{F=this._renderCreateLinkWindow();}K.setHeader(this.STR_LINK_PROP_TITLE);K.setBody(F);A.purgeElement(this.get("id")+"_createlink_url");C.get(this.get("id")+"_createlink_url").value=H;C.get(this.get("id")+"_createlink_title").value=L;C.get(this.get("id")+"_createlink_target").checked=((J)?true:false);A.onAvailable(this.get("id")+"_createlink_url",function(){var M=this.get("id");window.setTimeout(function(){try{YAHOO.util.Dom.get(M+"_createlink_url").focus();}catch(N){}},50);if(this._isLocalFile(H)){C.addClass(this.get("id")+"_createlink_url","warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{C.removeClass(this.get("id")+"_createlink_url","warning");this.get("panel").setFooter(" ");}A.on(this.get("id")+"_createlink_url","blur",function(){var N=C.get(this.get("id")+"_createlink_url");if(this._isLocalFile(N.value)){C.addClass(N,"warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{C.removeClass(N,"warning");this.get("panel").setFooter(" ");}},this,true);},this,true);this.openWindow(K);});},_handleCreateLinkWindowClose:function(){var G=C.get(this.get("id")+"_createlink_url"),I=C.get(this.get("id")+"_createlink_target"),K=C.get(this.get("id")+"_createlink_title"),H=arguments[0].win.el,E=H;if(G&&G.value){var J=G.value;if((J.indexOf(":/"+"/")==-1)&&(J.substring(0,1)!="/")&&(J.substring(0,6).toLowerCase()!="mailto")){if((J.indexOf("@")!=-1)&&(J.substring(0,6).toLowerCase()!="mailto")){J="mailto:"+J;
++}else{if(J.substring(0,1)!="#"){J="http:/"+"/"+J;}}}H.setAttribute("href",J);if(I.checked){H.setAttribute("target",I.value);}else{H.setAttribute("target","");}H.setAttribute("title",((K.value)?K.value:""));}else{var F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;C.addClass(F,"yui-non");H.parentNode.replaceChild(F,H);}C.removeClass(G,"warning");C.get(this.get("id")+"_createlink_url").value="";C.get(this.get("id")+"_createlink_title").value="";C.get(this.get("id")+"_createlink_target").checked=false;this.nodeChange();this.currentElement=[];},_renderInsertImageWindow:function(){var G=this.currentElement[0];var M='<label for="'+this.get("id")+'_insertimage_url"><strong>'+this.STR_IMAGE_URL+':</strong> <input type="text" id="'+this.get("id")+'_insertimage_url" value="" size="40"></label>';var K=document.createElement("div");K.innerHTML=M;var J=document.createElement("div");J.id=this.get("id")+"_img_toolbar";K.appendChild(J);var I='<label for="'+this.get("id")+'_insertimage_title"><strong>'+this.STR_IMAGE_TITLE+':</strong> <input type="text" id="'+this.get("id")+'_insertimage_title" value="" size="40"></label>';I+='<label for="'+this.get("id")+'_insertimage_link"><strong>'+this.STR_LINK_URL+':</strong> <input type="text" name="'+this.get("id")+'_insertimage_link" id="'+this.get("id")+'_insertimage_link" value=""></label>';I+='<label for="'+this.get("id")+'_insertimage_target"><strong>&nbsp;</strong><input type="checkbox" name="'+this.get("id")+'_insertimage_target_" id="'+this.get("id")+'_insertimage_target" value="_blank" class="insertimage_target"> '+this.STR_LINK_NEW_WINDOW+"</label>";var E=document.createElement("div");E.innerHTML=I;K.appendChild(E);var F={};D.augmentObject(F,this._defaultImageToolbarConfig);var H=new YAHOO.widget.Toolbar(J,F);H.editor_el=G;this._defaultImageToolbar=H;var N=H.get("cont");var L=document.createElement("div");L.className="yui-toolbar-group yui-toolbar-group-height-width height-width";L.innerHTML="<h3>"+this.STR_IMAGE_SIZE+":</h3>";L.innerHTML+='<span tabIndex="-1"><input type="text" size="3" value="" id="'+this.get("id")+'_insertimage_width"> x <input type="text" size="3" value="" id="'+this.get("id")+'_insertimage_height"></span>';N.insertBefore(L,N.firstChild);A.onAvailable(this.get("id")+"_insertimage_width",function(){A.on(this.get("id")+"_insertimage_width","blur",function(){var O=parseInt(C.get(this.get("id")+"_insertimage_width").value,10);if(O>5){this._defaultImageToolbar.editor_el.style.width=O+"px";}},this,true);},this,true);A.onAvailable(this.get("id")+"_insertimage_height",function(){A.on(this.get("id")+"_insertimage_height","blur",function(){var O=parseInt(C.get(this.get("id")+"_insertimage_height").value,10);if(O>5){this._defaultImageToolbar.editor_el.style.height=O+"px";}},this,true);},this,true);H.on("colorPickerClicked",function(T){var P="1",S="solid",O="black",R=this._defaultImageToolbar.editor_el;if(R.style.borderLeftWidth){P=parseInt(R.style.borderLeftWidth,10);}if(R.style.borderLeftStyle){S=R.style.borderLeftStyle;}if(R.style.borderLeftColor){O=R.style.borderLeftColor;}var Q=P+"px "+S+" #"+T.color;R.style.border=Q;},this,true);H.on("buttonClick",function(V){var T=V.button.value,S=this._defaultImageToolbar.editor_el,R="";if(V.button.menucmd){T=V.button.menucmd;}var P="1",Q="solid",O="black";if(S.style.borderLeftWidth){P=parseInt(S.style.borderLeftWidth,10);}if(S.style.borderLeftStyle){Q=S.style.borderLeftStyle;}if(S.style.borderLeftColor){O=S.style.borderLeftColor;}switch(T){case"bordersize":if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}R=parseInt(V.button.value,10)+"px "+Q+" "+O;S.style.border=R;if(parseInt(V.button.value,10)>0){H.enableButton("bordertype");H.enableButton("bordercolor");}else{H.disableButton("bordertype");H.disableButton("bordercolor");}break;case"bordertype":if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}R=P+"px "+V.button.value+" "+O;S.style.border=R;break;case"right":case"left":H.deselectAllButtons();S.style.display="";S.align=V.button.value;break;case"inline":H.deselectAllButtons();S.style.display="";S.align="";break;case"block":H.deselectAllButtons();S.style.display="block";S.align="center";break;case"padding":var U=H.getButtonById(V.button.id);S.style.margin=U.get("label")+"px";break;}H.selectButton(V.button.value);if(T!=="padding"){this.moveWindow();}},this,true);if(this.get("localFileWarning")){A.on(this.get("id")+"_insertimage_link","blur",function(){var O=C.get(this.get("id")+"_insertimage_link");if(this._isLocalFile(O.value)){C.addClass(O,"warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{C.removeClass(O,"warning");this.get("panel").setFooter(" ");if((this.browser.webkit&&!this.browser.webkit3||this.browser.air)||this.browser.opera){this.get("panel").setFooter(this.STR_IMAGE_COPY);}}},this,true);}A.on(this.get("id")+"_insertimage_url","blur",function(){var Q=C.get(this.get("id")+"_insertimage_url"),R=this.currentElement[0];if(Q.value&&R){if(Q.value==R.getAttribute("src",2)){return false;}}if(this._isLocalFile(Q.value)){C.addClass(Q,"warning");this.get("panel").setFooter(this.STR_LOCAL_FILE_WARNING);}else{if(this.currentElement[0]){C.removeClass(Q,"warning");this.get("panel").setFooter(" ");if((this.browser.webkit&&!this.browser.webkit3||this.browser.air)||this.browser.opera){this.get("panel").setFooter(this.STR_IMAGE_COPY);}if(Q&&Q.value&&(Q.value!=this.STR_IMAGE_HERE)){this.currentElement[0].setAttribute("src",Q.value);var P=this,O=new Image();O.onerror=function(){Q.value=P.STR_IMAGE_HERE;O.setAttribute("src",P.get("blankimage"));P.currentElement[0].setAttribute("src",P.get("blankimage"));YAHOO.util.Dom.get(P.get("id")+"_insertimage_height").value=O.height;YAHOO.util.Dom.get(P.get("id")+"_insertimage_width").value=O.width;};var S=this.get("id");window.setTimeout(function(){YAHOO.util.Dom.get(S+"_insertimage_height").value=O.height;YAHOO.util.Dom.get(S+"_insertimage_width").value=O.width;
++if(P.currentElement&&P.currentElement[0]){if(!P.currentElement[0]._height){P.currentElement[0]._height=O.height;}if(!P.currentElement[0]._width){P.currentElement[0]._width=O.width;}}},800);if(Q.value!=this.STR_IMAGE_HERE){O.src=Q.value;}}}}},this,true);this._windows.insertimage={};this._windows.insertimage.body=K;this.get("panel").editor_form.appendChild(K);this.fireEvent("windowInsertImageRender",{type:"windowInsertImageRender",panel:this.get("panel"),body:K,toolbar:H});return K;},_handleInsertImageClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("insertimage")){return false;}}this.on("afterExecCommand",function(){var H=this.currentElement[0],O=null,L="",Z="",G=null,a="",K="",X="",R=75,V=75,Q=0,M=0,J=0,S=false,I=new YAHOO.widget.EditorWindow("insertimage",{width:"415px"});if(!H){H=this._getSelectedElement();}if(H){I.el=H;if(H.getAttribute("src")){K=H.getAttribute("src",2);if(K.indexOf(this.get("blankimage"))!=-1){K=this.STR_IMAGE_HERE;S=true;}}if(H.getAttribute("alt",2)){a=H.getAttribute("alt",2);}if(H.getAttribute("title",2)){a=H.getAttribute("title",2);}if(H.parentNode&&this._isElement(H.parentNode,"a")){L=H.parentNode.getAttribute("href",2);if(H.parentNode.getAttribute("target")!==null){Z=H.parentNode.getAttribute("target");}}R=parseInt(H.height,10);V=parseInt(H.width,10);if(H.style.height){R=parseInt(H.style.height,10);}if(H.style.width){V=parseInt(H.style.width,10);}if(H.style.margin){Q=parseInt(H.style.margin,10);}if(!S){if(!H._height){H._height=R;}if(!H._width){H._width=V;}M=H._height;J=H._width;}}if(this._windows.insertimage&&this._windows.insertimage.body){O=this._windows.insertimage.body;this._defaultImageToolbar.resetAllButtons();}else{O=this._renderInsertImageWindow();}G=this._defaultImageToolbar;G.editor_el=H;var F="0",U="solid";if(H.style.borderLeftWidth){F=parseInt(H.style.borderLeftWidth,10);}if(H.style.borderLeftStyle){U=H.style.borderLeftStyle;}var Y=G.getButtonByValue("bordersize"),W=((parseInt(F,10)>0)?"":this.STR_NONE);Y.set("label",'<span class="yui-toolbar-bordersize-'+F+'">'+W+"</span>");this._updateMenuChecked("bordersize",F,G);var N=G.getButtonByValue("bordertype");N.set("label",'<span class="yui-toolbar-bordertype-'+U+'">asdfa</span>');this._updateMenuChecked("bordertype",U,G);if(parseInt(F,10)>0){G.enableButton(N);G.enableButton(Y);G.enableButton("bordercolor");}if((H.align=="right")||(H.align=="left")){G.selectButton(H.align);}else{if(H.style.display=="block"){G.selectButton("block");}else{G.selectButton("inline");}}if(parseInt(H.style.marginLeft,10)>0){G.getButtonByValue("padding").set("label",""+parseInt(H.style.marginLeft,10));}if(H.style.borderSize){G.selectButton("bordersize");G.selectButton(parseInt(H.style.borderSize,10));}G.getButtonByValue("padding").set("label",""+Q);I.setHeader(this.STR_IMAGE_PROP_TITLE);I.setBody(O);if((this.browser.webkit&&!this.browser.webkit3||this.browser.air)||this.browser.opera){I.setFooter(this.STR_IMAGE_COPY);}this.openWindow(I);C.get(this.get("id")+"_insertimage_url").value=K;C.get(this.get("id")+"_insertimage_title").value=a;C.get(this.get("id")+"_insertimage_link").value=L;C.get(this.get("id")+"_insertimage_target").checked=((Z)?true:false);C.get(this.get("id")+"_insertimage_width").value=V;C.get(this.get("id")+"_insertimage_height").value=R;if(((R!=M)||(V!=J))&&(!S)){var P=document.createElement("span");P.className="info";P.innerHTML=this.STR_IMAGE_ORIG_SIZE+": ("+J+" x "+M+")";if(C.get(this.get("id")+"_insertimage_height").nextSibling){var E=C.get(this.get("id")+"_insertimage_height").nextSibling;E.parentNode.removeChild(E);}C.get(this.get("id")+"_insertimage_height").parentNode.appendChild(P);}this.toolbar.selectButton("insertimage");var T=this.get("id");window.setTimeout(function(){try{YAHOO.util.Dom.get(T+"_insertimage_url").focus();if(S){YAHOO.util.Dom.get(T+"_insertimage_url").select();}}catch(c){}},50);});},_handleInsertImageWindowClose:function(){var E=C.get(this.get("id")+"_insertimage_url"),L=C.get(this.get("id")+"_insertimage_title"),I=C.get(this.get("id")+"_insertimage_link"),J=C.get(this.get("id")+"_insertimage_target"),H=arguments[0].win.el;if(E&&E.value&&(E.value!=this.STR_IMAGE_HERE)){H.setAttribute("src",E.value);H.setAttribute("title",L.value);H.setAttribute("alt",L.value);var G=H.parentNode;if(I.value){var K=I.value;if((K.indexOf(":/"+"/")==-1)&&(K.substring(0,1)!="/")&&(K.substring(0,6).toLowerCase()!="mailto")){if((K.indexOf("@")!=-1)&&(K.substring(0,6).toLowerCase()!="mailto")){K="mailto:"+K;}else{K="http:/"+"/"+K;}}if(G&&this._isElement(G,"a")){G.setAttribute("href",K);if(J.checked){G.setAttribute("target",J.value);}else{G.setAttribute("target","");}}else{var F=this._getDoc().createElement("a");F.setAttribute("href",K);if(J.checked){F.setAttribute("target",J.value);}else{F.setAttribute("target","");}H.parentNode.replaceChild(F,H);F.appendChild(H);}}else{if(G&&this._isElement(G,"a")){G.parentNode.replaceChild(H,G);}}}else{H.parentNode.removeChild(H);}C.get(this.get("id")+"_insertimage_url").value="";C.get(this.get("id")+"_insertimage_title").value="";C.get(this.get("id")+"_insertimage_link").value="";C.get(this.get("id")+"_insertimage_target").checked=false;C.get(this.get("id")+"_insertimage_width").value=0;C.get(this.get("id")+"_insertimage_height").value=0;this._defaultImageToolbar.resetAllButtons();this.currentElement=[];this.nodeChange();},EDITOR_PANEL_ID:"-panel",_renderPanel:function(){var H=document.createElement("div");C.addClass(H,"yui-editor-panel");H.id=this.get("id")+this.EDITOR_PANEL_ID;H.style.position="absolute";H.style.top="-9999px";H.style.left="-9999px";document.body.appendChild(H);this.get("element_cont").insertBefore(H,this.get("element_cont").get("firstChild"));var E=new YAHOO.widget.Overlay(this.get("id")+this.EDITOR_PANEL_ID,{width:"300px",iframe:true,visible:false,underlay:"none",draggable:false,close:false});this.set("panel",E);E.setBody("---");E.setHeader(" ");E.setFooter(" ");var K=document.createElement("div");K.className=this.CLASS_PREFIX+"-body-cont";
++for(var L in this.browser){if(this.browser[L]){C.addClass(K,L);break;}}C.addClass(K,((YAHOO.widget.Button&&(this._defaultToolbar.buttonType=="advanced"))?"good-button":"no-button"));var I=document.createElement("h3");I.className="yui-editor-skipheader";I.innerHTML=this.STR_CLOSE_WINDOW_NOTE;K.appendChild(I);var F=document.createElement("fieldset");E.editor_form=F;K.appendChild(F);var G=document.createElement("span");G.innerHTML="X";G.title=this.STR_CLOSE_WINDOW;G.className="close";A.on(G,"click",this.closeWindow,this,true);var M=document.createElement("span");M.innerHTML="^";M.className="knob";E.editor_knob=M;var N=document.createElement("h3");E.editor_header=N;N.innerHTML="<span></span>";E.setHeader(" ");E.appendToHeader(N);N.appendChild(G);N.appendChild(M);E.setBody(" ");E.setFooter(" ");E.appendToBody(K);A.on(E.element,"click",function(O){A.stopPropagation(O);});var J=function(){E.bringToTop();YAHOO.util.Dom.setStyle(this.element,"display","block");this._handleWindowInputs(false);};E.showEvent.subscribe(J,this,true);E.hideEvent.subscribe(function(){this._handleWindowInputs(true);},this,true);E.renderEvent.subscribe(function(){this._renderInsertImageWindow();this._renderCreateLinkWindow();this.fireEvent("windowRender",{type:"windowRender",panel:E});this._handleWindowInputs(true);},this,true);if(this.DOMReady){this.get("panel").render();}else{A.onDOMReady(function(){this.get("panel").render();},this,true);}return this.get("panel");},_handleWindowInputs:function(F){if(!D.isBoolean(F)){F=false;}var E=this.get("panel").element.getElementsByTagName("input");for(var G=0;G<E.length;G++){try{E[G].disabled=F;}catch(H){}}},openWindow:function(K){var P=this;window.setTimeout(function(){P.toolbar.set("disabled",true);},10);A.on(document,"keydown",this._closeWindow,this,true);if(this.currentWindow){this.closeWindow();}var Q=C.getXY(this.currentElement[0]),N=C.getXY(this.get("iframe").get("element")),E=this.get("panel"),H=[(Q[0]+N[0]-20),(Q[1]+N[1]+10)],G=(parseInt(K.attrs.width,10)/2),L="center",J=null;this.fireEvent("beforeOpenWindow",{type:"beforeOpenWindow",win:K,panel:E});var F=E.editor_form;var I=this._windows;for(var O in I){if(D.hasOwnProperty(I,O)){if(I[O]&&I[O].body){if(O==K.name){C.setStyle(I[O].body,"display","block");}else{C.setStyle(I[O].body,"display","none");}}}}if(this._windows[K.name].body){C.setStyle(this._windows[K.name].body,"display","block");F.appendChild(this._windows[K.name].body);}else{if(D.isObject(K.body)){F.appendChild(K.body);}else{var M=document.createElement("div");M.innerHTML=K.body;F.appendChild(M);}}E.editor_header.firstChild.innerHTML=K.header;if(K.footer!==null){E.setFooter(K.footer);}E.cfg.setProperty("width",K.attrs.width);this.currentWindow=K;this.moveWindow(true);E.show();this.fireEvent("afterOpenWindow",{type:"afterOpenWindow",win:K,panel:E});},moveWindow:function(F){if(!this.currentWindow){return false;}var I=this.currentWindow,J=C.getXY(this.currentElement[0]),a=C.getXY(this.get("iframe").get("element")),O=this.get("panel"),Y=[(J[0]+a[0]),(J[1]+a[1])],R=(parseInt(I.attrs.width,10)/2),U="center",Q=O.cfg.getProperty("xy")||[0,0],G=O.editor_knob,X=0,L=0,T=false;Y[0]=((Y[0]-R)+20);Y[0]=Y[0]-C.getDocumentScrollLeft(this._getDoc());Y[1]=Y[1]-C.getDocumentScrollTop(this._getDoc());if(this._isElement(this.currentElement[0],"img")){if(this.currentElement[0].src.indexOf(this.get("blankimage"))!=-1){Y[0]=(Y[0]+(75/2));Y[1]=(Y[1]+75);}else{var N=parseInt(this.currentElement[0].width,10);var W=parseInt(this.currentElement[0].height,10);Y[0]=(Y[0]+(N/2));Y[1]=(Y[1]+W);}Y[1]=Y[1]+15;}else{var K=C.getStyle(this.currentElement[0],"fontSize");if(K&&K.indexOf&&K.indexOf("px")!=-1){Y[1]=Y[1]+parseInt(C.getStyle(this.currentElement[0],"fontSize"),10)+5;}else{Y[1]=Y[1]+20;}}if(Y[0]<a[0]){Y[0]=a[0]+5;U="left";}if((Y[0]+(R*2))>(a[0]+parseInt(this.get("iframe").get("element").clientWidth,10))){Y[0]=((a[0]+parseInt(this.get("iframe").get("element").clientWidth,10))-(R*2)-5);U="right";}try{X=(Y[0]-Q[0]);L=(Y[1]-Q[1]);}catch(c){}var P=a[1]+parseInt(this.get("height"),10);var H=a[0]+parseInt(this.get("width"),10);if(Y[1]>P){Y[1]=P;}if(Y[0]>H){Y[0]=(H/2);}X=((X<0)?(X*-1):X);L=((L<0)?(L*-1):L);if(((X>10)||(L>10))||F){var S=0,V=0;if(this.currentElement[0].width){V=(parseInt(this.currentElement[0].width,10)/2);}var M=J[0]+a[0]+V;S=M-Y[0];if(S>(parseInt(I.attrs.width,10)-1)){S=((parseInt(I.attrs.width,10)-30)-1);}else{if(S<40){S=1;}}if(isNaN(S)){S=1;}if(F){if(G){G.style.left=S+"px";}O.cfg.setProperty("xy",Y);}else{if(this.get("animate")){T=new YAHOO.util.Anim(O.element,{},0.5,YAHOO.util.Easing.easeOut);T.attributes={top:{to:Y[1]},left:{to:Y[0]}};T.onComplete.subscribe(function(){O.cfg.setProperty("xy",Y);});var Z=new YAHOO.util.Anim(O.iframe,T.attributes,0.5,YAHOO.util.Easing.easeOut);var E=new YAHOO.util.Anim(G,{left:{to:S}},0.6,YAHOO.util.Easing.easeOut);T.animate();Z.animate();E.animate();}else{G.style.left=S+"px";O.cfg.setProperty("xy",Y);}}}},_closeWindow:function(E){if(this._checkKey(this._keyMap.CLOSE_WINDOW,E)){if(this.currentWindow){this.closeWindow();}}},closeWindow:function(E){this.fireEvent("window"+this.currentWindow.name+"Close",{type:"window"+this.currentWindow.name+"Close",win:this.currentWindow,el:this.currentElement[0]});this.fireEvent("closeWindow",{type:"closeWindow",win:this.currentWindow});this.currentWindow=null;this.get("panel").hide();this.get("panel").cfg.setProperty("xy",[-900,-900]);this.get("panel").syncIframe();this.unsubscribeAll("afterExecCommand");this.toolbar.set("disabled",false);this.toolbar.resetAllButtons();this.focus();A.removeListener(document,"keydown",this._closeWindow);},cmd_undo:function(G){if(this._hasUndoLevel()){var F=this.getEditorHTML(),E;if(!this._undoLevel){this._undoLevel=this._undoCache.length;}this._undoLevel=(this._undoLevel-1);if(this._undoCache[this._undoLevel]){E=this._getUndo(this._undoLevel);if(E!=F){this.setEditorHTML(E);}else{this._undoLevel=(this._undoLevel-1);E=this._getUndo(this._undoLevel);if(E!=F){this.setEditorHTML(E);}}}else{this._undoLevel=0;
++this.toolbar.disableButton("undo");}}return[false];},cmd_redo:function(F){this._undoLevel=this._undoLevel+1;if(this._undoLevel>=this._undoCache.length){this._undoLevel=this._undoCache.length;}if(this._undoCache[this._undoLevel]){var E=this._getUndo(this._undoLevel);this.setEditorHTML(E);}else{this.toolbar.disableButton("redo");}return[false];},cmd_heading:function(I){var F=true,G=null,H="heading",J=this._getSelection(),E=this._getSelectedElement();if(E){J=E;}if(this.browser.ie){H="formatblock";}if(I==this.STR_NONE){if((J&&J.tagName&&(J.tagName.toLowerCase().substring(0,1)=="h"))||(J&&J.parentNode&&J.parentNode.tagName&&(J.parentNode.tagName.toLowerCase().substring(0,1)=="h"))){if(J.parentNode.tagName.toLowerCase().substring(0,1)=="h"){J=J.parentNode;}if(this._isElement(J,"html")){return[false];}G=this._swapEl(E,"span",function(K){K.className="yui-non";});this._selectNode(G);this.currentElement[0]=G;}F=false;}else{if(this._isElement(E,"h1")||this._isElement(E,"h2")||this._isElement(E,"h3")||this._isElement(E,"h4")||this._isElement(E,"h5")||this._isElement(E,"h6")){G=this._swapEl(E,I);this._selectNode(G);this.currentElement[0]=G;}else{this._createCurrentElement(I);this._selectNode(this.currentElement[0]);}F=false;}return[F,H];},cmd_hiddenelements:function(E){if(this._showingHiddenElements){this._lastButton=null;this._showingHiddenElements=false;this.toolbar.deselectButton("hiddenelements");C.removeClass(this._getDoc().body,this.CLASS_HIDDEN);}else{this._showingHiddenElements=true;C.addClass(this._getDoc().body,this.CLASS_HIDDEN);this.toolbar.selectButton("hiddenelements");}return[false];},cmd_removeformat:function(H){var F=true;if(this.browser.webkit&&!this._getDoc().queryCommandEnabled("removeformat")){var E=this._getSelection()+"";this._createCurrentElement("span");this.currentElement[0].className="yui-non";this.currentElement[0].innerHTML=E;for(var G=1;G<this.currentElement.length;G++){this.currentElement[G].parentNode.removeChild(this.currentElement[G]);}F=false;}return[F];},cmd_script:function(K,J){var G=true,E=K.toLowerCase().substring(0,3),H=null,F=this._getSelectedElement();if(this.browser.webkit){if(this._isElement(F,E)){H=this._swapEl(this.currentElement[0],"span",function(L){L.className="yui-non";});this._selectNode(H);}else{this._createCurrentElement(E);var I=this._swapEl(this.currentElement[0],E);this._selectNode(I);this.currentElement[0]=I;}G=false;}return G;},cmd_superscript:function(E){return[this.cmd_script("superscript",E)];},cmd_subscript:function(E){return[this.cmd_script("subscript",E)];},cmd_indent:function(H){var E=true,G=this._getSelectedElement(),I=null;if(this.browser.ie){if(this._isElement(G,"blockquote")){I=this._getDoc().createElement("blockquote");I.innerHTML=G.innerHTML;G.innerHTML="";G.appendChild(I);this._selectNode(I);}else{I=this._getDoc().createElement("blockquote");var F=this._getRange().htmlText;I.innerHTML=F;this._createCurrentElement("blockquote");this.currentElement[0].parentNode.replaceChild(I,this.currentElement[0]);this.currentElement[0]=I;this._selectNode(this.currentElement[0]);}E=false;}else{H="blockquote";}return[E,"formatblock",H];},cmd_outdent:function(I){var E=true,H=this._getSelectedElement(),J=null,F=null;if(this.browser.webkit||this.browser.ie){H=this._getSelectedElement();if(this._isElement(H,"blockquote")){var G=H.parentNode;if(this._isElement(H.parentNode,"blockquote")){G.innerHTML=H.innerHTML;this._selectNode(G);}else{F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;YAHOO.util.Dom.addClass(F,"yui-non");G.replaceChild(F,H);this._selectNode(F);}}else{}E=false;}else{I=false;}return[E,"outdent",I];},cmd_justify:function(E){if(this.browser.ie){if(this._hasSelection()){this._createCurrentElement("span");this._swapEl(this.currentElement[0],"div",function(F){F.style.textAlign=E;});return[false];}}return[true,"justify"+E,""];},cmd_justifycenter:function(){return[this.cmd_justify("center")];},cmd_justifyleft:function(){return[this.cmd_justify("left")];},cmd_justifyright:function(){return[this.cmd_justify("right")];},toString:function(){var E="Editor";if(this.get&&this.get("element_cont")){E="Editor (#"+this.get("element_cont").get("id")+")"+((this.get("disabled")?" Disabled":""));}return E;}});YAHOO.widget.EditorWindow=function(F,E){this.name=F.replace(" ","_");this.attrs=E;};YAHOO.widget.EditorWindow.prototype={header:null,body:null,footer:null,setHeader:function(E){this.header=E;},setBody:function(E){this.body=E;},setFooter:function(E){this.footer=E;},toString:function(){return"Editor Window ("+this.name+")";}};})();YAHOO.register("editor",YAHOO.widget.Editor,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/editor/editor.js b/pylons_app/public/js/yui/editor/editor.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/editor.js
+@@ -0,0 +1,9447 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    /**
++     * @module editor    
++     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
++     * @class ToolbarButtonAdvanced
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event, container_core, menu, button
++     * 
++     * Provides a toolbar button based on the button and menu widgets.
++     * @constructor
++     * @class ToolbarButtonAdvanced
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    if (YAHOO.widget.Button) {
++        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
++            var _menuItems = this.getMenu().getItems();
++            if (_menuItems.length === 0) {
++                this.getMenu()._onBeforeShow();
++                _menuItems = this.getMenu().getItems();
++            }
++            for (var i = 0; i < _menuItems.length; i++) {
++                _menuItems[i].cfg.setProperty('checked', false);
++                if (_menuItems[i].value == value) {
++                    _menuItems[i].cfg.setProperty('checked', true);
++                }
++            }      
++        };
++    } else {
++        YAHOO.widget.ToolbarButtonAdvanced = function() {};
++    }
++
++
++    /**
++     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
++     * @class ToolbarButton
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event
++     * @extends YAHOO.util.Element
++     * 
++     * 
++     * @constructor
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    YAHOO.widget.ToolbarButton = function(el, attrs) {
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = (attrs || {});
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++
++        if (!oConfig.attributes.type) {
++            oConfig.attributes.type = 'push';
++        }
++        
++        oConfig.element = document.createElement('span');
++        oConfig.element.setAttribute('unselectable', 'on');
++        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
++        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
++        oConfig.element.firstChild.firstChild.tabIndex = '-1';
++        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
++        oConfig.element.id = oConfig.attributes.id;
++
++        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        buttonType: 'normal',
++        /**
++        * @method _handleMouseOver
++        * @private
++        * @description Adds classes to the button elements on mouseover (hover)
++        */
++        _handleMouseOver: function() {
++            if (!this.get('disabled')) {
++                this.addClass('yui-button-hover');
++                this.addClass('yui-' + this.get('type') + '-button-hover');
++            }
++        },
++        /**
++        * @method _handleMouseOut
++        * @private
++        * @description Removes classes from the button elements on mouseout (hover)
++        */
++        _handleMouseOut: function() {
++            this.removeClass('yui-button-hover');
++            this.removeClass('yui-' + this.get('type') + '-button-hover');
++        },
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        checkValue: function(value) {
++            if (this.get('type') == 'menu') {
++                var opts = this._button.options;
++                for (var i = 0; i < opts.length; i++) {
++                    if (opts[i].value == value) {
++                        opts.selectedIndex = i;
++                    }
++                }
++            }
++        },
++        /** 
++        * @method init
++        * @description The ToolbarButton class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.on('mouseover', this._handleMouseOver, this, true);
++            this.on('mouseout', this._handleMouseOut, this, true);
++            this.on('click', function(ev) {
++                Event.stopEvent(ev);
++                return false;
++            }, this, true);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */        
++        initAttributes: function(attr) {
++            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
++            /**
++            * @attribute value
++            * @description The value of the button
++            * @type String
++            */            
++            this.setAttributeConfig('value', {
++                value: attr.value
++            });
++            /**
++            * @attribute menu
++            * @description The menu attribute, see YAHOO.widget.Button
++            * @type Object
++            */            
++            this.setAttributeConfig('menu', {
++                value: attr.menu || false
++            });
++            /**
++            * @attribute type
++            * @description The type of button to create: push, menu, color, select, spin
++            * @type String
++            */            
++            this.setAttributeConfig('type', {
++                value: attr.type,
++                writeOnce: true,
++                method: function(type) {
++                    var el, opt;
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    switch (type) {
++                        case 'select':
++                        case 'menu':
++                            el = document.createElement('select');
++                            el.id = this.get('id');
++                            var menu = this.get('menu');
++                            for (var i = 0; i < menu.length; i++) {
++                                opt = document.createElement('option');
++                                opt.innerHTML = menu[i].text;
++                                opt.value = menu[i].value;
++                                if (menu[i].checked) {
++                                    opt.selected = true;
++                                }
++                                el.appendChild(opt);
++                            }
++                            this._button.parentNode.replaceChild(el, this._button);
++                            Event.on(el, 'change', this._handleSelect, this, true);
++                            this._button = el;
++                            break;
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Set the button into a disabled state
++            * @type String
++            */            
++            this.setAttributeConfig('disabled', {
++                value: attr.disabled || false,
++                method: function(disabled) {
++                    if (disabled) {
++                        this.addClass('yui-button-disabled');
++                        this.addClass('yui-' + this.get('type') + '-button-disabled');
++                    } else {
++                        this.removeClass('yui-button-disabled');
++                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
++                    }
++                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
++                        this._button.disabled = disabled;
++                    }
++                }
++            });
++
++            /**
++            * @attribute label
++            * @description The text label for the button
++            * @type String
++            */            
++            this.setAttributeConfig('label', {
++                value: attr.label,
++                method: function(label) {
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    if (this.get('type') == 'push') {
++                        this._button.innerHTML = label;
++                    }
++                }
++            });
++
++            /**
++            * @attribute title
++            * @description The title of the button
++            * @type String
++            */            
++            this.setAttributeConfig('title', {
++                value: attr.title
++            });
++
++            /**
++            * @config container
++            * @description The container that the button is rendered to, handled by Toolbar
++            * @type String
++            */            
++            this.setAttributeConfig('container', {
++                value: null,
++                writeOnce: true,
++                method: function(cont) {
++                    this.appendTo(cont);
++                }
++            });
++
++        },
++        /** 
++        * @private
++        * @method _handleSelect
++        * @description The event fired when a change event gets fired on a select element
++        * @param {Event} ev The change event.
++        */        
++        _handleSelect: function(ev) {
++            var tar = Event.getTarget(ev);
++            var value = tar.options[tar.selectedIndex].value;
++            this.fireEvent('change', {type: 'change', value: value });
++        },
++        /** 
++        * @method getMenu
++        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
++        */        
++        getMenu: function() {
++            return this.get('menu');
++        },
++        /** 
++        * @method destroy
++        * @description Destroy the button
++        */        
++        destroy: function() {
++            Event.purgeElement(this.get('element'), true);
++            this.get('element').parentNode.removeChild(this.get('element'));
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }       
++        },
++        /** 
++        * @method fireEvent
++        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
++        */        
++        fireEvent: function(p_sType, p_aArgs) {
++            //  Disabled buttons should not respond to DOM events
++            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
++                Event.stopEvent(p_aArgs);
++                return;
++            }
++        
++            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */        
++        toString: function() {
++            return 'ToolbarButton (' + this.get('id') + ')';
++        }
++        
++    });
++})();
++/**
++ * @module editor
++ * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbarbutton
++ * @optional container_core, dragdrop
++ */
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    
++    var getButton = function(id) {
++        var button = id;
++        if (Lang.isString(id)) {
++            button = this.getButtonById(id);
++        }
++        if (Lang.isNumber(id)) {
++            button = this.getButtonByIndex(id);
++        }
++        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
++            button = this.getButtonByValue(id);
++        }
++        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
++            return button;
++        }
++        return false;
++    };
++
++    /**
++     * Provides a rich toolbar widget based on the button and menu widgets
++     * @constructor
++     * @class Toolbar
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The element to turn into a toolbar.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    YAHOO.widget.Toolbar = function(el, attrs) {
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = {};
++        if (attrs) {
++            Lang.augmentObject(local_attrs, attrs); //Break the config reference
++        }
++        
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++        
++        
++        if (Lang.isString(el) && Dom.get(el)) {
++            oConfig.element = Dom.get(el);
++        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
++            oConfig.element = Dom.get(el);
++        }
++        
++
++        if (!oConfig.element) {
++            oConfig.element = document.createElement('DIV');
++            oConfig.element.id = Dom.generateId();
++            
++            if (local_attrs.container && Dom.get(local_attrs.container)) {
++                Dom.get(local_attrs.container).appendChild(oConfig.element);
++            }
++        }
++        
++
++        if (!oConfig.element.id) {
++            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
++        }
++        
++        var fs = document.createElement('fieldset');
++        var lg = document.createElement('legend');
++        lg.innerHTML = 'Toolbar';
++        fs.appendChild(lg);
++        
++        var cont = document.createElement('DIV');
++        oConfig.attributes.cont = cont;
++        Dom.addClass(cont, 'yui-toolbar-subcont');
++        fs.appendChild(cont);
++        oConfig.element.appendChild(fs);
++
++        oConfig.element.tabIndex = -1;
++
++        
++        oConfig.attributes.element = oConfig.element;
++        oConfig.attributes.id = oConfig.element.id;
++
++        this._configuredButtons = [];
++
++        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++         
++    };
++
++    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
++        /**
++        * @protected
++        * @property _configuredButtons
++        * @type Array
++        */
++        _configuredButtons: null,
++        /**
++        * @method _addMenuClasses
++        * @private
++        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
++        * @param {String} ev The event that fired.
++        * @param {Array} na Array of event information.
++        * @param {Object} o Button config object. 
++        */
++        _addMenuClasses: function(ev, na, o) {
++            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
++            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
++                Dom.addClass(this.element, 'yui-toolbar-select-menu');
++            }
++            var items = this.getItems();
++            for (var i = 0; i < items.length; i++) {
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
++            }
++        },
++        /** 
++        * @property buttonType
++        * @description The default button to use
++        * @type Object
++        */
++        buttonType: YAHOO.widget.ToolbarButton,
++        /** 
++        * @property dd
++        * @description The DragDrop instance associated with the Toolbar
++        * @type Object
++        */
++        dd: null,
++        /** 
++        * @property _colorData
++        * @description Object reference containing colors hex and text values.
++        * @type Object
++        */
++        _colorData: {
++/* {{{ _colorData */
++    '#111111': 'Obsidian',
++    '#2D2D2D': 'Dark Gray',
++    '#434343': 'Shale',
++    '#5B5B5B': 'Flint',
++    '#737373': 'Gray',
++    '#8B8B8B': 'Concrete',
++    '#A2A2A2': 'Gray',
++    '#B9B9B9': 'Titanium',
++    '#000000': 'Black',
++    '#D0D0D0': 'Light Gray',
++    '#E6E6E6': 'Silver',
++    '#FFFFFF': 'White',
++    '#BFBF00': 'Pumpkin',
++    '#FFFF00': 'Yellow',
++    '#FFFF40': 'Banana',
++    '#FFFF80': 'Pale Yellow',
++    '#FFFFBF': 'Butter',
++    '#525330': 'Raw Siena',
++    '#898A49': 'Mildew',
++    '#AEA945': 'Olive',
++    '#7F7F00': 'Paprika',
++    '#C3BE71': 'Earth',
++    '#E0DCAA': 'Khaki',
++    '#FCFAE1': 'Cream',
++    '#60BF00': 'Cactus',
++    '#80FF00': 'Chartreuse',
++    '#A0FF40': 'Green',
++    '#C0FF80': 'Pale Lime',
++    '#DFFFBF': 'Light Mint',
++    '#3B5738': 'Green',
++    '#668F5A': 'Lime Gray',
++    '#7F9757': 'Yellow',
++    '#407F00': 'Clover',
++    '#8A9B55': 'Pistachio',
++    '#B7C296': 'Light Jade',
++    '#E6EBD5': 'Breakwater',
++    '#00BF00': 'Spring Frost',
++    '#00FF80': 'Pastel Green',
++    '#40FFA0': 'Light Emerald',
++    '#80FFC0': 'Sea Foam',
++    '#BFFFDF': 'Sea Mist',
++    '#033D21': 'Dark Forrest',
++    '#438059': 'Moss',
++    '#7FA37C': 'Medium Green',
++    '#007F40': 'Pine',
++    '#8DAE94': 'Yellow Gray Green',
++    '#ACC6B5': 'Aqua Lung',
++    '#DDEBE2': 'Sea Vapor',
++    '#00BFBF': 'Fog',
++    '#00FFFF': 'Cyan',
++    '#40FFFF': 'Turquoise Blue',
++    '#80FFFF': 'Light Aqua',
++    '#BFFFFF': 'Pale Cyan',
++    '#033D3D': 'Dark Teal',
++    '#347D7E': 'Gray Turquoise',
++    '#609A9F': 'Green Blue',
++    '#007F7F': 'Seaweed',
++    '#96BDC4': 'Green Gray',
++    '#B5D1D7': 'Soapstone',
++    '#E2F1F4': 'Light Turquoise',
++    '#0060BF': 'Summer Sky',
++    '#0080FF': 'Sky Blue',
++    '#40A0FF': 'Electric Blue',
++    '#80C0FF': 'Light Azure',
++    '#BFDFFF': 'Ice Blue',
++    '#1B2C48': 'Navy',
++    '#385376': 'Biscay',
++    '#57708F': 'Dusty Blue',
++    '#00407F': 'Sea Blue',
++    '#7792AC': 'Sky Blue Gray',
++    '#A8BED1': 'Morning Sky',
++    '#DEEBF6': 'Vapor',
++    '#0000BF': 'Deep Blue',
++    '#0000FF': 'Blue',
++    '#4040FF': 'Cerulean Blue',
++    '#8080FF': 'Evening Blue',
++    '#BFBFFF': 'Light Blue',
++    '#212143': 'Deep Indigo',
++    '#373E68': 'Sea Blue',
++    '#444F75': 'Night Blue',
++    '#00007F': 'Indigo Blue',
++    '#585E82': 'Dockside',
++    '#8687A4': 'Blue Gray',
++    '#D2D1E1': 'Light Blue Gray',
++    '#6000BF': 'Neon Violet',
++    '#8000FF': 'Blue Violet',
++    '#A040FF': 'Violet Purple',
++    '#C080FF': 'Violet Dusk',
++    '#DFBFFF': 'Pale Lavender',
++    '#302449': 'Cool Shale',
++    '#54466F': 'Dark Indigo',
++    '#655A7F': 'Dark Violet',
++    '#40007F': 'Violet',
++    '#726284': 'Smoky Violet',
++    '#9E8FA9': 'Slate Gray',
++    '#DCD1DF': 'Violet White',
++    '#BF00BF': 'Royal Violet',
++    '#FF00FF': 'Fuchsia',
++    '#FF40FF': 'Magenta',
++    '#FF80FF': 'Orchid',
++    '#FFBFFF': 'Pale Magenta',
++    '#4A234A': 'Dark Purple',
++    '#794A72': 'Medium Purple',
++    '#936386': 'Cool Granite',
++    '#7F007F': 'Purple',
++    '#9D7292': 'Purple Moon',
++    '#C0A0B6': 'Pale Purple',
++    '#ECDAE5': 'Pink Cloud',
++    '#BF005F': 'Hot Pink',
++    '#FF007F': 'Deep Pink',
++    '#FF409F': 'Grape',
++    '#FF80BF': 'Electric Pink',
++    '#FFBFDF': 'Pink',
++    '#451528': 'Purple Red',
++    '#823857': 'Purple Dino',
++    '#A94A76': 'Purple Gray',
++    '#7F003F': 'Rose',
++    '#BC6F95': 'Antique Mauve',
++    '#D8A5BB': 'Cool Marble',
++    '#F7DDE9': 'Pink Granite',
++    '#C00000': 'Apple',
++    '#FF0000': 'Fire Truck',
++    '#FF4040': 'Pale Red',
++    '#FF8080': 'Salmon',
++    '#FFC0C0': 'Warm Pink',
++    '#441415': 'Sepia',
++    '#82393C': 'Rust',
++    '#AA4D4E': 'Brick',
++    '#800000': 'Brick Red',
++    '#BC6E6E': 'Mauve',
++    '#D8A3A4': 'Shrimp Pink',
++    '#F8DDDD': 'Shell Pink',
++    '#BF5F00': 'Dark Orange',
++    '#FF7F00': 'Orange',
++    '#FF9F40': 'Grapefruit',
++    '#FFBF80': 'Canteloupe',
++    '#FFDFBF': 'Wax',
++    '#482C1B': 'Dark Brick',
++    '#855A40': 'Dirt',
++    '#B27C51': 'Tan',
++    '#7F3F00': 'Nutmeg',
++    '#C49B71': 'Mustard',
++    '#E1C4A8': 'Pale Tan',
++    '#FDEEE0': 'Marble'
++/* }}} */
++        },
++        /** 
++        * @property _colorPicker
++        * @description The HTML Element containing the colorPicker
++        * @type HTMLElement
++        */
++        _colorPicker: null,
++        /** 
++        * @property STR_COLLAPSE
++        * @description String for Toolbar Collapse Button
++        * @type String
++        */
++        STR_COLLAPSE: 'Collapse Toolbar',
++        /** 
++        * @property STR_EXPAND
++        * @description String for Toolbar Collapse Button - Expand
++        * @type String
++        */
++        STR_EXPAND: 'Expand Toolbar',
++        /** 
++        * @property STR_SPIN_LABEL
++        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
++        * @type String
++        */
++        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
++        /** 
++        * @property STR_SPIN_UP
++        * @description String for spinbutton up
++        * @type String
++        */
++        STR_SPIN_UP: 'Click to increase the value of this input',
++        /** 
++        * @property STR_SPIN_DOWN
++        * @description String for spinbutton down
++        * @type String
++        */
++        STR_SPIN_DOWN: 'Click to decrease the value of this input',
++        /** 
++        * @property _titlebar
++        * @description Object reference to the titlebar
++        * @type HTMLElement
++        */
++        _titlebar: null,
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: YAHOO.env.ua,
++        /**
++        * @protected
++        * @property _buttonList
++        * @description Internal property list of current buttons in the toolbar
++        * @type Array
++        */
++        _buttonList: null,
++        /**
++        * @protected
++        * @property _buttonGroupList
++        * @description Internal property list of current button groups in the toolbar
++        * @type Array
++        */
++        _buttonGroupList: null,
++        /**
++        * @protected
++        * @property _sep
++        * @description Internal reference to the separator HTML Element for cloning
++        * @type HTMLElement
++        */
++        _sep: null,
++        /**
++        * @protected
++        * @property _sepCount
++        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
++        * @type Number
++        */
++        _sepCount: null,
++        /**
++        * @protected
++        * @property draghandle
++        * @type HTMLElement
++        */
++        _dragHandle: null,
++        /**
++        * @protected
++        * @property _toolbarConfigs
++        * @type Object
++        */
++        _toolbarConfigs: {
++            renderer: true
++        },
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the toolbar container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-toolbar-container',
++        /**
++        * @protected
++        * @property CLASS_DRAGHANDLE
++        * @description Default CSS class to apply to the toolbar's drag handle element
++        * @type String
++        */
++        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
++        /**
++        * @protected
++        * @property CLASS_SEPARATOR
++        * @description Default CSS class to apply to all separators in the toolbar
++        * @type String
++        */
++        CLASS_SEPARATOR: 'yui-toolbar-separator',
++        /**
++        * @protected
++        * @property CLASS_DISABLED
++        * @description Default CSS class to apply when the toolbar is disabled
++        * @type String
++        */
++        CLASS_DISABLED: 'yui-toolbar-disabled',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-toolbar',
++        /** 
++        * @method init
++        * @description The Toolbar class's initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
++            this.addClass(this.CLASS_CONTAINER);
++
++            /**
++            * @attribute buttonType
++            * @description The buttonType to use (advanced or basic)
++            * @type String
++            */
++            this.setAttributeConfig('buttonType', {
++                value: attr.buttonType || 'basic',
++                writeOnce: true,
++                validator: function(type) {
++                    switch (type) {
++                        case 'advanced':
++                        case 'basic':
++                            return true;
++                    }
++                    return false;
++                },
++                method: function(type) {
++                    if (type == 'advanced') {
++                        if (YAHOO.widget.Button) {
++                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
++                        } else {
++                            this.buttonType = YAHOO.widget.ToolbarButton;
++                        }
++                    } else {
++                        this.buttonType = YAHOO.widget.ToolbarButton;
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute buttons
++            * @description Object specifying the buttons to include in the toolbar
++            * Example:
++            * <code><pre>
++            * {
++            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
++            *   { type: 'separator' },
++            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
++            *       menu: [
++            *           { text: "Left", value: 'alignleft' },
++            *           { text: "Center", value: 'aligncenter' },
++            *           { text: "Right", value: 'alignright' }
++            *       ]
++            *   }
++            * }
++            * </pre></code>
++            * @type Array
++            */
++            
++            this.setAttributeConfig('buttons', {
++                value: [],
++                writeOnce: true,
++                method: function(data) {
++                    var i, button, buttons, len, b;
++                    for (i in data) {
++                        if (Lang.hasOwnProperty(data, i)) {
++                            if (data[i].type == 'separator') {
++                                this.addSeparator();
++                            } else if (data[i].group !== undefined) {
++                                buttons = this.addButtonGroup(data[i]);
++                                if (buttons) {
++                                    len = buttons.length;
++                                    for(b = 0; b < len; b++) {
++                                        if (buttons[b]) {
++                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
++                                        }
++                                    }
++                                }
++                                
++                            } else {
++                                button = this.addButton(data[i]);
++                                if (button) {
++                                    this._configuredButtons[this._configuredButtons.length] = button.id;
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this.get('disabled') === disabled) {
++                        return false;
++                    }
++                    if (disabled) {
++                        this.addClass(this.CLASS_DISABLED);
++                        this.set('draggable', false);
++                        this.disableAllButtons();
++                    } else {
++                        this.removeClass(this.CLASS_DISABLED);
++                        if (this._configs.draggable._initialConfig.value) {
++                            //Draggable by default, set it back
++                            this.set('draggable', true);
++                        }
++                        this.resetAllButtons();
++                    }
++                }
++            });
++
++            /**
++            * @config cont
++            * @description The container for the toolbar.
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('cont', {
++                value: attr.cont,
++                readOnly: true
++            });
++
++
++            /**
++            * @attribute grouplabels
++            * @description Boolean indicating if the toolbar should show the group label's text string.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('grouplabels', {
++                value: ((attr.grouplabels === false) ? false : true),
++                method: function(grouplabels) {
++                    if (grouplabels) {
++                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    } else {
++                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    }
++                }
++            });
++            /**
++            * @attribute titlebar
++            * @description Boolean indicating if the toolbar should have a titlebar. If
++            * passed a string, it will use that as the titlebar text
++            * @default false
++            * @type Boolean or String
++            */
++            this.setAttributeConfig('titlebar', {
++                value: false,
++                method: function(titlebar) {
++                    if (titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                        this._titlebar = document.createElement('DIV');
++                        this._titlebar.tabIndex = '-1';
++                        Event.on(this._titlebar, 'focus', function() {
++                            this._handleFocus();
++                        }, this, true);
++                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
++                        if (Lang.isString(titlebar)) {
++                            var h2 = document.createElement('h2');
++                            h2.tabIndex = '-1';
++                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
++                            this._titlebar.appendChild(h2);
++                            Event.on(h2.firstChild, 'click', function(ev) {
++                                Event.stopEvent(ev);
++                            });
++                            Event.on([h2, h2.firstChild], 'focus', function() {
++                                this._handleFocus();
++                            }, this, true);
++                        }
++                        if (this.get('firstChild')) {
++                            this.insertBefore(this._titlebar, this.get('firstChild'));
++                        } else {
++                            this.appendChild(this._titlebar);
++                        }
++                        if (this.get('collapse')) {
++                            this.set('collapse', true);
++                        }
++                    } else if (this._titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute collapse
++            * @description Boolean indicating if the the titlebar should have a collapse button.
++            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('collapse', {
++                value: false,
++                method: function(collapse) {
++                    if (this._titlebar) {
++                        var collapseEl = null;
++                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                        if (collapse) {
++                            if (el.length > 0) {
++                                //There is already a collapse button
++                                return true;
++                            }
++                            collapseEl = document.createElement('SPAN');
++                            collapseEl.innerHTML = 'X';
++                            collapseEl.title = this.STR_COLLAPSE;
++
++                            Dom.addClass(collapseEl, 'collapse');
++                            this._titlebar.appendChild(collapseEl);
++                            Event.addListener(collapseEl, 'click', function() {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    this.collapse(false); //Expand Toolbar
++                                } else {
++                                    this.collapse(); //Collapse Toolbar
++                                }
++                            }, this, true);
++                        } else {
++                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                            if (collapseEl[0]) {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    //We are closed, reopen the titlebar..
++                                    this.collapse(false); //Expand Toolbar
++                                }
++                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute draggable
++            * @description Boolean indicating if the toolbar should be draggable.  
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('draggable', {
++                value: (attr.draggable || false),
++                method: function(draggable) {
++                    if (draggable && !this.get('titlebar')) {
++                        if (!this._dragHandle) {
++                            this._dragHandle = document.createElement('SPAN');
++                            this._dragHandle.innerHTML = '|';
++                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
++                            this._dragHandle.id = this.get('id') + '_draghandle';
++                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
++                            if (this.get('cont').hasChildNodes()) {
++                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
++                            } else {
++                                this.get('cont').appendChild(this._dragHandle);
++                            }
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._dragHandle.id);
++                            
++                        }
++                    } else {
++                        if (this._dragHandle) {
++                            this._dragHandle.parentNode.removeChild(this._dragHandle);
++                            this._dragHandle = null;
++                            this.dd = null;
++                        }
++                    }
++                    if (this._titlebar) {
++                        if (draggable) {
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._titlebar);
++                            Dom.addClass(this._titlebar, 'draggable');
++                        } else {
++                            Dom.removeClass(this._titlebar, 'draggable');
++                            if (this.dd) {
++                                this.dd.unreg();
++                                this.dd = null;
++                            }
++                        }
++                    }
++                },
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.DD) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++
++        },
++        /**
++        * @method addButtonGroup
++        * @description Add a new button group to the toolbar. (uses addButton)
++        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
++        */
++        addButtonGroup: function(oGroup) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButtonGroup', arguments];
++                return false;
++            }
++            
++            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
++                this.addClass(this.CLASS_PREFIX + '-grouped');
++            }
++            var div = document.createElement('DIV');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
++            if (oGroup.label) {
++                var label = document.createElement('h3');
++                label.innerHTML = oGroup.label;
++                div.appendChild(label);
++            }
++            if (!this.get('grouplabels')) {
++                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
++            }
++
++            this.get('cont').appendChild(div);
++
++            //For accessibility, let's put all of the group buttons in an Unordered List
++            var ul = document.createElement('ul');
++            div.appendChild(ul);
++
++            if (!this._buttonGroupList) {
++                this._buttonGroupList = {};
++            }
++            
++            this._buttonGroupList[oGroup.group] = ul;
++
++            //An array of the button ids added to this group
++            //This is used for destruction later...
++            var addedButtons = [],
++                button;
++            
++
++            for (var i = 0; i < oGroup.buttons.length; i++) {
++                var li = document.createElement('li');
++                li.className = this.CLASS_PREFIX + '-groupitem';
++                ul.appendChild(li);
++                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
++                    this.addSeparator(li);
++                } else {
++                    oGroup.buttons[i].container = li;
++                    button = this.addButton(oGroup.buttons[i]);
++                    if (button) {
++                        addedButtons[addedButtons.length]  = button.id;
++                    }
++                }
++            }
++            return addedButtons;
++        },
++        /**
++        * @method addButtonToGroup
++        * @description Add a new button to a toolbar group. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {String} group The Group identifier passed into the initial config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButtonToGroup: function(oButton, group, after) {
++            var groupCont = this._buttonGroupList[group],
++                li = document.createElement('li');
++
++            li.className = this.CLASS_PREFIX + '-groupitem';
++            oButton.container = li;
++            this.addButton(oButton, after);
++            groupCont.appendChild(li);
++        },
++        /**
++        * @method addButton
++        * @description Add a new button to the toolbar. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButton: function(oButton, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButton', arguments];
++                return false;
++            }
++            if (!this._buttonList) {
++                this._buttonList = [];
++            }
++            if (!oButton.container) {
++                oButton.container = this.get('cont');
++            }
++
++            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                if (Lang.isArray(oButton.menu)) {
++                    for (var i in oButton.menu) {
++                        if (Lang.hasOwnProperty(oButton.menu, i)) {
++                            var funcObject = {
++                                fn: function(ev, x, oMenu) {
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                },
++                                scope: this
++                            };
++                            oButton.menu[i].onclick = funcObject;
++                        }
++                    }
++                }
++            }
++            var _oButton = {}, skip = false;
++            for (var o in oButton) {
++                if (Lang.hasOwnProperty(oButton, o)) {
++                    if (!this._toolbarConfigs[o]) {
++                        _oButton[o] = oButton[o];
++                    }
++                }
++            }
++            if (oButton.type == 'select') {
++                _oButton.type = 'menu';
++            }
++            if (oButton.type == 'spin') {
++                _oButton.type = 'push';
++            }
++            if (_oButton.type == 'color') {
++                if (YAHOO.widget.Overlay) {
++                    _oButton = this._makeColorButton(_oButton);
++                } else {
++                    skip = true;
++                }
++            }
++            if (_oButton.menu) {
++                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
++                    oButton.menu.showEvent.subscribe(function() {
++                        this._button = _oButton;
++                    });
++                } else {
++                    for (var m = 0; m < _oButton.menu.length; m++) {
++                        if (!_oButton.menu[m].value) {
++                            _oButton.menu[m].value = _oButton.menu[m].text;
++                        }
++                    }
++                    if (this.browser.webkit) {
++                        _oButton.focusmenu = false;
++                    }
++                }
++            }
++            if (skip) {
++                oButton = false;
++            } else {
++                //Add to .get('buttons') manually
++                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
++                
++                var tmp = new this.buttonType(_oButton);
++                tmp.get('element').tabIndex = '-1';
++                tmp.get('element').setAttribute('role', 'button');
++                tmp._selected = true;
++                
++                if (this.get('disabled')) {
++                    //Toolbar is disabled, disable the new button too!
++                    tmp.set('disabled', true);
++                }
++                if (!oButton.id) {
++                    oButton.id = tmp.get('id');
++                }
++                
++                if (after) {
++                    var el = tmp.get('element');
++                    var nextSib = null;
++                    if (after.get) {
++                        nextSib = after.get('element').nextSibling;
++                    } else if (after.nextSibling) {
++                        nextSib = after.nextSibling;
++                    }
++                    if (nextSib) {
++                        nextSib.parentNode.insertBefore(el, nextSib);
++                    }
++                }
++                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
++
++                var icon = document.createElement('span');
++                icon.className = this.CLASS_PREFIX + '-icon';
++                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
++                if (tmp._button.tagName.toLowerCase() == 'button') {
++                    tmp.get('element').setAttribute('unselectable', 'on');
++                    //Replace the Button HTML Element with an a href if it exists
++                    var a = document.createElement('a');
++                    a.innerHTML = tmp._button.innerHTML;
++                    a.href = '#';
++                    a.tabIndex = '-1';
++                    Event.on(a, 'click', function(ev) {
++                        Event.stopEvent(ev);
++                    });
++                    tmp._button.parentNode.replaceChild(a, tmp._button);
++                    tmp._button = a;
++                }
++
++                if (oButton.type == 'select') {
++                    if (tmp._button.tagName.toLowerCase() == 'select') {
++                        icon.parentNode.removeChild(icon);
++                        var iel = tmp._button,
++                            parEl = tmp.get('element');
++                        parEl.parentNode.replaceChild(iel, parEl);
++                        //The 'element' value is currently the orphaned element
++                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
++                        //I'm not sure if there is a direct approach to setting this value.
++                        tmp._configs.element.value = iel;
++                    } else {
++                        //Don't put a class on it if it's a real select element
++                        tmp.addClass(this.CLASS_PREFIX + '-select');
++                    }
++                }
++                if (oButton.type == 'spin') {
++                    if (!Lang.isArray(oButton.range)) {
++                        oButton.range = [ 10, 100 ];
++                    }
++                    this._makeSpinButton(tmp, oButton);
++                }
++                tmp.get('element').setAttribute('title', tmp.get('label'));
++                if (oButton.type != 'spin') {
++                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
++                        var showPicker = function(ev) {
++                            var exec = true;
++                            if (ev.keyCode && (ev.keyCode == 9)) {
++                                exec = false;
++                            }
++                            if (exec) {
++                                if (this._colorPicker) {
++                                    this._colorPicker._button = oButton.value;
++                                }
++                                var menuEL = tmp.getMenu().element;
++                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
++                                    tmp.getMenu().show();
++                                } else {
++                                    tmp.getMenu().hide();
++                                }
++                            }
++                            YAHOO.util.Event.stopEvent(ev);
++                        };
++                        tmp.on('mousedown', showPicker, oButton, this);
++                        tmp.on('keydown', showPicker, oButton, this);
++                        
++                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
++                        tmp.on('keypress', this._buttonClick, oButton, this);
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                            this._buttonClick(ev, oButton);
++                        }, oButton, this);
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                    } else {
++                        //Stop the mousedown event so we can trap the selection in the editor!
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('change', function(ev) {
++                            if (!ev.target) {
++                                if (!oButton.menucmd) {
++                                    oButton.menucmd = oButton.value;
++                                }
++                                oButton.value = ev.value;
++                                this._buttonClick(ev, oButton);
++                            }
++                        }, this, true);
++
++                        var self = this;
++                        //Hijack the mousedown event in the menu and make it fire a button click..
++                        tmp.on('appendTo', function() {
++                            var tmp = this;
++                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
++                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
++                                    var oMenu = args[1];
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                    tmp._onMenuClick(args[0], tmp);
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                    self._buttonClick.call(self, args[1], oButton);
++                                    tmp._hideMenu();
++                                    return false;
++                                });
++                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                            }
++                        });
++                        
++                    }
++                } else {
++                    //Stop the mousedown event so we can trap the selection in the editor!
++                    tmp.on('mousedown', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                }
++                if (this.browser.ie) {
++                    /*
++                    //Add a couple of new events for IE
++                    tmp.DOM_EVENTS.focusin = true;
++                    tmp.DOM_EVENTS.focusout = true;
++                    
++                    //Stop them so we don't loose focus in the Editor
++                    tmp.on('focusin', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    
++                    tmp.on('focusout', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    */
++                }
++                if (this.browser.webkit) {
++                    //This will keep the document from gaining focus and the editor from loosing it..
++                    //Forcefully remove the focus calls in button!
++                    tmp.hasFocus = function() {
++                        return true;
++                    };
++                }
++                this._buttonList[this._buttonList.length] = tmp;
++                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                    if (Lang.isArray(oButton.menu)) {
++                        var menu = tmp.getMenu();
++                        if (menu && menu.renderEvent) {
++                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
++                            if (oButton.renderer) {
++                                menu.renderEvent.subscribe(oButton.renderer, tmp);
++                            }
++                        }
++                    }
++                }
++            }
++            return oButton;
++        },
++        /**
++        * @method addSeparator
++        * @description Add a new button separator to the toolbar.
++        * @param {HTMLElement} cont Optional HTML element to insert this button into.
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addSeparator: function(cont, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            var sepCont = ((cont) ? cont : this.get('cont'));
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            if (this._sepCount === null) {
++                this._sepCount = 0;
++            }
++            if (!this._sep) {
++                this._sep = document.createElement('SPAN');
++                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
++                this._sep.innerHTML = '|';
++            }
++            var _sep = this._sep.cloneNode(true);
++            this._sepCount++;
++            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
++            if (after) {
++                var nextSib = null;
++                if (after.get) {
++                    nextSib = after.get('element').nextSibling;
++                } else if (after.nextSibling) {
++                    nextSib = after.nextSibling;
++                } else {
++                    nextSib = after;
++                }
++                if (nextSib) {
++                    if (nextSib == after) {
++                        nextSib.parentNode.appendChild(_sep);
++                    } else {
++                        nextSib.parentNode.insertBefore(_sep, nextSib);
++                    }
++                }
++            } else {
++                sepCont.appendChild(_sep);
++            }
++            return _sep;
++        },
++        /**
++        * @method _createColorPicker
++        * @private
++        * @description Creates the core DOM reference to the color picker menu item.
++        * @param {String} id the id of the toolbar to prefix this DOM container with.
++        */
++        _createColorPicker: function(id) {
++            if (Dom.get(id + '_colors')) {
++               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
++            }
++            var picker = document.createElement('div');
++            picker.className = 'yui-toolbar-colors';
++            picker.id = id + '_colors';
++            picker.style.display = 'none';
++            Event.on(window, 'load', function() {
++                document.body.appendChild(picker);
++            }, this, true);
++
++            this._colorPicker = picker;
++
++            var html = '';
++            for (var i in this._colorData) {
++                if (Lang.hasOwnProperty(this._colorData, i)) {
++                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
++                }
++            }
++            html += '<span><em>X</em><strong></strong></span>';
++            window.setTimeout(function() {
++                picker.innerHTML = html;
++            }, 0);
++
++            Event.on(picker, 'mouseover', function(ev) {
++                var picker = this._colorPicker;
++                var em = picker.getElementsByTagName('em')[0];
++                var strong = picker.getElementsByTagName('strong')[0];
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    em.style.backgroundColor = tar.style.backgroundColor;
++                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
++                }
++            }, this, true);
++            Event.on(picker, 'focus', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'click', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
++                    if (retVal !== false) {
++                        var info = {
++                            color: tar.innerHTML,
++                            colorName: this._colorData['#' + tar.innerHTML],
++                            value: this._colorPicker._button 
++                        };
++                    
++                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                    }
++                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
++                }
++            }, this, true);
++        },
++        /**
++        * @method _resetColorPicker
++        * @private
++        * @description Clears the currently selected color or mouseover color in the color picker.
++        */
++        _resetColorPicker: function() {
++            var em = this._colorPicker.getElementsByTagName('em')[0];
++            var strong = this._colorPicker.getElementsByTagName('strong')[0];
++            em.style.backgroundColor = 'transparent';
++            strong.innerHTML = '';
++        },
++        /**
++        * @method _makeColorButton
++        * @private
++        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
++        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        */
++        _makeColorButton: function(_oButton) {
++            if (!this._colorPicker) {   
++                this._createColorPicker(this.get('id'));
++            }
++            _oButton.type = 'color';
++            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
++            _oButton.menu.setBody('');
++            _oButton.menu.render(this.get('cont'));
++            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
++            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
++            _oButton.menu.beforeShowEvent.subscribe(function() {
++                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
++                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
++                //Move the DOM reference of the color picker to the Overlay that we are about to show.
++                this._resetColorPicker();
++                var _p = this._colorPicker;
++                if (_p.parentNode) {
++                    _p.parentNode.removeChild(_p);
++                }
++                _oButton.menu.setBody('');
++                _oButton.menu.appendToBody(_p);
++                this._colorPicker.style.display = 'block';
++            }, this, true);
++            return _oButton;
++        },
++        /**
++        * @private
++        * @method _makeSpinButton
++        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
++        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        * @param {Object} oButton Object literal containing the buttons initial config
++        */
++        _makeSpinButton: function(_button, oButton) {
++            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
++            var self = this,
++                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
++                range = oButton.range,
++                _b1 = document.createElement('a'),
++                _b2 = document.createElement('a');
++                _b1.href = '#';
++                _b2.href = '#';
++                _b1.tabIndex = '-1';
++                _b2.tabIndex = '-1';
++            
++            //Setup the up and down arrows
++            _b1.className = 'up';
++            _b1.title = this.STR_SPIN_UP;
++            _b1.innerHTML = this.STR_SPIN_UP;
++            _b2.className = 'down';
++            _b2.title = this.STR_SPIN_DOWN;
++            _b2.innerHTML = this.STR_SPIN_DOWN;
++
++            //Append them to the container
++            _par.appendChild(_b1);
++            _par.appendChild(_b2);
++            
++            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
++            _button.set('title', label);
++
++            var cleanVal = function(value) {
++                value = ((value < range[0]) ? range[0] : value);
++                value = ((value > range[1]) ? range[1] : value);
++                return value;
++            };
++
++            var br = this.browser;
++            var tbar = false;
++            var strLabel = this.STR_SPIN_LABEL;
++            if (this._titlebar && this._titlebar.firstChild) {
++                tbar = this._titlebar.firstChild;
++            }
++            
++            var _intUp = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value++;
++                    value = cleanVal(value);
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intDown = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value--;
++                    value = cleanVal(value);
++
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intKeyUp = function(ev) {
++                if (ev.keyCode == 38) {
++                    _intUp(ev);
++                } else if (ev.keyCode == 40) {
++                    _intDown(ev);
++                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
++                    _intUp(ev);
++                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
++                    _intDown(ev);
++                }
++            };
++
++            //Handle arrow keys..
++            _button.on('keydown', _intKeyUp, this, true);
++
++            //Listen for the click on the up button and act on it
++            //Listen for the click on the down button and act on it
++            Event.on(_b1, 'mousedown',function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b2, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b1, 'click', _intUp, this, true);
++            Event.on(_b2, 'click', _intDown, this, true);
++        },
++        /**
++        * @protected
++        * @method _buttonClick
++        * @description Click handler for all buttons in the toolbar.
++        * @param {String} ev The event that was passed in.
++        * @param {Object} info Object literal of information about the button that was clicked.
++        */
++        _buttonClick: function(ev, info) {
++            var doEvent = true;
++            
++            if (ev && ev.type == 'keypress') {
++                if (ev.keyCode == 9) {
++                    doEvent = false;
++                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
++                } else {
++                    doEvent = false;
++                }
++            }
++
++            if (doEvent) {
++                var fireNextEvent = true,
++                    retValue = false;
++                    
++                info.isSelected = this.isSelected(info.id);
++
++                if (info.value) {
++                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                
++                if (info.menucmd && fireNextEvent) {
++                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                if (fireNextEvent) {
++                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                }
++
++                if (info.type == 'select') {
++                    var button = this.getButtonById(info.id);
++                    if (button.buttonType == 'rich') {
++                        var txt = info.value;
++                        for (var i = 0; i < info.menu.length; i++) {
++                            if (info.menu[i].value == info.value) {
++                                txt = info.menu[i].text;
++                                break;
++                            }
++                        }
++                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
++                                _items[m].cfg.setProperty('checked', true);
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++                if (ev) {
++                    Event.stopEvent(ev);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _keyNav
++        * @description Flag to determine if the arrow nav listeners have been attached
++        * @type Boolean
++        */
++        _keyNav: null,
++        /**
++        * @private
++        * @property _navCounter
++        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
++        * @type Number
++        */
++        _navCounter: null,
++        /**
++        * @private
++        * @method _navigateButtons
++        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
++        * @param {Event} ev The Key Event
++        */
++        _navigateButtons: function(ev) {
++            switch (ev.keyCode) {
++                case 37:
++                case 39:
++                    if (ev.keyCode == 37) {
++                        this._navCounter--;
++                    } else {
++                        this._navCounter++;
++                    }
++                    if (this._navCounter > (this._buttonList.length - 1)) {
++                        this._navCounter = 0;
++                    }
++                    if (this._navCounter < 0) {
++                        this._navCounter = (this._buttonList.length - 1);
++                    }
++                    if (this._buttonList[this._navCounter]) {
++                        var el = this._buttonList[this._navCounter].get('element');
++                        if (this.browser.ie) {
++                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
++                        }
++                        if (this._buttonList[this._navCounter].get('disabled')) {
++                            this._navigateButtons(ev);
++                        } else {
++                            el.focus();
++                        }
++                    }
++                    break;
++            }
++        },
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Sets up the listeners for the arrow key navigation
++        */
++        _handleFocus: function() {
++            if (!this._keyNav) {
++                var ev = 'keypress';
++                if (this.browser.ie) {
++                    ev = 'keydown';
++                }
++                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
++                this._keyNav = true;
++                this._navCounter = -1;
++            }
++        },
++        /**
++        * @method getButtonById
++        * @description Gets a button instance from the toolbar by is Dom id.
++        * @param {String} id The Dom id to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonById: function(id) {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
++                    return this._buttonList[i];
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByValue
++        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
++        * @param {String} value The button value to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
++        */
++        getButtonByValue: function(value) {
++            var _buttons = this.get('buttons');
++            if (!_buttons) {
++                return false;
++            }
++            var len = _buttons.length;
++            for (var i = 0; i < len; i++) {
++                if (_buttons[i].group !== undefined) {
++                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
++                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
++                            return this.getButtonById(_buttons[i].buttons[m].id);
++                        }
++                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
++                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
++                                if (_buttons[i].buttons[m].menu[s].value == value) {
++                                    return this.getButtonById(_buttons[i].buttons[m].id);
++                                }
++                            }
++                        }
++                    }
++                } else {
++                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
++                        return this.getButtonById(_buttons[i].id);
++                    }
++                    if (_buttons[i].menu) { //Menu Button, loop through the values
++                        for (var j = 0; j < _buttons[i].menu.length; j++) {
++                            if (_buttons[i].menu[j].value == value) {
++                                return this.getButtonById(_buttons[i].id);
++                            }
++                        }
++                    }
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByIndex
++        * @description Gets a button instance from the toolbar by is index in _buttonList.
++        * @param {Number} index The index of the button in _buttonList.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonByIndex: function(index) {
++            if (this._buttonList[index]) {
++                return this._buttonList[index];
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method getButtons
++        * @description Returns an array of buttons in the current toolbar
++        * @return {Array}
++        */
++        getButtons: function() {
++            return this._buttonList;
++        },
++        /**
++        * @method disableButton
++        * @description Disables a button in the toolbar.
++        * @param {String/Number} id Disable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        disableButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.set('disabled', true);
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method enableButton
++        * @description Enables a button in the toolbar.
++        * @param {String/Number} id Enable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        enableButton: function(id) {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var button = getButton.call(this, id);
++            if (button) {
++                if (button.get('disabled')) {
++                    button.set('disabled', false);
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method isSelected
++        * @description Tells if a button is selected or not.
++        * @param {String/Number} id A button by it's id, index or value.
++        * @return {Boolean}
++        */
++        isSelected: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                return button._selected;
++            }
++            return false;
++        },
++        /**
++        * @method selectButton
++        * @description Selects a button in the toolbar.
++        * @param {String/Number} id Select a button by it's id, index or value.
++        * @param {String} value If this is a Menu Button, check this item in the menu
++        * @return {Boolean}
++        */
++        selectButton: function(id, value) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.addClass('yui-button-selected');
++                button.addClass('yui-button-' + button.get('value') + '-selected');
++                button._selected = true;
++                if (value) {
++                    if (button.buttonType == 'rich') {
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value == value) {
++                                _items[m].cfg.setProperty('checked', true);
++                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectButton
++        * @description Deselects a button in the toolbar.
++        * @param {String/Number} id Deselect a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        deselectButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.removeClass('yui-button-selected');
++                button.removeClass('yui-button-' + button.get('value') + '-selected');
++                button.removeClass('yui-button-hover');
++                button._selected = false;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectAllButtons
++        * @description Deselects all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        deselectAllButtons: function() {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.deselectButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method disableAllButtons
++        * @description Disables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        disableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.disableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method enableAllButtons
++        * @description Enables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        enableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.enableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method resetAllButtons
++        * @description Resets all buttons to their initial state.
++        * @param {Object} _ex Except these buttons
++        * @return {Boolean}
++        */
++        resetAllButtons: function(_ex) {
++            if (!Lang.isObject(_ex)) {
++                _ex = {};
++            }
++            if (this.get('disabled') || !this._buttonList) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                var _button = this._buttonList[i];
++                if (_button) {
++                    var disabled = _button._configs.disabled._initialConfig.value;
++                    if (_ex[_button.get('id')]) {
++                        this.enableButton(_button);
++                        this.selectButton(_button);
++                    } else {
++                        if (disabled) {
++                            this.disableButton(_button);
++                        } else {
++                            this.enableButton(_button);
++                        }
++                        this.deselectButton(_button);
++                    }
++                }
++            }
++        },
++        /**
++        * @method destroyButton
++        * @description Destroy a button in the toolbar.
++        * @param {String/Number} id Destroy a button by it's id or index.
++        * @return {Boolean}
++        */
++        destroyButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                var thisID = button.get('id'),
++                    new_list = [], i = 0,
++                    len = this._buttonList.length;
++
++                button.destroy();
++                
++                for (i = 0; i < len; i++) {
++                    if (this._buttonList[i].get('id') != thisID) {
++                        new_list[new_list.length]= this._buttonList[i];
++                    }
++                }
++
++                this._buttonList = new_list;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method destroy
++        * @description Destroys the toolbar, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            var len = this._configuredButtons.length, j, i;
++            for(b = 0; b < len; b++) {
++                this.destroyButton(this._configuredButtons[b]);
++            }
++
++            this._configuredButtons = null;
++        
++            this.get('element').innerHTML = '';
++            this.get('element').className = '';
++            //Brutal Object Destroy
++            for (i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }
++            return true;
++        },
++        /**
++        * @method collapse
++        * @description Programatically collapse the toolbar.
++        * @param {Boolean} collapse True to collapse, false to expand.
++        */
++        collapse: function(collapse) {
++            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++            if (collapse === false) {
++                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                if (el[0]) {
++                    Dom.removeClass(el[0], 'collapsed');
++                    el[0].title = this.STR_COLLAPSE;
++                }
++                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
++            } else {
++                if (el[0]) {
++                    Dom.addClass(el[0], 'collapsed');
++                    el[0].title = this.STR_EXPAND;
++                }
++                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */
++        toString: function() {
++            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
++        }
++    });
++/**
++* @event buttonClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event valueClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description This is a special dynamic event that is created and dispatched based on the value property
++* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* Example:
++* <code><pre>
++* buttons : [
++*   { type: 'button', value: 'test', value: 'testButton' }
++* ]</pre>
++* </code>
++* With the valueClick event you could subscribe to this buttons click event with this:
++* tbar.in('testButtonClick', function() { alert('test button clicked'); })
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarExpanded
++* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarCollapsed
++* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++})();
++/**
++ * @module editor
++ * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbar
++ * @optional animation, container_core, resize, dragdrop
++ */
++
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang,
++    Toolbar = YAHOO.widget.Toolbar;
++
++    /**
++     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
++     * @constructor
++     * @class SimpleEditor
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The textarea element to turn into an editor.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    
++    YAHOO.widget.SimpleEditor = function(el, attrs) {
++        
++        var o = {};
++        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
++            Lang.augmentObject(o, el); //Break the config reference
++            el = document.createElement('textarea');
++            this.DOMReady = true;
++            if (o.container) {
++                var c = Dom.get(o.container);
++                c.appendChild(el);
++            } else {
++                document.body.appendChild(el);
++            }
++        } else {
++            if (attrs) {
++                Lang.augmentObject(o, attrs); //Break the config reference
++            }
++        }
++
++        var oConfig = {
++            element: null,
++            attributes: o
++        }, id = null;
++
++        if (Lang.isString(el)) {
++            id = el;
++        } else {
++            if (oConfig.attributes.id) {
++                id = oConfig.attributes.id;
++            } else {
++                this.DOMReady = true;
++                id = Dom.generateId(el);
++            }
++        }
++        oConfig.element = el;
++
++        var element_cont = document.createElement('DIV');
++        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
++            id: id + '_container'
++        });
++        var div = document.createElement('div');
++        Dom.addClass(div, 'first-child');
++        oConfig.attributes.element_cont.appendChild(div);
++        
++        if (!oConfig.attributes.toolbar_cont) {
++            oConfig.attributes.toolbar_cont = document.createElement('DIV');
++            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
++            div.appendChild(oConfig.attributes.toolbar_cont);
++        }
++        var editorWrapper = document.createElement('DIV');
++        div.appendChild(editorWrapper);
++        oConfig.attributes.editor_wrapper = editorWrapper;
++
++        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++
++    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property _resizeConfig
++        * @description The default config for the Resize Utility
++        */
++        _resizeConfig: {
++            handles: ['br'],
++            autoRatio: true,
++            status: true,
++            proxy: true,
++            useShim: true,
++            setSize: false
++        },
++        /**
++        * @private
++        * @method _setupResize
++        * @description Creates the Resize instance and binds its events.
++        */
++        _setupResize: function() {
++            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
++            if (this.get('resize')) {
++                var config = {};
++                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
++                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
++                this.resize.on('resize', function(args) {
++                    var anim = this.get('animate');
++                    this.set('animate', false);
++                    this.set('width', args.width + 'px');
++                    var h = args.height,
++                        th = (this.toolbar.get('element').clientHeight + 2),
++                        dh = 0;
++                    if (this.dompath) {
++                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
++                    }
++                    var newH = (h - th - dh);
++                    this.set('height', newH + 'px');
++                    this.get('element_cont').setStyle('height', '');
++                    this.set('animate', anim);
++                }, this, true);
++            }
++        },
++        /**
++        * @property resize
++        * @description A reference to the Resize object
++        * @type YAHOO.util.Resize
++        */
++        resize: null,
++        /**
++        * @private
++        * @method _setupDD
++        * @description Sets up the DD instance used from the 'drag' config option.
++        */
++        _setupDD: function() {
++            if (!YAHOO.util.DD) { return false; }
++            if (this.get('drag')) {
++                var d = this.get('drag'),
++                    dd = YAHOO.util.DD;
++                if (d === 'proxy') {
++                    dd = YAHOO.util.DDProxy;
++                }
++
++                this.dd = new dd(this.get('element_cont').get('element'));
++                this.toolbar.addClass('draggable'); 
++                this.dd.setHandleElId(this.toolbar._titlebar); 
++            }
++        },
++        /**
++        * @property dd
++        * @description A reference to the DragDrop object.
++        * @type YAHOO.util.DD/YAHOO.util.DDProxy
++        */
++        dd: null,
++        /**
++        * @private
++        * @property _lastCommand
++        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
++        * @type String
++        */
++        _lastCommand: null,
++        _undoNodeChange: function() {},
++        _storeUndo: function() {},
++        /**
++        * @private
++        * @method _checkKey
++        * @description Checks a keyMap entry against a key event
++        * @param {Object} k The _keyMap object
++        * @param {Event} e The Mouse Event
++        * @return {Boolean}
++        */
++        _checkKey: function(k, e) {
++            var ret = false;
++            if ((e.keyCode === k.key)) {
++                if (k.mods && (k.mods.length > 0)) {
++                    var val = 0;
++                    for (var i = 0; i < k.mods.length; i++) {
++                        if (this.browser.mac) {
++                            if (k.mods[i] == 'ctrl') {
++                                k.mods[i] = 'meta';
++                            }
++                        }
++                        if (e[k.mods[i] + 'Key'] === true) {
++                            val++;
++                        }
++                    }
++                    if (val === k.mods.length) {
++                        ret = true;
++                    }
++                } else {
++                    ret = true;
++                }
++            }
++            return ret;
++        },
++        /**
++        * @private
++        * @property _keyMap
++        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
++        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
++        * @type {Object/Mixed}
++        */
++        _keyMap: {
++            SELECT_ALL: {
++                key: 65, //A key
++                mods: ['ctrl']
++            },
++            CLOSE_WINDOW: {
++                key: 87, //W key
++                mods: ['shift', 'ctrl']
++            },
++            FOCUS_TOOLBAR: {
++                key: 27,
++                mods: ['shift']
++            },
++            FOCUS_AFTER: {
++                key: 27
++            },
++            FONT_SIZE_UP: {
++                key: 38,
++                mods: ['shift', 'ctrl']
++            },
++            FONT_SIZE_DOWN: {
++                key: 40,
++                mods: ['shift', 'ctrl']
++            },
++            CREATE_LINK: {
++                key: 76,
++                mods: ['shift', 'ctrl']
++            },
++            BOLD: {
++                key: 66,
++                mods: ['shift', 'ctrl']
++            },
++            ITALIC: {
++                key: 73,
++                mods: ['shift', 'ctrl']
++            },
++            UNDERLINE: {
++                key: 85,
++                mods: ['shift', 'ctrl']
++            },
++            UNDO: {
++                key: 90,
++                mods: ['ctrl']
++            },
++            REDO: {
++                key: 90,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_LEFT: {
++                key: 219,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_CENTER: {
++                key: 220,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_RIGHT: {
++                key: 221,
++                mods: ['shift', 'ctrl']
++            }
++        },
++        /**
++        * @private
++        * @method _cleanClassName
++        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
++        * @param {String} str The classname to clean up
++        * @return {String}
++        */
++        _cleanClassName: function(str) {
++            return str.replace(/ /g, '-').toLowerCase();
++        },
++        /**
++        * @property _textarea
++        * @description Flag to determine if we are using a textarea or an HTML Node.
++        * @type Boolean
++        */
++        _textarea: null,
++        /**
++        * @property _docType
++        * @description The DOCTYPE to use in the editable container.
++        * @type String
++        */
++        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
++        /**
++        * @property editorDirty
++        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
++        * @type Boolean
++        */
++        editorDirty: null,
++        /**
++        * @property _defaultCSS
++        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
++        * @type String
++        */
++        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
++        /**
++        * @property _defaultToolbar
++        * @private
++        * @description Default toolbar config.
++        * @type Object
++        */
++        _defaultToolbar: null,
++        /**
++        * @property _lastButton
++        * @private
++        * @description The last button pressed, so we don't disable it.
++        * @type Object
++        */
++        _lastButton: null,
++        /**
++        * @property _baseHREF
++        * @private
++        * @description The base location of the editable page (this page) so that relative paths for image work.
++        * @type String
++        */
++        _baseHREF: function() {
++            var href = document.location.href;
++            if (href.indexOf('?') !== -1) { //Remove the query string
++                href = href.substring(0, href.indexOf('?'));
++            }
++            href = href.substring(0, href.lastIndexOf('/')) + '/';
++            return href;
++        }(),
++        /**
++        * @property _lastImage
++        * @private
++        * @description Safari reference for the last image selected (for styling as selected).
++        * @type HTMLElement
++        */
++        _lastImage: null,
++        /**
++        * @property _blankImageLoaded
++        * @private
++        * @description Don't load the blank image more than once..
++        * @type Boolean
++        */
++        _blankImageLoaded: null,
++        /**
++        * @property _fixNodesTimer
++        * @private
++        * @description Holder for the fixNodes timer
++        * @type Date
++        */
++        _fixNodesTimer: null,
++        /**
++        * @property _nodeChangeTimer
++        * @private
++        * @description Holds a reference to the nodeChange setTimeout call
++        * @type Number
++        */
++        _nodeChangeTimer: null,
++        /**
++        * @property _nodeChangeDelayTimer
++        * @private
++        * @description Holds a reference to the nodeChangeDelay setTimeout call
++        * @type Number
++        */
++        _nodeChangeDelayTimer: null,
++        /**
++        * @property _lastNodeChangeEvent
++        * @private
++        * @description Flag to determine the last event that fired a node change
++        * @type Event
++        */
++        _lastNodeChangeEvent: null,
++        /**
++        * @property _lastNodeChange
++        * @private
++        * @description Flag to determine when the last node change was fired
++        * @type Date
++        */
++        _lastNodeChange: 0,
++        /**
++        * @property _rendered
++        * @private
++        * @description Flag to determine if editor has been rendered or not
++        * @type Boolean
++        */
++        _rendered: null,
++        /**
++        * @property DOMReady
++        * @private
++        * @description Flag to determine if DOM is ready or not
++        * @type Boolean
++        */
++        DOMReady: null,
++        /**
++        * @property _selection
++        * @private
++        * @description Holder for caching iframe selections
++        * @type Object
++        */
++        _selection: null,
++        /**
++        * @property _mask
++        * @private
++        * @description DOM Element holder for the editor Mask when disabled
++        * @type Object
++        */
++        _mask: null,
++        /**
++        * @property _showingHiddenElements
++        * @private
++        * @description Status of the hidden elements button
++        * @type Boolean
++        */
++        _showingHiddenElements: null,
++        /**
++        * @property currentWindow
++        * @description A reference to the currently open EditorWindow
++        * @type Object
++        */
++        currentWindow: null,
++        /**
++        * @property currentEvent
++        * @description A reference to the current editor event
++        * @type Event
++        */
++        currentEvent: null,
++        /**
++        * @property operaEvent
++        * @private
++        * @description setTimeout holder for Opera and Image DoubleClick event..
++        * @type Object
++        */
++        operaEvent: null,
++        /**
++        * @property currentFont
++        * @description A reference to the last font selected from the Toolbar
++        * @type HTMLElement
++        */
++        currentFont: null,
++        /**
++        * @property currentElement
++        * @description A reference to the current working element in the editor
++        * @type Array
++        */
++        currentElement: null,
++        /**
++        * @property dompath
++        * @description A reference to the dompath container for writing the current working dom path to.
++        * @type HTMLElement
++        */
++        dompath: null,
++        /**
++        * @property beforeElement
++        * @description A reference to the H2 placed before the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        beforeElement: null,
++        /**
++        * @property afterElement
++        * @description A reference to the H2 placed after the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        afterElement: null,
++        /**
++        * @property invalidHTML
++        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
++        * @type Object
++        */
++        invalidHTML: {
++            form: true,
++            input: true,
++            button: true,
++            select: true,
++            link: true,
++            html: true,
++            body: true,
++            iframe: true,
++            script: true,
++            style: true,
++            textarea: true
++        },
++        /**
++        * @property toolbar
++        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
++        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
++        */
++        toolbar: null,
++        /**
++        * @private
++        * @property _contentTimer
++        * @description setTimeout holder for documentReady check
++        */
++        _contentTimer: null,
++        /**
++        * @private
++        * @property _contentTimerMax
++        * @description The number of times the loaded content should be checked before giving up. Default: 500
++        */
++        _contentTimerMax: 500,
++        /**
++        * @private
++        * @property _contentTimerCounter
++        * @description Counter to check the number of times the body is polled for before giving up
++        * @type Number
++        */
++        _contentTimerCounter: 0,
++        /**
++        * @private
++        * @property _disabled
++        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
++        * @type Array
++        */
++        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
++        /**
++        * @private
++        * @property _alwaysDisabled
++        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
++        * @type Object
++        */
++        _alwaysDisabled: { undo: true, redo: true },
++        /**
++        * @private
++        * @property _alwaysEnabled
++        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
++        * @type Object
++        */
++        _alwaysEnabled: { },
++        /**
++        * @private
++        * @property _semantic
++        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
++        * @type Object
++        */
++        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
++        /**
++        * @private
++        * @property _tag2cmd
++        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
++        * @type Object
++        */
++        _tag2cmd: {
++            'b': 'bold',
++            'strong': 'bold',
++            'i': 'italic',
++            'em': 'italic',
++            'u': 'underline',
++            'sup': 'superscript',
++            'sub': 'subscript',
++            'img': 'insertimage',
++            'a' : 'createlink',
++            'ul' : 'insertunorderedlist',
++            'ol' : 'insertorderedlist'
++        },
++
++        /**
++        * @private _createIframe
++        * @description Creates the DOM and YUI Element for the iFrame editor area.
++        * @param {String} id The string ID to prefix the iframe with
++        * @return {Object} iFrame object
++        */
++        _createIframe: function() {
++            var ifrmDom = document.createElement('iframe');
++            ifrmDom.id = this.get('id') + '_editor';
++            var config = {
++                border: '0',
++                frameBorder: '0',
++                marginWidth: '0',
++                marginHeight: '0',
++                leftMargin: '0',
++                topMargin: '0',
++                allowTransparency: 'true',
++                width: '100%'
++            };
++            if (this.get('autoHeight')) {
++                config.scrolling = 'no';
++            }
++            for (var i in config) {
++                if (Lang.hasOwnProperty(config, i)) {
++                    ifrmDom.setAttribute(i, config[i]);
++                }
++            }
++            var isrc = 'javascript:;';
++            if (this.browser.ie) {
++                //isrc = 'about:blank';
++                //TODO - Check this, I have changed it before..
++                isrc = 'javascript:false;';
++            }
++            ifrmDom.setAttribute('src', isrc);
++            var ifrm = new YAHOO.util.Element(ifrmDom);
++            ifrm.setStyle('visibility', 'hidden');
++            return ifrm;
++        },
++        /**
++        * @private _isElement
++        * @description Checks to see if an Element reference is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return {Boolean}
++        */
++        _isElement: function(el, tag) {
++            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
++                return true;
++            }
++            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private _hasParent
++        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return HTMLElement
++        */
++        _hasParent: function(el, tag) {
++            if (!el || !el.parentNode) {
++                return false;
++            }
++            
++            while (el.parentNode) {
++                if (this._isElement(el, tag)) {
++                    return el;
++                }
++                if (el.parentNode) {
++                    el = el.parentNode;
++                } else {
++                    return false;
++                }
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _getDoc
++        * @description Get the Document of the IFRAME
++        * @return {Object}
++        */
++        _getDoc: function() {
++            var value = false;
++            try {
++                if (this.get('iframe').get('element').contentWindow.document) {
++                    value = this.get('iframe').get('element').contentWindow.document;
++                    return value;
++                }
++            } catch (e) {
++                return false;
++            }
++        },
++        /**
++        * @private
++        * @method _getWindow
++        * @description Get the Window of the IFRAME
++        * @return {Object}
++        */
++        _getWindow: function() {
++            return this.get('iframe').get('element').contentWindow;
++        },
++        /**
++        * @method focus
++        * @description Attempt to set the focus of the iframes window.
++        */
++        focus: function() {
++            this._getWindow().focus();
++        },
++        /**
++        * @private
++        * @depreciated - This should not be used, moved to this.focus();
++        * @method _focusWindow
++        * @description Attempt to set the focus of the iframes window.
++        */
++        _focusWindow: function() {
++            this.focus();
++        },
++        /**
++        * @private
++        * @method _hasSelection
++        * @description Determines if there is a selection in the editor document.
++        * @return {Boolean}
++        */
++        _hasSelection: function() {
++            var sel = this._getSelection();
++            var range = this._getRange();
++            var hasSel = false;
++
++            if (!sel || !range) {
++                return hasSel;
++            }
++
++            //Internet Explorer
++            if (this.browser.ie || this.browser.opera) {
++                if (range.text) {
++                    hasSel = true;
++                }
++                if (range.html) {
++                    hasSel = true;
++                }
++            } else {
++                if (this.browser.webkit) {
++                    if (sel+'' !== '') {
++                        hasSel = true;
++                    }
++                } else {
++                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
++                        hasSel = true;
++                    }
++                }
++            }
++            return hasSel;
++        },
++        /**
++        * @private
++        * @method _getSelection
++        * @description Handles the different selection objects across the A-Grade list.
++        * @return {Object} Selection Object
++        */
++        _getSelection: function() {
++            var _sel = null;
++            if (this._getDoc() && this._getWindow()) {
++                if (this._getDoc().selection) {
++                    _sel = this._getDoc().selection;
++                } else {
++                    _sel = this._getWindow().getSelection();
++                }
++                //Handle Safari's lack of Selection Object
++                if (this.browser.webkit) {
++                    if (_sel.baseNode) {
++                            this._selection = {};
++                            this._selection.baseNode = _sel.baseNode;
++                            this._selection.baseOffset = _sel.baseOffset;
++                            this._selection.extentNode = _sel.extentNode;
++                            this._selection.extentOffset = _sel.extentOffset;
++                    } else if (this._selection !== null) {
++                        _sel = this._getWindow().getSelection();
++                        _sel.setBaseAndExtent(
++                            this._selection.baseNode,
++                            this._selection.baseOffset,
++                            this._selection.extentNode,
++                            this._selection.extentOffset);
++                        this._selection = null;
++                    }
++                }
++            }
++            return _sel;
++        },
++        /**
++        * @private
++        * @method _selectNode
++        * @description Places the highlight around a given node
++        * @param {HTMLElement} node The node to select
++        */
++        _selectNode: function(node, collapse) {
++            if (!node) {
++                return false;
++            }
++            var sel = this._getSelection(),
++                range = null;
++
++            if (this.browser.ie) {
++                try { //IE freaks out here sometimes..
++                    range = this._getDoc().body.createTextRange();
++                    range.moveToElementText(node);
++                    range.select();
++                } catch (e) {
++                }
++            } else if (this.browser.webkit) {
++                if (collapse) {
++				    sel.setBaseAndExtent(node, 1, node, node.innerText.length);
++                } else {
++				    sel.setBaseAndExtent(node, 0, node, node.innerText.length);
++                }
++            } else if (this.browser.opera) {
++                sel = this._getWindow().getSelection();
++                range = this._getDoc().createRange();
++                range.selectNode(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            } else {
++                range = this._getDoc().createRange();
++                range.selectNodeContents(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            }
++            //TODO - Check Performance
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _getRange
++        * @description Handles the different range objects across the A-Grade list.
++        * @return {Object} Range Object
++        */
++        _getRange: function() {
++            var sel = this._getSelection();
++
++            if (sel === null) {
++                return null;
++            }
++
++            if (this.browser.webkit && !sel.getRangeAt) {
++                var _range = this._getDoc().createRange();
++                try {
++                    _range.setStart(sel.anchorNode, sel.anchorOffset);
++                    _range.setEnd(sel.focusNode, sel.focusOffset);
++                } catch (e) {
++                    _range = this._getWindow().getSelection()+'';
++                }
++                return _range;
++            }
++
++            if (this.browser.ie || this.browser.opera) {
++                try {
++                    return sel.createRange();
++                } catch (e2) {
++                    return null;
++                }
++            }
++
++            if (sel.rangeCount > 0) {
++                return sel.getRangeAt(0);
++            }
++            return null;
++        },
++        /**
++        * @private
++        * @method _setDesignMode
++        * @description Sets the designMode property of the iFrame document's body.
++        * @param {String} state This should be either on or off
++        */
++        _setDesignMode: function(state) {
++            if (this.get('setDesignMode')) {
++                try {
++                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
++                } catch(e) { }
++            }
++        },
++        /**
++        * @private
++        * @method _toggleDesignMode
++        * @description Toggles the designMode property of the iFrame document on and off.
++        * @return {String} The state that it was set to.
++        */
++        _toggleDesignMode: function() {
++            var _dMode = this._getDoc().designMode,
++                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
++            this._setDesignMode(_state);
++            return _state;
++        },
++        /**
++        * @private
++        * @property _focused
++        * @description Holder for trapping focus/blur state and prevent double events
++        * @type Boolean
++        */
++        _focused: null,
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
++        * @param {Event} e The DOM Event
++        */
++        _handleFocus: function(e) {
++            if (!this._focused) {
++                this._focused = true;
++                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _handleBlur
++        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
++        * @param {Event} e The DOM Event
++        */
++        _handleBlur: function(e) {
++            if (this._focused) {
++                this._focused = false;
++                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _initEditorEvents
++        * @description This method sets up the listeners on the Editors document.
++        */
++        _initEditorEvents: function() {
++            //Setup Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.on(doc, 'click', this._handleClick, this, true);
++            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
++            /* TODO -- Everyone but Opera works here..
++            Event.on(doc, 'paste', function() {
++            }, this, true);
++            */
++ 
++            //Focus and blur..
++            Event.on(win, 'focus', this._handleFocus, this, true);
++            Event.on(win, 'blur', this._handleBlur, this, true);
++        },
++        /**
++        * @private
++        * @method _removeEditorEvents
++        * @description This method removes the listeners on the Editors document (for disabling).
++        */
++        _removeEditorEvents: function() {
++            //Remove Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.removeListener(doc, 'click', this._handleClick, this, true);
++            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
++
++            //Focus and blur..
++            Event.removeListener(win, 'focus', this._handleFocus, this, true);
++            Event.removeListener(win, 'blur', this._handleBlur, this, true);
++        },
++        _fixWebkitDivs: function() {
++            if (this.browser.webkit) {
++                var divs = this._getDoc().body.getElementsByTagName('div');
++                Dom.addClass(divs, 'yui-wk-div');
++            }
++        },
++        /**
++        * @private
++        * @method _initEditor
++        * @param {Boolean} raw Don't add events.
++        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
++        */
++        _initEditor: function(raw) {
++            if (this._editorInit) {
++                return;
++            }
++            this._editorInit = true;
++            if (this.browser.ie) {
++                this._getDoc().body.style.margin = '0';
++            }
++            if (!this.get('disabled')) {
++                this._setDesignMode('on');
++                this._contentTimerCounter = 0;
++            }
++            if (!this._getDoc().body) {
++                this._contentTimerCounter = 0;
++                this._editorInit = false;
++                this._checkLoaded();
++                return false;
++            }
++            
++            if (!raw) {
++                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
++            }
++            if (!this.get('disabled')) {
++                this._initEditorEvents();
++                this.toolbar.set('disabled', false);
++            }
++
++            if (raw) {
++                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
++            } else {
++                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
++            }
++            this._fixWebkitDivs();
++            if (this.get('dompath')) {
++                var self = this;
++                setTimeout(function() {
++                    self._writeDomPath.call(self);
++                    self._setupResize.call(self);
++                }, 150);
++            }
++            var br = [];
++            for (var i in this.browser) {
++                if (this.browser[i]) {
++                    br.push(i);
++                }
++            }
++            if (this.get('ptags')) {
++                br.push('ptags');
++            }
++            Dom.addClass(this._getDoc().body, br.join(' '));
++            this.nodeChange(true);
++        },
++        /**
++        * @private
++        * @method _checkLoaded
++        * @param {Boolean} raw Don't add events.
++        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
++        */
++        _checkLoaded: function(raw) {
++            this._editorInit = false;
++            this._contentTimerCounter++;
++            if (this._contentTimer) {
++                clearTimeout(this._contentTimer);
++            }
++            if (this._contentTimerCounter > this._contentTimerMax) {
++                return false;
++            }
++            var init = false;
++            try {
++                if (this._getDoc() && this._getDoc().body) {
++                    if (this.browser.ie) {
++                        if (this._getDoc().body.readyState == 'complete') {
++                            init = true;
++                        }
++                    } else {
++                        if (this._getDoc().body._rteLoaded === true) {
++                            init = true;
++                        }
++                    }
++                }
++            } catch (e) {
++                init = false;
++            }
++
++            if (init === true) {
++                //The onload event has fired, clean up after ourselves and fire the _initEditor method
++                this._initEditor(raw);
++            } else {
++                var self = this;
++                this._contentTimer = setTimeout(function() {
++                    self._checkLoaded.call(self, raw);
++                }, 20);
++            }
++        },
++        /**
++        * @private
++        * @method _setInitialContent
++        * @param {Boolean} raw Don't add events.
++        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
++        */
++        _setInitialContent: function(raw) {
++
++            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
++                doc = null;
++
++            if (value === '') {
++                value = '<br>';
++            }
++
++            var html = Lang.substitute(this.get('html'), {
++                TITLE: this.STR_TITLE,
++                CONTENT: this._cleanIncomingHTML(value),
++                CSS: this.get('css'),
++                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
++                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
++            }),
++            check = true;
++
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++
++            if (document.compatMode != 'BackCompat') {
++                html = this._docType + "\n" + html;
++            } else {
++            }
++
++            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
++                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
++                try {
++                    //Adobe AIR Code
++                    if (this.browser.air) {
++                        doc = this._getDoc().implementation.createHTMLDocument();
++                        var origDoc = this._getDoc();
++                        origDoc.open();
++                        origDoc.close();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
++                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
++                        origDoc.body._rteLoaded = true;
++                    } else {
++                        doc = this._getDoc();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                    }
++                } catch (e) {
++                    //Safari will only be here if we are hidden
++                    check = false;
++                }
++            } else {
++                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
++                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
++            }
++            this.get('iframe').setStyle('visibility', '');
++            if (check) {
++                this._checkLoaded(raw);
++            }            
++        },
++        /**
++        * @private
++        * @method _setMarkupType
++        * @param {String} action The action to take. Possible values are: css, default or semantic
++        * @description This method will turn on/off the useCSS execCommand.
++        */
++        _setMarkupType: function(action) {
++            switch (this.get('markup')) {
++                case 'css':
++                    this._setEditorStyle(true);
++                    break;
++                case 'default':
++                    this._setEditorStyle(false);
++                    break;
++                case 'semantic':
++                case 'xhtml':
++                    if (this._semantic[action]) {
++                        this._setEditorStyle(false);
++                    } else {
++                        this._setEditorStyle(true);
++                    }
++                    break;
++            }
++        },
++        /**
++        * Set the editor to use CSS instead of HTML
++        * @param {Booleen} stat True/False
++        */
++        _setEditorStyle: function(stat) {
++            try {
++                this._getDoc().execCommand('useCSS', false, !stat);
++            } catch (ex) {
++            }
++        },
++        /**
++        * @private
++        * @method _getSelectedElement
++        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
++        * @return {HTMLElement} The currently selected element.
++        */
++        _getSelectedElement: function() {
++            var doc = this._getDoc(),
++                range = null,
++                sel = null,
++                elm = null,
++                check = true;
++
++            if (this.browser.ie) {
++                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
++                range = this._getRange();
++                if (range) {
++                    elm = range.item ? range.item(0) : range.parentElement();
++                    if (this._hasSelection()) {
++                        //TODO
++                        //WTF.. Why can't I get an element reference here?!??!
++                    }
++                    if (elm === doc.body) {
++                        elm = null;
++                    }
++                }
++                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
++                    elm = Event.getTarget(this.currentEvent);
++                }
++            } else {
++                sel = this._getSelection();
++                range = this._getRange();
++
++                if (!sel || !range) {
++                    return null;
++                }
++                //TODO
++                if (!this._hasSelection() && this.browser.webkit3) {
++                    //check = false;
++                }
++                if (this.browser.gecko) {
++                    //Added in 2.6.0
++                    if (range.startContainer) {
++                        if (range.startContainer.nodeType === 3) {
++                            elm = range.startContainer.parentNode;
++                        } else if (range.startContainer.nodeType === 1) {
++                            elm = range.startContainer;
++                        }
++                        //Added in 2.7.0
++                        if (this.currentEvent) {
++                            var tar = Event.getTarget(this.currentEvent);
++                            if (!this._isElement(tar, 'html')) {
++                                if (elm !== tar) {
++                                    elm = tar;
++                                }
++                            }
++                        }
++                    }
++                }
++                
++                if (check) {
++                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
++                        if (sel.anchorNode.parentNode) { //next check parentNode
++                            elm = sel.anchorNode.parentNode;
++                        }
++                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
++                            elm = sel.anchorNode.nextSibling;
++                        }
++                    }
++                    if (this._isElement(elm, 'br')) {
++                        elm = null;
++                    }
++                    if (!elm) {
++                        elm = range.commonAncestorContainer;
++                        if (!range.collapsed) {
++                            if (range.startContainer == range.endContainer) {
++                                if (range.startOffset - range.endOffset < 2) {
++                                    if (range.startContainer.hasChildNodes()) {
++                                        elm = range.startContainer.childNodes[range.startOffset];
++                                    }
++                                }
++                            }
++                        }
++                    }
++               }
++            }
++            
++            if (this.currentEvent !== null) {
++                try {
++                    switch (this.currentEvent.type) {
++                        case 'click':
++                        case 'mousedown':
++                        case 'mouseup':
++                            if (this.browser.webkit) {
++                                elm = Event.getTarget(this.currentEvent);
++                            }
++                            break;
++                        default:
++                            //Do nothing
++                            break;
++                    }
++                } catch (e) {
++                }
++            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
++                //TODO is this still needed?
++                //elm = this.currentElement[0];
++            }
++
++
++            if (this.browser.opera || this.browser.webkit) {
++                if (this.currentEvent && !elm) {
++                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
++                }
++            }
++            if (!elm || !elm.tagName) {
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'html')) {
++                //Safari sometimes gives us the HTML node back..
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'body')) {
++                //make sure that body means this body not the parent..
++                elm = doc.body;
++            }
++            if (elm && !elm.parentNode) { //Not in document
++                elm = doc.body;
++            }
++            if (elm === undefined) {
++                elm = null;
++            }
++            return elm;
++        },
++        /**
++        * @private
++        * @method _getDomPath
++        * @description This method will attempt to build the DOM path from the currently selected element.
++        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
++        * @return {Array} An array of node references that will create the DOM Path.
++        */
++        _getDomPath: function(el) {
++            if (!el) {
++			    el = this._getSelectedElement();
++            }
++			var domPath = [];
++            while (el !== null) {
++                if (el.ownerDocument != this._getDoc()) {
++                    el = null;
++                    break;
++                }
++                //Check to see if we get el.nodeName and nodeType
++                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
++                    domPath[domPath.length] = el;
++                }
++
++                if (this._isElement(el, 'body')) {
++                    break;
++                }
++
++                el = el.parentNode;
++            }
++            if (domPath.length === 0) {
++                if (this._getDoc() && this._getDoc().body) {
++                    domPath[0] = this._getDoc().body;
++                }
++            }
++            return domPath.reverse();
++        },
++        /**
++        * @private
++        * @method _writeDomPath
++        * @description Write the current DOM path out to the dompath container below the editor.
++        */
++        _writeDomPath: function() { 
++            var path = this._getDomPath(),
++                pathArr = [],
++                classPath = '',
++                pathStr = '';
++
++            for (var i = 0; i < path.length; i++) {
++                var tag = path[i].tagName.toLowerCase();
++                if ((tag == 'ol') && (path[i].type)) {
++                    tag += ':' + path[i].type;
++                }
++                if (Dom.hasClass(path[i], 'yui-tag')) {
++                    tag = path[i].getAttribute('tag');
++                }
++                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
++                    switch (tag) {
++                        case 'b': tag = 'strong'; break;
++                        case 'i': tag = 'em'; break;
++                    }
++                }
++                if (!Dom.hasClass(path[i], 'yui-non')) {
++                    if (Dom.hasClass(path[i], 'yui-tag')) {
++                        pathStr = tag;
++                    } else {
++                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
++                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
++                            classPath = '';
++                        }
++                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
++                    }
++                    switch (tag) {
++                        case 'body':
++                            pathStr = 'body';
++                            break;
++                        case 'a':
++                            if (path[i].getAttribute('href', 2)) {
++                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
++                            }
++                            break;
++                        case 'img':
++                            var h = path[i].height;
++                            var w = path[i].width;
++                            if (path[i].style.height) {
++                                h = parseInt(path[i].style.height, 10);
++                            }
++                            if (path[i].style.width) {
++                                w = parseInt(path[i].style.width, 10);
++                            }
++                            pathStr += '(' + w + 'x' + h + ')';
++                        break;
++                    }
++
++                    if (pathStr.length > 10) {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
++                    } else {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
++                    }
++                    pathArr[pathArr.length] = pathStr;
++                }
++            }
++            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
++            //Prevent flickering
++            if (this.dompath.innerHTML != str) {
++                this.dompath.innerHTML = str;
++            }
++        },
++        /**
++        * @private
++        * @method _fixNodes
++        * @description Fix href and imgs as well as remove invalid HTML.
++        */
++        _fixNodes: function() {
++            try {
++                var doc = this._getDoc(),
++                    els = [];
++
++                for (var v in this.invalidHTML) {
++                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                        if (v.toLowerCase() != 'span') {
++                            var tags = doc.body.getElementsByTagName(v);
++                            if (tags.length) {
++                                for (var i = 0; i < tags.length; i++) {
++                                    els.push(tags[i]);
++                                }
++                            }
++                        }
++                    }
++                }
++                for (var h = 0; h < els.length; h++) {
++                    if (els[h].parentNode) {
++                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
++                            this._swapEl(els[h], 'span', function(el) {
++                                el.className = 'yui-non';
++                            });
++                        } else {
++                            els[h].parentNode.removeChild(els[h]);
++                        }
++                    }
++                }
++                var imgs = this._getDoc().getElementsByTagName('img');
++                Dom.addClass(imgs, 'yui-img');
++            } catch(e) {}
++        },
++        /**
++        * @private
++        * @method _isNonEditable
++        * @param Event ev The Dom event being checked
++        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
++        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
++        * disable and enable the Editor's toolbar based on the noedit state.
++        * @return Boolean
++        */
++        _isNonEditable: function(ev) {
++            if (this.get('allowNoEdit')) {
++                var el = Event.getTarget(ev);
++                if (this._isElement(el, 'html')) {
++                    el = null;
++                }
++                var path = this._getDomPath(el);
++                for (var i = (path.length - 1); i > -1; i--) {
++                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
++                        //if (this.toolbar.get('disabled') === false) {
++                        //    this.toolbar.set('disabled', true);
++                        //}
++                        try {
++                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
++                        } catch (e) {}
++                        this.nodeChange();
++                        Event.stopEvent(ev);
++                        return true;
++                    }
++                }
++                //if (this.toolbar.get('disabled') === true) {
++                    //Should only happen once..
++                    //this.toolbar.set('disabled', false);
++                    try {
++                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
++                    } catch (e2) {}
++                //}
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _setCurrentEvent
++        * @param {Event} ev The event to cache
++        * @description Sets the current event property
++        */
++        _setCurrentEvent: function(ev) {
++            this.currentEvent = ev;
++        },
++        /**
++        * @private
++        * @method _handleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all click events inside the iFrame document.
++        */
++        _handleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.browser.webkit) {
++                var tar =Event.getTarget(ev);
++                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
++                    Event.stopEvent(ev);
++                    this.nodeChange();
++                }
++            } else {
++                this.nodeChange();
++            }
++            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mouseup events inside the iFrame document.
++        */
++        _handleMouseUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            //Don't set current event for mouseup.
++            //It get's fired after a menu is closed and gives up a bogus event to work with
++            //this._setCurrentEvent(ev);
++            var self = this;
++            if (this.browser.opera) {
++                /*
++                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
++                * @browser Opera
++                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
++                */
++                var sel = Event.getTarget(ev);
++                if (this._isElement(sel, 'img')) {
++                    this.nodeChange();
++                    if (this.operaEvent) {
++                        clearTimeout(this.operaEvent);
++                        this.operaEvent = null;
++                        this._handleDoubleClick(ev);
++                    } else {
++                        this.operaEvent = window.setTimeout(function() {
++                            self.operaEvent = false;
++                        }, 700);
++                    }
++                }
++            }
++            //This will stop Safari from selecting the entire document if you select all the text in the editor
++            if (this.browser.webkit || this.browser.opera) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++            }
++            this.nodeChange();
++            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mousedown events inside the iFrame document.
++        */
++        _handleMouseDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this.browser.webkit && this._hasSelection()) {
++                var _sel = this._getSelection();
++                if (!this.browser.webkit3) {
++                    _sel.collapse(true);
++                } else {
++                    _sel.collapseToStart();
++                }
++            }
++            if (this.browser.webkit && this._lastImage) {
++                Dom.removeClass(this._lastImage, 'selected');
++                this._lastImage = null;
++            }
++            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                    if (this._isElement(sel, 'img')) {
++                        Dom.addClass(sel, 'selected');
++                        this._lastImage = sel;
++                    }
++                }
++                if (this.currentWindow) {
++                    this.closeWindow();
++                }
++                this.nodeChange();
++            }
++            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleDoubleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all doubleclick events inside the iFrame document.
++        */
++        _handleDoubleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this._isElement(sel, 'img')) {
++                this.currentElement[0] = sel;
++                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
++                this.currentElement[0] = this._hasParent(sel, 'a');
++                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            }
++            this.nodeChange();
++            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keyup events inside the iFrame document.
++        */
++        _handleKeyUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._storeUndo();
++            this._setCurrentEvent(ev);
++            switch (ev.keyCode) {
++                case this._keyMap.SELECT_ALL.key:
++                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
++                        this.nodeChange();
++                    }
++                    break;
++                case 32: //Space Bar
++                case 35: //End
++                case 36: //Home
++                case 37: //Left Arrow
++                case 38: //Up Arrow
++                case 39: //Right Arrow
++                case 40: //Down Arrow
++                case 46: //Forward Delete
++                case 8: //Delete
++                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
++                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
++                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
++                            this.closeWindow();
++                        }
++                    } else {
++                        if (!this.browser.ie) {
++                            if (this._nodeChangeTimer) {
++                                clearTimeout(this._nodeChangeTimer);
++                            }
++                            var self = this;
++                            this._nodeChangeTimer = setTimeout(function() {
++                                self._nodeChangeTimer = null;
++                                self.nodeChange.call(self);
++                            }, 100);
++                        } else {
++                            this.nodeChange();
++                        }
++                        this.editorDirty = true;
++                    }
++                    break;
++            }
++            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyPress
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keypress events inside the iFrame document.
++        */
++        _handleKeyPress: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++
++            if (this.get('allowNoEdit')) {
++                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
++                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
++                    //Forward delete key
++                    Event.stopEvent(ev);
++                }
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            this._storeUndo();
++            if (this.browser.opera) {
++                if (ev.keyCode === 13) {
++                    var tar = this._getSelectedElement();
++                    if (!this._isElement(tar, 'li')) {
++                        this.execCommand('inserthtml', '<br>');
++                        Event.stopEvent(ev);
++                    }
++                }
++            }
++            if (this.browser.webkit) {
++                if (!this.browser.webkit3) {
++                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
++                        //This is CMD + z (for undo)
++                        if (this._hasParent(this._getSelectedElement(), 'li')) {
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++                this._listFix(ev);
++            }
++            this._fixListDupIds();
++            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keydown events inside the iFrame document.
++        */
++        _handleKeyDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            var tar = null, _range = null;
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            var doExec = false,
++                action = null,
++                value = null,
++                exec = false;
++
++
++            switch (ev.keyCode) {
++                case this._keyMap.FOCUS_TOOLBAR.key:
++                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
++                        var h = this.toolbar.getElementsByTagName('h2')[0];
++                        if (h && h.firstChild) {
++                            h.firstChild.focus();
++                        }
++                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
++                        //Focus After Element - Esc
++                        this.afterElement.focus();
++                    }
++                    Event.stopEvent(ev);
++                    doExec = false;
++                    break;
++                //case 76: //L
++                case this._keyMap.CREATE_LINK.key: //L
++                    if (this._hasSelection()) {
++                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
++                            var makeLink = true;
++                            if (this.get('limitCommands')) {
++                                if (!this.toolbar.getButtonByValue('createlink')) {
++                                    makeLink = false;
++                                }
++                            }
++                            if (makeLink) {
++                                this.execCommand('createlink', '');
++                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++                                doExec = false;
++                            }
++                        }
++                    }
++                    break;
++                //case 90: //Z
++                case this._keyMap.UNDO.key:
++                case this._keyMap.REDO.key:
++                    if (this._checkKey(this._keyMap.REDO, ev)) {
++                        action = 'redo';
++                        doExec = true;
++                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
++                        action = 'undo';
++                        doExec = true;
++                    }
++                    break;
++                //case 66: //B
++                case this._keyMap.BOLD.key:
++                    if (this._checkKey(this._keyMap.BOLD, ev)) {
++                        action = 'bold';
++                        doExec = true;
++                    }
++                    break;
++                case this._keyMap.FONT_SIZE_UP.key:
++                case this._keyMap.FONT_SIZE_DOWN.key:
++                    var uk = false, dk = false;
++                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
++                        uk = true;
++                    }
++                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
++                        dk = true;
++                    }
++                    if (uk || dk) {
++                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
++                            label = parseInt(fs_button.get('label'), 10),
++                            newValue = (label + 1);
++
++                        if (dk) {
++                            newValue = (label - 1);
++                        }
++
++                        action = 'fontsize';
++                        value = newValue + 'px';
++                        doExec = true;
++                    }
++                    break;
++                //case 73: //I
++                case this._keyMap.ITALIC.key:
++                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
++                        action = 'italic';
++                        doExec = true;
++                    }
++                    break;
++                //case 85: //U
++                case this._keyMap.UNDERLINE.key:
++                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
++                        action = 'underline';
++                        doExec = true;
++                    }
++                    break;
++                case 9:
++                    if (this.browser.ie) {
++                        //Insert a tab in Internet Explorer
++                        _range = this._getRange();
++                        tar = this._getSelectedElement();
++                        if (!this._isElement(tar, 'li')) {
++                            if (_range) {
++                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
++                                _range.collapse(false);
++                                _range.select();
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                    //Firefox 3 code
++                    if (this.browser.gecko > 1.8) {
++                        tar = this._getSelectedElement();
++                        if (this._isElement(tar, 'li')) {
++                            if (ev.shiftKey) {
++                                this._getDoc().execCommand('outdent', null, '');
++                            } else {
++                                this._getDoc().execCommand('indent', null, '');
++                            }
++                            
++                        } else if (!this._hasSelection()) {
++                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
++                        }
++                        Event.stopEvent(ev);
++                    }
++                    break;
++                case 13:
++                    var p = null, i = 0;
++                    if (this.get('ptags') && !ev.shiftKey) {
++                        if (this.browser.gecko) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this._hasParent(tar, 'p')) {
++                                    p = this._getDoc().createElement('p');
++                                    p.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(p, tar);
++                                    this._selectNode(p.firstChild);
++                                } else if (this._isElement(tar, 'body')) {
++                                    this.execCommand('insertparagraph', null);
++                                    var ps = this._getDoc().body.getElementsByTagName('p');
++                                    for (i = 0; i < ps.length; i++) {
++                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
++                                            p = this._getDoc().createElement('p');
++                                            p.innerHTML = '&nbsp;';
++                                            Dom.insertAfter(p, ps[i]);
++                                            this._selectNode(p.firstChild);
++                                            ps[i].removeAttribute('_moz_dirty');
++                                        }
++                                    }
++                                } else {
++                                    doExec = true;
++                                    action = 'insertparagraph';
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                this.execCommand('insertparagraph', null);
++                                var divs = this._getDoc().body.getElementsByTagName('div');
++                                for (i = 0; i < divs.length; i++) {
++                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
++                                        Dom.addClass(divs[i], 'yui-wk-p');
++                                    }
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    } else {
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this.browser.webkit4) {
++                                    this.execCommand('insertlinebreak');
++                                } else {
++                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
++                                    var holder = this._getDoc().getElementById('yui-br'),
++                                        br = this._getDoc().createElement('br'),
++                                        caret = this._getDoc().createElement('span');
++
++                                    holder.parentNode.replaceChild(br, holder);
++                                    caret.className = 'yui-non';
++                                    caret.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(caret, br);
++                                    this._selectNode(caret);
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.ie) {
++                            //Insert a <br> instead of a <p></p> in Internet Explorer
++                            _range = this._getRange();
++                            tar = this._getSelectedElement();
++                            if (!this._isElement(tar, 'li')) {
++                                if (_range) {
++                                    _range.pasteHTML('<br>');
++                                    _range.collapse(false);
++                                    _range.select();
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    }
++                    break;
++            }
++            if (this.browser.ie) {
++                this._listFix(ev);
++            }
++            if (doExec && action) {
++                this.execCommand(action, value);
++                Event.stopEvent(ev);
++                this.nodeChange();
++            }
++            this._storeUndo();
++            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @property _fixListRunning
++        * @type Boolean
++        * @description Keeps more than one _fixListDupIds from running at the same time.
++        */
++        _fixListRunning: null,
++        /**
++        * @private
++        * @method _fixListDupIds
++        * @description Some browsers will duplicate the id of an LI when created in designMode.
++        * This method will fix the duplicate id issue. However it will only preserve the first element 
++        * in the document list with the unique id. 
++        */
++        _fixListDupIds: function() {
++            if (this._fixListRunning) {
++                return false;
++            }
++            if (this._getDoc()) {
++                this._fixListRunning = true;
++                var lis = this._getDoc().body.getElementsByTagName('li'),
++                    i = 0, ids = {};
++                for (i = 0; i < lis.length; i++) {
++                    if (lis[i].id) {
++                        if (ids[lis[i].id]) {
++                            lis[i].id = '';
++                        }
++                        ids[lis[i].id] = true;
++                    }
++                }
++                this._fixListRunning = false;
++            }
++        },
++        /**
++        * @private
++        * @method _listFix
++        * @param {Event} ev The event we are working on.
++        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
++        */
++        _listFix: function(ev) {
++            var testLi = null, par = null, preContent = false, range = null;
++            //Enter Key
++            if (this.browser.webkit) {
++                if (ev.keyCode && (ev.keyCode == 13)) {
++                    if (this._hasParent(this._getSelectedElement(), 'li')) {
++                        var tar = this._hasParent(this._getSelectedElement(), 'li');
++                        if (tar.previousSibling) {
++                            if (tar.firstChild && (tar.firstChild.length == 1)) {
++                                this._selectNode(tar);
++                            }
++                        }
++                    }
++                }
++            }
++            //Shift + Tab Key
++            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    testLi = this._hasParent(testLi, 'li');
++                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
++                        par = this._hasParent(testLi, 'ul');
++                        if (!par) {
++                            par = this._hasParent(testLi, 'ol');
++                        }
++                        if (this._isElement(par.previousSibling, 'li')) {
++                            par.removeChild(testLi);
++                            par.parentNode.insertBefore(testLi, par.nextSibling);
++                            if (this.browser.ie) {
++                                range = this._getDoc().body.createTextRange();
++                                range.moveToElementText(testLi);
++                                range.collapse(false);
++                                range.select();
++                            }
++                            if (this.browser.webkit) {
++                                this._selectNode(testLi.firstChild);
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++            }
++            //Tab Key
++            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
++                var preLi = this._getSelectedElement();
++                if (this._hasParent(preLi, 'li')) {
++                    preContent = this._hasParent(preLi, 'li').innerHTML;
++                }
++                if (this.browser.webkit) {
++                    this._getDoc().execCommand('inserttext', false, '\t');
++                }
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    par = this._hasParent(testLi, 'li');
++                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
++                    if (this.browser.webkit) {
++                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
++                        //Remove the span element that Safari puts in
++                        if (span[0]) {
++                            par.removeChild(span[0]);
++                            par.innerHTML = Lang.trim(par.innerHTML);
++                            //Put the HTML from the LI into this new LI
++                            if (preContent) {
++                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
++                            } else {
++                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
++                            }
++                        }
++                    } else {
++                        if (preContent) {
++                            par.innerHTML = preContent + '&nbsp;';
++                        } else {
++                            par.innerHTML = '&nbsp;';
++                        }
++                    }
++
++                    par.parentNode.replaceChild(newUl, par);
++                    newUl.appendChild(par);
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
++                        if (!this.browser.webkit3) {
++                            par.parentNode.parentNode.style.display = 'list-item';
++                            setTimeout(function() {
++                                par.parentNode.parentNode.style.display = 'block';
++                            }, 1);
++                        }
++                    } else if (this.browser.ie) {
++                        range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(par);
++                        range.collapse(false);
++                        range.select();
++                    } else {
++                        this._selectNode(par);
++                    }
++                    Event.stopEvent(ev);
++                }
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++                this.nodeChange();
++            }
++        },
++        /**
++        * @method nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
++        */
++        nodeChange: function(force) {
++            var NCself = this;
++            this._storeUndo();
++            if (this.get('nodeChangeDelay')) {
++                this._nodeChangeDelayTimer = window.setTimeout(function() {
++                    NCself._nodeChangeDelayTimer = null;
++                    NCself._nodeChange.apply(NCself, arguments);
++                }, 0);
++            } else {
++                this._nodeChange();
++            }
++        },
++        /**
++        * @private
++        * @method _nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Fired from nodeChange in a setTimeout.
++        */
++        _nodeChange: function(force) {
++            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
++                thisNodeChange = Math.round(new Date().getTime() / 1000),
++                self = this;
++
++            if (force === true) {
++                this._lastNodeChange = 0;
++            }
++            
++            if ((this._lastNodeChange + threshold) < thisNodeChange) {
++                if (this._fixNodesTimer === null) {
++                    this._fixNodesTimer = window.setTimeout(function() {
++                        self._fixNodes.call(self);
++                        self._fixNodesTimer = null;
++                    }, 0);
++                }
++            }
++            this._lastNodeChange = thisNodeChange;
++            if (this.currentEvent) {
++                try {
++                    this._lastNodeChangeEvent = this.currentEvent.type;
++                } catch (e) {}
++            }
++
++            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
++            if (beforeNodeChange === false) {
++                return false;
++            }
++            if (this.get('dompath')) {
++                window.setTimeout(function() {
++                    self._writeDomPath.call(self);
++                }, 0);
++            }
++            //Check to see if we are disabled before continuing
++            if (!this.get('disabled')) {
++                if (this.STOP_NODE_CHANGE) {
++                    //Reset this var for next action
++                    this.STOP_NODE_CHANGE = false;
++                    return false;
++                } else {
++                    var sel = this._getSelection(),
++                        range = this._getRange(),
++                        el = this._getSelectedElement(),
++                        fn_button = this.toolbar.getButtonByValue('fontname'),
++                        fs_button = this.toolbar.getButtonByValue('fontsize'),
++                        undo_button = this.toolbar.getButtonByValue('undo'),
++                        redo_button = this.toolbar.getButtonByValue('redo');
++
++                    //Handle updating the toolbar with active buttons
++                    var _ex = {};
++                    if (this._lastButton) {
++                        _ex[this._lastButton.id] = true;
++                        //this._lastButton = null;
++                    }
++                    if (!this._isElement(el, 'body')) {
++                        if (fn_button) {
++                            _ex[fn_button.get('id')] = true;
++                        }
++                        if (fs_button) {
++                            _ex[fs_button.get('id')] = true;
++                        }
++                    }
++                    if (redo_button) {
++                        delete _ex[redo_button.get('id')];
++                    }
++                    this.toolbar.resetAllButtons(_ex);
++
++                    //Handle disabled buttons
++                    for (var d = 0; d < this._disabled.length; d++) {
++                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
++                        if (_button && _button.get) {
++                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
++                                //Skip
++                            } else {
++                                if (!this._hasSelection() && !this.get('insert')) {
++                                    switch (this._disabled[d]) {
++                                        case 'fontname':
++                                        case 'fontsize':
++                                            break;
++                                        default:
++                                            //No Selection - disable
++                                            this.toolbar.disableButton(_button);
++                                    }
++                                } else {
++                                    if (!this._alwaysDisabled[this._disabled[d]]) {
++                                        this.toolbar.enableButton(_button);
++                                    }
++                                }
++                                if (!this._alwaysEnabled[this._disabled[d]]) {
++                                    this.toolbar.deselectButton(_button);
++                                }
++                            }
++                        }
++                    }
++                    var path = this._getDomPath();
++                    var tag = null, cmd = null;
++                    for (var i = 0; i < path.length; i++) {
++                        tag = path[i].tagName.toLowerCase();
++                        if (path[i].getAttribute('tag')) {
++                            tag = path[i].getAttribute('tag').toLowerCase();
++                        }
++                        cmd = this._tag2cmd[tag];
++                        if (cmd === undefined) {
++                            cmd = [];
++                        }
++                        if (!Lang.isArray(cmd)) {
++                            cmd = [cmd];
++                        }
++
++                        //Bold and Italic styles
++                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
++                            cmd[cmd.length] = 'bold';
++                        }
++                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
++                            cmd[cmd.length] = 'italic';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
++                            cmd[cmd.length] = 'underline';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
++                            cmd[cmd.length] = 'strikethrough';
++                        }
++                        if (cmd.length > 0) {
++                            for (var j = 0; j < cmd.length; j++) {
++                                this.toolbar.selectButton(cmd[j]);
++                                this.toolbar.enableButton(cmd[j]);
++                            }
++                        }
++                        //Handle Alignment
++                        switch (path[i].style.textAlign.toLowerCase()) {
++                            case 'left':
++                            case 'right':
++                            case 'center':
++                            case 'justify':
++                                var alignType = path[i].style.textAlign.toLowerCase();
++                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
++                                    alignType = 'full';
++                                }
++                                this.toolbar.selectButton('justify' + alignType);
++                                this.toolbar.enableButton('justify' + alignType);
++                                break;
++                        }
++                    }
++                    //After for loop
++
++                    //Reset Font Family and Size to the inital configs
++                    if (fn_button) {
++                        var family = fn_button._configs.label._initialConfig.value;
++                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
++                        this._updateMenuChecked('fontname', family);
++                    }
++
++                    if (fs_button) {
++                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
++                    }
++
++                    var hd_button = this.toolbar.getButtonByValue('heading');
++                    if (hd_button) {
++                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
++                        this._updateMenuChecked('heading', 'none');
++                    }
++                    var img_button = this.toolbar.getButtonByValue('insertimage');
++                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
++                        this.toolbar.disableButton(img_button);
++                    }
++                    if (this._lastButton && this._lastButton.isSelected) {
++                        this.toolbar.deselectButton(this._lastButton.id);
++                    }
++                    this._undoNodeChange();
++                }
++            }
++
++            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
++        },
++        /**
++        * @private
++        * @method _updateMenuChecked
++        * @param {Object} button The command identifier of the button you want to check
++        * @param {String} value The value of the menu item you want to check
++        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
++        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
++        */
++        _updateMenuChecked: function(button, value, tbar) {
++            if (!tbar) {
++                tbar = this.toolbar;
++            }
++            var _button = tbar.getButtonByValue(button);
++            _button.checkValue(value);
++        },
++        /**
++        * @private
++        * @method _handleToolbarClick
++        * @param {Event} ev The event that triggered the button click
++        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
++        */
++        _handleToolbarClick: function(ev) {
++            var value = '';
++            var str = '';
++            var cmd = ev.button.value;
++            if (ev.button.menucmd) {
++                value = cmd;
++                cmd = ev.button.menucmd;
++            }
++            this._lastButton = ev.button;
++            if (this.STOP_EXEC_COMMAND) {
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            } else {
++                this.execCommand(cmd, value);
++                if (!this.browser.webkit) {
++                     var Fself = this;
++                     setTimeout(function() {
++                         Fself.focus.call(Fself);
++                     }, 5);
++                 }
++            }
++            Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _setupAfterElement
++        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
++        */
++        _setupAfterElement: function() {
++            if (!this.beforeElement) {
++                this.beforeElement = document.createElement('h2');
++                this.beforeElement.className = 'yui-editor-skipheader';
++                this.beforeElement.tabIndex = '-1';
++                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
++                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
++            }
++            if (!this.afterElement) {
++                this.afterElement = document.createElement('h2');
++                this.afterElement.className = 'yui-editor-skipheader';
++                this.afterElement.tabIndex = '-1';
++                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
++                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
++            }
++        },
++        /**
++        * @private
++        * @method _disableEditor
++        * @param {Boolean} disabled Pass true to disable, false to enable
++        * @description Creates a mask to place over the Editor.
++        */
++        _disableEditor: function(disabled) {
++            var iframe, par, html, height;
++            if (!this.get('disabled_iframe')) {
++                iframe = this._createIframe();
++                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
++                iframe.setStyle('height', '100%');
++                iframe.setStyle('display', 'none');
++                iframe.setStyle('visibility', 'visible');
++                this.set('disabled_iframe', iframe);
++                par = this.get('iframe').get('parentNode');
++                par.appendChild(iframe.get('element'));
++            }
++            if (!iframe) {
++                iframe = this.get('disabled_iframe');
++            }
++            if (disabled) {
++                this._orgIframe = this.get('iframe');
++
++                if (this.toolbar) {
++                    this.toolbar.set('disabled', true);
++                }
++
++                html = this.getEditorHTML();
++                height = this.get('iframe').get('offsetHeight');
++                iframe.setStyle('visibility', '');
++                iframe.setStyle('position', '');
++                iframe.setStyle('top', '');
++                iframe.setStyle('left', '');
++                this._orgIframe.setStyle('visibility', 'hidden');
++                this._orgIframe.setStyle('position', 'absolute');
++                this._orgIframe.setStyle('top', '-99999px');
++                this._orgIframe.setStyle('left', '-99999px');
++                this.set('iframe', iframe);
++                this._setInitialContent(true);
++                
++                if (!this._mask) {
++                    this._mask = document.createElement('DIV');
++                    Dom.addClass(this._mask, 'yui-editor-masked');
++                    if (this.browser.ie) {
++                        this._mask.style.height = height + 'px';
++                    }
++                    this.get('iframe').get('parentNode').appendChild(this._mask);
++                }
++                this.on('editorContentReloaded', function() {
++                    this._getDoc().body._rteLoaded = false;
++                    this.setEditorHTML(html);
++                    iframe.setStyle('display', 'block');
++                    this.unsubscribeAll('editorContentReloaded');
++                });
++            } else {
++                if (this._mask) {
++                    this._mask.parentNode.removeChild(this._mask);
++                    this._mask = null;
++                    if (this.toolbar) {
++                        this.toolbar.set('disabled', false);
++                    }
++                    iframe.setStyle('visibility', 'hidden');
++                    iframe.setStyle('position', 'absolute');
++                    iframe.setStyle('top', '-99999px');
++                    iframe.setStyle('left', '-99999px');
++                    this._orgIframe.setStyle('visibility', '');
++                    this._orgIframe.setStyle('position', '');
++                    this._orgIframe.setStyle('top', '');
++                    this._orgIframe.setStyle('left', '');
++                    this.set('iframe', this._orgIframe);
++
++                    this.focus();
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.nodeChange.call(self);
++                    }, 100);
++                }
++            }
++        },
++        /**
++        * @property SEP_DOMPATH
++        * @description The value to place in between the Dom path items
++        * @type String
++        */
++        SEP_DOMPATH: '<',
++        /**
++        * @property STR_LEAVE_EDITOR
++        * @description The accessibility string for the element after the iFrame
++        * @type String
++        */
++        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
++        /**
++        * @property STR_BEFORE_EDITOR
++        * @description The accessibility string for the element before the iFrame
++        * @type String
++        */
++        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
++        /**
++        * @property STR_TITLE
++        * @description The Title of the HTML document that is created in the iFrame
++        * @type String
++        */
++        STR_TITLE: 'Rich Text Area.',
++        /**
++        * @property STR_IMAGE_HERE
++        * @description The text to place in the URL textbox when using the blankimage.
++        * @type String
++        */
++        STR_IMAGE_HERE: 'Image URL Here',
++        /**
++        * @property STR_IMAGE_URL
++        * @description The label string for Image URL
++        * @type String
++        */
++        STR_IMAGE_URL: 'Image URL',        
++        /**
++        * @property STR_LINK_URL
++        * @description The label string for the Link URL.
++        * @type String
++        */
++        STR_LINK_URL: 'Link URL',
++        /**
++        * @protected
++        * @property STOP_EXEC_COMMAND
++        * @description Set to true when you want the default execCommand function to not process anything
++        * @type Boolean
++        */
++        STOP_EXEC_COMMAND: false,
++        /**
++        * @protected
++        * @property STOP_NODE_CHANGE
++        * @description Set to true when you want the default nodeChange function to not process anything
++        * @type Boolean
++        */
++        STOP_NODE_CHANGE: false,
++        /**
++        * @protected
++        * @property CLASS_NOEDIT
++        * @description CSS class applied to elements that are not editable.
++        * @type String
++        */
++        CLASS_NOEDIT: 'yui-noedit',
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the editors container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-editor-container',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE
++        * @description Default CSS class to apply to the editors iframe element
++        * @type String
++        */
++        CLASS_EDITABLE: 'yui-editor-editable',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE_CONT
++        * @description Default CSS class to apply to the editors iframe's parent element
++        * @type String
++        */
++        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-editor',
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: function() {
++            var br = YAHOO.env.ua;
++            //Check for webkit3
++            if (br.webkit >= 420) {
++                br.webkit3 = br.webkit;
++            } else {
++                br.webkit3 = 0;
++            }
++            if (br.webkit >= 530) {
++                br.webkit4 = br.webkit;
++            } else {
++                br.webkit4 = 0;
++            }
++            br.mac = false;
++            //Check for Mac
++            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
++                br.mac = true;
++            }
++
++            return br;
++        }(),
++        /** 
++        * @method init
++        * @description The Editor class' initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++
++            if (!this._defaultToolbar) {
++                this._defaultToolbar = {
++                    collapse: true,
++                    titlebar: 'Text Editing Tools',
++                    draggable: false,
++                    buttons: [
++                        { group: 'fontstyle', label: 'Font Name and Size',
++                            buttons: [
++                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
++                                    menu: [
++                                        { text: 'Arial', checked: true },
++                                        { text: 'Arial Black' },
++                                        { text: 'Comic Sans MS' },
++                                        { text: 'Courier New' },
++                                        { text: 'Lucida Console' },
++                                        { text: 'Tahoma' },
++                                        { text: 'Times New Roman' },
++                                        { text: 'Trebuchet MS' },
++                                        { text: 'Verdana' }
++                                    ]
++                                },
++                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle', label: 'Font Style',
++                            buttons: [
++                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
++                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
++                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
++                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
++                                { type: 'separator' },
++                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
++                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
++                                
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'indentlist', label: 'Lists',
++                            buttons: [
++                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
++                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'insertitem', label: 'Insert Item',
++                            buttons: [
++                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
++                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
++            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
++
++
++            this.currentElement = [];
++            this.on('contentReady', function() {
++                this.DOMReady = true;
++                this.fireQueue();
++            }, this, true);
++
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the editor.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the editor.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
++            var self = this;
++
++            /**
++            * @config setDesignMode
++            * @description Should the Editor set designMode on the document. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('setDesignMode', {
++                value: ((attr.setDesignMode === false) ? false : true)
++            });
++            /**
++            * @config nodeChangeDelay
++            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('nodeChangeDelay', {
++                value: ((attr.nodeChangeDelay === false) ? false : true)
++            });
++            /**
++            * @config maxUndo
++            * @description The max number of undo levels to store.
++            * @default 30
++            * @type Number
++            */
++            this.setAttributeConfig('maxUndo', {
++                writeOnce: true,
++                value: attr.maxUndo || 30
++            });
++
++            /**
++            * @config ptags
++            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('ptags', {
++                writeOnce: true,
++                value: attr.ptags || false
++            });
++            /**
++            * @config insert
++            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('insert', {
++                writeOnce: true,
++                value: attr.insert || false,
++                method: function(insert) {
++                    if (insert) {
++                        var buttons = {
++                            fontname: true,
++                            fontsize: true,
++                            forecolor: true,
++                            backcolor: true
++                        };
++                        var tmp = this._defaultToolbar.buttons;
++                        for (var i = 0; i < tmp.length; i++) {
++                            if (tmp[i].buttons) {
++                                for (var a = 0; a < tmp[i].buttons.length; a++) {
++                                    if (tmp[i].buttons[a].value) {
++                                        if (buttons[tmp[i].buttons[a].value]) {
++                                            delete tmp[i].buttons[a].disabled;
++                                        }
++                                    }
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @config container
++            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
++            * We will create one and place it in this container. If no container is passed we will append to document.body.
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('container', {
++                writeOnce: true,
++                value: attr.container || false
++            });
++            /**
++            * @config plainText
++            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('plainText', {
++                writeOnce: true,
++                value: attr.plainText || false
++            });
++            /**
++            * @private
++            * @config iframe
++            * @description Internal config for holding the iframe element.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @config disabled_iframe
++            * @description Internal config for holding the iframe element used when disabling the Editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('disabled_iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @depreciated - No longer used, should use this.get('element')
++            * @config textarea
++            * @description Internal config for holding the textarea element (replaced with element).
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('textarea', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @config nodeChangeThreshold
++            * @description The number of seconds that need to be in between nodeChange processing
++            * @default 3
++            * @type Number
++            */            
++            this.setAttributeConfig('nodeChangeThreshold', {
++                value: attr.nodeChangeThreshold || 3,
++                validator: YAHOO.lang.isNumber
++            });
++            /**
++            * @config allowNoEdit
++            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
++            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('allowNoEdit', {
++                value: attr.allowNoEdit || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config limitCommands
++            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('limitCommands', {
++                value: attr.limitCommands || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config element_cont
++            * @description Internal config for the editors container
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('element_cont', {
++                value: attr.element_cont
++            });
++            /**
++            * @private
++            * @config editor_wrapper
++            * @description The outter wrapper for the entire editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('editor_wrapper', {
++                value: attr.editor_wrapper || null,
++                writeOnce: true
++            });
++            /**
++            * @attribute height
++            * @description The height of the editor iframe container, not including the toolbar..
++            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
++            * @type String
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
++                method: function(height) {
++                    if (this._rendered) {
++                        //We have been rendered, change the height
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
++                                height: {
++                                    to: parseInt(height, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
++                        }
++                    }
++                }
++            });
++            /**
++            * @config autoHeight
++            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
++            * @default false
++            * @type Boolean || Number
++            */
++            this.setAttributeConfig('autoHeight', {
++                value: attr.autoHeight || false,
++                method: function(a) {
++                    if (a) {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
++                        }
++                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
++                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
++                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
++                    } else {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
++                        }
++                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
++                    }
++                }
++            });
++            /**
++            * @attribute width
++            * @description The width of the editor container.
++            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
++            * @type String
++            */            
++            this.setAttributeConfig('width', {
++                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
++                method: function(width) {
++                    if (this._rendered) {
++                        //We have been rendered, change the width
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
++                                width: {
++                                    to: parseInt(width, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            this.get('element_cont').setStyle('width', width);
++                        }
++                    }
++                }
++            });
++                        
++            /**
++            * @attribute blankimage
++            * @description The URL for the image placeholder to put in when inserting an image.
++            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
++            * @type String
++            */            
++            this.setAttributeConfig('blankimage', {
++                value: attr.blankimage || this._getBlankImage()
++            });
++            /**
++            * @attribute css
++            * @description The Base CSS used to format the content of the editor
++            * @default <code><pre>html {
++                height: 95%;
++            }
++            body {
++                height: 100%;
++                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
++            }
++            a {
++                color: blue;
++                text-decoration: underline;
++                cursor: pointer;
++            }
++            .warning-localfile {
++                border-bottom: 1px dashed red !important;
++            }
++            .yui-busy {
++                cursor: wait !important;
++            }
++            img.selected { //Safari image selection
++                border: 2px dotted #808080;
++            }
++            img {
++                cursor: pointer !important;
++                border: none;
++            }
++            </pre></code>
++            * @type String
++            */            
++            this.setAttributeConfig('css', {
++                value: attr.css || this._defaultCSS,
++                writeOnce: true
++            });
++            /**
++            * @attribute html
++            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
++            * @default This HTML requires a few things if you are to override:
++                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
++                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
++                <code>
++                <pre>
++                &lt;html&gt;
++                    &lt;head&gt;
++                        &lt;title&gt;{TITLE}&lt;/title&gt;
++                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
++                        &lt;style&gt;
++                        {CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {HIDDEN_CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {EXTRA_CSS}
++                        &lt;/style&gt;
++                    &lt;/head&gt;
++                &lt;body onload="document.body._rteLoaded = true;"&gt;
++                {CONTENT}
++                &lt;/body&gt;
++                &lt;/html&gt;
++                </pre>
++                </code>
++            * @type String
++            */            
++            this.setAttributeConfig('html', {
++                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute extracss
++            * @description Extra user defined css to load after the default SimpleEditor CSS
++            * @default ''
++            * @type String
++            */            
++            this.setAttributeConfig('extracss', {
++                value: attr.extracss || '',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute handleSubmit
++            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
++            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
++            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('handleSubmit', {
++                value: attr.handleSubmit || false,
++                method: function(exec) {
++                    if (this.get('element').form) {
++                        if (!this._formButtons) {
++                            this._formButtons = [];
++                        }
++                        if (exec) {
++                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
++                            var i = this.get('element').form.getElementsByTagName('input');
++                            for (var s = 0; s < i.length; s++) {
++                                var type = i[s].getAttribute('type');
++                                if (type && (type.toLowerCase() == 'submit')) {
++                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
++                                    this._formButtons[this._formButtons.length] = i[s];
++                                }
++                            }
++                        } else {
++                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
++                            if (this._formButtons) {
++                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @attribute disabled
++            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
++            All Toolbar buttons are also disabled so they cannot be used.
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this._rendered) {
++                        this._disableEditor(disabled);
++                    }
++                }
++            });
++            /**
++            * @config saveEl
++            * @description When save HTML is called, this element will be updated as well as the source of data.
++            * @default element
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('saveEl', {
++                value: this.get('element')
++            });
++            /**
++            * @config toolbar_cont
++            * @description Internal config for the toolbars container
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('toolbar_cont', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @attribute toolbar
++            * @description The default toolbar config.
++            * @type Object
++            */            
++            this.setAttributeConfig('toolbar', {
++                value: attr.toolbar || this._defaultToolbar,
++                writeOnce: true,
++                method: function(toolbar) {
++                    if (!toolbar.buttonType) {
++                        toolbar.buttonType = this._defaultToolbar.buttonType;
++                    }
++                    this._defaultToolbar = toolbar;
++                }
++            });
++            /**
++            * @attribute animate
++            * @description Should the editor animate window movements
++            * @default false unless Animation is found, then true
++            * @type Boolean
++            */            
++            this.setAttributeConfig('animate', {
++                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.Anim) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++            /**
++            * @config panel
++            * @description A reference to the panel we are using for windows.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('panel', {
++                value: null,
++                writeOnce: true,
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.widget.Overlay) {
++                        ret = false;
++                    }
++                    return ret;
++                }               
++            });
++            /**
++            * @attribute focusAtStart
++            * @description Should we focus the window when the content is ready?
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('focusAtStart', {
++                value: attr.focusAtStart || false,
++                writeOnce: true,
++                method: function(fs) {
++                    if (fs) {
++                        this.on('editorContentLoaded', function() {
++                            var self = this;
++                            setTimeout(function() {
++                                self.focus.call(self);
++                                self.editorDirty = false;
++                            }, 400);
++                        }, this, true);
++                    }
++                }
++            });
++            /**
++            * @attribute dompath
++            * @description Toggle the display of the current Dom path below the editor
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('dompath', {
++                value: attr.dompath || false,
++                method: function(dompath) {
++                    if (dompath && !this.dompath) {
++                        this.dompath = document.createElement('DIV');
++                        this.dompath.id = this.get('id') + '_dompath';
++                        Dom.addClass(this.dompath, 'dompath');
++                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
++                        if (this.get('iframe')) {
++                            this._writeDomPath();
++                        }
++                    } else if (!dompath && this.dompath) {
++                        this.dompath.parentNode.removeChild(this.dompath);
++                        this.dompath = null;
++                    }
++                }
++            });
++            /**
++            * @attribute markup
++            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
++            * @default "semantic"
++            * @type String
++            */            
++            this.setAttributeConfig('markup', {
++                value: attr.markup || 'semantic',
++                validator: function(markup) {
++                    switch (markup.toLowerCase()) {
++                        case 'semantic':
++                        case 'css':
++                        case 'default':
++                        case 'xhtml':
++                        return true;
++                    }
++                    return false;
++                }
++            });
++            /**
++            * @attribute removeLineBreaks
++            * @description Should we remove linebreaks and extra spaces on cleanup
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('removeLineBreaks', {
++                value: attr.removeLineBreaks || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            
++            /**
++            * @config drag
++            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
++            * @type {Boolean/String}
++            */
++            this.setAttributeConfig('drag', {
++                writeOnce: true,
++                value: attr.drag || false
++            });
++
++            /**
++            * @config resize
++            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
++            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
++            * @type Boolean
++            */
++            this.setAttributeConfig('resize', {
++                writeOnce: true,
++                value: attr.resize || false
++            });
++
++            /**
++            * @config filterWord
++            * @description Attempt to filter out MS Word HTML from the Editor's output.
++            * @type Boolean
++            */
++            this.setAttributeConfig('filterWord', {
++                value: attr.filterWord || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++        },
++        /**
++        * @private
++        * @method _getBlankImage
++        * @description Retrieves the full url of the image to use as the blank image.
++        * @return {String} The URL to the blank image
++        */
++        _getBlankImage: function() {
++            if (!this.DOMReady) {
++                this._queue[this._queue.length] = ['_getBlankImage', arguments];
++                return '';
++            }
++            var img = '';
++            if (!this._blankImageLoaded) {
++                if (YAHOO.widget.EditorInfo.blankImage) {
++                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
++                    this._blankImageLoaded = true;
++                } else {
++                    var div = document.createElement('div');
++                    div.style.position = 'absolute';
++                    div.style.top = '-9999px';
++                    div.style.left = '-9999px';
++                    div.className = this.CLASS_PREFIX + '-blankimage';
++                    document.body.appendChild(div);
++                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
++                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
++                    //Adobe AIR Code
++                    img = img.replace('app:/', '');             
++                    this.set('blankimage', img);
++                    this._blankImageLoaded = true;
++                    div.parentNode.removeChild(div);
++                    YAHOO.widget.EditorInfo.blankImage = img;
++                }
++            } else {
++                img = this.get('blankimage');
++            }
++            return img;
++        },
++        /**
++        * @private
++        * @method _handleAutoHeight
++        * @description Handles resizing the editor's height based on the content
++        */
++        _handleAutoHeight: function() {
++            var doc = this._getDoc(),
++                body = doc.body,
++                docEl = doc.documentElement;
++
++            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
++            var newHeight = body.scrollHeight;
++            if (this.browser.webkit) {
++                newHeight = docEl.scrollHeight;
++            }
++            if (newHeight < parseInt(this.get('height'), 10)) {
++                newHeight = parseInt(this.get('height'), 10);
++            }
++            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
++                var anim = this.get('animate');
++                this.set('animate', false);
++                this.set('height', newHeight + 'px');
++                this.set('animate', anim);
++                if (this.browser.ie) {
++                    //Internet Explorer needs this
++                    this.get('iframe').setStyle('height', '99%');
++                    this.get('iframe').setStyle('zoom', '1');
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.get('iframe').setStyle('height', '100%');
++                    }, 1);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _formButtons
++        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
++        * @type Array
++        */
++        _formButtons: null,
++        /**
++        * @private
++        * @property _formButtonClicked
++        * @description The form button that was clicked to submit the form.
++        * @type HTMLElement
++        */
++        _formButtonClicked: null,
++        /**
++        * @private
++        * @method _handleFormButtonClick
++        * @description The click listener assigned to each submit button in the Editor's parent form.
++        * @param {Event} ev The click event
++        */
++        _handleFormButtonClick: function(ev) {
++            var tar = Event.getTarget(ev);
++            this._formButtonClicked = tar;
++        },
++        /**
++        * @private
++        * @method _handleFormSubmit
++        * @description Handles the form submission.
++        * @param {Object} ev The Form Submit Event
++        */
++        _handleFormSubmit: function(ev) {
++            this.saveHTML();
++
++            var form = this.get('element').form,
++                tar = this._formButtonClicked || false;
++
++            Event.removeListener(form, 'submit', this._handleFormSubmit);
++            if (YAHOO.env.ua.ie) {
++                //form.fireEvent("onsubmit");
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++            } else {  // Gecko, Opera, and Safari
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++                var oEvent = document.createEvent("HTMLEvents");
++                oEvent.initEvent("submit", true, true);
++                form.dispatchEvent(oEvent);
++                if (YAHOO.env.ua.webkit) {
++                    if (YAHOO.lang.isFunction(form.submit)) {
++                        form.submit();
++                    }
++                }
++            }
++            //2.6.0
++            //Removed this, not need since removing Safari 2.x
++            //Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _handleFontSize
++        * @description Handles the font size button in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleFontSize: function(o) {
++            var button = this.toolbar.getButtonById(o.button.id);
++            var value = button.get('label') + 'px';
++            this.execCommand('fontsize', value);
++            return false;
++        },
++        /**
++        * @private
++        * @description Handles the colorpicker buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleColorPicker: function(o) {
++            var cmd = o.button;
++            var value = '#' + o.color;
++            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
++                this.execCommand(cmd, value);
++            }
++        },
++        /**
++        * @private
++        * @method _handleAlign
++        * @description Handles the alignment buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleAlign: function(o) {
++            var cmd = null;
++            for (var i = 0; i < o.button.menu.length; i++) {
++                if (o.button.menu[i].value == o.button.value) {
++                    cmd = o.button.menu[i].value;
++                }
++            }
++            var value = this._getSelection();
++
++            this.execCommand(cmd, value);
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleAfterNodeChange
++        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
++        */
++        _handleAfterNodeChange: function() {
++            var path = this._getDomPath(),
++                elm = null,
++                family = null,
++                fontsize = null,
++                validFont = false,
++                fn_button = this.toolbar.getButtonByValue('fontname'),
++                fs_button = this.toolbar.getButtonByValue('fontsize'),
++                hd_button = this.toolbar.getButtonByValue('heading');
++
++            for (var i = 0; i < path.length; i++) {
++                elm = path[i];
++
++                var tag = elm.tagName.toLowerCase();
++
++
++                if (elm.getAttribute('tag')) {
++                    tag = elm.getAttribute('tag');
++                }
++
++                family = elm.getAttribute('face');
++                if (Dom.getStyle(elm, 'font-family')) {
++                    family = Dom.getStyle(elm, 'font-family');
++                    //Adobe AIR Code
++                    family = family.replace(/'/g, '');                    
++                }
++
++                if (tag.substring(0, 1) == 'h') {
++                    if (hd_button) {
++                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
++                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
++                                hd_button.set('label', hd_button._configs.menu.value[h].text);
++                            }
++                        }
++                        this._updateMenuChecked('heading', tag);
++                    }
++                }
++            }
++
++            if (fn_button) {
++                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
++                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
++                        validFont = true;
++                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
++                    }
++                }
++                if (!validFont) {
++                    family = fn_button._configs.label._initialConfig.value;
++                }
++                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
++                if (fn_button.get('label') != familyLabel) {
++                    fn_button.set('label', familyLabel);
++                    this._updateMenuChecked('fontname', family);
++                }
++            }
++
++            if (fs_button) {
++                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
++                if ((fontsize === null) || isNaN(fontsize)) {
++                    fontsize = fs_button._configs.label._initialConfig.value;
++                }
++                fs_button.set('label', ''+fontsize);
++            }
++            
++            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
++                this.toolbar.enableButton(fn_button);
++                this.toolbar.enableButton(fs_button);
++                this.toolbar.enableButton('forecolor');
++                this.toolbar.enableButton('backcolor');
++            }
++            if (this._isElement(elm, 'img')) {
++                if (YAHOO.widget.Overlay) {
++                    this.toolbar.enableButton('createlink');
++                }
++            }
++            if (this._hasParent(elm, 'blockquote')) {
++                this.toolbar.selectButton('indent');
++                this.toolbar.disableButton('indent');
++                this.toolbar.enableButton('outdent');
++            }
++            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
++                this.toolbar.disableButton('indent');
++            }
++            this._lastButton = null;
++            
++        },
++        /**
++        * @private
++        * @method _handleInsertImageClick
++        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
++        */
++        _handleInsertImageClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('insertimage')) {
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    src = 'http://';
++                if (!el) {
++                    el = this._getSelectedElement();
++                }
++                if (el) {
++                    if (el.getAttribute('src')) {
++                        src = el.getAttribute('src', 2);
++                        if (src.indexOf(this.get('blankimage')) != -1) {
++                            src = this.STR_IMAGE_HERE;
++                        }
++                    }
++                }
++                var str = prompt(this.STR_IMAGE_URL + ': ', src);
++                if ((str !== '') && (str !== null)) {
++                    el.setAttribute('src', str);
++                } else if (str === '') {
++                    el.parentNode.removeChild(el);
++                    this.currentElement = [];
++                    this.nodeChange();
++                } else if ((str === null)) {
++                    src = el.getAttribute('src', 2);
++                    if (src.indexOf(this.get('blankimage')) != -1) {
++                        el.parentNode.removeChild(el);
++                        this.currentElement = [];
++                        this.nodeChange();
++                    }
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this, true);
++        },
++        /**
++        * @private
++        * @method _handleInsertImageWindowClose
++        * @description Handles the closing of the Image Properties Window.
++        */
++        _handleInsertImageWindowClose: function() {
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _isLocalFile
++        * @param {String} url THe url/string to check
++        * @description Checks to see if a string (href or img src) is possibly a local file reference..
++        */
++        _isLocalFile: function(url) {
++            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkClick
++        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
++        */
++        _handleCreateLinkClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('createlink')) {
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    url = '';
++
++                if (el) {
++                    if (el.getAttribute('href', 2) !== null) {
++                        url = el.getAttribute('href', 2);
++                    }
++                }
++                var str = prompt(this.STR_LINK_URL + ': ', url);
++                if ((str !== '') && (str !== null)) {
++                    var urlValue = str;
++                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                            //Found an @ sign, prefix with mailto:
++                            urlValue = 'mailto:' + urlValue;
++                        } else {
++                            /* :// not found adding */
++                            if (urlValue.substring(0, 1) != '#') {
++                                //urlValue = 'http:/'+'/' + urlValue;
++                            }
++                        }
++                    }
++                    el.setAttribute('href', urlValue);
++                } else if (str !== null) {
++                    var _span = this._getDoc().createElement('span');
++                    _span.innerHTML = el.innerHTML;
++                    Dom.addClass(_span, 'yui-non');
++                    el.parentNode.replaceChild(_span, el);
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this);
++
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkWindowClose
++        * @description Handles the closing of the Link Properties Window.
++        */
++        _handleCreateLinkWindowClose: function() {
++            this.nodeChange();
++            this.currentElement = [];
++        },
++        /**
++        * @method render
++        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
++        */
++        render: function() {
++            if (this._rendered) {
++                return false;
++            }
++            if (!this.DOMReady) {
++                this._queue[this._queue.length] = ['render', arguments];
++                return false;
++            }
++            if (this.get('element')) {
++                if (this.get('element').tagName) {
++                    this._textarea = true;
++                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
++                        this._textarea = false;
++                    }
++                } else {
++                    return false;
++                }
++            } else {
++                return false;
++            }
++            this._rendered = true;
++            var self = this;
++            window.setTimeout(function() {
++                self._render.call(self);
++            }, 4);
++        },
++        /**
++        * @private
++        * @method _render
++        * @description Causes the toolbar and the editor to render and replace the textarea.
++        */
++        _render: function() {
++            var self = this;
++            this.set('textarea', this.get('element'));
++
++            this.get('element_cont').setStyle('display', 'none');
++            this.get('element_cont').addClass(this.CLASS_CONTAINER);
++            
++            this.set('iframe', this._createIframe());
++
++            window.setTimeout(function() {
++                self._setInitialContent.call(self);
++            }, 10);
++
++            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
++
++            if (this.get('disabled')) {
++                this._disableEditor(true);
++            }
++
++            var tbarConf = this.get('toolbar');
++            //Create Toolbar instance
++            if (tbarConf instanceof Toolbar) {
++                this.toolbar = tbarConf;
++                //Set the toolbar to disabled until content is loaded
++                this.toolbar.set('disabled', true);
++            } else {
++                //Set the toolbar to disabled until content is loaded
++                tbarConf.disabled = true;
++                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
++            }
++
++            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
++
++            
++            this.toolbar.on('toolbarCollapsed', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('toolbarExpanded', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
++            
++            this.toolbar.on('colorPickerClicked', function(o) {
++                this._handleColorPicker(o);
++                return false; //Stop the buttonClick event
++            }, this, true);
++
++            this.toolbar.on('alignClick', this._handleAlign, this, true);
++            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
++            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
++            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
++            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
++            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
++            
++
++            //Replace Textarea with editable area
++            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
++
++            
++            this.setStyle('visibility', 'hidden');
++            this.setStyle('position', 'absolute');
++            this.setStyle('top', '-9999px');
++            this.setStyle('left', '-9999px');
++            this.get('element_cont').appendChild(this.get('element'));
++            this.get('element_cont').setStyle('display', 'block');
++
++
++            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
++            this.get('iframe').addClass(this.CLASS_EDITABLE);
++
++            //Set height and width of editor container
++            this.get('element_cont').setStyle('width', this.get('width'));
++            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
++
++            this.get('iframe').setStyle('width', '100%'); //WIDTH
++            this.get('iframe').setStyle('height', '100%');
++
++            this._setupDD();
++
++            window.setTimeout(function() {
++                self._setupAfterElement.call(self);
++            }, 0);
++            this.fireEvent('afterRender', { type: 'afterRender', target: this });
++        },
++        /**
++        * @method execCommand
++        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
++        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
++        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
++        */
++        execCommand: function(action, value) {
++            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
++            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            }
++            this._lastCommand = action;
++            this._setMarkupType(action);
++            if (this.browser.ie) {
++                this._getWindow().focus();
++            }
++            var exec = true;
++            
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue(action)) {
++                    exec = false;
++                }
++            }
++
++            this.editorDirty = true;
++            
++            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
++                var retValue = this['cmd_' + action.toLowerCase()](value);
++                exec = retValue[0];
++                if (retValue[1]) {
++                    action = retValue[1];
++                }
++                if (retValue[2]) {
++                    value = retValue[2];
++                }
++            }
++            if (exec) {
++                try {
++                    this._getDoc().execCommand(action, false, value);
++                } catch(e) {
++                }
++            } else {
++            }
++            this.on('afterExecCommand', function() {
++                this.unsubscribeAll('afterExecCommand');
++                this.nodeChange();
++            }, this, true);
++            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            
++        },
++    /* {{{  Command Overrides */
++
++        /**
++        * @method cmd_bold
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
++        */
++        cmd_bold: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontWeight == 'bold') {
++                        el.style.fontWeight = '';
++                        var b = this._getDoc().createElement('b'),
++                        par = el.parentNode;
++                        par.replaceChild(b, el);
++                        b.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_italic
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
++        */
++
++        cmd_italic: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontStyle == 'italic') {
++                        el.style.fontStyle = '';
++                        var i = this._getDoc().createElement('i'),
++                        par = el.parentNode;
++                        par.replaceChild(i, el);
++                        i.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++
++
++        /**
++        * @method cmd_underline
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
++        */
++        cmd_underline: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span')) {
++                    if (el.style.textDecoration == 'underline') {
++                        el.style.textDecoration = 'none';
++                    } else {
++                        el.style.textDecoration = 'underline';
++                    }
++                    return [false];
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_backcolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
++        */
++        cmd_backcolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement(),
++                action = 'backcolor';
++
++            if (this.browser.gecko || this.browser.opera) {
++                this._setEditorStyle(true);
++                action = 'hilitecolor';
++            }
++
++            if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                el.style.backgroundColor = value;
++                this._selectNode(el);
++                exec = false;
++            } else {
++                if (this.get('insert')) {
++                    el = this._createInsertElement({ backgroundColor: value });
++                } else {
++                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            }
++
++            return [exec, action];
++        },
++        /**
++        * @method cmd_forecolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
++        */
++        cmd_forecolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement();
++                
++                if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                    Dom.setStyle(el, 'color', value);
++                    this._selectNode(el);
++                    exec = false;
++                } else {
++                    if (this.get('insert')) {
++                        el = this._createInsertElement({ color: value });
++                    } else {
++                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                    exec = false;
++                }
++                return [exec];
++        },
++        /**
++        * @method cmd_unlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
++        */
++        cmd_unlink: function(value) {
++            this._swapEl(this.currentElement[0], 'span', function(el) {
++                el.className = 'yui-non';
++            });
++            return [false];
++        },
++        /**
++        * @method cmd_createlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
++        */
++        cmd_createlink: function(value) {
++            var el = this._getSelectedElement(), _a = null;
++            if (this._hasParent(el, 'a')) {
++                this.currentElement[0] = this._hasParent(el, 'a');
++            } else if (this._isElement(el, 'li')) {
++                _a = this._getDoc().createElement('a');
++                _a.innerHTML = el.innerHTML;
++                el.innerHTML = '';
++                el.appendChild(_a);
++                this.currentElement[0] = _a;
++            } else if (!this._isElement(el, 'a')) {
++                this._createCurrentElement('a');
++                _a = this._swapEl(this.currentElement[0], 'a');
++                this.currentElement[0] = _a;
++            } else {
++                this.currentElement[0] = el;
++            }
++            return [false];
++        },
++        /**
++        * @method cmd_insertimage
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
++        */
++        cmd_insertimage: function(value) {
++            var exec = true, _img = null, action = 'insertimage',
++                el = this._getSelectedElement();
++
++            if (value === '') {
++                value = this.get('blankimage');
++            }
++
++            /*
++            * @knownissue Safari Cursor Position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            
++            if (this._isElement(el, 'img')) {
++                this.currentElement[0] = el;
++                exec = false;
++            } else {
++                if (this._getDoc().queryCommandEnabled(action)) {
++                    this._getDoc().execCommand(action, false, value);
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var i = 0; i < imgs.length; i++) {
++                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
++                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
++                            this.currentElement[0] = imgs[i];
++                        }
++                    }
++                    exec = false;
++                } else {
++                    if (el == this._getDoc().body) {
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this._getDoc().body.appendChild(_img);
++                    } else {
++                        this._createCurrentElement('img');
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
++                    }
++                    this.currentElement[0] = _img;
++                    exec = false;
++                }
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_inserthtml
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
++        */
++        cmd_inserthtml: function(value) {
++            var exec = true, action = 'inserthtml', _span = null, _range = null;
++            /*
++            * @knownissue Safari cursor position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
++                this._createCurrentElement('img');
++                _span = this._getDoc().createElement('span');
++                _span.innerHTML = value;
++                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
++                exec = false;
++            } else if (this.browser.ie) {
++                _range = this._getRange();
++                if (_range.item) {
++                    _range.item(0).outerHTML = value;
++                } else {
++                    _range.pasteHTML(value);
++                }
++                exec = false;                    
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_list
++        * @param tag The tag of the list you want to create (eg, ul or ol)
++        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
++        */
++        cmd_list: function(tag) {
++            var exec = true, list = null, li = 0, el = null, str = '',
++                selEl = this._getSelectedElement(), action = 'insertorderedlist';
++                if (tag == 'ul') {
++                    action = 'insertunorderedlist';
++                }
++            /*
++            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
++            * @browser Safari 2.x
++            * The issue with this workaround is that when applied to a set of text
++            * that has BR's in it, Safari may or may not pick up the individual items as
++            * list items. This is fixed in WebKit (Safari 3)
++            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
++            */
++            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
++            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
++                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
++                    el = selEl.parentNode;
++                    list = this._getDoc().createElement('span');
++                    YAHOO.util.Dom.addClass(list, 'yui-non');
++                    str = '';
++                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
++                    for (li = 0; li < lis.length; li++) {
++                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
++                    }
++                    list.innerHTML = str;
++                    this.currentElement[0] = el;
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                } else {
++                    this._createCurrentElement(tag.toLowerCase());
++                    list = this._getDoc().createElement(tag);
++                    for (li = 0; li < this.currentElement.length; li++) {
++                        var newli = this._getDoc().createElement('li');
++                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
++                        list.appendChild(newli);
++                        if (li > 0) {
++                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
++                        }
++                    }
++                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
++                    items = list.firstChild.innerHTML.split(b_tag), i, item;
++                    if (items.length > 0) {
++                        list.innerHTML = '';
++                        for (i = 0; i < items.length; i++) {
++                            item = this._getDoc().createElement('li');
++                            item.innerHTML = items[i];
++                            list.appendChild(item);
++                        }
++                    }
++
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                    this.currentElement[0] = list;
++                    var _h = this.currentElement[0].firstChild;
++                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
++                    }
++                }
++                exec = false;
++            } else {
++                el = this._getSelectedElement();
++                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
++                    if (this.browser.ie) {
++                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
++                            el = el.getElementsByTagName('li')[0];
++                        }
++                        str = '';
++                        var lis2 = el.parentNode.getElementsByTagName('li');
++                        for (var j = 0; j < lis2.length; j++) {
++                            str += lis2[j].innerHTML + '<br>';
++                        }
++                        var newEl = this._getDoc().createElement('span');
++                        newEl.innerHTML = str;
++                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
++                    } else {
++                        this.nodeChange();
++                        this._getDoc().execCommand(action, '', el.parentNode);
++                        this.nodeChange();
++                    }
++                    exec = false;
++                }
++                if (this.browser.opera) {
++                    var self = this;
++                    window.setTimeout(function() {
++                        var liso = self._getDoc().getElementsByTagName('li');
++                        for (var i = 0; i < liso.length; i++) {
++                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
++                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
++                            }
++                        }
++                    },30);
++                }
++                if (this.browser.ie && exec) {
++                    var html = '';
++                    if (this._getRange().html) {
++                        html = '<li>' + this._getRange().html+ '</li>';
++                    } else {
++                        var t = this._getRange().text.split('\n');
++                        if (t.length > 1) {
++                            html = '';
++                            for (var ie = 0; ie < t.length; ie++) {
++                                html += '<li>' + t[ie] + '</li>';
++                            }
++                        } else {
++                            var txt = this._getRange().text;
++                            if (txt === '') {
++                                html = '<li id="new_list_item">' + txt + '</li>';
++                            } else {
++                                html = '<li>' + txt + '</li>';
++                            }
++                        }
++                    }
++                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
++                    var new_item = this._getDoc().getElementById('new_list_item');
++                    if (new_item) {
++                        var range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(new_item);
++                        range.collapse(false);
++                        range.select();                       
++                        new_item.id = '';
++                    }
++                    exec = false;
++                }
++            }
++            return exec;
++        },
++        /**
++        * @method cmd_insertorderedlist
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
++        */
++        cmd_insertorderedlist: function(value) {
++            return [this.cmd_list('ol')];
++        },
++        /**
++        * @method cmd_insertunorderedlist 
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
++        */
++        cmd_insertunorderedlist: function(value) {
++            return [this.cmd_list('ul')];
++        },
++        /**
++        * @method cmd_fontname
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
++        */
++        cmd_fontname: function(value) {
++            var exec = true,
++                selEl = this._getSelectedElement();
++
++            this.currentFont = value;
++            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
++                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
++                exec = false;
++            } else if (this.get('insert') && !this._hasSelection()) {
++                var el = this._createInsertElement({ fontFamily: value });
++                exec = false;
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_fontsize
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
++        */
++        cmd_fontsize: function(value) {
++            var el = null, go = true;
++            el = this._getSelectedElement();
++            if (this.browser.webkit) {
++                if (this.currentElement[0]) {
++                    if (el == this.currentElement[0]) {
++                        go = false;
++                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                        this._selectNode(el);
++                        this.currentElement[0] = el;
++                    }
++                }
++            }
++            if (go) {
++                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
++                    el = this._getSelectedElement();
++                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                    if (this.get('insert') && this.browser.ie) {
++                        var r = this._getRange();
++                        r.collapse(false);
++                        r.select();
++                    } else {
++                        this._selectNode(el);
++                    }
++                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
++                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
++                } else {
++                    if (this.get('insert') && !this._hasSelection()) {
++                        el = this._createInsertElement({ fontSize: value });
++                        this.currentElement[0] = el;
++                        this._selectNode(this.currentElement[0]);
++                    } else {
++                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                }
++            }
++            return [false];
++        },
++    /* }}} */
++        /**
++        * @private
++        * @method _swapEl
++        * @param {HTMLElement} el The element to swap with
++        * @param {String} tagName The tagname of the element that you wish to create
++        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
++        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
++        */
++        _swapEl: function(el, tagName, callback) {
++            var _el = this._getDoc().createElement(tagName);
++            if (el) {
++                _el.innerHTML = el.innerHTML;
++            }
++            if (typeof callback == 'function') {
++                callback.call(this, _el);
++            }
++            if (el) {
++                el.parentNode.replaceChild(_el, el);
++            }
++            return _el;
++        },
++        /**
++        * @private
++        * @method _createInsertElement
++        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
++        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
++        * @return {HTMLElement}
++        */
++        _createInsertElement: function(css) {
++            this._createCurrentElement('span', css);
++            var el = this.currentElement[0];
++            if (this.browser.webkit) {
++                //Little Safari Hackery here..
++                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
++                el = el.firstChild;
++                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
++            } else if (this.browser.ie || this.browser.opera) {
++                el.innerHTML = '&nbsp;';
++            }
++            this.focus();
++            this._selectNode(el, true);
++            return el;
++        },
++        /**
++        * @private
++        * @method _createCurrentElement
++        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
++        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
++        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
++        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
++        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
++        */
++        _createCurrentElement: function(tagName, tagStyle) {
++            tagName = ((tagName) ? tagName : 'a');
++            var tar = null,
++                el = [],
++                _doc = this._getDoc();
++            
++            if (this.currentFont) {
++                if (!tagStyle) {
++                    tagStyle = {};
++                }
++                tagStyle.fontFamily = this.currentFont;
++                this.currentFont = null;
++            }
++            this.currentElement = [];
++
++            var _elCreate = function(tagName, tagStyle) {
++                var el = null;
++                tagName = ((tagName) ? tagName : 'span');
++                tagName = tagName.toLowerCase();
++                switch (tagName) {
++                    case 'h1':
++                    case 'h2':
++                    case 'h3':
++                    case 'h4':
++                    case 'h5':
++                    case 'h6':
++                        el = _doc.createElement(tagName);
++                        break;
++                    default:
++                        el = _doc.createElement(tagName);
++                        if (tagName === 'span') {
++                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
++                            YAHOO.util.Dom.addClass(el, 'yui-tag');
++                            el.setAttribute('tag', tagName);
++                        }
++
++                        for (var k in tagStyle) {
++                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
++                                el.style[k] = tagStyle[k];
++                            }
++                        }
++                        break;
++                }
++                return el;
++            };
++
++            if (!this._hasSelection()) {
++                if (this._getDoc().queryCommandEnabled('insertimage')) {
++                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var j = 0; j < imgs.length; j++) {
++                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
++                            el = _elCreate(tagName, tagStyle);
++                            imgs[j].parentNode.replaceChild(el, imgs[j]);
++                            this.currentElement[this.currentElement.length] = el;
++                        }
++                    }
++                } else {
++                    if (this.currentEvent) {
++                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
++                    } else {
++                        //For Safari..
++                        tar = this._getDoc().body;                        
++                    }
++                }
++                if (tar) {
++                    /*
++                    * @knownissue Safari Cursor Position
++                    * @browser Safari 2.x
++                    * @description The issue here is that we have no way of knowing where the cursor position is
++                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++                    */
++                    el = _elCreate(tagName, tagStyle);
++                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
++                        if (this._isElement(tar, 'html')) {
++                            tar = this._getDoc().body;
++                        }
++                        tar.appendChild(el);
++                    } else if (tar.nextSibling) {
++                        tar.parentNode.insertBefore(el, tar.nextSibling);
++                    } else {
++                        tar.parentNode.appendChild(el);
++                    }
++                    //this.currentElement = el;
++                    this.currentElement[this.currentElement.length] = el;
++                    this.currentEvent = null;
++                    if (this.browser.webkit) {
++                        //Force Safari to focus the new element
++                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                        if (this.browser.webkit3) {
++                            this._getSelection().collapseToStart();
++                        } else {
++                            this._getSelection().collapse(true);
++                        }
++                    }
++                }
++            } else {
++                //Force CSS Styling for this action...
++                this._setEditorStyle(true);
++                this._getDoc().execCommand('fontname', false, 'yui-tmp');
++                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
++
++                if (!this._isElement(this._getSelectedElement(), 'body')) {
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
++                }
++                for (var _els = 0; _els < __els.length; _els++) {
++                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
++                    for (var e = 0; e < _tmp1.length; e++) {
++                        _tmp[_tmp.length] = _tmp1[e];
++                    }
++                }
++
++                
++                for (var i = 0; i < _tmp.length; i++) {
++                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
++                        if (tagName !== 'span') {
++                            el = _elCreate(tagName, tagStyle);
++                        } else {
++                            el = _elCreate(_tmp[i].tagName, tagStyle);
++                        }
++                        el.innerHTML = _tmp[i].innerHTML;
++                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
++                            var fc = _tmp[i].getElementsByTagName('li')[0];
++                            _tmp[i].style.fontFamily = 'inherit';
++                            fc.style.fontFamily = 'inherit';
++                            el.innerHTML = fc.innerHTML;
++                            fc.innerHTML = '';
++                            fc.appendChild(el);
++                            this.currentElement[this.currentElement.length] = el;
++                        } else if (this._isElement(_tmp[i], 'li')) {
++                            _tmp[i].innerHTML = '';
++                            _tmp[i].appendChild(el);
++                            _tmp[i].style.fontFamily = 'inherit';
++                            this.currentElement[this.currentElement.length] = el;
++                        } else {
++                            if (_tmp[i].parentNode) {
++                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
++                                this.currentElement[this.currentElement.length] = el;
++                                this.currentEvent = null;
++                                if (this.browser.webkit) {
++                                    //Force Safari to focus the new element
++                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                                    if (this.browser.webkit3) {
++                                        this._getSelection().collapseToStart();
++                                    } else {
++                                        this._getSelection().collapse(true);
++                                    }
++                                }
++                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
++                                    this._getSelection().empty();
++                                }
++                                if (this.browser.gecko) {
++                                    this._getSelection().collapseToStart();
++                                }
++                            }
++                        }
++                    }
++                }
++                var len = this.currentElement.length;
++                for (var o = 0; o < len; o++) {
++                    if ((o + 1) != len) { //Skip the last one in the list
++                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
++                            if (this._isElement(this.currentElement[o], 'br')) {
++                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
++                            }
++                        }
++                    }
++                }
++            }
++        },
++        /**
++        * @method saveHTML
++        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
++        * @return String
++        */
++        saveHTML: function() {
++            var html = this.cleanHTML();
++            if (this._textarea) {
++                this.get('element').value = html;
++            } else {
++                this.get('element').innerHTML = html;
++            }
++            if (this.get('saveEl') !== this.get('element')) {
++                var out = this.get('saveEl');
++                if (Lang.isString(out)) {
++                    out = Dom.get(out);
++                }
++                if (out) {
++                    if (out.tagName.toLowerCase() === 'textarea') {
++                        out.value = html;
++                    } else {
++                        out.innerHTML = html;
++                    }
++                }
++            }
++            return html;
++        },
++        /**
++        * @method setEditorHTML
++        * @param {String} incomingHTML The html content to load into the editor
++        * @description Loads HTML into the editors body
++        */
++        setEditorHTML: function(incomingHTML) {
++            var html = this._cleanIncomingHTML(incomingHTML);
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++            this._getDoc().body.innerHTML = html;
++            this.nodeChange();
++        },
++        /**
++        * @method getEditorHTML
++        * @description Gets the unprocessed/unfiltered HTML from the editor
++        */
++        getEditorHTML: function() {
++            try {
++                var b = this._getDoc().body;
++                if (b === null) {
++                    return null;
++                }
++                return this._getDoc().body.innerHTML;
++            } catch (e) {
++                return '';
++            }
++        },
++        /**
++        * @method show
++        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
++        */
++        show: function() {
++            if (this.browser.gecko) {
++                this._setDesignMode('on');
++                this.focus();
++            }
++            if (this.browser.webkit) {
++                var self = this;
++                window.setTimeout(function() {
++                    self._setInitialContent.call(self);
++                }, 10);
++            }
++            //Adding this will close all other Editor window's when showing this one.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            //Put the iframe back in place
++            this.get('iframe').setStyle('position', 'static');
++            this.get('iframe').setStyle('left', '');
++        },
++        /**
++        * @method hide
++        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
++        */
++        hide: function() {
++            //Adding this will close all other Editor window's.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this._fixNodesTimer) {
++                clearTimeout(this._fixNodesTimer);
++                this._fixNodesTimer = null;
++            }
++            if (this._nodeChangeTimer) {
++                clearTimeout(this._nodeChangeTimer);
++                this._nodeChangeTimer = null;
++            }
++            this._lastNodeChange = 0;
++            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
++            this.get('iframe').setStyle('position', 'absolute');
++            this.get('iframe').setStyle('left', '-9999px');
++        },
++        /**
++        * @method _cleanIncomingHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the input
++        * @return {String} The filtered HTML
++        */
++        _cleanIncomingHTML: function(html) {
++            html = html.replace(/{/gi, 'RIGHT_BRACKET');
++            html = html.replace(/}/gi, 'LEFT_BRACKET');
++
++            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++            html = html.replace(/<\/strong>/gi, '</b>');   
++
++            //replace embed before em check
++            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
++
++            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++            html = html.replace(/<\/em>/gi, '</i>');
++            html = html.replace(/_moz_dirty=""/gi, '');
++            
++            //Put embed tags back in..
++            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
++            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
++            if (this.get('plainText')) {
++                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
++                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
++                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
++            }
++            //Removing Script Tags from the Editor
++            html = html.replace(/<script([^>]*)>/gi, '<bad>');
++            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
++            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
++            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
++            //Replace the line feeds
++            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
++            
++            //Remove Bad HTML elements (used to be script nodes)
++            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
++            //Replace the lines feeds
++            html = html.replace(/<YUI_LF>/g, '\n');
++            return html;
++        },
++        /**
++        * @method cleanHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the output
++        * @return {String} The filtered HTML
++        */
++        cleanHTML: function(html) {
++            //Start Filtering Output
++            //Begin RegExs..
++            if (!html) { 
++                html = this.getEditorHTML();
++            }
++            var markup = this.get('markup');
++            //Make some backups...
++            html = this.pre_filter_linebreaks(html, markup);
++
++            //Filter MS Word
++            html = this.filter_msword(html);
++
++		    html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
++		    html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
++
++		    html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
++		    html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
++
++		    html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
++		    html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
++		    html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
++		    html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
++
++		    html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++		    html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
++
++            //Convert b and i tags to strong and em tags
++            if ((markup == 'semantic') || (markup == 'xhtml')) {
++                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
++                html = html.replace(/<\/i>/gi, '</em>');
++                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
++                html = html.replace(/<\/b>/gi, '</strong>');
++            }
++
++            html = html.replace(/_moz_dirty=""/gi, '');
++
++            //normalize strikethrough
++            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
++            html = html.replace(/\/strike>/gi, '/span>');
++            
++            
++            //Case Changing
++            if (this.browser.ie) {
++                html = html.replace(/text-decoration/gi, 'text-decoration');
++                html = html.replace(/font-weight/gi, 'font-weight');
++                html = html.replace(/_width="([^>]*)"/gi, '');
++                html = html.replace(/_height="([^>]*)"/gi, '');
++                //Cleanup Image URL's
++                var url = this._baseHREF.replace(/\//gi, '\\/'),
++                    re = new RegExp('src="' + url, 'gi');
++                html = html.replace(re, 'src="');
++            }
++		    html = html.replace(/<font/gi, '<font');
++		    html = html.replace(/<\/font>/gi, '</font>');
++		    html = html.replace(/<span/gi, '<span');
++		    html = html.replace(/<\/span>/gi, '</span>');
++            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
++                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
++                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
++                if (this.browser.webkit) {
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
++                }
++                html = html.replace(/\/u>/gi, '/span>');
++                if (markup == 'css') {
++                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++                    html = html.replace(/<\/em>/gi, '</i>');
++                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++                    html = html.replace(/<\/strong>/gi, '</b>');
++                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
++                    html = html.replace(/\/b>/gi, '/span>');
++                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
++                    html = html.replace(/\/i>/gi, '/span>');
++                }
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            } else {
++		        html = html.replace(/<u/gi, '<u');
++		        html = html.replace(/\/u>/gi, '/u>');
++            }
++		    html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
++		    html = html.replace(/\/ol>/gi, '/ol>');
++		    html = html.replace(/<li/gi, '<li');
++		    html = html.replace(/\/li>/gi, '/li>');
++            html = this.filter_safari(html);
++
++            html = this.filter_internals(html);
++
++            html = this.filter_all_rgb(html);
++
++            //Replace our backups with the real thing
++            html = this.post_filter_linebreaks(html, markup);
++
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
++            } else {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
++            }
++		    html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
++		    html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
++
++            html = this.filter_invalid_lists(html);
++
++		    html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
++		    html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
++
++		    html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
++		    html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
++            
++            //This should fix &amp;'s in URL's
++            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
++            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
++            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
++            html = html.replace(/&amp;/gi, '&');
++            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
++            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
++            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
++
++            //Trim the output, removing whitespace from the beginning and end
++            html = YAHOO.lang.trim(html);
++
++            if (this.get('removeLineBreaks')) {
++                html = html.replace(/\n/g, '').replace(/\r/g, '');
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            }
++            
++            for (var v in this.invalidHTML) {
++                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                    if (Lang.isObject(v) && v.keepContents) {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
++                    } else {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
++                    }
++                }
++            }
++
++            /* LATER -- Add DOM manipulation
++            console.log(html);
++            var frag = document.createDocumentFragment();
++            frag.innerHTML = html;
++
++            var ps = frag.getElementsByTagName('p'),
++                len = ps.length;
++            for (var i = 0; i < len; i++) {
++                var ps2 = ps[i].getElementsByTagName('p');
++                if (ps2.length) {
++                    
++                }
++                
++            }
++            html = frag.innerHTML;
++            console.log(html);
++            */
++
++            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
++
++            return html;
++        },
++        /**
++        * @method filter_msword
++        * @param String html The HTML string to filter
++        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
++        */
++        filter_msword: function(html) {
++            if (!this.get('filterWord')) {
++                return html;
++            }
++            //Remove the ms o: tags
++            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
++            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
++
++            //Remove the ms w: tags
++            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
++
++            //Remove mso-? styles.
++            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
++
++            //Remove more bogus MS styles.
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
++            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
++            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
++            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
++            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
++
++            //Remove XML declarations
++            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
++
++            //Remove lang
++            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove language tags
++            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove onmouseover and onmouseout events (from MS Word comments effect)
++            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
++            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
++            
++            return html;
++        },
++        /**
++        * @method filter_invalid_lists
++        * @param String html The HTML string to filter
++        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
++        */
++        filter_invalid_lists: function(html) {
++            html = html.replace(/<\/li>\n/gi, '</li>');
++
++            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
++            html = html.replace(/<\/ol>/gi, '</ol></li>');
++            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
++
++            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
++            html = html.replace(/<\/ul>/gi, '</ul></li>');
++            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
++
++            html = html.replace(/<\/li>/gi, "</li>");
++            html = html.replace(/<\/ol>/gi, "</ol>");
++            html = html.replace(/<ol>/gi, "<ol>");
++            html = html.replace(/<ul>/gi, "<ul>");
++            return html;
++        },
++        /**
++        * @method filter_safari
++        * @param String html The HTML string to filter
++        * @description Filters strings specific to Safari
++        * @return String
++        */
++        filter_safari: function(html) {
++            if (this.browser.webkit) {
++                //<span class="Apple-tab-span" style="white-space:pre">	</span>
++                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
++                html = html.replace(/Apple-style-span/gi, '');
++                html = html.replace(/style="line-height: normal;"/gi, '');
++                html = html.replace(/yui-wk-div/gi, '');
++                html = html.replace(/yui-wk-p/gi, '');
++
++
++                //Remove bogus LI's
++                html = html.replace(/<li><\/li>/gi, '');
++                html = html.replace(/<li> <\/li>/gi, '');
++                html = html.replace(/<li>  <\/li>/gi, '');
++                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
++                if (this.get('ptags')) {
++		            html = html.replace(/<div([^>]*)>/g, '<p$1>');
++				    html = html.replace(/<\/div>/gi, '</p>');
++                } else {
++                    //html = html.replace(/<div>/gi, '<br>');
++                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
++				    html = html.replace(/<\/div>/gi, '');
++                }
++            }
++            return html;
++        },
++        /**
++        * @method filter_internals
++        * @param String html The HTML string to filter
++        * @description Filters internal RTE strings and bogus attrs we don't want
++        * @return String
++        */
++        filter_internals: function(html) {
++		    html = html.replace(/\r/g, '');
++            //Fix stuff we don't want
++	        html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
++            //Fix last BR in LI
++		    html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
++
++		    html = html.replace(/yui-tag-span/gi, '');
++		    html = html.replace(/yui-tag/gi, '');
++		    html = html.replace(/yui-non/gi, '');
++		    html = html.replace(/yui-img/gi, '');
++		    html = html.replace(/ tag="span"/gi, '');
++		    html = html.replace(/ class=""/gi, '');
++		    html = html.replace(/ style=""/gi, '');
++		    html = html.replace(/ class=" "/gi, '');
++		    html = html.replace(/ class="  "/gi, '');
++		    html = html.replace(/ target=""/gi, '');
++		    html = html.replace(/ title=""/gi, '');
++
++            if (this.browser.ie) {
++		        html = html.replace(/ class= /gi, '');
++		        html = html.replace(/ class= >/gi, '');
++            }
++            
++            return html;
++        },
++        /**
++        * @method filter_all_rgb
++        * @param String str The HTML string to filter
++        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
++        * @return String
++        */
++        filter_all_rgb: function(str) {
++            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
++            var arr = str.match(exp);
++            if (Lang.isArray(arr)) {
++                for (var i = 0; i < arr.length; i++) {
++                    var color = this.filter_rgb(arr[i]);
++                    str = str.replace(arr[i].toString(), color);
++                }
++            }
++            
++            return str;
++        },
++        /**
++        * @method filter_rgb
++        * @param String css The CSS string containing rgb(#,#,#);
++        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
++        * @return String
++        */
++        filter_rgb: function(css) {
++            if (css.toLowerCase().indexOf('rgb') != -1) {
++                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
++                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
++            
++                if (rgb.length == 5) {
++                    var r = parseInt(rgb[1], 10).toString(16);
++                    var g = parseInt(rgb[2], 10).toString(16);
++                    var b = parseInt(rgb[3], 10).toString(16);
++
++                    r = r.length == 1 ? '0' + r : r;
++                    g = g.length == 1 ? '0' + g : g;
++                    b = b.length == 1 ? '0' + b : b;
++
++                    css = "#" + r + g + b;
++                }
++            }
++            return css;
++        },
++        /**
++        * @method pre_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        pre_filter_linebreaks: function(html, markup) {
++            if (this.browser.webkit) {
++		        html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
++		        html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
++            }
++		    html = html.replace(/<br>/gi, '<YUI_BR>');
++		    html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
++		    html = html.replace(/<br\/>/gi, '<YUI_BR>');
++		    html = html.replace(/<br \/>/gi, '<YUI_BR>');
++		    html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
++		    html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
++            //Fix last BR
++	        html = html.replace(/<YUI_BR>$/, '');
++            //Fix last BR in P
++	        html = html.replace(/<YUI_BR><\/p>/g, '</p>');
++            if (this.browser.ie) {
++	            html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
++            }
++            return html;
++        },
++        /**
++        * @method post_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        post_filter_linebreaks: function(html, markup) {
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_BR>/g, '<br />');
++            } else {
++		        html = html.replace(/<YUI_BR>/g, '<br>');
++            }
++            return html;
++        },
++        /**
++        * @method clearEditorDoc
++        * @description Clear the doc of the Editor
++        */
++        clearEditorDoc: function() {
++            this._getDoc().body.innerHTML = '&nbsp;';
++        },
++        /**
++        * @method openWindow
++        * @description Override Method for Advanced Editor
++        */
++        openWindow: function(win) {
++        },
++        /**
++        * @method moveWindow
++        * @description Override Method for Advanced Editor
++        */
++        moveWindow: function() {
++        },
++        /**
++        * @private
++        * @method _closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        _closeWindow: function() {
++        },
++        /**
++        * @method closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        closeWindow: function() {
++            //this.unsubscribeAll('afterExecCommand');
++            this.toolbar.resetAllButtons();
++            this.focus();        
++        },
++        /**
++        * @method destroy
++        * @description Destroys the editor, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            if (this._nodeChangeDelayTimer) {
++                clearTimeout(this._nodeChangeDelayTimer);
++            }
++            this.hide();
++        
++            if (this.resize) {
++                this.resize.destroy();
++            }
++            if (this.dd) {
++                this.dd.unreg();
++            }
++            if (this.get('panel')) {
++                this.get('panel').destroy();
++            }
++            this.saveHTML();
++            this.toolbar.destroy();
++            this.setStyle('visibility', 'visible');
++            this.setStyle('position', 'static');
++            this.setStyle('top', '');
++            this.setStyle('left', '');
++            var textArea = this.get('element');
++            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
++            this.get('element_cont').get('element').innerHTML = '';
++            this.set('handleSubmit', false); //Remove the submit handler
++            return true;
++        },        
++        /**
++        * @method toString
++        * @description Returns a string representing the editor.
++        * @return {String}
++        */
++        toString: function() {
++            var str = 'SimpleEditor';
++            if (this.get && this.get('element_cont')) {
++                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
++            }
++            return str;
++        }
++    });
++
++/**
++* @event toolbarLoaded
++* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event cleanHTML
++* @description Event is fired after the cleanHTML method is called.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterRender
++* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorContentLoaded
++* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeNodeChange
++* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterNodeChange
++* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeExecCommand
++* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterExecCommand
++* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++
++/**
++* @event editorWindowFocus
++* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorWindowBlur
++* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++ * @description Singleton object used to track the open window objects and panels across the various open editors
++ * @class EditorInfo
++ * @static
++*/
++YAHOO.widget.EditorInfo = {
++    /**
++    * @private
++    * @property _instances
++    * @description A reference to all editors on the page.
++    * @type Object
++    */
++    _instances: {},
++    /**
++    * @private
++    * @property blankImage
++    * @description A reference to the blankImage url
++    * @type String 
++    */
++    blankImage: '',
++    /**
++    * @private
++    * @property window
++    * @description A reference to the currently open window object in any editor on the page.
++    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
++    */
++    window: {},
++    /**
++    * @private
++    * @property panel
++    * @description A reference to the currently open panel in any editor on the page.
++    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
++    */
++    panel: null,
++    /**
++    * @method getEditorById
++    * @description Returns a reference to the Editor object associated with the given textarea
++    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
++    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
++    */
++    getEditorById: function(id) {
++        if (!YAHOO.lang.isString(id)) {
++            //Not a string, assume a node Reference
++            id = id.id;
++        }
++        if (this._instances[id]) {
++            return this._instances[id];
++        }
++        return false;
++    },
++    /**
++    * @method saveAll
++    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
++    * @param {HTMLElement} form The form to check if this Editor instance belongs to
++    */
++    saveAll: function(form) {
++        var i, e, items = YAHOO.widget.EditorInfo._instances;
++        if (form) {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    e = items[i];
++                    if (e.get('element').form && (e.get('element').form == form)) {
++                        e.saveHTML();
++                    }
++                }
++            }
++        } else {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    items[i].saveHTML();
++                }
++            }
++        }
++    },
++    /**
++    * @method toString
++    * @description Returns a string representing the EditorInfo.
++    * @return {String}
++    */
++    toString: function() {
++        var len = 0;
++        for (var i in this._instances) {
++            if (Lang.hasOwnProperty(this._instances, i)) {
++                len++;
++            }
++        }
++        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
++    }
++};
++
++
++
++    
++})();
++/**
++ * @module editor
++ * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, container_core, simpleeditor
++ * @optional dragdrop, animation, menu, button, resize
++ */
++
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang,
++    Toolbar = YAHOO.widget.Toolbar;
++
++    /**
++     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
++     * @constructor
++     * @class Editor
++     * @extends YAHOO.widget.SimpleEditor
++     * @param {String/HTMLElement} el The textarea element to turn into an editor.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    
++    YAHOO.widget.Editor = function(el, attrs) {
++        YAHOO.widget.Editor.superclass.constructor.call(this, el, attrs);
++    };
++
++    YAHOO.extend(YAHOO.widget.Editor, YAHOO.widget.SimpleEditor, {
++        /**
++        * @private
++        * @property _undoCache
++        * @description An Array hash of the Undo Levels.
++        * @type Array
++        */
++        _undoCache: null,
++        /**
++        * @private
++        * @property _undoLevel
++        * @description The index of the current undo state.
++        * @type Number
++        */
++        _undoLevel: null,    
++        /**
++        * @private
++        * @method _hasUndoLevel
++        * @description Checks to see if we have an undo level available
++        * @return Boolean
++        */
++        _hasUndoLevel: function() {
++            return ((this._undoCache.length > 1) && this._undoLevel);
++        },
++        /**
++        * @private
++        * @method _undoNodeChange
++        * @description nodeChange listener for undo processing
++        */
++        _undoNodeChange: function() {
++            var undo_button = this.toolbar.getButtonByValue('undo'),
++                redo_button = this.toolbar.getButtonByValue('redo');
++            if (undo_button && redo_button) {
++                if (this._hasUndoLevel()) {
++                    this.toolbar.enableButton(undo_button);
++                }
++                if (this._undoLevel < this._undoCache.length) {
++                    this.toolbar.enableButton(redo_button);
++                }
++            }
++            this._lastCommand = null;
++        },
++        /**
++        * @private
++        * @method _checkUndo
++        * @description Prunes the undo cache when it reaches the maxUndo config
++        */
++        _checkUndo: function() {
++            var len = this._undoCache.length,
++            tmp = [];
++            if (len >= this.get('maxUndo')) {
++                for (var i = (len - this.get('maxUndo')); i < len; i++) {
++                    tmp.push(this._undoCache[i]);
++                }
++                this._undoCache = tmp;
++            }
++        },
++        /**
++        * @private
++        * @method _putUndo
++        * @description Puts the content of the Editor into the _undoCache.
++        * //TODO Convert the hash to a series of TEXTAREAS to store state in.
++        * @param {String} str The content of the Editor
++        */
++        _putUndo: function(str) {
++            if (this._undoLevel === this._undoCache.length) {
++                this._undoCache.push(str);
++                this._undoLevel = this._undoCache.length;
++            } else {
++                var str = this.getEditorHTML();
++                var last = this._undoCache[this._undoLevel];
++                if (last) {
++                    if (str !== last) {
++                        this._undoCache = [];
++                        this._undoLevel = 0;
++                    }
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _getUndo
++        * @description Get's a level from the undo cache.
++        * @param {Number} index The index of the undo level we want to get.
++        * @return {String}
++        */
++        _getUndo: function(index) {
++            this._undoLevel = index;
++            return this._undoCache[index];
++        },
++        /**
++        * @private
++        * @method _storeUndo
++        * @description Method to call when you want to store an undo state. Currently called from nodeChange and _handleKeyUp
++        */
++        _storeUndo: function() {
++            if (this._lastCommand === 'undo' || this._lastCommand === 'redo') {
++                return false;
++            }
++            if (!this._undoCache) {
++                this._undoCache = [];
++                this._undoLevel = 0;
++            }
++            this._checkUndo();
++            var str = this.getEditorHTML();
++            //var last = this._undoCache[this._undoCache.length - 1];
++            var last = this._undoCache[this._undoLevel - 1];
++            if (last) {
++                if (str !== last) {
++                    this._putUndo(str);
++                }
++            } else {
++                this._putUndo(str);
++            }
++            this._undoNodeChange();
++        },    
++        /**
++        * @property STR_BEFORE_EDITOR
++        * @description The accessibility string for the element before the iFrame
++        * @type String
++        */
++        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift [ aligns text left</li> <li>Control Shift | centers text</li> <li>Control Shift ] aligns text right</li> <li>Control Shift L adds an HTML link</li> <li>To exit this text editor use the keyboard shortcut Control + Shift + ESC.</li></ul>',    
++        /**
++        * @property STR_CLOSE_WINDOW
++        * @description The Title of the close button in the Editor Window
++        * @type String
++        */
++        STR_CLOSE_WINDOW: 'Close Window',
++        /**
++        * @property STR_CLOSE_WINDOW_NOTE
++        * @description A note appearing in the Editor Window to tell the user that the Escape key will close the window
++        * @type String
++        */
++        STR_CLOSE_WINDOW_NOTE: 'To close this window use the Control + Shift + W key',
++        /**
++        * @property STR_IMAGE_PROP_TITLE
++        * @description The title for the Image Property Editor Window
++        * @type String
++        */
++        STR_IMAGE_PROP_TITLE: 'Image Options',
++        /**
++        * @property STR_IMAGE_TITLE
++        * @description The label string for Image Description
++        * @type String
++        */
++        STR_IMAGE_TITLE: 'Description',
++        /**
++        * @property STR_IMAGE_SIZE
++        * @description The label string for Image Size
++        * @type String
++        */
++        STR_IMAGE_SIZE: 'Size',
++        /**
++        * @property STR_IMAGE_ORIG_SIZE
++        * @description The label string for Original Image Size
++        * @type String
++        */
++        STR_IMAGE_ORIG_SIZE: 'Original Size',
++        /**
++        * @property STR_IMAGE_COPY
++        * @description The label string for the image copy and paste message for Opera and Safari
++        * @type String
++        */
++        STR_IMAGE_COPY: '<span class="tip"><span class="icon icon-info"></span><strong>Note:</strong>To move this image just highlight it, cut, and paste where ever you\'d like.</span>',
++        /**
++        * @property STR_IMAGE_PADDING
++        * @description The label string for the image padding.
++        * @type String
++        */
++        STR_IMAGE_PADDING: 'Padding',
++        /**
++        * @property STR_IMAGE_BORDER
++        * @description The label string for the image border.
++        * @type String
++        */
++        STR_IMAGE_BORDER: 'Border',
++        /**
++        * @property STR_IMAGE_BORDER_SIZE
++        * @description The label string for the image border size.
++        * @type String
++        */
++        STR_IMAGE_BORDER_SIZE: 'Border Size',
++        /**
++        * @property STR_IMAGE_BORDER_TYPE
++        * @description The label string for the image border type.
++        * @type String
++        */
++        STR_IMAGE_BORDER_TYPE: 'Border Type',
++        /**
++        * @property STR_IMAGE_TEXTFLOW
++        * @description The label string for the image text flow.
++        * @type String
++        */
++        STR_IMAGE_TEXTFLOW: 'Text Flow',
++        /**
++        * @property STR_LOCAL_FILE_WARNING
++        * @description The label string for the local file warning.
++        * @type String
++        */
++        STR_LOCAL_FILE_WARNING: '<span class="tip"><span class="icon icon-warn"></span><strong>Note:</strong>This image/link points to a file on your computer and will not be accessible to others on the internet.</span>',
++        /**
++        * @property STR_LINK_PROP_TITLE
++        * @description The label string for the Link Property Editor Window.
++        * @type String
++        */
++        STR_LINK_PROP_TITLE: 'Link Options',
++        /**
++        * @property STR_LINK_PROP_REMOVE
++        * @description The label string for the Remove link from text link inside the property editor.
++        * @type String
++        */
++        STR_LINK_PROP_REMOVE: 'Remove link from text',
++        /**
++        * @property STR_LINK_NEW_WINDOW
++        * @description The string for the open in a new window label.
++        * @type String
++        */
++        STR_LINK_NEW_WINDOW: 'Open in a new window.',
++        /**
++        * @property STR_LINK_TITLE
++        * @description The string for the link description.
++        * @type String
++        */
++        STR_LINK_TITLE: 'Description',
++        /**
++        * @property STR_NONE
++        * @description The string for the word none.
++        * @type String
++        */
++        STR_NONE: 'none',
++        /**
++        * @protected
++        * @property CLASS_LOCAL_FILE
++        * @description CSS class applied to an element when it's found to have a local url.
++        * @type String
++        */
++        CLASS_LOCAL_FILE: 'warning-localfile',
++        /**
++        * @protected
++        * @property CLASS_HIDDEN
++        * @description CSS class applied to the body when the hiddenelements button is pressed.
++        * @type String
++        */
++        CLASS_HIDDEN: 'yui-hidden',
++        /** 
++        * @method init
++        * @description The Editor class' initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            
++            this._windows = {};
++            if (!this._defaultToolbar) {            
++                this._defaultToolbar = {
++                    collapse: true,
++                    titlebar: 'Text Editing Tools',
++                    draggable: false,
++                    buttonType: 'advanced',
++                    buttons: [
++                        { group: 'fontstyle', label: 'Font Name and Size',
++                            buttons: [
++                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
++                                    menu: [
++                                        { text: 'Arial', checked: true },
++                                        { text: 'Arial Black' },
++                                        { text: 'Comic Sans MS' },
++                                        { text: 'Courier New' },
++                                        { text: 'Lucida Console' },
++                                        { text: 'Tahoma' },
++                                        { text: 'Times New Roman' },
++                                        { text: 'Trebuchet MS' },
++                                        { text: 'Verdana' }
++                                    ]
++                                },
++                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle', label: 'Font Style',
++                            buttons: [
++                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
++                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
++                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
++                                { type: 'separator' },
++                                { type: 'push', label: 'Subscript', value: 'subscript', disabled: true },
++                                { type: 'push', label: 'Superscript', value: 'superscript', disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle2', label: '&nbsp;',
++                            buttons: [
++                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
++                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true },
++                                { type: 'separator' },
++                                { type: 'push', label: 'Remove Formatting', value: 'removeformat', disabled: true },
++                                { type: 'push', label: 'Show/Hide Hidden Elements', value: 'hiddenelements' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'undoredo', label: 'Undo/Redo',
++                            buttons: [
++                                { type: 'push', label: 'Undo', value: 'undo', disabled: true },
++                                { type: 'push', label: 'Redo', value: 'redo', disabled: true }
++                                
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'alignment', label: 'Alignment',
++                            buttons: [
++                                { type: 'push', label: 'Align Left CTRL + SHIFT + [', value: 'justifyleft' },
++                                { type: 'push', label: 'Align Center CTRL + SHIFT + |', value: 'justifycenter' },
++                                { type: 'push', label: 'Align Right CTRL + SHIFT + ]', value: 'justifyright' },
++                                { type: 'push', label: 'Justify', value: 'justifyfull' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'parastyle', label: 'Paragraph Style',
++                            buttons: [
++                            { type: 'select', label: 'Normal', value: 'heading', disabled: true,
++                                menu: [
++                                    { text: 'Normal', value: 'none', checked: true },
++                                    { text: 'Header 1', value: 'h1' },
++                                    { text: 'Header 2', value: 'h2' },
++                                    { text: 'Header 3', value: 'h3' },
++                                    { text: 'Header 4', value: 'h4' },
++                                    { text: 'Header 5', value: 'h5' },
++                                    { text: 'Header 6', value: 'h6' }
++                                ]
++                            }
++                            ]
++                        },
++                        { type: 'separator' },
++                        
++                        { group: 'indentlist2', label: 'Indenting and Lists',
++                            buttons: [
++                                { type: 'push', label: 'Indent', value: 'indent', disabled: true },
++                                { type: 'push', label: 'Outdent', value: 'outdent', disabled: true },
++                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
++                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'insertitem', label: 'Insert Item',
++                            buttons: [
++                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
++                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            if (!this._defaultImageToolbarConfig) {
++                this._defaultImageToolbarConfig = {
++                    buttonType: this._defaultToolbar.buttonType,
++                    buttons: [
++                        { group: 'textflow', label: this.STR_IMAGE_TEXTFLOW + ':',
++                            buttons: [
++                                { type: 'push', label: 'Left', value: 'left' },
++                                { type: 'push', label: 'Inline', value: 'inline' },
++                                { type: 'push', label: 'Block', value: 'block' },
++                                { type: 'push', label: 'Right', value: 'right' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'padding', label: this.STR_IMAGE_PADDING + ':',
++                            buttons: [
++                                { type: 'spin', label: '0', value: 'padding', range: [0, 50] }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'border', label: this.STR_IMAGE_BORDER + ':',
++                            buttons: [
++                                { type: 'select', label: this.STR_IMAGE_BORDER_SIZE, value: 'bordersize',
++                                    menu: [
++                                        { text: 'none', value: '0', checked: true },
++                                        { text: '1px', value: '1' },
++                                        { text: '2px', value: '2' },
++                                        { text: '3px', value: '3' },
++                                        { text: '4px', value: '4' },
++                                        { text: '5px', value: '5' }
++                                    ]
++                                },
++                                { type: 'select', label: this.STR_IMAGE_BORDER_TYPE, value: 'bordertype', disabled: true,
++                                    menu: [
++                                        { text: 'Solid', value: 'solid', checked: true },
++                                        { text: 'Dashed', value: 'dashed' },
++                                        { text: 'Dotted', value: 'dotted' }
++                                    ]
++                                },
++                                { type: 'color', label: 'Border Color', value: 'bordercolor', disabled: true }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            YAHOO.widget.Editor.superclass.init.call(this, p_oElement, p_oAttributes);
++        },
++        _render: function() {
++            YAHOO.widget.Editor.superclass._render.apply(this, arguments);
++            var self = this;
++            //Render the panel in another thread and delay it a little..
++            window.setTimeout(function() {
++                self._renderPanel.call(self);
++            }, 800);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the editor.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the editor.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.Editor.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @attribute localFileWarning
++            * @description Should we throw the warning if we detect a file that is local to their machine?
++            * @default true
++            * @type Boolean
++            */            
++            this.setAttributeConfig('localFileWarning', {
++                value: attr.locaFileWarning || true
++            });
++
++            /**
++            * @attribute hiddencss
++            * @description The CSS used to show/hide hidden elements on the page, these rules must be prefixed with the class provided in <code>this.CLASS_HIDDEN</code>
++            * @default <code><pre>
++            .yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u,
++            .yui-hidden div, .yui-hidden p, .yui-hidden span, .yui-hidden img, .yui-hidden ul, .yui-hidden ol,
++            .yui-hidden li, .yui-hidden table {
++                border: 1px dotted #ccc;
++            }
++            .yui-hidden .yui-non {
++                border: none;
++            }
++            .yui-hidden img {
++                padding: 2px;
++            }</pre></code>
++            * @type String
++            */            
++            this.setAttributeConfig('hiddencss', {
++                value: attr.hiddencss || '.yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }',
++                writeOnce: true
++            });
++           
++        },
++        /**
++        * @private
++        * @method _windows
++        * @description A reference to the HTML elements used for the body of Editor Windows.
++        */
++        _windows: null,
++        /**
++        * @private
++        * @method _defaultImageToolbar
++        * @description A reference to the Toolbar Object inside Image Editor Window.
++        */
++        _defaultImageToolbar: null,
++        /**
++        * @private
++        * @method _defaultImageToolbarConfig
++        * @description Config to be used for the default Image Editor Window.
++        */
++        _defaultImageToolbarConfig: null,
++        /**
++        * @private
++        * @method _fixNodes
++        * @description Fix href and imgs as well as remove invalid HTML.
++        */
++        _fixNodes: function() {
++            YAHOO.widget.Editor.superclass._fixNodes.call(this);
++            try {
++                var url = '';
++
++                var imgs = this._getDoc().getElementsByTagName('img');
++                for (var im = 0; im < imgs.length; im++) {
++                    if (imgs[im].getAttribute('href', 2)) {
++                        url = imgs[im].getAttribute('src', 2);
++                        if (this._isLocalFile(url)) {
++                            Dom.addClass(imgs[im], this.CLASS_LOCAL_FILE);
++                        } else {
++                            Dom.removeClass(imgs[im], this.CLASS_LOCAL_FILE);
++                        }
++                    }
++                }
++                var fakeAs = this._getDoc().body.getElementsByTagName('a');
++                for (var a = 0; a < fakeAs.length; a++) {
++                    if (fakeAs[a].getAttribute('href', 2)) {
++                        url = fakeAs[a].getAttribute('href', 2);
++                        if (this._isLocalFile(url)) {
++                            Dom.addClass(fakeAs[a], this.CLASS_LOCAL_FILE);
++                        } else {
++                            Dom.removeClass(fakeAs[a], this.CLASS_LOCAL_FILE);
++                        }
++                    }
++                }
++            } catch(e) {}
++        },
++        /**
++        * @private
++        * @property _disabled
++        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
++        * @type Array
++        */
++        _disabled: [ 'createlink', 'forecolor', 'backcolor', 'fontname', 'fontsize', 'superscript', 'subscript', 'removeformat', 'heading', 'indent' ],
++        /**
++        * @private
++        * @property _alwaysDisabled
++        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
++        * @type Object
++        */
++        _alwaysDisabled: { 'outdent': true },
++        /**
++        * @private
++        * @property _alwaysEnabled
++        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
++        * @type Object
++        */
++        _alwaysEnabled: { hiddenelements: true },
++        /**
++        * @private
++        * @method _handleKeyDown
++        * @param {Event} ev The event we are working on.
++        * @description Override method that handles some new keydown events inside the iFrame document.
++        */
++        _handleKeyDown: function(ev) {
++            YAHOO.widget.Editor.superclass._handleKeyDown.call(this, ev);
++            var doExec = false,
++                action = null,
++                exec = false;
++
++            switch (ev.keyCode) {
++                //case 219: //Left
++                case this._keyMap.JUSTIFY_LEFT.key: //Left
++                    if (this._checkKey(this._keyMap.JUSTIFY_LEFT, ev)) {
++                        action = 'justifyleft';
++                        doExec = true;
++                    }
++                    break;
++                //case 220: //Center
++                case this._keyMap.JUSTIFY_CENTER.key:
++                    if (this._checkKey(this._keyMap.JUSTIFY_CENTER, ev)) {
++                        action = 'justifycenter';
++                        doExec = true;
++                    }
++                    break;
++                case 221: //Right
++                case this._keyMap.JUSTIFY_RIGHT.key:
++                    if (this._checkKey(this._keyMap.JUSTIFY_RIGHT, ev)) {
++                        action = 'justifyright';
++                        doExec = true;
++                    }
++                    break;
++            }
++            if (doExec && action) {
++                this.execCommand(action, null);
++                Event.stopEvent(ev);
++                this.nodeChange();
++            }
++        },        
++        /**
++        * @private
++        * @method _renderCreateLinkWindow
++        * @description Pre renders the CreateLink window so we get faster window opening.
++        */
++        _renderCreateLinkWindow: function() {
++                var str = '<label for="' + this.get('id') + '_createlink_url"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_url" id="' + this.get('id') + '_createlink_url" value=""></label>';
++                str += '<label for="' + this.get('id') + '_createlink_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_createlink_target" id="' + this.get('id') + '_createlink_target" value="_blank" class="createlink_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
++                str += '<label for="' + this.get('id') + '_createlink_title"><strong>' + this.STR_LINK_TITLE + ':</strong> <input type="text" name="' + this.get('id') + '_createlink_title" id="' + this.get('id') + '_createlink_title" value=""></label>';
++                
++                var body = document.createElement('div');
++                body.innerHTML = str;
++
++                var unlinkCont = document.createElement('div');
++                unlinkCont.className = 'removeLink';
++                var unlink = document.createElement('a');
++                unlink.href = '#';
++                unlink.innerHTML = this.STR_LINK_PROP_REMOVE;
++                unlink.title = this.STR_LINK_PROP_REMOVE;
++                Event.on(unlink, 'click', function(ev) {
++                    Event.stopEvent(ev);
++                    this.unsubscribeAll('afterExecCommand');
++                    this.execCommand('unlink');
++                    this.closeWindow();
++                }, this, true);
++                unlinkCont.appendChild(unlink);
++                body.appendChild(unlinkCont);
++                
++                this._windows.createlink = {};
++                this._windows.createlink.body = body;
++                //body.style.display = 'none';
++                Event.on(body, 'keyup', function(e) {
++                    Event.stopPropagation(e);
++                });
++                this.get('panel').editor_form.appendChild(body);
++                this.fireEvent('windowCreateLinkRender', { type: 'windowCreateLinkRender', panel: this.get('panel'), body: body });
++                return body;
++        },
++        _handleCreateLinkClick: function() {
++            var el = this._getSelectedElement();
++            if (this._isElement(el, 'img')) {
++                this.STOP_EXEC_COMMAND = true;
++                this.currentElement[0] = el;
++                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++                return false;
++            }
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('createlink')) {
++                    return false;
++                }
++            }
++            
++            this.on('afterExecCommand', function() {
++                var win = new YAHOO.widget.EditorWindow('createlink', {
++                    width: '350px'
++                });
++                
++                var el = this.currentElement[0],
++                    url = '',
++                    title = '',
++                    target = '',
++                    localFile = false;
++                if (el) {
++                    win.el = el;
++                    if (el.getAttribute('href', 2) !== null) {
++                        url = el.getAttribute('href', 2);
++                        if (this._isLocalFile(url)) {
++                            //Local File throw Warning
++                            win.setFooter(this.STR_LOCAL_FILE_WARNING);
++                            localFile = true;
++                        } else {
++                            win.setFooter(' ');
++                        }
++                    }
++                    if (el.getAttribute('title') !== null) {
++                        title = el.getAttribute('title');
++                    }
++                    if (el.getAttribute('target') !== null) {
++                        target = el.getAttribute('target');
++                    }
++                }
++                var body = null;
++                if (this._windows.createlink && this._windows.createlink.body) {
++                    body = this._windows.createlink.body;
++                } else {
++                    body = this._renderCreateLinkWindow();
++                }
++
++                win.setHeader(this.STR_LINK_PROP_TITLE);
++                win.setBody(body);
++
++                Event.purgeElement(this.get('id') + '_createlink_url');
++
++                Dom.get(this.get('id') + '_createlink_url').value = url;
++                Dom.get(this.get('id') + '_createlink_title').value = title;
++                Dom.get(this.get('id') + '_createlink_target').checked = ((target) ? true : false);
++                
++
++                Event.onAvailable(this.get('id') + '_createlink_url', function() {
++                    var id = this.get('id');
++                    window.setTimeout(function() {
++                        try {
++                            YAHOO.util.Dom.get(id + '_createlink_url').focus();
++                        } catch (e) {}
++                    }, 50);
++
++                    if (this._isLocalFile(url)) {
++                        //Local File throw Warning
++                        Dom.addClass(this.get('id') + '_createlink_url', 'warning');
++                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                    } else {
++                        Dom.removeClass(this.get('id') + '_createlink_url', 'warning');
++                        this.get('panel').setFooter(' ');
++                    }
++                    Event.on(this.get('id') + '_createlink_url', 'blur', function() {
++                        var url = Dom.get(this.get('id') + '_createlink_url');
++                        if (this._isLocalFile(url.value)) {
++                            //Local File throw Warning
++                            Dom.addClass(url, 'warning');
++                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                        } else {
++                            Dom.removeClass(url, 'warning');
++                            this.get('panel').setFooter(' ');
++                        }
++                    }, this, true);
++                }, this, true);
++                
++                this.openWindow(win);
++
++            });
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkWindowClose
++        * @description Handles the closing of the Link Properties Window.
++        */
++        _handleCreateLinkWindowClose: function() {
++            
++            var url = Dom.get(this.get('id') + '_createlink_url'),
++                target = Dom.get(this.get('id') + '_createlink_target'),
++                title = Dom.get(this.get('id') + '_createlink_title'),
++                el = arguments[0].win.el,
++                a = el;
++
++            if (url && url.value) {
++                var urlValue = url.value;
++                if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                    if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        //Found an @ sign, prefix with mailto:
++                        urlValue = 'mailto:' + urlValue;
++                    } else {
++                        // :// not found adding
++                        if (urlValue.substring(0, 1) != '#') {
++                            urlValue = 'http:/'+'/' + urlValue;
++                        }
++                        
++                    }
++                }
++                el.setAttribute('href', urlValue);
++                if (target.checked) {
++                    el.setAttribute('target', target.value);
++                } else {
++                    el.setAttribute('target', '');
++                }
++                el.setAttribute('title', ((title.value) ? title.value : ''));
++
++            } else {
++                var _span = this._getDoc().createElement('span');
++                _span.innerHTML = el.innerHTML;
++                Dom.addClass(_span, 'yui-non');
++                el.parentNode.replaceChild(_span, el);
++            }
++            Dom.removeClass(url, 'warning');
++            Dom.get(this.get('id') + '_createlink_url').value = '';
++            Dom.get(this.get('id') + '_createlink_title').value = '';
++            Dom.get(this.get('id') + '_createlink_target').checked = false;
++            this.nodeChange();
++            this.currentElement = [];
++            
++        },
++        /**
++        * @private
++        * @method _renderInsertImageWindow
++        * @description Pre renders the InsertImage window so we get faster window opening.
++        */
++        _renderInsertImageWindow: function() {
++                var el = this.currentElement[0];
++                var str = '<label for="' + this.get('id') + '_insertimage_url"><strong>' + this.STR_IMAGE_URL + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_url" value="" size="40"></label>';
++                var body = document.createElement('div');
++                body.innerHTML = str;
++
++                var tbarCont = document.createElement('div');
++                tbarCont.id = this.get('id') + '_img_toolbar';
++                body.appendChild(tbarCont);
++
++                var str2 = '<label for="' + this.get('id') + '_insertimage_title"><strong>' + this.STR_IMAGE_TITLE + ':</strong> <input type="text" id="' + this.get('id') + '_insertimage_title" value="" size="40"></label>';
++                str2 += '<label for="' + this.get('id') + '_insertimage_link"><strong>' + this.STR_LINK_URL + ':</strong> <input type="text" name="' + this.get('id') + '_insertimage_link" id="' + this.get('id') + '_insertimage_link" value=""></label>';
++                str2 += '<label for="' + this.get('id') + '_insertimage_target"><strong>&nbsp;</strong><input type="checkbox" name="' + this.get('id') + '_insertimage_target_" id="' + this.get('id') + '_insertimage_target" value="_blank" class="insertimage_target"> ' + this.STR_LINK_NEW_WINDOW + '</label>';
++                var div = document.createElement('div');
++                div.innerHTML = str2;
++                body.appendChild(div);
++
++                var o = {};
++                Lang.augmentObject(o, this._defaultImageToolbarConfig); //Break the config reference
++
++                var tbar = new YAHOO.widget.Toolbar(tbarCont, o);
++                tbar.editor_el = el;
++                this._defaultImageToolbar = tbar;
++                
++                var cont = tbar.get('cont');
++                var hw = document.createElement('div');
++                hw.className = 'yui-toolbar-group yui-toolbar-group-height-width height-width';
++                hw.innerHTML = '<h3>' + this.STR_IMAGE_SIZE + ':</h3>';
++                hw.innerHTML += '<span tabIndex="-1"><input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_width"> x <input type="text" size="3" value="" id="' + this.get('id') + '_insertimage_height"></span>';
++                cont.insertBefore(hw, cont.firstChild);
++
++                Event.onAvailable(this.get('id') + '_insertimage_width', function() {
++                    Event.on(this.get('id') + '_insertimage_width', 'blur', function() {
++                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_width').value, 10);
++                        if (value > 5) {
++                           this._defaultImageToolbar.editor_el.style.width = value + 'px';
++                            //Removed moveWindow call so the window doesn't jump
++                            //this.moveWindow();
++                        }
++                    }, this, true);
++                }, this, true);
++                Event.onAvailable(this.get('id') + '_insertimage_height', function() {
++                    Event.on(this.get('id') + '_insertimage_height', 'blur', function() {
++                        var value = parseInt(Dom.get(this.get('id') + '_insertimage_height').value, 10);
++                        if (value > 5) {
++                            this._defaultImageToolbar.editor_el.style.height = value + 'px';
++                            //Removed moveWindow call so the window doesn't jump
++                            //this.moveWindow();
++                        }
++                    }, this, true);
++                }, this, true);
++
++
++                tbar.on('colorPickerClicked', function(o) {
++                    var size = '1', type = 'solid', color = 'black', el = this._defaultImageToolbar.editor_el;
++
++                    if (el.style.borderLeftWidth) {
++                        size = parseInt(el.style.borderLeftWidth, 10);
++                    }
++                    if (el.style.borderLeftStyle) {
++                        type = el.style.borderLeftStyle;
++                    }
++                    if (el.style.borderLeftColor) {
++                        color = el.style.borderLeftColor;
++                    }
++                    var borderString = size + 'px ' + type + ' #' + o.color;
++                    el.style.border = borderString;
++                }, this, true);
++
++                tbar.on('buttonClick', function(o) {
++                    var value = o.button.value,
++                        el = this._defaultImageToolbar.editor_el,
++                        borderString = '';
++                    if (o.button.menucmd) {
++                        value = o.button.menucmd;
++                    }
++                    var size = '1', type = 'solid', color = 'black';
++
++                    /* All border calcs are done on the left border
++                        since our default interface only supports
++                        one border size/type and color */
++                    if (el.style.borderLeftWidth) {
++                        size = parseInt(el.style.borderLeftWidth, 10);
++                    }
++                    if (el.style.borderLeftStyle) {
++                        type = el.style.borderLeftStyle;
++                    }
++                    if (el.style.borderLeftColor) {
++                        color = el.style.borderLeftColor;
++                    }
++                    switch(value) {
++                        case 'bordersize':
++                            if (this.browser.webkit && this._lastImage) {
++                                Dom.removeClass(this._lastImage, 'selected');
++                                this._lastImage = null;
++                            }
++
++                            borderString = parseInt(o.button.value, 10) + 'px ' + type + ' ' + color;
++                            el.style.border = borderString;
++                            if (parseInt(o.button.value, 10) > 0) {
++                                tbar.enableButton('bordertype');
++                                tbar.enableButton('bordercolor');
++                            } else {
++                                tbar.disableButton('bordertype');
++                                tbar.disableButton('bordercolor');
++                            }
++                            break;
++                        case 'bordertype':
++                            if (this.browser.webkit && this._lastImage) {
++                                Dom.removeClass(this._lastImage, 'selected');
++                                this._lastImage = null;
++                            }
++                            borderString = size + 'px ' + o.button.value + ' ' + color;
++                            el.style.border = borderString;
++                            break;
++                        case 'right':
++                        case 'left':
++                            tbar.deselectAllButtons();
++                            el.style.display = '';
++                            el.align = o.button.value;
++                            break;
++                        case 'inline':
++                            tbar.deselectAllButtons();
++                            el.style.display = '';
++                            el.align = '';
++                            break;
++                        case 'block':
++                            tbar.deselectAllButtons();
++                            el.style.display = 'block';
++                            el.align = 'center';
++                            break;
++                        case 'padding':
++                            var _button = tbar.getButtonById(o.button.id);
++                            el.style.margin = _button.get('label') + 'px';
++                            break;
++                    }
++                    tbar.selectButton(o.button.value);
++                    if (value !== 'padding') {
++                        this.moveWindow();
++                    }
++                }, this, true);
++
++
++
++                if (this.get('localFileWarning')) {
++                    Event.on(this.get('id') + '_insertimage_link', 'blur', function() {
++                        var url = Dom.get(this.get('id') + '_insertimage_link');
++                        if (this._isLocalFile(url.value)) {
++                            //Local File throw Warning
++                            Dom.addClass(url, 'warning');
++                            this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                        } else {
++                            Dom.removeClass(url, 'warning');
++                            this.get('panel').setFooter(' ');
++                            //Adobe AIR Code
++                            if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
++                                this.get('panel').setFooter(this.STR_IMAGE_COPY);
++                            }
++                        }
++                    }, this, true);
++                }
++
++                Event.on(this.get('id') + '_insertimage_url', 'blur', function() {
++                    var url = Dom.get(this.get('id') + '_insertimage_url'),
++                        el = this.currentElement[0];
++
++                    if (url.value && el) {
++                        if (url.value == el.getAttribute('src', 2)) {
++                            return false;
++                        }
++                    }
++                    if (this._isLocalFile(url.value)) {
++                        //Local File throw Warning
++                        Dom.addClass(url, 'warning');
++                        this.get('panel').setFooter(this.STR_LOCAL_FILE_WARNING);
++                    } else if (this.currentElement[0]) {
++                        Dom.removeClass(url, 'warning');
++                        this.get('panel').setFooter(' ');
++                        //Adobe AIR Code
++                        if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
++                            this.get('panel').setFooter(this.STR_IMAGE_COPY);
++                        }
++                        
++                        if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
++                            this.currentElement[0].setAttribute('src', url.value);
++                            var self = this,
++                                img = new Image();
++
++                            img.onerror = function() {
++                                url.value = self.STR_IMAGE_HERE;
++                                img.setAttribute('src', self.get('blankimage'));
++                                self.currentElement[0].setAttribute('src', self.get('blankimage'));
++                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_height').value = img.height;
++                                YAHOO.util.Dom.get(self.get('id') + '_insertimage_width').value = img.width;
++                            };
++                            var id = this.get('id');
++                            window.setTimeout(function() {
++                                YAHOO.util.Dom.get(id + '_insertimage_height').value = img.height;
++                                YAHOO.util.Dom.get(id + '_insertimage_width').value = img.width;
++                                if (self.currentElement && self.currentElement[0]) {
++                                    if (!self.currentElement[0]._height) {
++                                        self.currentElement[0]._height = img.height;
++                                    }
++                                    if (!self.currentElement[0]._width) {
++                                        self.currentElement[0]._width = img.width;
++                                    }
++                                }
++                                //Removed moveWindow call so the window doesn't jump
++                                //self.moveWindow();
++                            }, 800); //Bumped the timeout up to account for larger images..
++
++                            if (url.value != this.STR_IMAGE_HERE) {
++                                img.src = url.value;
++                            }
++                        }
++                    }
++                    }, this, true);
++
++
++
++                this._windows.insertimage = {};
++                this._windows.insertimage.body = body;
++                //body.style.display = 'none';
++                this.get('panel').editor_form.appendChild(body);
++                this.fireEvent('windowInsertImageRender', { type: 'windowInsertImageRender', panel: this.get('panel'), body: body, toolbar: tbar });
++                return body;
++        },
++        /**
++        * @private
++        * @method _handleInsertImageClick
++        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
++        */
++        _handleInsertImageClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('insertimage')) {
++                    return false;
++                }
++            }
++            this.on('afterExecCommand', function() {
++                var el = this.currentElement[0],
++                    body = null,
++                    link = '',
++                    target = '',
++                    tbar = null,
++                    title = '',
++                    src = '',
++                    align = '',
++                    height = 75,
++                    width = 75,
++                    padding = 0,
++                    oheight = 0,
++                    owidth = 0,
++                    blankimage = false,
++                    win = new YAHOO.widget.EditorWindow('insertimage', {
++                        width: '415px'
++                    });
++
++                if (!el) {
++                    el = this._getSelectedElement();
++                }
++                if (el) {
++                    win.el = el;
++                    if (el.getAttribute('src')) {
++                        src = el.getAttribute('src', 2);
++                        if (src.indexOf(this.get('blankimage')) != -1) {
++                            src = this.STR_IMAGE_HERE;
++                            blankimage = true;
++                        }
++                    }
++                    if (el.getAttribute('alt', 2)) {
++                        title = el.getAttribute('alt', 2);
++                    }
++                    if (el.getAttribute('title', 2)) {
++                        title = el.getAttribute('title', 2);
++                    }
++
++                    if (el.parentNode && this._isElement(el.parentNode, 'a')) {
++                        link = el.parentNode.getAttribute('href', 2);
++                        if (el.parentNode.getAttribute('target') !== null) {
++                            target = el.parentNode.getAttribute('target');
++                        }
++                    }
++                    height = parseInt(el.height, 10);
++                    width = parseInt(el.width, 10);
++                    if (el.style.height) {
++                        height = parseInt(el.style.height, 10);
++                    }
++                    if (el.style.width) {
++                        width = parseInt(el.style.width, 10);
++                    }
++                    if (el.style.margin) {
++                        padding = parseInt(el.style.margin, 10);
++                    }
++                    if (!blankimage) {
++                        if (!el._height) {
++                            el._height = height;
++                        }
++                        if (!el._width) {
++                            el._width = width;
++                        }
++                        oheight = el._height;
++                        owidth = el._width;
++                    }
++                }
++                if (this._windows.insertimage && this._windows.insertimage.body) {
++                    body = this._windows.insertimage.body;
++                    this._defaultImageToolbar.resetAllButtons();
++                } else {
++                    body = this._renderInsertImageWindow();
++                }
++
++                tbar = this._defaultImageToolbar;
++                tbar.editor_el = el;
++                
++
++                var bsize = '0',
++                    btype = 'solid';
++
++                if (el.style.borderLeftWidth) {
++                    bsize = parseInt(el.style.borderLeftWidth, 10);
++                }
++                if (el.style.borderLeftStyle) {
++                    btype = el.style.borderLeftStyle;
++                }
++                var bs_button = tbar.getButtonByValue('bordersize'),
++                    bSizeStr = ((parseInt(bsize, 10) > 0) ? '' : this.STR_NONE);
++                bs_button.set('label', '<span class="yui-toolbar-bordersize-' + bsize + '">' + bSizeStr + '</span>');
++                this._updateMenuChecked('bordersize', bsize, tbar);
++
++                var bt_button = tbar.getButtonByValue('bordertype');
++                bt_button.set('label', '<span class="yui-toolbar-bordertype-' + btype + '">asdfa</span>');
++                this._updateMenuChecked('bordertype', btype, tbar);
++                if (parseInt(bsize, 10) > 0) {
++                    tbar.enableButton(bt_button);
++                    tbar.enableButton(bs_button);
++                    tbar.enableButton('bordercolor');
++                }
++
++                if ((el.align == 'right') || (el.align == 'left')) {
++                    tbar.selectButton(el.align);
++                } else if (el.style.display == 'block') {
++                    tbar.selectButton('block');
++                } else {
++                    tbar.selectButton('inline');
++                }
++                if (parseInt(el.style.marginLeft, 10) > 0) {
++                    tbar.getButtonByValue('padding').set('label', ''+parseInt(el.style.marginLeft, 10));
++                }
++                if (el.style.borderSize) {
++                    tbar.selectButton('bordersize');
++                    tbar.selectButton(parseInt(el.style.borderSize, 10));
++                }
++                tbar.getButtonByValue('padding').set('label', ''+padding);
++
++
++
++                win.setHeader(this.STR_IMAGE_PROP_TITLE);
++                win.setBody(body);
++                //Adobe AIR Code
++                if ((this.browser.webkit && !this.browser.webkit3 || this.browser.air) || this.browser.opera) {                
++                    win.setFooter(this.STR_IMAGE_COPY);
++                }
++                this.openWindow(win);
++                Dom.get(this.get('id') + '_insertimage_url').value = src;
++                Dom.get(this.get('id') + '_insertimage_title').value = title;
++                Dom.get(this.get('id') + '_insertimage_link').value = link;
++                Dom.get(this.get('id') + '_insertimage_target').checked = ((target) ? true : false);
++                Dom.get(this.get('id') + '_insertimage_width').value = width;
++                Dom.get(this.get('id') + '_insertimage_height').value = height;
++
++
++                if (((height != oheight) || (width != owidth)) && (!blankimage)) {
++                    var s = document.createElement('span');
++                    s.className = 'info';
++                    s.innerHTML = this.STR_IMAGE_ORIG_SIZE + ': ('+ owidth +' x ' + oheight + ')';
++                    if (Dom.get(this.get('id') + '_insertimage_height').nextSibling) {
++                        var old = Dom.get(this.get('id') + '_insertimage_height').nextSibling;
++                        old.parentNode.removeChild(old);
++                    }
++                    Dom.get(this.get('id') + '_insertimage_height').parentNode.appendChild(s);
++                }
++
++                this.toolbar.selectButton('insertimage');
++                var id = this.get('id');
++                window.setTimeout(function() {
++                    try {
++                        YAHOO.util.Dom.get(id + '_insertimage_url').focus();
++                        if (blankimage) {
++                            YAHOO.util.Dom.get(id + '_insertimage_url').select();
++                        }
++                    } catch (e) {}
++                }, 50);
++
++            });
++        },
++        /**
++        * @private
++        * @method _handleInsertImageWindowClose
++        * @description Handles the closing of the Image Properties Window.
++        */
++        _handleInsertImageWindowClose: function() {
++            var url = Dom.get(this.get('id') + '_insertimage_url'),
++                title = Dom.get(this.get('id') + '_insertimage_title'),
++                link = Dom.get(this.get('id') + '_insertimage_link'),
++                target = Dom.get(this.get('id') + '_insertimage_target'),
++                el = arguments[0].win.el;
++
++            if (url && url.value && (url.value != this.STR_IMAGE_HERE)) {
++                el.setAttribute('src', url.value);
++                el.setAttribute('title', title.value);
++                el.setAttribute('alt', title.value);
++                var par = el.parentNode;
++                if (link.value) {
++                    var urlValue = link.value;
++                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                            //Found an @ sign, prefix with mailto:
++                            urlValue = 'mailto:' + urlValue;
++                        } else {
++                            // :// not found adding
++                            urlValue = 'http:/'+'/' + urlValue;
++                        }
++                    }
++                    if (par && this._isElement(par, 'a')) {
++                        par.setAttribute('href', urlValue);
++                        if (target.checked) {
++                            par.setAttribute('target', target.value);
++                        } else {
++                            par.setAttribute('target', '');
++                        }
++                    } else {
++                        var _a = this._getDoc().createElement('a');
++                        _a.setAttribute('href', urlValue);
++                        if (target.checked) {
++                            _a.setAttribute('target', target.value);
++                        } else {
++                            _a.setAttribute('target', '');
++                        }
++                        el.parentNode.replaceChild(_a, el);
++                        _a.appendChild(el);
++                    }
++                } else {
++                    if (par && this._isElement(par, 'a')) {
++                        par.parentNode.replaceChild(el, par);
++                    }
++                }
++            } else {
++                //No url/src given, remove the node from the document
++                el.parentNode.removeChild(el);
++            }
++            Dom.get(this.get('id') + '_insertimage_url').value = '';
++            Dom.get(this.get('id') + '_insertimage_title').value = '';
++            Dom.get(this.get('id') + '_insertimage_link').value = '';
++            Dom.get(this.get('id') + '_insertimage_target').checked = false;
++            Dom.get(this.get('id') + '_insertimage_width').value = 0;
++            Dom.get(this.get('id') + '_insertimage_height').value = 0;
++            this._defaultImageToolbar.resetAllButtons();
++            this.currentElement = [];
++            this.nodeChange();
++        },
++        /**
++        * @property EDITOR_PANEL_ID
++        * @description HTML id to give the properties window in the DOM.
++        * @type String
++        */
++        EDITOR_PANEL_ID: '-panel',
++        /**
++        * @private
++        * @method _renderPanel
++        * @description Renders the panel used for Editor Windows to the document so we can start using it..
++        * @return {<a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>}
++        */
++        _renderPanel: function() {
++            var panelEl = document.createElement('div');
++            Dom.addClass(panelEl, 'yui-editor-panel');
++            panelEl.id = this.get('id') + this.EDITOR_PANEL_ID;
++            panelEl.style.position = 'absolute';
++            panelEl.style.top = '-9999px';
++            panelEl.style.left = '-9999px';
++            document.body.appendChild(panelEl);
++            this.get('element_cont').insertBefore(panelEl, this.get('element_cont').get('firstChild'));
++
++                
++
++            var panel = new YAHOO.widget.Overlay(this.get('id') + this.EDITOR_PANEL_ID, {
++                    width: '300px',
++                    iframe: true,
++                    visible: false,
++                    underlay: 'none',
++                    draggable: false,
++                    close: false
++                });
++            this.set('panel', panel);
++
++            panel.setBody('---');
++            panel.setHeader(' ');
++            panel.setFooter(' ');
++
++
++            var body = document.createElement('div');
++            body.className = this.CLASS_PREFIX + '-body-cont';
++            for (var b in this.browser) {
++                if (this.browser[b]) {
++                    Dom.addClass(body, b);
++                    break;
++                }
++            }
++            Dom.addClass(body, ((YAHOO.widget.Button && (this._defaultToolbar.buttonType == 'advanced')) ? 'good-button' : 'no-button'));
++
++            var _note = document.createElement('h3');
++            _note.className = 'yui-editor-skipheader';
++            _note.innerHTML = this.STR_CLOSE_WINDOW_NOTE;
++            body.appendChild(_note);
++            var form = document.createElement('fieldset');
++            panel.editor_form = form;
++
++            body.appendChild(form);
++            var _close = document.createElement('span');
++            _close.innerHTML = 'X';
++            _close.title = this.STR_CLOSE_WINDOW;
++            _close.className = 'close';
++            
++            Event.on(_close, 'click', this.closeWindow, this, true);
++
++            var _knob = document.createElement('span');
++            _knob.innerHTML = '^';
++            _knob.className = 'knob';
++            panel.editor_knob = _knob;
++
++            var _header = document.createElement('h3');
++            panel.editor_header = _header;
++            _header.innerHTML = '<span></span>';
++
++            panel.setHeader(' '); //Clear the current header
++            panel.appendToHeader(_header);
++            _header.appendChild(_close);
++            _header.appendChild(_knob);
++            panel.setBody(' '); //Clear the current body
++            panel.setFooter(' '); //Clear the current footer
++            panel.appendToBody(body); //Append the new DOM node to it
++
++            Event.on(panel.element, 'click', function(ev) {
++                Event.stopPropagation(ev);
++            });
++
++            var fireShowEvent = function() {
++                panel.bringToTop();
++                YAHOO.util.Dom.setStyle(this.element, 'display', 'block');
++                this._handleWindowInputs(false);
++            };
++            panel.showEvent.subscribe(fireShowEvent, this, true);
++            panel.hideEvent.subscribe(function() {
++                this._handleWindowInputs(true);
++            }, this, true);
++            panel.renderEvent.subscribe(function() {
++                this._renderInsertImageWindow();
++                this._renderCreateLinkWindow();
++                this.fireEvent('windowRender', { type: 'windowRender', panel: panel });
++                this._handleWindowInputs(true);
++            }, this, true);
++
++            if (this.DOMReady) {
++                this.get('panel').render();
++            } else {
++                Event.onDOMReady(function() {
++                    this.get('panel').render();
++                }, this, true);
++            }
++            return this.get('panel');
++        },
++        /**
++        * @method _handleWindowInputs
++        * @param {Boolean} disable The state to set all inputs in all Editor windows to. Defaults to: false.
++        * @description Disables/Enables all fields inside Editor windows. Used in show/hide events to keep window fields from submitting when the parent form is submitted.
++        */
++        _handleWindowInputs: function(disable) {
++            if (!Lang.isBoolean(disable)) {
++                disable = false;
++            }
++            var inputs = this.get('panel').element.getElementsByTagName('input');
++            for (var i = 0; i < inputs.length; i++) {
++                try {
++                    inputs[i].disabled = disable;
++                } catch (e) {}
++            }
++        },
++        /**
++        * @method openWindow
++        * @param {<a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>} win A <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a> instance
++        * @description Opens a new "window/panel"
++        */
++        openWindow: function(win) {
++            
++            var self = this;
++            window.setTimeout(function() {
++                self.toolbar.set('disabled', true); //Disable the toolbar when an editor window is open..
++            }, 10);
++            Event.on(document, 'keydown', this._closeWindow, this, true);
++            
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            
++            var xy = Dom.getXY(this.currentElement[0]),
++            elXY = Dom.getXY(this.get('iframe').get('element')),
++            panel = this.get('panel'),
++            newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
++            wWidth = (parseInt(win.attrs.width, 10) / 2),
++            align = 'center',
++            body = null;
++
++            this.fireEvent('beforeOpenWindow', { type: 'beforeOpenWindow', win: win, panel: panel });
++
++            var form = panel.editor_form;
++            
++            var wins = this._windows;
++            for (var b in wins) {
++                if (Lang.hasOwnProperty(wins, b)) {
++                    if (wins[b] && wins[b].body) {
++                        if (b == win.name) {
++                            Dom.setStyle(wins[b].body, 'display', 'block');
++                        } else {
++                            Dom.setStyle(wins[b].body, 'display', 'none');
++                        }
++                    }
++                }
++            }
++            
++            if (this._windows[win.name].body) {
++                Dom.setStyle(this._windows[win.name].body, 'display', 'block');
++                form.appendChild(this._windows[win.name].body);
++            } else {
++                if (Lang.isObject(win.body)) { //Assume it's a reference
++                    form.appendChild(win.body);
++                } else { //Assume it's a string
++                    var _tmp = document.createElement('div');
++                    _tmp.innerHTML = win.body;
++                    form.appendChild(_tmp);
++                }
++            }
++            panel.editor_header.firstChild.innerHTML = win.header;
++            if (win.footer !== null) {
++                panel.setFooter(win.footer);
++            }
++            panel.cfg.setProperty('width', win.attrs.width);
++
++            this.currentWindow = win;
++            this.moveWindow(true);
++            panel.show();
++            this.fireEvent('afterOpenWindow', { type: 'afterOpenWindow', win: win, panel: panel });
++        },
++        /**
++        * @method moveWindow
++        * @param {Boolean} force Boolean to tell it to move but not use any animation (Usually done the first time the window is loaded.)
++        * @description Realign the window with the currentElement and reposition the knob above the panel.
++        */
++        moveWindow: function(force) {
++            if (!this.currentWindow) {
++                return false;
++            }
++            var win = this.currentWindow,
++                xy = Dom.getXY(this.currentElement[0]),
++                elXY = Dom.getXY(this.get('iframe').get('element')),
++                panel = this.get('panel'),
++                //newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],
++                newXY = [(xy[0] + elXY[0]), (xy[1] + elXY[1])],
++                wWidth = (parseInt(win.attrs.width, 10) / 2),
++                align = 'center',
++                orgXY = panel.cfg.getProperty('xy') || [0,0],
++                _knob = panel.editor_knob,
++                xDiff = 0,
++                yDiff = 0,
++                anim = false;
++
++
++            newXY[0] = ((newXY[0] - wWidth) + 20);
++            //Account for the Scroll bars in a scrolled editor window.
++            newXY[0] = newXY[0] - Dom.getDocumentScrollLeft(this._getDoc());
++            newXY[1] = newXY[1] - Dom.getDocumentScrollTop(this._getDoc());
++            
++            if (this._isElement(this.currentElement[0], 'img')) {
++                if (this.currentElement[0].src.indexOf(this.get('blankimage')) != -1) {
++                    newXY[0] = (newXY[0] + (75 / 2)); //Placeholder size
++                    newXY[1] = (newXY[1] + 75); //Placeholder sizea
++                } else {
++                    var w = parseInt(this.currentElement[0].width, 10);
++                    var h = parseInt(this.currentElement[0].height, 10);
++                    newXY[0] = (newXY[0] + (w / 2));
++                    newXY[1] = (newXY[1] + h);
++                }
++                newXY[1] = newXY[1] + 15;
++            } else {
++                var fs = Dom.getStyle(this.currentElement[0], 'fontSize');
++                if (fs && fs.indexOf && fs.indexOf('px') != -1) {
++                    newXY[1] = newXY[1] + parseInt(Dom.getStyle(this.currentElement[0], 'fontSize'), 10) + 5;
++                } else {
++                    newXY[1] = newXY[1] + 20;
++                }
++            }
++            if (newXY[0] < elXY[0]) {
++                newXY[0] = elXY[0] + 5;
++                align = 'left';
++            }
++
++            if ((newXY[0] + (wWidth * 2)) > (elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10))) {
++                newXY[0] = ((elXY[0] + parseInt(this.get('iframe').get('element').clientWidth, 10)) - (wWidth * 2) - 5);
++                align = 'right';
++            }
++            
++            try {
++                xDiff = (newXY[0] - orgXY[0]);
++                yDiff = (newXY[1] - orgXY[1]);
++            } catch (e) {}
++
++
++            var iTop = elXY[1] + parseInt(this.get('height'), 10);
++            var iLeft = elXY[0] + parseInt(this.get('width'), 10);
++            if (newXY[1] > iTop) {
++                newXY[1] = iTop;
++            }
++            if (newXY[0] > iLeft) {
++                newXY[0] = (iLeft / 2);
++            }
++            
++            //Convert negative numbers to positive so we can get the difference in distance
++            xDiff = ((xDiff < 0) ? (xDiff * -1) : xDiff);
++            yDiff = ((yDiff < 0) ? (yDiff * -1) : yDiff);
++
++            if (((xDiff > 10) || (yDiff > 10)) || force) { //Only move the window if it's supposed to move more than 10px or force was passed (new window)
++                var _knobLeft = 0,
++                    elW = 0;
++
++                if (this.currentElement[0].width) {
++                    elW = (parseInt(this.currentElement[0].width, 10) / 2);
++                }
++
++                var leftOffset = xy[0] + elXY[0] + elW;
++                _knobLeft = leftOffset - newXY[0];
++                //Check to see if the knob will go off either side & reposition it
++                if (_knobLeft > (parseInt(win.attrs.width, 10) - 1)) {
++                    _knobLeft = ((parseInt(win.attrs.width, 10) - 30) - 1);
++                } else if (_knobLeft < 40) {
++                    _knobLeft = 1;
++                }
++                if (isNaN(_knobLeft)) {
++                    _knobLeft = 1;
++                }
++                if (force) {
++                    if (_knob) {
++                        _knob.style.left = _knobLeft + 'px';
++                    }
++                    //Removed Animation from a forced move..
++                    panel.cfg.setProperty('xy', newXY);
++                } else {
++                    if (this.get('animate')) {
++                        anim = new YAHOO.util.Anim(panel.element, {}, 0.5, YAHOO.util.Easing.easeOut);
++                        anim.attributes = {
++                            top: {
++                                to: newXY[1]
++                            },
++                            left: {
++                                to: newXY[0]
++                            }
++                        };
++                        anim.onComplete.subscribe(function() {
++                            panel.cfg.setProperty('xy', newXY);
++                        });
++                        //We have to animate the iframe shim at the same time as the panel or we get scrollbar bleed ..
++                        var iframeAnim = new YAHOO.util.Anim(panel.iframe, anim.attributes, 0.5, YAHOO.util.Easing.easeOut);
++
++                        var _knobAnim = new YAHOO.util.Anim(_knob, {
++                            left: {
++                                to: _knobLeft
++                            }
++                        }, 0.6, YAHOO.util.Easing.easeOut);
++                        anim.animate();
++                        iframeAnim.animate();
++                        _knobAnim.animate();
++                    } else {
++                        _knob.style.left = _knobLeft + 'px';
++                        panel.cfg.setProperty('xy', newXY);
++                    }
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _closeWindow
++        * @description Close the currently open EditorWindow with the Escape key.
++        * @param {Event} ev The keypress Event that we are trapping
++        */
++        _closeWindow: function(ev) {
++            //if ((ev.charCode == 87) && ev.shiftKey && ev.ctrlKey) {
++            if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {            
++                if (this.currentWindow) {
++                    this.closeWindow();
++                }
++            }
++        },
++        /**
++        * @method closeWindow
++        * @description Close the currently open EditorWindow.
++        */
++        closeWindow: function(keepOpen) {
++            this.fireEvent('window' + this.currentWindow.name + 'Close', { type: 'window' + this.currentWindow.name + 'Close', win: this.currentWindow, el: this.currentElement[0] });
++            this.fireEvent('closeWindow', { type: 'closeWindow', win: this.currentWindow });
++            this.currentWindow = null;
++            this.get('panel').hide();
++            this.get('panel').cfg.setProperty('xy', [-900,-900]);
++            this.get('panel').syncIframe(); //Needed to move the iframe with the hidden panel
++            this.unsubscribeAll('afterExecCommand');
++            this.toolbar.set('disabled', false); //enable the toolbar now that the window is closed
++            this.toolbar.resetAllButtons();
++            this.focus();
++            Event.removeListener(document, 'keydown', this._closeWindow);
++        },
++
++        /* {{{  Command Overrides - These commands are only over written when we are using the advanced version */
++        
++        /**
++        * @method cmd_undo
++        * @description Pulls an item from the Undo stack and updates the Editor
++        * @param value Value passed from the execCommand method
++        */
++        cmd_undo: function(value) {
++            if (this._hasUndoLevel()) {
++                var c_html = this.getEditorHTML(), html;
++                if (!this._undoLevel) {
++                    this._undoLevel = this._undoCache.length;
++                }
++                this._undoLevel = (this._undoLevel - 1);
++                if (this._undoCache[this._undoLevel]) {
++                    html = this._getUndo(this._undoLevel);
++                    if (html != c_html) {
++                        this.setEditorHTML(html);
++                    } else {
++                        this._undoLevel = (this._undoLevel - 1);
++                        html = this._getUndo(this._undoLevel);
++                        if (html != c_html) {
++                            this.setEditorHTML(html);
++                        }
++                    }
++                } else {
++                    this._undoLevel = 0;
++                    this.toolbar.disableButton('undo');
++                }
++            }
++            return [false];
++        },
++
++        /**
++        * @method cmd_redo
++        * @description Pulls an item from the Undo stack and updates the Editor
++        * @param value Value passed from the execCommand method
++        */
++        cmd_redo: function(value) {
++            this._undoLevel = this._undoLevel + 1;
++            if (this._undoLevel >= this._undoCache.length) {
++                this._undoLevel = this._undoCache.length;
++            }
++            if (this._undoCache[this._undoLevel]) {
++                var html = this._getUndo(this._undoLevel);
++                this.setEditorHTML(html);
++            } else {
++                this.toolbar.disableButton('redo');
++            }
++            return [false];
++        },       
++        
++        /**
++        * @method cmd_heading
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('heading') is used.
++        */
++        cmd_heading: function(value) {
++            var exec = true,
++                el = null,
++                action = 'heading',
++                _sel = this._getSelection(),
++                _selEl = this._getSelectedElement();
++
++            if (_selEl) {
++                _sel = _selEl;
++            }
++            
++            if (this.browser.ie) {
++                action = 'formatblock';
++            }
++            if (value == this.STR_NONE) {
++                if ((_sel && _sel.tagName && (_sel.tagName.toLowerCase().substring(0,1) == 'h')) || (_sel && _sel.parentNode && _sel.parentNode.tagName && (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h'))) {
++                    if (_sel.parentNode.tagName.toLowerCase().substring(0,1) == 'h') {
++                        _sel = _sel.parentNode;
++                    }
++                    if (this._isElement(_sel, 'html')) {
++                        return [false];
++                    }
++                    el = this._swapEl(_selEl, 'span', function(el) {
++                        el.className = 'yui-non';
++                    });
++                    this._selectNode(el);
++                    this.currentElement[0] = el;
++                }
++                exec = false;
++            } else {
++                if (this._isElement(_selEl, 'h1') || this._isElement(_selEl, 'h2') || this._isElement(_selEl, 'h3') || this._isElement(_selEl, 'h4') || this._isElement(_selEl, 'h5') || this._isElement(_selEl, 'h6')) {
++                    el = this._swapEl(_selEl, value);
++                    this._selectNode(el);
++                    this.currentElement[0] = el;
++                } else {
++                    this._createCurrentElement(value);
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            }
++            return [exec, action];
++        },
++        /**
++        * @method cmd_hiddenelements
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('hiddenelements') is used.
++        */
++        cmd_hiddenelements: function(value) {
++            if (this._showingHiddenElements) {
++                //Don't auto highlight the hidden button
++                this._lastButton = null;
++                this._showingHiddenElements = false;
++                this.toolbar.deselectButton('hiddenelements');
++                Dom.removeClass(this._getDoc().body, this.CLASS_HIDDEN);
++            } else {
++                this._showingHiddenElements = true;
++                Dom.addClass(this._getDoc().body, this.CLASS_HIDDEN);
++                this.toolbar.selectButton('hiddenelements');
++            }
++            return [false];
++        },
++        /**
++        * @method cmd_removeformat
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('removeformat') is used.
++        */
++        cmd_removeformat: function(value) {
++            var exec = true;
++            /*
++            * @knownissue Remove Format issue
++            * @browser Safari 2.x
++            * @description There is an issue here with Safari, that it may not always remove the format of the item that is selected.
++            * Due to the way that Safari 2.x handles ranges, it is very difficult to determine what the selection holds.
++            * So here we are making the best possible guess and acting on it.
++            */
++            if (this.browser.webkit && !this._getDoc().queryCommandEnabled('removeformat')) {
++                var _txt = this._getSelection()+'';
++                this._createCurrentElement('span');
++                this.currentElement[0].className = 'yui-non';
++                this.currentElement[0].innerHTML = _txt;
++                for (var i = 1; i < this.currentElement.length; i++) {
++                    this.currentElement[i].parentNode.removeChild(this.currentElement[i]);
++                }
++                
++                exec = false;
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_script
++        * @param action action passed from the execCommand method
++        * @param value Value passed from the execCommand method
++        * @description This is a combined execCommand override method. It is called from the cmd_superscript and cmd_subscript methods.
++        */
++        cmd_script: function(action, value) {
++            var exec = true, tag = action.toLowerCase().substring(0, 3),
++                _span = null, _selEl = this._getSelectedElement();
++
++            if (this.browser.webkit) {
++                if (this._isElement(_selEl, tag)) {
++                    _span = this._swapEl(this.currentElement[0], 'span', function(el) {
++                        el.className = 'yui-non';
++                    });
++                    this._selectNode(_span);
++                } else {
++                    this._createCurrentElement(tag);
++                    var _sub = this._swapEl(this.currentElement[0], tag);
++                    this._selectNode(_sub);
++                    this.currentElement[0] = _sub;
++                }
++                exec = false;
++            }
++            return exec;
++        },
++        /**
++        * @method cmd_superscript
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('superscript') is used.
++        */
++        cmd_superscript: function(value) {
++            return [this.cmd_script('superscript', value)];
++        },
++        /**
++        * @method cmd_subscript
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('subscript') is used.
++        */
++        cmd_subscript: function(value) {
++            return [this.cmd_script('subscript', value)];
++        },
++        /**
++        * @method cmd_indent
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('indent') is used.
++        */
++        cmd_indent: function(value) {
++            var exec = true, selEl = this._getSelectedElement(), _bq = null;
++
++            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
++            //if (this.browser.webkit || this.browser.ie) {
++            if (this.browser.ie) {
++                if (this._isElement(selEl, 'blockquote')) {
++                    _bq = this._getDoc().createElement('blockquote');
++                    _bq.innerHTML = selEl.innerHTML;
++                    selEl.innerHTML = '';
++                    selEl.appendChild(_bq);
++                    this._selectNode(_bq);
++                } else {
++                    _bq = this._getDoc().createElement('blockquote');
++                    var html = this._getRange().htmlText;
++                    _bq.innerHTML = html;
++                    this._createCurrentElement('blockquote');
++                    /*
++                    for (var i = 0; i < this.currentElement.length; i++) {
++                        _bq = this._getDoc().createElement('blockquote');
++                        _bq.innerHTML = this.currentElement[i].innerHTML;
++                        this.currentElement[i].parentNode.replaceChild(_bq, this.currentElement[i]);
++                        this.currentElement[i] = _bq;
++                    }
++                    */
++                    this.currentElement[0].parentNode.replaceChild(_bq, this.currentElement[0]);
++                    this.currentElement[0] = _bq;
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            } else {
++                value = 'blockquote';
++            }
++            return [exec, 'formatblock', value];
++        },
++        /**
++        * @method cmd_outdent
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('outdent') is used.
++        */
++        cmd_outdent: function(value) {
++            var exec = true, selEl = this._getSelectedElement(), _bq = null, _span = null;
++            //if (this.browser.webkit || this.browser.ie || this.browser.gecko) {
++            if (this.browser.webkit || this.browser.ie) {
++            //if (this.browser.ie) {
++                selEl = this._getSelectedElement();
++                if (this._isElement(selEl, 'blockquote')) {
++                    var par = selEl.parentNode;
++                    if (this._isElement(selEl.parentNode, 'blockquote')) {
++                        par.innerHTML = selEl.innerHTML;
++                        this._selectNode(par);
++                    } else {
++                        _span = this._getDoc().createElement('span');
++                        _span.innerHTML = selEl.innerHTML;
++                        YAHOO.util.Dom.addClass(_span, 'yui-non');
++                        par.replaceChild(_span, selEl);
++                        this._selectNode(_span);
++                    }
++                } else {
++                }
++                exec = false;
++            } else {
++                value = false;
++            }
++            return [exec, 'outdent', value];
++        },
++        /**
++        * @method cmd_justify
++        * @param dir The direction to justify
++        * @description This is a factory method for the justify family of commands.
++        */
++        cmd_justify: function(dir) {
++            if (this.browser.ie) {
++                if (this._hasSelection()) {
++                    this._createCurrentElement('span');
++                    this._swapEl(this.currentElement[0], 'div', function(el) {
++                        el.style.textAlign = dir;
++                    });
++                    
++                    return [false];
++                }
++            }
++            return [true, 'justify' + dir, ''];
++        },
++        /**
++        * @method cmd_justifycenter
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifycenter') is used.
++        */
++        cmd_justifycenter: function() {
++            return [this.cmd_justify('center')];
++        },
++        /**
++        * @method cmd_justifyleft
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyleft') is used.
++        */
++        cmd_justifyleft: function() {
++            return [this.cmd_justify('left')];
++        },
++        /**
++        * @method cmd_justifyright
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('justifyright') is used.
++        */
++        cmd_justifyright: function() {
++            return [this.cmd_justify('right')];
++        },
++        /* }}}*/        
++        /**
++        * @method toString
++        * @description Returns a string representing the editor.
++        * @return {String}
++        */
++        toString: function() {
++            var str = 'Editor';
++            if (this.get && this.get('element_cont')) {
++                str = 'Editor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
++            }
++            return str;
++        }
++    });
++/**
++* @event beforeOpenWindow
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Event fires before an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterOpenWindow
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Event fires after an Editor Window is opened. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event closeWindow
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @description Event fires after an Editor Window is closed. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowCMDOpen
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is opened.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkOpen event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowCMDClose
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Dynamic event fired when an <a href="YAHOO.widget.EditorWindow.html">EditorWindow</a> is closed.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkClose event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowRender
++* @param {<a href="YAHOO.widget.EditorWindow.html">EditorWindow</a>} win The EditorWindow object
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @description Event fired when the initial Overlay is rendered. Can be used to manipulate the content of the panel.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowInsertImageRender
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @param {HTMLElement} body The HTML element used as the body of the window..
++* @param {Toolbar} toolbar A reference to the toolbar object used inside this window.
++* @description Event fired when the pre render of the Insert Image window has finished.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event windowCreateLinkRender
++* @param {Overlay} panel The Overlay object that is used to create the window.
++* @param {HTMLElement} body The HTML element used as the body of the window..
++* @description Event fired when the pre render of the Create Link window has finished.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++
++    /**
++     * @description Class to hold Window information between uses. We use the same panel to show the windows, so using this will allow you to configure a window before it is shown.
++     * This is what you pass to Editor.openWindow();. These parameters will not take effect until the openWindow() is called in the editor.
++     * @class EditorWindow
++     * @param {String} name The name of the window.
++     * @param {Object} attrs Attributes for the window. Current attributes used are : height and width
++    */
++    YAHOO.widget.EditorWindow = function(name, attrs) {
++        /**
++        * @private
++        * @property name
++        * @description A unique name for the window
++        */
++        this.name = name.replace(' ', '_');
++        /**
++        * @private
++        * @property attrs
++        * @description The window attributes
++        */
++        this.attrs = attrs;
++    };
++
++    YAHOO.widget.EditorWindow.prototype = {
++        /**
++        * @private
++        * @property header
++        * @description Holder for the header of the window, used in Editor.openWindow
++        */
++        header: null,
++        /**
++        * @private
++        * @property body
++        * @description Holder for the body of the window, used in Editor.openWindow
++        */
++        body: null,
++        /**
++        * @private
++        * @property footer
++        * @description Holder for the footer of the window, used in Editor.openWindow
++        */
++        footer: null,
++        /**
++        * @method setHeader
++        * @description Sets the header for the window.
++        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows header.
++        */
++        setHeader: function(str) {
++            this.header = str;
++        },
++        /**
++        * @method setBody
++        * @description Sets the body for the window.
++        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows body.
++        */
++        setBody: function(str) {
++            this.body = str;
++        },
++        /**
++        * @method setFooter
++        * @description Sets the footer for the window.
++        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows footer.
++        */
++        setFooter: function(str) {
++            this.footer = str;
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the EditorWindow.
++        * @return {String}
++        */
++        toString: function() {
++            return 'Editor Window (' + this.name + ')';
++        }
++    };
++})();
++YAHOO.register("editor", YAHOO.widget.Editor, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/editor/simpleeditor-debug.js b/pylons_app/public/js/yui/editor/simpleeditor-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/simpleeditor-debug.js
+@@ -0,0 +1,7493 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    /**
++     * @module editor    
++     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
++     * @class ToolbarButtonAdvanced
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event, container_core, menu, button
++     * 
++     * Provides a toolbar button based on the button and menu widgets.
++     * @constructor
++     * @class ToolbarButtonAdvanced
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    if (YAHOO.widget.Button) {
++        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
++            var _menuItems = this.getMenu().getItems();
++            if (_menuItems.length === 0) {
++                this.getMenu()._onBeforeShow();
++                _menuItems = this.getMenu().getItems();
++            }
++            for (var i = 0; i < _menuItems.length; i++) {
++                _menuItems[i].cfg.setProperty('checked', false);
++                if (_menuItems[i].value == value) {
++                    _menuItems[i].cfg.setProperty('checked', true);
++                }
++            }      
++        };
++    } else {
++        YAHOO.widget.ToolbarButtonAdvanced = function() {};
++    }
++
++
++    /**
++     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
++     * @class ToolbarButton
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event
++     * @extends YAHOO.util.Element
++     * 
++     * 
++     * @constructor
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    YAHOO.widget.ToolbarButton = function(el, attrs) {
++        YAHOO.log('ToolbarButton Initalizing', 'info', 'ToolbarButton');
++        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = (attrs || {});
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++
++        if (!oConfig.attributes.type) {
++            oConfig.attributes.type = 'push';
++        }
++        
++        oConfig.element = document.createElement('span');
++        oConfig.element.setAttribute('unselectable', 'on');
++        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
++        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
++        oConfig.element.firstChild.firstChild.tabIndex = '-1';
++        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
++        oConfig.element.id = oConfig.attributes.id;
++
++        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        buttonType: 'normal',
++        /**
++        * @method _handleMouseOver
++        * @private
++        * @description Adds classes to the button elements on mouseover (hover)
++        */
++        _handleMouseOver: function() {
++            if (!this.get('disabled')) {
++                this.addClass('yui-button-hover');
++                this.addClass('yui-' + this.get('type') + '-button-hover');
++            }
++        },
++        /**
++        * @method _handleMouseOut
++        * @private
++        * @description Removes classes from the button elements on mouseout (hover)
++        */
++        _handleMouseOut: function() {
++            this.removeClass('yui-button-hover');
++            this.removeClass('yui-' + this.get('type') + '-button-hover');
++        },
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        checkValue: function(value) {
++            if (this.get('type') == 'menu') {
++                var opts = this._button.options;
++                for (var i = 0; i < opts.length; i++) {
++                    if (opts[i].value == value) {
++                        opts.selectedIndex = i;
++                    }
++                }
++            }
++        },
++        /** 
++        * @method init
++        * @description The ToolbarButton class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.on('mouseover', this._handleMouseOver, this, true);
++            this.on('mouseout', this._handleMouseOut, this, true);
++            this.on('click', function(ev) {
++                Event.stopEvent(ev);
++                return false;
++            }, this, true);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */        
++        initAttributes: function(attr) {
++            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
++            /**
++            * @attribute value
++            * @description The value of the button
++            * @type String
++            */            
++            this.setAttributeConfig('value', {
++                value: attr.value
++            });
++            /**
++            * @attribute menu
++            * @description The menu attribute, see YAHOO.widget.Button
++            * @type Object
++            */            
++            this.setAttributeConfig('menu', {
++                value: attr.menu || false
++            });
++            /**
++            * @attribute type
++            * @description The type of button to create: push, menu, color, select, spin
++            * @type String
++            */            
++            this.setAttributeConfig('type', {
++                value: attr.type,
++                writeOnce: true,
++                method: function(type) {
++                    var el, opt;
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    switch (type) {
++                        case 'select':
++                        case 'menu':
++                            el = document.createElement('select');
++                            el.id = this.get('id');
++                            var menu = this.get('menu');
++                            for (var i = 0; i < menu.length; i++) {
++                                opt = document.createElement('option');
++                                opt.innerHTML = menu[i].text;
++                                opt.value = menu[i].value;
++                                if (menu[i].checked) {
++                                    opt.selected = true;
++                                }
++                                el.appendChild(opt);
++                            }
++                            this._button.parentNode.replaceChild(el, this._button);
++                            Event.on(el, 'change', this._handleSelect, this, true);
++                            this._button = el;
++                            break;
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Set the button into a disabled state
++            * @type String
++            */            
++            this.setAttributeConfig('disabled', {
++                value: attr.disabled || false,
++                method: function(disabled) {
++                    if (disabled) {
++                        this.addClass('yui-button-disabled');
++                        this.addClass('yui-' + this.get('type') + '-button-disabled');
++                    } else {
++                        this.removeClass('yui-button-disabled');
++                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
++                    }
++                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
++                        this._button.disabled = disabled;
++                    }
++                }
++            });
++
++            /**
++            * @attribute label
++            * @description The text label for the button
++            * @type String
++            */            
++            this.setAttributeConfig('label', {
++                value: attr.label,
++                method: function(label) {
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    if (this.get('type') == 'push') {
++                        this._button.innerHTML = label;
++                    }
++                }
++            });
++
++            /**
++            * @attribute title
++            * @description The title of the button
++            * @type String
++            */            
++            this.setAttributeConfig('title', {
++                value: attr.title
++            });
++
++            /**
++            * @config container
++            * @description The container that the button is rendered to, handled by Toolbar
++            * @type String
++            */            
++            this.setAttributeConfig('container', {
++                value: null,
++                writeOnce: true,
++                method: function(cont) {
++                    this.appendTo(cont);
++                }
++            });
++
++        },
++        /** 
++        * @private
++        * @method _handleSelect
++        * @description The event fired when a change event gets fired on a select element
++        * @param {Event} ev The change event.
++        */        
++        _handleSelect: function(ev) {
++            var tar = Event.getTarget(ev);
++            var value = tar.options[tar.selectedIndex].value;
++            this.fireEvent('change', {type: 'change', value: value });
++        },
++        /** 
++        * @method getMenu
++        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
++        */        
++        getMenu: function() {
++            return this.get('menu');
++        },
++        /** 
++        * @method destroy
++        * @description Destroy the button
++        */        
++        destroy: function() {
++            Event.purgeElement(this.get('element'), true);
++            this.get('element').parentNode.removeChild(this.get('element'));
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }       
++        },
++        /** 
++        * @method fireEvent
++        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
++        */        
++        fireEvent: function(p_sType, p_aArgs) {
++            //  Disabled buttons should not respond to DOM events
++            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
++                Event.stopEvent(p_aArgs);
++                return;
++            }
++        
++            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */        
++        toString: function() {
++            return 'ToolbarButton (' + this.get('id') + ')';
++        }
++        
++    });
++})();
++/**
++ * @module editor
++ * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbarbutton
++ * @optional container_core, dragdrop
++ */
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    
++    var getButton = function(id) {
++        var button = id;
++        if (Lang.isString(id)) {
++            button = this.getButtonById(id);
++        }
++        if (Lang.isNumber(id)) {
++            button = this.getButtonByIndex(id);
++        }
++        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
++            button = this.getButtonByValue(id);
++        }
++        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
++            return button;
++        }
++        return false;
++    };
++
++    /**
++     * Provides a rich toolbar widget based on the button and menu widgets
++     * @constructor
++     * @class Toolbar
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The element to turn into a toolbar.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    YAHOO.widget.Toolbar = function(el, attrs) {
++        YAHOO.log('Toolbar Initalizing', 'info', 'Toolbar');
++        YAHOO.log(arguments.length + ' arguments passed to constructor', 'info', 'Toolbar');
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = {};
++        if (attrs) {
++            Lang.augmentObject(local_attrs, attrs); //Break the config reference
++        }
++        
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++        
++        
++        if (Lang.isString(el) && Dom.get(el)) {
++            oConfig.element = Dom.get(el);
++        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
++            oConfig.element = Dom.get(el);
++        }
++        
++
++        if (!oConfig.element) {
++            YAHOO.log('No element defined, creating toolbar container', 'warn', 'Toolbar');
++            oConfig.element = document.createElement('DIV');
++            oConfig.element.id = Dom.generateId();
++            
++            if (local_attrs.container && Dom.get(local_attrs.container)) {
++                YAHOO.log('Container found in config appending to it (' + Dom.get(local_attrs.container).id + ')', 'info', 'Toolbar');
++                Dom.get(local_attrs.container).appendChild(oConfig.element);
++            }
++        }
++        
++
++        if (!oConfig.element.id) {
++            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
++            YAHOO.log('No element ID defined for toolbar container, creating..', 'warn', 'Toolbar');
++        }
++        YAHOO.log('Initing toolbar with id: ' + oConfig.element.id, 'info', 'Toolbar');
++        
++        var fs = document.createElement('fieldset');
++        var lg = document.createElement('legend');
++        lg.innerHTML = 'Toolbar';
++        fs.appendChild(lg);
++        
++        var cont = document.createElement('DIV');
++        oConfig.attributes.cont = cont;
++        Dom.addClass(cont, 'yui-toolbar-subcont');
++        fs.appendChild(cont);
++        oConfig.element.appendChild(fs);
++
++        oConfig.element.tabIndex = -1;
++
++        
++        oConfig.attributes.element = oConfig.element;
++        oConfig.attributes.id = oConfig.element.id;
++
++        this._configuredButtons = [];
++
++        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++         
++    };
++
++    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
++        /**
++        * @protected
++        * @property _configuredButtons
++        * @type Array
++        */
++        _configuredButtons: null,
++        /**
++        * @method _addMenuClasses
++        * @private
++        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
++        * @param {String} ev The event that fired.
++        * @param {Array} na Array of event information.
++        * @param {Object} o Button config object. 
++        */
++        _addMenuClasses: function(ev, na, o) {
++            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
++            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
++                Dom.addClass(this.element, 'yui-toolbar-select-menu');
++            }
++            var items = this.getItems();
++            for (var i = 0; i < items.length; i++) {
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
++            }
++        },
++        /** 
++        * @property buttonType
++        * @description The default button to use
++        * @type Object
++        */
++        buttonType: YAHOO.widget.ToolbarButton,
++        /** 
++        * @property dd
++        * @description The DragDrop instance associated with the Toolbar
++        * @type Object
++        */
++        dd: null,
++        /** 
++        * @property _colorData
++        * @description Object reference containing colors hex and text values.
++        * @type Object
++        */
++        _colorData: {
++/* {{{ _colorData */
++    '#111111': 'Obsidian',
++    '#2D2D2D': 'Dark Gray',
++    '#434343': 'Shale',
++    '#5B5B5B': 'Flint',
++    '#737373': 'Gray',
++    '#8B8B8B': 'Concrete',
++    '#A2A2A2': 'Gray',
++    '#B9B9B9': 'Titanium',
++    '#000000': 'Black',
++    '#D0D0D0': 'Light Gray',
++    '#E6E6E6': 'Silver',
++    '#FFFFFF': 'White',
++    '#BFBF00': 'Pumpkin',
++    '#FFFF00': 'Yellow',
++    '#FFFF40': 'Banana',
++    '#FFFF80': 'Pale Yellow',
++    '#FFFFBF': 'Butter',
++    '#525330': 'Raw Siena',
++    '#898A49': 'Mildew',
++    '#AEA945': 'Olive',
++    '#7F7F00': 'Paprika',
++    '#C3BE71': 'Earth',
++    '#E0DCAA': 'Khaki',
++    '#FCFAE1': 'Cream',
++    '#60BF00': 'Cactus',
++    '#80FF00': 'Chartreuse',
++    '#A0FF40': 'Green',
++    '#C0FF80': 'Pale Lime',
++    '#DFFFBF': 'Light Mint',
++    '#3B5738': 'Green',
++    '#668F5A': 'Lime Gray',
++    '#7F9757': 'Yellow',
++    '#407F00': 'Clover',
++    '#8A9B55': 'Pistachio',
++    '#B7C296': 'Light Jade',
++    '#E6EBD5': 'Breakwater',
++    '#00BF00': 'Spring Frost',
++    '#00FF80': 'Pastel Green',
++    '#40FFA0': 'Light Emerald',
++    '#80FFC0': 'Sea Foam',
++    '#BFFFDF': 'Sea Mist',
++    '#033D21': 'Dark Forrest',
++    '#438059': 'Moss',
++    '#7FA37C': 'Medium Green',
++    '#007F40': 'Pine',
++    '#8DAE94': 'Yellow Gray Green',
++    '#ACC6B5': 'Aqua Lung',
++    '#DDEBE2': 'Sea Vapor',
++    '#00BFBF': 'Fog',
++    '#00FFFF': 'Cyan',
++    '#40FFFF': 'Turquoise Blue',
++    '#80FFFF': 'Light Aqua',
++    '#BFFFFF': 'Pale Cyan',
++    '#033D3D': 'Dark Teal',
++    '#347D7E': 'Gray Turquoise',
++    '#609A9F': 'Green Blue',
++    '#007F7F': 'Seaweed',
++    '#96BDC4': 'Green Gray',
++    '#B5D1D7': 'Soapstone',
++    '#E2F1F4': 'Light Turquoise',
++    '#0060BF': 'Summer Sky',
++    '#0080FF': 'Sky Blue',
++    '#40A0FF': 'Electric Blue',
++    '#80C0FF': 'Light Azure',
++    '#BFDFFF': 'Ice Blue',
++    '#1B2C48': 'Navy',
++    '#385376': 'Biscay',
++    '#57708F': 'Dusty Blue',
++    '#00407F': 'Sea Blue',
++    '#7792AC': 'Sky Blue Gray',
++    '#A8BED1': 'Morning Sky',
++    '#DEEBF6': 'Vapor',
++    '#0000BF': 'Deep Blue',
++    '#0000FF': 'Blue',
++    '#4040FF': 'Cerulean Blue',
++    '#8080FF': 'Evening Blue',
++    '#BFBFFF': 'Light Blue',
++    '#212143': 'Deep Indigo',
++    '#373E68': 'Sea Blue',
++    '#444F75': 'Night Blue',
++    '#00007F': 'Indigo Blue',
++    '#585E82': 'Dockside',
++    '#8687A4': 'Blue Gray',
++    '#D2D1E1': 'Light Blue Gray',
++    '#6000BF': 'Neon Violet',
++    '#8000FF': 'Blue Violet',
++    '#A040FF': 'Violet Purple',
++    '#C080FF': 'Violet Dusk',
++    '#DFBFFF': 'Pale Lavender',
++    '#302449': 'Cool Shale',
++    '#54466F': 'Dark Indigo',
++    '#655A7F': 'Dark Violet',
++    '#40007F': 'Violet',
++    '#726284': 'Smoky Violet',
++    '#9E8FA9': 'Slate Gray',
++    '#DCD1DF': 'Violet White',
++    '#BF00BF': 'Royal Violet',
++    '#FF00FF': 'Fuchsia',
++    '#FF40FF': 'Magenta',
++    '#FF80FF': 'Orchid',
++    '#FFBFFF': 'Pale Magenta',
++    '#4A234A': 'Dark Purple',
++    '#794A72': 'Medium Purple',
++    '#936386': 'Cool Granite',
++    '#7F007F': 'Purple',
++    '#9D7292': 'Purple Moon',
++    '#C0A0B6': 'Pale Purple',
++    '#ECDAE5': 'Pink Cloud',
++    '#BF005F': 'Hot Pink',
++    '#FF007F': 'Deep Pink',
++    '#FF409F': 'Grape',
++    '#FF80BF': 'Electric Pink',
++    '#FFBFDF': 'Pink',
++    '#451528': 'Purple Red',
++    '#823857': 'Purple Dino',
++    '#A94A76': 'Purple Gray',
++    '#7F003F': 'Rose',
++    '#BC6F95': 'Antique Mauve',
++    '#D8A5BB': 'Cool Marble',
++    '#F7DDE9': 'Pink Granite',
++    '#C00000': 'Apple',
++    '#FF0000': 'Fire Truck',
++    '#FF4040': 'Pale Red',
++    '#FF8080': 'Salmon',
++    '#FFC0C0': 'Warm Pink',
++    '#441415': 'Sepia',
++    '#82393C': 'Rust',
++    '#AA4D4E': 'Brick',
++    '#800000': 'Brick Red',
++    '#BC6E6E': 'Mauve',
++    '#D8A3A4': 'Shrimp Pink',
++    '#F8DDDD': 'Shell Pink',
++    '#BF5F00': 'Dark Orange',
++    '#FF7F00': 'Orange',
++    '#FF9F40': 'Grapefruit',
++    '#FFBF80': 'Canteloupe',
++    '#FFDFBF': 'Wax',
++    '#482C1B': 'Dark Brick',
++    '#855A40': 'Dirt',
++    '#B27C51': 'Tan',
++    '#7F3F00': 'Nutmeg',
++    '#C49B71': 'Mustard',
++    '#E1C4A8': 'Pale Tan',
++    '#FDEEE0': 'Marble'
++/* }}} */
++        },
++        /** 
++        * @property _colorPicker
++        * @description The HTML Element containing the colorPicker
++        * @type HTMLElement
++        */
++        _colorPicker: null,
++        /** 
++        * @property STR_COLLAPSE
++        * @description String for Toolbar Collapse Button
++        * @type String
++        */
++        STR_COLLAPSE: 'Collapse Toolbar',
++        /** 
++        * @property STR_EXPAND
++        * @description String for Toolbar Collapse Button - Expand
++        * @type String
++        */
++        STR_EXPAND: 'Expand Toolbar',
++        /** 
++        * @property STR_SPIN_LABEL
++        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
++        * @type String
++        */
++        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
++        /** 
++        * @property STR_SPIN_UP
++        * @description String for spinbutton up
++        * @type String
++        */
++        STR_SPIN_UP: 'Click to increase the value of this input',
++        /** 
++        * @property STR_SPIN_DOWN
++        * @description String for spinbutton down
++        * @type String
++        */
++        STR_SPIN_DOWN: 'Click to decrease the value of this input',
++        /** 
++        * @property _titlebar
++        * @description Object reference to the titlebar
++        * @type HTMLElement
++        */
++        _titlebar: null,
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: YAHOO.env.ua,
++        /**
++        * @protected
++        * @property _buttonList
++        * @description Internal property list of current buttons in the toolbar
++        * @type Array
++        */
++        _buttonList: null,
++        /**
++        * @protected
++        * @property _buttonGroupList
++        * @description Internal property list of current button groups in the toolbar
++        * @type Array
++        */
++        _buttonGroupList: null,
++        /**
++        * @protected
++        * @property _sep
++        * @description Internal reference to the separator HTML Element for cloning
++        * @type HTMLElement
++        */
++        _sep: null,
++        /**
++        * @protected
++        * @property _sepCount
++        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
++        * @type Number
++        */
++        _sepCount: null,
++        /**
++        * @protected
++        * @property draghandle
++        * @type HTMLElement
++        */
++        _dragHandle: null,
++        /**
++        * @protected
++        * @property _toolbarConfigs
++        * @type Object
++        */
++        _toolbarConfigs: {
++            renderer: true
++        },
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the toolbar container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-toolbar-container',
++        /**
++        * @protected
++        * @property CLASS_DRAGHANDLE
++        * @description Default CSS class to apply to the toolbar's drag handle element
++        * @type String
++        */
++        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
++        /**
++        * @protected
++        * @property CLASS_SEPARATOR
++        * @description Default CSS class to apply to all separators in the toolbar
++        * @type String
++        */
++        CLASS_SEPARATOR: 'yui-toolbar-separator',
++        /**
++        * @protected
++        * @property CLASS_DISABLED
++        * @description Default CSS class to apply when the toolbar is disabled
++        * @type String
++        */
++        CLASS_DISABLED: 'yui-toolbar-disabled',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-toolbar',
++        /** 
++        * @method init
++        * @description The Toolbar class's initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
++            this.addClass(this.CLASS_CONTAINER);
++
++            /**
++            * @attribute buttonType
++            * @description The buttonType to use (advanced or basic)
++            * @type String
++            */
++            this.setAttributeConfig('buttonType', {
++                value: attr.buttonType || 'basic',
++                writeOnce: true,
++                validator: function(type) {
++                    switch (type) {
++                        case 'advanced':
++                        case 'basic':
++                            return true;
++                    }
++                    return false;
++                },
++                method: function(type) {
++                    if (type == 'advanced') {
++                        if (YAHOO.widget.Button) {
++                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
++                        } else {
++                            YAHOO.log('Can not find YAHOO.widget.Button', 'error', 'Toolbar');
++                            this.buttonType = YAHOO.widget.ToolbarButton;
++                        }
++                    } else {
++                        this.buttonType = YAHOO.widget.ToolbarButton;
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute buttons
++            * @description Object specifying the buttons to include in the toolbar
++            * Example:
++            * <code><pre>
++            * {
++            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
++            *   { type: 'separator' },
++            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
++            *       menu: [
++            *           { text: "Left", value: 'alignleft' },
++            *           { text: "Center", value: 'aligncenter' },
++            *           { text: "Right", value: 'alignright' }
++            *       ]
++            *   }
++            * }
++            * </pre></code>
++            * @type Array
++            */
++            
++            this.setAttributeConfig('buttons', {
++                value: [],
++                writeOnce: true,
++                method: function(data) {
++                    var i, button, buttons, len, b;
++                    for (i in data) {
++                        if (Lang.hasOwnProperty(data, i)) {
++                            if (data[i].type == 'separator') {
++                                this.addSeparator();
++                            } else if (data[i].group !== undefined) {
++                                buttons = this.addButtonGroup(data[i]);
++                                if (buttons) {
++                                    len = buttons.length;
++                                    for(b = 0; b < len; b++) {
++                                        if (buttons[b]) {
++                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
++                                        }
++                                    }
++                                }
++                                
++                            } else {
++                                button = this.addButton(data[i]);
++                                if (button) {
++                                    this._configuredButtons[this._configuredButtons.length] = button.id;
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this.get('disabled') === disabled) {
++                        return false;
++                    }
++                    if (disabled) {
++                        this.addClass(this.CLASS_DISABLED);
++                        this.set('draggable', false);
++                        this.disableAllButtons();
++                    } else {
++                        this.removeClass(this.CLASS_DISABLED);
++                        if (this._configs.draggable._initialConfig.value) {
++                            //Draggable by default, set it back
++                            this.set('draggable', true);
++                        }
++                        this.resetAllButtons();
++                    }
++                }
++            });
++
++            /**
++            * @config cont
++            * @description The container for the toolbar.
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('cont', {
++                value: attr.cont,
++                readOnly: true
++            });
++
++
++            /**
++            * @attribute grouplabels
++            * @description Boolean indicating if the toolbar should show the group label's text string.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('grouplabels', {
++                value: ((attr.grouplabels === false) ? false : true),
++                method: function(grouplabels) {
++                    if (grouplabels) {
++                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    } else {
++                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    }
++                }
++            });
++            /**
++            * @attribute titlebar
++            * @description Boolean indicating if the toolbar should have a titlebar. If
++            * passed a string, it will use that as the titlebar text
++            * @default false
++            * @type Boolean or String
++            */
++            this.setAttributeConfig('titlebar', {
++                value: false,
++                method: function(titlebar) {
++                    if (titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                        this._titlebar = document.createElement('DIV');
++                        this._titlebar.tabIndex = '-1';
++                        Event.on(this._titlebar, 'focus', function() {
++                            this._handleFocus();
++                        }, this, true);
++                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
++                        if (Lang.isString(titlebar)) {
++                            var h2 = document.createElement('h2');
++                            h2.tabIndex = '-1';
++                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
++                            this._titlebar.appendChild(h2);
++                            Event.on(h2.firstChild, 'click', function(ev) {
++                                Event.stopEvent(ev);
++                            });
++                            Event.on([h2, h2.firstChild], 'focus', function() {
++                                this._handleFocus();
++                            }, this, true);
++                        }
++                        if (this.get('firstChild')) {
++                            this.insertBefore(this._titlebar, this.get('firstChild'));
++                        } else {
++                            this.appendChild(this._titlebar);
++                        }
++                        if (this.get('collapse')) {
++                            this.set('collapse', true);
++                        }
++                    } else if (this._titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute collapse
++            * @description Boolean indicating if the the titlebar should have a collapse button.
++            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('collapse', {
++                value: false,
++                method: function(collapse) {
++                    if (this._titlebar) {
++                        var collapseEl = null;
++                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                        if (collapse) {
++                            if (el.length > 0) {
++                                //There is already a collapse button
++                                return true;
++                            }
++                            collapseEl = document.createElement('SPAN');
++                            collapseEl.innerHTML = 'X';
++                            collapseEl.title = this.STR_COLLAPSE;
++
++                            Dom.addClass(collapseEl, 'collapse');
++                            this._titlebar.appendChild(collapseEl);
++                            Event.addListener(collapseEl, 'click', function() {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    this.collapse(false); //Expand Toolbar
++                                } else {
++                                    this.collapse(); //Collapse Toolbar
++                                }
++                            }, this, true);
++                        } else {
++                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                            if (collapseEl[0]) {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    //We are closed, reopen the titlebar..
++                                    this.collapse(false); //Expand Toolbar
++                                }
++                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute draggable
++            * @description Boolean indicating if the toolbar should be draggable.  
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('draggable', {
++                value: (attr.draggable || false),
++                method: function(draggable) {
++                    if (draggable && !this.get('titlebar')) {
++                        YAHOO.log('Dragging enabled', 'info', 'Toolbar');
++                        if (!this._dragHandle) {
++                            this._dragHandle = document.createElement('SPAN');
++                            this._dragHandle.innerHTML = '|';
++                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
++                            this._dragHandle.id = this.get('id') + '_draghandle';
++                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
++                            if (this.get('cont').hasChildNodes()) {
++                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
++                            } else {
++                                this.get('cont').appendChild(this._dragHandle);
++                            }
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._dragHandle.id);
++                            
++                        }
++                    } else {
++                        YAHOO.log('Dragging disabled', 'info', 'Toolbar');
++                        if (this._dragHandle) {
++                            this._dragHandle.parentNode.removeChild(this._dragHandle);
++                            this._dragHandle = null;
++                            this.dd = null;
++                        }
++                    }
++                    if (this._titlebar) {
++                        if (draggable) {
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._titlebar);
++                            Dom.addClass(this._titlebar, 'draggable');
++                        } else {
++                            Dom.removeClass(this._titlebar, 'draggable');
++                            if (this.dd) {
++                                this.dd.unreg();
++                                this.dd = null;
++                            }
++                        }
++                    }
++                },
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.DD) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++
++        },
++        /**
++        * @method addButtonGroup
++        * @description Add a new button group to the toolbar. (uses addButton)
++        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
++        */
++        addButtonGroup: function(oGroup) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButtonGroup', arguments];
++                return false;
++            }
++            
++            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
++                this.addClass(this.CLASS_PREFIX + '-grouped');
++            }
++            var div = document.createElement('DIV');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
++            if (oGroup.label) {
++                var label = document.createElement('h3');
++                label.innerHTML = oGroup.label;
++                div.appendChild(label);
++            }
++            if (!this.get('grouplabels')) {
++                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
++            }
++
++            this.get('cont').appendChild(div);
++
++            //For accessibility, let's put all of the group buttons in an Unordered List
++            var ul = document.createElement('ul');
++            div.appendChild(ul);
++
++            if (!this._buttonGroupList) {
++                this._buttonGroupList = {};
++            }
++            
++            this._buttonGroupList[oGroup.group] = ul;
++
++            //An array of the button ids added to this group
++            //This is used for destruction later...
++            var addedButtons = [],
++                button;
++            
++
++            for (var i = 0; i < oGroup.buttons.length; i++) {
++                var li = document.createElement('li');
++                li.className = this.CLASS_PREFIX + '-groupitem';
++                ul.appendChild(li);
++                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
++                    this.addSeparator(li);
++                } else {
++                    oGroup.buttons[i].container = li;
++                    button = this.addButton(oGroup.buttons[i]);
++                    if (button) {
++                        addedButtons[addedButtons.length]  = button.id;
++                    }
++                }
++            }
++            return addedButtons;
++        },
++        /**
++        * @method addButtonToGroup
++        * @description Add a new button to a toolbar group. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {String} group The Group identifier passed into the initial config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButtonToGroup: function(oButton, group, after) {
++            var groupCont = this._buttonGroupList[group],
++                li = document.createElement('li');
++
++            li.className = this.CLASS_PREFIX + '-groupitem';
++            oButton.container = li;
++            this.addButton(oButton, after);
++            groupCont.appendChild(li);
++        },
++        /**
++        * @method addButton
++        * @description Add a new button to the toolbar. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButton: function(oButton, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButton', arguments];
++                return false;
++            }
++            if (!this._buttonList) {
++                this._buttonList = [];
++            }
++            YAHOO.log('Adding button of type: ' + oButton.type, 'info', 'Toolbar');
++            if (!oButton.container) {
++                oButton.container = this.get('cont');
++            }
++
++            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                if (Lang.isArray(oButton.menu)) {
++                    for (var i in oButton.menu) {
++                        if (Lang.hasOwnProperty(oButton.menu, i)) {
++                            var funcObject = {
++                                fn: function(ev, x, oMenu) {
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                },
++                                scope: this
++                            };
++                            oButton.menu[i].onclick = funcObject;
++                        }
++                    }
++                }
++            }
++            var _oButton = {}, skip = false;
++            for (var o in oButton) {
++                if (Lang.hasOwnProperty(oButton, o)) {
++                    if (!this._toolbarConfigs[o]) {
++                        _oButton[o] = oButton[o];
++                    }
++                }
++            }
++            if (oButton.type == 'select') {
++                _oButton.type = 'menu';
++            }
++            if (oButton.type == 'spin') {
++                _oButton.type = 'push';
++            }
++            if (_oButton.type == 'color') {
++                if (YAHOO.widget.Overlay) {
++                    _oButton = this._makeColorButton(_oButton);
++                } else {
++                    skip = true;
++                }
++            }
++            if (_oButton.menu) {
++                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
++                    oButton.menu.showEvent.subscribe(function() {
++                        this._button = _oButton;
++                    });
++                } else {
++                    for (var m = 0; m < _oButton.menu.length; m++) {
++                        if (!_oButton.menu[m].value) {
++                            _oButton.menu[m].value = _oButton.menu[m].text;
++                        }
++                    }
++                    if (this.browser.webkit) {
++                        _oButton.focusmenu = false;
++                    }
++                }
++            }
++            if (skip) {
++                oButton = false;
++            } else {
++                //Add to .get('buttons') manually
++                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
++                
++                var tmp = new this.buttonType(_oButton);
++                tmp.get('element').tabIndex = '-1';
++                tmp.get('element').setAttribute('role', 'button');
++                tmp._selected = true;
++                
++                if (this.get('disabled')) {
++                    //Toolbar is disabled, disable the new button too!
++                    tmp.set('disabled', true);
++                }
++                if (!oButton.id) {
++                    oButton.id = tmp.get('id');
++                }
++                YAHOO.log('Button created (' + oButton.type + ')', 'info', 'Toolbar');
++                
++                if (after) {
++                    var el = tmp.get('element');
++                    var nextSib = null;
++                    if (after.get) {
++                        nextSib = after.get('element').nextSibling;
++                    } else if (after.nextSibling) {
++                        nextSib = after.nextSibling;
++                    }
++                    if (nextSib) {
++                        nextSib.parentNode.insertBefore(el, nextSib);
++                    }
++                }
++                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
++
++                var icon = document.createElement('span');
++                icon.className = this.CLASS_PREFIX + '-icon';
++                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
++                if (tmp._button.tagName.toLowerCase() == 'button') {
++                    tmp.get('element').setAttribute('unselectable', 'on');
++                    //Replace the Button HTML Element with an a href if it exists
++                    var a = document.createElement('a');
++                    a.innerHTML = tmp._button.innerHTML;
++                    a.href = '#';
++                    a.tabIndex = '-1';
++                    Event.on(a, 'click', function(ev) {
++                        Event.stopEvent(ev);
++                    });
++                    tmp._button.parentNode.replaceChild(a, tmp._button);
++                    tmp._button = a;
++                }
++
++                if (oButton.type == 'select') {
++                    if (tmp._button.tagName.toLowerCase() == 'select') {
++                        icon.parentNode.removeChild(icon);
++                        var iel = tmp._button,
++                            parEl = tmp.get('element');
++                        parEl.parentNode.replaceChild(iel, parEl);
++                        //The 'element' value is currently the orphaned element
++                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
++                        //I'm not sure if there is a direct approach to setting this value.
++                        tmp._configs.element.value = iel;
++                    } else {
++                        //Don't put a class on it if it's a real select element
++                        tmp.addClass(this.CLASS_PREFIX + '-select');
++                    }
++                }
++                if (oButton.type == 'spin') {
++                    if (!Lang.isArray(oButton.range)) {
++                        oButton.range = [ 10, 100 ];
++                    }
++                    this._makeSpinButton(tmp, oButton);
++                }
++                tmp.get('element').setAttribute('title', tmp.get('label'));
++                if (oButton.type != 'spin') {
++                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
++                        var showPicker = function(ev) {
++                            var exec = true;
++                            if (ev.keyCode && (ev.keyCode == 9)) {
++                                exec = false;
++                            }
++                            if (exec) {
++                                if (this._colorPicker) {
++                                    this._colorPicker._button = oButton.value;
++                                }
++                                var menuEL = tmp.getMenu().element;
++                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
++                                    tmp.getMenu().show();
++                                } else {
++                                    tmp.getMenu().hide();
++                                }
++                            }
++                            YAHOO.util.Event.stopEvent(ev);
++                        };
++                        tmp.on('mousedown', showPicker, oButton, this);
++                        tmp.on('keydown', showPicker, oButton, this);
++                        
++                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
++                        tmp.on('keypress', this._buttonClick, oButton, this);
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                            this._buttonClick(ev, oButton);
++                        }, oButton, this);
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                    } else {
++                        //Stop the mousedown event so we can trap the selection in the editor!
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('change', function(ev) {
++                            if (!ev.target) {
++                                if (!oButton.menucmd) {
++                                    oButton.menucmd = oButton.value;
++                                }
++                                oButton.value = ev.value;
++                                this._buttonClick(ev, oButton);
++                            }
++                        }, this, true);
++
++                        var self = this;
++                        //Hijack the mousedown event in the menu and make it fire a button click..
++                        tmp.on('appendTo', function() {
++                            var tmp = this;
++                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
++                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
++                                    YAHOO.log('mouseDownEvent', 'warn', 'Toolbar');
++                                    var oMenu = args[1];
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                    tmp._onMenuClick(args[0], tmp);
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                    self._buttonClick.call(self, args[1], oButton);
++                                    tmp._hideMenu();
++                                    return false;
++                                });
++                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
++                                    YAHOO.log('clickEvent', 'warn', 'Toolbar');
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
++                                    YAHOO.log('mouseUpEvent', 'warn', 'Toolbar');
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                            }
++                        });
++                        
++                    }
++                } else {
++                    //Stop the mousedown event so we can trap the selection in the editor!
++                    tmp.on('mousedown', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                }
++                if (this.browser.ie) {
++                    /*
++                    //Add a couple of new events for IE
++                    tmp.DOM_EVENTS.focusin = true;
++                    tmp.DOM_EVENTS.focusout = true;
++                    
++                    //Stop them so we don't loose focus in the Editor
++                    tmp.on('focusin', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    
++                    tmp.on('focusout', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    */
++                }
++                if (this.browser.webkit) {
++                    //This will keep the document from gaining focus and the editor from loosing it..
++                    //Forcefully remove the focus calls in button!
++                    tmp.hasFocus = function() {
++                        return true;
++                    };
++                }
++                this._buttonList[this._buttonList.length] = tmp;
++                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                    if (Lang.isArray(oButton.menu)) {
++                        YAHOO.log('Button type is (' + oButton.type + '), doing extra renderer work.', 'info', 'Toolbar');
++                        var menu = tmp.getMenu();
++                        if (menu && menu.renderEvent) {
++                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
++                            if (oButton.renderer) {
++                                menu.renderEvent.subscribe(oButton.renderer, tmp);
++                            }
++                        }
++                    }
++                }
++            }
++            return oButton;
++        },
++        /**
++        * @method addSeparator
++        * @description Add a new button separator to the toolbar.
++        * @param {HTMLElement} cont Optional HTML element to insert this button into.
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addSeparator: function(cont, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            var sepCont = ((cont) ? cont : this.get('cont'));
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            if (this._sepCount === null) {
++                this._sepCount = 0;
++            }
++            if (!this._sep) {
++                YAHOO.log('Separator does not yet exist, creating', 'info', 'Toolbar');
++                this._sep = document.createElement('SPAN');
++                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
++                this._sep.innerHTML = '|';
++            }
++            YAHOO.log('Separator does exist, cloning', 'info', 'Toolbar');
++            var _sep = this._sep.cloneNode(true);
++            this._sepCount++;
++            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
++            if (after) {
++                var nextSib = null;
++                if (after.get) {
++                    nextSib = after.get('element').nextSibling;
++                } else if (after.nextSibling) {
++                    nextSib = after.nextSibling;
++                } else {
++                    nextSib = after;
++                }
++                if (nextSib) {
++                    if (nextSib == after) {
++                        nextSib.parentNode.appendChild(_sep);
++                    } else {
++                        nextSib.parentNode.insertBefore(_sep, nextSib);
++                    }
++                }
++            } else {
++                sepCont.appendChild(_sep);
++            }
++            return _sep;
++        },
++        /**
++        * @method _createColorPicker
++        * @private
++        * @description Creates the core DOM reference to the color picker menu item.
++        * @param {String} id the id of the toolbar to prefix this DOM container with.
++        */
++        _createColorPicker: function(id) {
++            if (Dom.get(id + '_colors')) {
++               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
++            }
++            var picker = document.createElement('div');
++            picker.className = 'yui-toolbar-colors';
++            picker.id = id + '_colors';
++            picker.style.display = 'none';
++            Event.on(window, 'load', function() {
++                document.body.appendChild(picker);
++            }, this, true);
++
++            this._colorPicker = picker;
++
++            var html = '';
++            for (var i in this._colorData) {
++                if (Lang.hasOwnProperty(this._colorData, i)) {
++                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
++                }
++            }
++            html += '<span><em>X</em><strong></strong></span>';
++            window.setTimeout(function() {
++                picker.innerHTML = html;
++            }, 0);
++
++            Event.on(picker, 'mouseover', function(ev) {
++                var picker = this._colorPicker;
++                var em = picker.getElementsByTagName('em')[0];
++                var strong = picker.getElementsByTagName('strong')[0];
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    em.style.backgroundColor = tar.style.backgroundColor;
++                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
++                }
++            }, this, true);
++            Event.on(picker, 'focus', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'click', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
++                    if (retVal !== false) {
++                        var info = {
++                            color: tar.innerHTML,
++                            colorName: this._colorData['#' + tar.innerHTML],
++                            value: this._colorPicker._button 
++                        };
++                    
++                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                    }
++                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
++                }
++            }, this, true);
++        },
++        /**
++        * @method _resetColorPicker
++        * @private
++        * @description Clears the currently selected color or mouseover color in the color picker.
++        */
++        _resetColorPicker: function() {
++            var em = this._colorPicker.getElementsByTagName('em')[0];
++            var strong = this._colorPicker.getElementsByTagName('strong')[0];
++            em.style.backgroundColor = 'transparent';
++            strong.innerHTML = '';
++        },
++        /**
++        * @method _makeColorButton
++        * @private
++        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
++        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        */
++        _makeColorButton: function(_oButton) {
++            if (!this._colorPicker) {   
++                this._createColorPicker(this.get('id'));
++            }
++            _oButton.type = 'color';
++            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
++            _oButton.menu.setBody('');
++            _oButton.menu.render(this.get('cont'));
++            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
++            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
++            _oButton.menu.beforeShowEvent.subscribe(function() {
++                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
++                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
++                //Move the DOM reference of the color picker to the Overlay that we are about to show.
++                this._resetColorPicker();
++                var _p = this._colorPicker;
++                if (_p.parentNode) {
++                    _p.parentNode.removeChild(_p);
++                }
++                _oButton.menu.setBody('');
++                _oButton.menu.appendToBody(_p);
++                this._colorPicker.style.display = 'block';
++            }, this, true);
++            return _oButton;
++        },
++        /**
++        * @private
++        * @method _makeSpinButton
++        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
++        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        * @param {Object} oButton Object literal containing the buttons initial config
++        */
++        _makeSpinButton: function(_button, oButton) {
++            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
++            var self = this,
++                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
++                range = oButton.range,
++                _b1 = document.createElement('a'),
++                _b2 = document.createElement('a');
++                _b1.href = '#';
++                _b2.href = '#';
++                _b1.tabIndex = '-1';
++                _b2.tabIndex = '-1';
++            
++            //Setup the up and down arrows
++            _b1.className = 'up';
++            _b1.title = this.STR_SPIN_UP;
++            _b1.innerHTML = this.STR_SPIN_UP;
++            _b2.className = 'down';
++            _b2.title = this.STR_SPIN_DOWN;
++            _b2.innerHTML = this.STR_SPIN_DOWN;
++
++            //Append them to the container
++            _par.appendChild(_b1);
++            _par.appendChild(_b2);
++            
++            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
++            _button.set('title', label);
++
++            var cleanVal = function(value) {
++                value = ((value < range[0]) ? range[0] : value);
++                value = ((value > range[1]) ? range[1] : value);
++                return value;
++            };
++
++            var br = this.browser;
++            var tbar = false;
++            var strLabel = this.STR_SPIN_LABEL;
++            if (this._titlebar && this._titlebar.firstChild) {
++                tbar = this._titlebar.firstChild;
++            }
++            
++            var _intUp = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value++;
++                    value = cleanVal(value);
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intDown = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value--;
++                    value = cleanVal(value);
++
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intKeyUp = function(ev) {
++                if (ev.keyCode == 38) {
++                    _intUp(ev);
++                } else if (ev.keyCode == 40) {
++                    _intDown(ev);
++                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
++                    _intUp(ev);
++                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
++                    _intDown(ev);
++                }
++            };
++
++            //Handle arrow keys..
++            _button.on('keydown', _intKeyUp, this, true);
++
++            //Listen for the click on the up button and act on it
++            //Listen for the click on the down button and act on it
++            Event.on(_b1, 'mousedown',function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b2, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b1, 'click', _intUp, this, true);
++            Event.on(_b2, 'click', _intDown, this, true);
++        },
++        /**
++        * @protected
++        * @method _buttonClick
++        * @description Click handler for all buttons in the toolbar.
++        * @param {String} ev The event that was passed in.
++        * @param {Object} info Object literal of information about the button that was clicked.
++        */
++        _buttonClick: function(ev, info) {
++            var doEvent = true;
++            
++            if (ev && ev.type == 'keypress') {
++                if (ev.keyCode == 9) {
++                    doEvent = false;
++                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
++                } else {
++                    doEvent = false;
++                }
++            }
++
++            if (doEvent) {
++                var fireNextEvent = true,
++                    retValue = false;
++                    
++                info.isSelected = this.isSelected(info.id);
++
++                if (info.value) {
++                    YAHOO.log('fireEvent::' + info.value + 'Click', 'info', 'Toolbar');
++                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                
++                if (info.menucmd && fireNextEvent) {
++                    YAHOO.log('fireEvent::' + info.menucmd + 'Click', 'info', 'Toolbar');
++                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                if (fireNextEvent) {
++                    YAHOO.log('fireEvent::buttonClick', 'info', 'Toolbar');
++                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                }
++
++                if (info.type == 'select') {
++                    var button = this.getButtonById(info.id);
++                    if (button.buttonType == 'rich') {
++                        var txt = info.value;
++                        for (var i = 0; i < info.menu.length; i++) {
++                            if (info.menu[i].value == info.value) {
++                                txt = info.menu[i].text;
++                                break;
++                            }
++                        }
++                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
++                                _items[m].cfg.setProperty('checked', true);
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++                if (ev) {
++                    Event.stopEvent(ev);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _keyNav
++        * @description Flag to determine if the arrow nav listeners have been attached
++        * @type Boolean
++        */
++        _keyNav: null,
++        /**
++        * @private
++        * @property _navCounter
++        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
++        * @type Number
++        */
++        _navCounter: null,
++        /**
++        * @private
++        * @method _navigateButtons
++        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
++        * @param {Event} ev The Key Event
++        */
++        _navigateButtons: function(ev) {
++            switch (ev.keyCode) {
++                case 37:
++                case 39:
++                    if (ev.keyCode == 37) {
++                        this._navCounter--;
++                    } else {
++                        this._navCounter++;
++                    }
++                    if (this._navCounter > (this._buttonList.length - 1)) {
++                        this._navCounter = 0;
++                    }
++                    if (this._navCounter < 0) {
++                        this._navCounter = (this._buttonList.length - 1);
++                    }
++                    if (this._buttonList[this._navCounter]) {
++                        var el = this._buttonList[this._navCounter].get('element');
++                        if (this.browser.ie) {
++                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
++                        }
++                        if (this._buttonList[this._navCounter].get('disabled')) {
++                            this._navigateButtons(ev);
++                        } else {
++                            el.focus();
++                        }
++                    }
++                    break;
++            }
++        },
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Sets up the listeners for the arrow key navigation
++        */
++        _handleFocus: function() {
++            if (!this._keyNav) {
++                var ev = 'keypress';
++                if (this.browser.ie) {
++                    ev = 'keydown';
++                }
++                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
++                this._keyNav = true;
++                this._navCounter = -1;
++            }
++        },
++        /**
++        * @method getButtonById
++        * @description Gets a button instance from the toolbar by is Dom id.
++        * @param {String} id The Dom id to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonById: function(id) {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
++                    return this._buttonList[i];
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByValue
++        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
++        * @param {String} value The button value to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
++        */
++        getButtonByValue: function(value) {
++            var _buttons = this.get('buttons');
++            if (!_buttons) {
++                return false;
++            }
++            var len = _buttons.length;
++            for (var i = 0; i < len; i++) {
++                if (_buttons[i].group !== undefined) {
++                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
++                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
++                            return this.getButtonById(_buttons[i].buttons[m].id);
++                        }
++                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
++                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
++                                if (_buttons[i].buttons[m].menu[s].value == value) {
++                                    return this.getButtonById(_buttons[i].buttons[m].id);
++                                }
++                            }
++                        }
++                    }
++                } else {
++                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
++                        return this.getButtonById(_buttons[i].id);
++                    }
++                    if (_buttons[i].menu) { //Menu Button, loop through the values
++                        for (var j = 0; j < _buttons[i].menu.length; j++) {
++                            if (_buttons[i].menu[j].value == value) {
++                                return this.getButtonById(_buttons[i].id);
++                            }
++                        }
++                    }
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByIndex
++        * @description Gets a button instance from the toolbar by is index in _buttonList.
++        * @param {Number} index The index of the button in _buttonList.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonByIndex: function(index) {
++            if (this._buttonList[index]) {
++                return this._buttonList[index];
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method getButtons
++        * @description Returns an array of buttons in the current toolbar
++        * @return {Array}
++        */
++        getButtons: function() {
++            return this._buttonList;
++        },
++        /**
++        * @method disableButton
++        * @description Disables a button in the toolbar.
++        * @param {String/Number} id Disable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        disableButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.set('disabled', true);
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method enableButton
++        * @description Enables a button in the toolbar.
++        * @param {String/Number} id Enable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        enableButton: function(id) {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var button = getButton.call(this, id);
++            if (button) {
++                if (button.get('disabled')) {
++                    button.set('disabled', false);
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method isSelected
++        * @description Tells if a button is selected or not.
++        * @param {String/Number} id A button by it's id, index or value.
++        * @return {Boolean}
++        */
++        isSelected: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                return button._selected;
++            }
++            return false;
++        },
++        /**
++        * @method selectButton
++        * @description Selects a button in the toolbar.
++        * @param {String/Number} id Select a button by it's id, index or value.
++        * @param {String} value If this is a Menu Button, check this item in the menu
++        * @return {Boolean}
++        */
++        selectButton: function(id, value) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.addClass('yui-button-selected');
++                button.addClass('yui-button-' + button.get('value') + '-selected');
++                button._selected = true;
++                if (value) {
++                    if (button.buttonType == 'rich') {
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value == value) {
++                                _items[m].cfg.setProperty('checked', true);
++                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectButton
++        * @description Deselects a button in the toolbar.
++        * @param {String/Number} id Deselect a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        deselectButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.removeClass('yui-button-selected');
++                button.removeClass('yui-button-' + button.get('value') + '-selected');
++                button.removeClass('yui-button-hover');
++                button._selected = false;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectAllButtons
++        * @description Deselects all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        deselectAllButtons: function() {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.deselectButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method disableAllButtons
++        * @description Disables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        disableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.disableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method enableAllButtons
++        * @description Enables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        enableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.enableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method resetAllButtons
++        * @description Resets all buttons to their initial state.
++        * @param {Object} _ex Except these buttons
++        * @return {Boolean}
++        */
++        resetAllButtons: function(_ex) {
++            if (!Lang.isObject(_ex)) {
++                _ex = {};
++            }
++            if (this.get('disabled') || !this._buttonList) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                var _button = this._buttonList[i];
++                if (_button) {
++                    var disabled = _button._configs.disabled._initialConfig.value;
++                    if (_ex[_button.get('id')]) {
++                        this.enableButton(_button);
++                        this.selectButton(_button);
++                    } else {
++                        if (disabled) {
++                            this.disableButton(_button);
++                        } else {
++                            this.enableButton(_button);
++                        }
++                        this.deselectButton(_button);
++                    }
++                }
++            }
++        },
++        /**
++        * @method destroyButton
++        * @description Destroy a button in the toolbar.
++        * @param {String/Number} id Destroy a button by it's id or index.
++        * @return {Boolean}
++        */
++        destroyButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                var thisID = button.get('id'),
++                    new_list = [], i = 0,
++                    len = this._buttonList.length;
++
++                button.destroy();
++                
++                for (i = 0; i < len; i++) {
++                    if (this._buttonList[i].get('id') != thisID) {
++                        new_list[new_list.length]= this._buttonList[i];
++                    }
++                }
++
++                this._buttonList = new_list;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method destroy
++        * @description Destroys the toolbar, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            var len = this._configuredButtons.length, j, i;
++            for(b = 0; b < len; b++) {
++                this.destroyButton(this._configuredButtons[b]);
++            }
++
++            this._configuredButtons = null;
++        
++            this.get('element').innerHTML = '';
++            this.get('element').className = '';
++            //Brutal Object Destroy
++            for (i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }
++            return true;
++        },
++        /**
++        * @method collapse
++        * @description Programatically collapse the toolbar.
++        * @param {Boolean} collapse True to collapse, false to expand.
++        */
++        collapse: function(collapse) {
++            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++            if (collapse === false) {
++                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                if (el[0]) {
++                    Dom.removeClass(el[0], 'collapsed');
++                    el[0].title = this.STR_COLLAPSE;
++                }
++                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
++            } else {
++                if (el[0]) {
++                    Dom.addClass(el[0], 'collapsed');
++                    el[0].title = this.STR_EXPAND;
++                }
++                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */
++        toString: function() {
++            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
++        }
++    });
++/**
++* @event buttonClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event valueClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description This is a special dynamic event that is created and dispatched based on the value property
++* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* Example:
++* <code><pre>
++* buttons : [
++*   { type: 'button', value: 'test', value: 'testButton' }
++* ]</pre>
++* </code>
++* With the valueClick event you could subscribe to this buttons click event with this:
++* tbar.in('testButtonClick', function() { alert('test button clicked'); })
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarExpanded
++* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarCollapsed
++* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++})();
++/**
++ * @module editor
++ * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbar
++ * @optional animation, container_core, resize, dragdrop
++ */
++
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang,
++    Toolbar = YAHOO.widget.Toolbar;
++
++    /**
++     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
++     * @constructor
++     * @class SimpleEditor
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The textarea element to turn into an editor.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    
++    YAHOO.widget.SimpleEditor = function(el, attrs) {
++        YAHOO.log('SimpleEditor Initalizing', 'info', 'SimpleEditor');
++        
++        var o = {};
++        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
++            Lang.augmentObject(o, el); //Break the config reference
++            el = document.createElement('textarea');
++            this.DOMReady = true;
++            if (o.container) {
++                var c = Dom.get(o.container);
++                c.appendChild(el);
++            } else {
++                document.body.appendChild(el);
++            }
++        } else {
++            if (attrs) {
++                Lang.augmentObject(o, attrs); //Break the config reference
++            }
++        }
++
++        var oConfig = {
++            element: null,
++            attributes: o
++        }, id = null;
++
++        if (Lang.isString(el)) {
++            id = el;
++        } else {
++            if (oConfig.attributes.id) {
++                id = oConfig.attributes.id;
++            } else {
++                this.DOMReady = true;
++                id = Dom.generateId(el);
++            }
++        }
++        oConfig.element = el;
++
++        var element_cont = document.createElement('DIV');
++        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
++            id: id + '_container'
++        });
++        var div = document.createElement('div');
++        Dom.addClass(div, 'first-child');
++        oConfig.attributes.element_cont.appendChild(div);
++        
++        if (!oConfig.attributes.toolbar_cont) {
++            oConfig.attributes.toolbar_cont = document.createElement('DIV');
++            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
++            div.appendChild(oConfig.attributes.toolbar_cont);
++        }
++        var editorWrapper = document.createElement('DIV');
++        div.appendChild(editorWrapper);
++        oConfig.attributes.editor_wrapper = editorWrapper;
++
++        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++
++    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property _resizeConfig
++        * @description The default config for the Resize Utility
++        */
++        _resizeConfig: {
++            handles: ['br'],
++            autoRatio: true,
++            status: true,
++            proxy: true,
++            useShim: true,
++            setSize: false
++        },
++        /**
++        * @private
++        * @method _setupResize
++        * @description Creates the Resize instance and binds its events.
++        */
++        _setupResize: function() {
++            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
++            if (this.get('resize')) {
++                var config = {};
++                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
++                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
++                this.resize.on('resize', function(args) {
++                    var anim = this.get('animate');
++                    this.set('animate', false);
++                    this.set('width', args.width + 'px');
++                    var h = args.height,
++                        th = (this.toolbar.get('element').clientHeight + 2),
++                        dh = 0;
++                    if (this.dompath) {
++                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
++                    }
++                    var newH = (h - th - dh);
++                    this.set('height', newH + 'px');
++                    this.get('element_cont').setStyle('height', '');
++                    this.set('animate', anim);
++                }, this, true);
++            }
++        },
++        /**
++        * @property resize
++        * @description A reference to the Resize object
++        * @type YAHOO.util.Resize
++        */
++        resize: null,
++        /**
++        * @private
++        * @method _setupDD
++        * @description Sets up the DD instance used from the 'drag' config option.
++        */
++        _setupDD: function() {
++            if (!YAHOO.util.DD) { return false; }
++            if (this.get('drag')) {
++                YAHOO.log('Attaching DD instance to Editor', 'info', 'SimpleEditor');
++                var d = this.get('drag'),
++                    dd = YAHOO.util.DD;
++                if (d === 'proxy') {
++                    dd = YAHOO.util.DDProxy;
++                }
++
++                this.dd = new dd(this.get('element_cont').get('element'));
++                this.toolbar.addClass('draggable'); 
++                this.dd.setHandleElId(this.toolbar._titlebar); 
++            }
++        },
++        /**
++        * @property dd
++        * @description A reference to the DragDrop object.
++        * @type YAHOO.util.DD/YAHOO.util.DDProxy
++        */
++        dd: null,
++        /**
++        * @private
++        * @property _lastCommand
++        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
++        * @type String
++        */
++        _lastCommand: null,
++        _undoNodeChange: function() {},
++        _storeUndo: function() {},
++        /**
++        * @private
++        * @method _checkKey
++        * @description Checks a keyMap entry against a key event
++        * @param {Object} k The _keyMap object
++        * @param {Event} e The Mouse Event
++        * @return {Boolean}
++        */
++        _checkKey: function(k, e) {
++            var ret = false;
++            if ((e.keyCode === k.key)) {
++                if (k.mods && (k.mods.length > 0)) {
++                    var val = 0;
++                    for (var i = 0; i < k.mods.length; i++) {
++                        if (this.browser.mac) {
++                            if (k.mods[i] == 'ctrl') {
++                                k.mods[i] = 'meta';
++                            }
++                        }
++                        if (e[k.mods[i] + 'Key'] === true) {
++                            val++;
++                        }
++                    }
++                    if (val === k.mods.length) {
++                        ret = true;
++                    }
++                } else {
++                    ret = true;
++                }
++            }
++            //YAHOO.log('Shortcut Key Check: (' + k.key + ') return: ' + ret, 'info', 'SimpleEditor');
++            return ret;
++        },
++        /**
++        * @private
++        * @property _keyMap
++        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
++        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
++        * @type {Object/Mixed}
++        */
++        _keyMap: {
++            SELECT_ALL: {
++                key: 65, //A key
++                mods: ['ctrl']
++            },
++            CLOSE_WINDOW: {
++                key: 87, //W key
++                mods: ['shift', 'ctrl']
++            },
++            FOCUS_TOOLBAR: {
++                key: 27,
++                mods: ['shift']
++            },
++            FOCUS_AFTER: {
++                key: 27
++            },
++            FONT_SIZE_UP: {
++                key: 38,
++                mods: ['shift', 'ctrl']
++            },
++            FONT_SIZE_DOWN: {
++                key: 40,
++                mods: ['shift', 'ctrl']
++            },
++            CREATE_LINK: {
++                key: 76,
++                mods: ['shift', 'ctrl']
++            },
++            BOLD: {
++                key: 66,
++                mods: ['shift', 'ctrl']
++            },
++            ITALIC: {
++                key: 73,
++                mods: ['shift', 'ctrl']
++            },
++            UNDERLINE: {
++                key: 85,
++                mods: ['shift', 'ctrl']
++            },
++            UNDO: {
++                key: 90,
++                mods: ['ctrl']
++            },
++            REDO: {
++                key: 90,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_LEFT: {
++                key: 219,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_CENTER: {
++                key: 220,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_RIGHT: {
++                key: 221,
++                mods: ['shift', 'ctrl']
++            }
++        },
++        /**
++        * @private
++        * @method _cleanClassName
++        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
++        * @param {String} str The classname to clean up
++        * @return {String}
++        */
++        _cleanClassName: function(str) {
++            return str.replace(/ /g, '-').toLowerCase();
++        },
++        /**
++        * @property _textarea
++        * @description Flag to determine if we are using a textarea or an HTML Node.
++        * @type Boolean
++        */
++        _textarea: null,
++        /**
++        * @property _docType
++        * @description The DOCTYPE to use in the editable container.
++        * @type String
++        */
++        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
++        /**
++        * @property editorDirty
++        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
++        * @type Boolean
++        */
++        editorDirty: null,
++        /**
++        * @property _defaultCSS
++        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
++        * @type String
++        */
++        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
++        /**
++        * @property _defaultToolbar
++        * @private
++        * @description Default toolbar config.
++        * @type Object
++        */
++        _defaultToolbar: null,
++        /**
++        * @property _lastButton
++        * @private
++        * @description The last button pressed, so we don't disable it.
++        * @type Object
++        */
++        _lastButton: null,
++        /**
++        * @property _baseHREF
++        * @private
++        * @description The base location of the editable page (this page) so that relative paths for image work.
++        * @type String
++        */
++        _baseHREF: function() {
++            var href = document.location.href;
++            if (href.indexOf('?') !== -1) { //Remove the query string
++                href = href.substring(0, href.indexOf('?'));
++            }
++            href = href.substring(0, href.lastIndexOf('/')) + '/';
++            return href;
++        }(),
++        /**
++        * @property _lastImage
++        * @private
++        * @description Safari reference for the last image selected (for styling as selected).
++        * @type HTMLElement
++        */
++        _lastImage: null,
++        /**
++        * @property _blankImageLoaded
++        * @private
++        * @description Don't load the blank image more than once..
++        * @type Boolean
++        */
++        _blankImageLoaded: null,
++        /**
++        * @property _fixNodesTimer
++        * @private
++        * @description Holder for the fixNodes timer
++        * @type Date
++        */
++        _fixNodesTimer: null,
++        /**
++        * @property _nodeChangeTimer
++        * @private
++        * @description Holds a reference to the nodeChange setTimeout call
++        * @type Number
++        */
++        _nodeChangeTimer: null,
++        /**
++        * @property _nodeChangeDelayTimer
++        * @private
++        * @description Holds a reference to the nodeChangeDelay setTimeout call
++        * @type Number
++        */
++        _nodeChangeDelayTimer: null,
++        /**
++        * @property _lastNodeChangeEvent
++        * @private
++        * @description Flag to determine the last event that fired a node change
++        * @type Event
++        */
++        _lastNodeChangeEvent: null,
++        /**
++        * @property _lastNodeChange
++        * @private
++        * @description Flag to determine when the last node change was fired
++        * @type Date
++        */
++        _lastNodeChange: 0,
++        /**
++        * @property _rendered
++        * @private
++        * @description Flag to determine if editor has been rendered or not
++        * @type Boolean
++        */
++        _rendered: null,
++        /**
++        * @property DOMReady
++        * @private
++        * @description Flag to determine if DOM is ready or not
++        * @type Boolean
++        */
++        DOMReady: null,
++        /**
++        * @property _selection
++        * @private
++        * @description Holder for caching iframe selections
++        * @type Object
++        */
++        _selection: null,
++        /**
++        * @property _mask
++        * @private
++        * @description DOM Element holder for the editor Mask when disabled
++        * @type Object
++        */
++        _mask: null,
++        /**
++        * @property _showingHiddenElements
++        * @private
++        * @description Status of the hidden elements button
++        * @type Boolean
++        */
++        _showingHiddenElements: null,
++        /**
++        * @property currentWindow
++        * @description A reference to the currently open EditorWindow
++        * @type Object
++        */
++        currentWindow: null,
++        /**
++        * @property currentEvent
++        * @description A reference to the current editor event
++        * @type Event
++        */
++        currentEvent: null,
++        /**
++        * @property operaEvent
++        * @private
++        * @description setTimeout holder for Opera and Image DoubleClick event..
++        * @type Object
++        */
++        operaEvent: null,
++        /**
++        * @property currentFont
++        * @description A reference to the last font selected from the Toolbar
++        * @type HTMLElement
++        */
++        currentFont: null,
++        /**
++        * @property currentElement
++        * @description A reference to the current working element in the editor
++        * @type Array
++        */
++        currentElement: null,
++        /**
++        * @property dompath
++        * @description A reference to the dompath container for writing the current working dom path to.
++        * @type HTMLElement
++        */
++        dompath: null,
++        /**
++        * @property beforeElement
++        * @description A reference to the H2 placed before the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        beforeElement: null,
++        /**
++        * @property afterElement
++        * @description A reference to the H2 placed after the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        afterElement: null,
++        /**
++        * @property invalidHTML
++        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
++        * @type Object
++        */
++        invalidHTML: {
++            form: true,
++            input: true,
++            button: true,
++            select: true,
++            link: true,
++            html: true,
++            body: true,
++            iframe: true,
++            script: true,
++            style: true,
++            textarea: true
++        },
++        /**
++        * @property toolbar
++        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
++        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
++        */
++        toolbar: null,
++        /**
++        * @private
++        * @property _contentTimer
++        * @description setTimeout holder for documentReady check
++        */
++        _contentTimer: null,
++        /**
++        * @private
++        * @property _contentTimerMax
++        * @description The number of times the loaded content should be checked before giving up. Default: 500
++        */
++        _contentTimerMax: 500,
++        /**
++        * @private
++        * @property _contentTimerCounter
++        * @description Counter to check the number of times the body is polled for before giving up
++        * @type Number
++        */
++        _contentTimerCounter: 0,
++        /**
++        * @private
++        * @property _disabled
++        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
++        * @type Array
++        */
++        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
++        /**
++        * @private
++        * @property _alwaysDisabled
++        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
++        * @type Object
++        */
++        _alwaysDisabled: { undo: true, redo: true },
++        /**
++        * @private
++        * @property _alwaysEnabled
++        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
++        * @type Object
++        */
++        _alwaysEnabled: { },
++        /**
++        * @private
++        * @property _semantic
++        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
++        * @type Object
++        */
++        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
++        /**
++        * @private
++        * @property _tag2cmd
++        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
++        * @type Object
++        */
++        _tag2cmd: {
++            'b': 'bold',
++            'strong': 'bold',
++            'i': 'italic',
++            'em': 'italic',
++            'u': 'underline',
++            'sup': 'superscript',
++            'sub': 'subscript',
++            'img': 'insertimage',
++            'a' : 'createlink',
++            'ul' : 'insertunorderedlist',
++            'ol' : 'insertorderedlist'
++        },
++
++        /**
++        * @private _createIframe
++        * @description Creates the DOM and YUI Element for the iFrame editor area.
++        * @param {String} id The string ID to prefix the iframe with
++        * @return {Object} iFrame object
++        */
++        _createIframe: function() {
++            var ifrmDom = document.createElement('iframe');
++            ifrmDom.id = this.get('id') + '_editor';
++            var config = {
++                border: '0',
++                frameBorder: '0',
++                marginWidth: '0',
++                marginHeight: '0',
++                leftMargin: '0',
++                topMargin: '0',
++                allowTransparency: 'true',
++                width: '100%'
++            };
++            if (this.get('autoHeight')) {
++                config.scrolling = 'no';
++            }
++            for (var i in config) {
++                if (Lang.hasOwnProperty(config, i)) {
++                    ifrmDom.setAttribute(i, config[i]);
++                }
++            }
++            var isrc = 'javascript:;';
++            if (this.browser.ie) {
++                //isrc = 'about:blank';
++                //TODO - Check this, I have changed it before..
++                isrc = 'javascript:false;';
++            }
++            ifrmDom.setAttribute('src', isrc);
++            var ifrm = new YAHOO.util.Element(ifrmDom);
++            ifrm.setStyle('visibility', 'hidden');
++            return ifrm;
++        },
++        /**
++        * @private _isElement
++        * @description Checks to see if an Element reference is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return {Boolean}
++        */
++        _isElement: function(el, tag) {
++            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
++                return true;
++            }
++            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private _hasParent
++        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return HTMLElement
++        */
++        _hasParent: function(el, tag) {
++            if (!el || !el.parentNode) {
++                return false;
++            }
++            
++            while (el.parentNode) {
++                if (this._isElement(el, tag)) {
++                    return el;
++                }
++                if (el.parentNode) {
++                    el = el.parentNode;
++                } else {
++                    return false;
++                }
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _getDoc
++        * @description Get the Document of the IFRAME
++        * @return {Object}
++        */
++        _getDoc: function() {
++            var value = false;
++            try {
++                if (this.get('iframe').get('element').contentWindow.document) {
++                    value = this.get('iframe').get('element').contentWindow.document;
++                    return value;
++                }
++            } catch (e) {
++                return false;
++            }
++        },
++        /**
++        * @private
++        * @method _getWindow
++        * @description Get the Window of the IFRAME
++        * @return {Object}
++        */
++        _getWindow: function() {
++            return this.get('iframe').get('element').contentWindow;
++        },
++        /**
++        * @method focus
++        * @description Attempt to set the focus of the iframes window.
++        */
++        focus: function() {
++            this._getWindow().focus();
++        },
++        /**
++        * @private
++        * @depreciated - This should not be used, moved to this.focus();
++        * @method _focusWindow
++        * @description Attempt to set the focus of the iframes window.
++        */
++        _focusWindow: function() {
++            YAHOO.log('_focusWindow: depreciated in favor of this.focus()', 'warn', 'Editor');
++            this.focus();
++        },
++        /**
++        * @private
++        * @method _hasSelection
++        * @description Determines if there is a selection in the editor document.
++        * @return {Boolean}
++        */
++        _hasSelection: function() {
++            var sel = this._getSelection();
++            var range = this._getRange();
++            var hasSel = false;
++
++            if (!sel || !range) {
++                return hasSel;
++            }
++
++            //Internet Explorer
++            if (this.browser.ie || this.browser.opera) {
++                if (range.text) {
++                    hasSel = true;
++                }
++                if (range.html) {
++                    hasSel = true;
++                }
++            } else {
++                if (this.browser.webkit) {
++                    if (sel+'' !== '') {
++                        hasSel = true;
++                    }
++                } else {
++                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
++                        hasSel = true;
++                    }
++                }
++            }
++            return hasSel;
++        },
++        /**
++        * @private
++        * @method _getSelection
++        * @description Handles the different selection objects across the A-Grade list.
++        * @return {Object} Selection Object
++        */
++        _getSelection: function() {
++            var _sel = null;
++            if (this._getDoc() && this._getWindow()) {
++                if (this._getDoc().selection) {
++                    _sel = this._getDoc().selection;
++                } else {
++                    _sel = this._getWindow().getSelection();
++                }
++                //Handle Safari's lack of Selection Object
++                if (this.browser.webkit) {
++                    if (_sel.baseNode) {
++                            this._selection = {};
++                            this._selection.baseNode = _sel.baseNode;
++                            this._selection.baseOffset = _sel.baseOffset;
++                            this._selection.extentNode = _sel.extentNode;
++                            this._selection.extentOffset = _sel.extentOffset;
++                    } else if (this._selection !== null) {
++                        _sel = this._getWindow().getSelection();
++                        _sel.setBaseAndExtent(
++                            this._selection.baseNode,
++                            this._selection.baseOffset,
++                            this._selection.extentNode,
++                            this._selection.extentOffset);
++                        this._selection = null;
++                    }
++                }
++            }
++            return _sel;
++        },
++        /**
++        * @private
++        * @method _selectNode
++        * @description Places the highlight around a given node
++        * @param {HTMLElement} node The node to select
++        */
++        _selectNode: function(node, collapse) {
++            if (!node) {
++                return false;
++            }
++            var sel = this._getSelection(),
++                range = null;
++
++            if (this.browser.ie) {
++                try { //IE freaks out here sometimes..
++                    range = this._getDoc().body.createTextRange();
++                    range.moveToElementText(node);
++                    range.select();
++                } catch (e) {
++                    YAHOO.log('IE failed to select element: ' + node.tagName, 'warn', 'SimpleEditor');
++                }
++            } else if (this.browser.webkit) {
++                if (collapse) {
++				    sel.setBaseAndExtent(node, 1, node, node.innerText.length);
++                } else {
++				    sel.setBaseAndExtent(node, 0, node, node.innerText.length);
++                }
++            } else if (this.browser.opera) {
++                sel = this._getWindow().getSelection();
++                range = this._getDoc().createRange();
++                range.selectNode(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            } else {
++                range = this._getDoc().createRange();
++                range.selectNodeContents(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            }
++            //TODO - Check Performance
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _getRange
++        * @description Handles the different range objects across the A-Grade list.
++        * @return {Object} Range Object
++        */
++        _getRange: function() {
++            var sel = this._getSelection();
++
++            if (sel === null) {
++                return null;
++            }
++
++            if (this.browser.webkit && !sel.getRangeAt) {
++                var _range = this._getDoc().createRange();
++                try {
++                    _range.setStart(sel.anchorNode, sel.anchorOffset);
++                    _range.setEnd(sel.focusNode, sel.focusOffset);
++                } catch (e) {
++                    _range = this._getWindow().getSelection()+'';
++                }
++                return _range;
++            }
++
++            if (this.browser.ie || this.browser.opera) {
++                try {
++                    return sel.createRange();
++                } catch (e2) {
++                    return null;
++                }
++            }
++
++            if (sel.rangeCount > 0) {
++                return sel.getRangeAt(0);
++            }
++            return null;
++        },
++        /**
++        * @private
++        * @method _setDesignMode
++        * @description Sets the designMode property of the iFrame document's body.
++        * @param {String} state This should be either on or off
++        */
++        _setDesignMode: function(state) {
++            if (this.get('setDesignMode')) {
++                try {
++                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
++                } catch(e) { }
++            }
++        },
++        /**
++        * @private
++        * @method _toggleDesignMode
++        * @description Toggles the designMode property of the iFrame document on and off.
++        * @return {String} The state that it was set to.
++        */
++        _toggleDesignMode: function() {
++            YAHOO.log('It is not recommended to use this method and it will be depreciated.', 'warn', 'SimpleEditor');
++            var _dMode = this._getDoc().designMode,
++                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
++            this._setDesignMode(_state);
++            return _state;
++        },
++        /**
++        * @private
++        * @property _focused
++        * @description Holder for trapping focus/blur state and prevent double events
++        * @type Boolean
++        */
++        _focused: null,
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
++        * @param {Event} e The DOM Event
++        */
++        _handleFocus: function(e) {
++            if (!this._focused) {
++                //YAHOO.log('Editor Window Focused', 'info', 'SimpleEditor');
++                this._focused = true;
++                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _handleBlur
++        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
++        * @param {Event} e The DOM Event
++        */
++        _handleBlur: function(e) {
++            if (this._focused) {
++                //YAHOO.log('Editor Window Blurred', 'info', 'SimpleEditor');
++                this._focused = false;
++                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _initEditorEvents
++        * @description This method sets up the listeners on the Editors document.
++        */
++        _initEditorEvents: function() {
++            //Setup Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.on(doc, 'click', this._handleClick, this, true);
++            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
++            /* TODO -- Everyone but Opera works here..
++            Event.on(doc, 'paste', function() {
++                YAHOO.log('PASTE', 'info', 'SimpleEditor');
++            }, this, true);
++            */
++ 
++            //Focus and blur..
++            Event.on(win, 'focus', this._handleFocus, this, true);
++            Event.on(win, 'blur', this._handleBlur, this, true);
++        },
++        /**
++        * @private
++        * @method _removeEditorEvents
++        * @description This method removes the listeners on the Editors document (for disabling).
++        */
++        _removeEditorEvents: function() {
++            //Remove Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.removeListener(doc, 'click', this._handleClick, this, true);
++            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
++
++            //Focus and blur..
++            Event.removeListener(win, 'focus', this._handleFocus, this, true);
++            Event.removeListener(win, 'blur', this._handleBlur, this, true);
++        },
++        _fixWebkitDivs: function() {
++            if (this.browser.webkit) {
++                var divs = this._getDoc().body.getElementsByTagName('div');
++                Dom.addClass(divs, 'yui-wk-div');
++            }
++        },
++        /**
++        * @private
++        * @method _initEditor
++        * @param {Boolean} raw Don't add events.
++        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
++        */
++        _initEditor: function(raw) {
++            if (this._editorInit) {
++                return;
++            }
++            this._editorInit = true;
++            if (this.browser.ie) {
++                this._getDoc().body.style.margin = '0';
++            }
++            if (!this.get('disabled')) {
++                this._setDesignMode('on');
++                this._contentTimerCounter = 0;
++            }
++            if (!this._getDoc().body) {
++                YAHOO.log('Body is null, check again', 'error', 'SimpleEditor');
++                this._contentTimerCounter = 0;
++                this._editorInit = false;
++                this._checkLoaded();
++                return false;
++            }
++            
++            YAHOO.log('editorLoaded', 'info', 'SimpleEditor');
++            if (!raw) {
++                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
++            }
++            if (!this.get('disabled')) {
++                this._initEditorEvents();
++                this.toolbar.set('disabled', false);
++            }
++
++            if (raw) {
++                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
++            } else {
++                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
++            }
++            this._fixWebkitDivs();
++            if (this.get('dompath')) {
++                YAHOO.log('Delayed DomPath write', 'info', 'SimpleEditor');
++                var self = this;
++                setTimeout(function() {
++                    self._writeDomPath.call(self);
++                    self._setupResize.call(self);
++                }, 150);
++            }
++            var br = [];
++            for (var i in this.browser) {
++                if (this.browser[i]) {
++                    br.push(i);
++                }
++            }
++            if (this.get('ptags')) {
++                br.push('ptags');
++            }
++            Dom.addClass(this._getDoc().body, br.join(' '));
++            this.nodeChange(true);
++        },
++        /**
++        * @private
++        * @method _checkLoaded
++        * @param {Boolean} raw Don't add events.
++        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
++        */
++        _checkLoaded: function(raw) {
++            this._editorInit = false;
++            this._contentTimerCounter++;
++            if (this._contentTimer) {
++                clearTimeout(this._contentTimer);
++            }
++            if (this._contentTimerCounter > this._contentTimerMax) {
++                YAHOO.log('ERROR: Body Did Not load', 'error', 'SimpleEditor');
++                return false;
++            }
++            var init = false;
++            try {
++                if (this._getDoc() && this._getDoc().body) {
++                    if (this.browser.ie) {
++                        if (this._getDoc().body.readyState == 'complete') {
++                            init = true;
++                        }
++                    } else {
++                        if (this._getDoc().body._rteLoaded === true) {
++                            init = true;
++                        }
++                    }
++                }
++            } catch (e) {
++                init = false;
++                YAHOO.log('checking body (e)' + e, 'error', 'SimpleEditor');
++            }
++
++            if (init === true) {
++                //The onload event has fired, clean up after ourselves and fire the _initEditor method
++                YAHOO.log('Firing _initEditor', 'info', 'SimpleEditor');
++                this._initEditor(raw);
++            } else {
++                var self = this;
++                this._contentTimer = setTimeout(function() {
++                    self._checkLoaded.call(self, raw);
++                }, 20);
++            }
++        },
++        /**
++        * @private
++        * @method _setInitialContent
++        * @param {Boolean} raw Don't add events.
++        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
++        */
++        _setInitialContent: function(raw) {
++            YAHOO.log('Populating editor body with contents of the text area', 'info', 'SimpleEditor');
++
++            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
++                doc = null;
++
++            if (value === '') {
++                value = '<br>';
++            }
++
++            var html = Lang.substitute(this.get('html'), {
++                TITLE: this.STR_TITLE,
++                CONTENT: this._cleanIncomingHTML(value),
++                CSS: this.get('css'),
++                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
++                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
++            }),
++            check = true;
++
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++
++            if (document.compatMode != 'BackCompat') {
++                YAHOO.log('Adding Doctype to editable area', 'info', 'SimpleEditor');
++                html = this._docType + "\n" + html;
++            } else {
++                YAHOO.log('DocType skipped because we are in BackCompat Mode.', 'warn', 'SimpleEditor');
++            }
++
++            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
++                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
++                try {
++                    //Adobe AIR Code
++                    if (this.browser.air) {
++                        doc = this._getDoc().implementation.createHTMLDocument();
++                        var origDoc = this._getDoc();
++                        origDoc.open();
++                        origDoc.close();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
++                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
++                        origDoc.body._rteLoaded = true;
++                    } else {
++                        doc = this._getDoc();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                    }
++                } catch (e) {
++                    YAHOO.log('Setting doc failed.. (_setInitialContent)', 'error', 'SimpleEditor');
++                    //Safari will only be here if we are hidden
++                    check = false;
++                }
++            } else {
++                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
++                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
++            }
++            this.get('iframe').setStyle('visibility', '');
++            if (check) {
++                this._checkLoaded(raw);
++            }            
++        },
++        /**
++        * @private
++        * @method _setMarkupType
++        * @param {String} action The action to take. Possible values are: css, default or semantic
++        * @description This method will turn on/off the useCSS execCommand.
++        */
++        _setMarkupType: function(action) {
++            switch (this.get('markup')) {
++                case 'css':
++                    this._setEditorStyle(true);
++                    break;
++                case 'default':
++                    this._setEditorStyle(false);
++                    break;
++                case 'semantic':
++                case 'xhtml':
++                    if (this._semantic[action]) {
++                        this._setEditorStyle(false);
++                    } else {
++                        this._setEditorStyle(true);
++                    }
++                    break;
++            }
++        },
++        /**
++        * Set the editor to use CSS instead of HTML
++        * @param {Booleen} stat True/False
++        */
++        _setEditorStyle: function(stat) {
++            try {
++                this._getDoc().execCommand('useCSS', false, !stat);
++            } catch (ex) {
++            }
++        },
++        /**
++        * @private
++        * @method _getSelectedElement
++        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
++        * @return {HTMLElement} The currently selected element.
++        */
++        _getSelectedElement: function() {
++            var doc = this._getDoc(),
++                range = null,
++                sel = null,
++                elm = null,
++                check = true;
++
++            if (this.browser.ie) {
++                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
++                range = this._getRange();
++                if (range) {
++                    elm = range.item ? range.item(0) : range.parentElement();
++                    if (this._hasSelection()) {
++                        //TODO
++                        //WTF.. Why can't I get an element reference here?!??!
++                    }
++                    if (elm === doc.body) {
++                        elm = null;
++                    }
++                }
++                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
++                    elm = Event.getTarget(this.currentEvent);
++                }
++            } else {
++                sel = this._getSelection();
++                range = this._getRange();
++
++                if (!sel || !range) {
++                    return null;
++                }
++                //TODO
++                if (!this._hasSelection() && this.browser.webkit3) {
++                    //check = false;
++                }
++                if (this.browser.gecko) {
++                    //Added in 2.6.0
++                    if (range.startContainer) {
++                        if (range.startContainer.nodeType === 3) {
++                            elm = range.startContainer.parentNode;
++                        } else if (range.startContainer.nodeType === 1) {
++                            elm = range.startContainer;
++                        }
++                        //Added in 2.7.0
++                        if (this.currentEvent) {
++                            var tar = Event.getTarget(this.currentEvent);
++                            if (!this._isElement(tar, 'html')) {
++                                if (elm !== tar) {
++                                    elm = tar;
++                                }
++                            }
++                        }
++                    }
++                }
++                
++                if (check) {
++                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
++                        if (sel.anchorNode.parentNode) { //next check parentNode
++                            elm = sel.anchorNode.parentNode;
++                        }
++                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
++                            elm = sel.anchorNode.nextSibling;
++                        }
++                    }
++                    if (this._isElement(elm, 'br')) {
++                        elm = null;
++                    }
++                    if (!elm) {
++                        elm = range.commonAncestorContainer;
++                        if (!range.collapsed) {
++                            if (range.startContainer == range.endContainer) {
++                                if (range.startOffset - range.endOffset < 2) {
++                                    if (range.startContainer.hasChildNodes()) {
++                                        elm = range.startContainer.childNodes[range.startOffset];
++                                    }
++                                }
++                            }
++                        }
++                    }
++               }
++            }
++            
++            if (this.currentEvent !== null) {
++                try {
++                    switch (this.currentEvent.type) {
++                        case 'click':
++                        case 'mousedown':
++                        case 'mouseup':
++                            if (this.browser.webkit) {
++                                elm = Event.getTarget(this.currentEvent);
++                            }
++                            break;
++                        default:
++                            //Do nothing
++                            break;
++                    }
++                } catch (e) {
++                    YAHOO.log('Firefox 1.5 errors here: ' + e, 'error', 'SimpleEditor');
++                }
++            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
++                //TODO is this still needed?
++                //elm = this.currentElement[0];
++            }
++
++
++            if (this.browser.opera || this.browser.webkit) {
++                if (this.currentEvent && !elm) {
++                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
++                }
++            }
++            if (!elm || !elm.tagName) {
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'html')) {
++                //Safari sometimes gives us the HTML node back..
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'body')) {
++                //make sure that body means this body not the parent..
++                elm = doc.body;
++            }
++            if (elm && !elm.parentNode) { //Not in document
++                elm = doc.body;
++            }
++            if (elm === undefined) {
++                elm = null;
++            }
++            return elm;
++        },
++        /**
++        * @private
++        * @method _getDomPath
++        * @description This method will attempt to build the DOM path from the currently selected element.
++        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
++        * @return {Array} An array of node references that will create the DOM Path.
++        */
++        _getDomPath: function(el) {
++            if (!el) {
++			    el = this._getSelectedElement();
++            }
++			var domPath = [];
++            while (el !== null) {
++                if (el.ownerDocument != this._getDoc()) {
++                    el = null;
++                    break;
++                }
++                //Check to see if we get el.nodeName and nodeType
++                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
++                    domPath[domPath.length] = el;
++                }
++
++                if (this._isElement(el, 'body')) {
++                    break;
++                }
++
++                el = el.parentNode;
++            }
++            if (domPath.length === 0) {
++                if (this._getDoc() && this._getDoc().body) {
++                    domPath[0] = this._getDoc().body;
++                }
++            }
++            return domPath.reverse();
++        },
++        /**
++        * @private
++        * @method _writeDomPath
++        * @description Write the current DOM path out to the dompath container below the editor.
++        */
++        _writeDomPath: function() { 
++            var path = this._getDomPath(),
++                pathArr = [],
++                classPath = '',
++                pathStr = '';
++
++            for (var i = 0; i < path.length; i++) {
++                var tag = path[i].tagName.toLowerCase();
++                if ((tag == 'ol') && (path[i].type)) {
++                    tag += ':' + path[i].type;
++                }
++                if (Dom.hasClass(path[i], 'yui-tag')) {
++                    tag = path[i].getAttribute('tag');
++                }
++                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
++                    switch (tag) {
++                        case 'b': tag = 'strong'; break;
++                        case 'i': tag = 'em'; break;
++                    }
++                }
++                if (!Dom.hasClass(path[i], 'yui-non')) {
++                    if (Dom.hasClass(path[i], 'yui-tag')) {
++                        pathStr = tag;
++                    } else {
++                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
++                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
++                            classPath = '';
++                        }
++                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
++                    }
++                    switch (tag) {
++                        case 'body':
++                            pathStr = 'body';
++                            break;
++                        case 'a':
++                            if (path[i].getAttribute('href', 2)) {
++                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
++                            }
++                            break;
++                        case 'img':
++                            var h = path[i].height;
++                            var w = path[i].width;
++                            if (path[i].style.height) {
++                                h = parseInt(path[i].style.height, 10);
++                            }
++                            if (path[i].style.width) {
++                                w = parseInt(path[i].style.width, 10);
++                            }
++                            pathStr += '(' + w + 'x' + h + ')';
++                        break;
++                    }
++
++                    if (pathStr.length > 10) {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
++                    } else {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
++                    }
++                    pathArr[pathArr.length] = pathStr;
++                }
++            }
++            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
++            //Prevent flickering
++            if (this.dompath.innerHTML != str) {
++                this.dompath.innerHTML = str;
++            }
++        },
++        /**
++        * @private
++        * @method _fixNodes
++        * @description Fix href and imgs as well as remove invalid HTML.
++        */
++        _fixNodes: function() {
++            try {
++                var doc = this._getDoc(),
++                    els = [];
++
++                for (var v in this.invalidHTML) {
++                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                        if (v.toLowerCase() != 'span') {
++                            var tags = doc.body.getElementsByTagName(v);
++                            if (tags.length) {
++                                for (var i = 0; i < tags.length; i++) {
++                                    els.push(tags[i]);
++                                }
++                            }
++                        }
++                    }
++                }
++                for (var h = 0; h < els.length; h++) {
++                    if (els[h].parentNode) {
++                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
++                            this._swapEl(els[h], 'span', function(el) {
++                                el.className = 'yui-non';
++                            });
++                        } else {
++                            els[h].parentNode.removeChild(els[h]);
++                        }
++                    }
++                }
++                var imgs = this._getDoc().getElementsByTagName('img');
++                Dom.addClass(imgs, 'yui-img');
++            } catch(e) {}
++        },
++        /**
++        * @private
++        * @method _isNonEditable
++        * @param Event ev The Dom event being checked
++        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
++        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
++        * disable and enable the Editor's toolbar based on the noedit state.
++        * @return Boolean
++        */
++        _isNonEditable: function(ev) {
++            if (this.get('allowNoEdit')) {
++                var el = Event.getTarget(ev);
++                if (this._isElement(el, 'html')) {
++                    el = null;
++                }
++                var path = this._getDomPath(el);
++                for (var i = (path.length - 1); i > -1; i--) {
++                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
++                        //if (this.toolbar.get('disabled') === false) {
++                        //    this.toolbar.set('disabled', true);
++                        //}
++                        try {
++                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
++                        } catch (e) {}
++                        this.nodeChange();
++                        Event.stopEvent(ev);
++                        YAHOO.log('CLASS_NOEDIT found in DOM Path, stopping event', 'info', 'SimpleEditor');
++                        return true;
++                    }
++                }
++                //if (this.toolbar.get('disabled') === true) {
++                    //Should only happen once..
++                    //this.toolbar.set('disabled', false);
++                    try {
++                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
++                    } catch (e2) {}
++                //}
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _setCurrentEvent
++        * @param {Event} ev The event to cache
++        * @description Sets the current event property
++        */
++        _setCurrentEvent: function(ev) {
++            this.currentEvent = ev;
++        },
++        /**
++        * @private
++        * @method _handleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all click events inside the iFrame document.
++        */
++        _handleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.browser.webkit) {
++                var tar =Event.getTarget(ev);
++                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
++                    Event.stopEvent(ev);
++                    this.nodeChange();
++                }
++            } else {
++                this.nodeChange();
++            }
++            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mouseup events inside the iFrame document.
++        */
++        _handleMouseUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            //Don't set current event for mouseup.
++            //It get's fired after a menu is closed and gives up a bogus event to work with
++            //this._setCurrentEvent(ev);
++            var self = this;
++            if (this.browser.opera) {
++                /*
++                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
++                * @browser Opera
++                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
++                */
++                var sel = Event.getTarget(ev);
++                if (this._isElement(sel, 'img')) {
++                    this.nodeChange();
++                    if (this.operaEvent) {
++                        clearTimeout(this.operaEvent);
++                        this.operaEvent = null;
++                        this._handleDoubleClick(ev);
++                    } else {
++                        this.operaEvent = window.setTimeout(function() {
++                            self.operaEvent = false;
++                        }, 700);
++                    }
++                }
++            }
++            //This will stop Safari from selecting the entire document if you select all the text in the editor
++            if (this.browser.webkit || this.browser.opera) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++            }
++            this.nodeChange();
++            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mousedown events inside the iFrame document.
++        */
++        _handleMouseDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this.browser.webkit && this._hasSelection()) {
++                var _sel = this._getSelection();
++                if (!this.browser.webkit3) {
++                    _sel.collapse(true);
++                } else {
++                    _sel.collapseToStart();
++                }
++            }
++            if (this.browser.webkit && this._lastImage) {
++                Dom.removeClass(this._lastImage, 'selected');
++                this._lastImage = null;
++            }
++            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                    if (this._isElement(sel, 'img')) {
++                        Dom.addClass(sel, 'selected');
++                        this._lastImage = sel;
++                    }
++                }
++                if (this.currentWindow) {
++                    this.closeWindow();
++                }
++                this.nodeChange();
++            }
++            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleDoubleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all doubleclick events inside the iFrame document.
++        */
++        _handleDoubleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this._isElement(sel, 'img')) {
++                this.currentElement[0] = sel;
++                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
++                this.currentElement[0] = this._hasParent(sel, 'a');
++                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            }
++            this.nodeChange();
++            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keyup events inside the iFrame document.
++        */
++        _handleKeyUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._storeUndo();
++            this._setCurrentEvent(ev);
++            switch (ev.keyCode) {
++                case this._keyMap.SELECT_ALL.key:
++                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
++                        this.nodeChange();
++                    }
++                    break;
++                case 32: //Space Bar
++                case 35: //End
++                case 36: //Home
++                case 37: //Left Arrow
++                case 38: //Up Arrow
++                case 39: //Right Arrow
++                case 40: //Down Arrow
++                case 46: //Forward Delete
++                case 8: //Delete
++                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
++                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
++                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
++                            this.closeWindow();
++                        }
++                    } else {
++                        if (!this.browser.ie) {
++                            if (this._nodeChangeTimer) {
++                                clearTimeout(this._nodeChangeTimer);
++                            }
++                            var self = this;
++                            this._nodeChangeTimer = setTimeout(function() {
++                                self._nodeChangeTimer = null;
++                                self.nodeChange.call(self);
++                            }, 100);
++                        } else {
++                            this.nodeChange();
++                        }
++                        this.editorDirty = true;
++                    }
++                    break;
++            }
++            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyPress
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keypress events inside the iFrame document.
++        */
++        _handleKeyPress: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++
++            if (this.get('allowNoEdit')) {
++                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
++                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
++                    //Forward delete key
++                    YAHOO.log('allowNoEdit is set, forward delete key has been disabled', 'warn', 'SimpleEditor');
++                    Event.stopEvent(ev);
++                }
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            this._storeUndo();
++            if (this.browser.opera) {
++                if (ev.keyCode === 13) {
++                    var tar = this._getSelectedElement();
++                    if (!this._isElement(tar, 'li')) {
++                        this.execCommand('inserthtml', '<br>');
++                        Event.stopEvent(ev);
++                    }
++                }
++            }
++            if (this.browser.webkit) {
++                if (!this.browser.webkit3) {
++                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
++                        //This is CMD + z (for undo)
++                        if (this._hasParent(this._getSelectedElement(), 'li')) {
++                            YAHOO.log('We are in an LI and we found CMD + z, stopping the event', 'warn', 'SimpleEditor');
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++                this._listFix(ev);
++            }
++            this._fixListDupIds();
++            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keydown events inside the iFrame document.
++        */
++        _handleKeyDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            var tar = null, _range = null;
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            var doExec = false,
++                action = null,
++                value = null,
++                exec = false;
++
++            //YAHOO.log('keyCode: ' + ev.keyCode, 'info', 'SimpleEditor');
++
++            switch (ev.keyCode) {
++                case this._keyMap.FOCUS_TOOLBAR.key:
++                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
++                        var h = this.toolbar.getElementsByTagName('h2')[0];
++                        if (h && h.firstChild) {
++                            h.firstChild.focus();
++                        }
++                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
++                        //Focus After Element - Esc
++                        this.afterElement.focus();
++                    }
++                    Event.stopEvent(ev);
++                    doExec = false;
++                    break;
++                //case 76: //L
++                case this._keyMap.CREATE_LINK.key: //L
++                    if (this._hasSelection()) {
++                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
++                            var makeLink = true;
++                            if (this.get('limitCommands')) {
++                                if (!this.toolbar.getButtonByValue('createlink')) {
++                                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
++                                    makeLink = false;
++                                }
++                            }
++                            if (makeLink) {
++                                this.execCommand('createlink', '');
++                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++                                doExec = false;
++                            }
++                        }
++                    }
++                    break;
++                //case 90: //Z
++                case this._keyMap.UNDO.key:
++                case this._keyMap.REDO.key:
++                    if (this._checkKey(this._keyMap.REDO, ev)) {
++                        action = 'redo';
++                        doExec = true;
++                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
++                        action = 'undo';
++                        doExec = true;
++                    }
++                    break;
++                //case 66: //B
++                case this._keyMap.BOLD.key:
++                    if (this._checkKey(this._keyMap.BOLD, ev)) {
++                        action = 'bold';
++                        doExec = true;
++                    }
++                    break;
++                case this._keyMap.FONT_SIZE_UP.key:
++                case this._keyMap.FONT_SIZE_DOWN.key:
++                    var uk = false, dk = false;
++                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
++                        uk = true;
++                    }
++                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
++                        dk = true;
++                    }
++                    if (uk || dk) {
++                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
++                            label = parseInt(fs_button.get('label'), 10),
++                            newValue = (label + 1);
++
++                        if (dk) {
++                            newValue = (label - 1);
++                        }
++
++                        action = 'fontsize';
++                        value = newValue + 'px';
++                        doExec = true;
++                    }
++                    break;
++                //case 73: //I
++                case this._keyMap.ITALIC.key:
++                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
++                        action = 'italic';
++                        doExec = true;
++                    }
++                    break;
++                //case 85: //U
++                case this._keyMap.UNDERLINE.key:
++                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
++                        action = 'underline';
++                        doExec = true;
++                    }
++                    break;
++                case 9:
++                    if (this.browser.ie) {
++                        //Insert a tab in Internet Explorer
++                        _range = this._getRange();
++                        tar = this._getSelectedElement();
++                        if (!this._isElement(tar, 'li')) {
++                            if (_range) {
++                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
++                                _range.collapse(false);
++                                _range.select();
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                    //Firefox 3 code
++                    if (this.browser.gecko > 1.8) {
++                        tar = this._getSelectedElement();
++                        if (this._isElement(tar, 'li')) {
++                            if (ev.shiftKey) {
++                                this._getDoc().execCommand('outdent', null, '');
++                            } else {
++                                this._getDoc().execCommand('indent', null, '');
++                            }
++                            
++                        } else if (!this._hasSelection()) {
++                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
++                        }
++                        Event.stopEvent(ev);
++                    }
++                    break;
++                case 13:
++                    var p = null, i = 0;
++                    if (this.get('ptags') && !ev.shiftKey) {
++                        if (this.browser.gecko) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this._hasParent(tar, 'p')) {
++                                    p = this._getDoc().createElement('p');
++                                    p.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(p, tar);
++                                    this._selectNode(p.firstChild);
++                                } else if (this._isElement(tar, 'body')) {
++                                    this.execCommand('insertparagraph', null);
++                                    var ps = this._getDoc().body.getElementsByTagName('p');
++                                    for (i = 0; i < ps.length; i++) {
++                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
++                                            p = this._getDoc().createElement('p');
++                                            p.innerHTML = '&nbsp;';
++                                            Dom.insertAfter(p, ps[i]);
++                                            this._selectNode(p.firstChild);
++                                            ps[i].removeAttribute('_moz_dirty');
++                                        }
++                                    }
++                                } else {
++                                    YAHOO.log('Something went wrong with paragraphs, please file a bug!!', 'error', 'SimpleEditor');
++                                    doExec = true;
++                                    action = 'insertparagraph';
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                this.execCommand('insertparagraph', null);
++                                var divs = this._getDoc().body.getElementsByTagName('div');
++                                for (i = 0; i < divs.length; i++) {
++                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
++                                        Dom.addClass(divs[i], 'yui-wk-p');
++                                    }
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    } else {
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this.browser.webkit4) {
++                                    this.execCommand('insertlinebreak');
++                                } else {
++                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
++                                    var holder = this._getDoc().getElementById('yui-br'),
++                                        br = this._getDoc().createElement('br'),
++                                        caret = this._getDoc().createElement('span');
++
++                                    holder.parentNode.replaceChild(br, holder);
++                                    caret.className = 'yui-non';
++                                    caret.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(caret, br);
++                                    this._selectNode(caret);
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.ie) {
++                            YAHOO.log('Stopping P tags', 'info', 'SimpleEditor');
++                            //Insert a <br> instead of a <p></p> in Internet Explorer
++                            _range = this._getRange();
++                            tar = this._getSelectedElement();
++                            if (!this._isElement(tar, 'li')) {
++                                if (_range) {
++                                    _range.pasteHTML('<br>');
++                                    _range.collapse(false);
++                                    _range.select();
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    }
++                    break;
++            }
++            if (this.browser.ie) {
++                this._listFix(ev);
++            }
++            if (doExec && action) {
++                this.execCommand(action, value);
++                Event.stopEvent(ev);
++                this.nodeChange();
++            }
++            this._storeUndo();
++            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @property _fixListRunning
++        * @type Boolean
++        * @description Keeps more than one _fixListDupIds from running at the same time.
++        */
++        _fixListRunning: null,
++        /**
++        * @private
++        * @method _fixListDupIds
++        * @description Some browsers will duplicate the id of an LI when created in designMode.
++        * This method will fix the duplicate id issue. However it will only preserve the first element 
++        * in the document list with the unique id. 
++        */
++        _fixListDupIds: function() {
++            if (this._fixListRunning) {
++                return false;
++            }
++            if (this._getDoc()) {
++                this._fixListRunning = true;
++                var lis = this._getDoc().body.getElementsByTagName('li'),
++                    i = 0, ids = {};
++                for (i = 0; i < lis.length; i++) {
++                    if (lis[i].id) {
++                        if (ids[lis[i].id]) {
++                            lis[i].id = '';
++                        }
++                        ids[lis[i].id] = true;
++                    }
++                }
++                this._fixListRunning = false;
++            }
++        },
++        /**
++        * @private
++        * @method _listFix
++        * @param {Event} ev The event we are working on.
++        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
++        */
++        _listFix: function(ev) {
++            //YAHOO.log('Lists Fix (' + ev.keyCode + ')', 'info', 'SimpleEditor');
++            var testLi = null, par = null, preContent = false, range = null;
++            //Enter Key
++            if (this.browser.webkit) {
++                if (ev.keyCode && (ev.keyCode == 13)) {
++                    if (this._hasParent(this._getSelectedElement(), 'li')) {
++                        var tar = this._hasParent(this._getSelectedElement(), 'li');
++                        if (tar.previousSibling) {
++                            if (tar.firstChild && (tar.firstChild.length == 1)) {
++                                this._selectNode(tar);
++                            }
++                        }
++                    }
++                }
++            }
++            //Shift + Tab Key
++            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    testLi = this._hasParent(testLi, 'li');
++                    YAHOO.log('We have a SHIFT tab in an LI, reverse it..', 'info', 'SimpleEditor');
++                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
++                        YAHOO.log('We have a double parent, move up a level', 'info', 'SimpleEditor');
++                        par = this._hasParent(testLi, 'ul');
++                        if (!par) {
++                            par = this._hasParent(testLi, 'ol');
++                        }
++                        //YAHOO.log(par.previousSibling + ' :: ' + par.previousSibling.innerHTML);
++                        if (this._isElement(par.previousSibling, 'li')) {
++                            par.removeChild(testLi);
++                            par.parentNode.insertBefore(testLi, par.nextSibling);
++                            if (this.browser.ie) {
++                                range = this._getDoc().body.createTextRange();
++                                range.moveToElementText(testLi);
++                                range.collapse(false);
++                                range.select();
++                            }
++                            if (this.browser.webkit) {
++                                this._selectNode(testLi.firstChild);
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++            }
++            //Tab Key
++            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
++                YAHOO.log('List Fix - Tab', 'info', 'SimpleEditor');
++                var preLi = this._getSelectedElement();
++                if (this._hasParent(preLi, 'li')) {
++                    preContent = this._hasParent(preLi, 'li').innerHTML;
++                }
++                //YAHOO.log('preLI: ' + preLi.tagName + ' :: ' + preLi.innerHTML);
++                if (this.browser.webkit) {
++                    this._getDoc().execCommand('inserttext', false, '\t');
++                }
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    YAHOO.log('We have a tab in an LI', 'info', 'SimpleEditor');
++                    par = this._hasParent(testLi, 'li');
++                    YAHOO.log('parLI: ' + par.tagName + ' :: ' + par.innerHTML);
++                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
++                    if (this.browser.webkit) {
++                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
++                        //Remove the span element that Safari puts in
++                        if (span[0]) {
++                            par.removeChild(span[0]);
++                            par.innerHTML = Lang.trim(par.innerHTML);
++                            //Put the HTML from the LI into this new LI
++                            if (preContent) {
++                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
++                            } else {
++                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
++                            }
++                        }
++                    } else {
++                        if (preContent) {
++                            par.innerHTML = preContent + '&nbsp;';
++                        } else {
++                            par.innerHTML = '&nbsp;';
++                        }
++                    }
++
++                    par.parentNode.replaceChild(newUl, par);
++                    newUl.appendChild(par);
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
++                        if (!this.browser.webkit3) {
++                            par.parentNode.parentNode.style.display = 'list-item';
++                            setTimeout(function() {
++                                par.parentNode.parentNode.style.display = 'block';
++                            }, 1);
++                        }
++                    } else if (this.browser.ie) {
++                        range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(par);
++                        range.collapse(false);
++                        range.select();
++                    } else {
++                        this._selectNode(par);
++                    }
++                    Event.stopEvent(ev);
++                }
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++                this.nodeChange();
++            }
++        },
++        /**
++        * @method nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
++        */
++        nodeChange: function(force) {
++            var NCself = this;
++            this._storeUndo();
++            if (this.get('nodeChangeDelay')) {
++                this._nodeChangeDelayTimer = window.setTimeout(function() {
++                    NCself._nodeChangeDelayTimer = null;
++                    NCself._nodeChange.apply(NCself, arguments);
++                }, 0);
++            } else {
++                this._nodeChange();
++            }
++        },
++        /**
++        * @private
++        * @method _nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Fired from nodeChange in a setTimeout.
++        */
++        _nodeChange: function(force) {
++            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
++                thisNodeChange = Math.round(new Date().getTime() / 1000),
++                self = this;
++
++            if (force === true) {
++                this._lastNodeChange = 0;
++            }
++            
++            if ((this._lastNodeChange + threshold) < thisNodeChange) {
++                if (this._fixNodesTimer === null) {
++                    this._fixNodesTimer = window.setTimeout(function() {
++                        self._fixNodes.call(self);
++                        self._fixNodesTimer = null;
++                    }, 0);
++                }
++            }
++            this._lastNodeChange = thisNodeChange;
++            if (this.currentEvent) {
++                try {
++                    this._lastNodeChangeEvent = this.currentEvent.type;
++                } catch (e) {}
++            }
++
++            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
++            if (beforeNodeChange === false) {
++                return false;
++            }
++            if (this.get('dompath')) {
++                window.setTimeout(function() {
++                    self._writeDomPath.call(self);
++                }, 0);
++            }
++            //Check to see if we are disabled before continuing
++            if (!this.get('disabled')) {
++                if (this.STOP_NODE_CHANGE) {
++                    //Reset this var for next action
++                    this.STOP_NODE_CHANGE = false;
++                    return false;
++                } else {
++                    var sel = this._getSelection(),
++                        range = this._getRange(),
++                        el = this._getSelectedElement(),
++                        fn_button = this.toolbar.getButtonByValue('fontname'),
++                        fs_button = this.toolbar.getButtonByValue('fontsize'),
++                        undo_button = this.toolbar.getButtonByValue('undo'),
++                        redo_button = this.toolbar.getButtonByValue('redo');
++
++                    //Handle updating the toolbar with active buttons
++                    var _ex = {};
++                    if (this._lastButton) {
++                        _ex[this._lastButton.id] = true;
++                        //this._lastButton = null;
++                    }
++                    if (!this._isElement(el, 'body')) {
++                        if (fn_button) {
++                            _ex[fn_button.get('id')] = true;
++                        }
++                        if (fs_button) {
++                            _ex[fs_button.get('id')] = true;
++                        }
++                    }
++                    if (redo_button) {
++                        delete _ex[redo_button.get('id')];
++                    }
++                    this.toolbar.resetAllButtons(_ex);
++
++                    //Handle disabled buttons
++                    for (var d = 0; d < this._disabled.length; d++) {
++                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
++                        if (_button && _button.get) {
++                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
++                                //Skip
++                            } else {
++                                if (!this._hasSelection() && !this.get('insert')) {
++                                    switch (this._disabled[d]) {
++                                        case 'fontname':
++                                        case 'fontsize':
++                                            break;
++                                        default:
++                                            //No Selection - disable
++                                            this.toolbar.disableButton(_button);
++                                    }
++                                } else {
++                                    if (!this._alwaysDisabled[this._disabled[d]]) {
++                                        this.toolbar.enableButton(_button);
++                                    }
++                                }
++                                if (!this._alwaysEnabled[this._disabled[d]]) {
++                                    this.toolbar.deselectButton(_button);
++                                }
++                            }
++                        }
++                    }
++                    var path = this._getDomPath();
++                    var tag = null, cmd = null;
++                    for (var i = 0; i < path.length; i++) {
++                        tag = path[i].tagName.toLowerCase();
++                        if (path[i].getAttribute('tag')) {
++                            tag = path[i].getAttribute('tag').toLowerCase();
++                        }
++                        cmd = this._tag2cmd[tag];
++                        if (cmd === undefined) {
++                            cmd = [];
++                        }
++                        if (!Lang.isArray(cmd)) {
++                            cmd = [cmd];
++                        }
++
++                        //Bold and Italic styles
++                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
++                            cmd[cmd.length] = 'bold';
++                        }
++                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
++                            cmd[cmd.length] = 'italic';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
++                            cmd[cmd.length] = 'underline';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
++                            cmd[cmd.length] = 'strikethrough';
++                        }
++                        if (cmd.length > 0) {
++                            for (var j = 0; j < cmd.length; j++) {
++                                this.toolbar.selectButton(cmd[j]);
++                                this.toolbar.enableButton(cmd[j]);
++                            }
++                        }
++                        //Handle Alignment
++                        switch (path[i].style.textAlign.toLowerCase()) {
++                            case 'left':
++                            case 'right':
++                            case 'center':
++                            case 'justify':
++                                var alignType = path[i].style.textAlign.toLowerCase();
++                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
++                                    alignType = 'full';
++                                }
++                                this.toolbar.selectButton('justify' + alignType);
++                                this.toolbar.enableButton('justify' + alignType);
++                                break;
++                        }
++                    }
++                    //After for loop
++
++                    //Reset Font Family and Size to the inital configs
++                    if (fn_button) {
++                        var family = fn_button._configs.label._initialConfig.value;
++                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
++                        this._updateMenuChecked('fontname', family);
++                    }
++
++                    if (fs_button) {
++                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
++                    }
++
++                    var hd_button = this.toolbar.getButtonByValue('heading');
++                    if (hd_button) {
++                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
++                        this._updateMenuChecked('heading', 'none');
++                    }
++                    var img_button = this.toolbar.getButtonByValue('insertimage');
++                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
++                        this.toolbar.disableButton(img_button);
++                    }
++                    if (this._lastButton && this._lastButton.isSelected) {
++                        this.toolbar.deselectButton(this._lastButton.id);
++                    }
++                    this._undoNodeChange();
++                }
++            }
++
++            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
++        },
++        /**
++        * @private
++        * @method _updateMenuChecked
++        * @param {Object} button The command identifier of the button you want to check
++        * @param {String} value The value of the menu item you want to check
++        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
++        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
++        */
++        _updateMenuChecked: function(button, value, tbar) {
++            if (!tbar) {
++                tbar = this.toolbar;
++            }
++            var _button = tbar.getButtonByValue(button);
++            _button.checkValue(value);
++        },
++        /**
++        * @private
++        * @method _handleToolbarClick
++        * @param {Event} ev The event that triggered the button click
++        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
++        */
++        _handleToolbarClick: function(ev) {
++            var value = '';
++            var str = '';
++            var cmd = ev.button.value;
++            if (ev.button.menucmd) {
++                value = cmd;
++                cmd = ev.button.menucmd;
++            }
++            this._lastButton = ev.button;
++            if (this.STOP_EXEC_COMMAND) {
++                YAHOO.log('execCommand skipped because we found the STOP_EXEC_COMMAND flag set to true', 'warn', 'SimpleEditor');
++                YAHOO.log('NOEXEC::execCommand::(' + cmd + '), (' + value + ')', 'warn', 'SimpleEditor');
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            } else {
++                this.execCommand(cmd, value);
++                if (!this.browser.webkit) {
++                     var Fself = this;
++                     setTimeout(function() {
++                         Fself.focus.call(Fself);
++                     }, 5);
++                 }
++            }
++            Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _setupAfterElement
++        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
++        */
++        _setupAfterElement: function() {
++            if (!this.beforeElement) {
++                this.beforeElement = document.createElement('h2');
++                this.beforeElement.className = 'yui-editor-skipheader';
++                this.beforeElement.tabIndex = '-1';
++                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
++                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
++            }
++            if (!this.afterElement) {
++                this.afterElement = document.createElement('h2');
++                this.afterElement.className = 'yui-editor-skipheader';
++                this.afterElement.tabIndex = '-1';
++                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
++                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
++            }
++        },
++        /**
++        * @private
++        * @method _disableEditor
++        * @param {Boolean} disabled Pass true to disable, false to enable
++        * @description Creates a mask to place over the Editor.
++        */
++        _disableEditor: function(disabled) {
++            var iframe, par, html, height;
++            if (!this.get('disabled_iframe')) {
++                iframe = this._createIframe();
++                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
++                iframe.setStyle('height', '100%');
++                iframe.setStyle('display', 'none');
++                iframe.setStyle('visibility', 'visible');
++                this.set('disabled_iframe', iframe);
++                par = this.get('iframe').get('parentNode');
++                par.appendChild(iframe.get('element'));
++            }
++            if (!iframe) {
++                iframe = this.get('disabled_iframe');
++            }
++            if (disabled) {
++                this._orgIframe = this.get('iframe');
++
++                if (this.toolbar) {
++                    this.toolbar.set('disabled', true);
++                }
++
++                html = this.getEditorHTML();
++                height = this.get('iframe').get('offsetHeight');
++                iframe.setStyle('visibility', '');
++                iframe.setStyle('position', '');
++                iframe.setStyle('top', '');
++                iframe.setStyle('left', '');
++                this._orgIframe.setStyle('visibility', 'hidden');
++                this._orgIframe.setStyle('position', 'absolute');
++                this._orgIframe.setStyle('top', '-99999px');
++                this._orgIframe.setStyle('left', '-99999px');
++                this.set('iframe', iframe);
++                this._setInitialContent(true);
++                
++                if (!this._mask) {
++                    this._mask = document.createElement('DIV');
++                    Dom.addClass(this._mask, 'yui-editor-masked');
++                    if (this.browser.ie) {
++                        this._mask.style.height = height + 'px';
++                    }
++                    this.get('iframe').get('parentNode').appendChild(this._mask);
++                }
++                this.on('editorContentReloaded', function() {
++                    this._getDoc().body._rteLoaded = false;
++                    this.setEditorHTML(html);
++                    iframe.setStyle('display', 'block');
++                    this.unsubscribeAll('editorContentReloaded');
++                });
++            } else {
++                if (this._mask) {
++                    this._mask.parentNode.removeChild(this._mask);
++                    this._mask = null;
++                    if (this.toolbar) {
++                        this.toolbar.set('disabled', false);
++                    }
++                    iframe.setStyle('visibility', 'hidden');
++                    iframe.setStyle('position', 'absolute');
++                    iframe.setStyle('top', '-99999px');
++                    iframe.setStyle('left', '-99999px');
++                    this._orgIframe.setStyle('visibility', '');
++                    this._orgIframe.setStyle('position', '');
++                    this._orgIframe.setStyle('top', '');
++                    this._orgIframe.setStyle('left', '');
++                    this.set('iframe', this._orgIframe);
++
++                    this.focus();
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.nodeChange.call(self);
++                    }, 100);
++                }
++            }
++        },
++        /**
++        * @property SEP_DOMPATH
++        * @description The value to place in between the Dom path items
++        * @type String
++        */
++        SEP_DOMPATH: '<',
++        /**
++        * @property STR_LEAVE_EDITOR
++        * @description The accessibility string for the element after the iFrame
++        * @type String
++        */
++        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
++        /**
++        * @property STR_BEFORE_EDITOR
++        * @description The accessibility string for the element before the iFrame
++        * @type String
++        */
++        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
++        /**
++        * @property STR_TITLE
++        * @description The Title of the HTML document that is created in the iFrame
++        * @type String
++        */
++        STR_TITLE: 'Rich Text Area.',
++        /**
++        * @property STR_IMAGE_HERE
++        * @description The text to place in the URL textbox when using the blankimage.
++        * @type String
++        */
++        STR_IMAGE_HERE: 'Image URL Here',
++        /**
++        * @property STR_IMAGE_URL
++        * @description The label string for Image URL
++        * @type String
++        */
++        STR_IMAGE_URL: 'Image URL',        
++        /**
++        * @property STR_LINK_URL
++        * @description The label string for the Link URL.
++        * @type String
++        */
++        STR_LINK_URL: 'Link URL',
++        /**
++        * @protected
++        * @property STOP_EXEC_COMMAND
++        * @description Set to true when you want the default execCommand function to not process anything
++        * @type Boolean
++        */
++        STOP_EXEC_COMMAND: false,
++        /**
++        * @protected
++        * @property STOP_NODE_CHANGE
++        * @description Set to true when you want the default nodeChange function to not process anything
++        * @type Boolean
++        */
++        STOP_NODE_CHANGE: false,
++        /**
++        * @protected
++        * @property CLASS_NOEDIT
++        * @description CSS class applied to elements that are not editable.
++        * @type String
++        */
++        CLASS_NOEDIT: 'yui-noedit',
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the editors container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-editor-container',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE
++        * @description Default CSS class to apply to the editors iframe element
++        * @type String
++        */
++        CLASS_EDITABLE: 'yui-editor-editable',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE_CONT
++        * @description Default CSS class to apply to the editors iframe's parent element
++        * @type String
++        */
++        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-editor',
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: function() {
++            var br = YAHOO.env.ua;
++            //Check for webkit3
++            if (br.webkit >= 420) {
++                br.webkit3 = br.webkit;
++            } else {
++                br.webkit3 = 0;
++            }
++            if (br.webkit >= 530) {
++                br.webkit4 = br.webkit;
++            } else {
++                br.webkit4 = 0;
++            }
++            br.mac = false;
++            //Check for Mac
++            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
++                br.mac = true;
++            }
++
++            return br;
++        }(),
++        /** 
++        * @method init
++        * @description The Editor class' initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'SimpleEditor');
++
++            if (!this._defaultToolbar) {
++                this._defaultToolbar = {
++                    collapse: true,
++                    titlebar: 'Text Editing Tools',
++                    draggable: false,
++                    buttons: [
++                        { group: 'fontstyle', label: 'Font Name and Size',
++                            buttons: [
++                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
++                                    menu: [
++                                        { text: 'Arial', checked: true },
++                                        { text: 'Arial Black' },
++                                        { text: 'Comic Sans MS' },
++                                        { text: 'Courier New' },
++                                        { text: 'Lucida Console' },
++                                        { text: 'Tahoma' },
++                                        { text: 'Times New Roman' },
++                                        { text: 'Trebuchet MS' },
++                                        { text: 'Verdana' }
++                                    ]
++                                },
++                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle', label: 'Font Style',
++                            buttons: [
++                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
++                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
++                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
++                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
++                                { type: 'separator' },
++                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
++                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
++                                
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'indentlist', label: 'Lists',
++                            buttons: [
++                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
++                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'insertitem', label: 'Insert Item',
++                            buttons: [
++                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
++                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
++            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
++
++
++            this.currentElement = [];
++            this.on('contentReady', function() {
++                this.DOMReady = true;
++                this.fireQueue();
++            }, this, true);
++
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the editor.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the editor.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
++            var self = this;
++
++            /**
++            * @config setDesignMode
++            * @description Should the Editor set designMode on the document. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('setDesignMode', {
++                value: ((attr.setDesignMode === false) ? false : true)
++            });
++            /**
++            * @config nodeChangeDelay
++            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('nodeChangeDelay', {
++                value: ((attr.nodeChangeDelay === false) ? false : true)
++            });
++            /**
++            * @config maxUndo
++            * @description The max number of undo levels to store.
++            * @default 30
++            * @type Number
++            */
++            this.setAttributeConfig('maxUndo', {
++                writeOnce: true,
++                value: attr.maxUndo || 30
++            });
++
++            /**
++            * @config ptags
++            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('ptags', {
++                writeOnce: true,
++                value: attr.ptags || false
++            });
++            /**
++            * @config insert
++            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('insert', {
++                writeOnce: true,
++                value: attr.insert || false,
++                method: function(insert) {
++                    if (insert) {
++                        var buttons = {
++                            fontname: true,
++                            fontsize: true,
++                            forecolor: true,
++                            backcolor: true
++                        };
++                        var tmp = this._defaultToolbar.buttons;
++                        for (var i = 0; i < tmp.length; i++) {
++                            if (tmp[i].buttons) {
++                                for (var a = 0; a < tmp[i].buttons.length; a++) {
++                                    if (tmp[i].buttons[a].value) {
++                                        if (buttons[tmp[i].buttons[a].value]) {
++                                            delete tmp[i].buttons[a].disabled;
++                                        }
++                                    }
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @config container
++            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
++            * We will create one and place it in this container. If no container is passed we will append to document.body.
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('container', {
++                writeOnce: true,
++                value: attr.container || false
++            });
++            /**
++            * @config plainText
++            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('plainText', {
++                writeOnce: true,
++                value: attr.plainText || false
++            });
++            /**
++            * @private
++            * @config iframe
++            * @description Internal config for holding the iframe element.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @config disabled_iframe
++            * @description Internal config for holding the iframe element used when disabling the Editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('disabled_iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @depreciated - No longer used, should use this.get('element')
++            * @config textarea
++            * @description Internal config for holding the textarea element (replaced with element).
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('textarea', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @config nodeChangeThreshold
++            * @description The number of seconds that need to be in between nodeChange processing
++            * @default 3
++            * @type Number
++            */            
++            this.setAttributeConfig('nodeChangeThreshold', {
++                value: attr.nodeChangeThreshold || 3,
++                validator: YAHOO.lang.isNumber
++            });
++            /**
++            * @config allowNoEdit
++            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
++            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('allowNoEdit', {
++                value: attr.allowNoEdit || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config limitCommands
++            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('limitCommands', {
++                value: attr.limitCommands || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config element_cont
++            * @description Internal config for the editors container
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('element_cont', {
++                value: attr.element_cont
++            });
++            /**
++            * @private
++            * @config editor_wrapper
++            * @description The outter wrapper for the entire editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('editor_wrapper', {
++                value: attr.editor_wrapper || null,
++                writeOnce: true
++            });
++            /**
++            * @attribute height
++            * @description The height of the editor iframe container, not including the toolbar..
++            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
++            * @type String
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
++                method: function(height) {
++                    if (this._rendered) {
++                        //We have been rendered, change the height
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
++                                height: {
++                                    to: parseInt(height, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
++                        }
++                    }
++                }
++            });
++            /**
++            * @config autoHeight
++            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
++            * @default false
++            * @type Boolean || Number
++            */
++            this.setAttributeConfig('autoHeight', {
++                value: attr.autoHeight || false,
++                method: function(a) {
++                    if (a) {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
++                        }
++                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
++                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
++                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
++                    } else {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
++                        }
++                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
++                    }
++                }
++            });
++            /**
++            * @attribute width
++            * @description The width of the editor container.
++            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
++            * @type String
++            */            
++            this.setAttributeConfig('width', {
++                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
++                method: function(width) {
++                    if (this._rendered) {
++                        //We have been rendered, change the width
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
++                                width: {
++                                    to: parseInt(width, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            this.get('element_cont').setStyle('width', width);
++                        }
++                    }
++                }
++            });
++                        
++            /**
++            * @attribute blankimage
++            * @description The URL for the image placeholder to put in when inserting an image.
++            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
++            * @type String
++            */            
++            this.setAttributeConfig('blankimage', {
++                value: attr.blankimage || this._getBlankImage()
++            });
++            /**
++            * @attribute css
++            * @description The Base CSS used to format the content of the editor
++            * @default <code><pre>html {
++                height: 95%;
++            }
++            body {
++                height: 100%;
++                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
++            }
++            a {
++                color: blue;
++                text-decoration: underline;
++                cursor: pointer;
++            }
++            .warning-localfile {
++                border-bottom: 1px dashed red !important;
++            }
++            .yui-busy {
++                cursor: wait !important;
++            }
++            img.selected { //Safari image selection
++                border: 2px dotted #808080;
++            }
++            img {
++                cursor: pointer !important;
++                border: none;
++            }
++            </pre></code>
++            * @type String
++            */            
++            this.setAttributeConfig('css', {
++                value: attr.css || this._defaultCSS,
++                writeOnce: true
++            });
++            /**
++            * @attribute html
++            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
++            * @default This HTML requires a few things if you are to override:
++                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
++                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
++                <code>
++                <pre>
++                &lt;html&gt;
++                    &lt;head&gt;
++                        &lt;title&gt;{TITLE}&lt;/title&gt;
++                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
++                        &lt;style&gt;
++                        {CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {HIDDEN_CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {EXTRA_CSS}
++                        &lt;/style&gt;
++                    &lt;/head&gt;
++                &lt;body onload="document.body._rteLoaded = true;"&gt;
++                {CONTENT}
++                &lt;/body&gt;
++                &lt;/html&gt;
++                </pre>
++                </code>
++            * @type String
++            */            
++            this.setAttributeConfig('html', {
++                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute extracss
++            * @description Extra user defined css to load after the default SimpleEditor CSS
++            * @default ''
++            * @type String
++            */            
++            this.setAttributeConfig('extracss', {
++                value: attr.extracss || '',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute handleSubmit
++            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
++            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
++            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('handleSubmit', {
++                value: attr.handleSubmit || false,
++                method: function(exec) {
++                    if (this.get('element').form) {
++                        if (!this._formButtons) {
++                            this._formButtons = [];
++                        }
++                        if (exec) {
++                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
++                            var i = this.get('element').form.getElementsByTagName('input');
++                            for (var s = 0; s < i.length; s++) {
++                                var type = i[s].getAttribute('type');
++                                if (type && (type.toLowerCase() == 'submit')) {
++                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
++                                    this._formButtons[this._formButtons.length] = i[s];
++                                }
++                            }
++                        } else {
++                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
++                            if (this._formButtons) {
++                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @attribute disabled
++            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
++            All Toolbar buttons are also disabled so they cannot be used.
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this._rendered) {
++                        this._disableEditor(disabled);
++                    }
++                }
++            });
++            /**
++            * @config saveEl
++            * @description When save HTML is called, this element will be updated as well as the source of data.
++            * @default element
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('saveEl', {
++                value: this.get('element')
++            });
++            /**
++            * @config toolbar_cont
++            * @description Internal config for the toolbars container
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('toolbar_cont', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @attribute toolbar
++            * @description The default toolbar config.
++            * @type Object
++            */            
++            this.setAttributeConfig('toolbar', {
++                value: attr.toolbar || this._defaultToolbar,
++                writeOnce: true,
++                method: function(toolbar) {
++                    if (!toolbar.buttonType) {
++                        toolbar.buttonType = this._defaultToolbar.buttonType;
++                    }
++                    this._defaultToolbar = toolbar;
++                }
++            });
++            /**
++            * @attribute animate
++            * @description Should the editor animate window movements
++            * @default false unless Animation is found, then true
++            * @type Boolean
++            */            
++            this.setAttributeConfig('animate', {
++                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.Anim) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++            /**
++            * @config panel
++            * @description A reference to the panel we are using for windows.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('panel', {
++                value: null,
++                writeOnce: true,
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.widget.Overlay) {
++                        ret = false;
++                    }
++                    return ret;
++                }               
++            });
++            /**
++            * @attribute focusAtStart
++            * @description Should we focus the window when the content is ready?
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('focusAtStart', {
++                value: attr.focusAtStart || false,
++                writeOnce: true,
++                method: function(fs) {
++                    if (fs) {
++                        this.on('editorContentLoaded', function() {
++                            var self = this;
++                            setTimeout(function() {
++                                self.focus.call(self);
++                                self.editorDirty = false;
++                            }, 400);
++                        }, this, true);
++                    }
++                }
++            });
++            /**
++            * @attribute dompath
++            * @description Toggle the display of the current Dom path below the editor
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('dompath', {
++                value: attr.dompath || false,
++                method: function(dompath) {
++                    if (dompath && !this.dompath) {
++                        this.dompath = document.createElement('DIV');
++                        this.dompath.id = this.get('id') + '_dompath';
++                        Dom.addClass(this.dompath, 'dompath');
++                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
++                        if (this.get('iframe')) {
++                            this._writeDomPath();
++                        }
++                    } else if (!dompath && this.dompath) {
++                        this.dompath.parentNode.removeChild(this.dompath);
++                        this.dompath = null;
++                    }
++                }
++            });
++            /**
++            * @attribute markup
++            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
++            * @default "semantic"
++            * @type String
++            */            
++            this.setAttributeConfig('markup', {
++                value: attr.markup || 'semantic',
++                validator: function(markup) {
++                    switch (markup.toLowerCase()) {
++                        case 'semantic':
++                        case 'css':
++                        case 'default':
++                        case 'xhtml':
++                        return true;
++                    }
++                    return false;
++                }
++            });
++            /**
++            * @attribute removeLineBreaks
++            * @description Should we remove linebreaks and extra spaces on cleanup
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('removeLineBreaks', {
++                value: attr.removeLineBreaks || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            
++            /**
++            * @config drag
++            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
++            * @type {Boolean/String}
++            */
++            this.setAttributeConfig('drag', {
++                writeOnce: true,
++                value: attr.drag || false
++            });
++
++            /**
++            * @config resize
++            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
++            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
++            * @type Boolean
++            */
++            this.setAttributeConfig('resize', {
++                writeOnce: true,
++                value: attr.resize || false
++            });
++
++            /**
++            * @config filterWord
++            * @description Attempt to filter out MS Word HTML from the Editor's output.
++            * @type Boolean
++            */
++            this.setAttributeConfig('filterWord', {
++                value: attr.filterWord || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++        },
++        /**
++        * @private
++        * @method _getBlankImage
++        * @description Retrieves the full url of the image to use as the blank image.
++        * @return {String} The URL to the blank image
++        */
++        _getBlankImage: function() {
++            if (!this.DOMReady) {
++                this._queue[this._queue.length] = ['_getBlankImage', arguments];
++                return '';
++            }
++            var img = '';
++            if (!this._blankImageLoaded) {
++                if (YAHOO.widget.EditorInfo.blankImage) {
++                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
++                    this._blankImageLoaded = true;
++                } else {
++                    var div = document.createElement('div');
++                    div.style.position = 'absolute';
++                    div.style.top = '-9999px';
++                    div.style.left = '-9999px';
++                    div.className = this.CLASS_PREFIX + '-blankimage';
++                    document.body.appendChild(div);
++                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
++                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
++                    //Adobe AIR Code
++                    img = img.replace('app:/', '');             
++                    this.set('blankimage', img);
++                    this._blankImageLoaded = true;
++                    div.parentNode.removeChild(div);
++                    YAHOO.widget.EditorInfo.blankImage = img;
++                }
++            } else {
++                img = this.get('blankimage');
++            }
++            return img;
++        },
++        /**
++        * @private
++        * @method _handleAutoHeight
++        * @description Handles resizing the editor's height based on the content
++        */
++        _handleAutoHeight: function() {
++            var doc = this._getDoc(),
++                body = doc.body,
++                docEl = doc.documentElement;
++
++            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
++            var newHeight = body.scrollHeight;
++            if (this.browser.webkit) {
++                newHeight = docEl.scrollHeight;
++            }
++            if (newHeight < parseInt(this.get('height'), 10)) {
++                newHeight = parseInt(this.get('height'), 10);
++            }
++            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
++                var anim = this.get('animate');
++                this.set('animate', false);
++                this.set('height', newHeight + 'px');
++                this.set('animate', anim);
++                if (this.browser.ie) {
++                    //Internet Explorer needs this
++                    this.get('iframe').setStyle('height', '99%');
++                    this.get('iframe').setStyle('zoom', '1');
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.get('iframe').setStyle('height', '100%');
++                    }, 1);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _formButtons
++        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
++        * @type Array
++        */
++        _formButtons: null,
++        /**
++        * @private
++        * @property _formButtonClicked
++        * @description The form button that was clicked to submit the form.
++        * @type HTMLElement
++        */
++        _formButtonClicked: null,
++        /**
++        * @private
++        * @method _handleFormButtonClick
++        * @description The click listener assigned to each submit button in the Editor's parent form.
++        * @param {Event} ev The click event
++        */
++        _handleFormButtonClick: function(ev) {
++            var tar = Event.getTarget(ev);
++            this._formButtonClicked = tar;
++        },
++        /**
++        * @private
++        * @method _handleFormSubmit
++        * @description Handles the form submission.
++        * @param {Object} ev The Form Submit Event
++        */
++        _handleFormSubmit: function(ev) {
++            this.saveHTML();
++
++            var form = this.get('element').form,
++                tar = this._formButtonClicked || false;
++
++            Event.removeListener(form, 'submit', this._handleFormSubmit);
++            if (YAHOO.env.ua.ie) {
++                //form.fireEvent("onsubmit");
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++            } else {  // Gecko, Opera, and Safari
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++                var oEvent = document.createEvent("HTMLEvents");
++                oEvent.initEvent("submit", true, true);
++                form.dispatchEvent(oEvent);
++                if (YAHOO.env.ua.webkit) {
++                    if (YAHOO.lang.isFunction(form.submit)) {
++                        form.submit();
++                    }
++                }
++            }
++            //2.6.0
++            //Removed this, not need since removing Safari 2.x
++            //Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _handleFontSize
++        * @description Handles the font size button in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleFontSize: function(o) {
++            var button = this.toolbar.getButtonById(o.button.id);
++            var value = button.get('label') + 'px';
++            this.execCommand('fontsize', value);
++            return false;
++        },
++        /**
++        * @private
++        * @description Handles the colorpicker buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleColorPicker: function(o) {
++            var cmd = o.button;
++            var value = '#' + o.color;
++            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
++                this.execCommand(cmd, value);
++            }
++        },
++        /**
++        * @private
++        * @method _handleAlign
++        * @description Handles the alignment buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleAlign: function(o) {
++            var cmd = null;
++            for (var i = 0; i < o.button.menu.length; i++) {
++                if (o.button.menu[i].value == o.button.value) {
++                    cmd = o.button.menu[i].value;
++                }
++            }
++            var value = this._getSelection();
++
++            this.execCommand(cmd, value);
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleAfterNodeChange
++        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
++        */
++        _handleAfterNodeChange: function() {
++            var path = this._getDomPath(),
++                elm = null,
++                family = null,
++                fontsize = null,
++                validFont = false,
++                fn_button = this.toolbar.getButtonByValue('fontname'),
++                fs_button = this.toolbar.getButtonByValue('fontsize'),
++                hd_button = this.toolbar.getButtonByValue('heading');
++
++            for (var i = 0; i < path.length; i++) {
++                elm = path[i];
++
++                var tag = elm.tagName.toLowerCase();
++
++
++                if (elm.getAttribute('tag')) {
++                    tag = elm.getAttribute('tag');
++                }
++
++                family = elm.getAttribute('face');
++                if (Dom.getStyle(elm, 'font-family')) {
++                    family = Dom.getStyle(elm, 'font-family');
++                    //Adobe AIR Code
++                    family = family.replace(/'/g, '');                    
++                }
++
++                if (tag.substring(0, 1) == 'h') {
++                    if (hd_button) {
++                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
++                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
++                                hd_button.set('label', hd_button._configs.menu.value[h].text);
++                            }
++                        }
++                        this._updateMenuChecked('heading', tag);
++                    }
++                }
++            }
++
++            if (fn_button) {
++                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
++                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
++                        validFont = true;
++                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
++                    }
++                }
++                if (!validFont) {
++                    family = fn_button._configs.label._initialConfig.value;
++                }
++                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
++                if (fn_button.get('label') != familyLabel) {
++                    fn_button.set('label', familyLabel);
++                    this._updateMenuChecked('fontname', family);
++                }
++            }
++
++            if (fs_button) {
++                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
++                if ((fontsize === null) || isNaN(fontsize)) {
++                    fontsize = fs_button._configs.label._initialConfig.value;
++                }
++                fs_button.set('label', ''+fontsize);
++            }
++            
++            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
++                this.toolbar.enableButton(fn_button);
++                this.toolbar.enableButton(fs_button);
++                this.toolbar.enableButton('forecolor');
++                this.toolbar.enableButton('backcolor');
++            }
++            if (this._isElement(elm, 'img')) {
++                if (YAHOO.widget.Overlay) {
++                    this.toolbar.enableButton('createlink');
++                }
++            }
++            if (this._hasParent(elm, 'blockquote')) {
++                this.toolbar.selectButton('indent');
++                this.toolbar.disableButton('indent');
++                this.toolbar.enableButton('outdent');
++            }
++            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
++                this.toolbar.disableButton('indent');
++            }
++            this._lastButton = null;
++            
++        },
++        /**
++        * @private
++        * @method _handleInsertImageClick
++        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
++        */
++        _handleInsertImageClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('insertimage')) {
++                    YAHOO.log('Toolbar Button for (insertimage) was not found, skipping exec.', 'info', 'SimpleEditor');
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    src = 'http://';
++                if (!el) {
++                    el = this._getSelectedElement();
++                }
++                if (el) {
++                    if (el.getAttribute('src')) {
++                        src = el.getAttribute('src', 2);
++                        if (src.indexOf(this.get('blankimage')) != -1) {
++                            src = this.STR_IMAGE_HERE;
++                        }
++                    }
++                }
++                var str = prompt(this.STR_IMAGE_URL + ': ', src);
++                if ((str !== '') && (str !== null)) {
++                    el.setAttribute('src', str);
++                } else if (str === '') {
++                    el.parentNode.removeChild(el);
++                    this.currentElement = [];
++                    this.nodeChange();
++                } else if ((str === null)) {
++                    src = el.getAttribute('src', 2);
++                    if (src.indexOf(this.get('blankimage')) != -1) {
++                        el.parentNode.removeChild(el);
++                        this.currentElement = [];
++                        this.nodeChange();
++                    }
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this, true);
++        },
++        /**
++        * @private
++        * @method _handleInsertImageWindowClose
++        * @description Handles the closing of the Image Properties Window.
++        */
++        _handleInsertImageWindowClose: function() {
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _isLocalFile
++        * @param {String} url THe url/string to check
++        * @description Checks to see if a string (href or img src) is possibly a local file reference..
++        */
++        _isLocalFile: function(url) {
++            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkClick
++        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
++        */
++        _handleCreateLinkClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('createlink')) {
++                    YAHOO.log('Toolbar Button for (createlink) was not found, skipping exec.', 'info', 'SimpleEditor');
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    url = '';
++
++                if (el) {
++                    if (el.getAttribute('href', 2) !== null) {
++                        url = el.getAttribute('href', 2);
++                    }
++                }
++                var str = prompt(this.STR_LINK_URL + ': ', url);
++                if ((str !== '') && (str !== null)) {
++                    var urlValue = str;
++                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                            //Found an @ sign, prefix with mailto:
++                            urlValue = 'mailto:' + urlValue;
++                        } else {
++                            /* :// not found adding */
++                            if (urlValue.substring(0, 1) != '#') {
++                                //urlValue = 'http:/'+'/' + urlValue;
++                            }
++                        }
++                    }
++                    el.setAttribute('href', urlValue);
++                } else if (str !== null) {
++                    var _span = this._getDoc().createElement('span');
++                    _span.innerHTML = el.innerHTML;
++                    Dom.addClass(_span, 'yui-non');
++                    el.parentNode.replaceChild(_span, el);
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this);
++
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkWindowClose
++        * @description Handles the closing of the Link Properties Window.
++        */
++        _handleCreateLinkWindowClose: function() {
++            this.nodeChange();
++            this.currentElement = [];
++        },
++        /**
++        * @method render
++        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
++        */
++        render: function() {
++            if (this._rendered) {
++                return false;
++            }
++            YAHOO.log('Render', 'info', 'SimpleEditor');
++            if (!this.DOMReady) {
++                YAHOO.log('!DOMReady', 'info', 'SimpleEditor');
++                this._queue[this._queue.length] = ['render', arguments];
++                return false;
++            }
++            if (this.get('element')) {
++                if (this.get('element').tagName) {
++                    this._textarea = true;
++                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
++                        this._textarea = false;
++                    }
++                } else {
++                    YAHOO.log('No Valid Element', 'error', 'SimpleEditor');
++                    return false;
++                }
++            } else {
++                YAHOO.log('No Element', 'error', 'SimpleEditor');
++                return false;
++            }
++            this._rendered = true;
++            var self = this;
++            window.setTimeout(function() {
++                self._render.call(self);
++            }, 4);
++        },
++        /**
++        * @private
++        * @method _render
++        * @description Causes the toolbar and the editor to render and replace the textarea.
++        */
++        _render: function() {
++            var self = this;
++            this.set('textarea', this.get('element'));
++
++            this.get('element_cont').setStyle('display', 'none');
++            this.get('element_cont').addClass(this.CLASS_CONTAINER);
++            
++            this.set('iframe', this._createIframe());
++
++            window.setTimeout(function() {
++                self._setInitialContent.call(self);
++            }, 10);
++
++            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
++
++            if (this.get('disabled')) {
++                this._disableEditor(true);
++            }
++
++            var tbarConf = this.get('toolbar');
++            //Create Toolbar instance
++            if (tbarConf instanceof Toolbar) {
++                this.toolbar = tbarConf;
++                //Set the toolbar to disabled until content is loaded
++                this.toolbar.set('disabled', true);
++            } else {
++                //Set the toolbar to disabled until content is loaded
++                tbarConf.disabled = true;
++                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
++            }
++
++            YAHOO.log('fireEvent::toolbarLoaded', 'info', 'SimpleEditor');
++            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
++
++            
++            this.toolbar.on('toolbarCollapsed', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('toolbarExpanded', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
++            
++            this.toolbar.on('colorPickerClicked', function(o) {
++                this._handleColorPicker(o);
++                return false; //Stop the buttonClick event
++            }, this, true);
++
++            this.toolbar.on('alignClick', this._handleAlign, this, true);
++            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
++            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
++            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
++            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
++            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
++            
++
++            //Replace Textarea with editable area
++            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
++
++            
++            this.setStyle('visibility', 'hidden');
++            this.setStyle('position', 'absolute');
++            this.setStyle('top', '-9999px');
++            this.setStyle('left', '-9999px');
++            this.get('element_cont').appendChild(this.get('element'));
++            this.get('element_cont').setStyle('display', 'block');
++
++
++            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
++            this.get('iframe').addClass(this.CLASS_EDITABLE);
++
++            //Set height and width of editor container
++            this.get('element_cont').setStyle('width', this.get('width'));
++            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
++
++            this.get('iframe').setStyle('width', '100%'); //WIDTH
++            this.get('iframe').setStyle('height', '100%');
++
++            this._setupDD();
++
++            window.setTimeout(function() {
++                self._setupAfterElement.call(self);
++            }, 0);
++            this.fireEvent('afterRender', { type: 'afterRender', target: this });
++        },
++        /**
++        * @method execCommand
++        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
++        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
++        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
++        */
++        execCommand: function(action, value) {
++            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
++            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            }
++            this._lastCommand = action;
++            this._setMarkupType(action);
++            if (this.browser.ie) {
++                this._getWindow().focus();
++            }
++            var exec = true;
++            
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue(action)) {
++                    YAHOO.log('Toolbar Button for (' + action + ') was not found, skipping exec.', 'info', 'SimpleEditor');
++                    exec = false;
++                }
++            }
++
++            this.editorDirty = true;
++            
++            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
++                YAHOO.log('Found execCommand override method: (cmd_' + action.toLowerCase() + ')', 'info', 'SimpleEditor');
++                var retValue = this['cmd_' + action.toLowerCase()](value);
++                exec = retValue[0];
++                if (retValue[1]) {
++                    action = retValue[1];
++                }
++                if (retValue[2]) {
++                    value = retValue[2];
++                }
++            }
++            if (exec) {
++                YAHOO.log('execCommand::(' + action + '), (' + value + ')', 'info', 'SimpleEditor');
++                try {
++                    this._getDoc().execCommand(action, false, value);
++                } catch(e) {
++                    YAHOO.log('execCommand Failed', 'error', 'SimpleEditor');
++                }
++            } else {
++                YAHOO.log('OVERRIDE::execCommand::(' + action + '),(' + value + ') skipped', 'warn', 'SimpleEditor');
++            }
++            this.on('afterExecCommand', function() {
++                this.unsubscribeAll('afterExecCommand');
++                this.nodeChange();
++            }, this, true);
++            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            
++        },
++    /* {{{  Command Overrides */
++
++        /**
++        * @method cmd_bold
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
++        */
++        cmd_bold: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontWeight == 'bold') {
++                        el.style.fontWeight = '';
++                        var b = this._getDoc().createElement('b'),
++                        par = el.parentNode;
++                        par.replaceChild(b, el);
++                        b.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_italic
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
++        */
++
++        cmd_italic: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontStyle == 'italic') {
++                        el.style.fontStyle = '';
++                        var i = this._getDoc().createElement('i'),
++                        par = el.parentNode;
++                        par.replaceChild(i, el);
++                        i.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++
++
++        /**
++        * @method cmd_underline
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
++        */
++        cmd_underline: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span')) {
++                    if (el.style.textDecoration == 'underline') {
++                        el.style.textDecoration = 'none';
++                    } else {
++                        el.style.textDecoration = 'underline';
++                    }
++                    return [false];
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_backcolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
++        */
++        cmd_backcolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement(),
++                action = 'backcolor';
++
++            if (this.browser.gecko || this.browser.opera) {
++                this._setEditorStyle(true);
++                action = 'hilitecolor';
++            }
++
++            if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                el.style.backgroundColor = value;
++                this._selectNode(el);
++                exec = false;
++            } else {
++                if (this.get('insert')) {
++                    el = this._createInsertElement({ backgroundColor: value });
++                } else {
++                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            }
++
++            return [exec, action];
++        },
++        /**
++        * @method cmd_forecolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
++        */
++        cmd_forecolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement();
++                
++                if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                    Dom.setStyle(el, 'color', value);
++                    this._selectNode(el);
++                    exec = false;
++                } else {
++                    if (this.get('insert')) {
++                        el = this._createInsertElement({ color: value });
++                    } else {
++                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                    exec = false;
++                }
++                return [exec];
++        },
++        /**
++        * @method cmd_unlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
++        */
++        cmd_unlink: function(value) {
++            this._swapEl(this.currentElement[0], 'span', function(el) {
++                el.className = 'yui-non';
++            });
++            return [false];
++        },
++        /**
++        * @method cmd_createlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
++        */
++        cmd_createlink: function(value) {
++            var el = this._getSelectedElement(), _a = null;
++            if (this._hasParent(el, 'a')) {
++                this.currentElement[0] = this._hasParent(el, 'a');
++            } else if (this._isElement(el, 'li')) {
++                _a = this._getDoc().createElement('a');
++                _a.innerHTML = el.innerHTML;
++                el.innerHTML = '';
++                el.appendChild(_a);
++                this.currentElement[0] = _a;
++            } else if (!this._isElement(el, 'a')) {
++                this._createCurrentElement('a');
++                _a = this._swapEl(this.currentElement[0], 'a');
++                this.currentElement[0] = _a;
++            } else {
++                this.currentElement[0] = el;
++            }
++            return [false];
++        },
++        /**
++        * @method cmd_insertimage
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
++        */
++        cmd_insertimage: function(value) {
++            var exec = true, _img = null, action = 'insertimage',
++                el = this._getSelectedElement();
++
++            if (value === '') {
++                value = this.get('blankimage');
++            }
++
++            /*
++            * @knownissue Safari Cursor Position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            
++            YAHOO.log('InsertImage: ' + el.tagName, 'info', 'SimpleEditor');
++            if (this._isElement(el, 'img')) {
++                this.currentElement[0] = el;
++                exec = false;
++            } else {
++                if (this._getDoc().queryCommandEnabled(action)) {
++                    this._getDoc().execCommand(action, false, value);
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var i = 0; i < imgs.length; i++) {
++                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
++                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
++                            this.currentElement[0] = imgs[i];
++                        }
++                    }
++                    exec = false;
++                } else {
++                    if (el == this._getDoc().body) {
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this._getDoc().body.appendChild(_img);
++                    } else {
++                        this._createCurrentElement('img');
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
++                    }
++                    this.currentElement[0] = _img;
++                    exec = false;
++                }
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_inserthtml
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
++        */
++        cmd_inserthtml: function(value) {
++            var exec = true, action = 'inserthtml', _span = null, _range = null;
++            /*
++            * @knownissue Safari cursor position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
++                YAHOO.log('More Safari DOM tricks (inserthtml)', 'info', 'EditorSafari');
++                this._createCurrentElement('img');
++                _span = this._getDoc().createElement('span');
++                _span.innerHTML = value;
++                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
++                exec = false;
++            } else if (this.browser.ie) {
++                _range = this._getRange();
++                if (_range.item) {
++                    _range.item(0).outerHTML = value;
++                } else {
++                    _range.pasteHTML(value);
++                }
++                exec = false;                    
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_list
++        * @param tag The tag of the list you want to create (eg, ul or ol)
++        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
++        */
++        cmd_list: function(tag) {
++            var exec = true, list = null, li = 0, el = null, str = '',
++                selEl = this._getSelectedElement(), action = 'insertorderedlist';
++                if (tag == 'ul') {
++                    action = 'insertunorderedlist';
++                }
++            /*
++            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
++            * @browser Safari 2.x
++            * The issue with this workaround is that when applied to a set of text
++            * that has BR's in it, Safari may or may not pick up the individual items as
++            * list items. This is fixed in WebKit (Safari 3)
++            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
++            */
++            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
++            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
++                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
++                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
++                    el = selEl.parentNode;
++                    list = this._getDoc().createElement('span');
++                    YAHOO.util.Dom.addClass(list, 'yui-non');
++                    str = '';
++                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
++                    for (li = 0; li < lis.length; li++) {
++                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
++                    }
++                    list.innerHTML = str;
++                    this.currentElement[0] = el;
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                } else {
++                    YAHOO.log('Create list item', 'info', 'SimpleEditor');
++                    this._createCurrentElement(tag.toLowerCase());
++                    list = this._getDoc().createElement(tag);
++                    for (li = 0; li < this.currentElement.length; li++) {
++                        var newli = this._getDoc().createElement('li');
++                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
++                        list.appendChild(newli);
++                        if (li > 0) {
++                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
++                        }
++                    }
++                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
++                    items = list.firstChild.innerHTML.split(b_tag), i, item;
++                    if (items.length > 0) {
++                        list.innerHTML = '';
++                        for (i = 0; i < items.length; i++) {
++                            item = this._getDoc().createElement('li');
++                            item.innerHTML = items[i];
++                            list.appendChild(item);
++                        }
++                    }
++
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                    this.currentElement[0] = list;
++                    var _h = this.currentElement[0].firstChild;
++                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
++                    }
++                }
++                exec = false;
++            } else {
++                el = this._getSelectedElement();
++                YAHOO.log(el.tagName);
++                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
++                    YAHOO.log('We already have a list, undo it', 'info', 'SimpleEditor');
++                    if (this.browser.ie) {
++                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
++                            el = el.getElementsByTagName('li')[0];
++                        }
++                        YAHOO.log('Undo IE', 'info', 'SimpleEditor');
++                        str = '';
++                        var lis2 = el.parentNode.getElementsByTagName('li');
++                        for (var j = 0; j < lis2.length; j++) {
++                            str += lis2[j].innerHTML + '<br>';
++                        }
++                        var newEl = this._getDoc().createElement('span');
++                        newEl.innerHTML = str;
++                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
++                    } else {
++                        this.nodeChange();
++                        this._getDoc().execCommand(action, '', el.parentNode);
++                        this.nodeChange();
++                    }
++                    exec = false;
++                }
++                if (this.browser.opera) {
++                    var self = this;
++                    window.setTimeout(function() {
++                        var liso = self._getDoc().getElementsByTagName('li');
++                        for (var i = 0; i < liso.length; i++) {
++                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
++                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
++                            }
++                        }
++                    },30);
++                }
++                if (this.browser.ie && exec) {
++                    var html = '';
++                    if (this._getRange().html) {
++                        html = '<li>' + this._getRange().html+ '</li>';
++                    } else {
++                        var t = this._getRange().text.split('\n');
++                        if (t.length > 1) {
++                            html = '';
++                            for (var ie = 0; ie < t.length; ie++) {
++                                html += '<li>' + t[ie] + '</li>';
++                            }
++                        } else {
++                            var txt = this._getRange().text;
++                            if (txt === '') {
++                                html = '<li id="new_list_item">' + txt + '</li>';
++                            } else {
++                                html = '<li>' + txt + '</li>';
++                            }
++                        }
++                    }
++                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
++                    var new_item = this._getDoc().getElementById('new_list_item');
++                    if (new_item) {
++                        var range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(new_item);
++                        range.collapse(false);
++                        range.select();                       
++                        new_item.id = '';
++                    }
++                    exec = false;
++                }
++            }
++            return exec;
++        },
++        /**
++        * @method cmd_insertorderedlist
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
++        */
++        cmd_insertorderedlist: function(value) {
++            return [this.cmd_list('ol')];
++        },
++        /**
++        * @method cmd_insertunorderedlist 
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
++        */
++        cmd_insertunorderedlist: function(value) {
++            return [this.cmd_list('ul')];
++        },
++        /**
++        * @method cmd_fontname
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
++        */
++        cmd_fontname: function(value) {
++            var exec = true,
++                selEl = this._getSelectedElement();
++
++            this.currentFont = value;
++            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
++                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
++                exec = false;
++            } else if (this.get('insert') && !this._hasSelection()) {
++                YAHOO.log('No selection and no selected element and we are in insert mode', 'info', 'SimpleEditor');
++                var el = this._createInsertElement({ fontFamily: value });
++                exec = false;
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_fontsize
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
++        */
++        cmd_fontsize: function(value) {
++            var el = null, go = true;
++            el = this._getSelectedElement();
++            if (this.browser.webkit) {
++                if (this.currentElement[0]) {
++                    if (el == this.currentElement[0]) {
++                        go = false;
++                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                        this._selectNode(el);
++                        this.currentElement[0] = el;
++                    }
++                }
++            }
++            if (go) {
++                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
++                    el = this._getSelectedElement();
++                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                    if (this.get('insert') && this.browser.ie) {
++                        var r = this._getRange();
++                        r.collapse(false);
++                        r.select();
++                    } else {
++                        this._selectNode(el);
++                    }
++                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
++                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
++                } else {
++                    if (this.get('insert') && !this._hasSelection()) {
++                        el = this._createInsertElement({ fontSize: value });
++                        this.currentElement[0] = el;
++                        this._selectNode(this.currentElement[0]);
++                    } else {
++                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                }
++            }
++            return [false];
++        },
++    /* }}} */
++        /**
++        * @private
++        * @method _swapEl
++        * @param {HTMLElement} el The element to swap with
++        * @param {String} tagName The tagname of the element that you wish to create
++        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
++        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
++        */
++        _swapEl: function(el, tagName, callback) {
++            var _el = this._getDoc().createElement(tagName);
++            if (el) {
++                _el.innerHTML = el.innerHTML;
++            }
++            if (typeof callback == 'function') {
++                callback.call(this, _el);
++            }
++            if (el) {
++                el.parentNode.replaceChild(_el, el);
++            }
++            return _el;
++        },
++        /**
++        * @private
++        * @method _createInsertElement
++        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
++        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
++        * @return {HTMLElement}
++        */
++        _createInsertElement: function(css) {
++            this._createCurrentElement('span', css);
++            var el = this.currentElement[0];
++            if (this.browser.webkit) {
++                //Little Safari Hackery here..
++                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
++                el = el.firstChild;
++                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
++            } else if (this.browser.ie || this.browser.opera) {
++                el.innerHTML = '&nbsp;';
++            }
++            this.focus();
++            this._selectNode(el, true);
++            return el;
++        },
++        /**
++        * @private
++        * @method _createCurrentElement
++        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
++        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
++        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
++        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
++        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
++        */
++        _createCurrentElement: function(tagName, tagStyle) {
++            tagName = ((tagName) ? tagName : 'a');
++            var tar = null,
++                el = [],
++                _doc = this._getDoc();
++            
++            if (this.currentFont) {
++                if (!tagStyle) {
++                    tagStyle = {};
++                }
++                tagStyle.fontFamily = this.currentFont;
++                this.currentFont = null;
++            }
++            this.currentElement = [];
++
++            var _elCreate = function(tagName, tagStyle) {
++                var el = null;
++                tagName = ((tagName) ? tagName : 'span');
++                tagName = tagName.toLowerCase();
++                switch (tagName) {
++                    case 'h1':
++                    case 'h2':
++                    case 'h3':
++                    case 'h4':
++                    case 'h5':
++                    case 'h6':
++                        el = _doc.createElement(tagName);
++                        break;
++                    default:
++                        el = _doc.createElement(tagName);
++                        if (tagName === 'span') {
++                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
++                            YAHOO.util.Dom.addClass(el, 'yui-tag');
++                            el.setAttribute('tag', tagName);
++                        }
++
++                        for (var k in tagStyle) {
++                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
++                                el.style[k] = tagStyle[k];
++                            }
++                        }
++                        break;
++                }
++                return el;
++            };
++
++            if (!this._hasSelection()) {
++                if (this._getDoc().queryCommandEnabled('insertimage')) {
++                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var j = 0; j < imgs.length; j++) {
++                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
++                            el = _elCreate(tagName, tagStyle);
++                            imgs[j].parentNode.replaceChild(el, imgs[j]);
++                            this.currentElement[this.currentElement.length] = el;
++                        }
++                    }
++                } else {
++                    if (this.currentEvent) {
++                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
++                    } else {
++                        //For Safari..
++                        tar = this._getDoc().body;                        
++                    }
++                }
++                if (tar) {
++                    /*
++                    * @knownissue Safari Cursor Position
++                    * @browser Safari 2.x
++                    * @description The issue here is that we have no way of knowing where the cursor position is
++                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++                    */
++                    el = _elCreate(tagName, tagStyle);
++                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
++                        if (this._isElement(tar, 'html')) {
++                            tar = this._getDoc().body;
++                        }
++                        tar.appendChild(el);
++                    } else if (tar.nextSibling) {
++                        tar.parentNode.insertBefore(el, tar.nextSibling);
++                    } else {
++                        tar.parentNode.appendChild(el);
++                    }
++                    //this.currentElement = el;
++                    this.currentElement[this.currentElement.length] = el;
++                    this.currentEvent = null;
++                    if (this.browser.webkit) {
++                        //Force Safari to focus the new element
++                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                        if (this.browser.webkit3) {
++                            this._getSelection().collapseToStart();
++                        } else {
++                            this._getSelection().collapse(true);
++                        }
++                    }
++                }
++            } else {
++                //Force CSS Styling for this action...
++                this._setEditorStyle(true);
++                this._getDoc().execCommand('fontname', false, 'yui-tmp');
++                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
++
++                if (!this._isElement(this._getSelectedElement(), 'body')) {
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
++                }
++                for (var _els = 0; _els < __els.length; _els++) {
++                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
++                    for (var e = 0; e < _tmp1.length; e++) {
++                        _tmp[_tmp.length] = _tmp1[e];
++                    }
++                }
++
++                
++                for (var i = 0; i < _tmp.length; i++) {
++                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
++                        if (tagName !== 'span') {
++                            el = _elCreate(tagName, tagStyle);
++                        } else {
++                            el = _elCreate(_tmp[i].tagName, tagStyle);
++                        }
++                        el.innerHTML = _tmp[i].innerHTML;
++                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
++                            var fc = _tmp[i].getElementsByTagName('li')[0];
++                            _tmp[i].style.fontFamily = 'inherit';
++                            fc.style.fontFamily = 'inherit';
++                            el.innerHTML = fc.innerHTML;
++                            fc.innerHTML = '';
++                            fc.appendChild(el);
++                            this.currentElement[this.currentElement.length] = el;
++                        } else if (this._isElement(_tmp[i], 'li')) {
++                            _tmp[i].innerHTML = '';
++                            _tmp[i].appendChild(el);
++                            _tmp[i].style.fontFamily = 'inherit';
++                            this.currentElement[this.currentElement.length] = el;
++                        } else {
++                            if (_tmp[i].parentNode) {
++                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
++                                this.currentElement[this.currentElement.length] = el;
++                                this.currentEvent = null;
++                                if (this.browser.webkit) {
++                                    //Force Safari to focus the new element
++                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                                    if (this.browser.webkit3) {
++                                        this._getSelection().collapseToStart();
++                                    } else {
++                                        this._getSelection().collapse(true);
++                                    }
++                                }
++                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
++                                    this._getSelection().empty();
++                                }
++                                if (this.browser.gecko) {
++                                    this._getSelection().collapseToStart();
++                                }
++                            }
++                        }
++                    }
++                }
++                var len = this.currentElement.length;
++                for (var o = 0; o < len; o++) {
++                    if ((o + 1) != len) { //Skip the last one in the list
++                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
++                            if (this._isElement(this.currentElement[o], 'br')) {
++                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
++                            }
++                        }
++                    }
++                }
++            }
++        },
++        /**
++        * @method saveHTML
++        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
++        * @return String
++        */
++        saveHTML: function() {
++            var html = this.cleanHTML();
++            if (this._textarea) {
++                this.get('element').value = html;
++            } else {
++                this.get('element').innerHTML = html;
++            }
++            if (this.get('saveEl') !== this.get('element')) {
++                var out = this.get('saveEl');
++                if (Lang.isString(out)) {
++                    out = Dom.get(out);
++                }
++                if (out) {
++                    if (out.tagName.toLowerCase() === 'textarea') {
++                        out.value = html;
++                    } else {
++                        out.innerHTML = html;
++                    }
++                }
++            }
++            return html;
++        },
++        /**
++        * @method setEditorHTML
++        * @param {String} incomingHTML The html content to load into the editor
++        * @description Loads HTML into the editors body
++        */
++        setEditorHTML: function(incomingHTML) {
++            var html = this._cleanIncomingHTML(incomingHTML);
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++            this._getDoc().body.innerHTML = html;
++            this.nodeChange();
++        },
++        /**
++        * @method getEditorHTML
++        * @description Gets the unprocessed/unfiltered HTML from the editor
++        */
++        getEditorHTML: function() {
++            try {
++                var b = this._getDoc().body;
++                if (b === null) {
++                    YAHOO.log('Body is null, returning null.', 'error', 'SimpleEditor');
++                    return null;
++                }
++                return this._getDoc().body.innerHTML;
++            } catch (e) {
++                return '';
++            }
++        },
++        /**
++        * @method show
++        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
++        */
++        show: function() {
++            if (this.browser.gecko) {
++                this._setDesignMode('on');
++                this.focus();
++            }
++            if (this.browser.webkit) {
++                var self = this;
++                window.setTimeout(function() {
++                    self._setInitialContent.call(self);
++                }, 10);
++            }
++            //Adding this will close all other Editor window's when showing this one.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            //Put the iframe back in place
++            this.get('iframe').setStyle('position', 'static');
++            this.get('iframe').setStyle('left', '');
++        },
++        /**
++        * @method hide
++        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
++        */
++        hide: function() {
++            //Adding this will close all other Editor window's.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this._fixNodesTimer) {
++                clearTimeout(this._fixNodesTimer);
++                this._fixNodesTimer = null;
++            }
++            if (this._nodeChangeTimer) {
++                clearTimeout(this._nodeChangeTimer);
++                this._nodeChangeTimer = null;
++            }
++            this._lastNodeChange = 0;
++            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
++            this.get('iframe').setStyle('position', 'absolute');
++            this.get('iframe').setStyle('left', '-9999px');
++        },
++        /**
++        * @method _cleanIncomingHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the input
++        * @return {String} The filtered HTML
++        */
++        _cleanIncomingHTML: function(html) {
++            html = html.replace(/{/gi, 'RIGHT_BRACKET');
++            html = html.replace(/}/gi, 'LEFT_BRACKET');
++
++            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++            html = html.replace(/<\/strong>/gi, '</b>');   
++
++            //replace embed before em check
++            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
++
++            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++            html = html.replace(/<\/em>/gi, '</i>');
++            html = html.replace(/_moz_dirty=""/gi, '');
++            
++            //Put embed tags back in..
++            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
++            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
++            if (this.get('plainText')) {
++                YAHOO.log('Filtering as plain text', 'info', 'SimpleEditor');
++                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
++                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
++                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
++            }
++            //Removing Script Tags from the Editor
++            html = html.replace(/<script([^>]*)>/gi, '<bad>');
++            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
++            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
++            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
++            //Replace the line feeds
++            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
++            
++            //Remove Bad HTML elements (used to be script nodes)
++            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
++            //Replace the lines feeds
++            html = html.replace(/<YUI_LF>/g, '\n');
++            return html;
++        },
++        /**
++        * @method cleanHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the output
++        * @return {String} The filtered HTML
++        */
++        cleanHTML: function(html) {
++            //Start Filtering Output
++            //Begin RegExs..
++            if (!html) { 
++                html = this.getEditorHTML();
++            }
++            var markup = this.get('markup');
++            //Make some backups...
++            html = this.pre_filter_linebreaks(html, markup);
++
++            //Filter MS Word
++            html = this.filter_msword(html);
++
++		    html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
++		    html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
++
++		    html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
++		    html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
++
++		    html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
++		    html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
++		    html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
++		    html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
++
++		    html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++		    html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
++
++            //Convert b and i tags to strong and em tags
++            if ((markup == 'semantic') || (markup == 'xhtml')) {
++                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
++                html = html.replace(/<\/i>/gi, '</em>');
++                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
++                html = html.replace(/<\/b>/gi, '</strong>');
++            }
++
++            html = html.replace(/_moz_dirty=""/gi, '');
++
++            //normalize strikethrough
++            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
++            html = html.replace(/\/strike>/gi, '/span>');
++            
++            
++            //Case Changing
++            if (this.browser.ie) {
++                html = html.replace(/text-decoration/gi, 'text-decoration');
++                html = html.replace(/font-weight/gi, 'font-weight');
++                html = html.replace(/_width="([^>]*)"/gi, '');
++                html = html.replace(/_height="([^>]*)"/gi, '');
++                //Cleanup Image URL's
++                var url = this._baseHREF.replace(/\//gi, '\\/'),
++                    re = new RegExp('src="' + url, 'gi');
++                html = html.replace(re, 'src="');
++            }
++		    html = html.replace(/<font/gi, '<font');
++		    html = html.replace(/<\/font>/gi, '</font>');
++		    html = html.replace(/<span/gi, '<span');
++		    html = html.replace(/<\/span>/gi, '</span>');
++            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
++                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
++                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
++                if (this.browser.webkit) {
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
++                }
++                html = html.replace(/\/u>/gi, '/span>');
++                if (markup == 'css') {
++                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++                    html = html.replace(/<\/em>/gi, '</i>');
++                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++                    html = html.replace(/<\/strong>/gi, '</b>');
++                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
++                    html = html.replace(/\/b>/gi, '/span>');
++                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
++                    html = html.replace(/\/i>/gi, '/span>');
++                }
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            } else {
++		        html = html.replace(/<u/gi, '<u');
++		        html = html.replace(/\/u>/gi, '/u>');
++            }
++		    html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
++		    html = html.replace(/\/ol>/gi, '/ol>');
++		    html = html.replace(/<li/gi, '<li');
++		    html = html.replace(/\/li>/gi, '/li>');
++            html = this.filter_safari(html);
++
++            html = this.filter_internals(html);
++
++            html = this.filter_all_rgb(html);
++
++            //Replace our backups with the real thing
++            html = this.post_filter_linebreaks(html, markup);
++
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
++            } else {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
++            }
++		    html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
++		    html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
++
++            html = this.filter_invalid_lists(html);
++
++		    html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
++		    html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
++
++		    html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
++		    html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
++            
++            //This should fix &amp;'s in URL's
++            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
++            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
++            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
++            html = html.replace(/&amp;/gi, '&');
++            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
++            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
++            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
++
++            //Trim the output, removing whitespace from the beginning and end
++            html = YAHOO.lang.trim(html);
++
++            if (this.get('removeLineBreaks')) {
++                html = html.replace(/\n/g, '').replace(/\r/g, '');
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            }
++            
++            for (var v in this.invalidHTML) {
++                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                    if (Lang.isObject(v) && v.keepContents) {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
++                    } else {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
++                    }
++                }
++            }
++
++            /* LATER -- Add DOM manipulation
++            console.log(html);
++            var frag = document.createDocumentFragment();
++            frag.innerHTML = html;
++
++            var ps = frag.getElementsByTagName('p'),
++                len = ps.length;
++            for (var i = 0; i < len; i++) {
++                var ps2 = ps[i].getElementsByTagName('p');
++                if (ps2.length) {
++                    
++                }
++                
++            }
++            html = frag.innerHTML;
++            console.log(html);
++            */
++
++            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
++
++            return html;
++        },
++        /**
++        * @method filter_msword
++        * @param String html The HTML string to filter
++        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
++        */
++        filter_msword: function(html) {
++            if (!this.get('filterWord')) {
++                return html;
++            }
++            //Remove the ms o: tags
++            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
++            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
++
++            //Remove the ms w: tags
++            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
++
++            //Remove mso-? styles.
++            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
++
++            //Remove more bogus MS styles.
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
++            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
++            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
++            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
++            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
++
++            //Remove XML declarations
++            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
++
++            //Remove lang
++            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove language tags
++            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove onmouseover and onmouseout events (from MS Word comments effect)
++            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
++            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
++            
++            return html;
++        },
++        /**
++        * @method filter_invalid_lists
++        * @param String html The HTML string to filter
++        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
++        */
++        filter_invalid_lists: function(html) {
++            html = html.replace(/<\/li>\n/gi, '</li>');
++
++            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
++            html = html.replace(/<\/ol>/gi, '</ol></li>');
++            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
++
++            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
++            html = html.replace(/<\/ul>/gi, '</ul></li>');
++            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
++
++            html = html.replace(/<\/li>/gi, "</li>");
++            html = html.replace(/<\/ol>/gi, "</ol>");
++            html = html.replace(/<ol>/gi, "<ol>");
++            html = html.replace(/<ul>/gi, "<ul>");
++            return html;
++        },
++        /**
++        * @method filter_safari
++        * @param String html The HTML string to filter
++        * @description Filters strings specific to Safari
++        * @return String
++        */
++        filter_safari: function(html) {
++            if (this.browser.webkit) {
++                //<span class="Apple-tab-span" style="white-space:pre">	</span>
++                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
++                html = html.replace(/Apple-style-span/gi, '');
++                html = html.replace(/style="line-height: normal;"/gi, '');
++                html = html.replace(/yui-wk-div/gi, '');
++                html = html.replace(/yui-wk-p/gi, '');
++
++
++                //Remove bogus LI's
++                html = html.replace(/<li><\/li>/gi, '');
++                html = html.replace(/<li> <\/li>/gi, '');
++                html = html.replace(/<li>  <\/li>/gi, '');
++                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
++                if (this.get('ptags')) {
++		            html = html.replace(/<div([^>]*)>/g, '<p$1>');
++				    html = html.replace(/<\/div>/gi, '</p>');
++                } else {
++                    //html = html.replace(/<div>/gi, '<br>');
++                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
++				    html = html.replace(/<\/div>/gi, '');
++                }
++            }
++            return html;
++        },
++        /**
++        * @method filter_internals
++        * @param String html The HTML string to filter
++        * @description Filters internal RTE strings and bogus attrs we don't want
++        * @return String
++        */
++        filter_internals: function(html) {
++		    html = html.replace(/\r/g, '');
++            //Fix stuff we don't want
++	        html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
++            //Fix last BR in LI
++		    html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
++
++		    html = html.replace(/yui-tag-span/gi, '');
++		    html = html.replace(/yui-tag/gi, '');
++		    html = html.replace(/yui-non/gi, '');
++		    html = html.replace(/yui-img/gi, '');
++		    html = html.replace(/ tag="span"/gi, '');
++		    html = html.replace(/ class=""/gi, '');
++		    html = html.replace(/ style=""/gi, '');
++		    html = html.replace(/ class=" "/gi, '');
++		    html = html.replace(/ class="  "/gi, '');
++		    html = html.replace(/ target=""/gi, '');
++		    html = html.replace(/ title=""/gi, '');
++
++            if (this.browser.ie) {
++		        html = html.replace(/ class= /gi, '');
++		        html = html.replace(/ class= >/gi, '');
++            }
++            
++            return html;
++        },
++        /**
++        * @method filter_all_rgb
++        * @param String str The HTML string to filter
++        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
++        * @return String
++        */
++        filter_all_rgb: function(str) {
++            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
++            var arr = str.match(exp);
++            if (Lang.isArray(arr)) {
++                for (var i = 0; i < arr.length; i++) {
++                    var color = this.filter_rgb(arr[i]);
++                    str = str.replace(arr[i].toString(), color);
++                }
++            }
++            
++            return str;
++        },
++        /**
++        * @method filter_rgb
++        * @param String css The CSS string containing rgb(#,#,#);
++        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
++        * @return String
++        */
++        filter_rgb: function(css) {
++            if (css.toLowerCase().indexOf('rgb') != -1) {
++                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
++                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
++            
++                if (rgb.length == 5) {
++                    var r = parseInt(rgb[1], 10).toString(16);
++                    var g = parseInt(rgb[2], 10).toString(16);
++                    var b = parseInt(rgb[3], 10).toString(16);
++
++                    r = r.length == 1 ? '0' + r : r;
++                    g = g.length == 1 ? '0' + g : g;
++                    b = b.length == 1 ? '0' + b : b;
++
++                    css = "#" + r + g + b;
++                }
++            }
++            return css;
++        },
++        /**
++        * @method pre_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        pre_filter_linebreaks: function(html, markup) {
++            if (this.browser.webkit) {
++		        html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
++		        html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
++            }
++		    html = html.replace(/<br>/gi, '<YUI_BR>');
++		    html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
++		    html = html.replace(/<br\/>/gi, '<YUI_BR>');
++		    html = html.replace(/<br \/>/gi, '<YUI_BR>');
++		    html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
++		    html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
++            //Fix last BR
++	        html = html.replace(/<YUI_BR>$/, '');
++            //Fix last BR in P
++	        html = html.replace(/<YUI_BR><\/p>/g, '</p>');
++            if (this.browser.ie) {
++	            html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
++            }
++            return html;
++        },
++        /**
++        * @method post_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        post_filter_linebreaks: function(html, markup) {
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_BR>/g, '<br />');
++            } else {
++		        html = html.replace(/<YUI_BR>/g, '<br>');
++            }
++            return html;
++        },
++        /**
++        * @method clearEditorDoc
++        * @description Clear the doc of the Editor
++        */
++        clearEditorDoc: function() {
++            this._getDoc().body.innerHTML = '&nbsp;';
++        },
++        /**
++        * @method openWindow
++        * @description Override Method for Advanced Editor
++        */
++        openWindow: function(win) {
++        },
++        /**
++        * @method moveWindow
++        * @description Override Method for Advanced Editor
++        */
++        moveWindow: function() {
++        },
++        /**
++        * @private
++        * @method _closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        _closeWindow: function() {
++        },
++        /**
++        * @method closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        closeWindow: function() {
++            //this.unsubscribeAll('afterExecCommand');
++            this.toolbar.resetAllButtons();
++            this.focus();        
++        },
++        /**
++        * @method destroy
++        * @description Destroys the editor, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            if (this._nodeChangeDelayTimer) {
++                clearTimeout(this._nodeChangeDelayTimer);
++            }
++            this.hide();
++        
++            YAHOO.log('Destroying Editor', 'warn', 'SimpleEditor');
++            if (this.resize) {
++                YAHOO.log('Destroying Resize', 'warn', 'SimpleEditor');
++                this.resize.destroy();
++            }
++            if (this.dd) {
++                YAHOO.log('Unreg DragDrop Instance', 'warn', 'SimpleEditor');
++                this.dd.unreg();
++            }
++            if (this.get('panel')) {
++                YAHOO.log('Destroying Editor Panel', 'warn', 'SimpleEditor');
++                this.get('panel').destroy();
++            }
++            this.saveHTML();
++            this.toolbar.destroy();
++            YAHOO.log('Restoring TextArea', 'info', 'SimpleEditor');
++            this.setStyle('visibility', 'visible');
++            this.setStyle('position', 'static');
++            this.setStyle('top', '');
++            this.setStyle('left', '');
++            var textArea = this.get('element');
++            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
++            this.get('element_cont').get('element').innerHTML = '';
++            this.set('handleSubmit', false); //Remove the submit handler
++            return true;
++        },        
++        /**
++        * @method toString
++        * @description Returns a string representing the editor.
++        * @return {String}
++        */
++        toString: function() {
++            var str = 'SimpleEditor';
++            if (this.get && this.get('element_cont')) {
++                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
++            }
++            return str;
++        }
++    });
++
++/**
++* @event toolbarLoaded
++* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event cleanHTML
++* @description Event is fired after the cleanHTML method is called.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterRender
++* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorContentLoaded
++* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeNodeChange
++* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterNodeChange
++* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeExecCommand
++* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterExecCommand
++* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++
++/**
++* @event editorWindowFocus
++* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorWindowBlur
++* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++ * @description Singleton object used to track the open window objects and panels across the various open editors
++ * @class EditorInfo
++ * @static
++*/
++YAHOO.widget.EditorInfo = {
++    /**
++    * @private
++    * @property _instances
++    * @description A reference to all editors on the page.
++    * @type Object
++    */
++    _instances: {},
++    /**
++    * @private
++    * @property blankImage
++    * @description A reference to the blankImage url
++    * @type String 
++    */
++    blankImage: '',
++    /**
++    * @private
++    * @property window
++    * @description A reference to the currently open window object in any editor on the page.
++    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
++    */
++    window: {},
++    /**
++    * @private
++    * @property panel
++    * @description A reference to the currently open panel in any editor on the page.
++    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
++    */
++    panel: null,
++    /**
++    * @method getEditorById
++    * @description Returns a reference to the Editor object associated with the given textarea
++    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
++    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
++    */
++    getEditorById: function(id) {
++        if (!YAHOO.lang.isString(id)) {
++            //Not a string, assume a node Reference
++            id = id.id;
++        }
++        if (this._instances[id]) {
++            return this._instances[id];
++        }
++        return false;
++    },
++    /**
++    * @method saveAll
++    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
++    * @param {HTMLElement} form The form to check if this Editor instance belongs to
++    */
++    saveAll: function(form) {
++        var i, e, items = YAHOO.widget.EditorInfo._instances;
++        if (form) {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    e = items[i];
++                    if (e.get('element').form && (e.get('element').form == form)) {
++                        e.saveHTML();
++                    }
++                }
++            }
++        } else {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    items[i].saveHTML();
++                }
++            }
++        }
++    },
++    /**
++    * @method toString
++    * @description Returns a string representing the EditorInfo.
++    * @return {String}
++    */
++    toString: function() {
++        var len = 0;
++        for (var i in this._instances) {
++            if (Lang.hasOwnProperty(this._instances, i)) {
++                len++;
++            }
++        }
++        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
++    }
++};
++
++
++
++    
++})();
++YAHOO.register("simpleeditor", YAHOO.widget.SimpleEditor, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/editor/simpleeditor-min.js b/pylons_app/public/js/yui/editor/simpleeditor-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/simpleeditor-min.js
+@@ -0,0 +1,24 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;if(YAHOO.widget.Button){YAHOO.widget.ToolbarButtonAdvanced=YAHOO.widget.Button;YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType="rich";YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue=function(F){var E=this.getMenu().getItems();if(E.length===0){this.getMenu()._onBeforeShow();E=this.getMenu().getItems();}for(var D=0;D<E.length;D++){E[D].cfg.setProperty("checked",false);if(E[D].value==F){E[D].cfg.setProperty("checked",true);}}};}else{YAHOO.widget.ToolbarButtonAdvanced=function(){};}YAHOO.widget.ToolbarButton=function(E,D){if(C.isObject(arguments[0])&&!B.get(E).nodeType){D=E;}var G=(D||{});var F={element:null,attributes:G};if(!F.attributes.type){F.attributes.type="push";}F.element=document.createElement("span");F.element.setAttribute("unselectable","on");F.element.className="yui-button yui-"+F.attributes.type+"-button";F.element.innerHTML='<span class="first-child"><a href="#">LABEL</a></span>';F.element.firstChild.firstChild.tabIndex="-1";F.attributes.id=(F.attributes.id||B.generateId());F.element.id=F.attributes.id;YAHOO.widget.ToolbarButton.superclass.constructor.call(this,F.element,F.attributes);};YAHOO.extend(YAHOO.widget.ToolbarButton,YAHOO.util.Element,{buttonType:"normal",_handleMouseOver:function(){if(!this.get("disabled")){this.addClass("yui-button-hover");this.addClass("yui-"+this.get("type")+"-button-hover");}},_handleMouseOut:function(){this.removeClass("yui-button-hover");this.removeClass("yui-"+this.get("type")+"-button-hover");},checkValue:function(F){if(this.get("type")=="menu"){var E=this._button.options;for(var D=0;D<E.length;D++){if(E[D].value==F){E.selectedIndex=D;}}}},init:function(E,D){YAHOO.widget.ToolbarButton.superclass.init.call(this,E,D);this.on("mouseover",this._handleMouseOver,this,true);this.on("mouseout",this._handleMouseOut,this,true);this.on("click",function(F){A.stopEvent(F);return false;},this,true);},initAttributes:function(D){YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this,D);this.setAttributeConfig("value",{value:D.value});this.setAttributeConfig("menu",{value:D.menu||false});this.setAttributeConfig("type",{value:D.type,writeOnce:true,method:function(H){var G,F;if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}switch(H){case"select":case"menu":G=document.createElement("select");G.id=this.get("id");var I=this.get("menu");for(var E=0;E<I.length;E++){F=document.createElement("option");F.innerHTML=I[E].text;F.value=I[E].value;if(I[E].checked){F.selected=true;}G.appendChild(F);}this._button.parentNode.replaceChild(G,this._button);A.on(G,"change",this._handleSelect,this,true);this._button=G;break;}}});this.setAttributeConfig("disabled",{value:D.disabled||false,method:function(E){if(E){this.addClass("yui-button-disabled");this.addClass("yui-"+this.get("type")+"-button-disabled");}else{this.removeClass("yui-button-disabled");this.removeClass("yui-"+this.get("type")+"-button-disabled");}if((this.get("type")=="menu")||(this.get("type")=="select")){this._button.disabled=E;}}});this.setAttributeConfig("label",{value:D.label,method:function(E){if(!this._button){this._button=this.get("element").getElementsByTagName("a")[0];}if(this.get("type")=="push"){this._button.innerHTML=E;}}});this.setAttributeConfig("title",{value:D.title});this.setAttributeConfig("container",{value:null,writeOnce:true,method:function(E){this.appendTo(E);}});},_handleSelect:function(E){var D=A.getTarget(E);var F=D.options[D.selectedIndex].value;this.fireEvent("change",{type:"change",value:F});},getMenu:function(){return this.get("menu");},destroy:function(){A.purgeElement(this.get("element"),true);this.get("element").parentNode.removeChild(this.get("element"));for(var D in this){if(C.hasOwnProperty(this,D)){this[D]=null;}}},fireEvent:function(E,D){if(this.DOM_EVENTS[E]&&this.get("disabled")){A.stopEvent(D);return;}YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this,E,D);},toString:function(){return"ToolbarButton ("+this.get("id")+")";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F){var E=F;if(D.isString(F)){E=this.getButtonById(F);}if(D.isNumber(F)){E=this.getButtonByIndex(F);}if((!(E instanceof YAHOO.widget.ToolbarButton))&&(!(E instanceof YAHOO.widget.ToolbarButtonAdvanced))){E=this.getButtonByValue(F);}if((E instanceof YAHOO.widget.ToolbarButton)||(E instanceof YAHOO.widget.ToolbarButtonAdvanced)){return E;}return false;};YAHOO.widget.Toolbar=function(I,H){if(D.isObject(arguments[0])&&!C.get(I).nodeType){H=I;}var K={};if(H){D.augmentObject(K,H);}var J={element:null,attributes:K};if(D.isString(I)&&C.get(I)){J.element=C.get(I);}else{if(D.isObject(I)&&C.get(I)&&C.get(I).nodeType){J.element=C.get(I);}}if(!J.element){J.element=document.createElement("DIV");J.element.id=C.generateId();if(K.container&&C.get(K.container)){C.get(K.container).appendChild(J.element);}}if(!J.element.id){J.element.id=((D.isString(I))?I:C.generateId());}var F=document.createElement("fieldset");var G=document.createElement("legend");G.innerHTML="Toolbar";F.appendChild(G);var E=document.createElement("DIV");J.attributes.cont=E;C.addClass(E,"yui-toolbar-subcont");F.appendChild(E);J.element.appendChild(F);J.element.tabIndex=-1;J.attributes.element=J.element;J.attributes.id=J.element.id;this._configuredButtons=[];YAHOO.widget.Toolbar.superclass.constructor.call(this,J.element,J.attributes);};YAHOO.extend(YAHOO.widget.Toolbar,YAHOO.util.Element,{_configuredButtons:null,_addMenuClasses:function(H,E,I){C.addClass(this.element,"yui-toolbar-"+I.get("value")+"-menu");if(C.hasClass(I._button.parentNode.parentNode,"yui-toolbar-select")){C.addClass(this.element,"yui-toolbar-select-menu");}var F=this.getItems();for(var G=0;G<F.length;G++){C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-").toLowerCase():F[G]._oText.nodeValue.replace(/ /g,"-").toLowerCase()));C.addClass(F[G].element,"yui-toolbar-"+I.get("value")+"-"+((F[G].value)?F[G].value.replace(/ /g,"-"):F[G]._oText.nodeValue.replace(/ /g,"-")));
++}},buttonType:YAHOO.widget.ToolbarButton,dd:null,_colorData:{"#111111":"Obsidian","#2D2D2D":"Dark Gray","#434343":"Shale","#5B5B5B":"Flint","#737373":"Gray","#8B8B8B":"Concrete","#A2A2A2":"Gray","#B9B9B9":"Titanium","#000000":"Black","#D0D0D0":"Light Gray","#E6E6E6":"Silver","#FFFFFF":"White","#BFBF00":"Pumpkin","#FFFF00":"Yellow","#FFFF40":"Banana","#FFFF80":"Pale Yellow","#FFFFBF":"Butter","#525330":"Raw Siena","#898A49":"Mildew","#AEA945":"Olive","#7F7F00":"Paprika","#C3BE71":"Earth","#E0DCAA":"Khaki","#FCFAE1":"Cream","#60BF00":"Cactus","#80FF00":"Chartreuse","#A0FF40":"Green","#C0FF80":"Pale Lime","#DFFFBF":"Light Mint","#3B5738":"Green","#668F5A":"Lime Gray","#7F9757":"Yellow","#407F00":"Clover","#8A9B55":"Pistachio","#B7C296":"Light Jade","#E6EBD5":"Breakwater","#00BF00":"Spring Frost","#00FF80":"Pastel Green","#40FFA0":"Light Emerald","#80FFC0":"Sea Foam","#BFFFDF":"Sea Mist","#033D21":"Dark Forrest","#438059":"Moss","#7FA37C":"Medium Green","#007F40":"Pine","#8DAE94":"Yellow Gray Green","#ACC6B5":"Aqua Lung","#DDEBE2":"Sea Vapor","#00BFBF":"Fog","#00FFFF":"Cyan","#40FFFF":"Turquoise Blue","#80FFFF":"Light Aqua","#BFFFFF":"Pale Cyan","#033D3D":"Dark Teal","#347D7E":"Gray Turquoise","#609A9F":"Green Blue","#007F7F":"Seaweed","#96BDC4":"Green Gray","#B5D1D7":"Soapstone","#E2F1F4":"Light Turquoise","#0060BF":"Summer Sky","#0080FF":"Sky Blue","#40A0FF":"Electric Blue","#80C0FF":"Light Azure","#BFDFFF":"Ice Blue","#1B2C48":"Navy","#385376":"Biscay","#57708F":"Dusty Blue","#00407F":"Sea Blue","#7792AC":"Sky Blue Gray","#A8BED1":"Morning Sky","#DEEBF6":"Vapor","#0000BF":"Deep Blue","#0000FF":"Blue","#4040FF":"Cerulean Blue","#8080FF":"Evening Blue","#BFBFFF":"Light Blue","#212143":"Deep Indigo","#373E68":"Sea Blue","#444F75":"Night Blue","#00007F":"Indigo Blue","#585E82":"Dockside","#8687A4":"Blue Gray","#D2D1E1":"Light Blue Gray","#6000BF":"Neon Violet","#8000FF":"Blue Violet","#A040FF":"Violet Purple","#C080FF":"Violet Dusk","#DFBFFF":"Pale Lavender","#302449":"Cool Shale","#54466F":"Dark Indigo","#655A7F":"Dark Violet","#40007F":"Violet","#726284":"Smoky Violet","#9E8FA9":"Slate Gray","#DCD1DF":"Violet White","#BF00BF":"Royal Violet","#FF00FF":"Fuchsia","#FF40FF":"Magenta","#FF80FF":"Orchid","#FFBFFF":"Pale Magenta","#4A234A":"Dark Purple","#794A72":"Medium Purple","#936386":"Cool Granite","#7F007F":"Purple","#9D7292":"Purple Moon","#C0A0B6":"Pale Purple","#ECDAE5":"Pink Cloud","#BF005F":"Hot Pink","#FF007F":"Deep Pink","#FF409F":"Grape","#FF80BF":"Electric Pink","#FFBFDF":"Pink","#451528":"Purple Red","#823857":"Purple Dino","#A94A76":"Purple Gray","#7F003F":"Rose","#BC6F95":"Antique Mauve","#D8A5BB":"Cool Marble","#F7DDE9":"Pink Granite","#C00000":"Apple","#FF0000":"Fire Truck","#FF4040":"Pale Red","#FF8080":"Salmon","#FFC0C0":"Warm Pink","#441415":"Sepia","#82393C":"Rust","#AA4D4E":"Brick","#800000":"Brick Red","#BC6E6E":"Mauve","#D8A3A4":"Shrimp Pink","#F8DDDD":"Shell Pink","#BF5F00":"Dark Orange","#FF7F00":"Orange","#FF9F40":"Grapefruit","#FFBF80":"Canteloupe","#FFDFBF":"Wax","#482C1B":"Dark Brick","#855A40":"Dirt","#B27C51":"Tan","#7F3F00":"Nutmeg","#C49B71":"Mustard","#E1C4A8":"Pale Tan","#FDEEE0":"Marble"},_colorPicker:null,STR_COLLAPSE:"Collapse Toolbar",STR_EXPAND:"Expand Toolbar",STR_SPIN_LABEL:"Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.",STR_SPIN_UP:"Click to increase the value of this input",STR_SPIN_DOWN:"Click to decrease the value of this input",_titlebar:null,browser:YAHOO.env.ua,_buttonList:null,_buttonGroupList:null,_sep:null,_sepCount:null,_dragHandle:null,_toolbarConfigs:{renderer:true},CLASS_CONTAINER:"yui-toolbar-container",CLASS_DRAGHANDLE:"yui-toolbar-draghandle",CLASS_SEPARATOR:"yui-toolbar-separator",CLASS_DISABLED:"yui-toolbar-disabled",CLASS_PREFIX:"yui-toolbar",init:function(F,E){YAHOO.widget.Toolbar.superclass.init.call(this,F,E);},initAttributes:function(E){YAHOO.widget.Toolbar.superclass.initAttributes.call(this,E);this.addClass(this.CLASS_CONTAINER);this.setAttributeConfig("buttonType",{value:E.buttonType||"basic",writeOnce:true,validator:function(F){switch(F){case"advanced":case"basic":return true;}return false;},method:function(F){if(F=="advanced"){if(YAHOO.widget.Button){this.buttonType=YAHOO.widget.ToolbarButtonAdvanced;}else{this.buttonType=YAHOO.widget.ToolbarButton;}}else{this.buttonType=YAHOO.widget.ToolbarButton;}}});this.setAttributeConfig("buttons",{value:[],writeOnce:true,method:function(K){var I,H,J,G,F;for(I in K){if(D.hasOwnProperty(K,I)){if(K[I].type=="separator"){this.addSeparator();}else{if(K[I].group!==undefined){J=this.addButtonGroup(K[I]);if(J){G=J.length;for(F=0;F<G;F++){if(J[F]){this._configuredButtons[this._configuredButtons.length]=J[F].id;}}}}else{H=this.addButton(K[I]);if(H){this._configuredButtons[this._configuredButtons.length]=H.id;}}}}}}});this.setAttributeConfig("disabled",{value:false,method:function(F){if(this.get("disabled")===F){return false;}if(F){this.addClass(this.CLASS_DISABLED);this.set("draggable",false);this.disableAllButtons();}else{this.removeClass(this.CLASS_DISABLED);if(this._configs.draggable._initialConfig.value){this.set("draggable",true);}this.resetAllButtons();}}});this.setAttributeConfig("cont",{value:E.cont,readOnly:true});this.setAttributeConfig("grouplabels",{value:((E.grouplabels===false)?false:true),method:function(F){if(F){C.removeClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}else{C.addClass(this.get("cont"),(this.CLASS_PREFIX+"-nogrouplabels"));}}});this.setAttributeConfig("titlebar",{value:false,method:function(G){if(G){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}this._titlebar=document.createElement("DIV");this._titlebar.tabIndex="-1";A.on(this._titlebar,"focus",function(){this._handleFocus();},this,true);C.addClass(this._titlebar,this.CLASS_PREFIX+"-titlebar");if(D.isString(G)){var F=document.createElement("h2");F.tabIndex="-1";F.innerHTML='<a href="#" tabIndex="0">'+G+"</a>";
++this._titlebar.appendChild(F);A.on(F.firstChild,"click",function(H){A.stopEvent(H);});A.on([F,F.firstChild],"focus",function(){this._handleFocus();},this,true);}if(this.get("firstChild")){this.insertBefore(this._titlebar,this.get("firstChild"));}else{this.appendChild(this._titlebar);}if(this.get("collapse")){this.set("collapse",true);}}else{if(this._titlebar){if(this._titlebar&&this._titlebar.parentNode){this._titlebar.parentNode.removeChild(this._titlebar);}}}}});this.setAttributeConfig("collapse",{value:false,method:function(H){if(this._titlebar){var G=null;var F=C.getElementsByClassName("collapse","span",this._titlebar);if(H){if(F.length>0){return true;}G=document.createElement("SPAN");G.innerHTML="X";G.title=this.STR_COLLAPSE;C.addClass(G,"collapse");this._titlebar.appendChild(G);A.addListener(G,"click",function(){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}else{this.collapse();}},this,true);}else{G=C.getElementsByClassName("collapse","span",this._titlebar);if(G[0]){if(C.hasClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed")){this.collapse(false);}G[0].parentNode.removeChild(G[0]);}}}}});this.setAttributeConfig("draggable",{value:(E.draggable||false),method:function(F){if(F&&!this.get("titlebar")){if(!this._dragHandle){this._dragHandle=document.createElement("SPAN");this._dragHandle.innerHTML="|";this._dragHandle.setAttribute("title","Click to drag the toolbar");this._dragHandle.id=this.get("id")+"_draghandle";C.addClass(this._dragHandle,this.CLASS_DRAGHANDLE);if(this.get("cont").hasChildNodes()){this.get("cont").insertBefore(this._dragHandle,this.get("cont").firstChild);}else{this.get("cont").appendChild(this._dragHandle);}this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._dragHandle.id);}}else{if(this._dragHandle){this._dragHandle.parentNode.removeChild(this._dragHandle);this._dragHandle=null;this.dd=null;}}if(this._titlebar){if(F){this.dd=new YAHOO.util.DD(this.get("id"));this.dd.setHandleElId(this._titlebar);C.addClass(this._titlebar,"draggable");}else{C.removeClass(this._titlebar,"draggable");if(this.dd){this.dd.unreg();this.dd=null;}}}},validator:function(G){var F=true;if(!YAHOO.util.DD){F=false;}return F;}});},addButtonGroup:function(J){if(!this.get("element")){this._queue[this._queue.length]=["addButtonGroup",arguments];return false;}if(!this.hasClass(this.CLASS_PREFIX+"-grouped")){this.addClass(this.CLASS_PREFIX+"-grouped");}var L=document.createElement("DIV");C.addClass(L,this.CLASS_PREFIX+"-group");C.addClass(L,this.CLASS_PREFIX+"-group-"+J.group);if(J.label){var F=document.createElement("h3");F.innerHTML=J.label;L.appendChild(F);}if(!this.get("grouplabels")){C.addClass(this.get("cont"),this.CLASS_PREFIX,"-nogrouplabels");}this.get("cont").appendChild(L);var I=document.createElement("ul");L.appendChild(I);if(!this._buttonGroupList){this._buttonGroupList={};}this._buttonGroupList[J.group]=I;var K=[],H;for(var G=0;G<J.buttons.length;G++){var E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";I.appendChild(E);if((J.buttons[G].type!==undefined)&&J.buttons[G].type=="separator"){this.addSeparator(E);}else{J.buttons[G].container=E;H=this.addButton(J.buttons[G]);if(H){K[K.length]=H.id;}}}return K;},addButtonToGroup:function(G,H,I){var F=this._buttonGroupList[H],E=document.createElement("li");E.className=this.CLASS_PREFIX+"-groupitem";G.container=E;this.addButton(G,I);F.appendChild(E);},addButton:function(J,I){if(!this.get("element")){this._queue[this._queue.length]=["addButton",arguments];return false;}if(!this._buttonList){this._buttonList=[];}if(!J.container){J.container=this.get("cont");}if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){for(var P in J.menu){if(D.hasOwnProperty(J.menu,P)){var V={fn:function(Y,W,X){if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);},scope:this};J.menu[P].onclick=V;}}}}var Q={},N=false;for(var L in J){if(D.hasOwnProperty(J,L)){if(!this._toolbarConfigs[L]){Q[L]=J[L];}}}if(J.type=="select"){Q.type="menu";}if(J.type=="spin"){Q.type="push";}if(Q.type=="color"){if(YAHOO.widget.Overlay){Q=this._makeColorButton(Q);}else{N=true;}}if(Q.menu){if((YAHOO.widget.Overlay)&&(J.menu instanceof YAHOO.widget.Overlay)){J.menu.showEvent.subscribe(function(){this._button=Q;});}else{for(var O=0;O<Q.menu.length;O++){if(!Q.menu[O].value){Q.menu[O].value=Q.menu[O].text;}}if(this.browser.webkit){Q.focusmenu=false;}}}if(N){J=false;}else{this._configs.buttons.value[this._configs.buttons.value.length]=J;var T=new this.buttonType(Q);T.get("element").tabIndex="-1";T.get("element").setAttribute("role","button");T._selected=true;if(this.get("disabled")){T.set("disabled",true);}if(!J.id){J.id=T.get("id");}if(I){var F=T.get("element");var M=null;if(I.get){M=I.get("element").nextSibling;}else{if(I.nextSibling){M=I.nextSibling;}}if(M){M.parentNode.insertBefore(F,M);}}T.addClass(this.CLASS_PREFIX+"-"+T.get("value"));var S=document.createElement("span");S.className=this.CLASS_PREFIX+"-icon";T.get("element").insertBefore(S,T.get("firstChild"));if(T._button.tagName.toLowerCase()=="button"){T.get("element").setAttribute("unselectable","on");var U=document.createElement("a");U.innerHTML=T._button.innerHTML;U.href="#";U.tabIndex="-1";A.on(U,"click",function(W){A.stopEvent(W);});T._button.parentNode.replaceChild(U,T._button);T._button=U;}if(J.type=="select"){if(T._button.tagName.toLowerCase()=="select"){S.parentNode.removeChild(S);var G=T._button,R=T.get("element");R.parentNode.replaceChild(G,R);T._configs.element.value=G;}else{T.addClass(this.CLASS_PREFIX+"-select");}}if(J.type=="spin"){if(!D.isArray(J.range)){J.range=[10,100];}this._makeSpinButton(T,J);}T.get("element").setAttribute("title",T.get("label"));if(J.type!="spin"){if((YAHOO.widget.Overlay)&&(Q.menu instanceof YAHOO.widget.Overlay)){var H=function(Y){var W=true;if(Y.keyCode&&(Y.keyCode==9)){W=false;}if(W){if(this._colorPicker){this._colorPicker._button=J.value;
++}var X=T.getMenu().element;if(C.getStyle(X,"visibility")=="hidden"){T.getMenu().show();}else{T.getMenu().hide();}}YAHOO.util.Event.stopEvent(Y);};T.on("mousedown",H,J,this);T.on("keydown",H,J,this);}else{if((J.type!="menu")&&(J.type!="select")){T.on("keypress",this._buttonClick,J,this);T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);this._buttonClick(W,J);},J,this);T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});T.on("change",function(W){if(!W.target){if(!J.menucmd){J.menucmd=J.value;}J.value=W.value;this._buttonClick(W,J);}},this,true);var K=this;T.on("appendTo",function(){var W=this;if(W.getMenu()&&W.getMenu().mouseDownEvent){W.getMenu().mouseDownEvent.subscribe(function(Z,Y){var X=Y[1];YAHOO.util.Event.stopEvent(Y[0]);W._onMenuClick(Y[0],W);if(!J.menucmd){J.menucmd=J.value;}J.value=((X.value)?X.value:X._oText.nodeValue);K._buttonClick.call(K,Y[1],J);W._hideMenu();return false;});W.getMenu().clickEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});W.getMenu().mouseUpEvent.subscribe(function(Y,X){YAHOO.util.Event.stopEvent(X[0]);});}});}}}else{T.on("mousedown",function(W){YAHOO.util.Event.stopEvent(W);});T.on("click",function(W){YAHOO.util.Event.stopEvent(W);});}if(this.browser.ie){}if(this.browser.webkit){T.hasFocus=function(){return true;};}this._buttonList[this._buttonList.length]=T;if((J.type=="menu")||(J.type=="split")||(J.type=="select")){if(D.isArray(J.menu)){var E=T.getMenu();if(E&&E.renderEvent){E.renderEvent.subscribe(this._addMenuClasses,T);if(J.renderer){E.renderEvent.subscribe(J.renderer,T);}}}}}return J;},addSeparator:function(E,H){if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}var F=((E)?E:this.get("cont"));if(!this.get("element")){this._queue[this._queue.length]=["addSeparator",arguments];return false;}if(this._sepCount===null){this._sepCount=0;}if(!this._sep){this._sep=document.createElement("SPAN");C.addClass(this._sep,this.CLASS_SEPARATOR);this._sep.innerHTML="|";}var G=this._sep.cloneNode(true);this._sepCount++;C.addClass(G,this.CLASS_SEPARATOR+"-"+this._sepCount);if(H){var I=null;if(H.get){I=H.get("element").nextSibling;}else{if(H.nextSibling){I=H.nextSibling;}else{I=H;}}if(I){if(I==H){I.parentNode.appendChild(G);}else{I.parentNode.insertBefore(G,I);}}}else{F.appendChild(G);}return G;},_createColorPicker:function(H){if(C.get(H+"_colors")){C.get(H+"_colors").parentNode.removeChild(C.get(H+"_colors"));}var E=document.createElement("div");E.className="yui-toolbar-colors";E.id=H+"_colors";E.style.display="none";A.on(window,"load",function(){document.body.appendChild(E);},this,true);this._colorPicker=E;var G="";for(var F in this._colorData){if(D.hasOwnProperty(this._colorData,F)){G+='<a style="background-color: '+F+'" href="#">'+F.replace("#","")+"</a>";}}G+="<span><em>X</em><strong></strong></span>";window.setTimeout(function(){E.innerHTML=G;},0);A.on(E,"mouseover",function(M){var K=this._colorPicker;var L=K.getElementsByTagName("em")[0];var J=K.getElementsByTagName("strong")[0];var I=A.getTarget(M);if(I.tagName.toLowerCase()=="a"){L.style.backgroundColor=I.style.backgroundColor;J.innerHTML=this._colorData["#"+I.innerHTML]+"<br>"+I.innerHTML;}},this,true);A.on(E,"focus",function(I){A.stopEvent(I);});A.on(E,"click",function(I){A.stopEvent(I);});A.on(E,"mousedown",function(J){A.stopEvent(J);var I=A.getTarget(J);if(I.tagName.toLowerCase()=="a"){var L=this.fireEvent("colorPickerClicked",{type:"colorPickerClicked",target:this,button:this._colorPicker._button,color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML]});if(L!==false){var K={color:I.innerHTML,colorName:this._colorData["#"+I.innerHTML],value:this._colorPicker._button};this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:K});}this.getButtonByValue(this._colorPicker._button).getMenu().hide();}},this,true);},_resetColorPicker:function(){var F=this._colorPicker.getElementsByTagName("em")[0];var E=this._colorPicker.getElementsByTagName("strong")[0];F.style.backgroundColor="transparent";E.innerHTML="";},_makeColorButton:function(E){if(!this._colorPicker){this._createColorPicker(this.get("id"));}E.type="color";E.menu=new YAHOO.widget.Overlay(this.get("id")+"_"+E.value+"_menu",{visible:false,position:"absolute",iframe:true});E.menu.setBody("");E.menu.render(this.get("cont"));C.addClass(E.menu.element,"yui-button-menu");C.addClass(E.menu.element,"yui-color-button-menu");E.menu.beforeShowEvent.subscribe(function(){E.menu.cfg.setProperty("zindex",5);E.menu.cfg.setProperty("context",[this.getButtonById(E.id).get("element"),"tl","bl"]);this._resetColorPicker();var F=this._colorPicker;if(F.parentNode){F.parentNode.removeChild(F);}E.menu.setBody("");E.menu.appendToBody(F);this._colorPicker.style.display="block";},this,true);return E;},_makeSpinButton:function(R,L){R.addClass(this.CLASS_PREFIX+"-spinbutton");var S=this,N=R._button.parentNode.parentNode,I=L.range,H=document.createElement("a"),G=document.createElement("a");H.href="#";G.href="#";H.tabIndex="-1";G.tabIndex="-1";H.className="up";H.title=this.STR_SPIN_UP;H.innerHTML=this.STR_SPIN_UP;G.className="down";G.title=this.STR_SPIN_DOWN;G.innerHTML=this.STR_SPIN_DOWN;N.appendChild(H);N.appendChild(G);var M=YAHOO.lang.substitute(this.STR_SPIN_LABEL,{VALUE:R.get("label")});R.set("title",M);var Q=function(T){T=((T<I[0])?I[0]:T);T=((T>I[1])?I[1]:T);return T;};var P=this.browser;var F=false;var K=this.STR_SPIN_LABEL;if(this._titlebar&&this._titlebar.firstChild){F=this._titlebar.firstChild;}var E=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);V++;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var O=function(U){YAHOO.util.Event.stopEvent(U);if(!R.get("disabled")&&(U.keyCode!=9)){var V=parseInt(R.get("label"),10);
++V--;V=Q(V);R.set("label",""+V);var T=YAHOO.lang.substitute(K,{VALUE:R.get("label")});R.set("title",T);if(!P.webkit&&F){}S._buttonClick(U,L);}};var J=function(T){if(T.keyCode==38){E(T);}else{if(T.keyCode==40){O(T);}else{if(T.keyCode==107&&T.shiftKey){E(T);}else{if(T.keyCode==109&&T.shiftKey){O(T);}}}}};R.on("keydown",J,this,true);A.on(H,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(G,"mousedown",function(T){A.stopEvent(T);},this,true);A.on(H,"click",E,this,true);A.on(G,"click",O,this,true);},_buttonClick:function(L,F){var E=true;if(L&&L.type=="keypress"){if(L.keyCode==9){E=false;}else{if((L.keyCode===13)||(L.keyCode===0)||(L.keyCode===32)){}else{E=false;}}}if(E){var N=true,H=false;F.isSelected=this.isSelected(F.id);if(F.value){H=this.fireEvent(F.value+"Click",{type:F.value+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(F.menucmd&&N){H=this.fireEvent(F.menucmd+"Click",{type:F.menucmd+"Click",target:this.get("element"),button:F});if(H===false){N=false;}}if(N){this.fireEvent("buttonClick",{type:"buttonClick",target:this.get("element"),button:F});}if(F.type=="select"){var K=this.getButtonById(F.id);if(K.buttonType=="rich"){var J=F.value;for(var I=0;I<F.menu.length;I++){if(F.menu[I].value==F.value){J=F.menu[I].text;break;}}K.set("label",'<span class="yui-toolbar-'+F.menucmd+"-"+(F.value).replace(/ /g,"-").toLowerCase()+'">'+J+"</span>");var M=K.getMenu().getItems();for(var G=0;G<M.length;G++){if(M[G].value.toLowerCase()==F.value.toLowerCase()){M[G].cfg.setProperty("checked",true);}else{M[G].cfg.setProperty("checked",false);}}}}if(L){A.stopEvent(L);}}},_keyNav:null,_navCounter:null,_navigateButtons:function(F){switch(F.keyCode){case 37:case 39:if(F.keyCode==37){this._navCounter--;}else{this._navCounter++;}if(this._navCounter>(this._buttonList.length-1)){this._navCounter=0;}if(this._navCounter<0){this._navCounter=(this._buttonList.length-1);}if(this._buttonList[this._navCounter]){var E=this._buttonList[this._navCounter].get("element");if(this.browser.ie){E=this._buttonList[this._navCounter].get("element").getElementsByTagName("a")[0];}if(this._buttonList[this._navCounter].get("disabled")){this._navigateButtons(F);}else{E.focus();}}break;}},_handleFocus:function(){if(!this._keyNav){var E="keypress";if(this.browser.ie){E="keydown";}A.on(this.get("element"),E,this._navigateButtons,this,true);this._keyNav=true;this._navCounter=-1;}},getButtonById:function(G){var E=this._buttonList.length;for(var F=0;F<E;F++){if(this._buttonList[F]&&this._buttonList[F].get("id")==G){return this._buttonList[F];}}return false;},getButtonByValue:function(K){var H=this.get("buttons");if(!H){return false;}var F=H.length;for(var I=0;I<F;I++){if(H[I].group!==undefined){for(var E=0;E<H[I].buttons.length;E++){if((H[I].buttons[E].value==K)||(H[I].buttons[E].menucmd==K)){return this.getButtonById(H[I].buttons[E].id);}if(H[I].buttons[E].menu){for(var J=0;J<H[I].buttons[E].menu.length;J++){if(H[I].buttons[E].menu[J].value==K){return this.getButtonById(H[I].buttons[E].id);}}}}}else{if((H[I].value==K)||(H[I].menucmd==K)){return this.getButtonById(H[I].id);}if(H[I].menu){for(var G=0;G<H[I].menu.length;G++){if(H[I].menu[G].value==K){return this.getButtonById(H[I].id);}}}}}return false;},getButtonByIndex:function(E){if(this._buttonList[E]){return this._buttonList[E];}else{return false;}},getButtons:function(){return this._buttonList;},disableButton:function(F){var E=B.call(this,F);if(E){E.set("disabled",true);}else{return false;}},enableButton:function(F){if(this.get("disabled")){return false;}var E=B.call(this,F);if(E){if(E.get("disabled")){E.set("disabled",false);}}else{return false;}},isSelected:function(F){var E=B.call(this,F);if(E){return E._selected;}return false;},selectButton:function(I,G){var F=B.call(this,I);if(F){F.addClass("yui-button-selected");F.addClass("yui-button-"+F.get("value")+"-selected");F._selected=true;if(G){if(F.buttonType=="rich"){var H=F.getMenu().getItems();for(var E=0;E<H.length;E++){if(H[E].value==G){H[E].cfg.setProperty("checked",true);F.set("label",'<span class="yui-toolbar-'+F.get("value")+"-"+(G).replace(/ /g,"-").toLowerCase()+'">'+H[E]._oText.nodeValue+"</span>");}else{H[E].cfg.setProperty("checked",false);}}}}}else{return false;}},deselectButton:function(F){var E=B.call(this,F);if(E){E.removeClass("yui-button-selected");E.removeClass("yui-button-"+E.get("value")+"-selected");E.removeClass("yui-button-hover");E._selected=false;}else{return false;}},deselectAllButtons:function(){var E=this._buttonList.length;for(var F=0;F<E;F++){this.deselectButton(this._buttonList[F]);}},disableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.disableButton(this._buttonList[F]);}},enableAllButtons:function(){if(this.get("disabled")){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){this.enableButton(this._buttonList[F]);}},resetAllButtons:function(I){if(!D.isObject(I)){I={};}if(this.get("disabled")||!this._buttonList){return false;}var E=this._buttonList.length;for(var F=0;F<E;F++){var H=this._buttonList[F];if(H){var G=H._configs.disabled._initialConfig.value;if(I[H.get("id")]){this.enableButton(H);this.selectButton(H);}else{if(G){this.disableButton(H);}else{this.enableButton(H);}this.deselectButton(H);}}}},destroyButton:function(J){var H=B.call(this,J);if(H){var I=H.get("id"),F=[],G=0,E=this._buttonList.length;H.destroy();for(G=0;G<E;G++){if(this._buttonList[G].get("id")!=I){F[F.length]=this._buttonList[G];}}this._buttonList=F;}else{return false;}},destroy:function(){var E=this._configuredButtons.length,F,G;for(b=0;b<E;b++){this.destroyButton(this._configuredButtons[b]);}this._configuredButtons=null;this.get("element").innerHTML="";this.get("element").className="";for(G in this){if(D.hasOwnProperty(this,G)){this[G]=null;}}return true;},collapse:function(F){var E=C.getElementsByClassName("collapse","span",this._titlebar);if(F===false){C.removeClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");
++if(E[0]){C.removeClass(E[0],"collapsed");E[0].title=this.STR_COLLAPSE;}this.fireEvent("toolbarExpanded",{type:"toolbarExpanded",target:this});}else{if(E[0]){C.addClass(E[0],"collapsed");E[0].title=this.STR_EXPAND;}C.addClass(this.get("cont").parentNode,"yui-toolbar-container-collapsed");this.fireEvent("toolbarCollapsed",{type:"toolbarCollapsed",target:this});}},toString:function(){return"Toolbar (#"+this.get("element").id+") with "+this._buttonList.length+" buttons.";}});})();(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang,B=YAHOO.widget.Toolbar;YAHOO.widget.SimpleEditor=function(H,M){var G={};if(D.isObject(H)&&(!H.tagName)&&!M){D.augmentObject(G,H);H=document.createElement("textarea");this.DOMReady=true;if(G.container){var K=C.get(G.container);K.appendChild(H);}else{document.body.appendChild(H);}}else{if(M){D.augmentObject(G,M);}}var I={element:null,attributes:G},F=null;if(D.isString(H)){F=H;}else{if(I.attributes.id){F=I.attributes.id;}else{this.DOMReady=true;F=C.generateId(H);}}I.element=H;var J=document.createElement("DIV");I.attributes.element_cont=new YAHOO.util.Element(J,{id:F+"_container"});var E=document.createElement("div");C.addClass(E,"first-child");I.attributes.element_cont.appendChild(E);if(!I.attributes.toolbar_cont){I.attributes.toolbar_cont=document.createElement("DIV");I.attributes.toolbar_cont.id=F+"_toolbar";E.appendChild(I.attributes.toolbar_cont);}var L=document.createElement("DIV");E.appendChild(L);I.attributes.editor_wrapper=L;YAHOO.widget.SimpleEditor.superclass.constructor.call(this,I.element,I.attributes);};YAHOO.extend(YAHOO.widget.SimpleEditor,YAHOO.util.Element,{_resizeConfig:{handles:["br"],autoRatio:true,status:true,proxy:true,useShim:true,setSize:false},_setupResize:function(){if(!YAHOO.util.DD||!YAHOO.util.Resize){return false;}if(this.get("resize")){var E={};D.augmentObject(E,this._resizeConfig);this.resize=new YAHOO.util.Resize(this.get("element_cont").get("element"),E);this.resize.on("resize",function(G){var K=this.get("animate");this.set("animate",false);this.set("width",G.width+"px");var H=G.height,I=(this.toolbar.get("element").clientHeight+2),J=0;if(this.dompath){J=(this.dompath.clientHeight+1);}var F=(H-I-J);this.set("height",F+"px");this.get("element_cont").setStyle("height","");this.set("animate",K);},this,true);}},resize:null,_setupDD:function(){if(!YAHOO.util.DD){return false;}if(this.get("drag")){var F=this.get("drag"),E=YAHOO.util.DD;if(F==="proxy"){E=YAHOO.util.DDProxy;}this.dd=new E(this.get("element_cont").get("element"));this.toolbar.addClass("draggable");this.dd.setHandleElId(this.toolbar._titlebar);}},dd:null,_lastCommand:null,_undoNodeChange:function(){},_storeUndo:function(){},_checkKey:function(E,H){var F=false;if((H.keyCode===E.key)){if(E.mods&&(E.mods.length>0)){var I=0;for(var G=0;G<E.mods.length;G++){if(this.browser.mac){if(E.mods[G]=="ctrl"){E.mods[G]="meta";}}if(H[E.mods[G]+"Key"]===true){I++;}}if(I===E.mods.length){F=true;}}else{F=true;}}return F;},_keyMap:{SELECT_ALL:{key:65,mods:["ctrl"]},CLOSE_WINDOW:{key:87,mods:["shift","ctrl"]},FOCUS_TOOLBAR:{key:27,mods:["shift"]},FOCUS_AFTER:{key:27},FONT_SIZE_UP:{key:38,mods:["shift","ctrl"]},FONT_SIZE_DOWN:{key:40,mods:["shift","ctrl"]},CREATE_LINK:{key:76,mods:["shift","ctrl"]},BOLD:{key:66,mods:["shift","ctrl"]},ITALIC:{key:73,mods:["shift","ctrl"]},UNDERLINE:{key:85,mods:["shift","ctrl"]},UNDO:{key:90,mods:["ctrl"]},REDO:{key:90,mods:["shift","ctrl"]},JUSTIFY_LEFT:{key:219,mods:["shift","ctrl"]},JUSTIFY_CENTER:{key:220,mods:["shift","ctrl"]},JUSTIFY_RIGHT:{key:221,mods:["shift","ctrl"]}},_cleanClassName:function(E){return E.replace(/ /g,"-").toLowerCase();},_textarea:null,_docType:'<!DOCTYPE HTML PUBLIC "-/'+"/W3C/"+"/DTD HTML 4.01/"+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',editorDirty:null,_defaultCSS:"html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }",_defaultToolbar:null,_lastButton:null,_baseHREF:function(){var E=document.location.href;if(E.indexOf("?")!==-1){E=E.substring(0,E.indexOf("?"));}E=E.substring(0,E.lastIndexOf("/"))+"/";return E;}(),_lastImage:null,_blankImageLoaded:null,_fixNodesTimer:null,_nodeChangeTimer:null,_nodeChangeDelayTimer:null,_lastNodeChangeEvent:null,_lastNodeChange:0,_rendered:null,DOMReady:null,_selection:null,_mask:null,_showingHiddenElements:null,currentWindow:null,currentEvent:null,operaEvent:null,currentFont:null,currentElement:null,dompath:null,beforeElement:null,afterElement:null,invalidHTML:{form:true,input:true,button:true,select:true,link:true,html:true,body:true,iframe:true,script:true,style:true,textarea:true},toolbar:null,_contentTimer:null,_contentTimerMax:500,_contentTimerCounter:0,_disabled:["createlink","fontname","fontsize","forecolor","backcolor"],_alwaysDisabled:{undo:true,redo:true},_alwaysEnabled:{},_semantic:{"bold":true,"italic":true,"underline":true},_tag2cmd:{"b":"bold","strong":"bold","i":"italic","em":"italic","u":"underline","sup":"superscript","sub":"subscript","img":"insertimage","a":"createlink","ul":"insertunorderedlist","ol":"insertorderedlist"},_createIframe:function(){var I=document.createElement("iframe");I.id=this.get("id")+"_editor";var G={border:"0",frameBorder:"0",marginWidth:"0",marginHeight:"0",leftMargin:"0",topMargin:"0",allowTransparency:"true",width:"100%"};if(this.get("autoHeight")){G.scrolling="no";}for(var H in G){if(D.hasOwnProperty(G,H)){I.setAttribute(H,G[H]);}}var F="javascript:;";if(this.browser.ie){F="javascript:false;";}I.setAttribute("src",F);var E=new YAHOO.util.Element(I);
++E.setStyle("visibility","hidden");return E;},_isElement:function(F,E){if(F&&F.tagName&&(F.tagName.toLowerCase()==E)){return true;}if(F&&F.getAttribute&&(F.getAttribute("tag")==E)){return true;}return false;},_hasParent:function(F,E){if(!F||!F.parentNode){return false;}while(F.parentNode){if(this._isElement(F,E)){return F;}if(F.parentNode){F=F.parentNode;}else{return false;}}return false;},_getDoc:function(){var E=false;try{if(this.get("iframe").get("element").contentWindow.document){E=this.get("iframe").get("element").contentWindow.document;return E;}}catch(F){return false;}},_getWindow:function(){return this.get("iframe").get("element").contentWindow;},focus:function(){this._getWindow().focus();},_focusWindow:function(){this.focus();},_hasSelection:function(){var G=this._getSelection();var E=this._getRange();var F=false;if(!G||!E){return F;}if(this.browser.ie||this.browser.opera){if(E.text){F=true;}if(E.html){F=true;}}else{if(this.browser.webkit){if(G+""!==""){F=true;}}else{if(G&&(G.toString()!=="")&&(G!==undefined)){F=true;}}}return F;},_getSelection:function(){var E=null;if(this._getDoc()&&this._getWindow()){if(this._getDoc().selection){E=this._getDoc().selection;}else{E=this._getWindow().getSelection();}if(this.browser.webkit){if(E.baseNode){this._selection={};this._selection.baseNode=E.baseNode;this._selection.baseOffset=E.baseOffset;this._selection.extentNode=E.extentNode;this._selection.extentOffset=E.extentOffset;}else{if(this._selection!==null){E=this._getWindow().getSelection();E.setBaseAndExtent(this._selection.baseNode,this._selection.baseOffset,this._selection.extentNode,this._selection.extentOffset);this._selection=null;}}}}return E;},_selectNode:function(F,I){if(!F){return false;}var G=this._getSelection(),E=null;if(this.browser.ie){try{E=this._getDoc().body.createTextRange();E.moveToElementText(F);E.select();}catch(H){}}else{if(this.browser.webkit){if(I){G.setBaseAndExtent(F,1,F,F.innerText.length);}else{G.setBaseAndExtent(F,0,F,F.innerText.length);}}else{if(this.browser.opera){G=this._getWindow().getSelection();E=this._getDoc().createRange();E.selectNode(F);G.removeAllRanges();G.addRange(E);}else{E=this._getDoc().createRange();E.selectNodeContents(F);G.removeAllRanges();G.addRange(E);}}}this.nodeChange();},_getRange:function(){var E=this._getSelection();if(E===null){return null;}if(this.browser.webkit&&!E.getRangeAt){var H=this._getDoc().createRange();try{H.setStart(E.anchorNode,E.anchorOffset);H.setEnd(E.focusNode,E.focusOffset);}catch(G){H=this._getWindow().getSelection()+"";}return H;}if(this.browser.ie||this.browser.opera){try{return E.createRange();}catch(F){return null;}}if(E.rangeCount>0){return E.getRangeAt(0);}return null;},_setDesignMode:function(E){if(this.get("setDesignMode")){try{this._getDoc().designMode=((E.toLowerCase()=="off")?"off":"on");}catch(F){}}},_toggleDesignMode:function(){var F=this._getDoc().designMode,E=((F.toLowerCase()=="on")?"off":"on");this._setDesignMode(E);return E;},_focused:null,_handleFocus:function(E){if(!this._focused){this._focused=true;this.fireEvent("editorWindowFocus",{type:"editorWindowFocus",target:this});}},_handleBlur:function(E){if(this._focused){this._focused=false;this.fireEvent("editorWindowBlur",{type:"editorWindowBlur",target:this});}},_initEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.on(F,"mouseup",this._handleMouseUp,this,true);A.on(F,"mousedown",this._handleMouseDown,this,true);A.on(F,"click",this._handleClick,this,true);A.on(F,"dblclick",this._handleDoubleClick,this,true);A.on(F,"keypress",this._handleKeyPress,this,true);A.on(F,"keyup",this._handleKeyUp,this,true);A.on(F,"keydown",this._handleKeyDown,this,true);A.on(E,"focus",this._handleFocus,this,true);A.on(E,"blur",this._handleBlur,this,true);},_removeEditorEvents:function(){var F=this._getDoc(),E=this._getWindow();A.removeListener(F,"mouseup",this._handleMouseUp,this,true);A.removeListener(F,"mousedown",this._handleMouseDown,this,true);A.removeListener(F,"click",this._handleClick,this,true);A.removeListener(F,"dblclick",this._handleDoubleClick,this,true);A.removeListener(F,"keypress",this._handleKeyPress,this,true);A.removeListener(F,"keyup",this._handleKeyUp,this,true);A.removeListener(F,"keydown",this._handleKeyDown,this,true);A.removeListener(E,"focus",this._handleFocus,this,true);A.removeListener(E,"blur",this._handleBlur,this,true);},_fixWebkitDivs:function(){if(this.browser.webkit){var E=this._getDoc().body.getElementsByTagName("div");C.addClass(E,"yui-wk-div");}},_initEditor:function(F){if(this._editorInit){return;}this._editorInit=true;if(this.browser.ie){this._getDoc().body.style.margin="0";}if(!this.get("disabled")){this._setDesignMode("on");this._contentTimerCounter=0;}if(!this._getDoc().body){this._contentTimerCounter=0;this._editorInit=false;this._checkLoaded();return false;}if(!F){this.toolbar.on("buttonClick",this._handleToolbarClick,this,true);}if(!this.get("disabled")){this._initEditorEvents();this.toolbar.set("disabled",false);}if(F){this.fireEvent("editorContentReloaded",{type:"editorreloaded",target:this});}else{this.fireEvent("editorContentLoaded",{type:"editorLoaded",target:this});}this._fixWebkitDivs();if(this.get("dompath")){var E=this;setTimeout(function(){E._writeDomPath.call(E);E._setupResize.call(E);},150);}var H=[];for(var G in this.browser){if(this.browser[G]){H.push(G);}}if(this.get("ptags")){H.push("ptags");}C.addClass(this._getDoc().body,H.join(" "));this.nodeChange(true);},_checkLoaded:function(F){this._editorInit=false;this._contentTimerCounter++;if(this._contentTimer){clearTimeout(this._contentTimer);}if(this._contentTimerCounter>this._contentTimerMax){return false;}var H=false;try{if(this._getDoc()&&this._getDoc().body){if(this.browser.ie){if(this._getDoc().body.readyState=="complete"){H=true;}}else{if(this._getDoc().body._rteLoaded===true){H=true;}}}}catch(G){H=false;}if(H===true){this._initEditor(F);}else{var E=this;this._contentTimer=setTimeout(function(){E._checkLoaded.call(E,F);},20);}},_setInitialContent:function(F){var I=((this._textarea)?this.get("element").value:this.get("element").innerHTML),K=null;
++if(I===""){I="<br>";}var G=D.substitute(this.get("html"),{TITLE:this.STR_TITLE,CONTENT:this._cleanIncomingHTML(I),CSS:this.get("css"),HIDDEN_CSS:((this.get("hiddencss"))?this.get("hiddencss"):"/* No Hidden CSS */"),EXTRA_CSS:((this.get("extracss"))?this.get("extracss"):"/* No Extra CSS */")}),E=true;G=G.replace(/RIGHT_BRACKET/gi,"{");G=G.replace(/LEFT_BRACKET/gi,"}");if(document.compatMode!="BackCompat"){G=this._docType+"\n"+G;}else{}if(this.browser.ie||this.browser.webkit||this.browser.opera||(navigator.userAgent.indexOf("Firefox/1.5")!=-1)){try{if(this.browser.air){K=this._getDoc().implementation.createHTMLDocument();var L=this._getDoc();L.open();L.close();K.open();K.write(G);K.close();var H=L.importNode(K.getElementsByTagName("html")[0],true);L.replaceChild(H,L.getElementsByTagName("html")[0]);L.body._rteLoaded=true;}else{K=this._getDoc();K.open();K.write(G);K.close();}}catch(J){E=false;}}else{this.get("iframe").get("element").src="data:text/html;charset=utf-8,"+encodeURIComponent(G);}this.get("iframe").setStyle("visibility","");if(E){this._checkLoaded(F);}},_setMarkupType:function(E){switch(this.get("markup")){case"css":this._setEditorStyle(true);break;case"default":this._setEditorStyle(false);break;case"semantic":case"xhtml":if(this._semantic[E]){this._setEditorStyle(false);}else{this._setEditorStyle(true);}break;}},_setEditorStyle:function(F){try{this._getDoc().execCommand("useCSS",false,!F);}catch(E){}},_getSelectedElement:function(){var J=this._getDoc(),G=null,H=null,K=null,F=true;if(this.browser.ie){this.currentEvent=this._getWindow().event;G=this._getRange();if(G){K=G.item?G.item(0):G.parentElement();if(this._hasSelection()){}if(K===J.body){K=null;}}if((this.currentEvent!==null)&&(this.currentEvent.keyCode===0)){K=A.getTarget(this.currentEvent);}}else{H=this._getSelection();G=this._getRange();if(!H||!G){return null;}if(!this._hasSelection()&&this.browser.webkit3){}if(this.browser.gecko){if(G.startContainer){if(G.startContainer.nodeType===3){K=G.startContainer.parentNode;}else{if(G.startContainer.nodeType===1){K=G.startContainer;}}if(this.currentEvent){var E=A.getTarget(this.currentEvent);if(!this._isElement(E,"html")){if(K!==E){K=E;}}}}}if(F){if(H.anchorNode&&(H.anchorNode.nodeType==3)){if(H.anchorNode.parentNode){K=H.anchorNode.parentNode;}if(H.anchorNode.nextSibling!=H.focusNode.nextSibling){K=H.anchorNode.nextSibling;}}if(this._isElement(K,"br")){K=null;}if(!K){K=G.commonAncestorContainer;if(!G.collapsed){if(G.startContainer==G.endContainer){if(G.startOffset-G.endOffset<2){if(G.startContainer.hasChildNodes()){K=G.startContainer.childNodes[G.startOffset];}}}}}}}if(this.currentEvent!==null){try{switch(this.currentEvent.type){case"click":case"mousedown":case"mouseup":if(this.browser.webkit){K=A.getTarget(this.currentEvent);}break;default:break;}}catch(I){}}else{if((this.currentElement&&this.currentElement[0])&&(!this.browser.ie)){}}if(this.browser.opera||this.browser.webkit){if(this.currentEvent&&!K){K=YAHOO.util.Event.getTarget(this.currentEvent);}}if(!K||!K.tagName){K=J.body;}if(this._isElement(K,"html")){K=J.body;}if(this._isElement(K,"body")){K=J.body;}if(K&&!K.parentNode){K=J.body;}if(K===undefined){K=null;}return K;},_getDomPath:function(E){if(!E){E=this._getSelectedElement();}var F=[];while(E!==null){if(E.ownerDocument!=this._getDoc()){E=null;break;}if(E.nodeName&&E.nodeType&&(E.nodeType==1)){F[F.length]=E;}if(this._isElement(E,"body")){break;}E=E.parentNode;}if(F.length===0){if(this._getDoc()&&this._getDoc().body){F[0]=this._getDoc().body;}}return F.reverse();},_writeDomPath:function(){var K=this._getDomPath(),I=[],G="",L="";for(var E=0;E<K.length;E++){var M=K[E].tagName.toLowerCase();if((M=="ol")&&(K[E].type)){M+=":"+K[E].type;}if(C.hasClass(K[E],"yui-tag")){M=K[E].getAttribute("tag");}if((this.get("markup")=="semantic")||(this.get("markup")=="xhtml")){switch(M){case"b":M="strong";break;case"i":M="em";break;}}if(!C.hasClass(K[E],"yui-non")){if(C.hasClass(K[E],"yui-tag")){L=M;}else{G=((K[E].className!=="")?"."+K[E].className.replace(/ /g,"."):"");if((G.indexOf("yui")!=-1)||(G.toLowerCase().indexOf("apple-style-span")!=-1)){G="";}L=M+((K[E].id)?"#"+K[E].id:"")+G;}switch(M){case"body":L="body";break;case"a":if(K[E].getAttribute("href",2)){L+=":"+K[E].getAttribute("href",2).replace("mailto:","").replace("http:/"+"/","").replace("https:/"+"/","");}break;case"img":var F=K[E].height;var J=K[E].width;if(K[E].style.height){F=parseInt(K[E].style.height,10);}if(K[E].style.width){J=parseInt(K[E].style.width,10);}L+="("+J+"x"+F+")";break;}if(L.length>10){L='<span title="'+L+'">'+L.substring(0,10)+"..."+"</span>";}else{L='<span title="'+L+'">'+L+"</span>";}I[I.length]=L;}}var H=I.join(" "+this.SEP_DOMPATH+" ");if(this.dompath.innerHTML!=H){this.dompath.innerHTML=H;}},_fixNodes:function(){try{var K=this._getDoc(),H=[];for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(E.toLowerCase()!="span"){var F=K.body.getElementsByTagName(E);if(F.length){for(var G=0;G<F.length;G++){H.push(F[G]);}}}}}for(var I=0;I<H.length;I++){if(H[I].parentNode){if(D.isObject(this.invalidHTML[H[I].tagName.toLowerCase()])&&this.invalidHTML[H[I].tagName.toLowerCase()].keepContents){this._swapEl(H[I],"span",function(M){M.className="yui-non";});}else{H[I].parentNode.removeChild(H[I]);}}}var L=this._getDoc().getElementsByTagName("img");C.addClass(L,"yui-img");}catch(J){}},_isNonEditable:function(G){if(this.get("allowNoEdit")){var F=A.getTarget(G);if(this._isElement(F,"html")){F=null;}var J=this._getDomPath(F);for(var E=(J.length-1);E>-1;E--){if(C.hasClass(J[E],this.CLASS_NOEDIT)){try{this._getDoc().execCommand("enableObjectResizing",false,"false");}catch(I){}this.nodeChange();A.stopEvent(G);return true;}}try{this._getDoc().execCommand("enableObjectResizing",false,"true");}catch(H){}}return false;},_setCurrentEvent:function(E){this.currentEvent=E;},_handleClick:function(G){var F=this.fireEvent("beforeEditorClick",{type:"beforeEditorClick",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;
++}this._setCurrentEvent(G);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}if(this.browser.webkit){var E=A.getTarget(G);if(this._isElement(E,"a")||this._isElement(E.parentNode,"a")){A.stopEvent(G);this.nodeChange();}}else{this.nodeChange();}this.fireEvent("editorClick",{type:"editorClick",target:this,ev:G});},_handleMouseUp:function(G){var F=this.fireEvent("beforeEditorMouseUp",{type:"beforeEditorMouseUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}var E=this;if(this.browser.opera){var H=A.getTarget(G);if(this._isElement(H,"img")){this.nodeChange();if(this.operaEvent){clearTimeout(this.operaEvent);this.operaEvent=null;this._handleDoubleClick(G);}else{this.operaEvent=window.setTimeout(function(){E.operaEvent=false;},700);}}}if(this.browser.webkit||this.browser.opera){if(this.browser.webkit){A.stopEvent(G);}}this.nodeChange();this.fireEvent("editorMouseUp",{type:"editorMouseUp",target:this,ev:G});},_handleMouseDown:function(F){var E=this.fireEvent("beforeEditorMouseDown",{type:"beforeEditorMouseDown",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this.browser.webkit&&this._hasSelection()){var H=this._getSelection();if(!this.browser.webkit3){H.collapse(true);}else{H.collapseToStart();}}if(this.browser.webkit&&this._lastImage){C.removeClass(this._lastImage,"selected");this._lastImage=null;}if(this._isElement(G,"img")||this._isElement(G,"a")){if(this.browser.webkit){A.stopEvent(F);if(this._isElement(G,"img")){C.addClass(G,"selected");this._lastImage=G;}}if(this.currentWindow){this.closeWindow();}this.nodeChange();}this.fireEvent("editorMouseDown",{type:"editorMouseDown",target:this,ev:F});},_handleDoubleClick:function(F){var E=this.fireEvent("beforeEditorDoubleClick",{type:"beforeEditorDoubleClick",target:this,ev:F});if(E===false){return false;}if(this._isNonEditable(F)){return false;}this._setCurrentEvent(F);var G=A.getTarget(F);if(this._isElement(G,"img")){this.currentElement[0]=G;this.toolbar.fireEvent("insertimageClick",{type:"insertimageClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}else{if(this._hasParent(G,"a")){this.currentElement[0]=this._hasParent(G,"a");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});}}this.nodeChange();this.fireEvent("editorDoubleClick",{type:"editorDoubleClick",target:this,ev:F});},_handleKeyUp:function(G){var F=this.fireEvent("beforeEditorKeyUp",{type:"beforeEditorKeyUp",target:this,ev:G});if(F===false){return false;}if(this._isNonEditable(G)){return false;}this._storeUndo();this._setCurrentEvent(G);switch(G.keyCode){case this._keyMap.SELECT_ALL.key:if(this._checkKey(this._keyMap.SELECT_ALL,G)){this.nodeChange();}break;case 32:case 35:case 36:case 37:case 38:case 39:case 40:case 46:case 8:case this._keyMap.CLOSE_WINDOW.key:if((G.keyCode==this._keyMap.CLOSE_WINDOW.key)&&this.currentWindow){if(this._checkKey(this._keyMap.CLOSE_WINDOW,G)){this.closeWindow();}}else{if(!this.browser.ie){if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);}var E=this;this._nodeChangeTimer=setTimeout(function(){E._nodeChangeTimer=null;E.nodeChange.call(E);},100);}else{this.nodeChange();}this.editorDirty=true;}break;}this.fireEvent("editorKeyUp",{type:"editorKeyUp",target:this,ev:G});},_handleKeyPress:function(G){var F=this.fireEvent("beforeEditorKeyPress",{type:"beforeEditorKeyPress",target:this,ev:G});if(F===false){return false;}if(this.get("allowNoEdit")){if(G&&G.keyCode&&(G.keyCode==63272)){A.stopEvent(G);}}if(this._isNonEditable(G)){return false;}this._setCurrentEvent(G);this._storeUndo();if(this.browser.opera){if(G.keyCode===13){var E=this._getSelectedElement();if(!this._isElement(E,"li")){this.execCommand("inserthtml","<br>");A.stopEvent(G);}}}if(this.browser.webkit){if(!this.browser.webkit3){if(G.keyCode&&(G.keyCode==122)&&(G.metaKey)){if(this._hasParent(this._getSelectedElement(),"li")){A.stopEvent(G);}}}this._listFix(G);}this._fixListDupIds();this.fireEvent("editorKeyPress",{type:"editorKeyPress",target:this,ev:G});},_handleKeyDown:function(X){var Z=this.fireEvent("beforeEditorKeyDown",{type:"beforeEditorKeyDown",target:this,ev:X});if(Z===false){return false;}var U=null,E=null;if(this._isNonEditable(X)){return false;}this._setCurrentEvent(X);if(this.currentWindow){this.closeWindow();}if(this.currentWindow){this.closeWindow();}var N=false,S=null,P=null,R=false;switch(X.keyCode){case this._keyMap.FOCUS_TOOLBAR.key:if(this._checkKey(this._keyMap.FOCUS_TOOLBAR,X)){var W=this.toolbar.getElementsByTagName("h2")[0];if(W&&W.firstChild){W.firstChild.focus();}}else{if(this._checkKey(this._keyMap.FOCUS_AFTER,X)){this.afterElement.focus();}}A.stopEvent(X);N=false;break;case this._keyMap.CREATE_LINK.key:if(this._hasSelection()){if(this._checkKey(this._keyMap.CREATE_LINK,X)){var F=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){F=false;}}if(F){this.execCommand("createlink","");this.toolbar.fireEvent("createlinkClick",{type:"createlinkClick",target:this.toolbar});this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});N=false;}}}break;case this._keyMap.UNDO.key:case this._keyMap.REDO.key:if(this._checkKey(this._keyMap.REDO,X)){S="redo";N=true;}else{if(this._checkKey(this._keyMap.UNDO,X)){S="undo";N=true;}}break;case this._keyMap.BOLD.key:if(this._checkKey(this._keyMap.BOLD,X)){S="bold";N=true;}break;case this._keyMap.FONT_SIZE_UP.key:case this._keyMap.FONT_SIZE_DOWN.key:var K=false,T=false;if(this._checkKey(this._keyMap.FONT_SIZE_UP,X)){K=true;}if(this._checkKey(this._keyMap.FONT_SIZE_DOWN,X)){T=true;}if(K||T){var H=this.toolbar.getButtonByValue("fontsize"),G=parseInt(H.get("label"),10),I=(G+1);if(T){I=(G-1);}S="fontsize";P=I+"px";N=true;}break;case this._keyMap.ITALIC.key:if(this._checkKey(this._keyMap.ITALIC,X)){S="italic";
++N=true;}break;case this._keyMap.UNDERLINE.key:if(this._checkKey(this._keyMap.UNDERLINE,X)){S="underline";N=true;}break;case 9:if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("&nbsp;&nbsp;&nbsp;&nbsp;");E.collapse(false);E.select();}A.stopEvent(X);}}if(this.browser.gecko>1.8){U=this._getSelectedElement();if(this._isElement(U,"li")){if(X.shiftKey){this._getDoc().execCommand("outdent",null,"");}else{this._getDoc().execCommand("indent",null,"");}}else{if(!this._hasSelection()){this.execCommand("inserthtml","&nbsp;&nbsp;&nbsp;&nbsp;");}}A.stopEvent(X);}break;case 13:var M=null,V=0;if(this.get("ptags")&&!X.shiftKey){if(this.browser.gecko){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this._hasParent(U,"p")){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,U);this._selectNode(M.firstChild);}else{if(this._isElement(U,"body")){this.execCommand("insertparagraph",null);var O=this._getDoc().body.getElementsByTagName("p");for(V=0;V<O.length;V++){if(O[V].getAttribute("_moz_dirty")!==null){M=this._getDoc().createElement("p");M.innerHTML="&nbsp;";C.insertAfter(M,O[V]);this._selectNode(M.firstChild);O[V].removeAttribute("_moz_dirty");}}}else{N=true;S="insertparagraph";}}A.stopEvent(X);}}if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){this.execCommand("insertparagraph",null);var Q=this._getDoc().body.getElementsByTagName("div");for(V=0;V<Q.length;V++){if(!C.hasClass(Q[V],"yui-wk-div")){C.addClass(Q[V],"yui-wk-p");}}A.stopEvent(X);}}}else{if(this.browser.webkit){U=this._getSelectedElement();if(!this._hasParent(U,"li")){if(this.browser.webkit4){this.execCommand("insertlinebreak");}else{this.execCommand("inserthtml",'<var id="yui-br"></var>');var L=this._getDoc().getElementById("yui-br"),Y=this._getDoc().createElement("br"),J=this._getDoc().createElement("span");L.parentNode.replaceChild(Y,L);J.className="yui-non";J.innerHTML="&nbsp;";C.insertAfter(J,Y);this._selectNode(J);}A.stopEvent(X);}}if(this.browser.ie){E=this._getRange();U=this._getSelectedElement();if(!this._isElement(U,"li")){if(E){E.pasteHTML("<br>");E.collapse(false);E.select();}A.stopEvent(X);}}}break;}if(this.browser.ie){this._listFix(X);}if(N&&S){this.execCommand(S,P);A.stopEvent(X);this.nodeChange();}this._storeUndo();this.fireEvent("editorKeyDown",{type:"editorKeyDown",target:this,ev:X});},_fixListRunning:null,_fixListDupIds:function(){if(this._fixListRunning){return false;}if(this._getDoc()){this._fixListRunning=true;var E=this._getDoc().body.getElementsByTagName("li"),F=0,G={};for(F=0;F<E.length;F++){if(E[F].id){if(G[E[F].id]){E[F].id="";}G[E[F].id]=true;}}this._fixListRunning=false;}},_listFix:function(K){var M=null,I=null,E=false,G=null;if(this.browser.webkit){if(K.keyCode&&(K.keyCode==13)){if(this._hasParent(this._getSelectedElement(),"li")){var H=this._hasParent(this._getSelectedElement(),"li");if(H.previousSibling){if(H.firstChild&&(H.firstChild.length==1)){this._selectNode(H);}}}}}if(K.keyCode&&((!this.browser.webkit3&&(K.keyCode==25))||((this.browser.webkit3||!this.browser.webkit)&&((K.keyCode==9)&&K.shiftKey)))){M=this._getSelectedElement();if(this._hasParent(M,"li")){M=this._hasParent(M,"li");if(this._hasParent(M,"ul")||this._hasParent(M,"ol")){I=this._hasParent(M,"ul");if(!I){I=this._hasParent(M,"ol");}if(this._isElement(I.previousSibling,"li")){I.removeChild(M);I.parentNode.insertBefore(M,I.nextSibling);if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(M);G.collapse(false);G.select();}if(this.browser.webkit){this._selectNode(M.firstChild);}A.stopEvent(K);}}}}if(K.keyCode&&((K.keyCode==9)&&(!K.shiftKey))){var F=this._getSelectedElement();if(this._hasParent(F,"li")){E=this._hasParent(F,"li").innerHTML;}if(this.browser.webkit){this._getDoc().execCommand("inserttext",false,"\t");}M=this._getSelectedElement();if(this._hasParent(M,"li")){I=this._hasParent(M,"li");var J=this._getDoc().createElement(I.parentNode.tagName.toLowerCase());if(this.browser.webkit){var L=C.getElementsByClassName("Apple-tab-span","span",I);if(L[0]){I.removeChild(L[0]);I.innerHTML=D.trim(I.innerHTML);if(E){I.innerHTML='<span class="yui-non">'+E+"</span>&nbsp;";}else{I.innerHTML='<span class="yui-non">&nbsp;</span>&nbsp;';}}}else{if(E){I.innerHTML=E+"&nbsp;";}else{I.innerHTML="&nbsp;";}}I.parentNode.replaceChild(J,I);J.appendChild(I);if(this.browser.webkit){this._getSelection().setBaseAndExtent(I.firstChild,1,I.firstChild,I.firstChild.innerText.length);if(!this.browser.webkit3){I.parentNode.parentNode.style.display="list-item";setTimeout(function(){I.parentNode.parentNode.style.display="block";},1);}}else{if(this.browser.ie){G=this._getDoc().body.createTextRange();G.moveToElementText(I);G.collapse(false);G.select();}else{this._selectNode(I);}}A.stopEvent(K);}if(this.browser.webkit){A.stopEvent(K);}this.nodeChange();}},nodeChange:function(E){var F=this;this._storeUndo();if(this.get("nodeChangeDelay")){this._nodeChangeDelayTimer=window.setTimeout(function(){F._nodeChangeDelayTimer=null;F._nodeChange.apply(F,arguments);},0);}else{this._nodeChange();}},_nodeChange:function(F){var H=parseInt(this.get("nodeChangeThreshold"),10),O=Math.round(new Date().getTime()/1000),R=this;if(F===true){this._lastNodeChange=0;}if((this._lastNodeChange+H)<O){if(this._fixNodesTimer===null){this._fixNodesTimer=window.setTimeout(function(){R._fixNodes.call(R);R._fixNodesTimer=null;},0);}}this._lastNodeChange=O;if(this.currentEvent){try{this._lastNodeChangeEvent=this.currentEvent.type;}catch(a){}}var Z=this.fireEvent("beforeNodeChange",{type:"beforeNodeChange",target:this});if(Z===false){return false;}if(this.get("dompath")){window.setTimeout(function(){R._writeDomPath.call(R);},0);}if(!this.get("disabled")){if(this.STOP_NODE_CHANGE){this.STOP_NODE_CHANGE=false;return false;}else{var T=this._getSelection(),Q=this._getRange(),E=this._getSelectedElement(),M=this.toolbar.getButtonByValue("fontname"),L=this.toolbar.getButtonByValue("fontsize"),J=this.toolbar.getButtonByValue("undo"),G=this.toolbar.getButtonByValue("redo");
++var N={};if(this._lastButton){N[this._lastButton.id]=true;}if(!this._isElement(E,"body")){if(M){N[M.get("id")]=true;}if(L){N[L.get("id")]=true;}}if(G){delete N[G.get("id")];}this.toolbar.resetAllButtons(N);for(var c=0;c<this._disabled.length;c++){var P=this.toolbar.getButtonByValue(this._disabled[c]);if(P&&P.get){if(this._lastButton&&(P.get("id")===this._lastButton.id)){}else{if(!this._hasSelection()&&!this.get("insert")){switch(this._disabled[c]){case"fontname":case"fontsize":break;default:this.toolbar.disableButton(P);}}else{if(!this._alwaysDisabled[this._disabled[c]]){this.toolbar.enableButton(P);}}if(!this._alwaysEnabled[this._disabled[c]]){this.toolbar.deselectButton(P);}}}}var S=this._getDomPath();var f=null,W=null;for(var X=0;X<S.length;X++){f=S[X].tagName.toLowerCase();if(S[X].getAttribute("tag")){f=S[X].getAttribute("tag").toLowerCase();}W=this._tag2cmd[f];if(W===undefined){W=[];}if(!D.isArray(W)){W=[W];}if(S[X].style.fontWeight.toLowerCase()=="bold"){W[W.length]="bold";}if(S[X].style.fontStyle.toLowerCase()=="italic"){W[W.length]="italic";}if(S[X].style.textDecoration.toLowerCase()=="underline"){W[W.length]="underline";}if(S[X].style.textDecoration.toLowerCase()=="line-through"){W[W.length]="strikethrough";}if(W.length>0){for(var V=0;V<W.length;V++){this.toolbar.selectButton(W[V]);this.toolbar.enableButton(W[V]);}}switch(S[X].style.textAlign.toLowerCase()){case"left":case"right":case"center":case"justify":var U=S[X].style.textAlign.toLowerCase();if(S[X].style.textAlign.toLowerCase()=="justify"){U="full";}this.toolbar.selectButton("justify"+U);this.toolbar.enableButton("justify"+U);break;}}if(M){var Y=M._configs.label._initialConfig.value;M.set("label",'<span class="yui-toolbar-fontname-'+this._cleanClassName(Y)+'">'+Y+"</span>");this._updateMenuChecked("fontname",Y);}if(L){L.set("label",L._configs.label._initialConfig.value);}var K=this.toolbar.getButtonByValue("heading");if(K){K.set("label",K._configs.label._initialConfig.value);this._updateMenuChecked("heading","none");}var I=this.toolbar.getButtonByValue("insertimage");if(I&&this.currentWindow&&(this.currentWindow.name=="insertimage")){this.toolbar.disableButton(I);}if(this._lastButton&&this._lastButton.isSelected){this.toolbar.deselectButton(this._lastButton.id);}this._undoNodeChange();}}this.fireEvent("afterNodeChange",{type:"afterNodeChange",target:this});},_updateMenuChecked:function(E,F,H){if(!H){H=this.toolbar;}var G=H.getButtonByValue(E);G.checkValue(F);},_handleToolbarClick:function(F){var H="";var I="";var G=F.button.value;if(F.button.menucmd){H=G;G=F.button.menucmd;}this._lastButton=F.button;if(this.STOP_EXEC_COMMAND){this.STOP_EXEC_COMMAND=false;return false;}else{this.execCommand(G,H);if(!this.browser.webkit){var E=this;setTimeout(function(){E.focus.call(E);},5);}}A.stopEvent(F);},_setupAfterElement:function(){if(!this.beforeElement){this.beforeElement=document.createElement("h2");this.beforeElement.className="yui-editor-skipheader";this.beforeElement.tabIndex="-1";this.beforeElement.innerHTML=this.STR_BEFORE_EDITOR;this.get("element_cont").get("firstChild").insertBefore(this.beforeElement,this.toolbar.get("nextSibling"));}if(!this.afterElement){this.afterElement=document.createElement("h2");this.afterElement.className="yui-editor-skipheader";this.afterElement.tabIndex="-1";this.afterElement.innerHTML=this.STR_LEAVE_EDITOR;this.get("element_cont").get("firstChild").appendChild(this.afterElement);}},_disableEditor:function(J){var I,H,G,E;if(!this.get("disabled_iframe")){I=this._createIframe();I.set("id","disabled_"+this.get("iframe").get("id"));I.setStyle("height","100%");I.setStyle("display","none");I.setStyle("visibility","visible");this.set("disabled_iframe",I);H=this.get("iframe").get("parentNode");H.appendChild(I.get("element"));}if(!I){I=this.get("disabled_iframe");}if(J){this._orgIframe=this.get("iframe");if(this.toolbar){this.toolbar.set("disabled",true);}G=this.getEditorHTML();E=this.get("iframe").get("offsetHeight");I.setStyle("visibility","");I.setStyle("position","");I.setStyle("top","");I.setStyle("left","");this._orgIframe.setStyle("visibility","hidden");this._orgIframe.setStyle("position","absolute");this._orgIframe.setStyle("top","-99999px");this._orgIframe.setStyle("left","-99999px");this.set("iframe",I);this._setInitialContent(true);if(!this._mask){this._mask=document.createElement("DIV");C.addClass(this._mask,"yui-editor-masked");if(this.browser.ie){this._mask.style.height=E+"px";}this.get("iframe").get("parentNode").appendChild(this._mask);}this.on("editorContentReloaded",function(){this._getDoc().body._rteLoaded=false;this.setEditorHTML(G);I.setStyle("display","block");this.unsubscribeAll("editorContentReloaded");});}else{if(this._mask){this._mask.parentNode.removeChild(this._mask);this._mask=null;if(this.toolbar){this.toolbar.set("disabled",false);}I.setStyle("visibility","hidden");I.setStyle("position","absolute");I.setStyle("top","-99999px");I.setStyle("left","-99999px");this._orgIframe.setStyle("visibility","");this._orgIframe.setStyle("position","");this._orgIframe.setStyle("top","");this._orgIframe.setStyle("left","");this.set("iframe",this._orgIframe);this.focus();var F=this;window.setTimeout(function(){F.nodeChange.call(F);},100);}}},SEP_DOMPATH:"<",STR_LEAVE_EDITOR:"You have left the Rich Text Editor.",STR_BEFORE_EDITOR:"This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>",STR_TITLE:"Rich Text Area.",STR_IMAGE_HERE:"Image URL Here",STR_IMAGE_URL:"Image URL",STR_LINK_URL:"Link URL",STOP_EXEC_COMMAND:false,STOP_NODE_CHANGE:false,CLASS_NOEDIT:"yui-noedit",CLASS_CONTAINER:"yui-editor-container",CLASS_EDITABLE:"yui-editor-editable",CLASS_EDITABLE_CONT:"yui-editor-editable-container",CLASS_PREFIX:"yui-editor",browser:function(){var E=YAHOO.env.ua;
++if(E.webkit>=420){E.webkit3=E.webkit;}else{E.webkit3=0;}if(E.webkit>=530){E.webkit4=E.webkit;}else{E.webkit4=0;}E.mac=false;if(navigator.userAgent.indexOf("Macintosh")!==-1){E.mac=true;}return E;}(),init:function(F,E){if(!this._defaultToolbar){this._defaultToolbar={collapse:true,titlebar:"Text Editing Tools",draggable:false,buttons:[{group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]},{type:"separator"},{group:"textstyle",label:"Font Style",buttons:[{type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"},{type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"},{type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"},{type:"push",label:"Strike Through",value:"strikethrough"},{type:"separator"},{type:"color",label:"Font Color",value:"forecolor",disabled:true},{type:"color",label:"Background Color",value:"backcolor",disabled:true}]},{type:"separator"},{group:"indentlist",label:"Lists",buttons:[{type:"push",label:"Create an Unordered List",value:"insertunorderedlist"},{type:"push",label:"Create an Ordered List",value:"insertorderedlist"}]},{type:"separator"},{group:"insertitem",label:"Insert Item",buttons:[{type:"push",label:"HTML Link CTRL + SHIFT + L",value:"createlink",disabled:true},{type:"push",label:"Insert Image",value:"insertimage"}]}]};}YAHOO.widget.SimpleEditor.superclass.init.call(this,F,E);YAHOO.widget.EditorInfo._instances[this.get("id")]=this;this.currentElement=[];this.on("contentReady",function(){this.DOMReady=true;this.fireQueue();},this,true);},initAttributes:function(E){YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this,E);var F=this;this.setAttributeConfig("setDesignMode",{value:((E.setDesignMode===false)?false:true)});this.setAttributeConfig("nodeChangeDelay",{value:((E.nodeChangeDelay===false)?false:true)});this.setAttributeConfig("maxUndo",{writeOnce:true,value:E.maxUndo||30});this.setAttributeConfig("ptags",{writeOnce:true,value:E.ptags||false});this.setAttributeConfig("insert",{writeOnce:true,value:E.insert||false,method:function(K){if(K){var J={fontname:true,fontsize:true,forecolor:true,backcolor:true};var I=this._defaultToolbar.buttons;for(var H=0;H<I.length;H++){if(I[H].buttons){for(var G=0;G<I[H].buttons.length;G++){if(I[H].buttons[G].value){if(J[I[H].buttons[G].value]){delete I[H].buttons[G].disabled;}}}}}}}});this.setAttributeConfig("container",{writeOnce:true,value:E.container||false});this.setAttributeConfig("plainText",{writeOnce:true,value:E.plainText||false});this.setAttributeConfig("iframe",{value:null});this.setAttributeConfig("disabled_iframe",{value:null});this.setAttributeConfig("textarea",{value:null,writeOnce:true});this.setAttributeConfig("nodeChangeThreshold",{value:E.nodeChangeThreshold||3,validator:YAHOO.lang.isNumber});this.setAttributeConfig("allowNoEdit",{value:E.allowNoEdit||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("limitCommands",{value:E.limitCommands||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("element_cont",{value:E.element_cont});this.setAttributeConfig("editor_wrapper",{value:E.editor_wrapper||null,writeOnce:true});this.setAttributeConfig("height",{value:E.height||C.getStyle(F.get("element"),"height"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("iframe").get("parentNode"),{height:{to:parseInt(G,10)}},0.5);H.animate();}else{C.setStyle(this.get("iframe").get("parentNode"),"height",G);}}}});this.setAttributeConfig("autoHeight",{value:E.autoHeight||false,method:function(G){if(G){if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","no");}this.on("afterNodeChange",this._handleAutoHeight,this,true);this.on("editorKeyDown",this._handleAutoHeight,this,true);this.on("editorKeyPress",this._handleAutoHeight,this,true);}else{if(this.get("iframe")){this.get("iframe").get("element").setAttribute("scrolling","auto");}this.unsubscribe("afterNodeChange",this._handleAutoHeight);this.unsubscribe("editorKeyDown",this._handleAutoHeight);this.unsubscribe("editorKeyPress",this._handleAutoHeight);}}});this.setAttributeConfig("width",{value:E.width||C.getStyle(this.get("element"),"width"),method:function(G){if(this._rendered){if(this.get("animate")){var H=new YAHOO.util.Anim(this.get("element_cont").get("element"),{width:{to:parseInt(G,10)}},0.5);H.animate();}else{this.get("element_cont").setStyle("width",G);}}}});this.setAttributeConfig("blankimage",{value:E.blankimage||this._getBlankImage()});this.setAttributeConfig("css",{value:E.css||this._defaultCSS,writeOnce:true});this.setAttributeConfig("html",{value:E.html||'<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="'+this._baseHREF+'"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',writeOnce:true});this.setAttributeConfig("extracss",{value:E.extracss||"",writeOnce:true});this.setAttributeConfig("handleSubmit",{value:E.handleSubmit||false,method:function(G){if(this.get("element").form){if(!this._formButtons){this._formButtons=[];}if(G){A.on(this.get("element").form,"submit",this._handleFormSubmit,this,true);var H=this.get("element").form.getElementsByTagName("input");for(var J=0;J<H.length;J++){var I=H[J].getAttribute("type");if(I&&(I.toLowerCase()=="submit")){A.on(H[J],"click",this._handleFormButtonClick,this,true);this._formButtons[this._formButtons.length]=H[J];}}}else{A.removeListener(this.get("element").form,"submit",this._handleFormSubmit);if(this._formButtons){A.removeListener(this._formButtons,"click",this._handleFormButtonClick);}}}}});this.setAttributeConfig("disabled",{value:false,method:function(G){if(this._rendered){this._disableEditor(G);
++}}});this.setAttributeConfig("saveEl",{value:this.get("element")});this.setAttributeConfig("toolbar_cont",{value:null,writeOnce:true});this.setAttributeConfig("toolbar",{value:E.toolbar||this._defaultToolbar,writeOnce:true,method:function(G){if(!G.buttonType){G.buttonType=this._defaultToolbar.buttonType;}this._defaultToolbar=G;}});this.setAttributeConfig("animate",{value:((E.animate)?((YAHOO.util.Anim)?true:false):false),validator:function(H){var G=true;if(!YAHOO.util.Anim){G=false;}return G;}});this.setAttributeConfig("panel",{value:null,writeOnce:true,validator:function(H){var G=true;if(!YAHOO.widget.Overlay){G=false;}return G;}});this.setAttributeConfig("focusAtStart",{value:E.focusAtStart||false,writeOnce:true,method:function(G){if(G){this.on("editorContentLoaded",function(){var H=this;setTimeout(function(){H.focus.call(H);H.editorDirty=false;},400);},this,true);}}});this.setAttributeConfig("dompath",{value:E.dompath||false,method:function(G){if(G&&!this.dompath){this.dompath=document.createElement("DIV");this.dompath.id=this.get("id")+"_dompath";C.addClass(this.dompath,"dompath");this.get("element_cont").get("firstChild").appendChild(this.dompath);if(this.get("iframe")){this._writeDomPath();}}else{if(!G&&this.dompath){this.dompath.parentNode.removeChild(this.dompath);this.dompath=null;}}}});this.setAttributeConfig("markup",{value:E.markup||"semantic",validator:function(G){switch(G.toLowerCase()){case"semantic":case"css":case"default":case"xhtml":return true;}return false;}});this.setAttributeConfig("removeLineBreaks",{value:E.removeLineBreaks||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("drag",{writeOnce:true,value:E.drag||false});this.setAttributeConfig("resize",{writeOnce:true,value:E.resize||false});this.setAttributeConfig("filterWord",{value:E.filterWord||false,validator:YAHOO.lang.isBoolean});},_getBlankImage:function(){if(!this.DOMReady){this._queue[this._queue.length]=["_getBlankImage",arguments];return"";}var E="";if(!this._blankImageLoaded){if(YAHOO.widget.EditorInfo.blankImage){this.set("blankimage",YAHOO.widget.EditorInfo.blankImage);this._blankImageLoaded=true;}else{var F=document.createElement("div");F.style.position="absolute";F.style.top="-9999px";F.style.left="-9999px";F.className=this.CLASS_PREFIX+"-blankimage";document.body.appendChild(F);E=YAHOO.util.Dom.getStyle(F,"background-image");E=E.replace("url(","").replace(")","").replace(/"/g,"");E=E.replace("app:/","");this.set("blankimage",E);this._blankImageLoaded=true;F.parentNode.removeChild(F);YAHOO.widget.EditorInfo.blankImage=E;}}else{E=this.get("blankimage");}return E;},_handleAutoHeight:function(){var J=this._getDoc(),F=J.body,K=J.documentElement;var E=parseInt(C.getStyle(this.get("editor_wrapper"),"height"),10);var G=F.scrollHeight;if(this.browser.webkit){G=K.scrollHeight;}if(G<parseInt(this.get("height"),10)){G=parseInt(this.get("height"),10);}if((E!=G)&&(G>=parseInt(this.get("height"),10))){var I=this.get("animate");this.set("animate",false);this.set("height",G+"px");this.set("animate",I);if(this.browser.ie){this.get("iframe").setStyle("height","99%");this.get("iframe").setStyle("zoom","1");var H=this;window.setTimeout(function(){H.get("iframe").setStyle("height","100%");},1);}}},_formButtons:null,_formButtonClicked:null,_handleFormButtonClick:function(F){var E=A.getTarget(F);this._formButtonClicked=E;},_handleFormSubmit:function(H){this.saveHTML();var G=this.get("element").form,E=this._formButtonClicked||false;A.removeListener(G,"submit",this._handleFormSubmit);if(YAHOO.env.ua.ie){if(E&&!E.disabled){E.click();}}else{if(E&&!E.disabled){E.click();}var F=document.createEvent("HTMLEvents");F.initEvent("submit",true,true);G.dispatchEvent(F);if(YAHOO.env.ua.webkit){if(YAHOO.lang.isFunction(G.submit)){G.submit();}}}},_handleFontSize:function(G){var E=this.toolbar.getButtonById(G.button.id);var F=E.get("label")+"px";this.execCommand("fontsize",F);return false;},_handleColorPicker:function(G){var F=G.button;var E="#"+G.color;if((F=="forecolor")||(F=="backcolor")){this.execCommand(F,E);}},_handleAlign:function(H){var G=null;for(var E=0;E<H.button.menu.length;E++){if(H.button.menu[E].value==H.button.value){G=H.button.menu[E].value;}}var F=this._getSelection();this.execCommand(G,F);return false;},_handleAfterNodeChange:function(){var Q=this._getDomPath(),L=null,H=null,M=null,F=false,J=this.toolbar.getButtonByValue("fontname"),K=this.toolbar.getButtonByValue("fontsize"),E=this.toolbar.getButtonByValue("heading");for(var G=0;G<Q.length;G++){L=Q[G];var P=L.tagName.toLowerCase();if(L.getAttribute("tag")){P=L.getAttribute("tag");}H=L.getAttribute("face");if(C.getStyle(L,"font-family")){H=C.getStyle(L,"font-family");H=H.replace(/'/g,"");}if(P.substring(0,1)=="h"){if(E){for(var I=0;I<E._configs.menu.value.length;I++){if(E._configs.menu.value[I].value.toLowerCase()==P){E.set("label",E._configs.menu.value[I].text);}}this._updateMenuChecked("heading",P);}}}if(J){for(var O=0;O<J._configs.menu.value.length;O++){if(H&&J._configs.menu.value[O].text.toLowerCase()==H.toLowerCase()){F=true;H=J._configs.menu.value[O].text;}}if(!F){H=J._configs.label._initialConfig.value;}var N='<span class="yui-toolbar-fontname-'+this._cleanClassName(H)+'">'+H+"</span>";if(J.get("label")!=N){J.set("label",N);this._updateMenuChecked("fontname",H);}}if(K){M=parseInt(C.getStyle(L,"fontSize"),10);if((M===null)||isNaN(M)){M=K._configs.label._initialConfig.value;}K.set("label",""+M);}if(!this._isElement(L,"body")&&!this._isElement(L,"img")){this.toolbar.enableButton(J);this.toolbar.enableButton(K);this.toolbar.enableButton("forecolor");this.toolbar.enableButton("backcolor");}if(this._isElement(L,"img")){if(YAHOO.widget.Overlay){this.toolbar.enableButton("createlink");}}if(this._hasParent(L,"blockquote")){this.toolbar.selectButton("indent");this.toolbar.disableButton("indent");this.toolbar.enableButton("outdent");}if(this._hasParent(L,"ol")||this._hasParent(L,"ul")){this.toolbar.disableButton("indent");}this._lastButton=null;},_handleInsertImageClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("insertimage")){return false;
++}}this.toolbar.set("disabled",true);var E=function(){var F=this.currentElement[0],H="http://";if(!F){F=this._getSelectedElement();}if(F){if(F.getAttribute("src")){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){H=this.STR_IMAGE_HERE;}}}var G=prompt(this.STR_IMAGE_URL+": ",H);if((G!=="")&&(G!==null)){F.setAttribute("src",G);}else{if(G===""){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}else{if((G===null)){H=F.getAttribute("src",2);if(H.indexOf(this.get("blankimage"))!=-1){F.parentNode.removeChild(F);this.currentElement=[];this.nodeChange();}}}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this,true);},_handleInsertImageWindowClose:function(){this.nodeChange();},_isLocalFile:function(E){if((E)&&(E!=="")&&((E.indexOf("file:/")!=-1)||(E.indexOf(":\\")!=-1))){return true;}return false;},_handleCreateLinkClick:function(){if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue("createlink")){return false;}}this.toolbar.set("disabled",true);var E=function(){var H=this.currentElement[0],G="";if(H){if(H.getAttribute("href",2)!==null){G=H.getAttribute("href",2);}}var J=prompt(this.STR_LINK_URL+": ",G);if((J!=="")&&(J!==null)){var I=J;if((I.indexOf(":/"+"/")==-1)&&(I.substring(0,1)!="/")&&(I.substring(0,6).toLowerCase()!="mailto")){if((I.indexOf("@")!=-1)&&(I.substring(0,6).toLowerCase()!="mailto")){I="mailto:"+I;}else{if(I.substring(0,1)!="#"){}}}H.setAttribute("href",I);}else{if(J!==null){var F=this._getDoc().createElement("span");F.innerHTML=H.innerHTML;C.addClass(F,"yui-non");H.parentNode.replaceChild(F,H);}}this.closeWindow();this.toolbar.set("disabled",false);this.unsubscribe("afterExecCommand",E,this,true);};this.on("afterExecCommand",E,this);},_handleCreateLinkWindowClose:function(){this.nodeChange();this.currentElement=[];},render:function(){if(this._rendered){return false;}if(!this.DOMReady){this._queue[this._queue.length]=["render",arguments];return false;}if(this.get("element")){if(this.get("element").tagName){this._textarea=true;if(this.get("element").tagName.toLowerCase()!=="textarea"){this._textarea=false;}}else{return false;}}else{return false;}this._rendered=true;var E=this;window.setTimeout(function(){E._render.call(E);},4);},_render:function(){var E=this;this.set("textarea",this.get("element"));this.get("element_cont").setStyle("display","none");this.get("element_cont").addClass(this.CLASS_CONTAINER);this.set("iframe",this._createIframe());window.setTimeout(function(){E._setInitialContent.call(E);},10);this.get("editor_wrapper").appendChild(this.get("iframe").get("element"));if(this.get("disabled")){this._disableEditor(true);}var F=this.get("toolbar");if(F instanceof B){this.toolbar=F;this.toolbar.set("disabled",true);}else{F.disabled=true;this.toolbar=new B(this.get("toolbar_cont"),F);}this.fireEvent("toolbarLoaded",{type:"toolbarLoaded",target:this.toolbar});this.toolbar.on("toolbarCollapsed",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("toolbarExpanded",function(){if(this.currentWindow){this.moveWindow();}},this,true);this.toolbar.on("fontsizeClick",this._handleFontSize,this,true);this.toolbar.on("colorPickerClicked",function(G){this._handleColorPicker(G);return false;},this,true);this.toolbar.on("alignClick",this._handleAlign,this,true);this.on("afterNodeChange",this._handleAfterNodeChange,this,true);this.toolbar.on("insertimageClick",this._handleInsertImageClick,this,true);this.on("windowinsertimageClose",this._handleInsertImageWindowClose,this,true);this.toolbar.on("createlinkClick",this._handleCreateLinkClick,this,true);this.on("windowcreatelinkClose",this._handleCreateLinkWindowClose,this,true);this.get("parentNode").replaceChild(this.get("element_cont").get("element"),this.get("element"));this.setStyle("visibility","hidden");this.setStyle("position","absolute");this.setStyle("top","-9999px");this.setStyle("left","-9999px");this.get("element_cont").appendChild(this.get("element"));this.get("element_cont").setStyle("display","block");C.addClass(this.get("iframe").get("parentNode"),this.CLASS_EDITABLE_CONT);this.get("iframe").addClass(this.CLASS_EDITABLE);this.get("element_cont").setStyle("width",this.get("width"));C.setStyle(this.get("iframe").get("parentNode"),"height",this.get("height"));this.get("iframe").setStyle("width","100%");this.get("iframe").setStyle("height","100%");this._setupDD();window.setTimeout(function(){E._setupAfterElement.call(E);},0);this.fireEvent("afterRender",{type:"afterRender",target:this});},execCommand:function(G,F){var J=this.fireEvent("beforeExecCommand",{type:"beforeExecCommand",target:this,args:arguments});if((J===false)||(this.STOP_EXEC_COMMAND)){this.STOP_EXEC_COMMAND=false;return false;}this._lastCommand=G;this._setMarkupType(G);if(this.browser.ie){this._getWindow().focus();}var E=true;if(this.get("limitCommands")){if(!this.toolbar.getButtonByValue(G)){E=false;}}this.editorDirty=true;if((typeof this["cmd_"+G.toLowerCase()]=="function")&&E){var I=this["cmd_"+G.toLowerCase()](F);E=I[0];if(I[1]){G=I[1];}if(I[2]){F=I[2];}}if(E){try{this._getDoc().execCommand(G,false,F);}catch(H){}}else{}this.on("afterExecCommand",function(){this.unsubscribeAll("afterExecCommand");this.nodeChange();},this,true);this.fireEvent("afterExecCommand",{type:"afterExecCommand",target:this});},cmd_bold:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontWeight=="bold"){G.style.fontWeight="";var E=this._getDoc().createElement("b"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_italic:function(H){if(!this.browser.webkit){var G=this._getSelectedElement();if(G&&this._isElement(G,"span")&&this._hasSelection()){if(G.style.fontStyle=="italic"){G.style.fontStyle="";var E=this._getDoc().createElement("i"),F=G.parentNode;F.replaceChild(E,G);E.appendChild(G);}}}return[true];},cmd_underline:function(F){if(!this.browser.webkit){var E=this._getSelectedElement();
++if(E&&this._isElement(E,"span")){if(E.style.textDecoration=="underline"){E.style.textDecoration="none";}else{E.style.textDecoration="underline";}return[false];}}return[true];},cmd_backcolor:function(H){var E=true,F=this._getSelectedElement(),G="backcolor";if(this.browser.gecko||this.browser.opera){this._setEditorStyle(true);G="hilitecolor";}if(!this._isElement(F,"body")&&!this._hasSelection()){F.style.backgroundColor=H;this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({backgroundColor:H});}else{this._createCurrentElement("span",{backgroundColor:H,color:F.style.color,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily});this._selectNode(this.currentElement[0]);}E=false;}return[E,G];},cmd_forecolor:function(G){var E=true,F=this._getSelectedElement();if(!this._isElement(F,"body")&&!this._hasSelection()){C.setStyle(F,"color",G);this._selectNode(F);E=false;}else{if(this.get("insert")){F=this._createInsertElement({color:G});}else{this._createCurrentElement("span",{color:G,fontSize:F.style.fontSize,fontFamily:F.style.fontFamily,backgroundColor:F.style.backgroundColor});this._selectNode(this.currentElement[0]);}E=false;}return[E];},cmd_unlink:function(E){this._swapEl(this.currentElement[0],"span",function(F){F.className="yui-non";});return[false];},cmd_createlink:function(G){var F=this._getSelectedElement(),E=null;if(this._hasParent(F,"a")){this.currentElement[0]=this._hasParent(F,"a");}else{if(this._isElement(F,"li")){E=this._getDoc().createElement("a");E.innerHTML=F.innerHTML;F.innerHTML="";F.appendChild(E);this.currentElement[0]=E;}else{if(!this._isElement(F,"a")){this._createCurrentElement("a");E=this._swapEl(this.currentElement[0],"a");this.currentElement[0]=E;}else{this.currentElement[0]=F;}}}return[false];},cmd_insertimage:function(J){var E=true,F=null,I="insertimage",H=this._getSelectedElement();if(J===""){J=this.get("blankimage");}if(this._isElement(H,"img")){this.currentElement[0]=H;E=false;}else{if(this._getDoc().queryCommandEnabled(I)){this._getDoc().execCommand(I,false,J);var K=this._getDoc().getElementsByTagName("img");for(var G=0;G<K.length;G++){if(!YAHOO.util.Dom.hasClass(K[G],"yui-img")){YAHOO.util.Dom.addClass(K[G],"yui-img");this.currentElement[0]=K[G];}}E=false;}else{if(H==this._getDoc().body){F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this._getDoc().body.appendChild(F);}else{this._createCurrentElement("img");F=this._getDoc().createElement("img");F.setAttribute("src",J);YAHOO.util.Dom.addClass(F,"yui-img");this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);}this.currentElement[0]=F;E=false;}}return[E];},cmd_inserthtml:function(H){var E=true,G="inserthtml",F=null,I=null;if(this.browser.webkit&&!this._getDoc().queryCommandEnabled(G)){this._createCurrentElement("img");F=this._getDoc().createElement("span");F.innerHTML=H;this.currentElement[0].parentNode.replaceChild(F,this.currentElement[0]);E=false;}else{if(this.browser.ie){I=this._getRange();if(I.item){I.item(0).outerHTML=H;}else{I.pasteHTML(H);}E=false;}}return[E];},cmd_list:function(e){var V=true,Z=null,N=0,G=null,U="",d=this._getSelectedElement(),W="insertorderedlist";if(e=="ul"){W="insertunorderedlist";}if((this.browser.webkit&&!this.browser.webkit4)||(this.browser.opera)){if(this._isElement(d,"li")&&this._isElement(d.parentNode,e)){G=d.parentNode;Z=this._getDoc().createElement("span");YAHOO.util.Dom.addClass(Z,"yui-non");U="";var F=G.getElementsByTagName("li"),I=((this.browser.opera&&this.get("ptags"))?"p":"div");for(N=0;N<F.length;N++){U+="<"+I+">"+F[N].innerHTML+"</"+I+">";}Z.innerHTML=U;this.currentElement[0]=G;this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);}else{this._createCurrentElement(e.toLowerCase());Z=this._getDoc().createElement(e);for(N=0;N<this.currentElement.length;N++){var K=this._getDoc().createElement("li");K.innerHTML=this.currentElement[N].innerHTML+'<span class="yui-non">&nbsp;</span>&nbsp;';Z.appendChild(K);if(N>0){this.currentElement[N].parentNode.removeChild(this.currentElement[N]);}}var T=((this.browser.opera)?"<BR>":"<br>"),S=Z.firstChild.innerHTML.split(T),Y,a;if(S.length>0){Z.innerHTML="";for(Y=0;Y<S.length;Y++){a=this._getDoc().createElement("li");a.innerHTML=S[Y];Z.appendChild(a);}}this.currentElement[0].parentNode.replaceChild(Z,this.currentElement[0]);this.currentElement[0]=Z;var H=this.currentElement[0].firstChild;H=C.getElementsByClassName("yui-non","span",H)[0];if(this.browser.webkit){this._getSelection().setBaseAndExtent(H,1,H,H.innerText.length);}}V=false;}else{G=this._getSelectedElement();if(this._isElement(G,"li")&&this._isElement(G.parentNode,e)||(this.browser.ie&&this._isElement(this._getRange().parentElement,"li"))||(this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){if(this.browser.ie){if((this.browser.ie&&this._isElement(G,"ul"))||(this.browser.ie&&this._isElement(G,"ol"))){G=G.getElementsByTagName("li")[0];}U="";var J=G.parentNode.getElementsByTagName("li");for(var X=0;X<J.length;X++){U+=J[X].innerHTML+"<br>";}var c=this._getDoc().createElement("span");c.innerHTML=U;G.parentNode.parentNode.replaceChild(c,G.parentNode);}else{this.nodeChange();this._getDoc().execCommand(W,"",G.parentNode);this.nodeChange();}V=false;}if(this.browser.opera){var R=this;window.setTimeout(function(){var f=R._getDoc().getElementsByTagName("li");for(var g=0;g<f.length;g++){if(f[g].innerHTML.toLowerCase()=="<br>"){f[g].parentNode.parentNode.removeChild(f[g].parentNode);}}},30);}if(this.browser.ie&&V){var L="";if(this._getRange().html){L="<li>"+this._getRange().html+"</li>";}else{var M=this._getRange().text.split("\n");if(M.length>1){L="";for(var Q=0;Q<M.length;Q++){L+="<li>"+M[Q]+"</li>";}}else{var P=this._getRange().text;if(P===""){L='<li id="new_list_item">'+P+"</li>";}else{L="<li>"+P+"</li>";}}}this._getRange().pasteHTML("<"+e+">"+L+"</"+e+">");var E=this._getDoc().getElementById("new_list_item");if(E){var O=this._getDoc().body.createTextRange();
++O.moveToElementText(E);O.collapse(false);O.select();E.id="";}V=false;}}return V;},cmd_insertorderedlist:function(E){return[this.cmd_list("ol")];},cmd_insertunorderedlist:function(E){return[this.cmd_list("ul")];},cmd_fontname:function(H){var E=true,G=this._getSelectedElement();this.currentFont=H;if(G&&G.tagName&&!this._hasSelection()&&!this._isElement(G,"body")&&!this.get("insert")){YAHOO.util.Dom.setStyle(G,"font-family",H);E=false;}else{if(this.get("insert")&&!this._hasSelection()){var F=this._createInsertElement({fontFamily:H});E=false;}}return[E];},cmd_fontsize:function(H){var E=null,G=true;E=this._getSelectedElement();if(this.browser.webkit){if(this.currentElement[0]){if(E==this.currentElement[0]){G=false;YAHOO.util.Dom.setStyle(E,"fontSize",H);this._selectNode(E);this.currentElement[0]=E;}}}if(G){if(!this._isElement(this._getSelectedElement(),"body")&&(!this._hasSelection())){E=this._getSelectedElement();YAHOO.util.Dom.setStyle(E,"fontSize",H);if(this.get("insert")&&this.browser.ie){var F=this._getRange();F.collapse(false);F.select();}else{this._selectNode(E);}}else{if(this.currentElement&&(this.currentElement.length>0)&&(!this._hasSelection())&&(!this.get("insert"))){YAHOO.util.Dom.setStyle(this.currentElement,"fontSize",H);}else{if(this.get("insert")&&!this._hasSelection()){E=this._createInsertElement({fontSize:H});this.currentElement[0]=E;this._selectNode(this.currentElement[0]);}else{this._createCurrentElement("span",{"fontSize":H,fontFamily:E.style.fontFamily,color:E.style.color,backgroundColor:E.style.backgroundColor});this._selectNode(this.currentElement[0]);}}}}return[false];},_swapEl:function(F,E,H){var G=this._getDoc().createElement(E);if(F){G.innerHTML=F.innerHTML;}if(typeof H=="function"){H.call(this,G);}if(F){F.parentNode.replaceChild(G,F);}return G;},_createInsertElement:function(E){this._createCurrentElement("span",E);var F=this.currentElement[0];if(this.browser.webkit){F.innerHTML='<span class="yui-non">&nbsp;</span>';F=F.firstChild;this._getSelection().setBaseAndExtent(F,1,F,F.innerText.length);}else{if(this.browser.ie||this.browser.opera){F.innerHTML="&nbsp;";}}this.focus();this._selectNode(F,true);return F;},_createCurrentElement:function(G,J){G=((G)?G:"a");var R=null,F=[],H=this._getDoc();if(this.currentFont){if(!J){J={};}J.fontFamily=this.currentFont;this.currentFont=null;}this.currentElement=[];var M=function(X,Z){var Y=null;X=((X)?X:"span");X=X.toLowerCase();switch(X){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":Y=H.createElement(X);break;default:Y=H.createElement(X);if(X==="span"){YAHOO.util.Dom.addClass(Y,"yui-tag-"+X);YAHOO.util.Dom.addClass(Y,"yui-tag");Y.setAttribute("tag",X);}for(var W in Z){if(YAHOO.lang.hasOwnProperty(Z,W)){Y.style[W]=Z[W];}}break;}return Y;};if(!this._hasSelection()){if(this._getDoc().queryCommandEnabled("insertimage")){this._getDoc().execCommand("insertimage",false,"yui-tmp-img");var L=this._getDoc().getElementsByTagName("img");for(var Q=0;Q<L.length;Q++){if(L[Q].getAttribute("src",2)=="yui-tmp-img"){F=M(G,J);L[Q].parentNode.replaceChild(F,L[Q]);this.currentElement[this.currentElement.length]=F;}}}else{if(this.currentEvent){R=YAHOO.util.Event.getTarget(this.currentEvent);}else{R=this._getDoc().body;}}if(R){F=M(G,J);if(this._isElement(R,"body")||this._isElement(R,"html")){if(this._isElement(R,"html")){R=this._getDoc().body;}R.appendChild(F);}else{if(R.nextSibling){R.parentNode.insertBefore(F,R.nextSibling);}else{R.parentNode.appendChild(F);}}this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}}}else{this._setEditorStyle(true);this._getDoc().execCommand("fontname",false,"yui-tmp");var E=[],P,V=["font","span","i","b","u"];if(!this._isElement(this._getSelectedElement(),"body")){V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);V[V.length]=this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);}for(var K=0;K<V.length;K++){var I=this._getDoc().getElementsByTagName(V[K]);for(var U=0;U<I.length;U++){E[E.length]=I[U];}}for(var S=0;S<E.length;S++){if((YAHOO.util.Dom.getStyle(E[S],"font-family")=="yui-tmp")||(E[S].face&&(E[S].face=="yui-tmp"))){if(G!=="span"){F=M(G,J);}else{F=M(E[S].tagName,J);}F.innerHTML=E[S].innerHTML;if(this._isElement(E[S],"ol")||(this._isElement(E[S],"ul"))){var N=E[S].getElementsByTagName("li")[0];E[S].style.fontFamily="inherit";N.style.fontFamily="inherit";F.innerHTML=N.innerHTML;N.innerHTML="";N.appendChild(F);this.currentElement[this.currentElement.length]=F;}else{if(this._isElement(E[S],"li")){E[S].innerHTML="";E[S].appendChild(F);E[S].style.fontFamily="inherit";this.currentElement[this.currentElement.length]=F;}else{if(E[S].parentNode){E[S].parentNode.replaceChild(F,E[S]);this.currentElement[this.currentElement.length]=F;this.currentEvent=null;if(this.browser.webkit){this._getSelection().setBaseAndExtent(F,0,F,0);if(this.browser.webkit3){this._getSelection().collapseToStart();}else{this._getSelection().collapse(true);}}if(this.browser.ie&&J&&J.fontSize){this._getSelection().empty();}if(this.browser.gecko){this._getSelection().collapseToStart();}}}}}}var T=this.currentElement.length;for(var O=0;O<T;O++){if((O+1)!=T){if(this.currentElement[O]&&this.currentElement[O].nextSibling){if(this._isElement(this.currentElement[O],"br")){this.currentElement[this.currentElement.length]=this.currentElement[O].nextSibling;}}}}}},saveHTML:function(){var F=this.cleanHTML();if(this._textarea){this.get("element").value=F;}else{this.get("element").innerHTML=F;}if(this.get("saveEl")!==this.get("element")){var E=this.get("saveEl");if(D.isString(E)){E=C.get(E);}if(E){if(E.tagName.toLowerCase()==="textarea"){E.value=F;}else{E.innerHTML=F;}}}return F;},setEditorHTML:function(F){var E=this._cleanIncomingHTML(F);E=E.replace(/RIGHT_BRACKET/gi,"{");E=E.replace(/LEFT_BRACKET/gi,"}");
++this._getDoc().body.innerHTML=E;this.nodeChange();},getEditorHTML:function(){try{var E=this._getDoc().body;if(E===null){return null;}return this._getDoc().body.innerHTML;}catch(F){return"";}},show:function(){if(this.browser.gecko){this._setDesignMode("on");this.focus();}if(this.browser.webkit){var E=this;window.setTimeout(function(){E._setInitialContent.call(E);},10);}if(this.currentWindow){this.closeWindow();}this.get("iframe").setStyle("position","static");this.get("iframe").setStyle("left","");},hide:function(){if(this.currentWindow){this.closeWindow();}if(this._fixNodesTimer){clearTimeout(this._fixNodesTimer);this._fixNodesTimer=null;}if(this._nodeChangeTimer){clearTimeout(this._nodeChangeTimer);this._nodeChangeTimer=null;}this._lastNodeChange=0;this.get("iframe").setStyle("position","absolute");this.get("iframe").setStyle("left","-9999px");},_cleanIncomingHTML:function(E){E=E.replace(/{/gi,"RIGHT_BRACKET");E=E.replace(/}/gi,"LEFT_BRACKET");E=E.replace(/<strong([^>]*)>/gi,"<b$1>");E=E.replace(/<\/strong>/gi,"</b>");E=E.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");E=E.replace(/<\/embed>/gi,"</YUI_EMBED>");E=E.replace(/<em([^>]*)>/gi,"<i$1>");E=E.replace(/<\/em>/gi,"</i>");E=E.replace(/_moz_dirty=""/gi,"");E=E.replace(/<YUI_EMBED([^>]*)>/gi,"<embed$1>");E=E.replace(/<\/YUI_EMBED>/gi,"</embed>");if(this.get("plainText")){E=E.replace(/\n/g,"<br>").replace(/\r/g,"<br>");E=E.replace(/  /gi,"&nbsp;&nbsp;");E=E.replace(/\t/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");}E=E.replace(/<script([^>]*)>/gi,"<bad>");E=E.replace(/<\/script([^>]*)>/gi,"</bad>");E=E.replace(/&lt;script([^>]*)&gt;/gi,"<bad>");E=E.replace(/&lt;\/script([^>]*)&gt;/gi,"</bad>");E=E.replace(/\r\n/g,"<YUI_LF>").replace(/\n/g,"<YUI_LF>").replace(/\r/g,"<YUI_LF>");E=E.replace(new RegExp("<bad([^>]*)>(.*?)</bad>","gi"),"");E=E.replace(/<YUI_LF>/g,"\n");return E;},cleanHTML:function(H){if(!H){H=this.getEditorHTML();}var F=this.get("markup");H=this.pre_filter_linebreaks(H,F);H=this.filter_msword(H);H=H.replace(/<img([^>]*)\/>/gi,"<YUI_IMG$1>");H=H.replace(/<img([^>]*)>/gi,"<YUI_IMG$1>");H=H.replace(/<input([^>]*)\/>/gi,"<YUI_INPUT$1>");H=H.replace(/<input([^>]*)>/gi,"<YUI_INPUT$1>");H=H.replace(/<ul([^>]*)>/gi,"<YUI_UL$1>");H=H.replace(/<\/ul>/gi,"</YUI_UL>");H=H.replace(/<blockquote([^>]*)>/gi,"<YUI_BQ$1>");H=H.replace(/<\/blockquote>/gi,"</YUI_BQ>");H=H.replace(/<embed([^>]*)>/gi,"<YUI_EMBED$1>");H=H.replace(/<\/embed>/gi,"</YUI_EMBED>");if((F=="semantic")||(F=="xhtml")){H=H.replace(/<i(\s+[^>]*)?>/gi,"<em$1>");H=H.replace(/<\/i>/gi,"</em>");H=H.replace(/<b(\s+[^>]*)?>/gi,"<strong$1>");H=H.replace(/<\/b>/gi,"</strong>");}H=H.replace(/_moz_dirty=""/gi,"");H=H.replace(/<strike/gi,'<span style="text-decoration: line-through;"');H=H.replace(/\/strike>/gi,"/span>");if(this.browser.ie){H=H.replace(/text-decoration/gi,"text-decoration");H=H.replace(/font-weight/gi,"font-weight");H=H.replace(/_width="([^>]*)"/gi,"");H=H.replace(/_height="([^>]*)"/gi,"");var G=this._baseHREF.replace(/\//gi,"\\/"),I=new RegExp('src="'+G,"gi");H=H.replace(I,'src="');}H=H.replace(/<font/gi,"<font");H=H.replace(/<\/font>/gi,"</font>");H=H.replace(/<span/gi,"<span");H=H.replace(/<\/span>/gi,"</span>");if((F=="semantic")||(F=="xhtml")||(F=="css")){H=H.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)</font>',"gi"),'<span $1 style="font-family: $2;">$3</span>');H=H.replace(/<u/gi,'<span style="text-decoration: underline;"');if(this.browser.webkit){H=H.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)</span>',"gi"),"<strong>$1</strong>");H=H.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)</span>',"gi"),"<em>$1</em>");}H=H.replace(/\/u>/gi,"/span>");if(F=="css"){H=H.replace(/<em([^>]*)>/gi,"<i$1>");H=H.replace(/<\/em>/gi,"</i>");H=H.replace(/<strong([^>]*)>/gi,"<b$1>");H=H.replace(/<\/strong>/gi,"</b>");H=H.replace(/<b/gi,'<span style="font-weight: bold;"');H=H.replace(/\/b>/gi,"/span>");H=H.replace(/<i/gi,'<span style="font-style: italic;"');H=H.replace(/\/i>/gi,"/span>");}H=H.replace(/  /gi," ");}else{H=H.replace(/<u/gi,"<u");H=H.replace(/\/u>/gi,"/u>");}H=H.replace(/<ol([^>]*)>/gi,"<ol$1>");H=H.replace(/\/ol>/gi,"/ol>");H=H.replace(/<li/gi,"<li");H=H.replace(/\/li>/gi,"/li>");H=this.filter_safari(H);H=this.filter_internals(H);H=this.filter_all_rgb(H);H=this.post_filter_linebreaks(H,F);if(F=="xhtml"){H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1 />");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1 />");}else{H=H.replace(/<YUI_IMG([^>]*)>/g,"<img $1>");H=H.replace(/<YUI_INPUT([^>]*)>/g,"<input $1>");}H=H.replace(/<YUI_UL([^>]*)>/g,"<ul$1>");H=H.replace(/<\/YUI_UL>/g,"</ul>");H=this.filter_invalid_lists(H);H=H.replace(/<YUI_BQ([^>]*)>/g,"<blockquote$1>");H=H.replace(/<\/YUI_BQ>/g,"</blockquote>");H=H.replace(/<YUI_EMBED([^>]*)>/g,"<embed$1>");H=H.replace(/<\/YUI_EMBED>/g,"</embed>");H=H.replace(/ &amp; /gi," YUI_AMP ");H=H.replace(/ &amp;/gi," YUI_AMP_F ");H=H.replace(/&amp; /gi," YUI_AMP_R ");H=H.replace(/&amp;/gi,"&");H=H.replace(/ YUI_AMP /gi," &amp; ");H=H.replace(/ YUI_AMP_F /gi," &amp;");H=H.replace(/ YUI_AMP_R /gi,"&amp; ");H=YAHOO.lang.trim(H);if(this.get("removeLineBreaks")){H=H.replace(/\n/g,"").replace(/\r/g,"");H=H.replace(/  /gi," ");}for(var E in this.invalidHTML){if(YAHOO.lang.hasOwnProperty(this.invalidHTML,E)){if(D.isObject(E)&&E.keepContents){H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"$1");}else{H=H.replace(new RegExp("<"+E+"([^>]*)>(.*?)</"+E+">","gi"),"");}}}this.fireEvent("cleanHTML",{type:"cleanHTML",target:this,html:H});return H;},filter_msword:function(E){if(!this.get("filterWord")){return E;}E=E.replace(/<o:p>\s*<\/o:p>/g,"");E=E.replace(/<o:p>[\s\S]*?<\/o:p>/g,"&nbsp;");E=E.replace(/<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi,"");E=E.replace(/\s*mso-[^:]+:[^;"]+;?/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*;/gi,"");E=E.replace(/\s*MARGIN: 0cm 0cm 0pt\s*"/gi,'"');E=E.replace(/\s*TEXT-INDENT: 0cm\s*;/gi,"");E=E.replace(/\s*TEXT-INDENT: 0cm\s*"/gi,'"');E=E.replace(/\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi,'"');
++E=E.replace(/\s*FONT-VARIANT: [^\s;]+;?"/gi,'"');E=E.replace(/\s*tab-stops:[^;"]*;?/gi,"");E=E.replace(/\s*tab-stops:[^"]*/gi,"");E=E.replace(/<\\?\?xml[^>]*>/gi,"");E=E.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) language=([^ |>]*)([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi,"<$1$3");E=E.replace(/<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi,"<$1$3");return E;},filter_invalid_lists:function(E){E=E.replace(/<\/li>\n/gi,"</li>");E=E.replace(/<\/li><ol>/gi,"</li><li><ol>");E=E.replace(/<\/ol>/gi,"</ol></li>");E=E.replace(/<\/ol><\/li>\n/gi,"</ol>");E=E.replace(/<\/li><ul>/gi,"</li><li><ul>");E=E.replace(/<\/ul>/gi,"</ul></li>");E=E.replace(/<\/ul><\/li>\n?/gi,"</ul>");E=E.replace(/<\/li>/gi,"</li>");E=E.replace(/<\/ol>/gi,"</ol>");E=E.replace(/<ol>/gi,"<ol>");E=E.replace(/<ul>/gi,"<ul>");return E;},filter_safari:function(E){if(this.browser.webkit){E=E.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi,"&nbsp;&nbsp;&nbsp;&nbsp;");E=E.replace(/Apple-style-span/gi,"");E=E.replace(/style="line-height: normal;"/gi,"");E=E.replace(/yui-wk-div/gi,"");E=E.replace(/yui-wk-p/gi,"");E=E.replace(/<li><\/li>/gi,"");E=E.replace(/<li> <\/li>/gi,"");E=E.replace(/<li>  <\/li>/gi,"");if(this.get("ptags")){E=E.replace(/<div([^>]*)>/g,"<p$1>");E=E.replace(/<\/div>/gi,"</p>");}else{E=E.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi,"<br>");E=E.replace(/<\/div>/gi,"");}}return E;},filter_internals:function(E){E=E.replace(/\r/g,"");E=E.replace(/<\/?(body|head|html)[^>]*>/gi,"");E=E.replace(/<YUI_BR><\/li>/gi,"</li>");E=E.replace(/yui-tag-span/gi,"");E=E.replace(/yui-tag/gi,"");E=E.replace(/yui-non/gi,"");E=E.replace(/yui-img/gi,"");E=E.replace(/ tag="span"/gi,"");E=E.replace(/ class=""/gi,"");E=E.replace(/ style=""/gi,"");E=E.replace(/ class=" "/gi,"");E=E.replace(/ class="  "/gi,"");E=E.replace(/ target=""/gi,"");E=E.replace(/ title=""/gi,"");if(this.browser.ie){E=E.replace(/ class= /gi,"");E=E.replace(/ class= >/gi,"");}return E;},filter_all_rgb:function(I){var H=new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)","gi");var E=I.match(H);if(D.isArray(E)){for(var G=0;G<E.length;G++){var F=this.filter_rgb(E[G]);I=I.replace(E[G].toString(),F);}}return I;},filter_rgb:function(G){if(G.toLowerCase().indexOf("rgb")!=-1){var J=new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)","gi");var F=G.replace(J,"$1,$2,$3,$4,$5").split(",");if(F.length==5){var I=parseInt(F[1],10).toString(16);var H=parseInt(F[2],10).toString(16);var E=parseInt(F[3],10).toString(16);I=I.length==1?"0"+I:I;H=H.length==1?"0"+H:H;E=E.length==1?"0"+E:E;G="#"+I+H+E;}}return G;},pre_filter_linebreaks:function(F,E){if(this.browser.webkit){F=F.replace(/<br class="khtml-block-placeholder">/gi,"<YUI_BR>");F=F.replace(/<br class="webkit-block-placeholder">/gi,"<YUI_BR>");}F=F.replace(/<br>/gi,"<YUI_BR>");F=F.replace(/<br (.*?)>/gi,"<YUI_BR>");F=F.replace(/<br\/>/gi,"<YUI_BR>");F=F.replace(/<br \/>/gi,"<YUI_BR>");F=F.replace(/<div><YUI_BR><\/div>/gi,"<YUI_BR>");F=F.replace(/<p>(&nbsp;|&#160;)<\/p>/g,"<YUI_BR>");F=F.replace(/<p><br>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<p>&nbsp;<\/p>/gi,"<YUI_BR>");F=F.replace(/<YUI_BR>$/,"");F=F.replace(/<YUI_BR><\/p>/g,"</p>");if(this.browser.ie){F=F.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g,"\t");}return F;},post_filter_linebreaks:function(F,E){if(E=="xhtml"){F=F.replace(/<YUI_BR>/g,"<br />");}else{F=F.replace(/<YUI_BR>/g,"<br>");}return F;},clearEditorDoc:function(){this._getDoc().body.innerHTML="&nbsp;";},openWindow:function(E){},moveWindow:function(){},_closeWindow:function(){},closeWindow:function(){this.toolbar.resetAllButtons();this.focus();},destroy:function(){if(this._nodeChangeDelayTimer){clearTimeout(this._nodeChangeDelayTimer);}this.hide();if(this.resize){this.resize.destroy();}if(this.dd){this.dd.unreg();}if(this.get("panel")){this.get("panel").destroy();}this.saveHTML();this.toolbar.destroy();this.setStyle("visibility","visible");this.setStyle("position","static");this.setStyle("top","");this.setStyle("left","");var E=this.get("element");this.get("element_cont").get("parentNode").replaceChild(E,this.get("element_cont").get("element"));this.get("element_cont").get("element").innerHTML="";this.set("handleSubmit",false);return true;},toString:function(){var E="SimpleEditor";if(this.get&&this.get("element_cont")){E="SimpleEditor (#"+this.get("element_cont").get("id")+")"+((this.get("disabled")?" Disabled":""));}return E;}});YAHOO.widget.EditorInfo={_instances:{},blankImage:"",window:{},panel:null,getEditorById:function(E){if(!YAHOO.lang.isString(E)){E=E.id;}if(this._instances[E]){return this._instances[E];}return false;},saveAll:function(G){var F,H,E=YAHOO.widget.EditorInfo._instances;if(G){for(F in E){if(D.hasOwnProperty(E,F)){H=E[F];if(H.get("element").form&&(H.get("element").form==G)){H.saveHTML();}}}}else{for(F in E){if(D.hasOwnProperty(E,F)){E[F].saveHTML();}}}},toString:function(){var E=0;for(var F in this._instances){if(D.hasOwnProperty(this._instances,F)){E++;}}return"Editor Info ("+E+" registered intance"+((E>1)?"s":"")+")";}};})();YAHOO.register("simpleeditor",YAHOO.widget.SimpleEditor,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/editor/simpleeditor.js b/pylons_app/public/js/yui/editor/simpleeditor.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/editor/simpleeditor.js
+@@ -0,0 +1,7406 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    /**
++     * @module editor    
++     * @description <p>Creates a rich custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p>
++     * @class ToolbarButtonAdvanced
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event, container_core, menu, button
++     * 
++     * Provides a toolbar button based on the button and menu widgets.
++     * @constructor
++     * @class ToolbarButtonAdvanced
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    if (YAHOO.widget.Button) {
++        YAHOO.widget.ToolbarButtonAdvanced = YAHOO.widget.Button;
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.buttonType = 'rich';
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        YAHOO.widget.ToolbarButtonAdvanced.prototype.checkValue = function(value) {
++            var _menuItems = this.getMenu().getItems();
++            if (_menuItems.length === 0) {
++                this.getMenu()._onBeforeShow();
++                _menuItems = this.getMenu().getItems();
++            }
++            for (var i = 0; i < _menuItems.length; i++) {
++                _menuItems[i].cfg.setProperty('checked', false);
++                if (_menuItems[i].value == value) {
++                    _menuItems[i].cfg.setProperty('checked', true);
++                }
++            }      
++        };
++    } else {
++        YAHOO.widget.ToolbarButtonAdvanced = function() {};
++    }
++
++
++    /**
++     * @description <p>Creates a basic custom Toolbar Button. Primarily used with the Rich Text Editor's Toolbar</p><p>Provides a toolbar button based on the button and menu widgets, &lt;select&gt; elements are used in place of menu's.</p>
++     * @class ToolbarButton
++     * @namespace YAHOO.widget
++     * @requires yahoo, dom, element, event
++     * @extends YAHOO.util.Element
++     * 
++     * 
++     * @constructor
++     * @param {String/HTMLElement} el The element to turn into a button.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    YAHOO.widget.ToolbarButton = function(el, attrs) {
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = (attrs || {});
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++
++        if (!oConfig.attributes.type) {
++            oConfig.attributes.type = 'push';
++        }
++        
++        oConfig.element = document.createElement('span');
++        oConfig.element.setAttribute('unselectable', 'on');
++        oConfig.element.className = 'yui-button yui-' + oConfig.attributes.type + '-button';
++        oConfig.element.innerHTML = '<span class="first-child"><a href="#">LABEL</a></span>';
++        oConfig.element.firstChild.firstChild.tabIndex = '-1';
++        oConfig.attributes.id = (oConfig.attributes.id || Dom.generateId());
++        oConfig.element.id = oConfig.attributes.id;
++
++        YAHOO.widget.ToolbarButton.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++    YAHOO.extend(YAHOO.widget.ToolbarButton, YAHOO.util.Element, {
++        /**
++        * @property buttonType
++        * @private
++        * @description Tells if the Button is a Rich Button or a Simple Button
++        */
++        buttonType: 'normal',
++        /**
++        * @method _handleMouseOver
++        * @private
++        * @description Adds classes to the button elements on mouseover (hover)
++        */
++        _handleMouseOver: function() {
++            if (!this.get('disabled')) {
++                this.addClass('yui-button-hover');
++                this.addClass('yui-' + this.get('type') + '-button-hover');
++            }
++        },
++        /**
++        * @method _handleMouseOut
++        * @private
++        * @description Removes classes from the button elements on mouseout (hover)
++        */
++        _handleMouseOut: function() {
++            this.removeClass('yui-button-hover');
++            this.removeClass('yui-' + this.get('type') + '-button-hover');
++        },
++        /**
++        * @method checkValue
++        * @param {String} value The value of the option that we want to mark as selected
++        * @description Select an option by value
++        */
++        checkValue: function(value) {
++            if (this.get('type') == 'menu') {
++                var opts = this._button.options;
++                for (var i = 0; i < opts.length; i++) {
++                    if (opts[i].value == value) {
++                        opts.selectedIndex = i;
++                    }
++                }
++            }
++        },
++        /** 
++        * @method init
++        * @description The ToolbarButton class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.ToolbarButton.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.on('mouseover', this._handleMouseOver, this, true);
++            this.on('mouseout', this._handleMouseOut, this, true);
++            this.on('click', function(ev) {
++                Event.stopEvent(ev);
++                return false;
++            }, this, true);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */        
++        initAttributes: function(attr) {
++            YAHOO.widget.ToolbarButton.superclass.initAttributes.call(this, attr);
++            /**
++            * @attribute value
++            * @description The value of the button
++            * @type String
++            */            
++            this.setAttributeConfig('value', {
++                value: attr.value
++            });
++            /**
++            * @attribute menu
++            * @description The menu attribute, see YAHOO.widget.Button
++            * @type Object
++            */            
++            this.setAttributeConfig('menu', {
++                value: attr.menu || false
++            });
++            /**
++            * @attribute type
++            * @description The type of button to create: push, menu, color, select, spin
++            * @type String
++            */            
++            this.setAttributeConfig('type', {
++                value: attr.type,
++                writeOnce: true,
++                method: function(type) {
++                    var el, opt;
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    switch (type) {
++                        case 'select':
++                        case 'menu':
++                            el = document.createElement('select');
++                            el.id = this.get('id');
++                            var menu = this.get('menu');
++                            for (var i = 0; i < menu.length; i++) {
++                                opt = document.createElement('option');
++                                opt.innerHTML = menu[i].text;
++                                opt.value = menu[i].value;
++                                if (menu[i].checked) {
++                                    opt.selected = true;
++                                }
++                                el.appendChild(opt);
++                            }
++                            this._button.parentNode.replaceChild(el, this._button);
++                            Event.on(el, 'change', this._handleSelect, this, true);
++                            this._button = el;
++                            break;
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Set the button into a disabled state
++            * @type String
++            */            
++            this.setAttributeConfig('disabled', {
++                value: attr.disabled || false,
++                method: function(disabled) {
++                    if (disabled) {
++                        this.addClass('yui-button-disabled');
++                        this.addClass('yui-' + this.get('type') + '-button-disabled');
++                    } else {
++                        this.removeClass('yui-button-disabled');
++                        this.removeClass('yui-' + this.get('type') + '-button-disabled');
++                    }
++                    if ((this.get('type') == 'menu') || (this.get('type') == 'select')) {
++                        this._button.disabled = disabled;
++                    }
++                }
++            });
++
++            /**
++            * @attribute label
++            * @description The text label for the button
++            * @type String
++            */            
++            this.setAttributeConfig('label', {
++                value: attr.label,
++                method: function(label) {
++                    if (!this._button) {
++                        this._button = this.get('element').getElementsByTagName('a')[0];
++                    }
++                    if (this.get('type') == 'push') {
++                        this._button.innerHTML = label;
++                    }
++                }
++            });
++
++            /**
++            * @attribute title
++            * @description The title of the button
++            * @type String
++            */            
++            this.setAttributeConfig('title', {
++                value: attr.title
++            });
++
++            /**
++            * @config container
++            * @description The container that the button is rendered to, handled by Toolbar
++            * @type String
++            */            
++            this.setAttributeConfig('container', {
++                value: null,
++                writeOnce: true,
++                method: function(cont) {
++                    this.appendTo(cont);
++                }
++            });
++
++        },
++        /** 
++        * @private
++        * @method _handleSelect
++        * @description The event fired when a change event gets fired on a select element
++        * @param {Event} ev The change event.
++        */        
++        _handleSelect: function(ev) {
++            var tar = Event.getTarget(ev);
++            var value = tar.options[tar.selectedIndex].value;
++            this.fireEvent('change', {type: 'change', value: value });
++        },
++        /** 
++        * @method getMenu
++        * @description A stub function to mimic YAHOO.widget.Button's getMenu method
++        */        
++        getMenu: function() {
++            return this.get('menu');
++        },
++        /** 
++        * @method destroy
++        * @description Destroy the button
++        */        
++        destroy: function() {
++            Event.purgeElement(this.get('element'), true);
++            this.get('element').parentNode.removeChild(this.get('element'));
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }       
++        },
++        /** 
++        * @method fireEvent
++        * @description Overridden fireEvent method to prevent DOM events from firing if the button is disabled.
++        */        
++        fireEvent: function(p_sType, p_aArgs) {
++            //  Disabled buttons should not respond to DOM events
++            if (this.DOM_EVENTS[p_sType] && this.get('disabled')) {
++                Event.stopEvent(p_aArgs);
++                return;
++            }
++        
++            YAHOO.widget.ToolbarButton.superclass.fireEvent.call(this, p_sType, p_aArgs);
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */        
++        toString: function() {
++            return 'ToolbarButton (' + this.get('id') + ')';
++        }
++        
++    });
++})();
++/**
++ * @module editor
++ * @description <p>Creates a rich Toolbar widget based on Button. Primarily used with the Rich Text Editor</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbarbutton
++ * @optional container_core, dragdrop
++ */
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++    
++    var getButton = function(id) {
++        var button = id;
++        if (Lang.isString(id)) {
++            button = this.getButtonById(id);
++        }
++        if (Lang.isNumber(id)) {
++            button = this.getButtonByIndex(id);
++        }
++        if ((!(button instanceof YAHOO.widget.ToolbarButton)) && (!(button instanceof YAHOO.widget.ToolbarButtonAdvanced))) {
++            button = this.getButtonByValue(id);
++        }
++        if ((button instanceof YAHOO.widget.ToolbarButton) || (button instanceof YAHOO.widget.ToolbarButtonAdvanced)) {
++            return button;
++        }
++        return false;
++    };
++
++    /**
++     * Provides a rich toolbar widget based on the button and menu widgets
++     * @constructor
++     * @class Toolbar
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The element to turn into a toolbar.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    YAHOO.widget.Toolbar = function(el, attrs) {
++        
++        if (Lang.isObject(arguments[0]) && !Dom.get(el).nodeType) {
++            attrs = el;
++        }
++        var local_attrs = {};
++        if (attrs) {
++            Lang.augmentObject(local_attrs, attrs); //Break the config reference
++        }
++        
++
++        var oConfig = {
++            element: null,
++            attributes: local_attrs
++        };
++        
++        
++        if (Lang.isString(el) && Dom.get(el)) {
++            oConfig.element = Dom.get(el);
++        } else if (Lang.isObject(el) && Dom.get(el) && Dom.get(el).nodeType) {  
++            oConfig.element = Dom.get(el);
++        }
++        
++
++        if (!oConfig.element) {
++            oConfig.element = document.createElement('DIV');
++            oConfig.element.id = Dom.generateId();
++            
++            if (local_attrs.container && Dom.get(local_attrs.container)) {
++                Dom.get(local_attrs.container).appendChild(oConfig.element);
++            }
++        }
++        
++
++        if (!oConfig.element.id) {
++            oConfig.element.id = ((Lang.isString(el)) ? el : Dom.generateId());
++        }
++        
++        var fs = document.createElement('fieldset');
++        var lg = document.createElement('legend');
++        lg.innerHTML = 'Toolbar';
++        fs.appendChild(lg);
++        
++        var cont = document.createElement('DIV');
++        oConfig.attributes.cont = cont;
++        Dom.addClass(cont, 'yui-toolbar-subcont');
++        fs.appendChild(cont);
++        oConfig.element.appendChild(fs);
++
++        oConfig.element.tabIndex = -1;
++
++        
++        oConfig.attributes.element = oConfig.element;
++        oConfig.attributes.id = oConfig.element.id;
++
++        this._configuredButtons = [];
++
++        YAHOO.widget.Toolbar.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++         
++    };
++
++    YAHOO.extend(YAHOO.widget.Toolbar, YAHOO.util.Element, {
++        /**
++        * @protected
++        * @property _configuredButtons
++        * @type Array
++        */
++        _configuredButtons: null,
++        /**
++        * @method _addMenuClasses
++        * @private
++        * @description This method is called from Menu's renderEvent to add a few more classes to the menu items
++        * @param {String} ev The event that fired.
++        * @param {Array} na Array of event information.
++        * @param {Object} o Button config object. 
++        */
++        _addMenuClasses: function(ev, na, o) {
++            Dom.addClass(this.element, 'yui-toolbar-' + o.get('value') + '-menu');
++            if (Dom.hasClass(o._button.parentNode.parentNode, 'yui-toolbar-select')) {
++                Dom.addClass(this.element, 'yui-toolbar-select-menu');
++            }
++            var items = this.getItems();
++            for (var i = 0; i < items.length; i++) {
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-').toLowerCase() : items[i]._oText.nodeValue.replace(/ /g, '-').toLowerCase()));
++                Dom.addClass(items[i].element, 'yui-toolbar-' + o.get('value') + '-' + ((items[i].value) ? items[i].value.replace(/ /g, '-') : items[i]._oText.nodeValue.replace(/ /g, '-')));
++            }
++        },
++        /** 
++        * @property buttonType
++        * @description The default button to use
++        * @type Object
++        */
++        buttonType: YAHOO.widget.ToolbarButton,
++        /** 
++        * @property dd
++        * @description The DragDrop instance associated with the Toolbar
++        * @type Object
++        */
++        dd: null,
++        /** 
++        * @property _colorData
++        * @description Object reference containing colors hex and text values.
++        * @type Object
++        */
++        _colorData: {
++/* {{{ _colorData */
++    '#111111': 'Obsidian',
++    '#2D2D2D': 'Dark Gray',
++    '#434343': 'Shale',
++    '#5B5B5B': 'Flint',
++    '#737373': 'Gray',
++    '#8B8B8B': 'Concrete',
++    '#A2A2A2': 'Gray',
++    '#B9B9B9': 'Titanium',
++    '#000000': 'Black',
++    '#D0D0D0': 'Light Gray',
++    '#E6E6E6': 'Silver',
++    '#FFFFFF': 'White',
++    '#BFBF00': 'Pumpkin',
++    '#FFFF00': 'Yellow',
++    '#FFFF40': 'Banana',
++    '#FFFF80': 'Pale Yellow',
++    '#FFFFBF': 'Butter',
++    '#525330': 'Raw Siena',
++    '#898A49': 'Mildew',
++    '#AEA945': 'Olive',
++    '#7F7F00': 'Paprika',
++    '#C3BE71': 'Earth',
++    '#E0DCAA': 'Khaki',
++    '#FCFAE1': 'Cream',
++    '#60BF00': 'Cactus',
++    '#80FF00': 'Chartreuse',
++    '#A0FF40': 'Green',
++    '#C0FF80': 'Pale Lime',
++    '#DFFFBF': 'Light Mint',
++    '#3B5738': 'Green',
++    '#668F5A': 'Lime Gray',
++    '#7F9757': 'Yellow',
++    '#407F00': 'Clover',
++    '#8A9B55': 'Pistachio',
++    '#B7C296': 'Light Jade',
++    '#E6EBD5': 'Breakwater',
++    '#00BF00': 'Spring Frost',
++    '#00FF80': 'Pastel Green',
++    '#40FFA0': 'Light Emerald',
++    '#80FFC0': 'Sea Foam',
++    '#BFFFDF': 'Sea Mist',
++    '#033D21': 'Dark Forrest',
++    '#438059': 'Moss',
++    '#7FA37C': 'Medium Green',
++    '#007F40': 'Pine',
++    '#8DAE94': 'Yellow Gray Green',
++    '#ACC6B5': 'Aqua Lung',
++    '#DDEBE2': 'Sea Vapor',
++    '#00BFBF': 'Fog',
++    '#00FFFF': 'Cyan',
++    '#40FFFF': 'Turquoise Blue',
++    '#80FFFF': 'Light Aqua',
++    '#BFFFFF': 'Pale Cyan',
++    '#033D3D': 'Dark Teal',
++    '#347D7E': 'Gray Turquoise',
++    '#609A9F': 'Green Blue',
++    '#007F7F': 'Seaweed',
++    '#96BDC4': 'Green Gray',
++    '#B5D1D7': 'Soapstone',
++    '#E2F1F4': 'Light Turquoise',
++    '#0060BF': 'Summer Sky',
++    '#0080FF': 'Sky Blue',
++    '#40A0FF': 'Electric Blue',
++    '#80C0FF': 'Light Azure',
++    '#BFDFFF': 'Ice Blue',
++    '#1B2C48': 'Navy',
++    '#385376': 'Biscay',
++    '#57708F': 'Dusty Blue',
++    '#00407F': 'Sea Blue',
++    '#7792AC': 'Sky Blue Gray',
++    '#A8BED1': 'Morning Sky',
++    '#DEEBF6': 'Vapor',
++    '#0000BF': 'Deep Blue',
++    '#0000FF': 'Blue',
++    '#4040FF': 'Cerulean Blue',
++    '#8080FF': 'Evening Blue',
++    '#BFBFFF': 'Light Blue',
++    '#212143': 'Deep Indigo',
++    '#373E68': 'Sea Blue',
++    '#444F75': 'Night Blue',
++    '#00007F': 'Indigo Blue',
++    '#585E82': 'Dockside',
++    '#8687A4': 'Blue Gray',
++    '#D2D1E1': 'Light Blue Gray',
++    '#6000BF': 'Neon Violet',
++    '#8000FF': 'Blue Violet',
++    '#A040FF': 'Violet Purple',
++    '#C080FF': 'Violet Dusk',
++    '#DFBFFF': 'Pale Lavender',
++    '#302449': 'Cool Shale',
++    '#54466F': 'Dark Indigo',
++    '#655A7F': 'Dark Violet',
++    '#40007F': 'Violet',
++    '#726284': 'Smoky Violet',
++    '#9E8FA9': 'Slate Gray',
++    '#DCD1DF': 'Violet White',
++    '#BF00BF': 'Royal Violet',
++    '#FF00FF': 'Fuchsia',
++    '#FF40FF': 'Magenta',
++    '#FF80FF': 'Orchid',
++    '#FFBFFF': 'Pale Magenta',
++    '#4A234A': 'Dark Purple',
++    '#794A72': 'Medium Purple',
++    '#936386': 'Cool Granite',
++    '#7F007F': 'Purple',
++    '#9D7292': 'Purple Moon',
++    '#C0A0B6': 'Pale Purple',
++    '#ECDAE5': 'Pink Cloud',
++    '#BF005F': 'Hot Pink',
++    '#FF007F': 'Deep Pink',
++    '#FF409F': 'Grape',
++    '#FF80BF': 'Electric Pink',
++    '#FFBFDF': 'Pink',
++    '#451528': 'Purple Red',
++    '#823857': 'Purple Dino',
++    '#A94A76': 'Purple Gray',
++    '#7F003F': 'Rose',
++    '#BC6F95': 'Antique Mauve',
++    '#D8A5BB': 'Cool Marble',
++    '#F7DDE9': 'Pink Granite',
++    '#C00000': 'Apple',
++    '#FF0000': 'Fire Truck',
++    '#FF4040': 'Pale Red',
++    '#FF8080': 'Salmon',
++    '#FFC0C0': 'Warm Pink',
++    '#441415': 'Sepia',
++    '#82393C': 'Rust',
++    '#AA4D4E': 'Brick',
++    '#800000': 'Brick Red',
++    '#BC6E6E': 'Mauve',
++    '#D8A3A4': 'Shrimp Pink',
++    '#F8DDDD': 'Shell Pink',
++    '#BF5F00': 'Dark Orange',
++    '#FF7F00': 'Orange',
++    '#FF9F40': 'Grapefruit',
++    '#FFBF80': 'Canteloupe',
++    '#FFDFBF': 'Wax',
++    '#482C1B': 'Dark Brick',
++    '#855A40': 'Dirt',
++    '#B27C51': 'Tan',
++    '#7F3F00': 'Nutmeg',
++    '#C49B71': 'Mustard',
++    '#E1C4A8': 'Pale Tan',
++    '#FDEEE0': 'Marble'
++/* }}} */
++        },
++        /** 
++        * @property _colorPicker
++        * @description The HTML Element containing the colorPicker
++        * @type HTMLElement
++        */
++        _colorPicker: null,
++        /** 
++        * @property STR_COLLAPSE
++        * @description String for Toolbar Collapse Button
++        * @type String
++        */
++        STR_COLLAPSE: 'Collapse Toolbar',
++        /** 
++        * @property STR_EXPAND
++        * @description String for Toolbar Collapse Button - Expand
++        * @type String
++        */
++        STR_EXPAND: 'Expand Toolbar',
++        /** 
++        * @property STR_SPIN_LABEL
++        * @description String for spinbutton dynamic label. Note the {VALUE} will be replaced with YAHOO.lang.substitute
++        * @type String
++        */
++        STR_SPIN_LABEL: 'Spin Button with value {VALUE}. Use Control Shift Up Arrow and Control Shift Down arrow keys to increase or decrease the value.',
++        /** 
++        * @property STR_SPIN_UP
++        * @description String for spinbutton up
++        * @type String
++        */
++        STR_SPIN_UP: 'Click to increase the value of this input',
++        /** 
++        * @property STR_SPIN_DOWN
++        * @description String for spinbutton down
++        * @type String
++        */
++        STR_SPIN_DOWN: 'Click to decrease the value of this input',
++        /** 
++        * @property _titlebar
++        * @description Object reference to the titlebar
++        * @type HTMLElement
++        */
++        _titlebar: null,
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: YAHOO.env.ua,
++        /**
++        * @protected
++        * @property _buttonList
++        * @description Internal property list of current buttons in the toolbar
++        * @type Array
++        */
++        _buttonList: null,
++        /**
++        * @protected
++        * @property _buttonGroupList
++        * @description Internal property list of current button groups in the toolbar
++        * @type Array
++        */
++        _buttonGroupList: null,
++        /**
++        * @protected
++        * @property _sep
++        * @description Internal reference to the separator HTML Element for cloning
++        * @type HTMLElement
++        */
++        _sep: null,
++        /**
++        * @protected
++        * @property _sepCount
++        * @description Internal refernce for counting separators, so we can give them a useful class name for styling
++        * @type Number
++        */
++        _sepCount: null,
++        /**
++        * @protected
++        * @property draghandle
++        * @type HTMLElement
++        */
++        _dragHandle: null,
++        /**
++        * @protected
++        * @property _toolbarConfigs
++        * @type Object
++        */
++        _toolbarConfigs: {
++            renderer: true
++        },
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the toolbar container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-toolbar-container',
++        /**
++        * @protected
++        * @property CLASS_DRAGHANDLE
++        * @description Default CSS class to apply to the toolbar's drag handle element
++        * @type String
++        */
++        CLASS_DRAGHANDLE: 'yui-toolbar-draghandle',
++        /**
++        * @protected
++        * @property CLASS_SEPARATOR
++        * @description Default CSS class to apply to all separators in the toolbar
++        * @type String
++        */
++        CLASS_SEPARATOR: 'yui-toolbar-separator',
++        /**
++        * @protected
++        * @property CLASS_DISABLED
++        * @description Default CSS class to apply when the toolbar is disabled
++        * @type String
++        */
++        CLASS_DISABLED: 'yui-toolbar-disabled',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-toolbar',
++        /** 
++        * @method init
++        * @description The Toolbar class's initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.widget.Toolbar.superclass.init.call(this, p_oElement, p_oAttributes);
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the toolbar.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the toolbar.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.Toolbar.superclass.initAttributes.call(this, attr);
++            this.addClass(this.CLASS_CONTAINER);
++
++            /**
++            * @attribute buttonType
++            * @description The buttonType to use (advanced or basic)
++            * @type String
++            */
++            this.setAttributeConfig('buttonType', {
++                value: attr.buttonType || 'basic',
++                writeOnce: true,
++                validator: function(type) {
++                    switch (type) {
++                        case 'advanced':
++                        case 'basic':
++                            return true;
++                    }
++                    return false;
++                },
++                method: function(type) {
++                    if (type == 'advanced') {
++                        if (YAHOO.widget.Button) {
++                            this.buttonType = YAHOO.widget.ToolbarButtonAdvanced;
++                        } else {
++                            this.buttonType = YAHOO.widget.ToolbarButton;
++                        }
++                    } else {
++                        this.buttonType = YAHOO.widget.ToolbarButton;
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute buttons
++            * @description Object specifying the buttons to include in the toolbar
++            * Example:
++            * <code><pre>
++            * {
++            *   { id: 'b3', type: 'button', label: 'Underline', value: 'underline' },
++            *   { type: 'separator' },
++            *   { id: 'b4', type: 'menu', label: 'Align', value: 'align',
++            *       menu: [
++            *           { text: "Left", value: 'alignleft' },
++            *           { text: "Center", value: 'aligncenter' },
++            *           { text: "Right", value: 'alignright' }
++            *       ]
++            *   }
++            * }
++            * </pre></code>
++            * @type Array
++            */
++            
++            this.setAttributeConfig('buttons', {
++                value: [],
++                writeOnce: true,
++                method: function(data) {
++                    var i, button, buttons, len, b;
++                    for (i in data) {
++                        if (Lang.hasOwnProperty(data, i)) {
++                            if (data[i].type == 'separator') {
++                                this.addSeparator();
++                            } else if (data[i].group !== undefined) {
++                                buttons = this.addButtonGroup(data[i]);
++                                if (buttons) {
++                                    len = buttons.length;
++                                    for(b = 0; b < len; b++) {
++                                        if (buttons[b]) {
++                                            this._configuredButtons[this._configuredButtons.length] = buttons[b].id;
++                                        }
++                                    }
++                                }
++                                
++                            } else {
++                                button = this.addButton(data[i]);
++                                if (button) {
++                                    this._configuredButtons[this._configuredButtons.length] = button.id;
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute disabled
++            * @description Boolean indicating if the toolbar should be disabled. It will also disable the draggable attribute if it is on.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this.get('disabled') === disabled) {
++                        return false;
++                    }
++                    if (disabled) {
++                        this.addClass(this.CLASS_DISABLED);
++                        this.set('draggable', false);
++                        this.disableAllButtons();
++                    } else {
++                        this.removeClass(this.CLASS_DISABLED);
++                        if (this._configs.draggable._initialConfig.value) {
++                            //Draggable by default, set it back
++                            this.set('draggable', true);
++                        }
++                        this.resetAllButtons();
++                    }
++                }
++            });
++
++            /**
++            * @config cont
++            * @description The container for the toolbar.
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('cont', {
++                value: attr.cont,
++                readOnly: true
++            });
++
++
++            /**
++            * @attribute grouplabels
++            * @description Boolean indicating if the toolbar should show the group label's text string.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('grouplabels', {
++                value: ((attr.grouplabels === false) ? false : true),
++                method: function(grouplabels) {
++                    if (grouplabels) {
++                        Dom.removeClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    } else {
++                        Dom.addClass(this.get('cont'), (this.CLASS_PREFIX + '-nogrouplabels'));
++                    }
++                }
++            });
++            /**
++            * @attribute titlebar
++            * @description Boolean indicating if the toolbar should have a titlebar. If
++            * passed a string, it will use that as the titlebar text
++            * @default false
++            * @type Boolean or String
++            */
++            this.setAttributeConfig('titlebar', {
++                value: false,
++                method: function(titlebar) {
++                    if (titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                        this._titlebar = document.createElement('DIV');
++                        this._titlebar.tabIndex = '-1';
++                        Event.on(this._titlebar, 'focus', function() {
++                            this._handleFocus();
++                        }, this, true);
++                        Dom.addClass(this._titlebar, this.CLASS_PREFIX + '-titlebar');
++                        if (Lang.isString(titlebar)) {
++                            var h2 = document.createElement('h2');
++                            h2.tabIndex = '-1';
++                            h2.innerHTML = '<a href="#" tabIndex="0">' + titlebar + '</a>';
++                            this._titlebar.appendChild(h2);
++                            Event.on(h2.firstChild, 'click', function(ev) {
++                                Event.stopEvent(ev);
++                            });
++                            Event.on([h2, h2.firstChild], 'focus', function() {
++                                this._handleFocus();
++                            }, this, true);
++                        }
++                        if (this.get('firstChild')) {
++                            this.insertBefore(this._titlebar, this.get('firstChild'));
++                        } else {
++                            this.appendChild(this._titlebar);
++                        }
++                        if (this.get('collapse')) {
++                            this.set('collapse', true);
++                        }
++                    } else if (this._titlebar) {
++                        if (this._titlebar && this._titlebar.parentNode) {
++                            this._titlebar.parentNode.removeChild(this._titlebar);
++                        }
++                    }
++                }
++            });
++
++
++            /**
++            * @attribute collapse
++            * @description Boolean indicating if the the titlebar should have a collapse button.
++            * The collapse button will not remove the toolbar, it will minimize it to the titlebar
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('collapse', {
++                value: false,
++                method: function(collapse) {
++                    if (this._titlebar) {
++                        var collapseEl = null;
++                        var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                        if (collapse) {
++                            if (el.length > 0) {
++                                //There is already a collapse button
++                                return true;
++                            }
++                            collapseEl = document.createElement('SPAN');
++                            collapseEl.innerHTML = 'X';
++                            collapseEl.title = this.STR_COLLAPSE;
++
++                            Dom.addClass(collapseEl, 'collapse');
++                            this._titlebar.appendChild(collapseEl);
++                            Event.addListener(collapseEl, 'click', function() {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    this.collapse(false); //Expand Toolbar
++                                } else {
++                                    this.collapse(); //Collapse Toolbar
++                                }
++                            }, this, true);
++                        } else {
++                            collapseEl = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++                            if (collapseEl[0]) {
++                                if (Dom.hasClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed')) {
++                                    //We are closed, reopen the titlebar..
++                                    this.collapse(false); //Expand Toolbar
++                                }
++                                collapseEl[0].parentNode.removeChild(collapseEl[0]);
++                            }
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute draggable
++            * @description Boolean indicating if the toolbar should be draggable.  
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('draggable', {
++                value: (attr.draggable || false),
++                method: function(draggable) {
++                    if (draggable && !this.get('titlebar')) {
++                        if (!this._dragHandle) {
++                            this._dragHandle = document.createElement('SPAN');
++                            this._dragHandle.innerHTML = '|';
++                            this._dragHandle.setAttribute('title', 'Click to drag the toolbar');
++                            this._dragHandle.id = this.get('id') + '_draghandle';
++                            Dom.addClass(this._dragHandle, this.CLASS_DRAGHANDLE);
++                            if (this.get('cont').hasChildNodes()) {
++                                this.get('cont').insertBefore(this._dragHandle, this.get('cont').firstChild);
++                            } else {
++                                this.get('cont').appendChild(this._dragHandle);
++                            }
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._dragHandle.id);
++                            
++                        }
++                    } else {
++                        if (this._dragHandle) {
++                            this._dragHandle.parentNode.removeChild(this._dragHandle);
++                            this._dragHandle = null;
++                            this.dd = null;
++                        }
++                    }
++                    if (this._titlebar) {
++                        if (draggable) {
++                            this.dd = new YAHOO.util.DD(this.get('id'));
++                            this.dd.setHandleElId(this._titlebar);
++                            Dom.addClass(this._titlebar, 'draggable');
++                        } else {
++                            Dom.removeClass(this._titlebar, 'draggable');
++                            if (this.dd) {
++                                this.dd.unreg();
++                                this.dd = null;
++                            }
++                        }
++                    }
++                },
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.DD) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++
++        },
++        /**
++        * @method addButtonGroup
++        * @description Add a new button group to the toolbar. (uses addButton)
++        * @param {Object} oGroup Object literal reference to the Groups Config (contains an array of button configs as well as the group label)
++        */
++        addButtonGroup: function(oGroup) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButtonGroup', arguments];
++                return false;
++            }
++            
++            if (!this.hasClass(this.CLASS_PREFIX + '-grouped')) {
++                this.addClass(this.CLASS_PREFIX + '-grouped');
++            }
++            var div = document.createElement('DIV');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group');
++            Dom.addClass(div, this.CLASS_PREFIX + '-group-' + oGroup.group);
++            if (oGroup.label) {
++                var label = document.createElement('h3');
++                label.innerHTML = oGroup.label;
++                div.appendChild(label);
++            }
++            if (!this.get('grouplabels')) {
++                Dom.addClass(this.get('cont'), this.CLASS_PREFIX, '-nogrouplabels');
++            }
++
++            this.get('cont').appendChild(div);
++
++            //For accessibility, let's put all of the group buttons in an Unordered List
++            var ul = document.createElement('ul');
++            div.appendChild(ul);
++
++            if (!this._buttonGroupList) {
++                this._buttonGroupList = {};
++            }
++            
++            this._buttonGroupList[oGroup.group] = ul;
++
++            //An array of the button ids added to this group
++            //This is used for destruction later...
++            var addedButtons = [],
++                button;
++            
++
++            for (var i = 0; i < oGroup.buttons.length; i++) {
++                var li = document.createElement('li');
++                li.className = this.CLASS_PREFIX + '-groupitem';
++                ul.appendChild(li);
++                if ((oGroup.buttons[i].type !== undefined) && oGroup.buttons[i].type == 'separator') {
++                    this.addSeparator(li);
++                } else {
++                    oGroup.buttons[i].container = li;
++                    button = this.addButton(oGroup.buttons[i]);
++                    if (button) {
++                        addedButtons[addedButtons.length]  = button.id;
++                    }
++                }
++            }
++            return addedButtons;
++        },
++        /**
++        * @method addButtonToGroup
++        * @description Add a new button to a toolbar group. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {String} group The Group identifier passed into the initial config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButtonToGroup: function(oButton, group, after) {
++            var groupCont = this._buttonGroupList[group],
++                li = document.createElement('li');
++
++            li.className = this.CLASS_PREFIX + '-groupitem';
++            oButton.container = li;
++            this.addButton(oButton, after);
++            groupCont.appendChild(li);
++        },
++        /**
++        * @method addButton
++        * @description Add a new button to the toolbar. Buttons supported:
++        *   push, split, menu, select, color, spin
++        * @param {Object} oButton Object literal reference to the Button's Config
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addButton: function(oButton, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addButton', arguments];
++                return false;
++            }
++            if (!this._buttonList) {
++                this._buttonList = [];
++            }
++            if (!oButton.container) {
++                oButton.container = this.get('cont');
++            }
++
++            if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                if (Lang.isArray(oButton.menu)) {
++                    for (var i in oButton.menu) {
++                        if (Lang.hasOwnProperty(oButton.menu, i)) {
++                            var funcObject = {
++                                fn: function(ev, x, oMenu) {
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                },
++                                scope: this
++                            };
++                            oButton.menu[i].onclick = funcObject;
++                        }
++                    }
++                }
++            }
++            var _oButton = {}, skip = false;
++            for (var o in oButton) {
++                if (Lang.hasOwnProperty(oButton, o)) {
++                    if (!this._toolbarConfigs[o]) {
++                        _oButton[o] = oButton[o];
++                    }
++                }
++            }
++            if (oButton.type == 'select') {
++                _oButton.type = 'menu';
++            }
++            if (oButton.type == 'spin') {
++                _oButton.type = 'push';
++            }
++            if (_oButton.type == 'color') {
++                if (YAHOO.widget.Overlay) {
++                    _oButton = this._makeColorButton(_oButton);
++                } else {
++                    skip = true;
++                }
++            }
++            if (_oButton.menu) {
++                if ((YAHOO.widget.Overlay) && (oButton.menu instanceof YAHOO.widget.Overlay)) {
++                    oButton.menu.showEvent.subscribe(function() {
++                        this._button = _oButton;
++                    });
++                } else {
++                    for (var m = 0; m < _oButton.menu.length; m++) {
++                        if (!_oButton.menu[m].value) {
++                            _oButton.menu[m].value = _oButton.menu[m].text;
++                        }
++                    }
++                    if (this.browser.webkit) {
++                        _oButton.focusmenu = false;
++                    }
++                }
++            }
++            if (skip) {
++                oButton = false;
++            } else {
++                //Add to .get('buttons') manually
++                this._configs.buttons.value[this._configs.buttons.value.length] = oButton;
++                
++                var tmp = new this.buttonType(_oButton);
++                tmp.get('element').tabIndex = '-1';
++                tmp.get('element').setAttribute('role', 'button');
++                tmp._selected = true;
++                
++                if (this.get('disabled')) {
++                    //Toolbar is disabled, disable the new button too!
++                    tmp.set('disabled', true);
++                }
++                if (!oButton.id) {
++                    oButton.id = tmp.get('id');
++                }
++                
++                if (after) {
++                    var el = tmp.get('element');
++                    var nextSib = null;
++                    if (after.get) {
++                        nextSib = after.get('element').nextSibling;
++                    } else if (after.nextSibling) {
++                        nextSib = after.nextSibling;
++                    }
++                    if (nextSib) {
++                        nextSib.parentNode.insertBefore(el, nextSib);
++                    }
++                }
++                tmp.addClass(this.CLASS_PREFIX + '-' + tmp.get('value'));
++
++                var icon = document.createElement('span');
++                icon.className = this.CLASS_PREFIX + '-icon';
++                tmp.get('element').insertBefore(icon, tmp.get('firstChild'));
++                if (tmp._button.tagName.toLowerCase() == 'button') {
++                    tmp.get('element').setAttribute('unselectable', 'on');
++                    //Replace the Button HTML Element with an a href if it exists
++                    var a = document.createElement('a');
++                    a.innerHTML = tmp._button.innerHTML;
++                    a.href = '#';
++                    a.tabIndex = '-1';
++                    Event.on(a, 'click', function(ev) {
++                        Event.stopEvent(ev);
++                    });
++                    tmp._button.parentNode.replaceChild(a, tmp._button);
++                    tmp._button = a;
++                }
++
++                if (oButton.type == 'select') {
++                    if (tmp._button.tagName.toLowerCase() == 'select') {
++                        icon.parentNode.removeChild(icon);
++                        var iel = tmp._button,
++                            parEl = tmp.get('element');
++                        parEl.parentNode.replaceChild(iel, parEl);
++                        //The 'element' value is currently the orphaned element
++                        //In order for "destroy" to execute we need to get('element') to reference the correct node.
++                        //I'm not sure if there is a direct approach to setting this value.
++                        tmp._configs.element.value = iel;
++                    } else {
++                        //Don't put a class on it if it's a real select element
++                        tmp.addClass(this.CLASS_PREFIX + '-select');
++                    }
++                }
++                if (oButton.type == 'spin') {
++                    if (!Lang.isArray(oButton.range)) {
++                        oButton.range = [ 10, 100 ];
++                    }
++                    this._makeSpinButton(tmp, oButton);
++                }
++                tmp.get('element').setAttribute('title', tmp.get('label'));
++                if (oButton.type != 'spin') {
++                    if ((YAHOO.widget.Overlay) && (_oButton.menu instanceof YAHOO.widget.Overlay)) {
++                        var showPicker = function(ev) {
++                            var exec = true;
++                            if (ev.keyCode && (ev.keyCode == 9)) {
++                                exec = false;
++                            }
++                            if (exec) {
++                                if (this._colorPicker) {
++                                    this._colorPicker._button = oButton.value;
++                                }
++                                var menuEL = tmp.getMenu().element;
++                                if (Dom.getStyle(menuEL, 'visibility') == 'hidden') {
++                                    tmp.getMenu().show();
++                                } else {
++                                    tmp.getMenu().hide();
++                                }
++                            }
++                            YAHOO.util.Event.stopEvent(ev);
++                        };
++                        tmp.on('mousedown', showPicker, oButton, this);
++                        tmp.on('keydown', showPicker, oButton, this);
++                        
++                    } else if ((oButton.type != 'menu') && (oButton.type != 'select')) {
++                        tmp.on('keypress', this._buttonClick, oButton, this);
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                            this._buttonClick(ev, oButton);
++                        }, oButton, this);
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                    } else {
++                        //Stop the mousedown event so we can trap the selection in the editor!
++                        tmp.on('mousedown', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('click', function(ev) {
++                            YAHOO.util.Event.stopEvent(ev);
++                        });
++                        tmp.on('change', function(ev) {
++                            if (!ev.target) {
++                                if (!oButton.menucmd) {
++                                    oButton.menucmd = oButton.value;
++                                }
++                                oButton.value = ev.value;
++                                this._buttonClick(ev, oButton);
++                            }
++                        }, this, true);
++
++                        var self = this;
++                        //Hijack the mousedown event in the menu and make it fire a button click..
++                        tmp.on('appendTo', function() {
++                            var tmp = this;
++                            if (tmp.getMenu() && tmp.getMenu().mouseDownEvent) {
++                                tmp.getMenu().mouseDownEvent.subscribe(function(ev, args) {
++                                    var oMenu = args[1];
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                    tmp._onMenuClick(args[0], tmp);
++                                    if (!oButton.menucmd) {
++                                        oButton.menucmd = oButton.value;
++                                    }
++                                    oButton.value = ((oMenu.value) ? oMenu.value : oMenu._oText.nodeValue);
++                                    self._buttonClick.call(self, args[1], oButton);
++                                    tmp._hideMenu();
++                                    return false;
++                                });
++                                tmp.getMenu().clickEvent.subscribe(function(ev, args) {
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                                tmp.getMenu().mouseUpEvent.subscribe(function(ev, args) {
++                                    YAHOO.util.Event.stopEvent(args[0]);
++                                });
++                            }
++                        });
++                        
++                    }
++                } else {
++                    //Stop the mousedown event so we can trap the selection in the editor!
++                    tmp.on('mousedown', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    });
++                }
++                if (this.browser.ie) {
++                    /*
++                    //Add a couple of new events for IE
++                    tmp.DOM_EVENTS.focusin = true;
++                    tmp.DOM_EVENTS.focusout = true;
++                    
++                    //Stop them so we don't loose focus in the Editor
++                    tmp.on('focusin', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    
++                    tmp.on('focusout', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    tmp.on('click', function(ev) {
++                        YAHOO.util.Event.stopEvent(ev);
++                    }, oButton, this);
++                    */
++                }
++                if (this.browser.webkit) {
++                    //This will keep the document from gaining focus and the editor from loosing it..
++                    //Forcefully remove the focus calls in button!
++                    tmp.hasFocus = function() {
++                        return true;
++                    };
++                }
++                this._buttonList[this._buttonList.length] = tmp;
++                if ((oButton.type == 'menu') || (oButton.type == 'split') || (oButton.type == 'select')) {
++                    if (Lang.isArray(oButton.menu)) {
++                        var menu = tmp.getMenu();
++                        if (menu && menu.renderEvent) {
++                            menu.renderEvent.subscribe(this._addMenuClasses, tmp);
++                            if (oButton.renderer) {
++                                menu.renderEvent.subscribe(oButton.renderer, tmp);
++                            }
++                        }
++                    }
++                }
++            }
++            return oButton;
++        },
++        /**
++        * @method addSeparator
++        * @description Add a new button separator to the toolbar.
++        * @param {HTMLElement} cont Optional HTML element to insert this button into.
++        * @param {HTMLElement} after Optional HTML element to insert this button after in the DOM.
++        */
++        addSeparator: function(cont, after) {
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            var sepCont = ((cont) ? cont : this.get('cont'));
++            if (!this.get('element')) {
++                this._queue[this._queue.length] = ['addSeparator', arguments];
++                return false;
++            }
++            if (this._sepCount === null) {
++                this._sepCount = 0;
++            }
++            if (!this._sep) {
++                this._sep = document.createElement('SPAN');
++                Dom.addClass(this._sep, this.CLASS_SEPARATOR);
++                this._sep.innerHTML = '|';
++            }
++            var _sep = this._sep.cloneNode(true);
++            this._sepCount++;
++            Dom.addClass(_sep, this.CLASS_SEPARATOR + '-' + this._sepCount);
++            if (after) {
++                var nextSib = null;
++                if (after.get) {
++                    nextSib = after.get('element').nextSibling;
++                } else if (after.nextSibling) {
++                    nextSib = after.nextSibling;
++                } else {
++                    nextSib = after;
++                }
++                if (nextSib) {
++                    if (nextSib == after) {
++                        nextSib.parentNode.appendChild(_sep);
++                    } else {
++                        nextSib.parentNode.insertBefore(_sep, nextSib);
++                    }
++                }
++            } else {
++                sepCont.appendChild(_sep);
++            }
++            return _sep;
++        },
++        /**
++        * @method _createColorPicker
++        * @private
++        * @description Creates the core DOM reference to the color picker menu item.
++        * @param {String} id the id of the toolbar to prefix this DOM container with.
++        */
++        _createColorPicker: function(id) {
++            if (Dom.get(id + '_colors')) {
++               Dom.get(id + '_colors').parentNode.removeChild(Dom.get(id + '_colors'));
++            }
++            var picker = document.createElement('div');
++            picker.className = 'yui-toolbar-colors';
++            picker.id = id + '_colors';
++            picker.style.display = 'none';
++            Event.on(window, 'load', function() {
++                document.body.appendChild(picker);
++            }, this, true);
++
++            this._colorPicker = picker;
++
++            var html = '';
++            for (var i in this._colorData) {
++                if (Lang.hasOwnProperty(this._colorData, i)) {
++                    html += '<a style="background-color: ' + i + '" href="#">' + i.replace('#', '') + '</a>';
++                }
++            }
++            html += '<span><em>X</em><strong></strong></span>';
++            window.setTimeout(function() {
++                picker.innerHTML = html;
++            }, 0);
++
++            Event.on(picker, 'mouseover', function(ev) {
++                var picker = this._colorPicker;
++                var em = picker.getElementsByTagName('em')[0];
++                var strong = picker.getElementsByTagName('strong')[0];
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    em.style.backgroundColor = tar.style.backgroundColor;
++                    strong.innerHTML = this._colorData['#' + tar.innerHTML] + '<br>' + tar.innerHTML;
++                }
++            }, this, true);
++            Event.on(picker, 'focus', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'click', function(ev) {
++                Event.stopEvent(ev);
++            });
++            Event.on(picker, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++                var tar = Event.getTarget(ev);
++                if (tar.tagName.toLowerCase() == 'a') {
++                    var retVal = this.fireEvent('colorPickerClicked', { type: 'colorPickerClicked', target: this, button: this._colorPicker._button, color: tar.innerHTML, colorName: this._colorData['#' + tar.innerHTML] } );
++                    if (retVal !== false) {
++                        var info = {
++                            color: tar.innerHTML,
++                            colorName: this._colorData['#' + tar.innerHTML],
++                            value: this._colorPicker._button 
++                        };
++                    
++                        this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                    }
++                    this.getButtonByValue(this._colorPicker._button).getMenu().hide();
++                }
++            }, this, true);
++        },
++        /**
++        * @method _resetColorPicker
++        * @private
++        * @description Clears the currently selected color or mouseover color in the color picker.
++        */
++        _resetColorPicker: function() {
++            var em = this._colorPicker.getElementsByTagName('em')[0];
++            var strong = this._colorPicker.getElementsByTagName('strong')[0];
++            em.style.backgroundColor = 'transparent';
++            strong.innerHTML = '';
++        },
++        /**
++        * @method _makeColorButton
++        * @private
++        * @description Called to turn a "color" button into a menu button with an Overlay for the menu.
++        * @param {Object} _oButton <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        */
++        _makeColorButton: function(_oButton) {
++            if (!this._colorPicker) {   
++                this._createColorPicker(this.get('id'));
++            }
++            _oButton.type = 'color';
++            _oButton.menu = new YAHOO.widget.Overlay(this.get('id') + '_' + _oButton.value + '_menu', { visible: false, position: 'absolute', iframe: true });
++            _oButton.menu.setBody('');
++            _oButton.menu.render(this.get('cont'));
++            Dom.addClass(_oButton.menu.element, 'yui-button-menu');
++            Dom.addClass(_oButton.menu.element, 'yui-color-button-menu');
++            _oButton.menu.beforeShowEvent.subscribe(function() {
++                _oButton.menu.cfg.setProperty('zindex', 5); //Re Adjust the overlays zIndex.. not sure why.
++                _oButton.menu.cfg.setProperty('context', [this.getButtonById(_oButton.id).get('element'), 'tl', 'bl']); //Re Adjust the overlay.. not sure why.
++                //Move the DOM reference of the color picker to the Overlay that we are about to show.
++                this._resetColorPicker();
++                var _p = this._colorPicker;
++                if (_p.parentNode) {
++                    _p.parentNode.removeChild(_p);
++                }
++                _oButton.menu.setBody('');
++                _oButton.menu.appendToBody(_p);
++                this._colorPicker.style.display = 'block';
++            }, this, true);
++            return _oButton;
++        },
++        /**
++        * @private
++        * @method _makeSpinButton
++        * @description Create a button similar to an OS Spin button.. It has an up/down arrow combo to scroll through a range of int values.
++        * @param {Object} _button <a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> reference
++        * @param {Object} oButton Object literal containing the buttons initial config
++        */
++        _makeSpinButton: function(_button, oButton) {
++            _button.addClass(this.CLASS_PREFIX + '-spinbutton');
++            var self = this,
++                _par = _button._button.parentNode.parentNode, //parentNode of Button Element for appending child
++                range = oButton.range,
++                _b1 = document.createElement('a'),
++                _b2 = document.createElement('a');
++                _b1.href = '#';
++                _b2.href = '#';
++                _b1.tabIndex = '-1';
++                _b2.tabIndex = '-1';
++            
++            //Setup the up and down arrows
++            _b1.className = 'up';
++            _b1.title = this.STR_SPIN_UP;
++            _b1.innerHTML = this.STR_SPIN_UP;
++            _b2.className = 'down';
++            _b2.title = this.STR_SPIN_DOWN;
++            _b2.innerHTML = this.STR_SPIN_DOWN;
++
++            //Append them to the container
++            _par.appendChild(_b1);
++            _par.appendChild(_b2);
++            
++            var label = YAHOO.lang.substitute(this.STR_SPIN_LABEL, { VALUE: _button.get('label') });
++            _button.set('title', label);
++
++            var cleanVal = function(value) {
++                value = ((value < range[0]) ? range[0] : value);
++                value = ((value > range[1]) ? range[1] : value);
++                return value;
++            };
++
++            var br = this.browser;
++            var tbar = false;
++            var strLabel = this.STR_SPIN_LABEL;
++            if (this._titlebar && this._titlebar.firstChild) {
++                tbar = this._titlebar.firstChild;
++            }
++            
++            var _intUp = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value++;
++                    value = cleanVal(value);
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intDown = function(ev) {
++                YAHOO.util.Event.stopEvent(ev);
++                if (!_button.get('disabled') && (ev.keyCode != 9)) {
++                    var value = parseInt(_button.get('label'), 10);
++                    value--;
++                    value = cleanVal(value);
++
++                    _button.set('label', ''+value);
++                    var label = YAHOO.lang.substitute(strLabel, { VALUE: _button.get('label') });
++                    _button.set('title', label);
++                    if (!br.webkit && tbar) {
++                        //tbar.focus(); //We do this for accessibility, on the re-focus of the element, a screen reader will re-read the title that was just changed
++                        //_button.focus();
++                    }
++                    self._buttonClick(ev, oButton);
++                }
++            };
++
++            var _intKeyUp = function(ev) {
++                if (ev.keyCode == 38) {
++                    _intUp(ev);
++                } else if (ev.keyCode == 40) {
++                    _intDown(ev);
++                } else if (ev.keyCode == 107 && ev.shiftKey) {  //Plus Key
++                    _intUp(ev);
++                } else if (ev.keyCode == 109 && ev.shiftKey) {  //Minus Key
++                    _intDown(ev);
++                }
++            };
++
++            //Handle arrow keys..
++            _button.on('keydown', _intKeyUp, this, true);
++
++            //Listen for the click on the up button and act on it
++            //Listen for the click on the down button and act on it
++            Event.on(_b1, 'mousedown',function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b2, 'mousedown', function(ev) {
++                Event.stopEvent(ev);
++            }, this, true);
++            Event.on(_b1, 'click', _intUp, this, true);
++            Event.on(_b2, 'click', _intDown, this, true);
++        },
++        /**
++        * @protected
++        * @method _buttonClick
++        * @description Click handler for all buttons in the toolbar.
++        * @param {String} ev The event that was passed in.
++        * @param {Object} info Object literal of information about the button that was clicked.
++        */
++        _buttonClick: function(ev, info) {
++            var doEvent = true;
++            
++            if (ev && ev.type == 'keypress') {
++                if (ev.keyCode == 9) {
++                    doEvent = false;
++                } else if ((ev.keyCode === 13) || (ev.keyCode === 0) || (ev.keyCode === 32)) {
++                } else {
++                    doEvent = false;
++                }
++            }
++
++            if (doEvent) {
++                var fireNextEvent = true,
++                    retValue = false;
++                    
++                info.isSelected = this.isSelected(info.id);
++
++                if (info.value) {
++                    retValue = this.fireEvent(info.value + 'Click', { type: info.value + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                
++                if (info.menucmd && fireNextEvent) {
++                    retValue = this.fireEvent(info.menucmd + 'Click', { type: info.menucmd + 'Click', target: this.get('element'), button: info });
++                    if (retValue === false) {
++                        fireNextEvent = false;
++                    }
++                }
++                if (fireNextEvent) {
++                    this.fireEvent('buttonClick', { type: 'buttonClick', target: this.get('element'), button: info });
++                }
++
++                if (info.type == 'select') {
++                    var button = this.getButtonById(info.id);
++                    if (button.buttonType == 'rich') {
++                        var txt = info.value;
++                        for (var i = 0; i < info.menu.length; i++) {
++                            if (info.menu[i].value == info.value) {
++                                txt = info.menu[i].text;
++                                break;
++                            }
++                        }
++                        button.set('label', '<span class="yui-toolbar-' + info.menucmd + '-' + (info.value).replace(/ /g, '-').toLowerCase() + '">' + txt + '</span>');
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value.toLowerCase() == info.value.toLowerCase()) {
++                                _items[m].cfg.setProperty('checked', true);
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++                if (ev) {
++                    Event.stopEvent(ev);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _keyNav
++        * @description Flag to determine if the arrow nav listeners have been attached
++        * @type Boolean
++        */
++        _keyNav: null,
++        /**
++        * @private
++        * @property _navCounter
++        * @description Internal counter for walking the buttons in the toolbar with the arrow keys
++        * @type Number
++        */
++        _navCounter: null,
++        /**
++        * @private
++        * @method _navigateButtons
++        * @description Handles the navigation/focus of toolbar buttons with the Arrow Keys
++        * @param {Event} ev The Key Event
++        */
++        _navigateButtons: function(ev) {
++            switch (ev.keyCode) {
++                case 37:
++                case 39:
++                    if (ev.keyCode == 37) {
++                        this._navCounter--;
++                    } else {
++                        this._navCounter++;
++                    }
++                    if (this._navCounter > (this._buttonList.length - 1)) {
++                        this._navCounter = 0;
++                    }
++                    if (this._navCounter < 0) {
++                        this._navCounter = (this._buttonList.length - 1);
++                    }
++                    if (this._buttonList[this._navCounter]) {
++                        var el = this._buttonList[this._navCounter].get('element');
++                        if (this.browser.ie) {
++                            el = this._buttonList[this._navCounter].get('element').getElementsByTagName('a')[0];
++                        }
++                        if (this._buttonList[this._navCounter].get('disabled')) {
++                            this._navigateButtons(ev);
++                        } else {
++                            el.focus();
++                        }
++                    }
++                    break;
++            }
++        },
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Sets up the listeners for the arrow key navigation
++        */
++        _handleFocus: function() {
++            if (!this._keyNav) {
++                var ev = 'keypress';
++                if (this.browser.ie) {
++                    ev = 'keydown';
++                }
++                Event.on(this.get('element'), ev, this._navigateButtons, this, true);
++                this._keyNav = true;
++                this._navCounter = -1;
++            }
++        },
++        /**
++        * @method getButtonById
++        * @description Gets a button instance from the toolbar by is Dom id.
++        * @param {String} id The Dom id to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonById: function(id) {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                if (this._buttonList[i] && this._buttonList[i].get('id') == id) {
++                    return this._buttonList[i];
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByValue
++        * @description Gets a button instance or a menuitem instance from the toolbar by it's value.
++        * @param {String} value The button value to query for.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a> or <a href="YAHOO.widget.MenuItem.html">YAHOO.widget.MenuItem</a>}
++        */
++        getButtonByValue: function(value) {
++            var _buttons = this.get('buttons');
++            if (!_buttons) {
++                return false;
++            }
++            var len = _buttons.length;
++            for (var i = 0; i < len; i++) {
++                if (_buttons[i].group !== undefined) {
++                    for (var m = 0; m < _buttons[i].buttons.length; m++) {
++                        if ((_buttons[i].buttons[m].value == value) || (_buttons[i].buttons[m].menucmd == value)) {
++                            return this.getButtonById(_buttons[i].buttons[m].id);
++                        }
++                        if (_buttons[i].buttons[m].menu) { //Menu Button, loop through the values
++                            for (var s = 0; s < _buttons[i].buttons[m].menu.length; s++) {
++                                if (_buttons[i].buttons[m].menu[s].value == value) {
++                                    return this.getButtonById(_buttons[i].buttons[m].id);
++                                }
++                            }
++                        }
++                    }
++                } else {
++                    if ((_buttons[i].value == value) || (_buttons[i].menucmd == value)) {
++                        return this.getButtonById(_buttons[i].id);
++                    }
++                    if (_buttons[i].menu) { //Menu Button, loop through the values
++                        for (var j = 0; j < _buttons[i].menu.length; j++) {
++                            if (_buttons[i].menu[j].value == value) {
++                                return this.getButtonById(_buttons[i].id);
++                            }
++                        }
++                    }
++                }
++            }
++            return false;
++        },
++        /**
++        * @method getButtonByIndex
++        * @description Gets a button instance from the toolbar by is index in _buttonList.
++        * @param {Number} index The index of the button in _buttonList.
++        * @return {<a href="YAHOO.widget.ToolbarButton.html">YAHOO.widget.ToolbarButton</a>}
++        */
++        getButtonByIndex: function(index) {
++            if (this._buttonList[index]) {
++                return this._buttonList[index];
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method getButtons
++        * @description Returns an array of buttons in the current toolbar
++        * @return {Array}
++        */
++        getButtons: function() {
++            return this._buttonList;
++        },
++        /**
++        * @method disableButton
++        * @description Disables a button in the toolbar.
++        * @param {String/Number} id Disable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        disableButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.set('disabled', true);
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method enableButton
++        * @description Enables a button in the toolbar.
++        * @param {String/Number} id Enable a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        enableButton: function(id) {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var button = getButton.call(this, id);
++            if (button) {
++                if (button.get('disabled')) {
++                    button.set('disabled', false);
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method isSelected
++        * @description Tells if a button is selected or not.
++        * @param {String/Number} id A button by it's id, index or value.
++        * @return {Boolean}
++        */
++        isSelected: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                return button._selected;
++            }
++            return false;
++        },
++        /**
++        * @method selectButton
++        * @description Selects a button in the toolbar.
++        * @param {String/Number} id Select a button by it's id, index or value.
++        * @param {String} value If this is a Menu Button, check this item in the menu
++        * @return {Boolean}
++        */
++        selectButton: function(id, value) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.addClass('yui-button-selected');
++                button.addClass('yui-button-' + button.get('value') + '-selected');
++                button._selected = true;
++                if (value) {
++                    if (button.buttonType == 'rich') {
++                        var _items = button.getMenu().getItems();
++                        for (var m = 0; m < _items.length; m++) {
++                            if (_items[m].value == value) {
++                                _items[m].cfg.setProperty('checked', true);
++                                button.set('label', '<span class="yui-toolbar-' + button.get('value') + '-' + (value).replace(/ /g, '-').toLowerCase() + '">' + _items[m]._oText.nodeValue + '</span>');
++                            } else {
++                                _items[m].cfg.setProperty('checked', false);
++                            }
++                        }
++                    }
++                }
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectButton
++        * @description Deselects a button in the toolbar.
++        * @param {String/Number} id Deselect a button by it's id, index or value.
++        * @return {Boolean}
++        */
++        deselectButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                button.removeClass('yui-button-selected');
++                button.removeClass('yui-button-' + button.get('value') + '-selected');
++                button.removeClass('yui-button-hover');
++                button._selected = false;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method deselectAllButtons
++        * @description Deselects all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        deselectAllButtons: function() {
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.deselectButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method disableAllButtons
++        * @description Disables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        disableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.disableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method enableAllButtons
++        * @description Enables all buttons in the toolbar.
++        * @return {Boolean}
++        */
++        enableAllButtons: function() {
++            if (this.get('disabled')) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                this.enableButton(this._buttonList[i]);
++            }
++        },
++        /**
++        * @method resetAllButtons
++        * @description Resets all buttons to their initial state.
++        * @param {Object} _ex Except these buttons
++        * @return {Boolean}
++        */
++        resetAllButtons: function(_ex) {
++            if (!Lang.isObject(_ex)) {
++                _ex = {};
++            }
++            if (this.get('disabled') || !this._buttonList) {
++                return false;
++            }
++            var len = this._buttonList.length;
++            for (var i = 0; i < len; i++) {
++                var _button = this._buttonList[i];
++                if (_button) {
++                    var disabled = _button._configs.disabled._initialConfig.value;
++                    if (_ex[_button.get('id')]) {
++                        this.enableButton(_button);
++                        this.selectButton(_button);
++                    } else {
++                        if (disabled) {
++                            this.disableButton(_button);
++                        } else {
++                            this.enableButton(_button);
++                        }
++                        this.deselectButton(_button);
++                    }
++                }
++            }
++        },
++        /**
++        * @method destroyButton
++        * @description Destroy a button in the toolbar.
++        * @param {String/Number} id Destroy a button by it's id or index.
++        * @return {Boolean}
++        */
++        destroyButton: function(id) {
++            var button = getButton.call(this, id);
++            if (button) {
++                var thisID = button.get('id'),
++                    new_list = [], i = 0,
++                    len = this._buttonList.length;
++
++                button.destroy();
++                
++                for (i = 0; i < len; i++) {
++                    if (this._buttonList[i].get('id') != thisID) {
++                        new_list[new_list.length]= this._buttonList[i];
++                    }
++                }
++
++                this._buttonList = new_list;
++            } else {
++                return false;
++            }
++        },
++        /**
++        * @method destroy
++        * @description Destroys the toolbar, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            var len = this._configuredButtons.length, j, i;
++            for(b = 0; b < len; b++) {
++                this.destroyButton(this._configuredButtons[b]);
++            }
++
++            this._configuredButtons = null;
++        
++            this.get('element').innerHTML = '';
++            this.get('element').className = '';
++            //Brutal Object Destroy
++            for (i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }
++            return true;
++        },
++        /**
++        * @method collapse
++        * @description Programatically collapse the toolbar.
++        * @param {Boolean} collapse True to collapse, false to expand.
++        */
++        collapse: function(collapse) {
++            var el = Dom.getElementsByClassName('collapse', 'span', this._titlebar);
++            if (collapse === false) {
++                Dom.removeClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                if (el[0]) {
++                    Dom.removeClass(el[0], 'collapsed');
++                    el[0].title = this.STR_COLLAPSE;
++                }
++                this.fireEvent('toolbarExpanded', { type: 'toolbarExpanded', target: this });
++            } else {
++                if (el[0]) {
++                    Dom.addClass(el[0], 'collapsed');
++                    el[0].title = this.STR_EXPAND;
++                }
++                Dom.addClass(this.get('cont').parentNode, 'yui-toolbar-container-collapsed');
++                this.fireEvent('toolbarCollapsed', { type: 'toolbarCollapsed', target: this });
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the toolbar.
++        * @return {String}
++        */
++        toString: function() {
++            return 'Toolbar (#' + this.get('element').id + ') with ' + this._buttonList.length + ' buttons.';
++        }
++    });
++/**
++* @event buttonClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description Fires when any botton receives a click event. Passes back a single object representing the buttons config object. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event valueClick
++* @param {Object} o The object passed to this handler is the button config used to create the button.
++* @description This is a special dynamic event that is created and dispatched based on the value property
++* of the button config. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* Example:
++* <code><pre>
++* buttons : [
++*   { type: 'button', value: 'test', value: 'testButton' }
++* ]</pre>
++* </code>
++* With the valueClick event you could subscribe to this buttons click event with this:
++* tbar.in('testButtonClick', function() { alert('test button clicked'); })
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarExpanded
++* @description Fires when the toolbar is expanded via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event toolbarCollapsed
++* @description Fires when the toolbar is collapsed via the collapse button. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++})();
++/**
++ * @module editor
++ * @description <p>The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, toolbar
++ * @optional animation, container_core, resize, dragdrop
++ */
++
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang,
++    Toolbar = YAHOO.widget.Toolbar;
++
++    /**
++     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.
++     * @constructor
++     * @class SimpleEditor
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The textarea element to turn into an editor.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    
++    YAHOO.widget.SimpleEditor = function(el, attrs) {
++        
++        var o = {};
++        if (Lang.isObject(el) && (!el.tagName) && !attrs) {
++            Lang.augmentObject(o, el); //Break the config reference
++            el = document.createElement('textarea');
++            this.DOMReady = true;
++            if (o.container) {
++                var c = Dom.get(o.container);
++                c.appendChild(el);
++            } else {
++                document.body.appendChild(el);
++            }
++        } else {
++            if (attrs) {
++                Lang.augmentObject(o, attrs); //Break the config reference
++            }
++        }
++
++        var oConfig = {
++            element: null,
++            attributes: o
++        }, id = null;
++
++        if (Lang.isString(el)) {
++            id = el;
++        } else {
++            if (oConfig.attributes.id) {
++                id = oConfig.attributes.id;
++            } else {
++                this.DOMReady = true;
++                id = Dom.generateId(el);
++            }
++        }
++        oConfig.element = el;
++
++        var element_cont = document.createElement('DIV');
++        oConfig.attributes.element_cont = new YAHOO.util.Element(element_cont, {
++            id: id + '_container'
++        });
++        var div = document.createElement('div');
++        Dom.addClass(div, 'first-child');
++        oConfig.attributes.element_cont.appendChild(div);
++        
++        if (!oConfig.attributes.toolbar_cont) {
++            oConfig.attributes.toolbar_cont = document.createElement('DIV');
++            oConfig.attributes.toolbar_cont.id = id + '_toolbar';
++            div.appendChild(oConfig.attributes.toolbar_cont);
++        }
++        var editorWrapper = document.createElement('DIV');
++        div.appendChild(editorWrapper);
++        oConfig.attributes.editor_wrapper = editorWrapper;
++
++        YAHOO.widget.SimpleEditor.superclass.constructor.call(this, oConfig.element, oConfig.attributes);
++    };
++
++
++    YAHOO.extend(YAHOO.widget.SimpleEditor, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property _resizeConfig
++        * @description The default config for the Resize Utility
++        */
++        _resizeConfig: {
++            handles: ['br'],
++            autoRatio: true,
++            status: true,
++            proxy: true,
++            useShim: true,
++            setSize: false
++        },
++        /**
++        * @private
++        * @method _setupResize
++        * @description Creates the Resize instance and binds its events.
++        */
++        _setupResize: function() {
++            if (!YAHOO.util.DD || !YAHOO.util.Resize) { return false; }
++            if (this.get('resize')) {
++                var config = {};
++                Lang.augmentObject(config, this._resizeConfig); //Break the config reference
++                this.resize = new YAHOO.util.Resize(this.get('element_cont').get('element'), config);
++                this.resize.on('resize', function(args) {
++                    var anim = this.get('animate');
++                    this.set('animate', false);
++                    this.set('width', args.width + 'px');
++                    var h = args.height,
++                        th = (this.toolbar.get('element').clientHeight + 2),
++                        dh = 0;
++                    if (this.dompath) {
++                        dh = (this.dompath.clientHeight + 1); //It has a 1px top border..
++                    }
++                    var newH = (h - th - dh);
++                    this.set('height', newH + 'px');
++                    this.get('element_cont').setStyle('height', '');
++                    this.set('animate', anim);
++                }, this, true);
++            }
++        },
++        /**
++        * @property resize
++        * @description A reference to the Resize object
++        * @type YAHOO.util.Resize
++        */
++        resize: null,
++        /**
++        * @private
++        * @method _setupDD
++        * @description Sets up the DD instance used from the 'drag' config option.
++        */
++        _setupDD: function() {
++            if (!YAHOO.util.DD) { return false; }
++            if (this.get('drag')) {
++                var d = this.get('drag'),
++                    dd = YAHOO.util.DD;
++                if (d === 'proxy') {
++                    dd = YAHOO.util.DDProxy;
++                }
++
++                this.dd = new dd(this.get('element_cont').get('element'));
++                this.toolbar.addClass('draggable'); 
++                this.dd.setHandleElId(this.toolbar._titlebar); 
++            }
++        },
++        /**
++        * @property dd
++        * @description A reference to the DragDrop object.
++        * @type YAHOO.util.DD/YAHOO.util.DDProxy
++        */
++        dd: null,
++        /**
++        * @private
++        * @property _lastCommand
++        * @description A cache of the last execCommand (used for Undo/Redo so they don't mark an undo level)
++        * @type String
++        */
++        _lastCommand: null,
++        _undoNodeChange: function() {},
++        _storeUndo: function() {},
++        /**
++        * @private
++        * @method _checkKey
++        * @description Checks a keyMap entry against a key event
++        * @param {Object} k The _keyMap object
++        * @param {Event} e The Mouse Event
++        * @return {Boolean}
++        */
++        _checkKey: function(k, e) {
++            var ret = false;
++            if ((e.keyCode === k.key)) {
++                if (k.mods && (k.mods.length > 0)) {
++                    var val = 0;
++                    for (var i = 0; i < k.mods.length; i++) {
++                        if (this.browser.mac) {
++                            if (k.mods[i] == 'ctrl') {
++                                k.mods[i] = 'meta';
++                            }
++                        }
++                        if (e[k.mods[i] + 'Key'] === true) {
++                            val++;
++                        }
++                    }
++                    if (val === k.mods.length) {
++                        ret = true;
++                    }
++                } else {
++                    ret = true;
++                }
++            }
++            return ret;
++        },
++        /**
++        * @private
++        * @property _keyMap
++        * @description Named key maps for various actions in the Editor. Example: <code>CLOSE_WINDOW: { key: 87, mods: ['shift', 'ctrl'] }</code>. 
++        * This entry shows that when key 87 (W) is found with the modifiers of shift and control, the window will close. You can customize this object to tweak keyboard shortcuts.
++        * @type {Object/Mixed}
++        */
++        _keyMap: {
++            SELECT_ALL: {
++                key: 65, //A key
++                mods: ['ctrl']
++            },
++            CLOSE_WINDOW: {
++                key: 87, //W key
++                mods: ['shift', 'ctrl']
++            },
++            FOCUS_TOOLBAR: {
++                key: 27,
++                mods: ['shift']
++            },
++            FOCUS_AFTER: {
++                key: 27
++            },
++            FONT_SIZE_UP: {
++                key: 38,
++                mods: ['shift', 'ctrl']
++            },
++            FONT_SIZE_DOWN: {
++                key: 40,
++                mods: ['shift', 'ctrl']
++            },
++            CREATE_LINK: {
++                key: 76,
++                mods: ['shift', 'ctrl']
++            },
++            BOLD: {
++                key: 66,
++                mods: ['shift', 'ctrl']
++            },
++            ITALIC: {
++                key: 73,
++                mods: ['shift', 'ctrl']
++            },
++            UNDERLINE: {
++                key: 85,
++                mods: ['shift', 'ctrl']
++            },
++            UNDO: {
++                key: 90,
++                mods: ['ctrl']
++            },
++            REDO: {
++                key: 90,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_LEFT: {
++                key: 219,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_CENTER: {
++                key: 220,
++                mods: ['shift', 'ctrl']
++            },
++            JUSTIFY_RIGHT: {
++                key: 221,
++                mods: ['shift', 'ctrl']
++            }
++        },
++        /**
++        * @private
++        * @method _cleanClassName
++        * @description Makes a useable classname from dynamic data, by dropping it to lowercase and replacing spaces with -'s.
++        * @param {String} str The classname to clean up
++        * @return {String}
++        */
++        _cleanClassName: function(str) {
++            return str.replace(/ /g, '-').toLowerCase();
++        },
++        /**
++        * @property _textarea
++        * @description Flag to determine if we are using a textarea or an HTML Node.
++        * @type Boolean
++        */
++        _textarea: null,
++        /**
++        * @property _docType
++        * @description The DOCTYPE to use in the editable container.
++        * @type String
++        */
++        _docType: '<!DOCTYPE HTML PUBLIC "-/'+'/W3C/'+'/DTD HTML 4.01/'+'/EN" "http:/'+'/www.w3.org/TR/html4/strict.dtd">',
++        /**
++        * @property editorDirty
++        * @description This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.
++        * @type Boolean
++        */
++        editorDirty: null,
++        /**
++        * @property _defaultCSS
++        * @description The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }
++        * @type String
++        */
++        _defaultCSS: 'html { height: 95%; } body { padding: 7px; background-color: #fff; font: 13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small; } a, a:visited, a:hover { color: blue !important; text-decoration: underline !important; cursor: text !important; } .warning-localfile { border-bottom: 1px dashed red !important; } .yui-busy { cursor: wait !important; } img.selected { border: 2px dotted #808080; } img { cursor: pointer !important; border: none; } body.ptags.webkit div.yui-wk-p { margin: 11px 0; } body.ptags.webkit div.yui-wk-div { margin: 0; }',
++        /**
++        * @property _defaultToolbar
++        * @private
++        * @description Default toolbar config.
++        * @type Object
++        */
++        _defaultToolbar: null,
++        /**
++        * @property _lastButton
++        * @private
++        * @description The last button pressed, so we don't disable it.
++        * @type Object
++        */
++        _lastButton: null,
++        /**
++        * @property _baseHREF
++        * @private
++        * @description The base location of the editable page (this page) so that relative paths for image work.
++        * @type String
++        */
++        _baseHREF: function() {
++            var href = document.location.href;
++            if (href.indexOf('?') !== -1) { //Remove the query string
++                href = href.substring(0, href.indexOf('?'));
++            }
++            href = href.substring(0, href.lastIndexOf('/')) + '/';
++            return href;
++        }(),
++        /**
++        * @property _lastImage
++        * @private
++        * @description Safari reference for the last image selected (for styling as selected).
++        * @type HTMLElement
++        */
++        _lastImage: null,
++        /**
++        * @property _blankImageLoaded
++        * @private
++        * @description Don't load the blank image more than once..
++        * @type Boolean
++        */
++        _blankImageLoaded: null,
++        /**
++        * @property _fixNodesTimer
++        * @private
++        * @description Holder for the fixNodes timer
++        * @type Date
++        */
++        _fixNodesTimer: null,
++        /**
++        * @property _nodeChangeTimer
++        * @private
++        * @description Holds a reference to the nodeChange setTimeout call
++        * @type Number
++        */
++        _nodeChangeTimer: null,
++        /**
++        * @property _nodeChangeDelayTimer
++        * @private
++        * @description Holds a reference to the nodeChangeDelay setTimeout call
++        * @type Number
++        */
++        _nodeChangeDelayTimer: null,
++        /**
++        * @property _lastNodeChangeEvent
++        * @private
++        * @description Flag to determine the last event that fired a node change
++        * @type Event
++        */
++        _lastNodeChangeEvent: null,
++        /**
++        * @property _lastNodeChange
++        * @private
++        * @description Flag to determine when the last node change was fired
++        * @type Date
++        */
++        _lastNodeChange: 0,
++        /**
++        * @property _rendered
++        * @private
++        * @description Flag to determine if editor has been rendered or not
++        * @type Boolean
++        */
++        _rendered: null,
++        /**
++        * @property DOMReady
++        * @private
++        * @description Flag to determine if DOM is ready or not
++        * @type Boolean
++        */
++        DOMReady: null,
++        /**
++        * @property _selection
++        * @private
++        * @description Holder for caching iframe selections
++        * @type Object
++        */
++        _selection: null,
++        /**
++        * @property _mask
++        * @private
++        * @description DOM Element holder for the editor Mask when disabled
++        * @type Object
++        */
++        _mask: null,
++        /**
++        * @property _showingHiddenElements
++        * @private
++        * @description Status of the hidden elements button
++        * @type Boolean
++        */
++        _showingHiddenElements: null,
++        /**
++        * @property currentWindow
++        * @description A reference to the currently open EditorWindow
++        * @type Object
++        */
++        currentWindow: null,
++        /**
++        * @property currentEvent
++        * @description A reference to the current editor event
++        * @type Event
++        */
++        currentEvent: null,
++        /**
++        * @property operaEvent
++        * @private
++        * @description setTimeout holder for Opera and Image DoubleClick event..
++        * @type Object
++        */
++        operaEvent: null,
++        /**
++        * @property currentFont
++        * @description A reference to the last font selected from the Toolbar
++        * @type HTMLElement
++        */
++        currentFont: null,
++        /**
++        * @property currentElement
++        * @description A reference to the current working element in the editor
++        * @type Array
++        */
++        currentElement: null,
++        /**
++        * @property dompath
++        * @description A reference to the dompath container for writing the current working dom path to.
++        * @type HTMLElement
++        */
++        dompath: null,
++        /**
++        * @property beforeElement
++        * @description A reference to the H2 placed before the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        beforeElement: null,
++        /**
++        * @property afterElement
++        * @description A reference to the H2 placed after the editor for Accessibilty.
++        * @type HTMLElement
++        */
++        afterElement: null,
++        /**
++        * @property invalidHTML
++        * @description Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.
++        * @type Object
++        */
++        invalidHTML: {
++            form: true,
++            input: true,
++            button: true,
++            select: true,
++            link: true,
++            html: true,
++            body: true,
++            iframe: true,
++            script: true,
++            style: true,
++            textarea: true
++        },
++        /**
++        * @property toolbar
++        * @description Local property containing the <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a> instance
++        * @type <a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>
++        */
++        toolbar: null,
++        /**
++        * @private
++        * @property _contentTimer
++        * @description setTimeout holder for documentReady check
++        */
++        _contentTimer: null,
++        /**
++        * @private
++        * @property _contentTimerMax
++        * @description The number of times the loaded content should be checked before giving up. Default: 500
++        */
++        _contentTimerMax: 500,
++        /**
++        * @private
++        * @property _contentTimerCounter
++        * @description Counter to check the number of times the body is polled for before giving up
++        * @type Number
++        */
++        _contentTimerCounter: 0,
++        /**
++        * @private
++        * @property _disabled
++        * @description The Toolbar items that should be disabled if there is no selection present in the editor.
++        * @type Array
++        */
++        _disabled: [ 'createlink', 'fontname', 'fontsize', 'forecolor', 'backcolor' ],
++        /**
++        * @private
++        * @property _alwaysDisabled
++        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.
++        * @type Object
++        */
++        _alwaysDisabled: { undo: true, redo: true },
++        /**
++        * @private
++        * @property _alwaysEnabled
++        * @description The Toolbar items that should ALWAYS be enabled event if there isn't a selection present in the editor.
++        * @type Object
++        */
++        _alwaysEnabled: { },
++        /**
++        * @private
++        * @property _semantic
++        * @description The Toolbar commands that we should attempt to make tags out of instead of using styles.
++        * @type Object
++        */
++        _semantic: { 'bold': true, 'italic' : true, 'underline' : true },
++        /**
++        * @private
++        * @property _tag2cmd
++        * @description A tag map of HTML tags to convert to the different types of commands so we can select the proper toolbar button.
++        * @type Object
++        */
++        _tag2cmd: {
++            'b': 'bold',
++            'strong': 'bold',
++            'i': 'italic',
++            'em': 'italic',
++            'u': 'underline',
++            'sup': 'superscript',
++            'sub': 'subscript',
++            'img': 'insertimage',
++            'a' : 'createlink',
++            'ul' : 'insertunorderedlist',
++            'ol' : 'insertorderedlist'
++        },
++
++        /**
++        * @private _createIframe
++        * @description Creates the DOM and YUI Element for the iFrame editor area.
++        * @param {String} id The string ID to prefix the iframe with
++        * @return {Object} iFrame object
++        */
++        _createIframe: function() {
++            var ifrmDom = document.createElement('iframe');
++            ifrmDom.id = this.get('id') + '_editor';
++            var config = {
++                border: '0',
++                frameBorder: '0',
++                marginWidth: '0',
++                marginHeight: '0',
++                leftMargin: '0',
++                topMargin: '0',
++                allowTransparency: 'true',
++                width: '100%'
++            };
++            if (this.get('autoHeight')) {
++                config.scrolling = 'no';
++            }
++            for (var i in config) {
++                if (Lang.hasOwnProperty(config, i)) {
++                    ifrmDom.setAttribute(i, config[i]);
++                }
++            }
++            var isrc = 'javascript:;';
++            if (this.browser.ie) {
++                //isrc = 'about:blank';
++                //TODO - Check this, I have changed it before..
++                isrc = 'javascript:false;';
++            }
++            ifrmDom.setAttribute('src', isrc);
++            var ifrm = new YAHOO.util.Element(ifrmDom);
++            ifrm.setStyle('visibility', 'hidden');
++            return ifrm;
++        },
++        /**
++        * @private _isElement
++        * @description Checks to see if an Element reference is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return {Boolean}
++        */
++        _isElement: function(el, tag) {
++            if (el && el.tagName && (el.tagName.toLowerCase() == tag)) {
++                return true;
++            }
++            if (el && el.getAttribute && (el.getAttribute('tag') == tag)) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private _hasParent
++        * @description Checks to see if an Element reference or one of it's parents is a valid one and has a certain tag type
++        * @param {HTMLElement} el The element to check
++        * @param {String} tag The tag that the element needs to be
++        * @return HTMLElement
++        */
++        _hasParent: function(el, tag) {
++            if (!el || !el.parentNode) {
++                return false;
++            }
++            
++            while (el.parentNode) {
++                if (this._isElement(el, tag)) {
++                    return el;
++                }
++                if (el.parentNode) {
++                    el = el.parentNode;
++                } else {
++                    return false;
++                }
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _getDoc
++        * @description Get the Document of the IFRAME
++        * @return {Object}
++        */
++        _getDoc: function() {
++            var value = false;
++            try {
++                if (this.get('iframe').get('element').contentWindow.document) {
++                    value = this.get('iframe').get('element').contentWindow.document;
++                    return value;
++                }
++            } catch (e) {
++                return false;
++            }
++        },
++        /**
++        * @private
++        * @method _getWindow
++        * @description Get the Window of the IFRAME
++        * @return {Object}
++        */
++        _getWindow: function() {
++            return this.get('iframe').get('element').contentWindow;
++        },
++        /**
++        * @method focus
++        * @description Attempt to set the focus of the iframes window.
++        */
++        focus: function() {
++            this._getWindow().focus();
++        },
++        /**
++        * @private
++        * @depreciated - This should not be used, moved to this.focus();
++        * @method _focusWindow
++        * @description Attempt to set the focus of the iframes window.
++        */
++        _focusWindow: function() {
++            this.focus();
++        },
++        /**
++        * @private
++        * @method _hasSelection
++        * @description Determines if there is a selection in the editor document.
++        * @return {Boolean}
++        */
++        _hasSelection: function() {
++            var sel = this._getSelection();
++            var range = this._getRange();
++            var hasSel = false;
++
++            if (!sel || !range) {
++                return hasSel;
++            }
++
++            //Internet Explorer
++            if (this.browser.ie || this.browser.opera) {
++                if (range.text) {
++                    hasSel = true;
++                }
++                if (range.html) {
++                    hasSel = true;
++                }
++            } else {
++                if (this.browser.webkit) {
++                    if (sel+'' !== '') {
++                        hasSel = true;
++                    }
++                } else {
++                    if (sel && (sel.toString() !== '') && (sel !== undefined)) {
++                        hasSel = true;
++                    }
++                }
++            }
++            return hasSel;
++        },
++        /**
++        * @private
++        * @method _getSelection
++        * @description Handles the different selection objects across the A-Grade list.
++        * @return {Object} Selection Object
++        */
++        _getSelection: function() {
++            var _sel = null;
++            if (this._getDoc() && this._getWindow()) {
++                if (this._getDoc().selection) {
++                    _sel = this._getDoc().selection;
++                } else {
++                    _sel = this._getWindow().getSelection();
++                }
++                //Handle Safari's lack of Selection Object
++                if (this.browser.webkit) {
++                    if (_sel.baseNode) {
++                            this._selection = {};
++                            this._selection.baseNode = _sel.baseNode;
++                            this._selection.baseOffset = _sel.baseOffset;
++                            this._selection.extentNode = _sel.extentNode;
++                            this._selection.extentOffset = _sel.extentOffset;
++                    } else if (this._selection !== null) {
++                        _sel = this._getWindow().getSelection();
++                        _sel.setBaseAndExtent(
++                            this._selection.baseNode,
++                            this._selection.baseOffset,
++                            this._selection.extentNode,
++                            this._selection.extentOffset);
++                        this._selection = null;
++                    }
++                }
++            }
++            return _sel;
++        },
++        /**
++        * @private
++        * @method _selectNode
++        * @description Places the highlight around a given node
++        * @param {HTMLElement} node The node to select
++        */
++        _selectNode: function(node, collapse) {
++            if (!node) {
++                return false;
++            }
++            var sel = this._getSelection(),
++                range = null;
++
++            if (this.browser.ie) {
++                try { //IE freaks out here sometimes..
++                    range = this._getDoc().body.createTextRange();
++                    range.moveToElementText(node);
++                    range.select();
++                } catch (e) {
++                }
++            } else if (this.browser.webkit) {
++                if (collapse) {
++				    sel.setBaseAndExtent(node, 1, node, node.innerText.length);
++                } else {
++				    sel.setBaseAndExtent(node, 0, node, node.innerText.length);
++                }
++            } else if (this.browser.opera) {
++                sel = this._getWindow().getSelection();
++                range = this._getDoc().createRange();
++                range.selectNode(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            } else {
++                range = this._getDoc().createRange();
++                range.selectNodeContents(node);
++                sel.removeAllRanges();
++                sel.addRange(range);
++            }
++            //TODO - Check Performance
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _getRange
++        * @description Handles the different range objects across the A-Grade list.
++        * @return {Object} Range Object
++        */
++        _getRange: function() {
++            var sel = this._getSelection();
++
++            if (sel === null) {
++                return null;
++            }
++
++            if (this.browser.webkit && !sel.getRangeAt) {
++                var _range = this._getDoc().createRange();
++                try {
++                    _range.setStart(sel.anchorNode, sel.anchorOffset);
++                    _range.setEnd(sel.focusNode, sel.focusOffset);
++                } catch (e) {
++                    _range = this._getWindow().getSelection()+'';
++                }
++                return _range;
++            }
++
++            if (this.browser.ie || this.browser.opera) {
++                try {
++                    return sel.createRange();
++                } catch (e2) {
++                    return null;
++                }
++            }
++
++            if (sel.rangeCount > 0) {
++                return sel.getRangeAt(0);
++            }
++            return null;
++        },
++        /**
++        * @private
++        * @method _setDesignMode
++        * @description Sets the designMode property of the iFrame document's body.
++        * @param {String} state This should be either on or off
++        */
++        _setDesignMode: function(state) {
++            if (this.get('setDesignMode')) {
++                try {
++                    this._getDoc().designMode = ((state.toLowerCase() == 'off') ? 'off' : 'on');
++                } catch(e) { }
++            }
++        },
++        /**
++        * @private
++        * @method _toggleDesignMode
++        * @description Toggles the designMode property of the iFrame document on and off.
++        * @return {String} The state that it was set to.
++        */
++        _toggleDesignMode: function() {
++            var _dMode = this._getDoc().designMode,
++                _state = ((_dMode.toLowerCase() == 'on') ? 'off' : 'on');
++            this._setDesignMode(_state);
++            return _state;
++        },
++        /**
++        * @private
++        * @property _focused
++        * @description Holder for trapping focus/blur state and prevent double events
++        * @type Boolean
++        */
++        _focused: null,
++        /**
++        * @private
++        * @method _handleFocus
++        * @description Handles the focus of the iframe. Note, this is window focus event, not an Editor focus event.
++        * @param {Event} e The DOM Event
++        */
++        _handleFocus: function(e) {
++            if (!this._focused) {
++                this._focused = true;
++                this.fireEvent('editorWindowFocus', { type: 'editorWindowFocus', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _handleBlur
++        * @description Handles the blur of the iframe. Note, this is window blur event, not an Editor blur event.
++        * @param {Event} e The DOM Event
++        */
++        _handleBlur: function(e) {
++            if (this._focused) {
++                this._focused = false;
++                this.fireEvent('editorWindowBlur', { type: 'editorWindowBlur', target: this });
++            }
++        },
++        /**
++        * @private
++        * @method _initEditorEvents
++        * @description This method sets up the listeners on the Editors document.
++        */
++        _initEditorEvents: function() {
++            //Setup Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.on(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.on(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.on(doc, 'click', this._handleClick, this, true);
++            Event.on(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.on(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.on(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.on(doc, 'keydown', this._handleKeyDown, this, true);
++            /* TODO -- Everyone but Opera works here..
++            Event.on(doc, 'paste', function() {
++            }, this, true);
++            */
++ 
++            //Focus and blur..
++            Event.on(win, 'focus', this._handleFocus, this, true);
++            Event.on(win, 'blur', this._handleBlur, this, true);
++        },
++        /**
++        * @private
++        * @method _removeEditorEvents
++        * @description This method removes the listeners on the Editors document (for disabling).
++        */
++        _removeEditorEvents: function() {
++            //Remove Listeners on iFrame
++            var doc = this._getDoc(),
++                win = this._getWindow();
++
++            Event.removeListener(doc, 'mouseup', this._handleMouseUp, this, true);
++            Event.removeListener(doc, 'mousedown', this._handleMouseDown, this, true);
++            Event.removeListener(doc, 'click', this._handleClick, this, true);
++            Event.removeListener(doc, 'dblclick', this._handleDoubleClick, this, true);
++            Event.removeListener(doc, 'keypress', this._handleKeyPress, this, true);
++            Event.removeListener(doc, 'keyup', this._handleKeyUp, this, true);
++            Event.removeListener(doc, 'keydown', this._handleKeyDown, this, true);
++
++            //Focus and blur..
++            Event.removeListener(win, 'focus', this._handleFocus, this, true);
++            Event.removeListener(win, 'blur', this._handleBlur, this, true);
++        },
++        _fixWebkitDivs: function() {
++            if (this.browser.webkit) {
++                var divs = this._getDoc().body.getElementsByTagName('div');
++                Dom.addClass(divs, 'yui-wk-div');
++            }
++        },
++        /**
++        * @private
++        * @method _initEditor
++        * @param {Boolean} raw Don't add events.
++        * @description This method is fired from _checkLoaded when the document is ready. It turns on designMode and set's up the listeners.
++        */
++        _initEditor: function(raw) {
++            if (this._editorInit) {
++                return;
++            }
++            this._editorInit = true;
++            if (this.browser.ie) {
++                this._getDoc().body.style.margin = '0';
++            }
++            if (!this.get('disabled')) {
++                this._setDesignMode('on');
++                this._contentTimerCounter = 0;
++            }
++            if (!this._getDoc().body) {
++                this._contentTimerCounter = 0;
++                this._editorInit = false;
++                this._checkLoaded();
++                return false;
++            }
++            
++            if (!raw) {
++                this.toolbar.on('buttonClick', this._handleToolbarClick, this, true);
++            }
++            if (!this.get('disabled')) {
++                this._initEditorEvents();
++                this.toolbar.set('disabled', false);
++            }
++
++            if (raw) {
++                this.fireEvent('editorContentReloaded', { type: 'editorreloaded', target: this });
++            } else {
++                this.fireEvent('editorContentLoaded', { type: 'editorLoaded', target: this });
++            }
++            this._fixWebkitDivs();
++            if (this.get('dompath')) {
++                var self = this;
++                setTimeout(function() {
++                    self._writeDomPath.call(self);
++                    self._setupResize.call(self);
++                }, 150);
++            }
++            var br = [];
++            for (var i in this.browser) {
++                if (this.browser[i]) {
++                    br.push(i);
++                }
++            }
++            if (this.get('ptags')) {
++                br.push('ptags');
++            }
++            Dom.addClass(this._getDoc().body, br.join(' '));
++            this.nodeChange(true);
++        },
++        /**
++        * @private
++        * @method _checkLoaded
++        * @param {Boolean} raw Don't add events.
++        * @description Called from a setTimeout loop to check if the iframes body.onload event has fired, then it will init the editor.
++        */
++        _checkLoaded: function(raw) {
++            this._editorInit = false;
++            this._contentTimerCounter++;
++            if (this._contentTimer) {
++                clearTimeout(this._contentTimer);
++            }
++            if (this._contentTimerCounter > this._contentTimerMax) {
++                return false;
++            }
++            var init = false;
++            try {
++                if (this._getDoc() && this._getDoc().body) {
++                    if (this.browser.ie) {
++                        if (this._getDoc().body.readyState == 'complete') {
++                            init = true;
++                        }
++                    } else {
++                        if (this._getDoc().body._rteLoaded === true) {
++                            init = true;
++                        }
++                    }
++                }
++            } catch (e) {
++                init = false;
++            }
++
++            if (init === true) {
++                //The onload event has fired, clean up after ourselves and fire the _initEditor method
++                this._initEditor(raw);
++            } else {
++                var self = this;
++                this._contentTimer = setTimeout(function() {
++                    self._checkLoaded.call(self, raw);
++                }, 20);
++            }
++        },
++        /**
++        * @private
++        * @method _setInitialContent
++        * @param {Boolean} raw Don't add events.
++        * @description This method will open the iframes content document and write the textareas value into it, then start the body.onload checking.
++        */
++        _setInitialContent: function(raw) {
++
++            var value = ((this._textarea) ? this.get('element').value : this.get('element').innerHTML),
++                doc = null;
++
++            if (value === '') {
++                value = '<br>';
++            }
++
++            var html = Lang.substitute(this.get('html'), {
++                TITLE: this.STR_TITLE,
++                CONTENT: this._cleanIncomingHTML(value),
++                CSS: this.get('css'),
++                HIDDEN_CSS: ((this.get('hiddencss')) ? this.get('hiddencss') : '/* No Hidden CSS */'),
++                EXTRA_CSS: ((this.get('extracss')) ? this.get('extracss') : '/* No Extra CSS */')
++            }),
++            check = true;
++
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++
++            if (document.compatMode != 'BackCompat') {
++                html = this._docType + "\n" + html;
++            } else {
++            }
++
++            if (this.browser.ie || this.browser.webkit || this.browser.opera || (navigator.userAgent.indexOf('Firefox/1.5') != -1)) {
++                //Firefox 1.5 doesn't like setting designMode on an document created with a data url
++                try {
++                    //Adobe AIR Code
++                    if (this.browser.air) {
++                        doc = this._getDoc().implementation.createHTMLDocument();
++                        var origDoc = this._getDoc();
++                        origDoc.open();
++                        origDoc.close();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                        var node = origDoc.importNode(doc.getElementsByTagName("html")[0], true);
++                        origDoc.replaceChild(node, origDoc.getElementsByTagName("html")[0]);
++                        origDoc.body._rteLoaded = true;
++                    } else {
++                        doc = this._getDoc();
++                        doc.open();
++                        doc.write(html);
++                        doc.close();
++                    }
++                } catch (e) {
++                    //Safari will only be here if we are hidden
++                    check = false;
++                }
++            } else {
++                //This keeps Firefox 2 from writing the iframe to history preserving the back buttons functionality
++                this.get('iframe').get('element').src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html);
++            }
++            this.get('iframe').setStyle('visibility', '');
++            if (check) {
++                this._checkLoaded(raw);
++            }            
++        },
++        /**
++        * @private
++        * @method _setMarkupType
++        * @param {String} action The action to take. Possible values are: css, default or semantic
++        * @description This method will turn on/off the useCSS execCommand.
++        */
++        _setMarkupType: function(action) {
++            switch (this.get('markup')) {
++                case 'css':
++                    this._setEditorStyle(true);
++                    break;
++                case 'default':
++                    this._setEditorStyle(false);
++                    break;
++                case 'semantic':
++                case 'xhtml':
++                    if (this._semantic[action]) {
++                        this._setEditorStyle(false);
++                    } else {
++                        this._setEditorStyle(true);
++                    }
++                    break;
++            }
++        },
++        /**
++        * Set the editor to use CSS instead of HTML
++        * @param {Booleen} stat True/False
++        */
++        _setEditorStyle: function(stat) {
++            try {
++                this._getDoc().execCommand('useCSS', false, !stat);
++            } catch (ex) {
++            }
++        },
++        /**
++        * @private
++        * @method _getSelectedElement
++        * @description This method will attempt to locate the element that was last interacted with, either via selection, location or event.
++        * @return {HTMLElement} The currently selected element.
++        */
++        _getSelectedElement: function() {
++            var doc = this._getDoc(),
++                range = null,
++                sel = null,
++                elm = null,
++                check = true;
++
++            if (this.browser.ie) {
++                this.currentEvent = this._getWindow().event; //Event utility assumes window.event, so we need to reset it to this._getWindow().event;
++                range = this._getRange();
++                if (range) {
++                    elm = range.item ? range.item(0) : range.parentElement();
++                    if (this._hasSelection()) {
++                        //TODO
++                        //WTF.. Why can't I get an element reference here?!??!
++                    }
++                    if (elm === doc.body) {
++                        elm = null;
++                    }
++                }
++                if ((this.currentEvent !== null) && (this.currentEvent.keyCode === 0)) {
++                    elm = Event.getTarget(this.currentEvent);
++                }
++            } else {
++                sel = this._getSelection();
++                range = this._getRange();
++
++                if (!sel || !range) {
++                    return null;
++                }
++                //TODO
++                if (!this._hasSelection() && this.browser.webkit3) {
++                    //check = false;
++                }
++                if (this.browser.gecko) {
++                    //Added in 2.6.0
++                    if (range.startContainer) {
++                        if (range.startContainer.nodeType === 3) {
++                            elm = range.startContainer.parentNode;
++                        } else if (range.startContainer.nodeType === 1) {
++                            elm = range.startContainer;
++                        }
++                        //Added in 2.7.0
++                        if (this.currentEvent) {
++                            var tar = Event.getTarget(this.currentEvent);
++                            if (!this._isElement(tar, 'html')) {
++                                if (elm !== tar) {
++                                    elm = tar;
++                                }
++                            }
++                        }
++                    }
++                }
++                
++                if (check) {
++                    if (sel.anchorNode && (sel.anchorNode.nodeType == 3)) {
++                        if (sel.anchorNode.parentNode) { //next check parentNode
++                            elm = sel.anchorNode.parentNode;
++                        }
++                        if (sel.anchorNode.nextSibling != sel.focusNode.nextSibling) {
++                            elm = sel.anchorNode.nextSibling;
++                        }
++                    }
++                    if (this._isElement(elm, 'br')) {
++                        elm = null;
++                    }
++                    if (!elm) {
++                        elm = range.commonAncestorContainer;
++                        if (!range.collapsed) {
++                            if (range.startContainer == range.endContainer) {
++                                if (range.startOffset - range.endOffset < 2) {
++                                    if (range.startContainer.hasChildNodes()) {
++                                        elm = range.startContainer.childNodes[range.startOffset];
++                                    }
++                                }
++                            }
++                        }
++                    }
++               }
++            }
++            
++            if (this.currentEvent !== null) {
++                try {
++                    switch (this.currentEvent.type) {
++                        case 'click':
++                        case 'mousedown':
++                        case 'mouseup':
++                            if (this.browser.webkit) {
++                                elm = Event.getTarget(this.currentEvent);
++                            }
++                            break;
++                        default:
++                            //Do nothing
++                            break;
++                    }
++                } catch (e) {
++                }
++            } else if ((this.currentElement && this.currentElement[0]) && (!this.browser.ie)) {
++                //TODO is this still needed?
++                //elm = this.currentElement[0];
++            }
++
++
++            if (this.browser.opera || this.browser.webkit) {
++                if (this.currentEvent && !elm) {
++                    elm = YAHOO.util.Event.getTarget(this.currentEvent);
++                }
++            }
++            if (!elm || !elm.tagName) {
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'html')) {
++                //Safari sometimes gives us the HTML node back..
++                elm = doc.body;
++            }
++            if (this._isElement(elm, 'body')) {
++                //make sure that body means this body not the parent..
++                elm = doc.body;
++            }
++            if (elm && !elm.parentNode) { //Not in document
++                elm = doc.body;
++            }
++            if (elm === undefined) {
++                elm = null;
++            }
++            return elm;
++        },
++        /**
++        * @private
++        * @method _getDomPath
++        * @description This method will attempt to build the DOM path from the currently selected element.
++        * @param HTMLElement el The element to start with, if not provided _getSelectedElement is used
++        * @return {Array} An array of node references that will create the DOM Path.
++        */
++        _getDomPath: function(el) {
++            if (!el) {
++			    el = this._getSelectedElement();
++            }
++			var domPath = [];
++            while (el !== null) {
++                if (el.ownerDocument != this._getDoc()) {
++                    el = null;
++                    break;
++                }
++                //Check to see if we get el.nodeName and nodeType
++                if (el.nodeName && el.nodeType && (el.nodeType == 1)) {
++                    domPath[domPath.length] = el;
++                }
++
++                if (this._isElement(el, 'body')) {
++                    break;
++                }
++
++                el = el.parentNode;
++            }
++            if (domPath.length === 0) {
++                if (this._getDoc() && this._getDoc().body) {
++                    domPath[0] = this._getDoc().body;
++                }
++            }
++            return domPath.reverse();
++        },
++        /**
++        * @private
++        * @method _writeDomPath
++        * @description Write the current DOM path out to the dompath container below the editor.
++        */
++        _writeDomPath: function() { 
++            var path = this._getDomPath(),
++                pathArr = [],
++                classPath = '',
++                pathStr = '';
++
++            for (var i = 0; i < path.length; i++) {
++                var tag = path[i].tagName.toLowerCase();
++                if ((tag == 'ol') && (path[i].type)) {
++                    tag += ':' + path[i].type;
++                }
++                if (Dom.hasClass(path[i], 'yui-tag')) {
++                    tag = path[i].getAttribute('tag');
++                }
++                if ((this.get('markup') == 'semantic') || (this.get('markup') == 'xhtml')) {
++                    switch (tag) {
++                        case 'b': tag = 'strong'; break;
++                        case 'i': tag = 'em'; break;
++                    }
++                }
++                if (!Dom.hasClass(path[i], 'yui-non')) {
++                    if (Dom.hasClass(path[i], 'yui-tag')) {
++                        pathStr = tag;
++                    } else {
++                        classPath = ((path[i].className !== '') ? '.' + path[i].className.replace(/ /g, '.') : '');
++                        if ((classPath.indexOf('yui') != -1) || (classPath.toLowerCase().indexOf('apple-style-span') != -1)) {
++                            classPath = '';
++                        }
++                        pathStr = tag + ((path[i].id) ? '#' + path[i].id : '') + classPath;
++                    }
++                    switch (tag) {
++                        case 'body':
++                            pathStr = 'body';
++                            break;
++                        case 'a':
++                            if (path[i].getAttribute('href', 2)) {
++                                pathStr += ':' + path[i].getAttribute('href', 2).replace('mailto:', '').replace('http:/'+'/', '').replace('https:/'+'/', ''); //May need to add others here ftp
++                            }
++                            break;
++                        case 'img':
++                            var h = path[i].height;
++                            var w = path[i].width;
++                            if (path[i].style.height) {
++                                h = parseInt(path[i].style.height, 10);
++                            }
++                            if (path[i].style.width) {
++                                w = parseInt(path[i].style.width, 10);
++                            }
++                            pathStr += '(' + w + 'x' + h + ')';
++                        break;
++                    }
++
++                    if (pathStr.length > 10) {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr.substring(0, 10) + '...' + '</span>';
++                    } else {
++                        pathStr = '<span title="' + pathStr + '">' + pathStr + '</span>';
++                    }
++                    pathArr[pathArr.length] = pathStr;
++                }
++            }
++            var str = pathArr.join(' ' + this.SEP_DOMPATH + ' ');
++            //Prevent flickering
++            if (this.dompath.innerHTML != str) {
++                this.dompath.innerHTML = str;
++            }
++        },
++        /**
++        * @private
++        * @method _fixNodes
++        * @description Fix href and imgs as well as remove invalid HTML.
++        */
++        _fixNodes: function() {
++            try {
++                var doc = this._getDoc(),
++                    els = [];
++
++                for (var v in this.invalidHTML) {
++                    if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                        if (v.toLowerCase() != 'span') {
++                            var tags = doc.body.getElementsByTagName(v);
++                            if (tags.length) {
++                                for (var i = 0; i < tags.length; i++) {
++                                    els.push(tags[i]);
++                                }
++                            }
++                        }
++                    }
++                }
++                for (var h = 0; h < els.length; h++) {
++                    if (els[h].parentNode) {
++                        if (Lang.isObject(this.invalidHTML[els[h].tagName.toLowerCase()]) && this.invalidHTML[els[h].tagName.toLowerCase()].keepContents) {
++                            this._swapEl(els[h], 'span', function(el) {
++                                el.className = 'yui-non';
++                            });
++                        } else {
++                            els[h].parentNode.removeChild(els[h]);
++                        }
++                    }
++                }
++                var imgs = this._getDoc().getElementsByTagName('img');
++                Dom.addClass(imgs, 'yui-img');
++            } catch(e) {}
++        },
++        /**
++        * @private
++        * @method _isNonEditable
++        * @param Event ev The Dom event being checked
++        * @description Method is called at the beginning of all event handlers to check if this element or a parent element has the class yui-noedit (this.CLASS_NOEDIT) applied.
++        * If it does, then this method will stop the event and return true. The event handlers will then return false and stop the nodeChange from occuring. This method will also
++        * disable and enable the Editor's toolbar based on the noedit state.
++        * @return Boolean
++        */
++        _isNonEditable: function(ev) {
++            if (this.get('allowNoEdit')) {
++                var el = Event.getTarget(ev);
++                if (this._isElement(el, 'html')) {
++                    el = null;
++                }
++                var path = this._getDomPath(el);
++                for (var i = (path.length - 1); i > -1; i--) {
++                    if (Dom.hasClass(path[i], this.CLASS_NOEDIT)) {
++                        //if (this.toolbar.get('disabled') === false) {
++                        //    this.toolbar.set('disabled', true);
++                        //}
++                        try {
++                             this._getDoc().execCommand('enableObjectResizing', false, 'false');
++                        } catch (e) {}
++                        this.nodeChange();
++                        Event.stopEvent(ev);
++                        return true;
++                    }
++                }
++                //if (this.toolbar.get('disabled') === true) {
++                    //Should only happen once..
++                    //this.toolbar.set('disabled', false);
++                    try {
++                         this._getDoc().execCommand('enableObjectResizing', false, 'true');
++                    } catch (e2) {}
++                //}
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _setCurrentEvent
++        * @param {Event} ev The event to cache
++        * @description Sets the current event property
++        */
++        _setCurrentEvent: function(ev) {
++            this.currentEvent = ev;
++        },
++        /**
++        * @private
++        * @method _handleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all click events inside the iFrame document.
++        */
++        _handleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorClick', { type: 'beforeEditorClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.browser.webkit) {
++                var tar =Event.getTarget(ev);
++                if (this._isElement(tar, 'a') || this._isElement(tar.parentNode, 'a')) {
++                    Event.stopEvent(ev);
++                    this.nodeChange();
++                }
++            } else {
++                this.nodeChange();
++            }
++            this.fireEvent('editorClick', { type: 'editorClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mouseup events inside the iFrame document.
++        */
++        _handleMouseUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseUp', { type: 'beforeEditorMouseUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            //Don't set current event for mouseup.
++            //It get's fired after a menu is closed and gives up a bogus event to work with
++            //this._setCurrentEvent(ev);
++            var self = this;
++            if (this.browser.opera) {
++                /*
++                * @knownissue Opera appears to stop the MouseDown, Click and DoubleClick events on an image inside of a document with designMode on..
++                * @browser Opera
++                * @description This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.
++                */
++                var sel = Event.getTarget(ev);
++                if (this._isElement(sel, 'img')) {
++                    this.nodeChange();
++                    if (this.operaEvent) {
++                        clearTimeout(this.operaEvent);
++                        this.operaEvent = null;
++                        this._handleDoubleClick(ev);
++                    } else {
++                        this.operaEvent = window.setTimeout(function() {
++                            self.operaEvent = false;
++                        }, 700);
++                    }
++                }
++            }
++            //This will stop Safari from selecting the entire document if you select all the text in the editor
++            if (this.browser.webkit || this.browser.opera) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++            }
++            this.nodeChange();
++            this.fireEvent('editorMouseUp', { type: 'editorMouseUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleMouseDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all mousedown events inside the iFrame document.
++        */
++        _handleMouseDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorMouseDown', { type: 'beforeEditorMouseDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this.browser.webkit && this._hasSelection()) {
++                var _sel = this._getSelection();
++                if (!this.browser.webkit3) {
++                    _sel.collapse(true);
++                } else {
++                    _sel.collapseToStart();
++                }
++            }
++            if (this.browser.webkit && this._lastImage) {
++                Dom.removeClass(this._lastImage, 'selected');
++                this._lastImage = null;
++            }
++            if (this._isElement(sel, 'img') || this._isElement(sel, 'a')) {
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                    if (this._isElement(sel, 'img')) {
++                        Dom.addClass(sel, 'selected');
++                        this._lastImage = sel;
++                    }
++                }
++                if (this.currentWindow) {
++                    this.closeWindow();
++                }
++                this.nodeChange();
++            }
++            this.fireEvent('editorMouseDown', { type: 'editorMouseDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleDoubleClick
++        * @param {Event} ev The event we are working on.
++        * @description Handles all doubleclick events inside the iFrame document.
++        */
++        _handleDoubleClick: function(ev) {
++            var ret = this.fireEvent('beforeEditorDoubleClick', { type: 'beforeEditorDoubleClick', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            var sel = Event.getTarget(ev);
++            if (this._isElement(sel, 'img')) {
++                this.currentElement[0] = sel;
++                this.toolbar.fireEvent('insertimageClick', { type: 'insertimageClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            } else if (this._hasParent(sel, 'a')) { //Handle elements inside an a
++                this.currentElement[0] = this._hasParent(sel, 'a');
++                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            }
++            this.nodeChange();
++            this.fireEvent('editorDoubleClick', { type: 'editorDoubleClick', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyUp
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keyup events inside the iFrame document.
++        */
++        _handleKeyUp: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyUp', { type: 'beforeEditorKeyUp', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._storeUndo();
++            this._setCurrentEvent(ev);
++            switch (ev.keyCode) {
++                case this._keyMap.SELECT_ALL.key:
++                    if (this._checkKey(this._keyMap.SELECT_ALL, ev)) {
++                        this.nodeChange();
++                    }
++                    break;
++                case 32: //Space Bar
++                case 35: //End
++                case 36: //Home
++                case 37: //Left Arrow
++                case 38: //Up Arrow
++                case 39: //Right Arrow
++                case 40: //Down Arrow
++                case 46: //Forward Delete
++                case 8: //Delete
++                case this._keyMap.CLOSE_WINDOW.key: //W key if window is open
++                    if ((ev.keyCode == this._keyMap.CLOSE_WINDOW.key) && this.currentWindow) {
++                        if (this._checkKey(this._keyMap.CLOSE_WINDOW, ev)) {
++                            this.closeWindow();
++                        }
++                    } else {
++                        if (!this.browser.ie) {
++                            if (this._nodeChangeTimer) {
++                                clearTimeout(this._nodeChangeTimer);
++                            }
++                            var self = this;
++                            this._nodeChangeTimer = setTimeout(function() {
++                                self._nodeChangeTimer = null;
++                                self.nodeChange.call(self);
++                            }, 100);
++                        } else {
++                            this.nodeChange();
++                        }
++                        this.editorDirty = true;
++                    }
++                    break;
++            }
++            this.fireEvent('editorKeyUp', { type: 'editorKeyUp', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyPress
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keypress events inside the iFrame document.
++        */
++        _handleKeyPress: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyPress', { type: 'beforeEditorKeyPress', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++
++            if (this.get('allowNoEdit')) {
++                //if (ev && ev.keyCode && ((ev.keyCode == 46) || ev.keyCode == 63272)) {
++                if (ev && ev.keyCode && (ev.keyCode == 63272)) {
++                    //Forward delete key
++                    Event.stopEvent(ev);
++                }
++            }
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            this._storeUndo();
++            if (this.browser.opera) {
++                if (ev.keyCode === 13) {
++                    var tar = this._getSelectedElement();
++                    if (!this._isElement(tar, 'li')) {
++                        this.execCommand('inserthtml', '<br>');
++                        Event.stopEvent(ev);
++                    }
++                }
++            }
++            if (this.browser.webkit) {
++                if (!this.browser.webkit3) {
++                    if (ev.keyCode && (ev.keyCode == 122) && (ev.metaKey)) {
++                        //This is CMD + z (for undo)
++                        if (this._hasParent(this._getSelectedElement(), 'li')) {
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++                this._listFix(ev);
++            }
++            this._fixListDupIds();
++            this.fireEvent('editorKeyPress', { type: 'editorKeyPress', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @method _handleKeyDown
++        * @param {Event} ev The event we are working on.
++        * @description Handles all keydown events inside the iFrame document.
++        */
++        _handleKeyDown: function(ev) {
++            var ret = this.fireEvent('beforeEditorKeyDown', { type: 'beforeEditorKeyDown', target: this, ev: ev });
++            if (ret === false) {
++                return false;
++            }
++            var tar = null, _range = null;
++            if (this._isNonEditable(ev)) {
++                return false;
++            }
++            this._setCurrentEvent(ev);
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            var doExec = false,
++                action = null,
++                value = null,
++                exec = false;
++
++
++            switch (ev.keyCode) {
++                case this._keyMap.FOCUS_TOOLBAR.key:
++                    if (this._checkKey(this._keyMap.FOCUS_TOOLBAR, ev)) {
++                        var h = this.toolbar.getElementsByTagName('h2')[0];
++                        if (h && h.firstChild) {
++                            h.firstChild.focus();
++                        }
++                    } else if (this._checkKey(this._keyMap.FOCUS_AFTER, ev)) {
++                        //Focus After Element - Esc
++                        this.afterElement.focus();
++                    }
++                    Event.stopEvent(ev);
++                    doExec = false;
++                    break;
++                //case 76: //L
++                case this._keyMap.CREATE_LINK.key: //L
++                    if (this._hasSelection()) {
++                        if (this._checkKey(this._keyMap.CREATE_LINK, ev)) {
++                            var makeLink = true;
++                            if (this.get('limitCommands')) {
++                                if (!this.toolbar.getButtonByValue('createlink')) {
++                                    makeLink = false;
++                                }
++                            }
++                            if (makeLink) {
++                                this.execCommand('createlink', '');
++                                this.toolbar.fireEvent('createlinkClick', { type: 'createlinkClick', target: this.toolbar });
++                                this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++                                doExec = false;
++                            }
++                        }
++                    }
++                    break;
++                //case 90: //Z
++                case this._keyMap.UNDO.key:
++                case this._keyMap.REDO.key:
++                    if (this._checkKey(this._keyMap.REDO, ev)) {
++                        action = 'redo';
++                        doExec = true;
++                    } else if (this._checkKey(this._keyMap.UNDO, ev)) {
++                        action = 'undo';
++                        doExec = true;
++                    }
++                    break;
++                //case 66: //B
++                case this._keyMap.BOLD.key:
++                    if (this._checkKey(this._keyMap.BOLD, ev)) {
++                        action = 'bold';
++                        doExec = true;
++                    }
++                    break;
++                case this._keyMap.FONT_SIZE_UP.key:
++                case this._keyMap.FONT_SIZE_DOWN.key:
++                    var uk = false, dk = false;
++                    if (this._checkKey(this._keyMap.FONT_SIZE_UP, ev)) {
++                        uk = true;
++                    }
++                    if (this._checkKey(this._keyMap.FONT_SIZE_DOWN, ev)) {
++                        dk = true;
++                    }
++                    if (uk || dk) {
++                        var fs_button = this.toolbar.getButtonByValue('fontsize'),
++                            label = parseInt(fs_button.get('label'), 10),
++                            newValue = (label + 1);
++
++                        if (dk) {
++                            newValue = (label - 1);
++                        }
++
++                        action = 'fontsize';
++                        value = newValue + 'px';
++                        doExec = true;
++                    }
++                    break;
++                //case 73: //I
++                case this._keyMap.ITALIC.key:
++                    if (this._checkKey(this._keyMap.ITALIC, ev)) {
++                        action = 'italic';
++                        doExec = true;
++                    }
++                    break;
++                //case 85: //U
++                case this._keyMap.UNDERLINE.key:
++                    if (this._checkKey(this._keyMap.UNDERLINE, ev)) {
++                        action = 'underline';
++                        doExec = true;
++                    }
++                    break;
++                case 9:
++                    if (this.browser.ie) {
++                        //Insert a tab in Internet Explorer
++                        _range = this._getRange();
++                        tar = this._getSelectedElement();
++                        if (!this._isElement(tar, 'li')) {
++                            if (_range) {
++                                _range.pasteHTML('&nbsp;&nbsp;&nbsp;&nbsp;');
++                                _range.collapse(false);
++                                _range.select();
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                    //Firefox 3 code
++                    if (this.browser.gecko > 1.8) {
++                        tar = this._getSelectedElement();
++                        if (this._isElement(tar, 'li')) {
++                            if (ev.shiftKey) {
++                                this._getDoc().execCommand('outdent', null, '');
++                            } else {
++                                this._getDoc().execCommand('indent', null, '');
++                            }
++                            
++                        } else if (!this._hasSelection()) {
++                            this.execCommand('inserthtml', '&nbsp;&nbsp;&nbsp;&nbsp;');
++                        }
++                        Event.stopEvent(ev);
++                    }
++                    break;
++                case 13:
++                    var p = null, i = 0;
++                    if (this.get('ptags') && !ev.shiftKey) {
++                        if (this.browser.gecko) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this._hasParent(tar, 'p')) {
++                                    p = this._getDoc().createElement('p');
++                                    p.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(p, tar);
++                                    this._selectNode(p.firstChild);
++                                } else if (this._isElement(tar, 'body')) {
++                                    this.execCommand('insertparagraph', null);
++                                    var ps = this._getDoc().body.getElementsByTagName('p');
++                                    for (i = 0; i < ps.length; i++) {
++                                        if (ps[i].getAttribute('_moz_dirty') !== null) {
++                                            p = this._getDoc().createElement('p');
++                                            p.innerHTML = '&nbsp;';
++                                            Dom.insertAfter(p, ps[i]);
++                                            this._selectNode(p.firstChild);
++                                            ps[i].removeAttribute('_moz_dirty');
++                                        }
++                                    }
++                                } else {
++                                    doExec = true;
++                                    action = 'insertparagraph';
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                this.execCommand('insertparagraph', null);
++                                var divs = this._getDoc().body.getElementsByTagName('div');
++                                for (i = 0; i < divs.length; i++) {
++                                    if (!Dom.hasClass(divs[i], 'yui-wk-div')) {
++                                        Dom.addClass(divs[i], 'yui-wk-p');
++                                    }
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    } else {
++                        if (this.browser.webkit) {
++                            tar = this._getSelectedElement();
++                            if (!this._hasParent(tar, 'li')) {
++                                if (this.browser.webkit4) {
++                                    this.execCommand('insertlinebreak');
++                                } else {
++                                    this.execCommand('inserthtml', '<var id="yui-br"></var>');
++                                    var holder = this._getDoc().getElementById('yui-br'),
++                                        br = this._getDoc().createElement('br'),
++                                        caret = this._getDoc().createElement('span');
++
++                                    holder.parentNode.replaceChild(br, holder);
++                                    caret.className = 'yui-non';
++                                    caret.innerHTML = '&nbsp;';
++                                    Dom.insertAfter(caret, br);
++                                    this._selectNode(caret);
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                        if (this.browser.ie) {
++                            //Insert a <br> instead of a <p></p> in Internet Explorer
++                            _range = this._getRange();
++                            tar = this._getSelectedElement();
++                            if (!this._isElement(tar, 'li')) {
++                                if (_range) {
++                                    _range.pasteHTML('<br>');
++                                    _range.collapse(false);
++                                    _range.select();
++                                }
++                                Event.stopEvent(ev);
++                            }
++                        }
++                    }
++                    break;
++            }
++            if (this.browser.ie) {
++                this._listFix(ev);
++            }
++            if (doExec && action) {
++                this.execCommand(action, value);
++                Event.stopEvent(ev);
++                this.nodeChange();
++            }
++            this._storeUndo();
++            this.fireEvent('editorKeyDown', { type: 'editorKeyDown', target: this, ev: ev });
++        },
++        /**
++        * @private
++        * @property _fixListRunning
++        * @type Boolean
++        * @description Keeps more than one _fixListDupIds from running at the same time.
++        */
++        _fixListRunning: null,
++        /**
++        * @private
++        * @method _fixListDupIds
++        * @description Some browsers will duplicate the id of an LI when created in designMode.
++        * This method will fix the duplicate id issue. However it will only preserve the first element 
++        * in the document list with the unique id. 
++        */
++        _fixListDupIds: function() {
++            if (this._fixListRunning) {
++                return false;
++            }
++            if (this._getDoc()) {
++                this._fixListRunning = true;
++                var lis = this._getDoc().body.getElementsByTagName('li'),
++                    i = 0, ids = {};
++                for (i = 0; i < lis.length; i++) {
++                    if (lis[i].id) {
++                        if (ids[lis[i].id]) {
++                            lis[i].id = '';
++                        }
++                        ids[lis[i].id] = true;
++                    }
++                }
++                this._fixListRunning = false;
++            }
++        },
++        /**
++        * @private
++        * @method _listFix
++        * @param {Event} ev The event we are working on.
++        * @description Handles the Enter key, Tab Key and Shift + Tab keys for List Items.
++        */
++        _listFix: function(ev) {
++            var testLi = null, par = null, preContent = false, range = null;
++            //Enter Key
++            if (this.browser.webkit) {
++                if (ev.keyCode && (ev.keyCode == 13)) {
++                    if (this._hasParent(this._getSelectedElement(), 'li')) {
++                        var tar = this._hasParent(this._getSelectedElement(), 'li');
++                        if (tar.previousSibling) {
++                            if (tar.firstChild && (tar.firstChild.length == 1)) {
++                                this._selectNode(tar);
++                            }
++                        }
++                    }
++                }
++            }
++            //Shift + Tab Key
++            if (ev.keyCode && ((!this.browser.webkit3 && (ev.keyCode == 25)) || ((this.browser.webkit3 || !this.browser.webkit) && ((ev.keyCode == 9) && ev.shiftKey)))) {
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    testLi = this._hasParent(testLi, 'li');
++                    if (this._hasParent(testLi, 'ul') || this._hasParent(testLi, 'ol')) {
++                        par = this._hasParent(testLi, 'ul');
++                        if (!par) {
++                            par = this._hasParent(testLi, 'ol');
++                        }
++                        if (this._isElement(par.previousSibling, 'li')) {
++                            par.removeChild(testLi);
++                            par.parentNode.insertBefore(testLi, par.nextSibling);
++                            if (this.browser.ie) {
++                                range = this._getDoc().body.createTextRange();
++                                range.moveToElementText(testLi);
++                                range.collapse(false);
++                                range.select();
++                            }
++                            if (this.browser.webkit) {
++                                this._selectNode(testLi.firstChild);
++                            }
++                            Event.stopEvent(ev);
++                        }
++                    }
++                }
++            }
++            //Tab Key
++            if (ev.keyCode && ((ev.keyCode == 9) && (!ev.shiftKey))) {
++                var preLi = this._getSelectedElement();
++                if (this._hasParent(preLi, 'li')) {
++                    preContent = this._hasParent(preLi, 'li').innerHTML;
++                }
++                if (this.browser.webkit) {
++                    this._getDoc().execCommand('inserttext', false, '\t');
++                }
++                testLi = this._getSelectedElement();
++                if (this._hasParent(testLi, 'li')) {
++                    par = this._hasParent(testLi, 'li');
++                    var newUl = this._getDoc().createElement(par.parentNode.tagName.toLowerCase());
++                    if (this.browser.webkit) {
++                        var span = Dom.getElementsByClassName('Apple-tab-span', 'span', par);
++                        //Remove the span element that Safari puts in
++                        if (span[0]) {
++                            par.removeChild(span[0]);
++                            par.innerHTML = Lang.trim(par.innerHTML);
++                            //Put the HTML from the LI into this new LI
++                            if (preContent) {
++                                par.innerHTML = '<span class="yui-non">' + preContent + '</span>&nbsp;';
++                            } else {
++                                par.innerHTML = '<span class="yui-non">&nbsp;</span>&nbsp;';
++                            }
++                        }
++                    } else {
++                        if (preContent) {
++                            par.innerHTML = preContent + '&nbsp;';
++                        } else {
++                            par.innerHTML = '&nbsp;';
++                        }
++                    }
++
++                    par.parentNode.replaceChild(newUl, par);
++                    newUl.appendChild(par);
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(par.firstChild, 1, par.firstChild, par.firstChild.innerText.length);
++                        if (!this.browser.webkit3) {
++                            par.parentNode.parentNode.style.display = 'list-item';
++                            setTimeout(function() {
++                                par.parentNode.parentNode.style.display = 'block';
++                            }, 1);
++                        }
++                    } else if (this.browser.ie) {
++                        range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(par);
++                        range.collapse(false);
++                        range.select();
++                    } else {
++                        this._selectNode(par);
++                    }
++                    Event.stopEvent(ev);
++                }
++                if (this.browser.webkit) {
++                    Event.stopEvent(ev);
++                }
++                this.nodeChange();
++            }
++        },
++        /**
++        * @method nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
++        */
++        nodeChange: function(force) {
++            var NCself = this;
++            this._storeUndo();
++            if (this.get('nodeChangeDelay')) {
++                this._nodeChangeDelayTimer = window.setTimeout(function() {
++                    NCself._nodeChangeDelayTimer = null;
++                    NCself._nodeChange.apply(NCself, arguments);
++                }, 0);
++            } else {
++                this._nodeChange();
++            }
++        },
++        /**
++        * @private
++        * @method _nodeChange
++        * @param {Boolean} force Optional paramenter to skip the threshold counter
++        * @description Fired from nodeChange in a setTimeout.
++        */
++        _nodeChange: function(force) {
++            var threshold = parseInt(this.get('nodeChangeThreshold'), 10),
++                thisNodeChange = Math.round(new Date().getTime() / 1000),
++                self = this;
++
++            if (force === true) {
++                this._lastNodeChange = 0;
++            }
++            
++            if ((this._lastNodeChange + threshold) < thisNodeChange) {
++                if (this._fixNodesTimer === null) {
++                    this._fixNodesTimer = window.setTimeout(function() {
++                        self._fixNodes.call(self);
++                        self._fixNodesTimer = null;
++                    }, 0);
++                }
++            }
++            this._lastNodeChange = thisNodeChange;
++            if (this.currentEvent) {
++                try {
++                    this._lastNodeChangeEvent = this.currentEvent.type;
++                } catch (e) {}
++            }
++
++            var beforeNodeChange = this.fireEvent('beforeNodeChange', { type: 'beforeNodeChange', target: this });
++            if (beforeNodeChange === false) {
++                return false;
++            }
++            if (this.get('dompath')) {
++                window.setTimeout(function() {
++                    self._writeDomPath.call(self);
++                }, 0);
++            }
++            //Check to see if we are disabled before continuing
++            if (!this.get('disabled')) {
++                if (this.STOP_NODE_CHANGE) {
++                    //Reset this var for next action
++                    this.STOP_NODE_CHANGE = false;
++                    return false;
++                } else {
++                    var sel = this._getSelection(),
++                        range = this._getRange(),
++                        el = this._getSelectedElement(),
++                        fn_button = this.toolbar.getButtonByValue('fontname'),
++                        fs_button = this.toolbar.getButtonByValue('fontsize'),
++                        undo_button = this.toolbar.getButtonByValue('undo'),
++                        redo_button = this.toolbar.getButtonByValue('redo');
++
++                    //Handle updating the toolbar with active buttons
++                    var _ex = {};
++                    if (this._lastButton) {
++                        _ex[this._lastButton.id] = true;
++                        //this._lastButton = null;
++                    }
++                    if (!this._isElement(el, 'body')) {
++                        if (fn_button) {
++                            _ex[fn_button.get('id')] = true;
++                        }
++                        if (fs_button) {
++                            _ex[fs_button.get('id')] = true;
++                        }
++                    }
++                    if (redo_button) {
++                        delete _ex[redo_button.get('id')];
++                    }
++                    this.toolbar.resetAllButtons(_ex);
++
++                    //Handle disabled buttons
++                    for (var d = 0; d < this._disabled.length; d++) {
++                        var _button = this.toolbar.getButtonByValue(this._disabled[d]);
++                        if (_button && _button.get) {
++                            if (this._lastButton && (_button.get('id') === this._lastButton.id)) {
++                                //Skip
++                            } else {
++                                if (!this._hasSelection() && !this.get('insert')) {
++                                    switch (this._disabled[d]) {
++                                        case 'fontname':
++                                        case 'fontsize':
++                                            break;
++                                        default:
++                                            //No Selection - disable
++                                            this.toolbar.disableButton(_button);
++                                    }
++                                } else {
++                                    if (!this._alwaysDisabled[this._disabled[d]]) {
++                                        this.toolbar.enableButton(_button);
++                                    }
++                                }
++                                if (!this._alwaysEnabled[this._disabled[d]]) {
++                                    this.toolbar.deselectButton(_button);
++                                }
++                            }
++                        }
++                    }
++                    var path = this._getDomPath();
++                    var tag = null, cmd = null;
++                    for (var i = 0; i < path.length; i++) {
++                        tag = path[i].tagName.toLowerCase();
++                        if (path[i].getAttribute('tag')) {
++                            tag = path[i].getAttribute('tag').toLowerCase();
++                        }
++                        cmd = this._tag2cmd[tag];
++                        if (cmd === undefined) {
++                            cmd = [];
++                        }
++                        if (!Lang.isArray(cmd)) {
++                            cmd = [cmd];
++                        }
++
++                        //Bold and Italic styles
++                        if (path[i].style.fontWeight.toLowerCase() == 'bold') {
++                            cmd[cmd.length] = 'bold';
++                        }
++                        if (path[i].style.fontStyle.toLowerCase() == 'italic') {
++                            cmd[cmd.length] = 'italic';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'underline') {
++                            cmd[cmd.length] = 'underline';
++                        }
++                        if (path[i].style.textDecoration.toLowerCase() == 'line-through') {
++                            cmd[cmd.length] = 'strikethrough';
++                        }
++                        if (cmd.length > 0) {
++                            for (var j = 0; j < cmd.length; j++) {
++                                this.toolbar.selectButton(cmd[j]);
++                                this.toolbar.enableButton(cmd[j]);
++                            }
++                        }
++                        //Handle Alignment
++                        switch (path[i].style.textAlign.toLowerCase()) {
++                            case 'left':
++                            case 'right':
++                            case 'center':
++                            case 'justify':
++                                var alignType = path[i].style.textAlign.toLowerCase();
++                                if (path[i].style.textAlign.toLowerCase() == 'justify') {
++                                    alignType = 'full';
++                                }
++                                this.toolbar.selectButton('justify' + alignType);
++                                this.toolbar.enableButton('justify' + alignType);
++                                break;
++                        }
++                    }
++                    //After for loop
++
++                    //Reset Font Family and Size to the inital configs
++                    if (fn_button) {
++                        var family = fn_button._configs.label._initialConfig.value;
++                        fn_button.set('label', '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>');
++                        this._updateMenuChecked('fontname', family);
++                    }
++
++                    if (fs_button) {
++                        fs_button.set('label', fs_button._configs.label._initialConfig.value);
++                    }
++
++                    var hd_button = this.toolbar.getButtonByValue('heading');
++                    if (hd_button) {
++                        hd_button.set('label', hd_button._configs.label._initialConfig.value);
++                        this._updateMenuChecked('heading', 'none');
++                    }
++                    var img_button = this.toolbar.getButtonByValue('insertimage');
++                    if (img_button && this.currentWindow && (this.currentWindow.name == 'insertimage')) {
++                        this.toolbar.disableButton(img_button);
++                    }
++                    if (this._lastButton && this._lastButton.isSelected) {
++                        this.toolbar.deselectButton(this._lastButton.id);
++                    }
++                    this._undoNodeChange();
++                }
++            }
++
++            this.fireEvent('afterNodeChange', { type: 'afterNodeChange', target: this });
++        },
++        /**
++        * @private
++        * @method _updateMenuChecked
++        * @param {Object} button The command identifier of the button you want to check
++        * @param {String} value The value of the menu item you want to check
++        * @param {<a href="YAHOO.widget.Toolbar.html">YAHOO.widget.Toolbar</a>} The Toolbar instance the button belongs to (defaults to this.toolbar) 
++        * @description Gets the menu from a button instance, if the menu is not rendered it will render it. It will then search the menu for the specified value, unchecking all other items and checking the specified on.
++        */
++        _updateMenuChecked: function(button, value, tbar) {
++            if (!tbar) {
++                tbar = this.toolbar;
++            }
++            var _button = tbar.getButtonByValue(button);
++            _button.checkValue(value);
++        },
++        /**
++        * @private
++        * @method _handleToolbarClick
++        * @param {Event} ev The event that triggered the button click
++        * @description This is an event handler attached to the Toolbar's buttonClick event. It will fire execCommand with the command identifier from the Toolbar Button.
++        */
++        _handleToolbarClick: function(ev) {
++            var value = '';
++            var str = '';
++            var cmd = ev.button.value;
++            if (ev.button.menucmd) {
++                value = cmd;
++                cmd = ev.button.menucmd;
++            }
++            this._lastButton = ev.button;
++            if (this.STOP_EXEC_COMMAND) {
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            } else {
++                this.execCommand(cmd, value);
++                if (!this.browser.webkit) {
++                     var Fself = this;
++                     setTimeout(function() {
++                         Fself.focus.call(Fself);
++                     }, 5);
++                 }
++            }
++            Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _setupAfterElement
++        * @description Creates the accessibility h2 header and places it after the iframe in the Dom for navigation.
++        */
++        _setupAfterElement: function() {
++            if (!this.beforeElement) {
++                this.beforeElement = document.createElement('h2');
++                this.beforeElement.className = 'yui-editor-skipheader';
++                this.beforeElement.tabIndex = '-1';
++                this.beforeElement.innerHTML = this.STR_BEFORE_EDITOR;
++                this.get('element_cont').get('firstChild').insertBefore(this.beforeElement, this.toolbar.get('nextSibling'));
++            }
++            if (!this.afterElement) {
++                this.afterElement = document.createElement('h2');
++                this.afterElement.className = 'yui-editor-skipheader';
++                this.afterElement.tabIndex = '-1';
++                this.afterElement.innerHTML = this.STR_LEAVE_EDITOR;
++                this.get('element_cont').get('firstChild').appendChild(this.afterElement);
++            }
++        },
++        /**
++        * @private
++        * @method _disableEditor
++        * @param {Boolean} disabled Pass true to disable, false to enable
++        * @description Creates a mask to place over the Editor.
++        */
++        _disableEditor: function(disabled) {
++            var iframe, par, html, height;
++            if (!this.get('disabled_iframe')) {
++                iframe = this._createIframe();
++                iframe.set('id', 'disabled_' + this.get('iframe').get('id'));
++                iframe.setStyle('height', '100%');
++                iframe.setStyle('display', 'none');
++                iframe.setStyle('visibility', 'visible');
++                this.set('disabled_iframe', iframe);
++                par = this.get('iframe').get('parentNode');
++                par.appendChild(iframe.get('element'));
++            }
++            if (!iframe) {
++                iframe = this.get('disabled_iframe');
++            }
++            if (disabled) {
++                this._orgIframe = this.get('iframe');
++
++                if (this.toolbar) {
++                    this.toolbar.set('disabled', true);
++                }
++
++                html = this.getEditorHTML();
++                height = this.get('iframe').get('offsetHeight');
++                iframe.setStyle('visibility', '');
++                iframe.setStyle('position', '');
++                iframe.setStyle('top', '');
++                iframe.setStyle('left', '');
++                this._orgIframe.setStyle('visibility', 'hidden');
++                this._orgIframe.setStyle('position', 'absolute');
++                this._orgIframe.setStyle('top', '-99999px');
++                this._orgIframe.setStyle('left', '-99999px');
++                this.set('iframe', iframe);
++                this._setInitialContent(true);
++                
++                if (!this._mask) {
++                    this._mask = document.createElement('DIV');
++                    Dom.addClass(this._mask, 'yui-editor-masked');
++                    if (this.browser.ie) {
++                        this._mask.style.height = height + 'px';
++                    }
++                    this.get('iframe').get('parentNode').appendChild(this._mask);
++                }
++                this.on('editorContentReloaded', function() {
++                    this._getDoc().body._rteLoaded = false;
++                    this.setEditorHTML(html);
++                    iframe.setStyle('display', 'block');
++                    this.unsubscribeAll('editorContentReloaded');
++                });
++            } else {
++                if (this._mask) {
++                    this._mask.parentNode.removeChild(this._mask);
++                    this._mask = null;
++                    if (this.toolbar) {
++                        this.toolbar.set('disabled', false);
++                    }
++                    iframe.setStyle('visibility', 'hidden');
++                    iframe.setStyle('position', 'absolute');
++                    iframe.setStyle('top', '-99999px');
++                    iframe.setStyle('left', '-99999px');
++                    this._orgIframe.setStyle('visibility', '');
++                    this._orgIframe.setStyle('position', '');
++                    this._orgIframe.setStyle('top', '');
++                    this._orgIframe.setStyle('left', '');
++                    this.set('iframe', this._orgIframe);
++
++                    this.focus();
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.nodeChange.call(self);
++                    }, 100);
++                }
++            }
++        },
++        /**
++        * @property SEP_DOMPATH
++        * @description The value to place in between the Dom path items
++        * @type String
++        */
++        SEP_DOMPATH: '<',
++        /**
++        * @property STR_LEAVE_EDITOR
++        * @description The accessibility string for the element after the iFrame
++        * @type String
++        */
++        STR_LEAVE_EDITOR: 'You have left the Rich Text Editor.',
++        /**
++        * @property STR_BEFORE_EDITOR
++        * @description The accessibility string for the element before the iFrame
++        * @type String
++        */
++        STR_BEFORE_EDITOR: 'This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Shift + Escape to place focus on the toolbar and navigate between options with your arrow keys. To exit this text editor use the Escape key and continue tabbing. <h4>Common formatting keyboard shortcuts:</h4><ul><li>Control Shift B sets text to bold</li> <li>Control Shift I sets text to italic</li> <li>Control Shift U underlines text</li> <li>Control Shift L adds an HTML link</li></ul>',
++        /**
++        * @property STR_TITLE
++        * @description The Title of the HTML document that is created in the iFrame
++        * @type String
++        */
++        STR_TITLE: 'Rich Text Area.',
++        /**
++        * @property STR_IMAGE_HERE
++        * @description The text to place in the URL textbox when using the blankimage.
++        * @type String
++        */
++        STR_IMAGE_HERE: 'Image URL Here',
++        /**
++        * @property STR_IMAGE_URL
++        * @description The label string for Image URL
++        * @type String
++        */
++        STR_IMAGE_URL: 'Image URL',        
++        /**
++        * @property STR_LINK_URL
++        * @description The label string for the Link URL.
++        * @type String
++        */
++        STR_LINK_URL: 'Link URL',
++        /**
++        * @protected
++        * @property STOP_EXEC_COMMAND
++        * @description Set to true when you want the default execCommand function to not process anything
++        * @type Boolean
++        */
++        STOP_EXEC_COMMAND: false,
++        /**
++        * @protected
++        * @property STOP_NODE_CHANGE
++        * @description Set to true when you want the default nodeChange function to not process anything
++        * @type Boolean
++        */
++        STOP_NODE_CHANGE: false,
++        /**
++        * @protected
++        * @property CLASS_NOEDIT
++        * @description CSS class applied to elements that are not editable.
++        * @type String
++        */
++        CLASS_NOEDIT: 'yui-noedit',
++        /**
++        * @protected
++        * @property CLASS_CONTAINER
++        * @description Default CSS class to apply to the editors container element
++        * @type String
++        */
++        CLASS_CONTAINER: 'yui-editor-container',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE
++        * @description Default CSS class to apply to the editors iframe element
++        * @type String
++        */
++        CLASS_EDITABLE: 'yui-editor-editable',
++        /**
++        * @protected
++        * @property CLASS_EDITABLE_CONT
++        * @description Default CSS class to apply to the editors iframe's parent element
++        * @type String
++        */
++        CLASS_EDITABLE_CONT: 'yui-editor-editable-container',
++        /**
++        * @protected
++        * @property CLASS_PREFIX
++        * @description Default prefix for dynamically created class names
++        * @type String
++        */
++        CLASS_PREFIX: 'yui-editor',
++        /** 
++        * @property browser
++        * @description Standard browser detection
++        * @type Object
++        */
++        browser: function() {
++            var br = YAHOO.env.ua;
++            //Check for webkit3
++            if (br.webkit >= 420) {
++                br.webkit3 = br.webkit;
++            } else {
++                br.webkit3 = 0;
++            }
++            if (br.webkit >= 530) {
++                br.webkit4 = br.webkit;
++            } else {
++                br.webkit4 = 0;
++            }
++            br.mac = false;
++            //Check for Mac
++            if (navigator.userAgent.indexOf('Macintosh') !== -1) {
++                br.mac = true;
++            }
++
++            return br;
++        }(),
++        /** 
++        * @method init
++        * @description The Editor class' initialization method
++        */
++        init: function(p_oElement, p_oAttributes) {
++
++            if (!this._defaultToolbar) {
++                this._defaultToolbar = {
++                    collapse: true,
++                    titlebar: 'Text Editing Tools',
++                    draggable: false,
++                    buttons: [
++                        { group: 'fontstyle', label: 'Font Name and Size',
++                            buttons: [
++                                { type: 'select', label: 'Arial', value: 'fontname', disabled: true,
++                                    menu: [
++                                        { text: 'Arial', checked: true },
++                                        { text: 'Arial Black' },
++                                        { text: 'Comic Sans MS' },
++                                        { text: 'Courier New' },
++                                        { text: 'Lucida Console' },
++                                        { text: 'Tahoma' },
++                                        { text: 'Times New Roman' },
++                                        { text: 'Trebuchet MS' },
++                                        { text: 'Verdana' }
++                                    ]
++                                },
++                                { type: 'spin', label: '13', value: 'fontsize', range: [ 9, 75 ], disabled: true }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'textstyle', label: 'Font Style',
++                            buttons: [
++                                { type: 'push', label: 'Bold CTRL + SHIFT + B', value: 'bold' },
++                                { type: 'push', label: 'Italic CTRL + SHIFT + I', value: 'italic' },
++                                { type: 'push', label: 'Underline CTRL + SHIFT + U', value: 'underline' },
++                                { type: 'push', label: 'Strike Through', value: 'strikethrough' },
++                                { type: 'separator' },
++                                { type: 'color', label: 'Font Color', value: 'forecolor', disabled: true },
++                                { type: 'color', label: 'Background Color', value: 'backcolor', disabled: true }
++                                
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'indentlist', label: 'Lists',
++                            buttons: [
++                                { type: 'push', label: 'Create an Unordered List', value: 'insertunorderedlist' },
++                                { type: 'push', label: 'Create an Ordered List', value: 'insertorderedlist' }
++                            ]
++                        },
++                        { type: 'separator' },
++                        { group: 'insertitem', label: 'Insert Item',
++                            buttons: [
++                                { type: 'push', label: 'HTML Link CTRL + SHIFT + L', value: 'createlink', disabled: true },
++                                { type: 'push', label: 'Insert Image', value: 'insertimage' }
++                            ]
++                        }
++                    ]
++                };
++            }
++
++            YAHOO.widget.SimpleEditor.superclass.init.call(this, p_oElement, p_oAttributes);
++            YAHOO.widget.EditorInfo._instances[this.get('id')] = this;
++
++
++            this.currentElement = [];
++            this.on('contentReady', function() {
++                this.DOMReady = true;
++                this.fireQueue();
++            }, this, true);
++
++        },
++        /**
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create 
++        * the editor.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the editor.
++        */
++        initAttributes: function(attr) {
++            YAHOO.widget.SimpleEditor.superclass.initAttributes.call(this, attr);
++            var self = this;
++
++            /**
++            * @config setDesignMode
++            * @description Should the Editor set designMode on the document. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('setDesignMode', {
++                value: ((attr.setDesignMode === false) ? false : true)
++            });
++            /**
++            * @config nodeChangeDelay
++            * @description Do we wrap the nodeChange method in a timeout for performance. Default: true.
++            * @default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('nodeChangeDelay', {
++                value: ((attr.nodeChangeDelay === false) ? false : true)
++            });
++            /**
++            * @config maxUndo
++            * @description The max number of undo levels to store.
++            * @default 30
++            * @type Number
++            */
++            this.setAttributeConfig('maxUndo', {
++                writeOnce: true,
++                value: attr.maxUndo || 30
++            });
++
++            /**
++            * @config ptags
++            * @description If true, the editor uses &lt;P&gt; tags instead of &lt;br&gt; tags. (Use Shift + Enter to get a &lt;br&gt;)
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('ptags', {
++                writeOnce: true,
++                value: attr.ptags || false
++            });
++            /**
++            * @config insert
++            * @description If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('insert', {
++                writeOnce: true,
++                value: attr.insert || false,
++                method: function(insert) {
++                    if (insert) {
++                        var buttons = {
++                            fontname: true,
++                            fontsize: true,
++                            forecolor: true,
++                            backcolor: true
++                        };
++                        var tmp = this._defaultToolbar.buttons;
++                        for (var i = 0; i < tmp.length; i++) {
++                            if (tmp[i].buttons) {
++                                for (var a = 0; a < tmp[i].buttons.length; a++) {
++                                    if (tmp[i].buttons[a].value) {
++                                        if (buttons[tmp[i].buttons[a].value]) {
++                                            delete tmp[i].buttons[a].disabled;
++                                        }
++                                    }
++                                }
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @config container
++            * @description Used when dynamically creating the Editor from Javascript with no default textarea.
++            * We will create one and place it in this container. If no container is passed we will append to document.body.
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('container', {
++                writeOnce: true,
++                value: attr.container || false
++            });
++            /**
++            * @config plainText
++            * @description Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('plainText', {
++                writeOnce: true,
++                value: attr.plainText || false
++            });
++            /**
++            * @private
++            * @config iframe
++            * @description Internal config for holding the iframe element.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @config disabled_iframe
++            * @description Internal config for holding the iframe element used when disabling the Editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('disabled_iframe', {
++                value: null
++            });
++            /**
++            * @private
++            * @depreciated - No longer used, should use this.get('element')
++            * @config textarea
++            * @description Internal config for holding the textarea element (replaced with element).
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('textarea', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @config nodeChangeThreshold
++            * @description The number of seconds that need to be in between nodeChange processing
++            * @default 3
++            * @type Number
++            */            
++            this.setAttributeConfig('nodeChangeThreshold', {
++                value: attr.nodeChangeThreshold || 3,
++                validator: YAHOO.lang.isNumber
++            });
++            /**
++            * @config allowNoEdit
++            * @description Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes.
++            * Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('allowNoEdit', {
++                value: attr.allowNoEdit || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config limitCommands
++            * @description Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('limitCommands', {
++                value: attr.limitCommands || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @config element_cont
++            * @description Internal config for the editors container
++            * @default false
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('element_cont', {
++                value: attr.element_cont
++            });
++            /**
++            * @private
++            * @config editor_wrapper
++            * @description The outter wrapper for the entire editor.
++            * @default null
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('editor_wrapper', {
++                value: attr.editor_wrapper || null,
++                writeOnce: true
++            });
++            /**
++            * @attribute height
++            * @description The height of the editor iframe container, not including the toolbar..
++            * @default Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument
++            * @type String
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || Dom.getStyle(self.get('element'), 'height'),
++                method: function(height) {
++                    if (this._rendered) {
++                        //We have been rendered, change the height
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('iframe').get('parentNode'), {
++                                height: {
++                                    to: parseInt(height, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', height);
++                        }
++                    }
++                }
++            });
++            /**
++            * @config autoHeight
++            * @description Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
++            * @default false
++            * @type Boolean || Number
++            */
++            this.setAttributeConfig('autoHeight', {
++                value: attr.autoHeight || false,
++                method: function(a) {
++                    if (a) {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'no');
++                        }
++                        this.on('afterNodeChange', this._handleAutoHeight, this, true);
++                        this.on('editorKeyDown', this._handleAutoHeight, this, true);
++                        this.on('editorKeyPress', this._handleAutoHeight, this, true);
++                    } else {
++                        if (this.get('iframe')) {
++                            this.get('iframe').get('element').setAttribute('scrolling', 'auto');
++                        }
++                        this.unsubscribe('afterNodeChange', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyDown', this._handleAutoHeight);
++                        this.unsubscribe('editorKeyPress', this._handleAutoHeight);
++                    }
++                }
++            });
++            /**
++            * @attribute width
++            * @description The width of the editor container.
++            * @default Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument
++            * @type String
++            */            
++            this.setAttributeConfig('width', {
++                value: attr.width || Dom.getStyle(this.get('element'), 'width'),
++                method: function(width) {
++                    if (this._rendered) {
++                        //We have been rendered, change the width
++                        if (this.get('animate')) {
++                            var anim = new YAHOO.util.Anim(this.get('element_cont').get('element'), {
++                                width: {
++                                    to: parseInt(width, 10)
++                                }
++                            }, 0.5);
++                            anim.animate();
++                        } else {
++                            this.get('element_cont').setStyle('width', width);
++                        }
++                    }
++                }
++            });
++                        
++            /**
++            * @attribute blankimage
++            * @description The URL for the image placeholder to put in when inserting an image.
++            * @default The yahooapis.com address for the current release + 'assets/blankimage.png'
++            * @type String
++            */            
++            this.setAttributeConfig('blankimage', {
++                value: attr.blankimage || this._getBlankImage()
++            });
++            /**
++            * @attribute css
++            * @description The Base CSS used to format the content of the editor
++            * @default <code><pre>html {
++                height: 95%;
++            }
++            body {
++                height: 100%;
++                padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
++            }
++            a {
++                color: blue;
++                text-decoration: underline;
++                cursor: pointer;
++            }
++            .warning-localfile {
++                border-bottom: 1px dashed red !important;
++            }
++            .yui-busy {
++                cursor: wait !important;
++            }
++            img.selected { //Safari image selection
++                border: 2px dotted #808080;
++            }
++            img {
++                cursor: pointer !important;
++                border: none;
++            }
++            </pre></code>
++            * @type String
++            */            
++            this.setAttributeConfig('css', {
++                value: attr.css || this._defaultCSS,
++                writeOnce: true
++            });
++            /**
++            * @attribute html
++            * @description The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
++            * @default This HTML requires a few things if you are to override:
++                <p><code>{TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS}</code> and <code>{CONTENT}</code> need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.<p>
++                <p><code>onload="document.body._rteLoaded = true;"</code> : the onload statement must be there or the editor will not finish loading.</p>
++                <code>
++                <pre>
++                &lt;html&gt;
++                    &lt;head&gt;
++                        &lt;title&gt;{TITLE}&lt;/title&gt;
++                        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
++                        &lt;style&gt;
++                        {CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {HIDDEN_CSS}
++                        &lt;/style&gt;
++                        &lt;style&gt;
++                        {EXTRA_CSS}
++                        &lt;/style&gt;
++                    &lt;/head&gt;
++                &lt;body onload="document.body._rteLoaded = true;"&gt;
++                {CONTENT}
++                &lt;/body&gt;
++                &lt;/html&gt;
++                </pre>
++                </code>
++            * @type String
++            */            
++            this.setAttributeConfig('html', {
++                value: attr.html || '<html><head><title>{TITLE}</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><base href="' + this._baseHREF + '"><style>{CSS}</style><style>{HIDDEN_CSS}</style><style>{EXTRA_CSS}</style></head><body onload="document.body._rteLoaded = true;">{CONTENT}</body></html>',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute extracss
++            * @description Extra user defined css to load after the default SimpleEditor CSS
++            * @default ''
++            * @type String
++            */            
++            this.setAttributeConfig('extracss', {
++                value: attr.extracss || '',
++                writeOnce: true
++            });
++
++            /**
++            * @attribute handleSubmit
++            * @description Config handles if the editor will attach itself to the textareas parent form's submit handler.
++            If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form.
++            Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('handleSubmit', {
++                value: attr.handleSubmit || false,
++                method: function(exec) {
++                    if (this.get('element').form) {
++                        if (!this._formButtons) {
++                            this._formButtons = [];
++                        }
++                        if (exec) {
++                            Event.on(this.get('element').form, 'submit', this._handleFormSubmit, this, true);
++                            var i = this.get('element').form.getElementsByTagName('input');
++                            for (var s = 0; s < i.length; s++) {
++                                var type = i[s].getAttribute('type');
++                                if (type && (type.toLowerCase() == 'submit')) {
++                                    Event.on(i[s], 'click', this._handleFormButtonClick, this, true);
++                                    this._formButtons[this._formButtons.length] = i[s];
++                                }
++                            }
++                        } else {
++                            Event.removeListener(this.get('element').form, 'submit', this._handleFormSubmit);
++                            if (this._formButtons) {
++                                Event.removeListener(this._formButtons, 'click', this._handleFormButtonClick);
++                            }
++                        }
++                    }
++                }
++            });
++            /**
++            * @attribute disabled
++            * @description This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place.
++            All Toolbar buttons are also disabled so they cannot be used.
++            * @default false
++            * @type Boolean
++            */
++
++            this.setAttributeConfig('disabled', {
++                value: false,
++                method: function(disabled) {
++                    if (this._rendered) {
++                        this._disableEditor(disabled);
++                    }
++                }
++            });
++            /**
++            * @config saveEl
++            * @description When save HTML is called, this element will be updated as well as the source of data.
++            * @default element
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('saveEl', {
++                value: this.get('element')
++            });
++            /**
++            * @config toolbar_cont
++            * @description Internal config for the toolbars container
++            * @default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('toolbar_cont', {
++                value: null,
++                writeOnce: true
++            });
++            /**
++            * @attribute toolbar
++            * @description The default toolbar config.
++            * @type Object
++            */            
++            this.setAttributeConfig('toolbar', {
++                value: attr.toolbar || this._defaultToolbar,
++                writeOnce: true,
++                method: function(toolbar) {
++                    if (!toolbar.buttonType) {
++                        toolbar.buttonType = this._defaultToolbar.buttonType;
++                    }
++                    this._defaultToolbar = toolbar;
++                }
++            });
++            /**
++            * @attribute animate
++            * @description Should the editor animate window movements
++            * @default false unless Animation is found, then true
++            * @type Boolean
++            */            
++            this.setAttributeConfig('animate', {
++                value: ((attr.animate) ? ((YAHOO.util.Anim) ? true : false) : false),
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.Anim) {
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++            /**
++            * @config panel
++            * @description A reference to the panel we are using for windows.
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('panel', {
++                value: null,
++                writeOnce: true,
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.widget.Overlay) {
++                        ret = false;
++                    }
++                    return ret;
++                }               
++            });
++            /**
++            * @attribute focusAtStart
++            * @description Should we focus the window when the content is ready?
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('focusAtStart', {
++                value: attr.focusAtStart || false,
++                writeOnce: true,
++                method: function(fs) {
++                    if (fs) {
++                        this.on('editorContentLoaded', function() {
++                            var self = this;
++                            setTimeout(function() {
++                                self.focus.call(self);
++                                self.editorDirty = false;
++                            }, 400);
++                        }, this, true);
++                    }
++                }
++            });
++            /**
++            * @attribute dompath
++            * @description Toggle the display of the current Dom path below the editor
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('dompath', {
++                value: attr.dompath || false,
++                method: function(dompath) {
++                    if (dompath && !this.dompath) {
++                        this.dompath = document.createElement('DIV');
++                        this.dompath.id = this.get('id') + '_dompath';
++                        Dom.addClass(this.dompath, 'dompath');
++                        this.get('element_cont').get('firstChild').appendChild(this.dompath);
++                        if (this.get('iframe')) {
++                            this._writeDomPath();
++                        }
++                    } else if (!dompath && this.dompath) {
++                        this.dompath.parentNode.removeChild(this.dompath);
++                        this.dompath = null;
++                    }
++                }
++            });
++            /**
++            * @attribute markup
++            * @description Should we try to adjust the markup for the following types: semantic, css, default or xhtml
++            * @default "semantic"
++            * @type String
++            */            
++            this.setAttributeConfig('markup', {
++                value: attr.markup || 'semantic',
++                validator: function(markup) {
++                    switch (markup.toLowerCase()) {
++                        case 'semantic':
++                        case 'css':
++                        case 'default':
++                        case 'xhtml':
++                        return true;
++                    }
++                    return false;
++                }
++            });
++            /**
++            * @attribute removeLineBreaks
++            * @description Should we remove linebreaks and extra spaces on cleanup
++            * @default false
++            * @type Boolean
++            */            
++            this.setAttributeConfig('removeLineBreaks', {
++                value: attr.removeLineBreaks || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            
++            /**
++            * @config drag
++            * @description Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.
++            * @type {Boolean/String}
++            */
++            this.setAttributeConfig('drag', {
++                writeOnce: true,
++                value: attr.drag || false
++            });
++
++            /**
++            * @config resize
++            * @description Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig
++            * Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.
++            * @type Boolean
++            */
++            this.setAttributeConfig('resize', {
++                writeOnce: true,
++                value: attr.resize || false
++            });
++
++            /**
++            * @config filterWord
++            * @description Attempt to filter out MS Word HTML from the Editor's output.
++            * @type Boolean
++            */
++            this.setAttributeConfig('filterWord', {
++                value: attr.filterWord || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++        },
++        /**
++        * @private
++        * @method _getBlankImage
++        * @description Retrieves the full url of the image to use as the blank image.
++        * @return {String} The URL to the blank image
++        */
++        _getBlankImage: function() {
++            if (!this.DOMReady) {
++                this._queue[this._queue.length] = ['_getBlankImage', arguments];
++                return '';
++            }
++            var img = '';
++            if (!this._blankImageLoaded) {
++                if (YAHOO.widget.EditorInfo.blankImage) {
++                    this.set('blankimage', YAHOO.widget.EditorInfo.blankImage);
++                    this._blankImageLoaded = true;
++                } else {
++                    var div = document.createElement('div');
++                    div.style.position = 'absolute';
++                    div.style.top = '-9999px';
++                    div.style.left = '-9999px';
++                    div.className = this.CLASS_PREFIX + '-blankimage';
++                    document.body.appendChild(div);
++                    img = YAHOO.util.Dom.getStyle(div, 'background-image');
++                    img = img.replace('url(', '').replace(')', '').replace(/"/g, '');
++                    //Adobe AIR Code
++                    img = img.replace('app:/', '');             
++                    this.set('blankimage', img);
++                    this._blankImageLoaded = true;
++                    div.parentNode.removeChild(div);
++                    YAHOO.widget.EditorInfo.blankImage = img;
++                }
++            } else {
++                img = this.get('blankimage');
++            }
++            return img;
++        },
++        /**
++        * @private
++        * @method _handleAutoHeight
++        * @description Handles resizing the editor's height based on the content
++        */
++        _handleAutoHeight: function() {
++            var doc = this._getDoc(),
++                body = doc.body,
++                docEl = doc.documentElement;
++
++            var height = parseInt(Dom.getStyle(this.get('editor_wrapper'), 'height'), 10);
++            var newHeight = body.scrollHeight;
++            if (this.browser.webkit) {
++                newHeight = docEl.scrollHeight;
++            }
++            if (newHeight < parseInt(this.get('height'), 10)) {
++                newHeight = parseInt(this.get('height'), 10);
++            }
++            if ((height != newHeight) && (newHeight >= parseInt(this.get('height'), 10))) {   
++                var anim = this.get('animate');
++                this.set('animate', false);
++                this.set('height', newHeight + 'px');
++                this.set('animate', anim);
++                if (this.browser.ie) {
++                    //Internet Explorer needs this
++                    this.get('iframe').setStyle('height', '99%');
++                    this.get('iframe').setStyle('zoom', '1');
++                    var self = this;
++                    window.setTimeout(function() {
++                        self.get('iframe').setStyle('height', '100%');
++                    }, 1);
++                }
++            }
++        },
++        /**
++        * @private
++        * @property _formButtons
++        * @description Array of buttons that are in the Editor's parent form (for handleSubmit)
++        * @type Array
++        */
++        _formButtons: null,
++        /**
++        * @private
++        * @property _formButtonClicked
++        * @description The form button that was clicked to submit the form.
++        * @type HTMLElement
++        */
++        _formButtonClicked: null,
++        /**
++        * @private
++        * @method _handleFormButtonClick
++        * @description The click listener assigned to each submit button in the Editor's parent form.
++        * @param {Event} ev The click event
++        */
++        _handleFormButtonClick: function(ev) {
++            var tar = Event.getTarget(ev);
++            this._formButtonClicked = tar;
++        },
++        /**
++        * @private
++        * @method _handleFormSubmit
++        * @description Handles the form submission.
++        * @param {Object} ev The Form Submit Event
++        */
++        _handleFormSubmit: function(ev) {
++            this.saveHTML();
++
++            var form = this.get('element').form,
++                tar = this._formButtonClicked || false;
++
++            Event.removeListener(form, 'submit', this._handleFormSubmit);
++            if (YAHOO.env.ua.ie) {
++                //form.fireEvent("onsubmit");
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++            } else {  // Gecko, Opera, and Safari
++                if (tar && !tar.disabled) {
++                    tar.click();
++                }
++                var oEvent = document.createEvent("HTMLEvents");
++                oEvent.initEvent("submit", true, true);
++                form.dispatchEvent(oEvent);
++                if (YAHOO.env.ua.webkit) {
++                    if (YAHOO.lang.isFunction(form.submit)) {
++                        form.submit();
++                    }
++                }
++            }
++            //2.6.0
++            //Removed this, not need since removing Safari 2.x
++            //Event.stopEvent(ev);
++        },
++        /**
++        * @private
++        * @method _handleFontSize
++        * @description Handles the font size button in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleFontSize: function(o) {
++            var button = this.toolbar.getButtonById(o.button.id);
++            var value = button.get('label') + 'px';
++            this.execCommand('fontsize', value);
++            return false;
++        },
++        /**
++        * @private
++        * @description Handles the colorpicker buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleColorPicker: function(o) {
++            var cmd = o.button;
++            var value = '#' + o.color;
++            if ((cmd == 'forecolor') || (cmd == 'backcolor')) {
++                this.execCommand(cmd, value);
++            }
++        },
++        /**
++        * @private
++        * @method _handleAlign
++        * @description Handles the alignment buttons in the toolbar.
++        * @param {Object} o Object returned from Toolbar's buttonClick Event
++        */
++        _handleAlign: function(o) {
++            var cmd = null;
++            for (var i = 0; i < o.button.menu.length; i++) {
++                if (o.button.menu[i].value == o.button.value) {
++                    cmd = o.button.menu[i].value;
++                }
++            }
++            var value = this._getSelection();
++
++            this.execCommand(cmd, value);
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleAfterNodeChange
++        * @description Fires after a nodeChange happens to setup the things that where reset on the node change (button state).
++        */
++        _handleAfterNodeChange: function() {
++            var path = this._getDomPath(),
++                elm = null,
++                family = null,
++                fontsize = null,
++                validFont = false,
++                fn_button = this.toolbar.getButtonByValue('fontname'),
++                fs_button = this.toolbar.getButtonByValue('fontsize'),
++                hd_button = this.toolbar.getButtonByValue('heading');
++
++            for (var i = 0; i < path.length; i++) {
++                elm = path[i];
++
++                var tag = elm.tagName.toLowerCase();
++
++
++                if (elm.getAttribute('tag')) {
++                    tag = elm.getAttribute('tag');
++                }
++
++                family = elm.getAttribute('face');
++                if (Dom.getStyle(elm, 'font-family')) {
++                    family = Dom.getStyle(elm, 'font-family');
++                    //Adobe AIR Code
++                    family = family.replace(/'/g, '');                    
++                }
++
++                if (tag.substring(0, 1) == 'h') {
++                    if (hd_button) {
++                        for (var h = 0; h < hd_button._configs.menu.value.length; h++) {
++                            if (hd_button._configs.menu.value[h].value.toLowerCase() == tag) {
++                                hd_button.set('label', hd_button._configs.menu.value[h].text);
++                            }
++                        }
++                        this._updateMenuChecked('heading', tag);
++                    }
++                }
++            }
++
++            if (fn_button) {
++                for (var b = 0; b < fn_button._configs.menu.value.length; b++) {
++                    if (family && fn_button._configs.menu.value[b].text.toLowerCase() == family.toLowerCase()) {
++                        validFont = true;
++                        family = fn_button._configs.menu.value[b].text; //Put the proper menu name in the button
++                    }
++                }
++                if (!validFont) {
++                    family = fn_button._configs.label._initialConfig.value;
++                }
++                var familyLabel = '<span class="yui-toolbar-fontname-' + this._cleanClassName(family) + '">' + family + '</span>';
++                if (fn_button.get('label') != familyLabel) {
++                    fn_button.set('label', familyLabel);
++                    this._updateMenuChecked('fontname', family);
++                }
++            }
++
++            if (fs_button) {
++                fontsize = parseInt(Dom.getStyle(elm, 'fontSize'), 10);
++                if ((fontsize === null) || isNaN(fontsize)) {
++                    fontsize = fs_button._configs.label._initialConfig.value;
++                }
++                fs_button.set('label', ''+fontsize);
++            }
++            
++            if (!this._isElement(elm, 'body') && !this._isElement(elm, 'img')) {
++                this.toolbar.enableButton(fn_button);
++                this.toolbar.enableButton(fs_button);
++                this.toolbar.enableButton('forecolor');
++                this.toolbar.enableButton('backcolor');
++            }
++            if (this._isElement(elm, 'img')) {
++                if (YAHOO.widget.Overlay) {
++                    this.toolbar.enableButton('createlink');
++                }
++            }
++            if (this._hasParent(elm, 'blockquote')) {
++                this.toolbar.selectButton('indent');
++                this.toolbar.disableButton('indent');
++                this.toolbar.enableButton('outdent');
++            }
++            if (this._hasParent(elm, 'ol') || this._hasParent(elm, 'ul')) {
++                this.toolbar.disableButton('indent');
++            }
++            this._lastButton = null;
++            
++        },
++        /**
++        * @private
++        * @method _handleInsertImageClick
++        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.
++        */
++        _handleInsertImageClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('insertimage')) {
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    src = 'http://';
++                if (!el) {
++                    el = this._getSelectedElement();
++                }
++                if (el) {
++                    if (el.getAttribute('src')) {
++                        src = el.getAttribute('src', 2);
++                        if (src.indexOf(this.get('blankimage')) != -1) {
++                            src = this.STR_IMAGE_HERE;
++                        }
++                    }
++                }
++                var str = prompt(this.STR_IMAGE_URL + ': ', src);
++                if ((str !== '') && (str !== null)) {
++                    el.setAttribute('src', str);
++                } else if (str === '') {
++                    el.parentNode.removeChild(el);
++                    this.currentElement = [];
++                    this.nodeChange();
++                } else if ((str === null)) {
++                    src = el.getAttribute('src', 2);
++                    if (src.indexOf(this.get('blankimage')) != -1) {
++                        el.parentNode.removeChild(el);
++                        this.currentElement = [];
++                        this.nodeChange();
++                    }
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this, true);
++        },
++        /**
++        * @private
++        * @method _handleInsertImageWindowClose
++        * @description Handles the closing of the Image Properties Window.
++        */
++        _handleInsertImageWindowClose: function() {
++            this.nodeChange();
++        },
++        /**
++        * @private
++        * @method _isLocalFile
++        * @param {String} url THe url/string to check
++        * @description Checks to see if a string (href or img src) is possibly a local file reference..
++        */
++        _isLocalFile: function(url) {
++            if ((url) && (url !== '') && ((url.indexOf('file:/') != -1) || (url.indexOf(':\\') != -1))) {
++                return true;
++            }
++            return false;
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkClick
++        * @description Handles the opening of the Link Properties Window when the Create Link button is clicked or an href is doubleclicked.
++        */
++        _handleCreateLinkClick: function() {
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue('createlink')) {
++                    return false;
++                }
++            }
++        
++            this.toolbar.set('disabled', true); //Disable the toolbar when the prompt is showing
++
++            var _handleAEC = function() {
++                var el = this.currentElement[0],
++                    url = '';
++
++                if (el) {
++                    if (el.getAttribute('href', 2) !== null) {
++                        url = el.getAttribute('href', 2);
++                    }
++                }
++                var str = prompt(this.STR_LINK_URL + ': ', url);
++                if ((str !== '') && (str !== null)) {
++                    var urlValue = str;
++                    if ((urlValue.indexOf(':/'+'/') == -1) && (urlValue.substring(0,1) != '/') && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                        if ((urlValue.indexOf('@') != -1) && (urlValue.substring(0, 6).toLowerCase() != 'mailto')) {
++                            //Found an @ sign, prefix with mailto:
++                            urlValue = 'mailto:' + urlValue;
++                        } else {
++                            /* :// not found adding */
++                            if (urlValue.substring(0, 1) != '#') {
++                                //urlValue = 'http:/'+'/' + urlValue;
++                            }
++                        }
++                    }
++                    el.setAttribute('href', urlValue);
++                } else if (str !== null) {
++                    var _span = this._getDoc().createElement('span');
++                    _span.innerHTML = el.innerHTML;
++                    Dom.addClass(_span, 'yui-non');
++                    el.parentNode.replaceChild(_span, el);
++                }
++                this.closeWindow();
++                this.toolbar.set('disabled', false);
++                this.unsubscribe('afterExecCommand', _handleAEC, this, true);
++            };
++            this.on('afterExecCommand', _handleAEC, this);
++
++        },
++        /**
++        * @private
++        * @method _handleCreateLinkWindowClose
++        * @description Handles the closing of the Link Properties Window.
++        */
++        _handleCreateLinkWindowClose: function() {
++            this.nodeChange();
++            this.currentElement = [];
++        },
++        /**
++        * @method render
++        * @description Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
++        */
++        render: function() {
++            if (this._rendered) {
++                return false;
++            }
++            if (!this.DOMReady) {
++                this._queue[this._queue.length] = ['render', arguments];
++                return false;
++            }
++            if (this.get('element')) {
++                if (this.get('element').tagName) {
++                    this._textarea = true;
++                    if (this.get('element').tagName.toLowerCase() !== 'textarea') {
++                        this._textarea = false;
++                    }
++                } else {
++                    return false;
++                }
++            } else {
++                return false;
++            }
++            this._rendered = true;
++            var self = this;
++            window.setTimeout(function() {
++                self._render.call(self);
++            }, 4);
++        },
++        /**
++        * @private
++        * @method _render
++        * @description Causes the toolbar and the editor to render and replace the textarea.
++        */
++        _render: function() {
++            var self = this;
++            this.set('textarea', this.get('element'));
++
++            this.get('element_cont').setStyle('display', 'none');
++            this.get('element_cont').addClass(this.CLASS_CONTAINER);
++            
++            this.set('iframe', this._createIframe());
++
++            window.setTimeout(function() {
++                self._setInitialContent.call(self);
++            }, 10);
++
++            this.get('editor_wrapper').appendChild(this.get('iframe').get('element'));
++
++            if (this.get('disabled')) {
++                this._disableEditor(true);
++            }
++
++            var tbarConf = this.get('toolbar');
++            //Create Toolbar instance
++            if (tbarConf instanceof Toolbar) {
++                this.toolbar = tbarConf;
++                //Set the toolbar to disabled until content is loaded
++                this.toolbar.set('disabled', true);
++            } else {
++                //Set the toolbar to disabled until content is loaded
++                tbarConf.disabled = true;
++                this.toolbar = new Toolbar(this.get('toolbar_cont'), tbarConf);
++            }
++
++            this.fireEvent('toolbarLoaded', { type: 'toolbarLoaded', target: this.toolbar });
++
++            
++            this.toolbar.on('toolbarCollapsed', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('toolbarExpanded', function() {
++                if (this.currentWindow) {
++                    this.moveWindow();
++                }
++            }, this, true);
++            this.toolbar.on('fontsizeClick', this._handleFontSize, this, true);
++            
++            this.toolbar.on('colorPickerClicked', function(o) {
++                this._handleColorPicker(o);
++                return false; //Stop the buttonClick event
++            }, this, true);
++
++            this.toolbar.on('alignClick', this._handleAlign, this, true);
++            this.on('afterNodeChange', this._handleAfterNodeChange, this, true);
++            this.toolbar.on('insertimageClick', this._handleInsertImageClick, this, true);
++            this.on('windowinsertimageClose', this._handleInsertImageWindowClose, this, true);
++            this.toolbar.on('createlinkClick', this._handleCreateLinkClick, this, true);
++            this.on('windowcreatelinkClose', this._handleCreateLinkWindowClose, this, true);
++            
++
++            //Replace Textarea with editable area
++            this.get('parentNode').replaceChild(this.get('element_cont').get('element'), this.get('element'));
++
++            
++            this.setStyle('visibility', 'hidden');
++            this.setStyle('position', 'absolute');
++            this.setStyle('top', '-9999px');
++            this.setStyle('left', '-9999px');
++            this.get('element_cont').appendChild(this.get('element'));
++            this.get('element_cont').setStyle('display', 'block');
++
++
++            Dom.addClass(this.get('iframe').get('parentNode'), this.CLASS_EDITABLE_CONT);
++            this.get('iframe').addClass(this.CLASS_EDITABLE);
++
++            //Set height and width of editor container
++            this.get('element_cont').setStyle('width', this.get('width'));
++            Dom.setStyle(this.get('iframe').get('parentNode'), 'height', this.get('height'));
++
++            this.get('iframe').setStyle('width', '100%'); //WIDTH
++            this.get('iframe').setStyle('height', '100%');
++
++            this._setupDD();
++
++            window.setTimeout(function() {
++                self._setupAfterElement.call(self);
++            }, 0);
++            this.fireEvent('afterRender', { type: 'afterRender', target: this });
++        },
++        /**
++        * @method execCommand
++        * @param {String} action The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
++        * @param {String} value (optional) The value for a given action such as action: fontname value: 'Verdana'
++        * @description This method attempts to try and level the differences in the various browsers and their support for execCommand actions
++        */
++        execCommand: function(action, value) {
++            var beforeExec = this.fireEvent('beforeExecCommand', { type: 'beforeExecCommand', target: this, args: arguments });
++            if ((beforeExec === false) || (this.STOP_EXEC_COMMAND)) {
++                this.STOP_EXEC_COMMAND = false;
++                return false;
++            }
++            this._lastCommand = action;
++            this._setMarkupType(action);
++            if (this.browser.ie) {
++                this._getWindow().focus();
++            }
++            var exec = true;
++            
++            if (this.get('limitCommands')) {
++                if (!this.toolbar.getButtonByValue(action)) {
++                    exec = false;
++                }
++            }
++
++            this.editorDirty = true;
++            
++            if ((typeof this['cmd_' + action.toLowerCase()] == 'function') && exec) {
++                var retValue = this['cmd_' + action.toLowerCase()](value);
++                exec = retValue[0];
++                if (retValue[1]) {
++                    action = retValue[1];
++                }
++                if (retValue[2]) {
++                    value = retValue[2];
++                }
++            }
++            if (exec) {
++                try {
++                    this._getDoc().execCommand(action, false, value);
++                } catch(e) {
++                }
++            } else {
++            }
++            this.on('afterExecCommand', function() {
++                this.unsubscribeAll('afterExecCommand');
++                this.nodeChange();
++            }, this, true);
++            this.fireEvent('afterExecCommand', { type: 'afterExecCommand', target: this });
++            
++        },
++    /* {{{  Command Overrides */
++
++        /**
++        * @method cmd_bold
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('bold') is used.
++        */
++        cmd_bold: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontWeight == 'bold') {
++                        el.style.fontWeight = '';
++                        var b = this._getDoc().createElement('b'),
++                        par = el.parentNode;
++                        par.replaceChild(b, el);
++                        b.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_italic
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('italic') is used.
++        */
++
++        cmd_italic: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span') && this._hasSelection()) {
++                    if (el.style.fontStyle == 'italic') {
++                        el.style.fontStyle = '';
++                        var i = this._getDoc().createElement('i'),
++                        par = el.parentNode;
++                        par.replaceChild(i, el);
++                        i.appendChild(el);
++                    }
++                }
++            }
++            return [true];
++        },
++
++
++        /**
++        * @method cmd_underline
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
++        */
++        cmd_underline: function(value) {
++            if (!this.browser.webkit) {
++                var el = this._getSelectedElement();
++                if (el && this._isElement(el, 'span')) {
++                    if (el.style.textDecoration == 'underline') {
++                        el.style.textDecoration = 'none';
++                    } else {
++                        el.style.textDecoration = 'underline';
++                    }
++                    return [false];
++                }
++            }
++            return [true];
++        },
++        /**
++        * @method cmd_backcolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
++        */
++        cmd_backcolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement(),
++                action = 'backcolor';
++
++            if (this.browser.gecko || this.browser.opera) {
++                this._setEditorStyle(true);
++                action = 'hilitecolor';
++            }
++
++            if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                el.style.backgroundColor = value;
++                this._selectNode(el);
++                exec = false;
++            } else {
++                if (this.get('insert')) {
++                    el = this._createInsertElement({ backgroundColor: value });
++                } else {
++                    this._createCurrentElement('span', { backgroundColor: value, color: el.style.color, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily });
++                    this._selectNode(this.currentElement[0]);
++                }
++                exec = false;
++            }
++
++            return [exec, action];
++        },
++        /**
++        * @method cmd_forecolor
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
++        */
++        cmd_forecolor: function(value) {
++            var exec = true,
++                el = this._getSelectedElement();
++                
++                if (!this._isElement(el, 'body') && !this._hasSelection()) {
++                    Dom.setStyle(el, 'color', value);
++                    this._selectNode(el);
++                    exec = false;
++                } else {
++                    if (this.get('insert')) {
++                        el = this._createInsertElement({ color: value });
++                    } else {
++                        this._createCurrentElement('span', { color: value, fontSize: el.style.fontSize, fontFamily: el.style.fontFamily, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                    exec = false;
++                }
++                return [exec];
++        },
++        /**
++        * @method cmd_unlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
++        */
++        cmd_unlink: function(value) {
++            this._swapEl(this.currentElement[0], 'span', function(el) {
++                el.className = 'yui-non';
++            });
++            return [false];
++        },
++        /**
++        * @method cmd_createlink
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
++        */
++        cmd_createlink: function(value) {
++            var el = this._getSelectedElement(), _a = null;
++            if (this._hasParent(el, 'a')) {
++                this.currentElement[0] = this._hasParent(el, 'a');
++            } else if (this._isElement(el, 'li')) {
++                _a = this._getDoc().createElement('a');
++                _a.innerHTML = el.innerHTML;
++                el.innerHTML = '';
++                el.appendChild(_a);
++                this.currentElement[0] = _a;
++            } else if (!this._isElement(el, 'a')) {
++                this._createCurrentElement('a');
++                _a = this._swapEl(this.currentElement[0], 'a');
++                this.currentElement[0] = _a;
++            } else {
++                this.currentElement[0] = el;
++            }
++            return [false];
++        },
++        /**
++        * @method cmd_insertimage
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
++        */
++        cmd_insertimage: function(value) {
++            var exec = true, _img = null, action = 'insertimage',
++                el = this._getSelectedElement();
++
++            if (value === '') {
++                value = this.get('blankimage');
++            }
++
++            /*
++            * @knownissue Safari Cursor Position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            
++            if (this._isElement(el, 'img')) {
++                this.currentElement[0] = el;
++                exec = false;
++            } else {
++                if (this._getDoc().queryCommandEnabled(action)) {
++                    this._getDoc().execCommand(action, false, value);
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var i = 0; i < imgs.length; i++) {
++                        if (!YAHOO.util.Dom.hasClass(imgs[i], 'yui-img')) {
++                            YAHOO.util.Dom.addClass(imgs[i], 'yui-img');
++                            this.currentElement[0] = imgs[i];
++                        }
++                    }
++                    exec = false;
++                } else {
++                    if (el == this._getDoc().body) {
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this._getDoc().body.appendChild(_img);
++                    } else {
++                        this._createCurrentElement('img');
++                        _img = this._getDoc().createElement('img');
++                        _img.setAttribute('src', value);
++                        YAHOO.util.Dom.addClass(_img, 'yui-img');
++                        this.currentElement[0].parentNode.replaceChild(_img, this.currentElement[0]);
++                    }
++                    this.currentElement[0] = _img;
++                    exec = false;
++                }
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_inserthtml
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
++        */
++        cmd_inserthtml: function(value) {
++            var exec = true, action = 'inserthtml', _span = null, _range = null;
++            /*
++            * @knownissue Safari cursor position
++            * @browser Safari 2.x
++            * @description The issue here is that we have no way of knowing where the cursor position is
++            * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++            */
++            if (this.browser.webkit && !this._getDoc().queryCommandEnabled(action)) {
++                this._createCurrentElement('img');
++                _span = this._getDoc().createElement('span');
++                _span.innerHTML = value;
++                this.currentElement[0].parentNode.replaceChild(_span, this.currentElement[0]);
++                exec = false;
++            } else if (this.browser.ie) {
++                _range = this._getRange();
++                if (_range.item) {
++                    _range.item(0).outerHTML = value;
++                } else {
++                    _range.pasteHTML(value);
++                }
++                exec = false;                    
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_list
++        * @param tag The tag of the list you want to create (eg, ul or ol)
++        * @description This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
++        */
++        cmd_list: function(tag) {
++            var exec = true, list = null, li = 0, el = null, str = '',
++                selEl = this._getSelectedElement(), action = 'insertorderedlist';
++                if (tag == 'ul') {
++                    action = 'insertunorderedlist';
++                }
++            /*
++            * @knownissue Safari 2.+ doesn't support ordered and unordered lists
++            * @browser Safari 2.x
++            * The issue with this workaround is that when applied to a set of text
++            * that has BR's in it, Safari may or may not pick up the individual items as
++            * list items. This is fixed in WebKit (Safari 3)
++            * 2.6.0: Seems there are still some issues with List Creation and Safari 3, reverting to previously working Safari 2.x code
++            */
++            //if ((this.browser.webkit && !this._getDoc().queryCommandEnabled(action))) {
++            if ((this.browser.webkit && !this.browser.webkit4) || (this.browser.opera)) {
++                if (this._isElement(selEl, 'li') && this._isElement(selEl.parentNode, tag)) {
++                    el = selEl.parentNode;
++                    list = this._getDoc().createElement('span');
++                    YAHOO.util.Dom.addClass(list, 'yui-non');
++                    str = '';
++                    var lis = el.getElementsByTagName('li'), p_tag = ((this.browser.opera && this.get('ptags')) ? 'p' : 'div');
++                    for (li = 0; li < lis.length; li++) {
++                        str += '<' + p_tag + '>' + lis[li].innerHTML + '</' + p_tag + '>';
++                    }
++                    list.innerHTML = str;
++                    this.currentElement[0] = el;
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                } else {
++                    this._createCurrentElement(tag.toLowerCase());
++                    list = this._getDoc().createElement(tag);
++                    for (li = 0; li < this.currentElement.length; li++) {
++                        var newli = this._getDoc().createElement('li');
++                        newli.innerHTML = this.currentElement[li].innerHTML + '<span class="yui-non">&nbsp;</span>&nbsp;';
++                        list.appendChild(newli);
++                        if (li > 0) {
++                            this.currentElement[li].parentNode.removeChild(this.currentElement[li]);
++                        }
++                    }
++                    var b_tag = ((this.browser.opera) ? '<BR>' : '<br>'),
++                    items = list.firstChild.innerHTML.split(b_tag), i, item;
++                    if (items.length > 0) {
++                        list.innerHTML = '';
++                        for (i = 0; i < items.length; i++) {
++                            item = this._getDoc().createElement('li');
++                            item.innerHTML = items[i];
++                            list.appendChild(item);
++                        }
++                    }
++
++                    this.currentElement[0].parentNode.replaceChild(list, this.currentElement[0]);
++                    this.currentElement[0] = list;
++                    var _h = this.currentElement[0].firstChild;
++                    _h = Dom.getElementsByClassName('yui-non', 'span', _h)[0];
++                    if (this.browser.webkit) {
++                        this._getSelection().setBaseAndExtent(_h, 1, _h, _h.innerText.length);
++                    }
++                }
++                exec = false;
++            } else {
++                el = this._getSelectedElement();
++                if (this._isElement(el, 'li') && this._isElement(el.parentNode, tag) || (this.browser.ie && this._isElement(this._getRange().parentElement, 'li')) || (this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) { //we are in a list..
++                    if (this.browser.ie) {
++                        if ((this.browser.ie && this._isElement(el, 'ul')) || (this.browser.ie && this._isElement(el, 'ol'))) {
++                            el = el.getElementsByTagName('li')[0];
++                        }
++                        str = '';
++                        var lis2 = el.parentNode.getElementsByTagName('li');
++                        for (var j = 0; j < lis2.length; j++) {
++                            str += lis2[j].innerHTML + '<br>';
++                        }
++                        var newEl = this._getDoc().createElement('span');
++                        newEl.innerHTML = str;
++                        el.parentNode.parentNode.replaceChild(newEl, el.parentNode);
++                    } else {
++                        this.nodeChange();
++                        this._getDoc().execCommand(action, '', el.parentNode);
++                        this.nodeChange();
++                    }
++                    exec = false;
++                }
++                if (this.browser.opera) {
++                    var self = this;
++                    window.setTimeout(function() {
++                        var liso = self._getDoc().getElementsByTagName('li');
++                        for (var i = 0; i < liso.length; i++) {
++                            if (liso[i].innerHTML.toLowerCase() == '<br>') {
++                                liso[i].parentNode.parentNode.removeChild(liso[i].parentNode);
++                            }
++                        }
++                    },30);
++                }
++                if (this.browser.ie && exec) {
++                    var html = '';
++                    if (this._getRange().html) {
++                        html = '<li>' + this._getRange().html+ '</li>';
++                    } else {
++                        var t = this._getRange().text.split('\n');
++                        if (t.length > 1) {
++                            html = '';
++                            for (var ie = 0; ie < t.length; ie++) {
++                                html += '<li>' + t[ie] + '</li>';
++                            }
++                        } else {
++                            var txt = this._getRange().text;
++                            if (txt === '') {
++                                html = '<li id="new_list_item">' + txt + '</li>';
++                            } else {
++                                html = '<li>' + txt + '</li>';
++                            }
++                        }
++                    }
++                    this._getRange().pasteHTML('<' + tag + '>' + html + '</' + tag + '>');
++                    var new_item = this._getDoc().getElementById('new_list_item');
++                    if (new_item) {
++                        var range = this._getDoc().body.createTextRange();
++                        range.moveToElementText(new_item);
++                        range.collapse(false);
++                        range.select();                       
++                        new_item.id = '';
++                    }
++                    exec = false;
++                }
++            }
++            return exec;
++        },
++        /**
++        * @method cmd_insertorderedlist
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
++        */
++        cmd_insertorderedlist: function(value) {
++            return [this.cmd_list('ol')];
++        },
++        /**
++        * @method cmd_insertunorderedlist 
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
++        */
++        cmd_insertunorderedlist: function(value) {
++            return [this.cmd_list('ul')];
++        },
++        /**
++        * @method cmd_fontname
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
++        */
++        cmd_fontname: function(value) {
++            var exec = true,
++                selEl = this._getSelectedElement();
++
++            this.currentFont = value;
++            if (selEl && selEl.tagName && !this._hasSelection() && !this._isElement(selEl, 'body') && !this.get('insert')) {
++                YAHOO.util.Dom.setStyle(selEl, 'font-family', value);
++                exec = false;
++            } else if (this.get('insert') && !this._hasSelection()) {
++                var el = this._createInsertElement({ fontFamily: value });
++                exec = false;
++            }
++            return [exec];
++        },
++        /**
++        * @method cmd_fontsize
++        * @param value Value passed from the execCommand method
++        * @description This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
++        */
++        cmd_fontsize: function(value) {
++            var el = null, go = true;
++            el = this._getSelectedElement();
++            if (this.browser.webkit) {
++                if (this.currentElement[0]) {
++                    if (el == this.currentElement[0]) {
++                        go = false;
++                        YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                        this._selectNode(el);
++                        this.currentElement[0] = el;
++                    }
++                }
++            }
++            if (go) {
++                if (!this._isElement(this._getSelectedElement(), 'body') && (!this._hasSelection())) {
++                    el = this._getSelectedElement();
++                    YAHOO.util.Dom.setStyle(el, 'fontSize', value);
++                    if (this.get('insert') && this.browser.ie) {
++                        var r = this._getRange();
++                        r.collapse(false);
++                        r.select();
++                    } else {
++                        this._selectNode(el);
++                    }
++                } else if (this.currentElement && (this.currentElement.length > 0) && (!this._hasSelection()) && (!this.get('insert'))) {
++                    YAHOO.util.Dom.setStyle(this.currentElement, 'fontSize', value);
++                } else {
++                    if (this.get('insert') && !this._hasSelection()) {
++                        el = this._createInsertElement({ fontSize: value });
++                        this.currentElement[0] = el;
++                        this._selectNode(this.currentElement[0]);
++                    } else {
++                        this._createCurrentElement('span', {'fontSize': value, fontFamily: el.style.fontFamily, color: el.style.color, backgroundColor: el.style.backgroundColor });
++                        this._selectNode(this.currentElement[0]);
++                    }
++                }
++            }
++            return [false];
++        },
++    /* }}} */
++        /**
++        * @private
++        * @method _swapEl
++        * @param {HTMLElement} el The element to swap with
++        * @param {String} tagName The tagname of the element that you wish to create
++        * @param {Function} callback (optional) A function to run on the element after it is created, but before it is replaced. An element reference is passed to this function.
++        * @description This function will create a new element in the DOM and populate it with the contents of another element. Then it will assume it's place.
++        */
++        _swapEl: function(el, tagName, callback) {
++            var _el = this._getDoc().createElement(tagName);
++            if (el) {
++                _el.innerHTML = el.innerHTML;
++            }
++            if (typeof callback == 'function') {
++                callback.call(this, _el);
++            }
++            if (el) {
++                el.parentNode.replaceChild(_el, el);
++            }
++            return _el;
++        },
++        /**
++        * @private
++        * @method _createInsertElement
++        * @description Creates a new "currentElement" then adds some text (and other things) to make it selectable and stylable. Then the user can continue typing.
++        * @param {Object} css (optional) Object literal containing styles to apply to the new element.
++        * @return {HTMLElement}
++        */
++        _createInsertElement: function(css) {
++            this._createCurrentElement('span', css);
++            var el = this.currentElement[0];
++            if (this.browser.webkit) {
++                //Little Safari Hackery here..
++                el.innerHTML = '<span class="yui-non">&nbsp;</span>';
++                el = el.firstChild;
++                this._getSelection().setBaseAndExtent(el, 1, el, el.innerText.length);                    
++            } else if (this.browser.ie || this.browser.opera) {
++                el.innerHTML = '&nbsp;';
++            }
++            this.focus();
++            this._selectNode(el, true);
++            return el;
++        },
++        /**
++        * @private
++        * @method _createCurrentElement
++        * @param {String} tagName (optional defaults to a) The tagname of the element that you wish to create
++        * @param {Object} tagStyle (optional) Object literal containing styles to apply to the new element.
++        * @description This is a work around for the various browser issues with execCommand. This method will run <code>execCommand('fontname', false, 'yui-tmp')</code> on the given selection.
++        * It will then search the document for an element with the font-family set to <strong>yui-tmp</strong> and replace that with another span that has other information in it, then assign the new span to the 
++        * <code>this.currentElement</code> array, so we now have element references to the elements that were just modified. At this point we can use standard DOM manipulation to change them as we see fit.
++        */
++        _createCurrentElement: function(tagName, tagStyle) {
++            tagName = ((tagName) ? tagName : 'a');
++            var tar = null,
++                el = [],
++                _doc = this._getDoc();
++            
++            if (this.currentFont) {
++                if (!tagStyle) {
++                    tagStyle = {};
++                }
++                tagStyle.fontFamily = this.currentFont;
++                this.currentFont = null;
++            }
++            this.currentElement = [];
++
++            var _elCreate = function(tagName, tagStyle) {
++                var el = null;
++                tagName = ((tagName) ? tagName : 'span');
++                tagName = tagName.toLowerCase();
++                switch (tagName) {
++                    case 'h1':
++                    case 'h2':
++                    case 'h3':
++                    case 'h4':
++                    case 'h5':
++                    case 'h6':
++                        el = _doc.createElement(tagName);
++                        break;
++                    default:
++                        el = _doc.createElement(tagName);
++                        if (tagName === 'span') {
++                            YAHOO.util.Dom.addClass(el, 'yui-tag-' + tagName);
++                            YAHOO.util.Dom.addClass(el, 'yui-tag');
++                            el.setAttribute('tag', tagName);
++                        }
++
++                        for (var k in tagStyle) {
++                            if (YAHOO.lang.hasOwnProperty(tagStyle, k)) {
++                                el.style[k] = tagStyle[k];
++                            }
++                        }
++                        break;
++                }
++                return el;
++            };
++
++            if (!this._hasSelection()) {
++                if (this._getDoc().queryCommandEnabled('insertimage')) {
++                    this._getDoc().execCommand('insertimage', false, 'yui-tmp-img');
++                    var imgs = this._getDoc().getElementsByTagName('img');
++                    for (var j = 0; j < imgs.length; j++) {
++                        if (imgs[j].getAttribute('src', 2) == 'yui-tmp-img') {
++                            el = _elCreate(tagName, tagStyle);
++                            imgs[j].parentNode.replaceChild(el, imgs[j]);
++                            this.currentElement[this.currentElement.length] = el;
++                        }
++                    }
++                } else {
++                    if (this.currentEvent) {
++                        tar = YAHOO.util.Event.getTarget(this.currentEvent);
++                    } else {
++                        //For Safari..
++                        tar = this._getDoc().body;                        
++                    }
++                }
++                if (tar) {
++                    /*
++                    * @knownissue Safari Cursor Position
++                    * @browser Safari 2.x
++                    * @description The issue here is that we have no way of knowing where the cursor position is
++                    * inside of the iframe, so we have to place the newly inserted data in the best place that we can.
++                    */
++                    el = _elCreate(tagName, tagStyle);
++                    if (this._isElement(tar, 'body') || this._isElement(tar, 'html')) {
++                        if (this._isElement(tar, 'html')) {
++                            tar = this._getDoc().body;
++                        }
++                        tar.appendChild(el);
++                    } else if (tar.nextSibling) {
++                        tar.parentNode.insertBefore(el, tar.nextSibling);
++                    } else {
++                        tar.parentNode.appendChild(el);
++                    }
++                    //this.currentElement = el;
++                    this.currentElement[this.currentElement.length] = el;
++                    this.currentEvent = null;
++                    if (this.browser.webkit) {
++                        //Force Safari to focus the new element
++                        this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                        if (this.browser.webkit3) {
++                            this._getSelection().collapseToStart();
++                        } else {
++                            this._getSelection().collapse(true);
++                        }
++                    }
++                }
++            } else {
++                //Force CSS Styling for this action...
++                this._setEditorStyle(true);
++                this._getDoc().execCommand('fontname', false, 'yui-tmp');
++                var _tmp = [], __tmp, __els = ['font', 'span', 'i', 'b', 'u'];
++
++                if (!this._isElement(this._getSelectedElement(), 'body')) {
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().tagName);
++                    __els[__els.length] = this._getDoc().getElementsByTagName(this._getSelectedElement().parentNode.tagName);
++                }
++                for (var _els = 0; _els < __els.length; _els++) {
++                    var _tmp1 = this._getDoc().getElementsByTagName(__els[_els]);
++                    for (var e = 0; e < _tmp1.length; e++) {
++                        _tmp[_tmp.length] = _tmp1[e];
++                    }
++                }
++
++                
++                for (var i = 0; i < _tmp.length; i++) {
++                    if ((YAHOO.util.Dom.getStyle(_tmp[i], 'font-family') == 'yui-tmp') || (_tmp[i].face && (_tmp[i].face == 'yui-tmp'))) {
++                        if (tagName !== 'span') {
++                            el = _elCreate(tagName, tagStyle);
++                        } else {
++                            el = _elCreate(_tmp[i].tagName, tagStyle);
++                        }
++                        el.innerHTML = _tmp[i].innerHTML;
++                        if (this._isElement(_tmp[i], 'ol') || (this._isElement(_tmp[i], 'ul'))) {
++                            var fc = _tmp[i].getElementsByTagName('li')[0];
++                            _tmp[i].style.fontFamily = 'inherit';
++                            fc.style.fontFamily = 'inherit';
++                            el.innerHTML = fc.innerHTML;
++                            fc.innerHTML = '';
++                            fc.appendChild(el);
++                            this.currentElement[this.currentElement.length] = el;
++                        } else if (this._isElement(_tmp[i], 'li')) {
++                            _tmp[i].innerHTML = '';
++                            _tmp[i].appendChild(el);
++                            _tmp[i].style.fontFamily = 'inherit';
++                            this.currentElement[this.currentElement.length] = el;
++                        } else {
++                            if (_tmp[i].parentNode) {
++                                _tmp[i].parentNode.replaceChild(el, _tmp[i]);
++                                this.currentElement[this.currentElement.length] = el;
++                                this.currentEvent = null;
++                                if (this.browser.webkit) {
++                                    //Force Safari to focus the new element
++                                    this._getSelection().setBaseAndExtent(el, 0, el, 0);
++                                    if (this.browser.webkit3) {
++                                        this._getSelection().collapseToStart();
++                                    } else {
++                                        this._getSelection().collapse(true);
++                                    }
++                                }
++                                if (this.browser.ie && tagStyle && tagStyle.fontSize) {
++                                    this._getSelection().empty();
++                                }
++                                if (this.browser.gecko) {
++                                    this._getSelection().collapseToStart();
++                                }
++                            }
++                        }
++                    }
++                }
++                var len = this.currentElement.length;
++                for (var o = 0; o < len; o++) {
++                    if ((o + 1) != len) { //Skip the last one in the list
++                        if (this.currentElement[o] && this.currentElement[o].nextSibling) {
++                            if (this._isElement(this.currentElement[o], 'br')) {
++                                this.currentElement[this.currentElement.length] = this.currentElement[o].nextSibling;
++                            }
++                        }
++                    }
++                }
++            }
++        },
++        /**
++        * @method saveHTML
++        * @description Cleans the HTML with the cleanHTML method then places that string back into the textarea.
++        * @return String
++        */
++        saveHTML: function() {
++            var html = this.cleanHTML();
++            if (this._textarea) {
++                this.get('element').value = html;
++            } else {
++                this.get('element').innerHTML = html;
++            }
++            if (this.get('saveEl') !== this.get('element')) {
++                var out = this.get('saveEl');
++                if (Lang.isString(out)) {
++                    out = Dom.get(out);
++                }
++                if (out) {
++                    if (out.tagName.toLowerCase() === 'textarea') {
++                        out.value = html;
++                    } else {
++                        out.innerHTML = html;
++                    }
++                }
++            }
++            return html;
++        },
++        /**
++        * @method setEditorHTML
++        * @param {String} incomingHTML The html content to load into the editor
++        * @description Loads HTML into the editors body
++        */
++        setEditorHTML: function(incomingHTML) {
++            var html = this._cleanIncomingHTML(incomingHTML);
++            html = html.replace(/RIGHT_BRACKET/gi, '{');
++            html = html.replace(/LEFT_BRACKET/gi, '}');
++            this._getDoc().body.innerHTML = html;
++            this.nodeChange();
++        },
++        /**
++        * @method getEditorHTML
++        * @description Gets the unprocessed/unfiltered HTML from the editor
++        */
++        getEditorHTML: function() {
++            try {
++                var b = this._getDoc().body;
++                if (b === null) {
++                    return null;
++                }
++                return this._getDoc().body.innerHTML;
++            } catch (e) {
++                return '';
++            }
++        },
++        /**
++        * @method show
++        * @description This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
++        */
++        show: function() {
++            if (this.browser.gecko) {
++                this._setDesignMode('on');
++                this.focus();
++            }
++            if (this.browser.webkit) {
++                var self = this;
++                window.setTimeout(function() {
++                    self._setInitialContent.call(self);
++                }, 10);
++            }
++            //Adding this will close all other Editor window's when showing this one.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            //Put the iframe back in place
++            this.get('iframe').setStyle('position', 'static');
++            this.get('iframe').setStyle('left', '');
++        },
++        /**
++        * @method hide
++        * @description This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
++        */
++        hide: function() {
++            //Adding this will close all other Editor window's.
++            if (this.currentWindow) {
++                this.closeWindow();
++            }
++            if (this._fixNodesTimer) {
++                clearTimeout(this._fixNodesTimer);
++                this._fixNodesTimer = null;
++            }
++            if (this._nodeChangeTimer) {
++                clearTimeout(this._nodeChangeTimer);
++                this._nodeChangeTimer = null;
++            }
++            this._lastNodeChange = 0;
++            //Move the iframe off of the screen, so that in containers with visiblity hidden, IE will not cover other elements.
++            this.get('iframe').setStyle('position', 'absolute');
++            this.get('iframe').setStyle('left', '-9999px');
++        },
++        /**
++        * @method _cleanIncomingHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the input
++        * @return {String} The filtered HTML
++        */
++        _cleanIncomingHTML: function(html) {
++            html = html.replace(/{/gi, 'RIGHT_BRACKET');
++            html = html.replace(/}/gi, 'LEFT_BRACKET');
++
++            html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++            html = html.replace(/<\/strong>/gi, '</b>');   
++
++            //replace embed before em check
++            html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++            html = html.replace(/<\/embed>/gi, '</YUI_EMBED>');
++
++            html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++            html = html.replace(/<\/em>/gi, '</i>');
++            html = html.replace(/_moz_dirty=""/gi, '');
++            
++            //Put embed tags back in..
++            html = html.replace(/<YUI_EMBED([^>]*)>/gi, '<embed$1>');
++            html = html.replace(/<\/YUI_EMBED>/gi, '</embed>');
++            if (this.get('plainText')) {
++                html = html.replace(/\n/g, '<br>').replace(/\r/g, '<br>');
++                html = html.replace(/  /gi, '&nbsp;&nbsp;'); //Replace all double spaces
++                html = html.replace(/\t/gi, '&nbsp;&nbsp;&nbsp;&nbsp;'); //Replace all tabs
++            }
++            //Removing Script Tags from the Editor
++            html = html.replace(/<script([^>]*)>/gi, '<bad>');
++            html = html.replace(/<\/script([^>]*)>/gi, '</bad>');
++            html = html.replace(/&lt;script([^>]*)&gt;/gi, '<bad>');
++            html = html.replace(/&lt;\/script([^>]*)&gt;/gi, '</bad>');
++            //Replace the line feeds
++            html = html.replace(/\r\n/g, '<YUI_LF>').replace(/\n/g, '<YUI_LF>').replace(/\r/g, '<YUI_LF>');
++            
++            //Remove Bad HTML elements (used to be script nodes)
++            html = html.replace(new RegExp('<bad([^>]*)>(.*?)<\/bad>', 'gi'), '');
++            //Replace the lines feeds
++            html = html.replace(/<YUI_LF>/g, '\n');
++            return html;
++        },
++        /**
++        * @method cleanHTML
++        * @param {String} html The unfiltered HTML
++        * @description Process the HTML with a few regexes to clean it up and stabilize the output
++        * @return {String} The filtered HTML
++        */
++        cleanHTML: function(html) {
++            //Start Filtering Output
++            //Begin RegExs..
++            if (!html) { 
++                html = this.getEditorHTML();
++            }
++            var markup = this.get('markup');
++            //Make some backups...
++            html = this.pre_filter_linebreaks(html, markup);
++
++            //Filter MS Word
++            html = this.filter_msword(html);
++
++		    html = html.replace(/<img([^>]*)\/>/gi, '<YUI_IMG$1>');
++		    html = html.replace(/<img([^>]*)>/gi, '<YUI_IMG$1>');
++
++		    html = html.replace(/<input([^>]*)\/>/gi, '<YUI_INPUT$1>');
++		    html = html.replace(/<input([^>]*)>/gi, '<YUI_INPUT$1>');
++
++		    html = html.replace(/<ul([^>]*)>/gi, '<YUI_UL$1>');
++		    html = html.replace(/<\/ul>/gi, '<\/YUI_UL>');
++		    html = html.replace(/<blockquote([^>]*)>/gi, '<YUI_BQ$1>');
++		    html = html.replace(/<\/blockquote>/gi, '<\/YUI_BQ>');
++
++		    html = html.replace(/<embed([^>]*)>/gi, '<YUI_EMBED$1>');
++		    html = html.replace(/<\/embed>/gi, '<\/YUI_EMBED>');
++
++            //Convert b and i tags to strong and em tags
++            if ((markup == 'semantic') || (markup == 'xhtml')) {
++                html = html.replace(/<i(\s+[^>]*)?>/gi, '<em$1>');
++                html = html.replace(/<\/i>/gi, '</em>');
++                html = html.replace(/<b(\s+[^>]*)?>/gi, '<strong$1>');
++                html = html.replace(/<\/b>/gi, '</strong>');
++            }
++
++            html = html.replace(/_moz_dirty=""/gi, '');
++
++            //normalize strikethrough
++            html = html.replace(/<strike/gi, '<span style="text-decoration: line-through;"');
++            html = html.replace(/\/strike>/gi, '/span>');
++            
++            
++            //Case Changing
++            if (this.browser.ie) {
++                html = html.replace(/text-decoration/gi, 'text-decoration');
++                html = html.replace(/font-weight/gi, 'font-weight');
++                html = html.replace(/_width="([^>]*)"/gi, '');
++                html = html.replace(/_height="([^>]*)"/gi, '');
++                //Cleanup Image URL's
++                var url = this._baseHREF.replace(/\//gi, '\\/'),
++                    re = new RegExp('src="' + url, 'gi');
++                html = html.replace(re, 'src="');
++            }
++		    html = html.replace(/<font/gi, '<font');
++		    html = html.replace(/<\/font>/gi, '</font>');
++		    html = html.replace(/<span/gi, '<span');
++		    html = html.replace(/<\/span>/gi, '</span>');
++            if ((markup == 'semantic') || (markup == 'xhtml') || (markup == 'css')) {
++                html = html.replace(new RegExp('<font([^>]*)face="([^>]*)">(.*?)<\/font>', 'gi'), '<span $1 style="font-family: $2;">$3</span>');
++                html = html.replace(/<u/gi, '<span style="text-decoration: underline;"');
++                if (this.browser.webkit) {
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-weight: bold;">([^>]*)<\/span>', 'gi'), '<strong>$1</strong>');
++                    html = html.replace(new RegExp('<span class="Apple-style-span" style="font-style: italic;">([^>]*)<\/span>', 'gi'), '<em>$1</em>');
++                }
++                html = html.replace(/\/u>/gi, '/span>');
++                if (markup == 'css') {
++                    html = html.replace(/<em([^>]*)>/gi, '<i$1>');
++                    html = html.replace(/<\/em>/gi, '</i>');
++                    html = html.replace(/<strong([^>]*)>/gi, '<b$1>');
++                    html = html.replace(/<\/strong>/gi, '</b>');
++                    html = html.replace(/<b/gi, '<span style="font-weight: bold;"');
++                    html = html.replace(/\/b>/gi, '/span>');
++                    html = html.replace(/<i/gi, '<span style="font-style: italic;"');
++                    html = html.replace(/\/i>/gi, '/span>');
++                }
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            } else {
++		        html = html.replace(/<u/gi, '<u');
++		        html = html.replace(/\/u>/gi, '/u>');
++            }
++		    html = html.replace(/<ol([^>]*)>/gi, '<ol$1>');
++		    html = html.replace(/\/ol>/gi, '/ol>');
++		    html = html.replace(/<li/gi, '<li');
++		    html = html.replace(/\/li>/gi, '/li>');
++            html = this.filter_safari(html);
++
++            html = this.filter_internals(html);
++
++            html = this.filter_all_rgb(html);
++
++            //Replace our backups with the real thing
++            html = this.post_filter_linebreaks(html, markup);
++
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1 />');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1 />');
++            } else {
++		        html = html.replace(/<YUI_IMG([^>]*)>/g, '<img $1>');
++		        html = html.replace(/<YUI_INPUT([^>]*)>/g, '<input $1>');
++            }
++		    html = html.replace(/<YUI_UL([^>]*)>/g, '<ul$1>');
++		    html = html.replace(/<\/YUI_UL>/g, '<\/ul>');
++
++            html = this.filter_invalid_lists(html);
++
++		    html = html.replace(/<YUI_BQ([^>]*)>/g, '<blockquote$1>');
++		    html = html.replace(/<\/YUI_BQ>/g, '<\/blockquote>');
++
++		    html = html.replace(/<YUI_EMBED([^>]*)>/g, '<embed$1>');
++		    html = html.replace(/<\/YUI_EMBED>/g, '<\/embed>');
++            
++            //This should fix &amp;'s in URL's
++            html = html.replace(/ &amp; /gi, ' YUI_AMP ');
++            html = html.replace(/ &amp;/gi, ' YUI_AMP_F ');
++            html = html.replace(/&amp; /gi, ' YUI_AMP_R ');
++            html = html.replace(/&amp;/gi, '&');
++            html = html.replace(/ YUI_AMP /gi, ' &amp; ');
++            html = html.replace(/ YUI_AMP_F /gi, ' &amp;');
++            html = html.replace(/ YUI_AMP_R /gi, '&amp; ');
++
++            //Trim the output, removing whitespace from the beginning and end
++            html = YAHOO.lang.trim(html);
++
++            if (this.get('removeLineBreaks')) {
++                html = html.replace(/\n/g, '').replace(/\r/g, '');
++                html = html.replace(/  /gi, ' '); //Replace all double spaces and replace with a single
++            }
++            
++            for (var v in this.invalidHTML) {
++                if (YAHOO.lang.hasOwnProperty(this.invalidHTML, v)) {
++                    if (Lang.isObject(v) && v.keepContents) {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '$1');
++                    } else {
++                        html = html.replace(new RegExp('<' + v + '([^>]*)>(.*?)<\/' + v + '>', 'gi'), '');
++                    }
++                }
++            }
++
++            /* LATER -- Add DOM manipulation
++            console.log(html);
++            var frag = document.createDocumentFragment();
++            frag.innerHTML = html;
++
++            var ps = frag.getElementsByTagName('p'),
++                len = ps.length;
++            for (var i = 0; i < len; i++) {
++                var ps2 = ps[i].getElementsByTagName('p');
++                if (ps2.length) {
++                    
++                }
++                
++            }
++            html = frag.innerHTML;
++            console.log(html);
++            */
++
++            this.fireEvent('cleanHTML', { type: 'cleanHTML', target: this, html: html });
++
++            return html;
++        },
++        /**
++        * @method filter_msword
++        * @param String html The HTML string to filter
++        * @description Filters out msword html attributes and other junk. Activate with filterWord: true in config
++        */
++        filter_msword: function(html) {
++            if (!this.get('filterWord')) {
++                return html;
++            }
++            //Remove the ms o: tags
++            html = html.replace(/<o:p>\s*<\/o:p>/g, '');
++            html = html.replace(/<o:p>[\s\S]*?<\/o:p>/g, '&nbsp;');
++
++            //Remove the ms w: tags
++            html = html.replace( /<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi, '');
++
++            //Remove mso-? styles.
++            html = html.replace( /\s*mso-[^:]+:[^;"]+;?/gi, '');
++
++            //Remove more bogus MS styles.
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*;/gi, '');
++            html = html.replace( /\s*MARGIN: 0cm 0cm 0pt\s*"/gi, "\"");
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*;/gi, '');
++            html = html.replace( /\s*TEXT-INDENT: 0cm\s*"/gi, "\"");
++            html = html.replace( /\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi, "\"");
++            html = html.replace( /\s*FONT-VARIANT: [^\s;]+;?"/gi, "\"" );
++            html = html.replace( /\s*tab-stops:[^;"]*;?/gi, '');
++            html = html.replace( /\s*tab-stops:[^"]*/gi, '');
++
++            //Remove XML declarations
++            html = html.replace(/<\\?\?xml[^>]*>/gi, '');
++
++            //Remove lang
++            html = html.replace(/<(\w[^>]*) lang=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove language tags
++            html = html.replace( /<(\w[^>]*) language=([^ |>]*)([^>]*)/gi, "<$1$3");
++
++            //Remove onmouseover and onmouseout events (from MS Word comments effect)
++            html = html.replace( /<(\w[^>]*) onmouseover="([^\"]*)"([^>]*)/gi, "<$1$3");
++            html = html.replace( /<(\w[^>]*) onmouseout="([^\"]*)"([^>]*)/gi, "<$1$3");
++            
++            return html;
++        },
++        /**
++        * @method filter_invalid_lists
++        * @param String html The HTML string to filter
++        * @description Filters invalid ol and ul list markup, converts this: <li></li><ol>..</ol> to this: <li></li><li><ol>..</ol></li>
++        */
++        filter_invalid_lists: function(html) {
++            html = html.replace(/<\/li>\n/gi, '</li>');
++
++            html = html.replace(/<\/li><ol>/gi, '</li><li><ol>');
++            html = html.replace(/<\/ol>/gi, '</ol></li>');
++            html = html.replace(/<\/ol><\/li>\n/gi, "</ol>");
++
++            html = html.replace(/<\/li><ul>/gi, '</li><li><ul>');
++            html = html.replace(/<\/ul>/gi, '</ul></li>');
++            html = html.replace(/<\/ul><\/li>\n?/gi, "</ul>");
++
++            html = html.replace(/<\/li>/gi, "</li>");
++            html = html.replace(/<\/ol>/gi, "</ol>");
++            html = html.replace(/<ol>/gi, "<ol>");
++            html = html.replace(/<ul>/gi, "<ul>");
++            return html;
++        },
++        /**
++        * @method filter_safari
++        * @param String html The HTML string to filter
++        * @description Filters strings specific to Safari
++        * @return String
++        */
++        filter_safari: function(html) {
++            if (this.browser.webkit) {
++                //<span class="Apple-tab-span" style="white-space:pre">	</span>
++                html = html.replace(/<span class="Apple-tab-span" style="white-space:pre">([^>])<\/span>/gi, '&nbsp;&nbsp;&nbsp;&nbsp;');
++                html = html.replace(/Apple-style-span/gi, '');
++                html = html.replace(/style="line-height: normal;"/gi, '');
++                html = html.replace(/yui-wk-div/gi, '');
++                html = html.replace(/yui-wk-p/gi, '');
++
++
++                //Remove bogus LI's
++                html = html.replace(/<li><\/li>/gi, '');
++                html = html.replace(/<li> <\/li>/gi, '');
++                html = html.replace(/<li>  <\/li>/gi, '');
++                //Remove bogus DIV's - updated from just removing the div's to replacing /div with a break
++                if (this.get('ptags')) {
++		            html = html.replace(/<div([^>]*)>/g, '<p$1>');
++				    html = html.replace(/<\/div>/gi, '</p>');
++                } else {
++                    //html = html.replace(/<div>/gi, '<br>');
++                    html = html.replace(/<div([^>]*)>([ tnr]*)<\/div>/gi, '<br>');
++				    html = html.replace(/<\/div>/gi, '');
++                }
++            }
++            return html;
++        },
++        /**
++        * @method filter_internals
++        * @param String html The HTML string to filter
++        * @description Filters internal RTE strings and bogus attrs we don't want
++        * @return String
++        */
++        filter_internals: function(html) {
++		    html = html.replace(/\r/g, '');
++            //Fix stuff we don't want
++	        html = html.replace(/<\/?(body|head|html)[^>]*>/gi, '');
++            //Fix last BR in LI
++		    html = html.replace(/<YUI_BR><\/li>/gi, '</li>');
++
++		    html = html.replace(/yui-tag-span/gi, '');
++		    html = html.replace(/yui-tag/gi, '');
++		    html = html.replace(/yui-non/gi, '');
++		    html = html.replace(/yui-img/gi, '');
++		    html = html.replace(/ tag="span"/gi, '');
++		    html = html.replace(/ class=""/gi, '');
++		    html = html.replace(/ style=""/gi, '');
++		    html = html.replace(/ class=" "/gi, '');
++		    html = html.replace(/ class="  "/gi, '');
++		    html = html.replace(/ target=""/gi, '');
++		    html = html.replace(/ title=""/gi, '');
++
++            if (this.browser.ie) {
++		        html = html.replace(/ class= /gi, '');
++		        html = html.replace(/ class= >/gi, '');
++            }
++            
++            return html;
++        },
++        /**
++        * @method filter_all_rgb
++        * @param String str The HTML string to filter
++        * @description Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
++        * @return String
++        */
++        filter_all_rgb: function(str) {
++            var exp = new RegExp("rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)", "gi");
++            var arr = str.match(exp);
++            if (Lang.isArray(arr)) {
++                for (var i = 0; i < arr.length; i++) {
++                    var color = this.filter_rgb(arr[i]);
++                    str = str.replace(arr[i].toString(), color);
++                }
++            }
++            
++            return str;
++        },
++        /**
++        * @method filter_rgb
++        * @param String css The CSS string containing rgb(#,#,#);
++        * @description Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
++        * @return String
++        */
++        filter_rgb: function(css) {
++            if (css.toLowerCase().indexOf('rgb') != -1) {
++                var exp = new RegExp("(.*?)rgb\\s*?\\(\\s*?([0-9]+).*?,\\s*?([0-9]+).*?,\\s*?([0-9]+).*?\\)(.*?)", "gi");
++                var rgb = css.replace(exp, "$1,$2,$3,$4,$5").split(',');
++            
++                if (rgb.length == 5) {
++                    var r = parseInt(rgb[1], 10).toString(16);
++                    var g = parseInt(rgb[2], 10).toString(16);
++                    var b = parseInt(rgb[3], 10).toString(16);
++
++                    r = r.length == 1 ? '0' + r : r;
++                    g = g.length == 1 ? '0' + g : g;
++                    b = b.length == 1 ? '0' + b : b;
++
++                    css = "#" + r + g + b;
++                }
++            }
++            return css;
++        },
++        /**
++        * @method pre_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        pre_filter_linebreaks: function(html, markup) {
++            if (this.browser.webkit) {
++		        html = html.replace(/<br class="khtml-block-placeholder">/gi, '<YUI_BR>');
++		        html = html.replace(/<br class="webkit-block-placeholder">/gi, '<YUI_BR>');
++            }
++		    html = html.replace(/<br>/gi, '<YUI_BR>');
++		    html = html.replace(/<br (.*?)>/gi, '<YUI_BR>');
++		    html = html.replace(/<br\/>/gi, '<YUI_BR>');
++		    html = html.replace(/<br \/>/gi, '<YUI_BR>');
++		    html = html.replace(/<div><YUI_BR><\/div>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>(&nbsp;|&#160;)<\/p>/g, '<YUI_BR>');            
++		    html = html.replace(/<p><br>&nbsp;<\/p>/gi, '<YUI_BR>');
++		    html = html.replace(/<p>&nbsp;<\/p>/gi, '<YUI_BR>');
++            //Fix last BR
++	        html = html.replace(/<YUI_BR>$/, '');
++            //Fix last BR in P
++	        html = html.replace(/<YUI_BR><\/p>/g, '</p>');
++            if (this.browser.ie) {
++	            html = html.replace(/&nbsp;&nbsp;&nbsp;&nbsp;/g, '\t');
++            }
++            return html;
++        },
++        /**
++        * @method post_filter_linebreaks
++        * @param String html The HTML to filter
++        * @param String markup The markup type to filter to
++        * @description HTML Pre Filter
++        * @return String
++        */
++        post_filter_linebreaks: function(html, markup) {
++            if (markup == 'xhtml') {
++		        html = html.replace(/<YUI_BR>/g, '<br />');
++            } else {
++		        html = html.replace(/<YUI_BR>/g, '<br>');
++            }
++            return html;
++        },
++        /**
++        * @method clearEditorDoc
++        * @description Clear the doc of the Editor
++        */
++        clearEditorDoc: function() {
++            this._getDoc().body.innerHTML = '&nbsp;';
++        },
++        /**
++        * @method openWindow
++        * @description Override Method for Advanced Editor
++        */
++        openWindow: function(win) {
++        },
++        /**
++        * @method moveWindow
++        * @description Override Method for Advanced Editor
++        */
++        moveWindow: function() {
++        },
++        /**
++        * @private
++        * @method _closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        _closeWindow: function() {
++        },
++        /**
++        * @method closeWindow
++        * @description Override Method for Advanced Editor
++        */
++        closeWindow: function() {
++            //this.unsubscribeAll('afterExecCommand');
++            this.toolbar.resetAllButtons();
++            this.focus();        
++        },
++        /**
++        * @method destroy
++        * @description Destroys the editor, all of it's elements and objects.
++        * @return {Boolean}
++        */
++        destroy: function() {
++            if (this._nodeChangeDelayTimer) {
++                clearTimeout(this._nodeChangeDelayTimer);
++            }
++            this.hide();
++        
++            if (this.resize) {
++                this.resize.destroy();
++            }
++            if (this.dd) {
++                this.dd.unreg();
++            }
++            if (this.get('panel')) {
++                this.get('panel').destroy();
++            }
++            this.saveHTML();
++            this.toolbar.destroy();
++            this.setStyle('visibility', 'visible');
++            this.setStyle('position', 'static');
++            this.setStyle('top', '');
++            this.setStyle('left', '');
++            var textArea = this.get('element');
++            this.get('element_cont').get('parentNode').replaceChild(textArea, this.get('element_cont').get('element'));
++            this.get('element_cont').get('element').innerHTML = '';
++            this.set('handleSubmit', false); //Remove the submit handler
++            return true;
++        },        
++        /**
++        * @method toString
++        * @description Returns a string representing the editor.
++        * @return {String}
++        */
++        toString: function() {
++            var str = 'SimpleEditor';
++            if (this.get && this.get('element_cont')) {
++                str = 'SimpleEditor (#' + this.get('element_cont').get('id') + ')' + ((this.get('disabled') ? ' Disabled' : ''));
++            }
++            return str;
++        }
++    });
++
++/**
++* @event toolbarLoaded
++* @description Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event cleanHTML
++* @description Event is fired after the cleanHTML method is called.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterRender
++* @description Event is fired after the render process finishes. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorContentLoaded
++* @description Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeNodeChange
++* @description Event fires at the beginning of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterNodeChange
++* @description Event fires at the end of the nodeChange process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeExecCommand
++* @description Event fires at the beginning of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event afterExecCommand
++* @description Event fires at the end of the execCommand process. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorClick
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Passed through HTML Event. See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorMouseDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorDoubleClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorClick
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyUp
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyPress
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeEditorKeyDown
++* @param {Event} ev The DOM Event that occured
++* @description Fires before editor event, returning false will stop the internal processing.
++* @type YAHOO.util.CustomEvent
++*/
++
++/**
++* @event editorWindowFocus
++* @description Fires when the iframe is focused. Note, this is window focus event, not an Editor focus event.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event editorWindowBlur
++* @description Fires when the iframe is blurred. Note, this is window blur event, not an Editor blur event.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++ * @description Singleton object used to track the open window objects and panels across the various open editors
++ * @class EditorInfo
++ * @static
++*/
++YAHOO.widget.EditorInfo = {
++    /**
++    * @private
++    * @property _instances
++    * @description A reference to all editors on the page.
++    * @type Object
++    */
++    _instances: {},
++    /**
++    * @private
++    * @property blankImage
++    * @description A reference to the blankImage url
++    * @type String 
++    */
++    blankImage: '',
++    /**
++    * @private
++    * @property window
++    * @description A reference to the currently open window object in any editor on the page.
++    * @type Object <a href="YAHOO.widget.EditorWindow.html">YAHOO.widget.EditorWindow</a>
++    */
++    window: {},
++    /**
++    * @private
++    * @property panel
++    * @description A reference to the currently open panel in any editor on the page.
++    * @type Object <a href="YAHOO.widget.Overlay.html">YAHOO.widget.Overlay</a>
++    */
++    panel: null,
++    /**
++    * @method getEditorById
++    * @description Returns a reference to the Editor object associated with the given textarea
++    * @param {String/HTMLElement} id The id or reference of the textarea to return the Editor instance of
++    * @return Object <a href="YAHOO.widget.Editor.html">YAHOO.widget.Editor</a>
++    */
++    getEditorById: function(id) {
++        if (!YAHOO.lang.isString(id)) {
++            //Not a string, assume a node Reference
++            id = id.id;
++        }
++        if (this._instances[id]) {
++            return this._instances[id];
++        }
++        return false;
++    },
++    /**
++    * @method saveAll
++    * @description Saves all Editor instances on the page. If a form reference is passed, only Editor's bound to this form will be saved.
++    * @param {HTMLElement} form The form to check if this Editor instance belongs to
++    */
++    saveAll: function(form) {
++        var i, e, items = YAHOO.widget.EditorInfo._instances;
++        if (form) {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    e = items[i];
++                    if (e.get('element').form && (e.get('element').form == form)) {
++                        e.saveHTML();
++                    }
++                }
++            }
++        } else {
++            for (i in items) {
++                if (Lang.hasOwnProperty(items, i)) {
++                    items[i].saveHTML();
++                }
++            }
++        }
++    },
++    /**
++    * @method toString
++    * @description Returns a string representing the EditorInfo.
++    * @return {String}
++    */
++    toString: function() {
++        var len = 0;
++        for (var i in this._instances) {
++            if (Lang.hasOwnProperty(this._instances, i)) {
++                len++;
++            }
++        }
++        return 'Editor Info (' + len + ' registered intance' + ((len > 1) ? 's' : '') + ')';
++    }
++};
++
++
++
++    
++})();
++YAHOO.register("simpleeditor", YAHOO.widget.SimpleEditor, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/element-delegate/element-delegate-debug.js b/pylons_app/public/js/yui/element-delegate/element-delegate-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/element-delegate/element-delegate-debug.js
+@@ -0,0 +1,141 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Augments the Element Utility with a <code>delegate</code> method that 
++ * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
++ * selectors as the filtering criteria for delegated event listeners requires 
++ * inclusion of the Selector Utility.)
++ *
++ * @module element-delegate
++ * @title Element Event Delegation Module
++ * @namespace YAHOO.util
++ * @requires element, event-delegate
++ */
++
++(function () {
++
++	var Event = YAHOO.util.Event,
++		delegates = [],
++		specialTypes = {
++			mouseenter: true,
++			mouseleave: true
++		};
++
++	YAHOO.lang.augmentObject(YAHOO.util.Element.prototype, {
++
++	    /**
++         * Appends a delegated event listener.  Delegated event listeners 
++		 * receive two arguments by default: the DOM event and the element  
++		 * specified by the filtering function or CSS selector.
++		 * (Note: Using the delegate method requires the element-delegate 
++		 * module.  Using CSS selectors as the filtering criteria for delegated 
++		 * event listeners requires inclusion of the Selector Utility.)
++	     * @method delegate
++	     * @param {String} type The name of the event to listen for
++	     * @param {Function} fn The handler to call when the event fires
++		 * @param {Function|string} filter Function or CSS selector used to 
++		 * determine for what element(s) the event listener should be called. 
++		 * When a function is specified, the function should return an 
++		 * HTML element.  Using a CSS Selector requires the inclusion of the 
++		 * CSS Selector Utility.
++	     * @param {Any} obj A variable to pass to the handler
++	     * @param {Object} scope The object to use for the scope of the handler 
++         * @return {boolean} Returns true if the delegated event listener 
++		 * was added successfully
++         * @for Element
++	     */
++		delegate: function (type, fn, filter, obj, overrideContext) {
++
++			if (YAHOO.lang.isString(filter) && !YAHOO.util.Selector) {
++				YAHOO.log("Using a CSS selector to define the filtering criteria for a delegated listener requires the Selector Utility.", "error", "Element");
++		        return false;
++			}
++			
++			if (!Event._createDelegate) {
++		        YAHOO.log("Using delegate functionality requires the event-delegate module.", "error", "Element");
++		        return false;
++			}			
++
++			var sType = Event._getType(type),
++				el = this.get("element"),
++				fnDelegate,
++				fnMouseDelegate,
++
++				fnWrapper = function (e) {
++
++					return fnDelegate.call(el, e);
++
++				};
++
++			if (specialTypes[type]) {
++
++				if (!Event._createMouseDelegate) {
++			        YAHOO.log("Delegating a " + type + " event requires the event-mouseleave module.", "error", "Element");
++			        return false;				
++				}
++
++				fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
++
++				fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
++
++					return fnMouseDelegate.call(matchedEl, event, container);
++
++				}, filter, obj, overrideContext);
++
++			}
++			else {
++				fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
++			}
++
++
++			delegates.push([el, sType, fn, fnWrapper]);
++
++			return this.on(sType, fnWrapper);
++
++		},
++
++
++	    /**
++	     * Remove a delegated event listener
++	     * @method removeDelegate
++	     * @param {String} type The name of the event to listen for
++	     * @param {Function} fn The function call when the event fires
++         * @return {boolean} Returns true if the unbind was successful, false 
++         *  otherwise.
++         * @for Element
++	     */
++		removeDelegate: function (type, fn) {
++
++			var sType = Event._getType(type),
++				index = Event._getCacheIndex(delegates, this.get("element"), sType, fn),
++				returnVal,
++				cacheItem;
++
++		    if (index >= 0) {
++		        cacheItem = delegates[index];
++		    }
++
++		    if (cacheItem) {
++
++		        returnVal = this.removeListener(cacheItem[1], cacheItem[3]);
++
++				if (returnVal) {
++		            delete delegates[index][2];
++		            delete delegates[index][3];
++		            delegates.splice(index, 1);
++				}
++
++			}
++
++			return returnVal;
++
++		}
++		
++	});
++
++}());
++YAHOO.register("element-delegate", YAHOO.util.Element, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/element-delegate/element-delegate-min.js b/pylons_app/public/js/yui/element-delegate/element-delegate-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/element-delegate/element-delegate-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var A=YAHOO.util.Event,B=[],C={mouseenter:true,mouseleave:true};YAHOO.lang.augmentObject(YAHOO.util.Element.prototype,{delegate:function(J,L,F,H,I){if(YAHOO.lang.isString(F)&&!YAHOO.util.Selector){return false;}if(!A._createDelegate){return false;}var E=A._getType(J),G=this.get("element"),M,K,D=function(N){return M.call(G,N);};if(C[J]){if(!A._createMouseDelegate){return false;}K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},F,H,I);}else{M=A._createDelegate(L,F,H,I);}B.push([G,E,L,D]);return this.on(E,D);},removeDelegate:function(H,G){var I=A._getType(H),E=A._getCacheIndex(B,this.get("element"),I,G),F,D;if(E>=0){D=B[E];}if(D){F=this.removeListener(D[1],D[3]);if(F){delete B[E][2];delete B[E][3];B.splice(E,1);}}return F;}});}());YAHOO.register("element-delegate",YAHOO.util.Element,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/element-delegate/element-delegate.js b/pylons_app/public/js/yui/element-delegate/element-delegate.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/element-delegate/element-delegate.js
+@@ -0,0 +1,138 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Augments the Element Utility with a <code>delegate</code> method that 
++ * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
++ * selectors as the filtering criteria for delegated event listeners requires 
++ * inclusion of the Selector Utility.)
++ *
++ * @module element-delegate
++ * @title Element Event Delegation Module
++ * @namespace YAHOO.util
++ * @requires element, event-delegate
++ */
++
++(function () {
++
++	var Event = YAHOO.util.Event,
++		delegates = [],
++		specialTypes = {
++			mouseenter: true,
++			mouseleave: true
++		};
++
++	YAHOO.lang.augmentObject(YAHOO.util.Element.prototype, {
++
++	    /**
++         * Appends a delegated event listener.  Delegated event listeners 
++		 * receive two arguments by default: the DOM event and the element  
++		 * specified by the filtering function or CSS selector.
++		 * (Note: Using the delegate method requires the element-delegate 
++		 * module.  Using CSS selectors as the filtering criteria for delegated 
++		 * event listeners requires inclusion of the Selector Utility.)
++	     * @method delegate
++	     * @param {String} type The name of the event to listen for
++	     * @param {Function} fn The handler to call when the event fires
++		 * @param {Function|string} filter Function or CSS selector used to 
++		 * determine for what element(s) the event listener should be called. 
++		 * When a function is specified, the function should return an 
++		 * HTML element.  Using a CSS Selector requires the inclusion of the 
++		 * CSS Selector Utility.
++	     * @param {Any} obj A variable to pass to the handler
++	     * @param {Object} scope The object to use for the scope of the handler 
++         * @return {boolean} Returns true if the delegated event listener 
++		 * was added successfully
++         * @for Element
++	     */
++		delegate: function (type, fn, filter, obj, overrideContext) {
++
++			if (YAHOO.lang.isString(filter) && !YAHOO.util.Selector) {
++		        return false;
++			}
++			
++			if (!Event._createDelegate) {
++		        return false;
++			}			
++
++			var sType = Event._getType(type),
++				el = this.get("element"),
++				fnDelegate,
++				fnMouseDelegate,
++
++				fnWrapper = function (e) {
++
++					return fnDelegate.call(el, e);
++
++				};
++
++			if (specialTypes[type]) {
++
++				if (!Event._createMouseDelegate) {
++			        return false;				
++				}
++
++				fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
++
++				fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
++
++					return fnMouseDelegate.call(matchedEl, event, container);
++
++				}, filter, obj, overrideContext);
++
++			}
++			else {
++				fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
++			}
++
++
++			delegates.push([el, sType, fn, fnWrapper]);
++
++			return this.on(sType, fnWrapper);
++
++		},
++
++
++	    /**
++	     * Remove a delegated event listener
++	     * @method removeDelegate
++	     * @param {String} type The name of the event to listen for
++	     * @param {Function} fn The function call when the event fires
++         * @return {boolean} Returns true if the unbind was successful, false 
++         *  otherwise.
++         * @for Element
++	     */
++		removeDelegate: function (type, fn) {
++
++			var sType = Event._getType(type),
++				index = Event._getCacheIndex(delegates, this.get("element"), sType, fn),
++				returnVal,
++				cacheItem;
++
++		    if (index >= 0) {
++		        cacheItem = delegates[index];
++		    }
++
++		    if (cacheItem) {
++
++		        returnVal = this.removeListener(cacheItem[1], cacheItem[3]);
++
++				if (returnVal) {
++		            delete delegates[index][2];
++		            delete delegates[index][3];
++		            delegates.splice(index, 1);
++				}
++
++			}
++
++			return returnVal;
++
++		}
++		
++	});
++
++}());
++YAHOO.register("element-delegate", YAHOO.util.Element, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/element/element-debug.js b/pylons_app/public/js/yui/element/element-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/element/element-debug.js
+@@ -0,0 +1,1106 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides 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,
++    
++    /**
++     * A function to call when setting the attribute's value.
++     * The method receives the new value as the first arg and the attribute name as the 2nd
++     * @property method
++     * @type Function
++     */
++    method: null,
++    
++    /**
++     * The function to use when setting the attribute's value.
++     * The setter receives the new value as the first arg and the attribute name as the 2nd
++     * The return value of the setter replaces the value passed to set(). 
++     * @property setter
++     * @type Function
++     */
++    setter: null,
++    
++    /**
++     * The function to use when getting the attribute's value.
++     * The getter receives the new value as the first arg and the attribute name as the 2nd
++     * The return value of the getter will be used as the return from get().
++     * @property getter
++     * @type Function
++     */
++    getter: 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() {
++        var val = this.value;
++
++        if (this.getter) {
++            val = this.getter.call(this.owner, this.name, val);
++        }
++
++        return val;
++    },
++    
++    /**
++     * 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,
++            owner = this.owner,
++            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.setter) {
++            value = this.setter.call(owner, value, this.name);
++            if (value === undefined) {
++                YAHOO.log('setter for ' + this.name + ' returned undefined', 'warn', 'Attribute');
++            }
++        }
++        
++        if (this.method) {
++            this.method.call(owner, value, this.name);
++        }
++        
++        this.value = value; // TODO: set before calling setter/method?
++        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 || {};
++
++        if (init) {
++            this._written = false; // reset writeOnce
++        }
++
++        this._initialConfig = this._initialConfig || {};
++        
++        for (var key in map) {
++            if ( map.hasOwnProperty(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, true);
++    },
++    
++    /**
++     * 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.
++         * @return {Any} The current value of the attribute.
++         */
++        get: function(key){
++            this._configs = this._configs || {};
++            var config = this._configs[key];
++            
++            if (!config || !this._configs.hasOwnProperty(key)) {
++                YAHOO.log(key + ' not found', 'error', 'AttributeProvider');
++                return null;
++            }
++            
++            return config.getValue();
++        },
++        
++        /**
++         * 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 = [], key;
++
++            for (key in this._configs) {
++                if ( Lang.hasOwnProperty(this._configs, key) && 
++                        !Lang.isUndefined(this._configs[key]) ) {
++                    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 || {};
++            var configs = this._configs;
++            
++            key = ( ( Lang.isString(key) ) ? [key] : key ) || 
++                    this.getAttributeKeys();
++            
++            for (var i = 0, len = key.length; i < len; ++i) { 
++                if (configs.hasOwnProperty(key[i])) {
++                    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,
++	specialTypes = {
++		mouseenter: true,
++		mouseleave: true
++	};
++
++/**
++ * 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
++ */
++
++/**
++ * 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
++ */
++var Element = function(el, map) {
++    this.init.apply(this, arguments);
++};
++
++Element.DOM_EVENTS = {
++    'click': true,
++    'dblclick': true,
++    'keydown': true,
++    'keypress': true,
++    'keyup': true,
++    'mousedown': true,
++    'mousemove': true,
++    'mouseout': true, 
++    'mouseover': true, 
++    'mouseup': true,
++    'mouseenter': true, 
++    'mouseleave': true,
++    'focus': true,
++    'blur': true,
++    'submit': true,
++    'change': true
++};
++
++Element.prototype = {
++    /**
++     * Dom events supported by the Element instance.
++     * @property DOM_EVENTS
++     * @type Object
++     */
++    DOM_EVENTS: null,
++
++    DEFAULT_HTML_SETTER: function(value, key) {
++        var el = this.get('element');
++        
++        if (el) {
++            el[key] = value;
++        }
++
++		return value;
++
++    },
++
++    DEFAULT_HTML_GETTER: function(key) {
++        var el = this.get('element'),
++            val;
++
++        if (el) {
++            val = el[key];
++        }
++
++        return val;
++    },
++
++    /**
++     * Wrapper for HTMLElement method.
++     * @method appendChild
++     * @param {YAHOO.util.Element || HTMLElement} child The element to append. 
++     * @return {HTMLElement} The appended DOM element. 
++     */
++    appendChild: function(child) {
++        child = child.get ? child.get('element') : child;
++        return this.get('element').appendChild(child);
++    },
++    
++    /**
++     * Wrapper for HTMLElement method.
++     * @method getElementsByTagName
++     * @param {String} tag The tagName to collect
++     * @return {HTMLCollection} A collection of DOM elements. 
++     */
++    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.
++     * @return {HTMLElement} The inserted DOM element. 
++     */
++    insertBefore: function(element, before) {
++        element = element.get ? element.get('element') : element;
++        before = (before && before.get) ? before.get('element') : before;
++        
++        return this.get('element').insertBefore(element, before);
++    },
++    
++    /**
++     * Wrapper for HTMLElement method.
++     * @method removeChild
++     * @param {HTMLElement} child The HTMLElement to remove
++     * @return {HTMLElement} The removed DOM element. 
++     */
++    removeChild: function(child) {
++        child = child.get ? child.get('element') : child;
++        return this.get('element').removeChild(child);
++    },
++    
++    /**
++     * Wrapper for HTMLElement method.
++     * @method replaceChild
++     * @param {HTMLElement} newNode The HTMLElement to insert
++     * @param {HTMLElement} oldNode The HTMLElement to replace
++     * @return {HTMLElement} The replaced DOM element. 
++     */
++    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) {
++
++        scope = scope || this;
++
++        var Event = YAHOO.util.Event,
++			el = this.get('element') || this.get('id'),
++        	self = this;
++
++
++		if (specialTypes[type] && !Event._createMouseDelegate) {
++	        YAHOO.log("Using a " + type + " event requires the event-mouseenter module", "error", "Event");
++	        return false;	
++		}
++
++
++        if (!this._events[type]) { // create on the fly
++
++            if (el && this.DOM_EVENTS[type]) {
++				Event.on(el, type, function(e, matchedEl) {
++
++					// Supplement IE with target, currentTarget relatedTarget
++
++	                if (e.srcElement && !e.target) { 
++	                    e.target = e.srcElement;
++	                }
++
++					if ((e.toElement && !e.relatedTarget) || (e.fromElement && !e.relatedTarget)) {
++						e.relatedTarget = Event.getRelatedTarget(e);
++					}
++					
++					if (!e.currentTarget) {
++						e.currentTarget = el;
++					}
++
++					//	Note: matchedEl el is passed back for delegated listeners
++		            self.fireEvent(type, e, matchedEl);
++
++		        }, obj, scope);
++            }
++            this.createEvent(type, {scope: this});
++        }
++        
++        return 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() {
++        return 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() {
++        return 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) {
++        return 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) {
++        return Dom.setStyle(this.get('element'),  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
++     * @return {HTMLElement} The appended DOM element. 
++     */
++    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
++        });
++
++        return element;
++    },
++    
++    get: function(key) {
++        var configs = this._configs || {},
++            el = configs.element; // avoid loop due to 'element'
++
++        if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) {
++            this._setHTMLAttrConfig(key);
++        }
++
++        return AttributeProvider.prototype.get.call(this, key);
++    },
++
++    setAttributes: function(map, silent) {
++        // set based on configOrder
++        var done = {},
++            configOrder = this._configOrder;
++
++        // set based on configOrder
++        for (var i = 0, len = configOrder.length; i < len; ++i) {
++            if (map[configOrder[i]] !== undefined) {
++                done[configOrder[i]] = true;
++                this.set(configOrder[i], map[configOrder[i]], silent);
++            }
++        }
++
++        // unconfigured (e.g. Dom attributes)
++        for (var att in map) {
++            if (map.hasOwnProperty(att) && !done[att]) {
++                this.set(att, map[att], 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]) ) {
++            this._setHTMLAttrConfig(key);
++        }
++
++        return AttributeProvider.prototype.set.apply(this, arguments);
++    },
++    
++    setAttributeConfig: function(key, map, init) {
++        this._configOrder.push(key);
++        AttributeProvider.prototype.setAttributeConfig.apply(this, arguments);
++    },
++
++    createEvent: function(type, config) {
++        this._events[type] = true;
++        return AttributeProvider.prototype.createEvent.apply(this, arguments);
++    },
++    
++    init: function(el, attr) {
++        this._initElement(el, attr); 
++    },
++
++    destroy: function() {
++        var el = this.get('element');
++        YAHOO.util.Event.purgeElement(el, true); // purge DOM listeners recursively
++        this.unsubscribeAll(); // unsubscribe all custom events
++
++        if (el && el.parentNode) {
++            el.parentNode.removeChild(el); // pull from the DOM
++        }
++
++        // revert initial configs
++        this._queue = [];
++        this._events = {};
++        this._configs = {};
++        this._configOrder = []; 
++    },
++
++    _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;
++
++        var isReady = false;  // to determine when to init HTMLElement and content
++
++        var DOM_EVENTS = Element.DOM_EVENTS;
++        this.DOM_EVENTS = this.DOM_EVENTS || {};
++
++        for (var event in DOM_EVENTS) {
++            if (DOM_EVENTS.hasOwnProperty(event)) {
++                this.DOM_EVENTS[event] = DOM_EVENTS[event];
++            }
++        }
++
++        if (typeof attr.element === 'string') { // register ID for get() access
++            this._setHTMLAttrConfig('id', { value: attr.element });
++        }
++
++        if (Dom.get(attr.element)) {
++            isReady = true;
++            this._initHTMLElement(attr);
++            this._initContent(attr);
++        }
++
++        YAHOO.util.Event.onAvailable(attr.element, function() {
++            if (!isReady) { // otherwise already done
++                this._initHTMLElement(attr);
++            }
++
++            this.fireEvent('available', { type: 'available', target: Dom.get(attr.element) });  
++        }, this, true);
++        
++        YAHOO.util.Event.onContentReady(attr.element, function() {
++            if (!isReady) { // otherwise already done
++                this._initContent(attr);
++            }
++            this.fireEvent('contentReady', { type: 'contentReady', target: Dom.get(attr.element) });  
++        }, this, true);
++    },
++
++    _initHTMLElement: function(attr) {
++        /**
++         * The HTMLElement the Element instance refers to.
++         * @attribute element
++         * @type HTMLElement
++         */
++        this.setAttributeConfig('element', {
++            value: Dom.get(attr.element),
++            readOnly: true
++         });
++    },
++
++    _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 _setHTMLAttrConfig
++     * @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
++     */
++    _setHTMLAttrConfig: function(key, map) {
++        var el = this.get('element');
++        map = map || {};
++        map.name = key;
++
++        map.setter = map.setter || this.DEFAULT_HTML_SETTER;
++        map.getter = map.getter || this.DEFAULT_HTML_GETTER;
++
++        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(Element, AttributeProvider);
++YAHOO.util.Element = Element;
++})();
++
++YAHOO.register("element", YAHOO.util.Element, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/element/element-min.js b/pylons_app/public/js/yui/element/element-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/element/element-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.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,setter:null,getter:null,validator:null,getValue:function(){var A=this.value;if(this.getter){A=this.getter.call(this.owner,this.name,A);}return A;},setValue:function(F,B){var E,A=this.owner,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.setter){F=this.setter.call(A,F,this.name);if(F===undefined){}}if(this.method){this.method.call(A,F,this.name);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};if(C){this._written=false;}this._initialConfig=this._initialConfig||{};for(var A in B){if(B.hasOwnProperty(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,true);},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||!this._configs.hasOwnProperty(C)){return null;}return B.getValue();},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 C=[],B;for(B in this._configs){if(A.hasOwnProperty(this._configs,B)&&!A.isUndefined(this._configs[B])){C[C.length]=B;}}return C;},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||{};var F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){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 B=YAHOO.util.Dom,D=YAHOO.util.AttributeProvider,C={mouseenter:true,mouseleave:true};var A=function(E,F){this.init.apply(this,arguments);};A.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"mouseenter":true,"mouseleave":true,"focus":true,"blur":true,"submit":true,"change":true};A.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(G,E){var F=this.get("element");if(F){F[E]=G;}return G;},DEFAULT_HTML_GETTER:function(E){var F=this.get("element"),G;if(F){G=F[E];}return G;},appendChild:function(E){E=E.get?E.get("element"):E;return this.get("element").appendChild(E);},getElementsByTagName:function(E){return this.get("element").getElementsByTagName(E);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(E,F){E=E.get?E.get("element"):E;F=(F&&F.get)?F.get("element"):F;return this.get("element").insertBefore(E,F);},removeChild:function(E){E=E.get?E.get("element"):E;return this.get("element").removeChild(E);},replaceChild:function(E,F){E=E.get?E.get("element"):E;F=F.get?F.get("element"):F;return this.get("element").replaceChild(E,F);},initAttributes:function(E){},addListener:function(J,I,K,H){H=H||this;var E=YAHOO.util.Event,G=this.get("element")||this.get("id"),F=this;if(C[J]&&!E._createMouseDelegate){return false;}if(!this._events[J]){if(G&&this.DOM_EVENTS[J]){E.on(G,J,function(M,L){if(M.srcElement&&!M.target){M.target=M.srcElement;}if((M.toElement&&!M.relatedTarget)||(M.fromElement&&!M.relatedTarget)){M.relatedTarget=E.getRelatedTarget(M);}if(!M.currentTarget){M.currentTarget=G;}F.fireEvent(J,M,L);},K,H);}this.createEvent(J,{scope:this});}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return this.addListener.apply(this,arguments);},subscribe:function(){return this.addListener.apply(this,arguments);},removeListener:function(F,E){return this.unsubscribe.apply(this,arguments);},addClass:function(E){B.addClass(this.get("element"),E);},getElementsByClassName:function(F,E){return B.getElementsByClassName(F,E,this.get("element"));},hasClass:function(E){return B.hasClass(this.get("element"),E);},removeClass:function(E){return B.removeClass(this.get("element"),E);},replaceClass:function(F,E){return B.replaceClass(this.get("element"),F,E);},setStyle:function(F,E){return B.setStyle(this.get("element"),F,E);
++},getStyle:function(E){return B.getStyle(this.get("element"),E);},fireQueue:function(){var F=this._queue;for(var G=0,E=F.length;G<E;++G){this[F[G][0]].apply(this,F[G][1]);}},appendTo:function(F,G){F=(F.get)?F.get("element"):B.get(F);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:F});G=(G&&G.get)?G.get("element"):B.get(G);var E=this.get("element");if(!E){return false;}if(!F){return false;}if(E.parent!=F){if(G){F.insertBefore(E,G);}else{F.appendChild(E);}}this.fireEvent("appendTo",{type:"appendTo",target:F});return E;},get:function(E){var G=this._configs||{},F=G.element;if(F&&!G[E]&&!YAHOO.lang.isUndefined(F.value[E])){this._setHTMLAttrConfig(E);}return D.prototype.get.call(this,E);},setAttributes:function(K,H){var F={},I=this._configOrder;for(var J=0,E=I.length;J<E;++J){if(K[I[J]]!==undefined){F[I[J]]=true;this.set(I[J],K[I[J]],H);}}for(var G in K){if(K.hasOwnProperty(G)&&!F[G]){this.set(G,K[G],H);}}},set:function(F,H,E){var G=this.get("element");if(!G){this._queue[this._queue.length]=["set",arguments];if(this._configs[F]){this._configs[F].value=H;}return;}if(!this._configs[F]&&!YAHOO.lang.isUndefined(G[F])){this._setHTMLAttrConfig(F);}return D.prototype.set.apply(this,arguments);},setAttributeConfig:function(E,F,G){this._configOrder.push(E);D.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(F,E){this._events[F]=true;return D.prototype.createEvent.apply(this,arguments);},init:function(F,E){this._initElement(F,E);},destroy:function(){var E=this.get("element");YAHOO.util.Event.purgeElement(E,true);this.unsubscribeAll();if(E&&E.parentNode){E.parentNode.removeChild(E);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(G,F){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];F=F||{};F.element=F.element||G||null;var I=false;var E=A.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var H in E){if(E.hasOwnProperty(H)){this.DOM_EVENTS[H]=E[H];}}if(typeof F.element==="string"){this._setHTMLAttrConfig("id",{value:F.element});}if(B.get(F.element)){I=true;this._initHTMLElement(F);this._initContent(F);}YAHOO.util.Event.onAvailable(F.element,function(){if(!I){this._initHTMLElement(F);}this.fireEvent("available",{type:"available",target:B.get(F.element)});},this,true);YAHOO.util.Event.onContentReady(F.element,function(){if(!I){this._initContent(F);}this.fireEvent("contentReady",{type:"contentReady",target:B.get(F.element)});},this,true);},_initHTMLElement:function(E){this.setAttributeConfig("element",{value:B.get(E.element),readOnly:true});},_initContent:function(E){this.initAttributes(E);this.setAttributes(E,true);this.fireQueue();},_setHTMLAttrConfig:function(E,G){var F=this.get("element");G=G||{};G.name=E;G.setter=G.setter||this.DEFAULT_HTML_SETTER;G.getter=G.getter||this.DEFAULT_HTML_GETTER;G.value=G.value||F[E];this._configs[E]=new YAHOO.util.Attribute(G,this);}};YAHOO.augment(A,D);YAHOO.util.Element=A;})();YAHOO.register("element",YAHOO.util.Element,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/element/element.js b/pylons_app/public/js/yui/element/element.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/element/element.js
+@@ -0,0 +1,1090 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides 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,
++    
++    /**
++     * A function to call when setting the attribute's value.
++     * The method receives the new value as the first arg and the attribute name as the 2nd
++     * @property method
++     * @type Function
++     */
++    method: null,
++    
++    /**
++     * The function to use when setting the attribute's value.
++     * The setter receives the new value as the first arg and the attribute name as the 2nd
++     * The return value of the setter replaces the value passed to set(). 
++     * @property setter
++     * @type Function
++     */
++    setter: null,
++    
++    /**
++     * The function to use when getting the attribute's value.
++     * The getter receives the new value as the first arg and the attribute name as the 2nd
++     * The return value of the getter will be used as the return from get().
++     * @property getter
++     * @type Function
++     */
++    getter: 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() {
++        var val = this.value;
++
++        if (this.getter) {
++            val = this.getter.call(this.owner, this.name, val);
++        }
++
++        return val;
++    },
++    
++    /**
++     * 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,
++            owner = this.owner,
++            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.setter) {
++            value = this.setter.call(owner, value, this.name);
++            if (value === undefined) {
++            }
++        }
++        
++        if (this.method) {
++            this.method.call(owner, value, this.name);
++        }
++        
++        this.value = value; // TODO: set before calling setter/method?
++        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 || {};
++
++        if (init) {
++            this._written = false; // reset writeOnce
++        }
++
++        this._initialConfig = this._initialConfig || {};
++        
++        for (var key in map) {
++            if ( map.hasOwnProperty(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, true);
++    },
++    
++    /**
++     * 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.
++         * @return {Any} The current value of the attribute.
++         */
++        get: function(key){
++            this._configs = this._configs || {};
++            var config = this._configs[key];
++            
++            if (!config || !this._configs.hasOwnProperty(key)) {
++                return null;
++            }
++            
++            return config.getValue();
++        },
++        
++        /**
++         * 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 = [], key;
++
++            for (key in this._configs) {
++                if ( Lang.hasOwnProperty(this._configs, key) && 
++                        !Lang.isUndefined(this._configs[key]) ) {
++                    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 || {};
++            var configs = this._configs;
++            
++            key = ( ( Lang.isString(key) ) ? [key] : key ) || 
++                    this.getAttributeKeys();
++            
++            for (var i = 0, len = key.length; i < len; ++i) { 
++                if (configs.hasOwnProperty(key[i])) {
++                    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,
++	specialTypes = {
++		mouseenter: true,
++		mouseleave: true
++	};
++
++/**
++ * 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
++ */
++
++/**
++ * 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
++ */
++var Element = function(el, map) {
++    this.init.apply(this, arguments);
++};
++
++Element.DOM_EVENTS = {
++    'click': true,
++    'dblclick': true,
++    'keydown': true,
++    'keypress': true,
++    'keyup': true,
++    'mousedown': true,
++    'mousemove': true,
++    'mouseout': true, 
++    'mouseover': true, 
++    'mouseup': true,
++    'mouseenter': true, 
++    'mouseleave': true,
++    'focus': true,
++    'blur': true,
++    'submit': true,
++    'change': true
++};
++
++Element.prototype = {
++    /**
++     * Dom events supported by the Element instance.
++     * @property DOM_EVENTS
++     * @type Object
++     */
++    DOM_EVENTS: null,
++
++    DEFAULT_HTML_SETTER: function(value, key) {
++        var el = this.get('element');
++        
++        if (el) {
++            el[key] = value;
++        }
++
++		return value;
++
++    },
++
++    DEFAULT_HTML_GETTER: function(key) {
++        var el = this.get('element'),
++            val;
++
++        if (el) {
++            val = el[key];
++        }
++
++        return val;
++    },
++
++    /**
++     * Wrapper for HTMLElement method.
++     * @method appendChild
++     * @param {YAHOO.util.Element || HTMLElement} child The element to append. 
++     * @return {HTMLElement} The appended DOM element. 
++     */
++    appendChild: function(child) {
++        child = child.get ? child.get('element') : child;
++        return this.get('element').appendChild(child);
++    },
++    
++    /**
++     * Wrapper for HTMLElement method.
++     * @method getElementsByTagName
++     * @param {String} tag The tagName to collect
++     * @return {HTMLCollection} A collection of DOM elements. 
++     */
++    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.
++     * @return {HTMLElement} The inserted DOM element. 
++     */
++    insertBefore: function(element, before) {
++        element = element.get ? element.get('element') : element;
++        before = (before && before.get) ? before.get('element') : before;
++        
++        return this.get('element').insertBefore(element, before);
++    },
++    
++    /**
++     * Wrapper for HTMLElement method.
++     * @method removeChild
++     * @param {HTMLElement} child The HTMLElement to remove
++     * @return {HTMLElement} The removed DOM element. 
++     */
++    removeChild: function(child) {
++        child = child.get ? child.get('element') : child;
++        return this.get('element').removeChild(child);
++    },
++    
++    /**
++     * Wrapper for HTMLElement method.
++     * @method replaceChild
++     * @param {HTMLElement} newNode The HTMLElement to insert
++     * @param {HTMLElement} oldNode The HTMLElement to replace
++     * @return {HTMLElement} The replaced DOM element. 
++     */
++    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) {
++
++        scope = scope || this;
++
++        var Event = YAHOO.util.Event,
++			el = this.get('element') || this.get('id'),
++        	self = this;
++
++
++		if (specialTypes[type] && !Event._createMouseDelegate) {
++	        return false;	
++		}
++
++
++        if (!this._events[type]) { // create on the fly
++
++            if (el && this.DOM_EVENTS[type]) {
++				Event.on(el, type, function(e, matchedEl) {
++
++					// Supplement IE with target, currentTarget relatedTarget
++
++	                if (e.srcElement && !e.target) { 
++	                    e.target = e.srcElement;
++	                }
++
++					if ((e.toElement && !e.relatedTarget) || (e.fromElement && !e.relatedTarget)) {
++						e.relatedTarget = Event.getRelatedTarget(e);
++					}
++					
++					if (!e.currentTarget) {
++						e.currentTarget = el;
++					}
++
++					//	Note: matchedEl el is passed back for delegated listeners
++		            self.fireEvent(type, e, matchedEl);
++
++		        }, obj, scope);
++            }
++            this.createEvent(type, {scope: this});
++        }
++        
++        return 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() {
++        return 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() {
++        return 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) {
++        return 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) {
++        return Dom.setStyle(this.get('element'),  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
++     * @return {HTMLElement} The appended DOM element. 
++     */
++    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
++        });
++
++        return element;
++    },
++    
++    get: function(key) {
++        var configs = this._configs || {},
++            el = configs.element; // avoid loop due to 'element'
++
++        if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) {
++            this._setHTMLAttrConfig(key);
++        }
++
++        return AttributeProvider.prototype.get.call(this, key);
++    },
++
++    setAttributes: function(map, silent) {
++        // set based on configOrder
++        var done = {},
++            configOrder = this._configOrder;
++
++        // set based on configOrder
++        for (var i = 0, len = configOrder.length; i < len; ++i) {
++            if (map[configOrder[i]] !== undefined) {
++                done[configOrder[i]] = true;
++                this.set(configOrder[i], map[configOrder[i]], silent);
++            }
++        }
++
++        // unconfigured (e.g. Dom attributes)
++        for (var att in map) {
++            if (map.hasOwnProperty(att) && !done[att]) {
++                this.set(att, map[att], 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]) ) {
++            this._setHTMLAttrConfig(key);
++        }
++
++        return AttributeProvider.prototype.set.apply(this, arguments);
++    },
++    
++    setAttributeConfig: function(key, map, init) {
++        this._configOrder.push(key);
++        AttributeProvider.prototype.setAttributeConfig.apply(this, arguments);
++    },
++
++    createEvent: function(type, config) {
++        this._events[type] = true;
++        return AttributeProvider.prototype.createEvent.apply(this, arguments);
++    },
++    
++    init: function(el, attr) {
++        this._initElement(el, attr); 
++    },
++
++    destroy: function() {
++        var el = this.get('element');
++        YAHOO.util.Event.purgeElement(el, true); // purge DOM listeners recursively
++        this.unsubscribeAll(); // unsubscribe all custom events
++
++        if (el && el.parentNode) {
++            el.parentNode.removeChild(el); // pull from the DOM
++        }
++
++        // revert initial configs
++        this._queue = [];
++        this._events = {};
++        this._configs = {};
++        this._configOrder = []; 
++    },
++
++    _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;
++
++        var isReady = false;  // to determine when to init HTMLElement and content
++
++        var DOM_EVENTS = Element.DOM_EVENTS;
++        this.DOM_EVENTS = this.DOM_EVENTS || {};
++
++        for (var event in DOM_EVENTS) {
++            if (DOM_EVENTS.hasOwnProperty(event)) {
++                this.DOM_EVENTS[event] = DOM_EVENTS[event];
++            }
++        }
++
++        if (typeof attr.element === 'string') { // register ID for get() access
++            this._setHTMLAttrConfig('id', { value: attr.element });
++        }
++
++        if (Dom.get(attr.element)) {
++            isReady = true;
++            this._initHTMLElement(attr);
++            this._initContent(attr);
++        }
++
++        YAHOO.util.Event.onAvailable(attr.element, function() {
++            if (!isReady) { // otherwise already done
++                this._initHTMLElement(attr);
++            }
++
++            this.fireEvent('available', { type: 'available', target: Dom.get(attr.element) });  
++        }, this, true);
++        
++        YAHOO.util.Event.onContentReady(attr.element, function() {
++            if (!isReady) { // otherwise already done
++                this._initContent(attr);
++            }
++            this.fireEvent('contentReady', { type: 'contentReady', target: Dom.get(attr.element) });  
++        }, this, true);
++    },
++
++    _initHTMLElement: function(attr) {
++        /**
++         * The HTMLElement the Element instance refers to.
++         * @attribute element
++         * @type HTMLElement
++         */
++        this.setAttributeConfig('element', {
++            value: Dom.get(attr.element),
++            readOnly: true
++         });
++    },
++
++    _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 _setHTMLAttrConfig
++     * @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
++     */
++    _setHTMLAttrConfig: function(key, map) {
++        var el = this.get('element');
++        map = map || {};
++        map.name = key;
++
++        map.setter = map.setter || this.DEFAULT_HTML_SETTER;
++        map.getter = map.getter || this.DEFAULT_HTML_GETTER;
++
++        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(Element, AttributeProvider);
++YAHOO.util.Element = Element;
++})();
++
++YAHOO.register("element", YAHOO.util.Element, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event-delegate/event-delegate-debug.js b/pylons_app/public/js/yui/event-delegate/event-delegate-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-delegate/event-delegate-debug.js
+@@ -0,0 +1,283 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Augments the Event Utility with a <code>delegate</code> method that 
++ * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
++ * selectors as the filtering criteria for delegated event listeners requires 
++ * inclusion of the Selector Utility.)
++ *
++ * @module event-delegate
++ * @title Event Utility Event Delegation Module
++ * @namespace YAHOO.util
++ * @requires event
++ */
++
++(function () {
++
++	var Event = YAHOO.util.Event,
++		Lang = YAHOO.lang,
++		delegates = [],
++
++
++		getMatch = function(el, selector, container) {
++		
++			var returnVal;
++		
++			if (!el || el === container) {
++				returnVal = false;
++			}
++			else {
++				returnVal = YAHOO.util.Selector.test(el, selector) ? el: getMatch(el.parentNode, selector, container);
++			}
++		
++			return returnVal;
++		
++		};
++
++
++	Lang.augmentObject(Event, {
++
++		/**
++		 * Creates a delegate function used to call event listeners specified 
++		 * via the <code>YAHOO.util.Event.delegate</code> method.
++		 *
++		 * @method _createDelegate
++		 *
++		 * @param {Function} fn        The method (event listener) to call.
++		 * @param {Function|string} filter Function or CSS selector used to 
++		 * determine for what element(s) the event listener should be called.		
++		 * @param {Object}   obj	An arbitrary object that will be 
++		 *                             passed as a parameter to the listener.
++		 * @param {Boolean|object}  overrideContext  If true, the value of the 
++		 * 							obj parameter becomes the execution context
++		 *                          of the listener. If an object, this object
++		 *                          becomes the execution context.
++		 * @return {Function} Function that will call the event listener 
++		 * specified by the <code>YAHOO.util.Event.delegate</code> method.
++         * @private
++         * @for Event
++		 * @static
++		 */
++		_createDelegate: function (fn, filter, obj, overrideContext) {
++
++			return function (event) {
++
++				var container = this,
++					target = Event.getTarget(event),
++					selector = filter,
++
++					//	The user might have specified the document object 
++					//	as the delegation container, in which case it is not 
++					//	nessary to scope the provided CSS selector(s) to the 
++					//	delegation container
++					bDocument = (container.nodeType === 9),
++
++					matchedEl,
++					context,
++					sID,
++					sIDSelector;
++
++
++				if (Lang.isFunction(filter)) {
++					matchedEl = filter(target);
++				}
++				else if (Lang.isString(filter)) {
++
++					if (!bDocument) {
++
++						sID = container.id;
++
++						if (!sID) {
++							sID = Event.generateId(container);
++						}						
++
++						//	Scope all selectors to the container
++						sIDSelector = ("#" + sID + " ");
++						selector = (sIDSelector + filter).replace(/,/gi, ("," + sIDSelector));
++
++					}
++
++
++					if (YAHOO.util.Selector.test(target, selector)) {
++						matchedEl = target;
++					}
++					else if (YAHOO.util.Selector.test(target, ((selector.replace(/,/gi, " *,")) + " *"))) {
++
++						//	The target is a descendant of an element matching 
++						//	the selector, so crawl up to find the ancestor that 
++						//	matches the selector
++
++						matchedEl = getMatch(target, selector, container);
++
++					}
++
++				}
++
++
++				if (matchedEl) {
++
++					//	The default context for delegated listeners is the 
++					//	element that matched the filter.
++
++					context = matchedEl;
++
++		            if (overrideContext) {
++		                if (overrideContext === true) {
++		                    context = obj;
++		                } else {
++		                    context = overrideContext;
++		                }
++		            }
++
++					//	Call the listener passing in the container and the 
++					//	element that matched the filter in case the user 
++					//	needs those.
++
++					return fn.call(context, event, matchedEl, container, obj);
++
++				}
++
++			};
++
++		},
++
++
++        /**
++         * Appends a delegated event listener.  Delegated event listeners 
++		 * receive three arguments by default: the DOM event, the element  
++		 * specified by the filtering function or CSS selector, and the 
++		 * container element (the element to which the event listener is 
++		 * bound).  (Note: Using the delegate method requires the event-delegate 
++		 * module.  Using CSS selectors as the filtering criteria for delegated 
++		 * event listeners requires inclusion of the Selector Utility.)
++         *
++         * @method delegate
++         *
++         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
++         *  reference, or a collection of ids and/or elements to assign the 
++         *  listener to.
++         * @param {String}   type     The type of event listener to append
++         * @param {Function} fn        The method the event invokes
++		 * @param {Function|string} filter Function or CSS selector used to 
++		 * determine for what element(s) the event listener should be called. 
++		 * When a function is specified, the function should return an 
++		 * HTML element.  Using a CSS Selector requires the inclusion of the 
++		 * CSS Selector Utility.
++         * @param {Object}   obj    An arbitrary object that will be 
++         *                             passed as a parameter to the listener
++         * @param {Boolean|object}  overrideContext  If true, the value of the obj parameter becomes
++         *                             the execution context of the listener. If an
++         *                             object, this object becomes the execution
++         *                             context.
++         * @return {Boolean} Returns true if the action was successful or defered,
++         *                   false if one or more of the elements 
++         *                   could not have the listener attached,
++         *                   or if the operation throws an exception.
++         * @static
++         * @for Event
++         */
++		delegate: function (container, type, fn, filter, obj, overrideContext) {
++
++			var sType = type,
++				fnMouseDelegate,
++				fnDelegate;
++
++
++			if (Lang.isString(filter) && !YAHOO.util.Selector) {
++				YAHOO.log("Using a CSS selector to define the filtering criteria for a delegated listener requires the Selector Utility.", "error", "Event");
++		        return false;
++			}
++
++
++			if (type == "mouseenter" || type == "mouseleave") {
++
++				if (!Event._createMouseDelegate) {
++					YAHOO.log("Delegating a " + type + " event requires the event-mouseenter module.", "error", "Event");
++			        return false;
++				}
++
++				//	Look up the real event--either mouseover or mouseout
++				sType = Event._getType(type);
++
++				fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
++
++				fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
++
++					return fnMouseDelegate.call(matchedEl, event, container);
++
++				}, filter, obj, overrideContext);
++
++			}
++			else {
++
++				fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
++
++			}
++
++			delegates.push([container, sType, fn, fnDelegate]);
++			
++			return Event.on(container, sType, fnDelegate);
++
++		},
++
++
++        /**
++         * Removes a delegated event listener.
++         *
++         * @method removeDelegate
++         *
++         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
++         *  reference, or a collection of ids and/or elements to remove
++         *  the listener from.
++         * @param {String} type The type of event to remove.
++         * @param {Function} fn The method the event invokes.  If fn is
++         *  undefined, then all event listeners for the type of event are 
++         *  removed.
++         * @return {boolean} Returns true if the unbind was successful, false 
++         *  otherwise.
++         * @static
++         * @for Event
++         */
++		removeDelegate: function (container, type, fn) {
++
++			var sType = type,
++				returnVal = false,
++				index,
++				cacheItem;
++
++			//	Look up the real event--either mouseover or mouseout
++			if (type == "mouseenter" || type == "mouseleave") {
++				sType = Event._getType(type);
++			}
++
++			index = Event._getCacheIndex(delegates, container, sType, fn);
++
++		    if (index >= 0) {
++		        cacheItem = delegates[index];
++		    }
++
++
++		    if (container && cacheItem) {
++
++		        returnVal = Event.removeListener(cacheItem[0], cacheItem[1], cacheItem[3]);
++
++				if (returnVal) {
++	                delete delegates[index][2];
++	                delete delegates[index][3];
++	                delegates.splice(index, 1);
++				}		
++		
++		    }
++
++			return returnVal;
++
++		}
++		
++	});
++
++}());
++YAHOO.register("event-delegate", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event-delegate/event-delegate-min.js b/pylons_app/public/js/yui/event-delegate/event-delegate-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-delegate/event-delegate-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return function(I){var J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+" ");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi," *,"))+" *"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return A.on(F,E,M);},removeDelegate:function(F,J,I){var K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete B[G][2];delete B[G][3];B.splice(G,1);}}return H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/event-delegate/event-delegate.js b/pylons_app/public/js/yui/event-delegate/event-delegate.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-delegate/event-delegate.js
+@@ -0,0 +1,281 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Augments the Event Utility with a <code>delegate</code> method that 
++ * facilitates easy creation of delegated event listeners.  (Note: Using CSS 
++ * selectors as the filtering criteria for delegated event listeners requires 
++ * inclusion of the Selector Utility.)
++ *
++ * @module event-delegate
++ * @title Event Utility Event Delegation Module
++ * @namespace YAHOO.util
++ * @requires event
++ */
++
++(function () {
++
++	var Event = YAHOO.util.Event,
++		Lang = YAHOO.lang,
++		delegates = [],
++
++
++		getMatch = function(el, selector, container) {
++		
++			var returnVal;
++		
++			if (!el || el === container) {
++				returnVal = false;
++			}
++			else {
++				returnVal = YAHOO.util.Selector.test(el, selector) ? el: getMatch(el.parentNode, selector, container);
++			}
++		
++			return returnVal;
++		
++		};
++
++
++	Lang.augmentObject(Event, {
++
++		/**
++		 * Creates a delegate function used to call event listeners specified 
++		 * via the <code>YAHOO.util.Event.delegate</code> method.
++		 *
++		 * @method _createDelegate
++		 *
++		 * @param {Function} fn        The method (event listener) to call.
++		 * @param {Function|string} filter Function or CSS selector used to 
++		 * determine for what element(s) the event listener should be called.		
++		 * @param {Object}   obj	An arbitrary object that will be 
++		 *                             passed as a parameter to the listener.
++		 * @param {Boolean|object}  overrideContext  If true, the value of the 
++		 * 							obj parameter becomes the execution context
++		 *                          of the listener. If an object, this object
++		 *                          becomes the execution context.
++		 * @return {Function} Function that will call the event listener 
++		 * specified by the <code>YAHOO.util.Event.delegate</code> method.
++         * @private
++         * @for Event
++		 * @static
++		 */
++		_createDelegate: function (fn, filter, obj, overrideContext) {
++
++			return function (event) {
++
++				var container = this,
++					target = Event.getTarget(event),
++					selector = filter,
++
++					//	The user might have specified the document object 
++					//	as the delegation container, in which case it is not 
++					//	nessary to scope the provided CSS selector(s) to the 
++					//	delegation container
++					bDocument = (container.nodeType === 9),
++
++					matchedEl,
++					context,
++					sID,
++					sIDSelector;
++
++
++				if (Lang.isFunction(filter)) {
++					matchedEl = filter(target);
++				}
++				else if (Lang.isString(filter)) {
++
++					if (!bDocument) {
++
++						sID = container.id;
++
++						if (!sID) {
++							sID = Event.generateId(container);
++						}						
++
++						//	Scope all selectors to the container
++						sIDSelector = ("#" + sID + " ");
++						selector = (sIDSelector + filter).replace(/,/gi, ("," + sIDSelector));
++
++					}
++
++
++					if (YAHOO.util.Selector.test(target, selector)) {
++						matchedEl = target;
++					}
++					else if (YAHOO.util.Selector.test(target, ((selector.replace(/,/gi, " *,")) + " *"))) {
++
++						//	The target is a descendant of an element matching 
++						//	the selector, so crawl up to find the ancestor that 
++						//	matches the selector
++
++						matchedEl = getMatch(target, selector, container);
++
++					}
++
++				}
++
++
++				if (matchedEl) {
++
++					//	The default context for delegated listeners is the 
++					//	element that matched the filter.
++
++					context = matchedEl;
++
++		            if (overrideContext) {
++		                if (overrideContext === true) {
++		                    context = obj;
++		                } else {
++		                    context = overrideContext;
++		                }
++		            }
++
++					//	Call the listener passing in the container and the 
++					//	element that matched the filter in case the user 
++					//	needs those.
++
++					return fn.call(context, event, matchedEl, container, obj);
++
++				}
++
++			};
++
++		},
++
++
++        /**
++         * Appends a delegated event listener.  Delegated event listeners 
++		 * receive three arguments by default: the DOM event, the element  
++		 * specified by the filtering function or CSS selector, and the 
++		 * container element (the element to which the event listener is 
++		 * bound).  (Note: Using the delegate method requires the event-delegate 
++		 * module.  Using CSS selectors as the filtering criteria for delegated 
++		 * event listeners requires inclusion of the Selector Utility.)
++         *
++         * @method delegate
++         *
++         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
++         *  reference, or a collection of ids and/or elements to assign the 
++         *  listener to.
++         * @param {String}   type     The type of event listener to append
++         * @param {Function} fn        The method the event invokes
++		 * @param {Function|string} filter Function or CSS selector used to 
++		 * determine for what element(s) the event listener should be called. 
++		 * When a function is specified, the function should return an 
++		 * HTML element.  Using a CSS Selector requires the inclusion of the 
++		 * CSS Selector Utility.
++         * @param {Object}   obj    An arbitrary object that will be 
++         *                             passed as a parameter to the listener
++         * @param {Boolean|object}  overrideContext  If true, the value of the obj parameter becomes
++         *                             the execution context of the listener. If an
++         *                             object, this object becomes the execution
++         *                             context.
++         * @return {Boolean} Returns true if the action was successful or defered,
++         *                   false if one or more of the elements 
++         *                   could not have the listener attached,
++         *                   or if the operation throws an exception.
++         * @static
++         * @for Event
++         */
++		delegate: function (container, type, fn, filter, obj, overrideContext) {
++
++			var sType = type,
++				fnMouseDelegate,
++				fnDelegate;
++
++
++			if (Lang.isString(filter) && !YAHOO.util.Selector) {
++		        return false;
++			}
++
++
++			if (type == "mouseenter" || type == "mouseleave") {
++
++				if (!Event._createMouseDelegate) {
++			        return false;
++				}
++
++				//	Look up the real event--either mouseover or mouseout
++				sType = Event._getType(type);
++
++				fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
++
++				fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
++
++					return fnMouseDelegate.call(matchedEl, event, container);
++
++				}, filter, obj, overrideContext);
++
++			}
++			else {
++
++				fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
++
++			}
++
++			delegates.push([container, sType, fn, fnDelegate]);
++			
++			return Event.on(container, sType, fnDelegate);
++
++		},
++
++
++        /**
++         * Removes a delegated event listener.
++         *
++         * @method removeDelegate
++         *
++         * @param {String|HTMLElement|Array|NodeList} container An id, an element 
++         *  reference, or a collection of ids and/or elements to remove
++         *  the listener from.
++         * @param {String} type The type of event to remove.
++         * @param {Function} fn The method the event invokes.  If fn is
++         *  undefined, then all event listeners for the type of event are 
++         *  removed.
++         * @return {boolean} Returns true if the unbind was successful, false 
++         *  otherwise.
++         * @static
++         * @for Event
++         */
++		removeDelegate: function (container, type, fn) {
++
++			var sType = type,
++				returnVal = false,
++				index,
++				cacheItem;
++
++			//	Look up the real event--either mouseover or mouseout
++			if (type == "mouseenter" || type == "mouseleave") {
++				sType = Event._getType(type);
++			}
++
++			index = Event._getCacheIndex(delegates, container, sType, fn);
++
++		    if (index >= 0) {
++		        cacheItem = delegates[index];
++		    }
++
++
++		    if (container && cacheItem) {
++
++		        returnVal = Event.removeListener(cacheItem[0], cacheItem[1], cacheItem[3]);
++
++				if (returnVal) {
++	                delete delegates[index][2];
++	                delete delegates[index][3];
++	                delegates.splice(index, 1);
++				}		
++		
++		    }
++
++			return returnVal;
++
++		}
++		
++	});
++
++}());
++YAHOO.register("event-delegate", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event-mouseenter/event-mouseenter-debug.js b/pylons_app/public/js/yui/event-mouseenter/event-mouseenter-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-mouseenter/event-mouseenter-debug.js
+@@ -0,0 +1,219 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Augments the Event Utility with support for the mouseenter and mouseleave 
++ * events:  A mouseenter event fires the first time the mouse enters an 
++ * element; a mouseleave event first the first time the mouse leaves an 
++ * element.
++ * 
++ * @module event-mouseenter
++ * @title Event Utility mouseenter and mouseout Module
++ * @namespace YAHOO.util
++ * @requires event
++ */
++
++(function () {
++
++	var Event = YAHOO.util.Event,
++		Lang = YAHOO.lang,
++
++		addListener = Event.addListener,
++		removeListener = Event.removeListener,
++		getListeners = Event.getListeners,
++
++		delegates = [],
++		
++		specialTypes = {
++			mouseenter: "mouseover",
++			mouseleave: "mouseout"
++		}, 
++
++		remove = function(el, type, fn) {
++
++			var index = Event._getCacheIndex(delegates, el, type, fn),
++				cacheItem,
++				returnVal;
++
++		    if (index >= 0) {
++		        cacheItem = delegates[index];
++		    }
++
++		    if (el && cacheItem) {
++
++				//	removeListener will translate the value of type				
++		        returnVal = removeListener.call(Event, cacheItem[0], type, cacheItem[3]);
++		
++				if (returnVal) {
++	                delete delegates[index][2];
++	                delete delegates[index][3];
++	                delegates.splice(index, 1);
++				}
++		
++		    }
++
++			return returnVal;
++
++		};		
++
++
++	Lang.augmentObject(Event._specialTypes, specialTypes); 
++
++	Lang.augmentObject(Event, {
++
++		/**
++		 * Creates a delegate function used to call mouseover and mouseleave 
++		 * event listeners specified via the 
++		 * <code>YAHOO.util.Event.addListener</code> 
++		 * or <code>YAHOO.util.Event.on</code> method.
++		 *
++		 * @method _createMouseDelegate
++		 *
++		 * @param {Function} fn        The method (event listener) to call
++		 * @param {Object}   obj    An arbitrary object that will be 
++		 *                             passed as a parameter to the listener
++		 * @param {Boolean|object}  overrideContext  If true, the value of the 
++		 * 							obj parameter becomes the execution context
++		 *                          of the listener. If an object, this object
++		 *                          becomes the execution context. 
++		 * @return {Function} Function that will call the event listener 
++		 * specified by either the <code>YAHOO.util.Event.addListener</code> 
++		 * or <code>YAHOO.util.Event.on</code> method.
++	     * @private
++		 * @static
++	     * @for Event
++		 */
++		_createMouseDelegate: function (fn, obj, overrideContext) {
++
++			return function (event, container) {
++
++				var el = this,
++					relatedTarget = Event.getRelatedTarget(event),
++					context,
++					args;
++
++				if (el != relatedTarget && !YAHOO.util.Dom.isAncestor(el, relatedTarget)) {
++
++					context = el;
++
++			        if (overrideContext) {
++			            if (overrideContext === true) {
++			                context = obj;
++			            } else {
++			                context = overrideContext;
++			            }
++			        }
++
++					//	The default args passed back to a mouseenter or 
++					//	mouseleave listener are: the event, the element 
++					//	to which the listener is bound, and any object the  
++					//	user passed when subscribing
++
++					args = [event, el, obj];
++
++					//	Add the delegation container as an argument when 
++					//	delegating mouseenter and mouseleave
++
++					if (container) {
++						args.splice(2, 0, container);
++					}
++
++					return fn.apply(context, args);
++
++				}
++
++			};
++
++		},
++		
++		addListener: function (el, type, fn, obj, overrideContext) {
++
++			var fnDelegate,
++				returnVal;
++
++			if (specialTypes[type]) {
++
++				fnDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
++				
++				fnDelegate.mouseDelegate = true;
++
++				delegates.push([el, type, fn, fnDelegate]);
++
++				//	addListener will translate the value of type
++				returnVal = addListener.call(Event, el, type, fnDelegate);
++
++			}
++			else {
++				returnVal = addListener.apply(Event, arguments);
++			}
++
++			return returnVal;
++
++		},
++		
++		removeListener: function (el, type, fn) {
++
++			var returnVal;
++
++			if (specialTypes[type]) {
++				returnVal = remove.apply(Event, arguments);
++			}
++			else {
++				returnVal = removeListener.apply(Event, arguments);
++			}
++
++			return returnVal;
++
++		},
++		
++		getListeners: function (el, type) {
++
++			//	If the user specified the type as mouseover or mouseout, 
++			//	need to filter out those used by mouseenter and mouseleave.
++			//	If the user specified the type as mouseenter or mouseleave, 
++			//	need to filter out the true mouseover and mouseout listeners.
++
++			var listeners = [],
++				elListeners,
++				bMouseOverOrOut = (type === "mouseover" || type === "mouseout"),
++				bMouseDelegate,
++				i,
++				l;
++			
++			if (type && (bMouseOverOrOut || specialTypes[type])) {
++				
++				elListeners = getListeners.call(Event, el, this._getType(type));
++
++	            if (elListeners) {
++
++	                for (i=elListeners.length-1; i>-1; i--) {
++
++	                    l = elListeners[i];
++						bMouseDelegate = l.fn.mouseDelegate;
++
++						if ((specialTypes[type] && bMouseDelegate) || (bMouseOverOrOut && !bMouseDelegate)) {
++							listeners.push(l);
++						}
++
++	                }
++
++	            }
++				
++			}
++			else {
++				listeners = getListeners.apply(Event, arguments);
++			}
++
++            return (listeners && listeners.length) ? listeners : null;
++			
++		}
++		
++	}, true);
++	
++	Event.on = Event.addListener;
++
++}());
++YAHOO.register("event-mouseenter", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event-mouseenter/event-mouseenter-min.js b/pylons_app/public/js/yui/event-mouseenter/event-mouseenter-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-mouseenter/event-mouseenter-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util.Event,G=YAHOO.lang,E=B.addListener,F=B.removeListener,C=B.getListeners,D=[],H={mouseenter:"mouseover",mouseleave:"mouseout"},A=function(N,M,L){var J=B._getCacheIndex(D,N,M,L),I,K;if(J>=0){I=D[J];}if(N&&I){K=F.call(B,I[0],M,I[3]);if(K){delete D[J][2];delete D[J][3];D.splice(J,1);}}return K;};G.augmentObject(B._specialTypes,H);G.augmentObject(B,{_createMouseDelegate:function(I,J,K){return function(Q,M){var P=this,L=B.getRelatedTarget(Q),O,N;if(P!=L&&!YAHOO.util.Dom.isAncestor(P,L)){O=P;if(K){if(K===true){O=J;}else{O=K;}}N=[Q,P,J];if(M){N.splice(2,0,M);}return I.apply(O,N);}};},addListener:function(M,L,K,N,O){var I,J;if(H[L]){I=B._createMouseDelegate(K,N,O);I.mouseDelegate=true;D.push([M,L,K,I]);J=E.call(B,M,L,I);}else{J=E.apply(B,arguments);}return J;},removeListener:function(L,K,J){var I;if(H[K]){I=A.apply(B,arguments);}else{I=F.apply(B,arguments);}return I;},getListeners:function(N,M){var L=[],P,K=(M==="mouseover"||M==="mouseout"),O,J,I;if(M&&(K||H[M])){P=C.call(B,N,this._getType(M));if(P){for(J=P.length-1;J>-1;J--){I=P[J];O=I.fn.mouseDelegate;if((H[M]&&O)||(K&&!O)){L.push(I);}}}}else{L=C.apply(B,arguments);}return(L&&L.length)?L:null;}},true);B.on=B.addListener;}());YAHOO.register("event-mouseenter",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/event-mouseenter/event-mouseenter.js b/pylons_app/public/js/yui/event-mouseenter/event-mouseenter.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-mouseenter/event-mouseenter.js
+@@ -0,0 +1,219 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Augments the Event Utility with support for the mouseenter and mouseleave 
++ * events:  A mouseenter event fires the first time the mouse enters an 
++ * element; a mouseleave event first the first time the mouse leaves an 
++ * element.
++ * 
++ * @module event-mouseenter
++ * @title Event Utility mouseenter and mouseout Module
++ * @namespace YAHOO.util
++ * @requires event
++ */
++
++(function () {
++
++	var Event = YAHOO.util.Event,
++		Lang = YAHOO.lang,
++
++		addListener = Event.addListener,
++		removeListener = Event.removeListener,
++		getListeners = Event.getListeners,
++
++		delegates = [],
++		
++		specialTypes = {
++			mouseenter: "mouseover",
++			mouseleave: "mouseout"
++		}, 
++
++		remove = function(el, type, fn) {
++
++			var index = Event._getCacheIndex(delegates, el, type, fn),
++				cacheItem,
++				returnVal;
++
++		    if (index >= 0) {
++		        cacheItem = delegates[index];
++		    }
++
++		    if (el && cacheItem) {
++
++				//	removeListener will translate the value of type				
++		        returnVal = removeListener.call(Event, cacheItem[0], type, cacheItem[3]);
++		
++				if (returnVal) {
++	                delete delegates[index][2];
++	                delete delegates[index][3];
++	                delegates.splice(index, 1);
++				}
++		
++		    }
++
++			return returnVal;
++
++		};		
++
++
++	Lang.augmentObject(Event._specialTypes, specialTypes); 
++
++	Lang.augmentObject(Event, {
++
++		/**
++		 * Creates a delegate function used to call mouseover and mouseleave 
++		 * event listeners specified via the 
++		 * <code>YAHOO.util.Event.addListener</code> 
++		 * or <code>YAHOO.util.Event.on</code> method.
++		 *
++		 * @method _createMouseDelegate
++		 *
++		 * @param {Function} fn        The method (event listener) to call
++		 * @param {Object}   obj    An arbitrary object that will be 
++		 *                             passed as a parameter to the listener
++		 * @param {Boolean|object}  overrideContext  If true, the value of the 
++		 * 							obj parameter becomes the execution context
++		 *                          of the listener. If an object, this object
++		 *                          becomes the execution context. 
++		 * @return {Function} Function that will call the event listener 
++		 * specified by either the <code>YAHOO.util.Event.addListener</code> 
++		 * or <code>YAHOO.util.Event.on</code> method.
++	     * @private
++		 * @static
++	     * @for Event
++		 */
++		_createMouseDelegate: function (fn, obj, overrideContext) {
++
++			return function (event, container) {
++
++				var el = this,
++					relatedTarget = Event.getRelatedTarget(event),
++					context,
++					args;
++
++				if (el != relatedTarget && !YAHOO.util.Dom.isAncestor(el, relatedTarget)) {
++
++					context = el;
++
++			        if (overrideContext) {
++			            if (overrideContext === true) {
++			                context = obj;
++			            } else {
++			                context = overrideContext;
++			            }
++			        }
++
++					//	The default args passed back to a mouseenter or 
++					//	mouseleave listener are: the event, the element 
++					//	to which the listener is bound, and any object the  
++					//	user passed when subscribing
++
++					args = [event, el, obj];
++
++					//	Add the delegation container as an argument when 
++					//	delegating mouseenter and mouseleave
++
++					if (container) {
++						args.splice(2, 0, container);
++					}
++
++					return fn.apply(context, args);
++
++				}
++
++			};
++
++		},
++		
++		addListener: function (el, type, fn, obj, overrideContext) {
++
++			var fnDelegate,
++				returnVal;
++
++			if (specialTypes[type]) {
++
++				fnDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
++				
++				fnDelegate.mouseDelegate = true;
++
++				delegates.push([el, type, fn, fnDelegate]);
++
++				//	addListener will translate the value of type
++				returnVal = addListener.call(Event, el, type, fnDelegate);
++
++			}
++			else {
++				returnVal = addListener.apply(Event, arguments);
++			}
++
++			return returnVal;
++
++		},
++		
++		removeListener: function (el, type, fn) {
++
++			var returnVal;
++
++			if (specialTypes[type]) {
++				returnVal = remove.apply(Event, arguments);
++			}
++			else {
++				returnVal = removeListener.apply(Event, arguments);
++			}
++
++			return returnVal;
++
++		},
++		
++		getListeners: function (el, type) {
++
++			//	If the user specified the type as mouseover or mouseout, 
++			//	need to filter out those used by mouseenter and mouseleave.
++			//	If the user specified the type as mouseenter or mouseleave, 
++			//	need to filter out the true mouseover and mouseout listeners.
++
++			var listeners = [],
++				elListeners,
++				bMouseOverOrOut = (type === "mouseover" || type === "mouseout"),
++				bMouseDelegate,
++				i,
++				l;
++			
++			if (type && (bMouseOverOrOut || specialTypes[type])) {
++				
++				elListeners = getListeners.call(Event, el, this._getType(type));
++
++	            if (elListeners) {
++
++	                for (i=elListeners.length-1; i>-1; i--) {
++
++	                    l = elListeners[i];
++						bMouseDelegate = l.fn.mouseDelegate;
++
++						if ((specialTypes[type] && bMouseDelegate) || (bMouseOverOrOut && !bMouseDelegate)) {
++							listeners.push(l);
++						}
++
++	                }
++
++	            }
++				
++			}
++			else {
++				listeners = getListeners.apply(Event, arguments);
++			}
++
++            return (listeners && listeners.length) ? listeners : null;
++			
++		}
++		
++	}, true);
++	
++	Event.on = Event.addListener;
++
++}());
++YAHOO.register("event-mouseenter", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event-simulate/event-simulate-debug.js b/pylons_app/public/js/yui/event-simulate/event-simulate-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-simulate/event-simulate-debug.js
+@@ -0,0 +1,622 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++/**
++ * DOM event simulation utility
++ * @module event-simulate
++ * @namespace YAHOO.util
++ * @requires yahoo,dom,event
++ */
++
++/**
++ * The UserAction object provides functions that simulate events occurring in
++ * the browser. Since these are simulated events, they do not behave exactly
++ * as regular, user-initiated events do, but can be used to test simple
++ * user interactions safely.
++ *
++ * @namespace YAHOO.util
++ * @class UserAction
++ * @static
++ */
++YAHOO.util.UserAction = {
++
++    //--------------------------------------------------------------------------
++    // Generic event methods
++    //--------------------------------------------------------------------------
++
++    /**
++     * Simulates a key event using the given event information to populate
++     * the generated event object. This method does browser-equalizing
++     * calculations to account for differences in the DOM and IE event models
++     * as well as different browser quirks. Note: keydown causes Safari 2.x to
++     * crash.
++     * @method simulateKeyEvent
++     * @private
++     * @static
++     * @param {HTMLElement} target The target of the given event.
++     * @param {String} type The type of event to fire. This can be any one of
++     *      the following: keyup, keydown, and keypress.
++     * @param {Boolean} bubbles (Optional) Indicates if the event can be
++     *      bubbled up. DOM Level 3 specifies that all key events bubble by
++     *      default. The default is true.
++     * @param {Boolean} cancelable (Optional) Indicates if the event can be
++     *      canceled using preventDefault(). DOM Level 3 specifies that all
++     *      key events can be cancelled. The default 
++     *      is true.
++     * @param {Window} view (Optional) The view containing the target. This is
++     *      typically the window object. The default is window.
++     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {int} keyCode (Optional) The code for the key that is in use. 
++     *      The default is 0.
++     * @param {int} charCode (Optional) The Unicode code for the character
++     *      associated with the key being used. The default is 0.
++     */
++    simulateKeyEvent : function (target /*:HTMLElement*/, type /*:String*/, 
++                                 bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
++                                 view /*:Window*/,
++                                 ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
++                                 shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
++                                 keyCode /*:int*/,        charCode /*:int*/) /*:Void*/                             
++    {
++        //check target
++        target = YAHOO.util.Dom.get(target);        
++        if (!target){
++            throw new Error("simulateKeyEvent(): Invalid target.");
++        }
++        
++        //check event type
++        if (YAHOO.lang.isString(type)){
++            type = type.toLowerCase();
++            switch(type){
++                case "keyup":
++                case "keydown":
++                case "keypress":
++                    break;
++                case "textevent": //DOM Level 3
++                    type = "keypress";
++                    break;
++                    // @TODO was the fallthrough intentional, if so throw error
++                default:
++                    throw new Error("simulateKeyEvent(): Event type '" + type + "' not supported.");
++            }
++        } else {
++            throw new Error("simulateKeyEvent(): Event type must be a string.");
++        }
++        
++        //setup default values
++        if (!YAHOO.lang.isBoolean(bubbles)){
++            bubbles = true; //all key events bubble
++        }
++        if (!YAHOO.lang.isBoolean(cancelable)){
++            cancelable = true; //all key events can be cancelled
++        }
++        if (!YAHOO.lang.isObject(view)){
++            view = window; //view is typically window
++        }
++        if (!YAHOO.lang.isBoolean(ctrlKey)){
++            ctrlKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(altKey)){
++            altKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(shiftKey)){
++            shiftKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(metaKey)){
++            metaKey = false;
++        }
++        if (!YAHOO.lang.isNumber(keyCode)){
++            keyCode = 0;
++        }
++        if (!YAHOO.lang.isNumber(charCode)){
++            charCode = 0; 
++        }
++
++        //try to create a mouse event
++        var customEvent /*:MouseEvent*/ = null;
++            
++        //check for DOM-compliant browsers first
++        if (YAHOO.lang.isFunction(document.createEvent)){
++        
++            try {
++                
++                //try to create key event
++                customEvent = document.createEvent("KeyEvents");
++                
++                /*
++                 * Interesting problem: Firefox implemented a non-standard
++                 * version of initKeyEvent() based on DOM Level 2 specs.
++                 * Key event was removed from DOM Level 2 and re-introduced
++                 * in DOM Level 3 with a different interface. Firefox is the
++                 * only browser with any implementation of Key Events, so for
++                 * now, assume it's Firefox if the above line doesn't error.
++                 */
++                //TODO: Decipher between Firefox's implementation and a correct one.
++                customEvent.initKeyEvent(type, bubbles, cancelable, view, ctrlKey,
++                    altKey, shiftKey, metaKey, keyCode, charCode);       
++                
++            } catch (ex /*:Error*/){
++
++                /*
++                 * If it got here, that means key events aren't officially supported. 
++                 * Safari/WebKit is a real problem now. WebKit 522 won't let you
++                 * set keyCode, charCode, or other properties if you use a
++                 * UIEvent, so we first must try to create a generic event. The
++                 * fun part is that this will throw an error on Safari 2.x. The
++                 * end result is that we need another try...catch statement just to
++                 * deal with this mess.
++                 */
++                try {
++
++                    //try to create generic event - will fail in Safari 2.x
++                    customEvent = document.createEvent("Events");
++
++                } catch (uierror /*:Error*/){
++
++                    //the above failed, so create a UIEvent for Safari 2.x
++                    customEvent = document.createEvent("UIEvents");
++
++                } finally {
++
++                    customEvent.initEvent(type, bubbles, cancelable);
++    
++                    //initialize
++                    customEvent.view = view;
++                    customEvent.altKey = altKey;
++                    customEvent.ctrlKey = ctrlKey;
++                    customEvent.shiftKey = shiftKey;
++                    customEvent.metaKey = metaKey;
++                    customEvent.keyCode = keyCode;
++                    customEvent.charCode = charCode;
++          
++                }          
++             
++            }
++            
++            //fire the event
++            target.dispatchEvent(customEvent);
++
++        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
++        
++            //create an IE event object
++            customEvent = document.createEventObject();
++            
++            //assign available properties
++            customEvent.bubbles = bubbles;
++            customEvent.cancelable = cancelable;
++            customEvent.view = view;
++            customEvent.ctrlKey = ctrlKey;
++            customEvent.altKey = altKey;
++            customEvent.shiftKey = shiftKey;
++            customEvent.metaKey = metaKey;
++            
++            /*
++             * IE doesn't support charCode explicitly. CharCode should
++             * take precedence over any keyCode value for accurate
++             * representation.
++             */
++            customEvent.keyCode = (charCode > 0) ? charCode : keyCode;
++            
++            //fire the event
++            target.fireEvent("on" + type, customEvent);  
++                    
++        } else {
++            throw new Error("simulateKeyEvent(): No event simulation framework present.");
++        }
++    },
++
++    /**
++     * Simulates a mouse event using the given event information to populate
++     * the generated event object. This method does browser-equalizing
++     * calculations to account for differences in the DOM and IE event models
++     * as well as different browser quirks.
++     * @method simulateMouseEvent
++     * @private
++     * @static
++     * @param {HTMLElement} target The target of the given event.
++     * @param {String} type The type of event to fire. This can be any one of
++     *      the following: click, dblclick, mousedown, mouseup, mouseout,
++     *      mouseover, and mousemove.
++     * @param {Boolean} bubbles (Optional) Indicates if the event can be
++     *      bubbled up. DOM Level 2 specifies that all mouse events bubble by
++     *      default. The default is true.
++     * @param {Boolean} cancelable (Optional) Indicates if the event can be
++     *      canceled using preventDefault(). DOM Level 2 specifies that all
++     *      mouse events except mousemove can be cancelled. The default 
++     *      is true for all events except mousemove, for which the default 
++     *      is false.
++     * @param {Window} view (Optional) The view containing the target. This is
++     *      typically the window object. The default is window.
++     * @param {int} detail (Optional) The number of times the mouse button has
++     *      been used. The default value is 1.
++     * @param {int} screenX (Optional) The x-coordinate on the screen at which
++     *      point the event occured. The default is 0.
++     * @param {int} screenY (Optional) The y-coordinate on the screen at which
++     *      point the event occured. The default is 0.
++     * @param {int} clientX (Optional) The x-coordinate on the client at which
++     *      point the event occured. The default is 0.
++     * @param {int} clientY (Optional) The y-coordinate on the client at which
++     *      point the event occured. The default is 0.
++     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {int} button (Optional) The button being pressed while the event
++     *      is executing. The value should be 0 for the primary mouse button
++     *      (typically the left button), 1 for the terciary mouse button
++     *      (typically the middle button), and 2 for the secondary mouse button
++     *      (typically the right button). The default is 0.
++     * @param {HTMLElement} relatedTarget (Optional) For mouseout events,
++     *      this is the element that the mouse has moved to. For mouseover
++     *      events, this is the element that the mouse has moved from. This
++     *      argument is ignored for all other events. The default is null.
++     */
++    simulateMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
++                                   bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
++                                   view /*:Window*/,        detail /*:int*/, 
++                                   screenX /*:int*/,        screenY /*:int*/, 
++                                   clientX /*:int*/,        clientY /*:int*/,       
++                                   ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
++                                   shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
++                                   button /*:int*/,         relatedTarget /*:HTMLElement*/) /*:Void*/
++    {
++        
++        //check target
++        target = YAHOO.util.Dom.get(target);        
++        if (!target){
++            throw new Error("simulateMouseEvent(): Invalid target.");
++        }
++        
++        //check event type
++        if (YAHOO.lang.isString(type)){
++            type = type.toLowerCase();
++            switch(type){
++                case "mouseover":
++                case "mouseout":
++                case "mousedown":
++                case "mouseup":
++                case "click":
++                case "dblclick":
++                case "mousemove":
++                    break;
++                default:
++                    throw new Error("simulateMouseEvent(): Event type '" + type + "' not supported.");
++            }
++        } else {
++            throw new Error("simulateMouseEvent(): Event type must be a string.");
++        }
++        
++        //setup default values
++        if (!YAHOO.lang.isBoolean(bubbles)){
++            bubbles = true; //all mouse events bubble
++        }
++        if (!YAHOO.lang.isBoolean(cancelable)){
++            cancelable = (type != "mousemove"); //mousemove is the only one that can't be cancelled
++        }
++        if (!YAHOO.lang.isObject(view)){
++            view = window; //view is typically window
++        }
++        if (!YAHOO.lang.isNumber(detail)){
++            detail = 1;  //number of mouse clicks must be at least one
++        }
++        if (!YAHOO.lang.isNumber(screenX)){
++            screenX = 0; 
++        }
++        if (!YAHOO.lang.isNumber(screenY)){
++            screenY = 0; 
++        }
++        if (!YAHOO.lang.isNumber(clientX)){
++            clientX = 0; 
++        }
++        if (!YAHOO.lang.isNumber(clientY)){
++            clientY = 0; 
++        }
++        if (!YAHOO.lang.isBoolean(ctrlKey)){
++            ctrlKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(altKey)){
++            altKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(shiftKey)){
++            shiftKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(metaKey)){
++            metaKey = false;
++        }
++        if (!YAHOO.lang.isNumber(button)){
++            button = 0; 
++        }
++
++        //try to create a mouse event
++        var customEvent /*:MouseEvent*/ = null;
++            
++        //check for DOM-compliant browsers first
++        if (YAHOO.lang.isFunction(document.createEvent)){
++        
++            customEvent = document.createEvent("MouseEvents");
++        
++            //Safari 2.x (WebKit 418) still doesn't implement initMouseEvent()
++            if (customEvent.initMouseEvent){
++                customEvent.initMouseEvent(type, bubbles, cancelable, view, detail,
++                                     screenX, screenY, clientX, clientY, 
++                                     ctrlKey, altKey, shiftKey, metaKey, 
++                                     button, relatedTarget);
++            } else { //Safari
++            
++                //the closest thing available in Safari 2.x is UIEvents
++                customEvent = document.createEvent("UIEvents");
++                customEvent.initEvent(type, bubbles, cancelable);
++                customEvent.view = view;
++                customEvent.detail = detail;
++                customEvent.screenX = screenX;
++                customEvent.screenY = screenY;
++                customEvent.clientX = clientX;
++                customEvent.clientY = clientY;
++                customEvent.ctrlKey = ctrlKey;
++                customEvent.altKey = altKey;
++                customEvent.metaKey = metaKey;
++                customEvent.shiftKey = shiftKey;
++                customEvent.button = button;
++                customEvent.relatedTarget = relatedTarget;
++            }
++            
++            /*
++             * Check to see if relatedTarget has been assigned. Firefox
++             * versions less than 2.0 don't allow it to be assigned via
++             * initMouseEvent() and the property is readonly after event
++             * creation, so in order to keep YAHOO.util.getRelatedTarget()
++             * working, assign to the IE proprietary toElement property
++             * for mouseout event and fromElement property for mouseover
++             * event.
++             */
++            if (relatedTarget && !customEvent.relatedTarget){
++                if (type == "mouseout"){
++                    customEvent.toElement = relatedTarget;
++                } else if (type == "mouseover"){
++                    customEvent.fromElement = relatedTarget;
++                }
++            }
++            
++            //fire the event
++            target.dispatchEvent(customEvent);
++
++        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
++        
++            //create an IE event object
++            customEvent = document.createEventObject();
++            
++            //assign available properties
++            customEvent.bubbles = bubbles;
++            customEvent.cancelable = cancelable;
++            customEvent.view = view;
++            customEvent.detail = detail;
++            customEvent.screenX = screenX;
++            customEvent.screenY = screenY;
++            customEvent.clientX = clientX;
++            customEvent.clientY = clientY;
++            customEvent.ctrlKey = ctrlKey;
++            customEvent.altKey = altKey;
++            customEvent.metaKey = metaKey;
++            customEvent.shiftKey = shiftKey;
++
++            //fix button property for IE's wacky implementation
++            switch(button){
++                case 0:
++                    customEvent.button = 1;
++                    break;
++                case 1:
++                    customEvent.button = 4;
++                    break;
++                case 2:
++                    //leave as is
++                    break;
++                default:
++                    customEvent.button = 0;                    
++            }    
++
++            /*
++             * Have to use relatedTarget because IE won't allow assignment
++             * to toElement or fromElement on generic events. This keeps
++             * YAHOO.util.customEvent.getRelatedTarget() functional.
++             */
++            customEvent.relatedTarget = relatedTarget;
++            
++            //fire the event
++            target.fireEvent("on" + type, customEvent);
++                    
++        } else {
++            throw new Error("simulateMouseEvent(): No event simulation framework present.");
++        }
++    },
++   
++    //--------------------------------------------------------------------------
++    // Mouse events
++    //--------------------------------------------------------------------------
++
++    /**
++     * Simulates a mouse event on a particular element.
++     * @param {HTMLElement} target The element to click on.
++     * @param {String} type The type of event to fire. This can be any one of
++     *      the following: click, dblclick, mousedown, mouseup, mouseout,
++     *      mouseover, and mousemove.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseEvent
++     * @static
++     */
++    fireMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
++                           options /*:Object*/) /*:Void*/
++    {
++        options = options || {};
++        this.simulateMouseEvent(target, type, options.bubbles,
++            options.cancelable, options.view, options.detail, options.screenX,        
++            options.screenY, options.clientX, options.clientY, options.ctrlKey,
++            options.altKey, options.shiftKey, options.metaKey, options.button,         
++            options.relatedTarget);        
++    },
++
++    /**
++     * Simulates a click on a particular element.
++     * @param {HTMLElement} target The element to click on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method click
++     * @static     
++     */
++    click : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "click", options);
++    },
++    
++    /**
++     * Simulates a double click on a particular element.
++     * @param {HTMLElement} target The element to double click on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method dblclick
++     * @static
++     */
++    dblclick : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireMouseEvent( target, "dblclick", options);
++    },
++    
++    /**
++     * Simulates a mousedown on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mousedown
++     * @static
++     */
++    mousedown : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mousedown", options);
++    },
++    
++    /**
++     * Simulates a mousemove on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mousemove
++     * @static
++     */
++    mousemove : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mousemove", options);
++    },
++    
++    /**
++     * Simulates a mouseout event on a particular element. Use "relatedTarget"
++     * on the options object to specify where the mouse moved to.
++     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
++     * toElement is assigned in its place. IE doesn't allow toElement to be
++     * be assigned, so relatedTarget is assigned in its place. Both of these
++     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
++     * in both browsers.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseout
++     * @static
++     */
++    mouseout : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mouseout", options);
++    },
++    
++    /**
++     * Simulates a mouseover event on a particular element. Use "relatedTarget"
++     * on the options object to specify where the mouse moved from.
++     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
++     * fromElement is assigned in its place. IE doesn't allow fromElement to be
++     * be assigned, so relatedTarget is assigned in its place. Both of these
++     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
++     * in both browsers.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseover
++     * @static
++     */
++    mouseover : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mouseover", options);
++    },
++    
++    /**
++     * Simulates a mouseup on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseup
++     * @static
++     */
++    mouseup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mouseup", options);
++    },
++    
++    //--------------------------------------------------------------------------
++    // Key events
++    //--------------------------------------------------------------------------
++
++    /**
++     * Fires an event that normally would be fired by the keyboard (keyup,
++     * keydown, keypress). Make sure to specify either keyCode or charCode as
++     * an option.
++     * @private
++     * @param {String} type The type of event ("keyup", "keydown" or "keypress").
++     * @param {HTMLElement} target The target of the event.
++     * @param {Object} options Options for the event. Either keyCode or charCode
++     *                         are required.
++     * @method fireKeyEvent
++     * @static
++     */     
++    fireKeyEvent : function (type /*:String*/, target /*:HTMLElement*/,
++                             options /*:Object*/) /*:Void*/ 
++    {
++        options = options || {};
++        this.simulateKeyEvent(target, type, options.bubbles,
++            options.cancelable, options.view, options.ctrlKey,
++            options.altKey, options.shiftKey, options.metaKey, 
++            options.keyCode, options.charCode);    
++    },
++    
++    /**
++     * Simulates a keydown event on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method keydown
++     * @static
++     */
++    keydown : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireKeyEvent("keydown", target, options);
++    },
++    
++    /**
++     * Simulates a keypress on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method keypress
++     * @static
++     */
++    keypress : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireKeyEvent("keypress", target, options);
++    },
++    
++    /**
++     * Simulates a keyup event on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method keyup
++     * @static
++     */
++    keyup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireKeyEvent("keyup", target, options);
++    }
++    
++
++};
++YAHOO.register("event-simulate", YAHOO.util.UserAction, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event-simulate/event-simulate-min.js b/pylons_app/public/js/yui/event-simulate/event-simulate-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-simulate/event-simulate-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.UserAction={simulateKeyEvent:function(F,J,E,C,L,B,A,K,H,N,M){F=YAHOO.util.Dom.get(F);if(!F){throw new Error("simulateKeyEvent(): Invalid target.");}if(YAHOO.lang.isString(J)){J=J.toLowerCase();switch(J){case"keyup":case"keydown":case"keypress":break;case"textevent":J="keypress";break;default:throw new Error("simulateKeyEvent(): Event type '"+J+"' not supported.");}}else{throw new Error("simulateKeyEvent(): Event type must be a string.");}if(!YAHOO.lang.isBoolean(E)){E=true;}if(!YAHOO.lang.isBoolean(C)){C=true;}if(!YAHOO.lang.isObject(L)){L=window;}if(!YAHOO.lang.isBoolean(B)){B=false;}if(!YAHOO.lang.isBoolean(A)){A=false;}if(!YAHOO.lang.isBoolean(K)){K=false;}if(!YAHOO.lang.isBoolean(H)){H=false;}if(!YAHOO.lang.isNumber(N)){N=0;}if(!YAHOO.lang.isNumber(M)){M=0;}var I=null;if(YAHOO.lang.isFunction(document.createEvent)){try{I=document.createEvent("KeyEvents");I.initKeyEvent(J,E,C,L,B,A,K,H,N,M);}catch(G){try{I=document.createEvent("Events");}catch(D){I=document.createEvent("UIEvents");}finally{I.initEvent(J,E,C);I.view=L;I.altKey=A;I.ctrlKey=B;I.shiftKey=K;I.metaKey=H;I.keyCode=N;I.charCode=M;}}F.dispatchEvent(I);}else{if(YAHOO.lang.isObject(document.createEventObject)){I=document.createEventObject();I.bubbles=E;I.cancelable=C;I.view=L;I.ctrlKey=B;I.altKey=A;I.shiftKey=K;I.metaKey=H;I.keyCode=(M>0)?M:N;F.fireEvent("on"+J,I);}else{throw new Error("simulateKeyEvent(): No event simulation framework present.");}}},simulateMouseEvent:function(K,P,H,E,Q,J,G,F,D,B,C,A,O,M,I,L){K=YAHOO.util.Dom.get(K);if(!K){throw new Error("simulateMouseEvent(): Invalid target.");}if(YAHOO.lang.isString(P)){P=P.toLowerCase();switch(P){case"mouseover":case"mouseout":case"mousedown":case"mouseup":case"click":case"dblclick":case"mousemove":break;default:throw new Error("simulateMouseEvent(): Event type '"+P+"' not supported.");}}else{throw new Error("simulateMouseEvent(): Event type must be a string.");}if(!YAHOO.lang.isBoolean(H)){H=true;}if(!YAHOO.lang.isBoolean(E)){E=(P!="mousemove");}if(!YAHOO.lang.isObject(Q)){Q=window;}if(!YAHOO.lang.isNumber(J)){J=1;}if(!YAHOO.lang.isNumber(G)){G=0;}if(!YAHOO.lang.isNumber(F)){F=0;}if(!YAHOO.lang.isNumber(D)){D=0;}if(!YAHOO.lang.isNumber(B)){B=0;}if(!YAHOO.lang.isBoolean(C)){C=false;}if(!YAHOO.lang.isBoolean(A)){A=false;}if(!YAHOO.lang.isBoolean(O)){O=false;}if(!YAHOO.lang.isBoolean(M)){M=false;}if(!YAHOO.lang.isNumber(I)){I=0;}var N=null;if(YAHOO.lang.isFunction(document.createEvent)){N=document.createEvent("MouseEvents");if(N.initMouseEvent){N.initMouseEvent(P,H,E,Q,J,G,F,D,B,C,A,O,M,I,L);}else{N=document.createEvent("UIEvents");N.initEvent(P,H,E);N.view=Q;N.detail=J;N.screenX=G;N.screenY=F;N.clientX=D;N.clientY=B;N.ctrlKey=C;N.altKey=A;N.metaKey=M;N.shiftKey=O;N.button=I;N.relatedTarget=L;}if(L&&!N.relatedTarget){if(P=="mouseout"){N.toElement=L;}else{if(P=="mouseover"){N.fromElement=L;}}}K.dispatchEvent(N);}else{if(YAHOO.lang.isObject(document.createEventObject)){N=document.createEventObject();N.bubbles=H;N.cancelable=E;N.view=Q;N.detail=J;N.screenX=G;N.screenY=F;N.clientX=D;N.clientY=B;N.ctrlKey=C;N.altKey=A;N.metaKey=M;N.shiftKey=O;switch(I){case 0:N.button=1;break;case 1:N.button=4;break;case 2:break;default:N.button=0;}N.relatedTarget=L;K.fireEvent("on"+P,N);}else{throw new Error("simulateMouseEvent(): No event simulation framework present.");}}},fireMouseEvent:function(C,B,A){A=A||{};this.simulateMouseEvent(C,B,A.bubbles,A.cancelable,A.view,A.detail,A.screenX,A.screenY,A.clientX,A.clientY,A.ctrlKey,A.altKey,A.shiftKey,A.metaKey,A.button,A.relatedTarget);},click:function(B,A){this.fireMouseEvent(B,"click",A);},dblclick:function(B,A){this.fireMouseEvent(B,"dblclick",A);},mousedown:function(B,A){this.fireMouseEvent(B,"mousedown",A);},mousemove:function(B,A){this.fireMouseEvent(B,"mousemove",A);},mouseout:function(B,A){this.fireMouseEvent(B,"mouseout",A);},mouseover:function(B,A){this.fireMouseEvent(B,"mouseover",A);},mouseup:function(B,A){this.fireMouseEvent(B,"mouseup",A);},fireKeyEvent:function(B,C,A){A=A||{};this.simulateKeyEvent(C,B,A.bubbles,A.cancelable,A.view,A.ctrlKey,A.altKey,A.shiftKey,A.metaKey,A.keyCode,A.charCode);},keydown:function(B,A){this.fireKeyEvent("keydown",B,A);},keypress:function(B,A){this.fireKeyEvent("keypress",B,A);},keyup:function(B,A){this.fireKeyEvent("keyup",B,A);}};YAHOO.register("event-simulate",YAHOO.util.UserAction,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/event-simulate/event-simulate.js b/pylons_app/public/js/yui/event-simulate/event-simulate.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event-simulate/event-simulate.js
+@@ -0,0 +1,622 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++/**
++ * DOM event simulation utility
++ * @module event-simulate
++ * @namespace YAHOO.util
++ * @requires yahoo,dom,event
++ */
++
++/**
++ * The UserAction object provides functions that simulate events occurring in
++ * the browser. Since these are simulated events, they do not behave exactly
++ * as regular, user-initiated events do, but can be used to test simple
++ * user interactions safely.
++ *
++ * @namespace YAHOO.util
++ * @class UserAction
++ * @static
++ */
++YAHOO.util.UserAction = {
++
++    //--------------------------------------------------------------------------
++    // Generic event methods
++    //--------------------------------------------------------------------------
++
++    /**
++     * Simulates a key event using the given event information to populate
++     * the generated event object. This method does browser-equalizing
++     * calculations to account for differences in the DOM and IE event models
++     * as well as different browser quirks. Note: keydown causes Safari 2.x to
++     * crash.
++     * @method simulateKeyEvent
++     * @private
++     * @static
++     * @param {HTMLElement} target The target of the given event.
++     * @param {String} type The type of event to fire. This can be any one of
++     *      the following: keyup, keydown, and keypress.
++     * @param {Boolean} bubbles (Optional) Indicates if the event can be
++     *      bubbled up. DOM Level 3 specifies that all key events bubble by
++     *      default. The default is true.
++     * @param {Boolean} cancelable (Optional) Indicates if the event can be
++     *      canceled using preventDefault(). DOM Level 3 specifies that all
++     *      key events can be cancelled. The default 
++     *      is true.
++     * @param {Window} view (Optional) The view containing the target. This is
++     *      typically the window object. The default is window.
++     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {int} keyCode (Optional) The code for the key that is in use. 
++     *      The default is 0.
++     * @param {int} charCode (Optional) The Unicode code for the character
++     *      associated with the key being used. The default is 0.
++     */
++    simulateKeyEvent : function (target /*:HTMLElement*/, type /*:String*/, 
++                                 bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
++                                 view /*:Window*/,
++                                 ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
++                                 shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
++                                 keyCode /*:int*/,        charCode /*:int*/) /*:Void*/                             
++    {
++        //check target
++        target = YAHOO.util.Dom.get(target);        
++        if (!target){
++            throw new Error("simulateKeyEvent(): Invalid target.");
++        }
++        
++        //check event type
++        if (YAHOO.lang.isString(type)){
++            type = type.toLowerCase();
++            switch(type){
++                case "keyup":
++                case "keydown":
++                case "keypress":
++                    break;
++                case "textevent": //DOM Level 3
++                    type = "keypress";
++                    break;
++                    // @TODO was the fallthrough intentional, if so throw error
++                default:
++                    throw new Error("simulateKeyEvent(): Event type '" + type + "' not supported.");
++            }
++        } else {
++            throw new Error("simulateKeyEvent(): Event type must be a string.");
++        }
++        
++        //setup default values
++        if (!YAHOO.lang.isBoolean(bubbles)){
++            bubbles = true; //all key events bubble
++        }
++        if (!YAHOO.lang.isBoolean(cancelable)){
++            cancelable = true; //all key events can be cancelled
++        }
++        if (!YAHOO.lang.isObject(view)){
++            view = window; //view is typically window
++        }
++        if (!YAHOO.lang.isBoolean(ctrlKey)){
++            ctrlKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(altKey)){
++            altKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(shiftKey)){
++            shiftKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(metaKey)){
++            metaKey = false;
++        }
++        if (!YAHOO.lang.isNumber(keyCode)){
++            keyCode = 0;
++        }
++        if (!YAHOO.lang.isNumber(charCode)){
++            charCode = 0; 
++        }
++
++        //try to create a mouse event
++        var customEvent /*:MouseEvent*/ = null;
++            
++        //check for DOM-compliant browsers first
++        if (YAHOO.lang.isFunction(document.createEvent)){
++        
++            try {
++                
++                //try to create key event
++                customEvent = document.createEvent("KeyEvents");
++                
++                /*
++                 * Interesting problem: Firefox implemented a non-standard
++                 * version of initKeyEvent() based on DOM Level 2 specs.
++                 * Key event was removed from DOM Level 2 and re-introduced
++                 * in DOM Level 3 with a different interface. Firefox is the
++                 * only browser with any implementation of Key Events, so for
++                 * now, assume it's Firefox if the above line doesn't error.
++                 */
++                //TODO: Decipher between Firefox's implementation and a correct one.
++                customEvent.initKeyEvent(type, bubbles, cancelable, view, ctrlKey,
++                    altKey, shiftKey, metaKey, keyCode, charCode);       
++                
++            } catch (ex /*:Error*/){
++
++                /*
++                 * If it got here, that means key events aren't officially supported. 
++                 * Safari/WebKit is a real problem now. WebKit 522 won't let you
++                 * set keyCode, charCode, or other properties if you use a
++                 * UIEvent, so we first must try to create a generic event. The
++                 * fun part is that this will throw an error on Safari 2.x. The
++                 * end result is that we need another try...catch statement just to
++                 * deal with this mess.
++                 */
++                try {
++
++                    //try to create generic event - will fail in Safari 2.x
++                    customEvent = document.createEvent("Events");
++
++                } catch (uierror /*:Error*/){
++
++                    //the above failed, so create a UIEvent for Safari 2.x
++                    customEvent = document.createEvent("UIEvents");
++
++                } finally {
++
++                    customEvent.initEvent(type, bubbles, cancelable);
++    
++                    //initialize
++                    customEvent.view = view;
++                    customEvent.altKey = altKey;
++                    customEvent.ctrlKey = ctrlKey;
++                    customEvent.shiftKey = shiftKey;
++                    customEvent.metaKey = metaKey;
++                    customEvent.keyCode = keyCode;
++                    customEvent.charCode = charCode;
++          
++                }          
++             
++            }
++            
++            //fire the event
++            target.dispatchEvent(customEvent);
++
++        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
++        
++            //create an IE event object
++            customEvent = document.createEventObject();
++            
++            //assign available properties
++            customEvent.bubbles = bubbles;
++            customEvent.cancelable = cancelable;
++            customEvent.view = view;
++            customEvent.ctrlKey = ctrlKey;
++            customEvent.altKey = altKey;
++            customEvent.shiftKey = shiftKey;
++            customEvent.metaKey = metaKey;
++            
++            /*
++             * IE doesn't support charCode explicitly. CharCode should
++             * take precedence over any keyCode value for accurate
++             * representation.
++             */
++            customEvent.keyCode = (charCode > 0) ? charCode : keyCode;
++            
++            //fire the event
++            target.fireEvent("on" + type, customEvent);  
++                    
++        } else {
++            throw new Error("simulateKeyEvent(): No event simulation framework present.");
++        }
++    },
++
++    /**
++     * Simulates a mouse event using the given event information to populate
++     * the generated event object. This method does browser-equalizing
++     * calculations to account for differences in the DOM and IE event models
++     * as well as different browser quirks.
++     * @method simulateMouseEvent
++     * @private
++     * @static
++     * @param {HTMLElement} target The target of the given event.
++     * @param {String} type The type of event to fire. This can be any one of
++     *      the following: click, dblclick, mousedown, mouseup, mouseout,
++     *      mouseover, and mousemove.
++     * @param {Boolean} bubbles (Optional) Indicates if the event can be
++     *      bubbled up. DOM Level 2 specifies that all mouse events bubble by
++     *      default. The default is true.
++     * @param {Boolean} cancelable (Optional) Indicates if the event can be
++     *      canceled using preventDefault(). DOM Level 2 specifies that all
++     *      mouse events except mousemove can be cancelled. The default 
++     *      is true for all events except mousemove, for which the default 
++     *      is false.
++     * @param {Window} view (Optional) The view containing the target. This is
++     *      typically the window object. The default is window.
++     * @param {int} detail (Optional) The number of times the mouse button has
++     *      been used. The default value is 1.
++     * @param {int} screenX (Optional) The x-coordinate on the screen at which
++     *      point the event occured. The default is 0.
++     * @param {int} screenY (Optional) The y-coordinate on the screen at which
++     *      point the event occured. The default is 0.
++     * @param {int} clientX (Optional) The x-coordinate on the client at which
++     *      point the event occured. The default is 0.
++     * @param {int} clientY (Optional) The y-coordinate on the client at which
++     *      point the event occured. The default is 0.
++     * @param {Boolean} ctrlKey (Optional) Indicates if one of the CTRL keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} altKey (Optional) Indicates if one of the ALT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} shiftKey (Optional) Indicates if one of the SHIFT keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {Boolean} metaKey (Optional) Indicates if one of the META keys
++     *      is pressed while the event is firing. The default is false.
++     * @param {int} button (Optional) The button being pressed while the event
++     *      is executing. The value should be 0 for the primary mouse button
++     *      (typically the left button), 1 for the terciary mouse button
++     *      (typically the middle button), and 2 for the secondary mouse button
++     *      (typically the right button). The default is 0.
++     * @param {HTMLElement} relatedTarget (Optional) For mouseout events,
++     *      this is the element that the mouse has moved to. For mouseover
++     *      events, this is the element that the mouse has moved from. This
++     *      argument is ignored for all other events. The default is null.
++     */
++    simulateMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
++                                   bubbles /*:Boolean*/,  cancelable /*:Boolean*/,    
++                                   view /*:Window*/,        detail /*:int*/, 
++                                   screenX /*:int*/,        screenY /*:int*/, 
++                                   clientX /*:int*/,        clientY /*:int*/,       
++                                   ctrlKey /*:Boolean*/,    altKey /*:Boolean*/, 
++                                   shiftKey /*:Boolean*/,   metaKey /*:Boolean*/, 
++                                   button /*:int*/,         relatedTarget /*:HTMLElement*/) /*:Void*/
++    {
++        
++        //check target
++        target = YAHOO.util.Dom.get(target);        
++        if (!target){
++            throw new Error("simulateMouseEvent(): Invalid target.");
++        }
++        
++        //check event type
++        if (YAHOO.lang.isString(type)){
++            type = type.toLowerCase();
++            switch(type){
++                case "mouseover":
++                case "mouseout":
++                case "mousedown":
++                case "mouseup":
++                case "click":
++                case "dblclick":
++                case "mousemove":
++                    break;
++                default:
++                    throw new Error("simulateMouseEvent(): Event type '" + type + "' not supported.");
++            }
++        } else {
++            throw new Error("simulateMouseEvent(): Event type must be a string.");
++        }
++        
++        //setup default values
++        if (!YAHOO.lang.isBoolean(bubbles)){
++            bubbles = true; //all mouse events bubble
++        }
++        if (!YAHOO.lang.isBoolean(cancelable)){
++            cancelable = (type != "mousemove"); //mousemove is the only one that can't be cancelled
++        }
++        if (!YAHOO.lang.isObject(view)){
++            view = window; //view is typically window
++        }
++        if (!YAHOO.lang.isNumber(detail)){
++            detail = 1;  //number of mouse clicks must be at least one
++        }
++        if (!YAHOO.lang.isNumber(screenX)){
++            screenX = 0; 
++        }
++        if (!YAHOO.lang.isNumber(screenY)){
++            screenY = 0; 
++        }
++        if (!YAHOO.lang.isNumber(clientX)){
++            clientX = 0; 
++        }
++        if (!YAHOO.lang.isNumber(clientY)){
++            clientY = 0; 
++        }
++        if (!YAHOO.lang.isBoolean(ctrlKey)){
++            ctrlKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(altKey)){
++            altKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(shiftKey)){
++            shiftKey = false;
++        }
++        if (!YAHOO.lang.isBoolean(metaKey)){
++            metaKey = false;
++        }
++        if (!YAHOO.lang.isNumber(button)){
++            button = 0; 
++        }
++
++        //try to create a mouse event
++        var customEvent /*:MouseEvent*/ = null;
++            
++        //check for DOM-compliant browsers first
++        if (YAHOO.lang.isFunction(document.createEvent)){
++        
++            customEvent = document.createEvent("MouseEvents");
++        
++            //Safari 2.x (WebKit 418) still doesn't implement initMouseEvent()
++            if (customEvent.initMouseEvent){
++                customEvent.initMouseEvent(type, bubbles, cancelable, view, detail,
++                                     screenX, screenY, clientX, clientY, 
++                                     ctrlKey, altKey, shiftKey, metaKey, 
++                                     button, relatedTarget);
++            } else { //Safari
++            
++                //the closest thing available in Safari 2.x is UIEvents
++                customEvent = document.createEvent("UIEvents");
++                customEvent.initEvent(type, bubbles, cancelable);
++                customEvent.view = view;
++                customEvent.detail = detail;
++                customEvent.screenX = screenX;
++                customEvent.screenY = screenY;
++                customEvent.clientX = clientX;
++                customEvent.clientY = clientY;
++                customEvent.ctrlKey = ctrlKey;
++                customEvent.altKey = altKey;
++                customEvent.metaKey = metaKey;
++                customEvent.shiftKey = shiftKey;
++                customEvent.button = button;
++                customEvent.relatedTarget = relatedTarget;
++            }
++            
++            /*
++             * Check to see if relatedTarget has been assigned. Firefox
++             * versions less than 2.0 don't allow it to be assigned via
++             * initMouseEvent() and the property is readonly after event
++             * creation, so in order to keep YAHOO.util.getRelatedTarget()
++             * working, assign to the IE proprietary toElement property
++             * for mouseout event and fromElement property for mouseover
++             * event.
++             */
++            if (relatedTarget && !customEvent.relatedTarget){
++                if (type == "mouseout"){
++                    customEvent.toElement = relatedTarget;
++                } else if (type == "mouseover"){
++                    customEvent.fromElement = relatedTarget;
++                }
++            }
++            
++            //fire the event
++            target.dispatchEvent(customEvent);
++
++        } else if (YAHOO.lang.isObject(document.createEventObject)){ //IE
++        
++            //create an IE event object
++            customEvent = document.createEventObject();
++            
++            //assign available properties
++            customEvent.bubbles = bubbles;
++            customEvent.cancelable = cancelable;
++            customEvent.view = view;
++            customEvent.detail = detail;
++            customEvent.screenX = screenX;
++            customEvent.screenY = screenY;
++            customEvent.clientX = clientX;
++            customEvent.clientY = clientY;
++            customEvent.ctrlKey = ctrlKey;
++            customEvent.altKey = altKey;
++            customEvent.metaKey = metaKey;
++            customEvent.shiftKey = shiftKey;
++
++            //fix button property for IE's wacky implementation
++            switch(button){
++                case 0:
++                    customEvent.button = 1;
++                    break;
++                case 1:
++                    customEvent.button = 4;
++                    break;
++                case 2:
++                    //leave as is
++                    break;
++                default:
++                    customEvent.button = 0;                    
++            }    
++
++            /*
++             * Have to use relatedTarget because IE won't allow assignment
++             * to toElement or fromElement on generic events. This keeps
++             * YAHOO.util.customEvent.getRelatedTarget() functional.
++             */
++            customEvent.relatedTarget = relatedTarget;
++            
++            //fire the event
++            target.fireEvent("on" + type, customEvent);
++                    
++        } else {
++            throw new Error("simulateMouseEvent(): No event simulation framework present.");
++        }
++    },
++   
++    //--------------------------------------------------------------------------
++    // Mouse events
++    //--------------------------------------------------------------------------
++
++    /**
++     * Simulates a mouse event on a particular element.
++     * @param {HTMLElement} target The element to click on.
++     * @param {String} type The type of event to fire. This can be any one of
++     *      the following: click, dblclick, mousedown, mouseup, mouseout,
++     *      mouseover, and mousemove.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseEvent
++     * @static
++     */
++    fireMouseEvent : function (target /*:HTMLElement*/, type /*:String*/, 
++                           options /*:Object*/) /*:Void*/
++    {
++        options = options || {};
++        this.simulateMouseEvent(target, type, options.bubbles,
++            options.cancelable, options.view, options.detail, options.screenX,        
++            options.screenY, options.clientX, options.clientY, options.ctrlKey,
++            options.altKey, options.shiftKey, options.metaKey, options.button,         
++            options.relatedTarget);        
++    },
++
++    /**
++     * Simulates a click on a particular element.
++     * @param {HTMLElement} target The element to click on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method click
++     * @static     
++     */
++    click : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "click", options);
++    },
++    
++    /**
++     * Simulates a double click on a particular element.
++     * @param {HTMLElement} target The element to double click on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method dblclick
++     * @static
++     */
++    dblclick : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireMouseEvent( target, "dblclick", options);
++    },
++    
++    /**
++     * Simulates a mousedown on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mousedown
++     * @static
++     */
++    mousedown : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mousedown", options);
++    },
++    
++    /**
++     * Simulates a mousemove on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mousemove
++     * @static
++     */
++    mousemove : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mousemove", options);
++    },
++    
++    /**
++     * Simulates a mouseout event on a particular element. Use "relatedTarget"
++     * on the options object to specify where the mouse moved to.
++     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
++     * toElement is assigned in its place. IE doesn't allow toElement to be
++     * be assigned, so relatedTarget is assigned in its place. Both of these
++     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
++     * in both browsers.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseout
++     * @static
++     */
++    mouseout : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mouseout", options);
++    },
++    
++    /**
++     * Simulates a mouseover event on a particular element. Use "relatedTarget"
++     * on the options object to specify where the mouse moved from.
++     * Quirks: Firefox less than 2.0 doesn't set relatedTarget properly, so
++     * fromElement is assigned in its place. IE doesn't allow fromElement to be
++     * be assigned, so relatedTarget is assigned in its place. Both of these
++     * concessions allow YAHOO.util.Event.getRelatedTarget() to work correctly
++     * in both browsers.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseover
++     * @static
++     */
++    mouseover : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mouseover", options);
++    },
++    
++    /**
++     * Simulates a mouseup on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method mouseup
++     * @static
++     */
++    mouseup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireMouseEvent(target, "mouseup", options);
++    },
++    
++    //--------------------------------------------------------------------------
++    // Key events
++    //--------------------------------------------------------------------------
++
++    /**
++     * Fires an event that normally would be fired by the keyboard (keyup,
++     * keydown, keypress). Make sure to specify either keyCode or charCode as
++     * an option.
++     * @private
++     * @param {String} type The type of event ("keyup", "keydown" or "keypress").
++     * @param {HTMLElement} target The target of the event.
++     * @param {Object} options Options for the event. Either keyCode or charCode
++     *                         are required.
++     * @method fireKeyEvent
++     * @static
++     */     
++    fireKeyEvent : function (type /*:String*/, target /*:HTMLElement*/,
++                             options /*:Object*/) /*:Void*/ 
++    {
++        options = options || {};
++        this.simulateKeyEvent(target, type, options.bubbles,
++            options.cancelable, options.view, options.ctrlKey,
++            options.altKey, options.shiftKey, options.metaKey, 
++            options.keyCode, options.charCode);    
++    },
++    
++    /**
++     * Simulates a keydown event on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method keydown
++     * @static
++     */
++    keydown : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireKeyEvent("keydown", target, options);
++    },
++    
++    /**
++     * Simulates a keypress on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method keypress
++     * @static
++     */
++    keypress : function (target /*:HTMLElement*/, options /*:Object*/) /*:Void*/ {
++        this.fireKeyEvent("keypress", target, options);
++    },
++    
++    /**
++     * Simulates a keyup event on a particular element.
++     * @param {HTMLElement} target The element to act on.
++     * @param {Object} options Additional event options (use DOM standard names).
++     * @method keyup
++     * @static
++     */
++    keyup : function (target /*:HTMLElement*/, options /*Object*/) /*:Void*/ {
++        this.fireKeyEvent("keyup", target, options);
++    }
++    
++
++};
++YAHOO.register("event-simulate", YAHOO.util.UserAction, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event/event-debug.js b/pylons_app/public/js/yui/event/event-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event/event-debug.js
+@@ -0,0 +1,2524 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++/**
++ * The CustomEvent class lets you define events for your application
++ * that can be subscribed to by one or more independent component.
++ *
++ * @param {String}  type The type of event, which is passed to the callback
++ *                  when the event fires
++ * @param {Object}  context The context the event will fire from.  "this" will
++ *                  refer to this object in the callback.  Default value: 
++ *                  the window object.  The listener can override this.
++ * @param {boolean} silent pass true to prevent the event from writing to
++ *                  the debugsystem
++ * @param {int}     signature the signature that the custom event subscriber
++ *                  will receive. YAHOO.util.CustomEvent.LIST or 
++ *                  YAHOO.util.CustomEvent.FLAT.  The default is
++ *                  YAHOO.util.CustomEvent.LIST.
++ * @param fireOnce {boolean} If configured to fire once, the custom event 
++ * will only notify subscribers a single time regardless of how many times 
++ * the event is fired.  In addition, new subscribers will be notified 
++ * immediately if the event has already been fired.
++ * @namespace YAHOO.util
++ * @class CustomEvent
++ * @constructor
++ */
++YAHOO.util.CustomEvent = function(type, context, silent, signature, fireOnce) {
++
++    /**
++     * The type of event, returned to subscribers when the event fires
++     * @property type
++     * @type string
++     */
++    this.type = type;
++
++    /**
++     * The context the event will fire from by default. Defaults to the window obj.
++     * @property scope
++     * @type object
++     */
++    this.scope = context || window;
++
++    /**
++     * By default all custom events are logged in the debug build. Set silent to true 
++     * to disable debug output for this event.
++     * @property silent
++     * @type boolean
++     */
++    this.silent = silent;
++
++    /**
++     * If configured to fire once, the custom event will only notify subscribers
++     * a single time regardless of how many times the event is fired.  In addition,
++     * new subscribers will be notified immediately if the event has already been
++     * fired.
++     * @property fireOnce
++     * @type boolean
++     * @default false
++     */
++    this.fireOnce = fireOnce;
++
++    /**
++     * Indicates whether or not this event has ever been fired.
++     * @property fired
++     * @type boolean
++     * @default false
++     */
++    this.fired = false;
++
++    /**
++     * For fireOnce events the arguments the event was fired with are stored
++     * so that new subscribers get the proper payload.
++     * @property firedWith
++     * @type Array
++     */
++    this.firedWith = null;
++
++    /**
++     * Custom events support two styles of arguments provided to the event
++     * subscribers.  
++     * <ul>
++     * <li>YAHOO.util.CustomEvent.LIST: 
++     *   <ul>
++     *   <li>param1: event name</li>
++     *   <li>param2: array of arguments sent to fire</li>
++     *   <li>param3: <optional> a custom object supplied by the subscriber</li>
++     *   </ul>
++     * </li>
++     * <li>YAHOO.util.CustomEvent.FLAT
++     *   <ul>
++     *   <li>param1: the first argument passed to fire.  If you need to
++     *           pass multiple parameters, use and array or object literal</li>
++     *   <li>param2: <optional> a custom object supplied by the subscriber</li>
++     *   </ul>
++     * </li>
++     * </ul>
++     *   @property signature
++     *   @type int
++     */
++    this.signature = signature || YAHOO.util.CustomEvent.LIST;
++
++    /**
++     * The subscribers to this event
++     * @property subscribers
++     * @type Subscriber[]
++     */
++    this.subscribers = [];
++
++    if (!this.silent) {
++        YAHOO.log( "Creating " + this, "info", "Event" );
++    }
++
++    var onsubscribeType = "_YUICEOnSubscribe";
++
++    // Only add subscribe events for events that are not generated by 
++    // CustomEvent
++    if (type !== onsubscribeType) {
++
++        /**
++         * Custom events provide a custom event that fires whenever there is
++         * a new subscriber to the event.  This provides an opportunity to
++         * handle the case where there is a non-repeating event that has
++         * already fired has a new subscriber.  
++         *
++         * @event subscribeEvent
++         * @type YAHOO.util.CustomEvent
++         * @param fn {Function} The function to execute
++         * @param obj <Object> An object to be passed along when the event fires. 
++         * Defaults to the custom event.
++         * @param override <boolean|Object> If true, the obj passed in becomes the 
++         * execution context of the listener. If an object, that object becomes 
++         * the execution context. Defaults to the custom event.
++         */
++        this.subscribeEvent = 
++                new YAHOO.util.CustomEvent(onsubscribeType, this, true);
++
++    } 
++
++
++    /**
++     * In order to make it possible to execute the rest of the subscriber
++     * stack when one thows an exception, the subscribers exceptions are
++     * caught.  The most recent exception is stored in this property
++     * @property lastError
++     * @type Error
++     */
++    this.lastError = null;
++};
++
++/**
++ * Subscriber listener sigature constant.  The LIST type returns three
++ * parameters: the event type, the array of args passed to fire, and
++ * the optional custom object
++ * @property YAHOO.util.CustomEvent.LIST
++ * @static
++ * @type int
++ */
++YAHOO.util.CustomEvent.LIST = 0;
++
++/**
++ * Subscriber listener sigature constant.  The FLAT type returns two
++ * parameters: the first argument passed to fire and the optional 
++ * custom object
++ * @property YAHOO.util.CustomEvent.FLAT
++ * @static
++ * @type int
++ */
++YAHOO.util.CustomEvent.FLAT = 1;
++
++YAHOO.util.CustomEvent.prototype = {
++
++    /**
++     * Subscribes the caller to this event
++     * @method subscribe
++     * @param {Function} fn        The function to execute
++     * @param {Object}   obj       An object to be passed along when the event fires.
++     * overrideContext <boolean|Object> If true, the obj passed in becomes the execution 
++     * context of the listener. If an object, that object becomes the execution context.
++     */
++    subscribe: function(fn, obj, overrideContext) {
++
++        if (!fn) {
++throw new Error("Invalid callback for subscriber to '" + this.type + "'");
++        }
++
++        if (this.subscribeEvent) {
++            this.subscribeEvent.fire(fn, obj, overrideContext);
++        }
++
++        var s = new YAHOO.util.Subscriber(fn, obj, overrideContext);
++
++        if (this.fireOnce && this.fired) {
++            this.notify(s, this.firedWith);
++        } else {
++            this.subscribers.push(s);
++        }
++    },
++
++    /**
++     * Unsubscribes subscribers.
++     * @method unsubscribe
++     * @param {Function} fn  The subscribed function to remove, if not supplied
++     *                       all will be removed
++     * @param {Object}   obj  The custom object passed to subscribe.  This is
++     *                        optional, but if supplied will be used to
++     *                        disambiguate multiple listeners that are the same
++     *                        (e.g., you subscribe many object using a function
++     *                        that lives on the prototype)
++     * @return {boolean} True if the subscriber was found and detached.
++     */
++    unsubscribe: function(fn, obj) {
++
++        if (!fn) {
++            return this.unsubscribeAll();
++        }
++
++        var found = false;
++        for (var i=0, len=this.subscribers.length; i<len; ++i) {
++            var s = this.subscribers[i];
++            if (s && s.contains(fn, obj)) {
++                this._delete(i);
++                found = true;
++            }
++        }
++
++        return found;
++    },
++
++    /**
++     * Notifies the subscribers.  The callback functions will be executed
++     * from the context specified when the event was created, and with the 
++     * following parameters:
++     *   <ul>
++     *   <li>The type of event</li>
++     *   <li>All of the arguments fire() was executed with as an array</li>
++     *   <li>The custom object (if any) that was passed into the subscribe() 
++     *       method</li>
++     *   </ul>
++     * @method fire 
++     * @param {Object*} arguments an arbitrary set of parameters to pass to 
++     *                            the handler.
++     * @return {boolean} false if one of the subscribers returned false, 
++     *                   true otherwise
++     */
++    fire: function() {
++
++        this.lastError = null;
++
++        var errors = [],
++            len=this.subscribers.length;
++
++
++        var args=[].slice.call(arguments, 0), ret=true, i, rebuild=false;
++
++        if (this.fireOnce) {
++            if (this.fired) {
++                YAHOO.log('fireOnce event has already fired: ' + this.type);
++                return true;
++            } else {
++                this.firedWith = args;
++            }
++        }
++
++        this.fired = true;
++
++        if (!len && this.silent) {
++            //YAHOO.log('DEBUG no subscribers');
++            return true;
++        }
++
++        if (!this.silent) {
++            YAHOO.log( "Firing "       + this  + ", " + 
++                       "args: "        + args  + ", " +
++                       "subscribers: " + len,                 
++                       "info", "Event"                  );
++        }
++
++        // make a copy of the subscribers so that there are
++        // no index problems if one subscriber removes another.
++        var subs = this.subscribers.slice();
++
++        for (i=0; i<len; ++i) {
++            var s = subs[i];
++            if (!s) {
++                rebuild=true;
++            } else {
++
++                ret = this.notify(s, args);
++
++                if (false === ret) {
++                    if (!this.silent) {
++                        YAHOO.log("Event stopped, sub " + i + " of " + len, "info", "Event");
++                    }
++
++                    break;
++                }
++            }
++        }
++
++        return (ret !== false);
++    },
++
++    notify: function(s, args) {
++
++        var ret, param=null, scope = s.getScope(this.scope),
++                 throwErrors = YAHOO.util.Event.throwErrors;
++
++        if (!this.silent) {
++            YAHOO.log( this.type + "-> " + s, "info", "Event" );
++        }
++
++        if (this.signature == YAHOO.util.CustomEvent.FLAT) {
++
++            if (args.length > 0) {
++                param = args[0];
++            }
++
++            try {
++                ret = s.fn.call(scope, param, s.obj);
++            } catch(e) {
++                this.lastError = e;
++                // errors.push(e);
++                YAHOO.log(this + " subscriber exception: " + e, "error", "Event");
++                if (throwErrors) {
++                    throw e;
++                }
++            }
++        } else {
++            try {
++                ret = s.fn.call(scope, this.type, args, s.obj);
++            } catch(ex) {
++                this.lastError = ex;
++                YAHOO.log(this + " subscriber exception: " + ex, "error", "Event");
++                if (throwErrors) {
++                    throw ex;
++                }
++            }
++        }
++
++        return ret;
++    },
++
++    /**
++     * Removes all listeners
++     * @method unsubscribeAll
++     * @return {int} The number of listeners unsubscribed
++     */
++    unsubscribeAll: function() {
++        var l = this.subscribers.length, i;
++        for (i=l-1; i>-1; i--) {
++            this._delete(i);
++        }
++
++        this.subscribers=[];
++
++        return l;
++    },
++
++    /**
++     * @method _delete
++     * @private
++     */
++    _delete: function(index) {
++        var s = this.subscribers[index];
++        if (s) {
++            delete s.fn;
++            delete s.obj;
++        }
++
++        // this.subscribers[index]=null;
++        this.subscribers.splice(index, 1);
++    },
++
++    /**
++     * @method toString
++     */
++    toString: function() {
++         return "CustomEvent: " + "'" + this.type  + "', " + 
++             "context: " + this.scope;
++
++    }
++};
++
++/////////////////////////////////////////////////////////////////////
++
++/**
++ * Stores the subscriber information to be used when the event fires.
++ * @param {Function} fn       The function to execute
++ * @param {Object}   obj      An object to be passed along when the event fires
++ * @param {boolean}  overrideContext If true, the obj passed in becomes the execution
++ *                            context of the listener
++ * @class Subscriber
++ * @constructor
++ */
++YAHOO.util.Subscriber = function(fn, obj, overrideContext) {
++
++    /**
++     * The callback that will be execute when the event fires
++     * @property fn
++     * @type function
++     */
++    this.fn = fn;
++
++    /**
++     * An optional custom object that will passed to the callback when
++     * the event fires
++     * @property obj
++     * @type object
++     */
++    this.obj = YAHOO.lang.isUndefined(obj) ? null : obj;
++
++    /**
++     * The default execution context for the event listener is defined when the
++     * event is created (usually the object which contains the event).
++     * By setting overrideContext to true, the execution context becomes the custom
++     * object passed in by the subscriber.  If overrideContext is an object, that 
++     * object becomes the context.
++     * @property overrideContext
++     * @type boolean|object
++     */
++    this.overrideContext = overrideContext;
++
++};
++
++/**
++ * Returns the execution context for this listener.  If overrideContext was set to true
++ * the custom obj will be the context.  If overrideContext is an object, that is the
++ * context, otherwise the default context will be used.
++ * @method getScope
++ * @param {Object} defaultScope the context to use if this listener does not
++ *                              override it.
++ */
++YAHOO.util.Subscriber.prototype.getScope = function(defaultScope) {
++    if (this.overrideContext) {
++        if (this.overrideContext === true) {
++            return this.obj;
++        } else {
++            return this.overrideContext;
++        }
++    }
++    return defaultScope;
++};
++
++/**
++ * Returns true if the fn and obj match this objects properties.
++ * Used by the unsubscribe method to match the right subscriber.
++ *
++ * @method contains
++ * @param {Function} fn the function to execute
++ * @param {Object} obj an object to be passed along when the event fires
++ * @return {boolean} true if the supplied arguments match this 
++ *                   subscriber's signature.
++ */
++YAHOO.util.Subscriber.prototype.contains = function(fn, obj) {
++    if (obj) {
++        return (this.fn == fn && this.obj == obj);
++    } else {
++        return (this.fn == fn);
++    }
++};
++
++/**
++ * @method toString
++ */
++YAHOO.util.Subscriber.prototype.toString = function() {
++    return "Subscriber { obj: " + this.obj  + 
++           ", overrideContext: " +  (this.overrideContext || "no") + " }";
++};
++
++/**
++ * The Event Utility provides utilities for managing DOM Events and tools
++ * for building event systems
++ *
++ * @module event
++ * @title Event Utility
++ * @namespace YAHOO.util
++ * @requires yahoo
++ */
++
++// The first instance of Event will win if it is loaded more than once.
++// @TODO this needs to be changed so that only the state data that needs to
++// be preserved is kept, while methods are overwritten/added as needed.
++// This means that the module pattern can't be used.
++if (!YAHOO.util.Event) {
++
++/**
++ * The event utility provides functions to add and remove event listeners,
++ * event cleansing.  It also tries to automatically remove listeners it
++ * registers during the unload event.
++ *
++ * @class Event
++ * @static
++ */
++    YAHOO.util.Event = function() {
++
++        /**
++         * True after the onload event has fired
++         * @property loadComplete
++         * @type boolean
++         * @static
++         * @private
++         */
++        var loadComplete =  false,
++
++        /**
++         * Cache of wrapped listeners
++         * @property listeners
++         * @type array
++         * @static
++         * @private
++         */
++        listeners = [],
++
++
++        /**
++         * User-defined unload function that will be fired before all events
++         * are detached
++         * @property unloadListeners
++         * @type array
++         * @static
++         * @private
++         */
++        unloadListeners = [],
++
++        /**
++         * The number of times to poll after window.onload.  This number is
++         * increased if additional late-bound handlers are requested after
++         * the page load.
++         * @property retryCount
++         * @static
++         * @private
++         */
++        retryCount = 0,
++
++        /**
++         * onAvailable listeners
++         * @property onAvailStack
++         * @static
++         * @private
++         */
++        onAvailStack = [],
++
++        /**
++         * Counter for auto id generation
++         * @property counter
++         * @static
++         * @private
++         */
++        counter = 0,
++        
++        /**
++         * Normalized keycodes for webkit/safari
++         * @property webkitKeymap
++         * @type {int: int}
++         * @private
++         * @static
++         * @final
++         */
++         webkitKeymap = {
++            63232: 38, // up
++            63233: 40, // down
++            63234: 37, // left
++            63235: 39, // right
++            63276: 33, // page up
++            63277: 34, // page down
++            25: 9      // SHIFT-TAB (Safari provides a different key code in
++                       // this case, even though the shiftKey modifier is set)
++        },
++
++		isIE = YAHOO.env.ua.ie,
++
++        // String constants used by the addFocusListener and removeFocusListener methods
++		
++       	FOCUSIN = "focusin",
++       	FOCUSOUT = "focusout";
++
++        return {
++
++            /**
++             * The number of times we should look for elements that are not
++             * in the DOM at the time the event is requested after the document
++             * has been loaded.  The default is 500@amp;40 ms, so it will poll
++             * for 20 seconds or until all outstanding handlers are bound
++             * (whichever comes first).
++             * @property POLL_RETRYS
++             * @type int
++             * @static
++             * @final
++             */
++            POLL_RETRYS: 500,
++
++            /**
++             * The poll interval in milliseconds
++             * @property POLL_INTERVAL
++             * @type int
++             * @static
++             * @final
++             */
++            POLL_INTERVAL: 40,
++
++            /**
++             * Element to bind, int constant
++             * @property EL
++             * @type int
++             * @static
++             * @final
++             */
++            EL: 0,
++
++            /**
++             * Type of event, int constant
++             * @property TYPE
++             * @type int
++             * @static
++             * @final
++             */
++            TYPE: 1,
++
++            /**
++             * Function to execute, int constant
++             * @property FN
++             * @type int
++             * @static
++             * @final
++             */
++            FN: 2,
++
++            /**
++             * Function wrapped for context correction and cleanup, int constant
++             * @property WFN
++             * @type int
++             * @static
++             * @final
++             */
++            WFN: 3,
++
++            /**
++             * Object passed in by the user that will be returned as a 
++             * parameter to the callback, int constant.  Specific to
++             * unload listeners
++             * @property OBJ
++             * @type int
++             * @static
++             * @final
++             */
++            UNLOAD_OBJ: 3,
++
++            /**
++             * Adjusted context, either the element we are registering the event
++             * on or the custom object passed in by the listener, int constant
++             * @property ADJ_SCOPE
++             * @type int
++             * @static
++             * @final
++             */
++            ADJ_SCOPE: 4,
++
++            /**
++             * The original obj passed into addListener
++             * @property OBJ
++             * @type int
++             * @static
++             * @final
++             */
++            OBJ: 5,
++
++            /**
++             * The original context parameter passed into addListener
++             * @property OVERRIDE
++             * @type int
++             * @static
++             * @final
++             */
++            OVERRIDE: 6,
++
++            /**
++             * The original capture parameter passed into addListener
++             * @property CAPTURE
++             * @type int
++             * @static
++             * @final
++             */
++			CAPTURE: 7,
++
++            /**
++             * addListener/removeListener can throw errors in unexpected scenarios.
++             * These errors are suppressed, the method returns false, and this property
++             * is set
++             * @property lastError
++             * @static
++             * @type Error
++             */
++            lastError: null,
++
++            /**
++             * Safari detection
++             * @property isSafari
++             * @private
++             * @static
++             * @deprecated use YAHOO.env.ua.webkit
++             */
++            isSafari: YAHOO.env.ua.webkit,
++            
++            /**
++             * webkit version
++             * @property webkit
++             * @type string
++             * @private
++             * @static
++             * @deprecated use YAHOO.env.ua.webkit
++             */
++            webkit: YAHOO.env.ua.webkit,
++            
++            /**
++             * IE detection 
++             * @property isIE
++             * @private
++             * @static
++             * @deprecated use YAHOO.env.ua.ie
++             */
++            isIE: isIE,
++
++            /**
++             * poll handle
++             * @property _interval
++             * @static
++             * @private
++             */
++            _interval: null,
++
++            /**
++             * document readystate poll handle
++             * @property _dri
++             * @static
++             * @private
++             */
++             _dri: null,
++
++
++            /**
++             * Map of special event types
++             * @property _specialTypes
++             * @static
++             * @private
++             */
++			_specialTypes: {
++				focusin: (isIE ? "focusin" : "focus"),
++				focusout: (isIE ? "focusout" : "blur")
++			},
++
++
++            /**
++             * True when the document is initially usable
++             * @property DOMReady
++             * @type boolean
++             * @static
++             */
++            DOMReady: false,
++
++            /**
++             * Errors thrown by subscribers of custom events are caught
++             * and the error message is written to the debug console.  If
++             * this property is set to true, it will also re-throw the
++             * error.
++             * @property throwErrors
++             * @type boolean
++             * @default false
++             */
++            throwErrors: false,
++
++
++            /**
++             * @method startInterval
++             * @static
++             * @private
++             */
++            startInterval: function() {
++                if (!this._interval) {
++                    // var self = this;
++                    // var callback = function() { self._tryPreloadAttach(); };
++                    // this._interval = setInterval(callback, this.POLL_INTERVAL);
++                    this._interval = YAHOO.lang.later(this.POLL_INTERVAL, this, this._tryPreloadAttach, null, true);
++                }
++            },
++
++            /**
++             * Executes the supplied callback when the item with the supplied
++             * id is found.  This is meant to be used to execute behavior as
++             * soon as possible as the page loads.  If you use this after the
++             * initial page load it will poll for a fixed time for the element.
++             * The number of times it will poll and the frequency are
++             * configurable.  By default it will poll for 10 seconds.
++             *
++             * <p>The callback is executed with a single parameter:
++             * the custom object parameter, if provided.</p>
++             *
++             * @method onAvailable
++             *
++             * @param {string||string[]}   id the id of the element, or an array
++             * of ids to look for.
++             * @param {function} fn what to execute when the element is found.
++             * @param {object}   obj an optional object to be passed back as
++             *                   a parameter to fn.
++             * @param {boolean|object}  overrideContext If set to true, fn will execute
++             *                   in the context of obj, if set to an object it
++             *                   will execute in the context of that object
++             * @param checkContent {boolean} check child node readiness (onContentReady)
++             * @static
++             */
++            onAvailable: function(id, fn, obj, overrideContext, checkContent) {
++
++                var a = (YAHOO.lang.isString(id)) ? [id] : id;
++
++                for (var i=0; i<a.length; i=i+1) {
++                    onAvailStack.push({id:         a[i], 
++                                       fn:         fn, 
++                                       obj:        obj, 
++                                       overrideContext:   overrideContext, 
++                                       checkReady: checkContent });
++                }
++
++                retryCount = this.POLL_RETRYS;
++
++                this.startInterval();
++            },
++
++            /**
++             * Works the same way as onAvailable, but additionally checks the
++             * state of sibling elements to determine if the content of the
++             * available element is safe to modify.
++             *
++             * <p>The callback is executed with a single parameter:
++             * the custom object parameter, if provided.</p>
++             *
++             * @method onContentReady
++             *
++             * @param {string}   id the id of the element to look for.
++             * @param {function} fn what to execute when the element is ready.
++             * @param {object}   obj an optional object to be passed back as
++             *                   a parameter to fn.
++             * @param {boolean|object}  overrideContext If set to true, fn will execute
++             *                   in the context of obj.  If an object, fn will
++             *                   exectute in the context of that object
++             *
++             * @static
++             */
++            onContentReady: function(id, fn, obj, overrideContext) {
++                this.onAvailable(id, fn, obj, overrideContext, true);
++            },
++
++            /**
++             * Executes the supplied callback when the DOM is first usable.  This
++             * will execute immediately if called after the DOMReady event has
++             * fired.   @todo the DOMContentReady event does not fire when the
++             * script is dynamically injected into the page.  This means the
++             * DOMReady custom event will never fire in FireFox or Opera when the
++             * library is injected.  It _will_ fire in Safari, and the IE 
++             * implementation would allow for us to fire it if the defered script
++             * is not available.  We want this to behave the same in all browsers.
++             * Is there a way to identify when the script has been injected 
++             * instead of included inline?  Is there a way to know whether the 
++             * window onload event has fired without having had a listener attached 
++             * to it when it did so?
++             *
++             * <p>The callback is a CustomEvent, so the signature is:</p>
++             * <p>type &lt;string&gt;, args &lt;array&gt;, customobject &lt;object&gt;</p>
++             * <p>For DOMReady events, there are no fire argments, so the
++             * signature is:</p>
++             * <p>"DOMReady", [], obj</p>
++             *
++             *
++             * @method onDOMReady
++             *
++             * @param {function} fn what to execute when the element is found.
++             * @param {object}   obj an optional object to be passed back as
++             *                   a parameter to fn.
++             * @param {boolean|object}  overrideContext If set to true, fn will execute
++             *                   in the context of obj, if set to an object it
++             *                   will execute in the context of that object
++             *
++             * @static
++             */
++            // onDOMReady: function(fn, obj, overrideContext) {
++            onDOMReady: function() {
++                this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent, arguments);
++            },
++
++
++            /**
++             * Appends an event handler
++             *
++             * @method _addListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {String}   sType     The type of event to append
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @param {boolen}      capture capture or bubble phase
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @private
++             * @static
++             */
++            _addListener: function(el, sType, fn, obj, overrideContext, bCapture) {
++
++                if (!fn || !fn.call) {
++                    YAHOO.log(sType + " addListener failed, invalid callback", "error", "Event");
++                    return false;
++                }
++
++                // The el argument can be an array of elements or element ids.
++                if ( this._isValidCollection(el)) {
++                    var ok = true;
++                    for (var i=0,len=el.length; i<len; ++i) {
++                        ok = this.on(el[i], 
++                                       sType, 
++                                       fn, 
++                                       obj, 
++                                       overrideContext) && ok;
++                    }
++                    return ok;
++
++                } else if (YAHOO.lang.isString(el)) {
++                    var oEl = this.getEl(el);
++                    // If the el argument is a string, we assume it is 
++                    // actually the id of the element.  If the page is loaded
++                    // we convert el to the actual element, otherwise we 
++                    // defer attaching the event until onload event fires
++
++                    // check to see if we need to delay hooking up the event 
++                    // until after the page loads.
++                    if (oEl) {
++                        el = oEl;
++                    } else {
++                        // defer adding the event until the element is available
++                        this.onAvailable(el, function() {
++                           YAHOO.util.Event._addListener(el, sType, fn, obj, overrideContext, bCapture);
++                        });
++
++                        return true;
++                    }
++                }
++
++                // Element should be an html element or an array if we get 
++                // here.
++                if (!el) {
++                    // this.logger.debug("unable to attach event " + sType);
++                    return false;
++                }
++
++                // we need to make sure we fire registered unload events 
++                // prior to automatically unhooking them.  So we hang on to 
++                // these instead of attaching them to the window and fire the
++                // handles explicitly during our one unload event.
++                if ("unload" == sType && obj !== this) {
++                    unloadListeners[unloadListeners.length] =
++                            [el, sType, fn, obj, overrideContext];
++                    return true;
++                }
++
++                // this.logger.debug("Adding handler: " + el + ", " + sType);
++
++                // if the user chooses to override the context, we use the custom
++                // object passed in, otherwise the executing context will be the
++                // HTML element that the event is registered on
++                var context = el;
++                if (overrideContext) {
++                    if (overrideContext === true) {
++                        context = obj;
++                    } else {
++                        context = overrideContext;
++                    }
++                }
++
++                // wrap the function so we can return the obj object when
++                // the event fires;
++                var wrappedFn = function(e) {
++                        return fn.call(context, YAHOO.util.Event.getEvent(e, el), 
++                                obj);
++                    };
++
++                var li = [el, sType, fn, wrappedFn, context, obj, overrideContext, bCapture];
++                var index = listeners.length;
++                // cache the listener so we can try to automatically unload
++                listeners[index] = li;
++
++                try {
++                    this._simpleAdd(el, sType, wrappedFn, bCapture);
++                } catch(ex) {
++                    // handle an error trying to attach an event.  If it fails
++                    // we need to clean up the cache
++                    this.lastError = ex;
++                    this.removeListener(el, sType, fn);
++                    return false;
++                }
++
++                return true;
++                
++            },
++
++            /**
++             * Checks to see if the type requested is a special type 
++			 * (as defined by the _specialTypes hash), and (if so) returns 
++			 * the special type name.
++             *
++             * @method _getType
++             *
++             * @param {String}   sType     The type to look up
++             * @private
++             */
++			_getType: function (type) {
++			
++				return this._specialTypes[type] || type;
++				
++			},
++
++
++            /**
++             * Appends an event handler
++             *
++             * @method addListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {String}   sType     The type of event to append
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @static
++             */
++            addListener: function (el, sType, fn, obj, overrideContext) {
++
++				var capture = ((sType == FOCUSIN || sType == FOCUSOUT) && !YAHOO.env.ua.ie) ? true : false;
++
++                return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture);
++
++        	},
++
++
++            /**
++             * Attaches a focusin event listener to the specified element for 
++ 			 * the purpose of listening for the focus event on the element's 
++             * descendants.
++             * @method addFocusListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @static
++			* @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
++             */
++            addFocusListener: function (el, fn, obj, overrideContext) {
++                return this.on(el, FOCUSIN, fn, obj, overrideContext);
++            },          
++
++
++            /**
++             * Removes a focusin event listener to the specified element for 
++			 * the purpose of listening for the focus event on the element's 
++             * descendants.
++             *
++             * @method removeFocusListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to remove
++             *  the listener from.
++             * @param {Function} fn the method the event invokes.  If fn is
++             *  undefined, then all event handlers for the type of event are 
++             *  removed.
++             * @return {boolean} true if the unbind was successful, false 
++             *  otherwise.
++             * @static
++         	 * @deprecated use YAHOO.util.Event.removeListener and specify "focusin" as the event type.
++             */
++            removeFocusListener: function (el, fn) { 
++                return this.removeListener(el, FOCUSIN, fn);
++            },
++
++            /**
++             * Attaches a focusout event listener to the specified element for 
++			 * the purpose of listening for the blur event on the element's 
++			 * descendants.
++             *
++             * @method addBlurListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @static
++         	 * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
++             */
++            addBlurListener: function (el, fn, obj, overrideContext) {
++                return this.on(el, FOCUSOUT, fn, obj, overrideContext);
++            },          
++
++            /**
++             * Removes a focusout event listener to the specified element for 
++			 * the purpose of listening for the blur event on the element's 
++			 * descendants.
++             *
++             * @method removeBlurListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to remove
++             *  the listener from.
++             * @param {Function} fn the method the event invokes.  If fn is
++             *  undefined, then all event handlers for the type of event are 
++             *  removed.
++             * @return {boolean} true if the unbind was successful, false 
++             *  otherwise.
++             * @static
++         	 * @deprecated use YAHOO.util.Event.removeListener and specify "focusout" as the event type.
++             */
++            removeBlurListener: function (el, fn) { 
++                return this.removeListener(el, FOCUSOUT, fn);
++            },
++
++            /**
++             * Removes an event listener
++             *
++             * @method removeListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to remove
++             *  the listener from.
++             * @param {String} sType the type of event to remove.
++             * @param {Function} fn the method the event invokes.  If fn is
++             *  undefined, then all event handlers for the type of event are 
++             *  removed.
++             * @return {boolean} true if the unbind was successful, false 
++             *  otherwise.
++             * @static
++             */
++            removeListener: function(el, sType, fn) {
++                var i, len, li;
++
++				sType = this._getType(sType);
++
++                // The el argument can be a string
++                if (typeof el == "string") {
++                    el = this.getEl(el);
++                // The el argument can be an array of elements or element ids.
++                } else if ( this._isValidCollection(el)) {
++                    var ok = true;
++                    for (i=el.length-1; i>-1; i--) {
++                        ok = ( this.removeListener(el[i], sType, fn) && ok );
++                    }
++                    return ok;
++                }
++
++                if (!fn || !fn.call) {
++                    // this.logger.debug("Error, function is not valid " + fn);
++                    //return false;
++                    return this.purgeElement(el, false, sType);
++                }
++
++                if ("unload" == sType) {
++
++                    for (i=unloadListeners.length-1; i>-1; i--) {
++                        li = unloadListeners[i];
++                        if (li && 
++                            li[0] == el && 
++                            li[1] == sType && 
++                            li[2] == fn) {
++                                unloadListeners.splice(i, 1);
++                                // unloadListeners[i]=null;
++                                return true;
++                        }
++                    }
++
++                    return false;
++                }
++
++                var cacheItem = null;
++
++                // The index is a hidden parameter; needed to remove it from
++                // the method signature because it was tempting users to
++                // try and take advantage of it, which is not possible.
++                var index = arguments[3];
++  
++                if ("undefined" === typeof index) {
++                    index = this._getCacheIndex(listeners, el, sType, fn);
++                }
++
++                if (index >= 0) {
++                    cacheItem = listeners[index];
++                }
++
++                if (!el || !cacheItem) {
++                    // this.logger.debug("cached listener not found");
++                    return false;
++                }
++
++                // this.logger.debug("Removing handler: " + el + ", " + sType);
++
++				var bCapture = cacheItem[this.CAPTURE] === true ? true : false;
++
++                try {
++                    this._simpleRemove(el, sType, cacheItem[this.WFN], bCapture);
++                } catch(ex) {
++                    this.lastError = ex;
++                    return false;
++                }
++
++                // removed the wrapped handler
++                delete listeners[index][this.WFN];
++                delete listeners[index][this.FN];
++                listeners.splice(index, 1);
++                // listeners[index]=null;
++
++                return true;
++
++            },
++
++            /**
++             * Returns the event's target element.  Safari sometimes provides
++             * a text node, and this is automatically resolved to the text
++             * node's parent so that it behaves like other browsers.
++             * @method getTarget
++             * @param {Event} ev the event
++             * @param {boolean} resolveTextNode when set to true the target's
++             *                  parent will be returned if the target is a 
++             *                  text node.  @deprecated, the text node is
++             *                  now resolved automatically
++             * @return {HTMLElement} the event's target
++             * @static
++             */
++            getTarget: function(ev, resolveTextNode) {
++                var t = ev.target || ev.srcElement;
++                return this.resolveTextNode(t);
++            },
++
++            /**
++             * In some cases, some browsers will return a text node inside
++             * the actual element that was targeted.  This normalizes the
++             * return value for getTarget and getRelatedTarget.
++             * @method resolveTextNode
++             * @param {HTMLElement} node node to resolve
++             * @return {HTMLElement} the normized node
++             * @static
++             */
++            resolveTextNode: function(n) {
++                try {
++                    if (n && 3 == n.nodeType) {
++                        return n.parentNode;
++                    }
++                } catch(e) { }
++
++                return n;
++            },
++
++            /**
++             * Returns the event's pageX
++             * @method getPageX
++             * @param {Event} ev the event
++             * @return {int} the event's pageX
++             * @static
++             */
++            getPageX: function(ev) {
++                var x = ev.pageX;
++                if (!x && 0 !== x) {
++                    x = ev.clientX || 0;
++
++                    if ( this.isIE ) {
++                        x += this._getScrollLeft();
++                    }
++                }
++
++                return x;
++            },
++
++            /**
++             * Returns the event's pageY
++             * @method getPageY
++             * @param {Event} ev the event
++             * @return {int} the event's pageY
++             * @static
++             */
++            getPageY: function(ev) {
++                var y = ev.pageY;
++                if (!y && 0 !== y) {
++                    y = ev.clientY || 0;
++
++                    if ( this.isIE ) {
++                        y += this._getScrollTop();
++                    }
++                }
++
++
++                return y;
++            },
++
++            /**
++             * Returns the pageX and pageY properties as an indexed array.
++             * @method getXY
++             * @param {Event} ev the event
++             * @return {[x, y]} the pageX and pageY properties of the event
++             * @static
++             */
++            getXY: function(ev) {
++                return [this.getPageX(ev), this.getPageY(ev)];
++            },
++
++            /**
++             * Returns the event's related target 
++             * @method getRelatedTarget
++             * @param {Event} ev the event
++             * @return {HTMLElement} the event's relatedTarget
++             * @static
++             */
++            getRelatedTarget: function(ev) {
++                var t = ev.relatedTarget;
++                if (!t) {
++                    if (ev.type == "mouseout") {
++                        t = ev.toElement;
++                    } else if (ev.type == "mouseover") {
++                        t = ev.fromElement;
++                    }
++                }
++
++                return this.resolveTextNode(t);
++            },
++
++            /**
++             * Returns the time of the event.  If the time is not included, the
++             * event is modified using the current time.
++             * @method getTime
++             * @param {Event} ev the event
++             * @return {Date} the time of the event
++             * @static
++             */
++            getTime: function(ev) {
++                if (!ev.time) {
++                    var t = new Date().getTime();
++                    try {
++                        ev.time = t;
++                    } catch(ex) { 
++                        this.lastError = ex;
++                        return t;
++                    }
++                }
++
++                return ev.time;
++            },
++
++            /**
++             * Convenience method for stopPropagation + preventDefault
++             * @method stopEvent
++             * @param {Event} ev the event
++             * @static
++             */
++            stopEvent: function(ev) {
++                this.stopPropagation(ev);
++                this.preventDefault(ev);
++            },
++
++            /**
++             * Stops event propagation
++             * @method stopPropagation
++             * @param {Event} ev the event
++             * @static
++             */
++            stopPropagation: function(ev) {
++                if (ev.stopPropagation) {
++                    ev.stopPropagation();
++                } else {
++                    ev.cancelBubble = true;
++                }
++            },
++
++            /**
++             * Prevents the default behavior of the event
++             * @method preventDefault
++             * @param {Event} ev the event
++             * @static
++             */
++            preventDefault: function(ev) {
++                if (ev.preventDefault) {
++                    ev.preventDefault();
++                } else {
++                    ev.returnValue = false;
++                }
++            },
++             
++            /**
++             * Finds the event in the window object, the caller's arguments, or
++             * in the arguments of another method in the callstack.  This is
++             * executed automatically for events registered through the event
++             * manager, so the implementer should not normally need to execute
++             * this function at all.
++             * @method getEvent
++             * @param {Event} e the event parameter from the handler
++             * @param {HTMLElement} boundEl the element the listener is attached to
++             * @return {Event} the event 
++             * @static
++             */
++            getEvent: function(e, boundEl) {
++                var ev = e || window.event;
++
++                if (!ev) {
++                    var c = this.getEvent.caller;
++                    while (c) {
++                        ev = c.arguments[0];
++                        if (ev && Event == ev.constructor) {
++                            break;
++                        }
++                        c = c.caller;
++                    }
++                }
++
++                return ev;
++            },
++
++            /**
++             * Returns the charcode for an event
++             * @method getCharCode
++             * @param {Event} ev the event
++             * @return {int} the event's charCode
++             * @static
++             */
++            getCharCode: function(ev) {
++                var code = ev.keyCode || ev.charCode || 0;
++
++                // webkit key normalization
++                if (YAHOO.env.ua.webkit && (code in webkitKeymap)) {
++                    code = webkitKeymap[code];
++                }
++                return code;
++            },
++
++            /**
++             * Locating the saved event handler data by function ref
++             *
++             * @method _getCacheIndex
++             * @static
++             * @private
++             */
++            _getCacheIndex: function(a, el, sType, fn) {
++                for (var i=0, l=a.length; i<l; i=i+1) {
++                    var li = a[i];
++                    if ( li                 && 
++                         li[this.FN] == fn  && 
++                         li[this.EL] == el  && 
++                         li[this.TYPE] == sType ) {
++                        return i;
++                    }
++                }
++
++                return -1;
++            },
++
++            /**
++             * Generates an unique ID for the element if it does not already 
++             * have one.
++             * @method generateId
++             * @param el the element to create the id for
++             * @return {string} the resulting id of the element
++             * @static
++             */
++            generateId: function(el) {
++                var id = el.id;
++
++                if (!id) {
++                    id = "yuievtautoid-" + counter;
++                    ++counter;
++                    el.id = id;
++                }
++
++                return id;
++            },
++
++
++            /**
++             * We want to be able to use getElementsByTagName as a collection
++             * to attach a group of events to.  Unfortunately, different 
++             * browsers return different types of collections.  This function
++             * tests to determine if the object is array-like.  It will also 
++             * fail if the object is an array, but is empty.
++             * @method _isValidCollection
++             * @param o the object to test
++             * @return {boolean} true if the object is array-like and populated
++             * @static
++             * @private
++             */
++            _isValidCollection: function(o) {
++                try {
++                    return ( o                     && // o is something
++                             typeof o !== "string" && // o is not a string
++                             o.length              && // o is indexed
++                             !o.tagName            && // o is not an HTML element
++                             !o.alert              && // o is not a window
++                             typeof o[0] !== "undefined" );
++                } catch(ex) {
++                    YAHOO.log("node access error (xframe?)", "warn");
++                    return false;
++                }
++
++            },
++
++            /**
++             * @private
++             * @property elCache
++             * DOM element cache
++             * @static
++             * @deprecated Elements are not cached due to issues that arise when
++             * elements are removed and re-added
++             */
++            elCache: {},
++
++            /**
++             * We cache elements bound by id because when the unload event 
++             * fires, we can no longer use document.getElementById
++             * @method getEl
++             * @static
++             * @private
++             * @deprecated Elements are not cached any longer
++             */
++            getEl: function(id) {
++                return (typeof id === "string") ? document.getElementById(id) : id;
++            },
++
++            /**
++             * Clears the element cache
++             * @deprecated Elements are not cached any longer
++             * @method clearCache
++             * @static
++             * @private
++             */
++            clearCache: function() { },
++
++            /**
++             * Custom event the fires when the dom is initially usable
++             * @event DOMReadyEvent
++             */
++            DOMReadyEvent: new YAHOO.util.CustomEvent("DOMReady", YAHOO, 0, 0, 1),
++
++            /**
++             * hook up any deferred listeners
++             * @method _load
++             * @static
++             * @private
++             */
++            _load: function(e) {
++
++                if (!loadComplete) {
++                    loadComplete = true;
++                    var EU = YAHOO.util.Event;
++
++                    // Just in case DOMReady did not go off for some reason
++                    EU._ready();
++
++                    // Available elements may not have been detected before the
++                    // window load event fires. Try to find them now so that the
++                    // the user is more likely to get the onAvailable notifications
++                    // before the window load notification
++                    EU._tryPreloadAttach();
++
++                }
++            },
++
++            /**
++             * Fires the DOMReady event listeners the first time the document is
++             * usable.
++             * @method _ready
++             * @static
++             * @private
++             */
++            _ready: function(e) {
++                var EU = YAHOO.util.Event;
++                if (!EU.DOMReady) {
++                    EU.DOMReady=true;
++
++                    // Fire the content ready custom event
++                    EU.DOMReadyEvent.fire();
++
++                    // Remove the DOMContentLoaded (FF/Opera)
++                    EU._simpleRemove(document, "DOMContentLoaded", EU._ready);
++                }
++            },
++
++            /**
++             * Polling function that runs before the onload event fires, 
++             * attempting to attach to DOM Nodes as soon as they are 
++             * available
++             * @method _tryPreloadAttach
++             * @static
++             * @private
++             */
++            _tryPreloadAttach: function() {
++
++                if (onAvailStack.length === 0) {
++                    retryCount = 0;
++                    if (this._interval) {
++                        // clearInterval(this._interval);
++                        this._interval.cancel();
++                        this._interval = null;
++                    } 
++                    return;
++                }
++
++                if (this.locked) {
++                    return;
++                }
++
++                if (this.isIE) {
++                    // Hold off if DOMReady has not fired and check current
++                    // readyState to protect against the IE operation aborted
++                    // issue.
++                    if (!this.DOMReady) {
++                        this.startInterval();
++                        return;
++                    }
++                }
++
++                this.locked = true;
++
++                // this.logger.debug("tryPreloadAttach");
++
++                // keep trying until after the page is loaded.  We need to 
++                // check the page load state prior to trying to bind the 
++                // elements so that we can be certain all elements have been 
++                // tested appropriately
++                var tryAgain = !loadComplete;
++                if (!tryAgain) {
++                    tryAgain = (retryCount > 0 && onAvailStack.length > 0);
++                }
++
++                // onAvailable
++                var notAvail = [];
++
++                var executeItem = function (el, item) {
++                    var context = el;
++                    if (item.overrideContext) {
++                        if (item.overrideContext === true) {
++                            context = item.obj;
++                        } else {
++                            context = item.overrideContext;
++                        }
++                    }
++                    item.fn.call(context, item.obj);
++                };
++
++                var i, len, item, el, ready=[];
++
++                // onAvailable onContentReady
++                for (i=0, len=onAvailStack.length; i<len; i=i+1) {
++                    item = onAvailStack[i];
++                    if (item) {
++                        el = this.getEl(item.id);
++                        if (el) {
++                            if (item.checkReady) {
++                                if (loadComplete || el.nextSibling || !tryAgain) {
++                                    ready.push(item);
++                                    onAvailStack[i] = null;
++                                }
++                            } else {
++                                executeItem(el, item);
++                                onAvailStack[i] = null;
++                            }
++                        } else {
++                            notAvail.push(item);
++                        }
++                    }
++                }
++                
++                // make sure onContentReady fires after onAvailable
++                for (i=0, len=ready.length; i<len; i=i+1) {
++                    item = ready[i];
++                    executeItem(this.getEl(item.id), item);
++                }
++
++
++                retryCount--;
++
++                if (tryAgain) {
++                    for (i=onAvailStack.length-1; i>-1; i--) {
++                        item = onAvailStack[i];
++                        if (!item || !item.id) {
++                            onAvailStack.splice(i, 1);
++                        }
++                    }
++
++                    this.startInterval();
++                } else {
++                    if (this._interval) {
++                        // clearInterval(this._interval);
++                        this._interval.cancel();
++                        this._interval = null;
++                    }
++                }
++
++                this.locked = false;
++
++            },
++
++            /**
++             * Removes all listeners attached to the given element via addListener.
++             * Optionally, the node's children can also be purged.
++             * Optionally, you can specify a specific type of event to remove.
++             * @method purgeElement
++             * @param {HTMLElement} el the element to purge
++             * @param {boolean} recurse recursively purge this element's children
++             * as well.  Use with caution.
++             * @param {string} sType optional type of listener to purge. If
++             * left out, all listeners will be removed
++             * @static
++             */
++            purgeElement: function(el, recurse, sType) {
++                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
++                var elListeners = this.getListeners(oEl, sType), i, len;
++                if (elListeners) {
++                    for (i=elListeners.length-1; i>-1; i--) {
++                        var l = elListeners[i];
++                        this.removeListener(oEl, l.type, l.fn);
++                    }
++                }
++
++                if (recurse && oEl && oEl.childNodes) {
++                    for (i=0,len=oEl.childNodes.length; i<len ; ++i) {
++                        this.purgeElement(oEl.childNodes[i], recurse, sType);
++                    }
++                }
++            },
++
++            /**
++             * Returns all listeners attached to the given element via addListener.
++             * Optionally, you can specify a specific type of event to return.
++             * @method getListeners
++             * @param el {HTMLElement|string} the element or element id to inspect 
++             * @param sType {string} optional type of listener to return. If
++             * left out, all listeners will be returned
++             * @return {Object} the listener. Contains the following fields:
++             * &nbsp;&nbsp;type:   (string)   the type of event
++             * &nbsp;&nbsp;fn:     (function) the callback supplied to addListener
++             * &nbsp;&nbsp;obj:    (object)   the custom object supplied to addListener
++             * &nbsp;&nbsp;adjust: (boolean|object)  whether or not to adjust the default context
++             * &nbsp;&nbsp;scope: (boolean)  the derived context based on the adjust parameter
++             * &nbsp;&nbsp;index:  (int)      its position in the Event util listener cache
++             * @static
++             */           
++            getListeners: function(el, sType) {
++                var results=[], searchLists;
++                if (!sType) {
++                    searchLists = [listeners, unloadListeners];
++                } else if (sType === "unload") {
++                    searchLists = [unloadListeners];
++                } else {
++					sType = this._getType(sType);
++                    searchLists = [listeners];
++                }
++
++                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
++
++                for (var j=0;j<searchLists.length; j=j+1) {
++                    var searchList = searchLists[j];
++                    if (searchList) {
++                        for (var i=0,len=searchList.length; i<len ; ++i) {
++                            var l = searchList[i];
++                            if ( l  && l[this.EL] === oEl && 
++                                    (!sType || sType === l[this.TYPE]) ) {
++                                results.push({
++                                    type:   l[this.TYPE],
++                                    fn:     l[this.FN],
++                                    obj:    l[this.OBJ],
++                                    adjust: l[this.OVERRIDE],
++                                    scope:  l[this.ADJ_SCOPE],
++                                    index:  i
++                                });
++                            }
++                        }
++                    }
++                }
++
++                return (results.length) ? results : null;
++            },
++
++            /**
++             * Removes all listeners registered by pe.event.  Called 
++             * automatically during the unload event.
++             * @method _unload
++             * @static
++             * @private
++             */
++            _unload: function(e) {
++
++                var EU = YAHOO.util.Event, i, j, l, len, index,
++                         ul = unloadListeners.slice(), context;
++
++                // execute and clear stored unload listeners
++                for (i=0, len=unloadListeners.length; i<len; ++i) {
++                    l = ul[i];
++                    if (l) {
++                        context = window;
++                        if (l[EU.ADJ_SCOPE]) {
++                            if (l[EU.ADJ_SCOPE] === true) {
++                                context = l[EU.UNLOAD_OBJ];
++                            } else {
++                                context = l[EU.ADJ_SCOPE];
++                            }
++                        }
++                        l[EU.FN].call(context, EU.getEvent(e, l[EU.EL]), l[EU.UNLOAD_OBJ] );
++                        ul[i] = null;
++                    }
++                }
++
++                l = null;
++                context = null;
++                unloadListeners = null;
++
++                // Remove listeners to handle IE memory leaks
++                // 2.5.0 listeners are removed for all browsers again.  FireFox preserves
++                // at least some listeners between page refreshes, potentially causing
++                // errors during page load (mouseover listeners firing before they
++                // should if the user moves the mouse at the correct moment).
++                if (listeners) {
++                    for (j=listeners.length-1; j>-1; j--) {
++                        l = listeners[j];
++                        if (l) {
++                            EU.removeListener(l[EU.EL], l[EU.TYPE], l[EU.FN], j);
++                        } 
++                    }
++                    l=null;
++                }
++
++                EU._simpleRemove(window, "unload", EU._unload);
++
++            },
++
++            /**
++             * Returns scrollLeft
++             * @method _getScrollLeft
++             * @static
++             * @private
++             */
++            _getScrollLeft: function() {
++                return this._getScroll()[1];
++            },
++
++            /**
++             * Returns scrollTop
++             * @method _getScrollTop
++             * @static
++             * @private
++             */
++            _getScrollTop: function() {
++                return this._getScroll()[0];
++            },
++
++            /**
++             * Returns the scrollTop and scrollLeft.  Used to calculate the 
++             * pageX and pageY in Internet Explorer
++             * @method _getScroll
++             * @static
++             * @private
++             */
++            _getScroll: function() {
++                var dd = document.documentElement, db = document.body;
++                if (dd && (dd.scrollTop || dd.scrollLeft)) {
++                    return [dd.scrollTop, dd.scrollLeft];
++                } else if (db) {
++                    return [db.scrollTop, db.scrollLeft];
++                } else {
++                    return [0, 0];
++                }
++            },
++            
++            /**
++             * Used by old versions of CustomEvent, restored for backwards
++             * compatibility
++             * @method regCE
++             * @private
++             * @static
++             * @deprecated still here for backwards compatibility
++             */
++            regCE: function() {},
++
++            /**
++             * Adds a DOM event directly without the caching, cleanup, context adj, etc
++             *
++             * @method _simpleAdd
++             * @param {HTMLElement} el      the element to bind the handler to
++             * @param {string}      sType   the type of event handler
++             * @param {function}    fn      the callback to invoke
++             * @param {boolen}      capture capture or bubble phase
++             * @static
++             * @private
++             */
++            _simpleAdd: function () {
++                if (window.addEventListener) {
++                    return function(el, sType, fn, capture) {
++                        el.addEventListener(sType, fn, (capture));
++                    };
++                } else if (window.attachEvent) {
++                    return function(el, sType, fn, capture) {
++                        el.attachEvent("on" + sType, fn);
++                    };
++                } else {
++                    return function(){};
++                }
++            }(),
++
++            /**
++             * Basic remove listener
++             *
++             * @method _simpleRemove
++             * @param {HTMLElement} el      the element to bind the handler to
++             * @param {string}      sType   the type of event handler
++             * @param {function}    fn      the callback to invoke
++             * @param {boolen}      capture capture or bubble phase
++             * @static
++             * @private
++             */
++            _simpleRemove: function() {
++                if (window.removeEventListener) {
++                    return function (el, sType, fn, capture) {
++                        el.removeEventListener(sType, fn, (capture));
++                    };
++                } else if (window.detachEvent) {
++                    return function (el, sType, fn) {
++                        el.detachEvent("on" + sType, fn);
++                    };
++                } else {
++                    return function(){};
++                }
++            }()
++        };
++
++    }();
++
++    (function() {
++        var EU = YAHOO.util.Event;
++
++        /**
++         * YAHOO.util.Event.on is an alias for addListener
++         * @method on
++         * @see addListener
++         * @static
++         */
++        EU.on = EU.addListener;
++
++        /**
++         * YAHOO.util.Event.onFocus is an alias for addFocusListener
++         * @method onFocus
++         * @see addFocusListener
++         * @static
++		 * @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
++         */
++        EU.onFocus = EU.addFocusListener;
++
++        /**
++         * YAHOO.util.Event.onBlur is an alias for addBlurListener
++         * @method onBlur
++         * @see addBlurListener
++         * @static
++		 * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
++         */     
++        EU.onBlur = EU.addBlurListener;
++
++/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
++
++        // Internet Explorer: use the readyState of a defered script.
++        // This isolates what appears to be a safe moment to manipulate
++        // the DOM prior to when the document's readyState suggests
++        // it is safe to do so.
++        if (EU.isIE) {
++            if (self !== self.top) {
++                document.onreadystatechange = function() {
++                    if (document.readyState == 'complete') {
++                        document.onreadystatechange = null;
++                        EU._ready();
++                    }
++                };
++            } else {
++
++                // Process onAvailable/onContentReady items when the 
++                // DOM is ready.
++                YAHOO.util.Event.onDOMReady(
++                        YAHOO.util.Event._tryPreloadAttach,
++                        YAHOO.util.Event, true);
++                
++                var n = document.createElement('p');  
++
++                EU._dri = setInterval(function() {
++                    try {
++                        // throws an error if doc is not ready
++                        n.doScroll('left');
++                        clearInterval(EU._dri);
++                        EU._dri = null;
++                        EU._ready();
++                        n = null;
++                    } catch (ex) { 
++                    }
++                }, EU.POLL_INTERVAL); 
++            }
++
++        // The document's readyState in Safari currently will
++        // change to loaded/complete before images are loaded.
++        } else if (EU.webkit && EU.webkit < 525) {
++
++            EU._dri = setInterval(function() {
++                var rs=document.readyState;
++                if ("loaded" == rs || "complete" == rs) {
++                    clearInterval(EU._dri);
++                    EU._dri = null;
++                    EU._ready();
++                }
++            }, EU.POLL_INTERVAL); 
++
++        // FireFox and Opera: These browsers provide a event for this
++        // moment.  The latest WebKit releases now support this event.
++        } else {
++
++            EU._simpleAdd(document, "DOMContentLoaded", EU._ready);
++
++        }
++        /////////////////////////////////////////////////////////////
++
++
++        EU._simpleAdd(window, "load", EU._load);
++        EU._simpleAdd(window, "unload", EU._unload);
++        EU._tryPreloadAttach();
++    })();
++
++}
++/**
++ * EventProvider is designed to be used with YAHOO.augment to wrap 
++ * CustomEvents in an interface that allows events to be subscribed to 
++ * and fired by name.  This makes it possible for implementing code to
++ * subscribe to an event that either has not been created yet, or will
++ * not be created at all.
++ *
++ * @Class EventProvider
++ */
++YAHOO.util.EventProvider = function() { };
++
++YAHOO.util.EventProvider.prototype = {
++
++    /**
++     * Private storage of custom events
++     * @property __yui_events
++     * @type Object[]
++     * @private
++     */
++    __yui_events: null,
++
++    /**
++     * Private storage of custom event subscribers
++     * @property __yui_subscribers
++     * @type Object[]
++     * @private
++     */
++    __yui_subscribers: null,
++    
++    /**
++     * Subscribe to a CustomEvent by event type
++     *
++     * @method subscribe
++     * @param p_type     {string}   the type, or name of the event
++     * @param p_fn       {function} the function to exectute when the event fires
++     * @param p_obj      {Object}   An object to be passed along when the event 
++     *                              fires
++     * @param overrideContext {boolean}  If true, the obj passed in becomes the 
++     *                              execution scope of the listener
++     */
++    subscribe: function(p_type, p_fn, p_obj, overrideContext) {
++
++        this.__yui_events = this.__yui_events || {};
++        var ce = this.__yui_events[p_type];
++
++        if (ce) {
++            ce.subscribe(p_fn, p_obj, overrideContext);
++        } else {
++            this.__yui_subscribers = this.__yui_subscribers || {};
++            var subs = this.__yui_subscribers;
++            if (!subs[p_type]) {
++                subs[p_type] = [];
++            }
++            subs[p_type].push(
++                { fn: p_fn, obj: p_obj, overrideContext: overrideContext } );
++        }
++    },
++
++    /**
++     * Unsubscribes one or more listeners the from the specified event
++     * @method unsubscribe
++     * @param p_type {string}   The type, or name of the event.  If the type
++     *                          is not specified, it will attempt to remove
++     *                          the listener from all hosted events.
++     * @param p_fn   {Function} The subscribed function to unsubscribe, if not
++     *                          supplied, all subscribers will be removed.
++     * @param p_obj  {Object}   The custom object passed to subscribe.  This is
++     *                        optional, but if supplied will be used to
++     *                        disambiguate multiple listeners that are the same
++     *                        (e.g., you subscribe many object using a function
++     *                        that lives on the prototype)
++     * @return {boolean} true if the subscriber was found and detached.
++     */
++    unsubscribe: function(p_type, p_fn, p_obj) {
++        this.__yui_events = this.__yui_events || {};
++        var evts = this.__yui_events;
++        if (p_type) {
++            var ce = evts[p_type];
++            if (ce) {
++                return ce.unsubscribe(p_fn, p_obj);
++            }
++        } else {
++            var ret = true;
++            for (var i in evts) {
++                if (YAHOO.lang.hasOwnProperty(evts, i)) {
++                    ret = ret && evts[i].unsubscribe(p_fn, p_obj);
++                }
++            }
++            return ret;
++        }
++
++        return false;
++    },
++    
++    /**
++     * Removes all listeners from the specified event.  If the event type
++     * is not specified, all listeners from all hosted custom events will
++     * be removed.
++     * @method unsubscribeAll
++     * @param p_type {string}   The type, or name of the event
++     */
++    unsubscribeAll: function(p_type) {
++        return this.unsubscribe(p_type);
++    },
++
++    /**
++     * Creates a new custom event of the specified type.  If a custom event
++     * by that name already exists, it will not be re-created.  In either
++     * case the custom event is returned. 
++     *
++     * @method createEvent
++     *
++     * @param p_type {string} the type, or name of the event
++     * @param p_config {object} optional config params.  Valid properties are:
++     *
++     *  <ul>
++     *    <li>
++     *      scope: defines the default execution scope.  If not defined
++     *      the default scope will be this instance.
++     *    </li>
++     *    <li>
++     *      silent: if true, the custom event will not generate log messages.
++     *      This is false by default.
++     *    </li>
++     *    <li>
++     *      fireOnce: if true, the custom event will only notify subscribers
++     *      once regardless of the number of times the event is fired.  In
++     *      addition, new subscribers will be executed immediately if the
++     *      event has already fired.
++     *      This is false by default.
++     *    </li>
++     *    <li>
++     *      onSubscribeCallback: specifies a callback to execute when the
++     *      event has a new subscriber.  This will fire immediately for
++     *      each queued subscriber if any exist prior to the creation of
++     *      the event.
++     *    </li>
++     *  </ul>
++     *
++     *  @return {CustomEvent} the custom event
++     *
++     */
++    createEvent: function(p_type, p_config) {
++
++        this.__yui_events = this.__yui_events || {};
++        var opts = p_config || {},
++            events = this.__yui_events, ce;
++
++        if (events[p_type]) {
++YAHOO.log("EventProvider createEvent skipped: '"+p_type+"' already exists");
++        } else {
++
++            ce = new YAHOO.util.CustomEvent(p_type, opts.scope || this, opts.silent,
++                         YAHOO.util.CustomEvent.FLAT, opts.fireOnce);
++
++            events[p_type] = ce;
++
++            if (opts.onSubscribeCallback) {
++                ce.subscribeEvent.subscribe(opts.onSubscribeCallback);
++            }
++
++            this.__yui_subscribers = this.__yui_subscribers || {};
++            var qs = this.__yui_subscribers[p_type];
++
++            if (qs) {
++                for (var i=0; i<qs.length; ++i) {
++                    ce.subscribe(qs[i].fn, qs[i].obj, qs[i].overrideContext);
++                }
++            }
++        }
++
++        return events[p_type];
++    },
++
++
++   /**
++     * Fire a custom event by name.  The callback functions will be executed
++     * from the scope specified when the event was created, and with the 
++     * following parameters:
++     *   <ul>
++     *   <li>The first argument fire() was executed with</li>
++     *   <li>The custom object (if any) that was passed into the subscribe() 
++     *       method</li>
++     *   </ul>
++     * @method fireEvent
++     * @param p_type    {string}  the type, or name of the event
++     * @param arguments {Object*} an arbitrary set of parameters to pass to 
++     *                            the handler.
++     * @return {boolean} the return value from CustomEvent.fire
++     *                   
++     */
++    fireEvent: function(p_type) {
++
++        this.__yui_events = this.__yui_events || {};
++        var ce = this.__yui_events[p_type];
++
++        if (!ce) {
++YAHOO.log(p_type + "event fired before it was created.");
++            return null;
++        }
++
++        var args = [];
++        for (var i=1; i<arguments.length; ++i) {
++            args.push(arguments[i]);
++        }
++        return ce.fire.apply(ce, args);
++    },
++
++    /**
++     * Returns true if the custom event of the provided type has been created
++     * with createEvent.
++     * @method hasEvent
++     * @param type {string} the type, or name of the event
++     */
++    hasEvent: function(type) {
++        if (this.__yui_events) {
++            if (this.__yui_events[type]) {
++                return true;
++            }
++        }
++        return false;
++    }
++
++};
++
++(function() {
++
++    var Event = YAHOO.util.Event, Lang = YAHOO.lang;
++
++/**
++* KeyListener is a utility that provides an easy interface for listening for
++* keydown/keyup events fired against DOM elements.
++* @namespace YAHOO.util
++* @class KeyListener
++* @constructor
++* @param {HTMLElement} attachTo The element or element ID to which the key 
++*                               event should be attached
++* @param {String}      attachTo The element or element ID to which the key
++*                               event should be attached
++* @param {Object}      keyData  The object literal representing the key(s) 
++*                               to detect. Possible attributes are 
++*                               shift(boolean), alt(boolean), ctrl(boolean) 
++*                               and keys(either an int or an array of ints 
++*                               representing keycodes).
++* @param {Function}    handler  The CustomEvent handler to fire when the 
++*                               key event is detected
++* @param {Object}      handler  An object literal representing the handler. 
++* @param {String}      event    Optional. The event (keydown or keyup) to 
++*                               listen for. Defaults automatically to keydown.
++*
++* @knownissue the "keypress" event is completely broken in Safari 2.x and below.
++*             the workaround is use "keydown" for key listening.  However, if
++*             it is desired to prevent the default behavior of the keystroke,
++*             that can only be done on the keypress event.  This makes key
++*             handling quite ugly.
++* @knownissue keydown is also broken in Safari 2.x and below for the ESC key.
++*             There currently is no workaround other than choosing another
++*             key to listen for.
++*/
++YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) {
++    if (!attachTo) {
++        YAHOO.log("No attachTo element specified", "error");
++    } else if (!keyData) {
++        YAHOO.log("No keyData specified", "error");
++    } else if (!handler) {
++        YAHOO.log("No handler specified", "error");
++    } 
++    
++    if (!event) {
++        event = YAHOO.util.KeyListener.KEYDOWN;
++    }
++
++    /**
++    * The CustomEvent fired internally when a key is pressed
++    * @event keyEvent
++    * @private
++    * @param {Object} keyData The object literal representing the key(s) to 
++    *                         detect. Possible attributes are shift(boolean), 
++    *                         alt(boolean), ctrl(boolean) and keys(either an 
++    *                         int or an array of ints representing keycodes).
++    */
++    var keyEvent = new YAHOO.util.CustomEvent("keyPressed");
++    
++    /**
++    * The CustomEvent fired when the KeyListener is enabled via the enable() 
++    * function
++    * @event enabledEvent
++    * @param {Object} keyData The object literal representing the key(s) to 
++    *                         detect. Possible attributes are shift(boolean), 
++    *                         alt(boolean), ctrl(boolean) and keys(either an 
++    *                         int or an array of ints representing keycodes).
++    */
++    this.enabledEvent = new YAHOO.util.CustomEvent("enabled");
++
++    /**
++    * The CustomEvent fired when the KeyListener is disabled via the 
++    * disable() function
++    * @event disabledEvent
++    * @param {Object} keyData The object literal representing the key(s) to 
++    *                         detect. Possible attributes are shift(boolean), 
++    *                         alt(boolean), ctrl(boolean) and keys(either an 
++    *                         int or an array of ints representing keycodes).
++    */
++    this.disabledEvent = new YAHOO.util.CustomEvent("disabled");
++
++    if (Lang.isString(attachTo)) {
++        attachTo = document.getElementById(attachTo); // No Dom util
++    }
++
++    if (Lang.isFunction(handler)) {
++        keyEvent.subscribe(handler);
++    } else {
++        keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope);
++    }
++
++    /**
++    * Handles the key event when a key is pressed.
++    * @method handleKeyPress
++    * @param {DOMEvent} e   The keypress DOM event
++    * @param {Object}   obj The DOM event scope object
++    * @private
++    */
++    function handleKeyPress(e, obj) {
++        if (! keyData.shift) {  
++            keyData.shift = false; 
++        }
++        if (! keyData.alt) {    
++            keyData.alt = false;
++        }
++        if (! keyData.ctrl) {
++            keyData.ctrl = false;
++        }
++
++        // check held down modifying keys first
++        if (e.shiftKey == keyData.shift && 
++            e.altKey   == keyData.alt &&
++            e.ctrlKey  == keyData.ctrl) { // if we pass this, all modifiers match
++            
++            var dataItem, keys = keyData.keys, key;
++
++            if (YAHOO.lang.isArray(keys)) {
++                for (var i=0;i<keys.length;i++) {
++                    dataItem = keys[i];
++                    key = Event.getCharCode(e);
++
++                    if (dataItem == key) {
++                        keyEvent.fire(key, e);
++                        break;
++                    }
++                }
++            } else {
++                key = Event.getCharCode(e);
++                if (keys == key ) {
++                    keyEvent.fire(key, e);
++                }
++            }
++        }
++    }
++
++    /**
++    * Enables the KeyListener by attaching the DOM event listeners to the 
++    * target DOM element
++    * @method enable
++    */
++    this.enable = function() {
++        if (! this.enabled) {
++            Event.on(attachTo, event, handleKeyPress);
++            this.enabledEvent.fire(keyData);
++        }
++        /**
++        * Boolean indicating the enabled/disabled state of the Tooltip
++        * @property enabled
++        * @type Boolean
++        */
++        this.enabled = true;
++    };
++
++    /**
++    * Disables the KeyListener by removing the DOM event listeners from the 
++    * target DOM element
++    * @method disable
++    */
++    this.disable = function() {
++        if (this.enabled) {
++            Event.removeListener(attachTo, event, handleKeyPress);
++            this.disabledEvent.fire(keyData);
++        }
++        this.enabled = false;
++    };
++
++    /**
++    * Returns a String representation of the object.
++    * @method toString
++    * @return {String}  The string representation of the KeyListener
++    */ 
++    this.toString = function() {
++        return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + 
++                (attachTo.id ? "[" + attachTo.id + "]" : "");
++    };
++
++};
++
++var KeyListener = YAHOO.util.KeyListener;
++
++/**
++ * Constant representing the DOM "keydown" event.
++ * @property YAHOO.util.KeyListener.KEYDOWN
++ * @static
++ * @final
++ * @type String
++ */
++KeyListener.KEYDOWN = "keydown";
++
++/**
++ * Constant representing the DOM "keyup" event.
++ * @property YAHOO.util.KeyListener.KEYUP
++ * @static
++ * @final
++ * @type String
++ */
++KeyListener.KEYUP = "keyup";
++
++/**
++ * keycode constants for a subset of the special keys
++ * @property KEY
++ * @static
++ * @final
++ */
++KeyListener.KEY = {
++    ALT          : 18,
++    BACK_SPACE   : 8,
++    CAPS_LOCK    : 20,
++    CONTROL      : 17,
++    DELETE       : 46,
++    DOWN         : 40,
++    END          : 35,
++    ENTER        : 13,
++    ESCAPE       : 27,
++    HOME         : 36,
++    LEFT         : 37,
++    META         : 224,
++    NUM_LOCK     : 144,
++    PAGE_DOWN    : 34,
++    PAGE_UP      : 33, 
++    PAUSE        : 19,
++    PRINTSCREEN  : 44,
++    RIGHT        : 39,
++    SCROLL_LOCK  : 145,
++    SHIFT        : 16,
++    SPACE        : 32,
++    TAB          : 9,
++    UP           : 38
++};
++
++})();
++YAHOO.register("event", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/event/event-min.js b/pylons_app/public/js/yui/event/event-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event/event-min.js
+@@ -0,0 +1,11 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.CustomEvent=function(D,C,B,A,E){this.type=D;this.scope=C||window;this.silent=B;this.fireOnce=E;this.fired=false;this.firedWith=null;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var F="_YUICEOnSubscribe";if(D!==F){this.subscribeEvent=new YAHOO.util.CustomEvent(F,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,D){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,D);}var A=new YAHOO.util.Subscriber(B,C,D);if(this.fireOnce&&this.fired){this.notify(A,this.firedWith);}else{this.subscribers.push(A);}},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var H=[],A=this.subscribers.length;var D=[].slice.call(arguments,0),C=true,F,B=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=D;}}this.fired=true;if(!A&&this.silent){return true;}if(!this.silent){}var E=this.subscribers.slice();for(F=0;F<A;++F){var G=E[F];if(!G){B=true;}else{C=this.notify(G,D);if(false===C){if(!this.silent){}break;}}}return(C!==false);},notify:function(F,C){var B,H=null,E=F.getScope(this.scope),A=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(C.length>0){H=C[0];}try{B=F.fn.call(E,H,F.obj);}catch(G){this.lastError=G;if(A){throw G;}}}else{try{B=F.fn.call(E,this.type,C,F.obj);}catch(D){this.lastError=D;if(A){throw D;}}}return B;},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var G=false,H=[],J=[],A=0,E=[],B=0,C={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=YAHOO.env.ua.ie,F="focusin",I="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:D,_interval:null,_dri:null,_specialTypes:{focusin:(D?"focusin":"focus"),focusout:(D?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(Q,M,O,P,N){var K=(YAHOO.lang.isString(Q))?[Q]:Q;for(var L=0;L<K.length;L=L+1){E.push({id:K[L],fn:M,obj:O,overrideContext:P,checkReady:N});}A=this.POLL_RETRYS;this.startInterval();},onContentReady:function(N,K,L,M){this.onAvailable(N,K,L,M,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(M,K,V,P,T,Y){if(!V||!V.call){return false;}if(this._isValidCollection(M)){var W=true;for(var Q=0,S=M.length;Q<S;++Q){W=this.on(M[Q],K,V,P,T)&&W;}return W;}else{if(YAHOO.lang.isString(M)){var O=this.getEl(M);if(O){M=O;}else{this.onAvailable(M,function(){YAHOO.util.Event._addListener(M,K,V,P,T,Y);});return true;}}}if(!M){return false;}if("unload"==K&&P!==this){J[J.length]=[M,K,V,P,T];return true;}var L=M;if(T){if(T===true){L=P;}else{L=T;}}var N=function(Z){return V.call(L,YAHOO.util.Event.getEvent(Z,M),P);};var X=[M,K,V,N,L,P,T,Y];var R=H.length;H[R]=X;try{this._simpleAdd(M,K,N,Y);}catch(U){this.lastError=U;this.removeListener(M,K,V);return false;}return true;},_getType:function(K){return this._specialTypes[K]||K;},addListener:function(M,P,L,N,O){var K=((P==F||P==I)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(M,this._getType(P),L,N,O,K);},addFocusListener:function(L,K,M,N){return this.on(L,F,K,M,N);},removeFocusListener:function(L,K){return this.removeListener(L,F,K);},addBlurListener:function(L,K,M,N){return this.on(L,I,K,M,N);},removeBlurListener:function(L,K){return this.removeListener(L,I,K);},removeListener:function(L,K,R){var M,P,U;K=this._getType(K);if(typeof L=="string"){L=this.getEl(L);}else{if(this._isValidCollection(L)){var S=true;for(M=L.length-1;M>-1;M--){S=(this.removeListener(L[M],K,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(L,false,K);}if("unload"==K){for(M=J.length-1;M>-1;M--){U=J[M];if(U&&U[0]==L&&U[1]==K&&U[2]==R){J.splice(M,1);return true;}}return false;}var N=null;var O=arguments[3];if("undefined"===typeof O){O=this._getCacheIndex(H,L,K,R);}if(O>=0){N=H[O];}if(!L||!N){return false;}var T=N[this.CAPTURE]===true?true:false;try{this._simpleRemove(L,K,N[this.WFN],T);}catch(Q){this.lastError=Q;return false;}delete H[O][this.WFN];delete H[O][this.FN];H.splice(O,1);return true;},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode;}}catch(K){}return L;},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft();}}return K;},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop();}}return L;},getXY:function(K){return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement;
++}else{if(L.type=="mouseover"){K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L;}catch(K){this.lastError=K;return L;}}return M.time;},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation();}else{K.cancelBubble=true;}},preventDefault:function(K){if(K.preventDefault){K.preventDefault();}else{K.returnValue=false;}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break;}N=N.caller;}}return L;},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in C)){K=C[K];}return K;},_getCacheIndex:function(M,P,Q,O){for(var N=0,L=M.length;N<L;N=N+1){var K=M[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==Q){return N;}}return -1;},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+B;++B;K.id=L;}return L;},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined");}catch(K){return false;}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(L){if(!G){G=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready);}},_tryPreloadAttach:function(){if(E.length===0){A=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var Q=!G;if(!Q){Q=(A>0&&E.length>0);}var P=[];var R=function(T,U){var S=T;if(U.overrideContext){if(U.overrideContext===true){S=U.obj;}else{S=U.overrideContext;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=E.length;L<K;L=L+1){O=E[L];if(O){N=this.getEl(O.id);if(N){if(O.checkReady){if(G||N.nextSibling||!Q){M.push(O);E[L]=null;}}else{R(N,O);E[L]=null;}}else{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1){O=M[L];R(this.getEl(O.id),O);}A--;if(Q){for(L=E.length-1;L>-1;L--){O=E[L];if(!O||!O.id){E.splice(L,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K){var P=[],L;if(!K){L=[H,J];}else{if(K==="unload"){L=[J];}else{K=this._getType(K);L=[H];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(R){var L=YAHOO.util.Event,O,N,M,Q,P,S=J.slice(),K;for(O=0,Q=J.length;O<Q;++O){M=S[O];if(M){K=window;if(M[L.ADJ_SCOPE]){if(M[L.ADJ_SCOPE]===true){K=M[L.UNLOAD_OBJ];}else{K=M[L.ADJ_SCOPE];}}M[L.FN].call(K,L.getEvent(R,M[L.EL]),M[L.UNLOAD_OBJ]);S[O]=null;}}M=null;K=null;J=null;if(H){for(N=H.length-1;N>-1;N--){M=H[N];if(M){L.removeListener(M[L.EL],M[L.TYPE],M[L.FN],N);}}M=null;}L._simpleRemove(window,"unload",L._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
++/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
++if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);
++},createEvent:function(B,G){this.__yui_events=this.__yui_events||{};var E=G||{},D=this.__yui_events,F;if(D[B]){}else{F=new YAHOO.util.CustomEvent(B,E.scope||this,E.silent,YAHOO.util.CustomEvent.FLAT,E.fireOnce);D[B]=F;if(E.onSubscribeCallback){F.subscribeEvent.subscribe(E.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var A=this.__yui_subscribers[B];if(A){for(var C=0;C<A.length;++C){F.subscribe(A[C].fn,A[C].obj,A[C].overrideContext);}}}return D[B];},fireEvent:function(B){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[B];if(!D){return null;}var A=[];for(var C=1;C<arguments.length;++C){A.push(arguments[C]);}return D.fire.apply(D,A);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/event/event.js b/pylons_app/public/js/yui/event/event.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/event/event.js
+@@ -0,0 +1,2500 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++/**
++ * The CustomEvent class lets you define events for your application
++ * that can be subscribed to by one or more independent component.
++ *
++ * @param {String}  type The type of event, which is passed to the callback
++ *                  when the event fires
++ * @param {Object}  context The context the event will fire from.  "this" will
++ *                  refer to this object in the callback.  Default value: 
++ *                  the window object.  The listener can override this.
++ * @param {boolean} silent pass true to prevent the event from writing to
++ *                  the debugsystem
++ * @param {int}     signature the signature that the custom event subscriber
++ *                  will receive. YAHOO.util.CustomEvent.LIST or 
++ *                  YAHOO.util.CustomEvent.FLAT.  The default is
++ *                  YAHOO.util.CustomEvent.LIST.
++ * @param fireOnce {boolean} If configured to fire once, the custom event 
++ * will only notify subscribers a single time regardless of how many times 
++ * the event is fired.  In addition, new subscribers will be notified 
++ * immediately if the event has already been fired.
++ * @namespace YAHOO.util
++ * @class CustomEvent
++ * @constructor
++ */
++YAHOO.util.CustomEvent = function(type, context, silent, signature, fireOnce) {
++
++    /**
++     * The type of event, returned to subscribers when the event fires
++     * @property type
++     * @type string
++     */
++    this.type = type;
++
++    /**
++     * The context the event will fire from by default. Defaults to the window obj.
++     * @property scope
++     * @type object
++     */
++    this.scope = context || window;
++
++    /**
++     * By default all custom events are logged in the debug build. Set silent to true 
++     * to disable debug output for this event.
++     * @property silent
++     * @type boolean
++     */
++    this.silent = silent;
++
++    /**
++     * If configured to fire once, the custom event will only notify subscribers
++     * a single time regardless of how many times the event is fired.  In addition,
++     * new subscribers will be notified immediately if the event has already been
++     * fired.
++     * @property fireOnce
++     * @type boolean
++     * @default false
++     */
++    this.fireOnce = fireOnce;
++
++    /**
++     * Indicates whether or not this event has ever been fired.
++     * @property fired
++     * @type boolean
++     * @default false
++     */
++    this.fired = false;
++
++    /**
++     * For fireOnce events the arguments the event was fired with are stored
++     * so that new subscribers get the proper payload.
++     * @property firedWith
++     * @type Array
++     */
++    this.firedWith = null;
++
++    /**
++     * Custom events support two styles of arguments provided to the event
++     * subscribers.  
++     * <ul>
++     * <li>YAHOO.util.CustomEvent.LIST: 
++     *   <ul>
++     *   <li>param1: event name</li>
++     *   <li>param2: array of arguments sent to fire</li>
++     *   <li>param3: <optional> a custom object supplied by the subscriber</li>
++     *   </ul>
++     * </li>
++     * <li>YAHOO.util.CustomEvent.FLAT
++     *   <ul>
++     *   <li>param1: the first argument passed to fire.  If you need to
++     *           pass multiple parameters, use and array or object literal</li>
++     *   <li>param2: <optional> a custom object supplied by the subscriber</li>
++     *   </ul>
++     * </li>
++     * </ul>
++     *   @property signature
++     *   @type int
++     */
++    this.signature = signature || YAHOO.util.CustomEvent.LIST;
++
++    /**
++     * The subscribers to this event
++     * @property subscribers
++     * @type Subscriber[]
++     */
++    this.subscribers = [];
++
++    if (!this.silent) {
++    }
++
++    var onsubscribeType = "_YUICEOnSubscribe";
++
++    // Only add subscribe events for events that are not generated by 
++    // CustomEvent
++    if (type !== onsubscribeType) {
++
++        /**
++         * Custom events provide a custom event that fires whenever there is
++         * a new subscriber to the event.  This provides an opportunity to
++         * handle the case where there is a non-repeating event that has
++         * already fired has a new subscriber.  
++         *
++         * @event subscribeEvent
++         * @type YAHOO.util.CustomEvent
++         * @param fn {Function} The function to execute
++         * @param obj <Object> An object to be passed along when the event fires. 
++         * Defaults to the custom event.
++         * @param override <boolean|Object> If true, the obj passed in becomes the 
++         * execution context of the listener. If an object, that object becomes 
++         * the execution context. Defaults to the custom event.
++         */
++        this.subscribeEvent = 
++                new YAHOO.util.CustomEvent(onsubscribeType, this, true);
++
++    } 
++
++
++    /**
++     * In order to make it possible to execute the rest of the subscriber
++     * stack when one thows an exception, the subscribers exceptions are
++     * caught.  The most recent exception is stored in this property
++     * @property lastError
++     * @type Error
++     */
++    this.lastError = null;
++};
++
++/**
++ * Subscriber listener sigature constant.  The LIST type returns three
++ * parameters: the event type, the array of args passed to fire, and
++ * the optional custom object
++ * @property YAHOO.util.CustomEvent.LIST
++ * @static
++ * @type int
++ */
++YAHOO.util.CustomEvent.LIST = 0;
++
++/**
++ * Subscriber listener sigature constant.  The FLAT type returns two
++ * parameters: the first argument passed to fire and the optional 
++ * custom object
++ * @property YAHOO.util.CustomEvent.FLAT
++ * @static
++ * @type int
++ */
++YAHOO.util.CustomEvent.FLAT = 1;
++
++YAHOO.util.CustomEvent.prototype = {
++
++    /**
++     * Subscribes the caller to this event
++     * @method subscribe
++     * @param {Function} fn        The function to execute
++     * @param {Object}   obj       An object to be passed along when the event fires.
++     * overrideContext <boolean|Object> If true, the obj passed in becomes the execution 
++     * context of the listener. If an object, that object becomes the execution context.
++     */
++    subscribe: function(fn, obj, overrideContext) {
++
++        if (!fn) {
++throw new Error("Invalid callback for subscriber to '" + this.type + "'");
++        }
++
++        if (this.subscribeEvent) {
++            this.subscribeEvent.fire(fn, obj, overrideContext);
++        }
++
++        var s = new YAHOO.util.Subscriber(fn, obj, overrideContext);
++
++        if (this.fireOnce && this.fired) {
++            this.notify(s, this.firedWith);
++        } else {
++            this.subscribers.push(s);
++        }
++    },
++
++    /**
++     * Unsubscribes subscribers.
++     * @method unsubscribe
++     * @param {Function} fn  The subscribed function to remove, if not supplied
++     *                       all will be removed
++     * @param {Object}   obj  The custom object passed to subscribe.  This is
++     *                        optional, but if supplied will be used to
++     *                        disambiguate multiple listeners that are the same
++     *                        (e.g., you subscribe many object using a function
++     *                        that lives on the prototype)
++     * @return {boolean} True if the subscriber was found and detached.
++     */
++    unsubscribe: function(fn, obj) {
++
++        if (!fn) {
++            return this.unsubscribeAll();
++        }
++
++        var found = false;
++        for (var i=0, len=this.subscribers.length; i<len; ++i) {
++            var s = this.subscribers[i];
++            if (s && s.contains(fn, obj)) {
++                this._delete(i);
++                found = true;
++            }
++        }
++
++        return found;
++    },
++
++    /**
++     * Notifies the subscribers.  The callback functions will be executed
++     * from the context specified when the event was created, and with the 
++     * following parameters:
++     *   <ul>
++     *   <li>The type of event</li>
++     *   <li>All of the arguments fire() was executed with as an array</li>
++     *   <li>The custom object (if any) that was passed into the subscribe() 
++     *       method</li>
++     *   </ul>
++     * @method fire 
++     * @param {Object*} arguments an arbitrary set of parameters to pass to 
++     *                            the handler.
++     * @return {boolean} false if one of the subscribers returned false, 
++     *                   true otherwise
++     */
++    fire: function() {
++
++        this.lastError = null;
++
++        var errors = [],
++            len=this.subscribers.length;
++
++
++        var args=[].slice.call(arguments, 0), ret=true, i, rebuild=false;
++
++        if (this.fireOnce) {
++            if (this.fired) {
++                return true;
++            } else {
++                this.firedWith = args;
++            }
++        }
++
++        this.fired = true;
++
++        if (!len && this.silent) {
++            return true;
++        }
++
++        if (!this.silent) {
++        }
++
++        // make a copy of the subscribers so that there are
++        // no index problems if one subscriber removes another.
++        var subs = this.subscribers.slice();
++
++        for (i=0; i<len; ++i) {
++            var s = subs[i];
++            if (!s) {
++                rebuild=true;
++            } else {
++
++                ret = this.notify(s, args);
++
++                if (false === ret) {
++                    if (!this.silent) {
++                    }
++
++                    break;
++                }
++            }
++        }
++
++        return (ret !== false);
++    },
++
++    notify: function(s, args) {
++
++        var ret, param=null, scope = s.getScope(this.scope),
++                 throwErrors = YAHOO.util.Event.throwErrors;
++
++        if (!this.silent) {
++        }
++
++        if (this.signature == YAHOO.util.CustomEvent.FLAT) {
++
++            if (args.length > 0) {
++                param = args[0];
++            }
++
++            try {
++                ret = s.fn.call(scope, param, s.obj);
++            } catch(e) {
++                this.lastError = e;
++                // errors.push(e);
++                if (throwErrors) {
++                    throw e;
++                }
++            }
++        } else {
++            try {
++                ret = s.fn.call(scope, this.type, args, s.obj);
++            } catch(ex) {
++                this.lastError = ex;
++                if (throwErrors) {
++                    throw ex;
++                }
++            }
++        }
++
++        return ret;
++    },
++
++    /**
++     * Removes all listeners
++     * @method unsubscribeAll
++     * @return {int} The number of listeners unsubscribed
++     */
++    unsubscribeAll: function() {
++        var l = this.subscribers.length, i;
++        for (i=l-1; i>-1; i--) {
++            this._delete(i);
++        }
++
++        this.subscribers=[];
++
++        return l;
++    },
++
++    /**
++     * @method _delete
++     * @private
++     */
++    _delete: function(index) {
++        var s = this.subscribers[index];
++        if (s) {
++            delete s.fn;
++            delete s.obj;
++        }
++
++        // this.subscribers[index]=null;
++        this.subscribers.splice(index, 1);
++    },
++
++    /**
++     * @method toString
++     */
++    toString: function() {
++         return "CustomEvent: " + "'" + this.type  + "', " + 
++             "context: " + this.scope;
++
++    }
++};
++
++/////////////////////////////////////////////////////////////////////
++
++/**
++ * Stores the subscriber information to be used when the event fires.
++ * @param {Function} fn       The function to execute
++ * @param {Object}   obj      An object to be passed along when the event fires
++ * @param {boolean}  overrideContext If true, the obj passed in becomes the execution
++ *                            context of the listener
++ * @class Subscriber
++ * @constructor
++ */
++YAHOO.util.Subscriber = function(fn, obj, overrideContext) {
++
++    /**
++     * The callback that will be execute when the event fires
++     * @property fn
++     * @type function
++     */
++    this.fn = fn;
++
++    /**
++     * An optional custom object that will passed to the callback when
++     * the event fires
++     * @property obj
++     * @type object
++     */
++    this.obj = YAHOO.lang.isUndefined(obj) ? null : obj;
++
++    /**
++     * The default execution context for the event listener is defined when the
++     * event is created (usually the object which contains the event).
++     * By setting overrideContext to true, the execution context becomes the custom
++     * object passed in by the subscriber.  If overrideContext is an object, that 
++     * object becomes the context.
++     * @property overrideContext
++     * @type boolean|object
++     */
++    this.overrideContext = overrideContext;
++
++};
++
++/**
++ * Returns the execution context for this listener.  If overrideContext was set to true
++ * the custom obj will be the context.  If overrideContext is an object, that is the
++ * context, otherwise the default context will be used.
++ * @method getScope
++ * @param {Object} defaultScope the context to use if this listener does not
++ *                              override it.
++ */
++YAHOO.util.Subscriber.prototype.getScope = function(defaultScope) {
++    if (this.overrideContext) {
++        if (this.overrideContext === true) {
++            return this.obj;
++        } else {
++            return this.overrideContext;
++        }
++    }
++    return defaultScope;
++};
++
++/**
++ * Returns true if the fn and obj match this objects properties.
++ * Used by the unsubscribe method to match the right subscriber.
++ *
++ * @method contains
++ * @param {Function} fn the function to execute
++ * @param {Object} obj an object to be passed along when the event fires
++ * @return {boolean} true if the supplied arguments match this 
++ *                   subscriber's signature.
++ */
++YAHOO.util.Subscriber.prototype.contains = function(fn, obj) {
++    if (obj) {
++        return (this.fn == fn && this.obj == obj);
++    } else {
++        return (this.fn == fn);
++    }
++};
++
++/**
++ * @method toString
++ */
++YAHOO.util.Subscriber.prototype.toString = function() {
++    return "Subscriber { obj: " + this.obj  + 
++           ", overrideContext: " +  (this.overrideContext || "no") + " }";
++};
++
++/**
++ * The Event Utility provides utilities for managing DOM Events and tools
++ * for building event systems
++ *
++ * @module event
++ * @title Event Utility
++ * @namespace YAHOO.util
++ * @requires yahoo
++ */
++
++// The first instance of Event will win if it is loaded more than once.
++// @TODO this needs to be changed so that only the state data that needs to
++// be preserved is kept, while methods are overwritten/added as needed.
++// This means that the module pattern can't be used.
++if (!YAHOO.util.Event) {
++
++/**
++ * The event utility provides functions to add and remove event listeners,
++ * event cleansing.  It also tries to automatically remove listeners it
++ * registers during the unload event.
++ *
++ * @class Event
++ * @static
++ */
++    YAHOO.util.Event = function() {
++
++        /**
++         * True after the onload event has fired
++         * @property loadComplete
++         * @type boolean
++         * @static
++         * @private
++         */
++        var loadComplete =  false,
++
++        /**
++         * Cache of wrapped listeners
++         * @property listeners
++         * @type array
++         * @static
++         * @private
++         */
++        listeners = [],
++
++
++        /**
++         * User-defined unload function that will be fired before all events
++         * are detached
++         * @property unloadListeners
++         * @type array
++         * @static
++         * @private
++         */
++        unloadListeners = [],
++
++        /**
++         * The number of times to poll after window.onload.  This number is
++         * increased if additional late-bound handlers are requested after
++         * the page load.
++         * @property retryCount
++         * @static
++         * @private
++         */
++        retryCount = 0,
++
++        /**
++         * onAvailable listeners
++         * @property onAvailStack
++         * @static
++         * @private
++         */
++        onAvailStack = [],
++
++        /**
++         * Counter for auto id generation
++         * @property counter
++         * @static
++         * @private
++         */
++        counter = 0,
++        
++        /**
++         * Normalized keycodes for webkit/safari
++         * @property webkitKeymap
++         * @type {int: int}
++         * @private
++         * @static
++         * @final
++         */
++         webkitKeymap = {
++            63232: 38, // up
++            63233: 40, // down
++            63234: 37, // left
++            63235: 39, // right
++            63276: 33, // page up
++            63277: 34, // page down
++            25: 9      // SHIFT-TAB (Safari provides a different key code in
++                       // this case, even though the shiftKey modifier is set)
++        },
++
++		isIE = YAHOO.env.ua.ie,
++
++        // String constants used by the addFocusListener and removeFocusListener methods
++		
++       	FOCUSIN = "focusin",
++       	FOCUSOUT = "focusout";
++
++        return {
++
++            /**
++             * The number of times we should look for elements that are not
++             * in the DOM at the time the event is requested after the document
++             * has been loaded.  The default is 500@amp;40 ms, so it will poll
++             * for 20 seconds or until all outstanding handlers are bound
++             * (whichever comes first).
++             * @property POLL_RETRYS
++             * @type int
++             * @static
++             * @final
++             */
++            POLL_RETRYS: 500,
++
++            /**
++             * The poll interval in milliseconds
++             * @property POLL_INTERVAL
++             * @type int
++             * @static
++             * @final
++             */
++            POLL_INTERVAL: 40,
++
++            /**
++             * Element to bind, int constant
++             * @property EL
++             * @type int
++             * @static
++             * @final
++             */
++            EL: 0,
++
++            /**
++             * Type of event, int constant
++             * @property TYPE
++             * @type int
++             * @static
++             * @final
++             */
++            TYPE: 1,
++
++            /**
++             * Function to execute, int constant
++             * @property FN
++             * @type int
++             * @static
++             * @final
++             */
++            FN: 2,
++
++            /**
++             * Function wrapped for context correction and cleanup, int constant
++             * @property WFN
++             * @type int
++             * @static
++             * @final
++             */
++            WFN: 3,
++
++            /**
++             * Object passed in by the user that will be returned as a 
++             * parameter to the callback, int constant.  Specific to
++             * unload listeners
++             * @property OBJ
++             * @type int
++             * @static
++             * @final
++             */
++            UNLOAD_OBJ: 3,
++
++            /**
++             * Adjusted context, either the element we are registering the event
++             * on or the custom object passed in by the listener, int constant
++             * @property ADJ_SCOPE
++             * @type int
++             * @static
++             * @final
++             */
++            ADJ_SCOPE: 4,
++
++            /**
++             * The original obj passed into addListener
++             * @property OBJ
++             * @type int
++             * @static
++             * @final
++             */
++            OBJ: 5,
++
++            /**
++             * The original context parameter passed into addListener
++             * @property OVERRIDE
++             * @type int
++             * @static
++             * @final
++             */
++            OVERRIDE: 6,
++
++            /**
++             * The original capture parameter passed into addListener
++             * @property CAPTURE
++             * @type int
++             * @static
++             * @final
++             */
++			CAPTURE: 7,
++
++            /**
++             * addListener/removeListener can throw errors in unexpected scenarios.
++             * These errors are suppressed, the method returns false, and this property
++             * is set
++             * @property lastError
++             * @static
++             * @type Error
++             */
++            lastError: null,
++
++            /**
++             * Safari detection
++             * @property isSafari
++             * @private
++             * @static
++             * @deprecated use YAHOO.env.ua.webkit
++             */
++            isSafari: YAHOO.env.ua.webkit,
++            
++            /**
++             * webkit version
++             * @property webkit
++             * @type string
++             * @private
++             * @static
++             * @deprecated use YAHOO.env.ua.webkit
++             */
++            webkit: YAHOO.env.ua.webkit,
++            
++            /**
++             * IE detection 
++             * @property isIE
++             * @private
++             * @static
++             * @deprecated use YAHOO.env.ua.ie
++             */
++            isIE: isIE,
++
++            /**
++             * poll handle
++             * @property _interval
++             * @static
++             * @private
++             */
++            _interval: null,
++
++            /**
++             * document readystate poll handle
++             * @property _dri
++             * @static
++             * @private
++             */
++             _dri: null,
++
++
++            /**
++             * Map of special event types
++             * @property _specialTypes
++             * @static
++             * @private
++             */
++			_specialTypes: {
++				focusin: (isIE ? "focusin" : "focus"),
++				focusout: (isIE ? "focusout" : "blur")
++			},
++
++
++            /**
++             * True when the document is initially usable
++             * @property DOMReady
++             * @type boolean
++             * @static
++             */
++            DOMReady: false,
++
++            /**
++             * Errors thrown by subscribers of custom events are caught
++             * and the error message is written to the debug console.  If
++             * this property is set to true, it will also re-throw the
++             * error.
++             * @property throwErrors
++             * @type boolean
++             * @default false
++             */
++            throwErrors: false,
++
++
++            /**
++             * @method startInterval
++             * @static
++             * @private
++             */
++            startInterval: function() {
++                if (!this._interval) {
++                    // var self = this;
++                    // var callback = function() { self._tryPreloadAttach(); };
++                    // this._interval = setInterval(callback, this.POLL_INTERVAL);
++                    this._interval = YAHOO.lang.later(this.POLL_INTERVAL, this, this._tryPreloadAttach, null, true);
++                }
++            },
++
++            /**
++             * Executes the supplied callback when the item with the supplied
++             * id is found.  This is meant to be used to execute behavior as
++             * soon as possible as the page loads.  If you use this after the
++             * initial page load it will poll for a fixed time for the element.
++             * The number of times it will poll and the frequency are
++             * configurable.  By default it will poll for 10 seconds.
++             *
++             * <p>The callback is executed with a single parameter:
++             * the custom object parameter, if provided.</p>
++             *
++             * @method onAvailable
++             *
++             * @param {string||string[]}   id the id of the element, or an array
++             * of ids to look for.
++             * @param {function} fn what to execute when the element is found.
++             * @param {object}   obj an optional object to be passed back as
++             *                   a parameter to fn.
++             * @param {boolean|object}  overrideContext If set to true, fn will execute
++             *                   in the context of obj, if set to an object it
++             *                   will execute in the context of that object
++             * @param checkContent {boolean} check child node readiness (onContentReady)
++             * @static
++             */
++            onAvailable: function(id, fn, obj, overrideContext, checkContent) {
++
++                var a = (YAHOO.lang.isString(id)) ? [id] : id;
++
++                for (var i=0; i<a.length; i=i+1) {
++                    onAvailStack.push({id:         a[i], 
++                                       fn:         fn, 
++                                       obj:        obj, 
++                                       overrideContext:   overrideContext, 
++                                       checkReady: checkContent });
++                }
++
++                retryCount = this.POLL_RETRYS;
++
++                this.startInterval();
++            },
++
++            /**
++             * Works the same way as onAvailable, but additionally checks the
++             * state of sibling elements to determine if the content of the
++             * available element is safe to modify.
++             *
++             * <p>The callback is executed with a single parameter:
++             * the custom object parameter, if provided.</p>
++             *
++             * @method onContentReady
++             *
++             * @param {string}   id the id of the element to look for.
++             * @param {function} fn what to execute when the element is ready.
++             * @param {object}   obj an optional object to be passed back as
++             *                   a parameter to fn.
++             * @param {boolean|object}  overrideContext If set to true, fn will execute
++             *                   in the context of obj.  If an object, fn will
++             *                   exectute in the context of that object
++             *
++             * @static
++             */
++            onContentReady: function(id, fn, obj, overrideContext) {
++                this.onAvailable(id, fn, obj, overrideContext, true);
++            },
++
++            /**
++             * Executes the supplied callback when the DOM is first usable.  This
++             * will execute immediately if called after the DOMReady event has
++             * fired.   @todo the DOMContentReady event does not fire when the
++             * script is dynamically injected into the page.  This means the
++             * DOMReady custom event will never fire in FireFox or Opera when the
++             * library is injected.  It _will_ fire in Safari, and the IE 
++             * implementation would allow for us to fire it if the defered script
++             * is not available.  We want this to behave the same in all browsers.
++             * Is there a way to identify when the script has been injected 
++             * instead of included inline?  Is there a way to know whether the 
++             * window onload event has fired without having had a listener attached 
++             * to it when it did so?
++             *
++             * <p>The callback is a CustomEvent, so the signature is:</p>
++             * <p>type &lt;string&gt;, args &lt;array&gt;, customobject &lt;object&gt;</p>
++             * <p>For DOMReady events, there are no fire argments, so the
++             * signature is:</p>
++             * <p>"DOMReady", [], obj</p>
++             *
++             *
++             * @method onDOMReady
++             *
++             * @param {function} fn what to execute when the element is found.
++             * @param {object}   obj an optional object to be passed back as
++             *                   a parameter to fn.
++             * @param {boolean|object}  overrideContext If set to true, fn will execute
++             *                   in the context of obj, if set to an object it
++             *                   will execute in the context of that object
++             *
++             * @static
++             */
++            // onDOMReady: function(fn, obj, overrideContext) {
++            onDOMReady: function() {
++                this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent, arguments);
++            },
++
++
++            /**
++             * Appends an event handler
++             *
++             * @method _addListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {String}   sType     The type of event to append
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @param {boolen}      capture capture or bubble phase
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @private
++             * @static
++             */
++            _addListener: function(el, sType, fn, obj, overrideContext, bCapture) {
++
++                if (!fn || !fn.call) {
++                    return false;
++                }
++
++                // The el argument can be an array of elements or element ids.
++                if ( this._isValidCollection(el)) {
++                    var ok = true;
++                    for (var i=0,len=el.length; i<len; ++i) {
++                        ok = this.on(el[i], 
++                                       sType, 
++                                       fn, 
++                                       obj, 
++                                       overrideContext) && ok;
++                    }
++                    return ok;
++
++                } else if (YAHOO.lang.isString(el)) {
++                    var oEl = this.getEl(el);
++                    // If the el argument is a string, we assume it is 
++                    // actually the id of the element.  If the page is loaded
++                    // we convert el to the actual element, otherwise we 
++                    // defer attaching the event until onload event fires
++
++                    // check to see if we need to delay hooking up the event 
++                    // until after the page loads.
++                    if (oEl) {
++                        el = oEl;
++                    } else {
++                        // defer adding the event until the element is available
++                        this.onAvailable(el, function() {
++                           YAHOO.util.Event._addListener(el, sType, fn, obj, overrideContext, bCapture);
++                        });
++
++                        return true;
++                    }
++                }
++
++                // Element should be an html element or an array if we get 
++                // here.
++                if (!el) {
++                    return false;
++                }
++
++                // we need to make sure we fire registered unload events 
++                // prior to automatically unhooking them.  So we hang on to 
++                // these instead of attaching them to the window and fire the
++                // handles explicitly during our one unload event.
++                if ("unload" == sType && obj !== this) {
++                    unloadListeners[unloadListeners.length] =
++                            [el, sType, fn, obj, overrideContext];
++                    return true;
++                }
++
++
++                // if the user chooses to override the context, we use the custom
++                // object passed in, otherwise the executing context will be the
++                // HTML element that the event is registered on
++                var context = el;
++                if (overrideContext) {
++                    if (overrideContext === true) {
++                        context = obj;
++                    } else {
++                        context = overrideContext;
++                    }
++                }
++
++                // wrap the function so we can return the obj object when
++                // the event fires;
++                var wrappedFn = function(e) {
++                        return fn.call(context, YAHOO.util.Event.getEvent(e, el), 
++                                obj);
++                    };
++
++                var li = [el, sType, fn, wrappedFn, context, obj, overrideContext, bCapture];
++                var index = listeners.length;
++                // cache the listener so we can try to automatically unload
++                listeners[index] = li;
++
++                try {
++                    this._simpleAdd(el, sType, wrappedFn, bCapture);
++                } catch(ex) {
++                    // handle an error trying to attach an event.  If it fails
++                    // we need to clean up the cache
++                    this.lastError = ex;
++                    this.removeListener(el, sType, fn);
++                    return false;
++                }
++
++                return true;
++                
++            },
++
++            /**
++             * Checks to see if the type requested is a special type 
++			 * (as defined by the _specialTypes hash), and (if so) returns 
++			 * the special type name.
++             *
++             * @method _getType
++             *
++             * @param {String}   sType     The type to look up
++             * @private
++             */
++			_getType: function (type) {
++			
++				return this._specialTypes[type] || type;
++				
++			},
++
++
++            /**
++             * Appends an event handler
++             *
++             * @method addListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {String}   sType     The type of event to append
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @static
++             */
++            addListener: function (el, sType, fn, obj, overrideContext) {
++
++				var capture = ((sType == FOCUSIN || sType == FOCUSOUT) && !YAHOO.env.ua.ie) ? true : false;
++
++                return this._addListener(el, this._getType(sType), fn, obj, overrideContext, capture);
++
++        	},
++
++
++            /**
++             * Attaches a focusin event listener to the specified element for 
++ 			 * the purpose of listening for the focus event on the element's 
++             * descendants.
++             * @method addFocusListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @static
++			* @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
++             */
++            addFocusListener: function (el, fn, obj, overrideContext) {
++                return this.on(el, FOCUSIN, fn, obj, overrideContext);
++            },          
++
++
++            /**
++             * Removes a focusin event listener to the specified element for 
++			 * the purpose of listening for the focus event on the element's 
++             * descendants.
++             *
++             * @method removeFocusListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to remove
++             *  the listener from.
++             * @param {Function} fn the method the event invokes.  If fn is
++             *  undefined, then all event handlers for the type of event are 
++             *  removed.
++             * @return {boolean} true if the unbind was successful, false 
++             *  otherwise.
++             * @static
++         	 * @deprecated use YAHOO.util.Event.removeListener and specify "focusin" as the event type.
++             */
++            removeFocusListener: function (el, fn) { 
++                return this.removeListener(el, FOCUSIN, fn);
++            },
++
++            /**
++             * Attaches a focusout event listener to the specified element for 
++			 * the purpose of listening for the blur event on the element's 
++			 * descendants.
++             *
++             * @method addBlurListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to assign the 
++             *  listener to.
++             * @param {Function} fn        The method the event invokes
++             * @param {Object}   obj    An arbitrary object that will be 
++             *                             passed as a parameter to the handler
++             * @param {Boolean|object}  overrideContext  If true, the obj passed in becomes
++             *                             the execution context of the listener. If an
++             *                             object, this object becomes the execution
++             *                             context.
++             * @return {Boolean} True if the action was successful or defered,
++             *                        false if one or more of the elements 
++             *                        could not have the listener attached,
++             *                        or if the operation throws an exception.
++             * @static
++         	 * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
++             */
++            addBlurListener: function (el, fn, obj, overrideContext) {
++                return this.on(el, FOCUSOUT, fn, obj, overrideContext);
++            },          
++
++            /**
++             * Removes a focusout event listener to the specified element for 
++			 * the purpose of listening for the blur event on the element's 
++			 * descendants.
++             *
++             * @method removeBlurListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to remove
++             *  the listener from.
++             * @param {Function} fn the method the event invokes.  If fn is
++             *  undefined, then all event handlers for the type of event are 
++             *  removed.
++             * @return {boolean} true if the unbind was successful, false 
++             *  otherwise.
++             * @static
++         	 * @deprecated use YAHOO.util.Event.removeListener and specify "focusout" as the event type.
++             */
++            removeBlurListener: function (el, fn) { 
++                return this.removeListener(el, FOCUSOUT, fn);
++            },
++
++            /**
++             * Removes an event listener
++             *
++             * @method removeListener
++             *
++             * @param {String|HTMLElement|Array|NodeList} el An id, an element 
++             *  reference, or a collection of ids and/or elements to remove
++             *  the listener from.
++             * @param {String} sType the type of event to remove.
++             * @param {Function} fn the method the event invokes.  If fn is
++             *  undefined, then all event handlers for the type of event are 
++             *  removed.
++             * @return {boolean} true if the unbind was successful, false 
++             *  otherwise.
++             * @static
++             */
++            removeListener: function(el, sType, fn) {
++                var i, len, li;
++
++				sType = this._getType(sType);
++
++                // The el argument can be a string
++                if (typeof el == "string") {
++                    el = this.getEl(el);
++                // The el argument can be an array of elements or element ids.
++                } else if ( this._isValidCollection(el)) {
++                    var ok = true;
++                    for (i=el.length-1; i>-1; i--) {
++                        ok = ( this.removeListener(el[i], sType, fn) && ok );
++                    }
++                    return ok;
++                }
++
++                if (!fn || !fn.call) {
++                    //return false;
++                    return this.purgeElement(el, false, sType);
++                }
++
++                if ("unload" == sType) {
++
++                    for (i=unloadListeners.length-1; i>-1; i--) {
++                        li = unloadListeners[i];
++                        if (li && 
++                            li[0] == el && 
++                            li[1] == sType && 
++                            li[2] == fn) {
++                                unloadListeners.splice(i, 1);
++                                // unloadListeners[i]=null;
++                                return true;
++                        }
++                    }
++
++                    return false;
++                }
++
++                var cacheItem = null;
++
++                // The index is a hidden parameter; needed to remove it from
++                // the method signature because it was tempting users to
++                // try and take advantage of it, which is not possible.
++                var index = arguments[3];
++  
++                if ("undefined" === typeof index) {
++                    index = this._getCacheIndex(listeners, el, sType, fn);
++                }
++
++                if (index >= 0) {
++                    cacheItem = listeners[index];
++                }
++
++                if (!el || !cacheItem) {
++                    return false;
++                }
++
++
++				var bCapture = cacheItem[this.CAPTURE] === true ? true : false;
++
++                try {
++                    this._simpleRemove(el, sType, cacheItem[this.WFN], bCapture);
++                } catch(ex) {
++                    this.lastError = ex;
++                    return false;
++                }
++
++                // removed the wrapped handler
++                delete listeners[index][this.WFN];
++                delete listeners[index][this.FN];
++                listeners.splice(index, 1);
++                // listeners[index]=null;
++
++                return true;
++
++            },
++
++            /**
++             * Returns the event's target element.  Safari sometimes provides
++             * a text node, and this is automatically resolved to the text
++             * node's parent so that it behaves like other browsers.
++             * @method getTarget
++             * @param {Event} ev the event
++             * @param {boolean} resolveTextNode when set to true the target's
++             *                  parent will be returned if the target is a 
++             *                  text node.  @deprecated, the text node is
++             *                  now resolved automatically
++             * @return {HTMLElement} the event's target
++             * @static
++             */
++            getTarget: function(ev, resolveTextNode) {
++                var t = ev.target || ev.srcElement;
++                return this.resolveTextNode(t);
++            },
++
++            /**
++             * In some cases, some browsers will return a text node inside
++             * the actual element that was targeted.  This normalizes the
++             * return value for getTarget and getRelatedTarget.
++             * @method resolveTextNode
++             * @param {HTMLElement} node node to resolve
++             * @return {HTMLElement} the normized node
++             * @static
++             */
++            resolveTextNode: function(n) {
++                try {
++                    if (n && 3 == n.nodeType) {
++                        return n.parentNode;
++                    }
++                } catch(e) { }
++
++                return n;
++            },
++
++            /**
++             * Returns the event's pageX
++             * @method getPageX
++             * @param {Event} ev the event
++             * @return {int} the event's pageX
++             * @static
++             */
++            getPageX: function(ev) {
++                var x = ev.pageX;
++                if (!x && 0 !== x) {
++                    x = ev.clientX || 0;
++
++                    if ( this.isIE ) {
++                        x += this._getScrollLeft();
++                    }
++                }
++
++                return x;
++            },
++
++            /**
++             * Returns the event's pageY
++             * @method getPageY
++             * @param {Event} ev the event
++             * @return {int} the event's pageY
++             * @static
++             */
++            getPageY: function(ev) {
++                var y = ev.pageY;
++                if (!y && 0 !== y) {
++                    y = ev.clientY || 0;
++
++                    if ( this.isIE ) {
++                        y += this._getScrollTop();
++                    }
++                }
++
++
++                return y;
++            },
++
++            /**
++             * Returns the pageX and pageY properties as an indexed array.
++             * @method getXY
++             * @param {Event} ev the event
++             * @return {[x, y]} the pageX and pageY properties of the event
++             * @static
++             */
++            getXY: function(ev) {
++                return [this.getPageX(ev), this.getPageY(ev)];
++            },
++
++            /**
++             * Returns the event's related target 
++             * @method getRelatedTarget
++             * @param {Event} ev the event
++             * @return {HTMLElement} the event's relatedTarget
++             * @static
++             */
++            getRelatedTarget: function(ev) {
++                var t = ev.relatedTarget;
++                if (!t) {
++                    if (ev.type == "mouseout") {
++                        t = ev.toElement;
++                    } else if (ev.type == "mouseover") {
++                        t = ev.fromElement;
++                    }
++                }
++
++                return this.resolveTextNode(t);
++            },
++
++            /**
++             * Returns the time of the event.  If the time is not included, the
++             * event is modified using the current time.
++             * @method getTime
++             * @param {Event} ev the event
++             * @return {Date} the time of the event
++             * @static
++             */
++            getTime: function(ev) {
++                if (!ev.time) {
++                    var t = new Date().getTime();
++                    try {
++                        ev.time = t;
++                    } catch(ex) { 
++                        this.lastError = ex;
++                        return t;
++                    }
++                }
++
++                return ev.time;
++            },
++
++            /**
++             * Convenience method for stopPropagation + preventDefault
++             * @method stopEvent
++             * @param {Event} ev the event
++             * @static
++             */
++            stopEvent: function(ev) {
++                this.stopPropagation(ev);
++                this.preventDefault(ev);
++            },
++
++            /**
++             * Stops event propagation
++             * @method stopPropagation
++             * @param {Event} ev the event
++             * @static
++             */
++            stopPropagation: function(ev) {
++                if (ev.stopPropagation) {
++                    ev.stopPropagation();
++                } else {
++                    ev.cancelBubble = true;
++                }
++            },
++
++            /**
++             * Prevents the default behavior of the event
++             * @method preventDefault
++             * @param {Event} ev the event
++             * @static
++             */
++            preventDefault: function(ev) {
++                if (ev.preventDefault) {
++                    ev.preventDefault();
++                } else {
++                    ev.returnValue = false;
++                }
++            },
++             
++            /**
++             * Finds the event in the window object, the caller's arguments, or
++             * in the arguments of another method in the callstack.  This is
++             * executed automatically for events registered through the event
++             * manager, so the implementer should not normally need to execute
++             * this function at all.
++             * @method getEvent
++             * @param {Event} e the event parameter from the handler
++             * @param {HTMLElement} boundEl the element the listener is attached to
++             * @return {Event} the event 
++             * @static
++             */
++            getEvent: function(e, boundEl) {
++                var ev = e || window.event;
++
++                if (!ev) {
++                    var c = this.getEvent.caller;
++                    while (c) {
++                        ev = c.arguments[0];
++                        if (ev && Event == ev.constructor) {
++                            break;
++                        }
++                        c = c.caller;
++                    }
++                }
++
++                return ev;
++            },
++
++            /**
++             * Returns the charcode for an event
++             * @method getCharCode
++             * @param {Event} ev the event
++             * @return {int} the event's charCode
++             * @static
++             */
++            getCharCode: function(ev) {
++                var code = ev.keyCode || ev.charCode || 0;
++
++                // webkit key normalization
++                if (YAHOO.env.ua.webkit && (code in webkitKeymap)) {
++                    code = webkitKeymap[code];
++                }
++                return code;
++            },
++
++            /**
++             * Locating the saved event handler data by function ref
++             *
++             * @method _getCacheIndex
++             * @static
++             * @private
++             */
++            _getCacheIndex: function(a, el, sType, fn) {
++                for (var i=0, l=a.length; i<l; i=i+1) {
++                    var li = a[i];
++                    if ( li                 && 
++                         li[this.FN] == fn  && 
++                         li[this.EL] == el  && 
++                         li[this.TYPE] == sType ) {
++                        return i;
++                    }
++                }
++
++                return -1;
++            },
++
++            /**
++             * Generates an unique ID for the element if it does not already 
++             * have one.
++             * @method generateId
++             * @param el the element to create the id for
++             * @return {string} the resulting id of the element
++             * @static
++             */
++            generateId: function(el) {
++                var id = el.id;
++
++                if (!id) {
++                    id = "yuievtautoid-" + counter;
++                    ++counter;
++                    el.id = id;
++                }
++
++                return id;
++            },
++
++
++            /**
++             * We want to be able to use getElementsByTagName as a collection
++             * to attach a group of events to.  Unfortunately, different 
++             * browsers return different types of collections.  This function
++             * tests to determine if the object is array-like.  It will also 
++             * fail if the object is an array, but is empty.
++             * @method _isValidCollection
++             * @param o the object to test
++             * @return {boolean} true if the object is array-like and populated
++             * @static
++             * @private
++             */
++            _isValidCollection: function(o) {
++                try {
++                    return ( o                     && // o is something
++                             typeof o !== "string" && // o is not a string
++                             o.length              && // o is indexed
++                             !o.tagName            && // o is not an HTML element
++                             !o.alert              && // o is not a window
++                             typeof o[0] !== "undefined" );
++                } catch(ex) {
++                    return false;
++                }
++
++            },
++
++            /**
++             * @private
++             * @property elCache
++             * DOM element cache
++             * @static
++             * @deprecated Elements are not cached due to issues that arise when
++             * elements are removed and re-added
++             */
++            elCache: {},
++
++            /**
++             * We cache elements bound by id because when the unload event 
++             * fires, we can no longer use document.getElementById
++             * @method getEl
++             * @static
++             * @private
++             * @deprecated Elements are not cached any longer
++             */
++            getEl: function(id) {
++                return (typeof id === "string") ? document.getElementById(id) : id;
++            },
++
++            /**
++             * Clears the element cache
++             * @deprecated Elements are not cached any longer
++             * @method clearCache
++             * @static
++             * @private
++             */
++            clearCache: function() { },
++
++            /**
++             * Custom event the fires when the dom is initially usable
++             * @event DOMReadyEvent
++             */
++            DOMReadyEvent: new YAHOO.util.CustomEvent("DOMReady", YAHOO, 0, 0, 1),
++
++            /**
++             * hook up any deferred listeners
++             * @method _load
++             * @static
++             * @private
++             */
++            _load: function(e) {
++
++                if (!loadComplete) {
++                    loadComplete = true;
++                    var EU = YAHOO.util.Event;
++
++                    // Just in case DOMReady did not go off for some reason
++                    EU._ready();
++
++                    // Available elements may not have been detected before the
++                    // window load event fires. Try to find them now so that the
++                    // the user is more likely to get the onAvailable notifications
++                    // before the window load notification
++                    EU._tryPreloadAttach();
++
++                }
++            },
++
++            /**
++             * Fires the DOMReady event listeners the first time the document is
++             * usable.
++             * @method _ready
++             * @static
++             * @private
++             */
++            _ready: function(e) {
++                var EU = YAHOO.util.Event;
++                if (!EU.DOMReady) {
++                    EU.DOMReady=true;
++
++                    // Fire the content ready custom event
++                    EU.DOMReadyEvent.fire();
++
++                    // Remove the DOMContentLoaded (FF/Opera)
++                    EU._simpleRemove(document, "DOMContentLoaded", EU._ready);
++                }
++            },
++
++            /**
++             * Polling function that runs before the onload event fires, 
++             * attempting to attach to DOM Nodes as soon as they are 
++             * available
++             * @method _tryPreloadAttach
++             * @static
++             * @private
++             */
++            _tryPreloadAttach: function() {
++
++                if (onAvailStack.length === 0) {
++                    retryCount = 0;
++                    if (this._interval) {
++                        // clearInterval(this._interval);
++                        this._interval.cancel();
++                        this._interval = null;
++                    } 
++                    return;
++                }
++
++                if (this.locked) {
++                    return;
++                }
++
++                if (this.isIE) {
++                    // Hold off if DOMReady has not fired and check current
++                    // readyState to protect against the IE operation aborted
++                    // issue.
++                    if (!this.DOMReady) {
++                        this.startInterval();
++                        return;
++                    }
++                }
++
++                this.locked = true;
++
++
++                // keep trying until after the page is loaded.  We need to 
++                // check the page load state prior to trying to bind the 
++                // elements so that we can be certain all elements have been 
++                // tested appropriately
++                var tryAgain = !loadComplete;
++                if (!tryAgain) {
++                    tryAgain = (retryCount > 0 && onAvailStack.length > 0);
++                }
++
++                // onAvailable
++                var notAvail = [];
++
++                var executeItem = function (el, item) {
++                    var context = el;
++                    if (item.overrideContext) {
++                        if (item.overrideContext === true) {
++                            context = item.obj;
++                        } else {
++                            context = item.overrideContext;
++                        }
++                    }
++                    item.fn.call(context, item.obj);
++                };
++
++                var i, len, item, el, ready=[];
++
++                // onAvailable onContentReady
++                for (i=0, len=onAvailStack.length; i<len; i=i+1) {
++                    item = onAvailStack[i];
++                    if (item) {
++                        el = this.getEl(item.id);
++                        if (el) {
++                            if (item.checkReady) {
++                                if (loadComplete || el.nextSibling || !tryAgain) {
++                                    ready.push(item);
++                                    onAvailStack[i] = null;
++                                }
++                            } else {
++                                executeItem(el, item);
++                                onAvailStack[i] = null;
++                            }
++                        } else {
++                            notAvail.push(item);
++                        }
++                    }
++                }
++                
++                // make sure onContentReady fires after onAvailable
++                for (i=0, len=ready.length; i<len; i=i+1) {
++                    item = ready[i];
++                    executeItem(this.getEl(item.id), item);
++                }
++
++
++                retryCount--;
++
++                if (tryAgain) {
++                    for (i=onAvailStack.length-1; i>-1; i--) {
++                        item = onAvailStack[i];
++                        if (!item || !item.id) {
++                            onAvailStack.splice(i, 1);
++                        }
++                    }
++
++                    this.startInterval();
++                } else {
++                    if (this._interval) {
++                        // clearInterval(this._interval);
++                        this._interval.cancel();
++                        this._interval = null;
++                    }
++                }
++
++                this.locked = false;
++
++            },
++
++            /**
++             * Removes all listeners attached to the given element via addListener.
++             * Optionally, the node's children can also be purged.
++             * Optionally, you can specify a specific type of event to remove.
++             * @method purgeElement
++             * @param {HTMLElement} el the element to purge
++             * @param {boolean} recurse recursively purge this element's children
++             * as well.  Use with caution.
++             * @param {string} sType optional type of listener to purge. If
++             * left out, all listeners will be removed
++             * @static
++             */
++            purgeElement: function(el, recurse, sType) {
++                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
++                var elListeners = this.getListeners(oEl, sType), i, len;
++                if (elListeners) {
++                    for (i=elListeners.length-1; i>-1; i--) {
++                        var l = elListeners[i];
++                        this.removeListener(oEl, l.type, l.fn);
++                    }
++                }
++
++                if (recurse && oEl && oEl.childNodes) {
++                    for (i=0,len=oEl.childNodes.length; i<len ; ++i) {
++                        this.purgeElement(oEl.childNodes[i], recurse, sType);
++                    }
++                }
++            },
++
++            /**
++             * Returns all listeners attached to the given element via addListener.
++             * Optionally, you can specify a specific type of event to return.
++             * @method getListeners
++             * @param el {HTMLElement|string} the element or element id to inspect 
++             * @param sType {string} optional type of listener to return. If
++             * left out, all listeners will be returned
++             * @return {Object} the listener. Contains the following fields:
++             * &nbsp;&nbsp;type:   (string)   the type of event
++             * &nbsp;&nbsp;fn:     (function) the callback supplied to addListener
++             * &nbsp;&nbsp;obj:    (object)   the custom object supplied to addListener
++             * &nbsp;&nbsp;adjust: (boolean|object)  whether or not to adjust the default context
++             * &nbsp;&nbsp;scope: (boolean)  the derived context based on the adjust parameter
++             * &nbsp;&nbsp;index:  (int)      its position in the Event util listener cache
++             * @static
++             */           
++            getListeners: function(el, sType) {
++                var results=[], searchLists;
++                if (!sType) {
++                    searchLists = [listeners, unloadListeners];
++                } else if (sType === "unload") {
++                    searchLists = [unloadListeners];
++                } else {
++					sType = this._getType(sType);
++                    searchLists = [listeners];
++                }
++
++                var oEl = (YAHOO.lang.isString(el)) ? this.getEl(el) : el;
++
++                for (var j=0;j<searchLists.length; j=j+1) {
++                    var searchList = searchLists[j];
++                    if (searchList) {
++                        for (var i=0,len=searchList.length; i<len ; ++i) {
++                            var l = searchList[i];
++                            if ( l  && l[this.EL] === oEl && 
++                                    (!sType || sType === l[this.TYPE]) ) {
++                                results.push({
++                                    type:   l[this.TYPE],
++                                    fn:     l[this.FN],
++                                    obj:    l[this.OBJ],
++                                    adjust: l[this.OVERRIDE],
++                                    scope:  l[this.ADJ_SCOPE],
++                                    index:  i
++                                });
++                            }
++                        }
++                    }
++                }
++
++                return (results.length) ? results : null;
++            },
++
++            /**
++             * Removes all listeners registered by pe.event.  Called 
++             * automatically during the unload event.
++             * @method _unload
++             * @static
++             * @private
++             */
++            _unload: function(e) {
++
++                var EU = YAHOO.util.Event, i, j, l, len, index,
++                         ul = unloadListeners.slice(), context;
++
++                // execute and clear stored unload listeners
++                for (i=0, len=unloadListeners.length; i<len; ++i) {
++                    l = ul[i];
++                    if (l) {
++                        context = window;
++                        if (l[EU.ADJ_SCOPE]) {
++                            if (l[EU.ADJ_SCOPE] === true) {
++                                context = l[EU.UNLOAD_OBJ];
++                            } else {
++                                context = l[EU.ADJ_SCOPE];
++                            }
++                        }
++                        l[EU.FN].call(context, EU.getEvent(e, l[EU.EL]), l[EU.UNLOAD_OBJ] );
++                        ul[i] = null;
++                    }
++                }
++
++                l = null;
++                context = null;
++                unloadListeners = null;
++
++                // Remove listeners to handle IE memory leaks
++                // 2.5.0 listeners are removed for all browsers again.  FireFox preserves
++                // at least some listeners between page refreshes, potentially causing
++                // errors during page load (mouseover listeners firing before they
++                // should if the user moves the mouse at the correct moment).
++                if (listeners) {
++                    for (j=listeners.length-1; j>-1; j--) {
++                        l = listeners[j];
++                        if (l) {
++                            EU.removeListener(l[EU.EL], l[EU.TYPE], l[EU.FN], j);
++                        } 
++                    }
++                    l=null;
++                }
++
++                EU._simpleRemove(window, "unload", EU._unload);
++
++            },
++
++            /**
++             * Returns scrollLeft
++             * @method _getScrollLeft
++             * @static
++             * @private
++             */
++            _getScrollLeft: function() {
++                return this._getScroll()[1];
++            },
++
++            /**
++             * Returns scrollTop
++             * @method _getScrollTop
++             * @static
++             * @private
++             */
++            _getScrollTop: function() {
++                return this._getScroll()[0];
++            },
++
++            /**
++             * Returns the scrollTop and scrollLeft.  Used to calculate the 
++             * pageX and pageY in Internet Explorer
++             * @method _getScroll
++             * @static
++             * @private
++             */
++            _getScroll: function() {
++                var dd = document.documentElement, db = document.body;
++                if (dd && (dd.scrollTop || dd.scrollLeft)) {
++                    return [dd.scrollTop, dd.scrollLeft];
++                } else if (db) {
++                    return [db.scrollTop, db.scrollLeft];
++                } else {
++                    return [0, 0];
++                }
++            },
++            
++            /**
++             * Used by old versions of CustomEvent, restored for backwards
++             * compatibility
++             * @method regCE
++             * @private
++             * @static
++             * @deprecated still here for backwards compatibility
++             */
++            regCE: function() {},
++
++            /**
++             * Adds a DOM event directly without the caching, cleanup, context adj, etc
++             *
++             * @method _simpleAdd
++             * @param {HTMLElement} el      the element to bind the handler to
++             * @param {string}      sType   the type of event handler
++             * @param {function}    fn      the callback to invoke
++             * @param {boolen}      capture capture or bubble phase
++             * @static
++             * @private
++             */
++            _simpleAdd: function () {
++                if (window.addEventListener) {
++                    return function(el, sType, fn, capture) {
++                        el.addEventListener(sType, fn, (capture));
++                    };
++                } else if (window.attachEvent) {
++                    return function(el, sType, fn, capture) {
++                        el.attachEvent("on" + sType, fn);
++                    };
++                } else {
++                    return function(){};
++                }
++            }(),
++
++            /**
++             * Basic remove listener
++             *
++             * @method _simpleRemove
++             * @param {HTMLElement} el      the element to bind the handler to
++             * @param {string}      sType   the type of event handler
++             * @param {function}    fn      the callback to invoke
++             * @param {boolen}      capture capture or bubble phase
++             * @static
++             * @private
++             */
++            _simpleRemove: function() {
++                if (window.removeEventListener) {
++                    return function (el, sType, fn, capture) {
++                        el.removeEventListener(sType, fn, (capture));
++                    };
++                } else if (window.detachEvent) {
++                    return function (el, sType, fn) {
++                        el.detachEvent("on" + sType, fn);
++                    };
++                } else {
++                    return function(){};
++                }
++            }()
++        };
++
++    }();
++
++    (function() {
++        var EU = YAHOO.util.Event;
++
++        /**
++         * YAHOO.util.Event.on is an alias for addListener
++         * @method on
++         * @see addListener
++         * @static
++         */
++        EU.on = EU.addListener;
++
++        /**
++         * YAHOO.util.Event.onFocus is an alias for addFocusListener
++         * @method onFocus
++         * @see addFocusListener
++         * @static
++		 * @deprecated use YAHOO.util.Event.on and specify "focusin" as the event type.
++         */
++        EU.onFocus = EU.addFocusListener;
++
++        /**
++         * YAHOO.util.Event.onBlur is an alias for addBlurListener
++         * @method onBlur
++         * @see addBlurListener
++         * @static
++		 * @deprecated use YAHOO.util.Event.on and specify "focusout" as the event type.
++         */     
++        EU.onBlur = EU.addBlurListener;
++
++/*! DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
++
++        // Internet Explorer: use the readyState of a defered script.
++        // This isolates what appears to be a safe moment to manipulate
++        // the DOM prior to when the document's readyState suggests
++        // it is safe to do so.
++        if (EU.isIE) {
++            if (self !== self.top) {
++                document.onreadystatechange = function() {
++                    if (document.readyState == 'complete') {
++                        document.onreadystatechange = null;
++                        EU._ready();
++                    }
++                };
++            } else {
++
++                // Process onAvailable/onContentReady items when the 
++                // DOM is ready.
++                YAHOO.util.Event.onDOMReady(
++                        YAHOO.util.Event._tryPreloadAttach,
++                        YAHOO.util.Event, true);
++                
++                var n = document.createElement('p');  
++
++                EU._dri = setInterval(function() {
++                    try {
++                        // throws an error if doc is not ready
++                        n.doScroll('left');
++                        clearInterval(EU._dri);
++                        EU._dri = null;
++                        EU._ready();
++                        n = null;
++                    } catch (ex) { 
++                    }
++                }, EU.POLL_INTERVAL); 
++            }
++
++        // The document's readyState in Safari currently will
++        // change to loaded/complete before images are loaded.
++        } else if (EU.webkit && EU.webkit < 525) {
++
++            EU._dri = setInterval(function() {
++                var rs=document.readyState;
++                if ("loaded" == rs || "complete" == rs) {
++                    clearInterval(EU._dri);
++                    EU._dri = null;
++                    EU._ready();
++                }
++            }, EU.POLL_INTERVAL); 
++
++        // FireFox and Opera: These browsers provide a event for this
++        // moment.  The latest WebKit releases now support this event.
++        } else {
++
++            EU._simpleAdd(document, "DOMContentLoaded", EU._ready);
++
++        }
++        /////////////////////////////////////////////////////////////
++
++
++        EU._simpleAdd(window, "load", EU._load);
++        EU._simpleAdd(window, "unload", EU._unload);
++        EU._tryPreloadAttach();
++    })();
++
++}
++/**
++ * EventProvider is designed to be used with YAHOO.augment to wrap 
++ * CustomEvents in an interface that allows events to be subscribed to 
++ * and fired by name.  This makes it possible for implementing code to
++ * subscribe to an event that either has not been created yet, or will
++ * not be created at all.
++ *
++ * @Class EventProvider
++ */
++YAHOO.util.EventProvider = function() { };
++
++YAHOO.util.EventProvider.prototype = {
++
++    /**
++     * Private storage of custom events
++     * @property __yui_events
++     * @type Object[]
++     * @private
++     */
++    __yui_events: null,
++
++    /**
++     * Private storage of custom event subscribers
++     * @property __yui_subscribers
++     * @type Object[]
++     * @private
++     */
++    __yui_subscribers: null,
++    
++    /**
++     * Subscribe to a CustomEvent by event type
++     *
++     * @method subscribe
++     * @param p_type     {string}   the type, or name of the event
++     * @param p_fn       {function} the function to exectute when the event fires
++     * @param p_obj      {Object}   An object to be passed along when the event 
++     *                              fires
++     * @param overrideContext {boolean}  If true, the obj passed in becomes the 
++     *                              execution scope of the listener
++     */
++    subscribe: function(p_type, p_fn, p_obj, overrideContext) {
++
++        this.__yui_events = this.__yui_events || {};
++        var ce = this.__yui_events[p_type];
++
++        if (ce) {
++            ce.subscribe(p_fn, p_obj, overrideContext);
++        } else {
++            this.__yui_subscribers = this.__yui_subscribers || {};
++            var subs = this.__yui_subscribers;
++            if (!subs[p_type]) {
++                subs[p_type] = [];
++            }
++            subs[p_type].push(
++                { fn: p_fn, obj: p_obj, overrideContext: overrideContext } );
++        }
++    },
++
++    /**
++     * Unsubscribes one or more listeners the from the specified event
++     * @method unsubscribe
++     * @param p_type {string}   The type, or name of the event.  If the type
++     *                          is not specified, it will attempt to remove
++     *                          the listener from all hosted events.
++     * @param p_fn   {Function} The subscribed function to unsubscribe, if not
++     *                          supplied, all subscribers will be removed.
++     * @param p_obj  {Object}   The custom object passed to subscribe.  This is
++     *                        optional, but if supplied will be used to
++     *                        disambiguate multiple listeners that are the same
++     *                        (e.g., you subscribe many object using a function
++     *                        that lives on the prototype)
++     * @return {boolean} true if the subscriber was found and detached.
++     */
++    unsubscribe: function(p_type, p_fn, p_obj) {
++        this.__yui_events = this.__yui_events || {};
++        var evts = this.__yui_events;
++        if (p_type) {
++            var ce = evts[p_type];
++            if (ce) {
++                return ce.unsubscribe(p_fn, p_obj);
++            }
++        } else {
++            var ret = true;
++            for (var i in evts) {
++                if (YAHOO.lang.hasOwnProperty(evts, i)) {
++                    ret = ret && evts[i].unsubscribe(p_fn, p_obj);
++                }
++            }
++            return ret;
++        }
++
++        return false;
++    },
++    
++    /**
++     * Removes all listeners from the specified event.  If the event type
++     * is not specified, all listeners from all hosted custom events will
++     * be removed.
++     * @method unsubscribeAll
++     * @param p_type {string}   The type, or name of the event
++     */
++    unsubscribeAll: function(p_type) {
++        return this.unsubscribe(p_type);
++    },
++
++    /**
++     * Creates a new custom event of the specified type.  If a custom event
++     * by that name already exists, it will not be re-created.  In either
++     * case the custom event is returned. 
++     *
++     * @method createEvent
++     *
++     * @param p_type {string} the type, or name of the event
++     * @param p_config {object} optional config params.  Valid properties are:
++     *
++     *  <ul>
++     *    <li>
++     *      scope: defines the default execution scope.  If not defined
++     *      the default scope will be this instance.
++     *    </li>
++     *    <li>
++     *      silent: if true, the custom event will not generate log messages.
++     *      This is false by default.
++     *    </li>
++     *    <li>
++     *      fireOnce: if true, the custom event will only notify subscribers
++     *      once regardless of the number of times the event is fired.  In
++     *      addition, new subscribers will be executed immediately if the
++     *      event has already fired.
++     *      This is false by default.
++     *    </li>
++     *    <li>
++     *      onSubscribeCallback: specifies a callback to execute when the
++     *      event has a new subscriber.  This will fire immediately for
++     *      each queued subscriber if any exist prior to the creation of
++     *      the event.
++     *    </li>
++     *  </ul>
++     *
++     *  @return {CustomEvent} the custom event
++     *
++     */
++    createEvent: function(p_type, p_config) {
++
++        this.__yui_events = this.__yui_events || {};
++        var opts = p_config || {},
++            events = this.__yui_events, ce;
++
++        if (events[p_type]) {
++        } else {
++
++            ce = new YAHOO.util.CustomEvent(p_type, opts.scope || this, opts.silent,
++                         YAHOO.util.CustomEvent.FLAT, opts.fireOnce);
++
++            events[p_type] = ce;
++
++            if (opts.onSubscribeCallback) {
++                ce.subscribeEvent.subscribe(opts.onSubscribeCallback);
++            }
++
++            this.__yui_subscribers = this.__yui_subscribers || {};
++            var qs = this.__yui_subscribers[p_type];
++
++            if (qs) {
++                for (var i=0; i<qs.length; ++i) {
++                    ce.subscribe(qs[i].fn, qs[i].obj, qs[i].overrideContext);
++                }
++            }
++        }
++
++        return events[p_type];
++    },
++
++
++   /**
++     * Fire a custom event by name.  The callback functions will be executed
++     * from the scope specified when the event was created, and with the 
++     * following parameters:
++     *   <ul>
++     *   <li>The first argument fire() was executed with</li>
++     *   <li>The custom object (if any) that was passed into the subscribe() 
++     *       method</li>
++     *   </ul>
++     * @method fireEvent
++     * @param p_type    {string}  the type, or name of the event
++     * @param arguments {Object*} an arbitrary set of parameters to pass to 
++     *                            the handler.
++     * @return {boolean} the return value from CustomEvent.fire
++     *                   
++     */
++    fireEvent: function(p_type) {
++
++        this.__yui_events = this.__yui_events || {};
++        var ce = this.__yui_events[p_type];
++
++        if (!ce) {
++            return null;
++        }
++
++        var args = [];
++        for (var i=1; i<arguments.length; ++i) {
++            args.push(arguments[i]);
++        }
++        return ce.fire.apply(ce, args);
++    },
++
++    /**
++     * Returns true if the custom event of the provided type has been created
++     * with createEvent.
++     * @method hasEvent
++     * @param type {string} the type, or name of the event
++     */
++    hasEvent: function(type) {
++        if (this.__yui_events) {
++            if (this.__yui_events[type]) {
++                return true;
++            }
++        }
++        return false;
++    }
++
++};
++
++(function() {
++
++    var Event = YAHOO.util.Event, Lang = YAHOO.lang;
++
++/**
++* KeyListener is a utility that provides an easy interface for listening for
++* keydown/keyup events fired against DOM elements.
++* @namespace YAHOO.util
++* @class KeyListener
++* @constructor
++* @param {HTMLElement} attachTo The element or element ID to which the key 
++*                               event should be attached
++* @param {String}      attachTo The element or element ID to which the key
++*                               event should be attached
++* @param {Object}      keyData  The object literal representing the key(s) 
++*                               to detect. Possible attributes are 
++*                               shift(boolean), alt(boolean), ctrl(boolean) 
++*                               and keys(either an int or an array of ints 
++*                               representing keycodes).
++* @param {Function}    handler  The CustomEvent handler to fire when the 
++*                               key event is detected
++* @param {Object}      handler  An object literal representing the handler. 
++* @param {String}      event    Optional. The event (keydown or keyup) to 
++*                               listen for. Defaults automatically to keydown.
++*
++* @knownissue the "keypress" event is completely broken in Safari 2.x and below.
++*             the workaround is use "keydown" for key listening.  However, if
++*             it is desired to prevent the default behavior of the keystroke,
++*             that can only be done on the keypress event.  This makes key
++*             handling quite ugly.
++* @knownissue keydown is also broken in Safari 2.x and below for the ESC key.
++*             There currently is no workaround other than choosing another
++*             key to listen for.
++*/
++YAHOO.util.KeyListener = function(attachTo, keyData, handler, event) {
++    if (!attachTo) {
++    } else if (!keyData) {
++    } else if (!handler) {
++    } 
++    
++    if (!event) {
++        event = YAHOO.util.KeyListener.KEYDOWN;
++    }
++
++    /**
++    * The CustomEvent fired internally when a key is pressed
++    * @event keyEvent
++    * @private
++    * @param {Object} keyData The object literal representing the key(s) to 
++    *                         detect. Possible attributes are shift(boolean), 
++    *                         alt(boolean), ctrl(boolean) and keys(either an 
++    *                         int or an array of ints representing keycodes).
++    */
++    var keyEvent = new YAHOO.util.CustomEvent("keyPressed");
++    
++    /**
++    * The CustomEvent fired when the KeyListener is enabled via the enable() 
++    * function
++    * @event enabledEvent
++    * @param {Object} keyData The object literal representing the key(s) to 
++    *                         detect. Possible attributes are shift(boolean), 
++    *                         alt(boolean), ctrl(boolean) and keys(either an 
++    *                         int or an array of ints representing keycodes).
++    */
++    this.enabledEvent = new YAHOO.util.CustomEvent("enabled");
++
++    /**
++    * The CustomEvent fired when the KeyListener is disabled via the 
++    * disable() function
++    * @event disabledEvent
++    * @param {Object} keyData The object literal representing the key(s) to 
++    *                         detect. Possible attributes are shift(boolean), 
++    *                         alt(boolean), ctrl(boolean) and keys(either an 
++    *                         int or an array of ints representing keycodes).
++    */
++    this.disabledEvent = new YAHOO.util.CustomEvent("disabled");
++
++    if (Lang.isString(attachTo)) {
++        attachTo = document.getElementById(attachTo); // No Dom util
++    }
++
++    if (Lang.isFunction(handler)) {
++        keyEvent.subscribe(handler);
++    } else {
++        keyEvent.subscribe(handler.fn, handler.scope, handler.correctScope);
++    }
++
++    /**
++    * Handles the key event when a key is pressed.
++    * @method handleKeyPress
++    * @param {DOMEvent} e   The keypress DOM event
++    * @param {Object}   obj The DOM event scope object
++    * @private
++    */
++    function handleKeyPress(e, obj) {
++        if (! keyData.shift) {  
++            keyData.shift = false; 
++        }
++        if (! keyData.alt) {    
++            keyData.alt = false;
++        }
++        if (! keyData.ctrl) {
++            keyData.ctrl = false;
++        }
++
++        // check held down modifying keys first
++        if (e.shiftKey == keyData.shift && 
++            e.altKey   == keyData.alt &&
++            e.ctrlKey  == keyData.ctrl) { // if we pass this, all modifiers match
++            
++            var dataItem, keys = keyData.keys, key;
++
++            if (YAHOO.lang.isArray(keys)) {
++                for (var i=0;i<keys.length;i++) {
++                    dataItem = keys[i];
++                    key = Event.getCharCode(e);
++
++                    if (dataItem == key) {
++                        keyEvent.fire(key, e);
++                        break;
++                    }
++                }
++            } else {
++                key = Event.getCharCode(e);
++                if (keys == key ) {
++                    keyEvent.fire(key, e);
++                }
++            }
++        }
++    }
++
++    /**
++    * Enables the KeyListener by attaching the DOM event listeners to the 
++    * target DOM element
++    * @method enable
++    */
++    this.enable = function() {
++        if (! this.enabled) {
++            Event.on(attachTo, event, handleKeyPress);
++            this.enabledEvent.fire(keyData);
++        }
++        /**
++        * Boolean indicating the enabled/disabled state of the Tooltip
++        * @property enabled
++        * @type Boolean
++        */
++        this.enabled = true;
++    };
++
++    /**
++    * Disables the KeyListener by removing the DOM event listeners from the 
++    * target DOM element
++    * @method disable
++    */
++    this.disable = function() {
++        if (this.enabled) {
++            Event.removeListener(attachTo, event, handleKeyPress);
++            this.disabledEvent.fire(keyData);
++        }
++        this.enabled = false;
++    };
++
++    /**
++    * Returns a String representation of the object.
++    * @method toString
++    * @return {String}  The string representation of the KeyListener
++    */ 
++    this.toString = function() {
++        return "KeyListener [" + keyData.keys + "] " + attachTo.tagName + 
++                (attachTo.id ? "[" + attachTo.id + "]" : "");
++    };
++
++};
++
++var KeyListener = YAHOO.util.KeyListener;
++
++/**
++ * Constant representing the DOM "keydown" event.
++ * @property YAHOO.util.KeyListener.KEYDOWN
++ * @static
++ * @final
++ * @type String
++ */
++KeyListener.KEYDOWN = "keydown";
++
++/**
++ * Constant representing the DOM "keyup" event.
++ * @property YAHOO.util.KeyListener.KEYUP
++ * @static
++ * @final
++ * @type String
++ */
++KeyListener.KEYUP = "keyup";
++
++/**
++ * keycode constants for a subset of the special keys
++ * @property KEY
++ * @static
++ * @final
++ */
++KeyListener.KEY = {
++    ALT          : 18,
++    BACK_SPACE   : 8,
++    CAPS_LOCK    : 20,
++    CONTROL      : 17,
++    DELETE       : 46,
++    DOWN         : 40,
++    END          : 35,
++    ENTER        : 13,
++    ESCAPE       : 27,
++    HOME         : 36,
++    LEFT         : 37,
++    META         : 224,
++    NUM_LOCK     : 144,
++    PAGE_DOWN    : 34,
++    PAGE_UP      : 33, 
++    PAUSE        : 19,
++    PRINTSCREEN  : 44,
++    RIGHT        : 39,
++    SCROLL_LOCK  : 145,
++    SHIFT        : 16,
++    SPACE        : 32,
++    TAB          : 9,
++    UP           : 38
++};
++
++})();
++YAHOO.register("event", YAHOO.util.Event, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/fonts/fonts-min.css b/pylons_app/public/js/yui/fonts/fonts-min.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/fonts/fonts-min.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/fonts/fonts.css b/pylons_app/public/js/yui/fonts/fonts.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/fonts/fonts.css
+@@ -0,0 +1,56 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * YUI Fonts
++ * @module fonts
++ * @namespace yui-
++ * @requires 
++ */
++
++/**
++ * Percents could work for IE, but for backCompat purposes, we are using keywords.
++ * x-small is for IE6/7 quirks mode.
++ */
++body {
++	font:13px/1.231 arial,helvetica,clean,sans-serif;
++	/* for IE6/7 */ 
++	*font-size:small; 
++	/* for IE Quirks Mode */
++	*font:x-small; 
++}
++
++/**
++ * Nudge down to get to 13px equivalent for these form elements
++ */ 
++select,
++input,
++button,
++textarea,
++button {
++	font:99% arial,helvetica,clean,sans-serif;
++}
++
++/**
++ * To help tables remember to inherit
++ */
++table {
++	font-size:inherit;
++	font:100%;
++}
++
++/**
++ * Bump up IE to get to 13px equivalent for these fixed-width elements
++ */
++pre,
++code,
++kbd,
++samp,
++tt {
++	font-family:monospace;
++	*font-size:108%;
++	line-height:100%;
++}
+diff --git a/pylons_app/public/js/yui/get/get-debug.js b/pylons_app/public/js/yui/get/get-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/get/get-debug.js
+@@ -0,0 +1,773 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides a mechanism to fetch remote resources and
++ * insert them into a document
++ * @module get
++ * @requires yahoo
++ */
++
++/**
++ * Fetches and inserts one or more script or link nodes into the document 
++ * @namespace YAHOO.util
++ * @class YAHOO.util.Get
++ */
++YAHOO.util.Get = function() {
++
++    /**
++     * hash of queues to manage multiple requests
++     * @property queues
++     * @private
++     */
++    var queues={}, 
++        
++    /**
++     * queue index used to generate transaction ids
++     * @property qidx
++     * @type int
++     * @private
++     */
++        qidx=0, 
++        
++    /**
++     * node index used to generate unique node ids
++     * @property nidx
++     * @type int
++     * @private
++     */
++        nidx=0, 
++
++        // ridx=0,
++
++        // sandboxFrame=null,
++
++    /**
++     * interal property used to prevent multiple simultaneous purge 
++     * processes
++     * @property purging
++     * @type boolean
++     * @private
++     */
++        purging=false,
++
++        ua=YAHOO.env.ua, 
++        
++        lang=YAHOO.lang;
++    
++    /** 
++     * Generates an HTML element, this is not appended to a document
++     * @method _node
++     * @param type {string} the type of element
++     * @param attr {string} the attributes
++     * @param win {Window} optional window to create the element in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _node = function(type, attr, win) {
++        var w = win || window, d=w.document, n=d.createElement(type);
++
++        for (var i in attr) {
++            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
++                n.setAttribute(i, attr[i]);
++            }
++        }
++
++        return n;
++    };
++
++    /**
++     * Generates a link node
++     * @method _linkNode
++     * @param url {string} the url for the css file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _linkNode = function(url, win, attributes) {
++
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/css",
++            rel:  "stylesheet",
++            href: url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("link", o, win);
++    };
++
++    /**
++     * Generates a script node
++     * @method _scriptNode
++     * @param url {string} the url for the script file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _scriptNode = function(url, win, attributes) {
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/javascript",
++            src:  url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("script", o, win);
++    };
++
++    /**
++     * Returns the data payload for callback functions
++     * @method _returnData
++     * @private
++     */
++    var _returnData = function(q, msg) {
++        return {
++                tId: q.tId,
++                win: q.win,
++                data: q.data,
++                nodes: q.nodes,
++                msg: msg,
++                purge: function() {
++                    _purge(this.tId);
++                }
++            };
++    };
++
++    var _get = function(nId, tId) {
++        var q = queues[tId],
++            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
++        if (!n) {
++            _fail(tId, "target node not found: " + nId);
++        }
++
++        return n;
++    };
++
++    /*
++     * The request failed, execute fail handler with whatever
++     * was accomplished.  There isn't a failure case at the
++     * moment unless you count aborted transactions
++     * @method _fail
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _fail = function(id, msg) {
++        YAHOO.log("get failure: " + msg, "warn", "Get");
++        var q = queues[id];
++        // execute failure callback
++        if (q.onFailure) {
++            var sc=q.scope || q.win;
++            q.onFailure.call(sc, _returnData(q, msg));
++        }
++    };
++
++    /**
++     * The request is complete, so executing the requester's callback
++     * @method _finish
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _finish = function(id) {
++        YAHOO.log("Finishing transaction " + id);
++        var q = queues[id];
++        q.finished = true;
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        // execute success callback
++        if (q.onSuccess) {
++            var sc=q.scope || q.win;
++            q.onSuccess.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Timeout detected
++     * @method _timeout
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _timeout = function(id) {
++        YAHOO.log("Timeout " + id, "info", "get");
++        var q = queues[id];
++        if (q.onTimeout) {
++            var sc=q.scope || q;
++            q.onTimeout.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Loads the next item for a given request
++     * @method _next
++     * @param id {string} the id of the request
++     * @param loaded {string} the url that was just loaded, if any
++     * @private
++     */
++    var _next = function(id, loaded) {
++        YAHOO.log("_next: " + id + ", loaded: " + loaded, "info", "Get");
++        var q = queues[id];
++
++        if (q.timer) {
++            // Y.log('cancel timer');
++            q.timer.cancel();
++        }
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        if (loaded) {
++            q.url.shift(); 
++            if (q.varName) {
++                q.varName.shift(); 
++            }
++        } else {
++            // This is the first pass: make sure the url is an array
++            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
++            if (q.varName) {
++                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
++            }
++        }
++
++        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
++
++        if (q.url.length === 0) {
++            // Safari 2.x workaround - There is no way to know when 
++            // a script is ready in versions of Safari prior to 3.x.
++            // Adding an extra node reduces the problem, but doesn't
++            // eliminate it completely because the browser executes
++            // them asynchronously. 
++            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
++                    !q.finalpass && !q.varName) {
++                // Add another script node.  This does not guarantee that the
++                // scripts will execute in order, but it does appear to fix the
++                // problem on fast connections more effectively than using an
++                // arbitrary timeout.  It is possible that the browser does
++                // block subsequent script execution in this case for a limited
++                // time.
++                var extra = _scriptNode(null, q.win, q.attributes);
++                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
++                q.nodes.push(extra); h.appendChild(extra);
++
++            } else {
++                _finish(id);
++            }
++
++            return;
++        } 
++
++
++        var url = q.url[0];
++
++        // if the url is undefined, this is probably a trailing comma problem in IE
++        if (!url) {
++            q.url.shift(); 
++            YAHOO.log('skipping empty url');
++            return _next(id);
++        }
++
++        YAHOO.log("attempting to load " + url, "info", "Get");
++
++        if (q.timeout) {
++            // Y.log('create timer');
++            q.timer = lang.later(q.timeout, q, _timeout, id);
++        }
++
++        if (q.type === "script") {
++            n = _scriptNode(url, w, q.attributes);
++        } else {
++            n = _linkNode(url, w, q.attributes);
++        }
++
++        // track this node's load progress
++        _track(q.type, n, id, url, w, q.url.length);
++
++        // add the node to the queue so we can return it to the user supplied callback
++        q.nodes.push(n);
++
++        // add it to the head or insert it before 'insertBefore'
++        if (q.insertBefore) {
++            var s = _get(q.insertBefore, id);
++            if (s) {
++                s.parentNode.insertBefore(n, s);
++            }
++        } else {
++            h.appendChild(n);
++        }
++        
++        YAHOO.log("Appending node: " + url, "info", "Get");
++
++        // FireFox does not support the onload event for link nodes, so there is
++        // no way to make the css requests synchronous. This means that the css 
++        // rules in multiple files could be applied out of order in this browser
++        // if a later request returns before an earlier one.  Safari too.
++        if ((ua.webkit || ua.gecko) && q.type === "css") {
++            _next(id, url);
++        }
++    };
++
++    /**
++     * Removes processed queues and corresponding nodes
++     * @method _autoPurge
++     * @private
++     */
++    var _autoPurge = function() {
++
++        if (purging) {
++            return;
++        }
++
++        purging = true;
++        for (var i in queues) {
++            var q = queues[i];
++            if (q.autopurge && q.finished) {
++                _purge(q.tId);
++                delete queues[i];
++            }
++        }
++
++        purging = false;
++    };
++
++    /**
++     * Removes the nodes for the specified queue
++     * @method _purge
++     * @private
++     */
++    var _purge = function(tId) {
++        if (queues[tId]) {
++
++            var q     = queues[tId],
++                nodes = q.nodes, 
++                l     = nodes.length, 
++                d     = q.win.document, 
++                h     = d.getElementsByTagName("head")[0],
++                sib, i, node, attr;
++
++            if (q.insertBefore) {
++                sib = _get(q.insertBefore, tId);
++                if (sib) {
++                    h = sib.parentNode;
++                }
++            }
++
++            for (i=0; i<l; i=i+1) {
++                node = nodes[i];
++                if (node.clearAttributes) {
++                    node.clearAttributes();
++                } else {
++                    for (attr in node) {
++                        delete node[attr];
++                    }
++                }
++
++                h.removeChild(node);
++            }
++
++            q.nodes = [];
++        }
++    };
++
++    /**
++     * Saves the state for the request and begins loading
++     * the requested urls
++     * @method queue
++     * @param type {string} the type of node to insert
++     * @param url {string} the url to load
++     * @param opts the hash of options for this request
++     * @private
++     */
++    var _queue = function(type, url, opts) {
++
++        var id = "q" + (qidx++);
++        opts = opts || {};
++
++        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
++            _autoPurge();
++        }
++
++        queues[id] = lang.merge(opts, {
++            tId: id,
++            type: type,
++            url: url,
++            finished: false,
++            aborted: false,
++            nodes: []
++        });
++
++        var q = queues[id];
++        q.win = q.win || window;
++        q.scope = q.scope || q.win;
++        q.autopurge = ("autopurge" in q) ? q.autopurge : 
++                      (type === "script") ? true : false;
++
++        if (opts.charset) {
++            q.attributes = q.attributes || {};
++            q.attributes.charset = opts.charset;
++        }
++
++        lang.later(0, q, _next, id);
++
++        return {
++            tId: id
++        };
++    };
++
++    /**
++     * Detects when a node has been loaded.  In the case of
++     * script nodes, this does not guarantee that contained
++     * script is ready to use.
++     * @method _track
++     * @param type {string} the type of node to track
++     * @param n {HTMLElement} the node to track
++     * @param id {string} the id of the request
++     * @param url {string} the url that is being loaded
++     * @param win {Window} the targeted window
++     * @param qlength the number of remaining items in the queue,
++     * including this one
++     * @param trackfn {Function} function to execute when finished
++     * the default is _next
++     * @private
++     */
++    var _track = function(type, n, id, url, win, qlength, trackfn) {
++        var f = trackfn || _next;
++
++        // IE supports the readystatechange event for script and css nodes
++        if (ua.ie) {
++            n.onreadystatechange = function() {
++                var rs = this.readyState;
++                if ("loaded" === rs || "complete" === rs) {
++                    YAHOO.log(id + " onload " + url, "info", "Get");
++                    n.onreadystatechange = null;
++                    f(id, url);
++                }
++            };
++
++        // webkit prior to 3.x is problemmatic
++        } else if (ua.webkit) {
++
++            if (type === "script") {
++
++                // Safari 3.x supports the load event for script nodes (DOM2)
++                if (ua.webkit >= 420) {
++
++                    n.addEventListener("load", function() {
++                        YAHOO.log(id + " DOM2 onload " + url, "info", "Get");
++                        f(id, url);
++                    });
++
++                // Nothing can be done with Safari < 3.x except to pause and hope
++                // for the best, particularly after last script is inserted. The
++                // scripts will always execute in the order they arrive, not
++                // necessarily the order in which they were inserted.  To support
++                // script nodes with complete reliability in these browsers, script
++                // nodes either need to invoke a function in the window once they
++                // are loaded or the implementer needs to provide a well-known
++                // property that the utility can poll for.
++                } else {
++                    // Poll for the existence of the named variable, if it
++                    // was supplied.
++                    var q = queues[id];
++                    if (q.varName) {
++                        var freq=YAHOO.util.Get.POLL_FREQ;
++                        YAHOO.log("Polling for " + q.varName[0]);
++                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
++                        q.attempts = 0;
++                        q._cache = q.varName[0].split(".");
++                        q.timer = lang.later(freq, q, function(o) {
++                            var a=this._cache, l=a.length, w=this.win, i;
++                            for (i=0; i<l; i=i+1) {
++                                w = w[a[i]];
++                                if (!w) {
++                                    // if we have exausted our attempts, give up
++                                    this.attempts++;
++                                    if (this.attempts++ > this.maxattempts) {
++                                        var msg = "Over retry limit, giving up";
++                                        q.timer.cancel();
++                                        _fail(id, msg);
++                                    } else {
++                                        YAHOO.log(a[i] + " failed, retrying");
++                                    }
++                                    return;
++                                }
++                            }
++                            
++                            YAHOO.log("Safari poll complete");
++
++                            q.timer.cancel();
++                            f(id, url);
++
++                        }, null, true);
++                    } else {
++                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
++                    }
++                }
++            } 
++
++        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
++        // script nodes.  Opera, but not FF, supports the onload event for link
++        // nodes.
++        } else { 
++            n.onload = function() {
++                YAHOO.log(id + " onload " + url, "info", "Get");
++                f(id, url);
++            };
++        }
++    };
++
++    return {
++
++        /**
++         * The default poll freqency in ms, when needed
++         * @property POLL_FREQ
++         * @static
++         * @type int
++         * @default 10
++         */
++        POLL_FREQ: 10,
++
++        /**
++         * The number of request required before an automatic purge.
++         * property PURGE_THRESH
++         * @static
++         * @type int
++         * @default 20
++         */
++        PURGE_THRESH: 20,
++
++        /**
++         * The length time to poll for varName when loading a script in
++         * Safari 2.x before the transaction fails.
++         * property TIMEOUT
++         * @static
++         * @type int
++         * @default 2000
++         */
++        TIMEOUT: 2000,
++        
++        /**
++         * Called by the the helper for detecting script load in Safari
++         * @method _finalize
++         * @param id {string} the transaction id
++         * @private
++         */
++        _finalize: function(id) {
++            YAHOO.log(id + " finalized ", "info", "Get");
++            lang.later(0, null, _finish, id);
++        },
++
++        /**
++         * Abort a transaction
++         * @method abort
++         * @param {string|object} either the tId or the object returned from
++         * script() or css()
++         */
++        abort: function(o) {
++            var id = (lang.isString(o)) ? o : o.tId;
++            var q = queues[id];
++            if (q) {
++                YAHOO.log("Aborting " + id, "info", "Get");
++                q.aborted = true;
++            }
++        }, 
++
++        /**
++         * Fetches and inserts one or more script nodes into the head
++         * of the current document or the document in a specified window.
++         *
++         * @method script
++         * @static
++         * @param url {string|string[]} the url or urls to the script(s)
++         * @param opts {object} Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the script(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onFailure</dt>
++         * <dd>
++         * callback to execute when the script load operation fails
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted successfully</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove any nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onTimeout</dt>
++         * <dd>
++         * callback to execute when a timeout occurs.
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>autopurge</dt>
++         * <dd>
++         * setting to true will let the utilities cleanup routine purge 
++         * the script once loaded
++         * </dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callback when the script(s) are
++         * loaded.
++         * </dd>
++         * <dt>varName</dt>
++         * <dd>
++         * variable that should be available when a script is finished
++         * loading.  Used to help Safari 2.x and below with script load 
++         * detection.  The type of this property should match what was
++         * passed into the url parameter: if loading a single url, a
++         * string can be supplied.  If loading multiple scripts, you
++         * must supply an array that contains the variable name for
++         * each script.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * </dl>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * <dt>timeout</dt>
++         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
++         * <pre>
++         * // assumes yahoo, dom, and event are already on the page
++         * &nbsp;&nbsp;YAHOO.util.Get.script(
++         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
++         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YAHOO.log(o.data); // foo
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;YAHOO.log("transaction failed");
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
++         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
++         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
++         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
++         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
++         * &nbsp;&nbsp;&#125;);
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        script: function(url, opts) { return _queue("script", url, opts); },
++
++        /**
++         * Fetches and inserts one or more css link nodes into the 
++         * head of the current document or the document in a specified
++         * window.
++         * @method css
++         * @static
++         * @param url {string} the url or urls to the css file(s)
++         * @param opts Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the css file(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>win</dl>
++         * <dd>the window the link nodes(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callbacks when the nodes(s) are
++         * loaded.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * </dl>
++         * <pre>
++         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
++         * </pre>
++         * <pre>
++         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
++         *                          "http://yui.yahooapis.com/2.7.0/build/logger/assets/skins/sam/logger.css"]);
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        css: function(url, opts) {
++            return _queue("css", url, opts); 
++        }
++    };
++}();
++
++YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/get/get-min.js b/pylons_app/public/js/yui/get/get-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/get/get-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/get/get.js b/pylons_app/public/js/yui/get/get.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/get/get.js
+@@ -0,0 +1,755 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides a mechanism to fetch remote resources and
++ * insert them into a document
++ * @module get
++ * @requires yahoo
++ */
++
++/**
++ * Fetches and inserts one or more script or link nodes into the document 
++ * @namespace YAHOO.util
++ * @class YAHOO.util.Get
++ */
++YAHOO.util.Get = function() {
++
++    /**
++     * hash of queues to manage multiple requests
++     * @property queues
++     * @private
++     */
++    var queues={}, 
++        
++    /**
++     * queue index used to generate transaction ids
++     * @property qidx
++     * @type int
++     * @private
++     */
++        qidx=0, 
++        
++    /**
++     * node index used to generate unique node ids
++     * @property nidx
++     * @type int
++     * @private
++     */
++        nidx=0, 
++
++        // ridx=0,
++
++        // sandboxFrame=null,
++
++    /**
++     * interal property used to prevent multiple simultaneous purge 
++     * processes
++     * @property purging
++     * @type boolean
++     * @private
++     */
++        purging=false,
++
++        ua=YAHOO.env.ua, 
++        
++        lang=YAHOO.lang;
++    
++    /** 
++     * Generates an HTML element, this is not appended to a document
++     * @method _node
++     * @param type {string} the type of element
++     * @param attr {string} the attributes
++     * @param win {Window} optional window to create the element in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _node = function(type, attr, win) {
++        var w = win || window, d=w.document, n=d.createElement(type);
++
++        for (var i in attr) {
++            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
++                n.setAttribute(i, attr[i]);
++            }
++        }
++
++        return n;
++    };
++
++    /**
++     * Generates a link node
++     * @method _linkNode
++     * @param url {string} the url for the css file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _linkNode = function(url, win, attributes) {
++
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/css",
++            rel:  "stylesheet",
++            href: url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("link", o, win);
++    };
++
++    /**
++     * Generates a script node
++     * @method _scriptNode
++     * @param url {string} the url for the script file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _scriptNode = function(url, win, attributes) {
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/javascript",
++            src:  url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("script", o, win);
++    };
++
++    /**
++     * Returns the data payload for callback functions
++     * @method _returnData
++     * @private
++     */
++    var _returnData = function(q, msg) {
++        return {
++                tId: q.tId,
++                win: q.win,
++                data: q.data,
++                nodes: q.nodes,
++                msg: msg,
++                purge: function() {
++                    _purge(this.tId);
++                }
++            };
++    };
++
++    var _get = function(nId, tId) {
++        var q = queues[tId],
++            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
++        if (!n) {
++            _fail(tId, "target node not found: " + nId);
++        }
++
++        return n;
++    };
++
++    /*
++     * The request failed, execute fail handler with whatever
++     * was accomplished.  There isn't a failure case at the
++     * moment unless you count aborted transactions
++     * @method _fail
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _fail = function(id, msg) {
++        var q = queues[id];
++        // execute failure callback
++        if (q.onFailure) {
++            var sc=q.scope || q.win;
++            q.onFailure.call(sc, _returnData(q, msg));
++        }
++    };
++
++    /**
++     * The request is complete, so executing the requester's callback
++     * @method _finish
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _finish = function(id) {
++        var q = queues[id];
++        q.finished = true;
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        // execute success callback
++        if (q.onSuccess) {
++            var sc=q.scope || q.win;
++            q.onSuccess.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Timeout detected
++     * @method _timeout
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _timeout = function(id) {
++        var q = queues[id];
++        if (q.onTimeout) {
++            var sc=q.scope || q;
++            q.onTimeout.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Loads the next item for a given request
++     * @method _next
++     * @param id {string} the id of the request
++     * @param loaded {string} the url that was just loaded, if any
++     * @private
++     */
++    var _next = function(id, loaded) {
++        var q = queues[id];
++
++        if (q.timer) {
++            // Y.log('cancel timer');
++            q.timer.cancel();
++        }
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        if (loaded) {
++            q.url.shift(); 
++            if (q.varName) {
++                q.varName.shift(); 
++            }
++        } else {
++            // This is the first pass: make sure the url is an array
++            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
++            if (q.varName) {
++                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
++            }
++        }
++
++        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
++
++        if (q.url.length === 0) {
++            // Safari 2.x workaround - There is no way to know when 
++            // a script is ready in versions of Safari prior to 3.x.
++            // Adding an extra node reduces the problem, but doesn't
++            // eliminate it completely because the browser executes
++            // them asynchronously. 
++            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
++                    !q.finalpass && !q.varName) {
++                // Add another script node.  This does not guarantee that the
++                // scripts will execute in order, but it does appear to fix the
++                // problem on fast connections more effectively than using an
++                // arbitrary timeout.  It is possible that the browser does
++                // block subsequent script execution in this case for a limited
++                // time.
++                var extra = _scriptNode(null, q.win, q.attributes);
++                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
++                q.nodes.push(extra); h.appendChild(extra);
++
++            } else {
++                _finish(id);
++            }
++
++            return;
++        } 
++
++
++        var url = q.url[0];
++
++        // if the url is undefined, this is probably a trailing comma problem in IE
++        if (!url) {
++            q.url.shift(); 
++            return _next(id);
++        }
++
++
++        if (q.timeout) {
++            // Y.log('create timer');
++            q.timer = lang.later(q.timeout, q, _timeout, id);
++        }
++
++        if (q.type === "script") {
++            n = _scriptNode(url, w, q.attributes);
++        } else {
++            n = _linkNode(url, w, q.attributes);
++        }
++
++        // track this node's load progress
++        _track(q.type, n, id, url, w, q.url.length);
++
++        // add the node to the queue so we can return it to the user supplied callback
++        q.nodes.push(n);
++
++        // add it to the head or insert it before 'insertBefore'
++        if (q.insertBefore) {
++            var s = _get(q.insertBefore, id);
++            if (s) {
++                s.parentNode.insertBefore(n, s);
++            }
++        } else {
++            h.appendChild(n);
++        }
++        
++
++        // FireFox does not support the onload event for link nodes, so there is
++        // no way to make the css requests synchronous. This means that the css 
++        // rules in multiple files could be applied out of order in this browser
++        // if a later request returns before an earlier one.  Safari too.
++        if ((ua.webkit || ua.gecko) && q.type === "css") {
++            _next(id, url);
++        }
++    };
++
++    /**
++     * Removes processed queues and corresponding nodes
++     * @method _autoPurge
++     * @private
++     */
++    var _autoPurge = function() {
++
++        if (purging) {
++            return;
++        }
++
++        purging = true;
++        for (var i in queues) {
++            var q = queues[i];
++            if (q.autopurge && q.finished) {
++                _purge(q.tId);
++                delete queues[i];
++            }
++        }
++
++        purging = false;
++    };
++
++    /**
++     * Removes the nodes for the specified queue
++     * @method _purge
++     * @private
++     */
++    var _purge = function(tId) {
++        if (queues[tId]) {
++
++            var q     = queues[tId],
++                nodes = q.nodes, 
++                l     = nodes.length, 
++                d     = q.win.document, 
++                h     = d.getElementsByTagName("head")[0],
++                sib, i, node, attr;
++
++            if (q.insertBefore) {
++                sib = _get(q.insertBefore, tId);
++                if (sib) {
++                    h = sib.parentNode;
++                }
++            }
++
++            for (i=0; i<l; i=i+1) {
++                node = nodes[i];
++                if (node.clearAttributes) {
++                    node.clearAttributes();
++                } else {
++                    for (attr in node) {
++                        delete node[attr];
++                    }
++                }
++
++                h.removeChild(node);
++            }
++
++            q.nodes = [];
++        }
++    };
++
++    /**
++     * Saves the state for the request and begins loading
++     * the requested urls
++     * @method queue
++     * @param type {string} the type of node to insert
++     * @param url {string} the url to load
++     * @param opts the hash of options for this request
++     * @private
++     */
++    var _queue = function(type, url, opts) {
++
++        var id = "q" + (qidx++);
++        opts = opts || {};
++
++        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
++            _autoPurge();
++        }
++
++        queues[id] = lang.merge(opts, {
++            tId: id,
++            type: type,
++            url: url,
++            finished: false,
++            aborted: false,
++            nodes: []
++        });
++
++        var q = queues[id];
++        q.win = q.win || window;
++        q.scope = q.scope || q.win;
++        q.autopurge = ("autopurge" in q) ? q.autopurge : 
++                      (type === "script") ? true : false;
++
++        if (opts.charset) {
++            q.attributes = q.attributes || {};
++            q.attributes.charset = opts.charset;
++        }
++
++        lang.later(0, q, _next, id);
++
++        return {
++            tId: id
++        };
++    };
++
++    /**
++     * Detects when a node has been loaded.  In the case of
++     * script nodes, this does not guarantee that contained
++     * script is ready to use.
++     * @method _track
++     * @param type {string} the type of node to track
++     * @param n {HTMLElement} the node to track
++     * @param id {string} the id of the request
++     * @param url {string} the url that is being loaded
++     * @param win {Window} the targeted window
++     * @param qlength the number of remaining items in the queue,
++     * including this one
++     * @param trackfn {Function} function to execute when finished
++     * the default is _next
++     * @private
++     */
++    var _track = function(type, n, id, url, win, qlength, trackfn) {
++        var f = trackfn || _next;
++
++        // IE supports the readystatechange event for script and css nodes
++        if (ua.ie) {
++            n.onreadystatechange = function() {
++                var rs = this.readyState;
++                if ("loaded" === rs || "complete" === rs) {
++                    n.onreadystatechange = null;
++                    f(id, url);
++                }
++            };
++
++        // webkit prior to 3.x is problemmatic
++        } else if (ua.webkit) {
++
++            if (type === "script") {
++
++                // Safari 3.x supports the load event for script nodes (DOM2)
++                if (ua.webkit >= 420) {
++
++                    n.addEventListener("load", function() {
++                        f(id, url);
++                    });
++
++                // Nothing can be done with Safari < 3.x except to pause and hope
++                // for the best, particularly after last script is inserted. The
++                // scripts will always execute in the order they arrive, not
++                // necessarily the order in which they were inserted.  To support
++                // script nodes with complete reliability in these browsers, script
++                // nodes either need to invoke a function in the window once they
++                // are loaded or the implementer needs to provide a well-known
++                // property that the utility can poll for.
++                } else {
++                    // Poll for the existence of the named variable, if it
++                    // was supplied.
++                    var q = queues[id];
++                    if (q.varName) {
++                        var freq=YAHOO.util.Get.POLL_FREQ;
++                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
++                        q.attempts = 0;
++                        q._cache = q.varName[0].split(".");
++                        q.timer = lang.later(freq, q, function(o) {
++                            var a=this._cache, l=a.length, w=this.win, i;
++                            for (i=0; i<l; i=i+1) {
++                                w = w[a[i]];
++                                if (!w) {
++                                    // if we have exausted our attempts, give up
++                                    this.attempts++;
++                                    if (this.attempts++ > this.maxattempts) {
++                                        var msg = "Over retry limit, giving up";
++                                        q.timer.cancel();
++                                        _fail(id, msg);
++                                    } else {
++                                    }
++                                    return;
++                                }
++                            }
++                            
++
++                            q.timer.cancel();
++                            f(id, url);
++
++                        }, null, true);
++                    } else {
++                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
++                    }
++                }
++            } 
++
++        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
++        // script nodes.  Opera, but not FF, supports the onload event for link
++        // nodes.
++        } else { 
++            n.onload = function() {
++                f(id, url);
++            };
++        }
++    };
++
++    return {
++
++        /**
++         * The default poll freqency in ms, when needed
++         * @property POLL_FREQ
++         * @static
++         * @type int
++         * @default 10
++         */
++        POLL_FREQ: 10,
++
++        /**
++         * The number of request required before an automatic purge.
++         * property PURGE_THRESH
++         * @static
++         * @type int
++         * @default 20
++         */
++        PURGE_THRESH: 20,
++
++        /**
++         * The length time to poll for varName when loading a script in
++         * Safari 2.x before the transaction fails.
++         * property TIMEOUT
++         * @static
++         * @type int
++         * @default 2000
++         */
++        TIMEOUT: 2000,
++        
++        /**
++         * Called by the the helper for detecting script load in Safari
++         * @method _finalize
++         * @param id {string} the transaction id
++         * @private
++         */
++        _finalize: function(id) {
++            lang.later(0, null, _finish, id);
++        },
++
++        /**
++         * Abort a transaction
++         * @method abort
++         * @param {string|object} either the tId or the object returned from
++         * script() or css()
++         */
++        abort: function(o) {
++            var id = (lang.isString(o)) ? o : o.tId;
++            var q = queues[id];
++            if (q) {
++                q.aborted = true;
++            }
++        }, 
++
++        /**
++         * Fetches and inserts one or more script nodes into the head
++         * of the current document or the document in a specified window.
++         *
++         * @method script
++         * @static
++         * @param url {string|string[]} the url or urls to the script(s)
++         * @param opts {object} Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the script(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onFailure</dt>
++         * <dd>
++         * callback to execute when the script load operation fails
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted successfully</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove any nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onTimeout</dt>
++         * <dd>
++         * callback to execute when a timeout occurs.
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>autopurge</dt>
++         * <dd>
++         * setting to true will let the utilities cleanup routine purge 
++         * the script once loaded
++         * </dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callback when the script(s) are
++         * loaded.
++         * </dd>
++         * <dt>varName</dt>
++         * <dd>
++         * variable that should be available when a script is finished
++         * loading.  Used to help Safari 2.x and below with script load 
++         * detection.  The type of this property should match what was
++         * passed into the url parameter: if loading a single url, a
++         * string can be supplied.  If loading multiple scripts, you
++         * must supply an array that contains the variable name for
++         * each script.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * </dl>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * <dt>timeout</dt>
++         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
++         * <pre>
++         * // assumes yahoo, dom, and event are already on the page
++         * &nbsp;&nbsp;YAHOO.util.Get.script(
++         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
++         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
++         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
++         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
++         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
++         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
++         * &nbsp;&nbsp;&#125;);
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        script: function(url, opts) { return _queue("script", url, opts); },
++
++        /**
++         * Fetches and inserts one or more css link nodes into the 
++         * head of the current document or the document in a specified
++         * window.
++         * @method css
++         * @static
++         * @param url {string} the url or urls to the css file(s)
++         * @param opts Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the css file(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>win</dl>
++         * <dd>the window the link nodes(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callbacks when the nodes(s) are
++         * loaded.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * </dl>
++         * <pre>
++         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
++         * </pre>
++         * <pre>
++         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        css: function(url, opts) {
++            return _queue("css", url, opts); 
++        }
++    };
++}();
++
++YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/grids/grids-min.css b/pylons_app/public/js/yui/grids/grids-min.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/grids/grids-min.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++body{text-align:center;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}.yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#hd:after,#bd:after,#ft:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#hd,#bd,#ft,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/grids/grids.css b/pylons_app/public/js/yui/grids/grids.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/grids/grids.css
+@@ -0,0 +1,467 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * YUI Grids
++ * @module grids
++ * @namespace yui-
++ * @requires reset, fonts
++ */
++
++/**  
++ * Note: Throughout this file, the *property (star-property) filter is used 
++ * to give a value to IE that other browsers do not see. _property is only seen 
++ * by IE7, so the combo of *prop and _prop can target between IE6 and IE7.
++ * 
++ * More information on these filters and related validation errors:
++ * http://tech.groups.yahoo.com/group/ydn-javascript/message/40059
++ */
++
++/**
++ * Section: General Rules
++ */
++
++body {
++	text-align: center;
++}
++
++/**
++ * Section: Page Width Rules (#doc, #doc2, #doc3, #doc4)
++ */
++
++#doc,#doc2,#doc3,#doc4,
++.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7 {
++	margin: auto;
++	text-align: left;
++	width: 57.69em;
++	*width: 56.25em;
++}
++
++/* 950 Centered (doc2) */
++#doc2 {
++	width: 73.076em;
++	*width: 71.25em;
++}
++
++/* 100% (doc3) */
++#doc3 {
++/**
++ * Left and Right margins are not a structural part of Grids. Without them 
++ * Grids works fine, but content bleeds to the very edge of the document, which
++ * often impairs readability and usability. They are provided because they 
++ * prevent the content from "bleeding" into the browser's chrome. 
++ */
++	margin: auto 10px;
++	width: auto;
++}
++
++/* 974 Centered (doc4) */
++#doc4 {
++	width: 74.923em;
++	*width: 73.05em;
++}
++
++/**
++ * Section: Preset Template Rules (.yui-t[1-6])
++ */
++
++
++.yui-b {
++	/* to preserve source-order independence for Gecko */
++	position: relative;
++}
++
++.yui-b {
++	/* to preserve source-order independence for IE */
++	_position: static;
++}
++
++#yui-main .yui-b {
++	/* to preserve source-order independence for Gecko */
++	position: static;
++}
++
++#yui-main,
++.yui-g .yui-u .yui-g {
++	width: 100%;
++}
++
++.yui-t1 #yui-main,
++.yui-t2 #yui-main,
++.yui-t3 #yui-main {
++	float: right;
++	/* IE: preserve layout at narrow widths */
++	margin-left: -25em;
++}
++
++.yui-t4 #yui-main,
++.yui-t5 #yui-main,
++.yui-t6 #yui-main {
++	float: left;
++	/* IE: preserve layout at narrow widths */
++	margin-right: -25em;
++}
++
++/** 
++ * For Specific Template Presets
++ */
++
++.yui-t1 .yui-b {
++	float: left;
++	width: 12.30769em;
++	*width: 12.00em;
++}
++
++.yui-t1 #yui-main .yui-b {
++	margin-left: 13.30769em;
++	*margin-left: 13.05em;
++}
++
++.yui-t2 .yui-b {
++	float: left;
++	width: 13.8461em;
++	*width: 13.50em;
++}
++
++.yui-t2 #yui-main .yui-b {
++	margin-left: 14.8461em;
++	*margin-left: 14.55em;
++}
++
++.yui-t3 .yui-b {
++	float: left;
++	width: 23.0769em;
++	*width: 22.50em;
++}
++
++.yui-t3 #yui-main .yui-b {
++	margin-left: 24.0769em;
++	*margin-left: 23.62em;
++}
++
++.yui-t4 .yui-b {
++	float: right;
++	width: 13.8456em;
++	*width: 13.50em;
++}
++
++.yui-t4 #yui-main .yui-b {
++	margin-right: 14.8456em;
++	*margin-right: 14.55em;
++}
++
++.yui-t5 .yui-b {
++	float: right;
++	width: 18.4615em;
++	*width: 18.00em;
++}
++
++.yui-t5 #yui-main .yui-b {
++	margin-right: 19.4615em;
++	*margin-right: 19.125em;
++}
++
++.yui-t6 .yui-b {
++	float: right;
++	width: 23.0769em;
++	*width: 22.50em;
++}
++
++.yui-t6 #yui-main .yui-b {
++	margin-right: 24.0769em;
++	*margin-right: 23.62em;
++}
++
++.yui-t7 #yui-main .yui-b {
++	display: block;
++	margin: 0 0 1em 0;
++}
++
++#yui-main .yui-b {
++	float: none;
++	width: auto;
++}
++
++/**
++ * Section: Grids and Nesting Grids
++ */
++
++/* Children generally take half the available space */
++.yui-gb .yui-u,
++.yui-g .yui-gb .yui-u,
++.yui-gb .yui-g,
++.yui-gb .yui-gb,
++.yui-gb .yui-gc,
++.yui-gb .yui-gd,
++.yui-gb .yui-ge,
++.yui-gb .yui-gf,
++.yui-gc .yui-u, 
++.yui-gc .yui-g,
++.yui-gd .yui-u {
++	float: left;
++}
++
++/* Float units (and sub grids) to the right */
++.yui-g .yui-u,
++.yui-g .yui-g,
++.yui-g .yui-gb, 
++.yui-g .yui-gc, 
++.yui-g .yui-gd, 
++.yui-g .yui-ge, 
++.yui-g .yui-gf, 
++.yui-gc .yui-u, 
++.yui-gd .yui-g,
++.yui-g .yui-gc .yui-u,
++.yui-ge .yui-u, 
++.yui-ge .yui-g, 
++.yui-gf .yui-g,
++.yui-gf .yui-u {
++	float: right;
++}
++
++/*Float units (and sub grids) to the left */
++.yui-g div.first, 
++.yui-gb div.first,
++.yui-gc div.first,
++.yui-gd div.first, 
++.yui-ge div.first, 
++.yui-gf div.first,
++.yui-g .yui-gc div.first,
++.yui-g .yui-ge div.first,
++.yui-gc div.first div.first {
++	float: left;
++}
++
++.yui-g .yui-u,
++.yui-g .yui-g,
++.yui-g .yui-gb,
++.yui-g .yui-gc,
++.yui-g .yui-gd,
++.yui-g .yui-ge,
++.yui-g .yui-gf {
++	width: 49.1%;
++}
++
++.yui-gb .yui-u,
++.yui-g .yui-gb .yui-u,
++.yui-gb .yui-g,
++.yui-gb .yui-gb,
++.yui-gb .yui-gc,
++.yui-gb .yui-gd,
++.yui-gb .yui-ge,
++.yui-gb .yui-gf,
++.yui-gc .yui-u, 
++.yui-gc .yui-g,
++.yui-gd .yui-u {
++	width: 32%;
++	margin-left: 1.99%;
++}
++
++/* Give IE some extra breathing room for 1/3-based rounding issues */
++.yui-gb .yui-u {
++	*margin-left: 1.9%;
++	*width: 31.9%;
++}
++
++.yui-gc div.first, 
++	.yui-gd .yui-u {
++	width: 66%;
++}
++
++.yui-gd div.first {
++	width: 32%;
++}
++
++.yui-ge div.first, 
++	.yui-gf .yui-u {
++	width: 74.2%;
++}
++
++.yui-ge .yui-u,
++	.yui-gf div.first {
++	width: 24%;
++}
++
++.yui-g .yui-gb div.first,
++.yui-gb div.first, 
++.yui-gc div.first, 
++.yui-gd div.first {
++	margin-left: 0;
++}
++
++/**
++ * Section: Deep Nesting 
++ */
++
++.yui-g .yui-g .yui-u,
++.yui-gb .yui-g .yui-u,
++.yui-gc .yui-g .yui-u,
++.yui-gd .yui-g .yui-u,
++.yui-ge .yui-g .yui-u,
++.yui-gf .yui-g .yui-u {
++	width: 49%;
++	*width: 48.1%;
++	*margin-left: 0;
++}
++
++.yui-g .yui-g .yui-u {
++	width: 48.1%;
++}
++
++/*YUILibrary bug #1927599 from 1.14 to 2.6.0*/
++.yui-g .yui-gb div.first,
++	.yui-gb .yui-gb div.first {
++	*margin-right: 0;
++	*width: 32%;
++	_width: 31.7%;
++}
++
++.yui-g .yui-gc div.first, 
++	.yui-gd .yui-g {
++	width: 66%;
++}
++
++.yui-gb .yui-g div.first {
++	*margin-right: 4%;
++	_margin-right: 1.3%;
++}
++
++.yui-gb .yui-gc div.first, 
++	.yui-gb .yui-gd div.first {
++	*margin-right: 0;
++}
++
++.yui-gb .yui-gb .yui-u,
++	.yui-gb .yui-gc .yui-u {
++	*margin-left: 1.8%;
++	_margin-left: 4%;
++}
++
++.yui-g .yui-gb .yui-u {
++	_margin-left: 1.0%;
++}
++
++.yui-gb .yui-gd .yui-u {
++	*width: 66%;
++	_width: 61.2%;
++}
++
++.yui-gb .yui-gd div.first {
++	*width: 31%;
++	_width: 29.5%;
++}
++
++.yui-g .yui-gc .yui-u, 
++	.yui-gb .yui-gc .yui-u {
++	width: 32%;
++	_float: right;
++	margin-right: 0;
++	_margin-left: 0;
++}
++
++.yui-gb .yui-gc div.first {
++	width: 66%;
++	*float: left;
++	*margin-left: 0;
++}
++
++.yui-gb .yui-ge .yui-u, 
++	.yui-gb .yui-gf .yui-u {
++	margin: 0;
++}
++
++.yui-gb .yui-gb .yui-u {
++	_margin-left: .7%;
++}
++
++.yui-gb .yui-g div.first, 
++	.yui-gb .yui-gb div.first {
++	*margin-left: 0;
++}
++
++.yui-gc .yui-g .yui-u,
++	.yui-gd .yui-g .yui-u {
++	*width: 48.1%;
++	*margin-left: 0;
++}
++
++.yui-gb .yui-gd div.first {
++	width: 32%;
++}
++
++.yui-g .yui-gd div.first {
++	_width: 29.9%;
++}
++
++.yui-ge .yui-g {
++	width: 24%;
++}
++
++.yui-gf .yui-g {
++	width: 74.2%;
++}
++
++.yui-gb .yui-ge div.yui-u,
++	.yui-gb .yui-gf div.yui-u {
++	float: right;
++}
++
++.yui-gb .yui-ge div.first,
++	.yui-gb .yui-gf div.first {
++	float: left;
++}
++
++/* Width Accommodation for Nested Contexts */
++.yui-gb .yui-ge .yui-u,
++	.yui-gb .yui-gf div.first {
++	*width: 24%;
++	_width: 20%;
++}
++
++/* Width Accommodation for Nested Contexts */
++.yui-gb .yui-ge div.first, 
++	.yui-gb .yui-gf .yui-u {
++	*width: 73.5%;
++	_width: 65.5%;
++}
++
++/* Patch for GD within GE */
++.yui-ge div.first .yui-gd .yui-u {
++	width: 65%;
++}
++
++.yui-ge div.first .yui-gd div.first {
++	width: 32%;
++}
++
++/* @group Clearing */
++#hd:after,
++#bd:after,
++#ft:after,
++.yui-g:after, 
++.yui-gb:after, 
++.yui-gc:after, 
++.yui-gd:after, 
++.yui-ge:after, 
++.yui-gf:after {
++	content: ".";
++	display: block;
++	height: 0;
++	clear: both;
++	visibility: hidden;
++}
++
++#hd,
++#bd,
++#ft,
++.yui-g, 
++.yui-gb, 
++.yui-gc, 
++.yui-gd, 
++.yui-ge, 
++.yui-gf {
++	zoom: 1;
++}
+diff --git a/pylons_app/public/js/yui/history/assets/blank.html b/pylons_app/public/js/yui/history/assets/blank.html
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/history/assets/blank.html
+@@ -0,0 +1,1 @@
++<html><head><title>bhm</title></head><body>&#160;</body></html>
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/history/history-debug.js b/pylons_app/public/js/yui/history/history-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/history/history-debug.js
+@@ -0,0 +1,803 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Browser History Manager provides the ability to use the back/forward
++ * navigation buttons in a DHTML application. It also allows a DHTML
++ * application to be bookmarked in a specific state.
++ *
++ * This library requires the following static markup:
++ *
++ * &lt;iframe id="yui-history-iframe" src="path-to-real-asset-in-same-domain"&gt;&lt;/iframe&gt;
++ * &lt;input id="yui-history-field" type="hidden"&gt;
++ *
++ * @module history
++ * @requires yahoo,event
++ * @namespace YAHOO.util
++ * @title Browser History Manager
++ */
++
++/**
++ * The History class provides the ability to use the back/forward navigation
++ * buttons in a DHTML application. It also allows a DHTML application to
++ * be bookmarked in a specific state.
++ *
++ * @class History
++ * @constructor
++ */
++YAHOO.util.History = (function () {
++
++    /**
++     * Our hidden IFrame used to store the browsing history.
++     *
++     * @property _histFrame
++     * @type HTMLIFrameElement
++     * @default null
++     * @private
++     */
++    var _histFrame = null;
++
++    /**
++     * INPUT field (with type="hidden" or type="text") or TEXTAREA.
++     * This field keeps the value of the initial state, current state
++     * the list of all states across pages within a single browser session.
++     *
++     * @property _stateField
++     * @type HTMLInputElement|HTMLTextAreaElement
++     * @default null
++     * @private
++     */
++    var _stateField = null;
++
++    /**
++     * Flag used to tell whether YAHOO.util.History.initialize has been called.
++     *
++     * @property _initialized
++     * @type boolean
++     * @default false
++     * @private
++     */
++    var _initialized = false;
++
++    /**
++     * List of registered modules.
++     *
++     * @property _modules
++     * @type array
++     * @default []
++     * @private
++     */
++    var _modules = [];
++
++    /**
++     * List of fully qualified states. This is used only by Safari.
++     *
++     * @property _fqstates
++     * @type array
++     * @default []
++     * @private
++     */
++    var _fqstates = [];
++
++    /**
++     * location.hash is a bit buggy on Opera. I have seen instances where
++     * navigating the history using the back/forward buttons, and hence
++     * changing the URL, would not change location.hash. That's ok, the
++     * implementation of an equivalent is trivial.
++     *
++     * @method _getHash
++     * @return {string} The hash portion of the document's location
++     * @private
++     */
++    function _getHash() {
++        var i, href;
++        href = top.location.href;
++        i = href.indexOf("#");
++        return i >= 0 ? href.substr(i + 1) : null;
++    }
++
++    /**
++     * Stores all the registered modules' initial state and current state.
++     * On Safari, we also store all the fully qualified states visited by
++     * the application within a single browser session. The storage takes
++     * place in the form field specified during initialization.
++     *
++     * @method _storeStates
++     * @private
++     */
++    function _storeStates() {
++
++        var moduleName, moduleObj, initialStates = [], currentStates = [];
++
++        for (moduleName in _modules) {
++            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                moduleObj = _modules[moduleName];
++                initialStates.push(moduleName + "=" + moduleObj.initialState);
++                currentStates.push(moduleName + "=" + moduleObj.currentState);
++            }
++        }
++
++        _stateField.value = initialStates.join("&") + "|" + currentStates.join("&");
++
++        if (YAHOO.env.ua.webkit) {
++            _stateField.value += "|" + _fqstates.join(",");
++        }
++    }
++
++    /**
++     * Sets the new currentState attribute of all modules depending on the new
++     * fully qualified state. Also notifies the modules which current state has
++     * changed.
++     *
++     * @method _handleFQStateChange
++     * @param {string} fqstate Fully qualified state
++     * @private
++     */
++    function _handleFQStateChange(fqstate) {
++
++        var i, len, moduleName, moduleObj, modules, states, tokens, currentState;
++
++        if (!fqstate) {
++            // Notifies all modules
++            for (moduleName in _modules) {
++                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                    moduleObj = _modules[moduleName];
++                    moduleObj.currentState = moduleObj.initialState;
++                    moduleObj.onStateChange(unescape(moduleObj.currentState));
++                }
++            }
++            return;
++        }
++
++        modules = [];
++        states = fqstate.split("&");
++        for (i = 0, len = states.length; i < len; i++) {
++            tokens = states[i].split("=");
++            if (tokens.length === 2) {
++                moduleName = tokens[0];
++                currentState = tokens[1];
++                modules[moduleName] = currentState;
++            }
++        }
++
++        for (moduleName in _modules) {
++            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                moduleObj = _modules[moduleName];
++                currentState = modules[moduleName];
++                if (!currentState || moduleObj.currentState !== currentState) {
++                    moduleObj.currentState = currentState || moduleObj.initialState;
++                    moduleObj.onStateChange(unescape(moduleObj.currentState));
++                }
++            }
++        }
++    }
++
++    /**
++     * Update the IFrame with our new state.
++     *
++     * @method _updateIFrame
++     * @private
++     * @return {boolean} true if successful. false otherwise.
++     */
++    function _updateIFrame (fqstate) {
++
++        var html, doc;
++
++        html = '<html><body><div id="state">' + fqstate + '</div></body></html>';
++
++        try {
++            doc = _histFrame.contentWindow.document;
++            doc.open();
++            doc.write(html);
++            doc.close();
++            return true;
++        } catch (e) {
++            return false;
++        }
++    }
++
++    /**
++     * Periodically checks whether our internal IFrame is ready to be used.
++     *
++     * @method _checkIframeLoaded
++     * @private
++     */
++    function _checkIframeLoaded() {
++
++        var doc, elem, fqstate, hash;
++
++        if (!_histFrame.contentWindow || !_histFrame.contentWindow.document) {
++            // Check again in 10 msec...
++            setTimeout(_checkIframeLoaded, 10);
++            return;
++        }
++
++        // Start the thread that will have the responsibility to
++        // periodically check whether a navigate operation has been
++        // requested on the main window. This will happen when
++        // YAHOO.util.History.navigate has been called or after
++        // the user has hit the back/forward button.
++
++        doc = _histFrame.contentWindow.document;
++        elem = doc.getElementById("state");
++        // We must use innerText, and not innerHTML because our string contains
++        // the "&" character (which would end up being escaped as "&amp;") and
++        // the string comparison would fail...
++        fqstate = elem ? elem.innerText : null;
++
++        hash = _getHash();
++
++        setInterval(function () {
++
++            var newfqstate, states, moduleName, moduleObj, newHash, historyLength;
++
++            doc = _histFrame.contentWindow.document;
++            elem = doc.getElementById("state");
++            // See my comment above about using innerText instead of innerHTML...
++            newfqstate = elem ? elem.innerText : null;
++
++            newHash = _getHash();
++
++            if (newfqstate !== fqstate) {
++
++                fqstate = newfqstate;
++                _handleFQStateChange(fqstate);
++
++                if (!fqstate) {
++                    states = [];
++                    for (moduleName in _modules) {
++                        if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                            moduleObj = _modules[moduleName];
++                            states.push(moduleName + "=" + moduleObj.initialState);
++                        }
++                    }
++                    newHash = states.join("&");
++                } else {
++                    newHash = fqstate;
++                }
++
++                // Allow the state to be bookmarked by setting the top window's
++                // URL fragment identifier. Note that here, we are on IE, and
++                // IE does not touch the browser history when setting the hash
++                // (unlike all the other browsers). I used to write:
++                //     top.location.replace( "#" + hash );
++                // but this had a side effect when the page was not the top frame.
++                top.location.hash = newHash;
++                hash = newHash;
++
++                _storeStates();
++
++            } else if (newHash !== hash) {
++
++                // The hash has changed. The user might have clicked on a link,
++                // or modified the URL directly, or opened the same application
++                // bookmarked in a specific state using a bookmark. However, we
++                // know the hash change was not caused by a hit on the back or
++                // forward buttons, or by a call to navigate() (because it would
++                // have been handled above) We must handle these cases, which is
++                // why we also need to keep track of hash changes on IE!
++
++                // Note that IE6 has some major issues with this kind of user
++                // interaction (the history stack gets completely messed up)
++                // but it seems to work fine on IE7.
++
++                hash = newHash;
++
++                // Now, store a new history entry. The following will cause the
++                // code above to execute, doing all the dirty work for us...
++                _updateIFrame(newHash);
++            }
++
++        }, 50);
++
++        _initialized = true;
++        YAHOO.util.History.onLoadEvent.fire();
++    }
++
++    /**
++     * Finish up the initialization of the Browser History Manager.
++     *
++     * @method _initialize
++     * @private
++     */
++    function _initialize() {
++
++        var i, len, parts, tokens, moduleName, moduleObj, initialStates, initialState, currentStates, currentState, counter, hash;
++
++        // Decode the content of our storage field...
++        parts = _stateField.value.split("|");
++
++        if (parts.length > 1) {
++
++            initialStates = parts[0].split("&");
++            for (i = 0, len = initialStates.length; i < len; i++) {
++                tokens = initialStates[i].split("=");
++                if (tokens.length === 2) {
++                    moduleName = tokens[0];
++                    initialState = tokens[1];
++                    moduleObj = _modules[moduleName];
++                    if (moduleObj) {
++                        moduleObj.initialState = initialState;
++                    }
++                }
++            }
++
++            currentStates = parts[1].split("&");
++            for (i = 0, len = currentStates.length; i < len; i++) {
++                tokens = currentStates[i].split("=");
++                if (tokens.length >= 2) {
++                    moduleName = tokens[0];
++                    currentState = tokens[1];
++                    moduleObj = _modules[moduleName];
++                    if (moduleObj) {
++                        moduleObj.currentState = currentState;
++                    }
++                }
++            }
++        }
++
++        if (parts.length > 2) {
++            _fqstates = parts[2].split(",");
++        }
++
++        if (YAHOO.env.ua.ie) {
++
++            if (typeof document.documentMode === "undefined" || document.documentMode < 8) {
++
++                // IE < 8 or IE8 in quirks mode or IE7 standards mode
++                _checkIframeLoaded();
++
++            } else {
++
++                // IE8 in IE8 standards mode
++                YAHOO.util.Event.on(top, "hashchange",
++                    function () {
++                        var hash = _getHash();
++                        _handleFQStateChange(hash);
++                        _storeStates();
++                    });
++
++                _initialized = true;
++                YAHOO.util.History.onLoadEvent.fire();
++
++            }
++
++        } else {
++
++            // Start the thread that will have the responsibility to
++            // periodically check whether a navigate operation has been
++            // requested on the main window. This will happen when
++            // YAHOO.util.History.navigate has been called or after
++            // the user has hit the back/forward button.
++
++            // On Safari 1.x and 2.0, the only way to catch a back/forward
++            // operation is to watch history.length... We basically exploit
++            // what I consider to be a bug (history.length is not supposed
++            // to change when going back/forward in the history...) This is
++            // why, in the following thread, we first compare the hash,
++            // because the hash thing will be fixed in the next major
++            // version of Safari. So even if they fix the history.length
++            // bug, all this will still work!
++            counter = history.length;
++
++            // On Gecko and Opera, we just need to watch the hash...
++            hash = _getHash();
++
++            setInterval(function () {
++
++                var state, newHash, newCounter;
++
++                newHash = _getHash();
++                newCounter = history.length;
++                if (newHash !== hash) {
++                    hash = newHash;
++                    counter = newCounter;
++                    _handleFQStateChange(hash);
++                    _storeStates();
++                } else if (newCounter !== counter && YAHOO.env.ua.webkit) {
++                    hash = newHash;
++                    counter = newCounter;
++                    state = _fqstates[counter - 1];
++                    _handleFQStateChange(state);
++                    _storeStates();
++                }
++
++            }, 50);
++
++            _initialized = true;
++            YAHOO.util.History.onLoadEvent.fire();
++        }
++    }
++
++    return {
++
++        /**
++         * Fired when the Browser History Manager is ready. If you subscribe to
++         * this event after the Browser History Manager has been initialized,
++         * it will not fire. Therefore, it is recommended to use the onReady
++         * method instead.
++         *
++         * @event onLoadEvent
++         * @see onReady
++         */
++        onLoadEvent: new YAHOO.util.CustomEvent("onLoad"),
++
++        /**
++         * Executes the supplied callback when the Browser History Manager is
++         * ready. This will execute immediately if called after the Browser
++         * History Manager onLoad event has fired.
++         *
++         * @method onReady
++         * @param {function} fn what to execute when the Browser History Manager is ready.
++         * @param {object} obj an optional object to be passed back as a parameter to fn.
++         * @param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope.
++         * @see onLoadEvent
++         */
++        onReady: function (fn, obj, overrideContext) {
++
++            if (_initialized) {
++
++                setTimeout(function () {
++                    var ctx = window;
++                    if (overrideContext) {
++                        if (overrideContext === true) {
++                            ctx = obj;
++                        } else {
++                            ctx = overrideContext;
++                        }
++                    }
++                    fn.call(ctx, "onLoad", [], obj);
++                }, 0);
++
++            } else {
++
++                YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);
++
++            }
++        },
++
++        /**
++         * Registers a new module.
++         *
++         * @method register
++         * @param {string} module Non-empty string uniquely identifying the
++         *     module you wish to register.
++         * @param {string} initialState The initial state of the specified
++         *     module corresponding to its earliest history entry.
++         * @param {function} onStateChange Callback called when the
++         *     state of the specified module has changed.
++         * @param {object} obj An arbitrary object that will be passed as a
++         *     parameter to the handler.
++         * @param {boolean} overrideContext If true, the obj passed in becomes the
++         *     execution scope of the listener.
++         */
++        register: function (module, initialState, onStateChange, obj, overrideContext) {
++
++            var scope, wrappedFn;
++
++            if (typeof module !== "string" || YAHOO.lang.trim(module) === "" ||
++                typeof initialState !== "string" ||
++                typeof onStateChange !== "function") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            if (_modules[module]) {
++                // Here, we used to throw an exception. However, users have
++                // complained about this behavior, so we now just return.
++                return;
++            }
++
++            // Note: A module CANNOT be registered after calling
++            // YAHOO.util.History.initialize. Indeed, we set the initial state
++            // of each registered module in YAHOO.util.History.initialize.
++            // If you could register a module after initializing the Browser
++            // History Manager, you would not read the correct state using
++            // YAHOO.util.History.getCurrentState when coming back to the
++            // page using the back button.
++            if (_initialized) {
++                throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");
++            }
++
++            // Make sure the strings passed in do not contain our separators "," and "|"
++            module = escape(module);
++            initialState = escape(initialState);
++
++            // If the user chooses to override the scope, we use the
++            // custom object passed in as the execution scope.
++            scope = null;
++            if (overrideContext === true) {
++                scope = obj;
++            } else {
++                scope = overrideContext;
++            }
++
++            wrappedFn = function (state) {
++                return onStateChange.call(scope, state, obj);
++            };
++
++            _modules[module] = {
++                name: module,
++                initialState: initialState,
++                currentState: initialState,
++                onStateChange: wrappedFn
++            };
++        },
++
++        /**
++         * Initializes the Browser History Manager. Call this method
++         * from a script block located right after the opening body tag.
++         *
++         * @method initialize
++         * @param {string|HTML Element} stateField <input type="hidden"> used
++         *     to store application states. Must be in the static markup.
++         * @param {string|HTML Element} histFrame IFrame used to store
++         *     the history (only required on Internet Explorer)
++         * @public
++         */
++        initialize: function (stateField, histFrame) {
++
++            if (_initialized) {
++                // The browser history manager has already been initialized.
++                return;
++            }
++
++            if (YAHOO.env.ua.opera && typeof history.navigationMode !== "undefined") {
++                // Disable Opera's fast back/forward navigation mode and puts
++                // it in compatible mode. This makes anchor-based history
++                // navigation work after the page has been navigated away
++                // from and re-activated, at the cost of slowing down
++                // back/forward navigation to and from that page.
++                history.navigationMode = "compatible";
++            }
++
++            if (typeof stateField === "string") {
++                stateField = document.getElementById(stateField);
++            }
++
++            if (!stateField ||
++                stateField.tagName.toUpperCase() !== "TEXTAREA" &&
++                (stateField.tagName.toUpperCase() !== "INPUT" ||
++                 stateField.type !== "hidden" &&
++                 stateField.type !== "text")) {
++                throw new Error("Missing or invalid argument");
++            }
++
++            _stateField = stateField;
++
++            // IE < 8 or IE8 in quirks mode or IE7 standards mode
++            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
++
++                if (typeof histFrame === "string") {
++                    histFrame = document.getElementById(histFrame);
++                }
++
++                if (!histFrame || histFrame.tagName.toUpperCase() !== "IFRAME") {
++                    throw new Error("Missing or invalid argument");
++                }
++
++                _histFrame = histFrame;
++            }
++
++            // Note that the event utility MUST be included inline in the page.
++            // If it gets loaded later (which you may want to do to improve the
++            // loading speed of your site), the onDOMReady event never fires,
++            // and the history library never gets fully initialized.
++            YAHOO.util.Event.onDOMReady(_initialize);
++        },
++
++        /**
++         * Call this method when you want to store a new entry in the browser's history.
++         *
++         * @method navigate
++         * @param {string} module Non-empty string representing your module.
++         * @param {string} state String representing the new state of the specified module.
++         * @return {boolean} Indicates whether the new state was successfully added to the history.
++         * @public
++         */
++        navigate: function (module, state) {
++
++            var states;
++
++            if (typeof module !== "string" || typeof state !== "string") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            states = {};
++            states[module] = state;
++
++            return YAHOO.util.History.multiNavigate(states);
++        },
++
++        /**
++         * Call this method when you want to store a new entry in the browser's history.
++         *
++         * @method multiNavigate
++         * @param {object} states Associative array of module-state pairs to set simultaneously.
++         * @return {boolean} Indicates whether the new state was successfully added to the history.
++         * @public
++         */
++        multiNavigate: function (states) {
++
++            var currentStates, moduleName, moduleObj, currentState, fqstate;
++
++            if (typeof states !== "object") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            if (!_initialized) {
++                throw new Error("The Browser History Manager is not initialized");
++            }
++
++            for (moduleName in states) {
++                if (!_modules[moduleName]) {
++                    throw new Error("The following module has not been registered: " + moduleName);
++                }
++            }
++
++            // Generate our new full state string mod1=xxx&mod2=yyy
++            currentStates = [];
++
++            for (moduleName in _modules) {
++                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                    moduleObj = _modules[moduleName];
++                    if (YAHOO.lang.hasOwnProperty(states, moduleName)) {
++                        currentState = states[unescape(moduleName)];
++                    } else {
++                        currentState = unescape(moduleObj.currentState);
++                    }
++
++                    // Make sure the strings passed in do not contain our separators "," and "|"
++                    moduleName = escape(moduleName);
++                    currentState = escape(currentState);
++
++                    currentStates.push(moduleName + "=" + currentState);
++                }
++            }
++
++            fqstate = currentStates.join("&");
++
++            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
++
++                return _updateIFrame(fqstate);
++
++            } else {
++
++                // Known bug: On Safari 1.x and 2.0, if you have tab browsing
++                // enabled, Safari will show an endless loading icon in the
++                // tab. This has apparently been fixed in recent WebKit builds.
++                // One work around found by Dav Glass is to submit a form that
++                // points to the same document. This indeed works on Safari 1.x
++                // and 2.0 but creates bigger problems on WebKit. So for now,
++                // we'll consider this an acceptable bug, and hope that Apple
++                // comes out with their next version of Safari very soon.
++                top.location.hash = fqstate;
++                if (YAHOO.env.ua.webkit) {
++                    // The following two lines are only useful for Safari 1.x
++                    // and 2.0. Recent nightly builds of WebKit do not require
++                    // that, but unfortunately, it is not easy to differentiate
++                    // between the two. Once Safari 2.0 departs the A-grade
++                    // list, we can remove the following two lines...
++                    _fqstates[history.length] = fqstate;
++                    _storeStates();
++                }
++
++                return true;
++
++            }
++        },
++
++        /**
++         * Returns the current state of the specified module.
++         *
++         * @method getCurrentState
++         * @param {string} module Non-empty string representing your module.
++         * @return {string} The current state of the specified module.
++         * @public
++         */
++        getCurrentState: function (module) {
++
++            var moduleObj;
++
++            if (typeof module !== "string") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            if (!_initialized) {
++                throw new Error("The Browser History Manager is not initialized");
++            }
++
++            moduleObj = _modules[module];
++            if (!moduleObj) {
++                throw new Error("No such registered module: " + module);
++            }
++
++            return unescape(moduleObj.currentState);
++        },
++
++        /**
++         * Returns the state of a module according to the URL fragment
++         * identifier. This method is useful to initialize your modules
++         * if your application was bookmarked from a particular state.
++         *
++         * @method getBookmarkedState
++         * @param {string} module Non-empty string representing your module.
++         * @return {string} The bookmarked state of the specified module.
++         * @public
++         */
++        getBookmarkedState: function (module) {
++
++            var i, len, idx, hash, states, tokens, moduleName;
++
++            if (typeof module !== "string") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            // Use location.href instead of location.hash which is already
++            // URL-decoded, which creates problems if the state value
++            // contained special characters...
++            idx = top.location.href.indexOf("#");
++            if (idx >= 0) {
++                hash = top.location.href.substr(idx + 1);
++                states = hash.split("&");
++                for (i = 0, len = states.length; i < len; i++) {
++                    tokens = states[i].split("=");
++                    if (tokens.length === 2) {
++                        moduleName = tokens[0];
++                        if (moduleName === module) {
++                            return unescape(tokens[1]);
++                        }
++                    }
++                }
++            }
++
++            return null;
++        },
++
++        /**
++         * Returns the value of the specified query string parameter.
++         * This method is not used internally by the Browser History Manager.
++         * However, it is provided here as a helper since many applications
++         * using the Browser History Manager will want to read the value of
++         * url parameters to initialize themselves.
++         *
++         * @method getQueryStringParameter
++         * @param {string} paramName Name of the parameter we want to look up.
++         * @param {string} queryString Optional URL to look at. If not specified,
++         *     this method uses the URL in the address bar.
++         * @return {string} The value of the specified parameter, or null.
++         * @public
++         */
++        getQueryStringParameter: function (paramName, url) {
++
++            var i, len, idx, queryString, params, tokens;
++
++            url = url || top.location.href;
++
++            idx = url.indexOf("?");
++            queryString = idx >= 0 ? url.substr(idx + 1) : url;
++
++            // Remove the hash if any
++            idx = queryString.lastIndexOf("#");
++            queryString = idx >= 0 ? queryString.substr(0, idx) : queryString;
++
++            params = queryString.split("&");
++
++            for (i = 0, len = params.length; i < len; i++) {
++                tokens = params[i].split("=");
++                if (tokens.length >= 2) {
++                    if (tokens[0] === paramName) {
++                        return unescape(tokens[1]);
++                    }
++                }
++            }
++
++            return null;
++        }
++
++    };
++
++})();
++YAHOO.register("history", YAHOO.util.History, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/history/history-min.js b/pylons_app/public/js/yui/history/history-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/history/history-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.History=(function(){var C=null;var K=null;var F=false;var D=[];var B=[];function I(){var M,L;L=top.location.href;M=L.indexOf("#");return M>=0?L.substr(M+1):null;}function A(){var M,N,O=[],L=[];for(M in D){if(YAHOO.lang.hasOwnProperty(D,M)){N=D[M];O.push(M+"="+N.initialState);L.push(M+"="+N.currentState);}}K.value=O.join("&")+"|"+L.join("&");if(YAHOO.env.ua.webkit){K.value+="|"+B.join(",");}}function H(L){var Q,R,M,O,P,T,S,N;if(!L){for(M in D){if(YAHOO.lang.hasOwnProperty(D,M)){O=D[M];O.currentState=O.initialState;O.onStateChange(unescape(O.currentState));}}return;}P=[];T=L.split("&");for(Q=0,R=T.length;Q<R;Q++){S=T[Q].split("=");if(S.length===2){M=S[0];N=S[1];P[M]=N;}}for(M in D){if(YAHOO.lang.hasOwnProperty(D,M)){O=D[M];N=P[M];if(!N||O.currentState!==N){O.currentState=N||O.initialState;O.onStateChange(unescape(O.currentState));}}}}function J(O){var L,N;L='<html><body><div id="state">'+O+"</div></body></html>";try{N=C.contentWindow.document;N.open();N.write(L);N.close();return true;}catch(M){return false;}}function G(){var O,L,N,M;if(!C.contentWindow||!C.contentWindow.document){setTimeout(G,10);return;}O=C.contentWindow.document;L=O.getElementById("state");N=L?L.innerText:null;M=I();setInterval(function(){var U,Q,R,S,T,P;O=C.contentWindow.document;L=O.getElementById("state");U=L?L.innerText:null;T=I();if(U!==N){N=U;H(N);if(!N){Q=[];for(R in D){if(YAHOO.lang.hasOwnProperty(D,R)){S=D[R];Q.push(R+"="+S.initialState);}}T=Q.join("&");}else{T=N;}top.location.hash=T;M=T;A();}else{if(T!==M){M=T;J(T);}}},50);F=true;YAHOO.util.History.onLoadEvent.fire();}function E(){var S,U,Q,W,M,O,V,P,T,N,L,R;Q=K.value.split("|");if(Q.length>1){V=Q[0].split("&");for(S=0,U=V.length;S<U;S++){W=V[S].split("=");if(W.length===2){M=W[0];P=W[1];O=D[M];if(O){O.initialState=P;}}}T=Q[1].split("&");for(S=0,U=T.length;S<U;S++){W=T[S].split("=");if(W.length>=2){M=W[0];N=W[1];O=D[M];if(O){O.currentState=N;}}}}if(Q.length>2){B=Q[2].split(",");}if(YAHOO.env.ua.ie){if(typeof document.documentMode==="undefined"||document.documentMode<8){G();}else{YAHOO.util.Event.on(top,"hashchange",function(){var X=I();H(X);A();});F=true;YAHOO.util.History.onLoadEvent.fire();}}else{L=history.length;R=I();setInterval(function(){var Z,X,Y;X=I();Y=history.length;if(X!==R){R=X;L=Y;H(R);A();}else{if(Y!==L&&YAHOO.env.ua.webkit){R=X;L=Y;Z=B[L-1];H(Z);A();}}},50);F=true;YAHOO.util.History.onLoadEvent.fire();}}return{onLoadEvent:new YAHOO.util.CustomEvent("onLoad"),onReady:function(L,M,N){if(F){setTimeout(function(){var O=window;if(N){if(N===true){O=M;}else{O=N;}}L.call(O,"onLoad",[],M);},0);}else{YAHOO.util.History.onLoadEvent.subscribe(L,M,N);}},register:function(N,L,P,Q,R){var O,M;if(typeof N!=="string"||YAHOO.lang.trim(N)===""||typeof L!=="string"||typeof P!=="function"){throw new Error("Missing or invalid argument");}if(D[N]){return;}if(F){throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");}N=escape(N);L=escape(L);O=null;if(R===true){O=Q;}else{O=R;}M=function(S){return P.call(O,S,Q);};D[N]={name:N,initialState:L,currentState:L,onStateChange:M};},initialize:function(L,M){if(F){return;}if(YAHOO.env.ua.opera&&typeof history.navigationMode!=="undefined"){history.navigationMode="compatible";}if(typeof L==="string"){L=document.getElementById(L);}if(!L||L.tagName.toUpperCase()!=="TEXTAREA"&&(L.tagName.toUpperCase()!=="INPUT"||L.type!=="hidden"&&L.type!=="text")){throw new Error("Missing or invalid argument");}K=L;if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){if(typeof M==="string"){M=document.getElementById(M);}if(!M||M.tagName.toUpperCase()!=="IFRAME"){throw new Error("Missing or invalid argument");}C=M;}YAHOO.util.Event.onDOMReady(E);},navigate:function(M,N){var L;if(typeof M!=="string"||typeof N!=="string"){throw new Error("Missing or invalid argument");}L={};L[M]=N;return YAHOO.util.History.multiNavigate(L);},multiNavigate:function(M){var L,N,P,O,Q;if(typeof M!=="object"){throw new Error("Missing or invalid argument");}if(!F){throw new Error("The Browser History Manager is not initialized");}for(N in M){if(!D[N]){throw new Error("The following module has not been registered: "+N);}}L=[];for(N in D){if(YAHOO.lang.hasOwnProperty(D,N)){P=D[N];if(YAHOO.lang.hasOwnProperty(M,N)){O=M[unescape(N)];}else{O=unescape(P.currentState);}N=escape(N);O=escape(O);L.push(N+"="+O);}}Q=L.join("&");if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){return J(Q);}else{top.location.hash=Q;if(YAHOO.env.ua.webkit){B[history.length]=Q;A();}return true;}},getCurrentState:function(L){var M;if(typeof L!=="string"){throw new Error("Missing or invalid argument");}if(!F){throw new Error("The Browser History Manager is not initialized");}M=D[L];if(!M){throw new Error("No such registered module: "+L);}return unescape(M.currentState);},getBookmarkedState:function(Q){var P,M,L,S,N,R,O;if(typeof Q!=="string"){throw new Error("Missing or invalid argument");}L=top.location.href.indexOf("#");if(L>=0){S=top.location.href.substr(L+1);N=S.split("&");for(P=0,M=N.length;P<M;P++){R=N[P].split("=");if(R.length===2){O=R[0];if(O===Q){return unescape(R[1]);}}}}return null;},getQueryStringParameter:function(Q,N){var O,M,L,S,R,P;N=N||top.location.href;L=N.indexOf("?");S=L>=0?N.substr(L+1):N;L=S.lastIndexOf("#");S=L>=0?S.substr(0,L):S;R=S.split("&");for(O=0,M=R.length;O<M;O++){P=R[O].split("=");if(P.length>=2){if(P[0]===Q){return unescape(P[1]);}}}return null;}};})();YAHOO.register("history",YAHOO.util.History,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/history/history.js b/pylons_app/public/js/yui/history/history.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/history/history.js
+@@ -0,0 +1,803 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Browser History Manager provides the ability to use the back/forward
++ * navigation buttons in a DHTML application. It also allows a DHTML
++ * application to be bookmarked in a specific state.
++ *
++ * This library requires the following static markup:
++ *
++ * &lt;iframe id="yui-history-iframe" src="path-to-real-asset-in-same-domain"&gt;&lt;/iframe&gt;
++ * &lt;input id="yui-history-field" type="hidden"&gt;
++ *
++ * @module history
++ * @requires yahoo,event
++ * @namespace YAHOO.util
++ * @title Browser History Manager
++ */
++
++/**
++ * The History class provides the ability to use the back/forward navigation
++ * buttons in a DHTML application. It also allows a DHTML application to
++ * be bookmarked in a specific state.
++ *
++ * @class History
++ * @constructor
++ */
++YAHOO.util.History = (function () {
++
++    /**
++     * Our hidden IFrame used to store the browsing history.
++     *
++     * @property _histFrame
++     * @type HTMLIFrameElement
++     * @default null
++     * @private
++     */
++    var _histFrame = null;
++
++    /**
++     * INPUT field (with type="hidden" or type="text") or TEXTAREA.
++     * This field keeps the value of the initial state, current state
++     * the list of all states across pages within a single browser session.
++     *
++     * @property _stateField
++     * @type HTMLInputElement|HTMLTextAreaElement
++     * @default null
++     * @private
++     */
++    var _stateField = null;
++
++    /**
++     * Flag used to tell whether YAHOO.util.History.initialize has been called.
++     *
++     * @property _initialized
++     * @type boolean
++     * @default false
++     * @private
++     */
++    var _initialized = false;
++
++    /**
++     * List of registered modules.
++     *
++     * @property _modules
++     * @type array
++     * @default []
++     * @private
++     */
++    var _modules = [];
++
++    /**
++     * List of fully qualified states. This is used only by Safari.
++     *
++     * @property _fqstates
++     * @type array
++     * @default []
++     * @private
++     */
++    var _fqstates = [];
++
++    /**
++     * location.hash is a bit buggy on Opera. I have seen instances where
++     * navigating the history using the back/forward buttons, and hence
++     * changing the URL, would not change location.hash. That's ok, the
++     * implementation of an equivalent is trivial.
++     *
++     * @method _getHash
++     * @return {string} The hash portion of the document's location
++     * @private
++     */
++    function _getHash() {
++        var i, href;
++        href = top.location.href;
++        i = href.indexOf("#");
++        return i >= 0 ? href.substr(i + 1) : null;
++    }
++
++    /**
++     * Stores all the registered modules' initial state and current state.
++     * On Safari, we also store all the fully qualified states visited by
++     * the application within a single browser session. The storage takes
++     * place in the form field specified during initialization.
++     *
++     * @method _storeStates
++     * @private
++     */
++    function _storeStates() {
++
++        var moduleName, moduleObj, initialStates = [], currentStates = [];
++
++        for (moduleName in _modules) {
++            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                moduleObj = _modules[moduleName];
++                initialStates.push(moduleName + "=" + moduleObj.initialState);
++                currentStates.push(moduleName + "=" + moduleObj.currentState);
++            }
++        }
++
++        _stateField.value = initialStates.join("&") + "|" + currentStates.join("&");
++
++        if (YAHOO.env.ua.webkit) {
++            _stateField.value += "|" + _fqstates.join(",");
++        }
++    }
++
++    /**
++     * Sets the new currentState attribute of all modules depending on the new
++     * fully qualified state. Also notifies the modules which current state has
++     * changed.
++     *
++     * @method _handleFQStateChange
++     * @param {string} fqstate Fully qualified state
++     * @private
++     */
++    function _handleFQStateChange(fqstate) {
++
++        var i, len, moduleName, moduleObj, modules, states, tokens, currentState;
++
++        if (!fqstate) {
++            // Notifies all modules
++            for (moduleName in _modules) {
++                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                    moduleObj = _modules[moduleName];
++                    moduleObj.currentState = moduleObj.initialState;
++                    moduleObj.onStateChange(unescape(moduleObj.currentState));
++                }
++            }
++            return;
++        }
++
++        modules = [];
++        states = fqstate.split("&");
++        for (i = 0, len = states.length; i < len; i++) {
++            tokens = states[i].split("=");
++            if (tokens.length === 2) {
++                moduleName = tokens[0];
++                currentState = tokens[1];
++                modules[moduleName] = currentState;
++            }
++        }
++
++        for (moduleName in _modules) {
++            if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                moduleObj = _modules[moduleName];
++                currentState = modules[moduleName];
++                if (!currentState || moduleObj.currentState !== currentState) {
++                    moduleObj.currentState = currentState || moduleObj.initialState;
++                    moduleObj.onStateChange(unescape(moduleObj.currentState));
++                }
++            }
++        }
++    }
++
++    /**
++     * Update the IFrame with our new state.
++     *
++     * @method _updateIFrame
++     * @private
++     * @return {boolean} true if successful. false otherwise.
++     */
++    function _updateIFrame (fqstate) {
++
++        var html, doc;
++
++        html = '<html><body><div id="state">' + fqstate + '</div></body></html>';
++
++        try {
++            doc = _histFrame.contentWindow.document;
++            doc.open();
++            doc.write(html);
++            doc.close();
++            return true;
++        } catch (e) {
++            return false;
++        }
++    }
++
++    /**
++     * Periodically checks whether our internal IFrame is ready to be used.
++     *
++     * @method _checkIframeLoaded
++     * @private
++     */
++    function _checkIframeLoaded() {
++
++        var doc, elem, fqstate, hash;
++
++        if (!_histFrame.contentWindow || !_histFrame.contentWindow.document) {
++            // Check again in 10 msec...
++            setTimeout(_checkIframeLoaded, 10);
++            return;
++        }
++
++        // Start the thread that will have the responsibility to
++        // periodically check whether a navigate operation has been
++        // requested on the main window. This will happen when
++        // YAHOO.util.History.navigate has been called or after
++        // the user has hit the back/forward button.
++
++        doc = _histFrame.contentWindow.document;
++        elem = doc.getElementById("state");
++        // We must use innerText, and not innerHTML because our string contains
++        // the "&" character (which would end up being escaped as "&amp;") and
++        // the string comparison would fail...
++        fqstate = elem ? elem.innerText : null;
++
++        hash = _getHash();
++
++        setInterval(function () {
++
++            var newfqstate, states, moduleName, moduleObj, newHash, historyLength;
++
++            doc = _histFrame.contentWindow.document;
++            elem = doc.getElementById("state");
++            // See my comment above about using innerText instead of innerHTML...
++            newfqstate = elem ? elem.innerText : null;
++
++            newHash = _getHash();
++
++            if (newfqstate !== fqstate) {
++
++                fqstate = newfqstate;
++                _handleFQStateChange(fqstate);
++
++                if (!fqstate) {
++                    states = [];
++                    for (moduleName in _modules) {
++                        if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                            moduleObj = _modules[moduleName];
++                            states.push(moduleName + "=" + moduleObj.initialState);
++                        }
++                    }
++                    newHash = states.join("&");
++                } else {
++                    newHash = fqstate;
++                }
++
++                // Allow the state to be bookmarked by setting the top window's
++                // URL fragment identifier. Note that here, we are on IE, and
++                // IE does not touch the browser history when setting the hash
++                // (unlike all the other browsers). I used to write:
++                //     top.location.replace( "#" + hash );
++                // but this had a side effect when the page was not the top frame.
++                top.location.hash = newHash;
++                hash = newHash;
++
++                _storeStates();
++
++            } else if (newHash !== hash) {
++
++                // The hash has changed. The user might have clicked on a link,
++                // or modified the URL directly, or opened the same application
++                // bookmarked in a specific state using a bookmark. However, we
++                // know the hash change was not caused by a hit on the back or
++                // forward buttons, or by a call to navigate() (because it would
++                // have been handled above) We must handle these cases, which is
++                // why we also need to keep track of hash changes on IE!
++
++                // Note that IE6 has some major issues with this kind of user
++                // interaction (the history stack gets completely messed up)
++                // but it seems to work fine on IE7.
++
++                hash = newHash;
++
++                // Now, store a new history entry. The following will cause the
++                // code above to execute, doing all the dirty work for us...
++                _updateIFrame(newHash);
++            }
++
++        }, 50);
++
++        _initialized = true;
++        YAHOO.util.History.onLoadEvent.fire();
++    }
++
++    /**
++     * Finish up the initialization of the Browser History Manager.
++     *
++     * @method _initialize
++     * @private
++     */
++    function _initialize() {
++
++        var i, len, parts, tokens, moduleName, moduleObj, initialStates, initialState, currentStates, currentState, counter, hash;
++
++        // Decode the content of our storage field...
++        parts = _stateField.value.split("|");
++
++        if (parts.length > 1) {
++
++            initialStates = parts[0].split("&");
++            for (i = 0, len = initialStates.length; i < len; i++) {
++                tokens = initialStates[i].split("=");
++                if (tokens.length === 2) {
++                    moduleName = tokens[0];
++                    initialState = tokens[1];
++                    moduleObj = _modules[moduleName];
++                    if (moduleObj) {
++                        moduleObj.initialState = initialState;
++                    }
++                }
++            }
++
++            currentStates = parts[1].split("&");
++            for (i = 0, len = currentStates.length; i < len; i++) {
++                tokens = currentStates[i].split("=");
++                if (tokens.length >= 2) {
++                    moduleName = tokens[0];
++                    currentState = tokens[1];
++                    moduleObj = _modules[moduleName];
++                    if (moduleObj) {
++                        moduleObj.currentState = currentState;
++                    }
++                }
++            }
++        }
++
++        if (parts.length > 2) {
++            _fqstates = parts[2].split(",");
++        }
++
++        if (YAHOO.env.ua.ie) {
++
++            if (typeof document.documentMode === "undefined" || document.documentMode < 8) {
++
++                // IE < 8 or IE8 in quirks mode or IE7 standards mode
++                _checkIframeLoaded();
++
++            } else {
++
++                // IE8 in IE8 standards mode
++                YAHOO.util.Event.on(top, "hashchange",
++                    function () {
++                        var hash = _getHash();
++                        _handleFQStateChange(hash);
++                        _storeStates();
++                    });
++
++                _initialized = true;
++                YAHOO.util.History.onLoadEvent.fire();
++
++            }
++
++        } else {
++
++            // Start the thread that will have the responsibility to
++            // periodically check whether a navigate operation has been
++            // requested on the main window. This will happen when
++            // YAHOO.util.History.navigate has been called or after
++            // the user has hit the back/forward button.
++
++            // On Safari 1.x and 2.0, the only way to catch a back/forward
++            // operation is to watch history.length... We basically exploit
++            // what I consider to be a bug (history.length is not supposed
++            // to change when going back/forward in the history...) This is
++            // why, in the following thread, we first compare the hash,
++            // because the hash thing will be fixed in the next major
++            // version of Safari. So even if they fix the history.length
++            // bug, all this will still work!
++            counter = history.length;
++
++            // On Gecko and Opera, we just need to watch the hash...
++            hash = _getHash();
++
++            setInterval(function () {
++
++                var state, newHash, newCounter;
++
++                newHash = _getHash();
++                newCounter = history.length;
++                if (newHash !== hash) {
++                    hash = newHash;
++                    counter = newCounter;
++                    _handleFQStateChange(hash);
++                    _storeStates();
++                } else if (newCounter !== counter && YAHOO.env.ua.webkit) {
++                    hash = newHash;
++                    counter = newCounter;
++                    state = _fqstates[counter - 1];
++                    _handleFQStateChange(state);
++                    _storeStates();
++                }
++
++            }, 50);
++
++            _initialized = true;
++            YAHOO.util.History.onLoadEvent.fire();
++        }
++    }
++
++    return {
++
++        /**
++         * Fired when the Browser History Manager is ready. If you subscribe to
++         * this event after the Browser History Manager has been initialized,
++         * it will not fire. Therefore, it is recommended to use the onReady
++         * method instead.
++         *
++         * @event onLoadEvent
++         * @see onReady
++         */
++        onLoadEvent: new YAHOO.util.CustomEvent("onLoad"),
++
++        /**
++         * Executes the supplied callback when the Browser History Manager is
++         * ready. This will execute immediately if called after the Browser
++         * History Manager onLoad event has fired.
++         *
++         * @method onReady
++         * @param {function} fn what to execute when the Browser History Manager is ready.
++         * @param {object} obj an optional object to be passed back as a parameter to fn.
++         * @param {boolean|object} overrideContext If true, the obj passed in becomes fn's execution scope.
++         * @see onLoadEvent
++         */
++        onReady: function (fn, obj, overrideContext) {
++
++            if (_initialized) {
++
++                setTimeout(function () {
++                    var ctx = window;
++                    if (overrideContext) {
++                        if (overrideContext === true) {
++                            ctx = obj;
++                        } else {
++                            ctx = overrideContext;
++                        }
++                    }
++                    fn.call(ctx, "onLoad", [], obj);
++                }, 0);
++
++            } else {
++
++                YAHOO.util.History.onLoadEvent.subscribe(fn, obj, overrideContext);
++
++            }
++        },
++
++        /**
++         * Registers a new module.
++         *
++         * @method register
++         * @param {string} module Non-empty string uniquely identifying the
++         *     module you wish to register.
++         * @param {string} initialState The initial state of the specified
++         *     module corresponding to its earliest history entry.
++         * @param {function} onStateChange Callback called when the
++         *     state of the specified module has changed.
++         * @param {object} obj An arbitrary object that will be passed as a
++         *     parameter to the handler.
++         * @param {boolean} overrideContext If true, the obj passed in becomes the
++         *     execution scope of the listener.
++         */
++        register: function (module, initialState, onStateChange, obj, overrideContext) {
++
++            var scope, wrappedFn;
++
++            if (typeof module !== "string" || YAHOO.lang.trim(module) === "" ||
++                typeof initialState !== "string" ||
++                typeof onStateChange !== "function") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            if (_modules[module]) {
++                // Here, we used to throw an exception. However, users have
++                // complained about this behavior, so we now just return.
++                return;
++            }
++
++            // Note: A module CANNOT be registered after calling
++            // YAHOO.util.History.initialize. Indeed, we set the initial state
++            // of each registered module in YAHOO.util.History.initialize.
++            // If you could register a module after initializing the Browser
++            // History Manager, you would not read the correct state using
++            // YAHOO.util.History.getCurrentState when coming back to the
++            // page using the back button.
++            if (_initialized) {
++                throw new Error("All modules must be registered before calling YAHOO.util.History.initialize");
++            }
++
++            // Make sure the strings passed in do not contain our separators "," and "|"
++            module = escape(module);
++            initialState = escape(initialState);
++
++            // If the user chooses to override the scope, we use the
++            // custom object passed in as the execution scope.
++            scope = null;
++            if (overrideContext === true) {
++                scope = obj;
++            } else {
++                scope = overrideContext;
++            }
++
++            wrappedFn = function (state) {
++                return onStateChange.call(scope, state, obj);
++            };
++
++            _modules[module] = {
++                name: module,
++                initialState: initialState,
++                currentState: initialState,
++                onStateChange: wrappedFn
++            };
++        },
++
++        /**
++         * Initializes the Browser History Manager. Call this method
++         * from a script block located right after the opening body tag.
++         *
++         * @method initialize
++         * @param {string|HTML Element} stateField <input type="hidden"> used
++         *     to store application states. Must be in the static markup.
++         * @param {string|HTML Element} histFrame IFrame used to store
++         *     the history (only required on Internet Explorer)
++         * @public
++         */
++        initialize: function (stateField, histFrame) {
++
++            if (_initialized) {
++                // The browser history manager has already been initialized.
++                return;
++            }
++
++            if (YAHOO.env.ua.opera && typeof history.navigationMode !== "undefined") {
++                // Disable Opera's fast back/forward navigation mode and puts
++                // it in compatible mode. This makes anchor-based history
++                // navigation work after the page has been navigated away
++                // from and re-activated, at the cost of slowing down
++                // back/forward navigation to and from that page.
++                history.navigationMode = "compatible";
++            }
++
++            if (typeof stateField === "string") {
++                stateField = document.getElementById(stateField);
++            }
++
++            if (!stateField ||
++                stateField.tagName.toUpperCase() !== "TEXTAREA" &&
++                (stateField.tagName.toUpperCase() !== "INPUT" ||
++                 stateField.type !== "hidden" &&
++                 stateField.type !== "text")) {
++                throw new Error("Missing or invalid argument");
++            }
++
++            _stateField = stateField;
++
++            // IE < 8 or IE8 in quirks mode or IE7 standards mode
++            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
++
++                if (typeof histFrame === "string") {
++                    histFrame = document.getElementById(histFrame);
++                }
++
++                if (!histFrame || histFrame.tagName.toUpperCase() !== "IFRAME") {
++                    throw new Error("Missing or invalid argument");
++                }
++
++                _histFrame = histFrame;
++            }
++
++            // Note that the event utility MUST be included inline in the page.
++            // If it gets loaded later (which you may want to do to improve the
++            // loading speed of your site), the onDOMReady event never fires,
++            // and the history library never gets fully initialized.
++            YAHOO.util.Event.onDOMReady(_initialize);
++        },
++
++        /**
++         * Call this method when you want to store a new entry in the browser's history.
++         *
++         * @method navigate
++         * @param {string} module Non-empty string representing your module.
++         * @param {string} state String representing the new state of the specified module.
++         * @return {boolean} Indicates whether the new state was successfully added to the history.
++         * @public
++         */
++        navigate: function (module, state) {
++
++            var states;
++
++            if (typeof module !== "string" || typeof state !== "string") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            states = {};
++            states[module] = state;
++
++            return YAHOO.util.History.multiNavigate(states);
++        },
++
++        /**
++         * Call this method when you want to store a new entry in the browser's history.
++         *
++         * @method multiNavigate
++         * @param {object} states Associative array of module-state pairs to set simultaneously.
++         * @return {boolean} Indicates whether the new state was successfully added to the history.
++         * @public
++         */
++        multiNavigate: function (states) {
++
++            var currentStates, moduleName, moduleObj, currentState, fqstate;
++
++            if (typeof states !== "object") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            if (!_initialized) {
++                throw new Error("The Browser History Manager is not initialized");
++            }
++
++            for (moduleName in states) {
++                if (!_modules[moduleName]) {
++                    throw new Error("The following module has not been registered: " + moduleName);
++                }
++            }
++
++            // Generate our new full state string mod1=xxx&mod2=yyy
++            currentStates = [];
++
++            for (moduleName in _modules) {
++                if (YAHOO.lang.hasOwnProperty(_modules, moduleName)) {
++                    moduleObj = _modules[moduleName];
++                    if (YAHOO.lang.hasOwnProperty(states, moduleName)) {
++                        currentState = states[unescape(moduleName)];
++                    } else {
++                        currentState = unescape(moduleObj.currentState);
++                    }
++
++                    // Make sure the strings passed in do not contain our separators "," and "|"
++                    moduleName = escape(moduleName);
++                    currentState = escape(currentState);
++
++                    currentStates.push(moduleName + "=" + currentState);
++                }
++            }
++
++            fqstate = currentStates.join("&");
++
++            if (YAHOO.env.ua.ie && (typeof document.documentMode === "undefined" || document.documentMode < 8)) {
++
++                return _updateIFrame(fqstate);
++
++            } else {
++
++                // Known bug: On Safari 1.x and 2.0, if you have tab browsing
++                // enabled, Safari will show an endless loading icon in the
++                // tab. This has apparently been fixed in recent WebKit builds.
++                // One work around found by Dav Glass is to submit a form that
++                // points to the same document. This indeed works on Safari 1.x
++                // and 2.0 but creates bigger problems on WebKit. So for now,
++                // we'll consider this an acceptable bug, and hope that Apple
++                // comes out with their next version of Safari very soon.
++                top.location.hash = fqstate;
++                if (YAHOO.env.ua.webkit) {
++                    // The following two lines are only useful for Safari 1.x
++                    // and 2.0. Recent nightly builds of WebKit do not require
++                    // that, but unfortunately, it is not easy to differentiate
++                    // between the two. Once Safari 2.0 departs the A-grade
++                    // list, we can remove the following two lines...
++                    _fqstates[history.length] = fqstate;
++                    _storeStates();
++                }
++
++                return true;
++
++            }
++        },
++
++        /**
++         * Returns the current state of the specified module.
++         *
++         * @method getCurrentState
++         * @param {string} module Non-empty string representing your module.
++         * @return {string} The current state of the specified module.
++         * @public
++         */
++        getCurrentState: function (module) {
++
++            var moduleObj;
++
++            if (typeof module !== "string") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            if (!_initialized) {
++                throw new Error("The Browser History Manager is not initialized");
++            }
++
++            moduleObj = _modules[module];
++            if (!moduleObj) {
++                throw new Error("No such registered module: " + module);
++            }
++
++            return unescape(moduleObj.currentState);
++        },
++
++        /**
++         * Returns the state of a module according to the URL fragment
++         * identifier. This method is useful to initialize your modules
++         * if your application was bookmarked from a particular state.
++         *
++         * @method getBookmarkedState
++         * @param {string} module Non-empty string representing your module.
++         * @return {string} The bookmarked state of the specified module.
++         * @public
++         */
++        getBookmarkedState: function (module) {
++
++            var i, len, idx, hash, states, tokens, moduleName;
++
++            if (typeof module !== "string") {
++                throw new Error("Missing or invalid argument");
++            }
++
++            // Use location.href instead of location.hash which is already
++            // URL-decoded, which creates problems if the state value
++            // contained special characters...
++            idx = top.location.href.indexOf("#");
++            if (idx >= 0) {
++                hash = top.location.href.substr(idx + 1);
++                states = hash.split("&");
++                for (i = 0, len = states.length; i < len; i++) {
++                    tokens = states[i].split("=");
++                    if (tokens.length === 2) {
++                        moduleName = tokens[0];
++                        if (moduleName === module) {
++                            return unescape(tokens[1]);
++                        }
++                    }
++                }
++            }
++
++            return null;
++        },
++
++        /**
++         * Returns the value of the specified query string parameter.
++         * This method is not used internally by the Browser History Manager.
++         * However, it is provided here as a helper since many applications
++         * using the Browser History Manager will want to read the value of
++         * url parameters to initialize themselves.
++         *
++         * @method getQueryStringParameter
++         * @param {string} paramName Name of the parameter we want to look up.
++         * @param {string} queryString Optional URL to look at. If not specified,
++         *     this method uses the URL in the address bar.
++         * @return {string} The value of the specified parameter, or null.
++         * @public
++         */
++        getQueryStringParameter: function (paramName, url) {
++
++            var i, len, idx, queryString, params, tokens;
++
++            url = url || top.location.href;
++
++            idx = url.indexOf("?");
++            queryString = idx >= 0 ? url.substr(idx + 1) : url;
++
++            // Remove the hash if any
++            idx = queryString.lastIndexOf("#");
++            queryString = idx >= 0 ? queryString.substr(0, idx) : queryString;
++
++            params = queryString.split("&");
++
++            for (i = 0, len = params.length; i < len; i++) {
++                tokens = params[i].split("=");
++                if (tokens.length >= 2) {
++                    if (tokens[0] === paramName) {
++                        return unescape(tokens[1]);
++                    }
++                }
++            }
++
++            return null;
++        }
++
++    };
++
++})();
++YAHOO.register("history", YAHOO.util.History, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/imagecropper/assets/imagecropper-core.css b/pylons_app/public/js/yui/imagecropper/assets/imagecropper-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imagecropper/assets/imagecropper-core.css
+@@ -0,0 +1,33 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-crop {
++    position: relative;
++}
++.yui-crop .yui-crop-mask {
++    position: absolute;
++    top: 0;
++    left: 0;
++    height: 100%;
++    width: 100%;
++}
++
++.yui-crop .yui-resize {
++    position: absolute;
++    top: 10px;
++    left: 10px;
++    border: 0;
++}
++
++.yui-crop .yui-crop-resize-mask {
++    position: absolute;
++    top: 0;
++    left: 0;
++    height: 100%;
++    width: 100%;
++    background-position: -10px -10px;
++    overflow: hidden;
++}
+diff --git a/pylons_app/public/js/yui/imagecropper/assets/skins/sam/imagecropper-skin.css b/pylons_app/public/js/yui/imagecropper/assets/skins/sam/imagecropper-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imagecropper/assets/skins/sam/imagecropper-skin.css
+@@ -0,0 +1,16 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-crop .yui-crop-mask {
++    background-color: #000;
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++
++.yui-skin-sam .yui-crop .yui-resize {
++    border: 1px dashed #fff;   
++}
++
+diff --git a/pylons_app/public/js/yui/imagecropper/assets/skins/sam/imagecropper.css b/pylons_app/public/js/yui/imagecropper/assets/skins/sam/imagecropper.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imagecropper/assets/skins/sam/imagecropper.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-crop{position:relative;}.yui-crop .yui-crop-mask{position:absolute;top:0;left:0;height:100%;width:100%;}.yui-crop .yui-resize{position:absolute;top:10px;left:10px;border:0;}.yui-crop .yui-crop-resize-mask{position:absolute;top:0;left:0;height:100%;width:100%;background-position:-10px -10px;overflow:hidden;}.yui-skin-sam .yui-crop .yui-crop-mask{background-color:#000;opacity:.5;filter:alpha(opacity=50);}.yui-skin-sam .yui-crop .yui-resize{border:1px dashed #fff;}
+diff --git a/pylons_app/public/js/yui/imagecropper/imagecropper-debug.js b/pylons_app/public/js/yui/imagecropper/imagecropper-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imagecropper/imagecropper-debug.js
+@@ -0,0 +1,907 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * @description <p>Creates a Image Cropper control.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, dragdrop, element, event, resize
++ * @module imagecropper
++ * @beta
++ */
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class ImageCropper
++     * @description <p>Creates a Image Cropper control.</p>
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The image element to make croppable.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    var Crop = function(el, config) {
++        YAHOO.log('Initializing', 'log', 'ImageCropper');
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        Crop.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all ImageCropper instances
++    * @type Object
++    */ 
++    Crop._instances = {};
++    /**
++    * @static
++    * @method getCropperById 
++    * @description Get's an ImageCropper object by the HTML id of the image associated with the ImageCropper object.
++    * @return {Object} The ImageCropper Object
++    */ 
++    Crop.getCropperById = function(id) {
++        if (Crop._instances[id]) {
++            return Crop._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(Crop, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property CSS_MAIN
++        * @description The CSS class used to wrap the element 
++        * @type String
++        */
++        CSS_MAIN: 'yui-crop',
++        /**
++        * @private
++        * @property CSS_MASK
++        * @description The CSS class for the mask element
++        * @type String
++        */
++        CSS_MASK: 'yui-crop-mask',
++        /**
++        * @private
++        * @property CSS_RESIZE_MASK
++        * @description The CSS class for the mask inside the resize element
++        * @type String
++        */
++        CSS_RESIZE_MASK: 'yui-crop-resize-mask',
++
++        /**
++        * @private
++        * @property _image
++        * @description The url of the image we are cropping
++        * @type String
++        */
++        _image: null,
++        /**
++        * @private
++        * @property _active
++        * @description Flag to determine if the crop region is active
++        * @type Boolean
++        */
++        _active: null,
++        /**
++        * @private
++        * @property _resize
++        * @description A reference to the Resize Utility used in this Cropper Instance
++        * @type Object
++        */
++        _resize: null,
++        /**
++        * @private
++        * @property _resizeEl
++        * @description The HTML Element used to create the Resize Oject
++        * @type HTMLElement
++        */
++        _resizeEl: null,
++        /**
++        * @private
++        * @property _resizeMaskEl
++        * @description The HTML Element used to create the Resize mask
++        * @type HTMLElement
++        */
++        _resizeMaskEl: null,
++        /**
++        * @private
++        * @property _wrap
++        * @description The HTML Element created to wrap the image
++        * @type HTMLElement
++        */
++        _wrap: null,
++        /**
++        * @private
++        * @property _mask
++        * @description The HTML Element created to "mask" the image being cropped
++        * @type HTMLElement
++        */
++        _mask: null,
++        /**
++        * @private
++        * @method _createWrap
++        * @description Creates the wrapper element used to wrap the image
++        */
++        _createWrap: function() {
++            YAHOO.log('Creating the wrap element', 'log', 'ImageCropper');
++            this._wrap = document.createElement('div');
++            this._wrap.id = this.get('element').id + '_wrap';
++            this._wrap.className = this.CSS_MAIN;
++            var el = this.get('element');
++            this._wrap.style.width = el.width ? el.width + 'px' : Dom.getStyle(el, 'width');
++            this._wrap.style.height = el.height ? el.height + 'px' : Dom.getStyle(el, 'height');
++            
++            var par = this.get('element').parentNode;
++            par.replaceChild(this._wrap, this.get('element'));
++            this._wrap.appendChild(this.get('element'));
++
++            Event.on(this._wrap, 'mouseover', this._handleMouseOver, this, true);
++            Event.on(this._wrap, 'mouseout', this._handleMouseOut, this, true);
++
++            Event.on(this._wrap, 'click', function(ev) { Event.stopEvent(ev); }, this, true);
++        },
++
++        /**
++        * @private
++        * @method _createMask
++        * @description Creates the mask element used to mask the image
++        */
++        _createMask: function() {
++            YAHOO.log('Creating the Mask', 'log', 'ImageCropper');
++            this._mask = document.createElement('div');
++            this._mask.className = this.CSS_MASK;
++            this._wrap.appendChild(this._mask);
++        },
++
++        /**
++        * @private
++        * @method _createResize
++        * @description Creates the resize element and the instance of the Resize Utility
++        */
++        _createResize: function() {
++            YAHOO.log('Creating the Resize element', 'log', 'ImageCropper');
++            this._resizeEl = document.createElement('div');
++            this._resizeEl.className = YAHOO.util.Resize.prototype.CSS_RESIZE;
++            this._resizeEl.style.position = 'absolute';
++            
++            this._resizeEl.innerHTML = '<div class="' + this.CSS_RESIZE_MASK + '"></div>';
++            this._resizeMaskEl = this._resizeEl.firstChild;
++            this._wrap.appendChild(this._resizeEl);
++            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
++            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
++            this._resizeMaskEl.style.height = Math.floor(this.get('initHeight')) + 'px';
++            this._resizeMaskEl.style.width = Math.floor(this.get('initWidth')) + 'px';
++
++            this._resize = new YAHOO.util.Resize(this._resizeEl, {
++                knobHandles: true,
++                handles: 'all',
++                draggable: true,
++                status: this.get('status'),
++                minWidth: this.get('minWidth'),
++                minHeight: this.get('minHeight'),
++                ratio: this.get('ratio'),
++                autoRatio: this.get('autoRatio'),
++                height: this.get('initHeight'),
++                width: this.get('initWidth')
++            });
++
++            this._setBackgroundImage(this.get('element').getAttribute('src', 2));
++            this._setBackgroundPosition(-(this.get('initialXY')[0]),  -(this.get('initialXY')[1]));
++
++            this._resize.on('startResize', this._handleStartResizeEvent, this, true);
++            this._resize.on('endResize', this._handleEndResizeEvent, this, true);
++            this._resize.on('dragEvent', this._handleDragEvent, this, true);
++            this._resize.on('beforeResize', this._handleBeforeResizeEvent, this, true);
++            this._resize.on('resize', this._handleResizeEvent, this, true);
++            this._resize.dd.on('b4StartDragEvent', this._handleB4DragEvent, this, true);
++        },
++
++        /**
++        * @private
++        * @method _handleMouseOver
++        * @description Handles the mouseover event
++        */
++        _handleMouseOver: function(ev) {
++            var evType = 'keydown';
++            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
++                evType = 'keypress';
++            }
++            if (!this._active) {
++                this._active = true;
++                if (this.get('useKeys')) {
++                    Event.on(document, evType, this._handleKeyPress, this, true);
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _handleMouseOut
++        * @description Handles the mouseout event
++        */
++        _handleMouseOut: function(ev) {
++            var evType = 'keydown';
++            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
++                evType = 'keypress';
++            }
++            this._active = false;
++            if (this.get('useKeys')) {
++                Event.removeListener(document, evType, this._handleKeyPress);
++            }
++        },
++
++        /**
++        * @private
++        * @method _moveEl
++        * @description Moves the resize element based on the arrow keys
++        */
++        _moveEl: function(dir, inc) {
++            YAHOO.log('Moving the element', 'log', 'ImageCropper');
++            var t = 0, l = 0,
++                region = this._setConstraints(),
++                resize = true;
++
++            switch (dir) {
++                case 'down':
++                    t = -(inc);
++                    if ((region.bottom - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.top = (region.top + region.bottom) + 'px';
++                    }
++                    break;
++                case 'up':
++                    t = (inc);
++                    if ((region.top - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.top = '0px';
++                    }
++                    break;
++                case 'right':
++                    l = -(inc);
++                    if ((region.right - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.left = (region.left + region.right) + 'px';
++                    }
++                    break;
++                case 'left':
++                    l = inc;
++                    if ((region.left - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.left = '0px';
++                    }
++                    break;
++            }
++
++            if (resize) {
++                YAHOO.log('Moving via Key Listener: ' + dir, 'log', 'ImageCropper');
++                this._resizeEl.style.left = (parseInt(this._resizeEl.style.left, 10) - l) + 'px';
++                this._resizeEl.style.top = (parseInt(this._resizeEl.style.top, 10) - t) + 'px';
++                this.fireEvent('moveEvent', { target: 'keypress' });
++            } else {
++                this._setConstraints();
++            }
++            this._syncBackgroundPosition();
++        },
++
++        /**
++        * @private
++        * @method _handleKeyPress
++        * @description Handles the keypress event
++        */
++        _handleKeyPress: function(ev) {
++            var kc = Event.getCharCode(ev),
++                stopEvent = false,
++                inc = ((ev.shiftKey) ? this.get('shiftKeyTick') : this.get('keyTick'));
++
++            switch (kc) {
++                case 0x25: // left
++                    this._moveEl('left', inc);
++                    stopEvent = true;
++                    break;
++                case 0x26: // up
++                    this._moveEl('up', inc);
++                    stopEvent = true;
++                    break;
++                case 0x27: // right
++                    this._moveEl('right', inc);
++                    stopEvent = true;
++                    break;
++                case 0x28: // down
++                    this._moveEl('down', inc);
++                    stopEvent = true;
++                    break;
++                default:
++            }
++            if (stopEvent) {
++                Event.preventDefault(ev);
++            }
++        },
++
++        /**
++        * @private
++        * @method _handleB4DragEvent
++        * @description Handles the DragDrop b4DragEvent event
++        */
++        _handleB4DragEvent: function() {
++            this._setConstraints();
++        },
++
++        /**
++        * @private
++        * @method _handleDragEvent
++        * @description Handles the DragDrop DragEvent event
++        */
++        _handleDragEvent: function() {
++            this._syncBackgroundPosition();
++            this.fireEvent('dragEvent', arguments);
++            this.fireEvent('moveEvent', { target: 'dragevent' });
++        },
++
++        /**
++        * @private
++        * @method _handleBeforeResizeEvent
++        * @description Handles the Resize Utilitys beforeResize event
++        */
++        _handleBeforeResizeEvent: function(args) {
++            var region = Dom.getRegion(this.get('element')),
++                c = this._resize._cache,
++                ch = this._resize._currentHandle, h = 0, w = 0;
++
++            if (args.top && (args.top < region.top)) {
++                h = (c.height + c.top) - region.top;
++                Dom.setY(this._resize.getWrapEl(), region.top);
++                this._resize.getWrapEl().style.height = h + 'px';
++                this._resize._cache.height = h;
++                this._resize._cache.top = region.top;
++                this._syncBackgroundPosition();
++                return false;
++            }
++            if (args.left && (args.left < region.left)) {
++                w = (c.width + c.left) - region.left;
++                Dom.setX(this._resize.getWrapEl(), region.left);
++                this._resize._cache.left = region.left;
++                this._resize.getWrapEl().style.width = w + 'px';
++                this._resize._cache.width = w;
++                this._syncBackgroundPosition();
++                return false;
++            }
++            if (ch != 'tl' && ch != 'l' && ch != 'bl') {
++                if (c.left && args.width && ((c.left + args.width) > region.right)) {
++                    w = (region.right - c.left);
++                    Dom.setX(this._resize.getWrapEl(), (region.right - w));
++                    this._resize.getWrapEl().style.width = w + 'px';
++                    this._resize._cache.left = (region.right - w);
++                    this._resize._cache.width = w;
++                    this._syncBackgroundPosition();
++                    return false;
++                }
++            }
++            if (ch != 't' && ch != 'tr' && ch != 'tl') {
++                if (c.top && args.height && ((c.top + args.height) > region.bottom)) {
++                    h = (region.bottom - c.top);
++                    Dom.setY(this._resize.getWrapEl(), (region.bottom - h));
++                    this._resize.getWrapEl().style.height = h + 'px';
++                    this._resize._cache.height = h;
++                    this._resize._cache.top = (region.bottom - h);
++                    this._syncBackgroundPosition();
++                    return false;
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _handleResizeMaskEl
++        * @description Resizes the inner mask element
++        */
++        _handleResizeMaskEl: function() {
++            var a = this._resize._cache;
++            this._resizeMaskEl.style.height = Math.floor(a.height) + 'px';
++            this._resizeMaskEl.style.width = Math.floor(a.width) + 'px';
++        },
++        /**
++        * @private
++        * @method _handleResizeEvent
++        * @param Event ev The Resize Utilitys resize event.
++        * @description Handles the Resize Utilitys Resize event
++        */
++        _handleResizeEvent: function(ev) {
++            this._setConstraints(true);
++            this._syncBackgroundPosition();
++            this.fireEvent('resizeEvent', arguments);
++            this.fireEvent('moveEvent', { target: 'resizeevent' });
++        },
++
++        /**
++        * @private
++        * @method _syncBackgroundPosition
++        * @description Syncs the packground position of the resize element with the resize elements top and left style position
++        */
++        _syncBackgroundPosition: function() {
++            this._handleResizeMaskEl();
++            this._setBackgroundPosition(-(parseInt(this._resizeEl.style.left, 10)), -(parseInt(this._resizeEl.style.top, 10)));
++        },
++
++        /**
++        * @private
++        * @method _setBackgroundPosition
++        * @param Number l The left position
++        * @param Number t The top position
++        * @description Sets the background image position to the top and left position
++        */
++        _setBackgroundPosition: function(l, t) {
++            //YAHOO.log('Setting the image background position of the mask to: (' + l + ', ' + t + ')', 'log', 'ImageCropper');
++            var bl = parseInt(Dom.getStyle(this._resize.get('element'), 'borderLeftWidth'), 10);
++            var bt = parseInt(Dom.getStyle(this._resize.get('element'), 'borderTopWidth'), 10);
++            if (isNaN(bl)) {
++                bl = 0;
++            }
++            if (isNaN(bt)) {
++                bt = 0;
++            }
++            var mask = this._resize.getWrapEl().firstChild;
++            var pos = (l - bl) + 'px ' + (t - bt) + 'px';
++            this._resizeMaskEl.style.backgroundPosition = pos;
++        },
++
++        /**
++        * @private
++        * @method _setBackgroundImage
++        * @param String url The url of the image
++        * @description Sets the background image of the resize element
++        */
++        _setBackgroundImage: function(url) {
++            YAHOO.log('Setting the background image', 'log', 'ImageCropper');
++            var mask = this._resize.getWrapEl().firstChild;
++            this._image = url;
++            mask.style.backgroundImage = 'url(' + url + '#)';
++        },
++        
++        /**
++        * @private
++        * @method _handleEndResizeEvent
++        * @description Handles the Resize Utilitys endResize event
++        */
++        _handleEndResizeEvent: function() {
++            this._setConstraints(true);
++        },
++        /**
++        * @private
++        * @method _handleStartResizeEvent
++        * @description Handles the Resize Utilitys startResize event
++        */
++        _handleStartResizeEvent: function() {
++            this._setConstraints(true);
++
++            var h = this._resize._cache.height,
++                 w = this._resize._cache.width,
++                 t = parseInt(this._resize.getWrapEl().style.top, 10),
++                 l = parseInt(this._resize.getWrapEl().style.left, 10),
++                 maxH = 0, maxW = 0;
++ 
++            switch (this._resize._currentHandle) {
++                case 'b':
++                    maxH = (h + this._resize.dd.bottomConstraint);
++                    break;
++                case 'l':
++                    maxW = (w + this._resize.dd.leftConstraint);
++                    break;
++                case 'r':
++                    maxH = (h + t);
++                    maxW = (w + this._resize.dd.rightConstraint);
++                    break;
++                 case 'br':
++                     maxH = (h + this._resize.dd.bottomConstraint);
++                     maxW = (w + this._resize.dd.rightConstraint);
++                     break;
++                 case 'tr':
++                     maxH = (h + t);
++                     maxW = (w + this._resize.dd.rightConstraint);
++                     break;
++
++             }
++            
++             if (maxH) {
++                YAHOO.log('Setting the maxHeight on the resize object to: ' + maxH, 'log', 'ImageCropper');
++                 //this._resize.set('maxHeight', maxH);
++             }
++             if (maxW) {
++                YAHOO.log('Setting the maxWidth on the resize object to: ' + maxW, 'log', 'ImageCropper');
++                 //this._resize.set('maxWidth', maxW);
++             }
++
++            this.fireEvent('startResizeEvent', arguments);
++        },
++        
++        /**
++        * @private
++        * @method _setConstraints
++        * @param Boolean inside Used when called from inside a resize event, false by default (dragging)
++        * @description Set the DragDrop constraints to keep the element inside the crop area.
++        * @return {Object} Object containing Top, Right, Bottom and Left constraints
++        */
++        _setConstraints: function(inside) {
++            YAHOO.log('Setting Contraints', 'log', 'ImageCropper');
++            var resize = this._resize;
++            resize.dd.resetConstraints();
++            var height = parseInt(resize.get('height'), 10),
++                width = parseInt(resize.get('width'), 10);
++            if (inside) {
++                //Called from inside the resize callback
++                height = resize._cache.height;
++                width = resize._cache.width;
++            }
++
++            //Get the top, right, bottom and left positions
++            var region = Dom.getRegion(this.get('element'));
++            //Get the element we are working on
++            var el = resize.getWrapEl();
++
++            //Get the xy position of it
++            var xy = Dom.getXY(el);
++
++            //Set left to x minus left
++            var left = xy[0] - region.left;
++
++            //Set right to right minus x minus width
++            var right = region.right - xy[0] - width;
++
++            //Set top to y minus top
++            var top = xy[1] - region.top;
++
++            //Set bottom to bottom minus y minus height
++            var bottom = region.bottom - xy[1] - height;
++
++            if (top < 0) {
++                top = 0;
++            }
++            
++            resize.dd.setXConstraint(left, right); 
++            resize.dd.setYConstraint(top, bottom);
++            YAHOO.log('Constraints: ' + top + ',' + right + ',' + bottom + ',' + left, 'log', 'ImageCropper');
++
++            return {
++                top: top,
++                right: right,
++                bottom: bottom,
++                left: left
++            };
++
++            
++            
++        },
++        /**
++        * @method getCropCoords
++        * @description Returns the coordinates needed to crop the image
++        * @return {Object} The top, left, height, width and image url of the image being cropped
++        */
++        getCropCoords: function() {
++            var coords = {
++                top: parseInt(this._resize.getWrapEl().style.top, 10),
++                left: parseInt(this._resize.getWrapEl().style.left, 10),
++                height: this._resize._cache.height,
++                width: this._resize._cache.width,
++                image: this._image
++            };
++            YAHOO.log('Getting the crop coordinates: ' + Lang.dump(coords), 'log', 'ImageCropper');
++            return coords;
++        },
++        /**
++        * @method reset
++        * @description Resets the crop element back to it's original position
++        * @return {<a href="YAHOO.widget.ImageCropper.html">YAHOO.widget.ImageCropper</a>} The ImageCropper instance
++        */
++        reset: function() {
++            YAHOO.log('Resetting the control', 'log', 'ImageCropper');
++            this._resize.resize(null, this.get('initHeight'), this.get('initWidth'), 0, 0, true);
++            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
++            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
++            this._syncBackgroundPosition();
++            return this;
++        },
++
++        /**
++        * @method getEl
++        * @description Get the HTML reference for the image element.
++        * @return {HTMLElement} The image element
++        */      
++        getEl: function() {
++            return this.get('element');
++        },
++        /**
++        * @method getResizeEl
++        * @description Get the HTML reference for the resize element.
++        * @return {HTMLElement} The resize element
++        */      
++        getResizeEl: function() {
++            return this._resizeEl;
++        },
++        /**
++        * @method getWrapEl
++        * @description Get the HTML reference for the wrap element.
++        * @return {HTMLElement} The wrap element
++        */      
++        getWrapEl: function() {
++            return this._wrap;
++        },
++
++        /**
++        * @method getMaskEl
++        * @description Get the HTML reference for the mask element.
++        * @return {HTMLElement} The mask element
++        */      
++        getMaskEl: function() {
++            return this._mask;
++        },
++
++        /**
++        * @method getResizeMaskEl
++        * @description Get the HTML reference for the resizable object's mask element.
++        * @return {HTMLElement} The resize objects mask element.
++        */      
++        getResizeMaskEl: function() {
++            return this._resizeMaskEl;
++        },
++
++        /**
++        * @method getResizeObject
++        * @description Get the Resize Utility object.
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */      
++        getResizeObject: function() {
++            return this._resize;
++        },
++
++        /** 
++        * @private
++        * @method init
++        * @description The ImageCropper class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'ImageCropper');
++            Crop.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            var id = p_oElement;
++
++            if (!Lang.isString(id)) {
++                if (id.tagName && (id.tagName.toLowerCase() == 'img')) {
++                    id = Dom.generateId(id);                    
++                } else {
++                    YAHOO.log('Element is not an image.', 'error', 'ImageCropper');
++                    return false;
++                }
++            } else {
++                var el = Dom.get(id);
++                if (el.tagName && el.tagName.toLowerCase() == 'img') {
++                    //All good
++                } else {
++                    YAHOO.log('Element is not an image.', 'error', 'ImageCropper');
++                    return false;
++                }
++            }
++            
++
++
++            Crop._instances[id] = this;
++            this._createWrap();
++            this._createMask();
++            this._createResize();
++            this._setConstraints();
++
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create a croppable element.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the widget.
++        */      
++
++        initAttributes: function(attr) {
++            Crop.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @attribute initialXY
++            * @description Array of the XY position that we need to set the crop element to when we build it. Defaults to [10, 10]
++            * @type Array
++            */
++            this.setAttributeConfig('initialXY', {
++                writeOnce: true,
++                validator: YAHOO.lang.isArray,
++                value: attr.initialXY || [10, 10]
++            });
++            /**
++            * @attribute keyTick
++            * @description The pixel tick for the arrow keys, defaults to 1
++            * @type Number
++            */
++            this.setAttributeConfig('keyTick', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.keyTick || 1
++            });
++
++            /**
++            * @attribute shiftKeyTick
++            * @description The pixel tick for shift + the arrow keys, defaults to 10
++            * @type Number
++            */
++            this.setAttributeConfig('shiftKeyTick', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.shiftKeyTick || 10
++            });
++
++            /**
++            * @attribute useKeys
++            * @description Should we use the Arrow keys to position the crop element, defaults to true
++            * @type Boolean
++            */
++            this.setAttributeConfig('useKeys', {
++                validator: YAHOO.lang.isBoolean,
++                value: ((attr.useKeys === false) ? false : true)
++            });
++
++            /**
++            * @attribute status
++            * @description Show the Resize Utility status, defaults to true
++            * @type Boolean
++            */
++            this.setAttributeConfig('status', {
++                validator: YAHOO.lang.isBoolean,
++                value: ((attr.status === false) ? false : true),
++                method: function(status) {
++                    if (this._resize) {
++                        this._resize.set('status', status);
++                    }
++                }
++            });
++
++            /**
++            * @attribute minHeight
++            * @description MinHeight of the crop area, default 50
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.minHeight || 50,
++                method: function(h) {
++                    if (this._resize) {
++                        this._resize.set('minHeight', h);
++                    }
++                }
++            });
++
++            /**
++            * @attribute minWidth
++            * @description MinWidth of the crop area, default 50.
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.minWidth || 50,
++                method: function(w) {
++                    if (this._resize) {
++                        this._resize.set('minWidth', w);
++                    }
++                }
++            });
++
++            /**
++            * @attribute ratio
++            * @description Set the ratio config option of the Resize Utlility, default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('ratio', {
++                validator: YAHOO.lang.isBoolean,
++                value: attr.ratio || false,
++                method: function(r) {
++                    if (this._resize) {
++                        this._resize.set('ratio', r);
++                    }
++                }
++            });
++
++            /**
++            * @attribute ratio
++            * @description Set the autoRatio config option of the Resize Utlility, default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('autoRatio', {
++                validator: YAHOO.lang.isBoolean,
++                value: ((attr.autoRatio === false) ? false : true),
++                method: function(a) {
++                    if (this._resize) {
++                        this._resize.set('autoRatio', a);
++                    }
++                }
++            });
++
++            /**
++            * @attribute initHeight
++            * @description Set the initlal height of the crop area, defaults to 1/4 of the image height
++            * @type Number
++            */
++            this.setAttributeConfig('initHeight', {
++                writeOnce: true,
++                validator: YAHOO.lang.isNumber,
++                value: attr.initHeight || (this.get('element').height / 4)
++            });
++
++            /**
++            * @attribute initWidth
++            * @description Set the initlal width of the crop area, defaults to 1/4 of the image width
++            * @type Number
++            */
++            this.setAttributeConfig('initWidth', {
++                validator: YAHOO.lang.isNumber,
++                writeOnce: true,
++                value: attr.initWidth || (this.get('element').width / 4)
++            });
++
++        },
++        /**
++        * @method destroy
++        * @description Destroys the ImageCropper object and all of it's elements & listeners.
++        */        
++        destroy: function() {
++            YAHOO.log('Destroying the ImageCropper', 'info', 'ImageCropper');
++            this._resize.destroy();
++            this._resizeEl.parentNode.removeChild(this._resizeEl);
++            this._mask.parentNode.removeChild(this._mask);
++            Event.purgeElement(this._wrap);
++            this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
++            
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }
++                       
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the ImageCropper Object.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'ImageCropper (#' + this.get('id') + ')';
++            }
++            return 'Image Cropper';
++        }
++    });
++
++    YAHOO.widget.ImageCropper = Crop;
++
++/**
++* @event dragEvent
++* @description Fires when the DragDrop dragEvent
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event startResizeEvent
++* @description Fires when when a resize action is started.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event resizeEvent
++* @description Fires on every element resize.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event moveEvent
++* @description Fires on every element move. Inside these methods: _handleKeyPress, _handleDragEvent, _handleResizeEvent
++* @type YAHOO.util.CustomEvent
++*/
++
++})();
++
++YAHOO.register("imagecropper", YAHOO.widget.ImageCropper, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/imagecropper/imagecropper-min.js b/pylons_app/public/js/yui/imagecropper/imagecropper-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imagecropper/imagecropper-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F,E){var G={element:F,attributes:E||{}};B.superclass.constructor.call(this,G.element,G.attributes);};B._instances={};B.getCropperById=function(E){if(B._instances[E]){return B._instances[E];}return false;};YAHOO.extend(B,YAHOO.util.Element,{CSS_MAIN:"yui-crop",CSS_MASK:"yui-crop-mask",CSS_RESIZE_MASK:"yui-crop-resize-mask",_image:null,_active:null,_resize:null,_resizeEl:null,_resizeMaskEl:null,_wrap:null,_mask:null,_createWrap:function(){this._wrap=document.createElement("div");this._wrap.id=this.get("element").id+"_wrap";this._wrap.className=this.CSS_MAIN;var F=this.get("element");this._wrap.style.width=F.width?F.width+"px":C.getStyle(F,"width");this._wrap.style.height=F.height?F.height+"px":C.getStyle(F,"height");var E=this.get("element").parentNode;E.replaceChild(this._wrap,this.get("element"));this._wrap.appendChild(this.get("element"));A.on(this._wrap,"mouseover",this._handleMouseOver,this,true);A.on(this._wrap,"mouseout",this._handleMouseOut,this,true);A.on(this._wrap,"click",function(G){A.stopEvent(G);},this,true);},_createMask:function(){this._mask=document.createElement("div");this._mask.className=this.CSS_MASK;this._wrap.appendChild(this._mask);},_createResize:function(){this._resizeEl=document.createElement("div");this._resizeEl.className=YAHOO.util.Resize.prototype.CSS_RESIZE;this._resizeEl.style.position="absolute";this._resizeEl.innerHTML='<div class="'+this.CSS_RESIZE_MASK+'"></div>';this._resizeMaskEl=this._resizeEl.firstChild;this._wrap.appendChild(this._resizeEl);this._resizeEl.style.top=this.get("initialXY")[1]+"px";this._resizeEl.style.left=this.get("initialXY")[0]+"px";this._resizeMaskEl.style.height=Math.floor(this.get("initHeight"))+"px";this._resizeMaskEl.style.width=Math.floor(this.get("initWidth"))+"px";this._resize=new YAHOO.util.Resize(this._resizeEl,{knobHandles:true,handles:"all",draggable:true,status:this.get("status"),minWidth:this.get("minWidth"),minHeight:this.get("minHeight"),ratio:this.get("ratio"),autoRatio:this.get("autoRatio"),height:this.get("initHeight"),width:this.get("initWidth")});this._setBackgroundImage(this.get("element").getAttribute("src",2));this._setBackgroundPosition(-(this.get("initialXY")[0]),-(this.get("initialXY")[1]));this._resize.on("startResize",this._handleStartResizeEvent,this,true);this._resize.on("endResize",this._handleEndResizeEvent,this,true);this._resize.on("dragEvent",this._handleDragEvent,this,true);this._resize.on("beforeResize",this._handleBeforeResizeEvent,this,true);this._resize.on("resize",this._handleResizeEvent,this,true);this._resize.dd.on("b4StartDragEvent",this._handleB4DragEvent,this,true);},_handleMouseOver:function(F){var E="keydown";if(YAHOO.env.ua.gecko||YAHOO.env.ua.opera){E="keypress";}if(!this._active){this._active=true;if(this.get("useKeys")){A.on(document,E,this._handleKeyPress,this,true);}}},_handleMouseOut:function(F){var E="keydown";if(YAHOO.env.ua.gecko||YAHOO.env.ua.opera){E="keypress";}this._active=false;if(this.get("useKeys")){A.removeListener(document,E,this._handleKeyPress);}},_moveEl:function(G,J){var H=0,E=0,I=this._setConstraints(),F=true;switch(G){case"down":H=-(J);if((I.bottom-J)<0){F=false;this._resizeEl.style.top=(I.top+I.bottom)+"px";}break;case"up":H=(J);if((I.top-J)<0){F=false;this._resizeEl.style.top="0px";}break;case"right":E=-(J);if((I.right-J)<0){F=false;this._resizeEl.style.left=(I.left+I.right)+"px";}break;case"left":E=J;if((I.left-J)<0){F=false;this._resizeEl.style.left="0px";}break;}if(F){this._resizeEl.style.left=(parseInt(this._resizeEl.style.left,10)-E)+"px";this._resizeEl.style.top=(parseInt(this._resizeEl.style.top,10)-H)+"px";this.fireEvent("moveEvent",{target:"keypress"});}else{this._setConstraints();}this._syncBackgroundPosition();},_handleKeyPress:function(G){var E=A.getCharCode(G),F=false,H=((G.shiftKey)?this.get("shiftKeyTick"):this.get("keyTick"));switch(E){case 37:this._moveEl("left",H);F=true;break;case 38:this._moveEl("up",H);F=true;break;case 39:this._moveEl("right",H);F=true;break;case 40:this._moveEl("down",H);F=true;break;default:}if(F){A.preventDefault(G);}},_handleB4DragEvent:function(){this._setConstraints();},_handleDragEvent:function(){this._syncBackgroundPosition();this.fireEvent("dragEvent",arguments);this.fireEvent("moveEvent",{target:"dragevent"});},_handleBeforeResizeEvent:function(F){var I=C.getRegion(this.get("element")),J=this._resize._cache,H=this._resize._currentHandle,G=0,E=0;if(F.top&&(F.top<I.top)){G=(J.height+J.top)-I.top;C.setY(this._resize.getWrapEl(),I.top);this._resize.getWrapEl().style.height=G+"px";this._resize._cache.height=G;this._resize._cache.top=I.top;this._syncBackgroundPosition();return false;}if(F.left&&(F.left<I.left)){E=(J.width+J.left)-I.left;C.setX(this._resize.getWrapEl(),I.left);this._resize._cache.left=I.left;this._resize.getWrapEl().style.width=E+"px";this._resize._cache.width=E;this._syncBackgroundPosition();return false;}if(H!="tl"&&H!="l"&&H!="bl"){if(J.left&&F.width&&((J.left+F.width)>I.right)){E=(I.right-J.left);C.setX(this._resize.getWrapEl(),(I.right-E));this._resize.getWrapEl().style.width=E+"px";this._resize._cache.left=(I.right-E);this._resize._cache.width=E;this._syncBackgroundPosition();return false;}}if(H!="t"&&H!="tr"&&H!="tl"){if(J.top&&F.height&&((J.top+F.height)>I.bottom)){G=(I.bottom-J.top);C.setY(this._resize.getWrapEl(),(I.bottom-G));this._resize.getWrapEl().style.height=G+"px";this._resize._cache.height=G;this._resize._cache.top=(I.bottom-G);this._syncBackgroundPosition();return false;}}},_handleResizeMaskEl:function(){var E=this._resize._cache;this._resizeMaskEl.style.height=Math.floor(E.height)+"px";this._resizeMaskEl.style.width=Math.floor(E.width)+"px";},_handleResizeEvent:function(E){this._setConstraints(true);this._syncBackgroundPosition();this.fireEvent("resizeEvent",arguments);this.fireEvent("moveEvent",{target:"resizeevent"});},_syncBackgroundPosition:function(){this._handleResizeMaskEl();this._setBackgroundPosition(-(parseInt(this._resizeEl.style.left,10)),-(parseInt(this._resizeEl.style.top,10)));
++},_setBackgroundPosition:function(F,H){var J=parseInt(C.getStyle(this._resize.get("element"),"borderLeftWidth"),10);var G=parseInt(C.getStyle(this._resize.get("element"),"borderTopWidth"),10);if(isNaN(J)){J=0;}if(isNaN(G)){G=0;}var E=this._resize.getWrapEl().firstChild;var I=(F-J)+"px "+(H-G)+"px";this._resizeMaskEl.style.backgroundPosition=I;},_setBackgroundImage:function(F){var E=this._resize.getWrapEl().firstChild;this._image=F;E.style.backgroundImage="url("+F+"#)";},_handleEndResizeEvent:function(){this._setConstraints(true);},_handleStartResizeEvent:function(){this._setConstraints(true);var I=this._resize._cache.height,F=this._resize._cache.width,H=parseInt(this._resize.getWrapEl().style.top,10),E=parseInt(this._resize.getWrapEl().style.left,10),G=0,J=0;switch(this._resize._currentHandle){case"b":G=(I+this._resize.dd.bottomConstraint);break;case"l":J=(F+this._resize.dd.leftConstraint);break;case"r":G=(I+H);J=(F+this._resize.dd.rightConstraint);break;case"br":G=(I+this._resize.dd.bottomConstraint);J=(F+this._resize.dd.rightConstraint);break;case"tr":G=(I+H);J=(F+this._resize.dd.rightConstraint);break;}if(G){}if(J){}this.fireEvent("startResizeEvent",arguments);},_setConstraints:function(J){var H=this._resize;H.dd.resetConstraints();var N=parseInt(H.get("height"),10),F=parseInt(H.get("width"),10);if(J){N=H._cache.height;F=H._cache.width;}var L=C.getRegion(this.get("element"));var G=H.getWrapEl();var O=C.getXY(G);var I=O[0]-L.left;var M=L.right-O[0]-F;var K=O[1]-L.top;var E=L.bottom-O[1]-N;if(K<0){K=0;}H.dd.setXConstraint(I,M);H.dd.setYConstraint(K,E);return{top:K,right:M,bottom:E,left:I};},getCropCoords:function(){var E={top:parseInt(this._resize.getWrapEl().style.top,10),left:parseInt(this._resize.getWrapEl().style.left,10),height:this._resize._cache.height,width:this._resize._cache.width,image:this._image};return E;},reset:function(){this._resize.resize(null,this.get("initHeight"),this.get("initWidth"),0,0,true);this._resizeEl.style.top=this.get("initialXY")[1]+"px";this._resizeEl.style.left=this.get("initialXY")[0]+"px";this._syncBackgroundPosition();return this;},getEl:function(){return this.get("element");},getResizeEl:function(){return this._resizeEl;},getWrapEl:function(){return this._wrap;},getMaskEl:function(){return this._mask;},getResizeMaskEl:function(){return this._resizeMaskEl;},getResizeObject:function(){return this._resize;},init:function(G,E){B.superclass.init.call(this,G,E);var H=G;if(!D.isString(H)){if(H.tagName&&(H.tagName.toLowerCase()=="img")){H=C.generateId(H);}else{return false;}}else{var F=C.get(H);if(F.tagName&&F.tagName.toLowerCase()=="img"){}else{return false;}}B._instances[H]=this;this._createWrap();this._createMask();this._createResize();this._setConstraints();},initAttributes:function(E){B.superclass.initAttributes.call(this,E);this.setAttributeConfig("initialXY",{writeOnce:true,validator:YAHOO.lang.isArray,value:E.initialXY||[10,10]});this.setAttributeConfig("keyTick",{validator:YAHOO.lang.isNumber,value:E.keyTick||1});this.setAttributeConfig("shiftKeyTick",{validator:YAHOO.lang.isNumber,value:E.shiftKeyTick||10});this.setAttributeConfig("useKeys",{validator:YAHOO.lang.isBoolean,value:((E.useKeys===false)?false:true)});this.setAttributeConfig("status",{validator:YAHOO.lang.isBoolean,value:((E.status===false)?false:true),method:function(F){if(this._resize){this._resize.set("status",F);}}});this.setAttributeConfig("minHeight",{validator:YAHOO.lang.isNumber,value:E.minHeight||50,method:function(F){if(this._resize){this._resize.set("minHeight",F);}}});this.setAttributeConfig("minWidth",{validator:YAHOO.lang.isNumber,value:E.minWidth||50,method:function(F){if(this._resize){this._resize.set("minWidth",F);}}});this.setAttributeConfig("ratio",{validator:YAHOO.lang.isBoolean,value:E.ratio||false,method:function(F){if(this._resize){this._resize.set("ratio",F);}}});this.setAttributeConfig("autoRatio",{validator:YAHOO.lang.isBoolean,value:((E.autoRatio===false)?false:true),method:function(F){if(this._resize){this._resize.set("autoRatio",F);}}});this.setAttributeConfig("initHeight",{writeOnce:true,validator:YAHOO.lang.isNumber,value:E.initHeight||(this.get("element").height/4)});this.setAttributeConfig("initWidth",{validator:YAHOO.lang.isNumber,writeOnce:true,value:E.initWidth||(this.get("element").width/4)});},destroy:function(){this._resize.destroy();this._resizeEl.parentNode.removeChild(this._resizeEl);this._mask.parentNode.removeChild(this._mask);A.purgeElement(this._wrap);this._wrap.parentNode.replaceChild(this.get("element"),this._wrap);for(var E in this){if(D.hasOwnProperty(this,E)){this[E]=null;}}},toString:function(){if(this.get){return"ImageCropper (#"+this.get("id")+")";}return"Image Cropper";}});YAHOO.widget.ImageCropper=B;})();YAHOO.register("imagecropper",YAHOO.widget.ImageCropper,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/imagecropper/imagecropper.js b/pylons_app/public/js/yui/imagecropper/imagecropper.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imagecropper/imagecropper.js
+@@ -0,0 +1,889 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * @description <p>Creates a Image Cropper control.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, dragdrop, element, event, resize
++ * @module imagecropper
++ * @beta
++ */
++(function() {
++var Dom = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class ImageCropper
++     * @description <p>Creates a Image Cropper control.</p>
++     * @extends YAHOO.util.Element
++     * @param {String/HTMLElement} el The image element to make croppable.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++    var Crop = function(el, config) {
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        Crop.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all ImageCropper instances
++    * @type Object
++    */ 
++    Crop._instances = {};
++    /**
++    * @static
++    * @method getCropperById 
++    * @description Get's an ImageCropper object by the HTML id of the image associated with the ImageCropper object.
++    * @return {Object} The ImageCropper Object
++    */ 
++    Crop.getCropperById = function(id) {
++        if (Crop._instances[id]) {
++            return Crop._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(Crop, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property CSS_MAIN
++        * @description The CSS class used to wrap the element 
++        * @type String
++        */
++        CSS_MAIN: 'yui-crop',
++        /**
++        * @private
++        * @property CSS_MASK
++        * @description The CSS class for the mask element
++        * @type String
++        */
++        CSS_MASK: 'yui-crop-mask',
++        /**
++        * @private
++        * @property CSS_RESIZE_MASK
++        * @description The CSS class for the mask inside the resize element
++        * @type String
++        */
++        CSS_RESIZE_MASK: 'yui-crop-resize-mask',
++
++        /**
++        * @private
++        * @property _image
++        * @description The url of the image we are cropping
++        * @type String
++        */
++        _image: null,
++        /**
++        * @private
++        * @property _active
++        * @description Flag to determine if the crop region is active
++        * @type Boolean
++        */
++        _active: null,
++        /**
++        * @private
++        * @property _resize
++        * @description A reference to the Resize Utility used in this Cropper Instance
++        * @type Object
++        */
++        _resize: null,
++        /**
++        * @private
++        * @property _resizeEl
++        * @description The HTML Element used to create the Resize Oject
++        * @type HTMLElement
++        */
++        _resizeEl: null,
++        /**
++        * @private
++        * @property _resizeMaskEl
++        * @description The HTML Element used to create the Resize mask
++        * @type HTMLElement
++        */
++        _resizeMaskEl: null,
++        /**
++        * @private
++        * @property _wrap
++        * @description The HTML Element created to wrap the image
++        * @type HTMLElement
++        */
++        _wrap: null,
++        /**
++        * @private
++        * @property _mask
++        * @description The HTML Element created to "mask" the image being cropped
++        * @type HTMLElement
++        */
++        _mask: null,
++        /**
++        * @private
++        * @method _createWrap
++        * @description Creates the wrapper element used to wrap the image
++        */
++        _createWrap: function() {
++            this._wrap = document.createElement('div');
++            this._wrap.id = this.get('element').id + '_wrap';
++            this._wrap.className = this.CSS_MAIN;
++            var el = this.get('element');
++            this._wrap.style.width = el.width ? el.width + 'px' : Dom.getStyle(el, 'width');
++            this._wrap.style.height = el.height ? el.height + 'px' : Dom.getStyle(el, 'height');
++            
++            var par = this.get('element').parentNode;
++            par.replaceChild(this._wrap, this.get('element'));
++            this._wrap.appendChild(this.get('element'));
++
++            Event.on(this._wrap, 'mouseover', this._handleMouseOver, this, true);
++            Event.on(this._wrap, 'mouseout', this._handleMouseOut, this, true);
++
++            Event.on(this._wrap, 'click', function(ev) { Event.stopEvent(ev); }, this, true);
++        },
++
++        /**
++        * @private
++        * @method _createMask
++        * @description Creates the mask element used to mask the image
++        */
++        _createMask: function() {
++            this._mask = document.createElement('div');
++            this._mask.className = this.CSS_MASK;
++            this._wrap.appendChild(this._mask);
++        },
++
++        /**
++        * @private
++        * @method _createResize
++        * @description Creates the resize element and the instance of the Resize Utility
++        */
++        _createResize: function() {
++            this._resizeEl = document.createElement('div');
++            this._resizeEl.className = YAHOO.util.Resize.prototype.CSS_RESIZE;
++            this._resizeEl.style.position = 'absolute';
++            
++            this._resizeEl.innerHTML = '<div class="' + this.CSS_RESIZE_MASK + '"></div>';
++            this._resizeMaskEl = this._resizeEl.firstChild;
++            this._wrap.appendChild(this._resizeEl);
++            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
++            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
++            this._resizeMaskEl.style.height = Math.floor(this.get('initHeight')) + 'px';
++            this._resizeMaskEl.style.width = Math.floor(this.get('initWidth')) + 'px';
++
++            this._resize = new YAHOO.util.Resize(this._resizeEl, {
++                knobHandles: true,
++                handles: 'all',
++                draggable: true,
++                status: this.get('status'),
++                minWidth: this.get('minWidth'),
++                minHeight: this.get('minHeight'),
++                ratio: this.get('ratio'),
++                autoRatio: this.get('autoRatio'),
++                height: this.get('initHeight'),
++                width: this.get('initWidth')
++            });
++
++            this._setBackgroundImage(this.get('element').getAttribute('src', 2));
++            this._setBackgroundPosition(-(this.get('initialXY')[0]),  -(this.get('initialXY')[1]));
++
++            this._resize.on('startResize', this._handleStartResizeEvent, this, true);
++            this._resize.on('endResize', this._handleEndResizeEvent, this, true);
++            this._resize.on('dragEvent', this._handleDragEvent, this, true);
++            this._resize.on('beforeResize', this._handleBeforeResizeEvent, this, true);
++            this._resize.on('resize', this._handleResizeEvent, this, true);
++            this._resize.dd.on('b4StartDragEvent', this._handleB4DragEvent, this, true);
++        },
++
++        /**
++        * @private
++        * @method _handleMouseOver
++        * @description Handles the mouseover event
++        */
++        _handleMouseOver: function(ev) {
++            var evType = 'keydown';
++            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
++                evType = 'keypress';
++            }
++            if (!this._active) {
++                this._active = true;
++                if (this.get('useKeys')) {
++                    Event.on(document, evType, this._handleKeyPress, this, true);
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _handleMouseOut
++        * @description Handles the mouseout event
++        */
++        _handleMouseOut: function(ev) {
++            var evType = 'keydown';
++            if (YAHOO.env.ua.gecko || YAHOO.env.ua.opera) {
++                evType = 'keypress';
++            }
++            this._active = false;
++            if (this.get('useKeys')) {
++                Event.removeListener(document, evType, this._handleKeyPress);
++            }
++        },
++
++        /**
++        * @private
++        * @method _moveEl
++        * @description Moves the resize element based on the arrow keys
++        */
++        _moveEl: function(dir, inc) {
++            var t = 0, l = 0,
++                region = this._setConstraints(),
++                resize = true;
++
++            switch (dir) {
++                case 'down':
++                    t = -(inc);
++                    if ((region.bottom - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.top = (region.top + region.bottom) + 'px';
++                    }
++                    break;
++                case 'up':
++                    t = (inc);
++                    if ((region.top - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.top = '0px';
++                    }
++                    break;
++                case 'right':
++                    l = -(inc);
++                    if ((region.right - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.left = (region.left + region.right) + 'px';
++                    }
++                    break;
++                case 'left':
++                    l = inc;
++                    if ((region.left - inc) < 0) {
++                        resize = false;
++                        this._resizeEl.style.left = '0px';
++                    }
++                    break;
++            }
++
++            if (resize) {
++                this._resizeEl.style.left = (parseInt(this._resizeEl.style.left, 10) - l) + 'px';
++                this._resizeEl.style.top = (parseInt(this._resizeEl.style.top, 10) - t) + 'px';
++                this.fireEvent('moveEvent', { target: 'keypress' });
++            } else {
++                this._setConstraints();
++            }
++            this._syncBackgroundPosition();
++        },
++
++        /**
++        * @private
++        * @method _handleKeyPress
++        * @description Handles the keypress event
++        */
++        _handleKeyPress: function(ev) {
++            var kc = Event.getCharCode(ev),
++                stopEvent = false,
++                inc = ((ev.shiftKey) ? this.get('shiftKeyTick') : this.get('keyTick'));
++
++            switch (kc) {
++                case 0x25: // left
++                    this._moveEl('left', inc);
++                    stopEvent = true;
++                    break;
++                case 0x26: // up
++                    this._moveEl('up', inc);
++                    stopEvent = true;
++                    break;
++                case 0x27: // right
++                    this._moveEl('right', inc);
++                    stopEvent = true;
++                    break;
++                case 0x28: // down
++                    this._moveEl('down', inc);
++                    stopEvent = true;
++                    break;
++                default:
++            }
++            if (stopEvent) {
++                Event.preventDefault(ev);
++            }
++        },
++
++        /**
++        * @private
++        * @method _handleB4DragEvent
++        * @description Handles the DragDrop b4DragEvent event
++        */
++        _handleB4DragEvent: function() {
++            this._setConstraints();
++        },
++
++        /**
++        * @private
++        * @method _handleDragEvent
++        * @description Handles the DragDrop DragEvent event
++        */
++        _handleDragEvent: function() {
++            this._syncBackgroundPosition();
++            this.fireEvent('dragEvent', arguments);
++            this.fireEvent('moveEvent', { target: 'dragevent' });
++        },
++
++        /**
++        * @private
++        * @method _handleBeforeResizeEvent
++        * @description Handles the Resize Utilitys beforeResize event
++        */
++        _handleBeforeResizeEvent: function(args) {
++            var region = Dom.getRegion(this.get('element')),
++                c = this._resize._cache,
++                ch = this._resize._currentHandle, h = 0, w = 0;
++
++            if (args.top && (args.top < region.top)) {
++                h = (c.height + c.top) - region.top;
++                Dom.setY(this._resize.getWrapEl(), region.top);
++                this._resize.getWrapEl().style.height = h + 'px';
++                this._resize._cache.height = h;
++                this._resize._cache.top = region.top;
++                this._syncBackgroundPosition();
++                return false;
++            }
++            if (args.left && (args.left < region.left)) {
++                w = (c.width + c.left) - region.left;
++                Dom.setX(this._resize.getWrapEl(), region.left);
++                this._resize._cache.left = region.left;
++                this._resize.getWrapEl().style.width = w + 'px';
++                this._resize._cache.width = w;
++                this._syncBackgroundPosition();
++                return false;
++            }
++            if (ch != 'tl' && ch != 'l' && ch != 'bl') {
++                if (c.left && args.width && ((c.left + args.width) > region.right)) {
++                    w = (region.right - c.left);
++                    Dom.setX(this._resize.getWrapEl(), (region.right - w));
++                    this._resize.getWrapEl().style.width = w + 'px';
++                    this._resize._cache.left = (region.right - w);
++                    this._resize._cache.width = w;
++                    this._syncBackgroundPosition();
++                    return false;
++                }
++            }
++            if (ch != 't' && ch != 'tr' && ch != 'tl') {
++                if (c.top && args.height && ((c.top + args.height) > region.bottom)) {
++                    h = (region.bottom - c.top);
++                    Dom.setY(this._resize.getWrapEl(), (region.bottom - h));
++                    this._resize.getWrapEl().style.height = h + 'px';
++                    this._resize._cache.height = h;
++                    this._resize._cache.top = (region.bottom - h);
++                    this._syncBackgroundPosition();
++                    return false;
++                }
++            }
++        },
++        /**
++        * @private
++        * @method _handleResizeMaskEl
++        * @description Resizes the inner mask element
++        */
++        _handleResizeMaskEl: function() {
++            var a = this._resize._cache;
++            this._resizeMaskEl.style.height = Math.floor(a.height) + 'px';
++            this._resizeMaskEl.style.width = Math.floor(a.width) + 'px';
++        },
++        /**
++        * @private
++        * @method _handleResizeEvent
++        * @param Event ev The Resize Utilitys resize event.
++        * @description Handles the Resize Utilitys Resize event
++        */
++        _handleResizeEvent: function(ev) {
++            this._setConstraints(true);
++            this._syncBackgroundPosition();
++            this.fireEvent('resizeEvent', arguments);
++            this.fireEvent('moveEvent', { target: 'resizeevent' });
++        },
++
++        /**
++        * @private
++        * @method _syncBackgroundPosition
++        * @description Syncs the packground position of the resize element with the resize elements top and left style position
++        */
++        _syncBackgroundPosition: function() {
++            this._handleResizeMaskEl();
++            this._setBackgroundPosition(-(parseInt(this._resizeEl.style.left, 10)), -(parseInt(this._resizeEl.style.top, 10)));
++        },
++
++        /**
++        * @private
++        * @method _setBackgroundPosition
++        * @param Number l The left position
++        * @param Number t The top position
++        * @description Sets the background image position to the top and left position
++        */
++        _setBackgroundPosition: function(l, t) {
++            var bl = parseInt(Dom.getStyle(this._resize.get('element'), 'borderLeftWidth'), 10);
++            var bt = parseInt(Dom.getStyle(this._resize.get('element'), 'borderTopWidth'), 10);
++            if (isNaN(bl)) {
++                bl = 0;
++            }
++            if (isNaN(bt)) {
++                bt = 0;
++            }
++            var mask = this._resize.getWrapEl().firstChild;
++            var pos = (l - bl) + 'px ' + (t - bt) + 'px';
++            this._resizeMaskEl.style.backgroundPosition = pos;
++        },
++
++        /**
++        * @private
++        * @method _setBackgroundImage
++        * @param String url The url of the image
++        * @description Sets the background image of the resize element
++        */
++        _setBackgroundImage: function(url) {
++            var mask = this._resize.getWrapEl().firstChild;
++            this._image = url;
++            mask.style.backgroundImage = 'url(' + url + '#)';
++        },
++        
++        /**
++        * @private
++        * @method _handleEndResizeEvent
++        * @description Handles the Resize Utilitys endResize event
++        */
++        _handleEndResizeEvent: function() {
++            this._setConstraints(true);
++        },
++        /**
++        * @private
++        * @method _handleStartResizeEvent
++        * @description Handles the Resize Utilitys startResize event
++        */
++        _handleStartResizeEvent: function() {
++            this._setConstraints(true);
++
++            var h = this._resize._cache.height,
++                 w = this._resize._cache.width,
++                 t = parseInt(this._resize.getWrapEl().style.top, 10),
++                 l = parseInt(this._resize.getWrapEl().style.left, 10),
++                 maxH = 0, maxW = 0;
++ 
++            switch (this._resize._currentHandle) {
++                case 'b':
++                    maxH = (h + this._resize.dd.bottomConstraint);
++                    break;
++                case 'l':
++                    maxW = (w + this._resize.dd.leftConstraint);
++                    break;
++                case 'r':
++                    maxH = (h + t);
++                    maxW = (w + this._resize.dd.rightConstraint);
++                    break;
++                 case 'br':
++                     maxH = (h + this._resize.dd.bottomConstraint);
++                     maxW = (w + this._resize.dd.rightConstraint);
++                     break;
++                 case 'tr':
++                     maxH = (h + t);
++                     maxW = (w + this._resize.dd.rightConstraint);
++                     break;
++
++             }
++            
++             if (maxH) {
++                 //this._resize.set('maxHeight', maxH);
++             }
++             if (maxW) {
++                 //this._resize.set('maxWidth', maxW);
++             }
++
++            this.fireEvent('startResizeEvent', arguments);
++        },
++        
++        /**
++        * @private
++        * @method _setConstraints
++        * @param Boolean inside Used when called from inside a resize event, false by default (dragging)
++        * @description Set the DragDrop constraints to keep the element inside the crop area.
++        * @return {Object} Object containing Top, Right, Bottom and Left constraints
++        */
++        _setConstraints: function(inside) {
++            var resize = this._resize;
++            resize.dd.resetConstraints();
++            var height = parseInt(resize.get('height'), 10),
++                width = parseInt(resize.get('width'), 10);
++            if (inside) {
++                //Called from inside the resize callback
++                height = resize._cache.height;
++                width = resize._cache.width;
++            }
++
++            //Get the top, right, bottom and left positions
++            var region = Dom.getRegion(this.get('element'));
++            //Get the element we are working on
++            var el = resize.getWrapEl();
++
++            //Get the xy position of it
++            var xy = Dom.getXY(el);
++
++            //Set left to x minus left
++            var left = xy[0] - region.left;
++
++            //Set right to right minus x minus width
++            var right = region.right - xy[0] - width;
++
++            //Set top to y minus top
++            var top = xy[1] - region.top;
++
++            //Set bottom to bottom minus y minus height
++            var bottom = region.bottom - xy[1] - height;
++
++            if (top < 0) {
++                top = 0;
++            }
++            
++            resize.dd.setXConstraint(left, right); 
++            resize.dd.setYConstraint(top, bottom);
++
++            return {
++                top: top,
++                right: right,
++                bottom: bottom,
++                left: left
++            };
++
++            
++            
++        },
++        /**
++        * @method getCropCoords
++        * @description Returns the coordinates needed to crop the image
++        * @return {Object} The top, left, height, width and image url of the image being cropped
++        */
++        getCropCoords: function() {
++            var coords = {
++                top: parseInt(this._resize.getWrapEl().style.top, 10),
++                left: parseInt(this._resize.getWrapEl().style.left, 10),
++                height: this._resize._cache.height,
++                width: this._resize._cache.width,
++                image: this._image
++            };
++            return coords;
++        },
++        /**
++        * @method reset
++        * @description Resets the crop element back to it's original position
++        * @return {<a href="YAHOO.widget.ImageCropper.html">YAHOO.widget.ImageCropper</a>} The ImageCropper instance
++        */
++        reset: function() {
++            this._resize.resize(null, this.get('initHeight'), this.get('initWidth'), 0, 0, true);
++            this._resizeEl.style.top = this.get('initialXY')[1] + 'px';
++            this._resizeEl.style.left = this.get('initialXY')[0] + 'px';
++            this._syncBackgroundPosition();
++            return this;
++        },
++
++        /**
++        * @method getEl
++        * @description Get the HTML reference for the image element.
++        * @return {HTMLElement} The image element
++        */      
++        getEl: function() {
++            return this.get('element');
++        },
++        /**
++        * @method getResizeEl
++        * @description Get the HTML reference for the resize element.
++        * @return {HTMLElement} The resize element
++        */      
++        getResizeEl: function() {
++            return this._resizeEl;
++        },
++        /**
++        * @method getWrapEl
++        * @description Get the HTML reference for the wrap element.
++        * @return {HTMLElement} The wrap element
++        */      
++        getWrapEl: function() {
++            return this._wrap;
++        },
++
++        /**
++        * @method getMaskEl
++        * @description Get the HTML reference for the mask element.
++        * @return {HTMLElement} The mask element
++        */      
++        getMaskEl: function() {
++            return this._mask;
++        },
++
++        /**
++        * @method getResizeMaskEl
++        * @description Get the HTML reference for the resizable object's mask element.
++        * @return {HTMLElement} The resize objects mask element.
++        */      
++        getResizeMaskEl: function() {
++            return this._resizeMaskEl;
++        },
++
++        /**
++        * @method getResizeObject
++        * @description Get the Resize Utility object.
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */      
++        getResizeObject: function() {
++            return this._resize;
++        },
++
++        /** 
++        * @private
++        * @method init
++        * @description The ImageCropper class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            Crop.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            var id = p_oElement;
++
++            if (!Lang.isString(id)) {
++                if (id.tagName && (id.tagName.toLowerCase() == 'img')) {
++                    id = Dom.generateId(id);                    
++                } else {
++                    return false;
++                }
++            } else {
++                var el = Dom.get(id);
++                if (el.tagName && el.tagName.toLowerCase() == 'img') {
++                    //All good
++                } else {
++                    return false;
++                }
++            }
++            
++
++
++            Crop._instances[id] = this;
++            this._createWrap();
++            this._createMask();
++            this._createResize();
++            this._setConstraints();
++
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create a croppable element.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the widget.
++        */      
++
++        initAttributes: function(attr) {
++            Crop.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @attribute initialXY
++            * @description Array of the XY position that we need to set the crop element to when we build it. Defaults to [10, 10]
++            * @type Array
++            */
++            this.setAttributeConfig('initialXY', {
++                writeOnce: true,
++                validator: YAHOO.lang.isArray,
++                value: attr.initialXY || [10, 10]
++            });
++            /**
++            * @attribute keyTick
++            * @description The pixel tick for the arrow keys, defaults to 1
++            * @type Number
++            */
++            this.setAttributeConfig('keyTick', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.keyTick || 1
++            });
++
++            /**
++            * @attribute shiftKeyTick
++            * @description The pixel tick for shift + the arrow keys, defaults to 10
++            * @type Number
++            */
++            this.setAttributeConfig('shiftKeyTick', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.shiftKeyTick || 10
++            });
++
++            /**
++            * @attribute useKeys
++            * @description Should we use the Arrow keys to position the crop element, defaults to true
++            * @type Boolean
++            */
++            this.setAttributeConfig('useKeys', {
++                validator: YAHOO.lang.isBoolean,
++                value: ((attr.useKeys === false) ? false : true)
++            });
++
++            /**
++            * @attribute status
++            * @description Show the Resize Utility status, defaults to true
++            * @type Boolean
++            */
++            this.setAttributeConfig('status', {
++                validator: YAHOO.lang.isBoolean,
++                value: ((attr.status === false) ? false : true),
++                method: function(status) {
++                    if (this._resize) {
++                        this._resize.set('status', status);
++                    }
++                }
++            });
++
++            /**
++            * @attribute minHeight
++            * @description MinHeight of the crop area, default 50
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.minHeight || 50,
++                method: function(h) {
++                    if (this._resize) {
++                        this._resize.set('minHeight', h);
++                    }
++                }
++            });
++
++            /**
++            * @attribute minWidth
++            * @description MinWidth of the crop area, default 50.
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                validator: YAHOO.lang.isNumber,
++                value: attr.minWidth || 50,
++                method: function(w) {
++                    if (this._resize) {
++                        this._resize.set('minWidth', w);
++                    }
++                }
++            });
++
++            /**
++            * @attribute ratio
++            * @description Set the ratio config option of the Resize Utlility, default false
++            * @type Boolean
++            */
++            this.setAttributeConfig('ratio', {
++                validator: YAHOO.lang.isBoolean,
++                value: attr.ratio || false,
++                method: function(r) {
++                    if (this._resize) {
++                        this._resize.set('ratio', r);
++                    }
++                }
++            });
++
++            /**
++            * @attribute ratio
++            * @description Set the autoRatio config option of the Resize Utlility, default true
++            * @type Boolean
++            */
++            this.setAttributeConfig('autoRatio', {
++                validator: YAHOO.lang.isBoolean,
++                value: ((attr.autoRatio === false) ? false : true),
++                method: function(a) {
++                    if (this._resize) {
++                        this._resize.set('autoRatio', a);
++                    }
++                }
++            });
++
++            /**
++            * @attribute initHeight
++            * @description Set the initlal height of the crop area, defaults to 1/4 of the image height
++            * @type Number
++            */
++            this.setAttributeConfig('initHeight', {
++                writeOnce: true,
++                validator: YAHOO.lang.isNumber,
++                value: attr.initHeight || (this.get('element').height / 4)
++            });
++
++            /**
++            * @attribute initWidth
++            * @description Set the initlal width of the crop area, defaults to 1/4 of the image width
++            * @type Number
++            */
++            this.setAttributeConfig('initWidth', {
++                validator: YAHOO.lang.isNumber,
++                writeOnce: true,
++                value: attr.initWidth || (this.get('element').width / 4)
++            });
++
++        },
++        /**
++        * @method destroy
++        * @description Destroys the ImageCropper object and all of it's elements & listeners.
++        */        
++        destroy: function() {
++            this._resize.destroy();
++            this._resizeEl.parentNode.removeChild(this._resizeEl);
++            this._mask.parentNode.removeChild(this._mask);
++            Event.purgeElement(this._wrap);
++            this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
++            
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                }
++            }
++                       
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the ImageCropper Object.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'ImageCropper (#' + this.get('id') + ')';
++            }
++            return 'Image Cropper';
++        }
++    });
++
++    YAHOO.widget.ImageCropper = Crop;
++
++/**
++* @event dragEvent
++* @description Fires when the DragDrop dragEvent
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event startResizeEvent
++* @description Fires when when a resize action is started.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event resizeEvent
++* @description Fires on every element resize.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event moveEvent
++* @description Fires on every element move. Inside these methods: _handleKeyPress, _handleDragEvent, _handleResizeEvent
++* @type YAHOO.util.CustomEvent
++*/
++
++})();
++
++YAHOO.register("imagecropper", YAHOO.widget.ImageCropper, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/imageloader/imageloader-debug.js b/pylons_app/public/js/yui/imageloader/imageloader-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imageloader/imageloader-debug.js
+@@ -0,0 +1,487 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The ImageLoader Utility is a framework to dynamically load images according to certain triggers,
++ * enabling faster load times and a more responsive UI.
++ *
++ * @module imageloader
++ * @namespace YAHOO.util
++ * @requires yahoo, dom, event
++ */
++
++if (typeof(YAHOO.util.ImageLoader) == 'undefined') {
++	YAHOO.util.ImageLoader = {};
++}
++
++/**
++ * A group for images. A group can have one time limit and a series of triggers. Thus the images belonging to this group must share these constraints.
++ * @class YAHOO.util.ImageLoader.group
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @constructor
++ * @param {String|HTMLElement}	trigEl	The HTML element id or reference to assign the trigger event to. Can be null for no trigger
++ * @param {String}	trigAct The type of event to assign to trigEl. Can be null for no trigger
++ * @param {Number}	timeout	Timeout (time limit) length, in seconds. Can be undefined, or <= 0, for no time limit
++ */
++YAHOO.util.ImageLoader.group = function(trigEl, trigAct, timeout) {
++	/**
++	 * Name for the group. Only used to identify the group in logging statements
++	 * @property name
++	 * @type String
++	 */
++	this.name = 'unnamed';
++	
++	/**
++	 * Collection of images registered with this group
++	 * @property _imgObjs
++	 * @private
++	 * @type Object
++	 */
++	this._imgObjs = {};
++	
++	/**
++	 * Timeout (time limit) length, in seconds
++	 * @property timeoutLen
++	 * @type Number
++	 */
++	this.timeoutLen = timeout;
++	
++	/**
++	 * Timeout object to keep a handle on the time limit
++	 * @property _timeout
++	 * @private
++	 * @type Object
++	 */
++	this._timeout = null;
++	
++	/**
++	 * Collection of triggers for this group.
++	 * Keeps track of each trigger's element, event, and event-listener-callback "fetch" function
++	 * @property _triggers
++	 * @private
++	 * @type Array
++	 */
++	this._triggers = [];
++
++	/**
++	 * Collection of custom-event triggers for this group.
++	 * Keeps track of each trigger's event object and event-listener-callback "fetch" function
++	 * @property _customTriggers
++	 * @private
++	 * @type Array
++	 */
++	this._customTriggers = [];
++
++	/**
++	 * Flag to check if images are above the fold. If foldConditional is true, the group will check each of its image locations at page load. If any part of the image is within the client viewport, the image is displayed immediately
++	 * @property foldConditional
++	 * @type Boolean
++	 */
++	this.foldConditional = false;
++
++	/**
++	 * Class name that will identify images belonging to the group. This class name will be removed from each element in order to fetch images.
++	 * This class should have, in its CSS style definition, "background:none !important;"
++	 * @property className
++	 * @type String
++	 */
++	this.className = null;
++
++	/**
++	 * HTML elements having the class name that is associated with this group
++	 * Elements are stored during the _foldCheck function and reused later during the fetch function. Gives a slight performance improvement when className and foldConditional are both used
++	 * @property _classImageEls
++	 * @private
++	 * @type Array
++	 */
++	this._classImageEls = null;
++
++	// add a listener to set the time limit in the onload
++	YAHOO.util.Event.addListener(window, 'load', this._onloadTasks, this, true);
++	// add the trigger
++	this.addTrigger(trigEl, trigAct);
++
++};
++
++/**
++ * Adds a trigger to the group. Call this with the same style as YAHOO.util.Event.addListener
++ * @method addTrigger
++ * @param {String|HTMLElement} trigEl  The HTML element id or reference to assign the trigger event to
++ * @param {String} trigAct The type of event to assign to trigEl
++ */
++YAHOO.util.ImageLoader.group.prototype.addTrigger = function(trigEl, trigAct) {
++	if (! trigEl || ! trigAct) {
++		return;
++	}
++	/* Need to wrap the fetch function. Event Util can't distinguish prototyped functions of different instantiations
++	 *   Leads to this scenario: groupA and groupZ both have window-scroll triggers. groupZ also has a 2-sec timeout (groupA has no timeout).
++	 *   groupZ's timeout fires; we remove the triggers. The removeListener call finds the first window-scroll event with Y.u.IL.p.fetch, which is groupA's. 
++	 *   groupA's trigger is removed and never fires, leaving images unfetched
++	 */
++	var wrappedFetch = function() {
++		this.fetch();
++	};
++	this._triggers.push([trigEl, trigAct, wrappedFetch]);
++	YAHOO.util.Event.addListener(trigEl, trigAct, wrappedFetch, this, true);
++};
++
++/**
++ * Adds a custom event trigger to the group.
++ * @method addCustomTrigger
++ * @param {Object} event A YAHOO.util.CustomEvent object
++ */
++YAHOO.util.ImageLoader.group.prototype.addCustomTrigger = function(event) {
++	// make sure we're dealing with a CustomEvent object
++	if (! event || ! event instanceof YAHOO.util.CustomEvent) {
++		return;
++	}
++
++	// see comment in addTrigger()
++	var wrappedFetch = function() {
++		this.fetch();
++	};
++	this._customTriggers.push([event, wrappedFetch]);
++	event.subscribe(wrappedFetch, this, true);
++};
++
++/**
++ * Setup to do in the window's onload
++ * Initiates time limit for group; executes the fold check for the images
++ * @method _onloadTasks
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._onloadTasks = function() {
++	if (this.timeoutLen && typeof(this.timeoutLen) == 'number' && this.timeoutLen > 0) {
++		this._timeout = setTimeout(this._getFetchTimeout(), this.timeoutLen * 1000);
++	}
++
++	if (this.foldConditional) {
++		this._foldCheck();
++	}
++};
++
++/**
++ * Returns the group's fetch method, with the proper closure, for use with setTimeout
++ * @method _getFetchTimeout
++ * @return {Function}  group's fetch method
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._getFetchTimeout = function() {
++	var self = this;
++	return function() { self.fetch(); };
++};
++
++/**
++ * Registers a background image with the group
++ * @method registerBgImage
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @return {Object}	bgImgObj that was registered, for modifying any attributes in the object
++ */
++YAHOO.util.ImageLoader.group.prototype.registerBgImage = function(domId, url) {
++	this._imgObjs[domId] = new YAHOO.util.ImageLoader.bgImgObj(domId, url);
++	return this._imgObjs[domId];
++};
++/**
++ * Registers a src image with the group
++ * @method registerSrcImage
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Int}	width	pixel width of the image - defaults to image's natural size
++ * @param {Int}	height	pixel height of the image - defaults to image's natural size
++ * @return {Object}	srcImgObj that was registered, for modifying any attributes in the object
++ */
++YAHOO.util.ImageLoader.group.prototype.registerSrcImage = function(domId, url, width, height) {
++	this._imgObjs[domId] = new YAHOO.util.ImageLoader.srcImgObj(domId, url, width, height);
++	return this._imgObjs[domId];
++};
++/**
++ * Registers an alpha-channel-type png background image with the group
++ * @method registerPngBgImage
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
++ *                    Valid properties are 'sizingMethod' and 'enabled'
++ * @return {Object}	pngBgImgObj that was registered, for modifying any attributes in the object
++ */
++YAHOO.util.ImageLoader.group.prototype.registerPngBgImage = function(domId, url, ailProps) {
++	this._imgObjs[domId] = new YAHOO.util.ImageLoader.pngBgImgObj(domId, url, ailProps);
++	return this._imgObjs[domId];
++};
++
++/**
++ * Displays the images in the group
++ * @method fetch
++ */
++YAHOO.util.ImageLoader.group.prototype.fetch = function() {
++	YAHOO.log('Fetching images in group: "' + this.name + '".', 'info', 'imageloader');
++
++	clearTimeout(this._timeout);
++	// remove all listeners
++	for (var i=0, len = this._triggers.length; i < len; i++) {
++		YAHOO.util.Event.removeListener(this._triggers[i][0], this._triggers[i][1], this._triggers[i][2]);
++	}
++	// remove custom event subscriptions
++	for (var i=0, len = this._customTriggers.length; i < len; i++) {
++		this._customTriggers[i][0].unsubscribe(this._customTriggers[i][1], this);
++	}
++
++	// fetch whatever we need to by className
++	this._fetchByClass();
++
++	// fetch registered images
++	for (var id in this._imgObjs) {
++		if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
++			this._imgObjs[id].fetch();
++		}
++	}
++};
++
++/**
++ * Checks the position of each image in the group. If any part of the image is within the client viewport, shows the image immediately.
++ * @method _foldCheck
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._foldCheck = function() {
++	YAHOO.log('Checking for images above the fold in group: "' + this.name + '"', 'info', 'imageloader');
++	var scrollTop = (document.compatMode != 'CSS1Compat') ? document.body.scrollTop : document.documentElement.scrollTop;
++	var viewHeight = YAHOO.util.Dom.getViewportHeight();
++	var hLimit = scrollTop + viewHeight;
++	var scrollLeft = (document.compatMode != 'CSS1Compat') ? document.body.scrollLeft : document.documentElement.scrollLeft;
++	var viewWidth = YAHOO.util.Dom.getViewportWidth();
++	var wLimit = scrollLeft + viewWidth;
++	for (var id in this._imgObjs) {
++		if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
++			var elPos = YAHOO.util.Dom.getXY(this._imgObjs[id].domId);
++			if (elPos[1] < hLimit && elPos[0] < wLimit) {
++				YAHOO.log('Image with id "' + this._imgObjs[id].domId + '" is above the fold. Fetching image.', 'info', 'imageloader');
++				this._imgObjs[id].fetch();
++			}
++		}
++	}
++	// and by class
++	if (this.className) {
++		this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
++		for (var i=0, len = this._classImageEls.length; i < len; i++) {
++			var elPos = YAHOO.util.Dom.getXY(this._classImageEls[i]);
++			if (elPos[1] < hLimit && elPos[0] < wLimit) {
++				YAHOO.log('Image with id "' + this._classImageEls[i].id + '" is above the fold. Fetching image. (Image registered by class name with the group - may not have an id.)', 'info', 'imageloader');
++				YAHOO.util.Dom.removeClass(this._classImageEls[i], this.className);
++			}
++		}
++	}
++};
++
++/**
++ * Finds all elements in the Dom with the class name specified in the group. Removes the class from the element in order to let the style definitions trigger the image fetching
++ * @method _fetchByClass
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._fetchByClass = function() {
++	if (! this.className) {
++		return;
++	}
++
++	YAHOO.log('Fetching all images with class "' + this.className + '" in group "' + this.name + '".', 'info', 'imageloader');
++	// this._classImageEls may have been set during _foldCheck
++	if (this._classImageEls === null) {
++		this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
++	}
++	YAHOO.util.Dom.removeClass(this._classImageEls, this.className);
++};
++
++
++/**
++ * Base class for image objects to be registered with the groups
++ * @class YAHOO.util.ImageLoader.imgObj
++ * @constructor
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ */
++YAHOO.util.ImageLoader.imgObj = function(domId, url) {
++	/**
++	 * HTML DOM id of the image element
++	 * @property domId
++	 * @type String
++	 */
++	this.domId = domId;
++
++	/**
++	 * URL for the image
++	 * @property url
++	 * @type String
++	 */
++	this.url = url;
++
++	/**
++	 * Pixel width of the image. Will be set as a "width" attribute after the image is fetched.
++	 * Detaults to the natural width of the image.
++	 * Only appropriate with src images
++	 * @property width
++	 * @type Int
++	 */
++	this.width = null;
++
++	/**
++	 * Pixel height of the image. Will be set as a "height" attribute after the image is fetched.
++	 * Detaults to the natural height of the image.
++	 * Only appropriate with src images
++	 * @property height
++	 * @type Int
++	 */
++	this.height = null;
++
++	/**
++	 * Whether the style.visibility should be set to "visible" after the image is fetched.
++	 * Used when setting src images as visibility:hidden prior to image fetching
++	 * @property setVisible
++	 * @type Boolean
++	 */
++	this.setVisible = false;
++
++	/**
++	 * Whether the image has already been fetched. In the case of a foldCondional group, keeps track for when the trigger is fired so images aren't fetched twice
++	 * @property _fetched
++	 * @type Boolean
++	 * @private
++	 */
++	this._fetched = false;
++};
++
++/**
++ * Displays the image; puts the URL into the DOM
++ * @method fetch
++ */
++YAHOO.util.ImageLoader.imgObj.prototype.fetch = function() {
++	if (this._fetched) {
++		return;
++	}
++	var el = document.getElementById(this.domId);
++	if (! el) {
++		return;
++	}
++	YAHOO.log('Fetching image with id "' + this.domId + '".', 'info', 'imageloader');
++	this._applyUrl(el);
++
++	if (this.setVisible) {
++		el.style.visibility = 'visible';
++	}
++	if (this.width) {
++		el.width = this.width;
++	}
++	if (this.height) {
++		el.height = this.height;
++	}
++	this._fetched = true;
++};
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * Must be overridden by child class
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.imgObj.prototype._applyUrl = function(el) {
++};
++
++/**
++ * Background image object. A background image is one whose URL is specified by "background-image" in the element's style
++ * @class YAHOO.util.ImageLoader.bgImgObj
++ * @constructor
++ * @extends YAHOO.util.ImageLoader.imgObj
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ */
++YAHOO.util.ImageLoader.bgImgObj = function(domId, url) {
++	YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this, domId, url);
++};
++
++YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj, YAHOO.util.ImageLoader.imgObj);
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * Sets style.backgroundImage
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl = function(el) {
++	el.style.backgroundImage = "url('" + this.url + "')";
++};
++
++/**
++ * Source image object. A source image is one whose URL is specified by a src attribute in the DOM element
++ * @class YAHOO.util.ImageLoader.srcImgObj
++ * @constructor
++ * @extends YAHOO.util.ImageLoader.imgObj
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Int}	width	pixel width of the image - defaults to image's natural size
++ * @param {Int}	height	pixel height of the image - defaults to image's natural size
++ */
++YAHOO.util.ImageLoader.srcImgObj = function(domId, url, width, height) {
++	YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this, domId, url);
++	this.width = width;
++	this.height = height;
++};
++
++YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj, YAHOO.util.ImageLoader.imgObj);
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * Sets src
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl = function(el) {
++	el.src = this.url;
++};
++
++/**
++ * PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style
++ * @class YAHOO.util.ImageLoader.pngBgImgObj
++ * @constructor
++ * @extends YAHOO.util.ImageLoader.imgObj
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
++ *                    Valid properties are 'sizingMethod' and 'enabled'
++ */
++YAHOO.util.ImageLoader.pngBgImgObj = function(domId, url, ailProps) {
++	YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this, domId, url);
++
++	/**
++	 * AlphaImageLoader properties to be set for the image.
++	 * Valid properties are "sizingMethod" and "enabled".
++	 * @property props
++	 * @type Object
++	 */
++	this.props = ailProps || {};
++};
++
++YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj, YAHOO.util.ImageLoader.imgObj);
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl = function(el) {
++	if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
++		var sizingMethod = (YAHOO.lang.isUndefined(this.props.sizingMethod)) ? 'scale' : this.props.sizingMethod;
++		var enabled = (YAHOO.lang.isUndefined(this.props.enabled)) ? 'true' : this.props.enabled;
++		el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + this.url + '", sizingMethod="' + sizingMethod + '", enabled="' + enabled + '")';
++	}
++	else {
++		el.style.backgroundImage = "url('" + this.url + "')";
++	}
++};
++YAHOO.register("imageloader", YAHOO.util.ImageLoader, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/imageloader/imageloader-min.js b/pylons_app/public/js/yui/imageloader/imageloader-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imageloader/imageloader-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(typeof(YAHOO.util.ImageLoader)=="undefined"){YAHOO.util.ImageLoader={};}YAHOO.util.ImageLoader.group=function(A,B,C){this.name="unnamed";this._imgObjs={};this.timeoutLen=C;this._timeout=null;this._triggers=[];this._customTriggers=[];this.foldConditional=false;this.className=null;this._classImageEls=null;YAHOO.util.Event.addListener(window,"load",this._onloadTasks,this,true);this.addTrigger(A,B);};YAHOO.util.ImageLoader.group.prototype.addTrigger=function(B,C){if(!B||!C){return;}var A=function(){this.fetch();};this._triggers.push([B,C,A]);YAHOO.util.Event.addListener(B,C,A,this,true);};YAHOO.util.ImageLoader.group.prototype.addCustomTrigger=function(B){if(!B||!B instanceof YAHOO.util.CustomEvent){return;}var A=function(){this.fetch();};this._customTriggers.push([B,A]);B.subscribe(A,this,true);};YAHOO.util.ImageLoader.group.prototype._onloadTasks=function(){if(this.timeoutLen&&typeof(this.timeoutLen)=="number"&&this.timeoutLen>0){this._timeout=setTimeout(this._getFetchTimeout(),this.timeoutLen*1000);}if(this.foldConditional){this._foldCheck();}};YAHOO.util.ImageLoader.group.prototype._getFetchTimeout=function(){var A=this;return function(){A.fetch();};};YAHOO.util.ImageLoader.group.prototype.registerBgImage=function(B,A){this._imgObjs[B]=new YAHOO.util.ImageLoader.bgImgObj(B,A);return this._imgObjs[B];};YAHOO.util.ImageLoader.group.prototype.registerSrcImage=function(D,B,C,A){this._imgObjs[D]=new YAHOO.util.ImageLoader.srcImgObj(D,B,C,A);return this._imgObjs[D];};YAHOO.util.ImageLoader.group.prototype.registerPngBgImage=function(C,B,A){this._imgObjs[C]=new YAHOO.util.ImageLoader.pngBgImgObj(C,B,A);return this._imgObjs[C];};YAHOO.util.ImageLoader.group.prototype.fetch=function(){clearTimeout(this._timeout);for(var B=0,A=this._triggers.length;B<A;B++){YAHOO.util.Event.removeListener(this._triggers[B][0],this._triggers[B][1],this._triggers[B][2]);}for(var B=0,A=this._customTriggers.length;B<A;B++){this._customTriggers[B][0].unsubscribe(this._customTriggers[B][1],this);}this._fetchByClass();for(var C in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,C)){this._imgObjs[C].fetch();}}};YAHOO.util.ImageLoader.group.prototype._foldCheck=function(){var C=(document.compatMode!="CSS1Compat")?document.body.scrollTop:document.documentElement.scrollTop;var D=YAHOO.util.Dom.getViewportHeight();var A=C+D;var E=(document.compatMode!="CSS1Compat")?document.body.scrollLeft:document.documentElement.scrollLeft;var G=YAHOO.util.Dom.getViewportWidth();var I=E+G;for(var B in this._imgObjs){if(YAHOO.lang.hasOwnProperty(this._imgObjs,B)){var J=YAHOO.util.Dom.getXY(this._imgObjs[B].domId);if(J[1]<A&&J[0]<I){this._imgObjs[B].fetch();}}}if(this.className){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);for(var F=0,H=this._classImageEls.length;F<H;F++){var J=YAHOO.util.Dom.getXY(this._classImageEls[F]);if(J[1]<A&&J[0]<I){YAHOO.util.Dom.removeClass(this._classImageEls[F],this.className);}}}};YAHOO.util.ImageLoader.group.prototype._fetchByClass=function(){if(!this.className){return;}if(this._classImageEls===null){this._classImageEls=YAHOO.util.Dom.getElementsByClassName(this.className);}YAHOO.util.Dom.removeClass(this._classImageEls,this.className);};YAHOO.util.ImageLoader.imgObj=function(B,A){this.domId=B;this.url=A;this.width=null;this.height=null;this.setVisible=false;this._fetched=false;};YAHOO.util.ImageLoader.imgObj.prototype.fetch=function(){if(this._fetched){return;}var A=document.getElementById(this.domId);if(!A){return;}this._applyUrl(A);if(this.setVisible){A.style.visibility="visible";}if(this.width){A.width=this.width;}if(this.height){A.height=this.height;}this._fetched=true;};YAHOO.util.ImageLoader.imgObj.prototype._applyUrl=function(A){};YAHOO.util.ImageLoader.bgImgObj=function(B,A){YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this,B,A);};YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl=function(A){A.style.backgroundImage="url('"+this.url+"')";};YAHOO.util.ImageLoader.srcImgObj=function(D,B,C,A){YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this,D,B);this.width=C;this.height=A;};YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl=function(A){A.src=this.url;};YAHOO.util.ImageLoader.pngBgImgObj=function(C,B,A){YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this,C,B);this.props=A||{};};YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj,YAHOO.util.ImageLoader.imgObj);YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl=function(B){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6){var C=(YAHOO.lang.isUndefined(this.props.sizingMethod))?"scale":this.props.sizingMethod;var A=(YAHOO.lang.isUndefined(this.props.enabled))?"true":this.props.enabled;B.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+this.url+'", sizingMethod="'+C+'", enabled="'+A+'")';}else{B.style.backgroundImage="url('"+this.url+"')";}};YAHOO.register("imageloader",YAHOO.util.ImageLoader,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/imageloader/imageloader.js b/pylons_app/public/js/yui/imageloader/imageloader.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/imageloader/imageloader.js
+@@ -0,0 +1,481 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The ImageLoader Utility is a framework to dynamically load images according to certain triggers,
++ * enabling faster load times and a more responsive UI.
++ *
++ * @module imageloader
++ * @namespace YAHOO.util
++ * @requires yahoo, dom, event
++ */
++
++if (typeof(YAHOO.util.ImageLoader) == 'undefined') {
++	YAHOO.util.ImageLoader = {};
++}
++
++/**
++ * A group for images. A group can have one time limit and a series of triggers. Thus the images belonging to this group must share these constraints.
++ * @class YAHOO.util.ImageLoader.group
++ * @requires YAHOO.util.Dom
++ * @requires YAHOO.util.Event
++ * @constructor
++ * @param {String|HTMLElement}	trigEl	The HTML element id or reference to assign the trigger event to. Can be null for no trigger
++ * @param {String}	trigAct The type of event to assign to trigEl. Can be null for no trigger
++ * @param {Number}	timeout	Timeout (time limit) length, in seconds. Can be undefined, or <= 0, for no time limit
++ */
++YAHOO.util.ImageLoader.group = function(trigEl, trigAct, timeout) {
++	/**
++	 * Name for the group. Only used to identify the group in logging statements
++	 * @property name
++	 * @type String
++	 */
++	this.name = 'unnamed';
++	
++	/**
++	 * Collection of images registered with this group
++	 * @property _imgObjs
++	 * @private
++	 * @type Object
++	 */
++	this._imgObjs = {};
++	
++	/**
++	 * Timeout (time limit) length, in seconds
++	 * @property timeoutLen
++	 * @type Number
++	 */
++	this.timeoutLen = timeout;
++	
++	/**
++	 * Timeout object to keep a handle on the time limit
++	 * @property _timeout
++	 * @private
++	 * @type Object
++	 */
++	this._timeout = null;
++	
++	/**
++	 * Collection of triggers for this group.
++	 * Keeps track of each trigger's element, event, and event-listener-callback "fetch" function
++	 * @property _triggers
++	 * @private
++	 * @type Array
++	 */
++	this._triggers = [];
++
++	/**
++	 * Collection of custom-event triggers for this group.
++	 * Keeps track of each trigger's event object and event-listener-callback "fetch" function
++	 * @property _customTriggers
++	 * @private
++	 * @type Array
++	 */
++	this._customTriggers = [];
++
++	/**
++	 * Flag to check if images are above the fold. If foldConditional is true, the group will check each of its image locations at page load. If any part of the image is within the client viewport, the image is displayed immediately
++	 * @property foldConditional
++	 * @type Boolean
++	 */
++	this.foldConditional = false;
++
++	/**
++	 * Class name that will identify images belonging to the group. This class name will be removed from each element in order to fetch images.
++	 * This class should have, in its CSS style definition, "background:none !important;"
++	 * @property className
++	 * @type String
++	 */
++	this.className = null;
++
++	/**
++	 * HTML elements having the class name that is associated with this group
++	 * Elements are stored during the _foldCheck function and reused later during the fetch function. Gives a slight performance improvement when className and foldConditional are both used
++	 * @property _classImageEls
++	 * @private
++	 * @type Array
++	 */
++	this._classImageEls = null;
++
++	// add a listener to set the time limit in the onload
++	YAHOO.util.Event.addListener(window, 'load', this._onloadTasks, this, true);
++	// add the trigger
++	this.addTrigger(trigEl, trigAct);
++
++};
++
++/**
++ * Adds a trigger to the group. Call this with the same style as YAHOO.util.Event.addListener
++ * @method addTrigger
++ * @param {String|HTMLElement} trigEl  The HTML element id or reference to assign the trigger event to
++ * @param {String} trigAct The type of event to assign to trigEl
++ */
++YAHOO.util.ImageLoader.group.prototype.addTrigger = function(trigEl, trigAct) {
++	if (! trigEl || ! trigAct) {
++		return;
++	}
++	/* Need to wrap the fetch function. Event Util can't distinguish prototyped functions of different instantiations
++	 *   Leads to this scenario: groupA and groupZ both have window-scroll triggers. groupZ also has a 2-sec timeout (groupA has no timeout).
++	 *   groupZ's timeout fires; we remove the triggers. The removeListener call finds the first window-scroll event with Y.u.IL.p.fetch, which is groupA's. 
++	 *   groupA's trigger is removed and never fires, leaving images unfetched
++	 */
++	var wrappedFetch = function() {
++		this.fetch();
++	};
++	this._triggers.push([trigEl, trigAct, wrappedFetch]);
++	YAHOO.util.Event.addListener(trigEl, trigAct, wrappedFetch, this, true);
++};
++
++/**
++ * Adds a custom event trigger to the group.
++ * @method addCustomTrigger
++ * @param {Object} event A YAHOO.util.CustomEvent object
++ */
++YAHOO.util.ImageLoader.group.prototype.addCustomTrigger = function(event) {
++	// make sure we're dealing with a CustomEvent object
++	if (! event || ! event instanceof YAHOO.util.CustomEvent) {
++		return;
++	}
++
++	// see comment in addTrigger()
++	var wrappedFetch = function() {
++		this.fetch();
++	};
++	this._customTriggers.push([event, wrappedFetch]);
++	event.subscribe(wrappedFetch, this, true);
++};
++
++/**
++ * Setup to do in the window's onload
++ * Initiates time limit for group; executes the fold check for the images
++ * @method _onloadTasks
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._onloadTasks = function() {
++	if (this.timeoutLen && typeof(this.timeoutLen) == 'number' && this.timeoutLen > 0) {
++		this._timeout = setTimeout(this._getFetchTimeout(), this.timeoutLen * 1000);
++	}
++
++	if (this.foldConditional) {
++		this._foldCheck();
++	}
++};
++
++/**
++ * Returns the group's fetch method, with the proper closure, for use with setTimeout
++ * @method _getFetchTimeout
++ * @return {Function}  group's fetch method
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._getFetchTimeout = function() {
++	var self = this;
++	return function() { self.fetch(); };
++};
++
++/**
++ * Registers a background image with the group
++ * @method registerBgImage
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @return {Object}	bgImgObj that was registered, for modifying any attributes in the object
++ */
++YAHOO.util.ImageLoader.group.prototype.registerBgImage = function(domId, url) {
++	this._imgObjs[domId] = new YAHOO.util.ImageLoader.bgImgObj(domId, url);
++	return this._imgObjs[domId];
++};
++/**
++ * Registers a src image with the group
++ * @method registerSrcImage
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Int}	width	pixel width of the image - defaults to image's natural size
++ * @param {Int}	height	pixel height of the image - defaults to image's natural size
++ * @return {Object}	srcImgObj that was registered, for modifying any attributes in the object
++ */
++YAHOO.util.ImageLoader.group.prototype.registerSrcImage = function(domId, url, width, height) {
++	this._imgObjs[domId] = new YAHOO.util.ImageLoader.srcImgObj(domId, url, width, height);
++	return this._imgObjs[domId];
++};
++/**
++ * Registers an alpha-channel-type png background image with the group
++ * @method registerPngBgImage
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
++ *                    Valid properties are 'sizingMethod' and 'enabled'
++ * @return {Object}	pngBgImgObj that was registered, for modifying any attributes in the object
++ */
++YAHOO.util.ImageLoader.group.prototype.registerPngBgImage = function(domId, url, ailProps) {
++	this._imgObjs[domId] = new YAHOO.util.ImageLoader.pngBgImgObj(domId, url, ailProps);
++	return this._imgObjs[domId];
++};
++
++/**
++ * Displays the images in the group
++ * @method fetch
++ */
++YAHOO.util.ImageLoader.group.prototype.fetch = function() {
++
++	clearTimeout(this._timeout);
++	// remove all listeners
++	for (var i=0, len = this._triggers.length; i < len; i++) {
++		YAHOO.util.Event.removeListener(this._triggers[i][0], this._triggers[i][1], this._triggers[i][2]);
++	}
++	// remove custom event subscriptions
++	for (var i=0, len = this._customTriggers.length; i < len; i++) {
++		this._customTriggers[i][0].unsubscribe(this._customTriggers[i][1], this);
++	}
++
++	// fetch whatever we need to by className
++	this._fetchByClass();
++
++	// fetch registered images
++	for (var id in this._imgObjs) {
++		if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
++			this._imgObjs[id].fetch();
++		}
++	}
++};
++
++/**
++ * Checks the position of each image in the group. If any part of the image is within the client viewport, shows the image immediately.
++ * @method _foldCheck
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._foldCheck = function() {
++	var scrollTop = (document.compatMode != 'CSS1Compat') ? document.body.scrollTop : document.documentElement.scrollTop;
++	var viewHeight = YAHOO.util.Dom.getViewportHeight();
++	var hLimit = scrollTop + viewHeight;
++	var scrollLeft = (document.compatMode != 'CSS1Compat') ? document.body.scrollLeft : document.documentElement.scrollLeft;
++	var viewWidth = YAHOO.util.Dom.getViewportWidth();
++	var wLimit = scrollLeft + viewWidth;
++	for (var id in this._imgObjs) {
++		if (YAHOO.lang.hasOwnProperty(this._imgObjs, id)) {
++			var elPos = YAHOO.util.Dom.getXY(this._imgObjs[id].domId);
++			if (elPos[1] < hLimit && elPos[0] < wLimit) {
++				this._imgObjs[id].fetch();
++			}
++		}
++	}
++	// and by class
++	if (this.className) {
++		this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
++		for (var i=0, len = this._classImageEls.length; i < len; i++) {
++			var elPos = YAHOO.util.Dom.getXY(this._classImageEls[i]);
++			if (elPos[1] < hLimit && elPos[0] < wLimit) {
++				YAHOO.util.Dom.removeClass(this._classImageEls[i], this.className);
++			}
++		}
++	}
++};
++
++/**
++ * Finds all elements in the Dom with the class name specified in the group. Removes the class from the element in order to let the style definitions trigger the image fetching
++ * @method _fetchByClass
++ * @private
++ */
++YAHOO.util.ImageLoader.group.prototype._fetchByClass = function() {
++	if (! this.className) {
++		return;
++	}
++
++	// this._classImageEls may have been set during _foldCheck
++	if (this._classImageEls === null) {
++		this._classImageEls = YAHOO.util.Dom.getElementsByClassName(this.className);
++	}
++	YAHOO.util.Dom.removeClass(this._classImageEls, this.className);
++};
++
++
++/**
++ * Base class for image objects to be registered with the groups
++ * @class YAHOO.util.ImageLoader.imgObj
++ * @constructor
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ */
++YAHOO.util.ImageLoader.imgObj = function(domId, url) {
++	/**
++	 * HTML DOM id of the image element
++	 * @property domId
++	 * @type String
++	 */
++	this.domId = domId;
++
++	/**
++	 * URL for the image
++	 * @property url
++	 * @type String
++	 */
++	this.url = url;
++
++	/**
++	 * Pixel width of the image. Will be set as a "width" attribute after the image is fetched.
++	 * Detaults to the natural width of the image.
++	 * Only appropriate with src images
++	 * @property width
++	 * @type Int
++	 */
++	this.width = null;
++
++	/**
++	 * Pixel height of the image. Will be set as a "height" attribute after the image is fetched.
++	 * Detaults to the natural height of the image.
++	 * Only appropriate with src images
++	 * @property height
++	 * @type Int
++	 */
++	this.height = null;
++
++	/**
++	 * Whether the style.visibility should be set to "visible" after the image is fetched.
++	 * Used when setting src images as visibility:hidden prior to image fetching
++	 * @property setVisible
++	 * @type Boolean
++	 */
++	this.setVisible = false;
++
++	/**
++	 * Whether the image has already been fetched. In the case of a foldCondional group, keeps track for when the trigger is fired so images aren't fetched twice
++	 * @property _fetched
++	 * @type Boolean
++	 * @private
++	 */
++	this._fetched = false;
++};
++
++/**
++ * Displays the image; puts the URL into the DOM
++ * @method fetch
++ */
++YAHOO.util.ImageLoader.imgObj.prototype.fetch = function() {
++	if (this._fetched) {
++		return;
++	}
++	var el = document.getElementById(this.domId);
++	if (! el) {
++		return;
++	}
++	this._applyUrl(el);
++
++	if (this.setVisible) {
++		el.style.visibility = 'visible';
++	}
++	if (this.width) {
++		el.width = this.width;
++	}
++	if (this.height) {
++		el.height = this.height;
++	}
++	this._fetched = true;
++};
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * Must be overridden by child class
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.imgObj.prototype._applyUrl = function(el) {
++};
++
++/**
++ * Background image object. A background image is one whose URL is specified by "background-image" in the element's style
++ * @class YAHOO.util.ImageLoader.bgImgObj
++ * @constructor
++ * @extends YAHOO.util.ImageLoader.imgObj
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ */
++YAHOO.util.ImageLoader.bgImgObj = function(domId, url) {
++	YAHOO.util.ImageLoader.bgImgObj.superclass.constructor.call(this, domId, url);
++};
++
++YAHOO.lang.extend(YAHOO.util.ImageLoader.bgImgObj, YAHOO.util.ImageLoader.imgObj);
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * Sets style.backgroundImage
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.bgImgObj.prototype._applyUrl = function(el) {
++	el.style.backgroundImage = "url('" + this.url + "')";
++};
++
++/**
++ * Source image object. A source image is one whose URL is specified by a src attribute in the DOM element
++ * @class YAHOO.util.ImageLoader.srcImgObj
++ * @constructor
++ * @extends YAHOO.util.ImageLoader.imgObj
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Int}	width	pixel width of the image - defaults to image's natural size
++ * @param {Int}	height	pixel height of the image - defaults to image's natural size
++ */
++YAHOO.util.ImageLoader.srcImgObj = function(domId, url, width, height) {
++	YAHOO.util.ImageLoader.srcImgObj.superclass.constructor.call(this, domId, url);
++	this.width = width;
++	this.height = height;
++};
++
++YAHOO.lang.extend(YAHOO.util.ImageLoader.srcImgObj, YAHOO.util.ImageLoader.imgObj);
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * Sets src
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.srcImgObj.prototype._applyUrl = function(el) {
++	el.src = this.url;
++};
++
++/**
++ * PNG background image object. A PNG background image is one whose URL is specified through AlphaImageLoader or by "background-image" in the element's style
++ * @class YAHOO.util.ImageLoader.pngBgImgObj
++ * @constructor
++ * @extends YAHOO.util.ImageLoader.imgObj
++ * @param {String}	domId	HTML DOM id of the image element
++ * @param {String}	url	URL for the image
++ * @param {Object}  ailProps The AlphaImageLoader properties to be set for the image
++ *                    Valid properties are 'sizingMethod' and 'enabled'
++ */
++YAHOO.util.ImageLoader.pngBgImgObj = function(domId, url, ailProps) {
++	YAHOO.util.ImageLoader.pngBgImgObj.superclass.constructor.call(this, domId, url);
++
++	/**
++	 * AlphaImageLoader properties to be set for the image.
++	 * Valid properties are "sizingMethod" and "enabled".
++	 * @property props
++	 * @type Object
++	 */
++	this.props = ailProps || {};
++};
++
++YAHOO.lang.extend(YAHOO.util.ImageLoader.pngBgImgObj, YAHOO.util.ImageLoader.imgObj);
++
++/**
++ * Inserts the image URL into the DOM so that the image is displayed.
++ * If the browser is determined to be IE6 (or older), sets the AlphaImageLoader src; otherwise sets style.backgroundImage
++ * @method _applyUrl
++ * @param {Object}	el	HTML DOM element
++ * @private
++ */
++YAHOO.util.ImageLoader.pngBgImgObj.prototype._applyUrl = function(el) {
++	if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
++		var sizingMethod = (YAHOO.lang.isUndefined(this.props.sizingMethod)) ? 'scale' : this.props.sizingMethod;
++		var enabled = (YAHOO.lang.isUndefined(this.props.enabled)) ? 'true' : this.props.enabled;
++		el.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + this.url + '", sizingMethod="' + sizingMethod + '", enabled="' + enabled + '")';
++	}
++	else {
++		el.style.backgroundImage = "url('" + this.url + "')";
++	}
++};
++YAHOO.register("imageloader", YAHOO.util.ImageLoader, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/json/json-debug.js b/pylons_app/public/js/yui/json/json-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/json/json-debug.js
+@@ -0,0 +1,538 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides methods to parse JSON strings and convert objects to JSON strings.
++ *
++ * @module json
++ * @class JSON
++ * @namespace YAHOO.lang
++ * @static
++ */
++(function () {
++
++var l = YAHOO.lang,
++    isFunction = l.isFunction,
++    isObject   = l.isObject,
++    isArray    = l.isArray,
++    _toStr     = Object.prototype.toString,
++                 // 'this' is the global object.  window in browser env.  Keep
++                 // the code env agnostic.  Caja requies window, unfortunately.
++    Native     = (YAHOO.env.ua.caja ? window : this).JSON,
++
++/* Variables used by parse */
++
++    /**
++     * Replace certain Unicode characters that JavaScript may handle incorrectly
++     * during eval--either by deleting them or treating them as line
++     * endings--with escape sequences.
++     * IMPORTANT NOTE: This regex will be used to modify the input if a match is
++     * found.
++     *
++     * @property _UNICODE_EXCEPTIONS
++     * @type {RegExp}
++     * @private
++     */
++    _UNICODE_EXCEPTIONS = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
++
++    /**
++     * First step in the safety evaluation.  Regex used to replace all escape
++     * sequences (i.e. "\\", etc) with '@' characters (a non-JSON character).
++     *
++     * @property _ESCAPES
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _ESCAPES = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
++
++    /**
++     * Second step in the safety evaluation.  Regex used to replace all simple
++     * values with ']' characters.
++     *
++     * @property _VALUES
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _VALUES  = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
++
++    /**
++     * Third step in the safety evaluation.  Regex used to remove all open
++     * square brackets following a colon, comma, or at the beginning of the
++     * string.
++     *
++     * @property _BRACKETS
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _BRACKETS = /(?:^|:|,)(?:\s*\[)+/g,
++
++    /**
++     * Final step in the safety evaluation.  Regex used to test the string left
++     * after all previous replacements for invalid characters.
++     *
++     * @property _UNSAFE
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _UNSAFE  = /^[\],:{}\s]*$/,
++
++
++/* Variables used by stringify */
++
++    /**
++     * Regex used to replace special characters in strings for JSON
++     * stringification.
++     *
++     * @property _SPECIAL_CHARS
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _SPECIAL_CHARS = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
++
++    /**
++     * Character substitution map for common escapes and special characters.
++     *
++     * @property _CHARS
++     * @type {Object}
++     * @static
++     * @private
++     */
++    _CHARS = {
++        '\b': '\\b',
++        '\t': '\\t',
++        '\n': '\\n',
++        '\f': '\\f',
++        '\r': '\\r',
++        '"' : '\\"',
++        '\\': '\\\\'
++    },
++    
++    UNDEFINED = 'undefined',
++    OBJECT    = 'object',
++    NULL      = 'null',
++    STRING    = 'string',
++    NUMBER    = 'number',
++    BOOLEAN   = 'boolean',
++    DATE      = 'date',
++    _allowable = {
++        'undefined'        : UNDEFINED,
++        'string'           : STRING,
++        '[object String]'  : STRING,
++        'number'           : NUMBER,
++        '[object Number]'  : NUMBER,
++        'boolean'          : BOOLEAN,
++        '[object Boolean]' : BOOLEAN,
++        '[object Date]'    : DATE,
++        '[object RegExp]'  : OBJECT
++    },
++    EMPTY     = '',
++    OPEN_O    = '{',
++    CLOSE_O   = '}',
++    OPEN_A    = '[',
++    CLOSE_A   = ']',
++    COMMA     = ',',
++    COMMA_CR  = ",\n",
++    CR        = "\n",
++    COLON     = ':',
++    COLON_SP  = ': ',
++    QUOTE     = '"';
++
++// Only accept JSON objects that report a [[Class]] of JSON
++Native = _toStr.call(Native) === '[object JSON]' && Native;
++
++// Escapes a special character to a safe Unicode representation
++function _char(c) {
++    if (!_CHARS[c]) {
++        _CHARS[c] =  '\\u'+('0000'+(+(c.charCodeAt(0))).toString(16)).slice(-4);
++    }
++    return _CHARS[c];
++}
++
++
++/* functions used by parse */
++
++/**
++ * Traverses nested objects, applying a filter or reviver function to
++ * each value.  The value returned from the function will replace the
++ * original value in the key:value pair.  If the value returned is
++ * undefined, the key will be omitted from the returned object.
++ *
++ * @method _revive
++ * @param data {MIXED} Any JavaScript data
++ * @param reviver {Function} filter or mutation function
++ * @return {MIXED} The results of the filtered/mutated data structure
++ * @private
++ */
++function _revive(data, reviver) {
++    var walk = function (o,key) {
++        var k,v,value = o[key];
++        if (value && typeof value === 'object') {
++            for (k in value) {
++                if (l.hasOwnProperty(value,k)) {
++                    v = walk(value, k);
++                    if (v === undefined) {
++                        delete value[k];
++                    } else {
++                        value[k] = v;
++                    }
++                }
++            }
++        }
++        return reviver.call(o,key,value);
++    };
++
++    return typeof reviver === 'function' ? walk({'':data},'') : data;
++}
++
++/**
++ * Replace certain Unicode characters that may be handled incorrectly by
++ * some browser implementations.
++ *
++ * @method _prepare
++ * @param s {String} parse input
++ * @return {String} sanitized JSON string ready to be validated/parsed
++ * @private
++ */
++function _prepare(s) {
++    return s.replace(_UNICODE_EXCEPTIONS, _char);
++}
++
++function _isSafe(str) {
++    return l.isString(str) &&
++            _UNSAFE.test(str.replace(_ESCAPES,'@').
++                             replace(_VALUES,']').
++                             replace(_BRACKETS,''));
++}
++
++function _parse(s,reviver) {
++    // sanitize
++    s = _prepare(s);
++
++    // Ensure valid JSON
++    if (_isSafe(s)) {
++        // Eval the text into a JavaScript data structure, apply the
++        // reviver function if provided, and return
++        return _revive( eval('(' + s + ')'), reviver );
++    }
++
++    // The text is not valid JSON
++    throw new SyntaxError('JSON.parse');
++}
++
++
++
++/* functions used by stringify */
++
++// Utility function used to determine how to serialize a variable.
++function _type(o) {
++    var t = typeof o;
++    return  _allowable[t] ||              // number, string, boolean, undefined
++            _allowable[_toStr.call(o)] || // Number, String, Boolean, Date
++            (t === OBJECT ?
++                (o ? OBJECT : NULL) :     // object, array, null, misc natives
++                UNDEFINED);               // function, unknown
++}
++
++// Enclose escaped strings in quotes
++function _string(s) {
++    return QUOTE + s.replace(_SPECIAL_CHARS, _char) + QUOTE;
++}
++
++// Adds the provided space to the beginning of every line in the input string
++function _indent(s,space) {
++    return s.replace(/^/gm, space);
++}
++
++// JavaScript implementation of stringify (see API declaration of stringify)
++function _stringify(o,w,space) {
++    if (o === undefined) {
++        return undefined;
++    }
++
++    var replacer = isFunction(w) ? w : null,
++        format   = _toStr.call(space).match(/String|Number/) || [],
++        _date    = YAHOO.lang.JSON.dateToString,
++        stack    = [],
++        tmp,i,len;
++
++    if (replacer || !isArray(w)) {
++        w = undefined;
++    }
++
++    // Ensure whitelist keys are unique (bug 2110391)
++    if (w) {
++        tmp = {};
++        for (i = 0, len = w.length; i < len; ++i) {
++            tmp[w[i]] = true;
++        }
++        w = tmp;
++    }
++
++    // Per the spec, strings are truncated to 10 characters and numbers
++    // are converted to that number of spaces (max 10)
++    space = format[0] === 'Number' ?
++                new Array(Math.min(Math.max(0,space),10)+1).join(" ") :
++                (space || EMPTY).slice(0,10);
++
++    function _serialize(h,key) {
++        var value = h[key],
++            t     = _type(value),
++            a     = [],
++            colon = space ? COLON_SP : COLON,
++            arr, i, keys, k, v;
++
++        // Per the ECMA 5 spec, toJSON is applied before the replacer is
++        // called.  Also per the spec, Date.prototype.toJSON has been added, so
++        // Date instances should be serialized prior to exposure to the
++        // replacer.  I disagree with this decision, but the spec is the spec.
++        if (isObject(value) && isFunction(value.toJSON)) {
++            value = value.toJSON(key);
++        } else if (t === DATE) {
++            value = _date(value);
++        }
++
++        if (isFunction(replacer)) {
++            value = replacer.call(h,key,value);
++        }
++
++        if (value !== h[key]) {
++            t = _type(value);
++        }
++
++        switch (t) {
++            case DATE    : // intentional fallthrough.  Pre-replacer Dates are
++                           // serialized in the toJSON stage.  Dates here would
++                           // have been produced by the replacer.
++            case OBJECT  : break;
++            case STRING  : return _string(value);
++            case NUMBER  : return isFinite(value) ? value+EMPTY : NULL;
++            case BOOLEAN : return value+EMPTY;
++            case NULL    : return NULL;
++            default      : return undefined;
++        }
++
++        // Check for cyclical references in nested objects
++        for (i = stack.length - 1; i >= 0; --i) {
++            if (stack[i] === value) {
++                throw new Error("JSON.stringify. Cyclical reference");
++            }
++        }
++
++        arr = isArray(value);
++
++        // Add the object to the processing stack
++        stack.push(value);
++
++        if (arr) { // Array
++            for (i = value.length - 1; i >= 0; --i) {
++                a[i] = _serialize(value, i) || NULL;
++            }
++        } else {   // Object
++            // If whitelist provided, take only those keys
++            keys = w || value;
++            i = 0;
++
++            for (k in keys) {
++                if (keys.hasOwnProperty(k)) {
++                    v = _serialize(value, k);
++                    if (v) {
++                        a[i++] = _string(k) + colon + v;
++                    }
++                }
++            }
++        }
++
++        // remove the array from the stack
++        stack.pop();
++
++        if (space && a.length) {
++            return arr ?
++                OPEN_A + CR + _indent(a.join(COMMA_CR), space) + CR + CLOSE_A :
++                OPEN_O + CR + _indent(a.join(COMMA_CR), space) + CR + CLOSE_O;
++        } else {
++            return arr ?
++                OPEN_A + a.join(COMMA) + CLOSE_A :
++                OPEN_O + a.join(COMMA) + CLOSE_O;
++        }
++    }
++
++    // process the input
++    return _serialize({'':o},'');
++}
++
++
++/* Public API */
++YAHOO.lang.JSON = {
++    /**
++     * Leverage native JSON parse if the browser has a native implementation.
++     * In general, this is a good idea.  See the Known Issues section in the
++     * JSON user guide for caveats.  The default value is true for browsers with
++     * native JSON support.
++     *
++     * @property useNativeParse
++     * @type Boolean
++     * @default true
++     * @static
++     */
++    useNativeParse : !!Native,
++
++    /**
++     * Leverage native JSON stringify if the browser has a native
++     * implementation.  In general, this is a good idea.  See the Known Issues
++     * section in the JSON user guide for caveats.  The default value is true
++     * for browsers with native JSON support.
++     *
++     * @property useNativeStringify
++     * @type Boolean
++     * @default true
++     * @static
++     */
++    useNativeStringify : !!Native,
++
++    /**
++     * Four step determination whether a string is safe to eval. In three steps,
++     * escape sequences, safe values, and properly placed open square brackets
++     * are replaced with placeholders or removed.  Then in the final step, the
++     * result of all these replacements is checked for invalid characters.
++     *
++     * @method isSafe
++     * @param str {String} JSON string to be tested
++     * @return {boolean} is the string safe for eval?
++     * @static
++     */
++    isSafe : function (s) {
++        return _isSafe(_prepare(s));
++    },
++
++    /**
++     * <p>Parse a JSON string, returning the native JavaScript
++     * representation.</p>
++     *
++     * <p>When lang.JSON.useNativeParse is true, this will defer to the native
++     * JSON.parse if the browser has a native implementation.  Otherwise, a
++     * JavaScript implementation based on http://www.json.org/json2.js
++     * is used.</p>
++     *
++     * @method parse
++     * @param s {string} JSON string data
++     * @param reviver {function} (optional) function(k,v) passed each key:value
++     *          pair of object literals, allowing pruning or altering values
++     * @return {MIXED} the native JavaScript representation of the JSON string
++     * @throws SyntaxError
++     * @static
++     */
++    parse : function (s,reviver) {
++        return Native && YAHOO.lang.JSON.useNativeParse ?
++            Native.parse(s,reviver) : _parse(s,reviver);
++    },
++
++    /**
++     * <p>Converts an arbitrary value to a JSON string representation.</p>
++     *
++     * <p>Objects with cyclical references will trigger an exception.</p>
++     *
++     * <p>If a whitelist is provided, only matching object keys will be
++     * included.  Alternately, a replacer function may be passed as the
++     * second parameter.  This function is executed on every value in the
++     * input, and its return value will be used in place of the original value.
++     * This is useful to serialize specialized objects or class instances.</p>
++     *
++     * <p>If a positive integer or non-empty string is passed as the third
++     * parameter, the output will be formatted with carriage returns and
++     * indentation for readability.  If a String is passed (such as "\t") it
++     * will be used once for each indentation level.  If a number is passed,
++     * that number of spaces will be used.</p>
++     *
++     * <p>When lang.JSON.useNativeStringify is true, this will defer to the
++     * native JSON.stringify if the browser has a native implementation.
++     * Otherwise, a JavaScript implementation is used.</p>
++     *
++     * @method stringify
++     * @param o {MIXED} any arbitrary object to convert to JSON string
++     * @param w {Array|Function} (optional) whitelist of acceptable object keys
++     *                  to include OR a function(value,key) to alter values
++     *                  before serialization
++     * @param space {Number|String} (optional) indentation character(s) or
++     *                  depthy of spaces to format the output 
++     * @return {string} JSON string representation of the input
++     * @throws Error
++     * @static
++     */
++    stringify : function (o,w,space) {
++        return Native && YAHOO.lang.JSON.useNativeStringify ?
++            Native.stringify(o,w,space) : _stringify(o,w,space);
++    },
++
++    /**
++     * Serializes a Date instance as a UTC date string.  Used internally by
++     * the JavaScript implementation of stringify.  If you need a different
++     * Date serialization format, override this method.  If you change this,
++     * you should also set useNativeStringify to false, since native JSON
++     * implementations serialize Dates per the ECMAScript 5 spec.  You've been
++     * warned.
++     *
++     * @method dateToString
++     * @param d {Date} The Date to serialize
++     * @return {String} stringified Date in UTC format YYYY-MM-DDTHH:mm:SSZ
++     * @static
++     */
++    dateToString : function (d) {
++        function _zeroPad(v) {
++            return v < 10 ? '0' + v : v;
++        }
++
++        return d.getUTCFullYear()         + '-' +
++            _zeroPad(d.getUTCMonth() + 1) + '-' +
++            _zeroPad(d.getUTCDate())      + 'T' +
++            _zeroPad(d.getUTCHours())     + COLON +
++            _zeroPad(d.getUTCMinutes())   + COLON +
++            _zeroPad(d.getUTCSeconds())   + 'Z';
++    },
++
++    /**
++     * Reconstitute Date instances from the default JSON UTC serialization.
++     * Reference this from a reviver function to rebuild Dates during the
++     * parse operation.
++     *
++     * @method stringToDate
++     * @param str {String} String serialization of a Date
++     * @return {Date}
++     */
++    stringToDate : function (str) {
++        var m = str.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?Z$/);
++        if (m) {
++            var d = new Date();
++            d.setUTCFullYear(m[1], m[2]-1, m[3]);
++            d.setUTCHours(m[4], m[5], m[6], (m[7] || 0));
++            return d;
++        }
++        return str;
++    }
++};
++
++/**
++ * <p>Four step determination whether a string is safe to eval. In three steps,
++ * escape sequences, safe values, and properly placed open square brackets
++ * are replaced with placeholders or removed.  Then in the final step, the
++ * result of all these replacements is checked for invalid characters.</p>
++ *
++ * <p>This is an alias for isSafe.</p>
++ *
++ * @method isValid
++ * @param str {String} JSON string to be tested
++ * @return {boolean} is the string safe for eval?
++ * @static
++ * @deprecated use isSafe
++ */
++YAHOO.lang.JSON.isValid = YAHOO.lang.JSON.isSafe;
++
++})();
++YAHOO.register("json", YAHOO.lang.JSON, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/json/json-min.js b/pylons_app/public/js/yui/json/json-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/json/json-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var l=YAHOO.lang,isFunction=l.isFunction,isObject=l.isObject,isArray=l.isArray,_toStr=Object.prototype.toString,Native=(YAHOO.env.ua.caja?window:this).JSON,_UNICODE_EXCEPTIONS=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_ESCAPES=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS=/(?:^|:|,)(?:\s*\[)+/g,_UNSAFE=/^[\],:{}\s]*$/,_SPECIAL_CHARS=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},UNDEFINED="undefined",OBJECT="object",NULL="null",STRING="string",NUMBER="number",BOOLEAN="boolean",DATE="date",_allowable={"undefined":UNDEFINED,"string":STRING,"[object String]":STRING,"number":NUMBER,"[object Number]":NUMBER,"boolean":BOOLEAN,"[object Boolean]":BOOLEAN,"[object Date]":DATE,"[object RegExp]":OBJECT},EMPTY="",OPEN_O="{",CLOSE_O="}",OPEN_A="[",CLOSE_A="]",COMMA=",",COMMA_CR=",\n",CR="\n",COLON=":",COLON_SP=": ",QUOTE='"';Native=_toStr.call(Native)==="[object JSON]"&&Native;function _char(c){if(!_CHARS[c]){_CHARS[c]="\\u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4);}return _CHARS[c];}function _revive(data,reviver){var walk=function(o,key){var k,v,value=o[key];if(value&&typeof value==="object"){for(k in value){if(l.hasOwnProperty(value,k)){v=walk(value,k);if(v===undefined){delete value[k];}else{value[k]=v;}}}}return reviver.call(o,key,value);};return typeof reviver==="function"?walk({"":data},""):data;}function _prepare(s){return s.replace(_UNICODE_EXCEPTIONS,_char);}function _isSafe(str){return l.isString(str)&&_UNSAFE.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""));}function _parse(s,reviver){s=_prepare(s);if(_isSafe(s)){return _revive(eval("("+s+")"),reviver);}throw new SyntaxError("JSON.parse");}function _type(o){var t=typeof o;return _allowable[t]||_allowable[_toStr.call(o)]||(t===OBJECT?(o?OBJECT:NULL):UNDEFINED);}function _string(s){return QUOTE+s.replace(_SPECIAL_CHARS,_char)+QUOTE;}function _indent(s,space){return s.replace(/^/gm,space);}function _stringify(o,w,space){if(o===undefined){return undefined;}var replacer=isFunction(w)?w:null,format=_toStr.call(space).match(/String|Number/)||[],_date=YAHOO.lang.JSON.dateToString,stack=[],tmp,i,len;if(replacer||!isArray(w)){w=undefined;}if(w){tmp={};for(i=0,len=w.length;i<len;++i){tmp[w[i]]=true;}w=tmp;}space=format[0]==="Number"?new Array(Math.min(Math.max(0,space),10)+1).join(" "):(space||EMPTY).slice(0,10);function _serialize(h,key){var value=h[key],t=_type(value),a=[],colon=space?COLON_SP:COLON,arr,i,keys,k,v;if(isObject(value)&&isFunction(value.toJSON)){value=value.toJSON(key);}else{if(t===DATE){value=_date(value);}}if(isFunction(replacer)){value=replacer.call(h,key,value);}if(value!==h[key]){t=_type(value);}switch(t){case DATE:case OBJECT:break;case STRING:return _string(value);case NUMBER:return isFinite(value)?value+EMPTY:NULL;case BOOLEAN:return value+EMPTY;case NULL:return NULL;default:return undefined;}for(i=stack.length-1;i>=0;--i){if(stack[i]===value){throw new Error("JSON.stringify. Cyclical reference");}}arr=isArray(value);stack.push(value);if(arr){for(i=value.length-1;i>=0;--i){a[i]=_serialize(value,i)||NULL;}}else{keys=w||value;i=0;for(k in keys){if(keys.hasOwnProperty(k)){v=_serialize(value,k);if(v){a[i++]=_string(k)+colon+v;}}}}stack.pop();if(space&&a.length){return arr?OPEN_A+CR+_indent(a.join(COMMA_CR),space)+CR+CLOSE_A:OPEN_O+CR+_indent(a.join(COMMA_CR),space)+CR+CLOSE_O;}else{return arr?OPEN_A+a.join(COMMA)+CLOSE_A:OPEN_O+a.join(COMMA)+CLOSE_O;}}return _serialize({"":o},"");}YAHOO.lang.JSON={useNativeParse:!!Native,useNativeStringify:!!Native,isSafe:function(s){return _isSafe(_prepare(s));},parse:function(s,reviver){return Native&&YAHOO.lang.JSON.useNativeParse?Native.parse(s,reviver):_parse(s,reviver);},stringify:function(o,w,space){return Native&&YAHOO.lang.JSON.useNativeStringify?Native.stringify(o,w,space):_stringify(o,w,space);},dateToString:function(d){function _zeroPad(v){return v<10?"0"+v:v;}return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+COLON+_zeroPad(d.getUTCMinutes())+COLON+_zeroPad(d.getUTCSeconds())+"Z";},stringToDate:function(str){var m=str.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?Z$/);if(m){var d=new Date();d.setUTCFullYear(m[1],m[2]-1,m[3]);d.setUTCHours(m[4],m[5],m[6],(m[7]||0));return d;}return str;}};YAHOO.lang.JSON.isValid=YAHOO.lang.JSON.isSafe;})();YAHOO.register("json",YAHOO.lang.JSON,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/json/json.js b/pylons_app/public/js/yui/json/json.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/json/json.js
+@@ -0,0 +1,538 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides methods to parse JSON strings and convert objects to JSON strings.
++ *
++ * @module json
++ * @class JSON
++ * @namespace YAHOO.lang
++ * @static
++ */
++(function () {
++
++var l = YAHOO.lang,
++    isFunction = l.isFunction,
++    isObject   = l.isObject,
++    isArray    = l.isArray,
++    _toStr     = Object.prototype.toString,
++                 // 'this' is the global object.  window in browser env.  Keep
++                 // the code env agnostic.  Caja requies window, unfortunately.
++    Native     = (YAHOO.env.ua.caja ? window : this).JSON,
++
++/* Variables used by parse */
++
++    /**
++     * Replace certain Unicode characters that JavaScript may handle incorrectly
++     * during eval--either by deleting them or treating them as line
++     * endings--with escape sequences.
++     * IMPORTANT NOTE: This regex will be used to modify the input if a match is
++     * found.
++     *
++     * @property _UNICODE_EXCEPTIONS
++     * @type {RegExp}
++     * @private
++     */
++    _UNICODE_EXCEPTIONS = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
++
++    /**
++     * First step in the safety evaluation.  Regex used to replace all escape
++     * sequences (i.e. "\\", etc) with '@' characters (a non-JSON character).
++     *
++     * @property _ESCAPES
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _ESCAPES = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
++
++    /**
++     * Second step in the safety evaluation.  Regex used to replace all simple
++     * values with ']' characters.
++     *
++     * @property _VALUES
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _VALUES  = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
++
++    /**
++     * Third step in the safety evaluation.  Regex used to remove all open
++     * square brackets following a colon, comma, or at the beginning of the
++     * string.
++     *
++     * @property _BRACKETS
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _BRACKETS = /(?:^|:|,)(?:\s*\[)+/g,
++
++    /**
++     * Final step in the safety evaluation.  Regex used to test the string left
++     * after all previous replacements for invalid characters.
++     *
++     * @property _UNSAFE
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _UNSAFE  = /^[\],:{}\s]*$/,
++
++
++/* Variables used by stringify */
++
++    /**
++     * Regex used to replace special characters in strings for JSON
++     * stringification.
++     *
++     * @property _SPECIAL_CHARS
++     * @type {RegExp}
++     * @static
++     * @private
++     */
++    _SPECIAL_CHARS = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
++
++    /**
++     * Character substitution map for common escapes and special characters.
++     *
++     * @property _CHARS
++     * @type {Object}
++     * @static
++     * @private
++     */
++    _CHARS = {
++        '\b': '\\b',
++        '\t': '\\t',
++        '\n': '\\n',
++        '\f': '\\f',
++        '\r': '\\r',
++        '"' : '\\"',
++        '\\': '\\\\'
++    },
++    
++    UNDEFINED = 'undefined',
++    OBJECT    = 'object',
++    NULL      = 'null',
++    STRING    = 'string',
++    NUMBER    = 'number',
++    BOOLEAN   = 'boolean',
++    DATE      = 'date',
++    _allowable = {
++        'undefined'        : UNDEFINED,
++        'string'           : STRING,
++        '[object String]'  : STRING,
++        'number'           : NUMBER,
++        '[object Number]'  : NUMBER,
++        'boolean'          : BOOLEAN,
++        '[object Boolean]' : BOOLEAN,
++        '[object Date]'    : DATE,
++        '[object RegExp]'  : OBJECT
++    },
++    EMPTY     = '',
++    OPEN_O    = '{',
++    CLOSE_O   = '}',
++    OPEN_A    = '[',
++    CLOSE_A   = ']',
++    COMMA     = ',',
++    COMMA_CR  = ",\n",
++    CR        = "\n",
++    COLON     = ':',
++    COLON_SP  = ': ',
++    QUOTE     = '"';
++
++// Only accept JSON objects that report a [[Class]] of JSON
++Native = _toStr.call(Native) === '[object JSON]' && Native;
++
++// Escapes a special character to a safe Unicode representation
++function _char(c) {
++    if (!_CHARS[c]) {
++        _CHARS[c] =  '\\u'+('0000'+(+(c.charCodeAt(0))).toString(16)).slice(-4);
++    }
++    return _CHARS[c];
++}
++
++
++/* functions used by parse */
++
++/**
++ * Traverses nested objects, applying a filter or reviver function to
++ * each value.  The value returned from the function will replace the
++ * original value in the key:value pair.  If the value returned is
++ * undefined, the key will be omitted from the returned object.
++ *
++ * @method _revive
++ * @param data {MIXED} Any JavaScript data
++ * @param reviver {Function} filter or mutation function
++ * @return {MIXED} The results of the filtered/mutated data structure
++ * @private
++ */
++function _revive(data, reviver) {
++    var walk = function (o,key) {
++        var k,v,value = o[key];
++        if (value && typeof value === 'object') {
++            for (k in value) {
++                if (l.hasOwnProperty(value,k)) {
++                    v = walk(value, k);
++                    if (v === undefined) {
++                        delete value[k];
++                    } else {
++                        value[k] = v;
++                    }
++                }
++            }
++        }
++        return reviver.call(o,key,value);
++    };
++
++    return typeof reviver === 'function' ? walk({'':data},'') : data;
++}
++
++/**
++ * Replace certain Unicode characters that may be handled incorrectly by
++ * some browser implementations.
++ *
++ * @method _prepare
++ * @param s {String} parse input
++ * @return {String} sanitized JSON string ready to be validated/parsed
++ * @private
++ */
++function _prepare(s) {
++    return s.replace(_UNICODE_EXCEPTIONS, _char);
++}
++
++function _isSafe(str) {
++    return l.isString(str) &&
++            _UNSAFE.test(str.replace(_ESCAPES,'@').
++                             replace(_VALUES,']').
++                             replace(_BRACKETS,''));
++}
++
++function _parse(s,reviver) {
++    // sanitize
++    s = _prepare(s);
++
++    // Ensure valid JSON
++    if (_isSafe(s)) {
++        // Eval the text into a JavaScript data structure, apply the
++        // reviver function if provided, and return
++        return _revive( eval('(' + s + ')'), reviver );
++    }
++
++    // The text is not valid JSON
++    throw new SyntaxError('JSON.parse');
++}
++
++
++
++/* functions used by stringify */
++
++// Utility function used to determine how to serialize a variable.
++function _type(o) {
++    var t = typeof o;
++    return  _allowable[t] ||              // number, string, boolean, undefined
++            _allowable[_toStr.call(o)] || // Number, String, Boolean, Date
++            (t === OBJECT ?
++                (o ? OBJECT : NULL) :     // object, array, null, misc natives
++                UNDEFINED);               // function, unknown
++}
++
++// Enclose escaped strings in quotes
++function _string(s) {
++    return QUOTE + s.replace(_SPECIAL_CHARS, _char) + QUOTE;
++}
++
++// Adds the provided space to the beginning of every line in the input string
++function _indent(s,space) {
++    return s.replace(/^/gm, space);
++}
++
++// JavaScript implementation of stringify (see API declaration of stringify)
++function _stringify(o,w,space) {
++    if (o === undefined) {
++        return undefined;
++    }
++
++    var replacer = isFunction(w) ? w : null,
++        format   = _toStr.call(space).match(/String|Number/) || [],
++        _date    = YAHOO.lang.JSON.dateToString,
++        stack    = [],
++        tmp,i,len;
++
++    if (replacer || !isArray(w)) {
++        w = undefined;
++    }
++
++    // Ensure whitelist keys are unique (bug 2110391)
++    if (w) {
++        tmp = {};
++        for (i = 0, len = w.length; i < len; ++i) {
++            tmp[w[i]] = true;
++        }
++        w = tmp;
++    }
++
++    // Per the spec, strings are truncated to 10 characters and numbers
++    // are converted to that number of spaces (max 10)
++    space = format[0] === 'Number' ?
++                new Array(Math.min(Math.max(0,space),10)+1).join(" ") :
++                (space || EMPTY).slice(0,10);
++
++    function _serialize(h,key) {
++        var value = h[key],
++            t     = _type(value),
++            a     = [],
++            colon = space ? COLON_SP : COLON,
++            arr, i, keys, k, v;
++
++        // Per the ECMA 5 spec, toJSON is applied before the replacer is
++        // called.  Also per the spec, Date.prototype.toJSON has been added, so
++        // Date instances should be serialized prior to exposure to the
++        // replacer.  I disagree with this decision, but the spec is the spec.
++        if (isObject(value) && isFunction(value.toJSON)) {
++            value = value.toJSON(key);
++        } else if (t === DATE) {
++            value = _date(value);
++        }
++
++        if (isFunction(replacer)) {
++            value = replacer.call(h,key,value);
++        }
++
++        if (value !== h[key]) {
++            t = _type(value);
++        }
++
++        switch (t) {
++            case DATE    : // intentional fallthrough.  Pre-replacer Dates are
++                           // serialized in the toJSON stage.  Dates here would
++                           // have been produced by the replacer.
++            case OBJECT  : break;
++            case STRING  : return _string(value);
++            case NUMBER  : return isFinite(value) ? value+EMPTY : NULL;
++            case BOOLEAN : return value+EMPTY;
++            case NULL    : return NULL;
++            default      : return undefined;
++        }
++
++        // Check for cyclical references in nested objects
++        for (i = stack.length - 1; i >= 0; --i) {
++            if (stack[i] === value) {
++                throw new Error("JSON.stringify. Cyclical reference");
++            }
++        }
++
++        arr = isArray(value);
++
++        // Add the object to the processing stack
++        stack.push(value);
++
++        if (arr) { // Array
++            for (i = value.length - 1; i >= 0; --i) {
++                a[i] = _serialize(value, i) || NULL;
++            }
++        } else {   // Object
++            // If whitelist provided, take only those keys
++            keys = w || value;
++            i = 0;
++
++            for (k in keys) {
++                if (keys.hasOwnProperty(k)) {
++                    v = _serialize(value, k);
++                    if (v) {
++                        a[i++] = _string(k) + colon + v;
++                    }
++                }
++            }
++        }
++
++        // remove the array from the stack
++        stack.pop();
++
++        if (space && a.length) {
++            return arr ?
++                OPEN_A + CR + _indent(a.join(COMMA_CR), space) + CR + CLOSE_A :
++                OPEN_O + CR + _indent(a.join(COMMA_CR), space) + CR + CLOSE_O;
++        } else {
++            return arr ?
++                OPEN_A + a.join(COMMA) + CLOSE_A :
++                OPEN_O + a.join(COMMA) + CLOSE_O;
++        }
++    }
++
++    // process the input
++    return _serialize({'':o},'');
++}
++
++
++/* Public API */
++YAHOO.lang.JSON = {
++    /**
++     * Leverage native JSON parse if the browser has a native implementation.
++     * In general, this is a good idea.  See the Known Issues section in the
++     * JSON user guide for caveats.  The default value is true for browsers with
++     * native JSON support.
++     *
++     * @property useNativeParse
++     * @type Boolean
++     * @default true
++     * @static
++     */
++    useNativeParse : !!Native,
++
++    /**
++     * Leverage native JSON stringify if the browser has a native
++     * implementation.  In general, this is a good idea.  See the Known Issues
++     * section in the JSON user guide for caveats.  The default value is true
++     * for browsers with native JSON support.
++     *
++     * @property useNativeStringify
++     * @type Boolean
++     * @default true
++     * @static
++     */
++    useNativeStringify : !!Native,
++
++    /**
++     * Four step determination whether a string is safe to eval. In three steps,
++     * escape sequences, safe values, and properly placed open square brackets
++     * are replaced with placeholders or removed.  Then in the final step, the
++     * result of all these replacements is checked for invalid characters.
++     *
++     * @method isSafe
++     * @param str {String} JSON string to be tested
++     * @return {boolean} is the string safe for eval?
++     * @static
++     */
++    isSafe : function (s) {
++        return _isSafe(_prepare(s));
++    },
++
++    /**
++     * <p>Parse a JSON string, returning the native JavaScript
++     * representation.</p>
++     *
++     * <p>When lang.JSON.useNativeParse is true, this will defer to the native
++     * JSON.parse if the browser has a native implementation.  Otherwise, a
++     * JavaScript implementation based on http://www.json.org/json2.js
++     * is used.</p>
++     *
++     * @method parse
++     * @param s {string} JSON string data
++     * @param reviver {function} (optional) function(k,v) passed each key:value
++     *          pair of object literals, allowing pruning or altering values
++     * @return {MIXED} the native JavaScript representation of the JSON string
++     * @throws SyntaxError
++     * @static
++     */
++    parse : function (s,reviver) {
++        return Native && YAHOO.lang.JSON.useNativeParse ?
++            Native.parse(s,reviver) : _parse(s,reviver);
++    },
++
++    /**
++     * <p>Converts an arbitrary value to a JSON string representation.</p>
++     *
++     * <p>Objects with cyclical references will trigger an exception.</p>
++     *
++     * <p>If a whitelist is provided, only matching object keys will be
++     * included.  Alternately, a replacer function may be passed as the
++     * second parameter.  This function is executed on every value in the
++     * input, and its return value will be used in place of the original value.
++     * This is useful to serialize specialized objects or class instances.</p>
++     *
++     * <p>If a positive integer or non-empty string is passed as the third
++     * parameter, the output will be formatted with carriage returns and
++     * indentation for readability.  If a String is passed (such as "\t") it
++     * will be used once for each indentation level.  If a number is passed,
++     * that number of spaces will be used.</p>
++     *
++     * <p>When lang.JSON.useNativeStringify is true, this will defer to the
++     * native JSON.stringify if the browser has a native implementation.
++     * Otherwise, a JavaScript implementation is used.</p>
++     *
++     * @method stringify
++     * @param o {MIXED} any arbitrary object to convert to JSON string
++     * @param w {Array|Function} (optional) whitelist of acceptable object keys
++     *                  to include OR a function(value,key) to alter values
++     *                  before serialization
++     * @param space {Number|String} (optional) indentation character(s) or
++     *                  depthy of spaces to format the output 
++     * @return {string} JSON string representation of the input
++     * @throws Error
++     * @static
++     */
++    stringify : function (o,w,space) {
++        return Native && YAHOO.lang.JSON.useNativeStringify ?
++            Native.stringify(o,w,space) : _stringify(o,w,space);
++    },
++
++    /**
++     * Serializes a Date instance as a UTC date string.  Used internally by
++     * the JavaScript implementation of stringify.  If you need a different
++     * Date serialization format, override this method.  If you change this,
++     * you should also set useNativeStringify to false, since native JSON
++     * implementations serialize Dates per the ECMAScript 5 spec.  You've been
++     * warned.
++     *
++     * @method dateToString
++     * @param d {Date} The Date to serialize
++     * @return {String} stringified Date in UTC format YYYY-MM-DDTHH:mm:SSZ
++     * @static
++     */
++    dateToString : function (d) {
++        function _zeroPad(v) {
++            return v < 10 ? '0' + v : v;
++        }
++
++        return d.getUTCFullYear()         + '-' +
++            _zeroPad(d.getUTCMonth() + 1) + '-' +
++            _zeroPad(d.getUTCDate())      + 'T' +
++            _zeroPad(d.getUTCHours())     + COLON +
++            _zeroPad(d.getUTCMinutes())   + COLON +
++            _zeroPad(d.getUTCSeconds())   + 'Z';
++    },
++
++    /**
++     * Reconstitute Date instances from the default JSON UTC serialization.
++     * Reference this from a reviver function to rebuild Dates during the
++     * parse operation.
++     *
++     * @method stringToDate
++     * @param str {String} String serialization of a Date
++     * @return {Date}
++     */
++    stringToDate : function (str) {
++        var m = str.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?Z$/);
++        if (m) {
++            var d = new Date();
++            d.setUTCFullYear(m[1], m[2]-1, m[3]);
++            d.setUTCHours(m[4], m[5], m[6], (m[7] || 0));
++            return d;
++        }
++        return str;
++    }
++};
++
++/**
++ * <p>Four step determination whether a string is safe to eval. In three steps,
++ * escape sequences, safe values, and properly placed open square brackets
++ * are replaced with placeholders or removed.  Then in the final step, the
++ * result of all these replacements is checked for invalid characters.</p>
++ *
++ * <p>This is an alias for isSafe.</p>
++ *
++ * @method isValid
++ * @param str {String} JSON string to be tested
++ * @return {boolean} is the string safe for eval?
++ * @static
++ * @deprecated use isSafe
++ */
++YAHOO.lang.JSON.isValid = YAHOO.lang.JSON.isSafe;
++
++})();
++YAHOO.register("json", YAHOO.lang.JSON, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/layout/assets/layout-core.css b/pylons_app/public/js/yui/layout/assets/layout-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/layout/assets/layout-core.css
+@@ -0,0 +1,158 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-layout-loading {
++    visibility: hidden;
++}
++
++body.yui-layout {
++    overflow: hidden;
++    position: relative;
++    padding: 0;
++    margin: 0;
++}
++
++.yui-layout-doc {
++    position: relative;
++    overflow: hidden;
++    padding: 0;
++    margin: 0;
++}
++
++.yui-layout-unit {
++    height: 50px;
++    width: 50px;
++    padding: 0;
++    margin: 0;
++    float: none;
++    z-index: 0;
++    /*overflow: hidden;*/
++}
++
++.yui-layout-unit-top {
++    position: absolute;
++    top: 0;
++    left: 0;
++    width: 100%;
++}
++
++.yui-layout-unit-left {
++    position: absolute;
++    top: 0;
++    left: 0;
++}
++
++.yui-layout-unit-right {
++    position: absolute;
++    top: 0;
++    right: 0;
++}
++
++.yui-layout-unit-bottom {
++    position: absolute;
++    bottom: 0;
++    left: 0;
++    width: 100%;
++}
++
++.yui-layout-unit-center {
++    position: absolute;
++    top: 0;
++    left: 0;
++    width: 100%;
++}
++
++.yui-layout div.yui-layout-hd {
++    position: absolute;
++    top: 0;
++    left: 0;
++    zoom: 1;
++    width: 100%;
++    /*overflow: hidden;*/
++}
++.yui-layout div.yui-layout-bd {
++    position: absolute;
++    top: 0;
++    left: 0;
++    zoom: 1;
++    width: 100%;
++    /*overflow: hidden;*/
++}
++.yui-layout .yui-layout-noscroll div.yui-layout-bd {
++    overflow: hidden;
++}
++.yui-layout .yui-layout-scroll div.yui-layout-bd {
++    overflow: auto;
++}
++.yui-layout div.yui-layout-ft {
++    position: absolute;
++    bottom: 0;
++    left: 0;
++    width: 100%;
++    zoom: 1;
++    /*overflow: hidden;*/
++}
++
++.yui-layout .yui-layout-unit div.yui-layout-hd h2 {
++    text-align: left;
++}
++
++.yui-layout .yui-layout-unit div.yui-layout-hd .collapse {
++    cursor: pointer;
++    height: 13px;
++    position: absolute;
++    right: 2px;
++    top: 2px;
++    width: 17px;
++    font-size: 0;
++}
++
++.yui-layout .yui-layout-unit div.yui-layout-hd .close {
++    cursor: pointer;
++    height: 13px;
++    position: absolute;
++    right: 2px;
++    top: 2px;
++    width: 17px;
++    font-size: 0;
++}
++.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close {
++    right: 25px;
++}
++
++
++.yui-layout .yui-layout-clip {
++    position: absolute;
++    height: 20px;
++    background-color: #c0c0c0;
++    display: none;
++}
++
++.yui-layout .yui-layout-clip .collapse {
++    cursor: pointer;
++    height: 13px;
++    position: absolute;
++    right: 2px;
++    top: 2px;
++    width: 17px;
++    font-size: 0px;
++}
++
++.yui-layout .yui-layout-wrap {
++    height: 100%;
++    width: 100%;
++    position: absolute;
++    left: 0;
++}
++
++/*
++.yui-layout .yui-layout-unit .yui-content {
++    overflow: hidden;
++}
++.yui-layout .yui-layout-unit .yui-layout-scroll {
++    overflow: auto;
++}
++*/
+diff --git a/pylons_app/public/js/yui/layout/assets/skins/sam/layout-skin.css b/pylons_app/public/js/yui/layout/assets/skins/sam/layout-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/layout/assets/skins/sam/layout-skin.css
+@@ -0,0 +1,207 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Remove the dotted border on the resize proxy */
++.yui-skin-sam .yui-layout .yui-resize-proxy {
++    border: none;
++    font-size: 0;
++    margin: 0;
++    padding: 0;
++}
++/* During resize, hide the handles */
++.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle {
++    /*visibility: hidden;*/
++    display: none;
++    zoom: 1;
++}
++/* Style the div inside the resize proxy */
++.yui-skin-sam .yui-layout .yui-resize-proxy div {
++    position: absolute;
++    border: 1px solid #808080;
++    background-color: #EDF5FF;
++}
++/* Set the color of the Active resize handle */
++.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active {
++    zoom: 1;
++}
++/* Styles for the left handle */
++.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l {
++    width: 5px;
++    height: 100%;
++    top: 0;
++    left: 0;
++    zoom: 1;
++}
++/* Styles for the right handle */
++.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r {
++    width: 5px;
++    top: 0;
++    right: 0;
++    height: 100%;
++    position: absolute;
++    zoom: 1;
++}
++/* Styles for the bottom handle */
++.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b {
++    width: 100%;
++    bottom: 0;
++    left: 0;
++    height: 5px;
++}
++/* Styles for the top handle */
++.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t {
++    width: 100%;
++    top: 0;
++    left: 0;
++    height: 5px;
++}
++
++/* Left Collapse button */
++.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -160px;
++    border: 1px solid #808080;
++}
++/* Left Collapsed Expand Button */
++.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -140px;
++    border: 1px solid #808080;
++}
++/* Right Collapse Button */
++.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -200px;
++    border: 1px solid #808080;
++}
++/* Right Collapsed Expand Button */
++.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -120px;
++    border: 1px solid #808080;
++}
++/* Top Collapse Button */
++.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -220px;
++    border: 1px solid #808080;
++}
++/* Top Collapsed Expand Button */
++.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -240px;
++    border: 1px solid #808080;
++}
++/* Bottom Collapse Button */
++.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -260px;
++    border: 1px solid #808080;
++}
++/* Bottom Collapsed Expand Button */
++.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse {
++    background: transparent url(layout_sprite.png) no-repeat -20px -180px;
++    border: 1px solid #808080;
++}
++/* Close Button */
++.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close {
++    background: transparent url(layout_sprite.png) no-repeat -20px -100px;
++    border: 1px solid #808080;
++}
++
++/* Give the header a blue backgorund */
++.yui-skin-sam .yui-layout .yui-layout-hd {
++    background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;
++    border: 1px solid #808080;
++}
++/* Set the background color */
++.yui-skin-sam .yui-layout {
++    background-color: #EDF5FF;
++}
++/* Style the text in the header */
++.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2 {
++    font-weight: bold;
++    color: #fff;
++    padding: 3px;
++    margin: 0;
++}
++/* Style the body */
++.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd {
++    border: 1px solid #808080;
++    border-bottom: none;
++    border-top: none;
++    *border-bottom-width: 0;
++    *border-top-width: 0;
++    background-color: #f2f2f2;
++    text-align: left;
++}
++/* Add a border to the bottom of the body because there is no footer */
++.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft {
++    border-bottom: 1px solid #808080;
++}
++/* Add a border to the top of the body because there is no header */
++.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd {
++    border-top: 1px solid #808080;
++}
++
++/* Style the Clip */
++.yui-skin-sam .yui-layout .yui-layout-clip {
++    position: absolute;
++    height: 20px;
++    background-color: #EDF5FF;
++    display: none;
++    border: 1px solid #808080;
++}
++/* Style the footer */
++.yui-skin-sam .yui-layout div.yui-layout-ft {
++    border: 1px solid #808080;
++    border-top: none;
++    *border-top-width: 0;
++    background-color: #f2f2f2;
++}
++
++/* Remove the color from the resize handle */
++.yui-skin-sam .yui-layout-unit .yui-resize-handle {
++    background-color: transparent;
++    zoom: 1;
++}
++/* Reposition the handles */
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-r {
++    right: 0;
++    top: 0;
++    background-image: none;
++    zoom: 1;
++}
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-l {
++    left: 0;
++    top: 0;
++    background-image: none;
++    zoom: 1;
++}
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-b {
++    right: 0;
++    bottom: 0;
++    background-image: none;
++}
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-t {
++    right: 0;
++    top: 0;
++    background-image: none;
++}
++/* Add the gripper */
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob {
++    position: absolute;
++    height: 16px;
++    width: 6px;
++    top: 45%;
++    left: 0px;
++    display: block;
++    background: transparent url(layout_sprite.png) no-repeat 0 -5px;
++}
++/* Add the gripper */
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,
++.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob {
++    position: absolute;
++    height: 6px;
++    width: 16px;
++    left: 45%;
++    background: transparent url(layout_sprite.png) no-repeat -20px 0;
++    zoom: 1;
++}
+diff --git a/pylons_app/public/js/yui/layout/assets/skins/sam/layout.css b/pylons_app/public/js/yui/layout/assets/skins/sam/layout.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/layout/assets/skins/sam/layout.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;overflow:hidden;padding:0;margin:0;}.yui-layout-unit{height:50px;width:50px;padding:0;margin:0;float:none;z-index:0;}.yui-layout-unit-top{position:absolute;top:0;left:0;width:100%;}.yui-layout-unit-left{position:absolute;top:0;left:0;}.yui-layout-unit-right{position:absolute;top:0;right:0;}.yui-layout-unit-bottom{position:absolute;bottom:0;left:0;width:100%;}.yui-layout-unit-center{position:absolute;top:0;left:0;width:100%;}.yui-layout div.yui-layout-hd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout div.yui-layout-bd{position:absolute;top:0;left:0;zoom:1;width:100%;}.yui-layout .yui-layout-noscroll div.yui-layout-bd{overflow:hidden;}.yui-layout .yui-layout-scroll div.yui-layout-bd{overflow:auto;}.yui-layout div.yui-layout-ft{position:absolute;bottom:0;left:0;width:100%;zoom:1;}.yui-layout .yui-layout-unit div.yui-layout-hd h2{text-align:left;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .close{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-unit div.yui-layout-hd .collapse-close{right:25px;}.yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#c0c0c0;display:none;}.yui-layout .yui-layout-clip .collapse{cursor:pointer;height:13px;position:absolute;right:2px;top:2px;width:17px;font-size:0;}.yui-layout .yui-layout-wrap{height:100%;width:100%;position:absolute;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy{border:none;font-size:0;margin:0;padding:0;}.yui-skin-sam .yui-layout .yui-resize-resizing .yui-resize-handle{display:none;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy div{position:absolute;border:1px solid #808080;background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize .yui-resize-handle-active{zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;position:absolute;zoom:1;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-b{width:100%;bottom:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-t{width:100%;top:0;left:0;height:5px;}.yui-skin-sam .yui-layout .yui-layout-unit-left div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -160px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-left .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -140px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-right div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -200px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-right .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -120px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-top div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -220px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-top .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -240px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit-bottom div.yui-layout-hd .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -260px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip-bottom .collapse{background:transparent url(layout_sprite.png) no-repeat -20px -180px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd .close{background:transparent url(layout_sprite.png) no-repeat -20px -100px;border:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-hd{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1400px;border:1px solid #808080;}.yui-skin-sam .yui-layout{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-hd h2{font-weight:bold;color:#fff;padding:3px;margin:0;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd{border:1px solid #808080;border-bottom:none;border-top:none;*border-bottom-width:0;*border-top-width:0;background-color:#f2f2f2;text-align:left;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-noft{border-bottom:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-unit div.yui-layout-bd-nohd{border-top:1px solid #808080;}.yui-skin-sam .yui-layout .yui-layout-clip{position:absolute;height:20px;background-color:#EDF5FF;display:none;border:1px solid #808080;}.yui-skin-sam .yui-layout div.yui-layout-ft{border:1px solid #808080;border-top:none;*border-top-width:0;background-color:#f2f2f2;}.yui-skin-sam .yui-layout-unit .yui-resize-handle{background-color:transparent;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;zoom:1;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-b{right:0;bottom:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-l .yui-layout-resize-knob{position:absolute;height:16px;width:6px;top:45%;left:0;display:block;background:transparent url(layout_sprite.png) no-repeat 0 -5px;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-t .yui-layout-resize-knob,.yui-skin-sam .yui-layout-unit .yui-resize-handle-b .yui-layout-resize-knob{position:absolute;height:6px;width:16px;left:45%;background:transparent url(layout_sprite.png) no-repeat -20px 0;zoom:1;}
+diff --git a/pylons_app/public/js/yui/layout/assets/skins/sam/layout_sprite.png b/pylons_app/public/js/yui/layout/assets/skins/sam/layout_sprite.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..d6fce3c7a5bec2e266531e2b921f6a3bc3572bcb
+GIT binary patch
+literal 1409
+zc$@)&1%CR8P)<h;3K|Lk000e1NJLTq001ih009^X0{{R4g&oh+00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUyZ%|BBMgRZ*
+z{{H^w=jh_%<Lm6~mX?<A@$vNZ_4)bw{r&y-_xJnz`+t9bgM)*Tl$Y}I^7i)jzP`Sc
+zl$G=I^Y!)hm6et7@bK*H?dj?2l$4aWx3{&mwX3VE=;`U%+1cdf<)){nsHmvz?d|2|
+z=Kufy!J{?s0000bbW%=J|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0
+z06)({PXGV}XGugsRCwBAP*G7~U;rT%2n$R>Foc7fVkN9ZL<CGRGegW|08_l;C`x#-
+zC}C$uR>H|iPzfUuN*G~E00Ia|@iPD+ScV@e5BCj%&595~Az9JYb1HE%fJ|lvg&G4W
+z6xqeu5wao}vOGw#oOoq<Fl5=W=miKM27Zt?_(1@uj9&!?AmYgGS7Bv9uu;TSu#1Bw
+z7!XQG(8~aJF@()7t}M=uMG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+}ENH*(>w~#T?}~D>R>)!8tQB$?H*0yv+zy3X
+zp5FpK#BWTE@nL>rYK#x`TfkSiVcaHeL%A7)bE^@*P25(v!8sWU;bx5QQEo#=#9l_Y
+z9jWsb&xxPHEyHgiDKT#F_ig65r+y1bS-53z`*yv<xJjZCbuGe;XM?MKM@K9t|Eq9=
+zxJgEB9M}h3v(KP@>mBxe`^)OW4foqs1^G=pWW+-Vx8O~1UE+HGF@F06NmG=W!zJbw
+P00000NkvXXu0mjf;Dg73
+
+diff --git a/pylons_app/public/js/yui/layout/layout-debug.js b/pylons_app/public/js/yui/layout/layout-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/layout/layout-debug.js
+@@ -0,0 +1,2305 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event
++ * @module layout
++ */
++(function() {
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class Layout
++     * @extends YAHOO.util.Element
++     * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
++     * @param {String/HTMLElement} el The element to make contain a layout.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    var Layout = function(el, config) {
++        YAHOO.log('Creating the Layout Object', 'info', 'Layout');
++        if (Lang.isObject(el) && !el.tagName) {
++            config = el;
++            el = null;
++        }
++        if (Lang.isString(el)) {
++            if (Dom.get(el)) {
++                el = Dom.get(el);
++            }
++        }
++        if (!el) {
++            el = document.body;
++        }
++
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        Layout.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all layout instances
++    * @type Object
++    */ 
++    Layout._instances = {};
++    /**
++    * @static
++    * @method getLayoutById 
++    * @description Get's a layout object by the HTML id of the element associated with the Layout object.
++    * @return {Object} The Layout Object
++    */ 
++    Layout.getLayoutById = function(id) {
++        if (Layout._instances[id]) {
++            return Layout._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(Layout, YAHOO.util.Element, {
++        /**
++        * @property browser
++        * @description A modified version of the YAHOO.env.ua object
++        * @type Object
++        */
++        browser: function() {
++            var b = YAHOO.env.ua;
++            b.standardsMode = false;
++            b.secure = false;
++            return b;
++        }(),
++        /**
++        * @private
++        * @property _units
++        * @description An object literal that contains a list of units in the layout
++        * @type Object
++        */
++        _units: null,
++        /**
++        * @private
++        * @property _rendered
++        * @description Set to true when the layout is rendered
++        * @type Boolean
++        */
++        _rendered: null,
++        /**
++        * @private
++        * @property _zIndex
++        * @description The zIndex to set all LayoutUnits to
++        * @type Number
++        */
++        _zIndex: null,
++        /**
++        * @private
++        * @property _sizes
++        * @description A collection of the current sizes of all usable LayoutUnits to be used for calculations
++        * @type Object
++        */
++        _sizes: null,
++        /**
++        * @private
++        * @method _setBodySize
++        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
++        * @description Used to set the body size of the layout, sets the height and width of the parent container
++        */
++        _setBodySize: function(set) {
++            var h = 0, w = 0;
++            set = ((set === false) ? false : true);
++
++            if (this._isBody) {
++                h = Dom.getClientHeight();
++                w = Dom.getClientWidth();
++            } else {
++                h = parseInt(this.getStyle('height'), 10);
++                w = parseInt(this.getStyle('width'), 10);
++                if (isNaN(w)) {
++                    w = this.get('element').clientWidth;
++                }
++                if (isNaN(h)) {
++                    h = this.get('element').clientHeight;
++                }
++            }
++            if (this.get('minWidth')) {
++                if (w < this.get('minWidth')) {
++                    w = this.get('minWidth');
++                }
++            }
++            if (this.get('minHeight')) {
++                if (h < this.get('minHeight')) {
++                    h = this.get('minHeight');
++                }
++            }
++            if (set) {
++                if (h < 0) {
++                    h = 0;
++                }
++                if (w < 0) {
++                    w = 0;
++                }
++                Dom.setStyle(this._doc, 'height', h + 'px');
++                Dom.setStyle(this._doc, 'width', w + 'px');
++            }
++            this._sizes.doc = { h: h, w: w };
++            YAHOO.log('Setting Body height and width: (' + h + ',' + w + ')', 'info', 'Layout');
++            this._setSides(set);
++        },
++        /**
++        * @private
++        * @method _setSides
++        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
++        * @description Used to set the size and position of the left, right, top and bottom units
++        */
++        _setSides: function(set) {
++            YAHOO.log('Setting side units', 'info', 'Layout');
++            var h1 = ((this._units.top) ? this._units.top.get('height') : 0),
++                h2 = ((this._units.bottom) ? this._units.bottom.get('height') : 0),
++                h = this._sizes.doc.h,
++                w = this._sizes.doc.w;
++            set = ((set === false) ? false : true);
++
++            this._sizes.top = {
++                h: h1, w: ((this._units.top) ? w : 0),
++                t: 0
++            };
++            this._sizes.bottom = {
++                h: h2, w: ((this._units.bottom) ? w : 0)
++            };
++            
++            var newH = (h - (h1 + h2));
++
++            this._sizes.left = {
++                h: newH, w: ((this._units.left) ? this._units.left.get('width') : 0)
++            };
++            this._sizes.right = {
++                h: newH, w: ((this._units.right) ? this._units.right.get('width') : 0),
++                l: ((this._units.right) ? (w - this._units.right.get('width')) : 0),
++                t: ((this._units.top) ? this._sizes.top.h : 0)
++            };
++            
++            if (this._units.right && set) {
++                this._units.right.set('top', this._sizes.right.t);
++                if (!this._units.right._collapsing) { 
++                    this._units.right.set('left', this._sizes.right.l);
++                }
++                this._units.right.set('height', this._sizes.right.h, true);
++            }
++            if (this._units.left) {
++                this._sizes.left.l = 0;
++                if (this._units.top) {
++                    this._sizes.left.t = this._sizes.top.h;
++                } else {
++                    this._sizes.left.t = 0;
++                }
++                if (set) {
++                    this._units.left.set('top', this._sizes.left.t);
++                    this._units.left.set('height', this._sizes.left.h, true);
++                    this._units.left.set('left', 0);
++                }
++            }
++            if (this._units.bottom) {
++                this._sizes.bottom.t = this._sizes.top.h + this._sizes.left.h;
++                if (set) {
++                    this._units.bottom.set('top', this._sizes.bottom.t);
++                    this._units.bottom.set('width', this._sizes.bottom.w, true);
++                }
++            }
++            if (this._units.top) {
++                if (set) {
++                    this._units.top.set('width', this._sizes.top.w, true);
++                }
++            }
++            YAHOO.log('Setting sizes: (' + Lang.dump(this._sizes) + ')', 'info', 'Layout');
++            this._setCenter(set);
++        },
++        /**
++        * @private
++        * @method _setCenter
++        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
++        * @description Used to set the size and position of the center unit
++        */
++        _setCenter: function(set) {
++            set = ((set === false) ? false : true);
++            var h = this._sizes.left.h;
++            var w = (this._sizes.doc.w - (this._sizes.left.w + this._sizes.right.w));
++            if (set) {
++                this._units.center.set('height', h, true);
++                this._units.center.set('width', w, true);
++                this._units.center.set('top', this._sizes.top.h);
++                this._units.center.set('left', this._sizes.left.w);
++            }
++            this._sizes.center = { h: h, w: w, t: this._sizes.top.h, l: this._sizes.left.w };
++            YAHOO.log('Setting Center size to: (' + h + ', ' + w + ')', 'info', 'Layout');
++        },
++        /**
++        * @method getSizes
++        * @description Get a reference to the internal Layout Unit sizes object used to build the layout wireframe
++        * @return {Object} An object of the layout unit sizes
++        */
++        getSizes: function() {
++            return this._sizes;
++        },
++        /**
++        * @method getUnitById
++        * @param {String} id The HTML element id of the unit
++        * @description Get the LayoutUnit by it's HTML id
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        getUnitById: function(id) {
++            return YAHOO.widget.LayoutUnit.getLayoutUnitById(id);
++        },
++        /**
++        * @method getUnitByPosition
++        * @param {String} pos The position of the unit in this layout
++        * @description Get the LayoutUnit by it's position in this layout
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        getUnitByPosition: function(pos) {
++            if (pos) {
++                pos = pos.toLowerCase();
++                if (this._units[pos]) {
++                    return this._units[pos];
++                }
++                return false;
++            }
++            return false;
++        },
++        /**
++        * @method removeUnit
++        * @param {Object} unit The LayoutUnit that you want to remove
++        * @description Remove the unit from this layout and resize the layout.
++        */
++        removeUnit: function(unit) {
++            delete this._units[unit.get('position')];
++            this.resize();
++        },
++        /**
++        * @method addUnit
++        * @param {Object} cfg The config for the LayoutUnit that you want to add
++        * @description Add a unit to this layout and if the layout is rendered, resize the layout. 
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        addUnit: function(cfg) {
++            if (!cfg.position) {
++                YAHOO.log('No position property passed', 'error', 'Layout');
++                return false;
++            }
++            if (this._units[cfg.position]) {
++                YAHOO.log('Position already exists', 'error', 'Layout');
++                return false;
++            }
++            YAHOO.log('Adding Unit at position: ' + cfg.position, 'info', 'Layout');
++            var element = null,
++                el = null;
++
++            if (cfg.id) {
++                if (Dom.get(cfg.id)) {
++                    element = Dom.get(cfg.id);
++                    delete cfg.id;
++
++                }
++            }
++            if (cfg.element) {
++                element = cfg.element;
++            }
++
++            if (!el) {
++                el = document.createElement('div');
++                var id = Dom.generateId();
++                el.id = id;
++            }
++
++            if (!element) {
++                element = document.createElement('div');
++            }
++            Dom.addClass(element, 'yui-layout-wrap');
++            if (this.browser.ie && !this.browser.standardsMode) {
++                el.style.zoom = 1;
++                element.style.zoom = 1;
++            }
++
++            if (el.firstChild) {
++                el.insertBefore(element, el.firstChild);
++            } else {
++                el.appendChild(element);
++            }
++            this._doc.appendChild(el);
++
++            var h = false, w = false;
++
++            if (cfg.height) {
++                h = parseInt(cfg.height, 10);
++            }
++            if (cfg.width) {
++                w = parseInt(cfg.width, 10);
++            }
++            var unitConfig = {};
++            YAHOO.lang.augmentObject(unitConfig, cfg); // break obj ref
++
++            unitConfig.parent = this;
++            unitConfig.wrap = element;
++            unitConfig.height = h;
++            unitConfig.width = w;
++
++            var unit = new YAHOO.widget.LayoutUnit(el, unitConfig);
++
++            unit.on('heightChange', this.resize, { unit: unit }, this);
++            unit.on('widthChange', this.resize, { unit: unit }, this);
++            unit.on('gutterChange', this.resize, { unit: unit }, this);
++            this._units[cfg.position] = unit;
++
++            if (this._rendered) {
++                this.resize();
++            }
++
++            return unit;
++        },
++        /**
++        * @private
++        * @method _createUnits
++        * @description Private method to create units from the config that was passed in.
++        */
++        _createUnits: function() {
++            var units = this.get('units');
++            for (var i in units) {
++                if (Lang.hasOwnProperty(units, i)) {
++                    this.addUnit(units[i]);
++                }
++            }
++        },
++        /**
++        * @method resize
++        * @param Boolean/Event set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units). This can also have an attribute event passed to it.
++        * @description Starts the chain of resize routines that will resize all the units.
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
++        */
++        resize: function(set, info) {
++            /*
++            * Fixes bug #2528175
++            * If the event comes from an attribute and the value hasn't changed, don't process it.
++            */
++            var ev = set;
++            if (ev && ev.prevValue && ev.newValue) {
++                if (ev.prevValue == ev.newValue) {
++                    if (info) {
++                        if (info.unit) {
++                            if (!info.unit.get('animate')) {
++                                set = false;
++                            }
++                        }
++                    }
++                }
++            }
++            set = ((set === false) ? false : true);
++            if (set) {
++                var retVal = this.fireEvent('beforeResize');
++                if (retVal === false) {
++                    set = false;
++                }
++                if (this.browser.ie) {
++                    if (this._isBody) {
++                        Dom.removeClass(document.documentElement, 'yui-layout');
++                        Dom.addClass(document.documentElement, 'yui-layout');
++                    } else {
++                        this.removeClass('yui-layout');
++                        this.addClass('yui-layout');
++                    }
++                }
++            }
++            this._setBodySize(set);
++            if (set) {
++                this.fireEvent('resize', { target: this, sizes: this._sizes, event: ev });
++            }
++            return this;
++        },
++        /**
++        * @private
++        * @method _setupBodyElements
++        * @description Sets up the main doc element when using the body as the main element.
++        */
++        _setupBodyElements: function() {
++            this._doc = Dom.get('layout-doc');
++            if (!this._doc) {
++                this._doc = document.createElement('div');
++                this._doc.id = 'layout-doc';
++                if (document.body.firstChild) {
++                    document.body.insertBefore(this._doc, document.body.firstChild);
++                } else {
++                    document.body.appendChild(this._doc);
++                }
++            }
++            this._createUnits();
++            this._setBodySize();
++            Event.on(window, 'resize', this.resize, this, true);
++            Dom.addClass(this._doc, 'yui-layout-doc');
++        },
++        /**
++        * @private
++        * @method _setupElements
++        * @description Sets up the main doc element when not using the body as the main element.
++        */
++        _setupElements: function() {
++            this._doc = this.getElementsByClassName('yui-layout-doc')[0];
++            if (!this._doc) {
++                this._doc = document.createElement('div');
++                this.get('element').appendChild(this._doc);
++            }
++            this._createUnits();
++            this._setBodySize();
++            Dom.addClass(this._doc, 'yui-layout-doc');
++        },
++        /**
++        * @private
++        * @property _isBody
++        * @description Flag to determine if we are using the body as the root element.
++        * @type Boolean
++        */
++        _isBody: null,
++        /**
++        * @private
++        * @property _doc
++        * @description Reference to the root element
++        * @type HTMLElement
++        */
++        _doc: null,
++        /**
++        * @private
++        * @method init
++        * @description The Layout class' initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'Layout');
++
++            this._zIndex = 0;
++
++            Layout.superclass.init.call(this, p_oElement, p_oAttributes);
++            
++            if (this.get('parent')) {
++                this._zIndex = this.get('parent')._zIndex + 10;
++            }
++
++            this._sizes = {};
++            this._units = {};
++
++            var id = p_oElement;
++            if (!Lang.isString(id)) {
++                id = Dom.generateId(id);
++            }
++            Layout._instances[id] = this;
++        },
++        /**
++        * @method render
++        * @description This method starts the render process, applying classnames and creating elements
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
++        */        
++        render: function() {
++            YAHOO.log('Render', 'info', 'Layout');
++            this._stamp();
++            var el = this.get('element');
++            if (el && el.tagName && (el.tagName.toLowerCase() == 'body')) {
++                this._isBody = true;
++                Dom.addClass(document.body, 'yui-layout');
++                if (Dom.hasClass(document.body, 'yui-skin-sam')) {
++                    //Move the class up so we can have a css chain
++                    Dom.addClass(document.documentElement, 'yui-skin-sam');
++                    Dom.removeClass(document.body, 'yui-skin-sam');
++                }
++                this._setupBodyElements();
++            } else {
++                this._isBody = false;
++                this.addClass('yui-layout');
++                this._setupElements();
++            }
++            this.resize();
++            this._rendered = true;
++            this.fireEvent('render');
++
++            return this;
++        },
++        /**
++        * @private
++        * @method _stamp
++        * @description Stamps the root node with a secure classname for ease of use. Also sets the this.browser.standardsMode variable.
++        */        
++        _stamp: function() {
++            if (document.compatMode == 'CSS1Compat') {
++                this.browser.standardsMode = true;
++            }
++            if (window.location.href.toLowerCase().indexOf("https") === 0) {
++                Dom.addClass(document.documentElement, 'secure');
++                this.browser.secure = true;
++            }
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Processes the config
++        */        
++        initAttributes: function(attr) {
++            Layout.superclass.initAttributes.call(this, attr);
++            /**
++            * @attribute units
++            * @description An array of config definitions for the LayoutUnits to add to this layout
++            * @type Array
++            */
++            this.setAttributeConfig('units', {
++                writeOnce: true,
++                validator: YAHOO.lang.isArray,
++                value: attr.units || []
++            });
++
++            /**
++            * @attribute minHeight
++            * @description The minimum height in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                value: attr.minHeight || false,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minWidth
++            * @description The minimum width in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                value: attr.minWidth || false,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute height
++            * @description The height in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || false,
++                validator: YAHOO.lang.isNumber,
++                method: function(h) {
++                    if (h < 0) {
++                        h = 0;
++                    }
++                    this.setStyle('height', h + 'px');
++                }
++            });
++
++            /**
++            * @attribute width
++            * @description The width in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('width', {
++                value: attr.width || false,
++                validator: YAHOO.lang.isNumber,
++                method: function(w) {
++                    if (w < 0) {
++                        w = 0;
++                    }
++                    this.setStyle('width', w + 'px');
++                }
++            });
++
++            /**
++            * @attribute parent
++            * @description If this layout is to be used as a child of another Layout instance, this config will bind the resize events together.
++            * @type Object YAHOO.widget.Layout
++            */
++            this.setAttributeConfig('parent', {
++                writeOnce: true,
++                value: attr.parent || false,
++                method: function(p) {
++                    if (p) {
++                        p.on('resize', this.resize, this, true);
++                    }
++                }
++            });
++        },
++        /**
++        * @method destroy
++        * @description Removes this layout from the page and destroys all units that it contains. This will destroy all data inside the layout and it's children.
++        */
++        destroy: function() {
++            var par = this.get('parent');
++            if (par) {
++                par.removeListener('resize', this.resize, this, true);
++            }
++            Event.removeListener(window, 'resize', this.resize, this, true);
++
++            this.unsubscribeAll();
++            for (var u in this._units) {
++                if (Lang.hasOwnProperty(this._units, u)) {
++                    if (this._units[u]) {
++                        this._units[u].destroy(true);
++                    }
++                }
++            }
++
++            Event.purgeElement(this.get('element'));
++            this.get('parentNode').removeChild(this.get('element'));
++            
++            delete YAHOO.widget.Layout._instances[this.get('id')];
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                    delete this[i];
++                }
++            }
++            
++            if (par) {
++                par.resize();
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the Layout.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'Layout #' + this.get('id');
++            }
++            return 'Layout';
++        }
++    });
++    /**
++    * @event resize
++    * @description Fired when this.resize is called
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event startResize
++    * @description Fired when the Resize Utility for a Unit fires it's startResize Event.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeResize
++    * @description Fires at the beginning of the resize method. If you return false, the resize is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event render
++    * @description Fired after the render method completes.
++    * @type YAHOO.util.CustomEvent
++    */
++
++    YAHOO.widget.Layout = Layout;
++})();
++/**
++ * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, layout
++ * @optional animation, dragdrop, selector
++ */
++(function() {
++    var Dom = YAHOO.util.Dom,
++        Sel = YAHOO.util.Selector,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class LayoutUnit
++     * @extends YAHOO.util.Element
++     * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
++     * @param {String/HTMLElement} el The element to make a unit.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    var LayoutUnit = function(el, config) {
++        
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        LayoutUnit.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all layout unit instances
++    * @type Object
++    */ 
++    LayoutUnit._instances = {};
++    /**
++    * @static
++    * @method getLayoutUnitById 
++    * @description Get's a layout unit object by the HTML id of the element associated with the Layout Unit object.
++    * @return {Object} The Layout Object
++    */ 
++    LayoutUnit.getLayoutUnitById = function(id) {
++        if (LayoutUnit._instances[id]) {
++            return LayoutUnit._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(LayoutUnit, YAHOO.util.Element, {
++        /**
++        * @property STR_CLOSE
++        * @description String used for close button title
++        * @type {String}
++        */
++        STR_CLOSE: 'Click to close this pane.',
++        /**
++        * @property STR_COLLAPSE
++        * @description String used for collapse button title
++        * @type {String}
++        */
++        STR_COLLAPSE: 'Click to collapse this pane.',
++        /**
++        * @property STR_EXPAND
++        * @description String used for expand button title
++        * @type {String}
++        */
++        STR_EXPAND: 'Click to expand this pane.',
++        /**
++	    * The class name applied to dynamic tabs while loading.
++	    * @property LOADING_CLASSNAME
++	    * @type String
++	    * @default "disabled"
++	    */
++	    LOADING_CLASSNAME: 'loading',
++        /**
++        * @property browser
++        * @description A modified version of the YAHOO.env.ua object
++        * @type Object
++        */
++        browser: null,
++        /**
++        * @private
++        * @property _sizes
++        * @description A collection of the current sizes of the contents of this Layout Unit
++        * @type Object
++        */
++        _sizes: null,
++        /**
++        * @private
++        * @property _anim
++        * @description A reference to the Animation instance used by this LayouUnit
++        * @type YAHOO.util.Anim
++        */
++        _anim: null,
++        /**
++        * @private
++        * @property _resize
++        * @description A reference to the Resize instance used by this LayoutUnit
++        * @type YAHOO.util.Resize
++        */
++        _resize: null,
++        /**
++        * @private
++        * @property _clip
++        * @description A reference to the clip element used when collapsing the unit
++        * @type HTMLElement
++        */
++        _clip: null,
++        /**
++        * @private
++        * @property _gutter
++        * @description A simple hash table used to store the gutter to apply to the Unit
++        * @type Object
++        */
++        _gutter: null,
++        /**
++        * @property header
++        * @description A reference to the HTML element used for the Header
++        * @type HTMLELement
++        */
++        header: null,
++        /**
++        * @property body
++        * @description A reference to the HTML element used for the body
++        * @type HTMLElement
++        */
++        body: null,
++        /**
++        * @property footer
++        * @description A reference to the HTML element used for the footer
++        * @type HTMLElement
++        */
++        footer: null,
++        /**
++        * @private
++        * @property _collapsed
++        * @description Flag to determine if the unit is collapsed or not.
++        * @type Boolean
++        */
++        _collapsed: null,
++        /**
++        * @private
++        * @property _collapsing
++        * @description A flag set while the unit is being collapsed, used so we don't fire events while animating the size
++        * @type Boolean
++        */
++        _collapsing: null,
++        /**
++        * @private
++        * @property _lastWidth
++        * @description A holder for the last known width of the unit
++        * @type Number
++        */
++        _lastWidth: null,
++        /**
++        * @private
++        * @property _lastHeight
++        * @description A holder for the last known height of the unit
++        * @type Number
++        */
++        _lastHeight: null,
++        /**
++        * @private
++        * @property _lastTop
++        * @description A holder for the last known top of the unit
++        * @type Number
++        */
++        _lastTop: null,
++        /**
++        * @private
++        * @property _lastLeft
++        * @description A holder for the last known left of the unit
++        * @type Number
++        */
++        _lastLeft: null,
++        /**
++        * @private
++        * @property _lastScroll
++        * @description A holder for the last known scroll state of the unit
++        * @type Boolean
++        */
++        _lastScroll: null,
++        /**
++        * @private
++        * @property _lastCenetrScroll
++        * @description A holder for the last known scroll state of the center unit
++        * @type Boolean
++        */
++        _lastCenterScroll: null,
++        /**
++        * @private
++        * @property _lastScrollTop
++        * @description A holder for the last known scrollTop state of the unit
++        * @type Number
++        */
++        _lastScrollTop: null,
++        /**
++        * @method resize
++        * @description Resize either the unit or it's clipped state, also updating the box inside
++        * @param {Boolean} force This will force full calculations even when the unit is collapsed
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        resize: function(force) {
++            YAHOO.log('Resize', 'info', 'LayoutUnit');
++            var retVal = this.fireEvent('beforeResize');
++            if (retVal === false) {
++                return this;
++            }
++            if (!this._collapsing || (force === true)) {
++                var scroll = this.get('scroll');
++                this.set('scroll', false);
++
++
++                var hd = this._getBoxSize(this.header),
++                    ft = this._getBoxSize(this.footer),
++                    box = [this.get('height'), this.get('width')];
++
++                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
++                    nw = box[1] - (this._gutter.left + this._gutter.right);
++
++                var wrapH = (nh + (hd[0] + ft[0])),
++                    wrapW = nw;
++
++                if (this._collapsed && !this._collapsing) {
++                    this._setHeight(this._clip, wrapH);
++                    this._setWidth(this._clip, wrapW);
++                    Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
++                    Dom.setStyle(this._clip, 'left', this.get('left') + this._gutter.left + 'px');
++                } else if (!this._collapsed || (this._collapsed && this._collapsing)) {
++                    wrapH = this._setHeight(this.get('wrap'), wrapH);
++                    wrapW = this._setWidth(this.get('wrap'), wrapW);
++                    this._sizes.wrap.h = wrapH;
++                    this._sizes.wrap.w = wrapW;
++
++                    Dom.setStyle(this.get('wrap'), 'top', this._gutter.top + 'px');
++                    Dom.setStyle(this.get('wrap'), 'left', this._gutter.left + 'px');
++
++                    this._sizes.header.w = this._setWidth(this.header, wrapW);
++                    this._sizes.header.h = hd[0];
++
++                    this._sizes.footer.w = this._setWidth(this.footer, wrapW);
++                    this._sizes.footer.h = ft[0];
++
++                    Dom.setStyle(this.footer, 'bottom', '0px');
++
++                    this._sizes.body.h = this._setHeight(this.body, (wrapH - (hd[0] + ft[0])));
++                    this._sizes.body.w =this._setWidth(this.body, wrapW);
++                    Dom.setStyle(this.body, 'top', hd[0] + 'px');
++
++                    this.set('scroll', scroll);
++                    this.fireEvent('resize');
++                }
++            }
++            return this;
++        },
++        /**
++        * @private
++        * @method _setWidth
++        * @description Sets the width of the element based on the border size of the element.
++        * @param {HTMLElement} el The HTMLElement to have it's width set
++        * @param {Number} w The width that you want it the element set to
++        * @return {Number} The new width, fixed for borders and IE QuirksMode
++        */
++        _setWidth: function(el, w) {
++            if (el) {
++                var b = this._getBorderSizes(el);
++                w = (w - (b[1] + b[3]));
++                w = this._fixQuirks(el, w, 'w');
++                if (w < 0) {
++                    w = 0;
++                }
++                Dom.setStyle(el, 'width', w + 'px');
++            }
++            return w;
++        },
++        /**
++        * @private
++        * @method _setHeight
++        * @description Sets the height of the element based on the border size of the element.
++        * @param {HTMLElement} el The HTMLElement to have it's height set
++        * @param {Number} h The height that you want it the element set to
++        * @return {Number} The new height, fixed for borders and IE QuirksMode
++        */
++        _setHeight: function(el, h) {
++            if (el) {
++                var b = this._getBorderSizes(el);
++                h = (h - (b[0] + b[2]));
++                h = this._fixQuirks(el, h, 'h');
++                if (h < 0) {
++                    h = 0;
++                }
++                Dom.setStyle(el, 'height', h + 'px');
++            }
++            return h;
++        },
++        /**
++        * @private
++        * @method _fixQuirks
++        * @description Fixes the box calculations for IE in QuirksMode
++        * @param {HTMLElement} el The HTMLElement to set the dimension on
++        * @param {Number} dim The number of the dimension to fix
++        * @param {String} side The dimension (h or w) to fix. Defaults to h
++        * @return {Number} The fixed dimension
++        */
++        _fixQuirks: function(el, dim, side) {
++            var i1 = 0, i2 = 2;
++            if (side == 'w') {
++                i1 = 1;
++                i2 = 3;
++            }
++            if ((this.browser.ie < 8) && !this.browser.standardsMode) {
++                //Internet Explorer - Quirks Mode
++                var b = this._getBorderSizes(el),
++                    bp = this._getBorderSizes(el.parentNode);
++                if ((b[i1] === 0) && (b[i2] === 0)) { //No Borders, check parent
++                    if ((bp[i1] !== 0) && (bp[i2] !== 0)) { //Parent has Borders
++                        dim = (dim - (bp[i1] + bp[i2]));
++                    }
++                } else {
++                    if ((bp[i1] === 0) && (bp[i2] === 0)) {
++                        dim = (dim + (b[i1] + b[i2]));
++                    }
++                }
++            }
++            return dim;
++        },
++        /**
++        * @private
++        * @method _getBoxSize
++        * @description Get's the elements clientHeight and clientWidth plus the size of the borders
++        * @param {HTMLElement} el The HTMLElement to get the size of
++        * @return {Array} An array of height and width
++        */
++        _getBoxSize: function(el) {
++            var size = [0, 0];
++            if (el) {
++                if (this.browser.ie && !this.browser.standardsMode) {
++                    el.style.zoom = 1;
++                }
++                var b = this._getBorderSizes(el);
++                size[0] = el.clientHeight + (b[0] + b[2]);
++                size[1] = el.clientWidth + (b[1] + b[3]);
++            }
++            return size;
++        },
++        /**
++        * @private
++        * @method _getBorderSizes
++        * @description Get the CSS border size of the element passed.
++        * @param {HTMLElement} el The element to get the border size of
++        * @return {Array} An array of the top, right, bottom, left borders.
++        */
++        _getBorderSizes: function(el) {
++            var s = [];
++            el = el || this.get('element');
++            if (this.browser.ie && !this.browser.standardsMode) {
++                el.style.zoom = 1;
++            }
++            s[0] = parseInt(Dom.getStyle(el, 'borderTopWidth'), 10);
++            s[1] = parseInt(Dom.getStyle(el, 'borderRightWidth'), 10);
++            s[2] = parseInt(Dom.getStyle(el, 'borderBottomWidth'), 10);
++            s[3] = parseInt(Dom.getStyle(el, 'borderLeftWidth'), 10);
++            
++            //IE will return NaN on these if they are set to auto, we'll set them to 0
++            for (var i = 0; i < s.length; i++) {
++                if (isNaN(s[i])) {
++                    s[i] = 0;
++                }
++            }
++            return s;
++        },
++        /**
++        * @private
++        * @method _createClip
++        * @description Create the clip element used when the Unit is collapsed
++        */
++        _createClip: function() {
++            if (!this._clip) {
++                this._clip = document.createElement('div');
++                this._clip.className = 'yui-layout-clip yui-layout-clip-' + this.get('position');
++                this._clip.innerHTML = '<div class="collapse"></div>';
++                var c = this._clip.firstChild;
++                c.title = this.STR_EXPAND;
++                Event.on(c, 'click', this.expand, this, true);
++                this.get('element').parentNode.appendChild(this._clip);
++            }
++        },
++        /**
++        * @private
++        * @method _toggleClip
++        * @description Toggle th current state of the Clip element and set it's height, width and position
++        */
++        _toggleClip: function() {
++            if (!this._collapsed) {
++                //show
++                var hd = this._getBoxSize(this.header),
++                    ft = this._getBoxSize(this.footer),
++                    box = [this.get('height'), this.get('width')];
++
++
++                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
++                    nw = box[1] - (this._gutter.left + this._gutter.right),
++                    wrapH = (nh + (hd[0] + ft[0]));
++
++                switch (this.get('position')) {
++                    case 'top':
++                    case 'bottom':
++                        this._setWidth(this._clip, nw);
++                        this._setHeight(this._clip, this.get('collapseSize'));
++                        Dom.setStyle(this._clip, 'left', (this._lastLeft + this._gutter.left) + 'px');
++                        if (this.get('position') == 'bottom') {
++                            Dom.setStyle(this._clip, 'top', ((this._lastTop + this._lastHeight) - (this.get('collapseSize') - this._gutter.top)) + 'px');
++                        } else {
++                            Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
++                        }
++                        break;
++                    case 'left':
++                    case 'right':
++                        this._setWidth(this._clip, this.get('collapseSize'));
++                        this._setHeight(this._clip, wrapH);
++                        Dom.setStyle(this._clip, 'top', (this.get('top') + this._gutter.top) + 'px');
++                        if (this.get('position') == 'right') {
++                            Dom.setStyle(this._clip, 'left', (((this._lastLeft + this._lastWidth) - this.get('collapseSize')) - this._gutter.left) + 'px');
++                        } else {
++                            Dom.setStyle(this._clip, 'left', (this.get('left') + this._gutter.left) + 'px');
++                        }
++                        break;
++                }
++
++                Dom.setStyle(this._clip, 'display', 'block');
++                this.setStyle('display', 'none');
++            } else {
++                //Hide
++                Dom.setStyle(this._clip, 'display', 'none');
++            }
++        },
++        /**
++        * @method getSizes
++        * @description Get a reference to the internal sizes object for this unit
++        * @return {Object} An object of the sizes used for calculations
++        */
++        getSizes: function() {
++            return this._sizes;
++        },
++        /**
++        * @method toggle
++        * @description Toggles the Unit, replacing it with a clipped version.
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        toggle: function() {
++            if (this._collapsed) {
++                this.expand();
++            } else {
++                this.collapse();
++            }
++            return this;
++        },
++        /**
++        * @method expand
++        * @description Expand the Unit if it is collapsed.
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        expand: function() {
++            if (!this._collapsed) {
++                return this;
++            }
++            var retVal = this.fireEvent('beforeExpand');
++            if (retVal === false) {
++                return this;
++            }
++
++            this._collapsing = true;
++            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
++
++            if (this._anim) {
++                this.setStyle('display', 'none');
++                var attr = {}, s;
++
++                switch (this.get('position')) {
++                    case 'left':
++                    case 'right':
++                        this.set('width', this._lastWidth, true);
++                        this.setStyle('width', this._lastWidth + 'px');
++                        this.get('parent').resize(false);
++                        s = this.get('parent').getSizes()[this.get('position')];
++                        this.set('height', s.h, true);
++                        var left = s.l;
++                        attr = {
++                            left: {
++                                to: left
++                            }
++                        };
++                        if (this.get('position') == 'left') {
++                            attr.left.from = (left - s.w);
++                            this.setStyle('left', (left - s.w) + 'px');
++                        }
++                        break;
++                    case 'top':
++                    case 'bottom':
++                        this.set('height', this._lastHeight, true);
++                        this.setStyle('height', this._lastHeight + 'px');
++                        this.get('parent').resize(false);
++                        s = this.get('parent').getSizes()[this.get('position')];
++                        this.set('width', s.w, true);
++                        var top = s.t;
++                        attr = {
++                            top: {
++                                to: top
++                            }
++                        };
++                        if (this.get('position') == 'top') {
++                            this.setStyle('top',  (top - s.h) + 'px');
++                            attr.top.from = (top - s.h);
++                        }
++                        break;
++                }
++
++                this._anim.attributes = attr;
++                var exStart = function() {
++                    this.setStyle('display', 'block');
++                    this.resize(true);
++                    this._anim.onStart.unsubscribe(exStart, this, true);
++                };
++                var expand = function() {
++                    this._collapsing = false;
++                    this.setStyle('zIndex', this.get('parent')._zIndex);
++                    this.set('width', this._lastWidth);
++                    this.set('height', this._lastHeight);
++                    this._collapsed = false;
++                    this.resize();
++                    this.set('scroll', this._lastScroll);
++                    if (this._lastScrollTop > 0) {
++                        this.body.scrollTop = this._lastScrollTop;
++                    }
++                    this._anim.onComplete.unsubscribe(expand, this, true);
++                    this.fireEvent('expand');
++                };
++                this._anim.onStart.subscribe(exStart, this, true);
++                this._anim.onComplete.subscribe(expand, this, true);
++                this._anim.animate();
++                this._toggleClip();
++            } else {
++                this._collapsing = false;
++                this._toggleClip();
++                this._collapsed = false;
++                this.setStyle('zIndex', this.get('parent')._zIndex);
++                this.setStyle('display', 'block');
++                this.set('width', this._lastWidth);
++                this.set('height', this._lastHeight);
++                this.resize();
++                this.set('scroll', this._lastScroll);
++                if (this._lastScrollTop > 0) {
++                    this.body.scrollTop = this._lastScrollTop;
++                }
++                this.fireEvent('expand');
++            }
++            return this;
++        },
++        /**
++        * @method collapse
++        * @description Collapse the Unit if it is not collapsed.
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        collapse: function() {
++            if (this._collapsed) {
++                return this;
++            }
++            var retValue = this.fireEvent('beforeCollapse');
++            if (retValue === false) {
++                return this;
++            }
++            if (!this._clip) {
++                this._createClip();
++            }
++            this._collapsing = true;
++            var w = this.get('width'),
++                h = this.get('height'),
++                attr = {};
++            this._lastWidth = w;
++            this._lastHeight = h;
++            this._lastScroll = this.get('scroll');
++            this._lastScrollTop = this.body.scrollTop;            
++            this.set('scroll', false, true);
++            this._lastLeft = parseInt(this.get('element').style.left, 10);
++            this._lastTop = parseInt(this.get('element').style.top, 10);
++            if (isNaN(this._lastTop)) {
++                this._lastTop = 0;
++                this.set('top', 0);
++            }
++            if (isNaN(this._lastLeft)) {
++                this._lastLeft = 0;
++                this.set('left', 0);
++            }
++            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
++            var pos = this.get('position');
++
++            switch (pos) {
++                case 'top':
++                case 'bottom':
++                    this.set('height', (this.get('collapseSize') + (this._gutter.top + this._gutter.bottom)));
++                    attr = {
++                        top: {
++                            to: (this.get('top') - h)
++                        }
++                    };
++                    if (pos == 'bottom') {
++                        attr.top.to = (this.get('top') + h);
++                    }
++                    break;
++                case 'left':
++                case 'right':
++                    this.set('width', (this.get('collapseSize') + (this._gutter.left + this._gutter.right)));
++                    attr = {
++                        left: {
++                            to: -(this._lastWidth)
++                        }
++                    };
++                    if (pos == 'right') {
++                        attr.left = {
++                            to: (this.get('left') + w)
++                        };
++                    }
++                    break;
++            }
++            if (this._anim) {
++                this._anim.attributes = attr;
++                var collapse = function() {
++                    this._collapsing = false;
++                    this._toggleClip();
++                    this.setStyle('zIndex', this.get('parent')._zIndex);
++                    this._collapsed = true;
++                    this.get('parent').resize();
++                    this._anim.onComplete.unsubscribe(collapse, this, true);
++                    this.fireEvent('collapse');
++                };
++                this._anim.onComplete.subscribe(collapse, this, true);
++                this._anim.animate();
++            } else {
++                this._collapsing = false;
++                this.setStyle('display', 'none');
++                this._toggleClip();
++                this.setStyle('zIndex', this.get('parent')._zIndex);
++                this.get('parent').resize();
++                this._collapsed = true;
++                this.fireEvent('collapse');
++            }
++            return this;
++        },
++        /**
++        * @method close
++        * @description Close the unit, removing it from the parent Layout.
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
++        */
++        close: function() {
++            this.setStyle('display', 'none');
++            this.get('parent').removeUnit(this);
++            this.fireEvent('close');
++            if (this._clip) {
++                this._clip.parentNode.removeChild(this._clip);
++                this._clip = null;
++            }
++            return this.get('parent');
++        },
++		/**
++        * @property loadHandler
++        * @description Callback method for the YUI Connection Manager used for load the body using AJAX
++        * @type Object
++        */
++		loadHandler: {
++            success: function(o) {
++				this.body.innerHTML = o.responseText;
++				this.resize (true);
++            },
++            failure: function(o) {
++            }
++        },
++		/**
++        * @property dataConnection
++        * @description YUI Connection Manager handler
++        * @type Object
++        */
++		dataConnection: null,
++		/**
++        * @private
++        * @property _loading
++        * @description During the loading process this variable will be true
++        * @type Number
++        */
++        _loading: false,
++		/**
++        * @method loadContent
++        * @description Loading the content of the unit using the connection manager
++        * @return {object} YUI Connection Manager handler
++        */
++        loadContent: function() {
++			// load dynamic content unless already loading or loaded and caching
++			if (YAHOO.util.Connect && this.get('dataSrc') && !this._loading && !this.get('dataLoaded')) {
++		        this._loading = true; 
++		        Dom.addClass(this.body, this.LOADING_CLASSNAME);
++				this.dataConnection = YAHOO.util.Connect.asyncRequest(
++		            this.get('loadMethod'),
++		            this.get('dataSrc'), 
++		            {
++		                success: function(o) {
++		                    this.loadHandler.success.call(this, o);
++		                    this.set('dataLoaded', true);
++		                    this.dataConnection = null;
++		                    Dom.removeClass(this.body, this.LOADING_CLASSNAME);
++							this._loading = false;
++							this.fireEvent('load');
++		                },
++		                failure: function(o) {
++		                    this.loadHandler.failure.call(this, o);
++		                    this.dataConnection = null;
++		                    Dom.removeClass(this.body, this.LOADING_CLASSNAME);
++		                    this._loading = false;
++							this.fireEvent('loadError', { error: o });
++		                },
++		                scope: this,
++		                timeout: this.get('dataTimeout')
++		            }
++		        );
++				return this.dataConnection;
++	        }
++			return false;
++        },
++        /**
++        * @private
++        * @method init
++        * @description The initalization method inherited from Element.
++        */
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'LayoutUnit');
++            this._gutter = {
++                left: 0,
++                right: 0,
++                top: 0,
++                bottom: 0
++            };
++            this._sizes = {
++                wrap: {
++                    h: 0,
++                    w: 0
++                },
++                header: {
++                    h: 0,
++                    w: 0
++                },
++                body: {
++                    h: 0,
++                    w: 0
++                },
++                footer: {
++                    h: 0,
++                    w: 0
++                }
++            };
++            
++            LayoutUnit.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.browser = this.get('parent').browser;
++            
++            var id = p_oElement;
++            if (!Lang.isString(id)) {
++                id = Dom.generateId(id);
++            }
++            LayoutUnit._instances[id] = this;
++
++            this.setStyle('position', 'absolute');
++
++            this.addClass('yui-layout-unit');
++            this.addClass('yui-layout-unit-' + this.get('position'));
++
++
++            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
++            if (header) {
++                this.header = header;
++            }
++            var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
++            if (body) {
++                this.body = body;
++            }
++            var footer = this.getElementsByClassName('yui-layout-ft', 'div')[0];
++            if (footer) {
++                this.footer = footer;
++            }
++
++            this.on('contentChange', this.resize, this, true);
++            this._lastScrollTop = 0;
++
++            this.set('animate', this.get('animate'));
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Processes the config
++        */        
++        initAttributes: function(attr) {
++            LayoutUnit.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @private
++            * @attribute wrap
++            * @description A reference to the wrap element
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('wrap', {
++                value: attr.wrap || null,
++                method: function(w) {
++                    if (w) {
++                        var id = Dom.generateId(w);
++                        LayoutUnit._instances[id] = this;
++                    }
++                }
++            });
++            /**
++            * @attribute grids
++            * @description Set this option to true if you want the LayoutUnit to fix the first layer of YUI CSS Grids (margins)
++            * @type Boolean
++            */
++            this.setAttributeConfig('grids', {
++                value: attr.grids || false
++            });
++            /**
++            * @private
++            * @attribute top
++            * @description The current top positioning of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('top', {
++                value: attr.top || 0,
++                validator: Lang.isNumber,
++                method: function(t) {
++                    if (!this._collapsing) {
++                        this.setStyle('top', t + 'px');
++                    }
++                }
++            });
++            /**
++            * @private
++            * @attribute left
++            * @description The current left position of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('left', {
++                value: attr.left || 0,
++                validator: Lang.isNumber,
++                method: function(l) {
++                    if (!this._collapsing) {
++                        this.setStyle('left', l + 'px');
++                    }
++                }
++            });
++
++            /**
++            * @attribute minWidth
++            * @description The minWidth parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                value: attr.minWidth || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('minWidth', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxWidth
++            * @description The maxWidth parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('maxWidth', {
++                value: attr.maxWidth || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('maxWidth', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minHeight
++            * @description The minHeight parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                value: attr.minHeight || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('minHeight', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxHeight
++            * @description The maxHeight parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('maxHeight', {
++                value: attr.maxHeight || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('maxHeight', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute height
++            * @description The height of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height,
++                validator: Lang.isNumber,
++                method: function(h) {
++                    if (!this._collapsing) {
++                        if (h < 0) {
++                            h = 0;
++                        }
++                        this.setStyle('height', h + 'px');
++                    }
++                }
++            });
++
++            /**
++            * @attribute width
++            * @description The width of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('width', {
++                value: attr.width,
++                validator: Lang.isNumber,
++                method: function(w) {
++                    if (!this._collapsing) {
++                        if (w < 0) {
++                            w = 0;
++                        }
++                        this.setStyle('width', w + 'px');
++                    }
++                }
++            });
++            /**
++            * @attribute zIndex
++            * @description The CSS zIndex to give to the unit, so you can have overlapping elements such as menus in a unit.
++            * @type {Number}
++            */
++            this.setAttributeConfig('zIndex', {
++                value: attr.zIndex || false,
++                method: function(z) {
++                    this.setStyle('zIndex', z);
++                }
++            });
++            /**
++            * @attribute position
++            * @description The position (top, right, bottom, left or center) of the Unit in the Layout
++            * @type {String}
++            */
++            this.setAttributeConfig('position', {
++                value: attr.position
++            });
++            /**
++            * @attribute gutter
++            * @description The gutter that we should apply to the parent Layout around this Unit. Supports standard CSS markup: (2 4 0 5) or (2) or (2 5)
++            * @type String
++            */
++            this.setAttributeConfig('gutter', {
++                value: attr.gutter || 0,
++                validator: YAHOO.lang.isString,
++                method: function(gutter) {
++                    var p = gutter.split(' ');
++                    if (p.length) {
++                        this._gutter.top = parseInt(p[0], 10);
++                        if (p[1]) {
++                            this._gutter.right = parseInt(p[1], 10);
++                        } else {
++                            this._gutter.right = this._gutter.top;
++                        }
++                        if (p[2]) {
++                            this._gutter.bottom = parseInt(p[2], 10);
++                        } else {
++                            this._gutter.bottom = this._gutter.top;
++                        }
++                        if (p[3]) {
++                            this._gutter.left = parseInt(p[3], 10);
++                        } else if (p[1]) {
++                            this._gutter.left = this._gutter.right;
++                        } else {
++                            this._gutter.left = this._gutter.top;
++                        }
++                    }
++                }
++            });
++            /**
++            * @attribute parent
++            * @description The parent Layout that we are assigned to
++            * @type {Object} YAHOO.widget.Layout
++            */
++            this.setAttributeConfig('parent', {
++                writeOnce: true,
++                value: attr.parent || false,
++                method: function(p) {
++                    if (p) {
++                        p.on('resize', this.resize, this, true);
++                    }
++
++                }
++            });
++            /**
++            * @attribute collapseSize
++            * @description The pixel size of the Clip that we will collapse to
++            * @type Number
++            */
++            this.setAttributeConfig('collapseSize', {
++                value: attr.collapseSize || 25,
++                validator: YAHOO.lang.isNumber
++            });
++            /**
++            * @attribute duration
++            * @description The duration to give the Animation Utility when animating the opening and closing of Units
++            */
++            this.setAttributeConfig('duration', {
++                value: attr.duration || 0.5
++            });
++            /**
++            * @attribute easing
++            * @description The Animation Easing to apply to the Animation instance for this unit.
++            */
++            this.setAttributeConfig('easing', {
++                value: attr.easing || ((YAHOO.util && YAHOO.util.Easing) ? YAHOO.util.Easing.BounceIn : 'false')
++            });
++            /**
++            * @attribute animate
++            * @description Use animation to collapse/expand the unit
++            * @type Boolean
++            */
++            this.setAttributeConfig('animate', {
++                value: ((attr.animate === false) ? false : true),
++                validator: function() {
++                    var anim = false;
++                    if (YAHOO.util.Anim) {
++                        anim = true;
++                    }
++                    return anim;
++                },
++                method: function(anim) {
++                    if (anim) {
++                        this._anim = new YAHOO.util.Anim(this.get('element'), {}, this.get('duration'), this.get('easing'));
++                    } else {
++                        this._anim = false;
++                    }
++                }
++            });
++            /**
++            * @attribute header
++            * @description The text to use as the Header of the Unit
++            */
++            this.setAttributeConfig('header', {
++                value: attr.header || false,
++                method: function(txt) {
++                    if (txt === false) {
++                        //Remove the footer
++                        if (this.header) {
++                            Dom.addClass(this.body, 'yui-layout-bd-nohd');
++                            this.header.parentNode.removeChild(this.header);
++                            this.header = null;
++                        }
++                    } else {
++                        if (!this.header) {
++                            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
++                            if (!header) {
++                                header = this._createHeader();
++                            }
++                            this.header = header;
++                        }
++                        var h = this.header.getElementsByTagName('h2')[0];
++                        if (!h) {
++                            h = document.createElement('h2');
++                            this.header.appendChild(h);
++                        }
++                        h.innerHTML = txt;
++                        if (this.body) {
++                            Dom.removeClass(this.body, 'yui-layout-bd-nohd');
++                        }
++                    }
++                    this.fireEvent('contentChange', { target: 'header' });
++                }
++            });
++            /**
++            * @attribute proxy
++            * @description Use the proxy config setting for the Resize Utility
++            * @type Boolean
++            */
++            this.setAttributeConfig('proxy', {
++                writeOnce: true,
++                value: ((attr.proxy === false) ? false : true)
++            });
++            /**
++            * @attribute body
++            * @description The content for the body. If we find an element in the page with an id that matches the passed option we will move that element into the body of this unit.
++            */
++            this.setAttributeConfig('body', {
++                value: attr.body || false,
++                method: function(content) {
++                    if (!this.body) {
++                        var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
++                        if (body) {
++                            this.body = body;
++                        } else {
++                            body = document.createElement('div');
++                            body.className = 'yui-layout-bd';
++                            this.body = body;
++                            this.get('wrap').appendChild(body);
++                        }
++                    }
++                    if (!this.header) {
++                        Dom.addClass(this.body, 'yui-layout-bd-nohd');
++                    }
++                    Dom.addClass(this.body, 'yui-layout-bd-noft');
++
++
++                    var el = null;
++                    if (Lang.isString(content)) {
++                        el = Dom.get(content);
++                    } else if (content && content.tagName) {
++                        el = content;
++                    }
++                    if (el) {
++                        var id = Dom.generateId(el);
++                        LayoutUnit._instances[id] = this;
++                        this.body.appendChild(el);
++                    } else {
++                        this.body.innerHTML = content;
++                    }
++
++                    this._cleanGrids();
++
++                    this.fireEvent('contentChange', { target: 'body' });
++                }
++            });
++
++            /**
++            * @attribute footer
++            * @description The content for the footer. If we find an element in the page with an id that matches the passed option we will move that element into the footer of this unit.
++            */
++            this.setAttributeConfig('footer', {
++                value: attr.footer || false,
++                method: function(content) {
++                    if (content === false) {
++                        //Remove the footer
++                        if (this.footer) {
++                            Dom.addClass(this.body, 'yui-layout-bd-noft');
++                            this.footer.parentNode.removeChild(this.footer);
++                            this.footer = null;
++                        }
++                    } else {
++                        if (!this.footer) {
++                            var ft = this.getElementsByClassName('yui-layout-ft', 'div')[0];
++                            if (!ft) {
++                                ft = document.createElement('div');
++                                ft.className = 'yui-layout-ft';
++                                this.footer = ft;
++                                this.get('wrap').appendChild(ft);
++                            } else {
++                                this.footer = ft;
++                            }
++                        }
++                        var el = null;
++                        if (Lang.isString(content)) {
++                            el = Dom.get(content);
++                        } else if (content && content.tagName) {
++                            el = content;
++                        }
++                        if (el) {
++                            this.footer.appendChild(el);
++                        } else {
++                            this.footer.innerHTML = content;
++                        }
++                        Dom.removeClass(this.body, 'yui-layout-bd-noft');
++                    }
++                    this.fireEvent('contentChange', { target: 'footer' });
++                }
++            });
++            /**
++            * @attribute close
++            * @description Adds a close icon to the unit
++            */
++            this.setAttributeConfig('close', {
++                value: attr.close || false,
++                method: function(close) {
++                    //Position Center doesn't get this
++                    if (this.get('position') == 'center') {
++                        YAHOO.log('Position center unit cannot have close', 'error', 'LayoutUnit');
++                        return false;
++                    }
++                    if (!this.header && close) {
++                        this._createHeader();
++                    }
++                    var c = Dom.getElementsByClassName('close', 'div', this.header)[0];
++                    if (close) {
++                        //Force some header text if there isn't any
++                        if (!this.get('header')) {
++                            this.set('header', '&nbsp;');
++                        }
++                        if (!c) {
++                            c = document.createElement('div');
++                            c.className = 'close';
++                            this.header.appendChild(c);
++                            Event.on(c, 'click', this.close, this, true);
++                        }
++                        c.title = this.STR_CLOSE;
++                    } else if (c && c.parentNode) {
++                        Event.purgeElement(c);
++                        c.parentNode.removeChild(c);
++                    }
++                    this._configs.close.value = close;
++                    this.set('collapse', this.get('collapse')); //Reset so we get the right classnames
++                }
++            });
++
++            /**
++            * @attribute collapse
++            * @description Adds a collapse icon to the unit
++            */
++            this.setAttributeConfig('collapse', {
++                value: attr.collapse || false,
++                method: function(collapse) {
++                    //Position Center doesn't get this
++                    if (this.get('position') == 'center') {
++                        YAHOO.log('Position center unit cannot have collapse', 'error', 'LayoutUnit');
++                        return false;
++                    }
++                    if (!this.header && collapse) {
++                        this._createHeader();
++                    }
++                    var c = Dom.getElementsByClassName('collapse', 'div', this.header)[0];
++                    if (collapse) {
++                        //Force some header text if there isn't any
++                        if (!this.get('header')) {
++                            this.set('header', '&nbsp;');
++                        }
++                        if (!c) {
++                            c = document.createElement('div');
++                            this.header.appendChild(c);
++                            Event.on(c, 'click', this.collapse, this, true);
++                        }
++                        c.title = this.STR_COLLAPSE;
++                        c.className = 'collapse' + ((this.get('close')) ? ' collapse-close' : '');
++                    } else if (c && c.parentNode) {
++                        Event.purgeElement(c);
++                        c.parentNode.removeChild(c);
++                    }
++                }
++            });
++            /**
++            * @attribute scroll
++            * @description Adds a class to the unit to allow for overflow: auto (yui-layout-scroll), default is overflow: hidden (yui-layout-noscroll). If true scroll bars will be placed on the element when the content exceeds the given area, false will put overflow hidden to hide the content. Passing null will render the content as usual overflow.
++            * @type Boolean/Null
++            */
++
++            this.setAttributeConfig('scroll', {
++                value: (((attr.scroll === true) || (attr.scroll === false) || (attr.scroll === null)) ? attr.scroll : false),
++                method: function(scroll) {
++                    if ((scroll === false) && !this._collapsed) { //Removing scroll bar
++                        if (this.body) {
++                            if (this.body.scrollTop > 0) {
++                                this._lastScrollTop = this.body.scrollTop;
++                            }
++                        }
++                    }
++                    
++                    if (scroll === true) {
++                        this.addClass('yui-layout-scroll');
++                        this.removeClass('yui-layout-noscroll');
++                        if (this._lastScrollTop > 0) {
++                            if (this.body) {
++                                this.body.scrollTop = this._lastScrollTop;
++                            }
++                        }
++                    } else if (scroll === false) {
++                        this.removeClass('yui-layout-scroll');
++                        this.addClass('yui-layout-noscroll');
++                    } else if (scroll === null) {
++                        this.removeClass('yui-layout-scroll');
++                        this.removeClass('yui-layout-noscroll');
++                    }
++                }
++            });
++            /**
++            * @attribute hover
++            * @description Config option to pass to the Resize Utility
++            */
++            this.setAttributeConfig('hover', {
++                writeOnce: true,
++                value: attr.hover || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @attribute useShim
++            * @description Config option to pass to the Resize Utility
++            */
++            this.setAttributeConfig('useShim', {
++                value: attr.useShim || false,
++                validator: YAHOO.lang.isBoolean,
++                method: function(u) {
++                    if (this._resize) {
++                        this._resize.set('useShim', u);
++                    }
++                }
++            });
++            /**
++            * @attribute resize
++            * @description Should a Resize instance be added to this unit
++            */
++
++            this.setAttributeConfig('resize', {
++                value: attr.resize || false,
++                validator: function(r) {
++                    if (YAHOO.util && YAHOO.util.Resize) {
++                        return true;
++                    }
++                    return false;
++                },
++                method: function(resize) {
++                    if (resize && !this._resize) {
++                        //Position Center doesn't get this
++                        if (this.get('position') == 'center') {
++                            YAHOO.log('Position center unit cannot have resize', 'error', 'LayoutUnit');
++                            return false;
++                        }
++                        var handle = false; //To catch center
++                        switch (this.get('position')) {
++                            case 'top':
++                                handle = 'b';
++                                break;
++                            case 'bottom':
++                                handle = 't';
++                                break;
++                            case 'right':
++                                handle = 'l';
++                                break;
++                            case 'left':
++                                handle = 'r';
++                                break;
++                        }
++
++                        this.setStyle('position', 'absolute'); //Make sure Resize get's a position
++                        
++                        if (handle) {
++                            this._resize = new YAHOO.util.Resize(this.get('element'), {
++                                proxy: this.get('proxy'),
++                                hover: this.get('hover'),
++                                status: false,
++                                autoRatio: false,
++                                handles: [handle],
++                                minWidth: this.get('minWidth'),
++                                maxWidth: this.get('maxWidth'),
++                                minHeight: this.get('minHeight'),
++                                maxHeight: this.get('maxHeight'),
++                                height: this.get('height'),
++                                width: this.get('width'),
++                                setSize: false,
++                                useShim: this.get('useShim'),
++                                wrap: false
++                            });
++                            
++                            this._resize._handles[handle].innerHTML = '<div class="yui-layout-resize-knob"></div>';
++
++                            if (this.get('proxy')) {
++                                var proxy = this._resize.getProxyEl();
++                                proxy.innerHTML = '<div class="yui-layout-handle-' + handle + '"></div>';
++                            }
++                            this._resize.on('startResize', function(ev) {
++                                this._lastScroll = this.get('scroll');
++                                this.set('scroll', false);
++                                if (this.get('parent')) {
++                                    this.get('parent').fireEvent('startResize');
++                                    var c = this.get('parent').getUnitByPosition('center');
++                                    this._lastCenterScroll = c.get('scroll');
++                                    c.addClass(this._resize.CSS_RESIZING);
++                                    c.set('scroll', false);
++                                }
++                                this.fireEvent('startResize');
++                            }, this, true);
++                            this._resize.on('resize', function(ev) {
++                                this.set('height', ev.height);
++                                this.set('width', ev.width);
++                            }, this, true);
++                            this._resize.on('endResize', function(ev) {
++                                this.set('scroll', this._lastScroll);
++                                if (this.get('parent')) {
++                                    var c = this.get('parent').getUnitByPosition('center');
++                                    c.set('scroll', this._lastCenterScroll);
++                                    c.removeClass(this._resize.CSS_RESIZING);
++                                }
++                                this.resize();
++                                this.fireEvent('endResize');
++                            }, this, true);
++                        }
++                    } else {
++                        if (this._resize) {
++                            this._resize.destroy();
++                        }
++                    }
++                }
++            });
++			/**
++	         * The unit data source, used for loading content dynamically.
++	         * @attribute dataSrc
++	         * @type String
++	         */
++	        this.setAttributeConfig('dataSrc', {
++	            value: attr.dataSrc
++	        });
++	        /**
++	         * The method to use for the data request.
++	         * @attribute loadMethod
++	         * @type String
++	         * @default "GET"
++	         */
++	        this.setAttributeConfig('loadMethod', {
++	            value: attr.loadMethod || 'GET',
++	            validator: YAHOO.lang.isString
++	        });	
++	        /**
++	         * Whether or not any data has been loaded from the server.
++	         * @attribute dataLoaded
++	         * @type Boolean
++	         */        
++	        this.setAttributeConfig('dataLoaded', {
++	            value: false,
++	            validator: YAHOO.lang.isBoolean,
++	            writeOnce: true
++	        });
++	        /**
++	         * Number if milliseconds before aborting and calling failure handler.
++	         * @attribute dataTimeout
++	         * @type Number
++	         * @default null
++	         */
++	        this.setAttributeConfig('dataTimeout', {
++	            value: attr.dataTimeout || null,
++	            validator: YAHOO.lang.isNumber
++	        });
++        },
++        /**
++        * @private
++        * @method _cleanGrids
++        * @description This method attempts to clean up the first level of the YUI CSS Grids, YAHOO.util.Selector is required for this operation.
++        */
++        _cleanGrids: function() {
++            if (this.get('grids')) {
++                var b = Sel.query('div.yui-b', this.body, true);
++                if (b) {
++                    Dom.removeClass(b, 'yui-b');
++                }
++                Event.onAvailable('yui-main', function() {
++                    Dom.setStyle(Sel.query('#yui-main'), 'margin-left', '0');
++                    Dom.setStyle(Sel.query('#yui-main'), 'margin-right', '0');
++                });
++            }
++        },
++        /**
++        * @private
++        * @method _createHeader
++        * @description Creates the HTMLElement for the header
++        * @return {HTMLElement} The new HTMLElement
++        */
++        _createHeader: function() {
++            var header = document.createElement('div');
++            header.className = 'yui-layout-hd';
++            if (this.get('firstChild')) {
++                this.get('wrap').insertBefore(header, this.get('wrap').firstChild);
++            } else {
++                this.get('wrap').appendChild(header);
++            }
++            this.header = header;
++            return header;
++        },
++        /**
++        * @method destroy
++        * @param {Boolean} force Don't report to the parent, because we are being called from the parent.
++        * @description Removes this unit from the parent and cleans up after itself.
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
++        */
++        destroy: function(force) {
++            if (this._resize) {
++                this._resize.destroy();
++            }
++            var par = this.get('parent');
++
++            this.setStyle('display', 'none');
++            if (this._clip) {
++                this._clip.parentNode.removeChild(this._clip);
++                this._clip = null;
++            }
++
++            if (!force) {
++                par.removeUnit(this);
++            }
++            
++            if (par) {
++                par.removeListener('resize', this.resize, this, true);
++            }
++            this.unsubscribeAll();
++            Event.purgeElement(this.get('element'));
++            this.get('parentNode').removeChild(this.get('element'));
++
++            delete YAHOO.widget.LayoutUnit._instances[this.get('id')];
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                    delete this[i];
++                }
++            }
++        
++            return par;
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the LayoutUnit.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'LayoutUnit #' + this.get('id') + ' (' + this.get('position') + ')';
++            }
++            return 'LayoutUnit';
++        }
++    /**
++    * @event resize
++    * @description Fired when this.resize is called
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event startResize
++    * @description Fired when the Resize Utility fires it's startResize Event.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event endResize
++    * @description Fired when the Resize Utility fires it's endResize Event.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeResize
++    * @description Fired at the beginning of the resize method. If you return false, the resize is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event contentChange
++    * @description Fired when the content in the header, body or footer is changed via the API
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event close
++    * @description Fired when the unit is closed
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeCollapse
++    * @description Fired before the unit is collapsed. If you return false, the collapse is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event collapse
++    * @description Fired when the unit is collapsed
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event expand
++    * @description Fired when the unit is exanded
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeExpand
++    * @description Fired before the unit is exanded. If you return false, the collapse is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event load
++    * @description Fired when data is loaded via the dataSrc config.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event loadError
++    * @description Fired when an error occurs loading data via the dataSrc config. Error message is passed as argument to this event.
++    * @type YAHOO.util.CustomEvent
++    */
++    });
++
++    YAHOO.widget.LayoutUnit = LayoutUnit;
++})();
++YAHOO.register("layout", YAHOO.widget.Layout, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/layout/layout-min.js b/pylons_app/public/js/yui/layout/layout-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/layout/layout-min.js
+@@ -0,0 +1,11 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var C=YAHOO.util.Dom,A=YAHOO.util.Event,D=YAHOO.lang;var B=function(F,E){if(D.isObject(F)&&!F.tagName){E=F;F=null;}if(D.isString(F)){if(C.get(F)){F=C.get(F);}}if(!F){F=document.body;}var G={element:F,attributes:E||{}};B.superclass.constructor.call(this,G.element,G.attributes);};B._instances={};B.getLayoutById=function(E){if(B._instances[E]){return B._instances[E];}return false;};YAHOO.extend(B,YAHOO.util.Element,{browser:function(){var E=YAHOO.env.ua;E.standardsMode=false;E.secure=false;return E;}(),_units:null,_rendered:null,_zIndex:null,_sizes:null,_setBodySize:function(G){var F=0,E=0;G=((G===false)?false:true);if(this._isBody){F=C.getClientHeight();E=C.getClientWidth();}else{F=parseInt(this.getStyle("height"),10);E=parseInt(this.getStyle("width"),10);if(isNaN(E)){E=this.get("element").clientWidth;}if(isNaN(F)){F=this.get("element").clientHeight;}}if(this.get("minWidth")){if(E<this.get("minWidth")){E=this.get("minWidth");}}if(this.get("minHeight")){if(F<this.get("minHeight")){F=this.get("minHeight");}}if(G){if(F<0){F=0;}if(E<0){E=0;}C.setStyle(this._doc,"height",F+"px");C.setStyle(this._doc,"width",E+"px");}this._sizes.doc={h:F,w:E};this._setSides(G);},_setSides:function(J){var H=((this._units.top)?this._units.top.get("height"):0),G=((this._units.bottom)?this._units.bottom.get("height"):0),I=this._sizes.doc.h,E=this._sizes.doc.w;J=((J===false)?false:true);this._sizes.top={h:H,w:((this._units.top)?E:0),t:0};this._sizes.bottom={h:G,w:((this._units.bottom)?E:0)};var F=(I-(H+G));this._sizes.left={h:F,w:((this._units.left)?this._units.left.get("width"):0)};this._sizes.right={h:F,w:((this._units.right)?this._units.right.get("width"):0),l:((this._units.right)?(E-this._units.right.get("width")):0),t:((this._units.top)?this._sizes.top.h:0)};if(this._units.right&&J){this._units.right.set("top",this._sizes.right.t);if(!this._units.right._collapsing){this._units.right.set("left",this._sizes.right.l);}this._units.right.set("height",this._sizes.right.h,true);}if(this._units.left){this._sizes.left.l=0;if(this._units.top){this._sizes.left.t=this._sizes.top.h;}else{this._sizes.left.t=0;}if(J){this._units.left.set("top",this._sizes.left.t);this._units.left.set("height",this._sizes.left.h,true);this._units.left.set("left",0);}}if(this._units.bottom){this._sizes.bottom.t=this._sizes.top.h+this._sizes.left.h;if(J){this._units.bottom.set("top",this._sizes.bottom.t);this._units.bottom.set("width",this._sizes.bottom.w,true);}}if(this._units.top){if(J){this._units.top.set("width",this._sizes.top.w,true);}}this._setCenter(J);},_setCenter:function(G){G=((G===false)?false:true);var F=this._sizes.left.h;var E=(this._sizes.doc.w-(this._sizes.left.w+this._sizes.right.w));if(G){this._units.center.set("height",F,true);this._units.center.set("width",E,true);this._units.center.set("top",this._sizes.top.h);this._units.center.set("left",this._sizes.left.w);}this._sizes.center={h:F,w:E,t:this._sizes.top.h,l:this._sizes.left.w};},getSizes:function(){return this._sizes;},getUnitById:function(E){return YAHOO.widget.LayoutUnit.getLayoutUnitById(E);},getUnitByPosition:function(E){if(E){E=E.toLowerCase();if(this._units[E]){return this._units[E];}return false;}return false;},removeUnit:function(E){delete this._units[E.get("position")];this.resize();},addUnit:function(G){if(!G.position){return false;}if(this._units[G.position]){return false;}var H=null,J=null;if(G.id){if(C.get(G.id)){H=C.get(G.id);delete G.id;}}if(G.element){H=G.element;}if(!J){J=document.createElement("div");var L=C.generateId();J.id=L;}if(!H){H=document.createElement("div");}C.addClass(H,"yui-layout-wrap");if(this.browser.ie&&!this.browser.standardsMode){J.style.zoom=1;H.style.zoom=1;}if(J.firstChild){J.insertBefore(H,J.firstChild);}else{J.appendChild(H);}this._doc.appendChild(J);var I=false,F=false;if(G.height){I=parseInt(G.height,10);}if(G.width){F=parseInt(G.width,10);}var E={};YAHOO.lang.augmentObject(E,G);E.parent=this;E.wrap=H;E.height=I;E.width=F;var K=new YAHOO.widget.LayoutUnit(J,E);K.on("heightChange",this.resize,{unit:K},this);K.on("widthChange",this.resize,{unit:K},this);K.on("gutterChange",this.resize,{unit:K},this);this._units[G.position]=K;if(this._rendered){this.resize();}return K;},_createUnits:function(){var E=this.get("units");for(var F in E){if(D.hasOwnProperty(E,F)){this.addUnit(E[F]);}}},resize:function(H,G){var E=H;if(E&&E.prevValue&&E.newValue){if(E.prevValue==E.newValue){if(G){if(G.unit){if(!G.unit.get("animate")){H=false;}}}}}H=((H===false)?false:true);if(H){var F=this.fireEvent("beforeResize");if(F===false){H=false;}if(this.browser.ie){if(this._isBody){C.removeClass(document.documentElement,"yui-layout");C.addClass(document.documentElement,"yui-layout");}else{this.removeClass("yui-layout");this.addClass("yui-layout");}}}this._setBodySize(H);if(H){this.fireEvent("resize",{target:this,sizes:this._sizes,event:E});}return this;},_setupBodyElements:function(){this._doc=C.get("layout-doc");if(!this._doc){this._doc=document.createElement("div");this._doc.id="layout-doc";if(document.body.firstChild){document.body.insertBefore(this._doc,document.body.firstChild);}else{document.body.appendChild(this._doc);}}this._createUnits();this._setBodySize();A.on(window,"resize",this.resize,this,true);C.addClass(this._doc,"yui-layout-doc");},_setupElements:function(){this._doc=this.getElementsByClassName("yui-layout-doc")[0];if(!this._doc){this._doc=document.createElement("div");this.get("element").appendChild(this._doc);}this._createUnits();this._setBodySize();C.addClass(this._doc,"yui-layout-doc");},_isBody:null,_doc:null,init:function(F,E){this._zIndex=0;B.superclass.init.call(this,F,E);if(this.get("parent")){this._zIndex=this.get("parent")._zIndex+10;}this._sizes={};this._units={};var G=F;if(!D.isString(G)){G=C.generateId(G);}B._instances[G]=this;},render:function(){this._stamp();var E=this.get("element");if(E&&E.tagName&&(E.tagName.toLowerCase()=="body")){this._isBody=true;C.addClass(document.body,"yui-layout");if(C.hasClass(document.body,"yui-skin-sam")){C.addClass(document.documentElement,"yui-skin-sam");
++C.removeClass(document.body,"yui-skin-sam");}this._setupBodyElements();}else{this._isBody=false;this.addClass("yui-layout");this._setupElements();}this.resize();this._rendered=true;this.fireEvent("render");return this;},_stamp:function(){if(document.compatMode=="CSS1Compat"){this.browser.standardsMode=true;}if(window.location.href.toLowerCase().indexOf("https")===0){C.addClass(document.documentElement,"secure");this.browser.secure=true;}},initAttributes:function(E){B.superclass.initAttributes.call(this,E);this.setAttributeConfig("units",{writeOnce:true,validator:YAHOO.lang.isArray,value:E.units||[]});this.setAttributeConfig("minHeight",{value:E.minHeight||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minWidth",{value:E.minWidth||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("height",{value:E.height||false,validator:YAHOO.lang.isNumber,method:function(F){if(F<0){F=0;}this.setStyle("height",F+"px");}});this.setAttributeConfig("width",{value:E.width||false,validator:YAHOO.lang.isNumber,method:function(F){if(F<0){F=0;}this.setStyle("width",F+"px");}});this.setAttributeConfig("parent",{writeOnce:true,value:E.parent||false,method:function(F){if(F){F.on("resize",this.resize,this,true);}}});},destroy:function(){var G=this.get("parent");if(G){G.removeListener("resize",this.resize,this,true);}A.removeListener(window,"resize",this.resize,this,true);this.unsubscribeAll();for(var E in this._units){if(D.hasOwnProperty(this._units,E)){if(this._units[E]){this._units[E].destroy(true);}}}A.purgeElement(this.get("element"));this.get("parentNode").removeChild(this.get("element"));delete YAHOO.widget.Layout._instances[this.get("id")];for(var F in this){if(D.hasOwnProperty(this,F)){this[F]=null;delete this[F];}}if(G){G.resize();}},toString:function(){if(this.get){return"Layout #"+this.get("id");}return"Layout";}});YAHOO.widget.Layout=B;})();(function(){var D=YAHOO.util.Dom,C=YAHOO.util.Selector,A=YAHOO.util.Event,E=YAHOO.lang;var B=function(G,F){var H={element:G,attributes:F||{}};B.superclass.constructor.call(this,H.element,H.attributes);};B._instances={};B.getLayoutUnitById=function(F){if(B._instances[F]){return B._instances[F];}return false;};YAHOO.extend(B,YAHOO.util.Element,{STR_CLOSE:"Click to close this pane.",STR_COLLAPSE:"Click to collapse this pane.",STR_EXPAND:"Click to expand this pane.",LOADING_CLASSNAME:"loading",browser:null,_sizes:null,_anim:null,_resize:null,_clip:null,_gutter:null,header:null,body:null,footer:null,_collapsed:null,_collapsing:null,_lastWidth:null,_lastHeight:null,_lastTop:null,_lastLeft:null,_lastScroll:null,_lastCenterScroll:null,_lastScrollTop:null,resize:function(F){var G=this.fireEvent("beforeResize");if(G===false){return this;}if(!this._collapsing||(F===true)){var N=this.get("scroll");this.set("scroll",false);var K=this._getBoxSize(this.header),J=this._getBoxSize(this.footer),L=[this.get("height"),this.get("width")];var H=(L[0]-K[0]-J[0])-(this._gutter.top+this._gutter.bottom),M=L[1]-(this._gutter.left+this._gutter.right);var O=(H+(K[0]+J[0])),I=M;if(this._collapsed&&!this._collapsing){this._setHeight(this._clip,O);this._setWidth(this._clip,I);D.setStyle(this._clip,"top",this.get("top")+this._gutter.top+"px");D.setStyle(this._clip,"left",this.get("left")+this._gutter.left+"px");}else{if(!this._collapsed||(this._collapsed&&this._collapsing)){O=this._setHeight(this.get("wrap"),O);I=this._setWidth(this.get("wrap"),I);this._sizes.wrap.h=O;this._sizes.wrap.w=I;D.setStyle(this.get("wrap"),"top",this._gutter.top+"px");D.setStyle(this.get("wrap"),"left",this._gutter.left+"px");this._sizes.header.w=this._setWidth(this.header,I);this._sizes.header.h=K[0];this._sizes.footer.w=this._setWidth(this.footer,I);this._sizes.footer.h=J[0];D.setStyle(this.footer,"bottom","0px");this._sizes.body.h=this._setHeight(this.body,(O-(K[0]+J[0])));this._sizes.body.w=this._setWidth(this.body,I);D.setStyle(this.body,"top",K[0]+"px");this.set("scroll",N);this.fireEvent("resize");}}}return this;},_setWidth:function(H,G){if(H){var F=this._getBorderSizes(H);G=(G-(F[1]+F[3]));G=this._fixQuirks(H,G,"w");if(G<0){G=0;}D.setStyle(H,"width",G+"px");}return G;},_setHeight:function(H,G){if(H){var F=this._getBorderSizes(H);G=(G-(F[0]+F[2]));G=this._fixQuirks(H,G,"h");if(G<0){G=0;}D.setStyle(H,"height",G+"px");}return G;},_fixQuirks:function(I,L,G){var K=0,H=2;if(G=="w"){K=1;H=3;}if((this.browser.ie<8)&&!this.browser.standardsMode){var F=this._getBorderSizes(I),J=this._getBorderSizes(I.parentNode);if((F[K]===0)&&(F[H]===0)){if((J[K]!==0)&&(J[H]!==0)){L=(L-(J[K]+J[H]));}}else{if((J[K]===0)&&(J[H]===0)){L=(L+(F[K]+F[H]));}}}return L;},_getBoxSize:function(H){var G=[0,0];if(H){if(this.browser.ie&&!this.browser.standardsMode){H.style.zoom=1;}var F=this._getBorderSizes(H);G[0]=H.clientHeight+(F[0]+F[2]);G[1]=H.clientWidth+(F[1]+F[3]);}return G;},_getBorderSizes:function(H){var G=[];H=H||this.get("element");if(this.browser.ie&&!this.browser.standardsMode){H.style.zoom=1;}G[0]=parseInt(D.getStyle(H,"borderTopWidth"),10);G[1]=parseInt(D.getStyle(H,"borderRightWidth"),10);G[2]=parseInt(D.getStyle(H,"borderBottomWidth"),10);G[3]=parseInt(D.getStyle(H,"borderLeftWidth"),10);for(var F=0;F<G.length;F++){if(isNaN(G[F])){G[F]=0;}}return G;},_createClip:function(){if(!this._clip){this._clip=document.createElement("div");this._clip.className="yui-layout-clip yui-layout-clip-"+this.get("position");this._clip.innerHTML='<div class="collapse"></div>';var F=this._clip.firstChild;F.title=this.STR_EXPAND;A.on(F,"click",this.expand,this,true);this.get("element").parentNode.appendChild(this._clip);}},_toggleClip:function(){if(!this._collapsed){var J=this._getBoxSize(this.header),K=this._getBoxSize(this.footer),I=[this.get("height"),this.get("width")];var H=(I[0]-J[0]-K[0])-(this._gutter.top+this._gutter.bottom),F=I[1]-(this._gutter.left+this._gutter.right),G=(H+(J[0]+K[0]));switch(this.get("position")){case"top":case"bottom":this._setWidth(this._clip,F);this._setHeight(this._clip,this.get("collapseSize"));D.setStyle(this._clip,"left",(this._lastLeft+this._gutter.left)+"px");
++if(this.get("position")=="bottom"){D.setStyle(this._clip,"top",((this._lastTop+this._lastHeight)-(this.get("collapseSize")-this._gutter.top))+"px");}else{D.setStyle(this._clip,"top",this.get("top")+this._gutter.top+"px");}break;case"left":case"right":this._setWidth(this._clip,this.get("collapseSize"));this._setHeight(this._clip,G);D.setStyle(this._clip,"top",(this.get("top")+this._gutter.top)+"px");if(this.get("position")=="right"){D.setStyle(this._clip,"left",(((this._lastLeft+this._lastWidth)-this.get("collapseSize"))-this._gutter.left)+"px");}else{D.setStyle(this._clip,"left",(this.get("left")+this._gutter.left)+"px");}break;}D.setStyle(this._clip,"display","block");this.setStyle("display","none");}else{D.setStyle(this._clip,"display","none");}},getSizes:function(){return this._sizes;},toggle:function(){if(this._collapsed){this.expand();}else{this.collapse();}return this;},expand:function(){if(!this._collapsed){return this;}var L=this.fireEvent("beforeExpand");if(L===false){return this;}this._collapsing=true;this.setStyle("zIndex",this.get("parent")._zIndex+1);if(this._anim){this.setStyle("display","none");var F={},H;switch(this.get("position")){case"left":case"right":this.set("width",this._lastWidth,true);this.setStyle("width",this._lastWidth+"px");this.get("parent").resize(false);H=this.get("parent").getSizes()[this.get("position")];this.set("height",H.h,true);var K=H.l;F={left:{to:K}};if(this.get("position")=="left"){F.left.from=(K-H.w);this.setStyle("left",(K-H.w)+"px");}break;case"top":case"bottom":this.set("height",this._lastHeight,true);this.setStyle("height",this._lastHeight+"px");this.get("parent").resize(false);H=this.get("parent").getSizes()[this.get("position")];this.set("width",H.w,true);var J=H.t;F={top:{to:J}};if(this.get("position")=="top"){this.setStyle("top",(J-H.h)+"px");F.top.from=(J-H.h);}break;}this._anim.attributes=F;var I=function(){this.setStyle("display","block");this.resize(true);this._anim.onStart.unsubscribe(I,this,true);};var G=function(){this._collapsing=false;this.setStyle("zIndex",this.get("parent")._zIndex);this.set("width",this._lastWidth);this.set("height",this._lastHeight);this._collapsed=false;this.resize();this.set("scroll",this._lastScroll);if(this._lastScrollTop>0){this.body.scrollTop=this._lastScrollTop;}this._anim.onComplete.unsubscribe(G,this,true);this.fireEvent("expand");};this._anim.onStart.subscribe(I,this,true);this._anim.onComplete.subscribe(G,this,true);this._anim.animate();this._toggleClip();}else{this._collapsing=false;this._toggleClip();this._collapsed=false;this.setStyle("zIndex",this.get("parent")._zIndex);this.setStyle("display","block");this.set("width",this._lastWidth);this.set("height",this._lastHeight);this.resize();this.set("scroll",this._lastScroll);if(this._lastScrollTop>0){this.body.scrollTop=this._lastScrollTop;}this.fireEvent("expand");}return this;},collapse:function(){if(this._collapsed){return this;}var J=this.fireEvent("beforeCollapse");if(J===false){return this;}if(!this._clip){this._createClip();}this._collapsing=true;var G=this.get("width"),H=this.get("height"),F={};this._lastWidth=G;this._lastHeight=H;this._lastScroll=this.get("scroll");this._lastScrollTop=this.body.scrollTop;this.set("scroll",false,true);this._lastLeft=parseInt(this.get("element").style.left,10);this._lastTop=parseInt(this.get("element").style.top,10);if(isNaN(this._lastTop)){this._lastTop=0;this.set("top",0);}if(isNaN(this._lastLeft)){this._lastLeft=0;this.set("left",0);}this.setStyle("zIndex",this.get("parent")._zIndex+1);var K=this.get("position");switch(K){case"top":case"bottom":this.set("height",(this.get("collapseSize")+(this._gutter.top+this._gutter.bottom)));F={top:{to:(this.get("top")-H)}};if(K=="bottom"){F.top.to=(this.get("top")+H);}break;case"left":case"right":this.set("width",(this.get("collapseSize")+(this._gutter.left+this._gutter.right)));F={left:{to:-(this._lastWidth)}};if(K=="right"){F.left={to:(this.get("left")+G)};}break;}if(this._anim){this._anim.attributes=F;var I=function(){this._collapsing=false;this._toggleClip();this.setStyle("zIndex",this.get("parent")._zIndex);this._collapsed=true;this.get("parent").resize();this._anim.onComplete.unsubscribe(I,this,true);this.fireEvent("collapse");};this._anim.onComplete.subscribe(I,this,true);this._anim.animate();}else{this._collapsing=false;this.setStyle("display","none");this._toggleClip();this.setStyle("zIndex",this.get("parent")._zIndex);this.get("parent").resize();this._collapsed=true;this.fireEvent("collapse");}return this;},close:function(){this.setStyle("display","none");this.get("parent").removeUnit(this);this.fireEvent("close");if(this._clip){this._clip.parentNode.removeChild(this._clip);this._clip=null;}return this.get("parent");},loadHandler:{success:function(F){this.body.innerHTML=F.responseText;this.resize(true);},failure:function(F){}},dataConnection:null,_loading:false,loadContent:function(){if(YAHOO.util.Connect&&this.get("dataSrc")&&!this._loading&&!this.get("dataLoaded")){this._loading=true;D.addClass(this.body,this.LOADING_CLASSNAME);this.dataConnection=YAHOO.util.Connect.asyncRequest(this.get("loadMethod"),this.get("dataSrc"),{success:function(F){this.loadHandler.success.call(this,F);this.set("dataLoaded",true);this.dataConnection=null;D.removeClass(this.body,this.LOADING_CLASSNAME);this._loading=false;this.fireEvent("load");},failure:function(F){this.loadHandler.failure.call(this,F);this.dataConnection=null;D.removeClass(this.body,this.LOADING_CLASSNAME);this._loading=false;this.fireEvent("loadError",{error:F});},scope:this,timeout:this.get("dataTimeout")});return this.dataConnection;}return false;},init:function(H,G){this._gutter={left:0,right:0,top:0,bottom:0};this._sizes={wrap:{h:0,w:0},header:{h:0,w:0},body:{h:0,w:0},footer:{h:0,w:0}};B.superclass.init.call(this,H,G);this.browser=this.get("parent").browser;var K=H;if(!E.isString(K)){K=D.generateId(K);}B._instances[K]=this;this.setStyle("position","absolute");this.addClass("yui-layout-unit");this.addClass("yui-layout-unit-"+this.get("position"));
++var J=this.getElementsByClassName("yui-layout-hd","div")[0];if(J){this.header=J;}var F=this.getElementsByClassName("yui-layout-bd","div")[0];if(F){this.body=F;}var I=this.getElementsByClassName("yui-layout-ft","div")[0];if(I){this.footer=I;}this.on("contentChange",this.resize,this,true);this._lastScrollTop=0;this.set("animate",this.get("animate"));},initAttributes:function(F){B.superclass.initAttributes.call(this,F);this.setAttributeConfig("wrap",{value:F.wrap||null,method:function(G){if(G){var H=D.generateId(G);B._instances[H]=this;}}});this.setAttributeConfig("grids",{value:F.grids||false});this.setAttributeConfig("top",{value:F.top||0,validator:E.isNumber,method:function(G){if(!this._collapsing){this.setStyle("top",G+"px");}}});this.setAttributeConfig("left",{value:F.left||0,validator:E.isNumber,method:function(G){if(!this._collapsing){this.setStyle("left",G+"px");}}});this.setAttributeConfig("minWidth",{value:F.minWidth||false,method:function(G){if(this._resize){this._resize.set("minWidth",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxWidth",{value:F.maxWidth||false,method:function(G){if(this._resize){this._resize.set("maxWidth",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("minHeight",{value:F.minHeight||false,method:function(G){if(this._resize){this._resize.set("minHeight",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxHeight",{value:F.maxHeight||false,method:function(G){if(this._resize){this._resize.set("maxHeight",G);}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("height",{value:F.height,validator:E.isNumber,method:function(G){if(!this._collapsing){if(G<0){G=0;}this.setStyle("height",G+"px");}}});this.setAttributeConfig("width",{value:F.width,validator:E.isNumber,method:function(G){if(!this._collapsing){if(G<0){G=0;}this.setStyle("width",G+"px");}}});this.setAttributeConfig("zIndex",{value:F.zIndex||false,method:function(G){this.setStyle("zIndex",G);}});this.setAttributeConfig("position",{value:F.position});this.setAttributeConfig("gutter",{value:F.gutter||0,validator:YAHOO.lang.isString,method:function(H){var G=H.split(" ");if(G.length){this._gutter.top=parseInt(G[0],10);if(G[1]){this._gutter.right=parseInt(G[1],10);}else{this._gutter.right=this._gutter.top;}if(G[2]){this._gutter.bottom=parseInt(G[2],10);}else{this._gutter.bottom=this._gutter.top;}if(G[3]){this._gutter.left=parseInt(G[3],10);}else{if(G[1]){this._gutter.left=this._gutter.right;}else{this._gutter.left=this._gutter.top;}}}}});this.setAttributeConfig("parent",{writeOnce:true,value:F.parent||false,method:function(G){if(G){G.on("resize",this.resize,this,true);}}});this.setAttributeConfig("collapseSize",{value:F.collapseSize||25,validator:YAHOO.lang.isNumber});this.setAttributeConfig("duration",{value:F.duration||0.5});this.setAttributeConfig("easing",{value:F.easing||((YAHOO.util&&YAHOO.util.Easing)?YAHOO.util.Easing.BounceIn:"false")});this.setAttributeConfig("animate",{value:((F.animate===false)?false:true),validator:function(){var G=false;if(YAHOO.util.Anim){G=true;}return G;},method:function(G){if(G){this._anim=new YAHOO.util.Anim(this.get("element"),{},this.get("duration"),this.get("easing"));}else{this._anim=false;}}});this.setAttributeConfig("header",{value:F.header||false,method:function(G){if(G===false){if(this.header){D.addClass(this.body,"yui-layout-bd-nohd");this.header.parentNode.removeChild(this.header);this.header=null;}}else{if(!this.header){var I=this.getElementsByClassName("yui-layout-hd","div")[0];if(!I){I=this._createHeader();}this.header=I;}var H=this.header.getElementsByTagName("h2")[0];if(!H){H=document.createElement("h2");this.header.appendChild(H);}H.innerHTML=G;if(this.body){D.removeClass(this.body,"yui-layout-bd-nohd");}}this.fireEvent("contentChange",{target:"header"});}});this.setAttributeConfig("proxy",{writeOnce:true,value:((F.proxy===false)?false:true)});this.setAttributeConfig("body",{value:F.body||false,method:function(I){if(!this.body){var G=this.getElementsByClassName("yui-layout-bd","div")[0];if(G){this.body=G;}else{G=document.createElement("div");G.className="yui-layout-bd";this.body=G;this.get("wrap").appendChild(G);}}if(!this.header){D.addClass(this.body,"yui-layout-bd-nohd");}D.addClass(this.body,"yui-layout-bd-noft");var H=null;if(E.isString(I)){H=D.get(I);}else{if(I&&I.tagName){H=I;}}if(H){var J=D.generateId(H);B._instances[J]=this;this.body.appendChild(H);}else{this.body.innerHTML=I;}this._cleanGrids();this.fireEvent("contentChange",{target:"body"});}});this.setAttributeConfig("footer",{value:F.footer||false,method:function(H){if(H===false){if(this.footer){D.addClass(this.body,"yui-layout-bd-noft");this.footer.parentNode.removeChild(this.footer);this.footer=null;}}else{if(!this.footer){var I=this.getElementsByClassName("yui-layout-ft","div")[0];if(!I){I=document.createElement("div");I.className="yui-layout-ft";this.footer=I;this.get("wrap").appendChild(I);}else{this.footer=I;}}var G=null;if(E.isString(H)){G=D.get(H);}else{if(H&&H.tagName){G=H;}}if(G){this.footer.appendChild(G);}else{this.footer.innerHTML=H;}D.removeClass(this.body,"yui-layout-bd-noft");}this.fireEvent("contentChange",{target:"footer"});}});this.setAttributeConfig("close",{value:F.close||false,method:function(G){if(this.get("position")=="center"){return false;}if(!this.header&&G){this._createHeader();}var H=D.getElementsByClassName("close","div",this.header)[0];if(G){if(!this.get("header")){this.set("header","&nbsp;");}if(!H){H=document.createElement("div");H.className="close";this.header.appendChild(H);A.on(H,"click",this.close,this,true);}H.title=this.STR_CLOSE;}else{if(H&&H.parentNode){A.purgeElement(H);H.parentNode.removeChild(H);}}this._configs.close.value=G;this.set("collapse",this.get("collapse"));}});this.setAttributeConfig("collapse",{value:F.collapse||false,method:function(G){if(this.get("position")=="center"){return false;}if(!this.header&&G){this._createHeader();}var H=D.getElementsByClassName("collapse","div",this.header)[0];if(G){if(!this.get("header")){this.set("header","&nbsp;");
++}if(!H){H=document.createElement("div");this.header.appendChild(H);A.on(H,"click",this.collapse,this,true);}H.title=this.STR_COLLAPSE;H.className="collapse"+((this.get("close"))?" collapse-close":"");}else{if(H&&H.parentNode){A.purgeElement(H);H.parentNode.removeChild(H);}}}});this.setAttributeConfig("scroll",{value:(((F.scroll===true)||(F.scroll===false)||(F.scroll===null))?F.scroll:false),method:function(G){if((G===false)&&!this._collapsed){if(this.body){if(this.body.scrollTop>0){this._lastScrollTop=this.body.scrollTop;}}}if(G===true){this.addClass("yui-layout-scroll");this.removeClass("yui-layout-noscroll");if(this._lastScrollTop>0){if(this.body){this.body.scrollTop=this._lastScrollTop;}}}else{if(G===false){this.removeClass("yui-layout-scroll");this.addClass("yui-layout-noscroll");}else{if(G===null){this.removeClass("yui-layout-scroll");this.removeClass("yui-layout-noscroll");}}}}});this.setAttributeConfig("hover",{writeOnce:true,value:F.hover||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("useShim",{value:F.useShim||false,validator:YAHOO.lang.isBoolean,method:function(G){if(this._resize){this._resize.set("useShim",G);}}});this.setAttributeConfig("resize",{value:F.resize||false,validator:function(G){if(YAHOO.util&&YAHOO.util.Resize){return true;}return false;},method:function(G){if(G&&!this._resize){if(this.get("position")=="center"){return false;}var I=false;switch(this.get("position")){case"top":I="b";break;case"bottom":I="t";break;case"right":I="l";break;case"left":I="r";break;}this.setStyle("position","absolute");if(I){this._resize=new YAHOO.util.Resize(this.get("element"),{proxy:this.get("proxy"),hover:this.get("hover"),status:false,autoRatio:false,handles:[I],minWidth:this.get("minWidth"),maxWidth:this.get("maxWidth"),minHeight:this.get("minHeight"),maxHeight:this.get("maxHeight"),height:this.get("height"),width:this.get("width"),setSize:false,useShim:this.get("useShim"),wrap:false});this._resize._handles[I].innerHTML='<div class="yui-layout-resize-knob"></div>';if(this.get("proxy")){var H=this._resize.getProxyEl();H.innerHTML='<div class="yui-layout-handle-'+I+'"></div>';}this._resize.on("startResize",function(J){this._lastScroll=this.get("scroll");this.set("scroll",false);if(this.get("parent")){this.get("parent").fireEvent("startResize");var K=this.get("parent").getUnitByPosition("center");this._lastCenterScroll=K.get("scroll");K.addClass(this._resize.CSS_RESIZING);K.set("scroll",false);}this.fireEvent("startResize");},this,true);this._resize.on("resize",function(J){this.set("height",J.height);this.set("width",J.width);},this,true);this._resize.on("endResize",function(J){this.set("scroll",this._lastScroll);if(this.get("parent")){var K=this.get("parent").getUnitByPosition("center");K.set("scroll",this._lastCenterScroll);K.removeClass(this._resize.CSS_RESIZING);}this.resize();this.fireEvent("endResize");},this,true);}}else{if(this._resize){this._resize.destroy();}}}});this.setAttributeConfig("dataSrc",{value:F.dataSrc});this.setAttributeConfig("loadMethod",{value:F.loadMethod||"GET",validator:YAHOO.lang.isString});this.setAttributeConfig("dataLoaded",{value:false,validator:YAHOO.lang.isBoolean,writeOnce:true});this.setAttributeConfig("dataTimeout",{value:F.dataTimeout||null,validator:YAHOO.lang.isNumber});},_cleanGrids:function(){if(this.get("grids")){var F=C.query("div.yui-b",this.body,true);if(F){D.removeClass(F,"yui-b");}A.onAvailable("yui-main",function(){D.setStyle(C.query("#yui-main"),"margin-left","0");D.setStyle(C.query("#yui-main"),"margin-right","0");});}},_createHeader:function(){var F=document.createElement("div");F.className="yui-layout-hd";if(this.get("firstChild")){this.get("wrap").insertBefore(F,this.get("wrap").firstChild);}else{this.get("wrap").appendChild(F);}this.header=F;return F;},destroy:function(H){if(this._resize){this._resize.destroy();}var G=this.get("parent");this.setStyle("display","none");if(this._clip){this._clip.parentNode.removeChild(this._clip);this._clip=null;}if(!H){G.removeUnit(this);}if(G){G.removeListener("resize",this.resize,this,true);}this.unsubscribeAll();A.purgeElement(this.get("element"));this.get("parentNode").removeChild(this.get("element"));delete YAHOO.widget.LayoutUnit._instances[this.get("id")];for(var F in this){if(E.hasOwnProperty(this,F)){this[F]=null;delete this[F];}}return G;},toString:function(){if(this.get){return"LayoutUnit #"+this.get("id")+" ("+this.get("position")+")";}return"LayoutUnit";}});YAHOO.widget.LayoutUnit=B;})();YAHOO.register("layout",YAHOO.widget.Layout,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/layout/layout.js b/pylons_app/public/js/yui/layout/layout.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/layout/layout.js
+@@ -0,0 +1,2290 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event
++ * @module layout
++ */
++(function() {
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class Layout
++     * @extends YAHOO.util.Element
++     * @description <p>Provides a fixed layout containing, top, bottom, left, right and center layout units. It can be applied to either the body or an element.</p>
++     * @param {String/HTMLElement} el The element to make contain a layout.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    var Layout = function(el, config) {
++        if (Lang.isObject(el) && !el.tagName) {
++            config = el;
++            el = null;
++        }
++        if (Lang.isString(el)) {
++            if (Dom.get(el)) {
++                el = Dom.get(el);
++            }
++        }
++        if (!el) {
++            el = document.body;
++        }
++
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        Layout.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all layout instances
++    * @type Object
++    */ 
++    Layout._instances = {};
++    /**
++    * @static
++    * @method getLayoutById 
++    * @description Get's a layout object by the HTML id of the element associated with the Layout object.
++    * @return {Object} The Layout Object
++    */ 
++    Layout.getLayoutById = function(id) {
++        if (Layout._instances[id]) {
++            return Layout._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(Layout, YAHOO.util.Element, {
++        /**
++        * @property browser
++        * @description A modified version of the YAHOO.env.ua object
++        * @type Object
++        */
++        browser: function() {
++            var b = YAHOO.env.ua;
++            b.standardsMode = false;
++            b.secure = false;
++            return b;
++        }(),
++        /**
++        * @private
++        * @property _units
++        * @description An object literal that contains a list of units in the layout
++        * @type Object
++        */
++        _units: null,
++        /**
++        * @private
++        * @property _rendered
++        * @description Set to true when the layout is rendered
++        * @type Boolean
++        */
++        _rendered: null,
++        /**
++        * @private
++        * @property _zIndex
++        * @description The zIndex to set all LayoutUnits to
++        * @type Number
++        */
++        _zIndex: null,
++        /**
++        * @private
++        * @property _sizes
++        * @description A collection of the current sizes of all usable LayoutUnits to be used for calculations
++        * @type Object
++        */
++        _sizes: null,
++        /**
++        * @private
++        * @method _setBodySize
++        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
++        * @description Used to set the body size of the layout, sets the height and width of the parent container
++        */
++        _setBodySize: function(set) {
++            var h = 0, w = 0;
++            set = ((set === false) ? false : true);
++
++            if (this._isBody) {
++                h = Dom.getClientHeight();
++                w = Dom.getClientWidth();
++            } else {
++                h = parseInt(this.getStyle('height'), 10);
++                w = parseInt(this.getStyle('width'), 10);
++                if (isNaN(w)) {
++                    w = this.get('element').clientWidth;
++                }
++                if (isNaN(h)) {
++                    h = this.get('element').clientHeight;
++                }
++            }
++            if (this.get('minWidth')) {
++                if (w < this.get('minWidth')) {
++                    w = this.get('minWidth');
++                }
++            }
++            if (this.get('minHeight')) {
++                if (h < this.get('minHeight')) {
++                    h = this.get('minHeight');
++                }
++            }
++            if (set) {
++                if (h < 0) {
++                    h = 0;
++                }
++                if (w < 0) {
++                    w = 0;
++                }
++                Dom.setStyle(this._doc, 'height', h + 'px');
++                Dom.setStyle(this._doc, 'width', w + 'px');
++            }
++            this._sizes.doc = { h: h, w: w };
++            this._setSides(set);
++        },
++        /**
++        * @private
++        * @method _setSides
++        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
++        * @description Used to set the size and position of the left, right, top and bottom units
++        */
++        _setSides: function(set) {
++            var h1 = ((this._units.top) ? this._units.top.get('height') : 0),
++                h2 = ((this._units.bottom) ? this._units.bottom.get('height') : 0),
++                h = this._sizes.doc.h,
++                w = this._sizes.doc.w;
++            set = ((set === false) ? false : true);
++
++            this._sizes.top = {
++                h: h1, w: ((this._units.top) ? w : 0),
++                t: 0
++            };
++            this._sizes.bottom = {
++                h: h2, w: ((this._units.bottom) ? w : 0)
++            };
++            
++            var newH = (h - (h1 + h2));
++
++            this._sizes.left = {
++                h: newH, w: ((this._units.left) ? this._units.left.get('width') : 0)
++            };
++            this._sizes.right = {
++                h: newH, w: ((this._units.right) ? this._units.right.get('width') : 0),
++                l: ((this._units.right) ? (w - this._units.right.get('width')) : 0),
++                t: ((this._units.top) ? this._sizes.top.h : 0)
++            };
++            
++            if (this._units.right && set) {
++                this._units.right.set('top', this._sizes.right.t);
++                if (!this._units.right._collapsing) { 
++                    this._units.right.set('left', this._sizes.right.l);
++                }
++                this._units.right.set('height', this._sizes.right.h, true);
++            }
++            if (this._units.left) {
++                this._sizes.left.l = 0;
++                if (this._units.top) {
++                    this._sizes.left.t = this._sizes.top.h;
++                } else {
++                    this._sizes.left.t = 0;
++                }
++                if (set) {
++                    this._units.left.set('top', this._sizes.left.t);
++                    this._units.left.set('height', this._sizes.left.h, true);
++                    this._units.left.set('left', 0);
++                }
++            }
++            if (this._units.bottom) {
++                this._sizes.bottom.t = this._sizes.top.h + this._sizes.left.h;
++                if (set) {
++                    this._units.bottom.set('top', this._sizes.bottom.t);
++                    this._units.bottom.set('width', this._sizes.bottom.w, true);
++                }
++            }
++            if (this._units.top) {
++                if (set) {
++                    this._units.top.set('width', this._sizes.top.w, true);
++                }
++            }
++            this._setCenter(set);
++        },
++        /**
++        * @private
++        * @method _setCenter
++        * @param {Boolean} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
++        * @description Used to set the size and position of the center unit
++        */
++        _setCenter: function(set) {
++            set = ((set === false) ? false : true);
++            var h = this._sizes.left.h;
++            var w = (this._sizes.doc.w - (this._sizes.left.w + this._sizes.right.w));
++            if (set) {
++                this._units.center.set('height', h, true);
++                this._units.center.set('width', w, true);
++                this._units.center.set('top', this._sizes.top.h);
++                this._units.center.set('left', this._sizes.left.w);
++            }
++            this._sizes.center = { h: h, w: w, t: this._sizes.top.h, l: this._sizes.left.w };
++        },
++        /**
++        * @method getSizes
++        * @description Get a reference to the internal Layout Unit sizes object used to build the layout wireframe
++        * @return {Object} An object of the layout unit sizes
++        */
++        getSizes: function() {
++            return this._sizes;
++        },
++        /**
++        * @method getUnitById
++        * @param {String} id The HTML element id of the unit
++        * @description Get the LayoutUnit by it's HTML id
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        getUnitById: function(id) {
++            return YAHOO.widget.LayoutUnit.getLayoutUnitById(id);
++        },
++        /**
++        * @method getUnitByPosition
++        * @param {String} pos The position of the unit in this layout
++        * @description Get the LayoutUnit by it's position in this layout
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        getUnitByPosition: function(pos) {
++            if (pos) {
++                pos = pos.toLowerCase();
++                if (this._units[pos]) {
++                    return this._units[pos];
++                }
++                return false;
++            }
++            return false;
++        },
++        /**
++        * @method removeUnit
++        * @param {Object} unit The LayoutUnit that you want to remove
++        * @description Remove the unit from this layout and resize the layout.
++        */
++        removeUnit: function(unit) {
++            delete this._units[unit.get('position')];
++            this.resize();
++        },
++        /**
++        * @method addUnit
++        * @param {Object} cfg The config for the LayoutUnit that you want to add
++        * @description Add a unit to this layout and if the layout is rendered, resize the layout. 
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        addUnit: function(cfg) {
++            if (!cfg.position) {
++                return false;
++            }
++            if (this._units[cfg.position]) {
++                return false;
++            }
++            var element = null,
++                el = null;
++
++            if (cfg.id) {
++                if (Dom.get(cfg.id)) {
++                    element = Dom.get(cfg.id);
++                    delete cfg.id;
++
++                }
++            }
++            if (cfg.element) {
++                element = cfg.element;
++            }
++
++            if (!el) {
++                el = document.createElement('div');
++                var id = Dom.generateId();
++                el.id = id;
++            }
++
++            if (!element) {
++                element = document.createElement('div');
++            }
++            Dom.addClass(element, 'yui-layout-wrap');
++            if (this.browser.ie && !this.browser.standardsMode) {
++                el.style.zoom = 1;
++                element.style.zoom = 1;
++            }
++
++            if (el.firstChild) {
++                el.insertBefore(element, el.firstChild);
++            } else {
++                el.appendChild(element);
++            }
++            this._doc.appendChild(el);
++
++            var h = false, w = false;
++
++            if (cfg.height) {
++                h = parseInt(cfg.height, 10);
++            }
++            if (cfg.width) {
++                w = parseInt(cfg.width, 10);
++            }
++            var unitConfig = {};
++            YAHOO.lang.augmentObject(unitConfig, cfg); // break obj ref
++
++            unitConfig.parent = this;
++            unitConfig.wrap = element;
++            unitConfig.height = h;
++            unitConfig.width = w;
++
++            var unit = new YAHOO.widget.LayoutUnit(el, unitConfig);
++
++            unit.on('heightChange', this.resize, { unit: unit }, this);
++            unit.on('widthChange', this.resize, { unit: unit }, this);
++            unit.on('gutterChange', this.resize, { unit: unit }, this);
++            this._units[cfg.position] = unit;
++
++            if (this._rendered) {
++                this.resize();
++            }
++
++            return unit;
++        },
++        /**
++        * @private
++        * @method _createUnits
++        * @description Private method to create units from the config that was passed in.
++        */
++        _createUnits: function() {
++            var units = this.get('units');
++            for (var i in units) {
++                if (Lang.hasOwnProperty(units, i)) {
++                    this.addUnit(units[i]);
++                }
++            }
++        },
++        /**
++        * @method resize
++        * @param Boolean/Event set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units). This can also have an attribute event passed to it.
++        * @description Starts the chain of resize routines that will resize all the units.
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
++        */
++        resize: function(set, info) {
++            /*
++            * Fixes bug #2528175
++            * If the event comes from an attribute and the value hasn't changed, don't process it.
++            */
++            var ev = set;
++            if (ev && ev.prevValue && ev.newValue) {
++                if (ev.prevValue == ev.newValue) {
++                    if (info) {
++                        if (info.unit) {
++                            if (!info.unit.get('animate')) {
++                                set = false;
++                            }
++                        }
++                    }
++                }
++            }
++            set = ((set === false) ? false : true);
++            if (set) {
++                var retVal = this.fireEvent('beforeResize');
++                if (retVal === false) {
++                    set = false;
++                }
++                if (this.browser.ie) {
++                    if (this._isBody) {
++                        Dom.removeClass(document.documentElement, 'yui-layout');
++                        Dom.addClass(document.documentElement, 'yui-layout');
++                    } else {
++                        this.removeClass('yui-layout');
++                        this.addClass('yui-layout');
++                    }
++                }
++            }
++            this._setBodySize(set);
++            if (set) {
++                this.fireEvent('resize', { target: this, sizes: this._sizes, event: ev });
++            }
++            return this;
++        },
++        /**
++        * @private
++        * @method _setupBodyElements
++        * @description Sets up the main doc element when using the body as the main element.
++        */
++        _setupBodyElements: function() {
++            this._doc = Dom.get('layout-doc');
++            if (!this._doc) {
++                this._doc = document.createElement('div');
++                this._doc.id = 'layout-doc';
++                if (document.body.firstChild) {
++                    document.body.insertBefore(this._doc, document.body.firstChild);
++                } else {
++                    document.body.appendChild(this._doc);
++                }
++            }
++            this._createUnits();
++            this._setBodySize();
++            Event.on(window, 'resize', this.resize, this, true);
++            Dom.addClass(this._doc, 'yui-layout-doc');
++        },
++        /**
++        * @private
++        * @method _setupElements
++        * @description Sets up the main doc element when not using the body as the main element.
++        */
++        _setupElements: function() {
++            this._doc = this.getElementsByClassName('yui-layout-doc')[0];
++            if (!this._doc) {
++                this._doc = document.createElement('div');
++                this.get('element').appendChild(this._doc);
++            }
++            this._createUnits();
++            this._setBodySize();
++            Dom.addClass(this._doc, 'yui-layout-doc');
++        },
++        /**
++        * @private
++        * @property _isBody
++        * @description Flag to determine if we are using the body as the root element.
++        * @type Boolean
++        */
++        _isBody: null,
++        /**
++        * @private
++        * @property _doc
++        * @description Reference to the root element
++        * @type HTMLElement
++        */
++        _doc: null,
++        /**
++        * @private
++        * @method init
++        * @description The Layout class' initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++
++            this._zIndex = 0;
++
++            Layout.superclass.init.call(this, p_oElement, p_oAttributes);
++            
++            if (this.get('parent')) {
++                this._zIndex = this.get('parent')._zIndex + 10;
++            }
++
++            this._sizes = {};
++            this._units = {};
++
++            var id = p_oElement;
++            if (!Lang.isString(id)) {
++                id = Dom.generateId(id);
++            }
++            Layout._instances[id] = this;
++        },
++        /**
++        * @method render
++        * @description This method starts the render process, applying classnames and creating elements
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The Layout instance
++        */        
++        render: function() {
++            this._stamp();
++            var el = this.get('element');
++            if (el && el.tagName && (el.tagName.toLowerCase() == 'body')) {
++                this._isBody = true;
++                Dom.addClass(document.body, 'yui-layout');
++                if (Dom.hasClass(document.body, 'yui-skin-sam')) {
++                    //Move the class up so we can have a css chain
++                    Dom.addClass(document.documentElement, 'yui-skin-sam');
++                    Dom.removeClass(document.body, 'yui-skin-sam');
++                }
++                this._setupBodyElements();
++            } else {
++                this._isBody = false;
++                this.addClass('yui-layout');
++                this._setupElements();
++            }
++            this.resize();
++            this._rendered = true;
++            this.fireEvent('render');
++
++            return this;
++        },
++        /**
++        * @private
++        * @method _stamp
++        * @description Stamps the root node with a secure classname for ease of use. Also sets the this.browser.standardsMode variable.
++        */        
++        _stamp: function() {
++            if (document.compatMode == 'CSS1Compat') {
++                this.browser.standardsMode = true;
++            }
++            if (window.location.href.toLowerCase().indexOf("https") === 0) {
++                Dom.addClass(document.documentElement, 'secure');
++                this.browser.secure = true;
++            }
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Processes the config
++        */        
++        initAttributes: function(attr) {
++            Layout.superclass.initAttributes.call(this, attr);
++            /**
++            * @attribute units
++            * @description An array of config definitions for the LayoutUnits to add to this layout
++            * @type Array
++            */
++            this.setAttributeConfig('units', {
++                writeOnce: true,
++                validator: YAHOO.lang.isArray,
++                value: attr.units || []
++            });
++
++            /**
++            * @attribute minHeight
++            * @description The minimum height in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                value: attr.minHeight || false,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minWidth
++            * @description The minimum width in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                value: attr.minWidth || false,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute height
++            * @description The height in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || false,
++                validator: YAHOO.lang.isNumber,
++                method: function(h) {
++                    if (h < 0) {
++                        h = 0;
++                    }
++                    this.setStyle('height', h + 'px');
++                }
++            });
++
++            /**
++            * @attribute width
++            * @description The width in pixels
++            * @type Number
++            */
++            this.setAttributeConfig('width', {
++                value: attr.width || false,
++                validator: YAHOO.lang.isNumber,
++                method: function(w) {
++                    if (w < 0) {
++                        w = 0;
++                    }
++                    this.setStyle('width', w + 'px');
++                }
++            });
++
++            /**
++            * @attribute parent
++            * @description If this layout is to be used as a child of another Layout instance, this config will bind the resize events together.
++            * @type Object YAHOO.widget.Layout
++            */
++            this.setAttributeConfig('parent', {
++                writeOnce: true,
++                value: attr.parent || false,
++                method: function(p) {
++                    if (p) {
++                        p.on('resize', this.resize, this, true);
++                    }
++                }
++            });
++        },
++        /**
++        * @method destroy
++        * @description Removes this layout from the page and destroys all units that it contains. This will destroy all data inside the layout and it's children.
++        */
++        destroy: function() {
++            var par = this.get('parent');
++            if (par) {
++                par.removeListener('resize', this.resize, this, true);
++            }
++            Event.removeListener(window, 'resize', this.resize, this, true);
++
++            this.unsubscribeAll();
++            for (var u in this._units) {
++                if (Lang.hasOwnProperty(this._units, u)) {
++                    if (this._units[u]) {
++                        this._units[u].destroy(true);
++                    }
++                }
++            }
++
++            Event.purgeElement(this.get('element'));
++            this.get('parentNode').removeChild(this.get('element'));
++            
++            delete YAHOO.widget.Layout._instances[this.get('id')];
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                    delete this[i];
++                }
++            }
++            
++            if (par) {
++                par.resize();
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the Layout.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'Layout #' + this.get('id');
++            }
++            return 'Layout';
++        }
++    });
++    /**
++    * @event resize
++    * @description Fired when this.resize is called
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event startResize
++    * @description Fired when the Resize Utility for a Unit fires it's startResize Event.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeResize
++    * @description Fires at the beginning of the resize method. If you return false, the resize is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event render
++    * @description Fired after the render method completes.
++    * @type YAHOO.util.CustomEvent
++    */
++
++    YAHOO.widget.Layout = Layout;
++})();
++/**
++ * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event, layout
++ * @optional animation, dragdrop, selector
++ */
++(function() {
++    var Dom = YAHOO.util.Dom,
++        Sel = YAHOO.util.Selector,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class LayoutUnit
++     * @extends YAHOO.util.Element
++     * @description <p>Provides a fixed position unit containing a header, body and footer for use with a YAHOO.widget.Layout instance.</p>
++     * @param {String/HTMLElement} el The element to make a unit.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    var LayoutUnit = function(el, config) {
++        
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        LayoutUnit.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all layout unit instances
++    * @type Object
++    */ 
++    LayoutUnit._instances = {};
++    /**
++    * @static
++    * @method getLayoutUnitById 
++    * @description Get's a layout unit object by the HTML id of the element associated with the Layout Unit object.
++    * @return {Object} The Layout Object
++    */ 
++    LayoutUnit.getLayoutUnitById = function(id) {
++        if (LayoutUnit._instances[id]) {
++            return LayoutUnit._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(LayoutUnit, YAHOO.util.Element, {
++        /**
++        * @property STR_CLOSE
++        * @description String used for close button title
++        * @type {String}
++        */
++        STR_CLOSE: 'Click to close this pane.',
++        /**
++        * @property STR_COLLAPSE
++        * @description String used for collapse button title
++        * @type {String}
++        */
++        STR_COLLAPSE: 'Click to collapse this pane.',
++        /**
++        * @property STR_EXPAND
++        * @description String used for expand button title
++        * @type {String}
++        */
++        STR_EXPAND: 'Click to expand this pane.',
++        /**
++	    * The class name applied to dynamic tabs while loading.
++	    * @property LOADING_CLASSNAME
++	    * @type String
++	    * @default "disabled"
++	    */
++	    LOADING_CLASSNAME: 'loading',
++        /**
++        * @property browser
++        * @description A modified version of the YAHOO.env.ua object
++        * @type Object
++        */
++        browser: null,
++        /**
++        * @private
++        * @property _sizes
++        * @description A collection of the current sizes of the contents of this Layout Unit
++        * @type Object
++        */
++        _sizes: null,
++        /**
++        * @private
++        * @property _anim
++        * @description A reference to the Animation instance used by this LayouUnit
++        * @type YAHOO.util.Anim
++        */
++        _anim: null,
++        /**
++        * @private
++        * @property _resize
++        * @description A reference to the Resize instance used by this LayoutUnit
++        * @type YAHOO.util.Resize
++        */
++        _resize: null,
++        /**
++        * @private
++        * @property _clip
++        * @description A reference to the clip element used when collapsing the unit
++        * @type HTMLElement
++        */
++        _clip: null,
++        /**
++        * @private
++        * @property _gutter
++        * @description A simple hash table used to store the gutter to apply to the Unit
++        * @type Object
++        */
++        _gutter: null,
++        /**
++        * @property header
++        * @description A reference to the HTML element used for the Header
++        * @type HTMLELement
++        */
++        header: null,
++        /**
++        * @property body
++        * @description A reference to the HTML element used for the body
++        * @type HTMLElement
++        */
++        body: null,
++        /**
++        * @property footer
++        * @description A reference to the HTML element used for the footer
++        * @type HTMLElement
++        */
++        footer: null,
++        /**
++        * @private
++        * @property _collapsed
++        * @description Flag to determine if the unit is collapsed or not.
++        * @type Boolean
++        */
++        _collapsed: null,
++        /**
++        * @private
++        * @property _collapsing
++        * @description A flag set while the unit is being collapsed, used so we don't fire events while animating the size
++        * @type Boolean
++        */
++        _collapsing: null,
++        /**
++        * @private
++        * @property _lastWidth
++        * @description A holder for the last known width of the unit
++        * @type Number
++        */
++        _lastWidth: null,
++        /**
++        * @private
++        * @property _lastHeight
++        * @description A holder for the last known height of the unit
++        * @type Number
++        */
++        _lastHeight: null,
++        /**
++        * @private
++        * @property _lastTop
++        * @description A holder for the last known top of the unit
++        * @type Number
++        */
++        _lastTop: null,
++        /**
++        * @private
++        * @property _lastLeft
++        * @description A holder for the last known left of the unit
++        * @type Number
++        */
++        _lastLeft: null,
++        /**
++        * @private
++        * @property _lastScroll
++        * @description A holder for the last known scroll state of the unit
++        * @type Boolean
++        */
++        _lastScroll: null,
++        /**
++        * @private
++        * @property _lastCenetrScroll
++        * @description A holder for the last known scroll state of the center unit
++        * @type Boolean
++        */
++        _lastCenterScroll: null,
++        /**
++        * @private
++        * @property _lastScrollTop
++        * @description A holder for the last known scrollTop state of the unit
++        * @type Number
++        */
++        _lastScrollTop: null,
++        /**
++        * @method resize
++        * @description Resize either the unit or it's clipped state, also updating the box inside
++        * @param {Boolean} force This will force full calculations even when the unit is collapsed
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        resize: function(force) {
++            var retVal = this.fireEvent('beforeResize');
++            if (retVal === false) {
++                return this;
++            }
++            if (!this._collapsing || (force === true)) {
++                var scroll = this.get('scroll');
++                this.set('scroll', false);
++
++
++                var hd = this._getBoxSize(this.header),
++                    ft = this._getBoxSize(this.footer),
++                    box = [this.get('height'), this.get('width')];
++
++                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
++                    nw = box[1] - (this._gutter.left + this._gutter.right);
++
++                var wrapH = (nh + (hd[0] + ft[0])),
++                    wrapW = nw;
++
++                if (this._collapsed && !this._collapsing) {
++                    this._setHeight(this._clip, wrapH);
++                    this._setWidth(this._clip, wrapW);
++                    Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
++                    Dom.setStyle(this._clip, 'left', this.get('left') + this._gutter.left + 'px');
++                } else if (!this._collapsed || (this._collapsed && this._collapsing)) {
++                    wrapH = this._setHeight(this.get('wrap'), wrapH);
++                    wrapW = this._setWidth(this.get('wrap'), wrapW);
++                    this._sizes.wrap.h = wrapH;
++                    this._sizes.wrap.w = wrapW;
++
++                    Dom.setStyle(this.get('wrap'), 'top', this._gutter.top + 'px');
++                    Dom.setStyle(this.get('wrap'), 'left', this._gutter.left + 'px');
++
++                    this._sizes.header.w = this._setWidth(this.header, wrapW);
++                    this._sizes.header.h = hd[0];
++
++                    this._sizes.footer.w = this._setWidth(this.footer, wrapW);
++                    this._sizes.footer.h = ft[0];
++
++                    Dom.setStyle(this.footer, 'bottom', '0px');
++
++                    this._sizes.body.h = this._setHeight(this.body, (wrapH - (hd[0] + ft[0])));
++                    this._sizes.body.w =this._setWidth(this.body, wrapW);
++                    Dom.setStyle(this.body, 'top', hd[0] + 'px');
++
++                    this.set('scroll', scroll);
++                    this.fireEvent('resize');
++                }
++            }
++            return this;
++        },
++        /**
++        * @private
++        * @method _setWidth
++        * @description Sets the width of the element based on the border size of the element.
++        * @param {HTMLElement} el The HTMLElement to have it's width set
++        * @param {Number} w The width that you want it the element set to
++        * @return {Number} The new width, fixed for borders and IE QuirksMode
++        */
++        _setWidth: function(el, w) {
++            if (el) {
++                var b = this._getBorderSizes(el);
++                w = (w - (b[1] + b[3]));
++                w = this._fixQuirks(el, w, 'w');
++                if (w < 0) {
++                    w = 0;
++                }
++                Dom.setStyle(el, 'width', w + 'px');
++            }
++            return w;
++        },
++        /**
++        * @private
++        * @method _setHeight
++        * @description Sets the height of the element based on the border size of the element.
++        * @param {HTMLElement} el The HTMLElement to have it's height set
++        * @param {Number} h The height that you want it the element set to
++        * @return {Number} The new height, fixed for borders and IE QuirksMode
++        */
++        _setHeight: function(el, h) {
++            if (el) {
++                var b = this._getBorderSizes(el);
++                h = (h - (b[0] + b[2]));
++                h = this._fixQuirks(el, h, 'h');
++                if (h < 0) {
++                    h = 0;
++                }
++                Dom.setStyle(el, 'height', h + 'px');
++            }
++            return h;
++        },
++        /**
++        * @private
++        * @method _fixQuirks
++        * @description Fixes the box calculations for IE in QuirksMode
++        * @param {HTMLElement} el The HTMLElement to set the dimension on
++        * @param {Number} dim The number of the dimension to fix
++        * @param {String} side The dimension (h or w) to fix. Defaults to h
++        * @return {Number} The fixed dimension
++        */
++        _fixQuirks: function(el, dim, side) {
++            var i1 = 0, i2 = 2;
++            if (side == 'w') {
++                i1 = 1;
++                i2 = 3;
++            }
++            if ((this.browser.ie < 8) && !this.browser.standardsMode) {
++                //Internet Explorer - Quirks Mode
++                var b = this._getBorderSizes(el),
++                    bp = this._getBorderSizes(el.parentNode);
++                if ((b[i1] === 0) && (b[i2] === 0)) { //No Borders, check parent
++                    if ((bp[i1] !== 0) && (bp[i2] !== 0)) { //Parent has Borders
++                        dim = (dim - (bp[i1] + bp[i2]));
++                    }
++                } else {
++                    if ((bp[i1] === 0) && (bp[i2] === 0)) {
++                        dim = (dim + (b[i1] + b[i2]));
++                    }
++                }
++            }
++            return dim;
++        },
++        /**
++        * @private
++        * @method _getBoxSize
++        * @description Get's the elements clientHeight and clientWidth plus the size of the borders
++        * @param {HTMLElement} el The HTMLElement to get the size of
++        * @return {Array} An array of height and width
++        */
++        _getBoxSize: function(el) {
++            var size = [0, 0];
++            if (el) {
++                if (this.browser.ie && !this.browser.standardsMode) {
++                    el.style.zoom = 1;
++                }
++                var b = this._getBorderSizes(el);
++                size[0] = el.clientHeight + (b[0] + b[2]);
++                size[1] = el.clientWidth + (b[1] + b[3]);
++            }
++            return size;
++        },
++        /**
++        * @private
++        * @method _getBorderSizes
++        * @description Get the CSS border size of the element passed.
++        * @param {HTMLElement} el The element to get the border size of
++        * @return {Array} An array of the top, right, bottom, left borders.
++        */
++        _getBorderSizes: function(el) {
++            var s = [];
++            el = el || this.get('element');
++            if (this.browser.ie && !this.browser.standardsMode) {
++                el.style.zoom = 1;
++            }
++            s[0] = parseInt(Dom.getStyle(el, 'borderTopWidth'), 10);
++            s[1] = parseInt(Dom.getStyle(el, 'borderRightWidth'), 10);
++            s[2] = parseInt(Dom.getStyle(el, 'borderBottomWidth'), 10);
++            s[3] = parseInt(Dom.getStyle(el, 'borderLeftWidth'), 10);
++            
++            //IE will return NaN on these if they are set to auto, we'll set them to 0
++            for (var i = 0; i < s.length; i++) {
++                if (isNaN(s[i])) {
++                    s[i] = 0;
++                }
++            }
++            return s;
++        },
++        /**
++        * @private
++        * @method _createClip
++        * @description Create the clip element used when the Unit is collapsed
++        */
++        _createClip: function() {
++            if (!this._clip) {
++                this._clip = document.createElement('div');
++                this._clip.className = 'yui-layout-clip yui-layout-clip-' + this.get('position');
++                this._clip.innerHTML = '<div class="collapse"></div>';
++                var c = this._clip.firstChild;
++                c.title = this.STR_EXPAND;
++                Event.on(c, 'click', this.expand, this, true);
++                this.get('element').parentNode.appendChild(this._clip);
++            }
++        },
++        /**
++        * @private
++        * @method _toggleClip
++        * @description Toggle th current state of the Clip element and set it's height, width and position
++        */
++        _toggleClip: function() {
++            if (!this._collapsed) {
++                //show
++                var hd = this._getBoxSize(this.header),
++                    ft = this._getBoxSize(this.footer),
++                    box = [this.get('height'), this.get('width')];
++
++
++                var nh = (box[0] - hd[0] - ft[0]) - (this._gutter.top + this._gutter.bottom),
++                    nw = box[1] - (this._gutter.left + this._gutter.right),
++                    wrapH = (nh + (hd[0] + ft[0]));
++
++                switch (this.get('position')) {
++                    case 'top':
++                    case 'bottom':
++                        this._setWidth(this._clip, nw);
++                        this._setHeight(this._clip, this.get('collapseSize'));
++                        Dom.setStyle(this._clip, 'left', (this._lastLeft + this._gutter.left) + 'px');
++                        if (this.get('position') == 'bottom') {
++                            Dom.setStyle(this._clip, 'top', ((this._lastTop + this._lastHeight) - (this.get('collapseSize') - this._gutter.top)) + 'px');
++                        } else {
++                            Dom.setStyle(this._clip, 'top', this.get('top') + this._gutter.top + 'px');
++                        }
++                        break;
++                    case 'left':
++                    case 'right':
++                        this._setWidth(this._clip, this.get('collapseSize'));
++                        this._setHeight(this._clip, wrapH);
++                        Dom.setStyle(this._clip, 'top', (this.get('top') + this._gutter.top) + 'px');
++                        if (this.get('position') == 'right') {
++                            Dom.setStyle(this._clip, 'left', (((this._lastLeft + this._lastWidth) - this.get('collapseSize')) - this._gutter.left) + 'px');
++                        } else {
++                            Dom.setStyle(this._clip, 'left', (this.get('left') + this._gutter.left) + 'px');
++                        }
++                        break;
++                }
++
++                Dom.setStyle(this._clip, 'display', 'block');
++                this.setStyle('display', 'none');
++            } else {
++                //Hide
++                Dom.setStyle(this._clip, 'display', 'none');
++            }
++        },
++        /**
++        * @method getSizes
++        * @description Get a reference to the internal sizes object for this unit
++        * @return {Object} An object of the sizes used for calculations
++        */
++        getSizes: function() {
++            return this._sizes;
++        },
++        /**
++        * @method toggle
++        * @description Toggles the Unit, replacing it with a clipped version.
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        toggle: function() {
++            if (this._collapsed) {
++                this.expand();
++            } else {
++                this.collapse();
++            }
++            return this;
++        },
++        /**
++        * @method expand
++        * @description Expand the Unit if it is collapsed.
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        expand: function() {
++            if (!this._collapsed) {
++                return this;
++            }
++            var retVal = this.fireEvent('beforeExpand');
++            if (retVal === false) {
++                return this;
++            }
++
++            this._collapsing = true;
++            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
++
++            if (this._anim) {
++                this.setStyle('display', 'none');
++                var attr = {}, s;
++
++                switch (this.get('position')) {
++                    case 'left':
++                    case 'right':
++                        this.set('width', this._lastWidth, true);
++                        this.setStyle('width', this._lastWidth + 'px');
++                        this.get('parent').resize(false);
++                        s = this.get('parent').getSizes()[this.get('position')];
++                        this.set('height', s.h, true);
++                        var left = s.l;
++                        attr = {
++                            left: {
++                                to: left
++                            }
++                        };
++                        if (this.get('position') == 'left') {
++                            attr.left.from = (left - s.w);
++                            this.setStyle('left', (left - s.w) + 'px');
++                        }
++                        break;
++                    case 'top':
++                    case 'bottom':
++                        this.set('height', this._lastHeight, true);
++                        this.setStyle('height', this._lastHeight + 'px');
++                        this.get('parent').resize(false);
++                        s = this.get('parent').getSizes()[this.get('position')];
++                        this.set('width', s.w, true);
++                        var top = s.t;
++                        attr = {
++                            top: {
++                                to: top
++                            }
++                        };
++                        if (this.get('position') == 'top') {
++                            this.setStyle('top',  (top - s.h) + 'px');
++                            attr.top.from = (top - s.h);
++                        }
++                        break;
++                }
++
++                this._anim.attributes = attr;
++                var exStart = function() {
++                    this.setStyle('display', 'block');
++                    this.resize(true);
++                    this._anim.onStart.unsubscribe(exStart, this, true);
++                };
++                var expand = function() {
++                    this._collapsing = false;
++                    this.setStyle('zIndex', this.get('parent')._zIndex);
++                    this.set('width', this._lastWidth);
++                    this.set('height', this._lastHeight);
++                    this._collapsed = false;
++                    this.resize();
++                    this.set('scroll', this._lastScroll);
++                    if (this._lastScrollTop > 0) {
++                        this.body.scrollTop = this._lastScrollTop;
++                    }
++                    this._anim.onComplete.unsubscribe(expand, this, true);
++                    this.fireEvent('expand');
++                };
++                this._anim.onStart.subscribe(exStart, this, true);
++                this._anim.onComplete.subscribe(expand, this, true);
++                this._anim.animate();
++                this._toggleClip();
++            } else {
++                this._collapsing = false;
++                this._toggleClip();
++                this._collapsed = false;
++                this.setStyle('zIndex', this.get('parent')._zIndex);
++                this.setStyle('display', 'block');
++                this.set('width', this._lastWidth);
++                this.set('height', this._lastHeight);
++                this.resize();
++                this.set('scroll', this._lastScroll);
++                if (this._lastScrollTop > 0) {
++                    this.body.scrollTop = this._lastScrollTop;
++                }
++                this.fireEvent('expand');
++            }
++            return this;
++        },
++        /**
++        * @method collapse
++        * @description Collapse the Unit if it is not collapsed.
++        * @return {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} The LayoutUnit instance
++        */
++        collapse: function() {
++            if (this._collapsed) {
++                return this;
++            }
++            var retValue = this.fireEvent('beforeCollapse');
++            if (retValue === false) {
++                return this;
++            }
++            if (!this._clip) {
++                this._createClip();
++            }
++            this._collapsing = true;
++            var w = this.get('width'),
++                h = this.get('height'),
++                attr = {};
++            this._lastWidth = w;
++            this._lastHeight = h;
++            this._lastScroll = this.get('scroll');
++            this._lastScrollTop = this.body.scrollTop;            
++            this.set('scroll', false, true);
++            this._lastLeft = parseInt(this.get('element').style.left, 10);
++            this._lastTop = parseInt(this.get('element').style.top, 10);
++            if (isNaN(this._lastTop)) {
++                this._lastTop = 0;
++                this.set('top', 0);
++            }
++            if (isNaN(this._lastLeft)) {
++                this._lastLeft = 0;
++                this.set('left', 0);
++            }
++            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
++            var pos = this.get('position');
++
++            switch (pos) {
++                case 'top':
++                case 'bottom':
++                    this.set('height', (this.get('collapseSize') + (this._gutter.top + this._gutter.bottom)));
++                    attr = {
++                        top: {
++                            to: (this.get('top') - h)
++                        }
++                    };
++                    if (pos == 'bottom') {
++                        attr.top.to = (this.get('top') + h);
++                    }
++                    break;
++                case 'left':
++                case 'right':
++                    this.set('width', (this.get('collapseSize') + (this._gutter.left + this._gutter.right)));
++                    attr = {
++                        left: {
++                            to: -(this._lastWidth)
++                        }
++                    };
++                    if (pos == 'right') {
++                        attr.left = {
++                            to: (this.get('left') + w)
++                        };
++                    }
++                    break;
++            }
++            if (this._anim) {
++                this._anim.attributes = attr;
++                var collapse = function() {
++                    this._collapsing = false;
++                    this._toggleClip();
++                    this.setStyle('zIndex', this.get('parent')._zIndex);
++                    this._collapsed = true;
++                    this.get('parent').resize();
++                    this._anim.onComplete.unsubscribe(collapse, this, true);
++                    this.fireEvent('collapse');
++                };
++                this._anim.onComplete.subscribe(collapse, this, true);
++                this._anim.animate();
++            } else {
++                this._collapsing = false;
++                this.setStyle('display', 'none');
++                this._toggleClip();
++                this.setStyle('zIndex', this.get('parent')._zIndex);
++                this.get('parent').resize();
++                this._collapsed = true;
++                this.fireEvent('collapse');
++            }
++            return this;
++        },
++        /**
++        * @method close
++        * @description Close the unit, removing it from the parent Layout.
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
++        */
++        close: function() {
++            this.setStyle('display', 'none');
++            this.get('parent').removeUnit(this);
++            this.fireEvent('close');
++            if (this._clip) {
++                this._clip.parentNode.removeChild(this._clip);
++                this._clip = null;
++            }
++            return this.get('parent');
++        },
++		/**
++        * @property loadHandler
++        * @description Callback method for the YUI Connection Manager used for load the body using AJAX
++        * @type Object
++        */
++		loadHandler: {
++            success: function(o) {
++				this.body.innerHTML = o.responseText;
++				this.resize (true);
++            },
++            failure: function(o) {
++            }
++        },
++		/**
++        * @property dataConnection
++        * @description YUI Connection Manager handler
++        * @type Object
++        */
++		dataConnection: null,
++		/**
++        * @private
++        * @property _loading
++        * @description During the loading process this variable will be true
++        * @type Number
++        */
++        _loading: false,
++		/**
++        * @method loadContent
++        * @description Loading the content of the unit using the connection manager
++        * @return {object} YUI Connection Manager handler
++        */
++        loadContent: function() {
++			// load dynamic content unless already loading or loaded and caching
++			if (YAHOO.util.Connect && this.get('dataSrc') && !this._loading && !this.get('dataLoaded')) {
++		        this._loading = true; 
++		        Dom.addClass(this.body, this.LOADING_CLASSNAME);
++				this.dataConnection = YAHOO.util.Connect.asyncRequest(
++		            this.get('loadMethod'),
++		            this.get('dataSrc'), 
++		            {
++		                success: function(o) {
++		                    this.loadHandler.success.call(this, o);
++		                    this.set('dataLoaded', true);
++		                    this.dataConnection = null;
++		                    Dom.removeClass(this.body, this.LOADING_CLASSNAME);
++							this._loading = false;
++							this.fireEvent('load');
++		                },
++		                failure: function(o) {
++		                    this.loadHandler.failure.call(this, o);
++		                    this.dataConnection = null;
++		                    Dom.removeClass(this.body, this.LOADING_CLASSNAME);
++		                    this._loading = false;
++							this.fireEvent('loadError', { error: o });
++		                },
++		                scope: this,
++		                timeout: this.get('dataTimeout')
++		            }
++		        );
++				return this.dataConnection;
++	        }
++			return false;
++        },
++        /**
++        * @private
++        * @method init
++        * @description The initalization method inherited from Element.
++        */
++        init: function(p_oElement, p_oAttributes) {
++            this._gutter = {
++                left: 0,
++                right: 0,
++                top: 0,
++                bottom: 0
++            };
++            this._sizes = {
++                wrap: {
++                    h: 0,
++                    w: 0
++                },
++                header: {
++                    h: 0,
++                    w: 0
++                },
++                body: {
++                    h: 0,
++                    w: 0
++                },
++                footer: {
++                    h: 0,
++                    w: 0
++                }
++            };
++            
++            LayoutUnit.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.browser = this.get('parent').browser;
++            
++            var id = p_oElement;
++            if (!Lang.isString(id)) {
++                id = Dom.generateId(id);
++            }
++            LayoutUnit._instances[id] = this;
++
++            this.setStyle('position', 'absolute');
++
++            this.addClass('yui-layout-unit');
++            this.addClass('yui-layout-unit-' + this.get('position'));
++
++
++            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
++            if (header) {
++                this.header = header;
++            }
++            var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
++            if (body) {
++                this.body = body;
++            }
++            var footer = this.getElementsByClassName('yui-layout-ft', 'div')[0];
++            if (footer) {
++                this.footer = footer;
++            }
++
++            this.on('contentChange', this.resize, this, true);
++            this._lastScrollTop = 0;
++
++            this.set('animate', this.get('animate'));
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Processes the config
++        */        
++        initAttributes: function(attr) {
++            LayoutUnit.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @private
++            * @attribute wrap
++            * @description A reference to the wrap element
++            * @type HTMLElement
++            */
++            this.setAttributeConfig('wrap', {
++                value: attr.wrap || null,
++                method: function(w) {
++                    if (w) {
++                        var id = Dom.generateId(w);
++                        LayoutUnit._instances[id] = this;
++                    }
++                }
++            });
++            /**
++            * @attribute grids
++            * @description Set this option to true if you want the LayoutUnit to fix the first layer of YUI CSS Grids (margins)
++            * @type Boolean
++            */
++            this.setAttributeConfig('grids', {
++                value: attr.grids || false
++            });
++            /**
++            * @private
++            * @attribute top
++            * @description The current top positioning of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('top', {
++                value: attr.top || 0,
++                validator: Lang.isNumber,
++                method: function(t) {
++                    if (!this._collapsing) {
++                        this.setStyle('top', t + 'px');
++                    }
++                }
++            });
++            /**
++            * @private
++            * @attribute left
++            * @description The current left position of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('left', {
++                value: attr.left || 0,
++                validator: Lang.isNumber,
++                method: function(l) {
++                    if (!this._collapsing) {
++                        this.setStyle('left', l + 'px');
++                    }
++                }
++            });
++
++            /**
++            * @attribute minWidth
++            * @description The minWidth parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                value: attr.minWidth || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('minWidth', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxWidth
++            * @description The maxWidth parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('maxWidth', {
++                value: attr.maxWidth || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('maxWidth', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minHeight
++            * @description The minHeight parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                value: attr.minHeight || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('minHeight', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxHeight
++            * @description The maxHeight parameter passed to the Resize Utility
++            * @type Number
++            */
++            this.setAttributeConfig('maxHeight', {
++                value: attr.maxHeight || false,
++                method: function(v) {
++                    if (this._resize) {
++                        this._resize.set('maxHeight', v);
++                    }
++                },
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute height
++            * @description The height of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height,
++                validator: Lang.isNumber,
++                method: function(h) {
++                    if (!this._collapsing) {
++                        if (h < 0) {
++                            h = 0;
++                        }
++                        this.setStyle('height', h + 'px');
++                    }
++                }
++            });
++
++            /**
++            * @attribute width
++            * @description The width of the Unit
++            * @type Number
++            */
++            this.setAttributeConfig('width', {
++                value: attr.width,
++                validator: Lang.isNumber,
++                method: function(w) {
++                    if (!this._collapsing) {
++                        if (w < 0) {
++                            w = 0;
++                        }
++                        this.setStyle('width', w + 'px');
++                    }
++                }
++            });
++            /**
++            * @attribute zIndex
++            * @description The CSS zIndex to give to the unit, so you can have overlapping elements such as menus in a unit.
++            * @type {Number}
++            */
++            this.setAttributeConfig('zIndex', {
++                value: attr.zIndex || false,
++                method: function(z) {
++                    this.setStyle('zIndex', z);
++                }
++            });
++            /**
++            * @attribute position
++            * @description The position (top, right, bottom, left or center) of the Unit in the Layout
++            * @type {String}
++            */
++            this.setAttributeConfig('position', {
++                value: attr.position
++            });
++            /**
++            * @attribute gutter
++            * @description The gutter that we should apply to the parent Layout around this Unit. Supports standard CSS markup: (2 4 0 5) or (2) or (2 5)
++            * @type String
++            */
++            this.setAttributeConfig('gutter', {
++                value: attr.gutter || 0,
++                validator: YAHOO.lang.isString,
++                method: function(gutter) {
++                    var p = gutter.split(' ');
++                    if (p.length) {
++                        this._gutter.top = parseInt(p[0], 10);
++                        if (p[1]) {
++                            this._gutter.right = parseInt(p[1], 10);
++                        } else {
++                            this._gutter.right = this._gutter.top;
++                        }
++                        if (p[2]) {
++                            this._gutter.bottom = parseInt(p[2], 10);
++                        } else {
++                            this._gutter.bottom = this._gutter.top;
++                        }
++                        if (p[3]) {
++                            this._gutter.left = parseInt(p[3], 10);
++                        } else if (p[1]) {
++                            this._gutter.left = this._gutter.right;
++                        } else {
++                            this._gutter.left = this._gutter.top;
++                        }
++                    }
++                }
++            });
++            /**
++            * @attribute parent
++            * @description The parent Layout that we are assigned to
++            * @type {Object} YAHOO.widget.Layout
++            */
++            this.setAttributeConfig('parent', {
++                writeOnce: true,
++                value: attr.parent || false,
++                method: function(p) {
++                    if (p) {
++                        p.on('resize', this.resize, this, true);
++                    }
++
++                }
++            });
++            /**
++            * @attribute collapseSize
++            * @description The pixel size of the Clip that we will collapse to
++            * @type Number
++            */
++            this.setAttributeConfig('collapseSize', {
++                value: attr.collapseSize || 25,
++                validator: YAHOO.lang.isNumber
++            });
++            /**
++            * @attribute duration
++            * @description The duration to give the Animation Utility when animating the opening and closing of Units
++            */
++            this.setAttributeConfig('duration', {
++                value: attr.duration || 0.5
++            });
++            /**
++            * @attribute easing
++            * @description The Animation Easing to apply to the Animation instance for this unit.
++            */
++            this.setAttributeConfig('easing', {
++                value: attr.easing || ((YAHOO.util && YAHOO.util.Easing) ? YAHOO.util.Easing.BounceIn : 'false')
++            });
++            /**
++            * @attribute animate
++            * @description Use animation to collapse/expand the unit
++            * @type Boolean
++            */
++            this.setAttributeConfig('animate', {
++                value: ((attr.animate === false) ? false : true),
++                validator: function() {
++                    var anim = false;
++                    if (YAHOO.util.Anim) {
++                        anim = true;
++                    }
++                    return anim;
++                },
++                method: function(anim) {
++                    if (anim) {
++                        this._anim = new YAHOO.util.Anim(this.get('element'), {}, this.get('duration'), this.get('easing'));
++                    } else {
++                        this._anim = false;
++                    }
++                }
++            });
++            /**
++            * @attribute header
++            * @description The text to use as the Header of the Unit
++            */
++            this.setAttributeConfig('header', {
++                value: attr.header || false,
++                method: function(txt) {
++                    if (txt === false) {
++                        //Remove the footer
++                        if (this.header) {
++                            Dom.addClass(this.body, 'yui-layout-bd-nohd');
++                            this.header.parentNode.removeChild(this.header);
++                            this.header = null;
++                        }
++                    } else {
++                        if (!this.header) {
++                            var header = this.getElementsByClassName('yui-layout-hd', 'div')[0];
++                            if (!header) {
++                                header = this._createHeader();
++                            }
++                            this.header = header;
++                        }
++                        var h = this.header.getElementsByTagName('h2')[0];
++                        if (!h) {
++                            h = document.createElement('h2');
++                            this.header.appendChild(h);
++                        }
++                        h.innerHTML = txt;
++                        if (this.body) {
++                            Dom.removeClass(this.body, 'yui-layout-bd-nohd');
++                        }
++                    }
++                    this.fireEvent('contentChange', { target: 'header' });
++                }
++            });
++            /**
++            * @attribute proxy
++            * @description Use the proxy config setting for the Resize Utility
++            * @type Boolean
++            */
++            this.setAttributeConfig('proxy', {
++                writeOnce: true,
++                value: ((attr.proxy === false) ? false : true)
++            });
++            /**
++            * @attribute body
++            * @description The content for the body. If we find an element in the page with an id that matches the passed option we will move that element into the body of this unit.
++            */
++            this.setAttributeConfig('body', {
++                value: attr.body || false,
++                method: function(content) {
++                    if (!this.body) {
++                        var body = this.getElementsByClassName('yui-layout-bd', 'div')[0];
++                        if (body) {
++                            this.body = body;
++                        } else {
++                            body = document.createElement('div');
++                            body.className = 'yui-layout-bd';
++                            this.body = body;
++                            this.get('wrap').appendChild(body);
++                        }
++                    }
++                    if (!this.header) {
++                        Dom.addClass(this.body, 'yui-layout-bd-nohd');
++                    }
++                    Dom.addClass(this.body, 'yui-layout-bd-noft');
++
++
++                    var el = null;
++                    if (Lang.isString(content)) {
++                        el = Dom.get(content);
++                    } else if (content && content.tagName) {
++                        el = content;
++                    }
++                    if (el) {
++                        var id = Dom.generateId(el);
++                        LayoutUnit._instances[id] = this;
++                        this.body.appendChild(el);
++                    } else {
++                        this.body.innerHTML = content;
++                    }
++
++                    this._cleanGrids();
++
++                    this.fireEvent('contentChange', { target: 'body' });
++                }
++            });
++
++            /**
++            * @attribute footer
++            * @description The content for the footer. If we find an element in the page with an id that matches the passed option we will move that element into the footer of this unit.
++            */
++            this.setAttributeConfig('footer', {
++                value: attr.footer || false,
++                method: function(content) {
++                    if (content === false) {
++                        //Remove the footer
++                        if (this.footer) {
++                            Dom.addClass(this.body, 'yui-layout-bd-noft');
++                            this.footer.parentNode.removeChild(this.footer);
++                            this.footer = null;
++                        }
++                    } else {
++                        if (!this.footer) {
++                            var ft = this.getElementsByClassName('yui-layout-ft', 'div')[0];
++                            if (!ft) {
++                                ft = document.createElement('div');
++                                ft.className = 'yui-layout-ft';
++                                this.footer = ft;
++                                this.get('wrap').appendChild(ft);
++                            } else {
++                                this.footer = ft;
++                            }
++                        }
++                        var el = null;
++                        if (Lang.isString(content)) {
++                            el = Dom.get(content);
++                        } else if (content && content.tagName) {
++                            el = content;
++                        }
++                        if (el) {
++                            this.footer.appendChild(el);
++                        } else {
++                            this.footer.innerHTML = content;
++                        }
++                        Dom.removeClass(this.body, 'yui-layout-bd-noft');
++                    }
++                    this.fireEvent('contentChange', { target: 'footer' });
++                }
++            });
++            /**
++            * @attribute close
++            * @description Adds a close icon to the unit
++            */
++            this.setAttributeConfig('close', {
++                value: attr.close || false,
++                method: function(close) {
++                    //Position Center doesn't get this
++                    if (this.get('position') == 'center') {
++                        return false;
++                    }
++                    if (!this.header && close) {
++                        this._createHeader();
++                    }
++                    var c = Dom.getElementsByClassName('close', 'div', this.header)[0];
++                    if (close) {
++                        //Force some header text if there isn't any
++                        if (!this.get('header')) {
++                            this.set('header', '&nbsp;');
++                        }
++                        if (!c) {
++                            c = document.createElement('div');
++                            c.className = 'close';
++                            this.header.appendChild(c);
++                            Event.on(c, 'click', this.close, this, true);
++                        }
++                        c.title = this.STR_CLOSE;
++                    } else if (c && c.parentNode) {
++                        Event.purgeElement(c);
++                        c.parentNode.removeChild(c);
++                    }
++                    this._configs.close.value = close;
++                    this.set('collapse', this.get('collapse')); //Reset so we get the right classnames
++                }
++            });
++
++            /**
++            * @attribute collapse
++            * @description Adds a collapse icon to the unit
++            */
++            this.setAttributeConfig('collapse', {
++                value: attr.collapse || false,
++                method: function(collapse) {
++                    //Position Center doesn't get this
++                    if (this.get('position') == 'center') {
++                        return false;
++                    }
++                    if (!this.header && collapse) {
++                        this._createHeader();
++                    }
++                    var c = Dom.getElementsByClassName('collapse', 'div', this.header)[0];
++                    if (collapse) {
++                        //Force some header text if there isn't any
++                        if (!this.get('header')) {
++                            this.set('header', '&nbsp;');
++                        }
++                        if (!c) {
++                            c = document.createElement('div');
++                            this.header.appendChild(c);
++                            Event.on(c, 'click', this.collapse, this, true);
++                        }
++                        c.title = this.STR_COLLAPSE;
++                        c.className = 'collapse' + ((this.get('close')) ? ' collapse-close' : '');
++                    } else if (c && c.parentNode) {
++                        Event.purgeElement(c);
++                        c.parentNode.removeChild(c);
++                    }
++                }
++            });
++            /**
++            * @attribute scroll
++            * @description Adds a class to the unit to allow for overflow: auto (yui-layout-scroll), default is overflow: hidden (yui-layout-noscroll). If true scroll bars will be placed on the element when the content exceeds the given area, false will put overflow hidden to hide the content. Passing null will render the content as usual overflow.
++            * @type Boolean/Null
++            */
++
++            this.setAttributeConfig('scroll', {
++                value: (((attr.scroll === true) || (attr.scroll === false) || (attr.scroll === null)) ? attr.scroll : false),
++                method: function(scroll) {
++                    if ((scroll === false) && !this._collapsed) { //Removing scroll bar
++                        if (this.body) {
++                            if (this.body.scrollTop > 0) {
++                                this._lastScrollTop = this.body.scrollTop;
++                            }
++                        }
++                    }
++                    
++                    if (scroll === true) {
++                        this.addClass('yui-layout-scroll');
++                        this.removeClass('yui-layout-noscroll');
++                        if (this._lastScrollTop > 0) {
++                            if (this.body) {
++                                this.body.scrollTop = this._lastScrollTop;
++                            }
++                        }
++                    } else if (scroll === false) {
++                        this.removeClass('yui-layout-scroll');
++                        this.addClass('yui-layout-noscroll');
++                    } else if (scroll === null) {
++                        this.removeClass('yui-layout-scroll');
++                        this.removeClass('yui-layout-noscroll');
++                    }
++                }
++            });
++            /**
++            * @attribute hover
++            * @description Config option to pass to the Resize Utility
++            */
++            this.setAttributeConfig('hover', {
++                writeOnce: true,
++                value: attr.hover || false,
++                validator: YAHOO.lang.isBoolean
++            });
++            /**
++            * @attribute useShim
++            * @description Config option to pass to the Resize Utility
++            */
++            this.setAttributeConfig('useShim', {
++                value: attr.useShim || false,
++                validator: YAHOO.lang.isBoolean,
++                method: function(u) {
++                    if (this._resize) {
++                        this._resize.set('useShim', u);
++                    }
++                }
++            });
++            /**
++            * @attribute resize
++            * @description Should a Resize instance be added to this unit
++            */
++
++            this.setAttributeConfig('resize', {
++                value: attr.resize || false,
++                validator: function(r) {
++                    if (YAHOO.util && YAHOO.util.Resize) {
++                        return true;
++                    }
++                    return false;
++                },
++                method: function(resize) {
++                    if (resize && !this._resize) {
++                        //Position Center doesn't get this
++                        if (this.get('position') == 'center') {
++                            return false;
++                        }
++                        var handle = false; //To catch center
++                        switch (this.get('position')) {
++                            case 'top':
++                                handle = 'b';
++                                break;
++                            case 'bottom':
++                                handle = 't';
++                                break;
++                            case 'right':
++                                handle = 'l';
++                                break;
++                            case 'left':
++                                handle = 'r';
++                                break;
++                        }
++
++                        this.setStyle('position', 'absolute'); //Make sure Resize get's a position
++                        
++                        if (handle) {
++                            this._resize = new YAHOO.util.Resize(this.get('element'), {
++                                proxy: this.get('proxy'),
++                                hover: this.get('hover'),
++                                status: false,
++                                autoRatio: false,
++                                handles: [handle],
++                                minWidth: this.get('minWidth'),
++                                maxWidth: this.get('maxWidth'),
++                                minHeight: this.get('minHeight'),
++                                maxHeight: this.get('maxHeight'),
++                                height: this.get('height'),
++                                width: this.get('width'),
++                                setSize: false,
++                                useShim: this.get('useShim'),
++                                wrap: false
++                            });
++                            
++                            this._resize._handles[handle].innerHTML = '<div class="yui-layout-resize-knob"></div>';
++
++                            if (this.get('proxy')) {
++                                var proxy = this._resize.getProxyEl();
++                                proxy.innerHTML = '<div class="yui-layout-handle-' + handle + '"></div>';
++                            }
++                            this._resize.on('startResize', function(ev) {
++                                this._lastScroll = this.get('scroll');
++                                this.set('scroll', false);
++                                if (this.get('parent')) {
++                                    this.get('parent').fireEvent('startResize');
++                                    var c = this.get('parent').getUnitByPosition('center');
++                                    this._lastCenterScroll = c.get('scroll');
++                                    c.addClass(this._resize.CSS_RESIZING);
++                                    c.set('scroll', false);
++                                }
++                                this.fireEvent('startResize');
++                            }, this, true);
++                            this._resize.on('resize', function(ev) {
++                                this.set('height', ev.height);
++                                this.set('width', ev.width);
++                            }, this, true);
++                            this._resize.on('endResize', function(ev) {
++                                this.set('scroll', this._lastScroll);
++                                if (this.get('parent')) {
++                                    var c = this.get('parent').getUnitByPosition('center');
++                                    c.set('scroll', this._lastCenterScroll);
++                                    c.removeClass(this._resize.CSS_RESIZING);
++                                }
++                                this.resize();
++                                this.fireEvent('endResize');
++                            }, this, true);
++                        }
++                    } else {
++                        if (this._resize) {
++                            this._resize.destroy();
++                        }
++                    }
++                }
++            });
++			/**
++	         * The unit data source, used for loading content dynamically.
++	         * @attribute dataSrc
++	         * @type String
++	         */
++	        this.setAttributeConfig('dataSrc', {
++	            value: attr.dataSrc
++	        });
++	        /**
++	         * The method to use for the data request.
++	         * @attribute loadMethod
++	         * @type String
++	         * @default "GET"
++	         */
++	        this.setAttributeConfig('loadMethod', {
++	            value: attr.loadMethod || 'GET',
++	            validator: YAHOO.lang.isString
++	        });	
++	        /**
++	         * Whether or not any data has been loaded from the server.
++	         * @attribute dataLoaded
++	         * @type Boolean
++	         */        
++	        this.setAttributeConfig('dataLoaded', {
++	            value: false,
++	            validator: YAHOO.lang.isBoolean,
++	            writeOnce: true
++	        });
++	        /**
++	         * Number if milliseconds before aborting and calling failure handler.
++	         * @attribute dataTimeout
++	         * @type Number
++	         * @default null
++	         */
++	        this.setAttributeConfig('dataTimeout', {
++	            value: attr.dataTimeout || null,
++	            validator: YAHOO.lang.isNumber
++	        });
++        },
++        /**
++        * @private
++        * @method _cleanGrids
++        * @description This method attempts to clean up the first level of the YUI CSS Grids, YAHOO.util.Selector is required for this operation.
++        */
++        _cleanGrids: function() {
++            if (this.get('grids')) {
++                var b = Sel.query('div.yui-b', this.body, true);
++                if (b) {
++                    Dom.removeClass(b, 'yui-b');
++                }
++                Event.onAvailable('yui-main', function() {
++                    Dom.setStyle(Sel.query('#yui-main'), 'margin-left', '0');
++                    Dom.setStyle(Sel.query('#yui-main'), 'margin-right', '0');
++                });
++            }
++        },
++        /**
++        * @private
++        * @method _createHeader
++        * @description Creates the HTMLElement for the header
++        * @return {HTMLElement} The new HTMLElement
++        */
++        _createHeader: function() {
++            var header = document.createElement('div');
++            header.className = 'yui-layout-hd';
++            if (this.get('firstChild')) {
++                this.get('wrap').insertBefore(header, this.get('wrap').firstChild);
++            } else {
++                this.get('wrap').appendChild(header);
++            }
++            this.header = header;
++            return header;
++        },
++        /**
++        * @method destroy
++        * @param {Boolean} force Don't report to the parent, because we are being called from the parent.
++        * @description Removes this unit from the parent and cleans up after itself.
++        * @return {<a href="YAHOO.widget.Layout.html">YAHOO.widget.Layout</a>} The parent Layout instance
++        */
++        destroy: function(force) {
++            if (this._resize) {
++                this._resize.destroy();
++            }
++            var par = this.get('parent');
++
++            this.setStyle('display', 'none');
++            if (this._clip) {
++                this._clip.parentNode.removeChild(this._clip);
++                this._clip = null;
++            }
++
++            if (!force) {
++                par.removeUnit(this);
++            }
++            
++            if (par) {
++                par.removeListener('resize', this.resize, this, true);
++            }
++            this.unsubscribeAll();
++            Event.purgeElement(this.get('element'));
++            this.get('parentNode').removeChild(this.get('element'));
++
++            delete YAHOO.widget.LayoutUnit._instances[this.get('id')];
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                    delete this[i];
++                }
++            }
++        
++            return par;
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the LayoutUnit.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'LayoutUnit #' + this.get('id') + ' (' + this.get('position') + ')';
++            }
++            return 'LayoutUnit';
++        }
++    /**
++    * @event resize
++    * @description Fired when this.resize is called
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event startResize
++    * @description Fired when the Resize Utility fires it's startResize Event.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event endResize
++    * @description Fired when the Resize Utility fires it's endResize Event.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeResize
++    * @description Fired at the beginning of the resize method. If you return false, the resize is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event contentChange
++    * @description Fired when the content in the header, body or footer is changed via the API
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event close
++    * @description Fired when the unit is closed
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeCollapse
++    * @description Fired before the unit is collapsed. If you return false, the collapse is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event collapse
++    * @description Fired when the unit is collapsed
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event expand
++    * @description Fired when the unit is exanded
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event beforeExpand
++    * @description Fired before the unit is exanded. If you return false, the collapse is cancelled.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event load
++    * @description Fired when data is loaded via the dataSrc config.
++    * @type YAHOO.util.CustomEvent
++    */
++    /**
++    * @event loadError
++    * @description Fired when an error occurs loading data via the dataSrc config. Error message is passed as argument to this event.
++    * @type YAHOO.util.CustomEvent
++    */
++    });
++
++    YAHOO.widget.LayoutUnit = LayoutUnit;
++})();
++YAHOO.register("layout", YAHOO.widget.Layout, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/logger/assets/logger-core.css b/pylons_app/public/js/yui/logger/assets/logger-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/assets/logger-core.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* This file intentionally left blank */
+diff --git a/pylons_app/public/js/yui/logger/assets/logger.css b/pylons_app/public/js/yui/logger/assets/logger.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/assets/logger.css
+@@ -0,0 +1,57 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* logger default styles */
++/* default width: 31em */
++/* default font-size 77% */
++.yui-log {padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}
++
++/* for containers built from scratch */
++.yui-log-container {position:absolute;top:1em;right:1em;}
++
++/* buttons */
++.yui-log input {
++    margin:0;padding:0;
++    font-family:arial;
++    font-size:100%;
++    font-weight:normal;
++}
++.yui-log .yui-log-btns {position:relative;float:right;bottom:.25em;}
++
++/* header */
++.yui-log .yui-log-hd {margin-top:1em;padding:.5em;background-color:#575757;}
++.yui-log .yui-log-hd h4 {margin:0;padding:0;font-size:107%;font-weight:bold;color:#FFF;}
++
++/* body */
++
++.yui-log .yui-log-bd {width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;} /* height is controlled here: default 20em*/
++.yui-log p {margin:1px;padding:.1em;}
++.yui-log pre {margin:0;padding:0;}
++
++/* for pre to respect newlines yet wrap long lines */
++/* http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/ */
++.yui-log pre.yui-log-verbose {
++    white-space: pre-wrap; /* css-3 */
++    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
++    white-space: -pre-wrap; /* Opera 4-6 */
++    white-space: -o-pre-wrap; /* Opera 7 */
++    word-wrap: break-word; /* Internet Explorer 5.5+ */
++}
++
++/* footer */
++.yui-log .yui-log-ft {margin-top:.5em;}
++.yui-log .yui-log-ft .yui-log-categoryfilters {}
++.yui-log .yui-log-ft .yui-log-sourcefilters {width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}
++.yui-log .yui-log-filtergrp {margin-right:.5em;}
++/*.yui-log .yui-log-ft ul {margin:0;padding:0;line-height:1.8}
++.yui-log .yui-log-ft li {list-style:none;display:inline;white-space:nowrap;}*/
++
++/* logs */
++.yui-log .info {background-color:#A7CC25;} /* A7CC25 green */
++.yui-log .warn {background-color:#F58516;} /* F58516 orange */
++.yui-log .error {background-color:#E32F0B;} /* E32F0B red */
++.yui-log .time {background-color:#A6C9D7;} /* A6C9D7 blue */
++.yui-log .window {background-color:#F2E886;} /* F2E886 tan */
+diff --git a/pylons_app/public/js/yui/logger/assets/skins/sam/logger-skin.css b/pylons_app/public/js/yui/logger/assets/skins/sam/logger-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/assets/skins/sam/logger-skin.css
+@@ -0,0 +1,55 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* logger default styles */
++/* default width: 31em */
++/* default font-size 77% */
++.yui-skin-sam .yui-log { padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000; }
++
++/* for containers built from scratch */
++.yui-skin-sam .yui-log-container { position:absolute;top:1em;right:1em; }
++
++/* buttons */
++.yui-skin-sam .yui-log input {
++    margin:0;padding:0;
++    font-family:arial;
++    font-size:100%;
++    font-weight:normal;
++}
++.yui-skin-sam .yui-log .yui-log-btns { position:relative;float:right;bottom:.25em; }
++
++/* header */
++.yui-skin-sam .yui-log .yui-log-hd { margin-top:1em;padding:.5em;background-color:#575757; }
++.yui-skin-sam .yui-log .yui-log-hd h4 { margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF; }
++
++/* body */
++
++.yui-skin-sam .yui-log .yui-log-bd { width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto; } /* height is controlled here: default 20em*/
++.yui-skin-sam .yui-log p { margin:1px;padding:.1em; }
++.yui-skin-sam .yui-log pre { margin:0;padding:0; }
++
++/* for pre to respect newlines yet wrap long lines */
++/* http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/ */
++.yui-skin-sam .yui-log pre.yui-log-verbose {
++    white-space: pre-wrap; /* css-3 */
++    white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
++    white-space: -pre-wrap; /* Opera 4-6 */
++    white-space: -o-pre-wrap; /* Opera 7 */
++    word-wrap: break-word; /* Internet Explorer 5.5+ */
++}
++
++/* footer */
++.yui-skin-sam .yui-log .yui-log-ft { margin-top:.5em; }
++.yui-skin-sam .yui-log .yui-log-ft .yui-log-categoryfilters { }
++.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters { width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em; }
++.yui-skin-sam .yui-log .yui-log-filtergrp { margin-right:.5em; }
++
++/* logs */
++.yui-skin-sam .yui-log .info { background-color:#A7CC25; } /* A7CC25 green */
++.yui-skin-sam .yui-log .warn { background-color:#F58516; } /* F58516 orange */
++.yui-skin-sam .yui-log .error { background-color:#E32F0B; } /* E32F0B red */
++.yui-skin-sam .yui-log .time { background-color:#A6C9D7; } /* A6C9D7 blue */
++.yui-skin-sam .yui-log .window { background-color:#F2E886; } /* F2E886 tan */
+diff --git a/pylons_app/public/js/yui/logger/assets/skins/sam/logger.css b/pylons_app/public/js/yui/logger/assets/skins/sam/logger.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/assets/skins/sam/logger.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-log{padding:1em;width:31em;background-color:#AAA;color:#000;border:1px solid black;font-family:monospace;font-size:77%;text-align:left;z-index:9000;}.yui-skin-sam .yui-log-container{position:absolute;top:1em;right:1em;}.yui-skin-sam .yui-log input{margin:0;padding:0;font-family:arial;font-size:100%;font-weight:normal;}.yui-skin-sam .yui-log .yui-log-btns{position:relative;float:right;bottom:.25em;}.yui-skin-sam .yui-log .yui-log-hd{margin-top:1em;padding:.5em;background-color:#575757;}.yui-skin-sam .yui-log .yui-log-hd h4{margin:0;padding:0;font-size:108%;font-weight:bold;color:#FFF;}.yui-skin-sam .yui-log .yui-log-bd{width:100%;height:20em;background-color:#FFF;border:1px solid gray;overflow:auto;}.yui-skin-sam .yui-log p{margin:1px;padding:.1em;}.yui-skin-sam .yui-log pre{margin:0;padding:0;}.yui-skin-sam .yui-log pre.yui-log-verbose{white-space:pre-wrap;white-space:-moz-pre-wrap!important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;}.yui-skin-sam .yui-log .yui-log-ft{margin-top:.5em;}.yui-skin-sam .yui-log .yui-log-ft .yui-log-sourcefilters{width:100%;border-top:1px solid #575757;margin-top:.75em;padding-top:.75em;}.yui-skin-sam .yui-log .yui-log-filtergrp{margin-right:.5em;}.yui-skin-sam .yui-log .info{background-color:#A7CC25;}.yui-skin-sam .yui-log .warn{background-color:#F58516;}.yui-skin-sam .yui-log .error{background-color:#E32F0B;}.yui-skin-sam .yui-log .time{background-color:#A6C9D7;}.yui-skin-sam .yui-log .window{background-color:#F2E886;}
+diff --git a/pylons_app/public/js/yui/logger/logger-debug.js b/pylons_app/public/js/yui/logger/logger-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/logger-debug.js
+@@ -0,0 +1,2104 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The LogMsg class defines a single log message.
++ *
++ * @class LogMsg
++ * @constructor
++ * @param oConfigs {Object} Object literal of configuration params.
++ */
++YAHOO.widget.LogMsg = function(oConfigs) {
++    // Parse configs
++    /**
++     * Log message.
++     *
++     * @property msg
++     * @type String
++     */
++    this.msg =
++    /**
++     * Log timestamp.
++     *
++     * @property time
++     * @type Date
++     */
++    this.time =
++
++    /**
++     * Log category.
++     *
++     * @property category
++     * @type String
++     */
++    this.category =
++
++    /**
++     * Log source. The first word passed in as the source argument.
++     *
++     * @property source
++     * @type String
++     */
++    this.source =
++
++    /**
++     * Log source detail. The remainder of the string passed in as the source argument, not
++     * including the first word (if any).
++     *
++     * @property sourceDetail
++     * @type String
++     */
++    this.sourceDetail = null;
++
++    if (oConfigs && (oConfigs.constructor == Object)) {
++        for(var param in oConfigs) {
++            if (oConfigs.hasOwnProperty(param)) {
++                this[param] = oConfigs[param];
++            }
++        }
++    }
++};
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The LogWriter class provides a mechanism to log messages through
++ * YAHOO.widget.Logger from a named source.
++ *
++ * @class LogWriter
++ * @constructor
++ * @param sSource {String} Source of LogWriter instance.
++ */
++YAHOO.widget.LogWriter = function(sSource) {
++    if(!sSource) {
++        YAHOO.log("Could not instantiate LogWriter due to invalid source.",
++            "error", "LogWriter");
++        return;
++    }
++    this._source = sSource;
++ };
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++ /**
++ * Public accessor to the unique name of the LogWriter instance.
++ *
++ * @method toString
++ * @return {String} Unique name of the LogWriter instance.
++ */
++YAHOO.widget.LogWriter.prototype.toString = function() {
++    return "LogWriter " + this._sSource;
++};
++
++/**
++ * Logs a message attached to the source of the LogWriter.
++ *
++ * @method log
++ * @param sMsg {String} The log message.
++ * @param sCategory {String} Category name.
++ */
++YAHOO.widget.LogWriter.prototype.log = function(sMsg, sCategory) {
++    YAHOO.widget.Logger.log(sMsg, sCategory, this._source);
++};
++
++/**
++ * Public accessor to get the source name.
++ *
++ * @method getSource
++ * @return {String} The LogWriter source.
++ */
++YAHOO.widget.LogWriter.prototype.getSource = function() {
++    return this._source;
++};
++
++/**
++ * Public accessor to set the source name.
++ *
++ * @method setSource
++ * @param sSource {String} Source of LogWriter instance.
++ */
++YAHOO.widget.LogWriter.prototype.setSource = function(sSource) {
++    if(!sSource) {
++        YAHOO.log("Could not set source due to invalid source.", "error", this.toString());
++        return;
++    }
++    else {
++        this._source = sSource;
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Source of the LogWriter instance.
++ *
++ * @property _source
++ * @type String
++ * @private
++ */
++YAHOO.widget.LogWriter.prototype._source = null;
++
++
++
++ /**
++ * The Logger widget provides a simple way to read or write log messages in
++ * JavaScript code. Integration with the YUI Library's debug builds allow
++ * implementers to access under-the-hood events, errors, and debugging messages.
++ * Output may be read through a LogReader console and/or output to a browser
++ * console.
++ *
++ * @module logger
++ * @requires yahoo, event, dom
++ * @optional dragdrop
++ * @namespace YAHOO.widget
++ * @title Logger Widget
++ */
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++// Define once
++if(!YAHOO.widget.Logger) {
++    /**
++     * The singleton Logger class provides core log management functionality. Saves
++     * logs written through the global YAHOO.log function or written by a LogWriter
++     * instance. Provides access to logs for reading by a LogReader instance or
++     * native browser console such as the Firebug extension to Firefox or Safari's
++     * JavaScript console through integration with the console.log() method.
++     *
++     * @class Logger
++     * @static
++     */
++    YAHOO.widget.Logger = {
++        // Initialize properties
++        loggerEnabled: true,
++        _browserConsoleEnabled: false,
++        categories: ["info","warn","error","time","window"],
++        sources: ["global"],
++        _stack: [], // holds all log msgs
++        maxStackEntries: 2500,
++        _startTime: new Date().getTime(), // static start timestamp
++        _lastTime: null, // timestamp of last logged message
++        _windowErrorsHandled: false,
++        _origOnWindowError: null
++    };
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public properties
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * True if Logger is enabled, false otherwise.
++     *
++     * @property loggerEnabled
++     * @type Boolean
++     * @static
++     * @default true
++     */
++
++    /**
++     * Array of categories.
++     *
++     * @property categories
++     * @type String[]
++     * @static
++     * @default ["info","warn","error","time","window"]
++     */
++
++    /**
++     * Array of sources.
++     *
++     * @property sources
++     * @type String[]
++     * @static
++     * @default ["global"]
++     */
++
++    /**
++     * Upper limit on size of internal stack.
++     *
++     * @property maxStackEntries
++     * @type Number
++     * @static
++     * @default 2500
++     */
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private properties
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * Internal property to track whether output to browser console is enabled.
++     *
++     * @property _browserConsoleEnabled
++     * @type Boolean
++     * @static
++     * @default false
++     * @private
++     */
++
++    /**
++     * Array to hold all log messages.
++     *
++     * @property _stack
++     * @type Array
++     * @static
++     * @private
++     */
++    /**
++     * Static timestamp of Logger initialization.
++     *
++     * @property _startTime
++     * @type Date
++     * @static
++     * @private
++     */
++    /**
++     * Timestamp of last logged message.
++     *
++     * @property _lastTime
++     * @type Date
++     * @static
++     * @private
++     */
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * Saves a log message to the stack and fires newLogEvent. If the log message is
++     * assigned to an unknown category, creates a new category. If the log message is
++     * from an unknown source, creates a new source.  If browser console is enabled,
++     * outputs the log message to browser console.
++     *
++     * @method log
++     * @param sMsg {String} The log message.
++     * @param sCategory {String} Category of log message, or null.
++     * @param sSource {String} Source of LogWriter, or null if global.
++     */
++    YAHOO.widget.Logger.log = function(sMsg, sCategory, sSource) {
++        if(this.loggerEnabled) {
++            if(!sCategory) {
++                sCategory = "info"; // default category
++            }
++            else {
++                sCategory = sCategory.toLocaleLowerCase();
++                if(this._isNewCategory(sCategory)) {
++                    this._createNewCategory(sCategory);
++                }
++            }
++            var sClass = "global"; // default source
++            var sDetail = null;
++            if(sSource) {
++                var spaceIndex = sSource.indexOf(" ");
++                if(spaceIndex > 0) {
++                    // Substring until first space
++                    sClass = sSource.substring(0,spaceIndex);
++                    // The rest of the source
++                    sDetail = sSource.substring(spaceIndex,sSource.length);
++                }
++                else {
++                    sClass = sSource;
++                }
++                if(this._isNewSource(sClass)) {
++                    this._createNewSource(sClass);
++                }
++            }
++
++            var timestamp = new Date();
++            var logEntry = new YAHOO.widget.LogMsg({
++                msg: sMsg,
++                time: timestamp,
++                category: sCategory,
++                source: sClass,
++                sourceDetail: sDetail
++            });
++
++            var stack = this._stack;
++            var maxStackEntries = this.maxStackEntries;
++            if(maxStackEntries && !isNaN(maxStackEntries) &&
++                (stack.length >= maxStackEntries)) {
++                stack.shift();
++            }
++            stack.push(logEntry);
++            this.newLogEvent.fire(logEntry);
++
++            if(this._browserConsoleEnabled) {
++                this._printToBrowserConsole(logEntry);
++            }
++            return true;
++        }
++        else {
++            return false;
++        }
++    };
++
++    /**
++     * Resets internal stack and startTime, enables Logger, and fires logResetEvent.
++     *
++     * @method reset
++     */
++    YAHOO.widget.Logger.reset = function() {
++        this._stack = [];
++        this._startTime = new Date().getTime();
++        this.loggerEnabled = true;
++        this.log("Logger reset");
++        this.logResetEvent.fire();
++    };
++
++    /**
++     * Public accessor to internal stack of log message objects.
++     *
++     * @method getStack
++     * @return {Object[]} Array of log message objects.
++     */
++    YAHOO.widget.Logger.getStack = function() {
++        return this._stack;
++    };
++
++    /**
++     * Public accessor to internal start time.
++     *
++     * @method getStartTime
++     * @return {Date} Internal date of when Logger singleton was initialized.
++     */
++    YAHOO.widget.Logger.getStartTime = function() {
++        return this._startTime;
++    };
++
++    /**
++     * Disables output to the browser's global console.log() function, which is used
++     * by the Firebug extension to Firefox as well as Safari.
++     *
++     * @method disableBrowserConsole
++     */
++    YAHOO.widget.Logger.disableBrowserConsole = function() {
++        YAHOO.log("Logger output to the function console.log() has been disabled.");
++        this._browserConsoleEnabled = false;
++    };
++
++    /**
++     * Enables output to the browser's global console.log() function, which is used
++     * by the Firebug extension to Firefox as well as Safari.
++     *
++     * @method enableBrowserConsole
++     */
++    YAHOO.widget.Logger.enableBrowserConsole = function() {
++        this._browserConsoleEnabled = true;
++        YAHOO.log("Logger output to the function console.log() has been enabled.");
++    };
++
++    /**
++     * Surpresses native JavaScript errors and outputs to console. By default,
++     * Logger does not handle JavaScript window error events.
++     * NB: Not all browsers support the window.onerror event.
++     *
++     * @method handleWindowErrors
++     */
++    YAHOO.widget.Logger.handleWindowErrors = function() {
++        if(!YAHOO.widget.Logger._windowErrorsHandled) {
++            // Save any previously defined handler to call
++            if(window.error) {
++                YAHOO.widget.Logger._origOnWindowError = window.onerror;
++            }
++            window.onerror = YAHOO.widget.Logger._onWindowError;
++            YAHOO.widget.Logger._windowErrorsHandled = true;
++            YAHOO.log("Logger handling of window.onerror has been enabled.");
++        }
++        else {
++            YAHOO.log("Logger handling of window.onerror had already been enabled.");
++        }
++    };
++
++    /**
++     * Unsurpresses native JavaScript errors. By default,
++     * Logger does not handle JavaScript window error events.
++     * NB: Not all browsers support the window.onerror event.
++     *
++     * @method unhandleWindowErrors
++     */
++    YAHOO.widget.Logger.unhandleWindowErrors = function() {
++        if(YAHOO.widget.Logger._windowErrorsHandled) {
++            // Revert to any previously defined handler to call
++            if(YAHOO.widget.Logger._origOnWindowError) {
++                window.onerror = YAHOO.widget.Logger._origOnWindowError;
++                YAHOO.widget.Logger._origOnWindowError = null;
++            }
++            else {
++                window.onerror = null;
++            }
++            YAHOO.widget.Logger._windowErrorsHandled = false;
++            YAHOO.log("Logger handling of window.onerror has been disabled.");
++        }
++        else {
++            YAHOO.log("Logger handling of window.onerror had already been disabled.");
++        }
++    };
++    
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public events
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++     /**
++     * Fired when a new category has been created.
++     *
++     * @event categoryCreateEvent
++     * @param sCategory {String} Category name.
++     */
++    YAHOO.widget.Logger.categoryCreateEvent =
++        new YAHOO.util.CustomEvent("categoryCreate", this, true);
++
++     /**
++     * Fired when a new source has been named.
++     *
++     * @event sourceCreateEvent
++     * @param sSource {String} Source name.
++     */
++    YAHOO.widget.Logger.sourceCreateEvent =
++        new YAHOO.util.CustomEvent("sourceCreate", this, true);
++
++     /**
++     * Fired when a new log message has been created.
++     *
++     * @event newLogEvent
++     * @param sMsg {String} Log message.
++     */
++    YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true);
++
++    /**
++     * Fired when the Logger has been reset has been created.
++     *
++     * @event logResetEvent
++     */
++    YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true);
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Creates a new category of log messages and fires categoryCreateEvent.
++     *
++     * @method _createNewCategory
++     * @param sCategory {String} Category name.
++     * @private
++     */
++    YAHOO.widget.Logger._createNewCategory = function(sCategory) {
++        this.categories.push(sCategory);
++        this.categoryCreateEvent.fire(sCategory);
++    };
++
++    /**
++     * Checks to see if a category has already been created.
++     *
++     * @method _isNewCategory
++     * @param sCategory {String} Category name.
++     * @return {Boolean} Returns true if category is unknown, else returns false.
++     * @private
++     */
++    YAHOO.widget.Logger._isNewCategory = function(sCategory) {
++        for(var i=0; i < this.categories.length; i++) {
++            if(sCategory == this.categories[i]) {
++                return false;
++            }
++        }
++        return true;
++    };
++
++    /**
++     * Creates a new source of log messages and fires sourceCreateEvent.
++     *
++     * @method _createNewSource
++     * @param sSource {String} Source name.
++     * @private
++     */
++    YAHOO.widget.Logger._createNewSource = function(sSource) {
++        this.sources.push(sSource);
++        this.sourceCreateEvent.fire(sSource);
++    };
++
++    /**
++     * Checks to see if a source already exists.
++     *
++     * @method _isNewSource
++     * @param sSource {String} Source name.
++     * @return {Boolean} Returns true if source is unknown, else returns false.
++     * @private
++     */
++    YAHOO.widget.Logger._isNewSource = function(sSource) {
++        if(sSource) {
++            for(var i=0; i < this.sources.length; i++) {
++                if(sSource == this.sources[i]) {
++                    return false;
++                }
++            }
++            return true;
++        }
++    };
++
++    /**
++     * Outputs a log message to global console.log() function.
++     *
++     * @method _printToBrowserConsole
++     * @param oEntry {Object} Log entry object.
++     * @private
++     */
++    YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) {
++        if(window.console && console.log) {
++            var category = oEntry.category;
++            var label = oEntry.category.substring(0,4).toUpperCase();
++
++            var time = oEntry.time;
++            var localTime;
++            if (time.toLocaleTimeString) {
++                localTime  = time.toLocaleTimeString();
++            }
++            else {
++                localTime = time.toString();
++            }
++
++            var msecs = time.getTime();
++            var elapsedTime = (YAHOO.widget.Logger._lastTime) ?
++                (msecs - YAHOO.widget.Logger._lastTime) : 0;
++            YAHOO.widget.Logger._lastTime = msecs;
++
++            var output =
++                localTime + " (" +
++                elapsedTime + "ms): " +
++                oEntry.source + ": ";
++
++            // for bug 1987607
++            if (YAHOO.env.ua.webkit) {
++                output += oEntry.msg;
++            }
++
++            console.log(output, oEntry.msg);
++        }
++    };
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private event handlers
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Handles logging of messages due to window error events.
++     *
++     * @method _onWindowError
++     * @param sMsg {String} The error message.
++     * @param sUrl {String} URL of the error.
++     * @param sLine {String} Line number of the error.
++     * @private
++     */
++    YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) {
++        // Logger is not in scope of this event handler
++        try {
++            YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window");
++            if(YAHOO.widget.Logger._origOnWindowError) {
++                YAHOO.widget.Logger._origOnWindowError();
++            }
++        }
++        catch(e) {
++            return false;
++        }
++    };
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // First log
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    YAHOO.widget.Logger.log("Logger initialized");
++}
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++(function () {
++var Logger = YAHOO.widget.Logger,
++    u      = YAHOO.util,
++    Dom    = u.Dom,
++    Event  = u.Event,
++    d      = document;
++
++function make(el,props) {
++    el = d.createElement(el);
++    if (props) {
++        for (var p in props) {
++            if (props.hasOwnProperty(p)) {
++                el[p] = props[p];
++            }
++        }
++    }
++    return el;
++}
++
++/**
++ * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger.
++ *
++ * @class LogReader
++ * @constructor
++ * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV.
++ * @param elContainer {String} (optional) String ID of an existing DIV.
++ * @param oConfigs {Object} (optional) Object literal of configuration params.
++ */
++function LogReader(elContainer, oConfigs) {
++    this._sName = LogReader._index;
++    LogReader._index++;
++    
++    this._init.apply(this,arguments);
++
++    /**
++     * Render the LogReader immediately upon instantiation.  If set to false,
++     * you must call myLogReader.render() to generate the UI.
++     * 
++     * @property autoRender
++     * @type {Boolean}
++     * @default true
++     */
++    if (this.autoRender !== false) {
++        this.render();
++    }
++}
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Static member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++YAHOO.lang.augmentObject(LogReader, {
++    /**
++     * Internal class member to index multiple LogReader instances.
++     *
++     * @property _memberName
++     * @static
++     * @type Number
++     * @default 0
++     * @private
++     */
++    _index : 0,
++
++    /**
++     * Node template for the log entries
++     * @property ENTRY_TEMPLATE
++     * @static
++     * @type {HTMLElement}
++     * @default <code>pre</code> element with class yui-log-entry
++     */
++    ENTRY_TEMPLATE : (function () {
++        return make('pre',{ className: 'yui-log-entry' });
++    })(),
++
++    /**
++     * Template used for innerHTML of verbose entry output.
++     * @property VERBOSE_TEMPLATE
++     * @static
++     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}:&lt;/p>&lt;p>{sourceAndDetail}&lt;/p>&lt;p>{message}&lt;/p>"
++     */
++    VERBOSE_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",
++
++    /**
++     * Template used for innerHTML of compact entry output.
++     * @property BASIC_TEMPLATE
++     * @static
++     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}&lt;/p>"
++     */
++    BASIC_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"
++});
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++LogReader.prototype = {
++    /**
++     * Whether or not LogReader is enabled to output log messages.
++     *
++     * @property logReaderEnabled
++     * @type Boolean
++     * @default true
++     */
++    logReaderEnabled : true,
++
++    /**
++     * Public member to access CSS width of the LogReader container.
++     *
++     * @property width
++     * @type String
++     */
++    width : null,
++
++    /**
++     * Public member to access CSS height of the LogReader container.
++     *
++     * @property height
++     * @type String
++     */
++    height : null,
++
++    /**
++     * Public member to access CSS top position of the LogReader container.
++     *
++     * @property top
++     * @type String
++     */
++    top : null,
++
++    /**
++     * Public member to access CSS left position of the LogReader container.
++     *
++     * @property left
++     * @type String
++     */
++    left : null,
++
++    /**
++     * Public member to access CSS right position of the LogReader container.
++     *
++     * @property right
++     * @type String
++     */
++    right : null,
++
++    /**
++     * Public member to access CSS bottom position of the LogReader container.
++     *
++     * @property bottom
++     * @type String
++     */
++    bottom : null,
++
++    /**
++     * Public member to access CSS font size of the LogReader container.
++     *
++     * @property fontSize
++     * @type String
++     */
++    fontSize : null,
++
++    /**
++     * Whether or not the footer UI is enabled for the LogReader.
++     *
++     * @property footerEnabled
++     * @type Boolean
++     * @default true
++     */
++    footerEnabled : true,
++
++    /**
++     * Whether or not output is verbose (more readable). Setting to true will make
++     * output more compact (less readable).
++     *
++     * @property verboseOutput
++     * @type Boolean
++     * @default true
++     */
++    verboseOutput : true,
++
++    /**
++     * Custom output format for log messages.  Defaults to null, which falls
++     * back to verboseOutput param deciding between LogReader.VERBOSE_TEMPLATE
++     * and LogReader.BASIC_TEMPLATE.  Use bracketed place holders to mark where
++     * message info should go.  Available place holder names include:
++     * <ul>
++     *  <li>category</li>
++     *  <li>label</li>
++     *  <li>sourceAndDetail</li>
++     *  <li>message</li>
++     *  <li>localTime</li>
++     *  <li>elapsedTime</li>
++     *  <li>totalTime</li>
++     * </ul>
++     *
++     * @property entryFormat
++     * @type String
++     * @default null
++     */
++    entryFormat : null,
++
++    /**
++     * Whether or not newest message is printed on top.
++     *
++     * @property newestOnTop
++     * @type Boolean
++     */
++    newestOnTop : true,
++
++    /**
++     * Output timeout buffer in milliseconds.
++     *
++     * @property outputBuffer
++     * @type Number
++     * @default 100
++     */
++    outputBuffer : 100,
++
++    /**
++     * Maximum number of messages a LogReader console will display.
++     *
++     * @property thresholdMax
++     * @type Number
++     * @default 500
++     */
++    thresholdMax : 500,
++
++    /**
++     * When a LogReader console reaches its thresholdMax, it will clear out messages
++     * and print out the latest thresholdMin number of messages.
++     *
++     * @property thresholdMin
++     * @type Number
++     * @default 100
++     */
++    thresholdMin : 100,
++
++    /**
++     * True when LogReader is in a collapsed state, false otherwise.
++     *
++     * @property isCollapsed
++     * @type Boolean
++     * @default false
++     */
++    isCollapsed : false,
++
++    /**
++     * True when LogReader is in a paused state, false otherwise.
++     *
++     * @property isPaused
++     * @type Boolean
++     * @default false
++     */
++    isPaused : false,
++
++    /**
++     * Enables draggable LogReader if DragDrop Utility is present.
++     *
++     * @property draggable
++     * @type Boolean
++     * @default true
++     */
++    draggable : true,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++     /**
++     * Public accessor to the unique name of the LogReader instance.
++     *
++     * @method toString
++     * @return {String} Unique name of the LogReader instance.
++     */
++    toString : function() {
++        return "LogReader instance" + this._sName;
++    },
++    /**
++     * Pauses output of log messages. While paused, log messages are not lost, but
++     * get saved to a buffer and then output upon resume of LogReader.
++     *
++     * @method pause
++     */
++    pause : function() {
++        this.isPaused = true;
++        this._timeout = null;
++        this.logReaderEnabled = false;
++        if (this._btnPause) {
++            this._btnPause.value = "Resume";
++        }
++    },
++
++    /**
++     * Resumes output of log messages, including outputting any log messages that
++     * have been saved to buffer while paused.
++     *
++     * @method resume
++     */
++    resume : function() {
++        this.isPaused = false;
++        this.logReaderEnabled = true;
++        this._printBuffer();
++        if (this._btnPause) {
++            this._btnPause.value = "Pause";
++        }
++    },
++
++    /**
++     * Adds the UI to the DOM, attaches event listeners, and bootstraps initial
++     * UI state.
++     *
++     * @method render
++     */
++    render : function () {
++        if (this.rendered) {
++            return;
++        }
++
++        this._initContainerEl();
++        
++        this._initHeaderEl();
++        this._initConsoleEl();
++        this._initFooterEl();
++
++        this._initCategories();
++        this._initSources();
++
++        this._initDragDrop();
++
++        // Subscribe to Logger custom events
++        Logger.newLogEvent.subscribe(this._onNewLog, this);
++        Logger.logResetEvent.subscribe(this._onReset, this);
++
++        Logger.categoryCreateEvent.subscribe(this._onCategoryCreate, this);
++        Logger.sourceCreateEvent.subscribe(this._onSourceCreate, this);
++
++        this.rendered = true;
++
++        this._filterLogs();
++    },
++
++    /**
++     * Removes the UI from the DOM entirely and detaches all event listeners.
++     * Implementers should note that Logger will still accumulate messages.
++     *
++     * @method destroy
++     */
++    destroy : function () {
++        Event.purgeElement(this._elContainer,true);
++        this._elContainer.innerHTML = '';
++        this._elContainer.parentNode.removeChild(this._elContainer);
++
++        this.rendered = false;
++    },
++
++    /**
++     * Hides UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method hide
++     */
++    hide : function() {
++        this._elContainer.style.display = "none";
++    },
++
++    /**
++     * Shows UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method show
++     */
++    show : function() {
++        this._elContainer.style.display = "block";
++    },
++
++    /**
++     * Collapses UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method collapse
++     */
++    collapse : function() {
++        this._elConsole.style.display = "none";
++        if(this._elFt) {
++            this._elFt.style.display = "none";
++        }
++        this._btnCollapse.value = "Expand";
++        this.isCollapsed = true;
++    },
++
++    /**
++     * Expands UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method expand
++     */
++    expand : function() {
++        this._elConsole.style.display = "block";
++        if(this._elFt) {
++            this._elFt.style.display = "block";
++        }
++        this._btnCollapse.value = "Collapse";
++        this.isCollapsed = false;
++    },
++
++    /**
++     * Returns related checkbox element for given filter (i.e., category or source).
++     *
++     * @method getCheckbox
++     * @param {String} Category or source name.
++     * @return {Array} Array of all filter checkboxes.
++     */
++    getCheckbox : function(filter) {
++        return this._filterCheckboxes[filter];
++    },
++
++    /**
++     * Returns array of enabled categories.
++     *
++     * @method getCategories
++     * @return {String[]} Array of enabled categories.
++     */
++    getCategories : function() {
++        return this._categoryFilters;
++    },
++
++    /**
++     * Shows log messages associated with given category.
++     *
++     * @method showCategory
++     * @param {String} Category name.
++     */
++    showCategory : function(sCategory) {
++        var filtersArray = this._categoryFilters;
++        // Don't do anything if category is already enabled
++        // Use Array.indexOf if available...
++        if(filtersArray.indexOf) {
++             if(filtersArray.indexOf(sCategory) >  -1) {
++                return;
++            }
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var i=0; i<filtersArray.length; i++) {
++               if(filtersArray[i] === sCategory){
++                    return;
++                }
++            }
++        }
++
++        this._categoryFilters.push(sCategory);
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sCategory);
++        if(elCheckbox) {
++            elCheckbox.checked = true;
++        }
++    },
++
++    /**
++     * Hides log messages associated with given category.
++     *
++     * @method hideCategory
++     * @param {String} Category name.
++     */
++    hideCategory : function(sCategory) {
++        var filtersArray = this._categoryFilters;
++        for(var i=0; i<filtersArray.length; i++) {
++            if(sCategory == filtersArray[i]) {
++                filtersArray.splice(i, 1);
++                break;
++            }
++        }
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sCategory);
++        if(elCheckbox) {
++            elCheckbox.checked = false;
++        }
++    },
++
++    /**
++     * Returns array of enabled sources.
++     *
++     * @method getSources
++     * @return {Array} Array of enabled sources.
++     */
++    getSources : function() {
++        return this._sourceFilters;
++    },
++
++    /**
++     * Shows log messages associated with given source.
++     *
++     * @method showSource
++     * @param {String} Source name.
++     */
++    showSource : function(sSource) {
++        var filtersArray = this._sourceFilters;
++        // Don't do anything if category is already enabled
++        // Use Array.indexOf if available...
++        if(filtersArray.indexOf) {
++             if(filtersArray.indexOf(sSource) >  -1) {
++                return;
++            }
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var i=0; i<filtersArray.length; i++) {
++               if(sSource == filtersArray[i]){
++                    return;
++                }
++            }
++        }
++        filtersArray.push(sSource);
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sSource);
++        if(elCheckbox) {
++            elCheckbox.checked = true;
++        }
++    },
++
++    /**
++     * Hides log messages associated with given source.
++     *
++     * @method hideSource
++     * @param {String} Source name.
++     */
++    hideSource : function(sSource) {
++        var filtersArray = this._sourceFilters;
++        for(var i=0; i<filtersArray.length; i++) {
++            if(sSource == filtersArray[i]) {
++                filtersArray.splice(i, 1);
++                break;
++            }
++        }
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sSource);
++        if(elCheckbox) {
++            elCheckbox.checked = false;
++        }
++    },
++
++    /**
++     * Does not delete any log messages, but clears all printed log messages from
++     * the console. Log messages will be printed out again if user re-filters. The
++     * static method YAHOO.widget.Logger.reset() should be called in order to
++     * actually delete log messages.
++     *
++     * @method clearConsole
++     */
++    clearConsole : function() {
++        // Clear the buffer of any pending messages
++        this._timeout = null;
++        this._buffer = [];
++        this._consoleMsgCount = 0;
++
++        var elConsole = this._elConsole;
++        elConsole.innerHTML = '';
++    },
++
++    /**
++     * Updates title to given string.
++     *
++     * @method setTitle
++     * @param sTitle {String} New title.
++     */
++    setTitle : function(sTitle) {
++        this._title.innerHTML = this.html2Text(sTitle);
++    },
++
++    /**
++     * Gets timestamp of the last log.
++     *
++     * @method getLastTime
++     * @return {Date} Timestamp of the last log.
++     */
++    getLastTime : function() {
++        return this._lastTime;
++    },
++
++    formatMsg : function (entry) {
++        var entryFormat = this.entryFormat || (this.verboseOutput ?
++                          LogReader.VERBOSE_TEMPLATE : LogReader.BASIC_TEMPLATE),
++            info        = {
++                category : entry.category,
++
++                // Label for color-coded display
++                label : entry.category.substring(0,4).toUpperCase(),
++
++                sourceAndDetail : entry.sourceDetail ?
++                                  entry.source + " " + entry.sourceDetail :
++                                  entry.source,
++
++                // Escape HTML entities in the log message itself for output
++                // to console
++                message : this.html2Text(entry.msg || entry.message || '')
++            };
++
++        // Add time info
++        if (entry.time && entry.time.getTime) {
++            info.localTime = entry.time.toLocaleTimeString ?
++                             entry.time.toLocaleTimeString() :
++                             entry.time.toString();
++
++            // Calculate the elapsed time to be from the last item that
++            // passed through the filter, not the absolute previous item
++            // in the stack
++            info.elapsedTime = entry.time.getTime() - this.getLastTime();
++
++            info.totalTime = entry.time.getTime() - Logger.getStartTime();
++        }
++
++        var msg = LogReader.ENTRY_TEMPLATE.cloneNode(true);
++        if (this.verboseOutput) {
++            msg.className += ' yui-log-verbose';
++        }
++
++        // Bug 2061169: Workaround for YAHOO.lang.substitute()
++        msg.innerHTML = entryFormat.replace(/\{(\w+)\}/g,
++            function (x, placeholder) {
++                return (placeholder in info) ? info[placeholder] : '';
++            });
++
++        return msg;
++    },
++
++    /**
++     * Converts input chars "<", ">", and "&" to HTML entities.
++     *
++     * @method html2Text
++     * @param sHtml {String} String to convert.
++     * @private
++     */
++    html2Text : function(sHtml) {
++        if(sHtml) {
++            sHtml += "";
++            return sHtml.replace(/&/g, "&#38;").
++                         replace(/</g, "&#60;").
++                         replace(/>/g, "&#62;");
++        }
++        return "";
++    },
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Name of LogReader instance.
++     *
++     * @property _sName
++     * @type String
++     * @private
++     */
++    _sName : null,
++
++    //TODO: remove
++    /**
++     * A class member shared by all LogReaders if a container needs to be
++     * created during instantiation. Will be null if a container element never needs to
++     * be created on the fly, such as when the implementer passes in their own element.
++     *
++     * @property _elDefaultContainer
++     * @type HTMLElement
++     * @private
++     */
++    //YAHOO.widget.LogReader._elDefaultContainer = null;
++
++    /**
++     * Buffer of log message objects for batch output.
++     *
++     * @property _buffer
++     * @type Object[]
++     * @private
++     */
++    _buffer : null,
++
++    /**
++     * Number of log messages output to console.
++     *
++     * @property _consoleMsgCount
++     * @type Number
++     * @default 0
++     * @private
++     */
++    _consoleMsgCount : 0,
++
++    /**
++     * Date of last output log message.
++     *
++     * @property _lastTime
++     * @type Date
++     * @private
++     */
++    _lastTime : null,
++
++    /**
++     * Batched output timeout ID.
++     *
++     * @property _timeout
++     * @type Number
++     * @private
++     */
++    _timeout : null,
++
++    /**
++     * Hash of filters and their related checkbox elements.
++     *
++     * @property _filterCheckboxes
++     * @type Object
++     * @private
++     */
++    _filterCheckboxes : null,
++
++    /**
++     * Array of filters for log message categories.
++     *
++     * @property _categoryFilters
++     * @type String[]
++     * @private
++     */
++    _categoryFilters : null,
++
++    /**
++     * Array of filters for log message sources.
++     *
++     * @property _sourceFilters
++     * @type String[]
++     * @private
++     */
++    _sourceFilters : null,
++
++    /**
++     * LogReader container element.
++     *
++     * @property _elContainer
++     * @type HTMLElement
++     * @private
++     */
++    _elContainer : null,
++
++    /**
++     * LogReader header element.
++     *
++     * @property _elHd
++     * @type HTMLElement
++     * @private
++     */
++    _elHd : null,
++
++    /**
++     * LogReader collapse element.
++     *
++     * @property _elCollapse
++     * @type HTMLElement
++     * @private
++     */
++    _elCollapse : null,
++
++    /**
++     * LogReader collapse button element.
++     *
++     * @property _btnCollapse
++     * @type HTMLElement
++     * @private
++     */
++    _btnCollapse : null,
++
++    /**
++     * LogReader title header element.
++     *
++     * @property _title
++     * @type HTMLElement
++     * @private
++     */
++    _title : null,
++
++    /**
++     * LogReader console element.
++     *
++     * @property _elConsole
++     * @type HTMLElement
++     * @private
++     */
++    _elConsole : null,
++
++    /**
++     * LogReader footer element.
++     *
++     * @property _elFt
++     * @type HTMLElement
++     * @private
++     */
++    _elFt : null,
++
++    /**
++     * LogReader buttons container element.
++     *
++     * @property _elBtns
++     * @type HTMLElement
++     * @private
++     */
++    _elBtns : null,
++
++    /**
++     * Container element for LogReader category filter checkboxes.
++     *
++     * @property _elCategoryFilters
++     * @type HTMLElement
++     * @private
++     */
++    _elCategoryFilters : null,
++
++    /**
++     * Container element for LogReader source filter checkboxes.
++     *
++     * @property _elSourceFilters
++     * @type HTMLElement
++     * @private
++     */
++    _elSourceFilters : null,
++
++    /**
++     * LogReader pause button element.
++     *
++     * @property _btnPause
++     * @type HTMLElement
++     * @private
++     */
++    _btnPause : null,
++
++    /**
++     * Clear button element.
++     *
++     * @property _btnClear
++     * @type HTMLElement
++     * @private
++     */
++    _btnClear : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Initializes the instance's message buffer, start time, etc
++     *
++     * @method _init
++     * @param container {String|HTMLElement} (optional) the render target
++     * @param config {Object} (optional) instance configuration
++     * @protected
++     */
++    _init : function (container, config) {
++        // Internal vars
++        this._buffer = []; // output buffer
++        this._filterCheckboxes = {}; // pointers to checkboxes
++        this._lastTime = Logger.getStartTime(); // timestamp of last log message to console
++
++        // Parse config vars here
++        if (config && (config.constructor == Object)) {
++            for(var param in config) {
++                if (config.hasOwnProperty(param)) {
++                    this[param] = config[param];
++                }
++            }
++        }
++
++        this._elContainer = Dom.get(container);
++
++        YAHOO.log("LogReader initialized", null, this.toString());
++    },
++
++    /**
++     * Initializes the primary container element.
++     *
++     * @method _initContainerEl
++     * @private
++     */
++    _initContainerEl : function() {
++
++        // Default the container if unset or not a div
++        if(!this._elContainer || !/div$/i.test(this._elContainer.tagName)) {
++            this._elContainer = d.body.insertBefore(make("div"),d.body.firstChild);
++            // Only position absolutely if an in-DOM element is not supplied
++            Dom.addClass(this._elContainer,"yui-log-container");
++        }
++
++        Dom.addClass(this._elContainer,"yui-log");
++
++        // If implementer has provided container values, trust and set those
++        var style = this._elContainer.style,
++            styleProps = ['width','right','top','fontSize'],
++            prop,i;
++
++        for (i = styleProps.length - 1; i >= 0; --i) {
++            prop = styleProps[i];
++            if (this[prop]){ 
++                style[prop] = this[prop];
++            }
++        }
++
++        if(this.left) {
++            style.left  = this.left;
++            style.right = "auto";
++        }
++        if(this.bottom) {
++            style.bottom = this.bottom;
++            style.top    = "auto";
++        }
++
++        // Opera needs a little prodding to reflow sometimes
++        if (YAHOO.env.ua.opera) {
++            d.body.style += '';
++        }
++
++    },
++
++    /**
++     * Initializes the header element.
++     *
++     * @method _initHeaderEl
++     * @private
++     */
++    _initHeaderEl : function() {
++        // Destroy header if present
++        if(this._elHd) {
++            // Unhook DOM events
++            Event.purgeElement(this._elHd, true);
++
++            // Remove DOM elements
++            this._elHd.innerHTML = "";
++        }
++        
++        // Create header
++        // TODO: refactor this into an innerHTML
++        this._elHd = make("div",{
++            id: 'yui-log-hd' + this._sName,
++            className: "yui-log-hd"
++        });
++
++        this._elCollapse = make("div",{ className: 'yui-log-btns' });
++
++        this._btnCollapse = make("input",{
++            type: 'button',
++            className: 'yui-log-button',
++            value: 'Collapse'
++        });
++        Event.on(this._btnCollapse,'click',this._onClickCollapseBtn,this);
++
++
++        this._title = make("h4",{ innerHTML : "Logger Console" });
++
++        this._elCollapse.appendChild(this._btnCollapse);
++        this._elHd.appendChild(this._elCollapse);
++        this._elHd.appendChild(this._title);
++        this._elContainer.appendChild(this._elHd);
++    },
++
++    /**
++     * Initializes the console element.
++     *
++     * @method _initConsoleEl
++     * @private
++     */
++    _initConsoleEl : function() {
++        // Destroy console
++        if(this._elConsole) {
++            // Unhook DOM events
++            Event.purgeElement(this._elConsole, true);
++
++            // Remove DOM elements
++            this._elConsole.innerHTML = "";
++        }
++
++        // Ceate console
++        this._elConsole = make("div", { className: "yui-log-bd" });
++
++        // If implementer has provided console, trust and set those
++        if(this.height) {
++            this._elConsole.style.height = this.height;
++        }
++
++        this._elContainer.appendChild(this._elConsole);
++    },
++
++    /**
++     * Initializes the footer element.
++     *
++     * @method _initFooterEl
++     * @private
++     */
++    _initFooterEl : function() {
++        // Don't create footer elements if footer is disabled
++        if(this.footerEnabled) {
++            // Destroy console
++            if(this._elFt) {
++                // Unhook DOM events
++                Event.purgeElement(this._elFt, true);
++
++                // Remove DOM elements
++                this._elFt.innerHTML = "";
++            }
++
++            // TODO: use innerHTML
++            this._elFt = make("div",{ className: "yui-log-ft" });
++            this._elBtns = make("div", { className: "yui-log-btns" });
++            this._btnPause = make("input", {
++                type: "button",
++                className: "yui-log-button",
++                value: "Pause"
++            });
++
++            Event.on(this._btnPause,'click',this._onClickPauseBtn,this);
++
++            this._btnClear = make("input", {
++                type: "button",
++                className: "yui-log-button",
++                value: "Clear"
++            });
++
++            Event.on(this._btnClear,'click',this._onClickClearBtn,this);
++
++            this._elCategoryFilters = make("div", { className: "yui-log-categoryfilters" });
++            this._elSourceFilters = make("div", { className: "yui-log-sourcefilters" });
++
++            this._elBtns.appendChild(this._btnPause);
++            this._elBtns.appendChild(this._btnClear);
++            this._elFt.appendChild(this._elBtns);
++            this._elFt.appendChild(this._elCategoryFilters);
++            this._elFt.appendChild(this._elSourceFilters);
++            this._elContainer.appendChild(this._elFt);
++        }
++    },
++
++    /**
++     * Initializes Drag and Drop on the header element.
++     *
++     * @method _initDragDrop
++     * @private
++     */
++    _initDragDrop : function() {
++        // If Drag and Drop utility is available...
++        // ...and draggable is true...
++        // ...then make the header draggable
++        if(u.DD && this.draggable && this._elHd) {
++            var ylog_dd = new u.DD(this._elContainer);
++            ylog_dd.setHandleElId(this._elHd.id);
++            //TODO: use class name
++            this._elHd.style.cursor = "move";
++        }
++    },
++
++    /**
++     * Initializes category filters.
++     *
++     * @method _initCategories
++     * @private
++     */
++    _initCategories : function() {
++        // Initialize category filters
++        this._categoryFilters = [];
++        var aInitialCategories = Logger.categories;
++
++        for(var j=0; j < aInitialCategories.length; j++) {
++            var sCategory = aInitialCategories[j];
++
++            // Add category to the internal array of filters
++            this._categoryFilters.push(sCategory);
++
++            // Add checkbox element if UI is enabled
++            if(this._elCategoryFilters) {
++                this._createCategoryCheckbox(sCategory);
++            }
++        }
++    },
++
++    /**
++     * Initializes source filters.
++     *
++     * @method _initSources
++     * @private
++     */
++    _initSources : function() {
++        // Initialize source filters
++        this._sourceFilters = [];
++        var aInitialSources = Logger.sources;
++
++        for(var j=0; j < aInitialSources.length; j++) {
++            var sSource = aInitialSources[j];
++
++            // Add source to the internal array of filters
++            this._sourceFilters.push(sSource);
++
++            // Add checkbox element if UI is enabled
++            if(this._elSourceFilters) {
++                this._createSourceCheckbox(sSource);
++            }
++        }
++    },
++
++    /**
++     * Creates the UI for a category filter in the LogReader footer element.
++     *
++     * @method _createCategoryCheckbox
++     * @param sCategory {String} Category name.
++     * @private
++     */
++    _createCategoryCheckbox : function(sCategory) {
++        if(this._elFt) {
++            var filter = make("span",{ className: "yui-log-filtergrp" }),
++                check  = make("input", {
++                    id: "yui-log-filter-" + sCategory + this._sName,
++                    className: "yui-log-filter-" + sCategory,
++                    type: "checkbox",
++                    category: sCategory
++                }),
++                label  = make("label", {
++                    htmlFor: check.id,
++                    className: sCategory,
++                    innerHTML: sCategory
++                });
++            
++
++            // Subscribe to the click event
++            Event.on(check,'click',this._onCheckCategory,this);
++
++            this._filterCheckboxes[sCategory] = check;
++
++            // Append el at the end so IE 5.5 can set "type" attribute
++            // and THEN set checked property
++            filter.appendChild(check);
++            filter.appendChild(label);
++            this._elCategoryFilters.appendChild(filter);
++            check.checked = true;
++        }
++    },
++
++    /**
++     * Creates a checkbox in the LogReader footer element to filter by source.
++     *
++     * @method _createSourceCheckbox
++     * @param sSource {String} Source name.
++     * @private
++     */
++    _createSourceCheckbox : function(sSource) {
++        if(this._elFt) {
++            var filter = make("span",{ className: "yui-log-filtergrp" }),
++                check  = make("input", {
++                    id: "yui-log-filter-" + sSource + this._sName,
++                    className: "yui-log-filter-" + sSource,
++                    type: "checkbox",
++                    source: sSource
++                }),
++                label  = make("label", {
++                    htmlFor: check.id,
++                    className: sSource,
++                    innerHTML: sSource
++                });
++            
++
++            // Subscribe to the click event
++            Event.on(check,'click',this._onCheckSource,this);
++
++            this._filterCheckboxes[sSource] = check;
++
++            // Append el at the end so IE 5.5 can set "type" attribute
++            // and THEN set checked property
++            filter.appendChild(check);
++            filter.appendChild(label);
++            this._elSourceFilters.appendChild(filter);
++            check.checked = true;
++        }
++    },
++
++    /**
++     * Reprints all log messages in the stack through filters.
++     *
++     * @method _filterLogs
++     * @private
++     */
++    _filterLogs : function() {
++        // Reprint stack with new filters
++        if (this._elConsole !== null) {
++            this.clearConsole();
++            this._printToConsole(Logger.getStack());
++        }
++    },
++
++    /**
++     * Sends buffer of log messages to output and clears buffer.
++     *
++     * @method _printBuffer
++     * @private
++     */
++    _printBuffer : function() {
++        this._timeout = null;
++
++        if(this._elConsole !== null) {
++            var thresholdMax = this.thresholdMax;
++            thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500;
++            if(this._consoleMsgCount < thresholdMax) {
++                var entries = [];
++                for (var i=0; i<this._buffer.length; i++) {
++                    entries[i] = this._buffer[i];
++                }
++                this._buffer = [];
++                this._printToConsole(entries);
++            }
++            else {
++                this._filterLogs();
++            }
++            
++            if(!this.newestOnTop) {
++                this._elConsole.scrollTop = this._elConsole.scrollHeight;
++            }
++        }
++    },
++
++    /**
++     * Cycles through an array of log messages, and outputs each one to the console
++     * if its category has not been filtered out.
++     *
++     * @method _printToConsole
++     * @param aEntries {Object[]} Array of LogMsg objects to output to console.
++     * @private
++     */
++    _printToConsole : function(aEntries) {
++        // Manage the number of messages displayed in the console
++        var entriesLen         = aEntries.length,
++            df                 = d.createDocumentFragment(),
++            msgHTML            = [],
++            thresholdMin       = this.thresholdMin,
++            sourceFiltersLen   = this._sourceFilters.length,
++            categoryFiltersLen = this._categoryFilters.length,
++            entriesStartIndex,
++            i, j, msg, before;
++
++        if(isNaN(thresholdMin) || (thresholdMin > this.thresholdMax)) {
++            thresholdMin = 0;
++        }
++        entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0;
++        
++        // Iterate through all log entries 
++        for(i=entriesStartIndex; i<entriesLen; i++) {
++            // Print only the ones that filter through
++            var okToPrint = false,
++                okToFilterCats = false,
++                entry = aEntries[i],
++                source = entry.source,
++                category = entry.category;
++
++            for(j=0; j<sourceFiltersLen; j++) {
++                if(source == this._sourceFilters[j]) {
++                    okToFilterCats = true;
++                    break;
++                }
++            }
++            if(okToFilterCats) {
++                for(j=0; j<categoryFiltersLen; j++) {
++                    if(category == this._categoryFilters[j]) {
++                        okToPrint = true;
++                        break;
++                    }
++                }
++            }
++            if(okToPrint) {
++                // Start from 0ms elapsed time
++                if (this._consoleMsgCount === 0) {
++                    this._lastTime = entry.time.getTime();
++                }
++
++                msg = this.formatMsg(entry);
++                if (typeof msg === 'string') {
++                    msgHTML[msgHTML.length] = msg;
++                } else {
++                    df.insertBefore(msg, this.newestOnTop ?
++                        df.firstChild || null : null);
++                }
++                this._consoleMsgCount++;
++                this._lastTime = entry.time.getTime();
++            }
++        }
++
++        if (msgHTML.length) {
++            msgHTML.splice(0,0,this._elConsole.innerHTML);
++            this._elConsole.innerHTML = this.newestOnTop ?
++                                            msgHTML.reverse().join('') :
++                                            msgHTML.join('');
++        } else if (df.firstChild) {
++            this._elConsole.insertBefore(df, this.newestOnTop ?
++                        this._elConsole.firstChild || null : null);
++        }
++    },
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private event handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Handles Logger's categoryCreateEvent.
++     *
++     * @method _onCategoryCreate
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onCategoryCreate : function(sType, aArgs, oSelf) {
++        var category = aArgs[0];
++        
++        // Add category to the internal array of filters
++        oSelf._categoryFilters.push(category);
++
++        if(oSelf._elFt) {
++            oSelf._createCategoryCheckbox(category);
++        }
++    },
++
++    /**
++     * Handles Logger's sourceCreateEvent.
++     *
++     * @method _onSourceCreate
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onSourceCreate : function(sType, aArgs, oSelf) {
++        var source = aArgs[0];
++        
++        // Add source to the internal array of filters
++        oSelf._sourceFilters.push(source);
++
++        if(oSelf._elFt) {
++            oSelf._createSourceCheckbox(source);
++        }
++    },
++
++    /**
++     * Handles check events on the category filter checkboxes.
++     *
++     * @method _onCheckCategory
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onCheckCategory : function(v, oSelf) {
++        var category = this.category;
++        if(!this.checked) {
++            oSelf.hideCategory(category);
++        }
++        else {
++            oSelf.showCategory(category);
++        }
++    },
++
++    /**
++     * Handles check events on the category filter checkboxes.
++     *
++     * @method _onCheckSource
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onCheckSource : function(v, oSelf) {
++        var source = this.source;
++        if(!this.checked) {
++            oSelf.hideSource(source);
++        }
++        else {
++            oSelf.showSource(source);
++        }
++    },
++
++    /**
++     * Handles click events on the collapse button.
++     *
++     * @method _onClickCollapseBtn
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance
++     * @private
++     */
++    _onClickCollapseBtn : function(v, oSelf) {
++        if(!oSelf.isCollapsed) {
++            oSelf.collapse();
++        }
++        else {
++            oSelf.expand();
++        }
++    },
++
++    /**
++     * Handles click events on the pause button.
++     *
++     * @method _onClickPauseBtn
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onClickPauseBtn : function(v, oSelf) {
++        if(!oSelf.isPaused) {
++            oSelf.pause();
++        }
++        else {
++            oSelf.resume();
++        }
++    },
++
++    /**
++     * Handles click events on the clear button.
++     *
++     * @method _onClickClearBtn
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onClickClearBtn : function(v, oSelf) {
++        oSelf.clearConsole();
++    },
++
++    /**
++     * Handles Logger's newLogEvent.
++     *
++     * @method _onNewLog
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onNewLog : function(sType, aArgs, oSelf) {
++        var logEntry = aArgs[0];
++        oSelf._buffer.push(logEntry);
++
++        if (oSelf.logReaderEnabled === true && oSelf._timeout === null) {
++            oSelf._timeout = setTimeout(function(){oSelf._printBuffer();}, oSelf.outputBuffer);
++        }
++    },
++
++    /**
++     * Handles Logger's resetEvent.
++     *
++     * @method _onReset
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onReset : function(sType, aArgs, oSelf) {
++        oSelf._filterLogs();
++    }
++};
++
++YAHOO.widget.LogReader = LogReader;
++
++})();
++YAHOO.register("logger", YAHOO.widget.Logger, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/logger/logger-min.js b/pylons_app/public/js/yui/logger/logger-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/logger-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.widget.LogMsg=function(A){this.msg=this.time=this.category=this.source=this.sourceDetail=null;if(A&&(A.constructor==Object)){for(var B in A){if(A.hasOwnProperty(B)){this[B]=A[B];}}}};YAHOO.widget.LogWriter=function(A){if(!A){YAHOO.log("Could not instantiate LogWriter due to invalid source.","error","LogWriter");return;}this._source=A;};YAHOO.widget.LogWriter.prototype.toString=function(){return"LogWriter "+this._sSource;};YAHOO.widget.LogWriter.prototype.log=function(A,B){YAHOO.widget.Logger.log(A,B,this._source);};YAHOO.widget.LogWriter.prototype.getSource=function(){return this._source;};YAHOO.widget.LogWriter.prototype.setSource=function(A){if(!A){YAHOO.log("Could not set source due to invalid source.","error",this.toString());return;}else{this._source=A;}};YAHOO.widget.LogWriter.prototype._source=null;if(!YAHOO.widget.Logger){YAHOO.widget.Logger={loggerEnabled:true,_browserConsoleEnabled:false,categories:["info","warn","error","time","window"],sources:["global"],_stack:[],maxStackEntries:2500,_startTime:new Date().getTime(),_lastTime:null,_windowErrorsHandled:false,_origOnWindowError:null};YAHOO.widget.Logger.log=function(B,F,G){if(this.loggerEnabled){if(!F){F="info";}else{F=F.toLocaleLowerCase();if(this._isNewCategory(F)){this._createNewCategory(F);}}var C="global";var A=null;if(G){var D=G.indexOf(" ");if(D>0){C=G.substring(0,D);A=G.substring(D,G.length);}else{C=G;}if(this._isNewSource(C)){this._createNewSource(C);}}var H=new Date();var J=new YAHOO.widget.LogMsg({msg:B,time:H,category:F,source:C,sourceDetail:A});var I=this._stack;var E=this.maxStackEntries;if(E&&!isNaN(E)&&(I.length>=E)){I.shift();}I.push(J);this.newLogEvent.fire(J);if(this._browserConsoleEnabled){this._printToBrowserConsole(J);}return true;}else{return false;}};YAHOO.widget.Logger.reset=function(){this._stack=[];this._startTime=new Date().getTime();this.loggerEnabled=true;this.log("Logger reset");this.logResetEvent.fire();};YAHOO.widget.Logger.getStack=function(){return this._stack;};YAHOO.widget.Logger.getStartTime=function(){return this._startTime;};YAHOO.widget.Logger.disableBrowserConsole=function(){YAHOO.log("Logger output to the function console.log() has been disabled.");this._browserConsoleEnabled=false;};YAHOO.widget.Logger.enableBrowserConsole=function(){this._browserConsoleEnabled=true;YAHOO.log("Logger output to the function console.log() has been enabled.");};YAHOO.widget.Logger.handleWindowErrors=function(){if(!YAHOO.widget.Logger._windowErrorsHandled){if(window.error){YAHOO.widget.Logger._origOnWindowError=window.onerror;}window.onerror=YAHOO.widget.Logger._onWindowError;YAHOO.widget.Logger._windowErrorsHandled=true;YAHOO.log("Logger handling of window.onerror has been enabled.");}else{YAHOO.log("Logger handling of window.onerror had already been enabled.");}};YAHOO.widget.Logger.unhandleWindowErrors=function(){if(YAHOO.widget.Logger._windowErrorsHandled){if(YAHOO.widget.Logger._origOnWindowError){window.onerror=YAHOO.widget.Logger._origOnWindowError;YAHOO.widget.Logger._origOnWindowError=null;}else{window.onerror=null;}YAHOO.widget.Logger._windowErrorsHandled=false;YAHOO.log("Logger handling of window.onerror has been disabled.");}else{YAHOO.log("Logger handling of window.onerror had already been disabled.");}};YAHOO.widget.Logger.categoryCreateEvent=new YAHOO.util.CustomEvent("categoryCreate",this,true);YAHOO.widget.Logger.sourceCreateEvent=new YAHOO.util.CustomEvent("sourceCreate",this,true);YAHOO.widget.Logger.newLogEvent=new YAHOO.util.CustomEvent("newLog",this,true);YAHOO.widget.Logger.logResetEvent=new YAHOO.util.CustomEvent("logReset",this,true);YAHOO.widget.Logger._createNewCategory=function(A){this.categories.push(A);this.categoryCreateEvent.fire(A);};YAHOO.widget.Logger._isNewCategory=function(B){for(var A=0;A<this.categories.length;A++){if(B==this.categories[A]){return false;}}return true;};YAHOO.widget.Logger._createNewSource=function(A){this.sources.push(A);this.sourceCreateEvent.fire(A);};YAHOO.widget.Logger._isNewSource=function(A){if(A){for(var B=0;B<this.sources.length;B++){if(A==this.sources[B]){return false;}}return true;}};YAHOO.widget.Logger._printToBrowserConsole=function(C){if(window.console&&console.log){var E=C.category;var D=C.category.substring(0,4).toUpperCase();var G=C.time;var F;if(G.toLocaleTimeString){F=G.toLocaleTimeString();}else{F=G.toString();}var H=G.getTime();var B=(YAHOO.widget.Logger._lastTime)?(H-YAHOO.widget.Logger._lastTime):0;YAHOO.widget.Logger._lastTime=H;var A=F+" ("+B+"ms): "+C.source+": ";if(YAHOO.env.ua.webkit){A+=C.msg;}console.log(A,C.msg);}};YAHOO.widget.Logger._onWindowError=function(A,C,B){try{YAHOO.widget.Logger.log(A+" ("+C+", line "+B+")","window");if(YAHOO.widget.Logger._origOnWindowError){YAHOO.widget.Logger._origOnWindowError();}}catch(D){return false;}};YAHOO.widget.Logger.log("Logger initialized");}(function(){var C=YAHOO.widget.Logger,D=YAHOO.util,E=D.Dom,A=D.Event,G=document;function B(I,H){I=G.createElement(I);if(H){for(var J in H){if(H.hasOwnProperty(J)){I[J]=H[J];}}}return I;}function F(I,H){this._sName=F._index;F._index++;this._init.apply(this,arguments);if(this.autoRender!==false){this.render();}}YAHOO.lang.augmentObject(F,{_index:0,ENTRY_TEMPLATE:(function(){return B("pre",{className:"yui-log-entry"});})(),VERBOSE_TEMPLATE:"<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",BASIC_TEMPLATE:"<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"});F.prototype={logReaderEnabled:true,width:null,height:null,top:null,left:null,right:null,bottom:null,fontSize:null,footerEnabled:true,verboseOutput:true,entryFormat:null,newestOnTop:true,outputBuffer:100,thresholdMax:500,thresholdMin:100,isCollapsed:false,isPaused:false,draggable:true,toString:function(){return"LogReader instance"+this._sName;},pause:function(){this.isPaused=true;this._timeout=null;this.logReaderEnabled=false;if(this._btnPause){this._btnPause.value="Resume";
++}},resume:function(){this.isPaused=false;this.logReaderEnabled=true;this._printBuffer();if(this._btnPause){this._btnPause.value="Pause";}},render:function(){if(this.rendered){return;}this._initContainerEl();this._initHeaderEl();this._initConsoleEl();this._initFooterEl();this._initCategories();this._initSources();this._initDragDrop();C.newLogEvent.subscribe(this._onNewLog,this);C.logResetEvent.subscribe(this._onReset,this);C.categoryCreateEvent.subscribe(this._onCategoryCreate,this);C.sourceCreateEvent.subscribe(this._onSourceCreate,this);this.rendered=true;this._filterLogs();},destroy:function(){A.purgeElement(this._elContainer,true);this._elContainer.innerHTML="";this._elContainer.parentNode.removeChild(this._elContainer);this.rendered=false;},hide:function(){this._elContainer.style.display="none";},show:function(){this._elContainer.style.display="block";},collapse:function(){this._elConsole.style.display="none";if(this._elFt){this._elFt.style.display="none";}this._btnCollapse.value="Expand";this.isCollapsed=true;},expand:function(){this._elConsole.style.display="block";if(this._elFt){this._elFt.style.display="block";}this._btnCollapse.value="Collapse";this.isCollapsed=false;},getCheckbox:function(H){return this._filterCheckboxes[H];},getCategories:function(){return this._categoryFilters;},showCategory:function(I){var K=this._categoryFilters;if(K.indexOf){if(K.indexOf(I)>-1){return;}}else{for(var H=0;H<K.length;H++){if(K[H]===I){return;}}}this._categoryFilters.push(I);this._filterLogs();var J=this.getCheckbox(I);if(J){J.checked=true;}},hideCategory:function(I){var K=this._categoryFilters;for(var H=0;H<K.length;H++){if(I==K[H]){K.splice(H,1);break;}}this._filterLogs();var J=this.getCheckbox(I);if(J){J.checked=false;}},getSources:function(){return this._sourceFilters;},showSource:function(H){var K=this._sourceFilters;if(K.indexOf){if(K.indexOf(H)>-1){return;}}else{for(var I=0;I<K.length;I++){if(H==K[I]){return;}}}K.push(H);this._filterLogs();var J=this.getCheckbox(H);if(J){J.checked=true;}},hideSource:function(H){var K=this._sourceFilters;for(var I=0;I<K.length;I++){if(H==K[I]){K.splice(I,1);break;}}this._filterLogs();var J=this.getCheckbox(H);if(J){J.checked=false;}},clearConsole:function(){this._timeout=null;this._buffer=[];this._consoleMsgCount=0;var H=this._elConsole;H.innerHTML="";},setTitle:function(H){this._title.innerHTML=this.html2Text(H);},getLastTime:function(){return this._lastTime;},formatMsg:function(I){var H=this.entryFormat||(this.verboseOutput?F.VERBOSE_TEMPLATE:F.BASIC_TEMPLATE),J={category:I.category,label:I.category.substring(0,4).toUpperCase(),sourceAndDetail:I.sourceDetail?I.source+" "+I.sourceDetail:I.source,message:this.html2Text(I.msg||I.message||"")};if(I.time&&I.time.getTime){J.localTime=I.time.toLocaleTimeString?I.time.toLocaleTimeString():I.time.toString();J.elapsedTime=I.time.getTime()-this.getLastTime();J.totalTime=I.time.getTime()-C.getStartTime();}var K=F.ENTRY_TEMPLATE.cloneNode(true);if(this.verboseOutput){K.className+=" yui-log-verbose";}K.innerHTML=H.replace(/\{(\w+)\}/g,function(L,M){return(M in J)?J[M]:"";});return K;},html2Text:function(H){if(H){H+="";return H.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;");}return"";},_sName:null,_buffer:null,_consoleMsgCount:0,_lastTime:null,_timeout:null,_filterCheckboxes:null,_categoryFilters:null,_sourceFilters:null,_elContainer:null,_elHd:null,_elCollapse:null,_btnCollapse:null,_title:null,_elConsole:null,_elFt:null,_elBtns:null,_elCategoryFilters:null,_elSourceFilters:null,_btnPause:null,_btnClear:null,_init:function(H,I){this._buffer=[];this._filterCheckboxes={};this._lastTime=C.getStartTime();if(I&&(I.constructor==Object)){for(var J in I){if(I.hasOwnProperty(J)){this[J]=I[J];}}}this._elContainer=E.get(H);YAHOO.log("LogReader initialized",null,this.toString());},_initContainerEl:function(){if(!this._elContainer||!/div$/i.test(this._elContainer.tagName)){this._elContainer=G.body.insertBefore(B("div"),G.body.firstChild);E.addClass(this._elContainer,"yui-log-container");}E.addClass(this._elContainer,"yui-log");var J=this._elContainer.style,H=["width","right","top","fontSize"],K,I;for(I=H.length-1;I>=0;--I){K=H[I];if(this[K]){J[K]=this[K];}}if(this.left){J.left=this.left;J.right="auto";}if(this.bottom){J.bottom=this.bottom;J.top="auto";}if(YAHOO.env.ua.opera){G.body.style+="";}},_initHeaderEl:function(){if(this._elHd){A.purgeElement(this._elHd,true);this._elHd.innerHTML="";}this._elHd=B("div",{id:"yui-log-hd"+this._sName,className:"yui-log-hd"});this._elCollapse=B("div",{className:"yui-log-btns"});this._btnCollapse=B("input",{type:"button",className:"yui-log-button",value:"Collapse"});A.on(this._btnCollapse,"click",this._onClickCollapseBtn,this);this._title=B("h4",{innerHTML:"Logger Console"});this._elCollapse.appendChild(this._btnCollapse);this._elHd.appendChild(this._elCollapse);this._elHd.appendChild(this._title);this._elContainer.appendChild(this._elHd);},_initConsoleEl:function(){if(this._elConsole){A.purgeElement(this._elConsole,true);this._elConsole.innerHTML="";}this._elConsole=B("div",{className:"yui-log-bd"});if(this.height){this._elConsole.style.height=this.height;}this._elContainer.appendChild(this._elConsole);},_initFooterEl:function(){if(this.footerEnabled){if(this._elFt){A.purgeElement(this._elFt,true);this._elFt.innerHTML="";}this._elFt=B("div",{className:"yui-log-ft"});this._elBtns=B("div",{className:"yui-log-btns"});this._btnPause=B("input",{type:"button",className:"yui-log-button",value:"Pause"});A.on(this._btnPause,"click",this._onClickPauseBtn,this);this._btnClear=B("input",{type:"button",className:"yui-log-button",value:"Clear"});A.on(this._btnClear,"click",this._onClickClearBtn,this);this._elCategoryFilters=B("div",{className:"yui-log-categoryfilters"});this._elSourceFilters=B("div",{className:"yui-log-sourcefilters"});this._elBtns.appendChild(this._btnPause);this._elBtns.appendChild(this._btnClear);this._elFt.appendChild(this._elBtns);this._elFt.appendChild(this._elCategoryFilters);
++this._elFt.appendChild(this._elSourceFilters);this._elContainer.appendChild(this._elFt);}},_initDragDrop:function(){if(D.DD&&this.draggable&&this._elHd){var H=new D.DD(this._elContainer);H.setHandleElId(this._elHd.id);this._elHd.style.cursor="move";}},_initCategories:function(){this._categoryFilters=[];var J=C.categories;for(var H=0;H<J.length;H++){var I=J[H];this._categoryFilters.push(I);if(this._elCategoryFilters){this._createCategoryCheckbox(I);}}},_initSources:function(){this._sourceFilters=[];var J=C.sources;for(var I=0;I<J.length;I++){var H=J[I];this._sourceFilters.push(H);if(this._elSourceFilters){this._createSourceCheckbox(H);}}},_createCategoryCheckbox:function(K){if(this._elFt){var J=B("span",{className:"yui-log-filtergrp"}),H=B("input",{id:"yui-log-filter-"+K+this._sName,className:"yui-log-filter-"+K,type:"checkbox",category:K}),I=B("label",{htmlFor:H.id,className:K,innerHTML:K});A.on(H,"click",this._onCheckCategory,this);this._filterCheckboxes[K]=H;J.appendChild(H);J.appendChild(I);this._elCategoryFilters.appendChild(J);H.checked=true;}},_createSourceCheckbox:function(H){if(this._elFt){var K=B("span",{className:"yui-log-filtergrp"}),I=B("input",{id:"yui-log-filter-"+H+this._sName,className:"yui-log-filter-"+H,type:"checkbox",source:H}),J=B("label",{htmlFor:I.id,className:H,innerHTML:H});A.on(I,"click",this._onCheckSource,this);this._filterCheckboxes[H]=I;K.appendChild(I);K.appendChild(J);this._elSourceFilters.appendChild(K);I.checked=true;}},_filterLogs:function(){if(this._elConsole!==null){this.clearConsole();this._printToConsole(C.getStack());}},_printBuffer:function(){this._timeout=null;if(this._elConsole!==null){var I=this.thresholdMax;I=(I&&!isNaN(I))?I:500;if(this._consoleMsgCount<I){var H=[];for(var J=0;J<this._buffer.length;J++){H[J]=this._buffer[J];}this._buffer=[];this._printToConsole(H);}else{this._filterLogs();}if(!this.newestOnTop){this._elConsole.scrollTop=this._elConsole.scrollHeight;}}},_printToConsole:function(P){var I=P.length,T=G.createDocumentFragment(),W=[],X=this.thresholdMin,J=this._sourceFilters.length,U=this._categoryFilters.length,R,O,N,M,S;if(isNaN(X)||(X>this.thresholdMax)){X=0;}R=(I>X)?(I-X):0;for(O=R;O<I;O++){var L=false,Q=false,V=P[O],H=V.source,K=V.category;for(N=0;N<J;N++){if(H==this._sourceFilters[N]){Q=true;break;}}if(Q){for(N=0;N<U;N++){if(K==this._categoryFilters[N]){L=true;break;}}}if(L){if(this._consoleMsgCount===0){this._lastTime=V.time.getTime();}M=this.formatMsg(V);if(typeof M==="string"){W[W.length]=M;}else{T.insertBefore(M,this.newestOnTop?T.firstChild||null:null);}this._consoleMsgCount++;this._lastTime=V.time.getTime();}}if(W.length){W.splice(0,0,this._elConsole.innerHTML);this._elConsole.innerHTML=this.newestOnTop?W.reverse().join(""):W.join("");}else{if(T.firstChild){this._elConsole.insertBefore(T,this.newestOnTop?this._elConsole.firstChild||null:null);}}},_onCategoryCreate:function(K,J,H){var I=J[0];H._categoryFilters.push(I);if(H._elFt){H._createCategoryCheckbox(I);}},_onSourceCreate:function(K,J,H){var I=J[0];H._sourceFilters.push(I);if(H._elFt){H._createSourceCheckbox(I);}},_onCheckCategory:function(H,I){var J=this.category;if(!this.checked){I.hideCategory(J);}else{I.showCategory(J);}},_onCheckSource:function(H,I){var J=this.source;if(!this.checked){I.hideSource(J);}else{I.showSource(J);}},_onClickCollapseBtn:function(H,I){if(!I.isCollapsed){I.collapse();}else{I.expand();}},_onClickPauseBtn:function(H,I){if(!I.isPaused){I.pause();}else{I.resume();}},_onClickClearBtn:function(H,I){I.clearConsole();},_onNewLog:function(K,J,H){var I=J[0];H._buffer.push(I);if(H.logReaderEnabled===true&&H._timeout===null){H._timeout=setTimeout(function(){H._printBuffer();},H.outputBuffer);}},_onReset:function(J,I,H){H._filterLogs();}};YAHOO.widget.LogReader=F;})();YAHOO.register("logger",YAHOO.widget.Logger,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/logger/logger.js b/pylons_app/public/js/yui/logger/logger.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/logger/logger.js
+@@ -0,0 +1,2104 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The LogMsg class defines a single log message.
++ *
++ * @class LogMsg
++ * @constructor
++ * @param oConfigs {Object} Object literal of configuration params.
++ */
++YAHOO.widget.LogMsg = function(oConfigs) {
++    // Parse configs
++    /**
++     * Log message.
++     *
++     * @property msg
++     * @type String
++     */
++    this.msg =
++    /**
++     * Log timestamp.
++     *
++     * @property time
++     * @type Date
++     */
++    this.time =
++
++    /**
++     * Log category.
++     *
++     * @property category
++     * @type String
++     */
++    this.category =
++
++    /**
++     * Log source. The first word passed in as the source argument.
++     *
++     * @property source
++     * @type String
++     */
++    this.source =
++
++    /**
++     * Log source detail. The remainder of the string passed in as the source argument, not
++     * including the first word (if any).
++     *
++     * @property sourceDetail
++     * @type String
++     */
++    this.sourceDetail = null;
++
++    if (oConfigs && (oConfigs.constructor == Object)) {
++        for(var param in oConfigs) {
++            if (oConfigs.hasOwnProperty(param)) {
++                this[param] = oConfigs[param];
++            }
++        }
++    }
++};
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++/**
++ * The LogWriter class provides a mechanism to log messages through
++ * YAHOO.widget.Logger from a named source.
++ *
++ * @class LogWriter
++ * @constructor
++ * @param sSource {String} Source of LogWriter instance.
++ */
++YAHOO.widget.LogWriter = function(sSource) {
++    if(!sSource) {
++        YAHOO.log("Could not instantiate LogWriter due to invalid source.",
++            "error", "LogWriter");
++        return;
++    }
++    this._source = sSource;
++ };
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public methods
++//
++/////////////////////////////////////////////////////////////////////////////
++
++ /**
++ * Public accessor to the unique name of the LogWriter instance.
++ *
++ * @method toString
++ * @return {String} Unique name of the LogWriter instance.
++ */
++YAHOO.widget.LogWriter.prototype.toString = function() {
++    return "LogWriter " + this._sSource;
++};
++
++/**
++ * Logs a message attached to the source of the LogWriter.
++ *
++ * @method log
++ * @param sMsg {String} The log message.
++ * @param sCategory {String} Category name.
++ */
++YAHOO.widget.LogWriter.prototype.log = function(sMsg, sCategory) {
++    YAHOO.widget.Logger.log(sMsg, sCategory, this._source);
++};
++
++/**
++ * Public accessor to get the source name.
++ *
++ * @method getSource
++ * @return {String} The LogWriter source.
++ */
++YAHOO.widget.LogWriter.prototype.getSource = function() {
++    return this._source;
++};
++
++/**
++ * Public accessor to set the source name.
++ *
++ * @method setSource
++ * @param sSource {String} Source of LogWriter instance.
++ */
++YAHOO.widget.LogWriter.prototype.setSource = function(sSource) {
++    if(!sSource) {
++        YAHOO.log("Could not set source due to invalid source.", "error", this.toString());
++        return;
++    }
++    else {
++        this._source = sSource;
++    }
++};
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++/**
++ * Source of the LogWriter instance.
++ *
++ * @property _source
++ * @type String
++ * @private
++ */
++YAHOO.widget.LogWriter.prototype._source = null;
++
++
++
++ /**
++ * The Logger widget provides a simple way to read or write log messages in
++ * JavaScript code. Integration with the YUI Library's debug builds allow
++ * implementers to access under-the-hood events, errors, and debugging messages.
++ * Output may be read through a LogReader console and/or output to a browser
++ * console.
++ *
++ * @module logger
++ * @requires yahoo, event, dom
++ * @optional dragdrop
++ * @namespace YAHOO.widget
++ * @title Logger Widget
++ */
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++
++// Define once
++if(!YAHOO.widget.Logger) {
++    /**
++     * The singleton Logger class provides core log management functionality. Saves
++     * logs written through the global YAHOO.log function or written by a LogWriter
++     * instance. Provides access to logs for reading by a LogReader instance or
++     * native browser console such as the Firebug extension to Firefox or Safari's
++     * JavaScript console through integration with the console.log() method.
++     *
++     * @class Logger
++     * @static
++     */
++    YAHOO.widget.Logger = {
++        // Initialize properties
++        loggerEnabled: true,
++        _browserConsoleEnabled: false,
++        categories: ["info","warn","error","time","window"],
++        sources: ["global"],
++        _stack: [], // holds all log msgs
++        maxStackEntries: 2500,
++        _startTime: new Date().getTime(), // static start timestamp
++        _lastTime: null, // timestamp of last logged message
++        _windowErrorsHandled: false,
++        _origOnWindowError: null
++    };
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public properties
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * True if Logger is enabled, false otherwise.
++     *
++     * @property loggerEnabled
++     * @type Boolean
++     * @static
++     * @default true
++     */
++
++    /**
++     * Array of categories.
++     *
++     * @property categories
++     * @type String[]
++     * @static
++     * @default ["info","warn","error","time","window"]
++     */
++
++    /**
++     * Array of sources.
++     *
++     * @property sources
++     * @type String[]
++     * @static
++     * @default ["global"]
++     */
++
++    /**
++     * Upper limit on size of internal stack.
++     *
++     * @property maxStackEntries
++     * @type Number
++     * @static
++     * @default 2500
++     */
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private properties
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * Internal property to track whether output to browser console is enabled.
++     *
++     * @property _browserConsoleEnabled
++     * @type Boolean
++     * @static
++     * @default false
++     * @private
++     */
++
++    /**
++     * Array to hold all log messages.
++     *
++     * @property _stack
++     * @type Array
++     * @static
++     * @private
++     */
++    /**
++     * Static timestamp of Logger initialization.
++     *
++     * @property _startTime
++     * @type Date
++     * @static
++     * @private
++     */
++    /**
++     * Timestamp of last logged message.
++     *
++     * @property _lastTime
++     * @type Date
++     * @static
++     * @private
++     */
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++    /**
++     * Saves a log message to the stack and fires newLogEvent. If the log message is
++     * assigned to an unknown category, creates a new category. If the log message is
++     * from an unknown source, creates a new source.  If browser console is enabled,
++     * outputs the log message to browser console.
++     *
++     * @method log
++     * @param sMsg {String} The log message.
++     * @param sCategory {String} Category of log message, or null.
++     * @param sSource {String} Source of LogWriter, or null if global.
++     */
++    YAHOO.widget.Logger.log = function(sMsg, sCategory, sSource) {
++        if(this.loggerEnabled) {
++            if(!sCategory) {
++                sCategory = "info"; // default category
++            }
++            else {
++                sCategory = sCategory.toLocaleLowerCase();
++                if(this._isNewCategory(sCategory)) {
++                    this._createNewCategory(sCategory);
++                }
++            }
++            var sClass = "global"; // default source
++            var sDetail = null;
++            if(sSource) {
++                var spaceIndex = sSource.indexOf(" ");
++                if(spaceIndex > 0) {
++                    // Substring until first space
++                    sClass = sSource.substring(0,spaceIndex);
++                    // The rest of the source
++                    sDetail = sSource.substring(spaceIndex,sSource.length);
++                }
++                else {
++                    sClass = sSource;
++                }
++                if(this._isNewSource(sClass)) {
++                    this._createNewSource(sClass);
++                }
++            }
++
++            var timestamp = new Date();
++            var logEntry = new YAHOO.widget.LogMsg({
++                msg: sMsg,
++                time: timestamp,
++                category: sCategory,
++                source: sClass,
++                sourceDetail: sDetail
++            });
++
++            var stack = this._stack;
++            var maxStackEntries = this.maxStackEntries;
++            if(maxStackEntries && !isNaN(maxStackEntries) &&
++                (stack.length >= maxStackEntries)) {
++                stack.shift();
++            }
++            stack.push(logEntry);
++            this.newLogEvent.fire(logEntry);
++
++            if(this._browserConsoleEnabled) {
++                this._printToBrowserConsole(logEntry);
++            }
++            return true;
++        }
++        else {
++            return false;
++        }
++    };
++
++    /**
++     * Resets internal stack and startTime, enables Logger, and fires logResetEvent.
++     *
++     * @method reset
++     */
++    YAHOO.widget.Logger.reset = function() {
++        this._stack = [];
++        this._startTime = new Date().getTime();
++        this.loggerEnabled = true;
++        this.log("Logger reset");
++        this.logResetEvent.fire();
++    };
++
++    /**
++     * Public accessor to internal stack of log message objects.
++     *
++     * @method getStack
++     * @return {Object[]} Array of log message objects.
++     */
++    YAHOO.widget.Logger.getStack = function() {
++        return this._stack;
++    };
++
++    /**
++     * Public accessor to internal start time.
++     *
++     * @method getStartTime
++     * @return {Date} Internal date of when Logger singleton was initialized.
++     */
++    YAHOO.widget.Logger.getStartTime = function() {
++        return this._startTime;
++    };
++
++    /**
++     * Disables output to the browser's global console.log() function, which is used
++     * by the Firebug extension to Firefox as well as Safari.
++     *
++     * @method disableBrowserConsole
++     */
++    YAHOO.widget.Logger.disableBrowserConsole = function() {
++        YAHOO.log("Logger output to the function console.log() has been disabled.");
++        this._browserConsoleEnabled = false;
++    };
++
++    /**
++     * Enables output to the browser's global console.log() function, which is used
++     * by the Firebug extension to Firefox as well as Safari.
++     *
++     * @method enableBrowserConsole
++     */
++    YAHOO.widget.Logger.enableBrowserConsole = function() {
++        this._browserConsoleEnabled = true;
++        YAHOO.log("Logger output to the function console.log() has been enabled.");
++    };
++
++    /**
++     * Surpresses native JavaScript errors and outputs to console. By default,
++     * Logger does not handle JavaScript window error events.
++     * NB: Not all browsers support the window.onerror event.
++     *
++     * @method handleWindowErrors
++     */
++    YAHOO.widget.Logger.handleWindowErrors = function() {
++        if(!YAHOO.widget.Logger._windowErrorsHandled) {
++            // Save any previously defined handler to call
++            if(window.error) {
++                YAHOO.widget.Logger._origOnWindowError = window.onerror;
++            }
++            window.onerror = YAHOO.widget.Logger._onWindowError;
++            YAHOO.widget.Logger._windowErrorsHandled = true;
++            YAHOO.log("Logger handling of window.onerror has been enabled.");
++        }
++        else {
++            YAHOO.log("Logger handling of window.onerror had already been enabled.");
++        }
++    };
++
++    /**
++     * Unsurpresses native JavaScript errors. By default,
++     * Logger does not handle JavaScript window error events.
++     * NB: Not all browsers support the window.onerror event.
++     *
++     * @method unhandleWindowErrors
++     */
++    YAHOO.widget.Logger.unhandleWindowErrors = function() {
++        if(YAHOO.widget.Logger._windowErrorsHandled) {
++            // Revert to any previously defined handler to call
++            if(YAHOO.widget.Logger._origOnWindowError) {
++                window.onerror = YAHOO.widget.Logger._origOnWindowError;
++                YAHOO.widget.Logger._origOnWindowError = null;
++            }
++            else {
++                window.onerror = null;
++            }
++            YAHOO.widget.Logger._windowErrorsHandled = false;
++            YAHOO.log("Logger handling of window.onerror has been disabled.");
++        }
++        else {
++            YAHOO.log("Logger handling of window.onerror had already been disabled.");
++        }
++    };
++    
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public events
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++     /**
++     * Fired when a new category has been created.
++     *
++     * @event categoryCreateEvent
++     * @param sCategory {String} Category name.
++     */
++    YAHOO.widget.Logger.categoryCreateEvent =
++        new YAHOO.util.CustomEvent("categoryCreate", this, true);
++
++     /**
++     * Fired when a new source has been named.
++     *
++     * @event sourceCreateEvent
++     * @param sSource {String} Source name.
++     */
++    YAHOO.widget.Logger.sourceCreateEvent =
++        new YAHOO.util.CustomEvent("sourceCreate", this, true);
++
++     /**
++     * Fired when a new log message has been created.
++     *
++     * @event newLogEvent
++     * @param sMsg {String} Log message.
++     */
++    YAHOO.widget.Logger.newLogEvent = new YAHOO.util.CustomEvent("newLog", this, true);
++
++    /**
++     * Fired when the Logger has been reset has been created.
++     *
++     * @event logResetEvent
++     */
++    YAHOO.widget.Logger.logResetEvent = new YAHOO.util.CustomEvent("logReset", this, true);
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Creates a new category of log messages and fires categoryCreateEvent.
++     *
++     * @method _createNewCategory
++     * @param sCategory {String} Category name.
++     * @private
++     */
++    YAHOO.widget.Logger._createNewCategory = function(sCategory) {
++        this.categories.push(sCategory);
++        this.categoryCreateEvent.fire(sCategory);
++    };
++
++    /**
++     * Checks to see if a category has already been created.
++     *
++     * @method _isNewCategory
++     * @param sCategory {String} Category name.
++     * @return {Boolean} Returns true if category is unknown, else returns false.
++     * @private
++     */
++    YAHOO.widget.Logger._isNewCategory = function(sCategory) {
++        for(var i=0; i < this.categories.length; i++) {
++            if(sCategory == this.categories[i]) {
++                return false;
++            }
++        }
++        return true;
++    };
++
++    /**
++     * Creates a new source of log messages and fires sourceCreateEvent.
++     *
++     * @method _createNewSource
++     * @param sSource {String} Source name.
++     * @private
++     */
++    YAHOO.widget.Logger._createNewSource = function(sSource) {
++        this.sources.push(sSource);
++        this.sourceCreateEvent.fire(sSource);
++    };
++
++    /**
++     * Checks to see if a source already exists.
++     *
++     * @method _isNewSource
++     * @param sSource {String} Source name.
++     * @return {Boolean} Returns true if source is unknown, else returns false.
++     * @private
++     */
++    YAHOO.widget.Logger._isNewSource = function(sSource) {
++        if(sSource) {
++            for(var i=0; i < this.sources.length; i++) {
++                if(sSource == this.sources[i]) {
++                    return false;
++                }
++            }
++            return true;
++        }
++    };
++
++    /**
++     * Outputs a log message to global console.log() function.
++     *
++     * @method _printToBrowserConsole
++     * @param oEntry {Object} Log entry object.
++     * @private
++     */
++    YAHOO.widget.Logger._printToBrowserConsole = function(oEntry) {
++        if(window.console && console.log) {
++            var category = oEntry.category;
++            var label = oEntry.category.substring(0,4).toUpperCase();
++
++            var time = oEntry.time;
++            var localTime;
++            if (time.toLocaleTimeString) {
++                localTime  = time.toLocaleTimeString();
++            }
++            else {
++                localTime = time.toString();
++            }
++
++            var msecs = time.getTime();
++            var elapsedTime = (YAHOO.widget.Logger._lastTime) ?
++                (msecs - YAHOO.widget.Logger._lastTime) : 0;
++            YAHOO.widget.Logger._lastTime = msecs;
++
++            var output =
++                localTime + " (" +
++                elapsedTime + "ms): " +
++                oEntry.source + ": ";
++
++            // for bug 1987607
++            if (YAHOO.env.ua.webkit) {
++                output += oEntry.msg;
++            }
++
++            console.log(output, oEntry.msg);
++        }
++    };
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private event handlers
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Handles logging of messages due to window error events.
++     *
++     * @method _onWindowError
++     * @param sMsg {String} The error message.
++     * @param sUrl {String} URL of the error.
++     * @param sLine {String} Line number of the error.
++     * @private
++     */
++    YAHOO.widget.Logger._onWindowError = function(sMsg,sUrl,sLine) {
++        // Logger is not in scope of this event handler
++        try {
++            YAHOO.widget.Logger.log(sMsg+' ('+sUrl+', line '+sLine+')', "window");
++            if(YAHOO.widget.Logger._origOnWindowError) {
++                YAHOO.widget.Logger._origOnWindowError();
++            }
++        }
++        catch(e) {
++            return false;
++        }
++    };
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // First log
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    YAHOO.widget.Logger.log("Logger initialized");
++}
++
++/****************************************************************************/
++/****************************************************************************/
++/****************************************************************************/
++(function () {
++var Logger = YAHOO.widget.Logger,
++    u      = YAHOO.util,
++    Dom    = u.Dom,
++    Event  = u.Event,
++    d      = document;
++
++function make(el,props) {
++    el = d.createElement(el);
++    if (props) {
++        for (var p in props) {
++            if (props.hasOwnProperty(p)) {
++                el[p] = props[p];
++            }
++        }
++    }
++    return el;
++}
++
++/**
++ * The LogReader class provides UI to read messages logged to YAHOO.widget.Logger.
++ *
++ * @class LogReader
++ * @constructor
++ * @param elContainer {HTMLElement} (optional) DOM element reference of an existing DIV.
++ * @param elContainer {String} (optional) String ID of an existing DIV.
++ * @param oConfigs {Object} (optional) Object literal of configuration params.
++ */
++function LogReader(elContainer, oConfigs) {
++    this._sName = LogReader._index;
++    LogReader._index++;
++    
++    this._init.apply(this,arguments);
++
++    /**
++     * Render the LogReader immediately upon instantiation.  If set to false,
++     * you must call myLogReader.render() to generate the UI.
++     * 
++     * @property autoRender
++     * @type {Boolean}
++     * @default true
++     */
++    if (this.autoRender !== false) {
++        this.render();
++    }
++}
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Static member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++YAHOO.lang.augmentObject(LogReader, {
++    /**
++     * Internal class member to index multiple LogReader instances.
++     *
++     * @property _memberName
++     * @static
++     * @type Number
++     * @default 0
++     * @private
++     */
++    _index : 0,
++
++    /**
++     * Node template for the log entries
++     * @property ENTRY_TEMPLATE
++     * @static
++     * @type {HTMLElement}
++     * @default <code>pre</code> element with class yui-log-entry
++     */
++    ENTRY_TEMPLATE : (function () {
++        return make('pre',{ className: 'yui-log-entry' });
++    })(),
++
++    /**
++     * Template used for innerHTML of verbose entry output.
++     * @property VERBOSE_TEMPLATE
++     * @static
++     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}:&lt;/p>&lt;p>{sourceAndDetail}&lt;/p>&lt;p>{message}&lt;/p>"
++     */
++    VERBOSE_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}:</p><p>{sourceAndDetail}</p><p>{message}</p>",
++
++    /**
++     * Template used for innerHTML of compact entry output.
++     * @property BASIC_TEMPLATE
++     * @static
++     * @default "&lt;p>&lt;span class='{category}'>{label}&lt;/span>{totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}&lt;/p>"
++     */
++    BASIC_TEMPLATE : "<p><span class='{category}'>{label}</span> {totalTime}ms (+{elapsedTime}) {localTime}: {sourceAndDetail}: {message}</p>"
++});
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Public member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++LogReader.prototype = {
++    /**
++     * Whether or not LogReader is enabled to output log messages.
++     *
++     * @property logReaderEnabled
++     * @type Boolean
++     * @default true
++     */
++    logReaderEnabled : true,
++
++    /**
++     * Public member to access CSS width of the LogReader container.
++     *
++     * @property width
++     * @type String
++     */
++    width : null,
++
++    /**
++     * Public member to access CSS height of the LogReader container.
++     *
++     * @property height
++     * @type String
++     */
++    height : null,
++
++    /**
++     * Public member to access CSS top position of the LogReader container.
++     *
++     * @property top
++     * @type String
++     */
++    top : null,
++
++    /**
++     * Public member to access CSS left position of the LogReader container.
++     *
++     * @property left
++     * @type String
++     */
++    left : null,
++
++    /**
++     * Public member to access CSS right position of the LogReader container.
++     *
++     * @property right
++     * @type String
++     */
++    right : null,
++
++    /**
++     * Public member to access CSS bottom position of the LogReader container.
++     *
++     * @property bottom
++     * @type String
++     */
++    bottom : null,
++
++    /**
++     * Public member to access CSS font size of the LogReader container.
++     *
++     * @property fontSize
++     * @type String
++     */
++    fontSize : null,
++
++    /**
++     * Whether or not the footer UI is enabled for the LogReader.
++     *
++     * @property footerEnabled
++     * @type Boolean
++     * @default true
++     */
++    footerEnabled : true,
++
++    /**
++     * Whether or not output is verbose (more readable). Setting to true will make
++     * output more compact (less readable).
++     *
++     * @property verboseOutput
++     * @type Boolean
++     * @default true
++     */
++    verboseOutput : true,
++
++    /**
++     * Custom output format for log messages.  Defaults to null, which falls
++     * back to verboseOutput param deciding between LogReader.VERBOSE_TEMPLATE
++     * and LogReader.BASIC_TEMPLATE.  Use bracketed place holders to mark where
++     * message info should go.  Available place holder names include:
++     * <ul>
++     *  <li>category</li>
++     *  <li>label</li>
++     *  <li>sourceAndDetail</li>
++     *  <li>message</li>
++     *  <li>localTime</li>
++     *  <li>elapsedTime</li>
++     *  <li>totalTime</li>
++     * </ul>
++     *
++     * @property entryFormat
++     * @type String
++     * @default null
++     */
++    entryFormat : null,
++
++    /**
++     * Whether or not newest message is printed on top.
++     *
++     * @property newestOnTop
++     * @type Boolean
++     */
++    newestOnTop : true,
++
++    /**
++     * Output timeout buffer in milliseconds.
++     *
++     * @property outputBuffer
++     * @type Number
++     * @default 100
++     */
++    outputBuffer : 100,
++
++    /**
++     * Maximum number of messages a LogReader console will display.
++     *
++     * @property thresholdMax
++     * @type Number
++     * @default 500
++     */
++    thresholdMax : 500,
++
++    /**
++     * When a LogReader console reaches its thresholdMax, it will clear out messages
++     * and print out the latest thresholdMin number of messages.
++     *
++     * @property thresholdMin
++     * @type Number
++     * @default 100
++     */
++    thresholdMin : 100,
++
++    /**
++     * True when LogReader is in a collapsed state, false otherwise.
++     *
++     * @property isCollapsed
++     * @type Boolean
++     * @default false
++     */
++    isCollapsed : false,
++
++    /**
++     * True when LogReader is in a paused state, false otherwise.
++     *
++     * @property isPaused
++     * @type Boolean
++     * @default false
++     */
++    isPaused : false,
++
++    /**
++     * Enables draggable LogReader if DragDrop Utility is present.
++     *
++     * @property draggable
++     * @type Boolean
++     * @default true
++     */
++    draggable : true,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Public methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++     /**
++     * Public accessor to the unique name of the LogReader instance.
++     *
++     * @method toString
++     * @return {String} Unique name of the LogReader instance.
++     */
++    toString : function() {
++        return "LogReader instance" + this._sName;
++    },
++    /**
++     * Pauses output of log messages. While paused, log messages are not lost, but
++     * get saved to a buffer and then output upon resume of LogReader.
++     *
++     * @method pause
++     */
++    pause : function() {
++        this.isPaused = true;
++        this._timeout = null;
++        this.logReaderEnabled = false;
++        if (this._btnPause) {
++            this._btnPause.value = "Resume";
++        }
++    },
++
++    /**
++     * Resumes output of log messages, including outputting any log messages that
++     * have been saved to buffer while paused.
++     *
++     * @method resume
++     */
++    resume : function() {
++        this.isPaused = false;
++        this.logReaderEnabled = true;
++        this._printBuffer();
++        if (this._btnPause) {
++            this._btnPause.value = "Pause";
++        }
++    },
++
++    /**
++     * Adds the UI to the DOM, attaches event listeners, and bootstraps initial
++     * UI state.
++     *
++     * @method render
++     */
++    render : function () {
++        if (this.rendered) {
++            return;
++        }
++
++        this._initContainerEl();
++        
++        this._initHeaderEl();
++        this._initConsoleEl();
++        this._initFooterEl();
++
++        this._initCategories();
++        this._initSources();
++
++        this._initDragDrop();
++
++        // Subscribe to Logger custom events
++        Logger.newLogEvent.subscribe(this._onNewLog, this);
++        Logger.logResetEvent.subscribe(this._onReset, this);
++
++        Logger.categoryCreateEvent.subscribe(this._onCategoryCreate, this);
++        Logger.sourceCreateEvent.subscribe(this._onSourceCreate, this);
++
++        this.rendered = true;
++
++        this._filterLogs();
++    },
++
++    /**
++     * Removes the UI from the DOM entirely and detaches all event listeners.
++     * Implementers should note that Logger will still accumulate messages.
++     *
++     * @method destroy
++     */
++    destroy : function () {
++        Event.purgeElement(this._elContainer,true);
++        this._elContainer.innerHTML = '';
++        this._elContainer.parentNode.removeChild(this._elContainer);
++
++        this.rendered = false;
++    },
++
++    /**
++     * Hides UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method hide
++     */
++    hide : function() {
++        this._elContainer.style.display = "none";
++    },
++
++    /**
++     * Shows UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method show
++     */
++    show : function() {
++        this._elContainer.style.display = "block";
++    },
++
++    /**
++     * Collapses UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method collapse
++     */
++    collapse : function() {
++        this._elConsole.style.display = "none";
++        if(this._elFt) {
++            this._elFt.style.display = "none";
++        }
++        this._btnCollapse.value = "Expand";
++        this.isCollapsed = true;
++    },
++
++    /**
++     * Expands UI of LogReader. Logging functionality is not disrupted.
++     *
++     * @method expand
++     */
++    expand : function() {
++        this._elConsole.style.display = "block";
++        if(this._elFt) {
++            this._elFt.style.display = "block";
++        }
++        this._btnCollapse.value = "Collapse";
++        this.isCollapsed = false;
++    },
++
++    /**
++     * Returns related checkbox element for given filter (i.e., category or source).
++     *
++     * @method getCheckbox
++     * @param {String} Category or source name.
++     * @return {Array} Array of all filter checkboxes.
++     */
++    getCheckbox : function(filter) {
++        return this._filterCheckboxes[filter];
++    },
++
++    /**
++     * Returns array of enabled categories.
++     *
++     * @method getCategories
++     * @return {String[]} Array of enabled categories.
++     */
++    getCategories : function() {
++        return this._categoryFilters;
++    },
++
++    /**
++     * Shows log messages associated with given category.
++     *
++     * @method showCategory
++     * @param {String} Category name.
++     */
++    showCategory : function(sCategory) {
++        var filtersArray = this._categoryFilters;
++        // Don't do anything if category is already enabled
++        // Use Array.indexOf if available...
++        if(filtersArray.indexOf) {
++             if(filtersArray.indexOf(sCategory) >  -1) {
++                return;
++            }
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var i=0; i<filtersArray.length; i++) {
++               if(filtersArray[i] === sCategory){
++                    return;
++                }
++            }
++        }
++
++        this._categoryFilters.push(sCategory);
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sCategory);
++        if(elCheckbox) {
++            elCheckbox.checked = true;
++        }
++    },
++
++    /**
++     * Hides log messages associated with given category.
++     *
++     * @method hideCategory
++     * @param {String} Category name.
++     */
++    hideCategory : function(sCategory) {
++        var filtersArray = this._categoryFilters;
++        for(var i=0; i<filtersArray.length; i++) {
++            if(sCategory == filtersArray[i]) {
++                filtersArray.splice(i, 1);
++                break;
++            }
++        }
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sCategory);
++        if(elCheckbox) {
++            elCheckbox.checked = false;
++        }
++    },
++
++    /**
++     * Returns array of enabled sources.
++     *
++     * @method getSources
++     * @return {Array} Array of enabled sources.
++     */
++    getSources : function() {
++        return this._sourceFilters;
++    },
++
++    /**
++     * Shows log messages associated with given source.
++     *
++     * @method showSource
++     * @param {String} Source name.
++     */
++    showSource : function(sSource) {
++        var filtersArray = this._sourceFilters;
++        // Don't do anything if category is already enabled
++        // Use Array.indexOf if available...
++        if(filtersArray.indexOf) {
++             if(filtersArray.indexOf(sSource) >  -1) {
++                return;
++            }
++        }
++        // ...or do it the old-fashioned way
++        else {
++            for(var i=0; i<filtersArray.length; i++) {
++               if(sSource == filtersArray[i]){
++                    return;
++                }
++            }
++        }
++        filtersArray.push(sSource);
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sSource);
++        if(elCheckbox) {
++            elCheckbox.checked = true;
++        }
++    },
++
++    /**
++     * Hides log messages associated with given source.
++     *
++     * @method hideSource
++     * @param {String} Source name.
++     */
++    hideSource : function(sSource) {
++        var filtersArray = this._sourceFilters;
++        for(var i=0; i<filtersArray.length; i++) {
++            if(sSource == filtersArray[i]) {
++                filtersArray.splice(i, 1);
++                break;
++            }
++        }
++        this._filterLogs();
++        var elCheckbox = this.getCheckbox(sSource);
++        if(elCheckbox) {
++            elCheckbox.checked = false;
++        }
++    },
++
++    /**
++     * Does not delete any log messages, but clears all printed log messages from
++     * the console. Log messages will be printed out again if user re-filters. The
++     * static method YAHOO.widget.Logger.reset() should be called in order to
++     * actually delete log messages.
++     *
++     * @method clearConsole
++     */
++    clearConsole : function() {
++        // Clear the buffer of any pending messages
++        this._timeout = null;
++        this._buffer = [];
++        this._consoleMsgCount = 0;
++
++        var elConsole = this._elConsole;
++        elConsole.innerHTML = '';
++    },
++
++    /**
++     * Updates title to given string.
++     *
++     * @method setTitle
++     * @param sTitle {String} New title.
++     */
++    setTitle : function(sTitle) {
++        this._title.innerHTML = this.html2Text(sTitle);
++    },
++
++    /**
++     * Gets timestamp of the last log.
++     *
++     * @method getLastTime
++     * @return {Date} Timestamp of the last log.
++     */
++    getLastTime : function() {
++        return this._lastTime;
++    },
++
++    formatMsg : function (entry) {
++        var entryFormat = this.entryFormat || (this.verboseOutput ?
++                          LogReader.VERBOSE_TEMPLATE : LogReader.BASIC_TEMPLATE),
++            info        = {
++                category : entry.category,
++
++                // Label for color-coded display
++                label : entry.category.substring(0,4).toUpperCase(),
++
++                sourceAndDetail : entry.sourceDetail ?
++                                  entry.source + " " + entry.sourceDetail :
++                                  entry.source,
++
++                // Escape HTML entities in the log message itself for output
++                // to console
++                message : this.html2Text(entry.msg || entry.message || '')
++            };
++
++        // Add time info
++        if (entry.time && entry.time.getTime) {
++            info.localTime = entry.time.toLocaleTimeString ?
++                             entry.time.toLocaleTimeString() :
++                             entry.time.toString();
++
++            // Calculate the elapsed time to be from the last item that
++            // passed through the filter, not the absolute previous item
++            // in the stack
++            info.elapsedTime = entry.time.getTime() - this.getLastTime();
++
++            info.totalTime = entry.time.getTime() - Logger.getStartTime();
++        }
++
++        var msg = LogReader.ENTRY_TEMPLATE.cloneNode(true);
++        if (this.verboseOutput) {
++            msg.className += ' yui-log-verbose';
++        }
++
++        // Bug 2061169: Workaround for YAHOO.lang.substitute()
++        msg.innerHTML = entryFormat.replace(/\{(\w+)\}/g,
++            function (x, placeholder) {
++                return (placeholder in info) ? info[placeholder] : '';
++            });
++
++        return msg;
++    },
++
++    /**
++     * Converts input chars "<", ">", and "&" to HTML entities.
++     *
++     * @method html2Text
++     * @param sHtml {String} String to convert.
++     * @private
++     */
++    html2Text : function(sHtml) {
++        if(sHtml) {
++            sHtml += "";
++            return sHtml.replace(/&/g, "&#38;").
++                         replace(/</g, "&#60;").
++                         replace(/>/g, "&#62;");
++        }
++        return "";
++    },
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private member variables
++//
++/////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Name of LogReader instance.
++     *
++     * @property _sName
++     * @type String
++     * @private
++     */
++    _sName : null,
++
++    //TODO: remove
++    /**
++     * A class member shared by all LogReaders if a container needs to be
++     * created during instantiation. Will be null if a container element never needs to
++     * be created on the fly, such as when the implementer passes in their own element.
++     *
++     * @property _elDefaultContainer
++     * @type HTMLElement
++     * @private
++     */
++    //YAHOO.widget.LogReader._elDefaultContainer = null;
++
++    /**
++     * Buffer of log message objects for batch output.
++     *
++     * @property _buffer
++     * @type Object[]
++     * @private
++     */
++    _buffer : null,
++
++    /**
++     * Number of log messages output to console.
++     *
++     * @property _consoleMsgCount
++     * @type Number
++     * @default 0
++     * @private
++     */
++    _consoleMsgCount : 0,
++
++    /**
++     * Date of last output log message.
++     *
++     * @property _lastTime
++     * @type Date
++     * @private
++     */
++    _lastTime : null,
++
++    /**
++     * Batched output timeout ID.
++     *
++     * @property _timeout
++     * @type Number
++     * @private
++     */
++    _timeout : null,
++
++    /**
++     * Hash of filters and their related checkbox elements.
++     *
++     * @property _filterCheckboxes
++     * @type Object
++     * @private
++     */
++    _filterCheckboxes : null,
++
++    /**
++     * Array of filters for log message categories.
++     *
++     * @property _categoryFilters
++     * @type String[]
++     * @private
++     */
++    _categoryFilters : null,
++
++    /**
++     * Array of filters for log message sources.
++     *
++     * @property _sourceFilters
++     * @type String[]
++     * @private
++     */
++    _sourceFilters : null,
++
++    /**
++     * LogReader container element.
++     *
++     * @property _elContainer
++     * @type HTMLElement
++     * @private
++     */
++    _elContainer : null,
++
++    /**
++     * LogReader header element.
++     *
++     * @property _elHd
++     * @type HTMLElement
++     * @private
++     */
++    _elHd : null,
++
++    /**
++     * LogReader collapse element.
++     *
++     * @property _elCollapse
++     * @type HTMLElement
++     * @private
++     */
++    _elCollapse : null,
++
++    /**
++     * LogReader collapse button element.
++     *
++     * @property _btnCollapse
++     * @type HTMLElement
++     * @private
++     */
++    _btnCollapse : null,
++
++    /**
++     * LogReader title header element.
++     *
++     * @property _title
++     * @type HTMLElement
++     * @private
++     */
++    _title : null,
++
++    /**
++     * LogReader console element.
++     *
++     * @property _elConsole
++     * @type HTMLElement
++     * @private
++     */
++    _elConsole : null,
++
++    /**
++     * LogReader footer element.
++     *
++     * @property _elFt
++     * @type HTMLElement
++     * @private
++     */
++    _elFt : null,
++
++    /**
++     * LogReader buttons container element.
++     *
++     * @property _elBtns
++     * @type HTMLElement
++     * @private
++     */
++    _elBtns : null,
++
++    /**
++     * Container element for LogReader category filter checkboxes.
++     *
++     * @property _elCategoryFilters
++     * @type HTMLElement
++     * @private
++     */
++    _elCategoryFilters : null,
++
++    /**
++     * Container element for LogReader source filter checkboxes.
++     *
++     * @property _elSourceFilters
++     * @type HTMLElement
++     * @private
++     */
++    _elSourceFilters : null,
++
++    /**
++     * LogReader pause button element.
++     *
++     * @property _btnPause
++     * @type HTMLElement
++     * @private
++     */
++    _btnPause : null,
++
++    /**
++     * Clear button element.
++     *
++     * @property _btnClear
++     * @type HTMLElement
++     * @private
++     */
++    _btnClear : null,
++
++    /////////////////////////////////////////////////////////////////////////////
++    //
++    // Private methods
++    //
++    /////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Initializes the instance's message buffer, start time, etc
++     *
++     * @method _init
++     * @param container {String|HTMLElement} (optional) the render target
++     * @param config {Object} (optional) instance configuration
++     * @protected
++     */
++    _init : function (container, config) {
++        // Internal vars
++        this._buffer = []; // output buffer
++        this._filterCheckboxes = {}; // pointers to checkboxes
++        this._lastTime = Logger.getStartTime(); // timestamp of last log message to console
++
++        // Parse config vars here
++        if (config && (config.constructor == Object)) {
++            for(var param in config) {
++                if (config.hasOwnProperty(param)) {
++                    this[param] = config[param];
++                }
++            }
++        }
++
++        this._elContainer = Dom.get(container);
++
++        YAHOO.log("LogReader initialized", null, this.toString());
++    },
++
++    /**
++     * Initializes the primary container element.
++     *
++     * @method _initContainerEl
++     * @private
++     */
++    _initContainerEl : function() {
++
++        // Default the container if unset or not a div
++        if(!this._elContainer || !/div$/i.test(this._elContainer.tagName)) {
++            this._elContainer = d.body.insertBefore(make("div"),d.body.firstChild);
++            // Only position absolutely if an in-DOM element is not supplied
++            Dom.addClass(this._elContainer,"yui-log-container");
++        }
++
++        Dom.addClass(this._elContainer,"yui-log");
++
++        // If implementer has provided container values, trust and set those
++        var style = this._elContainer.style,
++            styleProps = ['width','right','top','fontSize'],
++            prop,i;
++
++        for (i = styleProps.length - 1; i >= 0; --i) {
++            prop = styleProps[i];
++            if (this[prop]){ 
++                style[prop] = this[prop];
++            }
++        }
++
++        if(this.left) {
++            style.left  = this.left;
++            style.right = "auto";
++        }
++        if(this.bottom) {
++            style.bottom = this.bottom;
++            style.top    = "auto";
++        }
++
++        // Opera needs a little prodding to reflow sometimes
++        if (YAHOO.env.ua.opera) {
++            d.body.style += '';
++        }
++
++    },
++
++    /**
++     * Initializes the header element.
++     *
++     * @method _initHeaderEl
++     * @private
++     */
++    _initHeaderEl : function() {
++        // Destroy header if present
++        if(this._elHd) {
++            // Unhook DOM events
++            Event.purgeElement(this._elHd, true);
++
++            // Remove DOM elements
++            this._elHd.innerHTML = "";
++        }
++        
++        // Create header
++        // TODO: refactor this into an innerHTML
++        this._elHd = make("div",{
++            id: 'yui-log-hd' + this._sName,
++            className: "yui-log-hd"
++        });
++
++        this._elCollapse = make("div",{ className: 'yui-log-btns' });
++
++        this._btnCollapse = make("input",{
++            type: 'button',
++            className: 'yui-log-button',
++            value: 'Collapse'
++        });
++        Event.on(this._btnCollapse,'click',this._onClickCollapseBtn,this);
++
++
++        this._title = make("h4",{ innerHTML : "Logger Console" });
++
++        this._elCollapse.appendChild(this._btnCollapse);
++        this._elHd.appendChild(this._elCollapse);
++        this._elHd.appendChild(this._title);
++        this._elContainer.appendChild(this._elHd);
++    },
++
++    /**
++     * Initializes the console element.
++     *
++     * @method _initConsoleEl
++     * @private
++     */
++    _initConsoleEl : function() {
++        // Destroy console
++        if(this._elConsole) {
++            // Unhook DOM events
++            Event.purgeElement(this._elConsole, true);
++
++            // Remove DOM elements
++            this._elConsole.innerHTML = "";
++        }
++
++        // Ceate console
++        this._elConsole = make("div", { className: "yui-log-bd" });
++
++        // If implementer has provided console, trust and set those
++        if(this.height) {
++            this._elConsole.style.height = this.height;
++        }
++
++        this._elContainer.appendChild(this._elConsole);
++    },
++
++    /**
++     * Initializes the footer element.
++     *
++     * @method _initFooterEl
++     * @private
++     */
++    _initFooterEl : function() {
++        // Don't create footer elements if footer is disabled
++        if(this.footerEnabled) {
++            // Destroy console
++            if(this._elFt) {
++                // Unhook DOM events
++                Event.purgeElement(this._elFt, true);
++
++                // Remove DOM elements
++                this._elFt.innerHTML = "";
++            }
++
++            // TODO: use innerHTML
++            this._elFt = make("div",{ className: "yui-log-ft" });
++            this._elBtns = make("div", { className: "yui-log-btns" });
++            this._btnPause = make("input", {
++                type: "button",
++                className: "yui-log-button",
++                value: "Pause"
++            });
++
++            Event.on(this._btnPause,'click',this._onClickPauseBtn,this);
++
++            this._btnClear = make("input", {
++                type: "button",
++                className: "yui-log-button",
++                value: "Clear"
++            });
++
++            Event.on(this._btnClear,'click',this._onClickClearBtn,this);
++
++            this._elCategoryFilters = make("div", { className: "yui-log-categoryfilters" });
++            this._elSourceFilters = make("div", { className: "yui-log-sourcefilters" });
++
++            this._elBtns.appendChild(this._btnPause);
++            this._elBtns.appendChild(this._btnClear);
++            this._elFt.appendChild(this._elBtns);
++            this._elFt.appendChild(this._elCategoryFilters);
++            this._elFt.appendChild(this._elSourceFilters);
++            this._elContainer.appendChild(this._elFt);
++        }
++    },
++
++    /**
++     * Initializes Drag and Drop on the header element.
++     *
++     * @method _initDragDrop
++     * @private
++     */
++    _initDragDrop : function() {
++        // If Drag and Drop utility is available...
++        // ...and draggable is true...
++        // ...then make the header draggable
++        if(u.DD && this.draggable && this._elHd) {
++            var ylog_dd = new u.DD(this._elContainer);
++            ylog_dd.setHandleElId(this._elHd.id);
++            //TODO: use class name
++            this._elHd.style.cursor = "move";
++        }
++    },
++
++    /**
++     * Initializes category filters.
++     *
++     * @method _initCategories
++     * @private
++     */
++    _initCategories : function() {
++        // Initialize category filters
++        this._categoryFilters = [];
++        var aInitialCategories = Logger.categories;
++
++        for(var j=0; j < aInitialCategories.length; j++) {
++            var sCategory = aInitialCategories[j];
++
++            // Add category to the internal array of filters
++            this._categoryFilters.push(sCategory);
++
++            // Add checkbox element if UI is enabled
++            if(this._elCategoryFilters) {
++                this._createCategoryCheckbox(sCategory);
++            }
++        }
++    },
++
++    /**
++     * Initializes source filters.
++     *
++     * @method _initSources
++     * @private
++     */
++    _initSources : function() {
++        // Initialize source filters
++        this._sourceFilters = [];
++        var aInitialSources = Logger.sources;
++
++        for(var j=0; j < aInitialSources.length; j++) {
++            var sSource = aInitialSources[j];
++
++            // Add source to the internal array of filters
++            this._sourceFilters.push(sSource);
++
++            // Add checkbox element if UI is enabled
++            if(this._elSourceFilters) {
++                this._createSourceCheckbox(sSource);
++            }
++        }
++    },
++
++    /**
++     * Creates the UI for a category filter in the LogReader footer element.
++     *
++     * @method _createCategoryCheckbox
++     * @param sCategory {String} Category name.
++     * @private
++     */
++    _createCategoryCheckbox : function(sCategory) {
++        if(this._elFt) {
++            var filter = make("span",{ className: "yui-log-filtergrp" }),
++                check  = make("input", {
++                    id: "yui-log-filter-" + sCategory + this._sName,
++                    className: "yui-log-filter-" + sCategory,
++                    type: "checkbox",
++                    category: sCategory
++                }),
++                label  = make("label", {
++                    htmlFor: check.id,
++                    className: sCategory,
++                    innerHTML: sCategory
++                });
++            
++
++            // Subscribe to the click event
++            Event.on(check,'click',this._onCheckCategory,this);
++
++            this._filterCheckboxes[sCategory] = check;
++
++            // Append el at the end so IE 5.5 can set "type" attribute
++            // and THEN set checked property
++            filter.appendChild(check);
++            filter.appendChild(label);
++            this._elCategoryFilters.appendChild(filter);
++            check.checked = true;
++        }
++    },
++
++    /**
++     * Creates a checkbox in the LogReader footer element to filter by source.
++     *
++     * @method _createSourceCheckbox
++     * @param sSource {String} Source name.
++     * @private
++     */
++    _createSourceCheckbox : function(sSource) {
++        if(this._elFt) {
++            var filter = make("span",{ className: "yui-log-filtergrp" }),
++                check  = make("input", {
++                    id: "yui-log-filter-" + sSource + this._sName,
++                    className: "yui-log-filter-" + sSource,
++                    type: "checkbox",
++                    source: sSource
++                }),
++                label  = make("label", {
++                    htmlFor: check.id,
++                    className: sSource,
++                    innerHTML: sSource
++                });
++            
++
++            // Subscribe to the click event
++            Event.on(check,'click',this._onCheckSource,this);
++
++            this._filterCheckboxes[sSource] = check;
++
++            // Append el at the end so IE 5.5 can set "type" attribute
++            // and THEN set checked property
++            filter.appendChild(check);
++            filter.appendChild(label);
++            this._elSourceFilters.appendChild(filter);
++            check.checked = true;
++        }
++    },
++
++    /**
++     * Reprints all log messages in the stack through filters.
++     *
++     * @method _filterLogs
++     * @private
++     */
++    _filterLogs : function() {
++        // Reprint stack with new filters
++        if (this._elConsole !== null) {
++            this.clearConsole();
++            this._printToConsole(Logger.getStack());
++        }
++    },
++
++    /**
++     * Sends buffer of log messages to output and clears buffer.
++     *
++     * @method _printBuffer
++     * @private
++     */
++    _printBuffer : function() {
++        this._timeout = null;
++
++        if(this._elConsole !== null) {
++            var thresholdMax = this.thresholdMax;
++            thresholdMax = (thresholdMax && !isNaN(thresholdMax)) ? thresholdMax : 500;
++            if(this._consoleMsgCount < thresholdMax) {
++                var entries = [];
++                for (var i=0; i<this._buffer.length; i++) {
++                    entries[i] = this._buffer[i];
++                }
++                this._buffer = [];
++                this._printToConsole(entries);
++            }
++            else {
++                this._filterLogs();
++            }
++            
++            if(!this.newestOnTop) {
++                this._elConsole.scrollTop = this._elConsole.scrollHeight;
++            }
++        }
++    },
++
++    /**
++     * Cycles through an array of log messages, and outputs each one to the console
++     * if its category has not been filtered out.
++     *
++     * @method _printToConsole
++     * @param aEntries {Object[]} Array of LogMsg objects to output to console.
++     * @private
++     */
++    _printToConsole : function(aEntries) {
++        // Manage the number of messages displayed in the console
++        var entriesLen         = aEntries.length,
++            df                 = d.createDocumentFragment(),
++            msgHTML            = [],
++            thresholdMin       = this.thresholdMin,
++            sourceFiltersLen   = this._sourceFilters.length,
++            categoryFiltersLen = this._categoryFilters.length,
++            entriesStartIndex,
++            i, j, msg, before;
++
++        if(isNaN(thresholdMin) || (thresholdMin > this.thresholdMax)) {
++            thresholdMin = 0;
++        }
++        entriesStartIndex = (entriesLen > thresholdMin) ? (entriesLen - thresholdMin) : 0;
++        
++        // Iterate through all log entries 
++        for(i=entriesStartIndex; i<entriesLen; i++) {
++            // Print only the ones that filter through
++            var okToPrint = false,
++                okToFilterCats = false,
++                entry = aEntries[i],
++                source = entry.source,
++                category = entry.category;
++
++            for(j=0; j<sourceFiltersLen; j++) {
++                if(source == this._sourceFilters[j]) {
++                    okToFilterCats = true;
++                    break;
++                }
++            }
++            if(okToFilterCats) {
++                for(j=0; j<categoryFiltersLen; j++) {
++                    if(category == this._categoryFilters[j]) {
++                        okToPrint = true;
++                        break;
++                    }
++                }
++            }
++            if(okToPrint) {
++                // Start from 0ms elapsed time
++                if (this._consoleMsgCount === 0) {
++                    this._lastTime = entry.time.getTime();
++                }
++
++                msg = this.formatMsg(entry);
++                if (typeof msg === 'string') {
++                    msgHTML[msgHTML.length] = msg;
++                } else {
++                    df.insertBefore(msg, this.newestOnTop ?
++                        df.firstChild || null : null);
++                }
++                this._consoleMsgCount++;
++                this._lastTime = entry.time.getTime();
++            }
++        }
++
++        if (msgHTML.length) {
++            msgHTML.splice(0,0,this._elConsole.innerHTML);
++            this._elConsole.innerHTML = this.newestOnTop ?
++                                            msgHTML.reverse().join('') :
++                                            msgHTML.join('');
++        } else if (df.firstChild) {
++            this._elConsole.insertBefore(df, this.newestOnTop ?
++                        this._elConsole.firstChild || null : null);
++        }
++    },
++
++/////////////////////////////////////////////////////////////////////////////
++//
++// Private event handlers
++//
++/////////////////////////////////////////////////////////////////////////////
++
++    /**
++     * Handles Logger's categoryCreateEvent.
++     *
++     * @method _onCategoryCreate
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onCategoryCreate : function(sType, aArgs, oSelf) {
++        var category = aArgs[0];
++        
++        // Add category to the internal array of filters
++        oSelf._categoryFilters.push(category);
++
++        if(oSelf._elFt) {
++            oSelf._createCategoryCheckbox(category);
++        }
++    },
++
++    /**
++     * Handles Logger's sourceCreateEvent.
++     *
++     * @method _onSourceCreate
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onSourceCreate : function(sType, aArgs, oSelf) {
++        var source = aArgs[0];
++        
++        // Add source to the internal array of filters
++        oSelf._sourceFilters.push(source);
++
++        if(oSelf._elFt) {
++            oSelf._createSourceCheckbox(source);
++        }
++    },
++
++    /**
++     * Handles check events on the category filter checkboxes.
++     *
++     * @method _onCheckCategory
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onCheckCategory : function(v, oSelf) {
++        var category = this.category;
++        if(!this.checked) {
++            oSelf.hideCategory(category);
++        }
++        else {
++            oSelf.showCategory(category);
++        }
++    },
++
++    /**
++     * Handles check events on the category filter checkboxes.
++     *
++     * @method _onCheckSource
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onCheckSource : function(v, oSelf) {
++        var source = this.source;
++        if(!this.checked) {
++            oSelf.hideSource(source);
++        }
++        else {
++            oSelf.showSource(source);
++        }
++    },
++
++    /**
++     * Handles click events on the collapse button.
++     *
++     * @method _onClickCollapseBtn
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance
++     * @private
++     */
++    _onClickCollapseBtn : function(v, oSelf) {
++        if(!oSelf.isCollapsed) {
++            oSelf.collapse();
++        }
++        else {
++            oSelf.expand();
++        }
++    },
++
++    /**
++     * Handles click events on the pause button.
++     *
++     * @method _onClickPauseBtn
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onClickPauseBtn : function(v, oSelf) {
++        if(!oSelf.isPaused) {
++            oSelf.pause();
++        }
++        else {
++            oSelf.resume();
++        }
++    },
++
++    /**
++     * Handles click events on the clear button.
++     *
++     * @method _onClickClearBtn
++     * @param v {HTMLEvent} The click event.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onClickClearBtn : function(v, oSelf) {
++        oSelf.clearConsole();
++    },
++
++    /**
++     * Handles Logger's newLogEvent.
++     *
++     * @method _onNewLog
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onNewLog : function(sType, aArgs, oSelf) {
++        var logEntry = aArgs[0];
++        oSelf._buffer.push(logEntry);
++
++        if (oSelf.logReaderEnabled === true && oSelf._timeout === null) {
++            oSelf._timeout = setTimeout(function(){oSelf._printBuffer();}, oSelf.outputBuffer);
++        }
++    },
++
++    /**
++     * Handles Logger's resetEvent.
++     *
++     * @method _onReset
++     * @param sType {String} The event.
++     * @param aArgs {Object[]} Data passed from event firer.
++     * @param oSelf {Object} The LogReader instance.
++     * @private
++     */
++    _onReset : function(sType, aArgs, oSelf) {
++        oSelf._filterLogs();
++    }
++};
++
++YAHOO.widget.LogReader = LogReader;
++
++})();
++YAHOO.register("logger", YAHOO.widget.Logger, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/menu/assets/menu-core.css b/pylons_app/public/js/yui/menu/assets/menu-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/assets/menu-core.css
+@@ -0,0 +1,242 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Menu & MenuBar styles */
++
++.yuimenu {
++
++    top: -999em;
++    left: -999em;
++
++}
++
++.yuimenubar {
++
++    position: static;
++
++}
++
++.yuimenu .yuimenu,
++.yuimenubar .yuimenu {
++
++    position: absolute;
++
++}
++
++.yuimenubar li, 
++.yuimenu li {
++
++    list-style-type: none;    
++
++}
++
++.yuimenubar ul, 
++.yuimenu ul,
++.yuimenubar li, 
++.yuimenu li,
++.yuimenu h6,
++.yuimenubar h6 { 
++
++    margin: 0;
++    padding: 0;
++
++}
++
++.yuimenuitemlabel,
++.yuimenubaritemlabel {
++
++    text-align: left;
++    white-space: nowrap;
++
++}
++
++
++/* 
++    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
++   + YUILibrary 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;
++
++}
++
++.yui-overlay.yui-force-redraw {
++   margin-bottom: 1px;
++}
+diff --git a/pylons_app/public/js/yui/menu/assets/menu.css b/pylons_app/public/js/yui/menu/assets/menu.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/assets/menu.css
+@@ -0,0 +1,503 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Menu & MenuBar styles */
++
++.yuimenu {
++
++    top: -999em;
++    left: -999em;
++
++}
++
++.yuimenubar {
++
++    position: static;
++
++}
++
++.yuimenu .yuimenu,
++.yuimenubar .yuimenu {
++
++    position: absolute;
++
++}
++
++.yuimenubar li, 
++.yuimenu li {
++
++    list-style-type: none;    
++
++}
++
++.yuimenubar ul, 
++.yuimenu ul,
++.yuimenubar li, 
++.yuimenu li,
++.yuimenu h6,
++.yuimenubar h6 { 
++
++    margin: 0;
++    padding: 0;
++
++}
++
++.yuimenuitemlabel,
++.yuimenubaritemlabel {
++
++    text-align: left;
++    white-space: nowrap;
++
++}
++
++
++/* 
++    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
++   + YUILibrary 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,
++.yuimenuitemlabel:visited,
++.yuimenubaritemlabel,
++.yuimenubaritemlabel:visited {
++
++    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,
++.yuimenubaritemlabel-selected:visited,
++.yuimenuitemlabel-selected,
++.yuimenuitemlabel-selected:visited {
++
++    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,
++.yuimenubaritemlabel-disabled:visited,
++.yuimenuitemlabel-disabled,
++.yuimenuitemlabel-disabled:visited {
++
++    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);
++
++}
+diff --git a/pylons_app/public/js/yui/menu/assets/menu_down_arrow.png b/pylons_app/public/js/yui/menu/assets/menu_down_arrow.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..86d885db1753737395d3292e7f9de8773d03b607
+GIT binary patch
+literal 3624
+zc%1E)<yRE!7R4U~>5>lNrAs=cVTSG)oS~!{5Rp_$knR^mq#Xp64hb0?LWk}_KynCa
+z0f8$aD0T7gxOcC$&u^VCXRWi>`EZiVOmwNp*~kF^RQh^a7S|;GYf{4NdN^i+xdxf9
+zo^=2K6!d>h0P<h406=c)35A-OdH4kS1bF!Pa_K{%T)zH3?w$|b00^E#St4PUTTH4a
+zi$@T{#K@P1J{F9mTo#a&NQMjn5pFVCgGBD)Sw{1YTiV)0?EOWFglTD!sf^~Ll*!~X
+zBx~Gn(qi5wCJ&x1hrRWhYCG8&xonzN+pIoBHI9;CNh!1SWX$CvDJvkHx4y;nb@wi>
+ziEBiW^Z5c=(neSAfD2v%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L&{5Y>fkNiXH<v@T%uEsyr;|I=xUt-^;+%t=%+KCWOD?vtJFM^Vy`8<Bp9X?u
+zr0yTxJKOCDnh)aGf4f9uy7rXonb4KT@A_lQFJ)($teKftM1;AA=Poj0`0Ia@2&rkT
+z2|#_?(=+qT>z>O+&%zjhP<{X+V*vPlb<HgR9!mnS?FfKUE&$9vFC2Pw03ZZrMlfw_
+zYXtbe{;&U49mxeOT;oQdg^A@ASZ|gzxbB4YwKQSDb1MB()PRe!3v2lMs-Vj(cD+aK
+mH=<PAaEkAK9C1t?$vgod>LX^o_~A7Aca*-iiB>JdG5WuG`A2X7
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menu_down_arrow_disabled.png b/pylons_app/public/js/yui/menu/assets/menu_down_arrow_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..98b39885ab1be09ca7c32bff839ea9c1b69de3e8
+GIT binary patch
+literal 3621
+zc%1E)=QkYc7RFy8dW-17Aw-$zH99kT4Mt`J(G3w%BGE!dZ#hInH-bbjQIe5S61^KO
+z>L}5JgL{;WM42mp$Gy*5&;G6bWv{iLwLk2HyJq?fwA{1+00u(?9m`8n|1mZBWj!1-
+z!(D>L*TCip0Cd;?m<;6PaRNYV?g@k4z3br<;Pb@8$Cuv_2IKej_i^`p<OV>{9L5R-
+zx7uP?CoUdAjpNa8jD0NGsQE3SNodwoVTb??vr)W2;Vhd)`!!u%3ZA}#c=F_A^h-7i
+zar#8s8LBmbqU5M|@reVc%c1YQrdo&_!xx{XH8!gbF%2VBZPfG`267e(X!>#}-?i^i
+zy<I)aYm!<Kv_igsnYzJM;K{il88``7Q@ee$jp_>^3!0##25qLfZPGX5NKD(%Y&$Y^
+zG+A3f>K$WhG%L^wNrsjHEj=<cCQH}~6i@)iK^Ny$a9092ioDpE0BFofb|@LJeIvj|
+zR*(w#ue-(T01s7AHF7Ue7a*kptGjWRGMJG7(uN3k15n!t+VISD^?;flNL$3mhyjXF
+z;MgZ97zCoT0ju5tLhaw%HO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_7;V&ufQnJpjnT
+zT@$!29*+nA*Z=juD((T1qDx!}ur#wGf%Qgdqsva%P)8dcG-on^y9T7`(b6ADqh_g_
+o(Bdm|xU##Jv^kyJq_bK|pz3;s&D|}J|IZvlT{E2;sAJ@R0od+EcmMzZ
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menu_up_arrow.png b/pylons_app/public/js/yui/menu/assets/menu_up_arrow.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..d83a6be8c57d2cbf86392ed62257f8ae2ef0f08d
+GIT binary patch
+literal 936
+zc%17D@N?(olHy`uVBq!ia0vp^93afW3?x5a^xFxfSkfJR9T^y|-MHc(VFct$mbgZg
+z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wP9djW(e>JagB_OU>F6XV5EXCrp0%G
+z6jMo%U+{m1r`rv@fIJ0H7srr_TS*BmOl&D^%u@~?V0dWQAlP%dVU+|A0}~Ge`+f$~
+T^^)p>AQL=Y{an^LB{Ts5Nq;ZU
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menu_up_arrow_disabled.png b/pylons_app/public/js/yui/menu/assets/menu_up_arrow_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..63b56382a9cb5dde85f9e109fec1d1bdebb2512c
+GIT binary patch
+literal 936
+zc%17D@N?(olHy`uVBq!ia0vp^93afW3?x5a^xFxfSkfJR9T^y|-MHc(VFct$mbgZg
+z1m~xflqVLYGB~E>C#5QQ<|d}62BjvZR2H60wP9djW(e>JaXokL9K$FW1tS$mol;)}
+zq?k&A{DS{8Jl$^K1>`Asx;TbZ+)7GlVPZ>RW1e#G0K-GW2Em@w4XY%07?^k%*!MG-
+Tu9s971exIJ>gTe~DWM4flh!a~
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menubaritem_submenuindicator.png b/pylons_app/public/js/yui/menu/assets/menubaritem_submenuindicator.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..921b267c247823a1ec6139f3b0bf129783aa2517
+GIT binary patch
+literal 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~^+&;@X_q44s^7Ps3C!8R>B;ldL%wWGwu}>%?OjD=t?P^o?
+z|MB?>eGni*DNAYoXF=a8kGDq9`t~W=@+k+U!u<2(km?nZ$v>X6qu9kB!}1REwDQgJ
+z&aEA-TZ~6k#;13df-ki3e^3`lD_I8V9U%tY=eHv#Gf;<P$>>aUXqf1)1$+EkOvsiK
+zZuv2_*Fg)7|H_2sb<&n%n<CEU@RR>x1Ac?f;*&+*2L(IN9seDrtBgtG{?>xlyjrY{
+z2X;TWy(z@?bepYE4!3yR9`rZk_4HJsyz*lEQLxu(@9D`h<6@Yvz$I?DbuK_)zoyN&
+z&F)xjPkj!)7&oPAeYG%qu<-J6M?lfh_=5H+aZJ?MRr*OPHT-sJZt8F>W$bR@eHD56
+zRaM{1?Ta$_nDZEaA=A~{tKnKEMzOH7sofdec+Pln_F;C$7ta?ZmpdK1EFbWFU40y%
+z2Lq)f9vweC-|Gxm2w*>Ww@huk{(|$R;I-SY`V+ISW#<_z85!3^ggHkSPEsQHn}3rC
+zrEaJWKz+)KbCZml%;}_KY6w6u9{}M|0Q|bX;Whxz!~xi`2S6bQ04A?jcD-5v5P}B=
+z2u({%B=}eV>i<>8GJcCUxaDtZWOfZUn#J{QlAx}JIwEl1(O!cP!h8z?Nls3NKy;wY
+m%xS-pA>x_?uHxV2=xu>G;1~tZ3d~dgw@FviNTU{JANgNxB|ohI
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menubaritem_submenuindicator_disabled.png b/pylons_app/public/js/yui/menu/assets/menubaritem_submenuindicator_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..63e0c3c193b88f349c2cd3aef8b87a1c39b7cbaa
+GIT binary patch
+literal 3623
+zc%1E)_ct8+7RA3p)KQ|BaP>0LYjkGx8jKh%x*;M;BwC2xuM*LXAkj;d7#SteyAebk
+zC3<l2t`ZXMx$ob2cdxb2XYF6kT4(=s;vX1kQ<Afi0{|#>bu>(GNONOSQo@_rU!GEO
+z12S(N%Vz*k(EVcq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qIU
+z;g%m$dmXgU_^nK6UMFrTwkhIl4nO%FHsCktEIwJ}eo(OU-0|B{x=Nok?r+U+&8@}S
+zcwqN~+M9x1Pq*0$<Zz3}?SX$YUQbUI$SW_l9|d`x_MV<BGcJbu3S8obTj%@*_G{XV
+z+w6|j_SEO#i?LIx)>jL&2MezrclZ|`jW1}Q5=TdlU8S9*P{VJh<fIJ8P{!;Q+*gs8
+zUsd(J+`cG-k2#O=7cgBFUk%qXF^YwrP3_L$#<RzZvJSJ-zj(eZx!md4W%+>b>+0k9
+zJQyG)@#y&B`Ch00f<ODgyJc$Q^_QHl1h3tG)t{JsEjv$VNl(8fBFsLzaFP<i-~5|I
+zD0M@10P2%po|~lKWKJg?Q$qlP_y7ot1mM^84YvV!E)KwsJpc;X05EyIw(HdbfDk+|
+zKxpD{IPkCj)&HwlhXjgmaLdos$m|+yG>hxqBtcybbwt3tqrC<pg!vW(l9ZGLf#^V)
+mnNxoyLBur&T*bf3(c1!Xz%dG*=bNYeZ<DU3kwz`dKH|T;96&(;
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menubaritem_submenuindicator_selected.png b/pylons_app/public/js/yui/menu/assets/menubaritem_submenuindicator_selected.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..51078d70e254d57e48b23e56d1b5c1a53fc68d98
+GIT binary patch
+literal 3623
+zc%1E)^-~mj7skH`l1oU3aOqg-l!je81r}LKngtOFQA&{RONca!pwb~Bi%TfoECP~C
+zNDEx>y@a5|zTEfUc<(dwoX?z@GiT;JKb^#TCc4y=?34fiYJEK|^J~&wo1C2Zx(-yN
+zm0p9wSI_zh08|YBm<Z$-vI0P9>IsM6yXWB(;Pb@8$Cq0l4(Imu_i^`p<OV>{0@?zF
+zu-IW%JzYMA874%$GW0QLBIh=TB}Xu32ts)%=nN8gO6Hl&x^8J}lW+_cClIHmMx-#A
+zi9(Vn=g2mA-lRsqO-LF(Uk!chHPe2&HFniJtF~Qpgl-xq>m-L{>&ckOML;THT(`bO
+z5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H#kn7gFCKOV79UM4>YkFuMvq@*oTSmhZ>Hs?jl@yM?G@cs
+zQ&e12_rKh^D2I=`jtdsCT)nv(sbgW52tS+No5fA!PL$*v=45{MeqMUH+quW~9^c>H
+z&-H02NJi?x@%{7tuE51W&L3}AXiYbsbH5NKc>HQOvG`Jcp2?P(NgyH4J-Tp_5yM~q
+zn<OYrV@&`WQlFojWnTB(E_&w10E7qt5D^W)FTyo<0C*}1z^)?zO1S{A_`G!J(*b}O
+z+%rOG6A0HM|LR};pNfjFW%U|20?bV;2w<~C(%`xi*4NTR1T8o_Y7s+NZ$Ka^DJc+$
+p9+Z_e{Z|S^QhU%{@|yyqJ&*)kW8i6_W!nEX>1&&4)xjL2{tK#!K<xkk
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menuitem_checkbox.png b/pylons_app/public/js/yui/menu/assets/menuitem_checkbox.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..12e74ddf098d77e65fe8d046d2577e0f7b852be9
+GIT binary patch
+literal 956
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~c!3-piujpS2q*&4&eH|GXuHCreA7KRKOP07s
+zlmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU}gyL331)Eb7y2^M16fd!zdU9
+zBM*F$=6nOBSW1HYg8%>j&)}f7@(Yk}<muuVQgJKhv>_jZ0|%4ig#Z74F1Q%1T_&`!
+w_Q1<SFB^5tr85e%<04-2>s(=4`jth3A?hn*&~JuUc_33gUHx3vIVCg!0CIUj#Q*>R
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menuitem_checkbox_disabled.png b/pylons_app/public/js/yui/menu/assets/menuitem_checkbox_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..0063391d1ddb52efd8055e06b26fea90551e6e71
+GIT binary patch
+literal 956
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~c!3-piujpS2q*&4&eH|GXuHCreA7KRKOP07s
+zlmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU}gyL3308iuIlaWxq0&@!zdU9
+zBM&^R5>^9JEG0pH!T<mNXK>J3`31-~@^o<wskoJt;Ku61lTl;BsHVcGre-i-Q11YT
+u2;--jf>9EVpU!wNIS4AqM=~5@<1k=|`@tA{rgwG<$W%{PKbLh*2~7YLBRY@(
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menuitem_checkbox_selected.png b/pylons_app/public/js/yui/menu/assets/menuitem_checkbox_selected.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..6f26c818dbbdf97b769445ee20ed7fe9cf035441
+GIT binary patch
+literal 956
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~c!3-piujpS2q*&4&eH|GXuHCreA7KRKOP07s
+zlmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU}gyL330u7^JZjZ#Q*>Q8Aib<
+z7<nLVtA8$#Vkrso3kKx^2d$M~fP5oQ7srr_TQR2%`4}8Hm>ehk|NnEr#bE6+p@p>v
+uULJbcsADdjQJ5VU@seNX3e(cBED{V+Um1gbGrY<Jnd<54=d#Wzp$Pz_rbBlC
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menuitem_submenuindicator.png b/pylons_app/public/js/yui/menu/assets/menuitem_submenuindicator.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..ee69fe4bf70a8fbbc5eb1a921ff94ea490456ff9
+GIT binary patch
+literal 942
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~c!3-piujpS2q*&4&eH|GXuHCreA7KRKOP07s
+zlmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU}gyL32}{#j9?fAqhO?hFQ&zJ
+zffQ3okYDhBhNs&NynsA4PZ!6Kid#tuDJcmFE=&r1T^uudb(j*BIupblt~cdrtlG-J
+Z$i^Tiz)*NaPWU0n98Xt2mvv4FO#u7=G1UM7
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menuitem_submenuindicator_disabled.png b/pylons_app/public/js/yui/menu/assets/menuitem_submenuindicator_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..a0ee7936e23c5ed50250d2d6bf43c89893ecd63a
+GIT binary patch
+literal 942
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~c!3-piujpS2q*&4&eH|GXuHCreA7KRKOP07s
+zlmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU}gyL32{Al?i|A?7zHC0NS#t&
+z1f-Zsg8YL2Gd$gH;05HVdAc};RNP8RNJ&XZaA8v5>*AQvtHYG2)R`deaJ?x{W7Sp$
+aMm7dH0fxdWa>5Tm=6JgLxvX<aXaWF9-ZE(b
+
+diff --git a/pylons_app/public/js/yui/menu/assets/menuitem_submenuindicator_selected.png b/pylons_app/public/js/yui/menu/assets/menuitem_submenuindicator_selected.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..a96c7b5ac42182618c4419caf5f55b62ba907dc7
+GIT binary patch
+literal 942
+zc%17D@N?(olHy`uVBq!ia0vp^0zk~c!3-piujpS2q*&4&eH|GXuHCreA7KRKOP07s
+zlmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU}gyL332`Z|3AYh7zHC0a4T<r
+z2&9-wg8YL2Gd$gH;05HVdAc};RNP8RNJ&XZaA8v5>*AQvtHYG2)R`deaJ?x{W7Sp$
+ZMm7dH0fxdWa>5|}44$rjF6*2UngBNQGZg>;
+
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menu-skin.css b/pylons_app/public/js/yui/menu/assets/skins/sam/menu-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/assets/skins/sam/menu-skin.css
+@@ -0,0 +1,339 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* MenuBar style rules */
++
++.yui-skin-sam .yuimenubar {
++
++    font-size: 93%;  /* 12px */
++    line-height: 2;  /* ~24px */
++    *line-height: 1.9; /* For IE */
++    border: solid 1px #808080;
++    background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;
++
++}
++
++
++/* MenuBarItem style rules */
++
++.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; /*  Necessary to get negative margins in IE. */
++    margin: -1px 0;
++
++}
++
++.yui-skin-sam .yuimenubaritemlabel:visited {
++
++	color: #000;
++
++}
++
++.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel {
++
++    padding-right: 20px;
++
++    /*
++        Prevents the label from shifting left in IE when the 
++        ".yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected" 
++        rule us applied.
++    */
++
++    *display: inline-block;
++
++}
++
++.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu {
++
++    background: url(menubaritem_submenuindicator.png) right center no-repeat;
++
++}
++
++
++
++/* MenuBarItem states */
++
++/* Selected MenuBarItem */
++
++.yui-skin-sam .yuimenubaritem-selected {
++
++    background: url(../../../../assets/skins/sam/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;    /* For IE */
++
++}
++
++
++/* Disabled  MenuBarItem */
++
++.yui-skin-sam .yuimenubaritemlabel-disabled,
++.yui-skin-sam .yuimenubaritemlabel-disabled:visited {
++
++    cursor: default;
++    color: #A6A6A6;
++
++}
++
++.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled {
++
++    background-image: url(menubaritem_submenuindicator_disabled.png);
++
++}
++
++
++
++/* Menu style rules */
++
++.yui-skin-sam .yuimenu {
++
++    font-size: 93%;  /* 12px */
++    line-height: 1.5;  /* 18px */
++    *line-height: 1.45; /* For IE */
++
++}
++
++.yui-skin-sam .yuimenubar .yuimenu,
++.yui-skin-sam .yuimenu .yuimenu {
++
++    font-size: 100%;
++
++}
++
++.yui-skin-sam .yuimenu .bd {
++
++	/*
++		The following application of zoom:1 prevents first tier submenus of a MenuBar from hiding 
++		when the mouse is moving from an item in a MenuBar to a submenu in IE 7.
++	*/
++
++	*zoom: 1;
++	_zoom: normal;	/* Remove this rule for IE 6. */
++    border: solid 1px #808080;
++    background-color: #fff;
++    
++}
++
++.yui-skin-sam .yuimenu .yuimenu .bd {
++
++	*zoom: normal;
++
++}
++
++.yui-skin-sam .yuimenu ul {
++
++    padding: 3px 0;
++    border-width: 1px 0 0 0;
++    border-color: #ccc;
++    border-style: solid;
++
++}
++
++.yui-skin-sam .yuimenu ul.first-of-type {
++
++    border-width: 0;
++
++}
++
++
++/* Group titles */
++
++.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;
++
++}
++
++
++/* Top and bottom scroll controls */
++
++.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(../../../../assets/skins/sam/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;
++
++}
++
++
++/* MenuItem style rules */
++
++.yui-skin-sam .yuimenuitem {
++
++    /*
++        For IE 7 Quirks and IE 6 Strict Mode and Quirks Mode:
++        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 #fff;
++
++}
++
++.yui-skin-sam .yuimenuitemlabel {
++
++    padding: 0 20px;
++    color: #000;
++    text-decoration: none;
++    cursor: default;
++
++}
++
++.yui-skin-sam .yuimenuitemlabel:visited {
++
++    color: #000;
++	
++}
++
++.yui-skin-sam .yuimenuitemlabel .helptext {
++
++    margin-top: -1.5em;
++    *margin-top: -1.45em;  /* For IE*/
++    
++}
++
++.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;
++
++}
++
++
++/* Menu states */
++
++
++/* Visible Menu */
++
++.yui-skin-sam .yui-menu-shadow-visible {
++
++    background-color: #000;
++
++    /*
++        Opacity can be expensive, so defer the use of opacity until the 
++        menu is visible.
++    */
++
++    opacity: .12;
++    filter: alpha(opacity=12);  /* For IE */
++
++}
++
++
++
++/* MenuItem states */
++
++
++/* Selected MenuItem */
++
++.yui-skin-sam .yuimenuitem-selected {
++
++    background-color: #B3D4FF;
++
++}
++
++
++/* Disabled MenuItem */
++
++.yui-skin-sam .yuimenuitemlabel-disabled,
++.yui-skin-sam .yuimenuitemlabel-disabled:visited {
++
++    cursor: default;
++    color: #A6A6A6;
++
++}
++
++.yui-skin-sam .yuimenuitem-hassubmenu-disabled {
++
++    background-image: url(menuitem_submenuindicator_disabled.png);
++
++}
++
++.yui-skin-sam .yuimenuitem-checked-disabled {
++
++    background-image: url(menuitem_checkbox_disabled.png);
++
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menu.css b/pylons_app/public/js/yui/menu/assets/skins/sam/menu.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/assets/skins/sam/menu.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yuimenu{top:-999em;left:-999em;}.yuimenubar{position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{position:absolute;}.yuimenubar li,.yuimenu li{list-style-type:none;}.yuimenubar ul,.yuimenu ul,.yuimenubar li,.yuimenu li,.yuimenu h6,.yuimenubar h6{margin:0;padding:0;}.yuimenuitemlabel,.yuimenubaritemlabel{text-align:left;white-space:nowrap;}.yuimenubar ul{*zoom:1;}.yuimenubar .yuimenu ul{*zoom:normal;}.yuimenubar>.bd>ul:after{content:".";display:block;clear:both;visibility:hidden;height:0;line-height:0;}.yuimenubaritem{float:left;}.yuimenubaritemlabel,.yuimenuitemlabel{display:block;}.yuimenuitemlabel .helptext{font-style:normal;display:block;margin:-1em 0 0 10em;}.yui-menu-shadow{position:absolute;visibility:hidden;z-index:-1;}.yui-menu-shadow-visible{top:2px;right:-3px;left:-3px;bottom:-3px;visibility:visible;}.hide-scrollbars *{overflow:hidden;}.hide-scrollbars select{display:none;}.yuimenu.show-scrollbars,.yuimenubar.show-scrollbars{overflow:visible;}.yuimenu.hide-scrollbars .yui-menu-shadow,.yuimenubar.hide-scrollbars .yui-menu-shadow{overflow:hidden;}.yuimenu.show-scrollbars .yui-menu-shadow,.yuimenubar.show-scrollbars .yui-menu-shadow{overflow:auto;}.yui-overlay.yui-force-redraw{margin-bottom:1px;}.yui-skin-sam .yuimenubar{font-size:93%;line-height:2;*line-height:1.9;border:solid 1px #808080;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0;}.yui-skin-sam .yuimenubarnav .yuimenubaritem{border-right:solid 1px #ccc;}.yui-skin-sam .yuimenubaritemlabel{padding:0 10px;color:#000;text-decoration:none;cursor:default;border-style:solid;border-color:#808080;border-width:1px 0;*position:relative;margin:-1px 0;}.yui-skin-sam .yuimenubaritemlabel:visited{color:#000;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel{padding-right:20px;*display:inline-block;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu{background:url(menubaritem_submenuindicator.png) right center no-repeat;}.yui-skin-sam .yuimenubaritem-selected{background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px;}.yui-skin-sam .yuimenubaritemlabel-selected{border-color:#7D98B8;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected{border-left-width:1px;margin-left:-1px;*left:-1px;}.yui-skin-sam .yuimenubaritemlabel-disabled,.yui-skin-sam .yuimenubaritemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled{background-image:url(menubaritem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenu{font-size:93%;line-height:1.5;*line-height:1.45;}.yui-skin-sam .yuimenubar .yuimenu,.yui-skin-sam .yuimenu .yuimenu{font-size:100%;}.yui-skin-sam .yuimenu .bd{*zoom:1;_zoom:normal;border:solid 1px #808080;background-color:#fff;}.yui-skin-sam .yuimenu .yuimenu .bd{*zoom:normal;}.yui-skin-sam .yuimenu ul{padding:3px 0;border-width:1px 0 0 0;border-color:#ccc;border-style:solid;}.yui-skin-sam .yuimenu ul.first-of-type{border-width:0;}.yui-skin-sam .yuimenu h6{font-weight:bold;border-style:solid;border-color:#ccc;border-width:1px 0 0 0;color:#a4a4a4;padding:3px 10px 0 10px;}.yui-skin-sam .yuimenu ul.hastitle,.yui-skin-sam .yuimenu h6.first-of-type{border-width:0;}.yui-skin-sam .yuimenu .yui-menu-body-scrolled{border-color:#ccc #808080;overflow:hidden;}.yui-skin-sam .yuimenu .topscrollbar,.yui-skin-sam .yuimenu .bottomscrollbar{height:16px;border:solid 1px #808080;background:#fff url(../../../../assets/skins/sam/sprite.png) no-repeat 0 0;}.yui-skin-sam .yuimenu .topscrollbar{border-bottom-width:0;background-position:center -950px;}.yui-skin-sam .yuimenu .topscrollbar_disabled{background-position:center -975px;}.yui-skin-sam .yuimenu .bottomscrollbar{border-top-width:0;background-position:center -850px;}.yui-skin-sam .yuimenu .bottomscrollbar_disabled{background-position:center -875px;}.yui-skin-sam .yuimenuitem{_border-bottom:solid 1px #fff;}.yui-skin-sam .yuimenuitemlabel{padding:0 20px;color:#000;text-decoration:none;cursor:default;}.yui-skin-sam .yuimenuitemlabel:visited{color:#000;}.yui-skin-sam .yuimenuitemlabel .helptext{margin-top:-1.5em;*margin-top:-1.45em;}.yui-skin-sam .yuimenuitem-hassubmenu{background-image:url(menuitem_submenuindicator.png);background-position:right center;background-repeat:no-repeat;}.yui-skin-sam .yuimenuitem-checked{background-image:url(menuitem_checkbox.png);background-position:left center;background-repeat:no-repeat;}.yui-skin-sam .yui-menu-shadow-visible{background-color:#000;opacity:.12;filter:alpha(opacity=12);}.yui-skin-sam .yuimenuitem-selected{background-color:#B3D4FF;}.yui-skin-sam .yuimenuitemlabel-disabled,.yui-skin-sam .yuimenuitemlabel-disabled:visited{cursor:default;color:#A6A6A6;}.yui-skin-sam .yuimenuitem-hassubmenu-disabled{background-image:url(menuitem_submenuindicator_disabled.png);}.yui-skin-sam .yuimenuitem-checked-disabled{background-image:url(menuitem_checkbox_disabled.png);}
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menubaritem_submenuindicator.png b/pylons_app/public/js/yui/menu/assets/skins/sam/menubaritem_submenuindicator.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..030941c9cffc064276813d7eaab03d8c667ed700
+GIT binary patch
+literal 3618
+zc$@(u4&CvIP)<h;3K|Lk000e1NJLTq000mG000CC0{{R3uxd}<00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l$4Z}m6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!
+zrKP5(rl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~`6RjA00002bW%=J{{ZE;FiHRb03%66K~#9!Vqky(Mi^jVMCCIw
+oFfyX>85y7$4gdfE0RR6300puDF<v(5bN~PV07*qoM6N<$f-m^Lg8%>k
+
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png b/pylons_app/public/js/yui/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..6c1612230550ef09678a38a2e3374585055a07eb
+GIT binary patch
+literal 3618
+zc$@(u4&CvIP)<h;3K|Lk000e1NJLTq000mG000CC0{{R3uxd}<00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T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}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~9(fUf00002bW%=J{{ZE;FiHRb03%66K~#9!Vqky(Mi^jVMCCIw
+oFfyX>85y7$4gdfE0RR6300puDF<v(5bN~PV07*qoM6N<$f}`EPb^rhX
+
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_checkbox.png b/pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_checkbox.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..1437a4f4b9a124d2eff708b60a74144de9607385
+GIT binary patch
+literal 3625
+zc$@(#4%YFBP)<h;3K|Lk000e1NJLTq000jF000LF0{{R3;9KVv00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T
+zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j
+zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p
+z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i
+z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i
+z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X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pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_checkbox_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..5d5b9985e3094b3c0635193dd26c78d8ef164f67
+GIT binary patch
+literal 3625
+zc$@(#4%YFBP)<h;3K|Lk000e1NJLTq000jF000LF0{{R3;9KVv00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T
+zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j
+zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p
+z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-<?i
+z0%4j!F2Z@488U%158(66005wo6%pWr^Zj_v4zAA5HjcIqUoGmt2LB>rV&neh&#Q1i
+z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_<lS*MWK+n+1cgf
+z<k(8YLR(?VSAG6x!e78w{cQPuJpA|d;J)G{fihizM+Erb!p!tcr5w+a34~(Y=8s4G
+zw+sLL9n&JjNn*KJDiq^U5^;`1nvC-@r6P$!k}1U{(*I=Q-z@tBKHoI}uxdU5dyy@u
+zU1J0GOD7Ombim^G008p4Z^6_k2m^p<gW=D2|L;HjN1!DDfM!XOaR2~bL?kX$%CkSm
+z2mk;?pn)o|K^yeJ7%adB9Ki+L!3+FgHiSYX#KJ-lLJDMn9CB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YHMq2Y;0_8ZEbFDZf|dIaBy&O
+zadC2Ta&vQYbaZreb#-=jc6WDoczAeud3kzzdV70&e0+R;eSLm@et&;|fPjF3fq{a8
+zf`fyDgoK2Jg@uNOhKGlTh=_=ZiHVAeii?YjjEszpjg5|uj*pLzkdTm(k&%*;l9Q8@
+zl$4Z}m6ev3mY0{8n3$NEnVFiJnwy)OoSdAUot>VZo}ZteprD|kp`oIpqNAguq@<*!
+zrKP5(rl+T;sHmu^si~@}s;jH3tgNi9t*x%EuCK4Ju&}VPv9YqUva_?Zw6wIfwY9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~9(fUf00002bW%=J{{ZE;FiHRb04hmDK~#9!T+A^Jz#tF<!P)<R
+vIt7RvxEsl~uJG{KqR~Xd==a`^KULoV6I1|I8lbr700000NkvXXu0mjfM1aZ`
+
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_submenuindicator.png b/pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_submenuindicator.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..ea4f6602911400991ffdc6130542c12bc4cd0982
+GIT binary patch
+literal 3617
+zc$@(t4&L#JP)<h;3K|Lk000e1NJLTq000aC000LF0{{R33v65#00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~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Y9dk
+zwzs#pxVX5vxw*Q!y1To(yu7@<y}iD^zQ4b}z`(%4!NJ19!o$PE#KgqK#l^<P#>dCU
+z$jHda$;ryf%FD~k%*@Qq&CSlv&d<-!(9qD)(b3Y<($mw^)YR0~)z#M4*4Nk9*x1<F
+z+1c9K+S}XP+}zyV-QC{a-rwKf;Nall;o;)q;^X7v<mBY#<>lt)=I7_<=;-L_>FMg~
+z>g((4?Ck9A?d|UF?(gsK@bK{Q@$vHV^7Hfa^z`)g_4W4l_V@Sq`1ttw`T6?#`uqF)
+z{QUg={r&#_{{R2~`6RjA00002bW%=J{{ZE;FiHRb03u05K~#9!VqjoI00ssI6b=Il
+nhXI!ivK}PU00000|NjF33?~3ZGNlzM00000NkvXXu0mjf(Ym^p
+
+diff --git a/pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png b/pylons_app/public/js/yui/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..427d60a38af14ac7b530a266dc2e969555d287c7
+GIT binary patch
+literal 3617
+zc$@(t4&L#JP)<h;3K|Lk000e1NJLTq000aC000LF0{{R33v65#00009a7bBm000XU
+z000XU0RWnu7ytkYPiaF#P*7-ZbZ>KLZ*U+<Lqi~Na&Km7Y-Iodc-oy)XH-+^7Crag
+z^g>IBfRsybQWXdwQbLP>6p<z>Aqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uh<iVD~V
+z<RPMtgQJLw%KPDaqifc@_vX$1wbwr9tn;0-&j-K=43<bUQ8j=JsX`tR;Dg7+#^K~H
+zK!FM*Z~zbpvt%K2{UZSY_<lS*D<Z%Lz5oGu(+dayz)hRLFdT>f59&ghTmgWD0l;*T
+zI7<kC6aYYajzXpYKt=(8otP$50H6c_V9R4-;{Z@C0AMG7=F<Rxo%or10RUT+Ar%3j
+zkpLhQWr#!oXgdI`&sK^>09Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p
+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R2~9(fUf00002bW%=J{{ZE;FiHRb03u05K~#9!VqjoI00ssI6b=Il
+nhXI!ivK}PU00000|NjF33?~3ZGNlzM00000NkvXXu0mjfMZ3C*
+
+diff --git a/pylons_app/public/js/yui/menu/menu-debug.js b/pylons_app/public/js/yui/menu/menu-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/menu-debug.js
+@@ -0,0 +1,9870 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++
++/**
++* @module 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 UA = YAHOO.env.ua,
++		Dom = YAHOO.util.Dom,
++	    Event = YAHOO.util.Event,
++	    Lang = YAHOO.lang,
++
++		_DIV = "DIV",
++    	_HD = "hd",
++    	_BD = "bd",
++    	_FT = "ft",
++    	_LI = "LI",
++    	_DISABLED = "disabled",
++		_MOUSEOVER = "mouseover",
++		_MOUSEOUT = "mouseout",
++		_MOUSEDOWN = "mousedown",
++		_MOUSEUP = "mouseup",
++		_CLICK = "click",
++		_KEYDOWN = "keydown",
++		_KEYUP = "keyup",
++		_KEYPRESS = "keypress",
++		_CLICK_TO_HIDE = "clicktohide",
++		_POSITION = "position", 
++		_DYNAMIC = "dynamic",
++		_SHOW_DELAY = "showdelay",
++		_SELECTED = "selected",
++		_VISIBLE = "visible",
++		_UL = "UL",
++		_MENUMANAGER = "MenuManager";
++
++
++    /**
++    * 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",
++            "focus": "focusEvent",
++            "focusin": "focusEvent",
++            "blur": "blurEvent",
++            "focusout": "blurEvent"
++        },
++    
++    
++        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,
++            	returnVal;
++    
++            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) {
++                    
++                        returnVal = oParentNode;
++                    
++                    }
++                    else {
++                    
++                        returnVal = p_oElement;
++                    
++                    }
++                
++                    break;
++
++                case _LI:
++    
++                    returnVal = p_oElement;
++                    
++                    break;
++
++                default:
++    
++                    oParentNode = p_oElement.parentNode;
++    
++                    if (oParentNode) {
++                    
++                        returnVal = getMenuRootElement(oParentNode);
++                    
++                    }
++                
++                    break;
++                
++                }
++    
++            }
++            
++            return returnVal;
++            
++        }
++    
++    
++    
++        // 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),
++			bFireEvent = true,
++			sEventType = p_oEvent.type,
++            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[sEventType];
++
++				/*
++					There is an inconsistency between Firefox for Mac OS X and 
++					Firefox Windows & Linux regarding the triggering of the 
++					display of the browser's context menu and the subsequent 
++					firing of the "click" event. In Firefox for Windows & Linux, 
++					when the user triggers the display of the browser's context 
++					menu the "click" event also fires for the document object, 
++					even though the "click" event did not fire for the element 
++					that was the original target of the "contextmenu" event. 
++					This is unique to Firefox on Windows & Linux.  For all 
++					other A-Grade browsers, including Firefox for Mac OS X, the 
++					"click" event doesn't fire for the document object. 
++
++					This bug in Firefox for Windows affects Menu, as Menu 
++					instances listen for events at the document level and 
++					dispatches Custom Events of the same name.  Therefore users
++					of Menu will get an unwanted firing of the "click" 
++					custom event.  The following line fixes this bug.
++				*/
++				
++
++
++				if (sEventType == "click" && 
++					(UA.gecko && oMenu.platform != "mac") && 
++					p_oEvent.button > 0) {
++
++					bFireEvent = false;
++
++				}
++    
++                // Fire the Custom Event that corresponds the current DOM event    
++        
++                if (bFireEvent && oMenuItem && !oMenuItem.cfg.getProperty(_DISABLED)) {
++                    oMenuItem[sCustomEventType].fire(p_oEvent);                   
++                }
++        
++				if (bFireEvent) {
++                	oMenu[sCustomEventType].fire(p_oEvent, oMenuItem);
++				}
++            
++            }
++            else if (sEventType == _MOUSEDOWN) {
++    
++                /*
++                    If the target of the event wasn't a menu, hide all 
++                    dynamically positioned menus
++                */
++                
++                for (var i in m_oVisibleMenus) {
++        
++                    if (Lang.hasOwnProperty(m_oVisibleMenus, i)) {
++        
++                        oMenu = m_oVisibleMenus[i];
++
++                        if (oMenu.cfg.getProperty(_CLICK_TO_HIDE) && 
++                            !(oMenu instanceof YAHOO.widget.MenuBar) && 
++                            oMenu.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++                            oMenu.hide();
++
++							//	In IE when the user mouses down on a focusable 
++							//	element that element will be focused and become 
++							//	the "activeElement".
++							//	(http://msdn.microsoft.com/en-us/library/ms533065(VS.85).aspx)
++							//	However, there is a bug in IE where if there is 
++							//	a positioned element with a focused descendant 
++							//	that is hidden in response to the mousedown 
++							//	event, the target of the mousedown event will 
++							//	appear to have focus, but will not be set as 
++							//	the activeElement.  This will result in the 
++							//	element not firing key events, even though it
++							//	appears to have focus.  The following call to 
++							//	"setActive" fixes this bug.
++
++							if (UA.ie && oTarget.focus) {
++								oTarget.setActive();
++							}
++        
++                        }
++                        else {
++                            
++							if (oMenu.cfg.getProperty(_SHOW_DELAY) > 0) {
++							
++								oMenu._cancelShowDelay();
++							
++							}
++
++
++							if (oMenu.activeItem) {
++						
++								oMenu.activeItem.blur();
++								oMenu.activeItem.cfg.setProperty(_SELECTED, false);
++						
++								oMenu.activeItem = 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[1];
++    
++            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;
++                
++                YAHOO.log(this + " added to the collection of visible menus.", 
++                	"info", _MENUMANAGER);
++            
++            }
++            else if (m_oVisibleMenus[sId]) {
++            
++                delete m_oVisibleMenus[sId];
++                
++                YAHOO.log(this + " removed from the collection of visible menus.", 
++                	"info", _MENUMANAGER);
++            
++            }
++        
++        }
++    
++    
++        /**
++        * @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);
++    
++        }
++
++
++        /**
++        * @method removeItem
++        * @description Removes a MenuItem instance from the MenuManager's collection of MenuItems.
++        * @private
++        * @param {MenuItem} p_oMenuItem The MenuItem instance to be removed.
++        */    
++        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);
++    
++                YAHOO.log(p_oMenuItem + " successfully unregistered.", "info", _MENUMANAGER);
++    
++            }
++
++        }
++    
++    
++        /**
++        * @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);
++        
++                    YAHOO.log(oItem + " successfully registered.", "info", _MENUMANAGER);
++        
++                }
++    
++            }
++        
++        }
++    
++    
++        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);
++    
++						Event.onFocus(oDoc, onDOMEvent, this, true);
++						Event.onBlur(oDoc, onDOMEvent, this, true);						
++    
++                        m_bInitializedEventHandlers = true;
++                        
++                        YAHOO.log("DOM event handlers initialized.", "info", _MENUMANAGER);
++            
++                    }
++            
++                    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);
++        
++                    YAHOO.log(p_oMenu + " successfully registered.", "info", _MENUMANAGER);
++        
++                }
++        
++            },
++    
++        
++            /**
++            * @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 ((sId in m_oMenus) && (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];
++            
++                        YAHOO.log(p_oMenu + " successfully unregistered.", "info", _MENUMANAGER);
++        
++
++                        /*
++                             Unregister the menu from the collection of 
++                             visible menus
++                        */
++
++                        if ((sId in m_oVisibleMenus) && (m_oVisibleMenus[sId] == p_oMenu)) {
++            
++                            delete m_oVisibleMenus[sId];
++                            
++                            YAHOO.log(p_oMenu + " unregistered from the" + 
++                                        " collection of visible menus.", "info", _MENUMANAGER);
++       
++                        }
++
++
++                        // 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 (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 {Object}
++            */
++            getVisible: function () {
++            
++                return m_oVisibleMenus;
++            
++            },
++
++    
++            /**
++            * @method getMenus
++            * @description Returns a collection of all menus registered with the 
++            * menu manger.
++            * @return {Object}
++            */
++            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 returnVal;
++                
++                if (p_sId in m_oMenus) {
++                
++					returnVal = m_oMenus[p_sId];
++				
++				}
++            
++            	return returnVal;
++            
++            },
++    
++    
++            /**
++            * @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 returnVal;
++    
++    			if (p_sId in m_oItems) {
++    
++					returnVal = m_oItems[p_sId];
++				
++				}
++				
++				return returnVal;
++            
++            },
++
++
++            /**
++            * @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,
++                    returnVal;
++    
++
++                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) {
++
++                            returnVal = aItems;
++                        
++                        }
++
++                    }
++                
++                }
++
++				return returnVal;
++            
++            },
++
++    
++            /**
++            * @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 () {
++
++				var returnVal;
++    
++                if (m_oFocusedMenuItem) {
++    
++                    returnVal = m_oFocusedMenuItem.parent.getRoot();
++                
++                }
++    
++    			return returnVal;
++    
++            },
++    
++        
++            /**
++            * @method toString
++            * @description Returns a string representing the menu manager.
++            * @return {String}
++            */
++            toString: function () {
++            
++                return _MENUMANAGER;
++            
++            }
++    
++        };
++    
++    }();
++
++})();
++
++
++
++(function () {
++
++	var Lang = YAHOO.lang,
++
++	// String constants
++	
++		_MENU = "Menu",
++		_DIV_UPPERCASE = "DIV",
++		_DIV_LOWERCASE = "div",
++		_ID = "id",
++		_SELECT = "SELECT",
++		_XY = "xy",
++		_Y = "y",
++		_UL_UPPERCASE = "UL",
++		_UL_LOWERCASE = "ul",
++		_FIRST_OF_TYPE = "first-of-type",
++		_LI = "LI",
++		_OPTGROUP = "OPTGROUP",
++		_OPTION = "OPTION",
++		_DISABLED = "disabled",
++		_NONE = "none",
++		_SELECTED = "selected",
++		_GROUP_INDEX = "groupindex",
++		_INDEX = "index",
++		_SUBMENU = "submenu",
++		_VISIBLE = "visible",
++		_HIDE_DELAY = "hidedelay",
++		_POSITION = "position",
++		_DYNAMIC = "dynamic",
++		_STATIC = "static",
++		_DYNAMIC_STATIC = _DYNAMIC + "," + _STATIC,
++		_URL = "url",
++		_HASH = "#",
++		_TARGET = "target",
++		_MAX_HEIGHT = "maxheight",
++        _TOP_SCROLLBAR = "topscrollbar",
++        _BOTTOM_SCROLLBAR = "bottomscrollbar",
++        _UNDERSCORE = "_",
++		_TOP_SCROLLBAR_DISABLED = _TOP_SCROLLBAR + _UNDERSCORE + _DISABLED,
++		_BOTTOM_SCROLLBAR_DISABLED = _BOTTOM_SCROLLBAR + _UNDERSCORE + _DISABLED,
++		_MOUSEMOVE = "mousemove",
++		_SHOW_DELAY = "showdelay",
++		_SUBMENU_HIDE_DELAY = "submenuhidedelay",
++		_IFRAME = "iframe",
++		_CONSTRAIN_TO_VIEWPORT = "constraintoviewport",
++		_PREVENT_CONTEXT_OVERLAP = "preventcontextoverlap",
++		_SUBMENU_ALIGNMENT = "submenualignment",
++		_AUTO_SUBMENU_DISPLAY = "autosubmenudisplay",
++		_CLICK_TO_HIDE = "clicktohide",
++		_CONTAINER = "container",
++		_SCROLL_INCREMENT = "scrollincrement",
++		_MIN_SCROLL_HEIGHT = "minscrollheight",
++		_CLASSNAME = "classname",
++		_SHADOW = "shadow",
++		_KEEP_OPEN = "keepopen",
++		_HD = "hd",
++		_HAS_TITLE = "hastitle",
++		_CONTEXT = "context",
++		_EMPTY_STRING = "",
++		_MOUSEDOWN = "mousedown",
++		_KEYDOWN = "keydown",
++		_HEIGHT = "height",
++		_WIDTH = "width",
++		_PX = "px",
++		_EFFECT = "effect",
++		_MONITOR_RESIZE = "monitorresize",
++		_DISPLAY = "display",
++		_BLOCK = "block",
++		_VISIBILITY = "visibility",
++		_ABSOLUTE = "absolute",
++		_ZINDEX = "zindex",
++		_YUI_MENU_BODY_SCROLLED = "yui-menu-body-scrolled",
++		_NON_BREAKING_SPACE = "&#32;",
++		_SPACE = " ",
++		_MOUSEOVER = "mouseover",
++		_MOUSEOUT = "mouseout",
++        _ITEM_ADDED = "itemAdded",
++        _ITEM_REMOVED = "itemRemoved",
++        _HIDDEN = "hidden",
++        _YUI_MENU_SHADOW = "yui-menu-shadow",
++        _YUI_MENU_SHADOW_VISIBLE = _YUI_MENU_SHADOW + "-visible",
++        _YUI_MENU_SHADOW_YUI_MENU_SHADOW_VISIBLE = _YUI_MENU_SHADOW + _SPACE + _YUI_MENU_SHADOW_VISIBLE;
++
++
++/**
++* 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) {
++
++	var returnVal = false;
++
++    if (Lang.isString(p_sPosition)) {
++
++        returnVal = (_DYNAMIC_STATIC.indexOf((p_sPosition.toLowerCase())) != -1);
++
++    }
++
++	return returnVal;
++
++}
++
++
++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,
++    UA = YAHOO.env.ua,
++    
++    m_oShadowTemplate,
++
++	bFocusListenerInitialized = false,
++
++	oFocusedElement,
++
++	EVENT_TYPES = [
++    
++		["mouseOverEvent", _MOUSEOVER],
++		["mouseOutEvent", _MOUSEOUT],
++		["mouseDownEvent", _MOUSEDOWN],
++		["mouseUpEvent", "mouseup"],
++		["clickEvent", "click"],
++		["keyPressEvent", "keypress"],
++		["keyDownEvent", _KEYDOWN],
++		["keyUpEvent", "keyup"],
++		["focusEvent", "focus"],
++		["blurEvent", "blur"],
++		["itemAddedEvent", _ITEM_ADDED],
++		["itemRemovedEvent", _ITEM_REMOVED]
++
++	],
++
++	VISIBLE_CONFIG =  { 
++		key: _VISIBLE, 
++		value: false, 
++		validator: Lang.isBoolean
++	}, 
++
++	CONSTRAIN_TO_VIEWPORT_CONFIG =  {
++		key: _CONSTRAIN_TO_VIEWPORT, 
++		value: true, 
++		validator: Lang.isBoolean, 
++		supercedes: [_IFRAME,"x",_Y,_XY]
++	}, 
++
++	PREVENT_CONTEXT_OVERLAP_CONFIG =  {
++		key: _PREVENT_CONTEXT_OVERLAP,
++		value: true,
++		validator: Lang.isBoolean,  
++		supercedes: [_CONSTRAIN_TO_VIEWPORT]
++	},
++
++	POSITION_CONFIG =  { 
++		key: _POSITION, 
++		value: _DYNAMIC, 
++		validator: checkPosition, 
++		supercedes: [_VISIBLE, _IFRAME]
++	}, 
++
++	SUBMENU_ALIGNMENT_CONFIG =  { 
++		key: _SUBMENU_ALIGNMENT, 
++		value: ["tl","tr"]
++	},
++
++	AUTO_SUBMENU_DISPLAY_CONFIG =  { 
++		key: _AUTO_SUBMENU_DISPLAY, 
++		value: true, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	}, 
++
++	SHOW_DELAY_CONFIG =  { 
++		key: _SHOW_DELAY, 
++		value: 250, 
++		validator: Lang.isNumber, 
++		suppressEvent: true
++	}, 
++
++	HIDE_DELAY_CONFIG =  { 
++		key: _HIDE_DELAY, 
++		value: 0, 
++		validator: Lang.isNumber, 
++		suppressEvent: true
++	}, 
++
++	SUBMENU_HIDE_DELAY_CONFIG =  { 
++		key: _SUBMENU_HIDE_DELAY, 
++		value: 250, 
++		validator: Lang.isNumber,
++		suppressEvent: true
++	}, 
++
++	CLICK_TO_HIDE_CONFIG =  { 
++		key: _CLICK_TO_HIDE, 
++		value: true, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	},
++
++	CONTAINER_CONFIG =  { 
++		key: _CONTAINER,
++		suppressEvent: true
++	}, 
++
++	SCROLL_INCREMENT_CONFIG =  { 
++		key: _SCROLL_INCREMENT, 
++		value: 1, 
++		validator: Lang.isNumber,
++		supercedes: [_MAX_HEIGHT],
++		suppressEvent: true
++	},
++
++	MIN_SCROLL_HEIGHT_CONFIG =  { 
++		key: _MIN_SCROLL_HEIGHT, 
++		value: 90, 
++		validator: Lang.isNumber,
++		supercedes: [_MAX_HEIGHT],
++		suppressEvent: true
++	},    
++
++	MAX_HEIGHT_CONFIG =  { 
++		key: _MAX_HEIGHT, 
++		value: 0, 
++		validator: Lang.isNumber,
++		supercedes: [_IFRAME],
++		suppressEvent: true
++	}, 
++
++	CLASS_NAME_CONFIG =  { 
++		key: _CLASSNAME, 
++		value: null, 
++		validator: Lang.isString,
++		suppressEvent: true
++	}, 
++
++	DISABLED_CONFIG =  { 
++		key: _DISABLED, 
++		value: false, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	},
++	
++	SHADOW_CONFIG =  { 
++		key: _SHADOW, 
++		value: true, 
++		validator: Lang.isBoolean,
++		suppressEvent: true,
++		supercedes: [_VISIBLE]
++	},
++	
++	KEEP_OPEN_CONFIG = {
++		key: _KEEP_OPEN, 
++		value: false, 
++		validator: Lang.isBoolean
++	};
++
++
++function onDocFocus(event) {
++
++	oFocusedElement = Event.getTarget(event);
++
++}
++
++
++
++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 "-999em"
++* @final
++* @type String
++*/
++OFF_SCREEN_POSITION: "-999em",
++
++
++// Private properties
++
++
++/** 
++* @property _useHideDelay
++* @description Boolean indicating if the "mouseover" and "mouseout" event 
++* handlers used for hiding the menu via a call to "YAHOO.lang.later" have 
++* already been assigned.
++* @default false
++* @private
++* @type Boolean
++*/
++_useHideDelay: 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.
++*/
++
++
++/**
++* @event mouseOutEvent
++* @description Fires when the mouse has left the menu.  Passes back the DOM 
++* Event object as an argument.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @event itemAddedEvent
++* @description Fires when an item is added to the menu.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++* @event itemRemovedEvent
++* @description Fires when an item is removed to the menu.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++* @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 (Lang.isString(p_oElement)) {
++
++        oElement = Dom.get(p_oElement);
++
++    }
++    else if (p_oElement.tagName) {
++
++        oElement = p_oElement;
++
++    }
++
++
++    if (oElement && oElement.tagName) {
++
++        switch(oElement.tagName.toUpperCase()) {
++    
++            case _DIV_UPPERCASE:
++
++                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);
++
++                YAHOO.log("Source element: " + this.srcElement.tagName, "info", this.toString());
++    
++            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);
++
++				YAHOO.log("Source element: " + this.srcElement.tagName, "info", this.toString());
++
++            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);
++
++		YAHOO.log("No source element found.  Created element with id: " + this.id, "info", this.toString());
++
++    }
++
++
++    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.beforeShowEvent.subscribe(this._onBeforeShow);
++		this.hideEvent.subscribe(this._onHide);
++        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);
++        this.blurEvent.subscribe(this._onBlur);
++
++
++		if (!bFocusListenerInitialized) {
++			Event.onFocus(document, onDocFocus);
++			bFocusListenerInitialized = true;
++		}
++
++
++		//	Fixes an issue in Firefox 2 and Webkit where Dom's "getX" and "getY" 
++		//	methods return values that don't take scrollTop into consideration 
++
++        if ((UA.gecko && UA.gecko < 1.9) || 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_UPPERCASE) {
++    
++            //  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_UPPERCASE:
++        
++                                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;
++    
++        YAHOO.log("Searching DOM for items to initialize.", "info", this.toString());
++    
++
++        if (sSrcElementTagName) {
++    
++            switch (sSrcElementTagName) {
++        
++                case _DIV_UPPERCASE:
++
++                    aListElements = this._aListElements;
++                    nListElements = aListElements.length;
++        
++                    if (nListElements > 0) {
++        
++        				YAHOO.log("Found " + nListElements + " item groups to initialize.", 
++        							"info", this.toString());
++        
++                        i = nListElements - 1;
++        
++                        do {
++        
++                            oNode = aListElements[i].firstChild;
++            
++                            if (oNode) {
++
++                                YAHOO.log("Scanning " + 
++                                    aListElements[i].childNodes.length + 
++                                    " child nodes for items to initialize.", "info", this.toString());
++            
++                                do {
++                
++                                    if (oNode && oNode.tagName && 
++                                        oNode.tagName.toUpperCase() == _LI) {
++                
++                                        YAHOO.log("Initializing " + 
++                                            oNode.tagName + " node.", "info", this.toString());
++        
++                                        this.addItem(new this.ITEM_TYPE(oNode, 
++                                                    { parent: this }), i);
++            
++                                    }
++                        
++                                }
++                                while ((oNode = oNode.nextSibling));
++                            
++                            }
++                    
++                        }
++                        while (i--);
++        
++                    }
++        
++                break;
++        
++                case _SELECT:
++        
++                    YAHOO.log("Scanning " +  
++                        oSrcElement.childNodes.length + 
++                        " child nodes for items to initialize.", "info", this.toString());
++        
++                    oNode = oSrcElement.firstChild;
++        
++                    do {
++        
++                        if (oNode && oNode.tagName) {
++                        
++                            switch (oNode.tagName.toUpperCase()) {
++            
++                                case _OPTGROUP:
++                                case _OPTION:
++            
++                                    YAHOO.log("Initializing " +  
++                                        oNode.tagName + " node.", "info", this.toString());
++            
++                                    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,
++        returnVal;
++    
++
++    for(var i=0; i<nItems; i++) {
++
++        oItem = aItems[i];
++
++        if (oItem && !oItem.cfg.getProperty(_DISABLED) && oItem.element.style.display != _NONE) {
++
++            returnVal = oItem;
++            break;
++
++        }
++    
++    }
++    
++    return returnVal;
++    
++},
++
++
++/**
++* @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,
++        returnVal;
++
++
++    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 (Lang.isString(p_oItem)) {
++
++        oItem = new this.ITEM_TYPE(p_oItem, { parent: this });
++    
++    }
++    else if (Lang.isObject(p_oItem)) {
++
++        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 = Lang.isNumber(p_nGroupIndex) ? p_nGroupIndex : 0;
++        aGroup = this._getItemGroup(nGroupIndex);
++
++
++
++        if (!aGroup) {
++
++            aGroup = this._createItemGroup(nGroupIndex);
++
++        }
++
++
++        if (Lang.isNumber(p_nItemIndex)) {
++
++            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);
++        
++                YAHOO.log("Item inserted." + 
++                    " Text: " + oGroupItem.cfg.getProperty("text") + ", " + 
++                    " Index: " + oGroupItem.index + ", " + 
++                    " Group Index: " + oGroupItem.groupIndex, "info", this.toString());
++
++                this.itemAddedEvent.fire(oGroupItem);
++                this.changeContentEvent.fire();
++
++                returnVal = 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(_GROUP_INDEX, 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);
++        
++                }
++
++                YAHOO.log("Item added." + 
++                    " Text: " + oGroupItem.cfg.getProperty("text") + ", " + 
++                    " Index: " + oGroupItem.index + ", " + 
++                    " Group Index: " + oGroupItem.groupIndex, "info", this.toString());
++        
++
++                this.itemAddedEvent.fire(oGroupItem);
++                this.changeContentEvent.fire();
++
++                returnVal = oGroupItem;
++    
++            }
++    
++        }
++
++    }
++    
++    return returnVal;
++    
++},
++
++
++/**
++* @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 = Lang.isNumber(p_nGroupIndex) ? 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,
++        returnVal,
++        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) {
++        
++                returnVal = this._removeItemFromGroupByIndex(p_nGroupIndex, nItemIndex);
++        
++            }
++    
++        }
++    
++    }
++    
++    return returnVal;
++
++},
++
++
++/**
++* @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(_GROUP_INDEX, 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,
++    	returnVal;
++
++    if (!this._aItemGroups[p_nIndex]) {
++
++        this._aItemGroups[p_nIndex] = [];
++
++        oUL = document.createElement(_UL_LOWERCASE);
++
++        this._aListElements[p_nIndex] = oUL;
++
++        returnVal = this._aItemGroups[p_nIndex];
++
++    }
++    
++    return returnVal;
++
++},
++
++
++/**
++* @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 = Lang.isNumber(p_nIndex) ? p_nIndex : 0,
++    	aGroups = this._aItemGroups,
++    	returnVal;
++
++	if (nIndex in aGroups) {
++
++	    returnVal = aGroups[nIndex];
++
++	}
++	
++	return returnVal;
++
++},
++
++
++/**
++* @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);
++
++    }
++
++},
++
++
++
++
++/**
++* @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.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 oTimer = this.getRoot()._hideDelayTimer;
++
++    if (oTimer) {
++
++		oTimer.cancel();
++
++    }
++
++},
++
++
++/**
++* @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();
++        
++	oRoot._hideDelayTimer = Lang.later(oRoot.cfg.getProperty(_HIDE_DELAY), this, function () {
++    
++        if (oRoot.activeItem) {
++
++			if (oRoot.hasFocus()) {
++
++				oRoot.activeItem.focus();
++			
++			}
++			
++            oRoot.clearActiveItem();
++
++        }
++
++        if (oRoot == this && !(this instanceof YAHOO.widget.MenuBar) && 
++            this.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++            this.hide();
++        
++        }
++    
++    });
++
++},
++
++
++/**
++* @method _cancelShowDelay
++* @description Cancels the call to the "showMenu."
++* @private
++*/
++_cancelShowDelay: function () {
++
++    var oTimer = this.getRoot()._showDelayTimer;
++
++    if (oTimer) {
++
++        oTimer.cancel();
++
++    }
++
++},
++
++
++/**
++* @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) {
++
++	p_oSubmenu._submenuHideDelayTimer = Lang.later(50, this, function () {
++
++        if (this._nCurrentMouseX > (p_nMouseX + 10)) {
++
++            p_oSubmenu._submenuHideDelayTimer = Lang.later(p_nHideDelay, p_oSubmenu, function () {
++        
++                this.hide();
++
++            });
++
++        }
++        else {
++
++            p_oSubmenu.hide();
++        
++        }
++	
++	});
++
++},
++
++
++
++// 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, _TOP_SCROLLBAR_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, _BOTTOM_SCROLLBAR_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, _TOP_SCROLLBAR_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, _BOTTOM_SCROLLBAR_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) {
++
++    var oEvent = p_aArgs[0],
++        oItem = p_aArgs[1],
++        oTarget = Event.getTarget(oEvent),
++        oRoot = this.getRoot(),
++        oSubmenuHideDelayTimer = this._submenuHideDelayTimer,
++        oParentMenu,
++        nShowDelay,
++        bShowDelay,
++        oActiveItem,
++        oItemCfg,
++        oSubmenu;
++
++
++    var showSubmenu = function () {
++
++        if (this.parent.cfg.getProperty(_SELECTED)) {
++
++            this.show();
++
++        }
++
++    };
++
++
++    if (!this._bStopMouseEventHandlers) {
++    
++		if (!this._bHandledMouseOverEvent && (oTarget == this.element || 
++				Dom.isAncestor(this.element, oTarget))) {
++	
++			// Menu mouseover logic
++
++	        if (this._useHideDelay) {
++	        	this._cancelHideDelay();
++	        }
++	
++			this._nCurrentMouseX = 0;
++	
++			Event.on(this.element, _MOUSEMOVE, this._onMouseMove, this, true);
++
++
++			/*
++				If the mouse is moving from the submenu back to its corresponding menu item, 
++				don't hide the submenu or clear the active MenuItem.
++			*/
++
++			if (!(oItem && Dom.isAncestor(oItem.element, Event.getRelatedTarget(oEvent)))) {
++
++				this.clearActiveItem();
++
++			}
++	
++
++			if (this.parent && oSubmenuHideDelayTimer) {
++	
++				oSubmenuHideDelayTimer.cancel();
++	
++				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(_SHOW_DELAY);
++			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() || oRoot._hasFocus) {
++			
++				oItem.focus();
++				
++				oRoot._hasFocus = false;
++			
++			}
++	
++	
++			if (this.cfg.getProperty(_AUTO_SUBMENU_DISPLAY)) {
++	
++				// Show the submenu this menu item
++	
++				oSubmenu = oItemCfg.getProperty(_SUBMENU);
++			
++				if (oSubmenu) {
++			
++					if (bShowDelay) {
++	
++						oRoot._showDelayTimer = 
++							Lang.later(oRoot.cfg.getProperty(_SHOW_DELAY), oSubmenu, showSubmenu);
++			
++					}
++					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) {
++
++    var oEvent = p_aArgs[0],
++        oItem = p_aArgs[1],
++        oRelatedTarget = Event.getRelatedTarget(oEvent),
++        bMovingToSubmenu = false,
++        oItemCfg,
++        oSubmenu,
++        nSubmenuHideDelay,
++        nShowDelay;
++
++
++    if (!this._bStopMouseEventHandlers) {
++    
++		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(_SUBMENU_HIDE_DELAY);
++	
++						nShowDelay = this.cfg.getProperty(_SHOW_DELAY);
++	
++						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
++
++	        if (this._useHideDelay) {
++	        	this._execHideDelay();
++	        }
++
++			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) {
++    
++	    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 oEvent = p_aArgs[0],
++		oItem = p_aArgs[1],
++		bInMenuAnchor = false,
++		oSubmenu,
++		oMenu,
++		oRoot,
++		sId,
++		sURL,
++		nHashPos,
++		nLen;
++
++
++	var hide = function () {
++		
++		oRoot = this.getRoot();
++
++		if (oRoot instanceof YAHOO.widget.MenuBar || 
++			oRoot.cfg.getProperty(_POSITION) == _STATIC) {
++
++			oRoot.clearActiveItem();
++
++		}
++		else {
++
++			oRoot.hide();
++		
++		}
++	
++	};
++
++
++	if (oItem) {
++	
++		if (oItem.cfg.getProperty(_DISABLED)) {
++		
++			Event.preventDefault(oEvent);
++
++			hide.call(this);
++
++		}
++		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(_HASH);
++	
++				nLen = sURL.length;
++	
++	
++				if (nHashPos != -1) {
++	
++					sURL = sURL.substr(nHashPos, nLen);
++		
++					nLen = sURL.length;
++	
++	
++					if (nLen > 1) {
++	
++						sId = sURL.substr(1, nLen);
++	
++						oMenu = YAHOO.widget.MenuManager.getMenu(sId);
++						
++						if (oMenu) {
++
++							bInMenuAnchor = 
++								(this.getRoot() === oMenu.getRoot());
++
++						}
++						
++					}
++					else if (nLen === 1) {
++	
++						bInMenuAnchor = true;
++					
++					}
++	
++				}
++			
++			}
++
++	
++			if (bInMenuAnchor && !oItem.cfg.getProperty(_TARGET)) {
++	
++				Event.preventDefault(oEvent);
++				
++
++				if (UA.webkit) {
++				
++					oItem.focus();
++				
++				}
++				else {
++
++					oItem.focusEvent.fire();
++				
++				}
++			
++			}
++	
++	
++			if (!oSubmenu && !this.cfg.getProperty(_KEEP_OPEN)) {
++	
++				hide.call(this);
++	
++			}
++			
++		}
++	
++	}
++
++},
++
++
++/**
++* @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],
++        oSubmenu,
++        oItemCfg,
++        oParentItem,
++        oRoot,
++        oNextItem,
++        oBody,
++        nBodyScrollTop,
++        nBodyOffsetHeight,
++        aItems,
++        nItems,
++        nNextItemOffsetTop,
++        nScrollTarget,
++        oParentMenu,
++		oFocusedEl;
++
++
++	if (this._useHideDelay) {
++		this._cancelHideDelay();
++	}
++
++
++    /*
++        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() {
++
++        this._bStopMouseEventHandlers = true;
++        
++        Lang.later(10, this, function () {
++
++            this._bStopMouseEventHandlers = false;
++        
++        });
++
++    }
++
++
++    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(_MAX_HEIGHT) > 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();
++                                oSubmenu.setInitialFocus();
++                            
++                            }
++                            else {
++    
++                            	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();
++								oSubmenu.setInitialFocus();                                
++                            
++                            }
++                            else {
++    
++                            	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 {
++				// Focus the element that previously had focus
++
++				oFocusedEl = this._focusedElement;
++
++				if (oFocusedEl && oFocusedEl.focus) {
++
++					try {
++						oFocusedEl.focus();
++					}
++					catch(ex) {
++					}
++
++				}
++				
++			}
++
++        }
++        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 _onBlur
++* @description "blur" 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.
++*/
++_onBlur: function (p_sType, p_aArgs) {
++        
++	if (this._hasFocus) {
++		this._hasFocus = false;
++	}
++
++},
++
++/**
++* @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) {
++
++	var oBodyScrollTimer = this._bodyScrollTimer;
++
++
++	if (oBodyScrollTimer) {
++
++		oBodyScrollTimer.cancel();
++
++	}
++
++
++	this._cancelHideDelay();
++
++
++    var oTarget = Event.getTarget(p_oEvent),
++        oBody = this.body,
++        nScrollIncrement = this.cfg.getProperty(_SCROLL_INCREMENT),
++        nScrollTarget,
++        fnScrollFunction;
++
++
++    function scrollBodyDown() {
++
++        var nScrollTop = oBody.scrollTop;
++
++
++        if (nScrollTop < nScrollTarget) {
++
++            oBody.scrollTop = (nScrollTop + nScrollIncrement);
++
++            this._enableScrollHeader();
++
++        }
++        else {
++
++            oBody.scrollTop = nScrollTarget;
++
++            this._bodyScrollTimer.cancel();
++
++            this._disableScrollFooter();
++
++        }
++
++    }
++
++
++    function scrollBodyUp() {
++
++        var nScrollTop = oBody.scrollTop;
++
++
++        if (nScrollTop > 0) {
++
++            oBody.scrollTop = (nScrollTop - nScrollIncrement);
++
++            this._enableScrollFooter();
++
++        }
++        else {
++
++            oBody.scrollTop = 0;
++
++			this._bodyScrollTimer.cancel();
++
++            this._disableScrollHeader();
++
++        }
++
++    }
++
++    
++    if (Dom.hasClass(oTarget, _HD)) {
++
++        fnScrollFunction = scrollBodyUp;
++    
++    }
++    else {
++
++        nScrollTarget = oBody.scrollHeight - oBody.offsetHeight;
++
++        fnScrollFunction = scrollBodyDown;
++    
++    }
++    
++
++    this._bodyScrollTimer = Lang.later(10, this, fnScrollFunction, null, true);
++
++},
++
++
++/**
++* @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) {
++
++	var oBodyScrollTimer = this._bodyScrollTimer;
++
++	if (oBodyScrollTimer) {
++
++		oBodyScrollTimer.cancel();
++
++	}
++	
++    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, _HAS_TITLE);
++
++                }
++
++            }
++
++            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,
++        oSrcElement,
++        oContainer = this.cfg.getProperty(_CONTAINER);
++
++
++    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(oContainer);
++                
++                }
++
++            }
++            else {
++
++                this.render();
++
++            }
++
++        }
++        else {
++
++            if (this.parent) {
++
++                this.render(this.parent.element);     
++
++            }
++            else {
++
++                this.render(oContainer);
++
++            }                
++
++        }
++
++    }
++
++
++
++    var oParent = this.parent,
++		aAlignment;
++
++
++    if (!oParent && this.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++        this.cfg.refireEvent(_XY);
++   
++    }
++
++
++	if (oParent) {
++
++		aAlignment = oParent.parent.cfg.getProperty(_SUBMENU_ALIGNMENT);
++		
++		this.cfg.setProperty(_CONTEXT, [oParent.element, aAlignment[0], aAlignment[1]]);
++		this.align();
++	
++	}
++
++},
++
++
++getConstrainedY: function (y) {
++
++	var oMenu = this,
++	
++		aContext = oMenu.cfg.getProperty(_CONTEXT),
++		nInitialMaxHeight = oMenu.cfg.getProperty(_MAX_HEIGHT),
++
++		nMaxHeight,
++
++		oOverlapPositions = {
++
++			"trbr": true,
++			"tlbl": true,
++			"bltl": true,
++			"brtr": true
++
++		},
++
++		bPotentialContextOverlap = (aContext && oOverlapPositions[aContext[1] + aContext[2]]),
++	
++		oMenuEl = oMenu.element,
++		nMenuOffsetHeight = oMenuEl.offsetHeight,
++	
++		nViewportOffset = Overlay.VIEWPORT_OFFSET,
++		viewPortHeight = Dom.getViewportHeight(),
++		scrollY = Dom.getDocumentScrollTop(),
++
++		bCanConstrain = 
++			(oMenu.cfg.getProperty(_MIN_SCROLL_HEIGHT) + nViewportOffset < viewPortHeight),
++
++		nAvailableHeight,
++
++		oContextEl,
++		nContextElY,
++		nContextElHeight,
++
++		bFlipped = false,
++
++		nTopRegionHeight,
++		nBottomRegionHeight,
++
++		topConstraint = scrollY + nViewportOffset,
++		bottomConstraint = scrollY + viewPortHeight - nMenuOffsetHeight - nViewportOffset,
++
++		yNew = y;
++		
++
++	var flipVertical = function () {
++
++		var nNewY;
++	
++		// The Menu is below the context element, flip it above
++		if ((oMenu.cfg.getProperty(_Y) - scrollY) > nContextElY) { 
++			nNewY = (nContextElY - nMenuOffsetHeight);
++		}
++		else {	// The Menu is above the context element, flip it below
++			nNewY = (nContextElY + nContextElHeight);
++		}
++
++		oMenu.cfg.setProperty(_Y, (nNewY + scrollY), true);
++		
++		return nNewY;
++	
++	};
++
++
++	/*
++		 Uses the context element's position to calculate the availble height 
++		 above and below it to display its corresponding Menu.
++	*/
++
++	var getDisplayRegionHeight = function () {
++
++		// The Menu is below the context element
++		if ((oMenu.cfg.getProperty(_Y) - scrollY) > nContextElY) {
++			return (nBottomRegionHeight - nViewportOffset);				
++		}
++		else {	// The Menu is above the context element
++			return (nTopRegionHeight - nViewportOffset);				
++		}
++
++	};
++
++
++	/*
++		Sets the Menu's "y" configuration property to the correct value based on its
++		current orientation.
++	*/ 
++
++	var alignY = function () {
++
++		var nNewY;
++
++		if ((oMenu.cfg.getProperty(_Y) - scrollY) > nContextElY) { 
++			nNewY = (nContextElY + nContextElHeight);
++		}
++		else {	
++			nNewY = (nContextElY - oMenuEl.offsetHeight);
++		}
++
++		oMenu.cfg.setProperty(_Y, (nNewY + scrollY), true);
++	
++	};
++
++
++	//	Resets the maxheight of the Menu to the value set by the user
++
++	var resetMaxHeight = function () {
++
++		oMenu._setScrollHeight(this.cfg.getProperty(_MAX_HEIGHT));
++
++		oMenu.hideEvent.unsubscribe(resetMaxHeight);
++	
++	};
++
++
++	/*
++		Trys to place the Menu in the best possible position (either above or 
++		below its corresponding context element).
++	*/
++
++	var setVerticalPosition = function () {
++
++		var nDisplayRegionHeight = getDisplayRegionHeight(),
++			bMenuHasItems = (oMenu.getItems().length > 0),
++			nMenuMinScrollHeight,
++			fnReturnVal;
++
++
++		if (nMenuOffsetHeight > nDisplayRegionHeight) {
++
++			nMenuMinScrollHeight = 
++				bMenuHasItems ? oMenu.cfg.getProperty(_MIN_SCROLL_HEIGHT) : nMenuOffsetHeight;
++
++
++			if ((nDisplayRegionHeight > nMenuMinScrollHeight) && bMenuHasItems) {
++				nMaxHeight = nDisplayRegionHeight;
++			}
++			else {
++				nMaxHeight = nInitialMaxHeight;
++			}
++
++
++			oMenu._setScrollHeight(nMaxHeight);
++			oMenu.hideEvent.subscribe(resetMaxHeight);
++			
++
++			// Re-align the Menu since its height has just changed
++			// as a result of the setting of the maxheight property.
++
++			alignY();
++			
++
++			if (nDisplayRegionHeight < nMenuMinScrollHeight) {
++
++				if (bFlipped) {
++	
++					/*
++						 All possible positions and values for the "maxheight" 
++						 configuration property have been tried, but none were 
++						 successful, so fall back to the original size and position.
++					*/
++
++					flipVertical();
++					
++				}
++				else {
++	
++					flipVertical();
++
++					bFlipped = true;
++	
++					fnReturnVal = setVerticalPosition();
++	
++				}
++				
++			}
++		
++		}
++		else if (nMaxHeight && (nMaxHeight !== nInitialMaxHeight)) {
++		
++			oMenu._setScrollHeight(nInitialMaxHeight);
++			oMenu.hideEvent.subscribe(resetMaxHeight);
++
++			// Re-align the Menu since its height has just changed
++			// as a result of the setting of the maxheight property.
++
++			alignY();
++		
++		}
++
++		return fnReturnVal;
++
++	};
++
++
++	// Determine if the current value for the Menu's "y" configuration property will
++	// result in the Menu being positioned outside the boundaries of the viewport
++
++	if (y < topConstraint || y  > bottomConstraint) {
++
++		// The current value for the Menu's "y" configuration property WILL
++		// result in the Menu being positioned outside the boundaries of the viewport
++
++		if (bCanConstrain) {
++
++			if (oMenu.cfg.getProperty(_PREVENT_CONTEXT_OVERLAP) && bPotentialContextOverlap) {
++		
++				//	SOLUTION #1:
++				//	If the "preventcontextoverlap" configuration property is set to "true", 
++				//	try to flip and/or scroll the Menu to both keep it inside the boundaries of the 
++				//	viewport AND from overlaping its context element (MenuItem or MenuBarItem).
++
++				oContextEl = aContext[0];
++				nContextElHeight = oContextEl.offsetHeight;
++				nContextElY = (Dom.getY(oContextEl) - scrollY);
++	
++				nTopRegionHeight = nContextElY;
++				nBottomRegionHeight = (viewPortHeight - (nContextElY + nContextElHeight));
++	
++				setVerticalPosition();
++				
++				yNew = oMenu.cfg.getProperty(_Y);
++		
++			}
++			else if (!(oMenu instanceof YAHOO.widget.MenuBar) && 
++				nMenuOffsetHeight >= viewPortHeight) {
++
++				//	SOLUTION #2:
++				//	If the Menu exceeds the height of the viewport, introduce scroll bars
++				//	to keep the Menu inside the boundaries of the viewport
++
++				nAvailableHeight = (viewPortHeight - (nViewportOffset * 2));
++		
++				if (nAvailableHeight > oMenu.cfg.getProperty(_MIN_SCROLL_HEIGHT)) {
++		
++					oMenu._setScrollHeight(nAvailableHeight);
++					oMenu.hideEvent.subscribe(resetMaxHeight);
++		
++					alignY();
++					
++					yNew = oMenu.cfg.getProperty(_Y);
++				
++				}
++		
++			}	
++			else {
++
++				//	SOLUTION #3:
++			
++				if (y < topConstraint) {
++					yNew  = topConstraint;
++				} else if (y  > bottomConstraint) {
++					yNew  = bottomConstraint;
++				}				
++			
++			}
++
++		}
++		else {
++			//	The "y" configuration property cannot be set to a value that will keep
++			//	entire Menu inside the boundary of the viewport.  Therefore, set  
++			//	the "y" configuration property to scrollY to keep as much of the 
++			//	Menu inside the viewport as possible.
++			yNew = nViewportOffset + scrollY;
++		}	
++
++	}
++
++	return yNew;
++
++},
++
++
++/**
++* @method _onHide
++* @description "hide" 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.
++*/
++_onHide: function (p_sType, p_aArgs) {
++
++	if (this.cfg.getProperty(_POSITION) === _DYNAMIC) {
++	
++		this.positionOffScreen();
++	
++	}
++
++},
++
++
++/**
++* @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,
++		oElement,
++		nOffsetWidth,
++		sWidth;        
++
++
++    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(_AUTO_SUBMENU_DISPLAY, false);
++
++                Event.removeListener(document, _MOUSEDOWN, disableAutoSubmenuDisplay);
++                Event.removeListener(document, _KEYDOWN, disableAutoSubmenuDisplay);
++
++            }
++        
++        }
++
++    }
++
++
++	function onSubmenuHide(p_sType, p_aArgs, p_sWidth) {
++	
++		this.cfg.setProperty(_WIDTH, _EMPTY_STRING);
++		this.hideEvent.unsubscribe(onSubmenuHide, p_sWidth);
++	
++	}
++
++
++    if (oParent) {
++
++        oParentMenu = oParent.parent;
++
++
++        if (!oParentMenu.cfg.getProperty(_AUTO_SUBMENU_DISPLAY) && 
++            (oParentMenu instanceof YAHOO.widget.MenuBar || 
++            oParentMenu.cfg.getProperty(_POSITION) == _STATIC)) {
++
++            oParentMenu.cfg.setProperty(_AUTO_SUBMENU_DISPLAY, true);
++
++            Event.on(document, _MOUSEDOWN, disableAutoSubmenuDisplay);                             
++            Event.on(document, _KEYDOWN, disableAutoSubmenuDisplay);
++
++        }
++
++
++		//	The following fixes an issue with the selected state of a MenuItem 
++		//	not rendering correctly when a submenu is aligned to the left of
++		//	its parent Menu instance.
++
++		if ((this.cfg.getProperty("x") < oParentMenu.cfg.getProperty("x")) && 
++			(UA.gecko && UA.gecko < 1.9) && !this.cfg.getProperty(_WIDTH)) {
++
++			oElement = this.element;
++			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);
++		
++			this.hideEvent.subscribe(onSubmenuHide, sWidth);
++		
++		}
++
++    }
++
++
++	/*
++		Dynamically positioned, root Menus focus themselves when visible, and 
++		will then, when hidden, restore focus to the UI control that had focus 
++		before the Menu was made visible.
++	*/ 
++
++	if (this === this.getRoot() && this.cfg.getProperty(_POSITION) === _DYNAMIC) {
++
++		this._focusedElement = oFocusedElement;
++		
++		this.focus();
++	
++	}
++
++
++},
++
++
++/**
++* @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,
++        oRoot = this.getRoot(),
++        oConfig,
++        oSubmenu;
++
++
++    if (oActiveItem) {
++
++        oConfig = oActiveItem.cfg;
++
++        oConfig.setProperty(_SELECTED, false);
++
++        oSubmenu = oConfig.getProperty(_SUBMENU);
++
++        if (oSubmenu) {
++
++            oSubmenu.hide();
++
++        }
++
++    }
++
++
++	/*
++		Focus can get lost in IE when the mouse is moving from a submenu back to its parent Menu.  
++		For this reason, it is necessary to maintain the focused state in a private property 
++		so that the _onMouseOver event handler is able to determined whether or not to set focus
++		to MenuItems as the user is moving the mouse.
++	*/ 
++
++	if (UA.ie && this.cfg.getProperty(_POSITION) === _DYNAMIC && this.parent) {
++
++		oRoot._hasFocus = this.hasFocus();
++	
++	}
++
++
++    if (oRoot == this) {
++
++        oRoot.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 _CONSTRAIN_TO_VIEWPORT:
++        case _HIDE_DELAY:
++        case _SHOW_DELAY:
++        case _SUBMENU_HIDE_DELAY:
++        case _CLICK_TO_HIDE:
++        case _EFFECT:
++        case _CLASSNAME:
++        case _SCROLL_INCREMENT:
++        case _MAX_HEIGHT:
++        case _MIN_SCROLL_HEIGHT:
++        case _MONITOR_RESIZE:
++        case _SHADOW:
++        case _PREVENT_CONTEXT_OVERLAP:
++		case _KEEP_OPEN:
++
++            p_oSubmenu.cfg.setProperty(sPropertyName, oPropertyValue);
++                
++        break;
++        
++        case _SUBMENU_ALIGNMENT:
++
++			if (!(this.parent.parent instanceof YAHOO.widget.MenuBar)) {
++		
++				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 oParentMenu = p_oSubmenu.parent.parent,
++    	oParentCfg = oParentMenu.cfg,
++
++        oConfig = {
++
++            constraintoviewport: oParentCfg.getProperty(_CONSTRAIN_TO_VIEWPORT),
++
++            xy: [0,0],
++
++            clicktohide: oParentCfg.getProperty(_CLICK_TO_HIDE),
++                
++            effect: oParentCfg.getProperty(_EFFECT),
++
++            showdelay: oParentCfg.getProperty(_SHOW_DELAY),
++            
++            hidedelay: oParentCfg.getProperty(_HIDE_DELAY),
++
++            submenuhidedelay: oParentCfg.getProperty(_SUBMENU_HIDE_DELAY),
++
++            classname: oParentCfg.getProperty(_CLASSNAME),
++            
++            scrollincrement: oParentCfg.getProperty(_SCROLL_INCREMENT),
++            
++			maxheight: oParentCfg.getProperty(_MAX_HEIGHT),
++
++            minscrollheight: oParentCfg.getProperty(_MIN_SCROLL_HEIGHT),
++            
++            iframe: oParentCfg.getProperty(_IFRAME),
++            
++            shadow: oParentCfg.getProperty(_SHADOW),
++
++			preventcontextoverlap: oParentCfg.getProperty(_PREVENT_CONTEXT_OVERLAP),
++            
++            monitorresize: oParentCfg.getProperty(_MONITOR_RESIZE),
++
++			keepopen: oParentCfg.getProperty(_KEEP_OPEN)
++
++        },
++        
++        oLI;
++
++
++	
++	if (!(oParentMenu instanceof YAHOO.widget.MenuBar)) {
++
++		oConfig[_SUBMENU_ALIGNMENT] = oParentCfg.getProperty(_SUBMENU_ALIGNMENT);
++
++	}
++
++
++    p_oSubmenu.cfg.applyConfig(oConfig);
++
++
++    if (!this.lazyLoad) {
++
++        oLI = this.parent.element;
++
++        if (this.element.parentNode == oLI) {
++    
++            this.render();
++    
++        }
++        else {
++
++            this.render(oLI);
++    
++        }
++
++    }
++    
++},
++
++
++/**
++* @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 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) { 	 
++  	 
++             oCfg.setProperty(_ZINDEX, 1); 	 
++  	 
++         } 	 
++  	 
++     }
++
++},
++
++
++/**
++* @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];
++
++	this._useHideDelay = (nHideDelay > 0);
++
++},
++
++
++/**
++* @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 (Lang.isString(oElement)) {
++
++        this.cfg.setProperty(_CONTAINER, Dom.get(oElement), true);
++
++	}
++
++},
++
++
++/**
++* @method _clearSetWidthFlag
++* @description Change event listener for the "width" configuration property.  This listener is 
++* added when a Menu's "width" configuration property is set by the "_setScrollHeight" method, and 
++* is used to set the "_widthSetForScroll" property to "false" if the "width" configuration property 
++* is changed after it was set by the "_setScrollHeight" method.  If the "_widthSetForScroll" 
++* property is set to "false", and the "_setScrollHeight" method is in the process of tearing down 
++* scrolling functionality, it will maintain the Menu's new width rather than reseting it.
++* @private
++*/
++_clearSetWidthFlag: function () {
++
++	this._widthSetForScroll = false;
++	
++	this.cfg.unsubscribeFromConfigEvent(_WIDTH, this._clearSetWidthFlag);
++
++},
++
++
++/**
++* @method _setScrollHeight
++* @description 
++* @param {String} p_nScrollHeight Number representing the scrolling height of the Menu.
++* @private
++*/
++_setScrollHeight: function (p_nScrollHeight) {
++
++    var nScrollHeight = p_nScrollHeight,
++		bRefireIFrameAndShadow = false,
++		bSetWidth = false,
++        oElement,
++        oBody,
++        oHeader,
++        oFooter,
++        fnMouseOver,
++        fnMouseOut,
++        nMinScrollHeight,
++        nHeight,
++        nOffsetWidth,
++        sWidth;
++
++
++	if (this.getItems().length > 0) {
++	
++        oElement = this.element;
++        oBody = this.body;
++        oHeader = this.header;
++        oFooter = this.footer;
++        fnMouseOver = this._onScrollTargetMouseOver;
++        fnMouseOut = this._onScrollTargetMouseOut;
++        nMinScrollHeight = this.cfg.getProperty(_MIN_SCROLL_HEIGHT);
++
++
++		if (nScrollHeight > 0 && nScrollHeight < nMinScrollHeight) {
++		
++			nScrollHeight = nMinScrollHeight;
++		
++		}
++
++
++		Dom.setStyle(oBody, _HEIGHT, _EMPTY_STRING);
++		Dom.removeClass(oBody, _YUI_MENU_BODY_SCROLLED);
++		oBody.scrollTop = 0;
++
++
++		//	Need to set a width for the Menu to fix the following problems in 
++		//	Firefox 2 and IE:
++
++		//	#1) Scrolled Menus will render at 1px wide in Firefox 2
++
++		//	#2) 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.
++
++		//	#3) In IE it is necessary to give the Menu a width before the 
++		//	scrollbars are rendered to prevent the Menu from rendering with a 
++		//	width that is 100% of the browser viewport.
++	
++		bSetWidth = ((UA.gecko && UA.gecko < 1.9) || UA.ie);
++
++		if (nScrollHeight > 0 && bSetWidth && !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.unsubscribeFromConfigEvent(_WIDTH, this._clearSetWidthFlag);
++
++			YAHOO.log("Setting the \"width\" configuration property to " + sWidth + " for srolling.", 
++				"info", this.toString());
++
++			this.cfg.setProperty(_WIDTH, sWidth);
++
++
++			/*
++				Set a flag (_widthSetForScroll) to maintain some history regarding how the 
++				"width" configuration property was set.  If the "width" configuration property 
++				is set by something other than the "_setScrollHeight" method, it will be 
++				necessary to maintain that new value and not clear the width if scrolling 
++				is turned off.
++			*/
++
++			this._widthSetForScroll = true;
++
++			this.cfg.subscribeToConfigEvent(_WIDTH, this._clearSetWidthFlag);
++	
++		}
++	
++	
++		if (nScrollHeight > 0 && (!oHeader && !oFooter)) {
++	
++			YAHOO.log("Creating header and footer for scrolling.", "info", this.toString());
++	
++			this.setHeader(_NON_BREAKING_SPACE);
++			this.setFooter(_NON_BREAKING_SPACE);
++	
++			oHeader = this.header;
++			oFooter = this.footer;
++	
++			Dom.addClass(oHeader, _TOP_SCROLLBAR);
++			Dom.addClass(oFooter, _BOTTOM_SCROLLBAR);
++			
++			oElement.insertBefore(oHeader, oBody);
++			oElement.appendChild(oFooter);
++		
++		}
++	
++	
++		nHeight = nScrollHeight;
++	
++	
++		if (oHeader && oFooter) {
++			nHeight = (nHeight - (oHeader.offsetHeight + oFooter.offsetHeight));
++		}
++	
++	
++		if ((nHeight > 0) && (oBody.offsetHeight > nScrollHeight)) {
++
++			YAHOO.log("Setting up styles and event handlers for scrolling.", 
++				"info", this.toString());
++	
++			Dom.addClass(oBody, _YUI_MENU_BODY_SCROLLED);
++			Dom.setStyle(oBody, _HEIGHT, (nHeight + _PX));
++
++			if (!this._hasScrollEventHandlers) {
++	
++				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._hasScrollEventHandlers = true;
++	
++			}
++	
++			this._disableScrollHeader();
++			this._enableScrollFooter();
++			
++			bRefireIFrameAndShadow = true;			
++	
++		}
++		else if (oHeader && oFooter) {
++
++			YAHOO.log("Removing styles and event handlers for scrolling.", "info", this.toString());
++	
++
++			/*
++				Only clear the the "width" configuration property if it was set the 
++				"_setScrollHeight" method and wasn't changed by some other means after it was set.
++			*/	
++	
++			if (this._widthSetForScroll) {
++	
++				YAHOO.log("Clearing width used for scrolling.", "info", this.toString());
++
++				this._widthSetForScroll = false;
++
++				this.cfg.unsubscribeFromConfigEvent(_WIDTH, this._clearSetWidthFlag);
++	
++				this.cfg.setProperty(_WIDTH, _EMPTY_STRING);
++			
++			}
++	
++	
++			this._enableScrollHeader();
++			this._enableScrollFooter();
++	
++			if (this._hasScrollEventHandlers) {
++	
++				Event.removeListener(oHeader, _MOUSEOVER, fnMouseOver);
++				Event.removeListener(oHeader, _MOUSEOUT, fnMouseOut);
++				Event.removeListener(oFooter, _MOUSEOVER, fnMouseOver);
++				Event.removeListener(oFooter, _MOUSEOUT, fnMouseOut);
++
++				this._hasScrollEventHandlers = false;
++	
++			}
++
++			oElement.removeChild(oHeader);
++			oElement.removeChild(oFooter);
++	
++			this.header = null;
++			this.footer = null;
++			
++			bRefireIFrameAndShadow = true;
++		
++		}
++
++
++		if (bRefireIFrameAndShadow) {
++	
++			this.cfg.refireEvent(_IFRAME);
++			this.cfg.refireEvent(_SHADOW);
++		
++		}
++	
++	}
++
++},
++
++
++/**
++* @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._setScrollHeight(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];
++
++	if (this.lazyLoad && !this.body && nMaxHeight > 0) {
++	
++		this.renderEvent.subscribe(this._setMaxHeight, nMaxHeight, this);
++
++	}
++	else {
++
++		this._setScrollHeight(nMaxHeight);
++	
++	}
++
++},
++
++
++/**
++* @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 configShadow
++* @description Event handler for when the "shadow" 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.
++*/
++configShadow: function (p_sType, p_aArgs, p_oMenu) {
++
++    var sizeShadow = function () {
++
++        var oElement = this.element,
++            oShadow = this._shadow;
++    
++        if (oShadow && oElement) {
++
++			// Clear the previous width
++
++			if (oShadow.style.width && oShadow.style.height) {
++			
++				oShadow.style.width = _EMPTY_STRING;
++				oShadow.style.height = _EMPTY_STRING;
++			
++			}
++
++            oShadow.style.width = (oElement.offsetWidth + 6) + _PX;
++            oShadow.style.height = (oElement.offsetHeight + 1) + _PX;
++            
++        }
++    
++    };
++
++
++    var replaceShadow = function () {
++
++        this.element.appendChild(this._shadow);
++
++    };
++
++
++    var addShadowVisibleClass = function () {
++    
++        Dom.addClass(this._shadow, _YUI_MENU_SHADOW_VISIBLE);
++    
++    };
++    
++
++    var removeShadowVisibleClass = function () {
++
++        Dom.removeClass(this._shadow, _YUI_MENU_SHADOW_VISIBLE);
++    
++    };
++
++
++    var createShadow = function () {
++
++        var oShadow = this._shadow,
++            oElement;
++
++        if (!oShadow) {
++
++            oElement = this.element;
++
++
++            if (!m_oShadowTemplate) {
++
++                m_oShadowTemplate = document.createElement(_DIV_LOWERCASE);
++                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.
++                */
++        
++				Lang.later(0, this, function () {
++
++                    sizeShadow.call(this); 
++                    this.syncIframe();
++				
++				});
++
++
++                this.cfg.subscribeToConfigEvent(_WIDTH, sizeShadow);
++                this.cfg.subscribeToConfigEvent(_HEIGHT, sizeShadow);
++                this.cfg.subscribeToConfigEvent(_MAX_HEIGHT, sizeShadow);
++                this.changeContentEvent.subscribe(sizeShadow);
++
++                Module.textResizeEvent.subscribe(sizeShadow, this, true);
++                
++                this.destroyEvent.subscribe(function () {
++                
++                    Module.textResizeEvent.unsubscribe(sizeShadow, this);
++                
++                });
++        
++            }
++
++            this.cfg.subscribeToConfigEvent(_MAX_HEIGHT, replaceShadow);
++
++        }
++
++    };
++
++
++    var onBeforeShow = function () {
++
++    	if (this._shadow) {
++
++			// If called because the "shadow" event was refired - just append again and resize
++			
++			replaceShadow.call(this);
++			
++			if (UA.ie) {
++				sizeShadow.call(this);
++			}
++    	
++    	}
++    	else {
++    
++        	createShadow.call(this);
++        
++        }
++
++        this.beforeShowEvent.unsubscribe(onBeforeShow);
++    
++    };
++
++
++	var bShadow = p_aArgs[0];
++
++
++    if (bShadow && this.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++        if (this.cfg.getProperty(_VISIBLE)) {
++
++			if (this._shadow) {
++
++				// If the "shadow" event was refired - just append again and resize
++				
++				replaceShadow.call(this);
++				
++				if (UA.ie) {
++					sizeShadow.call(this);
++				}
++				
++			} 
++			else {
++            	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 i = EVENT_TYPES.length - 1,
++		aEventData,
++		oCustomEvent;
++
++
++	do {
++
++		aEventData = EVENT_TYPES[i];
++
++		oCustomEvent = this.createEvent(aEventData[1]);
++		oCustomEvent.signature = CustomEvent.LIST;
++		
++		this[aEventData[0]] = oCustomEvent;
++
++	}
++	while (i--);
++
++},
++
++
++/**
++* @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,
++    	oElement = this.element,
++        sPos = this.OFF_SCREEN_POSITION;
++    
++    oElement.style.top = _EMPTY_STRING;
++    oElement.style.left = _EMPTY_STRING;
++    
++    if (oIFrame) {
++
++		oIFrame.style.top = sPos;
++		oIFrame.style.left = sPos;
++    
++    }
++
++},
++
++
++/**
++* @method getRoot
++* @description Finds the menu's root menu.
++*/
++getRoot: function () {
++
++    var oItem = this.parent,
++        oParentMenu,
++        returnVal;
++
++    if (oItem) {
++
++        oParentMenu = oItem.parent;
++
++        returnVal = oParentMenu ? oParentMenu.getRoot() : this;
++
++    }
++    else {
++    
++        returnVal = this;
++    
++    }
++    
++    return returnVal;
++
++},
++
++
++/**
++* @method toString
++* @description Returns a string representing the menu.
++* @return {String}
++*/
++toString: function () {
++
++    var sReturnVal = _MENU,
++        sId = this.id;
++
++    if (sId) {
++
++        sReturnVal += (_SPACE + 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 (Lang.isString(p_sGroupTitle) && p_sGroupTitle.length > 0) {
++
++        nGroupIndex = Lang.isNumber(p_nGroupIndex) ? 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) {
++
++	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,
++        returnVal;
++
++
++    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) {
++        
++            returnVal = aItems;
++        
++        }
++
++    }
++
++	return returnVal;
++
++},
++
++
++/**
++* @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) {
++    
++	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,
++    	returnVal;
++    
++    if (!Lang.isUndefined(p_oObject)) {
++
++        if (p_oObject instanceof YAHOO.widget.MenuItem) {
++
++            oItem = this._removeItemFromGroupByValue(p_nGroupIndex, p_oObject);           
++
++        }
++        else if (Lang.isNumber(p_oObject)) {
++
++            oItem = this._removeItemFromGroupByIndex(p_nGroupIndex, p_oObject);
++
++        }
++
++        if (oItem) {
++
++            oItem.destroy();
++
++            YAHOO.log("Item removed." + 
++                " Text: " + oItem.cfg.getProperty("text") + ", " + 
++                " Index: " + oItem.index + ", " + 
++                " Group Index: " + oItem.groupIndex, "info", this.toString());
++
++            returnVal = oItem;
++
++        }
++
++    }
++
++	return returnVal;
++
++},
++
++
++/**
++* @method getItems
++* @description Returns an array of all of the items in the menu.
++* @return {Array}
++*/
++getItems: function () {
++
++    var aGroups = this._aItemGroups,
++        nGroups,
++        returnVal,
++        aItems = [];
++
++
++    if (Lang.isArray(aGroups)) {
++
++        nGroups = aGroups.length;
++
++        returnVal = ((nGroups == 1) ? aGroups[0] : (Array.prototype.concat.apply(aItems, aGroups)));
++
++    }
++
++	return returnVal;
++
++},
++
++
++/**
++* @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,
++    	returnVal;
++    
++    if (Lang.isNumber(p_nItemIndex)) {
++
++        aGroup = this._getItemGroup(p_nGroupIndex);
++
++        if (aGroup) {
++
++            returnVal = aGroup[p_nItemIndex];
++        
++        }
++
++    }
++    
++    return returnVal;
++    
++},
++
++
++/**
++* @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, oItem.groupIndex);
++
++            }
++        
++        }
++        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 = _EMPTY_STRING;
++
++    }
++
++    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);
++    
++    YAHOO.log("Destroyed.", "info", this.toString());
++
++},
++
++
++/**
++* @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(_SHOW_DELAY) > 0) {
++    
++        this._cancelShowDelay();
++    
++    }
++
++
++    var oActiveItem = this.activeItem,
++        oConfig,
++        oSubmenu;
++
++    if (oActiveItem) {
++
++        oConfig = oActiveItem.cfg;
++
++        if (p_bBlur) {
++
++            oActiveItem.blur();
++            
++            this.getRoot()._hasFocus = true;
++        
++        }
++
++        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());
++
++},
++
++
++_doItemSubmenuSubscribe: function (p_sType, p_aArgs, p_oObject) {
++
++    var oItem = p_aArgs[0],
++        oSubmenu = oItem.cfg.getProperty(_SUBMENU);
++
++    if (oSubmenu) {
++        oSubmenu.subscribe.apply(oSubmenu, p_oObject);
++    }
++
++},
++
++
++_doSubmenuSubscribe: function (p_sType, p_aArgs, p_oObject) { 
++
++    var oSubmenu = this.cfg.getProperty(_SUBMENU);
++    
++    if (oSubmenu) {
++        oSubmenu.subscribe.apply(oSubmenu, p_oObject);
++    }
++
++},
++
++
++/**
++* 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 () {
++
++	//	Subscribe to the event for this Menu instance
++    Menu.superclass.subscribe.apply(this, arguments);
++
++	//	Subscribe to the "itemAdded" event so that all future submenus
++	//	also subscribe to this event
++    Menu.superclass.subscribe.call(this, _ITEM_ADDED, this._doItemSubmenuSubscribe, 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, this._doSubmenuSubscribe, arguments);
++                }
++
++            }
++            while (i--);
++        
++        }
++
++    }
++
++},
++
++
++unsubscribe: function () {
++
++	//	Remove the event for this Menu instance
++    Menu.superclass.unsubscribe.apply(this, arguments);
++
++	//	Remove the "itemAdded" event so that all future submenus don't have 
++	//	the event handler
++    Menu.superclass.unsubscribe.call(this, _ITEM_ADDED, this._doItemSubmenuSubscribe, 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.unsubscribe.apply(oSubmenu, arguments);
++                }
++                else {
++                    oItem.cfg.unsubscribeFromConfigEvent(_SUBMENU, this._doSubmenuSubscribe, 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 Menu'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 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(
++        VISIBLE_CONFIG.key, 
++        {
++            handler: this.configVisible, 
++            value: VISIBLE_CONFIG.value, 
++            validator: VISIBLE_CONFIG.validator
++        }
++     );
++
++
++    /*
++        Change the default value for the "constraintoviewport" configuration 
++        property (inherited by YAHOO.widget.Overlay) 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(
++        CONSTRAIN_TO_VIEWPORT_CONFIG.key, 
++        {
++            handler: this.configConstrainToViewport, 
++            value: CONSTRAIN_TO_VIEWPORT_CONFIG.value, 
++            validator: CONSTRAIN_TO_VIEWPORT_CONFIG.validator, 
++            supercedes: CONSTRAIN_TO_VIEWPORT_CONFIG.supercedes 
++        } 
++    );
++
++
++    /*
++        Change the default value for the "preventcontextoverlap" configuration 
++        property (inherited by YAHOO.widget.Overlay) to "true" by re-adding the property.
++    */
++
++	/**
++	* @config preventcontextoverlap
++	* @description Boolean indicating whether or not a submenu should overlap its parent MenuItem 
++	* when the "constraintoviewport" configuration property is set to "true".
++	* @type Boolean
++	* @default true
++	*/
++	oConfig.addProperty(PREVENT_CONTEXT_OVERLAP_CONFIG.key, {
++
++		value: PREVENT_CONTEXT_OVERLAP_CONFIG.value, 
++		validator: PREVENT_CONTEXT_OVERLAP_CONFIG.validator, 
++		supercedes: PREVENT_CONTEXT_OVERLAP_CONFIG.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(
++        POSITION_CONFIG.key, 
++        {
++            handler: this.configPosition,
++            value: POSITION_CONFIG.value, 
++            validator: POSITION_CONFIG.validator,
++            supercedes: POSITION_CONFIG.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(
++        SUBMENU_ALIGNMENT_CONFIG.key, 
++        { 
++            value: SUBMENU_ALIGNMENT_CONFIG.value,
++            suppressEvent: SUBMENU_ALIGNMENT_CONFIG.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(
++	   AUTO_SUBMENU_DISPLAY_CONFIG.key, 
++	   { 
++	       value: AUTO_SUBMENU_DISPLAY_CONFIG.value, 
++	       validator: AUTO_SUBMENU_DISPLAY_CONFIG.validator,
++	       suppressEvent: AUTO_SUBMENU_DISPLAY_CONFIG.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(
++	   SHOW_DELAY_CONFIG.key, 
++	   { 
++	       value: SHOW_DELAY_CONFIG.value, 
++	       validator: SHOW_DELAY_CONFIG.validator,
++	       suppressEvent: SHOW_DELAY_CONFIG.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(
++	   HIDE_DELAY_CONFIG.key, 
++	   { 
++	       handler: this.configHideDelay,
++	       value: HIDE_DELAY_CONFIG.value, 
++	       validator: HIDE_DELAY_CONFIG.validator, 
++	       suppressEvent: HIDE_DELAY_CONFIG.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(
++	   SUBMENU_HIDE_DELAY_CONFIG.key, 
++	   { 
++	       value: SUBMENU_HIDE_DELAY_CONFIG.value, 
++	       validator: SUBMENU_HIDE_DELAY_CONFIG.validator,
++	       suppressEvent: SUBMENU_HIDE_DELAY_CONFIG.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(
++        CLICK_TO_HIDE_CONFIG.key,
++        {
++            value: CLICK_TO_HIDE_CONFIG.value,
++            validator: CLICK_TO_HIDE_CONFIG.validator,
++            suppressEvent: CLICK_TO_HIDE_CONFIG.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(
++	   CONTAINER_CONFIG.key, 
++	   { 
++	       handler: this.configContainer,
++	       value: document.body,
++           suppressEvent: CONTAINER_CONFIG.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(
++        SCROLL_INCREMENT_CONFIG.key, 
++        { 
++            value: SCROLL_INCREMENT_CONFIG.value, 
++            validator: SCROLL_INCREMENT_CONFIG.validator,
++            supercedes: SCROLL_INCREMENT_CONFIG.supercedes,
++            suppressEvent: SCROLL_INCREMENT_CONFIG.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(
++        MIN_SCROLL_HEIGHT_CONFIG.key, 
++        { 
++            value: MIN_SCROLL_HEIGHT_CONFIG.value, 
++            validator: MIN_SCROLL_HEIGHT_CONFIG.validator,
++            supercedes: MIN_SCROLL_HEIGHT_CONFIG.supercedes,
++            suppressEvent: MIN_SCROLL_HEIGHT_CONFIG.suppressEvent
++        }
++    );
++
++
++    /**
++    * @config maxheight
++    * @description Number defining the maximum height (in pixels) for a menu's 
++    * body element (<code>&#60;div class="bd"&#62;</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(
++       MAX_HEIGHT_CONFIG.key, 
++       {
++            handler: this.configMaxHeight,
++            value: MAX_HEIGHT_CONFIG.value,
++            validator: MAX_HEIGHT_CONFIG.validator,
++            suppressEvent: MAX_HEIGHT_CONFIG.suppressEvent,
++            supercedes: MAX_HEIGHT_CONFIG.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(
++        CLASS_NAME_CONFIG.key, 
++        { 
++            handler: this.configClassName,
++            value: CLASS_NAME_CONFIG.value, 
++            validator: CLASS_NAME_CONFIG.validator,
++            supercedes: CLASS_NAME_CONFIG.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(
++        DISABLED_CONFIG.key, 
++        { 
++            handler: this.configDisabled,
++            value: DISABLED_CONFIG.value, 
++            validator: DISABLED_CONFIG.validator,
++            suppressEvent: DISABLED_CONFIG.suppressEvent
++        }
++    );
++
++
++    /**
++    * @config shadow
++    * @description Boolean indicating if the menu should have a shadow.
++    * @default true
++    * @type Boolean
++    */
++    oConfig.addProperty(
++        SHADOW_CONFIG.key, 
++        { 
++            handler: this.configShadow,
++            value: SHADOW_CONFIG.value, 
++            validator: SHADOW_CONFIG.validator
++        }
++    );
++
++
++    /**
++    * @config keepopen
++    * @description Boolean indicating if the menu should remain open when clicked.
++    * @default false
++    * @type Boolean
++    */
++    oConfig.addProperty(
++        KEEP_OPEN_CONFIG.key, 
++        { 
++            value: KEEP_OPEN_CONFIG.value, 
++            validator: KEEP_OPEN_CONFIG.validator
++        }
++    );
++
++}
++
++}); // 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,
++    UA = YAHOO.env.ua,
++    Lang = YAHOO.lang,
++
++	// Private string constants
++
++	_TEXT = "text",
++	_HASH = "#",
++	_HYPHEN = "-",
++	_HELP_TEXT = "helptext",
++	_URL = "url",
++	_TARGET = "target",
++	_EMPHASIS = "emphasis",
++	_STRONG_EMPHASIS = "strongemphasis",
++	_CHECKED = "checked",
++	_SUBMENU = "submenu",
++	_DISABLED = "disabled",
++	_SELECTED = "selected",
++	_HAS_SUBMENU = "hassubmenu",
++	_CHECKED_DISABLED = "checked-disabled",
++	_HAS_SUBMENU_DISABLED = "hassubmenu-disabled",
++	_HAS_SUBMENU_SELECTED = "hassubmenu-selected",
++	_CHECKED_SELECTED = "checked-selected",
++	_ONCLICK = "onclick",
++	_CLASSNAME = "classname",
++	_EMPTY_STRING = "",
++	_OPTION = "OPTION",
++	_OPTGROUP = "OPTGROUP",
++	_LI_UPPERCASE = "LI",
++	_HREF = "href",
++	_SELECT = "SELECT",
++	_DIV = "DIV",
++	_START_HELP_TEXT = "<em class=\"helptext\">",
++	_START_EM = "<em>",
++	_END_EM = "</em>",
++	_START_STRONG = "<strong>",
++	_END_STRONG = "</strong>",
++	_PREVENT_CONTEXT_OVERLAP = "preventcontextoverlap",
++	_OBJ = "obj",
++	_SCOPE = "scope",
++	_NONE = "none",
++	_VISIBLE = "visible",
++	_SPACE = " ",
++	_MENUITEM = "MenuItem",
++	_CLICK = "click",
++	_SHOW = "show",
++	_HIDE = "hide",
++	_LI_LOWERCASE = "li",
++	_ANCHOR_TEMPLATE = "<a href=\"#\"></a>",
++
++    EVENT_TYPES = [
++    
++        ["mouseOverEvent", "mouseover"],
++        ["mouseOutEvent", "mouseout"],
++        ["mouseDownEvent", "mousedown"],
++        ["mouseUpEvent", "mouseup"],
++        ["clickEvent", _CLICK],
++        ["keyPressEvent", "keypress"],
++        ["keyDownEvent", "keydown"],
++        ["keyUpEvent", "keyup"],
++        ["focusEvent", "focus"],
++        ["blurEvent", "blur"],
++        ["destroyEvent", "destroy"]
++    
++    ],
++
++	TEXT_CONFIG = { 
++		key: _TEXT, 
++		value: _EMPTY_STRING, 
++		validator: Lang.isString, 
++		suppressEvent: true 
++	}, 
++
++	HELP_TEXT_CONFIG = { 
++		key: _HELP_TEXT,
++		supercedes: [_TEXT], 
++		suppressEvent: true 
++	},
++
++	URL_CONFIG = { 
++		key: _URL, 
++		value: _HASH, 
++		suppressEvent: true 
++	}, 
++
++	TARGET_CONFIG = { 
++		key: _TARGET, 
++		suppressEvent: true 
++	}, 
++
++	EMPHASIS_CONFIG = { 
++		key: _EMPHASIS, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true, 
++		supercedes: [_TEXT]
++	}, 
++
++	STRONG_EMPHASIS_CONFIG = { 
++		key: _STRONG_EMPHASIS, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true,
++		supercedes: [_TEXT]
++	},
++
++	CHECKED_CONFIG = { 
++		key: _CHECKED, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true, 
++		supercedes: [_DISABLED, _SELECTED]
++	}, 
++
++	SUBMENU_CONFIG = { 
++		key: _SUBMENU,
++		suppressEvent: true,
++		supercedes: [_DISABLED, _SELECTED]
++	},
++
++	DISABLED_CONFIG = { 
++		key: _DISABLED, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true,
++		supercedes: [_TEXT, _SELECTED]
++	},
++
++	SELECTED_CONFIG = { 
++		key: _SELECTED, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true
++	},
++
++	ONCLICK_CONFIG = { 
++		key: _ONCLICK,
++		suppressEvent: true
++	},
++
++	CLASS_NAME_CONFIG = { 
++		key: _CLASSNAME, 
++		value: null, 
++		validator: Lang.isString,
++		suppressEvent: true
++	},
++    
++	KEY_LISTENER_CONFIG = {
++		key: "keylistener", 
++		value: null, 
++		suppressEvent: true
++	},
++
++	m_oMenuItemTemplate = null,
++
++    CLASS_NAMES = {};
++
++
++/**
++* @method getClassNameForState
++* @description Returns a class name for the specified prefix and state.  If the class name does not 
++* yet exist, it is created and stored in the CLASS_NAMES object to increase performance.
++* @private
++* @param {String} prefix String representing the prefix for the class name
++* @param {String} state String representing a state - "disabled," "checked," etc.
++*/  
++var getClassNameForState = function (prefix, state) {
++
++	var oClassNames = CLASS_NAMES[prefix];
++	
++	if (!oClassNames) {
++		CLASS_NAMES[prefix] = {};
++		oClassNames = CLASS_NAMES[prefix];
++	}
++
++
++	var sClassName = oClassNames[state];
++
++	if (!sClassName) {
++		sClassName = prefix + _HYPHEN + state;
++		oClassNames[state] = sClassName;
++	}
++
++	return sClassName;
++	
++};
++
++
++/**
++* @method addClassNameForState
++* @description Applies a class name to a MenuItem instance's &#60;LI&#62; and &#60;A&#62; elements
++* that represents a MenuItem's state - "disabled," "checked," etc.
++* @private
++* @param {String} state String representing a state - "disabled," "checked," etc.
++*/  
++var addClassNameForState = function (state) {
++
++	Dom.addClass(this.element, getClassNameForState(this.CSS_CLASS_NAME, state));
++	Dom.addClass(this._oAnchor, getClassNameForState(this.CSS_LABEL_CLASS_NAME, state));
++
++};
++
++/**
++* @method removeClassNameForState
++* @description Removes a class name from a MenuItem instance's &#60;LI&#62; and &#60;A&#62; elements
++* that represents a MenuItem's state - "disabled," "checked," etc.
++* @private
++* @param {String} state String representing a state - "disabled," "checked," etc.
++*/  
++var removeClassNameForState = function (state) {
++
++	Dom.removeClass(this.element, getClassNameForState(this.CSS_CLASS_NAME, state));
++	Dom.removeClass(this._oAnchor, getClassNameForState(this.CSS_LABEL_CLASS_NAME, state));
++
++};
++
++
++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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @event focusEvent
++    * @description Fires when the menu item receives focus.
++    * @type YAHOO.util.CustomEvent
++    */
++
++
++    /**
++    * @event blurEvent
++    * @description Fires when the menu item loses the input focus.
++    * @type YAHOO.util.CustomEvent
++    */
++
++
++    /**
++    * @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 oConfig = this.cfg,
++            sURL = _HASH,
++            oCustomEvent,
++			aEventData,
++            oAnchor,
++            sTarget,
++            sText,
++            sId,
++            i;
++
++
++        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_UPPERCASE:
++
++                    // 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, 2);
++                        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);
++
++
++			i = EVENT_TYPES.length - 1;
++
++			do {
++
++				aEventData = EVENT_TYPES[i];
++
++				oCustomEvent = this.createEvent(aEventData[1]);
++				oCustomEvent.signature = CustomEvent.LIST;
++				
++				this[aEventData[0]] = oCustomEvent;
++
++			}
++			while (i--);
++
++
++            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_LOWERCASE);
++            m_oMenuItemTemplate.innerHTML = _ANCHOR_TEMPLATE;
++
++        }
++
++        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(_HELP_TEXT),
++            sHelpTextHTML = _EMPTY_STRING,
++            sEmphasisStartTag = _EMPTY_STRING,
++            sEmphasisEndTag = _EMPTY_STRING;
++
++
++        if (sText) {
++
++
++            if (sHelpText) {
++                    
++                sHelpTextHTML = _START_HELP_TEXT + sHelpText + _END_EM;
++            
++            }
++
++
++            if (oConfig.getProperty(_EMPHASIS)) {
++
++                sEmphasisStartTag = _START_EM;
++                sEmphasisEndTag = _END_EM;
++
++            }
++
++
++            if (oConfig.getProperty(_STRONG_EMPHASIS)) {
++
++                sEmphasisStartTag = _START_STRONG;
++                sEmphasisEndTag = _END_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 = _HASH;
++
++        }
++
++        var oAnchor = this._oAnchor;
++
++        if (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(_STRONG_EMPHASIS)) {
++
++            oConfig.setProperty(_STRONG_EMPHASIS, 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],
++            oConfig = this.cfg;
++
++
++        if (bChecked) {
++
++            addClassNameForState.call(this, _CHECKED);
++
++        }
++        else {
++
++            removeClassNameForState.call(this, _CHECKED);
++        }
++
++
++        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);
++
++
++        if (bDisabled) {
++
++            if (oConfig.getProperty(_SELECTED)) {
++
++                oConfig.setProperty(_SELECTED, false);
++
++            }
++
++
++			addClassNameForState.call(this, _DISABLED);
++
++
++            if (oSubmenu) {
++
++				addClassNameForState.call(this, _HAS_SUBMENU_DISABLED);
++            
++            }
++            
++
++            if (bChecked) {
++
++				addClassNameForState.call(this, _CHECKED_DISABLED);
++
++            }
++
++        }
++        else {
++
++			removeClassNameForState.call(this, _DISABLED);
++
++
++            if (oSubmenu) {
++
++				removeClassNameForState.call(this, _HAS_SUBMENU_DISABLED);
++            
++            }
++            
++
++            if (bChecked) {
++
++				removeClassNameForState.call(this, _CHECKED_DISABLED);
++
++            }
++
++        }
++
++    },
++
++
++    /**
++    * @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,
++        	oAnchor = this._oAnchor,
++        	
++            bSelected = p_aArgs[0],
++            bChecked = oConfig.getProperty(_CHECKED),
++            oSubmenu = oConfig.getProperty(_SUBMENU);
++
++
++        if (UA.opera) {
++
++            oAnchor.blur();
++        
++        }
++
++
++        if (bSelected && !oConfig.getProperty(_DISABLED)) {
++
++			addClassNameForState.call(this, _SELECTED);
++
++
++            if (oSubmenu) {
++
++				addClassNameForState.call(this, _HAS_SUBMENU_SELECTED);
++            
++            }
++
++
++            if (bChecked) {
++
++				addClassNameForState.call(this, _CHECKED_SELECTED);
++
++            }
++
++        }
++        else {
++
++			removeClassNameForState.call(this, _SELECTED);
++
++
++            if (oSubmenu) {
++
++				removeClassNameForState.call(this, _HAS_SUBMENU_SELECTED);
++            
++            }
++
++
++            if (bChecked) {
++
++				removeClassNameForState.call(this, _CHECKED_SELECTED);
++
++            }
++
++        }
++
++
++        if (this.hasFocus() && 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,
++            bLazyLoad = this.parent && this.parent.lazyLoad,
++            oMenu,
++            sSubmenuId,
++            oSubmenuConfig;
++
++
++        if (oSubmenu) {
++
++            if (oSubmenu instanceof Menu) {
++
++                oMenu = oSubmenu;
++                oMenu.parent = this;
++                oMenu.lazyLoad = bLazyLoad;
++
++            }
++            else if (Lang.isObject(oSubmenu) && 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) {
++
++				oMenu.cfg.setProperty(_PREVENT_CONTEXT_OVERLAP, true);
++
++                addClassNameForState.call(this, _HAS_SUBMENU);
++
++
++				if (oConfig.getProperty(_URL) === _HASH) {
++				
++					oConfig.setProperty(_URL, (_HASH + oMenu.id));
++				
++				}
++
++
++                this._oSubmenu = oMenu;
++
++
++                if (UA.opera) {
++                
++                    oMenu.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);               
++                
++                }
++            
++            }
++
++        }
++        else {
++
++			removeClassNameForState.call(this, _HAS_SUBMENU);
++
++            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 && Lang.isObject(oObject) && 
++            Lang.isFunction(oObject.fn)) {
++            
++            this.clickEvent.subscribe(oObject.fn, 
++                ((_OBJ in oObject) ? oObject.obj : this), 
++                ((_SCOPE in oObject) ? oObject.scope : null) );
++
++            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;
++    
++    },
++
++
++    /**
++    * @method _dispatchClickEvent
++    * @description Dispatches a DOM "click" event to the anchor element of a 
++	* MenuItem instance.
++	* @private	
++    */
++	_dispatchClickEvent: function () {
++
++		var oMenuItem = this,
++			oAnchor,
++			oEvent;
++
++		if (!oMenuItem.cfg.getProperty(_DISABLED)) {
++
++			oAnchor = Dom.getFirstChild(oMenuItem.element);
++
++			//	Dispatch a "click" event to the MenuItem's anchor so that its
++			//	"click" event handlers will get called in response to the user 
++			//	pressing the keyboard shortcut defined by the "keylistener"
++			//	configuration property.
++
++			if (UA.ie) {
++				oAnchor.fireEvent(_ONCLICK);
++			}
++			else {
++
++				if ((UA.gecko && UA.gecko >= 1.9) || UA.opera || UA.webkit) {
++
++					oEvent = document.createEvent("HTMLEvents");
++					oEvent.initEvent(_CLICK, true, true);
++
++				}
++				else {
++
++					oEvent = document.createEvent("MouseEvents");
++					oEvent.initMouseEvent(_CLICK, true, true, window, 0, 0, 0, 
++						0, 0, false, false, false, false, 0, null);
++
++				}
++
++				oAnchor.dispatchEvent(oEvent);
++
++			}
++
++		}
++
++	},
++
++
++    /**
++    * @method _createKeyListener
++    * @description "show" event handler for a Menu instance - responsible for 
++	* setting up the KeyListener instance for a MenuItem.
++	* @private	
++    * @param {String} type String representing the name of the event that 
++    * was fired.
++    * @param {Array} args Array of arguments sent when the event was fired.
++    * @param {Array} keyData Array of arguments sent when the event was fired.
++    */
++	_createKeyListener: function (type, args, keyData) {
++
++		var oMenuItem = this,
++			oMenu = oMenuItem.parent;
++
++		var oKeyListener = new YAHOO.util.KeyListener(
++										oMenu.element.ownerDocument, 
++										keyData, 
++										{
++											fn: oMenuItem._dispatchClickEvent, 
++											scope: oMenuItem, 
++											correctScope: true });
++
++
++		if (oMenu.cfg.getProperty(_VISIBLE)) {
++			oKeyListener.enable();
++		}
++
++
++		oMenu.subscribe(_SHOW, oKeyListener.enable, null, oKeyListener);
++		oMenu.subscribe(_HIDE, oKeyListener.disable, null, oKeyListener);
++		
++		oMenuItem._keyListener = oKeyListener;
++		
++		oMenu.unsubscribe(_SHOW, oMenuItem._createKeyListener, keyData);
++		
++	},
++
++
++    /**
++    * @method configKeyListener
++    * @description Event handler for when the "keylistener" 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.
++    */
++    configKeyListener: function (p_sType, p_aArgs) {
++
++		var oKeyData = p_aArgs[0],
++			oMenuItem = this,
++			oMenu = oMenuItem.parent;
++
++		if (oMenuItem._keyData) {
++
++			//	Unsubscribe from the "show" event in case the keylistener 
++			//	config was changed before the Menu was ever made visible.
++
++			oMenu.unsubscribe(_SHOW, 
++					oMenuItem._createKeyListener, oMenuItem._keyData);
++
++			oMenuItem._keyData = null;					
++					
++		}
++
++
++		//	Tear down for the previous value of the "keylistener" property
++
++		if (oMenuItem._keyListener) {
++
++			oMenu.unsubscribe(_SHOW, oMenuItem._keyListener.enable);
++			oMenu.unsubscribe(_HIDE, oMenuItem._keyListener.disable);
++
++			oMenuItem._keyListener.disable();
++			oMenuItem._keyListener = null;
++
++		}
++
++
++    	if (oKeyData) {
++	
++			oMenuItem._keyData = oKeyData;
++
++			//	Defer the creation of the KeyListener instance until the 
++			//	parent Menu is visible.  This is necessary since the 
++			//	KeyListener instance needs to be bound to the document the 
++			//	Menu has been rendered into.  Deferring creation of the 
++			//	KeyListener instance also improves performance.
++
++			oMenu.subscribe(_SHOW, oMenuItem._createKeyListener, 
++				oKeyData, oMenuItem);
++		}
++    
++    },
++
++
++    // 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(
++            TEXT_CONFIG.key, 
++            { 
++                handler: this.configText, 
++                value: TEXT_CONFIG.value, 
++                validator: TEXT_CONFIG.validator, 
++                suppressEvent: TEXT_CONFIG.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(
++            HELP_TEXT_CONFIG.key,
++            {
++                handler: this.configHelpText, 
++                supercedes: HELP_TEXT_CONFIG.supercedes,
++                suppressEvent: HELP_TEXT_CONFIG.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(
++            URL_CONFIG.key, 
++            {
++                handler: this.configURL, 
++                value: URL_CONFIG.value, 
++                suppressEvent: URL_CONFIG.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(
++            TARGET_CONFIG.key, 
++            {
++                handler: this.configTarget, 
++                suppressEvent: TARGET_CONFIG.suppressEvent
++            }
++        );
++
++
++        /**
++        * @config emphasis
++        * @description Boolean indicating if the text of the menu item will be 
++        * rendered with emphasis.
++        * @deprecated Use the "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(
++            EMPHASIS_CONFIG.key, 
++            { 
++                handler: this.configEmphasis, 
++                value: EMPHASIS_CONFIG.value, 
++                validator: EMPHASIS_CONFIG.validator, 
++                suppressEvent: EMPHASIS_CONFIG.suppressEvent,
++                supercedes: EMPHASIS_CONFIG.supercedes
++            }
++        );
++
++
++        /**
++        * @config strongemphasis
++        * @description Boolean indicating if the text of the menu item will be 
++        * rendered with strong emphasis.
++        * @deprecated Use the "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(
++            STRONG_EMPHASIS_CONFIG.key,
++            {
++                handler: this.configStrongEmphasis,
++                value: STRONG_EMPHASIS_CONFIG.value,
++                validator: STRONG_EMPHASIS_CONFIG.validator,
++                suppressEvent: STRONG_EMPHASIS_CONFIG.suppressEvent,
++                supercedes: STRONG_EMPHASIS_CONFIG.supercedes
++            }
++        );
++
++
++        /**
++        * @config checked
++        * @description Boolean indicating if the menu item should be rendered 
++        * with a checkmark.
++        * @default false
++        * @type Boolean
++        */
++        oConfig.addProperty(
++            CHECKED_CONFIG.key, 
++            {
++                handler: this.configChecked, 
++                value: CHECKED_CONFIG.value, 
++                validator: CHECKED_CONFIG.validator, 
++                suppressEvent: CHECKED_CONFIG.suppressEvent,
++                supercedes: CHECKED_CONFIG.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(
++            DISABLED_CONFIG.key,
++            {
++                handler: this.configDisabled,
++                value: DISABLED_CONFIG.value,
++                validator: DISABLED_CONFIG.validator,
++                suppressEvent: DISABLED_CONFIG.suppressEvent
++            }
++        );
++
++
++        /**
++        * @config selected
++        * @description Boolean indicating if the menu item should 
++        * be highlighted.
++        * @default false
++        * @type Boolean
++        */
++        oConfig.addProperty(
++            SELECTED_CONFIG.key,
++            {
++                handler: this.configSelected,
++                value: SELECTED_CONFIG.value,
++                validator: SELECTED_CONFIG.validator,
++                suppressEvent: SELECTED_CONFIG.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(
++            SUBMENU_CONFIG.key, 
++            {
++                handler: this.configSubmenu, 
++                supercedes: SUBMENU_CONFIG.supercedes,
++                suppressEvent: SUBMENU_CONFIG.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(
++            ONCLICK_CONFIG.key, 
++            {
++                handler: this.configOnClick, 
++                suppressEvent: ONCLICK_CONFIG.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(
++            CLASS_NAME_CONFIG.key, 
++            { 
++                handler: this.configClassName,
++                value: CLASS_NAME_CONFIG.value, 
++                validator: CLASS_NAME_CONFIG.validator,
++                suppressEvent: CLASS_NAME_CONFIG.suppressEvent 
++            }
++        );
++
++
++        /**
++        * @config keylistener
++        * @description Object literal representing the key(s) that can be used 
++ 		* to trigger the MenuItem's "click" event.  Possible attributes are 
++		* shift (boolean), alt (boolean), ctrl (boolean) and keys (either an int 
++		* or an array of ints representing keycodes).
++        * @default null
++        * @type Object
++        */
++        oConfig.addProperty(
++            KEY_LISTENER_CONFIG.key, 
++            { 
++                handler: this.configKeyListener,
++                value: KEY_LISTENER_CONFIG.value, 
++                suppressEvent: KEY_LISTENER_CONFIG.suppressEvent 
++            }
++        );
++
++	},
++
++    /**
++    * @method getNextSibling
++    * @description Finds the menu item's next sibling.
++    * @return YAHOO.widget.MenuItem
++    */
++	getNextSibling: function () {
++	
++		var isUL = function (el) {
++				return (el.nodeName.toLowerCase() === "ul");
++			},
++	
++			menuitemEl = this.element,
++			next = Dom.getNextSibling(menuitemEl),
++			parent,
++			sibling,
++			list;
++		
++		if (!next) {
++			
++			parent = menuitemEl.parentNode;
++			sibling = Dom.getNextSiblingBy(parent, isUL);
++			
++			if (sibling) {
++				list = sibling;
++			}
++			else {
++				list = Dom.getFirstChildBy(parent.parentNode, isUL);
++			}
++			
++			next = Dom.getFirstChild(list);
++			
++		}
++
++		return YAHOO.widget.MenuManager.getMenuItem(next.id);
++
++	},
++
++    /**
++    * @method getNextEnabledSibling
++    * @description Finds the menu item's next enabled sibling.
++    * @return YAHOO.widget.MenuItem
++    */
++	getNextEnabledSibling: function () {
++		
++		var next = this.getNextSibling();
++		
++        return (next.cfg.getProperty(_DISABLED) || next.element.style.display == _NONE) ? next.getNextEnabledSibling() : next;
++		
++	},
++
++
++    /**
++    * @method getPreviousSibling
++    * @description Finds the menu item's previous sibling.
++    * @return {YAHOO.widget.MenuItem}
++    */	
++	getPreviousSibling: function () {
++
++		var isUL = function (el) {
++				return (el.nodeName.toLowerCase() === "ul");
++			},
++
++			menuitemEl = this.element,
++			next = Dom.getPreviousSibling(menuitemEl),
++			parent,
++			sibling,
++			list;
++		
++		if (!next) {
++			
++			parent = menuitemEl.parentNode;
++			sibling = Dom.getPreviousSiblingBy(parent, isUL);
++			
++			if (sibling) {
++				list = sibling;
++			}
++			else {
++				list = Dom.getLastChildBy(parent.parentNode, isUL);
++			}
++			
++			next = Dom.getLastChild(list);
++			
++		}
++
++		return YAHOO.widget.MenuManager.getMenuItem(next.id);
++		
++	},
++
++
++    /**
++    * @method getPreviousEnabledSibling
++    * @description Finds the menu item's previous enabled sibling.
++    * @return {YAHOO.widget.MenuItem}
++    */
++	getPreviousEnabledSibling: function () {
++		
++		var next = this.getPreviousSibling();
++		
++        return (next.cfg.getProperty(_DISABLED) || next.element.style.display == _NONE) ? next.getPreviousEnabledSibling() : next;
++		
++	},
++
++
++    /**
++    * @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;
++
++
++        function setFocus() {
++
++            try {
++
++                if (!(UA.ie && !document.hasFocus())) {
++                
++					if (oActiveItem) {
++		
++						oActiveItem.blurEvent.fire();
++		
++					}
++	
++					oAnchor.focus();
++					
++					this.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.
++            */
++
++            Lang.later(0, this, setFocus);
++
++        }
++
++    },
++
++
++    /**
++    * @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)) {
++
++            Lang.later(0, this, function () {
++
++                try {
++    
++                    this._oAnchor.blur();
++                    this.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,
++            aEventData,
++            i;
++
++
++        if (oEl) {
++
++
++            // If the item has a submenu, destroy it first
++
++            oSubmenu = this.cfg.getProperty(_SUBMENU);
++
++            if (oSubmenu) {
++            
++                oSubmenu.destroy();
++            
++            }
++
++
++            // Remove the element from the parent node
++
++            oParentNode = oEl.parentNode;
++
++            if (oParentNode) {
++
++                oParentNode.removeChild(oEl);
++
++                this.destroyEvent.fire();
++
++            }
++
++
++            // Remove CustomEvent listeners
++
++			i = EVENT_TYPES.length - 1;
++
++			do {
++
++				aEventData = EVENT_TYPES[i];
++				
++				this[aEventData[0]].unsubscribeAll();
++
++			}
++			while (i--);
++            
++            
++            this.cfg.configChangedEvent.unsubscribeAll();
++
++        }
++
++    },
++
++
++    /**
++    * @method toString
++    * @description Returns a string representing the menu item.
++    * @return {String}
++    */
++    toString: function () {
++
++        var sReturnVal = _MENUITEM,
++            sId = this.id;
++
++        if (sId) {
++    
++            sReturnVal += (_SPACE + sId);
++        
++        }
++
++        return sReturnVal;
++    
++    }
++
++};
++
++Lang.augmentProto(MenuItem, YAHOO.util.EventProvider);
++
++})();
++(function () {
++
++	var _XY = "xy",
++		_MOUSEDOWN = "mousedown",
++		_CONTEXTMENU = "ContextMenu",
++		_SPACE = " ";
++
++/**
++* 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,
++	UA = YAHOO.env.ua,
++    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": (UA.opera ? _MOUSEDOWN : "contextmenu"),
++        "CLICK": "click"
++
++    },
++    
++    
++    /**
++    * Constant representing the ContextMenu's configuration properties
++    * @property DEFAULT_CONFIG
++    * @private
++    * @final
++    * @type Object
++    */
++    TRIGGER_CONFIG = { 
++		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 (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) {
++
++    var aXY;
++
++    if (!(p_oEvent.type == _MOUSEDOWN && !p_oEvent.ctrlKey)) {
++	
++		this.contextEventTarget = Event.getTarget(p_oEvent);
++	
++		this.triggerContextMenuEvent.fire(p_oEvent);
++		
++	
++		if (!this._bCancelled) {
++
++			/*
++				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);
++
++
++			// Hide any other Menu instances that might be visible
++
++			YAHOO.widget.MenuManager.hideVisible();
++			
++	
++
++			// 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 += (_SPACE + 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(TRIGGER_CONFIG.key, 
++        {
++            handler: this.configTrigger, 
++            suppressEvent: TRIGGER_CONFIG.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 (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 () {
++
++	var Lang = YAHOO.lang,
++
++		// String constants
++	
++		_STATIC = "static",
++		_DYNAMIC_STATIC = "dynamic," + _STATIC,
++		_DISABLED = "disabled",
++		_SELECTED = "selected",
++		_AUTO_SUBMENU_DISPLAY = "autosubmenudisplay",
++		_SUBMENU = "submenu",
++		_VISIBLE = "visible",
++		_SPACE = " ",
++		_SUBMENU_TOGGLE_REGION = "submenutoggleregion",
++		_MENUBAR = "MenuBar";
++
++/**
++* 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) {
++
++	var returnVal = false;
++
++    if (Lang.isString(p_sPosition)) {
++
++        returnVal = (_DYNAMIC_STATIC.indexOf((p_sPosition.toLowerCase())) != -1);
++
++    }
++    
++    return returnVal;
++
++}
++
++
++var Event = YAHOO.util.Event,
++    MenuBar = YAHOO.widget.MenuBar,
++
++    POSITION_CONFIG =  { 
++		key: "position", 
++		value: _STATIC, 
++		validator: checkPosition, 
++		supercedes: [_VISIBLE] 
++	}, 
++
++	SUBMENU_ALIGNMENT_CONFIG =  { 
++		key: "submenualignment", 
++		value: ["tl","bl"]
++	},
++
++	AUTO_SUBMENU_DISPLAY_CONFIG =  { 
++		key: _AUTO_SUBMENU_DISPLAY, 
++		value: false, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	},
++	
++	SUBMENU_TOGGLE_REGION_CONFIG = {
++		key: _SUBMENU_TOGGLE_REGION, 
++		value: false, 
++		validator: Lang.isBoolean
++	};
++
++
++
++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",
++
++
++/**
++* @property SUBMENU_TOGGLE_REGION_WIDTH
++* @description Width (in pixels) of the area of a MenuBarItem that, when pressed, will toggle the
++* display of the MenuBarItem's submenu.
++* @default 20
++* @final
++* @type Number
++*/
++SUBMENU_TOGGLE_REGION_WIDTH: 20,
++
++
++// 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);
++                        
++						oSubmenu = oNextItem.cfg.getProperty(_SUBMENU);
++						
++						if(oSubmenu) {
++					
++							oSubmenu.show();
++							oSubmenu.setInitialFocus();
++						
++						}
++						else {
++							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();
++                        oSubmenu.setInitialFocus();
++                    
++                    }
++    
++                }
++    
++                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],
++        bReturnVal = true,
++    	oItemEl,
++        oEvent,
++        oTarget,
++        oActiveItem,
++        oConfig,
++        oSubmenu,
++        nMenuItemX,
++        nToggleRegion;
++
++
++	var toggleSubmenuDisplay = function () {
++
++		if(oSubmenu.cfg.getProperty(_VISIBLE)) {
++		
++			oSubmenu.hide();
++		
++		}
++		else {
++		
++			oSubmenu.show();                    
++		
++		}
++	
++	};
++    
++
++    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) {
++
++			oItemEl = oItem.element;
++			nMenuItemX = YAHOO.util.Dom.getX(oItemEl);
++			nToggleRegion = nMenuItemX + (oItemEl.offsetWidth - this.SUBMENU_TOGGLE_REGION_WIDTH);
++
++			if (oConfig.getProperty(_SUBMENU_TOGGLE_REGION)) {
++
++				if (Event.getPageX(oEvent) > nToggleRegion) {
++
++					toggleSubmenuDisplay();
++
++					Event.preventDefault(oEvent);
++
++					/*
++						 Return false so that other click event handlers are not called when the 
++						 user clicks inside the toggle region.
++					*/
++					bReturnVal = false;
++				
++				}
++        
++        	}
++			else {
++
++				toggleSubmenuDisplay();
++            
++            }
++        
++        }
++    
++    }
++
++
++	return bReturnVal;
++
++},
++
++
++
++// Public methods
++
++/**
++* @method configSubmenuToggle
++* @description Event handler for when the "submenutoggleregion" configuration property of 
++* a MenuBar 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.
++*/
++configSubmenuToggle: function (p_sType, p_aArgs) {
++
++	var bSubmenuToggle = p_aArgs[0];
++	
++	if (bSubmenuToggle) {
++	
++		this.cfg.setProperty(_AUTO_SUBMENU_DISPLAY, false);
++	
++	}
++
++},
++
++
++/**
++* @method toString
++* @description Returns a string representing the menu bar.
++* @return {String}
++*/
++toString: function() {
++
++    var sReturnVal = _MENUBAR,
++        sId = this.id;
++
++    if(sId) {
++
++        sReturnVal += (_SPACE + 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(
++        POSITION_CONFIG.key, 
++        {
++            handler: this.configPosition, 
++            value: POSITION_CONFIG.value, 
++            validator: POSITION_CONFIG.validator,
++            supercedes: POSITION_CONFIG.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(
++        SUBMENU_ALIGNMENT_CONFIG.key, 
++        {
++            value: SUBMENU_ALIGNMENT_CONFIG.value,
++            suppressEvent: SUBMENU_ALIGNMENT_CONFIG.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(
++	   AUTO_SUBMENU_DISPLAY_CONFIG.key, 
++	   {
++	       value: AUTO_SUBMENU_DISPLAY_CONFIG.value, 
++	       validator: AUTO_SUBMENU_DISPLAY_CONFIG.validator,
++	       suppressEvent: AUTO_SUBMENU_DISPLAY_CONFIG.suppressEvent
++       } 
++    );
++
++
++    /**
++    * @config submenutoggleregion
++    * @description Boolean indicating if only a specific region of a MenuBarItem should toggle the 
++    * display of a submenu.  The default width of the region is determined by the value of the
++    * SUBMENU_TOGGLE_REGION_WIDTH property.  If set to true, the autosubmenudisplay 
++    * configuration property will be set to false, and any click event listeners will not be 
++    * called when the user clicks inside the submenu toggle region of a MenuBarItem.  If the 
++    * user clicks outside of the submenu toggle region, the MenuBarItem will maintain its 
++    * standard behavior.
++    * @default false
++    * @type Boolean
++    */
++	oConfig.addProperty(
++	   SUBMENU_TOGGLE_REGION_CONFIG.key, 
++	   {
++	       value: SUBMENU_TOGGLE_REGION_CONFIG.value, 
++	       validator: SUBMENU_TOGGLE_REGION_CONFIG.validator,
++	       handler: this.configSubmenuToggle
++       } 
++    );
++
++}
++ 
++}); // 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.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/menu/menu-min.js b/pylons_app/public/js/yui/menu/menu-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/menu-min.js
+@@ -0,0 +1,16 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var K=YAHOO.env.ua,C=YAHOO.util.Dom,Z=YAHOO.util.Event,H=YAHOO.lang,T="DIV",P="hd",M="bd",O="ft",X="LI",A="disabled",D="mouseover",F="mouseout",U="mousedown",G="mouseup",V="click",B="keydown",N="keyup",I="keypress",L="clicktohide",S="position",Q="dynamic",Y="showdelay",J="selected",E="visible",W="UL",R="MenuManager";YAHOO.widget.MenuManager=function(){var l=false,d={},o={},h={},c={"click":"clickEvent","mousedown":"mouseDownEvent","mouseup":"mouseUpEvent","mouseover":"mouseOverEvent","mouseout":"mouseOutEvent","keydown":"keyDownEvent","keyup":"keyUpEvent","keypress":"keyPressEvent","focus":"focusEvent","focusin":"focusEvent","blur":"blurEvent","focusout":"blurEvent"},i=null;function b(r){var p,q;if(r&&r.tagName){switch(r.tagName.toUpperCase()){case T:p=r.parentNode;if((C.hasClass(r,P)||C.hasClass(r,M)||C.hasClass(r,O))&&p&&p.tagName&&p.tagName.toUpperCase()==T){q=p;}else{q=r;}break;case X:q=r;break;default:p=r.parentNode;if(p){q=b(p);}break;}}return q;}function e(t){var p=Z.getTarget(t),q=b(p),u=true,w=t.type,x,r,s,z,y;if(q){r=q.tagName.toUpperCase();if(r==X){s=q.id;if(s&&h[s]){z=h[s];y=z.parent;}}else{if(r==T){if(q.id){y=d[q.id];}}}}if(y){x=c[w];if(w=="click"&&(K.gecko&&y.platform!="mac")&&t.button>0){u=false;}if(u&&z&&!z.cfg.getProperty(A)){z[x].fire(t);}if(u){y[x].fire(t,z);}}else{if(w==U){for(var v in o){if(H.hasOwnProperty(o,v)){y=o[v];if(y.cfg.getProperty(L)&&!(y instanceof YAHOO.widget.MenuBar)&&y.cfg.getProperty(S)==Q){y.hide();if(K.ie&&p.focus){p.setActive();}}else{if(y.cfg.getProperty(Y)>0){y._cancelShowDelay();}if(y.activeItem){y.activeItem.blur();y.activeItem.cfg.setProperty(J,false);y.activeItem=null;}}}}}}}function n(q,p,r){if(d[r.id]){this.removeMenu(r);}}function k(q,p){var r=p[1];if(r){i=r;}}function f(q,p){i=null;}function a(r,q){var p=q[0],s=this.id;if(p){o[s]=this;}else{if(o[s]){delete o[s];}}}function j(q,p){m(this);}function m(q){var p=q.id;if(p&&h[p]){if(i==q){i=null;}delete h[p];q.destroyEvent.unsubscribe(j);}}function g(q,p){var s=p[0],r;if(s instanceof YAHOO.widget.MenuItem){r=s.id;if(!h[r]){h[r]=s;s.destroyEvent.subscribe(j);}}}return{addMenu:function(q){var p;if(q instanceof YAHOO.widget.Menu&&q.id&&!d[q.id]){d[q.id]=q;if(!l){p=document;Z.on(p,D,e,this,true);Z.on(p,F,e,this,true);Z.on(p,U,e,this,true);Z.on(p,G,e,this,true);Z.on(p,V,e,this,true);Z.on(p,B,e,this,true);Z.on(p,N,e,this,true);Z.on(p,I,e,this,true);Z.onFocus(p,e,this,true);Z.onBlur(p,e,this,true);l=true;}q.cfg.subscribeToConfigEvent(E,a);q.destroyEvent.subscribe(n,q,this);q.itemAddedEvent.subscribe(g);q.focusEvent.subscribe(k);q.blurEvent.subscribe(f);}},removeMenu:function(s){var q,p,r;if(s){q=s.id;if((q in d)&&(d[q]==s)){p=s.getItems();if(p&&p.length>0){r=p.length-1;do{m(p[r]);}while(r--);}delete d[q];if((q in o)&&(o[q]==s)){delete o[q];}if(s.cfg){s.cfg.unsubscribeFromConfigEvent(E,a);}s.destroyEvent.unsubscribe(n,s);s.itemAddedEvent.unsubscribe(g);s.focusEvent.unsubscribe(k);s.blurEvent.unsubscribe(f);}}},hideVisible:function(){var p;for(var q in o){if(H.hasOwnProperty(o,q)){p=o[q];if(!(p instanceof YAHOO.widget.MenuBar)&&p.cfg.getProperty(S)==Q){p.hide();}}}},getVisible:function(){return o;},getMenus:function(){return d;},getMenu:function(q){var p;if(q in d){p=d[q];}return p;},getMenuItem:function(q){var p;if(q in h){p=h[q];}return p;},getMenuItemGroup:function(t){var q=C.get(t),p,v,u,r,s;if(q&&q.tagName&&q.tagName.toUpperCase()==W){v=q.firstChild;if(v){p=[];do{r=v.id;if(r){u=this.getMenuItem(r);if(u){p[p.length]=u;}}}while((v=v.nextSibling));if(p.length>0){s=p;}}}return s;},getFocusedMenuItem:function(){return i;},getFocusedMenu:function(){var p;if(i){p=i.parent.getRoot();}return p;},toString:function(){return R;}};}();})();(function(){var AM=YAHOO.lang,Aq="Menu",G="DIV",K="div",Am="id",AH="SELECT",e="xy",R="y",Ax="UL",L="ul",AJ="first-of-type",k="LI",h="OPTGROUP",Az="OPTION",Ah="disabled",AY="none",y="selected",At="groupindex",i="index",O="submenu",Au="visible",AX="hidedelay",Ac="position",AD="dynamic",C="static",An=AD+","+C,Q="url",M="#",V="target",AU="maxheight",T="topscrollbar",x="bottomscrollbar",d="_",P=T+d+Ah,E=x+d+Ah,b="mousemove",Av="showdelay",c="submenuhidedelay",AF="iframe",w="constraintoviewport",A4="preventcontextoverlap",AO="submenualignment",Z="autosubmenudisplay",AC="clicktohide",g="container",j="scrollincrement",Aj="minscrollheight",A2="classname",Ag="shadow",Ar="keepopen",A0="hd",D="hastitle",p="context",u="",Ak="mousedown",Ae="keydown",Ao="height",U="width",AQ="px",Ay="effect",AE="monitorresize",AW="display",AV="block",J="visibility",z="absolute",AS="zindex",l="yui-menu-body-scrolled",AK="&#32;",A1=" ",Ai="mouseover",H="mouseout",AR="itemAdded",n="itemRemoved",AL="hidden",s="yui-menu-shadow",AG=s+"-visible",m=s+A1+AG;YAHOO.widget.Menu=function(A6,A5){if(A5){this.parent=A5.parent;this.lazyLoad=A5.lazyLoad||A5.lazyload;this.itemData=A5.itemData||A5.itemdata;}YAHOO.widget.Menu.superclass.constructor.call(this,A6,A5);};function B(A6){var A5=false;if(AM.isString(A6)){A5=(An.indexOf((A6.toLowerCase()))!=-1);}return A5;}var f=YAHOO.util.Dom,AA=YAHOO.util.Event,Aw=YAHOO.widget.Module,AB=YAHOO.widget.Overlay,r=YAHOO.widget.Menu,A3=YAHOO.widget.MenuManager,F=YAHOO.util.CustomEvent,As=YAHOO.env.ua,Ap,AT=false,Ad,Ab=[["mouseOverEvent",Ai],["mouseOutEvent",H],["mouseDownEvent",Ak],["mouseUpEvent","mouseup"],["clickEvent","click"],["keyPressEvent","keypress"],["keyDownEvent",Ae],["keyUpEvent","keyup"],["focusEvent","focus"],["blurEvent","blur"],["itemAddedEvent",AR],["itemRemovedEvent",n]],AZ={key:Au,value:false,validator:AM.isBoolean},AP={key:w,value:true,validator:AM.isBoolean,supercedes:[AF,"x",R,e]},AI={key:A4,value:true,validator:AM.isBoolean,supercedes:[w]},S={key:Ac,value:AD,validator:B,supercedes:[Au,AF]},A={key:AO,value:["tl","tr"]},t={key:Z,value:true,validator:AM.isBoolean,suppressEvent:true},Y={key:Av,value:250,validator:AM.isNumber,suppressEvent:true},q={key:AX,value:0,validator:AM.isNumber,suppressEvent:true},v={key:c,value:250,validator:AM.isNumber,suppressEvent:true},o={key:AC,value:true,validator:AM.isBoolean,suppressEvent:true},AN={key:g,suppressEvent:true},Af={key:j,value:1,validator:AM.isNumber,supercedes:[AU],suppressEvent:true},N={key:Aj,value:90,validator:AM.isNumber,supercedes:[AU],suppressEvent:true},X={key:AU,value:0,validator:AM.isNumber,supercedes:[AF],suppressEvent:true},W={key:A2,value:null,validator:AM.isString,suppressEvent:true},a={key:Ah,value:false,validator:AM.isBoolean,suppressEvent:true},I={key:Ag,value:true,validator:AM.isBoolean,suppressEvent:true,supercedes:[Au]},Al={key:Ar,value:false,validator:AM.isBoolean};
++function Aa(A5){Ad=AA.getTarget(A5);}YAHOO.lang.extend(r,AB,{CSS_CLASS_NAME:"yuimenu",ITEM_TYPE:null,GROUP_TITLE_TAG_NAME:"h6",OFF_SCREEN_POSITION:"-999em",_useHideDelay: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,init:function(A7,A6){this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuItem;}var A5;if(AM.isString(A7)){A5=f.get(A7);}else{if(A7.tagName){A5=A7;}}if(A5&&A5.tagName){switch(A5.tagName.toUpperCase()){case G:this.srcElement=A5;if(!A5.id){A5.setAttribute(Am,f.generateId());}r.superclass.init.call(this,A5);this.beforeInitEvent.fire(r);break;case AH:this.srcElement=A5;r.superclass.init.call(this,f.generateId());this.beforeInitEvent.fire(r);break;}}else{r.superclass.init.call(this,A7);this.beforeInitEvent.fire(r);}if(this.element){f.addClass(this.element,this.CSS_CLASS_NAME);this.initEvent.subscribe(this._onInit);this.beforeRenderEvent.subscribe(this._onBeforeRender);this.renderEvent.subscribe(this._onRender);this.beforeShowEvent.subscribe(this._onBeforeShow);this.hideEvent.subscribe(this._onHide);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);this.blurEvent.subscribe(this._onBlur);if(!AT){AA.onFocus(document,Aa);AT=true;}if((As.gecko&&As.gecko<1.9)||As.webkit){this.cfg.subscribeToConfigEvent(R,this._onYChange);}if(A6){this.cfg.applyConfig(A6,true);}A3.addMenu(this);this.initEvent.fire(r);}},_initSubTree:function(){var A6=this.srcElement,A5,A8,BB,BC,BA,A9,A7;if(A6){A5=(A6.tagName&&A6.tagName.toUpperCase());if(A5==G){BC=this.body.firstChild;if(BC){A8=0;BB=this.GROUP_TITLE_TAG_NAME.toUpperCase();do{if(BC&&BC.tagName){switch(BC.tagName.toUpperCase()){case BB:this._aGroupTitleElements[A8]=BC;break;case Ax:this._aListElements[A8]=BC;this._aItemGroups[A8]=[];A8++;break;}}}while((BC=BC.nextSibling));if(this._aListElements[0]){f.addClass(this._aListElements[0],AJ);}}}BC=null;if(A5){switch(A5){case G:BA=this._aListElements;A9=BA.length;if(A9>0){A7=A9-1;do{BC=BA[A7].firstChild;if(BC){do{if(BC&&BC.tagName&&BC.tagName.toUpperCase()==k){this.addItem(new this.ITEM_TYPE(BC,{parent:this}),A7);}}while((BC=BC.nextSibling));}}while(A7--);}break;case AH:BC=A6.firstChild;do{if(BC&&BC.tagName){switch(BC.tagName.toUpperCase()){case h:case Az:this.addItem(new this.ITEM_TYPE(BC,{parent:this}));break;}}}while((BC=BC.nextSibling));break;}}}},_getFirstEnabledItem:function(){var A5=this.getItems(),A9=A5.length,A8,A7;for(var A6=0;A6<A9;A6++){A8=A5[A6];if(A8&&!A8.cfg.getProperty(Ah)&&A8.element.style.display!=AY){A7=A8;break;}}return A7;},_addItemToGroup:function(BA,BB,BF){var BD,BG,A8,BE,A9,A6,A7,BC;function A5(BH,BI){return(BH[BI]||A5(BH,(BI+1)));}if(BB instanceof this.ITEM_TYPE){BD=BB;BD.parent=this;}else{if(AM.isString(BB)){BD=new this.ITEM_TYPE(BB,{parent:this});}else{if(AM.isObject(BB)){BB.parent=this;BD=new this.ITEM_TYPE(BB.text,BB);}}}if(BD){if(BD.cfg.getProperty(y)){this.activeItem=BD;}BG=AM.isNumber(BA)?BA:0;A8=this._getItemGroup(BG);if(!A8){A8=this._createItemGroup(BG);}if(AM.isNumber(BF)){A9=(BF>=A8.length);if(A8[BF]){A8.splice(BF,0,BD);}else{A8[BF]=BD;}BE=A8[BF];if(BE){if(A9&&(!BE.element.parentNode||BE.element.parentNode.nodeType==11)){this._aListElements[BG].appendChild(BE.element);}else{A6=A5(A8,(BF+1));if(A6&&(!BE.element.parentNode||BE.element.parentNode.nodeType==11)){this._aListElements[BG].insertBefore(BE.element,A6.element);}}BE.parent=this;this._subscribeToItemEvents(BE);this._configureSubmenu(BE);this._updateItemProperties(BG);this.itemAddedEvent.fire(BE);this.changeContentEvent.fire();BC=BE;}}else{A7=A8.length;A8[A7]=BD;BE=A8[A7];if(BE){if(!f.isAncestor(this._aListElements[BG],BE.element)){this._aListElements[BG].appendChild(BE.element);}BE.element.setAttribute(At,BG);BE.element.setAttribute(i,A7);BE.parent=this;BE.index=A7;BE.groupIndex=BG;this._subscribeToItemEvents(BE);this._configureSubmenu(BE);if(A7===0){f.addClass(BE.element,AJ);}this.itemAddedEvent.fire(BE);this.changeContentEvent.fire();BC=BE;}}}return BC;},_removeItemFromGroupByIndex:function(A8,A6){var A7=AM.isNumber(A8)?A8:0,A9=this._getItemGroup(A7),BB,BA,A5;if(A9){BB=A9.splice(A6,1);BA=BB[0];if(BA){this._updateItemProperties(A7);if(A9.length===0){A5=this._aListElements[A7];if(this.body&&A5){this.body.removeChild(A5);}this._aItemGroups.splice(A7,1);this._aListElements.splice(A7,1);A5=this._aListElements[0];if(A5){f.addClass(A5,AJ);}}this.itemRemovedEvent.fire(BA);this.changeContentEvent.fire();}}return BA;},_removeItemFromGroupByValue:function(A8,A5){var BA=this._getItemGroup(A8),BB,A9,A7,A6;if(BA){BB=BA.length;A9=-1;if(BB>0){A6=BB-1;do{if(BA[A6]==A5){A9=A6;break;}}while(A6--);if(A9>-1){A7=this._removeItemFromGroupByIndex(A8,A9);}}}return A7;},_updateItemProperties:function(A6){var A7=this._getItemGroup(A6),BA=A7.length,A9,A8,A5;if(BA>0){A5=BA-1;do{A9=A7[A5];if(A9){A8=A9.element;A9.index=A5;A9.groupIndex=A6;A8.setAttribute(At,A6);A8.setAttribute(i,A5);f.removeClass(A8,AJ);}}while(A5--);if(A8){f.addClass(A8,AJ);}}},_createItemGroup:function(A7){var A5,A6;if(!this._aItemGroups[A7]){this._aItemGroups[A7]=[];A5=document.createElement(L);this._aListElements[A7]=A5;A6=this._aItemGroups[A7];}return A6;},_getItemGroup:function(A7){var A5=AM.isNumber(A7)?A7:0,A8=this._aItemGroups,A6;if(A5 in A8){A6=A8[A5];}return A6;},_configureSubmenu:function(A5){var A6=A5.cfg.getProperty(O);if(A6){this.cfg.configChangedEvent.subscribe(this._onParentMenuConfigChange,A6,true);this.renderEvent.subscribe(this._onParentMenuRender,A6,true);}},_subscribeToItemEvents:function(A5){A5.destroyEvent.subscribe(this._onMenuItemDestroy,A5,this);
++A5.cfg.configChangedEvent.subscribe(this._onMenuItemConfigChange,A5,this);},_onVisibleChange:function(A7,A6){var A5=A6[0];if(A5){f.addClass(this.element,Au);}else{f.removeClass(this.element,Au);}},_cancelHideDelay:function(){var A5=this.getRoot()._hideDelayTimer;if(A5){A5.cancel();}},_execHideDelay:function(){this._cancelHideDelay();var A5=this.getRoot();A5._hideDelayTimer=AM.later(A5.cfg.getProperty(AX),this,function(){if(A5.activeItem){if(A5.hasFocus()){A5.activeItem.focus();}A5.clearActiveItem();}if(A5==this&&!(this instanceof YAHOO.widget.MenuBar)&&this.cfg.getProperty(Ac)==AD){this.hide();}});},_cancelShowDelay:function(){var A5=this.getRoot()._showDelayTimer;if(A5){A5.cancel();}},_execSubmenuHideDelay:function(A7,A6,A5){A7._submenuHideDelayTimer=AM.later(50,this,function(){if(this._nCurrentMouseX>(A6+10)){A7._submenuHideDelayTimer=AM.later(A5,A7,function(){this.hide();});}else{A7.hide();}});},_disableScrollHeader:function(){if(!this._bHeaderDisabled){f.addClass(this.header,P);this._bHeaderDisabled=true;}},_disableScrollFooter:function(){if(!this._bFooterDisabled){f.addClass(this.footer,E);this._bFooterDisabled=true;}},_enableScrollHeader:function(){if(this._bHeaderDisabled){f.removeClass(this.header,P);this._bHeaderDisabled=false;}},_enableScrollFooter:function(){if(this._bFooterDisabled){f.removeClass(this.footer,E);this._bFooterDisabled=false;}},_onMouseOver:function(BH,BA){var BI=BA[0],BE=BA[1],A5=AA.getTarget(BI),A9=this.getRoot(),BG=this._submenuHideDelayTimer,A6,A8,BD,A7,BC,BB;var BF=function(){if(this.parent.cfg.getProperty(y)){this.show();}};if(!this._bStopMouseEventHandlers){if(!this._bHandledMouseOverEvent&&(A5==this.element||f.isAncestor(this.element,A5))){if(this._useHideDelay){this._cancelHideDelay();}this._nCurrentMouseX=0;AA.on(this.element,b,this._onMouseMove,this,true);if(!(BE&&f.isAncestor(BE.element,AA.getRelatedTarget(BI)))){this.clearActiveItem();}if(this.parent&&BG){BG.cancel();this.parent.cfg.setProperty(y,true);A6=this.parent.parent;A6._bHandledMouseOutEvent=true;A6._bHandledMouseOverEvent=false;}this._bHandledMouseOverEvent=true;this._bHandledMouseOutEvent=false;}if(BE&&!BE.handledMouseOverEvent&&!BE.cfg.getProperty(Ah)&&(A5==BE.element||f.isAncestor(BE.element,A5))){A8=this.cfg.getProperty(Av);BD=(A8>0);if(BD){this._cancelShowDelay();}A7=this.activeItem;if(A7){A7.cfg.setProperty(y,false);}BC=BE.cfg;BC.setProperty(y,true);if(this.hasFocus()||A9._hasFocus){BE.focus();A9._hasFocus=false;}if(this.cfg.getProperty(Z)){BB=BC.getProperty(O);if(BB){if(BD){A9._showDelayTimer=AM.later(A9.cfg.getProperty(Av),BB,BF);}else{BB.show();}}}BE.handledMouseOverEvent=true;BE.handledMouseOutEvent=false;}}},_onMouseOut:function(BD,A7){var BE=A7[0],BB=A7[1],A8=AA.getRelatedTarget(BE),BC=false,BA,A9,A5,A6;if(!this._bStopMouseEventHandlers){if(BB&&!BB.cfg.getProperty(Ah)){BA=BB.cfg;A9=BA.getProperty(O);if(A9&&(A8==A9.element||f.isAncestor(A9.element,A8))){BC=true;}if(!BB.handledMouseOutEvent&&((A8!=BB.element&&!f.isAncestor(BB.element,A8))||BC)){if(!BC){BB.cfg.setProperty(y,false);if(A9){A5=this.cfg.getProperty(c);A6=this.cfg.getProperty(Av);if(!(this instanceof YAHOO.widget.MenuBar)&&A5>0&&A6>=A5){this._execSubmenuHideDelay(A9,AA.getPageX(BE),A5);}else{A9.hide();}}}BB.handledMouseOutEvent=true;BB.handledMouseOverEvent=false;}}if(!this._bHandledMouseOutEvent&&((A8!=this.element&&!f.isAncestor(this.element,A8))||BC)){if(this._useHideDelay){this._execHideDelay();}AA.removeListener(this.element,b,this._onMouseMove);this._nCurrentMouseX=AA.getPageX(BE);this._bHandledMouseOutEvent=true;this._bHandledMouseOverEvent=false;}}},_onMouseMove:function(A6,A5){if(!this._bStopMouseEventHandlers){this._nCurrentMouseX=AA.getPageX(A6);}},_onClick:function(BG,A7){var BH=A7[0],BB=A7[1],BD=false,A9,BE,A6,A5,BA,BC,BF;var A8=function(){A6=this.getRoot();if(A6 instanceof YAHOO.widget.MenuBar||A6.cfg.getProperty(Ac)==C){A6.clearActiveItem();}else{A6.hide();}};if(BB){if(BB.cfg.getProperty(Ah)){AA.preventDefault(BH);A8.call(this);}else{A9=BB.cfg.getProperty(O);BA=BB.cfg.getProperty(Q);if(BA){BC=BA.indexOf(M);BF=BA.length;if(BC!=-1){BA=BA.substr(BC,BF);BF=BA.length;if(BF>1){A5=BA.substr(1,BF);BE=YAHOO.widget.MenuManager.getMenu(A5);if(BE){BD=(this.getRoot()===BE.getRoot());}}else{if(BF===1){BD=true;}}}}if(BD&&!BB.cfg.getProperty(V)){AA.preventDefault(BH);if(As.webkit){BB.focus();}else{BB.focusEvent.fire();}}if(!A9&&!this.cfg.getProperty(Ar)){A8.call(this);}}}},_onKeyDown:function(BK,BE){var BH=BE[0],BG=BE[1],BD,BI,A6,BA,BL,A5,BO,A9,BJ,A8,BF,BN,BB,BC;if(this._useHideDelay){this._cancelHideDelay();}function A7(){this._bStopMouseEventHandlers=true;AM.later(10,this,function(){this._bStopMouseEventHandlers=false;});}if(BG&&!BG.cfg.getProperty(Ah)){BI=BG.cfg;A6=this.parent;switch(BH.keyCode){case 38:case 40:BL=(BH.keyCode==38)?BG.getPreviousEnabledSibling():BG.getNextEnabledSibling();if(BL){this.clearActiveItem();BL.cfg.setProperty(y,true);BL.focus();if(this.cfg.getProperty(AU)>0){A5=this.body;BO=A5.scrollTop;A9=A5.offsetHeight;BJ=this.getItems();A8=BJ.length-1;BF=BL.element.offsetTop;if(BH.keyCode==40){if(BF>=(A9+BO)){A5.scrollTop=BF-A9;}else{if(BF<=BO){A5.scrollTop=0;}}if(BL==BJ[A8]){A5.scrollTop=BL.element.offsetTop;}}else{if(BF<=BO){A5.scrollTop=BF-BL.element.offsetHeight;}else{if(BF>=(BO+A9)){A5.scrollTop=BF;}}if(BL==BJ[0]){A5.scrollTop=0;}}BO=A5.scrollTop;BN=A5.scrollHeight-A5.offsetHeight;if(BO===0){this._disableScrollHeader();this._enableScrollFooter();}else{if(BO==BN){this._enableScrollHeader();this._disableScrollFooter();}else{this._enableScrollHeader();this._enableScrollFooter();}}}}AA.preventDefault(BH);A7();break;case 39:BD=BI.getProperty(O);if(BD){if(!BI.getProperty(y)){BI.setProperty(y,true);}BD.show();BD.setInitialFocus();BD.setInitialSelection();}else{BA=this.getRoot();if(BA instanceof YAHOO.widget.MenuBar){BL=BA.activeItem.getNextEnabledSibling();if(BL){BA.clearActiveItem();BL.cfg.setProperty(y,true);BD=BL.cfg.getProperty(O);if(BD){BD.show();BD.setInitialFocus();}else{BL.focus();}}}}AA.preventDefault(BH);
++A7();break;case 37:if(A6){BB=A6.parent;if(BB instanceof YAHOO.widget.MenuBar){BL=BB.activeItem.getPreviousEnabledSibling();if(BL){BB.clearActiveItem();BL.cfg.setProperty(y,true);BD=BL.cfg.getProperty(O);if(BD){BD.show();BD.setInitialFocus();}else{BL.focus();}}}else{this.hide();A6.focus();}}AA.preventDefault(BH);A7();break;}}if(BH.keyCode==27){if(this.cfg.getProperty(Ac)==AD){this.hide();if(this.parent){this.parent.focus();}else{BC=this._focusedElement;if(BC&&BC.focus){try{BC.focus();}catch(BM){}}}}else{if(this.activeItem){BD=this.activeItem.cfg.getProperty(O);if(BD&&BD.cfg.getProperty(Au)){BD.hide();this.activeItem.focus();}else{this.activeItem.blur();this.activeItem.cfg.setProperty(y,false);}}}AA.preventDefault(BH);}},_onKeyPress:function(A7,A6){var A5=A6[0];if(A5.keyCode==40||A5.keyCode==38){AA.preventDefault(A5);}},_onBlur:function(A6,A5){if(this._hasFocus){this._hasFocus=false;}},_onYChange:function(A6,A5){var A8=this.parent,BA,A7,A9;if(A8){BA=A8.parent.body.scrollTop;if(BA>0){A9=(this.cfg.getProperty(R)-BA);f.setY(this.element,A9);A7=this.iframe;if(A7){f.setY(A7,A9);}this.cfg.setProperty(R,A9,true);}}},_onScrollTargetMouseOver:function(BB,BE){var BD=this._bodyScrollTimer;if(BD){BD.cancel();}this._cancelHideDelay();var A7=AA.getTarget(BB),A9=this.body,A8=this.cfg.getProperty(j),A5,A6;function BC(){var BF=A9.scrollTop;if(BF<A5){A9.scrollTop=(BF+A8);this._enableScrollHeader();}else{A9.scrollTop=A5;this._bodyScrollTimer.cancel();this._disableScrollFooter();}}function BA(){var BF=A9.scrollTop;if(BF>0){A9.scrollTop=(BF-A8);this._enableScrollFooter();}else{A9.scrollTop=0;this._bodyScrollTimer.cancel();this._disableScrollHeader();}}if(f.hasClass(A7,A0)){A6=BA;}else{A5=A9.scrollHeight-A9.offsetHeight;A6=BC;}this._bodyScrollTimer=AM.later(10,this,A6,null,true);},_onScrollTargetMouseOut:function(A7,A5){var A6=this._bodyScrollTimer;if(A6){A6.cancel();}this._cancelHideDelay();},_onInit:function(A6,A5){this.cfg.subscribeToConfigEvent(Au,this._onVisibleChange);var A7=!this.parent,A8=this.lazyLoad;if(((A7&&!A8)||(A7&&(this.cfg.getProperty(Au)||this.cfg.getProperty(Ac)==C))||(!A7&&!A8))&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();}if(this.itemData){this.addItems(this.itemData);}}else{if(A8){this.cfg.fireQueue();}}},_onBeforeRender:function(A8,A7){var A9=this.element,BC=this._aListElements.length,A6=true,BB=0,A5,BA;if(BC>0){do{A5=this._aListElements[BB];if(A5){if(A6){f.addClass(A5,AJ);A6=false;}if(!f.isAncestor(A9,A5)){this.appendToBody(A5);}BA=this._aGroupTitleElements[BB];if(BA){if(!f.isAncestor(A9,BA)){A5.parentNode.insertBefore(BA,A5);}f.addClass(A5,D);}}BB++;}while(BB<BC);}},_onRender:function(A6,A5){if(this.cfg.getProperty(Ac)==AD){if(!this.cfg.getProperty(Au)){this.positionOffScreen();}}},_onBeforeShow:function(A7,A6){var A9,BC,A8,BA=this.cfg.getProperty(g);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()==AH){A9=this.itemData.length;for(BC=0;BC<A9;BC++){if(this.itemData[BC].tagName){this.addItem((new this.ITEM_TYPE(this.itemData[BC])));}}}else{this.addItems(this.itemData);}}A8=this.srcElement;if(A8){if(A8.tagName.toUpperCase()==AH){if(f.inDocument(A8)){this.render(A8.parentNode);}else{this.render(BA);}}else{this.render();}}else{if(this.parent){this.render(this.parent.element);}else{this.render(BA);}}}var BB=this.parent,A5;if(!BB&&this.cfg.getProperty(Ac)==AD){this.cfg.refireEvent(e);}if(BB){A5=BB.parent.cfg.getProperty(AO);this.cfg.setProperty(p,[BB.element,A5[0],A5[1]]);this.align();}},getConstrainedY:function(BH){var BS=this,BO=BS.cfg.getProperty(p),BV=BS.cfg.getProperty(AU),BR,BG={"trbr":true,"tlbl":true,"bltl":true,"brtr":true},BA=(BO&&BG[BO[1]+BO[2]]),BC=BS.element,BW=BC.offsetHeight,BQ=AB.VIEWPORT_OFFSET,BL=f.getViewportHeight(),BP=f.getDocumentScrollTop(),BM=(BS.cfg.getProperty(Aj)+BQ<BL),BU,BD,BJ,BK,BF=false,BE,A7,BI=BP+BQ,A9=BP+BL-BW-BQ,A5=BH;var BB=function(){var BX;if((BS.cfg.getProperty(R)-BP)>BJ){BX=(BJ-BW);}else{BX=(BJ+BK);}BS.cfg.setProperty(R,(BX+BP),true);return BX;};var A8=function(){if((BS.cfg.getProperty(R)-BP)>BJ){return(A7-BQ);}else{return(BE-BQ);}};var BN=function(){var BX;if((BS.cfg.getProperty(R)-BP)>BJ){BX=(BJ+BK);}else{BX=(BJ-BC.offsetHeight);}BS.cfg.setProperty(R,(BX+BP),true);};var A6=function(){BS._setScrollHeight(this.cfg.getProperty(AU));BS.hideEvent.unsubscribe(A6);};var BT=function(){var Ba=A8(),BX=(BS.getItems().length>0),BZ,BY;if(BW>Ba){BZ=BX?BS.cfg.getProperty(Aj):BW;if((Ba>BZ)&&BX){BR=Ba;}else{BR=BV;}BS._setScrollHeight(BR);BS.hideEvent.subscribe(A6);BN();if(Ba<BZ){if(BF){BB();}else{BB();BF=true;BY=BT();}}}else{if(BR&&(BR!==BV)){BS._setScrollHeight(BV);BS.hideEvent.subscribe(A6);BN();}}return BY;};if(BH<BI||BH>A9){if(BM){if(BS.cfg.getProperty(A4)&&BA){BD=BO[0];BK=BD.offsetHeight;BJ=(f.getY(BD)-BP);BE=BJ;A7=(BL-(BJ+BK));BT();A5=BS.cfg.getProperty(R);}else{if(!(BS instanceof YAHOO.widget.MenuBar)&&BW>=BL){BU=(BL-(BQ*2));if(BU>BS.cfg.getProperty(Aj)){BS._setScrollHeight(BU);BS.hideEvent.subscribe(A6);BN();A5=BS.cfg.getProperty(R);}}else{if(BH<BI){A5=BI;}else{if(BH>A9){A5=A9;}}}}}else{A5=BQ+BP;}}return A5;},_onHide:function(A6,A5){if(this.cfg.getProperty(Ac)===AD){this.positionOffScreen();}},_onShow:function(BD,BB){var A5=this.parent,A7,A8,BA,A6;function A9(BF){var BE;if(BF.type==Ak||(BF.type==Ae&&BF.keyCode==27)){BE=AA.getTarget(BF);if(BE!=A7.element||!f.isAncestor(A7.element,BE)){A7.cfg.setProperty(Z,false);AA.removeListener(document,Ak,A9);AA.removeListener(document,Ae,A9);}}}function BC(BF,BE,BG){this.cfg.setProperty(U,u);this.hideEvent.unsubscribe(BC,BG);}if(A5){A7=A5.parent;if(!A7.cfg.getProperty(Z)&&(A7 instanceof YAHOO.widget.MenuBar||A7.cfg.getProperty(Ac)==C)){A7.cfg.setProperty(Z,true);AA.on(document,Ak,A9);AA.on(document,Ae,A9);}if((this.cfg.getProperty("x")<A7.cfg.getProperty("x"))&&(As.gecko&&As.gecko<1.9)&&!this.cfg.getProperty(U)){A8=this.element;
++BA=A8.offsetWidth;A8.style.width=BA+AQ;A6=(BA-(A8.offsetWidth-BA))+AQ;this.cfg.setProperty(U,A6);this.hideEvent.subscribe(BC,A6);}}if(this===this.getRoot()&&this.cfg.getProperty(Ac)===AD){this._focusedElement=Ad;this.focus();}},_onBeforeHide:function(A7,A6){var A5=this.activeItem,A9=this.getRoot(),BA,A8;if(A5){BA=A5.cfg;BA.setProperty(y,false);A8=BA.getProperty(O);if(A8){A8.hide();}}if(As.ie&&this.cfg.getProperty(Ac)===AD&&this.parent){A9._hasFocus=this.hasFocus();}if(A9==this){A9.blur();}},_onParentMenuConfigChange:function(A6,A5,A9){var A7=A5[0][0],A8=A5[0][1];switch(A7){case AF:case w:case AX:case Av:case c:case AC:case Ay:case A2:case j:case AU:case Aj:case AE:case Ag:case A4:case Ar:A9.cfg.setProperty(A7,A8);break;case AO:if(!(this.parent.parent instanceof YAHOO.widget.MenuBar)){A9.cfg.setProperty(A7,A8);}break;}},_onParentMenuRender:function(A6,A5,BB){var A8=BB.parent.parent,A7=A8.cfg,A9={constraintoviewport:A7.getProperty(w),xy:[0,0],clicktohide:A7.getProperty(AC),effect:A7.getProperty(Ay),showdelay:A7.getProperty(Av),hidedelay:A7.getProperty(AX),submenuhidedelay:A7.getProperty(c),classname:A7.getProperty(A2),scrollincrement:A7.getProperty(j),maxheight:A7.getProperty(AU),minscrollheight:A7.getProperty(Aj),iframe:A7.getProperty(AF),shadow:A7.getProperty(Ag),preventcontextoverlap:A7.getProperty(A4),monitorresize:A7.getProperty(AE),keepopen:A7.getProperty(Ar)},BA;if(!(A8 instanceof YAHOO.widget.MenuBar)){A9[AO]=A7.getProperty(AO);}BB.cfg.applyConfig(A9);if(!this.lazyLoad){BA=this.parent.element;if(this.element.parentNode==BA){this.render();}else{this.render(BA);}}},_onMenuItemDestroy:function(A7,A6,A5){this._removeItemFromGroupByValue(A5.groupIndex,A5);},_onMenuItemConfigChange:function(A7,A6,A5){var A9=A6[0][0],BA=A6[0][1],A8;switch(A9){case y:if(BA===true){this.activeItem=A5;}break;case O:A8=A6[0][1];if(A8){this._configureSubmenu(A5);}break;}},configVisible:function(A7,A6,A8){var A5,A9;if(this.cfg.getProperty(Ac)==AD){r.superclass.configVisible.call(this,A7,A6,A8);}else{A5=A6[0];A9=f.getStyle(this.element,AW);f.setStyle(this.element,J,Au);if(A5){if(A9!=AV){this.beforeShowEvent.fire();f.setStyle(this.element,AW,AV);this.showEvent.fire();}}else{if(A9==AV){this.beforeHideEvent.fire();f.setStyle(this.element,AW,AY);this.hideEvent.fire();}}}},configPosition:function(A7,A6,BA){var A9=this.element,A8=A6[0]==C?C:z,BB=this.cfg,A5;f.setStyle(A9,Ac,A8);if(A8==C){f.setStyle(A9,AW,AV);BB.setProperty(Au,true);}else{f.setStyle(A9,J,AL);}if(A8==z){A5=BB.getProperty(AS);if(!A5||A5===0){BB.setProperty(AS,1);}}},configIframe:function(A6,A5,A7){if(this.cfg.getProperty(Ac)==AD){r.superclass.configIframe.call(this,A6,A5,A7);}},configHideDelay:function(A6,A5,A7){var A8=A5[0];this._useHideDelay=(A8>0);},configContainer:function(A6,A5,A8){var A7=A5[0];if(AM.isString(A7)){this.cfg.setProperty(g,f.get(A7),true);}},_clearSetWidthFlag:function(){this._widthSetForScroll=false;this.cfg.unsubscribeFromConfigEvent(U,this._clearSetWidthFlag);},_setScrollHeight:function(BG){var BC=BG,BB=false,BH=false,A8,A9,BF,A6,BE,BI,A5,BD,BA,A7;if(this.getItems().length>0){A8=this.element;A9=this.body;BF=this.header;A6=this.footer;BE=this._onScrollTargetMouseOver;BI=this._onScrollTargetMouseOut;A5=this.cfg.getProperty(Aj);if(BC>0&&BC<A5){BC=A5;}f.setStyle(A9,Ao,u);f.removeClass(A9,l);A9.scrollTop=0;BH=((As.gecko&&As.gecko<1.9)||As.ie);if(BC>0&&BH&&!this.cfg.getProperty(U)){BA=A8.offsetWidth;A8.style.width=BA+AQ;A7=(BA-(A8.offsetWidth-BA))+AQ;this.cfg.unsubscribeFromConfigEvent(U,this._clearSetWidthFlag);this.cfg.setProperty(U,A7);this._widthSetForScroll=true;this.cfg.subscribeToConfigEvent(U,this._clearSetWidthFlag);}if(BC>0&&(!BF&&!A6)){this.setHeader(AK);this.setFooter(AK);BF=this.header;A6=this.footer;f.addClass(BF,T);f.addClass(A6,x);A8.insertBefore(BF,A9);A8.appendChild(A6);}BD=BC;if(BF&&A6){BD=(BD-(BF.offsetHeight+A6.offsetHeight));}if((BD>0)&&(A9.offsetHeight>BC)){f.addClass(A9,l);f.setStyle(A9,Ao,(BD+AQ));if(!this._hasScrollEventHandlers){AA.on(BF,Ai,BE,this,true);AA.on(BF,H,BI,this,true);AA.on(A6,Ai,BE,this,true);AA.on(A6,H,BI,this,true);this._hasScrollEventHandlers=true;}this._disableScrollHeader();this._enableScrollFooter();BB=true;}else{if(BF&&A6){if(this._widthSetForScroll){this._widthSetForScroll=false;this.cfg.unsubscribeFromConfigEvent(U,this._clearSetWidthFlag);this.cfg.setProperty(U,u);}this._enableScrollHeader();this._enableScrollFooter();if(this._hasScrollEventHandlers){AA.removeListener(BF,Ai,BE);AA.removeListener(BF,H,BI);AA.removeListener(A6,Ai,BE);AA.removeListener(A6,H,BI);this._hasScrollEventHandlers=false;}A8.removeChild(BF);A8.removeChild(A6);this.header=null;this.footer=null;BB=true;}}if(BB){this.cfg.refireEvent(AF);this.cfg.refireEvent(Ag);}}},_setMaxHeight:function(A6,A5,A7){this._setScrollHeight(A7);this.renderEvent.unsubscribe(this._setMaxHeight);},configMaxHeight:function(A6,A5,A7){var A8=A5[0];if(this.lazyLoad&&!this.body&&A8>0){this.renderEvent.subscribe(this._setMaxHeight,A8,this);}else{this._setScrollHeight(A8);}},configClassName:function(A7,A6,A8){var A5=A6[0];if(this._sClassName){f.removeClass(this.element,this._sClassName);}f.addClass(this.element,A5);this._sClassName=A5;},_onItemAdded:function(A6,A5){var A7=A5[0];if(A7){A7.cfg.setProperty(Ah,true);}},configDisabled:function(A7,A6,BA){var A9=A6[0],A5=this.getItems(),BB,A8;if(AM.isArray(A5)){BB=A5.length;if(BB>0){A8=BB-1;do{A5[A8].cfg.setProperty(Ah,A9);}while(A8--);}if(A9){this.clearActiveItem(true);f.addClass(this.element,Ah);this.itemAddedEvent.subscribe(this._onItemAdded);}else{f.removeClass(this.element,Ah);this.itemAddedEvent.unsubscribe(this._onItemAdded);}}},configShadow:function(BD,A7,BC){var BB=function(){var BG=this.element,BF=this._shadow;if(BF&&BG){if(BF.style.width&&BF.style.height){BF.style.width=u;BF.style.height=u;}BF.style.width=(BG.offsetWidth+6)+AQ;BF.style.height=(BG.offsetHeight+1)+AQ;}};var BE=function(){this.element.appendChild(this._shadow);};var A9=function(){f.addClass(this._shadow,AG);};var BA=function(){f.removeClass(this._shadow,AG);
++};var A6=function(){var BG=this._shadow,BF;if(!BG){BF=this.element;if(!Ap){Ap=document.createElement(K);Ap.className=m;}BG=Ap.cloneNode(false);BF.appendChild(BG);this._shadow=BG;this.beforeShowEvent.subscribe(A9);this.beforeHideEvent.subscribe(BA);if(As.ie){AM.later(0,this,function(){BB.call(this);this.syncIframe();});this.cfg.subscribeToConfigEvent(U,BB);this.cfg.subscribeToConfigEvent(Ao,BB);this.cfg.subscribeToConfigEvent(AU,BB);this.changeContentEvent.subscribe(BB);Aw.textResizeEvent.subscribe(BB,this,true);this.destroyEvent.subscribe(function(){Aw.textResizeEvent.unsubscribe(BB,this);});}this.cfg.subscribeToConfigEvent(AU,BE);}};var A8=function(){if(this._shadow){BE.call(this);if(As.ie){BB.call(this);}}else{A6.call(this);}this.beforeShowEvent.unsubscribe(A8);};var A5=A7[0];if(A5&&this.cfg.getProperty(Ac)==AD){if(this.cfg.getProperty(Au)){if(this._shadow){BE.call(this);if(As.ie){BB.call(this);}}else{A6.call(this);}}else{this.beforeShowEvent.subscribe(A8);}}},initEvents:function(){r.superclass.initEvents.call(this);var A6=Ab.length-1,A7,A5;do{A7=Ab[A6];A5=this.createEvent(A7[1]);A5.signature=F.LIST;this[A7[0]]=A5;}while(A6--);},positionOffScreen:function(){var A6=this.iframe,A7=this.element,A5=this.OFF_SCREEN_POSITION;A7.style.top=u;A7.style.left=u;if(A6){A6.style.top=A5;A6.style.left=A5;}},getRoot:function(){var A7=this.parent,A6,A5;if(A7){A6=A7.parent;A5=A6?A6.getRoot():this;}else{A5=this;}return A5;},toString:function(){var A6=Aq,A5=this.id;if(A5){A6+=(A1+A5);}return A6;},setItemGroupTitle:function(BA,A9){var A8,A7,A6,A5;if(AM.isString(BA)&&BA.length>0){A8=AM.isNumber(A9)?A9:0;A7=this._aGroupTitleElements[A8];if(A7){A7.innerHTML=BA;}else{A7=document.createElement(this.GROUP_TITLE_TAG_NAME);A7.innerHTML=BA;this._aGroupTitleElements[A8]=A7;}A6=this._aGroupTitleElements.length-1;do{if(this._aGroupTitleElements[A6]){f.removeClass(this._aGroupTitleElements[A6],AJ);A5=A6;}}while(A6--);if(A5!==null){f.addClass(this._aGroupTitleElements[A5],AJ);}this.changeContentEvent.fire();}},addItem:function(A5,A6){return this._addItemToGroup(A6,A5);},addItems:function(A9,A8){var BB,A5,BA,A6,A7;if(AM.isArray(A9)){BB=A9.length;A5=[];for(A6=0;A6<BB;A6++){BA=A9[A6];if(BA){if(AM.isArray(BA)){A5[A5.length]=this.addItems(BA,A6);}else{A5[A5.length]=this._addItemToGroup(A8,BA);}}}if(A5.length){A7=A5;}}return A7;},insertItem:function(A5,A6,A7){return this._addItemToGroup(A7,A5,A6);},removeItem:function(A5,A7){var A8,A6;if(!AM.isUndefined(A5)){if(A5 instanceof YAHOO.widget.MenuItem){A8=this._removeItemFromGroupByValue(A7,A5);}else{if(AM.isNumber(A5)){A8=this._removeItemFromGroupByIndex(A7,A5);}}if(A8){A8.destroy();A6=A8;}}return A6;},getItems:function(){var A8=this._aItemGroups,A6,A7,A5=[];if(AM.isArray(A8)){A6=A8.length;A7=((A6==1)?A8[0]:(Array.prototype.concat.apply(A5,A8)));}return A7;},getItemGroups:function(){return this._aItemGroups;},getItem:function(A6,A7){var A8,A5;if(AM.isNumber(A6)){A8=this._getItemGroup(A7);if(A8){A5=A8[A6];}}return A5;},getSubmenus:function(){var A6=this.getItems(),BA=A6.length,A5,A7,A9,A8;if(BA>0){A5=[];for(A8=0;A8<BA;A8++){A9=A6[A8];if(A9){A7=A9.cfg.getProperty(O);if(A7){A5[A5.length]=A7;}}}}return A5;},clearContent:function(){var A9=this.getItems(),A6=A9.length,A7=this.element,A8=this.body,BD=this.header,A5=this.footer,BC,BB,BA;if(A6>0){BA=A6-1;do{BC=A9[BA];if(BC){BB=BC.cfg.getProperty(O);if(BB){this.cfg.configChangedEvent.unsubscribe(this._onParentMenuConfigChange,BB);this.renderEvent.unsubscribe(this._onParentMenuRender,BB);}this.removeItem(BC,BC.groupIndex);}}while(BA--);}if(BD){AA.purgeElement(BD);A7.removeChild(BD);}if(A5){AA.purgeElement(A5);A7.removeChild(A5);}if(A8){AA.purgeElement(A8);A8.innerHTML=u;}this.activeItem=null;this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];this.cfg.setProperty(U,null);},destroy:function(){this.clearContent();this._aItemGroups=null;this._aListElements=null;this._aGroupTitleElements=null;r.superclass.destroy.call(this);},setInitialFocus:function(){var A5=this._getFirstEnabledItem();if(A5){A5.focus();}},setInitialSelection:function(){var A5=this._getFirstEnabledItem();if(A5){A5.cfg.setProperty(y,true);}},clearActiveItem:function(A7){if(this.cfg.getProperty(Av)>0){this._cancelShowDelay();}var A5=this.activeItem,A8,A6;if(A5){A8=A5.cfg;if(A7){A5.blur();this.getRoot()._hasFocus=true;}A8.setProperty(y,false);A6=A8.getProperty(O);if(A6){A6.hide();}this.activeItem=null;}},focus:function(){if(!this.hasFocus()){this.setInitialFocus();}},blur:function(){var A5;if(this.hasFocus()){A5=A3.getFocusedMenuItem();if(A5){A5.blur();}}},hasFocus:function(){return(A3.getFocusedMenu()==this.getRoot());},_doItemSubmenuSubscribe:function(A6,A5,A8){var A9=A5[0],A7=A9.cfg.getProperty(O);if(A7){A7.subscribe.apply(A7,A8);}},_doSubmenuSubscribe:function(A6,A5,A8){var A7=this.cfg.getProperty(O);if(A7){A7.subscribe.apply(A7,A8);}},subscribe:function(){r.superclass.subscribe.apply(this,arguments);r.superclass.subscribe.call(this,AR,this._doItemSubmenuSubscribe,arguments);var A5=this.getItems(),A9,A8,A6,A7;if(A5){A9=A5.length;if(A9>0){A7=A9-1;do{A8=A5[A7];A6=A8.cfg.getProperty(O);if(A6){A6.subscribe.apply(A6,arguments);}else{A8.cfg.subscribeToConfigEvent(O,this._doSubmenuSubscribe,arguments);}}while(A7--);}}},unsubscribe:function(){r.superclass.unsubscribe.apply(this,arguments);r.superclass.unsubscribe.call(this,AR,this._doItemSubmenuSubscribe,arguments);var A5=this.getItems(),A9,A8,A6,A7;if(A5){A9=A5.length;if(A9>0){A7=A9-1;do{A8=A5[A7];A6=A8.cfg.getProperty(O);if(A6){A6.unsubscribe.apply(A6,arguments);}else{A8.cfg.unsubscribeFromConfigEvent(O,this._doSubmenuSubscribe,arguments);}}while(A7--);}}},initDefaultConfig:function(){r.superclass.initDefaultConfig.call(this);var A5=this.cfg;A5.addProperty(AZ.key,{handler:this.configVisible,value:AZ.value,validator:AZ.validator});A5.addProperty(AP.key,{handler:this.configConstrainToViewport,value:AP.value,validator:AP.validator,supercedes:AP.supercedes});A5.addProperty(AI.key,{value:AI.value,validator:AI.validator,supercedes:AI.supercedes});
++A5.addProperty(S.key,{handler:this.configPosition,value:S.value,validator:S.validator,supercedes:S.supercedes});A5.addProperty(A.key,{value:A.value,suppressEvent:A.suppressEvent});A5.addProperty(t.key,{value:t.value,validator:t.validator,suppressEvent:t.suppressEvent});A5.addProperty(Y.key,{value:Y.value,validator:Y.validator,suppressEvent:Y.suppressEvent});A5.addProperty(q.key,{handler:this.configHideDelay,value:q.value,validator:q.validator,suppressEvent:q.suppressEvent});A5.addProperty(v.key,{value:v.value,validator:v.validator,suppressEvent:v.suppressEvent});A5.addProperty(o.key,{value:o.value,validator:o.validator,suppressEvent:o.suppressEvent});A5.addProperty(AN.key,{handler:this.configContainer,value:document.body,suppressEvent:AN.suppressEvent});A5.addProperty(Af.key,{value:Af.value,validator:Af.validator,supercedes:Af.supercedes,suppressEvent:Af.suppressEvent});A5.addProperty(N.key,{value:N.value,validator:N.validator,supercedes:N.supercedes,suppressEvent:N.suppressEvent});A5.addProperty(X.key,{handler:this.configMaxHeight,value:X.value,validator:X.validator,suppressEvent:X.suppressEvent,supercedes:X.supercedes});A5.addProperty(W.key,{handler:this.configClassName,value:W.value,validator:W.validator,supercedes:W.supercedes});A5.addProperty(a.key,{handler:this.configDisabled,value:a.value,validator:a.validator,suppressEvent:a.suppressEvent});A5.addProperty(I.key,{handler:this.configShadow,value:I.value,validator:I.validator});A5.addProperty(Al.key,{value:Al.value,validator:Al.validator});}});})();(function(){YAHOO.widget.MenuItem=function(AS,AR){if(AS){if(AR){this.parent=AR.parent;this.value=AR.value;this.id=AR.id;}this.init(AS,AR);}};var x=YAHOO.util.Dom,j=YAHOO.widget.Module,AB=YAHOO.widget.Menu,c=YAHOO.widget.MenuItem,AK=YAHOO.util.CustomEvent,k=YAHOO.env.ua,AQ=YAHOO.lang,AL="text",O="#",Q="-",L="helptext",n="url",AH="target",A="emphasis",N="strongemphasis",b="checked",w="submenu",H="disabled",B="selected",P="hassubmenu",U="checked-disabled",AI="hassubmenu-disabled",AD="hassubmenu-selected",T="checked-selected",q="onclick",J="classname",AJ="",i="OPTION",v="OPTGROUP",K="LI",AE="href",r="SELECT",X="DIV",AN='<em class="helptext">',a="<em>",I="</em>",W="<strong>",y="</strong>",Y="preventcontextoverlap",h="obj",AG="scope",t="none",V="visible",E=" ",m="MenuItem",AA="click",D="show",M="hide",S="li",AF='<a href="#"></a>',p=[["mouseOverEvent","mouseover"],["mouseOutEvent","mouseout"],["mouseDownEvent","mousedown"],["mouseUpEvent","mouseup"],["clickEvent",AA],["keyPressEvent","keypress"],["keyDownEvent","keydown"],["keyUpEvent","keyup"],["focusEvent","focus"],["blurEvent","blur"],["destroyEvent","destroy"]],o={key:AL,value:AJ,validator:AQ.isString,suppressEvent:true},s={key:L,supercedes:[AL],suppressEvent:true},G={key:n,value:O,suppressEvent:true},AO={key:AH,suppressEvent:true},AP={key:A,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[AL]},d={key:N,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[AL]},l={key:b,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[H,B]},F={key:w,suppressEvent:true,supercedes:[H,B]},AM={key:H,value:false,validator:AQ.isBoolean,suppressEvent:true,supercedes:[AL,B]},f={key:B,value:false,validator:AQ.isBoolean,suppressEvent:true},u={key:q,suppressEvent:true},AC={key:J,value:null,validator:AQ.isString,suppressEvent:true},z={key:"keylistener",value:null,suppressEvent:true},C=null,e={};var Z=function(AU,AT){var AR=e[AU];if(!AR){e[AU]={};AR=e[AU];}var AS=AR[AT];if(!AS){AS=AU+Q+AT;AR[AT]=AS;}return AS;};var g=function(AR){x.addClass(this.element,Z(this.CSS_CLASS_NAME,AR));x.addClass(this._oAnchor,Z(this.CSS_LABEL_CLASS_NAME,AR));};var R=function(AR){x.removeClass(this.element,Z(this.CSS_CLASS_NAME,AR));x.removeClass(this._oAnchor,Z(this.CSS_LABEL_CLASS_NAME,AR));};c.prototype={CSS_CLASS_NAME:"yuimenuitem",CSS_LABEL_CLASS_NAME:"yuimenuitemlabel",SUBMENU_TYPE:null,_oAnchor:null,_oHelpTextEM:null,_oSubmenu:null,_oOnclickAttributeValue:null,_sClassName:null,constructor:c,index:null,groupIndex:null,parent:null,element:null,srcElement:null,value:null,browser:j.prototype.browser,id:null,init:function(AR,Ab){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=AB;}this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();var AX=this.cfg,AY=O,AT,Aa,AZ,AS,AV,AU,AW;if(AQ.isString(AR)){this._createRootNodeStructure();AX.queueProperty(AL,AR);}else{if(AR&&AR.tagName){switch(AR.tagName.toUpperCase()){case i:this._createRootNodeStructure();AX.queueProperty(AL,AR.text);AX.queueProperty(H,AR.disabled);this.value=AR.value;this.srcElement=AR;break;case v:this._createRootNodeStructure();AX.queueProperty(AL,AR.label);AX.queueProperty(H,AR.disabled);this.srcElement=AR;this._initSubTree();break;case K:AZ=x.getFirstChild(AR);if(AZ){AY=AZ.getAttribute(AE,2);AS=AZ.getAttribute(AH);AV=AZ.innerHTML;}this.srcElement=AR;this.element=AR;this._oAnchor=AZ;AX.setProperty(AL,AV,true);AX.setProperty(n,AY,true);AX.setProperty(AH,AS,true);this._initSubTree();break;}}}if(this.element){AU=(this.srcElement||this.element).id;if(!AU){AU=this.id||x.generateId();this.element.id=AU;}this.id=AU;x.addClass(this.element,this.CSS_CLASS_NAME);x.addClass(this._oAnchor,this.CSS_LABEL_CLASS_NAME);AW=p.length-1;do{Aa=p[AW];AT=this.createEvent(Aa[1]);AT.signature=AK.LIST;this[Aa[0]]=AT;}while(AW--);if(Ab){AX.applyConfig(Ab);}AX.fireQueue();}},_createRootNodeStructure:function(){var AR,AS;if(!C){C=document.createElement(S);C.innerHTML=AF;}AR=C.cloneNode(true);AR.className=this.CSS_CLASS_NAME;AS=AR.firstChild;AS.className=this.CSS_LABEL_CLASS_NAME;this.element=AR;this._oAnchor=AS;},_initSubTree:function(){var AX=this.srcElement,AT=this.cfg,AV,AU,AS,AR,AW;if(AX.childNodes.length>0){if(this.parent.lazyLoad&&this.parent.srcElement&&this.parent.srcElement.tagName.toUpperCase()==r){AT.setProperty(w,{id:x.generateId(),itemdata:AX.childNodes});}else{AV=AX.firstChild;AU=[];do{if(AV&&AV.tagName){switch(AV.tagName.toUpperCase()){case X:AT.setProperty(w,AV);break;case i:AU[AU.length]=AV;break;}}}while((AV=AV.nextSibling));
++AS=AU.length;if(AS>0){AR=new this.SUBMENU_TYPE(x.generateId());AT.setProperty(w,AR);for(AW=0;AW<AS;AW++){AR.addItem((new AR.ITEM_TYPE(AU[AW])));}}}}},configText:function(Aa,AT,AV){var AS=AT[0],AU=this.cfg,AY=this._oAnchor,AR=AU.getProperty(L),AZ=AJ,AW=AJ,AX=AJ;if(AS){if(AR){AZ=AN+AR+I;}if(AU.getProperty(A)){AW=a;AX=I;}if(AU.getProperty(N)){AW=W;AX=y;}AY.innerHTML=(AW+AS+AX+AZ);}},configHelpText:function(AT,AS,AR){this.cfg.refireEvent(AL);},configURL:function(AT,AS,AR){var AV=AS[0];if(!AV){AV=O;}var AU=this._oAnchor;if(k.opera){AU.removeAttribute(AE);}AU.setAttribute(AE,AV);},configTarget:function(AU,AT,AS){var AR=AT[0],AV=this._oAnchor;if(AR&&AR.length>0){AV.setAttribute(AH,AR);}else{AV.removeAttribute(AH);}},configEmphasis:function(AT,AS,AR){var AV=AS[0],AU=this.cfg;if(AV&&AU.getProperty(N)){AU.setProperty(N,false);}AU.refireEvent(AL);},configStrongEmphasis:function(AU,AT,AS){var AR=AT[0],AV=this.cfg;if(AR&&AV.getProperty(A)){AV.setProperty(A,false);}AV.refireEvent(AL);},configChecked:function(AT,AS,AR){var AV=AS[0],AU=this.cfg;if(AV){g.call(this,b);}else{R.call(this,b);}AU.refireEvent(AL);if(AU.getProperty(H)){AU.refireEvent(H);}if(AU.getProperty(B)){AU.refireEvent(B);}},configDisabled:function(AT,AS,AR){var AV=AS[0],AW=this.cfg,AU=AW.getProperty(w),AX=AW.getProperty(b);if(AV){if(AW.getProperty(B)){AW.setProperty(B,false);}g.call(this,H);if(AU){g.call(this,AI);}if(AX){g.call(this,U);}}else{R.call(this,H);if(AU){R.call(this,AI);}if(AX){R.call(this,U);}}},configSelected:function(AT,AS,AR){var AX=this.cfg,AW=this._oAnchor,AV=AS[0],AY=AX.getProperty(b),AU=AX.getProperty(w);if(k.opera){AW.blur();}if(AV&&!AX.getProperty(H)){g.call(this,B);if(AU){g.call(this,AD);}if(AY){g.call(this,T);}}else{R.call(this,B);if(AU){R.call(this,AD);}if(AY){R.call(this,T);}}if(this.hasFocus()&&k.opera){AW.focus();}},_onSubmenuBeforeHide:function(AU,AT){var AV=this.parent,AR;function AS(){AV._oAnchor.blur();AR.beforeHideEvent.unsubscribe(AS);}if(AV.hasFocus()){AR=AV.parent;AR.beforeHideEvent.subscribe(AS);}},configSubmenu:function(AY,AT,AW){var AV=AT[0],AU=this.cfg,AS=this.parent&&this.parent.lazyLoad,AX,AZ,AR;if(AV){if(AV instanceof AB){AX=AV;AX.parent=this;AX.lazyLoad=AS;}else{if(AQ.isObject(AV)&&AV.id&&!AV.nodeType){AZ=AV.id;AR=AV;AR.lazyload=AS;AR.parent=this;AX=new this.SUBMENU_TYPE(AZ,AR);AU.setProperty(w,AX,true);}else{AX=new this.SUBMENU_TYPE(AV,{lazyload:AS,parent:this});AU.setProperty(w,AX,true);}}if(AX){AX.cfg.setProperty(Y,true);g.call(this,P);if(AU.getProperty(n)===O){AU.setProperty(n,(O+AX.id));}this._oSubmenu=AX;if(k.opera){AX.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);}}}else{R.call(this,P);if(this._oSubmenu){this._oSubmenu.destroy();}}if(AU.getProperty(H)){AU.refireEvent(H);}if(AU.getProperty(B)){AU.refireEvent(B);}},configOnClick:function(AT,AS,AR){var AU=AS[0];if(this._oOnclickAttributeValue&&(this._oOnclickAttributeValue!=AU)){this.clickEvent.unsubscribe(this._oOnclickAttributeValue.fn,this._oOnclickAttributeValue.obj);this._oOnclickAttributeValue=null;}if(!this._oOnclickAttributeValue&&AQ.isObject(AU)&&AQ.isFunction(AU.fn)){this.clickEvent.subscribe(AU.fn,((h in AU)?AU.obj:this),((AG in AU)?AU.scope:null));this._oOnclickAttributeValue=AU;}},configClassName:function(AU,AT,AS){var AR=AT[0];if(this._sClassName){x.removeClass(this.element,this._sClassName);}x.addClass(this.element,AR);this._sClassName=AR;},_dispatchClickEvent:function(){var AT=this,AS,AR;if(!AT.cfg.getProperty(H)){AS=x.getFirstChild(AT.element);if(k.ie){AS.fireEvent(q);}else{if((k.gecko&&k.gecko>=1.9)||k.opera||k.webkit){AR=document.createEvent("HTMLEvents");AR.initEvent(AA,true,true);}else{AR=document.createEvent("MouseEvents");AR.initMouseEvent(AA,true,true,window,0,0,0,0,0,false,false,false,false,0,null);}AS.dispatchEvent(AR);}}},_createKeyListener:function(AU,AT,AW){var AV=this,AS=AV.parent;var AR=new YAHOO.util.KeyListener(AS.element.ownerDocument,AW,{fn:AV._dispatchClickEvent,scope:AV,correctScope:true});if(AS.cfg.getProperty(V)){AR.enable();}AS.subscribe(D,AR.enable,null,AR);AS.subscribe(M,AR.disable,null,AR);AV._keyListener=AR;AS.unsubscribe(D,AV._createKeyListener,AW);},configKeyListener:function(AT,AS){var AV=AS[0],AU=this,AR=AU.parent;if(AU._keyData){AR.unsubscribe(D,AU._createKeyListener,AU._keyData);AU._keyData=null;}if(AU._keyListener){AR.unsubscribe(D,AU._keyListener.enable);AR.unsubscribe(M,AU._keyListener.disable);AU._keyListener.disable();AU._keyListener=null;}if(AV){AU._keyData=AV;AR.subscribe(D,AU._createKeyListener,AV,AU);}},initDefaultConfig:function(){var AR=this.cfg;AR.addProperty(o.key,{handler:this.configText,value:o.value,validator:o.validator,suppressEvent:o.suppressEvent});AR.addProperty(s.key,{handler:this.configHelpText,supercedes:s.supercedes,suppressEvent:s.suppressEvent});AR.addProperty(G.key,{handler:this.configURL,value:G.value,suppressEvent:G.suppressEvent});AR.addProperty(AO.key,{handler:this.configTarget,suppressEvent:AO.suppressEvent});AR.addProperty(AP.key,{handler:this.configEmphasis,value:AP.value,validator:AP.validator,suppressEvent:AP.suppressEvent,supercedes:AP.supercedes});AR.addProperty(d.key,{handler:this.configStrongEmphasis,value:d.value,validator:d.validator,suppressEvent:d.suppressEvent,supercedes:d.supercedes});AR.addProperty(l.key,{handler:this.configChecked,value:l.value,validator:l.validator,suppressEvent:l.suppressEvent,supercedes:l.supercedes});AR.addProperty(AM.key,{handler:this.configDisabled,value:AM.value,validator:AM.validator,suppressEvent:AM.suppressEvent});AR.addProperty(f.key,{handler:this.configSelected,value:f.value,validator:f.validator,suppressEvent:f.suppressEvent});AR.addProperty(F.key,{handler:this.configSubmenu,supercedes:F.supercedes,suppressEvent:F.suppressEvent});AR.addProperty(u.key,{handler:this.configOnClick,suppressEvent:u.suppressEvent});AR.addProperty(AC.key,{handler:this.configClassName,value:AC.value,validator:AC.validator,suppressEvent:AC.suppressEvent});AR.addProperty(z.key,{handler:this.configKeyListener,value:z.value,suppressEvent:z.suppressEvent});
++},getNextSibling:function(){var AR=function(AX){return(AX.nodeName.toLowerCase()==="ul");},AV=this.element,AU=x.getNextSibling(AV),AT,AS,AW;if(!AU){AT=AV.parentNode;AS=x.getNextSiblingBy(AT,AR);if(AS){AW=AS;}else{AW=x.getFirstChildBy(AT.parentNode,AR);}AU=x.getFirstChild(AW);}return YAHOO.widget.MenuManager.getMenuItem(AU.id);},getNextEnabledSibling:function(){var AR=this.getNextSibling();return(AR.cfg.getProperty(H)||AR.element.style.display==t)?AR.getNextEnabledSibling():AR;},getPreviousSibling:function(){var AR=function(AX){return(AX.nodeName.toLowerCase()==="ul");},AV=this.element,AU=x.getPreviousSibling(AV),AT,AS,AW;if(!AU){AT=AV.parentNode;AS=x.getPreviousSiblingBy(AT,AR);if(AS){AW=AS;}else{AW=x.getLastChildBy(AT.parentNode,AR);}AU=x.getLastChild(AW);}return YAHOO.widget.MenuManager.getMenuItem(AU.id);},getPreviousEnabledSibling:function(){var AR=this.getPreviousSibling();return(AR.cfg.getProperty(H)||AR.element.style.display==t)?AR.getPreviousEnabledSibling():AR;},focus:function(){var AU=this.parent,AT=this._oAnchor,AR=AU.activeItem;function AS(){try{if(!(k.ie&&!document.hasFocus())){if(AR){AR.blurEvent.fire();}AT.focus();this.focusEvent.fire();}}catch(AV){}}if(!this.cfg.getProperty(H)&&AU&&AU.cfg.getProperty(V)&&this.element.style.display!=t){AQ.later(0,this,AS);}},blur:function(){var AR=this.parent;if(!this.cfg.getProperty(H)&&AR&&AR.cfg.getProperty(V)){AQ.later(0,this,function(){try{this._oAnchor.blur();this.blurEvent.fire();}catch(AS){}},0);}},hasFocus:function(){return(YAHOO.widget.MenuManager.getFocusedMenuItem()==this);},destroy:function(){var AT=this.element,AS,AR,AV,AU;if(AT){AS=this.cfg.getProperty(w);if(AS){AS.destroy();}AR=AT.parentNode;if(AR){AR.removeChild(AT);this.destroyEvent.fire();}AU=p.length-1;do{AV=p[AU];this[AV[0]].unsubscribeAll();}while(AU--);this.cfg.configChangedEvent.unsubscribeAll();}},toString:function(){var AS=m,AR=this.id;if(AR){AS+=(E+AR);}return AS;}};AQ.augmentProto(c,YAHOO.util.EventProvider);})();(function(){var B="xy",C="mousedown",F="ContextMenu",J=" ";YAHOO.widget.ContextMenu=function(L,K){YAHOO.widget.ContextMenu.superclass.constructor.call(this,L,K);};var I=YAHOO.util.Event,E=YAHOO.env.ua,G=YAHOO.widget.ContextMenu,A={"TRIGGER_CONTEXT_MENU":"triggerContextMenu","CONTEXT_MENU":(E.opera?C:"contextmenu"),"CLICK":"click"},H={key:"trigger",suppressEvent:true};function D(L,K,M){this.cfg.setProperty(B,M);this.beforeShowEvent.unsubscribe(D,M);}YAHOO.lang.extend(G,YAHOO.widget.Menu,{_oTrigger:null,_bCancelled:false,contextEventTarget:null,triggerContextMenuEvent:null,init:function(L,K){G.superclass.init.call(this,L);this.beforeInitEvent.fire(G);if(K){this.cfg.applyConfig(K,true);}this.initEvent.fire(G);},initEvents:function(){G.superclass.initEvents.call(this);this.triggerContextMenuEvent=this.createEvent(A.TRIGGER_CONTEXT_MENU);this.triggerContextMenuEvent.signature=YAHOO.util.CustomEvent.LIST;},cancel:function(){this._bCancelled=true;},_removeEventHandlers:function(){var K=this._oTrigger;if(K){I.removeListener(K,A.CONTEXT_MENU,this._onTriggerContextMenu);if(E.opera){I.removeListener(K,A.CLICK,this._onTriggerClick);}}},_onTriggerClick:function(L,K){if(L.ctrlKey){I.stopEvent(L);}},_onTriggerContextMenu:function(M,K){var L;if(!(M.type==C&&!M.ctrlKey)){this.contextEventTarget=I.getTarget(M);this.triggerContextMenuEvent.fire(M);if(!this._bCancelled){I.stopEvent(M);YAHOO.widget.MenuManager.hideVisible();L=I.getXY(M);if(!YAHOO.util.Dom.inDocument(this.element)){this.beforeShowEvent.subscribe(D,L);}else{this.cfg.setProperty(B,L);}this.show();}this._bCancelled=false;}},toString:function(){var L=F,K=this.id;if(K){L+=(J+K);}return L;},initDefaultConfig:function(){G.superclass.initDefaultConfig.call(this);this.cfg.addProperty(H.key,{handler:this.configTrigger,suppressEvent:H.suppressEvent});},destroy:function(){this._removeEventHandlers();G.superclass.destroy.call(this);},configTrigger:function(L,K,N){var M=K[0];if(M){if(this._oTrigger){this._removeEventHandlers();}this._oTrigger=M;I.on(M,A.CONTEXT_MENU,this._onTriggerContextMenu,this,true);if(E.opera){I.on(M,A.CLICK,this._onTriggerClick,this,true);}}else{this._removeEventHandlers();}}});}());YAHOO.widget.ContextMenuItem=YAHOO.widget.MenuItem;(function(){var D=YAHOO.lang,N="static",M="dynamic,"+N,A="disabled",F="selected",B="autosubmenudisplay",G="submenu",C="visible",Q=" ",H="submenutoggleregion",P="MenuBar";YAHOO.widget.MenuBar=function(T,S){YAHOO.widget.MenuBar.superclass.constructor.call(this,T,S);};function O(T){var S=false;if(D.isString(T)){S=(M.indexOf((T.toLowerCase()))!=-1);}return S;}var R=YAHOO.util.Event,L=YAHOO.widget.MenuBar,K={key:"position",value:N,validator:O,supercedes:[C]},E={key:"submenualignment",value:["tl","bl"]},J={key:B,value:false,validator:D.isBoolean,suppressEvent:true},I={key:H,value:false,validator:D.isBoolean};D.extend(L,YAHOO.widget.Menu,{init:function(T,S){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuBarItem;}L.superclass.init.call(this,T);this.beforeInitEvent.fire(L);if(S){this.cfg.applyConfig(S,true);}this.initEvent.fire(L);},CSS_CLASS_NAME:"yuimenubar",SUBMENU_TOGGLE_REGION_WIDTH:20,_onKeyDown:function(U,T,Y){var S=T[0],Z=T[1],W,X,V;if(Z&&!Z.cfg.getProperty(A)){X=Z.cfg;switch(S.keyCode){case 37:case 39:if(Z==this.activeItem&&!X.getProperty(F)){X.setProperty(F,true);}else{V=(S.keyCode==37)?Z.getPreviousEnabledSibling():Z.getNextEnabledSibling();if(V){this.clearActiveItem();V.cfg.setProperty(F,true);W=V.cfg.getProperty(G);if(W){W.show();W.setInitialFocus();}else{V.focus();}}}R.preventDefault(S);break;case 40:if(this.activeItem!=Z){this.clearActiveItem();X.setProperty(F,true);Z.focus();}W=X.getProperty(G);if(W){if(W.cfg.getProperty(C)){W.setInitialSelection();W.setInitialFocus();}else{W.show();W.setInitialFocus();}}R.preventDefault(S);break;}}if(S.keyCode==27&&this.activeItem){W=this.activeItem.cfg.getProperty(G);if(W&&W.cfg.getProperty(C)){W.hide();this.activeItem.focus();}else{this.activeItem.cfg.setProperty(F,false);this.activeItem.blur();}R.preventDefault(S);}},_onClick:function(e,Y,b){L.superclass._onClick.call(this,e,Y,b);
++var d=Y[1],T=true,S,f,U,W,Z,a,c,V;var X=function(){if(a.cfg.getProperty(C)){a.hide();}else{a.show();}};if(d&&!d.cfg.getProperty(A)){f=Y[0];U=R.getTarget(f);W=this.activeItem;Z=this.cfg;if(W&&W!=d){this.clearActiveItem();}d.cfg.setProperty(F,true);a=d.cfg.getProperty(G);if(a){S=d.element;c=YAHOO.util.Dom.getX(S);V=c+(S.offsetWidth-this.SUBMENU_TOGGLE_REGION_WIDTH);if(Z.getProperty(H)){if(R.getPageX(f)>V){X();R.preventDefault(f);T=false;}}else{X();}}}return T;},configSubmenuToggle:function(U,T){var S=T[0];if(S){this.cfg.setProperty(B,false);}},toString:function(){var T=P,S=this.id;if(S){T+=(Q+S);}return T;},initDefaultConfig:function(){L.superclass.initDefaultConfig.call(this);var S=this.cfg;S.addProperty(K.key,{handler:this.configPosition,value:K.value,validator:K.validator,supercedes:K.supercedes});S.addProperty(E.key,{value:E.value,suppressEvent:E.suppressEvent});S.addProperty(J.key,{value:J.value,validator:J.validator,suppressEvent:J.suppressEvent});S.addProperty(I.key,{value:I.value,validator:I.validator,handler:this.configSubmenuToggle});}});}());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.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/menu/menu.js b/pylons_app/public/js/yui/menu/menu.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/menu/menu.js
+@@ -0,0 +1,9823 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
++
++/**
++* @module 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 UA = YAHOO.env.ua,
++		Dom = YAHOO.util.Dom,
++	    Event = YAHOO.util.Event,
++	    Lang = YAHOO.lang,
++
++		_DIV = "DIV",
++    	_HD = "hd",
++    	_BD = "bd",
++    	_FT = "ft",
++    	_LI = "LI",
++    	_DISABLED = "disabled",
++		_MOUSEOVER = "mouseover",
++		_MOUSEOUT = "mouseout",
++		_MOUSEDOWN = "mousedown",
++		_MOUSEUP = "mouseup",
++		_CLICK = "click",
++		_KEYDOWN = "keydown",
++		_KEYUP = "keyup",
++		_KEYPRESS = "keypress",
++		_CLICK_TO_HIDE = "clicktohide",
++		_POSITION = "position", 
++		_DYNAMIC = "dynamic",
++		_SHOW_DELAY = "showdelay",
++		_SELECTED = "selected",
++		_VISIBLE = "visible",
++		_UL = "UL",
++		_MENUMANAGER = "MenuManager";
++
++
++    /**
++    * 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",
++            "focus": "focusEvent",
++            "focusin": "focusEvent",
++            "blur": "blurEvent",
++            "focusout": "blurEvent"
++        },
++    
++    
++        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,
++            	returnVal;
++    
++            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) {
++                    
++                        returnVal = oParentNode;
++                    
++                    }
++                    else {
++                    
++                        returnVal = p_oElement;
++                    
++                    }
++                
++                    break;
++
++                case _LI:
++    
++                    returnVal = p_oElement;
++                    
++                    break;
++
++                default:
++    
++                    oParentNode = p_oElement.parentNode;
++    
++                    if (oParentNode) {
++                    
++                        returnVal = getMenuRootElement(oParentNode);
++                    
++                    }
++                
++                    break;
++                
++                }
++    
++            }
++            
++            return returnVal;
++            
++        }
++    
++    
++    
++        // 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),
++			bFireEvent = true,
++			sEventType = p_oEvent.type,
++            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[sEventType];
++
++				/*
++					There is an inconsistency between Firefox for Mac OS X and 
++					Firefox Windows & Linux regarding the triggering of the 
++					display of the browser's context menu and the subsequent 
++					firing of the "click" event. In Firefox for Windows & Linux, 
++					when the user triggers the display of the browser's context 
++					menu the "click" event also fires for the document object, 
++					even though the "click" event did not fire for the element 
++					that was the original target of the "contextmenu" event. 
++					This is unique to Firefox on Windows & Linux.  For all 
++					other A-Grade browsers, including Firefox for Mac OS X, the 
++					"click" event doesn't fire for the document object. 
++
++					This bug in Firefox for Windows affects Menu, as Menu 
++					instances listen for events at the document level and 
++					dispatches Custom Events of the same name.  Therefore users
++					of Menu will get an unwanted firing of the "click" 
++					custom event.  The following line fixes this bug.
++				*/
++				
++
++
++				if (sEventType == "click" && 
++					(UA.gecko && oMenu.platform != "mac") && 
++					p_oEvent.button > 0) {
++
++					bFireEvent = false;
++
++				}
++    
++                // Fire the Custom Event that corresponds the current DOM event    
++        
++                if (bFireEvent && oMenuItem && !oMenuItem.cfg.getProperty(_DISABLED)) {
++                    oMenuItem[sCustomEventType].fire(p_oEvent);                   
++                }
++        
++				if (bFireEvent) {
++                	oMenu[sCustomEventType].fire(p_oEvent, oMenuItem);
++				}
++            
++            }
++            else if (sEventType == _MOUSEDOWN) {
++    
++                /*
++                    If the target of the event wasn't a menu, hide all 
++                    dynamically positioned menus
++                */
++                
++                for (var i in m_oVisibleMenus) {
++        
++                    if (Lang.hasOwnProperty(m_oVisibleMenus, i)) {
++        
++                        oMenu = m_oVisibleMenus[i];
++
++                        if (oMenu.cfg.getProperty(_CLICK_TO_HIDE) && 
++                            !(oMenu instanceof YAHOO.widget.MenuBar) && 
++                            oMenu.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++                            oMenu.hide();
++
++							//	In IE when the user mouses down on a focusable 
++							//	element that element will be focused and become 
++							//	the "activeElement".
++							//	(http://msdn.microsoft.com/en-us/library/ms533065(VS.85).aspx)
++							//	However, there is a bug in IE where if there is 
++							//	a positioned element with a focused descendant 
++							//	that is hidden in response to the mousedown 
++							//	event, the target of the mousedown event will 
++							//	appear to have focus, but will not be set as 
++							//	the activeElement.  This will result in the 
++							//	element not firing key events, even though it
++							//	appears to have focus.  The following call to 
++							//	"setActive" fixes this bug.
++
++							if (UA.ie && oTarget.focus) {
++								oTarget.setActive();
++							}
++        
++                        }
++                        else {
++                            
++							if (oMenu.cfg.getProperty(_SHOW_DELAY) > 0) {
++							
++								oMenu._cancelShowDelay();
++							
++							}
++
++
++							if (oMenu.activeItem) {
++						
++								oMenu.activeItem.blur();
++								oMenu.activeItem.cfg.setProperty(_SELECTED, false);
++						
++								oMenu.activeItem = 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[1];
++    
++            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);
++    
++        }
++
++
++        /**
++        * @method removeItem
++        * @description Removes a MenuItem instance from the MenuManager's collection of MenuItems.
++        * @private
++        * @param {MenuItem} p_oMenuItem The MenuItem instance to be removed.
++        */    
++        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);
++    
++						Event.onFocus(oDoc, onDOMEvent, this, true);
++						Event.onBlur(oDoc, 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 ((sId in m_oMenus) && (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 ((sId in m_oVisibleMenus) && (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 (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 {Object}
++            */
++            getVisible: function () {
++            
++                return m_oVisibleMenus;
++            
++            },
++
++    
++            /**
++            * @method getMenus
++            * @description Returns a collection of all menus registered with the 
++            * menu manger.
++            * @return {Object}
++            */
++            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 returnVal;
++                
++                if (p_sId in m_oMenus) {
++                
++					returnVal = m_oMenus[p_sId];
++				
++				}
++            
++            	return returnVal;
++            
++            },
++    
++    
++            /**
++            * @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 returnVal;
++    
++    			if (p_sId in m_oItems) {
++    
++					returnVal = m_oItems[p_sId];
++				
++				}
++				
++				return returnVal;
++            
++            },
++
++
++            /**
++            * @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,
++                    returnVal;
++    
++
++                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) {
++
++                            returnVal = aItems;
++                        
++                        }
++
++                    }
++                
++                }
++
++				return returnVal;
++            
++            },
++
++    
++            /**
++            * @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 () {
++
++				var returnVal;
++    
++                if (m_oFocusedMenuItem) {
++    
++                    returnVal = m_oFocusedMenuItem.parent.getRoot();
++                
++                }
++    
++    			return returnVal;
++    
++            },
++    
++        
++            /**
++            * @method toString
++            * @description Returns a string representing the menu manager.
++            * @return {String}
++            */
++            toString: function () {
++            
++                return _MENUMANAGER;
++            
++            }
++    
++        };
++    
++    }();
++
++})();
++
++
++
++(function () {
++
++	var Lang = YAHOO.lang,
++
++	// String constants
++	
++		_MENU = "Menu",
++		_DIV_UPPERCASE = "DIV",
++		_DIV_LOWERCASE = "div",
++		_ID = "id",
++		_SELECT = "SELECT",
++		_XY = "xy",
++		_Y = "y",
++		_UL_UPPERCASE = "UL",
++		_UL_LOWERCASE = "ul",
++		_FIRST_OF_TYPE = "first-of-type",
++		_LI = "LI",
++		_OPTGROUP = "OPTGROUP",
++		_OPTION = "OPTION",
++		_DISABLED = "disabled",
++		_NONE = "none",
++		_SELECTED = "selected",
++		_GROUP_INDEX = "groupindex",
++		_INDEX = "index",
++		_SUBMENU = "submenu",
++		_VISIBLE = "visible",
++		_HIDE_DELAY = "hidedelay",
++		_POSITION = "position",
++		_DYNAMIC = "dynamic",
++		_STATIC = "static",
++		_DYNAMIC_STATIC = _DYNAMIC + "," + _STATIC,
++		_URL = "url",
++		_HASH = "#",
++		_TARGET = "target",
++		_MAX_HEIGHT = "maxheight",
++        _TOP_SCROLLBAR = "topscrollbar",
++        _BOTTOM_SCROLLBAR = "bottomscrollbar",
++        _UNDERSCORE = "_",
++		_TOP_SCROLLBAR_DISABLED = _TOP_SCROLLBAR + _UNDERSCORE + _DISABLED,
++		_BOTTOM_SCROLLBAR_DISABLED = _BOTTOM_SCROLLBAR + _UNDERSCORE + _DISABLED,
++		_MOUSEMOVE = "mousemove",
++		_SHOW_DELAY = "showdelay",
++		_SUBMENU_HIDE_DELAY = "submenuhidedelay",
++		_IFRAME = "iframe",
++		_CONSTRAIN_TO_VIEWPORT = "constraintoviewport",
++		_PREVENT_CONTEXT_OVERLAP = "preventcontextoverlap",
++		_SUBMENU_ALIGNMENT = "submenualignment",
++		_AUTO_SUBMENU_DISPLAY = "autosubmenudisplay",
++		_CLICK_TO_HIDE = "clicktohide",
++		_CONTAINER = "container",
++		_SCROLL_INCREMENT = "scrollincrement",
++		_MIN_SCROLL_HEIGHT = "minscrollheight",
++		_CLASSNAME = "classname",
++		_SHADOW = "shadow",
++		_KEEP_OPEN = "keepopen",
++		_HD = "hd",
++		_HAS_TITLE = "hastitle",
++		_CONTEXT = "context",
++		_EMPTY_STRING = "",
++		_MOUSEDOWN = "mousedown",
++		_KEYDOWN = "keydown",
++		_HEIGHT = "height",
++		_WIDTH = "width",
++		_PX = "px",
++		_EFFECT = "effect",
++		_MONITOR_RESIZE = "monitorresize",
++		_DISPLAY = "display",
++		_BLOCK = "block",
++		_VISIBILITY = "visibility",
++		_ABSOLUTE = "absolute",
++		_ZINDEX = "zindex",
++		_YUI_MENU_BODY_SCROLLED = "yui-menu-body-scrolled",
++		_NON_BREAKING_SPACE = "&#32;",
++		_SPACE = " ",
++		_MOUSEOVER = "mouseover",
++		_MOUSEOUT = "mouseout",
++        _ITEM_ADDED = "itemAdded",
++        _ITEM_REMOVED = "itemRemoved",
++        _HIDDEN = "hidden",
++        _YUI_MENU_SHADOW = "yui-menu-shadow",
++        _YUI_MENU_SHADOW_VISIBLE = _YUI_MENU_SHADOW + "-visible",
++        _YUI_MENU_SHADOW_YUI_MENU_SHADOW_VISIBLE = _YUI_MENU_SHADOW + _SPACE + _YUI_MENU_SHADOW_VISIBLE;
++
++
++/**
++* 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) {
++
++	var returnVal = false;
++
++    if (Lang.isString(p_sPosition)) {
++
++        returnVal = (_DYNAMIC_STATIC.indexOf((p_sPosition.toLowerCase())) != -1);
++
++    }
++
++	return returnVal;
++
++}
++
++
++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,
++    UA = YAHOO.env.ua,
++    
++    m_oShadowTemplate,
++
++	bFocusListenerInitialized = false,
++
++	oFocusedElement,
++
++	EVENT_TYPES = [
++    
++		["mouseOverEvent", _MOUSEOVER],
++		["mouseOutEvent", _MOUSEOUT],
++		["mouseDownEvent", _MOUSEDOWN],
++		["mouseUpEvent", "mouseup"],
++		["clickEvent", "click"],
++		["keyPressEvent", "keypress"],
++		["keyDownEvent", _KEYDOWN],
++		["keyUpEvent", "keyup"],
++		["focusEvent", "focus"],
++		["blurEvent", "blur"],
++		["itemAddedEvent", _ITEM_ADDED],
++		["itemRemovedEvent", _ITEM_REMOVED]
++
++	],
++
++	VISIBLE_CONFIG =  { 
++		key: _VISIBLE, 
++		value: false, 
++		validator: Lang.isBoolean
++	}, 
++
++	CONSTRAIN_TO_VIEWPORT_CONFIG =  {
++		key: _CONSTRAIN_TO_VIEWPORT, 
++		value: true, 
++		validator: Lang.isBoolean, 
++		supercedes: [_IFRAME,"x",_Y,_XY]
++	}, 
++
++	PREVENT_CONTEXT_OVERLAP_CONFIG =  {
++		key: _PREVENT_CONTEXT_OVERLAP,
++		value: true,
++		validator: Lang.isBoolean,  
++		supercedes: [_CONSTRAIN_TO_VIEWPORT]
++	},
++
++	POSITION_CONFIG =  { 
++		key: _POSITION, 
++		value: _DYNAMIC, 
++		validator: checkPosition, 
++		supercedes: [_VISIBLE, _IFRAME]
++	}, 
++
++	SUBMENU_ALIGNMENT_CONFIG =  { 
++		key: _SUBMENU_ALIGNMENT, 
++		value: ["tl","tr"]
++	},
++
++	AUTO_SUBMENU_DISPLAY_CONFIG =  { 
++		key: _AUTO_SUBMENU_DISPLAY, 
++		value: true, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	}, 
++
++	SHOW_DELAY_CONFIG =  { 
++		key: _SHOW_DELAY, 
++		value: 250, 
++		validator: Lang.isNumber, 
++		suppressEvent: true
++	}, 
++
++	HIDE_DELAY_CONFIG =  { 
++		key: _HIDE_DELAY, 
++		value: 0, 
++		validator: Lang.isNumber, 
++		suppressEvent: true
++	}, 
++
++	SUBMENU_HIDE_DELAY_CONFIG =  { 
++		key: _SUBMENU_HIDE_DELAY, 
++		value: 250, 
++		validator: Lang.isNumber,
++		suppressEvent: true
++	}, 
++
++	CLICK_TO_HIDE_CONFIG =  { 
++		key: _CLICK_TO_HIDE, 
++		value: true, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	},
++
++	CONTAINER_CONFIG =  { 
++		key: _CONTAINER,
++		suppressEvent: true
++	}, 
++
++	SCROLL_INCREMENT_CONFIG =  { 
++		key: _SCROLL_INCREMENT, 
++		value: 1, 
++		validator: Lang.isNumber,
++		supercedes: [_MAX_HEIGHT],
++		suppressEvent: true
++	},
++
++	MIN_SCROLL_HEIGHT_CONFIG =  { 
++		key: _MIN_SCROLL_HEIGHT, 
++		value: 90, 
++		validator: Lang.isNumber,
++		supercedes: [_MAX_HEIGHT],
++		suppressEvent: true
++	},    
++
++	MAX_HEIGHT_CONFIG =  { 
++		key: _MAX_HEIGHT, 
++		value: 0, 
++		validator: Lang.isNumber,
++		supercedes: [_IFRAME],
++		suppressEvent: true
++	}, 
++
++	CLASS_NAME_CONFIG =  { 
++		key: _CLASSNAME, 
++		value: null, 
++		validator: Lang.isString,
++		suppressEvent: true
++	}, 
++
++	DISABLED_CONFIG =  { 
++		key: _DISABLED, 
++		value: false, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	},
++	
++	SHADOW_CONFIG =  { 
++		key: _SHADOW, 
++		value: true, 
++		validator: Lang.isBoolean,
++		suppressEvent: true,
++		supercedes: [_VISIBLE]
++	},
++	
++	KEEP_OPEN_CONFIG = {
++		key: _KEEP_OPEN, 
++		value: false, 
++		validator: Lang.isBoolean
++	};
++
++
++function onDocFocus(event) {
++
++	oFocusedElement = Event.getTarget(event);
++
++}
++
++
++
++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 "-999em"
++* @final
++* @type String
++*/
++OFF_SCREEN_POSITION: "-999em",
++
++
++// Private properties
++
++
++/** 
++* @property _useHideDelay
++* @description Boolean indicating if the "mouseover" and "mouseout" event 
++* handlers used for hiding the menu via a call to "YAHOO.lang.later" have 
++* already been assigned.
++* @default false
++* @private
++* @type Boolean
++*/
++_useHideDelay: 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.
++*/
++
++
++/**
++* @event mouseOutEvent
++* @description Fires when the mouse has left the menu.  Passes back the DOM 
++* Event object as an argument.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @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
++*/
++
++
++/**
++* @event itemAddedEvent
++* @description Fires when an item is added to the menu.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++* @event itemRemovedEvent
++* @description Fires when an item is removed to the menu.
++* @type YAHOO.util.CustomEvent
++*/
++
++
++/**
++* @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 (Lang.isString(p_oElement)) {
++
++        oElement = Dom.get(p_oElement);
++
++    }
++    else if (p_oElement.tagName) {
++
++        oElement = p_oElement;
++
++    }
++
++
++    if (oElement && oElement.tagName) {
++
++        switch(oElement.tagName.toUpperCase()) {
++    
++            case _DIV_UPPERCASE:
++
++                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.beforeShowEvent.subscribe(this._onBeforeShow);
++		this.hideEvent.subscribe(this._onHide);
++        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);
++        this.blurEvent.subscribe(this._onBlur);
++
++
++		if (!bFocusListenerInitialized) {
++			Event.onFocus(document, onDocFocus);
++			bFocusListenerInitialized = true;
++		}
++
++
++		//	Fixes an issue in Firefox 2 and Webkit where Dom's "getX" and "getY" 
++		//	methods return values that don't take scrollTop into consideration 
++
++        if ((UA.gecko && UA.gecko < 1.9) || 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_UPPERCASE) {
++    
++            //  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_UPPERCASE:
++        
++                                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_UPPERCASE:
++
++                    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,
++        returnVal;
++    
++
++    for(var i=0; i<nItems; i++) {
++
++        oItem = aItems[i];
++
++        if (oItem && !oItem.cfg.getProperty(_DISABLED) && oItem.element.style.display != _NONE) {
++
++            returnVal = oItem;
++            break;
++
++        }
++    
++    }
++    
++    return returnVal;
++    
++},
++
++
++/**
++* @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,
++        returnVal;
++
++
++    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 (Lang.isString(p_oItem)) {
++
++        oItem = new this.ITEM_TYPE(p_oItem, { parent: this });
++    
++    }
++    else if (Lang.isObject(p_oItem)) {
++
++        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 = Lang.isNumber(p_nGroupIndex) ? p_nGroupIndex : 0;
++        aGroup = this._getItemGroup(nGroupIndex);
++
++
++
++        if (!aGroup) {
++
++            aGroup = this._createItemGroup(nGroupIndex);
++
++        }
++
++
++        if (Lang.isNumber(p_nItemIndex)) {
++
++            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();
++
++                returnVal = 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(_GROUP_INDEX, 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();
++
++                returnVal = oGroupItem;
++    
++            }
++    
++        }
++
++    }
++    
++    return returnVal;
++    
++},
++
++
++/**
++* @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 = Lang.isNumber(p_nGroupIndex) ? 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,
++        returnVal,
++        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) {
++        
++                returnVal = this._removeItemFromGroupByIndex(p_nGroupIndex, nItemIndex);
++        
++            }
++    
++        }
++    
++    }
++    
++    return returnVal;
++
++},
++
++
++/**
++* @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(_GROUP_INDEX, 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,
++    	returnVal;
++
++    if (!this._aItemGroups[p_nIndex]) {
++
++        this._aItemGroups[p_nIndex] = [];
++
++        oUL = document.createElement(_UL_LOWERCASE);
++
++        this._aListElements[p_nIndex] = oUL;
++
++        returnVal = this._aItemGroups[p_nIndex];
++
++    }
++    
++    return returnVal;
++
++},
++
++
++/**
++* @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 = Lang.isNumber(p_nIndex) ? p_nIndex : 0,
++    	aGroups = this._aItemGroups,
++    	returnVal;
++
++	if (nIndex in aGroups) {
++
++	    returnVal = aGroups[nIndex];
++
++	}
++	
++	return returnVal;
++
++},
++
++
++/**
++* @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);
++
++    }
++
++},
++
++
++
++
++/**
++* @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.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 oTimer = this.getRoot()._hideDelayTimer;
++
++    if (oTimer) {
++
++		oTimer.cancel();
++
++    }
++
++},
++
++
++/**
++* @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();
++        
++	oRoot._hideDelayTimer = Lang.later(oRoot.cfg.getProperty(_HIDE_DELAY), this, function () {
++    
++        if (oRoot.activeItem) {
++
++			if (oRoot.hasFocus()) {
++
++				oRoot.activeItem.focus();
++			
++			}
++			
++            oRoot.clearActiveItem();
++
++        }
++
++        if (oRoot == this && !(this instanceof YAHOO.widget.MenuBar) && 
++            this.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++            this.hide();
++        
++        }
++    
++    });
++
++},
++
++
++/**
++* @method _cancelShowDelay
++* @description Cancels the call to the "showMenu."
++* @private
++*/
++_cancelShowDelay: function () {
++
++    var oTimer = this.getRoot()._showDelayTimer;
++
++    if (oTimer) {
++
++        oTimer.cancel();
++
++    }
++
++},
++
++
++/**
++* @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) {
++
++	p_oSubmenu._submenuHideDelayTimer = Lang.later(50, this, function () {
++
++        if (this._nCurrentMouseX > (p_nMouseX + 10)) {
++
++            p_oSubmenu._submenuHideDelayTimer = Lang.later(p_nHideDelay, p_oSubmenu, function () {
++        
++                this.hide();
++
++            });
++
++        }
++        else {
++
++            p_oSubmenu.hide();
++        
++        }
++	
++	});
++
++},
++
++
++
++// 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, _TOP_SCROLLBAR_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, _BOTTOM_SCROLLBAR_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, _TOP_SCROLLBAR_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, _BOTTOM_SCROLLBAR_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) {
++
++    var oEvent = p_aArgs[0],
++        oItem = p_aArgs[1],
++        oTarget = Event.getTarget(oEvent),
++        oRoot = this.getRoot(),
++        oSubmenuHideDelayTimer = this._submenuHideDelayTimer,
++        oParentMenu,
++        nShowDelay,
++        bShowDelay,
++        oActiveItem,
++        oItemCfg,
++        oSubmenu;
++
++
++    var showSubmenu = function () {
++
++        if (this.parent.cfg.getProperty(_SELECTED)) {
++
++            this.show();
++
++        }
++
++    };
++
++
++    if (!this._bStopMouseEventHandlers) {
++    
++		if (!this._bHandledMouseOverEvent && (oTarget == this.element || 
++				Dom.isAncestor(this.element, oTarget))) {
++	
++			// Menu mouseover logic
++
++	        if (this._useHideDelay) {
++	        	this._cancelHideDelay();
++	        }
++	
++			this._nCurrentMouseX = 0;
++	
++			Event.on(this.element, _MOUSEMOVE, this._onMouseMove, this, true);
++
++
++			/*
++				If the mouse is moving from the submenu back to its corresponding menu item, 
++				don't hide the submenu or clear the active MenuItem.
++			*/
++
++			if (!(oItem && Dom.isAncestor(oItem.element, Event.getRelatedTarget(oEvent)))) {
++
++				this.clearActiveItem();
++
++			}
++	
++
++			if (this.parent && oSubmenuHideDelayTimer) {
++	
++				oSubmenuHideDelayTimer.cancel();
++	
++				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(_SHOW_DELAY);
++			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() || oRoot._hasFocus) {
++			
++				oItem.focus();
++				
++				oRoot._hasFocus = false;
++			
++			}
++	
++	
++			if (this.cfg.getProperty(_AUTO_SUBMENU_DISPLAY)) {
++	
++				// Show the submenu this menu item
++	
++				oSubmenu = oItemCfg.getProperty(_SUBMENU);
++			
++				if (oSubmenu) {
++			
++					if (bShowDelay) {
++	
++						oRoot._showDelayTimer = 
++							Lang.later(oRoot.cfg.getProperty(_SHOW_DELAY), oSubmenu, showSubmenu);
++			
++					}
++					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) {
++
++    var oEvent = p_aArgs[0],
++        oItem = p_aArgs[1],
++        oRelatedTarget = Event.getRelatedTarget(oEvent),
++        bMovingToSubmenu = false,
++        oItemCfg,
++        oSubmenu,
++        nSubmenuHideDelay,
++        nShowDelay;
++
++
++    if (!this._bStopMouseEventHandlers) {
++    
++		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(_SUBMENU_HIDE_DELAY);
++	
++						nShowDelay = this.cfg.getProperty(_SHOW_DELAY);
++	
++						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
++
++	        if (this._useHideDelay) {
++	        	this._execHideDelay();
++	        }
++
++			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) {
++    
++	    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 oEvent = p_aArgs[0],
++		oItem = p_aArgs[1],
++		bInMenuAnchor = false,
++		oSubmenu,
++		oMenu,
++		oRoot,
++		sId,
++		sURL,
++		nHashPos,
++		nLen;
++
++
++	var hide = function () {
++		
++		oRoot = this.getRoot();
++
++		if (oRoot instanceof YAHOO.widget.MenuBar || 
++			oRoot.cfg.getProperty(_POSITION) == _STATIC) {
++
++			oRoot.clearActiveItem();
++
++		}
++		else {
++
++			oRoot.hide();
++		
++		}
++	
++	};
++
++
++	if (oItem) {
++	
++		if (oItem.cfg.getProperty(_DISABLED)) {
++		
++			Event.preventDefault(oEvent);
++
++			hide.call(this);
++
++		}
++		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(_HASH);
++	
++				nLen = sURL.length;
++	
++	
++				if (nHashPos != -1) {
++	
++					sURL = sURL.substr(nHashPos, nLen);
++		
++					nLen = sURL.length;
++	
++	
++					if (nLen > 1) {
++	
++						sId = sURL.substr(1, nLen);
++	
++						oMenu = YAHOO.widget.MenuManager.getMenu(sId);
++						
++						if (oMenu) {
++
++							bInMenuAnchor = 
++								(this.getRoot() === oMenu.getRoot());
++
++						}
++						
++					}
++					else if (nLen === 1) {
++	
++						bInMenuAnchor = true;
++					
++					}
++	
++				}
++			
++			}
++
++	
++			if (bInMenuAnchor && !oItem.cfg.getProperty(_TARGET)) {
++	
++				Event.preventDefault(oEvent);
++				
++
++				if (UA.webkit) {
++				
++					oItem.focus();
++				
++				}
++				else {
++
++					oItem.focusEvent.fire();
++				
++				}
++			
++			}
++	
++	
++			if (!oSubmenu && !this.cfg.getProperty(_KEEP_OPEN)) {
++	
++				hide.call(this);
++	
++			}
++			
++		}
++	
++	}
++
++},
++
++
++/**
++* @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],
++        oSubmenu,
++        oItemCfg,
++        oParentItem,
++        oRoot,
++        oNextItem,
++        oBody,
++        nBodyScrollTop,
++        nBodyOffsetHeight,
++        aItems,
++        nItems,
++        nNextItemOffsetTop,
++        nScrollTarget,
++        oParentMenu,
++		oFocusedEl;
++
++
++	if (this._useHideDelay) {
++		this._cancelHideDelay();
++	}
++
++
++    /*
++        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() {
++
++        this._bStopMouseEventHandlers = true;
++        
++        Lang.later(10, this, function () {
++
++            this._bStopMouseEventHandlers = false;
++        
++        });
++
++    }
++
++
++    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(_MAX_HEIGHT) > 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();
++                                oSubmenu.setInitialFocus();
++                            
++                            }
++                            else {
++    
++                            	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();
++								oSubmenu.setInitialFocus();                                
++                            
++                            }
++                            else {
++    
++                            	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 {
++				// Focus the element that previously had focus
++
++				oFocusedEl = this._focusedElement;
++
++				if (oFocusedEl && oFocusedEl.focus) {
++
++					try {
++						oFocusedEl.focus();
++					}
++					catch(ex) {
++					}
++
++				}
++				
++			}
++
++        }
++        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 _onBlur
++* @description "blur" 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.
++*/
++_onBlur: function (p_sType, p_aArgs) {
++        
++	if (this._hasFocus) {
++		this._hasFocus = false;
++	}
++
++},
++
++/**
++* @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) {
++
++	var oBodyScrollTimer = this._bodyScrollTimer;
++
++
++	if (oBodyScrollTimer) {
++
++		oBodyScrollTimer.cancel();
++
++	}
++
++
++	this._cancelHideDelay();
++
++
++    var oTarget = Event.getTarget(p_oEvent),
++        oBody = this.body,
++        nScrollIncrement = this.cfg.getProperty(_SCROLL_INCREMENT),
++        nScrollTarget,
++        fnScrollFunction;
++
++
++    function scrollBodyDown() {
++
++        var nScrollTop = oBody.scrollTop;
++
++
++        if (nScrollTop < nScrollTarget) {
++
++            oBody.scrollTop = (nScrollTop + nScrollIncrement);
++
++            this._enableScrollHeader();
++
++        }
++        else {
++
++            oBody.scrollTop = nScrollTarget;
++
++            this._bodyScrollTimer.cancel();
++
++            this._disableScrollFooter();
++
++        }
++
++    }
++
++
++    function scrollBodyUp() {
++
++        var nScrollTop = oBody.scrollTop;
++
++
++        if (nScrollTop > 0) {
++
++            oBody.scrollTop = (nScrollTop - nScrollIncrement);
++
++            this._enableScrollFooter();
++
++        }
++        else {
++
++            oBody.scrollTop = 0;
++
++			this._bodyScrollTimer.cancel();
++
++            this._disableScrollHeader();
++
++        }
++
++    }
++
++    
++    if (Dom.hasClass(oTarget, _HD)) {
++
++        fnScrollFunction = scrollBodyUp;
++    
++    }
++    else {
++
++        nScrollTarget = oBody.scrollHeight - oBody.offsetHeight;
++
++        fnScrollFunction = scrollBodyDown;
++    
++    }
++    
++
++    this._bodyScrollTimer = Lang.later(10, this, fnScrollFunction, null, true);
++
++},
++
++
++/**
++* @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) {
++
++	var oBodyScrollTimer = this._bodyScrollTimer;
++
++	if (oBodyScrollTimer) {
++
++		oBodyScrollTimer.cancel();
++
++	}
++	
++    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, _HAS_TITLE);
++
++                }
++
++            }
++
++            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,
++        oSrcElement,
++        oContainer = this.cfg.getProperty(_CONTAINER);
++
++
++    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(oContainer);
++                
++                }
++
++            }
++            else {
++
++                this.render();
++
++            }
++
++        }
++        else {
++
++            if (this.parent) {
++
++                this.render(this.parent.element);     
++
++            }
++            else {
++
++                this.render(oContainer);
++
++            }                
++
++        }
++
++    }
++
++
++
++    var oParent = this.parent,
++		aAlignment;
++
++
++    if (!oParent && this.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++        this.cfg.refireEvent(_XY);
++   
++    }
++
++
++	if (oParent) {
++
++		aAlignment = oParent.parent.cfg.getProperty(_SUBMENU_ALIGNMENT);
++		
++		this.cfg.setProperty(_CONTEXT, [oParent.element, aAlignment[0], aAlignment[1]]);
++		this.align();
++	
++	}
++
++},
++
++
++getConstrainedY: function (y) {
++
++	var oMenu = this,
++	
++		aContext = oMenu.cfg.getProperty(_CONTEXT),
++		nInitialMaxHeight = oMenu.cfg.getProperty(_MAX_HEIGHT),
++
++		nMaxHeight,
++
++		oOverlapPositions = {
++
++			"trbr": true,
++			"tlbl": true,
++			"bltl": true,
++			"brtr": true
++
++		},
++
++		bPotentialContextOverlap = (aContext && oOverlapPositions[aContext[1] + aContext[2]]),
++	
++		oMenuEl = oMenu.element,
++		nMenuOffsetHeight = oMenuEl.offsetHeight,
++	
++		nViewportOffset = Overlay.VIEWPORT_OFFSET,
++		viewPortHeight = Dom.getViewportHeight(),
++		scrollY = Dom.getDocumentScrollTop(),
++
++		bCanConstrain = 
++			(oMenu.cfg.getProperty(_MIN_SCROLL_HEIGHT) + nViewportOffset < viewPortHeight),
++
++		nAvailableHeight,
++
++		oContextEl,
++		nContextElY,
++		nContextElHeight,
++
++		bFlipped = false,
++
++		nTopRegionHeight,
++		nBottomRegionHeight,
++
++		topConstraint = scrollY + nViewportOffset,
++		bottomConstraint = scrollY + viewPortHeight - nMenuOffsetHeight - nViewportOffset,
++
++		yNew = y;
++		
++
++	var flipVertical = function () {
++
++		var nNewY;
++	
++		// The Menu is below the context element, flip it above
++		if ((oMenu.cfg.getProperty(_Y) - scrollY) > nContextElY) { 
++			nNewY = (nContextElY - nMenuOffsetHeight);
++		}
++		else {	// The Menu is above the context element, flip it below
++			nNewY = (nContextElY + nContextElHeight);
++		}
++
++		oMenu.cfg.setProperty(_Y, (nNewY + scrollY), true);
++		
++		return nNewY;
++	
++	};
++
++
++	/*
++		 Uses the context element's position to calculate the availble height 
++		 above and below it to display its corresponding Menu.
++	*/
++
++	var getDisplayRegionHeight = function () {
++
++		// The Menu is below the context element
++		if ((oMenu.cfg.getProperty(_Y) - scrollY) > nContextElY) {
++			return (nBottomRegionHeight - nViewportOffset);				
++		}
++		else {	// The Menu is above the context element
++			return (nTopRegionHeight - nViewportOffset);				
++		}
++
++	};
++
++
++	/*
++		Sets the Menu's "y" configuration property to the correct value based on its
++		current orientation.
++	*/ 
++
++	var alignY = function () {
++
++		var nNewY;
++
++		if ((oMenu.cfg.getProperty(_Y) - scrollY) > nContextElY) { 
++			nNewY = (nContextElY + nContextElHeight);
++		}
++		else {	
++			nNewY = (nContextElY - oMenuEl.offsetHeight);
++		}
++
++		oMenu.cfg.setProperty(_Y, (nNewY + scrollY), true);
++	
++	};
++
++
++	//	Resets the maxheight of the Menu to the value set by the user
++
++	var resetMaxHeight = function () {
++
++		oMenu._setScrollHeight(this.cfg.getProperty(_MAX_HEIGHT));
++
++		oMenu.hideEvent.unsubscribe(resetMaxHeight);
++	
++	};
++
++
++	/*
++		Trys to place the Menu in the best possible position (either above or 
++		below its corresponding context element).
++	*/
++
++	var setVerticalPosition = function () {
++
++		var nDisplayRegionHeight = getDisplayRegionHeight(),
++			bMenuHasItems = (oMenu.getItems().length > 0),
++			nMenuMinScrollHeight,
++			fnReturnVal;
++
++
++		if (nMenuOffsetHeight > nDisplayRegionHeight) {
++
++			nMenuMinScrollHeight = 
++				bMenuHasItems ? oMenu.cfg.getProperty(_MIN_SCROLL_HEIGHT) : nMenuOffsetHeight;
++
++
++			if ((nDisplayRegionHeight > nMenuMinScrollHeight) && bMenuHasItems) {
++				nMaxHeight = nDisplayRegionHeight;
++			}
++			else {
++				nMaxHeight = nInitialMaxHeight;
++			}
++
++
++			oMenu._setScrollHeight(nMaxHeight);
++			oMenu.hideEvent.subscribe(resetMaxHeight);
++			
++
++			// Re-align the Menu since its height has just changed
++			// as a result of the setting of the maxheight property.
++
++			alignY();
++			
++
++			if (nDisplayRegionHeight < nMenuMinScrollHeight) {
++
++				if (bFlipped) {
++	
++					/*
++						 All possible positions and values for the "maxheight" 
++						 configuration property have been tried, but none were 
++						 successful, so fall back to the original size and position.
++					*/
++
++					flipVertical();
++					
++				}
++				else {
++	
++					flipVertical();
++
++					bFlipped = true;
++	
++					fnReturnVal = setVerticalPosition();
++	
++				}
++				
++			}
++		
++		}
++		else if (nMaxHeight && (nMaxHeight !== nInitialMaxHeight)) {
++		
++			oMenu._setScrollHeight(nInitialMaxHeight);
++			oMenu.hideEvent.subscribe(resetMaxHeight);
++
++			// Re-align the Menu since its height has just changed
++			// as a result of the setting of the maxheight property.
++
++			alignY();
++		
++		}
++
++		return fnReturnVal;
++
++	};
++
++
++	// Determine if the current value for the Menu's "y" configuration property will
++	// result in the Menu being positioned outside the boundaries of the viewport
++
++	if (y < topConstraint || y  > bottomConstraint) {
++
++		// The current value for the Menu's "y" configuration property WILL
++		// result in the Menu being positioned outside the boundaries of the viewport
++
++		if (bCanConstrain) {
++
++			if (oMenu.cfg.getProperty(_PREVENT_CONTEXT_OVERLAP) && bPotentialContextOverlap) {
++		
++				//	SOLUTION #1:
++				//	If the "preventcontextoverlap" configuration property is set to "true", 
++				//	try to flip and/or scroll the Menu to both keep it inside the boundaries of the 
++				//	viewport AND from overlaping its context element (MenuItem or MenuBarItem).
++
++				oContextEl = aContext[0];
++				nContextElHeight = oContextEl.offsetHeight;
++				nContextElY = (Dom.getY(oContextEl) - scrollY);
++	
++				nTopRegionHeight = nContextElY;
++				nBottomRegionHeight = (viewPortHeight - (nContextElY + nContextElHeight));
++	
++				setVerticalPosition();
++				
++				yNew = oMenu.cfg.getProperty(_Y);
++		
++			}
++			else if (!(oMenu instanceof YAHOO.widget.MenuBar) && 
++				nMenuOffsetHeight >= viewPortHeight) {
++
++				//	SOLUTION #2:
++				//	If the Menu exceeds the height of the viewport, introduce scroll bars
++				//	to keep the Menu inside the boundaries of the viewport
++
++				nAvailableHeight = (viewPortHeight - (nViewportOffset * 2));
++		
++				if (nAvailableHeight > oMenu.cfg.getProperty(_MIN_SCROLL_HEIGHT)) {
++		
++					oMenu._setScrollHeight(nAvailableHeight);
++					oMenu.hideEvent.subscribe(resetMaxHeight);
++		
++					alignY();
++					
++					yNew = oMenu.cfg.getProperty(_Y);
++				
++				}
++		
++			}	
++			else {
++
++				//	SOLUTION #3:
++			
++				if (y < topConstraint) {
++					yNew  = topConstraint;
++				} else if (y  > bottomConstraint) {
++					yNew  = bottomConstraint;
++				}				
++			
++			}
++
++		}
++		else {
++			//	The "y" configuration property cannot be set to a value that will keep
++			//	entire Menu inside the boundary of the viewport.  Therefore, set  
++			//	the "y" configuration property to scrollY to keep as much of the 
++			//	Menu inside the viewport as possible.
++			yNew = nViewportOffset + scrollY;
++		}	
++
++	}
++
++	return yNew;
++
++},
++
++
++/**
++* @method _onHide
++* @description "hide" 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.
++*/
++_onHide: function (p_sType, p_aArgs) {
++
++	if (this.cfg.getProperty(_POSITION) === _DYNAMIC) {
++	
++		this.positionOffScreen();
++	
++	}
++
++},
++
++
++/**
++* @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,
++		oElement,
++		nOffsetWidth,
++		sWidth;        
++
++
++    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(_AUTO_SUBMENU_DISPLAY, false);
++
++                Event.removeListener(document, _MOUSEDOWN, disableAutoSubmenuDisplay);
++                Event.removeListener(document, _KEYDOWN, disableAutoSubmenuDisplay);
++
++            }
++        
++        }
++
++    }
++
++
++	function onSubmenuHide(p_sType, p_aArgs, p_sWidth) {
++	
++		this.cfg.setProperty(_WIDTH, _EMPTY_STRING);
++		this.hideEvent.unsubscribe(onSubmenuHide, p_sWidth);
++	
++	}
++
++
++    if (oParent) {
++
++        oParentMenu = oParent.parent;
++
++
++        if (!oParentMenu.cfg.getProperty(_AUTO_SUBMENU_DISPLAY) && 
++            (oParentMenu instanceof YAHOO.widget.MenuBar || 
++            oParentMenu.cfg.getProperty(_POSITION) == _STATIC)) {
++
++            oParentMenu.cfg.setProperty(_AUTO_SUBMENU_DISPLAY, true);
++
++            Event.on(document, _MOUSEDOWN, disableAutoSubmenuDisplay);                             
++            Event.on(document, _KEYDOWN, disableAutoSubmenuDisplay);
++
++        }
++
++
++		//	The following fixes an issue with the selected state of a MenuItem 
++		//	not rendering correctly when a submenu is aligned to the left of
++		//	its parent Menu instance.
++
++		if ((this.cfg.getProperty("x") < oParentMenu.cfg.getProperty("x")) && 
++			(UA.gecko && UA.gecko < 1.9) && !this.cfg.getProperty(_WIDTH)) {
++
++			oElement = this.element;
++			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);
++		
++			this.hideEvent.subscribe(onSubmenuHide, sWidth);
++		
++		}
++
++    }
++
++
++	/*
++		Dynamically positioned, root Menus focus themselves when visible, and 
++		will then, when hidden, restore focus to the UI control that had focus 
++		before the Menu was made visible.
++	*/ 
++
++	if (this === this.getRoot() && this.cfg.getProperty(_POSITION) === _DYNAMIC) {
++
++		this._focusedElement = oFocusedElement;
++		
++		this.focus();
++	
++	}
++
++
++},
++
++
++/**
++* @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,
++        oRoot = this.getRoot(),
++        oConfig,
++        oSubmenu;
++
++
++    if (oActiveItem) {
++
++        oConfig = oActiveItem.cfg;
++
++        oConfig.setProperty(_SELECTED, false);
++
++        oSubmenu = oConfig.getProperty(_SUBMENU);
++
++        if (oSubmenu) {
++
++            oSubmenu.hide();
++
++        }
++
++    }
++
++
++	/*
++		Focus can get lost in IE when the mouse is moving from a submenu back to its parent Menu.  
++		For this reason, it is necessary to maintain the focused state in a private property 
++		so that the _onMouseOver event handler is able to determined whether or not to set focus
++		to MenuItems as the user is moving the mouse.
++	*/ 
++
++	if (UA.ie && this.cfg.getProperty(_POSITION) === _DYNAMIC && this.parent) {
++
++		oRoot._hasFocus = this.hasFocus();
++	
++	}
++
++
++    if (oRoot == this) {
++
++        oRoot.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 _CONSTRAIN_TO_VIEWPORT:
++        case _HIDE_DELAY:
++        case _SHOW_DELAY:
++        case _SUBMENU_HIDE_DELAY:
++        case _CLICK_TO_HIDE:
++        case _EFFECT:
++        case _CLASSNAME:
++        case _SCROLL_INCREMENT:
++        case _MAX_HEIGHT:
++        case _MIN_SCROLL_HEIGHT:
++        case _MONITOR_RESIZE:
++        case _SHADOW:
++        case _PREVENT_CONTEXT_OVERLAP:
++		case _KEEP_OPEN:
++
++            p_oSubmenu.cfg.setProperty(sPropertyName, oPropertyValue);
++                
++        break;
++        
++        case _SUBMENU_ALIGNMENT:
++
++			if (!(this.parent.parent instanceof YAHOO.widget.MenuBar)) {
++		
++				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 oParentMenu = p_oSubmenu.parent.parent,
++    	oParentCfg = oParentMenu.cfg,
++
++        oConfig = {
++
++            constraintoviewport: oParentCfg.getProperty(_CONSTRAIN_TO_VIEWPORT),
++
++            xy: [0,0],
++
++            clicktohide: oParentCfg.getProperty(_CLICK_TO_HIDE),
++                
++            effect: oParentCfg.getProperty(_EFFECT),
++
++            showdelay: oParentCfg.getProperty(_SHOW_DELAY),
++            
++            hidedelay: oParentCfg.getProperty(_HIDE_DELAY),
++
++            submenuhidedelay: oParentCfg.getProperty(_SUBMENU_HIDE_DELAY),
++
++            classname: oParentCfg.getProperty(_CLASSNAME),
++            
++            scrollincrement: oParentCfg.getProperty(_SCROLL_INCREMENT),
++            
++			maxheight: oParentCfg.getProperty(_MAX_HEIGHT),
++
++            minscrollheight: oParentCfg.getProperty(_MIN_SCROLL_HEIGHT),
++            
++            iframe: oParentCfg.getProperty(_IFRAME),
++            
++            shadow: oParentCfg.getProperty(_SHADOW),
++
++			preventcontextoverlap: oParentCfg.getProperty(_PREVENT_CONTEXT_OVERLAP),
++            
++            monitorresize: oParentCfg.getProperty(_MONITOR_RESIZE),
++
++			keepopen: oParentCfg.getProperty(_KEEP_OPEN)
++
++        },
++        
++        oLI;
++
++
++	
++	if (!(oParentMenu instanceof YAHOO.widget.MenuBar)) {
++
++		oConfig[_SUBMENU_ALIGNMENT] = oParentCfg.getProperty(_SUBMENU_ALIGNMENT);
++
++	}
++
++
++    p_oSubmenu.cfg.applyConfig(oConfig);
++
++
++    if (!this.lazyLoad) {
++
++        oLI = this.parent.element;
++
++        if (this.element.parentNode == oLI) {
++    
++            this.render();
++    
++        }
++        else {
++
++            this.render(oLI);
++    
++        }
++
++    }
++    
++},
++
++
++/**
++* @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 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) { 	 
++  	 
++             oCfg.setProperty(_ZINDEX, 1); 	 
++  	 
++         } 	 
++  	 
++     }
++
++},
++
++
++/**
++* @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];
++
++	this._useHideDelay = (nHideDelay > 0);
++
++},
++
++
++/**
++* @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 (Lang.isString(oElement)) {
++
++        this.cfg.setProperty(_CONTAINER, Dom.get(oElement), true);
++
++	}
++
++},
++
++
++/**
++* @method _clearSetWidthFlag
++* @description Change event listener for the "width" configuration property.  This listener is 
++* added when a Menu's "width" configuration property is set by the "_setScrollHeight" method, and 
++* is used to set the "_widthSetForScroll" property to "false" if the "width" configuration property 
++* is changed after it was set by the "_setScrollHeight" method.  If the "_widthSetForScroll" 
++* property is set to "false", and the "_setScrollHeight" method is in the process of tearing down 
++* scrolling functionality, it will maintain the Menu's new width rather than reseting it.
++* @private
++*/
++_clearSetWidthFlag: function () {
++
++	this._widthSetForScroll = false;
++	
++	this.cfg.unsubscribeFromConfigEvent(_WIDTH, this._clearSetWidthFlag);
++
++},
++
++
++/**
++* @method _setScrollHeight
++* @description 
++* @param {String} p_nScrollHeight Number representing the scrolling height of the Menu.
++* @private
++*/
++_setScrollHeight: function (p_nScrollHeight) {
++
++    var nScrollHeight = p_nScrollHeight,
++		bRefireIFrameAndShadow = false,
++		bSetWidth = false,
++        oElement,
++        oBody,
++        oHeader,
++        oFooter,
++        fnMouseOver,
++        fnMouseOut,
++        nMinScrollHeight,
++        nHeight,
++        nOffsetWidth,
++        sWidth;
++
++
++	if (this.getItems().length > 0) {
++	
++        oElement = this.element;
++        oBody = this.body;
++        oHeader = this.header;
++        oFooter = this.footer;
++        fnMouseOver = this._onScrollTargetMouseOver;
++        fnMouseOut = this._onScrollTargetMouseOut;
++        nMinScrollHeight = this.cfg.getProperty(_MIN_SCROLL_HEIGHT);
++
++
++		if (nScrollHeight > 0 && nScrollHeight < nMinScrollHeight) {
++		
++			nScrollHeight = nMinScrollHeight;
++		
++		}
++
++
++		Dom.setStyle(oBody, _HEIGHT, _EMPTY_STRING);
++		Dom.removeClass(oBody, _YUI_MENU_BODY_SCROLLED);
++		oBody.scrollTop = 0;
++
++
++		//	Need to set a width for the Menu to fix the following problems in 
++		//	Firefox 2 and IE:
++
++		//	#1) Scrolled Menus will render at 1px wide in Firefox 2
++
++		//	#2) 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.
++
++		//	#3) In IE it is necessary to give the Menu a width before the 
++		//	scrollbars are rendered to prevent the Menu from rendering with a 
++		//	width that is 100% of the browser viewport.
++	
++		bSetWidth = ((UA.gecko && UA.gecko < 1.9) || UA.ie);
++
++		if (nScrollHeight > 0 && bSetWidth && !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.unsubscribeFromConfigEvent(_WIDTH, this._clearSetWidthFlag);
++
++
++			this.cfg.setProperty(_WIDTH, sWidth);
++
++
++			/*
++				Set a flag (_widthSetForScroll) to maintain some history regarding how the 
++				"width" configuration property was set.  If the "width" configuration property 
++				is set by something other than the "_setScrollHeight" method, it will be 
++				necessary to maintain that new value and not clear the width if scrolling 
++				is turned off.
++			*/
++
++			this._widthSetForScroll = true;
++
++			this.cfg.subscribeToConfigEvent(_WIDTH, this._clearSetWidthFlag);
++	
++		}
++	
++	
++		if (nScrollHeight > 0 && (!oHeader && !oFooter)) {
++	
++	
++			this.setHeader(_NON_BREAKING_SPACE);
++			this.setFooter(_NON_BREAKING_SPACE);
++	
++			oHeader = this.header;
++			oFooter = this.footer;
++	
++			Dom.addClass(oHeader, _TOP_SCROLLBAR);
++			Dom.addClass(oFooter, _BOTTOM_SCROLLBAR);
++			
++			oElement.insertBefore(oHeader, oBody);
++			oElement.appendChild(oFooter);
++		
++		}
++	
++	
++		nHeight = nScrollHeight;
++	
++	
++		if (oHeader && oFooter) {
++			nHeight = (nHeight - (oHeader.offsetHeight + oFooter.offsetHeight));
++		}
++	
++	
++		if ((nHeight > 0) && (oBody.offsetHeight > nScrollHeight)) {
++
++	
++			Dom.addClass(oBody, _YUI_MENU_BODY_SCROLLED);
++			Dom.setStyle(oBody, _HEIGHT, (nHeight + _PX));
++
++			if (!this._hasScrollEventHandlers) {
++	
++				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._hasScrollEventHandlers = true;
++	
++			}
++	
++			this._disableScrollHeader();
++			this._enableScrollFooter();
++			
++			bRefireIFrameAndShadow = true;			
++	
++		}
++		else if (oHeader && oFooter) {
++
++	
++
++			/*
++				Only clear the the "width" configuration property if it was set the 
++				"_setScrollHeight" method and wasn't changed by some other means after it was set.
++			*/	
++	
++			if (this._widthSetForScroll) {
++	
++
++				this._widthSetForScroll = false;
++
++				this.cfg.unsubscribeFromConfigEvent(_WIDTH, this._clearSetWidthFlag);
++	
++				this.cfg.setProperty(_WIDTH, _EMPTY_STRING);
++			
++			}
++	
++	
++			this._enableScrollHeader();
++			this._enableScrollFooter();
++	
++			if (this._hasScrollEventHandlers) {
++	
++				Event.removeListener(oHeader, _MOUSEOVER, fnMouseOver);
++				Event.removeListener(oHeader, _MOUSEOUT, fnMouseOut);
++				Event.removeListener(oFooter, _MOUSEOVER, fnMouseOver);
++				Event.removeListener(oFooter, _MOUSEOUT, fnMouseOut);
++
++				this._hasScrollEventHandlers = false;
++	
++			}
++
++			oElement.removeChild(oHeader);
++			oElement.removeChild(oFooter);
++	
++			this.header = null;
++			this.footer = null;
++			
++			bRefireIFrameAndShadow = true;
++		
++		}
++
++
++		if (bRefireIFrameAndShadow) {
++	
++			this.cfg.refireEvent(_IFRAME);
++			this.cfg.refireEvent(_SHADOW);
++		
++		}
++	
++	}
++
++},
++
++
++/**
++* @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._setScrollHeight(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];
++
++	if (this.lazyLoad && !this.body && nMaxHeight > 0) {
++	
++		this.renderEvent.subscribe(this._setMaxHeight, nMaxHeight, this);
++
++	}
++	else {
++
++		this._setScrollHeight(nMaxHeight);
++	
++	}
++
++},
++
++
++/**
++* @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 configShadow
++* @description Event handler for when the "shadow" 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.
++*/
++configShadow: function (p_sType, p_aArgs, p_oMenu) {
++
++    var sizeShadow = function () {
++
++        var oElement = this.element,
++            oShadow = this._shadow;
++    
++        if (oShadow && oElement) {
++
++			// Clear the previous width
++
++			if (oShadow.style.width && oShadow.style.height) {
++			
++				oShadow.style.width = _EMPTY_STRING;
++				oShadow.style.height = _EMPTY_STRING;
++			
++			}
++
++            oShadow.style.width = (oElement.offsetWidth + 6) + _PX;
++            oShadow.style.height = (oElement.offsetHeight + 1) + _PX;
++            
++        }
++    
++    };
++
++
++    var replaceShadow = function () {
++
++        this.element.appendChild(this._shadow);
++
++    };
++
++
++    var addShadowVisibleClass = function () {
++    
++        Dom.addClass(this._shadow, _YUI_MENU_SHADOW_VISIBLE);
++    
++    };
++    
++
++    var removeShadowVisibleClass = function () {
++
++        Dom.removeClass(this._shadow, _YUI_MENU_SHADOW_VISIBLE);
++    
++    };
++
++
++    var createShadow = function () {
++
++        var oShadow = this._shadow,
++            oElement;
++
++        if (!oShadow) {
++
++            oElement = this.element;
++
++
++            if (!m_oShadowTemplate) {
++
++                m_oShadowTemplate = document.createElement(_DIV_LOWERCASE);
++                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.
++                */
++        
++				Lang.later(0, this, function () {
++
++                    sizeShadow.call(this); 
++                    this.syncIframe();
++				
++				});
++
++
++                this.cfg.subscribeToConfigEvent(_WIDTH, sizeShadow);
++                this.cfg.subscribeToConfigEvent(_HEIGHT, sizeShadow);
++                this.cfg.subscribeToConfigEvent(_MAX_HEIGHT, sizeShadow);
++                this.changeContentEvent.subscribe(sizeShadow);
++
++                Module.textResizeEvent.subscribe(sizeShadow, this, true);
++                
++                this.destroyEvent.subscribe(function () {
++                
++                    Module.textResizeEvent.unsubscribe(sizeShadow, this);
++                
++                });
++        
++            }
++
++            this.cfg.subscribeToConfigEvent(_MAX_HEIGHT, replaceShadow);
++
++        }
++
++    };
++
++
++    var onBeforeShow = function () {
++
++    	if (this._shadow) {
++
++			// If called because the "shadow" event was refired - just append again and resize
++			
++			replaceShadow.call(this);
++			
++			if (UA.ie) {
++				sizeShadow.call(this);
++			}
++    	
++    	}
++    	else {
++    
++        	createShadow.call(this);
++        
++        }
++
++        this.beforeShowEvent.unsubscribe(onBeforeShow);
++    
++    };
++
++
++	var bShadow = p_aArgs[0];
++
++
++    if (bShadow && this.cfg.getProperty(_POSITION) == _DYNAMIC) {
++
++        if (this.cfg.getProperty(_VISIBLE)) {
++
++			if (this._shadow) {
++
++				// If the "shadow" event was refired - just append again and resize
++				
++				replaceShadow.call(this);
++				
++				if (UA.ie) {
++					sizeShadow.call(this);
++				}
++				
++			} 
++			else {
++            	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 i = EVENT_TYPES.length - 1,
++		aEventData,
++		oCustomEvent;
++
++
++	do {
++
++		aEventData = EVENT_TYPES[i];
++
++		oCustomEvent = this.createEvent(aEventData[1]);
++		oCustomEvent.signature = CustomEvent.LIST;
++		
++		this[aEventData[0]] = oCustomEvent;
++
++	}
++	while (i--);
++
++},
++
++
++/**
++* @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,
++    	oElement = this.element,
++        sPos = this.OFF_SCREEN_POSITION;
++    
++    oElement.style.top = _EMPTY_STRING;
++    oElement.style.left = _EMPTY_STRING;
++    
++    if (oIFrame) {
++
++		oIFrame.style.top = sPos;
++		oIFrame.style.left = sPos;
++    
++    }
++
++},
++
++
++/**
++* @method getRoot
++* @description Finds the menu's root menu.
++*/
++getRoot: function () {
++
++    var oItem = this.parent,
++        oParentMenu,
++        returnVal;
++
++    if (oItem) {
++
++        oParentMenu = oItem.parent;
++
++        returnVal = oParentMenu ? oParentMenu.getRoot() : this;
++
++    }
++    else {
++    
++        returnVal = this;
++    
++    }
++    
++    return returnVal;
++
++},
++
++
++/**
++* @method toString
++* @description Returns a string representing the menu.
++* @return {String}
++*/
++toString: function () {
++
++    var sReturnVal = _MENU,
++        sId = this.id;
++
++    if (sId) {
++
++        sReturnVal += (_SPACE + 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 (Lang.isString(p_sGroupTitle) && p_sGroupTitle.length > 0) {
++
++        nGroupIndex = Lang.isNumber(p_nGroupIndex) ? 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) {
++
++	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,
++        returnVal;
++
++
++    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) {
++        
++            returnVal = aItems;
++        
++        }
++
++    }
++
++	return returnVal;
++
++},
++
++
++/**
++* @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) {
++    
++	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,
++    	returnVal;
++    
++    if (!Lang.isUndefined(p_oObject)) {
++
++        if (p_oObject instanceof YAHOO.widget.MenuItem) {
++
++            oItem = this._removeItemFromGroupByValue(p_nGroupIndex, p_oObject);           
++
++        }
++        else if (Lang.isNumber(p_oObject)) {
++
++            oItem = this._removeItemFromGroupByIndex(p_nGroupIndex, p_oObject);
++
++        }
++
++        if (oItem) {
++
++            oItem.destroy();
++
++
++            returnVal = oItem;
++
++        }
++
++    }
++
++	return returnVal;
++
++},
++
++
++/**
++* @method getItems
++* @description Returns an array of all of the items in the menu.
++* @return {Array}
++*/
++getItems: function () {
++
++    var aGroups = this._aItemGroups,
++        nGroups,
++        returnVal,
++        aItems = [];
++
++
++    if (Lang.isArray(aGroups)) {
++
++        nGroups = aGroups.length;
++
++        returnVal = ((nGroups == 1) ? aGroups[0] : (Array.prototype.concat.apply(aItems, aGroups)));
++
++    }
++
++	return returnVal;
++
++},
++
++
++/**
++* @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,
++    	returnVal;
++    
++    if (Lang.isNumber(p_nItemIndex)) {
++
++        aGroup = this._getItemGroup(p_nGroupIndex);
++
++        if (aGroup) {
++
++            returnVal = aGroup[p_nItemIndex];
++        
++        }
++
++    }
++    
++    return returnVal;
++    
++},
++
++
++/**
++* @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, oItem.groupIndex);
++
++            }
++        
++        }
++        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 = _EMPTY_STRING;
++
++    }
++
++    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(_SHOW_DELAY) > 0) {
++    
++        this._cancelShowDelay();
++    
++    }
++
++
++    var oActiveItem = this.activeItem,
++        oConfig,
++        oSubmenu;
++
++    if (oActiveItem) {
++
++        oConfig = oActiveItem.cfg;
++
++        if (p_bBlur) {
++
++            oActiveItem.blur();
++            
++            this.getRoot()._hasFocus = true;
++        
++        }
++
++        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());
++
++},
++
++
++_doItemSubmenuSubscribe: function (p_sType, p_aArgs, p_oObject) {
++
++    var oItem = p_aArgs[0],
++        oSubmenu = oItem.cfg.getProperty(_SUBMENU);
++
++    if (oSubmenu) {
++        oSubmenu.subscribe.apply(oSubmenu, p_oObject);
++    }
++
++},
++
++
++_doSubmenuSubscribe: function (p_sType, p_aArgs, p_oObject) { 
++
++    var oSubmenu = this.cfg.getProperty(_SUBMENU);
++    
++    if (oSubmenu) {
++        oSubmenu.subscribe.apply(oSubmenu, p_oObject);
++    }
++
++},
++
++
++/**
++* 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 () {
++
++	//	Subscribe to the event for this Menu instance
++    Menu.superclass.subscribe.apply(this, arguments);
++
++	//	Subscribe to the "itemAdded" event so that all future submenus
++	//	also subscribe to this event
++    Menu.superclass.subscribe.call(this, _ITEM_ADDED, this._doItemSubmenuSubscribe, 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, this._doSubmenuSubscribe, arguments);
++                }
++
++            }
++            while (i--);
++        
++        }
++
++    }
++
++},
++
++
++unsubscribe: function () {
++
++	//	Remove the event for this Menu instance
++    Menu.superclass.unsubscribe.apply(this, arguments);
++
++	//	Remove the "itemAdded" event so that all future submenus don't have 
++	//	the event handler
++    Menu.superclass.unsubscribe.call(this, _ITEM_ADDED, this._doItemSubmenuSubscribe, 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.unsubscribe.apply(oSubmenu, arguments);
++                }
++                else {
++                    oItem.cfg.unsubscribeFromConfigEvent(_SUBMENU, this._doSubmenuSubscribe, 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 Menu'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 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(
++        VISIBLE_CONFIG.key, 
++        {
++            handler: this.configVisible, 
++            value: VISIBLE_CONFIG.value, 
++            validator: VISIBLE_CONFIG.validator
++        }
++     );
++
++
++    /*
++        Change the default value for the "constraintoviewport" configuration 
++        property (inherited by YAHOO.widget.Overlay) 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(
++        CONSTRAIN_TO_VIEWPORT_CONFIG.key, 
++        {
++            handler: this.configConstrainToViewport, 
++            value: CONSTRAIN_TO_VIEWPORT_CONFIG.value, 
++            validator: CONSTRAIN_TO_VIEWPORT_CONFIG.validator, 
++            supercedes: CONSTRAIN_TO_VIEWPORT_CONFIG.supercedes 
++        } 
++    );
++
++
++    /*
++        Change the default value for the "preventcontextoverlap" configuration 
++        property (inherited by YAHOO.widget.Overlay) to "true" by re-adding the property.
++    */
++
++	/**
++	* @config preventcontextoverlap
++	* @description Boolean indicating whether or not a submenu should overlap its parent MenuItem 
++	* when the "constraintoviewport" configuration property is set to "true".
++	* @type Boolean
++	* @default true
++	*/
++	oConfig.addProperty(PREVENT_CONTEXT_OVERLAP_CONFIG.key, {
++
++		value: PREVENT_CONTEXT_OVERLAP_CONFIG.value, 
++		validator: PREVENT_CONTEXT_OVERLAP_CONFIG.validator, 
++		supercedes: PREVENT_CONTEXT_OVERLAP_CONFIG.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(
++        POSITION_CONFIG.key, 
++        {
++            handler: this.configPosition,
++            value: POSITION_CONFIG.value, 
++            validator: POSITION_CONFIG.validator,
++            supercedes: POSITION_CONFIG.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(
++        SUBMENU_ALIGNMENT_CONFIG.key, 
++        { 
++            value: SUBMENU_ALIGNMENT_CONFIG.value,
++            suppressEvent: SUBMENU_ALIGNMENT_CONFIG.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(
++	   AUTO_SUBMENU_DISPLAY_CONFIG.key, 
++	   { 
++	       value: AUTO_SUBMENU_DISPLAY_CONFIG.value, 
++	       validator: AUTO_SUBMENU_DISPLAY_CONFIG.validator,
++	       suppressEvent: AUTO_SUBMENU_DISPLAY_CONFIG.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(
++	   SHOW_DELAY_CONFIG.key, 
++	   { 
++	       value: SHOW_DELAY_CONFIG.value, 
++	       validator: SHOW_DELAY_CONFIG.validator,
++	       suppressEvent: SHOW_DELAY_CONFIG.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(
++	   HIDE_DELAY_CONFIG.key, 
++	   { 
++	       handler: this.configHideDelay,
++	       value: HIDE_DELAY_CONFIG.value, 
++	       validator: HIDE_DELAY_CONFIG.validator, 
++	       suppressEvent: HIDE_DELAY_CONFIG.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(
++	   SUBMENU_HIDE_DELAY_CONFIG.key, 
++	   { 
++	       value: SUBMENU_HIDE_DELAY_CONFIG.value, 
++	       validator: SUBMENU_HIDE_DELAY_CONFIG.validator,
++	       suppressEvent: SUBMENU_HIDE_DELAY_CONFIG.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(
++        CLICK_TO_HIDE_CONFIG.key,
++        {
++            value: CLICK_TO_HIDE_CONFIG.value,
++            validator: CLICK_TO_HIDE_CONFIG.validator,
++            suppressEvent: CLICK_TO_HIDE_CONFIG.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(
++	   CONTAINER_CONFIG.key, 
++	   { 
++	       handler: this.configContainer,
++	       value: document.body,
++           suppressEvent: CONTAINER_CONFIG.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(
++        SCROLL_INCREMENT_CONFIG.key, 
++        { 
++            value: SCROLL_INCREMENT_CONFIG.value, 
++            validator: SCROLL_INCREMENT_CONFIG.validator,
++            supercedes: SCROLL_INCREMENT_CONFIG.supercedes,
++            suppressEvent: SCROLL_INCREMENT_CONFIG.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(
++        MIN_SCROLL_HEIGHT_CONFIG.key, 
++        { 
++            value: MIN_SCROLL_HEIGHT_CONFIG.value, 
++            validator: MIN_SCROLL_HEIGHT_CONFIG.validator,
++            supercedes: MIN_SCROLL_HEIGHT_CONFIG.supercedes,
++            suppressEvent: MIN_SCROLL_HEIGHT_CONFIG.suppressEvent
++        }
++    );
++
++
++    /**
++    * @config maxheight
++    * @description Number defining the maximum height (in pixels) for a menu's 
++    * body element (<code>&#60;div class="bd"&#62;</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(
++       MAX_HEIGHT_CONFIG.key, 
++       {
++            handler: this.configMaxHeight,
++            value: MAX_HEIGHT_CONFIG.value,
++            validator: MAX_HEIGHT_CONFIG.validator,
++            suppressEvent: MAX_HEIGHT_CONFIG.suppressEvent,
++            supercedes: MAX_HEIGHT_CONFIG.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(
++        CLASS_NAME_CONFIG.key, 
++        { 
++            handler: this.configClassName,
++            value: CLASS_NAME_CONFIG.value, 
++            validator: CLASS_NAME_CONFIG.validator,
++            supercedes: CLASS_NAME_CONFIG.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(
++        DISABLED_CONFIG.key, 
++        { 
++            handler: this.configDisabled,
++            value: DISABLED_CONFIG.value, 
++            validator: DISABLED_CONFIG.validator,
++            suppressEvent: DISABLED_CONFIG.suppressEvent
++        }
++    );
++
++
++    /**
++    * @config shadow
++    * @description Boolean indicating if the menu should have a shadow.
++    * @default true
++    * @type Boolean
++    */
++    oConfig.addProperty(
++        SHADOW_CONFIG.key, 
++        { 
++            handler: this.configShadow,
++            value: SHADOW_CONFIG.value, 
++            validator: SHADOW_CONFIG.validator
++        }
++    );
++
++
++    /**
++    * @config keepopen
++    * @description Boolean indicating if the menu should remain open when clicked.
++    * @default false
++    * @type Boolean
++    */
++    oConfig.addProperty(
++        KEEP_OPEN_CONFIG.key, 
++        { 
++            value: KEEP_OPEN_CONFIG.value, 
++            validator: KEEP_OPEN_CONFIG.validator
++        }
++    );
++
++}
++
++}); // 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,
++    UA = YAHOO.env.ua,
++    Lang = YAHOO.lang,
++
++	// Private string constants
++
++	_TEXT = "text",
++	_HASH = "#",
++	_HYPHEN = "-",
++	_HELP_TEXT = "helptext",
++	_URL = "url",
++	_TARGET = "target",
++	_EMPHASIS = "emphasis",
++	_STRONG_EMPHASIS = "strongemphasis",
++	_CHECKED = "checked",
++	_SUBMENU = "submenu",
++	_DISABLED = "disabled",
++	_SELECTED = "selected",
++	_HAS_SUBMENU = "hassubmenu",
++	_CHECKED_DISABLED = "checked-disabled",
++	_HAS_SUBMENU_DISABLED = "hassubmenu-disabled",
++	_HAS_SUBMENU_SELECTED = "hassubmenu-selected",
++	_CHECKED_SELECTED = "checked-selected",
++	_ONCLICK = "onclick",
++	_CLASSNAME = "classname",
++	_EMPTY_STRING = "",
++	_OPTION = "OPTION",
++	_OPTGROUP = "OPTGROUP",
++	_LI_UPPERCASE = "LI",
++	_HREF = "href",
++	_SELECT = "SELECT",
++	_DIV = "DIV",
++	_START_HELP_TEXT = "<em class=\"helptext\">",
++	_START_EM = "<em>",
++	_END_EM = "</em>",
++	_START_STRONG = "<strong>",
++	_END_STRONG = "</strong>",
++	_PREVENT_CONTEXT_OVERLAP = "preventcontextoverlap",
++	_OBJ = "obj",
++	_SCOPE = "scope",
++	_NONE = "none",
++	_VISIBLE = "visible",
++	_SPACE = " ",
++	_MENUITEM = "MenuItem",
++	_CLICK = "click",
++	_SHOW = "show",
++	_HIDE = "hide",
++	_LI_LOWERCASE = "li",
++	_ANCHOR_TEMPLATE = "<a href=\"#\"></a>",
++
++    EVENT_TYPES = [
++    
++        ["mouseOverEvent", "mouseover"],
++        ["mouseOutEvent", "mouseout"],
++        ["mouseDownEvent", "mousedown"],
++        ["mouseUpEvent", "mouseup"],
++        ["clickEvent", _CLICK],
++        ["keyPressEvent", "keypress"],
++        ["keyDownEvent", "keydown"],
++        ["keyUpEvent", "keyup"],
++        ["focusEvent", "focus"],
++        ["blurEvent", "blur"],
++        ["destroyEvent", "destroy"]
++    
++    ],
++
++	TEXT_CONFIG = { 
++		key: _TEXT, 
++		value: _EMPTY_STRING, 
++		validator: Lang.isString, 
++		suppressEvent: true 
++	}, 
++
++	HELP_TEXT_CONFIG = { 
++		key: _HELP_TEXT,
++		supercedes: [_TEXT], 
++		suppressEvent: true 
++	},
++
++	URL_CONFIG = { 
++		key: _URL, 
++		value: _HASH, 
++		suppressEvent: true 
++	}, 
++
++	TARGET_CONFIG = { 
++		key: _TARGET, 
++		suppressEvent: true 
++	}, 
++
++	EMPHASIS_CONFIG = { 
++		key: _EMPHASIS, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true, 
++		supercedes: [_TEXT]
++	}, 
++
++	STRONG_EMPHASIS_CONFIG = { 
++		key: _STRONG_EMPHASIS, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true,
++		supercedes: [_TEXT]
++	},
++
++	CHECKED_CONFIG = { 
++		key: _CHECKED, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true, 
++		supercedes: [_DISABLED, _SELECTED]
++	}, 
++
++	SUBMENU_CONFIG = { 
++		key: _SUBMENU,
++		suppressEvent: true,
++		supercedes: [_DISABLED, _SELECTED]
++	},
++
++	DISABLED_CONFIG = { 
++		key: _DISABLED, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true,
++		supercedes: [_TEXT, _SELECTED]
++	},
++
++	SELECTED_CONFIG = { 
++		key: _SELECTED, 
++		value: false, 
++		validator: Lang.isBoolean, 
++		suppressEvent: true
++	},
++
++	ONCLICK_CONFIG = { 
++		key: _ONCLICK,
++		suppressEvent: true
++	},
++
++	CLASS_NAME_CONFIG = { 
++		key: _CLASSNAME, 
++		value: null, 
++		validator: Lang.isString,
++		suppressEvent: true
++	},
++    
++	KEY_LISTENER_CONFIG = {
++		key: "keylistener", 
++		value: null, 
++		suppressEvent: true
++	},
++
++	m_oMenuItemTemplate = null,
++
++    CLASS_NAMES = {};
++
++
++/**
++* @method getClassNameForState
++* @description Returns a class name for the specified prefix and state.  If the class name does not 
++* yet exist, it is created and stored in the CLASS_NAMES object to increase performance.
++* @private
++* @param {String} prefix String representing the prefix for the class name
++* @param {String} state String representing a state - "disabled," "checked," etc.
++*/  
++var getClassNameForState = function (prefix, state) {
++
++	var oClassNames = CLASS_NAMES[prefix];
++	
++	if (!oClassNames) {
++		CLASS_NAMES[prefix] = {};
++		oClassNames = CLASS_NAMES[prefix];
++	}
++
++
++	var sClassName = oClassNames[state];
++
++	if (!sClassName) {
++		sClassName = prefix + _HYPHEN + state;
++		oClassNames[state] = sClassName;
++	}
++
++	return sClassName;
++	
++};
++
++
++/**
++* @method addClassNameForState
++* @description Applies a class name to a MenuItem instance's &#60;LI&#62; and &#60;A&#62; elements
++* that represents a MenuItem's state - "disabled," "checked," etc.
++* @private
++* @param {String} state String representing a state - "disabled," "checked," etc.
++*/  
++var addClassNameForState = function (state) {
++
++	Dom.addClass(this.element, getClassNameForState(this.CSS_CLASS_NAME, state));
++	Dom.addClass(this._oAnchor, getClassNameForState(this.CSS_LABEL_CLASS_NAME, state));
++
++};
++
++/**
++* @method removeClassNameForState
++* @description Removes a class name from a MenuItem instance's &#60;LI&#62; and &#60;A&#62; elements
++* that represents a MenuItem's state - "disabled," "checked," etc.
++* @private
++* @param {String} state String representing a state - "disabled," "checked," etc.
++*/  
++var removeClassNameForState = function (state) {
++
++	Dom.removeClass(this.element, getClassNameForState(this.CSS_CLASS_NAME, state));
++	Dom.removeClass(this._oAnchor, getClassNameForState(this.CSS_LABEL_CLASS_NAME, state));
++
++};
++
++
++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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @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
++    */
++
++
++    /**
++    * @event focusEvent
++    * @description Fires when the menu item receives focus.
++    * @type YAHOO.util.CustomEvent
++    */
++
++
++    /**
++    * @event blurEvent
++    * @description Fires when the menu item loses the input focus.
++    * @type YAHOO.util.CustomEvent
++    */
++
++
++    /**
++    * @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 oConfig = this.cfg,
++            sURL = _HASH,
++            oCustomEvent,
++			aEventData,
++            oAnchor,
++            sTarget,
++            sText,
++            sId,
++            i;
++
++
++        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_UPPERCASE:
++
++                    // 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, 2);
++                        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);
++
++
++			i = EVENT_TYPES.length - 1;
++
++			do {
++
++				aEventData = EVENT_TYPES[i];
++
++				oCustomEvent = this.createEvent(aEventData[1]);
++				oCustomEvent.signature = CustomEvent.LIST;
++				
++				this[aEventData[0]] = oCustomEvent;
++
++			}
++			while (i--);
++
++
++            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_LOWERCASE);
++            m_oMenuItemTemplate.innerHTML = _ANCHOR_TEMPLATE;
++
++        }
++
++        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(_HELP_TEXT),
++            sHelpTextHTML = _EMPTY_STRING,
++            sEmphasisStartTag = _EMPTY_STRING,
++            sEmphasisEndTag = _EMPTY_STRING;
++
++
++        if (sText) {
++
++
++            if (sHelpText) {
++                    
++                sHelpTextHTML = _START_HELP_TEXT + sHelpText + _END_EM;
++            
++            }
++
++
++            if (oConfig.getProperty(_EMPHASIS)) {
++
++                sEmphasisStartTag = _START_EM;
++                sEmphasisEndTag = _END_EM;
++
++            }
++
++
++            if (oConfig.getProperty(_STRONG_EMPHASIS)) {
++
++                sEmphasisStartTag = _START_STRONG;
++                sEmphasisEndTag = _END_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 = _HASH;
++
++        }
++
++        var oAnchor = this._oAnchor;
++
++        if (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(_STRONG_EMPHASIS)) {
++
++            oConfig.setProperty(_STRONG_EMPHASIS, 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],
++            oConfig = this.cfg;
++
++
++        if (bChecked) {
++
++            addClassNameForState.call(this, _CHECKED);
++
++        }
++        else {
++
++            removeClassNameForState.call(this, _CHECKED);
++        }
++
++
++        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);
++
++
++        if (bDisabled) {
++
++            if (oConfig.getProperty(_SELECTED)) {
++
++                oConfig.setProperty(_SELECTED, false);
++
++            }
++
++
++			addClassNameForState.call(this, _DISABLED);
++
++
++            if (oSubmenu) {
++
++				addClassNameForState.call(this, _HAS_SUBMENU_DISABLED);
++            
++            }
++            
++
++            if (bChecked) {
++
++				addClassNameForState.call(this, _CHECKED_DISABLED);
++
++            }
++
++        }
++        else {
++
++			removeClassNameForState.call(this, _DISABLED);
++
++
++            if (oSubmenu) {
++
++				removeClassNameForState.call(this, _HAS_SUBMENU_DISABLED);
++            
++            }
++            
++
++            if (bChecked) {
++
++				removeClassNameForState.call(this, _CHECKED_DISABLED);
++
++            }
++
++        }
++
++    },
++
++
++    /**
++    * @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,
++        	oAnchor = this._oAnchor,
++        	
++            bSelected = p_aArgs[0],
++            bChecked = oConfig.getProperty(_CHECKED),
++            oSubmenu = oConfig.getProperty(_SUBMENU);
++
++
++        if (UA.opera) {
++
++            oAnchor.blur();
++        
++        }
++
++
++        if (bSelected && !oConfig.getProperty(_DISABLED)) {
++
++			addClassNameForState.call(this, _SELECTED);
++
++
++            if (oSubmenu) {
++
++				addClassNameForState.call(this, _HAS_SUBMENU_SELECTED);
++            
++            }
++
++
++            if (bChecked) {
++
++				addClassNameForState.call(this, _CHECKED_SELECTED);
++
++            }
++
++        }
++        else {
++
++			removeClassNameForState.call(this, _SELECTED);
++
++
++            if (oSubmenu) {
++
++				removeClassNameForState.call(this, _HAS_SUBMENU_SELECTED);
++            
++            }
++
++
++            if (bChecked) {
++
++				removeClassNameForState.call(this, _CHECKED_SELECTED);
++
++            }
++
++        }
++
++
++        if (this.hasFocus() && 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,
++            bLazyLoad = this.parent && this.parent.lazyLoad,
++            oMenu,
++            sSubmenuId,
++            oSubmenuConfig;
++
++
++        if (oSubmenu) {
++
++            if (oSubmenu instanceof Menu) {
++
++                oMenu = oSubmenu;
++                oMenu.parent = this;
++                oMenu.lazyLoad = bLazyLoad;
++
++            }
++            else if (Lang.isObject(oSubmenu) && 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) {
++
++				oMenu.cfg.setProperty(_PREVENT_CONTEXT_OVERLAP, true);
++
++                addClassNameForState.call(this, _HAS_SUBMENU);
++
++
++				if (oConfig.getProperty(_URL) === _HASH) {
++				
++					oConfig.setProperty(_URL, (_HASH + oMenu.id));
++				
++				}
++
++
++                this._oSubmenu = oMenu;
++
++
++                if (UA.opera) {
++                
++                    oMenu.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);               
++                
++                }
++            
++            }
++
++        }
++        else {
++
++			removeClassNameForState.call(this, _HAS_SUBMENU);
++
++            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 && Lang.isObject(oObject) && 
++            Lang.isFunction(oObject.fn)) {
++            
++            this.clickEvent.subscribe(oObject.fn, 
++                ((_OBJ in oObject) ? oObject.obj : this), 
++                ((_SCOPE in oObject) ? oObject.scope : null) );
++
++            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;
++    
++    },
++
++
++    /**
++    * @method _dispatchClickEvent
++    * @description Dispatches a DOM "click" event to the anchor element of a 
++	* MenuItem instance.
++	* @private	
++    */
++	_dispatchClickEvent: function () {
++
++		var oMenuItem = this,
++			oAnchor,
++			oEvent;
++
++		if (!oMenuItem.cfg.getProperty(_DISABLED)) {
++
++			oAnchor = Dom.getFirstChild(oMenuItem.element);
++
++			//	Dispatch a "click" event to the MenuItem's anchor so that its
++			//	"click" event handlers will get called in response to the user 
++			//	pressing the keyboard shortcut defined by the "keylistener"
++			//	configuration property.
++
++			if (UA.ie) {
++				oAnchor.fireEvent(_ONCLICK);
++			}
++			else {
++
++				if ((UA.gecko && UA.gecko >= 1.9) || UA.opera || UA.webkit) {
++
++					oEvent = document.createEvent("HTMLEvents");
++					oEvent.initEvent(_CLICK, true, true);
++
++				}
++				else {
++
++					oEvent = document.createEvent("MouseEvents");
++					oEvent.initMouseEvent(_CLICK, true, true, window, 0, 0, 0, 
++						0, 0, false, false, false, false, 0, null);
++
++				}
++
++				oAnchor.dispatchEvent(oEvent);
++
++			}
++
++		}
++
++	},
++
++
++    /**
++    * @method _createKeyListener
++    * @description "show" event handler for a Menu instance - responsible for 
++	* setting up the KeyListener instance for a MenuItem.
++	* @private	
++    * @param {String} type String representing the name of the event that 
++    * was fired.
++    * @param {Array} args Array of arguments sent when the event was fired.
++    * @param {Array} keyData Array of arguments sent when the event was fired.
++    */
++	_createKeyListener: function (type, args, keyData) {
++
++		var oMenuItem = this,
++			oMenu = oMenuItem.parent;
++
++		var oKeyListener = new YAHOO.util.KeyListener(
++										oMenu.element.ownerDocument, 
++										keyData, 
++										{
++											fn: oMenuItem._dispatchClickEvent, 
++											scope: oMenuItem, 
++											correctScope: true });
++
++
++		if (oMenu.cfg.getProperty(_VISIBLE)) {
++			oKeyListener.enable();
++		}
++
++
++		oMenu.subscribe(_SHOW, oKeyListener.enable, null, oKeyListener);
++		oMenu.subscribe(_HIDE, oKeyListener.disable, null, oKeyListener);
++		
++		oMenuItem._keyListener = oKeyListener;
++		
++		oMenu.unsubscribe(_SHOW, oMenuItem._createKeyListener, keyData);
++		
++	},
++
++
++    /**
++    * @method configKeyListener
++    * @description Event handler for when the "keylistener" 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.
++    */
++    configKeyListener: function (p_sType, p_aArgs) {
++
++		var oKeyData = p_aArgs[0],
++			oMenuItem = this,
++			oMenu = oMenuItem.parent;
++
++		if (oMenuItem._keyData) {
++
++			//	Unsubscribe from the "show" event in case the keylistener 
++			//	config was changed before the Menu was ever made visible.
++
++			oMenu.unsubscribe(_SHOW, 
++					oMenuItem._createKeyListener, oMenuItem._keyData);
++
++			oMenuItem._keyData = null;					
++					
++		}
++
++
++		//	Tear down for the previous value of the "keylistener" property
++
++		if (oMenuItem._keyListener) {
++
++			oMenu.unsubscribe(_SHOW, oMenuItem._keyListener.enable);
++			oMenu.unsubscribe(_HIDE, oMenuItem._keyListener.disable);
++
++			oMenuItem._keyListener.disable();
++			oMenuItem._keyListener = null;
++
++		}
++
++
++    	if (oKeyData) {
++	
++			oMenuItem._keyData = oKeyData;
++
++			//	Defer the creation of the KeyListener instance until the 
++			//	parent Menu is visible.  This is necessary since the 
++			//	KeyListener instance needs to be bound to the document the 
++			//	Menu has been rendered into.  Deferring creation of the 
++			//	KeyListener instance also improves performance.
++
++			oMenu.subscribe(_SHOW, oMenuItem._createKeyListener, 
++				oKeyData, oMenuItem);
++		}
++    
++    },
++
++
++    // 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(
++            TEXT_CONFIG.key, 
++            { 
++                handler: this.configText, 
++                value: TEXT_CONFIG.value, 
++                validator: TEXT_CONFIG.validator, 
++                suppressEvent: TEXT_CONFIG.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(
++            HELP_TEXT_CONFIG.key,
++            {
++                handler: this.configHelpText, 
++                supercedes: HELP_TEXT_CONFIG.supercedes,
++                suppressEvent: HELP_TEXT_CONFIG.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(
++            URL_CONFIG.key, 
++            {
++                handler: this.configURL, 
++                value: URL_CONFIG.value, 
++                suppressEvent: URL_CONFIG.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(
++            TARGET_CONFIG.key, 
++            {
++                handler: this.configTarget, 
++                suppressEvent: TARGET_CONFIG.suppressEvent
++            }
++        );
++
++
++        /**
++        * @config emphasis
++        * @description Boolean indicating if the text of the menu item will be 
++        * rendered with emphasis.
++        * @deprecated Use the "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(
++            EMPHASIS_CONFIG.key, 
++            { 
++                handler: this.configEmphasis, 
++                value: EMPHASIS_CONFIG.value, 
++                validator: EMPHASIS_CONFIG.validator, 
++                suppressEvent: EMPHASIS_CONFIG.suppressEvent,
++                supercedes: EMPHASIS_CONFIG.supercedes
++            }
++        );
++
++
++        /**
++        * @config strongemphasis
++        * @description Boolean indicating if the text of the menu item will be 
++        * rendered with strong emphasis.
++        * @deprecated Use the "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(
++            STRONG_EMPHASIS_CONFIG.key,
++            {
++                handler: this.configStrongEmphasis,
++                value: STRONG_EMPHASIS_CONFIG.value,
++                validator: STRONG_EMPHASIS_CONFIG.validator,
++                suppressEvent: STRONG_EMPHASIS_CONFIG.suppressEvent,
++                supercedes: STRONG_EMPHASIS_CONFIG.supercedes
++            }
++        );
++
++
++        /**
++        * @config checked
++        * @description Boolean indicating if the menu item should be rendered 
++        * with a checkmark.
++        * @default false
++        * @type Boolean
++        */
++        oConfig.addProperty(
++            CHECKED_CONFIG.key, 
++            {
++                handler: this.configChecked, 
++                value: CHECKED_CONFIG.value, 
++                validator: CHECKED_CONFIG.validator, 
++                suppressEvent: CHECKED_CONFIG.suppressEvent,
++                supercedes: CHECKED_CONFIG.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(
++            DISABLED_CONFIG.key,
++            {
++                handler: this.configDisabled,
++                value: DISABLED_CONFIG.value,
++                validator: DISABLED_CONFIG.validator,
++                suppressEvent: DISABLED_CONFIG.suppressEvent
++            }
++        );
++
++
++        /**
++        * @config selected
++        * @description Boolean indicating if the menu item should 
++        * be highlighted.
++        * @default false
++        * @type Boolean
++        */
++        oConfig.addProperty(
++            SELECTED_CONFIG.key,
++            {
++                handler: this.configSelected,
++                value: SELECTED_CONFIG.value,
++                validator: SELECTED_CONFIG.validator,
++                suppressEvent: SELECTED_CONFIG.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(
++            SUBMENU_CONFIG.key, 
++            {
++                handler: this.configSubmenu, 
++                supercedes: SUBMENU_CONFIG.supercedes,
++                suppressEvent: SUBMENU_CONFIG.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(
++            ONCLICK_CONFIG.key, 
++            {
++                handler: this.configOnClick, 
++                suppressEvent: ONCLICK_CONFIG.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(
++            CLASS_NAME_CONFIG.key, 
++            { 
++                handler: this.configClassName,
++                value: CLASS_NAME_CONFIG.value, 
++                validator: CLASS_NAME_CONFIG.validator,
++                suppressEvent: CLASS_NAME_CONFIG.suppressEvent 
++            }
++        );
++
++
++        /**
++        * @config keylistener
++        * @description Object literal representing the key(s) that can be used 
++ 		* to trigger the MenuItem's "click" event.  Possible attributes are 
++		* shift (boolean), alt (boolean), ctrl (boolean) and keys (either an int 
++		* or an array of ints representing keycodes).
++        * @default null
++        * @type Object
++        */
++        oConfig.addProperty(
++            KEY_LISTENER_CONFIG.key, 
++            { 
++                handler: this.configKeyListener,
++                value: KEY_LISTENER_CONFIG.value, 
++                suppressEvent: KEY_LISTENER_CONFIG.suppressEvent 
++            }
++        );
++
++	},
++
++    /**
++    * @method getNextSibling
++    * @description Finds the menu item's next sibling.
++    * @return YAHOO.widget.MenuItem
++    */
++	getNextSibling: function () {
++	
++		var isUL = function (el) {
++				return (el.nodeName.toLowerCase() === "ul");
++			},
++	
++			menuitemEl = this.element,
++			next = Dom.getNextSibling(menuitemEl),
++			parent,
++			sibling,
++			list;
++		
++		if (!next) {
++			
++			parent = menuitemEl.parentNode;
++			sibling = Dom.getNextSiblingBy(parent, isUL);
++			
++			if (sibling) {
++				list = sibling;
++			}
++			else {
++				list = Dom.getFirstChildBy(parent.parentNode, isUL);
++			}
++			
++			next = Dom.getFirstChild(list);
++			
++		}
++
++		return YAHOO.widget.MenuManager.getMenuItem(next.id);
++
++	},
++
++    /**
++    * @method getNextEnabledSibling
++    * @description Finds the menu item's next enabled sibling.
++    * @return YAHOO.widget.MenuItem
++    */
++	getNextEnabledSibling: function () {
++		
++		var next = this.getNextSibling();
++		
++        return (next.cfg.getProperty(_DISABLED) || next.element.style.display == _NONE) ? next.getNextEnabledSibling() : next;
++		
++	},
++
++
++    /**
++    * @method getPreviousSibling
++    * @description Finds the menu item's previous sibling.
++    * @return {YAHOO.widget.MenuItem}
++    */	
++	getPreviousSibling: function () {
++
++		var isUL = function (el) {
++				return (el.nodeName.toLowerCase() === "ul");
++			},
++
++			menuitemEl = this.element,
++			next = Dom.getPreviousSibling(menuitemEl),
++			parent,
++			sibling,
++			list;
++		
++		if (!next) {
++			
++			parent = menuitemEl.parentNode;
++			sibling = Dom.getPreviousSiblingBy(parent, isUL);
++			
++			if (sibling) {
++				list = sibling;
++			}
++			else {
++				list = Dom.getLastChildBy(parent.parentNode, isUL);
++			}
++			
++			next = Dom.getLastChild(list);
++			
++		}
++
++		return YAHOO.widget.MenuManager.getMenuItem(next.id);
++		
++	},
++
++
++    /**
++    * @method getPreviousEnabledSibling
++    * @description Finds the menu item's previous enabled sibling.
++    * @return {YAHOO.widget.MenuItem}
++    */
++	getPreviousEnabledSibling: function () {
++		
++		var next = this.getPreviousSibling();
++		
++        return (next.cfg.getProperty(_DISABLED) || next.element.style.display == _NONE) ? next.getPreviousEnabledSibling() : next;
++		
++	},
++
++
++    /**
++    * @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;
++
++
++        function setFocus() {
++
++            try {
++
++                if (!(UA.ie && !document.hasFocus())) {
++                
++					if (oActiveItem) {
++		
++						oActiveItem.blurEvent.fire();
++		
++					}
++	
++					oAnchor.focus();
++					
++					this.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.
++            */
++
++            Lang.later(0, this, setFocus);
++
++        }
++
++    },
++
++
++    /**
++    * @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)) {
++
++            Lang.later(0, this, function () {
++
++                try {
++    
++                    this._oAnchor.blur();
++                    this.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,
++            aEventData,
++            i;
++
++
++        if (oEl) {
++
++
++            // If the item has a submenu, destroy it first
++
++            oSubmenu = this.cfg.getProperty(_SUBMENU);
++
++            if (oSubmenu) {
++            
++                oSubmenu.destroy();
++            
++            }
++
++
++            // Remove the element from the parent node
++
++            oParentNode = oEl.parentNode;
++
++            if (oParentNode) {
++
++                oParentNode.removeChild(oEl);
++
++                this.destroyEvent.fire();
++
++            }
++
++
++            // Remove CustomEvent listeners
++
++			i = EVENT_TYPES.length - 1;
++
++			do {
++
++				aEventData = EVENT_TYPES[i];
++				
++				this[aEventData[0]].unsubscribeAll();
++
++			}
++			while (i--);
++            
++            
++            this.cfg.configChangedEvent.unsubscribeAll();
++
++        }
++
++    },
++
++
++    /**
++    * @method toString
++    * @description Returns a string representing the menu item.
++    * @return {String}
++    */
++    toString: function () {
++
++        var sReturnVal = _MENUITEM,
++            sId = this.id;
++
++        if (sId) {
++    
++            sReturnVal += (_SPACE + sId);
++        
++        }
++
++        return sReturnVal;
++    
++    }
++
++};
++
++Lang.augmentProto(MenuItem, YAHOO.util.EventProvider);
++
++})();
++(function () {
++
++	var _XY = "xy",
++		_MOUSEDOWN = "mousedown",
++		_CONTEXTMENU = "ContextMenu",
++		_SPACE = " ";
++
++/**
++* 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,
++	UA = YAHOO.env.ua,
++    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": (UA.opera ? _MOUSEDOWN : "contextmenu"),
++        "CLICK": "click"
++
++    },
++    
++    
++    /**
++    * Constant representing the ContextMenu's configuration properties
++    * @property DEFAULT_CONFIG
++    * @private
++    * @final
++    * @type Object
++    */
++    TRIGGER_CONFIG = { 
++		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 (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) {
++
++    var aXY;
++
++    if (!(p_oEvent.type == _MOUSEDOWN && !p_oEvent.ctrlKey)) {
++	
++		this.contextEventTarget = Event.getTarget(p_oEvent);
++	
++		this.triggerContextMenuEvent.fire(p_oEvent);
++		
++	
++		if (!this._bCancelled) {
++
++			/*
++				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);
++
++
++			// Hide any other Menu instances that might be visible
++
++			YAHOO.widget.MenuManager.hideVisible();
++			
++	
++
++			// 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 += (_SPACE + 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(TRIGGER_CONFIG.key, 
++        {
++            handler: this.configTrigger, 
++            suppressEvent: TRIGGER_CONFIG.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 (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 () {
++
++	var Lang = YAHOO.lang,
++
++		// String constants
++	
++		_STATIC = "static",
++		_DYNAMIC_STATIC = "dynamic," + _STATIC,
++		_DISABLED = "disabled",
++		_SELECTED = "selected",
++		_AUTO_SUBMENU_DISPLAY = "autosubmenudisplay",
++		_SUBMENU = "submenu",
++		_VISIBLE = "visible",
++		_SPACE = " ",
++		_SUBMENU_TOGGLE_REGION = "submenutoggleregion",
++		_MENUBAR = "MenuBar";
++
++/**
++* 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) {
++
++	var returnVal = false;
++
++    if (Lang.isString(p_sPosition)) {
++
++        returnVal = (_DYNAMIC_STATIC.indexOf((p_sPosition.toLowerCase())) != -1);
++
++    }
++    
++    return returnVal;
++
++}
++
++
++var Event = YAHOO.util.Event,
++    MenuBar = YAHOO.widget.MenuBar,
++
++    POSITION_CONFIG =  { 
++		key: "position", 
++		value: _STATIC, 
++		validator: checkPosition, 
++		supercedes: [_VISIBLE] 
++	}, 
++
++	SUBMENU_ALIGNMENT_CONFIG =  { 
++		key: "submenualignment", 
++		value: ["tl","bl"]
++	},
++
++	AUTO_SUBMENU_DISPLAY_CONFIG =  { 
++		key: _AUTO_SUBMENU_DISPLAY, 
++		value: false, 
++		validator: Lang.isBoolean,
++		suppressEvent: true
++	},
++	
++	SUBMENU_TOGGLE_REGION_CONFIG = {
++		key: _SUBMENU_TOGGLE_REGION, 
++		value: false, 
++		validator: Lang.isBoolean
++	};
++
++
++
++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",
++
++
++/**
++* @property SUBMENU_TOGGLE_REGION_WIDTH
++* @description Width (in pixels) of the area of a MenuBarItem that, when pressed, will toggle the
++* display of the MenuBarItem's submenu.
++* @default 20
++* @final
++* @type Number
++*/
++SUBMENU_TOGGLE_REGION_WIDTH: 20,
++
++
++// 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);
++                        
++						oSubmenu = oNextItem.cfg.getProperty(_SUBMENU);
++						
++						if(oSubmenu) {
++					
++							oSubmenu.show();
++							oSubmenu.setInitialFocus();
++						
++						}
++						else {
++							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();
++                        oSubmenu.setInitialFocus();
++                    
++                    }
++    
++                }
++    
++                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],
++        bReturnVal = true,
++    	oItemEl,
++        oEvent,
++        oTarget,
++        oActiveItem,
++        oConfig,
++        oSubmenu,
++        nMenuItemX,
++        nToggleRegion;
++
++
++	var toggleSubmenuDisplay = function () {
++
++		if(oSubmenu.cfg.getProperty(_VISIBLE)) {
++		
++			oSubmenu.hide();
++		
++		}
++		else {
++		
++			oSubmenu.show();                    
++		
++		}
++	
++	};
++    
++
++    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) {
++
++			oItemEl = oItem.element;
++			nMenuItemX = YAHOO.util.Dom.getX(oItemEl);
++			nToggleRegion = nMenuItemX + (oItemEl.offsetWidth - this.SUBMENU_TOGGLE_REGION_WIDTH);
++
++			if (oConfig.getProperty(_SUBMENU_TOGGLE_REGION)) {
++
++				if (Event.getPageX(oEvent) > nToggleRegion) {
++
++					toggleSubmenuDisplay();
++
++					Event.preventDefault(oEvent);
++
++					/*
++						 Return false so that other click event handlers are not called when the 
++						 user clicks inside the toggle region.
++					*/
++					bReturnVal = false;
++				
++				}
++        
++        	}
++			else {
++
++				toggleSubmenuDisplay();
++            
++            }
++        
++        }
++    
++    }
++
++
++	return bReturnVal;
++
++},
++
++
++
++// Public methods
++
++/**
++* @method configSubmenuToggle
++* @description Event handler for when the "submenutoggleregion" configuration property of 
++* a MenuBar 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.
++*/
++configSubmenuToggle: function (p_sType, p_aArgs) {
++
++	var bSubmenuToggle = p_aArgs[0];
++	
++	if (bSubmenuToggle) {
++	
++		this.cfg.setProperty(_AUTO_SUBMENU_DISPLAY, false);
++	
++	}
++
++},
++
++
++/**
++* @method toString
++* @description Returns a string representing the menu bar.
++* @return {String}
++*/
++toString: function() {
++
++    var sReturnVal = _MENUBAR,
++        sId = this.id;
++
++    if(sId) {
++
++        sReturnVal += (_SPACE + 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(
++        POSITION_CONFIG.key, 
++        {
++            handler: this.configPosition, 
++            value: POSITION_CONFIG.value, 
++            validator: POSITION_CONFIG.validator,
++            supercedes: POSITION_CONFIG.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(
++        SUBMENU_ALIGNMENT_CONFIG.key, 
++        {
++            value: SUBMENU_ALIGNMENT_CONFIG.value,
++            suppressEvent: SUBMENU_ALIGNMENT_CONFIG.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(
++	   AUTO_SUBMENU_DISPLAY_CONFIG.key, 
++	   {
++	       value: AUTO_SUBMENU_DISPLAY_CONFIG.value, 
++	       validator: AUTO_SUBMENU_DISPLAY_CONFIG.validator,
++	       suppressEvent: AUTO_SUBMENU_DISPLAY_CONFIG.suppressEvent
++       } 
++    );
++
++
++    /**
++    * @config submenutoggleregion
++    * @description Boolean indicating if only a specific region of a MenuBarItem should toggle the 
++    * display of a submenu.  The default width of the region is determined by the value of the
++    * SUBMENU_TOGGLE_REGION_WIDTH property.  If set to true, the autosubmenudisplay 
++    * configuration property will be set to false, and any click event listeners will not be 
++    * called when the user clicks inside the submenu toggle region of a MenuBarItem.  If the 
++    * user clicks outside of the submenu toggle region, the MenuBarItem will maintain its 
++    * standard behavior.
++    * @default false
++    * @type Boolean
++    */
++	oConfig.addProperty(
++	   SUBMENU_TOGGLE_REGION_CONFIG.key, 
++	   {
++	       value: SUBMENU_TOGGLE_REGION_CONFIG.value, 
++	       validator: SUBMENU_TOGGLE_REGION_CONFIG.validator,
++	       handler: this.configSubmenuToggle
++       } 
++    );
++
++}
++ 
++}); // 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.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/paginator/assets/paginator-core.css b/pylons_app/public/js/yui/paginator/assets/paginator-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/paginator/assets/paginator-core.css
+@@ -0,0 +1,6 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
+diff --git a/pylons_app/public/js/yui/paginator/assets/skins/sam/paginator-skin.css b/pylons_app/public/js/yui/paginator/assets/skins/sam/paginator-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/paginator/assets/skins/sam/paginator-skin.css
+@@ -0,0 +1,78 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-pg-container {
++    display: block;
++    margin: 6px 0;
++    white-space: nowrap;
++}
++.yui-skin-sam .yui-pg-first,
++.yui-skin-sam .yui-pg-previous,
++.yui-skin-sam .yui-pg-next,
++.yui-skin-sam .yui-pg-last,
++.yui-skin-sam .yui-pg-current,
++.yui-skin-sam .yui-pg-pages,
++.yui-skin-sam .yui-pg-page {
++    display: inline-block;
++    font-family: arial,helvetica,clean,sans-serif;
++    padding: 3px 6px;
++    zoom:1;
++}
++.yui-skin-sam .yui-pg-pages {
++    padding: 0;
++}
++.yui-skin-sam .yui-pg-current {
++    padding: 3px 0;
++}
++.yui-skin-sam a.yui-pg-first:link,      .yui-skin-sam a.yui-pg-first:visited,
++.yui-skin-sam a.yui-pg-first:active,    .yui-skin-sam a.yui-pg-first:hover,
++.yui-skin-sam a.yui-pg-previous:link,   .yui-skin-sam a.yui-pg-previous:visited,
++.yui-skin-sam a.yui-pg-previous:active, .yui-skin-sam a.yui-pg-previous:hover,
++.yui-skin-sam a.yui-pg-next:link,       .yui-skin-sam a.yui-pg-next:visited,
++.yui-skin-sam a.yui-pg-next:active,     .yui-skin-sam a.yui-pg-next:hover,
++.yui-skin-sam a.yui-pg-last:link,       .yui-skin-sam a.yui-pg-last:visited,
++.yui-skin-sam a.yui-pg-last:active,     .yui-skin-sam a.yui-pg-last:hover,
++.yui-skin-sam a.yui-pg-page:link,       .yui-skin-sam a.yui-pg-page:visited,
++.yui-skin-sam a.yui-pg-page:active,     .yui-skin-sam a.yui-pg-page:hover {
++    color: #06c;
++    text-decoration: underline;
++    outline: 0;
++}
++.yui-skin-sam span.yui-pg-first,
++.yui-skin-sam span.yui-pg-previous,
++.yui-skin-sam span.yui-pg-next,
++.yui-skin-sam span.yui-pg-last {
++    color: #a6a6a6;
++}
++.yui-skin-sam .yui-pg-page {
++    background-color: #fff;
++    border: 1px solid #CBCBCB;
++    padding: 2px 6px;
++    text-decoration: none;
++}
++.yui-skin-sam .yui-pg-current-page {
++    background-color: transparent;
++    border: none;
++    font-weight: bold;
++    padding: 3px 6px;
++}
++.yui-skin-sam .yui-pg-page {
++    margin-left: 1px;
++    margin-right: 1px;
++}
++.yui-skin-sam .yui-pg-first,
++.yui-skin-sam .yui-pg-previous {
++    padding-left: 0;
++}
++.yui-skin-sam .yui-pg-next,
++.yui-skin-sam .yui-pg-last {
++    padding-right: 0;
++}
++.yui-skin-sam .yui-pg-current,
++.yui-skin-sam .yui-pg-rpp-options {
++    margin-left: 1em;
++    margin-right: 1em;
++}
+diff --git a/pylons_app/public/js/yui/paginator/assets/skins/sam/paginator.css b/pylons_app/public/js/yui/paginator/assets/skins/sam/paginator.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/paginator/assets/skins/sam/paginator.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-pg-container{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous,.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-pages,.yui-skin-sam .yui-pg-page{display:inline-block;font-family:arial,helvetica,clean,sans-serif;padding:3px 6px;zoom:1;}.yui-skin-sam .yui-pg-pages{padding:0;}.yui-skin-sam .yui-pg-current{padding:3px 0;}.yui-skin-sam a.yui-pg-first:link,.yui-skin-sam a.yui-pg-first:visited,.yui-skin-sam a.yui-pg-first:active,.yui-skin-sam a.yui-pg-first:hover,.yui-skin-sam a.yui-pg-previous:link,.yui-skin-sam a.yui-pg-previous:visited,.yui-skin-sam a.yui-pg-previous:active,.yui-skin-sam a.yui-pg-previous:hover,.yui-skin-sam a.yui-pg-next:link,.yui-skin-sam a.yui-pg-next:visited,.yui-skin-sam a.yui-pg-next:active,.yui-skin-sam a.yui-pg-next:hover,.yui-skin-sam a.yui-pg-last:link,.yui-skin-sam a.yui-pg-last:visited,.yui-skin-sam a.yui-pg-last:active,.yui-skin-sam a.yui-pg-last:hover,.yui-skin-sam a.yui-pg-page:link,.yui-skin-sam a.yui-pg-page:visited,.yui-skin-sam a.yui-pg-page:active,.yui-skin-sam a.yui-pg-page:hover{color:#06c;text-decoration:underline;outline:0;}.yui-skin-sam span.yui-pg-first,.yui-skin-sam span.yui-pg-previous,.yui-skin-sam span.yui-pg-next,.yui-skin-sam span.yui-pg-last{color:#a6a6a6;}.yui-skin-sam .yui-pg-page{background-color:#fff;border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;}.yui-skin-sam .yui-pg-current-page{background-color:transparent;border:none;font-weight:bold;padding:3px 6px;}.yui-skin-sam .yui-pg-page{margin-left:1px;margin-right:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{padding-left:0;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{padding-right:0;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-left:1em;margin-right:1em;}
+diff --git a/pylons_app/public/js/yui/paginator/paginator-debug.js b/pylons_app/public/js/yui/paginator/paginator-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/paginator/paginator-debug.js
+@@ -0,0 +1,2393 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++/**
++ * The Paginator widget provides a set of controls to navigate through paged
++ * data.
++ *
++ * @module paginator
++ * @uses YAHOO.util.EventProvider
++ * @uses YAHOO.util.AttributeProvider
++ */
++
++var Dom        = YAHOO.util.Dom,
++    lang       = YAHOO.lang,
++    isObject   = lang.isObject,
++    isFunction = lang.isFunction,
++    isArray    = lang.isArray,
++    isString   = lang.isString;
++
++/**
++ * Instantiate a Paginator, passing a configuration object to the contructor.
++ * The configuration object should contain the following properties:
++ * <ul>
++ *   <li>rowsPerPage : <em>n</em> (int)</li>
++ *   <li>totalRecords : <em>n</em> (int or Paginator.VALUE_UNLIMITED)</li>
++ *   <li>containers : <em>id | el | arr</em> (HTMLElement reference, its id, or an array of either)</li>
++ * </ul>
++ *
++ * @namespace YAHOO.widget
++ * @class Paginator
++ * @constructor
++ * @param config {Object} Object literal to set instance and ui component
++ * configuration.
++ */
++function Paginator(config) {
++    var UNLIMITED = Paginator.VALUE_UNLIMITED,
++        attrib, initialPage, records, perPage, startIndex;
++
++    config = isObject(config) ? config : {};
++
++    this.initConfig();
++
++    this.initEvents();
++
++    // Set the basic config keys first
++    this.set('rowsPerPage',config.rowsPerPage,true);
++    if (Paginator.isNumeric(config.totalRecords)) {
++        this.set('totalRecords',config.totalRecords,true);
++    }
++    
++    this.initUIComponents();
++
++    // Update the other config values
++    for (attrib in config) {
++        if (config.hasOwnProperty(attrib)) {
++            this.set(attrib,config[attrib],true);
++        }
++    }
++
++    // Calculate the initial record offset
++    initialPage = this.get('initialPage');
++    records     = this.get('totalRecords');
++    perPage     = this.get('rowsPerPage');
++    if (initialPage > 1 && perPage !== UNLIMITED) {
++        startIndex = (initialPage - 1) * perPage;
++        if (records === UNLIMITED || startIndex < records) {
++            this.set('recordOffset',startIndex,true);
++        }
++    }
++}
++
++
++// Static members
++lang.augmentObject(Paginator, {
++    /**
++     * Incrementing index used to give instances unique ids.
++     * @static
++     * @property Paginator.id
++     * @type number
++     * @private
++     */
++    id : 0,
++
++    /**
++     * Base of id strings used for ui components.
++     * @static
++     * @property Paginator.ID_BASE
++     * @type string
++     * @private
++     */
++    ID_BASE : 'yui-pg',
++
++    /**
++     * Used to identify unset, optional configurations, or used explicitly in
++     * the case of totalRecords to indicate unlimited pagination.
++     * @static
++     * @property Paginator.VALUE_UNLIMITED
++     * @type number
++     * @final
++     */
++    VALUE_UNLIMITED : -1,
++
++    /**
++     * Default template used by Paginator instances.  Update this if you want
++     * all new Paginators to use a different default template.
++     * @static
++     * @property Paginator.TEMPLATE_DEFAULT
++     * @type string
++     */
++    TEMPLATE_DEFAULT : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",
++
++    /**
++     * Common alternate pagination format, including page links, links for
++     * previous, next, first and last pages as well as a rows-per-page
++     * dropdown.  Offered as a convenience.
++     * @static
++     * @property Paginator.TEMPLATE_ROWS_PER_PAGE
++     * @type string
++     */
++    TEMPLATE_ROWS_PER_PAGE : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",
++
++    /**
++     * Storage object for UI Components
++     * @static
++     * @property Paginator.ui
++     */
++    ui : {},
++
++    /**
++     * Similar to YAHOO.lang.isNumber, but allows numeric strings.  This is
++     * is used for attribute validation in conjunction with getters that return
++     * numbers.
++     *
++     * @method Paginator.isNumeric
++     * @param v {Number|String} value to be checked for number or numeric string
++     * @returns {Boolean} true if the input is coercable into a finite number
++     * @static
++     */
++    isNumeric : function (v) {
++        return isFinite(+v);
++    },
++
++    /**
++     * Return a number or null from input
++     *
++     * @method Paginator.toNumber
++     * @param n {Number|String} a number or numeric string
++     * @return Number
++     * @static
++     */
++    toNumber : function (n) {
++        return isFinite(+n) ? +n : null;
++    }
++
++},true);
++
++
++// Instance members and methods
++Paginator.prototype = {
++
++    // Instance members
++
++    /**
++     * Array of nodes in which to render pagination controls.  This is set via
++     * the &quot;containers&quot; attribute.
++     * @property _containers
++     * @type Array(HTMLElement)
++     * @private
++     */
++    _containers : [],
++
++    /**
++     * Flag used to indicate multiple attributes are being updated via setState
++     * @property _batch
++     * @type boolean
++     * @protected
++     */
++    _batch : false,
++
++    /**
++     * Used by setState to indicate when a page change has occurred
++     * @property _pageChanged
++     * @type boolean
++     * @protected
++     */
++    _pageChanged : false,
++
++    /**
++     * Temporary state cache used by setState to keep track of the previous
++     * state for eventual pageChange event firing
++     * @property _state
++     * @type Object
++     * @protected
++     */
++    _state : null,
++
++
++    // Instance methods
++
++    /**
++     * Initialize the Paginator's attributes (see YAHOO.util.Element class
++     * AttributeProvider).
++     * @method initConfig
++     * @private
++     */
++    initConfig : function () {
++
++        var UNLIMITED = Paginator.VALUE_UNLIMITED;
++
++        /**
++         * REQUIRED. Number of records constituting a &quot;page&quot;
++         * @attribute rowsPerPage
++         * @type integer
++         */
++        this.setAttributeConfig('rowsPerPage', {
++            value     : 0,
++            validator : Paginator.isNumeric,
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * REQUIRED. Node references or ids of nodes in which to render the
++         * pagination controls.
++         * @attribute containers
++         * @type {string|HTMLElement|Array(string|HTMLElement)}
++         */
++        this.setAttributeConfig('containers', {
++            value     : null,
++            validator : function (val) {
++                if (!isArray(val)) {
++                    val = [val];
++                }
++                for (var i = 0, len = val.length; i < len; ++i) {
++                    if (isString(val[i]) || 
++                        (isObject(val[i]) && val[i].nodeType === 1)) {
++                        continue;
++                    }
++                    return false;
++                }
++                return true;
++            },
++            method : function (val) {
++                val = Dom.get(val);
++                if (!isArray(val)) {
++                    val = [val];
++                }
++                this._containers = val;
++            }
++        });
++
++        /**
++         * Total number of records to paginate through
++         * @attribute totalRecords
++         * @type integer
++         * @default 0
++         */
++        this.setAttributeConfig('totalRecords', {
++            value     : 0,
++            validator : Paginator.isNumeric,
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * Zero based index of the record considered first on the current page.
++         * For page based interactions, don't modify this attribute directly;
++         * use setPage(n).
++         * @attribute recordOffset
++         * @type integer
++         * @default 0
++         */
++        this.setAttributeConfig('recordOffset', {
++            value     : 0,
++            validator : function (val) {
++                var total = this.get('totalRecords');
++                if (Paginator.isNumeric(val)) {
++                    val = +val;
++                    return total === UNLIMITED || total > val ||
++                           (total === 0 && val === 0);
++                }
++
++                return false;
++            },
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * Page to display on initial paint
++         * @attribute initialPage
++         * @type integer
++         * @default 1
++         */
++        this.setAttributeConfig('initialPage', {
++            value     : 1,
++            validator : Paginator.isNumeric,
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * Template used to render controls.  The string will be used as
++         * innerHTML on all specified container nodes.  Bracketed keys
++         * (e.g. {pageLinks}) in the string will be replaced with an instance
++         * of the so named ui component.
++         * @see Paginator.TEMPLATE_DEFAULT
++         * @see Paginator.TEMPLATE_ROWS_PER_PAGE
++         * @attribute template
++         * @type string
++         */
++        this.setAttributeConfig('template', {
++            value : Paginator.TEMPLATE_DEFAULT,
++            validator : isString
++        });
++
++        /**
++         * Class assigned to the element(s) containing pagination controls.
++         * @attribute containerClass
++         * @type string
++         * @default 'yui-pg-container'
++         */
++        this.setAttributeConfig('containerClass', {
++            value : 'yui-pg-container',
++            validator : isString
++        });
++
++        /**
++         * Display pagination controls even when there is only one page.  Set
++         * to false to forgo rendering and/or hide the containers when there
++         * is only one page of data.  Note if you are using the rowsPerPage
++         * dropdown ui component, visibility will be maintained as long as the
++         * number of records exceeds the smallest page size.
++         * @attribute alwaysVisible
++         * @type boolean
++         * @default true
++         */
++        this.setAttributeConfig('alwaysVisible', {
++            value : true,
++            validator : lang.isBoolean
++        });
++
++        /**
++         * Update the UI immediately upon interaction.  If false, changeRequest
++         * subscribers or other external code will need to explicitly set the
++         * new values in the paginator to trigger repaint.
++         * @attribute updateOnChange
++         * @type boolean
++         * @default false
++         * @deprecated use changeRequest listener that calls setState
++         */
++        this.setAttributeConfig('updateOnChange', {
++            value     : false,
++            validator : lang.isBoolean
++        });
++
++
++
++        // Read only attributes
++
++        /**
++         * Unique id assigned to this instance
++         * @attribute id
++         * @type integer
++         * @final
++         */
++        this.setAttributeConfig('id', {
++            value    : Paginator.id++,
++            readOnly : true
++        });
++
++        /**
++         * Indicator of whether the DOM nodes have been initially created
++         * @attribute rendered
++         * @type boolean
++         * @final
++         */
++        this.setAttributeConfig('rendered', {
++            value    : false,
++            readOnly : true
++        });
++
++    },
++
++    /**
++     * Initialize registered ui components onto this instance.
++     * @method initUIComponents
++     * @private
++     */
++    initUIComponents : function () {
++        var ui = Paginator.ui,
++            name,UIComp;
++        for (name in ui) {
++            if (ui.hasOwnProperty(name)) {
++                UIComp = ui[name];
++                if (isObject(UIComp) && isFunction(UIComp.init)) {
++                    UIComp.init(this);
++                }
++            }
++        }
++    },
++
++    /**
++     * Initialize this instance's CustomEvents.
++     * @method initEvents
++     * @private
++     */
++    initEvents : function () {
++        /**
++         * Event fired when the Paginator is initially rendered
++         * @event render
++         */
++        this.createEvent('render');
++
++        /**
++         * Event fired when the Paginator is initially rendered
++         * @event rendered
++         * @deprecated use render event
++         */
++        this.createEvent('rendered'); // backward compatibility
++
++        /**
++         * Event fired when a change in pagination values is requested,
++         * either by interacting with the various ui components or via the
++         * setStartIndex(n) etc APIs.
++         * Subscribers will receive the proposed state as the first parameter.
++         * The proposed state object will contain the following keys:
++         * <ul>
++         *   <li>paginator - the Paginator instance</li>
++         *   <li>page</li>
++         *   <li>totalRecords</li>
++         *   <li>recordOffset - index of the first record on the new page</li>
++         *   <li>rowsPerPage</li>
++         *   <li>records - array containing [start index, end index] for the records on the new page</li>
++         *   <li>before - object literal with all these keys for the current state</li>
++         * </ul>
++         * @event changeRequest
++         */
++        this.createEvent('changeRequest');
++
++        /**
++         * Event fired when attribute changes have resulted in the calculated
++         * current page changing.
++         * @event pageChange
++         */
++        this.createEvent('pageChange');
++
++        /**
++         * Event that fires before the destroy event.
++         * @event beforeDestroy
++         */
++        this.createEvent('beforeDestroy');
++
++        /**
++         * Event used to trigger cleanup of ui components
++         * @event destroy
++         */
++        this.createEvent('destroy');
++
++        this._selfSubscribe();
++    },
++
++    /**
++     * Subscribes to instance attribute change events to automate certain
++     * behaviors.
++     * @method _selfSubscribe
++     * @protected
++     */
++    _selfSubscribe : function () {
++        // Listen for changes to totalRecords and alwaysVisible 
++        this.subscribe('totalRecordsChange',this.updateVisibility,this,true);
++        this.subscribe('alwaysVisibleChange',this.updateVisibility,this,true);
++
++        // Fire the pageChange event when appropriate
++        this.subscribe('totalRecordsChange',this._handleStateChange,this,true);
++        this.subscribe('recordOffsetChange',this._handleStateChange,this,true);
++        this.subscribe('rowsPerPageChange',this._handleStateChange,this,true);
++
++        // Update recordOffset when totalRecords is reduced below
++        this.subscribe('totalRecordsChange',this._syncRecordOffset,this,true);
++    },
++
++    /**
++     * Sets recordOffset to the starting index of the previous page when
++     * totalRecords is reduced below the current recordOffset.
++     * @method _syncRecordOffset
++     * @param e {Event} totalRecordsChange event
++     * @protected
++     */
++    _syncRecordOffset : function (e) {
++        var v = e.newValue,rpp,state;
++        if (e.prevValue !== v) {
++            if (v !== Paginator.VALUE_UNLIMITED) {
++                rpp = this.get('rowsPerPage');
++
++                if (rpp && this.get('recordOffset') >= v) {
++                    state = this.getState({
++                        totalRecords : e.prevValue,
++                        recordOffset : this.get('recordOffset')
++                    });
++
++                    this.set('recordOffset', state.before.recordOffset);
++                    this._firePageChange(state);
++                }
++            }
++        }
++    },
++
++    /**
++     * Fires the pageChange event when the state attributes have changed in
++     * such a way as to locate the current recordOffset on a new page.
++     * @method _handleStateChange
++     * @param e {Event} the attribute change event
++     * @protected
++     */
++    _handleStateChange : function (e) {
++        if (e.prevValue !== e.newValue) {
++            var change = this._state || {},
++                state;
++
++            change[e.type.replace(/Change$/,'')] = e.prevValue;
++            state = this.getState(change);
++
++            if (state.page !== state.before.page) {
++                if (this._batch) {
++                    this._pageChanged = true;
++                } else {
++                    this._firePageChange(state);
++                }
++            }
++        }
++    },
++
++    /**
++     * Fires a pageChange event in the form of a standard attribute change
++     * event with additional properties prevState and newState.
++     * @method _firePageChange
++     * @param state {Object} the result of getState(oldState)
++     * @protected
++     */
++    _firePageChange : function (state) {
++        if (isObject(state)) {
++            var current = state.before;
++            delete state.before;
++            this.fireEvent('pageChange',{
++                type      : 'pageChange',
++                prevValue : state.page,
++                newValue  : current.page,
++                prevState : state,
++                newState  : current
++            });
++        }
++    },
++
++    /**
++     * Render the pagination controls per the format attribute into the
++     * specified container nodes.
++     * @method render
++     * @return the Paginator instance
++     * @chainable
++     */
++    render : function () {
++        if (this.get('rendered')) {
++            return this;
++        }
++
++        var template = this.get('template'),
++            state    = this.getState(),
++            // ex. yui-pg0-1 (first paginator, second container)
++            id_base  = Paginator.ID_BASE + this.get('id') + '-',
++            i, len;
++
++        // Assemble the containers, keeping them hidden
++        for (i = 0, len = this._containers.length; i < len; ++i) {
++            this._renderTemplate(this._containers[i],template,id_base+i,true);
++        }
++
++        // Show the containers if appropriate
++        this.updateVisibility();
++
++        // Set render attribute manually to support its readOnly contract
++        if (this._containers.length) {
++            this.setAttributeConfig('rendered', { value: true });
++
++            this.fireEvent('render', state);
++            // For backward compatibility
++            this.fireEvent('rendered', state);
++        }
++
++        return this;
++    },
++
++    /**
++     * Creates the individual ui components and renders them into a container.
++     *
++     * @method _renderTemplate
++     * @param container {HTMLElement} where to add the ui components
++     * @param template {String} the template to use as a guide for rendering
++     * @param id_base {String} id base for the container's ui components
++     * @param hide {Boolean} leave the container hidden after assembly
++     * @protected
++     */
++    _renderTemplate : function (container, template, id_base, hide) {
++        var containerClass = this.get('containerClass'),
++            markers, i, len;
++
++        if (!container) {
++            return;
++        }
++
++        // Hide the container while its contents are rendered
++        Dom.setStyle(container,'display','none');
++
++        Dom.addClass(container, containerClass);
++
++        // Place the template innerHTML, adding marker spans to the template
++        // html to indicate drop zones for ui components
++        container.innerHTML = template.replace(/\{([a-z0-9_ \-]+)\}/gi,
++            '<span class="yui-pg-ui yui-pg-ui-$1"></span>');
++
++        // Replace each marker with the ui component's render() output
++        markers = Dom.getElementsByClassName('yui-pg-ui','span',container);
++
++        for (i = 0, len = markers.length; i < len; ++i) {
++            this.renderUIComponent(markers[i], id_base);
++        }
++
++        if (!hide) {
++            // Show the container allowing page reflow
++            Dom.setStyle(container,'display','');
++        }
++    },
++
++    /**
++     * Replaces a marker node with a rendered UI component, determined by the
++     * yui-pg-ui-(UI component class name) in the marker's className. e.g.
++     * yui-pg-ui-PageLinks => new YAHOO.widget.Paginator.ui.PageLinks(this)
++     *
++     * @method renderUIComponent
++     * @param marker {HTMLElement} the marker node to replace
++     * @param id_base {String} string base the component's generated id
++     */
++    renderUIComponent : function (marker, id_base) {
++        var par    = marker.parentNode,
++            name   = /yui-pg-ui-(\w+)/.exec(marker.className),
++            UIComp = name && Paginator.ui[name[1]],
++            comp;
++
++        if (isFunction(UIComp)) {
++            comp = new UIComp(this);
++            if (isFunction(comp.render)) {
++                par.replaceChild(comp.render(id_base),marker);
++            }
++        }
++    },
++
++    /**
++     * Removes controls from the page and unhooks events.
++     * @method destroy
++     */
++    destroy : function () {
++        this.fireEvent('beforeDestroy');
++        this.fireEvent('destroy');
++
++        this.setAttributeConfig('rendered',{value:false});
++        this.unsubscribeAll();
++    },
++
++    /**
++     * Hides the containers if there is only one page of data and attribute
++     * alwaysVisible is false.  Conversely, it displays the containers if either
++     * there is more than one page worth of data or alwaysVisible is turned on.
++     * @method updateVisibility
++     */
++    updateVisibility : function (e) {
++        var alwaysVisible = this.get('alwaysVisible'),
++            totalRecords,visible,rpp,rppOptions,i,len;
++
++        if (!e || e.type === 'alwaysVisibleChange' || !alwaysVisible) {
++            totalRecords = this.get('totalRecords');
++            visible      = true;
++            rpp          = this.get('rowsPerPage');
++            rppOptions   = this.get('rowsPerPageOptions');
++
++            if (isArray(rppOptions)) {
++                for (i = 0, len = rppOptions.length; i < len; ++i) {
++                    rpp = Math.min(rpp,rppOptions[i]);
++                }
++            }
++
++            if (totalRecords !== Paginator.VALUE_UNLIMITED &&
++                totalRecords <= rpp) {
++                visible = false;
++            }
++
++            visible = visible || alwaysVisible;
++
++            for (i = 0, len = this._containers.length; i < len; ++i) {
++                Dom.setStyle(this._containers[i],'display',
++                    visible ? '' : 'none');
++            }
++        }
++    },
++
++
++
++
++    /**
++     * Get the configured container nodes
++     * @method getContainerNodes
++     * @return {Array} array of HTMLElement nodes
++     */
++    getContainerNodes : function () {
++        return this._containers;
++    },
++
++    /**
++     * Get the total number of pages in the data set according to the current
++     * rowsPerPage and totalRecords values.  If totalRecords is not set, or
++     * set to YAHOO.widget.Paginator.VALUE_UNLIMITED, returns
++     * YAHOO.widget.Paginator.VALUE_UNLIMITED.
++     * @method getTotalPages
++     * @return {number}
++     */
++    getTotalPages : function () {
++        var records = this.get('totalRecords'),
++            perPage = this.get('rowsPerPage');
++
++        // rowsPerPage not set.  Can't calculate
++        if (!perPage) {
++            return null;
++        }
++
++        if (records === Paginator.VALUE_UNLIMITED) {
++            return Paginator.VALUE_UNLIMITED;
++        }
++
++        return Math.ceil(records/perPage);
++    },
++
++    /**
++     * Does the requested page have any records?
++     * @method hasPage
++     * @param page {number} the page in question
++     * @return {boolean}
++     */
++    hasPage : function (page) {
++        if (!lang.isNumber(page) || page < 1) {
++            return false;
++        }
++
++        var totalPages = this.getTotalPages();
++
++        return (totalPages === Paginator.VALUE_UNLIMITED || totalPages >= page);
++    },
++
++    /**
++     * Get the page number corresponding to the current record offset.
++     * @method getCurrentPage
++     * @return {number}
++     */
++    getCurrentPage : function () {
++        var perPage = this.get('rowsPerPage');
++        if (!perPage || !this.get('totalRecords')) {
++            return 0;
++        }
++        return Math.floor(this.get('recordOffset') / perPage) + 1;
++    },
++
++    /**
++     * Are there records on the next page?
++     * @method hasNextPage
++     * @return {boolean}
++     */
++    hasNextPage : function () {
++        var currentPage = this.getCurrentPage(),
++            totalPages  = this.getTotalPages();
++
++        return currentPage && (totalPages === Paginator.VALUE_UNLIMITED || currentPage < totalPages);
++    },
++
++    /**
++     * Get the page number of the next page, or null if the current page is the
++     * last page.
++     * @method getNextPage
++     * @return {number}
++     */
++    getNextPage : function () {
++        return this.hasNextPage() ? this.getCurrentPage() + 1 : null;
++    },
++
++    /**
++     * Is there a page before the current page?
++     * @method hasPreviousPage
++     * @return {boolean}
++     */
++    hasPreviousPage : function () {
++        return (this.getCurrentPage() > 1);
++    },
++
++    /**
++     * Get the page number of the previous page, or null if the current page
++     * is the first page.
++     * @method getPreviousPage
++     * @return {number}
++     */
++    getPreviousPage : function () {
++        return (this.hasPreviousPage() ? this.getCurrentPage() - 1 : 1);
++    },
++
++    /**
++     * Get the start and end record indexes of the specified page.
++     * @method getPageRecords
++     * @param page {number} (optional) The page (current page if not specified)
++     * @return {Array} [start_index, end_index]
++     */
++    getPageRecords : function (page) {
++        if (!lang.isNumber(page)) {
++            page = this.getCurrentPage();
++        }
++
++        var perPage = this.get('rowsPerPage'),
++            records = this.get('totalRecords'),
++            start, end;
++
++        if (!page || !perPage) {
++            return null;
++        }
++
++        start = (page - 1) * perPage;
++        if (records !== Paginator.VALUE_UNLIMITED) {
++            if (start >= records) {
++                return null;
++            }
++            end = Math.min(start + perPage, records) - 1;
++        } else {
++            end = start + perPage - 1;
++        }
++
++        return [start,end];
++    },
++
++    /**
++     * Set the current page to the provided page number if possible.
++     * @method setPage
++     * @param newPage {number} the new page number
++     * @param silent {boolean} whether to forcibly avoid firing the
++     * changeRequest event
++     */
++    setPage : function (page,silent) {
++        if (this.hasPage(page) && page !== this.getCurrentPage()) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('recordOffset', (page - 1) * this.get('rowsPerPage'));
++            } else {
++                this.fireEvent('changeRequest',this.getState({'page':page}));
++            }
++        }
++    },
++
++    /**
++     * Get the number of rows per page.
++     * @method getRowsPerPage
++     * @return {number} the current setting of the rowsPerPage attribute
++     */
++    getRowsPerPage : function () {
++        return this.get('rowsPerPage');
++    },
++
++    /**
++     * Set the number of rows per page.
++     * @method setRowsPerPage
++     * @param rpp {number} the new number of rows per page
++     * @param silent {boolean} whether to forcibly avoid firing the
++     * changeRequest event
++     */
++    setRowsPerPage : function (rpp,silent) {
++        if (Paginator.isNumeric(rpp) && +rpp > 0 &&
++            +rpp !== this.get('rowsPerPage')) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('rowsPerPage',rpp);
++            } else {
++                this.fireEvent('changeRequest',
++                    this.getState({'rowsPerPage':+rpp}));
++            }
++        }
++    },
++
++    /**
++     * Get the total number of records.
++     * @method getTotalRecords
++     * @return {number} the current setting of totalRecords attribute
++     */
++    getTotalRecords : function () {
++        return this.get('totalRecords');
++    },
++
++    /**
++     * Set the total number of records.
++     * @method setTotalRecords
++     * @param total {number} the new total number of records
++     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
++     */
++    setTotalRecords : function (total,silent) {
++        if (Paginator.isNumeric(total) && +total >= 0 &&
++            +total !== this.get('totalRecords')) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('totalRecords',total);
++            } else {
++                this.fireEvent('changeRequest',
++                    this.getState({'totalRecords':+total}));
++            }
++        }
++    },
++
++    /**
++     * Get the index of the first record on the current page
++     * @method getStartIndex
++     * @return {number} the index of the first record on the current page
++     */
++    getStartIndex : function () {
++        return this.get('recordOffset');
++    },
++
++    /**
++     * Move the record offset to a new starting index.  This will likely cause
++     * the calculated current page to change.  You should probably use setPage.
++     * @method setStartIndex
++     * @param offset {number} the new record offset
++     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
++     */
++    setStartIndex : function (offset,silent) {
++        if (Paginator.isNumeric(offset) && +offset >= 0 &&
++            +offset !== this.get('recordOffset')) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('recordOffset',offset);
++            } else {
++                this.fireEvent('changeRequest',
++                    this.getState({'recordOffset':+offset}));
++            }
++        }
++    },
++
++    /**
++     * Get an object literal describing the current state of the paginator.  If
++     * an object literal of proposed values is passed, the proposed state will
++     * be returned as an object literal with the following keys:
++     * <ul>
++     * <li>paginator - instance of the Paginator</li>
++     * <li>page - number</li>
++     * <li>totalRecords - number</li>
++     * <li>recordOffset - number</li>
++     * <li>rowsPerPage - number</li>
++     * <li>records - [ start_index, end_index ]</li>
++     * <li>before - (OPTIONAL) { state object literal for current state }</li>
++     * </ul>
++     * @method getState
++     * @return {object}
++     * @param changes {object} OPTIONAL object literal with proposed values
++     * Supported change keys include:
++     * <ul>
++     * <li>rowsPerPage</li>
++     * <li>totalRecords</li>
++     * <li>recordOffset OR</li>
++     * <li>page</li>
++     * </ul>
++     */
++    getState : function (changes) {
++        var UNLIMITED = Paginator.VALUE_UNLIMITED,
++            M = Math, max = M.max, ceil = M.ceil,
++            currentState, state, offset;
++
++        function normalizeOffset(offset,total,rpp) {
++            if (offset <= 0 || total === 0) {
++                return 0;
++            }
++            if (total === UNLIMITED || total > offset) {
++                return offset - (offset % rpp);
++            }
++            return total - (total % rpp || rpp);
++        }
++
++        currentState = {
++            paginator    : this,
++            totalRecords : this.get('totalRecords'),
++            rowsPerPage  : this.get('rowsPerPage'),
++            records      : this.getPageRecords()
++        };
++        currentState.recordOffset = normalizeOffset(
++                                        this.get('recordOffset'),
++                                        currentState.totalRecords,
++                                        currentState.rowsPerPage);
++        currentState.page = ceil(currentState.recordOffset /
++                                 currentState.rowsPerPage) + 1;
++
++        if (!changes) {
++            return currentState;
++        }
++
++        state = {
++            paginator    : this,
++            before       : currentState,
++
++            rowsPerPage  : changes.rowsPerPage || currentState.rowsPerPage,
++            totalRecords : (Paginator.isNumeric(changes.totalRecords) ?
++                                max(changes.totalRecords,UNLIMITED) :
++                                +currentState.totalRecords)
++        };
++
++        if (state.totalRecords === 0) {
++            state.recordOffset =
++            state.page         = 0;
++        } else {
++            offset = Paginator.isNumeric(changes.page) ?
++                        (changes.page - 1) * state.rowsPerPage :
++                        Paginator.isNumeric(changes.recordOffset) ?
++                            +changes.recordOffset :
++                            currentState.recordOffset;
++
++            state.recordOffset = normalizeOffset(offset,
++                                    state.totalRecords,
++                                    state.rowsPerPage);
++
++            state.page = ceil(state.recordOffset / state.rowsPerPage) + 1;
++        }
++
++        state.records = [ state.recordOffset,
++                          state.recordOffset + state.rowsPerPage - 1 ];
++
++        // limit upper index to totalRecords - 1
++        if (state.totalRecords !== UNLIMITED &&
++            state.recordOffset < state.totalRecords && state.records &&
++            state.records[1] > state.totalRecords - 1) {
++            state.records[1] = state.totalRecords - 1;
++        }
++
++        return state;
++    },
++
++    /**
++     * Convenience method to facilitate setting state attributes rowsPerPage,
++     * totalRecords, recordOffset in batch.  Also supports calculating
++     * recordOffset from state.page if state.recordOffset is not provided.
++     * Fires only a single pageChange event, if appropriate.
++     * This will not fire a changeRequest event.
++     * @method setState
++     * @param state {Object} Object literal of attribute:value pairs to set
++     */
++    setState : function (state) {
++        if (isObject(state)) {
++            // get flux state based on current state with before state as well
++            this._state = this.getState({});
++
++            // use just the state props from the input obj
++            state = {
++                page         : state.page,
++                rowsPerPage  : state.rowsPerPage,
++                totalRecords : state.totalRecords,
++                recordOffset : state.recordOffset
++            };
++
++            // calculate recordOffset from page if recordOffset not specified.
++            // not using lang.isNumber for support of numeric strings
++            if (state.page && state.recordOffset === undefined) {
++                state.recordOffset = (state.page - 1) *
++                    (state.rowsPerPage || this.get('rowsPerPage'));
++            }
++
++            this._batch = true;
++            this._pageChanged = false;
++
++            for (var k in state) {
++                if (state.hasOwnProperty(k) && this._configs.hasOwnProperty(k)) {
++                    this.set(k,state[k]);
++                }
++            }
++
++            this._batch = false;
++            
++            if (this._pageChanged) {
++                this._pageChanged = false;
++
++                this._firePageChange(this.getState(this._state));
++            }
++        }
++    }
++};
++
++lang.augmentProto(Paginator, YAHOO.util.AttributeProvider);
++
++YAHOO.widget.Paginator = Paginator;
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the textual report of current pagination status.
++ * E.g. "Now viewing page 1 of 13".
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class CurrentPageReport
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.CurrentPageReport = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange', this.update,this,true);
++    p.subscribe('rowsPerPageChange', this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('pageReportTemplateChange', this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    //TODO: make this work
++    p.subscribe('pageReportClassChange', this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.CurrentPageReport.init = function (p) {
++
++    /**
++     * CSS class assigned to the span containing the info.
++     * @attribute pageReportClass
++     * @default 'yui-pg-current'
++     */
++    p.setAttributeConfig('pageReportClass', {
++        value : 'yui-pg-current',
++        validator : l.isString
++    });
++
++    /**
++     * Used as innerHTML for the span.  Place holders in the form of {name}
++     * will be replaced with the so named value from the key:value map
++     * generated by the function held in the pageReportValueGenerator attribute.
++     * @attribute pageReportTemplate
++     * @default '({currentPage} of {totalPages})'
++     * @see pageReportValueGenerator attribute
++     */
++    p.setAttributeConfig('pageReportTemplate', {
++        value : '({currentPage} of {totalPages})',
++        validator : l.isString
++    });
++
++    /**
++     * Function to generate the value map used to populate the
++     * pageReportTemplate.  The function is passed the Paginator instance as a
++     * parameter.  The default function returns a map with the following keys:
++     * <ul>
++     * <li>currentPage</li>
++     * <li>totalPages</li>
++     * <li>startIndex</li>
++     * <li>endIndex</li>
++     * <li>startRecord</li>
++     * <li>endRecord</li>
++     * <li>totalRecords</li>
++     * </ul>
++     * @attribute pageReportValueGenarator
++     */
++    p.setAttributeConfig('pageReportValueGenerator', {
++        value : function (paginator) {
++            var curPage = paginator.getCurrentPage(),
++                records = paginator.getPageRecords();
++
++            return {
++                'currentPage' : records ? curPage : 0,
++                'totalPages'  : paginator.getTotalPages(),
++                'startIndex'  : records ? records[0] : 0,
++                'endIndex'    : records ? records[1] : 0,
++                'startRecord' : records ? records[0] + 1 : 0,
++                'endRecord'   : records ? records[1] + 1 : 0,
++                'totalRecords': paginator.get('totalRecords')
++            };
++        },
++        validator : l.isFunction
++    });
++};
++
++/**
++ * Replace place holders in a string with the named values found in an
++ * object literal.
++ * @static
++ * @method sprintf
++ * @param template {string} The content string containing place holders
++ * @param values {object} The key:value pairs used to replace the place holders
++ * @return {string}
++ */
++Paginator.ui.CurrentPageReport.sprintf = function (template, values) {
++    return template.replace(/\{([\w\s\-]+)\}/g, function (x,key) {
++            return (key in values) ? values[key] : '';
++        });
++};
++
++Paginator.ui.CurrentPageReport.prototype = {
++
++    /**
++     * Span node containing the formatted info
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span : null,
++
++
++    /**
++     * Generate the span containing info formatted per the pageReportTemplate
++     * attribute.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        this.span = document.createElement('span');
++        this.span.id        = id_base + '-page-report';
++        this.span.className = this.paginator.get('pageReportClass');
++        this.update();
++        
++        return this.span;
++    },
++    
++    /**
++     * Regenerate the content of the span if appropriate. Calls
++     * CurrentPageReport.sprintf with the value of the pageReportTemplate
++     * attribute and the value map returned from pageReportValueGenerator
++     * function.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        this.span.innerHTML = Paginator.ui.CurrentPageReport.sprintf(
++            this.paginator.get('pageReportTemplate'),
++            this.paginator.get('pageReportValueGenerator')(this.paginator));
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * removal.
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        this.span.parentNode.removeChild(this.span);
++        this.span = null;
++    }
++
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the page links
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class PageLinks
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.PageLinks = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('pageLinksChange',   this.rebuild,this,true);
++    p.subscribe('pageLinkClassChange', this.rebuild,this,true);
++    p.subscribe('currentPageClassChange', this.rebuild,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    //TODO: Make this work
++    p.subscribe('pageLinksContainerClassChange', this.rebuild,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.PageLinks.init = function (p) {
++
++    /**
++     * CSS class assigned to each page link/span.
++     * @attribute pageLinkClass
++     * @default 'yui-pg-page'
++     */
++    p.setAttributeConfig('pageLinkClass', {
++        value : 'yui-pg-page',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the current page span.
++     * @attribute currentPageClass
++     * @default 'yui-pg-current-page'
++     */
++    p.setAttributeConfig('currentPageClass', {
++        value : 'yui-pg-current-page',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the span containing the page links.
++     * @attribute pageLinksContainerClass
++     * @default 'yui-pg-pages'
++     */
++    p.setAttributeConfig('pageLinksContainerClass', {
++        value : 'yui-pg-pages',
++        validator : l.isString
++    });
++
++    /**
++     * Maximum number of page links to display at one time.
++     * @attribute pageLinks
++     * @default 10
++     */
++    p.setAttributeConfig('pageLinks', {
++        value : 10,
++        validator : Paginator.isNumeric
++    });
++
++    /**
++     * Function used generate the innerHTML for each page link/span.  The
++     * function receives as parameters the page number and a reference to the
++     * paginator object.
++     * @attribute pageLabelBuilder
++     * @default function (page, paginator) { return page; }
++     */
++    p.setAttributeConfig('pageLabelBuilder', {
++        value : function (page, paginator) { return page; },
++        validator : l.isFunction
++    });
++};
++
++/**
++ * Calculates start and end page numbers given a current page, attempting
++ * to keep the current page in the middle
++ * @static
++ * @method calculateRange
++ * @param {int} currentPage  The current page
++ * @param {int} totalPages   (optional) Maximum number of pages
++ * @param {int} numPages     (optional) Preferred number of pages in range
++ * @return {Array} [start_page_number, end_page_number]
++ */
++Paginator.ui.PageLinks.calculateRange = function (currentPage,totalPages,numPages) {
++    var UNLIMITED = Paginator.VALUE_UNLIMITED,
++        start, end, delta;
++
++    // Either has no pages, or unlimited pages.  Show none.
++    if (!currentPage || numPages === 0 || totalPages === 0 ||
++        (totalPages === UNLIMITED && numPages === UNLIMITED)) {
++        return [0,-1];
++    }
++
++    // Limit requested pageLinks if there are fewer totalPages
++    if (totalPages !== UNLIMITED) {
++        numPages = numPages === UNLIMITED ?
++                    totalPages :
++                    Math.min(numPages,totalPages);
++    }
++
++    // Determine start and end, trying to keep current in the middle
++    start = Math.max(1,Math.ceil(currentPage - (numPages/2)));
++    if (totalPages === UNLIMITED) {
++        end = start + numPages - 1;
++    } else {
++        end = Math.min(totalPages, start + numPages - 1);
++    }
++
++    // Adjust the start index when approaching the last page
++    delta = numPages - (end - start + 1);
++    start = Math.max(1, start - delta);
++
++    return [start,end];
++};
++
++
++Paginator.ui.PageLinks.prototype = {
++
++    /**
++     * Current page
++     * @property current
++     * @type number
++     * @private
++     */
++    current     : 0,
++
++    /**
++     * Span node containing the page links
++     * @property container
++     * @type HTMLElement
++     * @private
++     */
++    container   : null,
++
++
++    /**
++     * Generate the nodes and return the container node containing page links
++     * appropriate to the current pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p = this.paginator;
++
++        // Set up container
++        this.container = document.createElement('span');
++        this.container.id        = id_base + '-pages';
++        this.container.className = p.get('pageLinksContainerClass');
++        YAHOO.util.Event.on(this.container,'click',this.onClick,this,true);
++
++        // Call update, flagging a need to rebuild
++        this.update({newValue : null, rebuild : true});
++
++        return this.container;
++    },
++
++    /**
++     * Update the links if appropriate
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var p           = this.paginator,
++            currentPage = p.getCurrentPage();
++
++        // Replace content if there's been a change
++        if (this.current !== currentPage || !currentPage || e.rebuild) {
++            var labelBuilder = p.get('pageLabelBuilder'),
++                range        = Paginator.ui.PageLinks.calculateRange(
++                                currentPage,
++                                p.getTotalPages(),
++                                p.get('pageLinks')),
++                start        = range[0],
++                end          = range[1],
++                content      = '',
++                linkTemplate,i;
++
++            linkTemplate = '<a href="#" class="' + p.get('pageLinkClass') +
++                           '" page="';
++            for (i = start; i <= end; ++i) {
++                if (i === currentPage) {
++                    content +=
++                        '<span class="' + p.get('currentPageClass') + ' ' +
++                                          p.get('pageLinkClass') + '">' +
++                        labelBuilder(i,p) + '</span>';
++                } else {
++                    content +=
++                        linkTemplate + i + '">' + labelBuilder(i,p) + '</a>';
++                }
++            }
++
++            this.container.innerHTML = content;
++        }
++    },
++
++    /**
++     * Force a rebuild of the page links.
++     * @method rebuild
++     * @param e {CustomEvent} The calling change event
++     */
++    rebuild     : function (e) {
++        e.rebuild = true;
++        this.update(e);
++    },
++
++    /**
++     * Removes the page links container node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.container,true);
++        this.container.parentNode.removeChild(this.container);
++        this.container = null;
++    },
++
++    /**
++     * Listener for the container's onclick event.  Looks for qualifying link
++     * clicks, and pulls the page number from the link's page attribute.
++     * Sends link's page attribute to the Paginator's setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        var t = YAHOO.util.Event.getTarget(e);
++        if (t && YAHOO.util.Dom.hasClass(t,
++                        this.paginator.get('pageLinkClass'))) {
++
++            YAHOO.util.Event.stopEvent(e);
++
++            this.paginator.setPage(parseInt(t.getAttribute('page'),10));
++        }
++    }
++
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the first page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class FirstPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.FirstPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('firstPageLinkLabelChange',this.update,this,true);
++    p.subscribe('firstPageLinkClassChange',this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.FirstPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the first page link/span.
++     * @attribute firstPageLinkLabel
++     * @default '&lt;&lt; first'
++     */
++    p.setAttributeConfig('firstPageLinkLabel', {
++        value : '&lt;&lt; first',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute firstPageLinkClass
++     * @default 'yui-pg-first'
++     */
++    p.setAttributeConfig('firstPageLinkClass', {
++        value : 'yui-pg-first',
++        validator : l.isString
++    });
++};
++
++// Instance members and methods
++Paginator.ui.FirstPageLink.prototype = {
++
++    /**
++     * The currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('firstPageLinkClass'),
++            label = p.get('firstPageLinkLabel');
++
++        this.link     = document.createElement('a');
++        this.span     = document.createElement('span');
++
++        this.link.id        = id_base + '-first-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-first-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
++        return this.current;
++    },
++
++    /**
++     * Swap the link and span nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var par = this.current ? this.current.parentNode : null;
++        if (this.paginator.getCurrentPage() > 1) {
++            if (par && this.current === this.span) {
++                par.replaceChild(this.link,this.current);
++                this.current = this.link;
++            }
++        } else {
++            if (par && this.current === this.link) {
++                par.replaceChild(this.span,this.current);
++                this.current = this.span;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * removal.
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Pass new value to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(1);
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the last page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class LastPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.LastPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('lastPageLinkLabelChange',this.update,this,true);
++    p.subscribe('lastPageLinkClassChange', this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param paginator {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.LastPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the last page link/span.
++     * @attribute lastPageLinkLabel
++     * @default 'last &gt;&gt;'
++     */
++    p.setAttributeConfig('lastPageLinkLabel', {
++        value : 'last &gt;&gt;',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute lastPageLinkClass
++     * @default 'yui-pg-last'
++     */
++    p.setAttributeConfig('lastPageLinkClass', {
++        value : 'yui-pg-last',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.LastPageLink.prototype = {
++
++    /**
++     * Currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link HTMLElement node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++    /**
++     * Empty place holder node for when the last page link is inappropriate to
++     * display in any form (unlimited paging).
++     * @property na
++     * @type HTMLElement
++     * @private
++     */
++    na        : null,
++
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('lastPageLinkClass'),
++            label = p.get('lastPageLinkLabel'),
++            last  = p.getTotalPages();
++
++        this.link = document.createElement('a');
++        this.span = document.createElement('span');
++        this.na   = this.span.cloneNode(false);
++
++        this.link.id        = id_base + '-last-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-last-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.na.id = id_base + '-last-na';
++
++        switch (last) {
++            case Paginator.VALUE_UNLIMITED :
++                    this.current = this.na; break;
++            case p.getCurrentPage() :
++                    this.current = this.span; break;
++            default :
++                    this.current = this.link;
++        }
++
++        return this.current;
++    },
++
++    /**
++     * Swap the link, span, and na nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event (ignored)
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var par   = this.current ? this.current.parentNode : null,
++            after = this.link;
++
++        if (par) {
++            switch (this.paginator.getTotalPages()) {
++                case Paginator.VALUE_UNLIMITED :
++                        after = this.na; break;
++                case this.paginator.getCurrentPage() :
++                        after = this.span; break;
++            }
++
++            if (this.current !== after) {
++                par.replaceChild(after,this.current);
++                this.current = after;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Passes to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(this.paginator.getTotalPages());
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the next page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class NextPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.NextPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange', this.update,this,true);
++    p.subscribe('rowsPerPageChange', this.update,this,true);
++    p.subscribe('totalRecordsChange', this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('nextPageLinkLabelChange', this.update,this,true);
++    p.subscribe('nextPageLinkClassChange', this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.NextPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the next page link/span.
++     * @attribute nextPageLinkLabel
++     * @default 'next &gt;'
++     */
++    p.setAttributeConfig('nextPageLinkLabel', {
++        value : 'next &gt;',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute nextPageLinkClass
++     * @default 'yui-pg-next'
++     */
++    p.setAttributeConfig('nextPageLinkClass', {
++        value : 'yui-pg-next',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.NextPageLink.prototype = {
++
++    /**
++     * Currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('nextPageLinkClass'),
++            label = p.get('nextPageLinkLabel'),
++            last  = p.getTotalPages();
++
++        this.link     = document.createElement('a');
++        this.span     = document.createElement('span');
++
++        this.link.id        = id_base + '-next-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-next-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.current = p.getCurrentPage() === last ? this.span : this.link;
++
++        return this.current;
++    },
++
++    /**
++     * Swap the link and span nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var last = this.paginator.getTotalPages(),
++            par  = this.current ? this.current.parentNode : null;
++
++        if (this.paginator.getCurrentPage() !== last) {
++            if (par && this.current === this.span) {
++                par.replaceChild(this.link,this.current);
++                this.current = this.link;
++            }
++        } else if (this.current === this.link) {
++            if (par) {
++                par.replaceChild(this.span,this.current);
++                this.current = this.span;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Passes to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(this.paginator.getNextPage());
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the previous page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class PreviousPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.PreviousPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('previousPageLinkLabelChange',this.update,this,true);
++    p.subscribe('previousPageLinkClassChange',this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.PreviousPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the previous page link/span.
++     * @attribute previousPageLinkLabel
++     * @default '&lt; prev'
++     */
++    p.setAttributeConfig('previousPageLinkLabel', {
++        value : '&lt; prev',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute previousPageLinkClass
++     * @default 'yui-pg-previous'
++     */
++    p.setAttributeConfig('previousPageLinkClass', {
++        value : 'yui-pg-previous',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.PreviousPageLink.prototype = {
++
++    /**
++     * Currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('previousPageLinkClass'),
++            label = p.get('previousPageLinkLabel');
++
++        this.link     = document.createElement('a');
++        this.span     = document.createElement('span');
++
++        this.link.id        = id_base + '-prev-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-prev-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
++        return this.current;
++    },
++
++    /**
++     * Swap the link and span nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var par = this.current ? this.current.parentNode : null;
++        if (this.paginator.getCurrentPage() > 1) {
++            if (par && this.current === this.span) {
++                par.replaceChild(this.link,this.current);
++                this.current = this.link;
++            }
++        } else {
++            if (par && this.current === this.link) {
++                par.replaceChild(this.span,this.current);
++                this.current = this.span;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Passes to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(this.paginator.getPreviousPage());
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the rows-per-page dropdown
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class RowsPerPageDropdown
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.RowsPerPageDropdown = function (p) {
++    this.paginator = p;
++
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('rowsPerPageOptionsChange',this.rebuild,this,true);
++    p.subscribe('totalRecordsChange',this._handleTotalRecordsChange,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('rowsPerPageDropdownClassChange',this.rebuild,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.RowsPerPageDropdown.init = function (p) {
++
++    /**
++     * Array of available rows-per-page sizes.  Converted into select options.
++     * Array values may be positive integers or object literals in the form<br>
++     * { value : NUMBER, text : STRING }
++     * @attribute rowsPerPageOptions
++     * @default []
++     */
++    p.setAttributeConfig('rowsPerPageOptions', {
++        value : [],
++        validator : l.isArray
++    });
++
++    /**
++     * CSS class assigned to the select node
++     * @attribute rowsPerPageDropdownClass
++     * @default 'yui-pg-rpp-options'
++     */
++    p.setAttributeConfig('rowsPerPageDropdownClass', {
++        value : 'yui-pg-rpp-options',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.RowsPerPageDropdown.prototype = {
++
++    /**
++     * select node
++     * @property select
++     * @type HTMLElement
++     * @private
++     */
++    select  : null,
++
++
++    /**
++     * option node for the optional All value
++     *
++     * @property all
++     * @type HTMLElement
++     * @protected
++     */
++    all : null,
++
++    /**
++     * Generate the select and option nodes and returns the select node.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        this.select = document.createElement('select');
++        this.select.id        = id_base + '-rpp';
++        this.select.className = this.paginator.get('rowsPerPageDropdownClass');
++        this.select.title = 'Rows per page';
++
++        YAHOO.util.Event.on(this.select,'change',this.onChange,this,true);
++
++        this.rebuild();
++
++        return this.select;
++    },
++
++    /**
++     * (Re)generate the select options.
++     * @method rebuild
++     */
++    rebuild : function (e) {
++        var p       = this.paginator,
++            sel     = this.select,
++            options = p.get('rowsPerPageOptions'),
++            opt,cfg,val,i,len;
++
++        this.all = null;
++
++        for (i = 0, len = options.length; i < len; ++i) {
++            cfg = options[i];
++            opt = sel.options[i] ||
++                  sel.appendChild(document.createElement('option'));
++            val = l.isValue(cfg.value) ? cfg.value : cfg;
++            opt.innerHTML = l.isValue(cfg.text) ? cfg.text : cfg;
++
++            if (l.isString(val) && val.toLowerCase() === 'all') {
++                this.all  = opt;
++                opt.value = p.get('totalRecords');
++            } else{
++                opt.value = val;
++            }
++
++        }
++
++        while (sel.options.length > options.length) {
++            sel.removeChild(sel.firstChild);
++        }
++
++        this.update();
++    },
++
++    /**
++     * Select the appropriate option if changed.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var rpp     = this.paginator.get('rowsPerPage')+'',
++            options = this.select.options,
++            i,len;
++
++        for (i = 0, len = options.length; i < len; ++i) {
++            if (options[i].value === rpp) {
++                options[i].selected = true;
++                break;
++            }
++        }
++    },
++
++    /**
++     * Listener for the select's onchange event.  Sent to setRowsPerPage method.
++     * @method onChange
++     * @param e {DOMEvent} The change event
++     */
++    onChange : function (e) {
++        this.paginator.setRowsPerPage(
++                parseInt(this.select.options[this.select.selectedIndex].value,10));
++    },
++
++    /**
++     * Updates the all option value (and Paginator's rowsPerPage attribute if
++     * necessary) in response to a change in the Paginator's totalRecords.
++     *
++     * @method _handleTotalRecordsChange
++     * @param e {Event} attribute change event
++     * @protected
++     */
++    _handleTotalRecordsChange : function (e) {
++        if (!this.all || (e && e.prevValue === e.newValue)) {
++            return;
++        }
++
++        this.all.value = e.newValue;
++        if (this.all.selected) {
++            this.paginator.set('rowsPerPage',e.newValue);
++        }
++    },
++
++    /**
++     * Removes the select node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.select);
++        this.select.parentNode.removeChild(this.select);
++        this.select = null;
++    }
++};
++
++})();
++YAHOO.register("paginator", YAHOO.widget.Paginator, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/paginator/paginator-min.js b/pylons_app/public/js/yui/paginator/paginator-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/paginator/paginator-min.js
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var D=YAHOO.util.Dom,F=YAHOO.lang,B=F.isObject,E=F.isFunction,C=F.isArray,A=F.isString;function G(K){var N=G.VALUE_UNLIMITED,L,H,I,J,M;K=B(K)?K:{};this.initConfig();this.initEvents();this.set("rowsPerPage",K.rowsPerPage,true);if(G.isNumeric(K.totalRecords)){this.set("totalRecords",K.totalRecords,true);}this.initUIComponents();for(L in K){if(K.hasOwnProperty(L)){this.set(L,K[L],true);}}H=this.get("initialPage");I=this.get("totalRecords");J=this.get("rowsPerPage");if(H>1&&J!==N){M=(H-1)*J;if(I===N||M<I){this.set("recordOffset",M,true);}}}F.augmentObject(G,{id:0,ID_BASE:"yui-pg",VALUE_UNLIMITED:-1,TEMPLATE_DEFAULT:"{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",TEMPLATE_ROWS_PER_PAGE:"{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",ui:{},isNumeric:function(H){return isFinite(+H);},toNumber:function(H){return isFinite(+H)?+H:null;}},true);G.prototype={_containers:[],_batch:false,_pageChanged:false,_state:null,initConfig:function(){var H=G.VALUE_UNLIMITED;this.setAttributeConfig("rowsPerPage",{value:0,validator:G.isNumeric,setter:G.toNumber});this.setAttributeConfig("containers",{value:null,validator:function(K){if(!C(K)){K=[K];}for(var J=0,I=K.length;J<I;++J){if(A(K[J])||(B(K[J])&&K[J].nodeType===1)){continue;}return false;}return true;},method:function(I){I=D.get(I);if(!C(I)){I=[I];}this._containers=I;}});this.setAttributeConfig("totalRecords",{value:0,validator:G.isNumeric,setter:G.toNumber});this.setAttributeConfig("recordOffset",{value:0,validator:function(J){var I=this.get("totalRecords");if(G.isNumeric(J)){J=+J;return I===H||I>J||(I===0&&J===0);}return false;},setter:G.toNumber});this.setAttributeConfig("initialPage",{value:1,validator:G.isNumeric,setter:G.toNumber});this.setAttributeConfig("template",{value:G.TEMPLATE_DEFAULT,validator:A});this.setAttributeConfig("containerClass",{value:"yui-pg-container",validator:A});this.setAttributeConfig("alwaysVisible",{value:true,validator:F.isBoolean});this.setAttributeConfig("updateOnChange",{value:false,validator:F.isBoolean});this.setAttributeConfig("id",{value:G.id++,readOnly:true});this.setAttributeConfig("rendered",{value:false,readOnly:true});},initUIComponents:function(){var J=G.ui,I,H;for(I in J){if(J.hasOwnProperty(I)){H=J[I];if(B(H)&&E(H.init)){H.init(this);}}}},initEvents:function(){this.createEvent("render");this.createEvent("rendered");this.createEvent("changeRequest");this.createEvent("pageChange");this.createEvent("beforeDestroy");this.createEvent("destroy");this._selfSubscribe();},_selfSubscribe:function(){this.subscribe("totalRecordsChange",this.updateVisibility,this,true);this.subscribe("alwaysVisibleChange",this.updateVisibility,this,true);this.subscribe("totalRecordsChange",this._handleStateChange,this,true);this.subscribe("recordOffsetChange",this._handleStateChange,this,true);this.subscribe("rowsPerPageChange",this._handleStateChange,this,true);this.subscribe("totalRecordsChange",this._syncRecordOffset,this,true);},_syncRecordOffset:function(K){var H=K.newValue,J,I;if(K.prevValue!==H){if(H!==G.VALUE_UNLIMITED){J=this.get("rowsPerPage");if(J&&this.get("recordOffset")>=H){I=this.getState({totalRecords:K.prevValue,recordOffset:this.get("recordOffset")});this.set("recordOffset",I.before.recordOffset);this._firePageChange(I);}}}},_handleStateChange:function(I){if(I.prevValue!==I.newValue){var J=this._state||{},H;J[I.type.replace(/Change$/,"")]=I.prevValue;H=this.getState(J);if(H.page!==H.before.page){if(this._batch){this._pageChanged=true;}else{this._firePageChange(H);}}}},_firePageChange:function(H){if(B(H)){var I=H.before;delete H.before;this.fireEvent("pageChange",{type:"pageChange",prevValue:H.page,newValue:I.page,prevState:H,newState:I});}},render:function(){if(this.get("rendered")){return this;}var K=this.get("template"),L=this.getState(),J=G.ID_BASE+this.get("id")+"-",I,H;for(I=0,H=this._containers.length;I<H;++I){this._renderTemplate(this._containers[I],K,J+I,true);}this.updateVisibility();if(this._containers.length){this.setAttributeConfig("rendered",{value:true});this.fireEvent("render",L);this.fireEvent("rendered",L);}return this;},_renderTemplate:function(I,M,L,K){var O=this.get("containerClass"),N,J,H;if(!I){return;}D.setStyle(I,"display","none");D.addClass(I,O);I.innerHTML=M.replace(/\{([a-z0-9_ \-]+)\}/gi,'<span class="yui-pg-ui yui-pg-ui-$1"></span>');N=D.getElementsByClassName("yui-pg-ui","span",I);for(J=0,H=N.length;J<H;++J){this.renderUIComponent(N[J],L);}if(!K){D.setStyle(I,"display","");}},renderUIComponent:function(H,M){var L=H.parentNode,K=/yui-pg-ui-(\w+)/.exec(H.className),J=K&&G.ui[K[1]],I;if(E(J)){I=new J(this);if(E(I.render)){L.replaceChild(I.render(M),H);}}},destroy:function(){this.fireEvent("beforeDestroy");this.fireEvent("destroy");this.setAttributeConfig("rendered",{value:false});this.unsubscribeAll();},updateVisibility:function(M){var I=this.get("alwaysVisible"),O,N,K,L,J,H;if(!M||M.type==="alwaysVisibleChange"||!I){O=this.get("totalRecords");N=true;K=this.get("rowsPerPage");L=this.get("rowsPerPageOptions");if(C(L)){for(J=0,H=L.length;J<H;++J){K=Math.min(K,L[J]);}}if(O!==G.VALUE_UNLIMITED&&O<=K){N=false;}N=N||I;for(J=0,H=this._containers.length;J<H;++J){D.setStyle(this._containers[J],"display",N?"":"none");}}},getContainerNodes:function(){return this._containers;},getTotalPages:function(){var H=this.get("totalRecords"),I=this.get("rowsPerPage");if(!I){return null;}if(H===G.VALUE_UNLIMITED){return G.VALUE_UNLIMITED;}return Math.ceil(H/I);},hasPage:function(I){if(!F.isNumber(I)||I<1){return false;}var H=this.getTotalPages();return(H===G.VALUE_UNLIMITED||H>=I);},getCurrentPage:function(){var H=this.get("rowsPerPage");if(!H||!this.get("totalRecords")){return 0;}return Math.floor(this.get("recordOffset")/H)+1;},hasNextPage:function(){var H=this.getCurrentPage(),I=this.getTotalPages();return H&&(I===G.VALUE_UNLIMITED||H<I);},getNextPage:function(){return this.hasNextPage()?this.getCurrentPage()+1:null;},hasPreviousPage:function(){return(this.getCurrentPage()>1);
++},getPreviousPage:function(){return(this.hasPreviousPage()?this.getCurrentPage()-1:1);},getPageRecords:function(K){if(!F.isNumber(K)){K=this.getCurrentPage();}var J=this.get("rowsPerPage"),I=this.get("totalRecords"),L,H;if(!K||!J){return null;}L=(K-1)*J;if(I!==G.VALUE_UNLIMITED){if(L>=I){return null;}H=Math.min(L+J,I)-1;}else{H=L+J-1;}return[L,H];},setPage:function(I,H){if(this.hasPage(I)&&I!==this.getCurrentPage()){if(this.get("updateOnChange")||H){this.set("recordOffset",(I-1)*this.get("rowsPerPage"));}else{this.fireEvent("changeRequest",this.getState({"page":I}));}}},getRowsPerPage:function(){return this.get("rowsPerPage");},setRowsPerPage:function(I,H){if(G.isNumeric(I)&&+I>0&&+I!==this.get("rowsPerPage")){if(this.get("updateOnChange")||H){this.set("rowsPerPage",I);}else{this.fireEvent("changeRequest",this.getState({"rowsPerPage":+I}));}}},getTotalRecords:function(){return this.get("totalRecords");},setTotalRecords:function(I,H){if(G.isNumeric(I)&&+I>=0&&+I!==this.get("totalRecords")){if(this.get("updateOnChange")||H){this.set("totalRecords",I);}else{this.fireEvent("changeRequest",this.getState({"totalRecords":+I}));}}},getStartIndex:function(){return this.get("recordOffset");},setStartIndex:function(I,H){if(G.isNumeric(I)&&+I>=0&&+I!==this.get("recordOffset")){if(this.get("updateOnChange")||H){this.set("recordOffset",I);}else{this.fireEvent("changeRequest",this.getState({"recordOffset":+I}));}}},getState:function(O){var Q=G.VALUE_UNLIMITED,L=Math,N=L.max,P=L.ceil,J,H,K;function I(S,M,R){if(S<=0||M===0){return 0;}if(M===Q||M>S){return S-(S%R);}return M-(M%R||R);}J={paginator:this,totalRecords:this.get("totalRecords"),rowsPerPage:this.get("rowsPerPage"),records:this.getPageRecords()};J.recordOffset=I(this.get("recordOffset"),J.totalRecords,J.rowsPerPage);J.page=P(J.recordOffset/J.rowsPerPage)+1;if(!O){return J;}H={paginator:this,before:J,rowsPerPage:O.rowsPerPage||J.rowsPerPage,totalRecords:(G.isNumeric(O.totalRecords)?N(O.totalRecords,Q):+J.totalRecords)};if(H.totalRecords===0){H.recordOffset=H.page=0;}else{K=G.isNumeric(O.page)?(O.page-1)*H.rowsPerPage:G.isNumeric(O.recordOffset)?+O.recordOffset:J.recordOffset;H.recordOffset=I(K,H.totalRecords,H.rowsPerPage);H.page=P(H.recordOffset/H.rowsPerPage)+1;}H.records=[H.recordOffset,H.recordOffset+H.rowsPerPage-1];if(H.totalRecords!==Q&&H.recordOffset<H.totalRecords&&H.records&&H.records[1]>H.totalRecords-1){H.records[1]=H.totalRecords-1;}return H;},setState:function(I){if(B(I)){this._state=this.getState({});I={page:I.page,rowsPerPage:I.rowsPerPage,totalRecords:I.totalRecords,recordOffset:I.recordOffset};if(I.page&&I.recordOffset===undefined){I.recordOffset=(I.page-1)*(I.rowsPerPage||this.get("rowsPerPage"));}this._batch=true;this._pageChanged=false;for(var H in I){if(I.hasOwnProperty(H)&&this._configs.hasOwnProperty(H)){this.set(H,I[H]);}}this._batch=false;if(this._pageChanged){this._pageChanged=false;this._firePageChange(this.getState(this._state));}}}};F.augmentProto(G,YAHOO.util.AttributeProvider);YAHOO.widget.Paginator=G;})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.CurrentPageReport=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("pageReportTemplateChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("pageReportClassChange",this.update,this,true);};B.ui.CurrentPageReport.init=function(C){C.setAttributeConfig("pageReportClass",{value:"yui-pg-current",validator:A.isString});C.setAttributeConfig("pageReportTemplate",{value:"({currentPage} of {totalPages})",validator:A.isString});C.setAttributeConfig("pageReportValueGenerator",{value:function(F){var E=F.getCurrentPage(),D=F.getPageRecords();return{"currentPage":D?E:0,"totalPages":F.getTotalPages(),"startIndex":D?D[0]:0,"endIndex":D?D[1]:0,"startRecord":D?D[0]+1:0,"endRecord":D?D[1]+1:0,"totalRecords":F.get("totalRecords")};},validator:A.isFunction});};B.ui.CurrentPageReport.sprintf=function(D,C){return D.replace(/\{([\w\s\-]+)\}/g,function(E,F){return(F in C)?C[F]:"";});};B.ui.CurrentPageReport.prototype={span:null,render:function(C){this.span=document.createElement("span");this.span.id=C+"-page-report";this.span.className=this.paginator.get("pageReportClass");this.update();return this.span;},update:function(C){if(C&&C.prevValue===C.newValue){return;}this.span.innerHTML=B.ui.CurrentPageReport.sprintf(this.paginator.get("pageReportTemplate"),this.paginator.get("pageReportValueGenerator")(this.paginator));},destroy:function(){this.span.parentNode.removeChild(this.span);this.span=null;}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.PageLinks=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("pageLinksChange",this.rebuild,this,true);C.subscribe("pageLinkClassChange",this.rebuild,this,true);C.subscribe("currentPageClassChange",this.rebuild,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("pageLinksContainerClassChange",this.rebuild,this,true);};B.ui.PageLinks.init=function(C){C.setAttributeConfig("pageLinkClass",{value:"yui-pg-page",validator:A.isString});C.setAttributeConfig("currentPageClass",{value:"yui-pg-current-page",validator:A.isString});C.setAttributeConfig("pageLinksContainerClass",{value:"yui-pg-pages",validator:A.isString});C.setAttributeConfig("pageLinks",{value:10,validator:B.isNumeric});C.setAttributeConfig("pageLabelBuilder",{value:function(D,E){return D;},validator:A.isFunction});};B.ui.PageLinks.calculateRange=function(E,F,D){var I=B.VALUE_UNLIMITED,H,C,G;if(!E||D===0||F===0||(F===I&&D===I)){return[0,-1];}if(F!==I){D=D===I?F:Math.min(D,F);}H=Math.max(1,Math.ceil(E-(D/2)));if(F===I){C=H+D-1;}else{C=Math.min(F,H+D-1);}G=D-(C-H+1);H=Math.max(1,H-G);return[H,C];};B.ui.PageLinks.prototype={current:0,container:null,render:function(C){var D=this.paginator;
++this.container=document.createElement("span");this.container.id=C+"-pages";this.container.className=D.get("pageLinksContainerClass");YAHOO.util.Event.on(this.container,"click",this.onClick,this,true);this.update({newValue:null,rebuild:true});return this.container;},update:function(J){if(J&&J.prevValue===J.newValue){return;}var E=this.paginator,I=E.getCurrentPage();if(this.current!==I||!I||J.rebuild){var L=E.get("pageLabelBuilder"),H=B.ui.PageLinks.calculateRange(I,E.getTotalPages(),E.get("pageLinks")),D=H[0],F=H[1],K="",C,G;C='<a href="#" class="'+E.get("pageLinkClass")+'" page="';for(G=D;G<=F;++G){if(G===I){K+='<span class="'+E.get("currentPageClass")+" "+E.get("pageLinkClass")+'">'+L(G,E)+"</span>";}else{K+=C+G+'">'+L(G,E)+"</a>";}}this.container.innerHTML=K;}},rebuild:function(C){C.rebuild=true;this.update(C);},destroy:function(){YAHOO.util.Event.purgeElement(this.container,true);this.container.parentNode.removeChild(this.container);this.container=null;},onClick:function(D){var C=YAHOO.util.Event.getTarget(D);if(C&&YAHOO.util.Dom.hasClass(C,this.paginator.get("pageLinkClass"))){YAHOO.util.Event.stopEvent(D);this.paginator.setPage(parseInt(C.getAttribute("page"),10));}}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.FirstPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("firstPageLinkLabelChange",this.update,this,true);C.subscribe("firstPageLinkClassChange",this.update,this,true);};B.ui.FirstPageLink.init=function(C){C.setAttributeConfig("firstPageLinkLabel",{value:"&lt;&lt; first",validator:A.isString});C.setAttributeConfig("firstPageLinkClass",{value:"yui-pg-first",validator:A.isString});};B.ui.FirstPageLink.prototype={current:null,link:null,span:null,render:function(D){var E=this.paginator,F=E.get("firstPageLinkClass"),C=E.get("firstPageLinkLabel");this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=D+"-first-link";this.link.href="#";this.link.className=F;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-first-span";this.span.className=F;this.span.innerHTML=C;this.current=E.getCurrentPage()>1?this.link:this.span;return this.current;},update:function(D){if(D&&D.prevValue===D.newValue){return;}var C=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()>1){if(C&&this.current===this.span){C.replaceChild(this.link,this.current);this.current=this.link;}}else{if(C&&this.current===this.link){C.replaceChild(this.span,this.current);this.current=this.span;}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(1);}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.LastPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("lastPageLinkLabelChange",this.update,this,true);C.subscribe("lastPageLinkClassChange",this.update,this,true);};B.ui.LastPageLink.init=function(C){C.setAttributeConfig("lastPageLinkLabel",{value:"last &gt;&gt;",validator:A.isString});C.setAttributeConfig("lastPageLinkClass",{value:"yui-pg-last",validator:A.isString});};B.ui.LastPageLink.prototype={current:null,link:null,span:null,na:null,render:function(D){var F=this.paginator,G=F.get("lastPageLinkClass"),C=F.get("lastPageLinkLabel"),E=F.getTotalPages();this.link=document.createElement("a");this.span=document.createElement("span");this.na=this.span.cloneNode(false);this.link.id=D+"-last-link";this.link.href="#";this.link.className=G;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-last-span";this.span.className=G;this.span.innerHTML=C;this.na.id=D+"-last-na";switch(E){case B.VALUE_UNLIMITED:this.current=this.na;break;case F.getCurrentPage():this.current=this.span;break;default:this.current=this.link;}return this.current;},update:function(D){if(D&&D.prevValue===D.newValue){return;}var C=this.current?this.current.parentNode:null,E=this.link;if(C){switch(this.paginator.getTotalPages()){case B.VALUE_UNLIMITED:E=this.na;break;case this.paginator.getCurrentPage():E=this.span;break;}if(this.current!==E){C.replaceChild(E,this.current);this.current=E;}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(this.paginator.getTotalPages());}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.NextPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("nextPageLinkLabelChange",this.update,this,true);C.subscribe("nextPageLinkClassChange",this.update,this,true);};B.ui.NextPageLink.init=function(C){C.setAttributeConfig("nextPageLinkLabel",{value:"next &gt;",validator:A.isString});C.setAttributeConfig("nextPageLinkClass",{value:"yui-pg-next",validator:A.isString});};B.ui.NextPageLink.prototype={current:null,link:null,span:null,render:function(D){var F=this.paginator,G=F.get("nextPageLinkClass"),C=F.get("nextPageLinkLabel"),E=F.getTotalPages();this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=D+"-next-link";this.link.href="#";this.link.className=G;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-next-span";this.span.className=G;
++this.span.innerHTML=C;this.current=F.getCurrentPage()===E?this.span:this.link;return this.current;},update:function(E){if(E&&E.prevValue===E.newValue){return;}var D=this.paginator.getTotalPages(),C=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()!==D){if(C&&this.current===this.span){C.replaceChild(this.link,this.current);this.current=this.link;}}else{if(this.current===this.link){if(C){C.replaceChild(this.span,this.current);this.current=this.span;}}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(this.paginator.getNextPage());}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.PreviousPageLink=function(C){this.paginator=C;C.subscribe("recordOffsetChange",this.update,this,true);C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("totalRecordsChange",this.update,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("previousPageLinkLabelChange",this.update,this,true);C.subscribe("previousPageLinkClassChange",this.update,this,true);};B.ui.PreviousPageLink.init=function(C){C.setAttributeConfig("previousPageLinkLabel",{value:"&lt; prev",validator:A.isString});C.setAttributeConfig("previousPageLinkClass",{value:"yui-pg-previous",validator:A.isString});};B.ui.PreviousPageLink.prototype={current:null,link:null,span:null,render:function(D){var E=this.paginator,F=E.get("previousPageLinkClass"),C=E.get("previousPageLinkLabel");this.link=document.createElement("a");this.span=document.createElement("span");this.link.id=D+"-prev-link";this.link.href="#";this.link.className=F;this.link.innerHTML=C;YAHOO.util.Event.on(this.link,"click",this.onClick,this,true);this.span.id=D+"-prev-span";this.span.className=F;this.span.innerHTML=C;this.current=E.getCurrentPage()>1?this.link:this.span;return this.current;},update:function(D){if(D&&D.prevValue===D.newValue){return;}var C=this.current?this.current.parentNode:null;if(this.paginator.getCurrentPage()>1){if(C&&this.current===this.span){C.replaceChild(this.link,this.current);this.current=this.link;}}else{if(C&&this.current===this.link){C.replaceChild(this.span,this.current);this.current=this.span;}}},destroy:function(){YAHOO.util.Event.purgeElement(this.link);this.current.parentNode.removeChild(this.current);this.link=this.span=null;},onClick:function(C){YAHOO.util.Event.stopEvent(C);this.paginator.setPage(this.paginator.getPreviousPage());}};})();(function(){var B=YAHOO.widget.Paginator,A=YAHOO.lang;B.ui.RowsPerPageDropdown=function(C){this.paginator=C;C.subscribe("rowsPerPageChange",this.update,this,true);C.subscribe("rowsPerPageOptionsChange",this.rebuild,this,true);C.subscribe("totalRecordsChange",this._handleTotalRecordsChange,this,true);C.subscribe("destroy",this.destroy,this,true);C.subscribe("rowsPerPageDropdownClassChange",this.rebuild,this,true);};B.ui.RowsPerPageDropdown.init=function(C){C.setAttributeConfig("rowsPerPageOptions",{value:[],validator:A.isArray});C.setAttributeConfig("rowsPerPageDropdownClass",{value:"yui-pg-rpp-options",validator:A.isString});};B.ui.RowsPerPageDropdown.prototype={select:null,all:null,render:function(C){this.select=document.createElement("select");this.select.id=C+"-rpp";this.select.className=this.paginator.get("rowsPerPageDropdownClass");this.select.title="Rows per page";YAHOO.util.Event.on(this.select,"change",this.onChange,this,true);this.rebuild();return this.select;},rebuild:function(J){var C=this.paginator,E=this.select,K=C.get("rowsPerPageOptions"),D,I,F,G,H;this.all=null;for(G=0,H=K.length;G<H;++G){I=K[G];D=E.options[G]||E.appendChild(document.createElement("option"));F=A.isValue(I.value)?I.value:I;D.innerHTML=A.isValue(I.text)?I.text:I;if(A.isString(F)&&F.toLowerCase()==="all"){this.all=D;D.value=C.get("totalRecords");}else{D.value=F;}}while(E.options.length>K.length){E.removeChild(E.firstChild);}this.update();},update:function(G){if(G&&G.prevValue===G.newValue){return;}var F=this.paginator.get("rowsPerPage")+"",D=this.select.options,E,C;for(E=0,C=D.length;E<C;++E){if(D[E].value===F){D[E].selected=true;break;}}},onChange:function(C){this.paginator.setRowsPerPage(parseInt(this.select.options[this.select.selectedIndex].value,10));},_handleTotalRecordsChange:function(C){if(!this.all||(C&&C.prevValue===C.newValue)){return;}this.all.value=C.newValue;if(this.all.selected){this.paginator.set("rowsPerPage",C.newValue);}},destroy:function(){YAHOO.util.Event.purgeElement(this.select);this.select.parentNode.removeChild(this.select);this.select=null;}};})();YAHOO.register("paginator",YAHOO.widget.Paginator,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/paginator/paginator.js b/pylons_app/public/js/yui/paginator/paginator.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/paginator/paginator.js
+@@ -0,0 +1,2393 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++/**
++ * The Paginator widget provides a set of controls to navigate through paged
++ * data.
++ *
++ * @module paginator
++ * @uses YAHOO.util.EventProvider
++ * @uses YAHOO.util.AttributeProvider
++ */
++
++var Dom        = YAHOO.util.Dom,
++    lang       = YAHOO.lang,
++    isObject   = lang.isObject,
++    isFunction = lang.isFunction,
++    isArray    = lang.isArray,
++    isString   = lang.isString;
++
++/**
++ * Instantiate a Paginator, passing a configuration object to the contructor.
++ * The configuration object should contain the following properties:
++ * <ul>
++ *   <li>rowsPerPage : <em>n</em> (int)</li>
++ *   <li>totalRecords : <em>n</em> (int or Paginator.VALUE_UNLIMITED)</li>
++ *   <li>containers : <em>id | el | arr</em> (HTMLElement reference, its id, or an array of either)</li>
++ * </ul>
++ *
++ * @namespace YAHOO.widget
++ * @class Paginator
++ * @constructor
++ * @param config {Object} Object literal to set instance and ui component
++ * configuration.
++ */
++function Paginator(config) {
++    var UNLIMITED = Paginator.VALUE_UNLIMITED,
++        attrib, initialPage, records, perPage, startIndex;
++
++    config = isObject(config) ? config : {};
++
++    this.initConfig();
++
++    this.initEvents();
++
++    // Set the basic config keys first
++    this.set('rowsPerPage',config.rowsPerPage,true);
++    if (Paginator.isNumeric(config.totalRecords)) {
++        this.set('totalRecords',config.totalRecords,true);
++    }
++    
++    this.initUIComponents();
++
++    // Update the other config values
++    for (attrib in config) {
++        if (config.hasOwnProperty(attrib)) {
++            this.set(attrib,config[attrib],true);
++        }
++    }
++
++    // Calculate the initial record offset
++    initialPage = this.get('initialPage');
++    records     = this.get('totalRecords');
++    perPage     = this.get('rowsPerPage');
++    if (initialPage > 1 && perPage !== UNLIMITED) {
++        startIndex = (initialPage - 1) * perPage;
++        if (records === UNLIMITED || startIndex < records) {
++            this.set('recordOffset',startIndex,true);
++        }
++    }
++}
++
++
++// Static members
++lang.augmentObject(Paginator, {
++    /**
++     * Incrementing index used to give instances unique ids.
++     * @static
++     * @property Paginator.id
++     * @type number
++     * @private
++     */
++    id : 0,
++
++    /**
++     * Base of id strings used for ui components.
++     * @static
++     * @property Paginator.ID_BASE
++     * @type string
++     * @private
++     */
++    ID_BASE : 'yui-pg',
++
++    /**
++     * Used to identify unset, optional configurations, or used explicitly in
++     * the case of totalRecords to indicate unlimited pagination.
++     * @static
++     * @property Paginator.VALUE_UNLIMITED
++     * @type number
++     * @final
++     */
++    VALUE_UNLIMITED : -1,
++
++    /**
++     * Default template used by Paginator instances.  Update this if you want
++     * all new Paginators to use a different default template.
++     * @static
++     * @property Paginator.TEMPLATE_DEFAULT
++     * @type string
++     */
++    TEMPLATE_DEFAULT : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}",
++
++    /**
++     * Common alternate pagination format, including page links, links for
++     * previous, next, first and last pages as well as a rows-per-page
++     * dropdown.  Offered as a convenience.
++     * @static
++     * @property Paginator.TEMPLATE_ROWS_PER_PAGE
++     * @type string
++     */
++    TEMPLATE_ROWS_PER_PAGE : "{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}",
++
++    /**
++     * Storage object for UI Components
++     * @static
++     * @property Paginator.ui
++     */
++    ui : {},
++
++    /**
++     * Similar to YAHOO.lang.isNumber, but allows numeric strings.  This is
++     * is used for attribute validation in conjunction with getters that return
++     * numbers.
++     *
++     * @method Paginator.isNumeric
++     * @param v {Number|String} value to be checked for number or numeric string
++     * @returns {Boolean} true if the input is coercable into a finite number
++     * @static
++     */
++    isNumeric : function (v) {
++        return isFinite(+v);
++    },
++
++    /**
++     * Return a number or null from input
++     *
++     * @method Paginator.toNumber
++     * @param n {Number|String} a number or numeric string
++     * @return Number
++     * @static
++     */
++    toNumber : function (n) {
++        return isFinite(+n) ? +n : null;
++    }
++
++},true);
++
++
++// Instance members and methods
++Paginator.prototype = {
++
++    // Instance members
++
++    /**
++     * Array of nodes in which to render pagination controls.  This is set via
++     * the &quot;containers&quot; attribute.
++     * @property _containers
++     * @type Array(HTMLElement)
++     * @private
++     */
++    _containers : [],
++
++    /**
++     * Flag used to indicate multiple attributes are being updated via setState
++     * @property _batch
++     * @type boolean
++     * @protected
++     */
++    _batch : false,
++
++    /**
++     * Used by setState to indicate when a page change has occurred
++     * @property _pageChanged
++     * @type boolean
++     * @protected
++     */
++    _pageChanged : false,
++
++    /**
++     * Temporary state cache used by setState to keep track of the previous
++     * state for eventual pageChange event firing
++     * @property _state
++     * @type Object
++     * @protected
++     */
++    _state : null,
++
++
++    // Instance methods
++
++    /**
++     * Initialize the Paginator's attributes (see YAHOO.util.Element class
++     * AttributeProvider).
++     * @method initConfig
++     * @private
++     */
++    initConfig : function () {
++
++        var UNLIMITED = Paginator.VALUE_UNLIMITED;
++
++        /**
++         * REQUIRED. Number of records constituting a &quot;page&quot;
++         * @attribute rowsPerPage
++         * @type integer
++         */
++        this.setAttributeConfig('rowsPerPage', {
++            value     : 0,
++            validator : Paginator.isNumeric,
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * REQUIRED. Node references or ids of nodes in which to render the
++         * pagination controls.
++         * @attribute containers
++         * @type {string|HTMLElement|Array(string|HTMLElement)}
++         */
++        this.setAttributeConfig('containers', {
++            value     : null,
++            validator : function (val) {
++                if (!isArray(val)) {
++                    val = [val];
++                }
++                for (var i = 0, len = val.length; i < len; ++i) {
++                    if (isString(val[i]) || 
++                        (isObject(val[i]) && val[i].nodeType === 1)) {
++                        continue;
++                    }
++                    return false;
++                }
++                return true;
++            },
++            method : function (val) {
++                val = Dom.get(val);
++                if (!isArray(val)) {
++                    val = [val];
++                }
++                this._containers = val;
++            }
++        });
++
++        /**
++         * Total number of records to paginate through
++         * @attribute totalRecords
++         * @type integer
++         * @default 0
++         */
++        this.setAttributeConfig('totalRecords', {
++            value     : 0,
++            validator : Paginator.isNumeric,
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * Zero based index of the record considered first on the current page.
++         * For page based interactions, don't modify this attribute directly;
++         * use setPage(n).
++         * @attribute recordOffset
++         * @type integer
++         * @default 0
++         */
++        this.setAttributeConfig('recordOffset', {
++            value     : 0,
++            validator : function (val) {
++                var total = this.get('totalRecords');
++                if (Paginator.isNumeric(val)) {
++                    val = +val;
++                    return total === UNLIMITED || total > val ||
++                           (total === 0 && val === 0);
++                }
++
++                return false;
++            },
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * Page to display on initial paint
++         * @attribute initialPage
++         * @type integer
++         * @default 1
++         */
++        this.setAttributeConfig('initialPage', {
++            value     : 1,
++            validator : Paginator.isNumeric,
++            setter    : Paginator.toNumber
++        });
++
++        /**
++         * Template used to render controls.  The string will be used as
++         * innerHTML on all specified container nodes.  Bracketed keys
++         * (e.g. {pageLinks}) in the string will be replaced with an instance
++         * of the so named ui component.
++         * @see Paginator.TEMPLATE_DEFAULT
++         * @see Paginator.TEMPLATE_ROWS_PER_PAGE
++         * @attribute template
++         * @type string
++         */
++        this.setAttributeConfig('template', {
++            value : Paginator.TEMPLATE_DEFAULT,
++            validator : isString
++        });
++
++        /**
++         * Class assigned to the element(s) containing pagination controls.
++         * @attribute containerClass
++         * @type string
++         * @default 'yui-pg-container'
++         */
++        this.setAttributeConfig('containerClass', {
++            value : 'yui-pg-container',
++            validator : isString
++        });
++
++        /**
++         * Display pagination controls even when there is only one page.  Set
++         * to false to forgo rendering and/or hide the containers when there
++         * is only one page of data.  Note if you are using the rowsPerPage
++         * dropdown ui component, visibility will be maintained as long as the
++         * number of records exceeds the smallest page size.
++         * @attribute alwaysVisible
++         * @type boolean
++         * @default true
++         */
++        this.setAttributeConfig('alwaysVisible', {
++            value : true,
++            validator : lang.isBoolean
++        });
++
++        /**
++         * Update the UI immediately upon interaction.  If false, changeRequest
++         * subscribers or other external code will need to explicitly set the
++         * new values in the paginator to trigger repaint.
++         * @attribute updateOnChange
++         * @type boolean
++         * @default false
++         * @deprecated use changeRequest listener that calls setState
++         */
++        this.setAttributeConfig('updateOnChange', {
++            value     : false,
++            validator : lang.isBoolean
++        });
++
++
++
++        // Read only attributes
++
++        /**
++         * Unique id assigned to this instance
++         * @attribute id
++         * @type integer
++         * @final
++         */
++        this.setAttributeConfig('id', {
++            value    : Paginator.id++,
++            readOnly : true
++        });
++
++        /**
++         * Indicator of whether the DOM nodes have been initially created
++         * @attribute rendered
++         * @type boolean
++         * @final
++         */
++        this.setAttributeConfig('rendered', {
++            value    : false,
++            readOnly : true
++        });
++
++    },
++
++    /**
++     * Initialize registered ui components onto this instance.
++     * @method initUIComponents
++     * @private
++     */
++    initUIComponents : function () {
++        var ui = Paginator.ui,
++            name,UIComp;
++        for (name in ui) {
++            if (ui.hasOwnProperty(name)) {
++                UIComp = ui[name];
++                if (isObject(UIComp) && isFunction(UIComp.init)) {
++                    UIComp.init(this);
++                }
++            }
++        }
++    },
++
++    /**
++     * Initialize this instance's CustomEvents.
++     * @method initEvents
++     * @private
++     */
++    initEvents : function () {
++        /**
++         * Event fired when the Paginator is initially rendered
++         * @event render
++         */
++        this.createEvent('render');
++
++        /**
++         * Event fired when the Paginator is initially rendered
++         * @event rendered
++         * @deprecated use render event
++         */
++        this.createEvent('rendered'); // backward compatibility
++
++        /**
++         * Event fired when a change in pagination values is requested,
++         * either by interacting with the various ui components or via the
++         * setStartIndex(n) etc APIs.
++         * Subscribers will receive the proposed state as the first parameter.
++         * The proposed state object will contain the following keys:
++         * <ul>
++         *   <li>paginator - the Paginator instance</li>
++         *   <li>page</li>
++         *   <li>totalRecords</li>
++         *   <li>recordOffset - index of the first record on the new page</li>
++         *   <li>rowsPerPage</li>
++         *   <li>records - array containing [start index, end index] for the records on the new page</li>
++         *   <li>before - object literal with all these keys for the current state</li>
++         * </ul>
++         * @event changeRequest
++         */
++        this.createEvent('changeRequest');
++
++        /**
++         * Event fired when attribute changes have resulted in the calculated
++         * current page changing.
++         * @event pageChange
++         */
++        this.createEvent('pageChange');
++
++        /**
++         * Event that fires before the destroy event.
++         * @event beforeDestroy
++         */
++        this.createEvent('beforeDestroy');
++
++        /**
++         * Event used to trigger cleanup of ui components
++         * @event destroy
++         */
++        this.createEvent('destroy');
++
++        this._selfSubscribe();
++    },
++
++    /**
++     * Subscribes to instance attribute change events to automate certain
++     * behaviors.
++     * @method _selfSubscribe
++     * @protected
++     */
++    _selfSubscribe : function () {
++        // Listen for changes to totalRecords and alwaysVisible 
++        this.subscribe('totalRecordsChange',this.updateVisibility,this,true);
++        this.subscribe('alwaysVisibleChange',this.updateVisibility,this,true);
++
++        // Fire the pageChange event when appropriate
++        this.subscribe('totalRecordsChange',this._handleStateChange,this,true);
++        this.subscribe('recordOffsetChange',this._handleStateChange,this,true);
++        this.subscribe('rowsPerPageChange',this._handleStateChange,this,true);
++
++        // Update recordOffset when totalRecords is reduced below
++        this.subscribe('totalRecordsChange',this._syncRecordOffset,this,true);
++    },
++
++    /**
++     * Sets recordOffset to the starting index of the previous page when
++     * totalRecords is reduced below the current recordOffset.
++     * @method _syncRecordOffset
++     * @param e {Event} totalRecordsChange event
++     * @protected
++     */
++    _syncRecordOffset : function (e) {
++        var v = e.newValue,rpp,state;
++        if (e.prevValue !== v) {
++            if (v !== Paginator.VALUE_UNLIMITED) {
++                rpp = this.get('rowsPerPage');
++
++                if (rpp && this.get('recordOffset') >= v) {
++                    state = this.getState({
++                        totalRecords : e.prevValue,
++                        recordOffset : this.get('recordOffset')
++                    });
++
++                    this.set('recordOffset', state.before.recordOffset);
++                    this._firePageChange(state);
++                }
++            }
++        }
++    },
++
++    /**
++     * Fires the pageChange event when the state attributes have changed in
++     * such a way as to locate the current recordOffset on a new page.
++     * @method _handleStateChange
++     * @param e {Event} the attribute change event
++     * @protected
++     */
++    _handleStateChange : function (e) {
++        if (e.prevValue !== e.newValue) {
++            var change = this._state || {},
++                state;
++
++            change[e.type.replace(/Change$/,'')] = e.prevValue;
++            state = this.getState(change);
++
++            if (state.page !== state.before.page) {
++                if (this._batch) {
++                    this._pageChanged = true;
++                } else {
++                    this._firePageChange(state);
++                }
++            }
++        }
++    },
++
++    /**
++     * Fires a pageChange event in the form of a standard attribute change
++     * event with additional properties prevState and newState.
++     * @method _firePageChange
++     * @param state {Object} the result of getState(oldState)
++     * @protected
++     */
++    _firePageChange : function (state) {
++        if (isObject(state)) {
++            var current = state.before;
++            delete state.before;
++            this.fireEvent('pageChange',{
++                type      : 'pageChange',
++                prevValue : state.page,
++                newValue  : current.page,
++                prevState : state,
++                newState  : current
++            });
++        }
++    },
++
++    /**
++     * Render the pagination controls per the format attribute into the
++     * specified container nodes.
++     * @method render
++     * @return the Paginator instance
++     * @chainable
++     */
++    render : function () {
++        if (this.get('rendered')) {
++            return this;
++        }
++
++        var template = this.get('template'),
++            state    = this.getState(),
++            // ex. yui-pg0-1 (first paginator, second container)
++            id_base  = Paginator.ID_BASE + this.get('id') + '-',
++            i, len;
++
++        // Assemble the containers, keeping them hidden
++        for (i = 0, len = this._containers.length; i < len; ++i) {
++            this._renderTemplate(this._containers[i],template,id_base+i,true);
++        }
++
++        // Show the containers if appropriate
++        this.updateVisibility();
++
++        // Set render attribute manually to support its readOnly contract
++        if (this._containers.length) {
++            this.setAttributeConfig('rendered', { value: true });
++
++            this.fireEvent('render', state);
++            // For backward compatibility
++            this.fireEvent('rendered', state);
++        }
++
++        return this;
++    },
++
++    /**
++     * Creates the individual ui components and renders them into a container.
++     *
++     * @method _renderTemplate
++     * @param container {HTMLElement} where to add the ui components
++     * @param template {String} the template to use as a guide for rendering
++     * @param id_base {String} id base for the container's ui components
++     * @param hide {Boolean} leave the container hidden after assembly
++     * @protected
++     */
++    _renderTemplate : function (container, template, id_base, hide) {
++        var containerClass = this.get('containerClass'),
++            markers, i, len;
++
++        if (!container) {
++            return;
++        }
++
++        // Hide the container while its contents are rendered
++        Dom.setStyle(container,'display','none');
++
++        Dom.addClass(container, containerClass);
++
++        // Place the template innerHTML, adding marker spans to the template
++        // html to indicate drop zones for ui components
++        container.innerHTML = template.replace(/\{([a-z0-9_ \-]+)\}/gi,
++            '<span class="yui-pg-ui yui-pg-ui-$1"></span>');
++
++        // Replace each marker with the ui component's render() output
++        markers = Dom.getElementsByClassName('yui-pg-ui','span',container);
++
++        for (i = 0, len = markers.length; i < len; ++i) {
++            this.renderUIComponent(markers[i], id_base);
++        }
++
++        if (!hide) {
++            // Show the container allowing page reflow
++            Dom.setStyle(container,'display','');
++        }
++    },
++
++    /**
++     * Replaces a marker node with a rendered UI component, determined by the
++     * yui-pg-ui-(UI component class name) in the marker's className. e.g.
++     * yui-pg-ui-PageLinks => new YAHOO.widget.Paginator.ui.PageLinks(this)
++     *
++     * @method renderUIComponent
++     * @param marker {HTMLElement} the marker node to replace
++     * @param id_base {String} string base the component's generated id
++     */
++    renderUIComponent : function (marker, id_base) {
++        var par    = marker.parentNode,
++            name   = /yui-pg-ui-(\w+)/.exec(marker.className),
++            UIComp = name && Paginator.ui[name[1]],
++            comp;
++
++        if (isFunction(UIComp)) {
++            comp = new UIComp(this);
++            if (isFunction(comp.render)) {
++                par.replaceChild(comp.render(id_base),marker);
++            }
++        }
++    },
++
++    /**
++     * Removes controls from the page and unhooks events.
++     * @method destroy
++     */
++    destroy : function () {
++        this.fireEvent('beforeDestroy');
++        this.fireEvent('destroy');
++
++        this.setAttributeConfig('rendered',{value:false});
++        this.unsubscribeAll();
++    },
++
++    /**
++     * Hides the containers if there is only one page of data and attribute
++     * alwaysVisible is false.  Conversely, it displays the containers if either
++     * there is more than one page worth of data or alwaysVisible is turned on.
++     * @method updateVisibility
++     */
++    updateVisibility : function (e) {
++        var alwaysVisible = this.get('alwaysVisible'),
++            totalRecords,visible,rpp,rppOptions,i,len;
++
++        if (!e || e.type === 'alwaysVisibleChange' || !alwaysVisible) {
++            totalRecords = this.get('totalRecords');
++            visible      = true;
++            rpp          = this.get('rowsPerPage');
++            rppOptions   = this.get('rowsPerPageOptions');
++
++            if (isArray(rppOptions)) {
++                for (i = 0, len = rppOptions.length; i < len; ++i) {
++                    rpp = Math.min(rpp,rppOptions[i]);
++                }
++            }
++
++            if (totalRecords !== Paginator.VALUE_UNLIMITED &&
++                totalRecords <= rpp) {
++                visible = false;
++            }
++
++            visible = visible || alwaysVisible;
++
++            for (i = 0, len = this._containers.length; i < len; ++i) {
++                Dom.setStyle(this._containers[i],'display',
++                    visible ? '' : 'none');
++            }
++        }
++    },
++
++
++
++
++    /**
++     * Get the configured container nodes
++     * @method getContainerNodes
++     * @return {Array} array of HTMLElement nodes
++     */
++    getContainerNodes : function () {
++        return this._containers;
++    },
++
++    /**
++     * Get the total number of pages in the data set according to the current
++     * rowsPerPage and totalRecords values.  If totalRecords is not set, or
++     * set to YAHOO.widget.Paginator.VALUE_UNLIMITED, returns
++     * YAHOO.widget.Paginator.VALUE_UNLIMITED.
++     * @method getTotalPages
++     * @return {number}
++     */
++    getTotalPages : function () {
++        var records = this.get('totalRecords'),
++            perPage = this.get('rowsPerPage');
++
++        // rowsPerPage not set.  Can't calculate
++        if (!perPage) {
++            return null;
++        }
++
++        if (records === Paginator.VALUE_UNLIMITED) {
++            return Paginator.VALUE_UNLIMITED;
++        }
++
++        return Math.ceil(records/perPage);
++    },
++
++    /**
++     * Does the requested page have any records?
++     * @method hasPage
++     * @param page {number} the page in question
++     * @return {boolean}
++     */
++    hasPage : function (page) {
++        if (!lang.isNumber(page) || page < 1) {
++            return false;
++        }
++
++        var totalPages = this.getTotalPages();
++
++        return (totalPages === Paginator.VALUE_UNLIMITED || totalPages >= page);
++    },
++
++    /**
++     * Get the page number corresponding to the current record offset.
++     * @method getCurrentPage
++     * @return {number}
++     */
++    getCurrentPage : function () {
++        var perPage = this.get('rowsPerPage');
++        if (!perPage || !this.get('totalRecords')) {
++            return 0;
++        }
++        return Math.floor(this.get('recordOffset') / perPage) + 1;
++    },
++
++    /**
++     * Are there records on the next page?
++     * @method hasNextPage
++     * @return {boolean}
++     */
++    hasNextPage : function () {
++        var currentPage = this.getCurrentPage(),
++            totalPages  = this.getTotalPages();
++
++        return currentPage && (totalPages === Paginator.VALUE_UNLIMITED || currentPage < totalPages);
++    },
++
++    /**
++     * Get the page number of the next page, or null if the current page is the
++     * last page.
++     * @method getNextPage
++     * @return {number}
++     */
++    getNextPage : function () {
++        return this.hasNextPage() ? this.getCurrentPage() + 1 : null;
++    },
++
++    /**
++     * Is there a page before the current page?
++     * @method hasPreviousPage
++     * @return {boolean}
++     */
++    hasPreviousPage : function () {
++        return (this.getCurrentPage() > 1);
++    },
++
++    /**
++     * Get the page number of the previous page, or null if the current page
++     * is the first page.
++     * @method getPreviousPage
++     * @return {number}
++     */
++    getPreviousPage : function () {
++        return (this.hasPreviousPage() ? this.getCurrentPage() - 1 : 1);
++    },
++
++    /**
++     * Get the start and end record indexes of the specified page.
++     * @method getPageRecords
++     * @param page {number} (optional) The page (current page if not specified)
++     * @return {Array} [start_index, end_index]
++     */
++    getPageRecords : function (page) {
++        if (!lang.isNumber(page)) {
++            page = this.getCurrentPage();
++        }
++
++        var perPage = this.get('rowsPerPage'),
++            records = this.get('totalRecords'),
++            start, end;
++
++        if (!page || !perPage) {
++            return null;
++        }
++
++        start = (page - 1) * perPage;
++        if (records !== Paginator.VALUE_UNLIMITED) {
++            if (start >= records) {
++                return null;
++            }
++            end = Math.min(start + perPage, records) - 1;
++        } else {
++            end = start + perPage - 1;
++        }
++
++        return [start,end];
++    },
++
++    /**
++     * Set the current page to the provided page number if possible.
++     * @method setPage
++     * @param newPage {number} the new page number
++     * @param silent {boolean} whether to forcibly avoid firing the
++     * changeRequest event
++     */
++    setPage : function (page,silent) {
++        if (this.hasPage(page) && page !== this.getCurrentPage()) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('recordOffset', (page - 1) * this.get('rowsPerPage'));
++            } else {
++                this.fireEvent('changeRequest',this.getState({'page':page}));
++            }
++        }
++    },
++
++    /**
++     * Get the number of rows per page.
++     * @method getRowsPerPage
++     * @return {number} the current setting of the rowsPerPage attribute
++     */
++    getRowsPerPage : function () {
++        return this.get('rowsPerPage');
++    },
++
++    /**
++     * Set the number of rows per page.
++     * @method setRowsPerPage
++     * @param rpp {number} the new number of rows per page
++     * @param silent {boolean} whether to forcibly avoid firing the
++     * changeRequest event
++     */
++    setRowsPerPage : function (rpp,silent) {
++        if (Paginator.isNumeric(rpp) && +rpp > 0 &&
++            +rpp !== this.get('rowsPerPage')) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('rowsPerPage',rpp);
++            } else {
++                this.fireEvent('changeRequest',
++                    this.getState({'rowsPerPage':+rpp}));
++            }
++        }
++    },
++
++    /**
++     * Get the total number of records.
++     * @method getTotalRecords
++     * @return {number} the current setting of totalRecords attribute
++     */
++    getTotalRecords : function () {
++        return this.get('totalRecords');
++    },
++
++    /**
++     * Set the total number of records.
++     * @method setTotalRecords
++     * @param total {number} the new total number of records
++     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
++     */
++    setTotalRecords : function (total,silent) {
++        if (Paginator.isNumeric(total) && +total >= 0 &&
++            +total !== this.get('totalRecords')) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('totalRecords',total);
++            } else {
++                this.fireEvent('changeRequest',
++                    this.getState({'totalRecords':+total}));
++            }
++        }
++    },
++
++    /**
++     * Get the index of the first record on the current page
++     * @method getStartIndex
++     * @return {number} the index of the first record on the current page
++     */
++    getStartIndex : function () {
++        return this.get('recordOffset');
++    },
++
++    /**
++     * Move the record offset to a new starting index.  This will likely cause
++     * the calculated current page to change.  You should probably use setPage.
++     * @method setStartIndex
++     * @param offset {number} the new record offset
++     * @param silent {boolean} whether to forcibly avoid firing the changeRequest event
++     */
++    setStartIndex : function (offset,silent) {
++        if (Paginator.isNumeric(offset) && +offset >= 0 &&
++            +offset !== this.get('recordOffset')) {
++            if (this.get('updateOnChange') || silent) {
++                this.set('recordOffset',offset);
++            } else {
++                this.fireEvent('changeRequest',
++                    this.getState({'recordOffset':+offset}));
++            }
++        }
++    },
++
++    /**
++     * Get an object literal describing the current state of the paginator.  If
++     * an object literal of proposed values is passed, the proposed state will
++     * be returned as an object literal with the following keys:
++     * <ul>
++     * <li>paginator - instance of the Paginator</li>
++     * <li>page - number</li>
++     * <li>totalRecords - number</li>
++     * <li>recordOffset - number</li>
++     * <li>rowsPerPage - number</li>
++     * <li>records - [ start_index, end_index ]</li>
++     * <li>before - (OPTIONAL) { state object literal for current state }</li>
++     * </ul>
++     * @method getState
++     * @return {object}
++     * @param changes {object} OPTIONAL object literal with proposed values
++     * Supported change keys include:
++     * <ul>
++     * <li>rowsPerPage</li>
++     * <li>totalRecords</li>
++     * <li>recordOffset OR</li>
++     * <li>page</li>
++     * </ul>
++     */
++    getState : function (changes) {
++        var UNLIMITED = Paginator.VALUE_UNLIMITED,
++            M = Math, max = M.max, ceil = M.ceil,
++            currentState, state, offset;
++
++        function normalizeOffset(offset,total,rpp) {
++            if (offset <= 0 || total === 0) {
++                return 0;
++            }
++            if (total === UNLIMITED || total > offset) {
++                return offset - (offset % rpp);
++            }
++            return total - (total % rpp || rpp);
++        }
++
++        currentState = {
++            paginator    : this,
++            totalRecords : this.get('totalRecords'),
++            rowsPerPage  : this.get('rowsPerPage'),
++            records      : this.getPageRecords()
++        };
++        currentState.recordOffset = normalizeOffset(
++                                        this.get('recordOffset'),
++                                        currentState.totalRecords,
++                                        currentState.rowsPerPage);
++        currentState.page = ceil(currentState.recordOffset /
++                                 currentState.rowsPerPage) + 1;
++
++        if (!changes) {
++            return currentState;
++        }
++
++        state = {
++            paginator    : this,
++            before       : currentState,
++
++            rowsPerPage  : changes.rowsPerPage || currentState.rowsPerPage,
++            totalRecords : (Paginator.isNumeric(changes.totalRecords) ?
++                                max(changes.totalRecords,UNLIMITED) :
++                                +currentState.totalRecords)
++        };
++
++        if (state.totalRecords === 0) {
++            state.recordOffset =
++            state.page         = 0;
++        } else {
++            offset = Paginator.isNumeric(changes.page) ?
++                        (changes.page - 1) * state.rowsPerPage :
++                        Paginator.isNumeric(changes.recordOffset) ?
++                            +changes.recordOffset :
++                            currentState.recordOffset;
++
++            state.recordOffset = normalizeOffset(offset,
++                                    state.totalRecords,
++                                    state.rowsPerPage);
++
++            state.page = ceil(state.recordOffset / state.rowsPerPage) + 1;
++        }
++
++        state.records = [ state.recordOffset,
++                          state.recordOffset + state.rowsPerPage - 1 ];
++
++        // limit upper index to totalRecords - 1
++        if (state.totalRecords !== UNLIMITED &&
++            state.recordOffset < state.totalRecords && state.records &&
++            state.records[1] > state.totalRecords - 1) {
++            state.records[1] = state.totalRecords - 1;
++        }
++
++        return state;
++    },
++
++    /**
++     * Convenience method to facilitate setting state attributes rowsPerPage,
++     * totalRecords, recordOffset in batch.  Also supports calculating
++     * recordOffset from state.page if state.recordOffset is not provided.
++     * Fires only a single pageChange event, if appropriate.
++     * This will not fire a changeRequest event.
++     * @method setState
++     * @param state {Object} Object literal of attribute:value pairs to set
++     */
++    setState : function (state) {
++        if (isObject(state)) {
++            // get flux state based on current state with before state as well
++            this._state = this.getState({});
++
++            // use just the state props from the input obj
++            state = {
++                page         : state.page,
++                rowsPerPage  : state.rowsPerPage,
++                totalRecords : state.totalRecords,
++                recordOffset : state.recordOffset
++            };
++
++            // calculate recordOffset from page if recordOffset not specified.
++            // not using lang.isNumber for support of numeric strings
++            if (state.page && state.recordOffset === undefined) {
++                state.recordOffset = (state.page - 1) *
++                    (state.rowsPerPage || this.get('rowsPerPage'));
++            }
++
++            this._batch = true;
++            this._pageChanged = false;
++
++            for (var k in state) {
++                if (state.hasOwnProperty(k) && this._configs.hasOwnProperty(k)) {
++                    this.set(k,state[k]);
++                }
++            }
++
++            this._batch = false;
++            
++            if (this._pageChanged) {
++                this._pageChanged = false;
++
++                this._firePageChange(this.getState(this._state));
++            }
++        }
++    }
++};
++
++lang.augmentProto(Paginator, YAHOO.util.AttributeProvider);
++
++YAHOO.widget.Paginator = Paginator;
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the textual report of current pagination status.
++ * E.g. "Now viewing page 1 of 13".
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class CurrentPageReport
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.CurrentPageReport = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange', this.update,this,true);
++    p.subscribe('rowsPerPageChange', this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('pageReportTemplateChange', this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    //TODO: make this work
++    p.subscribe('pageReportClassChange', this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.CurrentPageReport.init = function (p) {
++
++    /**
++     * CSS class assigned to the span containing the info.
++     * @attribute pageReportClass
++     * @default 'yui-pg-current'
++     */
++    p.setAttributeConfig('pageReportClass', {
++        value : 'yui-pg-current',
++        validator : l.isString
++    });
++
++    /**
++     * Used as innerHTML for the span.  Place holders in the form of {name}
++     * will be replaced with the so named value from the key:value map
++     * generated by the function held in the pageReportValueGenerator attribute.
++     * @attribute pageReportTemplate
++     * @default '({currentPage} of {totalPages})'
++     * @see pageReportValueGenerator attribute
++     */
++    p.setAttributeConfig('pageReportTemplate', {
++        value : '({currentPage} of {totalPages})',
++        validator : l.isString
++    });
++
++    /**
++     * Function to generate the value map used to populate the
++     * pageReportTemplate.  The function is passed the Paginator instance as a
++     * parameter.  The default function returns a map with the following keys:
++     * <ul>
++     * <li>currentPage</li>
++     * <li>totalPages</li>
++     * <li>startIndex</li>
++     * <li>endIndex</li>
++     * <li>startRecord</li>
++     * <li>endRecord</li>
++     * <li>totalRecords</li>
++     * </ul>
++     * @attribute pageReportValueGenarator
++     */
++    p.setAttributeConfig('pageReportValueGenerator', {
++        value : function (paginator) {
++            var curPage = paginator.getCurrentPage(),
++                records = paginator.getPageRecords();
++
++            return {
++                'currentPage' : records ? curPage : 0,
++                'totalPages'  : paginator.getTotalPages(),
++                'startIndex'  : records ? records[0] : 0,
++                'endIndex'    : records ? records[1] : 0,
++                'startRecord' : records ? records[0] + 1 : 0,
++                'endRecord'   : records ? records[1] + 1 : 0,
++                'totalRecords': paginator.get('totalRecords')
++            };
++        },
++        validator : l.isFunction
++    });
++};
++
++/**
++ * Replace place holders in a string with the named values found in an
++ * object literal.
++ * @static
++ * @method sprintf
++ * @param template {string} The content string containing place holders
++ * @param values {object} The key:value pairs used to replace the place holders
++ * @return {string}
++ */
++Paginator.ui.CurrentPageReport.sprintf = function (template, values) {
++    return template.replace(/\{([\w\s\-]+)\}/g, function (x,key) {
++            return (key in values) ? values[key] : '';
++        });
++};
++
++Paginator.ui.CurrentPageReport.prototype = {
++
++    /**
++     * Span node containing the formatted info
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span : null,
++
++
++    /**
++     * Generate the span containing info formatted per the pageReportTemplate
++     * attribute.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        this.span = document.createElement('span');
++        this.span.id        = id_base + '-page-report';
++        this.span.className = this.paginator.get('pageReportClass');
++        this.update();
++        
++        return this.span;
++    },
++    
++    /**
++     * Regenerate the content of the span if appropriate. Calls
++     * CurrentPageReport.sprintf with the value of the pageReportTemplate
++     * attribute and the value map returned from pageReportValueGenerator
++     * function.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        this.span.innerHTML = Paginator.ui.CurrentPageReport.sprintf(
++            this.paginator.get('pageReportTemplate'),
++            this.paginator.get('pageReportValueGenerator')(this.paginator));
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * removal.
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        this.span.parentNode.removeChild(this.span);
++        this.span = null;
++    }
++
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the page links
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class PageLinks
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.PageLinks = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('pageLinksChange',   this.rebuild,this,true);
++    p.subscribe('pageLinkClassChange', this.rebuild,this,true);
++    p.subscribe('currentPageClassChange', this.rebuild,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    //TODO: Make this work
++    p.subscribe('pageLinksContainerClassChange', this.rebuild,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.PageLinks.init = function (p) {
++
++    /**
++     * CSS class assigned to each page link/span.
++     * @attribute pageLinkClass
++     * @default 'yui-pg-page'
++     */
++    p.setAttributeConfig('pageLinkClass', {
++        value : 'yui-pg-page',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the current page span.
++     * @attribute currentPageClass
++     * @default 'yui-pg-current-page'
++     */
++    p.setAttributeConfig('currentPageClass', {
++        value : 'yui-pg-current-page',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the span containing the page links.
++     * @attribute pageLinksContainerClass
++     * @default 'yui-pg-pages'
++     */
++    p.setAttributeConfig('pageLinksContainerClass', {
++        value : 'yui-pg-pages',
++        validator : l.isString
++    });
++
++    /**
++     * Maximum number of page links to display at one time.
++     * @attribute pageLinks
++     * @default 10
++     */
++    p.setAttributeConfig('pageLinks', {
++        value : 10,
++        validator : Paginator.isNumeric
++    });
++
++    /**
++     * Function used generate the innerHTML for each page link/span.  The
++     * function receives as parameters the page number and a reference to the
++     * paginator object.
++     * @attribute pageLabelBuilder
++     * @default function (page, paginator) { return page; }
++     */
++    p.setAttributeConfig('pageLabelBuilder', {
++        value : function (page, paginator) { return page; },
++        validator : l.isFunction
++    });
++};
++
++/**
++ * Calculates start and end page numbers given a current page, attempting
++ * to keep the current page in the middle
++ * @static
++ * @method calculateRange
++ * @param {int} currentPage  The current page
++ * @param {int} totalPages   (optional) Maximum number of pages
++ * @param {int} numPages     (optional) Preferred number of pages in range
++ * @return {Array} [start_page_number, end_page_number]
++ */
++Paginator.ui.PageLinks.calculateRange = function (currentPage,totalPages,numPages) {
++    var UNLIMITED = Paginator.VALUE_UNLIMITED,
++        start, end, delta;
++
++    // Either has no pages, or unlimited pages.  Show none.
++    if (!currentPage || numPages === 0 || totalPages === 0 ||
++        (totalPages === UNLIMITED && numPages === UNLIMITED)) {
++        return [0,-1];
++    }
++
++    // Limit requested pageLinks if there are fewer totalPages
++    if (totalPages !== UNLIMITED) {
++        numPages = numPages === UNLIMITED ?
++                    totalPages :
++                    Math.min(numPages,totalPages);
++    }
++
++    // Determine start and end, trying to keep current in the middle
++    start = Math.max(1,Math.ceil(currentPage - (numPages/2)));
++    if (totalPages === UNLIMITED) {
++        end = start + numPages - 1;
++    } else {
++        end = Math.min(totalPages, start + numPages - 1);
++    }
++
++    // Adjust the start index when approaching the last page
++    delta = numPages - (end - start + 1);
++    start = Math.max(1, start - delta);
++
++    return [start,end];
++};
++
++
++Paginator.ui.PageLinks.prototype = {
++
++    /**
++     * Current page
++     * @property current
++     * @type number
++     * @private
++     */
++    current     : 0,
++
++    /**
++     * Span node containing the page links
++     * @property container
++     * @type HTMLElement
++     * @private
++     */
++    container   : null,
++
++
++    /**
++     * Generate the nodes and return the container node containing page links
++     * appropriate to the current pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p = this.paginator;
++
++        // Set up container
++        this.container = document.createElement('span');
++        this.container.id        = id_base + '-pages';
++        this.container.className = p.get('pageLinksContainerClass');
++        YAHOO.util.Event.on(this.container,'click',this.onClick,this,true);
++
++        // Call update, flagging a need to rebuild
++        this.update({newValue : null, rebuild : true});
++
++        return this.container;
++    },
++
++    /**
++     * Update the links if appropriate
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var p           = this.paginator,
++            currentPage = p.getCurrentPage();
++
++        // Replace content if there's been a change
++        if (this.current !== currentPage || !currentPage || e.rebuild) {
++            var labelBuilder = p.get('pageLabelBuilder'),
++                range        = Paginator.ui.PageLinks.calculateRange(
++                                currentPage,
++                                p.getTotalPages(),
++                                p.get('pageLinks')),
++                start        = range[0],
++                end          = range[1],
++                content      = '',
++                linkTemplate,i;
++
++            linkTemplate = '<a href="#" class="' + p.get('pageLinkClass') +
++                           '" page="';
++            for (i = start; i <= end; ++i) {
++                if (i === currentPage) {
++                    content +=
++                        '<span class="' + p.get('currentPageClass') + ' ' +
++                                          p.get('pageLinkClass') + '">' +
++                        labelBuilder(i,p) + '</span>';
++                } else {
++                    content +=
++                        linkTemplate + i + '">' + labelBuilder(i,p) + '</a>';
++                }
++            }
++
++            this.container.innerHTML = content;
++        }
++    },
++
++    /**
++     * Force a rebuild of the page links.
++     * @method rebuild
++     * @param e {CustomEvent} The calling change event
++     */
++    rebuild     : function (e) {
++        e.rebuild = true;
++        this.update(e);
++    },
++
++    /**
++     * Removes the page links container node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.container,true);
++        this.container.parentNode.removeChild(this.container);
++        this.container = null;
++    },
++
++    /**
++     * Listener for the container's onclick event.  Looks for qualifying link
++     * clicks, and pulls the page number from the link's page attribute.
++     * Sends link's page attribute to the Paginator's setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        var t = YAHOO.util.Event.getTarget(e);
++        if (t && YAHOO.util.Dom.hasClass(t,
++                        this.paginator.get('pageLinkClass'))) {
++
++            YAHOO.util.Event.stopEvent(e);
++
++            this.paginator.setPage(parseInt(t.getAttribute('page'),10));
++        }
++    }
++
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the first page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class FirstPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.FirstPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('firstPageLinkLabelChange',this.update,this,true);
++    p.subscribe('firstPageLinkClassChange',this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.FirstPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the first page link/span.
++     * @attribute firstPageLinkLabel
++     * @default '&lt;&lt; first'
++     */
++    p.setAttributeConfig('firstPageLinkLabel', {
++        value : '&lt;&lt; first',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute firstPageLinkClass
++     * @default 'yui-pg-first'
++     */
++    p.setAttributeConfig('firstPageLinkClass', {
++        value : 'yui-pg-first',
++        validator : l.isString
++    });
++};
++
++// Instance members and methods
++Paginator.ui.FirstPageLink.prototype = {
++
++    /**
++     * The currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('firstPageLinkClass'),
++            label = p.get('firstPageLinkLabel');
++
++        this.link     = document.createElement('a');
++        this.span     = document.createElement('span');
++
++        this.link.id        = id_base + '-first-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-first-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
++        return this.current;
++    },
++
++    /**
++     * Swap the link and span nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var par = this.current ? this.current.parentNode : null;
++        if (this.paginator.getCurrentPage() > 1) {
++            if (par && this.current === this.span) {
++                par.replaceChild(this.link,this.current);
++                this.current = this.link;
++            }
++        } else {
++            if (par && this.current === this.link) {
++                par.replaceChild(this.span,this.current);
++                this.current = this.span;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * removal.
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Pass new value to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(1);
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the last page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class LastPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.LastPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('lastPageLinkLabelChange',this.update,this,true);
++    p.subscribe('lastPageLinkClassChange', this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param paginator {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.LastPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the last page link/span.
++     * @attribute lastPageLinkLabel
++     * @default 'last &gt;&gt;'
++     */
++    p.setAttributeConfig('lastPageLinkLabel', {
++        value : 'last &gt;&gt;',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute lastPageLinkClass
++     * @default 'yui-pg-last'
++     */
++    p.setAttributeConfig('lastPageLinkClass', {
++        value : 'yui-pg-last',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.LastPageLink.prototype = {
++
++    /**
++     * Currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link HTMLElement node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++    /**
++     * Empty place holder node for when the last page link is inappropriate to
++     * display in any form (unlimited paging).
++     * @property na
++     * @type HTMLElement
++     * @private
++     */
++    na        : null,
++
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('lastPageLinkClass'),
++            label = p.get('lastPageLinkLabel'),
++            last  = p.getTotalPages();
++
++        this.link = document.createElement('a');
++        this.span = document.createElement('span');
++        this.na   = this.span.cloneNode(false);
++
++        this.link.id        = id_base + '-last-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-last-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.na.id = id_base + '-last-na';
++
++        switch (last) {
++            case Paginator.VALUE_UNLIMITED :
++                    this.current = this.na; break;
++            case p.getCurrentPage() :
++                    this.current = this.span; break;
++            default :
++                    this.current = this.link;
++        }
++
++        return this.current;
++    },
++
++    /**
++     * Swap the link, span, and na nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event (ignored)
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var par   = this.current ? this.current.parentNode : null,
++            after = this.link;
++
++        if (par) {
++            switch (this.paginator.getTotalPages()) {
++                case Paginator.VALUE_UNLIMITED :
++                        after = this.na; break;
++                case this.paginator.getCurrentPage() :
++                        after = this.span; break;
++            }
++
++            if (this.current !== after) {
++                par.replaceChild(after,this.current);
++                this.current = after;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Passes to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(this.paginator.getTotalPages());
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the next page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class NextPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.NextPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange', this.update,this,true);
++    p.subscribe('rowsPerPageChange', this.update,this,true);
++    p.subscribe('totalRecordsChange', this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('nextPageLinkLabelChange', this.update,this,true);
++    p.subscribe('nextPageLinkClassChange', this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.NextPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the next page link/span.
++     * @attribute nextPageLinkLabel
++     * @default 'next &gt;'
++     */
++    p.setAttributeConfig('nextPageLinkLabel', {
++        value : 'next &gt;',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute nextPageLinkClass
++     * @default 'yui-pg-next'
++     */
++    p.setAttributeConfig('nextPageLinkClass', {
++        value : 'yui-pg-next',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.NextPageLink.prototype = {
++
++    /**
++     * Currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('nextPageLinkClass'),
++            label = p.get('nextPageLinkLabel'),
++            last  = p.getTotalPages();
++
++        this.link     = document.createElement('a');
++        this.span     = document.createElement('span');
++
++        this.link.id        = id_base + '-next-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-next-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.current = p.getCurrentPage() === last ? this.span : this.link;
++
++        return this.current;
++    },
++
++    /**
++     * Swap the link and span nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var last = this.paginator.getTotalPages(),
++            par  = this.current ? this.current.parentNode : null;
++
++        if (this.paginator.getCurrentPage() !== last) {
++            if (par && this.current === this.span) {
++                par.replaceChild(this.link,this.current);
++                this.current = this.link;
++            }
++        } else if (this.current === this.link) {
++            if (par) {
++                par.replaceChild(this.span,this.current);
++                this.current = this.span;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Passes to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(this.paginator.getNextPage());
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the link to jump to the previous page.
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class PreviousPageLink
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.PreviousPageLink = function (p) {
++    this.paginator = p;
++
++    p.subscribe('recordOffsetChange',this.update,this,true);
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('totalRecordsChange',this.update,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('previousPageLinkLabelChange',this.update,this,true);
++    p.subscribe('previousPageLinkClassChange',this.update,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.PreviousPageLink.init = function (p) {
++
++    /**
++     * Used as innerHTML for the previous page link/span.
++     * @attribute previousPageLinkLabel
++     * @default '&lt; prev'
++     */
++    p.setAttributeConfig('previousPageLinkLabel', {
++        value : '&lt; prev',
++        validator : l.isString
++    });
++
++    /**
++     * CSS class assigned to the link/span
++     * @attribute previousPageLinkClass
++     * @default 'yui-pg-previous'
++     */
++    p.setAttributeConfig('previousPageLinkClass', {
++        value : 'yui-pg-previous',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.PreviousPageLink.prototype = {
++
++    /**
++     * Currently placed HTMLElement node
++     * @property current
++     * @type HTMLElement
++     * @private
++     */
++    current   : null,
++
++    /**
++     * Link node
++     * @property link
++     * @type HTMLElement
++     * @private
++     */
++    link      : null,
++
++    /**
++     * Span node (inactive link)
++     * @property span
++     * @type HTMLElement
++     * @private
++     */
++    span      : null,
++
++
++    /**
++     * Generate the nodes and return the appropriate node given the current
++     * pagination state.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        var p     = this.paginator,
++            c     = p.get('previousPageLinkClass'),
++            label = p.get('previousPageLinkLabel');
++
++        this.link     = document.createElement('a');
++        this.span     = document.createElement('span');
++
++        this.link.id        = id_base + '-prev-link';
++        this.link.href      = '#';
++        this.link.className = c;
++        this.link.innerHTML = label;
++        YAHOO.util.Event.on(this.link,'click',this.onClick,this,true);
++
++        this.span.id        = id_base + '-prev-span';
++        this.span.className = c;
++        this.span.innerHTML = label;
++
++        this.current = p.getCurrentPage() > 1 ? this.link : this.span;
++        return this.current;
++    },
++
++    /**
++     * Swap the link and span nodes if appropriate.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var par = this.current ? this.current.parentNode : null;
++        if (this.paginator.getCurrentPage() > 1) {
++            if (par && this.current === this.span) {
++                par.replaceChild(this.link,this.current);
++                this.current = this.link;
++            }
++        } else {
++            if (par && this.current === this.link) {
++                par.replaceChild(this.span,this.current);
++                this.current = this.span;
++            }
++        }
++    },
++
++    /**
++     * Removes the link/span node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.link);
++        this.current.parentNode.removeChild(this.current);
++        this.link = this.span = null;
++    },
++
++    /**
++     * Listener for the link's onclick event.  Passes to setPage method.
++     * @method onClick
++     * @param e {DOMEvent} The click event
++     */
++    onClick : function (e) {
++        YAHOO.util.Event.stopEvent(e);
++        this.paginator.setPage(this.paginator.getPreviousPage());
++    }
++};
++
++})();
++(function () {
++
++var Paginator = YAHOO.widget.Paginator,
++    l         = YAHOO.lang;
++
++/**
++ * ui Component to generate the rows-per-page dropdown
++ *
++ * @namespace YAHOO.widget.Paginator.ui
++ * @class RowsPerPageDropdown
++ * @for YAHOO.widget.Paginator
++ *
++ * @constructor
++ * @param p {Pagintor} Paginator instance to attach to
++ */
++Paginator.ui.RowsPerPageDropdown = function (p) {
++    this.paginator = p;
++
++    p.subscribe('rowsPerPageChange',this.update,this,true);
++    p.subscribe('rowsPerPageOptionsChange',this.rebuild,this,true);
++    p.subscribe('totalRecordsChange',this._handleTotalRecordsChange,this,true);
++    p.subscribe('destroy',this.destroy,this,true);
++
++    // TODO: make this work
++    p.subscribe('rowsPerPageDropdownClassChange',this.rebuild,this,true);
++};
++
++/**
++ * Decorates Paginator instances with new attributes. Called during
++ * Paginator instantiation.
++ * @method init
++ * @param p {Paginator} Paginator instance to decorate
++ * @static
++ */
++Paginator.ui.RowsPerPageDropdown.init = function (p) {
++
++    /**
++     * Array of available rows-per-page sizes.  Converted into select options.
++     * Array values may be positive integers or object literals in the form<br>
++     * { value : NUMBER, text : STRING }
++     * @attribute rowsPerPageOptions
++     * @default []
++     */
++    p.setAttributeConfig('rowsPerPageOptions', {
++        value : [],
++        validator : l.isArray
++    });
++
++    /**
++     * CSS class assigned to the select node
++     * @attribute rowsPerPageDropdownClass
++     * @default 'yui-pg-rpp-options'
++     */
++    p.setAttributeConfig('rowsPerPageDropdownClass', {
++        value : 'yui-pg-rpp-options',
++        validator : l.isString
++    });
++};
++
++Paginator.ui.RowsPerPageDropdown.prototype = {
++
++    /**
++     * select node
++     * @property select
++     * @type HTMLElement
++     * @private
++     */
++    select  : null,
++
++
++    /**
++     * option node for the optional All value
++     *
++     * @property all
++     * @type HTMLElement
++     * @protected
++     */
++    all : null,
++
++    /**
++     * Generate the select and option nodes and returns the select node.
++     * @method render
++     * @param id_base {string} used to create unique ids for generated nodes
++     * @return {HTMLElement}
++     */
++    render : function (id_base) {
++        this.select = document.createElement('select');
++        this.select.id        = id_base + '-rpp';
++        this.select.className = this.paginator.get('rowsPerPageDropdownClass');
++        this.select.title = 'Rows per page';
++
++        YAHOO.util.Event.on(this.select,'change',this.onChange,this,true);
++
++        this.rebuild();
++
++        return this.select;
++    },
++
++    /**
++     * (Re)generate the select options.
++     * @method rebuild
++     */
++    rebuild : function (e) {
++        var p       = this.paginator,
++            sel     = this.select,
++            options = p.get('rowsPerPageOptions'),
++            opt,cfg,val,i,len;
++
++        this.all = null;
++
++        for (i = 0, len = options.length; i < len; ++i) {
++            cfg = options[i];
++            opt = sel.options[i] ||
++                  sel.appendChild(document.createElement('option'));
++            val = l.isValue(cfg.value) ? cfg.value : cfg;
++            opt.innerHTML = l.isValue(cfg.text) ? cfg.text : cfg;
++
++            if (l.isString(val) && val.toLowerCase() === 'all') {
++                this.all  = opt;
++                opt.value = p.get('totalRecords');
++            } else{
++                opt.value = val;
++            }
++
++        }
++
++        while (sel.options.length > options.length) {
++            sel.removeChild(sel.firstChild);
++        }
++
++        this.update();
++    },
++
++    /**
++     * Select the appropriate option if changed.
++     * @method update
++     * @param e {CustomEvent} The calling change event
++     */
++    update : function (e) {
++        if (e && e.prevValue === e.newValue) {
++            return;
++        }
++
++        var rpp     = this.paginator.get('rowsPerPage')+'',
++            options = this.select.options,
++            i,len;
++
++        for (i = 0, len = options.length; i < len; ++i) {
++            if (options[i].value === rpp) {
++                options[i].selected = true;
++                break;
++            }
++        }
++    },
++
++    /**
++     * Listener for the select's onchange event.  Sent to setRowsPerPage method.
++     * @method onChange
++     * @param e {DOMEvent} The change event
++     */
++    onChange : function (e) {
++        this.paginator.setRowsPerPage(
++                parseInt(this.select.options[this.select.selectedIndex].value,10));
++    },
++
++    /**
++     * Updates the all option value (and Paginator's rowsPerPage attribute if
++     * necessary) in response to a change in the Paginator's totalRecords.
++     *
++     * @method _handleTotalRecordsChange
++     * @param e {Event} attribute change event
++     * @protected
++     */
++    _handleTotalRecordsChange : function (e) {
++        if (!this.all || (e && e.prevValue === e.newValue)) {
++            return;
++        }
++
++        this.all.value = e.newValue;
++        if (this.all.selected) {
++            this.paginator.set('rowsPerPage',e.newValue);
++        }
++    },
++
++    /**
++     * Removes the select node and clears event listeners
++     * @method destroy
++     * @private
++     */
++    destroy : function () {
++        YAHOO.util.Event.purgeElement(this.select);
++        this.select.parentNode.removeChild(this.select);
++        this.select = null;
++    }
++};
++
++})();
++YAHOO.register("paginator", YAHOO.widget.Paginator, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/profiler/profiler-debug.js b/pylons_app/public/js/yui/profiler/profiler-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profiler/profiler-debug.js
+@@ -0,0 +1,557 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");
++
++/**
++ * The YUI JavaScript profiler.
++ * @module profiler
++ * @namespace YAHOO.tool
++ * @requires yahoo
++ */
++
++/**
++ * Profiles functions in JavaScript.
++ * @namespace YAHOO.tool
++ * @class Profiler
++ * @static
++ */
++YAHOO.tool.Profiler = function(){
++
++
++    //-------------------------------------------------------------------------
++    // Private Variables and Functions
++    //-------------------------------------------------------------------------
++    
++    var container   = {},   //Container object on which to put the original unprofiled methods.
++        report      = {},   //Profiling information for functions
++        stopwatches = {},   //Additional stopwatch information
++        
++        WATCH_STARTED   = 0,
++        WATCH_STOPPED   = 1,
++        WATCH_PAUSED    = 2,    
++        
++        lang    = YAHOO.lang;
++
++    /**
++     * Creates a report object with the given name.
++     * @param {String} name The name to store for the report object.
++     * @return {Void}
++     * @method createReport
++     * @private
++     */
++    function createReport(name){
++        report[name] = {
++            calls: 0,
++            max: 0,
++            min: 0,
++            avg: 0,
++            points: []
++        };      
++    }
++    
++    /**
++     * Called when a method ends execution. Marks the start and end time of the 
++     * method so it can calculate how long the function took to execute. Also 
++     * updates min/max/avg calculations for the function.
++     * @param {String} name The name of the function to mark as stopped.
++     * @param {int} duration The number of milliseconds it took the function to
++     *      execute.
++     * @return {Void}
++     * @method saveDataPoint
++     * @private
++     * @static
++     */
++    function saveDataPoint(name, duration){
++
++        //get the function data
++        var functionData /*:Object*/ = report[name];
++        
++        //just in case clear() was called
++        if (!functionData){
++            functionData = createReport(name);
++        }
++    
++        //increment the calls
++        functionData.calls++;
++        functionData.points.push(duration);
++
++        //if it's already been called at least once, do more complex calculations
++        if (functionData.calls > 1) {
++            functionData.avg = ((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;
++            functionData.min = Math.min(functionData.min, duration);
++            functionData.max = Math.max(functionData.max, duration);
++        } else {
++            functionData.avg = duration;
++            functionData.min = duration;
++            functionData.max = duration;
++        }                             
++    
++    }
++
++    //-------------------------------------------------------------------------
++    // Singleton Object
++    //-------------------------------------------------------------------------
++    
++    return {
++    
++        //-------------------------------------------------------------------------
++        // Utility Methods
++        //-------------------------------------------------------------------------        
++        
++        /**
++         * Removes all report data from the profiler.
++         * @param {String} name (Optional) The name of the report to clear. If
++         *      omitted, then all report data is cleared.
++         * @return {Void}
++         * @method clear
++         * @static
++         */
++        clear: function(name){
++            if (lang.isString(name)){
++                delete report[name];
++                delete stopwatches[name];
++            } else {
++                report = {};
++                stopwatches = {};
++            }
++        },
++
++        /**
++         * Returns the uninstrumented version of a function/object.
++         * @param {String} name The name of the function/object to retrieve.
++         * @return {Function|Object} The uninstrumented version of a function/object.
++         * @method getOriginal
++         * @static
++         */    
++        getOriginal: function(name){
++            return container[name];
++        },
++    
++        /**
++         * Instruments a method to have profiling calls.
++         * @param {String} name The name of the report for the function.
++         * @param {Function} method The function to instrument.
++         * @return {Function} An instrumented version of the function.
++         * @method instrument
++         * @static
++         */
++        instrument: function(name, method){
++        
++            //create instrumented version of function
++            var newMethod = function () {
++    
++                var start = new Date(),
++                    retval = method.apply(this, arguments),
++                    stop = new Date();
++                
++                saveDataPoint(name, stop-start);
++                
++                return retval;                
++            
++            };     
++
++            //copy the function properties over
++            lang.augmentObject(newMethod, method);
++            
++            //assign prototype and flag as being profiled
++            newMethod.__yuiProfiled = true;
++            newMethod.prototype = method.prototype;
++            
++            //store original method
++            container[name] = method;
++            container[name].__yuiFuncName = name;
++            
++            //create the report
++            createReport(name);
++
++            //return the new method
++            return newMethod;
++        },    
++        
++        //-------------------------------------------------------------------------
++        // Stopwatch Methods
++        //-------------------------------------------------------------------------        
++        
++        /**
++         * Pauses profiling information for a given name.
++         * @param {String} name The name of the data point.
++         * @return {Void}
++         * @method pause
++         * @static
++         */        
++        pause: function(name){
++            var now = new Date(),
++                stopwatch = stopwatches[name];
++                
++            if (stopwatch && stopwatch.state == WATCH_STARTED){
++                stopwatch.total += (now - stopwatch.start);
++                stopwatch.start = 0;
++                stopwatch.state = WATCH_PAUSED;
++            }
++        
++        },
++        
++        /**
++         * Start profiling information for a given name. The name cannot be the name
++         * of a registered function or object. This is used to start timing for a
++         * particular block of code rather than instrumenting the entire function.
++         * @param {String} name The name of the data point.
++         * @return {Void}
++         * @method start
++         * @static
++         */
++        start: function(name){
++            if(container[name]){
++                throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
++            } else {
++            
++                //create report if necessary
++                if (!report[name]){
++                    createReport(name);
++                }
++                
++                //create stopwatch object if necessary
++                if (!stopwatches[name]){             
++                    stopwatches[name] = {
++                        state: WATCH_STOPPED,
++                        start: 0,
++                        total: 0
++                    };
++                }
++                
++                if (stopwatches[name].state == WATCH_STOPPED){
++                    stopwatches[name].state = WATCH_STARTED;
++                    stopwatches[name].start = new Date();                    
++                }
++
++            }
++        },
++        
++        /**
++         * Stops profiling information for a given name.
++         * @param {String} name The name of the data point.
++         * @return {Void}
++         * @method stop
++         * @static
++         */
++        stop: function(name){
++            var now = new Date(),
++                stopwatch = stopwatches[name];
++                
++            if (stopwatch){
++                if (stopwatch.state == WATCH_STARTED){
++                    saveDataPoint(name, stopwatch.total + (now - stopwatch.start));                    
++                } else if (stopwatch.state == WATCH_PAUSED){
++                    saveDataPoint(name, stopwatch.total);
++                }
++                
++                //reset stopwatch information
++                stopwatch.start = 0;
++                stopwatch.total = 0;
++                stopwatch.state = WATCH_STOPPED;                
++            }
++        },
++    
++        //-------------------------------------------------------------------------
++        // Reporting Methods
++        //-------------------------------------------------------------------------    
++        
++        /**
++         * Returns the average amount of time (in milliseconds) that the function
++         * with the given name takes to execute.
++         * @param {String} name The name of the function whose data should be returned.
++         *      If an object type method, it should be 'constructor.prototype.methodName';
++         *      a normal object method would just be 'object.methodName'.
++         * @return {float} The average time it takes the function to execute.
++         * @method getAverage
++         * @static
++         */
++        getAverage : function (name /*:String*/) /*:float*/ {
++            return report[name].avg;
++        },
++    
++        /**
++         * Returns the number of times that the given function has been called.
++         * @param {String} name The name of the function whose data should be returned.
++         * @return {int} The number of times the function was called.
++         * @method getCallCount
++         * @static
++         */
++        getCallCount : function (name /*:String*/) /*:int*/ {
++            return report[name].calls;    
++        },
++        
++        /**
++         * Returns the maximum amount of time (in milliseconds) that the function
++         * with the given name takes to execute.
++         * @param {String} name The name of the function whose data should be returned.
++         *      If an object type method, it should be 'constructor.prototype.methodName';
++         *      a normal object method would just be 'object.methodName'.
++         * @return {float} The maximum time it takes the function to execute.
++         * @method getMax
++         * @static
++         */
++        getMax : function (name /*:String*/) /*:int*/ {
++            return report[name].max;
++        },
++        
++        /**
++         * Returns the minimum amount of time (in milliseconds) that the function
++         * with the given name takes to execute.
++         * @param {String} name The name of the function whose data should be returned.
++         *      If an object type method, it should be 'constructor.prototype.methodName';
++         *      a normal object method would just be 'object.methodName'.
++         * @return {float} The minimum time it takes the function to execute.
++         * @method getMin
++         * @static
++         */
++        getMin : function (name /*:String*/) /*:int*/ {
++            return report[name].min;
++        },
++    
++        /**
++         * Returns an object containing profiling data for a single function.
++         * The object has an entry for min, max, avg, calls, and points).
++         * @return {Object} An object containing profile data for a given function.
++         * @method getFunctionReport
++         * @static
++         * @deprecated Use getReport() instead.
++         */
++        getFunctionReport : function (name /*:String*/) /*:Object*/ {
++            return report[name];
++        },
++    
++        /**
++         * Returns an object containing profiling data for a single function.
++         * The object has an entry for min, max, avg, calls, and points).
++         * @return {Object} An object containing profile data for a given function.
++         * @method getReport
++         * @static
++         */
++        getReport : function (name /*:String*/) /*:Object*/ {
++            return report[name];
++        },
++    
++        /**
++         * Returns an object containing profiling data for all of the functions 
++         * that were profiled. The object has an entry for each function and 
++         * returns all information (min, max, average, calls, etc.) for each
++         * function.
++         * @return {Object} An object containing all profile data.
++         * @static
++         */
++        getFullReport : function (filter /*:Function*/) /*:Object*/ {
++            filter = filter || function(){return true;};
++        
++            if (lang.isFunction(filter)) {
++                var fullReport = {};
++                
++                for (var name in report){
++                    if (filter(report[name])){
++                        fullReport[name] = report[name];    
++                    }
++                }
++                
++                return fullReport;
++            }
++        },
++    
++        //-------------------------------------------------------------------------
++        // Profiling Methods
++        //-------------------------------------------------------------------------   
++        
++        /**
++         * Sets up a constructor for profiling, including all properties and methods on the prototype.
++         * @param {string} name The fully-qualified name of the function including namespace information.
++         * @param {Object} owner (Optional) The object that owns the function (namespace or containing object).
++         * @return {Void}
++         * @method registerConstructor
++         * @static
++         */
++        registerConstructor : function (name /*:String*/, owner /*:Object*/) /*:Void*/ {    
++            this.registerFunction(name, owner, true);
++        },
++    
++        /**
++         * Sets up a function for profiling. It essentially overwrites the function with one
++         * that has instrumentation data. This method also creates an entry for the function
++         * in the profile report. The original function is stored on the container object.
++         * @param {String} name The full name of the function including namespacing. This
++         *      is the name of the function that is stored in the report.
++         * @param {Object} owner (Optional) The object that owns the function. If the function
++         *      isn't global then this argument is required. This could be the namespace that
++         *      the function belongs to, such as YAHOO.util.Dom, or the object on which it's
++         *      a method.
++         * @param {Boolean} registerPrototype (Optional) Indicates that the prototype should
++         *      also be instrumented. Setting to true has the same effect as calling
++         *      registerConstructor().
++         * @return {Void}
++         * @method registerFunction
++         * @static
++         */     
++        registerFunction : function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
++        
++            //figure out the function name without namespacing
++            var funcName = (name.indexOf(".") > -1 ? 
++                    name.substring(name.lastIndexOf(".")+1) : name),
++                method,
++                prototype;
++                
++            //if owner isn't an object, try to find it from the name
++            if (!lang.isObject(owner)){
++                owner = eval(name.substring(0, name.lastIndexOf(".")));
++            }
++            
++            //get the method and prototype
++            method = owner[funcName];
++            prototype = method.prototype;
++            
++            //see if the method has already been registered
++            if (lang.isFunction(method) && !method.__yuiProfiled){
++                
++                //replace the function with the profiling one
++                owner[funcName] = this.instrument(name, method);
++                        
++                /*
++                 * Store original function information. We store the actual
++                 * function as well as the owner and the name used to identify
++                 * the function so it can be restored later.
++                 */
++                container[name].__yuiOwner = owner;
++                container[name].__yuiFuncName = funcName;  //overwrite with less-specific name
++                 
++                //register prototype if necessary
++                if (registerPrototype) {            
++                    this.registerObject(name + ".prototype", prototype);          
++                }
++    
++            }
++        
++        },
++            
++        
++        /**
++         * Sets up an object for profiling. It takes the object and looks for functions.
++         * When a function is found, registerMethod() is called on it. If set to recrusive
++         * mode, it will also setup objects found inside of this object for profiling, 
++         * using the same methodology.
++         * @param {String} name The name of the object to profile (shows up in report).
++         * @param {Object} owner (Optional) The object represented by the name.
++         * @param {Boolean} recurse (Optional) Determines if subobject methods are also profiled.
++         * @return {Void}
++         * @method registerObject
++         * @static
++         */
++        registerObject : function (name /*:String*/, object /*:Object*/, recurse /*:Boolean*/) /*:Void*/{
++        
++            //get the object
++            object = (lang.isObject(object) ? object : eval(name));
++        
++            //save the object
++            container[name] = object;
++        
++            for (var prop in object) {
++                if (typeof object[prop] == "function"){
++                    if (prop != "constructor" && prop != "superclass"){ //don't do constructor or superclass, it's recursive
++                        this.registerFunction(name + "." + prop, object);
++                    }
++                } else if (typeof object[prop] == "object" && recurse){
++                    this.registerObject(name + "." + prop, object[prop], recurse);
++                }
++            }
++        
++        },    
++        
++        /**
++         * Removes a constructor function from profiling. Reverses the registerConstructor() method.
++         * @param {String} name The full name of the function including namespacing. This
++         *      is the name of the function that is stored in the report.
++         * @return {Void}
++         * @method unregisterFunction
++         * @static
++         */     
++        unregisterConstructor : function(name /*:String*/) /*:Void*/{
++                
++            //see if the method has been registered
++            if (lang.isFunction(container[name])){
++                this.unregisterFunction(name, true);
++            }    
++        },
++        
++        /**
++         * Removes function from profiling. Reverses the registerFunction() method.
++         * @param {String} name The full name of the function including namespacing. This
++         *      is the name of the function that is stored in the report.
++         * @return {Void}
++         * @method unregisterFunction
++         * @static
++         */     
++        unregisterFunction : function(name /*:String*/, unregisterPrototype /*:Boolean*/) /*:Void*/{
++                
++            //see if the method has been registered
++            if (lang.isFunction(container[name])){
++            
++                //check to see if you should unregister the prototype
++                if (unregisterPrototype){
++                    this.unregisterObject(name + ".prototype", container[name].prototype);
++                }
++                    
++                //get original data
++                var owner /*:Object*/ = container[name].__yuiOwner,
++                    funcName /*:String*/ = container[name].__yuiFuncName;
++                    
++                //delete extra information
++                delete container[name].__yuiOwner;
++                delete container[name].__yuiFuncName;
++                
++                //replace instrumented function
++                owner[funcName] = container[name];
++                
++                //delete supporting information
++                delete container[name];          
++            }
++                
++        
++        },
++        
++        /**
++         * Unregisters an object for profiling. It takes the object and looks for functions.
++         * When a function is found, unregisterMethod() is called on it. If set to recrusive
++         * mode, it will also unregister objects found inside of this object, 
++         * using the same methodology.
++         * @param {String} name The name of the object to unregister.
++         * @param {Boolean} recurse (Optional) Determines if subobject methods should also be
++         *      unregistered.
++         * @return {Void}
++         * @method unregisterObject
++         * @static
++         */
++        unregisterObject : function (name /*:String*/, recurse /*:Boolean*/) /*:Void*/{
++        
++            //get the object
++            if (lang.isObject(container[name])){            
++                var object = container[name];    
++            
++                for (var prop in object) {
++                    if (typeof object[prop] == "function"){
++                        this.unregisterFunction(name + "." + prop);
++                    } else if (typeof object[prop] == "object" && recurse){
++                        this.unregisterObject(name + "." + prop, recurse);
++                    }
++                }
++                
++                delete container[name];
++            }
++        
++        }
++         
++
++    };
++
++}();  
++
++YAHOO.register("profiler", YAHOO.tool.Profiler, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/profiler/profiler-min.js b/pylons_app/public/js/yui/profiler/profiler-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profiler/profiler-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");YAHOO.tool.Profiler=function(){var container={},report={},stopwatches={},WATCH_STARTED=0,WATCH_STOPPED=1,WATCH_PAUSED=2,lang=YAHOO.lang;function createReport(name){report[name]={calls:0,max:0,min:0,avg:0,points:[]};}function saveDataPoint(name,duration){var functionData=report[name];if(!functionData){functionData=createReport(name);}functionData.calls++;functionData.points.push(duration);if(functionData.calls>1){functionData.avg=((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;functionData.min=Math.min(functionData.min,duration);functionData.max=Math.max(functionData.max,duration);}else{functionData.avg=duration;functionData.min=duration;functionData.max=duration;}}return{clear:function(name){if(lang.isString(name)){delete report[name];delete stopwatches[name];}else{report={};stopwatches={};}},getOriginal:function(name){return container[name];},instrument:function(name,method){var newMethod=function(){var start=new Date(),retval=method.apply(this,arguments),stop=new Date();saveDataPoint(name,stop-start);return retval;};lang.augmentObject(newMethod,method);newMethod.__yuiProfiled=true;newMethod.prototype=method.prototype;container[name]=method;container[name].__yuiFuncName=name;createReport(name);return newMethod;},pause:function(name){var now=new Date(),stopwatch=stopwatches[name];if(stopwatch&&stopwatch.state==WATCH_STARTED){stopwatch.total+=(now-stopwatch.start);stopwatch.start=0;stopwatch.state=WATCH_PAUSED;}},start:function(name){if(container[name]){throw new Error("Cannot use '"+name+"' for profiling through start(), name is already in use.");}else{if(!report[name]){createReport(name);}if(!stopwatches[name]){stopwatches[name]={state:WATCH_STOPPED,start:0,total:0};}if(stopwatches[name].state==WATCH_STOPPED){stopwatches[name].state=WATCH_STARTED;stopwatches[name].start=new Date();}}},stop:function(name){var now=new Date(),stopwatch=stopwatches[name];if(stopwatch){if(stopwatch.state==WATCH_STARTED){saveDataPoint(name,stopwatch.total+(now-stopwatch.start));}else{if(stopwatch.state==WATCH_PAUSED){saveDataPoint(name,stopwatch.total);}}stopwatch.start=0;stopwatch.total=0;stopwatch.state=WATCH_STOPPED;}},getAverage:function(name){return report[name].avg;},getCallCount:function(name){return report[name].calls;},getMax:function(name){return report[name].max;},getMin:function(name){return report[name].min;},getFunctionReport:function(name){return report[name];},getReport:function(name){return report[name];},getFullReport:function(filter){filter=filter||function(){return true;};if(lang.isFunction(filter)){var fullReport={};for(var name in report){if(filter(report[name])){fullReport[name]=report[name];}}return fullReport;}},registerConstructor:function(name,owner){this.registerFunction(name,owner,true);},registerFunction:function(name,owner,registerPrototype){var funcName=(name.indexOf(".")>-1?name.substring(name.lastIndexOf(".")+1):name),method,prototype;if(!lang.isObject(owner)){owner=eval(name.substring(0,name.lastIndexOf(".")));}method=owner[funcName];prototype=method.prototype;if(lang.isFunction(method)&&!method.__yuiProfiled){owner[funcName]=this.instrument(name,method);container[name].__yuiOwner=owner;container[name].__yuiFuncName=funcName;if(registerPrototype){this.registerObject(name+".prototype",prototype);}}},registerObject:function(name,object,recurse){object=(lang.isObject(object)?object:eval(name));container[name]=object;for(var prop in object){if(typeof object[prop]=="function"){if(prop!="constructor"&&prop!="superclass"){this.registerFunction(name+"."+prop,object);}}else{if(typeof object[prop]=="object"&&recurse){this.registerObject(name+"."+prop,object[prop],recurse);}}}},unregisterConstructor:function(name){if(lang.isFunction(container[name])){this.unregisterFunction(name,true);}},unregisterFunction:function(name,unregisterPrototype){if(lang.isFunction(container[name])){if(unregisterPrototype){this.unregisterObject(name+".prototype",container[name].prototype);}var owner=container[name].__yuiOwner,funcName=container[name].__yuiFuncName;delete container[name].__yuiOwner;delete container[name].__yuiFuncName;owner[funcName]=container[name];delete container[name];}},unregisterObject:function(name,recurse){if(lang.isObject(container[name])){var object=container[name];for(var prop in object){if(typeof object[prop]=="function"){this.unregisterFunction(name+"."+prop);}else{if(typeof object[prop]=="object"&&recurse){this.unregisterObject(name+"."+prop,recurse);}}}delete container[name];}}};}();YAHOO.register("profiler",YAHOO.tool.Profiler,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/profiler/profiler.js b/pylons_app/public/js/yui/profiler/profiler.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profiler/profiler.js
+@@ -0,0 +1,557 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");
++
++/**
++ * The YUI JavaScript profiler.
++ * @module profiler
++ * @namespace YAHOO.tool
++ * @requires yahoo
++ */
++
++/**
++ * Profiles functions in JavaScript.
++ * @namespace YAHOO.tool
++ * @class Profiler
++ * @static
++ */
++YAHOO.tool.Profiler = function(){
++
++
++    //-------------------------------------------------------------------------
++    // Private Variables and Functions
++    //-------------------------------------------------------------------------
++    
++    var container   = {},   //Container object on which to put the original unprofiled methods.
++        report      = {},   //Profiling information for functions
++        stopwatches = {},   //Additional stopwatch information
++        
++        WATCH_STARTED   = 0,
++        WATCH_STOPPED   = 1,
++        WATCH_PAUSED    = 2,    
++        
++        lang    = YAHOO.lang;
++
++    /**
++     * Creates a report object with the given name.
++     * @param {String} name The name to store for the report object.
++     * @return {Void}
++     * @method createReport
++     * @private
++     */
++    function createReport(name){
++        report[name] = {
++            calls: 0,
++            max: 0,
++            min: 0,
++            avg: 0,
++            points: []
++        };      
++    }
++    
++    /**
++     * Called when a method ends execution. Marks the start and end time of the 
++     * method so it can calculate how long the function took to execute. Also 
++     * updates min/max/avg calculations for the function.
++     * @param {String} name The name of the function to mark as stopped.
++     * @param {int} duration The number of milliseconds it took the function to
++     *      execute.
++     * @return {Void}
++     * @method saveDataPoint
++     * @private
++     * @static
++     */
++    function saveDataPoint(name, duration){
++
++        //get the function data
++        var functionData /*:Object*/ = report[name];
++        
++        //just in case clear() was called
++        if (!functionData){
++            functionData = createReport(name);
++        }
++    
++        //increment the calls
++        functionData.calls++;
++        functionData.points.push(duration);
++
++        //if it's already been called at least once, do more complex calculations
++        if (functionData.calls > 1) {
++            functionData.avg = ((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;
++            functionData.min = Math.min(functionData.min, duration);
++            functionData.max = Math.max(functionData.max, duration);
++        } else {
++            functionData.avg = duration;
++            functionData.min = duration;
++            functionData.max = duration;
++        }                             
++    
++    }
++
++    //-------------------------------------------------------------------------
++    // Singleton Object
++    //-------------------------------------------------------------------------
++    
++    return {
++    
++        //-------------------------------------------------------------------------
++        // Utility Methods
++        //-------------------------------------------------------------------------        
++        
++        /**
++         * Removes all report data from the profiler.
++         * @param {String} name (Optional) The name of the report to clear. If
++         *      omitted, then all report data is cleared.
++         * @return {Void}
++         * @method clear
++         * @static
++         */
++        clear: function(name){
++            if (lang.isString(name)){
++                delete report[name];
++                delete stopwatches[name];
++            } else {
++                report = {};
++                stopwatches = {};
++            }
++        },
++
++        /**
++         * Returns the uninstrumented version of a function/object.
++         * @param {String} name The name of the function/object to retrieve.
++         * @return {Function|Object} The uninstrumented version of a function/object.
++         * @method getOriginal
++         * @static
++         */    
++        getOriginal: function(name){
++            return container[name];
++        },
++    
++        /**
++         * Instruments a method to have profiling calls.
++         * @param {String} name The name of the report for the function.
++         * @param {Function} method The function to instrument.
++         * @return {Function} An instrumented version of the function.
++         * @method instrument
++         * @static
++         */
++        instrument: function(name, method){
++        
++            //create instrumented version of function
++            var newMethod = function () {
++    
++                var start = new Date(),
++                    retval = method.apply(this, arguments),
++                    stop = new Date();
++                
++                saveDataPoint(name, stop-start);
++                
++                return retval;                
++            
++            };     
++
++            //copy the function properties over
++            lang.augmentObject(newMethod, method);
++            
++            //assign prototype and flag as being profiled
++            newMethod.__yuiProfiled = true;
++            newMethod.prototype = method.prototype;
++            
++            //store original method
++            container[name] = method;
++            container[name].__yuiFuncName = name;
++            
++            //create the report
++            createReport(name);
++
++            //return the new method
++            return newMethod;
++        },    
++        
++        //-------------------------------------------------------------------------
++        // Stopwatch Methods
++        //-------------------------------------------------------------------------        
++        
++        /**
++         * Pauses profiling information for a given name.
++         * @param {String} name The name of the data point.
++         * @return {Void}
++         * @method pause
++         * @static
++         */        
++        pause: function(name){
++            var now = new Date(),
++                stopwatch = stopwatches[name];
++                
++            if (stopwatch && stopwatch.state == WATCH_STARTED){
++                stopwatch.total += (now - stopwatch.start);
++                stopwatch.start = 0;
++                stopwatch.state = WATCH_PAUSED;
++            }
++        
++        },
++        
++        /**
++         * Start profiling information for a given name. The name cannot be the name
++         * of a registered function or object. This is used to start timing for a
++         * particular block of code rather than instrumenting the entire function.
++         * @param {String} name The name of the data point.
++         * @return {Void}
++         * @method start
++         * @static
++         */
++        start: function(name){
++            if(container[name]){
++                throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
++            } else {
++            
++                //create report if necessary
++                if (!report[name]){
++                    createReport(name);
++                }
++                
++                //create stopwatch object if necessary
++                if (!stopwatches[name]){             
++                    stopwatches[name] = {
++                        state: WATCH_STOPPED,
++                        start: 0,
++                        total: 0
++                    };
++                }
++                
++                if (stopwatches[name].state == WATCH_STOPPED){
++                    stopwatches[name].state = WATCH_STARTED;
++                    stopwatches[name].start = new Date();                    
++                }
++
++            }
++        },
++        
++        /**
++         * Stops profiling information for a given name.
++         * @param {String} name The name of the data point.
++         * @return {Void}
++         * @method stop
++         * @static
++         */
++        stop: function(name){
++            var now = new Date(),
++                stopwatch = stopwatches[name];
++                
++            if (stopwatch){
++                if (stopwatch.state == WATCH_STARTED){
++                    saveDataPoint(name, stopwatch.total + (now - stopwatch.start));                    
++                } else if (stopwatch.state == WATCH_PAUSED){
++                    saveDataPoint(name, stopwatch.total);
++                }
++                
++                //reset stopwatch information
++                stopwatch.start = 0;
++                stopwatch.total = 0;
++                stopwatch.state = WATCH_STOPPED;                
++            }
++        },
++    
++        //-------------------------------------------------------------------------
++        // Reporting Methods
++        //-------------------------------------------------------------------------    
++        
++        /**
++         * Returns the average amount of time (in milliseconds) that the function
++         * with the given name takes to execute.
++         * @param {String} name The name of the function whose data should be returned.
++         *      If an object type method, it should be 'constructor.prototype.methodName';
++         *      a normal object method would just be 'object.methodName'.
++         * @return {float} The average time it takes the function to execute.
++         * @method getAverage
++         * @static
++         */
++        getAverage : function (name /*:String*/) /*:float*/ {
++            return report[name].avg;
++        },
++    
++        /**
++         * Returns the number of times that the given function has been called.
++         * @param {String} name The name of the function whose data should be returned.
++         * @return {int} The number of times the function was called.
++         * @method getCallCount
++         * @static
++         */
++        getCallCount : function (name /*:String*/) /*:int*/ {
++            return report[name].calls;    
++        },
++        
++        /**
++         * Returns the maximum amount of time (in milliseconds) that the function
++         * with the given name takes to execute.
++         * @param {String} name The name of the function whose data should be returned.
++         *      If an object type method, it should be 'constructor.prototype.methodName';
++         *      a normal object method would just be 'object.methodName'.
++         * @return {float} The maximum time it takes the function to execute.
++         * @method getMax
++         * @static
++         */
++        getMax : function (name /*:String*/) /*:int*/ {
++            return report[name].max;
++        },
++        
++        /**
++         * Returns the minimum amount of time (in milliseconds) that the function
++         * with the given name takes to execute.
++         * @param {String} name The name of the function whose data should be returned.
++         *      If an object type method, it should be 'constructor.prototype.methodName';
++         *      a normal object method would just be 'object.methodName'.
++         * @return {float} The minimum time it takes the function to execute.
++         * @method getMin
++         * @static
++         */
++        getMin : function (name /*:String*/) /*:int*/ {
++            return report[name].min;
++        },
++    
++        /**
++         * Returns an object containing profiling data for a single function.
++         * The object has an entry for min, max, avg, calls, and points).
++         * @return {Object} An object containing profile data for a given function.
++         * @method getFunctionReport
++         * @static
++         * @deprecated Use getReport() instead.
++         */
++        getFunctionReport : function (name /*:String*/) /*:Object*/ {
++            return report[name];
++        },
++    
++        /**
++         * Returns an object containing profiling data for a single function.
++         * The object has an entry for min, max, avg, calls, and points).
++         * @return {Object} An object containing profile data for a given function.
++         * @method getReport
++         * @static
++         */
++        getReport : function (name /*:String*/) /*:Object*/ {
++            return report[name];
++        },
++    
++        /**
++         * Returns an object containing profiling data for all of the functions 
++         * that were profiled. The object has an entry for each function and 
++         * returns all information (min, max, average, calls, etc.) for each
++         * function.
++         * @return {Object} An object containing all profile data.
++         * @static
++         */
++        getFullReport : function (filter /*:Function*/) /*:Object*/ {
++            filter = filter || function(){return true;};
++        
++            if (lang.isFunction(filter)) {
++                var fullReport = {};
++                
++                for (var name in report){
++                    if (filter(report[name])){
++                        fullReport[name] = report[name];    
++                    }
++                }
++                
++                return fullReport;
++            }
++        },
++    
++        //-------------------------------------------------------------------------
++        // Profiling Methods
++        //-------------------------------------------------------------------------   
++        
++        /**
++         * Sets up a constructor for profiling, including all properties and methods on the prototype.
++         * @param {string} name The fully-qualified name of the function including namespace information.
++         * @param {Object} owner (Optional) The object that owns the function (namespace or containing object).
++         * @return {Void}
++         * @method registerConstructor
++         * @static
++         */
++        registerConstructor : function (name /*:String*/, owner /*:Object*/) /*:Void*/ {    
++            this.registerFunction(name, owner, true);
++        },
++    
++        /**
++         * Sets up a function for profiling. It essentially overwrites the function with one
++         * that has instrumentation data. This method also creates an entry for the function
++         * in the profile report. The original function is stored on the container object.
++         * @param {String} name The full name of the function including namespacing. This
++         *      is the name of the function that is stored in the report.
++         * @param {Object} owner (Optional) The object that owns the function. If the function
++         *      isn't global then this argument is required. This could be the namespace that
++         *      the function belongs to, such as YAHOO.util.Dom, or the object on which it's
++         *      a method.
++         * @param {Boolean} registerPrototype (Optional) Indicates that the prototype should
++         *      also be instrumented. Setting to true has the same effect as calling
++         *      registerConstructor().
++         * @return {Void}
++         * @method registerFunction
++         * @static
++         */     
++        registerFunction : function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
++        
++            //figure out the function name without namespacing
++            var funcName = (name.indexOf(".") > -1 ? 
++                    name.substring(name.lastIndexOf(".")+1) : name),
++                method,
++                prototype;
++                
++            //if owner isn't an object, try to find it from the name
++            if (!lang.isObject(owner)){
++                owner = eval(name.substring(0, name.lastIndexOf(".")));
++            }
++            
++            //get the method and prototype
++            method = owner[funcName];
++            prototype = method.prototype;
++            
++            //see if the method has already been registered
++            if (lang.isFunction(method) && !method.__yuiProfiled){
++                
++                //replace the function with the profiling one
++                owner[funcName] = this.instrument(name, method);
++                        
++                /*
++                 * Store original function information. We store the actual
++                 * function as well as the owner and the name used to identify
++                 * the function so it can be restored later.
++                 */
++                container[name].__yuiOwner = owner;
++                container[name].__yuiFuncName = funcName;  //overwrite with less-specific name
++                 
++                //register prototype if necessary
++                if (registerPrototype) {            
++                    this.registerObject(name + ".prototype", prototype);          
++                }
++    
++            }
++        
++        },
++            
++        
++        /**
++         * Sets up an object for profiling. It takes the object and looks for functions.
++         * When a function is found, registerMethod() is called on it. If set to recrusive
++         * mode, it will also setup objects found inside of this object for profiling, 
++         * using the same methodology.
++         * @param {String} name The name of the object to profile (shows up in report).
++         * @param {Object} owner (Optional) The object represented by the name.
++         * @param {Boolean} recurse (Optional) Determines if subobject methods are also profiled.
++         * @return {Void}
++         * @method registerObject
++         * @static
++         */
++        registerObject : function (name /*:String*/, object /*:Object*/, recurse /*:Boolean*/) /*:Void*/{
++        
++            //get the object
++            object = (lang.isObject(object) ? object : eval(name));
++        
++            //save the object
++            container[name] = object;
++        
++            for (var prop in object) {
++                if (typeof object[prop] == "function"){
++                    if (prop != "constructor" && prop != "superclass"){ //don't do constructor or superclass, it's recursive
++                        this.registerFunction(name + "." + prop, object);
++                    }
++                } else if (typeof object[prop] == "object" && recurse){
++                    this.registerObject(name + "." + prop, object[prop], recurse);
++                }
++            }
++        
++        },    
++        
++        /**
++         * Removes a constructor function from profiling. Reverses the registerConstructor() method.
++         * @param {String} name The full name of the function including namespacing. This
++         *      is the name of the function that is stored in the report.
++         * @return {Void}
++         * @method unregisterFunction
++         * @static
++         */     
++        unregisterConstructor : function(name /*:String*/) /*:Void*/{
++                
++            //see if the method has been registered
++            if (lang.isFunction(container[name])){
++                this.unregisterFunction(name, true);
++            }    
++        },
++        
++        /**
++         * Removes function from profiling. Reverses the registerFunction() method.
++         * @param {String} name The full name of the function including namespacing. This
++         *      is the name of the function that is stored in the report.
++         * @return {Void}
++         * @method unregisterFunction
++         * @static
++         */     
++        unregisterFunction : function(name /*:String*/, unregisterPrototype /*:Boolean*/) /*:Void*/{
++                
++            //see if the method has been registered
++            if (lang.isFunction(container[name])){
++            
++                //check to see if you should unregister the prototype
++                if (unregisterPrototype){
++                    this.unregisterObject(name + ".prototype", container[name].prototype);
++                }
++                    
++                //get original data
++                var owner /*:Object*/ = container[name].__yuiOwner,
++                    funcName /*:String*/ = container[name].__yuiFuncName;
++                    
++                //delete extra information
++                delete container[name].__yuiOwner;
++                delete container[name].__yuiFuncName;
++                
++                //replace instrumented function
++                owner[funcName] = container[name];
++                
++                //delete supporting information
++                delete container[name];          
++            }
++                
++        
++        },
++        
++        /**
++         * Unregisters an object for profiling. It takes the object and looks for functions.
++         * When a function is found, unregisterMethod() is called on it. If set to recrusive
++         * mode, it will also unregister objects found inside of this object, 
++         * using the same methodology.
++         * @param {String} name The name of the object to unregister.
++         * @param {Boolean} recurse (Optional) Determines if subobject methods should also be
++         *      unregistered.
++         * @return {Void}
++         * @method unregisterObject
++         * @static
++         */
++        unregisterObject : function (name /*:String*/, recurse /*:Boolean*/) /*:Void*/{
++        
++            //get the object
++            if (lang.isObject(container[name])){            
++                var object = container[name];    
++            
++                for (var prop in object) {
++                    if (typeof object[prop] == "function"){
++                        this.unregisterFunction(name + "." + prop);
++                    } else if (typeof object[prop] == "object" && recurse){
++                        this.unregisterObject(name + "." + prop, recurse);
++                    }
++                }
++                
++                delete container[name];
++            }
++        
++        }
++         
++
++    };
++
++}();  
++
++YAHOO.register("profiler", YAHOO.tool.Profiler, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/profilerviewer-core.css b/pylons_app/public/js/yui/profilerviewer/assets/profilerviewer-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profilerviewer/assets/profilerviewer-core.css
+@@ -0,0 +1,6 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/asc.gif b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/asc.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..a1fe7385d5ac940629233f0dc4bbd61f20959c3b
+GIT binary patch
+literal 177
+zc${<hbhEHb<YVAuI3mvA=-^OQRaH<>U}|FG@8_44nAqLjosyCg9v<G((qf>mZ){{V
+zVZwy=_I7V?@1UTd{Jgy0-d;-!i@3Nr8*A&jy1Ge|CjI~ap8*F@{K>+|z#z_`1LA<}
+zWMI{Mpc;3;cwWW@9gSBJVHf+nnA|VbC>rpbWp?Ig%aCo`z|eKb;Sk4i&s49uTz-lS
+F)&OweGlKvC
+
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/desc.gif b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/desc.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..c114f290c8ba1ff4173e129b1ef7e4f3f5e2bb5d
+GIT binary patch
+literal 177
+zc${<hbhEHb<YVAuI3mvA=-^OQRaH<>U}|FG@8_44nAqLjosyCg9v<G((qf>mZ){{V
+zVZwy=_I7V?@1UTd{Jgy0-d;-!i@3Nr8*A&jy1Ge|CjI~ap8*F@{K>+|z#z_`1LA<}
+zWMI`>5YYR?BKC!AL{7G0NEe%4^$CptY34pBy%v7e&J99cimMJ3X#{q=J(yX=Fh!BU
+F8USC!Gspk{
+
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/header_background.png b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/header_background.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..3ef7909d3ed04956a06c5d9017076ea30e0ced27
+GIT binary patch
+literal 158
+zc%17D@N?(olHy`uVBq!ia0vp^j6kf+!2~3434ebKq$EpRBT9nv(@M${i&7aJQ}UBi
+z6+Ckj(^G>|6H_V+Po~-c6*+jiIEGZ*s_F9NI$*%V9Q*UX`TlF!Ldi}q7dA02yr`^X
+zu-PrN{%75tzwegsKk4J*;_R|w)xBe%IT`Nt9oJ`MW0-m*yz~E_s%D^B44$rjF6*2U
+FngH9xIDh~E
+
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/profilerviewer-skin.css b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/profilerviewer-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/profilerviewer-skin.css
+@@ -0,0 +1,167 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-pv {
++	background-color:#4a4a4a;
++	font:arial;
++	position:relative;
++	width:99%;
++	z-index:1000;
++	margin-bottom:1em;
++	overflow:hidden;
++}
++
++.yui-skin-sam .yui-pv .hd {
++	background:url(header_background.png) repeat-x;
++	min-height:30px;
++	overflow:hidden;
++	zoom:1;
++	padding:2px 0;
++}
++
++.yui-skin-sam .yui-pv .hd h4 {
++	padding:8px 10px;
++	margin:0;
++	font:bold 14px arial;
++	color:#fff;
++}
++	
++.yui-skin-sam .yui-pv .hd a {
++	background:#3f6bc3; 
++	font:bold 11px arial; 
++	color:#fff; 
++	padding:4px; 
++	margin:3px 10px 0 0; 
++	border:1px solid #3f567d; 
++	cursor:pointer;
++	display:block;
++	float:right;
++}
++
++.yui-skin-sam .yui-pv .hd span {
++	display:none;
++}
++
++.yui-skin-sam .yui-pv .hd span.yui-pv-busy {
++	height:18px;
++	width:18px;
++	background:url(wait.gif) no-repeat;
++	overflow:hidden;
++	display:block;
++	float:right;
++	margin:4px 10px 0 0; 
++}
++
++.yui-skin-sam .yui-pv .hd:after, 
++.yui-pv .bd:after, 
++.yui-skin-sam .yui-pv-chartlegend dl:after {
++	content:'.';visibility:hidden;clear:left;height:0;display:block;
++}
++
++.yui-skin-sam .yui-pv .bd {
++	position:relative; 
++	zoom:1; 
++	overflow-x:auto; 
++	overflow-y:hidden;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table {
++	padding:0 10px; 
++	margin:5px 0 10px 0;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td {
++	color:#eeee5c;
++	font:12px arial;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd {
++	background:#929292;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even {
++	background:#58637a;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc, 
++.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc {
++	background:#384970;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc, 
++.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc {
++	background:#6F6E6E;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th {
++	background-image:none;
++	background:#2E2D2D;
++}
++
++.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner {
++	background:transparent url(asc.gif) no-repeat scroll right center;
++}
++
++.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner {
++	background:transparent url(desc.gif) no-repeat scroll right center;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a {
++	color:#fff; 
++	font:bold 12px arial;
++}
++
++.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc, 
++.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc {
++	background:#333;
++}
++
++.yui-skin-sam .yui-pv-chartcontainer {
++	padding:0 10px;
++}
++
++.yui-skin-sam .yui-pv-chart {
++	height:250px; 
++	clear:right; 
++	margin:5px 0 0 0;
++	color:#fff;
++}
++
++.yui-skin-sam .yui-pv-chartlegend div {
++	float:right;
++	margin:0 0 0 10px;
++	_width:250px;
++}
++
++.yui-skin-sam .yui-pv-chartlegend dl {
++	border:1px solid #999;
++	padding:.2em 0 .2em .5em;
++	zoom:1;
++	margin:5px 0;
++}
++
++.yui-skin-sam .yui-pv-chartlegend dt {
++	float:left;
++	display:block; 
++	height:.7em; 
++	width:.7em;  
++	padding:0;
++}
++
++.yui-skin-sam .yui-pv-chartlegend dd {
++	float:left; 
++	display:block; 
++	color:#fff; 
++	margin:0 1em 0 .5em; 
++	padding:0; 
++	font:11px arial;
++}
++
++.yui-skin-sam .yui-pv-minimized {height:35px;}
++
++.yui-skin-sam .yui-pv-minimized .bd {top:-3000px;}
++
++.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh {display:none;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/profilerviewer.css b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/profilerviewer.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/profilerviewer.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-pv{background-color:#4a4a4a;font:arial;position:relative;width:99%;z-index:1000;margin-bottom:1em;overflow:hidden;}.yui-skin-sam .yui-pv .hd{background:url(header_background.png) repeat-x;min-height:30px;overflow:hidden;zoom:1;padding:2px 0;}.yui-skin-sam .yui-pv .hd h4{padding:8px 10px;margin:0;font:bold 14px arial;color:#fff;}.yui-skin-sam .yui-pv .hd a{background:#3f6bc3;font:bold 11px arial;color:#fff;padding:4px;margin:3px 10px 0 0;border:1px solid #3f567d;cursor:pointer;display:block;float:right;}.yui-skin-sam .yui-pv .hd span{display:none;}.yui-skin-sam .yui-pv .hd span.yui-pv-busy{height:18px;width:18px;background:url(wait.gif) no-repeat;overflow:hidden;display:block;float:right;margin:4px 10px 0 0;}.yui-skin-sam .yui-pv .hd:after,.yui-pv .bd:after,.yui-skin-sam .yui-pv-chartlegend dl:after{content:'.';visibility:hidden;clear:left;height:0;display:block;}.yui-skin-sam .yui-pv .bd{position:relative;zoom:1;overflow-x:auto;overflow-y:hidden;}.yui-skin-sam .yui-pv .yui-pv-table{padding:0 10px;margin:5px 0 10px 0;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-bd td{color:#eeee5c;font:12px arial;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd{background:#929292;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even{background:#58637a;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-even td.yui-dt-desc{background:#384970;}.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table tr.yui-dt-odd td.yui-dt-desc{background:#6F6E6E;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th{background-image:none;background:#2E2D2D;}.yui-skin-sam .yui-pv th.yui-dt-asc .yui-dt-liner{background:transparent url(asc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv th.yui-dt-desc .yui-dt-liner{background:transparent url(desc.gif) no-repeat scroll right center;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th a{color:#fff;font:bold 12px arial;}.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-asc,.yui-skin-sam .yui-pv .yui-pv-table .yui-dt-hd th.yui-dt-desc{background:#333;}.yui-skin-sam .yui-pv-chartcontainer{padding:0 10px;}.yui-skin-sam .yui-pv-chart{height:250px;clear:right;margin:5px 0 0 0;color:#fff;}.yui-skin-sam .yui-pv-chartlegend div{float:right;margin:0 0 0 10px;_width:250px;}.yui-skin-sam .yui-pv-chartlegend dl{border:1px solid #999;padding:.2em 0 .2em .5em;zoom:1;margin:5px 0;}.yui-skin-sam .yui-pv-chartlegend dt{float:left;display:block;height:.7em;width:.7em;padding:0;}.yui-skin-sam .yui-pv-chartlegend dd{float:left;display:block;color:#fff;margin:0 1em 0 .5em;padding:0;font:11px arial;}.yui-skin-sam .yui-pv-minimized{height:35px;}.yui-skin-sam .yui-pv-minimized .bd{top:-3000px;}.yui-skin-sam .yui-pv-minimized .hd a.yui-pv-refresh{display:none;}
+diff --git a/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/wait.gif b/pylons_app/public/js/yui/profilerviewer/assets/skins/sam/wait.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..471c1a4f93f2cabf0b3a85c3ff8e0a8aadefc548
+GIT binary patch
+literal 1100
+zc${<hbhEHb6k-r!I3mSRSy{er-I}9E4_8)}O_?%z>eMNV7cW}Be%-NShnFl_ynFY~
+zrAwFY+_}A?qO7B%?b4<5ZEY>nrcFC`?8wE7=QeCuKV{0KMT-{h+O^~2#q;g$t^fc3
+zXFvst|GE8KLxP<h16+;t444@~LO)qp85pD(bU^YTXE3m4E>P=B$((k&Xr1TmHOj7;
+zZn+tOC31fjMvD0+Mi{X6F$yJmTFClN?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a/pylons_app/public/js/yui/profilerviewer/profilerviewer-debug.js b/pylons_app/public/js/yui/profilerviewer/profilerviewer-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profilerviewer/profilerviewer-debug.js
+@@ -0,0 +1,1229 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++
++    /**
++     * The ProfilerViewer module provides a graphical display for viewing
++	 * the output of the YUI Profiler <http://developer.yahoo.com/yui/profiler>.
++     * @module profilerviewer
++     * @requires yahoo, dom, event, element, profiler, yuiloader
++     */
++
++    /**
++     * A widget to view YUI Profiler output.
++     * @namespace YAHOO.widget
++     * @class ProfilerViewer
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param {HTMLElement | String | Object} el(optional) The html 
++     * element into which the ProfileViewer should be rendered. 
++     * An element will be created if none provided.
++     * @param {Object} attr (optional) A key map of the ProfilerViewer's 
++     * initial attributes.  Ignored if first arg is an attributes object.
++     */
++    YAHOO.widget.ProfilerViewer = function(el, attr) {
++        attr = attr || {};
++        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
++            attr = el;
++            el = attr.element || null;
++        }
++        if (!el && !attr.element) {
++            el = this._createProfilerViewerElement();
++        }
++
++    	YAHOO.widget.ProfilerViewer.superclass.constructor.call(this, el, attr); 
++		
++		this._init();
++		
++		YAHOO.log("ProfilerViewer instantiated.", "info", "ProfilerViewer");
++    };
++
++    YAHOO.extend(YAHOO.widget.ProfilerViewer, YAHOO.util.Element);
++	
++	// Static members of YAHOO.widget.ProfilerViewer:
++	YAHOO.lang.augmentObject(YAHOO.widget.ProfilerViewer, {
++		/**
++		 * Classname for ProfilerViewer containing element.
++		 * @static
++		 * @property CLASS
++		 * @type string
++		 * @public
++		 * @default "yui-pv"
++		 */
++		CLASS: 'yui-pv',
++	
++		/**
++		 * Classname for ProfilerViewer button dashboard. 
++		 * @static
++		 * @property CLASS_DASHBOARD
++		 * @type string
++		 * @public
++		 * @default "yui-pv-dashboard"
++		 */
++		CLASS_DASHBOARD: 'yui-pv-dashboard',
++
++		/**
++		 * Classname for the "refresh data" button. 
++		 * @static
++		 * @property CLASS_REFRESH
++		 * @type string
++		 * @public
++		 * @default "yui-pv-refresh"
++		 */
++		CLASS_REFRESH: 'yui-pv-refresh',
++
++		/**
++		 * Classname for busy indicator in the dashboard. 
++		 * @static
++		 * @property CLASS_BUSY
++		 * @type string
++		 * @public
++		 * @default "yui-pv-busy"
++		 */
++		CLASS_BUSY: 'yui-pv-busy',
++	
++		/**
++		 * Classname for element containing the chart and chart
++		 * legend elements.
++		 * @static
++		 * @property CLASS_CHART_CONTAINER
++		 * @type string
++		 * @public
++		 * @default "yui-pv-chartcontainer"
++		 */
++		CLASS_CHART_CONTAINER: 'yui-pv-chartcontainer',
++	
++		/**
++		 * Classname for element containing the chart.
++		 * @static
++		 * @property CLASS_CHART
++		 * @type string
++		 * @public
++		 * @default "yui-pv-chart"
++		 */
++		CLASS_CHART: 'yui-pv-chart',
++		
++		/**
++		 * Classname for element containing the chart's legend. 
++		 * @static
++		 * @property CLASS_CHART_LEGEND
++		 * @type string
++		 * @public
++		 * @default "yui-pv-chartlegend"
++		 */
++		CLASS_CHART_LEGEND: 'yui-pv-chartlegend',
++		
++		/**
++		 * Classname for element containing the datatable. 
++		 * @static
++		 * @property CLASS_TABLE
++		 * @type string
++		 * @public
++		 * @default "yui-pv-table"
++		 */
++		CLASS_TABLE: 'yui-pv-table',
++		
++		/**
++		 * Strings used in the UI.
++		 * @static
++		 * @property STRINGS
++		 * @object
++		 * @public
++		 * @default English language strings for UI.
++		 */
++		STRINGS: {
++			title: "YUI Profiler (beta)",
++			buttons: {
++				viewprofiler: "View Profiler Data",
++				hideprofiler: "Hide Profiler Report",
++				showchart: "Show Chart",
++				hidechart: "Hide Chart",
++				refreshdata: "Refresh Data"
++			},
++			colHeads: {
++				//key: [column head label, width in pixels]
++				fn: ["Function/Method", null], //must auto-size
++				calls: ["Calls", 40],
++				avg: ["Average", 80],
++				min: ["Shortest", 70],
++				max: ["Longest", 70],
++				total: ["Total Time", 70],
++				pct: ["Percent", 70]
++			},
++			millisecondsAbbrev: "ms",
++			initMessage: "initialiazing chart...",
++			installFlashMessage: "Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href='http://www.adobe.com/go/getflashplayer'>Adobe Flash Player Download Center</a>."
++		},
++
++		/**
++		 * Function used to format numbers in milliseconds
++		 * for chart; must be publicly accessible, per Charts spec.
++		 * @static
++		 * @property timeAxisLabelFunction
++		 * @type function
++		 * @private
++		 */
++		timeAxisLabelFunction: function(n) {
++			var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000;
++			return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);
++		},
++
++		/**
++		 * Function used to format percent numbers for chart; must
++		 * be publicly accessible, per Charts spec.
++		 * @static
++		 * @property percentAxisLabelFunction
++		 * @type function
++		 * @private
++		 */
++		percentAxisLabelFunction: function(n) {
++			var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100;
++			return (a + "%");
++		}
++		
++	
++	},true);
++	
++
++	//
++	// STANDARD SHORTCUTS
++	//
++    var Dom = YAHOO.util.Dom;
++    var Event = YAHOO.util.Event;
++	var Profiler = YAHOO.tool.Profiler;
++	var PV = YAHOO.widget.ProfilerViewer;
++	var proto = PV.prototype;
++
++
++	//
++	// PUBLIC METHODS
++	//
++	
++	 /**
++     * Refreshes the data displayed in the ProfilerViewer. When called,
++	 * this will invoke a refresh of the DataTable and (if displayed)
++	 * the Chart.
++     * @method refreshData
++     * @return void
++	 * @public
++     */	
++	proto.refreshData = function() {
++		YAHOO.log("Data refresh requested via refreshData method.", "info", "ProfilerViewer");
++		this.fireEvent("dataRefreshEvent");
++	};
++
++	 /**
++     * Returns the element containing the console's header.
++     * @method getHeadEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getHeadEl = function() {
++		YAHOO.log("Head element requested via getHeadEl.", "info", "ProfilerViewer");
++		return (this._headEl) ? Dom.get(this._headEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's body, including
++	 * the chart and the datatable..
++     * @method getBodyEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getBodyEl = function() {
++		YAHOO.log("Body element requested via getBodyEl.", "info", "ProfilerViewer");
++		return (this._bodyEl) ? Dom.get(this._bodyEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's chart.
++     * @method getChartEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getChartEl = function() {
++		YAHOO.log("Chart element requested via getChartEl.", "info", "ProfilerViewer");
++		return (this._chartEl) ? Dom.get(this._chartEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's dataTable.
++     * @method getTableEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getTableEl = function() {
++		YAHOO.log("DataTable element requested via getTableEl.", "info", "ProfilerViewer");
++		return (this._tableEl) ? Dom.get(this._tableEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's DataTable
++	 * instance.
++     * @method getDataTable
++     * @return YAHOO.widget.DataTable
++	 * @public
++     */	
++	proto.getDataTable = function() {
++		YAHOO.log("DataTable instance requested via getDataTable.", "info", "ProfilerViewer");
++		return this._dataTable;
++	};
++
++	 /**
++     * Returns the element containing the console's Chart instance.
++     * @method getChart
++     * @return YAHOO.widget.BarChart
++	 * @public
++     */	
++	proto.getChart = function() {
++		YAHOO.log("Chart instance requested via getChart.", "info", "ProfilerViewer");
++		return this._chart;
++	};
++
++
++    //
++    // PRIVATE PROPERTIES
++    //
++    proto._rendered = false;
++	proto._headEl = null;
++	proto._bodyEl = null;
++	proto._toggleVisibleEl = null;
++	proto._busyEl = null;
++	proto._busy = false;
++	
++	proto._tableEl = null;
++	proto._dataTable = null;
++
++	proto._chartEl = null;
++	proto._chartLegendEl = null;
++	proto._chartElHeight = 250;
++	proto._chart = null;
++	proto._chartInitialized = false;
++
++    //
++    // PRIVATE METHODS
++    //
++
++	proto._init = function() {
++		/**
++		 * CUSTOM EVENTS
++		 **/
++		
++		/**
++		 * Fired when a data refresh is requested. No arguments are passed
++		 * with this event.
++		 *
++		 * @event refreshDataEvent
++		 */
++		this.createEvent("dataRefreshEvent");
++		
++		/**
++		 * Fired when the viewer canvas first renders. No arguments are passed
++		 * with this event.
++		 *
++		 * @event renderEvent
++		 */
++		this.createEvent("renderEvent");
++
++		this.on("dataRefreshEvent", this._refreshDataTable, this, true);
++		
++		this._initLauncherDOM();
++		
++		if(this.get("showChart")) {
++			this.on("sortedByChange", this._refreshChart);
++		}
++
++		YAHOO.log("ProfilerViewer instance initialization complete.", "info", "ProfilerViewer");
++	};
++
++	/**
++	 * If no element is passed in, create it as the first element
++	 * in the document.
++	 * @method _createProfilerViewerElement
++	 * @return HTMLElement
++	 * @private
++	 */
++	proto._createProfilerViewerElement = function() {
++		YAHOO.log("Creating root element...", "info", "ProfilerViewer");
++
++		var el = document.createElement("div");
++		document.body.insertBefore(el, document.body.firstChild);
++		Dom.addClass(el, this.SKIN_CLASS);
++		Dom.addClass(el, PV.CLASS);
++		YAHOO.log(el);
++		return el;
++	};
++			
++    /**
++     * Provides a readable name for the ProfilerViewer instance.
++     * @method toString
++     * @return String
++	 * @private
++	 */
++    proto.toString = function() {
++        return "ProfilerViewer " + (this.get('id') || this.get('tagName'));
++    };
++
++    /**
++     * Toggles visibility of the viewer canvas.
++     * @method _toggleVisible
++     * @return void
++	 * @private
++     */	
++	proto._toggleVisible = function() {
++		YAHOO.log("Toggling visibility to " + !this.get("visible") + ".", "info", "ProfilerViewer");
++		
++		var newVis = (this.get("visible")) ? false : true;
++		this.set("visible", newVis);
++    };
++
++    /**
++     * Shows the viewer canvas.
++     * @method show
++     * @return void
++	 * @private
++     */	
++	 proto._show = function() {
++	 	if(!this._busy) {
++			this._setBusyState(true);
++			if(!this._rendered) {
++				var loader = new YAHOO.util.YUILoader();
++				if (this.get("base")) {
++					loader.base = this.get("base");
++				}
++				
++				var modules = ["datatable"];
++				if(this.get("showChart")) {
++					modules.push("charts");
++				}
++				
++				loader.insert({ require: modules,
++								onSuccess: function() {
++									this._render();
++								},
++								scope: this});
++			} else {
++				var el = this.get("element");
++				Dom.removeClass(el, "yui-pv-minimized");
++				this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
++				
++				//The Flash Charts component can't be set to display:none,
++				//and even after positioning it offscreen the screen
++				//may fail to repaint in some browsers.  Adding an empty
++				//style rule to the console body can help force a repaint:
++				Dom.addClass(el, "yui-pv-null");
++				Dom.removeClass(el, "yui-pv-null");
++				
++				//Always refresh data when changing to visible:
++				this.refreshData();
++			}
++		}
++    };
++
++    /**
++     * Hides the viewer canvas.
++     * @method hide
++     * @return void
++	 * @private
++     */	
++	proto._hide = function() {
++		this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.viewprofiler;
++		Dom.addClass(this.get("element"), "yui-pv-minimized");
++    };
++	
++	/**
++	 * Render the viewer canvas
++	 * @method _render
++	 * @return void
++	 * @private
++	 */
++	proto._render = function() {
++		YAHOO.log("Beginning to render ProfilerViewer canvas...", "info", "ProfilerViewer");
++		
++		Dom.removeClass(this.get("element"), "yui-pv-minimized");
++		
++		this._initViewerDOM();
++		this._initDataTable();
++		if(this.get("showChart")) {
++			this._initChartDOM();
++			this._initChart();
++		}
++		this._rendered = true;
++		this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
++		
++		this.fireEvent("renderEvent");
++
++		YAHOO.log("ProfilerViewer rendering complete...", "info", "ProfilerViewer");
++	};
++	
++	/**
++	 * Set up the DOM structure for the ProfilerViewer launcher.
++	 * @method _initLauncherDOM
++	 * @private
++	 */
++	proto._initLauncherDOM = function() {
++		YAHOO.log("Creating the launcher...", "info", "ProfilerViewer");
++		
++		var el = this.get("element");
++		Dom.addClass(el, PV.CLASS);
++		Dom.addClass(el, "yui-pv-minimized");
++
++		this._headEl = document.createElement("div");
++		Dom.addClass(this._headEl, "hd");
++		
++		var s = PV.STRINGS.buttons;
++		var b = (this.get("visible")) ? s.hideprofiler : s.viewprofiler;
++		
++		this._toggleVisibleEl = this._createButton(b, this._headEl);
++		
++		this._refreshEl = this._createButton(s.refreshdata, this._headEl);
++		Dom.addClass(this._refreshEl, PV.CLASS_REFRESH);
++		
++		this._busyEl = document.createElement("span");
++		this._headEl.appendChild(this._busyEl);
++
++		var title = document.createElement("h4");
++		title.innerHTML = PV.STRINGS.title;
++		this._headEl.appendChild(title);
++		
++		el.appendChild(this._headEl);
++		
++		Event.on(this._toggleVisibleEl, "click", this._toggleVisible, this, true);
++		Event.on(this._refreshEl, "click", function() {
++			if(!this._busy) {
++				this._setBusyState(true);
++				this.fireEvent("dataRefreshEvent");
++			}
++		}, this, true);
++	};
++
++	/**
++	 * Set up the DOM structure for the ProfilerViewer canvas,
++	 * including the holder for the DataTable.
++	 * @method _initViewerDOM
++	 * @private
++	 */
++	proto._initViewerDOM = function() {
++		YAHOO.log("Creating DOM structure for viewer...", "info", "ProfilerViewer");
++		
++		var el = this.get("element");
++		this._bodyEl = document.createElement("div");
++		Dom.addClass(this._bodyEl, "bd");
++	 	this._tableEl = document.createElement("div");
++		Dom.addClass(this._tableEl, PV.CLASS_TABLE);
++		this._bodyEl.appendChild(this._tableEl);
++		el.appendChild(this._bodyEl);
++	};
++
++	/**
++	 * Set up the DOM structure for the ProfilerViewer canvas.
++	 * @method _initChartDOM
++	 * @private
++	 */
++	proto._initChartDOM = function() {
++		YAHOO.log("Adding DOM structure for chart...", "info", "ProfilerViewer");
++		
++		this._chartContainer = document.createElement("div");
++		Dom.addClass(this._chartContainer, PV.CLASS_CHART_CONTAINER);
++		
++		var chl = document.createElement("div");
++		Dom.addClass(chl, PV.CLASS_CHART_LEGEND);
++		
++		var chw = document.createElement("div");
++
++		this._chartLegendEl = document.createElement("dl");
++		this._chartLegendEl.innerHTML = "<dd>" + PV.STRINGS.initMessage + "</dd>";
++		
++		this._chartEl = document.createElement("div");
++		Dom.addClass(this._chartEl, PV.CLASS_CHART);
++		
++		var msg = document.createElement("p");
++		msg.innerHTML = PV.STRINGS.installFlashMessage;
++		this._chartEl.appendChild(msg);
++		
++		this._chartContainer.appendChild(chl);
++		chl.appendChild(chw);
++		chw.appendChild(this._chartLegendEl);
++		this._chartContainer.appendChild(this._chartEl);
++		this._bodyEl.insertBefore(this._chartContainer,this._tableEl);
++	};
++
++
++	/**
++	 * Create anchor elements for use as buttons. Args: label
++	 * is text to appear on the face of the button, parentEl
++	 * is the el to which the anchor will be attached, position
++	 * is true for inserting as the first node and false for
++	 * inserting as the last node of the parentEl.
++	 * @method _createButton
++	 * @private
++	 */	
++	proto._createButton = function(label, parentEl, position) {
++		var b = document.createElement("a");
++		b.innerHTML = b.title = label;
++		if(parentEl) {
++			if(!position) {
++				parentEl.appendChild(b);
++			} else {
++				parentEl.insertBefore(b, parentEl.firstChild);	
++			}
++		}
++		return b;
++	};
++	
++	/**
++	 * Set's console busy state.
++	 * @method _setBusyState
++	 * @private
++	 **/
++	proto._setBusyState = function(b) {
++		if(b) {
++			Dom.addClass(this._busyEl, PV.CLASS_BUSY);
++			this._busy = true;
++		} else {
++			Dom.removeClass(this._busyEl, PV.CLASS_BUSY);
++			this._busy = false;
++		}
++	};
++
++	/**
++	 * Generages a sorting function based on current sortedBy
++	 * values.
++	 * @method _createProfilerViewerElement
++	 * @private
++	 **/
++	proto._genSortFunction = function(key, dir) {
++		var by = key;
++		var direction = dir;
++		return function(a, b) {
++			if (direction == YAHOO.widget.DataTable.CLASS_ASC) {
++				return a[by] - b[by];	
++			} else {
++				return ((a[by] - b[by]) * -1);
++			}
++		};
++	};
++
++	/**
++	 * Utility function for array sums.
++	 * @method _arraySum
++	 * @private
++	 **/	
++	 var _arraySum = function(arr){
++		var ct = 0;
++		for(var i = 0; i < arr.length; ct+=arr[i++]){}
++		return ct;
++	};
++	
++	/**
++	 * Retrieves data from Profiler, filtering and sorting as needed
++	 * based on current widget state.  Adds calculated percentage
++	 * column and function name to data returned by Profiler.
++	 * @method _getProfilerData
++	 * @private
++	 **/
++	proto._getProfilerData = function() {
++		YAHOO.log("Profiler data requested from function DataSource.", "info", "ProfilerViewer");
++		
++		var obj = Profiler.getFullReport();
++		var arr = [];
++		var totalTime = 0;
++		for (name in obj) {
++    		if (YAHOO.lang.hasOwnProperty(obj, name)) {
++				var r = obj[name];
++				var o = {};
++				o.fn = name; //add function name to record
++				o.points = r.points.slice(); //copy live array
++				o.calls = r.calls;
++				o.min = r.min;
++				o.max = r.max;
++				o.avg = r.avg;
++				o.total = _arraySum(o.points);
++				o.points = r.points;
++				var f = this.get("filter");
++				if((!f) || (f(o))) {
++					arr.push(o);
++					totalTime += o.total;
++				}
++			}
++		}
++		
++		//add calculated percentage column
++		for (var i = 0, j = arr.length; i < j; i++) {
++			arr[i].pct = (totalTime) ? (arr[i].total * 100) / totalTime : 0;	
++		}
++
++		var sortedBy = this.get("sortedBy");
++		var key = sortedBy.key;
++		var dir = sortedBy.dir;		
++
++		arr.sort(this._genSortFunction(key, dir));
++		
++		YAHOO.log("Returning data from DataSource: " + YAHOO.lang.dump(arr), "info", "ProfilerViewer");
++		
++		return arr;
++	};
++	
++	/**
++	 * Set up the DataTable.
++	 * @method _initDataTable
++	 * @private
++	 */
++	proto._initDataTable = function() {
++		YAHOO.log("Creating DataTable instance...", "info", "ProfilerViewer");
++		
++		var self = this;
++		
++		//Set up the JS Function DataSource, pulling data from
++		//the Profiler.
++		this._dataSource = new YAHOO.util.DataSource(
++			function() {
++				return self._getProfilerData.call(self);	
++			},
++			{
++				responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
++				maxCacheEntries: 0
++			}
++		);
++		var ds = this._dataSource;
++
++		ds.responseSchema =
++		{
++			fields: [ "fn", "avg", "calls", "max", "min", "total", "pct", "points"]
++		};
++		
++		//Set up the DataTable.
++		var formatTimeValue = function(elCell, oRecord, oColumn, oData) {
++			var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000;
++			elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev;
++		};
++
++		var formatPercent = function(elCell, oRecord, oColumn, oData) {
++			var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*100))/100;
++			elCell.innerHTML = a + "%";
++		};
++		
++		var a = YAHOO.widget.DataTable.CLASS_ASC;
++		var d = YAHOO.widget.DataTable.CLASS_DESC;
++		var c = PV.STRINGS.colHeads;
++		var f = formatTimeValue;
++		
++		var cols = [
++			{key:"fn", sortable:true, label: c.fn[0],
++				sortOptions: {defaultDir:a}, 
++				resizeable: (YAHOO.util.DragDrop) ? true : false,
++				minWidth:c.fn[1]},
++			{key:"calls", sortable:true, label: c.calls[0],
++				sortOptions: {defaultDir:d},
++				width:c.calls[1]},
++			{key:"avg", sortable:true, label: c.avg[0],
++				sortOptions: {defaultDir:d},
++				formatter:f,
++				width:c.avg[1]},
++			{key:"min", sortable:true, label: c.min[0],
++				sortOptions: {defaultDir:a},
++				formatter:f,
++				width:c.min[1]}, 
++			{key:"max", sortable:true, label: c.max[0],
++				sortOptions: {defaultDir:d},
++				formatter:f,
++				width:c.max[1]},
++			{key:"total", sortable:true, label: c.total[0],
++				sortOptions: {defaultDir:d},
++				formatter:f,
++				width:c.total[1]},
++			{key:"pct", sortable:true, label: c.pct[0],
++				sortOptions: {defaultDir:d}, 
++				formatter:formatPercent,
++				width:c.pct[1]}
++		];
++
++		this._dataTable = new YAHOO.widget.DataTable(this._tableEl, cols, ds, {
++			scrollable:true,
++			height:this.get("tableHeight"),
++			initialRequest:null,
++			sortedBy: {
++				key: "total",
++				dir: YAHOO.widget.DataTable.CLASS_DESC
++			}
++		});
++		var dt = this._dataTable;
++
++		//Wire up DataTable events to drive the rest of the UI.
++		dt.subscribe("sortedByChange", this._sortedByChange, this, true);
++		dt.subscribe("renderEvent", this._dataTableRenderHandler, this, true);
++		dt.subscribe("initEvent", this._dataTableRenderHandler, this, true);
++		Event.on(this._tableEl.getElementsByTagName("th"), "click", this._thClickHandler, this, true);
++		YAHOO.log("DataTable initialized.", "info", "ProfilerViewer");
++	};
++		
++	/**
++	 * Proxy the sort event in DataTable into the ProfilerViewer
++	 * attribute.
++	 * @method _sortedByChange
++	 * @private
++	 **/
++	proto._sortedByChange = function(o) {
++		if(o.newValue && o.newValue.key) {
++			YAHOO.log("Relaying DataTable sortedBy value change; new key: " + o.newValue.key + "; new direction: " + o.newValue.dir + ".", "info", "ProfilerViewer");
++			this.set("sortedBy", {key: o.newValue.key, dir:o.newValue.dir});
++		}
++	};
++	
++	/**
++	 * Proxy the render event in DataTable into the ProfilerViewer
++	 * attribute.
++	 * @method _dataTableRenderHandler
++	 * @private
++	 **/
++	proto._dataTableRenderHandler = function(o) {
++		YAHOO.log("DataTable's render event has fired.", "info", "ProfilerViewer");
++		this._setBusyState(false);
++	};
++	
++	/**
++	 * Event handler for clicks on the DataTable's sortable column
++	 * heads.
++	 * @method _thClickHandler
++	 * @private
++	 **/
++	proto._thClickHandler = function(o) {
++		YAHOO.log("DataTable's header row was clicked for sorting.", "info", "ProfilerViewer");
++		this._setBusyState(true);
++	};
++
++	/**
++	 * Refresh DataTable, getting new data from Profiler.
++	 * @method _refreshDataTable
++	 * @private
++	 **/
++	proto._refreshDataTable = function(args) {
++		YAHOO.log("Beginning to refresh DataTable contents...", "info", "ProfilerViewer");
++		var dt = this._dataTable;
++		dt.getDataSource().sendRequest("", dt.onDataReturnInitializeTable, dt);
++		YAHOO.log("DataTable refresh complete.", "info", "ProfilerViewer");
++	};
++
++	/**
++	 * Refresh chart, getting new data from table.
++	 * @method _refreshChart
++	 * @private
++	 **/
++	proto._refreshChart = function() {
++		YAHOO.log("Beginning to refresh Chart contents...", "info", "ProfilerViewer");
++		
++		switch (this.get("sortedBy").key) {
++			case "fn":
++				/*Keep the same data on the chart, but force update to 
++				  reflect new sort order on function/method name: */
++				this._chart.set("dataSource", this._chart.get("dataSource"));
++				/*no further action necessary; chart redraws*/
++				return;
++			case "calls":
++				/*Null out the xAxis formatting before redrawing chart.*/
++				this._chart.set("xAxis", this._chartAxisDefinitionPlain);
++				break;
++			case "pct":
++				this._chart.set("xAxis", this._chartAxisDefinitionPercent);
++				break;
++			default:
++				/*Set the default xAxis; redraw legend; set the new series definition.*/
++				this._chart.set("xAxis", this._chartAxisDefinitionTime);
++				break;
++		}
++		
++		this._drawChartLegend();
++		this._chart.set("series", this._getSeriesDef(this.get("sortedBy").key));
++
++		YAHOO.log("Chart refresh complete.", "info", "ProfilerViewer");
++	};
++	
++	/**
++	 * Get data for the Chart from DataTable recordset
++	 * @method _getChartData
++	 * @private
++	 */
++	proto._getChartData = function() {
++		YAHOO.log("Getting data for chart from function DataSource.", "info", "ProfilerViewer");
++		//var records = this._getProfilerData();
++		var records = this._dataTable.getRecordSet().getRecords(0, this.get("maxChartFunctions"));
++		var arr = [];
++		for (var i = 0, j = records.length; i<j; i++) {
++			arr.push(records[i].getData());	
++		}
++		YAHOO.log("Returning data to Chart: " + YAHOO.lang.dump(arr), "info", "ProfilerViewer");
++		return arr;
++	};
++	
++	/**
++	 * Build series definition based on current configuration attributes.
++	 * @method _getSeriesDef
++	 * @private
++	 */
++	proto._getSeriesDef = function(field) {
++		var sd = this.get("chartSeriesDefinitions")[field];
++		var arr = [];
++		for(var i = 0, j = sd.group.length; i<j; i++) {
++			var c = this.get("chartSeriesDefinitions")[sd.group[i]];
++			arr.push(
++				{displayName:c.displayName,
++				 xField:c.xField,
++				 style: {color:c.style.color, size:c.style.size}
++				}
++			);
++		}
++		
++		YAHOO.log("Returning new series definition to chart: " + YAHOO.lang.dump(arr), "info", "ProfilerViewer");
++		return arr;
++	};
++	
++	/**
++	 * Set up the Chart.
++	 * @method _initChart
++	 * @private
++	 */
++	proto._initChart = function() {
++		YAHOO.log("Initializing chart...", "info", "ProfilerViewer");
++		
++		this._sizeChartCanvas();
++		
++		YAHOO.widget.Chart.SWFURL = this.get("swfUrl");
++
++		var self = this;
++
++		//Create DataSource based on records currently displayed
++		//at the top of the sort list in the DataTable.
++		var ds = new YAHOO.util.DataSource(
++			//force the jsfunction DataSource to run in the scope of
++			//the ProfilerViewer, not in the YAHOO.util.DataSource scope:
++			function() {
++				return self._getChartData.call(self);
++			}, 
++			{
++				responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
++				maxCacheEntries: 0
++			}
++		);
++
++		ds.responseSchema =
++		{
++			fields: [ "fn", "avg", "calls", "max", "min", "total", "pct" ]
++		};
++		
++		ds.subscribe('responseEvent', this._sizeChartCanvas, this, true);
++		
++		//Set up the chart itself.
++		this._chartAxisDefinitionTime = new YAHOO.widget.NumericAxis();
++		this._chartAxisDefinitionTime.labelFunction = "YAHOO.widget.ProfilerViewer.timeAxisLabelFunction";
++		
++		this._chartAxisDefinitionPercent = new YAHOO.widget.NumericAxis();
++		this._chartAxisDefinitionPercent.labelFunction = "YAHOO.widget.ProfilerViewer.percentAxisLabelFunction";
++
++		this._chartAxisDefinitionPlain = new YAHOO.widget.NumericAxis();
++		
++		this._chart = new YAHOO.widget.BarChart( this._chartEl, ds,
++		{
++			yField: "fn",
++			series: this._getSeriesDef(this.get("sortedBy").key),
++			style: this.get("chartStyle"),
++			xAxis: this._chartAxisDefinitionTime
++		} );
++		
++		this._drawChartLegend();
++		this._chartInitialized = true;
++		this._dataTable.unsubscribe("initEvent", this._initChart, this);
++		this._dataTable.subscribe("initEvent", this._refreshChart, this, true);
++		
++		YAHOO.log("Chart initialization complete.", "info", "ProfilerViewer");
++	};
++	
++	/**
++	 * Set up the Chart's legend
++	 * @method _drawChartLegend
++	 * @private
++	 **/
++	proto._drawChartLegend = function() {
++		YAHOO.log("Drawing chart legend...", "info", "ProfilerViewer");
++		var seriesDefs = this.get("chartSeriesDefinitions");
++		var currentDef = seriesDefs[this.get("sortedBy").key];
++		var l = this._chartLegendEl;
++		l.innerHTML = "";
++		for(var i = 0, j = currentDef.group.length; i<j; i++) {
++			var c = seriesDefs[currentDef.group[i]];
++			var dt = document.createElement("dt");
++			Dom.setStyle(dt, "backgroundColor", "#" + c.style.color);
++			var dd = document.createElement("dd");
++			dd.innerHTML = c.displayName;
++			l.appendChild(dt);
++			l.appendChild(dd);
++		}
++	};
++	
++	/**
++	 * Resize the chart's canvas if based on number of records
++	 * returned from the chart's datasource.
++	 * @method _sizeChartCanvas
++	 * @private
++	 **/
++	proto._sizeChartCanvas = function(o) {
++		YAHOO.log("Resizing chart canvas...", "info", "ProfilerViewer");
++		var bars = (o) ? o.response.length : this.get("maxChartFunctions");
++		var s = (bars * 36) + 34;
++		if (s != parseInt(this._chartElHeight, 10)) {
++			this._chartElHeight = s;
++			Dom.setStyle(this._chartEl, "height", s + "px");
++		}
++	};
++
++    /**
++     * setAttributeConfigs TabView specific properties.
++     * @method initAttributes
++     * @param {Object} attr Hash of initial attributes
++	 * @method initAttributes
++	 * @private
++     */
++    proto.initAttributes = function(attr) {
++		YAHOO.log("Initializing attributes...", "info", "ProfilerViewer");
++        YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
++        /**
++         * The YUI Loader base path from which to pull YUI files needed
++		 * in the rendering of the ProfilerViewer canvas.  Passed directly
++		 * to YUI Loader.  Leave blank to draw files from
++		 * yui.yahooapis.com.
++         * @attribute base
++         * @type string
++		 * @default ""
++         */
++        this.setAttributeConfig('base', {
++            value: attr.base
++        });
++
++        /**
++         * The height of the DataTable.  The table will scroll
++		 * vertically if the content overflows the specified
++		 * height.
++         * @attribute tableHeight
++         * @type string
++		 * @default "15em"
++         */
++        this.setAttributeConfig('tableHeight', {
++            value: attr.tableHeight || "15em",
++			method: function(s) {
++				if(this._dataTable) {
++					this._dataTable.set("height", s);
++				}
++			}
++        });
++		
++        /**
++         * The default column key to sort by.  Valid keys are: fn, calls,
++		 * avg, min, max, total.  Valid dir values are: 
++		 * YAHOO.widget.DataTable.CLASS_ASC and
++		 * YAHOO.widget.DataTable.CLASS_DESC (or their
++		 * string equivalents).
++         * @attribute sortedBy
++         * @type string
++		 * @default {key:"total", dir:"yui-dt-desc"}
++         */
++        this.setAttributeConfig('sortedBy', {
++            value: attr.sortedBy || {key:"total", dir:"yui-dt-desc"}
++        });
++
++        /**
++         * A filter function to use in selecting functions that will
++		 * appear in the ProfilerViewer report.  The function is passed
++		 * a function report object and should return a boolean indicating
++		 * whether that function should be included in the ProfilerViewer
++		 * display.  The argument is structured as follows:
++		 *
++		 * {
++		 *	 	fn: <str function name>,
++		 *		calls : <n number of calls>,
++		 *		avg : <n average call duration>,
++		 *		max: <n duration of longest call>,
++		 *		min: <n duration of shortest call>,
++		 *		total: <n total time of all calls>
++		 *		points : <array time in ms of each call>
++		 *	}
++		 *
++		 * For example, you would use the follwing filter function to 
++		 * return only functions that have been called at least once:
++		 * 
++		 * 	function(o) {
++		 *		return (o.calls > 0);
++		 *	}
++		 *
++         * @attribute filter
++         * @type function
++		 * @default null
++         */
++        this.setAttributeConfig('filter', {
++            value: attr.filter || null,
++			validator: YAHOO.lang.isFunction
++        });
++
++		/**
++		 * The path to the YUI Charts swf file; must be a full URI
++		 * or a path relative to the page being profiled. Changes at runtime
++		 * not supported; pass this value in at instantiation.
++		 * @attribute swfUrl
++		 * @type string
++		 * @default "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
++		 */
++		this.setAttributeConfig('swfUrl', {
++			value: attr.swfUrl || "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
++		});
++
++        /**
++         * The maximum number of functions to profile in the chart. The
++		 * greater the number of functions, the greater the height of the
++		 * chart canvas.
++		 * height.
++         * @attribute maxChartFunctions
++         * @type int
++		 * @default 6
++         */
++        this.setAttributeConfig('maxChartFunctions', {
++            value: attr.maxChartFunctions || 6,
++			method: function(s) {
++				if(this._rendered) {
++					this._sizeChartCanvas();
++				}
++			},
++			validator: YAHOO.lang.isNumber
++        });
++		
++        /**
++         * The style object that defines the chart's visual presentation.
++		 * Conforms to the style attribute passed to the Charts Control
++		 * constructor.  See Charts Control User's Guide for more information
++		 * on how to format this object.
++         * @attribute chartStyle
++         * @type obj
++		 * @default See JS source for default definitions.
++         */
++        this.setAttributeConfig('chartStyle', {
++            value: 	attr.chartStyle || {
++				font:
++					{
++						name: "Arial",
++						color: 0xeeee5c,
++						size: 12
++					},
++					background:
++					{
++						color: "6e6e63"
++					}
++				},
++			method: function() {
++					if(this._rendered && this.get("showChart")) {
++						this._refreshChart();
++					}
++				}
++        });
++		
++        /**
++         * The series definition information to use when charting
++		 * specific fields on the chart.  displayName, xField,
++		 * and style members are used to construct the series
++		 * definition; the "group" member is the array of fields
++		 * that should be charted when the table is sorted by a
++		 * given field.
++         * @attribute chartSeriesDefinitions
++         * @type obj
++		 * @default See JS source for full default definitions.
++         */
++        this.setAttributeConfig('chartSeriesDefinitions', {
++            value: 	attr.chartSeriesDefinitions ||  {
++						total: {
++							displayName: PV.STRINGS.colHeads.total[0],
++							xField: "total",
++							style: {color:"4d95dd", size:20},
++							group: ["total"]
++						},
++						calls: {		
++							displayName: PV.STRINGS.colHeads.calls[0],
++							xField: "calls",
++							style: {color:"edff9f", size:20},
++							group: ["calls"]
++						},
++						avg: {
++							displayName: PV.STRINGS.colHeads.avg[0],
++							xField: "avg",
++							style: {color:"209daf", size:9},
++							group: ["avg", "min", "max"]
++						},
++						min: {
++							displayName: PV.STRINGS.colHeads.min[0],
++							xField: "min",
++							style: {color:"b6ecf4", size:9},
++							group: ["avg", "min", "max"]
++						},
++						max: {
++							displayName: PV.STRINGS.colHeads.max[0],
++							xField: "max",
++							style: {color:"29c7de", size:9},
++							group: ["avg", "min", "max"]
++						},
++						pct: {
++							displayName: PV.STRINGS.colHeads.pct[0],
++							xField: "pct",
++							style: {color:"C96EDB", size:20},
++							group: ["pct"]
++						}
++				},
++			method: function() {
++					if(this._rendered && this.get("showChart")) {
++						this._refreshChart();
++					}
++				}
++        });
++		
++        /**
++         * The default visibility setting for the viewer canvas. If true,
++		 * the viewer will load all necessary files and render itself
++		 * immediately upon instantiation; otherwise, the viewer will
++		 * load only minimal resources until the user toggles visibility
++		 * via the UI.
++         * @attribute visible
++         * @type boolean
++		 * @default false
++         */
++        this.setAttributeConfig('visible', {
++            value: attr.visible || false,
++			validator: YAHOO.lang.isBoolean,
++			method: function(b) {
++				if(b) {
++					this._show();
++				} else {
++					if (this._rendered) {
++						this._hide();
++					}
++				}
++			}
++        });
++
++        /**
++         * The default visibility setting for the chart.
++         * @attribute showChart
++         * @type boolean
++		 * @default true
++         */
++        this.setAttributeConfig('showChart', {
++            value: attr.showChart || true,
++			validator: YAHOO.lang.isBoolean,
++			writeOnce: true
++			
++        });
++		
++		YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
++		
++		YAHOO.log("Attributes initialized.", "info", "ProfilerViewer");
++    };
++	
++})();
++YAHOO.register("profilerviewer", YAHOO.widget.ProfilerViewer, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/profilerviewer/profilerviewer-min.js b/pylons_app/public/js/yui/profilerviewer/profilerviewer-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profilerviewer/profilerviewer-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){YAHOO.widget.ProfilerViewer=function(H,G){G=G||{};if(arguments.length==1&&!YAHOO.lang.isString(H)&&!H.nodeName){G=H;H=G.element||null;}if(!H&&!G.element){H=this._createProfilerViewerElement();}YAHOO.widget.ProfilerViewer.superclass.constructor.call(this,H,G);this._init();};YAHOO.extend(YAHOO.widget.ProfilerViewer,YAHOO.util.Element);YAHOO.lang.augmentObject(YAHOO.widget.ProfilerViewer,{CLASS:"yui-pv",CLASS_DASHBOARD:"yui-pv-dashboard",CLASS_REFRESH:"yui-pv-refresh",CLASS_BUSY:"yui-pv-busy",CLASS_CHART_CONTAINER:"yui-pv-chartcontainer",CLASS_CHART:"yui-pv-chart",CLASS_CHART_LEGEND:"yui-pv-chartlegend",CLASS_TABLE:"yui-pv-table",STRINGS:{title:"YUI Profiler (beta)",buttons:{viewprofiler:"View Profiler Data",hideprofiler:"Hide Profiler Report",showchart:"Show Chart",hidechart:"Hide Chart",refreshdata:"Refresh Data"},colHeads:{fn:["Function/Method",null],calls:["Calls",40],avg:["Average",80],min:["Shortest",70],max:["Longest",70],total:["Total Time",70],pct:["Percent",70]},millisecondsAbbrev:"ms",initMessage:"initialiazing chart...",installFlashMessage:"Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href='http://www.adobe.com/go/getflashplayer'>Adobe Flash Player Download Center</a>."},timeAxisLabelFunction:function(H){var G=(H===Math.floor(H))?H:(Math.round(H*1000))/1000;return(G+" "+YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);},percentAxisLabelFunction:function(H){var G=(H===Math.floor(H))?H:(Math.round(H*100))/100;return(G+"%");}},true);var C=YAHOO.util.Dom;var A=YAHOO.util.Event;var B=YAHOO.tool.Profiler;var E=YAHOO.widget.ProfilerViewer;var D=E.prototype;D.refreshData=function(){this.fireEvent("dataRefreshEvent");};D.getHeadEl=function(){return(this._headEl)?C.get(this._headEl):false;};D.getBodyEl=function(){return(this._bodyEl)?C.get(this._bodyEl):false;};D.getChartEl=function(){return(this._chartEl)?C.get(this._chartEl):false;};D.getTableEl=function(){return(this._tableEl)?C.get(this._tableEl):false;};D.getDataTable=function(){return this._dataTable;};D.getChart=function(){return this._chart;};D._rendered=false;D._headEl=null;D._bodyEl=null;D._toggleVisibleEl=null;D._busyEl=null;D._busy=false;D._tableEl=null;D._dataTable=null;D._chartEl=null;D._chartLegendEl=null;D._chartElHeight=250;D._chart=null;D._chartInitialized=false;D._init=function(){this.createEvent("dataRefreshEvent");this.createEvent("renderEvent");this.on("dataRefreshEvent",this._refreshDataTable,this,true);this._initLauncherDOM();if(this.get("showChart")){this.on("sortedByChange",this._refreshChart);}};D._createProfilerViewerElement=function(){var G=document.createElement("div");document.body.insertBefore(G,document.body.firstChild);C.addClass(G,this.SKIN_CLASS);C.addClass(G,E.CLASS);return G;};D.toString=function(){return"ProfilerViewer "+(this.get("id")||this.get("tagName"));};D._toggleVisible=function(){var G=(this.get("visible"))?false:true;this.set("visible",G);};D._show=function(){if(!this._busy){this._setBusyState(true);if(!this._rendered){var G=new YAHOO.util.YUILoader();if(this.get("base")){G.base=this.get("base");}var H=["datatable"];if(this.get("showChart")){H.push("charts");}G.insert({require:H,onSuccess:function(){this._render();},scope:this});}else{var I=this.get("element");C.removeClass(I,"yui-pv-minimized");this._toggleVisibleEl.innerHTML=E.STRINGS.buttons.hideprofiler;C.addClass(I,"yui-pv-null");C.removeClass(I,"yui-pv-null");this.refreshData();}}};D._hide=function(){this._toggleVisibleEl.innerHTML=E.STRINGS.buttons.viewprofiler;C.addClass(this.get("element"),"yui-pv-minimized");};D._render=function(){C.removeClass(this.get("element"),"yui-pv-minimized");this._initViewerDOM();this._initDataTable();if(this.get("showChart")){this._initChartDOM();this._initChart();}this._rendered=true;this._toggleVisibleEl.innerHTML=E.STRINGS.buttons.hideprofiler;this.fireEvent("renderEvent");};D._initLauncherDOM=function(){var I=this.get("element");C.addClass(I,E.CLASS);C.addClass(I,"yui-pv-minimized");this._headEl=document.createElement("div");C.addClass(this._headEl,"hd");var H=E.STRINGS.buttons;var G=(this.get("visible"))?H.hideprofiler:H.viewprofiler;this._toggleVisibleEl=this._createButton(G,this._headEl);this._refreshEl=this._createButton(H.refreshdata,this._headEl);C.addClass(this._refreshEl,E.CLASS_REFRESH);this._busyEl=document.createElement("span");this._headEl.appendChild(this._busyEl);var J=document.createElement("h4");J.innerHTML=E.STRINGS.title;this._headEl.appendChild(J);I.appendChild(this._headEl);A.on(this._toggleVisibleEl,"click",this._toggleVisible,this,true);A.on(this._refreshEl,"click",function(){if(!this._busy){this._setBusyState(true);this.fireEvent("dataRefreshEvent");}},this,true);};D._initViewerDOM=function(){var G=this.get("element");this._bodyEl=document.createElement("div");C.addClass(this._bodyEl,"bd");this._tableEl=document.createElement("div");C.addClass(this._tableEl,E.CLASS_TABLE);this._bodyEl.appendChild(this._tableEl);G.appendChild(this._bodyEl);};D._initChartDOM=function(){this._chartContainer=document.createElement("div");C.addClass(this._chartContainer,E.CLASS_CHART_CONTAINER);var H=document.createElement("div");C.addClass(H,E.CLASS_CHART_LEGEND);var G=document.createElement("div");this._chartLegendEl=document.createElement("dl");this._chartLegendEl.innerHTML="<dd>"+E.STRINGS.initMessage+"</dd>";this._chartEl=document.createElement("div");C.addClass(this._chartEl,E.CLASS_CHART);var I=document.createElement("p");I.innerHTML=E.STRINGS.installFlashMessage;this._chartEl.appendChild(I);this._chartContainer.appendChild(H);H.appendChild(G);G.appendChild(this._chartLegendEl);this._chartContainer.appendChild(this._chartEl);this._bodyEl.insertBefore(this._chartContainer,this._tableEl);};D._createButton=function(I,J,H){var G=document.createElement("a");G.innerHTML=G.title=I;if(J){if(!H){J.appendChild(G);}else{J.insertBefore(G,J.firstChild);}}return G;};D._setBusyState=function(G){if(G){C.addClass(this._busyEl,E.CLASS_BUSY);
++this._busy=true;}else{C.removeClass(this._busyEl,E.CLASS_BUSY);this._busy=false;}};D._genSortFunction=function(H,G){var J=H;var I=G;return function(L,K){if(I==YAHOO.widget.DataTable.CLASS_ASC){return L[J]-K[J];}else{return((L[J]-K[J])*-1);}};};var F=function(G){var I=0;for(var H=0;H<G.length;I+=G[H++]){}return I;};D._getProfilerData=function(){var L=B.getFullReport();var N=[];var H=0;for(name in L){if(YAHOO.lang.hasOwnProperty(L,name)){var G=L[name];var I={};I.fn=name;I.points=G.points.slice();I.calls=G.calls;I.min=G.min;I.max=G.max;I.avg=G.avg;I.total=F(I.points);I.points=G.points;var P=this.get("filter");if((!P)||(P(I))){N.push(I);H+=I.total;}}}for(var M=0,K=N.length;M<K;M++){N[M].pct=(H)?(N[M].total*100)/H:0;}var O=this.get("sortedBy");var Q=O.key;var J=O.dir;N.sort(this._genSortFunction(Q,J));return N;};D._initDataTable=function(){var P=this;this._dataSource=new YAHOO.util.DataSource(function(){return P._getProfilerData.call(P);},{responseType:YAHOO.util.DataSource.TYPE_JSARRAY,maxCacheEntries:0});var H=this._dataSource;H.responseSchema={fields:["fn","avg","calls","max","min","total","pct","points"]};var O=function(S,R,T,U){var Q=(U===Math.floor(U))?U:(Math.round(U*1000))/1000;S.innerHTML=Q+" "+E.STRINGS.millisecondsAbbrev;};var N=function(S,R,T,U){var Q=(U===Math.floor(U))?U:(Math.round(U*100))/100;S.innerHTML=Q+"%";};var M=YAHOO.widget.DataTable.CLASS_ASC;var J=YAHOO.widget.DataTable.CLASS_DESC;var K=E.STRINGS.colHeads;var I=O;var L=[{key:"fn",sortable:true,label:K.fn[0],sortOptions:{defaultDir:M},resizeable:(YAHOO.util.DragDrop)?true:false,minWidth:K.fn[1]},{key:"calls",sortable:true,label:K.calls[0],sortOptions:{defaultDir:J},width:K.calls[1]},{key:"avg",sortable:true,label:K.avg[0],sortOptions:{defaultDir:J},formatter:I,width:K.avg[1]},{key:"min",sortable:true,label:K.min[0],sortOptions:{defaultDir:M},formatter:I,width:K.min[1]},{key:"max",sortable:true,label:K.max[0],sortOptions:{defaultDir:J},formatter:I,width:K.max[1]},{key:"total",sortable:true,label:K.total[0],sortOptions:{defaultDir:J},formatter:I,width:K.total[1]},{key:"pct",sortable:true,label:K.pct[0],sortOptions:{defaultDir:J},formatter:N,width:K.pct[1]}];this._dataTable=new YAHOO.widget.DataTable(this._tableEl,L,H,{scrollable:true,height:this.get("tableHeight"),initialRequest:null,sortedBy:{key:"total",dir:YAHOO.widget.DataTable.CLASS_DESC}});var G=this._dataTable;G.subscribe("sortedByChange",this._sortedByChange,this,true);G.subscribe("renderEvent",this._dataTableRenderHandler,this,true);G.subscribe("initEvent",this._dataTableRenderHandler,this,true);A.on(this._tableEl.getElementsByTagName("th"),"click",this._thClickHandler,this,true);};D._sortedByChange=function(G){if(G.newValue&&G.newValue.key){this.set("sortedBy",{key:G.newValue.key,dir:G.newValue.dir});}};D._dataTableRenderHandler=function(G){this._setBusyState(false);};D._thClickHandler=function(G){this._setBusyState(true);};D._refreshDataTable=function(G){var H=this._dataTable;H.getDataSource().sendRequest("",H.onDataReturnInitializeTable,H);};D._refreshChart=function(){switch(this.get("sortedBy").key){case"fn":this._chart.set("dataSource",this._chart.get("dataSource"));return;case"calls":this._chart.set("xAxis",this._chartAxisDefinitionPlain);break;case"pct":this._chart.set("xAxis",this._chartAxisDefinitionPercent);break;default:this._chart.set("xAxis",this._chartAxisDefinitionTime);break;}this._drawChartLegend();this._chart.set("series",this._getSeriesDef(this.get("sortedBy").key));};D._getChartData=function(){var H=this._dataTable.getRecordSet().getRecords(0,this.get("maxChartFunctions"));var G=[];for(var J=0,I=H.length;J<I;J++){G.push(H[J].getData());}return G;};D._getSeriesDef=function(K){var J=this.get("chartSeriesDefinitions")[K];var G=[];for(var I=0,H=J.group.length;I<H;I++){var L=this.get("chartSeriesDefinitions")[J.group[I]];G.push({displayName:L.displayName,xField:L.xField,style:{color:L.style.color,size:L.style.size}});}return G;};D._initChart=function(){this._sizeChartCanvas();YAHOO.widget.Chart.SWFURL=this.get("swfUrl");var G=this;var H=new YAHOO.util.DataSource(function(){return G._getChartData.call(G);},{responseType:YAHOO.util.DataSource.TYPE_JSARRAY,maxCacheEntries:0});H.responseSchema={fields:["fn","avg","calls","max","min","total","pct"]};H.subscribe("responseEvent",this._sizeChartCanvas,this,true);this._chartAxisDefinitionTime=new YAHOO.widget.NumericAxis();this._chartAxisDefinitionTime.labelFunction="YAHOO.widget.ProfilerViewer.timeAxisLabelFunction";this._chartAxisDefinitionPercent=new YAHOO.widget.NumericAxis();this._chartAxisDefinitionPercent.labelFunction="YAHOO.widget.ProfilerViewer.percentAxisLabelFunction";this._chartAxisDefinitionPlain=new YAHOO.widget.NumericAxis();this._chart=new YAHOO.widget.BarChart(this._chartEl,H,{yField:"fn",series:this._getSeriesDef(this.get("sortedBy").key),style:this.get("chartStyle"),xAxis:this._chartAxisDefinitionTime});this._drawChartLegend();this._chartInitialized=true;this._dataTable.unsubscribe("initEvent",this._initChart,this);this._dataTable.subscribe("initEvent",this._refreshChart,this,true);};D._drawChartLegend=function(){var M=this.get("chartSeriesDefinitions");var I=M[this.get("sortedBy").key];var H=this._chartLegendEl;H.innerHTML="";for(var K=0,J=I.group.length;K<J;K++){var N=M[I.group[K]];var L=document.createElement("dt");C.setStyle(L,"backgroundColor","#"+N.style.color);var G=document.createElement("dd");G.innerHTML=N.displayName;H.appendChild(L);H.appendChild(G);}};D._sizeChartCanvas=function(I){var G=(I)?I.response.length:this.get("maxChartFunctions");var H=(G*36)+34;if(H!=parseInt(this._chartElHeight,10)){this._chartElHeight=H;C.setStyle(this._chartEl,"height",H+"px");}};D.initAttributes=function(G){YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this,G);this.setAttributeConfig("base",{value:G.base});this.setAttributeConfig("tableHeight",{value:G.tableHeight||"15em",method:function(H){if(this._dataTable){this._dataTable.set("height",H);}}});this.setAttributeConfig("sortedBy",{value:G.sortedBy||{key:"total",dir:"yui-dt-desc"}});
++this.setAttributeConfig("filter",{value:G.filter||null,validator:YAHOO.lang.isFunction});this.setAttributeConfig("swfUrl",{value:G.swfUrl||"http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"});this.setAttributeConfig("maxChartFunctions",{value:G.maxChartFunctions||6,method:function(H){if(this._rendered){this._sizeChartCanvas();}},validator:YAHOO.lang.isNumber});this.setAttributeConfig("chartStyle",{value:G.chartStyle||{font:{name:"Arial",color:15658588,size:12},background:{color:"6e6e63"}},method:function(){if(this._rendered&&this.get("showChart")){this._refreshChart();}}});this.setAttributeConfig("chartSeriesDefinitions",{value:G.chartSeriesDefinitions||{total:{displayName:E.STRINGS.colHeads.total[0],xField:"total",style:{color:"4d95dd",size:20},group:["total"]},calls:{displayName:E.STRINGS.colHeads.calls[0],xField:"calls",style:{color:"edff9f",size:20},group:["calls"]},avg:{displayName:E.STRINGS.colHeads.avg[0],xField:"avg",style:{color:"209daf",size:9},group:["avg","min","max"]},min:{displayName:E.STRINGS.colHeads.min[0],xField:"min",style:{color:"b6ecf4",size:9},group:["avg","min","max"]},max:{displayName:E.STRINGS.colHeads.max[0],xField:"max",style:{color:"29c7de",size:9},group:["avg","min","max"]},pct:{displayName:E.STRINGS.colHeads.pct[0],xField:"pct",style:{color:"C96EDB",size:20},group:["pct"]}},method:function(){if(this._rendered&&this.get("showChart")){this._refreshChart();}}});this.setAttributeConfig("visible",{value:G.visible||false,validator:YAHOO.lang.isBoolean,method:function(H){if(H){this._show();}else{if(this._rendered){this._hide();}}}});this.setAttributeConfig("showChart",{value:G.showChart||true,validator:YAHOO.lang.isBoolean,writeOnce:true});YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this,G);};})();YAHOO.register("profilerviewer",YAHOO.widget.ProfilerViewer,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/profilerviewer/profilerviewer.js b/pylons_app/public/js/yui/profilerviewer/profilerviewer.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/profilerviewer/profilerviewer.js
+@@ -0,0 +1,1192 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++
++    /**
++     * The ProfilerViewer module provides a graphical display for viewing
++	 * the output of the YUI Profiler <http://developer.yahoo.com/yui/profiler>.
++     * @module profilerviewer
++     * @requires yahoo, dom, event, element, profiler, yuiloader
++     */
++
++    /**
++     * A widget to view YUI Profiler output.
++     * @namespace YAHOO.widget
++     * @class ProfilerViewer
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param {HTMLElement | String | Object} el(optional) The html 
++     * element into which the ProfileViewer should be rendered. 
++     * An element will be created if none provided.
++     * @param {Object} attr (optional) A key map of the ProfilerViewer's 
++     * initial attributes.  Ignored if first arg is an attributes object.
++     */
++    YAHOO.widget.ProfilerViewer = function(el, attr) {
++        attr = attr || {};
++        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
++            attr = el;
++            el = attr.element || null;
++        }
++        if (!el && !attr.element) {
++            el = this._createProfilerViewerElement();
++        }
++
++    	YAHOO.widget.ProfilerViewer.superclass.constructor.call(this, el, attr); 
++		
++		this._init();
++		
++    };
++
++    YAHOO.extend(YAHOO.widget.ProfilerViewer, YAHOO.util.Element);
++	
++	// Static members of YAHOO.widget.ProfilerViewer:
++	YAHOO.lang.augmentObject(YAHOO.widget.ProfilerViewer, {
++		/**
++		 * Classname for ProfilerViewer containing element.
++		 * @static
++		 * @property CLASS
++		 * @type string
++		 * @public
++		 * @default "yui-pv"
++		 */
++		CLASS: 'yui-pv',
++	
++		/**
++		 * Classname for ProfilerViewer button dashboard. 
++		 * @static
++		 * @property CLASS_DASHBOARD
++		 * @type string
++		 * @public
++		 * @default "yui-pv-dashboard"
++		 */
++		CLASS_DASHBOARD: 'yui-pv-dashboard',
++
++		/**
++		 * Classname for the "refresh data" button. 
++		 * @static
++		 * @property CLASS_REFRESH
++		 * @type string
++		 * @public
++		 * @default "yui-pv-refresh"
++		 */
++		CLASS_REFRESH: 'yui-pv-refresh',
++
++		/**
++		 * Classname for busy indicator in the dashboard. 
++		 * @static
++		 * @property CLASS_BUSY
++		 * @type string
++		 * @public
++		 * @default "yui-pv-busy"
++		 */
++		CLASS_BUSY: 'yui-pv-busy',
++	
++		/**
++		 * Classname for element containing the chart and chart
++		 * legend elements.
++		 * @static
++		 * @property CLASS_CHART_CONTAINER
++		 * @type string
++		 * @public
++		 * @default "yui-pv-chartcontainer"
++		 */
++		CLASS_CHART_CONTAINER: 'yui-pv-chartcontainer',
++	
++		/**
++		 * Classname for element containing the chart.
++		 * @static
++		 * @property CLASS_CHART
++		 * @type string
++		 * @public
++		 * @default "yui-pv-chart"
++		 */
++		CLASS_CHART: 'yui-pv-chart',
++		
++		/**
++		 * Classname for element containing the chart's legend. 
++		 * @static
++		 * @property CLASS_CHART_LEGEND
++		 * @type string
++		 * @public
++		 * @default "yui-pv-chartlegend"
++		 */
++		CLASS_CHART_LEGEND: 'yui-pv-chartlegend',
++		
++		/**
++		 * Classname for element containing the datatable. 
++		 * @static
++		 * @property CLASS_TABLE
++		 * @type string
++		 * @public
++		 * @default "yui-pv-table"
++		 */
++		CLASS_TABLE: 'yui-pv-table',
++		
++		/**
++		 * Strings used in the UI.
++		 * @static
++		 * @property STRINGS
++		 * @object
++		 * @public
++		 * @default English language strings for UI.
++		 */
++		STRINGS: {
++			title: "YUI Profiler (beta)",
++			buttons: {
++				viewprofiler: "View Profiler Data",
++				hideprofiler: "Hide Profiler Report",
++				showchart: "Show Chart",
++				hidechart: "Hide Chart",
++				refreshdata: "Refresh Data"
++			},
++			colHeads: {
++				//key: [column head label, width in pixels]
++				fn: ["Function/Method", null], //must auto-size
++				calls: ["Calls", 40],
++				avg: ["Average", 80],
++				min: ["Shortest", 70],
++				max: ["Longest", 70],
++				total: ["Total Time", 70],
++				pct: ["Percent", 70]
++			},
++			millisecondsAbbrev: "ms",
++			initMessage: "initialiazing chart...",
++			installFlashMessage: "Unable to load Flash content. The YUI Charts Control requires Flash Player 9.0.45 or higher. You can download the latest version of Flash Player from the <a href='http://www.adobe.com/go/getflashplayer'>Adobe Flash Player Download Center</a>."
++		},
++
++		/**
++		 * Function used to format numbers in milliseconds
++		 * for chart; must be publicly accessible, per Charts spec.
++		 * @static
++		 * @property timeAxisLabelFunction
++		 * @type function
++		 * @private
++		 */
++		timeAxisLabelFunction: function(n) {
++			var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000;
++			return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);
++		},
++
++		/**
++		 * Function used to format percent numbers for chart; must
++		 * be publicly accessible, per Charts spec.
++		 * @static
++		 * @property percentAxisLabelFunction
++		 * @type function
++		 * @private
++		 */
++		percentAxisLabelFunction: function(n) {
++			var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100;
++			return (a + "%");
++		}
++		
++	
++	},true);
++	
++
++	//
++	// STANDARD SHORTCUTS
++	//
++    var Dom = YAHOO.util.Dom;
++    var Event = YAHOO.util.Event;
++	var Profiler = YAHOO.tool.Profiler;
++	var PV = YAHOO.widget.ProfilerViewer;
++	var proto = PV.prototype;
++
++
++	//
++	// PUBLIC METHODS
++	//
++	
++	 /**
++     * Refreshes the data displayed in the ProfilerViewer. When called,
++	 * this will invoke a refresh of the DataTable and (if displayed)
++	 * the Chart.
++     * @method refreshData
++     * @return void
++	 * @public
++     */	
++	proto.refreshData = function() {
++		this.fireEvent("dataRefreshEvent");
++	};
++
++	 /**
++     * Returns the element containing the console's header.
++     * @method getHeadEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getHeadEl = function() {
++		return (this._headEl) ? Dom.get(this._headEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's body, including
++	 * the chart and the datatable..
++     * @method getBodyEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getBodyEl = function() {
++		return (this._bodyEl) ? Dom.get(this._bodyEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's chart.
++     * @method getChartEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getChartEl = function() {
++		return (this._chartEl) ? Dom.get(this._chartEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's dataTable.
++     * @method getTableEl
++     * @return HTMLElement
++	 * @public
++     */	
++	proto.getTableEl = function() {
++		return (this._tableEl) ? Dom.get(this._tableEl) : false;
++	};
++
++	 /**
++     * Returns the element containing the console's DataTable
++	 * instance.
++     * @method getDataTable
++     * @return YAHOO.widget.DataTable
++	 * @public
++     */	
++	proto.getDataTable = function() {
++		return this._dataTable;
++	};
++
++	 /**
++     * Returns the element containing the console's Chart instance.
++     * @method getChart
++     * @return YAHOO.widget.BarChart
++	 * @public
++     */	
++	proto.getChart = function() {
++		return this._chart;
++	};
++
++
++    //
++    // PRIVATE PROPERTIES
++    //
++    proto._rendered = false;
++	proto._headEl = null;
++	proto._bodyEl = null;
++	proto._toggleVisibleEl = null;
++	proto._busyEl = null;
++	proto._busy = false;
++	
++	proto._tableEl = null;
++	proto._dataTable = null;
++
++	proto._chartEl = null;
++	proto._chartLegendEl = null;
++	proto._chartElHeight = 250;
++	proto._chart = null;
++	proto._chartInitialized = false;
++
++    //
++    // PRIVATE METHODS
++    //
++
++	proto._init = function() {
++		/**
++		 * CUSTOM EVENTS
++		 **/
++		
++		/**
++		 * Fired when a data refresh is requested. No arguments are passed
++		 * with this event.
++		 *
++		 * @event refreshDataEvent
++		 */
++		this.createEvent("dataRefreshEvent");
++		
++		/**
++		 * Fired when the viewer canvas first renders. No arguments are passed
++		 * with this event.
++		 *
++		 * @event renderEvent
++		 */
++		this.createEvent("renderEvent");
++
++		this.on("dataRefreshEvent", this._refreshDataTable, this, true);
++		
++		this._initLauncherDOM();
++		
++		if(this.get("showChart")) {
++			this.on("sortedByChange", this._refreshChart);
++		}
++
++	};
++
++	/**
++	 * If no element is passed in, create it as the first element
++	 * in the document.
++	 * @method _createProfilerViewerElement
++	 * @return HTMLElement
++	 * @private
++	 */
++	proto._createProfilerViewerElement = function() {
++
++		var el = document.createElement("div");
++		document.body.insertBefore(el, document.body.firstChild);
++		Dom.addClass(el, this.SKIN_CLASS);
++		Dom.addClass(el, PV.CLASS);
++		return el;
++	};
++			
++    /**
++     * Provides a readable name for the ProfilerViewer instance.
++     * @method toString
++     * @return String
++	 * @private
++	 */
++    proto.toString = function() {
++        return "ProfilerViewer " + (this.get('id') || this.get('tagName'));
++    };
++
++    /**
++     * Toggles visibility of the viewer canvas.
++     * @method _toggleVisible
++     * @return void
++	 * @private
++     */	
++	proto._toggleVisible = function() {
++		
++		var newVis = (this.get("visible")) ? false : true;
++		this.set("visible", newVis);
++    };
++
++    /**
++     * Shows the viewer canvas.
++     * @method show
++     * @return void
++	 * @private
++     */	
++	 proto._show = function() {
++	 	if(!this._busy) {
++			this._setBusyState(true);
++			if(!this._rendered) {
++				var loader = new YAHOO.util.YUILoader();
++				if (this.get("base")) {
++					loader.base = this.get("base");
++				}
++				
++				var modules = ["datatable"];
++				if(this.get("showChart")) {
++					modules.push("charts");
++				}
++				
++				loader.insert({ require: modules,
++								onSuccess: function() {
++									this._render();
++								},
++								scope: this});
++			} else {
++				var el = this.get("element");
++				Dom.removeClass(el, "yui-pv-minimized");
++				this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
++				
++				//The Flash Charts component can't be set to display:none,
++				//and even after positioning it offscreen the screen
++				//may fail to repaint in some browsers.  Adding an empty
++				//style rule to the console body can help force a repaint:
++				Dom.addClass(el, "yui-pv-null");
++				Dom.removeClass(el, "yui-pv-null");
++				
++				//Always refresh data when changing to visible:
++				this.refreshData();
++			}
++		}
++    };
++
++    /**
++     * Hides the viewer canvas.
++     * @method hide
++     * @return void
++	 * @private
++     */	
++	proto._hide = function() {
++		this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.viewprofiler;
++		Dom.addClass(this.get("element"), "yui-pv-minimized");
++    };
++	
++	/**
++	 * Render the viewer canvas
++	 * @method _render
++	 * @return void
++	 * @private
++	 */
++	proto._render = function() {
++		
++		Dom.removeClass(this.get("element"), "yui-pv-minimized");
++		
++		this._initViewerDOM();
++		this._initDataTable();
++		if(this.get("showChart")) {
++			this._initChartDOM();
++			this._initChart();
++		}
++		this._rendered = true;
++		this._toggleVisibleEl.innerHTML = PV.STRINGS.buttons.hideprofiler;
++		
++		this.fireEvent("renderEvent");
++
++	};
++	
++	/**
++	 * Set up the DOM structure for the ProfilerViewer launcher.
++	 * @method _initLauncherDOM
++	 * @private
++	 */
++	proto._initLauncherDOM = function() {
++		
++		var el = this.get("element");
++		Dom.addClass(el, PV.CLASS);
++		Dom.addClass(el, "yui-pv-minimized");
++
++		this._headEl = document.createElement("div");
++		Dom.addClass(this._headEl, "hd");
++		
++		var s = PV.STRINGS.buttons;
++		var b = (this.get("visible")) ? s.hideprofiler : s.viewprofiler;
++		
++		this._toggleVisibleEl = this._createButton(b, this._headEl);
++		
++		this._refreshEl = this._createButton(s.refreshdata, this._headEl);
++		Dom.addClass(this._refreshEl, PV.CLASS_REFRESH);
++		
++		this._busyEl = document.createElement("span");
++		this._headEl.appendChild(this._busyEl);
++
++		var title = document.createElement("h4");
++		title.innerHTML = PV.STRINGS.title;
++		this._headEl.appendChild(title);
++		
++		el.appendChild(this._headEl);
++		
++		Event.on(this._toggleVisibleEl, "click", this._toggleVisible, this, true);
++		Event.on(this._refreshEl, "click", function() {
++			if(!this._busy) {
++				this._setBusyState(true);
++				this.fireEvent("dataRefreshEvent");
++			}
++		}, this, true);
++	};
++
++	/**
++	 * Set up the DOM structure for the ProfilerViewer canvas,
++	 * including the holder for the DataTable.
++	 * @method _initViewerDOM
++	 * @private
++	 */
++	proto._initViewerDOM = function() {
++		
++		var el = this.get("element");
++		this._bodyEl = document.createElement("div");
++		Dom.addClass(this._bodyEl, "bd");
++	 	this._tableEl = document.createElement("div");
++		Dom.addClass(this._tableEl, PV.CLASS_TABLE);
++		this._bodyEl.appendChild(this._tableEl);
++		el.appendChild(this._bodyEl);
++	};
++
++	/**
++	 * Set up the DOM structure for the ProfilerViewer canvas.
++	 * @method _initChartDOM
++	 * @private
++	 */
++	proto._initChartDOM = function() {
++		
++		this._chartContainer = document.createElement("div");
++		Dom.addClass(this._chartContainer, PV.CLASS_CHART_CONTAINER);
++		
++		var chl = document.createElement("div");
++		Dom.addClass(chl, PV.CLASS_CHART_LEGEND);
++		
++		var chw = document.createElement("div");
++
++		this._chartLegendEl = document.createElement("dl");
++		this._chartLegendEl.innerHTML = "<dd>" + PV.STRINGS.initMessage + "</dd>";
++		
++		this._chartEl = document.createElement("div");
++		Dom.addClass(this._chartEl, PV.CLASS_CHART);
++		
++		var msg = document.createElement("p");
++		msg.innerHTML = PV.STRINGS.installFlashMessage;
++		this._chartEl.appendChild(msg);
++		
++		this._chartContainer.appendChild(chl);
++		chl.appendChild(chw);
++		chw.appendChild(this._chartLegendEl);
++		this._chartContainer.appendChild(this._chartEl);
++		this._bodyEl.insertBefore(this._chartContainer,this._tableEl);
++	};
++
++
++	/**
++	 * Create anchor elements for use as buttons. Args: label
++	 * is text to appear on the face of the button, parentEl
++	 * is the el to which the anchor will be attached, position
++	 * is true for inserting as the first node and false for
++	 * inserting as the last node of the parentEl.
++	 * @method _createButton
++	 * @private
++	 */	
++	proto._createButton = function(label, parentEl, position) {
++		var b = document.createElement("a");
++		b.innerHTML = b.title = label;
++		if(parentEl) {
++			if(!position) {
++				parentEl.appendChild(b);
++			} else {
++				parentEl.insertBefore(b, parentEl.firstChild);	
++			}
++		}
++		return b;
++	};
++	
++	/**
++	 * Set's console busy state.
++	 * @method _setBusyState
++	 * @private
++	 **/
++	proto._setBusyState = function(b) {
++		if(b) {
++			Dom.addClass(this._busyEl, PV.CLASS_BUSY);
++			this._busy = true;
++		} else {
++			Dom.removeClass(this._busyEl, PV.CLASS_BUSY);
++			this._busy = false;
++		}
++	};
++
++	/**
++	 * Generages a sorting function based on current sortedBy
++	 * values.
++	 * @method _createProfilerViewerElement
++	 * @private
++	 **/
++	proto._genSortFunction = function(key, dir) {
++		var by = key;
++		var direction = dir;
++		return function(a, b) {
++			if (direction == YAHOO.widget.DataTable.CLASS_ASC) {
++				return a[by] - b[by];	
++			} else {
++				return ((a[by] - b[by]) * -1);
++			}
++		};
++	};
++
++	/**
++	 * Utility function for array sums.
++	 * @method _arraySum
++	 * @private
++	 **/	
++	 var _arraySum = function(arr){
++		var ct = 0;
++		for(var i = 0; i < arr.length; ct+=arr[i++]){}
++		return ct;
++	};
++	
++	/**
++	 * Retrieves data from Profiler, filtering and sorting as needed
++	 * based on current widget state.  Adds calculated percentage
++	 * column and function name to data returned by Profiler.
++	 * @method _getProfilerData
++	 * @private
++	 **/
++	proto._getProfilerData = function() {
++		
++		var obj = Profiler.getFullReport();
++		var arr = [];
++		var totalTime = 0;
++		for (name in obj) {
++    		if (YAHOO.lang.hasOwnProperty(obj, name)) {
++				var r = obj[name];
++				var o = {};
++				o.fn = name; //add function name to record
++				o.points = r.points.slice(); //copy live array
++				o.calls = r.calls;
++				o.min = r.min;
++				o.max = r.max;
++				o.avg = r.avg;
++				o.total = _arraySum(o.points);
++				o.points = r.points;
++				var f = this.get("filter");
++				if((!f) || (f(o))) {
++					arr.push(o);
++					totalTime += o.total;
++				}
++			}
++		}
++		
++		//add calculated percentage column
++		for (var i = 0, j = arr.length; i < j; i++) {
++			arr[i].pct = (totalTime) ? (arr[i].total * 100) / totalTime : 0;	
++		}
++
++		var sortedBy = this.get("sortedBy");
++		var key = sortedBy.key;
++		var dir = sortedBy.dir;		
++
++		arr.sort(this._genSortFunction(key, dir));
++		
++		
++		return arr;
++	};
++	
++	/**
++	 * Set up the DataTable.
++	 * @method _initDataTable
++	 * @private
++	 */
++	proto._initDataTable = function() {
++		
++		var self = this;
++		
++		//Set up the JS Function DataSource, pulling data from
++		//the Profiler.
++		this._dataSource = new YAHOO.util.DataSource(
++			function() {
++				return self._getProfilerData.call(self);	
++			},
++			{
++				responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
++				maxCacheEntries: 0
++			}
++		);
++		var ds = this._dataSource;
++
++		ds.responseSchema =
++		{
++			fields: [ "fn", "avg", "calls", "max", "min", "total", "pct", "points"]
++		};
++		
++		//Set up the DataTable.
++		var formatTimeValue = function(elCell, oRecord, oColumn, oData) {
++			var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000;
++			elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev;
++		};
++
++		var formatPercent = function(elCell, oRecord, oColumn, oData) {
++			var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*100))/100;
++			elCell.innerHTML = a + "%";
++		};
++		
++		var a = YAHOO.widget.DataTable.CLASS_ASC;
++		var d = YAHOO.widget.DataTable.CLASS_DESC;
++		var c = PV.STRINGS.colHeads;
++		var f = formatTimeValue;
++		
++		var cols = [
++			{key:"fn", sortable:true, label: c.fn[0],
++				sortOptions: {defaultDir:a}, 
++				resizeable: (YAHOO.util.DragDrop) ? true : false,
++				minWidth:c.fn[1]},
++			{key:"calls", sortable:true, label: c.calls[0],
++				sortOptions: {defaultDir:d},
++				width:c.calls[1]},
++			{key:"avg", sortable:true, label: c.avg[0],
++				sortOptions: {defaultDir:d},
++				formatter:f,
++				width:c.avg[1]},
++			{key:"min", sortable:true, label: c.min[0],
++				sortOptions: {defaultDir:a},
++				formatter:f,
++				width:c.min[1]}, 
++			{key:"max", sortable:true, label: c.max[0],
++				sortOptions: {defaultDir:d},
++				formatter:f,
++				width:c.max[1]},
++			{key:"total", sortable:true, label: c.total[0],
++				sortOptions: {defaultDir:d},
++				formatter:f,
++				width:c.total[1]},
++			{key:"pct", sortable:true, label: c.pct[0],
++				sortOptions: {defaultDir:d}, 
++				formatter:formatPercent,
++				width:c.pct[1]}
++		];
++
++		this._dataTable = new YAHOO.widget.DataTable(this._tableEl, cols, ds, {
++			scrollable:true,
++			height:this.get("tableHeight"),
++			initialRequest:null,
++			sortedBy: {
++				key: "total",
++				dir: YAHOO.widget.DataTable.CLASS_DESC
++			}
++		});
++		var dt = this._dataTable;
++
++		//Wire up DataTable events to drive the rest of the UI.
++		dt.subscribe("sortedByChange", this._sortedByChange, this, true);
++		dt.subscribe("renderEvent", this._dataTableRenderHandler, this, true);
++		dt.subscribe("initEvent", this._dataTableRenderHandler, this, true);
++		Event.on(this._tableEl.getElementsByTagName("th"), "click", this._thClickHandler, this, true);
++	};
++		
++	/**
++	 * Proxy the sort event in DataTable into the ProfilerViewer
++	 * attribute.
++	 * @method _sortedByChange
++	 * @private
++	 **/
++	proto._sortedByChange = function(o) {
++		if(o.newValue && o.newValue.key) {
++			this.set("sortedBy", {key: o.newValue.key, dir:o.newValue.dir});
++		}
++	};
++	
++	/**
++	 * Proxy the render event in DataTable into the ProfilerViewer
++	 * attribute.
++	 * @method _dataTableRenderHandler
++	 * @private
++	 **/
++	proto._dataTableRenderHandler = function(o) {
++		this._setBusyState(false);
++	};
++	
++	/**
++	 * Event handler for clicks on the DataTable's sortable column
++	 * heads.
++	 * @method _thClickHandler
++	 * @private
++	 **/
++	proto._thClickHandler = function(o) {
++		this._setBusyState(true);
++	};
++
++	/**
++	 * Refresh DataTable, getting new data from Profiler.
++	 * @method _refreshDataTable
++	 * @private
++	 **/
++	proto._refreshDataTable = function(args) {
++		var dt = this._dataTable;
++		dt.getDataSource().sendRequest("", dt.onDataReturnInitializeTable, dt);
++	};
++
++	/**
++	 * Refresh chart, getting new data from table.
++	 * @method _refreshChart
++	 * @private
++	 **/
++	proto._refreshChart = function() {
++		
++		switch (this.get("sortedBy").key) {
++			case "fn":
++				/*Keep the same data on the chart, but force update to 
++				  reflect new sort order on function/method name: */
++				this._chart.set("dataSource", this._chart.get("dataSource"));
++				/*no further action necessary; chart redraws*/
++				return;
++			case "calls":
++				/*Null out the xAxis formatting before redrawing chart.*/
++				this._chart.set("xAxis", this._chartAxisDefinitionPlain);
++				break;
++			case "pct":
++				this._chart.set("xAxis", this._chartAxisDefinitionPercent);
++				break;
++			default:
++				/*Set the default xAxis; redraw legend; set the new series definition.*/
++				this._chart.set("xAxis", this._chartAxisDefinitionTime);
++				break;
++		}
++		
++		this._drawChartLegend();
++		this._chart.set("series", this._getSeriesDef(this.get("sortedBy").key));
++
++	};
++	
++	/**
++	 * Get data for the Chart from DataTable recordset
++	 * @method _getChartData
++	 * @private
++	 */
++	proto._getChartData = function() {
++		//var records = this._getProfilerData();
++		var records = this._dataTable.getRecordSet().getRecords(0, this.get("maxChartFunctions"));
++		var arr = [];
++		for (var i = 0, j = records.length; i<j; i++) {
++			arr.push(records[i].getData());	
++		}
++		return arr;
++	};
++	
++	/**
++	 * Build series definition based on current configuration attributes.
++	 * @method _getSeriesDef
++	 * @private
++	 */
++	proto._getSeriesDef = function(field) {
++		var sd = this.get("chartSeriesDefinitions")[field];
++		var arr = [];
++		for(var i = 0, j = sd.group.length; i<j; i++) {
++			var c = this.get("chartSeriesDefinitions")[sd.group[i]];
++			arr.push(
++				{displayName:c.displayName,
++				 xField:c.xField,
++				 style: {color:c.style.color, size:c.style.size}
++				}
++			);
++		}
++		
++		return arr;
++	};
++	
++	/**
++	 * Set up the Chart.
++	 * @method _initChart
++	 * @private
++	 */
++	proto._initChart = function() {
++		
++		this._sizeChartCanvas();
++		
++		YAHOO.widget.Chart.SWFURL = this.get("swfUrl");
++
++		var self = this;
++
++		//Create DataSource based on records currently displayed
++		//at the top of the sort list in the DataTable.
++		var ds = new YAHOO.util.DataSource(
++			//force the jsfunction DataSource to run in the scope of
++			//the ProfilerViewer, not in the YAHOO.util.DataSource scope:
++			function() {
++				return self._getChartData.call(self);
++			}, 
++			{
++				responseType: YAHOO.util.DataSource.TYPE_JSARRAY,
++				maxCacheEntries: 0
++			}
++		);
++
++		ds.responseSchema =
++		{
++			fields: [ "fn", "avg", "calls", "max", "min", "total", "pct" ]
++		};
++		
++		ds.subscribe('responseEvent', this._sizeChartCanvas, this, true);
++		
++		//Set up the chart itself.
++		this._chartAxisDefinitionTime = new YAHOO.widget.NumericAxis();
++		this._chartAxisDefinitionTime.labelFunction = "YAHOO.widget.ProfilerViewer.timeAxisLabelFunction";
++		
++		this._chartAxisDefinitionPercent = new YAHOO.widget.NumericAxis();
++		this._chartAxisDefinitionPercent.labelFunction = "YAHOO.widget.ProfilerViewer.percentAxisLabelFunction";
++
++		this._chartAxisDefinitionPlain = new YAHOO.widget.NumericAxis();
++		
++		this._chart = new YAHOO.widget.BarChart( this._chartEl, ds,
++		{
++			yField: "fn",
++			series: this._getSeriesDef(this.get("sortedBy").key),
++			style: this.get("chartStyle"),
++			xAxis: this._chartAxisDefinitionTime
++		} );
++		
++		this._drawChartLegend();
++		this._chartInitialized = true;
++		this._dataTable.unsubscribe("initEvent", this._initChart, this);
++		this._dataTable.subscribe("initEvent", this._refreshChart, this, true);
++		
++	};
++	
++	/**
++	 * Set up the Chart's legend
++	 * @method _drawChartLegend
++	 * @private
++	 **/
++	proto._drawChartLegend = function() {
++		var seriesDefs = this.get("chartSeriesDefinitions");
++		var currentDef = seriesDefs[this.get("sortedBy").key];
++		var l = this._chartLegendEl;
++		l.innerHTML = "";
++		for(var i = 0, j = currentDef.group.length; i<j; i++) {
++			var c = seriesDefs[currentDef.group[i]];
++			var dt = document.createElement("dt");
++			Dom.setStyle(dt, "backgroundColor", "#" + c.style.color);
++			var dd = document.createElement("dd");
++			dd.innerHTML = c.displayName;
++			l.appendChild(dt);
++			l.appendChild(dd);
++		}
++	};
++	
++	/**
++	 * Resize the chart's canvas if based on number of records
++	 * returned from the chart's datasource.
++	 * @method _sizeChartCanvas
++	 * @private
++	 **/
++	proto._sizeChartCanvas = function(o) {
++		var bars = (o) ? o.response.length : this.get("maxChartFunctions");
++		var s = (bars * 36) + 34;
++		if (s != parseInt(this._chartElHeight, 10)) {
++			this._chartElHeight = s;
++			Dom.setStyle(this._chartEl, "height", s + "px");
++		}
++	};
++
++    /**
++     * setAttributeConfigs TabView specific properties.
++     * @method initAttributes
++     * @param {Object} attr Hash of initial attributes
++	 * @method initAttributes
++	 * @private
++     */
++    proto.initAttributes = function(attr) {
++        YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
++        /**
++         * The YUI Loader base path from which to pull YUI files needed
++		 * in the rendering of the ProfilerViewer canvas.  Passed directly
++		 * to YUI Loader.  Leave blank to draw files from
++		 * yui.yahooapis.com.
++         * @attribute base
++         * @type string
++		 * @default ""
++         */
++        this.setAttributeConfig('base', {
++            value: attr.base
++        });
++
++        /**
++         * The height of the DataTable.  The table will scroll
++		 * vertically if the content overflows the specified
++		 * height.
++         * @attribute tableHeight
++         * @type string
++		 * @default "15em"
++         */
++        this.setAttributeConfig('tableHeight', {
++            value: attr.tableHeight || "15em",
++			method: function(s) {
++				if(this._dataTable) {
++					this._dataTable.set("height", s);
++				}
++			}
++        });
++		
++        /**
++         * The default column key to sort by.  Valid keys are: fn, calls,
++		 * avg, min, max, total.  Valid dir values are: 
++		 * YAHOO.widget.DataTable.CLASS_ASC and
++		 * YAHOO.widget.DataTable.CLASS_DESC (or their
++		 * string equivalents).
++         * @attribute sortedBy
++         * @type string
++		 * @default {key:"total", dir:"yui-dt-desc"}
++         */
++        this.setAttributeConfig('sortedBy', {
++            value: attr.sortedBy || {key:"total", dir:"yui-dt-desc"}
++        });
++
++        /**
++         * A filter function to use in selecting functions that will
++		 * appear in the ProfilerViewer report.  The function is passed
++		 * a function report object and should return a boolean indicating
++		 * whether that function should be included in the ProfilerViewer
++		 * display.  The argument is structured as follows:
++		 *
++		 * {
++		 *	 	fn: <str function name>,
++		 *		calls : <n number of calls>,
++		 *		avg : <n average call duration>,
++		 *		max: <n duration of longest call>,
++		 *		min: <n duration of shortest call>,
++		 *		total: <n total time of all calls>
++		 *		points : <array time in ms of each call>
++		 *	}
++		 *
++		 * For example, you would use the follwing filter function to 
++		 * return only functions that have been called at least once:
++		 * 
++		 * 	function(o) {
++		 *		return (o.calls > 0);
++		 *	}
++		 *
++         * @attribute filter
++         * @type function
++		 * @default null
++         */
++        this.setAttributeConfig('filter', {
++            value: attr.filter || null,
++			validator: YAHOO.lang.isFunction
++        });
++
++		/**
++		 * The path to the YUI Charts swf file; must be a full URI
++		 * or a path relative to the page being profiled. Changes at runtime
++		 * not supported; pass this value in at instantiation.
++		 * @attribute swfUrl
++		 * @type string
++		 * @default "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
++		 */
++		this.setAttributeConfig('swfUrl', {
++			value: attr.swfUrl || "http://yui.yahooapis.com/2.5.0/build/charts/assets/charts.swf"
++		});
++
++        /**
++         * The maximum number of functions to profile in the chart. The
++		 * greater the number of functions, the greater the height of the
++		 * chart canvas.
++		 * height.
++         * @attribute maxChartFunctions
++         * @type int
++		 * @default 6
++         */
++        this.setAttributeConfig('maxChartFunctions', {
++            value: attr.maxChartFunctions || 6,
++			method: function(s) {
++				if(this._rendered) {
++					this._sizeChartCanvas();
++				}
++			},
++			validator: YAHOO.lang.isNumber
++        });
++		
++        /**
++         * The style object that defines the chart's visual presentation.
++		 * Conforms to the style attribute passed to the Charts Control
++		 * constructor.  See Charts Control User's Guide for more information
++		 * on how to format this object.
++         * @attribute chartStyle
++         * @type obj
++		 * @default See JS source for default definitions.
++         */
++        this.setAttributeConfig('chartStyle', {
++            value: 	attr.chartStyle || {
++				font:
++					{
++						name: "Arial",
++						color: 0xeeee5c,
++						size: 12
++					},
++					background:
++					{
++						color: "6e6e63"
++					}
++				},
++			method: function() {
++					if(this._rendered && this.get("showChart")) {
++						this._refreshChart();
++					}
++				}
++        });
++		
++        /**
++         * The series definition information to use when charting
++		 * specific fields on the chart.  displayName, xField,
++		 * and style members are used to construct the series
++		 * definition; the "group" member is the array of fields
++		 * that should be charted when the table is sorted by a
++		 * given field.
++         * @attribute chartSeriesDefinitions
++         * @type obj
++		 * @default See JS source for full default definitions.
++         */
++        this.setAttributeConfig('chartSeriesDefinitions', {
++            value: 	attr.chartSeriesDefinitions ||  {
++						total: {
++							displayName: PV.STRINGS.colHeads.total[0],
++							xField: "total",
++							style: {color:"4d95dd", size:20},
++							group: ["total"]
++						},
++						calls: {		
++							displayName: PV.STRINGS.colHeads.calls[0],
++							xField: "calls",
++							style: {color:"edff9f", size:20},
++							group: ["calls"]
++						},
++						avg: {
++							displayName: PV.STRINGS.colHeads.avg[0],
++							xField: "avg",
++							style: {color:"209daf", size:9},
++							group: ["avg", "min", "max"]
++						},
++						min: {
++							displayName: PV.STRINGS.colHeads.min[0],
++							xField: "min",
++							style: {color:"b6ecf4", size:9},
++							group: ["avg", "min", "max"]
++						},
++						max: {
++							displayName: PV.STRINGS.colHeads.max[0],
++							xField: "max",
++							style: {color:"29c7de", size:9},
++							group: ["avg", "min", "max"]
++						},
++						pct: {
++							displayName: PV.STRINGS.colHeads.pct[0],
++							xField: "pct",
++							style: {color:"C96EDB", size:20},
++							group: ["pct"]
++						}
++				},
++			method: function() {
++					if(this._rendered && this.get("showChart")) {
++						this._refreshChart();
++					}
++				}
++        });
++		
++        /**
++         * The default visibility setting for the viewer canvas. If true,
++		 * the viewer will load all necessary files and render itself
++		 * immediately upon instantiation; otherwise, the viewer will
++		 * load only minimal resources until the user toggles visibility
++		 * via the UI.
++         * @attribute visible
++         * @type boolean
++		 * @default false
++         */
++        this.setAttributeConfig('visible', {
++            value: attr.visible || false,
++			validator: YAHOO.lang.isBoolean,
++			method: function(b) {
++				if(b) {
++					this._show();
++				} else {
++					if (this._rendered) {
++						this._hide();
++					}
++				}
++			}
++        });
++
++        /**
++         * The default visibility setting for the chart.
++         * @attribute showChart
++         * @type boolean
++		 * @default true
++         */
++        this.setAttributeConfig('showChart', {
++            value: attr.showChart || true,
++			validator: YAHOO.lang.isBoolean,
++			writeOnce: true
++			
++        });
++		
++		YAHOO.widget.ProfilerViewer.superclass.initAttributes.call(this, attr);
++		
++    };
++	
++})();
++YAHOO.register("profilerviewer", YAHOO.widget.ProfilerViewer, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/progressbar/assets/progressbar-core.css b/pylons_app/public/js/yui/progressbar/assets/progressbar-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/progressbar/assets/progressbar-core.css
+@@ -0,0 +1,85 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* several */
++
++.yui-pb-bar,
++.yui-pb-mask {
++	width:100%;
++	height:100%;
++}	
++
++/* contentBox */
++.yui-pb {
++	position:relative;
++	top:0;
++	left:0;
++
++	width:200px;
++	height:20px;
++
++	padding:0;
++	border:none;
++	margin:0;
++
++	text-align:left;
++}
++
++/* mask */
++
++.yui-pb-mask {
++	position:absolute;
++	top:0;
++	left:0;
++
++	z-index:2;
++}
++
++.yui-pb-mask div {
++	width:50%;
++	height:50%;
++	background-repeat:no-repeat;
++	padding:0;
++	position: absolute;
++}
++
++.yui-pb-tl {
++	background-position: top left;
++}
++.yui-pb-tr {
++	background-position: top right;
++	left:50%;
++}
++.yui-pb-bl {
++	background-position: bottom left;
++	top:50%;
++}
++.yui-pb-br {
++	background-position: bottom right;
++	left:50%;
++	top:50%;
++}
++
++/* bar */
++.yui-pb-bar {
++	margin:0;
++	position:absolute;
++	left:0;
++	top:0;
++	z-index:1;
++}
++
++.yui-pb-ltr .yui-pb-bar {
++	_position:static
++}
++
++.yui-pb-rtl .yui-pb-bar {
++	background-position:right;
++}
++
++.yui-pb-btt .yui-pb-bar {
++	background-position:left bottom;
++}
+diff --git a/pylons_app/public/js/yui/progressbar/assets/skins/sam/back-h.png b/pylons_app/public/js/yui/progressbar/assets/skins/sam/back-h.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..5f69f4e2564357c83eddcecd5f104e14ecf09d49
+GIT binary patch
+literal 334
+zc%17D@N?(olHy`uVBq!ia0vp^8bBP#!2~4rHx?TMDaPU;cPEB*=VV?2IV|apzK#qG
+z8~eHcB(ehe3dtTpz6=aiY77hwEes65fI<x~7#K<o7#Ln9FfdrnU|<k0n6oR;1}JgH
+z)5S3)!};yiyIf5H0xS<+{*4b<)X}Bla#E$Y?n6kwfwQUk<}*+AxaHGJ1HBrT-s{$7
+zJ$;RTbMD6+tr_3WRm|ez4}O@Zb;qYQb5~T;X^W_)&jt}q!S|z^w!PIkxG_`b;KFsf
+z2g|l^XIcIAm{7>oOOtf|Nms9M{<~TG{NqzV`0JLv$@3}2r!1e&d7^!S-DO!ayYtzu
+zlYbXZdwJtvz~-c)`W2~GWd>K)%(x?;HM38a$5dPGdwUdyvi-fkSZmx?=65Sx>H+$T
+N!PC{xWt~$(695Wxh_(O#
+
+diff --git a/pylons_app/public/js/yui/progressbar/assets/skins/sam/back-v.png b/pylons_app/public/js/yui/progressbar/assets/skins/sam/back-v.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..658574a9d560febf6f58a6a005e602ae734f97da
+GIT binary patch
+literal 338
+zc%17D@N?(olHy`uVBq!ia0vp^fk3Rm!2~2Z4>V?gr~;43Vg?4j!ywFfJby(BP>``W
+z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eBzCyA`kS_y6l^O#>Lkk1LFQ8Dv3kHT#0|tgy
+z2@DKYGZ+}e3+C(!v;j)&_H=O!$#8x<BarKmfq={FzxokfN?|%dTGx`aPo_;?CsN(U
+za$o4g6J>etNtMognoD1W&+apvb;IkbSm6HPD+>;$YzUet;PS1vwR5kn@U<CJzp5zR
+ztA2iGQ_a24e`YOvZozl>@xAZc*X`bN{qf6~>%I#YFG@c*bNAWmV~4vw71T)EP4+yI
+zm~wtolli{h{KvO{m;tHh|I%4jCy1_T3f;gJc5v07ee4g7Yue6#khD9T{)1<JaRqD2
+dr2i*Ww1ZhH=WaM6eIMuz22WQ%mvv4FO#n?1hROf{
+
+diff --git a/pylons_app/public/js/yui/progressbar/assets/skins/sam/bar-h.png b/pylons_app/public/js/yui/progressbar/assets/skins/sam/bar-h.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..fea13b15d80fe640814d8ed1da4a9819de4fad9d
+GIT binary patch
+literal 365
+zc%17D@N?(olHy`uVBq!ia0vp^8bBPt!2~3qyj?I2NHG=%xjQkeJ16rJ$YDu$^mSxl
+z*x1kgCy^D%S4j2<@?~JCQe$9fXklRZ1r%y{!N5>zz`*b-fq}tl1_Oh5!JJ)zHb9Bj
+zo-U3d8P0E~+HyA*iX83NS6;e=XVR0zjVBT|NT_&L{`FGpKAL2Fa>10KxKFts1mAI{
+zTl(++c+c<euIK-kyy{k0xo;i8q_R@}?4}2|{wOj|x>Bw&>1Hg`q?f)-lTL;*t$N(e
+z5?hd3GOgj$2NlMp2LqYB{x-9SR9ACql#~mV9Q=7MjH&2tFH1^vHs=YGaG?o#I;s{w
+z@^7uZwW|JFk^J=j)5pJVtzYr_iPcWOb;5U<>=m}`da)?fz4zkhFyGbPdQqiUBy97q
+c5+S&cLBv9~EU0~*E702vp00i_>zopr03oxJMgRZ+
+
+diff --git a/pylons_app/public/js/yui/progressbar/assets/skins/sam/bar-v.png b/pylons_app/public/js/yui/progressbar/assets/skins/sam/bar-v.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..2efd664d9abdddff7e06ec512e0198f5fcaf1a56
+GIT binary patch
+literal 387
+zc%17D@N?(olHy`uVBq!ia0vp^0YI$5!2~3qF}(@{Qk(@Ik;M!Qe1}1p@p%4<6rdnu
+zage(c!@6@aFM%AEbVpxD28NCO+<y{TfqaEzk04(LhAK4%hK3dfhF?ITh8GMBr3MTP
+zuM!v-tY$DUh!@P+6=(yLc;o5f7?R=qcE(<=Lk1#luTOU<bUaXSJ@V?25+9!)pORA3
+z{`F6uJbLu#nF?Q%0>{4xi!)|R=d;J&iHZ8yvVO_gGSA|3s-364JloT@b<z53QMHFo
+zO8pf{b~$7r)ZrmuQ*!Y~IcLpc!T3J~Pt)7P{`gfEU9EWBZEjV4I5@N5ipcMFr~LP2
+z<$39|^Ye?=ZdJP-lPYz(q;}$}vy-ph<UhJFp=?I{EMuN6NoR63dfPK?UTjI~S#f@z
+zcm|{H0@f`JVRPOyFEE+Xb}2y0%lW0mUB-o~TUw@F5Q=j0&d}Ty+|d5fK<?P#i-Iq>
+e|NoWUGS9D3dxyvWMZl0`VDNPHb6Mw<&;$VKhMGhG
+
+diff --git a/pylons_app/public/js/yui/progressbar/assets/skins/sam/progressbar-skin.css b/pylons_app/public/js/yui/progressbar/assets/skins/sam/progressbar-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/progressbar/assets/skins/sam/progressbar-skin.css
+@@ -0,0 +1,56 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-pb-bar {
++	background-color:blue;
++}
++
++.yui-pb {
++	border: thin solid #808080
++}
++
++.yui-skin-sam .yui-pb {
++	background-color: transparent;
++	border: solid #808080;
++	border-width:1px 0;
++}
++
++.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr {
++	background-image: url(back-h.png);
++	background-repeat:repeat-x;
++}
++
++.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt {
++	background-image: url(back-v.png);
++	background-repeat:repeat-y;
++}
++.yui-skin-sam  .yui-pb-bar{
++	background-color:transparent;
++}
++
++.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar {
++	background-image:url(bar-h.png);
++	background-repeat:repeat-x;
++}
++.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar {
++	background-image:url(bar-v.png);
++	background-repeat:repeat-y;
++}
++
++.yui-skin-sam .yui-pb-mask {
++	border: solid #808080;
++	border-width:0 1px;
++	margin: 0 -1px;
++}
++
++.yui-skin-sam .yui-pb-caption {
++	color:#000;
++	text-align:center;
++	margin:0 auto;
++}
++.yui-skin-sam .yui-pb-range {
++	color:#a6a6a6;
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/progressbar/assets/skins/sam/progressbar.css b/pylons_app/public/js/yui/progressbar/assets/skins/sam/progressbar.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/progressbar/assets/skins/sam/progressbar.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-pb-bar,.yui-pb-mask{width:100%;height:100%;}.yui-pb{position:relative;top:0;left:0;width:200px;height:20px;padding:0;border:none;margin:0;text-align:left;}.yui-pb-mask{position:absolute;top:0;left:0;z-index:2;}.yui-pb-mask div{width:50%;height:50%;background-repeat:no-repeat;padding:0;position:absolute;}.yui-pb-tl{background-position:top left;}.yui-pb-tr{background-position:top right;left:50%;}.yui-pb-bl{background-position:bottom left;top:50%;}.yui-pb-br{background-position:bottom right;left:50%;top:50%;}.yui-pb-bar{margin:0;position:absolute;left:0;top:0;z-index:1;}.yui-pb-ltr .yui-pb-bar{_position:static;}.yui-pb-rtl .yui-pb-bar{background-position:right;}.yui-pb-btt .yui-pb-bar{background-position:left bottom;}.yui-pb-bar{background-color:blue;}.yui-pb{border:thin solid #808080;}.yui-skin-sam .yui-pb{background-color:transparent;border:solid #808080;border-width:1px 0;}.yui-skin-sam .yui-pb-rtl,.yui-skin-sam .yui-pb-ltr{background-image:url(back-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb,.yui-skin-sam .yui-pb-btt{background-image:url(back-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-bar{background-color:transparent;}.yui-skin-sam .yui-pb-ltr .yui-pb-bar,.yui-skin-sam .yui-pb-rtl .yui-pb-bar{background-image:url(bar-h.png);background-repeat:repeat-x;}.yui-skin-sam .yui-pb-ttb .yui-pb-bar,.yui-skin-sam .yui-pb-btt .yui-pb-bar{background-image:url(bar-v.png);background-repeat:repeat-y;}.yui-skin-sam .yui-pb-mask{border:solid #808080;border-width:0 1px;margin:0 -1px;}.yui-skin-sam .yui-pb-caption{color:#000;text-align:center;margin:0 auto;}.yui-skin-sam .yui-pb-range{color:#a6a6a6;}
+diff --git a/pylons_app/public/js/yui/progressbar/progressbar-debug.js b/pylons_app/public/js/yui/progressbar/progressbar-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/progressbar/progressbar-debug.js
+@@ -0,0 +1,691 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ *
++ * @module progressbar
++ * @requires yahoo, dom, event, element
++ * @optional animation
++ * @title ProgressBar Widget
++ */
++
++(function () {
++	var Dom = YAHOO.util.Dom,
++		Lang = YAHOO.lang,
++		// ClassNames
++		CLASS_PROGBAR = 'yui-pb',
++		CLASS_MASK = CLASS_PROGBAR + '-mask',
++		CLASS_BAR = CLASS_PROGBAR + '-bar',
++		CLASS_ANIM = CLASS_PROGBAR + '-anim',
++		CLASS_TL = CLASS_PROGBAR + '-tl',
++		CLASS_TR = CLASS_PROGBAR + '-tr',
++		CLASS_BL = CLASS_PROGBAR + '-bl',
++		CLASS_BR = CLASS_PROGBAR + '-br',
++		
++		// Configuration attributes
++		WIDTH = 'width',
++		HEIGHT = 'height',
++		MIN_VALUE = 'minValue',
++		MAX_VALUE = 'maxValue',
++		VALUE = 'value',
++		ANIM = 'anim',
++		DIRECTION = 'direction',
++		DIRECTION_LTR = 'ltr',
++		DIRECTION_RTL = 'rtl',
++		DIRECTION_TTB = 'ttb',
++		DIRECTION_BTT = 'btt',
++		BAR_EL = 'barEl',
++		MASK_EL = 'maskEl',
++		ARIA_TEXT_TEMPLATE = 'ariaTextTemplate',
++		
++		// Events
++		START = 'start',
++		PROGRESS = 'progress',
++		COMPLETE = 'complete';
++	
++	/**
++	 * The ProgressBar widget provides an easy way to draw a bar depicting progress of an operation,
++	 * a level meter, rating or any such simple linear measure.
++	 * It allows for highly customized styles including animation, vertical or horizontal and forward or reverse.
++	 * @namespace YAHOO.widget
++	 * @class ProgressBar
++	 * @extends YAHOO.util.Element
++	 * @param oConfigs {object} An object containing any configuration attributes to be set 
++	 * @constructor
++	 */        
++	var Prog = function(oConfigs) {
++		YAHOO.log('Creating ProgressBar instance','info','ProgressBar');
++        
++		Prog.superclass.constructor.call(this, document.createElement('div') , oConfigs);
++		this._init(oConfigs);
++		
++	};
++	
++	YAHOO.widget.ProgressBar = Prog;
++
++    /**
++     * String containing the HTML string which is the basis for the Progress Bar.
++     *
++     * @property ProgressBar.MARKUP
++     * @type String
++     * @static
++     * @final
++     * @default (too long)
++     */
++	Prog.MARKUP = [
++		'<div class="',
++		CLASS_BAR,
++		'"></div><div class="',
++		CLASS_MASK,
++		'"><div class="',
++		CLASS_TL,
++		'"></div><div class="',
++		CLASS_TR,
++		'"></div><div class="',
++		CLASS_BL,
++		'"></div><div class="',
++		CLASS_BR,
++		'"></div></div>'
++	].join('');
++
++	
++	Lang.extend(Prog, YAHOO.util.Element, {
++		/**
++		 * Initialization code for the widget, separate from the constructor to allow for overriding/patching.
++		 * It is called after <a href="#method_initAttributes">initAttributes</a>
++		 *
++		 * @method _init
++		 * @param oConfigs {Object} (Optional) Object literal definition of configuration values.  
++		 * @protected
++		 */	
++		 _init: function (oConfigs) {
++			/**
++			 * Fires when the value is about to change.  It reports the starting value
++			 * @event start
++			 * @type CustomEvent
++			 * @param value {Number} the current (initial) value
++			 */
++			// No actual creation required, event will be created when subscribed to
++			//this.createEvent(START);
++			/**
++			 * If animation is active, it will trigger several times during the animation providing intermediate values
++			 * If animation is not active, it will fire only once providing the end value
++			 * @event progress
++			 * @type CustomEvent
++			 * @param  value{Number} the current, changing value
++			 */
++			// No actual creation required, event will be created when subscribed to
++			//this.createEvent(PROGRESS);
++			/**
++			 * Fires at the end of the animation or immediately upon changing values if animation is not loaded
++			 * @event complete
++			 * @type CustomEvent
++			 * @param value {Number} the current (final)  value
++			 */
++			// No actual creation required, event will be created when listened to
++			//this.createEvent(COMPLETE);
++			
++
++		},
++		/**
++		 * Implementation of Element's abstract method. Sets up config values.
++		 *
++		 * @method initAttributes
++		 * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
++		 * @private
++		 */	
++		initAttributes: function (oConfigs) {
++			YAHOO.log('Initializing configuration attributes','info','ProgressBar');
++
++		    Prog.superclass.initAttributes.call(this, oConfigs);
++			this.set('innerHTML',Prog.MARKUP);
++			this.addClass(CLASS_PROGBAR);
++			
++			// I need to apply at least the following styles, if present in oConfigs, 
++			// to the ProgressBar so when it later reads the width and height, 
++			// they are already set to the correct values.
++			// id is important because it can be used as a CSS selector.
++			var key, presets = ['id',WIDTH,HEIGHT,'class','style'];
++			while((key = presets.pop())) {
++				if (key in oConfigs) {
++					this.set(key,oConfigs[key]);
++				}
++			}
++			
++
++			/**
++			 * @attribute barEl
++			 * @description Reference to the HTML object that makes the moving bar (read-only)
++			 * @type HTMLElement (div)
++			 * @readonly
++			 */			
++		    this.setAttributeConfig(BAR_EL, {
++		        readOnly: true,
++		        value: this.getElementsByClassName(CLASS_BAR)[0]
++		    });
++			/**
++			 * @attribute maskEl
++			 * @description Reference to the HTML object that overlays the bar providing the mask. (read-only)
++			 * @type HTMLElement (table)
++			 * @readonly
++			 */			
++		    this.setAttributeConfig(MASK_EL, {
++		        readOnly: true,
++		        value: this.getElementsByClassName(CLASS_MASK)[0]
++		    });
++			
++			
++			/**
++			 * @attribute direction
++			 * @description Direction of movement of the bar.  
++			 *    It can be any of 'ltr' (left to right), 'rtl' (the reverse) , 'ttb' (top to bottom) or 'btt'.
++			 *    Can only be set once and only before rendering.
++			 * @default 'ltr'
++			 * @type String (any of "ltr", "rtl", "ttb" or "btt")
++			 */			
++			this.setAttributeConfig(DIRECTION, {
++				value:DIRECTION_LTR,
++				validator:function(value) {
++					if (this._rendered) { return false; }
++					switch (value) {
++						case DIRECTION_LTR:
++						case DIRECTION_RTL:
++						case DIRECTION_TTB:
++						case DIRECTION_BTT:
++							return true;
++						default:
++							return false;
++					}
++				},
++				method: function(value) {
++					this._barSizeFunction = this._barSizeFunctions[this.get(ANIM)?1:0][value];
++				}
++			});
++			
++			/**
++			 * @attribute maxValue
++			 * @description Represents the top value for the bar. 
++			 *   The bar will be fully extended when reaching this value.  
++			 *   Values higher than this will be ignored. 
++			 * @default 100
++			 * @type Number
++			 */				    
++		    this.setAttributeConfig(MAX_VALUE, {
++		        value: 100,
++				validator: Lang.isNumber,
++				method: function (value) {
++					this.get('element').setAttribute('aria-valuemax',value);
++					if (this.get(VALUE) > value) { this.set(VALUE,value); }
++				}
++		    });
++			
++			/**
++			 * @attribute minValue
++			 * @description Represents the lowest value for the bar. 
++			 *   The bar will be totally collapsed when reaching this value.  
++			 *    Values lower than this will be ignored. 
++			 * @default 0
++			 * @type Number
++			 */				
++
++		    this.setAttributeConfig(MIN_VALUE, {
++		        value: 0,
++				validator: Lang.isNumber,
++				method: function (value) {
++					this.get('element').setAttribute('aria-valuemin',value);
++					if (this.get(VALUE) < value) { this.set(VALUE,value); }
++				}
++		    });
++			/**
++			 * @attribute width
++			 * @description Width of the ProgressBar.
++			 *     If a number, it will be assumed to be in pixels.  
++			 *     If a string it should be a valid setting for the CSS width attribute.  
++			 *     It will always be returned as a string including units.
++			 * @default "200px"
++			 * @type Number or String
++			 */				
++
++		    this.setAttributeConfig(WIDTH, {
++				getter: function() {
++					return this.getStyle(WIDTH);
++				},
++				method: this._widthChange
++		    });
++		
++
++			/**
++			 * @attribute height
++			 * @description Height of the ProgressBar.
++			 *     If a number, it will be assumed to be in pixels.  
++			 *     If a string it should be a valid setting for the CSS height attribute.  
++			 *     It will always be returned as a string including units.
++			 * @default "20px"
++			 * @type Number or String
++			 */				
++		    this.setAttributeConfig(HEIGHT, {
++				getter:function() {
++					return this.getStyle(HEIGHT);
++				},
++				method: this._heightChange
++		    });
++			
++			
++	
++			/**
++			 * @attribute ariaTextTemplate 
++			 * @description Text to be voiced by screen readers.
++			 *     The text is processed by <a href="YAHOO.lang.html#method_substitute">YAHOO.lang.substitute</a>.  
++			 *     It can use the placeholders {value}, {minValue} and {maxValue}
++			 * @default "{value}"
++			 * @type String
++			 */				
++			this.setAttributeConfig(ARIA_TEXT_TEMPLATE, {
++				value:'{value}'
++			});
++			
++			/**
++			 * @attribute value
++			 * @description The value for the bar.  
++			 *     Valid values are in between the minValue and maxValue attributes.
++			 * @default 0
++			 * @type Number
++			 */			
++			this.setAttributeConfig(VALUE, {
++				value: 0,
++				validator: function(value) {
++					return Lang.isNumber(value) && value >= this.get(MIN_VALUE) && value <= this.get(MAX_VALUE);
++				},
++				method: this._valueChange
++		    });
++			
++			/**
++			 * @attribute anim
++			 * @description it accepts either a boolean (recommended) or an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a>.
++			 *   If a boolean, it will enable/disable animation creating its own instance of the animation utility.  
++			 *   If given an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a> it will use that instance.
++			 *   The <a href="YAHOO.util.Anim.html">animation</a> utility needs to be loaded.
++			 *   When read, it returns the instance of the animation utility in use or null if none.  
++			 *   It can be used to set the animation parameters such as easing methods or duration.
++			 * @default null
++			 * @type {boolean} or {instance of YAHOO.util.Anim}
++			 */						
++			this.setAttributeConfig(ANIM, {
++				validator: function(value) {
++					return !!YAHOO.util.Anim;
++				},
++				setter: this._animSetter
++			});
++			
++			
++		},
++		/** 
++		 *  Renders the ProgressBar into the given container.  
++		 *  If the container has other content, the ProgressBar will be appended to it.
++		 *  If the second argument is provided, the ProgressBar will be inserted before the given child.
++		 * The method is chainable since it returns a reference to this instance.
++		 * @method render
++		 * @param el {HTML Element}  HTML element that will contain the ProgressBar
++		 * @param before {HTML Element}  (optional) If present, the ProgressBar will be inserted before this element.
++		 * @return {YAHOO.widget.ProgressBar}
++		 * @chainable
++		 */
++		render: function(parent,before) {
++
++			YAHOO.log('start render','info','ProgressBar');
++			if (this._rendered) { return; }
++			this._rendered = true;
++			
++			var direction = this.get(DIRECTION);
++
++			// If the developer set a className attribute on initialization, 
++			// Element would have wiped out my own classNames
++			// So I need to insist on them, plus add the one for direction.
++			this.addClass(CLASS_PROGBAR);
++			this.addClass(CLASS_PROGBAR + '-' + direction);
++
++			var container = this.get('element');
++			container.tabIndex = 0;
++			container.setAttribute('role','progressbar');
++			container.setAttribute('aria-valuemin',this.get(MIN_VALUE));
++			container.setAttribute('aria-valuemax',this.get(MAX_VALUE));
++
++			this.appendTo(parent,before);
++			
++					
++			// I need to use the non-animated bar resizing function for initial redraw
++			this._barSizeFunction = this._barSizeFunctions[0][direction];
++			this.redraw();
++			this._previousValue = this.get(VALUE);
++			this._fixEdges();
++			// I can now set the correct bar resizer
++			if (this.get(ANIM)) {
++				this._barSizeFunction = this._barSizeFunctions[1][direction];
++			}
++
++			this.on('minValueChange',this.redraw);
++			this.on('maxValueChange',this.redraw);
++
++			return this;
++		},
++
++		/** 
++		 * Recalculates the bar size and position and redraws it
++		 * @method redraw
++		 * @return  void
++		 */
++		redraw: function () {
++			YAHOO.log('Redraw','info','ProgressBar');
++			this._recalculateConstants();
++			this._valueChange(this.get(VALUE));
++		},
++			
++		/** 
++		 * Destroys the ProgressBar, related objects and unsubscribes from all events
++		 * @method destroy
++		 * @return  void
++		 */
++		destroy: function() {
++			YAHOO.log('destroy','info','ProgressBar');
++			this.set(ANIM,false);
++			this.unsubscribeAll();
++			var el = this.get('element');
++			if (el.parentNode) { el.parentNode.removeChild(el); }
++		},
++		/**
++		 * The previous value setting for the bar.  Used mostly as information to event listeners
++		 * @property _previousValue
++		 * @type Number
++		 * @private
++		 * @default  0
++		 */
++		_previousValue:0,
++		/**
++		 * The actual space (in pixels) available for the bar within the mask (excludes margins)
++		 * @property _barSpace
++		 * @type Number
++		 * @private
++		 * @default  100
++		 */
++		_barSpace:100,
++		/**
++		 * The factor to convert the actual value of the bar into pixels
++		 * @property _barSpace
++		 * @type Number
++		 * @private
++		 * @default  1
++		 */
++		_barFactor:1,
++		
++		/**
++		 * A flag to signal that rendering has already happened
++		 * @property _rendered
++		 * @type boolean
++		 * @private
++		 * @default  false
++		 */
++		_rendered:false,
++		
++		/**
++		 * Function to be used to calculate bar size.  
++		 * It is picked from <a href="#property_barSizeFunctions">_barSizeFunctions</a>
++		 * depending on direction and whether animation is active.
++		 * @property _barSizeFunction
++		 * @type {function}
++		 * @default null
++		 * @private
++		 */		
++		_barSizeFunction: null,
++		
++		/** 
++		 * Method called when the height attribute is changed
++		 * @method _heightChange
++		 * @param {int or string} value New height, in pixels if int or string including units
++		 * @return void
++		 * @private
++		 */
++		_heightChange: function(value) {
++			if (Lang.isNumber(value)) {
++				value += 'px';
++			}
++			this.setStyle(HEIGHT,value);
++			this._fixEdges();
++			this.redraw();
++		},
++
++		/** 
++		 * Method called when the height attribute is changed
++		 * @method _widthChange
++		 * @param {int or string} value New width, in pixels if int or string including units
++		 * @return void
++		 * @private
++		 */
++		_widthChange: function(value) {
++			if (Lang.isNumber(value)) {
++				value += 'px';
++			}
++			this.setStyle(WIDTH,value);
++			this._fixEdges();
++			this.redraw();
++		},
++		
++		/** 
++		 * Due to rounding differences, some browsers fail to cover the whole area 
++		 * with the mask quadrants when the width or height is odd.  This method
++		 * stretches the lower and/or right quadrants to make the difference.
++		 * @method _fixEdges
++		 * @return void
++		 * @private
++		 */
++		_fixEdges:function() {
++			if (!this._rendered || YAHOO.env.ua.ie || YAHOO.env.ua.gecko ) { return; }
++			var maskEl = this.get(MASK_EL),
++				tlEl = Dom.getElementsByClassName(CLASS_TL,undefined,maskEl)[0],
++				trEl = Dom.getElementsByClassName(CLASS_TR,undefined,maskEl)[0],
++				blEl = Dom.getElementsByClassName(CLASS_BL,undefined,maskEl)[0],
++				brEl = Dom.getElementsByClassName(CLASS_BR,undefined,maskEl)[0],
++				newSize = (parseInt(Dom.getStyle(maskEl,HEIGHT),10) -
++				parseInt(Dom.getStyle(tlEl,HEIGHT),10)) + 'px';
++				
++			Dom.setStyle(blEl,HEIGHT,newSize);
++			Dom.setStyle(brEl,HEIGHT,newSize);
++			newSize = (parseInt(Dom.getStyle(maskEl,WIDTH),10) -
++				parseInt(Dom.getStyle(tlEl,WIDTH),10)) + 'px';
++			Dom.setStyle(trEl,WIDTH,newSize);
++			Dom.setStyle(brEl,WIDTH,newSize);
++		},
++					
++				
++		
++		/** 
++		 * Calculates some auxiliary values to make the rendering faster
++		 * @method _recalculateConstants
++		 * @return  void
++		 * @private
++		 */		
++		_recalculateConstants: function() {
++			YAHOO.log('Recalculating auxiliary factors','info','ProgressBar');
++			var barEl = this.get(BAR_EL);
++
++			switch (this.get(DIRECTION)) {
++				case DIRECTION_LTR:
++				case DIRECTION_RTL:
++					this._barSpace = parseInt(this.get(WIDTH),10) - 
++						(parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
++						(parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
++					break;
++				case DIRECTION_TTB:
++				case DIRECTION_BTT:
++					this._barSpace = parseInt(this.get(HEIGHT),10) -
++						(parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
++						(parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0); 
++					break;
++			}
++			this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0))  || 1;
++		},
++		
++		/** 
++		 * Called in response to a change in the <a href="#config_anim">anim</a> attribute.
++		 * It creates and sets up or destroys the instance of the animation utility that will move the bar
++		 * @method _animSetter
++		 * @return  void
++		 * @private
++		 */		
++		_animSetter: function (value) {
++			var anim, barEl = this.get(BAR_EL);
++			if (value) {
++				YAHOO.log('Turning animation on','info','ProgressBar');
++				if (value instanceof YAHOO.util.Anim) {
++					anim = value;
++				} else {
++					anim = new YAHOO.util.Anim(barEl);
++				}
++				anim.onTween.subscribe(this._animOnTween,this,true);
++				anim.onComplete.subscribe(this._animComplete,this,true);
++				
++				// Temporary solution until http://yuilibrary.com/projects/yui2/ticket/2528222 gets solved:
++				var oldSetAttribute = anim.setAttribute,
++					pb = this;
++				switch(this.get(DIRECTION)) {
++					case DIRECTION_BTT:
++						anim.setAttribute = function(attr , val , unit) {
++							val = Math.round(val);
++							oldSetAttribute.call(this,attr,val,unit);
++							Dom.setStyle(barEl,'top',(pb._barSpace - val) + 'px');
++						};
++						break;
++					case DIRECTION_RTL:
++						anim.setAttribute = function(attr , val , unit) {
++							val = Math.round(val);
++							oldSetAttribute.call(this,attr,val,unit);
++							Dom.setStyle(barEl,'left',(pb._barSpace - val) + 'px');
++						};
++						break;
++				}
++				// up to here
++
++			} else {
++				YAHOO.log('Turning animation off','info','ProgressBar');
++				anim = this.get(ANIM);
++				if (anim) {
++					anim.onTween.unsubscribeAll();
++					anim.onComplete.unsubscribeAll();
++				}
++				anim = null;
++			}
++			this._barSizeFunction = this._barSizeFunctions[anim?1:0][this.get(DIRECTION)];
++			return anim;
++		},
++		
++		_animComplete: function() {
++			YAHOO.log('Animation completed','info','ProgressBar');
++			var value = this.get(VALUE);
++			this._previousValue = value;
++			this.fireEvent(PROGRESS,value);
++			this.fireEvent(COMPLETE, value);
++			Dom.removeClass(this.get(BAR_EL),CLASS_ANIM);
++		},
++		_animOnTween:function (name,oArgs) {
++			var value = Math.floor(this._tweenFactor * oArgs[0].currentFrame + this._previousValue);
++			// The following fills the logger window too fast
++			//YAHOO.log('Animation onTween at: ' + value,'info','ProgressBar');
++			this.fireEvent(PROGRESS,value);
++		},
++		
++		/** 
++		 * Called in response to a change in the <a href="#config_value">value</a> attribute.
++		 * Moves the bar to reflect the new value
++		 * @method _valueChange
++		 * @return  void
++		 * @private
++		 */		
++		_valueChange: function (value) {
++			YAHOO.log('set value: ' + value,'info','ProgressBar');
++			var anim = this.get(ANIM),
++				pixelValue = Math.floor((value - this.get(MIN_VALUE)) * this._barFactor),
++				barEl = this.get(BAR_EL);
++			
++			this._setAriaText(value);
++			if (this._rendered) {
++				if (anim) {
++					anim.stop();
++					if (anim.isAnimated()) { anim._onComplete.fire(); } // see: http://yuilibrary.com/projects/yui2/ticket/2528217
++				}
++				this.fireEvent(START,this._previousValue);
++				this._barSizeFunction(value, pixelValue, barEl, anim);
++			}
++		},
++
++		/** 
++		 * Utility method to set the ARIA value attributes
++		 * @method _setAriaText
++		 * @return  void
++		 * @private
++		 */
++		 _setAriaText: function(value) {
++			// When animated, this fills the logger window too fast
++ 			//YAHOO.log('Show template','info','ProgressBar');
++
++			var container = this.get('element'),
++				text = Lang.substitute(this.get(ARIA_TEXT_TEMPLATE),{
++					value:value,
++					minValue:this.get(MIN_VALUE),
++					maxValue:this.get(MAX_VALUE)
++				});
++			container.setAttribute('aria-valuenow',value);
++			container.setAttribute('aria-valuetext',text);
++		}
++	});
++	/**
++	 * Collection of functions used by to calculate the size of the bar.
++	 * One of this will be used depending on direction and whether animation is active.
++	 * @property _barSizeFunctions
++	 * @type {collection of functions}
++	 * @private
++	 */
++	var b = [{},{}];
++	Prog.prototype._barSizeFunctions = b;
++	
++	b[0][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[0][DIRECTION_RTL] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
++		Dom.setStyle(barEl,'left',(this._barSpace - pixelValue) + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[0][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[0][DIRECTION_BTT] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
++		Dom.setStyle(barEl,'top',  (this._barSpace - pixelValue) + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[1][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
++		Dom.addClass(barEl,CLASS_ANIM);
++		this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
++		anim.attributes = {width:{ to: pixelValue }}; 
++		anim.animate();
++	};
++	b[1][DIRECTION_RTL] =  b[1][DIRECTION_LTR];
++	b[1][DIRECTION_TTB] =  function(value, pixelValue, barEl, anim) {
++		Dom.addClass(barEl,CLASS_ANIM);
++		this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
++		anim.attributes = {height:{to: pixelValue}};
++		anim.animate();
++	};
++	b[1][DIRECTION_BTT] =  b[1][DIRECTION_TTB];
++				
++})();
++
++YAHOO.register("progressbar", YAHOO.widget.ProgressBar, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/progressbar/progressbar-min.js b/pylons_app/public/js/yui/progressbar/progressbar-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/progressbar/progressbar-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util.Dom,H=YAHOO.lang,X="yui-pb",Z=X+"-mask",W=X+"-bar",V=X+"-anim",M=X+"-tl",K=X+"-tr",J=X+"-bl",F=X+"-br",G="width",S="height",L="minValue",U="maxValue",I="value",A="anim",T="direction",D="ltr",P="rtl",d="ttb",O="btt",E="barEl",C="maskEl",R="ariaTextTemplate",Y="start",c="progress",Q="complete";var N=function(b){N.superclass.constructor.call(this,document.createElement("div"),b);this._init(b);};YAHOO.widget.ProgressBar=N;N.MARKUP=['<div class="',W,'"></div><div class="',Z,'"><div class="',M,'"></div><div class="',K,'"></div><div class="',J,'"></div><div class="',F,'"></div></div>'].join("");H.extend(N,YAHOO.util.Element,{_init:function(b){},initAttributes:function(f){N.superclass.initAttributes.call(this,f);this.set("innerHTML",N.MARKUP);this.addClass(X);var e,b=["id",G,S,"class","style"];while((e=b.pop())){if(e in f){this.set(e,f[e]);}}this.setAttributeConfig(E,{readOnly:true,value:this.getElementsByClassName(W)[0]});this.setAttributeConfig(C,{readOnly:true,value:this.getElementsByClassName(Z)[0]});this.setAttributeConfig(T,{value:D,validator:function(g){if(this._rendered){return false;}switch(g){case D:case P:case d:case O:return true;default:return false;}},method:function(g){this._barSizeFunction=this._barSizeFunctions[this.get(A)?1:0][g];}});this.setAttributeConfig(U,{value:100,validator:H.isNumber,method:function(g){this.get("element").setAttribute("aria-valuemax",g);if(this.get(I)>g){this.set(I,g);}}});this.setAttributeConfig(L,{value:0,validator:H.isNumber,method:function(g){this.get("element").setAttribute("aria-valuemin",g);if(this.get(I)<g){this.set(I,g);}}});this.setAttributeConfig(G,{getter:function(){return this.getStyle(G);},method:this._widthChange});this.setAttributeConfig(S,{getter:function(){return this.getStyle(S);},method:this._heightChange});this.setAttributeConfig(R,{value:"{value}"});this.setAttributeConfig(I,{value:0,validator:function(g){return H.isNumber(g)&&g>=this.get(L)&&g<=this.get(U);},method:this._valueChange});this.setAttributeConfig(A,{validator:function(g){return !!YAHOO.util.Anim;},setter:this._animSetter});},render:function(e,f){if(this._rendered){return;}this._rendered=true;var g=this.get(T);this.addClass(X);this.addClass(X+"-"+g);var b=this.get("element");b.tabIndex=0;b.setAttribute("role","progressbar");b.setAttribute("aria-valuemin",this.get(L));b.setAttribute("aria-valuemax",this.get(U));this.appendTo(e,f);this._barSizeFunction=this._barSizeFunctions[0][g];this.redraw();this._previousValue=this.get(I);this._fixEdges();if(this.get(A)){this._barSizeFunction=this._barSizeFunctions[1][g];}this.on("minValueChange",this.redraw);this.on("maxValueChange",this.redraw);return this;},redraw:function(){this._recalculateConstants();this._valueChange(this.get(I));},destroy:function(){this.set(A,false);this.unsubscribeAll();var b=this.get("element");if(b.parentNode){b.parentNode.removeChild(b);}},_previousValue:0,_barSpace:100,_barFactor:1,_rendered:false,_barSizeFunction:null,_heightChange:function(b){if(H.isNumber(b)){b+="px";}this.setStyle(S,b);this._fixEdges();this.redraw();},_widthChange:function(b){if(H.isNumber(b)){b+="px";}this.setStyle(G,b);this._fixEdges();this.redraw();},_fixEdges:function(){if(!this._rendered||YAHOO.env.ua.ie||YAHOO.env.ua.gecko){return;}var g=this.get(C),i=B.getElementsByClassName(M,undefined,g)[0],f=B.getElementsByClassName(K,undefined,g)[0],h=B.getElementsByClassName(J,undefined,g)[0],e=B.getElementsByClassName(F,undefined,g)[0],b=(parseInt(B.getStyle(g,S),10)-parseInt(B.getStyle(i,S),10))+"px";B.setStyle(h,S,b);B.setStyle(e,S,b);b=(parseInt(B.getStyle(g,G),10)-parseInt(B.getStyle(i,G),10))+"px";B.setStyle(f,G,b);B.setStyle(e,G,b);},_recalculateConstants:function(){var b=this.get(E);switch(this.get(T)){case D:case P:this._barSpace=parseInt(this.get(G),10)-(parseInt(B.getStyle(b,"marginLeft"),10)||0)-(parseInt(B.getStyle(b,"marginRight"),10)||0);break;case d:case O:this._barSpace=parseInt(this.get(S),10)-(parseInt(B.getStyle(b,"marginTop"),10)||0)-(parseInt(B.getStyle(b,"marginBottom"),10)||0);break;}this._barFactor=this._barSpace/(this.get(U)-(this.get(L)||0))||1;},_animSetter:function(g){var f,b=this.get(E);if(g){if(g instanceof YAHOO.util.Anim){f=g;}else{f=new YAHOO.util.Anim(b);}f.onTween.subscribe(this._animOnTween,this,true);f.onComplete.subscribe(this._animComplete,this,true);var h=f.setAttribute,e=this;switch(this.get(T)){case O:f.setAttribute=function(i,k,j){k=Math.round(k);h.call(this,i,k,j);B.setStyle(b,"top",(e._barSpace-k)+"px");};break;case P:f.setAttribute=function(i,k,j){k=Math.round(k);h.call(this,i,k,j);B.setStyle(b,"left",(e._barSpace-k)+"px");};break;}}else{f=this.get(A);if(f){f.onTween.unsubscribeAll();f.onComplete.unsubscribeAll();}f=null;}this._barSizeFunction=this._barSizeFunctions[f?1:0][this.get(T)];return f;},_animComplete:function(){var b=this.get(I);this._previousValue=b;this.fireEvent(c,b);this.fireEvent(Q,b);B.removeClass(this.get(E),V);},_animOnTween:function(b,e){var f=Math.floor(this._tweenFactor*e[0].currentFrame+this._previousValue);this.fireEvent(c,f);},_valueChange:function(g){var f=this.get(A),b=Math.floor((g-this.get(L))*this._barFactor),e=this.get(E);this._setAriaText(g);if(this._rendered){if(f){f.stop();if(f.isAnimated()){f._onComplete.fire();}}this.fireEvent(Y,this._previousValue);this._barSizeFunction(g,b,e,f);}},_setAriaText:function(e){var b=this.get("element"),f=H.substitute(this.get(R),{value:e,minValue:this.get(L),maxValue:this.get(U)});b.setAttribute("aria-valuenow",e);b.setAttribute("aria-valuetext",f);}});var a=[{},{}];N.prototype._barSizeFunctions=a;a[0][D]=function(g,b,e,f){B.setStyle(e,G,b+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][P]=function(g,b,e,f){B.setStyle(e,G,b+"px");B.setStyle(e,"left",(this._barSpace-b)+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][d]=function(g,b,e,f){B.setStyle(e,S,b+"px");this.fireEvent(c,g);this.fireEvent(Q,g);};a[0][O]=function(g,b,e,f){B.setStyle(e,S,b+"px");B.setStyle(e,"top",(this._barSpace-b)+"px");
++this.fireEvent(c,g);this.fireEvent(Q,g);};a[1][D]=function(g,b,e,f){B.addClass(e,V);this._tweenFactor=(g-this._previousValue)/f.totalFrames/f.duration;f.attributes={width:{to:b}};f.animate();};a[1][P]=a[1][D];a[1][d]=function(g,b,e,f){B.addClass(e,V);this._tweenFactor=(g-this._previousValue)/f.totalFrames/f.duration;f.attributes={height:{to:b}};f.animate();};a[1][O]=a[1][d];})();YAHOO.register("progressbar",YAHOO.widget.ProgressBar,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/progressbar/progressbar.js b/pylons_app/public/js/yui/progressbar/progressbar.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/progressbar/progressbar.js
+@@ -0,0 +1,677 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ *
++ * @module progressbar
++ * @requires yahoo, dom, event, element
++ * @optional animation
++ * @title ProgressBar Widget
++ */
++
++(function () {
++	var Dom = YAHOO.util.Dom,
++		Lang = YAHOO.lang,
++		// ClassNames
++		CLASS_PROGBAR = 'yui-pb',
++		CLASS_MASK = CLASS_PROGBAR + '-mask',
++		CLASS_BAR = CLASS_PROGBAR + '-bar',
++		CLASS_ANIM = CLASS_PROGBAR + '-anim',
++		CLASS_TL = CLASS_PROGBAR + '-tl',
++		CLASS_TR = CLASS_PROGBAR + '-tr',
++		CLASS_BL = CLASS_PROGBAR + '-bl',
++		CLASS_BR = CLASS_PROGBAR + '-br',
++		
++		// Configuration attributes
++		WIDTH = 'width',
++		HEIGHT = 'height',
++		MIN_VALUE = 'minValue',
++		MAX_VALUE = 'maxValue',
++		VALUE = 'value',
++		ANIM = 'anim',
++		DIRECTION = 'direction',
++		DIRECTION_LTR = 'ltr',
++		DIRECTION_RTL = 'rtl',
++		DIRECTION_TTB = 'ttb',
++		DIRECTION_BTT = 'btt',
++		BAR_EL = 'barEl',
++		MASK_EL = 'maskEl',
++		ARIA_TEXT_TEMPLATE = 'ariaTextTemplate',
++		
++		// Events
++		START = 'start',
++		PROGRESS = 'progress',
++		COMPLETE = 'complete';
++	
++	/**
++	 * The ProgressBar widget provides an easy way to draw a bar depicting progress of an operation,
++	 * a level meter, rating or any such simple linear measure.
++	 * It allows for highly customized styles including animation, vertical or horizontal and forward or reverse.
++	 * @namespace YAHOO.widget
++	 * @class ProgressBar
++	 * @extends YAHOO.util.Element
++	 * @param oConfigs {object} An object containing any configuration attributes to be set 
++	 * @constructor
++	 */        
++	var Prog = function(oConfigs) {
++        
++		Prog.superclass.constructor.call(this, document.createElement('div') , oConfigs);
++		this._init(oConfigs);
++		
++	};
++	
++	YAHOO.widget.ProgressBar = Prog;
++
++    /**
++     * String containing the HTML string which is the basis for the Progress Bar.
++     *
++     * @property ProgressBar.MARKUP
++     * @type String
++     * @static
++     * @final
++     * @default (too long)
++     */
++	Prog.MARKUP = [
++		'<div class="',
++		CLASS_BAR,
++		'"></div><div class="',
++		CLASS_MASK,
++		'"><div class="',
++		CLASS_TL,
++		'"></div><div class="',
++		CLASS_TR,
++		'"></div><div class="',
++		CLASS_BL,
++		'"></div><div class="',
++		CLASS_BR,
++		'"></div></div>'
++	].join('');
++
++	
++	Lang.extend(Prog, YAHOO.util.Element, {
++		/**
++		 * Initialization code for the widget, separate from the constructor to allow for overriding/patching.
++		 * It is called after <a href="#method_initAttributes">initAttributes</a>
++		 *
++		 * @method _init
++		 * @param oConfigs {Object} (Optional) Object literal definition of configuration values.  
++		 * @protected
++		 */	
++		 _init: function (oConfigs) {
++			/**
++			 * Fires when the value is about to change.  It reports the starting value
++			 * @event start
++			 * @type CustomEvent
++			 * @param value {Number} the current (initial) value
++			 */
++			// No actual creation required, event will be created when subscribed to
++			//this.createEvent(START);
++			/**
++			 * If animation is active, it will trigger several times during the animation providing intermediate values
++			 * If animation is not active, it will fire only once providing the end value
++			 * @event progress
++			 * @type CustomEvent
++			 * @param  value{Number} the current, changing value
++			 */
++			// No actual creation required, event will be created when subscribed to
++			//this.createEvent(PROGRESS);
++			/**
++			 * Fires at the end of the animation or immediately upon changing values if animation is not loaded
++			 * @event complete
++			 * @type CustomEvent
++			 * @param value {Number} the current (final)  value
++			 */
++			// No actual creation required, event will be created when listened to
++			//this.createEvent(COMPLETE);
++			
++
++		},
++		/**
++		 * Implementation of Element's abstract method. Sets up config values.
++		 *
++		 * @method initAttributes
++		 * @param oConfigs {Object} (Optional) Object literal definition of configuration values.
++		 * @private
++		 */	
++		initAttributes: function (oConfigs) {
++
++		    Prog.superclass.initAttributes.call(this, oConfigs);
++			this.set('innerHTML',Prog.MARKUP);
++			this.addClass(CLASS_PROGBAR);
++			
++			// I need to apply at least the following styles, if present in oConfigs, 
++			// to the ProgressBar so when it later reads the width and height, 
++			// they are already set to the correct values.
++			// id is important because it can be used as a CSS selector.
++			var key, presets = ['id',WIDTH,HEIGHT,'class','style'];
++			while((key = presets.pop())) {
++				if (key in oConfigs) {
++					this.set(key,oConfigs[key]);
++				}
++			}
++			
++
++			/**
++			 * @attribute barEl
++			 * @description Reference to the HTML object that makes the moving bar (read-only)
++			 * @type HTMLElement (div)
++			 * @readonly
++			 */			
++		    this.setAttributeConfig(BAR_EL, {
++		        readOnly: true,
++		        value: this.getElementsByClassName(CLASS_BAR)[0]
++		    });
++			/**
++			 * @attribute maskEl
++			 * @description Reference to the HTML object that overlays the bar providing the mask. (read-only)
++			 * @type HTMLElement (table)
++			 * @readonly
++			 */			
++		    this.setAttributeConfig(MASK_EL, {
++		        readOnly: true,
++		        value: this.getElementsByClassName(CLASS_MASK)[0]
++		    });
++			
++			
++			/**
++			 * @attribute direction
++			 * @description Direction of movement of the bar.  
++			 *    It can be any of 'ltr' (left to right), 'rtl' (the reverse) , 'ttb' (top to bottom) or 'btt'.
++			 *    Can only be set once and only before rendering.
++			 * @default 'ltr'
++			 * @type String (any of "ltr", "rtl", "ttb" or "btt")
++			 */			
++			this.setAttributeConfig(DIRECTION, {
++				value:DIRECTION_LTR,
++				validator:function(value) {
++					if (this._rendered) { return false; }
++					switch (value) {
++						case DIRECTION_LTR:
++						case DIRECTION_RTL:
++						case DIRECTION_TTB:
++						case DIRECTION_BTT:
++							return true;
++						default:
++							return false;
++					}
++				},
++				method: function(value) {
++					this._barSizeFunction = this._barSizeFunctions[this.get(ANIM)?1:0][value];
++				}
++			});
++			
++			/**
++			 * @attribute maxValue
++			 * @description Represents the top value for the bar. 
++			 *   The bar will be fully extended when reaching this value.  
++			 *   Values higher than this will be ignored. 
++			 * @default 100
++			 * @type Number
++			 */				    
++		    this.setAttributeConfig(MAX_VALUE, {
++		        value: 100,
++				validator: Lang.isNumber,
++				method: function (value) {
++					this.get('element').setAttribute('aria-valuemax',value);
++					if (this.get(VALUE) > value) { this.set(VALUE,value); }
++				}
++		    });
++			
++			/**
++			 * @attribute minValue
++			 * @description Represents the lowest value for the bar. 
++			 *   The bar will be totally collapsed when reaching this value.  
++			 *    Values lower than this will be ignored. 
++			 * @default 0
++			 * @type Number
++			 */				
++
++		    this.setAttributeConfig(MIN_VALUE, {
++		        value: 0,
++				validator: Lang.isNumber,
++				method: function (value) {
++					this.get('element').setAttribute('aria-valuemin',value);
++					if (this.get(VALUE) < value) { this.set(VALUE,value); }
++				}
++		    });
++			/**
++			 * @attribute width
++			 * @description Width of the ProgressBar.
++			 *     If a number, it will be assumed to be in pixels.  
++			 *     If a string it should be a valid setting for the CSS width attribute.  
++			 *     It will always be returned as a string including units.
++			 * @default "200px"
++			 * @type Number or String
++			 */				
++
++		    this.setAttributeConfig(WIDTH, {
++				getter: function() {
++					return this.getStyle(WIDTH);
++				},
++				method: this._widthChange
++		    });
++		
++
++			/**
++			 * @attribute height
++			 * @description Height of the ProgressBar.
++			 *     If a number, it will be assumed to be in pixels.  
++			 *     If a string it should be a valid setting for the CSS height attribute.  
++			 *     It will always be returned as a string including units.
++			 * @default "20px"
++			 * @type Number or String
++			 */				
++		    this.setAttributeConfig(HEIGHT, {
++				getter:function() {
++					return this.getStyle(HEIGHT);
++				},
++				method: this._heightChange
++		    });
++			
++			
++	
++			/**
++			 * @attribute ariaTextTemplate 
++			 * @description Text to be voiced by screen readers.
++			 *     The text is processed by <a href="YAHOO.lang.html#method_substitute">YAHOO.lang.substitute</a>.  
++			 *     It can use the placeholders {value}, {minValue} and {maxValue}
++			 * @default "{value}"
++			 * @type String
++			 */				
++			this.setAttributeConfig(ARIA_TEXT_TEMPLATE, {
++				value:'{value}'
++			});
++			
++			/**
++			 * @attribute value
++			 * @description The value for the bar.  
++			 *     Valid values are in between the minValue and maxValue attributes.
++			 * @default 0
++			 * @type Number
++			 */			
++			this.setAttributeConfig(VALUE, {
++				value: 0,
++				validator: function(value) {
++					return Lang.isNumber(value) && value >= this.get(MIN_VALUE) && value <= this.get(MAX_VALUE);
++				},
++				method: this._valueChange
++		    });
++			
++			/**
++			 * @attribute anim
++			 * @description it accepts either a boolean (recommended) or an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a>.
++			 *   If a boolean, it will enable/disable animation creating its own instance of the animation utility.  
++			 *   If given an instance of <a href="YAHOO.util.Anim.html">YAHOO.util.Anim</a> it will use that instance.
++			 *   The <a href="YAHOO.util.Anim.html">animation</a> utility needs to be loaded.
++			 *   When read, it returns the instance of the animation utility in use or null if none.  
++			 *   It can be used to set the animation parameters such as easing methods or duration.
++			 * @default null
++			 * @type {boolean} or {instance of YAHOO.util.Anim}
++			 */						
++			this.setAttributeConfig(ANIM, {
++				validator: function(value) {
++					return !!YAHOO.util.Anim;
++				},
++				setter: this._animSetter
++			});
++			
++			
++		},
++		/** 
++		 *  Renders the ProgressBar into the given container.  
++		 *  If the container has other content, the ProgressBar will be appended to it.
++		 *  If the second argument is provided, the ProgressBar will be inserted before the given child.
++		 * The method is chainable since it returns a reference to this instance.
++		 * @method render
++		 * @param el {HTML Element}  HTML element that will contain the ProgressBar
++		 * @param before {HTML Element}  (optional) If present, the ProgressBar will be inserted before this element.
++		 * @return {YAHOO.widget.ProgressBar}
++		 * @chainable
++		 */
++		render: function(parent,before) {
++
++			if (this._rendered) { return; }
++			this._rendered = true;
++			
++			var direction = this.get(DIRECTION);
++
++			// If the developer set a className attribute on initialization, 
++			// Element would have wiped out my own classNames
++			// So I need to insist on them, plus add the one for direction.
++			this.addClass(CLASS_PROGBAR);
++			this.addClass(CLASS_PROGBAR + '-' + direction);
++
++			var container = this.get('element');
++			container.tabIndex = 0;
++			container.setAttribute('role','progressbar');
++			container.setAttribute('aria-valuemin',this.get(MIN_VALUE));
++			container.setAttribute('aria-valuemax',this.get(MAX_VALUE));
++
++			this.appendTo(parent,before);
++			
++					
++			// I need to use the non-animated bar resizing function for initial redraw
++			this._barSizeFunction = this._barSizeFunctions[0][direction];
++			this.redraw();
++			this._previousValue = this.get(VALUE);
++			this._fixEdges();
++			// I can now set the correct bar resizer
++			if (this.get(ANIM)) {
++				this._barSizeFunction = this._barSizeFunctions[1][direction];
++			}
++
++			this.on('minValueChange',this.redraw);
++			this.on('maxValueChange',this.redraw);
++
++			return this;
++		},
++
++		/** 
++		 * Recalculates the bar size and position and redraws it
++		 * @method redraw
++		 * @return  void
++		 */
++		redraw: function () {
++			this._recalculateConstants();
++			this._valueChange(this.get(VALUE));
++		},
++			
++		/** 
++		 * Destroys the ProgressBar, related objects and unsubscribes from all events
++		 * @method destroy
++		 * @return  void
++		 */
++		destroy: function() {
++			this.set(ANIM,false);
++			this.unsubscribeAll();
++			var el = this.get('element');
++			if (el.parentNode) { el.parentNode.removeChild(el); }
++		},
++		/**
++		 * The previous value setting for the bar.  Used mostly as information to event listeners
++		 * @property _previousValue
++		 * @type Number
++		 * @private
++		 * @default  0
++		 */
++		_previousValue:0,
++		/**
++		 * The actual space (in pixels) available for the bar within the mask (excludes margins)
++		 * @property _barSpace
++		 * @type Number
++		 * @private
++		 * @default  100
++		 */
++		_barSpace:100,
++		/**
++		 * The factor to convert the actual value of the bar into pixels
++		 * @property _barSpace
++		 * @type Number
++		 * @private
++		 * @default  1
++		 */
++		_barFactor:1,
++		
++		/**
++		 * A flag to signal that rendering has already happened
++		 * @property _rendered
++		 * @type boolean
++		 * @private
++		 * @default  false
++		 */
++		_rendered:false,
++		
++		/**
++		 * Function to be used to calculate bar size.  
++		 * It is picked from <a href="#property_barSizeFunctions">_barSizeFunctions</a>
++		 * depending on direction and whether animation is active.
++		 * @property _barSizeFunction
++		 * @type {function}
++		 * @default null
++		 * @private
++		 */		
++		_barSizeFunction: null,
++		
++		/** 
++		 * Method called when the height attribute is changed
++		 * @method _heightChange
++		 * @param {int or string} value New height, in pixels if int or string including units
++		 * @return void
++		 * @private
++		 */
++		_heightChange: function(value) {
++			if (Lang.isNumber(value)) {
++				value += 'px';
++			}
++			this.setStyle(HEIGHT,value);
++			this._fixEdges();
++			this.redraw();
++		},
++
++		/** 
++		 * Method called when the height attribute is changed
++		 * @method _widthChange
++		 * @param {int or string} value New width, in pixels if int or string including units
++		 * @return void
++		 * @private
++		 */
++		_widthChange: function(value) {
++			if (Lang.isNumber(value)) {
++				value += 'px';
++			}
++			this.setStyle(WIDTH,value);
++			this._fixEdges();
++			this.redraw();
++		},
++		
++		/** 
++		 * Due to rounding differences, some browsers fail to cover the whole area 
++		 * with the mask quadrants when the width or height is odd.  This method
++		 * stretches the lower and/or right quadrants to make the difference.
++		 * @method _fixEdges
++		 * @return void
++		 * @private
++		 */
++		_fixEdges:function() {
++			if (!this._rendered || YAHOO.env.ua.ie || YAHOO.env.ua.gecko ) { return; }
++			var maskEl = this.get(MASK_EL),
++				tlEl = Dom.getElementsByClassName(CLASS_TL,undefined,maskEl)[0],
++				trEl = Dom.getElementsByClassName(CLASS_TR,undefined,maskEl)[0],
++				blEl = Dom.getElementsByClassName(CLASS_BL,undefined,maskEl)[0],
++				brEl = Dom.getElementsByClassName(CLASS_BR,undefined,maskEl)[0],
++				newSize = (parseInt(Dom.getStyle(maskEl,HEIGHT),10) -
++				parseInt(Dom.getStyle(tlEl,HEIGHT),10)) + 'px';
++				
++			Dom.setStyle(blEl,HEIGHT,newSize);
++			Dom.setStyle(brEl,HEIGHT,newSize);
++			newSize = (parseInt(Dom.getStyle(maskEl,WIDTH),10) -
++				parseInt(Dom.getStyle(tlEl,WIDTH),10)) + 'px';
++			Dom.setStyle(trEl,WIDTH,newSize);
++			Dom.setStyle(brEl,WIDTH,newSize);
++		},
++					
++				
++		
++		/** 
++		 * Calculates some auxiliary values to make the rendering faster
++		 * @method _recalculateConstants
++		 * @return  void
++		 * @private
++		 */		
++		_recalculateConstants: function() {
++			var barEl = this.get(BAR_EL);
++
++			switch (this.get(DIRECTION)) {
++				case DIRECTION_LTR:
++				case DIRECTION_RTL:
++					this._barSpace = parseInt(this.get(WIDTH),10) - 
++						(parseInt(Dom.getStyle(barEl,'marginLeft'),10) || 0) -
++						(parseInt(Dom.getStyle(barEl,'marginRight'),10) || 0);
++					break;
++				case DIRECTION_TTB:
++				case DIRECTION_BTT:
++					this._barSpace = parseInt(this.get(HEIGHT),10) -
++						(parseInt(Dom.getStyle(barEl,'marginTop'),10) || 0)-
++						(parseInt(Dom.getStyle(barEl,'marginBottom'),10) || 0); 
++					break;
++			}
++			this._barFactor = this._barSpace / (this.get(MAX_VALUE) - (this.get(MIN_VALUE) || 0))  || 1;
++		},
++		
++		/** 
++		 * Called in response to a change in the <a href="#config_anim">anim</a> attribute.
++		 * It creates and sets up or destroys the instance of the animation utility that will move the bar
++		 * @method _animSetter
++		 * @return  void
++		 * @private
++		 */		
++		_animSetter: function (value) {
++			var anim, barEl = this.get(BAR_EL);
++			if (value) {
++				if (value instanceof YAHOO.util.Anim) {
++					anim = value;
++				} else {
++					anim = new YAHOO.util.Anim(barEl);
++				}
++				anim.onTween.subscribe(this._animOnTween,this,true);
++				anim.onComplete.subscribe(this._animComplete,this,true);
++				
++				// Temporary solution until http://yuilibrary.com/projects/yui2/ticket/2528222 gets solved:
++				var oldSetAttribute = anim.setAttribute,
++					pb = this;
++				switch(this.get(DIRECTION)) {
++					case DIRECTION_BTT:
++						anim.setAttribute = function(attr , val , unit) {
++							val = Math.round(val);
++							oldSetAttribute.call(this,attr,val,unit);
++							Dom.setStyle(barEl,'top',(pb._barSpace - val) + 'px');
++						};
++						break;
++					case DIRECTION_RTL:
++						anim.setAttribute = function(attr , val , unit) {
++							val = Math.round(val);
++							oldSetAttribute.call(this,attr,val,unit);
++							Dom.setStyle(barEl,'left',(pb._barSpace - val) + 'px');
++						};
++						break;
++				}
++				// up to here
++
++			} else {
++				anim = this.get(ANIM);
++				if (anim) {
++					anim.onTween.unsubscribeAll();
++					anim.onComplete.unsubscribeAll();
++				}
++				anim = null;
++			}
++			this._barSizeFunction = this._barSizeFunctions[anim?1:0][this.get(DIRECTION)];
++			return anim;
++		},
++		
++		_animComplete: function() {
++			var value = this.get(VALUE);
++			this._previousValue = value;
++			this.fireEvent(PROGRESS,value);
++			this.fireEvent(COMPLETE, value);
++			Dom.removeClass(this.get(BAR_EL),CLASS_ANIM);
++		},
++		_animOnTween:function (name,oArgs) {
++			var value = Math.floor(this._tweenFactor * oArgs[0].currentFrame + this._previousValue);
++			this.fireEvent(PROGRESS,value);
++		},
++		
++		/** 
++		 * Called in response to a change in the <a href="#config_value">value</a> attribute.
++		 * Moves the bar to reflect the new value
++		 * @method _valueChange
++		 * @return  void
++		 * @private
++		 */		
++		_valueChange: function (value) {
++			var anim = this.get(ANIM),
++				pixelValue = Math.floor((value - this.get(MIN_VALUE)) * this._barFactor),
++				barEl = this.get(BAR_EL);
++			
++			this._setAriaText(value);
++			if (this._rendered) {
++				if (anim) {
++					anim.stop();
++					if (anim.isAnimated()) { anim._onComplete.fire(); } // see: http://yuilibrary.com/projects/yui2/ticket/2528217
++				}
++				this.fireEvent(START,this._previousValue);
++				this._barSizeFunction(value, pixelValue, barEl, anim);
++			}
++		},
++
++		/** 
++		 * Utility method to set the ARIA value attributes
++		 * @method _setAriaText
++		 * @return  void
++		 * @private
++		 */
++		 _setAriaText: function(value) {
++
++			var container = this.get('element'),
++				text = Lang.substitute(this.get(ARIA_TEXT_TEMPLATE),{
++					value:value,
++					minValue:this.get(MIN_VALUE),
++					maxValue:this.get(MAX_VALUE)
++				});
++			container.setAttribute('aria-valuenow',value);
++			container.setAttribute('aria-valuetext',text);
++		}
++	});
++	/**
++	 * Collection of functions used by to calculate the size of the bar.
++	 * One of this will be used depending on direction and whether animation is active.
++	 * @property _barSizeFunctions
++	 * @type {collection of functions}
++	 * @private
++	 */
++	var b = [{},{}];
++	Prog.prototype._barSizeFunctions = b;
++	
++	b[0][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[0][DIRECTION_RTL] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,WIDTH,  pixelValue + 'px');
++		Dom.setStyle(barEl,'left',(this._barSpace - pixelValue) + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[0][DIRECTION_TTB] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[0][DIRECTION_BTT] = function(value, pixelValue, barEl, anim) {
++		Dom.setStyle(barEl,HEIGHT,  pixelValue + 'px');
++		Dom.setStyle(barEl,'top',  (this._barSpace - pixelValue) + 'px');
++		this.fireEvent(PROGRESS,value);
++		this.fireEvent(COMPLETE,value);
++	};
++	b[1][DIRECTION_LTR] = function(value, pixelValue, barEl, anim) {
++		Dom.addClass(barEl,CLASS_ANIM);
++		this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
++		anim.attributes = {width:{ to: pixelValue }}; 
++		anim.animate();
++	};
++	b[1][DIRECTION_RTL] =  b[1][DIRECTION_LTR];
++	b[1][DIRECTION_TTB] =  function(value, pixelValue, barEl, anim) {
++		Dom.addClass(barEl,CLASS_ANIM);
++		this._tweenFactor = (value - this._previousValue) / anim.totalFrames  / anim.duration;
++		anim.attributes = {height:{to: pixelValue}};
++		anim.animate();
++	};
++	b[1][DIRECTION_BTT] =  b[1][DIRECTION_TTB];
++				
++})();
++
++YAHOO.register("progressbar", YAHOO.widget.ProgressBar, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/reset-fonts-grids/reset-fonts-grids.css b/pylons_app/public/js/yui/reset-fonts-grids/reset-fonts-grids.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/reset-fonts-grids/reset-fonts-grids.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}body{text-align:center;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}.yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#hd:after,#bd:after,#ft:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#hd,#bd,#ft,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/reset-fonts/reset-fonts.css b/pylons_app/public/js/yui/reset-fonts/reset-fonts.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/reset-fonts/reset-fonts.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/reset/reset-min.css b/pylons_app/public/js/yui/reset/reset-min.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/reset/reset-min.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/reset/reset.css b/pylons_app/public/js/yui/reset/reset.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/reset/reset.css
+@@ -0,0 +1,142 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * YUI Reset
++ * @module reset
++ * @namespace
++ * @requires 
++ */
++html {
++	color: #000;
++	background: #FFF;
++}
++
++body,
++div,
++dl,
++dt,
++dd,
++ul,
++ol,
++li,
++h1,
++h2,
++h3,
++h4,
++h5,
++h6,
++pre,
++code,
++form,
++fieldset,
++legend,
++input,
++button,
++textarea,
++p,
++blockquote,
++th,
++td {
++	margin: 0;
++	padding: 0;
++}
++
++table {
++	border-collapse: collapse;
++	border-spacing: 0;
++}
++
++fieldset,
++img {
++	border: 0;
++}
++
++address,
++caption,
++cite,
++code,
++dfn,
++em,
++strong,
++th,
++var,
++optgroup {
++	font-style: inherit;
++	font-weight: inherit;
++}
++
++del,
++ins {
++	text-decoration: none;
++}
++
++li {
++	list-style: none;
++}
++
++caption,
++th {
++	text-align: left;
++}
++
++h1,
++h2,
++h3,
++h4,
++h5,
++h6 {
++	font-size: 100%;
++	font-weight: normal;
++}
++
++q:before,
++q:after {
++	content: '';
++}
++
++abbr,
++acronym {
++	border: 0;
++	font-variant: normal;
++}
++
++sup {
++	vertical-align: baseline;
++}
++
++sub {
++	vertical-align: baseline;
++}
++
++/*because legend doesn't inherit in IE */
++legend {
++	color: #000;
++}
++
++input,
++button,
++textarea,
++select,
++optgroup,
++option {
++	font-family: inherit;
++	font-size: inherit;
++	font-style: inherit;
++	font-weight: inherit;
++}
++
++/*@purpose To enable resizing for IE */
++/*@branch For IE6-Win, IE7-Win */
++input,
++button,
++textarea,
++select {
++	*font-size: 100%;
++}
++
++
++
+diff --git a/pylons_app/public/js/yui/resize/assets/resize-core.css b/pylons_app/public/js/yui/resize/assets/resize-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/resize/assets/resize-core.css
+@@ -0,0 +1,173 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-resize {
++    position: relative;
++    zoom: 1;
++    z-index: 0;
++}
++.yui-resize-wrap {
++    zoom: 1;
++}
++
++.yui-draggable {
++    cursor: move;
++}
++
++.yui-resize .yui-resize-handle {
++    position: absolute;
++    z-index: 1;
++    font-size: 0;
++    margin: 0;
++    padding: 0;
++    zoom: 1;
++    height: 1px;
++    width: 1px;
++}
++.yui-resize .yui-resize-handle-br {
++    height: 5px;
++    width: 5px;
++    bottom: 0;
++    right: 0;
++    cursor: se-resize;
++    z-index: 2;
++    zoom: 1;
++}
++
++.yui-resize .yui-resize-handle-bl {
++    height: 5px;
++    width: 5px;
++    bottom: 0;
++    left: 0;
++    cursor: sw-resize;
++    z-index: 2;
++    zoom: 1;
++}
++
++.yui-resize .yui-resize-handle-tl {
++    height: 5px;
++    width: 5px;
++    top: 0;
++    left: 0;
++    cursor: nw-resize;
++    z-index: 2;
++    zoom: 1;
++}
++
++.yui-resize .yui-resize-handle-tr {
++    height: 5px;
++    width: 5px;
++    top: 0;
++    right: 0;
++    cursor: ne-resize;
++    z-index: 2;
++    zoom: 1;
++}
++
++.yui-resize .yui-resize-handle-r {
++    width: 5px;
++    height: 100%;
++    top: 0;
++    right: 0;
++    cursor: e-resize;
++    zoom: 1;
++}
++
++.yui-resize .yui-resize-handle-l {
++    height: 100%;
++    width: 5px;
++    top: 0;
++    left: 0;
++    cursor: w-resize;
++    zoom: 1;
++}
++
++.yui-resize .yui-resize-handle-b {
++    width: 100%;
++    height: 5px;
++    bottom: 0;
++    right: 0;
++    cursor: s-resize;
++    zoom: 1;
++}
++.yui-resize .yui-resize-handle-t {
++    width: 100%;
++    height: 5px;
++    top: 0;
++    right: 0;
++    cursor: n-resize;
++    zoom: 1;
++}
++.yui-resize-proxy {
++    position: absolute;
++    border: 1px dashed #000;
++    visibility: hidden;
++    z-index: 1000;
++}
++
++.yui-resize-hover .yui-resize-handle,
++.yui-resize-hidden .yui-resize-handle {
++    opacity: 0;
++    filter: alpha(opacity=0);
++}
++.yui-resize-ghost {
++    opacity: .5;
++    filter: alpha(opacity=50);
++}
++
++.yui-resize-knob .yui-resize-handle {
++    height: 6px;
++    width: 6px;
++}
++.yui-resize-knob .yui-resize-handle-tr {
++    right: -3px;
++    top: -3px;
++}
++.yui-resize-knob .yui-resize-handle-tl {
++    left: -3px;
++    top: -3px;
++}
++.yui-resize-knob .yui-resize-handle-bl {
++    left: -3px;
++    bottom: -3px;
++}
++.yui-resize-knob .yui-resize-handle-br {
++    right: -3px;
++    bottom: -3px;
++}
++.yui-resize-knob .yui-resize-handle-t {
++    left: 45%;
++    top: -3px;
++}
++.yui-resize-knob .yui-resize-handle-r {
++    right: -3px;
++    top: 45%;
++}
++.yui-resize-knob .yui-resize-handle-l {
++    left: -3px;
++    top: 45%;
++}
++.yui-resize-knob .yui-resize-handle-b {
++    left: 45%;
++    bottom: -3px;
++}
++
++.yui-resize-status {
++    position: absolute;
++    top: -999px;
++    left: -999px;
++    padding: 2px;
++    font-size: 80%;
++    display: none;
++    zoom: 1; /* IE hasLayout */
++    z-index: 9999;
++}
++.yui-resize-status strong, .yui-resize-status em {
++    font-weight: normal;
++    font-style: normal;
++    padding: 1px;
++    zoom: 1;
++}
+diff --git a/pylons_app/public/js/yui/resize/assets/skins/sam/layout_sprite.png b/pylons_app/public/js/yui/resize/assets/skins/sam/layout_sprite.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..d6fce3c7a5bec2e266531e2b921f6a3bc3572bcb
+GIT binary patch
+literal 1409
+zc$@)&1%CR8P)<h;3K|Lk000e1NJLTq001ih009^X0{{R4g&oh+00004XF*Lt007q5
+z)K6G40000PbVXQnQ*UN;cVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUyZ%|BBMgRZ*
+z{{H^w=jh_%<Lm6~mX?<A@$vNZ_4)bw{r&y-_xJnz`+t9bgM)*Tl$Y}I^7i)jzP`Sc
+zl$G=I^Y!)hm6et7@bK*H?dj?2l$4aWx3{&mwX3VE=;`U%+1cdf<)){nsHmvz?d|2|
+z=Kufy!J{?s0000bbW%=J|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0|NsC0
+z06)({PXGV}XGugsRCwBAP*G7~U;rT%2n$R>Foc7fVkN9ZL<CGRGegW|08_l;C`x#-
+zC}C$uR>H|iPzfUuN*G~E00Ia|@iPD+ScV@e5BCj%&595~Az9JYb1HE%fJ|lvg&G4W
+z6xqeu5wao}vOGw#oOoq<Fl5=W=miKM27Zt?_(1@uj9&!?AmYgGS7Bv9uu;TSu#1Bw
+z7!XQG(8~aJF@()7t}M=uMGYsfhzKW?%?tuq^@{Ui)e8(Af_m8{1jyIR&W=?ty95z>
+zdC>F%1Q0?EEY*Rd3zq4SGax3LA2VLCrA$0(SkZGRe)Txn3^>fhp`Mk2G<RYND@d60
+z@NmM|>^wZ|DoEi^P%kHvUUm}of|3c`UUt&-f|52O4U_0*PV)UriM_~rMM%_(97pUF
+zgq4T@9=!koXf2}^3PBhQEBt~NN?sh$J8ydbXFQt)$8tiP<$_ov{Q4FXyL>Z8Y{z2V
+zkaSb@Mp@4L)cu~!F2?_5njt5??aV6VWbNsf=#lQ+PR7RWs~T&qO?1)0;8OP9mr&?_
+zEd!{i70@B06_L@4$jDGFl7UgQB&=k~S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--- /dev/null
++++ b/pylons_app/public/js/yui/resize/assets/skins/sam/resize-skin.css
+@@ -0,0 +1,142 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* Give the handle a background color */
++.yui-skin-sam .yui-resize .yui-resize-handle {
++    background-color: #F2F2F2;
++    zoom: 1;
++}
++/* Give the active handle a different color */
++.yui-skin-sam .yui-resize .yui-resize-handle-active {
++    background-color: #7D98B8;
++    zoom: 1;
++}
++.yui-skin-sam .yui-resize .yui-resize-handle-l,
++.yui-skin-sam .yui-resize .yui-resize-handle-r,
++.yui-skin-sam .yui-resize .yui-resize-handle-l-active,
++.yui-skin-sam .yui-resize .yui-resize-handle-r-active {
++    height: 100%;
++    zoom: 1;
++}
++/* Give a border to the 8-way knob style handles */
++.yui-skin-sam .yui-resize-knob .yui-resize-handle {
++    border: 1px solid #808080;
++}
++/* Show the active handle when hovered */
++.yui-skin-sam .yui-resize-hover .yui-resize-handle-active {
++    opacity: 1;
++    filter: alpha(opacity=100);
++}
++
++/* Style the resize proxy */
++.yui-skin-sam .yui-resize-proxy {
++    border: 1px dashed #426FD9;
++}
++
++/* Style the status box similar to a tooltip */
++.yui-skin-sam .yui-resize-status {
++    border: 1px solid #A6982B;
++    border-top: 1px solid #D4C237;
++    background-color: #FFEE69;
++    color: #000;
++}
++
++
++/* Style the content of the status box */
++.yui-skin-sam .yui-resize-status strong, .yui-skin-sam .yui-resize-status em {
++    float: left;
++    display: block;
++    clear: both;
++    padding: 1px;
++    text-align: center;
++}
++
++/* Setup the gripper */
++.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,
++.yui-skin-sam .yui-resize .yui-resize-handle-inner-l {
++    background: transparent url( layout_sprite.png) no-repeat 0 -5px;
++    height: 16px;
++    width: 5px;
++    position: absolute;
++    top: 45%;
++}
++
++/* Setup the gripper */
++.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,
++.yui-skin-sam .yui-resize .yui-resize-handle-inner-b {
++    background: transparent url(layout_sprite.png) no-repeat -20px 0;
++    height: 5px;
++    width: 16px;
++    position: absolute;
++    left: 50%;
++}
++
++/* Bottom Right Gripper */
++.yui-skin-sam .yui-resize .yui-resize-handle-br {
++    background-image: url( layout_sprite.png );
++    background-repeat: no-repeat;
++    background-position: -22px -62px;
++}
++
++/* Top Right Gripper */
++.yui-skin-sam .yui-resize .yui-resize-handle-tr {
++    background-image: url( layout_sprite.png );
++    background-repeat: no-repeat;
++    background-position: -22px -42px;
++}
++
++/* Top Left Gripper */
++.yui-skin-sam .yui-resize .yui-resize-handle-tl {
++    background-image: url( layout_sprite.png );
++    background-repeat: no-repeat;
++    background-position: -22px -82px;
++}
++
++/* Bottom Left Gripper */
++.yui-skin-sam .yui-resize .yui-resize-handle-bl {
++    background-image: url( layout_sprite.png );
++    background-repeat: no-repeat;
++    background-position: -22px -23px;
++}
++
++/* Remove the background image from the 8-way knobs */
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br {
++    background-image: none;
++}
++
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,
++.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active {
++    height: 6px;
++    width: 6px;
++}
++
++.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r {
++    right: -8px;
++}
++.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b {
++    bottom: -8px;
++}
++.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br {
++    right: -8px;
++    bottom: -8px;
++}
+diff --git a/pylons_app/public/js/yui/resize/assets/skins/sam/resize.css b/pylons_app/public/js/yui/resize/assets/skins/sam/resize.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/resize/assets/skins/sam/resize.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-resize{position:relative;zoom:1;z-index:0;}.yui-resize-wrap{zoom:1;}.yui-draggable{cursor:move;}.yui-resize .yui-resize-handle{position:absolute;z-index:1;font-size:0;margin:0;padding:0;zoom:1;height:1px;width:1px;}.yui-resize .yui-resize-handle-br{height:5px;width:5px;bottom:0;right:0;cursor:se-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-bl{height:5px;width:5px;bottom:0;left:0;cursor:sw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tl{height:5px;width:5px;top:0;left:0;cursor:nw-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-tr{height:5px;width:5px;top:0;right:0;cursor:ne-resize;z-index:2;zoom:1;}.yui-resize .yui-resize-handle-r{width:5px;height:100%;top:0;right:0;cursor:e-resize;zoom:1;}.yui-resize .yui-resize-handle-l{height:100%;width:5px;top:0;left:0;cursor:w-resize;zoom:1;}.yui-resize .yui-resize-handle-b{width:100%;height:5px;bottom:0;right:0;cursor:s-resize;zoom:1;}.yui-resize .yui-resize-handle-t{width:100%;height:5px;top:0;right:0;cursor:n-resize;zoom:1;}.yui-resize-proxy{position:absolute;border:1px dashed #000;visibility:hidden;z-index:1000;}.yui-resize-hover .yui-resize-handle,.yui-resize-hidden .yui-resize-handle{opacity:0;filter:alpha(opacity=0);}.yui-resize-ghost{opacity:.5;filter:alpha(opacity=50);}.yui-resize-knob .yui-resize-handle{height:6px;width:6px;}.yui-resize-knob .yui-resize-handle-tr{right:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-tl{left:-3px;top:-3px;}.yui-resize-knob .yui-resize-handle-bl{left:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-br{right:-3px;bottom:-3px;}.yui-resize-knob .yui-resize-handle-t{left:45%;top:-3px;}.yui-resize-knob .yui-resize-handle-r{right:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-l{left:-3px;top:45%;}.yui-resize-knob .yui-resize-handle-b{left:45%;bottom:-3px;}.yui-resize-status{position:absolute;top:-999px;left:-999px;padding:2px;font-size:80%;display:none;zoom:1;z-index:9999;}.yui-resize-status strong,.yui-resize-status em{font-weight:normal;font-style:normal;padding:1px;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle{background-color:#F2F2F2;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;zoom:1;}.yui-skin-sam .yui-resize .yui-resize-handle-l,.yui-skin-sam .yui-resize .yui-resize-handle-r,.yui-skin-sam .yui-resize .yui-resize-handle-l-active,.yui-skin-sam .yui-resize .yui-resize-handle-r-active{height:100%;zoom:1;}.yui-skin-sam .yui-resize-knob .yui-resize-handle{border:1px solid #808080;}.yui-skin-sam .yui-resize-hover .yui-resize-handle-active{opacity:1;filter:alpha(opacity=100);}.yui-skin-sam .yui-resize-proxy{border:1px dashed #426FD9;}.yui-skin-sam .yui-resize-status{border:1px solid #A6982B;border-top:1px solid #D4C237;background-color:#FFEE69;color:#000;}.yui-skin-sam .yui-resize-status strong,.yui-skin-sam .yui-resize-status em{float:left;display:block;clear:both;padding:1px;text-align:center;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize .yui-resize-handle-inner-l{background:transparent url(layout_sprite.png) no-repeat 0 -5px;height:16px;width:5px;position:absolute;top:45%;}.yui-skin-sam .yui-resize .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize .yui-resize-handle-inner-b{background:transparent url(layout_sprite.png) no-repeat -20px 0;height:5px;width:16px;position:absolute;left:50%;}.yui-skin-sam .yui-resize .yui-resize-handle-br{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -62px;}.yui-skin-sam .yui-resize .yui-resize-handle-tr{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -42px;}.yui-skin-sam .yui-resize .yui-resize-handle-tl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -82px;}.yui-skin-sam .yui-resize .yui-resize-handle-bl{background-image:url(layout_sprite.png);background-repeat:no-repeat;background-position:-22px -23px;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-br,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-t,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-b,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-tr,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-bl,.yui-skin-sam .yui-resize-knob .yui-resize-handle-inner-br{background-image:none;}.yui-skin-sam .yui-resize-knob .yui-resize-handle-l,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r,.yui-skin-sam .yui-resize-knob .yui-resize-handle-l-active,.yui-skin-sam .yui-resize-knob .yui-resize-handle-r-active{height:6px;width:6px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-r{right:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-b{bottom:-8px;}.yui-skin-sam .yui-resize-textarea .yui-resize-handle-br{right:-8px;bottom:-8px;}
+diff --git a/pylons_app/public/js/yui/resize/resize-debug.js b/pylons_app/public/js/yui/resize/resize-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/resize/resize-debug.js
+@@ -0,0 +1,1749 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * @description <p>Makes an element resizable</p>
++ * @namespace YAHOO.util
++ * @requires yahoo, dom, dragdrop, element, event
++ * @optional animation
++ * @module resize
++ */
++(function() {
++var D = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class Resize
++     * @extends YAHOO.util.Element
++     * @description <p>Makes an element resizable</p>
++     * @param {String/HTMLElement} el The element to make resizable.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    var Resize = function(el, config) {
++        YAHOO.log('Creating Resize Object', 'info', 'Resize');
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        Resize.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all resize instances
++    * @type Object
++    */ 
++    Resize._instances = {};
++    /**
++    * @static
++    * @method getResizeById 
++    * @description Get's a resize object by the HTML id of the element associated with the Resize object.
++    * @return {Object} The Resize Object
++    */ 
++    Resize.getResizeById = function(id) {
++        if (Resize._instances[id]) {
++            return Resize._instances[id];
++        }
++        YAHOO.log('No Instance Found', 'error', 'Resize');
++        return false;
++    };
++
++    YAHOO.extend(Resize, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property CSS_RESIZE
++        * @description Base CSS class name
++        * @type String
++        */ 
++        CSS_RESIZE: 'yui-resize',
++        /**
++        * @private
++        * @property CSS_DRAG
++        * @description Class name added when dragging is enabled
++        * @type String
++        */ 
++        CSS_DRAG: 'yui-draggable',
++        /**
++        * @private
++        * @property CSS_HOVER
++        * @description Class name used for hover only handles
++        * @type String
++        */ 
++        CSS_HOVER: 'yui-resize-hover',
++        /**
++        * @private
++        * @property CSS_PROXY
++        * @description Class name given to the proxy element
++        * @type String
++        */ 
++        CSS_PROXY: 'yui-resize-proxy',
++        /**
++        * @private
++        * @property CSS_WRAP
++        * @description Class name given to the wrap element
++        * @type String
++        */ 
++        CSS_WRAP: 'yui-resize-wrap',
++        /**
++        * @private
++        * @property CSS_KNOB
++        * @description Class name used to make the knob style handles
++        * @type String
++        */ 
++        CSS_KNOB: 'yui-resize-knob',
++        /**
++        * @private
++        * @property CSS_HIDDEN
++        * @description Class name given to the wrap element to make all handles hidden
++        * @type String
++        */ 
++        CSS_HIDDEN: 'yui-resize-hidden',
++        /**
++        * @private
++        * @property CSS_HANDLE
++        * @description Class name given to all handles, used as a base for single handle names as well.. Handle "t" will get this.CSS_HANDLE + '-t' as well as this.CSS_HANDLE
++        * @type String
++        */ 
++        CSS_HANDLE: 'yui-resize-handle',
++        /**
++        * @private
++        * @property CSS_STATUS
++        * @description Class name given to the status element
++        * @type String
++        */ 
++        CSS_STATUS: 'yui-resize-status',
++        /**
++        * @private
++        * @property CSS_GHOST
++        * @description Class name given to the wrap element when the ghost property is active
++        * @type String
++        */ 
++        CSS_GHOST: 'yui-resize-ghost',
++        /**
++        * @private
++        * @property CSS_RESIZING
++        * @description Class name given to the wrap element when a resize action is taking place.
++        * @type String
++        */ 
++        CSS_RESIZING: 'yui-resize-resizing',
++        /**
++        * @private
++        * @property _resizeEvent
++        * @description The mouse event used to resize with
++        * @type Event
++        */ 
++        _resizeEvent: null,
++        /**
++        * @private
++        * @property dd
++        * @description The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance used if draggable is true
++        * @type Object
++        */ 
++        dd: null,
++        /** 
++        * @private
++        * @property browser
++        * @description A copy of the YAHOO.env.ua property
++        * @type Object
++        */
++        browser: YAHOO.env.ua,
++        /** 
++        * @private
++        * @property _locked
++        * @description A flag to show if the resize is locked
++        * @type Boolean
++        */
++        _locked: null,
++        /** 
++        * @private
++        * @property _positioned
++        * @description A flag to show if the element is absolutely positioned
++        * @type Boolean
++        */
++        _positioned: null,
++        /** 
++        * @private
++        * @property _dds
++        * @description An Object containing references to all of the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instances used for the resize handles
++        * @type Object
++        */
++        _dds: null,
++        /** 
++        * @private
++        * @property _wrap
++        * @description The HTML reference of the element wrapper
++        * @type HTMLElement
++        */
++        _wrap: null,
++        /** 
++        * @private
++        * @property _proxy
++        * @description The HTML reference of the element proxy
++        * @type HTMLElement
++        */
++        _proxy: null,
++        /** 
++        * @private
++        * @property _handles
++        * @description An object containing references to all of the resize handles.
++        * @type Object
++        */
++        _handles: null,
++        /** 
++        * @private
++        * @property _currentHandle
++        * @description The string identifier of the currently active handle. e.g. 'r', 'br', 'tl'
++        * @type String
++        */
++        _currentHandle: null,
++        /** 
++        * @private
++        * @property _currentDD
++        * @description A link to the currently active DD object
++        * @type Object
++        */
++        _currentDD: null,
++        /** 
++        * @private
++        * @property _cache
++        * @description An lookup table containing key information for the element being resized. e.g. height, width, x position, y position, etc..
++        * @type Object
++        */
++        _cache: null,
++        /** 
++        * @private
++        * @property _active
++        * @description Flag to show if the resize is active. Used for events.
++        * @type Boolean
++        */
++        _active: null,
++        /** 
++        * @private
++        * @method _createProxy
++        * @description Creates the proxy element if the proxy config is true
++        */
++        _createProxy: function() {
++            if (this.get('proxy')) {
++                YAHOO.log('Creating the Proxy Element', 'info', 'Resize');
++                this._proxy = document.createElement('div');
++                this._proxy.className = this.CSS_PROXY;
++                this._proxy.style.height = this.get('element').clientHeight + 'px';
++                this._proxy.style.width = this.get('element').clientWidth + 'px';
++                this._wrap.parentNode.appendChild(this._proxy);
++            } else {
++                YAHOO.log('No proxy element, turn off animate config option', 'info', 'Resize');
++                this.set('animate', false);
++            }
++        },
++        /** 
++        * @private
++        * @method _createWrap
++        * @description Creates the wrap element if the wrap config is true. It will auto wrap the following element types: img, textarea, input, iframe, select
++        */
++        _createWrap: function() {
++            YAHOO.log('Create the wrap element', 'info', 'Resize');
++            this._positioned = false;
++            //Force wrap for elements that can't have children 
++            if (this.get('wrap') === false) {
++                switch (this.get('element').tagName.toLowerCase()) {
++                    case 'img':
++                    case 'textarea':
++                    case 'input':
++                    case 'iframe':
++                    case 'select':
++                        YAHOO.log('Auto-wrapping the element (' + this.get('element').tagName.toLowerCase() + ')', 'warn', 'Resize');
++                        this.set('wrap', true);
++                        break;
++                }
++            }
++            if (this.get('wrap') === true) {
++                YAHOO.log('Creating the wrap element', 'info', 'Resize');
++                this._wrap = document.createElement('div');
++                this._wrap.id = this.get('element').id + '_wrap';
++                this._wrap.className = this.CSS_WRAP;
++                if (this.get('element').tagName.toLowerCase() == 'textarea') {
++                    D.addClass(this._wrap, 'yui-resize-textarea');
++                }
++                D.setStyle(this._wrap, 'width', this.get('width') + 'px');
++                D.setStyle(this._wrap, 'height', this.get('height') + 'px');
++                D.setStyle(this._wrap, 'z-index', this.getStyle('z-index'));
++                this.setStyle('z-index', 0);
++                var pos = D.getStyle(this.get('element'), 'position');
++                D.setStyle(this._wrap, 'position', ((pos == 'static') ? 'relative' : pos));
++                D.setStyle(this._wrap, 'top', D.getStyle(this.get('element'), 'top'));
++                D.setStyle(this._wrap, 'left', D.getStyle(this.get('element'), 'left'));
++                if (D.getStyle(this.get('element'), 'position') == 'absolute') {
++                    this._positioned = true;
++                    YAHOO.log('The element is positioned absolute', 'info', 'Resize');
++                    D.setStyle(this.get('element'), 'position', 'relative');
++                    D.setStyle(this.get('element'), 'top', '0');
++                    D.setStyle(this.get('element'), 'left', '0');
++                }
++                var par = this.get('element').parentNode;
++                par.replaceChild(this._wrap, this.get('element'));
++                this._wrap.appendChild(this.get('element'));
++            } else {
++                this._wrap = this.get('element');
++                if (D.getStyle(this._wrap, 'position') == 'absolute') {
++                    this._positioned = true;
++                }
++            }
++            if (this.get('draggable')) {
++                this._setupDragDrop();
++            }
++            if (this.get('hover')) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            if (this.get('knobHandles')) {
++                D.addClass(this._wrap, this.CSS_KNOB);
++            }
++            if (this.get('hiddenHandles')) {
++                D.addClass(this._wrap, this.CSS_HIDDEN);
++            }
++            D.addClass(this._wrap, this.CSS_RESIZE);
++        },
++        /** 
++        * @private
++        * @method _setupDragDrop
++        * @description Setup the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance on the element
++        */
++        _setupDragDrop: function() {
++            YAHOO.log('Setting up the dragdrop instance on the element', 'info', 'Resize');
++            D.addClass(this._wrap, this.CSS_DRAG);
++            this.dd = new YAHOO.util.DD(this._wrap, this.get('id') + '-resize', { dragOnly: true, useShim: this.get('useShim') });
++            this.dd.on('dragEvent', function() {
++                this.fireEvent('dragEvent', arguments);
++            }, this, true);
++        },
++        /** 
++        * @private
++        * @method _createHandles
++        * @description Creates the handles as specified in the config
++        */
++        _createHandles: function() {
++            YAHOO.log('Creating the handles', 'info', 'Resize');
++            this._handles = {};
++            this._dds = {};
++            var h = this.get('handles');
++            for (var i = 0; i < h.length; i++) {
++                YAHOO.log('Creating handle position: ' + h[i], 'info', 'Resize');
++                this._handles[h[i]] = document.createElement('div');
++                this._handles[h[i]].id = D.generateId(this._handles[h[i]]);
++                this._handles[h[i]].className = this.CSS_HANDLE + ' ' + this.CSS_HANDLE + '-' + h[i];
++                var k = document.createElement('div');
++                k.className = this.CSS_HANDLE + '-inner-' + h[i];
++                this._handles[h[i]].appendChild(k);
++                this._wrap.appendChild(this._handles[h[i]]);
++                Event.on(this._handles[h[i]], 'mouseover', this._handleMouseOver, this, true);
++                Event.on(this._handles[h[i]], 'mouseout', this._handleMouseOut, this, true);
++                this._dds[h[i]] = new YAHOO.util.DragDrop(this._handles[h[i]], this.get('id') + '-handle-' + h, { useShim: this.get('useShim') });
++                this._dds[h[i]].setPadding(15, 15, 15, 15);
++                this._dds[h[i]].on('startDragEvent', this._handleStartDrag, this._dds[h[i]], this);
++                this._dds[h[i]].on('mouseDownEvent', this._handleMouseDown, this._dds[h[i]], this);
++            }
++            YAHOO.log('Creating the Status box', 'info', 'Resize');
++            this._status = document.createElement('span');
++            this._status.className = this.CSS_STATUS;
++            document.body.insertBefore(this._status, document.body.firstChild);
++        },
++        /** 
++        * @private
++        * @method _ieSelectFix
++        * @description The function we use as the onselectstart handler when we start a drag in Internet Explorer
++        */
++        _ieSelectFix: function() {
++            return false;
++        },
++        /** 
++        * @private
++        * @property _ieSelectBack
++        * @description We will hold a copy of the current "onselectstart" method on this property, and reset it after we are done using it.
++        */
++        _ieSelectBack: null,
++        /** 
++        * @private
++        * @method _setAutoRatio
++        * @param {Event} ev A mouse event.
++        * @description This method checks to see if the "autoRatio" config is set. If it is, we will check to see if the "Shift Key" is pressed. If so, we will set the config ratio to true.
++        */
++        _setAutoRatio: function(ev) {
++            if (this.get('autoRatio')) {
++                YAHOO.log('Setting up AutoRatio', 'info', 'Resize');
++                if (ev && ev.shiftKey) {
++                    //Shift Pressed
++                    YAHOO.log('Shift key presses, turning on ratio', 'info', 'Resize');
++                    this.set('ratio', true);
++                } else {
++                    YAHOO.log('Resetting ratio back to default', 'info', 'Resize');
++                    this.set('ratio', this._configs.ratio._initialConfig.value);
++                }
++            }
++        },
++        /** 
++        * @private
++        * @method _handleMouseDown
++        * @param {Event} ev A mouse event.
++        * @description This method preps the autoRatio on MouseDown.
++        */
++        _handleMouseDown: function(ev) {
++            if (this._locked) {
++                YAHOO.log('Resize Locked', 'info', 'Resize');
++                return false;
++            }
++            if (D.getStyle(this._wrap, 'position') == 'absolute') {
++                this._positioned = true;
++            }
++            if (ev) {
++                this._setAutoRatio(ev);
++            }
++            if (this.browser.ie) {
++                this._ieSelectBack = document.body.onselectstart;
++                document.body.onselectstart = this._ieSelectFix;
++            }
++        },
++        /** 
++        * @private
++        * @method _handleMouseOver
++        * @param {Event} ev A mouse event.
++        * @description Adds CSS class names to the handles
++        */
++        _handleMouseOver: function(ev) {
++            if (this._locked) {
++                YAHOO.log('Resize Locked', 'info', 'Resize');
++                return false;
++            }
++            D.removeClass(this._wrap, this.CSS_RESIZE);
++
++            if (this.get('hover')) {
++                D.removeClass(this._wrap, this.CSS_HOVER);
++            }
++            var tar = Event.getTarget(ev);
++            if (!D.hasClass(tar, this.CSS_HANDLE)) {
++                tar = tar.parentNode;
++            }
++            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
++                D.addClass(tar, this.CSS_HANDLE + '-active');
++                for (var i in this._handles) {
++                    if (Lang.hasOwnProperty(this._handles, i)) {
++                        if (this._handles[i] == tar) {
++                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
++                            break;
++                        }
++                    }
++                }
++            }
++
++            D.addClass(this._wrap, this.CSS_RESIZE);
++        },
++        /** 
++        * @private
++        * @method _handleMouseOut
++        * @param {Event} ev A mouse event.
++        * @description Removes CSS class names to the handles
++        */
++        _handleMouseOut: function(ev) {
++            D.removeClass(this._wrap, this.CSS_RESIZE);
++            if (this.get('hover') && !this._active) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            var tar = Event.getTarget(ev);
++            if (!D.hasClass(tar, this.CSS_HANDLE)) {
++                tar = tar.parentNode;
++            }
++            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
++                D.removeClass(tar, this.CSS_HANDLE + '-active');
++                for (var i in this._handles) {
++                    if (Lang.hasOwnProperty(this._handles, i)) {
++                        if (this._handles[i] == tar) {
++                            D.removeClass(tar, this.CSS_HANDLE + '-' + i + '-active');
++                            break;
++                        }
++                    }
++                }
++            }
++            D.addClass(this._wrap, this.CSS_RESIZE);
++        },
++        /** 
++        * @private
++        * @method _handleStartDrag
++        * @param {Object} args The args passed from the CustomEvent.
++        * @param {Object} dd The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> object we are working with.
++        * @description Resizes the proxy, sets up the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> handlers, updates the status div and preps the cache
++        */
++        _handleStartDrag: function(args, dd) {
++            YAHOO.log('startDrag', 'info', 'Resize');
++            var tar = dd.getDragEl();
++            if (D.hasClass(tar, this.CSS_HANDLE)) {
++                if (D.getStyle(this._wrap, 'position') == 'absolute') {
++                    this._positioned = true;
++                }
++                this._active = true;
++                this._currentDD = dd;
++                if (this._proxy) {
++                    YAHOO.log('Activate proxy element', 'info', 'Resize');
++                    this._proxy.style.visibility = 'visible';
++                    this._proxy.style.zIndex = '1000';
++                    this._proxy.style.height = this.get('element').clientHeight + 'px';
++                    this._proxy.style.width = this.get('element').clientWidth + 'px';
++                }
++
++                for (var i in this._handles) {
++                    if (Lang.hasOwnProperty(this._handles, i)) {
++                        if (this._handles[i] == tar) {
++                            this._currentHandle = i;
++                            var handle = '_handle_for_' + i;
++                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
++                            dd.on('dragEvent', this[handle], this, true);
++                            dd.on('mouseUpEvent', this._handleMouseUp, this, true);
++                            YAHOO.log('Adding DragEvents to: ' + i, 'info', 'Resize');
++                            break;
++                        }
++                    }
++                }
++
++
++                D.addClass(tar, this.CSS_HANDLE + '-active');
++
++                if (this.get('proxy')) {
++                    YAHOO.log('Posiiton Proxy Element', 'info', 'Resize');
++                    var xy = D.getXY(this.get('element'));
++                    D.setXY(this._proxy, xy);
++                    if (this.get('ghost')) {
++                        YAHOO.log('Add Ghost Class', 'info', 'Resize');
++                        this.addClass(this.CSS_GHOST);
++                    }
++                }
++                D.addClass(this._wrap, this.CSS_RESIZING);
++                this._setCache();
++                this._updateStatus(this._cache.height, this._cache.width, this._cache.top, this._cache.left);
++                YAHOO.log('Firing startResize Event', 'info', 'Resize');
++                this.fireEvent('startResize', { type: 'startresize', target: this});
++            }
++        },
++        /** 
++        * @private
++        * @method _setCache
++        * @description Sets up the this._cache hash table.
++        */
++        _setCache: function() {
++            YAHOO.log('Setting up property cache', 'info', 'Resize');
++            this._cache.xy = D.getXY(this._wrap);
++            D.setXY(this._wrap, this._cache.xy);
++            this._cache.height = this.get('clientHeight');
++            this._cache.width = this.get('clientWidth');
++            this._cache.start.height = this._cache.height;
++            this._cache.start.width = this._cache.width;
++            this._cache.start.top = this._cache.xy[1];
++            this._cache.start.left = this._cache.xy[0];
++            this._cache.top = this._cache.xy[1];
++            this._cache.left = this._cache.xy[0];
++            this.set('height', this._cache.height, true);
++            this.set('width', this._cache.width, true);
++        },
++        /** 
++        * @private
++        * @method _handleMouseUp
++        * @param {Event} ev A mouse event.
++        * @description Cleans up listeners, hides proxy element and removes class names.
++        */
++        _handleMouseUp: function(ev) {
++            this._active = false;
++
++            var handle = '_handle_for_' + this._currentHandle;
++            this._currentDD.unsubscribe('dragEvent', this[handle], this, true);
++            this._currentDD.unsubscribe('mouseUpEvent', this._handleMouseUp, this, true);
++
++            if (this._proxy) {
++                YAHOO.log('Hide Proxy Element', 'info', 'Resize');
++                this._proxy.style.visibility = 'hidden';
++                this._proxy.style.zIndex = '-1';
++                if (this.get('setSize')) {
++                    YAHOO.log('Setting Size', 'info', 'Resize');
++                    this.resize(ev, this._cache.height, this._cache.width, this._cache.top, this._cache.left, true);
++                } else {
++                    YAHOO.log('Firing Resize Event', 'info', 'Resize');
++                    this.fireEvent('resize', { ev: 'resize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
++                }
++
++                if (this.get('ghost')) {
++                    YAHOO.log('Removing Ghost Class', 'info', 'Resize');
++                    this.removeClass(this.CSS_GHOST);
++                }
++            }
++
++            if (this.get('hover')) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            if (this._status) {
++                D.setStyle(this._status, 'display', 'none');
++            }
++            if (this.browser.ie) {
++                YAHOO.log('Resetting IE onselectstart function', 'info', 'Resize');
++                document.body.onselectstart = this._ieSelectBack;
++            }
++
++            if (this.browser.ie) {
++                D.removeClass(this._wrap, this.CSS_RESIZE);
++            }
++
++            for (var i in this._handles) {
++                if (Lang.hasOwnProperty(this._handles, i)) {
++                    D.removeClass(this._handles[i], this.CSS_HANDLE + '-active');
++                }
++            }
++            if (this.get('hover') && !this._active) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            D.removeClass(this._wrap, this.CSS_RESIZING);
++
++            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-' + this._currentHandle + '-active');
++            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-active');
++
++            if (this.browser.ie) {
++                D.addClass(this._wrap, this.CSS_RESIZE);
++            }
++
++            this._resizeEvent = null;
++            this._currentHandle = null;
++            
++            if (!this.get('animate')) {
++                this.set('height', this._cache.height, true);
++                this.set('width', this._cache.width, true);
++            }
++
++            YAHOO.log('Firing endResize Event', 'info', 'Resize');
++            this.fireEvent('endResize', { ev: 'endResize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
++        },
++        /** 
++        * @private
++        * @method _setRatio
++        * @param {Number} h The height offset.
++        * @param {Number} w The with offset.
++        * @param {Number} t The top offset.
++        * @param {Number} l The left offset.
++        * @description Using the Height, Width, Top & Left, it recalcuates them based on the original element size.
++        * @return {Array} The new Height, Width, Top & Left settings
++        */
++        _setRatio: function(h, w, t, l) {
++            YAHOO.log('Setting Ratio', 'info', 'Resize');
++            var oh = h, ow = w;
++            if (this.get('ratio')) {
++                var orgH = this._cache.height,
++                    orgW = this._cache.width,
++                    nh = parseInt(this.get('height'), 10),
++                    nw = parseInt(this.get('width'), 10),
++                    maxH = this.get('maxHeight'),
++                    minH = this.get('minHeight'),
++                    maxW = this.get('maxWidth'),
++                    minW = this.get('minWidth');
++
++                switch (this._currentHandle) {
++                    case 'l':
++                        h = nh * (w / nw);
++                        h = Math.min(Math.max(minH, h), maxH);                        
++                        w = nw * (h / nh);
++                        t = (this._cache.start.top - (-((nh - h) / 2)));
++                        l = (this._cache.start.left - (-((nw - w))));
++                        break;
++                    case 'r':
++                        h = nh * (w / nw);
++                        h = Math.min(Math.max(minH, h), maxH);                        
++                        w = nw * (h / nh);
++                        t = (this._cache.start.top - (-((nh - h) / 2)));
++                        break;
++                    case 't':
++                        w = nw * (h / nh);
++                        h = nh * (w / nw);
++                        l = (this._cache.start.left - (-((nw - w) / 2)));
++                        t = (this._cache.start.top - (-((nh - h))));
++                        break;
++                    case 'b':
++                        w = nw * (h / nh);
++                        h = nh * (w / nw);
++                        l = (this._cache.start.left - (-((nw - w) / 2)));
++                        break;
++                    case 'bl':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        l = (this._cache.start.left - (-((nw - w))));
++                        break;
++                    case 'br':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        break;
++                    case 'tl':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        l = (this._cache.start.left - (-((nw - w))));
++                        t = (this._cache.start.top - (-((nh - h))));
++                        break;
++                    case 'tr':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        l = (this._cache.start.left);
++                        t = (this._cache.start.top - (-((nh - h))));
++                        break;
++                }
++                oh = this._checkHeight(h);
++                ow = this._checkWidth(w);
++                if ((oh != h) || (ow != w)) {
++                    t = 0;
++                    l = 0;
++                    if (oh != h) {
++                        ow = this._cache.width;
++                    }
++                    if (ow != w) {
++                        oh = this._cache.height;
++                    }
++                }
++            }
++            return [oh, ow, t, l];
++        },
++        /** 
++        * @private
++        * @method _updateStatus
++        * @param {Number} h The new height setting.
++        * @param {Number} w The new width setting.
++        * @param {Number} t The new top setting.
++        * @param {Number} l The new left setting.
++        * @description Using the Height, Width, Top & Left, it updates the status element with the elements sizes.
++        */
++        _updateStatus: function(h, w, t, l) {
++            if (this._resizeEvent && (!Lang.isString(this._resizeEvent))) {
++                YAHOO.log('Updating Status Box', 'info', 'Resize');
++                h = ((h === 0) ? this._cache.start.height : h);
++                w = ((w === 0) ? this._cache.start.width : w);
++                var h1 = parseInt(this.get('height'), 10),
++                    w1 = parseInt(this.get('width'), 10);
++                
++                if (isNaN(h1)) {
++                    h1 = parseInt(h, 10);
++                }
++                if (isNaN(w1)) {
++                    w1 = parseInt(w, 10);
++                }
++                var diffH = (parseInt(h, 10) - h1);
++                var diffW = (parseInt(w, 10) - w1);
++                this._cache.offsetHeight = diffH;
++                this._cache.offsetWidth = diffW;
++                if (this.get('status')) {
++                    YAHOO.log('Showing Status Box', 'info', 'Resize');
++                    D.setStyle(this._status, 'display', 'inline');
++                    //This will cause IE8 to crash if the status box is hidden..
++                    this._status.innerHTML = '<strong>' + parseInt(h, 10) + ' x ' + parseInt(w, 10) + '</strong><em>' + ((diffH > 0) ? '+' : '') + diffH + ' x ' + ((diffW > 0) ? '+' : '') + diffW + '</em>';
++                    D.setXY(this._status, [Event.getPageX(this._resizeEvent) + 12, Event.getPageY(this._resizeEvent) + 12]);
++                }
++            }
++        },
++        /** 
++        * @method lock
++        * @description Lock the resize so it can't be resized
++        * @param {Boolean} dd If the draggable config is set, lock it too
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        lock: function(dd) {
++            this._locked = true;
++            if (dd && this.dd) {
++                D.removeClass(this._wrap, 'yui-draggable');
++                this.dd.lock();
++            }
++            return this;
++        },
++        /** 
++        * @method unlock
++        * @description Unlock the resize so it can be resized
++        * @param {Boolean} dd If the draggable config is set, unlock it too
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        unlock: function(dd) {
++            this._locked = false;
++            if (dd && this.dd) {
++                D.addClass(this._wrap, 'yui-draggable');
++                this.dd.unlock();
++            }
++            return this;
++        },
++        /** 
++        * @method isLocked
++        * @description Check the locked status of the resize instance
++        * @return {Boolean}
++        */
++        isLocked: function() {
++            return this._locked;
++        },
++        /** 
++        * @method reset
++        * @description Resets the element to is start state.
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        reset: function() {
++            YAHOO.log('Resetting to cached sizes and position', 'info', 'Resize');
++            this.resize(null, this._cache.start.height, this._cache.start.width, this._cache.start.top, this._cache.start.left, true);
++            return this;
++        },
++        /** 
++        * @private
++        * @method resize
++        * @param {Event} ev The mouse event.
++        * @param {Number} h The new height setting.
++        * @param {Number} w The new width setting.
++        * @param {Number} t The new top setting.
++        * @param {Number} l The new left setting.
++        * @param {Boolean} force Resize the element (used for proxy resize).
++        * @param {Boolean} silent Don't fire the beforeResize Event.
++        * @description Resizes the element, wrapper or proxy based on the data from the handlers.
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        resize: function(ev, h, w, t, l, force, silent) {
++            if (this._locked) {
++                YAHOO.log('Resize Locked', 'info', 'Resize');
++                return false;
++            }
++            YAHOO.log('Resize: ' + h + ',' + w + ',' + t + ',' + l, 'info', 'Resize');
++            this._resizeEvent = ev;
++            var el = this._wrap, anim = this.get('animate'), set = true;
++            if (this._proxy && !force) {
++                el = this._proxy;
++                anim = false;
++            }
++            this._setAutoRatio(ev);
++            if (this._positioned) {
++                if (this._proxy) {
++                    t = this._cache.top - t;
++                    l = this._cache.left - l;
++                }
++            }
++            
++            
++            var ratio = this._setRatio(h, w, t, l);
++            h = parseInt(ratio[0], 10);
++            w = parseInt(ratio[1], 10);
++            t = parseInt(ratio[2], 10);
++            l = parseInt(ratio[3], 10);
++            
++            if (t == 0) {
++                //No Offset, get from cache
++                t = D.getY(el);
++            }
++            if (l == 0) {
++                //No Offset, get from cache
++                l = D.getX(el);
++            }
++
++            
++
++            if (this._positioned) {
++                if (this._proxy && force) {
++                    if (!anim) {
++                        el.style.top = this._proxy.style.top;
++                        el.style.left = this._proxy.style.left;
++                    } else {
++                        t = this._proxy.style.top;
++                        l = this._proxy.style.left;
++                    }
++                } else {
++                    if (!this.get('ratio') && !this._proxy) {
++                        t = this._cache.top + -(t);
++                        l = this._cache.left + -(l);
++                    }
++                    if (t) {
++                        if (this.get('minY')) {
++                            if (t < this.get('minY')) {
++                                t = this.get('minY');
++                            }
++                        }
++                        if (this.get('maxY')) {
++                            if (t > this.get('maxY')) {
++                                t = this.get('maxY');
++                            }
++                        }
++                    }
++                    if (l) {
++                        if (this.get('minX')) {
++                            if (l < this.get('minX')) {
++                                l = this.get('minX');
++                            }
++                        }
++                        if (this.get('maxX')) {
++                            if ((l + w) > this.get('maxX')) {
++                                l = (this.get('maxX') - w);
++                            }
++                        }
++                    }
++                }
++            }
++            if (!silent) {
++                YAHOO.log('beforeResize', 'info', 'Resize');
++                var beforeReturn = this.fireEvent('beforeResize', { ev: 'beforeResize', target: this, height: h, width: w, top: t, left: l });
++                if (beforeReturn === false) {
++                    YAHOO.log('Resized cancelled because befireResize returned false', 'info', 'Resize');
++                    return false;
++                }
++            }
++
++            this._updateStatus(h, w, t, l);
++
++
++            if (this._positioned) {
++                if (this._proxy && force) {
++                    //Do nothing
++                } else {
++                    if (t) {
++                        D.setY(el, t);
++                        this._cache.top = t;
++                    }
++                    if (l) {
++                        D.setX(el, l);
++                        this._cache.left = l;
++                    }
++                }
++            }
++            if (h) {
++                if (!anim) {
++                    set = true;
++                    if (this._proxy && force) {
++                        if (!this.get('setSize')) {
++                            set = false;
++                        }
++                    }
++                    if (set) {
++                        el.style.height = h + 'px';
++                    }
++                    if ((this._proxy && force) || !this._proxy) {
++                        if (this._wrap != this.get('element')) {
++                            this.get('element').style.height = h + 'px';
++                        }
++                    }
++                }
++                this._cache.height = h;
++            }
++            if (w) {
++                this._cache.width = w;
++                if (!anim) {
++                    set = true;
++                    if (this._proxy && force) {
++                        if (!this.get('setSize')) {
++                            set = false;
++                        }
++                    }
++                    if (set) {
++                        el.style.width = w + 'px';
++                    }
++                    if ((this._proxy && force) || !this._proxy) {
++                        if (this._wrap != this.get('element')) {
++                            this.get('element').style.width = w + 'px';
++                        }
++                    }
++                }
++            }
++            if (anim) {
++                if (YAHOO.util.Anim) {
++                    var _anim = new YAHOO.util.Anim(el, {
++                        height: {
++                            to: this._cache.height
++                        },
++                        width: {
++                            to: this._cache.width
++                        }
++                    }, this.get('animateDuration'), this.get('animateEasing'));
++                    if (this._positioned) {
++                        if (t) {
++                            _anim.attributes.top = {
++                                to: parseInt(t, 10)
++                            };
++                        }
++                        if (l) {
++                            _anim.attributes.left = {
++                                to: parseInt(l, 10)
++                            };
++                        }
++                    }
++
++                    if (this._wrap != this.get('element')) {
++                        _anim.onTween.subscribe(function() {
++                            this.get('element').style.height = el.style.height;
++                            this.get('element').style.width = el.style.width;
++                        }, this, true);
++                    }
++
++                    _anim.onComplete.subscribe(function() {
++                        YAHOO.log('Animation onComplete fired', 'info', 'Resize');
++                        this.set('height', h);
++                        this.set('width', w);
++                        this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
++                    }, this, true);
++                    _anim.animate();
++
++                }
++            } else {
++                if (this._proxy && !force) {
++                    YAHOO.log('proxyResize', 'info', 'Resize');
++                    this.fireEvent('proxyResize', { ev: 'proxyresize', target: this, height: h, width: w, top: t, left: l });
++                } else {
++                    YAHOO.log('resize', 'info', 'Resize');
++                    this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
++                }
++            }
++            return this;
++        },
++        /** 
++        * @private
++        * @method _handle_for_br
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Bottom Right handle.
++        */
++        _handle_for_br: function(args) {
++            YAHOO.log('Handle BR', 'info', 'Resize');
++            var newW = this._setWidth(args.e);
++            var newH = this._setHeight(args.e);
++            this.resize(args.e, newH, newW, 0, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_bl
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Bottom Left handle.
++        */
++        _handle_for_bl: function(args) {
++            YAHOO.log('Handle BL', 'info', 'Resize');
++            var newW = this._setWidth(args.e, true);
++            var newH = this._setHeight(args.e);
++            var l = (newW - this._cache.width);
++            this.resize(args.e, newH, newW, 0, l);
++        },
++        /** 
++        * @private
++        * @method _handle_for_tl
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Top Left handle.
++        */
++        _handle_for_tl: function(args) {
++            YAHOO.log('Handle TL', 'info', 'Resize');
++            var newW = this._setWidth(args.e, true);
++            var newH = this._setHeight(args.e, true);
++            var t = (newH - this._cache.height);
++            var l = (newW - this._cache.width);
++            this.resize(args.e, newH, newW, t, l);
++        },
++        /** 
++        * @private
++        * @method _handle_for_tr
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Top Right handle.
++        */
++        _handle_for_tr: function(args) {
++            YAHOO.log('Handle TR', 'info', 'Resize');
++            var newW = this._setWidth(args.e);
++            var newH = this._setHeight(args.e, true);
++            var t = (newH - this._cache.height);
++            this.resize(args.e, newH, newW, t, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_r
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Right handle.
++        */
++        _handle_for_r: function(args) {
++            YAHOO.log('Handle R', 'info', 'Resize');
++            this._dds.r.setYConstraint(0,0);
++            var newW = this._setWidth(args.e);
++            this.resize(args.e, 0, newW, 0, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_l
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Left handle.
++        */
++        _handle_for_l: function(args) {
++            YAHOO.log('Handle L', 'info', 'Resize');
++            this._dds.l.setYConstraint(0,0);
++            var newW = this._setWidth(args.e, true);
++            var l = (newW - this._cache.width);
++            this.resize(args.e, 0, newW, 0, l);
++        },
++        /** 
++        * @private
++        * @method _handle_for_b
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Bottom handle.
++        */
++        _handle_for_b: function(args) {
++            YAHOO.log('Handle B', 'info', 'Resize');
++            this._dds.b.setXConstraint(0,0);
++            var newH = this._setHeight(args.e);
++            this.resize(args.e, newH, 0, 0, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_t
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Top handle.
++        */
++        _handle_for_t: function(args) {
++            YAHOO.log('Handle T', 'info', 'Resize');
++            this._dds.t.setXConstraint(0,0);
++            var newH = this._setHeight(args.e, true);
++            var t = (newH - this._cache.height);
++            this.resize(args.e, newH, 0, t, 0);
++        },
++        /** 
++        * @private
++        * @method _setWidth
++        * @param {Event} ev The mouse event.
++        * @param {Boolean} flip Argument to determine the direction of the movement.
++        * @description Calculates the width based on the mouse event.
++        * @return {Number} The new value
++        */
++        _setWidth: function(ev, flip) {
++            YAHOO.log('Set width based on Event', 'info', 'Resize');
++            var xy = this._cache.xy[0],
++                w = this._cache.width,
++                x = Event.getPageX(ev),
++                nw = (x - xy);
++
++                if (flip) {
++                    nw = (xy - x) + parseInt(this.get('width'), 10);
++                }
++                
++                nw = this._snapTick(nw, this.get('xTicks'));
++                nw = this._checkWidth(nw);
++            return nw;
++        },
++        /** 
++        * @private
++        * @method _checkWidth
++        * @param {Number} w The width to check.
++        * @description Checks the value passed against the maxWidth and minWidth.
++        * @return {Number} the new value
++        */
++        _checkWidth: function(w) {
++            YAHOO.log('Checking the min/max width', 'info', 'Resize');
++            if (this.get('minWidth')) {
++                if (w <= this.get('minWidth')) {
++                    YAHOO.log('Using minWidth', 'info', 'Resize');
++                    w = this.get('minWidth');
++                }
++            }
++            if (this.get('maxWidth')) {
++                if (w >= this.get('maxWidth')) {
++                    YAHOO.log('Using Max Width', 'info', 'Resize');
++                    w = this.get('maxWidth');
++                }
++            }
++            return w;
++        },
++        /** 
++        * @private
++        * @method _checkHeight
++        * @param {Number} h The height to check.
++        * @description Checks the value passed against the maxHeight and minHeight.
++        * @return {Number} The new value
++        */
++        _checkHeight: function(h) {
++            YAHOO.log('Checking the min/max height', 'info', 'Resize');
++            if (this.get('minHeight')) {
++                if (h <= this.get('minHeight')) {
++                    YAHOO.log('Using minHeight', 'info', 'Resize');
++                    h = this.get('minHeight');
++                }
++            }
++            if (this.get('maxHeight')) {
++                if (h >= this.get('maxHeight')) {
++                    YAHOO.log('using maxHeight', 'info', 'Resize');
++                    h = this.get('maxHeight');
++                }
++            }
++            return h;
++        },
++        /** 
++        * @private
++        * @method _setHeight
++        * @param {Event} ev The mouse event.
++        * @param {Boolean} flip Argument to determine the direction of the movement.
++        * @description Calculated the height based on the mouse event.
++        * @return {Number} The new value
++        */
++        _setHeight: function(ev, flip) {
++            YAHOO.log('Setting the height based on the Event', 'info', 'Resize');
++            var xy = this._cache.xy[1],
++                h = this._cache.height,
++                y = Event.getPageY(ev),
++                nh = (y - xy);
++
++                if (flip) {
++                    nh = (xy - y) + parseInt(this.get('height'), 10);
++                }
++                nh = this._snapTick(nh, this.get('yTicks'));
++                nh = this._checkHeight(nh);
++                
++            return nh;
++        },
++        /** 
++        * @private
++        * @method _snapTick
++        * @param {Number} size The size to tick against.
++        * @param {Number} pix The tick pixels.
++        * @description Adjusts the number based on the ticks used.
++        * @return {Number} the new snapped position
++        */
++        _snapTick: function(size, pix) {
++            YAHOO.log('Snapping to ticks', 'info', 'Resize');
++            if (!size || !pix) {
++                return size;
++            }
++            var _s = size;
++            var _x = size % pix;
++            if (_x > 0) {
++                if (_x > (pix / 2)) {
++                    _s = size + (pix - _x);
++                } else {
++                    _s = size - _x;
++                }
++            }
++            return _s;
++        },
++        /** 
++        * @private
++        * @method init
++        * @description The Resize class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            YAHOO.log('init', 'info', 'Resize');
++            this._locked = false;
++            this._cache = {
++                xy: [],
++                height: 0,
++                width: 0,
++                top: 0,
++                left: 0,
++                offsetHeight: 0,
++                offsetWidth: 0,
++                start: {
++                    height: 0,
++                    width: 0,
++                    top: 0,
++                    left: 0
++                }
++            };
++
++            Resize.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.set('setSize', this.get('setSize'));
++
++            if (p_oAttributes.height) {
++                this.set('height', parseInt(p_oAttributes.height, 10));
++            } else {
++                var h = this.getStyle('height');
++                if (h == 'auto') {
++                    this.set('height', parseInt(this.get('element').offsetHeight, 10));
++                }
++            }
++            if (p_oAttributes.width) {
++                this.set('width', parseInt(p_oAttributes.width, 10));
++            } else {
++                var w = this.getStyle('width');
++                if (w == 'auto') {
++                    this.set('width', parseInt(this.get('element').offsetWidth, 10));
++                }
++            }
++            
++            var id = p_oElement;
++            if (!Lang.isString(id)) {
++                id = D.generateId(id);
++            }
++            Resize._instances[id] = this;
++
++            this._active = false;
++            
++            this._createWrap();
++            this._createProxy();
++            this._createHandles();
++
++        },
++        /**
++        * @method getProxyEl
++        * @description Get the HTML reference for the proxy, returns null if no proxy.
++        * @return {HTMLElement} The proxy element
++        */      
++        getProxyEl: function() {
++            return this._proxy;
++        },
++        /**
++        * @method getWrapEl
++        * @description Get the HTML reference for the wrap element, returns the current element if not wrapped.
++        * @return {HTMLElement} The wrap element
++        */      
++        getWrapEl: function() {
++            return this._wrap;
++        },
++        /**
++        * @method getStatusEl
++        * @description Get the HTML reference for the status element.
++        * @return {HTMLElement} The status element
++        */      
++        getStatusEl: function() {
++            return this._status;
++        },
++        /**
++        * @method getActiveHandleEl
++        * @description Get the HTML reference for the currently active resize handle.
++        * @return {HTMLElement} The handle element that is active
++        */      
++        getActiveHandleEl: function() {
++            return this._handles[this._currentHandle];
++        },
++        /**
++        * @method isActive
++        * @description Returns true or false if a resize operation is currently active on the element.
++        * @return {Boolean}
++        */      
++        isActive: function() {
++            return ((this._active) ? true : false);
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create a resizable element.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the utility.
++        */      
++        initAttributes: function(attr) {
++            Resize.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @attribute useShim
++            * @description This setting will be passed to the DragDrop instances on the resize handles and for the draggable property.
++            * This property should be used if you want the resize handles to work over iframe and other elements.
++            * @type Boolean
++            */
++            this.setAttributeConfig('useShim', {
++                value: ((attr.useShim === true) ? true : false),
++                validator: YAHOO.lang.isBoolean,
++                method: function(u) {
++                    for (var i in this._dds) {
++                        if (Lang.hasOwnProperty(this._dds, i)) {
++                            this._dds[i].useShim = u;
++                        }
++                    }
++                    if (this.dd) {
++                        this.dd.useShim = u;
++                    }
++                }
++            });
++            /**
++            * @attribute setSize
++            * @description Set the size of the resized element, if set to false the element will not be auto resized,
++            * the resize event will contain the dimensions so the end user can resize it on their own.
++            * This setting will only work with proxy set to true and animate set to false.
++            * @type Boolean
++            */
++            this.setAttributeConfig('setSize', {
++                value: ((attr.setSize === false) ? false : true),
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute wrap
++            * @description Should we wrap the element
++            * @type Boolean
++            */
++            this.setAttributeConfig('wrap', {
++                writeOnce: true,
++                validator: YAHOO.lang.isBoolean,
++                value: attr.wrap || false
++            });
++
++            /**
++            * @attribute handles
++            * @description The handles to use (any combination of): 't', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'. Defaults to: ['r', 'b', 'br'].
++            * Can use a shortcut of All. Note: 8 way resizing should be done on an element that is absolutely positioned.
++            * @type Array
++            */
++            this.setAttributeConfig('handles', {
++                writeOnce: true,
++                value: attr.handles || ['r', 'b', 'br'],
++                validator: function(handles) {
++                    if (Lang.isString(handles) && handles.toLowerCase() == 'all') {
++                        handles = ['t', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'];
++                    }
++                    if (!Lang.isArray(handles)) {
++                        handles = handles.replace(/, /g, ',');
++                        handles = handles.split(',');
++                    }
++                    this._configs.handles.value = handles;
++                }
++            });
++
++            /**
++            * @attribute width
++            * @description The width of the element
++            * @type Number
++            */
++            this.setAttributeConfig('width', {
++                value: attr.width || parseInt(this.getStyle('width'), 10),
++                validator: YAHOO.lang.isNumber,
++                method: function(width) {
++                    width = parseInt(width, 10);
++                    if (width > 0) {
++                        if (this.get('setSize')) {
++                            this.setStyle('width', width + 'px');
++                        }
++                        this._cache.width = width;
++                        this._configs.width.value = width;
++                    }
++                }
++            });
++
++            /**
++            * @attribute height
++            * @description The height of the element
++            * @type Number
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || parseInt(this.getStyle('height'), 10),
++                validator: YAHOO.lang.isNumber,
++                method: function(height) {
++                    height = parseInt(height, 10);
++                    if (height > 0) {
++                        if (this.get('setSize')) {
++                            this.setStyle('height', height + 'px');
++                        }
++                        this._cache.height = height;
++                        this._configs.height.value = height;
++                    }
++                }
++            });
++
++            /**
++            * @attribute minWidth
++            * @description The minimum width of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                value: attr.minWidth || 15,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minHeight
++            * @description The minimum height of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                value: attr.minHeight || 15,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxWidth
++            * @description The maximum width of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxWidth', {
++                value: attr.maxWidth || 10000,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxHeight
++            * @description The maximum height of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxHeight', {
++                value: attr.maxHeight || 10000,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minY
++            * @description The minimum y coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minY', {
++                value: attr.minY || false
++            });
++
++            /**
++            * @attribute minX
++            * @description The minimum x coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minX', {
++                value: attr.minX || false
++            });
++            /**
++            * @attribute maxY
++            * @description The max y coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxY', {
++                value: attr.maxY || false
++            });
++
++            /**
++            * @attribute maxX
++            * @description The max x coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxX', {
++                value: attr.maxX || false
++            });
++
++            /**
++            * @attribute animate
++            * @description Should be use animation to resize the element (can only be used if we use proxy).
++            * @type Boolean
++            */
++            this.setAttributeConfig('animate', {
++                value: attr.animate || false,
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.Anim) {
++                        ret = false;
++                    }
++                    return ret;
++                }               
++            });
++
++            /**
++            * @attribute animateEasing
++            * @description The Easing to apply to the animation.
++            * @type Object
++            */
++            this.setAttributeConfig('animateEasing', {
++                value: attr.animateEasing || function() {
++                    var easing = false;
++                    if (YAHOO.util.Easing && YAHOO.util.Easing.easeOut) {
++                        easing = YAHOO.util.Easing.easeOut;
++                    }
++                    return easing;
++                }()
++            });
++
++            /**
++            * @attribute animateDuration
++            * @description The Duration to apply to the animation.
++            * @type Number
++            */
++            this.setAttributeConfig('animateDuration', {
++                value: attr.animateDuration || 0.5
++            });
++
++            /**
++            * @attribute proxy
++            * @description Resize a proxy element instead of the real element.
++            * @type Boolean
++            */
++            this.setAttributeConfig('proxy', {
++                value: attr.proxy || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute ratio
++            * @description Maintain the element's ratio when resizing.
++            * @type Boolean
++            */
++            this.setAttributeConfig('ratio', {
++                value: attr.ratio || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute ghost
++            * @description Apply an opacity filter to the element being resized (only works with proxy).
++            * @type Boolean
++            */
++            this.setAttributeConfig('ghost', {
++                value: attr.ghost || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute draggable
++            * @description A convienence method to make the element draggable
++            * @type Boolean
++            */
++            this.setAttributeConfig('draggable', {
++                value: attr.draggable || false,
++                validator: YAHOO.lang.isBoolean,
++                method: function(dd) {
++                    if (dd && this._wrap) {
++                        this._setupDragDrop();
++                    } else {
++                        if (this.dd) {
++                            D.removeClass(this._wrap, this.CSS_DRAG);
++                            this.dd.unreg();
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute hover
++            * @description Only show the handles when they are being moused over.
++            * @type Boolean
++            */
++            this.setAttributeConfig('hover', {
++                value: attr.hover || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute hiddenHandles
++            * @description Don't show the handles, just use the cursor to the user.
++            * @type Boolean
++            */
++            this.setAttributeConfig('hiddenHandles', {
++                value: attr.hiddenHandles || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute knobHandles
++            * @description Use the smaller handles, instead if the full size handles.
++            * @type Boolean
++            */
++            this.setAttributeConfig('knobHandles', {
++                value: attr.knobHandles || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute xTicks
++            * @description The number of x ticks to span the resize to.
++            * @type Number or False
++            */
++            this.setAttributeConfig('xTicks', {
++                value: attr.xTicks || false
++            });
++
++            /**
++            * @attribute yTicks
++            * @description The number of y ticks to span the resize to.
++            * @type Number or False
++            */
++            this.setAttributeConfig('yTicks', {
++                value: attr.yTicks || false
++            });
++
++            /**
++            * @attribute status
++            * @description Show the status (new size) of the resize.
++            * @type Boolean
++            */
++            this.setAttributeConfig('status', {
++                value: attr.status || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute autoRatio
++            * @description Using the shift key during a resize will toggle the ratio config.
++            * @type Boolean
++            */
++            this.setAttributeConfig('autoRatio', {
++                value: attr.autoRatio || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++        },
++        /**
++        * @method destroy
++        * @description Destroys the resize object and all of it's elements & listeners.
++        */        
++        destroy: function() {
++            YAHOO.log('Destroying Resize', 'info', 'Resize');
++            for (var h in this._handles) {
++                if (Lang.hasOwnProperty(this._handles, h)) {
++                    Event.purgeElement(this._handles[h]);
++                    this._handles[h].parentNode.removeChild(this._handles[h]);
++                }
++            }
++            if (this._proxy) {
++                this._proxy.parentNode.removeChild(this._proxy);
++            }
++            if (this._status) {
++                this._status.parentNode.removeChild(this._status);
++            }
++            if (this.dd) {
++                this.dd.unreg();
++                D.removeClass(this._wrap, this.CSS_DRAG);
++            }
++            if (this._wrap != this.get('element')) {
++                this.setStyle('position', '');
++                this.setStyle('top', '');
++                this.setStyle('left', '');
++                this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
++            }
++            this.removeClass(this.CSS_RESIZE);
++
++            delete YAHOO.util.Resize._instances[this.get('id')];
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                    delete this[i];
++                }
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the Resize Object.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'Resize (#' + this.get('id') + ')';
++            }
++            return 'Resize Utility';
++        }
++    });
++
++    YAHOO.util.Resize = Resize;
++ 
++/**
++* @event dragEvent
++* @description Fires when the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> dragEvent is fired for the config option draggable.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event startResize
++* @description Fires when a resize action is started.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event endResize
++* @description Fires when the mouseUp event from the Drag Instance fires.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event resize
++* @description Fires on every element resize (only fires once when used with proxy config setting).
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeResize
++* @description Fires before every element resize after the size calculations, returning false will stop the resize.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event proxyResize
++* @description Fires on every proxy resize (only fires when used with proxy config setting).
++* @type YAHOO.util.CustomEvent
++*/
++
++})();
++
++YAHOO.register("resize", YAHOO.util.Resize, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/resize/resize-min.js b/pylons_app/public/js/yui/resize/resize-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/resize/resize-min.js
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var E=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.lang;var B=function(F,D){var G={element:F,attributes:D||{}};B.superclass.constructor.call(this,G.element,G.attributes);};B._instances={};B.getResizeById=function(D){if(B._instances[D]){return B._instances[D];}return false;};YAHOO.extend(B,YAHOO.util.Element,{CSS_RESIZE:"yui-resize",CSS_DRAG:"yui-draggable",CSS_HOVER:"yui-resize-hover",CSS_PROXY:"yui-resize-proxy",CSS_WRAP:"yui-resize-wrap",CSS_KNOB:"yui-resize-knob",CSS_HIDDEN:"yui-resize-hidden",CSS_HANDLE:"yui-resize-handle",CSS_STATUS:"yui-resize-status",CSS_GHOST:"yui-resize-ghost",CSS_RESIZING:"yui-resize-resizing",_resizeEvent:null,dd:null,browser:YAHOO.env.ua,_locked:null,_positioned:null,_dds:null,_wrap:null,_proxy:null,_handles:null,_currentHandle:null,_currentDD:null,_cache:null,_active:null,_createProxy:function(){if(this.get("proxy")){this._proxy=document.createElement("div");this._proxy.className=this.CSS_PROXY;this._proxy.style.height=this.get("element").clientHeight+"px";this._proxy.style.width=this.get("element").clientWidth+"px";this._wrap.parentNode.appendChild(this._proxy);}else{this.set("animate",false);}},_createWrap:function(){this._positioned=false;if(this.get("wrap")===false){switch(this.get("element").tagName.toLowerCase()){case"img":case"textarea":case"input":case"iframe":case"select":this.set("wrap",true);break;}}if(this.get("wrap")===true){this._wrap=document.createElement("div");this._wrap.id=this.get("element").id+"_wrap";this._wrap.className=this.CSS_WRAP;if(this.get("element").tagName.toLowerCase()=="textarea"){E.addClass(this._wrap,"yui-resize-textarea");}E.setStyle(this._wrap,"width",this.get("width")+"px");E.setStyle(this._wrap,"height",this.get("height")+"px");E.setStyle(this._wrap,"z-index",this.getStyle("z-index"));this.setStyle("z-index",0);var F=E.getStyle(this.get("element"),"position");E.setStyle(this._wrap,"position",((F=="static")?"relative":F));E.setStyle(this._wrap,"top",E.getStyle(this.get("element"),"top"));E.setStyle(this._wrap,"left",E.getStyle(this.get("element"),"left"));if(E.getStyle(this.get("element"),"position")=="absolute"){this._positioned=true;E.setStyle(this.get("element"),"position","relative");E.setStyle(this.get("element"),"top","0");E.setStyle(this.get("element"),"left","0");}var D=this.get("element").parentNode;D.replaceChild(this._wrap,this.get("element"));this._wrap.appendChild(this.get("element"));}else{this._wrap=this.get("element");if(E.getStyle(this._wrap,"position")=="absolute"){this._positioned=true;}}if(this.get("draggable")){this._setupDragDrop();}if(this.get("hover")){E.addClass(this._wrap,this.CSS_HOVER);}if(this.get("knobHandles")){E.addClass(this._wrap,this.CSS_KNOB);}if(this.get("hiddenHandles")){E.addClass(this._wrap,this.CSS_HIDDEN);}E.addClass(this._wrap,this.CSS_RESIZE);},_setupDragDrop:function(){E.addClass(this._wrap,this.CSS_DRAG);this.dd=new YAHOO.util.DD(this._wrap,this.get("id")+"-resize",{dragOnly:true,useShim:this.get("useShim")});this.dd.on("dragEvent",function(){this.fireEvent("dragEvent",arguments);},this,true);},_createHandles:function(){this._handles={};this._dds={};var G=this.get("handles");for(var F=0;F<G.length;F++){this._handles[G[F]]=document.createElement("div");this._handles[G[F]].id=E.generateId(this._handles[G[F]]);this._handles[G[F]].className=this.CSS_HANDLE+" "+this.CSS_HANDLE+"-"+G[F];var D=document.createElement("div");D.className=this.CSS_HANDLE+"-inner-"+G[F];this._handles[G[F]].appendChild(D);this._wrap.appendChild(this._handles[G[F]]);A.on(this._handles[G[F]],"mouseover",this._handleMouseOver,this,true);A.on(this._handles[G[F]],"mouseout",this._handleMouseOut,this,true);this._dds[G[F]]=new YAHOO.util.DragDrop(this._handles[G[F]],this.get("id")+"-handle-"+G,{useShim:this.get("useShim")});this._dds[G[F]].setPadding(15,15,15,15);this._dds[G[F]].on("startDragEvent",this._handleStartDrag,this._dds[G[F]],this);this._dds[G[F]].on("mouseDownEvent",this._handleMouseDown,this._dds[G[F]],this);}this._status=document.createElement("span");this._status.className=this.CSS_STATUS;document.body.insertBefore(this._status,document.body.firstChild);},_ieSelectFix:function(){return false;},_ieSelectBack:null,_setAutoRatio:function(D){if(this.get("autoRatio")){if(D&&D.shiftKey){this.set("ratio",true);}else{this.set("ratio",this._configs.ratio._initialConfig.value);}}},_handleMouseDown:function(D){if(this._locked){return false;}if(E.getStyle(this._wrap,"position")=="absolute"){this._positioned=true;}if(D){this._setAutoRatio(D);}if(this.browser.ie){this._ieSelectBack=document.body.onselectstart;document.body.onselectstart=this._ieSelectFix;}},_handleMouseOver:function(G){if(this._locked){return false;}E.removeClass(this._wrap,this.CSS_RESIZE);if(this.get("hover")){E.removeClass(this._wrap,this.CSS_HOVER);}var D=A.getTarget(G);if(!E.hasClass(D,this.CSS_HANDLE)){D=D.parentNode;}if(E.hasClass(D,this.CSS_HANDLE)&&!this._active){E.addClass(D,this.CSS_HANDLE+"-active");for(var F in this._handles){if(C.hasOwnProperty(this._handles,F)){if(this._handles[F]==D){E.addClass(D,this.CSS_HANDLE+"-"+F+"-active");break;}}}}E.addClass(this._wrap,this.CSS_RESIZE);},_handleMouseOut:function(G){E.removeClass(this._wrap,this.CSS_RESIZE);if(this.get("hover")&&!this._active){E.addClass(this._wrap,this.CSS_HOVER);}var D=A.getTarget(G);if(!E.hasClass(D,this.CSS_HANDLE)){D=D.parentNode;}if(E.hasClass(D,this.CSS_HANDLE)&&!this._active){E.removeClass(D,this.CSS_HANDLE+"-active");for(var F in this._handles){if(C.hasOwnProperty(this._handles,F)){if(this._handles[F]==D){E.removeClass(D,this.CSS_HANDLE+"-"+F+"-active");break;}}}}E.addClass(this._wrap,this.CSS_RESIZE);},_handleStartDrag:function(G,F){var D=F.getDragEl();if(E.hasClass(D,this.CSS_HANDLE)){if(E.getStyle(this._wrap,"position")=="absolute"){this._positioned=true;}this._active=true;this._currentDD=F;if(this._proxy){this._proxy.style.visibility="visible";this._proxy.style.zIndex="1000";this._proxy.style.height=this.get("element").clientHeight+"px";this._proxy.style.width=this.get("element").clientWidth+"px";
++}for(var H in this._handles){if(C.hasOwnProperty(this._handles,H)){if(this._handles[H]==D){this._currentHandle=H;var I="_handle_for_"+H;E.addClass(D,this.CSS_HANDLE+"-"+H+"-active");F.on("dragEvent",this[I],this,true);F.on("mouseUpEvent",this._handleMouseUp,this,true);break;}}}E.addClass(D,this.CSS_HANDLE+"-active");if(this.get("proxy")){var J=E.getXY(this.get("element"));E.setXY(this._proxy,J);if(this.get("ghost")){this.addClass(this.CSS_GHOST);}}E.addClass(this._wrap,this.CSS_RESIZING);this._setCache();this._updateStatus(this._cache.height,this._cache.width,this._cache.top,this._cache.left);this.fireEvent("startResize",{type:"startresize",target:this});}},_setCache:function(){this._cache.xy=E.getXY(this._wrap);E.setXY(this._wrap,this._cache.xy);this._cache.height=this.get("clientHeight");this._cache.width=this.get("clientWidth");this._cache.start.height=this._cache.height;this._cache.start.width=this._cache.width;this._cache.start.top=this._cache.xy[1];this._cache.start.left=this._cache.xy[0];this._cache.top=this._cache.xy[1];this._cache.left=this._cache.xy[0];this.set("height",this._cache.height,true);this.set("width",this._cache.width,true);},_handleMouseUp:function(F){this._active=false;var G="_handle_for_"+this._currentHandle;this._currentDD.unsubscribe("dragEvent",this[G],this,true);this._currentDD.unsubscribe("mouseUpEvent",this._handleMouseUp,this,true);if(this._proxy){this._proxy.style.visibility="hidden";this._proxy.style.zIndex="-1";if(this.get("setSize")){this.resize(F,this._cache.height,this._cache.width,this._cache.top,this._cache.left,true);}else{this.fireEvent("resize",{ev:"resize",target:this,height:this._cache.height,width:this._cache.width,top:this._cache.top,left:this._cache.left});}if(this.get("ghost")){this.removeClass(this.CSS_GHOST);}}if(this.get("hover")){E.addClass(this._wrap,this.CSS_HOVER);}if(this._status){E.setStyle(this._status,"display","none");}if(this.browser.ie){document.body.onselectstart=this._ieSelectBack;}if(this.browser.ie){E.removeClass(this._wrap,this.CSS_RESIZE);}for(var D in this._handles){if(C.hasOwnProperty(this._handles,D)){E.removeClass(this._handles[D],this.CSS_HANDLE+"-active");}}if(this.get("hover")&&!this._active){E.addClass(this._wrap,this.CSS_HOVER);}E.removeClass(this._wrap,this.CSS_RESIZING);E.removeClass(this._handles[this._currentHandle],this.CSS_HANDLE+"-"+this._currentHandle+"-active");E.removeClass(this._handles[this._currentHandle],this.CSS_HANDLE+"-active");if(this.browser.ie){E.addClass(this._wrap,this.CSS_RESIZE);}this._resizeEvent=null;this._currentHandle=null;if(!this.get("animate")){this.set("height",this._cache.height,true);this.set("width",this._cache.width,true);}this.fireEvent("endResize",{ev:"endResize",target:this,height:this._cache.height,width:this._cache.width,top:this._cache.top,left:this._cache.left});},_setRatio:function(K,N,Q,I){var O=K,G=N;if(this.get("ratio")){var P=this._cache.height,H=this._cache.width,F=parseInt(this.get("height"),10),L=parseInt(this.get("width"),10),M=this.get("maxHeight"),R=this.get("minHeight"),D=this.get("maxWidth"),J=this.get("minWidth");switch(this._currentHandle){case"l":K=F*(N/L);K=Math.min(Math.max(R,K),M);N=L*(K/F);Q=(this._cache.start.top-(-((F-K)/2)));I=(this._cache.start.left-(-((L-N))));break;case"r":K=F*(N/L);K=Math.min(Math.max(R,K),M);N=L*(K/F);Q=(this._cache.start.top-(-((F-K)/2)));break;case"t":N=L*(K/F);K=F*(N/L);I=(this._cache.start.left-(-((L-N)/2)));Q=(this._cache.start.top-(-((F-K))));break;case"b":N=L*(K/F);K=F*(N/L);I=(this._cache.start.left-(-((L-N)/2)));break;case"bl":K=F*(N/L);N=L*(K/F);I=(this._cache.start.left-(-((L-N))));break;case"br":K=F*(N/L);N=L*(K/F);break;case"tl":K=F*(N/L);N=L*(K/F);I=(this._cache.start.left-(-((L-N))));Q=(this._cache.start.top-(-((F-K))));break;case"tr":K=F*(N/L);N=L*(K/F);I=(this._cache.start.left);Q=(this._cache.start.top-(-((F-K))));break;}O=this._checkHeight(K);G=this._checkWidth(N);if((O!=K)||(G!=N)){Q=0;I=0;if(O!=K){G=this._cache.width;}if(G!=N){O=this._cache.height;}}}return[O,G,Q,I];},_updateStatus:function(K,G,J,F){if(this._resizeEvent&&(!C.isString(this._resizeEvent))){K=((K===0)?this._cache.start.height:K);G=((G===0)?this._cache.start.width:G);var I=parseInt(this.get("height"),10),D=parseInt(this.get("width"),10);if(isNaN(I)){I=parseInt(K,10);}if(isNaN(D)){D=parseInt(G,10);}var L=(parseInt(K,10)-I);var H=(parseInt(G,10)-D);this._cache.offsetHeight=L;this._cache.offsetWidth=H;if(this.get("status")){E.setStyle(this._status,"display","inline");this._status.innerHTML="<strong>"+parseInt(K,10)+" x "+parseInt(G,10)+"</strong><em>"+((L>0)?"+":"")+L+" x "+((H>0)?"+":"")+H+"</em>";E.setXY(this._status,[A.getPageX(this._resizeEvent)+12,A.getPageY(this._resizeEvent)+12]);}}},lock:function(D){this._locked=true;if(D&&this.dd){E.removeClass(this._wrap,"yui-draggable");this.dd.lock();}return this;},unlock:function(D){this._locked=false;if(D&&this.dd){E.addClass(this._wrap,"yui-draggable");this.dd.unlock();}return this;},isLocked:function(){return this._locked;},reset:function(){this.resize(null,this._cache.start.height,this._cache.start.width,this._cache.start.top,this._cache.start.left,true);return this;},resize:function(M,J,P,Q,H,F,K){if(this._locked){return false;}this._resizeEvent=M;var G=this._wrap,I=this.get("animate"),O=true;if(this._proxy&&!F){G=this._proxy;I=false;}this._setAutoRatio(M);if(this._positioned){if(this._proxy){Q=this._cache.top-Q;H=this._cache.left-H;}}var L=this._setRatio(J,P,Q,H);J=parseInt(L[0],10);P=parseInt(L[1],10);Q=parseInt(L[2],10);H=parseInt(L[3],10);if(Q==0){Q=E.getY(G);}if(H==0){H=E.getX(G);}if(this._positioned){if(this._proxy&&F){if(!I){G.style.top=this._proxy.style.top;G.style.left=this._proxy.style.left;}else{Q=this._proxy.style.top;H=this._proxy.style.left;}}else{if(!this.get("ratio")&&!this._proxy){Q=this._cache.top+-(Q);H=this._cache.left+-(H);}if(Q){if(this.get("minY")){if(Q<this.get("minY")){Q=this.get("minY");}}if(this.get("maxY")){if(Q>this.get("maxY")){Q=this.get("maxY");}}}if(H){if(this.get("minX")){if(H<this.get("minX")){H=this.get("minX");
++}}if(this.get("maxX")){if((H+P)>this.get("maxX")){H=(this.get("maxX")-P);}}}}}if(!K){var N=this.fireEvent("beforeResize",{ev:"beforeResize",target:this,height:J,width:P,top:Q,left:H});if(N===false){return false;}}this._updateStatus(J,P,Q,H);if(this._positioned){if(this._proxy&&F){}else{if(Q){E.setY(G,Q);this._cache.top=Q;}if(H){E.setX(G,H);this._cache.left=H;}}}if(J){if(!I){O=true;if(this._proxy&&F){if(!this.get("setSize")){O=false;}}if(O){G.style.height=J+"px";}if((this._proxy&&F)||!this._proxy){if(this._wrap!=this.get("element")){this.get("element").style.height=J+"px";}}}this._cache.height=J;}if(P){this._cache.width=P;if(!I){O=true;if(this._proxy&&F){if(!this.get("setSize")){O=false;}}if(O){G.style.width=P+"px";}if((this._proxy&&F)||!this._proxy){if(this._wrap!=this.get("element")){this.get("element").style.width=P+"px";}}}}if(I){if(YAHOO.util.Anim){var D=new YAHOO.util.Anim(G,{height:{to:this._cache.height},width:{to:this._cache.width}},this.get("animateDuration"),this.get("animateEasing"));if(this._positioned){if(Q){D.attributes.top={to:parseInt(Q,10)};}if(H){D.attributes.left={to:parseInt(H,10)};}}if(this._wrap!=this.get("element")){D.onTween.subscribe(function(){this.get("element").style.height=G.style.height;this.get("element").style.width=G.style.width;},this,true);}D.onComplete.subscribe(function(){this.set("height",J);this.set("width",P);this.fireEvent("resize",{ev:"resize",target:this,height:J,width:P,top:Q,left:H});},this,true);D.animate();}}else{if(this._proxy&&!F){this.fireEvent("proxyResize",{ev:"proxyresize",target:this,height:J,width:P,top:Q,left:H});}else{this.fireEvent("resize",{ev:"resize",target:this,height:J,width:P,top:Q,left:H});}}return this;},_handle_for_br:function(F){var G=this._setWidth(F.e);var D=this._setHeight(F.e);this.resize(F.e,D,G,0,0);},_handle_for_bl:function(G){var H=this._setWidth(G.e,true);var F=this._setHeight(G.e);var D=(H-this._cache.width);this.resize(G.e,F,H,0,D);},_handle_for_tl:function(G){var I=this._setWidth(G.e,true);var F=this._setHeight(G.e,true);var H=(F-this._cache.height);var D=(I-this._cache.width);this.resize(G.e,F,I,H,D);},_handle_for_tr:function(F){var H=this._setWidth(F.e);var D=this._setHeight(F.e,true);var G=(D-this._cache.height);this.resize(F.e,D,H,G,0);},_handle_for_r:function(D){this._dds.r.setYConstraint(0,0);var F=this._setWidth(D.e);this.resize(D.e,0,F,0,0);},_handle_for_l:function(F){this._dds.l.setYConstraint(0,0);var G=this._setWidth(F.e,true);var D=(G-this._cache.width);this.resize(F.e,0,G,0,D);},_handle_for_b:function(F){this._dds.b.setXConstraint(0,0);var D=this._setHeight(F.e);this.resize(F.e,D,0,0,0);},_handle_for_t:function(F){this._dds.t.setXConstraint(0,0);var D=this._setHeight(F.e,true);var G=(D-this._cache.height);this.resize(F.e,D,0,G,0);},_setWidth:function(H,J){var I=this._cache.xy[0],G=this._cache.width,D=A.getPageX(H),F=(D-I);if(J){F=(I-D)+parseInt(this.get("width"),10);}F=this._snapTick(F,this.get("xTicks"));F=this._checkWidth(F);return F;},_checkWidth:function(D){if(this.get("minWidth")){if(D<=this.get("minWidth")){D=this.get("minWidth");}}if(this.get("maxWidth")){if(D>=this.get("maxWidth")){D=this.get("maxWidth");}}return D;},_checkHeight:function(D){if(this.get("minHeight")){if(D<=this.get("minHeight")){D=this.get("minHeight");}}if(this.get("maxHeight")){if(D>=this.get("maxHeight")){D=this.get("maxHeight");}}return D;},_setHeight:function(G,I){var H=this._cache.xy[1],F=this._cache.height,J=A.getPageY(G),D=(J-H);if(I){D=(H-J)+parseInt(this.get("height"),10);}D=this._snapTick(D,this.get("yTicks"));D=this._checkHeight(D);return D;},_snapTick:function(G,F){if(!G||!F){return G;}var H=G;var D=G%F;if(D>0){if(D>(F/2)){H=G+(F-D);}else{H=G-D;}}return H;},init:function(H,F){this._locked=false;this._cache={xy:[],height:0,width:0,top:0,left:0,offsetHeight:0,offsetWidth:0,start:{height:0,width:0,top:0,left:0}};B.superclass.init.call(this,H,F);this.set("setSize",this.get("setSize"));if(F.height){this.set("height",parseInt(F.height,10));}else{var G=this.getStyle("height");if(G=="auto"){this.set("height",parseInt(this.get("element").offsetHeight,10));}}if(F.width){this.set("width",parseInt(F.width,10));}else{var D=this.getStyle("width");if(D=="auto"){this.set("width",parseInt(this.get("element").offsetWidth,10));}}var I=H;if(!C.isString(I)){I=E.generateId(I);}B._instances[I]=this;this._active=false;this._createWrap();this._createProxy();this._createHandles();},getProxyEl:function(){return this._proxy;},getWrapEl:function(){return this._wrap;},getStatusEl:function(){return this._status;},getActiveHandleEl:function(){return this._handles[this._currentHandle];},isActive:function(){return((this._active)?true:false);},initAttributes:function(D){B.superclass.initAttributes.call(this,D);this.setAttributeConfig("useShim",{value:((D.useShim===true)?true:false),validator:YAHOO.lang.isBoolean,method:function(F){for(var G in this._dds){if(C.hasOwnProperty(this._dds,G)){this._dds[G].useShim=F;}}if(this.dd){this.dd.useShim=F;}}});this.setAttributeConfig("setSize",{value:((D.setSize===false)?false:true),validator:YAHOO.lang.isBoolean});this.setAttributeConfig("wrap",{writeOnce:true,validator:YAHOO.lang.isBoolean,value:D.wrap||false});this.setAttributeConfig("handles",{writeOnce:true,value:D.handles||["r","b","br"],validator:function(F){if(C.isString(F)&&F.toLowerCase()=="all"){F=["t","b","r","l","bl","br","tl","tr"];}if(!C.isArray(F)){F=F.replace(/, /g,",");F=F.split(",");}this._configs.handles.value=F;}});this.setAttributeConfig("width",{value:D.width||parseInt(this.getStyle("width"),10),validator:YAHOO.lang.isNumber,method:function(F){F=parseInt(F,10);if(F>0){if(this.get("setSize")){this.setStyle("width",F+"px");}this._cache.width=F;this._configs.width.value=F;}}});this.setAttributeConfig("height",{value:D.height||parseInt(this.getStyle("height"),10),validator:YAHOO.lang.isNumber,method:function(F){F=parseInt(F,10);if(F>0){if(this.get("setSize")){this.setStyle("height",F+"px");}this._cache.height=F;this._configs.height.value=F;
++}}});this.setAttributeConfig("minWidth",{value:D.minWidth||15,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minHeight",{value:D.minHeight||15,validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxWidth",{value:D.maxWidth||10000,validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxHeight",{value:D.maxHeight||10000,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minY",{value:D.minY||false});this.setAttributeConfig("minX",{value:D.minX||false});this.setAttributeConfig("maxY",{value:D.maxY||false});this.setAttributeConfig("maxX",{value:D.maxX||false});this.setAttributeConfig("animate",{value:D.animate||false,validator:function(G){var F=true;if(!YAHOO.util.Anim){F=false;}return F;}});this.setAttributeConfig("animateEasing",{value:D.animateEasing||function(){var F=false;if(YAHOO.util.Easing&&YAHOO.util.Easing.easeOut){F=YAHOO.util.Easing.easeOut;}return F;}()});this.setAttributeConfig("animateDuration",{value:D.animateDuration||0.5});this.setAttributeConfig("proxy",{value:D.proxy||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("ratio",{value:D.ratio||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("ghost",{value:D.ghost||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("draggable",{value:D.draggable||false,validator:YAHOO.lang.isBoolean,method:function(F){if(F&&this._wrap){this._setupDragDrop();}else{if(this.dd){E.removeClass(this._wrap,this.CSS_DRAG);this.dd.unreg();}}}});this.setAttributeConfig("hover",{value:D.hover||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("hiddenHandles",{value:D.hiddenHandles||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("knobHandles",{value:D.knobHandles||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("xTicks",{value:D.xTicks||false});this.setAttributeConfig("yTicks",{value:D.yTicks||false});this.setAttributeConfig("status",{value:D.status||false,validator:YAHOO.lang.isBoolean});this.setAttributeConfig("autoRatio",{value:D.autoRatio||false,validator:YAHOO.lang.isBoolean});},destroy:function(){for(var F in this._handles){if(C.hasOwnProperty(this._handles,F)){A.purgeElement(this._handles[F]);this._handles[F].parentNode.removeChild(this._handles[F]);}}if(this._proxy){this._proxy.parentNode.removeChild(this._proxy);}if(this._status){this._status.parentNode.removeChild(this._status);}if(this.dd){this.dd.unreg();E.removeClass(this._wrap,this.CSS_DRAG);}if(this._wrap!=this.get("element")){this.setStyle("position","");this.setStyle("top","");this.setStyle("left","");this._wrap.parentNode.replaceChild(this.get("element"),this._wrap);}this.removeClass(this.CSS_RESIZE);delete YAHOO.util.Resize._instances[this.get("id")];for(var D in this){if(C.hasOwnProperty(this,D)){this[D]=null;delete this[D];}}},toString:function(){if(this.get){return"Resize (#"+this.get("id")+")";}return"Resize Utility";}});YAHOO.util.Resize=B;})();YAHOO.register("resize",YAHOO.util.Resize,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/resize/resize.js b/pylons_app/public/js/yui/resize/resize.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/resize/resize.js
+@@ -0,0 +1,1689 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * @description <p>Makes an element resizable</p>
++ * @namespace YAHOO.util
++ * @requires yahoo, dom, dragdrop, element, event
++ * @optional animation
++ * @module resize
++ */
++(function() {
++var D = YAHOO.util.Dom,
++    Event = YAHOO.util.Event,
++    Lang = YAHOO.lang;
++
++    /**
++     * @constructor
++     * @class Resize
++     * @extends YAHOO.util.Element
++     * @description <p>Makes an element resizable</p>
++     * @param {String/HTMLElement} el The element to make resizable.
++     * @param {Object} attrs Object liternal containing configuration parameters.
++    */
++
++    var Resize = function(el, config) {
++        var oConfig = {
++            element: el,
++            attributes: config || {}
++        };
++
++        Resize.superclass.constructor.call(this, oConfig.element, oConfig.attributes);    
++    };
++
++    /**
++    * @private
++    * @static
++    * @property _instances
++    * @description Internal hash table for all resize instances
++    * @type Object
++    */ 
++    Resize._instances = {};
++    /**
++    * @static
++    * @method getResizeById 
++    * @description Get's a resize object by the HTML id of the element associated with the Resize object.
++    * @return {Object} The Resize Object
++    */ 
++    Resize.getResizeById = function(id) {
++        if (Resize._instances[id]) {
++            return Resize._instances[id];
++        }
++        return false;
++    };
++
++    YAHOO.extend(Resize, YAHOO.util.Element, {
++        /**
++        * @private
++        * @property CSS_RESIZE
++        * @description Base CSS class name
++        * @type String
++        */ 
++        CSS_RESIZE: 'yui-resize',
++        /**
++        * @private
++        * @property CSS_DRAG
++        * @description Class name added when dragging is enabled
++        * @type String
++        */ 
++        CSS_DRAG: 'yui-draggable',
++        /**
++        * @private
++        * @property CSS_HOVER
++        * @description Class name used for hover only handles
++        * @type String
++        */ 
++        CSS_HOVER: 'yui-resize-hover',
++        /**
++        * @private
++        * @property CSS_PROXY
++        * @description Class name given to the proxy element
++        * @type String
++        */ 
++        CSS_PROXY: 'yui-resize-proxy',
++        /**
++        * @private
++        * @property CSS_WRAP
++        * @description Class name given to the wrap element
++        * @type String
++        */ 
++        CSS_WRAP: 'yui-resize-wrap',
++        /**
++        * @private
++        * @property CSS_KNOB
++        * @description Class name used to make the knob style handles
++        * @type String
++        */ 
++        CSS_KNOB: 'yui-resize-knob',
++        /**
++        * @private
++        * @property CSS_HIDDEN
++        * @description Class name given to the wrap element to make all handles hidden
++        * @type String
++        */ 
++        CSS_HIDDEN: 'yui-resize-hidden',
++        /**
++        * @private
++        * @property CSS_HANDLE
++        * @description Class name given to all handles, used as a base for single handle names as well.. Handle "t" will get this.CSS_HANDLE + '-t' as well as this.CSS_HANDLE
++        * @type String
++        */ 
++        CSS_HANDLE: 'yui-resize-handle',
++        /**
++        * @private
++        * @property CSS_STATUS
++        * @description Class name given to the status element
++        * @type String
++        */ 
++        CSS_STATUS: 'yui-resize-status',
++        /**
++        * @private
++        * @property CSS_GHOST
++        * @description Class name given to the wrap element when the ghost property is active
++        * @type String
++        */ 
++        CSS_GHOST: 'yui-resize-ghost',
++        /**
++        * @private
++        * @property CSS_RESIZING
++        * @description Class name given to the wrap element when a resize action is taking place.
++        * @type String
++        */ 
++        CSS_RESIZING: 'yui-resize-resizing',
++        /**
++        * @private
++        * @property _resizeEvent
++        * @description The mouse event used to resize with
++        * @type Event
++        */ 
++        _resizeEvent: null,
++        /**
++        * @private
++        * @property dd
++        * @description The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance used if draggable is true
++        * @type Object
++        */ 
++        dd: null,
++        /** 
++        * @private
++        * @property browser
++        * @description A copy of the YAHOO.env.ua property
++        * @type Object
++        */
++        browser: YAHOO.env.ua,
++        /** 
++        * @private
++        * @property _locked
++        * @description A flag to show if the resize is locked
++        * @type Boolean
++        */
++        _locked: null,
++        /** 
++        * @private
++        * @property _positioned
++        * @description A flag to show if the element is absolutely positioned
++        * @type Boolean
++        */
++        _positioned: null,
++        /** 
++        * @private
++        * @property _dds
++        * @description An Object containing references to all of the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instances used for the resize handles
++        * @type Object
++        */
++        _dds: null,
++        /** 
++        * @private
++        * @property _wrap
++        * @description The HTML reference of the element wrapper
++        * @type HTMLElement
++        */
++        _wrap: null,
++        /** 
++        * @private
++        * @property _proxy
++        * @description The HTML reference of the element proxy
++        * @type HTMLElement
++        */
++        _proxy: null,
++        /** 
++        * @private
++        * @property _handles
++        * @description An object containing references to all of the resize handles.
++        * @type Object
++        */
++        _handles: null,
++        /** 
++        * @private
++        * @property _currentHandle
++        * @description The string identifier of the currently active handle. e.g. 'r', 'br', 'tl'
++        * @type String
++        */
++        _currentHandle: null,
++        /** 
++        * @private
++        * @property _currentDD
++        * @description A link to the currently active DD object
++        * @type Object
++        */
++        _currentDD: null,
++        /** 
++        * @private
++        * @property _cache
++        * @description An lookup table containing key information for the element being resized. e.g. height, width, x position, y position, etc..
++        * @type Object
++        */
++        _cache: null,
++        /** 
++        * @private
++        * @property _active
++        * @description Flag to show if the resize is active. Used for events.
++        * @type Boolean
++        */
++        _active: null,
++        /** 
++        * @private
++        * @method _createProxy
++        * @description Creates the proxy element if the proxy config is true
++        */
++        _createProxy: function() {
++            if (this.get('proxy')) {
++                this._proxy = document.createElement('div');
++                this._proxy.className = this.CSS_PROXY;
++                this._proxy.style.height = this.get('element').clientHeight + 'px';
++                this._proxy.style.width = this.get('element').clientWidth + 'px';
++                this._wrap.parentNode.appendChild(this._proxy);
++            } else {
++                this.set('animate', false);
++            }
++        },
++        /** 
++        * @private
++        * @method _createWrap
++        * @description Creates the wrap element if the wrap config is true. It will auto wrap the following element types: img, textarea, input, iframe, select
++        */
++        _createWrap: function() {
++            this._positioned = false;
++            //Force wrap for elements that can't have children 
++            if (this.get('wrap') === false) {
++                switch (this.get('element').tagName.toLowerCase()) {
++                    case 'img':
++                    case 'textarea':
++                    case 'input':
++                    case 'iframe':
++                    case 'select':
++                        this.set('wrap', true);
++                        break;
++                }
++            }
++            if (this.get('wrap') === true) {
++                this._wrap = document.createElement('div');
++                this._wrap.id = this.get('element').id + '_wrap';
++                this._wrap.className = this.CSS_WRAP;
++                if (this.get('element').tagName.toLowerCase() == 'textarea') {
++                    D.addClass(this._wrap, 'yui-resize-textarea');
++                }
++                D.setStyle(this._wrap, 'width', this.get('width') + 'px');
++                D.setStyle(this._wrap, 'height', this.get('height') + 'px');
++                D.setStyle(this._wrap, 'z-index', this.getStyle('z-index'));
++                this.setStyle('z-index', 0);
++                var pos = D.getStyle(this.get('element'), 'position');
++                D.setStyle(this._wrap, 'position', ((pos == 'static') ? 'relative' : pos));
++                D.setStyle(this._wrap, 'top', D.getStyle(this.get('element'), 'top'));
++                D.setStyle(this._wrap, 'left', D.getStyle(this.get('element'), 'left'));
++                if (D.getStyle(this.get('element'), 'position') == 'absolute') {
++                    this._positioned = true;
++                    D.setStyle(this.get('element'), 'position', 'relative');
++                    D.setStyle(this.get('element'), 'top', '0');
++                    D.setStyle(this.get('element'), 'left', '0');
++                }
++                var par = this.get('element').parentNode;
++                par.replaceChild(this._wrap, this.get('element'));
++                this._wrap.appendChild(this.get('element'));
++            } else {
++                this._wrap = this.get('element');
++                if (D.getStyle(this._wrap, 'position') == 'absolute') {
++                    this._positioned = true;
++                }
++            }
++            if (this.get('draggable')) {
++                this._setupDragDrop();
++            }
++            if (this.get('hover')) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            if (this.get('knobHandles')) {
++                D.addClass(this._wrap, this.CSS_KNOB);
++            }
++            if (this.get('hiddenHandles')) {
++                D.addClass(this._wrap, this.CSS_HIDDEN);
++            }
++            D.addClass(this._wrap, this.CSS_RESIZE);
++        },
++        /** 
++        * @private
++        * @method _setupDragDrop
++        * @description Setup the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> instance on the element
++        */
++        _setupDragDrop: function() {
++            D.addClass(this._wrap, this.CSS_DRAG);
++            this.dd = new YAHOO.util.DD(this._wrap, this.get('id') + '-resize', { dragOnly: true, useShim: this.get('useShim') });
++            this.dd.on('dragEvent', function() {
++                this.fireEvent('dragEvent', arguments);
++            }, this, true);
++        },
++        /** 
++        * @private
++        * @method _createHandles
++        * @description Creates the handles as specified in the config
++        */
++        _createHandles: function() {
++            this._handles = {};
++            this._dds = {};
++            var h = this.get('handles');
++            for (var i = 0; i < h.length; i++) {
++                this._handles[h[i]] = document.createElement('div');
++                this._handles[h[i]].id = D.generateId(this._handles[h[i]]);
++                this._handles[h[i]].className = this.CSS_HANDLE + ' ' + this.CSS_HANDLE + '-' + h[i];
++                var k = document.createElement('div');
++                k.className = this.CSS_HANDLE + '-inner-' + h[i];
++                this._handles[h[i]].appendChild(k);
++                this._wrap.appendChild(this._handles[h[i]]);
++                Event.on(this._handles[h[i]], 'mouseover', this._handleMouseOver, this, true);
++                Event.on(this._handles[h[i]], 'mouseout', this._handleMouseOut, this, true);
++                this._dds[h[i]] = new YAHOO.util.DragDrop(this._handles[h[i]], this.get('id') + '-handle-' + h, { useShim: this.get('useShim') });
++                this._dds[h[i]].setPadding(15, 15, 15, 15);
++                this._dds[h[i]].on('startDragEvent', this._handleStartDrag, this._dds[h[i]], this);
++                this._dds[h[i]].on('mouseDownEvent', this._handleMouseDown, this._dds[h[i]], this);
++            }
++            this._status = document.createElement('span');
++            this._status.className = this.CSS_STATUS;
++            document.body.insertBefore(this._status, document.body.firstChild);
++        },
++        /** 
++        * @private
++        * @method _ieSelectFix
++        * @description The function we use as the onselectstart handler when we start a drag in Internet Explorer
++        */
++        _ieSelectFix: function() {
++            return false;
++        },
++        /** 
++        * @private
++        * @property _ieSelectBack
++        * @description We will hold a copy of the current "onselectstart" method on this property, and reset it after we are done using it.
++        */
++        _ieSelectBack: null,
++        /** 
++        * @private
++        * @method _setAutoRatio
++        * @param {Event} ev A mouse event.
++        * @description This method checks to see if the "autoRatio" config is set. If it is, we will check to see if the "Shift Key" is pressed. If so, we will set the config ratio to true.
++        */
++        _setAutoRatio: function(ev) {
++            if (this.get('autoRatio')) {
++                if (ev && ev.shiftKey) {
++                    //Shift Pressed
++                    this.set('ratio', true);
++                } else {
++                    this.set('ratio', this._configs.ratio._initialConfig.value);
++                }
++            }
++        },
++        /** 
++        * @private
++        * @method _handleMouseDown
++        * @param {Event} ev A mouse event.
++        * @description This method preps the autoRatio on MouseDown.
++        */
++        _handleMouseDown: function(ev) {
++            if (this._locked) {
++                return false;
++            }
++            if (D.getStyle(this._wrap, 'position') == 'absolute') {
++                this._positioned = true;
++            }
++            if (ev) {
++                this._setAutoRatio(ev);
++            }
++            if (this.browser.ie) {
++                this._ieSelectBack = document.body.onselectstart;
++                document.body.onselectstart = this._ieSelectFix;
++            }
++        },
++        /** 
++        * @private
++        * @method _handleMouseOver
++        * @param {Event} ev A mouse event.
++        * @description Adds CSS class names to the handles
++        */
++        _handleMouseOver: function(ev) {
++            if (this._locked) {
++                return false;
++            }
++            D.removeClass(this._wrap, this.CSS_RESIZE);
++
++            if (this.get('hover')) {
++                D.removeClass(this._wrap, this.CSS_HOVER);
++            }
++            var tar = Event.getTarget(ev);
++            if (!D.hasClass(tar, this.CSS_HANDLE)) {
++                tar = tar.parentNode;
++            }
++            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
++                D.addClass(tar, this.CSS_HANDLE + '-active');
++                for (var i in this._handles) {
++                    if (Lang.hasOwnProperty(this._handles, i)) {
++                        if (this._handles[i] == tar) {
++                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
++                            break;
++                        }
++                    }
++                }
++            }
++
++            D.addClass(this._wrap, this.CSS_RESIZE);
++        },
++        /** 
++        * @private
++        * @method _handleMouseOut
++        * @param {Event} ev A mouse event.
++        * @description Removes CSS class names to the handles
++        */
++        _handleMouseOut: function(ev) {
++            D.removeClass(this._wrap, this.CSS_RESIZE);
++            if (this.get('hover') && !this._active) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            var tar = Event.getTarget(ev);
++            if (!D.hasClass(tar, this.CSS_HANDLE)) {
++                tar = tar.parentNode;
++            }
++            if (D.hasClass(tar, this.CSS_HANDLE) && !this._active) {
++                D.removeClass(tar, this.CSS_HANDLE + '-active');
++                for (var i in this._handles) {
++                    if (Lang.hasOwnProperty(this._handles, i)) {
++                        if (this._handles[i] == tar) {
++                            D.removeClass(tar, this.CSS_HANDLE + '-' + i + '-active');
++                            break;
++                        }
++                    }
++                }
++            }
++            D.addClass(this._wrap, this.CSS_RESIZE);
++        },
++        /** 
++        * @private
++        * @method _handleStartDrag
++        * @param {Object} args The args passed from the CustomEvent.
++        * @param {Object} dd The <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> object we are working with.
++        * @description Resizes the proxy, sets up the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> handlers, updates the status div and preps the cache
++        */
++        _handleStartDrag: function(args, dd) {
++            var tar = dd.getDragEl();
++            if (D.hasClass(tar, this.CSS_HANDLE)) {
++                if (D.getStyle(this._wrap, 'position') == 'absolute') {
++                    this._positioned = true;
++                }
++                this._active = true;
++                this._currentDD = dd;
++                if (this._proxy) {
++                    this._proxy.style.visibility = 'visible';
++                    this._proxy.style.zIndex = '1000';
++                    this._proxy.style.height = this.get('element').clientHeight + 'px';
++                    this._proxy.style.width = this.get('element').clientWidth + 'px';
++                }
++
++                for (var i in this._handles) {
++                    if (Lang.hasOwnProperty(this._handles, i)) {
++                        if (this._handles[i] == tar) {
++                            this._currentHandle = i;
++                            var handle = '_handle_for_' + i;
++                            D.addClass(tar, this.CSS_HANDLE + '-' + i + '-active');
++                            dd.on('dragEvent', this[handle], this, true);
++                            dd.on('mouseUpEvent', this._handleMouseUp, this, true);
++                            break;
++                        }
++                    }
++                }
++
++
++                D.addClass(tar, this.CSS_HANDLE + '-active');
++
++                if (this.get('proxy')) {
++                    var xy = D.getXY(this.get('element'));
++                    D.setXY(this._proxy, xy);
++                    if (this.get('ghost')) {
++                        this.addClass(this.CSS_GHOST);
++                    }
++                }
++                D.addClass(this._wrap, this.CSS_RESIZING);
++                this._setCache();
++                this._updateStatus(this._cache.height, this._cache.width, this._cache.top, this._cache.left);
++                this.fireEvent('startResize', { type: 'startresize', target: this});
++            }
++        },
++        /** 
++        * @private
++        * @method _setCache
++        * @description Sets up the this._cache hash table.
++        */
++        _setCache: function() {
++            this._cache.xy = D.getXY(this._wrap);
++            D.setXY(this._wrap, this._cache.xy);
++            this._cache.height = this.get('clientHeight');
++            this._cache.width = this.get('clientWidth');
++            this._cache.start.height = this._cache.height;
++            this._cache.start.width = this._cache.width;
++            this._cache.start.top = this._cache.xy[1];
++            this._cache.start.left = this._cache.xy[0];
++            this._cache.top = this._cache.xy[1];
++            this._cache.left = this._cache.xy[0];
++            this.set('height', this._cache.height, true);
++            this.set('width', this._cache.width, true);
++        },
++        /** 
++        * @private
++        * @method _handleMouseUp
++        * @param {Event} ev A mouse event.
++        * @description Cleans up listeners, hides proxy element and removes class names.
++        */
++        _handleMouseUp: function(ev) {
++            this._active = false;
++
++            var handle = '_handle_for_' + this._currentHandle;
++            this._currentDD.unsubscribe('dragEvent', this[handle], this, true);
++            this._currentDD.unsubscribe('mouseUpEvent', this._handleMouseUp, this, true);
++
++            if (this._proxy) {
++                this._proxy.style.visibility = 'hidden';
++                this._proxy.style.zIndex = '-1';
++                if (this.get('setSize')) {
++                    this.resize(ev, this._cache.height, this._cache.width, this._cache.top, this._cache.left, true);
++                } else {
++                    this.fireEvent('resize', { ev: 'resize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
++                }
++
++                if (this.get('ghost')) {
++                    this.removeClass(this.CSS_GHOST);
++                }
++            }
++
++            if (this.get('hover')) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            if (this._status) {
++                D.setStyle(this._status, 'display', 'none');
++            }
++            if (this.browser.ie) {
++                document.body.onselectstart = this._ieSelectBack;
++            }
++
++            if (this.browser.ie) {
++                D.removeClass(this._wrap, this.CSS_RESIZE);
++            }
++
++            for (var i in this._handles) {
++                if (Lang.hasOwnProperty(this._handles, i)) {
++                    D.removeClass(this._handles[i], this.CSS_HANDLE + '-active');
++                }
++            }
++            if (this.get('hover') && !this._active) {
++                D.addClass(this._wrap, this.CSS_HOVER);
++            }
++            D.removeClass(this._wrap, this.CSS_RESIZING);
++
++            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-' + this._currentHandle + '-active');
++            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-active');
++
++            if (this.browser.ie) {
++                D.addClass(this._wrap, this.CSS_RESIZE);
++            }
++
++            this._resizeEvent = null;
++            this._currentHandle = null;
++            
++            if (!this.get('animate')) {
++                this.set('height', this._cache.height, true);
++                this.set('width', this._cache.width, true);
++            }
++
++            this.fireEvent('endResize', { ev: 'endResize', target: this, height: this._cache.height, width: this._cache.width, top: this._cache.top, left: this._cache.left });
++        },
++        /** 
++        * @private
++        * @method _setRatio
++        * @param {Number} h The height offset.
++        * @param {Number} w The with offset.
++        * @param {Number} t The top offset.
++        * @param {Number} l The left offset.
++        * @description Using the Height, Width, Top & Left, it recalcuates them based on the original element size.
++        * @return {Array} The new Height, Width, Top & Left settings
++        */
++        _setRatio: function(h, w, t, l) {
++            var oh = h, ow = w;
++            if (this.get('ratio')) {
++                var orgH = this._cache.height,
++                    orgW = this._cache.width,
++                    nh = parseInt(this.get('height'), 10),
++                    nw = parseInt(this.get('width'), 10),
++                    maxH = this.get('maxHeight'),
++                    minH = this.get('minHeight'),
++                    maxW = this.get('maxWidth'),
++                    minW = this.get('minWidth');
++
++                switch (this._currentHandle) {
++                    case 'l':
++                        h = nh * (w / nw);
++                        h = Math.min(Math.max(minH, h), maxH);                        
++                        w = nw * (h / nh);
++                        t = (this._cache.start.top - (-((nh - h) / 2)));
++                        l = (this._cache.start.left - (-((nw - w))));
++                        break;
++                    case 'r':
++                        h = nh * (w / nw);
++                        h = Math.min(Math.max(minH, h), maxH);                        
++                        w = nw * (h / nh);
++                        t = (this._cache.start.top - (-((nh - h) / 2)));
++                        break;
++                    case 't':
++                        w = nw * (h / nh);
++                        h = nh * (w / nw);
++                        l = (this._cache.start.left - (-((nw - w) / 2)));
++                        t = (this._cache.start.top - (-((nh - h))));
++                        break;
++                    case 'b':
++                        w = nw * (h / nh);
++                        h = nh * (w / nw);
++                        l = (this._cache.start.left - (-((nw - w) / 2)));
++                        break;
++                    case 'bl':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        l = (this._cache.start.left - (-((nw - w))));
++                        break;
++                    case 'br':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        break;
++                    case 'tl':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        l = (this._cache.start.left - (-((nw - w))));
++                        t = (this._cache.start.top - (-((nh - h))));
++                        break;
++                    case 'tr':
++                        h = nh * (w / nw);
++                        w = nw * (h / nh);
++                        l = (this._cache.start.left);
++                        t = (this._cache.start.top - (-((nh - h))));
++                        break;
++                }
++                oh = this._checkHeight(h);
++                ow = this._checkWidth(w);
++                if ((oh != h) || (ow != w)) {
++                    t = 0;
++                    l = 0;
++                    if (oh != h) {
++                        ow = this._cache.width;
++                    }
++                    if (ow != w) {
++                        oh = this._cache.height;
++                    }
++                }
++            }
++            return [oh, ow, t, l];
++        },
++        /** 
++        * @private
++        * @method _updateStatus
++        * @param {Number} h The new height setting.
++        * @param {Number} w The new width setting.
++        * @param {Number} t The new top setting.
++        * @param {Number} l The new left setting.
++        * @description Using the Height, Width, Top & Left, it updates the status element with the elements sizes.
++        */
++        _updateStatus: function(h, w, t, l) {
++            if (this._resizeEvent && (!Lang.isString(this._resizeEvent))) {
++                h = ((h === 0) ? this._cache.start.height : h);
++                w = ((w === 0) ? this._cache.start.width : w);
++                var h1 = parseInt(this.get('height'), 10),
++                    w1 = parseInt(this.get('width'), 10);
++                
++                if (isNaN(h1)) {
++                    h1 = parseInt(h, 10);
++                }
++                if (isNaN(w1)) {
++                    w1 = parseInt(w, 10);
++                }
++                var diffH = (parseInt(h, 10) - h1);
++                var diffW = (parseInt(w, 10) - w1);
++                this._cache.offsetHeight = diffH;
++                this._cache.offsetWidth = diffW;
++                if (this.get('status')) {
++                    D.setStyle(this._status, 'display', 'inline');
++                    //This will cause IE8 to crash if the status box is hidden..
++                    this._status.innerHTML = '<strong>' + parseInt(h, 10) + ' x ' + parseInt(w, 10) + '</strong><em>' + ((diffH > 0) ? '+' : '') + diffH + ' x ' + ((diffW > 0) ? '+' : '') + diffW + '</em>';
++                    D.setXY(this._status, [Event.getPageX(this._resizeEvent) + 12, Event.getPageY(this._resizeEvent) + 12]);
++                }
++            }
++        },
++        /** 
++        * @method lock
++        * @description Lock the resize so it can't be resized
++        * @param {Boolean} dd If the draggable config is set, lock it too
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        lock: function(dd) {
++            this._locked = true;
++            if (dd && this.dd) {
++                D.removeClass(this._wrap, 'yui-draggable');
++                this.dd.lock();
++            }
++            return this;
++        },
++        /** 
++        * @method unlock
++        * @description Unlock the resize so it can be resized
++        * @param {Boolean} dd If the draggable config is set, unlock it too
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        unlock: function(dd) {
++            this._locked = false;
++            if (dd && this.dd) {
++                D.addClass(this._wrap, 'yui-draggable');
++                this.dd.unlock();
++            }
++            return this;
++        },
++        /** 
++        * @method isLocked
++        * @description Check the locked status of the resize instance
++        * @return {Boolean}
++        */
++        isLocked: function() {
++            return this._locked;
++        },
++        /** 
++        * @method reset
++        * @description Resets the element to is start state.
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        reset: function() {
++            this.resize(null, this._cache.start.height, this._cache.start.width, this._cache.start.top, this._cache.start.left, true);
++            return this;
++        },
++        /** 
++        * @private
++        * @method resize
++        * @param {Event} ev The mouse event.
++        * @param {Number} h The new height setting.
++        * @param {Number} w The new width setting.
++        * @param {Number} t The new top setting.
++        * @param {Number} l The new left setting.
++        * @param {Boolean} force Resize the element (used for proxy resize).
++        * @param {Boolean} silent Don't fire the beforeResize Event.
++        * @description Resizes the element, wrapper or proxy based on the data from the handlers.
++        * @return {<a href="YAHOO.util.Resize.html">YAHOO.util.Resize</a>} The Resize instance
++        */
++        resize: function(ev, h, w, t, l, force, silent) {
++            if (this._locked) {
++                return false;
++            }
++            this._resizeEvent = ev;
++            var el = this._wrap, anim = this.get('animate'), set = true;
++            if (this._proxy && !force) {
++                el = this._proxy;
++                anim = false;
++            }
++            this._setAutoRatio(ev);
++            if (this._positioned) {
++                if (this._proxy) {
++                    t = this._cache.top - t;
++                    l = this._cache.left - l;
++                }
++            }
++            
++            
++            var ratio = this._setRatio(h, w, t, l);
++            h = parseInt(ratio[0], 10);
++            w = parseInt(ratio[1], 10);
++            t = parseInt(ratio[2], 10);
++            l = parseInt(ratio[3], 10);
++            
++            if (t == 0) {
++                //No Offset, get from cache
++                t = D.getY(el);
++            }
++            if (l == 0) {
++                //No Offset, get from cache
++                l = D.getX(el);
++            }
++
++            
++
++            if (this._positioned) {
++                if (this._proxy && force) {
++                    if (!anim) {
++                        el.style.top = this._proxy.style.top;
++                        el.style.left = this._proxy.style.left;
++                    } else {
++                        t = this._proxy.style.top;
++                        l = this._proxy.style.left;
++                    }
++                } else {
++                    if (!this.get('ratio') && !this._proxy) {
++                        t = this._cache.top + -(t);
++                        l = this._cache.left + -(l);
++                    }
++                    if (t) {
++                        if (this.get('minY')) {
++                            if (t < this.get('minY')) {
++                                t = this.get('minY');
++                            }
++                        }
++                        if (this.get('maxY')) {
++                            if (t > this.get('maxY')) {
++                                t = this.get('maxY');
++                            }
++                        }
++                    }
++                    if (l) {
++                        if (this.get('minX')) {
++                            if (l < this.get('minX')) {
++                                l = this.get('minX');
++                            }
++                        }
++                        if (this.get('maxX')) {
++                            if ((l + w) > this.get('maxX')) {
++                                l = (this.get('maxX') - w);
++                            }
++                        }
++                    }
++                }
++            }
++            if (!silent) {
++                var beforeReturn = this.fireEvent('beforeResize', { ev: 'beforeResize', target: this, height: h, width: w, top: t, left: l });
++                if (beforeReturn === false) {
++                    return false;
++                }
++            }
++
++            this._updateStatus(h, w, t, l);
++
++
++            if (this._positioned) {
++                if (this._proxy && force) {
++                    //Do nothing
++                } else {
++                    if (t) {
++                        D.setY(el, t);
++                        this._cache.top = t;
++                    }
++                    if (l) {
++                        D.setX(el, l);
++                        this._cache.left = l;
++                    }
++                }
++            }
++            if (h) {
++                if (!anim) {
++                    set = true;
++                    if (this._proxy && force) {
++                        if (!this.get('setSize')) {
++                            set = false;
++                        }
++                    }
++                    if (set) {
++                        el.style.height = h + 'px';
++                    }
++                    if ((this._proxy && force) || !this._proxy) {
++                        if (this._wrap != this.get('element')) {
++                            this.get('element').style.height = h + 'px';
++                        }
++                    }
++                }
++                this._cache.height = h;
++            }
++            if (w) {
++                this._cache.width = w;
++                if (!anim) {
++                    set = true;
++                    if (this._proxy && force) {
++                        if (!this.get('setSize')) {
++                            set = false;
++                        }
++                    }
++                    if (set) {
++                        el.style.width = w + 'px';
++                    }
++                    if ((this._proxy && force) || !this._proxy) {
++                        if (this._wrap != this.get('element')) {
++                            this.get('element').style.width = w + 'px';
++                        }
++                    }
++                }
++            }
++            if (anim) {
++                if (YAHOO.util.Anim) {
++                    var _anim = new YAHOO.util.Anim(el, {
++                        height: {
++                            to: this._cache.height
++                        },
++                        width: {
++                            to: this._cache.width
++                        }
++                    }, this.get('animateDuration'), this.get('animateEasing'));
++                    if (this._positioned) {
++                        if (t) {
++                            _anim.attributes.top = {
++                                to: parseInt(t, 10)
++                            };
++                        }
++                        if (l) {
++                            _anim.attributes.left = {
++                                to: parseInt(l, 10)
++                            };
++                        }
++                    }
++
++                    if (this._wrap != this.get('element')) {
++                        _anim.onTween.subscribe(function() {
++                            this.get('element').style.height = el.style.height;
++                            this.get('element').style.width = el.style.width;
++                        }, this, true);
++                    }
++
++                    _anim.onComplete.subscribe(function() {
++                        this.set('height', h);
++                        this.set('width', w);
++                        this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
++                    }, this, true);
++                    _anim.animate();
++
++                }
++            } else {
++                if (this._proxy && !force) {
++                    this.fireEvent('proxyResize', { ev: 'proxyresize', target: this, height: h, width: w, top: t, left: l });
++                } else {
++                    this.fireEvent('resize', { ev: 'resize', target: this, height: h, width: w, top: t, left: l });
++                }
++            }
++            return this;
++        },
++        /** 
++        * @private
++        * @method _handle_for_br
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Bottom Right handle.
++        */
++        _handle_for_br: function(args) {
++            var newW = this._setWidth(args.e);
++            var newH = this._setHeight(args.e);
++            this.resize(args.e, newH, newW, 0, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_bl
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Bottom Left handle.
++        */
++        _handle_for_bl: function(args) {
++            var newW = this._setWidth(args.e, true);
++            var newH = this._setHeight(args.e);
++            var l = (newW - this._cache.width);
++            this.resize(args.e, newH, newW, 0, l);
++        },
++        /** 
++        * @private
++        * @method _handle_for_tl
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Top Left handle.
++        */
++        _handle_for_tl: function(args) {
++            var newW = this._setWidth(args.e, true);
++            var newH = this._setHeight(args.e, true);
++            var t = (newH - this._cache.height);
++            var l = (newW - this._cache.width);
++            this.resize(args.e, newH, newW, t, l);
++        },
++        /** 
++        * @private
++        * @method _handle_for_tr
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Top Right handle.
++        */
++        _handle_for_tr: function(args) {
++            var newW = this._setWidth(args.e);
++            var newH = this._setHeight(args.e, true);
++            var t = (newH - this._cache.height);
++            this.resize(args.e, newH, newW, t, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_r
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Right handle.
++        */
++        _handle_for_r: function(args) {
++            this._dds.r.setYConstraint(0,0);
++            var newW = this._setWidth(args.e);
++            this.resize(args.e, 0, newW, 0, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_l
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Left handle.
++        */
++        _handle_for_l: function(args) {
++            this._dds.l.setYConstraint(0,0);
++            var newW = this._setWidth(args.e, true);
++            var l = (newW - this._cache.width);
++            this.resize(args.e, 0, newW, 0, l);
++        },
++        /** 
++        * @private
++        * @method _handle_for_b
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Bottom handle.
++        */
++        _handle_for_b: function(args) {
++            this._dds.b.setXConstraint(0,0);
++            var newH = this._setHeight(args.e);
++            this.resize(args.e, newH, 0, 0, 0);
++        },
++        /** 
++        * @private
++        * @method _handle_for_t
++        * @param {Object} args The arguments from the CustomEvent.
++        * @description Handles the sizes for the Top handle.
++        */
++        _handle_for_t: function(args) {
++            this._dds.t.setXConstraint(0,0);
++            var newH = this._setHeight(args.e, true);
++            var t = (newH - this._cache.height);
++            this.resize(args.e, newH, 0, t, 0);
++        },
++        /** 
++        * @private
++        * @method _setWidth
++        * @param {Event} ev The mouse event.
++        * @param {Boolean} flip Argument to determine the direction of the movement.
++        * @description Calculates the width based on the mouse event.
++        * @return {Number} The new value
++        */
++        _setWidth: function(ev, flip) {
++            var xy = this._cache.xy[0],
++                w = this._cache.width,
++                x = Event.getPageX(ev),
++                nw = (x - xy);
++
++                if (flip) {
++                    nw = (xy - x) + parseInt(this.get('width'), 10);
++                }
++                
++                nw = this._snapTick(nw, this.get('xTicks'));
++                nw = this._checkWidth(nw);
++            return nw;
++        },
++        /** 
++        * @private
++        * @method _checkWidth
++        * @param {Number} w The width to check.
++        * @description Checks the value passed against the maxWidth and minWidth.
++        * @return {Number} the new value
++        */
++        _checkWidth: function(w) {
++            if (this.get('minWidth')) {
++                if (w <= this.get('minWidth')) {
++                    w = this.get('minWidth');
++                }
++            }
++            if (this.get('maxWidth')) {
++                if (w >= this.get('maxWidth')) {
++                    w = this.get('maxWidth');
++                }
++            }
++            return w;
++        },
++        /** 
++        * @private
++        * @method _checkHeight
++        * @param {Number} h The height to check.
++        * @description Checks the value passed against the maxHeight and minHeight.
++        * @return {Number} The new value
++        */
++        _checkHeight: function(h) {
++            if (this.get('minHeight')) {
++                if (h <= this.get('minHeight')) {
++                    h = this.get('minHeight');
++                }
++            }
++            if (this.get('maxHeight')) {
++                if (h >= this.get('maxHeight')) {
++                    h = this.get('maxHeight');
++                }
++            }
++            return h;
++        },
++        /** 
++        * @private
++        * @method _setHeight
++        * @param {Event} ev The mouse event.
++        * @param {Boolean} flip Argument to determine the direction of the movement.
++        * @description Calculated the height based on the mouse event.
++        * @return {Number} The new value
++        */
++        _setHeight: function(ev, flip) {
++            var xy = this._cache.xy[1],
++                h = this._cache.height,
++                y = Event.getPageY(ev),
++                nh = (y - xy);
++
++                if (flip) {
++                    nh = (xy - y) + parseInt(this.get('height'), 10);
++                }
++                nh = this._snapTick(nh, this.get('yTicks'));
++                nh = this._checkHeight(nh);
++                
++            return nh;
++        },
++        /** 
++        * @private
++        * @method _snapTick
++        * @param {Number} size The size to tick against.
++        * @param {Number} pix The tick pixels.
++        * @description Adjusts the number based on the ticks used.
++        * @return {Number} the new snapped position
++        */
++        _snapTick: function(size, pix) {
++            if (!size || !pix) {
++                return size;
++            }
++            var _s = size;
++            var _x = size % pix;
++            if (_x > 0) {
++                if (_x > (pix / 2)) {
++                    _s = size + (pix - _x);
++                } else {
++                    _s = size - _x;
++                }
++            }
++            return _s;
++        },
++        /** 
++        * @private
++        * @method init
++        * @description The Resize class's initialization method
++        */        
++        init: function(p_oElement, p_oAttributes) {
++            this._locked = false;
++            this._cache = {
++                xy: [],
++                height: 0,
++                width: 0,
++                top: 0,
++                left: 0,
++                offsetHeight: 0,
++                offsetWidth: 0,
++                start: {
++                    height: 0,
++                    width: 0,
++                    top: 0,
++                    left: 0
++                }
++            };
++
++            Resize.superclass.init.call(this, p_oElement, p_oAttributes);
++
++            this.set('setSize', this.get('setSize'));
++
++            if (p_oAttributes.height) {
++                this.set('height', parseInt(p_oAttributes.height, 10));
++            } else {
++                var h = this.getStyle('height');
++                if (h == 'auto') {
++                    this.set('height', parseInt(this.get('element').offsetHeight, 10));
++                }
++            }
++            if (p_oAttributes.width) {
++                this.set('width', parseInt(p_oAttributes.width, 10));
++            } else {
++                var w = this.getStyle('width');
++                if (w == 'auto') {
++                    this.set('width', parseInt(this.get('element').offsetWidth, 10));
++                }
++            }
++            
++            var id = p_oElement;
++            if (!Lang.isString(id)) {
++                id = D.generateId(id);
++            }
++            Resize._instances[id] = this;
++
++            this._active = false;
++            
++            this._createWrap();
++            this._createProxy();
++            this._createHandles();
++
++        },
++        /**
++        * @method getProxyEl
++        * @description Get the HTML reference for the proxy, returns null if no proxy.
++        * @return {HTMLElement} The proxy element
++        */      
++        getProxyEl: function() {
++            return this._proxy;
++        },
++        /**
++        * @method getWrapEl
++        * @description Get the HTML reference for the wrap element, returns the current element if not wrapped.
++        * @return {HTMLElement} The wrap element
++        */      
++        getWrapEl: function() {
++            return this._wrap;
++        },
++        /**
++        * @method getStatusEl
++        * @description Get the HTML reference for the status element.
++        * @return {HTMLElement} The status element
++        */      
++        getStatusEl: function() {
++            return this._status;
++        },
++        /**
++        * @method getActiveHandleEl
++        * @description Get the HTML reference for the currently active resize handle.
++        * @return {HTMLElement} The handle element that is active
++        */      
++        getActiveHandleEl: function() {
++            return this._handles[this._currentHandle];
++        },
++        /**
++        * @method isActive
++        * @description Returns true or false if a resize operation is currently active on the element.
++        * @return {Boolean}
++        */      
++        isActive: function() {
++            return ((this._active) ? true : false);
++        },
++        /**
++        * @private
++        * @method initAttributes
++        * @description Initializes all of the configuration attributes used to create a resizable element.
++        * @param {Object} attr Object literal specifying a set of 
++        * configuration attributes used to create the utility.
++        */      
++        initAttributes: function(attr) {
++            Resize.superclass.initAttributes.call(this, attr);
++
++            /**
++            * @attribute useShim
++            * @description This setting will be passed to the DragDrop instances on the resize handles and for the draggable property.
++            * This property should be used if you want the resize handles to work over iframe and other elements.
++            * @type Boolean
++            */
++            this.setAttributeConfig('useShim', {
++                value: ((attr.useShim === true) ? true : false),
++                validator: YAHOO.lang.isBoolean,
++                method: function(u) {
++                    for (var i in this._dds) {
++                        if (Lang.hasOwnProperty(this._dds, i)) {
++                            this._dds[i].useShim = u;
++                        }
++                    }
++                    if (this.dd) {
++                        this.dd.useShim = u;
++                    }
++                }
++            });
++            /**
++            * @attribute setSize
++            * @description Set the size of the resized element, if set to false the element will not be auto resized,
++            * the resize event will contain the dimensions so the end user can resize it on their own.
++            * This setting will only work with proxy set to true and animate set to false.
++            * @type Boolean
++            */
++            this.setAttributeConfig('setSize', {
++                value: ((attr.setSize === false) ? false : true),
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute wrap
++            * @description Should we wrap the element
++            * @type Boolean
++            */
++            this.setAttributeConfig('wrap', {
++                writeOnce: true,
++                validator: YAHOO.lang.isBoolean,
++                value: attr.wrap || false
++            });
++
++            /**
++            * @attribute handles
++            * @description The handles to use (any combination of): 't', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'. Defaults to: ['r', 'b', 'br'].
++            * Can use a shortcut of All. Note: 8 way resizing should be done on an element that is absolutely positioned.
++            * @type Array
++            */
++            this.setAttributeConfig('handles', {
++                writeOnce: true,
++                value: attr.handles || ['r', 'b', 'br'],
++                validator: function(handles) {
++                    if (Lang.isString(handles) && handles.toLowerCase() == 'all') {
++                        handles = ['t', 'b', 'r', 'l', 'bl', 'br', 'tl', 'tr'];
++                    }
++                    if (!Lang.isArray(handles)) {
++                        handles = handles.replace(/, /g, ',');
++                        handles = handles.split(',');
++                    }
++                    this._configs.handles.value = handles;
++                }
++            });
++
++            /**
++            * @attribute width
++            * @description The width of the element
++            * @type Number
++            */
++            this.setAttributeConfig('width', {
++                value: attr.width || parseInt(this.getStyle('width'), 10),
++                validator: YAHOO.lang.isNumber,
++                method: function(width) {
++                    width = parseInt(width, 10);
++                    if (width > 0) {
++                        if (this.get('setSize')) {
++                            this.setStyle('width', width + 'px');
++                        }
++                        this._cache.width = width;
++                        this._configs.width.value = width;
++                    }
++                }
++            });
++
++            /**
++            * @attribute height
++            * @description The height of the element
++            * @type Number
++            */
++            this.setAttributeConfig('height', {
++                value: attr.height || parseInt(this.getStyle('height'), 10),
++                validator: YAHOO.lang.isNumber,
++                method: function(height) {
++                    height = parseInt(height, 10);
++                    if (height > 0) {
++                        if (this.get('setSize')) {
++                            this.setStyle('height', height + 'px');
++                        }
++                        this._cache.height = height;
++                        this._configs.height.value = height;
++                    }
++                }
++            });
++
++            /**
++            * @attribute minWidth
++            * @description The minimum width of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minWidth', {
++                value: attr.minWidth || 15,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minHeight
++            * @description The minimum height of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minHeight', {
++                value: attr.minHeight || 15,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxWidth
++            * @description The maximum width of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxWidth', {
++                value: attr.maxWidth || 10000,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute maxHeight
++            * @description The maximum height of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxHeight', {
++                value: attr.maxHeight || 10000,
++                validator: YAHOO.lang.isNumber
++            });
++
++            /**
++            * @attribute minY
++            * @description The minimum y coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minY', {
++                value: attr.minY || false
++            });
++
++            /**
++            * @attribute minX
++            * @description The minimum x coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('minX', {
++                value: attr.minX || false
++            });
++            /**
++            * @attribute maxY
++            * @description The max y coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxY', {
++                value: attr.maxY || false
++            });
++
++            /**
++            * @attribute maxX
++            * @description The max x coord of the element
++            * @type Number
++            */
++            this.setAttributeConfig('maxX', {
++                value: attr.maxX || false
++            });
++
++            /**
++            * @attribute animate
++            * @description Should be use animation to resize the element (can only be used if we use proxy).
++            * @type Boolean
++            */
++            this.setAttributeConfig('animate', {
++                value: attr.animate || false,
++                validator: function(value) {
++                    var ret = true;
++                    if (!YAHOO.util.Anim) {
++                        ret = false;
++                    }
++                    return ret;
++                }               
++            });
++
++            /**
++            * @attribute animateEasing
++            * @description The Easing to apply to the animation.
++            * @type Object
++            */
++            this.setAttributeConfig('animateEasing', {
++                value: attr.animateEasing || function() {
++                    var easing = false;
++                    if (YAHOO.util.Easing && YAHOO.util.Easing.easeOut) {
++                        easing = YAHOO.util.Easing.easeOut;
++                    }
++                    return easing;
++                }()
++            });
++
++            /**
++            * @attribute animateDuration
++            * @description The Duration to apply to the animation.
++            * @type Number
++            */
++            this.setAttributeConfig('animateDuration', {
++                value: attr.animateDuration || 0.5
++            });
++
++            /**
++            * @attribute proxy
++            * @description Resize a proxy element instead of the real element.
++            * @type Boolean
++            */
++            this.setAttributeConfig('proxy', {
++                value: attr.proxy || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute ratio
++            * @description Maintain the element's ratio when resizing.
++            * @type Boolean
++            */
++            this.setAttributeConfig('ratio', {
++                value: attr.ratio || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute ghost
++            * @description Apply an opacity filter to the element being resized (only works with proxy).
++            * @type Boolean
++            */
++            this.setAttributeConfig('ghost', {
++                value: attr.ghost || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute draggable
++            * @description A convienence method to make the element draggable
++            * @type Boolean
++            */
++            this.setAttributeConfig('draggable', {
++                value: attr.draggable || false,
++                validator: YAHOO.lang.isBoolean,
++                method: function(dd) {
++                    if (dd && this._wrap) {
++                        this._setupDragDrop();
++                    } else {
++                        if (this.dd) {
++                            D.removeClass(this._wrap, this.CSS_DRAG);
++                            this.dd.unreg();
++                        }
++                    }
++                }
++            });
++
++            /**
++            * @attribute hover
++            * @description Only show the handles when they are being moused over.
++            * @type Boolean
++            */
++            this.setAttributeConfig('hover', {
++                value: attr.hover || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute hiddenHandles
++            * @description Don't show the handles, just use the cursor to the user.
++            * @type Boolean
++            */
++            this.setAttributeConfig('hiddenHandles', {
++                value: attr.hiddenHandles || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute knobHandles
++            * @description Use the smaller handles, instead if the full size handles.
++            * @type Boolean
++            */
++            this.setAttributeConfig('knobHandles', {
++                value: attr.knobHandles || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute xTicks
++            * @description The number of x ticks to span the resize to.
++            * @type Number or False
++            */
++            this.setAttributeConfig('xTicks', {
++                value: attr.xTicks || false
++            });
++
++            /**
++            * @attribute yTicks
++            * @description The number of y ticks to span the resize to.
++            * @type Number or False
++            */
++            this.setAttributeConfig('yTicks', {
++                value: attr.yTicks || false
++            });
++
++            /**
++            * @attribute status
++            * @description Show the status (new size) of the resize.
++            * @type Boolean
++            */
++            this.setAttributeConfig('status', {
++                value: attr.status || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++            /**
++            * @attribute autoRatio
++            * @description Using the shift key during a resize will toggle the ratio config.
++            * @type Boolean
++            */
++            this.setAttributeConfig('autoRatio', {
++                value: attr.autoRatio || false,
++                validator: YAHOO.lang.isBoolean
++            });
++
++        },
++        /**
++        * @method destroy
++        * @description Destroys the resize object and all of it's elements & listeners.
++        */        
++        destroy: function() {
++            for (var h in this._handles) {
++                if (Lang.hasOwnProperty(this._handles, h)) {
++                    Event.purgeElement(this._handles[h]);
++                    this._handles[h].parentNode.removeChild(this._handles[h]);
++                }
++            }
++            if (this._proxy) {
++                this._proxy.parentNode.removeChild(this._proxy);
++            }
++            if (this._status) {
++                this._status.parentNode.removeChild(this._status);
++            }
++            if (this.dd) {
++                this.dd.unreg();
++                D.removeClass(this._wrap, this.CSS_DRAG);
++            }
++            if (this._wrap != this.get('element')) {
++                this.setStyle('position', '');
++                this.setStyle('top', '');
++                this.setStyle('left', '');
++                this._wrap.parentNode.replaceChild(this.get('element'), this._wrap);
++            }
++            this.removeClass(this.CSS_RESIZE);
++
++            delete YAHOO.util.Resize._instances[this.get('id')];
++            //Brutal Object Destroy
++            for (var i in this) {
++                if (Lang.hasOwnProperty(this, i)) {
++                    this[i] = null;
++                    delete this[i];
++                }
++            }
++        },
++        /**
++        * @method toString
++        * @description Returns a string representing the Resize Object.
++        * @return {String}
++        */        
++        toString: function() {
++            if (this.get) {
++                return 'Resize (#' + this.get('id') + ')';
++            }
++            return 'Resize Utility';
++        }
++    });
++
++    YAHOO.util.Resize = Resize;
++ 
++/**
++* @event dragEvent
++* @description Fires when the <a href="YAHOO.util.DragDrop.html">YAHOO.util.DragDrop</a> dragEvent is fired for the config option draggable.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event startResize
++* @description Fires when a resize action is started.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event endResize
++* @description Fires when the mouseUp event from the Drag Instance fires.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event resize
++* @description Fires on every element resize (only fires once when used with proxy config setting).
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event beforeResize
++* @description Fires before every element resize after the size calculations, returning false will stop the resize.
++* @type YAHOO.util.CustomEvent
++*/
++/**
++* @event proxyResize
++* @description Fires on every proxy resize (only fires when used with proxy config setting).
++* @type YAHOO.util.CustomEvent
++*/
++
++})();
++
++YAHOO.register("resize", YAHOO.util.Resize, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/selector/selector-debug.js b/pylons_app/public/js/yui/selector/selector-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/selector/selector-debug.js
+@@ -0,0 +1,651 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The selector module provides helper methods allowing CSS3 Selectors to be used with DOM elements.
++ * @module selector
++ * @title Selector Utility
++ * @namespace YAHOO.util
++ * @requires yahoo, dom
++ */
++
++(function() {
++var Y = YAHOO.util;
++
++/**
++ * Provides helper methods for collecting and filtering DOM elements.
++ * @namespace YAHOO.util
++ * @class Selector
++ * @static
++ */
++
++Y.Selector = {
++    _foundCache: [],
++    _regexCache: {},
++
++    _re: {
++        nth: /^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,
++        attr: /(\[.*\])/g,
++        urls: /^(?:href|src)/
++    },
++
++    /**
++     * Default document for use queries 
++     * @property document
++     * @type object
++     * @default window.document
++     */
++    document: window.document,
++    /**
++     * Mapping of attributes to aliases, normally to work around HTMLAttributes
++     * that conflict with JS reserved words.
++     * @property attrAliases
++     * @type object
++     */
++    attrAliases: {
++    },
++
++    /**
++     * Mapping of shorthand tokens to corresponding attribute selector 
++     * @property shorthand
++     * @type object
++     */
++    shorthand: {
++        //'(?:(?:[^\\)\\]\\s*>+~,]+)(?:-?[_a-z]+[-\\w]))+#(-?[_a-z]+[-\\w]*)': '[id=$1]',
++        '\\#(-?[_a-z]+[-\\w]*)': '[id=$1]',
++        '\\.(-?[_a-z]+[-\\w]*)': '[class~=$1]'
++    },
++
++    /**
++     * List of operators and corresponding boolean functions. 
++     * These functions are passed the attribute and the current node's value of the attribute.
++     * @property operators
++     * @type object
++     */
++    operators: {
++        '=': function(attr, val) { return attr === val; }, // Equality
++        '!=': function(attr, val) { return attr !== val; }, // Inequality
++        '~=': function(attr, val) { // Match one of space seperated words 
++            var s = ' ';
++            return (s + attr + s).indexOf((s + val + s)) > -1;
++        },
++        '|=': function(attr, val) { return attr === val || attr.slice(0, val.length + 1) === val + '-'; }, // Matches value followed by optional hyphen
++        '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
++        '$=': function(attr, val) { return attr.slice(-val.length) === val; }, // Match ends with value
++        '*=': function(attr, val) { return attr.indexOf(val) > -1; }, // Match contains value as substring 
++        '': function(attr, val) { return attr; } // Just test for existence of attribute
++    },
++
++    /**
++     * List of pseudo-classes and corresponding boolean functions. 
++     * These functions are called with the current node, and any value that was parsed with the pseudo regex.
++     * @property pseudos
++     * @type object
++     */
++    pseudos: {
++        'root': function(node) {
++            return node === node.ownerDocument.documentElement;
++        },
++
++        'nth-child': function(node, val) {
++            return Y.Selector._getNth(node, val);
++        },
++
++        'nth-last-child': function(node, val) {
++            return Y.Selector._getNth(node, val, null, true);
++        },
++
++        'nth-of-type': function(node, val) {
++            return Y.Selector._getNth(node, val, node.tagName);
++        },
++         
++        'nth-last-of-type': function(node, val) {
++            return Y.Selector._getNth(node, val, node.tagName, true);
++        },
++         
++        'first-child': function(node) {
++            return Y.Selector._getChildren(node.parentNode)[0] === node;
++        },
++
++        'last-child': function(node) {
++            var children = Y.Selector._getChildren(node.parentNode);
++            return children[children.length - 1] === node;
++        },
++
++        'first-of-type': function(node, val) {
++            return Y.Selector._getChildren(node.parentNode, node.tagName)[0];
++        },
++         
++        'last-of-type': function(node, val) {
++            var children = Y.Selector._getChildren(node.parentNode, node.tagName);
++            return children[children.length - 1];
++        },
++         
++        'only-child': function(node) {
++            var children = Y.Selector._getChildren(node.parentNode);
++            return children.length === 1 && children[0] === node;
++        },
++
++        'only-of-type': function(node) {
++            return Y.Selector._getChildren(node.parentNode, node.tagName).length === 1;
++        },
++
++        'empty': function(node) {
++            return node.childNodes.length === 0;
++        },
++
++        'not': function(node, simple) {
++            return !Y.Selector.test(node, simple);
++        },
++
++        'contains': function(node, str) {
++            var text = node.innerText || node.textContent || '';
++            return text.indexOf(str) > -1;
++        },
++        'checked': function(node) {
++            return node.checked === true;
++        }
++    },
++
++    /**
++     * Test if the supplied node matches the supplied selector.
++     * @method test
++     *
++     * @param {HTMLElement | String} node An id or node reference to the HTMLElement being tested.
++     * @param {string} selector The CSS Selector to test the node against.
++     * @return{boolean} Whether or not the node matches the selector.
++     * @static
++    
++     */
++    test: function(node, selector) {
++        node = Y.Selector.document.getElementById(node) || node;
++
++        if (!node) {
++            return false;
++        }
++
++        var groups = selector ? selector.split(',') : [];
++        if (groups.length) {
++            for (var i = 0, len = groups.length; i < len; ++i) {
++                if ( Y.Selector._test(node, groups[i]) ) { // passes if ANY group matches
++                    return true;
++                }
++            }
++            return false;
++        }
++        return Y.Selector._test(node, selector);
++    },
++
++    _test: function(node, selector, token, deDupe) {
++        token = token || Y.Selector._tokenize(selector).pop() || {};
++
++        if (!node.tagName ||
++            (token.tag !== '*' && node.tagName !== token.tag) ||
++            (deDupe && node._found) ) {
++            return false;
++        }
++
++        if (token.attributes.length) {
++            var val,
++                ieFlag,
++                re_urls = Y.Selector._re.urls;
++
++            if (!node.attributes || !node.attributes.length) {
++                return false;
++            }
++            for (var i = 0, attr; attr = token.attributes[i++];) {
++                ieFlag = (re_urls.test(attr[0])) ? 2 : 0;
++                val = node.getAttribute(attr[0], ieFlag);
++                if (val === null || val === undefined) {
++                    return false;
++                }
++                if ( Y.Selector.operators[attr[1]] &&
++                        !Y.Selector.operators[attr[1]](val, attr[2])) {
++                    return false;
++                }
++            }
++        }
++
++        if (token.pseudos.length) {
++            for (var i = 0, len = token.pseudos.length; i < len; ++i) {
++                if (Y.Selector.pseudos[token.pseudos[i][0]] &&
++                        !Y.Selector.pseudos[token.pseudos[i][0]](node, token.pseudos[i][1])) {
++                    return false;
++                }
++            }
++        }
++
++        return (token.previous && token.previous.combinator !== ',') ?
++                Y.Selector._combinators[token.previous.combinator](node, token) :
++                true;
++    },
++
++    /**
++     * Filters a set of nodes based on a given CSS selector. 
++     * @method filter
++     *
++     * @param {array} nodes A set of nodes/ids to filter. 
++     * @param {string} selector The selector used to test each node.
++     * @return{array} An array of nodes from the supplied array that match the given selector.
++     * @static
++     */
++    filter: function(nodes, selector) {
++        nodes = nodes || [];
++
++        var node,
++            result = [],
++            tokens = Y.Selector._tokenize(selector);
++
++        if (!nodes.item) { // if not HTMLCollection, handle arrays of ids and/or nodes
++            YAHOO.log('filter: scanning input for HTMLElements/IDs', 'info', 'Selector');
++            for (var i = 0, len = nodes.length; i < len; ++i) {
++                if (!nodes[i].tagName) { // tagName limits to HTMLElements 
++                    node = Y.Selector.document.getElementById(nodes[i]);
++                    if (node) { // skip IDs that return null 
++                        nodes[i] = node;
++                    } else {
++                        YAHOO.log('filter: skipping invalid node', 'warn', 'Selector');
++                    }
++                }
++            }
++        }
++        result = Y.Selector._filter(nodes, Y.Selector._tokenize(selector)[0]);
++        YAHOO.log('filter: returning:' + result.length, 'info', 'Selector');
++        return result;
++    },
++
++    _filter: function(nodes, token, firstOnly, deDupe) {
++        var result = firstOnly ? null : [],
++            foundCache = Y.Selector._foundCache;
++
++        for (var i = 0, len = nodes.length; i < len; i++) {
++            if (! Y.Selector._test(nodes[i], '', token, deDupe)) {
++                continue;
++            }
++
++            if (firstOnly) {
++                return nodes[i];
++            }
++            if (deDupe) {
++                if (nodes[i]._found) {
++                    continue;
++                }
++                nodes[i]._found = true;
++                foundCache[foundCache.length] = nodes[i];
++            }
++
++            result[result.length] = nodes[i];
++        }
++
++        return result;
++    },
++
++    /**
++     * Retrieves a set of nodes based on a given CSS selector. 
++     * @method query
++     *
++     * @param {string} selector The CSS Selector to test the node against.
++     * @param {HTMLElement | String} root optional An id or HTMLElement to start the query from. Defaults to Selector.document.
++     * @param {Boolean} firstOnly optional Whether or not to return only the first match.
++     * @return {Array} An array of nodes that match the given selector.
++     * @static
++     */
++    query: function(selector, root, firstOnly) {
++        var result = Y.Selector._query(selector, root, firstOnly);
++        YAHOO.log('query: returning ' + result, 'info', 'Selector');
++        return result;
++    },
++
++
++    _query: function(selector, root, firstOnly, deDupe) {
++        var result =  (firstOnly) ? null : [],
++            node;
++
++        if (!selector) {
++            return result;
++        }
++
++        var groups = selector.split(','); // TODO: handle comma in attribute/pseudo
++
++        if (groups.length > 1) {
++            var found;
++            for (var i = 0, len = groups.length; i < len; ++i) {
++                found = Y.Selector._query(groups[i], root, firstOnly, true);
++                result = firstOnly ? found : result.concat(found); 
++            }
++            Y.Selector._clearFoundCache();
++            return result;
++        }
++
++        if (root && !root.nodeName) { // assume ID
++            root = Y.Selector.document.getElementById(root);
++            if (!root) {
++                YAHOO.log('invalid root node provided', 'warn', 'Selector');
++                return result;
++            }
++        }
++
++        root = root || Y.Selector.document;
++
++        if (root.nodeName !== '#document') { // prepend with root selector
++            Y.Dom.generateId(root); // TODO: cleanup after?
++            selector = root.tagName + '#' + root.id + ' ' + selector;
++            node = root;
++            root = root.ownerDocument;
++        }
++
++        var tokens = Y.Selector._tokenize(selector);
++        var idToken = tokens[Y.Selector._getIdTokenIndex(tokens)],
++            nodes = [],
++            id,
++            token = tokens.pop() || {};
++            
++        if (idToken) {
++            id = Y.Selector._getId(idToken.attributes);
++        }
++
++        // use id shortcut when possible
++        if (id) {
++            node = node || Y.Selector.document.getElementById(id);
++
++            if (node && (root.nodeName === '#document' || Y.Dom.isAncestor(root, node))) {
++                if ( Y.Selector._test(node, null, idToken) ) {
++                    if (idToken === token) {
++                        nodes = [node]; // simple selector
++                    } else if (idToken.combinator === ' ' || idToken.combinator === '>') {
++                        root = node; // start from here
++                    }
++                }
++            } else {
++                return result;
++            }
++        }
++
++        if (root && !nodes.length) {
++            nodes = root.getElementsByTagName(token.tag);
++        }
++
++        if (nodes.length) {
++            result = Y.Selector._filter(nodes, token, firstOnly, deDupe); 
++        }
++
++        return result;
++    },
++
++
++    _clearFoundCache: function() {
++        var foundCache = Y.Selector._foundCache;
++        YAHOO.log('getBySelector: clearing found cache of ' + foundCache.length + ' elements');
++        for (var i = 0, len = foundCache.length; i < len; ++i) {
++            try { // IE no like delete
++                delete foundCache[i]._found;
++            } catch(e) {
++                foundCache[i].removeAttribute('_found');
++            }
++        }
++        foundCache = [];
++        YAHOO.log('getBySelector: done clearing foundCache');
++    },
++
++
++    _getRegExp: function(str, flags) {
++        var regexCache = Y.Selector._regexCache;
++        flags = flags || '';
++        if (!regexCache[str + flags]) {
++            regexCache[str + flags] = new RegExp(str, flags);
++        }
++        return regexCache[str + flags];
++    },
++
++    _getChildren: function() {
++        if (document.documentElement.children && document.documentElement.children.tags) { // document for capability test
++            return function(node, tag) {
++                return (tag) ? node.children.tags(tag) : node.children || [];
++            };
++        } else {
++            return function(node, tag) {
++                var children = [],
++                    childNodes = node.childNodes;
++
++                for (var i = 0, len = childNodes.length; i < len; ++i) {
++                    if (childNodes[i].tagName) {
++                        if (!tag || childNodes[i].tagName === tag) {
++                            children.push(childNodes[i]);
++                        }
++                    }
++                }
++                return children;
++            };
++        }
++    }(),
++
++    _combinators: {
++        ' ': function(node, token) {
++            while ( (node = node.parentNode) ) {
++                if (Y.Selector._test(node, '', token.previous)) {
++                    return true;
++                }
++            }  
++            return false;
++        },
++
++        '>': function(node, token) {
++            return Y.Selector._test(node.parentNode, null, token.previous);
++        },
++
++        '+': function(node, token) {
++            var sib = node.previousSibling;
++            while (sib && sib.nodeType !== 1) {
++                sib = sib.previousSibling;
++            }
++
++            if (sib && Y.Selector._test(sib, null, token.previous)) {
++                return true; 
++            }
++            return false;
++        },
++
++        '~': function(node, token) {
++            var sib = node.previousSibling;
++            while (sib) {
++                if (sib.nodeType === 1 && Y.Selector._test(sib, null, token.previous)) {
++                    return true;
++                }
++                sib = sib.previousSibling;
++            }
++
++            return false;
++        }
++    },
++
++
++    /*
++        an+b = get every _a_th node starting at the _b_th
++        0n+b = no repeat ("0" and "n" may both be omitted (together) , e.g. "0n+1" or "1", not "0+1"), return only the _b_th element
++        1n+b =  get every element starting from b ("1" may may be omitted, e.g. "1n+0" or "n+0" or "n")
++        an+0 = get every _a_th element, "0" may be omitted 
++    */
++    _getNth: function(node, expr, tag, reverse) {
++        Y.Selector._re.nth.test(expr);
++        var a = parseInt(RegExp.$1, 10), // include every _a_ elements (zero means no repeat, just first _a_)
++            n = RegExp.$2, // "n"
++            oddeven = RegExp.$3, // "odd" or "even"
++            b = parseInt(RegExp.$4, 10) || 0, // start scan from element _b_
++            result = [],
++            op;
++
++        var siblings = Y.Selector._getChildren(node.parentNode, tag);
++
++        if (oddeven) {
++            a = 2; // always every other
++            op = '+';
++            n = 'n';
++            b = (oddeven === 'odd') ? 1 : 0;
++        } else if ( isNaN(a) ) {
++            a = (n) ? 1 : 0; // start from the first or no repeat
++        }
++
++        if (a === 0) { // just the first
++            if (reverse) {
++                b = siblings.length - b + 1; 
++            }
++
++            if (siblings[b - 1] === node) {
++                return true;
++            } else {
++                return false;
++            }
++
++        } else if (a < 0) {
++            reverse = !!reverse;
++            a = Math.abs(a);
++        }
++
++        if (!reverse) {
++            for (var i = b - 1, len = siblings.length; i < len; i += a) {
++                if ( i >= 0 && siblings[i] === node ) {
++                    return true;
++                }
++            }
++        } else {
++            for (var i = siblings.length - b, len = siblings.length; i >= 0; i -= a) {
++                if ( i < len && siblings[i] === node ) {
++                    return true;
++                }
++            }
++        }
++        return false;
++    },
++
++    _getId: function(attr) {
++        for (var i = 0, len = attr.length; i < len; ++i) {
++            if (attr[i][0] == 'id' && attr[i][1] === '=') {
++                return attr[i][2];
++            }
++        }
++    },
++
++    _getIdTokenIndex: function(tokens) {
++        for (var i = 0, len = tokens.length; i < len; ++i) {
++            if (Y.Selector._getId(tokens[i].attributes)) {
++                return i;
++            }
++        }
++        return -1;
++    },
++
++    _patterns: {
++        tag: /^((?:-?[_a-z]+[\w-]*)|\*)/i,
++        attributes: /^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,
++        pseudos: /^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,
++        combinator: /^\s*([>+~]|\s)\s*/
++    },
++
++    /**
++        Break selector into token units per simple selector.
++        Combinator is attached to left-hand selector.
++     */
++    _tokenize: function(selector) {
++        var token = {},     // one token per simple selector (left selector holds combinator)
++            tokens = [],    // array of tokens
++            id,             // unique id for the simple selector (if found)
++            found = false,  // whether or not any matches were found this pass
++            patterns = Y.Selector._patterns,
++            match;          // the regex match
++
++        selector = Y.Selector._replaceShorthand(selector); // convert ID and CLASS shortcuts to attributes
++
++        /*
++            Search for selector patterns, store, and strip them from the selector string
++            until no patterns match (invalid selector) or we run out of chars.
++
++            Multiple attributes and pseudos are allowed, in any order.
++            for example:
++                'form:first-child[type=button]:not(button)[lang|=en]'
++        */
++        do {
++            found = false; // reset after full pass
++            for (var re in patterns) {
++                if (YAHOO.lang.hasOwnProperty(patterns, re)) {
++                    if (re != 'tag' && re != 'combinator') { // only one allowed
++                        token[re] = token[re] || [];
++                    }
++                    if ( (match = patterns[re].exec(selector)) ) { // note assignment
++                        found = true;
++                        if (re != 'tag' && re != 'combinator') { // only one allowed
++                            // capture ID for fast path to element
++                            if (re === 'attributes' && match[1] === 'id') {
++                                token.id = match[3];
++                            }
++
++                            token[re].push(match.slice(1));
++                        } else { // single selector (tag, combinator)
++                            token[re] = match[1];
++                        }
++                        selector = selector.replace(match[0], ''); // strip current match from selector
++                        if (re === 'combinator' || !selector.length) { // next token or done
++                            token.attributes = Y.Selector._fixAttributes(token.attributes);
++                            token.pseudos = token.pseudos || [];
++                            token.tag = token.tag ? token.tag.toUpperCase() : '*';
++                            tokens.push(token);
++
++                            token = { // prep next token
++                                previous: token
++                            };
++                        }
++                    }
++                }
++            }
++        } while (found);
++
++        return tokens;
++    },
++
++
++    _fixAttributes: function(attr) {
++        var aliases = Y.Selector.attrAliases;
++        attr = attr || [];
++        for (var i = 0, len = attr.length; i < len; ++i) {
++            if (aliases[attr[i][0]]) { // convert reserved words, etc
++                attr[i][0] = aliases[attr[i][0]];
++            }
++            if (!attr[i][1]) { // use exists operator
++                attr[i][1] = '';
++            }
++        }
++        return attr;
++    },
++
++    _replaceShorthand: function(selector) {
++        var shorthand = Y.Selector.shorthand;
++
++        //var attrs = selector.match(Y.Selector._patterns.attributes); // pull attributes to avoid false pos on "." and "#"
++        var attrs = selector.match(Y.Selector._re.attr); // pull attributes to avoid false pos on "." and "#"
++        if (attrs) {
++            selector = selector.replace(Y.Selector._re.attr, 'REPLACED_ATTRIBUTE');
++        }
++        for (var re in shorthand) {
++            if (YAHOO.lang.hasOwnProperty(shorthand, re)) {
++                selector = selector.replace(Y.Selector._getRegExp(re, 'gi'), shorthand[re]);
++            }
++        }
++
++        if (attrs) {
++            for (var i = 0, len = attrs.length; i < len; ++i) {
++                selector = selector.replace('REPLACED_ATTRIBUTE', attrs[i]);
++            }
++        }
++        return selector;
++    }
++};
++
++if (YAHOO.env.ua.ie && YAHOO.env.ua.ie < 8) { // rewrite class for IE < 8
++    Y.Selector.attrAliases['class'] = 'className';
++    Y.Selector.attrAliases['for'] = 'htmlFor';
++}
++
++})();
++YAHOO.register("selector", YAHOO.util.Selector, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/selector/selector-min.js b/pylons_app/public/js/yui/selector/selector-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/selector/selector-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var A=YAHOO.util;A.Selector={_foundCache:[],_regexCache:{},_re:{nth:/^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,attr:/(\[.*\])/g,urls:/^(?:href|src)/},document:window.document,attrAliases:{},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[class~=$1]"},operators:{"=":function(B,C){return B===C;},"!=":function(B,C){return B!==C;},"~=":function(B,D){var C=" ";return(C+B+C).indexOf((C+D+C))>-1;},"|=":function(B,C){return B===C||B.slice(0,C.length+1)===C+"-";},"^=":function(B,C){return B.indexOf(C)===0;},"$=":function(B,C){return B.slice(-C.length)===C;},"*=":function(B,C){return B.indexOf(C)>-1;},"":function(B,C){return B;}},pseudos:{"root":function(B){return B===B.ownerDocument.documentElement;},"nth-child":function(B,C){return A.Selector._getNth(B,C);},"nth-last-child":function(B,C){return A.Selector._getNth(B,C,null,true);},"nth-of-type":function(B,C){return A.Selector._getNth(B,C,B.tagName);},"nth-last-of-type":function(B,C){return A.Selector._getNth(B,C,B.tagName,true);},"first-child":function(B){return A.Selector._getChildren(B.parentNode)[0]===B;},"last-child":function(C){var B=A.Selector._getChildren(C.parentNode);return B[B.length-1]===C;},"first-of-type":function(B,C){return A.Selector._getChildren(B.parentNode,B.tagName)[0];},"last-of-type":function(C,D){var B=A.Selector._getChildren(C.parentNode,C.tagName);return B[B.length-1];},"only-child":function(C){var B=A.Selector._getChildren(C.parentNode);return B.length===1&&B[0]===C;},"only-of-type":function(B){return A.Selector._getChildren(B.parentNode,B.tagName).length===1;},"empty":function(B){return B.childNodes.length===0;},"not":function(B,C){return !A.Selector.test(B,C);},"contains":function(B,D){var C=B.innerText||B.textContent||"";return C.indexOf(D)>-1;},"checked":function(B){return B.checked===true;}},test:function(F,D){F=A.Selector.document.getElementById(F)||F;if(!F){return false;}var C=D?D.split(","):[];if(C.length){for(var E=0,B=C.length;E<B;++E){if(A.Selector._test(F,C[E])){return true;}}return false;}return A.Selector._test(F,D);},_test:function(D,G,F,E){F=F||A.Selector._tokenize(G).pop()||{};if(!D.tagName||(F.tag!=="*"&&D.tagName!==F.tag)||(E&&D._found)){return false;}if(F.attributes.length){var B,H,C=A.Selector._re.urls;if(!D.attributes||!D.attributes.length){return false;}for(var I=0,K;K=F.attributes[I++];){H=(C.test(K[0]))?2:0;B=D.getAttribute(K[0],H);if(B===null||B===undefined){return false;}if(A.Selector.operators[K[1]]&&!A.Selector.operators[K[1]](B,K[2])){return false;}}}if(F.pseudos.length){for(var I=0,J=F.pseudos.length;I<J;++I){if(A.Selector.pseudos[F.pseudos[I][0]]&&!A.Selector.pseudos[F.pseudos[I][0]](D,F.pseudos[I][1])){return false;}}}return(F.previous&&F.previous.combinator!==",")?A.Selector._combinators[F.previous.combinator](D,F):true;},filter:function(E,D){E=E||[];var G,C=[],H=A.Selector._tokenize(D);if(!E.item){for(var F=0,B=E.length;F<B;++F){if(!E[F].tagName){G=A.Selector.document.getElementById(E[F]);if(G){E[F]=G;}else{}}}}C=A.Selector._filter(E,A.Selector._tokenize(D)[0]);return C;},_filter:function(E,G,H,D){var C=H?null:[],I=A.Selector._foundCache;for(var F=0,B=E.length;F<B;F++){if(!A.Selector._test(E[F],"",G,D)){continue;}if(H){return E[F];}if(D){if(E[F]._found){continue;}E[F]._found=true;I[I.length]=E[F];}C[C.length]=E[F];}return C;},query:function(C,D,E){var B=A.Selector._query(C,D,E);return B;},_query:function(H,M,N,F){var P=(N)?null:[],E;if(!H){return P;}var D=H.split(",");if(D.length>1){var O;for(var I=0,J=D.length;I<J;++I){O=A.Selector._query(D[I],M,N,true);P=N?O:P.concat(O);}A.Selector._clearFoundCache();return P;}if(M&&!M.nodeName){M=A.Selector.document.getElementById(M);if(!M){return P;}}M=M||A.Selector.document;if(M.nodeName!=="#document"){A.Dom.generateId(M);H=M.tagName+"#"+M.id+" "+H;E=M;M=M.ownerDocument;}var L=A.Selector._tokenize(H);var K=L[A.Selector._getIdTokenIndex(L)],B=[],C,G=L.pop()||{};if(K){C=A.Selector._getId(K.attributes);}if(C){E=E||A.Selector.document.getElementById(C);if(E&&(M.nodeName==="#document"||A.Dom.isAncestor(M,E))){if(A.Selector._test(E,null,K)){if(K===G){B=[E];}else{if(K.combinator===" "||K.combinator===">"){M=E;}}}}else{return P;}}if(M&&!B.length){B=M.getElementsByTagName(G.tag);}if(B.length){P=A.Selector._filter(B,G,N,F);}return P;},_clearFoundCache:function(){var E=A.Selector._foundCache;for(var C=0,B=E.length;C<B;++C){try{delete E[C]._found;}catch(D){E[C].removeAttribute("_found");}}E=[];},_getRegExp:function(D,B){var C=A.Selector._regexCache;B=B||"";if(!C[D+B]){C[D+B]=new RegExp(D,B);}return C[D+B];},_getChildren:function(){if(document.documentElement.children&&document.documentElement.children.tags){return function(C,B){return(B)?C.children.tags(B):C.children||[];};}else{return function(F,C){var E=[],G=F.childNodes;for(var D=0,B=G.length;D<B;++D){if(G[D].tagName){if(!C||G[D].tagName===C){E.push(G[D]);}}}return E;};}}(),_combinators:{" ":function(C,B){while((C=C.parentNode)){if(A.Selector._test(C,"",B.previous)){return true;}}return false;},">":function(C,B){return A.Selector._test(C.parentNode,null,B.previous);},"+":function(D,C){var B=D.previousSibling;while(B&&B.nodeType!==1){B=B.previousSibling;}if(B&&A.Selector._test(B,null,C.previous)){return true;}return false;},"~":function(D,C){var B=D.previousSibling;while(B){if(B.nodeType===1&&A.Selector._test(B,null,C.previous)){return true;}B=B.previousSibling;}return false;}},_getNth:function(C,L,N,G){A.Selector._re.nth.test(L);var K=parseInt(RegExp.$1,10),B=RegExp.$2,H=RegExp.$3,I=parseInt(RegExp.$4,10)||0,M=[],E;var J=A.Selector._getChildren(C.parentNode,N);if(H){K=2;E="+";B="n";I=(H==="odd")?1:0;}else{if(isNaN(K)){K=(B)?1:0;}}if(K===0){if(G){I=J.length-I+1;}if(J[I-1]===C){return true;}else{return false;}}else{if(K<0){G=!!G;K=Math.abs(K);}}if(!G){for(var D=I-1,F=J.length;D<F;D+=K){if(D>=0&&J[D]===C){return true;}}}else{for(var D=J.length-I,F=J.length;D>=0;D-=K){if(D<F&&J[D]===C){return true;}}}return false;},_getId:function(C){for(var D=0,B=C.length;D<B;++D){if(C[D][0]=="id"&&C[D][1]==="="){return C[D][2];
++}}},_getIdTokenIndex:function(D){for(var C=0,B=D.length;C<B;++C){if(A.Selector._getId(D[C].attributes)){return C;}}return -1;},_patterns:{tag:/^((?:-?[_a-z]+[\w-]*)|\*)/i,attributes:/^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,pseudos:/^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,combinator:/^\s*([>+~]|\s)\s*/},_tokenize:function(B){var D={},H=[],I,G=false,F=A.Selector._patterns,C;B=A.Selector._replaceShorthand(B);do{G=false;for(var E in F){if(YAHOO.lang.hasOwnProperty(F,E)){if(E!="tag"&&E!="combinator"){D[E]=D[E]||[];}if((C=F[E].exec(B))){G=true;if(E!="tag"&&E!="combinator"){if(E==="attributes"&&C[1]==="id"){D.id=C[3];}D[E].push(C.slice(1));}else{D[E]=C[1];}B=B.replace(C[0],"");if(E==="combinator"||!B.length){D.attributes=A.Selector._fixAttributes(D.attributes);D.pseudos=D.pseudos||[];D.tag=D.tag?D.tag.toUpperCase():"*";H.push(D);D={previous:D};}}}}}while(G);return H;},_fixAttributes:function(C){var D=A.Selector.attrAliases;C=C||[];for(var E=0,B=C.length;E<B;++E){if(D[C[E][0]]){C[E][0]=D[C[E][0]];}if(!C[E][1]){C[E][1]="";}}return C;},_replaceShorthand:function(C){var D=A.Selector.shorthand;var E=C.match(A.Selector._re.attr);if(E){C=C.replace(A.Selector._re.attr,"REPLACED_ATTRIBUTE");}for(var G in D){if(YAHOO.lang.hasOwnProperty(D,G)){C=C.replace(A.Selector._getRegExp(G,"gi"),D[G]);}}if(E){for(var F=0,B=E.length;F<B;++F){C=C.replace("REPLACED_ATTRIBUTE",E[F]);}}return C;}};if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<8){A.Selector.attrAliases["class"]="className";A.Selector.attrAliases["for"]="htmlFor";}})();YAHOO.register("selector",YAHOO.util.Selector,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/selector/selector.js b/pylons_app/public/js/yui/selector/selector.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/selector/selector.js
+@@ -0,0 +1,644 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The selector module provides helper methods allowing CSS3 Selectors to be used with DOM elements.
++ * @module selector
++ * @title Selector Utility
++ * @namespace YAHOO.util
++ * @requires yahoo, dom
++ */
++
++(function() {
++var Y = YAHOO.util;
++
++/**
++ * Provides helper methods for collecting and filtering DOM elements.
++ * @namespace YAHOO.util
++ * @class Selector
++ * @static
++ */
++
++Y.Selector = {
++    _foundCache: [],
++    _regexCache: {},
++
++    _re: {
++        nth: /^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/,
++        attr: /(\[.*\])/g,
++        urls: /^(?:href|src)/
++    },
++
++    /**
++     * Default document for use queries 
++     * @property document
++     * @type object
++     * @default window.document
++     */
++    document: window.document,
++    /**
++     * Mapping of attributes to aliases, normally to work around HTMLAttributes
++     * that conflict with JS reserved words.
++     * @property attrAliases
++     * @type object
++     */
++    attrAliases: {
++    },
++
++    /**
++     * Mapping of shorthand tokens to corresponding attribute selector 
++     * @property shorthand
++     * @type object
++     */
++    shorthand: {
++        //'(?:(?:[^\\)\\]\\s*>+~,]+)(?:-?[_a-z]+[-\\w]))+#(-?[_a-z]+[-\\w]*)': '[id=$1]',
++        '\\#(-?[_a-z]+[-\\w]*)': '[id=$1]',
++        '\\.(-?[_a-z]+[-\\w]*)': '[class~=$1]'
++    },
++
++    /**
++     * List of operators and corresponding boolean functions. 
++     * These functions are passed the attribute and the current node's value of the attribute.
++     * @property operators
++     * @type object
++     */
++    operators: {
++        '=': function(attr, val) { return attr === val; }, // Equality
++        '!=': function(attr, val) { return attr !== val; }, // Inequality
++        '~=': function(attr, val) { // Match one of space seperated words 
++            var s = ' ';
++            return (s + attr + s).indexOf((s + val + s)) > -1;
++        },
++        '|=': function(attr, val) { return attr === val || attr.slice(0, val.length + 1) === val + '-'; }, // Matches value followed by optional hyphen
++        '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
++        '$=': function(attr, val) { return attr.slice(-val.length) === val; }, // Match ends with value
++        '*=': function(attr, val) { return attr.indexOf(val) > -1; }, // Match contains value as substring 
++        '': function(attr, val) { return attr; } // Just test for existence of attribute
++    },
++
++    /**
++     * List of pseudo-classes and corresponding boolean functions. 
++     * These functions are called with the current node, and any value that was parsed with the pseudo regex.
++     * @property pseudos
++     * @type object
++     */
++    pseudos: {
++        'root': function(node) {
++            return node === node.ownerDocument.documentElement;
++        },
++
++        'nth-child': function(node, val) {
++            return Y.Selector._getNth(node, val);
++        },
++
++        'nth-last-child': function(node, val) {
++            return Y.Selector._getNth(node, val, null, true);
++        },
++
++        'nth-of-type': function(node, val) {
++            return Y.Selector._getNth(node, val, node.tagName);
++        },
++         
++        'nth-last-of-type': function(node, val) {
++            return Y.Selector._getNth(node, val, node.tagName, true);
++        },
++         
++        'first-child': function(node) {
++            return Y.Selector._getChildren(node.parentNode)[0] === node;
++        },
++
++        'last-child': function(node) {
++            var children = Y.Selector._getChildren(node.parentNode);
++            return children[children.length - 1] === node;
++        },
++
++        'first-of-type': function(node, val) {
++            return Y.Selector._getChildren(node.parentNode, node.tagName)[0];
++        },
++         
++        'last-of-type': function(node, val) {
++            var children = Y.Selector._getChildren(node.parentNode, node.tagName);
++            return children[children.length - 1];
++        },
++         
++        'only-child': function(node) {
++            var children = Y.Selector._getChildren(node.parentNode);
++            return children.length === 1 && children[0] === node;
++        },
++
++        'only-of-type': function(node) {
++            return Y.Selector._getChildren(node.parentNode, node.tagName).length === 1;
++        },
++
++        'empty': function(node) {
++            return node.childNodes.length === 0;
++        },
++
++        'not': function(node, simple) {
++            return !Y.Selector.test(node, simple);
++        },
++
++        'contains': function(node, str) {
++            var text = node.innerText || node.textContent || '';
++            return text.indexOf(str) > -1;
++        },
++        'checked': function(node) {
++            return node.checked === true;
++        }
++    },
++
++    /**
++     * Test if the supplied node matches the supplied selector.
++     * @method test
++     *
++     * @param {HTMLElement | String} node An id or node reference to the HTMLElement being tested.
++     * @param {string} selector The CSS Selector to test the node against.
++     * @return{boolean} Whether or not the node matches the selector.
++     * @static
++    
++     */
++    test: function(node, selector) {
++        node = Y.Selector.document.getElementById(node) || node;
++
++        if (!node) {
++            return false;
++        }
++
++        var groups = selector ? selector.split(',') : [];
++        if (groups.length) {
++            for (var i = 0, len = groups.length; i < len; ++i) {
++                if ( Y.Selector._test(node, groups[i]) ) { // passes if ANY group matches
++                    return true;
++                }
++            }
++            return false;
++        }
++        return Y.Selector._test(node, selector);
++    },
++
++    _test: function(node, selector, token, deDupe) {
++        token = token || Y.Selector._tokenize(selector).pop() || {};
++
++        if (!node.tagName ||
++            (token.tag !== '*' && node.tagName !== token.tag) ||
++            (deDupe && node._found) ) {
++            return false;
++        }
++
++        if (token.attributes.length) {
++            var val,
++                ieFlag,
++                re_urls = Y.Selector._re.urls;
++
++            if (!node.attributes || !node.attributes.length) {
++                return false;
++            }
++            for (var i = 0, attr; attr = token.attributes[i++];) {
++                ieFlag = (re_urls.test(attr[0])) ? 2 : 0;
++                val = node.getAttribute(attr[0], ieFlag);
++                if (val === null || val === undefined) {
++                    return false;
++                }
++                if ( Y.Selector.operators[attr[1]] &&
++                        !Y.Selector.operators[attr[1]](val, attr[2])) {
++                    return false;
++                }
++            }
++        }
++
++        if (token.pseudos.length) {
++            for (var i = 0, len = token.pseudos.length; i < len; ++i) {
++                if (Y.Selector.pseudos[token.pseudos[i][0]] &&
++                        !Y.Selector.pseudos[token.pseudos[i][0]](node, token.pseudos[i][1])) {
++                    return false;
++                }
++            }
++        }
++
++        return (token.previous && token.previous.combinator !== ',') ?
++                Y.Selector._combinators[token.previous.combinator](node, token) :
++                true;
++    },
++
++    /**
++     * Filters a set of nodes based on a given CSS selector. 
++     * @method filter
++     *
++     * @param {array} nodes A set of nodes/ids to filter. 
++     * @param {string} selector The selector used to test each node.
++     * @return{array} An array of nodes from the supplied array that match the given selector.
++     * @static
++     */
++    filter: function(nodes, selector) {
++        nodes = nodes || [];
++
++        var node,
++            result = [],
++            tokens = Y.Selector._tokenize(selector);
++
++        if (!nodes.item) { // if not HTMLCollection, handle arrays of ids and/or nodes
++            for (var i = 0, len = nodes.length; i < len; ++i) {
++                if (!nodes[i].tagName) { // tagName limits to HTMLElements 
++                    node = Y.Selector.document.getElementById(nodes[i]);
++                    if (node) { // skip IDs that return null 
++                        nodes[i] = node;
++                    } else {
++                    }
++                }
++            }
++        }
++        result = Y.Selector._filter(nodes, Y.Selector._tokenize(selector)[0]);
++        return result;
++    },
++
++    _filter: function(nodes, token, firstOnly, deDupe) {
++        var result = firstOnly ? null : [],
++            foundCache = Y.Selector._foundCache;
++
++        for (var i = 0, len = nodes.length; i < len; i++) {
++            if (! Y.Selector._test(nodes[i], '', token, deDupe)) {
++                continue;
++            }
++
++            if (firstOnly) {
++                return nodes[i];
++            }
++            if (deDupe) {
++                if (nodes[i]._found) {
++                    continue;
++                }
++                nodes[i]._found = true;
++                foundCache[foundCache.length] = nodes[i];
++            }
++
++            result[result.length] = nodes[i];
++        }
++
++        return result;
++    },
++
++    /**
++     * Retrieves a set of nodes based on a given CSS selector. 
++     * @method query
++     *
++     * @param {string} selector The CSS Selector to test the node against.
++     * @param {HTMLElement | String} root optional An id or HTMLElement to start the query from. Defaults to Selector.document.
++     * @param {Boolean} firstOnly optional Whether or not to return only the first match.
++     * @return {Array} An array of nodes that match the given selector.
++     * @static
++     */
++    query: function(selector, root, firstOnly) {
++        var result = Y.Selector._query(selector, root, firstOnly);
++        return result;
++    },
++
++
++    _query: function(selector, root, firstOnly, deDupe) {
++        var result =  (firstOnly) ? null : [],
++            node;
++
++        if (!selector) {
++            return result;
++        }
++
++        var groups = selector.split(','); // TODO: handle comma in attribute/pseudo
++
++        if (groups.length > 1) {
++            var found;
++            for (var i = 0, len = groups.length; i < len; ++i) {
++                found = Y.Selector._query(groups[i], root, firstOnly, true);
++                result = firstOnly ? found : result.concat(found); 
++            }
++            Y.Selector._clearFoundCache();
++            return result;
++        }
++
++        if (root && !root.nodeName) { // assume ID
++            root = Y.Selector.document.getElementById(root);
++            if (!root) {
++                return result;
++            }
++        }
++
++        root = root || Y.Selector.document;
++
++        if (root.nodeName !== '#document') { // prepend with root selector
++            Y.Dom.generateId(root); // TODO: cleanup after?
++            selector = root.tagName + '#' + root.id + ' ' + selector;
++            node = root;
++            root = root.ownerDocument;
++        }
++
++        var tokens = Y.Selector._tokenize(selector);
++        var idToken = tokens[Y.Selector._getIdTokenIndex(tokens)],
++            nodes = [],
++            id,
++            token = tokens.pop() || {};
++            
++        if (idToken) {
++            id = Y.Selector._getId(idToken.attributes);
++        }
++
++        // use id shortcut when possible
++        if (id) {
++            node = node || Y.Selector.document.getElementById(id);
++
++            if (node && (root.nodeName === '#document' || Y.Dom.isAncestor(root, node))) {
++                if ( Y.Selector._test(node, null, idToken) ) {
++                    if (idToken === token) {
++                        nodes = [node]; // simple selector
++                    } else if (idToken.combinator === ' ' || idToken.combinator === '>') {
++                        root = node; // start from here
++                    }
++                }
++            } else {
++                return result;
++            }
++        }
++
++        if (root && !nodes.length) {
++            nodes = root.getElementsByTagName(token.tag);
++        }
++
++        if (nodes.length) {
++            result = Y.Selector._filter(nodes, token, firstOnly, deDupe); 
++        }
++
++        return result;
++    },
++
++
++    _clearFoundCache: function() {
++        var foundCache = Y.Selector._foundCache;
++        for (var i = 0, len = foundCache.length; i < len; ++i) {
++            try { // IE no like delete
++                delete foundCache[i]._found;
++            } catch(e) {
++                foundCache[i].removeAttribute('_found');
++            }
++        }
++        foundCache = [];
++    },
++
++
++    _getRegExp: function(str, flags) {
++        var regexCache = Y.Selector._regexCache;
++        flags = flags || '';
++        if (!regexCache[str + flags]) {
++            regexCache[str + flags] = new RegExp(str, flags);
++        }
++        return regexCache[str + flags];
++    },
++
++    _getChildren: function() {
++        if (document.documentElement.children && document.documentElement.children.tags) { // document for capability test
++            return function(node, tag) {
++                return (tag) ? node.children.tags(tag) : node.children || [];
++            };
++        } else {
++            return function(node, tag) {
++                var children = [],
++                    childNodes = node.childNodes;
++
++                for (var i = 0, len = childNodes.length; i < len; ++i) {
++                    if (childNodes[i].tagName) {
++                        if (!tag || childNodes[i].tagName === tag) {
++                            children.push(childNodes[i]);
++                        }
++                    }
++                }
++                return children;
++            };
++        }
++    }(),
++
++    _combinators: {
++        ' ': function(node, token) {
++            while ( (node = node.parentNode) ) {
++                if (Y.Selector._test(node, '', token.previous)) {
++                    return true;
++                }
++            }  
++            return false;
++        },
++
++        '>': function(node, token) {
++            return Y.Selector._test(node.parentNode, null, token.previous);
++        },
++
++        '+': function(node, token) {
++            var sib = node.previousSibling;
++            while (sib && sib.nodeType !== 1) {
++                sib = sib.previousSibling;
++            }
++
++            if (sib && Y.Selector._test(sib, null, token.previous)) {
++                return true; 
++            }
++            return false;
++        },
++
++        '~': function(node, token) {
++            var sib = node.previousSibling;
++            while (sib) {
++                if (sib.nodeType === 1 && Y.Selector._test(sib, null, token.previous)) {
++                    return true;
++                }
++                sib = sib.previousSibling;
++            }
++
++            return false;
++        }
++    },
++
++
++    /*
++        an+b = get every _a_th node starting at the _b_th
++        0n+b = no repeat ("0" and "n" may both be omitted (together) , e.g. "0n+1" or "1", not "0+1"), return only the _b_th element
++        1n+b =  get every element starting from b ("1" may may be omitted, e.g. "1n+0" or "n+0" or "n")
++        an+0 = get every _a_th element, "0" may be omitted 
++    */
++    _getNth: function(node, expr, tag, reverse) {
++        Y.Selector._re.nth.test(expr);
++        var a = parseInt(RegExp.$1, 10), // include every _a_ elements (zero means no repeat, just first _a_)
++            n = RegExp.$2, // "n"
++            oddeven = RegExp.$3, // "odd" or "even"
++            b = parseInt(RegExp.$4, 10) || 0, // start scan from element _b_
++            result = [],
++            op;
++
++        var siblings = Y.Selector._getChildren(node.parentNode, tag);
++
++        if (oddeven) {
++            a = 2; // always every other
++            op = '+';
++            n = 'n';
++            b = (oddeven === 'odd') ? 1 : 0;
++        } else if ( isNaN(a) ) {
++            a = (n) ? 1 : 0; // start from the first or no repeat
++        }
++
++        if (a === 0) { // just the first
++            if (reverse) {
++                b = siblings.length - b + 1; 
++            }
++
++            if (siblings[b - 1] === node) {
++                return true;
++            } else {
++                return false;
++            }
++
++        } else if (a < 0) {
++            reverse = !!reverse;
++            a = Math.abs(a);
++        }
++
++        if (!reverse) {
++            for (var i = b - 1, len = siblings.length; i < len; i += a) {
++                if ( i >= 0 && siblings[i] === node ) {
++                    return true;
++                }
++            }
++        } else {
++            for (var i = siblings.length - b, len = siblings.length; i >= 0; i -= a) {
++                if ( i < len && siblings[i] === node ) {
++                    return true;
++                }
++            }
++        }
++        return false;
++    },
++
++    _getId: function(attr) {
++        for (var i = 0, len = attr.length; i < len; ++i) {
++            if (attr[i][0] == 'id' && attr[i][1] === '=') {
++                return attr[i][2];
++            }
++        }
++    },
++
++    _getIdTokenIndex: function(tokens) {
++        for (var i = 0, len = tokens.length; i < len; ++i) {
++            if (Y.Selector._getId(tokens[i].attributes)) {
++                return i;
++            }
++        }
++        return -1;
++    },
++
++    _patterns: {
++        tag: /^((?:-?[_a-z]+[\w-]*)|\*)/i,
++        attributes: /^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,
++        pseudos: /^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,
++        combinator: /^\s*([>+~]|\s)\s*/
++    },
++
++    /**
++        Break selector into token units per simple selector.
++        Combinator is attached to left-hand selector.
++     */
++    _tokenize: function(selector) {
++        var token = {},     // one token per simple selector (left selector holds combinator)
++            tokens = [],    // array of tokens
++            id,             // unique id for the simple selector (if found)
++            found = false,  // whether or not any matches were found this pass
++            patterns = Y.Selector._patterns,
++            match;          // the regex match
++
++        selector = Y.Selector._replaceShorthand(selector); // convert ID and CLASS shortcuts to attributes
++
++        /*
++            Search for selector patterns, store, and strip them from the selector string
++            until no patterns match (invalid selector) or we run out of chars.
++
++            Multiple attributes and pseudos are allowed, in any order.
++            for example:
++                'form:first-child[type=button]:not(button)[lang|=en]'
++        */
++        do {
++            found = false; // reset after full pass
++            for (var re in patterns) {
++                if (YAHOO.lang.hasOwnProperty(patterns, re)) {
++                    if (re != 'tag' && re != 'combinator') { // only one allowed
++                        token[re] = token[re] || [];
++                    }
++                    if ( (match = patterns[re].exec(selector)) ) { // note assignment
++                        found = true;
++                        if (re != 'tag' && re != 'combinator') { // only one allowed
++                            // capture ID for fast path to element
++                            if (re === 'attributes' && match[1] === 'id') {
++                                token.id = match[3];
++                            }
++
++                            token[re].push(match.slice(1));
++                        } else { // single selector (tag, combinator)
++                            token[re] = match[1];
++                        }
++                        selector = selector.replace(match[0], ''); // strip current match from selector
++                        if (re === 'combinator' || !selector.length) { // next token or done
++                            token.attributes = Y.Selector._fixAttributes(token.attributes);
++                            token.pseudos = token.pseudos || [];
++                            token.tag = token.tag ? token.tag.toUpperCase() : '*';
++                            tokens.push(token);
++
++                            token = { // prep next token
++                                previous: token
++                            };
++                        }
++                    }
++                }
++            }
++        } while (found);
++
++        return tokens;
++    },
++
++
++    _fixAttributes: function(attr) {
++        var aliases = Y.Selector.attrAliases;
++        attr = attr || [];
++        for (var i = 0, len = attr.length; i < len; ++i) {
++            if (aliases[attr[i][0]]) { // convert reserved words, etc
++                attr[i][0] = aliases[attr[i][0]];
++            }
++            if (!attr[i][1]) { // use exists operator
++                attr[i][1] = '';
++            }
++        }
++        return attr;
++    },
++
++    _replaceShorthand: function(selector) {
++        var shorthand = Y.Selector.shorthand;
++
++        //var attrs = selector.match(Y.Selector._patterns.attributes); // pull attributes to avoid false pos on "." and "#"
++        var attrs = selector.match(Y.Selector._re.attr); // pull attributes to avoid false pos on "." and "#"
++        if (attrs) {
++            selector = selector.replace(Y.Selector._re.attr, 'REPLACED_ATTRIBUTE');
++        }
++        for (var re in shorthand) {
++            if (YAHOO.lang.hasOwnProperty(shorthand, re)) {
++                selector = selector.replace(Y.Selector._getRegExp(re, 'gi'), shorthand[re]);
++            }
++        }
++
++        if (attrs) {
++            for (var i = 0, len = attrs.length; i < len; ++i) {
++                selector = selector.replace('REPLACED_ATTRIBUTE', attrs[i]);
++            }
++        }
++        return selector;
++    }
++};
++
++if (YAHOO.env.ua.ie && YAHOO.env.ua.ie < 8) { // rewrite class for IE < 8
++    Y.Selector.attrAliases['class'] = 'className';
++    Y.Selector.attrAliases['for'] = 'htmlFor';
++}
++
++})();
++YAHOO.register("selector", YAHOO.util.Selector, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/slider/assets/bg-fader.gif b/pylons_app/public/js/yui/slider/assets/bg-fader.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..7db8eb72ce5849c507d61c2bc0dd4f02f51f8178
+GIT binary patch
+literal 433
+zc$@*T0Z#r$Nk%w1VbK5_0J8`H>+9?F_4VQ5;mOI#r>CchiHWzjx7XL#|Ns9000000
+z00000000000000000000A^8LW000O8EC2ui0MP&(000F45Xniay*TU5yZ>M)j$~<`
+zXsWJk>%MR-&%s!WcbJ3w*L%NCkTcvAHN(S5DPo44Am~Txp?0hs>_)4>ax-5{_%gPX
+zD`!f2vX-<FZ|`#6q(ALZ{8Z28U;SBtTY_DLU}A=db&Ge5d5(LKeUg8aftG`qg_?&K
+z03)9wp&_Fnr5~prsU52vtsAczu`{%_wznn)y1Tr+zQ4f1!o$SH#>dFX%FDt8WCzgE
+z($mz{*4NnC+S}aS-rwNi*#c(b=I7|?>g(*=<Q4|;^7Hid_V@Vt`uqI-{{H|23d}bE
+z!;uUJ4cb_UgP{(GJRqt`M24ani)b)T<fP~#$BG|bJvJKoh-4&_lTcPtd5L8vmz!XA
+z5?Qk5Nt;zPro_3DCmfw_fc^}bk?2O59g89bxs>M3r#X%8geqYc2CJSxX%)4VR9919
+bafuyEwyfE+Xw#})%eJlCw{YW@hyVaP!M@qB
+
+diff --git a/pylons_app/public/js/yui/slider/assets/bg-h.gif b/pylons_app/public/js/yui/slider/assets/bg-h.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..996288916e82bf2972bb4b8097f1b4a0869955d2
+GIT binary patch
+literal 212
+zc$@*$04x7TNk%w1VbK5_0HOu};o;%Q$;qdur-_M)x3{;~*Vq65{{R30A^8LW000I6
+zEC2ui0MP&(000A-Xu90~Fv>}*y*TU5yZ>M)j$~<`XsWJk>%MR-&vb3yc&_h!@BhG{
+za7Zi~kI1BQ$!t1BgQ#>$ty-_xtai)odcWYXI4gJ*&gisy&2GEj@VI<VuiNkVIKYwb
+z`~QG}f`fB=4g`paii?bmj*pO$l9QB`mY0~BkO5Dfo}ZwhqNAjxrl+W>s;jK6uCK7M
+Ova__cwzs%A2>?48g>Yp6
+
+diff --git a/pylons_app/public/js/yui/slider/assets/bg-v-e.gif b/pylons_app/public/js/yui/slider/assets/bg-v-e.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..d2a4216571d2323b95201cd13e07fc2b65934f7e
+GIT binary patch
+literal 476
+zc$@*;0VDoLNk%w1VI%;;0J8}I_4W1Z>+9+1>Fw?9)6>)2+uOIdx2LD4*Voto|Nj60
+z00000000000000000000A^8LW000R9EC2ui03-my000F4Fv&@)y*TU5yZ>M)0f6`k
+z2r`)6ks4Mi&q(RH2+VG{zGuCkCMd)Zi<TpjqFhRvPUupKq!z70>`%Mnvb-j+NE{-A
+zpfsAT^>S9sANZ~9p2*p`x}C1SbNoDfb$~;HZiGOFQHoQHRgPDXS(00dX)|kolwF%&
+zonfD2p=G0IrE#Zod3p(mMyYr{gRq*beYAnLv$}`4g}jTvmok~Tvc15K$&bsC&6CfS
+z(VWws)u7j+*`(X1-KgKH$HC*u<;>^K>CofDDaF6*((=^w*7n%=+WOr5-u~bKieuHv
+zSE6vS2)eqkFp0re2x|#U$O?@+cn2p+RQQl#M~4xKjd2VaZ=^<%6+gaF$%N$|k{M0P
+zObHX>$&wY^)d)EAR!xsTLEel>bEwUpyNm)=DikR)rYnO+h1ybTRjMzsKCyI>XHlo*
+zz?u__j;uPf?9k3rTaWEMxA|gp9r(4bPpt*5W`(<tZ$H2P0DHYFm@Z+vbqJ&=Aa@wX
+S3;_ZVoJ_g0<;w&k0028&O7A-W
+
+diff --git a/pylons_app/public/js/yui/slider/assets/bg-v.gif b/pylons_app/public/js/yui/slider/assets/bg-v.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..8e287cd52222c75c8f921cfdd4b4ae02b783c0e4
+GIT binary patch
+literal 481
+zc$@*@0UrKGNk%w1VI%<H0J8}I>+9?F_4V!T?c3Yi)6>)G>FKw(x2LD4*Voto|Nj60
+z00000000000000000000A^8LW000R9EC2ui03-n5000F4Fv&@)y*TU5yZ>M)1%db#
+z2qKu>ks2)LB5<tDwT<C=#`l*Wup%5zipB)exEwZt&t6nFwN+zRR@Sr?bwgiJ_%rsD
+zTdySLEK92;>`naUe$Rb%^?jF5?t^_yflh-^g;Ix9iB^kPjarXfkzSKvm137<nP!`4
+zG;eU7ZJ(fj7N$g^a;kKscC2`=da!)5ezbtLg1UsfhQ5fvio%S<j>eG4lFF3Kmd=>a
+zn$n!qo;kDDqu96FtKO~LyW+j%zvjW{!|KKC$L`7S%ks_i&-T&y)B4r?*Pu#pof4P|
+zTr7Xv0HRt$kfFg^2){)Pr?BA>i=iIons~6H#(^J>3vz_$apcC5C`(}s7}B9hkS|51
+zeAV(|&5SW!&diq6W>1_uyZvN2bfM3n<B*n9dX8y2r|Y1$llqQoJgf7t*3){AYd)|0
+z!1fdSPvuRbWD}Y#y3#1nwP_{Br3kk!O}1y<qP5F&Zb!aC{gMQnl<-o+O%Xp;9F_4@
+X$5lZQNHG9l0ssIkYu?ORO#}ct&2adY
+
+diff --git a/pylons_app/public/js/yui/slider/assets/left-thumb.png b/pylons_app/public/js/yui/slider/assets/left-thumb.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..ca90ecb4f0dc1ef6abef7fe7c86f1fde3ee188e8
+GIT binary patch
+literal 348
+zc$@)T0i*tjP)<h;3K|Lk000e1NJLTq000#L000yS1^@s6VoP>20000PbVXQnQ*UN;
+zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUy{z*hZRCwB~lEH0+Fc3xm3`q1q2~@G2
+zC21jwvQg?t0b2zHusLLpT;fB(oB4oI7Ui;ozvcPX9G?Ezmgkq_BY+3w(-RDO&86=U
+zuH<RLw{3gl9*HfgWa-YI__|!sG|lSlc~x3!6oo={4xOAmkH{-$P%-Uv{_8uF$^w)9
+zNm)4ZcKqai=s$O=dy>W&p`y!Y!0POIM4ly$5CRfpaS?A)gN|dI9%uVd$?p|;)A%AX
+z?K$DCd&buoN8}WFHvX73DS670Q{<Jyuq54lDQ{Bp3_9T4b?EyZA%xZ0yH{0JfjniQ
+u>bgc}pyXbWXGwofuW#>%jMw_{E5HE18P=8$X_z(u0000<MNUMnLSTY<0GxOL
+
+diff --git a/pylons_app/public/js/yui/slider/assets/right-thumb.png b/pylons_app/public/js/yui/slider/assets/right-thumb.png
+new file mode 100644
+index 0000000000000000000000000000000000000000..09e5d27ba7aef8022979f18c12239b2bfa40a0b1
+GIT binary patch
+literal 356
+zc$@)b0h|7bP)<h;3K|Lk000e1NJLTq000#L000yS1^@s6VoP>20000PbVXQnQ*UN;
+zcVTj606}DLVr3vnZDD6+Qe|Oed2z{QJOBUz21!IgRCwB~ltFHTFc3v&29`+<fLac~
+zS#p-B$_0{Kp{mq_^a4Ev2OygOD>k)|z+^s=-E>*o-|~D5$xnX<$^8EDc_yM0rPGBJ
+zy8IZkq!M@nH0uggUDtmc%2B$$4+562FLY~Ls;X-B&35;IYGTSV2~H{^-oXJce|*Ry
+zpqY1fPLPzn`=ltYh1mA7f1!zHDlVzDmW0Eh{N&((r%5ew1eDxeb#TDT=h^yU$Nng6
+z@YeR3!=dgj9D5z7wKJs@c-sD)G%0w3l2YL1(-fKX$-x0np%Zob!i?ki|5vIkX&44F
+z#;ksA8UjyHLe(gwC<^Zoczk#}e(8CiaID{V0R{lEWzhkQ=J3G)0000<MNUMnLSTYF
+C5Sn=a
+
+diff --git a/pylons_app/public/js/yui/slider/assets/skins/sam/bg-h.gif b/pylons_app/public/js/yui/slider/assets/skins/sam/bg-h.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..996288916e82bf2972bb4b8097f1b4a0869955d2
+GIT binary patch
+literal 212
+zc$@*$04x7TNk%w1VbK5_0HOu};o;%Q$;qdur-_M)x3{;~*Vq65{{R30A^8LW000I6
+zEC2ui0MP&(000A-Xu90~Fv>}*y*TU5yZ>M)j$~<`XsWJk>%MR-&vb3yc&_h!@BhG{
+za7Zi~kI1BQ$!t1BgQ#>$ty-_xtai)odcWYXI4gJ*&gisy&2GEj@VI<VuiNkVIKYwb
+z`~QG}f`fB=4g`paii?bmj*pO$l9QB`mY0~BkO5Dfo}ZwhqNAjxrl+W>s;jK6uCK7M
+Ova__cwzs%A2>?48g>Yp6
+
+diff --git a/pylons_app/public/js/yui/slider/assets/skins/sam/bg-v.gif b/pylons_app/public/js/yui/slider/assets/skins/sam/bg-v.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..8e287cd52222c75c8f921cfdd4b4ae02b783c0e4
+GIT binary patch
+literal 481
+zc$@*@0UrKGNk%w1VI%<H0J8}I>+9?F_4V!T?c3Yi)6>)G>FKw(x2LD4*Voto|Nj60
+z00000000000000000000A^8LW000R9EC2ui03-n5000F4Fv&@)y*TU5yZ>M)1%db#
+z2qKu>ks2)LB5<tDwT<C=#`l*Wup%5zipB)exEwZt&t6nFwN+zRR@Sr?bwgiJ_%rsD
+zTdySLEK92;>`naUe$Rb%^?jF5?t^_yflh-^g;Ix9iB^kPjarXfkzSKvm137<nP!`4
+zG;eU7ZJ(fj7N$g^a;kKscC2`=da!)5ezbtLg1UsfhQ5fvio%S<j>eG4lFF3Kmd=>a
+zn$n!qo;kDDqu96FtKO~LyW+j%zvjW{!|KKC$L`7S%ks_i&-T&y)B4r?*Pu#pof4P|
+zTr7Xv0HRt$kfFg^2){)Pr?BA>i=iIons~6H#(^J>3vz_$apcC5C`(}s7}B9hkS|51
+zeAV(|&5SW!&diq6W>1_uyZvN2bfM3n<B*n9dX8y2r|Y1$llqQoJgf7t*3){AYd)|0
+z!1fdSPvuRbWD}Y#y3#1nwP_{Br3kk!O}1y<qP5F&Zb!aC{gMQnl<-o+O%Xp;9F_4@
+X$5lZQNHG9l0ssIkYu?ORO#}ct&2adY
+
+diff --git a/pylons_app/public/js/yui/slider/assets/skins/sam/slider-skin.css b/pylons_app/public/js/yui/slider/assets/skins/sam/slider-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/assets/skins/sam/slider-skin.css
+@@ -0,0 +1,24 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-h-slider {
++    background: url(bg-h.gif) no-repeat 5px 0;
++    height: 28px;
++    width: 228px;
++}
++.yui-skin-sam .yui-h-slider .yui-slider-thumb {
++    top: 4px;
++}
++
++.yui-skin-sam .yui-v-slider {
++    background: url(bg-v.gif) no-repeat 12px 0;
++    height: 228px;
++    width: 48px;
++}
++.yui-skin-sam .yui-region-slider {
++    height: 228px;
++    width: 228px;
++}
+diff --git a/pylons_app/public/js/yui/slider/assets/skins/sam/slider.css b/pylons_app/public/js/yui/slider/assets/skins/sam/slider.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/assets/skins/sam/slider.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-h-slider,.yui-v-slider,.yui-region-slider{position:relative;}.yui-h-slider .yui-slider-thumb,.yui-v-slider .yui-slider-thumb,.yui-region-slider .yui-slider-thumb{position:absolute;cursor:default;}.yui-skin-sam .yui-h-slider{background:url(bg-h.gif) no-repeat 5px 0;height:28px;width:228px;}.yui-skin-sam .yui-h-slider .yui-slider-thumb{top:4px;}.yui-skin-sam .yui-v-slider{background:url(bg-v.gif) no-repeat 12px 0;height:228px;width:48px;}.yui-skin-sam .yui-region-slider{height:228px;width:228px;}
+diff --git a/pylons_app/public/js/yui/slider/assets/slider-core.css b/pylons_app/public/js/yui/slider/assets/slider-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/assets/slider-core.css
+@@ -0,0 +1,17 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-h-slider,
++.yui-v-slider,
++.yui-region-slider {
++    position: relative;
++}
++.yui-h-slider .yui-slider-thumb,
++.yui-v-slider .yui-slider-thumb,
++.yui-region-slider .yui-slider-thumb {
++    position: absolute;
++    cursor: default;
++}
+diff --git a/pylons_app/public/js/yui/slider/assets/slider-skin.css b/pylons_app/public/js/yui/slider/assets/slider-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/assets/slider-skin.css
+@@ -0,0 +1,20 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-skin-sam .yui-h-slider {
++    background: url(bg-h.gif) no-repeat 5px 0;
++    height: 28px;
++    width: 228px;
++}
++.yui-skin-sam .yui-h-slider .yui-slider-thumb {
++    top: 4px;
++}
++
++.yui-skin-sam .yui-v-slider {
++    background: url(bg-v.gif) no-repeat 12px 0;
++    height: 228px;
++    width: 48px;
++}
+diff --git a/pylons_app/public/js/yui/slider/assets/thumb-bar.gif b/pylons_app/public/js/yui/slider/assets/thumb-bar.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..cb5b73375d6c24b89ef753dc7cad02b4813b2677
+GIT binary patch
+literal 580
+zc$@)50=xZ3Nk%w1VK4w10M$GIvbDF^+1jnIvFhsWjEs!CyS&82#i600e}ROXo11BC
+zZhe1(r>CcRdwspWzh-D^Z*g>be1BeGVr*`4mzbG*eSr4(_<n$bet?5<b9Q!ldvtbr
+zVr6HltgYDD*_@o5+}zx#sj1!H->|W=$;!;Xz`(Jzwzjyt&(PA~;^V@?!lk9Bud%eY
+zx48KD`1$$y-rwNAz{2F@<@)>kxVyczx4HB5^z`-hT3cO!f`;|>_TJv!|Ns9000000
+z00000A^8LW002AyEC2ui05AX=000L6K%Q_&EE<o<q|uRUI-k&}boz7{b2poI%k6r<
+zV67)d-0gC@n|jS|yWeniDQ6a%(Ym~T&+q&Hc?@(rb~^|<7A}g5jE#<ukRS&Lbv$N=
+z7B8BcoSmMZpemD<W*B)hsHv)}tgWsL2N<L~7kMqWxVgH!yuAqr7qbg_0ma70$jQpf
+z2L}tY6?p~I)YaD4*xA1ovk`eP;Njxq<mKkg5wi_>G41Z}@bU8VzYVh*c{2L@{Qds_
+z0Gnx;wIPpzg9sBUT*$EDuMM*@<QYJ*qQ#3CGiq#>VHSiu1VV}&NwTELlOGO1m^DF%
+z2mvr-%A85Frp*-xCd^Wxg9M9VpFo2O9ZIxlhXV>`J<xFifYYZ?qe`7h)x?1ZvpA%v
+z!L_T`uVBN9<r;#+ED0!Rs9nppt=qS7)sB!bivo_jc=PJr%eQY{3bV`z9!$8f;lqdv
+SAzsY5aU~^?BTMEH1OPkoiZS&7
+
+diff --git a/pylons_app/public/js/yui/slider/assets/thumb-e.gif b/pylons_app/public/js/yui/slider/assets/thumb-e.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..b2f330198453b0b950e30dfed4efb88c67759747
+GIT binary patch
+literal 340
+zc${<hbhEHb6lLINxT?)??fQ*9d-ttaxwfx=^44wJCr_QRXwkCcCr|hEPF%Zw<C?YW
+zCr+NWam%*ys@k1<_AOt&s=2MRuAzD1qNOKKot`{(dSi3j$~EiyCr;_;>X|ZaW?%oL
+ziIb<!oIP*L*6llX?kOxTyLs!*wCS@SJ%0S}-@lhHU;X{}@BN1lzkmP!^7ZS_pFjVD
+z0Rsg<@h1x-1A{h$4u}Kt69Ze}fvE)^I#TTmmlS2rkO^0uTH+PT$Z|ZRwAwVy?ZF0%
+znh7G@OSe?*Ei35go?PR%zFOq4ch>p$zk|h`IW$^Y+uC{foh8(I`}+GinOy`_rcIwQ
+nol)9VP-*^xh4UFj+;|mMtX!oaE9Ec0VdExI7XNMA9T}_vDu<5g
+
+diff --git a/pylons_app/public/js/yui/slider/assets/thumb-fader.gif b/pylons_app/public/js/yui/slider/assets/thumb-fader.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..5eb6aab8b99cc227b05f45d1a2cd0843fd2f6764
+GIT binary patch
+literal 645
+zc${<hbhEHbv|^B8xN697@BaNmhYue(bZGCs{TnxK+`4W1hK(Dy@7S?-@7^<K&TQJU
+z<?!LdU%q_Vf8fB*-Mjbf-CN(-GIQqan!3iggp|VK(xlXks+#)R`lj^EoXYCjyn>?a
+z-27X&ZWWhS)-^OYG&Pr&S3h|4_|~1fZ{NLt|KY>uFJE51e)astiziQ?zJB{QDkiR>
+zsqN$E&mTU1yl~;dy?gimg8>84K=CIFBLjmWgARxT@)HBw{{u4$JanY`Pb|4)5n(z1
+z!io~FwQlUkL~~BRt=j)!!;Rfa`{HgHS}-Q>zWrhQtQxU-TNmxAJAYm}p}w)9xv93T
+z(m=b^FkQfaVZy{olP7Q)Oq(%%*32n$Cm0BH_ZlcJUABD1QdWc2YuBt_w{p|c1&j3M
+z3^aBDgJu`I!GS{uj~w22e3yaTHgN;>^A|2&I?rct_4>7&H!j~fZy>%+$UyDM(`V10
+z@Eg2(^ZMP}7ayM(2yGKH(ER!9_n)5}2LG9uWHdI+KUia+bK?|4a?9a%0c9&0hUP^_
+zyCn3z?z|9iV~bWum>}V~Y01fnya`KUR&G)~J=wth5JTc><{mMN;#YS%gBf@h&3CBh
+z;ytxl!%spsCvZpRm5d9^om<VGayB>V@)|^B+&#5*^)&{A16{n{Woxc)j!MkfuvJkz
+zYD@CtX{x`kY4`AMGdQ4eaQpiE`)kAx2>4WNczCEm_;YLH!7x_w3CiB{WM(ojpPr$g
+zea>g6aSESkj_(JbU0X6Q%c$Mx`rz35`uc|C)AM|He|ya@m^1h0+1=aU-#^gIy<K_F
+Sj*pKIPS=P(XX7crU=08QDn2U!
+
+diff --git a/pylons_app/public/js/yui/slider/assets/thumb-n.gif b/pylons_app/public/js/yui/slider/assets/thumb-n.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..c91a3329392770f552a68e04cbfc88d9f12fdd98
+GIT binary patch
+literal 612
+zc${<hbhEHb6l4%(c;>^fcHPGR|NrmUxo7*1-RCb{TD^9|$x~+zA31jJ{Dq&teyv=+
+z?&z@-4<0@|d+x%62M-@TezI!K`o&9^uUNHa$IjjF-o3wc`O3B(yLRv0fAiMu=PzCy
+zJAU%*+jrNl-#Bpa@ZG!j9zA+|@zUiTyY`$sb$aXeofj@%x^eT?moHz>oISUB>-KFs
+zcCTK$e&gn?GiJ?MzH-f*H*b%hIJI`&hMzxwo;iDd`_A2)w`@Co=G@~aPrrZv@$TKb
+zt=o6)*}H$u+6_N`{M@#E*WbT?zkd7n<HwH!2M@h@`}V_!kAMFBdGh4x=g*&CynMB8
+z!=``#{@s7@@Yk<jKo2quR-pKkg^_{5hd~F#0mTUe`@sgErskH`wq^!hhW0iFCN-w+
+zo~Ax;M(>G}t(iF)=W#MKx3h{FdM;mX!K&G6YiYA$qqKl{Ge4KP-LBoc^|(ZuxcOX;
+z96jd3qR^yh<_(NVZ(fxqV|fQ);5(?ZG%0)810&L&jiX6J&h5?HcWzQfP1+L9-@gBF
+zW;bo}ka1#Q<`TJdut7mov`-`E#D|VP@g@}o4X2HZjw%U@aWpA9bsq0mn0moNVTB8e
+cibn7%mqSel6;vIQPR)^2IlN?cBLjmq0Bi;a+yDRo
+
+diff --git a/pylons_app/public/js/yui/slider/assets/thumb-s.gif b/pylons_app/public/js/yui/slider/assets/thumb-s.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..a0670a42c9d12f8bd634fafa75f1e5a7083ca46d
+GIT binary patch
+literal 615
+zc${<hbhEHb6l4%(c;>^fcHPGR|NrmUxo7*1-RCb{TD^9|$x~+zA31jJ{Dq&teyv=+
+z?&z@-4<0@|d+x%62M-@TezI!K`o&9^uUNHa$IjjF-o3wc`O3B(yLRv0fAiMu=PzCy
+zJAU%*+jrNl-#Bpa@ZG!j9zA+|@zUiTyY`$sb$aXeofj@%x^eT?moHz>oISUB>-KFs
+zcCTK$e&gn?GiJ?MzH-f*H*b%hIJI`&hMzxwo;iDd`_A2)w`@Co=G@~aPrrZv@$TKb
+zt=o6)*}H$u+6_N`{M@#E*WbT?zkd7n<HwH!2M@h@`}V_!kAMFBdGh4x=g*&CynMB8
+z!=``#{@s7@@Yk<jKo2quR-pKkg^_{5hd~F#0mTUe`;i8prskH`7B9!nu5L%kW>rCt
+zNt35|=<qZdD0$79JI~96y-A3}b=mS2uEN|+TB7b7Hg0ma(r@yRaoV+ekCQB0leUEO
+zk)y|)*-e`?<lKNU=_X~=r0iu6419YwjwWMy2Vg`xsIxRFnt8u@`_7wJrHPx*<=gik
+zE-VU7{9NXCOk5%_oETdjZHqp59NLgLiB~{RL@PnD?XZdk*AjyxDaRXF7@gE43>p?I
+fFfdJHiBMu_IO(Y2yQRjH!-0FcNii1}3xhQP#d`=C
+
+diff --git a/pylons_app/public/js/yui/slider/assets/thumb-w.gif b/pylons_app/public/js/yui/slider/assets/thumb-w.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..79b3101a35daeb7281873a10fd3106341fee52c4
+GIT binary patch
+literal 340
+zc${<hbhEHb6lLINxT?)??fQ*9d-ttaxwfx=^44wJCr_QRXwkCcCr|hEPF%Zw<C?YW
+zCr+NWam%*ys@k1<_AOt&s=2MRuAzD1qNOKKot`{(dSi3j$~EiyCr;_;>X|ZaW?%oL
+ziIb<!oIP*L*6llX?kOxTyLs!*wCS@SJ%0S}-@lhHU;X{}@BN1lzkmP!^7ZS_pFjVD
+z0Rsg<@h1x-1A{h$4u}Kt69Ze}fvE)^I#T_@&KW0j<ieR6vb@%=ayqu6v|87TZ}El-
+zopS<~eUqxrrir(4ozL`Je_PzyJL~-W-@)R}{5%@1ZS5T#F3g;2ef<+ANVrNfs!X3T
+nbB2JM2&2-1g^Lylx=YC_tX#EPf!Ci!RDRRuE&kiw92u+u;KGg3
+
+diff --git a/pylons_app/public/js/yui/slider/slider-debug.js b/pylons_app/public/js/yui/slider/slider-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/slider-debug.js
+@@ -0,0 +1,2114 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Slider component is a UI control that enables the user to adjust 
++ * values in a finite range along one or two axes. Typically, the Slider 
++ * control is used in a web application as a rich, visual replacement 
++ * for an input box that takes a number as input. The Slider control can 
++ * also easily accommodate a second dimension, providing x,y output for 
++ * a selection point chosen from a rectangular region.
++ *
++ * @module    slider
++ * @title     Slider Widget
++ * @namespace YAHOO.widget
++ * @requires  yahoo,dom,dragdrop,event
++ * @optional  animation
++ */
++ (function () {
++
++var getXY = YAHOO.util.Dom.getXY,
++    Event = YAHOO.util.Event,
++    _AS   = Array.prototype.slice;
++
++/**
++ * A DragDrop implementation that can be used as a background for a
++ * slider.  It takes a reference to the thumb instance 
++ * so it can delegate some of the events to it.  The goal is to make the 
++ * thumb jump to the location on the background when the background is 
++ * clicked.  
++ *
++ * @class Slider
++ * @extends YAHOO.util.DragDrop
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param {String}      id     The id of the element linked to this instance
++ * @param {String}      sGroup The group of related DragDrop items
++ * @param {SliderThumb} oThumb The thumb for this slider
++ * @param {String}      sType  The type of slider (horiz, vert, region)
++ */
++function Slider(sElementId, sGroup, oThumb, sType) {
++
++    Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim));
++
++    if (sElementId) {
++        this.init(sElementId, sGroup, true);
++        this.initSlider(sType);
++        this.initThumb(oThumb);
++    }
++}
++
++YAHOO.lang.augmentObject(Slider,{
++    /**
++     * Factory method for creating a horizontal slider
++     * @method YAHOO.widget.Slider.getHorizSlider
++     * @static
++     * @param {String} sBGElId the id of the slider's background element
++     * @param {String} sHandleElId the id of the thumb element
++     * @param {int} iLeft the number of pixels the element can move left
++     * @param {int} iRight the number of pixels the element can move right
++     * @param {int} iTickSize optional parameter for specifying that the element 
++     * should move a certain number pixels at a time.
++     * @return {Slider} a horizontal slider control
++     */
++    getHorizSlider : 
++        function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) {
++            return new Slider(sBGElId, sBGElId, 
++                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 
++                                   iLeft, iRight, 0, 0, iTickSize), "horiz");
++    },
++
++    /**
++     * Factory method for creating a vertical slider
++     * @method YAHOO.widget.Slider.getVertSlider
++     * @static
++     * @param {String} sBGElId the id of the slider's background element
++     * @param {String} sHandleElId the id of the thumb element
++     * @param {int} iUp the number of pixels the element can move up
++     * @param {int} iDown the number of pixels the element can move down
++     * @param {int} iTickSize optional parameter for specifying that the element 
++     * should move a certain number pixels at a time.
++     * @return {Slider} a vertical slider control
++     */
++    getVertSlider :
++        function (sBGElId, sHandleElId, iUp, iDown, iTickSize) {
++            return new Slider(sBGElId, sBGElId, 
++                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, 
++                                   iUp, iDown, iTickSize), "vert");
++    },
++
++    /**
++     * Factory method for creating a slider region like the one in the color
++     * picker example
++     * @method YAHOO.widget.Slider.getSliderRegion
++     * @static
++     * @param {String} sBGElId the id of the slider's background element
++     * @param {String} sHandleElId the id of the thumb element
++     * @param {int} iLeft the number of pixels the element can move left
++     * @param {int} iRight the number of pixels the element can move right
++     * @param {int} iUp the number of pixels the element can move up
++     * @param {int} iDown the number of pixels the element can move down
++     * @param {int} iTickSize optional parameter for specifying that the element 
++     * should move a certain number pixels at a time.
++     * @return {Slider} a slider region control
++     */
++    getSliderRegion : 
++        function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) {
++            return new Slider(sBGElId, sBGElId, 
++                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, 
++                                   iUp, iDown, iTickSize), "region");
++    },
++
++    /**
++     * Constant for valueChangeSource, indicating that the user clicked or
++     * dragged the slider to change the value.
++     * @property Slider.SOURCE_UI_EVENT
++     * @final
++     * @static
++     * @default 1
++     */
++    SOURCE_UI_EVENT : 1,
++
++    /**
++     * Constant for valueChangeSource, indicating that the value was altered
++     * by a programmatic call to setValue/setRegionValue.
++     * @property Slider.SOURCE_SET_VALUE
++     * @final
++     * @static
++     * @default 2
++     */
++    SOURCE_SET_VALUE : 2,
++
++    /**
++     * Constant for valueChangeSource, indicating that the value was altered
++     * by hitting any of the supported keyboard characters.
++     * @property Slider.SOURCE_KEY_EVENT
++     * @final
++     * @static
++     * @default 2
++     */
++    SOURCE_KEY_EVENT : 3,
++
++    /**
++     * By default, animation is available if the animation utility is detected.
++     * @property Slider.ANIM_AVAIL
++     * @static
++     * @type boolean
++     */
++    ANIM_AVAIL : false
++},true);
++
++YAHOO.extend(Slider, YAHOO.util.DragDrop, {
++
++    /**
++     * Tracks the state of the mouse button to aid in when events are fired.
++     *
++     * @property _mouseDown
++     * @type boolean
++     * @default false
++     * @private
++     */
++    _mouseDown : false,
++
++    /**
++     * Override the default setting of dragOnly to true.
++     * @property dragOnly
++     * @type boolean
++     * @default true
++     */
++    dragOnly : true,
++
++    /**
++     * Initializes the slider.  Executed in the constructor
++     * @method initSlider
++     * @param {string} sType the type of slider (horiz, vert, region)
++     */
++    initSlider: function(sType) {
++
++        /**
++         * The type of the slider (horiz, vert, region)
++         * @property type
++         * @type string
++         */
++        this.type = sType;
++
++        //this.removeInvalidHandleType("A");
++
++        this.logger = new YAHOO.widget.LogWriter(this.toString());
++
++        /**
++         * Event the fires when the value of the control changes.  If 
++         * the control is animated the event will fire every point
++         * along the way.
++         * @event change
++         * @param {int} newOffset|x the new offset for normal sliders, or the new
++         *                          x offset for region sliders
++         * @param {int} y the number of pixels the thumb has moved on the y axis
++         *                (region sliders only)
++         */
++        this.createEvent("change", this);
++
++        /**
++         * Event that fires at the beginning of a slider thumb move.
++         * @event slideStart
++         */
++        this.createEvent("slideStart", this);
++
++        /**
++         * Event that fires at the end of a slider thumb move
++         * @event slideEnd
++         */
++        this.createEvent("slideEnd", this);
++
++        /**
++         * Overrides the isTarget property in YAHOO.util.DragDrop
++         * @property isTarget
++         * @private
++         */
++        this.isTarget = false;
++    
++        /**
++         * Flag that determines if the thumb will animate when moved
++         * @property animate
++         * @type boolean
++         */
++        this.animate = Slider.ANIM_AVAIL;
++
++        /**
++         * Set to false to disable a background click thumb move
++         * @property backgroundEnabled
++         * @type boolean
++         */
++        this.backgroundEnabled = true;
++
++        /**
++         * Adjustment factor for tick animation, the more ticks, the
++         * faster the animation (by default)
++         * @property tickPause
++         * @type int
++         */
++        this.tickPause = 40;
++
++        /**
++         * Enables the arrow, home and end keys, defaults to true.
++         * @property enableKeys
++         * @type boolean
++         */
++        this.enableKeys = true;
++
++        /**
++         * Specifies the number of pixels the arrow keys will move the slider.
++         * Default is 20.
++         * @property keyIncrement
++         * @type int
++         */
++        this.keyIncrement = 20;
++
++        /**
++         * moveComplete is set to true when the slider has moved to its final
++         * destination.  For animated slider, this value can be checked in 
++         * the onChange handler to make it possible to execute logic only
++         * when the move is complete rather than at all points along the way.
++         * Deprecated because this flag is only useful when the background is
++         * clicked and the slider is animated.  If the user drags the thumb,
++         * the flag is updated when the drag is over ... the final onDrag event
++         * fires before the mouseup the ends the drag, so the implementer will
++         * never see it.
++         *
++         * @property moveComplete
++         * @type Boolean
++         * @deprecated use the slideEnd event instead
++         */
++        this.moveComplete = true;
++
++        /**
++         * If animation is configured, specifies the length of the animation
++         * in seconds.
++         * @property animationDuration
++         * @type int
++         * @default 0.2
++         */
++        this.animationDuration = 0.2;
++
++        /**
++         * Constant for valueChangeSource, indicating that the user clicked or
++         * dragged the slider to change the value.
++         * @property SOURCE_UI_EVENT
++         * @final
++         * @default 1
++         * @deprecated use static Slider.SOURCE_UI_EVENT
++         */
++        this.SOURCE_UI_EVENT = 1;
++
++        /**
++         * Constant for valueChangeSource, indicating that the value was altered
++         * by a programmatic call to setValue/setRegionValue.
++         * @property SOURCE_SET_VALUE
++         * @final
++         * @default 2
++         * @deprecated use static Slider.SOURCE_SET_VALUE
++         */
++        this.SOURCE_SET_VALUE = 2;
++
++        /**
++         * When the slider value changes, this property is set to identify where
++         * the update came from.  This will be either 1, meaning the slider was
++         * clicked or dragged, or 2, meaning that it was set via a setValue() call.
++         * This can be used within event handlers to apply some of the logic only
++         * when dealing with one source or another.
++         * @property valueChangeSource
++         * @type int
++         * @since 2.3.0
++         */
++        this.valueChangeSource = 0;
++
++        /**
++         * Indicates whether or not events will be supressed for the current
++         * slide operation
++         * @property _silent
++         * @type boolean
++         * @private
++         */
++        this._silent = false;
++
++        /**
++         * Saved offset used to protect against NaN problems when slider is
++         * set to display:none
++         * @property lastOffset
++         * @type [int, int]
++         */
++        this.lastOffset = [0,0];
++    },
++
++    /**
++     * Initializes the slider's thumb. Executed in the constructor.
++     * @method initThumb
++     * @param {YAHOO.widget.SliderThumb} t the slider thumb
++     */
++    initThumb: function(t) {
++
++        var self = this;
++
++        /**
++         * A YAHOO.widget.SliderThumb instance that we will use to 
++         * reposition the thumb when the background is clicked
++         * @property thumb
++         * @type YAHOO.widget.SliderThumb
++         */
++        this.thumb = t;
++
++        t.cacheBetweenDrags = true;
++
++        if (t._isHoriz && t.xTicks && t.xTicks.length) {
++            this.tickPause = Math.round(360 / t.xTicks.length);
++        } else if (t.yTicks && t.yTicks.length) {
++            this.tickPause = Math.round(360 / t.yTicks.length);
++        }
++
++        this.logger.log("tickPause: " + this.tickPause);
++
++        // delegate thumb methods
++        t.onAvailable = function() { 
++                return self.setStartSliderState(); 
++            };
++        t.onMouseDown = function () { 
++                self._mouseDown = true;
++                self.logger.log('thumb mousedown');
++                return self.focus(); 
++            };
++        t.startDrag = function() { 
++                self.logger.log('thumb startDrag');
++                self._slideStart(); 
++            };
++        t.onDrag = function() { 
++                self.logger.log('thumb drag');
++                self.fireEvents(true); 
++            };
++        t.onMouseUp = function() { 
++                self.thumbMouseUp(); 
++            };
++
++    },
++
++    /**
++     * Executed when the slider element is available
++     * @method onAvailable
++     */
++    onAvailable: function() {
++        this._bindKeyEvents();
++    },
++ 
++    /**
++     * Sets up the listeners for keydown and key press events.
++     *
++     * @method _bindKeyEvents
++     * @protected
++     */
++    _bindKeyEvents : function () {
++        Event.on(this.id, "keydown",  this.handleKeyDown,  this, true);
++        Event.on(this.id, "keypress", this.handleKeyPress, this, true);
++    },
++
++    /**
++     * Executed when a keypress event happens with the control focused.
++     * Prevents the default behavior for navigation keys.  The actual
++     * logic for moving the slider thumb in response to a key event
++     * happens in handleKeyDown.
++     * @param {Event} e the keypress event
++     */
++    handleKeyPress: function(e) {
++        if (this.enableKeys) {
++            var kc = Event.getCharCode(e);
++
++            switch (kc) {
++                case 0x25: // left
++                case 0x26: // up
++                case 0x27: // right
++                case 0x28: // down
++                case 0x24: // home
++                case 0x23: // end
++                    Event.preventDefault(e);
++                    break;
++                default:
++            }
++        }
++    },
++
++    /**
++     * Executed when a keydown event happens with the control focused.
++     * Updates the slider value and display when the keypress is an
++     * arrow key, home, or end as long as enableKeys is set to true.
++     * @param {Event} e the keydown event
++     */
++    handleKeyDown: function(e) {
++        if (this.enableKeys) {
++            var kc = Event.getCharCode(e),
++                t  = this.thumb,
++                h  = this.getXValue(),
++                v  = this.getYValue(),
++                changeValue = true;
++
++            switch (kc) {
++
++                // left
++                case 0x25: h -= this.keyIncrement; break;
++
++                // up
++                case 0x26: v -= this.keyIncrement; break;
++
++                // right
++                case 0x27: h += this.keyIncrement; break;
++
++                // down
++                case 0x28: v += this.keyIncrement; break;
++
++                // home
++                case 0x24: h = t.leftConstraint;    
++                           v = t.topConstraint;    
++                           break;
++
++                // end
++                case 0x23: h = t.rightConstraint; 
++                           v = t.bottomConstraint;    
++                           break;
++
++                default:   changeValue = false;
++            }
++
++            if (changeValue) {
++                if (t._isRegion) {
++                    this._setRegionValue(Slider.SOURCE_KEY_EVENT, h, v, true);
++                } else {
++                    this._setValue(Slider.SOURCE_KEY_EVENT,
++                        (t._isHoriz ? h : v), true);
++                }
++                Event.stopEvent(e);
++            }
++
++        }
++    },
++
++    /**
++     * Initialization that sets up the value offsets once the elements are ready
++     * @method setStartSliderState
++     */
++    setStartSliderState: function() {
++
++        this.logger.log("Fixing state");
++
++        this.setThumbCenterPoint();
++
++        /**
++         * The basline position of the background element, used
++         * to determine if the background has moved since the last
++         * operation.
++         * @property baselinePos
++         * @type [int, int]
++         */
++        this.baselinePos = getXY(this.getEl());
++
++        this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos);
++
++        if (this.thumb._isRegion) {
++            if (this.deferredSetRegionValue) {
++                this._setRegionValue.apply(this, this.deferredSetRegionValue);
++                this.deferredSetRegionValue = null;
++            } else {
++                this.setRegionValue(0, 0, true, true, true);
++            }
++        } else {
++            if (this.deferredSetValue) {
++                this._setValue.apply(this, this.deferredSetValue);
++                this.deferredSetValue = null;
++            } else {
++                this.setValue(0, true, true, true);
++            }
++        }
++    },
++
++    /**
++     * When the thumb is available, we cache the centerpoint of the element so
++     * we can position the element correctly when the background is clicked
++     * @method setThumbCenterPoint
++     */
++    setThumbCenterPoint: function() {
++
++        var el = this.thumb.getEl();
++
++        if (el) {
++            /**
++             * The center of the slider element is stored so we can 
++             * place it in the correct position when the background is clicked.
++             * @property thumbCenterPoint
++             * @type {"x": int, "y": int}
++             */
++            this.thumbCenterPoint = { 
++                    x: parseInt(el.offsetWidth/2, 10), 
++                    y: parseInt(el.offsetHeight/2, 10) 
++            };
++        }
++
++    },
++
++    /**
++     * Locks the slider, overrides YAHOO.util.DragDrop
++     * @method lock
++     */
++    lock: function() {
++        this.logger.log("locking");
++        this.thumb.lock();
++        this.locked = true;
++    },
++
++    /**
++     * Unlocks the slider, overrides YAHOO.util.DragDrop
++     * @method unlock
++     */
++    unlock: function() {
++        this.logger.log("unlocking");
++        this.thumb.unlock();
++        this.locked = false;
++    },
++
++    /**
++     * Handles mouseup event on the thumb
++     * @method thumbMouseUp
++     * @private
++     */
++    thumbMouseUp: function() {
++        this._mouseDown = false;
++        this.logger.log("thumb mouseup");
++        if (!this.isLocked()) {
++            this.endMove();
++        }
++
++    },
++
++    onMouseUp: function() {
++        this._mouseDown = false;
++        this.logger.log("background mouseup");
++        if (this.backgroundEnabled && !this.isLocked()) {
++            this.endMove();
++        }
++    },
++
++    /**
++     * Returns a reference to this slider's thumb
++     * @method getThumb
++     * @return {SliderThumb} this slider's thumb
++     */
++    getThumb: function() {
++        return this.thumb;
++    },
++
++    /**
++     * Try to focus the element when clicked so we can add
++     * accessibility features
++     * @method focus
++     * @private
++     */
++    focus: function() {
++        this.logger.log("focus");
++        this.valueChangeSource = Slider.SOURCE_UI_EVENT;
++
++        // Focus the background element if possible
++        var el = this.getEl();
++
++        if (el.focus) {
++            try {
++                el.focus();
++            } catch(e) {
++                // Prevent permission denied unhandled exception in FF that can
++                // happen when setting focus while another element is handling
++                // the blur.  @TODO this is still writing to the error log 
++                // (unhandled error) in FF1.5 with strict error checking on.
++            }
++        }
++
++        this.verifyOffset();
++
++        return !this.isLocked();
++    },
++
++    /**
++     * Event that fires when the value of the slider has changed
++     * @method onChange
++     * @param {int} firstOffset the number of pixels the thumb has moved
++     * from its start position. Normal horizontal and vertical sliders will only
++     * have the firstOffset.  Regions will have both, the first is the horizontal
++     * offset, the second the vertical.
++     * @param {int} secondOffset the y offset for region sliders
++     * @deprecated use instance.subscribe("change") instead
++     */
++    onChange: function (firstOffset, secondOffset) { 
++        /* override me */ 
++        this.logger.log("onChange: " + firstOffset + ", " + secondOffset);
++    },
++
++    /**
++     * Event that fires when the at the beginning of the slider thumb move
++     * @method onSlideStart
++     * @deprecated use instance.subscribe("slideStart") instead
++     */
++    onSlideStart: function () { 
++        /* override me */ 
++        this.logger.log("onSlideStart");
++    },
++
++    /**
++     * Event that fires at the end of a slider thumb move
++     * @method onSliderEnd
++     * @deprecated use instance.subscribe("slideEnd") instead
++     */
++    onSlideEnd: function () { 
++        /* override me */ 
++        this.logger.log("onSlideEnd");
++    },
++
++    /**
++     * Returns the slider's thumb offset from the start position
++     * @method getValue
++     * @return {int} the current value
++     */
++    getValue: function () { 
++        return this.thumb.getValue();
++    },
++
++    /**
++     * Returns the slider's thumb X offset from the start position
++     * @method getXValue
++     * @return {int} the current horizontal offset
++     */
++    getXValue: function () { 
++        return this.thumb.getXValue();
++    },
++
++    /**
++     * Returns the slider's thumb Y offset from the start position
++     * @method getYValue
++     * @return {int} the current vertical offset
++     */
++    getYValue: function () { 
++        return this.thumb.getYValue();
++    },
++
++    /**
++     * Provides a way to set the value of the slider in code.
++     *
++     * @method setValue
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point 
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     */
++    setValue: function() {
++        var args = _AS.call(arguments);
++        args.unshift(Slider.SOURCE_SET_VALUE);
++        return this._setValue.apply(this,args);
++    },
++
++    /**
++     * Worker function to execute the value set operation.  Accepts type of
++     * set operation in addition to the usual setValue params.
++     *
++     * @method _setValue
++     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point 
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     * @protected
++     */
++    _setValue: function(source, newOffset, skipAnim, force, silent) {
++        var t = this.thumb, newX, newY;
++
++        if (!t.available) {
++            this.logger.log("defer setValue until after onAvailble");
++            this.deferredSetValue = arguments;
++            return false;
++        }
++
++        if (this.isLocked() && !force) {
++            this.logger.log("Can't set the value, the control is locked");
++            return false;
++        }
++
++        if ( isNaN(newOffset) ) {
++            this.logger.log("setValue, Illegal argument: " + newOffset);
++            return false;
++        }
++
++        if (t._isRegion) {
++            this.logger.log("Call to setValue for region Slider ignored. Use setRegionValue","warn");
++            return false;
++        }
++
++        this.logger.log("setValue " + newOffset);
++
++        this._silent = silent;
++        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
++
++        t.lastOffset = [newOffset, newOffset];
++        this.verifyOffset();
++
++        this._slideStart();
++
++        if (t._isHoriz) {
++            newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
++            this.moveThumb(newX, t.initPageY, skipAnim);
++        } else {
++            newY = t.initPageY + newOffset + this.thumbCenterPoint.y;
++            this.moveThumb(t.initPageX, newY, skipAnim);
++        }
++
++        return true;
++    },
++
++    /**
++     * Provides a way to set the value of the region slider in code.
++     * @method setRegionValue
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point (x axis for region)
++     * @param {int} newOffset2 the number of pixels the thumb should be
++     * positioned away from the initial start point (y axis for region)
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     */
++    setRegionValue : function () {
++        var args = _AS.call(arguments);
++        args.unshift(Slider.SOURCE_SET_VALUE);
++        return this._setRegionValue.apply(this,args);
++    },
++
++    /**
++     * Worker function to execute the value set operation.  Accepts type of
++     * set operation in addition to the usual setValue params.
++     *
++     * @method _setRegionValue
++     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point (x axis for region)
++     * @param {int} newOffset2 the number of pixels the thumb should be
++     * positioned away from the initial start point (y axis for region)
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     * @protected
++     */
++    _setRegionValue: function(source, newOffset, newOffset2, skipAnim, force, silent) {
++        var t = this.thumb, newX, newY;
++
++        if (!t.available) {
++            this.logger.log("defer setRegionValue until after onAvailble");
++            this.deferredSetRegionValue = arguments;
++            return false;
++        }
++
++        if (this.isLocked() && !force) {
++            this.logger.log("Can't set the value, the control is locked");
++            return false;
++        }
++
++        if ( isNaN(newOffset) ) {
++            this.logger.log("setRegionValue, Illegal argument: " + newOffset);
++            return false;
++        }
++
++        if (!t._isRegion) {
++            this.logger.log("Call to setRegionValue for non-region Slider ignored. Use setValue","warn");
++            return false;
++        }
++
++        this._silent = silent;
++
++        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
++
++        t.lastOffset = [newOffset, newOffset2];
++        this.verifyOffset();
++
++        this._slideStart();
++
++        newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
++        newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y;
++        this.moveThumb(newX, newY, skipAnim);
++
++        return true;
++    },
++
++    /**
++     * Checks the background position element position.  If it has moved from the
++     * baseline position, the constraints for the thumb are reset
++     * @method verifyOffset
++     * @return {boolean} True if the offset is the same as the baseline.
++     */
++    verifyOffset: function() {
++
++        var xy = getXY(this.getEl()),
++            t  = this.thumb;
++
++        if (!this.thumbCenterPoint || !this.thumbCenterPoint.x) {
++            this.setThumbCenterPoint();
++        }
++
++        if (xy) {
++
++            this.logger.log("newPos: " + xy);
++
++            if (xy[0] != this.baselinePos[0] || xy[1] != this.baselinePos[1]) {
++                this.logger.log("background moved, resetting constraints");
++
++                // Reset background
++                this.setInitPosition();
++                this.baselinePos = xy;
++
++                // Reset thumb
++                t.initPageX = this.initPageX + t.startOffset[0];
++                t.initPageY = this.initPageY + t.startOffset[1];
++                t.deltaSetXY = null;
++                this.resetThumbConstraints();
++
++                return false;
++            }
++        }
++
++        return true;
++    },
++
++    /**
++     * Move the associated slider moved to a timeout to try to get around the 
++     * mousedown stealing moz does when I move the slider element between the 
++     * cursor and the background during the mouseup event
++     * @method moveThumb
++     * @param {int} x the X coordinate of the click
++     * @param {int} y the Y coordinate of the click
++     * @param {boolean} skipAnim don't animate if the move happend onDrag
++     * @param {boolean} midMove set to true if this is not terminating
++     * the slider movement
++     * @private
++     */
++    moveThumb: function(x, y, skipAnim, midMove) {
++
++        var t = this.thumb,
++            self = this,
++            p,_p,anim;
++
++        if (!t.available) {
++            this.logger.log("thumb is not available yet, aborting move");
++            return;
++        }
++
++        this.logger.log("move thumb, x: "  + x + ", y: " + y);
++
++        t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y);
++
++        _p = t.getTargetCoord(x, y);
++        p = [Math.round(_p.x), Math.round(_p.y)];
++
++        if (this.animate && t._graduated && !skipAnim) {
++            this.logger.log("graduated");
++            this.lock();
++
++            // cache the current thumb pos
++            this.curCoord = getXY(this.thumb.getEl());
++            this.curCoord = [Math.round(this.curCoord[0]), Math.round(this.curCoord[1])];
++
++            setTimeout( function() { self.moveOneTick(p); }, this.tickPause );
++
++        } else if (this.animate && Slider.ANIM_AVAIL && !skipAnim) {
++            this.logger.log("animating to " + p);
++
++            this.lock();
++
++            anim = new YAHOO.util.Motion( 
++                    t.id, { points: { to: p } }, 
++                    this.animationDuration, 
++                    YAHOO.util.Easing.easeOut );
++
++            anim.onComplete.subscribe( function() { 
++                    self.logger.log("Animation completed _mouseDown:" + self._mouseDown);
++                    self.unlock();
++                    if (!self._mouseDown) {
++                        self.endMove(); 
++                    }
++                });
++            anim.animate();
++
++        } else {
++            t.setDragElPos(x, y);
++            if (!midMove && !this._mouseDown) {
++                this.endMove();
++            }
++        }
++    },
++
++    _slideStart: function() {
++        if (!this._sliding) {
++            if (!this._silent) {
++                this.onSlideStart();
++                this.fireEvent("slideStart");
++            }
++            this._sliding = true;
++            this.moveComplete = false; // for backward compatibility. Deprecated
++        }
++    },
++
++    _slideEnd: function() {
++        if (this._sliding) {
++            // Reset state before firing slideEnd
++            var silent = this._silent;
++            this._sliding = false;
++            this.moveComplete = true; // for backward compatibility. Deprecated
++            this._silent = false;
++            if (!silent) {
++                this.onSlideEnd();
++                this.fireEvent("slideEnd");
++            }
++        }
++    },
++
++    /**
++     * Move the slider one tick mark towards its final coordinate.  Used
++     * for the animation when tick marks are defined
++     * @method moveOneTick
++     * @param {int[]} the destination coordinate
++     * @private
++     */
++    moveOneTick: function(finalCoord) {
++
++        var t = this.thumb,
++            self = this,
++            nextCoord = null,
++            tmpX, tmpY;
++
++        if (t._isRegion) {
++            nextCoord = this._getNextX(this.curCoord, finalCoord);
++            tmpX = (nextCoord !== null) ? nextCoord[0] : this.curCoord[0];
++            nextCoord = this._getNextY(this.curCoord, finalCoord);
++            tmpY = (nextCoord !== null) ? nextCoord[1] : this.curCoord[1];
++
++            nextCoord = tmpX !== this.curCoord[0] || tmpY !== this.curCoord[1] ?
++                [ tmpX, tmpY ] : null;
++        } else if (t._isHoriz) {
++            nextCoord = this._getNextX(this.curCoord, finalCoord);
++        } else {
++            nextCoord = this._getNextY(this.curCoord, finalCoord);
++        }
++
++        this.logger.log("moveOneTick: " + 
++                " finalCoord: " + finalCoord +
++                " this.curCoord: " + this.curCoord +
++                " nextCoord: " + nextCoord);
++
++        if (nextCoord) {
++
++            // cache the position
++            this.curCoord = nextCoord;
++
++            // move to the next coord
++            this.thumb.alignElWithMouse(t.getEl(), nextCoord[0] + this.thumbCenterPoint.x, nextCoord[1] + this.thumbCenterPoint.y);
++            
++            // check if we are in the final position, if not make a recursive call
++            if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) {
++                setTimeout(function() { self.moveOneTick(finalCoord); }, 
++                        this.tickPause);
++            } else {
++                this.unlock();
++                if (!this._mouseDown) {
++                    this.endMove();
++                }
++            }
++        } else {
++            this.unlock();
++            if (!this._mouseDown) {
++                this.endMove();
++            }
++        }
++    },
++
++    /**
++     * Returns the next X tick value based on the current coord and the target coord.
++     * @method _getNextX
++     * @private
++     */
++    _getNextX: function(curCoord, finalCoord) {
++        this.logger.log("getNextX: " + curCoord + ", " + finalCoord);
++        var t = this.thumb,
++            thresh,
++            tmp = [],
++            nextCoord = null;
++
++        if (curCoord[0] > finalCoord[0]) {
++            thresh = t.tickSize - this.thumbCenterPoint.x;
++            tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] );
++            nextCoord = [tmp.x, tmp.y];
++        } else if (curCoord[0] < finalCoord[0]) {
++            thresh = t.tickSize + this.thumbCenterPoint.x;
++            tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] );
++            nextCoord = [tmp.x, tmp.y];
++        } else {
++            // equal, do nothing
++        }
++
++        return nextCoord;
++    },
++
++    /**
++     * Returns the next Y tick value based on the current coord and the target coord.
++     * @method _getNextY
++     * @private
++     */
++    _getNextY: function(curCoord, finalCoord) {
++        var t = this.thumb,
++            thresh,
++            tmp = [],
++            nextCoord = null;
++
++        if (curCoord[1] > finalCoord[1]) {
++            thresh = t.tickSize - this.thumbCenterPoint.y;
++            tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh );
++            nextCoord = [tmp.x, tmp.y];
++        } else if (curCoord[1] < finalCoord[1]) {
++            thresh = t.tickSize + this.thumbCenterPoint.y;
++            tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh );
++            nextCoord = [tmp.x, tmp.y];
++        } else {
++            // equal, do nothing
++        }
++
++        return nextCoord;
++    },
++
++    /**
++     * Resets the constraints before moving the thumb.
++     * @method b4MouseDown
++     * @private
++     */
++    b4MouseDown: function(e) {
++        if (!this.backgroundEnabled) {
++            return false;
++        }
++
++        this.thumb.autoOffset();
++        this.baselinePos = [];
++    },
++
++    /**
++     * Handles the mousedown event for the slider background
++     * @method onMouseDown
++     * @private
++     */
++    onMouseDown: function(e) {
++        if (!this.backgroundEnabled || this.isLocked()) {
++            return false;
++        }
++
++        this._mouseDown = true;
++
++        var x = Event.getPageX(e),
++            y = Event.getPageY(e);
++
++        this.logger.log("bg mousedown: " + x + "," + y);
++
++        this.focus();
++        this._slideStart();
++        this.moveThumb(x, y);
++    },
++
++    /**
++     * Handles the onDrag event for the slider background
++     * @method onDrag
++     * @private
++     */
++    onDrag: function(e) {
++        this.logger.log("background drag");
++        if (this.backgroundEnabled && !this.isLocked()) {
++            var x = Event.getPageX(e),
++                y = Event.getPageY(e);
++            this.moveThumb(x, y, true, true);
++            this.fireEvents();
++        }
++    },
++
++    /**
++     * Fired when the slider movement ends
++     * @method endMove
++     * @private
++     */
++    endMove: function () {
++        this.logger.log("endMove");
++        this.unlock();
++        this.fireEvents();
++        this._slideEnd();
++    },
++
++    /**
++     * Resets the X and Y contraints for the thumb.  Used in lieu of the thumb
++     * instance's inherited resetConstraints because some logic was not
++     * applicable.
++     * @method resetThumbConstraints
++     * @protected
++     */
++    resetThumbConstraints: function () {
++        var t = this.thumb;
++
++        t.setXConstraint(t.leftConstraint, t.rightConstraint, t.xTickSize);
++        t.setYConstraint(t.topConstraint, t.bottomConstraint, t.xTickSize);
++    },
++
++    /**
++     * Fires the change event if the value has been changed.  Ignored if we are in
++     * the middle of an animation as the event will fire when the animation is
++     * complete
++     * @method fireEvents
++     * @param {boolean} thumbEvent set to true if this event is fired from an event
++     *                  that occurred on the thumb.  If it is, the state of the
++     *                  thumb dd object should be correct.  Otherwise, the event
++     *                  originated on the background, so the thumb state needs to
++     *                  be refreshed before proceeding.
++     * @private
++     */
++    fireEvents: function (thumbEvent) {
++
++        var t = this.thumb, newX, newY, newVal;
++
++        if (!thumbEvent) {
++            t.cachePosition();
++        }
++
++        if (! this.isLocked()) {
++            if (t._isRegion) {
++                newX = t.getXValue();
++                newY = t.getYValue();
++
++                if (newX != this.previousX || newY != this.previousY) {
++                    if (!this._silent) {
++                        this.onChange(newX, newY);
++                        this.fireEvent("change", { x: newX, y: newY });
++                    }
++                }
++
++                this.previousX = newX;
++                this.previousY = newY;
++
++            } else {
++                newVal = t.getValue();
++                if (newVal != this.previousVal) {
++                    this.logger.log("Firing onchange: " + newVal);
++                    if (!this._silent) {
++                        this.onChange( newVal );
++                        this.fireEvent("change", newVal);
++                    }
++                }
++                this.previousVal = newVal;
++            }
++
++        }
++    },
++
++    /**
++     * Slider toString
++     * @method toString
++     * @return {string} string representation of the instance
++     */
++    toString: function () { 
++        return ("Slider (" + this.type +") " + this.id);
++    }
++
++});
++
++YAHOO.lang.augmentProto(Slider, YAHOO.util.EventProvider);
++
++YAHOO.widget.Slider = Slider;
++})();
++/**
++ * A drag and drop implementation to be used as the thumb of a slider.
++ * @class SliderThumb
++ * @extends YAHOO.util.DD
++ * @constructor
++ * @param {String} id the id of the slider html element
++ * @param {String} sGroup the group of related DragDrop items
++ * @param {int} iLeft the number of pixels the element can move left
++ * @param {int} iRight the number of pixels the element can move right
++ * @param {int} iUp the number of pixels the element can move up
++ * @param {int} iDown the number of pixels the element can move down
++ * @param {int} iTickSize optional parameter for specifying that the element 
++ * should move a certain number pixels at a time.
++ */
++YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) {
++
++    if (id) {
++        YAHOO.widget.SliderThumb.superclass.constructor.call(this, id, sGroup);
++
++        /**
++         * The id of the thumbs parent HTML element (the slider background 
++         * element).
++         * @property parentElId
++         * @type string
++         */
++        this.parentElId = sGroup;
++    }
++
++
++    this.logger = new YAHOO.widget.LogWriter(this.toString());
++
++    /**
++     * Overrides the isTarget property in YAHOO.util.DragDrop
++     * @property isTarget
++     * @private
++     */
++    this.isTarget = false;
++
++    /**
++     * The tick size for this slider
++     * @property tickSize
++     * @type int
++     * @private
++     */
++    this.tickSize = iTickSize;
++
++    /**
++     * Informs the drag and drop util that the offsets should remain when
++     * resetting the constraints.  This preserves the slider value when
++     * the constraints are reset
++     * @property maintainOffset
++     * @type boolean
++     * @private
++     */
++    this.maintainOffset = true;
++
++    this.initSlider(iLeft, iRight, iUp, iDown, iTickSize);
++
++    /**
++     * Turns off the autoscroll feature in drag and drop
++     * @property scroll
++     * @private
++     */
++    this.scroll = false;
++
++}; 
++
++YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, {
++
++    /**
++     * The (X and Y) difference between the thumb location and its parent 
++     * (the slider background) when the control is instantiated.
++     * @property startOffset
++     * @type [int, int]
++     */
++    startOffset: null,
++
++    /**
++     * Override the default setting of dragOnly to true.
++     * @property dragOnly
++     * @type boolean
++     * @default true
++     */
++    dragOnly : true,
++
++    /**
++     * Flag used to figure out if this is a horizontal or vertical slider
++     * @property _isHoriz
++     * @type boolean
++     * @private
++     */
++    _isHoriz: false,
++
++    /**
++     * Cache the last value so we can check for change
++     * @property _prevVal
++     * @type int
++     * @private
++     */
++    _prevVal: 0,
++
++    /**
++     * The slider is _graduated if there is a tick interval defined
++     * @property _graduated
++     * @type boolean
++     * @private
++     */
++    _graduated: false,
++
++
++    /**
++     * Returns the difference between the location of the thumb and its parent.
++     * @method getOffsetFromParent
++     * @param {[int, int]} parentPos Optionally accepts the position of the parent
++     * @type [int, int]
++     */
++    getOffsetFromParent0: function(parentPos) {
++        var myPos = YAHOO.util.Dom.getXY(this.getEl()),
++            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
++
++        return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
++    },
++
++    getOffsetFromParent: function(parentPos) {
++
++        var el = this.getEl(), newOffset,
++            myPos,ppos,l,t,deltaX,deltaY,newLeft,newTop;
++
++        if (!this.deltaOffset) {
++
++            myPos = YAHOO.util.Dom.getXY(el);
++            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
++
++            newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
++
++            l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
++            t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
++
++            deltaX = l - newOffset[0];
++            deltaY = t - newOffset[1];
++
++            if (isNaN(deltaX) || isNaN(deltaY)) {
++                this.logger.log("element does not have a position style def yet");
++            } else {
++                this.deltaOffset = [deltaX, deltaY];
++            }
++
++        } else {
++            newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
++            newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
++
++            newOffset  = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]];
++        }
++
++        return newOffset;
++    },
++
++    /**
++     * Set up the slider, must be called in the constructor of all subclasses
++     * @method initSlider
++     * @param {int} iLeft the number of pixels the element can move left
++     * @param {int} iRight the number of pixels the element can move right
++     * @param {int} iUp the number of pixels the element can move up
++     * @param {int} iDown the number of pixels the element can move down
++     * @param {int} iTickSize the width of the tick interval.
++     */
++    initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) {
++        this.initLeft = iLeft;
++        this.initRight = iRight;
++        this.initUp = iUp;
++        this.initDown = iDown;
++
++        this.setXConstraint(iLeft, iRight, iTickSize);
++        this.setYConstraint(iUp, iDown, iTickSize);
++
++        if (iTickSize && iTickSize > 1) {
++            this._graduated = true;
++        }
++
++        this._isHoriz  = (iLeft || iRight); 
++        this._isVert   = (iUp   || iDown);
++        this._isRegion = (this._isHoriz && this._isVert); 
++
++    },
++
++    /**
++     * Clear's the slider's ticks
++     * @method clearTicks
++     */
++    clearTicks: function () {
++        YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);
++        this.tickSize = 0;
++        this._graduated = false;
++    },
++
++
++    /**
++     * Gets the current offset from the element's start position in
++     * pixels.
++     * @method getValue
++     * @return {int} the number of pixels (positive or negative) the
++     * slider has moved from the start position.
++     */
++    getValue: function () {
++        return (this._isHoriz) ? this.getXValue() : this.getYValue();
++    },
++
++    /**
++     * Gets the current X offset from the element's start position in
++     * pixels.
++     * @method getXValue
++     * @return {int} the number of pixels (positive or negative) the
++     * slider has moved horizontally from the start position.
++     */
++    getXValue: function () {
++        if (!this.available) { 
++            return 0; 
++        }
++        var newOffset = this.getOffsetFromParent();
++        if (YAHOO.lang.isNumber(newOffset[0])) {
++            this.lastOffset = newOffset;
++            return (newOffset[0] - this.startOffset[0]);
++        } else {
++            this.logger.log("can't get offset, using old value: " + 
++                this.lastOffset[0]);
++            return (this.lastOffset[0] - this.startOffset[0]);
++        }
++    },
++
++    /**
++     * Gets the current Y offset from the element's start position in
++     * pixels.
++     * @method getYValue
++     * @return {int} the number of pixels (positive or negative) the
++     * slider has moved vertically from the start position.
++     */
++    getYValue: function () {
++        if (!this.available) { 
++            return 0; 
++        }
++        var newOffset = this.getOffsetFromParent();
++        if (YAHOO.lang.isNumber(newOffset[1])) {
++            this.lastOffset = newOffset;
++            return (newOffset[1] - this.startOffset[1]);
++        } else {
++            this.logger.log("can't get offset, using old value: " + 
++                this.lastOffset[1]);
++            return (this.lastOffset[1] - this.startOffset[1]);
++        }
++    },
++
++    /**
++     * Thumb toString
++     * @method toString
++     * @return {string} string representation of the instance
++     */
++    toString: function () { 
++        return "SliderThumb " + this.id;
++    },
++
++    /**
++     * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider
++     * instance it belongs to.
++     * @method onChange
++     * @private
++     */
++    onChange: function (x, y) { 
++    }
++
++});
++/**
++ * A slider with two thumbs, one that represents the min value and 
++ * the other the max.  Actually a composition of two sliders, both with
++ * the same background.  The constraints for each slider are adjusted
++ * dynamically so that the min value of the max slider is equal or greater
++ * to the current value of the min slider, and the max value of the min
++ * slider is the current value of the max slider.
++ * Constructor assumes both thumbs are positioned absolutely at the 0 mark on
++ * the background.
++ *
++ * @namespace YAHOO.widget
++ * @class DualSlider
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param {Slider} minSlider The Slider instance used for the min value thumb
++ * @param {Slider} maxSlider The Slider instance used for the max value thumb
++ * @param {int}    range The number of pixels the thumbs may move within
++ * @param {Array}  initVals (optional) [min,max] Initial thumb placement
++ */
++(function () {
++
++var Event = YAHOO.util.Event,
++    YW = YAHOO.widget;
++
++function DualSlider(minSlider, maxSlider, range, initVals) {
++
++    var self  = this,
++        ready = { min : false, max : false },
++        minThumbOnMouseDown, maxThumbOnMouseDown;
++
++    /**
++     * A slider instance that keeps track of the lower value of the range.
++     * <strong>read only</strong>
++     * @property minSlider
++     * @type Slider
++     */
++    this.minSlider = minSlider;
++
++    /**
++     * A slider instance that keeps track of the upper value of the range.
++     * <strong>read only</strong>
++     * @property maxSlider
++     * @type Slider
++     */
++    this.maxSlider = maxSlider;
++
++    /**
++     * The currently active slider (min or max). <strong>read only</strong>
++     * @property activeSlider
++     * @type Slider
++     */
++    this.activeSlider = minSlider;
++
++    /**
++     * Is the DualSlider oriented horizontally or vertically?
++     * <strong>read only</strong>
++     * @property isHoriz
++     * @type boolean
++     */
++    this.isHoriz = minSlider.thumb._isHoriz;
++
++    //FIXME: this is horrible
++    minThumbOnMouseDown = this.minSlider.thumb.onMouseDown;
++    maxThumbOnMouseDown = this.maxSlider.thumb.onMouseDown;
++    this.minSlider.thumb.onMouseDown = function() {
++        self.activeSlider = self.minSlider;
++        minThumbOnMouseDown.apply(this,arguments);
++    };
++    this.maxSlider.thumb.onMouseDown = function () {
++        self.activeSlider = self.maxSlider;
++        maxThumbOnMouseDown.apply(this,arguments);
++    };
++
++    this.minSlider.thumb.onAvailable = function () {
++        minSlider.setStartSliderState();
++        ready.min = true;
++        if (ready.max) {
++            self.fireEvent('ready',self);
++        }
++    };
++    this.maxSlider.thumb.onAvailable = function () {
++        maxSlider.setStartSliderState();
++        ready.max = true;
++        if (ready.min) {
++            self.fireEvent('ready',self);
++        }
++    };
++
++    // dispatch mousedowns to the active slider
++    minSlider.onMouseDown =
++    maxSlider.onMouseDown = function(e) {
++        return this.backgroundEnabled && self._handleMouseDown(e);
++    };
++
++    // Fix the drag behavior so that only the active slider
++    // follows the drag
++    minSlider.onDrag =
++    maxSlider.onDrag = function(e) {
++        self._handleDrag(e);
++    };
++
++    // Likely only the minSlider's onMouseUp will be executed, but both are
++    // overridden just to be safe
++    minSlider.onMouseUp =
++    maxSlider.onMouseUp = function (e) {
++        self._handleMouseUp(e);
++    };
++
++    // Replace the _bindKeyEvents for the minSlider and remove that for the
++    // maxSlider since they share the same bg element.
++    minSlider._bindKeyEvents = function () {
++        self._bindKeyEvents(this);
++    };
++    maxSlider._bindKeyEvents = function () {};
++
++    // The core events for each slider are handled so we can expose a single
++    // event for when the event happens on either slider
++    minSlider.subscribe("change", this._handleMinChange, minSlider, this);
++    minSlider.subscribe("slideStart", this._handleSlideStart, minSlider, this);
++    minSlider.subscribe("slideEnd", this._handleSlideEnd, minSlider, this);
++
++    maxSlider.subscribe("change", this._handleMaxChange, maxSlider, this);
++    maxSlider.subscribe("slideStart", this._handleSlideStart, maxSlider, this);
++    maxSlider.subscribe("slideEnd", this._handleSlideEnd, maxSlider, this);
++
++    /**
++     * Event that fires when the slider is finished setting up
++     * @event ready
++     * @param {DualSlider} dualslider the DualSlider instance
++     */
++    this.createEvent("ready", this);
++
++    /**
++     * Event that fires when either the min or max value changes
++     * @event change
++     * @param {DualSlider} dualslider the DualSlider instance
++     */
++    this.createEvent("change", this);
++
++    /**
++     * Event that fires when one of the thumbs begins to move
++     * @event slideStart
++     * @param {Slider} activeSlider the moving slider
++     */
++    this.createEvent("slideStart", this);
++
++    /**
++     * Event that fires when one of the thumbs finishes moving
++     * @event slideEnd
++     * @param {Slider} activeSlider the moving slider
++     */
++    this.createEvent("slideEnd", this);
++
++    // Validate initial values
++    initVals = YAHOO.lang.isArray(initVals) ? initVals : [0,range];
++    initVals[0] = Math.min(Math.max(parseInt(initVals[0],10)|0,0),range);
++    initVals[1] = Math.max(Math.min(parseInt(initVals[1],10)|0,range),0);
++    // Swap initVals if min > max
++    if (initVals[0] > initVals[1]) {
++        initVals.splice(0,2,initVals[1],initVals[0]);
++    }
++    this.minVal = initVals[0];
++    this.maxVal = initVals[1];
++
++    // Set values so initial assignment when the slider thumbs are ready will
++    // use these values
++    this.minSlider.setValue(this.minVal,true,true,true);
++    this.maxSlider.setValue(this.maxVal,true,true,true);
++
++    YAHOO.log("Setting initial values " + this.minVal + ", " + this.maxVal,"info","DualSlider");
++}
++
++DualSlider.prototype = {
++
++    /**
++     * The current value of the min thumb. <strong>read only</strong>.
++     * @property minVal
++     * @type int
++     */
++    minVal : -1,
++
++    /**
++     * The current value of the max thumb. <strong>read only</strong>.
++     * @property maxVal
++     * @type int
++     */
++    maxVal : -1,
++
++    /**
++     * Pixel distance to maintain between thumbs.
++     * @property minRange
++     * @type int
++     * @default 0
++     */
++    minRange : 0,
++
++    /**
++     * Executed when one of the sliders fires the slideStart event
++     * @method _handleSlideStart
++     * @private
++     */
++    _handleSlideStart: function(data, slider) {
++        this.fireEvent("slideStart", slider);
++    },
++
++    /**
++     * Executed when one of the sliders fires the slideEnd event
++     * @method _handleSlideEnd
++     * @private
++     */
++    _handleSlideEnd: function(data, slider) {
++        this.fireEvent("slideEnd", slider);
++    },
++
++    /**
++     * Overrides the onDrag method for both sliders
++     * @method _handleDrag
++     * @private
++     */
++    _handleDrag: function(e) {
++        YW.Slider.prototype.onDrag.call(this.activeSlider, e);
++    },
++
++    /**
++     * Executed when the min slider fires the change event
++     * @method _handleMinChange
++     * @private
++     */
++    _handleMinChange: function() {
++        this.activeSlider = this.minSlider;
++        this.updateValue();
++    },
++
++    /**
++     * Executed when the max slider fires the change event
++     * @method _handleMaxChange
++     * @private
++     */
++    _handleMaxChange: function() {
++        this.activeSlider = this.maxSlider;
++        this.updateValue();
++    },
++
++    /**
++     * Set up the listeners for the keydown and keypress events.
++     *
++     * @method _bindKeyEvents
++     * @protected
++     */
++    _bindKeyEvents : function (slider) {
++        Event.on(slider.id,'keydown', this._handleKeyDown, this,true);
++        Event.on(slider.id,'keypress',this._handleKeyPress,this,true);
++    },
++
++    /**
++     * Delegate event handling to the active Slider.  See Slider.handleKeyDown.
++     *
++     * @method _handleKeyDown
++     * @param e {Event} the mousedown DOM event
++     * @protected
++     */
++    _handleKeyDown : function (e) {
++        this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);
++    },
++
++    /**
++     * Delegate event handling to the active Slider.  See Slider.handleKeyPress.
++     *
++     * @method _handleKeyPress
++     * @param e {Event} the mousedown DOM event
++     * @protected
++     */
++    _handleKeyPress : function (e) {
++        this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);
++    },
++
++    /**
++     * Sets the min and max thumbs to new values.
++     * @method setValues
++     * @param min {int} Pixel offset to assign to the min thumb
++     * @param max {int} Pixel offset to assign to the max thumb
++     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
++     * Default false
++     * @param force {boolean} (optional) ignore the locked setting and set
++     * value anyway. Default false
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     */
++    setValues : function (min, max, skipAnim, force, silent) {
++        var mins = this.minSlider,
++            maxs = this.maxSlider,
++            mint = mins.thumb,
++            maxt = maxs.thumb,
++            self = this,
++            done = { min : false, max : false };
++
++        // Clear constraints to prevent animated thumbs from prematurely
++        // stopping when hitting a constraint that's moving with the other
++        // thumb.
++        if (mint._isHoriz) {
++            mint.setXConstraint(mint.leftConstraint,maxt.rightConstraint,mint.tickSize);
++            maxt.setXConstraint(mint.leftConstraint,maxt.rightConstraint,maxt.tickSize);
++        } else {
++            mint.setYConstraint(mint.topConstraint,maxt.bottomConstraint,mint.tickSize);
++            maxt.setYConstraint(mint.topConstraint,maxt.bottomConstraint,maxt.tickSize);
++        }
++
++        // Set up one-time slideEnd callbacks to call updateValue when both
++        // thumbs have been set
++        this._oneTimeCallback(mins,'slideEnd',function () {
++            done.min = true;
++            if (done.max) {
++                self.updateValue(silent);
++                // Clean the slider's slideEnd events on a timeout since this
++                // will be executed from inside the event's fire
++                setTimeout(function () {
++                    self._cleanEvent(mins,'slideEnd');
++                    self._cleanEvent(maxs,'slideEnd');
++                },0);
++            }
++        });
++
++        this._oneTimeCallback(maxs,'slideEnd',function () {
++            done.max = true;
++            if (done.min) {
++                self.updateValue(silent);
++                // Clean both sliders' slideEnd events on a timeout since this
++                // will be executed from inside one of the event's fire
++                setTimeout(function () {
++                    self._cleanEvent(mins,'slideEnd');
++                    self._cleanEvent(maxs,'slideEnd');
++                },0);
++            }
++        });
++
++        // Must emit Slider slideEnd event to propagate to updateValue
++        mins.setValue(min,skipAnim,force,false);
++        maxs.setValue(max,skipAnim,force,false);
++    },
++
++    /**
++     * Set the min thumb position to a new value.
++     * @method setMinValue
++     * @param min {int} Pixel offset for min thumb
++     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
++     * Default false
++     * @param force {boolean} (optional) ignore the locked setting and set
++     * value anyway. Default false
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     */
++    setMinValue : function (min, skipAnim, force, silent) {
++        var mins = this.minSlider,
++            self = this;
++
++        this.activeSlider = mins;
++
++        // Use a one-time event callback to delay the updateValue call
++        // until after the slide operation is done
++        self = this;
++        this._oneTimeCallback(mins,'slideEnd',function () {
++            self.updateValue(silent);
++            // Clean the slideEnd event on a timeout since this
++            // will be executed from inside the event's fire
++            setTimeout(function () { self._cleanEvent(mins,'slideEnd'); }, 0);
++        });
++
++        mins.setValue(min, skipAnim, force);
++    },
++
++    /**
++     * Set the max thumb position to a new value.
++     * @method setMaxValue
++     * @param max {int} Pixel offset for max thumb
++     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
++     * Default false
++     * @param force {boolean} (optional) ignore the locked setting and set
++     * value anyway. Default false
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     */
++    setMaxValue : function (max, skipAnim, force, silent) {
++        var maxs = this.maxSlider,
++            self = this;
++
++        this.activeSlider = maxs;
++
++        // Use a one-time event callback to delay the updateValue call
++        // until after the slide operation is done
++        this._oneTimeCallback(maxs,'slideEnd',function () {
++            self.updateValue(silent);
++            // Clean the slideEnd event on a timeout since this
++            // will be executed from inside the event's fire
++            setTimeout(function () { self._cleanEvent(maxs,'slideEnd'); }, 0);
++        });
++
++        maxs.setValue(max, skipAnim, force);
++    },
++
++    /**
++     * Executed when one of the sliders is moved
++     * @method updateValue
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     * @private
++     */
++    updateValue: function(silent) {
++        var min     = this.minSlider.getValue(),
++            max     = this.maxSlider.getValue(),
++            changed = false,
++            mint,maxt,dim,minConstraint,maxConstraint,thumbInnerWidth;
++
++        if (min != this.minVal || max != this.maxVal) {
++            changed = true;
++
++            mint = this.minSlider.thumb;
++            maxt = this.maxSlider.thumb;
++            dim  = this.isHoriz ? 'x' : 'y';
++
++            thumbInnerWidth = this.minSlider.thumbCenterPoint[dim] +
++                              this.maxSlider.thumbCenterPoint[dim];
++
++            // Establish barriers within the respective other thumb's edge, less
++            // the minRange.  Limit to the Slider's range in the case of
++            // negative minRanges.
++            minConstraint = Math.max(max-thumbInnerWidth-this.minRange,0);
++            maxConstraint = Math.min(-min-thumbInnerWidth-this.minRange,0);
++
++            if (this.isHoriz) {
++                minConstraint = Math.min(minConstraint,maxt.rightConstraint);
++
++                mint.setXConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
++
++                maxt.setXConstraint(maxConstraint,maxt.rightConstraint, maxt.tickSize);
++            } else {
++                minConstraint = Math.min(minConstraint,maxt.bottomConstraint);
++                mint.setYConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
++
++                maxt.setYConstraint(maxConstraint,maxt.bottomConstraint, maxt.tickSize);
++            }
++        }
++
++        this.minVal = min;
++        this.maxVal = max;
++
++        if (changed && !silent) {
++            this.fireEvent("change", this);
++        }
++    },
++
++    /**
++     * A background click will move the slider thumb nearest to the click.
++     * Override if you need different behavior.
++     * @method selectActiveSlider
++     * @param e {Event} the mousedown event
++     * @private
++     */
++    selectActiveSlider: function(e) {
++        var min = this.minSlider,
++            max = this.maxSlider,
++            minLocked = min.isLocked() || !min.backgroundEnabled,
++            maxLocked = max.isLocked() || !min.backgroundEnabled,
++            Ev  = YAHOO.util.Event,
++            d;
++
++        if (minLocked || maxLocked) {
++            this.activeSlider = minLocked ? max : min;
++        } else {
++            if (this.isHoriz) {
++                d = Ev.getPageX(e)-min.thumb.initPageX-min.thumbCenterPoint.x;
++            } else {
++                d = Ev.getPageY(e)-min.thumb.initPageY-min.thumbCenterPoint.y;
++            }
++                    
++            this.activeSlider = d*2 > max.getValue()+min.getValue() ? max : min;
++        }
++    },
++
++    /**
++     * Delegates the onMouseDown to the appropriate Slider
++     *
++     * @method _handleMouseDown
++     * @param e {Event} mouseup event
++     * @protected
++     */
++    _handleMouseDown: function(e) {
++        if (!e._handled && !this.minSlider._sliding && !this.maxSlider._sliding) {
++            e._handled = true;
++            this.selectActiveSlider(e);
++            return YW.Slider.prototype.onMouseDown.call(this.activeSlider, e);
++        } else {
++            return false;
++        }
++    },
++
++    /**
++     * Delegates the onMouseUp to the active Slider
++     *
++     * @method _handleMouseUp
++     * @param e {Event} mouseup event
++     * @protected
++     */
++    _handleMouseUp : function (e) {
++        YW.Slider.prototype.onMouseUp.apply(
++            this.activeSlider, arguments);
++    },
++
++    /**
++     * Schedule an event callback that will execute once, then unsubscribe
++     * itself.
++     * @method _oneTimeCallback
++     * @param o {EventProvider} Object to attach the event to
++     * @param evt {string} Name of the event
++     * @param fn {Function} function to execute once
++     * @private
++     */
++    _oneTimeCallback : function (o,evt,fn) {
++        var sub = function () {
++            // Unsubscribe myself
++            o.unsubscribe(evt, sub);
++            // Pass the event handler arguments to the one time callback
++            fn.apply({},arguments);
++        };
++        o.subscribe(evt,sub);
++    },
++
++    /**
++     * Clean up the slideEnd event subscribers array, since each one-time
++     * callback will be replaced in the event's subscribers property with
++     * null.  This will cause memory bloat and loss of performance.
++     * @method _cleanEvent
++     * @param o {EventProvider} object housing the CustomEvent
++     * @param evt {string} name of the CustomEvent
++     * @private
++     */
++    _cleanEvent : function (o,evt) {
++        var ce,i,len,j,subs,newSubs;
++
++        if (o.__yui_events && o.events[evt]) {
++            for (i = o.__yui_events.length; i >= 0; --i) {
++                if (o.__yui_events[i].type === evt) {
++                    ce = o.__yui_events[i];
++                    break;
++                }
++            }
++            if (ce) {
++                subs    = ce.subscribers;
++                newSubs = [];
++                j = 0;
++                for (i = 0, len = subs.length; i < len; ++i) {
++                    if (subs[i]) {
++                        newSubs[j++] = subs[i];
++                    }
++                }
++                ce.subscribers = newSubs;
++            }
++        }
++    }
++
++};
++
++YAHOO.lang.augmentProto(DualSlider, YAHOO.util.EventProvider);
++
++
++/**
++ * Factory method for creating a horizontal dual-thumb slider
++ * @for YAHOO.widget.Slider
++ * @method YAHOO.widget.Slider.getHorizDualSlider
++ * @static
++ * @param {String} bg the id of the slider's background element
++ * @param {String} minthumb the id of the min thumb
++ * @param {String} maxthumb the id of the thumb thumb
++ * @param {int} range the number of pixels the thumbs can move within
++ * @param {int} iTickSize (optional) the element should move this many pixels
++ * at a time
++ * @param {Array}  initVals (optional) [min,max] Initial thumb placement
++ * @return {DualSlider} a horizontal dual-thumb slider control
++ */
++YW.Slider.getHorizDualSlider = 
++    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
++        var mint = new YW.SliderThumb(minthumb, bg, 0, range, 0, 0, iTickSize),
++            maxt = new YW.SliderThumb(maxthumb, bg, 0, range, 0, 0, iTickSize);
++
++        return new DualSlider(
++                    new YW.Slider(bg, bg, mint, "horiz"),
++                    new YW.Slider(bg, bg, maxt, "horiz"),
++                    range, initVals);
++};
++
++/**
++ * Factory method for creating a vertical dual-thumb slider.
++ * @for YAHOO.widget.Slider
++ * @method YAHOO.widget.Slider.getVertDualSlider
++ * @static
++ * @param {String} bg the id of the slider's background element
++ * @param {String} minthumb the id of the min thumb
++ * @param {String} maxthumb the id of the thumb thumb
++ * @param {int} range the number of pixels the thumbs can move within
++ * @param {int} iTickSize (optional) the element should move this many pixels
++ * at a time
++ * @param {Array}  initVals (optional) [min,max] Initial thumb placement
++ * @return {DualSlider} a vertical dual-thumb slider control
++ */
++YW.Slider.getVertDualSlider = 
++    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
++        var mint = new YW.SliderThumb(minthumb, bg, 0, 0, 0, range, iTickSize),
++            maxt = new YW.SliderThumb(maxthumb, bg, 0, 0, 0, range, iTickSize);
++
++        return new YW.DualSlider(
++                    new YW.Slider(bg, bg, mint, "vert"),
++                    new YW.Slider(bg, bg, maxt, "vert"),
++                    range, initVals);
++};
++
++YAHOO.widget.DualSlider = DualSlider;
++
++})();
++YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/slider/slider-min.js b/pylons_app/public/js/yui/slider/slider-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/slider-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util.Dom.getXY,A=YAHOO.util.Event,D=Array.prototype.slice;function C(G,E,F,H){C.ANIM_AVAIL=(!YAHOO.lang.isUndefined(YAHOO.util.Anim));if(G){this.init(G,E,true);this.initSlider(H);this.initThumb(F);}}YAHOO.lang.augmentObject(C,{getHorizSlider:function(F,G,I,H,E){return new C(F,F,new YAHOO.widget.SliderThumb(G,F,I,H,0,0,E),"horiz");},getVertSlider:function(G,H,E,I,F){return new C(G,G,new YAHOO.widget.SliderThumb(H,G,0,0,E,I,F),"vert");},getSliderRegion:function(G,H,J,I,E,K,F){return new C(G,G,new YAHOO.widget.SliderThumb(H,G,J,I,E,K,F),"region");},SOURCE_UI_EVENT:1,SOURCE_SET_VALUE:2,SOURCE_KEY_EVENT:3,ANIM_AVAIL:false},true);YAHOO.extend(C,YAHOO.util.DragDrop,{_mouseDown:false,dragOnly:true,initSlider:function(E){this.type=E;this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);this.isTarget=false;this.animate=C.ANIM_AVAIL;this.backgroundEnabled=true;this.tickPause=40;this.enableKeys=true;this.keyIncrement=20;this.moveComplete=true;this.animationDuration=0.2;this.SOURCE_UI_EVENT=1;this.SOURCE_SET_VALUE=2;this.valueChangeSource=0;this._silent=false;this.lastOffset=[0,0];},initThumb:function(F){var E=this;this.thumb=F;F.cacheBetweenDrags=true;if(F._isHoriz&&F.xTicks&&F.xTicks.length){this.tickPause=Math.round(360/F.xTicks.length);}else{if(F.yTicks&&F.yTicks.length){this.tickPause=Math.round(360/F.yTicks.length);}}F.onAvailable=function(){return E.setStartSliderState();};F.onMouseDown=function(){E._mouseDown=true;return E.focus();};F.startDrag=function(){E._slideStart();};F.onDrag=function(){E.fireEvents(true);};F.onMouseUp=function(){E.thumbMouseUp();};},onAvailable:function(){this._bindKeyEvents();},_bindKeyEvents:function(){A.on(this.id,"keydown",this.handleKeyDown,this,true);A.on(this.id,"keypress",this.handleKeyPress,this,true);},handleKeyPress:function(F){if(this.enableKeys){var E=A.getCharCode(F);switch(E){case 37:case 38:case 39:case 40:case 36:case 35:A.preventDefault(F);break;default:}}},handleKeyDown:function(J){if(this.enableKeys){var G=A.getCharCode(J),F=this.thumb,H=this.getXValue(),E=this.getYValue(),I=true;switch(G){case 37:H-=this.keyIncrement;break;case 38:E-=this.keyIncrement;break;case 39:H+=this.keyIncrement;break;case 40:E+=this.keyIncrement;break;case 36:H=F.leftConstraint;E=F.topConstraint;break;case 35:H=F.rightConstraint;E=F.bottomConstraint;break;default:I=false;}if(I){if(F._isRegion){this._setRegionValue(C.SOURCE_KEY_EVENT,H,E,true);}else{this._setValue(C.SOURCE_KEY_EVENT,(F._isHoriz?H:E),true);}A.stopEvent(J);}}},setStartSliderState:function(){this.setThumbCenterPoint();this.baselinePos=B(this.getEl());this.thumb.startOffset=this.thumb.getOffsetFromParent(this.baselinePos);if(this.thumb._isRegion){if(this.deferredSetRegionValue){this._setRegionValue.apply(this,this.deferredSetRegionValue);this.deferredSetRegionValue=null;}else{this.setRegionValue(0,0,true,true,true);}}else{if(this.deferredSetValue){this._setValue.apply(this,this.deferredSetValue);this.deferredSetValue=null;}else{this.setValue(0,true,true,true);}}},setThumbCenterPoint:function(){var E=this.thumb.getEl();if(E){this.thumbCenterPoint={x:parseInt(E.offsetWidth/2,10),y:parseInt(E.offsetHeight/2,10)};}},lock:function(){this.thumb.lock();this.locked=true;},unlock:function(){this.thumb.unlock();this.locked=false;},thumbMouseUp:function(){this._mouseDown=false;if(!this.isLocked()){this.endMove();}},onMouseUp:function(){this._mouseDown=false;if(this.backgroundEnabled&&!this.isLocked()){this.endMove();}},getThumb:function(){return this.thumb;},focus:function(){this.valueChangeSource=C.SOURCE_UI_EVENT;var E=this.getEl();if(E.focus){try{E.focus();}catch(F){}}this.verifyOffset();return !this.isLocked();},onChange:function(E,F){},onSlideStart:function(){},onSlideEnd:function(){},getValue:function(){return this.thumb.getValue();},getXValue:function(){return this.thumb.getXValue();},getYValue:function(){return this.thumb.getYValue();},setValue:function(){var E=D.call(arguments);E.unshift(C.SOURCE_SET_VALUE);return this._setValue.apply(this,E);},_setValue:function(I,L,G,H,E){var F=this.thumb,K,J;if(!F.available){this.deferredSetValue=arguments;return false;}if(this.isLocked()&&!H){return false;}if(isNaN(L)){return false;}if(F._isRegion){return false;}this._silent=E;this.valueChangeSource=I||C.SOURCE_SET_VALUE;F.lastOffset=[L,L];this.verifyOffset();this._slideStart();if(F._isHoriz){K=F.initPageX+L+this.thumbCenterPoint.x;this.moveThumb(K,F.initPageY,G);}else{J=F.initPageY+L+this.thumbCenterPoint.y;this.moveThumb(F.initPageX,J,G);}return true;},setRegionValue:function(){var E=D.call(arguments);E.unshift(C.SOURCE_SET_VALUE);return this._setRegionValue.apply(this,E);},_setRegionValue:function(F,J,H,I,G,K){var L=this.thumb,E,M;if(!L.available){this.deferredSetRegionValue=arguments;return false;}if(this.isLocked()&&!G){return false;}if(isNaN(J)){return false;}if(!L._isRegion){return false;}this._silent=K;this.valueChangeSource=F||C.SOURCE_SET_VALUE;L.lastOffset=[J,H];this.verifyOffset();this._slideStart();E=L.initPageX+J+this.thumbCenterPoint.x;M=L.initPageY+H+this.thumbCenterPoint.y;this.moveThumb(E,M,I);return true;},verifyOffset:function(){var F=B(this.getEl()),E=this.thumb;if(!this.thumbCenterPoint||!this.thumbCenterPoint.x){this.setThumbCenterPoint();}if(F){if(F[0]!=this.baselinePos[0]||F[1]!=this.baselinePos[1]){this.setInitPosition();this.baselinePos=F;E.initPageX=this.initPageX+E.startOffset[0];E.initPageY=this.initPageY+E.startOffset[1];E.deltaSetXY=null;this.resetThumbConstraints();return false;}}return true;},moveThumb:function(K,J,I,G){var L=this.thumb,M=this,F,E,H;if(!L.available){return;}L.setDelta(this.thumbCenterPoint.x,this.thumbCenterPoint.y);E=L.getTargetCoord(K,J);F=[Math.round(E.x),Math.round(E.y)];if(this.animate&&L._graduated&&!I){this.lock();this.curCoord=B(this.thumb.getEl());this.curCoord=[Math.round(this.curCoord[0]),Math.round(this.curCoord[1])];setTimeout(function(){M.moveOneTick(F);},this.tickPause);}else{if(this.animate&&C.ANIM_AVAIL&&!I){this.lock();
++H=new YAHOO.util.Motion(L.id,{points:{to:F}},this.animationDuration,YAHOO.util.Easing.easeOut);H.onComplete.subscribe(function(){M.unlock();if(!M._mouseDown){M.endMove();}});H.animate();}else{L.setDragElPos(K,J);if(!G&&!this._mouseDown){this.endMove();}}}},_slideStart:function(){if(!this._sliding){if(!this._silent){this.onSlideStart();this.fireEvent("slideStart");}this._sliding=true;this.moveComplete=false;}},_slideEnd:function(){if(this._sliding){var E=this._silent;this._sliding=false;this.moveComplete=true;this._silent=false;if(!E){this.onSlideEnd();this.fireEvent("slideEnd");}}},moveOneTick:function(F){var H=this.thumb,G=this,I=null,E,J;if(H._isRegion){I=this._getNextX(this.curCoord,F);E=(I!==null)?I[0]:this.curCoord[0];I=this._getNextY(this.curCoord,F);J=(I!==null)?I[1]:this.curCoord[1];I=E!==this.curCoord[0]||J!==this.curCoord[1]?[E,J]:null;}else{if(H._isHoriz){I=this._getNextX(this.curCoord,F);}else{I=this._getNextY(this.curCoord,F);}}if(I){this.curCoord=I;this.thumb.alignElWithMouse(H.getEl(),I[0]+this.thumbCenterPoint.x,I[1]+this.thumbCenterPoint.y);if(!(I[0]==F[0]&&I[1]==F[1])){setTimeout(function(){G.moveOneTick(F);},this.tickPause);}else{this.unlock();if(!this._mouseDown){this.endMove();}}}else{this.unlock();if(!this._mouseDown){this.endMove();}}},_getNextX:function(E,F){var H=this.thumb,J,G=[],I=null;if(E[0]>F[0]){J=H.tickSize-this.thumbCenterPoint.x;G=H.getTargetCoord(E[0]-J,E[1]);I=[G.x,G.y];}else{if(E[0]<F[0]){J=H.tickSize+this.thumbCenterPoint.x;G=H.getTargetCoord(E[0]+J,E[1]);I=[G.x,G.y];}else{}}return I;},_getNextY:function(E,F){var H=this.thumb,J,G=[],I=null;if(E[1]>F[1]){J=H.tickSize-this.thumbCenterPoint.y;G=H.getTargetCoord(E[0],E[1]-J);I=[G.x,G.y];}else{if(E[1]<F[1]){J=H.tickSize+this.thumbCenterPoint.y;G=H.getTargetCoord(E[0],E[1]+J);I=[G.x,G.y];}else{}}return I;},b4MouseDown:function(E){if(!this.backgroundEnabled){return false;}this.thumb.autoOffset();this.baselinePos=[];},onMouseDown:function(F){if(!this.backgroundEnabled||this.isLocked()){return false;}this._mouseDown=true;var E=A.getPageX(F),G=A.getPageY(F);this.focus();this._slideStart();this.moveThumb(E,G);},onDrag:function(F){if(this.backgroundEnabled&&!this.isLocked()){var E=A.getPageX(F),G=A.getPageY(F);this.moveThumb(E,G,true,true);this.fireEvents();}},endMove:function(){this.unlock();this.fireEvents();this._slideEnd();},resetThumbConstraints:function(){var E=this.thumb;E.setXConstraint(E.leftConstraint,E.rightConstraint,E.xTickSize);E.setYConstraint(E.topConstraint,E.bottomConstraint,E.xTickSize);},fireEvents:function(G){var F=this.thumb,I,H,E;if(!G){F.cachePosition();}if(!this.isLocked()){if(F._isRegion){I=F.getXValue();H=F.getYValue();if(I!=this.previousX||H!=this.previousY){if(!this._silent){this.onChange(I,H);this.fireEvent("change",{x:I,y:H});}}this.previousX=I;this.previousY=H;}else{E=F.getValue();if(E!=this.previousVal){if(!this._silent){this.onChange(E);this.fireEvent("change",E);}}this.previousVal=E;}}},toString:function(){return("Slider ("+this.type+") "+this.id);}});YAHOO.lang.augmentProto(C,YAHOO.util.EventProvider);YAHOO.widget.Slider=C;})();YAHOO.widget.SliderThumb=function(G,B,E,D,A,F,C){if(G){YAHOO.widget.SliderThumb.superclass.constructor.call(this,G,B);this.parentElId=B;}this.isTarget=false;this.tickSize=C;this.maintainOffset=true;this.initSlider(E,D,A,F,C);this.scroll=false;};YAHOO.extend(YAHOO.widget.SliderThumb,YAHOO.util.DD,{startOffset:null,dragOnly:true,_isHoriz:false,_prevVal:0,_graduated:false,getOffsetFromParent0:function(C){var A=YAHOO.util.Dom.getXY(this.getEl()),B=C||YAHOO.util.Dom.getXY(this.parentElId);return[(A[0]-B[0]),(A[1]-B[1])];},getOffsetFromParent:function(H){var A=this.getEl(),E,I,F,B,K,D,C,J,G;if(!this.deltaOffset){I=YAHOO.util.Dom.getXY(A);F=H||YAHOO.util.Dom.getXY(this.parentElId);E=[(I[0]-F[0]),(I[1]-F[1])];B=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);K=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);D=B-E[0];C=K-E[1];if(isNaN(D)||isNaN(C)){}else{this.deltaOffset=[D,C];}}else{J=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);G=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);E=[J+this.deltaOffset[0],G+this.deltaOffset[1]];}return E;},initSlider:function(D,C,A,E,B){this.initLeft=D;this.initRight=C;this.initUp=A;this.initDown=E;this.setXConstraint(D,C,B);this.setYConstraint(A,E,B);if(B&&B>1){this._graduated=true;}this._isHoriz=(D||C);this._isVert=(A||E);this._isRegion=(this._isHoriz&&this._isVert);},clearTicks:function(){YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);this.tickSize=0;this._graduated=false;},getValue:function(){return(this._isHoriz)?this.getXValue():this.getYValue();},getXValue:function(){if(!this.available){return 0;}var A=this.getOffsetFromParent();if(YAHOO.lang.isNumber(A[0])){this.lastOffset=A;return(A[0]-this.startOffset[0]);}else{return(this.lastOffset[0]-this.startOffset[0]);}},getYValue:function(){if(!this.available){return 0;}var A=this.getOffsetFromParent();if(YAHOO.lang.isNumber(A[1])){this.lastOffset=A;return(A[1]-this.startOffset[1]);}else{return(this.lastOffset[1]-this.startOffset[1]);}},toString:function(){return"SliderThumb "+this.id;},onChange:function(A,B){}});(function(){var A=YAHOO.util.Event,B=YAHOO.widget;function C(I,F,H,D){var G=this,J={min:false,max:false},E,K;this.minSlider=I;this.maxSlider=F;this.activeSlider=I;this.isHoriz=I.thumb._isHoriz;E=this.minSlider.thumb.onMouseDown;K=this.maxSlider.thumb.onMouseDown;this.minSlider.thumb.onMouseDown=function(){G.activeSlider=G.minSlider;E.apply(this,arguments);};this.maxSlider.thumb.onMouseDown=function(){G.activeSlider=G.maxSlider;K.apply(this,arguments);};this.minSlider.thumb.onAvailable=function(){I.setStartSliderState();J.min=true;if(J.max){G.fireEvent("ready",G);}};this.maxSlider.thumb.onAvailable=function(){F.setStartSliderState();J.max=true;if(J.min){G.fireEvent("ready",G);}};I.onMouseDown=F.onMouseDown=function(L){return this.backgroundEnabled&&G._handleMouseDown(L);};I.onDrag=F.onDrag=function(L){G._handleDrag(L);};I.onMouseUp=F.onMouseUp=function(L){G._handleMouseUp(L);
++};I._bindKeyEvents=function(){G._bindKeyEvents(this);};F._bindKeyEvents=function(){};I.subscribe("change",this._handleMinChange,I,this);I.subscribe("slideStart",this._handleSlideStart,I,this);I.subscribe("slideEnd",this._handleSlideEnd,I,this);F.subscribe("change",this._handleMaxChange,F,this);F.subscribe("slideStart",this._handleSlideStart,F,this);F.subscribe("slideEnd",this._handleSlideEnd,F,this);this.createEvent("ready",this);this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);D=YAHOO.lang.isArray(D)?D:[0,H];D[0]=Math.min(Math.max(parseInt(D[0],10)|0,0),H);D[1]=Math.max(Math.min(parseInt(D[1],10)|0,H),0);if(D[0]>D[1]){D.splice(0,2,D[1],D[0]);}this.minVal=D[0];this.maxVal=D[1];this.minSlider.setValue(this.minVal,true,true,true);this.maxSlider.setValue(this.maxVal,true,true,true);}C.prototype={minVal:-1,maxVal:-1,minRange:0,_handleSlideStart:function(E,D){this.fireEvent("slideStart",D);},_handleSlideEnd:function(E,D){this.fireEvent("slideEnd",D);},_handleDrag:function(D){B.Slider.prototype.onDrag.call(this.activeSlider,D);},_handleMinChange:function(){this.activeSlider=this.minSlider;this.updateValue();},_handleMaxChange:function(){this.activeSlider=this.maxSlider;this.updateValue();},_bindKeyEvents:function(D){A.on(D.id,"keydown",this._handleKeyDown,this,true);A.on(D.id,"keypress",this._handleKeyPress,this,true);},_handleKeyDown:function(D){this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);},_handleKeyPress:function(D){this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);},setValues:function(H,K,I,E,J){var F=this.minSlider,M=this.maxSlider,D=F.thumb,L=M.thumb,N=this,G={min:false,max:false};if(D._isHoriz){D.setXConstraint(D.leftConstraint,L.rightConstraint,D.tickSize);L.setXConstraint(D.leftConstraint,L.rightConstraint,L.tickSize);}else{D.setYConstraint(D.topConstraint,L.bottomConstraint,D.tickSize);L.setYConstraint(D.topConstraint,L.bottomConstraint,L.tickSize);}this._oneTimeCallback(F,"slideEnd",function(){G.min=true;if(G.max){N.updateValue(J);setTimeout(function(){N._cleanEvent(F,"slideEnd");N._cleanEvent(M,"slideEnd");},0);}});this._oneTimeCallback(M,"slideEnd",function(){G.max=true;if(G.min){N.updateValue(J);setTimeout(function(){N._cleanEvent(F,"slideEnd");N._cleanEvent(M,"slideEnd");},0);}});F.setValue(H,I,E,false);M.setValue(K,I,E,false);},setMinValue:function(F,H,I,E){var G=this.minSlider,D=this;this.activeSlider=G;D=this;this._oneTimeCallback(G,"slideEnd",function(){D.updateValue(E);setTimeout(function(){D._cleanEvent(G,"slideEnd");},0);});G.setValue(F,H,I);},setMaxValue:function(D,H,I,F){var G=this.maxSlider,E=this;this.activeSlider=G;this._oneTimeCallback(G,"slideEnd",function(){E.updateValue(F);setTimeout(function(){E._cleanEvent(G,"slideEnd");},0);});G.setValue(D,H,I);},updateValue:function(J){var E=this.minSlider.getValue(),K=this.maxSlider.getValue(),F=false,D,M,H,I,L,G;if(E!=this.minVal||K!=this.maxVal){F=true;D=this.minSlider.thumb;M=this.maxSlider.thumb;H=this.isHoriz?"x":"y";G=this.minSlider.thumbCenterPoint[H]+this.maxSlider.thumbCenterPoint[H];I=Math.max(K-G-this.minRange,0);L=Math.min(-E-G-this.minRange,0);if(this.isHoriz){I=Math.min(I,M.rightConstraint);D.setXConstraint(D.leftConstraint,I,D.tickSize);M.setXConstraint(L,M.rightConstraint,M.tickSize);}else{I=Math.min(I,M.bottomConstraint);D.setYConstraint(D.leftConstraint,I,D.tickSize);M.setYConstraint(L,M.bottomConstraint,M.tickSize);}}this.minVal=E;this.maxVal=K;if(F&&!J){this.fireEvent("change",this);}},selectActiveSlider:function(H){var E=this.minSlider,D=this.maxSlider,J=E.isLocked()||!E.backgroundEnabled,G=D.isLocked()||!E.backgroundEnabled,F=YAHOO.util.Event,I;if(J||G){this.activeSlider=J?D:E;}else{if(this.isHoriz){I=F.getPageX(H)-E.thumb.initPageX-E.thumbCenterPoint.x;}else{I=F.getPageY(H)-E.thumb.initPageY-E.thumbCenterPoint.y;}this.activeSlider=I*2>D.getValue()+E.getValue()?D:E;}},_handleMouseDown:function(D){if(!D._handled&&!this.minSlider._sliding&&!this.maxSlider._sliding){D._handled=true;this.selectActiveSlider(D);return B.Slider.prototype.onMouseDown.call(this.activeSlider,D);}else{return false;}},_handleMouseUp:function(D){B.Slider.prototype.onMouseUp.apply(this.activeSlider,arguments);},_oneTimeCallback:function(G,D,F){var E=function(){G.unsubscribe(D,E);F.apply({},arguments);};G.subscribe(D,E);},_cleanEvent:function(K,E){var J,I,D,G,H,F;if(K.__yui_events&&K.events[E]){for(I=K.__yui_events.length;I>=0;--I){if(K.__yui_events[I].type===E){J=K.__yui_events[I];break;}}if(J){H=J.subscribers;F=[];G=0;for(I=0,D=H.length;I<D;++I){if(H[I]){F[G++]=H[I];}}J.subscribers=F;}}}};YAHOO.lang.augmentProto(C,YAHOO.util.EventProvider);B.Slider.getHorizDualSlider=function(H,J,K,G,F,D){var I=new B.SliderThumb(J,H,0,G,0,0,F),E=new B.SliderThumb(K,H,0,G,0,0,F);return new C(new B.Slider(H,H,I,"horiz"),new B.Slider(H,H,E,"horiz"),G,D);};B.Slider.getVertDualSlider=function(H,J,K,G,F,D){var I=new B.SliderThumb(J,H,0,0,0,G,F),E=new B.SliderThumb(K,H,0,0,0,G,F);return new B.DualSlider(new B.Slider(H,H,I,"vert"),new B.Slider(H,H,E,"vert"),G,D);};YAHOO.widget.DualSlider=C;})();YAHOO.register("slider",YAHOO.widget.Slider,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/slider/slider.js b/pylons_app/public/js/yui/slider/slider.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/slider/slider.js
+@@ -0,0 +1,2068 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Slider component is a UI control that enables the user to adjust 
++ * values in a finite range along one or two axes. Typically, the Slider 
++ * control is used in a web application as a rich, visual replacement 
++ * for an input box that takes a number as input. The Slider control can 
++ * also easily accommodate a second dimension, providing x,y output for 
++ * a selection point chosen from a rectangular region.
++ *
++ * @module    slider
++ * @title     Slider Widget
++ * @namespace YAHOO.widget
++ * @requires  yahoo,dom,dragdrop,event
++ * @optional  animation
++ */
++ (function () {
++
++var getXY = YAHOO.util.Dom.getXY,
++    Event = YAHOO.util.Event,
++    _AS   = Array.prototype.slice;
++
++/**
++ * A DragDrop implementation that can be used as a background for a
++ * slider.  It takes a reference to the thumb instance 
++ * so it can delegate some of the events to it.  The goal is to make the 
++ * thumb jump to the location on the background when the background is 
++ * clicked.  
++ *
++ * @class Slider
++ * @extends YAHOO.util.DragDrop
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param {String}      id     The id of the element linked to this instance
++ * @param {String}      sGroup The group of related DragDrop items
++ * @param {SliderThumb} oThumb The thumb for this slider
++ * @param {String}      sType  The type of slider (horiz, vert, region)
++ */
++function Slider(sElementId, sGroup, oThumb, sType) {
++
++    Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim));
++
++    if (sElementId) {
++        this.init(sElementId, sGroup, true);
++        this.initSlider(sType);
++        this.initThumb(oThumb);
++    }
++}
++
++YAHOO.lang.augmentObject(Slider,{
++    /**
++     * Factory method for creating a horizontal slider
++     * @method YAHOO.widget.Slider.getHorizSlider
++     * @static
++     * @param {String} sBGElId the id of the slider's background element
++     * @param {String} sHandleElId the id of the thumb element
++     * @param {int} iLeft the number of pixels the element can move left
++     * @param {int} iRight the number of pixels the element can move right
++     * @param {int} iTickSize optional parameter for specifying that the element 
++     * should move a certain number pixels at a time.
++     * @return {Slider} a horizontal slider control
++     */
++    getHorizSlider : 
++        function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) {
++            return new Slider(sBGElId, sBGElId, 
++                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 
++                                   iLeft, iRight, 0, 0, iTickSize), "horiz");
++    },
++
++    /**
++     * Factory method for creating a vertical slider
++     * @method YAHOO.widget.Slider.getVertSlider
++     * @static
++     * @param {String} sBGElId the id of the slider's background element
++     * @param {String} sHandleElId the id of the thumb element
++     * @param {int} iUp the number of pixels the element can move up
++     * @param {int} iDown the number of pixels the element can move down
++     * @param {int} iTickSize optional parameter for specifying that the element 
++     * should move a certain number pixels at a time.
++     * @return {Slider} a vertical slider control
++     */
++    getVertSlider :
++        function (sBGElId, sHandleElId, iUp, iDown, iTickSize) {
++            return new Slider(sBGElId, sBGElId, 
++                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, 
++                                   iUp, iDown, iTickSize), "vert");
++    },
++
++    /**
++     * Factory method for creating a slider region like the one in the color
++     * picker example
++     * @method YAHOO.widget.Slider.getSliderRegion
++     * @static
++     * @param {String} sBGElId the id of the slider's background element
++     * @param {String} sHandleElId the id of the thumb element
++     * @param {int} iLeft the number of pixels the element can move left
++     * @param {int} iRight the number of pixels the element can move right
++     * @param {int} iUp the number of pixels the element can move up
++     * @param {int} iDown the number of pixels the element can move down
++     * @param {int} iTickSize optional parameter for specifying that the element 
++     * should move a certain number pixels at a time.
++     * @return {Slider} a slider region control
++     */
++    getSliderRegion : 
++        function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) {
++            return new Slider(sBGElId, sBGElId, 
++                new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, 
++                                   iUp, iDown, iTickSize), "region");
++    },
++
++    /**
++     * Constant for valueChangeSource, indicating that the user clicked or
++     * dragged the slider to change the value.
++     * @property Slider.SOURCE_UI_EVENT
++     * @final
++     * @static
++     * @default 1
++     */
++    SOURCE_UI_EVENT : 1,
++
++    /**
++     * Constant for valueChangeSource, indicating that the value was altered
++     * by a programmatic call to setValue/setRegionValue.
++     * @property Slider.SOURCE_SET_VALUE
++     * @final
++     * @static
++     * @default 2
++     */
++    SOURCE_SET_VALUE : 2,
++
++    /**
++     * Constant for valueChangeSource, indicating that the value was altered
++     * by hitting any of the supported keyboard characters.
++     * @property Slider.SOURCE_KEY_EVENT
++     * @final
++     * @static
++     * @default 2
++     */
++    SOURCE_KEY_EVENT : 3,
++
++    /**
++     * By default, animation is available if the animation utility is detected.
++     * @property Slider.ANIM_AVAIL
++     * @static
++     * @type boolean
++     */
++    ANIM_AVAIL : false
++},true);
++
++YAHOO.extend(Slider, YAHOO.util.DragDrop, {
++
++    /**
++     * Tracks the state of the mouse button to aid in when events are fired.
++     *
++     * @property _mouseDown
++     * @type boolean
++     * @default false
++     * @private
++     */
++    _mouseDown : false,
++
++    /**
++     * Override the default setting of dragOnly to true.
++     * @property dragOnly
++     * @type boolean
++     * @default true
++     */
++    dragOnly : true,
++
++    /**
++     * Initializes the slider.  Executed in the constructor
++     * @method initSlider
++     * @param {string} sType the type of slider (horiz, vert, region)
++     */
++    initSlider: function(sType) {
++
++        /**
++         * The type of the slider (horiz, vert, region)
++         * @property type
++         * @type string
++         */
++        this.type = sType;
++
++        //this.removeInvalidHandleType("A");
++
++
++        /**
++         * Event the fires when the value of the control changes.  If 
++         * the control is animated the event will fire every point
++         * along the way.
++         * @event change
++         * @param {int} newOffset|x the new offset for normal sliders, or the new
++         *                          x offset for region sliders
++         * @param {int} y the number of pixels the thumb has moved on the y axis
++         *                (region sliders only)
++         */
++        this.createEvent("change", this);
++
++        /**
++         * Event that fires at the beginning of a slider thumb move.
++         * @event slideStart
++         */
++        this.createEvent("slideStart", this);
++
++        /**
++         * Event that fires at the end of a slider thumb move
++         * @event slideEnd
++         */
++        this.createEvent("slideEnd", this);
++
++        /**
++         * Overrides the isTarget property in YAHOO.util.DragDrop
++         * @property isTarget
++         * @private
++         */
++        this.isTarget = false;
++    
++        /**
++         * Flag that determines if the thumb will animate when moved
++         * @property animate
++         * @type boolean
++         */
++        this.animate = Slider.ANIM_AVAIL;
++
++        /**
++         * Set to false to disable a background click thumb move
++         * @property backgroundEnabled
++         * @type boolean
++         */
++        this.backgroundEnabled = true;
++
++        /**
++         * Adjustment factor for tick animation, the more ticks, the
++         * faster the animation (by default)
++         * @property tickPause
++         * @type int
++         */
++        this.tickPause = 40;
++
++        /**
++         * Enables the arrow, home and end keys, defaults to true.
++         * @property enableKeys
++         * @type boolean
++         */
++        this.enableKeys = true;
++
++        /**
++         * Specifies the number of pixels the arrow keys will move the slider.
++         * Default is 20.
++         * @property keyIncrement
++         * @type int
++         */
++        this.keyIncrement = 20;
++
++        /**
++         * moveComplete is set to true when the slider has moved to its final
++         * destination.  For animated slider, this value can be checked in 
++         * the onChange handler to make it possible to execute logic only
++         * when the move is complete rather than at all points along the way.
++         * Deprecated because this flag is only useful when the background is
++         * clicked and the slider is animated.  If the user drags the thumb,
++         * the flag is updated when the drag is over ... the final onDrag event
++         * fires before the mouseup the ends the drag, so the implementer will
++         * never see it.
++         *
++         * @property moveComplete
++         * @type Boolean
++         * @deprecated use the slideEnd event instead
++         */
++        this.moveComplete = true;
++
++        /**
++         * If animation is configured, specifies the length of the animation
++         * in seconds.
++         * @property animationDuration
++         * @type int
++         * @default 0.2
++         */
++        this.animationDuration = 0.2;
++
++        /**
++         * Constant for valueChangeSource, indicating that the user clicked or
++         * dragged the slider to change the value.
++         * @property SOURCE_UI_EVENT
++         * @final
++         * @default 1
++         * @deprecated use static Slider.SOURCE_UI_EVENT
++         */
++        this.SOURCE_UI_EVENT = 1;
++
++        /**
++         * Constant for valueChangeSource, indicating that the value was altered
++         * by a programmatic call to setValue/setRegionValue.
++         * @property SOURCE_SET_VALUE
++         * @final
++         * @default 2
++         * @deprecated use static Slider.SOURCE_SET_VALUE
++         */
++        this.SOURCE_SET_VALUE = 2;
++
++        /**
++         * When the slider value changes, this property is set to identify where
++         * the update came from.  This will be either 1, meaning the slider was
++         * clicked or dragged, or 2, meaning that it was set via a setValue() call.
++         * This can be used within event handlers to apply some of the logic only
++         * when dealing with one source or another.
++         * @property valueChangeSource
++         * @type int
++         * @since 2.3.0
++         */
++        this.valueChangeSource = 0;
++
++        /**
++         * Indicates whether or not events will be supressed for the current
++         * slide operation
++         * @property _silent
++         * @type boolean
++         * @private
++         */
++        this._silent = false;
++
++        /**
++         * Saved offset used to protect against NaN problems when slider is
++         * set to display:none
++         * @property lastOffset
++         * @type [int, int]
++         */
++        this.lastOffset = [0,0];
++    },
++
++    /**
++     * Initializes the slider's thumb. Executed in the constructor.
++     * @method initThumb
++     * @param {YAHOO.widget.SliderThumb} t the slider thumb
++     */
++    initThumb: function(t) {
++
++        var self = this;
++
++        /**
++         * A YAHOO.widget.SliderThumb instance that we will use to 
++         * reposition the thumb when the background is clicked
++         * @property thumb
++         * @type YAHOO.widget.SliderThumb
++         */
++        this.thumb = t;
++
++        t.cacheBetweenDrags = true;
++
++        if (t._isHoriz && t.xTicks && t.xTicks.length) {
++            this.tickPause = Math.round(360 / t.xTicks.length);
++        } else if (t.yTicks && t.yTicks.length) {
++            this.tickPause = Math.round(360 / t.yTicks.length);
++        }
++
++
++        // delegate thumb methods
++        t.onAvailable = function() { 
++                return self.setStartSliderState(); 
++            };
++        t.onMouseDown = function () { 
++                self._mouseDown = true;
++                return self.focus(); 
++            };
++        t.startDrag = function() { 
++                self._slideStart(); 
++            };
++        t.onDrag = function() { 
++                self.fireEvents(true); 
++            };
++        t.onMouseUp = function() { 
++                self.thumbMouseUp(); 
++            };
++
++    },
++
++    /**
++     * Executed when the slider element is available
++     * @method onAvailable
++     */
++    onAvailable: function() {
++        this._bindKeyEvents();
++    },
++ 
++    /**
++     * Sets up the listeners for keydown and key press events.
++     *
++     * @method _bindKeyEvents
++     * @protected
++     */
++    _bindKeyEvents : function () {
++        Event.on(this.id, "keydown",  this.handleKeyDown,  this, true);
++        Event.on(this.id, "keypress", this.handleKeyPress, this, true);
++    },
++
++    /**
++     * Executed when a keypress event happens with the control focused.
++     * Prevents the default behavior for navigation keys.  The actual
++     * logic for moving the slider thumb in response to a key event
++     * happens in handleKeyDown.
++     * @param {Event} e the keypress event
++     */
++    handleKeyPress: function(e) {
++        if (this.enableKeys) {
++            var kc = Event.getCharCode(e);
++
++            switch (kc) {
++                case 0x25: // left
++                case 0x26: // up
++                case 0x27: // right
++                case 0x28: // down
++                case 0x24: // home
++                case 0x23: // end
++                    Event.preventDefault(e);
++                    break;
++                default:
++            }
++        }
++    },
++
++    /**
++     * Executed when a keydown event happens with the control focused.
++     * Updates the slider value and display when the keypress is an
++     * arrow key, home, or end as long as enableKeys is set to true.
++     * @param {Event} e the keydown event
++     */
++    handleKeyDown: function(e) {
++        if (this.enableKeys) {
++            var kc = Event.getCharCode(e),
++                t  = this.thumb,
++                h  = this.getXValue(),
++                v  = this.getYValue(),
++                changeValue = true;
++
++            switch (kc) {
++
++                // left
++                case 0x25: h -= this.keyIncrement; break;
++
++                // up
++                case 0x26: v -= this.keyIncrement; break;
++
++                // right
++                case 0x27: h += this.keyIncrement; break;
++
++                // down
++                case 0x28: v += this.keyIncrement; break;
++
++                // home
++                case 0x24: h = t.leftConstraint;    
++                           v = t.topConstraint;    
++                           break;
++
++                // end
++                case 0x23: h = t.rightConstraint; 
++                           v = t.bottomConstraint;    
++                           break;
++
++                default:   changeValue = false;
++            }
++
++            if (changeValue) {
++                if (t._isRegion) {
++                    this._setRegionValue(Slider.SOURCE_KEY_EVENT, h, v, true);
++                } else {
++                    this._setValue(Slider.SOURCE_KEY_EVENT,
++                        (t._isHoriz ? h : v), true);
++                }
++                Event.stopEvent(e);
++            }
++
++        }
++    },
++
++    /**
++     * Initialization that sets up the value offsets once the elements are ready
++     * @method setStartSliderState
++     */
++    setStartSliderState: function() {
++
++
++        this.setThumbCenterPoint();
++
++        /**
++         * The basline position of the background element, used
++         * to determine if the background has moved since the last
++         * operation.
++         * @property baselinePos
++         * @type [int, int]
++         */
++        this.baselinePos = getXY(this.getEl());
++
++        this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos);
++
++        if (this.thumb._isRegion) {
++            if (this.deferredSetRegionValue) {
++                this._setRegionValue.apply(this, this.deferredSetRegionValue);
++                this.deferredSetRegionValue = null;
++            } else {
++                this.setRegionValue(0, 0, true, true, true);
++            }
++        } else {
++            if (this.deferredSetValue) {
++                this._setValue.apply(this, this.deferredSetValue);
++                this.deferredSetValue = null;
++            } else {
++                this.setValue(0, true, true, true);
++            }
++        }
++    },
++
++    /**
++     * When the thumb is available, we cache the centerpoint of the element so
++     * we can position the element correctly when the background is clicked
++     * @method setThumbCenterPoint
++     */
++    setThumbCenterPoint: function() {
++
++        var el = this.thumb.getEl();
++
++        if (el) {
++            /**
++             * The center of the slider element is stored so we can 
++             * place it in the correct position when the background is clicked.
++             * @property thumbCenterPoint
++             * @type {"x": int, "y": int}
++             */
++            this.thumbCenterPoint = { 
++                    x: parseInt(el.offsetWidth/2, 10), 
++                    y: parseInt(el.offsetHeight/2, 10) 
++            };
++        }
++
++    },
++
++    /**
++     * Locks the slider, overrides YAHOO.util.DragDrop
++     * @method lock
++     */
++    lock: function() {
++        this.thumb.lock();
++        this.locked = true;
++    },
++
++    /**
++     * Unlocks the slider, overrides YAHOO.util.DragDrop
++     * @method unlock
++     */
++    unlock: function() {
++        this.thumb.unlock();
++        this.locked = false;
++    },
++
++    /**
++     * Handles mouseup event on the thumb
++     * @method thumbMouseUp
++     * @private
++     */
++    thumbMouseUp: function() {
++        this._mouseDown = false;
++        if (!this.isLocked()) {
++            this.endMove();
++        }
++
++    },
++
++    onMouseUp: function() {
++        this._mouseDown = false;
++        if (this.backgroundEnabled && !this.isLocked()) {
++            this.endMove();
++        }
++    },
++
++    /**
++     * Returns a reference to this slider's thumb
++     * @method getThumb
++     * @return {SliderThumb} this slider's thumb
++     */
++    getThumb: function() {
++        return this.thumb;
++    },
++
++    /**
++     * Try to focus the element when clicked so we can add
++     * accessibility features
++     * @method focus
++     * @private
++     */
++    focus: function() {
++        this.valueChangeSource = Slider.SOURCE_UI_EVENT;
++
++        // Focus the background element if possible
++        var el = this.getEl();
++
++        if (el.focus) {
++            try {
++                el.focus();
++            } catch(e) {
++                // Prevent permission denied unhandled exception in FF that can
++                // happen when setting focus while another element is handling
++                // the blur.  @TODO this is still writing to the error log 
++                // (unhandled error) in FF1.5 with strict error checking on.
++            }
++        }
++
++        this.verifyOffset();
++
++        return !this.isLocked();
++    },
++
++    /**
++     * Event that fires when the value of the slider has changed
++     * @method onChange
++     * @param {int} firstOffset the number of pixels the thumb has moved
++     * from its start position. Normal horizontal and vertical sliders will only
++     * have the firstOffset.  Regions will have both, the first is the horizontal
++     * offset, the second the vertical.
++     * @param {int} secondOffset the y offset for region sliders
++     * @deprecated use instance.subscribe("change") instead
++     */
++    onChange: function (firstOffset, secondOffset) { 
++        /* override me */ 
++    },
++
++    /**
++     * Event that fires when the at the beginning of the slider thumb move
++     * @method onSlideStart
++     * @deprecated use instance.subscribe("slideStart") instead
++     */
++    onSlideStart: function () { 
++        /* override me */ 
++    },
++
++    /**
++     * Event that fires at the end of a slider thumb move
++     * @method onSliderEnd
++     * @deprecated use instance.subscribe("slideEnd") instead
++     */
++    onSlideEnd: function () { 
++        /* override me */ 
++    },
++
++    /**
++     * Returns the slider's thumb offset from the start position
++     * @method getValue
++     * @return {int} the current value
++     */
++    getValue: function () { 
++        return this.thumb.getValue();
++    },
++
++    /**
++     * Returns the slider's thumb X offset from the start position
++     * @method getXValue
++     * @return {int} the current horizontal offset
++     */
++    getXValue: function () { 
++        return this.thumb.getXValue();
++    },
++
++    /**
++     * Returns the slider's thumb Y offset from the start position
++     * @method getYValue
++     * @return {int} the current vertical offset
++     */
++    getYValue: function () { 
++        return this.thumb.getYValue();
++    },
++
++    /**
++     * Provides a way to set the value of the slider in code.
++     *
++     * @method setValue
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point 
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     */
++    setValue: function() {
++        var args = _AS.call(arguments);
++        args.unshift(Slider.SOURCE_SET_VALUE);
++        return this._setValue.apply(this,args);
++    },
++
++    /**
++     * Worker function to execute the value set operation.  Accepts type of
++     * set operation in addition to the usual setValue params.
++     *
++     * @method _setValue
++     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point 
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     * @protected
++     */
++    _setValue: function(source, newOffset, skipAnim, force, silent) {
++        var t = this.thumb, newX, newY;
++
++        if (!t.available) {
++            this.deferredSetValue = arguments;
++            return false;
++        }
++
++        if (this.isLocked() && !force) {
++            return false;
++        }
++
++        if ( isNaN(newOffset) ) {
++            return false;
++        }
++
++        if (t._isRegion) {
++            return false;
++        }
++
++
++        this._silent = silent;
++        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
++
++        t.lastOffset = [newOffset, newOffset];
++        this.verifyOffset();
++
++        this._slideStart();
++
++        if (t._isHoriz) {
++            newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
++            this.moveThumb(newX, t.initPageY, skipAnim);
++        } else {
++            newY = t.initPageY + newOffset + this.thumbCenterPoint.y;
++            this.moveThumb(t.initPageX, newY, skipAnim);
++        }
++
++        return true;
++    },
++
++    /**
++     * Provides a way to set the value of the region slider in code.
++     * @method setRegionValue
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point (x axis for region)
++     * @param {int} newOffset2 the number of pixels the thumb should be
++     * positioned away from the initial start point (y axis for region)
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     */
++    setRegionValue : function () {
++        var args = _AS.call(arguments);
++        args.unshift(Slider.SOURCE_SET_VALUE);
++        return this._setRegionValue.apply(this,args);
++    },
++
++    /**
++     * Worker function to execute the value set operation.  Accepts type of
++     * set operation in addition to the usual setValue params.
++     *
++     * @method _setRegionValue
++     * @param source {int} what triggered the set (e.g. Slider.SOURCE_SET_VALUE)
++     * @param {int} newOffset the number of pixels the thumb should be
++     * positioned away from the initial start point (x axis for region)
++     * @param {int} newOffset2 the number of pixels the thumb should be
++     * positioned away from the initial start point (y axis for region)
++     * @param {boolean} skipAnim set to true to disable the animation
++     * for this move action (but not others).
++     * @param {boolean} force ignore the locked setting and set value anyway
++     * @param {boolean} silent when true, do not fire events
++     * @return {boolean} true if the move was performed, false if it failed
++     * @protected
++     */
++    _setRegionValue: function(source, newOffset, newOffset2, skipAnim, force, silent) {
++        var t = this.thumb, newX, newY;
++
++        if (!t.available) {
++            this.deferredSetRegionValue = arguments;
++            return false;
++        }
++
++        if (this.isLocked() && !force) {
++            return false;
++        }
++
++        if ( isNaN(newOffset) ) {
++            return false;
++        }
++
++        if (!t._isRegion) {
++            return false;
++        }
++
++        this._silent = silent;
++
++        this.valueChangeSource = source || Slider.SOURCE_SET_VALUE;
++
++        t.lastOffset = [newOffset, newOffset2];
++        this.verifyOffset();
++
++        this._slideStart();
++
++        newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
++        newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y;
++        this.moveThumb(newX, newY, skipAnim);
++
++        return true;
++    },
++
++    /**
++     * Checks the background position element position.  If it has moved from the
++     * baseline position, the constraints for the thumb are reset
++     * @method verifyOffset
++     * @return {boolean} True if the offset is the same as the baseline.
++     */
++    verifyOffset: function() {
++
++        var xy = getXY(this.getEl()),
++            t  = this.thumb;
++
++        if (!this.thumbCenterPoint || !this.thumbCenterPoint.x) {
++            this.setThumbCenterPoint();
++        }
++
++        if (xy) {
++
++
++            if (xy[0] != this.baselinePos[0] || xy[1] != this.baselinePos[1]) {
++
++                // Reset background
++                this.setInitPosition();
++                this.baselinePos = xy;
++
++                // Reset thumb
++                t.initPageX = this.initPageX + t.startOffset[0];
++                t.initPageY = this.initPageY + t.startOffset[1];
++                t.deltaSetXY = null;
++                this.resetThumbConstraints();
++
++                return false;
++            }
++        }
++
++        return true;
++    },
++
++    /**
++     * Move the associated slider moved to a timeout to try to get around the 
++     * mousedown stealing moz does when I move the slider element between the 
++     * cursor and the background during the mouseup event
++     * @method moveThumb
++     * @param {int} x the X coordinate of the click
++     * @param {int} y the Y coordinate of the click
++     * @param {boolean} skipAnim don't animate if the move happend onDrag
++     * @param {boolean} midMove set to true if this is not terminating
++     * the slider movement
++     * @private
++     */
++    moveThumb: function(x, y, skipAnim, midMove) {
++
++        var t = this.thumb,
++            self = this,
++            p,_p,anim;
++
++        if (!t.available) {
++            return;
++        }
++
++
++        t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y);
++
++        _p = t.getTargetCoord(x, y);
++        p = [Math.round(_p.x), Math.round(_p.y)];
++
++        if (this.animate && t._graduated && !skipAnim) {
++            this.lock();
++
++            // cache the current thumb pos
++            this.curCoord = getXY(this.thumb.getEl());
++            this.curCoord = [Math.round(this.curCoord[0]), Math.round(this.curCoord[1])];
++
++            setTimeout( function() { self.moveOneTick(p); }, this.tickPause );
++
++        } else if (this.animate && Slider.ANIM_AVAIL && !skipAnim) {
++
++            this.lock();
++
++            anim = new YAHOO.util.Motion( 
++                    t.id, { points: { to: p } }, 
++                    this.animationDuration, 
++                    YAHOO.util.Easing.easeOut );
++
++            anim.onComplete.subscribe( function() { 
++                    self.unlock();
++                    if (!self._mouseDown) {
++                        self.endMove(); 
++                    }
++                });
++            anim.animate();
++
++        } else {
++            t.setDragElPos(x, y);
++            if (!midMove && !this._mouseDown) {
++                this.endMove();
++            }
++        }
++    },
++
++    _slideStart: function() {
++        if (!this._sliding) {
++            if (!this._silent) {
++                this.onSlideStart();
++                this.fireEvent("slideStart");
++            }
++            this._sliding = true;
++            this.moveComplete = false; // for backward compatibility. Deprecated
++        }
++    },
++
++    _slideEnd: function() {
++        if (this._sliding) {
++            // Reset state before firing slideEnd
++            var silent = this._silent;
++            this._sliding = false;
++            this.moveComplete = true; // for backward compatibility. Deprecated
++            this._silent = false;
++            if (!silent) {
++                this.onSlideEnd();
++                this.fireEvent("slideEnd");
++            }
++        }
++    },
++
++    /**
++     * Move the slider one tick mark towards its final coordinate.  Used
++     * for the animation when tick marks are defined
++     * @method moveOneTick
++     * @param {int[]} the destination coordinate
++     * @private
++     */
++    moveOneTick: function(finalCoord) {
++
++        var t = this.thumb,
++            self = this,
++            nextCoord = null,
++            tmpX, tmpY;
++
++        if (t._isRegion) {
++            nextCoord = this._getNextX(this.curCoord, finalCoord);
++            tmpX = (nextCoord !== null) ? nextCoord[0] : this.curCoord[0];
++            nextCoord = this._getNextY(this.curCoord, finalCoord);
++            tmpY = (nextCoord !== null) ? nextCoord[1] : this.curCoord[1];
++
++            nextCoord = tmpX !== this.curCoord[0] || tmpY !== this.curCoord[1] ?
++                [ tmpX, tmpY ] : null;
++        } else if (t._isHoriz) {
++            nextCoord = this._getNextX(this.curCoord, finalCoord);
++        } else {
++            nextCoord = this._getNextY(this.curCoord, finalCoord);
++        }
++
++
++        if (nextCoord) {
++
++            // cache the position
++            this.curCoord = nextCoord;
++
++            // move to the next coord
++            this.thumb.alignElWithMouse(t.getEl(), nextCoord[0] + this.thumbCenterPoint.x, nextCoord[1] + this.thumbCenterPoint.y);
++            
++            // check if we are in the final position, if not make a recursive call
++            if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) {
++                setTimeout(function() { self.moveOneTick(finalCoord); }, 
++                        this.tickPause);
++            } else {
++                this.unlock();
++                if (!this._mouseDown) {
++                    this.endMove();
++                }
++            }
++        } else {
++            this.unlock();
++            if (!this._mouseDown) {
++                this.endMove();
++            }
++        }
++    },
++
++    /**
++     * Returns the next X tick value based on the current coord and the target coord.
++     * @method _getNextX
++     * @private
++     */
++    _getNextX: function(curCoord, finalCoord) {
++        var t = this.thumb,
++            thresh,
++            tmp = [],
++            nextCoord = null;
++
++        if (curCoord[0] > finalCoord[0]) {
++            thresh = t.tickSize - this.thumbCenterPoint.x;
++            tmp = t.getTargetCoord( curCoord[0] - thresh, curCoord[1] );
++            nextCoord = [tmp.x, tmp.y];
++        } else if (curCoord[0] < finalCoord[0]) {
++            thresh = t.tickSize + this.thumbCenterPoint.x;
++            tmp = t.getTargetCoord( curCoord[0] + thresh, curCoord[1] );
++            nextCoord = [tmp.x, tmp.y];
++        } else {
++            // equal, do nothing
++        }
++
++        return nextCoord;
++    },
++
++    /**
++     * Returns the next Y tick value based on the current coord and the target coord.
++     * @method _getNextY
++     * @private
++     */
++    _getNextY: function(curCoord, finalCoord) {
++        var t = this.thumb,
++            thresh,
++            tmp = [],
++            nextCoord = null;
++
++        if (curCoord[1] > finalCoord[1]) {
++            thresh = t.tickSize - this.thumbCenterPoint.y;
++            tmp = t.getTargetCoord( curCoord[0], curCoord[1] - thresh );
++            nextCoord = [tmp.x, tmp.y];
++        } else if (curCoord[1] < finalCoord[1]) {
++            thresh = t.tickSize + this.thumbCenterPoint.y;
++            tmp = t.getTargetCoord( curCoord[0], curCoord[1] + thresh );
++            nextCoord = [tmp.x, tmp.y];
++        } else {
++            // equal, do nothing
++        }
++
++        return nextCoord;
++    },
++
++    /**
++     * Resets the constraints before moving the thumb.
++     * @method b4MouseDown
++     * @private
++     */
++    b4MouseDown: function(e) {
++        if (!this.backgroundEnabled) {
++            return false;
++        }
++
++        this.thumb.autoOffset();
++        this.baselinePos = [];
++    },
++
++    /**
++     * Handles the mousedown event for the slider background
++     * @method onMouseDown
++     * @private
++     */
++    onMouseDown: function(e) {
++        if (!this.backgroundEnabled || this.isLocked()) {
++            return false;
++        }
++
++        this._mouseDown = true;
++
++        var x = Event.getPageX(e),
++            y = Event.getPageY(e);
++
++
++        this.focus();
++        this._slideStart();
++        this.moveThumb(x, y);
++    },
++
++    /**
++     * Handles the onDrag event for the slider background
++     * @method onDrag
++     * @private
++     */
++    onDrag: function(e) {
++        if (this.backgroundEnabled && !this.isLocked()) {
++            var x = Event.getPageX(e),
++                y = Event.getPageY(e);
++            this.moveThumb(x, y, true, true);
++            this.fireEvents();
++        }
++    },
++
++    /**
++     * Fired when the slider movement ends
++     * @method endMove
++     * @private
++     */
++    endMove: function () {
++        this.unlock();
++        this.fireEvents();
++        this._slideEnd();
++    },
++
++    /**
++     * Resets the X and Y contraints for the thumb.  Used in lieu of the thumb
++     * instance's inherited resetConstraints because some logic was not
++     * applicable.
++     * @method resetThumbConstraints
++     * @protected
++     */
++    resetThumbConstraints: function () {
++        var t = this.thumb;
++
++        t.setXConstraint(t.leftConstraint, t.rightConstraint, t.xTickSize);
++        t.setYConstraint(t.topConstraint, t.bottomConstraint, t.xTickSize);
++    },
++
++    /**
++     * Fires the change event if the value has been changed.  Ignored if we are in
++     * the middle of an animation as the event will fire when the animation is
++     * complete
++     * @method fireEvents
++     * @param {boolean} thumbEvent set to true if this event is fired from an event
++     *                  that occurred on the thumb.  If it is, the state of the
++     *                  thumb dd object should be correct.  Otherwise, the event
++     *                  originated on the background, so the thumb state needs to
++     *                  be refreshed before proceeding.
++     * @private
++     */
++    fireEvents: function (thumbEvent) {
++
++        var t = this.thumb, newX, newY, newVal;
++
++        if (!thumbEvent) {
++            t.cachePosition();
++        }
++
++        if (! this.isLocked()) {
++            if (t._isRegion) {
++                newX = t.getXValue();
++                newY = t.getYValue();
++
++                if (newX != this.previousX || newY != this.previousY) {
++                    if (!this._silent) {
++                        this.onChange(newX, newY);
++                        this.fireEvent("change", { x: newX, y: newY });
++                    }
++                }
++
++                this.previousX = newX;
++                this.previousY = newY;
++
++            } else {
++                newVal = t.getValue();
++                if (newVal != this.previousVal) {
++                    if (!this._silent) {
++                        this.onChange( newVal );
++                        this.fireEvent("change", newVal);
++                    }
++                }
++                this.previousVal = newVal;
++            }
++
++        }
++    },
++
++    /**
++     * Slider toString
++     * @method toString
++     * @return {string} string representation of the instance
++     */
++    toString: function () { 
++        return ("Slider (" + this.type +") " + this.id);
++    }
++
++});
++
++YAHOO.lang.augmentProto(Slider, YAHOO.util.EventProvider);
++
++YAHOO.widget.Slider = Slider;
++})();
++/**
++ * A drag and drop implementation to be used as the thumb of a slider.
++ * @class SliderThumb
++ * @extends YAHOO.util.DD
++ * @constructor
++ * @param {String} id the id of the slider html element
++ * @param {String} sGroup the group of related DragDrop items
++ * @param {int} iLeft the number of pixels the element can move left
++ * @param {int} iRight the number of pixels the element can move right
++ * @param {int} iUp the number of pixels the element can move up
++ * @param {int} iDown the number of pixels the element can move down
++ * @param {int} iTickSize optional parameter for specifying that the element 
++ * should move a certain number pixels at a time.
++ */
++YAHOO.widget.SliderThumb = function(id, sGroup, iLeft, iRight, iUp, iDown, iTickSize) {
++
++    if (id) {
++        YAHOO.widget.SliderThumb.superclass.constructor.call(this, id, sGroup);
++
++        /**
++         * The id of the thumbs parent HTML element (the slider background 
++         * element).
++         * @property parentElId
++         * @type string
++         */
++        this.parentElId = sGroup;
++    }
++
++
++
++    /**
++     * Overrides the isTarget property in YAHOO.util.DragDrop
++     * @property isTarget
++     * @private
++     */
++    this.isTarget = false;
++
++    /**
++     * The tick size for this slider
++     * @property tickSize
++     * @type int
++     * @private
++     */
++    this.tickSize = iTickSize;
++
++    /**
++     * Informs the drag and drop util that the offsets should remain when
++     * resetting the constraints.  This preserves the slider value when
++     * the constraints are reset
++     * @property maintainOffset
++     * @type boolean
++     * @private
++     */
++    this.maintainOffset = true;
++
++    this.initSlider(iLeft, iRight, iUp, iDown, iTickSize);
++
++    /**
++     * Turns off the autoscroll feature in drag and drop
++     * @property scroll
++     * @private
++     */
++    this.scroll = false;
++
++}; 
++
++YAHOO.extend(YAHOO.widget.SliderThumb, YAHOO.util.DD, {
++
++    /**
++     * The (X and Y) difference between the thumb location and its parent 
++     * (the slider background) when the control is instantiated.
++     * @property startOffset
++     * @type [int, int]
++     */
++    startOffset: null,
++
++    /**
++     * Override the default setting of dragOnly to true.
++     * @property dragOnly
++     * @type boolean
++     * @default true
++     */
++    dragOnly : true,
++
++    /**
++     * Flag used to figure out if this is a horizontal or vertical slider
++     * @property _isHoriz
++     * @type boolean
++     * @private
++     */
++    _isHoriz: false,
++
++    /**
++     * Cache the last value so we can check for change
++     * @property _prevVal
++     * @type int
++     * @private
++     */
++    _prevVal: 0,
++
++    /**
++     * The slider is _graduated if there is a tick interval defined
++     * @property _graduated
++     * @type boolean
++     * @private
++     */
++    _graduated: false,
++
++
++    /**
++     * Returns the difference between the location of the thumb and its parent.
++     * @method getOffsetFromParent
++     * @param {[int, int]} parentPos Optionally accepts the position of the parent
++     * @type [int, int]
++     */
++    getOffsetFromParent0: function(parentPos) {
++        var myPos = YAHOO.util.Dom.getXY(this.getEl()),
++            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
++
++        return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
++    },
++
++    getOffsetFromParent: function(parentPos) {
++
++        var el = this.getEl(), newOffset,
++            myPos,ppos,l,t,deltaX,deltaY,newLeft,newTop;
++
++        if (!this.deltaOffset) {
++
++            myPos = YAHOO.util.Dom.getXY(el);
++            ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
++
++            newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
++
++            l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
++            t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
++
++            deltaX = l - newOffset[0];
++            deltaY = t - newOffset[1];
++
++            if (isNaN(deltaX) || isNaN(deltaY)) {
++            } else {
++                this.deltaOffset = [deltaX, deltaY];
++            }
++
++        } else {
++            newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
++            newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
++
++            newOffset  = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]];
++        }
++
++        return newOffset;
++    },
++
++    /**
++     * Set up the slider, must be called in the constructor of all subclasses
++     * @method initSlider
++     * @param {int} iLeft the number of pixels the element can move left
++     * @param {int} iRight the number of pixels the element can move right
++     * @param {int} iUp the number of pixels the element can move up
++     * @param {int} iDown the number of pixels the element can move down
++     * @param {int} iTickSize the width of the tick interval.
++     */
++    initSlider: function (iLeft, iRight, iUp, iDown, iTickSize) {
++        this.initLeft = iLeft;
++        this.initRight = iRight;
++        this.initUp = iUp;
++        this.initDown = iDown;
++
++        this.setXConstraint(iLeft, iRight, iTickSize);
++        this.setYConstraint(iUp, iDown, iTickSize);
++
++        if (iTickSize && iTickSize > 1) {
++            this._graduated = true;
++        }
++
++        this._isHoriz  = (iLeft || iRight); 
++        this._isVert   = (iUp   || iDown);
++        this._isRegion = (this._isHoriz && this._isVert); 
++
++    },
++
++    /**
++     * Clear's the slider's ticks
++     * @method clearTicks
++     */
++    clearTicks: function () {
++        YAHOO.widget.SliderThumb.superclass.clearTicks.call(this);
++        this.tickSize = 0;
++        this._graduated = false;
++    },
++
++
++    /**
++     * Gets the current offset from the element's start position in
++     * pixels.
++     * @method getValue
++     * @return {int} the number of pixels (positive or negative) the
++     * slider has moved from the start position.
++     */
++    getValue: function () {
++        return (this._isHoriz) ? this.getXValue() : this.getYValue();
++    },
++
++    /**
++     * Gets the current X offset from the element's start position in
++     * pixels.
++     * @method getXValue
++     * @return {int} the number of pixels (positive or negative) the
++     * slider has moved horizontally from the start position.
++     */
++    getXValue: function () {
++        if (!this.available) { 
++            return 0; 
++        }
++        var newOffset = this.getOffsetFromParent();
++        if (YAHOO.lang.isNumber(newOffset[0])) {
++            this.lastOffset = newOffset;
++            return (newOffset[0] - this.startOffset[0]);
++        } else {
++            return (this.lastOffset[0] - this.startOffset[0]);
++        }
++    },
++
++    /**
++     * Gets the current Y offset from the element's start position in
++     * pixels.
++     * @method getYValue
++     * @return {int} the number of pixels (positive or negative) the
++     * slider has moved vertically from the start position.
++     */
++    getYValue: function () {
++        if (!this.available) { 
++            return 0; 
++        }
++        var newOffset = this.getOffsetFromParent();
++        if (YAHOO.lang.isNumber(newOffset[1])) {
++            this.lastOffset = newOffset;
++            return (newOffset[1] - this.startOffset[1]);
++        } else {
++            return (this.lastOffset[1] - this.startOffset[1]);
++        }
++    },
++
++    /**
++     * Thumb toString
++     * @method toString
++     * @return {string} string representation of the instance
++     */
++    toString: function () { 
++        return "SliderThumb " + this.id;
++    },
++
++    /**
++     * The onchange event for the handle/thumb is delegated to the YAHOO.widget.Slider
++     * instance it belongs to.
++     * @method onChange
++     * @private
++     */
++    onChange: function (x, y) { 
++    }
++
++});
++/**
++ * A slider with two thumbs, one that represents the min value and 
++ * the other the max.  Actually a composition of two sliders, both with
++ * the same background.  The constraints for each slider are adjusted
++ * dynamically so that the min value of the max slider is equal or greater
++ * to the current value of the min slider, and the max value of the min
++ * slider is the current value of the max slider.
++ * Constructor assumes both thumbs are positioned absolutely at the 0 mark on
++ * the background.
++ *
++ * @namespace YAHOO.widget
++ * @class DualSlider
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param {Slider} minSlider The Slider instance used for the min value thumb
++ * @param {Slider} maxSlider The Slider instance used for the max value thumb
++ * @param {int}    range The number of pixels the thumbs may move within
++ * @param {Array}  initVals (optional) [min,max] Initial thumb placement
++ */
++(function () {
++
++var Event = YAHOO.util.Event,
++    YW = YAHOO.widget;
++
++function DualSlider(minSlider, maxSlider, range, initVals) {
++
++    var self  = this,
++        ready = { min : false, max : false },
++        minThumbOnMouseDown, maxThumbOnMouseDown;
++
++    /**
++     * A slider instance that keeps track of the lower value of the range.
++     * <strong>read only</strong>
++     * @property minSlider
++     * @type Slider
++     */
++    this.minSlider = minSlider;
++
++    /**
++     * A slider instance that keeps track of the upper value of the range.
++     * <strong>read only</strong>
++     * @property maxSlider
++     * @type Slider
++     */
++    this.maxSlider = maxSlider;
++
++    /**
++     * The currently active slider (min or max). <strong>read only</strong>
++     * @property activeSlider
++     * @type Slider
++     */
++    this.activeSlider = minSlider;
++
++    /**
++     * Is the DualSlider oriented horizontally or vertically?
++     * <strong>read only</strong>
++     * @property isHoriz
++     * @type boolean
++     */
++    this.isHoriz = minSlider.thumb._isHoriz;
++
++    //FIXME: this is horrible
++    minThumbOnMouseDown = this.minSlider.thumb.onMouseDown;
++    maxThumbOnMouseDown = this.maxSlider.thumb.onMouseDown;
++    this.minSlider.thumb.onMouseDown = function() {
++        self.activeSlider = self.minSlider;
++        minThumbOnMouseDown.apply(this,arguments);
++    };
++    this.maxSlider.thumb.onMouseDown = function () {
++        self.activeSlider = self.maxSlider;
++        maxThumbOnMouseDown.apply(this,arguments);
++    };
++
++    this.minSlider.thumb.onAvailable = function () {
++        minSlider.setStartSliderState();
++        ready.min = true;
++        if (ready.max) {
++            self.fireEvent('ready',self);
++        }
++    };
++    this.maxSlider.thumb.onAvailable = function () {
++        maxSlider.setStartSliderState();
++        ready.max = true;
++        if (ready.min) {
++            self.fireEvent('ready',self);
++        }
++    };
++
++    // dispatch mousedowns to the active slider
++    minSlider.onMouseDown =
++    maxSlider.onMouseDown = function(e) {
++        return this.backgroundEnabled && self._handleMouseDown(e);
++    };
++
++    // Fix the drag behavior so that only the active slider
++    // follows the drag
++    minSlider.onDrag =
++    maxSlider.onDrag = function(e) {
++        self._handleDrag(e);
++    };
++
++    // Likely only the minSlider's onMouseUp will be executed, but both are
++    // overridden just to be safe
++    minSlider.onMouseUp =
++    maxSlider.onMouseUp = function (e) {
++        self._handleMouseUp(e);
++    };
++
++    // Replace the _bindKeyEvents for the minSlider and remove that for the
++    // maxSlider since they share the same bg element.
++    minSlider._bindKeyEvents = function () {
++        self._bindKeyEvents(this);
++    };
++    maxSlider._bindKeyEvents = function () {};
++
++    // The core events for each slider are handled so we can expose a single
++    // event for when the event happens on either slider
++    minSlider.subscribe("change", this._handleMinChange, minSlider, this);
++    minSlider.subscribe("slideStart", this._handleSlideStart, minSlider, this);
++    minSlider.subscribe("slideEnd", this._handleSlideEnd, minSlider, this);
++
++    maxSlider.subscribe("change", this._handleMaxChange, maxSlider, this);
++    maxSlider.subscribe("slideStart", this._handleSlideStart, maxSlider, this);
++    maxSlider.subscribe("slideEnd", this._handleSlideEnd, maxSlider, this);
++
++    /**
++     * Event that fires when the slider is finished setting up
++     * @event ready
++     * @param {DualSlider} dualslider the DualSlider instance
++     */
++    this.createEvent("ready", this);
++
++    /**
++     * Event that fires when either the min or max value changes
++     * @event change
++     * @param {DualSlider} dualslider the DualSlider instance
++     */
++    this.createEvent("change", this);
++
++    /**
++     * Event that fires when one of the thumbs begins to move
++     * @event slideStart
++     * @param {Slider} activeSlider the moving slider
++     */
++    this.createEvent("slideStart", this);
++
++    /**
++     * Event that fires when one of the thumbs finishes moving
++     * @event slideEnd
++     * @param {Slider} activeSlider the moving slider
++     */
++    this.createEvent("slideEnd", this);
++
++    // Validate initial values
++    initVals = YAHOO.lang.isArray(initVals) ? initVals : [0,range];
++    initVals[0] = Math.min(Math.max(parseInt(initVals[0],10)|0,0),range);
++    initVals[1] = Math.max(Math.min(parseInt(initVals[1],10)|0,range),0);
++    // Swap initVals if min > max
++    if (initVals[0] > initVals[1]) {
++        initVals.splice(0,2,initVals[1],initVals[0]);
++    }
++    this.minVal = initVals[0];
++    this.maxVal = initVals[1];
++
++    // Set values so initial assignment when the slider thumbs are ready will
++    // use these values
++    this.minSlider.setValue(this.minVal,true,true,true);
++    this.maxSlider.setValue(this.maxVal,true,true,true);
++
++}
++
++DualSlider.prototype = {
++
++    /**
++     * The current value of the min thumb. <strong>read only</strong>.
++     * @property minVal
++     * @type int
++     */
++    minVal : -1,
++
++    /**
++     * The current value of the max thumb. <strong>read only</strong>.
++     * @property maxVal
++     * @type int
++     */
++    maxVal : -1,
++
++    /**
++     * Pixel distance to maintain between thumbs.
++     * @property minRange
++     * @type int
++     * @default 0
++     */
++    minRange : 0,
++
++    /**
++     * Executed when one of the sliders fires the slideStart event
++     * @method _handleSlideStart
++     * @private
++     */
++    _handleSlideStart: function(data, slider) {
++        this.fireEvent("slideStart", slider);
++    },
++
++    /**
++     * Executed when one of the sliders fires the slideEnd event
++     * @method _handleSlideEnd
++     * @private
++     */
++    _handleSlideEnd: function(data, slider) {
++        this.fireEvent("slideEnd", slider);
++    },
++
++    /**
++     * Overrides the onDrag method for both sliders
++     * @method _handleDrag
++     * @private
++     */
++    _handleDrag: function(e) {
++        YW.Slider.prototype.onDrag.call(this.activeSlider, e);
++    },
++
++    /**
++     * Executed when the min slider fires the change event
++     * @method _handleMinChange
++     * @private
++     */
++    _handleMinChange: function() {
++        this.activeSlider = this.minSlider;
++        this.updateValue();
++    },
++
++    /**
++     * Executed when the max slider fires the change event
++     * @method _handleMaxChange
++     * @private
++     */
++    _handleMaxChange: function() {
++        this.activeSlider = this.maxSlider;
++        this.updateValue();
++    },
++
++    /**
++     * Set up the listeners for the keydown and keypress events.
++     *
++     * @method _bindKeyEvents
++     * @protected
++     */
++    _bindKeyEvents : function (slider) {
++        Event.on(slider.id,'keydown', this._handleKeyDown, this,true);
++        Event.on(slider.id,'keypress',this._handleKeyPress,this,true);
++    },
++
++    /**
++     * Delegate event handling to the active Slider.  See Slider.handleKeyDown.
++     *
++     * @method _handleKeyDown
++     * @param e {Event} the mousedown DOM event
++     * @protected
++     */
++    _handleKeyDown : function (e) {
++        this.activeSlider.handleKeyDown.apply(this.activeSlider,arguments);
++    },
++
++    /**
++     * Delegate event handling to the active Slider.  See Slider.handleKeyPress.
++     *
++     * @method _handleKeyPress
++     * @param e {Event} the mousedown DOM event
++     * @protected
++     */
++    _handleKeyPress : function (e) {
++        this.activeSlider.handleKeyPress.apply(this.activeSlider,arguments);
++    },
++
++    /**
++     * Sets the min and max thumbs to new values.
++     * @method setValues
++     * @param min {int} Pixel offset to assign to the min thumb
++     * @param max {int} Pixel offset to assign to the max thumb
++     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
++     * Default false
++     * @param force {boolean} (optional) ignore the locked setting and set
++     * value anyway. Default false
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     */
++    setValues : function (min, max, skipAnim, force, silent) {
++        var mins = this.minSlider,
++            maxs = this.maxSlider,
++            mint = mins.thumb,
++            maxt = maxs.thumb,
++            self = this,
++            done = { min : false, max : false };
++
++        // Clear constraints to prevent animated thumbs from prematurely
++        // stopping when hitting a constraint that's moving with the other
++        // thumb.
++        if (mint._isHoriz) {
++            mint.setXConstraint(mint.leftConstraint,maxt.rightConstraint,mint.tickSize);
++            maxt.setXConstraint(mint.leftConstraint,maxt.rightConstraint,maxt.tickSize);
++        } else {
++            mint.setYConstraint(mint.topConstraint,maxt.bottomConstraint,mint.tickSize);
++            maxt.setYConstraint(mint.topConstraint,maxt.bottomConstraint,maxt.tickSize);
++        }
++
++        // Set up one-time slideEnd callbacks to call updateValue when both
++        // thumbs have been set
++        this._oneTimeCallback(mins,'slideEnd',function () {
++            done.min = true;
++            if (done.max) {
++                self.updateValue(silent);
++                // Clean the slider's slideEnd events on a timeout since this
++                // will be executed from inside the event's fire
++                setTimeout(function () {
++                    self._cleanEvent(mins,'slideEnd');
++                    self._cleanEvent(maxs,'slideEnd');
++                },0);
++            }
++        });
++
++        this._oneTimeCallback(maxs,'slideEnd',function () {
++            done.max = true;
++            if (done.min) {
++                self.updateValue(silent);
++                // Clean both sliders' slideEnd events on a timeout since this
++                // will be executed from inside one of the event's fire
++                setTimeout(function () {
++                    self._cleanEvent(mins,'slideEnd');
++                    self._cleanEvent(maxs,'slideEnd');
++                },0);
++            }
++        });
++
++        // Must emit Slider slideEnd event to propagate to updateValue
++        mins.setValue(min,skipAnim,force,false);
++        maxs.setValue(max,skipAnim,force,false);
++    },
++
++    /**
++     * Set the min thumb position to a new value.
++     * @method setMinValue
++     * @param min {int} Pixel offset for min thumb
++     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
++     * Default false
++     * @param force {boolean} (optional) ignore the locked setting and set
++     * value anyway. Default false
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     */
++    setMinValue : function (min, skipAnim, force, silent) {
++        var mins = this.minSlider,
++            self = this;
++
++        this.activeSlider = mins;
++
++        // Use a one-time event callback to delay the updateValue call
++        // until after the slide operation is done
++        self = this;
++        this._oneTimeCallback(mins,'slideEnd',function () {
++            self.updateValue(silent);
++            // Clean the slideEnd event on a timeout since this
++            // will be executed from inside the event's fire
++            setTimeout(function () { self._cleanEvent(mins,'slideEnd'); }, 0);
++        });
++
++        mins.setValue(min, skipAnim, force);
++    },
++
++    /**
++     * Set the max thumb position to a new value.
++     * @method setMaxValue
++     * @param max {int} Pixel offset for max thumb
++     * @param skipAnim {boolean} (optional) Set to true to skip thumb animation.
++     * Default false
++     * @param force {boolean} (optional) ignore the locked setting and set
++     * value anyway. Default false
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     */
++    setMaxValue : function (max, skipAnim, force, silent) {
++        var maxs = this.maxSlider,
++            self = this;
++
++        this.activeSlider = maxs;
++
++        // Use a one-time event callback to delay the updateValue call
++        // until after the slide operation is done
++        this._oneTimeCallback(maxs,'slideEnd',function () {
++            self.updateValue(silent);
++            // Clean the slideEnd event on a timeout since this
++            // will be executed from inside the event's fire
++            setTimeout(function () { self._cleanEvent(maxs,'slideEnd'); }, 0);
++        });
++
++        maxs.setValue(max, skipAnim, force);
++    },
++
++    /**
++     * Executed when one of the sliders is moved
++     * @method updateValue
++     * @param silent {boolean} (optional) Set to true to skip firing change
++     * events.  Default false
++     * @private
++     */
++    updateValue: function(silent) {
++        var min     = this.minSlider.getValue(),
++            max     = this.maxSlider.getValue(),
++            changed = false,
++            mint,maxt,dim,minConstraint,maxConstraint,thumbInnerWidth;
++
++        if (min != this.minVal || max != this.maxVal) {
++            changed = true;
++
++            mint = this.minSlider.thumb;
++            maxt = this.maxSlider.thumb;
++            dim  = this.isHoriz ? 'x' : 'y';
++
++            thumbInnerWidth = this.minSlider.thumbCenterPoint[dim] +
++                              this.maxSlider.thumbCenterPoint[dim];
++
++            // Establish barriers within the respective other thumb's edge, less
++            // the minRange.  Limit to the Slider's range in the case of
++            // negative minRanges.
++            minConstraint = Math.max(max-thumbInnerWidth-this.minRange,0);
++            maxConstraint = Math.min(-min-thumbInnerWidth-this.minRange,0);
++
++            if (this.isHoriz) {
++                minConstraint = Math.min(minConstraint,maxt.rightConstraint);
++
++                mint.setXConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
++
++                maxt.setXConstraint(maxConstraint,maxt.rightConstraint, maxt.tickSize);
++            } else {
++                minConstraint = Math.min(minConstraint,maxt.bottomConstraint);
++                mint.setYConstraint(mint.leftConstraint,minConstraint, mint.tickSize);
++
++                maxt.setYConstraint(maxConstraint,maxt.bottomConstraint, maxt.tickSize);
++            }
++        }
++
++        this.minVal = min;
++        this.maxVal = max;
++
++        if (changed && !silent) {
++            this.fireEvent("change", this);
++        }
++    },
++
++    /**
++     * A background click will move the slider thumb nearest to the click.
++     * Override if you need different behavior.
++     * @method selectActiveSlider
++     * @param e {Event} the mousedown event
++     * @private
++     */
++    selectActiveSlider: function(e) {
++        var min = this.minSlider,
++            max = this.maxSlider,
++            minLocked = min.isLocked() || !min.backgroundEnabled,
++            maxLocked = max.isLocked() || !min.backgroundEnabled,
++            Ev  = YAHOO.util.Event,
++            d;
++
++        if (minLocked || maxLocked) {
++            this.activeSlider = minLocked ? max : min;
++        } else {
++            if (this.isHoriz) {
++                d = Ev.getPageX(e)-min.thumb.initPageX-min.thumbCenterPoint.x;
++            } else {
++                d = Ev.getPageY(e)-min.thumb.initPageY-min.thumbCenterPoint.y;
++            }
++                    
++            this.activeSlider = d*2 > max.getValue()+min.getValue() ? max : min;
++        }
++    },
++
++    /**
++     * Delegates the onMouseDown to the appropriate Slider
++     *
++     * @method _handleMouseDown
++     * @param e {Event} mouseup event
++     * @protected
++     */
++    _handleMouseDown: function(e) {
++        if (!e._handled && !this.minSlider._sliding && !this.maxSlider._sliding) {
++            e._handled = true;
++            this.selectActiveSlider(e);
++            return YW.Slider.prototype.onMouseDown.call(this.activeSlider, e);
++        } else {
++            return false;
++        }
++    },
++
++    /**
++     * Delegates the onMouseUp to the active Slider
++     *
++     * @method _handleMouseUp
++     * @param e {Event} mouseup event
++     * @protected
++     */
++    _handleMouseUp : function (e) {
++        YW.Slider.prototype.onMouseUp.apply(
++            this.activeSlider, arguments);
++    },
++
++    /**
++     * Schedule an event callback that will execute once, then unsubscribe
++     * itself.
++     * @method _oneTimeCallback
++     * @param o {EventProvider} Object to attach the event to
++     * @param evt {string} Name of the event
++     * @param fn {Function} function to execute once
++     * @private
++     */
++    _oneTimeCallback : function (o,evt,fn) {
++        var sub = function () {
++            // Unsubscribe myself
++            o.unsubscribe(evt, sub);
++            // Pass the event handler arguments to the one time callback
++            fn.apply({},arguments);
++        };
++        o.subscribe(evt,sub);
++    },
++
++    /**
++     * Clean up the slideEnd event subscribers array, since each one-time
++     * callback will be replaced in the event's subscribers property with
++     * null.  This will cause memory bloat and loss of performance.
++     * @method _cleanEvent
++     * @param o {EventProvider} object housing the CustomEvent
++     * @param evt {string} name of the CustomEvent
++     * @private
++     */
++    _cleanEvent : function (o,evt) {
++        var ce,i,len,j,subs,newSubs;
++
++        if (o.__yui_events && o.events[evt]) {
++            for (i = o.__yui_events.length; i >= 0; --i) {
++                if (o.__yui_events[i].type === evt) {
++                    ce = o.__yui_events[i];
++                    break;
++                }
++            }
++            if (ce) {
++                subs    = ce.subscribers;
++                newSubs = [];
++                j = 0;
++                for (i = 0, len = subs.length; i < len; ++i) {
++                    if (subs[i]) {
++                        newSubs[j++] = subs[i];
++                    }
++                }
++                ce.subscribers = newSubs;
++            }
++        }
++    }
++
++};
++
++YAHOO.lang.augmentProto(DualSlider, YAHOO.util.EventProvider);
++
++
++/**
++ * Factory method for creating a horizontal dual-thumb slider
++ * @for YAHOO.widget.Slider
++ * @method YAHOO.widget.Slider.getHorizDualSlider
++ * @static
++ * @param {String} bg the id of the slider's background element
++ * @param {String} minthumb the id of the min thumb
++ * @param {String} maxthumb the id of the thumb thumb
++ * @param {int} range the number of pixels the thumbs can move within
++ * @param {int} iTickSize (optional) the element should move this many pixels
++ * at a time
++ * @param {Array}  initVals (optional) [min,max] Initial thumb placement
++ * @return {DualSlider} a horizontal dual-thumb slider control
++ */
++YW.Slider.getHorizDualSlider = 
++    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
++        var mint = new YW.SliderThumb(minthumb, bg, 0, range, 0, 0, iTickSize),
++            maxt = new YW.SliderThumb(maxthumb, bg, 0, range, 0, 0, iTickSize);
++
++        return new DualSlider(
++                    new YW.Slider(bg, bg, mint, "horiz"),
++                    new YW.Slider(bg, bg, maxt, "horiz"),
++                    range, initVals);
++};
++
++/**
++ * Factory method for creating a vertical dual-thumb slider.
++ * @for YAHOO.widget.Slider
++ * @method YAHOO.widget.Slider.getVertDualSlider
++ * @static
++ * @param {String} bg the id of the slider's background element
++ * @param {String} minthumb the id of the min thumb
++ * @param {String} maxthumb the id of the thumb thumb
++ * @param {int} range the number of pixels the thumbs can move within
++ * @param {int} iTickSize (optional) the element should move this many pixels
++ * at a time
++ * @param {Array}  initVals (optional) [min,max] Initial thumb placement
++ * @return {DualSlider} a vertical dual-thumb slider control
++ */
++YW.Slider.getVertDualSlider = 
++    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
++        var mint = new YW.SliderThumb(minthumb, bg, 0, 0, 0, range, iTickSize),
++            maxt = new YW.SliderThumb(maxthumb, bg, 0, 0, 0, range, iTickSize);
++
++        return new YW.DualSlider(
++                    new YW.Slider(bg, bg, mint, "vert"),
++                    new YW.Slider(bg, bg, maxt, "vert"),
++                    range, initVals);
++};
++
++YAHOO.widget.DualSlider = DualSlider;
++
++})();
++YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/storage/storage-debug.js b/pylons_app/public/js/yui/storage/storage-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/storage/storage-debug.js
+@@ -0,0 +1,1185 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Storage module manages client-side data storage.
++ * @module Storage
++ */
++
++(function() {
++
++	// internal shorthand
++var Y = YAHOO,
++	YU = Y.util,
++	YL = Y.lang,
++	_logOverwriteError;
++
++if (! YU.Storage) {
++	_logOverwriteError = function(fxName) {
++		Y.log('Exception in YAHOO.util.Storage.?? - must be extended by a storage engine'.replace('??', fxName).replace('??', this.getName ? this.getName() : 'Unknown'), 'error');
++	};
++
++	/**
++	 * The Storage class is an HTML 5 storage API clone, used to wrap individual storage implementations with a common API.
++	 * @class Storage
++	 * @namespace YAHOO.util
++	 * @constructor
++	 * @param location {String} Required. The storage location.
++	 * @parm name {String} Required. The engine name.
++	 * @param conf {Object} Required. A configuration object.
++	 */
++	YU.Storage = function(location, name, conf) {
++		var that = this;
++		Y.env._id_counter += 1;
++
++		// protected variables
++		that._cfg = YL.isObject(conf) ? conf : {};
++		that._location = location;
++		that._name = name;
++		that.isReady = false;
++
++		// public variables
++		that.createEvent(that.CE_READY, {scope: that});
++		that.createEvent(that.CE_CHANGE, {scope: that});
++		
++		that.subscribe(that.CE_READY, function() {
++			that.isReady = true;
++		});
++	};
++
++	YU.Storage.prototype = {
++
++		/**
++		 * The event name for when the storage item is ready.
++		 * @property CE_READY
++		 * @type {String}
++		 * @public
++		 */
++		CE_READY: 'YUIStorageReady',
++
++		/**
++		 * The event name for when the storage item has changed.
++		 * @property CE_CHANGE
++		 * @type {String}
++		 * @public
++		 */
++		CE_CHANGE: 'YUIStorageChange',
++
++		/**
++		 * The delimiter uesed between the data type and the data.
++		 * @property DELIMITER
++		 * @type {String}
++		 * @public
++		 */
++		DELIMITER: '__',
++
++		/**
++		 * The configuration of the engine.
++		 * @property _cfg
++		 * @type {Object}
++		 * @protected
++		 */
++		_cfg: '',
++
++		/**
++		 * The name of this engine.
++		 * @property _name
++		 * @type {String}
++		 * @protected
++		 */
++		_name: '',
++
++		/**
++		 * The location for this instance.
++		 * @property _location
++		 * @type {String}
++		 * @protected
++		 */
++		_location: '',
++
++		/**
++		 * The current length of the keys.
++		 * @property length
++		 * @type {Number}
++		 * @public
++		 */
++		length: 0,
++
++		/**
++		 * This engine singleton has been initialized already.
++		 * @property isReady
++		 * @type {String}
++		 * @protected
++		 */
++		isReady: false,
++
++		/**
++		 * Clears any existing key/value pairs.
++		 * @method clear
++		 * @public
++		 */
++		clear: function() {
++			this._clear();
++			this.length = 0;
++		},
++
++		/**
++		 * Fetches the data stored and the provided key.
++		 * @method getItem
++		 * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
++		 * @return {String|NULL} The value stored at the provided key (DOMString in HTML 5 spec).
++		 * @public
++		 */
++		getItem: function(key) {
++			Y.log("Fetching item at  " + key);
++			var item = this._getItem(key);
++			return YL.isValue(item) ? this._getValue(item) : null; // required by HTML 5 spec
++		},
++
++		/**
++		 * Fetches the storage object's name; should be overwritten by storage engine.
++		 * @method getName
++		 * @return {String} The name of the data storage object.
++		 * @public
++		 */
++		getName: function() {return this._name;},
++
++		/**
++		 * Tests if the key has been set (not in HTML 5 spec); should be overwritten by storage engine.
++		 * @method hasKey
++		 * @param key {String} Required. The key to search for.
++		 * @return {Boolean} True when key has been set.
++		 * @public
++		 */
++		hasKey: function(key) {
++			return YL.isString(key) && this._hasKey(key);
++		},
++
++		/**
++		 * Retrieve the key stored at the provided index; should be overwritten by storage engine.
++		 * @method key
++		 * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
++		 * @return {String} Required. The key at the provided index (DOMString in HTML 5 spec).
++		 * @public
++		 */
++		key: function(index) {
++			Y.log("Fetching key at " + index);
++
++			if (YL.isNumber(index) && -1 < index && this.length > index) {
++				var value = this._key(index);
++				if (value) {return value;}
++			}
++
++			// this is thrown according to the HTML5 spec
++			throw('INDEX_SIZE_ERR - Storage.setItem - The provided index (' + index + ') is not available');
++		},
++
++		/**
++		 * Remove an item from the data storage.
++		 * @method setItem
++		 * @param key {String} Required. The key to remove (DOMString in HTML 5 spec).
++		 * @public
++		 */
++		removeItem: function(key) {
++			Y.log("removing " + key);
++			
++			if (this.hasKey(key)) {
++                var oldValue = this._getItem(key);
++                if (! oldValue) {oldValue = null;}
++                this._removeItem(key);
++				this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, null, YU.StorageEvent.TYPE_REMOVE_ITEM));
++			}
++			else {
++				// HTML 5 spec says to do nothing
++			}
++		},
++
++		/**
++		 * Adds an item to the data storage.
++		 * @method setItem
++		 * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
++		 * @param data {Object} Required. The data to store at key (DOMString in HTML 5 spec).
++		 * @public
++		 * @throws QUOTA_EXCEEDED_ERROR
++		 */
++		setItem: function(key, data) {
++			Y.log("SETTING " + data + " to " + key);
++			
++			if (YL.isString(key)) {
++				var eventType = this.hasKey(key) ? YU.StorageEvent.TYPE_UPDATE_ITEM : YU.StorageEvent.TYPE_ADD_ITEM,
++					oldValue = this._getItem(key);
++				if (! oldValue) {oldValue = null;}
++
++				if (this._setItem(key, this._createValue(data))) {
++					this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, data, eventType));
++				}
++				else {
++					// this is thrown according to the HTML5 spec
++					throw('QUOTA_EXCEEDED_ERROR - Storage.setItem - The choosen storage method (' +
++						  this.getName() + ') has exceeded capacity');
++				}
++			}
++			else {
++				// HTML 5 spec says to do nothing
++			}
++		},
++
++		/**
++		 * Implementation of the clear login; should be overwritten by storage engine.
++		 * @method _clear
++		 * @protected
++		 */
++		_clear: function() {
++			_logOverwriteError('_clear');
++			return '';
++		},
++
++		/**
++		 * Converts the object into a string, with meta data (type), so it can be restored later.
++		 * @method _createValue
++		 * @param s {Object} Required. An object to store.
++		 * @protected
++		 */
++		_createValue: function(s) {
++			var type = (YL.isNull(s) || YL.isUndefined(s)) ? ('' + s) : typeof s;
++			return 'string' === type ? s : type + this.DELIMITER + s;
++		},
++
++		/**
++		 * Implementation of the getItem login; should be overwritten by storage engine.
++		 * @method _getItem
++		 * @param key {String} Required. The key used to reference this value.
++		 * @return {String|NULL} The value stored at the provided key.
++		 * @protected
++		 */
++		_getItem: function(key) {
++			_logOverwriteError('_getItem');
++			return '';
++		},
++
++		/**
++		 * Converts the stored value into its appropriate type.
++		 * @method _getValue
++		 * @param s {String} Required. The stored value.
++		 * @protected
++		 */
++		_getValue: function(s) {
++			var a = s ? s.split(this.DELIMITER) : [];
++			if (1 == a.length) {return s;}
++
++			switch (a[0]) {
++				case 'boolean': return 'true' === a[1];
++				case 'number': return parseFloat(a[1]);
++				case 'null': return null;
++				default: return a[1];
++			}
++		},
++
++		/**
++		 * Implementation of the key logic; should be overwritten by storage engine.
++		 * @method _key
++		 * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
++		 * @return {String|NULL} Required. The key at the provided index (DOMString in HTML 5 spec).
++		 * @protected
++		 */
++		_key: function(index) {
++			_logOverwriteError('_key');
++			return '';
++		},
++
++		/*
++		 * Implementation to fetch evaluate the existence of a key.
++		 * @see YAHOO.util.Storage._hasKey
++		 */
++		_hasKey: function(key) {
++			return null !== this._getItem(key);
++		},
++
++		/**
++		 * Implementation of the removeItem login; should be overwritten by storage engine.
++		 * @method _removeItem
++		 * @param key {String} Required. The key to remove.
++		 * @protected
++		 */
++		_removeItem: function(key) {
++			_logOverwriteError('_removeItem');
++			return '';
++		},
++
++		/**
++		 * Implementation of the setItem login; should be overwritten by storage engine.
++		 * @method _setItem
++		 * @param key {String} Required. The key used to reference this value.
++		 * @param data {Object} Required. The data to storage at key.
++		 * @return {Boolean} True when successful, false when size QUOTA exceeded.
++		 * @protected
++		 */
++		_setItem: function(key, data) {
++			_logOverwriteError('_setItem');
++			return '';
++		}
++	};
++
++	YL.augmentProto(YU.Storage, YU.EventProvider);
++}
++
++}());
++/**
++ * The StorageManager class is a singleton that registers DataStorage objects and returns instances of those objects.
++ * @class StorageManager
++ * @namespace YAHOO.util
++ * @static
++ */
++(function() {
++	// internal shorthand
++var Y = YAHOO.util,
++	YL = YAHOO.lang,
++
++	// private variables
++	_locationEngineMap = {}, // cached engines
++	_registeredEngineSet = [], // set of available engines
++	_registeredEngineMap = {}, // map of available engines
++	
++	/**
++	 * Fetches a storage constructor if it is available, otherwise returns NULL.
++	 * @method _getClass
++	 * @param klass {Function} Required. The storage constructor to test.
++	 * @return {Function} An available storage constructor or NULL.
++	 * @private
++	 */
++	_getClass = function(klass) {
++		return (klass && klass.isAvailable()) ? klass : null;
++	},
++
++	/**
++	 * Fetches the storage engine from the cache, or creates and caches it.
++	 * @method _getStorageEngine
++	 * @param location {String} Required. The location to store.
++	 * @param klass {Function} Required. A pointer to the engineType Class.
++	 * @param conf {Object} Optional. Additional configuration for the data source engine.
++	 * @private
++	 */
++	_getStorageEngine = function(location, klass, conf) {
++		var engine = _locationEngineMap[location + klass.ENGINE_NAME];
++
++		if (! engine) {
++			engine = new klass(location, conf);
++			_locationEngineMap[location + klass.ENGINE_NAME] = engine;
++		}
++
++		return engine;
++	},
++
++	/**
++	 * Ensures that the location is valid before returning it or a default value.
++	 * @method _getValidLocation
++	 * @param location {String} Required. The location to evaluate.
++	 * @private
++	 */
++	_getValidLocation = function(location) {
++		switch (location) {
++			case Y.StorageManager.LOCATION_LOCAL:
++			case Y.StorageManager.LOCATION_SESSION:
++				return location;
++
++			default: return Y.StorageManager.LOCATION_SESSION;
++		}
++	};
++
++	// public namespace
++	Y.StorageManager = {
++
++        /**
++         * The storage location - session; data cleared at the end of a user's session.
++         * @property LOCATION_SESSION
++         * @type {String}
++         * @static
++         */
++		LOCATION_SESSION: 'sessionStorage',
++
++        /**
++         * The storage location - local; data cleared on demand.
++         * @property LOCATION_LOCAL
++         * @type {String}
++         * @static
++         */
++		LOCATION_LOCAL: 'localStorage',
++
++		/**
++		 * Fetches the desired engine type or first available engine type.
++		 * @method get
++		 * @param engineType {String} Optional. The engine type, see engines.
++		 * @param location {String} Optional. The storage location - LOCATION_SESSION & LOCATION_LOCAL; default is LOCAL.
++		 * @param conf {Object} Optional. Additional configuration for the getting the storage engine.
++		 * {
++		 * 	engine: {Object} configuration parameters for the desired engine
++		 * 	order: {Array} an array of storage engine names; the desired order to try engines}
++		 * }
++		 * @static
++		 */
++		get: function(engineType, location, conf) {
++			var _cfg = YL.isObject(conf) ? conf : {},
++				klass = _getClass(_registeredEngineMap[engineType]);
++
++			if (! klass && ! _cfg.force) {
++				var i, j;
++
++				if (_cfg.order) {
++					j = _cfg.order.length;
++
++					for (i = 0; i < j && ! klass; i += 1) {
++						klass = _getClass(_cfg.order[i]);
++					}
++				}
++
++				if (! klass) {
++					j = _registeredEngineSet.length;
++
++					for (i = 0; i < j && ! klass; i += 1) {
++						klass = _getClass(_registeredEngineSet[i]);
++					}
++				}
++			}
++
++			if (klass) {
++				return _getStorageEngine(_getValidLocation(location), klass, _cfg.engine);
++			}
++
++			throw('YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.');
++		},
++
++        /*
++         * Estimates the size of the string using 1 byte for each alpha-numeric character and 3 for each non-alpha-numeric character.
++         * @method getByteSize
++         * @param s {String} Required. The string to evaulate.
++         * @return {Number} The estimated string size.
++         * @private
++         */
++        getByteSize: function(s) {
++			return encodeURIComponent('' + s).length;
++        },
++
++		/**
++		 * Registers a engineType Class with the StorageManager singleton; first in is the first out.
++		 * @method register
++		 * @param engineConstructor {Function} Required. The engine constructor function, see engines.
++		 * @return {Boolean} When successfully registered.
++		 * @static
++		 */
++		register: function(engineConstructor) {
++			if (YL.isFunction(engineConstructor) && YL.isFunction(engineConstructor.isAvailable) && YL.isString(engineConstructor.ENGINE_NAME)) {
++				_registeredEngineMap[engineConstructor.ENGINE_NAME] = engineConstructor;
++				_registeredEngineSet.push(engineConstructor);
++				return true;
++			}
++
++			return false;
++		}
++	};
++
++	YAHOO.register("StorageManager", Y.SWFStore, {version: "2.8.0r4", build: "2449"});
++}());
++(function() {
++
++/**
++ * The StorageEvent class manages the storage events by emulating the HTML 5 implementation.
++ * @namespace YAHOO.util
++ * @class StorageEvent
++ * @constructor
++ * @param storageArea {Object} Required. The Storage object that was affected.
++ * @param key {String} Required. The key being changed; DOMString in HTML 5 spec.
++ * @param oldValue {String} Required. The old value of the key being changed; DOMString in HTML 5 spec.
++ * @param newValue {String} Required. The new value of the key being changed; DOMString in HTML 5 spec.
++ * @param type {String} Required. The storage event type.
++ */
++YAHOO.util.StorageEvent = function(storageArea, key, oldValue, newValue, type) {
++	this.key = key;
++	this.oldValue = oldValue;
++	this.newValue = newValue;
++	this.url = window.location.href;
++	this.window = window; // todo: think about the CAJA and innocent code
++	this.storageArea = storageArea;
++	this.type = type;
++};
++
++YAHOO.lang.augmentObject(YAHOO.util.StorageEvent, {
++	TYPE_ADD_ITEM: 'addItem',
++	TYPE_REMOVE_ITEM: 'removeItem',
++	TYPE_UPDATE_ITEM: 'updateItem'
++});
++
++YAHOO.util.StorageEvent.prototype = {
++
++    /**
++     * The 'key' attribute represents the key being changed.
++     * @property key
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    key: null,
++
++    /**
++     * The 'newValue' attribute represents the new value of the key being changed.
++     * @property newValue
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    newValue: null,
++
++    /**
++     * The 'oldValue' attribute represents the old value of the key being changed.
++     * @property oldValue
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    oldValue: null,
++
++    /**
++     * The 'source' attribute represents the WindowProxy object of the browsing context of the document whose key changed.
++     * @property source
++     * @type {Object}
++     * @static
++     * @readonly
++     */
++    source: null,
++
++    /**
++     * The 'storageArea' attribute represents the Storage object that was affected.
++     * @property storageArea
++     * @type {Object}
++     * @static
++     * @readonly
++     */
++    storageArea: null,
++
++    /**
++     * The 'type' attribute represents the Storage event type.
++     * @property type
++     * @type {Object}
++     * @static
++     * @readonly
++     */
++    type: null,
++
++    /**
++     * The 'url' attribute represents the address of the document whose key changed.
++     * @property url
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    url: null
++};
++	
++}());
++(function() {
++var Y = YAHOO.util,
++	YL = YAHOO.lang;
++
++	/**
++	 * The StorageEngineKeyed class implements the interface necessary for managing keys.
++	 * @namespace YAHOO.util
++	 * @class StorageEngineKeyed
++	 * @constructor
++	 * @extend YAHOO.util.Storage
++	 */
++	Y.StorageEngineKeyed = function() {
++		Y.StorageEngineKeyed.superclass.constructor.apply(this, arguments);
++		this._keys = [];
++		this._keyMap = {};
++	};
++
++	YL.extend(Y.StorageEngineKeyed, Y.Storage, {
++
++		/**
++		 * A collection of keys applicable to the current location. This should never be edited by the developer.
++		 * @property _keys
++		 * @type {Array}
++		 * @protected
++		 */
++		_keys: null,
++
++		/**
++		 * A map of keys to their applicable position in keys array. This should never be edited by the developer.
++		 * @property _keyMap
++		 * @type {Object}
++		 * @protected
++		 */
++		_keyMap: null,
++
++		/**
++		 * Adds the key to the set.
++		 * @method _addKey
++		 * @param key {String} Required. The key to evaluate.
++		 * @protected
++		 */
++		_addKey: function(key) {
++			this._keyMap[key] = this.length;
++			this._keys.push(key);
++			this.length = this._keys.length;
++		},
++
++		/**
++		 * Evaluates if a key exists in the keys array; indexOf does not work in all flavors of IE.
++		 * @method _indexOfKey
++		 * @param key {String} Required. The key to evaluate.
++		 * @protected
++		 */
++		_indexOfKey: function(key) {
++			var i = this._keyMap[key];
++			return undefined === i ? -1 : i;
++		},
++
++		/**
++		 * Removes a key from the keys array.
++		 * @method _removeKey
++		 * @param key {String} Required. The key to remove.
++		 * @protected
++		 */
++		_removeKey: function(key) {
++			var j = this._indexOfKey(key),
++				rest = this._keys.slice(j + 1);
++
++			delete this._keyMap[key];
++
++			for (var k in this._keyMap) {
++				if (j < this._keyMap[k]) {
++					this._keyMap[k] -= 1;
++				}
++			}
++			
++			this._keys.length = j;
++			this._keys = this._keys.concat(rest);
++			this.length = this._keys.length;
++		}
++	});
++}());
++/*
++ * HTML limitations:
++ *  - 5MB in FF and Safari, 10MB in IE 8
++ *  - only FF 3.5 recovers session storage after a browser crash
++ *
++ * Thoughts:
++ *  - how can we not use cookies to handle session
++ */
++(function() {
++	// internal shorthand
++var Y = YAHOO.util,
++	YL = YAHOO.lang,
++
++	/*
++	 * Required for IE 8 to make synchronous.
++	 */
++	_beginTransaction = function(engine) {
++		if (engine.begin) {engine.begin();}
++	},
++
++	/*
++	 * Required for IE 8 to make synchronous.
++	 */
++	_commitTransaction = function(engine) {
++		if (engine.commit) {engine.commit();}
++	};
++
++	/**
++	 * The StorageEngineHTML5 class implements the HTML5 storage engine.
++	 * @namespace YAHOO.util
++	 * @class StorageEngineHTML5
++	 * @constructor
++	 * @extend YAHOO.util.Storage
++	 * @param location {String} Required. The storage location.
++	 * @param conf {Object} Required. A configuration object.
++	 */
++	Y.StorageEngineHTML5 = function(location, conf) {
++		var _this = this;
++		Y.StorageEngineHTML5.superclass.constructor.call(_this, location, Y.StorageEngineHTML5.ENGINE_NAME, conf);// not set, are cookies available
++		_this._engine = window[location];
++		_this.length = _this._engine.length;
++		YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
++			_this.fireEvent(_this.CE_READY);
++		});
++	};
++
++	YAHOO.lang.extend(Y.StorageEngineHTML5, Y.Storage, {
++
++		_engine: null,
++
++		/*
++		 * Implementation to clear the values from the storage engine.
++		 * @see YAHOO.util.Storage._clear
++		 */
++		_clear: function() {
++			var _this = this;
++			if (_this._engine.clear) {
++				_this._engine.clear();
++			}
++			// for FF 3, fixed in FF 3.5
++			else {
++				for (var i = _this.length, key; 0 <= i; i -= 1) {
++					key = _this._key(i);
++					_this._removeItem(key);
++				}
++			}
++		},
++
++		/*
++		 * Implementation to fetch an item from the storage engine.
++		 * @see YAHOO.util.Storage._getItem
++		 */
++		_getItem: function(key) {
++			var o = this._engine.getItem(key);
++			return YL.isObject(o) ? o.value : o; // for FF 3, fixed in FF 3.5
++		},
++
++		/*
++		 * Implementation to fetch a key from the storage engine.
++		 * @see YAHOO.util.Storage._key
++		 */
++		_key: function(index) {return this._engine.key(index);},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._removeItem
++		 */
++		_removeItem: function(key) {
++			var _this = this;
++			_beginTransaction(_this._engine);
++			_this._engine.removeItem(key);
++			_commitTransaction(_this._engine);
++			_this.length = _this._engine.length;
++		},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._setItem
++		 */
++		_setItem: function(key, value) {
++			var _this = this;
++			
++			try {
++				_beginTransaction(_this._engine);
++				_this._engine.setItem(key, value);
++				_commitTransaction(_this._engine);
++				_this.length = _this._engine.length;
++				return true;
++			}
++			catch (e) {
++				return false;
++			}
++		}
++	}, true);
++
++	Y.StorageEngineHTML5.ENGINE_NAME = 'html5';
++	Y.StorageEngineHTML5.isAvailable = function() {
++		return window.localStorage;
++	};
++    Y.StorageManager.register(Y.StorageEngineHTML5);
++}());
++/*
++ * Gears limitation:
++ *  - SQLite limitations - http://www.sqlite.org/limits.html
++ *  - DB Best Practices - http://code.google.com/apis/gears/gears_faq.html#bestPracticeDB
++ * 	- the user must approve before gears can be used
++ *  - each SQL query has a limited number of characters (9948 bytes), data will need to be spread across rows
++ *  - no query should insert or update more than 9948 bytes of data in a single statement or GEARs will throw:
++ *  	[Exception... "'Error: SQL statement is too long.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
++ *
++ * Thoughts:
++ *  - we may want to implement additional functions for the gears only implementation
++ *  - how can we not use cookies to handle session location
++ */
++(function() {
++	// internal shorthand
++var Y = YAHOO.util,
++	YL = YAHOO.lang,
++	_SQL_STMT_LIMIT = 9948,
++	_TABLE_NAME = 'YUIStorageEngine',
++
++	// local variables
++	_engine = null,
++
++	eURI = encodeURIComponent,
++	dURI = decodeURIComponent;
++
++	/**
++	 * The StorageEngineGears class implements the Google Gears storage engine.
++	 * @namespace YAHOO.util
++	 * @class StorageEngineGears
++	 * @constructor
++	 * @extend YAHOO.util.Storage
++	 * @param location {String} Required. The storage location.
++	 * @param conf {Object} Required. A configuration object.
++	 */
++	Y.StorageEngineGears = function(location, conf) {
++		var _this = this;
++		Y.StorageEngineGears.superclass.constructor.call(_this, location, Y.StorageEngineGears.ENGINE_NAME, conf);
++
++		if (! _engine) {
++			// create the database
++			_engine = google.gears.factory.create(Y.StorageEngineGears.GEARS);
++			_engine.open(window.location.host + '-' + Y.StorageEngineGears.DATABASE);
++			_engine.execute('CREATE TABLE IF NOT EXISTS ' + _TABLE_NAME + ' (key TEXT, location TEXT, value TEXT)');
++		}
++
++		var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
++			sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineGears.ENGINE_NAME);
++
++		if (! sessionKey) {
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(Y.StorageManager.LOCATION_SESSION) + '"');
++			_engine.execute('COMMIT');
++		}
++
++		var rs = _engine.execute('SELECT key FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(_this._location) + '"'),
++			keyMap = {};
++	
++		try {
++			// iterate on the rows and map the keys
++			while (rs.isValidRow()) {
++				var fld = dURI(rs.field(0));
++
++				if (! keyMap[fld]) {
++					keyMap[fld] = true;
++					_this._addKey(fld);
++				}
++
++				rs.next();
++			}
++		}
++		finally {
++			rs.close();
++		}
++
++		// this is session storage, ensure that the session key is set
++		if (isSessionStorage) {
++			Y.Cookie.set('sessionKey' + Y.StorageEngineGears.ENGINE_NAME, true);
++		}
++
++		_this.length = _this._keys.length;
++		YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
++			_this.fireEvent(_this.CE_READY);
++		});
++	};
++
++	YL.extend(Y.StorageEngineGears, Y.StorageEngineKeyed, {
++
++		/*
++		 * Implementation to clear the values from the storage engine.
++		 * @see YAHOO.util.Storage._clear
++		 */
++		_clear: function() {
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(this._location) + '"');
++			_engine.execute('COMMIT');
++			this._keys = [];
++			this.length = 0;
++		},
++
++		/*
++		 * Implementation to fetch an item from the storage engine.
++		 * @see YAHOO.util.Storage._getItem
++		 */
++		_getItem: function(key) {
++			var rs = _engine.execute('SELECT value FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"'),
++				value = '';
++
++			try {
++				while (rs.isValidRow()) {
++					var temp = rs.field(0);
++					value += rs.field(0);
++					rs.next();
++				}
++			}
++			finally {
++				rs.close();
++			}
++
++			return value ? dURI(value) : null;
++		},
++
++		/*
++		 * Implementation to fetch a key from the storage engine.
++		 * @see YAHOO.util.Storage.key
++		 */
++		_key: function(index) {return this._keys[index];},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._removeItem
++		 */
++		_removeItem: function(key) {
++			YAHOO.log("removing " + key);
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
++			_engine.execute('COMMIT');
++			this._removeKey(key);
++		},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._setItem
++		 */
++		_setItem: function(key, data) {
++			YAHOO.log("SETTING " + data + " to " + key);
++
++			if (! this.hasKey(key)) {
++				this._addKey(key);
++			}
++
++			var _key = eURI(key),
++				_location = eURI(this._location),
++				_value = eURI(data),
++				_values = [],
++				_len = _SQL_STMT_LIMIT - (_key + _location).length;
++
++			// the length of the value exceeds the available space
++			if (_len < _value.length) {
++				for (var i = 0, j = _value.length; i < j; i += _len) {
++					_values.push(_value.substr(i, _len));
++				}
++			}
++			else {
++				_values.push(_value);
++			}
++
++			// Google recommends using INSERT instead of update, because it is faster
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
++			for (var m = 0, n = _values.length; m < n; m += 1) {
++				_engine.execute('INSERT INTO ' + _TABLE_NAME + ' VALUES ("' + _key + '", "' + _location + '", "' + _values[m] + '")');
++			}
++			_engine.execute('COMMIT');
++			
++			return true;
++		}
++	});
++
++	// releases the engine when the page unloads
++	Y.Event.on('unload', function() {
++		if (_engine) {_engine.close();}
++	});
++	Y.StorageEngineGears.ENGINE_NAME = 'gears';
++	Y.StorageEngineGears.GEARS = 'beta.database';
++	Y.StorageEngineGears.DATABASE = 'yui.database';
++	Y.StorageEngineGears.isAvailable = function() {
++		if (window.google && window.google.gears) {
++			try {
++				// this will throw an exception if the user denies gears
++				google.gears.factory.create(Y.StorageEngineGears.GEARS);
++				return true;
++			}
++			catch (e) {
++				// no need to do anything
++			}
++		}
++
++		return false;
++	};
++    Y.StorageManager.register(Y.StorageEngineGears);
++}());
++/*
++ * SWF limitation:
++ *  - only 100,000 bytes of data may be stored this way
++ *  - data is publicly available on user machine
++ *
++ * Thoughts:
++ *  - data can be shared across browsers
++ *  - how can we not use cookies to handle session location
++ */
++(function() {
++    // internal shorthand
++var Y = YAHOO.util,
++    YL = YAHOO.lang,
++    YD = Y.Dom,
++    
++    /*
++     * The minimum width required to be able to display the settings panel within the SWF.
++     */ 
++    MINIMUM_WIDTH = 215,
++
++    /*
++     * The minimum height required to be able to display the settings panel within the SWF.
++     */ 
++    MINIMUM_HEIGHT = 138,
++
++    // local variables
++    _engine = null,
++
++    /*
++     * Creates a location bound key.
++     */
++    _getKey = function(that, key) {
++        return that._location + that.DELIMITER + key;
++    },
++
++    /*
++     * Initializes the engine, if it isn't already initialized.
++     */
++    _initEngine = function(cfg) {
++        if (! _engine) {
++            if (! YL.isString(cfg.swfURL)) {cfg.swfURL = Y.StorageEngineSWF.SWFURL;}
++            if (! cfg.containerID) {
++                var bd = document.getElementsByTagName('body')[0],
++                    container = bd.appendChild(document.createElement('div'));
++                cfg.containerID = YD.generateId(container);
++            }
++
++            if (! cfg.attributes) {cfg.attributes  = {};}
++            if (! cfg.attributes.flashVars) {cfg.attributes.flashVars = {};}
++            cfg.attributes.flashVars.useCompression = 'true';
++            cfg.attributes.version = 9.115;
++            _engine = new YAHOO.widget.SWF(cfg.containerID, cfg.swfURL, cfg.attributes);
++        }
++    };
++
++    /**
++     * The StorageEngineSWF class implements the SWF storage engine.
++     * @namespace YAHOO.util
++     * @class StorageEngineSWF
++     * @uses YAHOO.widget.SWF
++     * @constructor
++     * @extend YAHOO.util.Storage
++     * @param location {String} Required. The storage location.
++     * @param conf {Object} Required. A configuration object.
++     */
++    Y.StorageEngineSWF = function(location, conf) {
++        var _this = this;
++        Y.StorageEngineSWF.superclass.constructor.call(_this, location, Y.StorageEngineSWF.ENGINE_NAME, conf);
++        
++        _initEngine(_this._cfg);
++
++        // evaluates when the SWF is loaded
++		_engine.unsubscribe('contentReady'); // prevents local and session content ready callbacks from firing, when switching between context
++        _engine.addListener("contentReady", function() {
++            _this._swf = _engine._swf;
++            _engine.initialized = true;
++			
++			var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
++				sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME);
++
++            for (var i = _engine.callSWF("getLength", []) - 1; 0 <= i; i -= 1) {
++                var key = _engine.callSWF("getNameAt", [i]),
++                    isKeySessionStorage = -1 < key.indexOf(Y.StorageManager.LOCATION_SESSION + _this.DELIMITER);
++
++                // this is session storage, but the session key is not set, so remove item
++                if (isSessionStorage && ! sessionKey) {
++                    _engine.callSWF("removeItem", [key]);
++                }
++                // the key matches the storage type, add to key collection
++                else if (isSessionStorage === isKeySessionStorage) {
++                    _this._addKey(key);
++                }
++            }
++
++            // this is session storage, ensure that the session key is set
++            if (isSessionStorage) {
++                Y.Cookie.set('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME, true);
++            }
++
++            _this.length = _this._keys.length;
++            _this.fireEvent(_this.CE_READY);
++        });
++        
++        // required for pages with both a session and local storage
++        if (_engine.initialized) {_engine.fireEvent('contentReady');}
++    };
++
++    YL.extend(Y.StorageEngineSWF, Y.StorageEngineKeyed, {
++        /**
++         * The underlying SWF of the engine, exposed so developers can modify the adapter behavior.
++         * @property _swf
++         * @type {Object}
++         * @protected
++         */
++        _swf: null,
++
++        /*
++         * Implementation to clear the values from the storage engine.
++         * @see YAHOO.util.Storage._clear
++         */
++        _clear: function() {
++            for (var i = this._keys.length - 1; 0 <= i; i -= 1) {
++                var key = this._keys[i];
++                _engine.callSWF("removeItem", [key]);
++            }
++
++            this._keys = [];
++            this.length = 0;
++        },
++
++        /*
++         * Implementation to fetch an item from the storage engine.
++         * @see YAHOO.util.Storage._getItem
++         */
++        _getItem: function(key) {
++            var _key = _getKey(this, key);
++            return _engine.callSWF("getValueOf", [_key]);
++        },
++
++        /*
++         * Implementation to fetch a key from the storage engine.
++         * @see YAHOO.util.Storage.key
++         */
++        _key: function(index) {
++            return (this._keys[index] || '').replace(/^.*?__/, '');
++        },
++
++        /*
++         * Implementation to remove an item from the storage engine.
++         * @see YAHOO.util.Storage._removeItem
++         */
++        _removeItem: function(key) {
++            var _key = _getKey(this, key);
++            _engine.callSWF("removeItem", [_key]);
++            this._removeKey(_key);
++        },
++
++        /*
++         * Implementation to remove an item from the storage engine.
++         * @see YAHOO.util.Storage._setItem
++         */
++        _setItem: function(key, data) {
++            var _key = _getKey(this, key), swfNode;
++
++            // setting the value returns false if the value didn't change,
++            // so I changed this to clear the key if it exists so that the
++            // fork below works.
++            if (_engine.callSWF("getValueOf", [_key])) {
++                this._removeItem(key);
++            }
++
++            this._addKey(_key);
++
++            if (_engine.callSWF("setItem", [_key, data])) {
++                return true;
++            } else {
++
++                // @TODO we should not assume that a false return means that
++                // the quota has been exceeded.  this dialog should only be
++                // displayed if the quotaExceededError event fired.
++                swfNode = YD.get(_engine._id);
++                if (MINIMUM_WIDTH > YD.getStyle(swfNode, 'width').replace(/\D+/g, '')) {
++                    YD.setStyle(swfNode, 'width', MINIMUM_WIDTH + 'px');
++                }
++                if (MINIMUM_HEIGHT > YD.getStyle(swfNode, 'height').replace(/\D+/g, '')) {
++                    YD.setStyle(swfNode, 'height', MINIMUM_HEIGHT + 'px');
++                }
++                return _engine.callSWF("displaySettings", []);
++            }
++        }
++    });
++
++    Y.StorageEngineSWF.SWFURL = "swfstore.swf";
++    Y.StorageEngineSWF.ENGINE_NAME = 'swf';
++    Y.StorageEngineSWF.isAvailable = function() {
++        return (6 <= YAHOO.env.ua.flash && YAHOO.widget.SWF);
++    };
++    Y.StorageManager.register(Y.StorageEngineSWF);
++}());
++YAHOO.register("storage", YAHOO.util.Storage, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/storage/storage-min.js b/pylons_app/public/js/yui/storage/storage-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/storage/storage-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var D=YAHOO,B=D.util,A=D.lang,C;if(!B.Storage){C=function(E){D.log("Exception in YAHOO.util.Storage.?? - must be extended by a storage engine".replace("??",E).replace("??",this.getName?this.getName():"Unknown"),"error");};B.Storage=function(E,G,F){var H=this;D.env._id_counter+=1;H._cfg=A.isObject(F)?F:{};H._location=E;H._name=G;H.isReady=false;H.createEvent(H.CE_READY,{scope:H});H.createEvent(H.CE_CHANGE,{scope:H});H.subscribe(H.CE_READY,function(){H.isReady=true;});};B.Storage.prototype={CE_READY:"YUIStorageReady",CE_CHANGE:"YUIStorageChange",DELIMITER:"__",_cfg:"",_name:"",_location:"",length:0,isReady:false,clear:function(){this._clear();this.length=0;},getItem:function(E){D.log("Fetching item at  "+E);var F=this._getItem(E);return A.isValue(F)?this._getValue(F):null;},getName:function(){return this._name;},hasKey:function(E){return A.isString(E)&&this._hasKey(E);},key:function(E){D.log("Fetching key at "+E);if(A.isNumber(E)&&-1<E&&this.length>E){var F=this._key(E);if(F){return F;}}throw ("INDEX_SIZE_ERR - Storage.setItem - The provided index ("+E+") is not available");},removeItem:function(F){D.log("removing "+F);if(this.hasKey(F)){var E=this._getItem(F);if(!E){E=null;}this._removeItem(F);this.fireEvent(this.CE_CHANGE,new B.StorageEvent(this,F,E,null,B.StorageEvent.TYPE_REMOVE_ITEM));}else{}},setItem:function(G,H){D.log("SETTING "+H+" to "+G);if(A.isString(G)){var F=this.hasKey(G)?B.StorageEvent.TYPE_UPDATE_ITEM:B.StorageEvent.TYPE_ADD_ITEM,E=this._getItem(G);if(!E){E=null;}if(this._setItem(G,this._createValue(H))){this.fireEvent(this.CE_CHANGE,new B.StorageEvent(this,G,E,H,F));}else{throw ("QUOTA_EXCEEDED_ERROR - Storage.setItem - The choosen storage method ("+this.getName()+") has exceeded capacity");}}else{}},_clear:function(){C("_clear");return"";},_createValue:function(F){var E=(A.isNull(F)||A.isUndefined(F))?(""+F):typeof F;return"string"===E?F:E+this.DELIMITER+F;},_getItem:function(E){C("_getItem");return"";},_getValue:function(F){var E=F?F.split(this.DELIMITER):[];if(1==E.length){return F;}switch(E[0]){case"boolean":return"true"===E[1];case"number":return parseFloat(E[1]);case"null":return null;default:return E[1];}},_key:function(E){C("_key");return"";},_hasKey:function(E){return null!==this._getItem(E);},_removeItem:function(E){C("_removeItem");return"";},_setItem:function(E,F){C("_setItem");return"";}};A.augmentProto(B.Storage,B.EventProvider);}}());(function(){var H=YAHOO.util,B=YAHOO.lang,E={},G=[],F={},C=function(I){return(I&&I.isAvailable())?I:null;},A=function(J,I,K){var L=E[J+I.ENGINE_NAME];if(!L){L=new I(J,K);E[J+I.ENGINE_NAME]=L;}return L;},D=function(I){switch(I){case H.StorageManager.LOCATION_LOCAL:case H.StorageManager.LOCATION_SESSION:return I;default:return H.StorageManager.LOCATION_SESSION;}};H.StorageManager={LOCATION_SESSION:"sessionStorage",LOCATION_LOCAL:"localStorage",get:function(O,J,M){var K=B.isObject(M)?M:{},I=C(F[O]);if(!I&&!K.force){var N,L;if(K.order){L=K.order.length;for(N=0;N<L&&!I;N+=1){I=C(K.order[N]);}}if(!I){L=G.length;for(N=0;N<L&&!I;N+=1){I=C(G[N]);}}}if(I){return A(D(J),I,K.engine);}throw ("YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.");},getByteSize:function(I){return encodeURIComponent(""+I).length;},register:function(I){if(B.isFunction(I)&&B.isFunction(I.isAvailable)&&B.isString(I.ENGINE_NAME)){F[I.ENGINE_NAME]=I;G.push(I);return true;}return false;}};YAHOO.register("StorageManager",H.SWFStore,{version:"2.8.0r4",build:"2449"});}());(function(){YAHOO.util.StorageEvent=function(D,B,A,E,C){this.key=B;this.oldValue=A;this.newValue=E;this.url=window.location.href;this.window=window;this.storageArea=D;this.type=C;};YAHOO.lang.augmentObject(YAHOO.util.StorageEvent,{TYPE_ADD_ITEM:"addItem",TYPE_REMOVE_ITEM:"removeItem",TYPE_UPDATE_ITEM:"updateItem"});YAHOO.util.StorageEvent.prototype={key:null,newValue:null,oldValue:null,source:null,storageArea:null,type:null,url:null};}());(function(){var B=YAHOO.util,A=YAHOO.lang;B.StorageEngineKeyed=function(){B.StorageEngineKeyed.superclass.constructor.apply(this,arguments);this._keys=[];this._keyMap={};};A.extend(B.StorageEngineKeyed,B.Storage,{_keys:null,_keyMap:null,_addKey:function(C){this._keyMap[C]=this.length;this._keys.push(C);this.length=this._keys.length;},_indexOfKey:function(D){var C=this._keyMap[D];return undefined===C?-1:C;},_removeKey:function(E){var D=this._indexOfKey(E),F=this._keys.slice(D+1);delete this._keyMap[E];for(var C in this._keyMap){if(D<this._keyMap[C]){this._keyMap[C]-=1;}}this._keys.length=D;this._keys=this._keys.concat(F);this.length=this._keys.length;}});}());(function(){var D=YAHOO.util,B=YAHOO.lang,A=function(E){if(E.begin){E.begin();}},C=function(E){if(E.commit){E.commit();}};D.StorageEngineHTML5=function(E,F){var G=this;D.StorageEngineHTML5.superclass.constructor.call(G,E,D.StorageEngineHTML5.ENGINE_NAME,F);G._engine=window[E];G.length=G._engine.length;B.later(250,G,function(){G.fireEvent(G.CE_READY);});};YAHOO.lang.extend(D.StorageEngineHTML5,D.Storage,{_engine:null,_clear:function(){var G=this;if(G._engine.clear){G._engine.clear();}else{for(var F=G.length,E;0<=F;F-=1){E=G._key(F);G._removeItem(E);}}},_getItem:function(E){var F=this._engine.getItem(E);return B.isObject(F)?F.value:F;},_key:function(E){return this._engine.key(E);},_removeItem:function(E){var F=this;A(F._engine);F._engine.removeItem(E);C(F._engine);F.length=F._engine.length;},_setItem:function(E,F){var H=this;try{A(H._engine);H._engine.setItem(E,F);C(H._engine);H.length=H._engine.length;return true;}catch(G){return false;}}},true);D.StorageEngineHTML5.ENGINE_NAME="html5";D.StorageEngineHTML5.isAvailable=function(){return window.localStorage;};D.StorageManager.register(D.StorageEngineHTML5);}());(function(){var G=YAHOO.util,B=YAHOO.lang,D=9948,C="YUIStorageEngine",F=null,E=encodeURIComponent,A=decodeURIComponent;G.StorageEngineGears=function(I,L){var O=this;G.StorageEngineGears.superclass.constructor.call(O,I,G.StorageEngineGears.ENGINE_NAME,L);
++if(!F){F=google.gears.factory.create(G.StorageEngineGears.GEARS);F.open(window.location.host+"-"+G.StorageEngineGears.DATABASE);F.execute("CREATE TABLE IF NOT EXISTS "+C+" (key TEXT, location TEXT, value TEXT)");}var K=G.StorageManager.LOCATION_SESSION===O._location,H=G.Cookie.get("sessionKey"+G.StorageEngineGears.ENGINE_NAME);if(!H){F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE location="'+E(G.StorageManager.LOCATION_SESSION)+'"');F.execute("COMMIT");}var J=F.execute("SELECT key FROM "+C+' WHERE location="'+E(O._location)+'"'),N={};try{while(J.isValidRow()){var M=A(J.field(0));if(!N[M]){N[M]=true;O._addKey(M);}J.next();}}finally{J.close();}if(K){G.Cookie.set("sessionKey"+G.StorageEngineGears.ENGINE_NAME,true);}O.length=O._keys.length;B.later(250,O,function(){O.fireEvent(O.CE_READY);});};B.extend(G.StorageEngineGears,G.StorageEngineKeyed,{_clear:function(){F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE location="'+E(this._location)+'"');F.execute("COMMIT");this._keys=[];this.length=0;},_getItem:function(J){var I=F.execute("SELECT value FROM "+C+' WHERE key="'+E(J)+'" AND location="'+E(this._location)+'"'),K="";try{while(I.isValidRow()){var H=I.field(0);K+=I.field(0);I.next();}}finally{I.close();}return K?A(K):null;},_key:function(H){return this._keys[H];},_removeItem:function(H){F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE key="'+E(H)+'" AND location="'+E(this._location)+'"');F.execute("COMMIT");this._removeKey(H);},_setItem:function(P,M){if(!this.hasKey(P)){this._addKey(P);}var H=E(P),Q=E(this._location),R=E(M),K=[],O=D-(H+Q).length;if(O<R.length){for(var N=0,L=R.length;N<L;N+=O){K.push(R.substr(N,O));}}else{K.push(R);}F.execute("BEGIN");F.execute("DELETE FROM "+C+' WHERE key="'+E(P)+'" AND location="'+E(this._location)+'"');for(var J=0,I=K.length;J<I;J+=1){F.execute("INSERT INTO "+C+' VALUES ("'+H+'", "'+Q+'", "'+K[J]+'")');}F.execute("COMMIT");return true;}});G.Event.on("unload",function(){if(F){F.close();}});G.StorageEngineGears.ENGINE_NAME="gears";G.StorageEngineGears.GEARS="beta.database";G.StorageEngineGears.DATABASE="yui.database";G.StorageEngineGears.isAvailable=function(){if(window.google&&window.google.gears){try{google.gears.factory.create(G.StorageEngineGears.GEARS);return true;}catch(H){}}return false;};G.StorageManager.register(G.StorageEngineGears);}());(function(){var G=YAHOO.util,B=YAHOO.lang,H=G.Dom,C=215,E=138,F=null,D=function(J,I){return J._location+J.DELIMITER+I;},A=function(J){if(!F){if(!B.isString(J.swfURL)){J.swfURL=G.StorageEngineSWF.SWFURL;}if(!J.containerID){var K=document.getElementsByTagName("body")[0],I=K.appendChild(document.createElement("div"));J.containerID=H.generateId(I);}if(!J.attributes){J.attributes={};}if(!J.attributes.flashVars){J.attributes.flashVars={};}J.attributes.flashVars.useCompression="true";J.attributes.version=9.115;F=new YAHOO.widget.SWF(J.containerID,J.swfURL,J.attributes);}};G.StorageEngineSWF=function(I,J){var K=this;G.StorageEngineSWF.superclass.constructor.call(K,I,G.StorageEngineSWF.ENGINE_NAME,J);A(K._cfg);F.unsubscribe("contentReady");F.addListener("contentReady",function(){K._swf=F._swf;F.initialized=true;var N=G.StorageManager.LOCATION_SESSION===K._location,M=G.Cookie.get("sessionKey"+G.StorageEngineSWF.ENGINE_NAME);for(var P=F.callSWF("getLength",[])-1;0<=P;P-=1){var O=F.callSWF("getNameAt",[P]),L=-1<O.indexOf(G.StorageManager.LOCATION_SESSION+K.DELIMITER);if(N&&!M){F.callSWF("removeItem",[O]);}else{if(N===L){K._addKey(O);}}}if(N){G.Cookie.set("sessionKey"+G.StorageEngineSWF.ENGINE_NAME,true);}K.length=K._keys.length;K.fireEvent(K.CE_READY);});if(F.initialized){F.fireEvent("contentReady");}};B.extend(G.StorageEngineSWF,G.StorageEngineKeyed,{_swf:null,_clear:function(){for(var J=this._keys.length-1;0<=J;J-=1){var I=this._keys[J];F.callSWF("removeItem",[I]);}this._keys=[];this.length=0;},_getItem:function(I){var J=D(this,I);return F.callSWF("getValueOf",[J]);},_key:function(I){return(this._keys[I]||"").replace(/^.*?__/,"");},_removeItem:function(I){var J=D(this,I);F.callSWF("removeItem",[J]);this._removeKey(J);},_setItem:function(I,K){var J=D(this,I),L;if(F.callSWF("getValueOf",[J])){this._removeItem(I);}this._addKey(J);if(F.callSWF("setItem",[J,K])){return true;}else{L=H.get(F._id);if(C>H.getStyle(L,"width").replace(/\D+/g,"")){H.setStyle(L,"width",C+"px");}if(E>H.getStyle(L,"height").replace(/\D+/g,"")){H.setStyle(L,"height",E+"px");}return F.callSWF("displaySettings",[]);}}});G.StorageEngineSWF.SWFURL="swfstore.swf";G.StorageEngineSWF.ENGINE_NAME="swf";G.StorageEngineSWF.isAvailable=function(){return(6<=YAHOO.env.ua.flash&&YAHOO.widget.SWF);};G.StorageManager.register(G.StorageEngineSWF);}());YAHOO.register("storage",YAHOO.util.Storage,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/storage/storage.js b/pylons_app/public/js/yui/storage/storage.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/storage/storage.js
+@@ -0,0 +1,1183 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The Storage module manages client-side data storage.
++ * @module Storage
++ */
++
++(function() {
++
++	// internal shorthand
++var Y = YAHOO,
++	YU = Y.util,
++	YL = Y.lang,
++	_logOverwriteError;
++
++if (! YU.Storage) {
++	_logOverwriteError = function(fxName) {
++		Y.log('Exception in YAHOO.util.Storage.?? - must be extended by a storage engine'.replace('??', fxName).replace('??', this.getName ? this.getName() : 'Unknown'), 'error');
++	};
++
++	/**
++	 * The Storage class is an HTML 5 storage API clone, used to wrap individual storage implementations with a common API.
++	 * @class Storage
++	 * @namespace YAHOO.util
++	 * @constructor
++	 * @param location {String} Required. The storage location.
++	 * @parm name {String} Required. The engine name.
++	 * @param conf {Object} Required. A configuration object.
++	 */
++	YU.Storage = function(location, name, conf) {
++		var that = this;
++		Y.env._id_counter += 1;
++
++		// protected variables
++		that._cfg = YL.isObject(conf) ? conf : {};
++		that._location = location;
++		that._name = name;
++		that.isReady = false;
++
++		// public variables
++		that.createEvent(that.CE_READY, {scope: that});
++		that.createEvent(that.CE_CHANGE, {scope: that});
++		
++		that.subscribe(that.CE_READY, function() {
++			that.isReady = true;
++		});
++	};
++
++	YU.Storage.prototype = {
++
++		/**
++		 * The event name for when the storage item is ready.
++		 * @property CE_READY
++		 * @type {String}
++		 * @public
++		 */
++		CE_READY: 'YUIStorageReady',
++
++		/**
++		 * The event name for when the storage item has changed.
++		 * @property CE_CHANGE
++		 * @type {String}
++		 * @public
++		 */
++		CE_CHANGE: 'YUIStorageChange',
++
++		/**
++		 * The delimiter uesed between the data type and the data.
++		 * @property DELIMITER
++		 * @type {String}
++		 * @public
++		 */
++		DELIMITER: '__',
++
++		/**
++		 * The configuration of the engine.
++		 * @property _cfg
++		 * @type {Object}
++		 * @protected
++		 */
++		_cfg: '',
++
++		/**
++		 * The name of this engine.
++		 * @property _name
++		 * @type {String}
++		 * @protected
++		 */
++		_name: '',
++
++		/**
++		 * The location for this instance.
++		 * @property _location
++		 * @type {String}
++		 * @protected
++		 */
++		_location: '',
++
++		/**
++		 * The current length of the keys.
++		 * @property length
++		 * @type {Number}
++		 * @public
++		 */
++		length: 0,
++
++		/**
++		 * This engine singleton has been initialized already.
++		 * @property isReady
++		 * @type {String}
++		 * @protected
++		 */
++		isReady: false,
++
++		/**
++		 * Clears any existing key/value pairs.
++		 * @method clear
++		 * @public
++		 */
++		clear: function() {
++			this._clear();
++			this.length = 0;
++		},
++
++		/**
++		 * Fetches the data stored and the provided key.
++		 * @method getItem
++		 * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
++		 * @return {String|NULL} The value stored at the provided key (DOMString in HTML 5 spec).
++		 * @public
++		 */
++		getItem: function(key) {
++			Y.log("Fetching item at  " + key);
++			var item = this._getItem(key);
++			return YL.isValue(item) ? this._getValue(item) : null; // required by HTML 5 spec
++		},
++
++		/**
++		 * Fetches the storage object's name; should be overwritten by storage engine.
++		 * @method getName
++		 * @return {String} The name of the data storage object.
++		 * @public
++		 */
++		getName: function() {return this._name;},
++
++		/**
++		 * Tests if the key has been set (not in HTML 5 spec); should be overwritten by storage engine.
++		 * @method hasKey
++		 * @param key {String} Required. The key to search for.
++		 * @return {Boolean} True when key has been set.
++		 * @public
++		 */
++		hasKey: function(key) {
++			return YL.isString(key) && this._hasKey(key);
++		},
++
++		/**
++		 * Retrieve the key stored at the provided index; should be overwritten by storage engine.
++		 * @method key
++		 * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
++		 * @return {String} Required. The key at the provided index (DOMString in HTML 5 spec).
++		 * @public
++		 */
++		key: function(index) {
++			Y.log("Fetching key at " + index);
++
++			if (YL.isNumber(index) && -1 < index && this.length > index) {
++				var value = this._key(index);
++				if (value) {return value;}
++			}
++
++			// this is thrown according to the HTML5 spec
++			throw('INDEX_SIZE_ERR - Storage.setItem - The provided index (' + index + ') is not available');
++		},
++
++		/**
++		 * Remove an item from the data storage.
++		 * @method setItem
++		 * @param key {String} Required. The key to remove (DOMString in HTML 5 spec).
++		 * @public
++		 */
++		removeItem: function(key) {
++			Y.log("removing " + key);
++			
++			if (this.hasKey(key)) {
++                var oldValue = this._getItem(key);
++                if (! oldValue) {oldValue = null;}
++                this._removeItem(key);
++				this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, null, YU.StorageEvent.TYPE_REMOVE_ITEM));
++			}
++			else {
++				// HTML 5 spec says to do nothing
++			}
++		},
++
++		/**
++		 * Adds an item to the data storage.
++		 * @method setItem
++		 * @param key {String} Required. The key used to reference this value (DOMString in HTML 5 spec).
++		 * @param data {Object} Required. The data to store at key (DOMString in HTML 5 spec).
++		 * @public
++		 * @throws QUOTA_EXCEEDED_ERROR
++		 */
++		setItem: function(key, data) {
++			Y.log("SETTING " + data + " to " + key);
++			
++			if (YL.isString(key)) {
++				var eventType = this.hasKey(key) ? YU.StorageEvent.TYPE_UPDATE_ITEM : YU.StorageEvent.TYPE_ADD_ITEM,
++					oldValue = this._getItem(key);
++				if (! oldValue) {oldValue = null;}
++
++				if (this._setItem(key, this._createValue(data))) {
++					this.fireEvent(this.CE_CHANGE, new YU.StorageEvent(this, key, oldValue, data, eventType));
++				}
++				else {
++					// this is thrown according to the HTML5 spec
++					throw('QUOTA_EXCEEDED_ERROR - Storage.setItem - The choosen storage method (' +
++						  this.getName() + ') has exceeded capacity');
++				}
++			}
++			else {
++				// HTML 5 spec says to do nothing
++			}
++		},
++
++		/**
++		 * Implementation of the clear login; should be overwritten by storage engine.
++		 * @method _clear
++		 * @protected
++		 */
++		_clear: function() {
++			_logOverwriteError('_clear');
++			return '';
++		},
++
++		/**
++		 * Converts the object into a string, with meta data (type), so it can be restored later.
++		 * @method _createValue
++		 * @param s {Object} Required. An object to store.
++		 * @protected
++		 */
++		_createValue: function(s) {
++			var type = (YL.isNull(s) || YL.isUndefined(s)) ? ('' + s) : typeof s;
++			return 'string' === type ? s : type + this.DELIMITER + s;
++		},
++
++		/**
++		 * Implementation of the getItem login; should be overwritten by storage engine.
++		 * @method _getItem
++		 * @param key {String} Required. The key used to reference this value.
++		 * @return {String|NULL} The value stored at the provided key.
++		 * @protected
++		 */
++		_getItem: function(key) {
++			_logOverwriteError('_getItem');
++			return '';
++		},
++
++		/**
++		 * Converts the stored value into its appropriate type.
++		 * @method _getValue
++		 * @param s {String} Required. The stored value.
++		 * @protected
++		 */
++		_getValue: function(s) {
++			var a = s ? s.split(this.DELIMITER) : [];
++			if (1 == a.length) {return s;}
++
++			switch (a[0]) {
++				case 'boolean': return 'true' === a[1];
++				case 'number': return parseFloat(a[1]);
++				case 'null': return null;
++				default: return a[1];
++			}
++		},
++
++		/**
++		 * Implementation of the key logic; should be overwritten by storage engine.
++		 * @method _key
++		 * @param index {Number} Required. The index to retrieve (unsigned long in HTML 5 spec).
++		 * @return {String|NULL} Required. The key at the provided index (DOMString in HTML 5 spec).
++		 * @protected
++		 */
++		_key: function(index) {
++			_logOverwriteError('_key');
++			return '';
++		},
++
++		/*
++		 * Implementation to fetch evaluate the existence of a key.
++		 * @see YAHOO.util.Storage._hasKey
++		 */
++		_hasKey: function(key) {
++			return null !== this._getItem(key);
++		},
++
++		/**
++		 * Implementation of the removeItem login; should be overwritten by storage engine.
++		 * @method _removeItem
++		 * @param key {String} Required. The key to remove.
++		 * @protected
++		 */
++		_removeItem: function(key) {
++			_logOverwriteError('_removeItem');
++			return '';
++		},
++
++		/**
++		 * Implementation of the setItem login; should be overwritten by storage engine.
++		 * @method _setItem
++		 * @param key {String} Required. The key used to reference this value.
++		 * @param data {Object} Required. The data to storage at key.
++		 * @return {Boolean} True when successful, false when size QUOTA exceeded.
++		 * @protected
++		 */
++		_setItem: function(key, data) {
++			_logOverwriteError('_setItem');
++			return '';
++		}
++	};
++
++	YL.augmentProto(YU.Storage, YU.EventProvider);
++}
++
++}());
++/**
++ * The StorageManager class is a singleton that registers DataStorage objects and returns instances of those objects.
++ * @class StorageManager
++ * @namespace YAHOO.util
++ * @static
++ */
++(function() {
++	// internal shorthand
++var Y = YAHOO.util,
++	YL = YAHOO.lang,
++
++	// private variables
++	_locationEngineMap = {}, // cached engines
++	_registeredEngineSet = [], // set of available engines
++	_registeredEngineMap = {}, // map of available engines
++	
++	/**
++	 * Fetches a storage constructor if it is available, otherwise returns NULL.
++	 * @method _getClass
++	 * @param klass {Function} Required. The storage constructor to test.
++	 * @return {Function} An available storage constructor or NULL.
++	 * @private
++	 */
++	_getClass = function(klass) {
++		return (klass && klass.isAvailable()) ? klass : null;
++	},
++
++	/**
++	 * Fetches the storage engine from the cache, or creates and caches it.
++	 * @method _getStorageEngine
++	 * @param location {String} Required. The location to store.
++	 * @param klass {Function} Required. A pointer to the engineType Class.
++	 * @param conf {Object} Optional. Additional configuration for the data source engine.
++	 * @private
++	 */
++	_getStorageEngine = function(location, klass, conf) {
++		var engine = _locationEngineMap[location + klass.ENGINE_NAME];
++
++		if (! engine) {
++			engine = new klass(location, conf);
++			_locationEngineMap[location + klass.ENGINE_NAME] = engine;
++		}
++
++		return engine;
++	},
++
++	/**
++	 * Ensures that the location is valid before returning it or a default value.
++	 * @method _getValidLocation
++	 * @param location {String} Required. The location to evaluate.
++	 * @private
++	 */
++	_getValidLocation = function(location) {
++		switch (location) {
++			case Y.StorageManager.LOCATION_LOCAL:
++			case Y.StorageManager.LOCATION_SESSION:
++				return location;
++
++			default: return Y.StorageManager.LOCATION_SESSION;
++		}
++	};
++
++	// public namespace
++	Y.StorageManager = {
++
++        /**
++         * The storage location - session; data cleared at the end of a user's session.
++         * @property LOCATION_SESSION
++         * @type {String}
++         * @static
++         */
++		LOCATION_SESSION: 'sessionStorage',
++
++        /**
++         * The storage location - local; data cleared on demand.
++         * @property LOCATION_LOCAL
++         * @type {String}
++         * @static
++         */
++		LOCATION_LOCAL: 'localStorage',
++
++		/**
++		 * Fetches the desired engine type or first available engine type.
++		 * @method get
++		 * @param engineType {String} Optional. The engine type, see engines.
++		 * @param location {String} Optional. The storage location - LOCATION_SESSION & LOCATION_LOCAL; default is LOCAL.
++		 * @param conf {Object} Optional. Additional configuration for the getting the storage engine.
++		 * {
++		 * 	engine: {Object} configuration parameters for the desired engine
++		 * 	order: {Array} an array of storage engine names; the desired order to try engines}
++		 * }
++		 * @static
++		 */
++		get: function(engineType, location, conf) {
++			var _cfg = YL.isObject(conf) ? conf : {},
++				klass = _getClass(_registeredEngineMap[engineType]);
++
++			if (! klass && ! _cfg.force) {
++				var i, j;
++
++				if (_cfg.order) {
++					j = _cfg.order.length;
++
++					for (i = 0; i < j && ! klass; i += 1) {
++						klass = _getClass(_cfg.order[i]);
++					}
++				}
++
++				if (! klass) {
++					j = _registeredEngineSet.length;
++
++					for (i = 0; i < j && ! klass; i += 1) {
++						klass = _getClass(_registeredEngineSet[i]);
++					}
++				}
++			}
++
++			if (klass) {
++				return _getStorageEngine(_getValidLocation(location), klass, _cfg.engine);
++			}
++
++			throw('YAHOO.util.StorageManager.get - No engine available, please include an engine before calling this function.');
++		},
++
++        /*
++         * Estimates the size of the string using 1 byte for each alpha-numeric character and 3 for each non-alpha-numeric character.
++         * @method getByteSize
++         * @param s {String} Required. The string to evaulate.
++         * @return {Number} The estimated string size.
++         * @private
++         */
++        getByteSize: function(s) {
++			return encodeURIComponent('' + s).length;
++        },
++
++		/**
++		 * Registers a engineType Class with the StorageManager singleton; first in is the first out.
++		 * @method register
++		 * @param engineConstructor {Function} Required. The engine constructor function, see engines.
++		 * @return {Boolean} When successfully registered.
++		 * @static
++		 */
++		register: function(engineConstructor) {
++			if (YL.isFunction(engineConstructor) && YL.isFunction(engineConstructor.isAvailable) && YL.isString(engineConstructor.ENGINE_NAME)) {
++				_registeredEngineMap[engineConstructor.ENGINE_NAME] = engineConstructor;
++				_registeredEngineSet.push(engineConstructor);
++				return true;
++			}
++
++			return false;
++		}
++	};
++
++	YAHOO.register("StorageManager", Y.SWFStore, {version: "2.8.0r4", build: "2449"});
++}());
++(function() {
++
++/**
++ * The StorageEvent class manages the storage events by emulating the HTML 5 implementation.
++ * @namespace YAHOO.util
++ * @class StorageEvent
++ * @constructor
++ * @param storageArea {Object} Required. The Storage object that was affected.
++ * @param key {String} Required. The key being changed; DOMString in HTML 5 spec.
++ * @param oldValue {String} Required. The old value of the key being changed; DOMString in HTML 5 spec.
++ * @param newValue {String} Required. The new value of the key being changed; DOMString in HTML 5 spec.
++ * @param type {String} Required. The storage event type.
++ */
++YAHOO.util.StorageEvent = function(storageArea, key, oldValue, newValue, type) {
++	this.key = key;
++	this.oldValue = oldValue;
++	this.newValue = newValue;
++	this.url = window.location.href;
++	this.window = window; // todo: think about the CAJA and innocent code
++	this.storageArea = storageArea;
++	this.type = type;
++};
++
++YAHOO.lang.augmentObject(YAHOO.util.StorageEvent, {
++	TYPE_ADD_ITEM: 'addItem',
++	TYPE_REMOVE_ITEM: 'removeItem',
++	TYPE_UPDATE_ITEM: 'updateItem'
++});
++
++YAHOO.util.StorageEvent.prototype = {
++
++    /**
++     * The 'key' attribute represents the key being changed.
++     * @property key
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    key: null,
++
++    /**
++     * The 'newValue' attribute represents the new value of the key being changed.
++     * @property newValue
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    newValue: null,
++
++    /**
++     * The 'oldValue' attribute represents the old value of the key being changed.
++     * @property oldValue
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    oldValue: null,
++
++    /**
++     * The 'source' attribute represents the WindowProxy object of the browsing context of the document whose key changed.
++     * @property source
++     * @type {Object}
++     * @static
++     * @readonly
++     */
++    source: null,
++
++    /**
++     * The 'storageArea' attribute represents the Storage object that was affected.
++     * @property storageArea
++     * @type {Object}
++     * @static
++     * @readonly
++     */
++    storageArea: null,
++
++    /**
++     * The 'type' attribute represents the Storage event type.
++     * @property type
++     * @type {Object}
++     * @static
++     * @readonly
++     */
++    type: null,
++
++    /**
++     * The 'url' attribute represents the address of the document whose key changed.
++     * @property url
++     * @type {String}
++     * @static
++     * @readonly
++     */
++    url: null
++};
++	
++}());
++(function() {
++var Y = YAHOO.util,
++	YL = YAHOO.lang;
++
++	/**
++	 * The StorageEngineKeyed class implements the interface necessary for managing keys.
++	 * @namespace YAHOO.util
++	 * @class StorageEngineKeyed
++	 * @constructor
++	 * @extend YAHOO.util.Storage
++	 */
++	Y.StorageEngineKeyed = function() {
++		Y.StorageEngineKeyed.superclass.constructor.apply(this, arguments);
++		this._keys = [];
++		this._keyMap = {};
++	};
++
++	YL.extend(Y.StorageEngineKeyed, Y.Storage, {
++
++		/**
++		 * A collection of keys applicable to the current location. This should never be edited by the developer.
++		 * @property _keys
++		 * @type {Array}
++		 * @protected
++		 */
++		_keys: null,
++
++		/**
++		 * A map of keys to their applicable position in keys array. This should never be edited by the developer.
++		 * @property _keyMap
++		 * @type {Object}
++		 * @protected
++		 */
++		_keyMap: null,
++
++		/**
++		 * Adds the key to the set.
++		 * @method _addKey
++		 * @param key {String} Required. The key to evaluate.
++		 * @protected
++		 */
++		_addKey: function(key) {
++			this._keyMap[key] = this.length;
++			this._keys.push(key);
++			this.length = this._keys.length;
++		},
++
++		/**
++		 * Evaluates if a key exists in the keys array; indexOf does not work in all flavors of IE.
++		 * @method _indexOfKey
++		 * @param key {String} Required. The key to evaluate.
++		 * @protected
++		 */
++		_indexOfKey: function(key) {
++			var i = this._keyMap[key];
++			return undefined === i ? -1 : i;
++		},
++
++		/**
++		 * Removes a key from the keys array.
++		 * @method _removeKey
++		 * @param key {String} Required. The key to remove.
++		 * @protected
++		 */
++		_removeKey: function(key) {
++			var j = this._indexOfKey(key),
++				rest = this._keys.slice(j + 1);
++
++			delete this._keyMap[key];
++
++			for (var k in this._keyMap) {
++				if (j < this._keyMap[k]) {
++					this._keyMap[k] -= 1;
++				}
++			}
++			
++			this._keys.length = j;
++			this._keys = this._keys.concat(rest);
++			this.length = this._keys.length;
++		}
++	});
++}());
++/*
++ * HTML limitations:
++ *  - 5MB in FF and Safari, 10MB in IE 8
++ *  - only FF 3.5 recovers session storage after a browser crash
++ *
++ * Thoughts:
++ *  - how can we not use cookies to handle session
++ */
++(function() {
++	// internal shorthand
++var Y = YAHOO.util,
++	YL = YAHOO.lang,
++
++	/*
++	 * Required for IE 8 to make synchronous.
++	 */
++	_beginTransaction = function(engine) {
++		if (engine.begin) {engine.begin();}
++	},
++
++	/*
++	 * Required for IE 8 to make synchronous.
++	 */
++	_commitTransaction = function(engine) {
++		if (engine.commit) {engine.commit();}
++	};
++
++	/**
++	 * The StorageEngineHTML5 class implements the HTML5 storage engine.
++	 * @namespace YAHOO.util
++	 * @class StorageEngineHTML5
++	 * @constructor
++	 * @extend YAHOO.util.Storage
++	 * @param location {String} Required. The storage location.
++	 * @param conf {Object} Required. A configuration object.
++	 */
++	Y.StorageEngineHTML5 = function(location, conf) {
++		var _this = this;
++		Y.StorageEngineHTML5.superclass.constructor.call(_this, location, Y.StorageEngineHTML5.ENGINE_NAME, conf);// not set, are cookies available
++		_this._engine = window[location];
++		_this.length = _this._engine.length;
++		YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
++			_this.fireEvent(_this.CE_READY);
++		});
++	};
++
++	YAHOO.lang.extend(Y.StorageEngineHTML5, Y.Storage, {
++
++		_engine: null,
++
++		/*
++		 * Implementation to clear the values from the storage engine.
++		 * @see YAHOO.util.Storage._clear
++		 */
++		_clear: function() {
++			var _this = this;
++			if (_this._engine.clear) {
++				_this._engine.clear();
++			}
++			// for FF 3, fixed in FF 3.5
++			else {
++				for (var i = _this.length, key; 0 <= i; i -= 1) {
++					key = _this._key(i);
++					_this._removeItem(key);
++				}
++			}
++		},
++
++		/*
++		 * Implementation to fetch an item from the storage engine.
++		 * @see YAHOO.util.Storage._getItem
++		 */
++		_getItem: function(key) {
++			var o = this._engine.getItem(key);
++			return YL.isObject(o) ? o.value : o; // for FF 3, fixed in FF 3.5
++		},
++
++		/*
++		 * Implementation to fetch a key from the storage engine.
++		 * @see YAHOO.util.Storage._key
++		 */
++		_key: function(index) {return this._engine.key(index);},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._removeItem
++		 */
++		_removeItem: function(key) {
++			var _this = this;
++			_beginTransaction(_this._engine);
++			_this._engine.removeItem(key);
++			_commitTransaction(_this._engine);
++			_this.length = _this._engine.length;
++		},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._setItem
++		 */
++		_setItem: function(key, value) {
++			var _this = this;
++			
++			try {
++				_beginTransaction(_this._engine);
++				_this._engine.setItem(key, value);
++				_commitTransaction(_this._engine);
++				_this.length = _this._engine.length;
++				return true;
++			}
++			catch (e) {
++				return false;
++			}
++		}
++	}, true);
++
++	Y.StorageEngineHTML5.ENGINE_NAME = 'html5';
++	Y.StorageEngineHTML5.isAvailable = function() {
++		return window.localStorage;
++	};
++    Y.StorageManager.register(Y.StorageEngineHTML5);
++}());
++/*
++ * Gears limitation:
++ *  - SQLite limitations - http://www.sqlite.org/limits.html
++ *  - DB Best Practices - http://code.google.com/apis/gears/gears_faq.html#bestPracticeDB
++ * 	- the user must approve before gears can be used
++ *  - each SQL query has a limited number of characters (9948 bytes), data will need to be spread across rows
++ *  - no query should insert or update more than 9948 bytes of data in a single statement or GEARs will throw:
++ *  	[Exception... "'Error: SQL statement is too long.' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
++ *
++ * Thoughts:
++ *  - we may want to implement additional functions for the gears only implementation
++ *  - how can we not use cookies to handle session location
++ */
++(function() {
++	// internal shorthand
++var Y = YAHOO.util,
++	YL = YAHOO.lang,
++	_SQL_STMT_LIMIT = 9948,
++	_TABLE_NAME = 'YUIStorageEngine',
++
++	// local variables
++	_engine = null,
++
++	eURI = encodeURIComponent,
++	dURI = decodeURIComponent;
++
++	/**
++	 * The StorageEngineGears class implements the Google Gears storage engine.
++	 * @namespace YAHOO.util
++	 * @class StorageEngineGears
++	 * @constructor
++	 * @extend YAHOO.util.Storage
++	 * @param location {String} Required. The storage location.
++	 * @param conf {Object} Required. A configuration object.
++	 */
++	Y.StorageEngineGears = function(location, conf) {
++		var _this = this;
++		Y.StorageEngineGears.superclass.constructor.call(_this, location, Y.StorageEngineGears.ENGINE_NAME, conf);
++
++		if (! _engine) {
++			// create the database
++			_engine = google.gears.factory.create(Y.StorageEngineGears.GEARS);
++			_engine.open(window.location.host + '-' + Y.StorageEngineGears.DATABASE);
++			_engine.execute('CREATE TABLE IF NOT EXISTS ' + _TABLE_NAME + ' (key TEXT, location TEXT, value TEXT)');
++		}
++
++		var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
++			sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineGears.ENGINE_NAME);
++
++		if (! sessionKey) {
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(Y.StorageManager.LOCATION_SESSION) + '"');
++			_engine.execute('COMMIT');
++		}
++
++		var rs = _engine.execute('SELECT key FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(_this._location) + '"'),
++			keyMap = {};
++	
++		try {
++			// iterate on the rows and map the keys
++			while (rs.isValidRow()) {
++				var fld = dURI(rs.field(0));
++
++				if (! keyMap[fld]) {
++					keyMap[fld] = true;
++					_this._addKey(fld);
++				}
++
++				rs.next();
++			}
++		}
++		finally {
++			rs.close();
++		}
++
++		// this is session storage, ensure that the session key is set
++		if (isSessionStorage) {
++			Y.Cookie.set('sessionKey' + Y.StorageEngineGears.ENGINE_NAME, true);
++		}
++
++		_this.length = _this._keys.length;
++		YL.later(250, _this, function() { // temporary solution so that CE_READY can be subscribed to after this object is created
++			_this.fireEvent(_this.CE_READY);
++		});
++	};
++
++	YL.extend(Y.StorageEngineGears, Y.StorageEngineKeyed, {
++
++		/*
++		 * Implementation to clear the values from the storage engine.
++		 * @see YAHOO.util.Storage._clear
++		 */
++		_clear: function() {
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE location="' + eURI(this._location) + '"');
++			_engine.execute('COMMIT');
++			this._keys = [];
++			this.length = 0;
++		},
++
++		/*
++		 * Implementation to fetch an item from the storage engine.
++		 * @see YAHOO.util.Storage._getItem
++		 */
++		_getItem: function(key) {
++			var rs = _engine.execute('SELECT value FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"'),
++				value = '';
++
++			try {
++				while (rs.isValidRow()) {
++					var temp = rs.field(0);
++					value += rs.field(0);
++					rs.next();
++				}
++			}
++			finally {
++				rs.close();
++			}
++
++			return value ? dURI(value) : null;
++		},
++
++		/*
++		 * Implementation to fetch a key from the storage engine.
++		 * @see YAHOO.util.Storage.key
++		 */
++		_key: function(index) {return this._keys[index];},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._removeItem
++		 */
++		_removeItem: function(key) {
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
++			_engine.execute('COMMIT');
++			this._removeKey(key);
++		},
++
++		/*
++		 * Implementation to remove an item from the storage engine.
++		 * @see YAHOO.util.Storage._setItem
++		 */
++		_setItem: function(key, data) {
++
++			if (! this.hasKey(key)) {
++				this._addKey(key);
++			}
++
++			var _key = eURI(key),
++				_location = eURI(this._location),
++				_value = eURI(data),
++				_values = [],
++				_len = _SQL_STMT_LIMIT - (_key + _location).length;
++
++			// the length of the value exceeds the available space
++			if (_len < _value.length) {
++				for (var i = 0, j = _value.length; i < j; i += _len) {
++					_values.push(_value.substr(i, _len));
++				}
++			}
++			else {
++				_values.push(_value);
++			}
++
++			// Google recommends using INSERT instead of update, because it is faster
++			_engine.execute('BEGIN');
++			_engine.execute('DELETE FROM ' + _TABLE_NAME + ' WHERE key="' + eURI(key) + '" AND location="' + eURI(this._location) + '"');
++			for (var m = 0, n = _values.length; m < n; m += 1) {
++				_engine.execute('INSERT INTO ' + _TABLE_NAME + ' VALUES ("' + _key + '", "' + _location + '", "' + _values[m] + '")');
++			}
++			_engine.execute('COMMIT');
++			
++			return true;
++		}
++	});
++
++	// releases the engine when the page unloads
++	Y.Event.on('unload', function() {
++		if (_engine) {_engine.close();}
++	});
++	Y.StorageEngineGears.ENGINE_NAME = 'gears';
++	Y.StorageEngineGears.GEARS = 'beta.database';
++	Y.StorageEngineGears.DATABASE = 'yui.database';
++	Y.StorageEngineGears.isAvailable = function() {
++		if (window.google && window.google.gears) {
++			try {
++				// this will throw an exception if the user denies gears
++				google.gears.factory.create(Y.StorageEngineGears.GEARS);
++				return true;
++			}
++			catch (e) {
++				// no need to do anything
++			}
++		}
++
++		return false;
++	};
++    Y.StorageManager.register(Y.StorageEngineGears);
++}());
++/*
++ * SWF limitation:
++ *  - only 100,000 bytes of data may be stored this way
++ *  - data is publicly available on user machine
++ *
++ * Thoughts:
++ *  - data can be shared across browsers
++ *  - how can we not use cookies to handle session location
++ */
++(function() {
++    // internal shorthand
++var Y = YAHOO.util,
++    YL = YAHOO.lang,
++    YD = Y.Dom,
++    
++    /*
++     * The minimum width required to be able to display the settings panel within the SWF.
++     */ 
++    MINIMUM_WIDTH = 215,
++
++    /*
++     * The minimum height required to be able to display the settings panel within the SWF.
++     */ 
++    MINIMUM_HEIGHT = 138,
++
++    // local variables
++    _engine = null,
++
++    /*
++     * Creates a location bound key.
++     */
++    _getKey = function(that, key) {
++        return that._location + that.DELIMITER + key;
++    },
++
++    /*
++     * Initializes the engine, if it isn't already initialized.
++     */
++    _initEngine = function(cfg) {
++        if (! _engine) {
++            if (! YL.isString(cfg.swfURL)) {cfg.swfURL = Y.StorageEngineSWF.SWFURL;}
++            if (! cfg.containerID) {
++                var bd = document.getElementsByTagName('body')[0],
++                    container = bd.appendChild(document.createElement('div'));
++                cfg.containerID = YD.generateId(container);
++            }
++
++            if (! cfg.attributes) {cfg.attributes  = {};}
++            if (! cfg.attributes.flashVars) {cfg.attributes.flashVars = {};}
++            cfg.attributes.flashVars.useCompression = 'true';
++            cfg.attributes.version = 9.115;
++            _engine = new YAHOO.widget.SWF(cfg.containerID, cfg.swfURL, cfg.attributes);
++        }
++    };
++
++    /**
++     * The StorageEngineSWF class implements the SWF storage engine.
++     * @namespace YAHOO.util
++     * @class StorageEngineSWF
++     * @uses YAHOO.widget.SWF
++     * @constructor
++     * @extend YAHOO.util.Storage
++     * @param location {String} Required. The storage location.
++     * @param conf {Object} Required. A configuration object.
++     */
++    Y.StorageEngineSWF = function(location, conf) {
++        var _this = this;
++        Y.StorageEngineSWF.superclass.constructor.call(_this, location, Y.StorageEngineSWF.ENGINE_NAME, conf);
++        
++        _initEngine(_this._cfg);
++
++        // evaluates when the SWF is loaded
++		_engine.unsubscribe('contentReady'); // prevents local and session content ready callbacks from firing, when switching between context
++        _engine.addListener("contentReady", function() {
++            _this._swf = _engine._swf;
++            _engine.initialized = true;
++			
++			var isSessionStorage = Y.StorageManager.LOCATION_SESSION === _this._location,
++				sessionKey = Y.Cookie.get('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME);
++
++            for (var i = _engine.callSWF("getLength", []) - 1; 0 <= i; i -= 1) {
++                var key = _engine.callSWF("getNameAt", [i]),
++                    isKeySessionStorage = -1 < key.indexOf(Y.StorageManager.LOCATION_SESSION + _this.DELIMITER);
++
++                // this is session storage, but the session key is not set, so remove item
++                if (isSessionStorage && ! sessionKey) {
++                    _engine.callSWF("removeItem", [key]);
++                }
++                // the key matches the storage type, add to key collection
++                else if (isSessionStorage === isKeySessionStorage) {
++                    _this._addKey(key);
++                }
++            }
++
++            // this is session storage, ensure that the session key is set
++            if (isSessionStorage) {
++                Y.Cookie.set('sessionKey' + Y.StorageEngineSWF.ENGINE_NAME, true);
++            }
++
++            _this.length = _this._keys.length;
++            _this.fireEvent(_this.CE_READY);
++        });
++        
++        // required for pages with both a session and local storage
++        if (_engine.initialized) {_engine.fireEvent('contentReady');}
++    };
++
++    YL.extend(Y.StorageEngineSWF, Y.StorageEngineKeyed, {
++        /**
++         * The underlying SWF of the engine, exposed so developers can modify the adapter behavior.
++         * @property _swf
++         * @type {Object}
++         * @protected
++         */
++        _swf: null,
++
++        /*
++         * Implementation to clear the values from the storage engine.
++         * @see YAHOO.util.Storage._clear
++         */
++        _clear: function() {
++            for (var i = this._keys.length - 1; 0 <= i; i -= 1) {
++                var key = this._keys[i];
++                _engine.callSWF("removeItem", [key]);
++            }
++
++            this._keys = [];
++            this.length = 0;
++        },
++
++        /*
++         * Implementation to fetch an item from the storage engine.
++         * @see YAHOO.util.Storage._getItem
++         */
++        _getItem: function(key) {
++            var _key = _getKey(this, key);
++            return _engine.callSWF("getValueOf", [_key]);
++        },
++
++        /*
++         * Implementation to fetch a key from the storage engine.
++         * @see YAHOO.util.Storage.key
++         */
++        _key: function(index) {
++            return (this._keys[index] || '').replace(/^.*?__/, '');
++        },
++
++        /*
++         * Implementation to remove an item from the storage engine.
++         * @see YAHOO.util.Storage._removeItem
++         */
++        _removeItem: function(key) {
++            var _key = _getKey(this, key);
++            _engine.callSWF("removeItem", [_key]);
++            this._removeKey(_key);
++        },
++
++        /*
++         * Implementation to remove an item from the storage engine.
++         * @see YAHOO.util.Storage._setItem
++         */
++        _setItem: function(key, data) {
++            var _key = _getKey(this, key), swfNode;
++
++            // setting the value returns false if the value didn't change,
++            // so I changed this to clear the key if it exists so that the
++            // fork below works.
++            if (_engine.callSWF("getValueOf", [_key])) {
++                this._removeItem(key);
++            }
++
++            this._addKey(_key);
++
++            if (_engine.callSWF("setItem", [_key, data])) {
++                return true;
++            } else {
++
++                // @TODO we should not assume that a false return means that
++                // the quota has been exceeded.  this dialog should only be
++                // displayed if the quotaExceededError event fired.
++                swfNode = YD.get(_engine._id);
++                if (MINIMUM_WIDTH > YD.getStyle(swfNode, 'width').replace(/\D+/g, '')) {
++                    YD.setStyle(swfNode, 'width', MINIMUM_WIDTH + 'px');
++                }
++                if (MINIMUM_HEIGHT > YD.getStyle(swfNode, 'height').replace(/\D+/g, '')) {
++                    YD.setStyle(swfNode, 'height', MINIMUM_HEIGHT + 'px');
++                }
++                return _engine.callSWF("displaySettings", []);
++            }
++        }
++    });
++
++    Y.StorageEngineSWF.SWFURL = "swfstore.swf";
++    Y.StorageEngineSWF.ENGINE_NAME = 'swf';
++    Y.StorageEngineSWF.isAvailable = function() {
++        return (6 <= YAHOO.env.ua.flash && YAHOO.widget.SWF);
++    };
++    Y.StorageManager.register(Y.StorageEngineSWF);
++}());
++YAHOO.register("storage", YAHOO.util.Storage, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/stylesheet/stylesheet-debug.js b/pylons_app/public/js/yui/stylesheet/stylesheet-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/stylesheet/stylesheet-debug.js
+@@ -0,0 +1,648 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The StyleSheet component is a utility for managing css rules at the
++ * stylesheet level
++ *
++ * @module stylesheet
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @beta
++ */
++(function () {
++
++var d      = document,
++    p      = d.createElement('p'), // Have to hold the node (see notes)
++    workerStyle = p.style, // worker style collection
++    lang   = YAHOO.lang,
++    selectors = {},
++    sheets = {},
++    ssId   = 0,
++    floatAttr = ('cssFloat' in workerStyle) ? 'cssFloat' : 'styleFloat',
++    _toCssText,
++    _unsetOpacity,
++    _unsetProperty;
++
++/*
++ * Normalizes the removal of an assigned style for opacity.  IE uses the filter property.
++ */
++_unsetOpacity = ('opacity' in workerStyle) ?
++    function (style) { style.opacity = ''; } :
++    function (style) { style.filter = ''; };
++        
++/*
++ * Normalizes the removal of an assigned style for a given property.  Expands
++ * shortcut properties if necessary and handles the various names for the float property.
++ */
++workerStyle.border = "1px solid red";
++workerStyle.border = ''; // IE doesn't unset child properties
++_unsetProperty = workerStyle.borderLeft ?
++    function (style,prop) {
++        var p;
++        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
++            prop = floatAttr;
++        }
++        if (typeof style[prop] === 'string') {
++            switch (prop) {
++                case 'opacity':
++                case 'filter' : _unsetOpacity(style); break;
++                case 'font'   :
++                    style.font       = style.fontStyle = style.fontVariant =
++                    style.fontWeight = style.fontSize  = style.lineHeight  =
++                    style.fontFamily = '';
++                    break;
++                default       :
++                    for (p in style) {
++                        if (p.indexOf(prop) === 0) {
++                            style[p] = '';
++                        }
++                    }
++            }
++        }
++    } :
++    function (style,prop) {
++        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
++            prop = floatAttr;
++        }
++        if (lang.isString(style[prop])) {
++            if (prop === 'opacity') {
++                _unsetOpacity(style);
++            } else {
++                style[prop] = '';
++            }
++        }
++    };
++    
++/**
++ * Create an instance of YAHOO.util.StyleSheet to encapsulate a css stylesheet.
++ * The constructor can be called using function or constructor syntax.
++ * <pre><code>var sheet = YAHOO.util.StyleSheet(..);</pre></code>
++ * or
++ * <pre><code>var sheet = new YAHOO.util.StyleSheet(..);</pre></code>
++ *
++ * The first parameter passed can be any of the following things:
++ * <ul>
++ *   <li>The desired string name to register a new empty sheet</li>
++ *   <li>The string name of an existing YAHOO.util.StyleSheet instance</li>
++ *   <li>The unique yuiSSID generated for an existing YAHOO.util.StyleSheet instance</li>
++ *   <li>The id of an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
++ *   <li>The node reference for an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
++ *   <li>A chunk of css text to create a new stylesheet from</li>
++ * </ul>
++ *
++ * <p>If a string is passed, StyleSheet will first look in its static name
++ * registry for an existing sheet, then in the DOM for an element with that id.
++ * If neither are found and the string contains the { character, it will be
++ * used as a the initial cssText for a new StyleSheet.  Otherwise, a new empty
++ * StyleSheet is created, assigned the string value as a name, and registered
++ * statically by that name.</p>
++ *
++ * <p>The optional second parameter is a string name to register the sheet as.
++ * This param is largely useful when providing a node id/ref or chunk of css
++ * text to create a populated instance.</p>
++ * 
++ * @class StyleSheet
++ * @constructor
++ * @param seed {String|HTMLElement} a style or link node, its id, or a name or
++ *              yuiSSID of a StyleSheet, or a string of css text (see above)
++ * @param name {String} OPTIONAL name to register instance for future static
++ *              access
++ */
++function StyleSheet(seed, name) {
++    var head,
++        node,
++        sheet,
++        cssRules = {},
++        _rules,
++        _insertRule,
++        _deleteRule,
++        i,r,sel;
++
++    // Factory or constructor
++    if (!(this instanceof StyleSheet)) {
++        return new StyleSheet(seed,name);
++    }
++
++    // capture the DOM node if the string is an id
++    node = seed && (seed.nodeName ? seed : d.getElementById(seed));
++
++    // Check for the StyleSheet in the static registry
++    if (seed && sheets[seed]) {
++        return sheets[seed];
++    } else if (node && node.yuiSSID && sheets[node.yuiSSID]) {
++        return sheets[node.yuiSSID];
++    }
++
++    // Create a style node if necessary
++    if (!node || !/^(?:style|link)$/i.test(node.nodeName)) {
++        node = d.createElement('style');
++        node.type = 'text/css';
++    }
++
++    if (lang.isString(seed)) {
++        // Create entire sheet from seed cssText
++        if (seed.indexOf('{') != -1) {
++            // Not a load-time fork because low run-time impact and IE fails
++            // test for s.styleSheet at page load time (oddly)
++            if (node.styleSheet) {
++                node.styleSheet.cssText = seed;
++            } else {
++                node.appendChild(d.createTextNode(seed));
++            }
++        } else if (!name) {
++            name = seed;
++        }
++    }
++
++    if (!node.parentNode || node.parentNode.nodeName.toLowerCase() !== 'head') {
++        head = (node.ownerDocument || d).getElementsByTagName('head')[0];
++        // styleSheet isn't available on the style node in FF2 until appended
++        // to the head element.  style nodes appended to body do not affect
++        // change in Safari.
++        head.appendChild(node);
++    }
++
++    // Begin setting up private aliases to the important moving parts
++    // 1. The stylesheet object
++    // IE stores StyleSheet under the "styleSheet" property
++    // Safari doesn't populate sheet for xdomain link elements
++    sheet = node.sheet || node.styleSheet;
++
++    // 2. The style rules collection
++    // IE stores the rules collection under the "rules" property
++    _rules = sheet && ('cssRules' in sheet) ? 'cssRules' : 'rules';
++
++    // 3. The method to remove a rule from the stylesheet
++    // IE supports removeRule
++    _deleteRule = ('deleteRule' in sheet) ?
++        function (i) { sheet.deleteRule(i); } :
++        function (i) { sheet.removeRule(i); };
++
++    // 4. The method to add a new rule to the stylesheet
++    // IE supports addRule with different signature
++    _insertRule = ('insertRule' in sheet) ?
++        function (sel,css,i) { sheet.insertRule(sel+' {'+css+'}',i); } :
++        function (sel,css,i) { sheet.addRule(sel,css,i); };
++
++    // 5. Initialize the cssRules map from the node
++    // xdomain link nodes forbid access to the cssRules collection, so this
++    // will throw an error.
++    // TODO: research alternate stylesheet, @media
++    for (i = sheet[_rules].length - 1; i >= 0; --i) {
++        r   = sheet[_rules][i];
++        sel = r.selectorText;
++
++        if (cssRules[sel]) {
++            cssRules[sel].style.cssText += ';' + r.style.cssText;
++            _deleteRule(i);
++        } else {
++            cssRules[sel] = r;
++        }
++    }
++
++    // Cache the instance by the generated Id
++    node.yuiSSID = 'yui-stylesheet-' + (ssId++);
++    StyleSheet.register(node.yuiSSID,this);
++
++    // Register the instance by name if provided or defaulted from seed
++    if (name) {
++        StyleSheet.register(name,this);
++    }
++
++    // Public API
++    lang.augmentObject(this,{
++        /**
++         * Get the unique yuiSSID for this StyleSheet instance
++         *
++         * @method getId
++         * @return {Number} the static id
++         */
++        getId : function () { return node.yuiSSID; },
++
++        /**
++         * The HTMLElement that this instance encapsulates
++         *
++         * @property node
++         * @type HTMLElement
++         */
++        node : node,
++
++        /**
++         * Enable all the rules in the sheet
++         *
++         * @method enable
++         * @return {StyleSheet} the instance
++         * @chainable
++         */
++        // Enabling/disabling the stylesheet.  Changes may be made to rules
++        // while disabled.
++        enable : function () { sheet.disabled = false; return this; },
++
++        /**
++         * Disable all the rules in the sheet.  Rules may be changed while the
++         * StyleSheet is disabled.
++         *
++         * @method disable
++         * @return {StyleSheet} the instance
++         * @chainable
++         */
++        disable : function () { sheet.disabled = true; return this; },
++
++        /**
++         * Returns boolean indicating whether the StyleSheet is enabled
++         *
++         * @method isEnabled
++         * @return {Boolean} is it enabled?
++         */
++        isEnabled : function () { return !sheet.disabled; },
++
++        /**
++         * <p>Set style properties for a provided selector string.
++         * If the selector includes commas, it will be split into individual
++         * selectors and applied accordingly.  If the selector string does not
++         * have a corresponding rule in the sheet, it will be added.</p>
++         *
++         * <p>The second parameter can be either a string of CSS text,
++         * formatted as CSS ("font-size: 10px;"), or an object collection of
++         * properties and their new values.  Object properties must be in
++         * JavaScript format ({ fontSize: "10px" }).</p>
++         *
++         * <p>The float style property will be set by any of &quot;float&quot;,
++         * &quot;styleFloat&quot;, or &quot;cssFloat&quot; if passed in the
++         * object map.  Use "float: left;" format when passing a CSS text
++         * string.</p>
++         *
++         * @method set
++         * @param sel {String} the selector string to apply the changes to
++         * @param css {Object|String} Object literal of style properties and
++         *                      new values, or a string of cssText
++         * @return {StyleSheet} the StyleSheet instance
++         * @chainable
++         */
++        set : function (sel,css) {
++            var rule = cssRules[sel],
++                multi = sel.split(/\s*,\s*/),i,
++                idx;
++
++            // IE's addRule doesn't support multiple comma delimited selectors
++            if (multi.length > 1) {
++                for (i = multi.length - 1; i >= 0; --i) {
++                    this.set(multi[i], css);
++                }
++                return this;
++            }
++
++            // Some selector values can cause IE to hang
++            if (!StyleSheet.isValidSelector(sel)) {
++                YAHOO.log("Invalid selector '"+sel+"' passed to set (ignoring).",'warn','StyleSheet');
++                return this;
++            }
++
++            // Opera throws an error if there's a syntax error in assigned
++            // cssText. Avoid this using a worker style collection, then
++            // assigning the resulting cssText.
++            if (rule) {
++                rule.style.cssText = StyleSheet.toCssText(css,rule.style.cssText);
++            } else {
++                idx = sheet[_rules].length;
++                css = StyleSheet.toCssText(css);
++
++                // IE throws an error when attempting to addRule(sel,'',n)
++                // which would crop up if no, or only invalid values are used
++                if (css) {
++                    _insertRule(sel, css, idx);
++
++                    // Safari replaces the rules collection, but maintains the
++                    // rule instances in the new collection when rules are
++                    // added/removed
++                    cssRules[sel] = sheet[_rules][idx];
++                }
++            }
++            return this;
++        },
++
++        /**
++         * <p>Unset style properties for a provided selector string, removing
++         * their effect from the style cascade.</p>
++         *
++         * <p>If the selector includes commas, it will be split into individual
++         * selectors and applied accordingly.  If there are no properties
++         * remaining in the rule after unsetting, the rule is removed.</p>
++         *
++         * <p>The style property or properties in the second parameter must be the
++         * <p>JavaScript style property names. E.g. fontSize rather than font-size.</p>
++         *
++         * <p>The float style property will be unset by any of &quot;float&quot;,
++         * &quot;styleFloat&quot;, or &quot;cssFloat&quot;.</p>
++         *
++         * @method unset
++         * @param sel {String} the selector string to apply the changes to
++         * @param css {String|Array} style property name or Array of names
++         * @return {StyleSheet} the StyleSheet instance
++         * @chainable
++         */
++        unset : function (sel,css) {
++            var rule = cssRules[sel],
++                multi = sel.split(/\s*,\s*/),
++                remove = !css,
++                rules, i;
++
++            // IE's addRule doesn't support multiple comma delimited selectors
++            // so rules are mapped internally by atomic selectors
++            if (multi.length > 1) {
++                for (i = multi.length - 1; i >= 0; --i) {
++                    this.unset(multi[i], css);
++                }
++                return this;
++            }
++
++            if (rule) {
++                if (!remove) {
++                    if (!lang.isArray(css)) {
++                        css = [css];
++                    }
++
++                    workerStyle.cssText = rule.style.cssText;
++                    for (i = css.length - 1; i >= 0; --i) {
++                        _unsetProperty(workerStyle,css[i]);
++                    }
++
++                    if (workerStyle.cssText) {
++                        rule.style.cssText = workerStyle.cssText;
++                    } else {
++                        remove = true;
++                    }
++                }
++                
++                if (remove) { // remove the rule altogether
++                    rules = sheet[_rules];
++                    for (i = rules.length - 1; i >= 0; --i) {
++                        if (rules[i] === rule) {
++                            delete cssRules[sel];
++                            _deleteRule(i);
++                            break;
++                        }
++                    }
++                }
++            }
++            return this;
++        },
++
++        /**
++         * Get the current cssText for a rule or the entire sheet.  If the
++         * selector param is supplied, only the cssText for that rule will be
++         * returned, if found.  If the selector string targets multiple
++         * selectors separated by commas, the cssText of the first rule only
++         * will be returned.  If no selector string, the stylesheet's full
++         * cssText will be returned.
++         *
++         * @method getCssText
++         * @param sel {String} Selector string
++         * @return {String}
++         */
++        getCssText : function (sel) {
++            var rule,css;
++
++            if (lang.isString(sel)) {
++                // IE's addRule doesn't support multiple comma delimited
++                // selectors so rules are mapped internally by atomic selectors
++                rule = cssRules[sel.split(/\s*,\s*/)[0]];
++
++                return rule ? rule.style.cssText : null;
++            } else {
++                css = [];
++                for (sel in cssRules) {
++                    if (cssRules.hasOwnProperty(sel)) {
++                        rule = cssRules[sel];
++                        css.push(rule.selectorText+" {"+rule.style.cssText+"}");
++                    }
++                }
++                return css.join("\n");
++            }
++        }
++    },true);
++
++}
++
++_toCssText = function (css,base) {
++    var f = css.styleFloat || css.cssFloat || css['float'],
++        prop;
++
++    workerStyle.cssText = base || '';
++
++    if (lang.isString(css)) {
++        // There is a danger here of incremental memory consumption in Opera
++        workerStyle.cssText += ';' + css;
++    } else {
++        if (f && !css[floatAttr]) {
++            css = lang.merge(css);
++            delete css.styleFloat; delete css.cssFloat; delete css['float'];
++            css[floatAttr] = f;
++        }
++
++        for (prop in css) {
++            if (css.hasOwnProperty(prop)) {
++                try {
++                    // IE throws Invalid Value errors and doesn't like whitespace
++                    // in values ala ' red' or 'red '
++                    workerStyle[prop] = lang.trim(css[prop]);
++                }
++                catch (e) {
++                    YAHOO.log('Error assigning property "'+prop+'" to "'+css[prop]+
++                              "\" (ignored):\n"+e.message,'warn','StyleSheet');
++                }
++            }
++        }
++    }
++
++    return workerStyle.cssText;
++};
++
++lang.augmentObject(StyleSheet, {
++    /**
++     * <p>Converts an object literal of style properties and values into a string
++     * of css text.  This can then be assigned to el.style.cssText.</p>
++     *
++     * <p>The optional second parameter is a cssText string representing the
++     * starting state of the style prior to alterations.  This is most often
++     * extracted from the eventual target's current el.style.cssText.</p>
++     *
++     * @method StyleSheet.toCssText
++     * @param css {Object} object literal of style properties and values
++     * @param cssText {String} OPTIONAL starting cssText value
++     * @return {String} the resulting cssText string
++     * @static
++     */
++    toCssText : (('opacity' in workerStyle) ? _toCssText :
++        // Wrap IE's toCssText to catch opacity.  The copy/merge is to preserve
++        // the input object's integrity, but if float and opacity are set, the
++        // input will be copied twice in IE.  Is there a way to avoid this
++        // without increasing the byte count?
++        function (css, cssText) {
++            if (lang.isObject(css) && 'opacity' in css) {
++                css = lang.merge(css,{
++                        filter: 'alpha(opacity='+(css.opacity*100)+')'
++                      });
++                delete css.opacity;
++            }
++            return _toCssText(css,cssText);
++        }),
++
++    /**
++     * Registers a StyleSheet instance in the static registry by the given name
++     *
++     * @method StyleSheet.register
++     * @param name {String} the name to assign the StyleSheet in the registry
++     * @param sheet {StyleSheet} The StyleSheet instance
++     * @return {Boolean} false if no name or sheet is not a StyleSheet
++     *              instance. true otherwise.
++     * @static
++     */
++    register : function (name,sheet) {
++        return !!(name && sheet instanceof StyleSheet &&
++                  !sheets[name] && (sheets[name] = sheet));
++    },
++
++    /**
++     * <p>Determines if a selector string is safe to use.  Used internally
++     * in set to prevent IE from locking up when attempting to add a rule for a
++     * &quot;bad selector&quot;.</p>
++     *
++     * <p>Bad selectors are considered to be any string containing unescaped
++     * `~!@$%^&()+=|{}[];'"?< or space. Also forbidden are . or # followed by
++     * anything other than an alphanumeric.  Additionally -abc or .-abc or
++     * #_abc or '# ' all fail.  There are likely more failure cases, so
++     * please file a bug if you encounter one.</p>
++     *
++     * @method StyleSheet.isValidSelector
++     * @param sel {String} the selector string
++     * @return {Boolean}
++     * @static
++     */
++    isValidSelector : function (sel) {
++        var valid = false;
++
++        if (sel && lang.isString(sel)) {
++
++            if (!selectors.hasOwnProperty(sel)) {
++                // TEST: there should be nothing but white-space left after
++                // these destructive regexs
++                selectors[sel] = !/\S/.test(
++                    // combinators
++                    sel.replace(/\s+|\s*[+~>]\s*/g,' ').
++                    // attribute selectors (contents not validated)
++                    replace(/([^ ])\[.*?\]/g,'$1').
++                    // pseudo-class|element selectors (contents of parens
++                    // such as :nth-of-type(2) or :not(...) not validated)
++                    replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,'$1').
++                    // element tags
++                    replace(/(?:^| )[a-z0-6]+/ig,' ').
++                    // escaped characters
++                    replace(/\\./g,'').
++                    // class and id identifiers
++                    replace(/[.#]\w[\w\-]*/g,''));
++            }
++
++            valid = selectors[sel];
++        }
++
++        return valid;
++    }
++},true);
++
++YAHOO.util.StyleSheet = StyleSheet;
++
++})();
++
++/*
++
++NOTES
++ * Style node must be added to the head element.  Safari does not honor styles
++   applied to StyleSheet objects on style nodes in the body.
++ * StyleSheet object is created on the style node when the style node is added
++   to the head element in Firefox 2 (and maybe 3?)
++ * The cssRules collection is replaced after insertRule/deleteRule calls in
++   Safari 3.1.  Existing Rules are used in the new collection, so the collection
++   cannot be cached, but the rules can be.
++ * Opera requires that the index be passed with insertRule.
++ * Same-domain restrictions prevent modifying StyleSheet objects attached to
++   link elements with remote href (or "about:blank" or "javascript:false")
++ * Same-domain restrictions prevent reading StyleSheet cssRules/rules
++   collection of link elements with remote href (or "about:blank" or
++   "javascript:false")
++ * Same-domain restrictions result in Safari not populating node.sheet property
++   for link elements with remote href (et.al)
++ * IE names StyleSheet related properties and methods differently (see code)
++ * IE converts tag names to upper case in the Rule's selectorText
++ * IE converts empty string assignment to complex properties to value settings
++   for all child properties.  E.g. style.background = '' sets non-'' values on
++   style.backgroundPosition, style.backgroundColor, etc.  All else clear
++   style.background and all child properties.
++ * IE assignment style.filter = '' will result in style.cssText == 'FILTER:'
++ * All browsers support Rule.style.cssText as a read/write property, leaving
++   only opacity needing to be accounted for.
++ * Benchmarks of style.property = value vs style.cssText += 'property: value'
++   indicate cssText is slightly slower for single property assignment.  For
++   multiple property assignment, cssText speed stays relatively the same where
++   style.property speed decreases linearly by the number of properties set.
++   Exception being Opera 9.27, where style.property is always faster than
++   style.cssText.
++ * Opera 9.5b throws a syntax error when assigning cssText with a syntax error.
++ * Opera 9.5 doesn't honor rule.style.cssText = ''.  Previous style persists.
++   You have to remove the rule altogether.
++ * Stylesheet properties set with !important will trump inline style set on an
++   element or in el.style.property.
++ * Creating a worker style collection like document.createElement('p').style;
++   will fail after a time in FF (~5secs of inactivity).  Property assignments
++   will not alter the property or cssText.  It may be the generated node is
++   garbage collected and the style collection becomes inert (speculation).
++ * IE locks up when attempting to add a rule with a selector including at least
++   characters {[]}~`!@%^&*()+=|? (unescaped) and leading _ or -
++   such as addRule('-foo','{ color: red }') or addRule('._abc','{...}')
++ * IE's addRule doesn't support comma separated selectors such as
++   addRule('.foo, .bar','{..}')
++ * IE throws an error on valid values with leading/trailing white space.
++ * When creating an entire sheet at once, only FF2/3 & Opera allow creating a
++   style node, setting its innerHTML and appending to head.
++ * When creating an entire sheet at once, Safari requires the style node to be
++   created with content in innerHTML of another element.
++ * When creating an entire sheet at once, IE requires the style node content to
++   be set via node.styleSheet.cssText
++ * When creating an entire sheet at once in IE, styleSheet.cssText can't be
++   written until node.type = 'text/css'; is performed.
++ * When creating an entire sheet at once in IE, load-time fork on
++   var styleNode = d.createElement('style'); _method = styleNode.styleSheet ?..
++   fails (falsey).  During run-time, the test for .styleSheet works fine
++ * Setting complex properties in cssText will SOMETIMES allow child properties
++   to be unset
++   set         unset              FF2  FF3  S3.1  IE6  IE7  Op9.27  Op9.5
++   ----------  -----------------  ---  ---  ----  ---  ---  ------  -----
++   border      -top               NO   NO   YES   YES  YES  YES     YES
++               -top-color         NO   NO   YES             YES     YES
++               -color             NO   NO   NO              NO      NO
++   background  -color             NO   NO   YES             YES     YES
++               -position          NO   NO   YES             YES     YES
++               -position-x        NO   NO   NO              NO      NO
++   font        line-height        YES  YES  NO    NO   NO   NO      YES
++               -style             YES  YES  NO              YES     YES
++               -size              YES  YES  NO              YES     YES
++               -size-adjust       ???  ???  n/a   n/a  n/a  ???     ???
++   padding     -top               NO   NO   YES             YES     YES
++   margin      -top               NO   NO   YES             YES     YES
++   list-style  -type              YES  YES  YES             YES     YES
++               -position          YES  YES  YES             YES     YES
++   overflow    -x                 NO   NO   YES             n/a     YES
++
++   ??? - unsetting font-size-adjust has the same effect as unsetting font-size
++ * FireFox and WebKit populate rule.cssText as "SELECTOR { CSSTEXT }", but
++   Opera and IE do not.
++ * IE6 and IE7 silently ignore the { and } if passed into addRule('.foo','{
++   color:#000}',0).  IE8 does not and creates an empty rule.
++ * IE6-8 addRule('.foo','',n) throws an error.  Must supply *some* cssText
++*/
++
++YAHOO.register("stylesheet", YAHOO.util.StyleSheet, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/stylesheet/stylesheet-min.js b/pylons_app/public/js/yui/stylesheet/stylesheet-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/stylesheet/stylesheet-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var I=document,B=I.createElement("p"),D=B.style,C=YAHOO.lang,L={},H={},E=0,J=("cssFloat" in D)?"cssFloat":"styleFloat",F,A,K;A=("opacity" in D)?function(M){M.opacity="";}:function(M){M.filter="";};D.border="1px solid red";D.border="";K=D.borderLeft?function(M,O){var N;if(O!==J&&O.toLowerCase().indexOf("float")!=-1){O=J;}if(typeof M[O]==="string"){switch(O){case"opacity":case"filter":A(M);break;case"font":M.font=M.fontStyle=M.fontVariant=M.fontWeight=M.fontSize=M.lineHeight=M.fontFamily="";break;default:for(N in M){if(N.indexOf(O)===0){M[N]="";}}}}}:function(M,N){if(N!==J&&N.toLowerCase().indexOf("float")!=-1){N=J;}if(C.isString(M[N])){if(N==="opacity"){A(M);}else{M[N]="";}}};function G(T,O){var W,R,V,U={},N,X,Q,S,M,P;if(!(this instanceof G)){return new G(T,O);}R=T&&(T.nodeName?T:I.getElementById(T));if(T&&H[T]){return H[T];}else{if(R&&R.yuiSSID&&H[R.yuiSSID]){return H[R.yuiSSID];}}if(!R||!/^(?:style|link)$/i.test(R.nodeName)){R=I.createElement("style");R.type="text/css";}if(C.isString(T)){if(T.indexOf("{")!=-1){if(R.styleSheet){R.styleSheet.cssText=T;}else{R.appendChild(I.createTextNode(T));}}else{if(!O){O=T;}}}if(!R.parentNode||R.parentNode.nodeName.toLowerCase()!=="head"){W=(R.ownerDocument||I).getElementsByTagName("head")[0];W.appendChild(R);}V=R.sheet||R.styleSheet;N=V&&("cssRules" in V)?"cssRules":"rules";Q=("deleteRule" in V)?function(Y){V.deleteRule(Y);}:function(Y){V.removeRule(Y);};X=("insertRule" in V)?function(a,Z,Y){V.insertRule(a+" {"+Z+"}",Y);}:function(a,Z,Y){V.addRule(a,Z,Y);};for(S=V[N].length-1;S>=0;--S){M=V[N][S];P=M.selectorText;if(U[P]){U[P].style.cssText+=";"+M.style.cssText;Q(S);}else{U[P]=M;}}R.yuiSSID="yui-stylesheet-"+(E++);G.register(R.yuiSSID,this);if(O){G.register(O,this);}C.augmentObject(this,{getId:function(){return R.yuiSSID;},node:R,enable:function(){V.disabled=false;return this;},disable:function(){V.disabled=true;return this;},isEnabled:function(){return !V.disabled;},set:function(b,a){var d=U[b],c=b.split(/\s*,\s*/),Z,Y;if(c.length>1){for(Z=c.length-1;Z>=0;--Z){this.set(c[Z],a);}return this;}if(!G.isValidSelector(b)){return this;}if(d){d.style.cssText=G.toCssText(a,d.style.cssText);}else{Y=V[N].length;a=G.toCssText(a);if(a){X(b,a,Y);U[b]=V[N][Y];}}return this;},unset:function(b,a){var d=U[b],c=b.split(/\s*,\s*/),Y=!a,e,Z;if(c.length>1){for(Z=c.length-1;Z>=0;--Z){this.unset(c[Z],a);}return this;}if(d){if(!Y){if(!C.isArray(a)){a=[a];}D.cssText=d.style.cssText;for(Z=a.length-1;Z>=0;--Z){K(D,a[Z]);}if(D.cssText){d.style.cssText=D.cssText;}else{Y=true;}}if(Y){e=V[N];for(Z=e.length-1;Z>=0;--Z){if(e[Z]===d){delete U[b];Q(Z);break;}}}}return this;},getCssText:function(Z){var a,Y;if(C.isString(Z)){a=U[Z.split(/\s*,\s*/)[0]];return a?a.style.cssText:null;}else{Y=[];for(Z in U){if(U.hasOwnProperty(Z)){a=U[Z];Y.push(a.selectorText+" {"+a.style.cssText+"}");}}return Y.join("\n");}}},true);}F=function(M,O){var N=M.styleFloat||M.cssFloat||M["float"],Q;D.cssText=O||"";if(C.isString(M)){D.cssText+=";"+M;}else{if(N&&!M[J]){M=C.merge(M);delete M.styleFloat;delete M.cssFloat;delete M["float"];M[J]=N;}for(Q in M){if(M.hasOwnProperty(Q)){try{D[Q]=C.trim(M[Q]);}catch(P){}}}}return D.cssText;};C.augmentObject(G,{toCssText:(("opacity" in D)?F:function(M,N){if(C.isObject(M)&&"opacity" in M){M=C.merge(M,{filter:"alpha(opacity="+(M.opacity*100)+")"});delete M.opacity;}return F(M,N);}),register:function(M,N){return !!(M&&N instanceof G&&!H[M]&&(H[M]=N));},isValidSelector:function(N){var M=false;if(N&&C.isString(N)){if(!L.hasOwnProperty(N)){L[N]=!/\S/.test(N.replace(/\s+|\s*[+~>]\s*/g," ").replace(/([^ ])\[.*?\]/g,"$1").replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,"$1").replace(/(?:^| )[a-z0-6]+/ig," ").replace(/\\./g,"").replace(/[.#]\w[\w\-]*/g,""));}M=L[N];}return M;}},true);YAHOO.util.StyleSheet=G;})();YAHOO.register("stylesheet",YAHOO.util.StyleSheet,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/stylesheet/stylesheet.js b/pylons_app/public/js/yui/stylesheet/stylesheet.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/stylesheet/stylesheet.js
+@@ -0,0 +1,645 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The StyleSheet component is a utility for managing css rules at the
++ * stylesheet level
++ *
++ * @module stylesheet
++ * @namespace YAHOO.util
++ * @requires yahoo
++ * @beta
++ */
++(function () {
++
++var d      = document,
++    p      = d.createElement('p'), // Have to hold the node (see notes)
++    workerStyle = p.style, // worker style collection
++    lang   = YAHOO.lang,
++    selectors = {},
++    sheets = {},
++    ssId   = 0,
++    floatAttr = ('cssFloat' in workerStyle) ? 'cssFloat' : 'styleFloat',
++    _toCssText,
++    _unsetOpacity,
++    _unsetProperty;
++
++/*
++ * Normalizes the removal of an assigned style for opacity.  IE uses the filter property.
++ */
++_unsetOpacity = ('opacity' in workerStyle) ?
++    function (style) { style.opacity = ''; } :
++    function (style) { style.filter = ''; };
++        
++/*
++ * Normalizes the removal of an assigned style for a given property.  Expands
++ * shortcut properties if necessary and handles the various names for the float property.
++ */
++workerStyle.border = "1px solid red";
++workerStyle.border = ''; // IE doesn't unset child properties
++_unsetProperty = workerStyle.borderLeft ?
++    function (style,prop) {
++        var p;
++        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
++            prop = floatAttr;
++        }
++        if (typeof style[prop] === 'string') {
++            switch (prop) {
++                case 'opacity':
++                case 'filter' : _unsetOpacity(style); break;
++                case 'font'   :
++                    style.font       = style.fontStyle = style.fontVariant =
++                    style.fontWeight = style.fontSize  = style.lineHeight  =
++                    style.fontFamily = '';
++                    break;
++                default       :
++                    for (p in style) {
++                        if (p.indexOf(prop) === 0) {
++                            style[p] = '';
++                        }
++                    }
++            }
++        }
++    } :
++    function (style,prop) {
++        if (prop !== floatAttr && prop.toLowerCase().indexOf('float') != -1) {
++            prop = floatAttr;
++        }
++        if (lang.isString(style[prop])) {
++            if (prop === 'opacity') {
++                _unsetOpacity(style);
++            } else {
++                style[prop] = '';
++            }
++        }
++    };
++    
++/**
++ * Create an instance of YAHOO.util.StyleSheet to encapsulate a css stylesheet.
++ * The constructor can be called using function or constructor syntax.
++ * <pre><code>var sheet = YAHOO.util.StyleSheet(..);</pre></code>
++ * or
++ * <pre><code>var sheet = new YAHOO.util.StyleSheet(..);</pre></code>
++ *
++ * The first parameter passed can be any of the following things:
++ * <ul>
++ *   <li>The desired string name to register a new empty sheet</li>
++ *   <li>The string name of an existing YAHOO.util.StyleSheet instance</li>
++ *   <li>The unique yuiSSID generated for an existing YAHOO.util.StyleSheet instance</li>
++ *   <li>The id of an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
++ *   <li>The node reference for an existing <code>&lt;link&gt;</code> or <code>&lt;style&gt;</code> node</li>
++ *   <li>A chunk of css text to create a new stylesheet from</li>
++ * </ul>
++ *
++ * <p>If a string is passed, StyleSheet will first look in its static name
++ * registry for an existing sheet, then in the DOM for an element with that id.
++ * If neither are found and the string contains the { character, it will be
++ * used as a the initial cssText for a new StyleSheet.  Otherwise, a new empty
++ * StyleSheet is created, assigned the string value as a name, and registered
++ * statically by that name.</p>
++ *
++ * <p>The optional second parameter is a string name to register the sheet as.
++ * This param is largely useful when providing a node id/ref or chunk of css
++ * text to create a populated instance.</p>
++ * 
++ * @class StyleSheet
++ * @constructor
++ * @param seed {String|HTMLElement} a style or link node, its id, or a name or
++ *              yuiSSID of a StyleSheet, or a string of css text (see above)
++ * @param name {String} OPTIONAL name to register instance for future static
++ *              access
++ */
++function StyleSheet(seed, name) {
++    var head,
++        node,
++        sheet,
++        cssRules = {},
++        _rules,
++        _insertRule,
++        _deleteRule,
++        i,r,sel;
++
++    // Factory or constructor
++    if (!(this instanceof StyleSheet)) {
++        return new StyleSheet(seed,name);
++    }
++
++    // capture the DOM node if the string is an id
++    node = seed && (seed.nodeName ? seed : d.getElementById(seed));
++
++    // Check for the StyleSheet in the static registry
++    if (seed && sheets[seed]) {
++        return sheets[seed];
++    } else if (node && node.yuiSSID && sheets[node.yuiSSID]) {
++        return sheets[node.yuiSSID];
++    }
++
++    // Create a style node if necessary
++    if (!node || !/^(?:style|link)$/i.test(node.nodeName)) {
++        node = d.createElement('style');
++        node.type = 'text/css';
++    }
++
++    if (lang.isString(seed)) {
++        // Create entire sheet from seed cssText
++        if (seed.indexOf('{') != -1) {
++            // Not a load-time fork because low run-time impact and IE fails
++            // test for s.styleSheet at page load time (oddly)
++            if (node.styleSheet) {
++                node.styleSheet.cssText = seed;
++            } else {
++                node.appendChild(d.createTextNode(seed));
++            }
++        } else if (!name) {
++            name = seed;
++        }
++    }
++
++    if (!node.parentNode || node.parentNode.nodeName.toLowerCase() !== 'head') {
++        head = (node.ownerDocument || d).getElementsByTagName('head')[0];
++        // styleSheet isn't available on the style node in FF2 until appended
++        // to the head element.  style nodes appended to body do not affect
++        // change in Safari.
++        head.appendChild(node);
++    }
++
++    // Begin setting up private aliases to the important moving parts
++    // 1. The stylesheet object
++    // IE stores StyleSheet under the "styleSheet" property
++    // Safari doesn't populate sheet for xdomain link elements
++    sheet = node.sheet || node.styleSheet;
++
++    // 2. The style rules collection
++    // IE stores the rules collection under the "rules" property
++    _rules = sheet && ('cssRules' in sheet) ? 'cssRules' : 'rules';
++
++    // 3. The method to remove a rule from the stylesheet
++    // IE supports removeRule
++    _deleteRule = ('deleteRule' in sheet) ?
++        function (i) { sheet.deleteRule(i); } :
++        function (i) { sheet.removeRule(i); };
++
++    // 4. The method to add a new rule to the stylesheet
++    // IE supports addRule with different signature
++    _insertRule = ('insertRule' in sheet) ?
++        function (sel,css,i) { sheet.insertRule(sel+' {'+css+'}',i); } :
++        function (sel,css,i) { sheet.addRule(sel,css,i); };
++
++    // 5. Initialize the cssRules map from the node
++    // xdomain link nodes forbid access to the cssRules collection, so this
++    // will throw an error.
++    // TODO: research alternate stylesheet, @media
++    for (i = sheet[_rules].length - 1; i >= 0; --i) {
++        r   = sheet[_rules][i];
++        sel = r.selectorText;
++
++        if (cssRules[sel]) {
++            cssRules[sel].style.cssText += ';' + r.style.cssText;
++            _deleteRule(i);
++        } else {
++            cssRules[sel] = r;
++        }
++    }
++
++    // Cache the instance by the generated Id
++    node.yuiSSID = 'yui-stylesheet-' + (ssId++);
++    StyleSheet.register(node.yuiSSID,this);
++
++    // Register the instance by name if provided or defaulted from seed
++    if (name) {
++        StyleSheet.register(name,this);
++    }
++
++    // Public API
++    lang.augmentObject(this,{
++        /**
++         * Get the unique yuiSSID for this StyleSheet instance
++         *
++         * @method getId
++         * @return {Number} the static id
++         */
++        getId : function () { return node.yuiSSID; },
++
++        /**
++         * The HTMLElement that this instance encapsulates
++         *
++         * @property node
++         * @type HTMLElement
++         */
++        node : node,
++
++        /**
++         * Enable all the rules in the sheet
++         *
++         * @method enable
++         * @return {StyleSheet} the instance
++         * @chainable
++         */
++        // Enabling/disabling the stylesheet.  Changes may be made to rules
++        // while disabled.
++        enable : function () { sheet.disabled = false; return this; },
++
++        /**
++         * Disable all the rules in the sheet.  Rules may be changed while the
++         * StyleSheet is disabled.
++         *
++         * @method disable
++         * @return {StyleSheet} the instance
++         * @chainable
++         */
++        disable : function () { sheet.disabled = true; return this; },
++
++        /**
++         * Returns boolean indicating whether the StyleSheet is enabled
++         *
++         * @method isEnabled
++         * @return {Boolean} is it enabled?
++         */
++        isEnabled : function () { return !sheet.disabled; },
++
++        /**
++         * <p>Set style properties for a provided selector string.
++         * If the selector includes commas, it will be split into individual
++         * selectors and applied accordingly.  If the selector string does not
++         * have a corresponding rule in the sheet, it will be added.</p>
++         *
++         * <p>The second parameter can be either a string of CSS text,
++         * formatted as CSS ("font-size: 10px;"), or an object collection of
++         * properties and their new values.  Object properties must be in
++         * JavaScript format ({ fontSize: "10px" }).</p>
++         *
++         * <p>The float style property will be set by any of &quot;float&quot;,
++         * &quot;styleFloat&quot;, or &quot;cssFloat&quot; if passed in the
++         * object map.  Use "float: left;" format when passing a CSS text
++         * string.</p>
++         *
++         * @method set
++         * @param sel {String} the selector string to apply the changes to
++         * @param css {Object|String} Object literal of style properties and
++         *                      new values, or a string of cssText
++         * @return {StyleSheet} the StyleSheet instance
++         * @chainable
++         */
++        set : function (sel,css) {
++            var rule = cssRules[sel],
++                multi = sel.split(/\s*,\s*/),i,
++                idx;
++
++            // IE's addRule doesn't support multiple comma delimited selectors
++            if (multi.length > 1) {
++                for (i = multi.length - 1; i >= 0; --i) {
++                    this.set(multi[i], css);
++                }
++                return this;
++            }
++
++            // Some selector values can cause IE to hang
++            if (!StyleSheet.isValidSelector(sel)) {
++                return this;
++            }
++
++            // Opera throws an error if there's a syntax error in assigned
++            // cssText. Avoid this using a worker style collection, then
++            // assigning the resulting cssText.
++            if (rule) {
++                rule.style.cssText = StyleSheet.toCssText(css,rule.style.cssText);
++            } else {
++                idx = sheet[_rules].length;
++                css = StyleSheet.toCssText(css);
++
++                // IE throws an error when attempting to addRule(sel,'',n)
++                // which would crop up if no, or only invalid values are used
++                if (css) {
++                    _insertRule(sel, css, idx);
++
++                    // Safari replaces the rules collection, but maintains the
++                    // rule instances in the new collection when rules are
++                    // added/removed
++                    cssRules[sel] = sheet[_rules][idx];
++                }
++            }
++            return this;
++        },
++
++        /**
++         * <p>Unset style properties for a provided selector string, removing
++         * their effect from the style cascade.</p>
++         *
++         * <p>If the selector includes commas, it will be split into individual
++         * selectors and applied accordingly.  If there are no properties
++         * remaining in the rule after unsetting, the rule is removed.</p>
++         *
++         * <p>The style property or properties in the second parameter must be the
++         * <p>JavaScript style property names. E.g. fontSize rather than font-size.</p>
++         *
++         * <p>The float style property will be unset by any of &quot;float&quot;,
++         * &quot;styleFloat&quot;, or &quot;cssFloat&quot;.</p>
++         *
++         * @method unset
++         * @param sel {String} the selector string to apply the changes to
++         * @param css {String|Array} style property name or Array of names
++         * @return {StyleSheet} the StyleSheet instance
++         * @chainable
++         */
++        unset : function (sel,css) {
++            var rule = cssRules[sel],
++                multi = sel.split(/\s*,\s*/),
++                remove = !css,
++                rules, i;
++
++            // IE's addRule doesn't support multiple comma delimited selectors
++            // so rules are mapped internally by atomic selectors
++            if (multi.length > 1) {
++                for (i = multi.length - 1; i >= 0; --i) {
++                    this.unset(multi[i], css);
++                }
++                return this;
++            }
++
++            if (rule) {
++                if (!remove) {
++                    if (!lang.isArray(css)) {
++                        css = [css];
++                    }
++
++                    workerStyle.cssText = rule.style.cssText;
++                    for (i = css.length - 1; i >= 0; --i) {
++                        _unsetProperty(workerStyle,css[i]);
++                    }
++
++                    if (workerStyle.cssText) {
++                        rule.style.cssText = workerStyle.cssText;
++                    } else {
++                        remove = true;
++                    }
++                }
++                
++                if (remove) { // remove the rule altogether
++                    rules = sheet[_rules];
++                    for (i = rules.length - 1; i >= 0; --i) {
++                        if (rules[i] === rule) {
++                            delete cssRules[sel];
++                            _deleteRule(i);
++                            break;
++                        }
++                    }
++                }
++            }
++            return this;
++        },
++
++        /**
++         * Get the current cssText for a rule or the entire sheet.  If the
++         * selector param is supplied, only the cssText for that rule will be
++         * returned, if found.  If the selector string targets multiple
++         * selectors separated by commas, the cssText of the first rule only
++         * will be returned.  If no selector string, the stylesheet's full
++         * cssText will be returned.
++         *
++         * @method getCssText
++         * @param sel {String} Selector string
++         * @return {String}
++         */
++        getCssText : function (sel) {
++            var rule,css;
++
++            if (lang.isString(sel)) {
++                // IE's addRule doesn't support multiple comma delimited
++                // selectors so rules are mapped internally by atomic selectors
++                rule = cssRules[sel.split(/\s*,\s*/)[0]];
++
++                return rule ? rule.style.cssText : null;
++            } else {
++                css = [];
++                for (sel in cssRules) {
++                    if (cssRules.hasOwnProperty(sel)) {
++                        rule = cssRules[sel];
++                        css.push(rule.selectorText+" {"+rule.style.cssText+"}");
++                    }
++                }
++                return css.join("\n");
++            }
++        }
++    },true);
++
++}
++
++_toCssText = function (css,base) {
++    var f = css.styleFloat || css.cssFloat || css['float'],
++        prop;
++
++    workerStyle.cssText = base || '';
++
++    if (lang.isString(css)) {
++        // There is a danger here of incremental memory consumption in Opera
++        workerStyle.cssText += ';' + css;
++    } else {
++        if (f && !css[floatAttr]) {
++            css = lang.merge(css);
++            delete css.styleFloat; delete css.cssFloat; delete css['float'];
++            css[floatAttr] = f;
++        }
++
++        for (prop in css) {
++            if (css.hasOwnProperty(prop)) {
++                try {
++                    // IE throws Invalid Value errors and doesn't like whitespace
++                    // in values ala ' red' or 'red '
++                    workerStyle[prop] = lang.trim(css[prop]);
++                }
++                catch (e) {
++                }
++            }
++        }
++    }
++
++    return workerStyle.cssText;
++};
++
++lang.augmentObject(StyleSheet, {
++    /**
++     * <p>Converts an object literal of style properties and values into a string
++     * of css text.  This can then be assigned to el.style.cssText.</p>
++     *
++     * <p>The optional second parameter is a cssText string representing the
++     * starting state of the style prior to alterations.  This is most often
++     * extracted from the eventual target's current el.style.cssText.</p>
++     *
++     * @method StyleSheet.toCssText
++     * @param css {Object} object literal of style properties and values
++     * @param cssText {String} OPTIONAL starting cssText value
++     * @return {String} the resulting cssText string
++     * @static
++     */
++    toCssText : (('opacity' in workerStyle) ? _toCssText :
++        // Wrap IE's toCssText to catch opacity.  The copy/merge is to preserve
++        // the input object's integrity, but if float and opacity are set, the
++        // input will be copied twice in IE.  Is there a way to avoid this
++        // without increasing the byte count?
++        function (css, cssText) {
++            if (lang.isObject(css) && 'opacity' in css) {
++                css = lang.merge(css,{
++                        filter: 'alpha(opacity='+(css.opacity*100)+')'
++                      });
++                delete css.opacity;
++            }
++            return _toCssText(css,cssText);
++        }),
++
++    /**
++     * Registers a StyleSheet instance in the static registry by the given name
++     *
++     * @method StyleSheet.register
++     * @param name {String} the name to assign the StyleSheet in the registry
++     * @param sheet {StyleSheet} The StyleSheet instance
++     * @return {Boolean} false if no name or sheet is not a StyleSheet
++     *              instance. true otherwise.
++     * @static
++     */
++    register : function (name,sheet) {
++        return !!(name && sheet instanceof StyleSheet &&
++                  !sheets[name] && (sheets[name] = sheet));
++    },
++
++    /**
++     * <p>Determines if a selector string is safe to use.  Used internally
++     * in set to prevent IE from locking up when attempting to add a rule for a
++     * &quot;bad selector&quot;.</p>
++     *
++     * <p>Bad selectors are considered to be any string containing unescaped
++     * `~!@$%^&()+=|{}[];'"?< or space. Also forbidden are . or # followed by
++     * anything other than an alphanumeric.  Additionally -abc or .-abc or
++     * #_abc or '# ' all fail.  There are likely more failure cases, so
++     * please file a bug if you encounter one.</p>
++     *
++     * @method StyleSheet.isValidSelector
++     * @param sel {String} the selector string
++     * @return {Boolean}
++     * @static
++     */
++    isValidSelector : function (sel) {
++        var valid = false;
++
++        if (sel && lang.isString(sel)) {
++
++            if (!selectors.hasOwnProperty(sel)) {
++                // TEST: there should be nothing but white-space left after
++                // these destructive regexs
++                selectors[sel] = !/\S/.test(
++                    // combinators
++                    sel.replace(/\s+|\s*[+~>]\s*/g,' ').
++                    // attribute selectors (contents not validated)
++                    replace(/([^ ])\[.*?\]/g,'$1').
++                    // pseudo-class|element selectors (contents of parens
++                    // such as :nth-of-type(2) or :not(...) not validated)
++                    replace(/([^ ])::?[a-z][a-z\-]+[a-z](?:\(.*?\))?/ig,'$1').
++                    // element tags
++                    replace(/(?:^| )[a-z0-6]+/ig,' ').
++                    // escaped characters
++                    replace(/\\./g,'').
++                    // class and id identifiers
++                    replace(/[.#]\w[\w\-]*/g,''));
++            }
++
++            valid = selectors[sel];
++        }
++
++        return valid;
++    }
++},true);
++
++YAHOO.util.StyleSheet = StyleSheet;
++
++})();
++
++/*
++
++NOTES
++ * Style node must be added to the head element.  Safari does not honor styles
++   applied to StyleSheet objects on style nodes in the body.
++ * StyleSheet object is created on the style node when the style node is added
++   to the head element in Firefox 2 (and maybe 3?)
++ * The cssRules collection is replaced after insertRule/deleteRule calls in
++   Safari 3.1.  Existing Rules are used in the new collection, so the collection
++   cannot be cached, but the rules can be.
++ * Opera requires that the index be passed with insertRule.
++ * Same-domain restrictions prevent modifying StyleSheet objects attached to
++   link elements with remote href (or "about:blank" or "javascript:false")
++ * Same-domain restrictions prevent reading StyleSheet cssRules/rules
++   collection of link elements with remote href (or "about:blank" or
++   "javascript:false")
++ * Same-domain restrictions result in Safari not populating node.sheet property
++   for link elements with remote href (et.al)
++ * IE names StyleSheet related properties and methods differently (see code)
++ * IE converts tag names to upper case in the Rule's selectorText
++ * IE converts empty string assignment to complex properties to value settings
++   for all child properties.  E.g. style.background = '' sets non-'' values on
++   style.backgroundPosition, style.backgroundColor, etc.  All else clear
++   style.background and all child properties.
++ * IE assignment style.filter = '' will result in style.cssText == 'FILTER:'
++ * All browsers support Rule.style.cssText as a read/write property, leaving
++   only opacity needing to be accounted for.
++ * Benchmarks of style.property = value vs style.cssText += 'property: value'
++   indicate cssText is slightly slower for single property assignment.  For
++   multiple property assignment, cssText speed stays relatively the same where
++   style.property speed decreases linearly by the number of properties set.
++   Exception being Opera 9.27, where style.property is always faster than
++   style.cssText.
++ * Opera 9.5b throws a syntax error when assigning cssText with a syntax error.
++ * Opera 9.5 doesn't honor rule.style.cssText = ''.  Previous style persists.
++   You have to remove the rule altogether.
++ * Stylesheet properties set with !important will trump inline style set on an
++   element or in el.style.property.
++ * Creating a worker style collection like document.createElement('p').style;
++   will fail after a time in FF (~5secs of inactivity).  Property assignments
++   will not alter the property or cssText.  It may be the generated node is
++   garbage collected and the style collection becomes inert (speculation).
++ * IE locks up when attempting to add a rule with a selector including at least
++   characters {[]}~`!@%^&*()+=|? (unescaped) and leading _ or -
++   such as addRule('-foo','{ color: red }') or addRule('._abc','{...}')
++ * IE's addRule doesn't support comma separated selectors such as
++   addRule('.foo, .bar','{..}')
++ * IE throws an error on valid values with leading/trailing white space.
++ * When creating an entire sheet at once, only FF2/3 & Opera allow creating a
++   style node, setting its innerHTML and appending to head.
++ * When creating an entire sheet at once, Safari requires the style node to be
++   created with content in innerHTML of another element.
++ * When creating an entire sheet at once, IE requires the style node content to
++   be set via node.styleSheet.cssText
++ * When creating an entire sheet at once in IE, styleSheet.cssText can't be
++   written until node.type = 'text/css'; is performed.
++ * When creating an entire sheet at once in IE, load-time fork on
++   var styleNode = d.createElement('style'); _method = styleNode.styleSheet ?..
++   fails (falsey).  During run-time, the test for .styleSheet works fine
++ * Setting complex properties in cssText will SOMETIMES allow child properties
++   to be unset
++   set         unset              FF2  FF3  S3.1  IE6  IE7  Op9.27  Op9.5
++   ----------  -----------------  ---  ---  ----  ---  ---  ------  -----
++   border      -top               NO   NO   YES   YES  YES  YES     YES
++               -top-color         NO   NO   YES             YES     YES
++               -color             NO   NO   NO              NO      NO
++   background  -color             NO   NO   YES             YES     YES
++               -position          NO   NO   YES             YES     YES
++               -position-x        NO   NO   NO              NO      NO
++   font        line-height        YES  YES  NO    NO   NO   NO      YES
++               -style             YES  YES  NO              YES     YES
++               -size              YES  YES  NO              YES     YES
++               -size-adjust       ???  ???  n/a   n/a  n/a  ???     ???
++   padding     -top               NO   NO   YES             YES     YES
++   margin      -top               NO   NO   YES             YES     YES
++   list-style  -type              YES  YES  YES             YES     YES
++               -position          YES  YES  YES             YES     YES
++   overflow    -x                 NO   NO   YES             n/a     YES
++
++   ??? - unsetting font-size-adjust has the same effect as unsetting font-size
++ * FireFox and WebKit populate rule.cssText as "SELECTOR { CSSTEXT }", but
++   Opera and IE do not.
++ * IE6 and IE7 silently ignore the { and } if passed into addRule('.foo','{
++   color:#000}',0).  IE8 does not and creates an empty rule.
++ * IE6-8 addRule('.foo','',n) throws an error.  Must supply *some* cssText
++*/
++
++YAHOO.register("stylesheet", YAHOO.util.StyleSheet, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swf/swf-debug.js b/pylons_app/public/js/yui/swf/swf-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swf/swf-debug.js
+@@ -0,0 +1,269 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("widget");
++
++(function () {
++	
++	var version = 0;
++	var UA = YAHOO.env.ua;
++	var sF = "ShockwaveFlash";
++
++	 	if (UA.gecko || UA.webkit || UA.opera) {
++			   if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
++			      if ((eP = mF.enabledPlugin)) {
++					 var vS = [];
++			         vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
++			        version = vS[0] + '.';
++					switch((vS[2].toString()).length)
++					{
++						case 1:
++						version += "00";
++						break;
++						case 2: 
++						version += "0";
++						break;
++					}
++			 		version +=  vS[2];
++					version = parseFloat(version);
++			      }
++			   }
++			}
++			else if(UA.ie) {
++			    try
++			    {
++			        var ax6 = new ActiveXObject(sF + "." + sF + ".6");
++			        ax6.AllowScriptAccess = "always";
++			    }
++			    catch(e)
++			    {
++			        if(ax6 != null)
++			        {
++			            version = 6.0;
++			        }
++			    }
++			    if (version == 0) {
++			    try
++			    {
++			        var ax  = new ActiveXObject(sF + "." + sF);
++			       	var vS = [];
++			        vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
++			        version = vS[0] + '.';
++					switch((vS[2].toString()).length)
++					{
++						case 1:
++						version += "00";
++						break;
++						case 2: 
++						version += "0";
++						break;
++					}
++			 		version +=  vS[2];
++					version = parseFloat(version);
++
++			    } catch (e) {}
++			    }
++			}
++
++			UA.flash = version;
++
++	YAHOO.util.SWFDetect = {		
++			getFlashVersion : function () {
++				return version;
++			},
++
++			isFlashVersionAtLeast : function (ver) {
++				return version >= ver;
++			}	
++		};	
++	
++	var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        SWFDetect = YAHOO.util.SWFDetect,
++        Lang = YAHOO.lang,
++
++		// private
++		FLASH_CID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",
++		FLASH_TYPE = "application/x-shockwave-flash",
++		FLASH_VER = "10.22",
++		EXPRESS_INSTALL_URL = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(),
++		EVENT_HANDLER = "YAHOO.widget.SWF.eventHandler",
++		possibleAttributes = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
++		
++		/**
++		 * The SWF utility is a tool for embedding Flash applications in HTMl pages.
++		 * @module swf
++		 * @title SWF Utility
++		 * @requires yahoo, dom, event
++		 * @namespace YAHOO.widget
++		 */
++
++		/**
++		 * Creates the SWF instance and keeps the configuration data
++		 *
++		 * @class SWF
++		 * @extends YAHOO.util.Element
++		 * @constructor
++		 * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.  
++		 *        The width and height of the SWF will be set to the width and height of this container element.
++		 * @param {String} swfURL The URL of the SWF to be embedded into the page.
++		 * @param {Object} p_oAttributes (optional) Configuration parameters for the Flash application and values for Flashvars
++		 *        to be passed to the SWF.
++		 */
++				
++YAHOO.widget.SWF = function (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
++	
++	this._queue = this._queue || [];
++	this._events = this._events || {};
++	this._configs = this._configs || {};
++	
++	/**
++     * The DOM id of this instance of the element. Automatically generated.
++     * @property _id
++     * @type String
++     */
++	this._id = Dom.generateId(null, "yuiswf");
++	
++	if(p_oAttributes.host) this._host = p_oAttributes.host;
++	
++	var _id = this._id;
++    var oElement = Dom.get(p_oElement);
++	var flashVersion = (p_oAttributes["version"] || FLASH_VER);
++	var isFlashVersionRight = SWFDetect.isFlashVersionAtLeast(flashVersion);
++	var canExpressInstall = (UA.flash >= 8.0);
++	var shouldExpressInstall = canExpressInstall && !isFlashVersionRight && p_oAttributes["useExpressInstall"];
++	var flashURL = (shouldExpressInstall)?EXPRESS_INSTALL_URL:swfURL;
++	var objstring = '<object ';
++	var w, h;
++	var flashvarstring = "YUISwfId=" + _id + "&YUIBridgeCallback=" + EVENT_HANDLER;
++	
++	YAHOO.widget.SWF._instances[_id] = this;
++
++    if (oElement && (isFlashVersionRight || shouldExpressInstall) && flashURL) {
++				objstring += 'id="' + _id + '" '; 
++				if (UA.ie) {
++					objstring += 'classid="' + FLASH_CID + '" '
++				}
++				else {
++					objstring += 'type="' + FLASH_TYPE + '" data="' + flashURL + '" ';
++				}
++				
++                w = "100%";
++				h = "100%";
++				
++				objstring += 'width="' + w + '" height="' + h + '">';
++				
++				if (UA.ie) {
++					objstring += '<param name="movie" value="' + flashURL + '"/>';
++				}
++				
++				for (var attribute in p_oAttributes.fixedAttributes) {
++					if (possibleAttributes.hasOwnProperty(attribute)) {
++						objstring += '<param name="' + attribute + '" value="' + p_oAttributes.fixedAttributes[attribute] + '"/>';
++					}
++				}
++
++				for (var flashvar in p_oAttributes.flashVars) {
++					var fvar = p_oAttributes.flashVars[flashvar];
++					if (Lang.isString(fvar)) {
++						flashvarstring += "&" + flashvar + "=" + encodeURIComponent(fvar);
++					}
++				}
++				
++				if (flashvarstring) {
++					objstring += '<param name="flashVars" value="' + flashvarstring + '"/>';
++				}
++				
++				objstring += "</object>"; 
++
++				oElement.innerHTML = objstring;
++			}
++			
++			YAHOO.widget.SWF.superclass.constructor.call(this, Dom.get(_id));
++			this._swf = Dom.get(_id);	
++};
++
++/**
++ * The static collection of all instances of the SWFs on the page.
++ * @property _instances
++ * @private
++ * @type Object
++ */
++
++YAHOO.widget.SWF._instances = YAHOO.widget.SWF._instances || {};
++
++/**
++ * Handles an event coming from within the SWF and delegate it
++ * to a specific instance of SWF.
++ * @method eventHandler
++ * @param swfid {String} the id of the SWF dispatching the event
++ * @param event {Object} the event being transmitted.
++ * @private
++ */
++YAHOO.widget.SWF.eventHandler = function (swfid, event) {
++	YAHOO.widget.SWF._instances[swfid]._eventHandler(event);
++};
++
++YAHOO.extend(YAHOO.widget.SWF, YAHOO.util.Element, {
++	_eventHandler: function(event)
++	{
++		if (event.type == "swfReady") 
++		{
++			this.createEvent("swfReady", {fireOnce:true});
++	     	this.fireEvent("swfReady", event);
++        }
++		else if(event.type == "log")
++		{
++			YAHOO.log(event.message, event.category, this._host ? this._host.toString() : this.toString());
++		}
++        else 
++		{
++	    	if(this._host && this._host.fireEvent) 
++			{
++				this._host.fireEvent(event.type, event);
++			}
++			else
++			{
++				this.fireEvent(event.type, event);
++			}
++        } 
++	},
++		
++	/**
++	 * Calls a specific function exposed by the SWF's
++	 * ExternalInterface.
++	 * @method callSWF
++	 * @param func {String} the name of the function to call
++	 * @param args {Object} the set of arguments to pass to the function.
++	 */
++	callSWF: function (func, args)
++	{
++		if (!args) { 
++			  args= []; 
++		};
++		
++		if (this._swf[func]) {
++		return(this._swf[func].apply(this._swf, args));
++	    } else {
++		return null;
++	    }
++	},
++	
++	/**
++	 * Public accessor to the unique name of the SWF instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the SWF instance.
++	 */
++	toString: function()
++	{
++		return "SWF " + this._id;
++	}
++});
++
++	
++})();
++YAHOO.register("swf", YAHOO.widget.SWF, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swf/swf-min.js b/pylons_app/public/js/yui/swf/swf-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swf/swf-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("widget");(function(){var M=0;var L=YAHOO.env.ua;var P="ShockwaveFlash";if(L.gecko||L.webkit||L.opera){if((mF=navigator.mimeTypes["application/x-shockwave-flash"])){if((eP=mF.enabledPlugin)){var F=[];F=eP.description.replace(/\s[rd]/g,".").replace(/[A-Za-z\s]+/g,"").split(".");M=F[0]+".";switch((F[2].toString()).length){case 1:M+="00";break;case 2:M+="0";break;}M+=F[2];M=parseFloat(M);}}}else{if(L.ie){try{var Q=new ActiveXObject(P+"."+P+".6");Q.AllowScriptAccess="always";}catch(K){if(Q!=null){M=6;}}if(M==0){try{var B=new ActiveXObject(P+"."+P);var F=[];F=B.GetVariable("$version").replace(/[A-Za-z\s]+/g,"").split(",");M=F[0]+".";switch((F[2].toString()).length){case 1:M+="00";break;case 2:M+="0";break;}M+=F[2];M=parseFloat(M);}catch(K){}}}}L.flash=M;YAHOO.util.SWFDetect={getFlashVersion:function(){return M;},isFlashVersionAtLeast:function(R){return M>=R;}};var H=YAHOO.util.Dom,O=YAHOO.util.Event,I=YAHOO.util.SWFDetect,J=YAHOO.lang,G="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",E="application/x-shockwave-flash",D="10.22",A="http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?"+Math.random(),C="YAHOO.widget.SWF.eventHandler",N={align:"",allowNetworking:"",allowScriptAccess:"",base:"",bgcolor:"",menu:"",name:"",quality:"",salign:"",scale:"",tabindex:"",wmode:""};YAHOO.widget.SWF=function(R,i,c){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._id=H.generateId(null,"yuiswf");if(c.host){this._host=c.host;}var e=this._id;var U=H.get(R);var S=(c["version"]||D);var b=I.isFlashVersionAtLeast(S);var a=(L.flash>=8);var V=a&&!b&&c["useExpressInstall"];var Z=(V)?A:i;var Y="<object ";var f,X;var g="YUISwfId="+e+"&YUIBridgeCallback="+C;YAHOO.widget.SWF._instances[e]=this;if(U&&(b||V)&&Z){Y+='id="'+e+'" ';if(L.ie){Y+='classid="'+G+'" ';}else{Y+='type="'+E+'" data="'+Z+'" ';}f="100%";X="100%";Y+='width="'+f+'" height="'+X+'">';if(L.ie){Y+='<param name="movie" value="'+Z+'"/>';}for(var T in c.fixedAttributes){if(N.hasOwnProperty(T)){Y+='<param name="'+T+'" value="'+c.fixedAttributes[T]+'"/>';}}for(var d in c.flashVars){var W=c.flashVars[d];if(J.isString(W)){g+="&"+d+"="+encodeURIComponent(W);}}if(g){Y+='<param name="flashVars" value="'+g+'"/>';}Y+="</object>";U.innerHTML=Y;}YAHOO.widget.SWF.superclass.constructor.call(this,H.get(e));this._swf=H.get(e);};YAHOO.widget.SWF._instances=YAHOO.widget.SWF._instances||{};YAHOO.widget.SWF.eventHandler=function(R,S){YAHOO.widget.SWF._instances[R]._eventHandler(S);};YAHOO.extend(YAHOO.widget.SWF,YAHOO.util.Element,{_eventHandler:function(R){if(R.type=="swfReady"){this.createEvent("swfReady",{fireOnce:true});this.fireEvent("swfReady",R);}else{if(R.type=="log"){}else{if(this._host&&this._host.fireEvent){this._host.fireEvent(R.type,R);}else{this.fireEvent(R.type,R);}}}},callSWF:function(S,R){if(!R){R=[];}if(this._swf[S]){return(this._swf[S].apply(this._swf,R));}else{return null;}},toString:function(){return"SWF "+this._id;}});})();YAHOO.register("swf",YAHOO.widget.SWF,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/swf/swf.js b/pylons_app/public/js/yui/swf/swf.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swf/swf.js
+@@ -0,0 +1,268 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("widget");
++
++(function () {
++	
++	var version = 0;
++	var UA = YAHOO.env.ua;
++	var sF = "ShockwaveFlash";
++
++	 	if (UA.gecko || UA.webkit || UA.opera) {
++			   if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
++			      if ((eP = mF.enabledPlugin)) {
++					 var vS = [];
++			         vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
++			        version = vS[0] + '.';
++					switch((vS[2].toString()).length)
++					{
++						case 1:
++						version += "00";
++						break;
++						case 2: 
++						version += "0";
++						break;
++					}
++			 		version +=  vS[2];
++					version = parseFloat(version);
++			      }
++			   }
++			}
++			else if(UA.ie) {
++			    try
++			    {
++			        var ax6 = new ActiveXObject(sF + "." + sF + ".6");
++			        ax6.AllowScriptAccess = "always";
++			    }
++			    catch(e)
++			    {
++			        if(ax6 != null)
++			        {
++			            version = 6.0;
++			        }
++			    }
++			    if (version == 0) {
++			    try
++			    {
++			        var ax  = new ActiveXObject(sF + "." + sF);
++			       	var vS = [];
++			        vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
++			        version = vS[0] + '.';
++					switch((vS[2].toString()).length)
++					{
++						case 1:
++						version += "00";
++						break;
++						case 2: 
++						version += "0";
++						break;
++					}
++			 		version +=  vS[2];
++					version = parseFloat(version);
++
++			    } catch (e) {}
++			    }
++			}
++
++			UA.flash = version;
++
++	YAHOO.util.SWFDetect = {		
++			getFlashVersion : function () {
++				return version;
++			},
++
++			isFlashVersionAtLeast : function (ver) {
++				return version >= ver;
++			}	
++		};	
++	
++	var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        SWFDetect = YAHOO.util.SWFDetect,
++        Lang = YAHOO.lang,
++
++		// private
++		FLASH_CID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",
++		FLASH_TYPE = "application/x-shockwave-flash",
++		FLASH_VER = "10.22",
++		EXPRESS_INSTALL_URL = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(),
++		EVENT_HANDLER = "YAHOO.widget.SWF.eventHandler",
++		possibleAttributes = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
++		
++		/**
++		 * The SWF utility is a tool for embedding Flash applications in HTMl pages.
++		 * @module swf
++		 * @title SWF Utility
++		 * @requires yahoo, dom, event
++		 * @namespace YAHOO.widget
++		 */
++
++		/**
++		 * Creates the SWF instance and keeps the configuration data
++		 *
++		 * @class SWF
++		 * @extends YAHOO.util.Element
++		 * @constructor
++		 * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.  
++		 *        The width and height of the SWF will be set to the width and height of this container element.
++		 * @param {String} swfURL The URL of the SWF to be embedded into the page.
++		 * @param {Object} p_oAttributes (optional) Configuration parameters for the Flash application and values for Flashvars
++		 *        to be passed to the SWF.
++		 */
++				
++YAHOO.widget.SWF = function (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
++	
++	this._queue = this._queue || [];
++	this._events = this._events || {};
++	this._configs = this._configs || {};
++	
++	/**
++     * The DOM id of this instance of the element. Automatically generated.
++     * @property _id
++     * @type String
++     */
++	this._id = Dom.generateId(null, "yuiswf");
++	
++	if(p_oAttributes.host) this._host = p_oAttributes.host;
++	
++	var _id = this._id;
++    var oElement = Dom.get(p_oElement);
++	var flashVersion = (p_oAttributes["version"] || FLASH_VER);
++	var isFlashVersionRight = SWFDetect.isFlashVersionAtLeast(flashVersion);
++	var canExpressInstall = (UA.flash >= 8.0);
++	var shouldExpressInstall = canExpressInstall && !isFlashVersionRight && p_oAttributes["useExpressInstall"];
++	var flashURL = (shouldExpressInstall)?EXPRESS_INSTALL_URL:swfURL;
++	var objstring = '<object ';
++	var w, h;
++	var flashvarstring = "YUISwfId=" + _id + "&YUIBridgeCallback=" + EVENT_HANDLER;
++	
++	YAHOO.widget.SWF._instances[_id] = this;
++
++    if (oElement && (isFlashVersionRight || shouldExpressInstall) && flashURL) {
++				objstring += 'id="' + _id + '" '; 
++				if (UA.ie) {
++					objstring += 'classid="' + FLASH_CID + '" '
++				}
++				else {
++					objstring += 'type="' + FLASH_TYPE + '" data="' + flashURL + '" ';
++				}
++				
++                w = "100%";
++				h = "100%";
++				
++				objstring += 'width="' + w + '" height="' + h + '">';
++				
++				if (UA.ie) {
++					objstring += '<param name="movie" value="' + flashURL + '"/>';
++				}
++				
++				for (var attribute in p_oAttributes.fixedAttributes) {
++					if (possibleAttributes.hasOwnProperty(attribute)) {
++						objstring += '<param name="' + attribute + '" value="' + p_oAttributes.fixedAttributes[attribute] + '"/>';
++					}
++				}
++
++				for (var flashvar in p_oAttributes.flashVars) {
++					var fvar = p_oAttributes.flashVars[flashvar];
++					if (Lang.isString(fvar)) {
++						flashvarstring += "&" + flashvar + "=" + encodeURIComponent(fvar);
++					}
++				}
++				
++				if (flashvarstring) {
++					objstring += '<param name="flashVars" value="' + flashvarstring + '"/>';
++				}
++				
++				objstring += "</object>"; 
++
++				oElement.innerHTML = objstring;
++			}
++			
++			YAHOO.widget.SWF.superclass.constructor.call(this, Dom.get(_id));
++			this._swf = Dom.get(_id);	
++};
++
++/**
++ * The static collection of all instances of the SWFs on the page.
++ * @property _instances
++ * @private
++ * @type Object
++ */
++
++YAHOO.widget.SWF._instances = YAHOO.widget.SWF._instances || {};
++
++/**
++ * Handles an event coming from within the SWF and delegate it
++ * to a specific instance of SWF.
++ * @method eventHandler
++ * @param swfid {String} the id of the SWF dispatching the event
++ * @param event {Object} the event being transmitted.
++ * @private
++ */
++YAHOO.widget.SWF.eventHandler = function (swfid, event) {
++	YAHOO.widget.SWF._instances[swfid]._eventHandler(event);
++};
++
++YAHOO.extend(YAHOO.widget.SWF, YAHOO.util.Element, {
++	_eventHandler: function(event)
++	{
++		if (event.type == "swfReady") 
++		{
++			this.createEvent("swfReady", {fireOnce:true});
++	     	this.fireEvent("swfReady", event);
++        }
++		else if(event.type == "log")
++		{
++		}
++        else 
++		{
++	    	if(this._host && this._host.fireEvent) 
++			{
++				this._host.fireEvent(event.type, event);
++			}
++			else
++			{
++				this.fireEvent(event.type, event);
++			}
++        } 
++	},
++		
++	/**
++	 * Calls a specific function exposed by the SWF's
++	 * ExternalInterface.
++	 * @method callSWF
++	 * @param func {String} the name of the function to call
++	 * @param args {Object} the set of arguments to pass to the function.
++	 */
++	callSWF: function (func, args)
++	{
++		if (!args) { 
++			  args= []; 
++		};
++		
++		if (this._swf[func]) {
++		return(this._swf[func].apply(this._swf, args));
++	    } else {
++		return null;
++	    }
++	},
++	
++	/**
++	 * Public accessor to the unique name of the SWF instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the SWF instance.
++	 */
++	toString: function()
++	{
++		return "SWF " + this._id;
++	}
++});
++
++	
++})();
++YAHOO.register("swf", YAHOO.widget.SWF, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swfdetect/swfdetect-debug.js b/pylons_app/public/js/yui/swfdetect/swfdetect-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfdetect/swfdetect-debug.js
+@@ -0,0 +1,93 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Utility for Flash version detection
++ * @namespace YAHOO.util
++ * @module swfdetect
++ */
++YAHOO.namespace("util");
++
++/**
++ * Flafh detection utility.
++ * @class SWFDetect
++ * @static
++ */
++(function () {
++	
++var version = 0;
++var uA = YAHOO.env.ua;
++var sF = "ShockwaveFlash";
++
++ 	if (uA.gecko || uA.webkit || uA.opera) {
++		   if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
++		      if ((eP = mF.enabledPlugin)) {
++				 var vS = [];
++		         vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
++		        version = vS[0] + '.';
++				switch((vS[2].toString()).length)
++				{
++					case 1:
++					version += "00";
++					break;
++					case 2: 
++					version += "0";
++					break;
++				}
++		 		version +=  vS[2];
++				version = parseFloat(version);
++		      }
++		   }
++		}
++		else if(uA.ie) {
++		    try
++		    {
++		        var ax6 = new ActiveXObject(sF + "." + sF + ".6");
++		        ax6.AllowScriptAccess = "always";
++		    }
++		    catch(e)
++		    {
++		        if(ax6 != null)
++		        {
++		            version = 6.0;
++		        }
++		    }
++		    if (version == 0) {
++		    try
++		    {
++		        var ax  = new ActiveXObject(sF + "." + sF);
++		       	var vS = [];
++		        vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
++		        version = vS[0] + '.';
++				switch((vS[2].toString()).length)
++				{
++					case 1:
++					version += "00";
++					break;
++					case 2: 
++					version += "0";
++					break;
++				}
++		 		version +=  vS[2];
++				version = parseFloat(version);
++				
++		    } catch (e) {}
++		    }
++		}
++		
++		uA.flash = version;
++		
++YAHOO.util.SWFDetect = {		
++		getFlashVersion : function () {
++			return version;
++		},
++		
++		isFlashVersionAtLeast : function (ver) {
++			return version >= ver;
++		}	
++	};
++})();
++YAHOO.register("swfdetect", YAHOO.util.SWFDetect, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swfdetect/swfdetect-min.js b/pylons_app/public/js/yui/swfdetect/swfdetect-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfdetect/swfdetect-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("util");(function(){var A=0;var B=YAHOO.env.ua;var C="ShockwaveFlash";if(B.gecko||B.webkit||B.opera){if((mF=navigator.mimeTypes["application/x-shockwave-flash"])){if((eP=mF.enabledPlugin)){var G=[];G=eP.description.replace(/\s[rd]/g,".").replace(/[A-Za-z\s]+/g,"").split(".");A=G[0]+".";switch((G[2].toString()).length){case 1:A+="00";break;case 2:A+="0";break;}A+=G[2];A=parseFloat(A);}}}else{if(B.ie){try{var D=new ActiveXObject(C+"."+C+".6");D.AllowScriptAccess="always";}catch(F){if(D!=null){A=6;}}if(A==0){try{var E=new ActiveXObject(C+"."+C);var G=[];G=E.GetVariable("$version").replace(/[A-Za-z\s]+/g,"").split(",");A=G[0]+".";switch((G[2].toString()).length){case 1:A+="00";break;case 2:A+="0";break;}A+=G[2];A=parseFloat(A);}catch(F){}}}}B.flash=A;YAHOO.util.SWFDetect={getFlashVersion:function(){return A;},isFlashVersionAtLeast:function(H){return A>=H;}};})();YAHOO.register("swfdetect",YAHOO.util.SWFDetect,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/swfdetect/swfdetect.js b/pylons_app/public/js/yui/swfdetect/swfdetect.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfdetect/swfdetect.js
+@@ -0,0 +1,93 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Utility for Flash version detection
++ * @namespace YAHOO.util
++ * @module swfdetect
++ */
++YAHOO.namespace("util");
++
++/**
++ * Flafh detection utility.
++ * @class SWFDetect
++ * @static
++ */
++(function () {
++	
++var version = 0;
++var uA = YAHOO.env.ua;
++var sF = "ShockwaveFlash";
++
++ 	if (uA.gecko || uA.webkit || uA.opera) {
++		   if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
++		      if ((eP = mF.enabledPlugin)) {
++				 var vS = [];
++		         vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
++		        version = vS[0] + '.';
++				switch((vS[2].toString()).length)
++				{
++					case 1:
++					version += "00";
++					break;
++					case 2: 
++					version += "0";
++					break;
++				}
++		 		version +=  vS[2];
++				version = parseFloat(version);
++		      }
++		   }
++		}
++		else if(uA.ie) {
++		    try
++		    {
++		        var ax6 = new ActiveXObject(sF + "." + sF + ".6");
++		        ax6.AllowScriptAccess = "always";
++		    }
++		    catch(e)
++		    {
++		        if(ax6 != null)
++		        {
++		            version = 6.0;
++		        }
++		    }
++		    if (version == 0) {
++		    try
++		    {
++		        var ax  = new ActiveXObject(sF + "." + sF);
++		       	var vS = [];
++		        vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
++		        version = vS[0] + '.';
++				switch((vS[2].toString()).length)
++				{
++					case 1:
++					version += "00";
++					break;
++					case 2: 
++					version += "0";
++					break;
++				}
++		 		version +=  vS[2];
++				version = parseFloat(version);
++				
++		    } catch (e) {}
++		    }
++		}
++		
++		uA.flash = version;
++		
++YAHOO.util.SWFDetect = {		
++		getFlashVersion : function () {
++			return version;
++		},
++		
++		isFlashVersionAtLeast : function (ver) {
++			return version >= ver;
++		}	
++	};
++})();
++YAHOO.register("swfdetect", YAHOO.util.SWFDetect, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swfstore/swf.js b/pylons_app/public/js/yui/swfstore/swf.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfstore/swf.js
+@@ -0,0 +1,238 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("widget");
++
++(function () {
++	
++	var version = 0;
++	var UA = YAHOO.env.ua;
++	var sF = "ShockwaveFlash";
++
++	 	if (UA.gecko || UA.webkit || UA.opera) {
++			   if ((mF = navigator.mimeTypes['application/x-shockwave-flash'])) {
++			      if ((eP = mF.enabledPlugin)) {
++					 var vS = [];
++			         vS = eP.description.replace(/\s[rd]/g, '.').replace(/[A-Za-z\s]+/g, '').split('.');
++			        version = vS[0] + '.';
++					switch((vS[2].toString()).length)
++					{
++						case 1:
++						version += "00";
++						break;
++						case 2: 
++						version += "0";
++						break;
++					}
++			 		version +=  vS[2];
++					version = parseFloat(version);
++			      }
++			   }
++			}
++			else if(UA.ie) {
++			    try
++			    {
++			        var ax6 = new ActiveXObject(sF + "." + sF + ".6");
++			        ax6.AllowScriptAccess = "always";
++			    }
++			    catch(e)
++			    {
++			        if(ax6 != null)
++			        {
++			            version = 6.0;
++			        }
++			    }
++			    if (version == 0) {
++			    try
++			    {
++			        var ax  = new ActiveXObject(sF + "." + sF);
++			       	var vS = [];
++			        vS = ax.GetVariable("$version").replace(/[A-Za-z\s]+/g, '').split(',');
++			        version = vS[0] + '.';
++					switch((vS[2].toString()).length)
++					{
++						case 1:
++						version += "00";
++						break;
++						case 2: 
++						version += "0";
++						break;
++					}
++			 		version +=  vS[2];
++					version = parseFloat(version);
++
++			    } catch (e) {}
++			    }
++			}
++
++			UA.flash = version;
++
++	YAHOO.util.SWFDetect = {		
++			getFlashVersion : function () {
++				return version;
++			},
++
++			isFlashVersionAtLeast : function (ver) {
++				return version >= ver;
++			}	
++		};	
++	
++	var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        SWFDetect = YAHOO.util.SWFDetect,
++        Lang = YAHOO.lang,
++
++		// private
++		FLASH_CID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",
++		FLASH_TYPE = "application/x-shockwave-flash",
++		FLASH_VER = "10.22",
++		EXPRESS_INSTALL_URL = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random(),
++		EVENT_HANDLER = "YAHOO.widget.SWF.eventHandler",
++		possibleAttributes = {align:"", allowNetworking:"", allowScriptAccess:"", base:"", bgcolor:"", menu:"", name:"", quality:"", salign:"", scale:"", tabindex:"", wmode:""};
++		
++		/**
++		 * The SWF utility is a tool for embedding Flash applications in HTMl pages.
++		 * @module swf
++		 * @title SWF Utility
++		 * @requires yahoo, dom, event
++		 * @namespace YAHOO.widget
++		 */
++
++		/**
++		 * Creates the SWF instance and keeps the configuration data
++		 *
++		 * @class SWF
++		 * @extends YAHOO.util.Element
++		 * @constructor
++		 * @param {String|HTMLElement} id The id of the element, or the element itself that the SWF will be inserted into.  
++		 *        The width and height of the SWF will be set to the width and height of this container element.
++		 * @param {String} swfURL The URL of the SWF to be embedded into the page.
++		 * @param {Object} p_oAttributes (optional) Configuration parameters for the Flash application and values for Flashvars
++		 *        to be passed to the SWF.
++		 */
++				
++YAHOO.widget.SWF = function (p_oElement /*:String*/, swfURL /*:String*/, p_oAttributes /*:Object*/ ) {
++	
++	this._queue = this._queue || [];
++	this._events = this._events || {};
++	this._configs = this._configs || {};
++	
++	/**
++     * The DOM id of this instance of the element. Automatically generated.
++     * @property _id
++     * @type String
++     */
++	this._id = Dom.generateId(null, "yuiswf");
++	
++	var _id = this._id;
++    var oElement = Dom.get(p_oElement);
++	var flashVersion = (p_oAttributes["version"] || FLASH_VER);
++	var isFlashVersionRight = SWFDetect.isFlashVersionAtLeast(flashVersion);
++	var canExpressInstall = (UA.flash >= 8.0);
++	var shouldExpressInstall = canExpressInstall && !isFlashVersionRight && p_oAttributes["useExpressInstall"];
++	var flashURL = (shouldExpressInstall)?EXPRESS_INSTALL_URL:swfURL;
++	var objstring = '<object ';
++	var w, h;
++	var flashvarstring = "YUISwfId=" + _id + "&YUIBridgeCallback=" + EVENT_HANDLER + "&";
++	
++	YAHOO.widget.SWF._instances[_id] = this;
++
++    if (oElement && (isFlashVersionRight || shouldExpressInstall) && flashURL) {
++				objstring += 'id="' + _id + '" '; 
++				if (UA.ie) {
++					objstring += 'classid="' + FLASH_CID + '" '
++				}
++				else {
++					objstring += 'type="' + FLASH_TYPE + '" data="' + flashURL + '" ';
++				}
++				
++                w = "100%";
++				h = "100%";
++				
++				objstring += 'width="' + w + '" height="' + h + '">';
++				
++				if (UA.ie) {
++					objstring += '<param name="movie" value="' + flashURL + '"/>';
++				}
++				
++				for (var attribute in p_oAttributes.fixedAttributes) {
++					if (possibleAttributes.hasOwnProperty(attribute)) {
++						objstring += '<param name="' + attribute + '" value="' + p_oAttributes.fixedAttributes[attribute] + '"/>';
++					}
++				}
++
++				for (var flashvar in p_oAttributes.flashVars) {
++					var fvar = p_oAttributes.flashVars[flashvar];
++					if (Lang.isString(fvar)) {
++						flashvarstring += "&" + flashvar + "=" + encodeURIComponent(fvar);
++					}
++				}
++				
++				if (flashvarstring) {
++					objstring += '<param name="flashVars" value="' + flashvarstring + '"/>';
++				}
++				
++				objstring += "</object>"; 
++
++				oElement.innerHTML = objstring;
++			}
++			
++			YAHOO.widget.SWF.superclass.constructor.call(this, Dom.get(_id));
++			this._swf = Dom.get(_id);	
++};
++
++/**
++ * The static collection of all instances of the SWFs on the page.
++ * @property _instances
++ * @private
++ * @type Object
++ */
++
++YAHOO.widget.SWF._instances = YAHOO.widget.SWF._instances || {};
++
++/**
++ * Handles an event coming from within the SWF and delegate it
++ * to a specific instance of SWF.
++ * @method eventHandler
++ * @param swfid {String} the id of the SWF dispatching the event
++ * @param event {Object} the event being transmitted.
++ * @private
++ */
++YAHOO.widget.SWF.eventHandler = function (swfid, event) {
++	YAHOO.widget.SWF._instances[swfid]._eventHandler(event);
++};
++
++YAHOO.extend(YAHOO.widget.SWF, YAHOO.util.Element, {
++	_eventHandler: function(event)
++	{
++		if (event.type == "swfReady") {
++			this.createEvent("swfReady");
++	     	this.fireEvent("swfReady", event);
++        }
++        else {
++	        this.fireEvent(event.type, event);
++        } 
++	},	
++	/**
++	 * Calls a specific function exposed by the SWF's
++	 * ExternalInterface.
++	 * @method callSWF
++	 * @param func {String} the name of the function to call
++	 * @param args {Object} the set of arguments to pass to the function.
++	 */
++	callSWF: function (func, args)
++	{
++		if (this._swf[func]) {
++		return(this._swf[func].apply(this._swf, args));
++	    } else {
++		return null;
++	    }
++	}
++});
++
++	
++})();
++YAHOO.register("swf", YAHOO.widget.SWF, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swfstore/swfstore-debug.js b/pylons_app/public/js/yui/swfstore/swfstore-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfstore/swfstore-debug.js
+@@ -0,0 +1,470 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides a swf based storage implementation
++ *
++ * @module swfstore
++ */
++
++/**
++ * Class for the YUI SWFStore util.
++ *
++ * @namespace YAHOO.util
++ * @class SWFStore
++ * @uses YAHOO.util.AttributeProvider
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param shareData {Boolean} Whether or not data should be shared across browsers
++ * @param useCompression {Boolean} Container element for the Flash Player instance.
++ */
++YAHOO.util.SWFStore = function(containerID, shareData, useCompression)
++{
++			//browser detection
++			var browser;
++			var newValue;
++			//convert Booleans to strings for flashvars compatibility
++			shareData = shareData.toString();
++			useCompression = useCompression.toString();
++			
++			if (YAHOO.env.ua.ie) browser = "ie";
++			else if (YAHOO.env.ua.gecko) browser =  "gecko";  //Firefox
++			else if (YAHOO.env.ua.webkit) browser =  "webkit"; // Safari, Webkit 
++			else if (YAHOO.env.ua.caja) browser =  "caja";   
++			else if (YAHOO.env.ua.opera) browser =  "opera"; 
++			else browser =  "other";
++
++			if(YAHOO.util.Cookie.get("swfstore") == null || YAHOO.util.Cookie.get("swfstore") == "null" || YAHOO.util.Cookie.get("swfstore") == "")
++			{
++
++				newValue = Math.round(Math.random() * Math.PI * 100000); 
++				YAHOO.util.Cookie.set("swfstore", newValue);
++
++			}
++
++			else 
++			{
++				newValue = YAHOO.util.Cookie.get("swfstore");
++			}
++
++			
++			var params = 
++				{ 
++					version: 9.115,
++					useExpressInstall: false,
++					fixedAttributes:
++						{allowScriptAccess:"always", allowNetworking:"all", scale:"noScale"},
++						flashVars:
++							{shareData: shareData, browser: newValue, useCompression: useCompression}
++				 };
++	
++	
++	
++	this.embeddedSWF = new YAHOO.widget.SWF(containerID, YAHOO.util.SWFStore.SWFURL, params); 
++	
++	
++	/**
++	 * Fires when an error occurs
++	 *
++	 * @event error
++	 * @param event.type {String} The event type
++	 * @param event.message {String} The data 
++	 * 
++	 */
++	this.createEvent("error");
++
++	/**
++	 * Fires when there is not enough space available to store the data
++	 *
++	 * @event quotaExceededError
++	 * @param event.type {String} The event type
++	 * @param event.message {String} The data 
++	 * 
++	 */
++	this.createEvent("quotaExceededError");
++
++	/**
++	 * Fires when the url matching for the security whitelist is invalid.
++     * If no whitelist is used, fires when page's url does not match the embedded swf's url
++	 *
++	 * @event securityError
++	 * @param event.type {String} The event type
++	 * @param event.message {String} The data 
++	 * 
++	 */
++	this.createEvent("securityError");
++	
++	/**
++	 * Fires when a store is saved successfully
++	 *
++	 * @event save
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("save");
++
++	/**
++	 * Fires when a store is successfully cleared
++	 *
++	 * @event clear
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("clear");
++		
++	
++	/**
++	 * Fires when the save is pending, due to a request for additional storage
++	 *
++	 * @event error
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("pending");
++	
++	
++	/**
++	 * Fires as the settings dialog displays
++	 *
++	 * @event openingDialog
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("openingDialog");
++	
++	/**
++	 * Fires when a settings dialog is not able to be displayed due to 
++	 * the SWF not being large enough to show it. In this case, the developer
++	 * needs to resize the SWF to width of 215px and height of 138px or above, 
++	 * or display an external settings page.
++	 *
++	 * @event inadequateDimensions
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("inadequateDimensions");
++};
++
++YAHOO.extend(YAHOO.util.SWFStore, YAHOO.util.AttributeProvider,
++{
++
++
++	
++	/**
++	 * Method to attach listeners to events
++	 * @param type {String} The tyep of event to listen for
++	 * @param listener {String} The function to call
++	 */
++	on: function(type, listener)
++	{
++		this.embeddedSWF.addListener(type, listener); 
++	},
++
++	/**
++	 * Method to attach listeners to events
++	 * @param type {String} The tyep of event to listen for
++	 * @param listener {String} The function to call
++	 */
++	addListener: function(type, listener)
++	{
++		YAHOO.log("adding '" + type + "' listener");
++		this.embeddedSWF.addListener(type, listener); 
++	},
++
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the SWFStore instance.
++	 */
++	toString: function()
++	{
++		return "SWFStore " + this._id;
++	},
++	
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method getShareData
++	 * @return {Boolean} Whether or not data is being shared among browsers
++	 */
++	getShareData: function()
++	{
++		return this.embeddedSWF.callSWF("getShareData");
++	},
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method setShareData
++	 * @param {Boolean} Whether or not to share among browsers
++	 */
++	setShareData: function(value)
++	{
++		YAHOO.log("Setting share data to " + value);
++		this.embeddedSWF.callSWF("setShareData", [value]);
++	},
++
++	/**
++	 * Determines if SWF's visible area is large enough to fit the settings panel
++	 *
++	 * @method hasAdequateDimensions
++	 * @return {Boolean} Whether or not to share among browsers
++	 */
++	hasAdequateDimensions: function()
++	{
++		YAHOO.log("dimensions adequate? " + this.embeddedSWF.callSWF("hasAdequateDimensions"));
++		return this.embeddedSWF.callSWF("hasAdequateDimensions");
++	},
++
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method getUseCompression
++	 * @return {Boolean} Whether or compression is being used
++	 */
++	getUseCompression: function()
++	{
++		return this.embeddedSWF.callSWF("getUseCompression");
++	},
++
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method setUseCompression
++	 * @param {Boolean} Whether or to compress stored data
++	 */
++	setUseCompression: function(value)
++	{
++		YAHOO.log("Setting compression to " + value);
++		this.embeddedSWF.callSWF("setUseCompression", [value]);
++	},	
++
++	   /**
++	    * Saves data to local storage. It returns a String that can
++		* be one of three values: "true" if the storage succeeded; "false" if the user
++		* has denied storage on their machine or storage space allotted is not sufficient.
++		* <p>The size limit for the passed parameters is ~40Kb.</p>
++		* @method setItem
++	    * @param data {Object} The data to store
++	    * @param location {String} The name of the "cookie" or store 
++		* @return {Boolean} Whether or not the save was successful
++	    * 
++	    */
++		setItem: function(location,data) 
++		{	
++			YAHOO.log("setting " + location + " to " + data);
++			return this.embeddedSWF.callSWF("setItem", [location, data]);
++		} ,
++	    	
++	   /**
++	    * Returns the value of the store at the specified index, if any.
++		* @method getValueAt
++	    * @param index {Number} The index of the stored item
++	    * @return {Object} The value of the store at that index
++	    * 
++	    */	    
++		getValueAt: function(index) 
++		{
++			YAHOO.log("value at " + index + " is " + this.embeddedSWF.callSWF("getValueAt", [index]) );
++			return this.embeddedSWF.callSWF("getValueAt", [index]);
++		},
++
++	   /**
++	    * Returns the key name in storage, if any, at the specified index.
++	    * 
++	    * @param index {Number} The index of the "cookie" or store
++		* @return {Object}The data
++		* @method setItem
++	    * 
++	    */	    
++		getNameAt: function(index) 
++		{
++			YAHOO.log("name at " + index + " is " + this.embeddedSWF.callSWF("getNameAt", [index]) );
++			return this.embeddedSWF.callSWF("getNameAt", [index]);
++		},
++		
++		
++	    /**
++	    * Returns the value of the item in storage, if any.
++	    * @method getValueOf
++	    * @param location {String} The name of the "cookie" or store
++		* @return {Object} The data
++	    * 
++	    */
++		getValueOf: function(location) 
++		{
++			YAHOO.log("value of " + location + " is " + this.embeddedSWF.callSWF("getValueOf", [location]) );
++			return this.embeddedSWF.callSWF("getValueOf", [location]);
++		} ,
++
++	    /**
++	    *  Returns the data type of of the storage.
++		* <p>May be one of the following types:
++	    * <ul>
++	    * <li>boolean</li>
++	    * <li>function</li>
++	    * <li>number</li>
++	    * <li>object</li>
++	    * <li>string</li>
++	    * <li>number</li>
++	    * <li>xml</li>
++	    * </ul>
++	    * </p>
++	    * @method getTypeOf
++	    * @param location {String} The name of the "cookie" or store
++		* @return {String} The type
++	    * 
++	    */
++		getTypeOf: function(location) 
++		{
++			YAHOO.log("type of " + location + " is " + this.embeddedSWF.callSWF("getTypeOf", [location]) );
++			return this.embeddedSWF.callSWF("getTypeOf", [location]);
++		} ,
++
++	    /**
++	    *  Returns the data type of of the storage.
++		* <p>May be one of the following types:
++	    * <ul>
++	    * <li>boolean</li>
++	    * <li>function</li>
++	    * <li>number</li>
++	    * <li>object</li>
++	    * <li>string</li>
++	    * <li>number</li>
++	    * <li>xml</li>
++	    * </ul>
++	    * </p>
++	    * @method getTypeAt
++	    * @param location {Number} The index of the "cookie" or store
++		* @return {String} The type
++	    * 
++	    */
++		getTypeAt: function(index) 
++		{
++			YAHOO.log("type at " + index + " is " + this.embeddedSWF.callSWF("getTypeAt", [index]) );
++			return this.embeddedSWF.callSWF("getTypeAt", [index]);
++		} ,
++		 
++		/**
++		 * Returns the items in storage as an array.
++		 * @method getItems
++		 * @return {Object} The data.
++		 * @public
++		 */
++		getItems: function() 
++		{
++			return this.embeddedSWF.callSWF("getItems", []);
++		},
++
++	    /**
++	    * Removes the item in storage, if any.
++	    * @method removeItem
++	    * @param location {String} The name of the "cookie" or store
++	    * 
++	    */
++		removeItem: function(location) 
++		{
++			YAHOO.log("removing " + location);
++			return this.embeddedSWF.callSWF("removeItem", [location]);
++		} ,
++
++	    /**
++	    * Removes the item in storage at the specified index, if any.
++	    * @method removeItem
++	    * @param index {Number} The index of the "cookie" or store
++	    * 
++	    */
++		removeItemAt: function(index) 
++		{
++			YAHOO.log("removing item at " + index);
++			return this.embeddedSWF.callSWF("removeItemAt", [index]);
++		} ,
++		
++	    /**
++	    * Returns the number of items in storage, if any.
++	    * @method getLength
++	    * @return {Number} The number of items
++	    * 
++	    */
++		getLength: function() 
++		{
++			return this.embeddedSWF.callSWF("getLength", []);
++		} ,
++		
++	   /**
++	    * Removes all data in local storage for this domain.
++	    * <p>Be careful when using this method, as it may 
++	    * remove stored information that is used by other applications
++	    * in this domain </p>
++	    * @method clear
++	    */		
++		clear: function() 
++		{
++			YAHOO.log("clearing all items");
++			return this.embeddedSWF.callSWF("clear", []);
++		} ,
++		
++	    /**
++	     * Gets the current size, in KB, of the amount of space taken by the current store.
++		 * Note that this is calculated, and may take time depending on the number of items stored
++	     * @method calculateCurrentSize
++	     * @return {Number} The size of the store in KB
++	     */		
++		calculateCurrentSize: function() 
++		{
++			YAHOO.log("calculating size");
++			return this.embeddedSWF.callSWF("calculateCurrentSize", []);
++		} ,
++		
++	    /**
++	     * Gets the timestamp of the last store. This value is automatically set when 
++	     * data is stored.
++	     * @method getModificationDate
++	     * @return {Date} A Date object
++	     */
++		getModificationDate: function() 
++		{
++			YAHOO.log("getting date");
++			return this.embeddedSWF.callSWF("getModificationDate", []);
++		} ,
++		
++		/**
++		* This method requests more storage (if the amount is above 100KB or the current setting).
++		* 
++		* The request dialog has to be displayed within the Flash player itself
++		* so the SWF it is called from must be visible and at least 215px x 138px (w x h) in size.
++		* 
++		* @method setSize
++		* @param value {Number} The size, in KB
++		* @return {String} 
++		*/		
++		setSize: function(value) 
++		{
++			var result = this.embeddedSWF.callSWF("setSize", [value]);
++			YAHOO.log("attempt to set size to " + value*1024 + " bytes resulted in " + result);
++			return result;
++		} ,
++		
++		/**
++		 * Displays the settings dialog to allow the user to configure
++		 * storage settings manually. If the SWF height and width are smaller than
++		 * what is allowable to display the local settings panel,
++		 * an openExternalDialog message will be sent to JavaScript.
++		 * @method displaySettings
++		 */		
++		displaySettings: function() 
++		{
++			YAHOO.log("attempting to show settings. are dimensions adequate? " + this.embeddedSWF.callSWF("hasAdequateDimensions"));
++			this.embeddedSWF.callSWF("displaySettings", []);
++		} 
++
++});
++
++
++YAHOO.util.SWFStore.SWFURL = "swfstore.swf";
++
++YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
++YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swfstore/swfstore-min.js b/pylons_app/public/js/yui/swfstore/swfstore-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfstore/swfstore-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.util.SWFStore=function(A,C,D){var B;var E;C=C.toString();D=D.toString();if(YAHOO.env.ua.ie){B="ie";}else{if(YAHOO.env.ua.gecko){B="gecko";}else{if(YAHOO.env.ua.webkit){B="webkit";}else{if(YAHOO.env.ua.caja){B="caja";}else{if(YAHOO.env.ua.opera){B="opera";}else{B="other";}}}}}if(YAHOO.util.Cookie.get("swfstore")==null||YAHOO.util.Cookie.get("swfstore")=="null"||YAHOO.util.Cookie.get("swfstore")==""){E=Math.round(Math.random()*Math.PI*100000);YAHOO.util.Cookie.set("swfstore",E);}else{E=YAHOO.util.Cookie.get("swfstore");}var F={version:9.115,useExpressInstall:false,fixedAttributes:{allowScriptAccess:"always",allowNetworking:"all",scale:"noScale"},flashVars:{shareData:C,browser:E,useCompression:D}};this.embeddedSWF=new YAHOO.widget.SWF(A,YAHOO.util.SWFStore.SWFURL,F);this.createEvent("error");this.createEvent("quotaExceededError");this.createEvent("securityError");this.createEvent("save");this.createEvent("clear");this.createEvent("pending");this.createEvent("openingDialog");this.createEvent("inadequateDimensions");};YAHOO.extend(YAHOO.util.SWFStore,YAHOO.util.AttributeProvider,{on:function(A,B){this.embeddedSWF.addListener(A,B);},addListener:function(A,B){this.embeddedSWF.addListener(A,B);},toString:function(){return"SWFStore "+this._id;},getShareData:function(){return this.embeddedSWF.callSWF("getShareData");},setShareData:function(A){this.embeddedSWF.callSWF("setShareData",[A]);},hasAdequateDimensions:function(){return this.embeddedSWF.callSWF("hasAdequateDimensions");},getUseCompression:function(){return this.embeddedSWF.callSWF("getUseCompression");},setUseCompression:function(A){this.embeddedSWF.callSWF("setUseCompression",[A]);},setItem:function(A,B){return this.embeddedSWF.callSWF("setItem",[A,B]);},getValueAt:function(A){return this.embeddedSWF.callSWF("getValueAt",[A]);},getNameAt:function(A){return this.embeddedSWF.callSWF("getNameAt",[A]);},getValueOf:function(A){return this.embeddedSWF.callSWF("getValueOf",[A]);},getTypeOf:function(A){return this.embeddedSWF.callSWF("getTypeOf",[A]);},getTypeAt:function(A){return this.embeddedSWF.callSWF("getTypeAt",[A]);},getItems:function(){return this.embeddedSWF.callSWF("getItems",[]);},removeItem:function(A){return this.embeddedSWF.callSWF("removeItem",[A]);},removeItemAt:function(A){return this.embeddedSWF.callSWF("removeItemAt",[A]);},getLength:function(){return this.embeddedSWF.callSWF("getLength",[]);},clear:function(){return this.embeddedSWF.callSWF("clear",[]);},calculateCurrentSize:function(){return this.embeddedSWF.callSWF("calculateCurrentSize",[]);},getModificationDate:function(){return this.embeddedSWF.callSWF("getModificationDate",[]);},setSize:function(B){var A=this.embeddedSWF.callSWF("setSize",[B]);return A;},displaySettings:function(){this.embeddedSWF.callSWF("displaySettings",[]);}});YAHOO.util.SWFStore.SWFURL="swfstore.swf";YAHOO.register("swfstore",YAHOO.util.SWFStore,{version:"2.8.0r4",build:"2449"});YAHOO.register("swfstore",YAHOO.util.SWFStore,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/swfstore/swfstore.js b/pylons_app/public/js/yui/swfstore/swfstore.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/swfstore/swfstore.js
+@@ -0,0 +1,453 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * Provides a swf based storage implementation
++ *
++ * @module swfstore
++ */
++
++/**
++ * Class for the YUI SWFStore util.
++ *
++ * @namespace YAHOO.util
++ * @class SWFStore
++ * @uses YAHOO.util.AttributeProvider
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param shareData {Boolean} Whether or not data should be shared across browsers
++ * @param useCompression {Boolean} Container element for the Flash Player instance.
++ */
++YAHOO.util.SWFStore = function(containerID, shareData, useCompression)
++{
++			//browser detection
++			var browser;
++			var newValue;
++			//convert Booleans to strings for flashvars compatibility
++			shareData = shareData.toString();
++			useCompression = useCompression.toString();
++			
++			if (YAHOO.env.ua.ie) browser = "ie";
++			else if (YAHOO.env.ua.gecko) browser =  "gecko";  //Firefox
++			else if (YAHOO.env.ua.webkit) browser =  "webkit"; // Safari, Webkit 
++			else if (YAHOO.env.ua.caja) browser =  "caja";   
++			else if (YAHOO.env.ua.opera) browser =  "opera"; 
++			else browser =  "other";
++
++			if(YAHOO.util.Cookie.get("swfstore") == null || YAHOO.util.Cookie.get("swfstore") == "null" || YAHOO.util.Cookie.get("swfstore") == "")
++			{
++
++				newValue = Math.round(Math.random() * Math.PI * 100000); 
++				YAHOO.util.Cookie.set("swfstore", newValue);
++
++			}
++
++			else 
++			{
++				newValue = YAHOO.util.Cookie.get("swfstore");
++			}
++
++			
++			var params = 
++				{ 
++					version: 9.115,
++					useExpressInstall: false,
++					fixedAttributes:
++						{allowScriptAccess:"always", allowNetworking:"all", scale:"noScale"},
++						flashVars:
++							{shareData: shareData, browser: newValue, useCompression: useCompression}
++				 };
++	
++	
++	
++	this.embeddedSWF = new YAHOO.widget.SWF(containerID, YAHOO.util.SWFStore.SWFURL, params); 
++	
++	
++	/**
++	 * Fires when an error occurs
++	 *
++	 * @event error
++	 * @param event.type {String} The event type
++	 * @param event.message {String} The data 
++	 * 
++	 */
++	this.createEvent("error");
++
++	/**
++	 * Fires when there is not enough space available to store the data
++	 *
++	 * @event quotaExceededError
++	 * @param event.type {String} The event type
++	 * @param event.message {String} The data 
++	 * 
++	 */
++	this.createEvent("quotaExceededError");
++
++	/**
++	 * Fires when the url matching for the security whitelist is invalid.
++     * If no whitelist is used, fires when page's url does not match the embedded swf's url
++	 *
++	 * @event securityError
++	 * @param event.type {String} The event type
++	 * @param event.message {String} The data 
++	 * 
++	 */
++	this.createEvent("securityError");
++	
++	/**
++	 * Fires when a store is saved successfully
++	 *
++	 * @event save
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("save");
++
++	/**
++	 * Fires when a store is successfully cleared
++	 *
++	 * @event clear
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("clear");
++		
++	
++	/**
++	 * Fires when the save is pending, due to a request for additional storage
++	 *
++	 * @event error
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("pending");
++	
++	
++	/**
++	 * Fires as the settings dialog displays
++	 *
++	 * @event openingDialog
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("openingDialog");
++	
++	/**
++	 * Fires when a settings dialog is not able to be displayed due to 
++	 * the SWF not being large enough to show it. In this case, the developer
++	 * needs to resize the SWF to width of 215px and height of 138px or above, 
++	 * or display an external settings page.
++	 *
++	 * @event inadequateDimensions
++	 * @param event.type {String} The event type
++	 * 
++	 */
++	this.createEvent("inadequateDimensions");
++};
++
++YAHOO.extend(YAHOO.util.SWFStore, YAHOO.util.AttributeProvider,
++{
++
++
++	
++	/**
++	 * Method to attach listeners to events
++	 * @param type {String} The tyep of event to listen for
++	 * @param listener {String} The function to call
++	 */
++	on: function(type, listener)
++	{
++		this.embeddedSWF.addListener(type, listener); 
++	},
++
++	/**
++	 * Method to attach listeners to events
++	 * @param type {String} The tyep of event to listen for
++	 * @param listener {String} The function to call
++	 */
++	addListener: function(type, listener)
++	{
++		this.embeddedSWF.addListener(type, listener); 
++	},
++
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the SWFStore instance.
++	 */
++	toString: function()
++	{
++		return "SWFStore " + this._id;
++	},
++	
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method getShareData
++	 * @return {Boolean} Whether or not data is being shared among browsers
++	 */
++	getShareData: function()
++	{
++		return this.embeddedSWF.callSWF("getShareData");
++	},
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method setShareData
++	 * @param {Boolean} Whether or not to share among browsers
++	 */
++	setShareData: function(value)
++	{
++		this.embeddedSWF.callSWF("setShareData", [value]);
++	},
++
++	/**
++	 * Determines if SWF's visible area is large enough to fit the settings panel
++	 *
++	 * @method hasAdequateDimensions
++	 * @return {Boolean} Whether or not to share among browsers
++	 */
++	hasAdequateDimensions: function()
++	{
++		return this.embeddedSWF.callSWF("hasAdequateDimensions");
++	},
++
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method getUseCompression
++	 * @return {Boolean} Whether or compression is being used
++	 */
++	getUseCompression: function()
++	{
++		return this.embeddedSWF.callSWF("getUseCompression");
++	},
++
++	/**
++	 * Public accessor to the unique name of the SWFStore instance.
++	 *
++	 * @method setUseCompression
++	 * @param {Boolean} Whether or to compress stored data
++	 */
++	setUseCompression: function(value)
++	{
++		this.embeddedSWF.callSWF("setUseCompression", [value]);
++	},	
++
++	   /**
++	    * Saves data to local storage. It returns a String that can
++		* be one of three values: "true" if the storage succeeded; "false" if the user
++		* has denied storage on their machine or storage space allotted is not sufficient.
++		* <p>The size limit for the passed parameters is ~40Kb.</p>
++		* @method setItem
++	    * @param data {Object} The data to store
++	    * @param location {String} The name of the "cookie" or store 
++		* @return {Boolean} Whether or not the save was successful
++	    * 
++	    */
++		setItem: function(location,data) 
++		{	
++			return this.embeddedSWF.callSWF("setItem", [location, data]);
++		} ,
++	    	
++	   /**
++	    * Returns the value of the store at the specified index, if any.
++		* @method getValueAt
++	    * @param index {Number} The index of the stored item
++	    * @return {Object} The value of the store at that index
++	    * 
++	    */	    
++		getValueAt: function(index) 
++		{
++			return this.embeddedSWF.callSWF("getValueAt", [index]);
++		},
++
++	   /**
++	    * Returns the key name in storage, if any, at the specified index.
++	    * 
++	    * @param index {Number} The index of the "cookie" or store
++		* @return {Object}The data
++		* @method setItem
++	    * 
++	    */	    
++		getNameAt: function(index) 
++		{
++			return this.embeddedSWF.callSWF("getNameAt", [index]);
++		},
++		
++		
++	    /**
++	    * Returns the value of the item in storage, if any.
++	    * @method getValueOf
++	    * @param location {String} The name of the "cookie" or store
++		* @return {Object} The data
++	    * 
++	    */
++		getValueOf: function(location) 
++		{
++			return this.embeddedSWF.callSWF("getValueOf", [location]);
++		} ,
++
++	    /**
++	    *  Returns the data type of of the storage.
++		* <p>May be one of the following types:
++	    * <ul>
++	    * <li>boolean</li>
++	    * <li>function</li>
++	    * <li>number</li>
++	    * <li>object</li>
++	    * <li>string</li>
++	    * <li>number</li>
++	    * <li>xml</li>
++	    * </ul>
++	    * </p>
++	    * @method getTypeOf
++	    * @param location {String} The name of the "cookie" or store
++		* @return {String} The type
++	    * 
++	    */
++		getTypeOf: function(location) 
++		{
++			return this.embeddedSWF.callSWF("getTypeOf", [location]);
++		} ,
++
++	    /**
++	    *  Returns the data type of of the storage.
++		* <p>May be one of the following types:
++	    * <ul>
++	    * <li>boolean</li>
++	    * <li>function</li>
++	    * <li>number</li>
++	    * <li>object</li>
++	    * <li>string</li>
++	    * <li>number</li>
++	    * <li>xml</li>
++	    * </ul>
++	    * </p>
++	    * @method getTypeAt
++	    * @param location {Number} The index of the "cookie" or store
++		* @return {String} The type
++	    * 
++	    */
++		getTypeAt: function(index) 
++		{
++			return this.embeddedSWF.callSWF("getTypeAt", [index]);
++		} ,
++		 
++		/**
++		 * Returns the items in storage as an array.
++		 * @method getItems
++		 * @return {Object} The data.
++		 * @public
++		 */
++		getItems: function() 
++		{
++			return this.embeddedSWF.callSWF("getItems", []);
++		},
++
++	    /**
++	    * Removes the item in storage, if any.
++	    * @method removeItem
++	    * @param location {String} The name of the "cookie" or store
++	    * 
++	    */
++		removeItem: function(location) 
++		{
++			return this.embeddedSWF.callSWF("removeItem", [location]);
++		} ,
++
++	    /**
++	    * Removes the item in storage at the specified index, if any.
++	    * @method removeItem
++	    * @param index {Number} The index of the "cookie" or store
++	    * 
++	    */
++		removeItemAt: function(index) 
++		{
++			return this.embeddedSWF.callSWF("removeItemAt", [index]);
++		} ,
++		
++	    /**
++	    * Returns the number of items in storage, if any.
++	    * @method getLength
++	    * @return {Number} The number of items
++	    * 
++	    */
++		getLength: function() 
++		{
++			return this.embeddedSWF.callSWF("getLength", []);
++		} ,
++		
++	   /**
++	    * Removes all data in local storage for this domain.
++	    * <p>Be careful when using this method, as it may 
++	    * remove stored information that is used by other applications
++	    * in this domain </p>
++	    * @method clear
++	    */		
++		clear: function() 
++		{
++			return this.embeddedSWF.callSWF("clear", []);
++		} ,
++		
++	    /**
++	     * Gets the current size, in KB, of the amount of space taken by the current store.
++		 * Note that this is calculated, and may take time depending on the number of items stored
++	     * @method calculateCurrentSize
++	     * @return {Number} The size of the store in KB
++	     */		
++		calculateCurrentSize: function() 
++		{
++			return this.embeddedSWF.callSWF("calculateCurrentSize", []);
++		} ,
++		
++	    /**
++	     * Gets the timestamp of the last store. This value is automatically set when 
++	     * data is stored.
++	     * @method getModificationDate
++	     * @return {Date} A Date object
++	     */
++		getModificationDate: function() 
++		{
++			return this.embeddedSWF.callSWF("getModificationDate", []);
++		} ,
++		
++		/**
++		* This method requests more storage (if the amount is above 100KB or the current setting).
++		* 
++		* The request dialog has to be displayed within the Flash player itself
++		* so the SWF it is called from must be visible and at least 215px x 138px (w x h) in size.
++		* 
++		* @method setSize
++		* @param value {Number} The size, in KB
++		* @return {String} 
++		*/		
++		setSize: function(value) 
++		{
++			var result = this.embeddedSWF.callSWF("setSize", [value]);
++			return result;
++		} ,
++		
++		/**
++		 * Displays the settings dialog to allow the user to configure
++		 * storage settings manually. If the SWF height and width are smaller than
++		 * what is allowable to display the local settings panel,
++		 * an openExternalDialog message will be sent to JavaScript.
++		 * @method displaySettings
++		 */		
++		displaySettings: function() 
++		{
++			this.embeddedSWF.callSWF("displaySettings", []);
++		} 
++
++});
++
++
++YAHOO.util.SWFStore.SWFURL = "swfstore.swf";
++
++YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
++YAHOO.register("swfstore", YAHOO.util.SWFStore, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/swfstore/swfstore.swf b/pylons_app/public/js/yui/swfstore/swfstore.swf
+new file mode 100644
+index 0000000000000000000000000000000000000000..1d2f5012985047b0d7b644b380ebfb57ce3a9123
+GIT binary patch
+literal 4819
+zc$@*#5-jaQS5pd99smG%+I?ABcpJx&?wSLQ0YDM}DT<`7kwuD!z(a=*(K0QHBt*)T
+zAoGwY*)%Z#W(ZgS2F46{SV_b<QJgqVY{#(^=WrOuapE|K9ounEJ8`nR@n*9D$WPMC
+zzU)5jQy%wWU%1sh07%ODmU8!WS65e8SN&Dh_?#ndgOCd+NfVIaKr<oaTK!*ukQ4cY
+z(LXU9R+lpAtksXR``VMXo$K%IU0hu3Sv=Zf=I474A3uJ)x9>>rkt5y6(QPefZEdML
+zYaM7G-~xtqE1pl~?39^R*<6d61^d4C_OjGOyec$T$fvo;M7&o|>lr<3TfK*S4x^w%
+zyx%bM8O<Kha=COWt}$`FOWjt|j9*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?saT))x;Z8_^@U=XIC{9$0^e|AGI7XEC<qRc`q2a>KvE4gWnf{0w;&4L?Kn
+zvP8(rQn-z<I!VYr+3l(O8+S$A<sjefxI!uCoizrmb%v&x#4Z_=+5OmCi)E<L083D5
+zDTpuE;w(KwN%;FfBKM$e8iI$Ikt#+(d1=LY&9G7BLBqz{Wqw6AMF#CMw`_Qppf3I(
+zvsTQ-%oV5HUVGf^M0fNxFn$0H=eT=aEXim;gz`|(Uat&6`%z^mYHw7AlJ?`uP}Y6|
+z4#Hi$hE-($6dIb#@$nw8dW0#l%GN&07tm{=Upkp?+ams)dI^6ju~1Nc#ysNly~$is
+zi$7tA==J%2j!wbP+vpVuM2rfTm%M{1PbBZ+(_CckQf7!MY!=f?B`u9<Y`+WB*jZjM
+zZ<dT-fbkxLt~GS<!uVSVy#=A)0jK{G!}v<*1DF;!)1W`V`F_u@vn4m)A>eDJx!4!I
+zX#5JIr{3&h`MwipzlP}Gn~0JF_=a`kBS0rnZ(sB`&=>tJw%=iUADbWln<0DnU$X8r
+zd&A-HBeB?r!!}Wn<crP|y_CEcVSKN_!ZmrKXq*WB3m6~3LRS!f+jO$|pUZQ~j=yI7
+z9u|U49Q$R~<bA~|TXF!!ACzQCzQo@aoIiMmy(e##SZQPLQ7mkG+0t5R4Yx%80K)8t
+z5c)UZ)78*lVRdaa@*x1LX+@`|712WfUXCn$7fYyr2bzXU#}dc({|!z2N8lTy*NVn{
+tMPr~8SpgCGJJ3?1A73GV0%j`j4D3lZBfX}c{j970FT;~K`9BfujrRLBKdS%$
+
+diff --git a/pylons_app/public/js/yui/tabview/assets/border_tabs.css b/pylons_app/public/js/yui/tabview/assets/border_tabs.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/assets/border_tabs.css
+@@ -0,0 +1,54 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-navset .yui-nav li a, .yui-navset .yui-content {
++    border:1px solid #000;  /* label and content borders */
++}
++
++.yui-navset .yui-nav .selected a, .yui-navset .yui-nav a:hover, .yui-navset .yui-content {
++    background-color:#f6f7ee; /* active tab, tab hover, and content bgcolor */
++}
++
++.yui-navset .yui-nav li em { padding:.5em; } /* tab padding */
++
++/* defaults to orientation "top" */
++.yui-navset .yui-nav .selected a {
++    border-bottom-width:0; /* no bottom border for active tab */
++    padding-bottom:1px; /* to match height of other tabs */
++}
++
++.yui-navset .yui-content {
++    margin-top:-1px; /* for active tab overlap */
++}
++
++/* overrides for other orientations */
++
++.yui-navset-bottom .yui-nav .selected a {
++    border-width:0 1px 1px; /* no top border for active tab */
++    padding:1px 0 0; /* to match height of other tabs */
++}
++
++.yui-navset-bottom .yui-content {
++    margin:0 0 -1px; /* for active tab overlap */
++}
++
++.yui-navset-left .yui-nav li.selected a {
++    border-width:1px 0 1px 1px; /* no right border for active tab */
++    padding:0 1px 0 0; /* to match width of other tabs */
++}
++
++.yui-navset-left .yui-content {
++    margin:0 0 0 -1px; /* for active tab overlap */
++}
++
++.yui-navset-right .yui-nav li.selected a {
++    border-width:1px 1px 1px 0; /* no left border for active tab */
++    padding:0 0 0 1px; /* to match width of other tabs */
++}
++
++.yui-navset-right .yui-content {
++    margin:0 -1px 0 0; /* for active tab overlap */
++}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/tabview/assets/loading.gif b/pylons_app/public/js/yui/tabview/assets/loading.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..6a56815b224f865a176ee02259209bbe734a7c66
+GIT binary patch
+literal 729
+zc${<hbhEHb6krfw*v!vRRaN!<`}eM{u04D9OrAXX?AfzTO-;|9J-c`B-kLRQjvhVw
+z?%liDvuAJFvSsn&#sB~RSNzZI=Nc01>=@u`q-Vg)$iTp$_>+Z`gMptx2gqgs8Oy-p
+z^WmiD>b<4{2O4vn6Ef$fFdUl5`80S#lLhY!GuAf_xvg%Z3{0)fihezkPnz95cQlDa
+zy_s<$uwX^g662*Z5pBBd3cLBF9u-O+&huBoW<k;i&&r-z7T$~;mm&-#94Z^mADrs&
+ziN#y2povMs+ku18jA0LZ;)h29>MRb9n^MXQR09;OG{2gJcy5x+5SuqSzQ93)sc+KE
+zY{#Gr>n7h&KFBoBfqhyc1H0lRCJiYrwsK)XY}Q77IB6-qSVB8s6A#eqY?3MM2J0R-
+zu&%nGxcFiqv%(zzc^^bBt}U-%;aYd{#ODYt#(53FMjCVYPP#KXoL~`ZP|@kpoWjtN
+z%;S-|mgQ*pOCO01n$fJrha=u7W3$c=9E|!cQf!P2h8ZkQvP>(O4yAiJYKa6*Y<h3J
+zLHf_b$!(2hKN$^AuqW+&lNiS7b@0N16^kZIBqXq&H8GoawJ@5KZ)(PK^&++VA2@LM
+z2xx@`4-<pr!L1yzoE*oea=1oJaI#q1ufzJ}!xD}OI%2E`6bx)EoF^=4c%#vx>Xc|?
+zP{P5#C^Rurg`wkaa>1snPFtkch*k)mnZ$gugel781i#GT_rc(JW5sG+1Rui*jxYla
+z|AU2x97Wj@SQ0cDoX*T~aAN(epxY(pZfYo~A#>zFJBvy3EXF2hMFy@Zhfgku$jG?h
+i&UAdjhYVJMHK_;u_%;h~`@qS&h9NEO{B{=x25SIf$^OUy
+
+diff --git a/pylons_app/public/js/yui/tabview/assets/skin-sam.css b/pylons_app/public/js/yui/tabview/assets/skin-sam.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/assets/skin-sam.css
+@@ -0,0 +1,77 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-navset .yui-nav li {
++    margin-right:0.16em; /* space between tabs */
++    padding-top:1px; /* gecko: make room for overflow */
++    zoom:1;
++}
++
++.yui-navset .yui-nav .selected { 
++    margin-bottom:-1px; /* for overlap */
++}
++
++.yui-navset .yui-nav a {
++    background:#dadbdb url(../../assets/skins/sam/sprite.png) repeat-x; /* sprite position for normal gradient */
++    border:solid #a3a3a3;
++    border-width:0 1px;
++    color:#000;
++    text-decoration:none;
++}
++
++.yui-navset .yui-nav li a em {
++    border-top:solid 1px #a3a3a3;
++    border-bottom:0;
++    cursor:hand;
++    padding:0.2em 0.5em;
++    top:-1px; /* for 1px rounded corners */
++    position:relative;
++}
++
++.yui-navset .yui-nav .selected a,
++.yui-navset .yui-nav a:focus,
++.yui-navset .yui-nav a:hover {
++    background:#214197 url(../../assets/skins/sam/sprite.png) repeat-x left -1400px;
++    color:#fff;
++}
++
++.yui-navset .yui-nav .selected a em {
++    padding:0.3em 0.5em; /* raise selected tab */
++}
++
++.yui-navset .yui-nav .selected a,
++.yui-navset .yui-nav a:hover,
++.yui-navset .yui-nav a:focus {
++    border-color:#243356;
++}
++
++.yui-navset .yui-nav a:hover em,
++.yui-navset .yui-nav a:focus em,
++.yui-navset .yui-nav .selected a em {
++    border-color:#233356 #406ed9;
++}
++
++.yui-navset .yui-nav {
++    border-bottom:1px solid #243356;
++    position:relative;
++    zoom:1;
++}
++
++.yui-navset .yui-content {
++    background:#abceff;
++    border-top:5px solid #214095;
++}
++
++.yui-navset .yui-content div {
++    border:1px solid #808080;
++    border-top-color:#243356;
++    padding:0.25em 0.5em;
++}
++
++.yui-navset .yui-content div div { /* kill inheritance */
++    border:0; 
++    padding:0;
++}
+diff --git a/pylons_app/public/js/yui/tabview/assets/skins/sam/tabview-skin.css b/pylons_app/public/js/yui/tabview/assets/skins/sam/tabview-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/assets/skins/sam/tabview-skin.css
+@@ -0,0 +1,186 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* .yui-navset defaults to .yui-navset-top */
++.yui-skin-sam .yui-navset .yui-nav,
++.yui-skin-sam .yui-navset .yui-navset-top .yui-nav { /* protect nested tabviews from other orientations */
++    border:solid #2647a0; /* color between tab list and content */
++    border-width:0 0 5px;
++    zoom:1;
++}
++
++.yui-skin-sam .yui-navset .yui-nav li,
++.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li {
++    margin:0 0.16em 0 0; /* space between tabs */
++    padding:1px 0 0; /* gecko: make room for overflow */
++    zoom:1;
++}
++
++.yui-skin-sam .yui-navset .yui-nav .selected,
++.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected { 
++    margin:0 0.16em -1px 0; /* for overlap */
++}
++
++.yui-skin-sam .yui-navset .yui-nav a,
++.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a {
++    background:#d8d8d8 url(../../../../assets/skins/sam/sprite.png) repeat-x; /* tab background */
++    border:solid #a3a3a3;
++    border-width:0 1px;
++    color:#000;
++    position:relative;
++    text-decoration:none;
++}
++
++.yui-skin-sam .yui-navset .yui-nav a em,
++.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em {
++    border:solid #a3a3a3;
++    border-width:1px 0 0;
++    cursor:hand;
++    padding:0.25em .75em;
++    left:0; right: 0; bottom: 0; /* protect from other orientations */
++    top:-1px; /* for 1px rounded corners */
++    position:relative;
++}
++
++.yui-skin-sam .yui-navset .yui-nav .selected a,
++.yui-skin-sam .yui-navset .yui-nav .selected a:focus, /* no focus effect for selected */
++.yui-skin-sam .yui-navset .yui-nav .selected a:hover { /* no hover effect for selected */
++    background:#2647a0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1400px; /* selected tab background */
++    color:#fff;
++}
++
++.yui-skin-sam .yui-navset .yui-nav a:hover,
++.yui-skin-sam .yui-navset .yui-nav a:focus {
++    background:#bfdaff url(../../../../assets/skins/sam/sprite.png) repeat-x left -1300px; /* selected tab background */
++    outline:0;
++}
++
++.yui-skin-sam .yui-navset .yui-nav .selected a em {
++    padding:0.35em 0.75em; /* raise selected tab */
++}
++
++.yui-skin-sam .yui-navset .yui-nav .selected a,
++.yui-skin-sam .yui-navset .yui-nav .selected a em {
++    border-color:#243356; /* selected tab border color */
++}
++
++.yui-skin-sam .yui-navset .yui-content {
++    background:#edf5ff; /* content background color */
++}
++
++.yui-skin-sam .yui-navset .yui-content,
++.yui-skin-sam .yui-navset .yui-navset-top .yui-content {
++    border:1px solid #808080; /* content border */
++    border-top-color:#243356; /* different border color */
++    padding:0.25em 0.5em; /* content padding */
++}
++
++/* left and right orientations */
++.yui-skin-sam .yui-navset-left .yui-nav,
++.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,
++.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,
++.yui-skin-sam .yui-navset-right .yui-nav {
++    border-width:0 5px 0 0;
++    Xposition:absolute; /* from tabview-core; have to reiterate for skin-sam due to pos:rel on skin-sam yui-nav */
++    top:0; bottom:0; /* stretch to fill content height */
++}
++
++.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,
++.yui-skin-sam .yui-navset-right .yui-nav {
++    border-width:0 0 0 5px;
++}
++
++.yui-skin-sam .yui-navset-left .yui-nav li,
++.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,
++.yui-skin-sam .yui-navset-right .yui-nav li {
++    margin:0 0 0.16em; /* space between tabs */
++    padding:0 0 0 1px; /* gecko: make room for overflow */
++}
++
++.yui-skin-sam .yui-navset-right .yui-nav li {
++    padding:0 1px 0 0; /* gecko: make room for overflow */
++}
++
++.yui-skin-sam .yui-navset-left .yui-nav .selected,
++.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected { 
++    margin:0 -1px 0.16em 0;
++}
++
++.yui-skin-sam .yui-navset-right .yui-nav .selected { 
++    margin:0 0 0.16em -1px;
++}
++
++.yui-skin-sam .yui-navset-left .yui-nav a,
++.yui-skin-sam .yui-navset-right .yui-nav a {
++    border-width:1px 0;
++}
++
++.yui-skin-sam .yui-navset-left .yui-nav a em,
++.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,
++.yui-skin-sam .yui-navset-right .yui-nav a em {
++    border-width:0 0 0 1px;
++    padding:0.2em .75em;
++    top:auto;
++    left:-1px; /* for 1px rounded corners */
++}
++
++.yui-skin-sam .yui-navset-right .yui-nav a em {
++    border-width:0 1px 0 0;
++    left:auto;
++    right:-1px; /* for 1px rounded corners */
++}
++
++.yui-skin-sam .yui-navset-left .yui-nav a,
++.yui-skin-sam .yui-navset-left .yui-nav .selected a,
++.yui-skin-sam .yui-navset-left .yui-nav a:hover,
++.yui-skin-sam .yui-navset-right .yui-nav a,
++.yui-skin-sam .yui-navset-right .yui-nav .selected a,
++.yui-skin-sam .yui-navset-right .yui-nav a:hover,
++.yui-skin-sam .yui-navset-bottom .yui-nav a,
++.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,
++.yui-skin-sam .yui-navset-bottom .yui-nav a:hover {
++    background-image:none; /* no left-right or bottom-top gradient */
++}
++
++.yui-skin-sam .yui-navset-left .yui-content {
++    border:1px solid #808080; /* content border */
++    border-left-color:#243356; /* different border color */
++}
++
++/* bottom orientation */
++.yui-skin-sam .yui-navset-bottom .yui-nav,
++.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav {
++    border-width:5px 0 0; /* color between tab list and content */
++}
++
++.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,
++.yui-skin-sam .yui-navset-bottom .yui-nav .selected { 
++    margin:-1px 0.16em 0 0; /* for overlap */
++}
++
++.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,
++.yui-skin-sam .yui-navset-bottom .yui-nav li { 
++    padding:0 0 1px 0; /* gecko: make room for overflow */
++    vertical-align:top;
++}
++
++.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li a,
++.yui-skin-sam .yui-navset-bottom .yui-nav li a { 
++}
++
++.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,
++.yui-skin-sam .yui-navset-bottom .yui-nav a em {
++    border-width:0 0 1px;
++    top:auto;
++    bottom:-1px; /* for 1px rounded corners */
++}
++
++.yui-skin-sam .yui-navset-bottom .yui-content,
++.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content {
++    border:1px solid #808080; /* content border */
++    border-bottom-color:#243356; /* different border color */
++}
++
+diff --git a/pylons_app/public/js/yui/tabview/assets/skins/sam/tabview.css b/pylons_app/public/js/yui/tabview/assets/skins/sam/tabview.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/assets/skins/sam/tabview.css
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(../../../../assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(../../../../assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(../../../../assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
++.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
+diff --git a/pylons_app/public/js/yui/tabview/assets/tabview-core.css b/pylons_app/public/js/yui/tabview/assets/tabview-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/assets/tabview-core.css
+@@ -0,0 +1,133 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* default space between tabs */
++.yui-navset .yui-nav li,
++.yui-navset .yui-navset-top .yui-nav li,
++.yui-navset .yui-navset-bottom .yui-nav li {
++    margin:0 0.5em 0 0; /* horizontal tabs */
++}
++.yui-navset-left .yui-nav li,
++.yui-navset-right .yui-nav li {
++    margin:0 0 0.5em; /* vertical tabs */
++}
++
++.yui-navset .yui-content .yui-hidden {
++    /* absolute position off-screen and box collapsing used to
++       avoid display:none, which causes issues for some content (firefox
++       restarts flash movies) */
++    border:0;
++    height:0;
++    width:0;
++    padding:0;
++    position:absolute;
++    left:-999999px;
++    overflow:hidden;
++    visibility:hidden;
++}
++
++/* default width for side tabs */
++.yui-navset .yui-navset-left .yui-nav,
++.yui-navset .yui-navset-right .yui-nav,
++.yui-navset-left .yui-nav,
++.yui-navset-right .yui-nav { width:6em; }
++
++.yui-navset-top .yui-nav,
++.yui-navset-bottom .yui-nav {
++    width:auto;
++}
++.yui-navset .yui-navset-left,
++.yui-navset-left { padding:0 0 0 6em; } /* map to nav width */
++.yui-navset-right { padding:0 6em 0 0; } /* ditto */
++
++.yui-navset-top,
++.yui-navset-bottom {
++    padding:auto;
++}
++/* core */
++
++.yui-nav,
++.yui-nav li {
++    margin:0;
++    padding:0;
++    list-style:none;
++}
++.yui-navset li em { font-style:normal; }
++
++.yui-navset {
++    position:relative; /* contain absolute positioned tabs (left/right) */
++    zoom:1;
++}
++
++.yui-navset .yui-content,
++.yui-navset .yui-content div {
++    zoom:1;
++}
++
++.yui-navset .yui-content:after {
++    content:'';
++    display:block;
++    clear:both;
++}
++
++.yui-navset .yui-nav li,
++.yui-navset .yui-navset-top .yui-nav li, /* in case nested */
++.yui-navset .yui-navset-bottom .yui-nav li {
++    display:inline-block;
++    display:-moz-inline-stack;
++    *display:inline; /* IE */
++    vertical-align:bottom; /* safari: for overlap */
++    cursor:pointer; /* gecko: due to -moz-inline-stack on anchor */
++    zoom:1; /* IE: kill space between horizontal tabs */
++}
++
++.yui-navset-left .yui-nav li,
++.yui-navset-right .yui-nav li {
++    display:block;
++}
++
++.yui-navset .yui-nav a { position:relative; } /* IE: to allow overlap */
++
++.yui-navset .yui-nav li a,
++.yui-navset-top .yui-nav li a,
++.yui-navset-bottom .yui-nav li a {
++    display:block;
++    display:inline-block;
++    vertical-align:bottom; /* safari: for overlap */
++    zoom:1;
++}
++
++.yui-navset-left .yui-nav li a,
++.yui-navset-right .yui-nav li a {
++    display:block;
++}
++
++.yui-navset-bottom .yui-nav li a {
++    vertical-align:text-top; /* for inline overlap (reverse for Opera border bug) */
++}
++
++.yui-navset .yui-nav li a em,
++.yui-navset-top .yui-nav li a em,
++.yui-navset-bottom .yui-nav li a em { display:block; }
++
++/* position left and right oriented tabs */
++.yui-navset .yui-navset-left .yui-nav,
++.yui-navset .yui-navset-right .yui-nav,
++.yui-navset-left .yui-nav,
++.yui-navset-right .yui-nav {
++   position:absolute;
++   z-index:1; 
++}
++
++.yui-navset-top .yui-nav,
++.yui-navset-bottom .yui-nav {
++    position:static;
++}
++.yui-navset .yui-navset-left .yui-nav,
++.yui-navset-left .yui-nav { left:0; right:auto; }
++
++.yui-navset .yui-navset-right .yui-nav,
++.yui-navset-right .yui-nav { right:0; left:auto; }
+diff --git a/pylons_app/public/js/yui/tabview/assets/tabview.css b/pylons_app/public/js/yui/tabview/assets/tabview.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/assets/tabview.css
+@@ -0,0 +1,77 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/* default space between tabs */
++.yui-navset .yui-nav li {
++    margin-right:0.5em; /* horizontal tabs */
++}
++.yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li {
++    margin:0 0 0.5em; /* vertical tabs */
++}
++
++/* default width for side tabs */
++.yui-navset-left .yui-nav, .yui-navset-right .yui-nav { width:6em; }
++.yui-navset-left { padding-left:6em; } /* map to nav width */
++.yui-navset-right { padding-right:6em; } /* ditto */
++
++/* core */
++
++.yui-nav, .yui-nav li {
++    margin:0;
++    padding:0;
++    list-style:none;
++}
++.yui-navset li em { font-style:normal; }
++
++.yui-navset {
++    position:relative; /* contain absolute positioned tabs (left/right) */
++    zoom:1;
++}
++
++.yui-navset .yui-content { zoom:1; }
++
++.yui-navset .yui-hidden { display:none; }
++
++.yui-navset .yui-nav li {
++    display:inline-block;
++    display:-moz-inline-stack;
++    *display:inline; /* IE */
++    vertical-align:bottom; /* safari: for overlap */
++    cursor:pointer; /* gecko: due to -moz-inline-stack on anchor */
++    zoom:1; /* IE: kill space between horizontal tabs */
++}
++
++.yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li {
++    display:block;
++}
++
++.yui-navset .yui-nav a {
++    outline:0; /* gecko: keep from shifting */
++}
++
++.yui-navset .yui-nav a { position:relative; } /* IE: to allow overlap */
++
++.yui-navset .yui-nav li a {
++    display:block;
++    display:inline-block;
++    vertical-align:bottom; /* safari: for overlap */
++    zoom:1;
++}
++
++.yui-navset-left .yui-nav li a, .yui-navset-right .yui-nav li a {
++    display:block;
++}
++
++.yui-navset-bottom .yui-nav li a {
++    vertical-align:text-top; /* for inline overlap (reverse for Op border bug) */
++}
++
++.yui-navset .yui-nav li a em { display:block; }
++
++/* position left and right oriented tabs */
++.yui-navset-left .yui-nav, .yui-navset-right .yui-nav { position:absolute; z-index:1; }
++.yui-navset-left .yui-nav { left:0; }
++.yui-navset-right .yui-nav { right:0; }
+diff --git a/pylons_app/public/js/yui/tabview/tabview-debug.js b/pylons_app/public/js/yui/tabview/tabview-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/tabview-debug.js
+@@ -0,0 +1,995 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++
++    /**
++     * The tabview module provides a widget for managing content bound to tabs.
++     * @module tabview
++     * @requires yahoo, dom, event, element
++     *
++     */
++
++    var Y = YAHOO.util,
++        Dom = Y.Dom,
++        Event = Y.Event,
++        document = window.document,
++    
++        // STRING CONSTANTS
++        ACTIVE = 'active',
++        ACTIVE_INDEX = 'activeIndex',
++        ACTIVE_TAB = 'activeTab',
++        CONTENT_EL = 'contentEl',
++        ELEMENT = 'element',
++    
++    /**
++     * A widget to control tabbed views.
++     * @namespace YAHOO.widget
++     * @class TabView
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param {HTMLElement | String | Object} el(optional) The html 
++     * element that represents the TabView, or the attribute object to use. 
++     * An element will be created if none provided.
++     * @param {Object} attr (optional) A key map of the tabView's 
++     * initial attributes.  Ignored if first arg is attributes object.
++     */
++    TabView = function(el, attr) {
++        attr = attr || {};
++        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
++            attr = el; // treat first arg as attr object
++            el = attr.element || null;
++        }
++        
++        if (!el && !attr.element) { // create if we dont have one
++            el = this._createTabViewElement(attr);
++        }
++        TabView.superclass.constructor.call(this, el, attr); 
++    };
++
++    YAHOO.extend(TabView, Y.Element, {
++        /**
++         * The className to add when building from scratch. 
++         * @property CLASSNAME
++         * @default "navset"
++         */
++        CLASSNAME: 'yui-navset',
++        
++        /**
++         * The className of the HTMLElement containing the TabView's tab elements
++         * to look for when building from existing markup, or to add when building
++         * from scratch. 
++         * All childNodes of the tab container are treated as Tabs when building
++         * from existing markup.
++         * @property TAB_PARENT_CLASSNAME
++         * @default "nav"
++         */
++        TAB_PARENT_CLASSNAME: 'yui-nav',
++        
++        /**
++         * The className of the HTMLElement containing the TabView's label elements
++         * to look for when building from existing markup, or to add when building
++         * from scratch. 
++         * All childNodes of the content container are treated as content elements when
++         * building from existing markup.
++         * @property CONTENT_PARENT_CLASSNAME
++         * @default "nav-content"
++         */
++        CONTENT_PARENT_CLASSNAME: 'yui-content',
++        
++        _tabParent: null,
++        _contentParent: null,
++        
++        /**
++         * Adds a Tab to the TabView instance.  
++         * If no index is specified, the tab is added to the end of the tab list.
++         * @method addTab
++         * @param {YAHOO.widget.Tab} tab A Tab instance to add.
++         * @param {Integer} index The position to add the tab. 
++         * @return void
++         */
++        addTab: function(tab, index) {
++            var tabs = this.get('tabs'),
++                before = this.getTab(index),
++                tabParent = this._tabParent,
++                contentParent = this._contentParent,
++                tabElement = tab.get(ELEMENT),
++                contentEl = tab.get(CONTENT_EL);
++
++            if (!tabs) { // not ready yet
++                this._queue[this._queue.length] = ['addTab', arguments];
++                return false;
++            }
++            
++            index = (index === undefined) ? tabs.length : index;
++            
++            tabs.splice(index, 0, tab);
++
++            if ( before ) {
++                tabParent.insertBefore(tabElement, before.get(ELEMENT));
++            } else {
++                tabParent.appendChild(tabElement);
++            }
++
++            if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) {
++                contentParent.appendChild(contentEl);
++            }
++            
++            if ( !tab.get(ACTIVE) ) {
++                tab.set('contentVisible', false, true); /* hide if not active */
++            } else {
++                this.set(ACTIVE_TAB, tab, true);
++                this.set('activeIndex', index, true);
++            }
++
++            this._initTabEvents(tab);
++        },
++
++        _initTabEvents: function(tab) {
++            tab.addListener( tab.get('activationEvent'), tab._onActivate, this, tab);
++            tab.addListener( tab.get('activationEventChange'), tab._onActivationEventChange, this, tab);
++        },
++
++        _removeTabEvents: function(tab) {
++            tab.removeListener(tab.get('activationEvent'), tab._onActivate, this, tab);
++            tab.removeListener('activationEventChange', tab._onActivationEventChange, this, tab);
++        },
++
++        /**
++         * Routes childNode events.
++         * @method DOMEventHandler
++         * @param {event} e The Dom event that is being handled.
++         * @return void
++         */
++        DOMEventHandler: function(e) {
++            var target = Event.getTarget(e),
++                tabParent = this._tabParent,
++                tabs = this.get('tabs'),
++                tab,
++                tabEl,
++                contentEl;
++
++            
++            if (Dom.isAncestor(tabParent, target) ) {
++                for (var i = 0, len = tabs.length; i < len; i++) {
++                    tabEl = tabs[i].get(ELEMENT);
++                    contentEl = tabs[i].get(CONTENT_EL);
++
++                    if ( target == tabEl || Dom.isAncestor(tabEl, target) ) {
++                        tab = tabs[i];
++                        break; // note break
++                    }
++                } 
++                
++                if (tab) {
++                    tab.fireEvent(e.type, e);
++                }
++            }
++        },
++        
++        /**
++         * Returns the Tab instance at the specified index.
++         * @method getTab
++         * @param {Integer} index The position of the Tab.
++         * @return YAHOO.widget.Tab
++         */
++        getTab: function(index) {
++            return this.get('tabs')[index];
++        },
++        
++        /**
++         * Returns the index of given tab.
++         * @method getTabIndex
++         * @param {YAHOO.widget.Tab} tab The tab whose index will be returned.
++         * @return int
++         */
++        getTabIndex: function(tab) {
++            var index = null,
++                tabs = this.get('tabs');
++            for (var i = 0, len = tabs.length; i < len; ++i) {
++                if (tab == tabs[i]) {
++                    index = i;
++                    break;
++                }
++            }
++            
++            return index;
++        },
++        
++        /**
++         * Removes the specified Tab from the TabView.
++         * @method removeTab
++         * @param {YAHOO.widget.Tab} item The Tab instance to be removed.
++         * @return void
++         */
++        removeTab: function(tab) {
++            var tabCount = this.get('tabs').length,
++                index = this.getTabIndex(tab);
++
++            if ( tab === this.get(ACTIVE_TAB) ) { 
++                if (tabCount > 1) { // select another tab
++                    if (index + 1 === tabCount) { // if last, activate previous
++                        this.set(ACTIVE_INDEX, index - 1);
++                    } else { // activate next tab
++                        this.set(ACTIVE_INDEX, index + 1);
++                    }
++                } else { // no more tabs
++                    this.set(ACTIVE_TAB, null);
++                }
++            }
++            
++            this._removeTabEvents(tab);
++            this._tabParent.removeChild( tab.get(ELEMENT) );
++            this._contentParent.removeChild( tab.get(CONTENT_EL) );
++            this._configs.tabs.value.splice(index, 1);
++
++            tab.fireEvent('remove', { type: 'remove', tabview: this });
++        },
++        
++        /**
++         * Provides a readable name for the TabView instance.
++         * @method toString
++         * @return String
++         */
++        toString: function() {
++            var name = this.get('id') || this.get('tagName');
++            return "TabView " + name; 
++        },
++        
++        /**
++         * The transiton to use when switching between tabs.
++         * @method contentTransition
++         */
++        contentTransition: function(newTab, oldTab) {
++            if (newTab) {
++                newTab.set('contentVisible', true);
++            }
++            if (oldTab) {
++                oldTab.set('contentVisible', false);
++            }
++        },
++        
++        /**
++         * setAttributeConfigs TabView specific properties.
++         * @method initAttributes
++         * @param {Object} attr Hash of initial attributes
++         */
++        initAttributes: function(attr) {
++            TabView.superclass.initAttributes.call(this, attr);
++            
++            if (!attr.orientation) {
++                attr.orientation = 'top';
++            }
++            
++            var el = this.get(ELEMENT);
++
++            if (!Dom.hasClass(el, this.CLASSNAME)) {
++                Dom.addClass(el, this.CLASSNAME);        
++            }
++            
++            /**
++             * The Tabs belonging to the TabView instance.
++             * @attribute tabs
++             * @type Array
++             */
++            this.setAttributeConfig('tabs', {
++                value: [],
++                readOnly: true
++            });
++
++            /**
++             * The container of the tabView's label elements.
++             * @property _tabParent
++             * @private
++             * @type HTMLElement
++             */
++            this._tabParent = 
++                    this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,
++                            'ul' )[0] || this._createTabParent();
++                
++            /**
++             * The container of the tabView's content elements.
++             * @property _contentParent
++             * @type HTMLElement
++             * @private
++             */
++            this._contentParent = 
++                    this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,
++                            'div')[0] ||  this._createContentParent();
++            
++            /**
++             * How the Tabs should be oriented relative to the TabView.
++             * @attribute orientation
++             * @type String
++             * @default "top"
++             */
++            this.setAttributeConfig('orientation', {
++                value: attr.orientation,
++                method: function(value) {
++                    var current = this.get('orientation');
++                    this.addClass('yui-navset-' + value);
++                    
++                    if (current != value) {
++                        this.removeClass('yui-navset-' + current);
++                    }
++                    
++                    if (value === 'bottom') {
++                        this.appendChild(this._tabParent);
++                    }
++                }
++            });
++            
++            /**
++             * The index of the tab currently active.
++             * @attribute activeIndex
++             * @type Int
++             */
++            this.setAttributeConfig(ACTIVE_INDEX, {
++                value: attr.activeIndex,
++                validator: function(value) {
++                    var ret = true;
++                    if (value && this.getTab(value).get('disabled')) { // cannot activate if disabled
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++            
++            /**
++             * The tab currently active.
++             * @attribute activeTab
++             * @type YAHOO.widget.Tab
++             */
++            this.setAttributeConfig(ACTIVE_TAB, {
++                value: attr.activeTab,
++                method: function(tab) {
++                    var activeTab = this.get(ACTIVE_TAB);
++                    
++                    if (tab) {
++                        tab.set(ACTIVE, true);
++                    }
++                    
++                    if (activeTab && activeTab !== tab) {
++                        activeTab.set(ACTIVE, false);
++                    }
++                    
++                    if (activeTab && tab !== activeTab) { // no transition if only 1
++                        this.contentTransition(tab, activeTab);
++                    } else if (tab) {
++                        tab.set('contentVisible', true);
++                    }
++                },
++                validator: function(value) {
++                    var ret = true;
++                    if (value && value.get('disabled')) { // cannot activate if disabled
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++
++            this.on('activeTabChange', this._onActiveTabChange);
++            this.on('activeIndexChange', this._onActiveIndexChange);
++
++            YAHOO.log('attributes initialized', 'info', 'TabView');
++            if ( this._tabParent ) {
++                this._initTabs();
++            }
++            
++            // Due to delegation we add all DOM_EVENTS to the TabView container
++            // but IE will leak when unsupported events are added, so remove these
++            this.DOM_EVENTS.submit = false;
++            this.DOM_EVENTS.focus = false;
++            this.DOM_EVENTS.blur = false;
++
++            for (var type in this.DOM_EVENTS) {
++                if ( YAHOO.lang.hasOwnProperty(this.DOM_EVENTS, type) ) {
++                    this.addListener.call(this, type, this.DOMEventHandler);
++                }
++            }
++        },
++
++        /**
++         * Removes selected state from the given tab if it is the activeTab
++         * @method deselectTab
++         * @param {Int} index The tab index to deselect 
++         */
++        deselectTab: function(index) {
++            if (this.getTab(index) === this.get('activeTab')) {
++                this.set('activeTab', null);
++            }
++        },
++
++        /**
++         * Makes the tab at the given index the active tab
++         * @method selectTab
++         * @param {Int} index The tab index to be made active
++         */
++        selectTab: function(index) {
++            this.set('activeTab', this.getTab(index));
++        },
++
++        _onActiveTabChange: function(e) {
++            var activeIndex = this.get(ACTIVE_INDEX),
++                newIndex = this.getTabIndex(e.newValue);
++
++            if (activeIndex !== newIndex) {
++                if (!(this.set(ACTIVE_INDEX, newIndex)) ) { // NOTE: setting
++                     // revert if activeIndex update fails (cancelled via beforeChange) 
++                    this.set(ACTIVE_TAB, e.prevValue);
++                }
++            }
++        },
++        
++        _onActiveIndexChange: function(e) {
++            // no set if called from ActiveTabChange event
++            if (e.newValue !== this.getTabIndex(this.get(ACTIVE_TAB))) {
++                if (!(this.set(ACTIVE_TAB, this.getTab(e.newValue))) ) { // NOTE: setting
++                     // revert if activeTab update fails (cancelled via beforeChange) 
++                    this.set(ACTIVE_INDEX, e.prevValue);
++                }
++            }
++        },
++
++        /**
++         * Creates Tab instances from a collection of HTMLElements.
++         * @method _initTabs
++         * @private
++         * @return void
++         */
++        _initTabs: function() {
++            var tabs = Dom.getChildren(this._tabParent),
++                contentElements = Dom.getChildren(this._contentParent),
++                activeIndex = this.get(ACTIVE_INDEX),
++                tab,
++                attr,
++                active;
++
++            for (var i = 0, len = tabs.length; i < len; ++i) {
++                attr = {};
++                
++                if (contentElements[i]) {
++                    attr.contentEl = contentElements[i];
++                }
++
++                tab = new YAHOO.widget.Tab(tabs[i], attr);
++                this.addTab(tab);
++                
++                if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) {
++                    active = tab;
++                }
++            }
++            if (activeIndex) {
++                this.set(ACTIVE_TAB, this.getTab(activeIndex));
++            } else {
++                this._configs.activeTab.value = active; // dont invoke method
++                this._configs.activeIndex.value = this.getTabIndex(active);
++            }
++        },
++
++        _createTabViewElement: function(attr) {
++            var el = document.createElement('div');
++
++            if ( this.CLASSNAME ) {
++                el.className = this.CLASSNAME;
++            }
++            
++            YAHOO.log('TabView Dom created', 'info', 'TabView');
++            return el;
++        },
++
++        _createTabParent: function(attr) {
++            var el = document.createElement('ul');
++
++            if ( this.TAB_PARENT_CLASSNAME ) {
++                el.className = this.TAB_PARENT_CLASSNAME;
++            }
++            
++            this.get(ELEMENT).appendChild(el);
++            
++            return el;
++        },
++        
++        _createContentParent: function(attr) {
++            var el = document.createElement('div');
++
++            if ( this.CONTENT_PARENT_CLASSNAME ) {
++                el.className = this.CONTENT_PARENT_CLASSNAME;
++            }
++            
++            this.get(ELEMENT).appendChild(el);
++            
++            return el;
++        }
++    });
++    
++    
++    YAHOO.widget.TabView = TabView;
++})();
++
++(function() {
++    var Y = YAHOO.util, 
++        Dom = Y.Dom,
++        Lang = YAHOO.lang,
++    
++
++    // STRING CONSTANTS
++        ACTIVE_TAB = 'activeTab',
++        LABEL = 'label',
++        LABEL_EL = 'labelEl',
++        CONTENT = 'content',
++        CONTENT_EL = 'contentEl',
++        ELEMENT = 'element',
++        CACHE_DATA = 'cacheData',
++        DATA_SRC = 'dataSrc',
++        DATA_LOADED = 'dataLoaded',
++        DATA_TIMEOUT = 'dataTimeout',
++        LOAD_METHOD = 'loadMethod',
++        POST_DATA = 'postData',
++        DISABLED = 'disabled',
++    
++    /**
++     * A representation of a Tab's label and content.
++     * @namespace YAHOO.widget
++     * @class Tab
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param element {HTMLElement | String} (optional) The html element that 
++     * represents the Tab. An element will be created if none provided.
++     * @param {Object} properties A key map of initial properties
++     */
++    Tab = function(el, attr) {
++        attr = attr || {};
++        if (arguments.length == 1 && !Lang.isString(el) && !el.nodeName) {
++            attr = el;
++            el = attr.element;
++        }
++
++        if (!el && !attr.element) {
++            el = this._createTabElement(attr);
++        }
++
++        this.loadHandler =  {
++            success: function(o) {
++                this.set(CONTENT, o.responseText);
++            },
++            failure: function(o) {
++            }
++        };
++        
++        Tab.superclass.constructor.call(this, el, attr);
++        
++        this.DOM_EVENTS = {}; // delegating to tabView
++    };
++
++    YAHOO.extend(Tab, YAHOO.util.Element, {
++        /**
++         * The default tag name for a Tab's inner element.
++         * @property LABEL_INNER_TAGNAME
++         * @type String
++         * @default "em"
++         */
++        LABEL_TAGNAME: 'em',
++        
++        /**
++         * The class name applied to active tabs.
++         * @property ACTIVE_CLASSNAME
++         * @type String
++         * @default "selected"
++         */
++        ACTIVE_CLASSNAME: 'selected',
++        
++        /**
++         * The class name applied to active tabs.
++         * @property HIDDEN_CLASSNAME
++         * @type String
++         * @default "yui-hidden"
++         */
++        HIDDEN_CLASSNAME: 'yui-hidden',
++        
++        /**
++         * The title applied to active tabs.
++         * @property ACTIVE_TITLE
++         * @type String
++         * @default "active"
++         */
++        ACTIVE_TITLE: 'active',
++
++        /**
++         * The class name applied to disabled tabs.
++         * @property DISABLED_CLASSNAME
++         * @type String
++         * @default "disabled"
++         */
++        DISABLED_CLASSNAME: DISABLED,
++        
++        /**
++         * The class name applied to dynamic tabs while loading.
++         * @property LOADING_CLASSNAME
++         * @type String
++         * @default "disabled"
++         */
++        LOADING_CLASSNAME: 'loading',
++
++        /**
++         * Provides a reference to the connection request object when data is
++         * loaded dynamically.
++         * @property dataConnection
++         * @type Object
++         */
++        dataConnection: null,
++        
++        /**
++         * Object containing success and failure callbacks for loading data.
++         * @property loadHandler
++         * @type object
++         */
++        loadHandler: null,
++
++        _loading: false,
++        
++        /**
++         * Provides a readable name for the tab.
++         * @method toString
++         * @return String
++         */
++        toString: function() {
++            var el = this.get(ELEMENT),
++                id = el.id || el.tagName;
++            return "Tab " + id; 
++        },
++        
++        /**
++         * setAttributeConfigs Tab specific properties.
++         * @method initAttributes
++         * @param {Object} attr Hash of initial attributes
++         */
++        initAttributes: function(attr) {
++            attr = attr || {};
++            Tab.superclass.initAttributes.call(this, attr);
++            
++            /**
++             * The event that triggers the tab's activation.
++             * @attribute activationEvent
++             * @type String
++             */
++            this.setAttributeConfig('activationEvent', {
++                value: attr.activationEvent || 'click'
++            });        
++
++            /**
++             * The element that contains the tab's label.
++             * @attribute labelEl
++             * @type HTMLElement
++             */
++            this.setAttributeConfig(LABEL_EL, {
++                value: attr[LABEL_EL] || this._getLabelEl(),
++                method: function(value) {
++                    value = Dom.get(value);
++                    var current = this.get(LABEL_EL);
++
++                    if (current) {
++                        if (current == value) {
++                            return false; // already set
++                        }
++                        
++                        current.parentNode.replaceChild(value, current);
++                        this.set(LABEL, value.innerHTML);
++                    }
++                } 
++            });
++
++            /**
++             * The tab's label text (or innerHTML).
++             * @attribute label
++             * @type String
++             */
++            this.setAttributeConfig(LABEL, {
++                value: attr.label || this._getLabel(),
++                method: function(value) {
++                    var labelEl = this.get(LABEL_EL);
++                    if (!labelEl) { // create if needed
++                        this.set(LABEL_EL, this._createLabelEl());
++                    }
++                    
++                    labelEl.innerHTML = value;
++                }
++            });
++            
++            /**
++             * The HTMLElement that contains the tab's content.
++             * @attribute contentEl
++             * @type HTMLElement
++             */
++            this.setAttributeConfig(CONTENT_EL, {
++                value: attr[CONTENT_EL] || document.createElement('div'),
++                method: function(value) {
++                    value = Dom.get(value);
++                    var current = this.get(CONTENT_EL);
++
++                    if (current) {
++                        if (current === value) {
++                            return false; // already set
++                        }
++                        if (!this.get('selected')) {
++                            Dom.addClass(value, this.HIDDEN_CLASSNAME);
++                        }
++                        current.parentNode.replaceChild(value, current);
++                        this.set(CONTENT, value.innerHTML);
++                    }
++                }
++            });
++            
++            /**
++             * The tab's content.
++             * @attribute content
++             * @type String
++             */
++            this.setAttributeConfig(CONTENT, {
++                value: attr[CONTENT],
++                method: function(value) {
++                    this.get(CONTENT_EL).innerHTML = value;
++                }
++            });
++
++            /**
++             * The tab's data source, used for loading content dynamically.
++             * @attribute dataSrc
++             * @type String
++             */
++            this.setAttributeConfig(DATA_SRC, {
++                value: attr.dataSrc
++            });
++            
++            /**
++             * Whether or not content should be reloaded for every view.
++             * @attribute cacheData
++             * @type Boolean
++             * @default false
++             */
++            this.setAttributeConfig(CACHE_DATA, {
++                value: attr.cacheData || false,
++                validator: Lang.isBoolean
++            });
++            
++            /**
++             * The method to use for the data request.
++             * @attribute loadMethod
++             * @type String
++             * @default "GET"
++             */
++            this.setAttributeConfig(LOAD_METHOD, {
++                value: attr.loadMethod || 'GET',
++                validator: Lang.isString
++            });
++
++            /**
++             * Whether or not any data has been loaded from the server.
++             * @attribute dataLoaded
++             * @type Boolean
++             */        
++            this.setAttributeConfig(DATA_LOADED, {
++                value: false,
++                validator: Lang.isBoolean,
++                writeOnce: true
++            });
++            
++            /**
++             * Number if milliseconds before aborting and calling failure handler.
++             * @attribute dataTimeout
++             * @type Number
++             * @default null
++             */
++            this.setAttributeConfig(DATA_TIMEOUT, {
++                value: attr.dataTimeout || null,
++                validator: Lang.isNumber
++            });
++            
++            /**
++             * Arguments to pass when POST method is used 
++             * @attribute postData
++             * @default null
++             */
++            this.setAttributeConfig(POST_DATA, {
++                value: attr.postData || null
++            });
++
++            /**
++             * Whether or not the tab is currently active.
++             * If a dataSrc is set for the tab, the content will be loaded from
++             * the given source.
++             * @attribute active
++             * @type Boolean
++             */
++            this.setAttributeConfig('active', {
++                value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME),
++                method: function(value) {
++                    if (value === true) {
++                        this.addClass(this.ACTIVE_CLASSNAME);
++                        this.set('title', this.ACTIVE_TITLE);
++                    } else {
++                        this.removeClass(this.ACTIVE_CLASSNAME);
++                        this.set('title', '');
++                    }
++                },
++                validator: function(value) {
++                    return Lang.isBoolean(value) && !this.get(DISABLED) ;
++                }
++            });
++            
++            /**
++             * Whether or not the tab is disabled.
++             * @attribute disabled
++             * @type Boolean
++             */
++            this.setAttributeConfig(DISABLED, {
++                value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME),
++                method: function(value) {
++                    if (value === true) {
++                        Dom.addClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
++                    } else {
++                        Dom.removeClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
++                    }
++                },
++                validator: Lang.isBoolean
++            });
++            
++            /**
++             * The href of the tab's anchor element.
++             * @attribute href
++             * @type String
++             * @default '#'
++             */
++            this.setAttributeConfig('href', {
++                value: attr.href ||
++                        this.getElementsByTagName('a')[0].getAttribute('href', 2) || '#',
++                method: function(value) {
++                    this.getElementsByTagName('a')[0].href = value;
++                },
++                validator: Lang.isString
++            });
++            
++            /**
++             * The Whether or not the tab's content is visible.
++             * @attribute contentVisible
++             * @type Boolean
++             * @default false
++             */
++            this.setAttributeConfig('contentVisible', {
++                value: attr.contentVisible,
++                method: function(value) {
++                    if (value) {
++                        Dom.removeClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
++                        
++                        if ( this.get(DATA_SRC) ) {
++                         // load dynamic content unless already loading or loaded and caching
++                            if ( !this._loading && !(this.get(DATA_LOADED) && this.get(CACHE_DATA)) ) {
++                                this._dataConnect();
++                            }
++                        }
++                    } else {
++                        Dom.addClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
++                    }
++                },
++                validator: Lang.isBoolean
++            });
++            YAHOO.log('attributes initialized', 'info', 'Tab');
++        },
++        
++        _dataConnect: function() {
++            if (!Y.Connect) {
++                YAHOO.log('YAHOO.util.Connect dependency not met',
++                        'error', 'Tab');
++                return false;
++            }
++
++            Dom.addClass(this.get(CONTENT_EL).parentNode, this.LOADING_CLASSNAME);
++            this._loading = true; 
++            this.dataConnection = Y.Connect.asyncRequest(
++                this.get(LOAD_METHOD),
++                this.get(DATA_SRC), 
++                {
++                    success: function(o) {
++                        YAHOO.log('content loaded successfully', 'info', 'Tab');
++                        this.loadHandler.success.call(this, o);
++                        this.set(DATA_LOADED, true);
++                        this.dataConnection = null;
++                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
++                                this.LOADING_CLASSNAME);
++                        this._loading = false;
++                    },
++                    failure: function(o) {
++                        YAHOO.log('loading failed: ' + o.statusText, 'error', 'Tab');
++                        this.loadHandler.failure.call(this, o);
++                        this.dataConnection = null;
++                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
++                                this.LOADING_CLASSNAME);
++                        this._loading = false;
++                    },
++                    scope: this,
++                    timeout: this.get(DATA_TIMEOUT)
++                },
++
++                this.get(POST_DATA)
++            );
++        },
++        _createTabElement: function(attr) {
++            var el = document.createElement('li'),
++                a = document.createElement('a'),
++                label = attr.label || null,
++                labelEl = attr.labelEl || null;
++            
++            a.href = attr.href || '#'; // TODO: Use Dom.setAttribute?
++            el.appendChild(a);
++            
++            if (labelEl) { // user supplied labelEl
++                if (!label) { // user supplied label
++                    label = this._getLabel();
++                }
++            } else {
++                labelEl = this._createLabelEl();
++            }
++            
++            a.appendChild(labelEl);
++            
++            YAHOO.log('creating Tab Dom', 'info', 'Tab');
++            return el;
++        },
++
++        _getLabelEl: function() {
++            return this.getElementsByTagName(this.LABEL_TAGNAME)[0];
++        },
++
++        _createLabelEl: function() {
++            var el = document.createElement(this.LABEL_TAGNAME);
++            return el;
++        },
++    
++        
++        _getLabel: function() {
++            var el = this.get(LABEL_EL);
++                
++                if (!el) {
++                    return undefined;
++                }
++            
++            return el.innerHTML;
++        },
++
++        _onActivate: function(e, tabview) {
++            var tab = this,
++                silent = false;
++
++            Y.Event.preventDefault(e);
++            if (tab === tabview.get(ACTIVE_TAB)) {
++                silent = true; // dont fire activeTabChange if already active
++            }
++            tabview.set(ACTIVE_TAB, tab, silent);
++        },
++
++        _onActivationEventChange: function(e) {
++            var tab = this;
++
++            if (e.prevValue != e.newValue) {
++                tab.removeListener(e.prevValue, tab._onActivate);
++                tab.addListener(e.newValue, tab._onActivate, this, tab);
++            }
++        }
++    });
++    
++    
++    /**
++     * Fires when a tab is removed from the tabview
++     * @event remove
++     * @type CustomEvent
++     * @param {Event} An event object with fields for "type" ("remove")
++     * and "tabview" (the tabview instance it was removed from) 
++     */
++    
++    YAHOO.widget.Tab = Tab;
++})();
++
++YAHOO.register("tabview", YAHOO.widget.TabView, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/tabview/tabview-min.js b/pylons_app/public/js/yui/tabview/tabview-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/tabview-min.js
+@@ -0,0 +1,8 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var B=YAHOO.util,C=B.Dom,H=B.Event,F=window.document,J="active",D="activeIndex",E="activeTab",A="contentEl",G="element",I=function(L,K){K=K||{};if(arguments.length==1&&!YAHOO.lang.isString(L)&&!L.nodeName){K=L;L=K.element||null;}if(!L&&!K.element){L=this._createTabViewElement(K);}I.superclass.constructor.call(this,L,K);};YAHOO.extend(I,B.Element,{CLASSNAME:"yui-navset",TAB_PARENT_CLASSNAME:"yui-nav",CONTENT_PARENT_CLASSNAME:"yui-content",_tabParent:null,_contentParent:null,addTab:function(P,L){var N=this.get("tabs"),Q=this.getTab(L),R=this._tabParent,K=this._contentParent,M=P.get(G),O=P.get(A);if(!N){this._queue[this._queue.length]=["addTab",arguments];return false;}L=(L===undefined)?N.length:L;N.splice(L,0,P);if(Q){R.insertBefore(M,Q.get(G));}else{R.appendChild(M);}if(O&&!C.isAncestor(K,O)){K.appendChild(O);}if(!P.get(J)){P.set("contentVisible",false,true);}else{this.set(E,P,true);this.set("activeIndex",L,true);}this._initTabEvents(P);},_initTabEvents:function(K){K.addListener(K.get("activationEvent"),K._onActivate,this,K);K.addListener(K.get("activationEventChange"),K._onActivationEventChange,this,K);},_removeTabEvents:function(K){K.removeListener(K.get("activationEvent"),K._onActivate,this,K);K.removeListener("activationEventChange",K._onActivationEventChange,this,K);},DOMEventHandler:function(P){var Q=H.getTarget(P),S=this._tabParent,R=this.get("tabs"),M,L,K;if(C.isAncestor(S,Q)){for(var N=0,O=R.length;N<O;N++){L=R[N].get(G);K=R[N].get(A);if(Q==L||C.isAncestor(L,Q)){M=R[N];break;}}if(M){M.fireEvent(P.type,P);}}},getTab:function(K){return this.get("tabs")[K];},getTabIndex:function(O){var L=null,N=this.get("tabs");for(var M=0,K=N.length;M<K;++M){if(O==N[M]){L=M;break;}}return L;},removeTab:function(M){var L=this.get("tabs").length,K=this.getTabIndex(M);if(M===this.get(E)){if(L>1){if(K+1===L){this.set(D,K-1);}else{this.set(D,K+1);}}else{this.set(E,null);}}this._removeTabEvents(M);this._tabParent.removeChild(M.get(G));this._contentParent.removeChild(M.get(A));this._configs.tabs.value.splice(K,1);M.fireEvent("remove",{type:"remove",tabview:this});},toString:function(){var K=this.get("id")||this.get("tagName");return"TabView "+K;},contentTransition:function(L,K){if(L){L.set("contentVisible",true);}if(K){K.set("contentVisible",false);}},initAttributes:function(K){I.superclass.initAttributes.call(this,K);if(!K.orientation){K.orientation="top";}var M=this.get(G);if(!C.hasClass(M,this.CLASSNAME)){C.addClass(M,this.CLASSNAME);}this.setAttributeConfig("tabs",{value:[],readOnly:true});this._tabParent=this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,"ul")[0]||this._createTabParent();this._contentParent=this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,"div")[0]||this._createContentParent();this.setAttributeConfig("orientation",{value:K.orientation,method:function(N){var O=this.get("orientation");this.addClass("yui-navset-"+N);if(O!=N){this.removeClass("yui-navset-"+O);}if(N==="bottom"){this.appendChild(this._tabParent);}}});this.setAttributeConfig(D,{value:K.activeIndex,validator:function(O){var N=true;if(O&&this.getTab(O).get("disabled")){N=false;}return N;}});this.setAttributeConfig(E,{value:K.activeTab,method:function(O){var N=this.get(E);if(O){O.set(J,true);}if(N&&N!==O){N.set(J,false);}if(N&&O!==N){this.contentTransition(O,N);}else{if(O){O.set("contentVisible",true);}}},validator:function(O){var N=true;if(O&&O.get("disabled")){N=false;}return N;}});this.on("activeTabChange",this._onActiveTabChange);this.on("activeIndexChange",this._onActiveIndexChange);if(this._tabParent){this._initTabs();}this.DOM_EVENTS.submit=false;this.DOM_EVENTS.focus=false;this.DOM_EVENTS.blur=false;for(var L in this.DOM_EVENTS){if(YAHOO.lang.hasOwnProperty(this.DOM_EVENTS,L)){this.addListener.call(this,L,this.DOMEventHandler);}}},deselectTab:function(K){if(this.getTab(K)===this.get("activeTab")){this.set("activeTab",null);}},selectTab:function(K){this.set("activeTab",this.getTab(K));},_onActiveTabChange:function(M){var K=this.get(D),L=this.getTabIndex(M.newValue);if(K!==L){if(!(this.set(D,L))){this.set(E,M.prevValue);}}},_onActiveIndexChange:function(K){if(K.newValue!==this.getTabIndex(this.get(E))){if(!(this.set(E,this.getTab(K.newValue)))){this.set(D,K.prevValue);}}},_initTabs:function(){var P=C.getChildren(this._tabParent),N=C.getChildren(this._contentParent),M=this.get(D),Q,L,R;for(var O=0,K=P.length;O<K;++O){L={};if(N[O]){L.contentEl=N[O];}Q=new YAHOO.widget.Tab(P[O],L);this.addTab(Q);if(Q.hasClass(Q.ACTIVE_CLASSNAME)){R=Q;}}if(M){this.set(E,this.getTab(M));}else{this._configs.activeTab.value=R;this._configs.activeIndex.value=this.getTabIndex(R);}},_createTabViewElement:function(K){var L=F.createElement("div");if(this.CLASSNAME){L.className=this.CLASSNAME;}return L;},_createTabParent:function(K){var L=F.createElement("ul");if(this.TAB_PARENT_CLASSNAME){L.className=this.TAB_PARENT_CLASSNAME;}this.get(G).appendChild(L);return L;},_createContentParent:function(K){var L=F.createElement("div");if(this.CONTENT_PARENT_CLASSNAME){L.className=this.CONTENT_PARENT_CLASSNAME;}this.get(G).appendChild(L);return L;}});YAHOO.widget.TabView=I;})();(function(){var D=YAHOO.util,I=D.Dom,L=YAHOO.lang,M="activeTab",J="label",G="labelEl",Q="content",C="contentEl",O="element",P="cacheData",B="dataSrc",H="dataLoaded",A="dataTimeout",N="loadMethod",F="postData",K="disabled",E=function(S,R){R=R||{};if(arguments.length==1&&!L.isString(S)&&!S.nodeName){R=S;S=R.element;}if(!S&&!R.element){S=this._createTabElement(R);}this.loadHandler={success:function(T){this.set(Q,T.responseText);},failure:function(T){}};E.superclass.constructor.call(this,S,R);this.DOM_EVENTS={};};YAHOO.extend(E,YAHOO.util.Element,{LABEL_TAGNAME:"em",ACTIVE_CLASSNAME:"selected",HIDDEN_CLASSNAME:"yui-hidden",ACTIVE_TITLE:"active",DISABLED_CLASSNAME:K,LOADING_CLASSNAME:"loading",dataConnection:null,loadHandler:null,_loading:false,toString:function(){var R=this.get(O),S=R.id||R.tagName;return"Tab "+S;},initAttributes:function(R){R=R||{};E.superclass.initAttributes.call(this,R);
++this.setAttributeConfig("activationEvent",{value:R.activationEvent||"click"});this.setAttributeConfig(G,{value:R[G]||this._getLabelEl(),method:function(S){S=I.get(S);var T=this.get(G);if(T){if(T==S){return false;}T.parentNode.replaceChild(S,T);this.set(J,S.innerHTML);}}});this.setAttributeConfig(J,{value:R.label||this._getLabel(),method:function(T){var S=this.get(G);if(!S){this.set(G,this._createLabelEl());}S.innerHTML=T;}});this.setAttributeConfig(C,{value:R[C]||document.createElement("div"),method:function(S){S=I.get(S);var T=this.get(C);if(T){if(T===S){return false;}if(!this.get("selected")){I.addClass(S,this.HIDDEN_CLASSNAME);}T.parentNode.replaceChild(S,T);this.set(Q,S.innerHTML);}}});this.setAttributeConfig(Q,{value:R[Q],method:function(S){this.get(C).innerHTML=S;}});this.setAttributeConfig(B,{value:R.dataSrc});this.setAttributeConfig(P,{value:R.cacheData||false,validator:L.isBoolean});this.setAttributeConfig(N,{value:R.loadMethod||"GET",validator:L.isString});this.setAttributeConfig(H,{value:false,validator:L.isBoolean,writeOnce:true});this.setAttributeConfig(A,{value:R.dataTimeout||null,validator:L.isNumber});this.setAttributeConfig(F,{value:R.postData||null});this.setAttributeConfig("active",{value:R.active||this.hasClass(this.ACTIVE_CLASSNAME),method:function(S){if(S===true){this.addClass(this.ACTIVE_CLASSNAME);this.set("title",this.ACTIVE_TITLE);}else{this.removeClass(this.ACTIVE_CLASSNAME);this.set("title","");}},validator:function(S){return L.isBoolean(S)&&!this.get(K);}});this.setAttributeConfig(K,{value:R.disabled||this.hasClass(this.DISABLED_CLASSNAME),method:function(S){if(S===true){I.addClass(this.get(O),this.DISABLED_CLASSNAME);}else{I.removeClass(this.get(O),this.DISABLED_CLASSNAME);}},validator:L.isBoolean});this.setAttributeConfig("href",{value:R.href||this.getElementsByTagName("a")[0].getAttribute("href",2)||"#",method:function(S){this.getElementsByTagName("a")[0].href=S;},validator:L.isString});this.setAttributeConfig("contentVisible",{value:R.contentVisible,method:function(S){if(S){I.removeClass(this.get(C),this.HIDDEN_CLASSNAME);if(this.get(B)){if(!this._loading&&!(this.get(H)&&this.get(P))){this._dataConnect();}}}else{I.addClass(this.get(C),this.HIDDEN_CLASSNAME);}},validator:L.isBoolean});},_dataConnect:function(){if(!D.Connect){return false;}I.addClass(this.get(C).parentNode,this.LOADING_CLASSNAME);this._loading=true;this.dataConnection=D.Connect.asyncRequest(this.get(N),this.get(B),{success:function(R){this.loadHandler.success.call(this,R);this.set(H,true);this.dataConnection=null;I.removeClass(this.get(C).parentNode,this.LOADING_CLASSNAME);this._loading=false;},failure:function(R){this.loadHandler.failure.call(this,R);this.dataConnection=null;I.removeClass(this.get(C).parentNode,this.LOADING_CLASSNAME);this._loading=false;},scope:this,timeout:this.get(A)},this.get(F));},_createTabElement:function(R){var V=document.createElement("li"),S=document.createElement("a"),U=R.label||null,T=R.labelEl||null;S.href=R.href||"#";V.appendChild(S);if(T){if(!U){U=this._getLabel();}}else{T=this._createLabelEl();}S.appendChild(T);return V;},_getLabelEl:function(){return this.getElementsByTagName(this.LABEL_TAGNAME)[0];},_createLabelEl:function(){var R=document.createElement(this.LABEL_TAGNAME);return R;},_getLabel:function(){var R=this.get(G);if(!R){return undefined;}return R.innerHTML;},_onActivate:function(U,T){var S=this,R=false;D.Event.preventDefault(U);if(S===T.get(M)){R=true;}T.set(M,S,R);},_onActivationEventChange:function(S){var R=this;if(S.prevValue!=S.newValue){R.removeListener(S.prevValue,R._onActivate);R.addListener(S.newValue,R._onActivate,this,R);}}});YAHOO.widget.Tab=E;})();YAHOO.register("tabview",YAHOO.widget.TabView,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/tabview/tabview.js b/pylons_app/public/js/yui/tabview/tabview.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/tabview/tabview.js
+@@ -0,0 +1,987 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function() {
++
++    /**
++     * The tabview module provides a widget for managing content bound to tabs.
++     * @module tabview
++     * @requires yahoo, dom, event, element
++     *
++     */
++
++    var Y = YAHOO.util,
++        Dom = Y.Dom,
++        Event = Y.Event,
++        document = window.document,
++    
++        // STRING CONSTANTS
++        ACTIVE = 'active',
++        ACTIVE_INDEX = 'activeIndex',
++        ACTIVE_TAB = 'activeTab',
++        CONTENT_EL = 'contentEl',
++        ELEMENT = 'element',
++    
++    /**
++     * A widget to control tabbed views.
++     * @namespace YAHOO.widget
++     * @class TabView
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param {HTMLElement | String | Object} el(optional) The html 
++     * element that represents the TabView, or the attribute object to use. 
++     * An element will be created if none provided.
++     * @param {Object} attr (optional) A key map of the tabView's 
++     * initial attributes.  Ignored if first arg is attributes object.
++     */
++    TabView = function(el, attr) {
++        attr = attr || {};
++        if (arguments.length == 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
++            attr = el; // treat first arg as attr object
++            el = attr.element || null;
++        }
++        
++        if (!el && !attr.element) { // create if we dont have one
++            el = this._createTabViewElement(attr);
++        }
++        TabView.superclass.constructor.call(this, el, attr); 
++    };
++
++    YAHOO.extend(TabView, Y.Element, {
++        /**
++         * The className to add when building from scratch. 
++         * @property CLASSNAME
++         * @default "navset"
++         */
++        CLASSNAME: 'yui-navset',
++        
++        /**
++         * The className of the HTMLElement containing the TabView's tab elements
++         * to look for when building from existing markup, or to add when building
++         * from scratch. 
++         * All childNodes of the tab container are treated as Tabs when building
++         * from existing markup.
++         * @property TAB_PARENT_CLASSNAME
++         * @default "nav"
++         */
++        TAB_PARENT_CLASSNAME: 'yui-nav',
++        
++        /**
++         * The className of the HTMLElement containing the TabView's label elements
++         * to look for when building from existing markup, or to add when building
++         * from scratch. 
++         * All childNodes of the content container are treated as content elements when
++         * building from existing markup.
++         * @property CONTENT_PARENT_CLASSNAME
++         * @default "nav-content"
++         */
++        CONTENT_PARENT_CLASSNAME: 'yui-content',
++        
++        _tabParent: null,
++        _contentParent: null,
++        
++        /**
++         * Adds a Tab to the TabView instance.  
++         * If no index is specified, the tab is added to the end of the tab list.
++         * @method addTab
++         * @param {YAHOO.widget.Tab} tab A Tab instance to add.
++         * @param {Integer} index The position to add the tab. 
++         * @return void
++         */
++        addTab: function(tab, index) {
++            var tabs = this.get('tabs'),
++                before = this.getTab(index),
++                tabParent = this._tabParent,
++                contentParent = this._contentParent,
++                tabElement = tab.get(ELEMENT),
++                contentEl = tab.get(CONTENT_EL);
++
++            if (!tabs) { // not ready yet
++                this._queue[this._queue.length] = ['addTab', arguments];
++                return false;
++            }
++            
++            index = (index === undefined) ? tabs.length : index;
++            
++            tabs.splice(index, 0, tab);
++
++            if ( before ) {
++                tabParent.insertBefore(tabElement, before.get(ELEMENT));
++            } else {
++                tabParent.appendChild(tabElement);
++            }
++
++            if ( contentEl && !Dom.isAncestor(contentParent, contentEl) ) {
++                contentParent.appendChild(contentEl);
++            }
++            
++            if ( !tab.get(ACTIVE) ) {
++                tab.set('contentVisible', false, true); /* hide if not active */
++            } else {
++                this.set(ACTIVE_TAB, tab, true);
++                this.set('activeIndex', index, true);
++            }
++
++            this._initTabEvents(tab);
++        },
++
++        _initTabEvents: function(tab) {
++            tab.addListener( tab.get('activationEvent'), tab._onActivate, this, tab);
++            tab.addListener( tab.get('activationEventChange'), tab._onActivationEventChange, this, tab);
++        },
++
++        _removeTabEvents: function(tab) {
++            tab.removeListener(tab.get('activationEvent'), tab._onActivate, this, tab);
++            tab.removeListener('activationEventChange', tab._onActivationEventChange, this, tab);
++        },
++
++        /**
++         * Routes childNode events.
++         * @method DOMEventHandler
++         * @param {event} e The Dom event that is being handled.
++         * @return void
++         */
++        DOMEventHandler: function(e) {
++            var target = Event.getTarget(e),
++                tabParent = this._tabParent,
++                tabs = this.get('tabs'),
++                tab,
++                tabEl,
++                contentEl;
++
++            
++            if (Dom.isAncestor(tabParent, target) ) {
++                for (var i = 0, len = tabs.length; i < len; i++) {
++                    tabEl = tabs[i].get(ELEMENT);
++                    contentEl = tabs[i].get(CONTENT_EL);
++
++                    if ( target == tabEl || Dom.isAncestor(tabEl, target) ) {
++                        tab = tabs[i];
++                        break; // note break
++                    }
++                } 
++                
++                if (tab) {
++                    tab.fireEvent(e.type, e);
++                }
++            }
++        },
++        
++        /**
++         * Returns the Tab instance at the specified index.
++         * @method getTab
++         * @param {Integer} index The position of the Tab.
++         * @return YAHOO.widget.Tab
++         */
++        getTab: function(index) {
++            return this.get('tabs')[index];
++        },
++        
++        /**
++         * Returns the index of given tab.
++         * @method getTabIndex
++         * @param {YAHOO.widget.Tab} tab The tab whose index will be returned.
++         * @return int
++         */
++        getTabIndex: function(tab) {
++            var index = null,
++                tabs = this.get('tabs');
++            for (var i = 0, len = tabs.length; i < len; ++i) {
++                if (tab == tabs[i]) {
++                    index = i;
++                    break;
++                }
++            }
++            
++            return index;
++        },
++        
++        /**
++         * Removes the specified Tab from the TabView.
++         * @method removeTab
++         * @param {YAHOO.widget.Tab} item The Tab instance to be removed.
++         * @return void
++         */
++        removeTab: function(tab) {
++            var tabCount = this.get('tabs').length,
++                index = this.getTabIndex(tab);
++
++            if ( tab === this.get(ACTIVE_TAB) ) { 
++                if (tabCount > 1) { // select another tab
++                    if (index + 1 === tabCount) { // if last, activate previous
++                        this.set(ACTIVE_INDEX, index - 1);
++                    } else { // activate next tab
++                        this.set(ACTIVE_INDEX, index + 1);
++                    }
++                } else { // no more tabs
++                    this.set(ACTIVE_TAB, null);
++                }
++            }
++            
++            this._removeTabEvents(tab);
++            this._tabParent.removeChild( tab.get(ELEMENT) );
++            this._contentParent.removeChild( tab.get(CONTENT_EL) );
++            this._configs.tabs.value.splice(index, 1);
++
++            tab.fireEvent('remove', { type: 'remove', tabview: this });
++        },
++        
++        /**
++         * Provides a readable name for the TabView instance.
++         * @method toString
++         * @return String
++         */
++        toString: function() {
++            var name = this.get('id') || this.get('tagName');
++            return "TabView " + name; 
++        },
++        
++        /**
++         * The transiton to use when switching between tabs.
++         * @method contentTransition
++         */
++        contentTransition: function(newTab, oldTab) {
++            if (newTab) {
++                newTab.set('contentVisible', true);
++            }
++            if (oldTab) {
++                oldTab.set('contentVisible', false);
++            }
++        },
++        
++        /**
++         * setAttributeConfigs TabView specific properties.
++         * @method initAttributes
++         * @param {Object} attr Hash of initial attributes
++         */
++        initAttributes: function(attr) {
++            TabView.superclass.initAttributes.call(this, attr);
++            
++            if (!attr.orientation) {
++                attr.orientation = 'top';
++            }
++            
++            var el = this.get(ELEMENT);
++
++            if (!Dom.hasClass(el, this.CLASSNAME)) {
++                Dom.addClass(el, this.CLASSNAME);        
++            }
++            
++            /**
++             * The Tabs belonging to the TabView instance.
++             * @attribute tabs
++             * @type Array
++             */
++            this.setAttributeConfig('tabs', {
++                value: [],
++                readOnly: true
++            });
++
++            /**
++             * The container of the tabView's label elements.
++             * @property _tabParent
++             * @private
++             * @type HTMLElement
++             */
++            this._tabParent = 
++                    this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,
++                            'ul' )[0] || this._createTabParent();
++                
++            /**
++             * The container of the tabView's content elements.
++             * @property _contentParent
++             * @type HTMLElement
++             * @private
++             */
++            this._contentParent = 
++                    this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,
++                            'div')[0] ||  this._createContentParent();
++            
++            /**
++             * How the Tabs should be oriented relative to the TabView.
++             * @attribute orientation
++             * @type String
++             * @default "top"
++             */
++            this.setAttributeConfig('orientation', {
++                value: attr.orientation,
++                method: function(value) {
++                    var current = this.get('orientation');
++                    this.addClass('yui-navset-' + value);
++                    
++                    if (current != value) {
++                        this.removeClass('yui-navset-' + current);
++                    }
++                    
++                    if (value === 'bottom') {
++                        this.appendChild(this._tabParent);
++                    }
++                }
++            });
++            
++            /**
++             * The index of the tab currently active.
++             * @attribute activeIndex
++             * @type Int
++             */
++            this.setAttributeConfig(ACTIVE_INDEX, {
++                value: attr.activeIndex,
++                validator: function(value) {
++                    var ret = true;
++                    if (value && this.getTab(value).get('disabled')) { // cannot activate if disabled
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++            
++            /**
++             * The tab currently active.
++             * @attribute activeTab
++             * @type YAHOO.widget.Tab
++             */
++            this.setAttributeConfig(ACTIVE_TAB, {
++                value: attr.activeTab,
++                method: function(tab) {
++                    var activeTab = this.get(ACTIVE_TAB);
++                    
++                    if (tab) {
++                        tab.set(ACTIVE, true);
++                    }
++                    
++                    if (activeTab && activeTab !== tab) {
++                        activeTab.set(ACTIVE, false);
++                    }
++                    
++                    if (activeTab && tab !== activeTab) { // no transition if only 1
++                        this.contentTransition(tab, activeTab);
++                    } else if (tab) {
++                        tab.set('contentVisible', true);
++                    }
++                },
++                validator: function(value) {
++                    var ret = true;
++                    if (value && value.get('disabled')) { // cannot activate if disabled
++                        ret = false;
++                    }
++                    return ret;
++                }
++            });
++
++            this.on('activeTabChange', this._onActiveTabChange);
++            this.on('activeIndexChange', this._onActiveIndexChange);
++
++            if ( this._tabParent ) {
++                this._initTabs();
++            }
++            
++            // Due to delegation we add all DOM_EVENTS to the TabView container
++            // but IE will leak when unsupported events are added, so remove these
++            this.DOM_EVENTS.submit = false;
++            this.DOM_EVENTS.focus = false;
++            this.DOM_EVENTS.blur = false;
++
++            for (var type in this.DOM_EVENTS) {
++                if ( YAHOO.lang.hasOwnProperty(this.DOM_EVENTS, type) ) {
++                    this.addListener.call(this, type, this.DOMEventHandler);
++                }
++            }
++        },
++
++        /**
++         * Removes selected state from the given tab if it is the activeTab
++         * @method deselectTab
++         * @param {Int} index The tab index to deselect 
++         */
++        deselectTab: function(index) {
++            if (this.getTab(index) === this.get('activeTab')) {
++                this.set('activeTab', null);
++            }
++        },
++
++        /**
++         * Makes the tab at the given index the active tab
++         * @method selectTab
++         * @param {Int} index The tab index to be made active
++         */
++        selectTab: function(index) {
++            this.set('activeTab', this.getTab(index));
++        },
++
++        _onActiveTabChange: function(e) {
++            var activeIndex = this.get(ACTIVE_INDEX),
++                newIndex = this.getTabIndex(e.newValue);
++
++            if (activeIndex !== newIndex) {
++                if (!(this.set(ACTIVE_INDEX, newIndex)) ) { // NOTE: setting
++                     // revert if activeIndex update fails (cancelled via beforeChange) 
++                    this.set(ACTIVE_TAB, e.prevValue);
++                }
++            }
++        },
++        
++        _onActiveIndexChange: function(e) {
++            // no set if called from ActiveTabChange event
++            if (e.newValue !== this.getTabIndex(this.get(ACTIVE_TAB))) {
++                if (!(this.set(ACTIVE_TAB, this.getTab(e.newValue))) ) { // NOTE: setting
++                     // revert if activeTab update fails (cancelled via beforeChange) 
++                    this.set(ACTIVE_INDEX, e.prevValue);
++                }
++            }
++        },
++
++        /**
++         * Creates Tab instances from a collection of HTMLElements.
++         * @method _initTabs
++         * @private
++         * @return void
++         */
++        _initTabs: function() {
++            var tabs = Dom.getChildren(this._tabParent),
++                contentElements = Dom.getChildren(this._contentParent),
++                activeIndex = this.get(ACTIVE_INDEX),
++                tab,
++                attr,
++                active;
++
++            for (var i = 0, len = tabs.length; i < len; ++i) {
++                attr = {};
++                
++                if (contentElements[i]) {
++                    attr.contentEl = contentElements[i];
++                }
++
++                tab = new YAHOO.widget.Tab(tabs[i], attr);
++                this.addTab(tab);
++                
++                if (tab.hasClass(tab.ACTIVE_CLASSNAME) ) {
++                    active = tab;
++                }
++            }
++            if (activeIndex) {
++                this.set(ACTIVE_TAB, this.getTab(activeIndex));
++            } else {
++                this._configs.activeTab.value = active; // dont invoke method
++                this._configs.activeIndex.value = this.getTabIndex(active);
++            }
++        },
++
++        _createTabViewElement: function(attr) {
++            var el = document.createElement('div');
++
++            if ( this.CLASSNAME ) {
++                el.className = this.CLASSNAME;
++            }
++            
++            return el;
++        },
++
++        _createTabParent: function(attr) {
++            var el = document.createElement('ul');
++
++            if ( this.TAB_PARENT_CLASSNAME ) {
++                el.className = this.TAB_PARENT_CLASSNAME;
++            }
++            
++            this.get(ELEMENT).appendChild(el);
++            
++            return el;
++        },
++        
++        _createContentParent: function(attr) {
++            var el = document.createElement('div');
++
++            if ( this.CONTENT_PARENT_CLASSNAME ) {
++                el.className = this.CONTENT_PARENT_CLASSNAME;
++            }
++            
++            this.get(ELEMENT).appendChild(el);
++            
++            return el;
++        }
++    });
++    
++    
++    YAHOO.widget.TabView = TabView;
++})();
++
++(function() {
++    var Y = YAHOO.util, 
++        Dom = Y.Dom,
++        Lang = YAHOO.lang,
++    
++
++    // STRING CONSTANTS
++        ACTIVE_TAB = 'activeTab',
++        LABEL = 'label',
++        LABEL_EL = 'labelEl',
++        CONTENT = 'content',
++        CONTENT_EL = 'contentEl',
++        ELEMENT = 'element',
++        CACHE_DATA = 'cacheData',
++        DATA_SRC = 'dataSrc',
++        DATA_LOADED = 'dataLoaded',
++        DATA_TIMEOUT = 'dataTimeout',
++        LOAD_METHOD = 'loadMethod',
++        POST_DATA = 'postData',
++        DISABLED = 'disabled',
++    
++    /**
++     * A representation of a Tab's label and content.
++     * @namespace YAHOO.widget
++     * @class Tab
++     * @extends YAHOO.util.Element
++     * @constructor
++     * @param element {HTMLElement | String} (optional) The html element that 
++     * represents the Tab. An element will be created if none provided.
++     * @param {Object} properties A key map of initial properties
++     */
++    Tab = function(el, attr) {
++        attr = attr || {};
++        if (arguments.length == 1 && !Lang.isString(el) && !el.nodeName) {
++            attr = el;
++            el = attr.element;
++        }
++
++        if (!el && !attr.element) {
++            el = this._createTabElement(attr);
++        }
++
++        this.loadHandler =  {
++            success: function(o) {
++                this.set(CONTENT, o.responseText);
++            },
++            failure: function(o) {
++            }
++        };
++        
++        Tab.superclass.constructor.call(this, el, attr);
++        
++        this.DOM_EVENTS = {}; // delegating to tabView
++    };
++
++    YAHOO.extend(Tab, YAHOO.util.Element, {
++        /**
++         * The default tag name for a Tab's inner element.
++         * @property LABEL_INNER_TAGNAME
++         * @type String
++         * @default "em"
++         */
++        LABEL_TAGNAME: 'em',
++        
++        /**
++         * The class name applied to active tabs.
++         * @property ACTIVE_CLASSNAME
++         * @type String
++         * @default "selected"
++         */
++        ACTIVE_CLASSNAME: 'selected',
++        
++        /**
++         * The class name applied to active tabs.
++         * @property HIDDEN_CLASSNAME
++         * @type String
++         * @default "yui-hidden"
++         */
++        HIDDEN_CLASSNAME: 'yui-hidden',
++        
++        /**
++         * The title applied to active tabs.
++         * @property ACTIVE_TITLE
++         * @type String
++         * @default "active"
++         */
++        ACTIVE_TITLE: 'active',
++
++        /**
++         * The class name applied to disabled tabs.
++         * @property DISABLED_CLASSNAME
++         * @type String
++         * @default "disabled"
++         */
++        DISABLED_CLASSNAME: DISABLED,
++        
++        /**
++         * The class name applied to dynamic tabs while loading.
++         * @property LOADING_CLASSNAME
++         * @type String
++         * @default "disabled"
++         */
++        LOADING_CLASSNAME: 'loading',
++
++        /**
++         * Provides a reference to the connection request object when data is
++         * loaded dynamically.
++         * @property dataConnection
++         * @type Object
++         */
++        dataConnection: null,
++        
++        /**
++         * Object containing success and failure callbacks for loading data.
++         * @property loadHandler
++         * @type object
++         */
++        loadHandler: null,
++
++        _loading: false,
++        
++        /**
++         * Provides a readable name for the tab.
++         * @method toString
++         * @return String
++         */
++        toString: function() {
++            var el = this.get(ELEMENT),
++                id = el.id || el.tagName;
++            return "Tab " + id; 
++        },
++        
++        /**
++         * setAttributeConfigs Tab specific properties.
++         * @method initAttributes
++         * @param {Object} attr Hash of initial attributes
++         */
++        initAttributes: function(attr) {
++            attr = attr || {};
++            Tab.superclass.initAttributes.call(this, attr);
++            
++            /**
++             * The event that triggers the tab's activation.
++             * @attribute activationEvent
++             * @type String
++             */
++            this.setAttributeConfig('activationEvent', {
++                value: attr.activationEvent || 'click'
++            });        
++
++            /**
++             * The element that contains the tab's label.
++             * @attribute labelEl
++             * @type HTMLElement
++             */
++            this.setAttributeConfig(LABEL_EL, {
++                value: attr[LABEL_EL] || this._getLabelEl(),
++                method: function(value) {
++                    value = Dom.get(value);
++                    var current = this.get(LABEL_EL);
++
++                    if (current) {
++                        if (current == value) {
++                            return false; // already set
++                        }
++                        
++                        current.parentNode.replaceChild(value, current);
++                        this.set(LABEL, value.innerHTML);
++                    }
++                } 
++            });
++
++            /**
++             * The tab's label text (or innerHTML).
++             * @attribute label
++             * @type String
++             */
++            this.setAttributeConfig(LABEL, {
++                value: attr.label || this._getLabel(),
++                method: function(value) {
++                    var labelEl = this.get(LABEL_EL);
++                    if (!labelEl) { // create if needed
++                        this.set(LABEL_EL, this._createLabelEl());
++                    }
++                    
++                    labelEl.innerHTML = value;
++                }
++            });
++            
++            /**
++             * The HTMLElement that contains the tab's content.
++             * @attribute contentEl
++             * @type HTMLElement
++             */
++            this.setAttributeConfig(CONTENT_EL, {
++                value: attr[CONTENT_EL] || document.createElement('div'),
++                method: function(value) {
++                    value = Dom.get(value);
++                    var current = this.get(CONTENT_EL);
++
++                    if (current) {
++                        if (current === value) {
++                            return false; // already set
++                        }
++                        if (!this.get('selected')) {
++                            Dom.addClass(value, this.HIDDEN_CLASSNAME);
++                        }
++                        current.parentNode.replaceChild(value, current);
++                        this.set(CONTENT, value.innerHTML);
++                    }
++                }
++            });
++            
++            /**
++             * The tab's content.
++             * @attribute content
++             * @type String
++             */
++            this.setAttributeConfig(CONTENT, {
++                value: attr[CONTENT],
++                method: function(value) {
++                    this.get(CONTENT_EL).innerHTML = value;
++                }
++            });
++
++            /**
++             * The tab's data source, used for loading content dynamically.
++             * @attribute dataSrc
++             * @type String
++             */
++            this.setAttributeConfig(DATA_SRC, {
++                value: attr.dataSrc
++            });
++            
++            /**
++             * Whether or not content should be reloaded for every view.
++             * @attribute cacheData
++             * @type Boolean
++             * @default false
++             */
++            this.setAttributeConfig(CACHE_DATA, {
++                value: attr.cacheData || false,
++                validator: Lang.isBoolean
++            });
++            
++            /**
++             * The method to use for the data request.
++             * @attribute loadMethod
++             * @type String
++             * @default "GET"
++             */
++            this.setAttributeConfig(LOAD_METHOD, {
++                value: attr.loadMethod || 'GET',
++                validator: Lang.isString
++            });
++
++            /**
++             * Whether or not any data has been loaded from the server.
++             * @attribute dataLoaded
++             * @type Boolean
++             */        
++            this.setAttributeConfig(DATA_LOADED, {
++                value: false,
++                validator: Lang.isBoolean,
++                writeOnce: true
++            });
++            
++            /**
++             * Number if milliseconds before aborting and calling failure handler.
++             * @attribute dataTimeout
++             * @type Number
++             * @default null
++             */
++            this.setAttributeConfig(DATA_TIMEOUT, {
++                value: attr.dataTimeout || null,
++                validator: Lang.isNumber
++            });
++            
++            /**
++             * Arguments to pass when POST method is used 
++             * @attribute postData
++             * @default null
++             */
++            this.setAttributeConfig(POST_DATA, {
++                value: attr.postData || null
++            });
++
++            /**
++             * Whether or not the tab is currently active.
++             * If a dataSrc is set for the tab, the content will be loaded from
++             * the given source.
++             * @attribute active
++             * @type Boolean
++             */
++            this.setAttributeConfig('active', {
++                value: attr.active || this.hasClass(this.ACTIVE_CLASSNAME),
++                method: function(value) {
++                    if (value === true) {
++                        this.addClass(this.ACTIVE_CLASSNAME);
++                        this.set('title', this.ACTIVE_TITLE);
++                    } else {
++                        this.removeClass(this.ACTIVE_CLASSNAME);
++                        this.set('title', '');
++                    }
++                },
++                validator: function(value) {
++                    return Lang.isBoolean(value) && !this.get(DISABLED) ;
++                }
++            });
++            
++            /**
++             * Whether or not the tab is disabled.
++             * @attribute disabled
++             * @type Boolean
++             */
++            this.setAttributeConfig(DISABLED, {
++                value: attr.disabled || this.hasClass(this.DISABLED_CLASSNAME),
++                method: function(value) {
++                    if (value === true) {
++                        Dom.addClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
++                    } else {
++                        Dom.removeClass(this.get(ELEMENT), this.DISABLED_CLASSNAME);
++                    }
++                },
++                validator: Lang.isBoolean
++            });
++            
++            /**
++             * The href of the tab's anchor element.
++             * @attribute href
++             * @type String
++             * @default '#'
++             */
++            this.setAttributeConfig('href', {
++                value: attr.href ||
++                        this.getElementsByTagName('a')[0].getAttribute('href', 2) || '#',
++                method: function(value) {
++                    this.getElementsByTagName('a')[0].href = value;
++                },
++                validator: Lang.isString
++            });
++            
++            /**
++             * The Whether or not the tab's content is visible.
++             * @attribute contentVisible
++             * @type Boolean
++             * @default false
++             */
++            this.setAttributeConfig('contentVisible', {
++                value: attr.contentVisible,
++                method: function(value) {
++                    if (value) {
++                        Dom.removeClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
++                        
++                        if ( this.get(DATA_SRC) ) {
++                         // load dynamic content unless already loading or loaded and caching
++                            if ( !this._loading && !(this.get(DATA_LOADED) && this.get(CACHE_DATA)) ) {
++                                this._dataConnect();
++                            }
++                        }
++                    } else {
++                        Dom.addClass(this.get(CONTENT_EL), this.HIDDEN_CLASSNAME);
++                    }
++                },
++                validator: Lang.isBoolean
++            });
++        },
++        
++        _dataConnect: function() {
++            if (!Y.Connect) {
++                return false;
++            }
++
++            Dom.addClass(this.get(CONTENT_EL).parentNode, this.LOADING_CLASSNAME);
++            this._loading = true; 
++            this.dataConnection = Y.Connect.asyncRequest(
++                this.get(LOAD_METHOD),
++                this.get(DATA_SRC), 
++                {
++                    success: function(o) {
++                        this.loadHandler.success.call(this, o);
++                        this.set(DATA_LOADED, true);
++                        this.dataConnection = null;
++                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
++                                this.LOADING_CLASSNAME);
++                        this._loading = false;
++                    },
++                    failure: function(o) {
++                        this.loadHandler.failure.call(this, o);
++                        this.dataConnection = null;
++                        Dom.removeClass(this.get(CONTENT_EL).parentNode,
++                                this.LOADING_CLASSNAME);
++                        this._loading = false;
++                    },
++                    scope: this,
++                    timeout: this.get(DATA_TIMEOUT)
++                },
++
++                this.get(POST_DATA)
++            );
++        },
++        _createTabElement: function(attr) {
++            var el = document.createElement('li'),
++                a = document.createElement('a'),
++                label = attr.label || null,
++                labelEl = attr.labelEl || null;
++            
++            a.href = attr.href || '#'; // TODO: Use Dom.setAttribute?
++            el.appendChild(a);
++            
++            if (labelEl) { // user supplied labelEl
++                if (!label) { // user supplied label
++                    label = this._getLabel();
++                }
++            } else {
++                labelEl = this._createLabelEl();
++            }
++            
++            a.appendChild(labelEl);
++            
++            return el;
++        },
++
++        _getLabelEl: function() {
++            return this.getElementsByTagName(this.LABEL_TAGNAME)[0];
++        },
++
++        _createLabelEl: function() {
++            var el = document.createElement(this.LABEL_TAGNAME);
++            return el;
++        },
++    
++        
++        _getLabel: function() {
++            var el = this.get(LABEL_EL);
++                
++                if (!el) {
++                    return undefined;
++                }
++            
++            return el.innerHTML;
++        },
++
++        _onActivate: function(e, tabview) {
++            var tab = this,
++                silent = false;
++
++            Y.Event.preventDefault(e);
++            if (tab === tabview.get(ACTIVE_TAB)) {
++                silent = true; // dont fire activeTabChange if already active
++            }
++            tabview.set(ACTIVE_TAB, tab, silent);
++        },
++
++        _onActivationEventChange: function(e) {
++            var tab = this;
++
++            if (e.prevValue != e.newValue) {
++                tab.removeListener(e.prevValue, tab._onActivate);
++                tab.addListener(e.newValue, tab._onActivate, this, tab);
++            }
++        }
++    });
++    
++    
++    /**
++     * Fires when a tab is removed from the tabview
++     * @event remove
++     * @type CustomEvent
++     * @param {Event} An event object with fields for "type" ("remove")
++     * and "tabview" (the tabview instance it was removed from) 
++     */
++    
++    YAHOO.widget.Tab = Tab;
++})();
++
++YAHOO.register("tabview", YAHOO.widget.TabView, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/check0.gif b/pylons_app/public/js/yui/treeview/assets/skins/sam/check0.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..193028b99361c6527f17a9056037f3d8729fada7
+GIT binary patch
+literal 608
+zc${<hbhEHb6krfzc;>|L^y$-=FJFHD{{8v$=l}lwYiw-%_U+rNSFb*Q{ycHwL|t9o
+z4<A0<y?b}lrcEs^Er0+1eemGH=FOX5ym+y5=gxcg?tT3D@%{VvckbL-vSi7nOP9WW
+z{W@>nyho27-Mo48_U+qq=FHi!VMBd=eR6X0+O=zU@7{g=`t?<-R$aV!QBO~=si|q#
+zu3gWbJ!@`mzI^%e<HwJeEnC*w+N!Uwzh}>$A3uKV-Me@C^y%BTZ(p%u#nr1<lai7Q
+z4GoQqjBebxaqHHtckkZazkmPJr%(UEfMI9?#h)yU3=B>TIv@@xP8ittHaImkx3spk
+zcXW1j_cS}oD)RAZvQFhQ(2;d)V&b%LWLdb7-%*ZJs)?PIkz=jHdIyeG>`e@u%yv6>
+z?PTU;Xp)hZV?1({UC2gSrb$3T*Y?823+fUAP4>#R_P6iY3#h8uH}RP1X*0Zd!7Rk1
+zz|$mdA||??`wO>&or-vqh_DzF&lv-S1q&KjjWjr<0uDP&Xcv&r`eEQOp;26^WI=#{
+kbK`MY%RC8zFAN@SoPt4S5i6CLC$RS>otjgrA;4e_0GYwkU;qFB
+
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/check1.gif b/pylons_app/public/js/yui/treeview/assets/skins/sam/check1.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..7d9ceba3847ffb41864626de755147cf2e0ccc41
+GIT binary patch
+literal 622
+zc${<hbhEHb6krfzcoxU7ckkYV2M?Y-d-m9|V>@>2*tTt3LPEl(O`BR;T8<t)x^m^p
+zLx&D+-n_Z7vGMNRyLax~*|%@s{{8#EefyT1oBQ<X(|h;s)zvlp|NsBht5*R50iQm7
+z`uq3qg9i_uKYw0dU%zwb&YL%HK6>=%(xpqq#l;5>99Xq#)&2YTYiepbIy&0g+AOW@
+zckS9Guc-F@`}d~imPLyeZQs6~fsu`YfvK{pX2F65U0q$Rt*sL$O-@Ws1A@}h((LT)
+z?(XjO>(?(?vSiJgH4`UJK6B=bk&)5y<Hw_7;=X?U%E-vr)YMd0->`M-)|l9Y<;$0E
+z*|Mdlr)S-|b(NKs3l=PFZf@Sadv|qB-H{_lmMvRWUS2+J+H@9n9wt`q{DLAwL&J0D
+z&M`1B06oP(d!YD}g^__FjzI^+0mTUe`{{-_U|6)awRd!Ob@w!jE68zhxbsfsFbh-=
+zZ_;J6i(y*0&@o1p&9zBFl7)LM<N9D$c}a;T5jIwaUAw$ugIL)_niPdqS&p+9$HoSD
+z3oACsDC=`Y>4h6ccyO60%QUH}bGgLoXhoX)*@pV7HSuY(dx{ywiute_*vs)X@%svR
+zurM?^C$umyWZ4LWFtWBVa<-{RI21at$ceI)o|xFseY{_8<(n4@9!-3Tr-Ss2Hy!O_
+eag;Xc_;Fytv&PxlE*Up2tXO`2emfH*gEavB6Yh%u
+
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/check2.gif b/pylons_app/public/js/yui/treeview/assets/skins/sam/check2.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..181317599bfd45f03a7a69784b232509171d98e9
+GIT binary patch
+literal 609
+zc${<hbhEHb6krfzc;?HnW5<qT$Bvyndv?o~EeQz;hYlT*RWjJLX;Vu}%g&uUH*enD
+z*x0yj+qV7t_a8laG$0^g`}Xa*xw-rH?R)j=)ul_9{{H>@{Q2|Z;^P1R|37;4=+mc9
+z2M!#ludjdl^y!^DcW&Oi`QX8Wd-v|GTD9u_{rlg(eY<=2?(*f!7cE+}Zr!@3rlz#C
+zw93lLty{Ntbad?6wX3|me9f9QU0q#_jEvpg-8D5erKP3o*RL-ssmjjIK6B=bk&#hr
+zYwM9CN4|dj+Sb-)XlVHT`}dxnp5w=lFIlo=!GZ<LmMxnybw+b@^TC4$SFT*SckkYF
+z=gu)OFaVv$FeriIPZmZ7244mp5C;?|4D9<Fe4CnETHD$?I=i}inkD3AI5;%9r*c@k
+z%S$vlusC}&EnH~nt;Ay6B+Spiy4GX82P-GPaFZ+xkJql<yLeb+n<NF57>*v}6i^eC
+zY*G+c_q=%NqKmjfld_4YhB@0kHa9a@ZRI9aJ9ZuB*ROd53}jTB<Q#>h*Ykeo_3$#3
+zYf_Bz;CSHB(agZXY%)X8X#%S#-!zXo8WY+1xSKq#TsXL7vAdd4-5v$S6-{hhoFXf1
+U4qReo<rS4WImh#JfC7Ux0IkH>0{{R3
+
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/loading.gif b/pylons_app/public/js/yui/treeview/assets/skins/sam/loading.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..0bbf3bc0c0e5e635553e8d1bf9ceddefbc402396
+GIT binary patch
+literal 2673
+zc$~eIXH=618;0M!83YJ1>=8y5ONL=Zc0(9a1O-Gyh7BM)(SVAh*7FhwTed(+)d&u#
+zAYr`(u{HsWAgHK_Kxkz+0KtlTw$-oa^v8ER-_P&<`8?-5Kdy6M&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qt9wfl+Z(4jT8UO$Q
+
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-loading.gif b/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-loading.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..0bbf3bc0c0e5e635553e8d1bf9ceddefbc402396
+GIT binary patch
+literal 2673
+zc$~eIXH=618;0M!83YJ1>=8y5ONL=Zc0(9a1O-Gyh7BM)(SVAh*7FhwTed(+)d&u#
+zAYr`(u{HsWAgHK_Kxkz+0KtlTw$-oa^v8ER-_P&<`8?-5Kdy6M&xUXPoLyoGfDZ6x
+z8hHQy{kwPX-n@D9`t|F#Z{NOp_3Dp5{&@cU`HL4Xo;`cEu&}VYx_ax@t(Pxf-nnyU
+zd3pKClP8mtlK=obefsqN{rhusb2o0>xOeZKt*xz%jm_=bw}1cr_o=C=+1c46M~>9j
+z*MIljcP1t#nVFfpckd1l4-X3q+p%LuadGjwb?e;S-GhUJ9UL5HW@ac93W-D-A0L1G
+z`0=%C*QTeZ7Z(@r-o5+NPe0Yv)a={0uduLicz8HFJNv?g3#U(?9vT|5va)JvY1z1O
+zqqVg)gTaW6jpcH=TefU*baZrcbDNl$Fg7;M&(B}KemxAsot>SvwY68STsd&y!1nFi
+zB@)S=J$rus`DY6Y3xz__+}wQf<jJO{CMuO$RaMp2)^_mV!RyzrS5{W$<>isd<mBY!
+z(9qC_4<GjQ^du%GZr;2(CMHHG6n1oU?A^Qf+_`hk&dzJsuC=tZ^!D}+2nbkOTC%gV
+zOG!yNfBw9alT&wh_ohvo1_uXSTwE?)x)dE99T^$9va*tpkT5njwtxTr^z`(Kii!;z
+zHavRt=<3z0$BrE<DJe-xN-8Za?ds}cGMV=F_E}k3MMXu8jg2`uIUXJ!xw*N%zP=Cy
+zrKP29+qR9z<H_Z6Q&ZEeTetfA``^5I^Z4=OzyA8`g9i`F%gdvpqUPu4dwYAewY5*2
+zIPu$WzqPlwA3l7zp`pRm)m2wlmqw$RnVCtYQa+zQI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m+Yf7_sdjkIdTu`E8mJ4I35LSb-lnyEtn)ktpyfJ(fR%dJO51&uwRi{t<x06^5}
+z+1P<{oW6yc7d4*N4ItqVy)6kSqInW6=WVB2JOE6(&(xt13Wk5q*?~bFNVvhk5(=Ea
+z%m8WzSeUFQ4T^%dW%4*wy2uOSwn+hvGP<x>6Zgn~&SNVIv=e~j`Ee2gM&ljzNaE{|
+zg9jdtnP&jZ(xj>|CxHmHy{3@d;+IB743dqh(~T1%{dqawdxTe)O%{-ph~^oU5zGK^
+gUFhip`cHyML%F6@PeWS|iqE2IQ_}qt9wfl+Z(4jT8UO$Q
+
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-skin.css b/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-skin.css
+@@ -0,0 +1,249 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/*
++Copyright (c) 2008, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.5.2
++*/
++
++/* the style of the div around each node */
++.ygtvitem { }  
++
++table.ygtvtable {
++    margin-bottom:0; 
++	border:none;
++	border-collapse:collapse;
++}
++
++/*.ygtvitem td {*/
++td.ygtvcell {
++    border: none; 
++	padding: 0;
++}
++a.ygtvspacer {
++	text-decoration:none;
++	outline-style:none;
++	display:block;
++}
++
++
++/* first or middle sibling, no children */
++.ygtvtn {
++    width:18px; height:22px; 
++    background: url(treeview-sprite.gif) 0 -5600px no-repeat; 
++	cursor:pointer ;
++}
++
++/* first or middle sibling, collapsable */
++.ygtvtm {
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -4000px no-repeat; 
++}
++
++/* first or middle sibling, collapsable, hover */
++.ygtvtmh,.ygtvtmhh {
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -4800px no-repeat; 
++}
++
++/* first or middle sibling, expandable */
++.ygtvtp {
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -6400px no-repeat; 
++}
++
++/* first or middle sibling, expandable, hover */
++.ygtvtph ,.ygtvtphh {
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -7200px no-repeat; 
++}
++
++/* last sibling, no children */
++.ygtvln {
++    width:18px; height:22px; 
++    background: url(treeview-sprite.gif) 0 -1600px no-repeat; 
++	cursor:pointer ;
++}
++
++/* Last sibling, collapsable */
++.ygtvlm {
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 0px no-repeat; 
++}
++
++/* Last sibling, collapsable, hover */
++.ygtvlmh,.ygtvlmhh {
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -800px no-repeat; 
++}
++
++/* Last sibling, expandable */
++.ygtvlp { 
++    width:18px; height:22px; 
++    cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -2400px no-repeat; 
++}
++
++/* Last sibling, expandable, hover */
++.ygtvlph,.ygtvlphh { 
++    width:18px; height:22px; cursor:pointer ;
++    background: url(treeview-sprite.gif) 0 -3200px no-repeat; 
++	cursor:pointer ;
++}
++
++/* Loading icon */
++.ygtvloading { 
++    width:18px; height:22px; 
++    background: url(treeview-loading.gif) 0 0 no-repeat; 
++}
++
++/* the style for the empty cells that are used for rendering the depth 
++ * of the node */
++.ygtvdepthcell { 
++    width:18px; height:22px; 
++    background: url(treeview-sprite.gif) 0 -8000px no-repeat; 
++}
++
++.ygtvblankdepthcell { width:18px; height:22px; }
++
++
++/* the style of the div around each node's collection of children */
++.ygtvchildren {  }  
++* html .ygtvchildren { height:2%; }  
++
++/* the style of the text label in ygTextNode */
++.ygtvlabel, .ygtvlabel:link, .ygtvlabel:visited, .ygtvlabel:hover { 
++    margin-left:2px;
++    text-decoration: none;
++    background-color: white; /* workaround for IE font smoothing bug */
++	cursor:pointer;
++}
++
++.ygtvcontent {
++	cursor:default;
++}
++
++.ygtvspacer { height: 22px; width: 18px; }
++
++.ygtvfocus {
++	background-color: #c0e0e0;
++	border: none;
++}
++.ygtvfocus .ygtvlabel, .ygtvfocus .ygtvlabel:link, .ygtvfocus .ygtvlabel:visited, .ygtvfocus .ygtvlabel:hover {
++	background-color: #c0e0e0;
++}
++
++.ygtvfocus  a  {
++	outline-style:none;
++}
++
++
++.ygtvok {
++    width:18px; height:22px; 
++    background: url(treeview-sprite.gif) 0 -8800px no-repeat; 
++}
++
++.ygtvok:hover {
++    background: url(treeview-sprite.gif) 0 -8844px no-repeat; 
++}
++	
++.ygtvcancel {
++    width:18px; height:22px; 
++    background: url(treeview-sprite.gif) 0 -8822px no-repeat; 
++}
++
++.ygtvcancel:hover  {
++    background: url(treeview-sprite.gif) 0 -8866px no-repeat; 
++}
++
++.ygtv-label-editor {
++	background-color:#f2f2f2;
++	border: 1px solid silver;
++	position:absolute;
++	display:none;
++	overflow:hidden;
++	margin:auto;
++	z-index:9000;
++}
++
++.ygtv-edit-TextNode  {
++	width: 190px;
++}
++
++.ygtv-edit-TextNode .ygtvcancel, .ygtv-edit-TextNode .ygtvok  {
++	border:none;
++}
++
++.ygtv-edit-TextNode .ygtv-button-container {
++	float: right;
++}
++
++.ygtv-edit-TextNode .ygtv-input  input{
++	width: 140px;
++}
++
++.ygtv-edit-DateNode .ygtvcancel {
++	border:none;
++}
++.ygtv-edit-DateNode .ygtvok  {
++	display:none;
++}
++
++.ygtv-edit-DateNode   .ygtv-button-container {
++	text-align:right;
++	margin:auto;
++}
++
++.ygtv-highlight .ygtv-highlight0 , .ygtv-highlight .ygtv-highlight0 .ygtvlabel{
++}
++
++.ygtv-highlight .ygtv-highlight1  , .ygtv-highlight .ygtv-highlight1 .ygtvlabel{
++	background-color:blue;
++	color:white;
++}
++
++.ygtv-highlight .ygtv-highlight2  , .ygtv-highlight .ygtv-highlight2 .ygtvlabel {
++	background-color:silver;
++}
++
++.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,
++.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,
++.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel {
++	background-color: #c0e0e0;
++}
++
++.ygtv-highlight .ygtvcontent {
++	padding-right: 1em;
++}
++
++.ygtv-checkbox .ygtv-highlight0 .ygtvcontent {
++	padding-left:1em;
++	background:url(check0.gif) no-repeat;
++}
++
++.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,
++.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent ,
++.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent  {
++	background-color:#c0e0e0;
++}
++
++.ygtv-checkbox .ygtv-highlight1 .ygtvcontent {
++	padding-left:1em;
++	background:url(check1.gif) no-repeat;
++}
++
++.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{
++	padding-left:1em;
++	background:url(check2.gif) no-repeat;
++}
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-sprite.gif b/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview-sprite.gif
+new file mode 100644
+index 0000000000000000000000000000000000000000..8fb3f01377a229169938fb1af2c0877d8828dfee
+GIT binary patch
+literal 4326
+zc$@*|5E<`BNk%w1VG;niBJ=<N0001OZEaOm|7wM)fPjF(!NJnz|JCRJ*y#V->HppA
+z|KIKZ;^O4y=I80^>g(+6?eFj4?f>KM|K#xh=JEgV@$vHV^!4@i_V)Mp`T6?#`uqF)
+z|Ns900000000000A^8LW0012TEC2ui01^PWA^-*cU?+}bX_CaLu56dKMJ&&8S!{T&
+z;{|zVyNyP}^JR`lOa_A)YI>srb4tZrE>Kb7GQE1e*-pV?37F63OQkSyi7OQ}8g7Hw
+z?~lsk9xgl_4}pS%eGZ0)h<|+zj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!Q}DYOFuffB02!k(zk3DR3jmz^1-}cr;R^x3dk5)j2NrO?=nDYv8zm1A
+zzJdUAyfG8LhyVaJ;{f4%yNnRNx;qKlyS>6&z$H<@2AsUcy8+>=0}ZnS4a~p*U?abK
+z1mVjBz>C4yo4v{F1qJNE$veKm`?+M`zIG72rE9_ktTOaFzrPy@_B+4HYY4xazX0$D
+U{p-H~9KZ}Pzz8h7+YkZ(JNT^25dZ)H
+
+diff --git a/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview.css b/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/treeview/assets/skins/sam/treeview.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++table.ygtvtable{margin-bottom:0;border:none;border-collapse:collapse;}td.ygtvcell{border:none;padding:0;}a.ygtvspacer{text-decoration:none;outline-style:none;display:block;}.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;cursor:pointer;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh,.ygtvtmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4800px no-repeat;}.ygtvtp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -6400px no-repeat;}.ygtvtph,.ygtvtphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -7200px no-repeat;}.ygtvln{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -1600px no-repeat;cursor:pointer;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0 no-repeat;}.ygtvlmh,.ygtvlmhh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -800px no-repeat;}.ygtvlp{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -2400px no-repeat;}.ygtvlph,.ygtvlphh{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;cursor:pointer;}.ygtvloading{width:18px;height:22px;background:url(treeview-loading.gif) 0 0 no-repeat;}.ygtvdepthcell{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8000px no-repeat;}.ygtvblankdepthcell{width:18px;height:22px;}* html .ygtvchildren{height:2%;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;cursor:pointer;}.ygtvcontent{cursor:default;}.ygtvspacer{height:22px;width:18px;}.ygtvfocus{background-color:#c0e0e0;border:none;}.ygtvfocus .ygtvlabel,.ygtvfocus .ygtvlabel:link,.ygtvfocus .ygtvlabel:visited,.ygtvfocus .ygtvlabel:hover{background-color:#c0e0e0;}.ygtvfocus a{outline-style:none;}.ygtvok{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8800px no-repeat;}.ygtvok:hover{background:url(treeview-sprite.gif) 0 -8844px no-repeat;}.ygtvcancel{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -8822px no-repeat;}.ygtvcancel:hover{background:url(treeview-sprite.gif) 0 -8866px no-repeat;}.ygtv-label-editor{background-color:#f2f2f2;border:1px solid silver;position:absolute;display:none;overflow:hidden;margin:auto;z-index:9000;}.ygtv-edit-TextNode{width:190px;}.ygtv-edit-TextNode .ygtvcancel,.ygtv-edit-TextNode .ygtvok{border:none;}.ygtv-edit-TextNode .ygtv-button-container{float:right;}.ygtv-edit-TextNode .ygtv-input input{width:140px;}.ygtv-edit-DateNode .ygtvcancel{border:none;}.ygtv-edit-DateNode .ygtvok{display:none;}.ygtv-edit-DateNode .ygtv-button-container{text-align:right;margin:auto;}.ygtv-highlight .ygtv-highlight1,.ygtv-highlight .ygtv-highlight1 .ygtvlabel{background-color:blue;color:white;}.ygtv-highlight .ygtv-highlight2,.ygtv-highlight .ygtv-highlight2 .ygtvlabel{background-color:silver;}.ygtv-highlight .ygtv-highlight0 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight1 .ygtvfocus .ygtvlabel,.ygtv-highlight .ygtv-highlight2 .ygtvfocus .ygtvlabel{background-color:#c0e0e0;}.ygtv-highlight .ygtvcontent{padding-right:1em;}.ygtv-checkbox .ygtv-highlight0 .ygtvcontent{padding-left:1em;background:url(check0.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight0 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight1 .ygtvfocus.ygtvcontent,.ygtv-checkbox .ygtv-highlight2 .ygtvfocus.ygtvcontent{background-color:#c0e0e0;}.ygtv-checkbox .ygtv-highlight1 .ygtvcontent{padding-left:1em;background:url(check1.gif) no-repeat;}.ygtv-checkbox .ygtv-highlight2 .ygtvcontent{padding-left:1em;background:url(check2.gif) no-repeat;}
+diff --git a/pylons_app/public/js/yui/treeview/assets/treeview-core.css b/pylons_app/public/js/yui/treeview/assets/treeview-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/treeview/assets/treeview-core.css
+@@ -0,0 +1,6 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
+diff --git a/pylons_app/public/js/yui/treeview/treeview-debug.js b/pylons_app/public/js/yui/treeview/treeview-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/treeview/treeview-debug.js
+@@ -0,0 +1,4058 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        Widget = YAHOO.widget;
++        
++    
++
++/**
++ * The treeview widget is a generic tree building tool.
++ * @module treeview
++ * @title TreeView Widget
++ * @requires yahoo, dom, event
++ * @optional animation, json, calendar
++ * @namespace YAHOO.widget
++ */
++
++/**
++ * Contains the tree view state data and the root node.
++ *
++ * @class TreeView
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param {string|HTMLElement} id The id of the element, or the element itself that the tree will be inserted into.  
++ *        Existing markup in this element, if valid, will be used to build the tree
++ * @param {Array|Object|String}  oConfig (optional)  If present, it will be used to build the tree via method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>
++ * 
++ */
++YAHOO.widget.TreeView = function(id, oConfig) {
++    if (id) { this.init(id); }
++    if (oConfig) {
++        this.buildTreeFromObject(oConfig);
++    } else if (Lang.trim(this._el.innerHTML)) {
++        this.buildTreeFromMarkup(id);
++    }
++};
++
++var TV = Widget.TreeView;
++
++TV.prototype = {
++
++    /**
++     * The id of tree container element
++     * @property id
++     * @type String
++     */
++    id: null,
++
++    /**
++     * The host element for this tree
++     * @property _el
++     * @private
++     * @type HTMLelement
++     */
++    _el: null,
++
++     /**
++     * Flat collection of all nodes in this tree.  This is a sparse
++     * array, so the length property can't be relied upon for a
++     * node count for the tree.
++     * @property _nodes
++     * @type Node[]
++     * @private
++     */
++    _nodes: null,
++
++    /**
++     * We lock the tree control while waiting for the dynamic loader to return
++     * @property locked
++     * @type boolean
++     */
++    locked: false,
++
++    /**
++     * The animation to use for expanding children, if any
++     * @property _expandAnim
++     * @type string
++     * @private
++     */
++    _expandAnim: null,
++
++    /**
++     * The animation to use for collapsing children, if any
++     * @property _collapseAnim
++     * @type string
++     * @private
++     */
++    _collapseAnim: null,
++
++    /**
++     * The current number of animations that are executing
++     * @property _animCount
++     * @type int
++     * @private
++     */
++    _animCount: 0,
++
++    /**
++     * The maximum number of animations to run at one time.
++     * @property maxAnim
++     * @type int
++     */
++    maxAnim: 2,
++
++    /**
++     * Whether there is any subscriber to dblClickEvent
++     * @property _hasDblClickSubscriber
++     * @type boolean
++     * @private
++     */
++    _hasDblClickSubscriber: false,
++    
++    /**
++     * Stores the timer used to check for double clicks
++     * @property _dblClickTimer
++     * @type window.timer object
++     * @private
++     */
++    _dblClickTimer: null,
++
++  /**
++     * A reference to the Node currently having the focus or null if none.
++     * @property currentFocus
++     * @type YAHOO.widget.Node
++     */
++    currentFocus: null,
++    
++    /**
++    * If true, only one Node can be highlighted at a time
++    * @property singleNodeHighlight
++    * @type boolean
++    * @default false
++    */
++    
++    singleNodeHighlight: false,
++    
++    /**
++    * A reference to the Node that is currently highlighted.
++    * It is only meaningful if singleNodeHighlight is enabled
++    * @property _currentlyHighlighted
++    * @type YAHOO.widget.Node
++    * @default null
++    * @private
++    */
++    
++    _currentlyHighlighted: null,
++
++    /**
++     * Sets up the animation for expanding children
++     * @method setExpandAnim
++     * @param {string} type the type of animation (acceptable values defined 
++     * in YAHOO.widget.TVAnim)
++     */
++    setExpandAnim: function(type) {
++        this._expandAnim = (Widget.TVAnim.isValid(type)) ? type : null;
++    },
++
++    /**
++     * Sets up the animation for collapsing children
++     * @method setCollapseAnim
++     * @param {string} type of animation (acceptable values defined in 
++     * YAHOO.widget.TVAnim)
++     */
++    setCollapseAnim: function(type) {
++        this._collapseAnim = (Widget.TVAnim.isValid(type)) ? type : null;
++    },
++
++    /**
++     * Perform the expand animation if configured, or just show the
++     * element if not configured or too many animations are in progress
++     * @method animateExpand
++     * @param el {HTMLElement} the element to animate
++     * @param node {YAHOO.util.Node} the node that was expanded
++     * @return {boolean} true if animation could be invoked, false otherwise
++     */
++    animateExpand: function(el, node) {
++        this.logger.log("animating expand");
++
++        if (this._expandAnim && this._animCount < this.maxAnim) {
++            // this.locked = true;
++            var tree = this;
++            var a = Widget.TVAnim.getAnim(this._expandAnim, el, 
++                            function() { tree.expandComplete(node); });
++            if (a) { 
++                ++this._animCount;
++                this.fireEvent("animStart", {
++                        "node": node, 
++                        "type": "expand"
++                    });
++                a.animate();
++            }
++
++            return true;
++        }
++
++        return false;
++    },
++
++    /**
++     * Perform the collapse animation if configured, or just show the
++     * element if not configured or too many animations are in progress
++     * @method animateCollapse
++     * @param el {HTMLElement} the element to animate
++     * @param node {YAHOO.util.Node} the node that was expanded
++     * @return {boolean} true if animation could be invoked, false otherwise
++     */
++    animateCollapse: function(el, node) {
++        this.logger.log("animating collapse");
++
++        if (this._collapseAnim && this._animCount < this.maxAnim) {
++            // this.locked = true;
++            var tree = this;
++            var a = Widget.TVAnim.getAnim(this._collapseAnim, el, 
++                            function() { tree.collapseComplete(node); });
++            if (a) { 
++                ++this._animCount;
++                this.fireEvent("animStart", {
++                        "node": node, 
++                        "type": "collapse"
++                    });
++                a.animate();
++            }
++
++            return true;
++        }
++
++        return false;
++    },
++
++    /**
++     * Function executed when the expand animation completes
++     * @method expandComplete
++     */
++    expandComplete: function(node) {
++        this.logger.log("expand complete: " + this.id);
++        --this._animCount;
++        this.fireEvent("animComplete", {
++                "node": node, 
++                "type": "expand"
++            });
++        // this.locked = false;
++    },
++
++    /**
++     * Function executed when the collapse animation completes
++     * @method collapseComplete
++     */
++    collapseComplete: function(node) {
++        this.logger.log("collapse complete: " + this.id);
++        --this._animCount;
++        this.fireEvent("animComplete", {
++                "node": node, 
++                "type": "collapse"
++            });
++        // this.locked = false;
++    },
++
++    /**
++     * Initializes the tree
++     * @method init
++     * @parm {string|HTMLElement} id the id of the element that will hold the tree
++     * @private
++     */
++    init: function(id) {
++        this._el = Dom.get(id);
++        this.id = Dom.generateId(this._el,"yui-tv-auto-id-");
++
++    /**
++         * When animation is enabled, this event fires when the animation
++         * starts
++         * @event animStart
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
++         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
++         */
++        this.createEvent("animStart", this);
++
++        /**
++         * When animation is enabled, this event fires when the animation
++         * completes
++         * @event animComplete
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
++         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
++         */
++        this.createEvent("animComplete", this);
++
++        /**
++         * Fires when a node is going to be collapsed.  Return false to stop
++         * the collapse.
++         * @event collapse
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that is collapsing
++         */
++        this.createEvent("collapse", this);
++
++        /**
++         * Fires after a node is successfully collapsed.  This event will not fire
++         * if the "collapse" event was cancelled.
++         * @event collapseComplete
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that was collapsed
++         */
++        this.createEvent("collapseComplete", this);
++
++        /**
++         * Fires when a node is going to be expanded.  Return false to stop
++         * the collapse.
++         * @event expand
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that is expanding
++         */
++        this.createEvent("expand", this);
++
++        /**
++         * Fires after a node is successfully expanded.  This event will not fire
++         * if the "expand" event was cancelled.
++         * @event expandComplete
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that was expanded
++         */
++        this.createEvent("expandComplete", this);
++
++    /**
++         * Fires when the Enter key is pressed on a node that has the focus
++         * @event enterKeyPressed
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that has the focus
++         */
++        this.createEvent("enterKeyPressed", this);
++        
++    /**
++         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a Click.
++    * The listener may return false to cancel toggling and focusing on the node.
++         * @event clickEvent
++         * @type CustomEvent
++         * @param oArgs.event  {HTMLEvent} The event object
++         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
++         */
++        this.createEvent("clickEvent", this);
++        
++    /**
++         * Fires when the focus receives the focus, when it changes from a Node 
++    * to another Node or when it is completely lost (blurred)
++         * @event focusChanged
++         * @type CustomEvent
++         * @param oArgs.oldNode  {YAHOO.widget.Node} Node that had the focus or null if none
++         * @param oArgs.newNode {YAHOO.widget.Node} Node that receives the focus or null if none
++         */
++        
++        this.createEvent('focusChanged',this);
++
++    /**
++         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a double Click
++         * @event dblClickEvent
++         * @type CustomEvent
++         * @param oArgs.event  {HTMLEvent} The event object
++         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
++         */
++        var self = this;
++        this.createEvent("dblClickEvent", {
++            scope:this,
++            onSubscribeCallback: function() {
++                self._hasDblClickSubscriber = true;
++            }
++        });
++        
++    /**
++         * Custom event that is fired when the text node label is clicked. 
++         *  The node clicked is  provided as an argument
++         *
++         * @event labelClick
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node clicked
++    * @deprecated use clickEvent or dblClickEvent
++         */
++        this.createEvent("labelClick", this);
++        
++    /**
++     * Custom event fired when the highlight of a node changes.
++     * The node that triggered the change is provided as an argument:
++     * The status of the highlight can be checked in 
++     * <a href="YAHOO.widget.Node.html#property_highlightState">nodeRef.highlightState</a>.
++     * Depending on <a href="YAHOO.widget.Node.html#property_propagateHighlight">nodeRef.propagateHighlight</a>, other nodes might have changed
++     * @event highlightEvent
++     * @type CustomEvent
++     * @param node {YAHOO.widget.Node} the node that started the change in highlighting state
++    */
++        this.createEvent("highlightEvent",this);
++     
++
++
++        this._nodes = [];
++
++        // store a global reference
++        TV.trees[this.id] = this;
++
++        // Set up the root node
++        this.root = new Widget.RootNode(this);
++
++        var LW = Widget.LogWriter;
++
++        this.logger = (LW) ? new LW(this.toString()) : YAHOO;
++
++        this.logger.log("tree init: " + this.id);
++		
++		if (this._initEditor) {
++			this._initEditor();
++		}
++        
++        // YAHOO.util.Event.onContentReady(this.id, this.handleAvailable, this, true);
++        // YAHOO.util.Event.on(this.id, "click", this.handleClick, this, true);
++    },
++
++    //handleAvailable: function() {
++        //var Event = YAHOO.util.Event;
++        //Event.on(this.id, 
++    //},
++ /**
++     * Builds the TreeView from an object.  
++     * This is the method called by the constructor to build the tree when it has a second argument.
++     *  A tree can be described by an array of objects, each object corresponding to a node.
++     *  Node descriptions may contain values for any property of a node plus the following extra properties: <ul>
++     * <li>type:  can be one of the following:<ul>
++     *    <li> A shortname for a node type (<code>'text','menu','html'</code>) </li>
++     *    <li>The name of a Node class under YAHOO.widget (<code>'TextNode', 'MenuNode', 'DateNode'</code>, etc) </li>
++     *    <li>a reference to an actual class: <code>YAHOO.widget.DateNode</code></li>
++	 * </ul></li>
++     * <li>children: an array containing further node definitions</li></ul>
++	 * A string instead of an object will produce a node of type 'text' with the given string as its label.
++     * @method buildTreeFromObject
++     * @param  oConfig {Array|Object|String}  array containing a full description of the tree.
++     *        An object or a string will be turned into an array with the given object or string as its only element.
++     * 
++     */
++    buildTreeFromObject: function (oConfig) {
++        var logger = this.logger;
++        logger.log('Building tree from object');
++        var build = function (parent, oConfig) {
++            var i, item, node, children, type, NodeType, ThisType;
++            for (i = 0; i < oConfig.length; i++) {
++                item = oConfig[i];
++                if (Lang.isString(item)) {
++                    node = new Widget.TextNode(item, parent);
++                } else if (Lang.isObject(item)) {
++                    children = item.children;
++                    delete item.children;
++                    type = item.type || 'text';
++                    delete item.type;
++                    switch (Lang.isString(type) && type.toLowerCase()) {
++                        case 'text':
++                            node = new Widget.TextNode(item, parent);
++                            break;
++                        case 'menu':
++                            node = new Widget.MenuNode(item, parent);
++                            break;
++                        case 'html':
++                            node = new Widget.HTMLNode(item, parent);
++                            break;
++                        default:
++                            if (Lang.isString(type)) {
++                                NodeType = Widget[type];
++                            } else {
++                                NodeType = type;
++                            }
++                            if (Lang.isObject(NodeType)) {
++                                for (ThisType = NodeType; ThisType && ThisType !== Widget.Node; ThisType = ThisType.superclass.constructor) {}
++                                if (ThisType) {
++                                    node = new NodeType(item, parent);
++                                } else {
++                                    logger.log('Invalid type in node definition: ' + type,'error');
++                                }
++                            } else {
++                                logger.log('Invalid type in node definition: ' + type,'error');
++                            }
++                    }
++                    if (children) {
++                        build(node,children);
++                    }
++                } else {
++                    logger.log('Invalid node definition','error');
++                }
++            }
++        };
++        if (!Lang.isArray(oConfig)) {
++            oConfig = [oConfig];
++        }
++
++                    
++        build(this.root,oConfig);
++    },
++/**
++     * Builds the TreeView from existing markup.   Markup should consist of &lt;UL&gt; or &lt;OL&gt; elements containing &lt;LI&gt; elements.  
++     * Each &lt;LI&gt; can have one element used as label and a second optional element which is to be a &lt;UL&gt; or &lt;OL&gt;
++     * containing nested nodes.
++     * Depending on what the first element of the &lt;LI&gt; element is, the following Nodes will be created: <ul>
++     *           <li>plain text:  a regular TextNode</li>
++     *           <li>anchor &lt;A&gt;: a TextNode with its <code>href</code> and <code>target</code> taken from the anchor</li>
++     *           <li>anything else: an HTMLNode</li></ul>
++     * Only the first  outermost (un-)ordered list in the markup and its children will be parsed.
++     * Nodes will be collapsed unless  an  &lt;LI&gt;  tag has a className called 'expanded'.
++     * All other className attributes will be copied over to the Node className property.
++     * If the &lt;LI&gt; element contains an attribute called <code>yuiConfig</code>, its contents should be a JSON-encoded object
++     * as the one used in method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>.
++     * @method buildTreeFromMarkup
++     * @param  id {string|HTMLElement} The id of the element that contains the markup or a reference to it.
++     */
++    buildTreeFromMarkup: function (id) {
++        this.logger.log('Building tree from existing markup');
++        var build = function (markup) {
++            var el, child, branch = [], config = {}, label, yuiConfig;
++            // Dom's getFirstChild and getNextSibling skip over text elements
++            for (el = Dom.getFirstChild(markup); el; el = Dom.getNextSibling(el)) {
++                switch (el.tagName.toUpperCase()) {
++                    case 'LI':
++                        label = '';
++                        config = {
++                            expanded: Dom.hasClass(el,'expanded'),
++                            title: el.title || el.alt || null,
++                            className: Lang.trim(el.className.replace(/\bexpanded\b/,'')) || null
++                        };
++                        // I cannot skip over text elements here because I want them for labels
++                        child = el.firstChild;
++                        if (child.nodeType == 3) {
++                            // nodes with only whitespace, tabs and new lines don't count, they are probably just formatting.
++                            label = Lang.trim(child.nodeValue.replace(/[\n\t\r]*/g,''));
++                            if (label) {
++                                config.type = 'text';
++                                config.label = label;
++                            } else {
++                                child = Dom.getNextSibling(child);
++                            }
++                        }
++                        if (!label) {
++                            if (child.tagName.toUpperCase() == 'A') {
++                                config.type = 'text';
++                                config.label = child.innerHTML;
++                                config.href = child.href;
++                                config.target = child.target;
++                                config.title = child.title || child.alt || config.title;
++                            } else {
++                                config.type = 'html';
++                                var d = document.createElement('div');
++                                d.appendChild(child.cloneNode(true));
++                                config.html = d.innerHTML;
++                                config.hasIcon = true;
++                            }
++                        }
++                        // see if after the label it has a further list which will become children of this node.
++                        child = Dom.getNextSibling(child);
++                        switch (child && child.tagName.toUpperCase()) {
++                            case 'UL':
++                            case 'OL':
++                                config.children = build(child);
++                                break;
++                        }
++                        // if there are further elements or text, it will be ignored.
++                        
++                        if (YAHOO.lang.JSON) {
++                            yuiConfig = el.getAttribute('yuiConfig');
++                            if (yuiConfig) {
++                                yuiConfig = YAHOO.lang.JSON.parse(yuiConfig);
++                                config = YAHOO.lang.merge(config,yuiConfig);
++                            }
++                        }
++                        
++                        branch.push(config);
++                        break;
++                    case 'UL':
++                    case 'OL':
++                        this.logger.log('ULs or OLs can only contain LI elements, not other UL or OL.  This will not work in some browsers','error');
++                        config = {
++                            type: 'text',
++                            label: '',
++                            children: build(child)
++                        };
++                        branch.push(config);
++                        break;
++                }
++            }
++            return branch;
++        };
++
++        var markup = Dom.getChildrenBy(Dom.get(id),function (el) { 
++            var tag = el.tagName.toUpperCase();
++            return  tag == 'UL' || tag == 'OL';
++        });
++        if (markup.length) {
++            this.buildTreeFromObject(build(markup[0]));
++        } else {
++            this.logger.log('Markup contains no UL or OL elements','warn');
++        }
++    },
++  /**
++     * Returns the TD element where the event has occurred
++     * @method _getEventTargetTdEl
++     * @private
++     */
++    _getEventTargetTdEl: function (ev) {
++        var target = Event.getTarget(ev); 
++        // go up looking for a TD with a className with a ygtv prefix
++        while (target && !(target.tagName.toUpperCase() == 'TD' && Dom.hasClass(target.parentNode,'ygtvrow'))) { 
++            target = Dom.getAncestorByTagName(target,'td'); 
++        }
++        if (Lang.isNull(target)) { return null; }
++        // If it is a spacer cell, do nothing
++        if (/\bygtv(blank)?depthcell/.test(target.className)) { return null;}
++        // If it has an id, search for the node number and see if it belongs to a node in this tree.
++        if (target.id) {
++            var m = target.id.match(/\bygtv([^\d]*)(.*)/);
++            if (m && m[2] && this._nodes[m[2]]) {
++                return target;
++            }
++        }
++        return null;
++    },
++  /**
++     * Event listener for click events
++     * @method _onClickEvent
++     * @private
++     */
++    _onClickEvent: function (ev) {
++        var self = this,
++            td = this._getEventTargetTdEl(ev),
++            node,
++            target,
++            toggle = function (force) {
++                node.focus();
++				if (force || !node.href) {
++					node.toggle();
++					try {
++						Event.preventDefault(ev);
++					} catch (e) {
++	                    // @TODO
++	                    // For some reason IE8 is providing an event object with
++	                    // most of the fields missing, but only when clicking on
++	                    // the node's label, and only when working with inline
++	                    // editing.  This generates a "Member not found" error
++	                    // in that browser.  Determine if this is a browser
++	                    // bug, or a problem with this code.  Already checked to
++	                    // see if the problem has to do with access the event
++	                    // in the outer scope, and that isn't the problem.
++	                    // Maybe the markup for inline editing is broken.
++					}
++                }
++            };
++
++        if (!td) {
++            return; 
++        }
++
++        node = this.getNodeByElement(td);
++        if (!node) { 
++            return; 
++        }
++        
++        // exception to handle deprecated event labelClick
++        // @TODO take another look at this deprecation.  It is common for people to
++        // only be interested in the label click, so why make them have to test
++        // the node type to figure out whether the click was on the label?
++        target = Event.getTarget(ev);
++        if (Dom.hasClass(target, node.labelStyle) || Dom.getAncestorByClassName(target,node.labelStyle)) {
++            this.logger.log("onLabelClick " + node.label);
++            this.fireEvent('labelClick',node);
++        }
++        
++        //  If it is a toggle cell, toggle
++        if (/\bygtv[tl][mp]h?h?/.test(td.className)) {
++            toggle(true);
++        } else {
++            if (this._dblClickTimer) {
++                window.clearTimeout(this._dblClickTimer);
++                this._dblClickTimer = null;
++            } else {
++                if (this._hasDblClickSubscriber) {
++                    this._dblClickTimer = window.setTimeout(function () {
++                        self._dblClickTimer = null;
++                        if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
++                            toggle();
++                        }
++                    }, 200);
++                } else {
++                    if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
++                        toggle();
++                    }
++                }
++            }
++        }
++    },
++
++  /**
++     * Event listener for double-click events
++     * @method _onDblClickEvent
++     * @private
++     */
++    _onDblClickEvent: function (ev) {
++        if (!this._hasDblClickSubscriber) { return; }
++        var td = this._getEventTargetTdEl(ev);
++        if (!td) {return;}
++
++        if (!(/\bygtv[tl][mp]h?h?/.test(td.className))) {
++            this.fireEvent('dblClickEvent', {event:ev, node:this.getNodeByElement(td)}); 
++            if (this._dblClickTimer) {
++                window.clearTimeout(this._dblClickTimer);
++                this._dblClickTimer = null;
++            }
++        }
++    },
++  /**
++     * Event listener for mouse over events
++     * @method _onMouseOverEvent
++     * @private
++     */
++    _onMouseOverEvent:function (ev) {
++        var target;
++        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
++            target.className = target.className.replace(/\bygtv([lt])([mp])\b/gi,'ygtv$1$2h');
++        }
++    },
++  /**
++     * Event listener for mouse out events
++     * @method _onMouseOutEvent
++     * @private
++     */
++    _onMouseOutEvent: function (ev) {
++        var target;
++        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
++            target.className = target.className.replace(/\bygtv([lt])([mp])h\b/gi,'ygtv$1$2');
++        }
++    },
++  /**
++     * Event listener for key down events
++     * @method _onKeyDownEvent
++     * @private
++     */
++    _onKeyDownEvent: function (ev) {
++        var target = Event.getTarget(ev),
++            node = this.getNodeByElement(target),
++            newNode = node,
++            KEY = YAHOO.util.KeyListener.KEY;
++
++        switch(ev.keyCode) {
++            case KEY.UP:
++                this.logger.log('UP');
++                do {
++                    if (newNode.previousSibling) {
++                        newNode = newNode.previousSibling;
++                    } else {
++                        newNode = newNode.parent;
++                    }
++                } while (newNode && !newNode._canHaveFocus());
++                if (newNode) { newNode.focus(); }
++                Event.preventDefault(ev);
++                break;
++            case KEY.DOWN:
++                this.logger.log('DOWN');
++                do {
++                    if (newNode.nextSibling) {
++                        newNode = newNode.nextSibling;
++                    } else {
++                        newNode.expand();
++                        newNode = (newNode.children.length || null) && newNode.children[0];
++                    }
++                } while (newNode && !newNode._canHaveFocus);
++                if (newNode) { newNode.focus();}
++                Event.preventDefault(ev);
++                break;
++            case KEY.LEFT:
++                this.logger.log('LEFT');
++                do {
++                    if (newNode.parent) {
++                        newNode = newNode.parent;
++                    } else {
++                        newNode = newNode.previousSibling;
++                    }
++                } while (newNode && !newNode._canHaveFocus());
++                if (newNode) { newNode.focus();}
++                Event.preventDefault(ev);
++                break;
++			case KEY.RIGHT:
++				this.logger.log('RIGHT');
++				var self = this,
++					moveFocusRight,
++					focusOnExpand = function (newNode) {
++						self.unsubscribe('expandComplete',focusOnExpand);
++						moveFocusRight(newNode);
++					};
++				moveFocusRight = function (newNode) {
++					do {
++						if (newNode.isDynamic() && !newNode.childrenRendered) {
++							self.subscribe('expandComplete',focusOnExpand);
++							newNode.expand();
++							newNode = null;
++							break;
++						} else {
++							newNode.expand();
++							if (newNode.children.length) {
++								newNode = newNode.children[0];
++							} else {
++								newNode = newNode.nextSibling;
++							}
++						}
++					} while (newNode && !newNode._canHaveFocus());
++					if (newNode) { newNode.focus();}
++				};
++					
++				moveFocusRight(newNode);
++				Event.preventDefault(ev);
++				break;
++            case KEY.ENTER:
++                this.logger.log('ENTER: ' + newNode.href);
++                if (node.href) {
++                    if (node.target) {
++                        window.open(node.href,node.target);
++                    } else {
++                        window.location(node.href);
++                    }
++                } else {
++                    node.toggle();
++                }
++                this.fireEvent('enterKeyPressed',node);
++                Event.preventDefault(ev);
++                break;
++            case KEY.HOME:
++                this.logger.log('HOME');
++                newNode = this.getRoot();
++                if (newNode.children.length) {newNode = newNode.children[0];}
++                if (newNode._canHaveFocus()) { newNode.focus(); }
++                Event.preventDefault(ev);
++                break;
++            case KEY.END:
++                this.logger.log('END');
++                newNode = newNode.parent.children;
++                newNode = newNode[newNode.length -1];
++                if (newNode._canHaveFocus()) { newNode.focus(); }
++                Event.preventDefault(ev);
++                break;
++            // case KEY.PAGE_UP:
++                // this.logger.log('PAGE_UP');
++                // break;
++            // case KEY.PAGE_DOWN:
++                // this.logger.log('PAGE_DOWN');
++                // break;
++            case 107:  // plus key
++                if (ev.shiftKey) {
++                    this.logger.log('Shift-PLUS');
++                    node.parent.expandAll();
++                } else {
++                    this.logger.log('PLUS');
++                    node.expand();
++                }
++                break;
++            case 109: // minus key
++                if (ev.shiftKey) {
++                    this.logger.log('Shift-MINUS');
++                    node.parent.collapseAll();
++                } else {
++                    this.logger.log('MINUS');
++                    node.collapse();
++                }
++                break;
++            default:
++                break;
++        }
++    },
++    /**
++     * Renders the tree boilerplate and visible nodes
++     * @method render
++     */
++    render: function() {
++        var html = this.root.getHtml(),
++            el = this.getEl();
++        el.innerHTML = html;
++        if (!this._hasEvents) {
++            Event.on(el, 'click', this._onClickEvent, this, true);
++            Event.on(el, 'dblclick', this._onDblClickEvent, this, true);
++            Event.on(el, 'mouseover', this._onMouseOverEvent, this, true);
++            Event.on(el, 'mouseout', this._onMouseOutEvent, this, true);
++            Event.on(el, 'keydown', this._onKeyDownEvent, this, true);
++        }
++        this._hasEvents = true;
++    },
++    
++  /**
++     * Returns the tree's host element
++     * @method getEl
++     * @return {HTMLElement} the host element
++     */
++    getEl: function() {
++        if (! this._el) {
++            this._el = Dom.get(this.id);
++        }
++        return this._el;
++    },
++
++    /**
++     * Nodes register themselves with the tree instance when they are created.
++     * @method regNode
++     * @param node {Node} the node to register
++     * @private
++     */
++    regNode: function(node) {
++        this._nodes[node.index] = node;
++    },
++
++    /**
++     * Returns the root node of this tree
++     * @method getRoot
++     * @return {Node} the root node
++     */
++    getRoot: function() {
++        return this.root;
++    },
++
++    /**
++     * Configures this tree to dynamically load all child data
++     * @method setDynamicLoad
++     * @param {function} fnDataLoader the function that will be called to get the data
++     * @param iconMode {int} configures the icon that is displayed when a dynamic
++     * load node is expanded the first time without children.  By default, the 
++     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
++     * displayed.
++     */
++    setDynamicLoad: function(fnDataLoader, iconMode) { 
++        this.root.setDynamicLoad(fnDataLoader, iconMode);
++    },
++
++    /**
++     * Expands all child nodes.  Note: this conflicts with the "multiExpand"
++     * node property.  If expand all is called in a tree with nodes that
++     * do not allow multiple siblings to be displayed, only the last sibling
++     * will be expanded.
++     * @method expandAll
++     */
++    expandAll: function() { 
++        if (!this.locked) {
++            this.root.expandAll(); 
++        }
++    },
++
++    /**
++     * Collapses all expanded child nodes in the entire tree.
++     * @method collapseAll
++     */
++    collapseAll: function() { 
++        if (!this.locked) {
++            this.root.collapseAll(); 
++        }
++    },
++
++    /**
++     * Returns a node in the tree that has the specified index (this index
++     * is created internally, so this function probably will only be used
++     * in html generated for a given node.)
++     * @method getNodeByIndex
++     * @param {int} nodeIndex the index of the node wanted
++     * @return {Node} the node with index=nodeIndex, null if no match
++     */
++    getNodeByIndex: function(nodeIndex) {
++        var n = this._nodes[nodeIndex];
++        return (n) ? n : null;
++    },
++
++    /**
++     * Returns a node that has a matching property and value in the data
++     * object that was passed into its constructor.
++     * @method getNodeByProperty
++     * @param {object} property the property to search (usually a string)
++     * @param {object} value the value we want to find (usuall an int or string)
++     * @return {Node} the matching node, null if no match
++     */
++    getNodeByProperty: function(property, value) {
++        for (var i in this._nodes) {
++            if (this._nodes.hasOwnProperty(i)) {
++                var n = this._nodes[i];
++                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
++                    return n;
++                }
++            }
++        }
++
++        return null;
++    },
++
++    /**
++     * Returns a collection of nodes that have a matching property 
++     * and value in the data object that was passed into its constructor.  
++     * @method getNodesByProperty
++     * @param {object} property the property to search (usually a string)
++     * @param {object} value the value we want to find (usuall an int or string)
++     * @return {Array} the matching collection of nodes, null if no match
++     */
++    getNodesByProperty: function(property, value) {
++        var values = [];
++        for (var i in this._nodes) {
++            if (this._nodes.hasOwnProperty(i)) {
++                var n = this._nodes[i];
++                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
++                    values.push(n);
++                }
++            }
++        }
++
++        return (values.length) ? values : null;
++    },
++
++
++    /**
++     * Returns a collection of nodes that have passed the test function
++	 * passed as its only argument.  
++	 * The function will receive a reference to each node to be tested.  
++     * @method getNodesBy
++     * @param {function} a boolean function that receives a Node instance and returns true to add the node to the results list
++     * @return {Array} the matching collection of nodes, null if no match
++     */
++    getNodesBy: function(fn) {
++        var values = [];
++        for (var i in this._nodes) {
++            if (this._nodes.hasOwnProperty(i)) {
++                var n = this._nodes[i];
++                if (fn(n)) {
++                    values.push(n);
++                }
++            }
++        }
++        return (values.length) ? values : null;
++    },
++    /**
++     * Returns the treeview node reference for an ancestor element
++     * of the node, or null if it is not contained within any node
++     * in this tree.
++     * @method getNodeByElement
++     * @param el {HTMLElement} the element to test
++     * @return {YAHOO.widget.Node} a node reference or null
++     */
++    getNodeByElement: function(el) {
++
++        var p=el, m, re=/ygtv([^\d]*)(.*)/;
++
++        do {
++
++            if (p && p.id) {
++                m = p.id.match(re);
++                if (m && m[2]) {
++                    return this.getNodeByIndex(m[2]);
++                }
++            }
++
++            p = p.parentNode;
++
++            if (!p || !p.tagName) {
++                break;
++            }
++
++        } 
++        while (p.id !== this.id && p.tagName.toLowerCase() !== "body");
++
++        return null;
++    },
++	
++    /**
++     * When in singleNodeHighlight it returns the node highlighted
++	 * or null if none.  Returns null if singleNodeHighlight is false.
++     * @method getHighlightedNode
++     * @return {YAHOO.widget.Node} a node reference or null
++     */
++	getHighlightedNode: function() {
++		return this._currentlyHighlighted;
++	},
++
++
++    /**
++     * Removes the node and its children, and optionally refreshes the 
++     * branch of the tree that was affected.
++     * @method removeNode
++     * @param {Node} node to remove
++     * @param {boolean} autoRefresh automatically refreshes branch if true
++     * @return {boolean} False is there was a problem, true otherwise.
++     */
++    removeNode: function(node, autoRefresh) { 
++
++        // Don't delete the root node
++        if (node.isRoot()) {
++            return false;
++        }
++
++        // Get the branch that we may need to refresh
++        var p = node.parent;
++        if (p.parent) {
++            p = p.parent;
++        }
++
++        // Delete the node and its children
++        this._deleteNode(node);
++
++        // Refresh the parent of the parent
++        if (autoRefresh && p && p.childrenRendered) {
++            p.refresh();
++        }
++
++        return true;
++    },
++
++    /**
++     * wait until the animation is complete before deleting 
++     * to avoid javascript errors
++     * @method _removeChildren_animComplete
++     * @param o the custom event payload
++     * @private
++     */
++    _removeChildren_animComplete: function(o) {
++        this.unsubscribe(this._removeChildren_animComplete);
++        this.removeChildren(o.node);
++    },
++
++    /**
++     * Deletes this nodes child collection, recursively.  Also collapses
++     * the node, and resets the dynamic load flag.  The primary use for
++     * this method is to purge a node and allow it to fetch its data
++     * dynamically again.
++     * @method removeChildren
++     * @param {Node} node the node to purge
++     */
++    removeChildren: function(node) { 
++
++        if (node.expanded) {
++            // wait until the animation is complete before deleting to
++            // avoid javascript errors
++            if (this._collapseAnim) {
++                this.subscribe("animComplete", 
++                        this._removeChildren_animComplete, this, true);
++                Widget.Node.prototype.collapse.call(node);
++                return;
++            }
++
++            node.collapse();
++        }
++
++        this.logger.log("Removing children for " + node);
++        while (node.children.length) {
++            this._deleteNode(node.children[0]);
++        }
++
++        if (node.isRoot()) {
++            Widget.Node.prototype.expand.call(node);
++        }
++
++        node.childrenRendered = false;
++        node.dynamicLoadComplete = false;
++
++        node.updateIcon();
++    },
++
++    /**
++     * Deletes the node and recurses children
++     * @method _deleteNode
++     * @private
++     */
++    _deleteNode: function(node) { 
++        // Remove all the child nodes first
++        this.removeChildren(node);
++
++        // Remove the node from the tree
++        this.popNode(node);
++    },
++
++    /**
++     * Removes the node from the tree, preserving the child collection 
++     * to make it possible to insert the branch into another part of the 
++     * tree, or another tree.
++     * @method popNode
++     * @param {Node} node to remove
++     */
++    popNode: function(node) { 
++        var p = node.parent;
++
++        // Update the parent's collection of children
++        var a = [];
++
++        for (var i=0, len=p.children.length;i<len;++i) {
++            if (p.children[i] != node) {
++                a[a.length] = p.children[i];
++            }
++        }
++
++        p.children = a;
++
++        // reset the childrenRendered flag for the parent
++        p.childrenRendered = false;
++
++         // Update the sibling relationship
++        if (node.previousSibling) {
++            node.previousSibling.nextSibling = node.nextSibling;
++        }
++
++        if (node.nextSibling) {
++            node.nextSibling.previousSibling = node.previousSibling;
++        }
++
++		if (this.currentFocus == node) {
++			this.currentFocus = null;
++		}
++		if (this._currentlyHighlighted == node) {
++			this._currentlyHighlighted = null;
++		}
++
++        node.parent = null;
++        node.previousSibling = null;
++        node.nextSibling = null;
++        node.tree = null;
++
++        // Update the tree's node collection 
++        delete this._nodes[node.index];
++    },
++
++    /**
++    * Nulls out the entire TreeView instance and related objects, removes attached
++    * event listeners, and clears out DOM elements inside the container. After
++    * calling this method, the instance reference should be expliclitly nulled by
++    * implementer, as in myDataTable = null. Use with caution!
++    *
++    * @method destroy
++    */
++    destroy : function() {
++        // Since the label editor can be separated from the main TreeView control
++        // the destroy method for it might not be there.
++        if (this._destroyEditor) { this._destroyEditor(); }
++        var el = this.getEl();
++        Event.removeListener(el,'click');
++        Event.removeListener(el,'dblclick');
++        Event.removeListener(el,'mouseover');
++        Event.removeListener(el,'mouseout');
++        Event.removeListener(el,'keydown');
++        for (var i = 0 ; i < this._nodes.length; i++) {
++            var node = this._nodes[i];
++            if (node && node.destroy) {node.destroy(); }
++        }
++        el.innerHTML = '';
++        this._hasEvents = false;
++    },
++        
++            
++
++
++    /**
++     * TreeView instance toString
++     * @method toString
++     * @return {string} string representation of the tree
++     */
++    toString: function() {
++        return "TreeView " + this.id;
++    },
++
++    /**
++     * Count of nodes in tree
++     * @method getNodeCount
++     * @return {int} number of nodes in the tree
++     */
++    getNodeCount: function() {
++        return this.getRoot().getNodeCount();
++    },
++
++    /**
++     * Returns an object which could be used to rebuild the tree.
++     * It can be passed to the tree constructor to reproduce the same tree.
++     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
++     * @method getTreeDefinition
++     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
++     */
++    getTreeDefinition: function() {
++        return this.getRoot().getNodeDefinition();
++    },
++
++    /**
++     * Abstract method that is executed when a node is expanded
++     * @method onExpand
++     * @param node {Node} the node that was expanded
++     * @deprecated use treeobj.subscribe("expand") instead
++     */
++    onExpand: function(node) { },
++
++    /**
++     * Abstract method that is executed when a node is collapsed.
++     * @method onCollapse
++     * @param node {Node} the node that was collapsed.
++     * @deprecated use treeobj.subscribe("collapse") instead
++     */
++    onCollapse: function(node) { },
++    
++    /**
++    * Sets the value of a property for all loaded nodes in the tree.
++    * @method setNodesProperty
++    * @param name {string} Name of the property to be set
++    * @param value {any} value to be set
++    * @param refresh {boolean} if present and true, it does a refresh
++    */
++    setNodesProperty: function(name, value, refresh) {
++        this.root.setNodesProperty(name,value);
++        if (refresh) {
++            this.root.refresh();
++        }
++    },
++    /**
++    * Event listener to toggle node highlight.
++    * Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
++    * It returns false to prevent the default action.
++    * @method onEventToggleHighlight
++    * @param oArgs {any} it takes the arguments of any of the events mentioned above
++    * @return {false} Always cancels the default action for the event
++    */
++    onEventToggleHighlight: function (oArgs) {
++        var node;
++        if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
++            node = oArgs.node;
++        } else if (oArgs instanceof Widget.Node) {
++            node = oArgs;
++        } else {
++            return false;
++        }
++        node.toggleHighlight();
++        return false;
++    }
++        
++
++};
++
++/* Backwards compatibility aliases */
++var PROT = TV.prototype;
++ /**
++     * Renders the tree boilerplate and visible nodes.
++     *  Alias for render
++     * @method draw
++     * @deprecated Use render instead
++     */
++PROT.draw = PROT.render;
++
++/* end backwards compatibility aliases */
++
++YAHOO.augment(TV, YAHOO.util.EventProvider);
++
++/**
++ * Running count of all nodes created in all trees.  This is 
++ * used to provide unique identifies for all nodes.  Deleting
++ * nodes does not change the nodeCount.
++ * @property YAHOO.widget.TreeView.nodeCount
++ * @type int
++ * @static
++ */
++TV.nodeCount = 0;
++
++/**
++ * Global cache of tree instances
++ * @property YAHOO.widget.TreeView.trees
++ * @type Array
++ * @static
++ * @private
++ */
++TV.trees = [];
++
++/**
++ * Global method for getting a tree by its id.  Used in the generated
++ * tree html.
++ * @method YAHOO.widget.TreeView.getTree
++ * @param treeId {String} the id of the tree instance
++ * @return {TreeView} the tree instance requested, null if not found.
++ * @static
++ */
++TV.getTree = function(treeId) {
++    var t = TV.trees[treeId];
++    return (t) ? t : null;
++};
++
++
++/**
++ * Global method for getting a node by its id.  Used in the generated
++ * tree html.
++ * @method YAHOO.widget.TreeView.getNode
++ * @param treeId {String} the id of the tree instance
++ * @param nodeIndex {String} the index of the node to return
++ * @return {Node} the node instance requested, null if not found
++ * @static
++ */
++TV.getNode = function(treeId, nodeIndex) {
++    var t = TV.getTree(treeId);
++    return (t) ? t.getNodeByIndex(nodeIndex) : null;
++};
++
++
++/**
++     * Class name assigned to elements that have the focus
++     *
++     * @property TreeView.FOCUS_CLASS_NAME
++     * @type String
++     * @static
++     * @final
++     * @default "ygtvfocus"
++
++    */ 
++TV.FOCUS_CLASS_NAME = 'ygtvfocus';
++
++
++
++})();
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event;
++/**
++ * The base class for all tree nodes.  The node's presentation and behavior in
++ * response to mouse events is handled in Node subclasses.
++ * @namespace YAHOO.widget
++ * @class Node
++ * @uses YAHOO.util.EventProvider
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node, and any custom attributes that should be
++ * stored with the node (which is available in noderef.data).
++ * All values in oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions,
++ * the rest of the values will be stored in noderef.data
++ * @param oParent {Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated, use oData.expanded)
++ * @constructor
++ */
++YAHOO.widget.Node = function(oData, oParent, expanded) {
++    if (oData) { this.init(oData, oParent, expanded); }
++};
++
++YAHOO.widget.Node.prototype = {
++
++    /**
++     * The index for this instance obtained from global counter in YAHOO.widget.TreeView.
++     * @property index
++     * @type int
++     */
++    index: 0,
++
++    /**
++     * This node's child node collection.
++     * @property children
++     * @type Node[] 
++     */
++    children: null,
++
++    /**
++     * Tree instance this node is part of
++     * @property tree
++     * @type TreeView
++     */
++    tree: null,
++
++    /**
++     * The data linked to this node.  This can be any object or primitive
++     * value, and the data can be used in getNodeHtml().
++     * @property data
++     * @type object
++     */
++    data: null,
++
++    /**
++     * Parent node
++     * @property parent
++     * @type Node
++     */
++    parent: null,
++
++    /**
++     * The depth of this node.  We start at -1 for the root node.
++     * @property depth
++     * @type int
++     */
++    depth: -1,
++
++    /**
++     * The node's expanded/collapsed state
++     * @property expanded
++     * @type boolean
++     */
++    expanded: false,
++
++    /**
++     * Can multiple children be expanded at once?
++     * @property multiExpand
++     * @type boolean
++     */
++    multiExpand: true,
++
++    /**
++     * Should we render children for a collapsed node?  It is possible that the
++     * implementer will want to render the hidden data...  @todo verify that we 
++     * need this, and implement it if we do.
++     * @property renderHidden
++     * @type boolean
++     */
++    renderHidden: false,
++
++    /**
++     * This flag is set to true when the html is generated for this node's
++     * children, and set to false when new children are added.
++     * @property childrenRendered
++     * @type boolean
++     */
++    childrenRendered: false,
++
++    /**
++     * Dynamically loaded nodes only fetch the data the first time they are
++     * expanded.  This flag is set to true once the data has been fetched.
++     * @property dynamicLoadComplete
++     * @type boolean
++     */
++    dynamicLoadComplete: false,
++
++    /**
++     * This node's previous sibling
++     * @property previousSibling
++     * @type Node
++     */
++    previousSibling: null,
++
++    /**
++     * This node's next sibling
++     * @property nextSibling
++     * @type Node
++     */
++    nextSibling: null,
++
++    /**
++     * We can set the node up to call an external method to get the child
++     * data dynamically.
++     * @property _dynLoad
++     * @type boolean
++     * @private
++     */
++    _dynLoad: false,
++
++    /**
++     * Function to execute when we need to get this node's child data.
++     * @property dataLoader
++     * @type function
++     */
++    dataLoader: null,
++
++    /**
++     * This is true for dynamically loading nodes while waiting for the
++     * callback to return.
++     * @property isLoading
++     * @type boolean
++     */
++    isLoading: false,
++
++    /**
++     * The toggle/branch icon will not show if this is set to false.  This
++     * could be useful if the implementer wants to have the child contain
++     * extra info about the parent, rather than an actual node.
++     * @property hasIcon
++     * @type boolean
++     */
++    hasIcon: true,
++
++    /**
++     * Used to configure what happens when a dynamic load node is expanded
++     * and we discover that it does not have children.  By default, it is
++     * treated as if it still could have children (plus/minus icon).  Set
++     * iconMode to have it display like a leaf node instead.
++     * @property iconMode
++     * @type int
++     */
++    iconMode: 0,
++
++    /**
++     * Specifies whether or not the content area of the node should be allowed
++     * to wrap.
++     * @property nowrap
++     * @type boolean
++     * @default false
++     */
++    nowrap: false,
++
++ /**
++     * If true, the node will alway be rendered as a leaf node.  This can be
++     * used to override the presentation when dynamically loading the entire
++     * tree.  Setting this to true also disables the dynamic load call for the
++     * node.
++     * @property isLeaf
++     * @type boolean
++     * @default false
++     */
++    isLeaf: false,
++
++/**
++     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
++     * can be overridden to provide a custom presentation for a specific node.
++     * @property contentStyle
++     * @type string
++     */
++    contentStyle: "",
++
++
++    /**
++     * The generated id that will contain the data passed in by the implementer.
++     * @property contentElId
++     * @type string
++     */
++    contentElId: null,
++    
++/** 
++ * Enables node highlighting.  If true, the node can be highlighted and/or propagate highlighting
++ * @property enableHighlight
++ * @type boolean
++ * @default true
++ */
++    enableHighlight: true,
++    
++/** 
++ * Stores the highlight state.  Can be any of:
++ * <ul>
++ * <li>0 - not highlighted</li>
++ * <li>1 - highlighted</li>
++ * <li>2 - some children highlighted</li>
++ * </ul>
++ * @property highlightState
++ * @type integer
++ * @default 0
++ */
++ 
++ highlightState: 0,
++ 
++ /**
++ * Tells whether highlighting will be propagated up to the parents of the clicked node
++ * @property propagateHighlightUp
++ * @type boolean
++ * @default false
++ */
++ 
++ propagateHighlightUp: false,
++ 
++ /**
++ * Tells whether highlighting will be propagated down to the children of the clicked node
++ * @property propagateHighlightDown
++ * @type boolean
++ * @default false
++ */
++ 
++ propagateHighlightDown: false,
++ 
++ /**
++  * User-defined className to be added to the Node
++  * @property className
++  * @type string
++  * @default null
++  */
++ 
++ className: null,
++ 
++ /**
++     * The node type
++     * @property _type
++     * @private
++     * @type string
++     * @default "Node"
++*/
++    _type: "Node",
++
++    /*
++    spacerPath: "http://l.yimg.com/a/i/space.gif",
++    expandedText: "Expanded",
++    collapsedText: "Collapsed",
++    loadingText: "Loading",
++    */
++
++    /**
++     * Initializes this node, gets some of the properties from the parent
++     * @method init
++     * @param oData {object} a string or object containing the data that will
++     * be used to render this node
++     * @param oParent {Node} this node's parent node
++     * @param expanded {boolean} the initial expanded/collapsed state
++     */
++    init: function(oData, oParent, expanded) {
++
++        this.data = {};
++        this.children   = [];
++        this.index      = YAHOO.widget.TreeView.nodeCount;
++        ++YAHOO.widget.TreeView.nodeCount;
++        this.contentElId = "ygtvcontentel" + this.index;
++        
++        if (Lang.isObject(oData)) {
++            for (var property in oData) {
++                if (oData.hasOwnProperty(property)) {
++                    if (property.charAt(0) != '_'  && !Lang.isUndefined(this[property]) && !Lang.isFunction(this[property]) ) {
++                        this[property] = oData[property];
++                    } else {
++                        this.data[property] = oData[property];
++                    }
++                }
++            }
++        }
++        if (!Lang.isUndefined(expanded) ) { this.expanded  = expanded;  }
++        
++        this.logger     = new YAHOO.widget.LogWriter(this.toString());
++
++        /**
++         * The parentChange event is fired when a parent element is applied
++         * to the node.  This is useful if you need to apply tree-level
++         * properties to a tree that need to happen if a node is moved from
++         * one tree to another.
++         *
++         * @event parentChange
++         * @type CustomEvent
++         */
++        this.createEvent("parentChange", this);
++
++        // oParent should never be null except when we create the root node.
++        if (oParent) {
++            oParent.appendChild(this);
++        }
++    },
++
++    /**
++     * Certain properties for the node cannot be set until the parent
++     * is known. This is called after the node is inserted into a tree.
++     * the parent is also applied to this node's children in order to
++     * make it possible to move a branch from one tree to another.
++     * @method applyParent
++     * @param {Node} parentNode this node's parent node
++     * @return {boolean} true if the application was successful
++     */
++    applyParent: function(parentNode) {
++        if (!parentNode) {
++            return false;
++        }
++
++        this.tree   = parentNode.tree;
++        this.parent = parentNode;
++        this.depth  = parentNode.depth + 1;
++
++        // @todo why was this put here.  This causes new nodes added at the
++        // root level to lose the menu behavior.
++        // if (! this.multiExpand) {
++            // this.multiExpand = parentNode.multiExpand;
++        // }
++
++        this.tree.regNode(this);
++        parentNode.childrenRendered = false;
++
++        // cascade update existing children
++        for (var i=0, len=this.children.length;i<len;++i) {
++            this.children[i].applyParent(this);
++        }
++
++        this.fireEvent("parentChange");
++
++        return true;
++    },
++
++    /**
++     * Appends a node to the child collection.
++     * @method appendChild
++     * @param childNode {Node} the new node
++     * @return {Node} the child node
++     * @private
++     */
++    appendChild: function(childNode) {
++        if (this.hasChildren()) {
++            var sib = this.children[this.children.length - 1];
++            sib.nextSibling = childNode;
++            childNode.previousSibling = sib;
++        }
++        this.children[this.children.length] = childNode;
++        childNode.applyParent(this);
++
++        // part of the IE display issue workaround. If child nodes
++        // are added after the initial render, and the node was
++        // instantiated with expanded = true, we need to show the
++        // children div now that the node has a child.
++        if (this.childrenRendered && this.expanded) {
++            this.getChildrenEl().style.display = "";
++        }
++
++        return childNode;
++    },
++
++    /**
++     * Appends this node to the supplied node's child collection
++     * @method appendTo
++     * @param parentNode {Node} the node to append to.
++     * @return {Node} The appended node
++     */
++    appendTo: function(parentNode) {
++        return parentNode.appendChild(this);
++    },
++
++    /**
++    * Inserts this node before this supplied node
++    * @method insertBefore
++    * @param node {Node} the node to insert this node before
++    * @return {Node} the inserted node
++    */
++    insertBefore: function(node) {
++        this.logger.log("insertBefore: " + node);
++        var p = node.parent;
++        if (p) {
++
++            if (this.tree) {
++                this.tree.popNode(this);
++            }
++
++            var refIndex = node.isChildOf(p);
++            //this.logger.log(refIndex);
++            p.children.splice(refIndex, 0, this);
++            if (node.previousSibling) {
++                node.previousSibling.nextSibling = this;
++            }
++            this.previousSibling = node.previousSibling;
++            this.nextSibling = node;
++            node.previousSibling = this;
++
++            this.applyParent(p);
++        }
++
++        return this;
++    },
++ 
++    /**
++    * Inserts this node after the supplied node
++    * @method insertAfter
++    * @param node {Node} the node to insert after
++    * @return {Node} the inserted node
++    */
++    insertAfter: function(node) {
++        this.logger.log("insertAfter: " + node);
++        var p = node.parent;
++        if (p) {
++
++            if (this.tree) {
++                this.tree.popNode(this);
++            }
++
++            var refIndex = node.isChildOf(p);
++            this.logger.log(refIndex);
++
++            if (!node.nextSibling) {
++                this.nextSibling = null;
++                return this.appendTo(p);
++            }
++
++            p.children.splice(refIndex + 1, 0, this);
++
++            node.nextSibling.previousSibling = this;
++            this.previousSibling = node;
++            this.nextSibling = node.nextSibling;
++            node.nextSibling = this;
++
++            this.applyParent(p);
++        }
++
++        return this;
++    },
++
++    /**
++    * Returns true if the Node is a child of supplied Node
++    * @method isChildOf
++    * @param parentNode {Node} the Node to check
++    * @return {boolean} The node index if this Node is a child of 
++    *                   supplied Node, else -1.
++    * @private
++    */
++    isChildOf: function(parentNode) {
++        if (parentNode && parentNode.children) {
++            for (var i=0, len=parentNode.children.length; i<len ; ++i) {
++                if (parentNode.children[i] === this) {
++                    return i;
++                }
++            }
++        }
++
++        return -1;
++    },
++
++    /**
++     * Returns a node array of this node's siblings, null if none.
++     * @method getSiblings
++     * @return Node[]
++     */
++    getSiblings: function() {
++        var sib =  this.parent.children.slice(0);
++        for (var i=0;i < sib.length && sib[i] != this;i++) {}
++        sib.splice(i,1);
++        if (sib.length) { return sib; }
++        return null;
++    },
++
++    /**
++     * Shows this node's children
++     * @method showChildren
++     */
++    showChildren: function() {
++        if (!this.tree.animateExpand(this.getChildrenEl(), this)) {
++            if (this.hasChildren()) {
++                this.getChildrenEl().style.display = "";
++            }
++        }
++    },
++
++    /**
++     * Hides this node's children
++     * @method hideChildren
++     */
++    hideChildren: function() {
++        this.logger.log("hiding " + this.index);
++
++        if (!this.tree.animateCollapse(this.getChildrenEl(), this)) {
++            this.getChildrenEl().style.display = "none";
++        }
++    },
++
++    /**
++     * Returns the id for this node's container div
++     * @method getElId
++     * @return {string} the element id
++     */
++    getElId: function() {
++        return "ygtv" + this.index;
++    },
++
++    /**
++     * Returns the id for this node's children div
++     * @method getChildrenElId
++     * @return {string} the element id for this node's children div
++     */
++    getChildrenElId: function() {
++        return "ygtvc" + this.index;
++    },
++
++    /**
++     * Returns the id for this node's toggle element
++     * @method getToggleElId
++     * @return {string} the toggel element id
++     */
++    getToggleElId: function() {
++        return "ygtvt" + this.index;
++    },
++
++
++    /*
++     * Returns the id for this node's spacer image.  The spacer is positioned
++     * over the toggle and provides feedback for screen readers.
++     * @method getSpacerId
++     * @return {string} the id for the spacer image
++     */
++    /*
++    getSpacerId: function() {
++        return "ygtvspacer" + this.index;
++    }, 
++    */
++
++    /**
++     * Returns this node's container html element
++     * @method getEl
++     * @return {HTMLElement} the container html element
++     */
++    getEl: function() {
++        return Dom.get(this.getElId());
++    },
++
++    /**
++     * Returns the div that was generated for this node's children
++     * @method getChildrenEl
++     * @return {HTMLElement} this node's children div
++     */
++    getChildrenEl: function() {
++        return Dom.get(this.getChildrenElId());
++    },
++
++    /**
++     * Returns the element that is being used for this node's toggle.
++     * @method getToggleEl
++     * @return {HTMLElement} this node's toggle html element
++     */
++    getToggleEl: function() {
++        return Dom.get(this.getToggleElId());
++    },
++    /**
++    * Returns the outer html element for this node's content
++    * @method getContentEl
++    * @return {HTMLElement} the element
++    */
++    getContentEl: function() { 
++        return Dom.get(this.contentElId);
++    },
++
++
++    /*
++     * Returns the element that is being used for this node's spacer.
++     * @method getSpacer
++     * @return {HTMLElement} this node's spacer html element
++     */
++    /*
++    getSpacer: function() {
++        return document.getElementById( this.getSpacerId() ) || {};
++    },
++    */
++
++    /*
++    getStateText: function() {
++        if (this.isLoading) {
++            return this.loadingText;
++        } else if (this.hasChildren(true)) {
++            if (this.expanded) {
++                return this.expandedText;
++            } else {
++                return this.collapsedText;
++            }
++        } else {
++            return "";
++        }
++    },
++    */
++
++  /**
++     * Hides this nodes children (creating them if necessary), changes the toggle style.
++     * @method collapse
++     */
++    collapse: function() {
++        // Only collapse if currently expanded
++        if (!this.expanded) { return; }
++
++        // fire the collapse event handler
++        var ret = this.tree.onCollapse(this);
++
++        if (false === ret) {
++            this.logger.log("Collapse was stopped by the abstract onCollapse");
++            return;
++        }
++
++        ret = this.tree.fireEvent("collapse", this);
++
++        if (false === ret) {
++            this.logger.log("Collapse was stopped by a custom event handler");
++            return;
++        }
++
++
++        if (!this.getEl()) {
++            this.expanded = false;
++        } else {
++            // hide the child div
++            this.hideChildren();
++            this.expanded = false;
++
++            this.updateIcon();
++        }
++
++        // this.getSpacer().title = this.getStateText();
++
++        ret = this.tree.fireEvent("collapseComplete", this);
++
++    },
++
++    /**
++     * Shows this nodes children (creating them if necessary), changes the
++     * toggle style, and collapses its siblings if multiExpand is not set.
++     * @method expand
++     */
++    expand: function(lazySource) {
++        // Only expand if currently collapsed.
++        if (this.isLoading || (this.expanded && !lazySource)) { 
++            return; 
++        }
++
++        var ret = true;
++
++        // When returning from the lazy load handler, expand is called again
++        // in order to render the new children.  The "expand" event already
++        // fired before fething the new data, so we need to skip it now.
++        if (!lazySource) {
++            // fire the expand event handler
++            ret = this.tree.onExpand(this);
++
++            if (false === ret) {
++                this.logger.log("Expand was stopped by the abstract onExpand");
++                return;
++            }
++            
++            ret = this.tree.fireEvent("expand", this);
++        }
++
++        if (false === ret) {
++            this.logger.log("Expand was stopped by the custom event handler");
++            return;
++        }
++
++        if (!this.getEl()) {
++            this.expanded = true;
++            return;
++        }
++
++        if (!this.childrenRendered) {
++            this.logger.log("children not rendered yet");
++            this.getChildrenEl().innerHTML = this.renderChildren();
++        } else {
++            this.logger.log("children already rendered");
++        }
++
++        this.expanded = true;
++
++        this.updateIcon();
++
++        // this.getSpacer().title = this.getStateText();
++
++        // We do an extra check for children here because the lazy
++        // load feature can expose nodes that have no children.
++
++        // if (!this.hasChildren()) {
++        if (this.isLoading) {
++            this.expanded = false;
++            return;
++        }
++
++        if (! this.multiExpand) {
++            var sibs = this.getSiblings();
++            for (var i=0; sibs && i<sibs.length; ++i) {
++                if (sibs[i] != this && sibs[i].expanded) { 
++                    sibs[i].collapse(); 
++                }
++            }
++        }
++
++        this.showChildren();
++
++        ret = this.tree.fireEvent("expandComplete", this);
++    },
++
++    updateIcon: function() {
++        if (this.hasIcon) {
++            var el = this.getToggleEl();
++            if (el) {
++                el.className = el.className.replace(/\bygtv(([tl][pmn]h?)|(loading))\b/gi,this.getStyle());
++            }
++        }
++    },
++
++    /**
++     * Returns the css style name for the toggle
++     * @method getStyle
++     * @return {string} the css class for this node's toggle
++     */
++    getStyle: function() {
++        // this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded);
++        if (this.isLoading) {
++            this.logger.log("returning the loading icon");
++            return "ygtvloading";
++        } else {
++            // location top or bottom, middle nodes also get the top style
++            var loc = (this.nextSibling) ? "t" : "l";
++
++            // type p=plus(expand), m=minus(collapase), n=none(no children)
++            var type = "n";
++            if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) {
++            // if (this.hasChildren(true)) {
++                type = (this.expanded) ? "m" : "p";
++            }
++
++            // this.logger.log("ygtv" + loc + type);
++            return "ygtv" + loc + type;
++        }
++    },
++
++    /**
++     * Returns the hover style for the icon
++     * @return {string} the css class hover state
++     * @method getHoverStyle
++     */
++    getHoverStyle: function() { 
++        var s = this.getStyle();
++        if (this.hasChildren(true) && !this.isLoading) { 
++            s += "h"; 
++        }
++        return s;
++    },
++
++    /**
++     * Recursively expands all of this node's children.
++     * @method expandAll
++     */
++    expandAll: function() { 
++        var l = this.children.length;
++        for (var i=0;i<l;++i) {
++            var c = this.children[i];
++            if (c.isDynamic()) {
++                this.logger.log("Not supported (lazy load + expand all)");
++                break;
++            } else if (! c.multiExpand) {
++                this.logger.log("Not supported (no multi-expand + expand all)");
++                break;
++            } else {
++                c.expand();
++                c.expandAll();
++            }
++        }
++    },
++
++    /**
++     * Recursively collapses all of this node's children.
++     * @method collapseAll
++     */
++    collapseAll: function() { 
++        for (var i=0;i<this.children.length;++i) {
++            this.children[i].collapse();
++            this.children[i].collapseAll();
++        }
++    },
++
++    /**
++     * Configures this node for dynamically obtaining the child data
++     * when the node is first expanded.  Calling it without the callback
++     * will turn off dynamic load for the node.
++     * @method setDynamicLoad
++     * @param fmDataLoader {function} the function that will be used to get the data.
++     * @param iconMode {int} configures the icon that is displayed when a dynamic
++     * load node is expanded the first time without children.  By default, the 
++     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
++     * displayed.
++     */
++    setDynamicLoad: function(fnDataLoader, iconMode) { 
++        if (fnDataLoader) {
++            this.dataLoader = fnDataLoader;
++            this._dynLoad = true;
++        } else {
++            this.dataLoader = null;
++            this._dynLoad = false;
++        }
++
++        if (iconMode) {
++            this.iconMode = iconMode;
++        }
++    },
++
++    /**
++     * Evaluates if this node is the root node of the tree
++     * @method isRoot
++     * @return {boolean} true if this is the root node
++     */
++    isRoot: function() { 
++        return (this == this.tree.root);
++    },
++
++    /**
++     * Evaluates if this node's children should be loaded dynamically.  Looks for
++     * the property both in this instance and the root node.  If the tree is
++     * defined to load all children dynamically, the data callback function is
++     * defined in the root node
++     * @method isDynamic
++     * @return {boolean} true if this node's children are to be loaded dynamically
++     */
++    isDynamic: function() { 
++        if (this.isLeaf) {
++            return false;
++        } else {
++            return (!this.isRoot() && (this._dynLoad || this.tree.root._dynLoad));
++            // this.logger.log("isDynamic: " + lazy);
++            // return lazy;
++        }
++    },
++
++    /**
++     * Returns the current icon mode.  This refers to the way childless dynamic
++     * load nodes appear (this comes into play only after the initial dynamic
++     * load request produced no children).
++     * @method getIconMode
++     * @return {int} 0 for collapse style, 1 for leaf node style
++     */
++    getIconMode: function() {
++        return (this.iconMode || this.tree.root.iconMode);
++    },
++
++    /**
++     * Checks if this node has children.  If this node is lazy-loading and the
++     * children have not been rendered, we do not know whether or not there
++     * are actual children.  In most cases, we need to assume that there are
++     * children (for instance, the toggle needs to show the expandable 
++     * presentation state).  In other times we want to know if there are rendered
++     * children.  For the latter, "checkForLazyLoad" should be false.
++     * @method hasChildren
++     * @param checkForLazyLoad {boolean} should we check for unloaded children?
++     * @return {boolean} true if this has children or if it might and we are
++     * checking for this condition.
++     */
++    hasChildren: function(checkForLazyLoad) { 
++        if (this.isLeaf) {
++            return false;
++        } else {
++            return ( this.children.length > 0 || 
++				(checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) 
++			);
++        }
++    },
++
++    /**
++     * Expands if node is collapsed, collapses otherwise.
++     * @method toggle
++     */
++    toggle: function() {
++        if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) {
++            if (this.expanded) { this.collapse(); } else { this.expand(); }
++        }
++    },
++
++    /**
++     * Returns the markup for this node and its children.
++     * @method getHtml
++     * @return {string} the markup for this node and its expanded children.
++     */
++    getHtml: function() {
++
++        this.childrenRendered = false;
++
++        return ['<div class="ygtvitem" id="' , this.getElId() , '">' ,this.getNodeHtml() , this.getChildrenHtml() ,'</div>'].join("");
++    },
++
++    /**
++     * Called when first rendering the tree.  We always build the div that will
++     * contain this nodes children, but we don't render the children themselves
++     * unless this node is expanded.
++     * @method getChildrenHtml
++     * @return {string} the children container div html and any expanded children
++     * @private
++     */
++    getChildrenHtml: function() {
++
++
++        var sb = [];
++        sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
++
++        // This is a workaround for an IE rendering issue, the child div has layout
++        // in IE, creating extra space if a leaf node is created with the expanded
++        // property set to true.
++        if (!this.expanded || !this.hasChildren()) {
++            sb[sb.length] = ' style="display:none;"';
++        }
++        sb[sb.length] = '>';
++
++        // this.logger.log(["index", this.index, 
++                         // "hasChildren", this.hasChildren(true), 
++                         // "expanded", this.expanded, 
++                         // "renderHidden", this.renderHidden, 
++                         // "isDynamic", this.isDynamic()]);
++
++        // Don't render the actual child node HTML unless this node is expanded.
++        if ( (this.hasChildren(true) && this.expanded) ||
++                (this.renderHidden && !this.isDynamic()) ) {
++            sb[sb.length] = this.renderChildren();
++        }
++
++        sb[sb.length] = '</div>';
++
++        return sb.join("");
++    },
++
++    /**
++     * Generates the markup for the child nodes.  This is not done until the node
++     * is expanded.
++     * @method renderChildren
++     * @return {string} the html for this node's children
++     * @private
++     */
++    renderChildren: function() {
++
++        this.logger.log("rendering children for " + this.index);
++
++        var node = this;
++
++        if (this.isDynamic() && !this.dynamicLoadComplete) {
++            this.isLoading = true;
++            this.tree.locked = true;
++
++            if (this.dataLoader) {
++                this.logger.log("Using dynamic loader defined for this node");
++
++                setTimeout( 
++                    function() {
++                        node.dataLoader(node, 
++                            function() { 
++                                node.loadComplete(); 
++                            });
++                    }, 10);
++                
++            } else if (this.tree.root.dataLoader) {
++                this.logger.log("Using the tree-level dynamic loader");
++
++                setTimeout( 
++                    function() {
++                        node.tree.root.dataLoader(node, 
++                            function() { 
++                                node.loadComplete(); 
++                            });
++                    }, 10);
++
++            } else {
++                this.logger.log("no loader found");
++                return "Error: data loader not found or not specified.";
++            }
++
++            return "";
++
++        } else {
++            return this.completeRender();
++        }
++    },
++
++    /**
++     * Called when we know we have all the child data.
++     * @method completeRender
++     * @return {string} children html
++     */
++    completeRender: function() {
++        this.logger.log("completeRender: " + this.index + ", # of children: " + this.children.length);
++        var sb = [];
++
++        for (var i=0; i < this.children.length; ++i) {
++            // this.children[i].childrenRendered = false;
++            sb[sb.length] = this.children[i].getHtml();
++        }
++        
++        this.childrenRendered = true;
++
++        return sb.join("");
++    },
++
++    /**
++     * Load complete is the callback function we pass to the data provider
++     * in dynamic load situations.
++     * @method loadComplete
++     */
++    loadComplete: function() {
++        this.logger.log(this.index + " loadComplete, children: " + this.children.length);
++        this.getChildrenEl().innerHTML = this.completeRender();
++		if (this.propagateHighlightDown) {
++			if (this.highlightState === 1 && !this.tree.singleNodeHighlight) {
++				for (var i = 0; i < this.children.length; i++) {
++				this.children[i].highlight(true);
++			}
++			} else if (this.highlightState === 0 || this.tree.singleNodeHighlight) {
++				for (i = 0; i < this.children.length; i++) {
++					this.children[i].unhighlight(true);
++				}
++			} // if (highlighState == 2) leave child nodes with whichever highlight state they are set
++		}
++				
++        this.dynamicLoadComplete = true;
++        this.isLoading = false;
++        this.expand(true);
++        this.tree.locked = false;
++    },
++
++    /**
++     * Returns this node's ancestor at the specified depth.
++     * @method getAncestor
++     * @param {int} depth the depth of the ancestor.
++     * @return {Node} the ancestor
++     */
++    getAncestor: function(depth) {
++        if (depth >= this.depth || depth < 0)  {
++            this.logger.log("illegal getAncestor depth: " + depth);
++            return null;
++        }
++
++        var p = this.parent;
++        
++        while (p.depth > depth) {
++            p = p.parent;
++        }
++
++        return p;
++    },
++
++    /**
++     * Returns the css class for the spacer at the specified depth for
++     * this node.  If this node's ancestor at the specified depth
++     * has a next sibling the presentation is different than if it
++     * does not have a next sibling
++     * @method getDepthStyle
++     * @param {int} depth the depth of the ancestor.
++     * @return {string} the css class for the spacer
++     */
++    getDepthStyle: function(depth) {
++        return (this.getAncestor(depth).nextSibling) ? 
++            "ygtvdepthcell" : "ygtvblankdepthcell";
++    },
++
++    /**
++     * Get the markup for the node.  This may be overrided so that we can
++     * support different types of nodes.
++     * @method getNodeHtml
++     * @return {string} The HTML that will render this node.
++     */
++    getNodeHtml: function() { 
++        this.logger.log("Generating html");
++        var sb = [];
++
++        sb[sb.length] = '<table id="ygtvtableel' + this.index + '" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth' + this.depth;
++        if (this.enableHighlight) {
++            sb[sb.length] = ' ygtv-highlight' + this.highlightState;
++        }
++        if (this.className) {
++            sb[sb.length] = ' ' + this.className;
++        }           
++        sb[sb.length] = '"><tr class="ygtvrow">';
++        
++        for (var i=0;i<this.depth;++i) {
++            sb[sb.length] = '<td class="ygtvcell ' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>';
++        }
++
++        if (this.hasIcon) {
++            sb[sb.length] = '<td id="' + this.getToggleElId();
++            sb[sb.length] = '" class="ygtvcell ';
++            sb[sb.length] = this.getStyle() ;
++            sb[sb.length] = '"><a href="#" class="ygtvspacer">&#160;</a></td>';
++        }
++
++        sb[sb.length] = '<td id="' + this.contentElId; 
++        sb[sb.length] = '" class="ygtvcell ';
++        sb[sb.length] = this.contentStyle  + ' ygtvcontent" ';
++        sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : '';
++        sb[sb.length] = ' >';
++        sb[sb.length] = this.getContentHtml();
++        sb[sb.length] = '</td></tr></table>';
++
++        return sb.join("");
++
++    },
++    /**
++     * Get the markup for the contents of the node.  This is designed to be overrided so that we can
++     * support different types of nodes.
++     * @method getContentHtml
++     * @return {string} The HTML that will render the content of this node.
++     */
++    getContentHtml: function () {
++        return "";
++    },
++
++    /**
++     * Regenerates the html for this node and its children.  To be used when the
++     * node is expanded and new children have been added.
++     * @method refresh
++     */
++    refresh: function() {
++        // this.loadComplete();
++        this.getChildrenEl().innerHTML = this.completeRender();
++
++        if (this.hasIcon) {
++            var el = this.getToggleEl();
++            if (el) {
++                el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
++            }
++        }
++    },
++
++    /**
++     * Node toString
++     * @method toString
++     * @return {string} string representation of the node
++     */
++    toString: function() {
++        return this._type + " (" + this.index + ")";
++    },
++    /**
++    * array of items that had the focus set on them
++    * so that they can be cleaned when focus is lost
++    * @property _focusHighlightedItems
++    * @type Array of DOM elements
++    * @private
++    */
++    _focusHighlightedItems: [],
++    /**
++    * DOM element that actually got the browser focus
++    * @property _focusedItem
++    * @type DOM element
++    * @private
++    */
++    _focusedItem: null,
++    
++    /**
++    * Returns true if there are any elements in the node that can 
++    * accept the real actual browser focus
++    * @method _canHaveFocus
++    * @return {boolean} success
++    * @private
++    */
++    _canHaveFocus: function() {
++        return this.getEl().getElementsByTagName('a').length > 0;
++    },
++    /**
++    * Removes the focus of previously selected Node
++    * @method _removeFocus
++    * @private
++    */
++    _removeFocus:function () {
++        if (this._focusedItem) {
++            Event.removeListener(this._focusedItem,'blur');
++            this._focusedItem = null;
++        }
++        var el;
++        while ((el = this._focusHighlightedItems.shift())) {  // yes, it is meant as an assignment, really
++            Dom.removeClass(el,YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
++        }
++    },
++    /**
++    * Sets the focus on the node element.
++    * It will only be able to set the focus on nodes that have anchor elements in it.  
++    * Toggle or branch icons have anchors and can be focused on.  
++    * If will fail in nodes that have no anchor
++    * @method focus
++    * @return {boolean} success
++    */
++    focus: function () {
++        var focused = false, self = this;
++
++        if (this.tree.currentFocus) {
++            this.tree.currentFocus._removeFocus();
++        }
++    
++        var  expandParent = function (node) {
++            if (node.parent) {
++                expandParent(node.parent);
++                node.parent.expand();
++            } 
++        };
++        expandParent(this);
++
++        Dom.getElementsBy  ( 
++            function (el) {
++                return (/ygtv(([tl][pmn]h?)|(content))/).test(el.className);
++            } ,
++            'td' , 
++            self.getEl().firstChild , 
++            function (el) {
++                Dom.addClass(el, YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
++                if (!focused) { 
++                    var aEl = el.getElementsByTagName('a');
++                    if (aEl.length) {
++                        aEl = aEl[0];
++                        aEl.focus();
++                        self._focusedItem = aEl;
++                        Event.on(aEl,'blur',function () {
++                            //console.log('f1');
++                            self.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
++                            self.tree.currentFocus = null;
++                            self._removeFocus();
++                        });
++                        focused = true;
++                    }
++                }
++                self._focusHighlightedItems.push(el);
++            }
++        );
++        if (focused) { 
++                            //console.log('f2');
++            this.tree.fireEvent('focusChanged',{oldNode:this.tree.currentFocus,newNode:this});
++            this.tree.currentFocus = this;
++        } else {
++                            //console.log('f3');
++            this.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
++            this.tree.currentFocus = null;
++            this._removeFocus(); 
++        }
++        return focused;
++    },
++
++  /**
++     * Count of nodes in a branch
++     * @method getNodeCount
++     * @return {int} number of nodes in the branch
++     */
++    getNodeCount: function() {
++        for (var i = 0, count = 0;i< this.children.length;i++) {
++            count += this.children[i].getNodeCount();
++        }
++        return count + 1;
++    },
++    
++      /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if the node or any children loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if the node or any children is defined as dynamic
++     */
++    getNodeDefinition: function() {
++    
++        if (this.isDynamic()) { return false; }
++        
++        var def, defs = Lang.merge(this.data), children = []; 
++        
++        
++
++        if (this.expanded) {defs.expanded = this.expanded; }
++        if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
++        if (!this.renderHidden) { defs.renderHidden = this.renderHidden; }
++        if (!this.hasIcon) { defs.hasIcon = this.hasIcon; }
++        if (this.nowrap) { defs.nowrap = this.nowrap; }
++        if (this.className) { defs.className = this.className; }
++        if (this.editable) { defs.editable = this.editable; }
++        if (this.enableHighlight) { defs.enableHighlight = this.enableHighlight; }
++        if (this.highlightState) { defs.highlightState = this.highlightState; }
++        if (this.propagateHighlightUp) { defs.propagateHighlightUp = this.propagateHighlightUp; }
++        if (this.propagateHighlightDown) { defs.propagateHighlightDown = this.propagateHighlightDown; }
++        defs.type = this._type;
++        
++        
++        
++        for (var i = 0; i < this.children.length;i++) {
++            def = this.children[i].getNodeDefinition();
++            if (def === false) { return false;}
++            children.push(def);
++        }
++        if (children.length) { defs.children = children; }
++        return defs;
++    },
++
++
++    /**
++     * Generates the link that will invoke this node's toggle method
++     * @method getToggleLink
++     * @return {string} the javascript url for toggling this node
++     */
++    getToggleLink: function() {
++        return 'return false;';
++    },
++    
++    /**
++    * Sets the value of property for this node and all loaded descendants.  
++    * Only public and defined properties can be set, not methods.  
++    * Values for unknown properties will be assigned to the refNode.data object
++    * @method setNodesProperty
++    * @param name {string} Name of the property to be set
++    * @param value {any} value to be set
++    * @param refresh {boolean} if present and true, it does a refresh
++    */
++    setNodesProperty: function(name, value, refresh) {
++        if (name.charAt(0) != '_'  && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
++            this[name] = value;
++        } else {
++            this.data[name] = value;
++        }
++        for (var i = 0; i < this.children.length;i++) {
++            this.children[i].setNodesProperty(name,value);
++        }
++        if (refresh) {
++            this.refresh();
++        }
++    },
++    /**
++    * Toggles the highlighted state of a Node
++    * @method toggleHighlight
++    */
++    toggleHighlight: function() {
++        if (this.enableHighlight) {
++            // unhighlights only if fully highligthed.  For not or partially highlighted it will highlight
++            if (this.highlightState == 1) {
++                this.unhighlight();
++            } else {
++                this.highlight();
++            }
++        }
++    },
++    
++    /**
++    * Turns highlighting on node.  
++    * @method highlight
++    * @param _silent {boolean} optional, don't fire the highlightEvent
++    */
++    highlight: function(_silent) {
++        if (this.enableHighlight) {
++            if (this.tree.singleNodeHighlight) {
++                if (this.tree._currentlyHighlighted) {
++                    this.tree._currentlyHighlighted.unhighlight(_silent);
++                }
++                this.tree._currentlyHighlighted = this;
++            }
++            this.highlightState = 1;
++            this._setHighlightClassName();
++            if (!this.tree.singleNodeHighlight) {
++				if (this.propagateHighlightDown) {
++					for (var i = 0;i < this.children.length;i++) {
++						this.children[i].highlight(true);
++					}
++				}
++				if (this.propagateHighlightUp) {
++					if (this.parent) {
++						this.parent._childrenHighlighted();
++					}
++				}
++			}
++            if (!_silent) {
++                this.tree.fireEvent('highlightEvent',this);
++            }
++        }
++    },
++    /**
++    * Turns highlighting off a node.  
++    * @method unhighlight
++    * @param _silent {boolean} optional, don't fire the highlightEvent
++    */
++    unhighlight: function(_silent) {
++        if (this.enableHighlight) {
++			// might have checked singleNodeHighlight but it wouldn't really matter either way
++            this.tree._currentlyHighlighted = null;
++            this.highlightState = 0;
++            this._setHighlightClassName();
++            if (!this.tree.singleNodeHighlight) {
++				if (this.propagateHighlightDown) {
++					for (var i = 0;i < this.children.length;i++) {
++						this.children[i].unhighlight(true);
++					}
++				}
++				if (this.propagateHighlightUp) {
++					if (this.parent) {
++						this.parent._childrenHighlighted();
++					}
++				}
++			}
++            if (!_silent) {
++                this.tree.fireEvent('highlightEvent',this);
++            }
++        }
++    },
++    /** 
++    * Checks whether all or part of the children of a node are highlighted and
++    * sets the node highlight to full, none or partial highlight.
++    * If set to propagate it will further call the parent
++    * @method _childrenHighlighted
++    * @private
++    */
++    _childrenHighlighted: function() {
++        var yes = false, no = false;
++        if (this.enableHighlight) {
++            for (var i = 0;i < this.children.length;i++) {
++                switch(this.children[i].highlightState) {
++                    case 0:
++                        no = true;
++                        break;
++                    case 1:
++                        yes = true;
++                        break;
++                    case 2:
++                        yes = no = true;
++                        break;
++                }
++            }
++            if (yes && no) {
++                this.highlightState = 2;
++            } else if (yes) {
++                this.highlightState = 1;
++            } else {
++                this.highlightState = 0;
++            }
++            this._setHighlightClassName();
++            if (this.propagateHighlightUp) {
++                if (this.parent) {
++                    this.parent._childrenHighlighted();
++                }
++            }
++        }
++    },
++    
++    /**
++    * Changes the classNames on the toggle and content containers to reflect the current highlighting
++    * @method _setHighlightClassName
++    * @private
++    */
++    _setHighlightClassName: function() {
++        var el = Dom.get('ygtvtableel' + this.index);
++        if (el) {
++            el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
++        }
++    }
++    
++};
++
++YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider);
++})();
++
++/**
++ * A custom YAHOO.widget.Node that handles the unique nature of 
++ * the virtual, presentationless root node.
++ * @namespace YAHOO.widget
++ * @class RootNode
++ * @extends YAHOO.widget.Node
++ * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to
++ * @constructor
++ */
++YAHOO.widget.RootNode = function(oTree) {
++    // Initialize the node with null params.  The root node is a
++    // special case where the node has no presentation.  So we have
++    // to alter the standard properties a bit.
++    this.init(null, null, true);
++    
++    /*
++     * For the root node, we get the tree reference from as a param
++     * to the constructor instead of from the parent element.
++     */
++    this.tree = oTree;
++};
++
++YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, {
++    
++   /**
++     * The node type
++     * @property _type
++      * @type string
++     * @private
++     * @default "RootNode"
++     */
++    _type: "RootNode",
++    
++    // overrides YAHOO.widget.Node
++    getNodeHtml: function() { 
++        return ""; 
++    },
++
++    toString: function() { 
++        return this._type;
++    },
++
++    loadComplete: function() { 
++        this.tree.draw();
++    },
++    
++   /**
++     * Count of nodes in tree.  
++    * It overrides Nodes.getNodeCount because the root node should not be counted.
++     * @method getNodeCount
++     * @return {int} number of nodes in the tree
++     */
++    getNodeCount: function() {
++        for (var i = 0, count = 0;i< this.children.length;i++) {
++            count += this.children[i].getNodeCount();
++        }
++        return count;
++    },
++
++  /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * Since the RootNode is automatically created by treeView, 
++     * its own definition is excluded from the returned node definition
++     * which only contains its children.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if any child node is defined as dynamic
++     */
++    getNodeDefinition: function() {
++        
++        for (var def, defs = [], i = 0; i < this.children.length;i++) {
++            def = this.children[i].getNodeDefinition();
++            if (def === false) { return false;}
++            defs.push(def);
++        }
++        return defs;
++    },
++
++    collapse: function() {},
++    expand: function() {},
++    getSiblings: function() { return null; },
++    focus: function () {}
++
++});
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event;
++/**
++ * The default node presentation.  The first parameter should be
++ * either a string that will be used as the node's label, or an object
++ * that has at least a string property called label.  By default,  clicking the
++ * label will toggle the expanded/collapsed state of the node.  By
++ * setting the href property of the instance, this behavior can be
++ * changed so that the label will go to the specified href.
++ * @namespace YAHOO.widget
++ * @class TextNode
++ * @extends YAHOO.widget.Node
++ * @constructor
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.
++ * Providing a string is the same as providing an object with a single property named label.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions.
++ * All attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ */
++YAHOO.widget.TextNode = function(oData, oParent, expanded) {
++
++    if (oData) { 
++        if (Lang.isString(oData)) {
++            oData = { label: oData };
++        }
++        this.init(oData, oParent, expanded);
++        this.setUpLabel(oData);
++    }
++
++    this.logger     = new YAHOO.widget.LogWriter(this.toString());
++};
++
++YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, {
++    
++    /**
++     * The CSS class for the label href.  Defaults to ygtvlabel, but can be
++     * overridden to provide a custom presentation for a specific node.
++     * @property labelStyle
++     * @type string
++     */
++    labelStyle: "ygtvlabel",
++
++    /**
++     * The derived element id of the label for this node
++     * @property labelElId
++     * @type string
++     */
++    labelElId: null,
++
++    /**
++     * The text for the label.  It is assumed that the oData parameter will
++     * either be a string that will be used as the label, or an object that
++     * has a property called "label" that we will use.
++     * @property label
++     * @type string
++     */
++    label: null,
++
++    /**
++     * The text for the title (tooltip) for the label element
++     * @property title
++     * @type string
++     */
++    title: null,
++    
++    /**
++     * The href for the node's label.  If one is not specified, the href will
++     * be set so that it toggles the node.
++     * @property href
++     * @type string
++     */
++    href: null,
++
++    /**
++     * The label href target, defaults to current window
++     * @property target
++     * @type string
++     */
++    target: "_self",
++    
++    /**
++     * The node type
++     * @property _type
++     * @private
++     * @type string
++     * @default "TextNode"
++     */
++    _type: "TextNode",
++
++
++    /**
++     * Sets up the node label
++     * @method setUpLabel
++     * @param oData string containing the label, or an object with a label property
++     */
++    setUpLabel: function(oData) { 
++        
++        if (Lang.isString(oData)) {
++            oData = { 
++                label: oData 
++            };
++        } else {
++            if (oData.style) {
++                this.labelStyle = oData.style;
++            }
++        }
++
++        this.label = oData.label;
++
++        this.labelElId = "ygtvlabelel" + this.index;
++        
++    },
++
++    /**
++     * Returns the label element
++     * @for YAHOO.widget.TextNode
++     * @method getLabelEl
++     * @return {object} the element
++     */
++    getLabelEl: function() { 
++        return Dom.get(this.labelElId);
++    },
++
++    // overrides YAHOO.widget.Node
++    getContentHtml: function() { 
++        var sb = [];
++        sb[sb.length] = this.href?'<a':'<span';
++        sb[sb.length] = ' id="' + this.labelElId + '"';
++        sb[sb.length] = ' class="' + this.labelStyle  + '"';
++        if (this.href) {
++            sb[sb.length] = ' href="' + this.href + '"';
++            sb[sb.length] = ' target="' + this.target + '"';
++        } 
++        if (this.title) {
++            sb[sb.length] = ' title="' + this.title + '"';
++        }
++        sb[sb.length] = ' >';
++        sb[sb.length] = this.label;
++        sb[sb.length] = this.href?'</a>':'</span>';
++        return sb.join("");
++    },
++
++
++
++  /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if this node or any descendant is defined as dynamic
++     */
++    getNodeDefinition: function() {
++        var def = YAHOO.widget.TextNode.superclass.getNodeDefinition.call(this);
++        if (def === false) { return false; }
++
++        // Node specific properties
++        def.label = this.label;
++        if (this.labelStyle != 'ygtvlabel') { def.style = this.labelStyle; }
++        if (this.title) { def.title = this.title; }
++        if (this.href) { def.href = this.href; }
++        if (this.target != '_self') { def.target = this.target; }       
++
++        return def;
++    
++    },
++
++    toString: function() { 
++        return YAHOO.widget.TextNode.superclass.toString.call(this) + ": " + this.label;
++    },
++
++    // deprecated
++    onLabelClick: function() {
++        return false;
++    },
++    refresh: function() {
++        YAHOO.widget.TextNode.superclass.refresh.call(this);
++        var label = this.getLabelEl();
++        label.innerHTML = this.label;
++        if (label.tagName.toUpperCase() == 'A') {
++            label.href = this.href;
++            label.target = this.target;
++        }
++    }
++        
++    
++
++    
++});
++})();
++
++/**
++ * A menu-specific implementation that differs from TextNode in that only 
++ * one sibling can be expanded at a time.
++ * @namespace YAHOO.widget
++ * @class MenuNode
++ * @extends YAHOO.widget.TextNode
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.
++ * Providing a string is the same as providing an object with a single property named label.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions.
++ * All attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ * @constructor
++ */
++YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
++    YAHOO.widget.MenuNode.superclass.constructor.call(this,oData,oParent,expanded);
++
++   /*
++     * Menus usually allow only one branch to be open at a time.
++     */
++    this.multiExpand = false;
++
++};
++
++YAHOO.extend(YAHOO.widget.MenuNode, YAHOO.widget.TextNode, {
++
++    /**
++     * The node type
++     * @property _type
++     * @private
++    * @default "MenuNode"
++     */
++    _type: "MenuNode"
++
++});
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event;
++
++/**
++ * This implementation takes either a string or object for the
++ * oData argument.  If is it a string, it will use it for the display
++ * of this node (and it can contain any html code).  If the parameter
++ * is an object,it looks for a parameter called "html" that will be
++ * used for this node's display.
++ * @namespace YAHOO.widget
++ * @class HTMLNode
++ * @extends YAHOO.widget.Node
++ * @constructor
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.  
++ * Providing a string is the same as providing an object with a single property named html.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions.
++ * All other attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ * @param hasIcon {boolean} specifies whether or not leaf nodes should
++ * be rendered with or without a horizontal line line and/or toggle icon. If the icon
++ * is not displayed, the content fills the space it would have occupied.
++ * This option operates independently of the leaf node presentation logic
++ * for dynamic nodes.
++ * (deprecated; use oData.hasIcon) 
++ */
++YAHOO.widget.HTMLNode = function(oData, oParent, expanded, hasIcon) {
++    if (oData) { 
++        this.init(oData, oParent, expanded);
++        this.initContent(oData, hasIcon);
++    }
++};
++
++YAHOO.extend(YAHOO.widget.HTMLNode, YAHOO.widget.Node, {
++
++    /**
++     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
++     * can be overridden to provide a custom presentation for a specific node.
++     * @property contentStyle
++     * @type string
++     */
++    contentStyle: "ygtvhtml",
++
++
++    /**
++     * The HTML content to use for this node's display
++     * @property html
++     * @type string
++     */
++    html: null,
++    
++/**
++     * The node type
++     * @property _type
++     * @private
++     * @type string
++     * @default "HTMLNode"
++     */
++    _type: "HTMLNode",
++
++    /**
++     * Sets up the node label
++     * @property initContent
++     * @param oData {object} An html string or object containing an html property
++     * @param hasIcon {boolean} determines if the node will be rendered with an
++     * icon or not
++     */
++    initContent: function(oData, hasIcon) { 
++        this.setHtml(oData);
++        this.contentElId = "ygtvcontentel" + this.index;
++        if (!Lang.isUndefined(hasIcon)) { this.hasIcon  = hasIcon; }
++        
++        this.logger = new YAHOO.widget.LogWriter(this.toString());
++    },
++
++    /**
++     * Synchronizes the node.html, and the node's content
++     * @property setHtml
++     * @param o {object} An html string or object containing an html property
++     */
++    setHtml: function(o) {
++
++        this.html = (typeof o === "string") ? o : o.html;
++
++        var el = this.getContentEl();
++        if (el) {
++            el.innerHTML = this.html;
++        }
++
++    },
++
++    // overrides YAHOO.widget.Node
++    getContentHtml: function() { 
++        return this.html;
++    },
++    
++      /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
++     */
++    getNodeDefinition: function() {
++        var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
++        if (def === false) { return false; }
++        def.html = this.html;
++        return def;
++    
++    }
++});
++})();
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event,
++        Calendar = YAHOO.widget.Calendar;
++        
++/**
++ * A Date-specific implementation that differs from TextNode in that it uses 
++ * YAHOO.widget.Calendar as an in-line editor, if available
++ * If Calendar is not available, it behaves as a plain TextNode.
++ * @namespace YAHOO.widget
++ * @class DateNode
++ * @extends YAHOO.widget.TextNode
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.
++ * Providing a string is the same as providing an object with a single property named label.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private nor functions.
++ * All attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ * @constructor
++ */
++YAHOO.widget.DateNode = function(oData, oParent, expanded) {
++    YAHOO.widget.DateNode.superclass.constructor.call(this,oData, oParent, expanded);
++};
++
++YAHOO.extend(YAHOO.widget.DateNode, YAHOO.widget.TextNode, {
++
++    /**
++     * The node type
++     * @property _type
++     * @type string
++     * @private
++     * @default  "DateNode"
++     */
++    _type: "DateNode",
++    
++    /**
++    * Configuration object for the Calendar editor, if used.
++    * See <a href="http://developer.yahoo.com/yui/calendar/#internationalization">http://developer.yahoo.com/yui/calendar/#internationalization</a>
++    * @property calendarConfig
++    */
++    calendarConfig: null,
++    
++    
++    
++    /** 
++     *  If YAHOO.widget.Calendar is available, it will pop up a Calendar to enter a new date.  Otherwise, it falls back to a plain &lt;input&gt;  textbox
++     * @method fillEditorContainer
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return void
++     */
++    fillEditorContainer: function (editorData) {
++    
++        var cal, container = editorData.inputContainer;
++        
++        if (Lang.isUndefined(Calendar)) {
++            Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
++            YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);
++            return;
++        }
++            
++        if (editorData.nodeType != this._type) {
++            editorData.nodeType = this._type;
++            editorData.saveOnEnter = false;
++            
++            editorData.node.destroyEditorContents(editorData);
++
++            editorData.inputObject = cal = new Calendar(container.appendChild(document.createElement('div')));
++            if (this.calendarConfig) { 
++                cal.cfg.applyConfig(this.calendarConfig,true); 
++                cal.cfg.fireQueue();
++            }
++            cal.selectEvent.subscribe(function () {
++                this.tree._closeEditor(true);
++            },this,true);
++        } else {
++            cal = editorData.inputObject;
++        }
++
++		editorData.oldValue = this.label;
++        cal.cfg.setProperty("selected",this.label, false); 
++
++        var delim = cal.cfg.getProperty('DATE_FIELD_DELIMITER');
++        var pageDate = this.label.split(delim);
++        cal.cfg.setProperty('pagedate',pageDate[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] + delim + pageDate[cal.cfg.getProperty('MDY_YEAR_POSITION') -1]);
++        cal.cfg.fireQueue();
++
++        cal.render();
++        cal.oDomContainer.focus();
++    },
++     /**
++    * Returns the value from the input element.
++    * Overrides Node.getEditorValue.
++    * @method getEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {string} date entered
++     */
++
++	getEditorValue: function (editorData) {
++        if (Lang.isUndefined(Calendar)) {
++            return editorData.inputElement.value;
++        } else {
++            var cal = editorData.inputObject,
++                date = cal.getSelectedDates()[0],
++                dd = [];
++                
++            dd[cal.cfg.getProperty('MDY_DAY_POSITION') -1] = date.getDate();
++            dd[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] = date.getMonth() + 1;
++            dd[cal.cfg.getProperty('MDY_YEAR_POSITION') -1] = date.getFullYear();
++            return dd.join(cal.cfg.getProperty('DATE_FIELD_DELIMITER'));
++        }
++	},
++
++	/**
++    * Finally displays the newly entered date in the tree.
++    * Overrides Node.displayEditedValue.
++    * @method displayEditedValue
++     *  @param value {string} date to be displayed and stored in the node
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     */
++	displayEditedValue: function (value,editorData) {
++		var node = editorData.node;
++		node.label = value;
++		node.getLabelEl().innerHTML = value;
++	},
++  /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the node or false if this node or any descendant is defined as dynamic
++     */ 
++    getNodeDefinition: function() {
++        var def = YAHOO.widget.DateNode.superclass.getNodeDefinition.call(this);
++        if (def === false) { return false; }
++        if (this.calendarConfig) { def.calendarConfig = this.calendarConfig; }
++        return def;
++    }
++
++
++});
++})();
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang, 
++        Event = YAHOO.util.Event,
++        TV = YAHOO.widget.TreeView,
++        TVproto = TV.prototype;
++
++    /**
++     * An object to store information used for in-line editing
++     * for all Nodes of all TreeViews. It contains:
++     * <ul>
++    * <li>active {boolean}, whether there is an active cell editor </li>
++    * <li>whoHasIt {YAHOO.widget.TreeView} TreeView instance that is currently using the editor</li>
++    * <li>nodeType {string} value of static Node._type property, allows reuse of input element if node is of the same type.</li>
++    * <li>editorPanel {HTMLelement (&lt;div&gt;)} element holding the in-line editor</li>
++    * <li>inputContainer {HTMLelement (&lt;div&gt;)} element which will hold the type-specific input element(s) to be filled by the fillEditorContainer method</li>
++    * <li>buttonsContainer {HTMLelement (&lt;div&gt;)} element which holds the &lt;button&gt; elements for Ok/Cancel.  If you don't want any of the buttons, hide it via CSS styles, don't destroy it</li>
++    * <li>node {YAHOO.widget.Node} reference to the Node being edited</li>
++    * <li>saveOnEnter {boolean}, whether the Enter key should be accepted as a Save command (Esc. is always taken as Cancel), disable for multi-line input elements </li>
++    * <li>oldValue {any}  value before editing</li>
++    * </ul>
++    *  Editors are free to use this object to store additional data.
++     * @property editorData
++     * @static
++     * @for YAHOO.widget.TreeView
++     */
++    TV.editorData = {
++        active:false,
++        whoHasIt:null, // which TreeView has it
++        nodeType:null,
++        editorPanel:null,
++        inputContainer:null,
++        buttonsContainer:null,
++        node:null, // which Node is being edited
++        saveOnEnter:true,
++		oldValue:undefined
++        // Each node type is free to add its own properties to this as it sees fit.
++    };
++    
++    /**
++    * Validator function for edited data, called from the TreeView instance scope, 
++    * receives the arguments (newValue, oldValue, nodeInstance) 
++    * and returns either the validated (or type-converted) value or undefined. 
++    * An undefined return will prevent the editor from closing
++    * @property validator
++    * @type function
++    * @default null
++     * @for YAHOO.widget.TreeView
++     */
++    TVproto.validator = null;
++    
++    /**
++    * Entry point for initializing the editing plug-in.  
++    * TreeView will call this method on initializing if it exists
++    * @method _initEditor
++     * @for YAHOO.widget.TreeView
++     * @private
++    */
++
++	TVproto._initEditor = function () {
++		/** 
++	 	* Fires when the user clicks on the ok button of a node editor
++	 	* @event editorSaveEvent 
++	 	* @type CustomEvent 
++	 	* @param oArgs.newValue {mixed} the new value just entered 
++	 	* @param oArgs.oldValue {mixed} the value originally in the tree 
++	 	* @param oArgs.node {YAHOO.widget.Node} the node that has the focus 
++	        * @for YAHOO.widget.TreeView
++	 	*/ 
++	 	this.createEvent("editorSaveEvent", this); 
++		
++		/** 
++	 	* Fires when the user clicks on the cancel button of a node editor
++	 	* @event editorCancelEvent 
++	 	* @type CustomEvent 
++	 	* @param {YAHOO.widget.Node} node the node that has the focus 
++	        * @for YAHOO.widget.TreeView
++	 	*/ 
++	 	this.createEvent("editorCancelEvent", this); 
++
++	};
++
++    /**
++    * Entry point of the editing plug-in.  
++    * TreeView will call this method if it exists when a node label is clicked
++    * @method _nodeEditing
++    * @param node {YAHOO.widget.Node} the node to be edited
++    * @return {Boolean} true to indicate that the node is editable and prevent any further bubbling of the click.
++     * @for YAHOO.widget.TreeView
++     * @private
++    */
++	
++    
++    
++    TVproto._nodeEditing = function (node) {
++        if (node.fillEditorContainer && node.editable) {
++            var ed, topLeft, buttons, button, editorData = TV.editorData;
++            editorData.active = true;
++            editorData.whoHasIt = this;
++            if (!editorData.nodeType) {
++                editorData.editorPanel = ed = document.body.appendChild(document.createElement('div'));
++                Dom.addClass(ed,'ygtv-label-editor');
++
++                buttons = editorData.buttonsContainer = ed.appendChild(document.createElement('div'));
++                Dom.addClass(buttons,'ygtv-button-container');
++                button = buttons.appendChild(document.createElement('button'));
++                Dom.addClass(button,'ygtvok');
++                button.innerHTML = ' ';
++                button = buttons.appendChild(document.createElement('button'));
++                Dom.addClass(button,'ygtvcancel');
++                button.innerHTML = ' ';
++                Event.on(buttons, 'click', function (ev) {
++                    this.logger.log('click on editor');
++                    var target = Event.getTarget(ev);
++                    var node = TV.editorData.node;
++                    if (Dom.hasClass(target,'ygtvok')) {
++                        node.logger.log('ygtvok');
++                        Event.stopEvent(ev);
++                        this._closeEditor(true);
++                    }
++                    if (Dom.hasClass(target,'ygtvcancel')) {
++                        node.logger.log('ygtvcancel');
++                        Event.stopEvent(ev);
++                        this._closeEditor(false);
++                    }
++                }, this, true);
++
++                editorData.inputContainer = ed.appendChild(document.createElement('div'));
++                Dom.addClass(editorData.inputContainer,'ygtv-input');
++                
++                Event.on(ed,'keydown',function (ev) {
++                    var editorData = TV.editorData,
++                        KEY = YAHOO.util.KeyListener.KEY;
++                    switch (ev.keyCode) {
++                        case KEY.ENTER:
++                            this.logger.log('ENTER');
++                            Event.stopEvent(ev);
++                            if (editorData.saveOnEnter) { 
++                                this._closeEditor(true);
++                            }
++                            break;
++                        case KEY.ESCAPE:
++                            this.logger.log('ESC');
++                            Event.stopEvent(ev);
++                            this._closeEditor(false);
++                            break;
++                    }
++                },this,true);
++
++
++                
++            } else {
++                ed = editorData.editorPanel;
++            }
++            editorData.node = node;
++            if (editorData.nodeType) {
++                Dom.removeClass(ed,'ygtv-edit-' + editorData.nodeType);
++            }
++            Dom.addClass(ed,' ygtv-edit-' + node._type);
++            topLeft = Dom.getXY(node.getContentEl());
++            Dom.setStyle(ed,'left',topLeft[0] + 'px');
++            Dom.setStyle(ed,'top',topLeft[1] + 'px');
++            Dom.setStyle(ed,'display','block');
++            ed.focus();
++            node.fillEditorContainer(editorData);
++
++            return true;  // If inline editor available, don't do anything else.
++        }
++    };
++    
++    /**
++    * Method to be associated with an event (clickEvent, dblClickEvent or enterKeyPressed) to pop up the contents editor
++    *  It calls the corresponding node editNode method.
++    * @method onEventEditNode
++    * @param oArgs {object} Object passed as arguments to TreeView event listeners
++     * @for YAHOO.widget.TreeView
++    */
++
++    TVproto.onEventEditNode = function (oArgs) {
++        if (oArgs instanceof YAHOO.widget.Node) {
++            oArgs.editNode();
++        } else if (oArgs.node instanceof YAHOO.widget.Node) {
++            oArgs.node.editNode();
++        }
++    };
++    
++    /**
++    * Method to be called when the inline editing is finished and the editor is to be closed
++    * @method _closeEditor
++    * @param save {Boolean} true if the edited value is to be saved, false if discarded
++    * @private
++     * @for YAHOO.widget.TreeView
++    */
++    
++    TVproto._closeEditor = function (save) {
++        var ed = TV.editorData, 
++            node = ed.node,
++            close = true;
++        if (save) { 
++            close = ed.node.saveEditorValue(ed) !== false; 
++        } else {
++			this.fireEvent( 'editorCancelEvent', node); 
++		}
++			
++        if (close) {
++            Dom.setStyle(ed.editorPanel,'display','none');  
++            ed.active = false;
++            node.focus();
++        }
++    };
++    
++    /**
++    *  Entry point for TreeView's destroy method to destroy whatever the editing plug-in has created
++    * @method _destroyEditor
++    * @private
++     * @for YAHOO.widget.TreeView
++    */
++    TVproto._destroyEditor = function() {
++        var ed = TV.editorData;
++        if (ed && ed.nodeType && (!ed.active || ed.whoHasIt === this)) {
++            Event.removeListener(ed.editorPanel,'keydown');
++            Event.removeListener(ed.buttonContainer,'click');
++            ed.node.destroyEditorContents(ed);
++            document.body.removeChild(ed.editorPanel);
++            ed.nodeType = ed.editorPanel = ed.inputContainer = ed.buttonsContainer = ed.whoHasIt = ed.node = null;
++            ed.active = false;
++        }
++    };
++    
++    var Nproto = YAHOO.widget.Node.prototype;
++    
++    /**
++    * Signals if the label is editable.  (Ignored on TextNodes with href set.)
++    * @property editable
++    * @type boolean
++         * @for YAHOO.widget.Node
++    */
++    Nproto.editable = false;
++    
++    /**
++    * pops up the contents editor, if there is one and the node is declared editable
++    * @method editNode
++     * @for YAHOO.widget.Node
++    */
++    
++    Nproto.editNode = function () {
++        this.tree._nodeEditing(this);
++    };
++    
++    
++
++
++    /** Placeholder for a function that should provide the inline node label editor.
++     *   Leaving it set to null will indicate that this node type is not editable.
++     * It should be overridden by nodes that provide inline editing.
++     *  The Node-specific editing element (input box, textarea or whatever) should be inserted into editorData.inputContainer.
++     * @method fillEditorContainer
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return void
++     * @for YAHOO.widget.Node
++     */
++    Nproto.fillEditorContainer = null;
++
++    
++    /**
++    * Node-specific destroy function to empty the contents of the inline editor panel.
++    * This function is the worst case alternative that will purge all possible events and remove the editor contents.
++    * Method Event.purgeElement is somewhat costly so if it can be replaced by specifc Event.removeListeners, it is better to do so.
++    * @method destroyEditorContents
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.Node
++     */
++    Nproto.destroyEditorContents = function (editorData) {
++        // In the worst case, if the input editor (such as the Calendar) has no destroy method
++        // we can only try to remove all possible events on it.
++        Event.purgeElement(editorData.inputContainer,true);
++        editorData.inputContainer.innerHTML = '';
++    };
++
++    /**
++    * Saves the value entered into the editor.
++    * @method saveEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {false or none} a return of exactly false will prevent the editor from closing
++     * @for YAHOO.widget.Node
++     */
++    Nproto.saveEditorValue = function (editorData) {
++        var node = editorData.node, 
++			value,
++            validator = node.tree.validator;
++			
++		value = this.getEditorValue(editorData);
++        
++        if (Lang.isFunction(validator)) {
++            value = validator(value,editorData.oldValue,node);
++            if (Lang.isUndefined(value)) { 
++				return false; 
++			}
++        }
++
++		if (this.tree.fireEvent( 'editorSaveEvent', {
++			newValue:value,
++			oldValue:editorData.oldValue,
++			node:node
++		}) !== false) {
++			this.displayEditedValue(value,editorData);
++		}
++	};
++	
++	
++    /**
++    * Returns the value(s) from the input element(s) .
++    * Should be overridden by each node type.
++    * @method getEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {any} value entered
++     * @for YAHOO.widget.Node
++     */
++
++	 Nproto.getEditorValue = function (editorData) {
++	};
++
++	/**
++    * Finally displays the newly edited value(s) in the tree.
++    * Should be overridden by each node type.
++    * @method displayEditedValue
++     *  @param value {any} value to be displayed and stored in the node
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.Node
++     */
++	Nproto.displayEditedValue = function (value,editorData) {
++	};
++    
++    var TNproto = YAHOO.widget.TextNode.prototype;
++    
++
++
++    /** 
++     *  Places an &lt;input&gt;  textbox in the input container and loads the label text into it.
++     * @method fillEditorContainer
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return void
++     * @for YAHOO.widget.TextNode
++     */
++    TNproto.fillEditorContainer = function (editorData) {
++    
++        var input;
++        // If last node edited is not of the same type as this one, delete it and fill it with our editor
++        if (editorData.nodeType != this._type) {
++            editorData.nodeType = this._type;
++            editorData.saveOnEnter = true;
++            editorData.node.destroyEditorContents(editorData);
++
++            editorData.inputElement = input = editorData.inputContainer.appendChild(document.createElement('input'));
++            
++        } else {
++            // if the last node edited was of the same time, reuse the input element.
++            input = editorData.inputElement;
++        }
++		editorData.oldValue = this.label;
++        input.value = this.label;
++        input.focus();
++        input.select();
++    };
++    
++    /**
++    * Returns the value from the input element.
++    * Overrides Node.getEditorValue.
++    * @method getEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {string} value entered
++     * @for YAHOO.widget.TextNode
++     */
++
++    TNproto.getEditorValue = function (editorData) {
++        return editorData.inputElement.value;
++	};
++
++	/**
++    * Finally displays the newly edited value in the tree.
++    * Overrides Node.displayEditedValue.
++    * @method displayEditedValue
++     *  @param value {string} value to be displayed and stored in the node
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.TextNode
++     */
++	TNproto.displayEditedValue = function (value,editorData) {
++		var node = editorData.node;
++		node.label = value;
++		node.getLabelEl().innerHTML = value;
++	};
++
++    /**
++    * Destroys the contents of the inline editor panel.
++    * Overrides Node.destroyEditorContent.
++    * Since we didn't set any event listeners on this inline editor, it is more efficient to avoid the generic method in Node.
++    * @method destroyEditorContents
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.TextNode
++     */
++    TNproto.destroyEditorContents = function (editorData) {
++        editorData.inputContainer.innerHTML = '';
++    };
++})();
++
++/**
++ * A static factory class for tree view expand/collapse animations
++ * @class TVAnim
++ * @static
++ */
++YAHOO.widget.TVAnim = function() {
++    return {
++        /**
++         * Constant for the fade in animation
++         * @property FADE_IN
++         * @type string
++         * @static
++         */
++        FADE_IN: "TVFadeIn",
++
++        /**
++         * Constant for the fade out animation
++         * @property FADE_OUT
++         * @type string
++         * @static
++         */
++        FADE_OUT: "TVFadeOut",
++
++        /**
++         * Returns a ygAnim instance of the given type
++         * @method getAnim
++         * @param type {string} the type of animation
++         * @param el {HTMLElement} the element to element (probably the children div)
++         * @param callback {function} function to invoke when the animation is done.
++         * @return {YAHOO.util.Animation} the animation instance
++         * @static
++         */
++        getAnim: function(type, el, callback) {
++            if (YAHOO.widget[type]) {
++                return new YAHOO.widget[type](el, callback);
++            } else {
++                return null;
++            }
++        },
++
++        /**
++         * Returns true if the specified animation class is available
++         * @method isValid
++         * @param type {string} the type of animation
++         * @return {boolean} true if valid, false if not
++         * @static
++         */
++        isValid: function(type) {
++            return (YAHOO.widget[type]);
++        }
++    };
++} ();
++
++/**
++ * A 1/2 second fade-in animation.
++ * @class TVFadeIn
++ * @constructor
++ * @param el {HTMLElement} the element to animate
++ * @param callback {function} function to invoke when the animation is finished
++ */
++YAHOO.widget.TVFadeIn = function(el, callback) {
++    /**
++     * The element to animate
++     * @property el
++     * @type HTMLElement
++     */
++    this.el = el;
++
++    /**
++     * the callback to invoke when the animation is complete
++     * @property callback
++     * @type function
++     */
++    this.callback = callback;
++
++    this.logger = new YAHOO.widget.LogWriter(this.toString());
++};
++
++YAHOO.widget.TVFadeIn.prototype = {
++    /**
++     * Performs the animation
++     * @method animate
++     */
++    animate: function() {
++        var tvanim = this;
++
++        var s = this.el.style;
++        s.opacity = 0.1;
++        s.filter = "alpha(opacity=10)";
++        s.display = "";
++
++        var dur = 0.4; 
++        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}}, dur);
++        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
++        a.animate();
++    },
++
++    /**
++     * Clean up and invoke callback
++     * @method onComplete
++     */
++    onComplete: function() {
++        this.callback();
++    },
++
++    /**
++     * toString
++     * @method toString
++     * @return {string} the string representation of the instance
++     */
++    toString: function() {
++        return "TVFadeIn";
++    }
++};
++
++/**
++ * A 1/2 second fade out animation.
++ * @class TVFadeOut
++ * @constructor
++ * @param el {HTMLElement} the element to animate
++ * @param callback {Function} function to invoke when the animation is finished
++ */
++YAHOO.widget.TVFadeOut = function(el, callback) {
++    /**
++     * The element to animate
++     * @property el
++     * @type HTMLElement
++     */
++    this.el = el;
++
++    /**
++     * the callback to invoke when the animation is complete
++     * @property callback
++     * @type function
++     */
++    this.callback = callback;
++
++    this.logger = new YAHOO.widget.LogWriter(this.toString());
++};
++
++YAHOO.widget.TVFadeOut.prototype = {
++    /**
++     * Performs the animation
++     * @method animate
++     */
++    animate: function() {
++        var tvanim = this;
++        var dur = 0.4;
++        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 1, to: 0.1, unit:""}}, dur);
++        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
++        a.animate();
++    },
++
++    /**
++     * Clean up and invoke callback
++     * @method onComplete
++     */
++    onComplete: function() {
++        var s = this.el.style;
++        s.display = "none";
++        s.opacity = 1;
++        s.filter = "alpha(opacity=100)";
++        this.callback();
++    },
++
++    /**
++     * toString
++     * @method toString
++     * @return {string} the string representation of the instance
++     */
++    toString: function() {
++        return "TVFadeOut";
++    }
++};
++
++YAHOO.register("treeview", YAHOO.widget.TreeView, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/treeview/treeview-min.js b/pylons_app/public/js/yui/treeview/treeview-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/treeview/treeview-min.js
+@@ -0,0 +1,12 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function(){var D=YAHOO.util.Dom,B=YAHOO.util.Event,F=YAHOO.lang,E=YAHOO.widget;YAHOO.widget.TreeView=function(H,G){if(H){this.init(H);}if(G){this.buildTreeFromObject(G);}else{if(F.trim(this._el.innerHTML)){this.buildTreeFromMarkup(H);}}};var C=E.TreeView;C.prototype={id:null,_el:null,_nodes:null,locked:false,_expandAnim:null,_collapseAnim:null,_animCount:0,maxAnim:2,_hasDblClickSubscriber:false,_dblClickTimer:null,currentFocus:null,singleNodeHighlight:false,_currentlyHighlighted:null,setExpandAnim:function(G){this._expandAnim=(E.TVAnim.isValid(G))?G:null;},setCollapseAnim:function(G){this._collapseAnim=(E.TVAnim.isValid(G))?G:null;},animateExpand:function(I,J){if(this._expandAnim&&this._animCount<this.maxAnim){var G=this;var H=E.TVAnim.getAnim(this._expandAnim,I,function(){G.expandComplete(J);});if(H){++this._animCount;this.fireEvent("animStart",{"node":J,"type":"expand"});H.animate();}return true;}return false;},animateCollapse:function(I,J){if(this._collapseAnim&&this._animCount<this.maxAnim){var G=this;var H=E.TVAnim.getAnim(this._collapseAnim,I,function(){G.collapseComplete(J);});if(H){++this._animCount;this.fireEvent("animStart",{"node":J,"type":"collapse"});H.animate();}return true;}return false;},expandComplete:function(G){--this._animCount;this.fireEvent("animComplete",{"node":G,"type":"expand"});},collapseComplete:function(G){--this._animCount;this.fireEvent("animComplete",{"node":G,"type":"collapse"});},init:function(I){this._el=D.get(I);this.id=D.generateId(this._el,"yui-tv-auto-id-");this.createEvent("animStart",this);this.createEvent("animComplete",this);this.createEvent("collapse",this);this.createEvent("collapseComplete",this);this.createEvent("expand",this);this.createEvent("expandComplete",this);this.createEvent("enterKeyPressed",this);this.createEvent("clickEvent",this);this.createEvent("focusChanged",this);var G=this;this.createEvent("dblClickEvent",{scope:this,onSubscribeCallback:function(){G._hasDblClickSubscriber=true;}});this.createEvent("labelClick",this);this.createEvent("highlightEvent",this);this._nodes=[];C.trees[this.id]=this;this.root=new E.RootNode(this);var H=E.LogWriter;if(this._initEditor){this._initEditor();}},buildTreeFromObject:function(G){var H=function(P,M){var L,Q,K,J,O,I,N;for(L=0;L<M.length;L++){Q=M[L];if(F.isString(Q)){K=new E.TextNode(Q,P);}else{if(F.isObject(Q)){J=Q.children;delete Q.children;O=Q.type||"text";delete Q.type;switch(F.isString(O)&&O.toLowerCase()){case"text":K=new E.TextNode(Q,P);break;case"menu":K=new E.MenuNode(Q,P);break;case"html":K=new E.HTMLNode(Q,P);break;default:if(F.isString(O)){I=E[O];}else{I=O;}if(F.isObject(I)){for(N=I;N&&N!==E.Node;N=N.superclass.constructor){}if(N){K=new I(Q,P);}else{}}else{}}if(J){H(K,J);}}else{}}}};if(!F.isArray(G)){G=[G];}H(this.root,G);},buildTreeFromMarkup:function(I){var H=function(J){var N,Q,M=[],L={},K,O;for(N=D.getFirstChild(J);N;N=D.getNextSibling(N)){switch(N.tagName.toUpperCase()){case"LI":K="";L={expanded:D.hasClass(N,"expanded"),title:N.title||N.alt||null,className:F.trim(N.className.replace(/\bexpanded\b/,""))||null};Q=N.firstChild;if(Q.nodeType==3){K=F.trim(Q.nodeValue.replace(/[\n\t\r]*/g,""));if(K){L.type="text";L.label=K;}else{Q=D.getNextSibling(Q);}}if(!K){if(Q.tagName.toUpperCase()=="A"){L.type="text";L.label=Q.innerHTML;L.href=Q.href;L.target=Q.target;L.title=Q.title||Q.alt||L.title;}else{L.type="html";var P=document.createElement("div");P.appendChild(Q.cloneNode(true));L.html=P.innerHTML;L.hasIcon=true;}}Q=D.getNextSibling(Q);switch(Q&&Q.tagName.toUpperCase()){case"UL":case"OL":L.children=H(Q);break;}if(YAHOO.lang.JSON){O=N.getAttribute("yuiConfig");if(O){O=YAHOO.lang.JSON.parse(O);L=YAHOO.lang.merge(L,O);}}M.push(L);break;case"UL":case"OL":L={type:"text",label:"",children:H(Q)};M.push(L);break;}}return M;};var G=D.getChildrenBy(D.get(I),function(K){var J=K.tagName.toUpperCase();return J=="UL"||J=="OL";});if(G.length){this.buildTreeFromObject(H(G[0]));}else{}},_getEventTargetTdEl:function(H){var I=B.getTarget(H);while(I&&!(I.tagName.toUpperCase()=="TD"&&D.hasClass(I.parentNode,"ygtvrow"))){I=D.getAncestorByTagName(I,"td");}if(F.isNull(I)){return null;}if(/\bygtv(blank)?depthcell/.test(I.className)){return null;}if(I.id){var G=I.id.match(/\bygtv([^\d]*)(.*)/);if(G&&G[2]&&this._nodes[G[2]]){return I;}}return null;},_onClickEvent:function(J){var H=this,L=this._getEventTargetTdEl(J),I,K,G=function(M){I.focus();if(M||!I.href){I.toggle();try{B.preventDefault(J);}catch(N){}}};if(!L){return;}I=this.getNodeByElement(L);if(!I){return;}K=B.getTarget(J);if(D.hasClass(K,I.labelStyle)||D.getAncestorByClassName(K,I.labelStyle)){this.fireEvent("labelClick",I);}if(/\bygtv[tl][mp]h?h?/.test(L.className)){G(true);}else{if(this._dblClickTimer){window.clearTimeout(this._dblClickTimer);this._dblClickTimer=null;}else{if(this._hasDblClickSubscriber){this._dblClickTimer=window.setTimeout(function(){H._dblClickTimer=null;if(H.fireEvent("clickEvent",{event:J,node:I})!==false){G();}},200);}else{if(H.fireEvent("clickEvent",{event:J,node:I})!==false){G();}}}}},_onDblClickEvent:function(G){if(!this._hasDblClickSubscriber){return;}var H=this._getEventTargetTdEl(G);if(!H){return;}if(!(/\bygtv[tl][mp]h?h?/.test(H.className))){this.fireEvent("dblClickEvent",{event:G,node:this.getNodeByElement(H)});if(this._dblClickTimer){window.clearTimeout(this._dblClickTimer);this._dblClickTimer=null;}}},_onMouseOverEvent:function(G){var H;if((H=this._getEventTargetTdEl(G))&&(H=this.getNodeByElement(H))&&(H=H.getToggleEl())){H.className=H.className.replace(/\bygtv([lt])([mp])\b/gi,"ygtv$1$2h");}},_onMouseOutEvent:function(G){var H;if((H=this._getEventTargetTdEl(G))&&(H=this.getNodeByElement(H))&&(H=H.getToggleEl())){H.className=H.className.replace(/\bygtv([lt])([mp])h\b/gi,"ygtv$1$2");}},_onKeyDownEvent:function(L){var N=B.getTarget(L),K=this.getNodeByElement(N),J=K,G=YAHOO.util.KeyListener.KEY;switch(L.keyCode){case G.UP:do{if(J.previousSibling){J=J.previousSibling;}else{J=J.parent;}}while(J&&!J._canHaveFocus());if(J){J.focus();
++}B.preventDefault(L);break;case G.DOWN:do{if(J.nextSibling){J=J.nextSibling;}else{J.expand();J=(J.children.length||null)&&J.children[0];}}while(J&&!J._canHaveFocus);if(J){J.focus();}B.preventDefault(L);break;case G.LEFT:do{if(J.parent){J=J.parent;}else{J=J.previousSibling;}}while(J&&!J._canHaveFocus());if(J){J.focus();}B.preventDefault(L);break;case G.RIGHT:var I=this,M,H=function(O){I.unsubscribe("expandComplete",H);M(O);};M=function(O){do{if(O.isDynamic()&&!O.childrenRendered){I.subscribe("expandComplete",H);O.expand();O=null;break;}else{O.expand();if(O.children.length){O=O.children[0];}else{O=O.nextSibling;}}}while(O&&!O._canHaveFocus());if(O){O.focus();}};M(J);B.preventDefault(L);break;case G.ENTER:if(K.href){if(K.target){window.open(K.href,K.target);}else{window.location(K.href);}}else{K.toggle();}this.fireEvent("enterKeyPressed",K);B.preventDefault(L);break;case G.HOME:J=this.getRoot();if(J.children.length){J=J.children[0];}if(J._canHaveFocus()){J.focus();}B.preventDefault(L);break;case G.END:J=J.parent.children;J=J[J.length-1];if(J._canHaveFocus()){J.focus();}B.preventDefault(L);break;case 107:if(L.shiftKey){K.parent.expandAll();}else{K.expand();}break;case 109:if(L.shiftKey){K.parent.collapseAll();}else{K.collapse();}break;default:break;}},render:function(){var G=this.root.getHtml(),H=this.getEl();H.innerHTML=G;if(!this._hasEvents){B.on(H,"click",this._onClickEvent,this,true);B.on(H,"dblclick",this._onDblClickEvent,this,true);B.on(H,"mouseover",this._onMouseOverEvent,this,true);B.on(H,"mouseout",this._onMouseOutEvent,this,true);B.on(H,"keydown",this._onKeyDownEvent,this,true);}this._hasEvents=true;},getEl:function(){if(!this._el){this._el=D.get(this.id);}return this._el;},regNode:function(G){this._nodes[G.index]=G;},getRoot:function(){return this.root;},setDynamicLoad:function(G,H){this.root.setDynamicLoad(G,H);},expandAll:function(){if(!this.locked){this.root.expandAll();}},collapseAll:function(){if(!this.locked){this.root.collapseAll();}},getNodeByIndex:function(H){var G=this._nodes[H];return(G)?G:null;},getNodeByProperty:function(I,H){for(var G in this._nodes){if(this._nodes.hasOwnProperty(G)){var J=this._nodes[G];if((I in J&&J[I]==H)||(J.data&&H==J.data[I])){return J;}}}return null;},getNodesByProperty:function(J,I){var G=[];for(var H in this._nodes){if(this._nodes.hasOwnProperty(H)){var K=this._nodes[H];if((J in K&&K[J]==I)||(K.data&&I==K.data[J])){G.push(K);}}}return(G.length)?G:null;},getNodesBy:function(I){var G=[];for(var H in this._nodes){if(this._nodes.hasOwnProperty(H)){var J=this._nodes[H];if(I(J)){G.push(J);}}}return(G.length)?G:null;},getNodeByElement:function(I){var J=I,G,H=/ygtv([^\d]*)(.*)/;do{if(J&&J.id){G=J.id.match(H);if(G&&G[2]){return this.getNodeByIndex(G[2]);}}J=J.parentNode;if(!J||!J.tagName){break;}}while(J.id!==this.id&&J.tagName.toLowerCase()!=="body");return null;},getHighlightedNode:function(){return this._currentlyHighlighted;},removeNode:function(H,G){if(H.isRoot()){return false;}var I=H.parent;if(I.parent){I=I.parent;}this._deleteNode(H);if(G&&I&&I.childrenRendered){I.refresh();}return true;},_removeChildren_animComplete:function(G){this.unsubscribe(this._removeChildren_animComplete);this.removeChildren(G.node);},removeChildren:function(G){if(G.expanded){if(this._collapseAnim){this.subscribe("animComplete",this._removeChildren_animComplete,this,true);E.Node.prototype.collapse.call(G);return;}G.collapse();}while(G.children.length){this._deleteNode(G.children[0]);}if(G.isRoot()){E.Node.prototype.expand.call(G);}G.childrenRendered=false;G.dynamicLoadComplete=false;G.updateIcon();},_deleteNode:function(G){this.removeChildren(G);this.popNode(G);},popNode:function(J){var K=J.parent;var H=[];for(var I=0,G=K.children.length;I<G;++I){if(K.children[I]!=J){H[H.length]=K.children[I];}}K.children=H;K.childrenRendered=false;if(J.previousSibling){J.previousSibling.nextSibling=J.nextSibling;}if(J.nextSibling){J.nextSibling.previousSibling=J.previousSibling;}if(this.currentFocus==J){this.currentFocus=null;}if(this._currentlyHighlighted==J){this._currentlyHighlighted=null;}J.parent=null;J.previousSibling=null;J.nextSibling=null;J.tree=null;delete this._nodes[J.index];},destroy:function(){if(this._destroyEditor){this._destroyEditor();}var H=this.getEl();B.removeListener(H,"click");B.removeListener(H,"dblclick");B.removeListener(H,"mouseover");B.removeListener(H,"mouseout");B.removeListener(H,"keydown");for(var G=0;G<this._nodes.length;G++){var I=this._nodes[G];if(I&&I.destroy){I.destroy();}}H.innerHTML="";this._hasEvents=false;},toString:function(){return"TreeView "+this.id;},getNodeCount:function(){return this.getRoot().getNodeCount();},getTreeDefinition:function(){return this.getRoot().getNodeDefinition();},onExpand:function(G){},onCollapse:function(G){},setNodesProperty:function(G,I,H){this.root.setNodesProperty(G,I);if(H){this.root.refresh();}},onEventToggleHighlight:function(H){var G;if("node" in H&&H.node instanceof E.Node){G=H.node;}else{if(H instanceof E.Node){G=H;}else{return false;}}G.toggleHighlight();return false;}};var A=C.prototype;A.draw=A.render;YAHOO.augment(C,YAHOO.util.EventProvider);C.nodeCount=0;C.trees=[];C.getTree=function(H){var G=C.trees[H];return(G)?G:null;};C.getNode=function(H,I){var G=C.getTree(H);return(G)?G.getNodeByIndex(I):null;};C.FOCUS_CLASS_NAME="ygtvfocus";})();(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event;YAHOO.widget.Node=function(F,E,D){if(F){this.init(F,E,D);}};YAHOO.widget.Node.prototype={index:0,children:null,tree:null,data:null,parent:null,depth:-1,expanded:false,multiExpand:true,renderHidden:false,childrenRendered:false,dynamicLoadComplete:false,previousSibling:null,nextSibling:null,_dynLoad:false,dataLoader:null,isLoading:false,hasIcon:true,iconMode:0,nowrap:false,isLeaf:false,contentStyle:"",contentElId:null,enableHighlight:true,highlightState:0,propagateHighlightUp:false,propagateHighlightDown:false,className:null,_type:"Node",init:function(G,F,D){this.data={};this.children=[];this.index=YAHOO.widget.TreeView.nodeCount;
++++YAHOO.widget.TreeView.nodeCount;this.contentElId="ygtvcontentel"+this.index;if(C.isObject(G)){for(var E in G){if(G.hasOwnProperty(E)){if(E.charAt(0)!="_"&&!C.isUndefined(this[E])&&!C.isFunction(this[E])){this[E]=G[E];}else{this.data[E]=G[E];}}}}if(!C.isUndefined(D)){this.expanded=D;}this.createEvent("parentChange",this);if(F){F.appendChild(this);}},applyParent:function(E){if(!E){return false;}this.tree=E.tree;this.parent=E;this.depth=E.depth+1;this.tree.regNode(this);E.childrenRendered=false;for(var F=0,D=this.children.length;F<D;++F){this.children[F].applyParent(this);}this.fireEvent("parentChange");return true;},appendChild:function(E){if(this.hasChildren()){var D=this.children[this.children.length-1];D.nextSibling=E;E.previousSibling=D;}this.children[this.children.length]=E;E.applyParent(this);if(this.childrenRendered&&this.expanded){this.getChildrenEl().style.display="";}return E;},appendTo:function(D){return D.appendChild(this);},insertBefore:function(D){var F=D.parent;if(F){if(this.tree){this.tree.popNode(this);}var E=D.isChildOf(F);F.children.splice(E,0,this);if(D.previousSibling){D.previousSibling.nextSibling=this;}this.previousSibling=D.previousSibling;this.nextSibling=D;D.previousSibling=this;this.applyParent(F);}return this;},insertAfter:function(D){var F=D.parent;if(F){if(this.tree){this.tree.popNode(this);}var E=D.isChildOf(F);if(!D.nextSibling){this.nextSibling=null;return this.appendTo(F);}F.children.splice(E+1,0,this);D.nextSibling.previousSibling=this;this.previousSibling=D;this.nextSibling=D.nextSibling;D.nextSibling=this;this.applyParent(F);}return this;},isChildOf:function(E){if(E&&E.children){for(var F=0,D=E.children.length;F<D;++F){if(E.children[F]===this){return F;}}}return -1;},getSiblings:function(){var D=this.parent.children.slice(0);for(var E=0;E<D.length&&D[E]!=this;E++){}D.splice(E,1);if(D.length){return D;}return null;},showChildren:function(){if(!this.tree.animateExpand(this.getChildrenEl(),this)){if(this.hasChildren()){this.getChildrenEl().style.display="";}}},hideChildren:function(){if(!this.tree.animateCollapse(this.getChildrenEl(),this)){this.getChildrenEl().style.display="none";}},getElId:function(){return"ygtv"+this.index;},getChildrenElId:function(){return"ygtvc"+this.index;},getToggleElId:function(){return"ygtvt"+this.index;},getEl:function(){return B.get(this.getElId());},getChildrenEl:function(){return B.get(this.getChildrenElId());},getToggleEl:function(){return B.get(this.getToggleElId());},getContentEl:function(){return B.get(this.contentElId);},collapse:function(){if(!this.expanded){return;}var D=this.tree.onCollapse(this);if(false===D){return;}D=this.tree.fireEvent("collapse",this);if(false===D){return;}if(!this.getEl()){this.expanded=false;}else{this.hideChildren();this.expanded=false;this.updateIcon();}D=this.tree.fireEvent("collapseComplete",this);},expand:function(F){if(this.isLoading||(this.expanded&&!F)){return;}var D=true;if(!F){D=this.tree.onExpand(this);if(false===D){return;}D=this.tree.fireEvent("expand",this);}if(false===D){return;}if(!this.getEl()){this.expanded=true;return;}if(!this.childrenRendered){this.getChildrenEl().innerHTML=this.renderChildren();}else{}this.expanded=true;this.updateIcon();if(this.isLoading){this.expanded=false;return;}if(!this.multiExpand){var G=this.getSiblings();for(var E=0;G&&E<G.length;++E){if(G[E]!=this&&G[E].expanded){G[E].collapse();}}}this.showChildren();D=this.tree.fireEvent("expandComplete",this);},updateIcon:function(){if(this.hasIcon){var D=this.getToggleEl();if(D){D.className=D.className.replace(/\bygtv(([tl][pmn]h?)|(loading))\b/gi,this.getStyle());}}},getStyle:function(){if(this.isLoading){return"ygtvloading";}else{var E=(this.nextSibling)?"t":"l";var D="n";if(this.hasChildren(true)||(this.isDynamic()&&!this.getIconMode())){D=(this.expanded)?"m":"p";}return"ygtv"+E+D;}},getHoverStyle:function(){var D=this.getStyle();if(this.hasChildren(true)&&!this.isLoading){D+="h";}return D;},expandAll:function(){var D=this.children.length;for(var E=0;E<D;++E){var F=this.children[E];if(F.isDynamic()){break;}else{if(!F.multiExpand){break;}else{F.expand();F.expandAll();}}}},collapseAll:function(){for(var D=0;D<this.children.length;++D){this.children[D].collapse();this.children[D].collapseAll();}},setDynamicLoad:function(D,E){if(D){this.dataLoader=D;this._dynLoad=true;}else{this.dataLoader=null;this._dynLoad=false;}if(E){this.iconMode=E;}},isRoot:function(){return(this==this.tree.root);},isDynamic:function(){if(this.isLeaf){return false;}else{return(!this.isRoot()&&(this._dynLoad||this.tree.root._dynLoad));}},getIconMode:function(){return(this.iconMode||this.tree.root.iconMode);},hasChildren:function(D){if(this.isLeaf){return false;}else{return(this.children.length>0||(D&&this.isDynamic()&&!this.dynamicLoadComplete));}},toggle:function(){if(!this.tree.locked&&(this.hasChildren(true)||this.isDynamic())){if(this.expanded){this.collapse();}else{this.expand();}}},getHtml:function(){this.childrenRendered=false;return['<div class="ygtvitem" id="',this.getElId(),'">',this.getNodeHtml(),this.getChildrenHtml(),"</div>"].join("");},getChildrenHtml:function(){var D=[];D[D.length]='<div class="ygtvchildren" id="'+this.getChildrenElId()+'"';if(!this.expanded||!this.hasChildren()){D[D.length]=' style="display:none;"';}D[D.length]=">";if((this.hasChildren(true)&&this.expanded)||(this.renderHidden&&!this.isDynamic())){D[D.length]=this.renderChildren();}D[D.length]="</div>";return D.join("");},renderChildren:function(){var D=this;if(this.isDynamic()&&!this.dynamicLoadComplete){this.isLoading=true;this.tree.locked=true;if(this.dataLoader){setTimeout(function(){D.dataLoader(D,function(){D.loadComplete();});},10);}else{if(this.tree.root.dataLoader){setTimeout(function(){D.tree.root.dataLoader(D,function(){D.loadComplete();});},10);}else{return"Error: data loader not found or not specified.";}}return"";}else{return this.completeRender();}},completeRender:function(){var E=[];for(var D=0;D<this.children.length;++D){E[E.length]=this.children[D].getHtml();
++}this.childrenRendered=true;return E.join("");},loadComplete:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.propagateHighlightDown){if(this.highlightState===1&&!this.tree.singleNodeHighlight){for(var D=0;D<this.children.length;D++){this.children[D].highlight(true);}}else{if(this.highlightState===0||this.tree.singleNodeHighlight){for(D=0;D<this.children.length;D++){this.children[D].unhighlight(true);}}}}this.dynamicLoadComplete=true;this.isLoading=false;this.expand(true);this.tree.locked=false;},getAncestor:function(E){if(E>=this.depth||E<0){return null;}var D=this.parent;while(D.depth>E){D=D.parent;}return D;},getDepthStyle:function(D){return(this.getAncestor(D).nextSibling)?"ygtvdepthcell":"ygtvblankdepthcell";},getNodeHtml:function(){var E=[];E[E.length]='<table id="ygtvtableel'+this.index+'" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth'+this.depth;if(this.enableHighlight){E[E.length]=" ygtv-highlight"+this.highlightState;}if(this.className){E[E.length]=" "+this.className;}E[E.length]='"><tr class="ygtvrow">';for(var D=0;D<this.depth;++D){E[E.length]='<td class="ygtvcell '+this.getDepthStyle(D)+'"><div class="ygtvspacer"></div></td>';}if(this.hasIcon){E[E.length]='<td id="'+this.getToggleElId();E[E.length]='" class="ygtvcell ';E[E.length]=this.getStyle();E[E.length]='"><a href="#" class="ygtvspacer">&#160;</a></td>';}E[E.length]='<td id="'+this.contentElId;E[E.length]='" class="ygtvcell ';E[E.length]=this.contentStyle+' ygtvcontent" ';E[E.length]=(this.nowrap)?' nowrap="nowrap" ':"";E[E.length]=" >";E[E.length]=this.getContentHtml();E[E.length]="</td></tr></table>";return E.join("");},getContentHtml:function(){return"";},refresh:function(){this.getChildrenEl().innerHTML=this.completeRender();if(this.hasIcon){var D=this.getToggleEl();if(D){D.className=D.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());}}},toString:function(){return this._type+" ("+this.index+")";},_focusHighlightedItems:[],_focusedItem:null,_canHaveFocus:function(){return this.getEl().getElementsByTagName("a").length>0;},_removeFocus:function(){if(this._focusedItem){A.removeListener(this._focusedItem,"blur");this._focusedItem=null;}var D;while((D=this._focusHighlightedItems.shift())){B.removeClass(D,YAHOO.widget.TreeView.FOCUS_CLASS_NAME);}},focus:function(){var F=false,D=this;if(this.tree.currentFocus){this.tree.currentFocus._removeFocus();}var E=function(G){if(G.parent){E(G.parent);G.parent.expand();}};E(this);B.getElementsBy(function(G){return(/ygtv(([tl][pmn]h?)|(content))/).test(G.className);},"td",D.getEl().firstChild,function(H){B.addClass(H,YAHOO.widget.TreeView.FOCUS_CLASS_NAME);if(!F){var G=H.getElementsByTagName("a");if(G.length){G=G[0];G.focus();D._focusedItem=G;A.on(G,"blur",function(){D.tree.fireEvent("focusChanged",{oldNode:D.tree.currentFocus,newNode:null});D.tree.currentFocus=null;D._removeFocus();});F=true;}}D._focusHighlightedItems.push(H);});if(F){this.tree.fireEvent("focusChanged",{oldNode:this.tree.currentFocus,newNode:this});this.tree.currentFocus=this;}else{this.tree.fireEvent("focusChanged",{oldNode:D.tree.currentFocus,newNode:null});this.tree.currentFocus=null;this._removeFocus();}return F;},getNodeCount:function(){for(var D=0,E=0;D<this.children.length;D++){E+=this.children[D].getNodeCount();}return E+1;},getNodeDefinition:function(){if(this.isDynamic()){return false;}var G,D=C.merge(this.data),F=[];if(this.expanded){D.expanded=this.expanded;}if(!this.multiExpand){D.multiExpand=this.multiExpand;}if(!this.renderHidden){D.renderHidden=this.renderHidden;}if(!this.hasIcon){D.hasIcon=this.hasIcon;}if(this.nowrap){D.nowrap=this.nowrap;}if(this.className){D.className=this.className;}if(this.editable){D.editable=this.editable;}if(this.enableHighlight){D.enableHighlight=this.enableHighlight;}if(this.highlightState){D.highlightState=this.highlightState;}if(this.propagateHighlightUp){D.propagateHighlightUp=this.propagateHighlightUp;}if(this.propagateHighlightDown){D.propagateHighlightDown=this.propagateHighlightDown;}D.type=this._type;for(var E=0;E<this.children.length;E++){G=this.children[E].getNodeDefinition();if(G===false){return false;}F.push(G);}if(F.length){D.children=F;}return D;},getToggleLink:function(){return"return false;";},setNodesProperty:function(D,G,F){if(D.charAt(0)!="_"&&!C.isUndefined(this[D])&&!C.isFunction(this[D])){this[D]=G;}else{this.data[D]=G;}for(var E=0;E<this.children.length;E++){this.children[E].setNodesProperty(D,G);}if(F){this.refresh();}},toggleHighlight:function(){if(this.enableHighlight){if(this.highlightState==1){this.unhighlight();}else{this.highlight();}}},highlight:function(E){if(this.enableHighlight){if(this.tree.singleNodeHighlight){if(this.tree._currentlyHighlighted){this.tree._currentlyHighlighted.unhighlight(E);}this.tree._currentlyHighlighted=this;}this.highlightState=1;this._setHighlightClassName();if(!this.tree.singleNodeHighlight){if(this.propagateHighlightDown){for(var D=0;D<this.children.length;D++){this.children[D].highlight(true);}}if(this.propagateHighlightUp){if(this.parent){this.parent._childrenHighlighted();}}}if(!E){this.tree.fireEvent("highlightEvent",this);}}},unhighlight:function(E){if(this.enableHighlight){this.tree._currentlyHighlighted=null;this.highlightState=0;this._setHighlightClassName();if(!this.tree.singleNodeHighlight){if(this.propagateHighlightDown){for(var D=0;D<this.children.length;D++){this.children[D].unhighlight(true);}}if(this.propagateHighlightUp){if(this.parent){this.parent._childrenHighlighted();}}}if(!E){this.tree.fireEvent("highlightEvent",this);}}},_childrenHighlighted:function(){var F=false,E=false;if(this.enableHighlight){for(var D=0;D<this.children.length;D++){switch(this.children[D].highlightState){case 0:E=true;break;case 1:F=true;break;case 2:F=E=true;break;}}if(F&&E){this.highlightState=2;}else{if(F){this.highlightState=1;}else{this.highlightState=0;}}this._setHighlightClassName();if(this.propagateHighlightUp){if(this.parent){this.parent._childrenHighlighted();
++}}}},_setHighlightClassName:function(){var D=B.get("ygtvtableel"+this.index);if(D){D.className=D.className.replace(/\bygtv-highlight\d\b/gi,"ygtv-highlight"+this.highlightState);}}};YAHOO.augment(YAHOO.widget.Node,YAHOO.util.EventProvider);})();YAHOO.widget.RootNode=function(A){this.init(null,null,true);this.tree=A;};YAHOO.extend(YAHOO.widget.RootNode,YAHOO.widget.Node,{_type:"RootNode",getNodeHtml:function(){return"";},toString:function(){return this._type;},loadComplete:function(){this.tree.draw();},getNodeCount:function(){for(var A=0,B=0;A<this.children.length;A++){B+=this.children[A].getNodeCount();}return B;},getNodeDefinition:function(){for(var C,A=[],B=0;B<this.children.length;B++){C=this.children[B].getNodeDefinition();if(C===false){return false;}A.push(C);}return A;},collapse:function(){},expand:function(){},getSiblings:function(){return null;},focus:function(){}});(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event;YAHOO.widget.TextNode=function(F,E,D){if(F){if(C.isString(F)){F={label:F};}this.init(F,E,D);this.setUpLabel(F);}};YAHOO.extend(YAHOO.widget.TextNode,YAHOO.widget.Node,{labelStyle:"ygtvlabel",labelElId:null,label:null,title:null,href:null,target:"_self",_type:"TextNode",setUpLabel:function(D){if(C.isString(D)){D={label:D};}else{if(D.style){this.labelStyle=D.style;}}this.label=D.label;this.labelElId="ygtvlabelel"+this.index;},getLabelEl:function(){return B.get(this.labelElId);},getContentHtml:function(){var D=[];D[D.length]=this.href?"<a":"<span";D[D.length]=' id="'+this.labelElId+'"';D[D.length]=' class="'+this.labelStyle+'"';if(this.href){D[D.length]=' href="'+this.href+'"';D[D.length]=' target="'+this.target+'"';}if(this.title){D[D.length]=' title="'+this.title+'"';}D[D.length]=" >";D[D.length]=this.label;D[D.length]=this.href?"</a>":"</span>";return D.join("");},getNodeDefinition:function(){var D=YAHOO.widget.TextNode.superclass.getNodeDefinition.call(this);if(D===false){return false;}D.label=this.label;if(this.labelStyle!="ygtvlabel"){D.style=this.labelStyle;}if(this.title){D.title=this.title;}if(this.href){D.href=this.href;}if(this.target!="_self"){D.target=this.target;}return D;},toString:function(){return YAHOO.widget.TextNode.superclass.toString.call(this)+": "+this.label;},onLabelClick:function(){return false;},refresh:function(){YAHOO.widget.TextNode.superclass.refresh.call(this);var D=this.getLabelEl();D.innerHTML=this.label;if(D.tagName.toUpperCase()=="A"){D.href=this.href;D.target=this.target;}}});})();YAHOO.widget.MenuNode=function(C,B,A){YAHOO.widget.MenuNode.superclass.constructor.call(this,C,B,A);this.multiExpand=false;};YAHOO.extend(YAHOO.widget.MenuNode,YAHOO.widget.TextNode,{_type:"MenuNode"});(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event;YAHOO.widget.HTMLNode=function(G,F,E,D){if(G){this.init(G,F,E);this.initContent(G,D);}};YAHOO.extend(YAHOO.widget.HTMLNode,YAHOO.widget.Node,{contentStyle:"ygtvhtml",html:null,_type:"HTMLNode",initContent:function(E,D){this.setHtml(E);this.contentElId="ygtvcontentel"+this.index;if(!C.isUndefined(D)){this.hasIcon=D;}},setHtml:function(E){this.html=(typeof E==="string")?E:E.html;var D=this.getContentEl();if(D){D.innerHTML=this.html;}},getContentHtml:function(){return this.html;},getNodeDefinition:function(){var D=YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);if(D===false){return false;}D.html=this.html;return D;}});})();(function(){var B=YAHOO.util.Dom,C=YAHOO.lang,A=YAHOO.util.Event,D=YAHOO.widget.Calendar;YAHOO.widget.DateNode=function(G,F,E){YAHOO.widget.DateNode.superclass.constructor.call(this,G,F,E);};YAHOO.extend(YAHOO.widget.DateNode,YAHOO.widget.TextNode,{_type:"DateNode",calendarConfig:null,fillEditorContainer:function(G){var H,F=G.inputContainer;if(C.isUndefined(D)){B.replaceClass(G.editorPanel,"ygtv-edit-DateNode","ygtv-edit-TextNode");YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this,G);return;}if(G.nodeType!=this._type){G.nodeType=this._type;G.saveOnEnter=false;G.node.destroyEditorContents(G);G.inputObject=H=new D(F.appendChild(document.createElement("div")));if(this.calendarConfig){H.cfg.applyConfig(this.calendarConfig,true);H.cfg.fireQueue();}H.selectEvent.subscribe(function(){this.tree._closeEditor(true);},this,true);}else{H=G.inputObject;}G.oldValue=this.label;H.cfg.setProperty("selected",this.label,false);var I=H.cfg.getProperty("DATE_FIELD_DELIMITER");var E=this.label.split(I);H.cfg.setProperty("pagedate",E[H.cfg.getProperty("MDY_MONTH_POSITION")-1]+I+E[H.cfg.getProperty("MDY_YEAR_POSITION")-1]);H.cfg.fireQueue();H.render();H.oDomContainer.focus();},getEditorValue:function(F){if(C.isUndefined(D)){return F.inputElement.value;}else{var H=F.inputObject,G=H.getSelectedDates()[0],E=[];E[H.cfg.getProperty("MDY_DAY_POSITION")-1]=G.getDate();E[H.cfg.getProperty("MDY_MONTH_POSITION")-1]=G.getMonth()+1;E[H.cfg.getProperty("MDY_YEAR_POSITION")-1]=G.getFullYear();return E.join(H.cfg.getProperty("DATE_FIELD_DELIMITER"));}},displayEditedValue:function(G,E){var F=E.node;F.label=G;F.getLabelEl().innerHTML=G;},getNodeDefinition:function(){var E=YAHOO.widget.DateNode.superclass.getNodeDefinition.call(this);if(E===false){return false;}if(this.calendarConfig){E.calendarConfig=this.calendarConfig;}return E;}});})();(function(){var E=YAHOO.util.Dom,F=YAHOO.lang,B=YAHOO.util.Event,D=YAHOO.widget.TreeView,C=D.prototype;D.editorData={active:false,whoHasIt:null,nodeType:null,editorPanel:null,inputContainer:null,buttonsContainer:null,node:null,saveOnEnter:true,oldValue:undefined};C.validator=null;C._initEditor=function(){this.createEvent("editorSaveEvent",this);this.createEvent("editorCancelEvent",this);};C._nodeEditing=function(M){if(M.fillEditorContainer&&M.editable){var I,K,L,J,H=D.editorData;H.active=true;H.whoHasIt=this;if(!H.nodeType){H.editorPanel=I=document.body.appendChild(document.createElement("div"));E.addClass(I,"ygtv-label-editor");L=H.buttonsContainer=I.appendChild(document.createElement("div"));E.addClass(L,"ygtv-button-container");J=L.appendChild(document.createElement("button"));
++E.addClass(J,"ygtvok");J.innerHTML=" ";J=L.appendChild(document.createElement("button"));E.addClass(J,"ygtvcancel");J.innerHTML=" ";B.on(L,"click",function(O){var P=B.getTarget(O);var N=D.editorData.node;if(E.hasClass(P,"ygtvok")){B.stopEvent(O);this._closeEditor(true);}if(E.hasClass(P,"ygtvcancel")){B.stopEvent(O);this._closeEditor(false);}},this,true);H.inputContainer=I.appendChild(document.createElement("div"));E.addClass(H.inputContainer,"ygtv-input");B.on(I,"keydown",function(P){var O=D.editorData,N=YAHOO.util.KeyListener.KEY;switch(P.keyCode){case N.ENTER:B.stopEvent(P);if(O.saveOnEnter){this._closeEditor(true);}break;case N.ESCAPE:B.stopEvent(P);this._closeEditor(false);break;}},this,true);}else{I=H.editorPanel;}H.node=M;if(H.nodeType){E.removeClass(I,"ygtv-edit-"+H.nodeType);}E.addClass(I," ygtv-edit-"+M._type);K=E.getXY(M.getContentEl());E.setStyle(I,"left",K[0]+"px");E.setStyle(I,"top",K[1]+"px");E.setStyle(I,"display","block");I.focus();M.fillEditorContainer(H);return true;}};C.onEventEditNode=function(H){if(H instanceof YAHOO.widget.Node){H.editNode();}else{if(H.node instanceof YAHOO.widget.Node){H.node.editNode();}}};C._closeEditor=function(J){var H=D.editorData,I=H.node,K=true;if(J){K=H.node.saveEditorValue(H)!==false;}else{this.fireEvent("editorCancelEvent",I);}if(K){E.setStyle(H.editorPanel,"display","none");H.active=false;I.focus();}};C._destroyEditor=function(){var H=D.editorData;if(H&&H.nodeType&&(!H.active||H.whoHasIt===this)){B.removeListener(H.editorPanel,"keydown");B.removeListener(H.buttonContainer,"click");H.node.destroyEditorContents(H);document.body.removeChild(H.editorPanel);H.nodeType=H.editorPanel=H.inputContainer=H.buttonsContainer=H.whoHasIt=H.node=null;H.active=false;}};var G=YAHOO.widget.Node.prototype;G.editable=false;G.editNode=function(){this.tree._nodeEditing(this);};G.fillEditorContainer=null;G.destroyEditorContents=function(H){B.purgeElement(H.inputContainer,true);H.inputContainer.innerHTML="";};G.saveEditorValue=function(H){var J=H.node,K,I=J.tree.validator;K=this.getEditorValue(H);if(F.isFunction(I)){K=I(K,H.oldValue,J);if(F.isUndefined(K)){return false;}}if(this.tree.fireEvent("editorSaveEvent",{newValue:K,oldValue:H.oldValue,node:J})!==false){this.displayEditedValue(K,H);}};G.getEditorValue=function(H){};G.displayEditedValue=function(I,H){};var A=YAHOO.widget.TextNode.prototype;A.fillEditorContainer=function(I){var H;if(I.nodeType!=this._type){I.nodeType=this._type;I.saveOnEnter=true;I.node.destroyEditorContents(I);I.inputElement=H=I.inputContainer.appendChild(document.createElement("input"));}else{H=I.inputElement;}I.oldValue=this.label;H.value=this.label;H.focus();H.select();};A.getEditorValue=function(H){return H.inputElement.value;};A.displayEditedValue=function(J,H){var I=H.node;I.label=J;I.getLabelEl().innerHTML=J;};A.destroyEditorContents=function(H){H.inputContainer.innerHTML="";};})();YAHOO.widget.TVAnim=function(){return{FADE_IN:"TVFadeIn",FADE_OUT:"TVFadeOut",getAnim:function(B,A,C){if(YAHOO.widget[B]){return new YAHOO.widget[B](A,C);}else{return null;}},isValid:function(A){return(YAHOO.widget[A]);}};}();YAHOO.widget.TVFadeIn=function(A,B){this.el=A;this.callback=B;};YAHOO.widget.TVFadeIn.prototype={animate:function(){var D=this;var C=this.el.style;C.opacity=0.1;C.filter="alpha(opacity=10)";C.display="";var B=0.4;var A=new YAHOO.util.Anim(this.el,{opacity:{from:0.1,to:1,unit:""}},B);A.onComplete.subscribe(function(){D.onComplete();});A.animate();},onComplete:function(){this.callback();},toString:function(){return"TVFadeIn";}};YAHOO.widget.TVFadeOut=function(A,B){this.el=A;this.callback=B;};YAHOO.widget.TVFadeOut.prototype={animate:function(){var C=this;var B=0.4;var A=new YAHOO.util.Anim(this.el,{opacity:{from:1,to:0.1,unit:""}},B);A.onComplete.subscribe(function(){C.onComplete();});A.animate();},onComplete:function(){var A=this.el.style;A.display="none";A.opacity=1;A.filter="alpha(opacity=100)";this.callback();},toString:function(){return"TVFadeOut";}};YAHOO.register("treeview",YAHOO.widget.TreeView,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/treeview/treeview.js b/pylons_app/public/js/yui/treeview/treeview.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/treeview/treeview.js
+@@ -0,0 +1,3989 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Event = YAHOO.util.Event,
++        Lang = YAHOO.lang,
++        Widget = YAHOO.widget;
++        
++    
++
++/**
++ * The treeview widget is a generic tree building tool.
++ * @module treeview
++ * @title TreeView Widget
++ * @requires yahoo, dom, event
++ * @optional animation, json, calendar
++ * @namespace YAHOO.widget
++ */
++
++/**
++ * Contains the tree view state data and the root node.
++ *
++ * @class TreeView
++ * @uses YAHOO.util.EventProvider
++ * @constructor
++ * @param {string|HTMLElement} id The id of the element, or the element itself that the tree will be inserted into.  
++ *        Existing markup in this element, if valid, will be used to build the tree
++ * @param {Array|Object|String}  oConfig (optional)  If present, it will be used to build the tree via method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>
++ * 
++ */
++YAHOO.widget.TreeView = function(id, oConfig) {
++    if (id) { this.init(id); }
++    if (oConfig) {
++        this.buildTreeFromObject(oConfig);
++    } else if (Lang.trim(this._el.innerHTML)) {
++        this.buildTreeFromMarkup(id);
++    }
++};
++
++var TV = Widget.TreeView;
++
++TV.prototype = {
++
++    /**
++     * The id of tree container element
++     * @property id
++     * @type String
++     */
++    id: null,
++
++    /**
++     * The host element for this tree
++     * @property _el
++     * @private
++     * @type HTMLelement
++     */
++    _el: null,
++
++     /**
++     * Flat collection of all nodes in this tree.  This is a sparse
++     * array, so the length property can't be relied upon for a
++     * node count for the tree.
++     * @property _nodes
++     * @type Node[]
++     * @private
++     */
++    _nodes: null,
++
++    /**
++     * We lock the tree control while waiting for the dynamic loader to return
++     * @property locked
++     * @type boolean
++     */
++    locked: false,
++
++    /**
++     * The animation to use for expanding children, if any
++     * @property _expandAnim
++     * @type string
++     * @private
++     */
++    _expandAnim: null,
++
++    /**
++     * The animation to use for collapsing children, if any
++     * @property _collapseAnim
++     * @type string
++     * @private
++     */
++    _collapseAnim: null,
++
++    /**
++     * The current number of animations that are executing
++     * @property _animCount
++     * @type int
++     * @private
++     */
++    _animCount: 0,
++
++    /**
++     * The maximum number of animations to run at one time.
++     * @property maxAnim
++     * @type int
++     */
++    maxAnim: 2,
++
++    /**
++     * Whether there is any subscriber to dblClickEvent
++     * @property _hasDblClickSubscriber
++     * @type boolean
++     * @private
++     */
++    _hasDblClickSubscriber: false,
++    
++    /**
++     * Stores the timer used to check for double clicks
++     * @property _dblClickTimer
++     * @type window.timer object
++     * @private
++     */
++    _dblClickTimer: null,
++
++  /**
++     * A reference to the Node currently having the focus or null if none.
++     * @property currentFocus
++     * @type YAHOO.widget.Node
++     */
++    currentFocus: null,
++    
++    /**
++    * If true, only one Node can be highlighted at a time
++    * @property singleNodeHighlight
++    * @type boolean
++    * @default false
++    */
++    
++    singleNodeHighlight: false,
++    
++    /**
++    * A reference to the Node that is currently highlighted.
++    * It is only meaningful if singleNodeHighlight is enabled
++    * @property _currentlyHighlighted
++    * @type YAHOO.widget.Node
++    * @default null
++    * @private
++    */
++    
++    _currentlyHighlighted: null,
++
++    /**
++     * Sets up the animation for expanding children
++     * @method setExpandAnim
++     * @param {string} type the type of animation (acceptable values defined 
++     * in YAHOO.widget.TVAnim)
++     */
++    setExpandAnim: function(type) {
++        this._expandAnim = (Widget.TVAnim.isValid(type)) ? type : null;
++    },
++
++    /**
++     * Sets up the animation for collapsing children
++     * @method setCollapseAnim
++     * @param {string} type of animation (acceptable values defined in 
++     * YAHOO.widget.TVAnim)
++     */
++    setCollapseAnim: function(type) {
++        this._collapseAnim = (Widget.TVAnim.isValid(type)) ? type : null;
++    },
++
++    /**
++     * Perform the expand animation if configured, or just show the
++     * element if not configured or too many animations are in progress
++     * @method animateExpand
++     * @param el {HTMLElement} the element to animate
++     * @param node {YAHOO.util.Node} the node that was expanded
++     * @return {boolean} true if animation could be invoked, false otherwise
++     */
++    animateExpand: function(el, node) {
++
++        if (this._expandAnim && this._animCount < this.maxAnim) {
++            // this.locked = true;
++            var tree = this;
++            var a = Widget.TVAnim.getAnim(this._expandAnim, el, 
++                            function() { tree.expandComplete(node); });
++            if (a) { 
++                ++this._animCount;
++                this.fireEvent("animStart", {
++                        "node": node, 
++                        "type": "expand"
++                    });
++                a.animate();
++            }
++
++            return true;
++        }
++
++        return false;
++    },
++
++    /**
++     * Perform the collapse animation if configured, or just show the
++     * element if not configured or too many animations are in progress
++     * @method animateCollapse
++     * @param el {HTMLElement} the element to animate
++     * @param node {YAHOO.util.Node} the node that was expanded
++     * @return {boolean} true if animation could be invoked, false otherwise
++     */
++    animateCollapse: function(el, node) {
++
++        if (this._collapseAnim && this._animCount < this.maxAnim) {
++            // this.locked = true;
++            var tree = this;
++            var a = Widget.TVAnim.getAnim(this._collapseAnim, el, 
++                            function() { tree.collapseComplete(node); });
++            if (a) { 
++                ++this._animCount;
++                this.fireEvent("animStart", {
++                        "node": node, 
++                        "type": "collapse"
++                    });
++                a.animate();
++            }
++
++            return true;
++        }
++
++        return false;
++    },
++
++    /**
++     * Function executed when the expand animation completes
++     * @method expandComplete
++     */
++    expandComplete: function(node) {
++        --this._animCount;
++        this.fireEvent("animComplete", {
++                "node": node, 
++                "type": "expand"
++            });
++        // this.locked = false;
++    },
++
++    /**
++     * Function executed when the collapse animation completes
++     * @method collapseComplete
++     */
++    collapseComplete: function(node) {
++        --this._animCount;
++        this.fireEvent("animComplete", {
++                "node": node, 
++                "type": "collapse"
++            });
++        // this.locked = false;
++    },
++
++    /**
++     * Initializes the tree
++     * @method init
++     * @parm {string|HTMLElement} id the id of the element that will hold the tree
++     * @private
++     */
++    init: function(id) {
++        this._el = Dom.get(id);
++        this.id = Dom.generateId(this._el,"yui-tv-auto-id-");
++
++    /**
++         * When animation is enabled, this event fires when the animation
++         * starts
++         * @event animStart
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
++         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
++         */
++        this.createEvent("animStart", this);
++
++        /**
++         * When animation is enabled, this event fires when the animation
++         * completes
++         * @event animComplete
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} oArgs.node the node that is expanding/collapsing
++         * @param {String} oArgs.type the type of animation ("expand" or "collapse")
++         */
++        this.createEvent("animComplete", this);
++
++        /**
++         * Fires when a node is going to be collapsed.  Return false to stop
++         * the collapse.
++         * @event collapse
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that is collapsing
++         */
++        this.createEvent("collapse", this);
++
++        /**
++         * Fires after a node is successfully collapsed.  This event will not fire
++         * if the "collapse" event was cancelled.
++         * @event collapseComplete
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that was collapsed
++         */
++        this.createEvent("collapseComplete", this);
++
++        /**
++         * Fires when a node is going to be expanded.  Return false to stop
++         * the collapse.
++         * @event expand
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that is expanding
++         */
++        this.createEvent("expand", this);
++
++        /**
++         * Fires after a node is successfully expanded.  This event will not fire
++         * if the "expand" event was cancelled.
++         * @event expandComplete
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that was expanded
++         */
++        this.createEvent("expandComplete", this);
++
++    /**
++         * Fires when the Enter key is pressed on a node that has the focus
++         * @event enterKeyPressed
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node that has the focus
++         */
++        this.createEvent("enterKeyPressed", this);
++        
++    /**
++         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a Click.
++    * The listener may return false to cancel toggling and focusing on the node.
++         * @event clickEvent
++         * @type CustomEvent
++         * @param oArgs.event  {HTMLEvent} The event object
++         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
++         */
++        this.createEvent("clickEvent", this);
++        
++    /**
++         * Fires when the focus receives the focus, when it changes from a Node 
++    * to another Node or when it is completely lost (blurred)
++         * @event focusChanged
++         * @type CustomEvent
++         * @param oArgs.oldNode  {YAHOO.widget.Node} Node that had the focus or null if none
++         * @param oArgs.newNode {YAHOO.widget.Node} Node that receives the focus or null if none
++         */
++        
++        this.createEvent('focusChanged',this);
++
++    /**
++         * Fires when the label in a TextNode or MenuNode or content in an HTMLNode receives a double Click
++         * @event dblClickEvent
++         * @type CustomEvent
++         * @param oArgs.event  {HTMLEvent} The event object
++         * @param oArgs.node {YAHOO.widget.Node} node the node that was clicked
++         */
++        var self = this;
++        this.createEvent("dblClickEvent", {
++            scope:this,
++            onSubscribeCallback: function() {
++                self._hasDblClickSubscriber = true;
++            }
++        });
++        
++    /**
++         * Custom event that is fired when the text node label is clicked. 
++         *  The node clicked is  provided as an argument
++         *
++         * @event labelClick
++         * @type CustomEvent
++         * @param {YAHOO.widget.Node} node the node clicked
++    * @deprecated use clickEvent or dblClickEvent
++         */
++        this.createEvent("labelClick", this);
++        
++    /**
++     * Custom event fired when the highlight of a node changes.
++     * The node that triggered the change is provided as an argument:
++     * The status of the highlight can be checked in 
++     * <a href="YAHOO.widget.Node.html#property_highlightState">nodeRef.highlightState</a>.
++     * Depending on <a href="YAHOO.widget.Node.html#property_propagateHighlight">nodeRef.propagateHighlight</a>, other nodes might have changed
++     * @event highlightEvent
++     * @type CustomEvent
++     * @param node {YAHOO.widget.Node} the node that started the change in highlighting state
++    */
++        this.createEvent("highlightEvent",this);
++     
++
++
++        this._nodes = [];
++
++        // store a global reference
++        TV.trees[this.id] = this;
++
++        // Set up the root node
++        this.root = new Widget.RootNode(this);
++
++        var LW = Widget.LogWriter;
++
++
++		
++		if (this._initEditor) {
++			this._initEditor();
++		}
++        
++        // YAHOO.util.Event.onContentReady(this.id, this.handleAvailable, this, true);
++        // YAHOO.util.Event.on(this.id, "click", this.handleClick, this, true);
++    },
++
++    //handleAvailable: function() {
++        //var Event = YAHOO.util.Event;
++        //Event.on(this.id, 
++    //},
++ /**
++     * Builds the TreeView from an object.  
++     * This is the method called by the constructor to build the tree when it has a second argument.
++     *  A tree can be described by an array of objects, each object corresponding to a node.
++     *  Node descriptions may contain values for any property of a node plus the following extra properties: <ul>
++     * <li>type:  can be one of the following:<ul>
++     *    <li> A shortname for a node type (<code>'text','menu','html'</code>) </li>
++     *    <li>The name of a Node class under YAHOO.widget (<code>'TextNode', 'MenuNode', 'DateNode'</code>, etc) </li>
++     *    <li>a reference to an actual class: <code>YAHOO.widget.DateNode</code></li>
++	 * </ul></li>
++     * <li>children: an array containing further node definitions</li></ul>
++	 * A string instead of an object will produce a node of type 'text' with the given string as its label.
++     * @method buildTreeFromObject
++     * @param  oConfig {Array|Object|String}  array containing a full description of the tree.
++     *        An object or a string will be turned into an array with the given object or string as its only element.
++     * 
++     */
++    buildTreeFromObject: function (oConfig) {
++        var build = function (parent, oConfig) {
++            var i, item, node, children, type, NodeType, ThisType;
++            for (i = 0; i < oConfig.length; i++) {
++                item = oConfig[i];
++                if (Lang.isString(item)) {
++                    node = new Widget.TextNode(item, parent);
++                } else if (Lang.isObject(item)) {
++                    children = item.children;
++                    delete item.children;
++                    type = item.type || 'text';
++                    delete item.type;
++                    switch (Lang.isString(type) && type.toLowerCase()) {
++                        case 'text':
++                            node = new Widget.TextNode(item, parent);
++                            break;
++                        case 'menu':
++                            node = new Widget.MenuNode(item, parent);
++                            break;
++                        case 'html':
++                            node = new Widget.HTMLNode(item, parent);
++                            break;
++                        default:
++                            if (Lang.isString(type)) {
++                                NodeType = Widget[type];
++                            } else {
++                                NodeType = type;
++                            }
++                            if (Lang.isObject(NodeType)) {
++                                for (ThisType = NodeType; ThisType && ThisType !== Widget.Node; ThisType = ThisType.superclass.constructor) {}
++                                if (ThisType) {
++                                    node = new NodeType(item, parent);
++                                } else {
++                                }
++                            } else {
++                            }
++                    }
++                    if (children) {
++                        build(node,children);
++                    }
++                } else {
++                }
++            }
++        };
++        if (!Lang.isArray(oConfig)) {
++            oConfig = [oConfig];
++        }
++
++                    
++        build(this.root,oConfig);
++    },
++/**
++     * Builds the TreeView from existing markup.   Markup should consist of &lt;UL&gt; or &lt;OL&gt; elements containing &lt;LI&gt; elements.  
++     * Each &lt;LI&gt; can have one element used as label and a second optional element which is to be a &lt;UL&gt; or &lt;OL&gt;
++     * containing nested nodes.
++     * Depending on what the first element of the &lt;LI&gt; element is, the following Nodes will be created: <ul>
++     *           <li>plain text:  a regular TextNode</li>
++     *           <li>anchor &lt;A&gt;: a TextNode with its <code>href</code> and <code>target</code> taken from the anchor</li>
++     *           <li>anything else: an HTMLNode</li></ul>
++     * Only the first  outermost (un-)ordered list in the markup and its children will be parsed.
++     * Nodes will be collapsed unless  an  &lt;LI&gt;  tag has a className called 'expanded'.
++     * All other className attributes will be copied over to the Node className property.
++     * If the &lt;LI&gt; element contains an attribute called <code>yuiConfig</code>, its contents should be a JSON-encoded object
++     * as the one used in method <a href="#method_buildTreeFromObject">buildTreeFromObject</a>.
++     * @method buildTreeFromMarkup
++     * @param  id {string|HTMLElement} The id of the element that contains the markup or a reference to it.
++     */
++    buildTreeFromMarkup: function (id) {
++        var build = function (markup) {
++            var el, child, branch = [], config = {}, label, yuiConfig;
++            // Dom's getFirstChild and getNextSibling skip over text elements
++            for (el = Dom.getFirstChild(markup); el; el = Dom.getNextSibling(el)) {
++                switch (el.tagName.toUpperCase()) {
++                    case 'LI':
++                        label = '';
++                        config = {
++                            expanded: Dom.hasClass(el,'expanded'),
++                            title: el.title || el.alt || null,
++                            className: Lang.trim(el.className.replace(/\bexpanded\b/,'')) || null
++                        };
++                        // I cannot skip over text elements here because I want them for labels
++                        child = el.firstChild;
++                        if (child.nodeType == 3) {
++                            // nodes with only whitespace, tabs and new lines don't count, they are probably just formatting.
++                            label = Lang.trim(child.nodeValue.replace(/[\n\t\r]*/g,''));
++                            if (label) {
++                                config.type = 'text';
++                                config.label = label;
++                            } else {
++                                child = Dom.getNextSibling(child);
++                            }
++                        }
++                        if (!label) {
++                            if (child.tagName.toUpperCase() == 'A') {
++                                config.type = 'text';
++                                config.label = child.innerHTML;
++                                config.href = child.href;
++                                config.target = child.target;
++                                config.title = child.title || child.alt || config.title;
++                            } else {
++                                config.type = 'html';
++                                var d = document.createElement('div');
++                                d.appendChild(child.cloneNode(true));
++                                config.html = d.innerHTML;
++                                config.hasIcon = true;
++                            }
++                        }
++                        // see if after the label it has a further list which will become children of this node.
++                        child = Dom.getNextSibling(child);
++                        switch (child && child.tagName.toUpperCase()) {
++                            case 'UL':
++                            case 'OL':
++                                config.children = build(child);
++                                break;
++                        }
++                        // if there are further elements or text, it will be ignored.
++                        
++                        if (YAHOO.lang.JSON) {
++                            yuiConfig = el.getAttribute('yuiConfig');
++                            if (yuiConfig) {
++                                yuiConfig = YAHOO.lang.JSON.parse(yuiConfig);
++                                config = YAHOO.lang.merge(config,yuiConfig);
++                            }
++                        }
++                        
++                        branch.push(config);
++                        break;
++                    case 'UL':
++                    case 'OL':
++                        config = {
++                            type: 'text',
++                            label: '',
++                            children: build(child)
++                        };
++                        branch.push(config);
++                        break;
++                }
++            }
++            return branch;
++        };
++
++        var markup = Dom.getChildrenBy(Dom.get(id),function (el) { 
++            var tag = el.tagName.toUpperCase();
++            return  tag == 'UL' || tag == 'OL';
++        });
++        if (markup.length) {
++            this.buildTreeFromObject(build(markup[0]));
++        } else {
++        }
++    },
++  /**
++     * Returns the TD element where the event has occurred
++     * @method _getEventTargetTdEl
++     * @private
++     */
++    _getEventTargetTdEl: function (ev) {
++        var target = Event.getTarget(ev); 
++        // go up looking for a TD with a className with a ygtv prefix
++        while (target && !(target.tagName.toUpperCase() == 'TD' && Dom.hasClass(target.parentNode,'ygtvrow'))) { 
++            target = Dom.getAncestorByTagName(target,'td'); 
++        }
++        if (Lang.isNull(target)) { return null; }
++        // If it is a spacer cell, do nothing
++        if (/\bygtv(blank)?depthcell/.test(target.className)) { return null;}
++        // If it has an id, search for the node number and see if it belongs to a node in this tree.
++        if (target.id) {
++            var m = target.id.match(/\bygtv([^\d]*)(.*)/);
++            if (m && m[2] && this._nodes[m[2]]) {
++                return target;
++            }
++        }
++        return null;
++    },
++  /**
++     * Event listener for click events
++     * @method _onClickEvent
++     * @private
++     */
++    _onClickEvent: function (ev) {
++        var self = this,
++            td = this._getEventTargetTdEl(ev),
++            node,
++            target,
++            toggle = function (force) {
++                node.focus();
++				if (force || !node.href) {
++					node.toggle();
++					try {
++						Event.preventDefault(ev);
++					} catch (e) {
++	                    // @TODO
++	                    // For some reason IE8 is providing an event object with
++	                    // most of the fields missing, but only when clicking on
++	                    // the node's label, and only when working with inline
++	                    // editing.  This generates a "Member not found" error
++	                    // in that browser.  Determine if this is a browser
++	                    // bug, or a problem with this code.  Already checked to
++	                    // see if the problem has to do with access the event
++	                    // in the outer scope, and that isn't the problem.
++	                    // Maybe the markup for inline editing is broken.
++					}
++                }
++            };
++
++        if (!td) {
++            return; 
++        }
++
++        node = this.getNodeByElement(td);
++        if (!node) { 
++            return; 
++        }
++        
++        // exception to handle deprecated event labelClick
++        // @TODO take another look at this deprecation.  It is common for people to
++        // only be interested in the label click, so why make them have to test
++        // the node type to figure out whether the click was on the label?
++        target = Event.getTarget(ev);
++        if (Dom.hasClass(target, node.labelStyle) || Dom.getAncestorByClassName(target,node.labelStyle)) {
++            this.fireEvent('labelClick',node);
++        }
++        
++        //  If it is a toggle cell, toggle
++        if (/\bygtv[tl][mp]h?h?/.test(td.className)) {
++            toggle(true);
++        } else {
++            if (this._dblClickTimer) {
++                window.clearTimeout(this._dblClickTimer);
++                this._dblClickTimer = null;
++            } else {
++                if (this._hasDblClickSubscriber) {
++                    this._dblClickTimer = window.setTimeout(function () {
++                        self._dblClickTimer = null;
++                        if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
++                            toggle();
++                        }
++                    }, 200);
++                } else {
++                    if (self.fireEvent('clickEvent', {event:ev,node:node}) !== false) { 
++                        toggle();
++                    }
++                }
++            }
++        }
++    },
++
++  /**
++     * Event listener for double-click events
++     * @method _onDblClickEvent
++     * @private
++     */
++    _onDblClickEvent: function (ev) {
++        if (!this._hasDblClickSubscriber) { return; }
++        var td = this._getEventTargetTdEl(ev);
++        if (!td) {return;}
++
++        if (!(/\bygtv[tl][mp]h?h?/.test(td.className))) {
++            this.fireEvent('dblClickEvent', {event:ev, node:this.getNodeByElement(td)}); 
++            if (this._dblClickTimer) {
++                window.clearTimeout(this._dblClickTimer);
++                this._dblClickTimer = null;
++            }
++        }
++    },
++  /**
++     * Event listener for mouse over events
++     * @method _onMouseOverEvent
++     * @private
++     */
++    _onMouseOverEvent:function (ev) {
++        var target;
++        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
++            target.className = target.className.replace(/\bygtv([lt])([mp])\b/gi,'ygtv$1$2h');
++        }
++    },
++  /**
++     * Event listener for mouse out events
++     * @method _onMouseOutEvent
++     * @private
++     */
++    _onMouseOutEvent: function (ev) {
++        var target;
++        if ((target = this._getEventTargetTdEl(ev)) && (target = this.getNodeByElement(target)) && (target = target.getToggleEl())) {
++            target.className = target.className.replace(/\bygtv([lt])([mp])h\b/gi,'ygtv$1$2');
++        }
++    },
++  /**
++     * Event listener for key down events
++     * @method _onKeyDownEvent
++     * @private
++     */
++    _onKeyDownEvent: function (ev) {
++        var target = Event.getTarget(ev),
++            node = this.getNodeByElement(target),
++            newNode = node,
++            KEY = YAHOO.util.KeyListener.KEY;
++
++        switch(ev.keyCode) {
++            case KEY.UP:
++                do {
++                    if (newNode.previousSibling) {
++                        newNode = newNode.previousSibling;
++                    } else {
++                        newNode = newNode.parent;
++                    }
++                } while (newNode && !newNode._canHaveFocus());
++                if (newNode) { newNode.focus(); }
++                Event.preventDefault(ev);
++                break;
++            case KEY.DOWN:
++                do {
++                    if (newNode.nextSibling) {
++                        newNode = newNode.nextSibling;
++                    } else {
++                        newNode.expand();
++                        newNode = (newNode.children.length || null) && newNode.children[0];
++                    }
++                } while (newNode && !newNode._canHaveFocus);
++                if (newNode) { newNode.focus();}
++                Event.preventDefault(ev);
++                break;
++            case KEY.LEFT:
++                do {
++                    if (newNode.parent) {
++                        newNode = newNode.parent;
++                    } else {
++                        newNode = newNode.previousSibling;
++                    }
++                } while (newNode && !newNode._canHaveFocus());
++                if (newNode) { newNode.focus();}
++                Event.preventDefault(ev);
++                break;
++			case KEY.RIGHT:
++				var self = this,
++					moveFocusRight,
++					focusOnExpand = function (newNode) {
++						self.unsubscribe('expandComplete',focusOnExpand);
++						moveFocusRight(newNode);
++					};
++				moveFocusRight = function (newNode) {
++					do {
++						if (newNode.isDynamic() && !newNode.childrenRendered) {
++							self.subscribe('expandComplete',focusOnExpand);
++							newNode.expand();
++							newNode = null;
++							break;
++						} else {
++							newNode.expand();
++							if (newNode.children.length) {
++								newNode = newNode.children[0];
++							} else {
++								newNode = newNode.nextSibling;
++							}
++						}
++					} while (newNode && !newNode._canHaveFocus());
++					if (newNode) { newNode.focus();}
++				};
++					
++				moveFocusRight(newNode);
++				Event.preventDefault(ev);
++				break;
++            case KEY.ENTER:
++                if (node.href) {
++                    if (node.target) {
++                        window.open(node.href,node.target);
++                    } else {
++                        window.location(node.href);
++                    }
++                } else {
++                    node.toggle();
++                }
++                this.fireEvent('enterKeyPressed',node);
++                Event.preventDefault(ev);
++                break;
++            case KEY.HOME:
++                newNode = this.getRoot();
++                if (newNode.children.length) {newNode = newNode.children[0];}
++                if (newNode._canHaveFocus()) { newNode.focus(); }
++                Event.preventDefault(ev);
++                break;
++            case KEY.END:
++                newNode = newNode.parent.children;
++                newNode = newNode[newNode.length -1];
++                if (newNode._canHaveFocus()) { newNode.focus(); }
++                Event.preventDefault(ev);
++                break;
++            // case KEY.PAGE_UP:
++                // break;
++            // case KEY.PAGE_DOWN:
++                // break;
++            case 107:  // plus key
++                if (ev.shiftKey) {
++                    node.parent.expandAll();
++                } else {
++                    node.expand();
++                }
++                break;
++            case 109: // minus key
++                if (ev.shiftKey) {
++                    node.parent.collapseAll();
++                } else {
++                    node.collapse();
++                }
++                break;
++            default:
++                break;
++        }
++    },
++    /**
++     * Renders the tree boilerplate and visible nodes
++     * @method render
++     */
++    render: function() {
++        var html = this.root.getHtml(),
++            el = this.getEl();
++        el.innerHTML = html;
++        if (!this._hasEvents) {
++            Event.on(el, 'click', this._onClickEvent, this, true);
++            Event.on(el, 'dblclick', this._onDblClickEvent, this, true);
++            Event.on(el, 'mouseover', this._onMouseOverEvent, this, true);
++            Event.on(el, 'mouseout', this._onMouseOutEvent, this, true);
++            Event.on(el, 'keydown', this._onKeyDownEvent, this, true);
++        }
++        this._hasEvents = true;
++    },
++    
++  /**
++     * Returns the tree's host element
++     * @method getEl
++     * @return {HTMLElement} the host element
++     */
++    getEl: function() {
++        if (! this._el) {
++            this._el = Dom.get(this.id);
++        }
++        return this._el;
++    },
++
++    /**
++     * Nodes register themselves with the tree instance when they are created.
++     * @method regNode
++     * @param node {Node} the node to register
++     * @private
++     */
++    regNode: function(node) {
++        this._nodes[node.index] = node;
++    },
++
++    /**
++     * Returns the root node of this tree
++     * @method getRoot
++     * @return {Node} the root node
++     */
++    getRoot: function() {
++        return this.root;
++    },
++
++    /**
++     * Configures this tree to dynamically load all child data
++     * @method setDynamicLoad
++     * @param {function} fnDataLoader the function that will be called to get the data
++     * @param iconMode {int} configures the icon that is displayed when a dynamic
++     * load node is expanded the first time without children.  By default, the 
++     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
++     * displayed.
++     */
++    setDynamicLoad: function(fnDataLoader, iconMode) { 
++        this.root.setDynamicLoad(fnDataLoader, iconMode);
++    },
++
++    /**
++     * Expands all child nodes.  Note: this conflicts with the "multiExpand"
++     * node property.  If expand all is called in a tree with nodes that
++     * do not allow multiple siblings to be displayed, only the last sibling
++     * will be expanded.
++     * @method expandAll
++     */
++    expandAll: function() { 
++        if (!this.locked) {
++            this.root.expandAll(); 
++        }
++    },
++
++    /**
++     * Collapses all expanded child nodes in the entire tree.
++     * @method collapseAll
++     */
++    collapseAll: function() { 
++        if (!this.locked) {
++            this.root.collapseAll(); 
++        }
++    },
++
++    /**
++     * Returns a node in the tree that has the specified index (this index
++     * is created internally, so this function probably will only be used
++     * in html generated for a given node.)
++     * @method getNodeByIndex
++     * @param {int} nodeIndex the index of the node wanted
++     * @return {Node} the node with index=nodeIndex, null if no match
++     */
++    getNodeByIndex: function(nodeIndex) {
++        var n = this._nodes[nodeIndex];
++        return (n) ? n : null;
++    },
++
++    /**
++     * Returns a node that has a matching property and value in the data
++     * object that was passed into its constructor.
++     * @method getNodeByProperty
++     * @param {object} property the property to search (usually a string)
++     * @param {object} value the value we want to find (usuall an int or string)
++     * @return {Node} the matching node, null if no match
++     */
++    getNodeByProperty: function(property, value) {
++        for (var i in this._nodes) {
++            if (this._nodes.hasOwnProperty(i)) {
++                var n = this._nodes[i];
++                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
++                    return n;
++                }
++            }
++        }
++
++        return null;
++    },
++
++    /**
++     * Returns a collection of nodes that have a matching property 
++     * and value in the data object that was passed into its constructor.  
++     * @method getNodesByProperty
++     * @param {object} property the property to search (usually a string)
++     * @param {object} value the value we want to find (usuall an int or string)
++     * @return {Array} the matching collection of nodes, null if no match
++     */
++    getNodesByProperty: function(property, value) {
++        var values = [];
++        for (var i in this._nodes) {
++            if (this._nodes.hasOwnProperty(i)) {
++                var n = this._nodes[i];
++                if ((property in n && n[property] == value) || (n.data && value == n.data[property])) {
++                    values.push(n);
++                }
++            }
++        }
++
++        return (values.length) ? values : null;
++    },
++
++
++    /**
++     * Returns a collection of nodes that have passed the test function
++	 * passed as its only argument.  
++	 * The function will receive a reference to each node to be tested.  
++     * @method getNodesBy
++     * @param {function} a boolean function that receives a Node instance and returns true to add the node to the results list
++     * @return {Array} the matching collection of nodes, null if no match
++     */
++    getNodesBy: function(fn) {
++        var values = [];
++        for (var i in this._nodes) {
++            if (this._nodes.hasOwnProperty(i)) {
++                var n = this._nodes[i];
++                if (fn(n)) {
++                    values.push(n);
++                }
++            }
++        }
++        return (values.length) ? values : null;
++    },
++    /**
++     * Returns the treeview node reference for an ancestor element
++     * of the node, or null if it is not contained within any node
++     * in this tree.
++     * @method getNodeByElement
++     * @param el {HTMLElement} the element to test
++     * @return {YAHOO.widget.Node} a node reference or null
++     */
++    getNodeByElement: function(el) {
++
++        var p=el, m, re=/ygtv([^\d]*)(.*)/;
++
++        do {
++
++            if (p && p.id) {
++                m = p.id.match(re);
++                if (m && m[2]) {
++                    return this.getNodeByIndex(m[2]);
++                }
++            }
++
++            p = p.parentNode;
++
++            if (!p || !p.tagName) {
++                break;
++            }
++
++        } 
++        while (p.id !== this.id && p.tagName.toLowerCase() !== "body");
++
++        return null;
++    },
++	
++    /**
++     * When in singleNodeHighlight it returns the node highlighted
++	 * or null if none.  Returns null if singleNodeHighlight is false.
++     * @method getHighlightedNode
++     * @return {YAHOO.widget.Node} a node reference or null
++     */
++	getHighlightedNode: function() {
++		return this._currentlyHighlighted;
++	},
++
++
++    /**
++     * Removes the node and its children, and optionally refreshes the 
++     * branch of the tree that was affected.
++     * @method removeNode
++     * @param {Node} node to remove
++     * @param {boolean} autoRefresh automatically refreshes branch if true
++     * @return {boolean} False is there was a problem, true otherwise.
++     */
++    removeNode: function(node, autoRefresh) { 
++
++        // Don't delete the root node
++        if (node.isRoot()) {
++            return false;
++        }
++
++        // Get the branch that we may need to refresh
++        var p = node.parent;
++        if (p.parent) {
++            p = p.parent;
++        }
++
++        // Delete the node and its children
++        this._deleteNode(node);
++
++        // Refresh the parent of the parent
++        if (autoRefresh && p && p.childrenRendered) {
++            p.refresh();
++        }
++
++        return true;
++    },
++
++    /**
++     * wait until the animation is complete before deleting 
++     * to avoid javascript errors
++     * @method _removeChildren_animComplete
++     * @param o the custom event payload
++     * @private
++     */
++    _removeChildren_animComplete: function(o) {
++        this.unsubscribe(this._removeChildren_animComplete);
++        this.removeChildren(o.node);
++    },
++
++    /**
++     * Deletes this nodes child collection, recursively.  Also collapses
++     * the node, and resets the dynamic load flag.  The primary use for
++     * this method is to purge a node and allow it to fetch its data
++     * dynamically again.
++     * @method removeChildren
++     * @param {Node} node the node to purge
++     */
++    removeChildren: function(node) { 
++
++        if (node.expanded) {
++            // wait until the animation is complete before deleting to
++            // avoid javascript errors
++            if (this._collapseAnim) {
++                this.subscribe("animComplete", 
++                        this._removeChildren_animComplete, this, true);
++                Widget.Node.prototype.collapse.call(node);
++                return;
++            }
++
++            node.collapse();
++        }
++
++        while (node.children.length) {
++            this._deleteNode(node.children[0]);
++        }
++
++        if (node.isRoot()) {
++            Widget.Node.prototype.expand.call(node);
++        }
++
++        node.childrenRendered = false;
++        node.dynamicLoadComplete = false;
++
++        node.updateIcon();
++    },
++
++    /**
++     * Deletes the node and recurses children
++     * @method _deleteNode
++     * @private
++     */
++    _deleteNode: function(node) { 
++        // Remove all the child nodes first
++        this.removeChildren(node);
++
++        // Remove the node from the tree
++        this.popNode(node);
++    },
++
++    /**
++     * Removes the node from the tree, preserving the child collection 
++     * to make it possible to insert the branch into another part of the 
++     * tree, or another tree.
++     * @method popNode
++     * @param {Node} node to remove
++     */
++    popNode: function(node) { 
++        var p = node.parent;
++
++        // Update the parent's collection of children
++        var a = [];
++
++        for (var i=0, len=p.children.length;i<len;++i) {
++            if (p.children[i] != node) {
++                a[a.length] = p.children[i];
++            }
++        }
++
++        p.children = a;
++
++        // reset the childrenRendered flag for the parent
++        p.childrenRendered = false;
++
++         // Update the sibling relationship
++        if (node.previousSibling) {
++            node.previousSibling.nextSibling = node.nextSibling;
++        }
++
++        if (node.nextSibling) {
++            node.nextSibling.previousSibling = node.previousSibling;
++        }
++
++		if (this.currentFocus == node) {
++			this.currentFocus = null;
++		}
++		if (this._currentlyHighlighted == node) {
++			this._currentlyHighlighted = null;
++		}
++
++        node.parent = null;
++        node.previousSibling = null;
++        node.nextSibling = null;
++        node.tree = null;
++
++        // Update the tree's node collection 
++        delete this._nodes[node.index];
++    },
++
++    /**
++    * Nulls out the entire TreeView instance and related objects, removes attached
++    * event listeners, and clears out DOM elements inside the container. After
++    * calling this method, the instance reference should be expliclitly nulled by
++    * implementer, as in myDataTable = null. Use with caution!
++    *
++    * @method destroy
++    */
++    destroy : function() {
++        // Since the label editor can be separated from the main TreeView control
++        // the destroy method for it might not be there.
++        if (this._destroyEditor) { this._destroyEditor(); }
++        var el = this.getEl();
++        Event.removeListener(el,'click');
++        Event.removeListener(el,'dblclick');
++        Event.removeListener(el,'mouseover');
++        Event.removeListener(el,'mouseout');
++        Event.removeListener(el,'keydown');
++        for (var i = 0 ; i < this._nodes.length; i++) {
++            var node = this._nodes[i];
++            if (node && node.destroy) {node.destroy(); }
++        }
++        el.innerHTML = '';
++        this._hasEvents = false;
++    },
++        
++            
++
++
++    /**
++     * TreeView instance toString
++     * @method toString
++     * @return {string} string representation of the tree
++     */
++    toString: function() {
++        return "TreeView " + this.id;
++    },
++
++    /**
++     * Count of nodes in tree
++     * @method getNodeCount
++     * @return {int} number of nodes in the tree
++     */
++    getNodeCount: function() {
++        return this.getRoot().getNodeCount();
++    },
++
++    /**
++     * Returns an object which could be used to rebuild the tree.
++     * It can be passed to the tree constructor to reproduce the same tree.
++     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
++     * @method getTreeDefinition
++     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
++     */
++    getTreeDefinition: function() {
++        return this.getRoot().getNodeDefinition();
++    },
++
++    /**
++     * Abstract method that is executed when a node is expanded
++     * @method onExpand
++     * @param node {Node} the node that was expanded
++     * @deprecated use treeobj.subscribe("expand") instead
++     */
++    onExpand: function(node) { },
++
++    /**
++     * Abstract method that is executed when a node is collapsed.
++     * @method onCollapse
++     * @param node {Node} the node that was collapsed.
++     * @deprecated use treeobj.subscribe("collapse") instead
++     */
++    onCollapse: function(node) { },
++    
++    /**
++    * Sets the value of a property for all loaded nodes in the tree.
++    * @method setNodesProperty
++    * @param name {string} Name of the property to be set
++    * @param value {any} value to be set
++    * @param refresh {boolean} if present and true, it does a refresh
++    */
++    setNodesProperty: function(name, value, refresh) {
++        this.root.setNodesProperty(name,value);
++        if (refresh) {
++            this.root.refresh();
++        }
++    },
++    /**
++    * Event listener to toggle node highlight.
++    * Can be assigned as listener to clickEvent, dblClickEvent and enterKeyPressed.
++    * It returns false to prevent the default action.
++    * @method onEventToggleHighlight
++    * @param oArgs {any} it takes the arguments of any of the events mentioned above
++    * @return {false} Always cancels the default action for the event
++    */
++    onEventToggleHighlight: function (oArgs) {
++        var node;
++        if ('node' in oArgs && oArgs.node instanceof Widget.Node) {
++            node = oArgs.node;
++        } else if (oArgs instanceof Widget.Node) {
++            node = oArgs;
++        } else {
++            return false;
++        }
++        node.toggleHighlight();
++        return false;
++    }
++        
++
++};
++
++/* Backwards compatibility aliases */
++var PROT = TV.prototype;
++ /**
++     * Renders the tree boilerplate and visible nodes.
++     *  Alias for render
++     * @method draw
++     * @deprecated Use render instead
++     */
++PROT.draw = PROT.render;
++
++/* end backwards compatibility aliases */
++
++YAHOO.augment(TV, YAHOO.util.EventProvider);
++
++/**
++ * Running count of all nodes created in all trees.  This is 
++ * used to provide unique identifies for all nodes.  Deleting
++ * nodes does not change the nodeCount.
++ * @property YAHOO.widget.TreeView.nodeCount
++ * @type int
++ * @static
++ */
++TV.nodeCount = 0;
++
++/**
++ * Global cache of tree instances
++ * @property YAHOO.widget.TreeView.trees
++ * @type Array
++ * @static
++ * @private
++ */
++TV.trees = [];
++
++/**
++ * Global method for getting a tree by its id.  Used in the generated
++ * tree html.
++ * @method YAHOO.widget.TreeView.getTree
++ * @param treeId {String} the id of the tree instance
++ * @return {TreeView} the tree instance requested, null if not found.
++ * @static
++ */
++TV.getTree = function(treeId) {
++    var t = TV.trees[treeId];
++    return (t) ? t : null;
++};
++
++
++/**
++ * Global method for getting a node by its id.  Used in the generated
++ * tree html.
++ * @method YAHOO.widget.TreeView.getNode
++ * @param treeId {String} the id of the tree instance
++ * @param nodeIndex {String} the index of the node to return
++ * @return {Node} the node instance requested, null if not found
++ * @static
++ */
++TV.getNode = function(treeId, nodeIndex) {
++    var t = TV.getTree(treeId);
++    return (t) ? t.getNodeByIndex(nodeIndex) : null;
++};
++
++
++/**
++     * Class name assigned to elements that have the focus
++     *
++     * @property TreeView.FOCUS_CLASS_NAME
++     * @type String
++     * @static
++     * @final
++     * @default "ygtvfocus"
++
++    */ 
++TV.FOCUS_CLASS_NAME = 'ygtvfocus';
++
++
++
++})();
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event;
++/**
++ * The base class for all tree nodes.  The node's presentation and behavior in
++ * response to mouse events is handled in Node subclasses.
++ * @namespace YAHOO.widget
++ * @class Node
++ * @uses YAHOO.util.EventProvider
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node, and any custom attributes that should be
++ * stored with the node (which is available in noderef.data).
++ * All values in oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions,
++ * the rest of the values will be stored in noderef.data
++ * @param oParent {Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated, use oData.expanded)
++ * @constructor
++ */
++YAHOO.widget.Node = function(oData, oParent, expanded) {
++    if (oData) { this.init(oData, oParent, expanded); }
++};
++
++YAHOO.widget.Node.prototype = {
++
++    /**
++     * The index for this instance obtained from global counter in YAHOO.widget.TreeView.
++     * @property index
++     * @type int
++     */
++    index: 0,
++
++    /**
++     * This node's child node collection.
++     * @property children
++     * @type Node[] 
++     */
++    children: null,
++
++    /**
++     * Tree instance this node is part of
++     * @property tree
++     * @type TreeView
++     */
++    tree: null,
++
++    /**
++     * The data linked to this node.  This can be any object or primitive
++     * value, and the data can be used in getNodeHtml().
++     * @property data
++     * @type object
++     */
++    data: null,
++
++    /**
++     * Parent node
++     * @property parent
++     * @type Node
++     */
++    parent: null,
++
++    /**
++     * The depth of this node.  We start at -1 for the root node.
++     * @property depth
++     * @type int
++     */
++    depth: -1,
++
++    /**
++     * The node's expanded/collapsed state
++     * @property expanded
++     * @type boolean
++     */
++    expanded: false,
++
++    /**
++     * Can multiple children be expanded at once?
++     * @property multiExpand
++     * @type boolean
++     */
++    multiExpand: true,
++
++    /**
++     * Should we render children for a collapsed node?  It is possible that the
++     * implementer will want to render the hidden data...  @todo verify that we 
++     * need this, and implement it if we do.
++     * @property renderHidden
++     * @type boolean
++     */
++    renderHidden: false,
++
++    /**
++     * This flag is set to true when the html is generated for this node's
++     * children, and set to false when new children are added.
++     * @property childrenRendered
++     * @type boolean
++     */
++    childrenRendered: false,
++
++    /**
++     * Dynamically loaded nodes only fetch the data the first time they are
++     * expanded.  This flag is set to true once the data has been fetched.
++     * @property dynamicLoadComplete
++     * @type boolean
++     */
++    dynamicLoadComplete: false,
++
++    /**
++     * This node's previous sibling
++     * @property previousSibling
++     * @type Node
++     */
++    previousSibling: null,
++
++    /**
++     * This node's next sibling
++     * @property nextSibling
++     * @type Node
++     */
++    nextSibling: null,
++
++    /**
++     * We can set the node up to call an external method to get the child
++     * data dynamically.
++     * @property _dynLoad
++     * @type boolean
++     * @private
++     */
++    _dynLoad: false,
++
++    /**
++     * Function to execute when we need to get this node's child data.
++     * @property dataLoader
++     * @type function
++     */
++    dataLoader: null,
++
++    /**
++     * This is true for dynamically loading nodes while waiting for the
++     * callback to return.
++     * @property isLoading
++     * @type boolean
++     */
++    isLoading: false,
++
++    /**
++     * The toggle/branch icon will not show if this is set to false.  This
++     * could be useful if the implementer wants to have the child contain
++     * extra info about the parent, rather than an actual node.
++     * @property hasIcon
++     * @type boolean
++     */
++    hasIcon: true,
++
++    /**
++     * Used to configure what happens when a dynamic load node is expanded
++     * and we discover that it does not have children.  By default, it is
++     * treated as if it still could have children (plus/minus icon).  Set
++     * iconMode to have it display like a leaf node instead.
++     * @property iconMode
++     * @type int
++     */
++    iconMode: 0,
++
++    /**
++     * Specifies whether or not the content area of the node should be allowed
++     * to wrap.
++     * @property nowrap
++     * @type boolean
++     * @default false
++     */
++    nowrap: false,
++
++ /**
++     * If true, the node will alway be rendered as a leaf node.  This can be
++     * used to override the presentation when dynamically loading the entire
++     * tree.  Setting this to true also disables the dynamic load call for the
++     * node.
++     * @property isLeaf
++     * @type boolean
++     * @default false
++     */
++    isLeaf: false,
++
++/**
++     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
++     * can be overridden to provide a custom presentation for a specific node.
++     * @property contentStyle
++     * @type string
++     */
++    contentStyle: "",
++
++
++    /**
++     * The generated id that will contain the data passed in by the implementer.
++     * @property contentElId
++     * @type string
++     */
++    contentElId: null,
++    
++/** 
++ * Enables node highlighting.  If true, the node can be highlighted and/or propagate highlighting
++ * @property enableHighlight
++ * @type boolean
++ * @default true
++ */
++    enableHighlight: true,
++    
++/** 
++ * Stores the highlight state.  Can be any of:
++ * <ul>
++ * <li>0 - not highlighted</li>
++ * <li>1 - highlighted</li>
++ * <li>2 - some children highlighted</li>
++ * </ul>
++ * @property highlightState
++ * @type integer
++ * @default 0
++ */
++ 
++ highlightState: 0,
++ 
++ /**
++ * Tells whether highlighting will be propagated up to the parents of the clicked node
++ * @property propagateHighlightUp
++ * @type boolean
++ * @default false
++ */
++ 
++ propagateHighlightUp: false,
++ 
++ /**
++ * Tells whether highlighting will be propagated down to the children of the clicked node
++ * @property propagateHighlightDown
++ * @type boolean
++ * @default false
++ */
++ 
++ propagateHighlightDown: false,
++ 
++ /**
++  * User-defined className to be added to the Node
++  * @property className
++  * @type string
++  * @default null
++  */
++ 
++ className: null,
++ 
++ /**
++     * The node type
++     * @property _type
++     * @private
++     * @type string
++     * @default "Node"
++*/
++    _type: "Node",
++
++    /*
++    spacerPath: "http://l.yimg.com/a/i/space.gif",
++    expandedText: "Expanded",
++    collapsedText: "Collapsed",
++    loadingText: "Loading",
++    */
++
++    /**
++     * Initializes this node, gets some of the properties from the parent
++     * @method init
++     * @param oData {object} a string or object containing the data that will
++     * be used to render this node
++     * @param oParent {Node} this node's parent node
++     * @param expanded {boolean} the initial expanded/collapsed state
++     */
++    init: function(oData, oParent, expanded) {
++
++        this.data = {};
++        this.children   = [];
++        this.index      = YAHOO.widget.TreeView.nodeCount;
++        ++YAHOO.widget.TreeView.nodeCount;
++        this.contentElId = "ygtvcontentel" + this.index;
++        
++        if (Lang.isObject(oData)) {
++            for (var property in oData) {
++                if (oData.hasOwnProperty(property)) {
++                    if (property.charAt(0) != '_'  && !Lang.isUndefined(this[property]) && !Lang.isFunction(this[property]) ) {
++                        this[property] = oData[property];
++                    } else {
++                        this.data[property] = oData[property];
++                    }
++                }
++            }
++        }
++        if (!Lang.isUndefined(expanded) ) { this.expanded  = expanded;  }
++        
++
++        /**
++         * The parentChange event is fired when a parent element is applied
++         * to the node.  This is useful if you need to apply tree-level
++         * properties to a tree that need to happen if a node is moved from
++         * one tree to another.
++         *
++         * @event parentChange
++         * @type CustomEvent
++         */
++        this.createEvent("parentChange", this);
++
++        // oParent should never be null except when we create the root node.
++        if (oParent) {
++            oParent.appendChild(this);
++        }
++    },
++
++    /**
++     * Certain properties for the node cannot be set until the parent
++     * is known. This is called after the node is inserted into a tree.
++     * the parent is also applied to this node's children in order to
++     * make it possible to move a branch from one tree to another.
++     * @method applyParent
++     * @param {Node} parentNode this node's parent node
++     * @return {boolean} true if the application was successful
++     */
++    applyParent: function(parentNode) {
++        if (!parentNode) {
++            return false;
++        }
++
++        this.tree   = parentNode.tree;
++        this.parent = parentNode;
++        this.depth  = parentNode.depth + 1;
++
++        // @todo why was this put here.  This causes new nodes added at the
++        // root level to lose the menu behavior.
++        // if (! this.multiExpand) {
++            // this.multiExpand = parentNode.multiExpand;
++        // }
++
++        this.tree.regNode(this);
++        parentNode.childrenRendered = false;
++
++        // cascade update existing children
++        for (var i=0, len=this.children.length;i<len;++i) {
++            this.children[i].applyParent(this);
++        }
++
++        this.fireEvent("parentChange");
++
++        return true;
++    },
++
++    /**
++     * Appends a node to the child collection.
++     * @method appendChild
++     * @param childNode {Node} the new node
++     * @return {Node} the child node
++     * @private
++     */
++    appendChild: function(childNode) {
++        if (this.hasChildren()) {
++            var sib = this.children[this.children.length - 1];
++            sib.nextSibling = childNode;
++            childNode.previousSibling = sib;
++        }
++        this.children[this.children.length] = childNode;
++        childNode.applyParent(this);
++
++        // part of the IE display issue workaround. If child nodes
++        // are added after the initial render, and the node was
++        // instantiated with expanded = true, we need to show the
++        // children div now that the node has a child.
++        if (this.childrenRendered && this.expanded) {
++            this.getChildrenEl().style.display = "";
++        }
++
++        return childNode;
++    },
++
++    /**
++     * Appends this node to the supplied node's child collection
++     * @method appendTo
++     * @param parentNode {Node} the node to append to.
++     * @return {Node} The appended node
++     */
++    appendTo: function(parentNode) {
++        return parentNode.appendChild(this);
++    },
++
++    /**
++    * Inserts this node before this supplied node
++    * @method insertBefore
++    * @param node {Node} the node to insert this node before
++    * @return {Node} the inserted node
++    */
++    insertBefore: function(node) {
++        var p = node.parent;
++        if (p) {
++
++            if (this.tree) {
++                this.tree.popNode(this);
++            }
++
++            var refIndex = node.isChildOf(p);
++            p.children.splice(refIndex, 0, this);
++            if (node.previousSibling) {
++                node.previousSibling.nextSibling = this;
++            }
++            this.previousSibling = node.previousSibling;
++            this.nextSibling = node;
++            node.previousSibling = this;
++
++            this.applyParent(p);
++        }
++
++        return this;
++    },
++ 
++    /**
++    * Inserts this node after the supplied node
++    * @method insertAfter
++    * @param node {Node} the node to insert after
++    * @return {Node} the inserted node
++    */
++    insertAfter: function(node) {
++        var p = node.parent;
++        if (p) {
++
++            if (this.tree) {
++                this.tree.popNode(this);
++            }
++
++            var refIndex = node.isChildOf(p);
++
++            if (!node.nextSibling) {
++                this.nextSibling = null;
++                return this.appendTo(p);
++            }
++
++            p.children.splice(refIndex + 1, 0, this);
++
++            node.nextSibling.previousSibling = this;
++            this.previousSibling = node;
++            this.nextSibling = node.nextSibling;
++            node.nextSibling = this;
++
++            this.applyParent(p);
++        }
++
++        return this;
++    },
++
++    /**
++    * Returns true if the Node is a child of supplied Node
++    * @method isChildOf
++    * @param parentNode {Node} the Node to check
++    * @return {boolean} The node index if this Node is a child of 
++    *                   supplied Node, else -1.
++    * @private
++    */
++    isChildOf: function(parentNode) {
++        if (parentNode && parentNode.children) {
++            for (var i=0, len=parentNode.children.length; i<len ; ++i) {
++                if (parentNode.children[i] === this) {
++                    return i;
++                }
++            }
++        }
++
++        return -1;
++    },
++
++    /**
++     * Returns a node array of this node's siblings, null if none.
++     * @method getSiblings
++     * @return Node[]
++     */
++    getSiblings: function() {
++        var sib =  this.parent.children.slice(0);
++        for (var i=0;i < sib.length && sib[i] != this;i++) {}
++        sib.splice(i,1);
++        if (sib.length) { return sib; }
++        return null;
++    },
++
++    /**
++     * Shows this node's children
++     * @method showChildren
++     */
++    showChildren: function() {
++        if (!this.tree.animateExpand(this.getChildrenEl(), this)) {
++            if (this.hasChildren()) {
++                this.getChildrenEl().style.display = "";
++            }
++        }
++    },
++
++    /**
++     * Hides this node's children
++     * @method hideChildren
++     */
++    hideChildren: function() {
++
++        if (!this.tree.animateCollapse(this.getChildrenEl(), this)) {
++            this.getChildrenEl().style.display = "none";
++        }
++    },
++
++    /**
++     * Returns the id for this node's container div
++     * @method getElId
++     * @return {string} the element id
++     */
++    getElId: function() {
++        return "ygtv" + this.index;
++    },
++
++    /**
++     * Returns the id for this node's children div
++     * @method getChildrenElId
++     * @return {string} the element id for this node's children div
++     */
++    getChildrenElId: function() {
++        return "ygtvc" + this.index;
++    },
++
++    /**
++     * Returns the id for this node's toggle element
++     * @method getToggleElId
++     * @return {string} the toggel element id
++     */
++    getToggleElId: function() {
++        return "ygtvt" + this.index;
++    },
++
++
++    /*
++     * Returns the id for this node's spacer image.  The spacer is positioned
++     * over the toggle and provides feedback for screen readers.
++     * @method getSpacerId
++     * @return {string} the id for the spacer image
++     */
++    /*
++    getSpacerId: function() {
++        return "ygtvspacer" + this.index;
++    }, 
++    */
++
++    /**
++     * Returns this node's container html element
++     * @method getEl
++     * @return {HTMLElement} the container html element
++     */
++    getEl: function() {
++        return Dom.get(this.getElId());
++    },
++
++    /**
++     * Returns the div that was generated for this node's children
++     * @method getChildrenEl
++     * @return {HTMLElement} this node's children div
++     */
++    getChildrenEl: function() {
++        return Dom.get(this.getChildrenElId());
++    },
++
++    /**
++     * Returns the element that is being used for this node's toggle.
++     * @method getToggleEl
++     * @return {HTMLElement} this node's toggle html element
++     */
++    getToggleEl: function() {
++        return Dom.get(this.getToggleElId());
++    },
++    /**
++    * Returns the outer html element for this node's content
++    * @method getContentEl
++    * @return {HTMLElement} the element
++    */
++    getContentEl: function() { 
++        return Dom.get(this.contentElId);
++    },
++
++
++    /*
++     * Returns the element that is being used for this node's spacer.
++     * @method getSpacer
++     * @return {HTMLElement} this node's spacer html element
++     */
++    /*
++    getSpacer: function() {
++        return document.getElementById( this.getSpacerId() ) || {};
++    },
++    */
++
++    /*
++    getStateText: function() {
++        if (this.isLoading) {
++            return this.loadingText;
++        } else if (this.hasChildren(true)) {
++            if (this.expanded) {
++                return this.expandedText;
++            } else {
++                return this.collapsedText;
++            }
++        } else {
++            return "";
++        }
++    },
++    */
++
++  /**
++     * Hides this nodes children (creating them if necessary), changes the toggle style.
++     * @method collapse
++     */
++    collapse: function() {
++        // Only collapse if currently expanded
++        if (!this.expanded) { return; }
++
++        // fire the collapse event handler
++        var ret = this.tree.onCollapse(this);
++
++        if (false === ret) {
++            return;
++        }
++
++        ret = this.tree.fireEvent("collapse", this);
++
++        if (false === ret) {
++            return;
++        }
++
++
++        if (!this.getEl()) {
++            this.expanded = false;
++        } else {
++            // hide the child div
++            this.hideChildren();
++            this.expanded = false;
++
++            this.updateIcon();
++        }
++
++        // this.getSpacer().title = this.getStateText();
++
++        ret = this.tree.fireEvent("collapseComplete", this);
++
++    },
++
++    /**
++     * Shows this nodes children (creating them if necessary), changes the
++     * toggle style, and collapses its siblings if multiExpand is not set.
++     * @method expand
++     */
++    expand: function(lazySource) {
++        // Only expand if currently collapsed.
++        if (this.isLoading || (this.expanded && !lazySource)) { 
++            return; 
++        }
++
++        var ret = true;
++
++        // When returning from the lazy load handler, expand is called again
++        // in order to render the new children.  The "expand" event already
++        // fired before fething the new data, so we need to skip it now.
++        if (!lazySource) {
++            // fire the expand event handler
++            ret = this.tree.onExpand(this);
++
++            if (false === ret) {
++                return;
++            }
++            
++            ret = this.tree.fireEvent("expand", this);
++        }
++
++        if (false === ret) {
++            return;
++        }
++
++        if (!this.getEl()) {
++            this.expanded = true;
++            return;
++        }
++
++        if (!this.childrenRendered) {
++            this.getChildrenEl().innerHTML = this.renderChildren();
++        } else {
++        }
++
++        this.expanded = true;
++
++        this.updateIcon();
++
++        // this.getSpacer().title = this.getStateText();
++
++        // We do an extra check for children here because the lazy
++        // load feature can expose nodes that have no children.
++
++        // if (!this.hasChildren()) {
++        if (this.isLoading) {
++            this.expanded = false;
++            return;
++        }
++
++        if (! this.multiExpand) {
++            var sibs = this.getSiblings();
++            for (var i=0; sibs && i<sibs.length; ++i) {
++                if (sibs[i] != this && sibs[i].expanded) { 
++                    sibs[i].collapse(); 
++                }
++            }
++        }
++
++        this.showChildren();
++
++        ret = this.tree.fireEvent("expandComplete", this);
++    },
++
++    updateIcon: function() {
++        if (this.hasIcon) {
++            var el = this.getToggleEl();
++            if (el) {
++                el.className = el.className.replace(/\bygtv(([tl][pmn]h?)|(loading))\b/gi,this.getStyle());
++            }
++        }
++    },
++
++    /**
++     * Returns the css style name for the toggle
++     * @method getStyle
++     * @return {string} the css class for this node's toggle
++     */
++    getStyle: function() {
++        if (this.isLoading) {
++            return "ygtvloading";
++        } else {
++            // location top or bottom, middle nodes also get the top style
++            var loc = (this.nextSibling) ? "t" : "l";
++
++            // type p=plus(expand), m=minus(collapase), n=none(no children)
++            var type = "n";
++            if (this.hasChildren(true) || (this.isDynamic() && !this.getIconMode())) {
++            // if (this.hasChildren(true)) {
++                type = (this.expanded) ? "m" : "p";
++            }
++
++            return "ygtv" + loc + type;
++        }
++    },
++
++    /**
++     * Returns the hover style for the icon
++     * @return {string} the css class hover state
++     * @method getHoverStyle
++     */
++    getHoverStyle: function() { 
++        var s = this.getStyle();
++        if (this.hasChildren(true) && !this.isLoading) { 
++            s += "h"; 
++        }
++        return s;
++    },
++
++    /**
++     * Recursively expands all of this node's children.
++     * @method expandAll
++     */
++    expandAll: function() { 
++        var l = this.children.length;
++        for (var i=0;i<l;++i) {
++            var c = this.children[i];
++            if (c.isDynamic()) {
++                break;
++            } else if (! c.multiExpand) {
++                break;
++            } else {
++                c.expand();
++                c.expandAll();
++            }
++        }
++    },
++
++    /**
++     * Recursively collapses all of this node's children.
++     * @method collapseAll
++     */
++    collapseAll: function() { 
++        for (var i=0;i<this.children.length;++i) {
++            this.children[i].collapse();
++            this.children[i].collapseAll();
++        }
++    },
++
++    /**
++     * Configures this node for dynamically obtaining the child data
++     * when the node is first expanded.  Calling it without the callback
++     * will turn off dynamic load for the node.
++     * @method setDynamicLoad
++     * @param fmDataLoader {function} the function that will be used to get the data.
++     * @param iconMode {int} configures the icon that is displayed when a dynamic
++     * load node is expanded the first time without children.  By default, the 
++     * "collapse" icon will be used.  If set to 1, the leaf node icon will be
++     * displayed.
++     */
++    setDynamicLoad: function(fnDataLoader, iconMode) { 
++        if (fnDataLoader) {
++            this.dataLoader = fnDataLoader;
++            this._dynLoad = true;
++        } else {
++            this.dataLoader = null;
++            this._dynLoad = false;
++        }
++
++        if (iconMode) {
++            this.iconMode = iconMode;
++        }
++    },
++
++    /**
++     * Evaluates if this node is the root node of the tree
++     * @method isRoot
++     * @return {boolean} true if this is the root node
++     */
++    isRoot: function() { 
++        return (this == this.tree.root);
++    },
++
++    /**
++     * Evaluates if this node's children should be loaded dynamically.  Looks for
++     * the property both in this instance and the root node.  If the tree is
++     * defined to load all children dynamically, the data callback function is
++     * defined in the root node
++     * @method isDynamic
++     * @return {boolean} true if this node's children are to be loaded dynamically
++     */
++    isDynamic: function() { 
++        if (this.isLeaf) {
++            return false;
++        } else {
++            return (!this.isRoot() && (this._dynLoad || this.tree.root._dynLoad));
++            // return lazy;
++        }
++    },
++
++    /**
++     * Returns the current icon mode.  This refers to the way childless dynamic
++     * load nodes appear (this comes into play only after the initial dynamic
++     * load request produced no children).
++     * @method getIconMode
++     * @return {int} 0 for collapse style, 1 for leaf node style
++     */
++    getIconMode: function() {
++        return (this.iconMode || this.tree.root.iconMode);
++    },
++
++    /**
++     * Checks if this node has children.  If this node is lazy-loading and the
++     * children have not been rendered, we do not know whether or not there
++     * are actual children.  In most cases, we need to assume that there are
++     * children (for instance, the toggle needs to show the expandable 
++     * presentation state).  In other times we want to know if there are rendered
++     * children.  For the latter, "checkForLazyLoad" should be false.
++     * @method hasChildren
++     * @param checkForLazyLoad {boolean} should we check for unloaded children?
++     * @return {boolean} true if this has children or if it might and we are
++     * checking for this condition.
++     */
++    hasChildren: function(checkForLazyLoad) { 
++        if (this.isLeaf) {
++            return false;
++        } else {
++            return ( this.children.length > 0 || 
++				(checkForLazyLoad && this.isDynamic() && !this.dynamicLoadComplete) 
++			);
++        }
++    },
++
++    /**
++     * Expands if node is collapsed, collapses otherwise.
++     * @method toggle
++     */
++    toggle: function() {
++        if (!this.tree.locked && ( this.hasChildren(true) || this.isDynamic()) ) {
++            if (this.expanded) { this.collapse(); } else { this.expand(); }
++        }
++    },
++
++    /**
++     * Returns the markup for this node and its children.
++     * @method getHtml
++     * @return {string} the markup for this node and its expanded children.
++     */
++    getHtml: function() {
++
++        this.childrenRendered = false;
++
++        return ['<div class="ygtvitem" id="' , this.getElId() , '">' ,this.getNodeHtml() , this.getChildrenHtml() ,'</div>'].join("");
++    },
++
++    /**
++     * Called when first rendering the tree.  We always build the div that will
++     * contain this nodes children, but we don't render the children themselves
++     * unless this node is expanded.
++     * @method getChildrenHtml
++     * @return {string} the children container div html and any expanded children
++     * @private
++     */
++    getChildrenHtml: function() {
++
++
++        var sb = [];
++        sb[sb.length] = '<div class="ygtvchildren" id="' + this.getChildrenElId() + '"';
++
++        // This is a workaround for an IE rendering issue, the child div has layout
++        // in IE, creating extra space if a leaf node is created with the expanded
++        // property set to true.
++        if (!this.expanded || !this.hasChildren()) {
++            sb[sb.length] = ' style="display:none;"';
++        }
++        sb[sb.length] = '>';
++
++
++        // Don't render the actual child node HTML unless this node is expanded.
++        if ( (this.hasChildren(true) && this.expanded) ||
++                (this.renderHidden && !this.isDynamic()) ) {
++            sb[sb.length] = this.renderChildren();
++        }
++
++        sb[sb.length] = '</div>';
++
++        return sb.join("");
++    },
++
++    /**
++     * Generates the markup for the child nodes.  This is not done until the node
++     * is expanded.
++     * @method renderChildren
++     * @return {string} the html for this node's children
++     * @private
++     */
++    renderChildren: function() {
++
++
++        var node = this;
++
++        if (this.isDynamic() && !this.dynamicLoadComplete) {
++            this.isLoading = true;
++            this.tree.locked = true;
++
++            if (this.dataLoader) {
++
++                setTimeout( 
++                    function() {
++                        node.dataLoader(node, 
++                            function() { 
++                                node.loadComplete(); 
++                            });
++                    }, 10);
++                
++            } else if (this.tree.root.dataLoader) {
++
++                setTimeout( 
++                    function() {
++                        node.tree.root.dataLoader(node, 
++                            function() { 
++                                node.loadComplete(); 
++                            });
++                    }, 10);
++
++            } else {
++                return "Error: data loader not found or not specified.";
++            }
++
++            return "";
++
++        } else {
++            return this.completeRender();
++        }
++    },
++
++    /**
++     * Called when we know we have all the child data.
++     * @method completeRender
++     * @return {string} children html
++     */
++    completeRender: function() {
++        var sb = [];
++
++        for (var i=0; i < this.children.length; ++i) {
++            // this.children[i].childrenRendered = false;
++            sb[sb.length] = this.children[i].getHtml();
++        }
++        
++        this.childrenRendered = true;
++
++        return sb.join("");
++    },
++
++    /**
++     * Load complete is the callback function we pass to the data provider
++     * in dynamic load situations.
++     * @method loadComplete
++     */
++    loadComplete: function() {
++        this.getChildrenEl().innerHTML = this.completeRender();
++		if (this.propagateHighlightDown) {
++			if (this.highlightState === 1 && !this.tree.singleNodeHighlight) {
++				for (var i = 0; i < this.children.length; i++) {
++				this.children[i].highlight(true);
++			}
++			} else if (this.highlightState === 0 || this.tree.singleNodeHighlight) {
++				for (i = 0; i < this.children.length; i++) {
++					this.children[i].unhighlight(true);
++				}
++			} // if (highlighState == 2) leave child nodes with whichever highlight state they are set
++		}
++				
++        this.dynamicLoadComplete = true;
++        this.isLoading = false;
++        this.expand(true);
++        this.tree.locked = false;
++    },
++
++    /**
++     * Returns this node's ancestor at the specified depth.
++     * @method getAncestor
++     * @param {int} depth the depth of the ancestor.
++     * @return {Node} the ancestor
++     */
++    getAncestor: function(depth) {
++        if (depth >= this.depth || depth < 0)  {
++            return null;
++        }
++
++        var p = this.parent;
++        
++        while (p.depth > depth) {
++            p = p.parent;
++        }
++
++        return p;
++    },
++
++    /**
++     * Returns the css class for the spacer at the specified depth for
++     * this node.  If this node's ancestor at the specified depth
++     * has a next sibling the presentation is different than if it
++     * does not have a next sibling
++     * @method getDepthStyle
++     * @param {int} depth the depth of the ancestor.
++     * @return {string} the css class for the spacer
++     */
++    getDepthStyle: function(depth) {
++        return (this.getAncestor(depth).nextSibling) ? 
++            "ygtvdepthcell" : "ygtvblankdepthcell";
++    },
++
++    /**
++     * Get the markup for the node.  This may be overrided so that we can
++     * support different types of nodes.
++     * @method getNodeHtml
++     * @return {string} The HTML that will render this node.
++     */
++    getNodeHtml: function() { 
++        var sb = [];
++
++        sb[sb.length] = '<table id="ygtvtableel' + this.index + '" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth' + this.depth;
++        if (this.enableHighlight) {
++            sb[sb.length] = ' ygtv-highlight' + this.highlightState;
++        }
++        if (this.className) {
++            sb[sb.length] = ' ' + this.className;
++        }           
++        sb[sb.length] = '"><tr class="ygtvrow">';
++        
++        for (var i=0;i<this.depth;++i) {
++            sb[sb.length] = '<td class="ygtvcell ' + this.getDepthStyle(i) + '"><div class="ygtvspacer"></div></td>';
++        }
++
++        if (this.hasIcon) {
++            sb[sb.length] = '<td id="' + this.getToggleElId();
++            sb[sb.length] = '" class="ygtvcell ';
++            sb[sb.length] = this.getStyle() ;
++            sb[sb.length] = '"><a href="#" class="ygtvspacer">&#160;</a></td>';
++        }
++
++        sb[sb.length] = '<td id="' + this.contentElId; 
++        sb[sb.length] = '" class="ygtvcell ';
++        sb[sb.length] = this.contentStyle  + ' ygtvcontent" ';
++        sb[sb.length] = (this.nowrap) ? ' nowrap="nowrap" ' : '';
++        sb[sb.length] = ' >';
++        sb[sb.length] = this.getContentHtml();
++        sb[sb.length] = '</td></tr></table>';
++
++        return sb.join("");
++
++    },
++    /**
++     * Get the markup for the contents of the node.  This is designed to be overrided so that we can
++     * support different types of nodes.
++     * @method getContentHtml
++     * @return {string} The HTML that will render the content of this node.
++     */
++    getContentHtml: function () {
++        return "";
++    },
++
++    /**
++     * Regenerates the html for this node and its children.  To be used when the
++     * node is expanded and new children have been added.
++     * @method refresh
++     */
++    refresh: function() {
++        // this.loadComplete();
++        this.getChildrenEl().innerHTML = this.completeRender();
++
++        if (this.hasIcon) {
++            var el = this.getToggleEl();
++            if (el) {
++                el.className = el.className.replace(/\bygtv[lt][nmp]h*\b/gi,this.getStyle());
++            }
++        }
++    },
++
++    /**
++     * Node toString
++     * @method toString
++     * @return {string} string representation of the node
++     */
++    toString: function() {
++        return this._type + " (" + this.index + ")";
++    },
++    /**
++    * array of items that had the focus set on them
++    * so that they can be cleaned when focus is lost
++    * @property _focusHighlightedItems
++    * @type Array of DOM elements
++    * @private
++    */
++    _focusHighlightedItems: [],
++    /**
++    * DOM element that actually got the browser focus
++    * @property _focusedItem
++    * @type DOM element
++    * @private
++    */
++    _focusedItem: null,
++    
++    /**
++    * Returns true if there are any elements in the node that can 
++    * accept the real actual browser focus
++    * @method _canHaveFocus
++    * @return {boolean} success
++    * @private
++    */
++    _canHaveFocus: function() {
++        return this.getEl().getElementsByTagName('a').length > 0;
++    },
++    /**
++    * Removes the focus of previously selected Node
++    * @method _removeFocus
++    * @private
++    */
++    _removeFocus:function () {
++        if (this._focusedItem) {
++            Event.removeListener(this._focusedItem,'blur');
++            this._focusedItem = null;
++        }
++        var el;
++        while ((el = this._focusHighlightedItems.shift())) {  // yes, it is meant as an assignment, really
++            Dom.removeClass(el,YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
++        }
++    },
++    /**
++    * Sets the focus on the node element.
++    * It will only be able to set the focus on nodes that have anchor elements in it.  
++    * Toggle or branch icons have anchors and can be focused on.  
++    * If will fail in nodes that have no anchor
++    * @method focus
++    * @return {boolean} success
++    */
++    focus: function () {
++        var focused = false, self = this;
++
++        if (this.tree.currentFocus) {
++            this.tree.currentFocus._removeFocus();
++        }
++    
++        var  expandParent = function (node) {
++            if (node.parent) {
++                expandParent(node.parent);
++                node.parent.expand();
++            } 
++        };
++        expandParent(this);
++
++        Dom.getElementsBy  ( 
++            function (el) {
++                return (/ygtv(([tl][pmn]h?)|(content))/).test(el.className);
++            } ,
++            'td' , 
++            self.getEl().firstChild , 
++            function (el) {
++                Dom.addClass(el, YAHOO.widget.TreeView.FOCUS_CLASS_NAME );
++                if (!focused) { 
++                    var aEl = el.getElementsByTagName('a');
++                    if (aEl.length) {
++                        aEl = aEl[0];
++                        aEl.focus();
++                        self._focusedItem = aEl;
++                        Event.on(aEl,'blur',function () {
++                            //console.log('f1');
++                            self.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
++                            self.tree.currentFocus = null;
++                            self._removeFocus();
++                        });
++                        focused = true;
++                    }
++                }
++                self._focusHighlightedItems.push(el);
++            }
++        );
++        if (focused) { 
++                            //console.log('f2');
++            this.tree.fireEvent('focusChanged',{oldNode:this.tree.currentFocus,newNode:this});
++            this.tree.currentFocus = this;
++        } else {
++                            //console.log('f3');
++            this.tree.fireEvent('focusChanged',{oldNode:self.tree.currentFocus,newNode:null});
++            this.tree.currentFocus = null;
++            this._removeFocus(); 
++        }
++        return focused;
++    },
++
++  /**
++     * Count of nodes in a branch
++     * @method getNodeCount
++     * @return {int} number of nodes in the branch
++     */
++    getNodeCount: function() {
++        for (var i = 0, count = 0;i< this.children.length;i++) {
++            count += this.children[i].getNodeCount();
++        }
++        return count + 1;
++    },
++    
++      /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if the node or any children loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if the node or any children is defined as dynamic
++     */
++    getNodeDefinition: function() {
++    
++        if (this.isDynamic()) { return false; }
++        
++        var def, defs = Lang.merge(this.data), children = []; 
++        
++        
++
++        if (this.expanded) {defs.expanded = this.expanded; }
++        if (!this.multiExpand) { defs.multiExpand = this.multiExpand; }
++        if (!this.renderHidden) { defs.renderHidden = this.renderHidden; }
++        if (!this.hasIcon) { defs.hasIcon = this.hasIcon; }
++        if (this.nowrap) { defs.nowrap = this.nowrap; }
++        if (this.className) { defs.className = this.className; }
++        if (this.editable) { defs.editable = this.editable; }
++        if (this.enableHighlight) { defs.enableHighlight = this.enableHighlight; }
++        if (this.highlightState) { defs.highlightState = this.highlightState; }
++        if (this.propagateHighlightUp) { defs.propagateHighlightUp = this.propagateHighlightUp; }
++        if (this.propagateHighlightDown) { defs.propagateHighlightDown = this.propagateHighlightDown; }
++        defs.type = this._type;
++        
++        
++        
++        for (var i = 0; i < this.children.length;i++) {
++            def = this.children[i].getNodeDefinition();
++            if (def === false) { return false;}
++            children.push(def);
++        }
++        if (children.length) { defs.children = children; }
++        return defs;
++    },
++
++
++    /**
++     * Generates the link that will invoke this node's toggle method
++     * @method getToggleLink
++     * @return {string} the javascript url for toggling this node
++     */
++    getToggleLink: function() {
++        return 'return false;';
++    },
++    
++    /**
++    * Sets the value of property for this node and all loaded descendants.  
++    * Only public and defined properties can be set, not methods.  
++    * Values for unknown properties will be assigned to the refNode.data object
++    * @method setNodesProperty
++    * @param name {string} Name of the property to be set
++    * @param value {any} value to be set
++    * @param refresh {boolean} if present and true, it does a refresh
++    */
++    setNodesProperty: function(name, value, refresh) {
++        if (name.charAt(0) != '_'  && !Lang.isUndefined(this[name]) && !Lang.isFunction(this[name]) ) {
++            this[name] = value;
++        } else {
++            this.data[name] = value;
++        }
++        for (var i = 0; i < this.children.length;i++) {
++            this.children[i].setNodesProperty(name,value);
++        }
++        if (refresh) {
++            this.refresh();
++        }
++    },
++    /**
++    * Toggles the highlighted state of a Node
++    * @method toggleHighlight
++    */
++    toggleHighlight: function() {
++        if (this.enableHighlight) {
++            // unhighlights only if fully highligthed.  For not or partially highlighted it will highlight
++            if (this.highlightState == 1) {
++                this.unhighlight();
++            } else {
++                this.highlight();
++            }
++        }
++    },
++    
++    /**
++    * Turns highlighting on node.  
++    * @method highlight
++    * @param _silent {boolean} optional, don't fire the highlightEvent
++    */
++    highlight: function(_silent) {
++        if (this.enableHighlight) {
++            if (this.tree.singleNodeHighlight) {
++                if (this.tree._currentlyHighlighted) {
++                    this.tree._currentlyHighlighted.unhighlight(_silent);
++                }
++                this.tree._currentlyHighlighted = this;
++            }
++            this.highlightState = 1;
++            this._setHighlightClassName();
++            if (!this.tree.singleNodeHighlight) {
++				if (this.propagateHighlightDown) {
++					for (var i = 0;i < this.children.length;i++) {
++						this.children[i].highlight(true);
++					}
++				}
++				if (this.propagateHighlightUp) {
++					if (this.parent) {
++						this.parent._childrenHighlighted();
++					}
++				}
++			}
++            if (!_silent) {
++                this.tree.fireEvent('highlightEvent',this);
++            }
++        }
++    },
++    /**
++    * Turns highlighting off a node.  
++    * @method unhighlight
++    * @param _silent {boolean} optional, don't fire the highlightEvent
++    */
++    unhighlight: function(_silent) {
++        if (this.enableHighlight) {
++			// might have checked singleNodeHighlight but it wouldn't really matter either way
++            this.tree._currentlyHighlighted = null;
++            this.highlightState = 0;
++            this._setHighlightClassName();
++            if (!this.tree.singleNodeHighlight) {
++				if (this.propagateHighlightDown) {
++					for (var i = 0;i < this.children.length;i++) {
++						this.children[i].unhighlight(true);
++					}
++				}
++				if (this.propagateHighlightUp) {
++					if (this.parent) {
++						this.parent._childrenHighlighted();
++					}
++				}
++			}
++            if (!_silent) {
++                this.tree.fireEvent('highlightEvent',this);
++            }
++        }
++    },
++    /** 
++    * Checks whether all or part of the children of a node are highlighted and
++    * sets the node highlight to full, none or partial highlight.
++    * If set to propagate it will further call the parent
++    * @method _childrenHighlighted
++    * @private
++    */
++    _childrenHighlighted: function() {
++        var yes = false, no = false;
++        if (this.enableHighlight) {
++            for (var i = 0;i < this.children.length;i++) {
++                switch(this.children[i].highlightState) {
++                    case 0:
++                        no = true;
++                        break;
++                    case 1:
++                        yes = true;
++                        break;
++                    case 2:
++                        yes = no = true;
++                        break;
++                }
++            }
++            if (yes && no) {
++                this.highlightState = 2;
++            } else if (yes) {
++                this.highlightState = 1;
++            } else {
++                this.highlightState = 0;
++            }
++            this._setHighlightClassName();
++            if (this.propagateHighlightUp) {
++                if (this.parent) {
++                    this.parent._childrenHighlighted();
++                }
++            }
++        }
++    },
++    
++    /**
++    * Changes the classNames on the toggle and content containers to reflect the current highlighting
++    * @method _setHighlightClassName
++    * @private
++    */
++    _setHighlightClassName: function() {
++        var el = Dom.get('ygtvtableel' + this.index);
++        if (el) {
++            el.className = el.className.replace(/\bygtv-highlight\d\b/gi,'ygtv-highlight' + this.highlightState);
++        }
++    }
++    
++};
++
++YAHOO.augment(YAHOO.widget.Node, YAHOO.util.EventProvider);
++})();
++
++/**
++ * A custom YAHOO.widget.Node that handles the unique nature of 
++ * the virtual, presentationless root node.
++ * @namespace YAHOO.widget
++ * @class RootNode
++ * @extends YAHOO.widget.Node
++ * @param oTree {YAHOO.widget.TreeView} The tree instance this node belongs to
++ * @constructor
++ */
++YAHOO.widget.RootNode = function(oTree) {
++    // Initialize the node with null params.  The root node is a
++    // special case where the node has no presentation.  So we have
++    // to alter the standard properties a bit.
++    this.init(null, null, true);
++    
++    /*
++     * For the root node, we get the tree reference from as a param
++     * to the constructor instead of from the parent element.
++     */
++    this.tree = oTree;
++};
++
++YAHOO.extend(YAHOO.widget.RootNode, YAHOO.widget.Node, {
++    
++   /**
++     * The node type
++     * @property _type
++      * @type string
++     * @private
++     * @default "RootNode"
++     */
++    _type: "RootNode",
++    
++    // overrides YAHOO.widget.Node
++    getNodeHtml: function() { 
++        return ""; 
++    },
++
++    toString: function() { 
++        return this._type;
++    },
++
++    loadComplete: function() { 
++        this.tree.draw();
++    },
++    
++   /**
++     * Count of nodes in tree.  
++    * It overrides Nodes.getNodeCount because the root node should not be counted.
++     * @method getNodeCount
++     * @return {int} number of nodes in the tree
++     */
++    getNodeCount: function() {
++        for (var i = 0, count = 0;i< this.children.length;i++) {
++            count += this.children[i].getNodeCount();
++        }
++        return count;
++    },
++
++  /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * Since the RootNode is automatically created by treeView, 
++     * its own definition is excluded from the returned node definition
++     * which only contains its children.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if any child node is defined as dynamic
++     */
++    getNodeDefinition: function() {
++        
++        for (var def, defs = [], i = 0; i < this.children.length;i++) {
++            def = this.children[i].getNodeDefinition();
++            if (def === false) { return false;}
++            defs.push(def);
++        }
++        return defs;
++    },
++
++    collapse: function() {},
++    expand: function() {},
++    getSiblings: function() { return null; },
++    focus: function () {}
++
++});
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event;
++/**
++ * The default node presentation.  The first parameter should be
++ * either a string that will be used as the node's label, or an object
++ * that has at least a string property called label.  By default,  clicking the
++ * label will toggle the expanded/collapsed state of the node.  By
++ * setting the href property of the instance, this behavior can be
++ * changed so that the label will go to the specified href.
++ * @namespace YAHOO.widget
++ * @class TextNode
++ * @extends YAHOO.widget.Node
++ * @constructor
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.
++ * Providing a string is the same as providing an object with a single property named label.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions.
++ * All attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ */
++YAHOO.widget.TextNode = function(oData, oParent, expanded) {
++
++    if (oData) { 
++        if (Lang.isString(oData)) {
++            oData = { label: oData };
++        }
++        this.init(oData, oParent, expanded);
++        this.setUpLabel(oData);
++    }
++
++};
++
++YAHOO.extend(YAHOO.widget.TextNode, YAHOO.widget.Node, {
++    
++    /**
++     * The CSS class for the label href.  Defaults to ygtvlabel, but can be
++     * overridden to provide a custom presentation for a specific node.
++     * @property labelStyle
++     * @type string
++     */
++    labelStyle: "ygtvlabel",
++
++    /**
++     * The derived element id of the label for this node
++     * @property labelElId
++     * @type string
++     */
++    labelElId: null,
++
++    /**
++     * The text for the label.  It is assumed that the oData parameter will
++     * either be a string that will be used as the label, or an object that
++     * has a property called "label" that we will use.
++     * @property label
++     * @type string
++     */
++    label: null,
++
++    /**
++     * The text for the title (tooltip) for the label element
++     * @property title
++     * @type string
++     */
++    title: null,
++    
++    /**
++     * The href for the node's label.  If one is not specified, the href will
++     * be set so that it toggles the node.
++     * @property href
++     * @type string
++     */
++    href: null,
++
++    /**
++     * The label href target, defaults to current window
++     * @property target
++     * @type string
++     */
++    target: "_self",
++    
++    /**
++     * The node type
++     * @property _type
++     * @private
++     * @type string
++     * @default "TextNode"
++     */
++    _type: "TextNode",
++
++
++    /**
++     * Sets up the node label
++     * @method setUpLabel
++     * @param oData string containing the label, or an object with a label property
++     */
++    setUpLabel: function(oData) { 
++        
++        if (Lang.isString(oData)) {
++            oData = { 
++                label: oData 
++            };
++        } else {
++            if (oData.style) {
++                this.labelStyle = oData.style;
++            }
++        }
++
++        this.label = oData.label;
++
++        this.labelElId = "ygtvlabelel" + this.index;
++        
++    },
++
++    /**
++     * Returns the label element
++     * @for YAHOO.widget.TextNode
++     * @method getLabelEl
++     * @return {object} the element
++     */
++    getLabelEl: function() { 
++        return Dom.get(this.labelElId);
++    },
++
++    // overrides YAHOO.widget.Node
++    getContentHtml: function() { 
++        var sb = [];
++        sb[sb.length] = this.href?'<a':'<span';
++        sb[sb.length] = ' id="' + this.labelElId + '"';
++        sb[sb.length] = ' class="' + this.labelStyle  + '"';
++        if (this.href) {
++            sb[sb.length] = ' href="' + this.href + '"';
++            sb[sb.length] = ' target="' + this.target + '"';
++        } 
++        if (this.title) {
++            sb[sb.length] = ' title="' + this.title + '"';
++        }
++        sb[sb.length] = ' >';
++        sb[sb.length] = this.label;
++        sb[sb.length] = this.href?'</a>':'</span>';
++        return sb.join("");
++    },
++
++
++
++  /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if this node or any descendant is defined as dynamic
++     */
++    getNodeDefinition: function() {
++        var def = YAHOO.widget.TextNode.superclass.getNodeDefinition.call(this);
++        if (def === false) { return false; }
++
++        // Node specific properties
++        def.label = this.label;
++        if (this.labelStyle != 'ygtvlabel') { def.style = this.labelStyle; }
++        if (this.title) { def.title = this.title; }
++        if (this.href) { def.href = this.href; }
++        if (this.target != '_self') { def.target = this.target; }       
++
++        return def;
++    
++    },
++
++    toString: function() { 
++        return YAHOO.widget.TextNode.superclass.toString.call(this) + ": " + this.label;
++    },
++
++    // deprecated
++    onLabelClick: function() {
++        return false;
++    },
++    refresh: function() {
++        YAHOO.widget.TextNode.superclass.refresh.call(this);
++        var label = this.getLabelEl();
++        label.innerHTML = this.label;
++        if (label.tagName.toUpperCase() == 'A') {
++            label.href = this.href;
++            label.target = this.target;
++        }
++    }
++        
++    
++
++    
++});
++})();
++
++/**
++ * A menu-specific implementation that differs from TextNode in that only 
++ * one sibling can be expanded at a time.
++ * @namespace YAHOO.widget
++ * @class MenuNode
++ * @extends YAHOO.widget.TextNode
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.
++ * Providing a string is the same as providing an object with a single property named label.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions.
++ * All attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ * @constructor
++ */
++YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
++    YAHOO.widget.MenuNode.superclass.constructor.call(this,oData,oParent,expanded);
++
++   /*
++     * Menus usually allow only one branch to be open at a time.
++     */
++    this.multiExpand = false;
++
++};
++
++YAHOO.extend(YAHOO.widget.MenuNode, YAHOO.widget.TextNode, {
++
++    /**
++     * The node type
++     * @property _type
++     * @private
++    * @default "MenuNode"
++     */
++    _type: "MenuNode"
++
++});
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event;
++
++/**
++ * This implementation takes either a string or object for the
++ * oData argument.  If is it a string, it will use it for the display
++ * of this node (and it can contain any html code).  If the parameter
++ * is an object,it looks for a parameter called "html" that will be
++ * used for this node's display.
++ * @namespace YAHOO.widget
++ * @class HTMLNode
++ * @extends YAHOO.widget.Node
++ * @constructor
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.  
++ * Providing a string is the same as providing an object with a single property named html.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private or functions.
++ * All other attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ * @param hasIcon {boolean} specifies whether or not leaf nodes should
++ * be rendered with or without a horizontal line line and/or toggle icon. If the icon
++ * is not displayed, the content fills the space it would have occupied.
++ * This option operates independently of the leaf node presentation logic
++ * for dynamic nodes.
++ * (deprecated; use oData.hasIcon) 
++ */
++YAHOO.widget.HTMLNode = function(oData, oParent, expanded, hasIcon) {
++    if (oData) { 
++        this.init(oData, oParent, expanded);
++        this.initContent(oData, hasIcon);
++    }
++};
++
++YAHOO.extend(YAHOO.widget.HTMLNode, YAHOO.widget.Node, {
++
++    /**
++     * The CSS class for the html content container.  Defaults to ygtvhtml, but 
++     * can be overridden to provide a custom presentation for a specific node.
++     * @property contentStyle
++     * @type string
++     */
++    contentStyle: "ygtvhtml",
++
++
++    /**
++     * The HTML content to use for this node's display
++     * @property html
++     * @type string
++     */
++    html: null,
++    
++/**
++     * The node type
++     * @property _type
++     * @private
++     * @type string
++     * @default "HTMLNode"
++     */
++    _type: "HTMLNode",
++
++    /**
++     * Sets up the node label
++     * @property initContent
++     * @param oData {object} An html string or object containing an html property
++     * @param hasIcon {boolean} determines if the node will be rendered with an
++     * icon or not
++     */
++    initContent: function(oData, hasIcon) { 
++        this.setHtml(oData);
++        this.contentElId = "ygtvcontentel" + this.index;
++        if (!Lang.isUndefined(hasIcon)) { this.hasIcon  = hasIcon; }
++        
++    },
++
++    /**
++     * Synchronizes the node.html, and the node's content
++     * @property setHtml
++     * @param o {object} An html string or object containing an html property
++     */
++    setHtml: function(o) {
++
++        this.html = (typeof o === "string") ? o : o.html;
++
++        var el = this.getContentEl();
++        if (el) {
++            el.innerHTML = this.html;
++        }
++
++    },
++
++    // overrides YAHOO.widget.Node
++    getContentHtml: function() { 
++        return this.html;
++    },
++    
++      /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if any node loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the tree or false if any node is defined as dynamic
++     */
++    getNodeDefinition: function() {
++        var def = YAHOO.widget.HTMLNode.superclass.getNodeDefinition.call(this);
++        if (def === false) { return false; }
++        def.html = this.html;
++        return def;
++    
++    }
++});
++})();
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang,
++        Event = YAHOO.util.Event,
++        Calendar = YAHOO.widget.Calendar;
++        
++/**
++ * A Date-specific implementation that differs from TextNode in that it uses 
++ * YAHOO.widget.Calendar as an in-line editor, if available
++ * If Calendar is not available, it behaves as a plain TextNode.
++ * @namespace YAHOO.widget
++ * @class DateNode
++ * @extends YAHOO.widget.TextNode
++ * @param oData {object} a string or object containing the data that will
++ * be used to render this node.
++ * Providing a string is the same as providing an object with a single property named label.
++ * All values in the oData will be used to set equally named properties in the node
++ * as long as the node does have such properties, they are not undefined, private nor functions.
++ * All attributes are made available in noderef.data, which
++ * can be used to store custom attributes.  TreeView.getNode(s)ByProperty
++ * can be used to retrieve a node by one of the attributes.
++ * @param oParent {YAHOO.widget.Node} this node's parent node
++ * @param expanded {boolean} the initial expanded/collapsed state (deprecated; use oData.expanded) 
++ * @constructor
++ */
++YAHOO.widget.DateNode = function(oData, oParent, expanded) {
++    YAHOO.widget.DateNode.superclass.constructor.call(this,oData, oParent, expanded);
++};
++
++YAHOO.extend(YAHOO.widget.DateNode, YAHOO.widget.TextNode, {
++
++    /**
++     * The node type
++     * @property _type
++     * @type string
++     * @private
++     * @default  "DateNode"
++     */
++    _type: "DateNode",
++    
++    /**
++    * Configuration object for the Calendar editor, if used.
++    * See <a href="http://developer.yahoo.com/yui/calendar/#internationalization">http://developer.yahoo.com/yui/calendar/#internationalization</a>
++    * @property calendarConfig
++    */
++    calendarConfig: null,
++    
++    
++    
++    /** 
++     *  If YAHOO.widget.Calendar is available, it will pop up a Calendar to enter a new date.  Otherwise, it falls back to a plain &lt;input&gt;  textbox
++     * @method fillEditorContainer
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return void
++     */
++    fillEditorContainer: function (editorData) {
++    
++        var cal, container = editorData.inputContainer;
++        
++        if (Lang.isUndefined(Calendar)) {
++            Dom.replaceClass(editorData.editorPanel,'ygtv-edit-DateNode','ygtv-edit-TextNode');
++            YAHOO.widget.DateNode.superclass.fillEditorContainer.call(this, editorData);
++            return;
++        }
++            
++        if (editorData.nodeType != this._type) {
++            editorData.nodeType = this._type;
++            editorData.saveOnEnter = false;
++            
++            editorData.node.destroyEditorContents(editorData);
++
++            editorData.inputObject = cal = new Calendar(container.appendChild(document.createElement('div')));
++            if (this.calendarConfig) { 
++                cal.cfg.applyConfig(this.calendarConfig,true); 
++                cal.cfg.fireQueue();
++            }
++            cal.selectEvent.subscribe(function () {
++                this.tree._closeEditor(true);
++            },this,true);
++        } else {
++            cal = editorData.inputObject;
++        }
++
++		editorData.oldValue = this.label;
++        cal.cfg.setProperty("selected",this.label, false); 
++
++        var delim = cal.cfg.getProperty('DATE_FIELD_DELIMITER');
++        var pageDate = this.label.split(delim);
++        cal.cfg.setProperty('pagedate',pageDate[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] + delim + pageDate[cal.cfg.getProperty('MDY_YEAR_POSITION') -1]);
++        cal.cfg.fireQueue();
++
++        cal.render();
++        cal.oDomContainer.focus();
++    },
++     /**
++    * Returns the value from the input element.
++    * Overrides Node.getEditorValue.
++    * @method getEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {string} date entered
++     */
++
++	getEditorValue: function (editorData) {
++        if (Lang.isUndefined(Calendar)) {
++            return editorData.inputElement.value;
++        } else {
++            var cal = editorData.inputObject,
++                date = cal.getSelectedDates()[0],
++                dd = [];
++                
++            dd[cal.cfg.getProperty('MDY_DAY_POSITION') -1] = date.getDate();
++            dd[cal.cfg.getProperty('MDY_MONTH_POSITION') -1] = date.getMonth() + 1;
++            dd[cal.cfg.getProperty('MDY_YEAR_POSITION') -1] = date.getFullYear();
++            return dd.join(cal.cfg.getProperty('DATE_FIELD_DELIMITER'));
++        }
++	},
++
++	/**
++    * Finally displays the newly entered date in the tree.
++    * Overrides Node.displayEditedValue.
++    * @method displayEditedValue
++     *  @param value {string} date to be displayed and stored in the node
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     */
++	displayEditedValue: function (value,editorData) {
++		var node = editorData.node;
++		node.label = value;
++		node.getLabelEl().innerHTML = value;
++	},
++  /**
++     * Returns an object which could be used to build a tree out of this node and its children.
++     * It can be passed to the tree constructor to reproduce this node as a tree.
++     * It will return false if the node or any descendant loads dynamically, regardless of whether it is loaded or not.
++     * @method getNodeDefinition
++     * @return {Object | false}  definition of the node or false if this node or any descendant is defined as dynamic
++     */ 
++    getNodeDefinition: function() {
++        var def = YAHOO.widget.DateNode.superclass.getNodeDefinition.call(this);
++        if (def === false) { return false; }
++        if (this.calendarConfig) { def.calendarConfig = this.calendarConfig; }
++        return def;
++    }
++
++
++});
++})();
++
++(function () {
++    var Dom = YAHOO.util.Dom,
++        Lang = YAHOO.lang, 
++        Event = YAHOO.util.Event,
++        TV = YAHOO.widget.TreeView,
++        TVproto = TV.prototype;
++
++    /**
++     * An object to store information used for in-line editing
++     * for all Nodes of all TreeViews. It contains:
++     * <ul>
++    * <li>active {boolean}, whether there is an active cell editor </li>
++    * <li>whoHasIt {YAHOO.widget.TreeView} TreeView instance that is currently using the editor</li>
++    * <li>nodeType {string} value of static Node._type property, allows reuse of input element if node is of the same type.</li>
++    * <li>editorPanel {HTMLelement (&lt;div&gt;)} element holding the in-line editor</li>
++    * <li>inputContainer {HTMLelement (&lt;div&gt;)} element which will hold the type-specific input element(s) to be filled by the fillEditorContainer method</li>
++    * <li>buttonsContainer {HTMLelement (&lt;div&gt;)} element which holds the &lt;button&gt; elements for Ok/Cancel.  If you don't want any of the buttons, hide it via CSS styles, don't destroy it</li>
++    * <li>node {YAHOO.widget.Node} reference to the Node being edited</li>
++    * <li>saveOnEnter {boolean}, whether the Enter key should be accepted as a Save command (Esc. is always taken as Cancel), disable for multi-line input elements </li>
++    * <li>oldValue {any}  value before editing</li>
++    * </ul>
++    *  Editors are free to use this object to store additional data.
++     * @property editorData
++     * @static
++     * @for YAHOO.widget.TreeView
++     */
++    TV.editorData = {
++        active:false,
++        whoHasIt:null, // which TreeView has it
++        nodeType:null,
++        editorPanel:null,
++        inputContainer:null,
++        buttonsContainer:null,
++        node:null, // which Node is being edited
++        saveOnEnter:true,
++		oldValue:undefined
++        // Each node type is free to add its own properties to this as it sees fit.
++    };
++    
++    /**
++    * Validator function for edited data, called from the TreeView instance scope, 
++    * receives the arguments (newValue, oldValue, nodeInstance) 
++    * and returns either the validated (or type-converted) value or undefined. 
++    * An undefined return will prevent the editor from closing
++    * @property validator
++    * @type function
++    * @default null
++     * @for YAHOO.widget.TreeView
++     */
++    TVproto.validator = null;
++    
++    /**
++    * Entry point for initializing the editing plug-in.  
++    * TreeView will call this method on initializing if it exists
++    * @method _initEditor
++     * @for YAHOO.widget.TreeView
++     * @private
++    */
++
++	TVproto._initEditor = function () {
++		/** 
++	 	* Fires when the user clicks on the ok button of a node editor
++	 	* @event editorSaveEvent 
++	 	* @type CustomEvent 
++	 	* @param oArgs.newValue {mixed} the new value just entered 
++	 	* @param oArgs.oldValue {mixed} the value originally in the tree 
++	 	* @param oArgs.node {YAHOO.widget.Node} the node that has the focus 
++	        * @for YAHOO.widget.TreeView
++	 	*/ 
++	 	this.createEvent("editorSaveEvent", this); 
++		
++		/** 
++	 	* Fires when the user clicks on the cancel button of a node editor
++	 	* @event editorCancelEvent 
++	 	* @type CustomEvent 
++	 	* @param {YAHOO.widget.Node} node the node that has the focus 
++	        * @for YAHOO.widget.TreeView
++	 	*/ 
++	 	this.createEvent("editorCancelEvent", this); 
++
++	};
++
++    /**
++    * Entry point of the editing plug-in.  
++    * TreeView will call this method if it exists when a node label is clicked
++    * @method _nodeEditing
++    * @param node {YAHOO.widget.Node} the node to be edited
++    * @return {Boolean} true to indicate that the node is editable and prevent any further bubbling of the click.
++     * @for YAHOO.widget.TreeView
++     * @private
++    */
++	
++    
++    
++    TVproto._nodeEditing = function (node) {
++        if (node.fillEditorContainer && node.editable) {
++            var ed, topLeft, buttons, button, editorData = TV.editorData;
++            editorData.active = true;
++            editorData.whoHasIt = this;
++            if (!editorData.nodeType) {
++                editorData.editorPanel = ed = document.body.appendChild(document.createElement('div'));
++                Dom.addClass(ed,'ygtv-label-editor');
++
++                buttons = editorData.buttonsContainer = ed.appendChild(document.createElement('div'));
++                Dom.addClass(buttons,'ygtv-button-container');
++                button = buttons.appendChild(document.createElement('button'));
++                Dom.addClass(button,'ygtvok');
++                button.innerHTML = ' ';
++                button = buttons.appendChild(document.createElement('button'));
++                Dom.addClass(button,'ygtvcancel');
++                button.innerHTML = ' ';
++                Event.on(buttons, 'click', function (ev) {
++                    var target = Event.getTarget(ev);
++                    var node = TV.editorData.node;
++                    if (Dom.hasClass(target,'ygtvok')) {
++                        Event.stopEvent(ev);
++                        this._closeEditor(true);
++                    }
++                    if (Dom.hasClass(target,'ygtvcancel')) {
++                        Event.stopEvent(ev);
++                        this._closeEditor(false);
++                    }
++                }, this, true);
++
++                editorData.inputContainer = ed.appendChild(document.createElement('div'));
++                Dom.addClass(editorData.inputContainer,'ygtv-input');
++                
++                Event.on(ed,'keydown',function (ev) {
++                    var editorData = TV.editorData,
++                        KEY = YAHOO.util.KeyListener.KEY;
++                    switch (ev.keyCode) {
++                        case KEY.ENTER:
++                            Event.stopEvent(ev);
++                            if (editorData.saveOnEnter) { 
++                                this._closeEditor(true);
++                            }
++                            break;
++                        case KEY.ESCAPE:
++                            Event.stopEvent(ev);
++                            this._closeEditor(false);
++                            break;
++                    }
++                },this,true);
++
++
++                
++            } else {
++                ed = editorData.editorPanel;
++            }
++            editorData.node = node;
++            if (editorData.nodeType) {
++                Dom.removeClass(ed,'ygtv-edit-' + editorData.nodeType);
++            }
++            Dom.addClass(ed,' ygtv-edit-' + node._type);
++            topLeft = Dom.getXY(node.getContentEl());
++            Dom.setStyle(ed,'left',topLeft[0] + 'px');
++            Dom.setStyle(ed,'top',topLeft[1] + 'px');
++            Dom.setStyle(ed,'display','block');
++            ed.focus();
++            node.fillEditorContainer(editorData);
++
++            return true;  // If inline editor available, don't do anything else.
++        }
++    };
++    
++    /**
++    * Method to be associated with an event (clickEvent, dblClickEvent or enterKeyPressed) to pop up the contents editor
++    *  It calls the corresponding node editNode method.
++    * @method onEventEditNode
++    * @param oArgs {object} Object passed as arguments to TreeView event listeners
++     * @for YAHOO.widget.TreeView
++    */
++
++    TVproto.onEventEditNode = function (oArgs) {
++        if (oArgs instanceof YAHOO.widget.Node) {
++            oArgs.editNode();
++        } else if (oArgs.node instanceof YAHOO.widget.Node) {
++            oArgs.node.editNode();
++        }
++    };
++    
++    /**
++    * Method to be called when the inline editing is finished and the editor is to be closed
++    * @method _closeEditor
++    * @param save {Boolean} true if the edited value is to be saved, false if discarded
++    * @private
++     * @for YAHOO.widget.TreeView
++    */
++    
++    TVproto._closeEditor = function (save) {
++        var ed = TV.editorData, 
++            node = ed.node,
++            close = true;
++        if (save) { 
++            close = ed.node.saveEditorValue(ed) !== false; 
++        } else {
++			this.fireEvent( 'editorCancelEvent', node); 
++		}
++			
++        if (close) {
++            Dom.setStyle(ed.editorPanel,'display','none');  
++            ed.active = false;
++            node.focus();
++        }
++    };
++    
++    /**
++    *  Entry point for TreeView's destroy method to destroy whatever the editing plug-in has created
++    * @method _destroyEditor
++    * @private
++     * @for YAHOO.widget.TreeView
++    */
++    TVproto._destroyEditor = function() {
++        var ed = TV.editorData;
++        if (ed && ed.nodeType && (!ed.active || ed.whoHasIt === this)) {
++            Event.removeListener(ed.editorPanel,'keydown');
++            Event.removeListener(ed.buttonContainer,'click');
++            ed.node.destroyEditorContents(ed);
++            document.body.removeChild(ed.editorPanel);
++            ed.nodeType = ed.editorPanel = ed.inputContainer = ed.buttonsContainer = ed.whoHasIt = ed.node = null;
++            ed.active = false;
++        }
++    };
++    
++    var Nproto = YAHOO.widget.Node.prototype;
++    
++    /**
++    * Signals if the label is editable.  (Ignored on TextNodes with href set.)
++    * @property editable
++    * @type boolean
++         * @for YAHOO.widget.Node
++    */
++    Nproto.editable = false;
++    
++    /**
++    * pops up the contents editor, if there is one and the node is declared editable
++    * @method editNode
++     * @for YAHOO.widget.Node
++    */
++    
++    Nproto.editNode = function () {
++        this.tree._nodeEditing(this);
++    };
++    
++    
++
++
++    /** Placeholder for a function that should provide the inline node label editor.
++     *   Leaving it set to null will indicate that this node type is not editable.
++     * It should be overridden by nodes that provide inline editing.
++     *  The Node-specific editing element (input box, textarea or whatever) should be inserted into editorData.inputContainer.
++     * @method fillEditorContainer
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return void
++     * @for YAHOO.widget.Node
++     */
++    Nproto.fillEditorContainer = null;
++
++    
++    /**
++    * Node-specific destroy function to empty the contents of the inline editor panel.
++    * This function is the worst case alternative that will purge all possible events and remove the editor contents.
++    * Method Event.purgeElement is somewhat costly so if it can be replaced by specifc Event.removeListeners, it is better to do so.
++    * @method destroyEditorContents
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.Node
++     */
++    Nproto.destroyEditorContents = function (editorData) {
++        // In the worst case, if the input editor (such as the Calendar) has no destroy method
++        // we can only try to remove all possible events on it.
++        Event.purgeElement(editorData.inputContainer,true);
++        editorData.inputContainer.innerHTML = '';
++    };
++
++    /**
++    * Saves the value entered into the editor.
++    * @method saveEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {false or none} a return of exactly false will prevent the editor from closing
++     * @for YAHOO.widget.Node
++     */
++    Nproto.saveEditorValue = function (editorData) {
++        var node = editorData.node, 
++			value,
++            validator = node.tree.validator;
++			
++		value = this.getEditorValue(editorData);
++        
++        if (Lang.isFunction(validator)) {
++            value = validator(value,editorData.oldValue,node);
++            if (Lang.isUndefined(value)) { 
++				return false; 
++			}
++        }
++
++		if (this.tree.fireEvent( 'editorSaveEvent', {
++			newValue:value,
++			oldValue:editorData.oldValue,
++			node:node
++		}) !== false) {
++			this.displayEditedValue(value,editorData);
++		}
++	};
++	
++	
++    /**
++    * Returns the value(s) from the input element(s) .
++    * Should be overridden by each node type.
++    * @method getEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {any} value entered
++     * @for YAHOO.widget.Node
++     */
++
++	 Nproto.getEditorValue = function (editorData) {
++	};
++
++	/**
++    * Finally displays the newly edited value(s) in the tree.
++    * Should be overridden by each node type.
++    * @method displayEditedValue
++     *  @param value {any} value to be displayed and stored in the node
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.Node
++     */
++	Nproto.displayEditedValue = function (value,editorData) {
++	};
++    
++    var TNproto = YAHOO.widget.TextNode.prototype;
++    
++
++
++    /** 
++     *  Places an &lt;input&gt;  textbox in the input container and loads the label text into it.
++     * @method fillEditorContainer
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return void
++     * @for YAHOO.widget.TextNode
++     */
++    TNproto.fillEditorContainer = function (editorData) {
++    
++        var input;
++        // If last node edited is not of the same type as this one, delete it and fill it with our editor
++        if (editorData.nodeType != this._type) {
++            editorData.nodeType = this._type;
++            editorData.saveOnEnter = true;
++            editorData.node.destroyEditorContents(editorData);
++
++            editorData.inputElement = input = editorData.inputContainer.appendChild(document.createElement('input'));
++            
++        } else {
++            // if the last node edited was of the same time, reuse the input element.
++            input = editorData.inputElement;
++        }
++		editorData.oldValue = this.label;
++        input.value = this.label;
++        input.focus();
++        input.select();
++    };
++    
++    /**
++    * Returns the value from the input element.
++    * Overrides Node.getEditorValue.
++    * @method getEditorValue
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @return {string} value entered
++     * @for YAHOO.widget.TextNode
++     */
++
++    TNproto.getEditorValue = function (editorData) {
++        return editorData.inputElement.value;
++	};
++
++	/**
++    * Finally displays the newly edited value in the tree.
++    * Overrides Node.displayEditedValue.
++    * @method displayEditedValue
++     *  @param value {string} value to be displayed and stored in the node
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.TextNode
++     */
++	TNproto.displayEditedValue = function (value,editorData) {
++		var node = editorData.node;
++		node.label = value;
++		node.getLabelEl().innerHTML = value;
++	};
++
++    /**
++    * Destroys the contents of the inline editor panel.
++    * Overrides Node.destroyEditorContent.
++    * Since we didn't set any event listeners on this inline editor, it is more efficient to avoid the generic method in Node.
++    * @method destroyEditorContents
++     * @param editorData {YAHOO.widget.TreeView.editorData}  a shortcut to the static object holding editing information
++     * @for YAHOO.widget.TextNode
++     */
++    TNproto.destroyEditorContents = function (editorData) {
++        editorData.inputContainer.innerHTML = '';
++    };
++})();
++
++/**
++ * A static factory class for tree view expand/collapse animations
++ * @class TVAnim
++ * @static
++ */
++YAHOO.widget.TVAnim = function() {
++    return {
++        /**
++         * Constant for the fade in animation
++         * @property FADE_IN
++         * @type string
++         * @static
++         */
++        FADE_IN: "TVFadeIn",
++
++        /**
++         * Constant for the fade out animation
++         * @property FADE_OUT
++         * @type string
++         * @static
++         */
++        FADE_OUT: "TVFadeOut",
++
++        /**
++         * Returns a ygAnim instance of the given type
++         * @method getAnim
++         * @param type {string} the type of animation
++         * @param el {HTMLElement} the element to element (probably the children div)
++         * @param callback {function} function to invoke when the animation is done.
++         * @return {YAHOO.util.Animation} the animation instance
++         * @static
++         */
++        getAnim: function(type, el, callback) {
++            if (YAHOO.widget[type]) {
++                return new YAHOO.widget[type](el, callback);
++            } else {
++                return null;
++            }
++        },
++
++        /**
++         * Returns true if the specified animation class is available
++         * @method isValid
++         * @param type {string} the type of animation
++         * @return {boolean} true if valid, false if not
++         * @static
++         */
++        isValid: function(type) {
++            return (YAHOO.widget[type]);
++        }
++    };
++} ();
++
++/**
++ * A 1/2 second fade-in animation.
++ * @class TVFadeIn
++ * @constructor
++ * @param el {HTMLElement} the element to animate
++ * @param callback {function} function to invoke when the animation is finished
++ */
++YAHOO.widget.TVFadeIn = function(el, callback) {
++    /**
++     * The element to animate
++     * @property el
++     * @type HTMLElement
++     */
++    this.el = el;
++
++    /**
++     * the callback to invoke when the animation is complete
++     * @property callback
++     * @type function
++     */
++    this.callback = callback;
++
++};
++
++YAHOO.widget.TVFadeIn.prototype = {
++    /**
++     * Performs the animation
++     * @method animate
++     */
++    animate: function() {
++        var tvanim = this;
++
++        var s = this.el.style;
++        s.opacity = 0.1;
++        s.filter = "alpha(opacity=10)";
++        s.display = "";
++
++        var dur = 0.4; 
++        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 0.1, to: 1, unit:""}}, dur);
++        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
++        a.animate();
++    },
++
++    /**
++     * Clean up and invoke callback
++     * @method onComplete
++     */
++    onComplete: function() {
++        this.callback();
++    },
++
++    /**
++     * toString
++     * @method toString
++     * @return {string} the string representation of the instance
++     */
++    toString: function() {
++        return "TVFadeIn";
++    }
++};
++
++/**
++ * A 1/2 second fade out animation.
++ * @class TVFadeOut
++ * @constructor
++ * @param el {HTMLElement} the element to animate
++ * @param callback {Function} function to invoke when the animation is finished
++ */
++YAHOO.widget.TVFadeOut = function(el, callback) {
++    /**
++     * The element to animate
++     * @property el
++     * @type HTMLElement
++     */
++    this.el = el;
++
++    /**
++     * the callback to invoke when the animation is complete
++     * @property callback
++     * @type function
++     */
++    this.callback = callback;
++
++};
++
++YAHOO.widget.TVFadeOut.prototype = {
++    /**
++     * Performs the animation
++     * @method animate
++     */
++    animate: function() {
++        var tvanim = this;
++        var dur = 0.4;
++        var a = new YAHOO.util.Anim(this.el, {opacity: {from: 1, to: 0.1, unit:""}}, dur);
++        a.onComplete.subscribe( function() { tvanim.onComplete(); } );
++        a.animate();
++    },
++
++    /**
++     * Clean up and invoke callback
++     * @method onComplete
++     */
++    onComplete: function() {
++        var s = this.el.style;
++        s.display = "none";
++        s.opacity = 1;
++        s.filter = "alpha(opacity=100)";
++        this.callback();
++    },
++
++    /**
++     * toString
++     * @method toString
++     * @return {string} the string representation of the instance
++     */
++    toString: function() {
++        return "TVFadeOut";
++    }
++};
++
++YAHOO.register("treeview", YAHOO.widget.TreeView, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/uploader/assets/uploader.swf b/pylons_app/public/js/yui/uploader/assets/uploader.swf
+new file mode 100644
+index 0000000000000000000000000000000000000000..e20765c89160b949521d0431acded3ad103b043b
+GIT binary patch
+literal 7098
+zc$@*c8%5+pS5paBFaQ8}+MPNHbR0*O^}BnfdU|w>Mz(y)9><Cm%j1zOCvmJeie+hJ
+zOOZ8>jyMS!se5L+H51Pvx_c}Oc0m|IxFICm0Yrd62n0yDuRyp7$Bc|^?weh1c9&z>
+z<?#Nh?m6U`z+1if-M^}S{rdH<`qlO+BK?Svruzw54`iri10m#@t&amC2h5bwH!(CE
+zI+e@jtv+mB*O|8M`M&P%g@uL4!rn;1oa^4RfB*jOp5E@>-rY#C+gi-q+Ns@nYkOxu
+zXE3B&Ni#EVXA1ccYio%@(Y~&;)8(2<R+-Kh%`9h`N_Oj6J*Vewt9wsm4>C$6`;3B_
+z)9ik2em<K?YK&d?sohq(kUX)Voz!<5S<Olx=&lj6Id;a*>iq+$LP8G>XZ2H|y`h2H
+zd`|6<Fyd5A(Ehq@YHW5SS;%$In}t*{i82|;ichYe!dT1~6WNTF*3JH6{zSg8;4D$=
+zWi&}s*X+V-ib@|F&uaO(qBf`ZN5}bCwasPJY}`+AF4Vg(9O~`q+3$$KdJlA8q;0nc
+z4cJeH0zVTEkU`<Xg$uVTB3jssAd>H*mD%5WHywy?NBoP*^nA9UrF4@#x+WAMgpC`f
+zmeco;0ErNfK$e#NLXit4<kLbUS9&CsvF5YdV&jnWjwNo_lQxk~7BVUCq-|#Mb6%&f
+z!J*erGRu0R>?LOMwr9XJwMBZUP{`_9UOXI~l7}-{9e1TEM+-$u=ah}d%)*?hTNZEm
+zhH#W)4I{CrX%<X}=mvc;QP9j3Zz;otWYMK}md@*TBjY`x8@j3Ile#iJF*cz;wWwQm
+zBicB!sHF>q$YL?0+%i2fkkaOD-Ske*n;BbQziPa%Hm=O+_CVI2(oflIOx-{k(}RWF
+zd?AnPPG+8_x81It)F!!ExG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RUbP>%ft*ypFmgmUb)`~$}!_64o0ga`Shzi+hQ?`CLs
+zzj18G8G{0d(l)%YWy4QTXJ^u3E1jOXJ-m><eda`XF@0ht6E3DRNH_!_dDy2n{=FlL
+k3yA?t8h_<qQly)O_VgV4!qUn<<5&OF_(5#^AM3^<Hn9D=7XSbN
+
+diff --git a/pylons_app/public/js/yui/uploader/uploader-debug.js b/pylons_app/public/js/yui/uploader/uploader-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/uploader/uploader-debug.js
+@@ -0,0 +1,1072 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/*extern ActiveXObject, __flash_unloadHandler, __flash_savedUnloadHandler */
++/*!
++ * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
++ *
++ * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
++ * http://www.opensource.org/licenses/mit-license.php
++ * @namespace YAHOO
++ */
++
++YAHOO.namespace("deconcept"); 
++	
++YAHOO.deconcept = YAHOO.deconcept || {};
++
++if(typeof YAHOO.deconcept.util == "undefined" || !YAHOO.deconcept.util)
++{
++	YAHOO.deconcept.util = {};
++}
++
++if(typeof YAHOO.deconcept.SWFObjectUtil == "undefined" || !YAHOO.deconcept.SWFObjectUtil)
++{
++	YAHOO.deconcept.SWFObjectUtil = {};
++}
++
++YAHOO.deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
++{
++	if(!document.getElementById) { return; }
++	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
++	this.skipDetect = YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);
++	this.params = {};
++	this.variables = {};
++	this.attributes = [];
++	if(swf) { this.setAttribute('swf', swf); }
++	if(id) { this.setAttribute('id', id); }
++	if(w) { this.setAttribute('width', w); }
++	if(h) { this.setAttribute('height', h); }
++	if(ver) { this.setAttribute('version', new YAHOO.deconcept.PlayerVersion(ver.toString().split("."))); }
++	this.installedVer = YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();
++	if (!window.opera && document.all && this.installedVer.major > 7)
++	{
++		// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
++		YAHOO.deconcept.SWFObject.doPrepUnload = true;
++	}
++	if(c)
++	{
++		this.addParam('bgcolor', c);
++	}
++	var q = quality ? quality : 'high';
++	this.addParam('quality', q);
++	this.setAttribute('useExpressInstall', false);
++	this.setAttribute('doExpressInstall', false);
++	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
++	this.setAttribute('xiRedirectUrl', xir);
++	this.setAttribute('redirectUrl', '');
++	if(redirectUrl)
++	{
++		this.setAttribute('redirectUrl', redirectUrl);
++	}
++};
++
++YAHOO.deconcept.SWFObject.prototype =
++{
++	useExpressInstall: function(path)
++	{
++		this.xiSWFPath = !path ? "expressinstall.swf" : path;
++		this.setAttribute('useExpressInstall', true);
++	},
++	setAttribute: function(name, value){
++		this.attributes[name] = value;
++	},
++	getAttribute: function(name){
++		return this.attributes[name];
++	},
++	addParam: function(name, value){
++		this.params[name] = value;
++	},
++	getParams: function(){
++		return this.params;
++	},
++	addVariable: function(name, value){
++		this.variables[name] = value;
++	},
++	getVariable: function(name){
++		return this.variables[name];
++	},
++	getVariables: function(){
++		return this.variables;
++	},
++	getVariablePairs: function(){
++		var variablePairs = [];
++		var key;
++		var variables = this.getVariables();
++		for(key in variables)
++		{
++			if(variables.hasOwnProperty(key))
++			{
++				variablePairs[variablePairs.length] = key +"="+ variables[key];
++			}
++		}
++		return variablePairs;
++	},
++	getSWFHTML: function() {
++		var swfNode = "";
++		var params = {};
++		var key = "";
++		var pairs = "";
++		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
++			if (this.getAttribute("doExpressInstall")) {
++				this.addVariable("MMplayerType", "PlugIn");
++				this.setAttribute('swf', this.xiSWFPath);
++			}
++			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
++			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
++			params = this.getParams();
++			for(key in params)
++			{
++				if(params.hasOwnProperty(key))
++				{
++					swfNode += [key] +'="'+ params[key] +'" ';
++				}
++			}
++			pairs = this.getVariablePairs().join("&");
++			if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
++			swfNode += '/>';
++		} else { // PC IE
++			if (this.getAttribute("doExpressInstall")) {
++				this.addVariable("MMplayerType", "ActiveX");
++				this.setAttribute('swf', this.xiSWFPath);
++			}
++			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
++			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
++			params = this.getParams();
++			for(key in params)
++			{
++				if(params.hasOwnProperty(key))
++				{
++					swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
++				}
++			}
++			pairs = this.getVariablePairs().join("&");
++			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
++			swfNode += "</object>";
++		}
++		return swfNode;
++	},
++	write: function(elementId)
++	{
++		if(this.getAttribute('useExpressInstall')) {
++			// check to see if we need to do an express install
++			var expressInstallReqVer = new YAHOO.deconcept.PlayerVersion([6,0,65]);
++			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
++				this.setAttribute('doExpressInstall', true);
++				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
++				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
++				this.addVariable("MMdoctitle", document.title);
++			}
++		}
++		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version')))
++		{
++			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
++			n.innerHTML = this.getSWFHTML();
++			return true;
++		}
++		else
++		{
++			if(this.getAttribute('redirectUrl') !== "")
++			{
++				document.location.replace(this.getAttribute('redirectUrl'));
++			}
++		}
++		return false;
++	}
++};
++
++/* ---- detection functions ---- */
++YAHOO.deconcept.SWFObjectUtil.getPlayerVersion = function()
++{
++	var axo = null;
++	var PlayerVersion = new YAHOO.deconcept.PlayerVersion([0,0,0]);
++	if(navigator.plugins && navigator.mimeTypes.length)
++	{
++		var x = navigator.plugins["Shockwave Flash"];
++		if(x && x.description)
++		{
++			PlayerVersion = new YAHOO.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
++		}
++	}
++	else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0)
++	{ // if Windows CE
++		var counter = 3;
++		while(axo)
++		{
++			try
++			{
++				counter++;
++				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
++//				document.write("player v: "+ counter);
++				PlayerVersion = new YAHOO.deconcept.PlayerVersion([counter,0,0]);
++			}
++			catch(e)
++			{
++				axo = null;
++			}
++		}
++	}
++	else
++	{ // Win IE (non mobile)
++		// do minor version lookup in IE, but avoid fp6 crashing issues
++		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
++		try
++		{
++			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
++		}
++		catch(e)
++		{
++			try
++			{
++				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
++				PlayerVersion = new YAHOO.deconcept.PlayerVersion([6,0,21]);
++				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
++			}
++			catch(e)
++			{
++				if(PlayerVersion.major == 6)
++				{
++					return PlayerVersion;
++				}
++			}
++			try
++			{
++				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
++			}
++			catch(e) {}
++		}
++		
++		if(axo !== null)
++		{
++			PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
++		}
++	}
++	return PlayerVersion;
++};
++
++YAHOO.deconcept.PlayerVersion = function(arrVersion)
++{
++	this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
++	this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
++	this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
++};
++
++YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
++{
++	if(this.major < fv.major)
++	{
++		return false;
++	}
++	if(this.major > fv.major)
++	{
++		return true;
++	}
++	if(this.minor < fv.minor)
++	{
++		return false;
++	}
++	if(this.minor > fv.minor)
++	{
++		return true;
++	}
++	if(this.rev < fv.rev)
++	{
++		return false;
++	}
++	return true;
++};
++
++/* ---- get value of query string param ---- */
++YAHOO.deconcept.util =
++{
++	getRequestParameter: function(param)
++	{
++		var q = document.location.search || document.location.hash;
++		if(param === null) { return q; }
++		if(q)
++		{
++			var pairs = q.substring(1).split("&");
++			for(var i=0; i < pairs.length; i++)
++			{
++				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param)
++				{
++					return pairs[i].substring((pairs[i].indexOf("=") + 1));
++				}
++			}
++		}
++		return "";
++	}
++};
++
++/* fix for video streaming bug */
++YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
++{
++	var objects = document.getElementsByTagName("OBJECT");
++	for(var i = objects.length - 1; i >= 0; i--)
++	{
++		objects[i].style.display = 'none';
++		for(var x in objects[i])
++		{
++			if(typeof objects[i][x] == 'function')
++			{
++				objects[i][x] = function(){};
++			}
++		}
++	}
++};
++
++// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
++if(YAHOO.deconcept.SWFObject.doPrepUnload)
++{
++	if(!YAHOO.deconcept.unloadSet)
++	{
++		YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
++		{
++			__flash_unloadHandler = function(){};
++			__flash_savedUnloadHandler = function(){};
++			window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
++		};
++		window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
++		YAHOO.deconcept.unloadSet = true;
++	}
++}
++
++/* add document.getElementById if needed (mobile IE < 5) */
++if(!document.getElementById && document.all)
++{
++	document.getElementById = function(id) { return document.all[id]; };
++}
++/**
++ * Wraps Flash embedding functionality and allows communication with SWF through
++ * attributes.
++ *
++ * @namespace YAHOO.widget
++ * @class FlashAdapter
++ * @uses YAHOO.util.AttributeProvider
++ */
++YAHOO.widget.FlashAdapter = function(swfURL, containerID, attributes, buttonSkin)
++{
++	
++	this._queue = this._queue || [];
++	this._events = this._events || {};
++	this._configs = this._configs || {};
++	attributes = attributes || {};
++	
++	//the Flash Player external interface code from Adobe doesn't play nicely
++	//with the default value, yui-gen, in IE
++	this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
++	attributes.version = attributes.version || "9.0.45";
++	attributes.backgroundColor = attributes.backgroundColor || "#ffffff";
++	
++	//we can't use the initial attributes right away
++	//so save them for once the SWF finishes loading
++	this._attributes = attributes;
++	
++	this._swfURL = swfURL;
++	this._containerID = containerID;
++	
++	//embed the SWF file in the page
++	this._embedSWF(this._swfURL, this._containerID, attributes.id, attributes.version,
++		attributes.backgroundColor, attributes.expressInstall, attributes.wmode, buttonSkin);
++	
++	/**
++	 * Fires when the SWF is initialized and communication is possible.
++	 * @event contentReady
++	 */
++	//Fix for iframe cross-domain issue with FF2x 
++	try
++	{
++		this.createEvent("contentReady");
++	}
++	catch(e){}
++};
++
++YAHOO.widget.FlashAdapter.owners = YAHOO.widget.FlashAdapter.owners || {};
++
++YAHOO.extend(YAHOO.widget.FlashAdapter, YAHOO.util.AttributeProvider,
++{
++	/**
++	 * The URL of the SWF file.
++	 * @property _swfURL
++	 * @type String
++	 * @private
++	 */
++	_swfURL: null,
++
++	/**
++	 * The ID of the containing DIV.
++	 * @property _containerID
++	 * @type String
++	 * @private
++	 */
++	_containerID: null,
++
++	/**
++	 * A reference to the embedded SWF file.
++	 * @property _swf
++	 * @private
++	 */
++	_swf: null,
++
++	/**
++	 * The id of this instance.
++	 * @property _id
++	 * @type String
++	 * @private
++	 */
++	_id: null,
++
++	/**
++	 * Indicates whether the SWF has been initialized and is ready
++	 * to communicate with JavaScript
++	 * @property _initialized
++	 * @type Boolean
++	 * @private
++	 */
++	_initialized: false,
++	
++	/**
++	 * The initializing attributes are stored here until the SWF is ready.
++	 * @property _attributes
++	 * @type Object
++	 * @private
++	 */
++	_attributes: null, //the intializing attributes
++
++	/**
++	 * Public accessor to the unique name of the FlashAdapter instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the FlashAdapter instance.
++	 */
++	toString: function()
++	{
++		return "FlashAdapter " + this._id;
++	},
++
++	/**
++	 * Nulls out the entire FlashAdapter instance and related objects and removes attached
++	 * event listeners and clears out DOM elements inside the container. After calling
++	 * this method, the instance reference should be expliclitly nulled by implementer,
++	 * as in myChart = null. Use with caution!
++	 *
++	 * @method destroy
++	 */
++	destroy: function()
++	{
++		//kill the Flash Player instance
++		if(this._swf)
++		{
++			var container = YAHOO.util.Dom.get(this._containerID);
++			container.removeChild(this._swf);
++		}
++		
++		var instanceName = this._id;
++		
++		//null out properties
++		for(var prop in this)
++		{
++			if(YAHOO.lang.hasOwnProperty(this, prop))
++			{
++				this[prop] = null;
++			}
++		}
++		
++		YAHOO.log("FlashAdapter instance destroyed: " + instanceName);
++	},
++
++	/**
++	 * Embeds the SWF in the page and associates it with this instance.
++	 *
++	 * @method _embedSWF
++	 * @private
++	 */
++	_embedSWF: function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode, buttonSkin)
++	{
++		//standard SWFObject embed
++		var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
++
++		if(expressInstall)
++		{
++			swfObj.useExpressInstall(expressInstall);
++		}
++
++		//make sure we can communicate with ExternalInterface
++		swfObj.addParam("allowScriptAccess", "always");
++		
++		if(wmode)
++		{
++			swfObj.addParam("wmode", wmode);
++		}
++		
++		swfObj.addParam("menu", "false");
++		
++		//again, a useful ExternalInterface trick
++		swfObj.addVariable("allowedDomain", document.location.hostname);
++
++		//tell the SWF which HTML element it is in
++		swfObj.addVariable("elementID", swfID);
++
++		// set the name of the function to call when the swf has an event
++		swfObj.addVariable("eventHandler", "YAHOO.widget.FlashAdapter.eventHandler");
++		if (buttonSkin) {
++		swfObj.addVariable("buttonSkin", buttonSkin);
++		}
++		var container = YAHOO.util.Dom.get(containerID);
++		var result = swfObj.write(container);
++		if(result)
++		{
++			this._swf = YAHOO.util.Dom.get(swfID);
++			YAHOO.widget.FlashAdapter.owners[swfID] = this;
++		}
++		else
++		{
++			YAHOO.log("Unable to load SWF " + swfURL);
++		}
++	},
++
++	/**
++	 * Handles or re-dispatches events received from the SWF.
++	 *
++	 * @method _eventHandler
++	 * @private
++	 */
++	_eventHandler: function(event)
++	{
++		var type = event.type;
++		switch(type)
++		{
++			case "swfReady":
++   				this._loadHandler();
++				return;
++			case "log":
++				YAHOO.log(event.message, event.category, this.toString());
++				return;
++		}
++		
++		
++		//be sure to return after your case or the event will automatically fire!
++		this.fireEvent(type, event);
++	},
++
++	/**
++	 * Called when the SWF has been initialized.
++	 *
++	 * @method _loadHandler
++	 * @private
++	 */
++	_loadHandler: function()
++	{
++		this._initialized = false;
++		this._initAttributes(this._attributes);
++		this.setAttributes(this._attributes, true);
++		
++		this._initialized = true;
++		this.fireEvent("contentReady");
++	},
++	
++	set: function(name, value)
++	{
++		//save all the attributes in case the swf reloads
++		//so that we can pass them in again
++		this._attributes[name] = value;
++		YAHOO.widget.FlashAdapter.superclass.set.call(this, name, value);
++	},
++	
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{
++		//should be overridden if other attributes need to be set up
++
++		/**
++		 * @attribute wmode
++		 * @description Sets the window mode of the Flash Player control. May be
++		 *		"window", "opaque", or "transparent". Only available in the constructor
++		 *		because it may not be set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute expressInstall
++		 * @description URL pointing to a SWF file that handles Flash Player's express
++		 *		install feature. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute version
++		 * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute backgroundColor
++		 * @description The background color of the SWF. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute altText
++		 * @description The alternative text to provide for screen readers and other assistive technology.
++		 * @type String
++		 */
++		this.getAttributeConfig("altText",
++		{
++			method: this._getAltText
++		});
++		this.setAttributeConfig("altText",
++		{
++			method: this._setAltText
++		});
++		
++		/**
++		 * @attribute swfURL
++		 * @description Absolute or relative URL to the SWF displayed by the FlashAdapter. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		this.getAttributeConfig("swfURL",
++		{
++			method: this._getSWFURL
++		});
++	},
++	
++	/**
++	 * Getter for swfURL attribute.
++	 *
++	 * @method _getSWFURL
++	 * @private
++	 */
++	_getSWFURL: function()
++	{
++		return this._swfURL;
++	},
++	
++	/**
++	 * Getter for altText attribute.
++	 *
++	 * @method _getAltText
++	 * @private
++	 */
++	_getAltText: function()
++	{
++		return this._swf.getAltText();
++	},
++
++	/**
++	 * Setter for altText attribute.
++	 *
++	 * @method _setAltText
++	 * @private
++	 */
++	_setAltText: function(value)
++	{
++		return this._swf.setAltText(value);
++	}
++});
++
++
++/**
++ * Receives event messages from SWF and passes them to the correct instance
++ * of FlashAdapter.
++ *
++ * @method YAHOO.widget.FlashAdapter.eventHandler
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.eventHandler = function(elementID, event)
++{
++
++	if(!YAHOO.widget.FlashAdapter.owners[elementID])
++	{
++		//fix for ie: if owner doesn't exist yet, try again in a moment
++		setTimeout(function() { YAHOO.widget.FlashAdapter.eventHandler( elementID, event ); }, 0);
++	}
++	else
++	{
++		YAHOO.widget.FlashAdapter.owners[elementID]._eventHandler(event);
++	}
++};
++
++/**
++ * The number of proxy functions that have been created.
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.proxyFunctionCount = 0;
++
++/**
++ * Creates a globally accessible function that wraps a function reference.
++ * Returns the proxy function's name as a string for use by the SWF through
++ * ExternalInterface.
++ *
++ * @method YAHOO.widget.FlashAdapter.createProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.createProxyFunction = function(func)
++{
++	var index = YAHOO.widget.FlashAdapter.proxyFunctionCount;
++	YAHOO.widget.FlashAdapter["proxyFunction" + index] = function()
++	{
++		return func.apply(null, arguments);
++	};
++	YAHOO.widget.FlashAdapter.proxyFunctionCount++;
++	return "YAHOO.widget.FlashAdapter.proxyFunction" + index.toString();
++};
++
++/**
++ * Removes a function created with createProxyFunction()
++ * 
++ * @method YAHOO.widget.FlashAdapter.removeProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.removeProxyFunction = function(funcName)
++{
++	//quick error check
++	if(!funcName || funcName.indexOf("YAHOO.widget.FlashAdapter.proxyFunction") < 0)
++	{
++		return;
++	}
++	
++	funcName = funcName.substr(26);
++	YAHOO.widget.FlashAdapter[funcName] = null;
++};
++/**
++ * The YUI Uploader Control
++ * @module uploader
++ * @description <p>YUI Uploader provides file upload functionality that goes beyond the basic browser-based methods. 
++ * Specifically, the YUI Uploader allows for:
++ * <ol>
++ * <li> Multiple file selection in a single "Open File" dialog.</li>
++ * <li> File extension filters to facilitate the user's selection.</li>
++ * <li> Progress tracking for file uploads.</li>
++ * <li> A range of file metadata: filename, size, date created, date modified, and author.</li>
++ * <li> A set of events dispatched on various aspects of the file upload process: file selection, upload progress, upload completion, etc.</li>
++ * <li> Inclusion of additional data in the file upload POST request.</li>
++ * <li> Faster file upload on broadband connections due to the modified SEND buffer size.</li>
++ * <li> Same-page server response upon completion of the file upload.</li>
++ * </ol>
++ * </p>
++ * @title Uploader
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event
++ */
++/**
++ * Uploader class for the YUI Uploader component.
++ *
++ * @namespace YAHOO.widget
++ * @class Uploader
++ * @uses YAHOO.widget.FlashAdapter
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param buttonSkin {String} [optional]. If defined, the uploader is 
++ * rendered as a button. This parameter must provide the URL of a button
++ * skin sprite image. Acceptable types are: jpg, gif, png and swf. The 
++ * sprite is divided evenly into four sections along its height (e.g., if
++ * the sprite is 200 px tall, it's divided into four sections 50px each).
++ * Each section is used as a skin for a specific state of the button: top
++ * section is "up", second section is "over", third section is "down", and
++ * fourth section is "disabled". 
++ * If the parameter is not supplied, the uploader is rendered transparent,
++ * and it's the developer's responsibility to create a visible UI below it.
++ * @param forceTransparent {Boolean} This parameter, if true, forces the Flash
++ * UI to be rendered with wmode set to "transparent". This behavior is useful 
++ * in conjunction with non-rectangular button skins with PNG transparency. 
++ * The parameter is false by default, and ignored if no buttonSkin is defined.
++  */
++YAHOO.widget.Uploader = function(containerId, buttonSkin, forceTransparent)
++{
++	var newWMode = "window";
++
++	if (!(buttonSkin) || (buttonSkin && forceTransparent)) {
++		newWMode = "transparent";
++	}
++
++	
++ 	YAHOO.widget.Uploader.superclass.constructor.call(this, YAHOO.widget.Uploader.SWFURL, containerId, {wmode:newWMode}, buttonSkin);
++
++	/**
++	 * Fires when the mouse is pressed over the Uploader.
++	 * Only fires when the Uploader UI is enabled and
++	 * the render type is 'transparent'.
++	 *
++	 * @event mouseDown
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("mouseDown");
++	
++	/**
++	 * Fires when the mouse is released over the Uploader.
++	 * Only fires when the Uploader UI is enabled and
++	 * the render type is 'transparent'.
++	 *
++	 * @event mouseUp
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("mouseUp");
++
++	/**
++	 * Fires when the mouse rolls over the Uploader.
++	 *
++	 * @event rollOver
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("rollOver");
++	
++	/**
++	 * Fires when the mouse rolls out of the Uploader.
++	 *
++	 * @event rollOut
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("rollOut");
++	
++	/**
++	 * Fires when the uploader is clicked.
++	 *
++	 * @event click
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("click");
++	
++	/**
++	 * Fires when the user has finished selecting files in the "Open File" dialog.
++	 *
++	 * @event fileSelect
++	 * @param event.type {String} The event type
++	 * @param event.fileList {Object} A dictionary of objects with file information
++	 * @param event.fileList[].size {Number} File size in bytes for a specific file in fileList
++	 * @param event.fileList[].cDate {Date} Creation date for a specific file in fileList
++	 * @param event.fileList[].mDate {Date} Modification date for a specific file in fileList
++	 * @param event.fileList[].name {String} File name for a specific file in fileList
++	 * @param event.fileList[].id {String} Unique file id of a specific file in fileList
++	 */
++	this.createEvent("fileSelect");
++
++	/**
++	 * Fires when an upload of a specific file has started.
++	 *
++	 * @event uploadStart
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file that's started to upload
++	 */
++	this.createEvent("uploadStart");
++
++	/**
++	 * Fires when new information about the upload progress for a specific file is available.
++	 *
++	 * @event uploadProgress
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file with which the upload progress data is associated
++	 * @param bytesLoaded {Number} The number of bytes of the file uploaded so far
++	 * @param bytesTotal {Number} The total size of the file
++	 */
++	this.createEvent("uploadProgress");
++	
++	/**
++	 * Fires when an upload for a specific file is cancelled.
++	 *
++	 * @event uploadCancel
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file with which the upload has been cancelled.
++	 */	
++	this.createEvent("uploadCancel");
++
++	/**
++	 * Fires when an upload for a specific file is complete.
++	 *
++	 * @event uploadComplete
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file for which the upload has been completed.
++	 */	
++	this.createEvent("uploadComplete");
++
++	/**
++	 * Fires when the server sends data in response to a completed upload.
++	 *
++	 * @event uploadCompleteData
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file for which the upload has been completed.
++	 * @param event.data {String} The raw data returned by the server in response to the upload.
++	 */	
++	this.createEvent("uploadCompleteData");
++	
++	/**
++	 * Fires when an upload error occurs.
++	 *
++	 * @event uploadError
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file that was being uploaded when the error has occurred.
++	 * @param event.status {String} The status message associated with the error.
++	 */	
++	this.createEvent("uploadError");
++}
++
++/**
++ * Location of the Uploader SWF
++ *
++ * @property Chart.SWFURL
++ * @private
++ * @static
++ * @final
++ * @default "assets/uploader.swf"
++ */
++YAHOO.widget.Uploader.SWFURL = "assets/uploader.swf";
++
++YAHOO.extend(YAHOO.widget.Uploader, YAHOO.widget.FlashAdapter,
++{	
++/**
++ * Starts the upload of the file specified by fileID to the location specified by uploadScriptPath.
++ *
++ * @param fileID {String} The id of the file to start uploading.
++ * @param uploadScriptPath {String} The URL of the upload location.
++ * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
++ * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
++ * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
++ * </code> 
++ */
++	upload: function(fileID, uploadScriptPath, method, vars, fieldName)
++	{
++		this._swf.upload(fileID, uploadScriptPath, method, vars, fieldName);
++	},
++	
++/**
++ * Starts the upload of the files specified by fileIDs, or adds them to a currently running queue. The upload queue is automatically managed.
++ *
++ * @param fileIDs {Array} The ids of the files to start uploading.
++ * @param uploadScriptPath {String} The URL of the upload location.
++ * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
++ * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
++ * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
++ * </code> 
++ */
++	uploadThese: function(fileIDs, uploadScriptPath, method, vars, fieldName)
++	{
++		this._swf.uploadThese(fileIDs, uploadScriptPath, method, vars, fieldName);
++	},
++	
++/**
++ * Starts uploading all files in the queue. If this function is called, the upload queue is automatically managed.
++ *
++ * @param uploadScriptPath {String} The URL of the upload location.
++ * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
++ * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
++ * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
++ * </code> 
++ */
++	uploadAll: function(uploadScriptPath, method, vars, fieldName)
++	{
++		this._swf.uploadAll(uploadScriptPath, method, vars, fieldName);
++	},
++
++/**
++ * Cancels the upload of a specified file. If no file id is specified, all ongoing uploads are cancelled.
++ *
++ * @param fileID {String} The ID of the file whose upload should be cancelled.
++ */
++	cancel: function(fileID)
++	{
++		this._swf.cancel(fileID);
++	},
++
++/**
++ * Clears the list of files queued for upload.
++ *
++ */
++	clearFileList: function()
++	{
++		this._swf.clearFileList();
++	},
++	
++/**
++ * Removes the specified file from the upload queue. 
++ *
++ * @param fileID {String} The id of the file to remove from the upload queue. 
++ */
++	removeFile: function (fileID) 
++	{
++		this._swf.removeFile(fileID);
++	},
++
++/**
++ * Turns the logging functionality on.
++ * Uses Flash internal trace logging, as well as YUI Logger, if available.
++ *
++ * @param allowLogging {Boolean} If true, logs are output; otherwise, no logs are produced.
++ */
++    setAllowLogging: function (allowLogging)
++    {
++      	this._swf.setAllowLogging(allowLogging);
++    },
++
++/**
++ * Sets the number of simultaneous uploads when using uploadAll()
++ * The minimum value is 1, and maximum value is 5. The default value is 2.
++ *
++ * @param simUploadLimit {int} Number of simultaneous uploads, between 1 and 5.
++ */
++    setSimUploadLimit : function (simUploadLimit)
++    {
++       this._swf.setSimUploadLimit(simUploadLimit);
++    },
++
++/**
++ * Sets the flag allowing users to select multiple files for the upload.
++ *
++ * @param allowMultipleFiles {Boolean} If true, multiple files can be selected. False by default.
++ */     
++    setAllowMultipleFiles : function (allowMultipleFiles) 
++    {
++       this._swf.setAllowMultipleFiles(allowMultipleFiles);
++    },
++
++/**
++ * Sets the file filters for the "Browse" dialog.
++ *
++ *  @param newFilterArray An array of sets of key-value pairs of the form
++ *  {extensions: extensionString, description: descriptionString, [optional]macType: macTypeString}
++ *  The extensions string is a semicolon-delimited list of elements of the form "*.xxx", 
++ *  e.g. "*.jpg;*.gif;*.png". 
++ */       
++    setFileFilters : function (fileFilters) 
++    {
++       this._swf.setFileFilters(fileFilters);
++    },
++
++	/**
++	 * Enables the mouse events on the Uploader.
++	 * If the uploader is being rendered as a button,
++	 * then the button's skin is set to "up"
++	 * (first section of the button skin sprite).
++	 *
++	 */
++	enable : function ()
++	{
++		this._swf.enable();
++	},
++
++	/**
++	 * Disables the mouse events on the Uploader.
++	 * If the uploader is being rendered as a button,
++	 * then the button's skin is set to "disabled"
++	 * (fourth section of the button skin sprite).
++	 *
++	 */
++	disable : function () 
++	{
++		this._swf.disable();
++	}
++});
++YAHOO.register("uploader", YAHOO.widget.Uploader, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/uploader/uploader-min.js b/pylons_app/public/js/yui/uploader/uploader-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/uploader/uploader-min.js
+@@ -0,0 +1,15 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/*
++ * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
++ *
++ * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
++ * http://www.opensource.org/licenses/mit-license.php
++ * @namespace YAHOO
++ */
++YAHOO.namespace("deconcept");YAHOO.deconcept=YAHOO.deconcept||{};if(typeof YAHOO.deconcept.util=="undefined"||!YAHOO.deconcept.util){YAHOO.deconcept.util={};}if(typeof YAHOO.deconcept.SWFObjectUtil=="undefined"||!YAHOO.deconcept.SWFObjectUtil){YAHOO.deconcept.SWFObjectUtil={};}YAHOO.deconcept.SWFObject=function(E,C,K,F,H,J,L,G,A,D){if(!document.getElementById){return;}this.DETECT_KEY=D?D:"detectflash";this.skipDetect=YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(E){this.setAttribute("swf",E);}if(C){this.setAttribute("id",C);}if(K){this.setAttribute("width",K);}if(F){this.setAttribute("height",F);}if(H){this.setAttribute("version",new YAHOO.deconcept.PlayerVersion(H.toString().split(".")));}this.installedVer=YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){YAHOO.deconcept.SWFObject.doPrepUnload=true;}if(J){this.addParam("bgcolor",J);}var B=L?L:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A);}};YAHOO.deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true);},setAttribute:function(A,B){this.attributes[A]=B;},getAttribute:function(A){return this.attributes[A];},addParam:function(A,B){this.params[A]=B;},getParams:function(){return this.params;},addVariable:function(A,B){this.variables[A]=B;},getVariable:function(A){return this.variables[A];},getVariables:function(){return this.variables;},getVariablePairs:function(){var A=[];var B;var C=this.getVariables();for(B in C){if(C.hasOwnProperty(B)){A[A.length]=B+"="+C[B];}}return A;},getSWFHTML:function(){var D="";var C={};var A="";var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';C=this.getParams();for(A in C){if(C.hasOwnProperty(A)){D+=[A]+'="'+C[A]+'" ';}}B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"';}D+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';C=this.getParams();for(A in C){if(C.hasOwnProperty(A)){D+='<param name="'+A+'" value="'+C[A]+'" />';}}B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />';}D+="</object>";}return D;},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new YAHOO.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!==""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};YAHOO.deconcept.SWFObjectUtil.getPlayerVersion=function(){var D=null;var C=new YAHOO.deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=new YAHOO.deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new YAHOO.deconcept.PlayerVersion([B,0,0]);}catch(E){D=null;}}}else{try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(E){try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new YAHOO.deconcept.PlayerVersion([6,0,21]);D.AllowScriptAccess="always";}catch(E){if(C.major==6){return C;}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(E){}}if(D!==null){C=new YAHOO.deconcept.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","));}}}return C;};YAHOO.deconcept.PlayerVersion=function(A){this.major=A[0]!==null?parseInt(A[0],0):0;this.minor=A[1]!==null?parseInt(A[1],0):0;this.rev=A[2]!==null?parseInt(A[2],0):0;};YAHOO.deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false;}if(this.major>A.major){return true;}if(this.minor<A.minor){return false;}if(this.minor>A.minor){return true;}if(this.rev<A.rev){return false;}return true;};YAHOO.deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(D===null){return C;}if(C){var B=C.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1));}}}return"";
++}};YAHOO.deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){};}}}};if(YAHOO.deconcept.SWFObject.doPrepUnload){if(!YAHOO.deconcept.unloadSet){YAHOO.deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",YAHOO.deconcept.SWFObjectUtil.prepUnload);YAHOO.deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A];};}YAHOO.widget.FlashAdapter=function(E,A,B,C){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};B=B||{};this._id=B.id=B.id||YAHOO.util.Dom.generateId(null,"yuigen");B.version=B.version||"9.0.45";B.backgroundColor=B.backgroundColor||"#ffffff";this._attributes=B;this._swfURL=E;this._containerID=A;this._embedSWF(this._swfURL,this._containerID,B.id,B.version,B.backgroundColor,B.expressInstall,B.wmode,C);try{this.createEvent("contentReady");}catch(D){}};YAHOO.widget.FlashAdapter.owners=YAHOO.widget.FlashAdapter.owners||{};YAHOO.extend(YAHOO.widget.FlashAdapter,YAHOO.util.AttributeProvider,{_swfURL:null,_containerID:null,_swf:null,_id:null,_initialized:false,_attributes:null,toString:function(){return"FlashAdapter "+this._id;},destroy:function(){if(this._swf){var B=YAHOO.util.Dom.get(this._containerID);B.removeChild(this._swf);}var A=this._id;for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}},_embedSWF:function(J,I,E,C,F,G,B,H){var D=new YAHOO.deconcept.SWFObject(J,E,"100%","100%",C,F);if(G){D.useExpressInstall(G);}D.addParam("allowScriptAccess","always");if(B){D.addParam("wmode",B);}D.addParam("menu","false");D.addVariable("allowedDomain",document.location.hostname);D.addVariable("elementID",E);D.addVariable("eventHandler","YAHOO.widget.FlashAdapter.eventHandler");if(H){D.addVariable("buttonSkin",H);}var A=YAHOO.util.Dom.get(I);var K=D.write(A);if(K){this._swf=YAHOO.util.Dom.get(E);YAHOO.widget.FlashAdapter.owners[E]=this;}else{}},_eventHandler:function(B){var A=B.type;switch(A){case"swfReady":this._loadHandler();return;case"log":return;}this.fireEvent(A,B);},_loadHandler:function(){this._initialized=false;this._initAttributes(this._attributes);this.setAttributes(this._attributes,true);this._initialized=true;this.fireEvent("contentReady");},set:function(A,B){this._attributes[A]=B;YAHOO.widget.FlashAdapter.superclass.set.call(this,A,B);},_initAttributes:function(A){this.getAttributeConfig("altText",{method:this._getAltText});this.setAttributeConfig("altText",{method:this._setAltText});this.getAttributeConfig("swfURL",{method:this._getSWFURL});},_getSWFURL:function(){return this._swfURL;},_getAltText:function(){return this._swf.getAltText();},_setAltText:function(A){return this._swf.setAltText(A);}});YAHOO.widget.FlashAdapter.eventHandler=function(A,B){if(!YAHOO.widget.FlashAdapter.owners[A]){setTimeout(function(){YAHOO.widget.FlashAdapter.eventHandler(A,B);},0);}else{YAHOO.widget.FlashAdapter.owners[A]._eventHandler(B);}};YAHOO.widget.FlashAdapter.proxyFunctionCount=0;YAHOO.widget.FlashAdapter.createProxyFunction=function(B){var A=YAHOO.widget.FlashAdapter.proxyFunctionCount;YAHOO.widget.FlashAdapter["proxyFunction"+A]=function(){return B.apply(null,arguments);};YAHOO.widget.FlashAdapter.proxyFunctionCount++;return"YAHOO.widget.FlashAdapter.proxyFunction"+A.toString();};YAHOO.widget.FlashAdapter.removeProxyFunction=function(A){if(!A||A.indexOf("YAHOO.widget.FlashAdapter.proxyFunction")<0){return;}A=A.substr(26);YAHOO.widget.FlashAdapter[A]=null;};YAHOO.widget.Uploader=function(A,B,D){var C="window";if(!(B)||(B&&D)){C="transparent";}YAHOO.widget.Uploader.superclass.constructor.call(this,YAHOO.widget.Uploader.SWFURL,A,{wmode:C},B);this.createEvent("mouseDown");this.createEvent("mouseUp");this.createEvent("rollOver");this.createEvent("rollOut");this.createEvent("click");this.createEvent("fileSelect");this.createEvent("uploadStart");this.createEvent("uploadProgress");this.createEvent("uploadCancel");this.createEvent("uploadComplete");this.createEvent("uploadCompleteData");this.createEvent("uploadError");};YAHOO.widget.Uploader.SWFURL="assets/uploader.swf";YAHOO.extend(YAHOO.widget.Uploader,YAHOO.widget.FlashAdapter,{upload:function(A,B,E,C,D){this._swf.upload(A,B,E,C,D);},uploadThese:function(B,A,E,C,D){this._swf.uploadThese(B,A,E,C,D);},uploadAll:function(A,D,B,C){this._swf.uploadAll(A,D,B,C);},cancel:function(A){this._swf.cancel(A);},clearFileList:function(){this._swf.clearFileList();},removeFile:function(A){this._swf.removeFile(A);},setAllowLogging:function(A){this._swf.setAllowLogging(A);},setSimUploadLimit:function(A){this._swf.setSimUploadLimit(A);},setAllowMultipleFiles:function(A){this._swf.setAllowMultipleFiles(A);},setFileFilters:function(A){this._swf.setFileFilters(A);},enable:function(){this._swf.enable();},disable:function(){this._swf.disable();}});YAHOO.register("uploader",YAHOO.widget.Uploader,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/uploader/uploader.js b/pylons_app/public/js/yui/uploader/uploader.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/uploader/uploader.js
+@@ -0,0 +1,1069 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/*extern ActiveXObject, __flash_unloadHandler, __flash_savedUnloadHandler */
++/*!
++ * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
++ *
++ * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
++ * http://www.opensource.org/licenses/mit-license.php
++ * @namespace YAHOO
++ */
++
++YAHOO.namespace("deconcept"); 
++	
++YAHOO.deconcept = YAHOO.deconcept || {};
++
++if(typeof YAHOO.deconcept.util == "undefined" || !YAHOO.deconcept.util)
++{
++	YAHOO.deconcept.util = {};
++}
++
++if(typeof YAHOO.deconcept.SWFObjectUtil == "undefined" || !YAHOO.deconcept.SWFObjectUtil)
++{
++	YAHOO.deconcept.SWFObjectUtil = {};
++}
++
++YAHOO.deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey)
++{
++	if(!document.getElementById) { return; }
++	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
++	this.skipDetect = YAHOO.deconcept.util.getRequestParameter(this.DETECT_KEY);
++	this.params = {};
++	this.variables = {};
++	this.attributes = [];
++	if(swf) { this.setAttribute('swf', swf); }
++	if(id) { this.setAttribute('id', id); }
++	if(w) { this.setAttribute('width', w); }
++	if(h) { this.setAttribute('height', h); }
++	if(ver) { this.setAttribute('version', new YAHOO.deconcept.PlayerVersion(ver.toString().split("."))); }
++	this.installedVer = YAHOO.deconcept.SWFObjectUtil.getPlayerVersion();
++	if (!window.opera && document.all && this.installedVer.major > 7)
++	{
++		// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
++		YAHOO.deconcept.SWFObject.doPrepUnload = true;
++	}
++	if(c)
++	{
++		this.addParam('bgcolor', c);
++	}
++	var q = quality ? quality : 'high';
++	this.addParam('quality', q);
++	this.setAttribute('useExpressInstall', false);
++	this.setAttribute('doExpressInstall', false);
++	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
++	this.setAttribute('xiRedirectUrl', xir);
++	this.setAttribute('redirectUrl', '');
++	if(redirectUrl)
++	{
++		this.setAttribute('redirectUrl', redirectUrl);
++	}
++};
++
++YAHOO.deconcept.SWFObject.prototype =
++{
++	useExpressInstall: function(path)
++	{
++		this.xiSWFPath = !path ? "expressinstall.swf" : path;
++		this.setAttribute('useExpressInstall', true);
++	},
++	setAttribute: function(name, value){
++		this.attributes[name] = value;
++	},
++	getAttribute: function(name){
++		return this.attributes[name];
++	},
++	addParam: function(name, value){
++		this.params[name] = value;
++	},
++	getParams: function(){
++		return this.params;
++	},
++	addVariable: function(name, value){
++		this.variables[name] = value;
++	},
++	getVariable: function(name){
++		return this.variables[name];
++	},
++	getVariables: function(){
++		return this.variables;
++	},
++	getVariablePairs: function(){
++		var variablePairs = [];
++		var key;
++		var variables = this.getVariables();
++		for(key in variables)
++		{
++			if(variables.hasOwnProperty(key))
++			{
++				variablePairs[variablePairs.length] = key +"="+ variables[key];
++			}
++		}
++		return variablePairs;
++	},
++	getSWFHTML: function() {
++		var swfNode = "";
++		var params = {};
++		var key = "";
++		var pairs = "";
++		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
++			if (this.getAttribute("doExpressInstall")) {
++				this.addVariable("MMplayerType", "PlugIn");
++				this.setAttribute('swf', this.xiSWFPath);
++			}
++			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
++			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
++			params = this.getParams();
++			for(key in params)
++			{
++				if(params.hasOwnProperty(key))
++				{
++					swfNode += [key] +'="'+ params[key] +'" ';
++				}
++			}
++			pairs = this.getVariablePairs().join("&");
++			if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
++			swfNode += '/>';
++		} else { // PC IE
++			if (this.getAttribute("doExpressInstall")) {
++				this.addVariable("MMplayerType", "ActiveX");
++				this.setAttribute('swf', this.xiSWFPath);
++			}
++			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
++			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
++			params = this.getParams();
++			for(key in params)
++			{
++				if(params.hasOwnProperty(key))
++				{
++					swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
++				}
++			}
++			pairs = this.getVariablePairs().join("&");
++			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
++			swfNode += "</object>";
++		}
++		return swfNode;
++	},
++	write: function(elementId)
++	{
++		if(this.getAttribute('useExpressInstall')) {
++			// check to see if we need to do an express install
++			var expressInstallReqVer = new YAHOO.deconcept.PlayerVersion([6,0,65]);
++			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
++				this.setAttribute('doExpressInstall', true);
++				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
++				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
++				this.addVariable("MMdoctitle", document.title);
++			}
++		}
++		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version')))
++		{
++			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
++			n.innerHTML = this.getSWFHTML();
++			return true;
++		}
++		else
++		{
++			if(this.getAttribute('redirectUrl') !== "")
++			{
++				document.location.replace(this.getAttribute('redirectUrl'));
++			}
++		}
++		return false;
++	}
++};
++
++/* ---- detection functions ---- */
++YAHOO.deconcept.SWFObjectUtil.getPlayerVersion = function()
++{
++	var axo = null;
++	var PlayerVersion = new YAHOO.deconcept.PlayerVersion([0,0,0]);
++	if(navigator.plugins && navigator.mimeTypes.length)
++	{
++		var x = navigator.plugins["Shockwave Flash"];
++		if(x && x.description)
++		{
++			PlayerVersion = new YAHOO.deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
++		}
++	}
++	else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0)
++	{ // if Windows CE
++		var counter = 3;
++		while(axo)
++		{
++			try
++			{
++				counter++;
++				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
++//				document.write("player v: "+ counter);
++				PlayerVersion = new YAHOO.deconcept.PlayerVersion([counter,0,0]);
++			}
++			catch(e)
++			{
++				axo = null;
++			}
++		}
++	}
++	else
++	{ // Win IE (non mobile)
++		// do minor version lookup in IE, but avoid fp6 crashing issues
++		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
++		try
++		{
++			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
++		}
++		catch(e)
++		{
++			try
++			{
++				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
++				PlayerVersion = new YAHOO.deconcept.PlayerVersion([6,0,21]);
++				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
++			}
++			catch(e)
++			{
++				if(PlayerVersion.major == 6)
++				{
++					return PlayerVersion;
++				}
++			}
++			try
++			{
++				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
++			}
++			catch(e) {}
++		}
++		
++		if(axo !== null)
++		{
++			PlayerVersion = new YAHOO.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
++		}
++	}
++	return PlayerVersion;
++};
++
++YAHOO.deconcept.PlayerVersion = function(arrVersion)
++{
++	this.major = arrVersion[0] !== null ? parseInt(arrVersion[0], 0) : 0;
++	this.minor = arrVersion[1] !== null ? parseInt(arrVersion[1], 0) : 0;
++	this.rev = arrVersion[2] !== null ? parseInt(arrVersion[2], 0) : 0;
++};
++
++YAHOO.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
++{
++	if(this.major < fv.major)
++	{
++		return false;
++	}
++	if(this.major > fv.major)
++	{
++		return true;
++	}
++	if(this.minor < fv.minor)
++	{
++		return false;
++	}
++	if(this.minor > fv.minor)
++	{
++		return true;
++	}
++	if(this.rev < fv.rev)
++	{
++		return false;
++	}
++	return true;
++};
++
++/* ---- get value of query string param ---- */
++YAHOO.deconcept.util =
++{
++	getRequestParameter: function(param)
++	{
++		var q = document.location.search || document.location.hash;
++		if(param === null) { return q; }
++		if(q)
++		{
++			var pairs = q.substring(1).split("&");
++			for(var i=0; i < pairs.length; i++)
++			{
++				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param)
++				{
++					return pairs[i].substring((pairs[i].indexOf("=") + 1));
++				}
++			}
++		}
++		return "";
++	}
++};
++
++/* fix for video streaming bug */
++YAHOO.deconcept.SWFObjectUtil.cleanupSWFs = function()
++{
++	var objects = document.getElementsByTagName("OBJECT");
++	for(var i = objects.length - 1; i >= 0; i--)
++	{
++		objects[i].style.display = 'none';
++		for(var x in objects[i])
++		{
++			if(typeof objects[i][x] == 'function')
++			{
++				objects[i][x] = function(){};
++			}
++		}
++	}
++};
++
++// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
++if(YAHOO.deconcept.SWFObject.doPrepUnload)
++{
++	if(!YAHOO.deconcept.unloadSet)
++	{
++		YAHOO.deconcept.SWFObjectUtil.prepUnload = function()
++		{
++			__flash_unloadHandler = function(){};
++			__flash_savedUnloadHandler = function(){};
++			window.attachEvent("onunload", YAHOO.deconcept.SWFObjectUtil.cleanupSWFs);
++		};
++		window.attachEvent("onbeforeunload", YAHOO.deconcept.SWFObjectUtil.prepUnload);
++		YAHOO.deconcept.unloadSet = true;
++	}
++}
++
++/* add document.getElementById if needed (mobile IE < 5) */
++if(!document.getElementById && document.all)
++{
++	document.getElementById = function(id) { return document.all[id]; };
++}
++/**
++ * Wraps Flash embedding functionality and allows communication with SWF through
++ * attributes.
++ *
++ * @namespace YAHOO.widget
++ * @class FlashAdapter
++ * @uses YAHOO.util.AttributeProvider
++ */
++YAHOO.widget.FlashAdapter = function(swfURL, containerID, attributes, buttonSkin)
++{
++	
++	this._queue = this._queue || [];
++	this._events = this._events || {};
++	this._configs = this._configs || {};
++	attributes = attributes || {};
++	
++	//the Flash Player external interface code from Adobe doesn't play nicely
++	//with the default value, yui-gen, in IE
++	this._id = attributes.id = attributes.id || YAHOO.util.Dom.generateId(null, "yuigen");
++	attributes.version = attributes.version || "9.0.45";
++	attributes.backgroundColor = attributes.backgroundColor || "#ffffff";
++	
++	//we can't use the initial attributes right away
++	//so save them for once the SWF finishes loading
++	this._attributes = attributes;
++	
++	this._swfURL = swfURL;
++	this._containerID = containerID;
++	
++	//embed the SWF file in the page
++	this._embedSWF(this._swfURL, this._containerID, attributes.id, attributes.version,
++		attributes.backgroundColor, attributes.expressInstall, attributes.wmode, buttonSkin);
++	
++	/**
++	 * Fires when the SWF is initialized and communication is possible.
++	 * @event contentReady
++	 */
++	//Fix for iframe cross-domain issue with FF2x 
++	try
++	{
++		this.createEvent("contentReady");
++	}
++	catch(e){}
++};
++
++YAHOO.widget.FlashAdapter.owners = YAHOO.widget.FlashAdapter.owners || {};
++
++YAHOO.extend(YAHOO.widget.FlashAdapter, YAHOO.util.AttributeProvider,
++{
++	/**
++	 * The URL of the SWF file.
++	 * @property _swfURL
++	 * @type String
++	 * @private
++	 */
++	_swfURL: null,
++
++	/**
++	 * The ID of the containing DIV.
++	 * @property _containerID
++	 * @type String
++	 * @private
++	 */
++	_containerID: null,
++
++	/**
++	 * A reference to the embedded SWF file.
++	 * @property _swf
++	 * @private
++	 */
++	_swf: null,
++
++	/**
++	 * The id of this instance.
++	 * @property _id
++	 * @type String
++	 * @private
++	 */
++	_id: null,
++
++	/**
++	 * Indicates whether the SWF has been initialized and is ready
++	 * to communicate with JavaScript
++	 * @property _initialized
++	 * @type Boolean
++	 * @private
++	 */
++	_initialized: false,
++	
++	/**
++	 * The initializing attributes are stored here until the SWF is ready.
++	 * @property _attributes
++	 * @type Object
++	 * @private
++	 */
++	_attributes: null, //the intializing attributes
++
++	/**
++	 * Public accessor to the unique name of the FlashAdapter instance.
++	 *
++	 * @method toString
++	 * @return {String} Unique name of the FlashAdapter instance.
++	 */
++	toString: function()
++	{
++		return "FlashAdapter " + this._id;
++	},
++
++	/**
++	 * Nulls out the entire FlashAdapter instance and related objects and removes attached
++	 * event listeners and clears out DOM elements inside the container. After calling
++	 * this method, the instance reference should be expliclitly nulled by implementer,
++	 * as in myChart = null. Use with caution!
++	 *
++	 * @method destroy
++	 */
++	destroy: function()
++	{
++		//kill the Flash Player instance
++		if(this._swf)
++		{
++			var container = YAHOO.util.Dom.get(this._containerID);
++			container.removeChild(this._swf);
++		}
++		
++		var instanceName = this._id;
++		
++		//null out properties
++		for(var prop in this)
++		{
++			if(YAHOO.lang.hasOwnProperty(this, prop))
++			{
++				this[prop] = null;
++			}
++		}
++		
++	},
++
++	/**
++	 * Embeds the SWF in the page and associates it with this instance.
++	 *
++	 * @method _embedSWF
++	 * @private
++	 */
++	_embedSWF: function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode, buttonSkin)
++	{
++		//standard SWFObject embed
++		var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
++
++		if(expressInstall)
++		{
++			swfObj.useExpressInstall(expressInstall);
++		}
++
++		//make sure we can communicate with ExternalInterface
++		swfObj.addParam("allowScriptAccess", "always");
++		
++		if(wmode)
++		{
++			swfObj.addParam("wmode", wmode);
++		}
++		
++		swfObj.addParam("menu", "false");
++		
++		//again, a useful ExternalInterface trick
++		swfObj.addVariable("allowedDomain", document.location.hostname);
++
++		//tell the SWF which HTML element it is in
++		swfObj.addVariable("elementID", swfID);
++
++		// set the name of the function to call when the swf has an event
++		swfObj.addVariable("eventHandler", "YAHOO.widget.FlashAdapter.eventHandler");
++		if (buttonSkin) {
++		swfObj.addVariable("buttonSkin", buttonSkin);
++		}
++		var container = YAHOO.util.Dom.get(containerID);
++		var result = swfObj.write(container);
++		if(result)
++		{
++			this._swf = YAHOO.util.Dom.get(swfID);
++			YAHOO.widget.FlashAdapter.owners[swfID] = this;
++		}
++		else
++		{
++		}
++	},
++
++	/**
++	 * Handles or re-dispatches events received from the SWF.
++	 *
++	 * @method _eventHandler
++	 * @private
++	 */
++	_eventHandler: function(event)
++	{
++		var type = event.type;
++		switch(type)
++		{
++			case "swfReady":
++   				this._loadHandler();
++				return;
++			case "log":
++				return;
++		}
++		
++		
++		//be sure to return after your case or the event will automatically fire!
++		this.fireEvent(type, event);
++	},
++
++	/**
++	 * Called when the SWF has been initialized.
++	 *
++	 * @method _loadHandler
++	 * @private
++	 */
++	_loadHandler: function()
++	{
++		this._initialized = false;
++		this._initAttributes(this._attributes);
++		this.setAttributes(this._attributes, true);
++		
++		this._initialized = true;
++		this.fireEvent("contentReady");
++	},
++	
++	set: function(name, value)
++	{
++		//save all the attributes in case the swf reloads
++		//so that we can pass them in again
++		this._attributes[name] = value;
++		YAHOO.widget.FlashAdapter.superclass.set.call(this, name, value);
++	},
++	
++	/**
++	 * Initializes the attributes.
++	 *
++	 * @method _initAttributes
++	 * @private
++	 */
++	_initAttributes: function(attributes)
++	{
++		//should be overridden if other attributes need to be set up
++
++		/**
++		 * @attribute wmode
++		 * @description Sets the window mode of the Flash Player control. May be
++		 *		"window", "opaque", or "transparent". Only available in the constructor
++		 *		because it may not be set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute expressInstall
++		 * @description URL pointing to a SWF file that handles Flash Player's express
++		 *		install feature. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute version
++		 * @description Minimum required version for the SWF file. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++
++		/**
++		 * @attribute backgroundColor
++		 * @description The background color of the SWF. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		 
++		/**
++		 * @attribute altText
++		 * @description The alternative text to provide for screen readers and other assistive technology.
++		 * @type String
++		 */
++		this.getAttributeConfig("altText",
++		{
++			method: this._getAltText
++		});
++		this.setAttributeConfig("altText",
++		{
++			method: this._setAltText
++		});
++		
++		/**
++		 * @attribute swfURL
++		 * @description Absolute or relative URL to the SWF displayed by the FlashAdapter. Only available in the constructor because it may not be
++		 *		set after Flash Player has been embedded in the page.
++		 * @type String
++		 */
++		this.getAttributeConfig("swfURL",
++		{
++			method: this._getSWFURL
++		});
++	},
++	
++	/**
++	 * Getter for swfURL attribute.
++	 *
++	 * @method _getSWFURL
++	 * @private
++	 */
++	_getSWFURL: function()
++	{
++		return this._swfURL;
++	},
++	
++	/**
++	 * Getter for altText attribute.
++	 *
++	 * @method _getAltText
++	 * @private
++	 */
++	_getAltText: function()
++	{
++		return this._swf.getAltText();
++	},
++
++	/**
++	 * Setter for altText attribute.
++	 *
++	 * @method _setAltText
++	 * @private
++	 */
++	_setAltText: function(value)
++	{
++		return this._swf.setAltText(value);
++	}
++});
++
++
++/**
++ * Receives event messages from SWF and passes them to the correct instance
++ * of FlashAdapter.
++ *
++ * @method YAHOO.widget.FlashAdapter.eventHandler
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.eventHandler = function(elementID, event)
++{
++
++	if(!YAHOO.widget.FlashAdapter.owners[elementID])
++	{
++		//fix for ie: if owner doesn't exist yet, try again in a moment
++		setTimeout(function() { YAHOO.widget.FlashAdapter.eventHandler( elementID, event ); }, 0);
++	}
++	else
++	{
++		YAHOO.widget.FlashAdapter.owners[elementID]._eventHandler(event);
++	}
++};
++
++/**
++ * The number of proxy functions that have been created.
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.proxyFunctionCount = 0;
++
++/**
++ * Creates a globally accessible function that wraps a function reference.
++ * Returns the proxy function's name as a string for use by the SWF through
++ * ExternalInterface.
++ *
++ * @method YAHOO.widget.FlashAdapter.createProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.createProxyFunction = function(func)
++{
++	var index = YAHOO.widget.FlashAdapter.proxyFunctionCount;
++	YAHOO.widget.FlashAdapter["proxyFunction" + index] = function()
++	{
++		return func.apply(null, arguments);
++	};
++	YAHOO.widget.FlashAdapter.proxyFunctionCount++;
++	return "YAHOO.widget.FlashAdapter.proxyFunction" + index.toString();
++};
++
++/**
++ * Removes a function created with createProxyFunction()
++ * 
++ * @method YAHOO.widget.FlashAdapter.removeProxyFunction
++ * @static
++ * @private
++ */
++YAHOO.widget.FlashAdapter.removeProxyFunction = function(funcName)
++{
++	//quick error check
++	if(!funcName || funcName.indexOf("YAHOO.widget.FlashAdapter.proxyFunction") < 0)
++	{
++		return;
++	}
++	
++	funcName = funcName.substr(26);
++	YAHOO.widget.FlashAdapter[funcName] = null;
++};
++/**
++ * The YUI Uploader Control
++ * @module uploader
++ * @description <p>YUI Uploader provides file upload functionality that goes beyond the basic browser-based methods. 
++ * Specifically, the YUI Uploader allows for:
++ * <ol>
++ * <li> Multiple file selection in a single "Open File" dialog.</li>
++ * <li> File extension filters to facilitate the user's selection.</li>
++ * <li> Progress tracking for file uploads.</li>
++ * <li> A range of file metadata: filename, size, date created, date modified, and author.</li>
++ * <li> A set of events dispatched on various aspects of the file upload process: file selection, upload progress, upload completion, etc.</li>
++ * <li> Inclusion of additional data in the file upload POST request.</li>
++ * <li> Faster file upload on broadband connections due to the modified SEND buffer size.</li>
++ * <li> Same-page server response upon completion of the file upload.</li>
++ * </ol>
++ * </p>
++ * @title Uploader
++ * @namespace YAHOO.widget
++ * @requires yahoo, dom, element, event
++ */
++/**
++ * Uploader class for the YUI Uploader component.
++ *
++ * @namespace YAHOO.widget
++ * @class Uploader
++ * @uses YAHOO.widget.FlashAdapter
++ * @constructor
++ * @param containerId {HTMLElement} Container element for the Flash Player instance.
++ * @param buttonSkin {String} [optional]. If defined, the uploader is 
++ * rendered as a button. This parameter must provide the URL of a button
++ * skin sprite image. Acceptable types are: jpg, gif, png and swf. The 
++ * sprite is divided evenly into four sections along its height (e.g., if
++ * the sprite is 200 px tall, it's divided into four sections 50px each).
++ * Each section is used as a skin for a specific state of the button: top
++ * section is "up", second section is "over", third section is "down", and
++ * fourth section is "disabled". 
++ * If the parameter is not supplied, the uploader is rendered transparent,
++ * and it's the developer's responsibility to create a visible UI below it.
++ * @param forceTransparent {Boolean} This parameter, if true, forces the Flash
++ * UI to be rendered with wmode set to "transparent". This behavior is useful 
++ * in conjunction with non-rectangular button skins with PNG transparency. 
++ * The parameter is false by default, and ignored if no buttonSkin is defined.
++  */
++YAHOO.widget.Uploader = function(containerId, buttonSkin, forceTransparent)
++{
++	var newWMode = "window";
++
++	if (!(buttonSkin) || (buttonSkin && forceTransparent)) {
++		newWMode = "transparent";
++	}
++
++	
++ 	YAHOO.widget.Uploader.superclass.constructor.call(this, YAHOO.widget.Uploader.SWFURL, containerId, {wmode:newWMode}, buttonSkin);
++
++	/**
++	 * Fires when the mouse is pressed over the Uploader.
++	 * Only fires when the Uploader UI is enabled and
++	 * the render type is 'transparent'.
++	 *
++	 * @event mouseDown
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("mouseDown");
++	
++	/**
++	 * Fires when the mouse is released over the Uploader.
++	 * Only fires when the Uploader UI is enabled and
++	 * the render type is 'transparent'.
++	 *
++	 * @event mouseUp
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("mouseUp");
++
++	/**
++	 * Fires when the mouse rolls over the Uploader.
++	 *
++	 * @event rollOver
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("rollOver");
++	
++	/**
++	 * Fires when the mouse rolls out of the Uploader.
++	 *
++	 * @event rollOut
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("rollOut");
++	
++	/**
++	 * Fires when the uploader is clicked.
++	 *
++	 * @event click
++	 * @param event.type {String} The event type
++	 */
++	this.createEvent("click");
++	
++	/**
++	 * Fires when the user has finished selecting files in the "Open File" dialog.
++	 *
++	 * @event fileSelect
++	 * @param event.type {String} The event type
++	 * @param event.fileList {Object} A dictionary of objects with file information
++	 * @param event.fileList[].size {Number} File size in bytes for a specific file in fileList
++	 * @param event.fileList[].cDate {Date} Creation date for a specific file in fileList
++	 * @param event.fileList[].mDate {Date} Modification date for a specific file in fileList
++	 * @param event.fileList[].name {String} File name for a specific file in fileList
++	 * @param event.fileList[].id {String} Unique file id of a specific file in fileList
++	 */
++	this.createEvent("fileSelect");
++
++	/**
++	 * Fires when an upload of a specific file has started.
++	 *
++	 * @event uploadStart
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file that's started to upload
++	 */
++	this.createEvent("uploadStart");
++
++	/**
++	 * Fires when new information about the upload progress for a specific file is available.
++	 *
++	 * @event uploadProgress
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file with which the upload progress data is associated
++	 * @param bytesLoaded {Number} The number of bytes of the file uploaded so far
++	 * @param bytesTotal {Number} The total size of the file
++	 */
++	this.createEvent("uploadProgress");
++	
++	/**
++	 * Fires when an upload for a specific file is cancelled.
++	 *
++	 * @event uploadCancel
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file with which the upload has been cancelled.
++	 */	
++	this.createEvent("uploadCancel");
++
++	/**
++	 * Fires when an upload for a specific file is complete.
++	 *
++	 * @event uploadComplete
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file for which the upload has been completed.
++	 */	
++	this.createEvent("uploadComplete");
++
++	/**
++	 * Fires when the server sends data in response to a completed upload.
++	 *
++	 * @event uploadCompleteData
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file for which the upload has been completed.
++	 * @param event.data {String} The raw data returned by the server in response to the upload.
++	 */	
++	this.createEvent("uploadCompleteData");
++	
++	/**
++	 * Fires when an upload error occurs.
++	 *
++	 * @event uploadError
++	 * @param event.type {String} The event type
++	 * @param event.id {String} The id of the file that was being uploaded when the error has occurred.
++	 * @param event.status {String} The status message associated with the error.
++	 */	
++	this.createEvent("uploadError");
++}
++
++/**
++ * Location of the Uploader SWF
++ *
++ * @property Chart.SWFURL
++ * @private
++ * @static
++ * @final
++ * @default "assets/uploader.swf"
++ */
++YAHOO.widget.Uploader.SWFURL = "assets/uploader.swf";
++
++YAHOO.extend(YAHOO.widget.Uploader, YAHOO.widget.FlashAdapter,
++{	
++/**
++ * Starts the upload of the file specified by fileID to the location specified by uploadScriptPath.
++ *
++ * @param fileID {String} The id of the file to start uploading.
++ * @param uploadScriptPath {String} The URL of the upload location.
++ * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
++ * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
++ * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
++ * </code> 
++ */
++	upload: function(fileID, uploadScriptPath, method, vars, fieldName)
++	{
++		this._swf.upload(fileID, uploadScriptPath, method, vars, fieldName);
++	},
++	
++/**
++ * Starts the upload of the files specified by fileIDs, or adds them to a currently running queue. The upload queue is automatically managed.
++ *
++ * @param fileIDs {Array} The ids of the files to start uploading.
++ * @param uploadScriptPath {String} The URL of the upload location.
++ * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
++ * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
++ * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
++ * </code> 
++ */
++	uploadThese: function(fileIDs, uploadScriptPath, method, vars, fieldName)
++	{
++		this._swf.uploadThese(fileIDs, uploadScriptPath, method, vars, fieldName);
++	},
++	
++/**
++ * Starts uploading all files in the queue. If this function is called, the upload queue is automatically managed.
++ *
++ * @param uploadScriptPath {String} The URL of the upload location.
++ * @param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GET" by default.
++ * @param vars {Object} The object containing variables to be sent in the same request as the file upload.
++ * @param fieldName {String} The name of the variable in the POST request containing the file data. "Filedata" by default.
++ * </code> 
++ */
++	uploadAll: function(uploadScriptPath, method, vars, fieldName)
++	{
++		this._swf.uploadAll(uploadScriptPath, method, vars, fieldName);
++	},
++
++/**
++ * Cancels the upload of a specified file. If no file id is specified, all ongoing uploads are cancelled.
++ *
++ * @param fileID {String} The ID of the file whose upload should be cancelled.
++ */
++	cancel: function(fileID)
++	{
++		this._swf.cancel(fileID);
++	},
++
++/**
++ * Clears the list of files queued for upload.
++ *
++ */
++	clearFileList: function()
++	{
++		this._swf.clearFileList();
++	},
++	
++/**
++ * Removes the specified file from the upload queue. 
++ *
++ * @param fileID {String} The id of the file to remove from the upload queue. 
++ */
++	removeFile: function (fileID) 
++	{
++		this._swf.removeFile(fileID);
++	},
++
++/**
++ * Turns the logging functionality on.
++ * Uses Flash internal trace logging, as well as YUI Logger, if available.
++ *
++ * @param allowLogging {Boolean} If true, logs are output; otherwise, no logs are produced.
++ */
++    setAllowLogging: function (allowLogging)
++    {
++      	this._swf.setAllowLogging(allowLogging);
++    },
++
++/**
++ * Sets the number of simultaneous uploads when using uploadAll()
++ * The minimum value is 1, and maximum value is 5. The default value is 2.
++ *
++ * @param simUploadLimit {int} Number of simultaneous uploads, between 1 and 5.
++ */
++    setSimUploadLimit : function (simUploadLimit)
++    {
++       this._swf.setSimUploadLimit(simUploadLimit);
++    },
++
++/**
++ * Sets the flag allowing users to select multiple files for the upload.
++ *
++ * @param allowMultipleFiles {Boolean} If true, multiple files can be selected. False by default.
++ */     
++    setAllowMultipleFiles : function (allowMultipleFiles) 
++    {
++       this._swf.setAllowMultipleFiles(allowMultipleFiles);
++    },
++
++/**
++ * Sets the file filters for the "Browse" dialog.
++ *
++ *  @param newFilterArray An array of sets of key-value pairs of the form
++ *  {extensions: extensionString, description: descriptionString, [optional]macType: macTypeString}
++ *  The extensions string is a semicolon-delimited list of elements of the form "*.xxx", 
++ *  e.g. "*.jpg;*.gif;*.png". 
++ */       
++    setFileFilters : function (fileFilters) 
++    {
++       this._swf.setFileFilters(fileFilters);
++    },
++
++	/**
++	 * Enables the mouse events on the Uploader.
++	 * If the uploader is being rendered as a button,
++	 * then the button's skin is set to "up"
++	 * (first section of the button skin sprite).
++	 *
++	 */
++	enable : function ()
++	{
++		this._swf.enable();
++	},
++
++	/**
++	 * Disables the mouse events on the Uploader.
++	 * If the uploader is being rendered as a button,
++	 * then the button's skin is set to "disabled"
++	 * (fourth section of the button skin sprite).
++	 *
++	 */
++	disable : function () 
++	{
++		this._swf.disable();
++	}
++});
++YAHOO.register("uploader", YAHOO.widget.Uploader, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/utilities/utilities.js b/pylons_app/public/js/yui/utilities/utilities.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/utilities/utilities.js
+@@ -0,0 +1,39 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
++YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"2.8.0r4/build/","base":"http://yui.yahooapis.com/2.8.0r4/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemeth"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
++i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}m.requires.push(smod);}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});
++}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};this.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js");},scope:this},"js");return;}this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort();}return;}if(m.type!=="js"){this._loadCount++;continue;}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data});}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data});}else{this._onFailure.call(this.varName+" reference failure");}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data});},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data);};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str;},_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.0r4",build:"2449"});
++(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},DOT_ATTRIBUTES:{},get:function(z){var AB,x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.attributes:null;if(z&&G&&G.id&&G.id.value===AB){return z;}else{if(z&&K.all){z=null;x=K.all[AB];for(y=0,Y=x.length;y<Y;++y){if(x[y].id===AB){return x[y];}}}}return z;}if(YAHOO.util.Element&&z instanceof YAHOO.util.Element){z=z.get("element");}if("length" in z){AA=[];for(y=0,Y=z.length;y<Y;++y){AA[AA.length]=E.Dom.get(z[y]);}return AA;}return z;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC===c)){G=S(AF[v],q);x=S(AF[v],R);if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom._getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom._getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom._getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;
++y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e]&&y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){E.Dom.batch(Y,E.Dom._setAttribute,{attr:G,val:x});},_setAttribute:function(x,Y){var G=E.Dom._toCamel(Y.attr),y=Y.val;if(x&&x.setAttribute){if(E.Dom.DOT_ATTRIBUTES[G]){x[G]=y;}else{G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;x.setAttribute(G,y);}}else{}},getAttribute:function(Y,G){return E.Dom.batch(Y,E.Dom._getAttribute,G);},_getAttribute:function(Y,G){var x;G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;if(Y&&Y.getAttribute){x=Y.getAttribute(G,2);}else{}return x;},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}if(m.ie&&m.ie>=8&&K.documentElement.hasAttribute){E.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;
++this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2449"});YAHOO.util.CustomEvent=function(D,C,B,A,E){this.type=D;this.scope=C||window;this.silent=B;this.fireOnce=E;this.fired=false;this.firedWith=null;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var F="_YUICEOnSubscribe";if(D!==F){this.subscribeEvent=new YAHOO.util.CustomEvent(F,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,D){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,D);}var A=new YAHOO.util.Subscriber(B,C,D);if(this.fireOnce&&this.fired){this.notify(A,this.firedWith);}else{this.subscribers.push(A);}},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var H=[],A=this.subscribers.length;var D=[].slice.call(arguments,0),C=true,F,B=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=D;}}this.fired=true;if(!A&&this.silent){return true;}if(!this.silent){}var E=this.subscribers.slice();for(F=0;F<A;++F){var G=E[F];if(!G){B=true;}else{C=this.notify(G,D);if(false===C){if(!this.silent){}break;}}}return(C!==false);},notify:function(F,C){var B,H=null,E=F.getScope(this.scope),A=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(C.length>0){H=C[0];}try{B=F.fn.call(E,H,F.obj);}catch(G){this.lastError=G;if(A){throw G;}}}else{try{B=F.fn.call(E,this.type,C,F.obj);}catch(D){this.lastError=D;if(A){throw D;}}}return B;},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var G=false,H=[],J=[],A=0,E=[],B=0,C={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=YAHOO.env.ua.ie,F="focusin",I="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:D,_interval:null,_dri:null,_specialTypes:{focusin:(D?"focusin":"focus"),focusout:(D?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(Q,M,O,P,N){var K=(YAHOO.lang.isString(Q))?[Q]:Q;for(var L=0;L<K.length;L=L+1){E.push({id:K[L],fn:M,obj:O,overrideContext:P,checkReady:N});}A=this.POLL_RETRYS;this.startInterval();},onContentReady:function(N,K,L,M){this.onAvailable(N,K,L,M,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(M,K,V,P,T,Y){if(!V||!V.call){return false;}if(this._isValidCollection(M)){var W=true;for(var Q=0,S=M.length;Q<S;++Q){W=this.on(M[Q],K,V,P,T)&&W;}return W;}else{if(YAHOO.lang.isString(M)){var O=this.getEl(M);if(O){M=O;}else{this.onAvailable(M,function(){YAHOO.util.Event._addListener(M,K,V,P,T,Y);});return true;}}}if(!M){return false;}if("unload"==K&&P!==this){J[J.length]=[M,K,V,P,T];return true;}var L=M;if(T){if(T===true){L=P;}else{L=T;}}var N=function(Z){return V.call(L,YAHOO.util.Event.getEvent(Z,M),P);};var X=[M,K,V,N,L,P,T,Y];var R=H.length;H[R]=X;try{this._simpleAdd(M,K,N,Y);}catch(U){this.lastError=U;this.removeListener(M,K,V);return false;}return true;},_getType:function(K){return this._specialTypes[K]||K;},addListener:function(M,P,L,N,O){var K=((P==F||P==I)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(M,this._getType(P),L,N,O,K);},addFocusListener:function(L,K,M,N){return this.on(L,F,K,M,N);},removeFocusListener:function(L,K){return this.removeListener(L,F,K);},addBlurListener:function(L,K,M,N){return this.on(L,I,K,M,N);},removeBlurListener:function(L,K){return this.removeListener(L,I,K);},removeListener:function(L,K,R){var M,P,U;K=this._getType(K);if(typeof L=="string"){L=this.getEl(L);}else{if(this._isValidCollection(L)){var S=true;for(M=L.length-1;M>-1;M--){S=(this.removeListener(L[M],K,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(L,false,K);}if("unload"==K){for(M=J.length-1;M>-1;M--){U=J[M];if(U&&U[0]==L&&U[1]==K&&U[2]==R){J.splice(M,1);return true;}}return false;}var N=null;var O=arguments[3];if("undefined"===typeof O){O=this._getCacheIndex(H,L,K,R);}if(O>=0){N=H[O];}if(!L||!N){return false;}var T=N[this.CAPTURE]===true?true:false;try{this._simpleRemove(L,K,N[this.WFN],T);}catch(Q){this.lastError=Q;return false;}delete H[O][this.WFN];delete H[O][this.FN];H.splice(O,1);return true;},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode;}}catch(K){}return L;},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft();}}return K;},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop();}}return L;},getXY:function(K){return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement;
++}else{if(L.type=="mouseover"){K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L;}catch(K){this.lastError=K;return L;}}return M.time;},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation();}else{K.cancelBubble=true;}},preventDefault:function(K){if(K.preventDefault){K.preventDefault();}else{K.returnValue=false;}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break;}N=N.caller;}}return L;},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in C)){K=C[K];}return K;},_getCacheIndex:function(M,P,Q,O){for(var N=0,L=M.length;N<L;N=N+1){var K=M[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==Q){return N;}}return -1;},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+B;++B;K.id=L;}return L;},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined");}catch(K){return false;}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(L){if(!G){G=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready);}},_tryPreloadAttach:function(){if(E.length===0){A=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var Q=!G;if(!Q){Q=(A>0&&E.length>0);}var P=[];var R=function(T,U){var S=T;if(U.overrideContext){if(U.overrideContext===true){S=U.obj;}else{S=U.overrideContext;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=E.length;L<K;L=L+1){O=E[L];if(O){N=this.getEl(O.id);if(N){if(O.checkReady){if(G||N.nextSibling||!Q){M.push(O);E[L]=null;}}else{R(N,O);E[L]=null;}}else{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1){O=M[L];R(this.getEl(O.id),O);}A--;if(Q){for(L=E.length-1;L>-1;L--){O=E[L];if(!O||!O.id){E.splice(L,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K){var P=[],L;if(!K){L=[H,J];}else{if(K==="unload"){L=[J];}else{K=this._getType(K);L=[H];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(R){var L=YAHOO.util.Event,O,N,M,Q,P,S=J.slice(),K;for(O=0,Q=J.length;O<Q;++O){M=S[O];if(M){K=window;if(M[L.ADJ_SCOPE]){if(M[L.ADJ_SCOPE]===true){K=M[L.UNLOAD_OBJ];}else{K=M[L.ADJ_SCOPE];}}M[L.FN].call(K,L.getEvent(R,M[L.EL]),M[L.UNLOAD_OBJ]);S[O]=null;}}M=null;K=null;J=null;if(H){for(N=H.length-1;N>-1;N--){M=H[N];if(M){L.removeListener(M[L.EL],M[L.TYPE],M[L.FN],N);}}M=null;}L._simpleRemove(window,"unload",L._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
++/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
++if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);
++},createEvent:function(B,G){this.__yui_events=this.__yui_events||{};var E=G||{},D=this.__yui_events,F;if(D[B]){}else{F=new YAHOO.util.CustomEvent(B,E.scope||this,E.silent,YAHOO.util.CustomEvent.FLAT,E.fireOnce);D[B]=F;if(E.onSubscribeCallback){F.subscribeEvent.subscribe(E.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var A=this.__yui_subscribers[B];if(A){for(var C=0;C<A.length;++C){F.subscribe(A[C].fn,A[C].obj,A[C].overrideContext);}}}return D[B];},fireEvent:function(B){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[B];if(!D){return null;}var A=[];for(var C=1;C<arguments.length;++C){A.push(arguments[C]);}return D.fire.apply(D,A);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(A){this._msxml_progid.unshift(A);},setDefaultPostHeader:function(A){if(typeof A=="string"){this._default_post_header=A;}else{if(typeof A=="boolean"){this._use_default_post_header=A;}}},setDefaultXhrHeader:function(A){if(typeof A=="string"){this._default_xhr_header=A;}else{this._use_default_xhr_header=A;}},setPollingInterval:function(A){if(typeof A=="number"&&isFinite(A)){this._polling_interval=A;}},createXhrObject:function(F){var D,A,B;try{A=new XMLHttpRequest();D={conn:A,tId:F,xhr:true};}catch(C){for(B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:F,xhr:true};break;}catch(E){}}}finally{return D;}},getConnectionObject:function(A){var C,D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={tId:D};if(A==="xdr"){C.conn=this._transport;C.xdr=true;}else{if(A==="upload"){C.upload=true;}}}if(C){this._transaction_id++;}}catch(B){}return C;},asyncRequest:function(G,D,F,A){var E,C,B=(F&&F.argument)?F.argument:null;if(this._isFileUpload){C="upload";}else{if(F.xdr){C="xdr";}}E=this.getConnectionObject(C);if(!E){return null;}else{if(F&&F.customevents){this.initCustomEvents(E,F);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(E,F,D,A);return E;}if(G.toUpperCase()=="GET"){if(this._sFormData.length!==0){D+=((D.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(G.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(G.toUpperCase()=="GET"&&(F&&F.cache===false)){D+=((D.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((G.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(E.xdr){this.xdr(E,G,D,F,A);return E;}E.conn.open(G,D,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(E);}this.handleReadyState(E,F);E.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(E,B);if(E.startEvent){E.startEvent.fire(E,B);}return E;}},initCustomEvents:function(A,C){var B;for(B in C.customevents){if(this._customEvents[B][0]){A[this._customEvents[B][0]]=new YAHOO.util.CustomEvent(this._customEvents[B][1],(C.scope)?C.scope:null);A[this._customEvents[B][0]].subscribe(C.customevents[B]);}}},handleReadyState:function(C,D){var B=this,A=(D&&D.argument)?D.argument:null;if(D&&D.timeout){this._timeOut[C.tId]=window.setTimeout(function(){B.abort(C,D,true);},D.timeout);}this._poll[C.tId]=window.setInterval(function(){if(C.conn&&C.conn.readyState===4){window.clearInterval(B._poll[C.tId]);delete B._poll[C.tId];if(D&&D.timeout){window.clearTimeout(B._timeOut[C.tId]);delete B._timeOut[C.tId];}B.completeEvent.fire(C,A);if(C.completeEvent){C.completeEvent.fire(C,A);}B.handleTransactionResponse(C,D);}},this._polling_interval);},handleTransactionResponse:function(B,I,D){var E,A,G=(I&&I.argument)?I.argument:null,C=(B.r&&B.r.statusText==="xdr:success")?true:false,H=(B.r&&B.r.statusText==="xdr:failure")?true:false,J=D;try{if((B.conn.status!==undefined&&B.conn.status!==0)||C){E=B.conn.status;}else{if(H&&!J){E=0;}else{E=13030;}}}catch(F){E=13030;}if((E>=200&&E<300)||E===1223||C){A=B.xdr?B.r:this.createResponseObject(B,G);if(I&&I.success){if(!I.scope){I.success(A);}else{I.success.apply(I.scope,[A]);}}this.successEvent.fire(A);if(B.successEvent){B.successEvent.fire(A);}}else{switch(E){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:A=this.createExceptionObject(B.tId,G,(D?D:false));if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}break;default:A=(B.xdr)?B.response:this.createResponseObject(B,G);if(I&&I.failure){if(!I.scope){I.failure(A);}else{I.failure.apply(I.scope,[A]);}}}this.failureEvent.fire(A);if(B.failureEvent){B.failureEvent.fire(A);}}this.releaseObject(B);A=null;},createResponseObject:function(A,G){var D={},I={},E,C,F,B;try{C=A.conn.getAllResponseHeaders();F=C.split("\n");for(E=0;E<F.length;E++){B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=YAHOO.lang.trim(F[E].substring(B+2));}}}catch(H){}D.tId=A.tId;D.status=(A.conn.status==1223)?204:A.conn.status;D.statusText=(A.conn.status==1223)?"No Content":A.conn.statusText;D.getResponseHeader=I;D.getAllResponseHeaders=C;D.responseText=A.conn.responseText;D.responseXML=A.conn.responseXML;if(G){D.argument=G;}return D;},createExceptionObject:function(H,D,A){var F=0,G="communication failure",C=-1,B="transaction aborted",E={};E.tId=H;if(A){E.status=C;E.statusText=B;}else{E.status=F;E.statusText=G;}if(D){E.argument=D;}return E;},initHeader:function(A,D,C){var B=(C)?this._default_headers:this._http_headers;B[A]=D;if(C){this._has_default_headers=true;}else{this._has_http_headers=true;}},setHeader:function(A){var B;if(this._has_default_headers){for(B in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,B)){A.conn.setRequestHeader(B,this._default_headers[B]);}}}if(this._has_http_headers){for(B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);
++}}this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false;},abort:function(E,G,A){var D,B=(G&&G.argument)?G.argument:null;E=E||{};if(E.conn){if(E.xhr){if(this.isCallInProgress(E)){E.conn.abort();window.clearInterval(this._poll[E.tId]);delete this._poll[E.tId];if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{if(E.xdr){E.conn.abort(E.tId);D=true;}}}else{if(E.upload){var C="yuiIO"+E.tId;var F=document.getElementById(C);if(F){YAHOO.util.Event.removeListener(F,"load");document.body.removeChild(F);if(A){window.clearTimeout(this._timeOut[E.tId]);delete this._timeOut[E.tId];}D=true;}}else{D=false;}}if(D===true){this.abortEvent.fire(E,B);if(E.abortEvent){E.abortEvent.fire(E,B);}this.handleTransactionResponse(E,G,true);}return D;},isCallInProgress:function(A){A=A||{};if(A.xhr&&A.conn){return A.conn.readyState!==4&&A.conn.readyState!==0;}else{if(A.xdr&&A.conn){return A.conn.isCallInProgress(A.tId);}else{if(A.upload===true){return document.getElementById("yuiIO"+A.tId)?true:false;}else{return false;}}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};(function(){var G=YAHOO.util.Connect,H={};function D(I){var J='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+I+'" width="0" height="0">'+'<param name="movie" value="'+I+'">'+'<param name="allowScriptAccess" value="always">'+"</object>",K=document.createElement("div");document.body.appendChild(K);K.innerHTML=J;}function B(L,I,J,M,K){H[parseInt(L.tId)]={"o":L,"c":M};if(K){M.method=I;M.data=K;}L.conn.send(J,M,L.tId);}function E(I){D(I);G._transport=document.getElementById("YUIConnectionSwf");}function C(){G.xdrReadyEvent.fire();}function A(J,I){if(J){G.startEvent.fire(J,I.argument);if(J.startEvent){J.startEvent.fire(J,I.argument);}}}function F(J){var K=H[J.tId].o,I=H[J.tId].c;if(J.statusText==="xdr:start"){A(K,I);return;}J.responseText=decodeURI(J.responseText);K.r=J;if(I.argument){K.r.argument=I.argument;}this.handleTransactionResponse(K,I,J.statusText==="xdr:abort"?true:false);delete H[J.tId];}G.xdr=B;G.swf=D;G.transport=E;G.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");G.xdrReady=C;G.handleXdrResponse=F;})();(function(){var D=YAHOO.util.Connect,F=YAHOO.util.Event;D._isFormSubmit=false;D._isFileUpload=false;D._formNode=null;D._sFormData=null;D._submitElementValue=null;D.uploadEvent=new YAHOO.util.CustomEvent("upload"),D._hasSubmitListener=function(){if(F){F.addListener(document,"click",function(J){var I=F.getTarget(J),H=I.nodeName.toLowerCase();if((H==="input"||H==="button")&&(I.type&&I.type.toLowerCase()=="submit")){D._submitElementValue=encodeURIComponent(I.name)+"="+encodeURIComponent(I.value);}});return true;}return false;}();function G(T,O,J){var S,I,R,P,W,Q=false,M=[],V=0,L,N,K,U,H;this.resetFormState();if(typeof T=="string"){S=(document.getElementById(T)||document.forms[T]);}else{if(typeof T=="object"){S=T;}else{return;}}if(O){this.createFrame(J?J:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=S;return;}for(L=0,N=S.elements.length;L<N;++L){I=S.elements[L];W=I.disabled;R=I.name;if(!W&&R){R=encodeURIComponent(R)+"=";P=encodeURIComponent(I.value);switch(I.type){case"select-one":if(I.selectedIndex>-1){H=I.options[I.selectedIndex];M[V++]=R+encodeURIComponent((H.attributes.value&&H.attributes.value.specified)?H.value:H.text);}break;case"select-multiple":if(I.selectedIndex>-1){for(K=I.selectedIndex,U=I.options.length;K<U;++K){H=I.options[K];if(H.selected){M[V++]=R+encodeURIComponent((H.attributes.value&&H.attributes.value.specified)?H.value:H.text);}}}break;case"radio":case"checkbox":if(I.checked){M[V++]=R+P;}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(Q===false){if(this._hasSubmitListener&&this._submitElementValue){M[V++]=this._submitElementValue;}Q=true;}break;default:M[V++]=R+P;}}}this._isFormSubmit=true;this._sFormData=M.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData;}function C(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";}function B(H){var I="yuiIO"+this._transaction_id,J;if(YAHOO.env.ua.ie){J=document.createElement('<iframe id="'+I+'" name="'+I+'" />');if(typeof H=="boolean"){J.src="javascript:false";}}else{J=document.createElement("iframe");J.id=I;J.name=I;}J.style.position="absolute";J.style.top="-1000px";J.style.left="-1000px";document.body.appendChild(J);}function E(H){var K=[],I=H.split("&"),J,L;for(J=0;J<I.length;J++){L=I[J].indexOf("=");if(L!=-1){K[J]=document.createElement("input");K[J].type="hidden";K[J].name=decodeURIComponent(I[J].substring(0,L));K[J].value=decodeURIComponent(I[J].substring(L+1));this._formNode.appendChild(K[J]);}}return K;}function A(K,V,L,J){var Q="yuiIO"+K.tId,R="multipart/form-data",T=document.getElementById(Q),M=(document.documentMode&&document.documentMode===8)?true:false,W=this,S=(V&&V.argument)?V.argument:null,U,P,I,O,H,N;H={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",L);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",Q);if(YAHOO.env.ua.ie&&!M){this._formNode.setAttribute("encoding",R);}else{this._formNode.setAttribute("enctype",R);}if(J){U=this.appendPostData(J);}this._formNode.submit();this.startEvent.fire(K,S);if(K.startEvent){K.startEvent.fire(K,S);}if(V&&V.timeout){this._timeOut[K.tId]=window.setTimeout(function(){W.abort(K,V,true);},V.timeout);}if(U&&U.length>0){for(P=0;P<U.length;P++){this._formNode.removeChild(U[P]);}}for(I in H){if(YAHOO.lang.hasOwnProperty(H,I)){if(H[I]){this._formNode.setAttribute(I,H[I]);}else{this._formNode.removeAttribute(I);}}}this.resetFormState();N=function(){if(V&&V.timeout){window.clearTimeout(W._timeOut[K.tId]);delete W._timeOut[K.tId];}W.completeEvent.fire(K,S);if(K.completeEvent){K.completeEvent.fire(K,S);
++}O={tId:K.tId,argument:V.argument};try{O.responseText=T.contentWindow.document.body?T.contentWindow.document.body.innerHTML:T.contentWindow.document.documentElement.textContent;O.responseXML=T.contentWindow.document.XMLDocument?T.contentWindow.document.XMLDocument:T.contentWindow.document;}catch(X){}if(V&&V.upload){if(!V.scope){V.upload(O);}else{V.upload.apply(V.scope,[O]);}}W.uploadEvent.fire(O);if(K.uploadEvent){K.uploadEvent.fire(O);}F.removeListener(T,"load",N);setTimeout(function(){document.body.removeChild(T);W.releaseObject(K);},100);};F.addListener(T,"load",N);}D.setForm=G;D.resetFormState=C;D.createFrame=B;D.appendPostData=E;D.uploadFile=A;})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.8.0r4",build:"2449"});(function(){var B=YAHOO.util;var A=function(D,C,E,F){if(!D){}this.init(D,C,E,F);};A.NAME="Anim";A.prototype={toString:function(){var C=this.getEl()||{};var D=C.id||C.tagName;return(this.constructor.NAME+": "+D);},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(C,E,D){return this.method(this.currentFrame,E,D-E,this.totalFrames);},setAttribute:function(C,F,E){var D=this.getEl();if(this.patterns.noNegatives.test(C)){F=(F>0)?F:0;}if(C in D&&!("style" in D&&C in D.style)){D[C]=F;}else{B.Dom.setStyle(D,C,F+E);}},getAttribute:function(C){var E=this.getEl();var G=B.Dom.getStyle(E,C);if(G!=="auto"&&!this.patterns.offsetUnit.test(G)){return parseFloat(G);}var D=this.patterns.offsetAttribute.exec(C)||[];var H=!!(D[3]);var F=!!(D[2]);if("style" in E){if(F||(B.Dom.getStyle(E,"position")=="absolute"&&H)){G=E["offset"+D[0].charAt(0).toUpperCase()+D[0].substr(1)];}else{G=0;}}else{if(C in E){G=E[C];}}return G;},getDefaultUnit:function(C){if(this.patterns.defaultUnit.test(C)){return"px";}return"";},setRuntimeAttribute:function(D){var I;var E;var F=this.attributes;this.runtimeAttributes[D]={};var H=function(J){return(typeof J!=="undefined");};if(!H(F[D]["to"])&&!H(F[D]["by"])){return false;}I=(H(F[D]["from"]))?F[D]["from"]:this.getAttribute(D);if(H(F[D]["to"])){E=F[D]["to"];}else{if(H(F[D]["by"])){if(I.constructor==Array){E=[];for(var G=0,C=I.length;G<C;++G){E[G]=I[G]+F[D]["by"][G]*1;}}else{E=I+F[D]["by"]*1;}}}this.runtimeAttributes[D].start=I;this.runtimeAttributes[D].end=E;this.runtimeAttributes[D].unit=(H(F[D].unit))?F[D]["unit"]:this.getDefaultUnit(D);return true;},init:function(E,J,I,C){var D=false;var F=null;var H=0;E=B.Dom.get(E);this.attributes=J||{};this.duration=!YAHOO.lang.isUndefined(I)?I:1;this.method=C||B.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=B.AnimMgr.fps;this.setEl=function(M){E=B.Dom.get(M);};this.getEl=function(){return E;};this.isAnimated=function(){return D;};this.getStartTime=function(){return F;};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false;}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(B.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1;}B.AnimMgr.registerElement(this);return true;};this.stop=function(M){if(!this.isAnimated()){return false;}if(M){this.currentFrame=this.totalFrames;this._onTween.fire();}B.AnimMgr.stop(this);};var L=function(){this.onStart.fire();this.runtimeAttributes={};for(var M in this.attributes){this.setRuntimeAttribute(M);}D=true;H=0;F=new Date();};var K=function(){var O={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};O.toString=function(){return("duration: "+O.duration+", currentFrame: "+O.currentFrame);};this.onTween.fire(O);var N=this.runtimeAttributes;for(var M in N){this.setAttribute(M,this.doMethod(M,N[M].start,N[M].end),N[M].unit);}H+=1;};var G=function(){var M=(new Date()-F)/1000;var N={duration:M,frames:H,fps:H/M};N.toString=function(){return("duration: "+N.duration+", frames: "+N.frames+", fps: "+N.fps);};D=false;H=0;this.onComplete.fire(N);};this._onStart=new B.CustomEvent("_start",this,true);this.onStart=new B.CustomEvent("start",this);this.onTween=new B.CustomEvent("tween",this);this._onTween=new B.CustomEvent("_tween",this,true);this.onComplete=new B.CustomEvent("complete",this);this._onComplete=new B.CustomEvent("_complete",this,true);this._onStart.subscribe(L);this._onTween.subscribe(K);this._onComplete.subscribe(G);}};B.Anim=A;})();YAHOO.util.AnimMgr=new function(){var C=null;var B=[];var A=0;this.fps=1000;this.delay=1;this.registerElement=function(F){B[B.length]=F;A+=1;F._onStart.fire();this.start();};this.unRegister=function(G,F){F=F||E(G);if(!G.isAnimated()||F===-1){return false;}G._onComplete.fire();B.splice(F,1);A-=1;if(A<=0){this.stop();}return true;};this.start=function(){if(C===null){C=setInterval(this.run,this.delay);}};this.stop=function(H){if(!H){clearInterval(C);for(var G=0,F=B.length;G<F;++G){this.unRegister(B[0],0);}B=[];C=null;A=0;}else{this.unRegister(H);}};this.run=function(){for(var H=0,F=B.length;H<F;++H){var G=B[H];if(!G||!G.isAnimated()){continue;}if(G.currentFrame<G.totalFrames||G.totalFrames===null){G.currentFrame+=1;if(G.useSeconds){D(G);}G._onTween.fire();}else{YAHOO.util.AnimMgr.stop(G,H);}}};var E=function(H){for(var G=0,F=B.length;G<F;++G){if(B[G]===H){return G;}}return -1;};var D=function(G){var J=G.totalFrames;var I=G.currentFrame;var H=(G.currentFrame*G.duration*1000/G.totalFrames);var F=(new Date()-G.getStartTime());var K=0;if(F<G.duration*1000){K=Math.round((F/H-1)*G.currentFrame);}else{K=J-(I+1);}if(K>0&&isFinite(K)){if(G.currentFrame+K>=J){K=J-(I+1);}G.currentFrame+=K;}};this._queue=B;this._getIndex=E;};YAHOO.util.Bezier=new function(){this.getPosition=function(E,D){var F=E.length;var C=[];for(var B=0;B<F;++B){C[B]=[E[B][0],E[B][1]];}for(var A=1;A<F;++A){for(B=0;B<F-A;++B){C[B][0]=(1-D)*C[B][0]+D*C[parseInt(B+1,10)][0];C[B][1]=(1-D)*C[B][1]+D*C[parseInt(B+1,10)][1];}}return[C[0][0],C[0][1]];};};(function(){var A=function(F,E,G,H){A.superclass.constructor.call(this,F,E,G,H);};A.NAME="ColorAnim";A.DEFAULT_BGCOLOR="#fff";var C=YAHOO.util;YAHOO.extend(A,C.Anim);var D=A.superclass;var B=A.prototype;B.patterns.color=/color$/i;B.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;B.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;B.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;B.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;B.parseColor=function(E){if(E.length==3){return E;}var F=this.patterns.hex.exec(E);if(F&&F.length==4){return[parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16)];}F=this.patterns.rgb.exec(E);if(F&&F.length==4){return[parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10)];}F=this.patterns.hex3.exec(E);if(F&&F.length==4){return[parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16)];
++}return null;};B.getAttribute=function(E){var G=this.getEl();if(this.patterns.color.test(E)){var I=YAHOO.util.Dom.getStyle(G,E);var H=this;if(this.patterns.transparent.test(I)){var F=YAHOO.util.Dom.getAncestorBy(G,function(J){return !H.patterns.transparent.test(I);});if(F){I=C.Dom.getStyle(F,E);}else{I=A.DEFAULT_BGCOLOR;}}}else{I=D.getAttribute.call(this,E);}return I;};B.doMethod=function(F,J,G){var I;if(this.patterns.color.test(F)){I=[];for(var H=0,E=J.length;H<E;++H){I[H]=D.doMethod.call(this,F,J[H],G[H]);}I="rgb("+Math.floor(I[0])+","+Math.floor(I[1])+","+Math.floor(I[2])+")";}else{I=D.doMethod.call(this,F,J,G);}return I;};B.setRuntimeAttribute=function(F){D.setRuntimeAttribute.call(this,F);if(this.patterns.color.test(F)){var H=this.attributes;var J=this.parseColor(this.runtimeAttributes[F].start);var G=this.parseColor(this.runtimeAttributes[F].end);if(typeof H[F]["to"]==="undefined"&&typeof H[F]["by"]!=="undefined"){G=this.parseColor(H[F].by);for(var I=0,E=J.length;I<E;++I){G[I]=J[I]+G[I];}}this.runtimeAttributes[F].start=J;this.runtimeAttributes[F].end=G;}};C.ColorAnim=A;})();
++/*
++TERMS OF USE - EASING EQUATIONS
++Open source under the BSD License.
++Copyright 2001 Robert Penner All rights reserved.
++
++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
++
++ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
++ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
++ * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
++
++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++*/
++YAHOO.util.Easing={easeNone:function(B,A,D,C){return D*B/C+A;},easeIn:function(B,A,D,C){return D*(B/=C)*B+A;},easeOut:function(B,A,D,C){return -D*(B/=C)*(B-2)+A;},easeBoth:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A;}return -D/2*((--B)*(B-2)-1)+A;},easeInStrong:function(B,A,D,C){return D*(B/=C)*B*B*B+A;},easeOutStrong:function(B,A,D,C){return -D*((B=B/C-1)*B*B*B-1)+A;},easeBothStrong:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B+A;}return -D/2*((B-=2)*B*B*B-2)+A;},elasticIn:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;},elasticOut:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F)==1){return A+G;}if(!E){E=F*0.3;}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}return B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A;},elasticBoth:function(C,A,G,F,B,E){if(C==0){return A;}if((C/=F/2)==2){return A+G;}if(!E){E=F*(0.3*1.5);}if(!B||B<Math.abs(G)){B=G;var D=E/4;}else{var D=E/(2*Math.PI)*Math.asin(G/B);}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A;}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A;},backIn:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*(B/=D)*B*((C+1)*B-C)+A;},backOut:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}return E*((B=B/D-1)*B*((C+1)*B+C)+1)+A;},backBoth:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158;}if((B/=D/2)<1){return E/2*(B*B*(((C*=(1.525))+1)*B-C))+A;}return E/2*((B-=2)*B*(((C*=(1.525))+1)*B+C)+2)+A;},bounceIn:function(B,A,D,C){return D-YAHOO.util.Easing.bounceOut(C-B,0,D,C)+A;},bounceOut:function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A;}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A;}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A;}}}return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A;},bounceBoth:function(B,A,D,C){if(B<C/2){return YAHOO.util.Easing.bounceIn(B*2,0,D,C)*0.5+A;}return YAHOO.util.Easing.bounceOut(B*2-C,0,D,C)*0.5+D*0.5+A;}};(function(){var A=function(H,G,I,J){if(H){A.superclass.constructor.call(this,H,G,I,J);}};A.NAME="Motion";var E=YAHOO.util;YAHOO.extend(A,E.ColorAnim);var F=A.superclass;var C=A.prototype;C.patterns.points=/^points$/i;C.setAttribute=function(G,I,H){if(this.patterns.points.test(G)){H=H||"px";F.setAttribute.call(this,"left",I[0],H);F.setAttribute.call(this,"top",I[1],H);}else{F.setAttribute.call(this,G,I,H);}};C.getAttribute=function(G){if(this.patterns.points.test(G)){var H=[F.getAttribute.call(this,"left"),F.getAttribute.call(this,"top")];}else{H=F.getAttribute.call(this,G);}return H;};C.doMethod=function(G,K,H){var J=null;if(this.patterns.points.test(G)){var I=this.method(this.currentFrame,0,100,this.totalFrames)/100;J=E.Bezier.getPosition(this.runtimeAttributes[G],I);}else{J=F.doMethod.call(this,G,K,H);}return J;};C.setRuntimeAttribute=function(P){if(this.patterns.points.test(P)){var H=this.getEl();var J=this.attributes;var G;var L=J["points"]["control"]||[];var I;var M,O;if(L.length>0&&!(L[0] instanceof Array)){L=[L];}else{var K=[];for(M=0,O=L.length;M<O;++M){K[M]=L[M];}L=K;}if(E.Dom.getStyle(H,"position")=="static"){E.Dom.setStyle(H,"position","relative");}if(D(J["points"]["from"])){E.Dom.setXY(H,J["points"]["from"]);
++}else{E.Dom.setXY(H,E.Dom.getXY(H));}G=this.getAttribute("points");if(D(J["points"]["to"])){I=B.call(this,J["points"]["to"],G);var N=E.Dom.getXY(this.getEl());for(M=0,O=L.length;M<O;++M){L[M]=B.call(this,L[M],G);}}else{if(D(J["points"]["by"])){I=[G[0]+J["points"]["by"][0],G[1]+J["points"]["by"][1]];for(M=0,O=L.length;M<O;++M){L[M]=[G[0]+L[M][0],G[1]+L[M][1]];}}}this.runtimeAttributes[P]=[G];if(L.length>0){this.runtimeAttributes[P]=this.runtimeAttributes[P].concat(L);}this.runtimeAttributes[P][this.runtimeAttributes[P].length]=I;}else{F.setRuntimeAttribute.call(this,P);}};var B=function(G,I){var H=E.Dom.getXY(this.getEl());G=[G[0]-H[0]+I[0],G[1]-H[1]+I[1]];return G;};var D=function(G){return(typeof G!=="undefined");};E.Motion=A;})();(function(){var D=function(F,E,G,H){if(F){D.superclass.constructor.call(this,F,E,G,H);}};D.NAME="Scroll";var B=YAHOO.util;YAHOO.extend(D,B.ColorAnim);var C=D.superclass;var A=D.prototype;A.doMethod=function(E,H,F){var G=null;if(E=="scroll"){G=[this.method(this.currentFrame,H[0],F[0]-H[0],this.totalFrames),this.method(this.currentFrame,H[1],F[1]-H[1],this.totalFrames)];}else{G=C.doMethod.call(this,E,H,F);}return G;};A.getAttribute=function(E){var G=null;var F=this.getEl();if(E=="scroll"){G=[F.scrollLeft,F.scrollTop];}else{G=C.getAttribute.call(this,E);}return G;};A.setAttribute=function(E,H,G){var F=this.getEl();if(E=="scroll"){F.scrollLeft=H[0];F.scrollTop=H[1];}else{C.setAttribute.call(this,E,H,G);}};B.Scroll=D;})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.8.0r4",build:"2449"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var A=YAHOO.util.Event,B=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var C=document.createElement("div");C.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(C,document.body.firstChild);}else{document.body.appendChild(C);}C.style.display="none";C.style.backgroundColor="red";C.style.position="absolute";C.style.zIndex="99999";B.setStyle(C,"opacity","0");this._shim=C;A.on(C,"mouseup",this.handleMouseUp,this,true);A.on(C,"mousemove",this.handleMouseMove,this,true);A.on(window,"scroll",this._sizeShim,this,true);},_sizeShim:function(){if(this._shimActive){var C=this._shim;C.style.height=B.getDocumentHeight()+"px";C.style.width=B.getDocumentWidth()+"px";C.style.top="0";C.style.left="0";}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim();}this._shimActive=true;var C=this._shim,D="0";if(this._debugShim){D=".5";}B.setStyle(C,"opacity",D);this._sizeShim();C.style.display="block";}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false;},_shim:null,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(E,D){for(var F in this.ids){for(var C in this.ids[F]){var G=this.ids[F][C];if(!this.isTypeOfDD(G)){continue;}G[E].apply(G,D);}}},_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(C){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(D,C){if(!this.initialized){this.init();}if(!this.ids[C]){this.ids[C]={};}this.ids[C][D.id]=D;},removeDDFromGroup:function(E,C){if(!this.ids[C]){this.ids[C]={};}var D=this.ids[C];if(D&&D[E.id]){delete D[E.id];}},_remove:function(E){for(var D in E.groups){if(D){var C=this.ids[D];if(C&&C[E.id]){delete C[E.id];}}}delete this.handleIds[E.id];},regHandle:function(D,C){if(!this.handleIds[D]){this.handleIds[D]={};}this.handleIds[D][C]=C;},isDragDrop:function(C){return(this.getDDById(C))?true:false;},getRelated:function(H,D){var G=[];for(var F in H.groups){for(var E in this.ids[F]){var C=this.ids[F][E];if(!this.isTypeOfDD(C)){continue;}if(!D||C.isTarget){G[G.length]=C;}}}return G;},isLegalTarget:function(G,F){var D=this.getRelated(G,true);for(var E=0,C=D.length;E<C;++E){if(D[E].id==F.id){return true;}}return false;},isTypeOfDD:function(C){return(C&&C.__ygDragDrop);},isHandle:function(D,C){return(this.handleIds[D]&&this.handleIds[D][C]);},getDDById:function(D){for(var C in this.ids){if(this.ids[C][D]){return this.ids[C][D];}}return null;},handleMouseDown:function(E,D){this.currentTarget=YAHOO.util.Event.getTarget(E);this.dragCurrent=D;var C=D.getEl();this.startX=YAHOO.util.Event.getPageX(E);this.startY=YAHOO.util.Event.getPageY(E);this.deltaX=this.startX-C.offsetLeft;this.deltaY=this.startY-C.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var F=YAHOO.util.DDM;F.startDrag(F.startX,F.startY);F.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(C,E){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true;}this._activateShim();clearTimeout(this.clickTimeout);var D=this.dragCurrent;if(D&&D.events.b4StartDrag){D.b4StartDrag(C,E);D.fireEvent("b4StartDragEvent",{x:C,y:E});}if(D&&D.events.startDrag){D.startDrag(C,E);D.fireEvent("startDragEvent",{x:C,y:E});}this.dragThreshMet=true;},handleMouseUp:function(C){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(C);}this.fromTimeout=false;this.fireEvents(C,true);}else{}this.stopDrag(C);this.stopEvent(C);}},stopEvent:function(C){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(C);}if(this.preventDefault){YAHOO.util.Event.preventDefault(C);}},stopDrag:function(E,D){var C=this.dragCurrent;if(C&&!D){if(this.dragThreshMet){if(C.events.b4EndDrag){C.b4EndDrag(E);C.fireEvent("b4EndDragEvent",{e:E});}if(C.events.endDrag){C.endDrag(E);C.fireEvent("endDragEvent",{e:E});}}if(C.events.mouseUp){C.onMouseUp(E);C.fireEvent("mouseUpEvent",{e:E});}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false;}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(F){var C=this.dragCurrent;if(C){if(YAHOO.util.Event.isIE&&!F.button){this.stopEvent(F);return this.handleMouseUp(F);}else{if(F.clientX<0||F.clientY<0){}}if(!this.dragThreshMet){var E=Math.abs(this.startX-YAHOO.util.Event.getPageX(F));var D=Math.abs(this.startY-YAHOO.util.Event.getPageY(F));if(E>this.clickPixelThresh||D>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(C&&C.events.b4Drag){C.b4Drag(F);C.fireEvent("b4DragEvent",{e:F});}if(C&&C.events.drag){C.onDrag(F);C.fireEvent("dragEvent",{e:F});}if(C){this.fireEvents(F,false);}}this.stopEvent(F);}},fireEvents:function(V,L){var a=this.dragCurrent;if(!a||a.isLocked()||a.dragOnly){return;}var N=YAHOO.util.Event.getPageX(V),M=YAHOO.util.Event.getPageY(V),P=new YAHOO.util.Point(N,M),K=a.getTargetCoord(P.x,P.y),F=a.getDragEl(),E=["out","over","drop","enter"],U=new YAHOO.util.Region(K.y,K.x+F.offsetWidth,K.y+F.offsetHeight,K.x),I=[],D={},Q=[],c={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var S in this.dragOvers){var d=this.dragOvers[S];if(!this.isTypeOfDD(d)){continue;
++}if(!this.isOverTarget(P,d,this.mode,U)){c.outEvts.push(d);}I[S]=true;delete this.dragOvers[S];}for(var R in a.groups){if("string"!=typeof R){continue;}for(S in this.ids[R]){var G=this.ids[R][S];if(!this.isTypeOfDD(G)){continue;}if(G.isTarget&&!G.isLocked()&&G!=a){if(this.isOverTarget(P,G,this.mode,U)){D[R]=true;if(L){c.dropEvts.push(G);}else{if(!I[G.id]){c.enterEvts.push(G);}else{c.overEvts.push(G);}this.dragOvers[G.id]=G;}}}}}this.interactionInfo={out:c.outEvts,enter:c.enterEvts,over:c.overEvts,drop:c.dropEvts,point:P,draggedRegion:U,sourceRegion:this.locationCache[a.id],validDrop:L};for(var C in D){Q.push(C);}if(L&&!c.dropEvts.length){this.interactionInfo.validDrop=false;if(a.events.invalidDrop){a.onInvalidDrop(V);a.fireEvent("invalidDropEvent",{e:V});}}for(S=0;S<E.length;S++){var Y=null;if(c[E[S]+"Evts"]){Y=c[E[S]+"Evts"];}if(Y&&Y.length){var H=E[S].charAt(0).toUpperCase()+E[S].substr(1),X="onDrag"+H,J="b4Drag"+H,O="drag"+H+"Event",W="drag"+H;if(this.mode){if(a.events[J]){a[J](V,Y,Q);a.fireEvent(J+"Event",{event:V,info:Y,group:Q});}if(a.events[W]){a[X](V,Y,Q);a.fireEvent(O,{event:V,info:Y,group:Q});}}else{for(var Z=0,T=Y.length;Z<T;++Z){if(a.events[J]){a[J](V,Y[Z].id,Q[0]);a.fireEvent(J+"Event",{event:V,info:Y[Z].id,group:Q[0]});}if(a.events[W]){a[X](V,Y[Z].id,Q[0]);a.fireEvent(O,{event:V,info:Y[Z].id,group:Q[0]});}}}}}},getBestMatch:function(E){var G=null;var D=E.length;if(D==1){G=E[0];}else{for(var F=0;F<D;++F){var C=E[F];if(this.mode==this.INTERSECT&&C.cursorIsOver){G=C;break;}else{if(!G||!G.overlap||(C.overlap&&G.overlap.getArea()<C.overlap.getArea())){G=C;}}}}return G;},refreshCache:function(D){var F=D||this.ids;for(var C in F){if("string"!=typeof C){continue;}for(var E in this.ids[C]){var G=this.ids[C][E];if(this.isTypeOfDD(G)){var H=this.getLocation(G);if(H){this.locationCache[G.id]=H;}else{delete this.locationCache[G.id];}}}}},verifyEl:function(D){try{if(D){var C=D.offsetParent;if(C){return true;}}}catch(E){}return false;},getLocation:function(H){if(!this.isTypeOfDD(H)){return null;}var F=H.getEl(),K,E,D,M,L,N,C,J,G;try{K=YAHOO.util.Dom.getXY(F);}catch(I){}if(!K){return null;}E=K[0];D=E+F.offsetWidth;M=K[1];L=M+F.offsetHeight;N=M-H.padding[0];C=D+H.padding[1];J=L+H.padding[2];G=E-H.padding[3];return new YAHOO.util.Region(N,C,J,G);},isOverTarget:function(K,C,E,F){var G=this.locationCache[C.id];if(!G||!this.useCache){G=this.getLocation(C);this.locationCache[C.id]=G;}if(!G){return false;}C.cursorIsOver=G.contains(K);var J=this.dragCurrent;if(!J||(!E&&!J.constrainX&&!J.constrainY)){return C.cursorIsOver;}C.overlap=null;if(!F){var H=J.getTargetCoord(K.x,K.y);var D=J.getDragEl();F=new YAHOO.util.Region(H.y,H.x+D.offsetWidth,H.y+D.offsetHeight,H.x);}var I=F.intersect(G);if(I){C.overlap=I;return(E)?true:C.cursorIsOver;}else{return false;}},_onUnload:function(D,C){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(D){var C=this.elementCache[D];if(!C||!C.el){C=this.elementCache[D]=new this.ElementWrapper(YAHOO.util.Dom.get(D));}return C;},getElement:function(C){return YAHOO.util.Dom.get(C);},getCss:function(D){var C=YAHOO.util.Dom.get(D);return(C)?C.style:null;},ElementWrapper:function(C){this.el=C||null;this.id=this.el&&C.id;this.css=this.el&&C.style;},getPosX:function(C){return YAHOO.util.Dom.getX(C);},getPosY:function(C){return YAHOO.util.Dom.getY(C);},swapNode:function(E,C){if(E.swapNode){E.swapNode(C);}else{var F=C.parentNode;var D=C.nextSibling;if(D==E){F.insertBefore(E,C);}else{if(C==E.nextSibling){F.insertBefore(C,E);}else{E.parentNode.replaceChild(C,E);F.insertBefore(E,D);}}}},getScroll:function(){var E,C,F=document.documentElement,D=document.body;if(F&&(F.scrollTop||F.scrollLeft)){E=F.scrollTop;C=F.scrollLeft;}else{if(D){E=D.scrollTop;C=D.scrollLeft;}else{}}return{top:E,left:C};},getStyle:function(D,C){return YAHOO.util.Dom.getStyle(D,C);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(C,E){var D=YAHOO.util.Dom.getXY(E);YAHOO.util.Dom.setXY(C,D);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(D,C){return(D-C);},_timeoutCount:0,_addListeners:function(){var C=YAHOO.util.DDM;if(YAHOO.util.Event&&document){C._onLoad();}else{if(C._timeoutCount>2000){}else{setTimeout(C._addListeners,10);if(document&&document.body){C._timeoutCount+=1;}}}},handleWasClicked:function(C,E){if(this.isHandle(E,C.id)){return true;}else{var D=C.parentNode;while(D){if(this.isHandle(E,D.id)){return true;}else{D=D.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,useShim: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);this.useShim=((this.config.useShim===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(J,I){var D=J.which||J.button;if(this.primaryButtonOnly&&D>1){return;}if(this.isLocked()){return;}var C=this.b4MouseDown(J),F=true;if(this.events.b4MouseDown){F=this.fireEvent("b4MouseDownEvent",J);}var E=this.onMouseDown(J),H=true;if(this.events.mouseDown){H=this.fireEvent("mouseDownEvent",J);}if((C===false)||(E===false)||(F===false)||(H===false)){return;}this.DDM.refreshCache(this.groups);var G=new YAHOO.util.Point(A.getPageX(J),A.getPageY(J));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(G,this)){}else{if(this.clickValidator(J)){this.setStartPosition();this.DDM.handleMouseDown(J,this);this.DDM.stopEvent(J);}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 F=this.getDragEl(),E=YAHOO.util.Dom;if(!F){F=document.createElement("div");F.id=this.dragElId;var D=F.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");F.appendChild(C);A.insertBefore(F,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.8.0r4",build:"2449"});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,setter:null,getter:null,validator:null,getValue:function(){var A=this.value;if(this.getter){A=this.getter.call(this.owner,this.name,A);}return A;},setValue:function(F,B){var E,A=this.owner,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.setter){F=this.setter.call(A,F,this.name);if(F===undefined){}}if(this.method){this.method.call(A,F,this.name);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};if(C){this._written=false;}this._initialConfig=this._initialConfig||{};for(var A in B){if(B.hasOwnProperty(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,true);},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||!this._configs.hasOwnProperty(C)){return null;}return B.getValue();},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 C=[],B;for(B in this._configs){if(A.hasOwnProperty(this._configs,B)&&!A.isUndefined(this._configs[B])){C[C.length]=B;}}return C;},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||{};var F=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D<B;++D){if(F.hasOwnProperty(E[D])){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 B=YAHOO.util.Dom,D=YAHOO.util.AttributeProvider,C={mouseenter:true,mouseleave:true};var A=function(E,F){this.init.apply(this,arguments);};A.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"mouseenter":true,"mouseleave":true,"focus":true,"blur":true,"submit":true,"change":true};A.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(G,E){var F=this.get("element");if(F){F[E]=G;}return G;},DEFAULT_HTML_GETTER:function(E){var F=this.get("element"),G;if(F){G=F[E];}return G;},appendChild:function(E){E=E.get?E.get("element"):E;return this.get("element").appendChild(E);},getElementsByTagName:function(E){return this.get("element").getElementsByTagName(E);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(E,F){E=E.get?E.get("element"):E;F=(F&&F.get)?F.get("element"):F;return this.get("element").insertBefore(E,F);},removeChild:function(E){E=E.get?E.get("element"):E;return this.get("element").removeChild(E);},replaceChild:function(E,F){E=E.get?E.get("element"):E;F=F.get?F.get("element"):F;return this.get("element").replaceChild(E,F);},initAttributes:function(E){},addListener:function(J,I,K,H){H=H||this;var E=YAHOO.util.Event,G=this.get("element")||this.get("id"),F=this;if(C[J]&&!E._createMouseDelegate){return false;}if(!this._events[J]){if(G&&this.DOM_EVENTS[J]){E.on(G,J,function(M,L){if(M.srcElement&&!M.target){M.target=M.srcElement;}if((M.toElement&&!M.relatedTarget)||(M.fromElement&&!M.relatedTarget)){M.relatedTarget=E.getRelatedTarget(M);}if(!M.currentTarget){M.currentTarget=G;}F.fireEvent(J,M,L);},K,H);}this.createEvent(J,{scope:this});}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){return this.addListener.apply(this,arguments);},subscribe:function(){return this.addListener.apply(this,arguments);},removeListener:function(F,E){return this.unsubscribe.apply(this,arguments);},addClass:function(E){B.addClass(this.get("element"),E);},getElementsByClassName:function(F,E){return B.getElementsByClassName(F,E,this.get("element"));},hasClass:function(E){return B.hasClass(this.get("element"),E);},removeClass:function(E){return B.removeClass(this.get("element"),E);},replaceClass:function(F,E){return B.replaceClass(this.get("element"),F,E);},setStyle:function(F,E){return B.setStyle(this.get("element"),F,E);
++},getStyle:function(E){return B.getStyle(this.get("element"),E);},fireQueue:function(){var F=this._queue;for(var G=0,E=F.length;G<E;++G){this[F[G][0]].apply(this,F[G][1]);}},appendTo:function(F,G){F=(F.get)?F.get("element"):B.get(F);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:F});G=(G&&G.get)?G.get("element"):B.get(G);var E=this.get("element");if(!E){return false;}if(!F){return false;}if(E.parent!=F){if(G){F.insertBefore(E,G);}else{F.appendChild(E);}}this.fireEvent("appendTo",{type:"appendTo",target:F});return E;},get:function(E){var G=this._configs||{},F=G.element;if(F&&!G[E]&&!YAHOO.lang.isUndefined(F.value[E])){this._setHTMLAttrConfig(E);}return D.prototype.get.call(this,E);},setAttributes:function(K,H){var F={},I=this._configOrder;for(var J=0,E=I.length;J<E;++J){if(K[I[J]]!==undefined){F[I[J]]=true;this.set(I[J],K[I[J]],H);}}for(var G in K){if(K.hasOwnProperty(G)&&!F[G]){this.set(G,K[G],H);}}},set:function(F,H,E){var G=this.get("element");if(!G){this._queue[this._queue.length]=["set",arguments];if(this._configs[F]){this._configs[F].value=H;}return;}if(!this._configs[F]&&!YAHOO.lang.isUndefined(G[F])){this._setHTMLAttrConfig(F);}return D.prototype.set.apply(this,arguments);},setAttributeConfig:function(E,F,G){this._configOrder.push(E);D.prototype.setAttributeConfig.apply(this,arguments);},createEvent:function(F,E){this._events[F]=true;return D.prototype.createEvent.apply(this,arguments);},init:function(F,E){this._initElement(F,E);},destroy:function(){var E=this.get("element");YAHOO.util.Event.purgeElement(E,true);this.unsubscribeAll();if(E&&E.parentNode){E.parentNode.removeChild(E);}this._queue=[];this._events={};this._configs={};this._configOrder=[];},_initElement:function(G,F){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];F=F||{};F.element=F.element||G||null;var I=false;var E=A.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var H in E){if(E.hasOwnProperty(H)){this.DOM_EVENTS[H]=E[H];}}if(typeof F.element==="string"){this._setHTMLAttrConfig("id",{value:F.element});}if(B.get(F.element)){I=true;this._initHTMLElement(F);this._initContent(F);}YAHOO.util.Event.onAvailable(F.element,function(){if(!I){this._initHTMLElement(F);}this.fireEvent("available",{type:"available",target:B.get(F.element)});},this,true);YAHOO.util.Event.onContentReady(F.element,function(){if(!I){this._initContent(F);}this.fireEvent("contentReady",{type:"contentReady",target:B.get(F.element)});},this,true);},_initHTMLElement:function(E){this.setAttributeConfig("element",{value:B.get(E.element),readOnly:true});},_initContent:function(E){this.initAttributes(E);this.setAttributes(E,true);this.fireQueue();},_setHTMLAttrConfig:function(E,G){var F=this.get("element");G=G||{};G.name=E;G.setter=G.setter||this.DEFAULT_HTML_SETTER;G.getter=G.getter||this.DEFAULT_HTML_GETTER;G.value=G.value||F[E];this._configs[E]=new YAHOO.util.Attribute(G,this);}};YAHOO.augment(A,D);YAHOO.util.Element=A;})();YAHOO.register("element",YAHOO.util.Element,{version:"2.8.0r4",build:"2449"});YAHOO.register("utilities", YAHOO, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yahoo-dom-event/yahoo-dom-event.js b/pylons_app/public/js/yui/yahoo-dom-event/yahoo-dom-event.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yahoo-dom-event/yahoo-dom-event.js
+@@ -0,0 +1,14 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
++(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},DOT_ATTRIBUTES:{},get:function(z){var AB,x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.attributes:null;if(z&&G&&G.id&&G.id.value===AB){return z;}else{if(z&&K.all){z=null;x=K.all[AB];for(y=0,Y=x.length;y<Y;++y){if(x[y].id===AB){return x[y];}}}}return z;}if(YAHOO.util.Element&&z instanceof YAHOO.util.Element){z=z.get("element");}if("length" in z){AA=[];for(y=0,Y=z.length;y<Y;++y){AA[AA.length]=E.Dom.get(z[y]);}return AA;}return z;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC===c)){G=S(AF[v],q);x=S(AF[v],R);if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom._getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom._getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom._getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;
++y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e]&&y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){E.Dom.batch(Y,E.Dom._setAttribute,{attr:G,val:x});},_setAttribute:function(x,Y){var G=E.Dom._toCamel(Y.attr),y=Y.val;if(x&&x.setAttribute){if(E.Dom.DOT_ATTRIBUTES[G]){x[G]=y;}else{G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;x.setAttribute(G,y);}}else{}},getAttribute:function(Y,G){return E.Dom.batch(Y,E.Dom._getAttribute,G);},_getAttribute:function(Y,G){var x;G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;if(Y&&Y.getAttribute){x=Y.getAttribute(G,2);}else{}return x;},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}if(m.ie&&m.ie>=8&&K.documentElement.hasAttribute){E.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;
++this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2449"});YAHOO.util.CustomEvent=function(D,C,B,A,E){this.type=D;this.scope=C||window;this.silent=B;this.fireOnce=E;this.fired=false;this.firedWith=null;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var F="_YUICEOnSubscribe";if(D!==F){this.subscribeEvent=new YAHOO.util.CustomEvent(F,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,D){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,D);}var A=new YAHOO.util.Subscriber(B,C,D);if(this.fireOnce&&this.fired){this.notify(A,this.firedWith);}else{this.subscribers.push(A);}},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var H=[],A=this.subscribers.length;var D=[].slice.call(arguments,0),C=true,F,B=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=D;}}this.fired=true;if(!A&&this.silent){return true;}if(!this.silent){}var E=this.subscribers.slice();for(F=0;F<A;++F){var G=E[F];if(!G){B=true;}else{C=this.notify(G,D);if(false===C){if(!this.silent){}break;}}}return(C!==false);},notify:function(F,C){var B,H=null,E=F.getScope(this.scope),A=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(C.length>0){H=C[0];}try{B=F.fn.call(E,H,F.obj);}catch(G){this.lastError=G;if(A){throw G;}}}else{try{B=F.fn.call(E,this.type,C,F.obj);}catch(D){this.lastError=D;if(A){throw D;}}}return B;},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var G=false,H=[],J=[],A=0,E=[],B=0,C={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=YAHOO.env.ua.ie,F="focusin",I="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:D,_interval:null,_dri:null,_specialTypes:{focusin:(D?"focusin":"focus"),focusout:(D?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(Q,M,O,P,N){var K=(YAHOO.lang.isString(Q))?[Q]:Q;for(var L=0;L<K.length;L=L+1){E.push({id:K[L],fn:M,obj:O,overrideContext:P,checkReady:N});}A=this.POLL_RETRYS;this.startInterval();},onContentReady:function(N,K,L,M){this.onAvailable(N,K,L,M,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(M,K,V,P,T,Y){if(!V||!V.call){return false;}if(this._isValidCollection(M)){var W=true;for(var Q=0,S=M.length;Q<S;++Q){W=this.on(M[Q],K,V,P,T)&&W;}return W;}else{if(YAHOO.lang.isString(M)){var O=this.getEl(M);if(O){M=O;}else{this.onAvailable(M,function(){YAHOO.util.Event._addListener(M,K,V,P,T,Y);});return true;}}}if(!M){return false;}if("unload"==K&&P!==this){J[J.length]=[M,K,V,P,T];return true;}var L=M;if(T){if(T===true){L=P;}else{L=T;}}var N=function(Z){return V.call(L,YAHOO.util.Event.getEvent(Z,M),P);};var X=[M,K,V,N,L,P,T,Y];var R=H.length;H[R]=X;try{this._simpleAdd(M,K,N,Y);}catch(U){this.lastError=U;this.removeListener(M,K,V);return false;}return true;},_getType:function(K){return this._specialTypes[K]||K;},addListener:function(M,P,L,N,O){var K=((P==F||P==I)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(M,this._getType(P),L,N,O,K);},addFocusListener:function(L,K,M,N){return this.on(L,F,K,M,N);},removeFocusListener:function(L,K){return this.removeListener(L,F,K);},addBlurListener:function(L,K,M,N){return this.on(L,I,K,M,N);},removeBlurListener:function(L,K){return this.removeListener(L,I,K);},removeListener:function(L,K,R){var M,P,U;K=this._getType(K);if(typeof L=="string"){L=this.getEl(L);}else{if(this._isValidCollection(L)){var S=true;for(M=L.length-1;M>-1;M--){S=(this.removeListener(L[M],K,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(L,false,K);}if("unload"==K){for(M=J.length-1;M>-1;M--){U=J[M];if(U&&U[0]==L&&U[1]==K&&U[2]==R){J.splice(M,1);return true;}}return false;}var N=null;var O=arguments[3];if("undefined"===typeof O){O=this._getCacheIndex(H,L,K,R);}if(O>=0){N=H[O];}if(!L||!N){return false;}var T=N[this.CAPTURE]===true?true:false;try{this._simpleRemove(L,K,N[this.WFN],T);}catch(Q){this.lastError=Q;return false;}delete H[O][this.WFN];delete H[O][this.FN];H.splice(O,1);return true;},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode;}}catch(K){}return L;},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft();}}return K;},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop();}}return L;},getXY:function(K){return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement;
++}else{if(L.type=="mouseover"){K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L;}catch(K){this.lastError=K;return L;}}return M.time;},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation();}else{K.cancelBubble=true;}},preventDefault:function(K){if(K.preventDefault){K.preventDefault();}else{K.returnValue=false;}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break;}N=N.caller;}}return L;},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in C)){K=C[K];}return K;},_getCacheIndex:function(M,P,Q,O){for(var N=0,L=M.length;N<L;N=N+1){var K=M[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==Q){return N;}}return -1;},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+B;++B;K.id=L;}return L;},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined");}catch(K){return false;}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(L){if(!G){G=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready);}},_tryPreloadAttach:function(){if(E.length===0){A=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var Q=!G;if(!Q){Q=(A>0&&E.length>0);}var P=[];var R=function(T,U){var S=T;if(U.overrideContext){if(U.overrideContext===true){S=U.obj;}else{S=U.overrideContext;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=E.length;L<K;L=L+1){O=E[L];if(O){N=this.getEl(O.id);if(N){if(O.checkReady){if(G||N.nextSibling||!Q){M.push(O);E[L]=null;}}else{R(N,O);E[L]=null;}}else{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1){O=M[L];R(this.getEl(O.id),O);}A--;if(Q){for(L=E.length-1;L>-1;L--){O=E[L];if(!O||!O.id){E.splice(L,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K){var P=[],L;if(!K){L=[H,J];}else{if(K==="unload"){L=[J];}else{K=this._getType(K);L=[H];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(R){var L=YAHOO.util.Event,O,N,M,Q,P,S=J.slice(),K;for(O=0,Q=J.length;O<Q;++O){M=S[O];if(M){K=window;if(M[L.ADJ_SCOPE]){if(M[L.ADJ_SCOPE]===true){K=M[L.UNLOAD_OBJ];}else{K=M[L.ADJ_SCOPE];}}M[L.FN].call(K,L.getEvent(R,M[L.EL]),M[L.UNLOAD_OBJ]);S[O]=null;}}M=null;K=null;J=null;if(H){for(N=H.length-1;N>-1;N--){M=H[N];if(M){L.removeListener(M[L.EL],M[L.TYPE],M[L.FN],N);}}M=null;}L._simpleRemove(window,"unload",L._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
++/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
++if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);
++},createEvent:function(B,G){this.__yui_events=this.__yui_events||{};var E=G||{},D=this.__yui_events,F;if(D[B]){}else{F=new YAHOO.util.CustomEvent(B,E.scope||this,E.silent,YAHOO.util.CustomEvent.FLAT,E.fireOnce);D[B]=F;if(E.onSubscribeCallback){F.subscribeEvent.subscribe(E.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var A=this.__yui_subscribers[B];if(A){for(var C=0;C<A.length;++C){F.subscribe(A[C].fn,A[C].obj,A[C].overrideContext);}}}return D[B];},fireEvent:function(B){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[B];if(!D){return null;}var A=[];for(var C=1;C<arguments.length;++C){A.push(arguments[C]);}return D.fire.apply(D,A);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});YAHOO.register("yahoo-dom-event", YAHOO, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yahoo/yahoo-debug.js b/pylons_app/public/js/yui/yahoo/yahoo-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yahoo/yahoo-debug.js
+@@ -0,0 +1,1075 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The YAHOO object is the single global object used by YUI Library.  It
++ * contains utility function for setting up namespaces, inheritance, and
++ * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
++ * created automatically for and used by the library.
++ * @module yahoo
++ * @title  YAHOO Global
++ */
++
++/**
++ * YAHOO_config is not included as part of the library.  Instead it is an 
++ * object that can be defined by the implementer immediately before 
++ * including the YUI library.  The properties included in this object
++ * will be used to configure global properties needed as soon as the 
++ * library begins to load.
++ * @class YAHOO_config
++ * @static
++ */
++
++/**
++ * A reference to a function that will be executed every time a YAHOO module
++ * is loaded.  As parameter, this function will receive the version
++ * information for the module. See <a href="YAHOO.env.html#getVersion">
++ * YAHOO.env.getVersion</a> for the description of the version data structure.
++ * @property listener
++ * @type Function
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Set to true if the library will be dynamically loaded after window.onload.
++ * Defaults to false 
++ * @property injecting
++ * @type boolean
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Instructs the yuiloader component to dynamically load yui components and
++ * their dependencies.  See the yuiloader documentation for more information
++ * about dynamic loading
++ * @property load
++ * @static
++ * @default undefined
++ * @see yuiloader
++ */
++
++/**
++ * Forces the use of the supplied locale where applicable in the library
++ * @property locale
++ * @type string
++ * @static
++ * @default undefined
++ */
++
++if (typeof YAHOO == "undefined" || !YAHOO) {
++    /**
++     * The YAHOO global namespace object.  If YAHOO is already defined, the
++     * existing YAHOO object will not be overwritten so that defined
++     * namespaces are preserved.
++     * @class YAHOO
++     * @static
++     */
++    var YAHOO = {};
++}
++
++/**
++ * Returns the namespace specified and creates it if it doesn't exist
++ * <pre>
++ * YAHOO.namespace("property.package");
++ * YAHOO.namespace("YAHOO.property.package");
++ * </pre>
++ * Either of the above would create YAHOO.property, then
++ * YAHOO.property.package
++ *
++ * Be careful when naming packages. Reserved words may work in some browsers
++ * and not others. For instance, the following will fail in Safari:
++ * <pre>
++ * YAHOO.namespace("really.long.nested.namespace");
++ * </pre>
++ * This fails because "long" is a future reserved word in ECMAScript
++ *
++ * For implementation code that uses YUI, do not create your components
++ * in the namespaces defined by YUI (
++ * <code>YAHOO.util</code>, 
++ * <code>YAHOO.widget</code>, 
++ * <code>YAHOO.lang</code>, 
++ * <code>YAHOO.tool</code>, 
++ * <code>YAHOO.example</code>, 
++ * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
++ *
++ * @method namespace
++ * @static
++ * @param  {String*} arguments 1-n namespaces to create 
++ * @return {Object}  A reference to the last namespace object created
++ */
++YAHOO.namespace = function() {
++    var a=arguments, o=null, i, j, d;
++    for (i=0; i<a.length; i=i+1) {
++        d=(""+a[i]).split(".");
++        o=YAHOO;
++
++        // YAHOO is implied, so it is ignored if it is included
++        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
++            o[d[j]]=o[d[j]] || {};
++            o=o[d[j]];
++        }
++    }
++
++    return o;
++};
++
++/**
++ * Uses YAHOO.widget.Logger to output a log message, if the widget is
++ * available.
++ *
++ * @method log
++ * @static
++ * @param  {String}  msg  The message to log.
++ * @param  {String}  cat  The log category for the message.  Default
++ *                        categories are "info", "warn", "error", time".
++ *                        Custom categories can be used as well. (opt)
++ * @param  {String}  src  The source of the the message (opt)
++ * @return {Boolean}      True if the log operation was successful.
++ */
++YAHOO.log = function(msg, cat, src) {
++    var l=YAHOO.widget.Logger;
++    if(l && l.log) {
++        return l.log(msg, cat, src);
++    } else {
++        return false;
++    }
++};
++
++/**
++ * Registers a module with the YAHOO object
++ * @method register
++ * @static
++ * @param {String}   name    the name of the module (event, slider, etc)
++ * @param {Function} mainClass a reference to class in the module.  This
++ *                             class will be tagged with the version info
++ *                             so that it will be possible to identify the
++ *                             version that is in use when multiple versions
++ *                             have loaded
++ * @param {Object}   data      metadata object for the module.  Currently it
++ *                             is expected to contain a "version" property
++ *                             and a "build" property at minimum.
++ */
++YAHOO.register = function(name, mainClass, data) {
++    var mods = YAHOO.env.modules, m, v, b, ls, i;
++
++    if (!mods[name]) {
++        mods[name] = { 
++            versions:[], 
++            builds:[] 
++        };
++    }
++
++    m  = mods[name];
++    v  = data.version;
++    b  = data.build;
++    ls = YAHOO.env.listeners;
++
++    m.name = name;
++    m.version = v;
++    m.build = b;
++    m.versions.push(v);
++    m.builds.push(b);
++    m.mainClass = mainClass;
++
++    // fire the module load listeners
++    for (i=0;i<ls.length;i=i+1) {
++        ls[i](m);
++    }
++    // label the main class
++    if (mainClass) {
++        mainClass.VERSION = v;
++        mainClass.BUILD = b;
++    } else {
++        YAHOO.log("mainClass is undefined for module " + name, "warn");
++    }
++};
++
++/**
++ * YAHOO.env is used to keep track of what is known about the YUI library and
++ * the browsing environment
++ * @class YAHOO.env
++ * @static
++ */
++YAHOO.env = YAHOO.env || {
++
++    /**
++     * Keeps the version info for all YUI modules that have reported themselves
++     * @property modules
++     * @type Object[]
++     */
++    modules: [],
++    
++    /**
++     * List of functions that should be executed every time a YUI module
++     * reports itself.
++     * @property listeners
++     * @type Function[]
++     */
++    listeners: []
++};
++
++/**
++ * Returns the version data for the specified module:
++ *      <dl>
++ *      <dt>name:</dt>      <dd>The name of the module</dd>
++ *      <dt>version:</dt>   <dd>The version in use</dd>
++ *      <dt>build:</dt>     <dd>The build number in use</dd>
++ *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
++ *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
++ *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
++ *                 current version and build. If 
++ *                 mainClass.VERSION != version or mainClass.BUILD != build,
++ *                 multiple versions of pieces of the library have been
++ *                 loaded, potentially causing issues.</dd>
++ *       </dl>
++ *
++ * @method getVersion
++ * @static
++ * @param {String}  name the name of the module (event, slider, etc)
++ * @return {Object} The version info
++ */
++YAHOO.env.getVersion = function(name) {
++    return YAHOO.env.modules[name] || null;
++};
++
++/**
++ * Do not fork for a browser if it can be avoided.  Use feature detection when
++ * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
++ * number for the browser engine, 0 otherwise.  This value may or may not map
++ * to the version number of the browser using the engine.  The value is 
++ * presented as a float so that it can easily be used for boolean evaluation 
++ * as well as for looking for a particular range of versions.  Because of this, 
++ * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
++ * reports 1.8).
++ * @class YAHOO.env.ua
++ * @static
++ */
++YAHOO.env.ua = function() {
++
++        var numberfy = function(s) {
++            var c = 0;
++            return parseFloat(s.replace(/\./g, function() {
++                return (c++ == 1) ? '' : '.';
++            }));
++        },
++
++        nav = navigator,
++
++        o = {
++
++        /**
++         * Internet Explorer version number or 0.  Example: 6
++         * @property ie
++         * @type float
++         */
++        ie: 0,
++
++        /**
++         * Opera version number or 0.  Example: 9.2
++         * @property opera
++         * @type float
++         */
++        opera: 0,
++
++        /**
++         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
++         * is detected but the revision could not be found. Other browsers
++         * will be 0.  Example: 1.8
++         * <pre>
++         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
++         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
++         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
++         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
++         * </pre>
++         * @property gecko
++         * @type float
++         */
++        gecko: 0,
++
++        /**
++         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
++         * will evaluate to 1, other browsers 0.  Example: 418.9.1
++         * <pre>
++         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
++         *                                   latest available for Mac OSX 10.3.
++         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
++         * Safari 2.0.4:         418     <-- preventDefault fixed
++         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
++         *                                   different versions of webkit
++         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
++         *                                   updated, but not updated
++         *                                   to the latest patch.
++         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
++         *                                   and many major issues fixed).  
++         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
++         *                                   string when hitting yahoo.com and 
++         *                                   flickr.com.
++         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
++         *                                   from 2.x via the 10.4.11 OS patch
++         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
++         *                                   yahoo.com user agent hack removed.
++         *                                   
++         * </pre>
++         * http://developer.apple.com/internet/safari/uamatrix.html
++         * @property webkit
++         * @type float
++         */
++        webkit: 0,
++
++        /**
++         * The mobile property will be set to a string containing any relevant
++         * user agent information when a modern mobile browser is detected.
++         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
++         * devices with the WebKit-based browser, and Opera Mini.  
++         * @property mobile 
++         * @type string
++         */
++        mobile: null,
++
++        /**
++         * Adobe AIR version number or 0.  Only populated if webkit is detected.
++         * Example: 1.0
++         * @property air
++         * @type float
++         */
++        air: 0,
++
++        /**
++         * Google Caja version number or 0.
++         * @property caja
++         * @type float
++         */
++        caja: nav.cajaVersion,
++
++        /**
++         * Set to true if the page appears to be in SSL
++         * @property secure
++         * @type boolean
++         * @static
++         */
++        secure: false,
++
++        /**
++         * The operating system.  Currently only detecting windows or macintosh
++         * @property os
++         * @type string
++         * @static
++         */
++        os: null
++
++    },
++
++    ua = navigator && navigator.userAgent, 
++    
++    loc = window && window.location,
++
++    href = loc && loc.href,
++    
++    m;
++
++    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
++
++    if (ua) {
++
++        if ((/windows|win32/i).test(ua)) {
++            o.os = 'windows';
++        } else if ((/macintosh/i).test(ua)) {
++            o.os = 'macintosh';
++        }
++    
++        // Modern KHTML browsers should qualify as Safari X-Grade
++        if ((/KHTML/).test(ua)) {
++            o.webkit=1;
++        }
++
++        // Modern WebKit browsers are at least X-Grade
++        m=ua.match(/AppleWebKit\/([^\s]*)/);
++        if (m&&m[1]) {
++            o.webkit=numberfy(m[1]);
++
++            // Mobile browser check
++            if (/ Mobile\//.test(ua)) {
++                o.mobile = "Apple"; // iPhone or iPod Touch
++            } else {
++                m=ua.match(/NokiaN[^\/]*/);
++                if (m) {
++                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
++                }
++            }
++
++            m=ua.match(/AdobeAIR\/([^\s]*)/);
++            if (m) {
++                o.air = m[0]; // Adobe AIR 1.0 or better
++            }
++
++        }
++
++        if (!o.webkit) { // not webkit
++            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
++            m=ua.match(/Opera[\s\/]([^\s]*)/);
++            if (m&&m[1]) {
++                o.opera=numberfy(m[1]);
++                m=ua.match(/Opera Mini[^;]*/);
++                if (m) {
++                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
++                }
++            } else { // not opera or webkit
++                m=ua.match(/MSIE\s([^;]*)/);
++                if (m&&m[1]) {
++                    o.ie=numberfy(m[1]);
++                } else { // not opera, webkit, or ie
++                    m=ua.match(/Gecko\/([^\s]*)/);
++                    if (m) {
++                        o.gecko=1; // Gecko detected, look for revision
++                        m=ua.match(/rv:([^\s\)]*)/);
++                        if (m&&m[1]) {
++                            o.gecko=numberfy(m[1]);
++                        }
++                    }
++                }
++            }
++        }
++    }
++
++    return o;
++}();
++
++/*
++ * Initializes the global by creating the default namespaces and applying
++ * any new configuration information that is detected.  This is the setup
++ * for env.
++ * @method init
++ * @static
++ * @private
++ */
++(function() {
++    YAHOO.namespace("util", "widget", "example");
++    /*global YAHOO_config*/
++    if ("undefined" !== typeof YAHOO_config) {
++        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
++        if (l) {
++            // if YAHOO is loaded multiple times we need to check to see if
++            // this is a new config object.  If it is, add the new component
++            // load listener to the stack
++            for (i=0; i<ls.length; i++) {
++                if (ls[i] == l) {
++                    unique = false;
++                    break;
++                }
++            }
++
++            if (unique) {
++                ls.push(l);
++            }
++        }
++    }
++})();
++/**
++ * Provides the language utilites and extensions used by the library
++ * @class YAHOO.lang
++ */
++YAHOO.lang = YAHOO.lang || {};
++
++(function() {
++
++
++var L = YAHOO.lang,
++
++    OP = Object.prototype,
++    ARRAY_TOSTRING = '[object Array]',
++    FUNCTION_TOSTRING = '[object Function]',
++    OBJECT_TOSTRING = '[object Object]',
++    NOTHING = [],
++
++    // ADD = ["toString", "valueOf", "hasOwnProperty"],
++    ADD = ["toString", "valueOf"],
++
++    OB = {
++
++    /**
++     * Determines wheather or not the provided object is an array.
++     * @method isArray
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isArray: function(o) { 
++        return OP.toString.apply(o) === ARRAY_TOSTRING;
++    },
++
++    /**
++     * Determines whether or not the provided object is a boolean
++     * @method isBoolean
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isBoolean: function(o) {
++        return typeof o === 'boolean';
++    },
++    
++    /**
++     * Determines whether or not the provided object is a function.
++     * Note: Internet Explorer thinks certain functions are objects:
++     *
++     * var obj = document.createElement("object");
++     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
++     *
++     * var input = document.createElement("input"); // append to body
++     * YAHOO.lang.isFunction(input.focus) // reports false in IE
++     *
++     * You will have to implement additional tests if these functions
++     * matter to you.
++     *
++     * @method isFunction
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isFunction: function(o) {
++        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
++    },
++        
++    /**
++     * Determines whether or not the provided object is null
++     * @method isNull
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNull: function(o) {
++        return o === null;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a legal number
++     * @method isNumber
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNumber: function(o) {
++        return typeof o === 'number' && isFinite(o);
++    },
++      
++    /**
++     * Determines whether or not the provided object is of type object
++     * or function
++     * @method isObject
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */  
++    isObject: function(o) {
++return (o && (typeof o === 'object' || L.isFunction(o))) || false;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a string
++     * @method isString
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isString: function(o) {
++        return typeof o === 'string';
++    },
++        
++    /**
++     * Determines whether or not the provided object is undefined
++     * @method isUndefined
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isUndefined: function(o) {
++        return typeof o === 'undefined';
++    },
++    
++ 
++    /**
++     * IE will not enumerate native functions in a derived object even if the
++     * function was overridden.  This is a workaround for specific functions 
++     * we care about on the Object prototype. 
++     * @property _IEEnumFix
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @static
++     * @private
++     */
++    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
++            var i, fname, f;
++            for (i=0;i<ADD.length;i=i+1) {
++
++                fname = ADD[i];
++                f = s[fname];
++
++                if (L.isFunction(f) && f!=OP[fname]) {
++                    r[fname]=f;
++                }
++            }
++    } : function(){},
++       
++    /**
++     * Utility to set up the prototype, constructor and superclass properties to
++     * support an inheritance strategy that can chain constructors and methods.
++     * Static members will not be inherited.
++     *
++     * @method extend
++     * @static
++     * @param {Function} subc   the object to modify
++     * @param {Function} superc the object to inherit
++     * @param {Object} overrides  additional properties/methods to add to the
++     *                              subclass prototype.  These will override the
++     *                              matching items obtained from the superclass 
++     *                              if present.
++     */
++    extend: function(subc, superc, overrides) {
++        if (!superc||!subc) {
++            throw new Error("extend failed, please check that " +
++                            "all dependencies are included.");
++        }
++        var F = function() {}, i;
++        F.prototype=superc.prototype;
++        subc.prototype=new F();
++        subc.prototype.constructor=subc;
++        subc.superclass=superc.prototype;
++        if (superc.prototype.constructor == OP.constructor) {
++            superc.prototype.constructor=superc;
++        }
++    
++        if (overrides) {
++            for (i in overrides) {
++                if (L.hasOwnProperty(overrides, i)) {
++                    subc.prototype[i]=overrides[i];
++                }
++            }
++
++            L._IEEnumFix(subc.prototype, overrides);
++        }
++    },
++   
++    /**
++     * Applies all properties in the supplier to the receiver if the
++     * receiver does not have these properties yet.  Optionally, one or 
++     * more methods/properties can be specified (as additional 
++     * parameters).  This option will overwrite the property if receiver 
++     * has it already.  If true is passed as the third parameter, all 
++     * properties will be applied and _will_ overwrite properties in 
++     * the receiver.
++     *
++     * @method augmentObject
++     * @static
++     * @since 2.3.0
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything
++     *        in the supplier will be used unless it would
++     *        overwrite an existing property in the receiver. If true
++     *        is specified as the third parameter, all properties will
++     *        be applied and will overwrite an existing property in
++     *        the receiver
++     */
++    augmentObject: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Absorb failed, verify dependencies.");
++        }
++        var a=arguments, i, p, overrideList=a[2];
++        if (overrideList && overrideList!==true) { // only absorb the specified properties
++            for (i=2; i<a.length; i=i+1) {
++                r[a[i]] = s[a[i]];
++            }
++        } else { // take everything, overwriting only if the third parameter is true
++            for (p in s) { 
++                if (overrideList || !(p in r)) {
++                    r[p] = s[p];
++                }
++            }
++            
++            L._IEEnumFix(r, s);
++        }
++    },
++ 
++    /**
++     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
++     * @see YAHOO.lang.augmentObject
++     * @method augmentProto
++     * @static
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything 
++     *        in the supplier will be used unless it would overwrite an existing 
++     *        property in the receiver.  if true is specified as the third 
++     *        parameter, all properties will be applied and will overwrite an 
++     *        existing property in the receiver
++     */
++    augmentProto: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Augment failed, verify dependencies.");
++        }
++        //var a=[].concat(arguments);
++        var a=[r.prototype,s.prototype], i;
++        for (i=2;i<arguments.length;i=i+1) {
++            a.push(arguments[i]);
++        }
++        L.augmentObject.apply(this, a);
++    },
++
++      
++    /**
++     * Returns a simple string representation of the object or array.
++     * Other types of objects will be returned unprocessed.  Arrays
++     * are expected to be indexed.  Use object notation for
++     * associative arrays.
++     * @method dump
++     * @since 2.3.0
++     * @param o {Object} The object to dump
++     * @param d {int} How deep to recurse child objects, default 3
++     * @return {String} the dump result
++     */
++    dump: function(o, d) {
++        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
++            COMMA=', ', ARROW=' => ';
++
++        // Cast non-objects to string
++        // Skip dates because the std toString is what we want
++        // Skip HTMLElement-like objects because trying to dump 
++        // an element will cause an unhandled exception in FF 2.x
++        if (!L.isObject(o)) {
++            return o + "";
++        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
++            return o;
++        } else if  (L.isFunction(o)) {
++            return FUN;
++        }
++
++        // dig into child objects the depth specifed. Default 3
++        d = (L.isNumber(d)) ? d : 3;
++
++        // arrays [1, 2, 3]
++        if (L.isArray(o)) {
++            s.push("[");
++            for (i=0,len=o.length;i<len;i=i+1) {
++                if (L.isObject(o[i])) {
++                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                } else {
++                    s.push(o[i]);
++                }
++                s.push(COMMA);
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("]");
++        // objects {k1 => v1, k2 => v2}
++        } else {
++            s.push("{");
++            for (i in o) {
++                if (L.hasOwnProperty(o, i)) {
++                    s.push(i + ARROW);
++                    if (L.isObject(o[i])) {
++                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                    } else {
++                        s.push(o[i]);
++                    }
++                    s.push(COMMA);
++                }
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("}");
++        }
++
++        return s.join("");
++    },
++
++    /**
++     * Does variable substitution on a string. It scans through the string 
++     * looking for expressions enclosed in { } braces. If an expression 
++     * is found, it is used a key on the object.  If there is a space in
++     * the key, the first word is used for the key and the rest is provided
++     * to an optional function to be used to programatically determine the
++     * value (the extra information might be used for this decision). If 
++     * the value for the key in the object, or what is returned from the
++     * function has a string value, number value, or object value, it is 
++     * substituted for the bracket expression and it repeats.  If this
++     * value is an object, it uses the Object's toString() if this has
++     * been overridden, otherwise it does a shallow dump of the key/value
++     * pairs.
++     * @method substitute
++     * @since 2.3.0
++     * @param s {String} The string that will be modified.
++     * @param o {Object} An object containing the replacement values
++     * @param f {Function} An optional function that can be used to
++     *                     process each match.  It receives the key,
++     *                     value, and any extra metadata included with
++     *                     the key inside of the braces.
++     * @return {String} the substituted string
++     */
++    substitute: function (s, o, f) {
++        var i, j, k, key, v, meta, saved=[], token, 
++            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
++            dump, objstr;
++
++
++        for (;;) {
++            i = s.lastIndexOf(LBRACE);
++            if (i < 0) {
++                break;
++            }
++            j = s.indexOf(RBRACE, i);
++            if (i + 1 >= j) {
++                break;
++            }
++
++            //Extract key and meta info 
++            token = s.substring(i + 1, j);
++            key = token;
++            meta = null;
++            k = key.indexOf(SPACE);
++            if (k > -1) {
++                meta = key.substring(k + 1);
++                key = key.substring(0, k);
++            }
++
++            // lookup the value
++            v = o[key];
++
++            // if a substitution function was provided, execute it
++            if (f) {
++                v = f(key, v, meta);
++            }
++
++            if (L.isObject(v)) {
++                if (L.isArray(v)) {
++                    v = L.dump(v, parseInt(meta, 10));
++                } else {
++                    meta = meta || "";
++
++                    // look for the keyword 'dump', if found force obj dump
++                    dump = meta.indexOf(DUMP);
++                    if (dump > -1) {
++                        meta = meta.substring(4);
++                    }
++
++                    objstr = v.toString();
++
++                    // use the toString if it is not the Object toString 
++                    // and the 'dump' meta info was not found
++                    if (objstr === OBJECT_TOSTRING || dump > -1) {
++                        v = L.dump(v, parseInt(meta, 10));
++                    } else {
++                        v = objstr;
++                    }
++                }
++            } else if (!L.isString(v) && !L.isNumber(v)) {
++                // This {block} has no replace string. Save it for later.
++                v = "~-" + saved.length + "-~";
++                saved[saved.length] = token;
++
++                // break;
++            }
++
++            s = s.substring(0, i) + v + s.substring(j + 1);
++
++
++        }
++
++        // restore saved {block}s
++        for (i=saved.length-1; i>=0; i=i-1) {
++            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
++        }
++
++        return s;
++    },
++
++
++    /**
++     * Returns a string without any leading or trailing whitespace.  If 
++     * the input is not a string, the input will be returned untouched.
++     * @method trim
++     * @since 2.3.0
++     * @param s {string} the string to trim
++     * @return {string} the trimmed string
++     */
++    trim: function(s){
++        try {
++            return s.replace(/^\s+|\s+$/g, "");
++        } catch(e) {
++            return s;
++        }
++    },
++
++    /**
++     * Returns a new object containing all of the properties of
++     * all the supplied objects.  The properties from later objects
++     * will overwrite those in earlier objects.
++     * @method merge
++     * @since 2.3.0
++     * @param arguments {Object*} the objects to merge
++     * @return the new merged object
++     */
++    merge: function() {
++        var o={}, a=arguments, l=a.length, i;
++        for (i=0; i<l; i=i+1) {
++            L.augmentObject(o, a[i], true);
++        }
++        return o;
++    },
++
++    /**
++     * Executes the supplied function in the context of the supplied 
++     * object 'when' milliseconds later.  Executes the function a 
++     * single time unless periodic is set to true.
++     * @method later
++     * @since 2.4.0
++     * @param when {int} the number of milliseconds to wait until the fn 
++     * is executed
++     * @param o the context object
++     * @param fn {Function|String} the function to execute or the name of 
++     * the method in the 'o' object to execute
++     * @param data [Array] data that is provided to the function.  This accepts
++     * either a single item or an array.  If an array is provided, the
++     * function is executed with one parameter for each array item.  If
++     * you need to pass a single array parameter, it needs to be wrapped in
++     * an array [myarray]
++     * @param periodic {boolean} if true, executes continuously at supplied 
++     * interval until canceled
++     * @return a timer object. Call the cancel() method on this object to 
++     * stop the timer.
++     */
++    later: function(when, o, fn, data, periodic) {
++        when = when || 0; 
++        o = o || {};
++        var m=fn, d=data, f, r;
++
++        if (L.isString(fn)) {
++            m = o[fn];
++        }
++
++        if (!m) {
++            throw new TypeError("method undefined");
++        }
++
++        if (d && !L.isArray(d)) {
++            d = [data];
++        }
++
++        f = function() {
++            m.apply(o, d || NOTHING);
++        };
++
++        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
++
++        return {
++            interval: periodic,
++            cancel: function() {
++                if (this.interval) {
++                    clearInterval(r);
++                } else {
++                    clearTimeout(r);
++                }
++            }
++        };
++    },
++    
++    /**
++     * A convenience method for detecting a legitimate non-null value.
++     * Returns false for null/undefined/NaN, true for other values, 
++     * including 0/false/''
++     * @method isValue
++     * @since 2.3.0
++     * @param o {any} the item to test
++     * @return {boolean} true if it is not null/undefined/NaN || false
++     */
++    isValue: function(o) {
++        // return (o || o === false || o === 0 || o === ''); // Infinity fails
++return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
++    }
++
++};
++
++/**
++ * Determines whether or not the property was added
++ * to the object instance.  Returns false if the property is not present
++ * in the object, or was inherited from the prototype.
++ * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
++ * There is a discrepancy between YAHOO.lang.hasOwnProperty and
++ * Object.prototype.hasOwnProperty when the property is a primitive added to
++ * both the instance AND prototype with the same value:
++ * <pre>
++ * var A = function() {};
++ * A.prototype.foo = 'foo';
++ * var a = new A();
++ * a.foo = 'foo';
++ * alert(a.hasOwnProperty('foo')); // true
++ * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
++ * </pre>
++ * @method hasOwnProperty
++ * @param {any} o The object being testing
++ * @param prop {string} the name of the property to test
++ * @return {boolean} the result
++ */
++L.hasOwnProperty = (OP.hasOwnProperty) ?
++    function(o, prop) {
++        return o && o.hasOwnProperty(prop);
++    } : function(o, prop) {
++        return !L.isUndefined(o[prop]) && 
++                o.constructor.prototype[prop] !== o[prop];
++    };
++
++// new lang wins
++OB.augmentObject(L, OB, true);
++
++/*
++ * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
++ * @class YAHOO.util.Lang
++ */
++YAHOO.util.Lang = L;
++ 
++/**
++ * Same as YAHOO.lang.augmentObject, except it only applies prototype 
++ * properties.  This is an alias for augmentProto.
++ * @see YAHOO.lang.augmentObject
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*|boolean}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver.  if true
++ *        is specified as the third parameter, all properties will
++ *        be applied and will overwrite an existing property in
++ *        the receiver
++ */
++L.augment = L.augmentProto;
++
++/**
++ * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
++ * @for YAHOO
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver
++ */
++YAHOO.augment = L.augmentProto;
++       
++/**
++ * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
++ * @method extend
++ * @static
++ * @param {Function} subc   the object to modify
++ * @param {Function} superc the object to inherit
++ * @param {Object} overrides  additional properties/methods to add to the
++ *        subclass prototype.  These will override the
++ *        matching items obtained from the superclass if present.
++ */
++YAHOO.extend = L.extend;
++
++})();
++YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yahoo/yahoo-min.js b/pylons_app/public/js/yui/yahoo/yahoo-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yahoo/yahoo-min.js
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
+diff --git a/pylons_app/public/js/yui/yahoo/yahoo.js b/pylons_app/public/js/yui/yahoo/yahoo.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yahoo/yahoo.js
+@@ -0,0 +1,1075 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The YAHOO object is the single global object used by YUI Library.  It
++ * contains utility function for setting up namespaces, inheritance, and
++ * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
++ * created automatically for and used by the library.
++ * @module yahoo
++ * @title  YAHOO Global
++ */
++
++/**
++ * YAHOO_config is not included as part of the library.  Instead it is an 
++ * object that can be defined by the implementer immediately before 
++ * including the YUI library.  The properties included in this object
++ * will be used to configure global properties needed as soon as the 
++ * library begins to load.
++ * @class YAHOO_config
++ * @static
++ */
++
++/**
++ * A reference to a function that will be executed every time a YAHOO module
++ * is loaded.  As parameter, this function will receive the version
++ * information for the module. See <a href="YAHOO.env.html#getVersion">
++ * YAHOO.env.getVersion</a> for the description of the version data structure.
++ * @property listener
++ * @type Function
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Set to true if the library will be dynamically loaded after window.onload.
++ * Defaults to false 
++ * @property injecting
++ * @type boolean
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Instructs the yuiloader component to dynamically load yui components and
++ * their dependencies.  See the yuiloader documentation for more information
++ * about dynamic loading
++ * @property load
++ * @static
++ * @default undefined
++ * @see yuiloader
++ */
++
++/**
++ * Forces the use of the supplied locale where applicable in the library
++ * @property locale
++ * @type string
++ * @static
++ * @default undefined
++ */
++
++if (typeof YAHOO == "undefined" || !YAHOO) {
++    /**
++     * The YAHOO global namespace object.  If YAHOO is already defined, the
++     * existing YAHOO object will not be overwritten so that defined
++     * namespaces are preserved.
++     * @class YAHOO
++     * @static
++     */
++    var YAHOO = {};
++}
++
++/**
++ * Returns the namespace specified and creates it if it doesn't exist
++ * <pre>
++ * YAHOO.namespace("property.package");
++ * YAHOO.namespace("YAHOO.property.package");
++ * </pre>
++ * Either of the above would create YAHOO.property, then
++ * YAHOO.property.package
++ *
++ * Be careful when naming packages. Reserved words may work in some browsers
++ * and not others. For instance, the following will fail in Safari:
++ * <pre>
++ * YAHOO.namespace("really.long.nested.namespace");
++ * </pre>
++ * This fails because "long" is a future reserved word in ECMAScript
++ *
++ * For implementation code that uses YUI, do not create your components
++ * in the namespaces defined by YUI (
++ * <code>YAHOO.util</code>, 
++ * <code>YAHOO.widget</code>, 
++ * <code>YAHOO.lang</code>, 
++ * <code>YAHOO.tool</code>, 
++ * <code>YAHOO.example</code>, 
++ * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
++ *
++ * @method namespace
++ * @static
++ * @param  {String*} arguments 1-n namespaces to create 
++ * @return {Object}  A reference to the last namespace object created
++ */
++YAHOO.namespace = function() {
++    var a=arguments, o=null, i, j, d;
++    for (i=0; i<a.length; i=i+1) {
++        d=(""+a[i]).split(".");
++        o=YAHOO;
++
++        // YAHOO is implied, so it is ignored if it is included
++        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
++            o[d[j]]=o[d[j]] || {};
++            o=o[d[j]];
++        }
++    }
++
++    return o;
++};
++
++/**
++ * Uses YAHOO.widget.Logger to output a log message, if the widget is
++ * available.
++ *
++ * @method log
++ * @static
++ * @param  {String}  msg  The message to log.
++ * @param  {String}  cat  The log category for the message.  Default
++ *                        categories are "info", "warn", "error", time".
++ *                        Custom categories can be used as well. (opt)
++ * @param  {String}  src  The source of the the message (opt)
++ * @return {Boolean}      True if the log operation was successful.
++ */
++YAHOO.log = function(msg, cat, src) {
++    var l=YAHOO.widget.Logger;
++    if(l && l.log) {
++        return l.log(msg, cat, src);
++    } else {
++        return false;
++    }
++};
++
++/**
++ * Registers a module with the YAHOO object
++ * @method register
++ * @static
++ * @param {String}   name    the name of the module (event, slider, etc)
++ * @param {Function} mainClass a reference to class in the module.  This
++ *                             class will be tagged with the version info
++ *                             so that it will be possible to identify the
++ *                             version that is in use when multiple versions
++ *                             have loaded
++ * @param {Object}   data      metadata object for the module.  Currently it
++ *                             is expected to contain a "version" property
++ *                             and a "build" property at minimum.
++ */
++YAHOO.register = function(name, mainClass, data) {
++    var mods = YAHOO.env.modules, m, v, b, ls, i;
++
++    if (!mods[name]) {
++        mods[name] = { 
++            versions:[], 
++            builds:[] 
++        };
++    }
++
++    m  = mods[name];
++    v  = data.version;
++    b  = data.build;
++    ls = YAHOO.env.listeners;
++
++    m.name = name;
++    m.version = v;
++    m.build = b;
++    m.versions.push(v);
++    m.builds.push(b);
++    m.mainClass = mainClass;
++
++    // fire the module load listeners
++    for (i=0;i<ls.length;i=i+1) {
++        ls[i](m);
++    }
++    // label the main class
++    if (mainClass) {
++        mainClass.VERSION = v;
++        mainClass.BUILD = b;
++    } else {
++        YAHOO.log("mainClass is undefined for module " + name, "warn");
++    }
++};
++
++/**
++ * YAHOO.env is used to keep track of what is known about the YUI library and
++ * the browsing environment
++ * @class YAHOO.env
++ * @static
++ */
++YAHOO.env = YAHOO.env || {
++
++    /**
++     * Keeps the version info for all YUI modules that have reported themselves
++     * @property modules
++     * @type Object[]
++     */
++    modules: [],
++    
++    /**
++     * List of functions that should be executed every time a YUI module
++     * reports itself.
++     * @property listeners
++     * @type Function[]
++     */
++    listeners: []
++};
++
++/**
++ * Returns the version data for the specified module:
++ *      <dl>
++ *      <dt>name:</dt>      <dd>The name of the module</dd>
++ *      <dt>version:</dt>   <dd>The version in use</dd>
++ *      <dt>build:</dt>     <dd>The build number in use</dd>
++ *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
++ *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
++ *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
++ *                 current version and build. If 
++ *                 mainClass.VERSION != version or mainClass.BUILD != build,
++ *                 multiple versions of pieces of the library have been
++ *                 loaded, potentially causing issues.</dd>
++ *       </dl>
++ *
++ * @method getVersion
++ * @static
++ * @param {String}  name the name of the module (event, slider, etc)
++ * @return {Object} The version info
++ */
++YAHOO.env.getVersion = function(name) {
++    return YAHOO.env.modules[name] || null;
++};
++
++/**
++ * Do not fork for a browser if it can be avoided.  Use feature detection when
++ * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
++ * number for the browser engine, 0 otherwise.  This value may or may not map
++ * to the version number of the browser using the engine.  The value is 
++ * presented as a float so that it can easily be used for boolean evaluation 
++ * as well as for looking for a particular range of versions.  Because of this, 
++ * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
++ * reports 1.8).
++ * @class YAHOO.env.ua
++ * @static
++ */
++YAHOO.env.ua = function() {
++
++        var numberfy = function(s) {
++            var c = 0;
++            return parseFloat(s.replace(/\./g, function() {
++                return (c++ == 1) ? '' : '.';
++            }));
++        },
++
++        nav = navigator,
++
++        o = {
++
++        /**
++         * Internet Explorer version number or 0.  Example: 6
++         * @property ie
++         * @type float
++         */
++        ie: 0,
++
++        /**
++         * Opera version number or 0.  Example: 9.2
++         * @property opera
++         * @type float
++         */
++        opera: 0,
++
++        /**
++         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
++         * is detected but the revision could not be found. Other browsers
++         * will be 0.  Example: 1.8
++         * <pre>
++         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
++         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
++         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
++         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
++         * </pre>
++         * @property gecko
++         * @type float
++         */
++        gecko: 0,
++
++        /**
++         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
++         * will evaluate to 1, other browsers 0.  Example: 418.9.1
++         * <pre>
++         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
++         *                                   latest available for Mac OSX 10.3.
++         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
++         * Safari 2.0.4:         418     <-- preventDefault fixed
++         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
++         *                                   different versions of webkit
++         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
++         *                                   updated, but not updated
++         *                                   to the latest patch.
++         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
++         *                                   and many major issues fixed).  
++         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
++         *                                   string when hitting yahoo.com and 
++         *                                   flickr.com.
++         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
++         *                                   from 2.x via the 10.4.11 OS patch
++         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
++         *                                   yahoo.com user agent hack removed.
++         *                                   
++         * </pre>
++         * http://developer.apple.com/internet/safari/uamatrix.html
++         * @property webkit
++         * @type float
++         */
++        webkit: 0,
++
++        /**
++         * The mobile property will be set to a string containing any relevant
++         * user agent information when a modern mobile browser is detected.
++         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
++         * devices with the WebKit-based browser, and Opera Mini.  
++         * @property mobile 
++         * @type string
++         */
++        mobile: null,
++
++        /**
++         * Adobe AIR version number or 0.  Only populated if webkit is detected.
++         * Example: 1.0
++         * @property air
++         * @type float
++         */
++        air: 0,
++
++        /**
++         * Google Caja version number or 0.
++         * @property caja
++         * @type float
++         */
++        caja: nav.cajaVersion,
++
++        /**
++         * Set to true if the page appears to be in SSL
++         * @property secure
++         * @type boolean
++         * @static
++         */
++        secure: false,
++
++        /**
++         * The operating system.  Currently only detecting windows or macintosh
++         * @property os
++         * @type string
++         * @static
++         */
++        os: null
++
++    },
++
++    ua = navigator && navigator.userAgent, 
++    
++    loc = window && window.location,
++
++    href = loc && loc.href,
++    
++    m;
++
++    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
++
++    if (ua) {
++
++        if ((/windows|win32/i).test(ua)) {
++            o.os = 'windows';
++        } else if ((/macintosh/i).test(ua)) {
++            o.os = 'macintosh';
++        }
++    
++        // Modern KHTML browsers should qualify as Safari X-Grade
++        if ((/KHTML/).test(ua)) {
++            o.webkit=1;
++        }
++
++        // Modern WebKit browsers are at least X-Grade
++        m=ua.match(/AppleWebKit\/([^\s]*)/);
++        if (m&&m[1]) {
++            o.webkit=numberfy(m[1]);
++
++            // Mobile browser check
++            if (/ Mobile\//.test(ua)) {
++                o.mobile = "Apple"; // iPhone or iPod Touch
++            } else {
++                m=ua.match(/NokiaN[^\/]*/);
++                if (m) {
++                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
++                }
++            }
++
++            m=ua.match(/AdobeAIR\/([^\s]*)/);
++            if (m) {
++                o.air = m[0]; // Adobe AIR 1.0 or better
++            }
++
++        }
++
++        if (!o.webkit) { // not webkit
++            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
++            m=ua.match(/Opera[\s\/]([^\s]*)/);
++            if (m&&m[1]) {
++                o.opera=numberfy(m[1]);
++                m=ua.match(/Opera Mini[^;]*/);
++                if (m) {
++                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
++                }
++            } else { // not opera or webkit
++                m=ua.match(/MSIE\s([^;]*)/);
++                if (m&&m[1]) {
++                    o.ie=numberfy(m[1]);
++                } else { // not opera, webkit, or ie
++                    m=ua.match(/Gecko\/([^\s]*)/);
++                    if (m) {
++                        o.gecko=1; // Gecko detected, look for revision
++                        m=ua.match(/rv:([^\s\)]*)/);
++                        if (m&&m[1]) {
++                            o.gecko=numberfy(m[1]);
++                        }
++                    }
++                }
++            }
++        }
++    }
++
++    return o;
++}();
++
++/*
++ * Initializes the global by creating the default namespaces and applying
++ * any new configuration information that is detected.  This is the setup
++ * for env.
++ * @method init
++ * @static
++ * @private
++ */
++(function() {
++    YAHOO.namespace("util", "widget", "example");
++    /*global YAHOO_config*/
++    if ("undefined" !== typeof YAHOO_config) {
++        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
++        if (l) {
++            // if YAHOO is loaded multiple times we need to check to see if
++            // this is a new config object.  If it is, add the new component
++            // load listener to the stack
++            for (i=0; i<ls.length; i++) {
++                if (ls[i] == l) {
++                    unique = false;
++                    break;
++                }
++            }
++
++            if (unique) {
++                ls.push(l);
++            }
++        }
++    }
++})();
++/**
++ * Provides the language utilites and extensions used by the library
++ * @class YAHOO.lang
++ */
++YAHOO.lang = YAHOO.lang || {};
++
++(function() {
++
++
++var L = YAHOO.lang,
++
++    OP = Object.prototype,
++    ARRAY_TOSTRING = '[object Array]',
++    FUNCTION_TOSTRING = '[object Function]',
++    OBJECT_TOSTRING = '[object Object]',
++    NOTHING = [],
++
++    // ADD = ["toString", "valueOf", "hasOwnProperty"],
++    ADD = ["toString", "valueOf"],
++
++    OB = {
++
++    /**
++     * Determines wheather or not the provided object is an array.
++     * @method isArray
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isArray: function(o) { 
++        return OP.toString.apply(o) === ARRAY_TOSTRING;
++    },
++
++    /**
++     * Determines whether or not the provided object is a boolean
++     * @method isBoolean
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isBoolean: function(o) {
++        return typeof o === 'boolean';
++    },
++    
++    /**
++     * Determines whether or not the provided object is a function.
++     * Note: Internet Explorer thinks certain functions are objects:
++     *
++     * var obj = document.createElement("object");
++     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
++     *
++     * var input = document.createElement("input"); // append to body
++     * YAHOO.lang.isFunction(input.focus) // reports false in IE
++     *
++     * You will have to implement additional tests if these functions
++     * matter to you.
++     *
++     * @method isFunction
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isFunction: function(o) {
++        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
++    },
++        
++    /**
++     * Determines whether or not the provided object is null
++     * @method isNull
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNull: function(o) {
++        return o === null;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a legal number
++     * @method isNumber
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNumber: function(o) {
++        return typeof o === 'number' && isFinite(o);
++    },
++      
++    /**
++     * Determines whether or not the provided object is of type object
++     * or function
++     * @method isObject
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */  
++    isObject: function(o) {
++return (o && (typeof o === 'object' || L.isFunction(o))) || false;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a string
++     * @method isString
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isString: function(o) {
++        return typeof o === 'string';
++    },
++        
++    /**
++     * Determines whether or not the provided object is undefined
++     * @method isUndefined
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isUndefined: function(o) {
++        return typeof o === 'undefined';
++    },
++    
++ 
++    /**
++     * IE will not enumerate native functions in a derived object even if the
++     * function was overridden.  This is a workaround for specific functions 
++     * we care about on the Object prototype. 
++     * @property _IEEnumFix
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @static
++     * @private
++     */
++    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
++            var i, fname, f;
++            for (i=0;i<ADD.length;i=i+1) {
++
++                fname = ADD[i];
++                f = s[fname];
++
++                if (L.isFunction(f) && f!=OP[fname]) {
++                    r[fname]=f;
++                }
++            }
++    } : function(){},
++       
++    /**
++     * Utility to set up the prototype, constructor and superclass properties to
++     * support an inheritance strategy that can chain constructors and methods.
++     * Static members will not be inherited.
++     *
++     * @method extend
++     * @static
++     * @param {Function} subc   the object to modify
++     * @param {Function} superc the object to inherit
++     * @param {Object} overrides  additional properties/methods to add to the
++     *                              subclass prototype.  These will override the
++     *                              matching items obtained from the superclass 
++     *                              if present.
++     */
++    extend: function(subc, superc, overrides) {
++        if (!superc||!subc) {
++            throw new Error("extend failed, please check that " +
++                            "all dependencies are included.");
++        }
++        var F = function() {}, i;
++        F.prototype=superc.prototype;
++        subc.prototype=new F();
++        subc.prototype.constructor=subc;
++        subc.superclass=superc.prototype;
++        if (superc.prototype.constructor == OP.constructor) {
++            superc.prototype.constructor=superc;
++        }
++    
++        if (overrides) {
++            for (i in overrides) {
++                if (L.hasOwnProperty(overrides, i)) {
++                    subc.prototype[i]=overrides[i];
++                }
++            }
++
++            L._IEEnumFix(subc.prototype, overrides);
++        }
++    },
++   
++    /**
++     * Applies all properties in the supplier to the receiver if the
++     * receiver does not have these properties yet.  Optionally, one or 
++     * more methods/properties can be specified (as additional 
++     * parameters).  This option will overwrite the property if receiver 
++     * has it already.  If true is passed as the third parameter, all 
++     * properties will be applied and _will_ overwrite properties in 
++     * the receiver.
++     *
++     * @method augmentObject
++     * @static
++     * @since 2.3.0
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything
++     *        in the supplier will be used unless it would
++     *        overwrite an existing property in the receiver. If true
++     *        is specified as the third parameter, all properties will
++     *        be applied and will overwrite an existing property in
++     *        the receiver
++     */
++    augmentObject: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Absorb failed, verify dependencies.");
++        }
++        var a=arguments, i, p, overrideList=a[2];
++        if (overrideList && overrideList!==true) { // only absorb the specified properties
++            for (i=2; i<a.length; i=i+1) {
++                r[a[i]] = s[a[i]];
++            }
++        } else { // take everything, overwriting only if the third parameter is true
++            for (p in s) { 
++                if (overrideList || !(p in r)) {
++                    r[p] = s[p];
++                }
++            }
++            
++            L._IEEnumFix(r, s);
++        }
++    },
++ 
++    /**
++     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
++     * @see YAHOO.lang.augmentObject
++     * @method augmentProto
++     * @static
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything 
++     *        in the supplier will be used unless it would overwrite an existing 
++     *        property in the receiver.  if true is specified as the third 
++     *        parameter, all properties will be applied and will overwrite an 
++     *        existing property in the receiver
++     */
++    augmentProto: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Augment failed, verify dependencies.");
++        }
++        //var a=[].concat(arguments);
++        var a=[r.prototype,s.prototype], i;
++        for (i=2;i<arguments.length;i=i+1) {
++            a.push(arguments[i]);
++        }
++        L.augmentObject.apply(this, a);
++    },
++
++      
++    /**
++     * Returns a simple string representation of the object or array.
++     * Other types of objects will be returned unprocessed.  Arrays
++     * are expected to be indexed.  Use object notation for
++     * associative arrays.
++     * @method dump
++     * @since 2.3.0
++     * @param o {Object} The object to dump
++     * @param d {int} How deep to recurse child objects, default 3
++     * @return {String} the dump result
++     */
++    dump: function(o, d) {
++        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
++            COMMA=', ', ARROW=' => ';
++
++        // Cast non-objects to string
++        // Skip dates because the std toString is what we want
++        // Skip HTMLElement-like objects because trying to dump 
++        // an element will cause an unhandled exception in FF 2.x
++        if (!L.isObject(o)) {
++            return o + "";
++        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
++            return o;
++        } else if  (L.isFunction(o)) {
++            return FUN;
++        }
++
++        // dig into child objects the depth specifed. Default 3
++        d = (L.isNumber(d)) ? d : 3;
++
++        // arrays [1, 2, 3]
++        if (L.isArray(o)) {
++            s.push("[");
++            for (i=0,len=o.length;i<len;i=i+1) {
++                if (L.isObject(o[i])) {
++                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                } else {
++                    s.push(o[i]);
++                }
++                s.push(COMMA);
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("]");
++        // objects {k1 => v1, k2 => v2}
++        } else {
++            s.push("{");
++            for (i in o) {
++                if (L.hasOwnProperty(o, i)) {
++                    s.push(i + ARROW);
++                    if (L.isObject(o[i])) {
++                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                    } else {
++                        s.push(o[i]);
++                    }
++                    s.push(COMMA);
++                }
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("}");
++        }
++
++        return s.join("");
++    },
++
++    /**
++     * Does variable substitution on a string. It scans through the string 
++     * looking for expressions enclosed in { } braces. If an expression 
++     * is found, it is used a key on the object.  If there is a space in
++     * the key, the first word is used for the key and the rest is provided
++     * to an optional function to be used to programatically determine the
++     * value (the extra information might be used for this decision). If 
++     * the value for the key in the object, or what is returned from the
++     * function has a string value, number value, or object value, it is 
++     * substituted for the bracket expression and it repeats.  If this
++     * value is an object, it uses the Object's toString() if this has
++     * been overridden, otherwise it does a shallow dump of the key/value
++     * pairs.
++     * @method substitute
++     * @since 2.3.0
++     * @param s {String} The string that will be modified.
++     * @param o {Object} An object containing the replacement values
++     * @param f {Function} An optional function that can be used to
++     *                     process each match.  It receives the key,
++     *                     value, and any extra metadata included with
++     *                     the key inside of the braces.
++     * @return {String} the substituted string
++     */
++    substitute: function (s, o, f) {
++        var i, j, k, key, v, meta, saved=[], token, 
++            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
++            dump, objstr;
++
++
++        for (;;) {
++            i = s.lastIndexOf(LBRACE);
++            if (i < 0) {
++                break;
++            }
++            j = s.indexOf(RBRACE, i);
++            if (i + 1 >= j) {
++                break;
++            }
++
++            //Extract key and meta info 
++            token = s.substring(i + 1, j);
++            key = token;
++            meta = null;
++            k = key.indexOf(SPACE);
++            if (k > -1) {
++                meta = key.substring(k + 1);
++                key = key.substring(0, k);
++            }
++
++            // lookup the value
++            v = o[key];
++
++            // if a substitution function was provided, execute it
++            if (f) {
++                v = f(key, v, meta);
++            }
++
++            if (L.isObject(v)) {
++                if (L.isArray(v)) {
++                    v = L.dump(v, parseInt(meta, 10));
++                } else {
++                    meta = meta || "";
++
++                    // look for the keyword 'dump', if found force obj dump
++                    dump = meta.indexOf(DUMP);
++                    if (dump > -1) {
++                        meta = meta.substring(4);
++                    }
++
++                    objstr = v.toString();
++
++                    // use the toString if it is not the Object toString 
++                    // and the 'dump' meta info was not found
++                    if (objstr === OBJECT_TOSTRING || dump > -1) {
++                        v = L.dump(v, parseInt(meta, 10));
++                    } else {
++                        v = objstr;
++                    }
++                }
++            } else if (!L.isString(v) && !L.isNumber(v)) {
++                // This {block} has no replace string. Save it for later.
++                v = "~-" + saved.length + "-~";
++                saved[saved.length] = token;
++
++                // break;
++            }
++
++            s = s.substring(0, i) + v + s.substring(j + 1);
++
++
++        }
++
++        // restore saved {block}s
++        for (i=saved.length-1; i>=0; i=i-1) {
++            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
++        }
++
++        return s;
++    },
++
++
++    /**
++     * Returns a string without any leading or trailing whitespace.  If 
++     * the input is not a string, the input will be returned untouched.
++     * @method trim
++     * @since 2.3.0
++     * @param s {string} the string to trim
++     * @return {string} the trimmed string
++     */
++    trim: function(s){
++        try {
++            return s.replace(/^\s+|\s+$/g, "");
++        } catch(e) {
++            return s;
++        }
++    },
++
++    /**
++     * Returns a new object containing all of the properties of
++     * all the supplied objects.  The properties from later objects
++     * will overwrite those in earlier objects.
++     * @method merge
++     * @since 2.3.0
++     * @param arguments {Object*} the objects to merge
++     * @return the new merged object
++     */
++    merge: function() {
++        var o={}, a=arguments, l=a.length, i;
++        for (i=0; i<l; i=i+1) {
++            L.augmentObject(o, a[i], true);
++        }
++        return o;
++    },
++
++    /**
++     * Executes the supplied function in the context of the supplied 
++     * object 'when' milliseconds later.  Executes the function a 
++     * single time unless periodic is set to true.
++     * @method later
++     * @since 2.4.0
++     * @param when {int} the number of milliseconds to wait until the fn 
++     * is executed
++     * @param o the context object
++     * @param fn {Function|String} the function to execute or the name of 
++     * the method in the 'o' object to execute
++     * @param data [Array] data that is provided to the function.  This accepts
++     * either a single item or an array.  If an array is provided, the
++     * function is executed with one parameter for each array item.  If
++     * you need to pass a single array parameter, it needs to be wrapped in
++     * an array [myarray]
++     * @param periodic {boolean} if true, executes continuously at supplied 
++     * interval until canceled
++     * @return a timer object. Call the cancel() method on this object to 
++     * stop the timer.
++     */
++    later: function(when, o, fn, data, periodic) {
++        when = when || 0; 
++        o = o || {};
++        var m=fn, d=data, f, r;
++
++        if (L.isString(fn)) {
++            m = o[fn];
++        }
++
++        if (!m) {
++            throw new TypeError("method undefined");
++        }
++
++        if (d && !L.isArray(d)) {
++            d = [data];
++        }
++
++        f = function() {
++            m.apply(o, d || NOTHING);
++        };
++
++        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
++
++        return {
++            interval: periodic,
++            cancel: function() {
++                if (this.interval) {
++                    clearInterval(r);
++                } else {
++                    clearTimeout(r);
++                }
++            }
++        };
++    },
++    
++    /**
++     * A convenience method for detecting a legitimate non-null value.
++     * Returns false for null/undefined/NaN, true for other values, 
++     * including 0/false/''
++     * @method isValue
++     * @since 2.3.0
++     * @param o {any} the item to test
++     * @return {boolean} true if it is not null/undefined/NaN || false
++     */
++    isValue: function(o) {
++        // return (o || o === false || o === 0 || o === ''); // Infinity fails
++return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
++    }
++
++};
++
++/**
++ * Determines whether or not the property was added
++ * to the object instance.  Returns false if the property is not present
++ * in the object, or was inherited from the prototype.
++ * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
++ * There is a discrepancy between YAHOO.lang.hasOwnProperty and
++ * Object.prototype.hasOwnProperty when the property is a primitive added to
++ * both the instance AND prototype with the same value:
++ * <pre>
++ * var A = function() {};
++ * A.prototype.foo = 'foo';
++ * var a = new A();
++ * a.foo = 'foo';
++ * alert(a.hasOwnProperty('foo')); // true
++ * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
++ * </pre>
++ * @method hasOwnProperty
++ * @param {any} o The object being testing
++ * @param prop {string} the name of the property to test
++ * @return {boolean} the result
++ */
++L.hasOwnProperty = (OP.hasOwnProperty) ?
++    function(o, prop) {
++        return o && o.hasOwnProperty(prop);
++    } : function(o, prop) {
++        return !L.isUndefined(o[prop]) && 
++                o.constructor.prototype[prop] !== o[prop];
++    };
++
++// new lang wins
++OB.augmentObject(L, OB, true);
++
++/*
++ * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
++ * @class YAHOO.util.Lang
++ */
++YAHOO.util.Lang = L;
++ 
++/**
++ * Same as YAHOO.lang.augmentObject, except it only applies prototype 
++ * properties.  This is an alias for augmentProto.
++ * @see YAHOO.lang.augmentObject
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*|boolean}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver.  if true
++ *        is specified as the third parameter, all properties will
++ *        be applied and will overwrite an existing property in
++ *        the receiver
++ */
++L.augment = L.augmentProto;
++
++/**
++ * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
++ * @for YAHOO
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver
++ */
++YAHOO.augment = L.augmentProto;
++       
++/**
++ * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
++ * @method extend
++ * @static
++ * @param {Function} subc   the object to modify
++ * @param {Function} superc the object to inherit
++ * @param {Object} overrides  additional properties/methods to add to the
++ *        subclass prototype.  These will override the
++ *        matching items obtained from the superclass if present.
++ */
++YAHOO.extend = L.extend;
++
++})();
++YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuiloader-dom-event/yuiloader-dom-event.js b/pylons_app/public/js/yui/yuiloader-dom-event/yuiloader-dom-event.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuiloader-dom-event/yuiloader-dom-event.js
+@@ -0,0 +1,17 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
++YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"2.8.0r4/build/","base":"http://yui.yahooapis.com/2.8.0r4/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemeth"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
++i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}m.requires.push(smod);}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});
++}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};this.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js");},scope:this},"js");return;}this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort();}return;}if(m.type!=="js"){this._loadCount++;continue;}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data});}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data});}else{this._onFailure.call(this.varName+" reference failure");}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data});},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data);};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str;},_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.0r4",build:"2449"});
++(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z="parentNode",l="nodeType",C="tagName",O="scrollLeft",i="scrollTop",Q="getBoundingClientRect",w="getComputedStyle",a="currentStyle",M="CSS1Compat",c="BackCompat",g="class",F="className",J="",B=" ",s="(?:^|\\s)",k="(?= |$)",U="g",p="position",f="fixed",V="relative",j="left",o="top",r="medium",q="borderLeftWidth",R="borderTopWidth",D=m.opera,I=m.webkit,H=m.gecko,T=m.ie;E.Dom={CUSTOM_ATTRIBUTES:(!W.hasAttribute)?{"for":"htmlFor","class":F}:{"htmlFor":"for","className":g},DOT_ATTRIBUTES:{},get:function(z){var AB,x,AA,y,Y,G;if(z){if(z[l]||z.item){return z;}if(typeof z==="string"){AB=z;z=K.getElementById(z);G=(z)?z.attributes:null;if(z&&G&&G.id&&G.id.value===AB){return z;}else{if(z&&K.all){z=null;x=K.all[AB];for(y=0,Y=x.length;y<Y;++y){if(x[y].id===AB){return x[y];}}}}return z;}if(YAHOO.util.Element&&z instanceof YAHOO.util.Element){z=z.get("element");}if("length" in z){AA=[];for(y=0,Y=z.length;y<Y;++y){AA[AA.length]=E.Dom.get(z[y]);}return AA;}return z;}return null;},getComputedStyle:function(G,Y){if(window[w]){return G[e][n][w](G,null)[Y];}else{if(G[a]){return E.Dom.IE_ComputedStyle.get(G,Y);}}},getStyle:function(G,Y){return E.Dom.batch(G,E.Dom._getStyle,Y);},_getStyle:function(){if(window[w]){return function(G,y){y=(y==="float")?y="cssFloat":E.Dom._toCamel(y);var x=G.style[y],Y;if(!x){Y=G[e][n][w](G,null);if(Y){x=Y[y];}}return x;};}else{if(W[a]){return function(G,y){var x;switch(y){case"opacity":x=100;try{x=G.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(z){try{x=G.filters("alpha").opacity;}catch(Y){}}return x/100;case"float":y="styleFloat";default:y=E.Dom._toCamel(y);x=G[a]?G[a][y]:null;return(G.style[y]||x);}};}}}(),setStyle:function(G,Y,x){E.Dom.batch(G,E.Dom._setStyle,{prop:Y,val:x});},_setStyle:function(){if(T){return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){switch(x){case"opacity":if(L.isString(Y.style.filter)){Y.style.filter="alpha(opacity="+y*100+")";if(!Y[a]||!Y[a].hasLayout){Y.style.zoom=1;}}break;case"float":x="styleFloat";default:Y.style[x]=y;}}else{}};}else{return function(Y,G){var x=E.Dom._toCamel(G.prop),y=G.val;if(Y){if(x=="float"){x="cssFloat";}Y.style[x]=y;}else{}};}}(),getXY:function(G){return E.Dom.batch(G,E.Dom._getXY);},_canPosition:function(G){return(E.Dom._getStyle(G,"display")!=="none"&&E.Dom._inDoc(G));},_getXY:function(){if(K[v][Q]){return function(y){var z,Y,AA,AF,AE,AD,AC,G,x,AB=Math.floor,AG=false;if(E.Dom._canPosition(y)){AA=y[Q]();AF=y[e];z=E.Dom.getDocumentScrollLeft(AF);Y=E.Dom.getDocumentScrollTop(AF);AG=[AB(AA[j]),AB(AA[o])];if(T&&m.ie<8){AE=2;AD=2;AC=AF[t];if(m.ie===6){if(AC!==c){AE=0;AD=0;}}if((AC===c)){G=S(AF[v],q);x=S(AF[v],R);if(G!==r){AE=parseInt(G,10);}if(x!==r){AD=parseInt(x,10);}}AG[0]-=AE;AG[1]-=AD;}if((Y||z)){AG[0]+=z;AG[1]+=Y;}AG[0]=AB(AG[0]);AG[1]=AB(AG[1]);}else{}return AG;};}else{return function(y){var x,Y,AA,AB,AC,z=false,G=y;if(E.Dom._canPosition(y)){z=[y[b],y[P]];x=E.Dom.getDocumentScrollLeft(y[e]);Y=E.Dom.getDocumentScrollTop(y[e]);AC=((H||m.webkit>519)?true:false);while((G=G[u])){z[0]+=G[b];z[1]+=G[P];if(AC){z=E.Dom._calcBorders(G,z);}}if(E.Dom._getStyle(y,p)!==f){G=y;while((G=G[Z])&&G[C]){AA=G[i];AB=G[O];if(H&&(E.Dom._getStyle(G,"overflow")!=="visible")){z=E.Dom._calcBorders(G,z);}if(AA||AB){z[0]-=AB;z[1]-=AA;}}z[0]+=x;z[1]+=Y;}else{if(D){z[0]-=x;z[1]-=Y;}else{if(I||H){z[0]+=x;z[1]+=Y;}}}z[0]=Math.floor(z[0]);z[1]=Math.floor(z[1]);}else{}return z;};}}(),getX:function(G){var Y=function(x){return E.Dom.getXY(x)[0];};return E.Dom.batch(G,Y,E.Dom,true);},getY:function(G){var Y=function(x){return E.Dom.getXY(x)[1];};return E.Dom.batch(G,Y,E.Dom,true);},setXY:function(G,x,Y){E.Dom.batch(G,E.Dom._setXY,{pos:x,noRetry:Y});},_setXY:function(G,z){var AA=E.Dom._getStyle(G,p),y=E.Dom.setStyle,AD=z.pos,Y=z.noRetry,AB=[parseInt(E.Dom.getComputedStyle(G,j),10),parseInt(E.Dom.getComputedStyle(G,o),10)],AC,x;if(AA=="static"){AA=V;y(G,p,AA);}AC=E.Dom._getXY(G);if(!AD||AC===false){return false;}if(isNaN(AB[0])){AB[0]=(AA==V)?0:G[b];}if(isNaN(AB[1])){AB[1]=(AA==V)?0:G[P];}if(AD[0]!==null){y(G,j,AD[0]-AC[0]+AB[0]+"px");}if(AD[1]!==null){y(G,o,AD[1]-AC[1]+AB[1]+"px");}if(!Y){x=E.Dom._getXY(G);if((AD[0]!==null&&x[0]!=AD[0])||(AD[1]!==null&&x[1]!=AD[1])){E.Dom._setXY(G,{pos:AD,noRetry:true});}}},setX:function(Y,G){E.Dom.setXY(Y,[G,null]);},setY:function(G,Y){E.Dom.setXY(G,[null,Y]);},getRegion:function(G){var Y=function(x){var y=false;if(E.Dom._canPosition(x)){y=E.Region.getRegion(x);}else{}return y;};return E.Dom.batch(G,Y,E.Dom,true);},getClientWidth:function(){return E.Dom.getViewportWidth();},getClientHeight:function(){return E.Dom.getViewportHeight();},getElementsByClassName:function(AB,AF,AC,AE,x,AD){AF=AF||"*";AC=(AC)?E.Dom.get(AC):null||K;if(!AC){return[];}var Y=[],G=AC.getElementsByTagName(AF),z=E.Dom.hasClass;for(var y=0,AA=G.length;y<AA;++y){if(z(G[y],AB)){Y[Y.length]=G[y];}}if(AE){E.Dom.batch(Y,AE,x,AD);}return Y;},hasClass:function(Y,G){return E.Dom.batch(Y,E.Dom._hasClass,G);},_hasClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(Y.exec){G=Y.test(y);}else{G=Y&&(B+y+B).indexOf(B+Y+B)>-1;}}else{}return G;},addClass:function(Y,G){return E.Dom.batch(Y,E.Dom._addClass,G);},_addClass:function(x,Y){var G=false,y;if(x&&Y){y=E.Dom._getAttribute(x,F)||J;if(!E.Dom._hasClass(x,Y)){E.Dom.setAttribute(x,F,A(y+B+Y));G=true;}}else{}return G;},removeClass:function(Y,G){return E.Dom.batch(Y,E.Dom._removeClass,G);},_removeClass:function(y,x){var Y=false,AA,z,G;if(y&&x){AA=E.Dom._getAttribute(y,F)||J;E.Dom.setAttribute(y,F,AA.replace(E.Dom._getClassRegex(x),J));z=E.Dom._getAttribute(y,F);if(AA!==z){E.Dom.setAttribute(y,F,A(z));Y=true;if(E.Dom._getAttribute(y,F)===""){G=(y.hasAttribute&&y.hasAttribute(g))?g:F;
++y.removeAttribute(G);}}}else{}return Y;},replaceClass:function(x,Y,G){return E.Dom.batch(x,E.Dom._replaceClass,{from:Y,to:G});},_replaceClass:function(y,x){var Y,AB,AA,G=false,z;if(y&&x){AB=x.from;AA=x.to;if(!AA){G=false;}else{if(!AB){G=E.Dom._addClass(y,x.to);}else{if(AB!==AA){z=E.Dom._getAttribute(y,F)||J;Y=(B+z.replace(E.Dom._getClassRegex(AB),B+AA)).split(E.Dom._getClassRegex(AA));Y.splice(1,0,B+AA);E.Dom.setAttribute(y,F,A(Y.join(J)));G=true;}}}}else{}return G;},generateId:function(G,x){x=x||"yui-gen";var Y=function(y){if(y&&y.id){return y.id;}var z=x+YAHOO.env._id_counter++;if(y){if(y[e]&&y[e].getElementById(z)){return E.Dom.generateId(y,z+x);}y.id=z;}return z;};return E.Dom.batch(G,Y,E.Dom,true)||Y.apply(E.Dom,arguments);},isAncestor:function(Y,x){Y=E.Dom.get(Y);x=E.Dom.get(x);var G=false;if((Y&&x)&&(Y[l]&&x[l])){if(Y.contains&&Y!==x){G=Y.contains(x);}else{if(Y.compareDocumentPosition){G=!!(Y.compareDocumentPosition(x)&16);}}}else{}return G;},inDocument:function(G,Y){return E.Dom._inDoc(E.Dom.get(G),Y);},_inDoc:function(Y,x){var G=false;if(Y&&Y[C]){x=x||Y[e];G=E.Dom.isAncestor(x[v],Y);}else{}return G;},getElementsBy:function(Y,AF,AB,AD,y,AC,AE){AF=AF||"*";AB=(AB)?E.Dom.get(AB):null||K;if(!AB){return[];}var x=[],G=AB.getElementsByTagName(AF);for(var z=0,AA=G.length;z<AA;++z){if(Y(G[z])){if(AE){x=G[z];break;}else{x[x.length]=G[z];}}}if(AD){E.Dom.batch(x,AD,y,AC);}return x;},getElementBy:function(x,G,Y){return E.Dom.getElementsBy(x,G,Y,null,null,null,true);},batch:function(x,AB,AA,z){var y=[],Y=(z)?AA:window;x=(x&&(x[C]||x.item))?x:E.Dom.get(x);if(x&&AB){if(x[C]||x.length===undefined){return AB.call(Y,x,AA);}for(var G=0;G<x.length;++G){y[y.length]=AB.call(Y,x[G],AA);}}else{return false;}return y;},getDocumentHeight:function(){var Y=(K[t]!=M||I)?K.body.scrollHeight:W.scrollHeight,G=Math.max(Y,E.Dom.getViewportHeight());return G;},getDocumentWidth:function(){var Y=(K[t]!=M||I)?K.body.scrollWidth:W.scrollWidth,G=Math.max(Y,E.Dom.getViewportWidth());return G;},getViewportHeight:function(){var G=self.innerHeight,Y=K[t];if((Y||T)&&!D){G=(Y==M)?W.clientHeight:K.body.clientHeight;}return G;},getViewportWidth:function(){var G=self.innerWidth,Y=K[t];if(Y||T){G=(Y==M)?W.clientWidth:K.body.clientWidth;}return G;},getAncestorBy:function(G,Y){while((G=G[Z])){if(E.Dom._testElement(G,Y)){return G;}}return null;},getAncestorByClassName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return E.Dom.hasClass(y,G);};return E.Dom.getAncestorBy(Y,x);},getAncestorByTagName:function(Y,G){Y=E.Dom.get(Y);if(!Y){return null;}var x=function(y){return y[C]&&y[C].toUpperCase()==G.toUpperCase();};return E.Dom.getAncestorBy(Y,x);},getPreviousSiblingBy:function(G,Y){while(G){G=G.previousSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getPreviousSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getPreviousSiblingBy(G);},getNextSiblingBy:function(G,Y){while(G){G=G.nextSibling;if(E.Dom._testElement(G,Y)){return G;}}return null;},getNextSibling:function(G){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getNextSiblingBy(G);},getFirstChildBy:function(G,x){var Y=(E.Dom._testElement(G.firstChild,x))?G.firstChild:null;return Y||E.Dom.getNextSiblingBy(G.firstChild,x);},getFirstChild:function(G,Y){G=E.Dom.get(G);if(!G){return null;}return E.Dom.getFirstChildBy(G);},getLastChildBy:function(G,x){if(!G){return null;}var Y=(E.Dom._testElement(G.lastChild,x))?G.lastChild:null;return Y||E.Dom.getPreviousSiblingBy(G.lastChild,x);},getLastChild:function(G){G=E.Dom.get(G);return E.Dom.getLastChildBy(G);},getChildrenBy:function(Y,y){var x=E.Dom.getFirstChildBy(Y,y),G=x?[x]:[];E.Dom.getNextSiblingBy(x,function(z){if(!y||y(z)){G[G.length]=z;}return false;});return G;},getChildren:function(G){G=E.Dom.get(G);if(!G){}return E.Dom.getChildrenBy(G);},getDocumentScrollLeft:function(G){G=G||K;return Math.max(G[v].scrollLeft,G.body.scrollLeft);},getDocumentScrollTop:function(G){G=G||K;return Math.max(G[v].scrollTop,G.body.scrollTop);},insertBefore:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}return G[Z].insertBefore(Y,G);},insertAfter:function(Y,G){Y=E.Dom.get(Y);G=E.Dom.get(G);if(!Y||!G||!G[Z]){return null;}if(G.nextSibling){return G[Z].insertBefore(Y,G.nextSibling);}else{return G[Z].appendChild(Y);}},getClientRegion:function(){var x=E.Dom.getDocumentScrollTop(),Y=E.Dom.getDocumentScrollLeft(),y=E.Dom.getViewportWidth()+Y,G=E.Dom.getViewportHeight()+x;return new E.Region(x,y,G,Y);},setAttribute:function(Y,G,x){E.Dom.batch(Y,E.Dom._setAttribute,{attr:G,val:x});},_setAttribute:function(x,Y){var G=E.Dom._toCamel(Y.attr),y=Y.val;if(x&&x.setAttribute){if(E.Dom.DOT_ATTRIBUTES[G]){x[G]=y;}else{G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;x.setAttribute(G,y);}}else{}},getAttribute:function(Y,G){return E.Dom.batch(Y,E.Dom._getAttribute,G);},_getAttribute:function(Y,G){var x;G=E.Dom.CUSTOM_ATTRIBUTES[G]||G;if(Y&&Y.getAttribute){x=Y.getAttribute(G,2);}else{}return x;},_toCamel:function(Y){var x=d;function G(y,z){return z.toUpperCase();}return x[Y]||(x[Y]=Y.indexOf("-")===-1?Y:Y.replace(/-([a-z])/gi,G));},_getClassRegex:function(Y){var G;if(Y!==undefined){if(Y.exec){G=Y;}else{G=h[Y];if(!G){Y=Y.replace(E.Dom._patterns.CLASS_RE_TOKENS,"\\$1");G=h[Y]=new RegExp(s+Y+k,U);}}}return G;},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(G,Y){return G&&G[l]==1&&(!Y||Y(G));},_calcBorders:function(x,y){var Y=parseInt(E.Dom[w](x,R),10)||0,G=parseInt(E.Dom[w](x,q),10)||0;if(H){if(N.test(x[C])){Y=0;G=0;}}y[0]+=G;y[1]+=Y;return y;}};var S=E.Dom[w];if(m.opera){E.Dom[w]=function(Y,G){var x=S(Y,G);if(X.test(G)){x=E.Dom.Color.toRGB(x);}return x;};}if(m.webkit){E.Dom[w]=function(Y,G){var x=S(Y,G);if(x==="rgba(0, 0, 0, 0)"){x="transparent";}return x;};}if(m.ie&&m.ie>=8&&K.documentElement.hasAttribute){E.Dom.DOT_ATTRIBUTES.type=true;}})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.y=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this.x=B;this[0]=B;
++this.width=this.right-this.left;this.height=this.bottom-this.top;};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top),D=Math.min(this.right,E.right),A=Math.min(this.bottom,E.bottom),B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top),D=Math.max(this.right,E.right),A=Math.max(this.bottom,E.bottom),B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D),C=F[1],E=F[0]+D.offsetWidth,A=F[1]+D.offsetHeight,B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(YAHOO.lang.isArray(A)){B=A[1];A=A[0];}YAHOO.util.Point.superclass.constructor.call(this,B,A,B,A);};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var B=YAHOO.util,A="clientTop",F="clientLeft",J="parentNode",K="right",W="hasLayout",I="px",U="opacity",L="auto",D="borderLeftWidth",G="borderTopWidth",P="borderRightWidth",V="borderBottomWidth",S="visible",Q="transparent",N="height",E="width",H="style",T="currentStyle",R=/^width|height$/,O=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,M={get:function(X,Z){var Y="",a=X[T][Z];if(Z===U){Y=B.Dom.getStyle(X,U);}else{if(!a||(a.indexOf&&a.indexOf(I)>-1)){Y=a;}else{if(B.Dom.IE_COMPUTED[Z]){Y=B.Dom.IE_COMPUTED[Z](X,Z);}else{if(O.test(a)){Y=B.Dom.IE.ComputedStyle.getPixel(X,Z);}else{Y=a;}}}}return Y;},getOffset:function(Z,e){var b=Z[T][e],X=e.charAt(0).toUpperCase()+e.substr(1),c="offset"+X,Y="pixel"+X,a="",d;if(b==L){d=Z[c];if(d===undefined){a=0;}a=d;if(R.test(e)){Z[H][e]=d;if(Z[c]>d){a=d-(Z[c]-d);}Z[H][e]=L;}}else{if(!Z[H][Y]&&!Z[H][e]){Z[H][e]=b;}a=Z[H][Y];}return a+I;},getBorderWidth:function(X,Z){var Y=null;if(!X[T][W]){X[H].zoom=1;}switch(Z){case G:Y=X[A];break;case V:Y=X.offsetHeight-X.clientHeight-X[A];break;case D:Y=X[F];break;case P:Y=X.offsetWidth-X.clientWidth-X[F];break;}return Y+I;},getPixel:function(Y,X){var a=null,b=Y[T][K],Z=Y[T][X];Y[H][K]=Z;a=Y[H].pixelRight;Y[H][K]=b;return a+I;},getMargin:function(Y,X){var Z;if(Y[T][X]==L){Z=0+I;}else{Z=B.Dom.IE.ComputedStyle.getPixel(Y,X);}return Z;},getVisibility:function(Y,X){var Z;while((Z=Y[T])&&Z[X]=="inherit"){Y=Y[J];}return(Z)?Z[X]:S;},getColor:function(Y,X){return B.Dom.Color.toRGB(Y[T][X])||Q;},getBorderColor:function(Y,X){var Z=Y[T],a=Z[X]||Z.color;return B.Dom.Color.toRGB(B.Dom.Color.toHex(a));}},C={};C.top=C.right=C.bottom=C.left=C[E]=C[N]=M.getOffset;C.color=M.getColor;C[G]=C[P]=C[V]=C[D]=M.getBorderWidth;C.marginTop=C.marginRight=C.marginBottom=C.marginLeft=M.getMargin;C.visibility=M.getVisibility;C.borderColor=C.borderTopColor=C.borderRightColor=C.borderBottomColor=C.borderLeftColor=M.getBorderColor;B.Dom.IE_COMPUTED=C;B.Dom.IE_ComputedStyle=M;})();(function(){var C="toString",A=parseInt,B=RegExp,D=YAHOO.util;D.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(E){if(!D.Dom.Color.re_RGB.test(E)){E=D.Dom.Color.toHex(E);}if(D.Dom.Color.re_hex.exec(E)){E="rgb("+[A(B.$1,16),A(B.$2,16),A(B.$3,16)].join(", ")+")";}return E;},toHex:function(H){H=D.Dom.Color.KEYWORDS[H]||H;if(D.Dom.Color.re_RGB.exec(H)){var G=(B.$1.length===1)?"0"+B.$1:Number(B.$1),F=(B.$2.length===1)?"0"+B.$2:Number(B.$2),E=(B.$3.length===1)?"0"+B.$3:Number(B.$3);H=[G[C](16),F[C](16),E[C](16)].join("");}if(H.length<6){H=H.replace(D.Dom.Color.re_hex3,"$1$1");}if(H!=="transparent"&&H.indexOf("#")<0){H="#"+H;}return H.toLowerCase();}};}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.0r4",build:"2449"});YAHOO.util.CustomEvent=function(D,C,B,A,E){this.type=D;this.scope=C||window;this.silent=B;this.fireOnce=E;this.fired=false;this.firedWith=null;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var F="_YUICEOnSubscribe";if(D!==F){this.subscribeEvent=new YAHOO.util.CustomEvent(F,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,D){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,D);}var A=new YAHOO.util.Subscriber(B,C,D);if(this.fireOnce&&this.fired){this.notify(A,this.firedWith);}else{this.subscribers.push(A);}},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true;}}return E;},fire:function(){this.lastError=null;var H=[],A=this.subscribers.length;var D=[].slice.call(arguments,0),C=true,F,B=false;if(this.fireOnce){if(this.fired){return true;}else{this.firedWith=D;}}this.fired=true;if(!A&&this.silent){return true;}if(!this.silent){}var E=this.subscribers.slice();for(F=0;F<A;++F){var G=E[F];if(!G){B=true;}else{C=this.notify(G,D);if(false===C){if(!this.silent){}break;}}}return(C!==false);},notify:function(F,C){var B,H=null,E=F.getScope(this.scope),A=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(C.length>0){H=C[0];}try{B=F.fn.call(E,H,F.obj);}catch(G){this.lastError=G;if(A){throw G;}}}else{try{B=F.fn.call(E,this.type,C,F.obj);}catch(D){this.lastError=D;if(A){throw D;}}}return B;},unsubscribeAll:function(){var A=this.subscribers.length,B;for(B=A-1;B>-1;B--){this._delete(B);}this.subscribers=[];return A;},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"context: "+this.scope;}};YAHOO.util.Subscriber=function(A,B,C){this.fn=A;this.obj=YAHOO.lang.isUndefined(B)?null:B;this.overrideContext=C;};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.overrideContext){if(this.overrideContext===true){return this.obj;}else{return this.overrideContext;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B);}else{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var G=false,H=[],J=[],A=0,E=[],B=0,C={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},D=YAHOO.env.ua.ie,F="focusin",I="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:D,_interval:null,_dri:null,_specialTypes:{focusin:(D?"focusin":"focus"),focusout:(D?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true);}},onAvailable:function(Q,M,O,P,N){var K=(YAHOO.lang.isString(Q))?[Q]:Q;for(var L=0;L<K.length;L=L+1){E.push({id:K[L],fn:M,obj:O,overrideContext:P,checkReady:N});}A=this.POLL_RETRYS;this.startInterval();},onContentReady:function(N,K,L,M){this.onAvailable(N,K,L,M,true);},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments);},_addListener:function(M,K,V,P,T,Y){if(!V||!V.call){return false;}if(this._isValidCollection(M)){var W=true;for(var Q=0,S=M.length;Q<S;++Q){W=this.on(M[Q],K,V,P,T)&&W;}return W;}else{if(YAHOO.lang.isString(M)){var O=this.getEl(M);if(O){M=O;}else{this.onAvailable(M,function(){YAHOO.util.Event._addListener(M,K,V,P,T,Y);});return true;}}}if(!M){return false;}if("unload"==K&&P!==this){J[J.length]=[M,K,V,P,T];return true;}var L=M;if(T){if(T===true){L=P;}else{L=T;}}var N=function(Z){return V.call(L,YAHOO.util.Event.getEvent(Z,M),P);};var X=[M,K,V,N,L,P,T,Y];var R=H.length;H[R]=X;try{this._simpleAdd(M,K,N,Y);}catch(U){this.lastError=U;this.removeListener(M,K,V);return false;}return true;},_getType:function(K){return this._specialTypes[K]||K;},addListener:function(M,P,L,N,O){var K=((P==F||P==I)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(M,this._getType(P),L,N,O,K);},addFocusListener:function(L,K,M,N){return this.on(L,F,K,M,N);},removeFocusListener:function(L,K){return this.removeListener(L,F,K);},addBlurListener:function(L,K,M,N){return this.on(L,I,K,M,N);},removeBlurListener:function(L,K){return this.removeListener(L,I,K);},removeListener:function(L,K,R){var M,P,U;K=this._getType(K);if(typeof L=="string"){L=this.getEl(L);}else{if(this._isValidCollection(L)){var S=true;for(M=L.length-1;M>-1;M--){S=(this.removeListener(L[M],K,R)&&S);}return S;}}if(!R||!R.call){return this.purgeElement(L,false,K);}if("unload"==K){for(M=J.length-1;M>-1;M--){U=J[M];if(U&&U[0]==L&&U[1]==K&&U[2]==R){J.splice(M,1);return true;}}return false;}var N=null;var O=arguments[3];if("undefined"===typeof O){O=this._getCacheIndex(H,L,K,R);}if(O>=0){N=H[O];}if(!L||!N){return false;}var T=N[this.CAPTURE]===true?true:false;try{this._simpleRemove(L,K,N[this.WFN],T);}catch(Q){this.lastError=Q;return false;}delete H[O][this.WFN];delete H[O][this.FN];H.splice(O,1);return true;},getTarget:function(M,L){var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L){try{if(L&&3==L.nodeType){return L.parentNode;}}catch(K){}return L;},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft();}}return K;},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop();}}return L;},getXY:function(K){return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement;
++}else{if(L.type=="mouseover"){K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M){if(!M.time){var L=new Date().getTime();try{M.time=L;}catch(K){this.lastError=K;return L;}}return M.time;},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation();}else{K.cancelBubble=true;}},preventDefault:function(K){if(K.preventDefault){K.preventDefault();}else{K.returnValue=false;}},getEvent:function(M,K){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break;}N=N.caller;}}return L;},getCharCode:function(L){var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in C)){K=C[K];}return K;},_getCacheIndex:function(M,P,Q,O){for(var N=0,L=M.length;N<L;N=N+1){var K=M[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==Q){return N;}}return -1;},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+B;++B;K.id=L;}return L;},_isValidCollection:function(L){try{return(L&&typeof L!=="string"&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!=="undefined");}catch(K){return false;}},elCache:{},getEl:function(K){return(typeof K==="string")?document.getElementById(K):K;},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(L){if(!G){G=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L){var K=YAHOO.util.Event;if(!K.DOMReady){K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,"DOMContentLoaded",K._ready);}},_tryPreloadAttach:function(){if(E.length===0){A=0;if(this._interval){this._interval.cancel();this._interval=null;}return;}if(this.locked){return;}if(this.isIE){if(!this.DOMReady){this.startInterval();return;}}this.locked=true;var Q=!G;if(!Q){Q=(A>0&&E.length>0);}var P=[];var R=function(T,U){var S=T;if(U.overrideContext){if(U.overrideContext===true){S=U.obj;}else{S=U.overrideContext;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=E.length;L<K;L=L+1){O=E[L];if(O){N=this.getEl(O.id);if(N){if(O.checkReady){if(G||N.nextSibling||!Q){M.push(O);E[L]=null;}}else{R(N,O);E[L]=null;}}else{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1){O=M[L];R(this.getEl(O.id),O);}A--;if(Q){for(L=E.length-1;L>-1;L--){O=E[L];if(!O||!O.id){E.splice(L,1);}}this.startInterval();}else{if(this._interval){this._interval.cancel();this._interval=null;}}this.locked=false;},purgeElement:function(O,P,R){var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q){for(N=Q.length-1;N>-1;N--){var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes){for(N=0,K=M.childNodes.length;N<K;++N){this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K){var P=[],L;if(!K){L=[H,J];}else{if(K==="unload"){L=[J];}else{K=this._getType(K);L=[H];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1){var T=L[O];if(T){for(var Q=0,S=T.length;Q<S;++Q){var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE])){P.push({type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(R){var L=YAHOO.util.Event,O,N,M,Q,P,S=J.slice(),K;for(O=0,Q=J.length;O<Q;++O){M=S[O];if(M){K=window;if(M[L.ADJ_SCOPE]){if(M[L.ADJ_SCOPE]===true){K=M[L.UNLOAD_OBJ];}else{K=M[L.ADJ_SCOPE];}}M[L.FN].call(K,L.getEvent(R,M[L.EL]),M[L.UNLOAD_OBJ]);S[O]=null;}}M=null;K=null;J=null;if(H){for(N=H.length-1;N>-1;N--){M=H[N];if(M){L.removeListener(M[L.EL],M[L.TYPE],M[L.FN],N);}}M=null;}L._simpleRemove(window,"unload",L._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft)){return[K.scrollTop,K.scrollLeft];}else{if(L){return[L.scrollTop,L.scrollLeft];}else{return[0,0];}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(M,N,L,K){M.addEventListener(N,L,(K));};}else{if(window.attachEvent){return function(M,N,L,K){M.attachEvent("on"+N,L);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(M,N,L,K){M.removeEventListener(N,L,(K));};}else{if(window.detachEvent){return function(L,M,K){L.detachEvent("on"+M,K);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;EU.onFocus=EU.addFocusListener;EU.onBlur=EU.addBlurListener;
++/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller/Diego Perini */
++if(EU.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}else{if(EU.webkit&&EU.webkit<525){EU._dri=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,overrideContext:E});}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G);}}else{var B=true;for(var D in A){if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A){return this.unsubscribe(A);
++},createEvent:function(B,G){this.__yui_events=this.__yui_events||{};var E=G||{},D=this.__yui_events,F;if(D[B]){}else{F=new YAHOO.util.CustomEvent(B,E.scope||this,E.silent,YAHOO.util.CustomEvent.FLAT,E.fireOnce);D[B]=F;if(E.onSubscribeCallback){F.subscribeEvent.subscribe(E.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var A=this.__yui_subscribers[B];if(A){for(var C=0;C<A.length;++C){F.subscribe(A[C].fn,A[C].obj,A[C].overrideContext);}}}return D[B];},fireEvent:function(B){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[B];if(!D){return null;}var A=[];for(var C=1;C<arguments.length;++C){A.push(arguments[C]);}return D.fire.apply(D,A);},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true;}}return false;}};(function(){var A=YAHOO.util.Event,C=YAHOO.lang;YAHOO.util.KeyListener=function(D,I,E,F){if(!D){}else{if(!I){}else{if(!E){}}}if(!F){F=YAHOO.util.KeyListener.KEYDOWN;}var G=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(C.isString(D)){D=document.getElementById(D);}if(C.isFunction(E)){G.subscribe(E);}else{G.subscribe(E.fn,E.scope,E.correctScope);}function H(O,N){if(!I.shift){I.shift=false;}if(!I.alt){I.alt=false;}if(!I.ctrl){I.ctrl=false;}if(O.shiftKey==I.shift&&O.altKey==I.alt&&O.ctrlKey==I.ctrl){var J,M=I.keys,L;if(YAHOO.lang.isArray(M)){for(var K=0;K<M.length;K++){J=M[K];L=A.getCharCode(O);if(J==L){G.fire(L,O);break;}}}else{L=A.getCharCode(O);if(M==L){G.fire(L,O);}}}}this.enable=function(){if(!this.enabled){A.on(D,F,H);this.enabledEvent.fire(I);}this.enabled=true;};this.disable=function(){if(this.enabled){A.removeListener(D,F,H);this.disabledEvent.fire(I);}this.enabled=false;};this.toString=function(){return"KeyListener ["+I.keys+"] "+D.tagName+(D.id?"["+D.id+"]":"");};};var B=YAHOO.util.KeyListener;B.KEYDOWN="keydown";B.KEYUP="keyup";B.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.0r4",build:"2449"});YAHOO.register("yuiloader-dom-event", YAHOO, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuiloader/yuiloader-debug.js b/pylons_app/public/js/yui/yuiloader/yuiloader-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuiloader/yuiloader-debug.js
+@@ -0,0 +1,3879 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The YAHOO object is the single global object used by YUI Library.  It
++ * contains utility function for setting up namespaces, inheritance, and
++ * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
++ * created automatically for and used by the library.
++ * @module yahoo
++ * @title  YAHOO Global
++ */
++
++/**
++ * YAHOO_config is not included as part of the library.  Instead it is an 
++ * object that can be defined by the implementer immediately before 
++ * including the YUI library.  The properties included in this object
++ * will be used to configure global properties needed as soon as the 
++ * library begins to load.
++ * @class YAHOO_config
++ * @static
++ */
++
++/**
++ * A reference to a function that will be executed every time a YAHOO module
++ * is loaded.  As parameter, this function will receive the version
++ * information for the module. See <a href="YAHOO.env.html#getVersion">
++ * YAHOO.env.getVersion</a> for the description of the version data structure.
++ * @property listener
++ * @type Function
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Set to true if the library will be dynamically loaded after window.onload.
++ * Defaults to false 
++ * @property injecting
++ * @type boolean
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Instructs the yuiloader component to dynamically load yui components and
++ * their dependencies.  See the yuiloader documentation for more information
++ * about dynamic loading
++ * @property load
++ * @static
++ * @default undefined
++ * @see yuiloader
++ */
++
++/**
++ * Forces the use of the supplied locale where applicable in the library
++ * @property locale
++ * @type string
++ * @static
++ * @default undefined
++ */
++
++if (typeof YAHOO == "undefined" || !YAHOO) {
++    /**
++     * The YAHOO global namespace object.  If YAHOO is already defined, the
++     * existing YAHOO object will not be overwritten so that defined
++     * namespaces are preserved.
++     * @class YAHOO
++     * @static
++     */
++    var YAHOO = {};
++}
++
++/**
++ * Returns the namespace specified and creates it if it doesn't exist
++ * <pre>
++ * YAHOO.namespace("property.package");
++ * YAHOO.namespace("YAHOO.property.package");
++ * </pre>
++ * Either of the above would create YAHOO.property, then
++ * YAHOO.property.package
++ *
++ * Be careful when naming packages. Reserved words may work in some browsers
++ * and not others. For instance, the following will fail in Safari:
++ * <pre>
++ * YAHOO.namespace("really.long.nested.namespace");
++ * </pre>
++ * This fails because "long" is a future reserved word in ECMAScript
++ *
++ * For implementation code that uses YUI, do not create your components
++ * in the namespaces defined by YUI (
++ * <code>YAHOO.util</code>, 
++ * <code>YAHOO.widget</code>, 
++ * <code>YAHOO.lang</code>, 
++ * <code>YAHOO.tool</code>, 
++ * <code>YAHOO.example</code>, 
++ * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
++ *
++ * @method namespace
++ * @static
++ * @param  {String*} arguments 1-n namespaces to create 
++ * @return {Object}  A reference to the last namespace object created
++ */
++YAHOO.namespace = function() {
++    var a=arguments, o=null, i, j, d;
++    for (i=0; i<a.length; i=i+1) {
++        d=(""+a[i]).split(".");
++        o=YAHOO;
++
++        // YAHOO is implied, so it is ignored if it is included
++        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
++            o[d[j]]=o[d[j]] || {};
++            o=o[d[j]];
++        }
++    }
++
++    return o;
++};
++
++/**
++ * Uses YAHOO.widget.Logger to output a log message, if the widget is
++ * available.
++ *
++ * @method log
++ * @static
++ * @param  {String}  msg  The message to log.
++ * @param  {String}  cat  The log category for the message.  Default
++ *                        categories are "info", "warn", "error", time".
++ *                        Custom categories can be used as well. (opt)
++ * @param  {String}  src  The source of the the message (opt)
++ * @return {Boolean}      True if the log operation was successful.
++ */
++YAHOO.log = function(msg, cat, src) {
++    var l=YAHOO.widget.Logger;
++    if(l && l.log) {
++        return l.log(msg, cat, src);
++    } else {
++        return false;
++    }
++};
++
++/**
++ * Registers a module with the YAHOO object
++ * @method register
++ * @static
++ * @param {String}   name    the name of the module (event, slider, etc)
++ * @param {Function} mainClass a reference to class in the module.  This
++ *                             class will be tagged with the version info
++ *                             so that it will be possible to identify the
++ *                             version that is in use when multiple versions
++ *                             have loaded
++ * @param {Object}   data      metadata object for the module.  Currently it
++ *                             is expected to contain a "version" property
++ *                             and a "build" property at minimum.
++ */
++YAHOO.register = function(name, mainClass, data) {
++    var mods = YAHOO.env.modules, m, v, b, ls, i;
++
++    if (!mods[name]) {
++        mods[name] = { 
++            versions:[], 
++            builds:[] 
++        };
++    }
++
++    m  = mods[name];
++    v  = data.version;
++    b  = data.build;
++    ls = YAHOO.env.listeners;
++
++    m.name = name;
++    m.version = v;
++    m.build = b;
++    m.versions.push(v);
++    m.builds.push(b);
++    m.mainClass = mainClass;
++
++    // fire the module load listeners
++    for (i=0;i<ls.length;i=i+1) {
++        ls[i](m);
++    }
++    // label the main class
++    if (mainClass) {
++        mainClass.VERSION = v;
++        mainClass.BUILD = b;
++    } else {
++        YAHOO.log("mainClass is undefined for module " + name, "warn");
++    }
++};
++
++/**
++ * YAHOO.env is used to keep track of what is known about the YUI library and
++ * the browsing environment
++ * @class YAHOO.env
++ * @static
++ */
++YAHOO.env = YAHOO.env || {
++
++    /**
++     * Keeps the version info for all YUI modules that have reported themselves
++     * @property modules
++     * @type Object[]
++     */
++    modules: [],
++    
++    /**
++     * List of functions that should be executed every time a YUI module
++     * reports itself.
++     * @property listeners
++     * @type Function[]
++     */
++    listeners: []
++};
++
++/**
++ * Returns the version data for the specified module:
++ *      <dl>
++ *      <dt>name:</dt>      <dd>The name of the module</dd>
++ *      <dt>version:</dt>   <dd>The version in use</dd>
++ *      <dt>build:</dt>     <dd>The build number in use</dd>
++ *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
++ *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
++ *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
++ *                 current version and build. If 
++ *                 mainClass.VERSION != version or mainClass.BUILD != build,
++ *                 multiple versions of pieces of the library have been
++ *                 loaded, potentially causing issues.</dd>
++ *       </dl>
++ *
++ * @method getVersion
++ * @static
++ * @param {String}  name the name of the module (event, slider, etc)
++ * @return {Object} The version info
++ */
++YAHOO.env.getVersion = function(name) {
++    return YAHOO.env.modules[name] || null;
++};
++
++/**
++ * Do not fork for a browser if it can be avoided.  Use feature detection when
++ * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
++ * number for the browser engine, 0 otherwise.  This value may or may not map
++ * to the version number of the browser using the engine.  The value is 
++ * presented as a float so that it can easily be used for boolean evaluation 
++ * as well as for looking for a particular range of versions.  Because of this, 
++ * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
++ * reports 1.8).
++ * @class YAHOO.env.ua
++ * @static
++ */
++YAHOO.env.ua = function() {
++
++        var numberfy = function(s) {
++            var c = 0;
++            return parseFloat(s.replace(/\./g, function() {
++                return (c++ == 1) ? '' : '.';
++            }));
++        },
++
++        nav = navigator,
++
++        o = {
++
++        /**
++         * Internet Explorer version number or 0.  Example: 6
++         * @property ie
++         * @type float
++         */
++        ie: 0,
++
++        /**
++         * Opera version number or 0.  Example: 9.2
++         * @property opera
++         * @type float
++         */
++        opera: 0,
++
++        /**
++         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
++         * is detected but the revision could not be found. Other browsers
++         * will be 0.  Example: 1.8
++         * <pre>
++         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
++         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
++         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
++         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
++         * </pre>
++         * @property gecko
++         * @type float
++         */
++        gecko: 0,
++
++        /**
++         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
++         * will evaluate to 1, other browsers 0.  Example: 418.9.1
++         * <pre>
++         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
++         *                                   latest available for Mac OSX 10.3.
++         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
++         * Safari 2.0.4:         418     <-- preventDefault fixed
++         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
++         *                                   different versions of webkit
++         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
++         *                                   updated, but not updated
++         *                                   to the latest patch.
++         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
++         *                                   and many major issues fixed).  
++         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
++         *                                   string when hitting yahoo.com and 
++         *                                   flickr.com.
++         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
++         *                                   from 2.x via the 10.4.11 OS patch
++         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
++         *                                   yahoo.com user agent hack removed.
++         *                                   
++         * </pre>
++         * http://developer.apple.com/internet/safari/uamatrix.html
++         * @property webkit
++         * @type float
++         */
++        webkit: 0,
++
++        /**
++         * The mobile property will be set to a string containing any relevant
++         * user agent information when a modern mobile browser is detected.
++         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
++         * devices with the WebKit-based browser, and Opera Mini.  
++         * @property mobile 
++         * @type string
++         */
++        mobile: null,
++
++        /**
++         * Adobe AIR version number or 0.  Only populated if webkit is detected.
++         * Example: 1.0
++         * @property air
++         * @type float
++         */
++        air: 0,
++
++        /**
++         * Google Caja version number or 0.
++         * @property caja
++         * @type float
++         */
++        caja: nav.cajaVersion,
++
++        /**
++         * Set to true if the page appears to be in SSL
++         * @property secure
++         * @type boolean
++         * @static
++         */
++        secure: false,
++
++        /**
++         * The operating system.  Currently only detecting windows or macintosh
++         * @property os
++         * @type string
++         * @static
++         */
++        os: null
++
++    },
++
++    ua = navigator && navigator.userAgent, 
++    
++    loc = window && window.location,
++
++    href = loc && loc.href,
++    
++    m;
++
++    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
++
++    if (ua) {
++
++        if ((/windows|win32/i).test(ua)) {
++            o.os = 'windows';
++        } else if ((/macintosh/i).test(ua)) {
++            o.os = 'macintosh';
++        }
++    
++        // Modern KHTML browsers should qualify as Safari X-Grade
++        if ((/KHTML/).test(ua)) {
++            o.webkit=1;
++        }
++
++        // Modern WebKit browsers are at least X-Grade
++        m=ua.match(/AppleWebKit\/([^\s]*)/);
++        if (m&&m[1]) {
++            o.webkit=numberfy(m[1]);
++
++            // Mobile browser check
++            if (/ Mobile\//.test(ua)) {
++                o.mobile = "Apple"; // iPhone or iPod Touch
++            } else {
++                m=ua.match(/NokiaN[^\/]*/);
++                if (m) {
++                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
++                }
++            }
++
++            m=ua.match(/AdobeAIR\/([^\s]*)/);
++            if (m) {
++                o.air = m[0]; // Adobe AIR 1.0 or better
++            }
++
++        }
++
++        if (!o.webkit) { // not webkit
++            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
++            m=ua.match(/Opera[\s\/]([^\s]*)/);
++            if (m&&m[1]) {
++                o.opera=numberfy(m[1]);
++                m=ua.match(/Opera Mini[^;]*/);
++                if (m) {
++                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
++                }
++            } else { // not opera or webkit
++                m=ua.match(/MSIE\s([^;]*)/);
++                if (m&&m[1]) {
++                    o.ie=numberfy(m[1]);
++                } else { // not opera, webkit, or ie
++                    m=ua.match(/Gecko\/([^\s]*)/);
++                    if (m) {
++                        o.gecko=1; // Gecko detected, look for revision
++                        m=ua.match(/rv:([^\s\)]*)/);
++                        if (m&&m[1]) {
++                            o.gecko=numberfy(m[1]);
++                        }
++                    }
++                }
++            }
++        }
++    }
++
++    return o;
++}();
++
++/*
++ * Initializes the global by creating the default namespaces and applying
++ * any new configuration information that is detected.  This is the setup
++ * for env.
++ * @method init
++ * @static
++ * @private
++ */
++(function() {
++    YAHOO.namespace("util", "widget", "example");
++    /*global YAHOO_config*/
++    if ("undefined" !== typeof YAHOO_config) {
++        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
++        if (l) {
++            // if YAHOO is loaded multiple times we need to check to see if
++            // this is a new config object.  If it is, add the new component
++            // load listener to the stack
++            for (i=0; i<ls.length; i++) {
++                if (ls[i] == l) {
++                    unique = false;
++                    break;
++                }
++            }
++
++            if (unique) {
++                ls.push(l);
++            }
++        }
++    }
++})();
++/**
++ * Provides the language utilites and extensions used by the library
++ * @class YAHOO.lang
++ */
++YAHOO.lang = YAHOO.lang || {};
++
++(function() {
++
++
++var L = YAHOO.lang,
++
++    OP = Object.prototype,
++    ARRAY_TOSTRING = '[object Array]',
++    FUNCTION_TOSTRING = '[object Function]',
++    OBJECT_TOSTRING = '[object Object]',
++    NOTHING = [],
++
++    // ADD = ["toString", "valueOf", "hasOwnProperty"],
++    ADD = ["toString", "valueOf"],
++
++    OB = {
++
++    /**
++     * Determines wheather or not the provided object is an array.
++     * @method isArray
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isArray: function(o) { 
++        return OP.toString.apply(o) === ARRAY_TOSTRING;
++    },
++
++    /**
++     * Determines whether or not the provided object is a boolean
++     * @method isBoolean
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isBoolean: function(o) {
++        return typeof o === 'boolean';
++    },
++    
++    /**
++     * Determines whether or not the provided object is a function.
++     * Note: Internet Explorer thinks certain functions are objects:
++     *
++     * var obj = document.createElement("object");
++     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
++     *
++     * var input = document.createElement("input"); // append to body
++     * YAHOO.lang.isFunction(input.focus) // reports false in IE
++     *
++     * You will have to implement additional tests if these functions
++     * matter to you.
++     *
++     * @method isFunction
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isFunction: function(o) {
++        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
++    },
++        
++    /**
++     * Determines whether or not the provided object is null
++     * @method isNull
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNull: function(o) {
++        return o === null;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a legal number
++     * @method isNumber
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNumber: function(o) {
++        return typeof o === 'number' && isFinite(o);
++    },
++      
++    /**
++     * Determines whether or not the provided object is of type object
++     * or function
++     * @method isObject
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */  
++    isObject: function(o) {
++return (o && (typeof o === 'object' || L.isFunction(o))) || false;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a string
++     * @method isString
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isString: function(o) {
++        return typeof o === 'string';
++    },
++        
++    /**
++     * Determines whether or not the provided object is undefined
++     * @method isUndefined
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isUndefined: function(o) {
++        return typeof o === 'undefined';
++    },
++    
++ 
++    /**
++     * IE will not enumerate native functions in a derived object even if the
++     * function was overridden.  This is a workaround for specific functions 
++     * we care about on the Object prototype. 
++     * @property _IEEnumFix
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @static
++     * @private
++     */
++    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
++            var i, fname, f;
++            for (i=0;i<ADD.length;i=i+1) {
++
++                fname = ADD[i];
++                f = s[fname];
++
++                if (L.isFunction(f) && f!=OP[fname]) {
++                    r[fname]=f;
++                }
++            }
++    } : function(){},
++       
++    /**
++     * Utility to set up the prototype, constructor and superclass properties to
++     * support an inheritance strategy that can chain constructors and methods.
++     * Static members will not be inherited.
++     *
++     * @method extend
++     * @static
++     * @param {Function} subc   the object to modify
++     * @param {Function} superc the object to inherit
++     * @param {Object} overrides  additional properties/methods to add to the
++     *                              subclass prototype.  These will override the
++     *                              matching items obtained from the superclass 
++     *                              if present.
++     */
++    extend: function(subc, superc, overrides) {
++        if (!superc||!subc) {
++            throw new Error("extend failed, please check that " +
++                            "all dependencies are included.");
++        }
++        var F = function() {}, i;
++        F.prototype=superc.prototype;
++        subc.prototype=new F();
++        subc.prototype.constructor=subc;
++        subc.superclass=superc.prototype;
++        if (superc.prototype.constructor == OP.constructor) {
++            superc.prototype.constructor=superc;
++        }
++    
++        if (overrides) {
++            for (i in overrides) {
++                if (L.hasOwnProperty(overrides, i)) {
++                    subc.prototype[i]=overrides[i];
++                }
++            }
++
++            L._IEEnumFix(subc.prototype, overrides);
++        }
++    },
++   
++    /**
++     * Applies all properties in the supplier to the receiver if the
++     * receiver does not have these properties yet.  Optionally, one or 
++     * more methods/properties can be specified (as additional 
++     * parameters).  This option will overwrite the property if receiver 
++     * has it already.  If true is passed as the third parameter, all 
++     * properties will be applied and _will_ overwrite properties in 
++     * the receiver.
++     *
++     * @method augmentObject
++     * @static
++     * @since 2.3.0
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything
++     *        in the supplier will be used unless it would
++     *        overwrite an existing property in the receiver. If true
++     *        is specified as the third parameter, all properties will
++     *        be applied and will overwrite an existing property in
++     *        the receiver
++     */
++    augmentObject: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Absorb failed, verify dependencies.");
++        }
++        var a=arguments, i, p, overrideList=a[2];
++        if (overrideList && overrideList!==true) { // only absorb the specified properties
++            for (i=2; i<a.length; i=i+1) {
++                r[a[i]] = s[a[i]];
++            }
++        } else { // take everything, overwriting only if the third parameter is true
++            for (p in s) { 
++                if (overrideList || !(p in r)) {
++                    r[p] = s[p];
++                }
++            }
++            
++            L._IEEnumFix(r, s);
++        }
++    },
++ 
++    /**
++     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
++     * @see YAHOO.lang.augmentObject
++     * @method augmentProto
++     * @static
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything 
++     *        in the supplier will be used unless it would overwrite an existing 
++     *        property in the receiver.  if true is specified as the third 
++     *        parameter, all properties will be applied and will overwrite an 
++     *        existing property in the receiver
++     */
++    augmentProto: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Augment failed, verify dependencies.");
++        }
++        //var a=[].concat(arguments);
++        var a=[r.prototype,s.prototype], i;
++        for (i=2;i<arguments.length;i=i+1) {
++            a.push(arguments[i]);
++        }
++        L.augmentObject.apply(this, a);
++    },
++
++      
++    /**
++     * Returns a simple string representation of the object or array.
++     * Other types of objects will be returned unprocessed.  Arrays
++     * are expected to be indexed.  Use object notation for
++     * associative arrays.
++     * @method dump
++     * @since 2.3.0
++     * @param o {Object} The object to dump
++     * @param d {int} How deep to recurse child objects, default 3
++     * @return {String} the dump result
++     */
++    dump: function(o, d) {
++        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
++            COMMA=', ', ARROW=' => ';
++
++        // Cast non-objects to string
++        // Skip dates because the std toString is what we want
++        // Skip HTMLElement-like objects because trying to dump 
++        // an element will cause an unhandled exception in FF 2.x
++        if (!L.isObject(o)) {
++            return o + "";
++        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
++            return o;
++        } else if  (L.isFunction(o)) {
++            return FUN;
++        }
++
++        // dig into child objects the depth specifed. Default 3
++        d = (L.isNumber(d)) ? d : 3;
++
++        // arrays [1, 2, 3]
++        if (L.isArray(o)) {
++            s.push("[");
++            for (i=0,len=o.length;i<len;i=i+1) {
++                if (L.isObject(o[i])) {
++                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                } else {
++                    s.push(o[i]);
++                }
++                s.push(COMMA);
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("]");
++        // objects {k1 => v1, k2 => v2}
++        } else {
++            s.push("{");
++            for (i in o) {
++                if (L.hasOwnProperty(o, i)) {
++                    s.push(i + ARROW);
++                    if (L.isObject(o[i])) {
++                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                    } else {
++                        s.push(o[i]);
++                    }
++                    s.push(COMMA);
++                }
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("}");
++        }
++
++        return s.join("");
++    },
++
++    /**
++     * Does variable substitution on a string. It scans through the string 
++     * looking for expressions enclosed in { } braces. If an expression 
++     * is found, it is used a key on the object.  If there is a space in
++     * the key, the first word is used for the key and the rest is provided
++     * to an optional function to be used to programatically determine the
++     * value (the extra information might be used for this decision). If 
++     * the value for the key in the object, or what is returned from the
++     * function has a string value, number value, or object value, it is 
++     * substituted for the bracket expression and it repeats.  If this
++     * value is an object, it uses the Object's toString() if this has
++     * been overridden, otherwise it does a shallow dump of the key/value
++     * pairs.
++     * @method substitute
++     * @since 2.3.0
++     * @param s {String} The string that will be modified.
++     * @param o {Object} An object containing the replacement values
++     * @param f {Function} An optional function that can be used to
++     *                     process each match.  It receives the key,
++     *                     value, and any extra metadata included with
++     *                     the key inside of the braces.
++     * @return {String} the substituted string
++     */
++    substitute: function (s, o, f) {
++        var i, j, k, key, v, meta, saved=[], token, 
++            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
++            dump, objstr;
++
++
++        for (;;) {
++            i = s.lastIndexOf(LBRACE);
++            if (i < 0) {
++                break;
++            }
++            j = s.indexOf(RBRACE, i);
++            if (i + 1 >= j) {
++                break;
++            }
++
++            //Extract key and meta info 
++            token = s.substring(i + 1, j);
++            key = token;
++            meta = null;
++            k = key.indexOf(SPACE);
++            if (k > -1) {
++                meta = key.substring(k + 1);
++                key = key.substring(0, k);
++            }
++
++            // lookup the value
++            v = o[key];
++
++            // if a substitution function was provided, execute it
++            if (f) {
++                v = f(key, v, meta);
++            }
++
++            if (L.isObject(v)) {
++                if (L.isArray(v)) {
++                    v = L.dump(v, parseInt(meta, 10));
++                } else {
++                    meta = meta || "";
++
++                    // look for the keyword 'dump', if found force obj dump
++                    dump = meta.indexOf(DUMP);
++                    if (dump > -1) {
++                        meta = meta.substring(4);
++                    }
++
++                    objstr = v.toString();
++
++                    // use the toString if it is not the Object toString 
++                    // and the 'dump' meta info was not found
++                    if (objstr === OBJECT_TOSTRING || dump > -1) {
++                        v = L.dump(v, parseInt(meta, 10));
++                    } else {
++                        v = objstr;
++                    }
++                }
++            } else if (!L.isString(v) && !L.isNumber(v)) {
++                // This {block} has no replace string. Save it for later.
++                v = "~-" + saved.length + "-~";
++                saved[saved.length] = token;
++
++                // break;
++            }
++
++            s = s.substring(0, i) + v + s.substring(j + 1);
++
++
++        }
++
++        // restore saved {block}s
++        for (i=saved.length-1; i>=0; i=i-1) {
++            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
++        }
++
++        return s;
++    },
++
++
++    /**
++     * Returns a string without any leading or trailing whitespace.  If 
++     * the input is not a string, the input will be returned untouched.
++     * @method trim
++     * @since 2.3.0
++     * @param s {string} the string to trim
++     * @return {string} the trimmed string
++     */
++    trim: function(s){
++        try {
++            return s.replace(/^\s+|\s+$/g, "");
++        } catch(e) {
++            return s;
++        }
++    },
++
++    /**
++     * Returns a new object containing all of the properties of
++     * all the supplied objects.  The properties from later objects
++     * will overwrite those in earlier objects.
++     * @method merge
++     * @since 2.3.0
++     * @param arguments {Object*} the objects to merge
++     * @return the new merged object
++     */
++    merge: function() {
++        var o={}, a=arguments, l=a.length, i;
++        for (i=0; i<l; i=i+1) {
++            L.augmentObject(o, a[i], true);
++        }
++        return o;
++    },
++
++    /**
++     * Executes the supplied function in the context of the supplied 
++     * object 'when' milliseconds later.  Executes the function a 
++     * single time unless periodic is set to true.
++     * @method later
++     * @since 2.4.0
++     * @param when {int} the number of milliseconds to wait until the fn 
++     * is executed
++     * @param o the context object
++     * @param fn {Function|String} the function to execute or the name of 
++     * the method in the 'o' object to execute
++     * @param data [Array] data that is provided to the function.  This accepts
++     * either a single item or an array.  If an array is provided, the
++     * function is executed with one parameter for each array item.  If
++     * you need to pass a single array parameter, it needs to be wrapped in
++     * an array [myarray]
++     * @param periodic {boolean} if true, executes continuously at supplied 
++     * interval until canceled
++     * @return a timer object. Call the cancel() method on this object to 
++     * stop the timer.
++     */
++    later: function(when, o, fn, data, periodic) {
++        when = when || 0; 
++        o = o || {};
++        var m=fn, d=data, f, r;
++
++        if (L.isString(fn)) {
++            m = o[fn];
++        }
++
++        if (!m) {
++            throw new TypeError("method undefined");
++        }
++
++        if (d && !L.isArray(d)) {
++            d = [data];
++        }
++
++        f = function() {
++            m.apply(o, d || NOTHING);
++        };
++
++        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
++
++        return {
++            interval: periodic,
++            cancel: function() {
++                if (this.interval) {
++                    clearInterval(r);
++                } else {
++                    clearTimeout(r);
++                }
++            }
++        };
++    },
++    
++    /**
++     * A convenience method for detecting a legitimate non-null value.
++     * Returns false for null/undefined/NaN, true for other values, 
++     * including 0/false/''
++     * @method isValue
++     * @since 2.3.0
++     * @param o {any} the item to test
++     * @return {boolean} true if it is not null/undefined/NaN || false
++     */
++    isValue: function(o) {
++        // return (o || o === false || o === 0 || o === ''); // Infinity fails
++return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
++    }
++
++};
++
++/**
++ * Determines whether or not the property was added
++ * to the object instance.  Returns false if the property is not present
++ * in the object, or was inherited from the prototype.
++ * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
++ * There is a discrepancy between YAHOO.lang.hasOwnProperty and
++ * Object.prototype.hasOwnProperty when the property is a primitive added to
++ * both the instance AND prototype with the same value:
++ * <pre>
++ * var A = function() {};
++ * A.prototype.foo = 'foo';
++ * var a = new A();
++ * a.foo = 'foo';
++ * alert(a.hasOwnProperty('foo')); // true
++ * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
++ * </pre>
++ * @method hasOwnProperty
++ * @param {any} o The object being testing
++ * @param prop {string} the name of the property to test
++ * @return {boolean} the result
++ */
++L.hasOwnProperty = (OP.hasOwnProperty) ?
++    function(o, prop) {
++        return o && o.hasOwnProperty(prop);
++    } : function(o, prop) {
++        return !L.isUndefined(o[prop]) && 
++                o.constructor.prototype[prop] !== o[prop];
++    };
++
++// new lang wins
++OB.augmentObject(L, OB, true);
++
++/*
++ * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
++ * @class YAHOO.util.Lang
++ */
++YAHOO.util.Lang = L;
++ 
++/**
++ * Same as YAHOO.lang.augmentObject, except it only applies prototype 
++ * properties.  This is an alias for augmentProto.
++ * @see YAHOO.lang.augmentObject
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*|boolean}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver.  if true
++ *        is specified as the third parameter, all properties will
++ *        be applied and will overwrite an existing property in
++ *        the receiver
++ */
++L.augment = L.augmentProto;
++
++/**
++ * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
++ * @for YAHOO
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver
++ */
++YAHOO.augment = L.augmentProto;
++       
++/**
++ * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
++ * @method extend
++ * @static
++ * @param {Function} subc   the object to modify
++ * @param {Function} superc the object to inherit
++ * @param {Object} overrides  additional properties/methods to add to the
++ *        subclass prototype.  These will override the
++ *        matching items obtained from the superclass if present.
++ */
++YAHOO.extend = L.extend;
++
++})();
++YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
++/**
++ * Provides a mechanism to fetch remote resources and
++ * insert them into a document
++ * @module get
++ * @requires yahoo
++ */
++
++/**
++ * Fetches and inserts one or more script or link nodes into the document 
++ * @namespace YAHOO.util
++ * @class YAHOO.util.Get
++ */
++YAHOO.util.Get = function() {
++
++    /**
++     * hash of queues to manage multiple requests
++     * @property queues
++     * @private
++     */
++    var queues={}, 
++        
++    /**
++     * queue index used to generate transaction ids
++     * @property qidx
++     * @type int
++     * @private
++     */
++        qidx=0, 
++        
++    /**
++     * node index used to generate unique node ids
++     * @property nidx
++     * @type int
++     * @private
++     */
++        nidx=0, 
++
++        // ridx=0,
++
++        // sandboxFrame=null,
++
++    /**
++     * interal property used to prevent multiple simultaneous purge 
++     * processes
++     * @property purging
++     * @type boolean
++     * @private
++     */
++        purging=false,
++
++        ua=YAHOO.env.ua, 
++        
++        lang=YAHOO.lang;
++    
++    /** 
++     * Generates an HTML element, this is not appended to a document
++     * @method _node
++     * @param type {string} the type of element
++     * @param attr {string} the attributes
++     * @param win {Window} optional window to create the element in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _node = function(type, attr, win) {
++        var w = win || window, d=w.document, n=d.createElement(type);
++
++        for (var i in attr) {
++            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
++                n.setAttribute(i, attr[i]);
++            }
++        }
++
++        return n;
++    };
++
++    /**
++     * Generates a link node
++     * @method _linkNode
++     * @param url {string} the url for the css file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _linkNode = function(url, win, attributes) {
++
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/css",
++            rel:  "stylesheet",
++            href: url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("link", o, win);
++    };
++
++    /**
++     * Generates a script node
++     * @method _scriptNode
++     * @param url {string} the url for the script file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _scriptNode = function(url, win, attributes) {
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/javascript",
++            src:  url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("script", o, win);
++    };
++
++    /**
++     * Returns the data payload for callback functions
++     * @method _returnData
++     * @private
++     */
++    var _returnData = function(q, msg) {
++        return {
++                tId: q.tId,
++                win: q.win,
++                data: q.data,
++                nodes: q.nodes,
++                msg: msg,
++                purge: function() {
++                    _purge(this.tId);
++                }
++            };
++    };
++
++    var _get = function(nId, tId) {
++        var q = queues[tId],
++            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
++        if (!n) {
++            _fail(tId, "target node not found: " + nId);
++        }
++
++        return n;
++    };
++
++    /*
++     * The request failed, execute fail handler with whatever
++     * was accomplished.  There isn't a failure case at the
++     * moment unless you count aborted transactions
++     * @method _fail
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _fail = function(id, msg) {
++        var q = queues[id];
++        // execute failure callback
++        if (q.onFailure) {
++            var sc=q.scope || q.win;
++            q.onFailure.call(sc, _returnData(q, msg));
++        }
++    };
++
++    /**
++     * The request is complete, so executing the requester's callback
++     * @method _finish
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _finish = function(id) {
++        var q = queues[id];
++        q.finished = true;
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        // execute success callback
++        if (q.onSuccess) {
++            var sc=q.scope || q.win;
++            q.onSuccess.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Timeout detected
++     * @method _timeout
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _timeout = function(id) {
++        var q = queues[id];
++        if (q.onTimeout) {
++            var sc=q.scope || q;
++            q.onTimeout.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Loads the next item for a given request
++     * @method _next
++     * @param id {string} the id of the request
++     * @param loaded {string} the url that was just loaded, if any
++     * @private
++     */
++    var _next = function(id, loaded) {
++        var q = queues[id];
++
++        if (q.timer) {
++            // Y.log('cancel timer');
++            q.timer.cancel();
++        }
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        if (loaded) {
++            q.url.shift(); 
++            if (q.varName) {
++                q.varName.shift(); 
++            }
++        } else {
++            // This is the first pass: make sure the url is an array
++            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
++            if (q.varName) {
++                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
++            }
++        }
++
++        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
++
++        if (q.url.length === 0) {
++            // Safari 2.x workaround - There is no way to know when 
++            // a script is ready in versions of Safari prior to 3.x.
++            // Adding an extra node reduces the problem, but doesn't
++            // eliminate it completely because the browser executes
++            // them asynchronously. 
++            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
++                    !q.finalpass && !q.varName) {
++                // Add another script node.  This does not guarantee that the
++                // scripts will execute in order, but it does appear to fix the
++                // problem on fast connections more effectively than using an
++                // arbitrary timeout.  It is possible that the browser does
++                // block subsequent script execution in this case for a limited
++                // time.
++                var extra = _scriptNode(null, q.win, q.attributes);
++                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
++                q.nodes.push(extra); h.appendChild(extra);
++
++            } else {
++                _finish(id);
++            }
++
++            return;
++        } 
++
++
++        var url = q.url[0];
++
++        // if the url is undefined, this is probably a trailing comma problem in IE
++        if (!url) {
++            q.url.shift(); 
++            return _next(id);
++        }
++
++
++        if (q.timeout) {
++            // Y.log('create timer');
++            q.timer = lang.later(q.timeout, q, _timeout, id);
++        }
++
++        if (q.type === "script") {
++            n = _scriptNode(url, w, q.attributes);
++        } else {
++            n = _linkNode(url, w, q.attributes);
++        }
++
++        // track this node's load progress
++        _track(q.type, n, id, url, w, q.url.length);
++
++        // add the node to the queue so we can return it to the user supplied callback
++        q.nodes.push(n);
++
++        // add it to the head or insert it before 'insertBefore'
++        if (q.insertBefore) {
++            var s = _get(q.insertBefore, id);
++            if (s) {
++                s.parentNode.insertBefore(n, s);
++            }
++        } else {
++            h.appendChild(n);
++        }
++        
++
++        // FireFox does not support the onload event for link nodes, so there is
++        // no way to make the css requests synchronous. This means that the css 
++        // rules in multiple files could be applied out of order in this browser
++        // if a later request returns before an earlier one.  Safari too.
++        if ((ua.webkit || ua.gecko) && q.type === "css") {
++            _next(id, url);
++        }
++    };
++
++    /**
++     * Removes processed queues and corresponding nodes
++     * @method _autoPurge
++     * @private
++     */
++    var _autoPurge = function() {
++
++        if (purging) {
++            return;
++        }
++
++        purging = true;
++        for (var i in queues) {
++            var q = queues[i];
++            if (q.autopurge && q.finished) {
++                _purge(q.tId);
++                delete queues[i];
++            }
++        }
++
++        purging = false;
++    };
++
++    /**
++     * Removes the nodes for the specified queue
++     * @method _purge
++     * @private
++     */
++    var _purge = function(tId) {
++        if (queues[tId]) {
++
++            var q     = queues[tId],
++                nodes = q.nodes, 
++                l     = nodes.length, 
++                d     = q.win.document, 
++                h     = d.getElementsByTagName("head")[0],
++                sib, i, node, attr;
++
++            if (q.insertBefore) {
++                sib = _get(q.insertBefore, tId);
++                if (sib) {
++                    h = sib.parentNode;
++                }
++            }
++
++            for (i=0; i<l; i=i+1) {
++                node = nodes[i];
++                if (node.clearAttributes) {
++                    node.clearAttributes();
++                } else {
++                    for (attr in node) {
++                        delete node[attr];
++                    }
++                }
++
++                h.removeChild(node);
++            }
++
++            q.nodes = [];
++        }
++    };
++
++    /**
++     * Saves the state for the request and begins loading
++     * the requested urls
++     * @method queue
++     * @param type {string} the type of node to insert
++     * @param url {string} the url to load
++     * @param opts the hash of options for this request
++     * @private
++     */
++    var _queue = function(type, url, opts) {
++
++        var id = "q" + (qidx++);
++        opts = opts || {};
++
++        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
++            _autoPurge();
++        }
++
++        queues[id] = lang.merge(opts, {
++            tId: id,
++            type: type,
++            url: url,
++            finished: false,
++            aborted: false,
++            nodes: []
++        });
++
++        var q = queues[id];
++        q.win = q.win || window;
++        q.scope = q.scope || q.win;
++        q.autopurge = ("autopurge" in q) ? q.autopurge : 
++                      (type === "script") ? true : false;
++
++        if (opts.charset) {
++            q.attributes = q.attributes || {};
++            q.attributes.charset = opts.charset;
++        }
++
++        lang.later(0, q, _next, id);
++
++        return {
++            tId: id
++        };
++    };
++
++    /**
++     * Detects when a node has been loaded.  In the case of
++     * script nodes, this does not guarantee that contained
++     * script is ready to use.
++     * @method _track
++     * @param type {string} the type of node to track
++     * @param n {HTMLElement} the node to track
++     * @param id {string} the id of the request
++     * @param url {string} the url that is being loaded
++     * @param win {Window} the targeted window
++     * @param qlength the number of remaining items in the queue,
++     * including this one
++     * @param trackfn {Function} function to execute when finished
++     * the default is _next
++     * @private
++     */
++    var _track = function(type, n, id, url, win, qlength, trackfn) {
++        var f = trackfn || _next;
++
++        // IE supports the readystatechange event for script and css nodes
++        if (ua.ie) {
++            n.onreadystatechange = function() {
++                var rs = this.readyState;
++                if ("loaded" === rs || "complete" === rs) {
++                    n.onreadystatechange = null;
++                    f(id, url);
++                }
++            };
++
++        // webkit prior to 3.x is problemmatic
++        } else if (ua.webkit) {
++
++            if (type === "script") {
++
++                // Safari 3.x supports the load event for script nodes (DOM2)
++                if (ua.webkit >= 420) {
++
++                    n.addEventListener("load", function() {
++                        f(id, url);
++                    });
++
++                // Nothing can be done with Safari < 3.x except to pause and hope
++                // for the best, particularly after last script is inserted. The
++                // scripts will always execute in the order they arrive, not
++                // necessarily the order in which they were inserted.  To support
++                // script nodes with complete reliability in these browsers, script
++                // nodes either need to invoke a function in the window once they
++                // are loaded or the implementer needs to provide a well-known
++                // property that the utility can poll for.
++                } else {
++                    // Poll for the existence of the named variable, if it
++                    // was supplied.
++                    var q = queues[id];
++                    if (q.varName) {
++                        var freq=YAHOO.util.Get.POLL_FREQ;
++                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
++                        q.attempts = 0;
++                        q._cache = q.varName[0].split(".");
++                        q.timer = lang.later(freq, q, function(o) {
++                            var a=this._cache, l=a.length, w=this.win, i;
++                            for (i=0; i<l; i=i+1) {
++                                w = w[a[i]];
++                                if (!w) {
++                                    // if we have exausted our attempts, give up
++                                    this.attempts++;
++                                    if (this.attempts++ > this.maxattempts) {
++                                        var msg = "Over retry limit, giving up";
++                                        q.timer.cancel();
++                                        _fail(id, msg);
++                                    } else {
++                                    }
++                                    return;
++                                }
++                            }
++                            
++
++                            q.timer.cancel();
++                            f(id, url);
++
++                        }, null, true);
++                    } else {
++                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
++                    }
++                }
++            } 
++
++        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
++        // script nodes.  Opera, but not FF, supports the onload event for link
++        // nodes.
++        } else { 
++            n.onload = function() {
++                f(id, url);
++            };
++        }
++    };
++
++    return {
++
++        /**
++         * The default poll freqency in ms, when needed
++         * @property POLL_FREQ
++         * @static
++         * @type int
++         * @default 10
++         */
++        POLL_FREQ: 10,
++
++        /**
++         * The number of request required before an automatic purge.
++         * property PURGE_THRESH
++         * @static
++         * @type int
++         * @default 20
++         */
++        PURGE_THRESH: 20,
++
++        /**
++         * The length time to poll for varName when loading a script in
++         * Safari 2.x before the transaction fails.
++         * property TIMEOUT
++         * @static
++         * @type int
++         * @default 2000
++         */
++        TIMEOUT: 2000,
++        
++        /**
++         * Called by the the helper for detecting script load in Safari
++         * @method _finalize
++         * @param id {string} the transaction id
++         * @private
++         */
++        _finalize: function(id) {
++            lang.later(0, null, _finish, id);
++        },
++
++        /**
++         * Abort a transaction
++         * @method abort
++         * @param {string|object} either the tId or the object returned from
++         * script() or css()
++         */
++        abort: function(o) {
++            var id = (lang.isString(o)) ? o : o.tId;
++            var q = queues[id];
++            if (q) {
++                q.aborted = true;
++            }
++        }, 
++
++        /**
++         * Fetches and inserts one or more script nodes into the head
++         * of the current document or the document in a specified window.
++         *
++         * @method script
++         * @static
++         * @param url {string|string[]} the url or urls to the script(s)
++         * @param opts {object} Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the script(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onFailure</dt>
++         * <dd>
++         * callback to execute when the script load operation fails
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted successfully</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove any nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onTimeout</dt>
++         * <dd>
++         * callback to execute when a timeout occurs.
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>autopurge</dt>
++         * <dd>
++         * setting to true will let the utilities cleanup routine purge 
++         * the script once loaded
++         * </dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callback when the script(s) are
++         * loaded.
++         * </dd>
++         * <dt>varName</dt>
++         * <dd>
++         * variable that should be available when a script is finished
++         * loading.  Used to help Safari 2.x and below with script load 
++         * detection.  The type of this property should match what was
++         * passed into the url parameter: if loading a single url, a
++         * string can be supplied.  If loading multiple scripts, you
++         * must supply an array that contains the variable name for
++         * each script.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * </dl>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * <dt>timeout</dt>
++         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
++         * <pre>
++         * // assumes yahoo, dom, and event are already on the page
++         * &nbsp;&nbsp;YAHOO.util.Get.script(
++         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
++         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
++         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
++         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
++         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
++         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
++         * &nbsp;&nbsp;&#125;);
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        script: function(url, opts) { return _queue("script", url, opts); },
++
++        /**
++         * Fetches and inserts one or more css link nodes into the 
++         * head of the current document or the document in a specified
++         * window.
++         * @method css
++         * @static
++         * @param url {string} the url or urls to the css file(s)
++         * @param opts Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the css file(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>win</dl>
++         * <dd>the window the link nodes(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callbacks when the nodes(s) are
++         * loaded.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * </dl>
++         * <pre>
++         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
++         * </pre>
++         * <pre>
++         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        css: function(url, opts) {
++            return _queue("css", url, opts); 
++        }
++    };
++}();
++
++YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
++/**
++ * Provides dynamic loading for the YUI library.  It includes the dependency
++ * info for the library, and will automatically pull in dependencies for
++ * the modules requested.  It supports rollup files (such as utilities.js
++ * and yahoo-dom-event.js), and will automatically use these when
++ * appropriate in order to minimize the number of http connections
++ * required to load all of the dependencies.
++ * 
++ * @module yuiloader
++ * @namespace YAHOO.util
++ */
++
++/**
++ * YUILoader provides dynamic loading for YUI.
++ * @class YAHOO.util.YUILoader
++ * @todo
++ *      version management, automatic sandboxing
++ */
++(function() {
++
++    var Y=YAHOO, util=Y.util, lang=Y.lang, env=Y.env,
++        PROV = "_provides", SUPER = "_supersedes",
++        REQ = "expanded", AFTER = "_after";
++ 
++    var YUI = {
++
++        dupsAllowed: {'yahoo': true, 'get': true},
++
++        /*
++         * The library metadata for the current release  The is the default
++         * value for YAHOO.util.YUILoader.moduleInfo
++         * @property YUIInfo
++         * @static
++         */
++        info: {
++
++    // 'root': '2.5.2/build/',
++    // 'base': 'http://yui.yahooapis.com/2.5.2/build/',
++
++    'root': '2.8.0r4/build/',
++    'base': 'http://yui.yahooapis.com/2.8.0r4/build/',
++
++    'comboBase': 'http://yui.yahooapis.com/combo?',
++
++    'skin': {
++        'defaultSkin': 'sam',
++        'base': 'assets/skins/',
++        'path': 'skin.css',
++        'after': ['reset', 'fonts', 'grids', 'base'],
++        'rollup': 3
++    },
++
++    dupsAllowed: ['yahoo', 'get'],
++
++    'moduleInfo': {
++
++        'animation': {
++            'type': 'js',
++            'path': 'animation/animation-min.js',
++            'requires': ['dom', 'event']
++        },
++
++        'autocomplete': {
++            'type': 'js',
++            'path': 'autocomplete/autocomplete-min.js',
++            'requires': ['dom', 'event', 'datasource'],
++            'optional': ['connection', 'animation'],
++            'skinnable': true
++        },
++
++        'base': {
++            'type': 'css',
++            'path': 'base/base-min.css',
++            'after': ['reset', 'fonts', 'grids']
++        },
++
++        'button': {
++            'type': 'js',
++            'path': 'button/button-min.js',
++            'requires': ['element'],
++            'optional': ['menu'],
++            'skinnable': true
++        },
++
++        'calendar': {
++            'type': 'js',
++            'path': 'calendar/calendar-min.js',
++            'requires': ['event', 'dom'],
++            supersedes: ['datemeth'],
++            'skinnable': true
++        },
++
++        'carousel': {
++            'type': 'js',
++            'path': 'carousel/carousel-min.js',
++            'requires': ['element'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'charts': {
++            'type': 'js',
++            'path': 'charts/charts-min.js',
++            'requires': ['element', 'json', 'datasource', 'swf']
++        },
++
++        'colorpicker': {
++            'type': 'js',
++            'path': 'colorpicker/colorpicker-min.js',
++            'requires': ['slider', 'element'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'connection': {
++            'type': 'js',
++            'path': 'connection/connection-min.js',
++            'requires': ['event'],
++            'supersedes': ['connectioncore']
++        },
++
++        'connectioncore': {
++            'type': 'js',
++            'path': 'connection/connection_core-min.js',
++            'requires': ['event'],
++            'pkg': 'connection'
++        },
++
++        'container': {
++            'type': 'js',
++            'path': 'container/container-min.js',
++            'requires': ['dom', 'event'],
++            // button is also optional, but this creates a circular 
++            // dependency when loadOptional is specified.  button
++            // optionally includes menu, menu requires container.
++            'optional': ['dragdrop', 'animation', 'connection'],
++            'supersedes': ['containercore'],
++            'skinnable': true
++        },
++
++        'containercore': {
++            'type': 'js',
++            'path': 'container/container_core-min.js',
++            'requires': ['dom', 'event'],
++            'pkg': 'container'
++        },
++
++        'cookie': {
++            'type': 'js',
++            'path': 'cookie/cookie-min.js',
++            'requires': ['yahoo']
++        },
++
++        'datasource': {
++            'type': 'js',
++            'path': 'datasource/datasource-min.js',
++            'requires': ['event'],
++            'optional': ['connection']
++        },
++
++        'datatable': {
++            'type': 'js',
++            'path': 'datatable/datatable-min.js',
++            'requires': ['element', 'datasource'],
++            'optional': ['calendar', 'dragdrop', 'paginator'],
++            'skinnable': true
++        },
++
++        datemath: {
++            'type': 'js',
++            'path': 'datemath/datemath-min.js',
++            'requires': ['yahoo']
++        },
++
++        'dom': {
++            'type': 'js',
++            'path': 'dom/dom-min.js',
++            'requires': ['yahoo']
++        },
++
++        'dragdrop': {
++            'type': 'js',
++            'path': 'dragdrop/dragdrop-min.js',
++            'requires': ['dom', 'event']
++        },
++
++        'editor': {
++            'type': 'js',
++            'path': 'editor/editor-min.js',
++            'requires': ['menu', 'element', 'button'],
++            'optional': ['animation', 'dragdrop'],
++            'supersedes': ['simpleeditor'],
++            'skinnable': true
++        },
++
++        'element': {
++            'type': 'js',
++            'path': 'element/element-min.js',
++            'requires': ['dom', 'event'],
++            'optional': ['event-mouseenter', 'event-delegate']
++        },
++
++        'element-delegate': {
++            'type': 'js',
++            'path': 'element-delegate/element-delegate-min.js',
++            'requires': ['element']
++        },
++
++        'event': {
++            'type': 'js',
++            'path': 'event/event-min.js',
++            'requires': ['yahoo']
++        },
++
++        'event-simulate': {
++            'type': 'js',
++            'path': 'event-simulate/event-simulate-min.js',
++            'requires': ['event']
++        },
++
++        'event-delegate': {
++            'type': 'js',
++            'path': 'event-delegate/event-delegate-min.js',
++            'requires': ['event'],
++            'optional': ['selector']
++        },
++
++        'event-mouseenter': {
++            'type': 'js',
++            'path': 'event-mouseenter/event-mouseenter-min.js',
++            'requires': ['dom', 'event']
++        },
++
++        'fonts': {
++            'type': 'css',
++            'path': 'fonts/fonts-min.css'
++        },
++
++        'get': {
++            'type': 'js',
++            'path': 'get/get-min.js',
++            'requires': ['yahoo']
++        },
++
++        'grids': {
++            'type': 'css',
++            'path': 'grids/grids-min.css',
++            'requires': ['fonts'],
++            'optional': ['reset']
++        },
++
++        'history': {
++            'type': 'js',
++            'path': 'history/history-min.js',
++            'requires': ['event']
++        },
++
++         'imagecropper': {
++             'type': 'js',
++             'path': 'imagecropper/imagecropper-min.js',
++             'requires': ['dragdrop', 'element', 'resize'],
++             'skinnable': true
++         },
++
++         'imageloader': {
++            'type': 'js',
++            'path': 'imageloader/imageloader-min.js',
++            'requires': ['event', 'dom']
++         },
++
++         'json': {
++            'type': 'js',
++            'path': 'json/json-min.js',
++            'requires': ['yahoo']
++         },
++
++         'layout': {
++             'type': 'js',
++             'path': 'layout/layout-min.js',
++             'requires': ['element'],
++             'optional': ['animation', 'dragdrop', 'resize', 'selector'],
++             'skinnable': true
++         }, 
++
++        'logger': {
++            'type': 'js',
++            'path': 'logger/logger-min.js',
++            'requires': ['event', 'dom'],
++            'optional': ['dragdrop'],
++            'skinnable': true
++        },
++
++        'menu': {
++            'type': 'js',
++            'path': 'menu/menu-min.js',
++            'requires': ['containercore'],
++            'skinnable': true
++        },
++
++        'paginator': {
++            'type': 'js',
++            'path': 'paginator/paginator-min.js',
++            'requires': ['element'],
++            'skinnable': true
++        },
++
++        'profiler': {
++            'type': 'js',
++            'path': 'profiler/profiler-min.js',
++            'requires': ['yahoo']
++        },
++
++
++        'profilerviewer': {
++            'type': 'js',
++            'path': 'profilerviewer/profilerviewer-min.js',
++            'requires': ['profiler', 'yuiloader', 'element'],
++            'skinnable': true
++        },
++
++        'progressbar': {
++            'type': 'js',
++            'path': 'progressbar/progressbar-min.js',
++            'requires': ['element'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'reset': {
++            'type': 'css',
++            'path': 'reset/reset-min.css'
++        },
++
++        'reset-fonts-grids': {
++            'type': 'css',
++            'path': 'reset-fonts-grids/reset-fonts-grids.css',
++            'supersedes': ['reset', 'fonts', 'grids', 'reset-fonts'],
++            'rollup': 4
++        },
++
++        'reset-fonts': {
++            'type': 'css',
++            'path': 'reset-fonts/reset-fonts.css',
++            'supersedes': ['reset', 'fonts'],
++            'rollup': 2
++        },
++
++         'resize': {
++             'type': 'js',
++             'path': 'resize/resize-min.js',
++             'requires': ['dragdrop', 'element'],
++             'optional': ['animation'],
++             'skinnable': true
++         },
++
++        'selector': {
++            'type': 'js',
++            'path': 'selector/selector-min.js',
++            'requires': ['yahoo', 'dom']
++        },
++
++        'simpleeditor': {
++            'type': 'js',
++            'path': 'editor/simpleeditor-min.js',
++            'requires': ['element'],
++            'optional': ['containercore', 'menu', 'button', 'animation', 'dragdrop'],
++            'skinnable': true,
++            'pkg': 'editor'
++        },
++
++        'slider': {
++            'type': 'js',
++            'path': 'slider/slider-min.js',
++            'requires': ['dragdrop'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'storage': {
++            'type': 'js',
++            'path': 'storage/storage-min.js',
++            'requires': ['yahoo', 'event', 'cookie'],
++            'optional': ['swfstore']
++        },
++
++         'stylesheet': {
++            'type': 'js',
++            'path': 'stylesheet/stylesheet-min.js',
++            'requires': ['yahoo']
++         },
++
++        'swf': {
++            'type': 'js',
++            'path': 'swf/swf-min.js',
++            'requires': ['element'],
++            'supersedes': ['swfdetect']
++        },
++
++        'swfdetect': {
++            'type': 'js',
++            'path': 'swfdetect/swfdetect-min.js',
++            'requires': ['yahoo']
++        },
++
++        'swfstore': {
++            'type': 'js',
++            'path': 'swfstore/swfstore-min.js',
++            'requires': ['element', 'cookie', 'swf']
++        },
++
++        'tabview': {
++            'type': 'js',
++            'path': 'tabview/tabview-min.js',
++            'requires': ['element'],
++            'optional': ['connection'],
++            'skinnable': true
++        },
++
++        'treeview': {
++            'type': 'js',
++            'path': 'treeview/treeview-min.js',
++            'requires': ['event', 'dom'],
++            'optional': ['json', 'animation', 'calendar'],
++            'skinnable': true
++        },
++
++        'uploader': {
++            'type': 'js',
++            'path': 'uploader/uploader-min.js',
++            'requires': ['element']
++        },
++
++        'utilities': {
++            'type': 'js',
++            'path': 'utilities/utilities.js',
++            'supersedes': ['yahoo', 'event', 'dragdrop', 'animation', 'dom', 'connection', 'element', 'yahoo-dom-event', 'get', 'yuiloader', 'yuiloader-dom-event'],
++            'rollup': 8
++        },
++
++        'yahoo': {
++            'type': 'js',
++            'path': 'yahoo/yahoo-min.js'
++        },
++
++        'yahoo-dom-event': {
++            'type': 'js',
++            'path': 'yahoo-dom-event/yahoo-dom-event.js',
++            'supersedes': ['yahoo', 'event', 'dom'],
++            'rollup': 3
++        },
++
++        'yuiloader': {
++            'type': 'js',
++            'path': 'yuiloader/yuiloader-min.js',
++            'supersedes': ['yahoo', 'get']
++        },
++
++        'yuiloader-dom-event': {
++            'type': 'js',
++            'path': 'yuiloader-dom-event/yuiloader-dom-event.js',
++            'supersedes': ['yahoo', 'dom', 'event', 'get', 'yuiloader', 'yahoo-dom-event'],
++            'rollup': 5
++        },
++
++        'yuitest': {
++            'type': 'js',
++            'path': 'yuitest/yuitest-min.js',
++            'requires': ['logger'],
++            'optional': ['event-simulate'],
++            'skinnable': true
++        }
++    }
++}
++ , 
++
++        ObjectUtil: {
++            appendArray: function(o, a) {
++                if (a) {
++                    for (var i=0; i<a.length; i=i+1) {
++                        o[a[i]] = true;
++                    }
++                }
++            },
++
++            keys: function(o, ordered) {
++                var a=[], i;
++                for (i in o) {
++                    if (lang.hasOwnProperty(o, i)) {
++                        a.push(i);
++                    }
++                }
++
++                return a;
++            }
++        },
++
++        ArrayUtil: {
++
++            appendArray: function(a1, a2) {
++                Array.prototype.push.apply(a1, a2);
++                /*
++                for (var i=0; i<a2.length; i=i+1) {
++                    a1.push(a2[i]);
++                }
++                */
++            },
++
++            indexOf: function(a, val) {
++                for (var i=0; i<a.length; i=i+1) {
++                    if (a[i] === val) {
++                        return i;
++                    }
++                }
++
++                return -1;
++            },
++
++            toObject: function(a) {
++                var o = {};
++                for (var i=0; i<a.length; i=i+1) {
++                    o[a[i]] = true;
++                }
++
++                return o;
++            },
++
++            /*
++             * Returns a unique array.  Does not maintain order, which is fine
++             * for this application, and performs better than it would if it
++             * did.
++             */
++            uniq: function(a) {
++                return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));
++            }
++        }
++    };
++
++    YAHOO.util.YUILoader = function(o) {
++
++        /**
++         * Internal callback to handle multiple internal insert() calls
++         * so that css is inserted prior to js
++         * @property _internalCallback
++         * @private
++         */
++        this._internalCallback = null;
++
++        /**
++         * Use the YAHOO environment listener to detect script load.  This
++         * is only switched on for Safari 2.x and below.
++         * @property _useYahooListener
++         * @private
++         */
++        this._useYahooListener = false;
++
++        /**
++         * Callback that will be executed when the loader is finished
++         * with an insert
++         * @method onSuccess
++         * @type function
++         */
++        this.onSuccess = null;
++
++        /**
++         * Callback that will be executed if there is a failure
++         * @method onFailure
++         * @type function
++         */
++        this.onFailure = Y.log;
++
++        /**
++         * Callback that will be executed each time a new module is loaded
++         * @method onProgress
++         * @type function
++         */
++        this.onProgress = null;
++
++        /**
++         * Callback that will be executed if a timeout occurs
++         * @method onTimeout
++         * @type function
++         */
++        this.onTimeout = null;
++
++        /**
++         * The execution scope for all callbacks
++         * @property scope
++         * @default this
++         */
++        this.scope = this;
++
++        /**
++         * Data that is passed to all callbacks
++         * @property data
++         */
++        this.data = null;
++
++        /**
++         * Node reference or id where new nodes should be inserted before
++         * @property insertBefore
++         * @type string|HTMLElement
++         */
++        this.insertBefore = null;
++
++        /**
++         * The charset attribute for inserted nodes
++         * @property charset
++         * @type string
++         * @default utf-8
++         */
++        this.charset = null;
++
++        /**
++         * The name of the variable in a sandbox or script node 
++         * (for external script support in Safari 2.x and earlier)
++         * to reference when the load is complete.  If this variable 
++         * is not available in the specified scripts, the operation will 
++         * fail.  
++         * @property varName
++         * @type string
++         */
++        this.varName = null;
++
++        /**
++         * The base directory.
++         * @property base
++         * @type string
++         * @default http://yui.yahooapis.com/[YUI VERSION]/build/
++         */
++        this.base = YUI.info.base;
++
++        /**
++         * Base path for the combo service
++         * @property comboBase
++         * @type string
++         * @default http://yui.yahooapis.com/combo?
++         */
++        this.comboBase = YUI.info.comboBase;
++
++        /**
++         * If configured, YUI will use the the combo handler on the
++         * Yahoo! CDN to pontentially reduce the number of http requests
++         * required.
++         * @property combine
++         * @type boolean
++         * @default false
++         */
++        // this.combine = (o && !('base' in o));
++        this.combine = false;
++
++
++        /**
++         * Root path to prepend to module path for the combo
++         * service
++         * @property root
++         * @type string
++         * @default [YUI VERSION]/build/
++         */
++        this.root = YUI.info.root;
++
++        /**
++         * Timeout value in milliseconds.  If set, this value will be used by
++         * the get utility.  the timeout event will fire if
++         * a timeout occurs.
++         * @property timeout
++         * @type int
++         */
++        this.timeout = 0;
++
++        /**
++         * A list of modules that should not be loaded, even if
++         * they turn up in the dependency tree
++         * @property ignore
++         * @type string[]
++         */
++        this.ignore = null;
++
++        /**
++         * A list of modules that should always be loaded, even
++         * if they have already been inserted into the page.
++         * @property force
++         * @type string[]
++         */
++        this.force = null;
++
++        /**
++         * Should we allow rollups
++         * @property allowRollup
++         * @type boolean
++         * @default true
++         */
++        this.allowRollup = true;
++
++        /**
++         * A filter to apply to result urls.  This filter will modify the default
++         * path for all modules.  The default path for the YUI library is the
++         * minified version of the files (e.g., event-min.js).  The filter property
++         * can be a predefined filter or a custom filter.  The valid predefined 
++         * filters are:
++         * <dl>
++         *  <dt>DEBUG</dt>
++         *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
++         *      This option will automatically include the logger widget</dd>
++         *  <dt>RAW</dt>
++         *  <dd>Selects the non-minified version of the library (e.g., event.js).
++         * </dl>
++         * You can also define a custom filter, which must be an object literal 
++         * containing a search expression and a replace string:
++         * <pre>
++         *  myFilter: &#123; 
++         *      'searchExp': "-min\\.js", 
++         *      'replaceStr': "-debug.js"
++         *  &#125;
++         * </pre>
++         * @property filter
++         * @type string|{searchExp: string, replaceStr: string}
++         */
++        this.filter = null;
++
++        /**
++         * The list of requested modules
++         * @property required
++         * @type {string: boolean}
++         */
++        this.required = {};
++
++        /**
++         * The library metadata
++         * @property moduleInfo
++         */
++        this.moduleInfo = lang.merge(YUI.info.moduleInfo);
++
++        /**
++         * List of rollup files found in the library metadata
++         * @property rollups
++         */
++        this.rollups = null;
++
++        /**
++         * Whether or not to load optional dependencies for 
++         * the requested modules
++         * @property loadOptional
++         * @type boolean
++         * @default false
++         */
++        this.loadOptional = false;
++
++        /**
++         * All of the derived dependencies in sorted order, which
++         * will be populated when either calculate() or insert()
++         * is called
++         * @property sorted
++         * @type string[]
++         */
++        this.sorted = [];
++
++        /**
++         * Set when beginning to compute the dependency tree. 
++         * Composed of what YAHOO reports to be loaded combined
++         * with what has been loaded by the tool
++         * @propery loaded
++         * @type {string: boolean}
++         */
++        this.loaded = {};
++
++        /**
++         * Flag to indicate the dependency tree needs to be recomputed
++         * if insert is called again.
++         * @property dirty
++         * @type boolean
++         * @default true
++         */
++        this.dirty = true;
++
++        /**
++         * List of modules inserted by the utility
++         * @property inserted
++         * @type {string: boolean}
++         */
++        this.inserted = {};
++
++        /**
++         * Provides the information used to skin the skinnable components.
++         * The following skin definition would result in 'skin1' and 'skin2'
++         * being loaded for calendar (if calendar was requested), and
++         * 'sam' for all other skinnable components:
++         *
++         *   <code>
++         *   skin: {
++         *
++         *      // The default skin, which is automatically applied if not
++         *      // overriden by a component-specific skin definition.
++         *      // Change this in to apply a different skin globally
++         *      defaultSkin: 'sam', 
++         *
++         *      // This is combined with the loader base property to get
++         *      // the default root directory for a skin. ex:
++         *      // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
++         *      base: 'assets/skins/',
++         *
++         *      // The name of the rollup css file for the skin
++         *      path: 'skin.css',
++         *
++         *      // The number of skinnable components requested that are
++         *      // required before using the rollup file rather than the
++         *      // individual component css files
++         *      rollup: 3,
++         *
++         *      // Any component-specific overrides can be specified here,
++         *      // making it possible to load different skins for different
++         *      // components.  It is possible to load more than one skin
++         *      // for a given component as well.
++         *      overrides: {
++         *          calendar: ['skin1', 'skin2']
++         *      }
++         *   }
++         *   </code>
++         *   @property skin
++         */
++
++        var self = this;
++
++        env.listeners.push(function(m) {
++            if (self._useYahooListener) {
++                //Y.log("YAHOO listener: " + m.name);
++                self.loadNext(m.name);
++            }
++        });
++
++        this.skin = lang.merge(YUI.info.skin); 
++
++        this._config(o);
++
++    };
++
++    Y.util.YUILoader.prototype = {
++
++        FILTERS: {
++            RAW: { 
++                'searchExp': "-min\\.js", 
++                'replaceStr': ".js"
++            },
++            DEBUG: { 
++                'searchExp': "-min\\.js", 
++                'replaceStr': "-debug.js"
++            }
++        },
++
++        SKIN_PREFIX: "skin-",
++
++        _config: function(o) {
++
++            // apply config values
++            if (o) {
++                for (var i in o) {
++                    if (lang.hasOwnProperty(o, i)) {
++                        if (i == "require") {
++                            this.require(o[i]);
++                        } else {
++                            this[i] = o[i];
++                        }
++                    }
++                }
++            }
++
++            // fix filter
++            var f = this.filter;
++
++            if (lang.isString(f)) {
++                f = f.toUpperCase();
++
++                // the logger must be available in order to use the debug
++                // versions of the library
++                if (f === "DEBUG") {
++                    this.require("logger");
++                }
++
++                // hack to handle a a bug where LogWriter is being instantiated
++                // at load time, and the loader has no way to sort above it
++                // at the moment.
++                if (!Y.widget.LogWriter) {
++                    Y.widget.LogWriter = function() {
++                        return Y;
++                    };
++                }
++
++                this.filter = this.FILTERS[f];
++            }
++
++        },
++
++        /** Add a new module to the component metadata.         
++         * <dl>
++         *     <dt>name:</dt>       <dd>required, the component name</dd>
++         *     <dt>type:</dt>       <dd>required, the component type (js or css)</dd>
++         *     <dt>path:</dt>       <dd>required, the path to the script from "base"</dd>
++         *     <dt>requires:</dt>   <dd>array of modules required by this component</dd>
++         *     <dt>optional:</dt>   <dd>array of optional modules for this component</dd>
++         *     <dt>supersedes:</dt> <dd>array of the modules this component replaces</dd>
++         *     <dt>after:</dt>      <dd>array of modules the components which, if present, should be sorted above this one</dd>
++         *     <dt>rollup:</dt>     <dd>the number of superseded modules required for automatic rollup</dd>
++         *     <dt>fullpath:</dt>   <dd>If fullpath is specified, this is used instead of the configured base + path</dd>
++         *     <dt>skinnable:</dt>  <dd>flag to determine if skin assets should automatically be pulled in</dd>
++         * </dl>
++         * @method addModule
++         * @param o An object containing the module data
++         * @return {boolean} true if the module was added, false if 
++         * the object passed in did not provide all required attributes
++         */
++        addModule: function(o) {
++
++            if (!o || !o.name || !o.type || (!o.path && !o.fullpath)) {
++                return false;
++            }
++
++            o.ext = ('ext' in o) ? o.ext : true;
++            o.requires = o.requires || [];
++
++            this.moduleInfo[o.name] = o;
++            this.dirty = true;
++
++            return true;
++        },
++
++        /**
++         * Add a requirement for one or more module
++         * @method require
++         * @param what {string[] | string*} the modules to load
++         */
++        require: function(what) {
++            var a = (typeof what === "string") ? arguments : what;
++            this.dirty = true;
++            YUI.ObjectUtil.appendArray(this.required, a);
++        },
++
++        /**
++         * Adds the skin def to the module info
++         * @method _addSkin
++         * @param skin {string} the name of the skin
++         * @param mod {string} the name of the module
++         * @return {string} the module name for the skin
++         * @private
++         */
++        _addSkin: function(skin, mod) {
++
++            // Add a module definition for the skin rollup css
++            var name = this.formatSkin(skin), info = this.moduleInfo,
++                sinf = this.skin, ext = info[mod] && info[mod].ext;
++
++            // Y.log('ext? ' + mod + ": " + ext);
++            if (!info[name]) {
++                // Y.log('adding skin ' + name);
++                this.addModule({
++                    'name': name,
++                    'type': 'css',
++                    'path': sinf.base + skin + '/' + sinf.path,
++                    //'supersedes': '*',
++                    'after': sinf.after,
++                    'rollup': sinf.rollup,
++                    'ext': ext
++                });
++            }
++
++            // Add a module definition for the module-specific skin css
++            if (mod) {
++                name = this.formatSkin(skin, mod);
++                if (!info[name]) {
++                    var mdef = info[mod], pkg = mdef.pkg || mod;
++                    // Y.log('adding skin ' + name);
++                    this.addModule({
++                        'name': name,
++                        'type': 'css',
++                        'after': sinf.after,
++                        'path': pkg + '/' + sinf.base + skin + '/' + mod + '.css',
++                        'ext': ext
++                    });
++                }
++            }
++
++            return name;
++        },
++
++        /**
++         * Returns an object containing properties for all modules required
++         * in order to load the requested module
++         * @method getRequires
++         * @param mod The module definition from moduleInfo
++         */
++        getRequires: function(mod) {
++            if (!mod) {
++                return [];
++            }
++
++            if (!this.dirty && mod.expanded) {
++                return mod.expanded;
++            }
++
++            mod.requires=mod.requires || [];
++            var i, d=[], r=mod.requires, o=mod.optional, info=this.moduleInfo, m;
++            for (i=0; i<r.length; i=i+1) {
++                d.push(r[i]);
++                m = info[r[i]];
++                YUI.ArrayUtil.appendArray(d, this.getRequires(m));
++
++                // add existing skins for skinnable modules as well.  The only
++                // way to do this is go through the list of required items (this
++                // assumes that _skin is called before getRequires is called on
++                // the module.
++                // if (m.skinnable) {
++                //     var req=this.required, l=req.length;
++                //     for (var j=0; j<l; j=j+1) {
++                //         // YAHOO.log('checking ' + r[j]);
++                //         if (req[j].indexOf(r[j]) > -1) {
++                //             // YAHOO.log('adding ' + r[j]);
++                //             d.push(req[j]);
++                //         }
++                //     }
++                // }
++            }
++
++            if (o && this.loadOptional) {
++                for (i=0; i<o.length; i=i+1) {
++                    d.push(o[i]);
++                    YUI.ArrayUtil.appendArray(d, this.getRequires(info[o[i]]));
++                }
++            }
++
++            mod.expanded = YUI.ArrayUtil.uniq(d);
++
++            return mod.expanded;
++        },
++
++
++        /**
++         * Returns an object literal of the modules the supplied module satisfies
++         * @method getProvides
++         * @param name{string} The name of the module
++         * @param notMe {string} don't add this module name, only include superseded modules
++         * @return what this module provides
++         */
++        getProvides: function(name, notMe) {
++            var addMe = !(notMe), ckey = (addMe) ? PROV : SUPER,
++                m = this.moduleInfo[name], o = {};
++
++            if (!m) {
++                return o;
++            }
++
++            if (m[ckey]) {
++// Y.log('cached: ' + name + ' ' + ckey + ' ' + lang.dump(this.moduleInfo[name][ckey], 0));
++                return m[ckey];
++            }
++
++            var s = m.supersedes, done={}, me = this;
++
++            // use worker to break cycles
++            var add = function(mm) {
++                if (!done[mm]) {
++                    // Y.log(name + ' provides worker trying: ' + mm);
++                    done[mm] = true;
++                    // we always want the return value normal behavior 
++                    // (provides) for superseded modules.
++                    lang.augmentObject(o, me.getProvides(mm));
++                } 
++                
++                // else {
++                // Y.log(name + ' provides worker skipping done: ' + mm);
++                // }
++            };
++
++            // calculate superseded modules
++            if (s) {
++                for (var i=0; i<s.length; i=i+1) {
++                    add(s[i]);
++                }
++            }
++
++            // supersedes cache
++            m[SUPER] = o;
++            // provides cache
++            m[PROV] = lang.merge(o);
++            m[PROV][name] = true;
++
++// Y.log(name + " supersedes " + lang.dump(m[SUPER], 0));
++// Y.log(name + " provides " + lang.dump(m[PROV], 0));
++
++            return m[ckey];
++        },
++
++
++        /**
++         * Calculates the dependency tree, the result is stored in the sorted 
++         * property
++         * @method calculate
++         * @param o optional options object
++         */
++        calculate: function(o) {
++            if (o || this.dirty) {
++                this._config(o);
++                this._setup();
++                this._explode();
++                // this._skin(); // deprecated
++                if (this.allowRollup) {
++                    this._rollup();
++                }
++                this._reduce();
++                this._sort();
++
++                // Y.log("after calculate: " + lang.dump(this.required));
++
++                this.dirty = false;
++            }
++        },
++
++        /**
++         * Investigates the current YUI configuration on the page.  By default,
++         * modules already detected will not be loaded again unless a force
++         * option is encountered.  Called by calculate()
++         * @method _setup
++         * @private
++         */
++        _setup: function() {
++
++            var info = this.moduleInfo, name, i, j;
++
++            // Create skin modules
++            for (name in info) {
++
++                if (lang.hasOwnProperty(info, name)) {
++                    var m = info[name];
++                    if (m && m.skinnable) {
++                        // Y.log("skinning: " + name);
++                        var o=this.skin.overrides, smod;
++                        if (o && o[name]) {
++                            for (i=0; i<o[name].length; i=i+1) {
++                                smod = this._addSkin(o[name][i], name);
++                            }
++                        } else {
++                            smod = this._addSkin(this.skin.defaultSkin, name);
++                        }
++
++                        m.requires.push(smod);
++                    }
++                }
++
++            }
++
++            var l = lang.merge(this.inserted); // shallow clone
++            
++            if (!this._sandbox) {
++                l = lang.merge(l, env.modules);
++            }
++
++            // Y.log("Already loaded stuff: " + lang.dump(l, 0));
++
++            // add the ignore list to the list of loaded packages
++            if (this.ignore) {
++                YUI.ObjectUtil.appendArray(l, this.ignore);
++            }
++
++            // remove modules on the force list from the loaded list
++            if (this.force) {
++                for (i=0; i<this.force.length; i=i+1) {
++                    if (this.force[i] in l) {
++                        delete l[this.force[i]];
++                    }
++                }
++            }
++
++            // expand the list to include superseded modules
++            for (j in l) {
++                // Y.log("expanding: " + j);
++                if (lang.hasOwnProperty(l, j)) {
++                    lang.augmentObject(l, this.getProvides(j));
++                }
++            }
++
++            // Y.log("loaded expanded: " + lang.dump(l, 0));
++
++            this.loaded = l;
++
++        },
++        
++
++        /**
++         * Inspects the required modules list looking for additional 
++         * dependencies.  Expands the required list to include all 
++         * required modules.  Called by calculate()
++         * @method _explode
++         * @private
++         */
++        _explode: function() {
++
++            var r=this.required, i, mod;
++
++            for (i in r) {
++                if (lang.hasOwnProperty(r, i)) {
++                    mod = this.moduleInfo[i];
++                    if (mod) {
++
++                        var req = this.getRequires(mod);
++
++                        if (req) {
++                            YUI.ObjectUtil.appendArray(r, req);
++                        }
++                    }
++                }
++            }
++        },
++
++        /**
++         * Sets up the requirements for the skin assets if any of the
++         * requested modules are skinnable
++         * @method _skin
++         * @private
++         * @deprecated skin modules are generated for all skinnable
++         *             components during _setup(), and the components
++         *             are configured to require the skin.
++         */
++        _skin: function() {
++
++        },
++
++        /**
++         * Returns the skin module name for the specified skin name.  If a
++         * module name is supplied, the returned skin module name is 
++         * specific to the module passed in.
++         * @method formatSkin
++         * @param skin {string} the name of the skin
++         * @param mod {string} optional: the name of a module to skin
++         * @return {string} the full skin module name
++         */
++        formatSkin: function(skin, mod) {
++            var s = this.SKIN_PREFIX + skin;
++            if (mod) {
++                s = s + "-" + mod;
++            }
++
++            return s;
++        },
++        
++        /**
++         * Reverses <code>formatSkin</code>, providing the skin name and
++         * module name if the string matches the pattern for skins.
++         * @method parseSkin
++         * @param mod {string} the module name to parse
++         * @return {skin: string, module: string} the parsed skin name 
++         * and module name, or null if the supplied string does not match
++         * the skin pattern
++         */
++        parseSkin: function(mod) {
++            
++            if (mod.indexOf(this.SKIN_PREFIX) === 0) {
++                var a = mod.split("-");
++                return {skin: a[1], module: a[2]};
++            } 
++
++            return null;
++        },
++
++        /**
++         * Look for rollup packages to determine if all of the modules a
++         * rollup supersedes are required.  If so, include the rollup to
++         * help reduce the total number of connections required.  Called
++         * by calculate()
++         * @method _rollup
++         * @private
++         */
++        _rollup: function() {
++            var i, j, m, s, rollups={}, r=this.required, roll,
++                info = this.moduleInfo;
++
++            // find and cache rollup modules
++            if (this.dirty || !this.rollups) {
++                for (i in info) {
++                    if (lang.hasOwnProperty(info, i)) {
++                        m = info[i];
++                        //if (m && m.rollup && m.supersedes) {
++                        if (m && m.rollup) {
++                            rollups[i] = m;
++                        }
++                    }
++                }
++
++                this.rollups = rollups;
++            }
++
++            // make as many passes as needed to pick up rollup rollups
++            for (;;) {
++                var rolled = false;
++
++                // go through the rollup candidates
++                for (i in rollups) { 
++
++                    // there can be only one
++                    if (!r[i] && !this.loaded[i]) {
++                        m =info[i]; s = m.supersedes; roll=false;
++
++                        if (!m.rollup) {
++                            continue;
++                        }
++
++                        var skin = (m.ext) ? false : this.parseSkin(i), c = 0;
++
++                        // Y.log('skin? ' + i + ": " + skin);
++                        if (skin) {
++                            for (j in r) {
++                                if (lang.hasOwnProperty(r, j)) {
++                                    if (i !== j && this.parseSkin(j)) {
++                                        c++;
++                                        roll = (c >= m.rollup);
++                                        if (roll) {
++                                            // Y.log("skin rollup " + lang.dump(r));
++                                            break;
++                                        }
++                                    }
++                                }
++                            }
++
++                        } else {
++
++                            // check the threshold
++                            for (j=0;j<s.length;j=j+1) {
++
++                                // if the superseded module is loaded, we can't load the rollup
++                                if (this.loaded[s[j]] && (!YUI.dupsAllowed[s[j]])) {
++                                    roll = false;
++                                    break;
++                                // increment the counter if this module is required.  if we are
++                                // beyond the rollup threshold, we will use the rollup module
++                                } else if (r[s[j]]) {
++                                    c++;
++                                    roll = (c >= m.rollup);
++                                    if (roll) {
++                                        // Y.log("over thresh " + c + ", " + lang.dump(r));
++                                        break;
++                                    }
++                                }
++                            }
++                        }
++
++                        if (roll) {
++                            // Y.log("rollup: " +  i + ", " + lang.dump(this, 1));
++                            // add the rollup
++                            r[i] = true;
++                            rolled = true;
++
++                            // expand the rollup's dependencies
++                            this.getRequires(m);
++                        }
++                    }
++                }
++
++                // if we made it here w/o rolling up something, we are done
++                if (!rolled) {
++                    break;
++                }
++            }
++        },
++
++        /**
++         * Remove superceded modules and loaded modules.  Called by
++         * calculate() after we have the mega list of all dependencies
++         * @method _reduce
++         * @private
++         */
++        _reduce: function() {
++
++            var i, j, s, m, r=this.required;
++            for (i in r) {
++
++                // remove if already loaded
++                if (i in this.loaded) { 
++                    delete r[i];
++
++                // remove anything this module supersedes
++                } else {
++
++                    var skinDef = this.parseSkin(i);
++
++                    if (skinDef) {
++                        //YAHOO.log("skin found in reduce: " + skinDef.skin + ", " + skinDef.module);
++                        // the skin rollup will not have a module name
++                        if (!skinDef.module) {
++                            var skin_pre = this.SKIN_PREFIX + skinDef.skin;
++                            //YAHOO.log("skin_pre: " + skin_pre);
++                            for (j in r) {
++
++                                if (lang.hasOwnProperty(r, j)) {
++                                    m = this.moduleInfo[j];
++                                    var ext = m && m.ext;
++                                    if (!ext && j !== i && j.indexOf(skin_pre) > -1) {
++                                        // Y.log ("removing component skin: " + j);
++                                        delete r[j];
++                                    }
++                                }
++                            }
++                        }
++                    } else {
++
++                         m = this.moduleInfo[i];
++                         s = m && m.supersedes;
++                         if (s) {
++                             for (j=0; j<s.length; j=j+1) {
++                                 if (s[j] in r) {
++                                     delete r[s[j]];
++                                 }
++                             }
++                         }
++                    }
++                }
++            }
++        },
++
++        _onFailure: function(msg) {
++            YAHOO.log('Failure', 'info', 'loader');
++
++            var f = this.onFailure;
++            if (f) {
++                f.call(this.scope, {
++                    msg: 'failure: ' + msg,
++                    data: this.data,
++                    success: false
++                });
++            }
++        },
++
++        _onTimeout: function() {
++            YAHOO.log('Timeout', 'info', 'loader');
++            var f = this.onTimeout;
++            if (f) {
++                f.call(this.scope, {
++                    msg: 'timeout',
++                    data: this.data,
++                    success: false
++                });
++            }
++        },
++        
++        /**
++         * Sorts the dependency tree.  The last step of calculate()
++         * @method _sort
++         * @private
++         */
++        _sort: function() {
++            // create an indexed list
++            var s=[], info=this.moduleInfo, loaded=this.loaded,
++                checkOptional=!this.loadOptional, me = this;
++
++            // returns true if b is not loaded, and is required
++            // directly or by means of modules it supersedes.
++            var requires = function(aa, bb) {
++
++                var mm=info[aa];
++
++                if (loaded[bb] || !mm) {
++                    return false;
++                }
++
++                var ii, 
++                    rr = mm.expanded, 
++                    after = mm.after, 
++                    other = info[bb],
++                    optional = mm.optional;
++
++
++                // check if this module requires the other directly
++                if (rr && YUI.ArrayUtil.indexOf(rr, bb) > -1) {
++                    return true;
++                }
++
++                // check if this module should be sorted after the other
++                if (after && YUI.ArrayUtil.indexOf(after, bb) > -1) {
++                    return true;
++                }
++
++                // if loadOptional is not specified, optional dependencies still
++                // must be sorted correctly when present.
++                if (checkOptional && optional && YUI.ArrayUtil.indexOf(optional, bb) > -1) {
++                    return true;
++                }
++
++                // check if this module requires one the other supersedes
++                var ss=info[bb] && info[bb].supersedes;
++                if (ss) {
++                    for (ii=0; ii<ss.length; ii=ii+1) {
++                        if (requires(aa, ss[ii])) {
++                            return true;
++                        }
++                    }
++                }
++
++                // var ss=me.getProvides(bb, true);
++                // if (ss) {
++                //     for (ii in ss) {
++                //         if (requires(aa, ii)) {
++                //             return true;
++                //         }
++                //     }
++                // }
++
++                // external css files should be sorted below yui css
++                if (mm.ext && mm.type == 'css' && !other.ext && other.type == 'css') {
++                    return true;
++                }
++
++                return false;
++            };
++
++            // get the required items out of the obj into an array so we
++            // can sort
++            for (var i in this.required) {
++                if (lang.hasOwnProperty(this.required, i)) {
++                    s.push(i);
++                }
++            }
++
++            // pointer to the first unsorted item
++            var p=0; 
++
++            // keep going until we make a pass without moving anything
++            for (;;) {
++               
++                var l=s.length, a, b, j, k, moved=false;
++
++                // start the loop after items that are already sorted
++                for (j=p; j<l; j=j+1) {
++
++                    // check the next module on the list to see if its
++                    // dependencies have been met
++                    a = s[j];
++
++                    // check everything below current item and move if we
++                    // find a requirement for the current item
++                    for (k=j+1; k<l; k=k+1) {
++                        if (requires(a, s[k])) {
++
++                            // extract the dependency so we can move it up
++                            b = s.splice(k, 1);
++
++                            // insert the dependency above the item that 
++                            // requires it
++                            s.splice(j, 0, b[0]);
++
++                            moved = true;
++                            break;
++                        }
++                    }
++
++                    // jump out of loop if we moved something
++                    if (moved) {
++                        break;
++                    // this item is sorted, move our pointer and keep going
++                    } else {
++                        p = p + 1;
++                    }
++                }
++
++                // when we make it here and moved is false, we are 
++                // finished sorting
++                if (!moved) {
++                    break;
++                }
++
++            }
++
++            this.sorted = s;
++        },
++
++        toString: function() {
++            var o = {
++                type: "YUILoader",
++                base: this.base,
++                filter: this.filter,
++                required: this.required,
++                loaded: this.loaded,
++                inserted: this.inserted
++            };
++
++            lang.dump(o, 1);
++        },
++
++        _combine: function() {
++
++                this._combining = []; 
++
++                var self = this,
++                    s=this.sorted,
++                    len = s.length,
++                    js = this.comboBase,
++                    css = this.comboBase,
++                    target, 
++                    startLen = js.length,
++                    i, m, type = this.loadType;
++
++                YAHOO.log('type ' + type);
++
++                for (i=0; i<len; i=i+1) {
++
++                    m = this.moduleInfo[s[i]];
++
++                    if (m && !m.ext && (!type || type === m.type)) {
++
++                        target = this.root + m.path;
++
++                        // if (i < len-1) {
++                        target += '&';
++                        // }
++
++                        if (m.type == 'js') {
++                            js += target;
++                        } else {
++                            css += target;
++                        }
++
++                        // YAHOO.log(target);
++                        this._combining.push(s[i]);
++                    }
++                }
++
++                if (this._combining.length) {
++
++YAHOO.log('Attempting to combine: ' + this._combining, "info", "loader");
++
++                    var callback=function(o) {
++                        // YAHOO.log('Combo complete: ' + o.data, "info", "loader");
++                        // this._combineComplete = true;
++
++                        var c=this._combining, len=c.length, i, m;
++                        for (i=0; i<len; i=i+1) {
++                            this.inserted[c[i]] = true;
++                        }
++
++                        this.loadNext(o.data);
++                    }, 
++                    
++                    loadScript = function() {
++                        // YAHOO.log('combining js: ' + js);
++                        if (js.length > startLen) {
++                            YAHOO.util.Get.script(self._filter(js), {
++                                data: self._loading,
++                                onSuccess: callback,
++                                onFailure: self._onFailure,
++                                onTimeout: self._onTimeout,
++                                insertBefore: self.insertBefore,
++                                charset: self.charset,
++                                timeout: self.timeout,
++                                scope: self 
++                            });
++                        }
++                    };
++
++                    // load the css first
++                    // YAHOO.log('combining css: ' + css);
++                    if (css.length > startLen) {
++                        YAHOO.util.Get.css(this._filter(css), {
++                            data: this._loading,
++                            onSuccess: loadScript,
++                            onFailure: this._onFailure,
++                            onTimeout: this._onTimeout,
++                            insertBefore: this.insertBefore,
++                            charset: this.charset,
++                            timeout: this.timeout,
++                            scope: self 
++                        });
++                    } else {
++                        loadScript();
++                    }
++
++                    return;
++
++                } else {
++                    // this._combineComplete = true;
++                    this.loadNext(this._loading);
++                }
++        }, 
++
++        /**
++         * inserts the requested modules and their dependencies.  
++         * <code>type</code> can be "js" or "css".  Both script and 
++         * css are inserted if type is not provided.
++         * @method insert
++         * @param o optional options object
++         * @param type {string} the type of dependency to insert
++         */
++        insert: function(o, type) {
++            // if (o) {
++            //     Y.log("insert: " + lang.dump(o, 1) + ", " + type);
++            // } else {
++            //     Y.log("insert: " + this.toString() + ", " + type);
++            // }
++
++            // build the dependency list
++            this.calculate(o);
++
++
++            // set a flag to indicate the load has started
++            this._loading = true;
++
++            // flag to indicate we are done with the combo service
++            // and any additional files will need to be loaded
++            // individually
++            // this._combineComplete = false;
++
++            // keep the loadType (js, css or undefined) cached
++            this.loadType = type;
++
++            if (this.combine) {
++                return this._combine();
++            }
++
++            if (!type) {
++                // Y.log("trying to load css first");
++                var self = this;
++                this._internalCallback = function() {
++                            self._internalCallback = null;
++                            self.insert(null, "js");
++                        };
++                this.insert(null, "css");
++                return;
++            }
++
++
++            // start the load
++            this.loadNext();
++
++        },
++
++        /**
++         * Interns the script for the requested modules.  The callback is
++         * provided a reference to the sandboxed YAHOO object.  This only
++         * applies to the script: css can not be sandboxed; css will be
++         * loaded into the page normally if specified.
++         * @method sandbox
++         * @param callback {Function} the callback to exectued when the load is
++         *        complete.
++         */
++        sandbox: function(o, type) {
++            // if (o) {
++                // YAHOO.log("sandbox: " + lang.dump(o, 1) + ", " + type);
++            // } else {
++                // YAHOO.log("sandbox: " + this.toString() + ", " + type);
++            // }
++
++            this._config(o);
++
++            if (!this.onSuccess) {
++throw new Error("You must supply an onSuccess handler for your sandbox");
++            }
++
++            this._sandbox = true;
++
++            var self = this;
++
++            // take care of any css first (this can't be sandboxed)
++            if (!type || type !== "js") {
++                this._internalCallback = function() {
++                            self._internalCallback = null;
++                            self.sandbox(null, "js");
++                        };
++                this.insert(null, "css");
++                return;
++            }
++
++            // get the connection manager if not on the page
++            if (!util.Connect) {
++                // get a new loader instance to load connection.
++                var ld = new YAHOO.util.YUILoader();
++                ld.insert({
++                    base: this.base,
++                    filter: this.filter,
++                    require: "connection",
++                    insertBefore: this.insertBefore,
++                    charset: this.charset,
++                    onSuccess: function() {
++                        this.sandbox(null, "js");
++                    },
++                    scope: this
++                }, "js");
++                return;
++            }
++
++            this._scriptText = [];
++            this._loadCount = 0;
++            this._stopCount = this.sorted.length;
++            this._xhr = [];
++
++            this.calculate();
++
++            var s=this.sorted, l=s.length, i, m, url;
++
++            for (i=0; i<l; i=i+1) {
++                m = this.moduleInfo[s[i]];
++
++                // undefined modules cause a failure
++                if (!m) {
++                    this._onFailure("undefined module " + m);
++                    for (var j=0;j<this._xhr.length;j=j+1) {
++                        this._xhr[j].abort();
++                    }
++                    return;
++                }
++
++                // css files should be done
++                if (m.type !== "js") {
++                    this._loadCount++;
++                    continue;
++                }
++
++                url = m.fullpath;
++                url = (url) ? this._filter(url) : this._url(m.path);
++
++                // YAHOO.log("xhr request: " + url + ", " + i);
++
++                var xhrData = {
++
++                    success: function(o) {
++                        
++                        var idx=o.argument[0], name=o.argument[2];
++
++                        // store the response in the position it was requested
++                        this._scriptText[idx] = o.responseText; 
++                        
++                        // YAHOO.log("received: " + o.responseText.substr(0, 100) + ", " + idx);
++                    
++                        if (this.onProgress) {
++                            this.onProgress.call(this.scope, {
++                                        name: name,
++                                        scriptText: o.responseText,
++                                        xhrResponse: o,
++                                        data: this.data
++                                    });
++                        }
++
++                        // only generate the sandbox once everything is loaded
++                        this._loadCount++;
++
++                        if (this._loadCount >= this._stopCount) {
++
++                            // the variable to find
++                            var v = this.varName || "YAHOO";
++
++                            // wrap the contents of the requested modules in an anonymous function
++                            var t = "(function() {\n";
++                        
++                            // return the locally scoped reference.
++                            var b = "\nreturn " + v + ";\n})();";
++
++                            var ref = eval(t + this._scriptText.join("\n") + b);
++
++                            this._pushEvents(ref);
++
++                            if (ref) {
++                                this.onSuccess.call(this.scope, {
++                                        reference: ref,
++                                        data: this.data
++                                    });
++                            } else {
++                                this._onFailure.call(this.varName + " reference failure");
++                            }
++                        }
++                    },
++
++                    failure: function(o) {
++                        this.onFailure.call(this.scope, {
++                                msg: "XHR failure",
++                                xhrResponse: o,
++                                data: this.data
++                            });
++                    },
++
++                    scope: this,
++
++                    // module index, module name, sandbox name
++                    argument: [i, url, s[i]]
++
++                };
++
++                this._xhr.push(util.Connect.asyncRequest('GET', url, xhrData));
++            }
++        },
++
++        /**
++         * Executed every time a module is loaded, and if we are in a load
++         * cycle, we attempt to load the next script.  Public so that it
++         * is possible to call this if using a method other than
++         * YAHOO.register to determine when scripts are fully loaded
++         * @method loadNext
++         * @param mname {string} optional the name of the module that has
++         * been loaded (which is usually why it is time to load the next
++         * one)
++         */
++        loadNext: function(mname) {
++
++            // It is possible that this function is executed due to something
++            // else one the page loading a YUI module.  Only react when we
++            // are actively loading something
++            if (!this._loading) {
++                return;
++            }
++
++
++            if (mname) {
++
++                // if the module that was just loaded isn't what we were expecting,
++                // continue to wait
++                if (mname !== this._loading) {
++                    return;
++                }
++
++                // YAHOO.log("loadNext executing, just loaded " + mname);
++
++                // The global handler that is called when each module is loaded
++                // will pass that module name to this function.  Storing this
++                // data to avoid loading the same module multiple times
++                this.inserted[mname] = true;
++
++                if (this.onProgress) {
++                    this.onProgress.call(this.scope, {
++                            name: mname,
++                            data: this.data
++                        });
++                }
++                //var o = this.getProvides(mname);
++                //this.inserted = lang.merge(this.inserted, o);
++            }
++
++            var s=this.sorted, len=s.length, i, m;
++
++            for (i=0; i<len; i=i+1) {
++
++                // This.inserted keeps track of what the loader has loaded
++                if (s[i] in this.inserted) {
++                    // YAHOO.log(s[i] + " alread loaded ");
++                    continue;
++                }
++
++                // Because rollups will cause multiple load notifications
++                // from YAHOO, loadNext may be called multiple times for
++                // the same module when loading a rollup.  We can safely
++                // skip the subsequent requests
++                if (s[i] === this._loading) {
++                    // YAHOO.log("still loading " + s[i] + ", waiting");
++                    return;
++                }
++
++                // log("inserting " + s[i]);
++                m = this.moduleInfo[s[i]];
++
++                if (!m) {
++                    this.onFailure.call(this.scope, {
++                            msg: "undefined module " + m,
++                            data: this.data
++                        });
++                    return;
++                }
++
++                // The load type is stored to offer the possibility to load
++                // the css separately from the script.
++                if (!this.loadType || this.loadType === m.type) {
++                    this._loading = s[i];
++                    //YAHOO.log("attempting to load " + s[i] + ", " + this.base);
++
++                    var fn=(m.type === "css") ? util.Get.css : util.Get.script,
++                        url = m.fullpath,
++                        self=this, 
++                        c=function(o) {
++                            self.loadNext(o.data);
++                        };
++
++                        url = (url) ? this._filter(url) : this._url(m.path);
++
++                    // safari 2.x or lower, script, and part of YUI
++                    if (env.ua.webkit && env.ua.webkit < 420 && m.type === "js" && 
++                          !m.varName) {
++                          //YUI.info.moduleInfo[s[i]]) {
++                          //YAHOO.log("using YAHOO env " + s[i] + ", " + m.varName);
++                        c = null;
++                        this._useYahooListener = true;
++                    }
++
++                    fn(url, {
++                        data: s[i],
++                        onSuccess: c,
++                        onFailure: this._onFailure,
++                        onTimeout: this._onTimeout,
++                        insertBefore: this.insertBefore,
++                        charset: this.charset,
++                        timeout: this.timeout,
++                        varName: m.varName,
++                        scope: self 
++                    });
++
++                    return;
++                }
++            }
++
++            // we are finished
++            this._loading = null;
++
++            // internal callback for loading css first
++            if (this._internalCallback) {
++                var f = this._internalCallback;
++                this._internalCallback = null;
++                f.call(this);
++            } else if (this.onSuccess) {
++                this._pushEvents();
++                this.onSuccess.call(this.scope, {
++                        data: this.data
++                    });
++            }
++
++        },
++
++        /**
++         * In IE, the onAvailable/onDOMReady events need help when Event is
++         * loaded dynamically
++         * @method _pushEvents
++         * @param {Function} optional function reference
++         * @private
++         */
++        _pushEvents: function(ref) {
++            var r = ref || YAHOO;
++            if (r.util && r.util.Event) {
++                r.util.Event._load();
++            }
++        },
++
++        /**
++         * Applies filter
++         * method _filter
++         * @return {string} the filtered string
++         * @private
++         */
++        _filter: function(str) {
++            var f = this.filter;
++            return (f) ?  str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str;
++        },
++
++        /**
++         * Generates the full url for a module
++         * method _url
++         * @param path {string} the path fragment
++         * @return {string} the full url
++         * @private
++         */
++        _url: function(path) {
++            return this._filter((this.base || "") + path);
++        }
++
++    };
++
++})();
++
++YAHOO.register("yuiloader", YAHOO.util.YUILoader, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuiloader/yuiloader-min.js b/pylons_app/public/js/yui/yuiloader/yuiloader-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuiloader/yuiloader-min.js
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules,B,H,G,F,C;if(!I[A]){I[A]={versions:[],builds:[]};}B=I[A];H=D.version;G=D.build;F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var D=function(H){var I=0;return parseFloat(H.replace(/\./g,function(){return(I++==1)?"":".";}));},G=navigator,F={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:G.cajaVersion,secure:false,os:null},C=navigator&&navigator.userAgent,E=window&&window.location,B=E&&E.href,A;F.secure=B&&(B.toLowerCase().indexOf("https")===0);if(C){if((/windows|win32/i).test(C)){F.os="windows";}else{if((/macintosh/i).test(C)){F.os="macintosh";}}if((/KHTML/).test(C)){F.webkit=1;}A=C.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){F.webkit=D(A[1]);if(/ Mobile\//.test(C)){F.mobile="Apple";}else{A=C.match(/NokiaN[^\/]*/);if(A){F.mobile=A[0];}}A=C.match(/AdobeAIR\/([^\s]*)/);if(A){F.air=A[0];}}if(!F.webkit){A=C.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){F.opera=D(A[1]);A=C.match(/Opera Mini[^;]*/);if(A){F.mobile=A[0];}}else{A=C.match(/MSIE\s([^;]*)/);if(A&&A[1]){F.ie=D(A[1]);}else{A=C.match(/Gecko\/([^\s]*)/);if(A){F.gecko=1;A=C.match(/rv:([^\s\)]*)/);if(A&&A[1]){F.gecko=D(A[1]);}}}}}}return F;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C++){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var B=YAHOO.lang,A=Object.prototype,H="[object Array]",C="[object Function]",G="[object Object]",E=[],F=["toString","valueOf"],D={isArray:function(I){return A.toString.apply(I)===H;},isBoolean:function(I){return typeof I==="boolean";},isFunction:function(I){return(typeof I==="function")||A.toString.apply(I)===C;},isNull:function(I){return I===null;},isNumber:function(I){return typeof I==="number"&&isFinite(I);},isObject:function(I){return(I&&(typeof I==="object"||B.isFunction(I)))||false;},isString:function(I){return typeof I==="string";},isUndefined:function(I){return typeof I==="undefined";},_IEEnumFix:(YAHOO.env.ua.ie)?function(K,J){var I,M,L;for(I=0;I<F.length;I=I+1){M=F[I];L=J[M];if(B.isFunction(L)&&L!=A[M]){K[M]=L;}}}:function(){},extend:function(L,M,K){if(!M||!L){throw new Error("extend failed, please check that "+"all dependencies are included.");}var J=function(){},I;J.prototype=M.prototype;L.prototype=new J();L.prototype.constructor=L;L.superclass=M.prototype;if(M.prototype.constructor==A.constructor){M.prototype.constructor=M;}if(K){for(I in K){if(B.hasOwnProperty(K,I)){L.prototype[I]=K[I];}}B._IEEnumFix(L.prototype,K);}},augmentObject:function(M,L){if(!L||!M){throw new Error("Absorb failed, verify dependencies.");}var I=arguments,K,N,J=I[2];if(J&&J!==true){for(K=2;K<I.length;K=K+1){M[I[K]]=L[I[K]];}}else{for(N in L){if(J||!(N in M)){M[N]=L[N];}}B._IEEnumFix(M,L);}},augmentProto:function(L,K){if(!K||!L){throw new Error("Augment failed, verify dependencies.");}var I=[L.prototype,K.prototype],J;for(J=2;J<arguments.length;J=J+1){I.push(arguments[J]);}B.augmentObject.apply(this,I);},dump:function(I,N){var K,M,P=[],Q="{...}",J="f(){...}",O=", ",L=" => ";if(!B.isObject(I)){return I+"";}else{if(I instanceof Date||("nodeType" in I&&"tagName" in I)){return I;}else{if(B.isFunction(I)){return J;}}}N=(B.isNumber(N))?N:3;if(B.isArray(I)){P.push("[");for(K=0,M=I.length;K<M;K=K+1){if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}if(P.length>1){P.pop();}P.push("]");}else{P.push("{");for(K in I){if(B.hasOwnProperty(I,K)){P.push(K+L);if(B.isObject(I[K])){P.push((N>0)?B.dump(I[K],N-1):Q);}else{P.push(I[K]);}P.push(O);}}if(P.length>1){P.pop();}P.push("}");}return P.join("");},substitute:function(Y,J,R){var N,M,L,U,V,X,T=[],K,O="dump",S=" ",I="{",W="}",Q,P;for(;;){N=Y.lastIndexOf(I);if(N<0){break;}M=Y.indexOf(W,N);if(N+1>=M){break;}K=Y.substring(N+1,M);U=K;X=null;L=U.indexOf(S);if(L>-1){X=U.substring(L+1);U=U.substring(0,L);}V=J[U];if(R){V=R(U,V,X);}if(B.isObject(V)){if(B.isArray(V)){V=B.dump(V,parseInt(X,10));}else{X=X||"";Q=X.indexOf(O);if(Q>-1){X=X.substring(4);}P=V.toString();if(P===G||Q>-1){V=B.dump(V,parseInt(X,10));}else{V=P;}}}else{if(!B.isString(V)&&!B.isNumber(V)){V="~-"+T.length+"-~";T[T.length]=K;}}Y=Y.substring(0,N)+V+Y.substring(M+1);}for(N=T.length-1;N>=0;N=N-1){Y=Y.replace(new RegExp("~-"+N+"-~"),"{"+T[N]+"}","g");}return Y;},trim:function(I){try{return I.replace(/^\s+|\s+$/g,"");}catch(J){return I;}},merge:function(){var L={},J=arguments,I=J.length,K;for(K=0;K<I;K=K+1){B.augmentObject(L,J[K],true);}return L;},later:function(P,J,Q,L,M){P=P||0;J=J||{};var K=Q,O=L,N,I;if(B.isString(Q)){K=J[Q];}if(!K){throw new TypeError("method undefined");}if(O&&!B.isArray(O)){O=[L];}N=function(){K.apply(J,O||E);};I=(M)?setInterval(N,P):setTimeout(N,P);return{interval:M,cancel:function(){if(this.interval){clearInterval(I);}else{clearTimeout(I);}}};},isValue:function(I){return(B.isObject(I)||B.isString(I)||B.isNumber(I)||B.isBoolean(I));}};B.hasOwnProperty=(A.hasOwnProperty)?function(I,J){return I&&I.hasOwnProperty(J);}:function(I,J){return !B.isUndefined(I[J])&&I.constructor.prototype[J]!==I[J];};D.augmentObject(B,D,true);YAHOO.util.Lang=B;B.augment=B.augmentProto;YAHOO.augment=B.augmentProto;YAHOO.extend=B.extend;})();YAHOO.register("yahoo",YAHOO,{version:"2.8.0r4",build:"2449"});
++YAHOO.util.Get=function(){var M={},L=0,R=0,E=false,N=YAHOO.env.ua,S=YAHOO.lang;var J=function(W,T,X){var U=X||window,Y=U.document,Z=Y.createElement(W);for(var V in T){if(T[V]&&YAHOO.lang.hasOwnProperty(T,V)){Z.setAttribute(V,T[V]);}}return Z;};var I=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/css",rel:"stylesheet",href:U};if(T){S.augmentObject(W,T);}return J("link",W,V);};var P=function(U,V,T){var W={id:"yui__dyn_"+(R++),type:"text/javascript",src:U};if(T){S.augmentObject(W,T);}return J("script",W,V);};var A=function(T,U){return{tId:T.tId,win:T.win,data:T.data,nodes:T.nodes,msg:U,purge:function(){D(this.tId);}};};var B=function(T,W){var U=M[W],V=(S.isString(T))?U.win.document.getElementById(T):T;if(!V){Q(W,"target node not found: "+T);}return V;};var Q=function(W,V){var T=M[W];if(T.onFailure){var U=T.scope||T.win;T.onFailure.call(U,A(T,V));}};var C=function(W){var T=M[W];T.finished=true;if(T.aborted){var V="transaction "+W+" was aborted";Q(W,V);return;}if(T.onSuccess){var U=T.scope||T.win;T.onSuccess.call(U,A(T));}};var O=function(V){var T=M[V];if(T.onTimeout){var U=T.scope||T;T.onTimeout.call(U,A(T));}};var G=function(V,Z){var U=M[V];if(U.timer){U.timer.cancel();}if(U.aborted){var X="transaction "+V+" was aborted";Q(V,X);return;}if(Z){U.url.shift();if(U.varName){U.varName.shift();}}else{U.url=(S.isString(U.url))?[U.url]:U.url;if(U.varName){U.varName=(S.isString(U.varName))?[U.varName]:U.varName;}}var c=U.win,b=c.document,a=b.getElementsByTagName("head")[0],W;if(U.url.length===0){if(U.type==="script"&&N.webkit&&N.webkit<420&&!U.finalpass&&!U.varName){var Y=P(null,U.win,U.attributes);Y.innerHTML='YAHOO.util.Get._finalize("'+V+'");';U.nodes.push(Y);a.appendChild(Y);}else{C(V);}return;}var T=U.url[0];if(!T){U.url.shift();return G(V);}if(U.timeout){U.timer=S.later(U.timeout,U,O,V);}if(U.type==="script"){W=P(T,c,U.attributes);}else{W=I(T,c,U.attributes);}F(U.type,W,V,T,c,U.url.length);U.nodes.push(W);if(U.insertBefore){var e=B(U.insertBefore,V);if(e){e.parentNode.insertBefore(W,e);}}else{a.appendChild(W);}if((N.webkit||N.gecko)&&U.type==="css"){G(V,T);}};var K=function(){if(E){return;}E=true;for(var T in M){var U=M[T];if(U.autopurge&&U.finished){D(U.tId);delete M[T];}}E=false;};var D=function(Z){if(M[Z]){var T=M[Z],U=T.nodes,X=U.length,c=T.win.document,a=c.getElementsByTagName("head")[0],V,Y,W,b;if(T.insertBefore){V=B(T.insertBefore,Z);if(V){a=V.parentNode;}}for(Y=0;Y<X;Y=Y+1){W=U[Y];if(W.clearAttributes){W.clearAttributes();}else{for(b in W){delete W[b];}}a.removeChild(W);}T.nodes=[];}};var H=function(U,T,V){var X="q"+(L++);V=V||{};if(L%YAHOO.util.Get.PURGE_THRESH===0){K();}M[X]=S.merge(V,{tId:X,type:U,url:T,finished:false,aborted:false,nodes:[]});var W=M[X];W.win=W.win||window;W.scope=W.scope||W.win;W.autopurge=("autopurge" in W)?W.autopurge:(U==="script")?true:false;if(V.charset){W.attributes=W.attributes||{};W.attributes.charset=V.charset;}S.later(0,W,G,X);return{tId:X};};var F=function(c,X,W,U,Y,Z,b){var a=b||G;if(N.ie){X.onreadystatechange=function(){var d=this.readyState;if("loaded"===d||"complete"===d){X.onreadystatechange=null;a(W,U);}};}else{if(N.webkit){if(c==="script"){if(N.webkit>=420){X.addEventListener("load",function(){a(W,U);});}else{var T=M[W];if(T.varName){var V=YAHOO.util.Get.POLL_FREQ;T.maxattempts=YAHOO.util.Get.TIMEOUT/V;T.attempts=0;T._cache=T.varName[0].split(".");T.timer=S.later(V,T,function(j){var f=this._cache,e=f.length,d=this.win,g;for(g=0;g<e;g=g+1){d=d[f[g]];if(!d){this.attempts++;if(this.attempts++>this.maxattempts){var h="Over retry limit, giving up";T.timer.cancel();Q(W,h);}else{}return;}}T.timer.cancel();a(W,U);},null,true);}else{S.later(YAHOO.util.Get.POLL_FREQ,null,a,[W,U]);}}}}else{X.onload=function(){a(W,U);};}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(T){S.later(0,null,C,T);},abort:function(U){var V=(S.isString(U))?U:U.tId;var T=M[V];if(T){T.aborted=true;}},script:function(T,U){return H("script",T,U);},css:function(T,U){return H("css",T,U);}};}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.0r4",build:"2449"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"yahoo":true,"get":true},info:{"root":"2.8.0r4/build/","base":"http://yui.yahooapis.com/2.8.0r4/build/","comboBase":"http://yui.yahooapis.com/combo?","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["yahoo","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event","datasource"],"optional":["connection","animation"],"skinnable":true},"base":{"type":"css","path":"base/base-min.css","after":["reset","fonts","grids"]},"button":{"type":"js","path":"button/button-min.js","requires":["element"],"optional":["menu"],"skinnable":true},"calendar":{"type":"js","path":"calendar/calendar-min.js","requires":["event","dom"],supersedes:["datemeth"],"skinnable":true},"carousel":{"type":"js","path":"carousel/carousel-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"charts":{"type":"js","path":"charts/charts-min.js","requires":["element","json","datasource","swf"]},"colorpicker":{"type":"js","path":"colorpicker/colorpicker-min.js","requires":["slider","element"],"optional":["animation"],"skinnable":true},"connection":{"type":"js","path":"connection/connection-min.js","requires":["event"],"supersedes":["connectioncore"]},"connectioncore":{"type":"js","path":"connection/connection_core-min.js","requires":["event"],"pkg":"connection"},"container":{"type":"js","path":"container/container-min.js","requires":["dom","event"],"optional":["dragdrop","animation","connection"],"supersedes":["containercore"],"skinnable":true},"containercore":{"type":"js","path":"container/container_core-min.js","requires":["dom","event"],"pkg":"container"},"cookie":{"type":"js","path":"cookie/cookie-min.js","requires":["yahoo"]},"datasource":{"type":"js","path":"datasource/datasource-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop","paginator"],"skinnable":true},datemath:{"type":"js","path":"datemath/datemath-min.js","requires":["yahoo"]},"dom":{"type":"js","path":"dom/dom-min.js","requires":["yahoo"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-min.js","requires":["menu","element","button"],"optional":["animation","dragdrop"],"supersedes":["simpleeditor"],"skinnable":true},"element":{"type":"js","path":"element/element-min.js","requires":["dom","event"],"optional":["event-mouseenter","event-delegate"]},"element-delegate":{"type":"js","path":"element-delegate/element-delegate-min.js","requires":["element"]},"event":{"type":"js","path":"event/event-min.js","requires":["yahoo"]},"event-simulate":{"type":"js","path":"event-simulate/event-simulate-min.js","requires":["event"]},"event-delegate":{"type":"js","path":"event-delegate/event-delegate-min.js","requires":["event"],"optional":["selector"]},"event-mouseenter":{"type":"js","path":"event-mouseenter/event-mouseenter-min.js","requires":["dom","event"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["yahoo"]},"grids":{"type":"css","path":"grids/grids-min.css","requires":["fonts"],"optional":["reset"]},"history":{"type":"js","path":"history/history-min.js","requires":["event"]},"imagecropper":{"type":"js","path":"imagecropper/imagecropper-min.js","requires":["dragdrop","element","resize"],"skinnable":true},"imageloader":{"type":"js","path":"imageloader/imageloader-min.js","requires":["event","dom"]},"json":{"type":"js","path":"json/json-min.js","requires":["yahoo"]},"layout":{"type":"js","path":"layout/layout-min.js","requires":["element"],"optional":["animation","dragdrop","resize","selector"],"skinnable":true},"logger":{"type":"js","path":"logger/logger-min.js","requires":["event","dom"],"optional":["dragdrop"],"skinnable":true},"menu":{"type":"js","path":"menu/menu-min.js","requires":["containercore"],"skinnable":true},"paginator":{"type":"js","path":"paginator/paginator-min.js","requires":["element"],"skinnable":true},"profiler":{"type":"js","path":"profiler/profiler-min.js","requires":["yahoo"]},"profilerviewer":{"type":"js","path":"profilerviewer/profilerviewer-min.js","requires":["profiler","yuiloader","element"],"skinnable":true},"progressbar":{"type":"js","path":"progressbar/progressbar-min.js","requires":["element"],"optional":["animation"],"skinnable":true},"reset":{"type":"css","path":"reset/reset-min.css"},"reset-fonts-grids":{"type":"css","path":"reset-fonts-grids/reset-fonts-grids.css","supersedes":["reset","fonts","grids","reset-fonts"],"rollup":4},"reset-fonts":{"type":"css","path":"reset-fonts/reset-fonts.css","supersedes":["reset","fonts"],"rollup":2},"resize":{"type":"js","path":"resize/resize-min.js","requires":["dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-min.js","requires":["yahoo","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-min.js","requires":["element"],"optional":["containercore","menu","button","animation","dragdrop"],"skinnable":true,"pkg":"editor"},"slider":{"type":"js","path":"slider/slider-min.js","requires":["dragdrop"],"optional":["animation"],"skinnable":true},"storage":{"type":"js","path":"storage/storage-min.js","requires":["yahoo","event","cookie"],"optional":["swfstore"]},"stylesheet":{"type":"js","path":"stylesheet/stylesheet-min.js","requires":["yahoo"]},"swf":{"type":"js","path":"swf/swf-min.js","requires":["element"],"supersedes":["swfdetect"]},"swfdetect":{"type":"js","path":"swfdetect/swfdetect-min.js","requires":["yahoo"]},"swfstore":{"type":"js","path":"swfstore/swfstore-min.js","requires":["element","cookie","swf"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event","dom"],"optional":["json","animation","calendar"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-min.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"yahoo":{"type":"js","path":"yahoo/yahoo-min.js"},"yahoo-dom-event":{"type":"js","path":"yahoo-dom-event/yahoo-dom-event.js","supersedes":["yahoo","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-min.js","supersedes":["yahoo","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],"rollup":5},"yuitest":{"type":"js","path":"yuitest/yuitest-min.js","requires":["logger"],"optional":["event-simulate"],"skinnable":true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
++i<a.length;i=i+1){o[a[i]]=true;}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i);}}return a;}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2);},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i;}}return -1;},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true;}return o;},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name);}});this.skin=lang.merge(YUI.info.skin);this._config(o);};Y.util.YUILoader.prototype={FILTERS:{RAW:{"searchExp":"-min\\.js","replaceStr":".js"},DEBUG:{"searchExp":"-min\\.js","replaceStr":"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i]);}else{this[i]=o[i];}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger");}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y;};}this.filter=this.FILTERS[f];}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false;}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true;},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a);},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({"name":name,"type":"css","path":sinf.base+skin+"/"+sinf.path,"after":sinf.after,"rollup":sinf.rollup,"ext":ext});}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({"name":name,"type":"css","after":sinf.after,"path":pkg+"/"+sinf.base+skin+"/"+mod+".css","ext":ext});}}return name;},getRequires:function(mod){if(!mod){return[];}if(!this.dirty&&mod.expanded){return mod.expanded;}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m));}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]));}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded;},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o;}if(m[ckey]){return m[ckey];}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm));}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i]);}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey];},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup();}this._reduce();this._sort();this.dirty=false;}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name);}}else{smod=this._addSkin(this.skin.defaultSkin,name);}m.requires.push(smod);}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules);}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore);}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]];}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j));}}this.loaded=l;},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req);}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod;}return s;},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]};}return null;},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m;}}}this.rollups=rollups;}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue;}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break;}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break;}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break;}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m);}}}if(!rolled){break;}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i];}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j];}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]];}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false});
++}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false});}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false;}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true;}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true;}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true;}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true;}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true;}return false;};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i);}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break;}}if(moved){break;}else{p=p+1;}}if(!moved){break;}}this.sorted=s;},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1);},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target;}else{css+=target;}this._combining.push(s[i]);}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true;}this.loadNext(o.data);},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self});}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self});}else{loadScript();}return;}else{this.loadNext(this._loading);}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine();}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js");};this.insert(null,"css");return;}this.loadNext();},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox");}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js");};this.insert(null,"css");return;}if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js");},scope:this},"js");return;}this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort();}return;}if(m.type!=="js"){this._loadCount++;continue;}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data});}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data});}else{this._onFailure.call(this.varName+" reference failure");}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data});},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData));}},loadNext:function(mname){if(!this._loading){return;}if(mname){if(mname!==this._loading){return;}this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data});}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue;}if(s[i]===this._loading){return;}m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return;}if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data);};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true;}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return;}}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this);}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data});}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load();}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str;},_url:function(path){return this._filter((this.base||"")+path);}};})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.0r4",build:"2449"});
+diff --git a/pylons_app/public/js/yui/yuiloader/yuiloader.js b/pylons_app/public/js/yui/yuiloader/yuiloader.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuiloader/yuiloader.js
+@@ -0,0 +1,3879 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++/**
++ * The YAHOO object is the single global object used by YUI Library.  It
++ * contains utility function for setting up namespaces, inheritance, and
++ * logging.  YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces
++ * created automatically for and used by the library.
++ * @module yahoo
++ * @title  YAHOO Global
++ */
++
++/**
++ * YAHOO_config is not included as part of the library.  Instead it is an 
++ * object that can be defined by the implementer immediately before 
++ * including the YUI library.  The properties included in this object
++ * will be used to configure global properties needed as soon as the 
++ * library begins to load.
++ * @class YAHOO_config
++ * @static
++ */
++
++/**
++ * A reference to a function that will be executed every time a YAHOO module
++ * is loaded.  As parameter, this function will receive the version
++ * information for the module. See <a href="YAHOO.env.html#getVersion">
++ * YAHOO.env.getVersion</a> for the description of the version data structure.
++ * @property listener
++ * @type Function
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Set to true if the library will be dynamically loaded after window.onload.
++ * Defaults to false 
++ * @property injecting
++ * @type boolean
++ * @static
++ * @default undefined
++ */
++
++/**
++ * Instructs the yuiloader component to dynamically load yui components and
++ * their dependencies.  See the yuiloader documentation for more information
++ * about dynamic loading
++ * @property load
++ * @static
++ * @default undefined
++ * @see yuiloader
++ */
++
++/**
++ * Forces the use of the supplied locale where applicable in the library
++ * @property locale
++ * @type string
++ * @static
++ * @default undefined
++ */
++
++if (typeof YAHOO == "undefined" || !YAHOO) {
++    /**
++     * The YAHOO global namespace object.  If YAHOO is already defined, the
++     * existing YAHOO object will not be overwritten so that defined
++     * namespaces are preserved.
++     * @class YAHOO
++     * @static
++     */
++    var YAHOO = {};
++}
++
++/**
++ * Returns the namespace specified and creates it if it doesn't exist
++ * <pre>
++ * YAHOO.namespace("property.package");
++ * YAHOO.namespace("YAHOO.property.package");
++ * </pre>
++ * Either of the above would create YAHOO.property, then
++ * YAHOO.property.package
++ *
++ * Be careful when naming packages. Reserved words may work in some browsers
++ * and not others. For instance, the following will fail in Safari:
++ * <pre>
++ * YAHOO.namespace("really.long.nested.namespace");
++ * </pre>
++ * This fails because "long" is a future reserved word in ECMAScript
++ *
++ * For implementation code that uses YUI, do not create your components
++ * in the namespaces defined by YUI (
++ * <code>YAHOO.util</code>, 
++ * <code>YAHOO.widget</code>, 
++ * <code>YAHOO.lang</code>, 
++ * <code>YAHOO.tool</code>, 
++ * <code>YAHOO.example</code>, 
++ * <code>YAHOO.env</code>) -- create your own namespace (e.g., 'companyname').
++ *
++ * @method namespace
++ * @static
++ * @param  {String*} arguments 1-n namespaces to create 
++ * @return {Object}  A reference to the last namespace object created
++ */
++YAHOO.namespace = function() {
++    var a=arguments, o=null, i, j, d;
++    for (i=0; i<a.length; i=i+1) {
++        d=(""+a[i]).split(".");
++        o=YAHOO;
++
++        // YAHOO is implied, so it is ignored if it is included
++        for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j=j+1) {
++            o[d[j]]=o[d[j]] || {};
++            o=o[d[j]];
++        }
++    }
++
++    return o;
++};
++
++/**
++ * Uses YAHOO.widget.Logger to output a log message, if the widget is
++ * available.
++ *
++ * @method log
++ * @static
++ * @param  {String}  msg  The message to log.
++ * @param  {String}  cat  The log category for the message.  Default
++ *                        categories are "info", "warn", "error", time".
++ *                        Custom categories can be used as well. (opt)
++ * @param  {String}  src  The source of the the message (opt)
++ * @return {Boolean}      True if the log operation was successful.
++ */
++YAHOO.log = function(msg, cat, src) {
++    var l=YAHOO.widget.Logger;
++    if(l && l.log) {
++        return l.log(msg, cat, src);
++    } else {
++        return false;
++    }
++};
++
++/**
++ * Registers a module with the YAHOO object
++ * @method register
++ * @static
++ * @param {String}   name    the name of the module (event, slider, etc)
++ * @param {Function} mainClass a reference to class in the module.  This
++ *                             class will be tagged with the version info
++ *                             so that it will be possible to identify the
++ *                             version that is in use when multiple versions
++ *                             have loaded
++ * @param {Object}   data      metadata object for the module.  Currently it
++ *                             is expected to contain a "version" property
++ *                             and a "build" property at minimum.
++ */
++YAHOO.register = function(name, mainClass, data) {
++    var mods = YAHOO.env.modules, m, v, b, ls, i;
++
++    if (!mods[name]) {
++        mods[name] = { 
++            versions:[], 
++            builds:[] 
++        };
++    }
++
++    m  = mods[name];
++    v  = data.version;
++    b  = data.build;
++    ls = YAHOO.env.listeners;
++
++    m.name = name;
++    m.version = v;
++    m.build = b;
++    m.versions.push(v);
++    m.builds.push(b);
++    m.mainClass = mainClass;
++
++    // fire the module load listeners
++    for (i=0;i<ls.length;i=i+1) {
++        ls[i](m);
++    }
++    // label the main class
++    if (mainClass) {
++        mainClass.VERSION = v;
++        mainClass.BUILD = b;
++    } else {
++        YAHOO.log("mainClass is undefined for module " + name, "warn");
++    }
++};
++
++/**
++ * YAHOO.env is used to keep track of what is known about the YUI library and
++ * the browsing environment
++ * @class YAHOO.env
++ * @static
++ */
++YAHOO.env = YAHOO.env || {
++
++    /**
++     * Keeps the version info for all YUI modules that have reported themselves
++     * @property modules
++     * @type Object[]
++     */
++    modules: [],
++    
++    /**
++     * List of functions that should be executed every time a YUI module
++     * reports itself.
++     * @property listeners
++     * @type Function[]
++     */
++    listeners: []
++};
++
++/**
++ * Returns the version data for the specified module:
++ *      <dl>
++ *      <dt>name:</dt>      <dd>The name of the module</dd>
++ *      <dt>version:</dt>   <dd>The version in use</dd>
++ *      <dt>build:</dt>     <dd>The build number in use</dd>
++ *      <dt>versions:</dt>  <dd>All versions that were registered</dd>
++ *      <dt>builds:</dt>    <dd>All builds that were registered.</dd>
++ *      <dt>mainClass:</dt> <dd>An object that was was stamped with the
++ *                 current version and build. If 
++ *                 mainClass.VERSION != version or mainClass.BUILD != build,
++ *                 multiple versions of pieces of the library have been
++ *                 loaded, potentially causing issues.</dd>
++ *       </dl>
++ *
++ * @method getVersion
++ * @static
++ * @param {String}  name the name of the module (event, slider, etc)
++ * @return {Object} The version info
++ */
++YAHOO.env.getVersion = function(name) {
++    return YAHOO.env.modules[name] || null;
++};
++
++/**
++ * Do not fork for a browser if it can be avoided.  Use feature detection when
++ * you can.  Use the user agent as a last resort.  YAHOO.env.ua stores a version
++ * number for the browser engine, 0 otherwise.  This value may or may not map
++ * to the version number of the browser using the engine.  The value is 
++ * presented as a float so that it can easily be used for boolean evaluation 
++ * as well as for looking for a particular range of versions.  Because of this, 
++ * some of the granularity of the version info may be lost (e.g., Gecko 1.8.0.9 
++ * reports 1.8).
++ * @class YAHOO.env.ua
++ * @static
++ */
++YAHOO.env.ua = function() {
++
++        var numberfy = function(s) {
++            var c = 0;
++            return parseFloat(s.replace(/\./g, function() {
++                return (c++ == 1) ? '' : '.';
++            }));
++        },
++
++        nav = navigator,
++
++        o = {
++
++        /**
++         * Internet Explorer version number or 0.  Example: 6
++         * @property ie
++         * @type float
++         */
++        ie: 0,
++
++        /**
++         * Opera version number or 0.  Example: 9.2
++         * @property opera
++         * @type float
++         */
++        opera: 0,
++
++        /**
++         * Gecko engine revision number.  Will evaluate to 1 if Gecko 
++         * is detected but the revision could not be found. Other browsers
++         * will be 0.  Example: 1.8
++         * <pre>
++         * Firefox 1.0.0.4: 1.7.8   <-- Reports 1.7
++         * Firefox 1.5.0.9: 1.8.0.9 <-- Reports 1.8
++         * Firefox 2.0.0.3: 1.8.1.3 <-- Reports 1.8
++         * Firefox 3 alpha: 1.9a4   <-- Reports 1.9
++         * </pre>
++         * @property gecko
++         * @type float
++         */
++        gecko: 0,
++
++        /**
++         * AppleWebKit version.  KHTML browsers that are not WebKit browsers 
++         * will evaluate to 1, other browsers 0.  Example: 418.9.1
++         * <pre>
++         * Safari 1.3.2 (312.6): 312.8.1 <-- Reports 312.8 -- currently the 
++         *                                   latest available for Mac OSX 10.3.
++         * Safari 2.0.2:         416     <-- hasOwnProperty introduced
++         * Safari 2.0.4:         418     <-- preventDefault fixed
++         * Safari 2.0.4 (419.3): 418.9.1 <-- One version of Safari may run
++         *                                   different versions of webkit
++         * Safari 2.0.4 (419.3): 419     <-- Tiger installations that have been
++         *                                   updated, but not updated
++         *                                   to the latest patch.
++         * Webkit 212 nightly:   522+    <-- Safari 3.0 precursor (with native SVG
++         *                                   and many major issues fixed).  
++         * 3.x yahoo.com, flickr:422     <-- Safari 3.x hacks the user agent
++         *                                   string when hitting yahoo.com and 
++         *                                   flickr.com.
++         * Safari 3.0.4 (523.12):523.12  <-- First Tiger release - automatic update
++         *                                   from 2.x via the 10.4.11 OS patch
++         * Webkit nightly 1/2008:525+    <-- Supports DOMContentLoaded event.
++         *                                   yahoo.com user agent hack removed.
++         *                                   
++         * </pre>
++         * http://developer.apple.com/internet/safari/uamatrix.html
++         * @property webkit
++         * @type float
++         */
++        webkit: 0,
++
++        /**
++         * The mobile property will be set to a string containing any relevant
++         * user agent information when a modern mobile browser is detected.
++         * Currently limited to Safari on the iPhone/iPod Touch, Nokia N-series
++         * devices with the WebKit-based browser, and Opera Mini.  
++         * @property mobile 
++         * @type string
++         */
++        mobile: null,
++
++        /**
++         * Adobe AIR version number or 0.  Only populated if webkit is detected.
++         * Example: 1.0
++         * @property air
++         * @type float
++         */
++        air: 0,
++
++        /**
++         * Google Caja version number or 0.
++         * @property caja
++         * @type float
++         */
++        caja: nav.cajaVersion,
++
++        /**
++         * Set to true if the page appears to be in SSL
++         * @property secure
++         * @type boolean
++         * @static
++         */
++        secure: false,
++
++        /**
++         * The operating system.  Currently only detecting windows or macintosh
++         * @property os
++         * @type string
++         * @static
++         */
++        os: null
++
++    },
++
++    ua = navigator && navigator.userAgent, 
++    
++    loc = window && window.location,
++
++    href = loc && loc.href,
++    
++    m;
++
++    o.secure = href && (href.toLowerCase().indexOf("https") === 0);
++
++    if (ua) {
++
++        if ((/windows|win32/i).test(ua)) {
++            o.os = 'windows';
++        } else if ((/macintosh/i).test(ua)) {
++            o.os = 'macintosh';
++        }
++    
++        // Modern KHTML browsers should qualify as Safari X-Grade
++        if ((/KHTML/).test(ua)) {
++            o.webkit=1;
++        }
++
++        // Modern WebKit browsers are at least X-Grade
++        m=ua.match(/AppleWebKit\/([^\s]*)/);
++        if (m&&m[1]) {
++            o.webkit=numberfy(m[1]);
++
++            // Mobile browser check
++            if (/ Mobile\//.test(ua)) {
++                o.mobile = "Apple"; // iPhone or iPod Touch
++            } else {
++                m=ua.match(/NokiaN[^\/]*/);
++                if (m) {
++                    o.mobile = m[0]; // Nokia N-series, ex: NokiaN95
++                }
++            }
++
++            m=ua.match(/AdobeAIR\/([^\s]*)/);
++            if (m) {
++                o.air = m[0]; // Adobe AIR 1.0 or better
++            }
++
++        }
++
++        if (!o.webkit) { // not webkit
++            // @todo check Opera/8.01 (J2ME/MIDP; Opera Mini/2.0.4509/1316; fi; U; ssr)
++            m=ua.match(/Opera[\s\/]([^\s]*)/);
++            if (m&&m[1]) {
++                o.opera=numberfy(m[1]);
++                m=ua.match(/Opera Mini[^;]*/);
++                if (m) {
++                    o.mobile = m[0]; // ex: Opera Mini/2.0.4509/1316
++                }
++            } else { // not opera or webkit
++                m=ua.match(/MSIE\s([^;]*)/);
++                if (m&&m[1]) {
++                    o.ie=numberfy(m[1]);
++                } else { // not opera, webkit, or ie
++                    m=ua.match(/Gecko\/([^\s]*)/);
++                    if (m) {
++                        o.gecko=1; // Gecko detected, look for revision
++                        m=ua.match(/rv:([^\s\)]*)/);
++                        if (m&&m[1]) {
++                            o.gecko=numberfy(m[1]);
++                        }
++                    }
++                }
++            }
++        }
++    }
++
++    return o;
++}();
++
++/*
++ * Initializes the global by creating the default namespaces and applying
++ * any new configuration information that is detected.  This is the setup
++ * for env.
++ * @method init
++ * @static
++ * @private
++ */
++(function() {
++    YAHOO.namespace("util", "widget", "example");
++    /*global YAHOO_config*/
++    if ("undefined" !== typeof YAHOO_config) {
++        var l=YAHOO_config.listener, ls=YAHOO.env.listeners,unique=true, i;
++        if (l) {
++            // if YAHOO is loaded multiple times we need to check to see if
++            // this is a new config object.  If it is, add the new component
++            // load listener to the stack
++            for (i=0; i<ls.length; i++) {
++                if (ls[i] == l) {
++                    unique = false;
++                    break;
++                }
++            }
++
++            if (unique) {
++                ls.push(l);
++            }
++        }
++    }
++})();
++/**
++ * Provides the language utilites and extensions used by the library
++ * @class YAHOO.lang
++ */
++YAHOO.lang = YAHOO.lang || {};
++
++(function() {
++
++
++var L = YAHOO.lang,
++
++    OP = Object.prototype,
++    ARRAY_TOSTRING = '[object Array]',
++    FUNCTION_TOSTRING = '[object Function]',
++    OBJECT_TOSTRING = '[object Object]',
++    NOTHING = [],
++
++    // ADD = ["toString", "valueOf", "hasOwnProperty"],
++    ADD = ["toString", "valueOf"],
++
++    OB = {
++
++    /**
++     * Determines wheather or not the provided object is an array.
++     * @method isArray
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isArray: function(o) { 
++        return OP.toString.apply(o) === ARRAY_TOSTRING;
++    },
++
++    /**
++     * Determines whether or not the provided object is a boolean
++     * @method isBoolean
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isBoolean: function(o) {
++        return typeof o === 'boolean';
++    },
++    
++    /**
++     * Determines whether or not the provided object is a function.
++     * Note: Internet Explorer thinks certain functions are objects:
++     *
++     * var obj = document.createElement("object");
++     * YAHOO.lang.isFunction(obj.getAttribute) // reports false in IE
++     *
++     * var input = document.createElement("input"); // append to body
++     * YAHOO.lang.isFunction(input.focus) // reports false in IE
++     *
++     * You will have to implement additional tests if these functions
++     * matter to you.
++     *
++     * @method isFunction
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isFunction: function(o) {
++        return (typeof o === 'function') || OP.toString.apply(o) === FUNCTION_TOSTRING;
++    },
++        
++    /**
++     * Determines whether or not the provided object is null
++     * @method isNull
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNull: function(o) {
++        return o === null;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a legal number
++     * @method isNumber
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isNumber: function(o) {
++        return typeof o === 'number' && isFinite(o);
++    },
++      
++    /**
++     * Determines whether or not the provided object is of type object
++     * or function
++     * @method isObject
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */  
++    isObject: function(o) {
++return (o && (typeof o === 'object' || L.isFunction(o))) || false;
++    },
++        
++    /**
++     * Determines whether or not the provided object is a string
++     * @method isString
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isString: function(o) {
++        return typeof o === 'string';
++    },
++        
++    /**
++     * Determines whether or not the provided object is undefined
++     * @method isUndefined
++     * @param {any} o The object being testing
++     * @return {boolean} the result
++     */
++    isUndefined: function(o) {
++        return typeof o === 'undefined';
++    },
++    
++ 
++    /**
++     * IE will not enumerate native functions in a derived object even if the
++     * function was overridden.  This is a workaround for specific functions 
++     * we care about on the Object prototype. 
++     * @property _IEEnumFix
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @static
++     * @private
++     */
++    _IEEnumFix: (YAHOO.env.ua.ie) ? function(r, s) {
++            var i, fname, f;
++            for (i=0;i<ADD.length;i=i+1) {
++
++                fname = ADD[i];
++                f = s[fname];
++
++                if (L.isFunction(f) && f!=OP[fname]) {
++                    r[fname]=f;
++                }
++            }
++    } : function(){},
++       
++    /**
++     * Utility to set up the prototype, constructor and superclass properties to
++     * support an inheritance strategy that can chain constructors and methods.
++     * Static members will not be inherited.
++     *
++     * @method extend
++     * @static
++     * @param {Function} subc   the object to modify
++     * @param {Function} superc the object to inherit
++     * @param {Object} overrides  additional properties/methods to add to the
++     *                              subclass prototype.  These will override the
++     *                              matching items obtained from the superclass 
++     *                              if present.
++     */
++    extend: function(subc, superc, overrides) {
++        if (!superc||!subc) {
++            throw new Error("extend failed, please check that " +
++                            "all dependencies are included.");
++        }
++        var F = function() {}, i;
++        F.prototype=superc.prototype;
++        subc.prototype=new F();
++        subc.prototype.constructor=subc;
++        subc.superclass=superc.prototype;
++        if (superc.prototype.constructor == OP.constructor) {
++            superc.prototype.constructor=superc;
++        }
++    
++        if (overrides) {
++            for (i in overrides) {
++                if (L.hasOwnProperty(overrides, i)) {
++                    subc.prototype[i]=overrides[i];
++                }
++            }
++
++            L._IEEnumFix(subc.prototype, overrides);
++        }
++    },
++   
++    /**
++     * Applies all properties in the supplier to the receiver if the
++     * receiver does not have these properties yet.  Optionally, one or 
++     * more methods/properties can be specified (as additional 
++     * parameters).  This option will overwrite the property if receiver 
++     * has it already.  If true is passed as the third parameter, all 
++     * properties will be applied and _will_ overwrite properties in 
++     * the receiver.
++     *
++     * @method augmentObject
++     * @static
++     * @since 2.3.0
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything
++     *        in the supplier will be used unless it would
++     *        overwrite an existing property in the receiver. If true
++     *        is specified as the third parameter, all properties will
++     *        be applied and will overwrite an existing property in
++     *        the receiver
++     */
++    augmentObject: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Absorb failed, verify dependencies.");
++        }
++        var a=arguments, i, p, overrideList=a[2];
++        if (overrideList && overrideList!==true) { // only absorb the specified properties
++            for (i=2; i<a.length; i=i+1) {
++                r[a[i]] = s[a[i]];
++            }
++        } else { // take everything, overwriting only if the third parameter is true
++            for (p in s) { 
++                if (overrideList || !(p in r)) {
++                    r[p] = s[p];
++                }
++            }
++            
++            L._IEEnumFix(r, s);
++        }
++    },
++ 
++    /**
++     * Same as YAHOO.lang.augmentObject, except it only applies prototype properties
++     * @see YAHOO.lang.augmentObject
++     * @method augmentProto
++     * @static
++     * @param {Function} r  the object to receive the augmentation
++     * @param {Function} s  the object that supplies the properties to augment
++     * @param {String*|boolean}  arguments zero or more properties methods 
++     *        to augment the receiver with.  If none specified, everything 
++     *        in the supplier will be used unless it would overwrite an existing 
++     *        property in the receiver.  if true is specified as the third 
++     *        parameter, all properties will be applied and will overwrite an 
++     *        existing property in the receiver
++     */
++    augmentProto: function(r, s) {
++        if (!s||!r) {
++            throw new Error("Augment failed, verify dependencies.");
++        }
++        //var a=[].concat(arguments);
++        var a=[r.prototype,s.prototype], i;
++        for (i=2;i<arguments.length;i=i+1) {
++            a.push(arguments[i]);
++        }
++        L.augmentObject.apply(this, a);
++    },
++
++      
++    /**
++     * Returns a simple string representation of the object or array.
++     * Other types of objects will be returned unprocessed.  Arrays
++     * are expected to be indexed.  Use object notation for
++     * associative arrays.
++     * @method dump
++     * @since 2.3.0
++     * @param o {Object} The object to dump
++     * @param d {int} How deep to recurse child objects, default 3
++     * @return {String} the dump result
++     */
++    dump: function(o, d) {
++        var i,len,s=[],OBJ="{...}",FUN="f(){...}",
++            COMMA=', ', ARROW=' => ';
++
++        // Cast non-objects to string
++        // Skip dates because the std toString is what we want
++        // Skip HTMLElement-like objects because trying to dump 
++        // an element will cause an unhandled exception in FF 2.x
++        if (!L.isObject(o)) {
++            return o + "";
++        } else if (o instanceof Date || ("nodeType" in o && "tagName" in o)) {
++            return o;
++        } else if  (L.isFunction(o)) {
++            return FUN;
++        }
++
++        // dig into child objects the depth specifed. Default 3
++        d = (L.isNumber(d)) ? d : 3;
++
++        // arrays [1, 2, 3]
++        if (L.isArray(o)) {
++            s.push("[");
++            for (i=0,len=o.length;i<len;i=i+1) {
++                if (L.isObject(o[i])) {
++                    s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                } else {
++                    s.push(o[i]);
++                }
++                s.push(COMMA);
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("]");
++        // objects {k1 => v1, k2 => v2}
++        } else {
++            s.push("{");
++            for (i in o) {
++                if (L.hasOwnProperty(o, i)) {
++                    s.push(i + ARROW);
++                    if (L.isObject(o[i])) {
++                        s.push((d > 0) ? L.dump(o[i], d-1) : OBJ);
++                    } else {
++                        s.push(o[i]);
++                    }
++                    s.push(COMMA);
++                }
++            }
++            if (s.length > 1) {
++                s.pop();
++            }
++            s.push("}");
++        }
++
++        return s.join("");
++    },
++
++    /**
++     * Does variable substitution on a string. It scans through the string 
++     * looking for expressions enclosed in { } braces. If an expression 
++     * is found, it is used a key on the object.  If there is a space in
++     * the key, the first word is used for the key and the rest is provided
++     * to an optional function to be used to programatically determine the
++     * value (the extra information might be used for this decision). If 
++     * the value for the key in the object, or what is returned from the
++     * function has a string value, number value, or object value, it is 
++     * substituted for the bracket expression and it repeats.  If this
++     * value is an object, it uses the Object's toString() if this has
++     * been overridden, otherwise it does a shallow dump of the key/value
++     * pairs.
++     * @method substitute
++     * @since 2.3.0
++     * @param s {String} The string that will be modified.
++     * @param o {Object} An object containing the replacement values
++     * @param f {Function} An optional function that can be used to
++     *                     process each match.  It receives the key,
++     *                     value, and any extra metadata included with
++     *                     the key inside of the braces.
++     * @return {String} the substituted string
++     */
++    substitute: function (s, o, f) {
++        var i, j, k, key, v, meta, saved=[], token, 
++            DUMP='dump', SPACE=' ', LBRACE='{', RBRACE='}',
++            dump, objstr;
++
++
++        for (;;) {
++            i = s.lastIndexOf(LBRACE);
++            if (i < 0) {
++                break;
++            }
++            j = s.indexOf(RBRACE, i);
++            if (i + 1 >= j) {
++                break;
++            }
++
++            //Extract key and meta info 
++            token = s.substring(i + 1, j);
++            key = token;
++            meta = null;
++            k = key.indexOf(SPACE);
++            if (k > -1) {
++                meta = key.substring(k + 1);
++                key = key.substring(0, k);
++            }
++
++            // lookup the value
++            v = o[key];
++
++            // if a substitution function was provided, execute it
++            if (f) {
++                v = f(key, v, meta);
++            }
++
++            if (L.isObject(v)) {
++                if (L.isArray(v)) {
++                    v = L.dump(v, parseInt(meta, 10));
++                } else {
++                    meta = meta || "";
++
++                    // look for the keyword 'dump', if found force obj dump
++                    dump = meta.indexOf(DUMP);
++                    if (dump > -1) {
++                        meta = meta.substring(4);
++                    }
++
++                    objstr = v.toString();
++
++                    // use the toString if it is not the Object toString 
++                    // and the 'dump' meta info was not found
++                    if (objstr === OBJECT_TOSTRING || dump > -1) {
++                        v = L.dump(v, parseInt(meta, 10));
++                    } else {
++                        v = objstr;
++                    }
++                }
++            } else if (!L.isString(v) && !L.isNumber(v)) {
++                // This {block} has no replace string. Save it for later.
++                v = "~-" + saved.length + "-~";
++                saved[saved.length] = token;
++
++                // break;
++            }
++
++            s = s.substring(0, i) + v + s.substring(j + 1);
++
++
++        }
++
++        // restore saved {block}s
++        for (i=saved.length-1; i>=0; i=i-1) {
++            s = s.replace(new RegExp("~-" + i + "-~"), "{"  + saved[i] + "}", "g");
++        }
++
++        return s;
++    },
++
++
++    /**
++     * Returns a string without any leading or trailing whitespace.  If 
++     * the input is not a string, the input will be returned untouched.
++     * @method trim
++     * @since 2.3.0
++     * @param s {string} the string to trim
++     * @return {string} the trimmed string
++     */
++    trim: function(s){
++        try {
++            return s.replace(/^\s+|\s+$/g, "");
++        } catch(e) {
++            return s;
++        }
++    },
++
++    /**
++     * Returns a new object containing all of the properties of
++     * all the supplied objects.  The properties from later objects
++     * will overwrite those in earlier objects.
++     * @method merge
++     * @since 2.3.0
++     * @param arguments {Object*} the objects to merge
++     * @return the new merged object
++     */
++    merge: function() {
++        var o={}, a=arguments, l=a.length, i;
++        for (i=0; i<l; i=i+1) {
++            L.augmentObject(o, a[i], true);
++        }
++        return o;
++    },
++
++    /**
++     * Executes the supplied function in the context of the supplied 
++     * object 'when' milliseconds later.  Executes the function a 
++     * single time unless periodic is set to true.
++     * @method later
++     * @since 2.4.0
++     * @param when {int} the number of milliseconds to wait until the fn 
++     * is executed
++     * @param o the context object
++     * @param fn {Function|String} the function to execute or the name of 
++     * the method in the 'o' object to execute
++     * @param data [Array] data that is provided to the function.  This accepts
++     * either a single item or an array.  If an array is provided, the
++     * function is executed with one parameter for each array item.  If
++     * you need to pass a single array parameter, it needs to be wrapped in
++     * an array [myarray]
++     * @param periodic {boolean} if true, executes continuously at supplied 
++     * interval until canceled
++     * @return a timer object. Call the cancel() method on this object to 
++     * stop the timer.
++     */
++    later: function(when, o, fn, data, periodic) {
++        when = when || 0; 
++        o = o || {};
++        var m=fn, d=data, f, r;
++
++        if (L.isString(fn)) {
++            m = o[fn];
++        }
++
++        if (!m) {
++            throw new TypeError("method undefined");
++        }
++
++        if (d && !L.isArray(d)) {
++            d = [data];
++        }
++
++        f = function() {
++            m.apply(o, d || NOTHING);
++        };
++
++        r = (periodic) ? setInterval(f, when) : setTimeout(f, when);
++
++        return {
++            interval: periodic,
++            cancel: function() {
++                if (this.interval) {
++                    clearInterval(r);
++                } else {
++                    clearTimeout(r);
++                }
++            }
++        };
++    },
++    
++    /**
++     * A convenience method for detecting a legitimate non-null value.
++     * Returns false for null/undefined/NaN, true for other values, 
++     * including 0/false/''
++     * @method isValue
++     * @since 2.3.0
++     * @param o {any} the item to test
++     * @return {boolean} true if it is not null/undefined/NaN || false
++     */
++    isValue: function(o) {
++        // return (o || o === false || o === 0 || o === ''); // Infinity fails
++return (L.isObject(o) || L.isString(o) || L.isNumber(o) || L.isBoolean(o));
++    }
++
++};
++
++/**
++ * Determines whether or not the property was added
++ * to the object instance.  Returns false if the property is not present
++ * in the object, or was inherited from the prototype.
++ * This abstraction is provided to enable hasOwnProperty for Safari 1.3.x.
++ * There is a discrepancy between YAHOO.lang.hasOwnProperty and
++ * Object.prototype.hasOwnProperty when the property is a primitive added to
++ * both the instance AND prototype with the same value:
++ * <pre>
++ * var A = function() {};
++ * A.prototype.foo = 'foo';
++ * var a = new A();
++ * a.foo = 'foo';
++ * alert(a.hasOwnProperty('foo')); // true
++ * alert(YAHOO.lang.hasOwnProperty(a, 'foo')); // false when using fallback
++ * </pre>
++ * @method hasOwnProperty
++ * @param {any} o The object being testing
++ * @param prop {string} the name of the property to test
++ * @return {boolean} the result
++ */
++L.hasOwnProperty = (OP.hasOwnProperty) ?
++    function(o, prop) {
++        return o && o.hasOwnProperty(prop);
++    } : function(o, prop) {
++        return !L.isUndefined(o[prop]) && 
++                o.constructor.prototype[prop] !== o[prop];
++    };
++
++// new lang wins
++OB.augmentObject(L, OB, true);
++
++/*
++ * An alias for <a href="YAHOO.lang.html">YAHOO.lang</a>
++ * @class YAHOO.util.Lang
++ */
++YAHOO.util.Lang = L;
++ 
++/**
++ * Same as YAHOO.lang.augmentObject, except it only applies prototype 
++ * properties.  This is an alias for augmentProto.
++ * @see YAHOO.lang.augmentObject
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*|boolean}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver.  if true
++ *        is specified as the third parameter, all properties will
++ *        be applied and will overwrite an existing property in
++ *        the receiver
++ */
++L.augment = L.augmentProto;
++
++/**
++ * An alias for <a href="YAHOO.lang.html#augment">YAHOO.lang.augment</a>
++ * @for YAHOO
++ * @method augment
++ * @static
++ * @param {Function} r  the object to receive the augmentation
++ * @param {Function} s  the object that supplies the properties to augment
++ * @param {String*}  arguments zero or more properties methods to 
++ *        augment the receiver with.  If none specified, everything
++ *        in the supplier will be used unless it would
++ *        overwrite an existing property in the receiver
++ */
++YAHOO.augment = L.augmentProto;
++       
++/**
++ * An alias for <a href="YAHOO.lang.html#extend">YAHOO.lang.extend</a>
++ * @method extend
++ * @static
++ * @param {Function} subc   the object to modify
++ * @param {Function} superc the object to inherit
++ * @param {Object} overrides  additional properties/methods to add to the
++ *        subclass prototype.  These will override the
++ *        matching items obtained from the superclass if present.
++ */
++YAHOO.extend = L.extend;
++
++})();
++YAHOO.register("yahoo", YAHOO, {version: "2.8.0r4", build: "2449"});
++/**
++ * Provides a mechanism to fetch remote resources and
++ * insert them into a document
++ * @module get
++ * @requires yahoo
++ */
++
++/**
++ * Fetches and inserts one or more script or link nodes into the document 
++ * @namespace YAHOO.util
++ * @class YAHOO.util.Get
++ */
++YAHOO.util.Get = function() {
++
++    /**
++     * hash of queues to manage multiple requests
++     * @property queues
++     * @private
++     */
++    var queues={}, 
++        
++    /**
++     * queue index used to generate transaction ids
++     * @property qidx
++     * @type int
++     * @private
++     */
++        qidx=0, 
++        
++    /**
++     * node index used to generate unique node ids
++     * @property nidx
++     * @type int
++     * @private
++     */
++        nidx=0, 
++
++        // ridx=0,
++
++        // sandboxFrame=null,
++
++    /**
++     * interal property used to prevent multiple simultaneous purge 
++     * processes
++     * @property purging
++     * @type boolean
++     * @private
++     */
++        purging=false,
++
++        ua=YAHOO.env.ua, 
++        
++        lang=YAHOO.lang;
++    
++    /** 
++     * Generates an HTML element, this is not appended to a document
++     * @method _node
++     * @param type {string} the type of element
++     * @param attr {string} the attributes
++     * @param win {Window} optional window to create the element in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _node = function(type, attr, win) {
++        var w = win || window, d=w.document, n=d.createElement(type);
++
++        for (var i in attr) {
++            if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
++                n.setAttribute(i, attr[i]);
++            }
++        }
++
++        return n;
++    };
++
++    /**
++     * Generates a link node
++     * @method _linkNode
++     * @param url {string} the url for the css file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _linkNode = function(url, win, attributes) {
++
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/css",
++            rel:  "stylesheet",
++            href: url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("link", o, win);
++    };
++
++    /**
++     * Generates a script node
++     * @method _scriptNode
++     * @param url {string} the url for the script file
++     * @param win {Window} optional window to create the node in
++     * @return {HTMLElement} the generated node
++     * @private
++     */
++    var _scriptNode = function(url, win, attributes) {
++        var o = {
++            id:   "yui__dyn_" + (nidx++),
++            type: "text/javascript",
++            src:  url
++        };
++
++        if (attributes) {
++            lang.augmentObject(o, attributes);
++        }
++
++        return _node("script", o, win);
++    };
++
++    /**
++     * Returns the data payload for callback functions
++     * @method _returnData
++     * @private
++     */
++    var _returnData = function(q, msg) {
++        return {
++                tId: q.tId,
++                win: q.win,
++                data: q.data,
++                nodes: q.nodes,
++                msg: msg,
++                purge: function() {
++                    _purge(this.tId);
++                }
++            };
++    };
++
++    var _get = function(nId, tId) {
++        var q = queues[tId],
++            n = (lang.isString(nId)) ? q.win.document.getElementById(nId) : nId;
++        if (!n) {
++            _fail(tId, "target node not found: " + nId);
++        }
++
++        return n;
++    };
++
++    /*
++     * The request failed, execute fail handler with whatever
++     * was accomplished.  There isn't a failure case at the
++     * moment unless you count aborted transactions
++     * @method _fail
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _fail = function(id, msg) {
++        var q = queues[id];
++        // execute failure callback
++        if (q.onFailure) {
++            var sc=q.scope || q.win;
++            q.onFailure.call(sc, _returnData(q, msg));
++        }
++    };
++
++    /**
++     * The request is complete, so executing the requester's callback
++     * @method _finish
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _finish = function(id) {
++        var q = queues[id];
++        q.finished = true;
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        // execute success callback
++        if (q.onSuccess) {
++            var sc=q.scope || q.win;
++            q.onSuccess.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Timeout detected
++     * @method _timeout
++     * @param id {string} the id of the request
++     * @private
++     */
++    var _timeout = function(id) {
++        var q = queues[id];
++        if (q.onTimeout) {
++            var sc=q.scope || q;
++            q.onTimeout.call(sc, _returnData(q));
++        }
++    };
++
++    /**
++     * Loads the next item for a given request
++     * @method _next
++     * @param id {string} the id of the request
++     * @param loaded {string} the url that was just loaded, if any
++     * @private
++     */
++    var _next = function(id, loaded) {
++        var q = queues[id];
++
++        if (q.timer) {
++            // Y.log('cancel timer');
++            q.timer.cancel();
++        }
++
++        if (q.aborted) {
++            var msg = "transaction " + id + " was aborted";
++            _fail(id, msg);
++            return;
++        }
++
++        if (loaded) {
++            q.url.shift(); 
++            if (q.varName) {
++                q.varName.shift(); 
++            }
++        } else {
++            // This is the first pass: make sure the url is an array
++            q.url = (lang.isString(q.url)) ? [q.url] : q.url;
++            if (q.varName) {
++                q.varName = (lang.isString(q.varName)) ? [q.varName] : q.varName;
++            }
++        }
++
++        var w=q.win, d=w.document, h=d.getElementsByTagName("head")[0], n;
++
++        if (q.url.length === 0) {
++            // Safari 2.x workaround - There is no way to know when 
++            // a script is ready in versions of Safari prior to 3.x.
++            // Adding an extra node reduces the problem, but doesn't
++            // eliminate it completely because the browser executes
++            // them asynchronously. 
++            if (q.type === "script" && ua.webkit && ua.webkit < 420 && 
++                    !q.finalpass && !q.varName) {
++                // Add another script node.  This does not guarantee that the
++                // scripts will execute in order, but it does appear to fix the
++                // problem on fast connections more effectively than using an
++                // arbitrary timeout.  It is possible that the browser does
++                // block subsequent script execution in this case for a limited
++                // time.
++                var extra = _scriptNode(null, q.win, q.attributes);
++                extra.innerHTML='YAHOO.util.Get._finalize("' + id + '");';
++                q.nodes.push(extra); h.appendChild(extra);
++
++            } else {
++                _finish(id);
++            }
++
++            return;
++        } 
++
++
++        var url = q.url[0];
++
++        // if the url is undefined, this is probably a trailing comma problem in IE
++        if (!url) {
++            q.url.shift(); 
++            return _next(id);
++        }
++
++
++        if (q.timeout) {
++            // Y.log('create timer');
++            q.timer = lang.later(q.timeout, q, _timeout, id);
++        }
++
++        if (q.type === "script") {
++            n = _scriptNode(url, w, q.attributes);
++        } else {
++            n = _linkNode(url, w, q.attributes);
++        }
++
++        // track this node's load progress
++        _track(q.type, n, id, url, w, q.url.length);
++
++        // add the node to the queue so we can return it to the user supplied callback
++        q.nodes.push(n);
++
++        // add it to the head or insert it before 'insertBefore'
++        if (q.insertBefore) {
++            var s = _get(q.insertBefore, id);
++            if (s) {
++                s.parentNode.insertBefore(n, s);
++            }
++        } else {
++            h.appendChild(n);
++        }
++        
++
++        // FireFox does not support the onload event for link nodes, so there is
++        // no way to make the css requests synchronous. This means that the css 
++        // rules in multiple files could be applied out of order in this browser
++        // if a later request returns before an earlier one.  Safari too.
++        if ((ua.webkit || ua.gecko) && q.type === "css") {
++            _next(id, url);
++        }
++    };
++
++    /**
++     * Removes processed queues and corresponding nodes
++     * @method _autoPurge
++     * @private
++     */
++    var _autoPurge = function() {
++
++        if (purging) {
++            return;
++        }
++
++        purging = true;
++        for (var i in queues) {
++            var q = queues[i];
++            if (q.autopurge && q.finished) {
++                _purge(q.tId);
++                delete queues[i];
++            }
++        }
++
++        purging = false;
++    };
++
++    /**
++     * Removes the nodes for the specified queue
++     * @method _purge
++     * @private
++     */
++    var _purge = function(tId) {
++        if (queues[tId]) {
++
++            var q     = queues[tId],
++                nodes = q.nodes, 
++                l     = nodes.length, 
++                d     = q.win.document, 
++                h     = d.getElementsByTagName("head")[0],
++                sib, i, node, attr;
++
++            if (q.insertBefore) {
++                sib = _get(q.insertBefore, tId);
++                if (sib) {
++                    h = sib.parentNode;
++                }
++            }
++
++            for (i=0; i<l; i=i+1) {
++                node = nodes[i];
++                if (node.clearAttributes) {
++                    node.clearAttributes();
++                } else {
++                    for (attr in node) {
++                        delete node[attr];
++                    }
++                }
++
++                h.removeChild(node);
++            }
++
++            q.nodes = [];
++        }
++    };
++
++    /**
++     * Saves the state for the request and begins loading
++     * the requested urls
++     * @method queue
++     * @param type {string} the type of node to insert
++     * @param url {string} the url to load
++     * @param opts the hash of options for this request
++     * @private
++     */
++    var _queue = function(type, url, opts) {
++
++        var id = "q" + (qidx++);
++        opts = opts || {};
++
++        if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
++            _autoPurge();
++        }
++
++        queues[id] = lang.merge(opts, {
++            tId: id,
++            type: type,
++            url: url,
++            finished: false,
++            aborted: false,
++            nodes: []
++        });
++
++        var q = queues[id];
++        q.win = q.win || window;
++        q.scope = q.scope || q.win;
++        q.autopurge = ("autopurge" in q) ? q.autopurge : 
++                      (type === "script") ? true : false;
++
++        if (opts.charset) {
++            q.attributes = q.attributes || {};
++            q.attributes.charset = opts.charset;
++        }
++
++        lang.later(0, q, _next, id);
++
++        return {
++            tId: id
++        };
++    };
++
++    /**
++     * Detects when a node has been loaded.  In the case of
++     * script nodes, this does not guarantee that contained
++     * script is ready to use.
++     * @method _track
++     * @param type {string} the type of node to track
++     * @param n {HTMLElement} the node to track
++     * @param id {string} the id of the request
++     * @param url {string} the url that is being loaded
++     * @param win {Window} the targeted window
++     * @param qlength the number of remaining items in the queue,
++     * including this one
++     * @param trackfn {Function} function to execute when finished
++     * the default is _next
++     * @private
++     */
++    var _track = function(type, n, id, url, win, qlength, trackfn) {
++        var f = trackfn || _next;
++
++        // IE supports the readystatechange event for script and css nodes
++        if (ua.ie) {
++            n.onreadystatechange = function() {
++                var rs = this.readyState;
++                if ("loaded" === rs || "complete" === rs) {
++                    n.onreadystatechange = null;
++                    f(id, url);
++                }
++            };
++
++        // webkit prior to 3.x is problemmatic
++        } else if (ua.webkit) {
++
++            if (type === "script") {
++
++                // Safari 3.x supports the load event for script nodes (DOM2)
++                if (ua.webkit >= 420) {
++
++                    n.addEventListener("load", function() {
++                        f(id, url);
++                    });
++
++                // Nothing can be done with Safari < 3.x except to pause and hope
++                // for the best, particularly after last script is inserted. The
++                // scripts will always execute in the order they arrive, not
++                // necessarily the order in which they were inserted.  To support
++                // script nodes with complete reliability in these browsers, script
++                // nodes either need to invoke a function in the window once they
++                // are loaded or the implementer needs to provide a well-known
++                // property that the utility can poll for.
++                } else {
++                    // Poll for the existence of the named variable, if it
++                    // was supplied.
++                    var q = queues[id];
++                    if (q.varName) {
++                        var freq=YAHOO.util.Get.POLL_FREQ;
++                        q.maxattempts = YAHOO.util.Get.TIMEOUT/freq;
++                        q.attempts = 0;
++                        q._cache = q.varName[0].split(".");
++                        q.timer = lang.later(freq, q, function(o) {
++                            var a=this._cache, l=a.length, w=this.win, i;
++                            for (i=0; i<l; i=i+1) {
++                                w = w[a[i]];
++                                if (!w) {
++                                    // if we have exausted our attempts, give up
++                                    this.attempts++;
++                                    if (this.attempts++ > this.maxattempts) {
++                                        var msg = "Over retry limit, giving up";
++                                        q.timer.cancel();
++                                        _fail(id, msg);
++                                    } else {
++                                    }
++                                    return;
++                                }
++                            }
++                            
++
++                            q.timer.cancel();
++                            f(id, url);
++
++                        }, null, true);
++                    } else {
++                        lang.later(YAHOO.util.Get.POLL_FREQ, null, f, [id, url]);
++                    }
++                }
++            } 
++
++        // FireFox and Opera support onload (but not DOM2 in FF) handlers for
++        // script nodes.  Opera, but not FF, supports the onload event for link
++        // nodes.
++        } else { 
++            n.onload = function() {
++                f(id, url);
++            };
++        }
++    };
++
++    return {
++
++        /**
++         * The default poll freqency in ms, when needed
++         * @property POLL_FREQ
++         * @static
++         * @type int
++         * @default 10
++         */
++        POLL_FREQ: 10,
++
++        /**
++         * The number of request required before an automatic purge.
++         * property PURGE_THRESH
++         * @static
++         * @type int
++         * @default 20
++         */
++        PURGE_THRESH: 20,
++
++        /**
++         * The length time to poll for varName when loading a script in
++         * Safari 2.x before the transaction fails.
++         * property TIMEOUT
++         * @static
++         * @type int
++         * @default 2000
++         */
++        TIMEOUT: 2000,
++        
++        /**
++         * Called by the the helper for detecting script load in Safari
++         * @method _finalize
++         * @param id {string} the transaction id
++         * @private
++         */
++        _finalize: function(id) {
++            lang.later(0, null, _finish, id);
++        },
++
++        /**
++         * Abort a transaction
++         * @method abort
++         * @param {string|object} either the tId or the object returned from
++         * script() or css()
++         */
++        abort: function(o) {
++            var id = (lang.isString(o)) ? o : o.tId;
++            var q = queues[id];
++            if (q) {
++                q.aborted = true;
++            }
++        }, 
++
++        /**
++         * Fetches and inserts one or more script nodes into the head
++         * of the current document or the document in a specified window.
++         *
++         * @method script
++         * @static
++         * @param url {string|string[]} the url or urls to the script(s)
++         * @param opts {object} Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the script(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onFailure</dt>
++         * <dd>
++         * callback to execute when the script load operation fails
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted successfully</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove any nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>onTimeout</dt>
++         * <dd>
++         * callback to execute when a timeout occurs.
++         * The callback receives an object back with the following
++         * data:
++         * <dl>
++         * <dt>win</dt>
++         * <dd>the window the script(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>autopurge</dt>
++         * <dd>
++         * setting to true will let the utilities cleanup routine purge 
++         * the script once loaded
++         * </dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callback when the script(s) are
++         * loaded.
++         * </dd>
++         * <dt>varName</dt>
++         * <dd>
++         * variable that should be available when a script is finished
++         * loading.  Used to help Safari 2.x and below with script load 
++         * detection.  The type of this property should match what was
++         * passed into the url parameter: if loading a single url, a
++         * string can be supplied.  If loading multiple scripts, you
++         * must supply an array that contains the variable name for
++         * each script.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * </dl>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * <dt>timeout</dt>
++         * <dd>Number of milliseconds to wait before aborting and firing the timeout event</dd>
++         * <pre>
++         * // assumes yahoo, dom, and event are already on the page
++         * &nbsp;&nbsp;YAHOO.util.Get.script(
++         * &nbsp;&nbsp;["http://yui.yahooapis.com/2.7.0/build/dragdrop/dragdrop-min.js",
++         * &nbsp;&nbsp;&nbsp;"http://yui.yahooapis.com/2.7.0/build/animation/animation-min.js"], &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;onSuccess: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new YAHOO.util.DDProxy("dd1"); // also new o.reference("dd1"); would work
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log("won't cause error because YAHOO is the scope");
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.log(o.nodes.length === 2) // true
++         * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// o.purge(); // optionally remove the script nodes immediately
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;onFailure: function(o) &#123;
++         * &nbsp;&nbsp;&nbsp;&nbsp;&#125;,
++         * &nbsp;&nbsp;&nbsp;&nbsp;data: "foo",
++         * &nbsp;&nbsp;&nbsp;&nbsp;timeout: 10000, // 10 second timeout
++         * &nbsp;&nbsp;&nbsp;&nbsp;scope: YAHOO,
++         * &nbsp;&nbsp;&nbsp;&nbsp;// win: otherframe // target another window/frame
++         * &nbsp;&nbsp;&nbsp;&nbsp;autopurge: true // allow the utility to choose when to remove the nodes
++         * &nbsp;&nbsp;&#125;);
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        script: function(url, opts) { return _queue("script", url, opts); },
++
++        /**
++         * Fetches and inserts one or more css link nodes into the 
++         * head of the current document or the document in a specified
++         * window.
++         * @method css
++         * @static
++         * @param url {string} the url or urls to the css file(s)
++         * @param opts Options: 
++         * <dl>
++         * <dt>onSuccess</dt>
++         * <dd>
++         * callback to execute when the css file(s) are finished loading
++         * The callback receives an object back with the following
++         * data:
++         * <dl>win</dl>
++         * <dd>the window the link nodes(s) were inserted into</dd>
++         * <dt>data</dt>
++         * <dd>the data object passed in when the request was made</dd>
++         * <dt>nodes</dt>
++         * <dd>An array containing references to the nodes that were
++         * inserted</dd>
++         * <dt>purge</dt>
++         * <dd>A function that, when executed, will remove the nodes
++         * that were inserted</dd>
++         * <dt>
++         * </dl>
++         * </dd>
++         * <dt>scope</dt>
++         * <dd>the execution context for the callbacks</dd>
++         * <dt>win</dt>
++         * <dd>a window other than the one the utility occupies</dd>
++         * <dt>data</dt>
++         * <dd>
++         * data that is supplied to the callbacks when the nodes(s) are
++         * loaded.
++         * </dd>
++         * <dt>insertBefore</dt>
++         * <dd>node or node id that will become the new node's nextSibling</dd>
++         * <dt>charset</dt>
++         * <dd>Node charset, deprecated, use 'attributes'</dd>
++         * <dt>attributes</dt>
++         * <dd>A hash of attributes to apply to dynamic nodes.</dd>
++         * </dl>
++         * <pre>
++         *      YAHOO.util.Get.css("http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css");
++         * </pre>
++         * <pre>
++         *      YAHOO.util.Get.css(["http://yui.yahooapis.com/2.7.0/build/menu/assets/skins/sam/menu.css",
++         * </pre>
++         * @return {tId: string} an object containing info about the transaction
++         */
++        css: function(url, opts) {
++            return _queue("css", url, opts); 
++        }
++    };
++}();
++
++YAHOO.register("get", YAHOO.util.Get, {version: "2.8.0r4", build: "2449"});
++/**
++ * Provides dynamic loading for the YUI library.  It includes the dependency
++ * info for the library, and will automatically pull in dependencies for
++ * the modules requested.  It supports rollup files (such as utilities.js
++ * and yahoo-dom-event.js), and will automatically use these when
++ * appropriate in order to minimize the number of http connections
++ * required to load all of the dependencies.
++ * 
++ * @module yuiloader
++ * @namespace YAHOO.util
++ */
++
++/**
++ * YUILoader provides dynamic loading for YUI.
++ * @class YAHOO.util.YUILoader
++ * @todo
++ *      version management, automatic sandboxing
++ */
++(function() {
++
++    var Y=YAHOO, util=Y.util, lang=Y.lang, env=Y.env,
++        PROV = "_provides", SUPER = "_supersedes",
++        REQ = "expanded", AFTER = "_after";
++ 
++    var YUI = {
++
++        dupsAllowed: {'yahoo': true, 'get': true},
++
++        /*
++         * The library metadata for the current release  The is the default
++         * value for YAHOO.util.YUILoader.moduleInfo
++         * @property YUIInfo
++         * @static
++         */
++        info: {
++
++    // 'root': '2.5.2/build/',
++    // 'base': 'http://yui.yahooapis.com/2.5.2/build/',
++
++    'root': '2.8.0r4/build/',
++    'base': 'http://yui.yahooapis.com/2.8.0r4/build/',
++
++    'comboBase': 'http://yui.yahooapis.com/combo?',
++
++    'skin': {
++        'defaultSkin': 'sam',
++        'base': 'assets/skins/',
++        'path': 'skin.css',
++        'after': ['reset', 'fonts', 'grids', 'base'],
++        'rollup': 3
++    },
++
++    dupsAllowed: ['yahoo', 'get'],
++
++    'moduleInfo': {
++
++        'animation': {
++            'type': 'js',
++            'path': 'animation/animation-min.js',
++            'requires': ['dom', 'event']
++        },
++
++        'autocomplete': {
++            'type': 'js',
++            'path': 'autocomplete/autocomplete-min.js',
++            'requires': ['dom', 'event', 'datasource'],
++            'optional': ['connection', 'animation'],
++            'skinnable': true
++        },
++
++        'base': {
++            'type': 'css',
++            'path': 'base/base-min.css',
++            'after': ['reset', 'fonts', 'grids']
++        },
++
++        'button': {
++            'type': 'js',
++            'path': 'button/button-min.js',
++            'requires': ['element'],
++            'optional': ['menu'],
++            'skinnable': true
++        },
++
++        'calendar': {
++            'type': 'js',
++            'path': 'calendar/calendar-min.js',
++            'requires': ['event', 'dom'],
++            supersedes: ['datemeth'],
++            'skinnable': true
++        },
++
++        'carousel': {
++            'type': 'js',
++            'path': 'carousel/carousel-min.js',
++            'requires': ['element'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'charts': {
++            'type': 'js',
++            'path': 'charts/charts-min.js',
++            'requires': ['element', 'json', 'datasource', 'swf']
++        },
++
++        'colorpicker': {
++            'type': 'js',
++            'path': 'colorpicker/colorpicker-min.js',
++            'requires': ['slider', 'element'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'connection': {
++            'type': 'js',
++            'path': 'connection/connection-min.js',
++            'requires': ['event'],
++            'supersedes': ['connectioncore']
++        },
++
++        'connectioncore': {
++            'type': 'js',
++            'path': 'connection/connection_core-min.js',
++            'requires': ['event'],
++            'pkg': 'connection'
++        },
++
++        'container': {
++            'type': 'js',
++            'path': 'container/container-min.js',
++            'requires': ['dom', 'event'],
++            // button is also optional, but this creates a circular 
++            // dependency when loadOptional is specified.  button
++            // optionally includes menu, menu requires container.
++            'optional': ['dragdrop', 'animation', 'connection'],
++            'supersedes': ['containercore'],
++            'skinnable': true
++        },
++
++        'containercore': {
++            'type': 'js',
++            'path': 'container/container_core-min.js',
++            'requires': ['dom', 'event'],
++            'pkg': 'container'
++        },
++
++        'cookie': {
++            'type': 'js',
++            'path': 'cookie/cookie-min.js',
++            'requires': ['yahoo']
++        },
++
++        'datasource': {
++            'type': 'js',
++            'path': 'datasource/datasource-min.js',
++            'requires': ['event'],
++            'optional': ['connection']
++        },
++
++        'datatable': {
++            'type': 'js',
++            'path': 'datatable/datatable-min.js',
++            'requires': ['element', 'datasource'],
++            'optional': ['calendar', 'dragdrop', 'paginator'],
++            'skinnable': true
++        },
++
++        datemath: {
++            'type': 'js',
++            'path': 'datemath/datemath-min.js',
++            'requires': ['yahoo']
++        },
++
++        'dom': {
++            'type': 'js',
++            'path': 'dom/dom-min.js',
++            'requires': ['yahoo']
++        },
++
++        'dragdrop': {
++            'type': 'js',
++            'path': 'dragdrop/dragdrop-min.js',
++            'requires': ['dom', 'event']
++        },
++
++        'editor': {
++            'type': 'js',
++            'path': 'editor/editor-min.js',
++            'requires': ['menu', 'element', 'button'],
++            'optional': ['animation', 'dragdrop'],
++            'supersedes': ['simpleeditor'],
++            'skinnable': true
++        },
++
++        'element': {
++            'type': 'js',
++            'path': 'element/element-min.js',
++            'requires': ['dom', 'event'],
++            'optional': ['event-mouseenter', 'event-delegate']
++        },
++
++        'element-delegate': {
++            'type': 'js',
++            'path': 'element-delegate/element-delegate-min.js',
++            'requires': ['element']
++        },
++
++        'event': {
++            'type': 'js',
++            'path': 'event/event-min.js',
++            'requires': ['yahoo']
++        },
++
++        'event-simulate': {
++            'type': 'js',
++            'path': 'event-simulate/event-simulate-min.js',
++            'requires': ['event']
++        },
++
++        'event-delegate': {
++            'type': 'js',
++            'path': 'event-delegate/event-delegate-min.js',
++            'requires': ['event'],
++            'optional': ['selector']
++        },
++
++        'event-mouseenter': {
++            'type': 'js',
++            'path': 'event-mouseenter/event-mouseenter-min.js',
++            'requires': ['dom', 'event']
++        },
++
++        'fonts': {
++            'type': 'css',
++            'path': 'fonts/fonts-min.css'
++        },
++
++        'get': {
++            'type': 'js',
++            'path': 'get/get-min.js',
++            'requires': ['yahoo']
++        },
++
++        'grids': {
++            'type': 'css',
++            'path': 'grids/grids-min.css',
++            'requires': ['fonts'],
++            'optional': ['reset']
++        },
++
++        'history': {
++            'type': 'js',
++            'path': 'history/history-min.js',
++            'requires': ['event']
++        },
++
++         'imagecropper': {
++             'type': 'js',
++             'path': 'imagecropper/imagecropper-min.js',
++             'requires': ['dragdrop', 'element', 'resize'],
++             'skinnable': true
++         },
++
++         'imageloader': {
++            'type': 'js',
++            'path': 'imageloader/imageloader-min.js',
++            'requires': ['event', 'dom']
++         },
++
++         'json': {
++            'type': 'js',
++            'path': 'json/json-min.js',
++            'requires': ['yahoo']
++         },
++
++         'layout': {
++             'type': 'js',
++             'path': 'layout/layout-min.js',
++             'requires': ['element'],
++             'optional': ['animation', 'dragdrop', 'resize', 'selector'],
++             'skinnable': true
++         }, 
++
++        'logger': {
++            'type': 'js',
++            'path': 'logger/logger-min.js',
++            'requires': ['event', 'dom'],
++            'optional': ['dragdrop'],
++            'skinnable': true
++        },
++
++        'menu': {
++            'type': 'js',
++            'path': 'menu/menu-min.js',
++            'requires': ['containercore'],
++            'skinnable': true
++        },
++
++        'paginator': {
++            'type': 'js',
++            'path': 'paginator/paginator-min.js',
++            'requires': ['element'],
++            'skinnable': true
++        },
++
++        'profiler': {
++            'type': 'js',
++            'path': 'profiler/profiler-min.js',
++            'requires': ['yahoo']
++        },
++
++
++        'profilerviewer': {
++            'type': 'js',
++            'path': 'profilerviewer/profilerviewer-min.js',
++            'requires': ['profiler', 'yuiloader', 'element'],
++            'skinnable': true
++        },
++
++        'progressbar': {
++            'type': 'js',
++            'path': 'progressbar/progressbar-min.js',
++            'requires': ['element'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'reset': {
++            'type': 'css',
++            'path': 'reset/reset-min.css'
++        },
++
++        'reset-fonts-grids': {
++            'type': 'css',
++            'path': 'reset-fonts-grids/reset-fonts-grids.css',
++            'supersedes': ['reset', 'fonts', 'grids', 'reset-fonts'],
++            'rollup': 4
++        },
++
++        'reset-fonts': {
++            'type': 'css',
++            'path': 'reset-fonts/reset-fonts.css',
++            'supersedes': ['reset', 'fonts'],
++            'rollup': 2
++        },
++
++         'resize': {
++             'type': 'js',
++             'path': 'resize/resize-min.js',
++             'requires': ['dragdrop', 'element'],
++             'optional': ['animation'],
++             'skinnable': true
++         },
++
++        'selector': {
++            'type': 'js',
++            'path': 'selector/selector-min.js',
++            'requires': ['yahoo', 'dom']
++        },
++
++        'simpleeditor': {
++            'type': 'js',
++            'path': 'editor/simpleeditor-min.js',
++            'requires': ['element'],
++            'optional': ['containercore', 'menu', 'button', 'animation', 'dragdrop'],
++            'skinnable': true,
++            'pkg': 'editor'
++        },
++
++        'slider': {
++            'type': 'js',
++            'path': 'slider/slider-min.js',
++            'requires': ['dragdrop'],
++            'optional': ['animation'],
++            'skinnable': true
++        },
++
++        'storage': {
++            'type': 'js',
++            'path': 'storage/storage-min.js',
++            'requires': ['yahoo', 'event', 'cookie'],
++            'optional': ['swfstore']
++        },
++
++         'stylesheet': {
++            'type': 'js',
++            'path': 'stylesheet/stylesheet-min.js',
++            'requires': ['yahoo']
++         },
++
++        'swf': {
++            'type': 'js',
++            'path': 'swf/swf-min.js',
++            'requires': ['element'],
++            'supersedes': ['swfdetect']
++        },
++
++        'swfdetect': {
++            'type': 'js',
++            'path': 'swfdetect/swfdetect-min.js',
++            'requires': ['yahoo']
++        },
++
++        'swfstore': {
++            'type': 'js',
++            'path': 'swfstore/swfstore-min.js',
++            'requires': ['element', 'cookie', 'swf']
++        },
++
++        'tabview': {
++            'type': 'js',
++            'path': 'tabview/tabview-min.js',
++            'requires': ['element'],
++            'optional': ['connection'],
++            'skinnable': true
++        },
++
++        'treeview': {
++            'type': 'js',
++            'path': 'treeview/treeview-min.js',
++            'requires': ['event', 'dom'],
++            'optional': ['json', 'animation', 'calendar'],
++            'skinnable': true
++        },
++
++        'uploader': {
++            'type': 'js',
++            'path': 'uploader/uploader-min.js',
++            'requires': ['element']
++        },
++
++        'utilities': {
++            'type': 'js',
++            'path': 'utilities/utilities.js',
++            'supersedes': ['yahoo', 'event', 'dragdrop', 'animation', 'dom', 'connection', 'element', 'yahoo-dom-event', 'get', 'yuiloader', 'yuiloader-dom-event'],
++            'rollup': 8
++        },
++
++        'yahoo': {
++            'type': 'js',
++            'path': 'yahoo/yahoo-min.js'
++        },
++
++        'yahoo-dom-event': {
++            'type': 'js',
++            'path': 'yahoo-dom-event/yahoo-dom-event.js',
++            'supersedes': ['yahoo', 'event', 'dom'],
++            'rollup': 3
++        },
++
++        'yuiloader': {
++            'type': 'js',
++            'path': 'yuiloader/yuiloader-min.js',
++            'supersedes': ['yahoo', 'get']
++        },
++
++        'yuiloader-dom-event': {
++            'type': 'js',
++            'path': 'yuiloader-dom-event/yuiloader-dom-event.js',
++            'supersedes': ['yahoo', 'dom', 'event', 'get', 'yuiloader', 'yahoo-dom-event'],
++            'rollup': 5
++        },
++
++        'yuitest': {
++            'type': 'js',
++            'path': 'yuitest/yuitest-min.js',
++            'requires': ['logger'],
++            'optional': ['event-simulate'],
++            'skinnable': true
++        }
++    }
++}
++ , 
++
++        ObjectUtil: {
++            appendArray: function(o, a) {
++                if (a) {
++                    for (var i=0; i<a.length; i=i+1) {
++                        o[a[i]] = true;
++                    }
++                }
++            },
++
++            keys: function(o, ordered) {
++                var a=[], i;
++                for (i in o) {
++                    if (lang.hasOwnProperty(o, i)) {
++                        a.push(i);
++                    }
++                }
++
++                return a;
++            }
++        },
++
++        ArrayUtil: {
++
++            appendArray: function(a1, a2) {
++                Array.prototype.push.apply(a1, a2);
++                /*
++                for (var i=0; i<a2.length; i=i+1) {
++                    a1.push(a2[i]);
++                }
++                */
++            },
++
++            indexOf: function(a, val) {
++                for (var i=0; i<a.length; i=i+1) {
++                    if (a[i] === val) {
++                        return i;
++                    }
++                }
++
++                return -1;
++            },
++
++            toObject: function(a) {
++                var o = {};
++                for (var i=0; i<a.length; i=i+1) {
++                    o[a[i]] = true;
++                }
++
++                return o;
++            },
++
++            /*
++             * Returns a unique array.  Does not maintain order, which is fine
++             * for this application, and performs better than it would if it
++             * did.
++             */
++            uniq: function(a) {
++                return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a));
++            }
++        }
++    };
++
++    YAHOO.util.YUILoader = function(o) {
++
++        /**
++         * Internal callback to handle multiple internal insert() calls
++         * so that css is inserted prior to js
++         * @property _internalCallback
++         * @private
++         */
++        this._internalCallback = null;
++
++        /**
++         * Use the YAHOO environment listener to detect script load.  This
++         * is only switched on for Safari 2.x and below.
++         * @property _useYahooListener
++         * @private
++         */
++        this._useYahooListener = false;
++
++        /**
++         * Callback that will be executed when the loader is finished
++         * with an insert
++         * @method onSuccess
++         * @type function
++         */
++        this.onSuccess = null;
++
++        /**
++         * Callback that will be executed if there is a failure
++         * @method onFailure
++         * @type function
++         */
++        this.onFailure = Y.log;
++
++        /**
++         * Callback that will be executed each time a new module is loaded
++         * @method onProgress
++         * @type function
++         */
++        this.onProgress = null;
++
++        /**
++         * Callback that will be executed if a timeout occurs
++         * @method onTimeout
++         * @type function
++         */
++        this.onTimeout = null;
++
++        /**
++         * The execution scope for all callbacks
++         * @property scope
++         * @default this
++         */
++        this.scope = this;
++
++        /**
++         * Data that is passed to all callbacks
++         * @property data
++         */
++        this.data = null;
++
++        /**
++         * Node reference or id where new nodes should be inserted before
++         * @property insertBefore
++         * @type string|HTMLElement
++         */
++        this.insertBefore = null;
++
++        /**
++         * The charset attribute for inserted nodes
++         * @property charset
++         * @type string
++         * @default utf-8
++         */
++        this.charset = null;
++
++        /**
++         * The name of the variable in a sandbox or script node 
++         * (for external script support in Safari 2.x and earlier)
++         * to reference when the load is complete.  If this variable 
++         * is not available in the specified scripts, the operation will 
++         * fail.  
++         * @property varName
++         * @type string
++         */
++        this.varName = null;
++
++        /**
++         * The base directory.
++         * @property base
++         * @type string
++         * @default http://yui.yahooapis.com/[YUI VERSION]/build/
++         */
++        this.base = YUI.info.base;
++
++        /**
++         * Base path for the combo service
++         * @property comboBase
++         * @type string
++         * @default http://yui.yahooapis.com/combo?
++         */
++        this.comboBase = YUI.info.comboBase;
++
++        /**
++         * If configured, YUI will use the the combo handler on the
++         * Yahoo! CDN to pontentially reduce the number of http requests
++         * required.
++         * @property combine
++         * @type boolean
++         * @default false
++         */
++        // this.combine = (o && !('base' in o));
++        this.combine = false;
++
++
++        /**
++         * Root path to prepend to module path for the combo
++         * service
++         * @property root
++         * @type string
++         * @default [YUI VERSION]/build/
++         */
++        this.root = YUI.info.root;
++
++        /**
++         * Timeout value in milliseconds.  If set, this value will be used by
++         * the get utility.  the timeout event will fire if
++         * a timeout occurs.
++         * @property timeout
++         * @type int
++         */
++        this.timeout = 0;
++
++        /**
++         * A list of modules that should not be loaded, even if
++         * they turn up in the dependency tree
++         * @property ignore
++         * @type string[]
++         */
++        this.ignore = null;
++
++        /**
++         * A list of modules that should always be loaded, even
++         * if they have already been inserted into the page.
++         * @property force
++         * @type string[]
++         */
++        this.force = null;
++
++        /**
++         * Should we allow rollups
++         * @property allowRollup
++         * @type boolean
++         * @default true
++         */
++        this.allowRollup = true;
++
++        /**
++         * A filter to apply to result urls.  This filter will modify the default
++         * path for all modules.  The default path for the YUI library is the
++         * minified version of the files (e.g., event-min.js).  The filter property
++         * can be a predefined filter or a custom filter.  The valid predefined 
++         * filters are:
++         * <dl>
++         *  <dt>DEBUG</dt>
++         *  <dd>Selects the debug versions of the library (e.g., event-debug.js).
++         *      This option will automatically include the logger widget</dd>
++         *  <dt>RAW</dt>
++         *  <dd>Selects the non-minified version of the library (e.g., event.js).
++         * </dl>
++         * You can also define a custom filter, which must be an object literal 
++         * containing a search expression and a replace string:
++         * <pre>
++         *  myFilter: &#123; 
++         *      'searchExp': "-min\\.js", 
++         *      'replaceStr': "-debug.js"
++         *  &#125;
++         * </pre>
++         * @property filter
++         * @type string|{searchExp: string, replaceStr: string}
++         */
++        this.filter = null;
++
++        /**
++         * The list of requested modules
++         * @property required
++         * @type {string: boolean}
++         */
++        this.required = {};
++
++        /**
++         * The library metadata
++         * @property moduleInfo
++         */
++        this.moduleInfo = lang.merge(YUI.info.moduleInfo);
++
++        /**
++         * List of rollup files found in the library metadata
++         * @property rollups
++         */
++        this.rollups = null;
++
++        /**
++         * Whether or not to load optional dependencies for 
++         * the requested modules
++         * @property loadOptional
++         * @type boolean
++         * @default false
++         */
++        this.loadOptional = false;
++
++        /**
++         * All of the derived dependencies in sorted order, which
++         * will be populated when either calculate() or insert()
++         * is called
++         * @property sorted
++         * @type string[]
++         */
++        this.sorted = [];
++
++        /**
++         * Set when beginning to compute the dependency tree. 
++         * Composed of what YAHOO reports to be loaded combined
++         * with what has been loaded by the tool
++         * @propery loaded
++         * @type {string: boolean}
++         */
++        this.loaded = {};
++
++        /**
++         * Flag to indicate the dependency tree needs to be recomputed
++         * if insert is called again.
++         * @property dirty
++         * @type boolean
++         * @default true
++         */
++        this.dirty = true;
++
++        /**
++         * List of modules inserted by the utility
++         * @property inserted
++         * @type {string: boolean}
++         */
++        this.inserted = {};
++
++        /**
++         * Provides the information used to skin the skinnable components.
++         * The following skin definition would result in 'skin1' and 'skin2'
++         * being loaded for calendar (if calendar was requested), and
++         * 'sam' for all other skinnable components:
++         *
++         *   <code>
++         *   skin: {
++         *
++         *      // The default skin, which is automatically applied if not
++         *      // overriden by a component-specific skin definition.
++         *      // Change this in to apply a different skin globally
++         *      defaultSkin: 'sam', 
++         *
++         *      // This is combined with the loader base property to get
++         *      // the default root directory for a skin. ex:
++         *      // http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
++         *      base: 'assets/skins/',
++         *
++         *      // The name of the rollup css file for the skin
++         *      path: 'skin.css',
++         *
++         *      // The number of skinnable components requested that are
++         *      // required before using the rollup file rather than the
++         *      // individual component css files
++         *      rollup: 3,
++         *
++         *      // Any component-specific overrides can be specified here,
++         *      // making it possible to load different skins for different
++         *      // components.  It is possible to load more than one skin
++         *      // for a given component as well.
++         *      overrides: {
++         *          calendar: ['skin1', 'skin2']
++         *      }
++         *   }
++         *   </code>
++         *   @property skin
++         */
++
++        var self = this;
++
++        env.listeners.push(function(m) {
++            if (self._useYahooListener) {
++                //Y.log("YAHOO listener: " + m.name);
++                self.loadNext(m.name);
++            }
++        });
++
++        this.skin = lang.merge(YUI.info.skin); 
++
++        this._config(o);
++
++    };
++
++    Y.util.YUILoader.prototype = {
++
++        FILTERS: {
++            RAW: { 
++                'searchExp': "-min\\.js", 
++                'replaceStr': ".js"
++            },
++            DEBUG: { 
++                'searchExp': "-min\\.js", 
++                'replaceStr': "-debug.js"
++            }
++        },
++
++        SKIN_PREFIX: "skin-",
++
++        _config: function(o) {
++
++            // apply config values
++            if (o) {
++                for (var i in o) {
++                    if (lang.hasOwnProperty(o, i)) {
++                        if (i == "require") {
++                            this.require(o[i]);
++                        } else {
++                            this[i] = o[i];
++                        }
++                    }
++                }
++            }
++
++            // fix filter
++            var f = this.filter;
++
++            if (lang.isString(f)) {
++                f = f.toUpperCase();
++
++                // the logger must be available in order to use the debug
++                // versions of the library
++                if (f === "DEBUG") {
++                    this.require("logger");
++                }
++
++                // hack to handle a a bug where LogWriter is being instantiated
++                // at load time, and the loader has no way to sort above it
++                // at the moment.
++                if (!Y.widget.LogWriter) {
++                    Y.widget.LogWriter = function() {
++                        return Y;
++                    };
++                }
++
++                this.filter = this.FILTERS[f];
++            }
++
++        },
++
++        /** Add a new module to the component metadata.         
++         * <dl>
++         *     <dt>name:</dt>       <dd>required, the component name</dd>
++         *     <dt>type:</dt>       <dd>required, the component type (js or css)</dd>
++         *     <dt>path:</dt>       <dd>required, the path to the script from "base"</dd>
++         *     <dt>requires:</dt>   <dd>array of modules required by this component</dd>
++         *     <dt>optional:</dt>   <dd>array of optional modules for this component</dd>
++         *     <dt>supersedes:</dt> <dd>array of the modules this component replaces</dd>
++         *     <dt>after:</dt>      <dd>array of modules the components which, if present, should be sorted above this one</dd>
++         *     <dt>rollup:</dt>     <dd>the number of superseded modules required for automatic rollup</dd>
++         *     <dt>fullpath:</dt>   <dd>If fullpath is specified, this is used instead of the configured base + path</dd>
++         *     <dt>skinnable:</dt>  <dd>flag to determine if skin assets should automatically be pulled in</dd>
++         * </dl>
++         * @method addModule
++         * @param o An object containing the module data
++         * @return {boolean} true if the module was added, false if 
++         * the object passed in did not provide all required attributes
++         */
++        addModule: function(o) {
++
++            if (!o || !o.name || !o.type || (!o.path && !o.fullpath)) {
++                return false;
++            }
++
++            o.ext = ('ext' in o) ? o.ext : true;
++            o.requires = o.requires || [];
++
++            this.moduleInfo[o.name] = o;
++            this.dirty = true;
++
++            return true;
++        },
++
++        /**
++         * Add a requirement for one or more module
++         * @method require
++         * @param what {string[] | string*} the modules to load
++         */
++        require: function(what) {
++            var a = (typeof what === "string") ? arguments : what;
++            this.dirty = true;
++            YUI.ObjectUtil.appendArray(this.required, a);
++        },
++
++        /**
++         * Adds the skin def to the module info
++         * @method _addSkin
++         * @param skin {string} the name of the skin
++         * @param mod {string} the name of the module
++         * @return {string} the module name for the skin
++         * @private
++         */
++        _addSkin: function(skin, mod) {
++
++            // Add a module definition for the skin rollup css
++            var name = this.formatSkin(skin), info = this.moduleInfo,
++                sinf = this.skin, ext = info[mod] && info[mod].ext;
++
++            // Y.log('ext? ' + mod + ": " + ext);
++            if (!info[name]) {
++                // Y.log('adding skin ' + name);
++                this.addModule({
++                    'name': name,
++                    'type': 'css',
++                    'path': sinf.base + skin + '/' + sinf.path,
++                    //'supersedes': '*',
++                    'after': sinf.after,
++                    'rollup': sinf.rollup,
++                    'ext': ext
++                });
++            }
++
++            // Add a module definition for the module-specific skin css
++            if (mod) {
++                name = this.formatSkin(skin, mod);
++                if (!info[name]) {
++                    var mdef = info[mod], pkg = mdef.pkg || mod;
++                    // Y.log('adding skin ' + name);
++                    this.addModule({
++                        'name': name,
++                        'type': 'css',
++                        'after': sinf.after,
++                        'path': pkg + '/' + sinf.base + skin + '/' + mod + '.css',
++                        'ext': ext
++                    });
++                }
++            }
++
++            return name;
++        },
++
++        /**
++         * Returns an object containing properties for all modules required
++         * in order to load the requested module
++         * @method getRequires
++         * @param mod The module definition from moduleInfo
++         */
++        getRequires: function(mod) {
++            if (!mod) {
++                return [];
++            }
++
++            if (!this.dirty && mod.expanded) {
++                return mod.expanded;
++            }
++
++            mod.requires=mod.requires || [];
++            var i, d=[], r=mod.requires, o=mod.optional, info=this.moduleInfo, m;
++            for (i=0; i<r.length; i=i+1) {
++                d.push(r[i]);
++                m = info[r[i]];
++                YUI.ArrayUtil.appendArray(d, this.getRequires(m));
++
++                // add existing skins for skinnable modules as well.  The only
++                // way to do this is go through the list of required items (this
++                // assumes that _skin is called before getRequires is called on
++                // the module.
++                // if (m.skinnable) {
++                //     var req=this.required, l=req.length;
++                //     for (var j=0; j<l; j=j+1) {
++                //         // YAHOO.log('checking ' + r[j]);
++                //         if (req[j].indexOf(r[j]) > -1) {
++                //             // YAHOO.log('adding ' + r[j]);
++                //             d.push(req[j]);
++                //         }
++                //     }
++                // }
++            }
++
++            if (o && this.loadOptional) {
++                for (i=0; i<o.length; i=i+1) {
++                    d.push(o[i]);
++                    YUI.ArrayUtil.appendArray(d, this.getRequires(info[o[i]]));
++                }
++            }
++
++            mod.expanded = YUI.ArrayUtil.uniq(d);
++
++            return mod.expanded;
++        },
++
++
++        /**
++         * Returns an object literal of the modules the supplied module satisfies
++         * @method getProvides
++         * @param name{string} The name of the module
++         * @param notMe {string} don't add this module name, only include superseded modules
++         * @return what this module provides
++         */
++        getProvides: function(name, notMe) {
++            var addMe = !(notMe), ckey = (addMe) ? PROV : SUPER,
++                m = this.moduleInfo[name], o = {};
++
++            if (!m) {
++                return o;
++            }
++
++            if (m[ckey]) {
++// Y.log('cached: ' + name + ' ' + ckey + ' ' + lang.dump(this.moduleInfo[name][ckey], 0));
++                return m[ckey];
++            }
++
++            var s = m.supersedes, done={}, me = this;
++
++            // use worker to break cycles
++            var add = function(mm) {
++                if (!done[mm]) {
++                    // Y.log(name + ' provides worker trying: ' + mm);
++                    done[mm] = true;
++                    // we always want the return value normal behavior 
++                    // (provides) for superseded modules.
++                    lang.augmentObject(o, me.getProvides(mm));
++                } 
++                
++                // else {
++                // Y.log(name + ' provides worker skipping done: ' + mm);
++                // }
++            };
++
++            // calculate superseded modules
++            if (s) {
++                for (var i=0; i<s.length; i=i+1) {
++                    add(s[i]);
++                }
++            }
++
++            // supersedes cache
++            m[SUPER] = o;
++            // provides cache
++            m[PROV] = lang.merge(o);
++            m[PROV][name] = true;
++
++// Y.log(name + " supersedes " + lang.dump(m[SUPER], 0));
++// Y.log(name + " provides " + lang.dump(m[PROV], 0));
++
++            return m[ckey];
++        },
++
++
++        /**
++         * Calculates the dependency tree, the result is stored in the sorted 
++         * property
++         * @method calculate
++         * @param o optional options object
++         */
++        calculate: function(o) {
++            if (o || this.dirty) {
++                this._config(o);
++                this._setup();
++                this._explode();
++                // this._skin(); // deprecated
++                if (this.allowRollup) {
++                    this._rollup();
++                }
++                this._reduce();
++                this._sort();
++
++                // Y.log("after calculate: " + lang.dump(this.required));
++
++                this.dirty = false;
++            }
++        },
++
++        /**
++         * Investigates the current YUI configuration on the page.  By default,
++         * modules already detected will not be loaded again unless a force
++         * option is encountered.  Called by calculate()
++         * @method _setup
++         * @private
++         */
++        _setup: function() {
++
++            var info = this.moduleInfo, name, i, j;
++
++            // Create skin modules
++            for (name in info) {
++
++                if (lang.hasOwnProperty(info, name)) {
++                    var m = info[name];
++                    if (m && m.skinnable) {
++                        // Y.log("skinning: " + name);
++                        var o=this.skin.overrides, smod;
++                        if (o && o[name]) {
++                            for (i=0; i<o[name].length; i=i+1) {
++                                smod = this._addSkin(o[name][i], name);
++                            }
++                        } else {
++                            smod = this._addSkin(this.skin.defaultSkin, name);
++                        }
++
++                        m.requires.push(smod);
++                    }
++                }
++
++            }
++
++            var l = lang.merge(this.inserted); // shallow clone
++            
++            if (!this._sandbox) {
++                l = lang.merge(l, env.modules);
++            }
++
++            // Y.log("Already loaded stuff: " + lang.dump(l, 0));
++
++            // add the ignore list to the list of loaded packages
++            if (this.ignore) {
++                YUI.ObjectUtil.appendArray(l, this.ignore);
++            }
++
++            // remove modules on the force list from the loaded list
++            if (this.force) {
++                for (i=0; i<this.force.length; i=i+1) {
++                    if (this.force[i] in l) {
++                        delete l[this.force[i]];
++                    }
++                }
++            }
++
++            // expand the list to include superseded modules
++            for (j in l) {
++                // Y.log("expanding: " + j);
++                if (lang.hasOwnProperty(l, j)) {
++                    lang.augmentObject(l, this.getProvides(j));
++                }
++            }
++
++            // Y.log("loaded expanded: " + lang.dump(l, 0));
++
++            this.loaded = l;
++
++        },
++        
++
++        /**
++         * Inspects the required modules list looking for additional 
++         * dependencies.  Expands the required list to include all 
++         * required modules.  Called by calculate()
++         * @method _explode
++         * @private
++         */
++        _explode: function() {
++
++            var r=this.required, i, mod;
++
++            for (i in r) {
++                if (lang.hasOwnProperty(r, i)) {
++                    mod = this.moduleInfo[i];
++                    if (mod) {
++
++                        var req = this.getRequires(mod);
++
++                        if (req) {
++                            YUI.ObjectUtil.appendArray(r, req);
++                        }
++                    }
++                }
++            }
++        },
++
++        /**
++         * Sets up the requirements for the skin assets if any of the
++         * requested modules are skinnable
++         * @method _skin
++         * @private
++         * @deprecated skin modules are generated for all skinnable
++         *             components during _setup(), and the components
++         *             are configured to require the skin.
++         */
++        _skin: function() {
++
++        },
++
++        /**
++         * Returns the skin module name for the specified skin name.  If a
++         * module name is supplied, the returned skin module name is 
++         * specific to the module passed in.
++         * @method formatSkin
++         * @param skin {string} the name of the skin
++         * @param mod {string} optional: the name of a module to skin
++         * @return {string} the full skin module name
++         */
++        formatSkin: function(skin, mod) {
++            var s = this.SKIN_PREFIX + skin;
++            if (mod) {
++                s = s + "-" + mod;
++            }
++
++            return s;
++        },
++        
++        /**
++         * Reverses <code>formatSkin</code>, providing the skin name and
++         * module name if the string matches the pattern for skins.
++         * @method parseSkin
++         * @param mod {string} the module name to parse
++         * @return {skin: string, module: string} the parsed skin name 
++         * and module name, or null if the supplied string does not match
++         * the skin pattern
++         */
++        parseSkin: function(mod) {
++            
++            if (mod.indexOf(this.SKIN_PREFIX) === 0) {
++                var a = mod.split("-");
++                return {skin: a[1], module: a[2]};
++            } 
++
++            return null;
++        },
++
++        /**
++         * Look for rollup packages to determine if all of the modules a
++         * rollup supersedes are required.  If so, include the rollup to
++         * help reduce the total number of connections required.  Called
++         * by calculate()
++         * @method _rollup
++         * @private
++         */
++        _rollup: function() {
++            var i, j, m, s, rollups={}, r=this.required, roll,
++                info = this.moduleInfo;
++
++            // find and cache rollup modules
++            if (this.dirty || !this.rollups) {
++                for (i in info) {
++                    if (lang.hasOwnProperty(info, i)) {
++                        m = info[i];
++                        //if (m && m.rollup && m.supersedes) {
++                        if (m && m.rollup) {
++                            rollups[i] = m;
++                        }
++                    }
++                }
++
++                this.rollups = rollups;
++            }
++
++            // make as many passes as needed to pick up rollup rollups
++            for (;;) {
++                var rolled = false;
++
++                // go through the rollup candidates
++                for (i in rollups) { 
++
++                    // there can be only one
++                    if (!r[i] && !this.loaded[i]) {
++                        m =info[i]; s = m.supersedes; roll=false;
++
++                        if (!m.rollup) {
++                            continue;
++                        }
++
++                        var skin = (m.ext) ? false : this.parseSkin(i), c = 0;
++
++                        // Y.log('skin? ' + i + ": " + skin);
++                        if (skin) {
++                            for (j in r) {
++                                if (lang.hasOwnProperty(r, j)) {
++                                    if (i !== j && this.parseSkin(j)) {
++                                        c++;
++                                        roll = (c >= m.rollup);
++                                        if (roll) {
++                                            // Y.log("skin rollup " + lang.dump(r));
++                                            break;
++                                        }
++                                    }
++                                }
++                            }
++
++                        } else {
++
++                            // check the threshold
++                            for (j=0;j<s.length;j=j+1) {
++
++                                // if the superseded module is loaded, we can't load the rollup
++                                if (this.loaded[s[j]] && (!YUI.dupsAllowed[s[j]])) {
++                                    roll = false;
++                                    break;
++                                // increment the counter if this module is required.  if we are
++                                // beyond the rollup threshold, we will use the rollup module
++                                } else if (r[s[j]]) {
++                                    c++;
++                                    roll = (c >= m.rollup);
++                                    if (roll) {
++                                        // Y.log("over thresh " + c + ", " + lang.dump(r));
++                                        break;
++                                    }
++                                }
++                            }
++                        }
++
++                        if (roll) {
++                            // Y.log("rollup: " +  i + ", " + lang.dump(this, 1));
++                            // add the rollup
++                            r[i] = true;
++                            rolled = true;
++
++                            // expand the rollup's dependencies
++                            this.getRequires(m);
++                        }
++                    }
++                }
++
++                // if we made it here w/o rolling up something, we are done
++                if (!rolled) {
++                    break;
++                }
++            }
++        },
++
++        /**
++         * Remove superceded modules and loaded modules.  Called by
++         * calculate() after we have the mega list of all dependencies
++         * @method _reduce
++         * @private
++         */
++        _reduce: function() {
++
++            var i, j, s, m, r=this.required;
++            for (i in r) {
++
++                // remove if already loaded
++                if (i in this.loaded) { 
++                    delete r[i];
++
++                // remove anything this module supersedes
++                } else {
++
++                    var skinDef = this.parseSkin(i);
++
++                    if (skinDef) {
++                        //YAHOO.log("skin found in reduce: " + skinDef.skin + ", " + skinDef.module);
++                        // the skin rollup will not have a module name
++                        if (!skinDef.module) {
++                            var skin_pre = this.SKIN_PREFIX + skinDef.skin;
++                            //YAHOO.log("skin_pre: " + skin_pre);
++                            for (j in r) {
++
++                                if (lang.hasOwnProperty(r, j)) {
++                                    m = this.moduleInfo[j];
++                                    var ext = m && m.ext;
++                                    if (!ext && j !== i && j.indexOf(skin_pre) > -1) {
++                                        // Y.log ("removing component skin: " + j);
++                                        delete r[j];
++                                    }
++                                }
++                            }
++                        }
++                    } else {
++
++                         m = this.moduleInfo[i];
++                         s = m && m.supersedes;
++                         if (s) {
++                             for (j=0; j<s.length; j=j+1) {
++                                 if (s[j] in r) {
++                                     delete r[s[j]];
++                                 }
++                             }
++                         }
++                    }
++                }
++            }
++        },
++
++        _onFailure: function(msg) {
++            YAHOO.log('Failure', 'info', 'loader');
++
++            var f = this.onFailure;
++            if (f) {
++                f.call(this.scope, {
++                    msg: 'failure: ' + msg,
++                    data: this.data,
++                    success: false
++                });
++            }
++        },
++
++        _onTimeout: function() {
++            YAHOO.log('Timeout', 'info', 'loader');
++            var f = this.onTimeout;
++            if (f) {
++                f.call(this.scope, {
++                    msg: 'timeout',
++                    data: this.data,
++                    success: false
++                });
++            }
++        },
++        
++        /**
++         * Sorts the dependency tree.  The last step of calculate()
++         * @method _sort
++         * @private
++         */
++        _sort: function() {
++            // create an indexed list
++            var s=[], info=this.moduleInfo, loaded=this.loaded,
++                checkOptional=!this.loadOptional, me = this;
++
++            // returns true if b is not loaded, and is required
++            // directly or by means of modules it supersedes.
++            var requires = function(aa, bb) {
++
++                var mm=info[aa];
++
++                if (loaded[bb] || !mm) {
++                    return false;
++                }
++
++                var ii, 
++                    rr = mm.expanded, 
++                    after = mm.after, 
++                    other = info[bb],
++                    optional = mm.optional;
++
++
++                // check if this module requires the other directly
++                if (rr && YUI.ArrayUtil.indexOf(rr, bb) > -1) {
++                    return true;
++                }
++
++                // check if this module should be sorted after the other
++                if (after && YUI.ArrayUtil.indexOf(after, bb) > -1) {
++                    return true;
++                }
++
++                // if loadOptional is not specified, optional dependencies still
++                // must be sorted correctly when present.
++                if (checkOptional && optional && YUI.ArrayUtil.indexOf(optional, bb) > -1) {
++                    return true;
++                }
++
++                // check if this module requires one the other supersedes
++                var ss=info[bb] && info[bb].supersedes;
++                if (ss) {
++                    for (ii=0; ii<ss.length; ii=ii+1) {
++                        if (requires(aa, ss[ii])) {
++                            return true;
++                        }
++                    }
++                }
++
++                // var ss=me.getProvides(bb, true);
++                // if (ss) {
++                //     for (ii in ss) {
++                //         if (requires(aa, ii)) {
++                //             return true;
++                //         }
++                //     }
++                // }
++
++                // external css files should be sorted below yui css
++                if (mm.ext && mm.type == 'css' && !other.ext && other.type == 'css') {
++                    return true;
++                }
++
++                return false;
++            };
++
++            // get the required items out of the obj into an array so we
++            // can sort
++            for (var i in this.required) {
++                if (lang.hasOwnProperty(this.required, i)) {
++                    s.push(i);
++                }
++            }
++
++            // pointer to the first unsorted item
++            var p=0; 
++
++            // keep going until we make a pass without moving anything
++            for (;;) {
++               
++                var l=s.length, a, b, j, k, moved=false;
++
++                // start the loop after items that are already sorted
++                for (j=p; j<l; j=j+1) {
++
++                    // check the next module on the list to see if its
++                    // dependencies have been met
++                    a = s[j];
++
++                    // check everything below current item and move if we
++                    // find a requirement for the current item
++                    for (k=j+1; k<l; k=k+1) {
++                        if (requires(a, s[k])) {
++
++                            // extract the dependency so we can move it up
++                            b = s.splice(k, 1);
++
++                            // insert the dependency above the item that 
++                            // requires it
++                            s.splice(j, 0, b[0]);
++
++                            moved = true;
++                            break;
++                        }
++                    }
++
++                    // jump out of loop if we moved something
++                    if (moved) {
++                        break;
++                    // this item is sorted, move our pointer and keep going
++                    } else {
++                        p = p + 1;
++                    }
++                }
++
++                // when we make it here and moved is false, we are 
++                // finished sorting
++                if (!moved) {
++                    break;
++                }
++
++            }
++
++            this.sorted = s;
++        },
++
++        toString: function() {
++            var o = {
++                type: "YUILoader",
++                base: this.base,
++                filter: this.filter,
++                required: this.required,
++                loaded: this.loaded,
++                inserted: this.inserted
++            };
++
++            lang.dump(o, 1);
++        },
++
++        _combine: function() {
++
++                this._combining = []; 
++
++                var self = this,
++                    s=this.sorted,
++                    len = s.length,
++                    js = this.comboBase,
++                    css = this.comboBase,
++                    target, 
++                    startLen = js.length,
++                    i, m, type = this.loadType;
++
++                YAHOO.log('type ' + type);
++
++                for (i=0; i<len; i=i+1) {
++
++                    m = this.moduleInfo[s[i]];
++
++                    if (m && !m.ext && (!type || type === m.type)) {
++
++                        target = this.root + m.path;
++
++                        // if (i < len-1) {
++                        target += '&';
++                        // }
++
++                        if (m.type == 'js') {
++                            js += target;
++                        } else {
++                            css += target;
++                        }
++
++                        // YAHOO.log(target);
++                        this._combining.push(s[i]);
++                    }
++                }
++
++                if (this._combining.length) {
++
++YAHOO.log('Attempting to combine: ' + this._combining, "info", "loader");
++
++                    var callback=function(o) {
++                        // YAHOO.log('Combo complete: ' + o.data, "info", "loader");
++                        // this._combineComplete = true;
++
++                        var c=this._combining, len=c.length, i, m;
++                        for (i=0; i<len; i=i+1) {
++                            this.inserted[c[i]] = true;
++                        }
++
++                        this.loadNext(o.data);
++                    }, 
++                    
++                    loadScript = function() {
++                        // YAHOO.log('combining js: ' + js);
++                        if (js.length > startLen) {
++                            YAHOO.util.Get.script(self._filter(js), {
++                                data: self._loading,
++                                onSuccess: callback,
++                                onFailure: self._onFailure,
++                                onTimeout: self._onTimeout,
++                                insertBefore: self.insertBefore,
++                                charset: self.charset,
++                                timeout: self.timeout,
++                                scope: self 
++                            });
++                        }
++                    };
++
++                    // load the css first
++                    // YAHOO.log('combining css: ' + css);
++                    if (css.length > startLen) {
++                        YAHOO.util.Get.css(this._filter(css), {
++                            data: this._loading,
++                            onSuccess: loadScript,
++                            onFailure: this._onFailure,
++                            onTimeout: this._onTimeout,
++                            insertBefore: this.insertBefore,
++                            charset: this.charset,
++                            timeout: this.timeout,
++                            scope: self 
++                        });
++                    } else {
++                        loadScript();
++                    }
++
++                    return;
++
++                } else {
++                    // this._combineComplete = true;
++                    this.loadNext(this._loading);
++                }
++        }, 
++
++        /**
++         * inserts the requested modules and their dependencies.  
++         * <code>type</code> can be "js" or "css".  Both script and 
++         * css are inserted if type is not provided.
++         * @method insert
++         * @param o optional options object
++         * @param type {string} the type of dependency to insert
++         */
++        insert: function(o, type) {
++            // if (o) {
++            //     Y.log("insert: " + lang.dump(o, 1) + ", " + type);
++            // } else {
++            //     Y.log("insert: " + this.toString() + ", " + type);
++            // }
++
++            // build the dependency list
++            this.calculate(o);
++
++
++            // set a flag to indicate the load has started
++            this._loading = true;
++
++            // flag to indicate we are done with the combo service
++            // and any additional files will need to be loaded
++            // individually
++            // this._combineComplete = false;
++
++            // keep the loadType (js, css or undefined) cached
++            this.loadType = type;
++
++            if (this.combine) {
++                return this._combine();
++            }
++
++            if (!type) {
++                // Y.log("trying to load css first");
++                var self = this;
++                this._internalCallback = function() {
++                            self._internalCallback = null;
++                            self.insert(null, "js");
++                        };
++                this.insert(null, "css");
++                return;
++            }
++
++
++            // start the load
++            this.loadNext();
++
++        },
++
++        /**
++         * Interns the script for the requested modules.  The callback is
++         * provided a reference to the sandboxed YAHOO object.  This only
++         * applies to the script: css can not be sandboxed; css will be
++         * loaded into the page normally if specified.
++         * @method sandbox
++         * @param callback {Function} the callback to exectued when the load is
++         *        complete.
++         */
++        sandbox: function(o, type) {
++            // if (o) {
++                // YAHOO.log("sandbox: " + lang.dump(o, 1) + ", " + type);
++            // } else {
++                // YAHOO.log("sandbox: " + this.toString() + ", " + type);
++            // }
++
++            this._config(o);
++
++            if (!this.onSuccess) {
++throw new Error("You must supply an onSuccess handler for your sandbox");
++            }
++
++            this._sandbox = true;
++
++            var self = this;
++
++            // take care of any css first (this can't be sandboxed)
++            if (!type || type !== "js") {
++                this._internalCallback = function() {
++                            self._internalCallback = null;
++                            self.sandbox(null, "js");
++                        };
++                this.insert(null, "css");
++                return;
++            }
++
++            // get the connection manager if not on the page
++            if (!util.Connect) {
++                // get a new loader instance to load connection.
++                var ld = new YAHOO.util.YUILoader();
++                ld.insert({
++                    base: this.base,
++                    filter: this.filter,
++                    require: "connection",
++                    insertBefore: this.insertBefore,
++                    charset: this.charset,
++                    onSuccess: function() {
++                        this.sandbox(null, "js");
++                    },
++                    scope: this
++                }, "js");
++                return;
++            }
++
++            this._scriptText = [];
++            this._loadCount = 0;
++            this._stopCount = this.sorted.length;
++            this._xhr = [];
++
++            this.calculate();
++
++            var s=this.sorted, l=s.length, i, m, url;
++
++            for (i=0; i<l; i=i+1) {
++                m = this.moduleInfo[s[i]];
++
++                // undefined modules cause a failure
++                if (!m) {
++                    this._onFailure("undefined module " + m);
++                    for (var j=0;j<this._xhr.length;j=j+1) {
++                        this._xhr[j].abort();
++                    }
++                    return;
++                }
++
++                // css files should be done
++                if (m.type !== "js") {
++                    this._loadCount++;
++                    continue;
++                }
++
++                url = m.fullpath;
++                url = (url) ? this._filter(url) : this._url(m.path);
++
++                // YAHOO.log("xhr request: " + url + ", " + i);
++
++                var xhrData = {
++
++                    success: function(o) {
++                        
++                        var idx=o.argument[0], name=o.argument[2];
++
++                        // store the response in the position it was requested
++                        this._scriptText[idx] = o.responseText; 
++                        
++                        // YAHOO.log("received: " + o.responseText.substr(0, 100) + ", " + idx);
++                    
++                        if (this.onProgress) {
++                            this.onProgress.call(this.scope, {
++                                        name: name,
++                                        scriptText: o.responseText,
++                                        xhrResponse: o,
++                                        data: this.data
++                                    });
++                        }
++
++                        // only generate the sandbox once everything is loaded
++                        this._loadCount++;
++
++                        if (this._loadCount >= this._stopCount) {
++
++                            // the variable to find
++                            var v = this.varName || "YAHOO";
++
++                            // wrap the contents of the requested modules in an anonymous function
++                            var t = "(function() {\n";
++                        
++                            // return the locally scoped reference.
++                            var b = "\nreturn " + v + ";\n})();";
++
++                            var ref = eval(t + this._scriptText.join("\n") + b);
++
++                            this._pushEvents(ref);
++
++                            if (ref) {
++                                this.onSuccess.call(this.scope, {
++                                        reference: ref,
++                                        data: this.data
++                                    });
++                            } else {
++                                this._onFailure.call(this.varName + " reference failure");
++                            }
++                        }
++                    },
++
++                    failure: function(o) {
++                        this.onFailure.call(this.scope, {
++                                msg: "XHR failure",
++                                xhrResponse: o,
++                                data: this.data
++                            });
++                    },
++
++                    scope: this,
++
++                    // module index, module name, sandbox name
++                    argument: [i, url, s[i]]
++
++                };
++
++                this._xhr.push(util.Connect.asyncRequest('GET', url, xhrData));
++            }
++        },
++
++        /**
++         * Executed every time a module is loaded, and if we are in a load
++         * cycle, we attempt to load the next script.  Public so that it
++         * is possible to call this if using a method other than
++         * YAHOO.register to determine when scripts are fully loaded
++         * @method loadNext
++         * @param mname {string} optional the name of the module that has
++         * been loaded (which is usually why it is time to load the next
++         * one)
++         */
++        loadNext: function(mname) {
++
++            // It is possible that this function is executed due to something
++            // else one the page loading a YUI module.  Only react when we
++            // are actively loading something
++            if (!this._loading) {
++                return;
++            }
++
++
++            if (mname) {
++
++                // if the module that was just loaded isn't what we were expecting,
++                // continue to wait
++                if (mname !== this._loading) {
++                    return;
++                }
++
++                // YAHOO.log("loadNext executing, just loaded " + mname);
++
++                // The global handler that is called when each module is loaded
++                // will pass that module name to this function.  Storing this
++                // data to avoid loading the same module multiple times
++                this.inserted[mname] = true;
++
++                if (this.onProgress) {
++                    this.onProgress.call(this.scope, {
++                            name: mname,
++                            data: this.data
++                        });
++                }
++                //var o = this.getProvides(mname);
++                //this.inserted = lang.merge(this.inserted, o);
++            }
++
++            var s=this.sorted, len=s.length, i, m;
++
++            for (i=0; i<len; i=i+1) {
++
++                // This.inserted keeps track of what the loader has loaded
++                if (s[i] in this.inserted) {
++                    // YAHOO.log(s[i] + " alread loaded ");
++                    continue;
++                }
++
++                // Because rollups will cause multiple load notifications
++                // from YAHOO, loadNext may be called multiple times for
++                // the same module when loading a rollup.  We can safely
++                // skip the subsequent requests
++                if (s[i] === this._loading) {
++                    // YAHOO.log("still loading " + s[i] + ", waiting");
++                    return;
++                }
++
++                // log("inserting " + s[i]);
++                m = this.moduleInfo[s[i]];
++
++                if (!m) {
++                    this.onFailure.call(this.scope, {
++                            msg: "undefined module " + m,
++                            data: this.data
++                        });
++                    return;
++                }
++
++                // The load type is stored to offer the possibility to load
++                // the css separately from the script.
++                if (!this.loadType || this.loadType === m.type) {
++                    this._loading = s[i];
++                    //YAHOO.log("attempting to load " + s[i] + ", " + this.base);
++
++                    var fn=(m.type === "css") ? util.Get.css : util.Get.script,
++                        url = m.fullpath,
++                        self=this, 
++                        c=function(o) {
++                            self.loadNext(o.data);
++                        };
++
++                        url = (url) ? this._filter(url) : this._url(m.path);
++
++                    // safari 2.x or lower, script, and part of YUI
++                    if (env.ua.webkit && env.ua.webkit < 420 && m.type === "js" && 
++                          !m.varName) {
++                          //YUI.info.moduleInfo[s[i]]) {
++                          //YAHOO.log("using YAHOO env " + s[i] + ", " + m.varName);
++                        c = null;
++                        this._useYahooListener = true;
++                    }
++
++                    fn(url, {
++                        data: s[i],
++                        onSuccess: c,
++                        onFailure: this._onFailure,
++                        onTimeout: this._onTimeout,
++                        insertBefore: this.insertBefore,
++                        charset: this.charset,
++                        timeout: this.timeout,
++                        varName: m.varName,
++                        scope: self 
++                    });
++
++                    return;
++                }
++            }
++
++            // we are finished
++            this._loading = null;
++
++            // internal callback for loading css first
++            if (this._internalCallback) {
++                var f = this._internalCallback;
++                this._internalCallback = null;
++                f.call(this);
++            } else if (this.onSuccess) {
++                this._pushEvents();
++                this.onSuccess.call(this.scope, {
++                        data: this.data
++                    });
++            }
++
++        },
++
++        /**
++         * In IE, the onAvailable/onDOMReady events need help when Event is
++         * loaded dynamically
++         * @method _pushEvents
++         * @param {Function} optional function reference
++         * @private
++         */
++        _pushEvents: function(ref) {
++            var r = ref || YAHOO;
++            if (r.util && r.util.Event) {
++                r.util.Event._load();
++            }
++        },
++
++        /**
++         * Applies filter
++         * method _filter
++         * @return {string} the filtered string
++         * @private
++         */
++        _filter: function(str) {
++            var f = this.filter;
++            return (f) ?  str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str;
++        },
++
++        /**
++         * Generates the full url for a module
++         * method _url
++         * @param path {string} the path fragment
++         * @return {string} the full url
++         * @private
++         */
++        _url: function(path) {
++            return this._filter((this.base || "") + path);
++        }
++
++    };
++
++})();
++
++YAHOO.register("yuiloader", YAHOO.util.YUILoader, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuitest/assets/skins/sam/yuitest-skin.css b/pylons_app/public/js/yui/yuitest/assets/skins/sam/yuitest-skin.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/assets/skins/sam/yuitest-skin.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
+diff --git a/pylons_app/public/js/yui/yuitest/assets/skins/sam/yuitest.css b/pylons_app/public/js/yui/yuitest/assets/skins/sam/yuitest.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/assets/skins/sam/yuitest.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
+diff --git a/pylons_app/public/js/yui/yuitest/assets/testlogger.css b/pylons_app/public/js/yui/yuitest/assets/testlogger.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/assets/testlogger.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++.yui-log{padding-top:3em;}.yui-log-container{width:40em;}.yui-log .yui-log-bd{height:60em;}.yui-log .yui-log-btns{display:none;}.yui-log .yui-log-ft .yui-log-sourcefilters{visibility:hidden;}.yui-log .yui-log-hd{display:none;}.yui-log .yui-log-ft{position:absolute;top:0;}.pass{background-color:green;font-weight:bold;color:white;}.fail{background-color:red;font-weight:bold;color:white;}.ignore{background-color:#666;font-weight:bold;color:white;}
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/yuitest/assets/yuitest-core.css b/pylons_app/public/js/yui/yuitest/assets/yuitest-core.css
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/assets/yuitest-core.css
+@@ -0,0 +1,7 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++
+diff --git a/pylons_app/public/js/yui/yuitest/yuitest-debug.js b/pylons_app/public/js/yui/yuitest/yuitest-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/yuitest-debug.js
+@@ -0,0 +1,2741 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestCase object
++//-----------------------------------------------------------------------------
++(function(){
++    
++    //used for autogenerating test case names
++    var tempId = 0;
++    
++    /**
++     * Test case containing various tests to run.
++     * @param template An object containing any number of test methods, other methods,
++     *                 an optional name, and anything else the test case needs.
++     * @class TestCase
++     * @namespace YAHOO.tool
++     * @constructor
++     */
++    YAHOO.tool.TestCase = function (template /*:Object*/) {
++        
++        /**
++         * Special rules for the test case. Possible subobjects
++         * are fail, for tests that should fail, and error, for
++         * tests that should throw an error.
++         */
++        this._should /*:Object*/ = {};
++        
++        //copy over all properties from the template to this object
++        for (var prop in template) {
++            this[prop] = template[prop];
++        }    
++        
++        //check for a valid name
++        if (!YAHOO.lang.isString(this.name)){
++            /**
++             * Name for the test case.
++             */
++            this.name /*:String*/ = "testCase" + (tempId++);
++        }
++    
++    };
++    
++    
++    YAHOO.tool.TestCase.prototype = {  
++    
++        /**
++         * Resumes a paused test and runs the given function.
++         * @param {Function} segment (Optional) The function to run.
++         *      If omitted, the test automatically passes.
++         * @return {Void}
++         * @method resume
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            YAHOO.tool.TestRunner.resume(segment);
++        },
++    
++        /**
++         * Causes the test case to wait a specified amount of time and then
++         * continue executing the given code.
++         * @param {Function} segment (Optional) The function to run after the delay.
++         *      If omitted, the TestRunner will wait until resume() is called.
++         * @param {int} delay (Optional) The number of milliseconds to wait before running
++         *      the function. If omitted, defaults to zero.
++         * @return {Void}
++         * @method wait
++         */
++        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
++            var args = arguments;
++            if (YAHOO.lang.isFunction(args[0])){
++                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
++            } else {
++                throw new YAHOO.tool.TestCase.Wait(function(){
++                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
++                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
++            }            
++        },
++    
++        //-------------------------------------------------------------------------
++        // Stub Methods
++        //-------------------------------------------------------------------------
++    
++        /**
++         * Function to run before each test is executed.
++         * @return {Void}
++         * @method setUp
++         */
++        setUp : function () /*:Void*/ {
++        },
++        
++        /**
++         * Function to run after each test is executed.
++         * @return {Void}
++         * @method tearDown
++         */
++        tearDown: function () /*:Void*/ {    
++        }
++    };
++    
++    /**
++     * Represents a stoppage in test execution to wait for an amount of time before
++     * continuing.
++     * @param {Function} segment A function to run when the wait is over.
++     * @param {int} delay The number of milliseconds to wait before running the code.
++     * @class Wait
++     * @namespace YAHOO.tool.TestCase
++     * @constructor
++     *
++     */
++    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
++        
++        /**
++         * The segment of code to run when the wait is over.
++         * @type Function
++         * @property segment
++         */
++        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
++    
++        /**
++         * The delay before running the segment of code.
++         * @type int
++         * @property delay
++         */
++        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
++    
++    };
++
++})();
++YAHOO.namespace("tool");
++
++
++//-----------------------------------------------------------------------------
++// TestSuite object
++//-----------------------------------------------------------------------------
++
++/**
++ * A test suite that can contain a collection of TestCase and TestSuite objects.
++ * @param {String||Object} data The name of the test suite or an object containing
++ *      a name property as well as setUp and tearDown methods.
++ * @namespace YAHOO.tool
++ * @class TestSuite
++ * @constructor
++ */
++YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
++
++    /**
++     * The name of the test suite.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "";
++
++    /**
++     * Array of test suites and
++     * @private
++     */
++    this.items /*:Array*/ = [];
++
++    //initialize the properties
++    if (YAHOO.lang.isString(data)){
++        this.name = data;
++    } else if (YAHOO.lang.isObject(data)){
++        YAHOO.lang.augmentObject(this, data, true);
++    }
++
++    //double-check name
++    if (this.name === ""){
++        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
++    }
++
++};
++
++YAHOO.tool.TestSuite.prototype = {
++    
++    /**
++     * Adds a test suite or test case to the test suite.
++     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
++     * @return {Void}
++     * @method add
++     */
++    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
++            this.items.push(testObject);
++        }
++    },
++    
++    //-------------------------------------------------------------------------
++    // Stub Methods
++    //-------------------------------------------------------------------------
++
++    /**
++     * Function to run before each test is executed.
++     * @return {Void}
++     * @method setUp
++     */
++    setUp : function () /*:Void*/ {
++    },
++    
++    /**
++     * Function to run after each test is executed.
++     * @return {Void}
++     * @method tearDown
++     */
++    tearDown: function () /*:Void*/ {
++    }
++    
++};
++YAHOO.namespace("tool");
++
++/**
++ * The YUI test tool
++ * @module yuitest
++ * @namespace YAHOO.tool
++ * @requires yahoo,dom,event,logger
++ * @optional event-simulte
++ */
++
++
++//-----------------------------------------------------------------------------
++// TestRunner object
++//-----------------------------------------------------------------------------
++
++
++YAHOO.tool.TestRunner = (function(){
++
++    /**
++     * A node in the test tree structure. May represent a TestSuite, TestCase, or
++     * test function.
++     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++     * @class TestNode
++     * @constructor
++     * @private
++     */
++    function TestNode(testObject /*:Variant*/){
++    
++        /**
++         * The TestSuite, TestCase, or test function represented by this node.
++         * @type Variant
++         * @property testObject
++         */
++        this.testObject = testObject;
++        
++        /**
++         * Pointer to this node's first child.
++         * @type TestNode
++         * @property firstChild
++         */        
++        this.firstChild /*:TestNode*/ = null;
++        
++        /**
++         * Pointer to this node's last child.
++         * @type TestNode
++         * @property lastChild
++         */        
++        this.lastChild = null;
++        
++        /**
++         * Pointer to this node's parent.
++         * @type TestNode
++         * @property parent
++         */        
++        this.parent = null; 
++   
++        /**
++         * Pointer to this node's next sibling.
++         * @type TestNode
++         * @property next
++         */        
++        this.next = null;
++        
++        /**
++         * Test results for this test object.
++         * @type object
++         * @property results
++         */                
++        this.results /*:Object*/ = {
++            passed : 0,
++            failed : 0,
++            total : 0,
++            ignored : 0
++        };
++        
++        //initialize results
++        if (testObject instanceof YAHOO.tool.TestSuite){
++            this.results.type = "testsuite";
++            this.results.name = testObject.name;
++        } else if (testObject instanceof YAHOO.tool.TestCase){
++            this.results.type = "testcase";
++            this.results.name = testObject.name;
++        }
++       
++    }
++    
++    TestNode.prototype = {
++    
++        /**
++         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
++         * of this node.
++         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++         * @return {Void}
++         */
++        appendChild : function (testObject /*:Variant*/) /*:Void*/{
++            var node = new TestNode(testObject);
++            if (this.firstChild === null){
++                this.firstChild = this.lastChild = node;
++            } else {
++                this.lastChild.next = node;
++                this.lastChild = node;
++            }
++            node.parent = this;
++            return node;
++        }       
++    };
++
++    /**
++     * Runs test suites and test cases, providing events to allowing for the
++     * interpretation of test results.
++     * @namespace YAHOO.tool
++     * @class TestRunner
++     * @static
++     */
++    function TestRunner(){
++    
++        //inherit from EventProvider
++        TestRunner.superclass.constructor.apply(this,arguments);
++        
++        /**
++         * Suite on which to attach all TestSuites and TestCases to be run.
++         * @type YAHOO.tool.TestSuite
++         * @property masterSuite
++         * @private
++         * @static
++         */
++        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
++
++        /**
++         * Pointer to the current node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _cur
++         * @static
++         */
++        this._cur = null;
++        
++        /**
++         * Pointer to the root node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _root
++         * @static
++         */
++        this._root = null;
++        
++        //create events
++        var events /*:Array*/ = [
++            this.TEST_CASE_BEGIN_EVENT,
++            this.TEST_CASE_COMPLETE_EVENT,
++            this.TEST_SUITE_BEGIN_EVENT,
++            this.TEST_SUITE_COMPLETE_EVENT,
++            this.TEST_PASS_EVENT,
++            this.TEST_FAIL_EVENT,
++            this.TEST_IGNORE_EVENT,
++            this.COMPLETE_EVENT,
++            this.BEGIN_EVENT
++        ];
++        for (var i=0; i < events.length; i++){
++            this.createEvent(events[i], { scope: this });
++        }       
++   
++    }
++    
++    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
++    
++        //-------------------------------------------------------------------------
++        // Constants
++        //-------------------------------------------------------------------------
++         
++        /**
++         * Fires when a test case is opened but before the first 
++         * test is executed.
++         * @event testcasebegin
++         */         
++        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
++        
++        /**
++         * Fires when all tests in a test case have been executed.
++         * @event testcasecomplete
++         */        
++        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
++        
++        /**
++         * Fires when a test suite is opened but before the first 
++         * test is executed.
++         * @event testsuitebegin
++         */        
++        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
++        
++        /**
++         * Fires when all test cases in a test suite have been
++         * completed.
++         * @event testsuitecomplete
++         */        
++        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
++        
++        /**
++         * Fires when a test has passed.
++         * @event pass
++         */        
++        TEST_PASS_EVENT /*:String*/ : "pass",
++        
++        /**
++         * Fires when a test has failed.
++         * @event fail
++         */        
++        TEST_FAIL_EVENT /*:String*/ : "fail",
++        
++        /**
++         * Fires when a test has been ignored.
++         * @event ignore
++         */        
++        TEST_IGNORE_EVENT /*:String*/ : "ignore",
++        
++        /**
++         * Fires when all test suites and test cases have been completed.
++         * @event complete
++         */        
++        COMPLETE_EVENT /*:String*/ : "complete",
++        
++        /**
++         * Fires when the run() method is called.
++         * @event begin
++         */        
++        BEGIN_EVENT /*:String*/ : "begin",    
++        
++        //-------------------------------------------------------------------------
++        // Test Tree-Related Methods
++        //-------------------------------------------------------------------------
++
++        /**
++         * Adds a test case to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test case to as a child.
++         * @param {YAHOO.tool.TestCase} testCase The test case to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestCaseToTestTree
++         */
++       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
++            
++            //add the test suite
++            var node = parentNode.appendChild(testCase);
++            
++            //iterate over the items in the test case
++            for (var prop in testCase){
++                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
++                    node.appendChild(prop);
++                }
++            }
++         
++        },
++        
++        /**
++         * Adds a test suite to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test suite to as a child.
++         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestSuiteToTestTree
++         */
++        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++            
++            //add the test suite
++            var node = parentNode.appendChild(testSuite);
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < testSuite.items.length; i++){
++                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
++                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(node, testSuite.items[i]);
++                }                   
++            }            
++        },
++        
++        /**
++         * Builds the test tree based on items in the master suite. The tree is a hierarchical
++         * representation of the test suites, test cases, and test functions. The resulting tree
++         * is stored in _root and the pointer _cur is set to the root initially.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _buildTestTree
++         */
++        _buildTestTree : function () /*:Void*/ {
++        
++            this._root = new TestNode(this.masterSuite);
++            this._cur = this._root;
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < this.masterSuite.items.length; i++){
++                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
++                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
++                }                   
++            }            
++        
++        }, 
++    
++        //-------------------------------------------------------------------------
++        // Private Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Handles the completion of a test object's tests. Tallies test results 
++         * from one level up to the next.
++         * @param {TestNode} node The TestNode representing the test object.
++         * @return {Void}
++         * @method _handleTestObjectComplete
++         * @private
++         * @static
++         */
++        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
++            if (YAHOO.lang.isObject(node.testObject)){
++                node.parent.results.passed += node.results.passed;
++                node.parent.results.failed += node.results.failed;
++                node.parent.results.total += node.results.total;                
++                node.parent.results.ignored += node.results.ignored;                
++                node.parent.results[node.testObject.name] = node.results;
++            
++                if (node.testObject instanceof YAHOO.tool.TestSuite){
++                    node.testObject.tearDown();
++                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
++                } else if (node.testObject instanceof YAHOO.tool.TestCase){
++                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
++                }      
++            } 
++        },                
++        
++        //-------------------------------------------------------------------------
++        // Navigation Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Retrieves the next node in the test tree.
++         * @return {TestNode} The next node in the test tree or null if the end is reached.
++         * @private
++         * @static
++         * @method _next
++         */
++        _next : function () /*:TestNode*/ {
++        
++            if (this._cur.firstChild) {
++                this._cur = this._cur.firstChild;
++            } else if (this._cur.next) {
++                this._cur = this._cur.next;            
++            } else {
++                while (this._cur && !this._cur.next && this._cur !== this._root){
++                    this._handleTestObjectComplete(this._cur);
++                    this._cur = this._cur.parent;
++                }
++                
++                if (this._cur == this._root){
++                    this._cur.results.type = "report";
++                    this._cur.results.timestamp = (new Date()).toLocaleString();
++                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
++                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
++                    this._cur = null;
++                } else {
++                    this._handleTestObjectComplete(this._cur);               
++                    this._cur = this._cur.next;                
++                }
++            }
++        
++            return this._cur;
++        },
++        
++        /**
++         * Runs a test case or test suite, returning the results.
++         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
++         * @return {Object} Results of the execution with properties passed, failed, and total.
++         * @private
++         * @method _run
++         * @static
++         */
++        _run : function () /*:Void*/ {
++        
++            //flag to indicate if the TestRunner should wait before continuing
++            var shouldWait /*:Boolean*/ = false;
++            
++            //get the next test node
++            var node = this._next();
++            
++            if (node !== null) {
++                var testObject = node.testObject;
++                
++                //figure out what to do
++                if (YAHOO.lang.isObject(testObject)){
++                    if (testObject instanceof YAHOO.tool.TestSuite){
++                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
++                        testObject.setUp();
++                    } else if (testObject instanceof YAHOO.tool.TestCase){
++                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
++                    }
++                    
++                    //some environments don't support setTimeout
++                    if (typeof setTimeout != "undefined"){                    
++                        setTimeout(function(){
++                            YAHOO.tool.TestRunner._run();
++                        }, 0);
++                    } else {
++                        this._run();
++                    }
++                } else {
++                    this._runTest(node);
++                }
++
++            }
++        },
++        
++        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
++        
++            //get relevant information
++            var node /*:TestNode*/ = this._cur;
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            
++            //cancel other waits if available
++            if (testCase.__yui_wait){
++                clearTimeout(testCase.__yui_wait);
++                delete testCase.__yui_wait;
++            }            
++            
++            //get the "should" test cases
++            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
++            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
++            
++            //variable to hold whether or not the test failed
++            var failed /*:Boolean*/ = false;
++            var error /*:Error*/ = null;
++                
++            //try the test
++            try {
++            
++                //run the test
++                segment.apply(testCase);
++                
++                //if it should fail, and it got here, then it's a fail because it didn't
++                if (shouldFail){
++                    error = new YAHOO.util.ShouldFail();
++                    failed = true;
++                } else if (shouldError){
++                    error = new YAHOO.util.ShouldError();
++                    failed = true;
++                }
++                           
++            } catch (thrown /*:Error*/){
++                if (thrown instanceof YAHOO.util.AssertionError) {
++                    if (!shouldFail){
++                        error = thrown;
++                        failed = true;
++                    }
++                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
++                
++                    if (YAHOO.lang.isFunction(thrown.segment)){
++                        if (YAHOO.lang.isNumber(thrown.delay)){
++                        
++                            //some environments don't support setTimeout
++                            if (typeof setTimeout != "undefined"){
++                                testCase.__yui_wait = setTimeout(function(){
++                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
++                                }, thrown.delay);                             
++                            } else {
++                                throw new Error("Asynchronous tests not supported in this environment.");
++                            }
++                        }
++                    }
++                    
++                    return;
++                
++                } else {
++                    //first check to see if it should error
++                    if (!shouldError) {                        
++                        error = new YAHOO.util.UnexpectedError(thrown);
++                        failed = true;
++                    } else {
++                        //check to see what type of data we have
++                        if (YAHOO.lang.isString(shouldError)){
++                            
++                            //if it's a string, check the error message
++                            if (thrown.message != shouldError){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        } else if (YAHOO.lang.isFunction(shouldError)){
++                        
++                            //if it's a function, see if the error is an instance of it
++                            if (!(thrown instanceof shouldError)){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;
++                            }
++                        
++                        } else if (YAHOO.lang.isObject(shouldError)){
++                        
++                            //if it's an object, check the instance and message
++                            if (!(thrown instanceof shouldError.constructor) || 
++                                    thrown.message != shouldError.message){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        
++                        }
++                    
++                    }
++                }
++                
++            }
++            
++            //fireEvent appropriate event
++            if (failed) {
++                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
++            } else {
++                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
++            }
++            
++            //run the tear down
++            testCase.tearDown();
++            
++            //update results
++            node.parent.results[testName] = { 
++                result: failed ? "fail" : "pass",
++                message: error ? error.getMessage() : "Test passed",
++                type: "test",
++                name: testName
++            };
++            
++            if (failed){
++                node.parent.results.failed++;
++            } else {
++                node.parent.results.passed++;
++            }
++            node.parent.results.total++;
++
++            //set timeout not supported in all environments
++            if (typeof setTimeout != "undefined"){
++                setTimeout(function(){
++                    YAHOO.tool.TestRunner._run();
++                }, 0);
++            } else {
++                this._run();
++            }
++        
++        },
++                
++        /**
++         * Runs a single test based on the data provided in the node.
++         * @param {TestNode} node The TestNode representing the test to run.
++         * @return {Void}
++         * @static
++         * @private
++         * @name _runTest
++         */
++        _runTest : function (node /*:TestNode*/) /*:Void*/ {
++        
++            //get relevant information
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            var test /*:Function*/ = testCase[testName];
++            
++            //get the "should" test cases
++            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
++            
++            //figure out if the test should be ignored or not
++            if (shouldIgnore){
++            
++                //update results
++                node.parent.results[testName] = { 
++                    result: "ignore",
++                    message: "Test ignored",
++                    type: "test",
++                    name: testName
++                };
++                
++                node.parent.results.ignored++;
++                node.parent.results.total++;
++            
++                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
++                
++                //some environments don't support setTimeout
++                if (typeof setTimeout != "undefined"){                    
++                    setTimeout(function(){
++                        YAHOO.tool.TestRunner._run();
++                    }, 0);              
++                } else {
++                    this._run();
++                }
++
++            } else {
++            
++                //run the setup
++                testCase.setUp();
++                
++                //now call the body of the test
++                this._resumeTest(test);                
++            }
++
++        },        
++        
++        //-------------------------------------------------------------------------
++        // Protected Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Fires events for the TestRunner. This overrides the default fireEvent()
++         * method from EventProvider to add the type property to the data that is
++         * passed through on each event call.
++         * @param {String} type The type of event to fire.
++         * @param {Object} data (Optional) Data for the event.
++         * @method fireEvent
++         * @static
++         * @protected
++         */
++        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
++            data = data || {};
++            data.type = type;
++            TestRunner.superclass.fireEvent.call(this, type, data);
++        },
++        
++        //-------------------------------------------------------------------------
++        // Public Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Adds a test suite or test case to the list of test objects to run.
++         * @param testObject Either a TestCase or a TestSuite that should be run.
++         * @return {Void}
++         * @method add
++         * @static
++         */
++        add : function (testObject /*:Object*/) /*:Void*/ {
++            this.masterSuite.add(testObject);
++        },
++        
++        /**
++         * Removes all test objects from the runner.
++         * @return {Void}
++         * @method clear
++         * @static
++         */
++        clear : function () /*:Void*/ {
++            this.masterSuite.items = [];
++        },
++        
++        /**
++         * Resumes the TestRunner after wait() was called.
++         * @param {Function} segment The function to run as the rest
++         *      of the haulted test.
++         * @return {Void}
++         * @method resume
++         * @static
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            this._resumeTest(segment || function(){});
++        },
++    
++        /**
++         * Runs the test suite.
++         * @return {Void}
++         * @method run
++         * @static
++         */
++        run : function (testObject /*:Object*/) /*:Void*/ {
++            
++            //pointer to runner to avoid scope issues 
++            var runner = YAHOO.tool.TestRunner;
++
++            //build the test tree
++            runner._buildTestTree();
++            
++            //set when the test started
++            runner._root.results.duration = (new Date()).getTime();
++            
++            //fire the begin event
++            runner.fireEvent(runner.BEGIN_EVENT);
++       
++            //begin the testing
++            runner._run();
++        }    
++    });
++    
++    return new TestRunner();
++    
++})();
++YAHOO.namespace("util");
++
++//-----------------------------------------------------------------------------
++// Assert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The Assert object provides functions to test JavaScript values against
++ * known and expected results. Whenever a comparison (assertion) fails,
++ * an error is thrown.
++ *
++ * @namespace YAHOO.util
++ * @class Assert
++ * @static
++ */
++YAHOO.util.Assert = {
++
++    //-------------------------------------------------------------------------
++    // Helper Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Formats a message so that it can contain the original assertion message
++     * in addition to the custom message.
++     * @param {String} customMessage The message passed in by the developer.
++     * @param {String} defaultMessage The message created by the error by default.
++     * @return {String} The final error message, containing either or both.
++     * @protected
++     * @static
++     * @method _formatMessage
++     */
++    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
++        var message = customMessage;
++        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
++            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
++        } else {
++            return defaultMessage;
++        }        
++    },
++    
++    //-------------------------------------------------------------------------
++    // Generic Assertion Methods
++    //-------------------------------------------------------------------------
++    
++    /** 
++     * Forces an assertion error to occur.
++     * @param {String} message (Optional) The message to display with the failure.
++     * @method fail
++     * @static
++     */
++    fail : function (message /*:String*/) /*:Void*/ {
++        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
++    },       
++    
++    //-------------------------------------------------------------------------
++    // Equality Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areEqual
++     * @static
++     */
++    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected != actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotEqual
++     * @static
++     */
++    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
++                         message /*:String*/) /*:Void*/ {
++        if (unexpected == actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotSame
++     * @static
++     */
++    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (unexpected === actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
++        }
++    },
++
++    /**
++     * Asserts that a value is the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areSame
++     * @static
++     */
++    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
++        }
++    },    
++    
++    //-------------------------------------------------------------------------
++    // Boolean Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is false. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFalse
++     * @static
++     */
++    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
++        if (false !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is true. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTrue
++     * @static
++     */
++    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
++        if (true !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
++        }
++
++    },
++    
++    //-------------------------------------------------------------------------
++    // Special Value Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is not a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNaN
++     * @static
++     */
++    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (!isNaN(actual)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not the special NaN value.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNaN
++     * @static
++     */
++    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (isNaN(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNull
++     * @static
++     */
++    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
++        }
++    },
++
++    /**
++     * Asserts that a value is not undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotUndefined
++     * @static
++     */
++    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
++        }
++    },
++
++    /**
++     * Asserts that a value is null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNull
++     * @static
++     */
++    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
++        }
++    },
++        
++    /**
++     * Asserts that a value is undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isUndefined
++     * @static
++     */
++    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
++        }
++    },    
++    
++    //--------------------------------------------------------------------------
++    // Instance Assertion Methods
++    //--------------------------------------------------------------------------    
++   
++    /**
++     * Asserts that a value is an array.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isArray
++     * @static
++     */
++    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isArray(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a Boolean.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isBoolean
++     * @static
++     */
++    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isBoolean(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a function.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFunction
++     * @static
++     */
++    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isFunction(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is an instance of a particular object. This may return
++     * incorrect results when comparing objects from one frame to constructors in
++     * another frame. For best results, don't use in a cross-frame manner.
++     * @param {Function} expected The function that the object should be an instance of.
++     * @param {Object} actual The object to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isInstanceOf
++     * @static
++     */
++    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(actual instanceof expected)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNumber
++     * @static
++     */
++    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNumber(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
++        }    
++    },    
++    
++    /**
++     * Asserts that a value is an object.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isObject
++     * @static
++     */
++    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isObject(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a string.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isString
++     * @static
++     */
++    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isString(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is of a particular type. 
++     * @param {String} expectedType The expected type of the variable.
++     * @param {Object} actualValue The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTypeOf
++     * @static
++     */
++    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (typeof actual != expected){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
++        }
++    }
++};
++
++//-----------------------------------------------------------------------------
++// Assertion errors
++//-----------------------------------------------------------------------------
++
++/**
++ * AssertionError is thrown whenever an assertion fails. It provides methods
++ * to more easily get at error information and also provides a base class
++ * from which more specific assertion errors can be derived.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @class AssertionError
++ * @extends Error
++ * @constructor
++ */ 
++YAHOO.util.AssertionError = function (message /*:String*/){
++
++    //call superclass
++    //arguments.callee.superclass.constructor.call(this, message);
++    
++    /*
++     * Error message. Must be duplicated to ensure browser receives it.
++     * @type String
++     * @property message
++     */
++    this.message /*:String*/ = message;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "AssertionError";
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This should
++     * be overridden by all subclasses to provide specific information.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message;
++    },
++    
++    /**
++     * Returns a string representation of the error.
++     * @method toString
++     * @return {String} A string representation of the error.
++     */
++    toString : function () /*:String*/ {
++        return this.name + ": " + this.getMessage();
++    }
++    
++});
++
++/**
++ * ComparisonFailure is subclass of AssertionError that is thrown whenever
++ * a comparison between two values fails. It provides mechanisms to retrieve
++ * both the expected and actual value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} expected The expected value.
++ * @param {Object} actual The actual value that caused the assertion to fail.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ComparisonFailure
++ * @constructor
++ */ 
++YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The expected value.
++     * @type Object
++     * @property expected
++     */
++    this.expected /*:Object*/ = expected;
++    
++    /**
++     * The actual value.
++     * @type Object
++     * @property actual
++     */
++    this.actual /*:Object*/ = actual;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ComparisonFailure";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This message
++     * provides information about the expected and actual values.
++     * @method toString
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
++            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
++    }
++
++});
++
++/**
++ * UnexpectedValue is subclass of AssertionError that is thrown whenever
++ * a value was unexpected in its scope. This typically means that a test
++ * was performed to determine that a value was *not* equal to a certain
++ * value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} unexpected The unexpected value.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedValue
++ * @constructor
++ */ 
++YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The unexpected value.
++     * @type Object
++     * @property unexpected
++     */
++    this.unexpected /*:Object*/ = unexpected;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedValue";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. The message
++     * contains information about the unexpected value that was encountered.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
++    }
++
++});
++
++/**
++ * ShouldFail is subclass of AssertionError that is thrown whenever
++ * a test was expected to fail but did not.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldFail
++ * @constructor
++ */  
++YAHOO.util.ShouldFail = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldFail";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
++
++/**
++ * ShouldError is subclass of AssertionError that is thrown whenever
++ * a test is expected to throw an error but doesn't.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldError
++ * @constructor
++ */  
++YAHOO.util.ShouldError = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldError";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
++
++/**
++ * UnexpectedError is subclass of AssertionError that is thrown whenever
++ * an error occurs within the course of a test and the test was not expected
++ * to throw an error.
++ *
++ * @param {Error} cause The unexpected error that caused this error to be 
++ *                      thrown.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedError
++ * @constructor
++ */  
++YAHOO.util.UnexpectedError = function (cause /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
++    
++    /**
++     * The unexpected error that occurred.
++     * @type Error
++     * @property cause
++     */
++    this.cause /*:Error*/ = cause;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedError";
++    
++    /**
++     * Stack information for the error (if provided).
++     * @type String
++     * @property stack
++     */
++    this.stack /*:String*/ = cause.stack;
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
++//-----------------------------------------------------------------------------
++// ArrayAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ArrayAssert object provides functions to test JavaScript array objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ArrayAssert
++ * @static
++ */
++ 
++YAHOO.util.ArrayAssert = {
++
++    /**
++     * Asserts that a value is present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method contains
++     * @static
++     */
++    contains : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * be found.
++     * @param {Object[]} needles An array of values that are expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsItems
++     * @static
++     */
++    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        //begin checking values
++        for (var i=0; i < needles.length; i++){
++            this.contains(needles[i], haystack, message);
++        }
++    },
++
++    /**
++     * Asserts that a value matching some condition is present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsMatch
++     * @static
++     */
++    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
++        }
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a value is not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContain
++     * @static
++     */
++    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * not be found.
++     * @param {Object[]} needles An array of values that are not expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainItems
++     * @static
++     */
++    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        for (var i=0; i < needles.length; i++){
++            this.doesNotContain(needles[i], haystack, message);
++        }
++
++    },
++        
++    /**
++     * Asserts that no values matching a condition are present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainMatch
++     * @static
++     */
++    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
++        }
++
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++        
++    /**
++     * Asserts that the given value is contained in an array at the specified index.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method indexOf
++     * @static
++     */
++    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        //try to find the value in the array
++        for (var i=0; i < haystack.length; i++){
++            if (haystack[i] === needle){
++                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
++                return;
++            }
++        }
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
++    },
++        
++    /**
++     * Asserts that the values in an array are equal, and in the same position,
++     * as values in another array. This uses the double equals sign
++     * so type cohersion may occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreEqual
++     * @static
++     */
++    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++       
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areEqual(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
++        }
++    },
++    
++    /**
++     * Asserts that the values in an array are equivalent, and in the same position,
++     * as values in another array. This uses a function to determine if the values
++     * are equivalent. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {Function} comparator A function that returns true if the values are equivalent
++     *      or false if not.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @return {Void}
++     * @method itemsAreEquivalent
++     * @static
++     */
++    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
++                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
++        
++        //make sure the comparator is valid
++        if (typeof comparator != "function"){
++            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
++        }
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            if (!comparator(expected[i], actual[i])){
++                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
++            }
++        }
++    },
++    
++    /**
++     * Asserts that an array is empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isEmpty
++     * @static
++     */
++    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length > 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that an array is not empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotEmpty
++     * @static
++     */
++    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length === 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that the values in an array are the same, and in the same position,
++     * as values in another array. This uses the triple equals sign
++     * so no type cohersion will occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreSame
++     * @static
++     */
++    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
++                          message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areSame(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
++        }
++    },
++    
++    /**
++     * Asserts that the given value is contained in an array at the specified index,
++     * starting from the back of the array.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method lastIndexOf
++     * @static
++     */
++    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        var Assert = YAHOO.util.Assert;
++    
++        //try to find the value in the array
++        for (var i=haystack.length; i >= 0; i--){
++            if (haystack[i] === needle){
++                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
++                return;
++            }
++        }
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
++    }
++    
++};
++YAHOO.namespace("util");
++
++
++//-----------------------------------------------------------------------------
++// ObjectAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ObjectAssert object provides functions to test JavaScript objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ObjectAssert
++ * @static
++ */
++YAHOO.util.ObjectAssert = {
++        
++    /**
++     * Asserts that all properties in the object exist in another object.
++     * @param {Object} expected An object with the expected properties.
++     * @param {Object} actual An object with the actual properties.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method propertiesAreEqual
++     * @static
++     */
++    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //get all properties in the object
++        var properties /*:Array*/ = [];        
++        for (var property in expected){
++            properties.push(property);
++        }
++        
++        //see if the properties are in the expected object
++        for (var i=0; i < properties.length; i++){
++            Assert.isNotUndefined(actual[properties[i]], 
++                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
++        }
++
++    },
++    
++    /**
++     * Asserts that an object has a property with the given name.
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(propertyName in object)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
++        }    
++    },
++    
++    /**
++     * Asserts that a property with the given name exists on an object instance (not on its prototype).
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
++        }     
++    }
++};
++//-----------------------------------------------------------------------------
++// DateAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The DateAssert object provides functions to test JavaScript Date objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class DateAssert
++ * @static
++ */
++ 
++YAHOO.util.DateAssert = {
++
++    /**
++     * Asserts that a date's month, day, and year are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method datesAreEqual
++     * @static
++     */
++    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
++            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
++            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
++        } else {
++            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    },
++
++    /**
++     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method timesAreEqual
++     * @static
++     */
++    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
++            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
++            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
++        } else {
++            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    }
++    
++};
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestManager object
++//-----------------------------------------------------------------------------
++
++/**
++ * Runs pages containing test suite definitions.
++ * @namespace YAHOO.tool
++ * @class TestManager
++ * @static
++ */
++YAHOO.tool.TestManager = {
++
++    /**
++     * Constant for the testpagebegin custom event
++     * @property TEST_PAGE_BEGIN_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_PAGE_BEGIN_EVENT /*:String*/ : "testpagebegin",
++
++    /**
++     * Constant for the testpagecomplete custom event
++     * @property TEST_PAGE_COMPLETE_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_PAGE_COMPLETE_EVENT /*:String*/ : "testpagecomplete",
++
++    /**
++     * Constant for the testmanagerbegin custom event
++     * @property TEST_MANAGER_BEGIN_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_MANAGER_BEGIN_EVENT /*:String*/ : "testmanagerbegin",
++
++    /**
++     * Constant for the testmanagercomplete custom event
++     * @property TEST_MANAGER_COMPLETE_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_MANAGER_COMPLETE_EVENT /*:String*/ : "testmanagercomplete",
++
++    //-------------------------------------------------------------------------
++    // Private Properties
++    //-------------------------------------------------------------------------
++    
++    
++    /**
++     * The URL of the page currently being executed.
++     * @type String
++     * @private
++     * @property _curPage
++     * @static
++     */
++    _curPage /*:String*/ : null,
++    
++    /**
++     * The frame used to load and run tests.
++     * @type Window
++     * @private
++     * @property _frame
++     * @static
++     */
++    _frame /*:Window*/ : null,
++    
++    /**
++     * The logger used to output results from the various tests.
++     * @type YAHOO.tool.TestLogger
++     * @private
++     * @property _logger
++     * @static
++     */
++    _logger : null,
++    
++    /**
++     * The timeout ID for the next iteration through the tests.
++     * @type int
++     * @private
++     * @property _timeoutId
++     * @static
++     */
++    _timeoutId /*:int*/ : 0,
++    
++    /**
++     * Array of pages to load.
++     * @type String[]
++     * @private
++     * @property _pages
++     * @static
++     */
++    _pages /*:String[]*/ : [],
++    
++    /**
++     * Aggregated results
++     * @type Object
++     * @private
++     * @property _results
++     * @static
++     */
++    _results: null,
++    
++    //-------------------------------------------------------------------------
++    // Private Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Handles TestRunner.COMPLETE_EVENT, storing the results and beginning
++     * the loop again.
++     * @param {Object} data Data about the event.
++     * @return {Void}
++     * @private
++     * @static
++     */
++    _handleTestRunnerComplete : function (data /*:Object*/) /*:Void*/ {
++
++        this.fireEvent(this.TEST_PAGE_COMPLETE_EVENT, {
++                page: this._curPage,
++                results: data.results
++            });
++    
++        //save results
++        //this._results[this.curPage] = data.results;
++        
++        //process 'em
++        this._processResults(this._curPage, data.results);
++        
++        this._logger.clearTestRunner();
++    
++        //if there's more to do, set a timeout to begin again
++        if (this._pages.length){
++            this._timeoutId = setTimeout(function(){
++                YAHOO.tool.TestManager._run();
++            }, 1000);
++        } else {
++            this.fireEvent(this.TEST_MANAGER_COMPLETE_EVENT, this._results);
++        }
++    },
++    
++    /**
++     * Processes the results of a test page run, outputting log messages
++     * for failed tests.
++     * @return {Void}
++     * @private
++     * @static
++     */
++    _processResults : function (page /*:String*/, results /*:Object*/) /*:Void*/ {
++
++        var r = this._results;
++        
++        r.passed += results.passed;
++        r.failed += results.failed;
++        r.ignored += results.ignored;
++        r.total += results.total;
++        r.duration += results.duration;
++        
++        if (results.failed){
++            r.failedPages.push(page);
++        } else {
++            r.passedPages.push(page);
++        }
++        
++        results.name = page;
++        results.type = "page";
++        
++        r[page] = results;
++    },
++    
++    /**
++     * Loads the next test page into the iframe.
++     * @return {Void}
++     * @static
++     * @private
++     */
++    _run : function () /*:Void*/ {
++    
++        //set the current page
++        this._curPage = this._pages.shift();
++
++        this.fireEvent(this.TEST_PAGE_BEGIN_EVENT, this._curPage);
++        
++        //load the frame - destroy history in case there are other iframes that
++        //need testing
++        this._frame.location.replace(this._curPage);
++    
++    },
++        
++    //-------------------------------------------------------------------------
++    // Public Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Signals that a test page has been loaded. This should be called from
++     * within the test page itself to notify the TestManager that it is ready.
++     * @return {Void}
++     * @static
++     */
++    load : function () /*:Void*/ {
++        if (parent.YAHOO.tool.TestManager !== this){
++            parent.YAHOO.tool.TestManager.load();
++        } else {
++            
++            if (this._frame) {
++                //assign event handling
++                var TestRunner = this._frame.YAHOO.tool.TestRunner;
++
++                this._logger.setTestRunner(TestRunner);
++                TestRunner.subscribe(TestRunner.COMPLETE_EVENT, this._handleTestRunnerComplete, this, true);
++                
++                //run it
++                TestRunner.run();
++            }
++        }
++    },
++    
++    /**
++     * Sets the pages to be loaded.
++     * @param {String[]} pages An array of URLs to load.
++     * @return {Void}
++     * @static
++     */
++    setPages : function (pages /*:String[]*/) /*:Void*/ {
++        this._pages = pages;
++    },
++    
++    /**
++     * Begins the process of running the tests.
++     * @return {Void}
++     * @static
++     */
++    start : function () /*:Void*/ {
++
++        if (!this._initialized) {
++
++            /**
++             * Fires when loading a test page
++             * @event testpagebegin
++             * @param curPage {string} the page being loaded
++             * @static
++             */
++            this.createEvent(this.TEST_PAGE_BEGIN_EVENT);
++
++            /**
++             * Fires when a test page is complete
++             * @event testpagecomplete
++             * @param obj {page: string, results: object} the name of the
++             * page that was loaded, and the test suite results
++             * @static
++             */
++            this.createEvent(this.TEST_PAGE_COMPLETE_EVENT);
++
++            /**
++             * Fires when the test manager starts running all test pages
++             * @event testmanagerbegin
++             * @static
++             */
++            this.createEvent(this.TEST_MANAGER_BEGIN_EVENT);
++
++            /**
++             * Fires when the test manager finishes running all test pages.  External
++             * test runners should subscribe to this event in order to get the
++             * aggregated test results.
++             * @event testmanagercomplete
++             * @param obj { pages_passed: int, pages_failed: int, tests_passed: int
++             *              tests_failed: int, passed: string[], failed: string[],
++             *              page_results: {} }
++             * @static
++             */
++            this.createEvent(this.TEST_MANAGER_COMPLETE_EVENT);
++
++            //create iframe if not already available
++            if (!this._frame){
++                var frame /*:HTMLElement*/ = document.createElement("iframe");
++                frame.style.visibility = "hidden";
++                frame.style.position = "absolute";
++                document.body.appendChild(frame);
++                this._frame = frame.contentWindow || frame.contentDocument.parentWindow;
++            }
++            
++            //create test logger if not already available
++            if (!this._logger){
++                this._logger = new YAHOO.tool.TestLogger();
++            }
++
++            this._initialized = true;
++        }
++
++
++        // reset the results cache
++        this._results = {
++        
++            passed: 0,
++            failed: 0,
++            ignored: 0,
++            total: 0,
++            type: "report",
++            name: "YUI Test Results",
++            duration: 0,
++            failedPages:[],
++            passedPages:[]
++            /*
++            // number of pages that pass
++            pages_passed: 0,
++            // number of pages that fail
++            pages_failed: 0,
++            // total number of tests passed
++            tests_passed: 0,
++            // total number of tests failed
++            tests_failed: 0,
++            // array of pages that passed
++            passed: [],
++            // array of pages that failed
++            failed: [],
++            // map of full results for each page
++            page_results: {}*/
++        };
++
++        this.fireEvent(this.TEST_MANAGER_BEGIN_EVENT, null);
++        this._run();
++    
++    },
++
++    /**
++     * Stops the execution of tests.
++     * @return {Void}
++     * @static
++     */
++    stop : function () /*:Void*/ {
++        clearTimeout(this._timeoutId);
++    }
++
++};
++
++YAHOO.lang.augmentObject(YAHOO.tool.TestManager, YAHOO.util.EventProvider.prototype);
++
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestLogger object
++//-----------------------------------------------------------------------------
++
++/**
++ * Displays test execution progress and results, providing filters based on
++ * different key events.
++ * @namespace YAHOO.tool
++ * @class TestLogger
++ * @constructor
++ * @param {HTMLElement} element (Optional) The element to create the logger in.
++ * @param {Object} config (Optional) Configuration options for the logger.
++ */
++YAHOO.tool.TestLogger = function (element, config) {
++    YAHOO.tool.TestLogger.superclass.constructor.call(this, element, config);
++    this.init();
++};
++
++YAHOO.lang.extend(YAHOO.tool.TestLogger, YAHOO.widget.LogReader, {
++
++    footerEnabled : true,
++    newestOnTop : false,
++
++    /**
++     * Formats message string to HTML for output to console.
++     * @private
++     * @method formatMsg
++     * @param oLogMsg {Object} Log message object.
++     * @return {String} HTML-formatted message for output to console.
++     */
++    formatMsg : function(message /*:Object*/) {
++    
++        var category /*:String*/ = message.category;        
++        var text /*:String*/ = this.html2Text(message.msg);
++        
++        return "<pre><p><span class=\"" + category + "\">" + category.toUpperCase() + "</span> " + text + "</p></pre>";
++    
++    },
++    
++    //-------------------------------------------------------------------------
++    // Private Methods
++    //-------------------------------------------------------------------------
++    
++    /*
++     * Initializes the logger.
++     * @private
++     */
++    init : function () {
++    
++        //attach to any available TestRunner
++        if (YAHOO.tool.TestRunner){
++            this.setTestRunner(YAHOO.tool.TestRunner);
++        }
++        
++        //hide useless sources
++        this.hideSource("global");
++        this.hideSource("LogReader");
++        
++        //hide useless message categories
++        this.hideCategory("warn");
++        this.hideCategory("window");
++        this.hideCategory("time");
++        
++        //reset the logger
++        this.clearConsole();
++    },
++    
++    /**
++     * Clears the reference to the TestRunner from previous operations. This 
++     * unsubscribes all events and removes the object reference.
++     * @return {Void}
++     * @static
++     */
++    clearTestRunner : function () /*:Void*/ {
++        if (this._runner){
++            this._runner.unsubscribeAll();
++            this._runner = null;
++        }
++    },
++    
++    /**
++     * Sets the source test runner that the logger should monitor.
++     * @param {YAHOO.tool.TestRunner} testRunner The TestRunner to observe.
++     * @return {Void}
++     * @static
++     */
++    setTestRunner : function (testRunner /*:YAHOO.tool.TestRunner*/) /*:Void*/ {
++    
++        if (this._runner){
++            this.clearTestRunner();
++        }
++        
++        this._runner = testRunner;
++        
++        //setup event _handlers
++        testRunner.subscribe(testRunner.TEST_PASS_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_FAIL_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_IGNORE_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_SUITE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_SUITE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_CASE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_CASE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);    
++    },
++    
++    //-------------------------------------------------------------------------
++    // Event Handlers
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Handles all TestRunner events, outputting appropriate data into the console.
++     * @param {Object} data The event data object.
++     * @return {Void}
++     * @private
++     */
++    _handleTestRunnerEvent : function (data /*:Object*/) /*:Void*/ {
++    
++        //shortcut variables
++        var TestRunner /*:Object*/ = YAHOO.tool.TestRunner;
++    
++        //data variables
++        var message /*:String*/ = "";
++        var messageType /*:String*/ = "";
++        
++        switch(data.type){
++            case TestRunner.BEGIN_EVENT:
++                message = "Testing began at " + (new Date()).toString() + ".";
++                messageType = "info";
++                break;
++                
++            case TestRunner.COMPLETE_EVENT:
++                message = "Testing completed at " + (new Date()).toString() + ".\nPassed:" + 
++                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_FAIL_EVENT:
++                message = data.testName + ": " + data.error.getMessage();
++                messageType = "fail";
++                break;
++                
++            case TestRunner.TEST_IGNORE_EVENT:
++                message = data.testName + ": ignored.";
++                messageType = "ignore";
++                break;
++                
++            case TestRunner.TEST_PASS_EVENT:
++                message = data.testName + ": passed.";
++                messageType = "pass";
++                break;
++                
++            case TestRunner.TEST_SUITE_BEGIN_EVENT:
++                message = "Test suite \"" + data.testSuite.name + "\" started.";
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_SUITE_COMPLETE_EVENT:
++                message = "Test suite \"" + data.testSuite.name + "\" completed.\nPassed:" + 
++                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_CASE_BEGIN_EVENT:
++                message = "Test case \"" + data.testCase.name + "\" started.";
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_CASE_COMPLETE_EVENT:
++                message = "Test case \"" + data.testCase.name + "\" completed.\nPassed:" + 
++                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
++                messageType = "info";
++                break;
++            default:
++                message = "Unexpected event " + data.type;
++                message = "info";
++        }
++    
++        YAHOO.log(message, messageType, "TestRunner");    
++    }
++    
++});
++YAHOO.namespace("tool.TestFormat");
++
++/**
++ * Returns test results formatted as a JSON string. Requires JSON utility.
++ * @param {Object} result The results object created by TestRunner.
++ * @return {String} An XML-formatted string of results.
++ * @namespace YAHOO.tool.TestFormat
++ * @method JSON
++ * @static
++ */
++YAHOO.tool.TestFormat.JSON = function(results /*:Object*/) /*:String*/ {
++    return YAHOO.lang.JSON.stringify(results);
++};
++
++/**
++ * Returns test results formatted as an XML string.
++ * @param {Object} result The results object created by TestRunner.
++ * @return {String} An XML-formatted string of results.
++ * @namespace YAHOO.tool.TestFormat
++ * @method XML
++ * @static
++ */
++YAHOO.tool.TestFormat.XML = function(results /*:Object*/) /*:String*/ {
++
++    var l = YAHOO.lang;
++    var xml /*:String*/ = "<" + results.type + " name=\"" + results.name.replace(/"/g, "&quot;").replace(/'/g, "&apos;") + "\"";
++    
++    if (l.isNumber(results.duration)){
++        xml += " duration=\"" + results.duration + "\"";
++    }
++    
++    if (results.type == "test"){
++        xml += " result=\"" + results.result + "\" message=\"" + results.message + "\">";
++    } else {
++        xml += " passed=\"" + results.passed + "\" failed=\"" + results.failed + "\" ignored=\"" + results.ignored + "\" total=\"" + results.total + "\">";
++        for (var prop in results) {
++            if (l.hasOwnProperty(results, prop) && l.isObject(results[prop]) && !l.isArray(results[prop])){
++                xml += arguments.callee(results[prop]);
++            }
++        }        
++    }
++
++    xml += "</" + results.type + ">";
++    
++    return xml;
++
++};
++YAHOO.namespace("tool");
++
++/**
++ * An object capable of sending test results to a server.
++ * @param {String} url The URL to submit the results to.
++ * @param {Function} format (Optiona) A function that outputs the results in a specific format.
++ *      Default is YAHOO.tool.TestFormat.XML.
++ * @constructor
++ * @namespace YAHOO.tool
++ * @class TestReporter
++ */
++YAHOO.tool.TestReporter = function(url /*:String*/, format /*:Function*/) {
++
++    /**
++     * The URL to submit the data to.
++     * @type String
++     * @property url
++     */
++    this.url /*:String*/ = url;
++
++    /**
++     * The formatting function to call when submitting the data.
++     * @type Function
++     * @property format
++     */
++    this.format /*:Function*/ = format || YAHOO.tool.TestFormat.XML;
++
++    /**
++     * Extra fields to submit with the request.
++     * @type Object
++     * @property _fields
++     * @private
++     */
++    this._fields /*:Object*/ = new Object();
++    
++    /**
++     * The form element used to submit the results.
++     * @type HTMLFormElement
++     * @property _form
++     * @private
++     */
++    this._form /*:HTMLElement*/ = null;
++
++    /**
++     * Iframe used as a target for form submission.
++     * @type HTMLIFrameElement
++     * @property _iframe
++     * @private
++     */
++    this._iframe /*:HTMLElement*/ = null;
++};
++
++YAHOO.tool.TestReporter.prototype = {
++
++    //restore missing constructor
++    constructor: YAHOO.tool.TestReporter,
++    
++    /**
++     * Convert a date into ISO format.
++     * From Douglas Crockford's json2.js
++     * @param {Date} date The date to convert.
++     * @return {String} An ISO-formatted date string
++     * @method _convertToISOString
++     * @private
++     */    
++    _convertToISOString: function(date){
++        function f(n) {
++            // Format integers to have at least two digits.
++            return n < 10 ? '0' + n : n;
++        }
++
++        return date.getUTCFullYear()   + '-' +
++             f(date.getUTCMonth() + 1) + '-' +
++             f(date.getUTCDate())      + 'T' +
++             f(date.getUTCHours())     + ':' +
++             f(date.getUTCMinutes())   + ':' +
++             f(date.getUTCSeconds())   + 'Z';     
++    
++    },
++
++    /**
++     * Adds a field to the form that submits the results.
++     * @param {String} name The name of the field.
++     * @param {Variant} value The value of the field.
++     * @return {Void}
++     * @method addField
++     */
++    addField : function (name /*:String*/, value /*:Variant*/) /*:Void*/{
++        this._fields[name] = value;    
++    },
++    
++    /**
++     * Removes all previous defined fields.
++     * @return {Void}
++     * @method addField
++     */
++    clearFields : function() /*:Void*/{
++        this._fields = new Object();
++    },
++
++    /**
++     * Cleans up the memory associated with the TestReporter, removing DOM elements
++     * that were created.
++     * @return {Void}
++     * @method destroy
++     */
++    destroy : function() /*:Void*/ {
++        if (this._form){
++            this._form.parentNode.removeChild(this._form);
++            this._form = null;
++        }        
++        if (this._iframe){
++            this._iframe.parentNode.removeChild(this._iframe);
++            this._iframe = null;
++        }
++        this._fields = null;
++    },
++
++    /**
++     * Sends the report to the server.
++     * @param {Object} results The results object created by TestRunner.
++     * @return {Void}
++     * @method report
++     */
++    report : function(results /*:Object*/) /*:Void*/{
++    
++        //if the form hasn't been created yet, create it
++        if (!this._form){
++            this._form = document.createElement("form");
++            this._form.method = "post";
++            this._form.style.visibility = "hidden";
++            this._form.style.position = "absolute";
++            this._form.style.top = 0;
++            document.body.appendChild(this._form);
++        
++            //IE won't let you assign a name using the DOM, must do it the hacky way
++            if (YAHOO.env.ua.ie){
++                this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
++            } else {
++                this._iframe = document.createElement("iframe");
++                this._iframe.name = "yuiTestTarget";
++            }
++
++            this._iframe.src = "javascript:false";
++            this._iframe.style.visibility = "hidden";
++            this._iframe.style.position = "absolute";
++            this._iframe.style.top = 0;
++            document.body.appendChild(this._iframe);
++
++            this._form.target = "yuiTestTarget";
++        }
++
++        //set the form's action
++        this._form.action = this.url;
++    
++        //remove any existing fields
++        while(this._form.hasChildNodes()){
++            this._form.removeChild(this._form.lastChild);
++        }
++        
++        //create default fields
++        this._fields.results = this.format(results);
++        this._fields.useragent = navigator.userAgent;
++        this._fields.timestamp = this._convertToISOString(new Date());
++
++        //add fields to the form
++        for (var prop in this._fields){
++            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
++                if (YAHOO.env.ua.ie){
++                    input = document.createElement("<input name=\"" + prop + "\" >");
++                } else {
++                    input = document.createElement("input");
++                    input.name = prop;
++                }
++                input.type = "hidden";
++                input.value = this._fields[prop];
++                this._form.appendChild(input);
++            }
++        }
++
++        //remove default fields
++        delete this._fields.results;
++        delete this._fields.useragent;
++        delete this._fields.timestamp;
++        
++        if (arguments[1] !== false){
++            this._form.submit();
++        }
++    
++    }
++
++};
++YAHOO.register("yuitest", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuitest/yuitest-min.js b/pylons_app/public/js/yui/yuitest/yuitest-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/yuitest-min.js
+@@ -0,0 +1,10 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");(function(){var A=0;YAHOO.tool.TestCase=function(B){this._should={};for(var C in B){this[C]=B[C];}if(!YAHOO.lang.isString(this.name)){this.name="testCase"+(A++);}};YAHOO.tool.TestCase.prototype={resume:function(B){YAHOO.tool.TestRunner.resume(B);},wait:function(D,C){var B=arguments;if(YAHOO.lang.isFunction(B[0])){throw new YAHOO.tool.TestCase.Wait(B[0],B[1]);}else{throw new YAHOO.tool.TestCase.Wait(function(){YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");},(YAHOO.lang.isNumber(B[0])?B[0]:10000));}},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(C,B){this.segment=(YAHOO.lang.isFunction(C)?C:null);this.delay=(YAHOO.lang.isNumber(B)?B:0);};})();YAHOO.namespace("tool");YAHOO.tool.TestSuite=function(A){this.name="";this.items=[];if(YAHOO.lang.isString(A)){this.name=A;}else{if(YAHOO.lang.isObject(A)){YAHOO.lang.augmentObject(this,A,true);}}if(this.name===""){this.name=YAHOO.util.Dom.generateId(null,"testSuite");}};YAHOO.tool.TestSuite.prototype={add:function(A){if(A instanceof YAHOO.tool.TestSuite||A instanceof YAHOO.tool.TestCase){this.items.push(A);}},setUp:function(){},tearDown:function(){}};YAHOO.namespace("tool");YAHOO.tool.TestRunner=(function(){function B(C){this.testObject=C;this.firstChild=null;this.lastChild=null;this.parent=null;this.next=null;this.results={passed:0,failed:0,total:0,ignored:0};if(C instanceof YAHOO.tool.TestSuite){this.results.type="testsuite";this.results.name=C.name;}else{if(C instanceof YAHOO.tool.TestCase){this.results.type="testcase";this.results.name=C.name;}}}B.prototype={appendChild:function(C){var D=new B(C);if(this.firstChild===null){this.firstChild=this.lastChild=D;}else{this.lastChild.next=D;this.lastChild=D;}D.parent=this;return D;}};function A(){A.superclass.constructor.apply(this,arguments);this.masterSuite=new YAHOO.tool.TestSuite("YUI Test Results");this._cur=null;this._root=null;var D=[this.TEST_CASE_BEGIN_EVENT,this.TEST_CASE_COMPLETE_EVENT,this.TEST_SUITE_BEGIN_EVENT,this.TEST_SUITE_COMPLETE_EVENT,this.TEST_PASS_EVENT,this.TEST_FAIL_EVENT,this.TEST_IGNORE_EVENT,this.COMPLETE_EVENT,this.BEGIN_EVENT];for(var C=0;C<D.length;C++){this.createEvent(D[C],{scope:this});}}YAHOO.lang.extend(A,YAHOO.util.EventProvider,{TEST_CASE_BEGIN_EVENT:"testcasebegin",TEST_CASE_COMPLETE_EVENT:"testcasecomplete",TEST_SUITE_BEGIN_EVENT:"testsuitebegin",TEST_SUITE_COMPLETE_EVENT:"testsuitecomplete",TEST_PASS_EVENT:"pass",TEST_FAIL_EVENT:"fail",TEST_IGNORE_EVENT:"ignore",COMPLETE_EVENT:"complete",BEGIN_EVENT:"begin",_addTestCaseToTestTree:function(C,D){var E=C.appendChild(D);for(var F in D){if(F.indexOf("test")===0&&YAHOO.lang.isFunction(D[F])){E.appendChild(F);}}},_addTestSuiteToTestTree:function(C,F){var E=C.appendChild(F);for(var D=0;D<F.items.length;D++){if(F.items[D] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(E,F.items[D]);}else{if(F.items[D] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(E,F.items[D]);}}}},_buildTestTree:function(){this._root=new B(this.masterSuite);this._cur=this._root;for(var C=0;C<this.masterSuite.items.length;C++){if(this.masterSuite.items[C] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(this._root,this.masterSuite.items[C]);}else{if(this.masterSuite.items[C] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(this._root,this.masterSuite.items[C]);}}}},_handleTestObjectComplete:function(C){if(YAHOO.lang.isObject(C.testObject)){C.parent.results.passed+=C.results.passed;C.parent.results.failed+=C.results.failed;C.parent.results.total+=C.results.total;C.parent.results.ignored+=C.results.ignored;C.parent.results[C.testObject.name]=C.results;if(C.testObject instanceof YAHOO.tool.TestSuite){C.testObject.tearDown();this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT,{testSuite:C.testObject,results:C.results});}else{if(C.testObject instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_COMPLETE_EVENT,{testCase:C.testObject,results:C.results});}}}},_next:function(){if(this._cur.firstChild){this._cur=this._cur.firstChild;}else{if(this._cur.next){this._cur=this._cur.next;}else{while(this._cur&&!this._cur.next&&this._cur!==this._root){this._handleTestObjectComplete(this._cur);this._cur=this._cur.parent;}if(this._cur==this._root){this._cur.results.type="report";this._cur.results.timestamp=(new Date()).toLocaleString();this._cur.results.duration=(new Date())-this._cur.results.duration;this.fireEvent(this.COMPLETE_EVENT,{results:this._cur.results});this._cur=null;}else{this._handleTestObjectComplete(this._cur);this._cur=this._cur.next;}}}return this._cur;},_run:function(){var E=false;var D=this._next();if(D!==null){var C=D.testObject;if(YAHOO.lang.isObject(C)){if(C instanceof YAHOO.tool.TestSuite){this.fireEvent(this.TEST_SUITE_BEGIN_EVENT,{testSuite:C});C.setUp();}else{if(C instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_BEGIN_EVENT,{testCase:C});}}if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{this._runTest(D);}}},_resumeTest:function(G){var C=this._cur;var H=C.testObject;var E=C.parent.testObject;if(E.__yui_wait){clearTimeout(E.__yui_wait);delete E.__yui_wait;}var K=(E._should.fail||{})[H];var D=(E._should.error||{})[H];var F=false;var I=null;try{G.apply(E);if(K){I=new YAHOO.util.ShouldFail();F=true;}else{if(D){I=new YAHOO.util.ShouldError();F=true;}}}catch(J){if(J instanceof YAHOO.util.AssertionError){if(!K){I=J;F=true;}}else{if(J instanceof YAHOO.tool.TestCase.Wait){if(YAHOO.lang.isFunction(J.segment)){if(YAHOO.lang.isNumber(J.delay)){if(typeof setTimeout!="undefined"){E.__yui_wait=setTimeout(function(){YAHOO.tool.TestRunner._resumeTest(J.segment);},J.delay);}else{throw new Error("Asynchronous tests not supported in this environment.");}}}return;}else{if(!D){I=new YAHOO.util.UnexpectedError(J);F=true;}else{if(YAHOO.lang.isString(D)){if(J.message!=D){I=new YAHOO.util.UnexpectedError(J);F=true;}}else{if(YAHOO.lang.isFunction(D)){if(!(J instanceof D)){I=new YAHOO.util.UnexpectedError(J);
++F=true;}}else{if(YAHOO.lang.isObject(D)){if(!(J instanceof D.constructor)||J.message!=D.message){I=new YAHOO.util.UnexpectedError(J);F=true;}}}}}}}}if(F){this.fireEvent(this.TEST_FAIL_EVENT,{testCase:E,testName:H,error:I});}else{this.fireEvent(this.TEST_PASS_EVENT,{testCase:E,testName:H});}E.tearDown();C.parent.results[H]={result:F?"fail":"pass",message:I?I.getMessage():"Test passed",type:"test",name:H};if(F){C.parent.results.failed++;}else{C.parent.results.passed++;}C.parent.results.total++;if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}},_runTest:function(F){var C=F.testObject;var D=F.parent.testObject;var G=D[C];var E=(D._should.ignore||{})[C];if(E){F.parent.results[C]={result:"ignore",message:"Test ignored",type:"test",name:C};F.parent.results.ignored++;F.parent.results.total++;this.fireEvent(this.TEST_IGNORE_EVENT,{testCase:D,testName:C});if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{D.setUp();this._resumeTest(G);}},fireEvent:function(C,D){D=D||{};D.type=C;A.superclass.fireEvent.call(this,C,D);},add:function(C){this.masterSuite.add(C);},clear:function(){this.masterSuite.items=[];},resume:function(C){this._resumeTest(C||function(){});},run:function(C){var D=YAHOO.tool.TestRunner;D._buildTestTree();D._root.results.duration=(new Date()).getTime();D.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={_formatMessage:function(B,A){var C=B;if(YAHOO.lang.isString(B)&&B.length>0){return YAHOO.lang.substitute(B,{message:A});}else{return A;}},fail:function(A){throw new YAHOO.util.AssertionError(this._formatMessage(A,"Test force-failed."));},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be equal."),B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be equal."),A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be the same."),A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be the same."),B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be false."),false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be true."),true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be NaN."),NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be NaN."),NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be null."),null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should not be undefined."),undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be null."),null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be undefined."),undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an array."),B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a Boolean."),B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a function."),B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value isn't an instance of expected type."),B,C);}},isNumber:function(B,A){if(!YAHOO.lang.isNumber(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a number."),B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an object."),B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a string."),B);}},isTypeOf:function(B,C,A){if(typeof C!=B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be of type "+B+"."),B,typeof C);}}};YAHOO.util.AssertionError=function(A){this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Object,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();}});YAHOO.util.ComparisonFailure=function(B,A,C){YAHOO.util.AssertionError.call(this,B);this.expected=A;this.actual=C;this.name="ComparisonFailure";};YAHOO.lang.extend(YAHOO.util.ComparisonFailure,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nExpected: "+this.expected+" ("+(typeof this.expected)+")"+"\nActual:"+this.actual+" ("+(typeof this.actual)+")";}});YAHOO.util.UnexpectedValue=function(B,A){YAHOO.util.AssertionError.call(this,B);this.unexpected=A;this.name="UnexpectedValue";};YAHOO.lang.extend(YAHOO.util.UnexpectedValue,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nUnexpected: "+this.unexpected+" ("+(typeof this.unexpected)+") ";}});YAHOO.util.ShouldFail=function(A){YAHOO.util.AssertionError.call(this,A||"This test should fail but didn't.");this.name="ShouldFail";};YAHOO.lang.extend(YAHOO.util.ShouldFail,YAHOO.util.AssertionError);YAHOO.util.ShouldError=function(A){YAHOO.util.AssertionError.call(this,A||"This test should have thrown an error but didn't.");this.name="ShouldError";};YAHOO.lang.extend(YAHOO.util.ShouldError,YAHOO.util.AssertionError);YAHOO.util.UnexpectedError=function(A){YAHOO.util.AssertionError.call(this,"Unexpected error: "+A.message);
++this.cause=A;this.name="UnexpectedError";this.stack=A.stack;};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){F.fail(F._formatMessage(B,"Value "+E+" ("+(typeof E)+") not found in array ["+D+"]."));}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){F.fail(F._formatMessage(B,"No match found in array ["+D+"]."));}},doesNotContain:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},doesNotContainItems:function(C,D,B){for(var A=0;A<C.length;A++){this.doesNotContain(C[A],D,B);}},doesNotContainMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},indexOf:function(E,D,A,C){for(var B=0;B<D.length;B++){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return;}}var F=YAHOO.util.Assert;F.fail(F._formatMessage(C,"Value doesn't exist in array ["+D+"]."));},itemsAreEqual:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areEqual(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not equal."));}},itemsAreEquivalent:function(E,F,B,D){if(typeof B!="function"){throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");}var A=Math.max(E.length,F.length||0);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(D,"Values in position "+C+" are not equivalent."),E[C],F[C]);}}},isEmpty:function(C,A){if(C.length>0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should be empty."));}},isNotEmpty:function(C,A){if(C.length===0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should not be empty."));}},itemsAreSame:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areSame(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not the same."));}},lastIndexOf:function(E,D,A,C){var F=YAHOO.util.Assert;for(var B=D.length;B>=0;B--){if(D[B]===E){F.areEqual(A,B,F._formatMessage(C,"Value exists at index "+B+" but should be at index "+A+"."));return;}}F.fail(F._formatMessage(C,"Value doesn't exist in array."));}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,G,C){var F=YAHOO.util.Assert;var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){F.isNotUndefined(G[B[A]],F._formatMessage(C,"Property '"+B[A]+"' expected."));}},hasProperty:function(A,B,C){if(!(A in B)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object."));}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object instance."));}}};YAHOO.util.DateAssert={datesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getFullYear(),D.getFullYear(),C._formatMessage(A,"Years should be equal."));C.areEqual(B.getMonth(),D.getMonth(),C._formatMessage(A,"Months should be equal."));C.areEqual(B.getDate(),D.getDate(),C._formatMessage(A,"Day of month should be equal."));}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getHours(),D.getHours(),C._formatMessage(A,"Hours should be equal."));C.areEqual(B.getMinutes(),D.getMinutes(),C._formatMessage(A,"Minutes should be equal."));C.areEqual(B.getSeconds(),D.getSeconds(),C._formatMessage(A,"Seconds should be equal."));}else{throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");}}};YAHOO.namespace("tool");YAHOO.tool.TestManager={TEST_PAGE_BEGIN_EVENT:"testpagebegin",TEST_PAGE_COMPLETE_EVENT:"testpagecomplete",TEST_MANAGER_BEGIN_EVENT:"testmanagerbegin",TEST_MANAGER_COMPLETE_EVENT:"testmanagercomplete",_curPage:null,_frame:null,_logger:null,_timeoutId:0,_pages:[],_results:null,_handleTestRunnerComplete:function(A){this.fireEvent(this.TEST_PAGE_COMPLETE_EVENT,{page:this._curPage,results:A.results});this._processResults(this._curPage,A.results);this._logger.clearTestRunner();if(this._pages.length){this._timeoutId=setTimeout(function(){YAHOO.tool.TestManager._run();},1000);}else{this.fireEvent(this.TEST_MANAGER_COMPLETE_EVENT,this._results);}},_processResults:function(C,A){var B=this._results;B.passed+=A.passed;B.failed+=A.failed;B.ignored+=A.ignored;B.total+=A.total;B.duration+=A.duration;if(A.failed){B.failedPages.push(C);}else{B.passedPages.push(C);}A.name=C;A.type="page";B[C]=A;},_run:function(){this._curPage=this._pages.shift();this.fireEvent(this.TEST_PAGE_BEGIN_EVENT,this._curPage);this._frame.location.replace(this._curPage);},load:function(){if(parent.YAHOO.tool.TestManager!==this){parent.YAHOO.tool.TestManager.load();}else{if(this._frame){var A=this._frame.YAHOO.tool.TestRunner;this._logger.setTestRunner(A);A.subscribe(A.COMPLETE_EVENT,this._handleTestRunnerComplete,this,true);A.run();}}},setPages:function(A){this._pages=A;},start:function(){if(!this._initialized){this.createEvent(this.TEST_PAGE_BEGIN_EVENT);this.createEvent(this.TEST_PAGE_COMPLETE_EVENT);this.createEvent(this.TEST_MANAGER_BEGIN_EVENT);this.createEvent(this.TEST_MANAGER_COMPLETE_EVENT);
++if(!this._frame){var A=document.createElement("iframe");A.style.visibility="hidden";A.style.position="absolute";document.body.appendChild(A);this._frame=A.contentWindow||A.contentDocument.parentWindow;}if(!this._logger){this._logger=new YAHOO.tool.TestLogger();}this._initialized=true;}this._results={passed:0,failed:0,ignored:0,total:0,type:"report",name:"YUI Test Results",duration:0,failedPages:[],passedPages:[]};this.fireEvent(this.TEST_MANAGER_BEGIN_EVENT,null);this._run();},stop:function(){clearTimeout(this._timeoutId);}};YAHOO.lang.augmentObject(YAHOO.tool.TestManager,YAHOO.util.EventProvider.prototype);YAHOO.namespace("tool");YAHOO.tool.TestLogger=function(B,A){YAHOO.tool.TestLogger.superclass.constructor.call(this,B,A);this.init();};YAHOO.lang.extend(YAHOO.tool.TestLogger,YAHOO.widget.LogReader,{footerEnabled:true,newestOnTop:false,formatMsg:function(B){var A=B.category;var C=this.html2Text(B.msg);return'<pre><p><span class="'+A+'">'+A.toUpperCase()+"</span> "+C+"</p></pre>";},init:function(){if(YAHOO.tool.TestRunner){this.setTestRunner(YAHOO.tool.TestRunner);}this.hideSource("global");this.hideSource("LogReader");this.hideCategory("warn");this.hideCategory("window");this.hideCategory("time");this.clearConsole();},clearTestRunner:function(){if(this._runner){this._runner.unsubscribeAll();this._runner=null;}},setTestRunner:function(A){if(this._runner){this.clearTestRunner();}this._runner=A;A.subscribe(A.TEST_PASS_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_FAIL_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_IGNORE_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.BEGIN_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.COMPLETE_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_SUITE_BEGIN_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_SUITE_COMPLETE_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_CASE_BEGIN_EVENT,this._handleTestRunnerEvent,this,true);A.subscribe(A.TEST_CASE_COMPLETE_EVENT,this._handleTestRunnerEvent,this,true);},_handleTestRunnerEvent:function(D){var A=YAHOO.tool.TestRunner;var C="";var B="";switch(D.type){case A.BEGIN_EVENT:C="Testing began at "+(new Date()).toString()+".";B="info";break;case A.COMPLETE_EVENT:C="Testing completed at "+(new Date()).toString()+".\nPassed:"+D.results.passed+" Failed:"+D.results.failed+" Total:"+D.results.total;B="info";break;case A.TEST_FAIL_EVENT:C=D.testName+": "+D.error.getMessage();B="fail";break;case A.TEST_IGNORE_EVENT:C=D.testName+": ignored.";B="ignore";break;case A.TEST_PASS_EVENT:C=D.testName+": passed.";B="pass";break;case A.TEST_SUITE_BEGIN_EVENT:C='Test suite "'+D.testSuite.name+'" started.';B="info";break;case A.TEST_SUITE_COMPLETE_EVENT:C='Test suite "'+D.testSuite.name+'" completed.\nPassed:'+D.results.passed+" Failed:"+D.results.failed+" Total:"+D.results.total;B="info";break;case A.TEST_CASE_BEGIN_EVENT:C='Test case "'+D.testCase.name+'" started.';B="info";break;case A.TEST_CASE_COMPLETE_EVENT:C='Test case "'+D.testCase.name+'" completed.\nPassed:'+D.results.passed+" Failed:"+D.results.failed+" Total:"+D.results.total;B="info";break;default:C="Unexpected event "+D.type;C="info";}YAHOO.log(C,B,"TestRunner");}});YAHOO.namespace("tool.TestFormat");YAHOO.tool.TestFormat.JSON=function(A){return YAHOO.lang.JSON.stringify(A);};YAHOO.tool.TestFormat.XML=function(C){var A=YAHOO.lang;var B="<"+C.type+' name="'+C.name.replace(/"/g,"&quot;").replace(/'/g,"&apos;")+'"';if(A.isNumber(C.duration)){B+=' duration="'+C.duration+'"';}if(C.type=="test"){B+=' result="'+C.result+'" message="'+C.message+'">';}else{B+=' passed="'+C.passed+'" failed="'+C.failed+'" ignored="'+C.ignored+'" total="'+C.total+'">';for(var D in C){if(A.hasOwnProperty(C,D)&&A.isObject(C[D])&&!A.isArray(C[D])){B+=arguments.callee(C[D]);}}}B+="</"+C.type+">";return B;};YAHOO.namespace("tool");YAHOO.tool.TestReporter=function(A,B){this.url=A;this.format=B||YAHOO.tool.TestFormat.XML;this._fields=new Object();this._form=null;this._iframe=null;};YAHOO.tool.TestReporter.prototype={constructor:YAHOO.tool.TestReporter,_convertToISOString:function(A){function B(C){return C<10?"0"+C:C;}return A.getUTCFullYear()+"-"+B(A.getUTCMonth()+1)+"-"+B(A.getUTCDate())+"T"+B(A.getUTCHours())+":"+B(A.getUTCMinutes())+":"+B(A.getUTCSeconds())+"Z";},addField:function(A,B){this._fields[A]=B;},clearFields:function(){this._fields=new Object();},destroy:function(){if(this._form){this._form.parentNode.removeChild(this._form);this._form=null;}if(this._iframe){this._iframe.parentNode.removeChild(this._iframe);this._iframe=null;}this._fields=null;},report:function(A){if(!this._form){this._form=document.createElement("form");this._form.method="post";this._form.style.visibility="hidden";this._form.style.position="absolute";this._form.style.top=0;document.body.appendChild(this._form);if(YAHOO.env.ua.ie){this._iframe=document.createElement('<iframe name="yuiTestTarget" />');}else{this._iframe=document.createElement("iframe");this._iframe.name="yuiTestTarget";}this._iframe.src="javascript:false";this._iframe.style.visibility="hidden";this._iframe.style.position="absolute";this._iframe.style.top=0;document.body.appendChild(this._iframe);this._form.target="yuiTestTarget";}this._form.action=this.url;while(this._form.hasChildNodes()){this._form.removeChild(this._form.lastChild);}this._fields.results=this.format(A);this._fields.useragent=navigator.userAgent;this._fields.timestamp=this._convertToISOString(new Date());for(var B in this._fields){if(YAHOO.lang.hasOwnProperty(this._fields,B)&&typeof this._fields[B]!="function"){if(YAHOO.env.ua.ie){input=document.createElement('<input name="'+B+'" >');}else{input=document.createElement("input");input.name=B;}input.type="hidden";input.value=this._fields[B];this._form.appendChild(input);}}delete this._fields.results;delete this._fields.useragent;delete this._fields.timestamp;if(arguments[1]!==false){this._form.submit();}}};YAHOO.register("yuitest",YAHOO.tool.TestRunner,{version:"2.8.0r4",build:"2449"});
+diff --git a/pylons_app/public/js/yui/yuitest/yuitest.js b/pylons_app/public/js/yui/yuitest/yuitest.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/yuitest.js
+@@ -0,0 +1,2741 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestCase object
++//-----------------------------------------------------------------------------
++(function(){
++    
++    //used for autogenerating test case names
++    var tempId = 0;
++    
++    /**
++     * Test case containing various tests to run.
++     * @param template An object containing any number of test methods, other methods,
++     *                 an optional name, and anything else the test case needs.
++     * @class TestCase
++     * @namespace YAHOO.tool
++     * @constructor
++     */
++    YAHOO.tool.TestCase = function (template /*:Object*/) {
++        
++        /**
++         * Special rules for the test case. Possible subobjects
++         * are fail, for tests that should fail, and error, for
++         * tests that should throw an error.
++         */
++        this._should /*:Object*/ = {};
++        
++        //copy over all properties from the template to this object
++        for (var prop in template) {
++            this[prop] = template[prop];
++        }    
++        
++        //check for a valid name
++        if (!YAHOO.lang.isString(this.name)){
++            /**
++             * Name for the test case.
++             */
++            this.name /*:String*/ = "testCase" + (tempId++);
++        }
++    
++    };
++    
++    
++    YAHOO.tool.TestCase.prototype = {  
++    
++        /**
++         * Resumes a paused test and runs the given function.
++         * @param {Function} segment (Optional) The function to run.
++         *      If omitted, the test automatically passes.
++         * @return {Void}
++         * @method resume
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            YAHOO.tool.TestRunner.resume(segment);
++        },
++    
++        /**
++         * Causes the test case to wait a specified amount of time and then
++         * continue executing the given code.
++         * @param {Function} segment (Optional) The function to run after the delay.
++         *      If omitted, the TestRunner will wait until resume() is called.
++         * @param {int} delay (Optional) The number of milliseconds to wait before running
++         *      the function. If omitted, defaults to zero.
++         * @return {Void}
++         * @method wait
++         */
++        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
++            var args = arguments;
++            if (YAHOO.lang.isFunction(args[0])){
++                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
++            } else {
++                throw new YAHOO.tool.TestCase.Wait(function(){
++                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
++                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
++            }            
++        },
++    
++        //-------------------------------------------------------------------------
++        // Stub Methods
++        //-------------------------------------------------------------------------
++    
++        /**
++         * Function to run before each test is executed.
++         * @return {Void}
++         * @method setUp
++         */
++        setUp : function () /*:Void*/ {
++        },
++        
++        /**
++         * Function to run after each test is executed.
++         * @return {Void}
++         * @method tearDown
++         */
++        tearDown: function () /*:Void*/ {    
++        }
++    };
++    
++    /**
++     * Represents a stoppage in test execution to wait for an amount of time before
++     * continuing.
++     * @param {Function} segment A function to run when the wait is over.
++     * @param {int} delay The number of milliseconds to wait before running the code.
++     * @class Wait
++     * @namespace YAHOO.tool.TestCase
++     * @constructor
++     *
++     */
++    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
++        
++        /**
++         * The segment of code to run when the wait is over.
++         * @type Function
++         * @property segment
++         */
++        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
++    
++        /**
++         * The delay before running the segment of code.
++         * @type int
++         * @property delay
++         */
++        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
++    
++    };
++
++})();
++YAHOO.namespace("tool");
++
++
++//-----------------------------------------------------------------------------
++// TestSuite object
++//-----------------------------------------------------------------------------
++
++/**
++ * A test suite that can contain a collection of TestCase and TestSuite objects.
++ * @param {String||Object} data The name of the test suite or an object containing
++ *      a name property as well as setUp and tearDown methods.
++ * @namespace YAHOO.tool
++ * @class TestSuite
++ * @constructor
++ */
++YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
++
++    /**
++     * The name of the test suite.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "";
++
++    /**
++     * Array of test suites and
++     * @private
++     */
++    this.items /*:Array*/ = [];
++
++    //initialize the properties
++    if (YAHOO.lang.isString(data)){
++        this.name = data;
++    } else if (YAHOO.lang.isObject(data)){
++        YAHOO.lang.augmentObject(this, data, true);
++    }
++
++    //double-check name
++    if (this.name === ""){
++        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
++    }
++
++};
++
++YAHOO.tool.TestSuite.prototype = {
++    
++    /**
++     * Adds a test suite or test case to the test suite.
++     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
++     * @return {Void}
++     * @method add
++     */
++    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
++            this.items.push(testObject);
++        }
++    },
++    
++    //-------------------------------------------------------------------------
++    // Stub Methods
++    //-------------------------------------------------------------------------
++
++    /**
++     * Function to run before each test is executed.
++     * @return {Void}
++     * @method setUp
++     */
++    setUp : function () /*:Void*/ {
++    },
++    
++    /**
++     * Function to run after each test is executed.
++     * @return {Void}
++     * @method tearDown
++     */
++    tearDown: function () /*:Void*/ {
++    }
++    
++};
++YAHOO.namespace("tool");
++
++/**
++ * The YUI test tool
++ * @module yuitest
++ * @namespace YAHOO.tool
++ * @requires yahoo,dom,event,logger
++ * @optional event-simulte
++ */
++
++
++//-----------------------------------------------------------------------------
++// TestRunner object
++//-----------------------------------------------------------------------------
++
++
++YAHOO.tool.TestRunner = (function(){
++
++    /**
++     * A node in the test tree structure. May represent a TestSuite, TestCase, or
++     * test function.
++     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++     * @class TestNode
++     * @constructor
++     * @private
++     */
++    function TestNode(testObject /*:Variant*/){
++    
++        /**
++         * The TestSuite, TestCase, or test function represented by this node.
++         * @type Variant
++         * @property testObject
++         */
++        this.testObject = testObject;
++        
++        /**
++         * Pointer to this node's first child.
++         * @type TestNode
++         * @property firstChild
++         */        
++        this.firstChild /*:TestNode*/ = null;
++        
++        /**
++         * Pointer to this node's last child.
++         * @type TestNode
++         * @property lastChild
++         */        
++        this.lastChild = null;
++        
++        /**
++         * Pointer to this node's parent.
++         * @type TestNode
++         * @property parent
++         */        
++        this.parent = null; 
++   
++        /**
++         * Pointer to this node's next sibling.
++         * @type TestNode
++         * @property next
++         */        
++        this.next = null;
++        
++        /**
++         * Test results for this test object.
++         * @type object
++         * @property results
++         */                
++        this.results /*:Object*/ = {
++            passed : 0,
++            failed : 0,
++            total : 0,
++            ignored : 0
++        };
++        
++        //initialize results
++        if (testObject instanceof YAHOO.tool.TestSuite){
++            this.results.type = "testsuite";
++            this.results.name = testObject.name;
++        } else if (testObject instanceof YAHOO.tool.TestCase){
++            this.results.type = "testcase";
++            this.results.name = testObject.name;
++        }
++       
++    }
++    
++    TestNode.prototype = {
++    
++        /**
++         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
++         * of this node.
++         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++         * @return {Void}
++         */
++        appendChild : function (testObject /*:Variant*/) /*:Void*/{
++            var node = new TestNode(testObject);
++            if (this.firstChild === null){
++                this.firstChild = this.lastChild = node;
++            } else {
++                this.lastChild.next = node;
++                this.lastChild = node;
++            }
++            node.parent = this;
++            return node;
++        }       
++    };
++
++    /**
++     * Runs test suites and test cases, providing events to allowing for the
++     * interpretation of test results.
++     * @namespace YAHOO.tool
++     * @class TestRunner
++     * @static
++     */
++    function TestRunner(){
++    
++        //inherit from EventProvider
++        TestRunner.superclass.constructor.apply(this,arguments);
++        
++        /**
++         * Suite on which to attach all TestSuites and TestCases to be run.
++         * @type YAHOO.tool.TestSuite
++         * @property masterSuite
++         * @private
++         * @static
++         */
++        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
++
++        /**
++         * Pointer to the current node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _cur
++         * @static
++         */
++        this._cur = null;
++        
++        /**
++         * Pointer to the root node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _root
++         * @static
++         */
++        this._root = null;
++        
++        //create events
++        var events /*:Array*/ = [
++            this.TEST_CASE_BEGIN_EVENT,
++            this.TEST_CASE_COMPLETE_EVENT,
++            this.TEST_SUITE_BEGIN_EVENT,
++            this.TEST_SUITE_COMPLETE_EVENT,
++            this.TEST_PASS_EVENT,
++            this.TEST_FAIL_EVENT,
++            this.TEST_IGNORE_EVENT,
++            this.COMPLETE_EVENT,
++            this.BEGIN_EVENT
++        ];
++        for (var i=0; i < events.length; i++){
++            this.createEvent(events[i], { scope: this });
++        }       
++   
++    }
++    
++    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
++    
++        //-------------------------------------------------------------------------
++        // Constants
++        //-------------------------------------------------------------------------
++         
++        /**
++         * Fires when a test case is opened but before the first 
++         * test is executed.
++         * @event testcasebegin
++         */         
++        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
++        
++        /**
++         * Fires when all tests in a test case have been executed.
++         * @event testcasecomplete
++         */        
++        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
++        
++        /**
++         * Fires when a test suite is opened but before the first 
++         * test is executed.
++         * @event testsuitebegin
++         */        
++        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
++        
++        /**
++         * Fires when all test cases in a test suite have been
++         * completed.
++         * @event testsuitecomplete
++         */        
++        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
++        
++        /**
++         * Fires when a test has passed.
++         * @event pass
++         */        
++        TEST_PASS_EVENT /*:String*/ : "pass",
++        
++        /**
++         * Fires when a test has failed.
++         * @event fail
++         */        
++        TEST_FAIL_EVENT /*:String*/ : "fail",
++        
++        /**
++         * Fires when a test has been ignored.
++         * @event ignore
++         */        
++        TEST_IGNORE_EVENT /*:String*/ : "ignore",
++        
++        /**
++         * Fires when all test suites and test cases have been completed.
++         * @event complete
++         */        
++        COMPLETE_EVENT /*:String*/ : "complete",
++        
++        /**
++         * Fires when the run() method is called.
++         * @event begin
++         */        
++        BEGIN_EVENT /*:String*/ : "begin",    
++        
++        //-------------------------------------------------------------------------
++        // Test Tree-Related Methods
++        //-------------------------------------------------------------------------
++
++        /**
++         * Adds a test case to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test case to as a child.
++         * @param {YAHOO.tool.TestCase} testCase The test case to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestCaseToTestTree
++         */
++       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
++            
++            //add the test suite
++            var node = parentNode.appendChild(testCase);
++            
++            //iterate over the items in the test case
++            for (var prop in testCase){
++                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
++                    node.appendChild(prop);
++                }
++            }
++         
++        },
++        
++        /**
++         * Adds a test suite to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test suite to as a child.
++         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestSuiteToTestTree
++         */
++        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++            
++            //add the test suite
++            var node = parentNode.appendChild(testSuite);
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < testSuite.items.length; i++){
++                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
++                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(node, testSuite.items[i]);
++                }                   
++            }            
++        },
++        
++        /**
++         * Builds the test tree based on items in the master suite. The tree is a hierarchical
++         * representation of the test suites, test cases, and test functions. The resulting tree
++         * is stored in _root and the pointer _cur is set to the root initially.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _buildTestTree
++         */
++        _buildTestTree : function () /*:Void*/ {
++        
++            this._root = new TestNode(this.masterSuite);
++            this._cur = this._root;
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < this.masterSuite.items.length; i++){
++                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
++                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
++                }                   
++            }            
++        
++        }, 
++    
++        //-------------------------------------------------------------------------
++        // Private Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Handles the completion of a test object's tests. Tallies test results 
++         * from one level up to the next.
++         * @param {TestNode} node The TestNode representing the test object.
++         * @return {Void}
++         * @method _handleTestObjectComplete
++         * @private
++         * @static
++         */
++        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
++            if (YAHOO.lang.isObject(node.testObject)){
++                node.parent.results.passed += node.results.passed;
++                node.parent.results.failed += node.results.failed;
++                node.parent.results.total += node.results.total;                
++                node.parent.results.ignored += node.results.ignored;                
++                node.parent.results[node.testObject.name] = node.results;
++            
++                if (node.testObject instanceof YAHOO.tool.TestSuite){
++                    node.testObject.tearDown();
++                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
++                } else if (node.testObject instanceof YAHOO.tool.TestCase){
++                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
++                }      
++            } 
++        },                
++        
++        //-------------------------------------------------------------------------
++        // Navigation Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Retrieves the next node in the test tree.
++         * @return {TestNode} The next node in the test tree or null if the end is reached.
++         * @private
++         * @static
++         * @method _next
++         */
++        _next : function () /*:TestNode*/ {
++        
++            if (this._cur.firstChild) {
++                this._cur = this._cur.firstChild;
++            } else if (this._cur.next) {
++                this._cur = this._cur.next;            
++            } else {
++                while (this._cur && !this._cur.next && this._cur !== this._root){
++                    this._handleTestObjectComplete(this._cur);
++                    this._cur = this._cur.parent;
++                }
++                
++                if (this._cur == this._root){
++                    this._cur.results.type = "report";
++                    this._cur.results.timestamp = (new Date()).toLocaleString();
++                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
++                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
++                    this._cur = null;
++                } else {
++                    this._handleTestObjectComplete(this._cur);               
++                    this._cur = this._cur.next;                
++                }
++            }
++        
++            return this._cur;
++        },
++        
++        /**
++         * Runs a test case or test suite, returning the results.
++         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
++         * @return {Object} Results of the execution with properties passed, failed, and total.
++         * @private
++         * @method _run
++         * @static
++         */
++        _run : function () /*:Void*/ {
++        
++            //flag to indicate if the TestRunner should wait before continuing
++            var shouldWait /*:Boolean*/ = false;
++            
++            //get the next test node
++            var node = this._next();
++            
++            if (node !== null) {
++                var testObject = node.testObject;
++                
++                //figure out what to do
++                if (YAHOO.lang.isObject(testObject)){
++                    if (testObject instanceof YAHOO.tool.TestSuite){
++                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
++                        testObject.setUp();
++                    } else if (testObject instanceof YAHOO.tool.TestCase){
++                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
++                    }
++                    
++                    //some environments don't support setTimeout
++                    if (typeof setTimeout != "undefined"){                    
++                        setTimeout(function(){
++                            YAHOO.tool.TestRunner._run();
++                        }, 0);
++                    } else {
++                        this._run();
++                    }
++                } else {
++                    this._runTest(node);
++                }
++
++            }
++        },
++        
++        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
++        
++            //get relevant information
++            var node /*:TestNode*/ = this._cur;
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            
++            //cancel other waits if available
++            if (testCase.__yui_wait){
++                clearTimeout(testCase.__yui_wait);
++                delete testCase.__yui_wait;
++            }            
++            
++            //get the "should" test cases
++            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
++            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
++            
++            //variable to hold whether or not the test failed
++            var failed /*:Boolean*/ = false;
++            var error /*:Error*/ = null;
++                
++            //try the test
++            try {
++            
++                //run the test
++                segment.apply(testCase);
++                
++                //if it should fail, and it got here, then it's a fail because it didn't
++                if (shouldFail){
++                    error = new YAHOO.util.ShouldFail();
++                    failed = true;
++                } else if (shouldError){
++                    error = new YAHOO.util.ShouldError();
++                    failed = true;
++                }
++                           
++            } catch (thrown /*:Error*/){
++                if (thrown instanceof YAHOO.util.AssertionError) {
++                    if (!shouldFail){
++                        error = thrown;
++                        failed = true;
++                    }
++                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
++                
++                    if (YAHOO.lang.isFunction(thrown.segment)){
++                        if (YAHOO.lang.isNumber(thrown.delay)){
++                        
++                            //some environments don't support setTimeout
++                            if (typeof setTimeout != "undefined"){
++                                testCase.__yui_wait = setTimeout(function(){
++                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
++                                }, thrown.delay);                             
++                            } else {
++                                throw new Error("Asynchronous tests not supported in this environment.");
++                            }
++                        }
++                    }
++                    
++                    return;
++                
++                } else {
++                    //first check to see if it should error
++                    if (!shouldError) {                        
++                        error = new YAHOO.util.UnexpectedError(thrown);
++                        failed = true;
++                    } else {
++                        //check to see what type of data we have
++                        if (YAHOO.lang.isString(shouldError)){
++                            
++                            //if it's a string, check the error message
++                            if (thrown.message != shouldError){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        } else if (YAHOO.lang.isFunction(shouldError)){
++                        
++                            //if it's a function, see if the error is an instance of it
++                            if (!(thrown instanceof shouldError)){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;
++                            }
++                        
++                        } else if (YAHOO.lang.isObject(shouldError)){
++                        
++                            //if it's an object, check the instance and message
++                            if (!(thrown instanceof shouldError.constructor) || 
++                                    thrown.message != shouldError.message){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        
++                        }
++                    
++                    }
++                }
++                
++            }
++            
++            //fireEvent appropriate event
++            if (failed) {
++                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
++            } else {
++                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
++            }
++            
++            //run the tear down
++            testCase.tearDown();
++            
++            //update results
++            node.parent.results[testName] = { 
++                result: failed ? "fail" : "pass",
++                message: error ? error.getMessage() : "Test passed",
++                type: "test",
++                name: testName
++            };
++            
++            if (failed){
++                node.parent.results.failed++;
++            } else {
++                node.parent.results.passed++;
++            }
++            node.parent.results.total++;
++
++            //set timeout not supported in all environments
++            if (typeof setTimeout != "undefined"){
++                setTimeout(function(){
++                    YAHOO.tool.TestRunner._run();
++                }, 0);
++            } else {
++                this._run();
++            }
++        
++        },
++                
++        /**
++         * Runs a single test based on the data provided in the node.
++         * @param {TestNode} node The TestNode representing the test to run.
++         * @return {Void}
++         * @static
++         * @private
++         * @name _runTest
++         */
++        _runTest : function (node /*:TestNode*/) /*:Void*/ {
++        
++            //get relevant information
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            var test /*:Function*/ = testCase[testName];
++            
++            //get the "should" test cases
++            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
++            
++            //figure out if the test should be ignored or not
++            if (shouldIgnore){
++            
++                //update results
++                node.parent.results[testName] = { 
++                    result: "ignore",
++                    message: "Test ignored",
++                    type: "test",
++                    name: testName
++                };
++                
++                node.parent.results.ignored++;
++                node.parent.results.total++;
++            
++                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
++                
++                //some environments don't support setTimeout
++                if (typeof setTimeout != "undefined"){                    
++                    setTimeout(function(){
++                        YAHOO.tool.TestRunner._run();
++                    }, 0);              
++                } else {
++                    this._run();
++                }
++
++            } else {
++            
++                //run the setup
++                testCase.setUp();
++                
++                //now call the body of the test
++                this._resumeTest(test);                
++            }
++
++        },        
++        
++        //-------------------------------------------------------------------------
++        // Protected Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Fires events for the TestRunner. This overrides the default fireEvent()
++         * method from EventProvider to add the type property to the data that is
++         * passed through on each event call.
++         * @param {String} type The type of event to fire.
++         * @param {Object} data (Optional) Data for the event.
++         * @method fireEvent
++         * @static
++         * @protected
++         */
++        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
++            data = data || {};
++            data.type = type;
++            TestRunner.superclass.fireEvent.call(this, type, data);
++        },
++        
++        //-------------------------------------------------------------------------
++        // Public Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Adds a test suite or test case to the list of test objects to run.
++         * @param testObject Either a TestCase or a TestSuite that should be run.
++         * @return {Void}
++         * @method add
++         * @static
++         */
++        add : function (testObject /*:Object*/) /*:Void*/ {
++            this.masterSuite.add(testObject);
++        },
++        
++        /**
++         * Removes all test objects from the runner.
++         * @return {Void}
++         * @method clear
++         * @static
++         */
++        clear : function () /*:Void*/ {
++            this.masterSuite.items = [];
++        },
++        
++        /**
++         * Resumes the TestRunner after wait() was called.
++         * @param {Function} segment The function to run as the rest
++         *      of the haulted test.
++         * @return {Void}
++         * @method resume
++         * @static
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            this._resumeTest(segment || function(){});
++        },
++    
++        /**
++         * Runs the test suite.
++         * @return {Void}
++         * @method run
++         * @static
++         */
++        run : function (testObject /*:Object*/) /*:Void*/ {
++            
++            //pointer to runner to avoid scope issues 
++            var runner = YAHOO.tool.TestRunner;
++
++            //build the test tree
++            runner._buildTestTree();
++            
++            //set when the test started
++            runner._root.results.duration = (new Date()).getTime();
++            
++            //fire the begin event
++            runner.fireEvent(runner.BEGIN_EVENT);
++       
++            //begin the testing
++            runner._run();
++        }    
++    });
++    
++    return new TestRunner();
++    
++})();
++YAHOO.namespace("util");
++
++//-----------------------------------------------------------------------------
++// Assert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The Assert object provides functions to test JavaScript values against
++ * known and expected results. Whenever a comparison (assertion) fails,
++ * an error is thrown.
++ *
++ * @namespace YAHOO.util
++ * @class Assert
++ * @static
++ */
++YAHOO.util.Assert = {
++
++    //-------------------------------------------------------------------------
++    // Helper Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Formats a message so that it can contain the original assertion message
++     * in addition to the custom message.
++     * @param {String} customMessage The message passed in by the developer.
++     * @param {String} defaultMessage The message created by the error by default.
++     * @return {String} The final error message, containing either or both.
++     * @protected
++     * @static
++     * @method _formatMessage
++     */
++    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
++        var message = customMessage;
++        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
++            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
++        } else {
++            return defaultMessage;
++        }        
++    },
++    
++    //-------------------------------------------------------------------------
++    // Generic Assertion Methods
++    //-------------------------------------------------------------------------
++    
++    /** 
++     * Forces an assertion error to occur.
++     * @param {String} message (Optional) The message to display with the failure.
++     * @method fail
++     * @static
++     */
++    fail : function (message /*:String*/) /*:Void*/ {
++        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
++    },       
++    
++    //-------------------------------------------------------------------------
++    // Equality Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areEqual
++     * @static
++     */
++    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected != actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotEqual
++     * @static
++     */
++    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
++                         message /*:String*/) /*:Void*/ {
++        if (unexpected == actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotSame
++     * @static
++     */
++    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (unexpected === actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
++        }
++    },
++
++    /**
++     * Asserts that a value is the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areSame
++     * @static
++     */
++    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
++        }
++    },    
++    
++    //-------------------------------------------------------------------------
++    // Boolean Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is false. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFalse
++     * @static
++     */
++    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
++        if (false !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is true. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTrue
++     * @static
++     */
++    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
++        if (true !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
++        }
++
++    },
++    
++    //-------------------------------------------------------------------------
++    // Special Value Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is not a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNaN
++     * @static
++     */
++    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (!isNaN(actual)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not the special NaN value.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNaN
++     * @static
++     */
++    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (isNaN(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNull
++     * @static
++     */
++    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
++        }
++    },
++
++    /**
++     * Asserts that a value is not undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotUndefined
++     * @static
++     */
++    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
++        }
++    },
++
++    /**
++     * Asserts that a value is null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNull
++     * @static
++     */
++    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
++        }
++    },
++        
++    /**
++     * Asserts that a value is undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isUndefined
++     * @static
++     */
++    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
++        }
++    },    
++    
++    //--------------------------------------------------------------------------
++    // Instance Assertion Methods
++    //--------------------------------------------------------------------------    
++   
++    /**
++     * Asserts that a value is an array.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isArray
++     * @static
++     */
++    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isArray(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a Boolean.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isBoolean
++     * @static
++     */
++    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isBoolean(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a function.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFunction
++     * @static
++     */
++    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isFunction(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is an instance of a particular object. This may return
++     * incorrect results when comparing objects from one frame to constructors in
++     * another frame. For best results, don't use in a cross-frame manner.
++     * @param {Function} expected The function that the object should be an instance of.
++     * @param {Object} actual The object to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isInstanceOf
++     * @static
++     */
++    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(actual instanceof expected)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNumber
++     * @static
++     */
++    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNumber(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
++        }    
++    },    
++    
++    /**
++     * Asserts that a value is an object.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isObject
++     * @static
++     */
++    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isObject(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a string.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isString
++     * @static
++     */
++    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isString(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is of a particular type. 
++     * @param {String} expectedType The expected type of the variable.
++     * @param {Object} actualValue The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTypeOf
++     * @static
++     */
++    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (typeof actual != expected){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
++        }
++    }
++};
++
++//-----------------------------------------------------------------------------
++// Assertion errors
++//-----------------------------------------------------------------------------
++
++/**
++ * AssertionError is thrown whenever an assertion fails. It provides methods
++ * to more easily get at error information and also provides a base class
++ * from which more specific assertion errors can be derived.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @class AssertionError
++ * @extends Error
++ * @constructor
++ */ 
++YAHOO.util.AssertionError = function (message /*:String*/){
++
++    //call superclass
++    //arguments.callee.superclass.constructor.call(this, message);
++    
++    /*
++     * Error message. Must be duplicated to ensure browser receives it.
++     * @type String
++     * @property message
++     */
++    this.message /*:String*/ = message;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "AssertionError";
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This should
++     * be overridden by all subclasses to provide specific information.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message;
++    },
++    
++    /**
++     * Returns a string representation of the error.
++     * @method toString
++     * @return {String} A string representation of the error.
++     */
++    toString : function () /*:String*/ {
++        return this.name + ": " + this.getMessage();
++    }
++    
++});
++
++/**
++ * ComparisonFailure is subclass of AssertionError that is thrown whenever
++ * a comparison between two values fails. It provides mechanisms to retrieve
++ * both the expected and actual value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} expected The expected value.
++ * @param {Object} actual The actual value that caused the assertion to fail.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ComparisonFailure
++ * @constructor
++ */ 
++YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The expected value.
++     * @type Object
++     * @property expected
++     */
++    this.expected /*:Object*/ = expected;
++    
++    /**
++     * The actual value.
++     * @type Object
++     * @property actual
++     */
++    this.actual /*:Object*/ = actual;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ComparisonFailure";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This message
++     * provides information about the expected and actual values.
++     * @method toString
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
++            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
++    }
++
++});
++
++/**
++ * UnexpectedValue is subclass of AssertionError that is thrown whenever
++ * a value was unexpected in its scope. This typically means that a test
++ * was performed to determine that a value was *not* equal to a certain
++ * value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} unexpected The unexpected value.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedValue
++ * @constructor
++ */ 
++YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The unexpected value.
++     * @type Object
++     * @property unexpected
++     */
++    this.unexpected /*:Object*/ = unexpected;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedValue";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. The message
++     * contains information about the unexpected value that was encountered.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
++    }
++
++});
++
++/**
++ * ShouldFail is subclass of AssertionError that is thrown whenever
++ * a test was expected to fail but did not.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldFail
++ * @constructor
++ */  
++YAHOO.util.ShouldFail = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldFail";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
++
++/**
++ * ShouldError is subclass of AssertionError that is thrown whenever
++ * a test is expected to throw an error but doesn't.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldError
++ * @constructor
++ */  
++YAHOO.util.ShouldError = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldError";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
++
++/**
++ * UnexpectedError is subclass of AssertionError that is thrown whenever
++ * an error occurs within the course of a test and the test was not expected
++ * to throw an error.
++ *
++ * @param {Error} cause The unexpected error that caused this error to be 
++ *                      thrown.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedError
++ * @constructor
++ */  
++YAHOO.util.UnexpectedError = function (cause /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
++    
++    /**
++     * The unexpected error that occurred.
++     * @type Error
++     * @property cause
++     */
++    this.cause /*:Error*/ = cause;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedError";
++    
++    /**
++     * Stack information for the error (if provided).
++     * @type String
++     * @property stack
++     */
++    this.stack /*:String*/ = cause.stack;
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
++//-----------------------------------------------------------------------------
++// ArrayAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ArrayAssert object provides functions to test JavaScript array objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ArrayAssert
++ * @static
++ */
++ 
++YAHOO.util.ArrayAssert = {
++
++    /**
++     * Asserts that a value is present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method contains
++     * @static
++     */
++    contains : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * be found.
++     * @param {Object[]} needles An array of values that are expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsItems
++     * @static
++     */
++    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        //begin checking values
++        for (var i=0; i < needles.length; i++){
++            this.contains(needles[i], haystack, message);
++        }
++    },
++
++    /**
++     * Asserts that a value matching some condition is present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsMatch
++     * @static
++     */
++    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
++        }
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a value is not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContain
++     * @static
++     */
++    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * not be found.
++     * @param {Object[]} needles An array of values that are not expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainItems
++     * @static
++     */
++    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        for (var i=0; i < needles.length; i++){
++            this.doesNotContain(needles[i], haystack, message);
++        }
++
++    },
++        
++    /**
++     * Asserts that no values matching a condition are present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainMatch
++     * @static
++     */
++    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
++        }
++
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++        
++    /**
++     * Asserts that the given value is contained in an array at the specified index.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method indexOf
++     * @static
++     */
++    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        //try to find the value in the array
++        for (var i=0; i < haystack.length; i++){
++            if (haystack[i] === needle){
++                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
++                return;
++            }
++        }
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
++    },
++        
++    /**
++     * Asserts that the values in an array are equal, and in the same position,
++     * as values in another array. This uses the double equals sign
++     * so type cohersion may occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreEqual
++     * @static
++     */
++    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++       
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areEqual(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
++        }
++    },
++    
++    /**
++     * Asserts that the values in an array are equivalent, and in the same position,
++     * as values in another array. This uses a function to determine if the values
++     * are equivalent. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {Function} comparator A function that returns true if the values are equivalent
++     *      or false if not.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @return {Void}
++     * @method itemsAreEquivalent
++     * @static
++     */
++    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
++                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
++        
++        //make sure the comparator is valid
++        if (typeof comparator != "function"){
++            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
++        }
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            if (!comparator(expected[i], actual[i])){
++                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
++            }
++        }
++    },
++    
++    /**
++     * Asserts that an array is empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isEmpty
++     * @static
++     */
++    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length > 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that an array is not empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotEmpty
++     * @static
++     */
++    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length === 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that the values in an array are the same, and in the same position,
++     * as values in another array. This uses the triple equals sign
++     * so no type cohersion will occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreSame
++     * @static
++     */
++    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
++                          message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areSame(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
++        }
++    },
++    
++    /**
++     * Asserts that the given value is contained in an array at the specified index,
++     * starting from the back of the array.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method lastIndexOf
++     * @static
++     */
++    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        var Assert = YAHOO.util.Assert;
++    
++        //try to find the value in the array
++        for (var i=haystack.length; i >= 0; i--){
++            if (haystack[i] === needle){
++                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
++                return;
++            }
++        }
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
++    }
++    
++};
++YAHOO.namespace("util");
++
++
++//-----------------------------------------------------------------------------
++// ObjectAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ObjectAssert object provides functions to test JavaScript objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ObjectAssert
++ * @static
++ */
++YAHOO.util.ObjectAssert = {
++        
++    /**
++     * Asserts that all properties in the object exist in another object.
++     * @param {Object} expected An object with the expected properties.
++     * @param {Object} actual An object with the actual properties.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method propertiesAreEqual
++     * @static
++     */
++    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //get all properties in the object
++        var properties /*:Array*/ = [];        
++        for (var property in expected){
++            properties.push(property);
++        }
++        
++        //see if the properties are in the expected object
++        for (var i=0; i < properties.length; i++){
++            Assert.isNotUndefined(actual[properties[i]], 
++                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
++        }
++
++    },
++    
++    /**
++     * Asserts that an object has a property with the given name.
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(propertyName in object)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
++        }    
++    },
++    
++    /**
++     * Asserts that a property with the given name exists on an object instance (not on its prototype).
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
++        }     
++    }
++};
++//-----------------------------------------------------------------------------
++// DateAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The DateAssert object provides functions to test JavaScript Date objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class DateAssert
++ * @static
++ */
++ 
++YAHOO.util.DateAssert = {
++
++    /**
++     * Asserts that a date's month, day, and year are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method datesAreEqual
++     * @static
++     */
++    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
++            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
++            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
++        } else {
++            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    },
++
++    /**
++     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method timesAreEqual
++     * @static
++     */
++    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
++            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
++            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
++        } else {
++            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    }
++    
++};
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestManager object
++//-----------------------------------------------------------------------------
++
++/**
++ * Runs pages containing test suite definitions.
++ * @namespace YAHOO.tool
++ * @class TestManager
++ * @static
++ */
++YAHOO.tool.TestManager = {
++
++    /**
++     * Constant for the testpagebegin custom event
++     * @property TEST_PAGE_BEGIN_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_PAGE_BEGIN_EVENT /*:String*/ : "testpagebegin",
++
++    /**
++     * Constant for the testpagecomplete custom event
++     * @property TEST_PAGE_COMPLETE_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_PAGE_COMPLETE_EVENT /*:String*/ : "testpagecomplete",
++
++    /**
++     * Constant for the testmanagerbegin custom event
++     * @property TEST_MANAGER_BEGIN_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_MANAGER_BEGIN_EVENT /*:String*/ : "testmanagerbegin",
++
++    /**
++     * Constant for the testmanagercomplete custom event
++     * @property TEST_MANAGER_COMPLETE_EVENT
++     * @static
++     * @type string
++     * @final
++     */
++    TEST_MANAGER_COMPLETE_EVENT /*:String*/ : "testmanagercomplete",
++
++    //-------------------------------------------------------------------------
++    // Private Properties
++    //-------------------------------------------------------------------------
++    
++    
++    /**
++     * The URL of the page currently being executed.
++     * @type String
++     * @private
++     * @property _curPage
++     * @static
++     */
++    _curPage /*:String*/ : null,
++    
++    /**
++     * The frame used to load and run tests.
++     * @type Window
++     * @private
++     * @property _frame
++     * @static
++     */
++    _frame /*:Window*/ : null,
++    
++    /**
++     * The logger used to output results from the various tests.
++     * @type YAHOO.tool.TestLogger
++     * @private
++     * @property _logger
++     * @static
++     */
++    _logger : null,
++    
++    /**
++     * The timeout ID for the next iteration through the tests.
++     * @type int
++     * @private
++     * @property _timeoutId
++     * @static
++     */
++    _timeoutId /*:int*/ : 0,
++    
++    /**
++     * Array of pages to load.
++     * @type String[]
++     * @private
++     * @property _pages
++     * @static
++     */
++    _pages /*:String[]*/ : [],
++    
++    /**
++     * Aggregated results
++     * @type Object
++     * @private
++     * @property _results
++     * @static
++     */
++    _results: null,
++    
++    //-------------------------------------------------------------------------
++    // Private Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Handles TestRunner.COMPLETE_EVENT, storing the results and beginning
++     * the loop again.
++     * @param {Object} data Data about the event.
++     * @return {Void}
++     * @private
++     * @static
++     */
++    _handleTestRunnerComplete : function (data /*:Object*/) /*:Void*/ {
++
++        this.fireEvent(this.TEST_PAGE_COMPLETE_EVENT, {
++                page: this._curPage,
++                results: data.results
++            });
++    
++        //save results
++        //this._results[this.curPage] = data.results;
++        
++        //process 'em
++        this._processResults(this._curPage, data.results);
++        
++        this._logger.clearTestRunner();
++    
++        //if there's more to do, set a timeout to begin again
++        if (this._pages.length){
++            this._timeoutId = setTimeout(function(){
++                YAHOO.tool.TestManager._run();
++            }, 1000);
++        } else {
++            this.fireEvent(this.TEST_MANAGER_COMPLETE_EVENT, this._results);
++        }
++    },
++    
++    /**
++     * Processes the results of a test page run, outputting log messages
++     * for failed tests.
++     * @return {Void}
++     * @private
++     * @static
++     */
++    _processResults : function (page /*:String*/, results /*:Object*/) /*:Void*/ {
++
++        var r = this._results;
++        
++        r.passed += results.passed;
++        r.failed += results.failed;
++        r.ignored += results.ignored;
++        r.total += results.total;
++        r.duration += results.duration;
++        
++        if (results.failed){
++            r.failedPages.push(page);
++        } else {
++            r.passedPages.push(page);
++        }
++        
++        results.name = page;
++        results.type = "page";
++        
++        r[page] = results;
++    },
++    
++    /**
++     * Loads the next test page into the iframe.
++     * @return {Void}
++     * @static
++     * @private
++     */
++    _run : function () /*:Void*/ {
++    
++        //set the current page
++        this._curPage = this._pages.shift();
++
++        this.fireEvent(this.TEST_PAGE_BEGIN_EVENT, this._curPage);
++        
++        //load the frame - destroy history in case there are other iframes that
++        //need testing
++        this._frame.location.replace(this._curPage);
++    
++    },
++        
++    //-------------------------------------------------------------------------
++    // Public Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Signals that a test page has been loaded. This should be called from
++     * within the test page itself to notify the TestManager that it is ready.
++     * @return {Void}
++     * @static
++     */
++    load : function () /*:Void*/ {
++        if (parent.YAHOO.tool.TestManager !== this){
++            parent.YAHOO.tool.TestManager.load();
++        } else {
++            
++            if (this._frame) {
++                //assign event handling
++                var TestRunner = this._frame.YAHOO.tool.TestRunner;
++
++                this._logger.setTestRunner(TestRunner);
++                TestRunner.subscribe(TestRunner.COMPLETE_EVENT, this._handleTestRunnerComplete, this, true);
++                
++                //run it
++                TestRunner.run();
++            }
++        }
++    },
++    
++    /**
++     * Sets the pages to be loaded.
++     * @param {String[]} pages An array of URLs to load.
++     * @return {Void}
++     * @static
++     */
++    setPages : function (pages /*:String[]*/) /*:Void*/ {
++        this._pages = pages;
++    },
++    
++    /**
++     * Begins the process of running the tests.
++     * @return {Void}
++     * @static
++     */
++    start : function () /*:Void*/ {
++
++        if (!this._initialized) {
++
++            /**
++             * Fires when loading a test page
++             * @event testpagebegin
++             * @param curPage {string} the page being loaded
++             * @static
++             */
++            this.createEvent(this.TEST_PAGE_BEGIN_EVENT);
++
++            /**
++             * Fires when a test page is complete
++             * @event testpagecomplete
++             * @param obj {page: string, results: object} the name of the
++             * page that was loaded, and the test suite results
++             * @static
++             */
++            this.createEvent(this.TEST_PAGE_COMPLETE_EVENT);
++
++            /**
++             * Fires when the test manager starts running all test pages
++             * @event testmanagerbegin
++             * @static
++             */
++            this.createEvent(this.TEST_MANAGER_BEGIN_EVENT);
++
++            /**
++             * Fires when the test manager finishes running all test pages.  External
++             * test runners should subscribe to this event in order to get the
++             * aggregated test results.
++             * @event testmanagercomplete
++             * @param obj { pages_passed: int, pages_failed: int, tests_passed: int
++             *              tests_failed: int, passed: string[], failed: string[],
++             *              page_results: {} }
++             * @static
++             */
++            this.createEvent(this.TEST_MANAGER_COMPLETE_EVENT);
++
++            //create iframe if not already available
++            if (!this._frame){
++                var frame /*:HTMLElement*/ = document.createElement("iframe");
++                frame.style.visibility = "hidden";
++                frame.style.position = "absolute";
++                document.body.appendChild(frame);
++                this._frame = frame.contentWindow || frame.contentDocument.parentWindow;
++            }
++            
++            //create test logger if not already available
++            if (!this._logger){
++                this._logger = new YAHOO.tool.TestLogger();
++            }
++
++            this._initialized = true;
++        }
++
++
++        // reset the results cache
++        this._results = {
++        
++            passed: 0,
++            failed: 0,
++            ignored: 0,
++            total: 0,
++            type: "report",
++            name: "YUI Test Results",
++            duration: 0,
++            failedPages:[],
++            passedPages:[]
++            /*
++            // number of pages that pass
++            pages_passed: 0,
++            // number of pages that fail
++            pages_failed: 0,
++            // total number of tests passed
++            tests_passed: 0,
++            // total number of tests failed
++            tests_failed: 0,
++            // array of pages that passed
++            passed: [],
++            // array of pages that failed
++            failed: [],
++            // map of full results for each page
++            page_results: {}*/
++        };
++
++        this.fireEvent(this.TEST_MANAGER_BEGIN_EVENT, null);
++        this._run();
++    
++    },
++
++    /**
++     * Stops the execution of tests.
++     * @return {Void}
++     * @static
++     */
++    stop : function () /*:Void*/ {
++        clearTimeout(this._timeoutId);
++    }
++
++};
++
++YAHOO.lang.augmentObject(YAHOO.tool.TestManager, YAHOO.util.EventProvider.prototype);
++
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestLogger object
++//-----------------------------------------------------------------------------
++
++/**
++ * Displays test execution progress and results, providing filters based on
++ * different key events.
++ * @namespace YAHOO.tool
++ * @class TestLogger
++ * @constructor
++ * @param {HTMLElement} element (Optional) The element to create the logger in.
++ * @param {Object} config (Optional) Configuration options for the logger.
++ */
++YAHOO.tool.TestLogger = function (element, config) {
++    YAHOO.tool.TestLogger.superclass.constructor.call(this, element, config);
++    this.init();
++};
++
++YAHOO.lang.extend(YAHOO.tool.TestLogger, YAHOO.widget.LogReader, {
++
++    footerEnabled : true,
++    newestOnTop : false,
++
++    /**
++     * Formats message string to HTML for output to console.
++     * @private
++     * @method formatMsg
++     * @param oLogMsg {Object} Log message object.
++     * @return {String} HTML-formatted message for output to console.
++     */
++    formatMsg : function(message /*:Object*/) {
++    
++        var category /*:String*/ = message.category;        
++        var text /*:String*/ = this.html2Text(message.msg);
++        
++        return "<pre><p><span class=\"" + category + "\">" + category.toUpperCase() + "</span> " + text + "</p></pre>";
++    
++    },
++    
++    //-------------------------------------------------------------------------
++    // Private Methods
++    //-------------------------------------------------------------------------
++    
++    /*
++     * Initializes the logger.
++     * @private
++     */
++    init : function () {
++    
++        //attach to any available TestRunner
++        if (YAHOO.tool.TestRunner){
++            this.setTestRunner(YAHOO.tool.TestRunner);
++        }
++        
++        //hide useless sources
++        this.hideSource("global");
++        this.hideSource("LogReader");
++        
++        //hide useless message categories
++        this.hideCategory("warn");
++        this.hideCategory("window");
++        this.hideCategory("time");
++        
++        //reset the logger
++        this.clearConsole();
++    },
++    
++    /**
++     * Clears the reference to the TestRunner from previous operations. This 
++     * unsubscribes all events and removes the object reference.
++     * @return {Void}
++     * @static
++     */
++    clearTestRunner : function () /*:Void*/ {
++        if (this._runner){
++            this._runner.unsubscribeAll();
++            this._runner = null;
++        }
++    },
++    
++    /**
++     * Sets the source test runner that the logger should monitor.
++     * @param {YAHOO.tool.TestRunner} testRunner The TestRunner to observe.
++     * @return {Void}
++     * @static
++     */
++    setTestRunner : function (testRunner /*:YAHOO.tool.TestRunner*/) /*:Void*/ {
++    
++        if (this._runner){
++            this.clearTestRunner();
++        }
++        
++        this._runner = testRunner;
++        
++        //setup event _handlers
++        testRunner.subscribe(testRunner.TEST_PASS_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_FAIL_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_IGNORE_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_SUITE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_SUITE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_CASE_BEGIN_EVENT, this._handleTestRunnerEvent, this, true);
++        testRunner.subscribe(testRunner.TEST_CASE_COMPLETE_EVENT, this._handleTestRunnerEvent, this, true);    
++    },
++    
++    //-------------------------------------------------------------------------
++    // Event Handlers
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Handles all TestRunner events, outputting appropriate data into the console.
++     * @param {Object} data The event data object.
++     * @return {Void}
++     * @private
++     */
++    _handleTestRunnerEvent : function (data /*:Object*/) /*:Void*/ {
++    
++        //shortcut variables
++        var TestRunner /*:Object*/ = YAHOO.tool.TestRunner;
++    
++        //data variables
++        var message /*:String*/ = "";
++        var messageType /*:String*/ = "";
++        
++        switch(data.type){
++            case TestRunner.BEGIN_EVENT:
++                message = "Testing began at " + (new Date()).toString() + ".";
++                messageType = "info";
++                break;
++                
++            case TestRunner.COMPLETE_EVENT:
++                message = "Testing completed at " + (new Date()).toString() + ".\nPassed:" + 
++                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_FAIL_EVENT:
++                message = data.testName + ": " + data.error.getMessage();
++                messageType = "fail";
++                break;
++                
++            case TestRunner.TEST_IGNORE_EVENT:
++                message = data.testName + ": ignored.";
++                messageType = "ignore";
++                break;
++                
++            case TestRunner.TEST_PASS_EVENT:
++                message = data.testName + ": passed.";
++                messageType = "pass";
++                break;
++                
++            case TestRunner.TEST_SUITE_BEGIN_EVENT:
++                message = "Test suite \"" + data.testSuite.name + "\" started.";
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_SUITE_COMPLETE_EVENT:
++                message = "Test suite \"" + data.testSuite.name + "\" completed.\nPassed:" + 
++                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_CASE_BEGIN_EVENT:
++                message = "Test case \"" + data.testCase.name + "\" started.";
++                messageType = "info";
++                break;
++                
++            case TestRunner.TEST_CASE_COMPLETE_EVENT:
++                message = "Test case \"" + data.testCase.name + "\" completed.\nPassed:" + 
++                    data.results.passed + " Failed:" + data.results.failed + " Total:" + data.results.total;
++                messageType = "info";
++                break;
++            default:
++                message = "Unexpected event " + data.type;
++                message = "info";
++        }
++    
++        YAHOO.log(message, messageType, "TestRunner");    
++    }
++    
++});
++YAHOO.namespace("tool.TestFormat");
++
++/**
++ * Returns test results formatted as a JSON string. Requires JSON utility.
++ * @param {Object} result The results object created by TestRunner.
++ * @return {String} An XML-formatted string of results.
++ * @namespace YAHOO.tool.TestFormat
++ * @method JSON
++ * @static
++ */
++YAHOO.tool.TestFormat.JSON = function(results /*:Object*/) /*:String*/ {
++    return YAHOO.lang.JSON.stringify(results);
++};
++
++/**
++ * Returns test results formatted as an XML string.
++ * @param {Object} result The results object created by TestRunner.
++ * @return {String} An XML-formatted string of results.
++ * @namespace YAHOO.tool.TestFormat
++ * @method XML
++ * @static
++ */
++YAHOO.tool.TestFormat.XML = function(results /*:Object*/) /*:String*/ {
++
++    var l = YAHOO.lang;
++    var xml /*:String*/ = "<" + results.type + " name=\"" + results.name.replace(/"/g, "&quot;").replace(/'/g, "&apos;") + "\"";
++    
++    if (l.isNumber(results.duration)){
++        xml += " duration=\"" + results.duration + "\"";
++    }
++    
++    if (results.type == "test"){
++        xml += " result=\"" + results.result + "\" message=\"" + results.message + "\">";
++    } else {
++        xml += " passed=\"" + results.passed + "\" failed=\"" + results.failed + "\" ignored=\"" + results.ignored + "\" total=\"" + results.total + "\">";
++        for (var prop in results) {
++            if (l.hasOwnProperty(results, prop) && l.isObject(results[prop]) && !l.isArray(results[prop])){
++                xml += arguments.callee(results[prop]);
++            }
++        }        
++    }
++
++    xml += "</" + results.type + ">";
++    
++    return xml;
++
++};
++YAHOO.namespace("tool");
++
++/**
++ * An object capable of sending test results to a server.
++ * @param {String} url The URL to submit the results to.
++ * @param {Function} format (Optiona) A function that outputs the results in a specific format.
++ *      Default is YAHOO.tool.TestFormat.XML.
++ * @constructor
++ * @namespace YAHOO.tool
++ * @class TestReporter
++ */
++YAHOO.tool.TestReporter = function(url /*:String*/, format /*:Function*/) {
++
++    /**
++     * The URL to submit the data to.
++     * @type String
++     * @property url
++     */
++    this.url /*:String*/ = url;
++
++    /**
++     * The formatting function to call when submitting the data.
++     * @type Function
++     * @property format
++     */
++    this.format /*:Function*/ = format || YAHOO.tool.TestFormat.XML;
++
++    /**
++     * Extra fields to submit with the request.
++     * @type Object
++     * @property _fields
++     * @private
++     */
++    this._fields /*:Object*/ = new Object();
++    
++    /**
++     * The form element used to submit the results.
++     * @type HTMLFormElement
++     * @property _form
++     * @private
++     */
++    this._form /*:HTMLElement*/ = null;
++
++    /**
++     * Iframe used as a target for form submission.
++     * @type HTMLIFrameElement
++     * @property _iframe
++     * @private
++     */
++    this._iframe /*:HTMLElement*/ = null;
++};
++
++YAHOO.tool.TestReporter.prototype = {
++
++    //restore missing constructor
++    constructor: YAHOO.tool.TestReporter,
++    
++    /**
++     * Convert a date into ISO format.
++     * From Douglas Crockford's json2.js
++     * @param {Date} date The date to convert.
++     * @return {String} An ISO-formatted date string
++     * @method _convertToISOString
++     * @private
++     */    
++    _convertToISOString: function(date){
++        function f(n) {
++            // Format integers to have at least two digits.
++            return n < 10 ? '0' + n : n;
++        }
++
++        return date.getUTCFullYear()   + '-' +
++             f(date.getUTCMonth() + 1) + '-' +
++             f(date.getUTCDate())      + 'T' +
++             f(date.getUTCHours())     + ':' +
++             f(date.getUTCMinutes())   + ':' +
++             f(date.getUTCSeconds())   + 'Z';     
++    
++    },
++
++    /**
++     * Adds a field to the form that submits the results.
++     * @param {String} name The name of the field.
++     * @param {Variant} value The value of the field.
++     * @return {Void}
++     * @method addField
++     */
++    addField : function (name /*:String*/, value /*:Variant*/) /*:Void*/{
++        this._fields[name] = value;    
++    },
++    
++    /**
++     * Removes all previous defined fields.
++     * @return {Void}
++     * @method addField
++     */
++    clearFields : function() /*:Void*/{
++        this._fields = new Object();
++    },
++
++    /**
++     * Cleans up the memory associated with the TestReporter, removing DOM elements
++     * that were created.
++     * @return {Void}
++     * @method destroy
++     */
++    destroy : function() /*:Void*/ {
++        if (this._form){
++            this._form.parentNode.removeChild(this._form);
++            this._form = null;
++        }        
++        if (this._iframe){
++            this._iframe.parentNode.removeChild(this._iframe);
++            this._iframe = null;
++        }
++        this._fields = null;
++    },
++
++    /**
++     * Sends the report to the server.
++     * @param {Object} results The results object created by TestRunner.
++     * @return {Void}
++     * @method report
++     */
++    report : function(results /*:Object*/) /*:Void*/{
++    
++        //if the form hasn't been created yet, create it
++        if (!this._form){
++            this._form = document.createElement("form");
++            this._form.method = "post";
++            this._form.style.visibility = "hidden";
++            this._form.style.position = "absolute";
++            this._form.style.top = 0;
++            document.body.appendChild(this._form);
++        
++            //IE won't let you assign a name using the DOM, must do it the hacky way
++            if (YAHOO.env.ua.ie){
++                this._iframe = document.createElement("<iframe name=\"yuiTestTarget\" />");
++            } else {
++                this._iframe = document.createElement("iframe");
++                this._iframe.name = "yuiTestTarget";
++            }
++
++            this._iframe.src = "javascript:false";
++            this._iframe.style.visibility = "hidden";
++            this._iframe.style.position = "absolute";
++            this._iframe.style.top = 0;
++            document.body.appendChild(this._iframe);
++
++            this._form.target = "yuiTestTarget";
++        }
++
++        //set the form's action
++        this._form.action = this.url;
++    
++        //remove any existing fields
++        while(this._form.hasChildNodes()){
++            this._form.removeChild(this._form.lastChild);
++        }
++        
++        //create default fields
++        this._fields.results = this.format(results);
++        this._fields.useragent = navigator.userAgent;
++        this._fields.timestamp = this._convertToISOString(new Date());
++
++        //add fields to the form
++        for (var prop in this._fields){
++            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
++                if (YAHOO.env.ua.ie){
++                    input = document.createElement("<input name=\"" + prop + "\" >");
++                } else {
++                    input = document.createElement("input");
++                    input.name = prop;
++                }
++                input.type = "hidden";
++                input.value = this._fields[prop];
++                this._form.appendChild(input);
++            }
++        }
++
++        //remove default fields
++        delete this._fields.results;
++        delete this._fields.useragent;
++        delete this._fields.timestamp;
++        
++        if (arguments[1] !== false){
++            this._form.submit();
++        }
++    
++    }
++
++};
++YAHOO.register("yuitest", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuitest/yuitest_core-debug.js b/pylons_app/public/js/yui/yuitest/yuitest_core-debug.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/yuitest_core-debug.js
+@@ -0,0 +1,1976 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestCase object
++//-----------------------------------------------------------------------------
++(function(){
++    
++    //used for autogenerating test case names
++    var tempId = 0;
++    
++    /**
++     * Test case containing various tests to run.
++     * @param template An object containing any number of test methods, other methods,
++     *                 an optional name, and anything else the test case needs.
++     * @class TestCase
++     * @namespace YAHOO.tool
++     * @constructor
++     */
++    YAHOO.tool.TestCase = function (template /*:Object*/) {
++        
++        /**
++         * Special rules for the test case. Possible subobjects
++         * are fail, for tests that should fail, and error, for
++         * tests that should throw an error.
++         */
++        this._should /*:Object*/ = {};
++        
++        //copy over all properties from the template to this object
++        for (var prop in template) {
++            this[prop] = template[prop];
++        }    
++        
++        //check for a valid name
++        if (!YAHOO.lang.isString(this.name)){
++            /**
++             * Name for the test case.
++             */
++            this.name /*:String*/ = "testCase" + (tempId++);
++        }
++    
++    };
++    
++    
++    YAHOO.tool.TestCase.prototype = {  
++    
++        /**
++         * Resumes a paused test and runs the given function.
++         * @param {Function} segment (Optional) The function to run.
++         *      If omitted, the test automatically passes.
++         * @return {Void}
++         * @method resume
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            YAHOO.tool.TestRunner.resume(segment);
++        },
++    
++        /**
++         * Causes the test case to wait a specified amount of time and then
++         * continue executing the given code.
++         * @param {Function} segment (Optional) The function to run after the delay.
++         *      If omitted, the TestRunner will wait until resume() is called.
++         * @param {int} delay (Optional) The number of milliseconds to wait before running
++         *      the function. If omitted, defaults to zero.
++         * @return {Void}
++         * @method wait
++         */
++        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
++            var args = arguments;
++            if (YAHOO.lang.isFunction(args[0])){
++                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
++            } else {
++                throw new YAHOO.tool.TestCase.Wait(function(){
++                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
++                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
++            }            
++        },
++    
++        //-------------------------------------------------------------------------
++        // Stub Methods
++        //-------------------------------------------------------------------------
++    
++        /**
++         * Function to run before each test is executed.
++         * @return {Void}
++         * @method setUp
++         */
++        setUp : function () /*:Void*/ {
++        },
++        
++        /**
++         * Function to run after each test is executed.
++         * @return {Void}
++         * @method tearDown
++         */
++        tearDown: function () /*:Void*/ {    
++        }
++    };
++    
++    /**
++     * Represents a stoppage in test execution to wait for an amount of time before
++     * continuing.
++     * @param {Function} segment A function to run when the wait is over.
++     * @param {int} delay The number of milliseconds to wait before running the code.
++     * @class Wait
++     * @namespace YAHOO.tool.TestCase
++     * @constructor
++     *
++     */
++    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
++        
++        /**
++         * The segment of code to run when the wait is over.
++         * @type Function
++         * @property segment
++         */
++        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
++    
++        /**
++         * The delay before running the segment of code.
++         * @type int
++         * @property delay
++         */
++        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
++    
++    };
++
++})();
++YAHOO.namespace("tool");
++
++
++//-----------------------------------------------------------------------------
++// TestSuite object
++//-----------------------------------------------------------------------------
++
++/**
++ * A test suite that can contain a collection of TestCase and TestSuite objects.
++ * @param {String||Object} data The name of the test suite or an object containing
++ *      a name property as well as setUp and tearDown methods.
++ * @namespace YAHOO.tool
++ * @class TestSuite
++ * @constructor
++ */
++YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
++
++    /**
++     * The name of the test suite.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "";
++
++    /**
++     * Array of test suites and
++     * @private
++     */
++    this.items /*:Array*/ = [];
++
++    //initialize the properties
++    if (YAHOO.lang.isString(data)){
++        this.name = data;
++    } else if (YAHOO.lang.isObject(data)){
++        YAHOO.lang.augmentObject(this, data, true);
++    }
++
++    //double-check name
++    if (this.name === ""){
++        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
++    }
++
++};
++
++YAHOO.tool.TestSuite.prototype = {
++    
++    /**
++     * Adds a test suite or test case to the test suite.
++     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
++     * @return {Void}
++     * @method add
++     */
++    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
++            this.items.push(testObject);
++        }
++    },
++    
++    //-------------------------------------------------------------------------
++    // Stub Methods
++    //-------------------------------------------------------------------------
++
++    /**
++     * Function to run before each test is executed.
++     * @return {Void}
++     * @method setUp
++     */
++    setUp : function () /*:Void*/ {
++    },
++    
++    /**
++     * Function to run after each test is executed.
++     * @return {Void}
++     * @method tearDown
++     */
++    tearDown: function () /*:Void*/ {
++    }
++    
++};
++YAHOO.namespace("tool");
++
++/**
++ * The YUI test tool
++ * @module yuitest
++ * @namespace YAHOO.tool
++ * @requires yahoo,dom,event,logger
++ * @optional event-simulte
++ */
++
++
++//-----------------------------------------------------------------------------
++// TestRunner object
++//-----------------------------------------------------------------------------
++
++
++YAHOO.tool.TestRunner = (function(){
++
++    /**
++     * A node in the test tree structure. May represent a TestSuite, TestCase, or
++     * test function.
++     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++     * @class TestNode
++     * @constructor
++     * @private
++     */
++    function TestNode(testObject /*:Variant*/){
++    
++        /**
++         * The TestSuite, TestCase, or test function represented by this node.
++         * @type Variant
++         * @property testObject
++         */
++        this.testObject = testObject;
++        
++        /**
++         * Pointer to this node's first child.
++         * @type TestNode
++         * @property firstChild
++         */        
++        this.firstChild /*:TestNode*/ = null;
++        
++        /**
++         * Pointer to this node's last child.
++         * @type TestNode
++         * @property lastChild
++         */        
++        this.lastChild = null;
++        
++        /**
++         * Pointer to this node's parent.
++         * @type TestNode
++         * @property parent
++         */        
++        this.parent = null; 
++   
++        /**
++         * Pointer to this node's next sibling.
++         * @type TestNode
++         * @property next
++         */        
++        this.next = null;
++        
++        /**
++         * Test results for this test object.
++         * @type object
++         * @property results
++         */                
++        this.results /*:Object*/ = {
++            passed : 0,
++            failed : 0,
++            total : 0,
++            ignored : 0
++        };
++        
++        //initialize results
++        if (testObject instanceof YAHOO.tool.TestSuite){
++            this.results.type = "testsuite";
++            this.results.name = testObject.name;
++        } else if (testObject instanceof YAHOO.tool.TestCase){
++            this.results.type = "testcase";
++            this.results.name = testObject.name;
++        }
++       
++    }
++    
++    TestNode.prototype = {
++    
++        /**
++         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
++         * of this node.
++         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++         * @return {Void}
++         */
++        appendChild : function (testObject /*:Variant*/) /*:Void*/{
++            var node = new TestNode(testObject);
++            if (this.firstChild === null){
++                this.firstChild = this.lastChild = node;
++            } else {
++                this.lastChild.next = node;
++                this.lastChild = node;
++            }
++            node.parent = this;
++            return node;
++        }       
++    };
++
++    /**
++     * Runs test suites and test cases, providing events to allowing for the
++     * interpretation of test results.
++     * @namespace YAHOO.tool
++     * @class TestRunner
++     * @static
++     */
++    function TestRunner(){
++    
++        //inherit from EventProvider
++        TestRunner.superclass.constructor.apply(this,arguments);
++        
++        /**
++         * Suite on which to attach all TestSuites and TestCases to be run.
++         * @type YAHOO.tool.TestSuite
++         * @property masterSuite
++         * @private
++         * @static
++         */
++        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
++
++        /**
++         * Pointer to the current node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _cur
++         * @static
++         */
++        this._cur = null;
++        
++        /**
++         * Pointer to the root node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _root
++         * @static
++         */
++        this._root = null;
++        
++        //create events
++        var events /*:Array*/ = [
++            this.TEST_CASE_BEGIN_EVENT,
++            this.TEST_CASE_COMPLETE_EVENT,
++            this.TEST_SUITE_BEGIN_EVENT,
++            this.TEST_SUITE_COMPLETE_EVENT,
++            this.TEST_PASS_EVENT,
++            this.TEST_FAIL_EVENT,
++            this.TEST_IGNORE_EVENT,
++            this.COMPLETE_EVENT,
++            this.BEGIN_EVENT
++        ];
++        for (var i=0; i < events.length; i++){
++            this.createEvent(events[i], { scope: this });
++        }       
++   
++    }
++    
++    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
++    
++        //-------------------------------------------------------------------------
++        // Constants
++        //-------------------------------------------------------------------------
++         
++        /**
++         * Fires when a test case is opened but before the first 
++         * test is executed.
++         * @event testcasebegin
++         */         
++        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
++        
++        /**
++         * Fires when all tests in a test case have been executed.
++         * @event testcasecomplete
++         */        
++        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
++        
++        /**
++         * Fires when a test suite is opened but before the first 
++         * test is executed.
++         * @event testsuitebegin
++         */        
++        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
++        
++        /**
++         * Fires when all test cases in a test suite have been
++         * completed.
++         * @event testsuitecomplete
++         */        
++        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
++        
++        /**
++         * Fires when a test has passed.
++         * @event pass
++         */        
++        TEST_PASS_EVENT /*:String*/ : "pass",
++        
++        /**
++         * Fires when a test has failed.
++         * @event fail
++         */        
++        TEST_FAIL_EVENT /*:String*/ : "fail",
++        
++        /**
++         * Fires when a test has been ignored.
++         * @event ignore
++         */        
++        TEST_IGNORE_EVENT /*:String*/ : "ignore",
++        
++        /**
++         * Fires when all test suites and test cases have been completed.
++         * @event complete
++         */        
++        COMPLETE_EVENT /*:String*/ : "complete",
++        
++        /**
++         * Fires when the run() method is called.
++         * @event begin
++         */        
++        BEGIN_EVENT /*:String*/ : "begin",    
++        
++        //-------------------------------------------------------------------------
++        // Test Tree-Related Methods
++        //-------------------------------------------------------------------------
++
++        /**
++         * Adds a test case to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test case to as a child.
++         * @param {YAHOO.tool.TestCase} testCase The test case to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestCaseToTestTree
++         */
++       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
++            
++            //add the test suite
++            var node = parentNode.appendChild(testCase);
++            
++            //iterate over the items in the test case
++            for (var prop in testCase){
++                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
++                    node.appendChild(prop);
++                }
++            }
++         
++        },
++        
++        /**
++         * Adds a test suite to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test suite to as a child.
++         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestSuiteToTestTree
++         */
++        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++            
++            //add the test suite
++            var node = parentNode.appendChild(testSuite);
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < testSuite.items.length; i++){
++                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
++                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(node, testSuite.items[i]);
++                }                   
++            }            
++        },
++        
++        /**
++         * Builds the test tree based on items in the master suite. The tree is a hierarchical
++         * representation of the test suites, test cases, and test functions. The resulting tree
++         * is stored in _root and the pointer _cur is set to the root initially.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _buildTestTree
++         */
++        _buildTestTree : function () /*:Void*/ {
++        
++            this._root = new TestNode(this.masterSuite);
++            this._cur = this._root;
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < this.masterSuite.items.length; i++){
++                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
++                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
++                }                   
++            }            
++        
++        }, 
++    
++        //-------------------------------------------------------------------------
++        // Private Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Handles the completion of a test object's tests. Tallies test results 
++         * from one level up to the next.
++         * @param {TestNode} node The TestNode representing the test object.
++         * @return {Void}
++         * @method _handleTestObjectComplete
++         * @private
++         * @static
++         */
++        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
++            if (YAHOO.lang.isObject(node.testObject)){
++                node.parent.results.passed += node.results.passed;
++                node.parent.results.failed += node.results.failed;
++                node.parent.results.total += node.results.total;                
++                node.parent.results.ignored += node.results.ignored;                
++                node.parent.results[node.testObject.name] = node.results;
++            
++                if (node.testObject instanceof YAHOO.tool.TestSuite){
++                    node.testObject.tearDown();
++                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
++                } else if (node.testObject instanceof YAHOO.tool.TestCase){
++                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
++                }      
++            } 
++        },                
++        
++        //-------------------------------------------------------------------------
++        // Navigation Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Retrieves the next node in the test tree.
++         * @return {TestNode} The next node in the test tree or null if the end is reached.
++         * @private
++         * @static
++         * @method _next
++         */
++        _next : function () /*:TestNode*/ {
++        
++            if (this._cur.firstChild) {
++                this._cur = this._cur.firstChild;
++            } else if (this._cur.next) {
++                this._cur = this._cur.next;            
++            } else {
++                while (this._cur && !this._cur.next && this._cur !== this._root){
++                    this._handleTestObjectComplete(this._cur);
++                    this._cur = this._cur.parent;
++                }
++                
++                if (this._cur == this._root){
++                    this._cur.results.type = "report";
++                    this._cur.results.timestamp = (new Date()).toLocaleString();
++                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
++                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
++                    this._cur = null;
++                } else {
++                    this._handleTestObjectComplete(this._cur);               
++                    this._cur = this._cur.next;                
++                }
++            }
++        
++            return this._cur;
++        },
++        
++        /**
++         * Runs a test case or test suite, returning the results.
++         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
++         * @return {Object} Results of the execution with properties passed, failed, and total.
++         * @private
++         * @method _run
++         * @static
++         */
++        _run : function () /*:Void*/ {
++        
++            //flag to indicate if the TestRunner should wait before continuing
++            var shouldWait /*:Boolean*/ = false;
++            
++            //get the next test node
++            var node = this._next();
++            
++            if (node !== null) {
++                var testObject = node.testObject;
++                
++                //figure out what to do
++                if (YAHOO.lang.isObject(testObject)){
++                    if (testObject instanceof YAHOO.tool.TestSuite){
++                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
++                        testObject.setUp();
++                    } else if (testObject instanceof YAHOO.tool.TestCase){
++                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
++                    }
++                    
++                    //some environments don't support setTimeout
++                    if (typeof setTimeout != "undefined"){                    
++                        setTimeout(function(){
++                            YAHOO.tool.TestRunner._run();
++                        }, 0);
++                    } else {
++                        this._run();
++                    }
++                } else {
++                    this._runTest(node);
++                }
++
++            }
++        },
++        
++        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
++        
++            //get relevant information
++            var node /*:TestNode*/ = this._cur;
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            
++            //cancel other waits if available
++            if (testCase.__yui_wait){
++                clearTimeout(testCase.__yui_wait);
++                delete testCase.__yui_wait;
++            }            
++            
++            //get the "should" test cases
++            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
++            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
++            
++            //variable to hold whether or not the test failed
++            var failed /*:Boolean*/ = false;
++            var error /*:Error*/ = null;
++                
++            //try the test
++            try {
++            
++                //run the test
++                segment.apply(testCase);
++                
++                //if it should fail, and it got here, then it's a fail because it didn't
++                if (shouldFail){
++                    error = new YAHOO.util.ShouldFail();
++                    failed = true;
++                } else if (shouldError){
++                    error = new YAHOO.util.ShouldError();
++                    failed = true;
++                }
++                           
++            } catch (thrown /*:Error*/){
++                if (thrown instanceof YAHOO.util.AssertionError) {
++                    if (!shouldFail){
++                        error = thrown;
++                        failed = true;
++                    }
++                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
++                
++                    if (YAHOO.lang.isFunction(thrown.segment)){
++                        if (YAHOO.lang.isNumber(thrown.delay)){
++                        
++                            //some environments don't support setTimeout
++                            if (typeof setTimeout != "undefined"){
++                                testCase.__yui_wait = setTimeout(function(){
++                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
++                                }, thrown.delay);                             
++                            } else {
++                                throw new Error("Asynchronous tests not supported in this environment.");
++                            }
++                        }
++                    }
++                    
++                    return;
++                
++                } else {
++                    //first check to see if it should error
++                    if (!shouldError) {                        
++                        error = new YAHOO.util.UnexpectedError(thrown);
++                        failed = true;
++                    } else {
++                        //check to see what type of data we have
++                        if (YAHOO.lang.isString(shouldError)){
++                            
++                            //if it's a string, check the error message
++                            if (thrown.message != shouldError){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        } else if (YAHOO.lang.isFunction(shouldError)){
++                        
++                            //if it's a function, see if the error is an instance of it
++                            if (!(thrown instanceof shouldError)){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;
++                            }
++                        
++                        } else if (YAHOO.lang.isObject(shouldError)){
++                        
++                            //if it's an object, check the instance and message
++                            if (!(thrown instanceof shouldError.constructor) || 
++                                    thrown.message != shouldError.message){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        
++                        }
++                    
++                    }
++                }
++                
++            }
++            
++            //fireEvent appropriate event
++            if (failed) {
++                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
++            } else {
++                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
++            }
++            
++            //run the tear down
++            testCase.tearDown();
++            
++            //update results
++            node.parent.results[testName] = { 
++                result: failed ? "fail" : "pass",
++                message: error ? error.getMessage() : "Test passed",
++                type: "test",
++                name: testName
++            };
++            
++            if (failed){
++                node.parent.results.failed++;
++            } else {
++                node.parent.results.passed++;
++            }
++            node.parent.results.total++;
++
++            //set timeout not supported in all environments
++            if (typeof setTimeout != "undefined"){
++                setTimeout(function(){
++                    YAHOO.tool.TestRunner._run();
++                }, 0);
++            } else {
++                this._run();
++            }
++        
++        },
++                
++        /**
++         * Runs a single test based on the data provided in the node.
++         * @param {TestNode} node The TestNode representing the test to run.
++         * @return {Void}
++         * @static
++         * @private
++         * @name _runTest
++         */
++        _runTest : function (node /*:TestNode*/) /*:Void*/ {
++        
++            //get relevant information
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            var test /*:Function*/ = testCase[testName];
++            
++            //get the "should" test cases
++            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
++            
++            //figure out if the test should be ignored or not
++            if (shouldIgnore){
++            
++                //update results
++                node.parent.results[testName] = { 
++                    result: "ignore",
++                    message: "Test ignored",
++                    type: "test",
++                    name: testName
++                };
++                
++                node.parent.results.ignored++;
++                node.parent.results.total++;
++            
++                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
++                
++                //some environments don't support setTimeout
++                if (typeof setTimeout != "undefined"){                    
++                    setTimeout(function(){
++                        YAHOO.tool.TestRunner._run();
++                    }, 0);              
++                } else {
++                    this._run();
++                }
++
++            } else {
++            
++                //run the setup
++                testCase.setUp();
++                
++                //now call the body of the test
++                this._resumeTest(test);                
++            }
++
++        },        
++        
++        //-------------------------------------------------------------------------
++        // Protected Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Fires events for the TestRunner. This overrides the default fireEvent()
++         * method from EventProvider to add the type property to the data that is
++         * passed through on each event call.
++         * @param {String} type The type of event to fire.
++         * @param {Object} data (Optional) Data for the event.
++         * @method fireEvent
++         * @static
++         * @protected
++         */
++        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
++            data = data || {};
++            data.type = type;
++            TestRunner.superclass.fireEvent.call(this, type, data);
++        },
++        
++        //-------------------------------------------------------------------------
++        // Public Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Adds a test suite or test case to the list of test objects to run.
++         * @param testObject Either a TestCase or a TestSuite that should be run.
++         * @return {Void}
++         * @method add
++         * @static
++         */
++        add : function (testObject /*:Object*/) /*:Void*/ {
++            this.masterSuite.add(testObject);
++        },
++        
++        /**
++         * Removes all test objects from the runner.
++         * @return {Void}
++         * @method clear
++         * @static
++         */
++        clear : function () /*:Void*/ {
++            this.masterSuite.items = [];
++        },
++        
++        /**
++         * Resumes the TestRunner after wait() was called.
++         * @param {Function} segment The function to run as the rest
++         *      of the haulted test.
++         * @return {Void}
++         * @method resume
++         * @static
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            this._resumeTest(segment || function(){});
++        },
++    
++        /**
++         * Runs the test suite.
++         * @return {Void}
++         * @method run
++         * @static
++         */
++        run : function (testObject /*:Object*/) /*:Void*/ {
++            
++            //pointer to runner to avoid scope issues 
++            var runner = YAHOO.tool.TestRunner;
++
++            //build the test tree
++            runner._buildTestTree();
++            
++            //set when the test started
++            runner._root.results.duration = (new Date()).getTime();
++            
++            //fire the begin event
++            runner.fireEvent(runner.BEGIN_EVENT);
++       
++            //begin the testing
++            runner._run();
++        }    
++    });
++    
++    return new TestRunner();
++    
++})();
++YAHOO.namespace("util");
++
++//-----------------------------------------------------------------------------
++// Assert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The Assert object provides functions to test JavaScript values against
++ * known and expected results. Whenever a comparison (assertion) fails,
++ * an error is thrown.
++ *
++ * @namespace YAHOO.util
++ * @class Assert
++ * @static
++ */
++YAHOO.util.Assert = {
++
++    //-------------------------------------------------------------------------
++    // Helper Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Formats a message so that it can contain the original assertion message
++     * in addition to the custom message.
++     * @param {String} customMessage The message passed in by the developer.
++     * @param {String} defaultMessage The message created by the error by default.
++     * @return {String} The final error message, containing either or both.
++     * @protected
++     * @static
++     * @method _formatMessage
++     */
++    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
++        var message = customMessage;
++        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
++            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
++        } else {
++            return defaultMessage;
++        }        
++    },
++    
++    //-------------------------------------------------------------------------
++    // Generic Assertion Methods
++    //-------------------------------------------------------------------------
++    
++    /** 
++     * Forces an assertion error to occur.
++     * @param {String} message (Optional) The message to display with the failure.
++     * @method fail
++     * @static
++     */
++    fail : function (message /*:String*/) /*:Void*/ {
++        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
++    },       
++    
++    //-------------------------------------------------------------------------
++    // Equality Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areEqual
++     * @static
++     */
++    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected != actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotEqual
++     * @static
++     */
++    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
++                         message /*:String*/) /*:Void*/ {
++        if (unexpected == actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotSame
++     * @static
++     */
++    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (unexpected === actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
++        }
++    },
++
++    /**
++     * Asserts that a value is the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areSame
++     * @static
++     */
++    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
++        }
++    },    
++    
++    //-------------------------------------------------------------------------
++    // Boolean Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is false. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFalse
++     * @static
++     */
++    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
++        if (false !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is true. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTrue
++     * @static
++     */
++    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
++        if (true !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
++        }
++
++    },
++    
++    //-------------------------------------------------------------------------
++    // Special Value Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is not a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNaN
++     * @static
++     */
++    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (!isNaN(actual)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not the special NaN value.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNaN
++     * @static
++     */
++    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (isNaN(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNull
++     * @static
++     */
++    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
++        }
++    },
++
++    /**
++     * Asserts that a value is not undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotUndefined
++     * @static
++     */
++    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
++        }
++    },
++
++    /**
++     * Asserts that a value is null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNull
++     * @static
++     */
++    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
++        }
++    },
++        
++    /**
++     * Asserts that a value is undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isUndefined
++     * @static
++     */
++    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
++        }
++    },    
++    
++    //--------------------------------------------------------------------------
++    // Instance Assertion Methods
++    //--------------------------------------------------------------------------    
++   
++    /**
++     * Asserts that a value is an array.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isArray
++     * @static
++     */
++    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isArray(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a Boolean.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isBoolean
++     * @static
++     */
++    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isBoolean(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a function.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFunction
++     * @static
++     */
++    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isFunction(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is an instance of a particular object. This may return
++     * incorrect results when comparing objects from one frame to constructors in
++     * another frame. For best results, don't use in a cross-frame manner.
++     * @param {Function} expected The function that the object should be an instance of.
++     * @param {Object} actual The object to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isInstanceOf
++     * @static
++     */
++    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(actual instanceof expected)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNumber
++     * @static
++     */
++    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNumber(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
++        }    
++    },    
++    
++    /**
++     * Asserts that a value is an object.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isObject
++     * @static
++     */
++    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isObject(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a string.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isString
++     * @static
++     */
++    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isString(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is of a particular type. 
++     * @param {String} expectedType The expected type of the variable.
++     * @param {Object} actualValue The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTypeOf
++     * @static
++     */
++    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (typeof actual != expected){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
++        }
++    }
++};
++
++//-----------------------------------------------------------------------------
++// Assertion errors
++//-----------------------------------------------------------------------------
++
++/**
++ * AssertionError is thrown whenever an assertion fails. It provides methods
++ * to more easily get at error information and also provides a base class
++ * from which more specific assertion errors can be derived.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @class AssertionError
++ * @extends Error
++ * @constructor
++ */ 
++YAHOO.util.AssertionError = function (message /*:String*/){
++
++    //call superclass
++    //arguments.callee.superclass.constructor.call(this, message);
++    
++    /*
++     * Error message. Must be duplicated to ensure browser receives it.
++     * @type String
++     * @property message
++     */
++    this.message /*:String*/ = message;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "AssertionError";
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This should
++     * be overridden by all subclasses to provide specific information.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message;
++    },
++    
++    /**
++     * Returns a string representation of the error.
++     * @method toString
++     * @return {String} A string representation of the error.
++     */
++    toString : function () /*:String*/ {
++        return this.name + ": " + this.getMessage();
++    }
++    
++});
++
++/**
++ * ComparisonFailure is subclass of AssertionError that is thrown whenever
++ * a comparison between two values fails. It provides mechanisms to retrieve
++ * both the expected and actual value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} expected The expected value.
++ * @param {Object} actual The actual value that caused the assertion to fail.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ComparisonFailure
++ * @constructor
++ */ 
++YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The expected value.
++     * @type Object
++     * @property expected
++     */
++    this.expected /*:Object*/ = expected;
++    
++    /**
++     * The actual value.
++     * @type Object
++     * @property actual
++     */
++    this.actual /*:Object*/ = actual;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ComparisonFailure";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This message
++     * provides information about the expected and actual values.
++     * @method toString
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
++            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
++    }
++
++});
++
++/**
++ * UnexpectedValue is subclass of AssertionError that is thrown whenever
++ * a value was unexpected in its scope. This typically means that a test
++ * was performed to determine that a value was *not* equal to a certain
++ * value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} unexpected The unexpected value.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedValue
++ * @constructor
++ */ 
++YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The unexpected value.
++     * @type Object
++     * @property unexpected
++     */
++    this.unexpected /*:Object*/ = unexpected;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedValue";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. The message
++     * contains information about the unexpected value that was encountered.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
++    }
++
++});
++
++/**
++ * ShouldFail is subclass of AssertionError that is thrown whenever
++ * a test was expected to fail but did not.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldFail
++ * @constructor
++ */  
++YAHOO.util.ShouldFail = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldFail";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
++
++/**
++ * ShouldError is subclass of AssertionError that is thrown whenever
++ * a test is expected to throw an error but doesn't.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldError
++ * @constructor
++ */  
++YAHOO.util.ShouldError = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldError";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
++
++/**
++ * UnexpectedError is subclass of AssertionError that is thrown whenever
++ * an error occurs within the course of a test and the test was not expected
++ * to throw an error.
++ *
++ * @param {Error} cause The unexpected error that caused this error to be 
++ *                      thrown.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedError
++ * @constructor
++ */  
++YAHOO.util.UnexpectedError = function (cause /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
++    
++    /**
++     * The unexpected error that occurred.
++     * @type Error
++     * @property cause
++     */
++    this.cause /*:Error*/ = cause;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedError";
++    
++    /**
++     * Stack information for the error (if provided).
++     * @type String
++     * @property stack
++     */
++    this.stack /*:String*/ = cause.stack;
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
++//-----------------------------------------------------------------------------
++// ArrayAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ArrayAssert object provides functions to test JavaScript array objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ArrayAssert
++ * @static
++ */
++ 
++YAHOO.util.ArrayAssert = {
++
++    /**
++     * Asserts that a value is present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method contains
++     * @static
++     */
++    contains : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * be found.
++     * @param {Object[]} needles An array of values that are expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsItems
++     * @static
++     */
++    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        //begin checking values
++        for (var i=0; i < needles.length; i++){
++            this.contains(needles[i], haystack, message);
++        }
++    },
++
++    /**
++     * Asserts that a value matching some condition is present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsMatch
++     * @static
++     */
++    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
++        }
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a value is not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContain
++     * @static
++     */
++    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * not be found.
++     * @param {Object[]} needles An array of values that are not expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainItems
++     * @static
++     */
++    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        for (var i=0; i < needles.length; i++){
++            this.doesNotContain(needles[i], haystack, message);
++        }
++
++    },
++        
++    /**
++     * Asserts that no values matching a condition are present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainMatch
++     * @static
++     */
++    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
++        }
++
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++        
++    /**
++     * Asserts that the given value is contained in an array at the specified index.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method indexOf
++     * @static
++     */
++    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        //try to find the value in the array
++        for (var i=0; i < haystack.length; i++){
++            if (haystack[i] === needle){
++                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
++                return;
++            }
++        }
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
++    },
++        
++    /**
++     * Asserts that the values in an array are equal, and in the same position,
++     * as values in another array. This uses the double equals sign
++     * so type cohersion may occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreEqual
++     * @static
++     */
++    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++       
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areEqual(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
++        }
++    },
++    
++    /**
++     * Asserts that the values in an array are equivalent, and in the same position,
++     * as values in another array. This uses a function to determine if the values
++     * are equivalent. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {Function} comparator A function that returns true if the values are equivalent
++     *      or false if not.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @return {Void}
++     * @method itemsAreEquivalent
++     * @static
++     */
++    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
++                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
++        
++        //make sure the comparator is valid
++        if (typeof comparator != "function"){
++            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
++        }
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            if (!comparator(expected[i], actual[i])){
++                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
++            }
++        }
++    },
++    
++    /**
++     * Asserts that an array is empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isEmpty
++     * @static
++     */
++    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length > 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that an array is not empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotEmpty
++     * @static
++     */
++    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length === 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that the values in an array are the same, and in the same position,
++     * as values in another array. This uses the triple equals sign
++     * so no type cohersion will occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreSame
++     * @static
++     */
++    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
++                          message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areSame(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
++        }
++    },
++    
++    /**
++     * Asserts that the given value is contained in an array at the specified index,
++     * starting from the back of the array.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method lastIndexOf
++     * @static
++     */
++    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        var Assert = YAHOO.util.Assert;
++    
++        //try to find the value in the array
++        for (var i=haystack.length; i >= 0; i--){
++            if (haystack[i] === needle){
++                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
++                return;
++            }
++        }
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
++    }
++    
++};
++YAHOO.namespace("util");
++
++
++//-----------------------------------------------------------------------------
++// ObjectAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ObjectAssert object provides functions to test JavaScript objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ObjectAssert
++ * @static
++ */
++YAHOO.util.ObjectAssert = {
++        
++    /**
++     * Asserts that all properties in the object exist in another object.
++     * @param {Object} expected An object with the expected properties.
++     * @param {Object} actual An object with the actual properties.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method propertiesAreEqual
++     * @static
++     */
++    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //get all properties in the object
++        var properties /*:Array*/ = [];        
++        for (var property in expected){
++            properties.push(property);
++        }
++        
++        //see if the properties are in the expected object
++        for (var i=0; i < properties.length; i++){
++            Assert.isNotUndefined(actual[properties[i]], 
++                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
++        }
++
++    },
++    
++    /**
++     * Asserts that an object has a property with the given name.
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(propertyName in object)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
++        }    
++    },
++    
++    /**
++     * Asserts that a property with the given name exists on an object instance (not on its prototype).
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
++        }     
++    }
++};
++//-----------------------------------------------------------------------------
++// DateAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The DateAssert object provides functions to test JavaScript Date objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class DateAssert
++ * @static
++ */
++ 
++YAHOO.util.DateAssert = {
++
++    /**
++     * Asserts that a date's month, day, and year are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method datesAreEqual
++     * @static
++     */
++    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
++            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
++            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
++        } else {
++            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    },
++
++    /**
++     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method timesAreEqual
++     * @static
++     */
++    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
++            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
++            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
++        } else {
++            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    }
++    
++};
++YAHOO.register("yuitest_core", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/public/js/yui/yuitest/yuitest_core-min.js b/pylons_app/public/js/yui/yuitest/yuitest_core-min.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/yuitest_core-min.js
+@@ -0,0 +1,9 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");(function(){var A=0;YAHOO.tool.TestCase=function(B){this._should={};for(var C in B){this[C]=B[C];}if(!YAHOO.lang.isString(this.name)){this.name="testCase"+(A++);}};YAHOO.tool.TestCase.prototype={resume:function(B){YAHOO.tool.TestRunner.resume(B);},wait:function(D,C){var B=arguments;if(YAHOO.lang.isFunction(B[0])){throw new YAHOO.tool.TestCase.Wait(B[0],B[1]);}else{throw new YAHOO.tool.TestCase.Wait(function(){YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");},(YAHOO.lang.isNumber(B[0])?B[0]:10000));}},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(C,B){this.segment=(YAHOO.lang.isFunction(C)?C:null);this.delay=(YAHOO.lang.isNumber(B)?B:0);};})();YAHOO.namespace("tool");YAHOO.tool.TestSuite=function(A){this.name="";this.items=[];if(YAHOO.lang.isString(A)){this.name=A;}else{if(YAHOO.lang.isObject(A)){YAHOO.lang.augmentObject(this,A,true);}}if(this.name===""){this.name=YAHOO.util.Dom.generateId(null,"testSuite");}};YAHOO.tool.TestSuite.prototype={add:function(A){if(A instanceof YAHOO.tool.TestSuite||A instanceof YAHOO.tool.TestCase){this.items.push(A);}},setUp:function(){},tearDown:function(){}};YAHOO.namespace("tool");YAHOO.tool.TestRunner=(function(){function B(C){this.testObject=C;this.firstChild=null;this.lastChild=null;this.parent=null;this.next=null;this.results={passed:0,failed:0,total:0,ignored:0};if(C instanceof YAHOO.tool.TestSuite){this.results.type="testsuite";this.results.name=C.name;}else{if(C instanceof YAHOO.tool.TestCase){this.results.type="testcase";this.results.name=C.name;}}}B.prototype={appendChild:function(C){var D=new B(C);if(this.firstChild===null){this.firstChild=this.lastChild=D;}else{this.lastChild.next=D;this.lastChild=D;}D.parent=this;return D;}};function A(){A.superclass.constructor.apply(this,arguments);this.masterSuite=new YAHOO.tool.TestSuite("YUI Test Results");this._cur=null;this._root=null;var D=[this.TEST_CASE_BEGIN_EVENT,this.TEST_CASE_COMPLETE_EVENT,this.TEST_SUITE_BEGIN_EVENT,this.TEST_SUITE_COMPLETE_EVENT,this.TEST_PASS_EVENT,this.TEST_FAIL_EVENT,this.TEST_IGNORE_EVENT,this.COMPLETE_EVENT,this.BEGIN_EVENT];for(var C=0;C<D.length;C++){this.createEvent(D[C],{scope:this});}}YAHOO.lang.extend(A,YAHOO.util.EventProvider,{TEST_CASE_BEGIN_EVENT:"testcasebegin",TEST_CASE_COMPLETE_EVENT:"testcasecomplete",TEST_SUITE_BEGIN_EVENT:"testsuitebegin",TEST_SUITE_COMPLETE_EVENT:"testsuitecomplete",TEST_PASS_EVENT:"pass",TEST_FAIL_EVENT:"fail",TEST_IGNORE_EVENT:"ignore",COMPLETE_EVENT:"complete",BEGIN_EVENT:"begin",_addTestCaseToTestTree:function(C,D){var E=C.appendChild(D);for(var F in D){if(F.indexOf("test")===0&&YAHOO.lang.isFunction(D[F])){E.appendChild(F);}}},_addTestSuiteToTestTree:function(C,F){var E=C.appendChild(F);for(var D=0;D<F.items.length;D++){if(F.items[D] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(E,F.items[D]);}else{if(F.items[D] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(E,F.items[D]);}}}},_buildTestTree:function(){this._root=new B(this.masterSuite);this._cur=this._root;for(var C=0;C<this.masterSuite.items.length;C++){if(this.masterSuite.items[C] instanceof YAHOO.tool.TestSuite){this._addTestSuiteToTestTree(this._root,this.masterSuite.items[C]);}else{if(this.masterSuite.items[C] instanceof YAHOO.tool.TestCase){this._addTestCaseToTestTree(this._root,this.masterSuite.items[C]);}}}},_handleTestObjectComplete:function(C){if(YAHOO.lang.isObject(C.testObject)){C.parent.results.passed+=C.results.passed;C.parent.results.failed+=C.results.failed;C.parent.results.total+=C.results.total;C.parent.results.ignored+=C.results.ignored;C.parent.results[C.testObject.name]=C.results;if(C.testObject instanceof YAHOO.tool.TestSuite){C.testObject.tearDown();this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT,{testSuite:C.testObject,results:C.results});}else{if(C.testObject instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_COMPLETE_EVENT,{testCase:C.testObject,results:C.results});}}}},_next:function(){if(this._cur.firstChild){this._cur=this._cur.firstChild;}else{if(this._cur.next){this._cur=this._cur.next;}else{while(this._cur&&!this._cur.next&&this._cur!==this._root){this._handleTestObjectComplete(this._cur);this._cur=this._cur.parent;}if(this._cur==this._root){this._cur.results.type="report";this._cur.results.timestamp=(new Date()).toLocaleString();this._cur.results.duration=(new Date())-this._cur.results.duration;this.fireEvent(this.COMPLETE_EVENT,{results:this._cur.results});this._cur=null;}else{this._handleTestObjectComplete(this._cur);this._cur=this._cur.next;}}}return this._cur;},_run:function(){var E=false;var D=this._next();if(D!==null){var C=D.testObject;if(YAHOO.lang.isObject(C)){if(C instanceof YAHOO.tool.TestSuite){this.fireEvent(this.TEST_SUITE_BEGIN_EVENT,{testSuite:C});C.setUp();}else{if(C instanceof YAHOO.tool.TestCase){this.fireEvent(this.TEST_CASE_BEGIN_EVENT,{testCase:C});}}if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{this._runTest(D);}}},_resumeTest:function(G){var C=this._cur;var H=C.testObject;var E=C.parent.testObject;if(E.__yui_wait){clearTimeout(E.__yui_wait);delete E.__yui_wait;}var K=(E._should.fail||{})[H];var D=(E._should.error||{})[H];var F=false;var I=null;try{G.apply(E);if(K){I=new YAHOO.util.ShouldFail();F=true;}else{if(D){I=new YAHOO.util.ShouldError();F=true;}}}catch(J){if(J instanceof YAHOO.util.AssertionError){if(!K){I=J;F=true;}}else{if(J instanceof YAHOO.tool.TestCase.Wait){if(YAHOO.lang.isFunction(J.segment)){if(YAHOO.lang.isNumber(J.delay)){if(typeof setTimeout!="undefined"){E.__yui_wait=setTimeout(function(){YAHOO.tool.TestRunner._resumeTest(J.segment);},J.delay);}else{throw new Error("Asynchronous tests not supported in this environment.");}}}return;}else{if(!D){I=new YAHOO.util.UnexpectedError(J);F=true;}else{if(YAHOO.lang.isString(D)){if(J.message!=D){I=new YAHOO.util.UnexpectedError(J);F=true;}}else{if(YAHOO.lang.isFunction(D)){if(!(J instanceof D)){I=new YAHOO.util.UnexpectedError(J);
++F=true;}}else{if(YAHOO.lang.isObject(D)){if(!(J instanceof D.constructor)||J.message!=D.message){I=new YAHOO.util.UnexpectedError(J);F=true;}}}}}}}}if(F){this.fireEvent(this.TEST_FAIL_EVENT,{testCase:E,testName:H,error:I});}else{this.fireEvent(this.TEST_PASS_EVENT,{testCase:E,testName:H});}E.tearDown();C.parent.results[H]={result:F?"fail":"pass",message:I?I.getMessage():"Test passed",type:"test",name:H};if(F){C.parent.results.failed++;}else{C.parent.results.passed++;}C.parent.results.total++;if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}},_runTest:function(F){var C=F.testObject;var D=F.parent.testObject;var G=D[C];var E=(D._should.ignore||{})[C];if(E){F.parent.results[C]={result:"ignore",message:"Test ignored",type:"test",name:C};F.parent.results.ignored++;F.parent.results.total++;this.fireEvent(this.TEST_IGNORE_EVENT,{testCase:D,testName:C});if(typeof setTimeout!="undefined"){setTimeout(function(){YAHOO.tool.TestRunner._run();},0);}else{this._run();}}else{D.setUp();this._resumeTest(G);}},fireEvent:function(C,D){D=D||{};D.type=C;A.superclass.fireEvent.call(this,C,D);},add:function(C){this.masterSuite.add(C);},clear:function(){this.masterSuite.items=[];},resume:function(C){this._resumeTest(C||function(){});},run:function(C){var D=YAHOO.tool.TestRunner;D._buildTestTree();D._root.results.duration=(new Date()).getTime();D.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={_formatMessage:function(B,A){var C=B;if(YAHOO.lang.isString(B)&&B.length>0){return YAHOO.lang.substitute(B,{message:A});}else{return A;}},fail:function(A){throw new YAHOO.util.AssertionError(this._formatMessage(A,"Test force-failed."));},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be equal."),B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be equal."),A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(this._formatMessage(B,"Values should not be the same."),A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Values should be the same."),B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be false."),false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be true."),true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be NaN."),NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be NaN."),NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Values should not be null."),null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should not be undefined."),undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be null."),null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be undefined."),undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an array."),B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a Boolean."),B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a function."),B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value isn't an instance of expected type."),B,C);}},isNumber:function(B,A){if(!YAHOO.lang.isNumber(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a number."),B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be an object."),B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(this._formatMessage(A,"Value should be a string."),B);}},isTypeOf:function(B,C,A){if(typeof C!=B){throw new YAHOO.util.ComparisonFailure(this._formatMessage(A,"Value should be of type "+B+"."),B,typeof C);}}};YAHOO.util.AssertionError=function(A){this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Object,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();}});YAHOO.util.ComparisonFailure=function(B,A,C){YAHOO.util.AssertionError.call(this,B);this.expected=A;this.actual=C;this.name="ComparisonFailure";};YAHOO.lang.extend(YAHOO.util.ComparisonFailure,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nExpected: "+this.expected+" ("+(typeof this.expected)+")"+"\nActual:"+this.actual+" ("+(typeof this.actual)+")";}});YAHOO.util.UnexpectedValue=function(B,A){YAHOO.util.AssertionError.call(this,B);this.unexpected=A;this.name="UnexpectedValue";};YAHOO.lang.extend(YAHOO.util.UnexpectedValue,YAHOO.util.AssertionError,{getMessage:function(){return this.message+"\nUnexpected: "+this.unexpected+" ("+(typeof this.unexpected)+") ";}});YAHOO.util.ShouldFail=function(A){YAHOO.util.AssertionError.call(this,A||"This test should fail but didn't.");this.name="ShouldFail";};YAHOO.lang.extend(YAHOO.util.ShouldFail,YAHOO.util.AssertionError);YAHOO.util.ShouldError=function(A){YAHOO.util.AssertionError.call(this,A||"This test should have thrown an error but didn't.");this.name="ShouldError";};YAHOO.lang.extend(YAHOO.util.ShouldError,YAHOO.util.AssertionError);YAHOO.util.UnexpectedError=function(A){YAHOO.util.AssertionError.call(this,"Unexpected error: "+A.message);
++this.cause=A;this.name="UnexpectedError";this.stack=A.stack;};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){F.fail(F._formatMessage(B,"Value "+E+" ("+(typeof E)+") not found in array ["+D+"]."));}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){F.fail(F._formatMessage(B,"No match found in array ["+D+"]."));}},doesNotContain:function(E,D,B){var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},doesNotContainItems:function(C,D,B){for(var A=0;A<C.length;A++){this.doesNotContain(C[A],D,B);}},doesNotContainMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");}var C=false;var F=YAHOO.util.Assert;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){F.fail(F._formatMessage(B,"Value found in array ["+D+"]."));}},indexOf:function(E,D,A,C){for(var B=0;B<D.length;B++){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return;}}var F=YAHOO.util.Assert;F.fail(F._formatMessage(C,"Value doesn't exist in array ["+D+"]."));},itemsAreEqual:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areEqual(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not equal."));}},itemsAreEquivalent:function(E,F,B,D){if(typeof B!="function"){throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");}var A=Math.max(E.length,F.length||0);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(D,"Values in position "+C+" are not equivalent."),E[C],F[C]);}}},isEmpty:function(C,A){if(C.length>0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should be empty."));}},isNotEmpty:function(C,A){if(C.length===0){var B=YAHOO.util.Assert;B.fail(B._formatMessage(A,"Array should not be empty."));}},itemsAreSame:function(D,F,C){var A=Math.max(D.length,F.length||0);var E=YAHOO.util.Assert;for(var B=0;B<A;B++){E.areSame(D[B],F[B],E._formatMessage(C,"Values in position "+B+" are not the same."));}},lastIndexOf:function(E,D,A,C){var F=YAHOO.util.Assert;for(var B=D.length;B>=0;B--){if(D[B]===E){F.areEqual(A,B,F._formatMessage(C,"Value exists at index "+B+" but should be at index "+A+"."));return;}}F.fail(F._formatMessage(C,"Value doesn't exist in array."));}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,G,C){var F=YAHOO.util.Assert;var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){F.isNotUndefined(G[B[A]],F._formatMessage(C,"Property '"+B[A]+"' expected."));}},hasProperty:function(A,B,C){if(!(A in B)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object."));}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){var D=YAHOO.util.Assert;D.fail(D._formatMessage(C,"Property '"+A+"' not found on object instance."));}}};YAHOO.util.DateAssert={datesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getFullYear(),D.getFullYear(),C._formatMessage(A,"Years should be equal."));C.areEqual(B.getMonth(),D.getMonth(),C._formatMessage(A,"Months should be equal."));C.areEqual(B.getDate(),D.getDate(),C._formatMessage(A,"Day of month should be equal."));}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,D,A){if(B instanceof Date&&D instanceof Date){var C=YAHOO.util.Assert;C.areEqual(B.getHours(),D.getHours(),C._formatMessage(A,"Hours should be equal."));C.areEqual(B.getMinutes(),D.getMinutes(),C._formatMessage(A,"Minutes should be equal."));C.areEqual(B.getSeconds(),D.getSeconds(),C._formatMessage(A,"Seconds should be equal."));}else{throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");}}};YAHOO.register("yuitest_core",YAHOO.tool.TestRunner,{version:"2.8.0r4",build:"2449"});
+\ No newline at end of file
+diff --git a/pylons_app/public/js/yui/yuitest/yuitest_core.js b/pylons_app/public/js/yui/yuitest/yuitest_core.js
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/public/js/yui/yuitest/yuitest_core.js
+@@ -0,0 +1,1976 @@
++/*
++Copyright (c) 2009, Yahoo! Inc. All rights reserved.
++Code licensed under the BSD License:
++http://developer.yahoo.net/yui/license.txt
++version: 2.8.0r4
++*/
++YAHOO.namespace("tool");
++
++//-----------------------------------------------------------------------------
++// TestCase object
++//-----------------------------------------------------------------------------
++(function(){
++    
++    //used for autogenerating test case names
++    var tempId = 0;
++    
++    /**
++     * Test case containing various tests to run.
++     * @param template An object containing any number of test methods, other methods,
++     *                 an optional name, and anything else the test case needs.
++     * @class TestCase
++     * @namespace YAHOO.tool
++     * @constructor
++     */
++    YAHOO.tool.TestCase = function (template /*:Object*/) {
++        
++        /**
++         * Special rules for the test case. Possible subobjects
++         * are fail, for tests that should fail, and error, for
++         * tests that should throw an error.
++         */
++        this._should /*:Object*/ = {};
++        
++        //copy over all properties from the template to this object
++        for (var prop in template) {
++            this[prop] = template[prop];
++        }    
++        
++        //check for a valid name
++        if (!YAHOO.lang.isString(this.name)){
++            /**
++             * Name for the test case.
++             */
++            this.name /*:String*/ = "testCase" + (tempId++);
++        }
++    
++    };
++    
++    
++    YAHOO.tool.TestCase.prototype = {  
++    
++        /**
++         * Resumes a paused test and runs the given function.
++         * @param {Function} segment (Optional) The function to run.
++         *      If omitted, the test automatically passes.
++         * @return {Void}
++         * @method resume
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            YAHOO.tool.TestRunner.resume(segment);
++        },
++    
++        /**
++         * Causes the test case to wait a specified amount of time and then
++         * continue executing the given code.
++         * @param {Function} segment (Optional) The function to run after the delay.
++         *      If omitted, the TestRunner will wait until resume() is called.
++         * @param {int} delay (Optional) The number of milliseconds to wait before running
++         *      the function. If omitted, defaults to zero.
++         * @return {Void}
++         * @method wait
++         */
++        wait : function (segment /*:Function*/, delay /*:int*/) /*:Void*/{
++            var args = arguments;
++            if (YAHOO.lang.isFunction(args[0])){
++                throw new YAHOO.tool.TestCase.Wait(args[0], args[1]);
++            } else {
++                throw new YAHOO.tool.TestCase.Wait(function(){
++                    YAHOO.util.Assert.fail("Timeout: wait() called but resume() never called.");
++                }, (YAHOO.lang.isNumber(args[0]) ? args[0] : 10000));
++            }            
++        },
++    
++        //-------------------------------------------------------------------------
++        // Stub Methods
++        //-------------------------------------------------------------------------
++    
++        /**
++         * Function to run before each test is executed.
++         * @return {Void}
++         * @method setUp
++         */
++        setUp : function () /*:Void*/ {
++        },
++        
++        /**
++         * Function to run after each test is executed.
++         * @return {Void}
++         * @method tearDown
++         */
++        tearDown: function () /*:Void*/ {    
++        }
++    };
++    
++    /**
++     * Represents a stoppage in test execution to wait for an amount of time before
++     * continuing.
++     * @param {Function} segment A function to run when the wait is over.
++     * @param {int} delay The number of milliseconds to wait before running the code.
++     * @class Wait
++     * @namespace YAHOO.tool.TestCase
++     * @constructor
++     *
++     */
++    YAHOO.tool.TestCase.Wait = function (segment /*:Function*/, delay /*:int*/) {
++        
++        /**
++         * The segment of code to run when the wait is over.
++         * @type Function
++         * @property segment
++         */
++        this.segment /*:Function*/ = (YAHOO.lang.isFunction(segment) ? segment : null);
++    
++        /**
++         * The delay before running the segment of code.
++         * @type int
++         * @property delay
++         */
++        this.delay /*:int*/ = (YAHOO.lang.isNumber(delay) ? delay : 0);
++    
++    };
++
++})();
++YAHOO.namespace("tool");
++
++
++//-----------------------------------------------------------------------------
++// TestSuite object
++//-----------------------------------------------------------------------------
++
++/**
++ * A test suite that can contain a collection of TestCase and TestSuite objects.
++ * @param {String||Object} data The name of the test suite or an object containing
++ *      a name property as well as setUp and tearDown methods.
++ * @namespace YAHOO.tool
++ * @class TestSuite
++ * @constructor
++ */
++YAHOO.tool.TestSuite = function (data /*:String||Object*/) {
++
++    /**
++     * The name of the test suite.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "";
++
++    /**
++     * Array of test suites and
++     * @private
++     */
++    this.items /*:Array*/ = [];
++
++    //initialize the properties
++    if (YAHOO.lang.isString(data)){
++        this.name = data;
++    } else if (YAHOO.lang.isObject(data)){
++        YAHOO.lang.augmentObject(this, data, true);
++    }
++
++    //double-check name
++    if (this.name === ""){
++        this.name = YAHOO.util.Dom.generateId(null, "testSuite");
++    }
++
++};
++
++YAHOO.tool.TestSuite.prototype = {
++    
++    /**
++     * Adds a test suite or test case to the test suite.
++     * @param {YAHOO.tool.TestSuite||YAHOO.tool.TestCase} testObject The test suite or test case to add.
++     * @return {Void}
++     * @method add
++     */
++    add : function (testObject /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++        if (testObject instanceof YAHOO.tool.TestSuite || testObject instanceof YAHOO.tool.TestCase) {
++            this.items.push(testObject);
++        }
++    },
++    
++    //-------------------------------------------------------------------------
++    // Stub Methods
++    //-------------------------------------------------------------------------
++
++    /**
++     * Function to run before each test is executed.
++     * @return {Void}
++     * @method setUp
++     */
++    setUp : function () /*:Void*/ {
++    },
++    
++    /**
++     * Function to run after each test is executed.
++     * @return {Void}
++     * @method tearDown
++     */
++    tearDown: function () /*:Void*/ {
++    }
++    
++};
++YAHOO.namespace("tool");
++
++/**
++ * The YUI test tool
++ * @module yuitest
++ * @namespace YAHOO.tool
++ * @requires yahoo,dom,event,logger
++ * @optional event-simulte
++ */
++
++
++//-----------------------------------------------------------------------------
++// TestRunner object
++//-----------------------------------------------------------------------------
++
++
++YAHOO.tool.TestRunner = (function(){
++
++    /**
++     * A node in the test tree structure. May represent a TestSuite, TestCase, or
++     * test function.
++     * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++     * @class TestNode
++     * @constructor
++     * @private
++     */
++    function TestNode(testObject /*:Variant*/){
++    
++        /**
++         * The TestSuite, TestCase, or test function represented by this node.
++         * @type Variant
++         * @property testObject
++         */
++        this.testObject = testObject;
++        
++        /**
++         * Pointer to this node's first child.
++         * @type TestNode
++         * @property firstChild
++         */        
++        this.firstChild /*:TestNode*/ = null;
++        
++        /**
++         * Pointer to this node's last child.
++         * @type TestNode
++         * @property lastChild
++         */        
++        this.lastChild = null;
++        
++        /**
++         * Pointer to this node's parent.
++         * @type TestNode
++         * @property parent
++         */        
++        this.parent = null; 
++   
++        /**
++         * Pointer to this node's next sibling.
++         * @type TestNode
++         * @property next
++         */        
++        this.next = null;
++        
++        /**
++         * Test results for this test object.
++         * @type object
++         * @property results
++         */                
++        this.results /*:Object*/ = {
++            passed : 0,
++            failed : 0,
++            total : 0,
++            ignored : 0
++        };
++        
++        //initialize results
++        if (testObject instanceof YAHOO.tool.TestSuite){
++            this.results.type = "testsuite";
++            this.results.name = testObject.name;
++        } else if (testObject instanceof YAHOO.tool.TestCase){
++            this.results.type = "testcase";
++            this.results.name = testObject.name;
++        }
++       
++    }
++    
++    TestNode.prototype = {
++    
++        /**
++         * Appends a new test object (TestSuite, TestCase, or test function name) as a child
++         * of this node.
++         * @param {Variant} testObject A TestSuite, TestCase, or the name of a test function.
++         * @return {Void}
++         */
++        appendChild : function (testObject /*:Variant*/) /*:Void*/{
++            var node = new TestNode(testObject);
++            if (this.firstChild === null){
++                this.firstChild = this.lastChild = node;
++            } else {
++                this.lastChild.next = node;
++                this.lastChild = node;
++            }
++            node.parent = this;
++            return node;
++        }       
++    };
++
++    /**
++     * Runs test suites and test cases, providing events to allowing for the
++     * interpretation of test results.
++     * @namespace YAHOO.tool
++     * @class TestRunner
++     * @static
++     */
++    function TestRunner(){
++    
++        //inherit from EventProvider
++        TestRunner.superclass.constructor.apply(this,arguments);
++        
++        /**
++         * Suite on which to attach all TestSuites and TestCases to be run.
++         * @type YAHOO.tool.TestSuite
++         * @property masterSuite
++         * @private
++         * @static
++         */
++        this.masterSuite /*:YAHOO.tool.TestSuite*/ = new YAHOO.tool.TestSuite("YUI Test Results");        
++
++        /**
++         * Pointer to the current node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _cur
++         * @static
++         */
++        this._cur = null;
++        
++        /**
++         * Pointer to the root node in the test tree.
++         * @type TestNode
++         * @private
++         * @property _root
++         * @static
++         */
++        this._root = null;
++        
++        //create events
++        var events /*:Array*/ = [
++            this.TEST_CASE_BEGIN_EVENT,
++            this.TEST_CASE_COMPLETE_EVENT,
++            this.TEST_SUITE_BEGIN_EVENT,
++            this.TEST_SUITE_COMPLETE_EVENT,
++            this.TEST_PASS_EVENT,
++            this.TEST_FAIL_EVENT,
++            this.TEST_IGNORE_EVENT,
++            this.COMPLETE_EVENT,
++            this.BEGIN_EVENT
++        ];
++        for (var i=0; i < events.length; i++){
++            this.createEvent(events[i], { scope: this });
++        }       
++   
++    }
++    
++    YAHOO.lang.extend(TestRunner, YAHOO.util.EventProvider, {
++    
++        //-------------------------------------------------------------------------
++        // Constants
++        //-------------------------------------------------------------------------
++         
++        /**
++         * Fires when a test case is opened but before the first 
++         * test is executed.
++         * @event testcasebegin
++         */         
++        TEST_CASE_BEGIN_EVENT /*:String*/ : "testcasebegin",
++        
++        /**
++         * Fires when all tests in a test case have been executed.
++         * @event testcasecomplete
++         */        
++        TEST_CASE_COMPLETE_EVENT /*:String*/ : "testcasecomplete",
++        
++        /**
++         * Fires when a test suite is opened but before the first 
++         * test is executed.
++         * @event testsuitebegin
++         */        
++        TEST_SUITE_BEGIN_EVENT /*:String*/ : "testsuitebegin",
++        
++        /**
++         * Fires when all test cases in a test suite have been
++         * completed.
++         * @event testsuitecomplete
++         */        
++        TEST_SUITE_COMPLETE_EVENT /*:String*/ : "testsuitecomplete",
++        
++        /**
++         * Fires when a test has passed.
++         * @event pass
++         */        
++        TEST_PASS_EVENT /*:String*/ : "pass",
++        
++        /**
++         * Fires when a test has failed.
++         * @event fail
++         */        
++        TEST_FAIL_EVENT /*:String*/ : "fail",
++        
++        /**
++         * Fires when a test has been ignored.
++         * @event ignore
++         */        
++        TEST_IGNORE_EVENT /*:String*/ : "ignore",
++        
++        /**
++         * Fires when all test suites and test cases have been completed.
++         * @event complete
++         */        
++        COMPLETE_EVENT /*:String*/ : "complete",
++        
++        /**
++         * Fires when the run() method is called.
++         * @event begin
++         */        
++        BEGIN_EVENT /*:String*/ : "begin",    
++        
++        //-------------------------------------------------------------------------
++        // Test Tree-Related Methods
++        //-------------------------------------------------------------------------
++
++        /**
++         * Adds a test case to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test case to as a child.
++         * @param {YAHOO.tool.TestCase} testCase The test case to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestCaseToTestTree
++         */
++       _addTestCaseToTestTree : function (parentNode /*:TestNode*/, testCase /*:YAHOO.tool.TestCase*/) /*:Void*/{
++            
++            //add the test suite
++            var node = parentNode.appendChild(testCase);
++            
++            //iterate over the items in the test case
++            for (var prop in testCase){
++                if (prop.indexOf("test") === 0 && YAHOO.lang.isFunction(testCase[prop])){
++                    node.appendChild(prop);
++                }
++            }
++         
++        },
++        
++        /**
++         * Adds a test suite to the test tree as a child of the specified node.
++         * @param {TestNode} parentNode The node to add the test suite to as a child.
++         * @param {YAHOO.tool.TestSuite} testSuite The test suite to add.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _addTestSuiteToTestTree
++         */
++        _addTestSuiteToTestTree : function (parentNode /*:TestNode*/, testSuite /*:YAHOO.tool.TestSuite*/) /*:Void*/ {
++            
++            //add the test suite
++            var node = parentNode.appendChild(testSuite);
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < testSuite.items.length; i++){
++                if (testSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(node, testSuite.items[i]);
++                } else if (testSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(node, testSuite.items[i]);
++                }                   
++            }            
++        },
++        
++        /**
++         * Builds the test tree based on items in the master suite. The tree is a hierarchical
++         * representation of the test suites, test cases, and test functions. The resulting tree
++         * is stored in _root and the pointer _cur is set to the root initially.
++         * @return {Void}
++         * @static
++         * @private
++         * @method _buildTestTree
++         */
++        _buildTestTree : function () /*:Void*/ {
++        
++            this._root = new TestNode(this.masterSuite);
++            this._cur = this._root;
++            
++            //iterate over the items in the master suite
++            for (var i=0; i < this.masterSuite.items.length; i++){
++                if (this.masterSuite.items[i] instanceof YAHOO.tool.TestSuite) {
++                    this._addTestSuiteToTestTree(this._root, this.masterSuite.items[i]);
++                } else if (this.masterSuite.items[i] instanceof YAHOO.tool.TestCase) {
++                    this._addTestCaseToTestTree(this._root, this.masterSuite.items[i]);
++                }                   
++            }            
++        
++        }, 
++    
++        //-------------------------------------------------------------------------
++        // Private Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Handles the completion of a test object's tests. Tallies test results 
++         * from one level up to the next.
++         * @param {TestNode} node The TestNode representing the test object.
++         * @return {Void}
++         * @method _handleTestObjectComplete
++         * @private
++         * @static
++         */
++        _handleTestObjectComplete : function (node /*:TestNode*/) /*:Void*/ {
++            if (YAHOO.lang.isObject(node.testObject)){
++                node.parent.results.passed += node.results.passed;
++                node.parent.results.failed += node.results.failed;
++                node.parent.results.total += node.results.total;                
++                node.parent.results.ignored += node.results.ignored;                
++                node.parent.results[node.testObject.name] = node.results;
++            
++                if (node.testObject instanceof YAHOO.tool.TestSuite){
++                    node.testObject.tearDown();
++                    this.fireEvent(this.TEST_SUITE_COMPLETE_EVENT, { testSuite: node.testObject, results: node.results});
++                } else if (node.testObject instanceof YAHOO.tool.TestCase){
++                    this.fireEvent(this.TEST_CASE_COMPLETE_EVENT, { testCase: node.testObject, results: node.results});
++                }      
++            } 
++        },                
++        
++        //-------------------------------------------------------------------------
++        // Navigation Methods
++        //-------------------------------------------------------------------------
++        
++        /**
++         * Retrieves the next node in the test tree.
++         * @return {TestNode} The next node in the test tree or null if the end is reached.
++         * @private
++         * @static
++         * @method _next
++         */
++        _next : function () /*:TestNode*/ {
++        
++            if (this._cur.firstChild) {
++                this._cur = this._cur.firstChild;
++            } else if (this._cur.next) {
++                this._cur = this._cur.next;            
++            } else {
++                while (this._cur && !this._cur.next && this._cur !== this._root){
++                    this._handleTestObjectComplete(this._cur);
++                    this._cur = this._cur.parent;
++                }
++                
++                if (this._cur == this._root){
++                    this._cur.results.type = "report";
++                    this._cur.results.timestamp = (new Date()).toLocaleString();
++                    this._cur.results.duration = (new Date()) - this._cur.results.duration;
++                    this.fireEvent(this.COMPLETE_EVENT, { results: this._cur.results});
++                    this._cur = null;
++                } else {
++                    this._handleTestObjectComplete(this._cur);               
++                    this._cur = this._cur.next;                
++                }
++            }
++        
++            return this._cur;
++        },
++        
++        /**
++         * Runs a test case or test suite, returning the results.
++         * @param {YAHOO.tool.TestCase|YAHOO.tool.TestSuite} testObject The test case or test suite to run.
++         * @return {Object} Results of the execution with properties passed, failed, and total.
++         * @private
++         * @method _run
++         * @static
++         */
++        _run : function () /*:Void*/ {
++        
++            //flag to indicate if the TestRunner should wait before continuing
++            var shouldWait /*:Boolean*/ = false;
++            
++            //get the next test node
++            var node = this._next();
++            
++            if (node !== null) {
++                var testObject = node.testObject;
++                
++                //figure out what to do
++                if (YAHOO.lang.isObject(testObject)){
++                    if (testObject instanceof YAHOO.tool.TestSuite){
++                        this.fireEvent(this.TEST_SUITE_BEGIN_EVENT, { testSuite: testObject });
++                        testObject.setUp();
++                    } else if (testObject instanceof YAHOO.tool.TestCase){
++                        this.fireEvent(this.TEST_CASE_BEGIN_EVENT, { testCase: testObject });
++                    }
++                    
++                    //some environments don't support setTimeout
++                    if (typeof setTimeout != "undefined"){                    
++                        setTimeout(function(){
++                            YAHOO.tool.TestRunner._run();
++                        }, 0);
++                    } else {
++                        this._run();
++                    }
++                } else {
++                    this._runTest(node);
++                }
++
++            }
++        },
++        
++        _resumeTest : function (segment /*:Function*/) /*:Void*/ {
++        
++            //get relevant information
++            var node /*:TestNode*/ = this._cur;
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            
++            //cancel other waits if available
++            if (testCase.__yui_wait){
++                clearTimeout(testCase.__yui_wait);
++                delete testCase.__yui_wait;
++            }            
++            
++            //get the "should" test cases
++            var shouldFail /*:Object*/ = (testCase._should.fail || {})[testName];
++            var shouldError /*:Object*/ = (testCase._should.error || {})[testName];
++            
++            //variable to hold whether or not the test failed
++            var failed /*:Boolean*/ = false;
++            var error /*:Error*/ = null;
++                
++            //try the test
++            try {
++            
++                //run the test
++                segment.apply(testCase);
++                
++                //if it should fail, and it got here, then it's a fail because it didn't
++                if (shouldFail){
++                    error = new YAHOO.util.ShouldFail();
++                    failed = true;
++                } else if (shouldError){
++                    error = new YAHOO.util.ShouldError();
++                    failed = true;
++                }
++                           
++            } catch (thrown /*:Error*/){
++                if (thrown instanceof YAHOO.util.AssertionError) {
++                    if (!shouldFail){
++                        error = thrown;
++                        failed = true;
++                    }
++                } else if (thrown instanceof YAHOO.tool.TestCase.Wait){
++                
++                    if (YAHOO.lang.isFunction(thrown.segment)){
++                        if (YAHOO.lang.isNumber(thrown.delay)){
++                        
++                            //some environments don't support setTimeout
++                            if (typeof setTimeout != "undefined"){
++                                testCase.__yui_wait = setTimeout(function(){
++                                    YAHOO.tool.TestRunner._resumeTest(thrown.segment);
++                                }, thrown.delay);                             
++                            } else {
++                                throw new Error("Asynchronous tests not supported in this environment.");
++                            }
++                        }
++                    }
++                    
++                    return;
++                
++                } else {
++                    //first check to see if it should error
++                    if (!shouldError) {                        
++                        error = new YAHOO.util.UnexpectedError(thrown);
++                        failed = true;
++                    } else {
++                        //check to see what type of data we have
++                        if (YAHOO.lang.isString(shouldError)){
++                            
++                            //if it's a string, check the error message
++                            if (thrown.message != shouldError){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        } else if (YAHOO.lang.isFunction(shouldError)){
++                        
++                            //if it's a function, see if the error is an instance of it
++                            if (!(thrown instanceof shouldError)){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;
++                            }
++                        
++                        } else if (YAHOO.lang.isObject(shouldError)){
++                        
++                            //if it's an object, check the instance and message
++                            if (!(thrown instanceof shouldError.constructor) || 
++                                    thrown.message != shouldError.message){
++                                error = new YAHOO.util.UnexpectedError(thrown);
++                                failed = true;                                    
++                            }
++                        
++                        }
++                    
++                    }
++                }
++                
++            }
++            
++            //fireEvent appropriate event
++            if (failed) {
++                this.fireEvent(this.TEST_FAIL_EVENT, { testCase: testCase, testName: testName, error: error });
++            } else {
++                this.fireEvent(this.TEST_PASS_EVENT, { testCase: testCase, testName: testName });
++            }
++            
++            //run the tear down
++            testCase.tearDown();
++            
++            //update results
++            node.parent.results[testName] = { 
++                result: failed ? "fail" : "pass",
++                message: error ? error.getMessage() : "Test passed",
++                type: "test",
++                name: testName
++            };
++            
++            if (failed){
++                node.parent.results.failed++;
++            } else {
++                node.parent.results.passed++;
++            }
++            node.parent.results.total++;
++
++            //set timeout not supported in all environments
++            if (typeof setTimeout != "undefined"){
++                setTimeout(function(){
++                    YAHOO.tool.TestRunner._run();
++                }, 0);
++            } else {
++                this._run();
++            }
++        
++        },
++                
++        /**
++         * Runs a single test based on the data provided in the node.
++         * @param {TestNode} node The TestNode representing the test to run.
++         * @return {Void}
++         * @static
++         * @private
++         * @name _runTest
++         */
++        _runTest : function (node /*:TestNode*/) /*:Void*/ {
++        
++            //get relevant information
++            var testName /*:String*/ = node.testObject;
++            var testCase /*:YAHOO.tool.TestCase*/ = node.parent.testObject;
++            var test /*:Function*/ = testCase[testName];
++            
++            //get the "should" test cases
++            var shouldIgnore /*:Object*/ = (testCase._should.ignore || {})[testName];
++            
++            //figure out if the test should be ignored or not
++            if (shouldIgnore){
++            
++                //update results
++                node.parent.results[testName] = { 
++                    result: "ignore",
++                    message: "Test ignored",
++                    type: "test",
++                    name: testName
++                };
++                
++                node.parent.results.ignored++;
++                node.parent.results.total++;
++            
++                this.fireEvent(this.TEST_IGNORE_EVENT, { testCase: testCase, testName: testName });
++                
++                //some environments don't support setTimeout
++                if (typeof setTimeout != "undefined"){                    
++                    setTimeout(function(){
++                        YAHOO.tool.TestRunner._run();
++                    }, 0);              
++                } else {
++                    this._run();
++                }
++
++            } else {
++            
++                //run the setup
++                testCase.setUp();
++                
++                //now call the body of the test
++                this._resumeTest(test);                
++            }
++
++        },        
++        
++        //-------------------------------------------------------------------------
++        // Protected Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Fires events for the TestRunner. This overrides the default fireEvent()
++         * method from EventProvider to add the type property to the data that is
++         * passed through on each event call.
++         * @param {String} type The type of event to fire.
++         * @param {Object} data (Optional) Data for the event.
++         * @method fireEvent
++         * @static
++         * @protected
++         */
++        fireEvent : function (type /*:String*/, data /*:Object*/) /*:Void*/ {
++            data = data || {};
++            data.type = type;
++            TestRunner.superclass.fireEvent.call(this, type, data);
++        },
++        
++        //-------------------------------------------------------------------------
++        // Public Methods
++        //-------------------------------------------------------------------------   
++    
++        /**
++         * Adds a test suite or test case to the list of test objects to run.
++         * @param testObject Either a TestCase or a TestSuite that should be run.
++         * @return {Void}
++         * @method add
++         * @static
++         */
++        add : function (testObject /*:Object*/) /*:Void*/ {
++            this.masterSuite.add(testObject);
++        },
++        
++        /**
++         * Removes all test objects from the runner.
++         * @return {Void}
++         * @method clear
++         * @static
++         */
++        clear : function () /*:Void*/ {
++            this.masterSuite.items = [];
++        },
++        
++        /**
++         * Resumes the TestRunner after wait() was called.
++         * @param {Function} segment The function to run as the rest
++         *      of the haulted test.
++         * @return {Void}
++         * @method resume
++         * @static
++         */
++        resume : function (segment /*:Function*/) /*:Void*/ {
++            this._resumeTest(segment || function(){});
++        },
++    
++        /**
++         * Runs the test suite.
++         * @return {Void}
++         * @method run
++         * @static
++         */
++        run : function (testObject /*:Object*/) /*:Void*/ {
++            
++            //pointer to runner to avoid scope issues 
++            var runner = YAHOO.tool.TestRunner;
++
++            //build the test tree
++            runner._buildTestTree();
++            
++            //set when the test started
++            runner._root.results.duration = (new Date()).getTime();
++            
++            //fire the begin event
++            runner.fireEvent(runner.BEGIN_EVENT);
++       
++            //begin the testing
++            runner._run();
++        }    
++    });
++    
++    return new TestRunner();
++    
++})();
++YAHOO.namespace("util");
++
++//-----------------------------------------------------------------------------
++// Assert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The Assert object provides functions to test JavaScript values against
++ * known and expected results. Whenever a comparison (assertion) fails,
++ * an error is thrown.
++ *
++ * @namespace YAHOO.util
++ * @class Assert
++ * @static
++ */
++YAHOO.util.Assert = {
++
++    //-------------------------------------------------------------------------
++    // Helper Methods
++    //-------------------------------------------------------------------------
++    
++    /**
++     * Formats a message so that it can contain the original assertion message
++     * in addition to the custom message.
++     * @param {String} customMessage The message passed in by the developer.
++     * @param {String} defaultMessage The message created by the error by default.
++     * @return {String} The final error message, containing either or both.
++     * @protected
++     * @static
++     * @method _formatMessage
++     */
++    _formatMessage : function (customMessage /*:String*/, defaultMessage /*:String*/) /*:String*/ {
++        var message = customMessage;
++        if (YAHOO.lang.isString(customMessage) && customMessage.length > 0){
++            return YAHOO.lang.substitute(customMessage, { message: defaultMessage });
++        } else {
++            return defaultMessage;
++        }        
++    },
++    
++    //-------------------------------------------------------------------------
++    // Generic Assertion Methods
++    //-------------------------------------------------------------------------
++    
++    /** 
++     * Forces an assertion error to occur.
++     * @param {String} message (Optional) The message to display with the failure.
++     * @method fail
++     * @static
++     */
++    fail : function (message /*:String*/) /*:Void*/ {
++        throw new YAHOO.util.AssertionError(this._formatMessage(message, "Test force-failed."));
++    },       
++    
++    //-------------------------------------------------------------------------
++    // Equality Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areEqual
++     * @static
++     */
++    areEqual : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected != actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be equal."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not equal to another. This uses the double equals sign
++     * so type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotEqual
++     * @static
++     */
++    areNotEqual : function (unexpected /*:Object*/, actual /*:Object*/, 
++                         message /*:String*/) /*:Void*/ {
++        if (unexpected == actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be equal."), unexpected);
++        }
++    },
++    
++    /**
++     * Asserts that a value is not the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} unexpected The unexpected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areNotSame
++     * @static
++     */
++    areNotSame : function (unexpected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (unexpected === actual) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be the same."), unexpected);
++        }
++    },
++
++    /**
++     * Asserts that a value is the same as another. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} expected The expected value.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method areSame
++     * @static
++     */
++    areSame : function (expected /*:Object*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (expected !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Values should be the same."), expected, actual);
++        }
++    },    
++    
++    //-------------------------------------------------------------------------
++    // Boolean Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is false. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFalse
++     * @static
++     */
++    isFalse : function (actual /*:Boolean*/, message /*:String*/) {
++        if (false !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be false."), false, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is true. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTrue
++     * @static
++     */
++    isTrue : function (actual /*:Boolean*/, message /*:String*/) /*:Void*/ {
++        if (true !== actual) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be true."), true, actual);
++        }
++
++    },
++    
++    //-------------------------------------------------------------------------
++    // Special Value Assertion Methods
++    //-------------------------------------------------------------------------    
++    
++    /**
++     * Asserts that a value is not a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNaN
++     * @static
++     */
++    isNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (!isNaN(actual)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be NaN."), NaN, actual);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not the special NaN value.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNaN
++     * @static
++     */
++    isNotNaN : function (actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (isNaN(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be NaN."), NaN);
++        }    
++    },
++    
++    /**
++     * Asserts that a value is not null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotNull
++     * @static
++     */
++    isNotNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Values should not be null."), null);
++        }
++    },
++
++    /**
++     * Asserts that a value is not undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotUndefined
++     * @static
++     */
++    isNotUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should not be undefined."), undefined);
++        }
++    },
++
++    /**
++     * Asserts that a value is null. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNull
++     * @static
++     */
++    isNull : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNull(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be null."), null, actual);
++        }
++    },
++        
++    /**
++     * Asserts that a value is undefined. This uses the triple equals sign
++     * so no type cohersion may occur.
++     * @param {Object} actual The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isUndefined
++     * @static
++     */
++    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isUndefined(actual)) {
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be undefined."), undefined, actual);
++        }
++    },    
++    
++    //--------------------------------------------------------------------------
++    // Instance Assertion Methods
++    //--------------------------------------------------------------------------    
++   
++    /**
++     * Asserts that a value is an array.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isArray
++     * @static
++     */
++    isArray : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isArray(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an array."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a Boolean.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isBoolean
++     * @static
++     */
++    isBoolean : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isBoolean(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a Boolean."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is a function.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isFunction
++     * @static
++     */
++    isFunction : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isFunction(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a function."), actual);
++        }    
++    },
++   
++    /**
++     * Asserts that a value is an instance of a particular object. This may return
++     * incorrect results when comparing objects from one frame to constructors in
++     * another frame. For best results, don't use in a cross-frame manner.
++     * @param {Function} expected The function that the object should be an instance of.
++     * @param {Object} actual The object to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isInstanceOf
++     * @static
++     */
++    isInstanceOf : function (expected /*:Function*/, actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(actual instanceof expected)){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value isn't an instance of expected type."), expected, actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a number.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNumber
++     * @static
++     */
++    isNumber : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isNumber(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a number."), actual);
++        }    
++    },    
++    
++    /**
++     * Asserts that a value is an object.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isObject
++     * @static
++     */
++    isObject : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isObject(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be an object."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is a string.
++     * @param {Object} actual The value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isString
++     * @static
++     */
++    isString : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.isString(actual)){
++            throw new YAHOO.util.UnexpectedValue(this._formatMessage(message, "Value should be a string."), actual);
++        }
++    },
++    
++    /**
++     * Asserts that a value is of a particular type. 
++     * @param {String} expectedType The expected type of the variable.
++     * @param {Object} actualValue The actual value to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isTypeOf
++     * @static
++     */
++    isTypeOf : function (expected /*:String*/, actual /*:Object*/, message /*:String*/) /*:Void*/{
++        if (typeof actual != expected){
++            throw new YAHOO.util.ComparisonFailure(this._formatMessage(message, "Value should be of type " + expected + "."), expected, typeof actual);
++        }
++    }
++};
++
++//-----------------------------------------------------------------------------
++// Assertion errors
++//-----------------------------------------------------------------------------
++
++/**
++ * AssertionError is thrown whenever an assertion fails. It provides methods
++ * to more easily get at error information and also provides a base class
++ * from which more specific assertion errors can be derived.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @class AssertionError
++ * @extends Error
++ * @constructor
++ */ 
++YAHOO.util.AssertionError = function (message /*:String*/){
++
++    //call superclass
++    //arguments.callee.superclass.constructor.call(this, message);
++    
++    /*
++     * Error message. Must be duplicated to ensure browser receives it.
++     * @type String
++     * @property message
++     */
++    this.message /*:String*/ = message;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "AssertionError";
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.AssertionError, Object, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This should
++     * be overridden by all subclasses to provide specific information.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message;
++    },
++    
++    /**
++     * Returns a string representation of the error.
++     * @method toString
++     * @return {String} A string representation of the error.
++     */
++    toString : function () /*:String*/ {
++        return this.name + ": " + this.getMessage();
++    }
++    
++});
++
++/**
++ * ComparisonFailure is subclass of AssertionError that is thrown whenever
++ * a comparison between two values fails. It provides mechanisms to retrieve
++ * both the expected and actual value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} expected The expected value.
++ * @param {Object} actual The actual value that caused the assertion to fail.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ComparisonFailure
++ * @constructor
++ */ 
++YAHOO.util.ComparisonFailure = function (message /*:String*/, expected /*:Object*/, actual /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The expected value.
++     * @type Object
++     * @property expected
++     */
++    this.expected /*:Object*/ = expected;
++    
++    /**
++     * The actual value.
++     * @type Object
++     * @property actual
++     */
++    this.actual /*:Object*/ = actual;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ComparisonFailure";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ComparisonFailure, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. This message
++     * provides information about the expected and actual values.
++     * @method toString
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nExpected: " + this.expected + " (" + (typeof this.expected) + ")"  +
++            "\nActual:" + this.actual + " (" + (typeof this.actual) + ")";
++    }
++
++});
++
++/**
++ * UnexpectedValue is subclass of AssertionError that is thrown whenever
++ * a value was unexpected in its scope. This typically means that a test
++ * was performed to determine that a value was *not* equal to a certain
++ * value.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @param {Object} unexpected The unexpected value.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedValue
++ * @constructor
++ */ 
++YAHOO.util.UnexpectedValue = function (message /*:String*/, unexpected /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message);
++    
++    /**
++     * The unexpected value.
++     * @type Object
++     * @property unexpected
++     */
++    this.unexpected /*:Object*/ = unexpected;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedValue";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedValue, YAHOO.util.AssertionError, {
++
++    /**
++     * Returns a fully formatted error for an assertion failure. The message
++     * contains information about the unexpected value that was encountered.
++     * @method getMessage
++     * @return {String} A string describing the error.
++     */
++    getMessage : function () /*:String*/ {
++        return this.message + "\nUnexpected: " + this.unexpected + " (" + (typeof this.unexpected) + ") ";
++    }
++
++});
++
++/**
++ * ShouldFail is subclass of AssertionError that is thrown whenever
++ * a test was expected to fail but did not.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldFail
++ * @constructor
++ */  
++YAHOO.util.ShouldFail = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should fail but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldFail";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldFail, YAHOO.util.AssertionError);
++
++/**
++ * ShouldError is subclass of AssertionError that is thrown whenever
++ * a test is expected to throw an error but doesn't.
++ *
++ * @param {String} message The message to display when the error occurs.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class ShouldError
++ * @constructor
++ */  
++YAHOO.util.ShouldError = function (message /*:String*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, message || "This test should have thrown an error but didn't.");
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "ShouldError";
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.ShouldError, YAHOO.util.AssertionError);
++
++/**
++ * UnexpectedError is subclass of AssertionError that is thrown whenever
++ * an error occurs within the course of a test and the test was not expected
++ * to throw an error.
++ *
++ * @param {Error} cause The unexpected error that caused this error to be 
++ *                      thrown.
++ * @namespace YAHOO.util
++ * @extends YAHOO.util.AssertionError
++ * @class UnexpectedError
++ * @constructor
++ */  
++YAHOO.util.UnexpectedError = function (cause /*:Object*/){
++
++    //call superclass
++    YAHOO.util.AssertionError.call(this, "Unexpected error: " + cause.message);
++    
++    /**
++     * The unexpected error that occurred.
++     * @type Error
++     * @property cause
++     */
++    this.cause /*:Error*/ = cause;
++    
++    /**
++     * The name of the error that occurred.
++     * @type String
++     * @property name
++     */
++    this.name /*:String*/ = "UnexpectedError";
++    
++    /**
++     * Stack information for the error (if provided).
++     * @type String
++     * @property stack
++     */
++    this.stack /*:String*/ = cause.stack;
++    
++};
++
++//inherit methods
++YAHOO.lang.extend(YAHOO.util.UnexpectedError, YAHOO.util.AssertionError);
++//-----------------------------------------------------------------------------
++// ArrayAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ArrayAssert object provides functions to test JavaScript array objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ArrayAssert
++ * @static
++ */
++ 
++YAHOO.util.ArrayAssert = {
++
++    /**
++     * Asserts that a value is present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method contains
++     * @static
++     */
++    contains : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "Value " + needle + " (" + (typeof needle) + ") not found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * be found.
++     * @param {Object[]} needles An array of values that are expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsItems
++     * @static
++     */
++    containsItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        //begin checking values
++        for (var i=0; i < needles.length; i++){
++            this.contains(needles[i], haystack, message);
++        }
++    },
++
++    /**
++     * Asserts that a value matching some condition is present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method containsMatch
++     * @static
++     */
++    containsMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");
++        }
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (!found){
++            Assert.fail(Assert._formatMessage(message, "No match found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a value is not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur.
++     * @param {Object} needle The value that is expected in the array.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContain
++     * @static
++     */
++    doesNotContain : function (needle /*:Object*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (haystack[i] === needle) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++
++    /**
++     * Asserts that a set of values are not present in an array. This uses the triple equals 
++     * sign so no type cohersion may occur. For this assertion to pass, all values must
++     * not be found.
++     * @param {Object[]} needles An array of values that are not expected in the array.
++     * @param {Array} haystack An array of values to check.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainItems
++     * @static
++     */
++    doesNotContainItems : function (needles /*:Object[]*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++
++        for (var i=0; i < needles.length; i++){
++            this.doesNotContain(needles[i], haystack, message);
++        }
++
++    },
++        
++    /**
++     * Asserts that no values matching a condition are present in an array. This uses
++     * a function to determine a match.
++     * @param {Function} matcher A function that returns true if the items matches or false if not.
++     * @param {Array} haystack An array of values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method doesNotContainMatch
++     * @static
++     */
++    doesNotContainMatch : function (matcher /*:Function*/, haystack /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //check for valid matcher
++        if (typeof matcher != "function"){
++            throw new TypeError("ArrayAssert.doesNotContainMatch(): First argument must be a function.");
++        }
++
++        var found /*:Boolean*/ = false;
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < haystack.length && !found; i++){
++            if (matcher(haystack[i])) {
++                found = true;
++            }
++        }
++        
++        if (found){
++            Assert.fail(Assert._formatMessage(message, "Value found in array [" + haystack + "]."));
++        }
++    },
++        
++    /**
++     * Asserts that the given value is contained in an array at the specified index.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method indexOf
++     * @static
++     */
++    indexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        //try to find the value in the array
++        for (var i=0; i < haystack.length; i++){
++            if (haystack[i] === needle){
++                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
++                return;
++            }
++        }
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array [" + haystack + "]."));
++    },
++        
++    /**
++     * Asserts that the values in an array are equal, and in the same position,
++     * as values in another array. This uses the double equals sign
++     * so type cohersion may occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreEqual
++     * @static
++     */
++    itemsAreEqual : function (expected /*:Array*/, actual /*:Array*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++       
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areEqual(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not equal."));
++        }
++    },
++    
++    /**
++     * Asserts that the values in an array are equivalent, and in the same position,
++     * as values in another array. This uses a function to determine if the values
++     * are equivalent. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {Function} comparator A function that returns true if the values are equivalent
++     *      or false if not.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @return {Void}
++     * @method itemsAreEquivalent
++     * @static
++     */
++    itemsAreEquivalent : function (expected /*:Array*/, actual /*:Array*/, 
++                           comparator /*:Function*/, message /*:String*/) /*:Void*/ {
++        
++        //make sure the comparator is valid
++        if (typeof comparator != "function"){
++            throw new TypeError("ArrayAssert.itemsAreEquivalent(): Third argument must be a function.");
++        }
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            if (!comparator(expected[i], actual[i])){
++                throw new YAHOO.util.ComparisonFailure(YAHOO.util.Assert._formatMessage(message, "Values in position " + i + " are not equivalent."), expected[i], actual[i]);
++            }
++        }
++    },
++    
++    /**
++     * Asserts that an array is empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isEmpty
++     * @static
++     */
++    isEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length > 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that an array is not empty.
++     * @param {Array} actual The array to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method isNotEmpty
++     * @static
++     */
++    isNotEmpty : function (actual /*:Array*/, message /*:String*/) /*:Void*/ {        
++        if (actual.length === 0){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Array should not be empty."));
++        }
++    },    
++    
++    /**
++     * Asserts that the values in an array are the same, and in the same position,
++     * as values in another array. This uses the triple equals sign
++     * so no type cohersion will occur. Note that the array objects themselves
++     * need not be the same for this test to pass.
++     * @param {Array} expected An array of the expected values.
++     * @param {Array} actual Any array of the actual values.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method itemsAreSame
++     * @static
++     */
++    itemsAreSame : function (expected /*:Array*/, actual /*:Array*/, 
++                          message /*:String*/) /*:Void*/ {
++        
++        //one may be longer than the other, so get the maximum length
++        var len /*:int*/ = Math.max(expected.length, actual.length || 0);
++        var Assert = YAHOO.util.Assert;
++        
++        //begin checking values
++        for (var i=0; i < len; i++){
++            Assert.areSame(expected[i], actual[i], 
++                Assert._formatMessage(message, "Values in position " + i + " are not the same."));
++        }
++    },
++    
++    /**
++     * Asserts that the given value is contained in an array at the specified index,
++     * starting from the back of the array.
++     * This uses the triple equals sign so no type cohersion will occur.
++     * @param {Object} needle The value to look for.
++     * @param {Array} haystack The array to search in.
++     * @param {int} index The index at which the value should exist.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method lastIndexOf
++     * @static
++     */
++    lastIndexOf : function (needle /*:Object*/, haystack /*:Array*/, index /*:int*/, message /*:String*/) /*:Void*/ {
++    
++        var Assert = YAHOO.util.Assert;
++    
++        //try to find the value in the array
++        for (var i=haystack.length; i >= 0; i--){
++            if (haystack[i] === needle){
++                Assert.areEqual(index, i, Assert._formatMessage(message, "Value exists at index " + i + " but should be at index " + index + "."));
++                return;
++            }
++        }
++        
++        //if it makes it here, it wasn't found at all
++        Assert.fail(Assert._formatMessage(message, "Value doesn't exist in array."));        
++    }
++    
++};
++YAHOO.namespace("util");
++
++
++//-----------------------------------------------------------------------------
++// ObjectAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The ObjectAssert object provides functions to test JavaScript objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class ObjectAssert
++ * @static
++ */
++YAHOO.util.ObjectAssert = {
++        
++    /**
++     * Asserts that all properties in the object exist in another object.
++     * @param {Object} expected An object with the expected properties.
++     * @param {Object} actual An object with the actual properties.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method propertiesAreEqual
++     * @static
++     */
++    propertiesAreEqual : function (expected /*:Object*/, actual /*:Object*/, 
++                           message /*:String*/) /*:Void*/ {
++        
++        var Assert = YAHOO.util.Assert;
++        
++        //get all properties in the object
++        var properties /*:Array*/ = [];        
++        for (var property in expected){
++            properties.push(property);
++        }
++        
++        //see if the properties are in the expected object
++        for (var i=0; i < properties.length; i++){
++            Assert.isNotUndefined(actual[properties[i]], 
++                Assert._formatMessage(message, "Property '" + properties[i] + "' expected."));
++        }
++
++    },
++    
++    /**
++     * Asserts that an object has a property with the given name.
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!(propertyName in object)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object."));
++        }    
++    },
++    
++    /**
++     * Asserts that a property with the given name exists on an object instance (not on its prototype).
++     * @param {String} propertyName The name of the property to test.
++     * @param {Object} object The object to search.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method hasProperty
++     * @static
++     */    
++    hasOwnProperty : function (propertyName /*:String*/, object /*:Object*/, message /*:String*/) /*:Void*/ {
++        if (!YAHOO.lang.hasOwnProperty(object, propertyName)){
++            var Assert = YAHOO.util.Assert;
++            Assert.fail(Assert._formatMessage(message, "Property '" + propertyName + "' not found on object instance."));
++        }     
++    }
++};
++//-----------------------------------------------------------------------------
++// DateAssert object
++//-----------------------------------------------------------------------------
++
++/**
++ * The DateAssert object provides functions to test JavaScript Date objects
++ * for a variety of cases.
++ *
++ * @namespace YAHOO.util
++ * @class DateAssert
++ * @static
++ */
++ 
++YAHOO.util.DateAssert = {
++
++    /**
++     * Asserts that a date's month, day, and year are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method datesAreEqual
++     * @static
++     */
++    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getFullYear(), actual.getFullYear(), Assert._formatMessage(message, "Years should be equal."));
++            Assert.areEqual(expected.getMonth(), actual.getMonth(), Assert._formatMessage(message, "Months should be equal."));
++            Assert.areEqual(expected.getDate(), actual.getDate(), Assert._formatMessage(message, "Day of month should be equal."));
++        } else {
++            throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    },
++
++    /**
++     * Asserts that a date's hour, minutes, and seconds are equal to another date's.
++     * @param {Date} expected The expected date.
++     * @param {Date} actual The actual date to test.
++     * @param {String} message (Optional) The message to display if the assertion fails.
++     * @method timesAreEqual
++     * @static
++     */
++    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
++        if (expected instanceof Date && actual instanceof Date){
++            var Assert = YAHOO.util.Assert;
++            Assert.areEqual(expected.getHours(), actual.getHours(), Assert._formatMessage(message, "Hours should be equal."));
++            Assert.areEqual(expected.getMinutes(), actual.getMinutes(), Assert._formatMessage(message, "Minutes should be equal."));
++            Assert.areEqual(expected.getSeconds(), actual.getSeconds(), Assert._formatMessage(message, "Seconds should be equal."));
++        } else {
++            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
++        }
++    }
++    
++};
++YAHOO.register("yuitest_core", YAHOO.tool.TestRunner, {version: "2.8.0r4", build: "2449"});
+diff --git a/pylons_app/templates/base/base.html b/pylons_app/templates/base/base.html
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/templates/base/base.html
+@@ -0,0 +1,34 @@
++## -*- coding: utf-8 -*-
++<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
++<html xmlns="http://www.w3.org/1999/xhtml">
++<head>
++  <style type="text/css">
++  </style>
++  <title>${next.page_title()}</title>
++  <meta name="author" content=""/>
++  <meta name="keywords" content=""/>
++  <meta name="description" content=""/>
++  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
++  <link rel="shortcut icon" type="image/x-icon" href="/images/sample.ico"/>
++  <script src="/css_browser_selector.js" type="text/javascript"></script>
++  <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
++  <link rel="stylesheet" type="text/css" href="/css/style.css"/>     
++
++</head>
++<body>
++
++  <div id="top-glow"></div>
++
++  <div id="container">
++    ${next.body()}
++
++  <div id="footer" class="clearfix">
++    ${next.footer()}
++  </div><!-- /footer -->
++
++  </div><!-- /container -->
++
++  <div id="bottom-glow"></div>
++
++ </body>
++ </html>
+\ No newline at end of file
+diff --git a/pylons_app/templates/errors/error_document.html b/pylons_app/templates/errors/error_document.html
+new file mode 100755
+--- /dev/null
++++ b/pylons_app/templates/errors/error_document.html
+@@ -0,0 +1,39 @@
++## -*- coding: utf-8 -*-
++<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
++   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
++<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
++
++<head>
++    <title>Error - ${c.error_message}</title>
++    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
++    <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
++    <style type="text/css">
++     
++     body {
++       font-family: sans-serif;
++     }
++     #main_div{
++       border: 2px solid #8daed8;
++       width: 500px;
++       margin: auto;
++       text-align: center;
++       margin-top: 200px;
++     }
++     .error_message{
++        text-align: center;
++        color:red;
++     }
++    </style>
++</head>
++       
++<body>
++	<div id="main_div">
++		<h1 class="error_message">${c.error_message}</h1>
++		
++		<p>${c.error_explanation}</p>
++		<p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
++	</div>
++</body>
++</html>
++
++
+diff --git a/pylons_app/templates/index.html b/pylons_app/templates/index.html
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/templates/index.html
+@@ -0,0 +1,161 @@
++ ## -*- coding: utf-8 -*-
++<%inherit file = "base/base.html"/>
++
++<%def name="page_title()">
++    ${_('Wire transfer')}
++</%def>
++
++<%def name="body()">
++  <div id="header">
++
++  <h1 id="logo"><a href="index.html">Luminous Studios</a></h1>
++
++  </div><!-- /header -->
++
++  <div id="navigation">
++  <ul>
++    <li><a href="index.html" id="home-button">Home</a></li>
++    <li><a href="about.html" id="about-button">About</a></li>
++    <li><a href="services.html" id="services-button">Services</a></li>
++    <li><a href="portfolio.html" id="portfolio-button">Portfolio</a></li>
++    <li><a href="blog.html" id="blog-button">Blog</a></li>
++    <li><a href="scontact.php" id="contact-button">Contact</a></li>
++  </ul>
++  </div><!-- /navigation -->
++
++  <!-- /featured -->
++
++  <div id="main" class="clearfix">
++
++  <div id="sidebar">
++
++  <div class="sidebox">
++  <h2 id="recent-posts-title">Recent Blog Posts</h2>
++  <div class="sidebox-content">
++  <ul id="recent-posts">
++    <li><a href="#">Lorem Ipsum is simply dummy text of the printing industry. <span class="more-link">More »</span></a></li>
++    <li><a href="#">Lorem Ipsum is simply dummy text of the printing industry. <span class="more-link">More »</span></a></li>
++    <li><a href="#">Lorem Ipsum is simply dummy text of the printing industry. <span class="more-link">More »</span></a></li>
++  </ul>
++  </div>
++  </div><!-- /sidebox -->
++
++  <div class="sidebox">
++  <h2 id="clients-title">What Clients Say</h2>
++  <div class="sidebox-content">
++  <p>"Sed ut perspiciatis unde omnis iste natus error sit voluptatem 
++accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab
++ illo inventore veritatis et quasi architecto beatae vitae dicta sunt 
++explicabo."</p>
++  <strong>- John Doe</strong>
++  </div>
++  </div><!-- /sidebox -->
++
++  </div><!-- /sidebar -->
++
++  <div id="content">
++
++  <h2>Hello we are Luminous</h2>
++  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
++eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad 
++minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip 
++ex ea commodo consequat.</p><br class="br">
++
++  <h2>What we do</h2>
++
++  <div class="frontpage-box clearfix">
++
++  <img class="frontpage-box-img" src="/computer_48.png" 
++alt="" width="48" height="48">
++
++  <div class="frontpage-box-text">
++  <h3>Design</h3>
++  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
++eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad 
++minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip 
++ex ea. <a href="#">More »</a></p>
++  </div>
++
++  </div><!-- /frontpage-box  -->
++
++  <div class="frontpage-box clearfix">
++
++  <img class="frontpage-box-img" src="/app_48.png" alt="" 
++width="48" height="48">
++
++  <div class="frontpage-box-text">
++  <h3>Development</h3>
++  <p>${h.secure_form('/home/make_payment',method='post',id="secure_form")}
++    ##Secure Form Tag for prevention of Cross-site request forgery (CSRF) attacks.
++    ##Generates form tags that include client-specific authorization tokens to be verified by the destined web app.
++
++        <table class="editor_disp">
++            <tr>
++                <td colspan="3">${h.get_error('_authentication_token',c.form_errors)}</td>
++            </tr>
++            <tr>
++                <td class="label">${_('Account number')}</td>
++                <td>${h.text('account_number',size=44,maxlength=38)}</td>
++                <td id="e_account_number">${h.get_error('account_number',c.form_errors)}</td>
++            </tr>
++            <tr>
++                <td class="label">${_('Title')}</td>
++                <td>${h.textarea("title", "", cols=43, rows=5,maxlength=20)}</td>
++                <td id="e_title">${h.get_error('title',c.form_errors)}</td>
++            </tr>
++            <tr>
++                <td class="label">${_('Recipient')}</td>
++                <td>${h.select('recipient',1,c.recipients_list)}</td>
++                <td id="e_recipient">${h.get_error('recipient',c.form_errors)}</td>                
++            </tr>
++            <tr>
++                <td class="label">${_('Recipient address')}</td>
++                <td>${h.text('recipient_address',size=44)}</td>
++                <td id="e_recipient_address">${h.get_error('recipient_address',c.form_errors)}</td>                
++            </tr>
++            <tr>
++                <td class="label">${_('Amount')}</td>
++                <td>${h.text('amount',size='7')}zł</td>
++                <td id="e_amount">${h.get_error('amount',c.form_errors)}</td>                
++            </tr>
++            <tr>
++                <td class="label"></td>
++                <td>${h.submit('send',_('send'))}</td>
++            </tr>            
++        </table>
++    ${h.end_form()}<a href="#">More »</a></p>
++  </div>
++
++  </div><!-- /frontpage-box  -->
++
++  <div class="frontpage-box clearfix">
++
++  <img class="frontpage-box-img" src="/globe_48.png" alt="" width="48" height="48">
++
++  <div class="frontpage-box-text">
++  <h3>Marketing</h3>
++  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do 
++eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad 
++minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip 
++ex ea. <a href="#">More »</a></p>
++  </div>
++
++  </div><!-- /frontpage-box  -->
++
++  </div><!-- /content -->
++
++  </div><!-- /main -->
++
++</%def>
++
++<%def name="footer()">
++  <p id="footer-copyright">© 2009</p>
++
++  <ul id="footer-nav">
++    <li><a href="#">Home</a></li>
++    <li><a href="#">About</a></li>
++    <li><a href="#">Services</a></li>
++    <li><a href="#">Portfolio</a></li>
++    <li><a href="#">Contact</a></li>
++  </ul>
++</%def>
+diff --git a/pylons_app/templates/index2.html b/pylons_app/templates/index2.html
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/templates/index2.html
+@@ -0,0 +1,110 @@
++ ## -*- coding: utf-8 -*-
++<%inherit file = "base/base.html"/>
++
++<%def name="page_title()">
++    ${_('Wire transfer')}
++</%def>
++
++<%def name="body()">
++    <h3> ${h.link('Home','/')} / ${_('Wire transfer')}</h3>
++    ${h.secure_form('/home/make_payment',method='post',id="secure_form")}
++    ##Secure Form Tag for prevention of Cross-site request forgery (CSRF) attacks.
++    ##Generates form tags that include client-specific authorization tokens to be verified by the destined web app.
++
++        <table class="editor_disp">
++            <tr>
++                <td colspan="3">${h.get_error('_authentication_token',c.form_errors)}</td>
++            </tr>
++            <tr>
++                <td class="label">${_('Account number')}</td>
++                <td>${h.text('account_number',size=44,maxlength=38)}</td>
++                <td id="e_account_number">${h.get_error('account_number',c.form_errors)}</td>
++            </tr>
++            <tr>
++                <td class="label">${_('Title')}</td>
++                <td>${h.textarea("title", "", cols=43, rows=5,maxlength=20)}</td>
++                <td id="e_title">${h.get_error('title',c.form_errors)}</td>
++            </tr>
++            <tr>
++                <td class="label">${_('Recipient')}</td>
++                <td>${h.select('recipient',1,c.recipients_list)}</td>
++                <td id="e_recipient">${h.get_error('recipient',c.form_errors)}</td>                
++            </tr>
++            <tr>
++                <td class="label">${_('Recipient address')}</td>
++                <td>${h.text('recipient_address',size=44)}</td>
++                <td id="e_recipient_address">${h.get_error('recipient_address',c.form_errors)}</td>                
++            </tr>
++            <tr>
++                <td class="label">${_('Amount')}</td>
++                <td>${h.text('amount',size='7')}zł</td>
++                <td id="e_amount">${h.get_error('amount',c.form_errors)}</td>                
++            </tr>
++            <tr>
++                <td class="label"></td>
++                <td>${h.submit('send',_('send'))}</td>
++            </tr>            
++        </table>
++    ${h.end_form()}
++
++    ${c.name}
++
++<script type="text/javascript"> 
++    YAHOO.util.Event.onDOMReady(function(){
++     
++        var D = YAHOO.util.Dom;
++        var E = YAHOO.util.Event;
++
++        function set_error_msg(id_ele,err_msg){
++            ele = D.get(id_ele);
++            if(ele){
++                ele.innerHTML = '<span class="error_msg">'+err_msg+'</span>';
++            }
++        };
++        
++        function clear_error_msg(id_ele){
++            ele = D.get(id_ele);
++            if(ele){
++                ele.innerHTML = '<span style="color:green">ok</span>';
++            }
++        };
++        
++        function validation(){
++            //Clean the "fishy" fields :)
++            an = D.get('account_number');
++            an.value = String(an.value).replace(/ /g,'').replace(/-/g,'');
++            am = D.get('amount');
++            am.value = String(am.value).replace(/,/g,'.').replace(';','.');
++            
++            //console.log(an.value.length);
++
++            //ok we cleaned a little bit now validate the account...
++            if(!/^[0-9]{26}$/.test(an.value)){
++                set_error_msg('e_account_number','${_("Account number is invalid, it must be 26 digits")}');
++                return false;
++            }
++            else{
++                clear_error_msg('e_account_number');
++                return true;
++            }      
++        };
++        
++        E.addListener(['account_number','amount'],'keyup',function(e){
++            if (validation()){
++                return true;
++            }
++            return false;
++        });
++        
++        E.addListener('secure_form','submit',function(e){
++        	if (!validation()){
++                //this will hold the event == form submition
++                E.stopEvent(e);        	    
++            }
++        })  
++    });
++        
++</script>
++
++    
++</%def>
+\ No newline at end of file
+diff --git a/pylons_app/templates/payment_confirmation.html b/pylons_app/templates/payment_confirmation.html
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/templates/payment_confirmation.html
+@@ -0,0 +1,19 @@
++## -*- coding: utf-8 -*-
++<%inherit file="base/base.html"/>
++<%def name="page_title()">
++    ${_('Wire transfer confirmation')}
++</%def>
++
++<%def name="body()">
++    <h3> ${h.link('Home','/')} / ${_('Wire transfer confirmation')}</h3>
++        <table class="editor_disp">
++		    % for k,v in c.form_result.items():
++		      %if k not in ['_authentication_token','recipient','send']:
++	              <tr>
++	                  <td class="label">${k}</td>
++	                  <td>${v}</td>
++	              </tr>
++	          %endif
++		    % endfor
++        </table>
++</%def>
+\ No newline at end of file
+diff --git a/pylons_app/tests/__init__.py b/pylons_app/tests/__init__.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/tests/__init__.py
+@@ -0,0 +1,36 @@
++"""Pylons application test package
++
++This package assumes the Pylons environment is already loaded, such as
++when this script is imported from the `nosetests --with-pylons=test.ini`
++command.
++
++This module initializes the application via ``websetup`` (`paster
++setup-app`) and provides the base testing objects.
++"""
++from unittest import TestCase
++
++from paste.deploy import loadapp
++from paste.script.appinstall import SetupCommand
++from pylons import config, url
++from routes.util import URLGenerator
++from webtest import TestApp
++
++import pylons.test
++
++__all__ = ['environ', 'url', 'TestController']
++
++# Invoke websetup with the current config file
++SetupCommand('setup-app').run([config['__file__']])
++
++environ = {}
++
++class TestController(TestCase):
++
++    def __init__(self, *args, **kwargs):
++        if pylons.test.pylonsapp:
++            wsgiapp = pylons.test.pylonsapp
++        else:
++            wsgiapp = loadapp('config:%s' % config['__file__'])
++        self.app = TestApp(wsgiapp)
++        url._push_object(URLGenerator(config['routes.map'], environ))
++        TestCase.__init__(self, *args, **kwargs)
+diff --git a/pylons_app/tests/functional/__init__.py b/pylons_app/tests/functional/__init__.py
+new file mode 100644
+diff --git a/pylons_app/tests/test_models.py b/pylons_app/tests/test_models.py
+new file mode 100644
+diff --git a/pylons_app/websetup.py b/pylons_app/websetup.py
+new file mode 100644
+--- /dev/null
++++ b/pylons_app/websetup.py
+@@ -0,0 +1,9 @@
++"""Setup the pylons_app application"""
++import logging
++from pylons_app.config.environment import load_environment
++log = logging.getLogger(__name__)
++
++
++def setup_app(command, conf, vars):
++    """Place any commands to setup pylons_app here"""
++    load_environment(conf.global_conf, conf.local_conf)
+diff --git a/setup.cfg b/setup.cfg
+new file mode 100644
+--- /dev/null
++++ b/setup.cfg
+@@ -0,0 +1,31 @@
++[egg_info]
++tag_build = dev
++tag_svn_revision = true
++
++[easy_install]
++find_links = http://www.pylonshq.com/download/
++
++[nosetests]
++with-pylons = development.ini
++
++# Babel configuration
++[compile_catalog]
++domain = pylons_app
++directory = pylons_app/i18n
++statistics = true
++
++[extract_messages]
++add_comments = TRANSLATORS:
++output_file = pylons_app/i18n/pylons_app.pot
++width = 80
++
++[init_catalog]
++domain = pylons_app
++input_file = pylons_app/i18n/pylons_app.pot
++output_dir = pylons_app/i18n
++
++[update_catalog]
++domain = pylons_app
++input_file = pylons_app/i18n/pylons_app.pot
++output_dir = pylons_app/i18n
++previous = true
+diff --git a/setup.py b/setup.py
+new file mode 100644
+--- /dev/null
++++ b/setup.py
+@@ -0,0 +1,38 @@
++try:
++    from setuptools import setup, find_packages
++except ImportError:
++    from ez_setup import use_setuptools
++    use_setuptools()
++    from setuptools import setup, find_packages
++
++setup(
++    name = 'pylons_app',
++    version = '1.0',
++    description = '',
++    author = 'marcin kuzminski',
++    author_email = 'marcin@python-blog.com',
++    url = '',
++    install_requires = [
++        "Pylons>=0.9.7,<=0.9.7.99",
++        "SQLAlchemy>=0.5,<=0.5.99",
++        "Mako>=0.2.2,<=0.2.99",
++    ],
++    setup_requires = ["PasteScript>=1.6.3"],
++    packages = find_packages(exclude = ['ez_setup']),
++    include_package_data = True,
++    test_suite = 'nose.collector',
++    package_data = {'pylons_app': ['i18n/*/LC_MESSAGES/*.mo']},
++    message_extractors = {'pylons_app': [
++            ('**.py', 'python', None),
++            ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
++            ('public/**', 'ignore', None)]},
++    zip_safe = False,
++    paster_plugins = ['PasteScript', 'Pylons'],
++    entry_points = """
++    [paste.app_factory]
++    main = pylons_app.config.middleware:make_app
++
++    [paste.app_install]
++    main = pylons.util:PylonsInstaller
++    """,
++)
--- a/rhodecode/tests/functional/test_admin.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_admin.py	Thu Dec 13 22:54:21 2012 +0100
@@ -1,9 +1,150 @@
+from __future__ import with_statement
+import os
+import csv
+import datetime
 from rhodecode.tests import *
+from rhodecode.model.db import UserLog
+from rhodecode.model.meta import Session
+from rhodecode.lib.utils2 import safe_unicode
+
+dn = os.path.dirname
+FIXTURES = os.path.join(dn(dn(os.path.abspath(__file__))), 'fixtures')
+
 
 class TestAdminController(TestController):
 
+    @classmethod
+    def setup_class(cls):
+        UserLog.query().delete()
+        Session().commit()
+
+        def strptime(val):
+            fmt = '%Y-%m-%d %H:%M:%S'
+            if '.' not in val:
+                return datetime.datetime.strptime(val, fmt)
+
+            nofrag, frag = val.split(".")
+            date = datetime.datetime.strptime(nofrag, fmt)
+
+            frag = frag[:6]  # truncate to microseconds
+            frag += (6 - len(frag)) * '0'  # add 0s
+            return date.replace(microsecond=int(frag))
+
+        with open(os.path.join(FIXTURES, 'journal_dump.csv')) as f:
+            for row in csv.DictReader(f):
+                ul = UserLog()
+                for k, v in row.iteritems():
+                    v = safe_unicode(v)
+                    if k == 'action_date':
+                        v = strptime(v)
+                    if k in ['user_id', 'repository_id']:
+                        # nullable due to FK problems
+                        v = None
+                    setattr(ul, k, v)
+                Session().add(ul)
+            Session().commit()
+
+    @classmethod
+    def teardown_class(cls):
+        UserLog.query().delete()
+        Session().commit()
+
     def test_index(self):
         self.log_user()
         response = self.app.get(url(controller='admin/admin', action='index'))
-        assert 'Admin journal' in response.body, 'No proper title in dashboard'
-        # Test response...
+        response.mustcontain('Admin journal')
+
+    def test_filter_all_entries(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',))
+        response.mustcontain('2034 entries')
+
+    def test_filter_journal_filter_exact_match_on_repository(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:rhodecode'))
+        response.mustcontain('3 entries')
+
+    def test_filter_journal_filter_exact_match_on_repository_CamelCase(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:RhodeCode'))
+        response.mustcontain('3 entries')
+
+    def test_filter_journal_filter_wildcard_on_repository(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:*test*'))
+        response.mustcontain('862 entries')
+
+    def test_filter_journal_filter_prefix_on_repository(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:test*'))
+        response.mustcontain('257 entries')
+
+    def test_filter_journal_filter_prefix_on_repository_CamelCase(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:Test*'))
+        response.mustcontain('257 entries')
+
+    def test_filter_journal_filter_prefix_on_repository_and_user(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:test* AND username:demo'))
+        response.mustcontain('130 entries')
+
+    def test_filter_journal_filter_prefix_on_repository_or_other_repo(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='repository:test* OR repository:rhodecode'))
+        response.mustcontain('260 entries')  # 257 + 3
+
+    def test_filter_journal_filter_exact_match_on_username(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='username:demo'))
+        response.mustcontain('1087 entries')
+
+    def test_filter_journal_filter_exact_match_on_username_camelCase(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='username:DemO'))
+        response.mustcontain('1087 entries')
+
+    def test_filter_journal_filter_wildcard_on_username(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='username:*test*'))
+        response.mustcontain('100 entries')
+
+    def test_filter_journal_filter_prefix_on_username(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='username:demo*'))
+        response.mustcontain('1101 entries')
+
+    def test_filter_journal_filter_prefix_on_user_or_other_user(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='username:demo OR username:volcan'))
+        response.mustcontain('1095 entries')  # 1087 + 8
+
+    def test_filter_journal_filter_wildcard_on_action(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='action:*pull_request*'))
+        response.mustcontain('187 entries')
+
+    def test_filter_journal_filter_on_date(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='date:20121010'))
+        response.mustcontain('47 entries')
+
+    def test_filter_journal_filter_on_date_2(self):
+        self.log_user()
+        response = self.app.get(url(controller='admin/admin', action='index',
+                                    filter='date:20121020'))
+        response.mustcontain('17 entries')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/functional/test_admin_defaults.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,72 @@
+from rhodecode.tests import *
+from rhodecode.model.db import RhodeCodeSetting
+
+
+class TestDefaultsController(TestController):
+
+    def test_index(self):
+        self.log_user()
+        response = self.app.get(url('defaults'))
+        response.mustcontain('default_repo_private')
+        response.mustcontain('default_repo_enable_statistics')
+        response.mustcontain('default_repo_enable_downloads')
+        response.mustcontain('default_repo_enable_locking')
+
+    def test_index_as_xml(self):
+        response = self.app.get(url('formatted_defaults', format='xml'))
+
+    def test_create(self):
+        response = self.app.post(url('defaults'))
+
+    def test_new(self):
+        response = self.app.get(url('new_default'))
+
+    def test_new_as_xml(self):
+        response = self.app.get(url('formatted_new_default', format='xml'))
+
+    def test_update(self):
+        self.log_user()
+        params = {
+            'default_repo_enable_locking': True,
+            'default_repo_enable_downloads': True,
+            'default_repo_enable_statistics': True,
+            'default_repo_private': True,
+            'default_repo_type': 'hg',
+        }
+        response = self.app.put(url('default', id='default'), params=params)
+        self.checkSessionFlash(response, 'Default settings updated successfully')
+        defs = RhodeCodeSetting.get_default_repo_settings()
+        self.assertEqual(params, defs)
+
+        params = {
+            'default_repo_enable_locking': False,
+            'default_repo_enable_downloads': False,
+            'default_repo_enable_statistics': False,
+            'default_repo_private': False,
+            'default_repo_type': 'git',
+        }
+        response = self.app.put(url('default', id='default'), params=params)
+        self.checkSessionFlash(response, 'Default settings updated successfully')
+        defs = RhodeCodeSetting.get_default_repo_settings()
+        self.assertEqual(params, defs)
+
+    def test_update_browser_fakeout(self):
+        response = self.app.post(url('default', id=1), params=dict(_method='put'))
+
+    def test_delete(self):
+        response = self.app.delete(url('default', id=1))
+
+    def test_delete_browser_fakeout(self):
+        response = self.app.post(url('default', id=1), params=dict(_method='delete'))
+
+    def test_show(self):
+        response = self.app.get(url('default', id=1))
+
+    def test_show_as_xml(self):
+        response = self.app.get(url('formatted_default', id=1, format='xml'))
+
+    def test_edit(self):
+        response = self.app.get(url('edit_default', id=1))
+
+    def test_edit_as_xml(self):
+        response = self.app.get(url('formatted_edit_default', id=1, format='xml'))
--- a/rhodecode/tests/functional/test_admin_ldap_settings.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_admin_ldap_settings.py	Thu Dec 13 22:54:21 2012 +0100
@@ -10,6 +10,7 @@
     skip_ldap_test = True
     pass
 
+
 class TestLdapSettingsController(TestController):
 
     def test_index(self):
@@ -42,7 +43,6 @@
                     'ldap_attr_email':'test@example.com' })
 
         new_settings = RhodeCodeSetting.get_ldap_settings()
-        print new_settings
         self.assertEqual(new_settings['ldap_host'], u'dc.example.com',
                          'fail db write compare')
 
--- a/rhodecode/tests/functional/test_admin_repos.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_admin_repos.py	Thu Dec 13 22:54:21 2012 +0100
@@ -26,14 +26,10 @@
         self.log_user()
         repo_name = NEW_HG_REPO
         description = 'description for newly created repo'
-        private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'hg',
-                                                'clone_uri': '',
-                                                'repo_group': '',
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_name=repo_name,
+                                                repo_description=description))
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name))
 
@@ -63,13 +59,10 @@
         description = 'description for newly created repo' + non_ascii
         description_unicode = description.decode('utf8')
         private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'hg',
-                                                'clone_uri': '',
-                                                'repo_group': '',
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_name=repo_name,
+                                                repo_description=description))
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name_unicode))
 
@@ -103,14 +96,12 @@
         repo_name = 'ingroup'
         repo_name_full = RepoGroup.url_sep().join([group_name, repo_name])
         description = 'description for newly created repo'
-        private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'hg',
-                                                'clone_uri': '',
-                                                'repo_group': gr.group_id,
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_name=repo_name,
+                                                repo_description=description,
+                                                repo_group=gr.group_id,))
+
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name))
 
@@ -142,14 +133,12 @@
         self.log_user()
         repo_name = NEW_GIT_REPO
         description = 'description for newly created repo'
-        private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'git',
-                                                'clone_uri': '',
-                                                'repo_group': '',
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_type='git',
+                                                repo_name=repo_name,
+                                                repo_description=description))
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name))
 
@@ -179,13 +168,12 @@
         description = 'description for newly created repo' + non_ascii
         description_unicode = description.decode('utf8')
         private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'git',
-                                                'clone_uri': '',
-                                                'repo_group': '',
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_type='git',
+                                                repo_name=repo_name,
+                                                repo_description=description))
+
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name_unicode))
 
@@ -226,13 +214,12 @@
         repo_name = 'vcs_test_new_to_delete'
         description = 'description for newly created repo'
         private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'hg',
-                                                'clone_uri': '',
-                                                'repo_group': '',
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_type='hg',
+                                                repo_name=repo_name,
+                                                repo_description=description))
+
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name))
 
@@ -275,13 +262,12 @@
         repo_name = 'vcs_test_new_to_delete'
         description = 'description for newly created repo'
         private = False
-        response = self.app.post(url('repos'), {'repo_name': repo_name,
-                                                'repo_type': 'git',
-                                                'clone_uri': '',
-                                                'repo_group': '',
-                                                'description': description,
-                                                'private': private,
-                                                'landing_rev': 'tip'})
+        response = self.app.post(url('repos'),
+                        _get_repo_create_params(repo_private=False,
+                                                repo_type='git',
+                                                repo_name=repo_name,
+                                                repo_description=description))
+
         self.checkSessionFlash(response,
                                'created repository %s' % (repo_name))
 
--- a/rhodecode/tests/functional/test_compare.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_compare.py	Thu Dec 13 22:54:21 2012 +0100
@@ -6,398 +6,342 @@
 from rhodecode.lib.vcs.backends.base import EmptyChangeset
 
 
+def _fork_repo(fork_name, vcs_type, parent=None):
+    if vcs_type =='hg':
+        _REPO = HG_REPO
+    elif vcs_type == 'git':
+        _REPO = GIT_REPO
+
+    if parent:
+        _REPO = parent
+
+    form_data = dict(
+        repo_name=fork_name,
+        repo_name_full=fork_name,
+        repo_group=None,
+        repo_type=vcs_type,
+        description='',
+        private=False,
+        copy_permissions=False,
+        landing_rev='tip',
+        update_after_clone=False,
+        fork_parent_id=Repository.get_by_repo_name(_REPO),
+    )
+    repo = RepoModel().create_fork(form_data, cur_user=TEST_USER_ADMIN_LOGIN)
+
+    Session().commit()
+    return Repository.get_by_repo_name(fork_name)
+
+
+def _commit_change(repo, filename, content, message, vcs_type, parent=None, newfile=False):
+    repo = Repository.get_by_repo_name(repo)
+    _cs = parent
+    if not parent:
+        _cs = EmptyChangeset(alias=vcs_type)
+
+    if newfile:
+        cs = ScmModel().create_node(
+            repo=repo.scm_instance, repo_name=repo.repo_name,
+            cs=_cs, user=TEST_USER_ADMIN_LOGIN,
+            author=TEST_USER_ADMIN_LOGIN,
+            message=message,
+            content=content,
+            f_path=filename
+        )
+    else:
+        cs = ScmModel().commit_change(
+            repo=repo.scm_instance, repo_name=repo.repo_name,
+            cs=parent, user=TEST_USER_ADMIN_LOGIN,
+            author=TEST_USER_ADMIN_LOGIN,
+            message=message,
+            content=content,
+            f_path=filename
+        )
+    return cs
+
+
 class TestCompareController(TestController):
 
-    def test_index_tag(self):
-        self.log_user()
-        tag1 = '0.1.3'
-        tag2 = '0.1.2'
-        response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=HG_REPO,
-                                    org_ref_type="tag",
-                                    org_ref=tag1,
-                                    other_ref_type="tag",
-                                    other_ref=tag2,
-                                    ))
-        response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, tag1, HG_REPO, tag2))
-        ## outgoing changesets between tags
-        response.mustcontain('''<a href="/%s/changeset/17544fbfcd33ffb439e2b728b5d526b1ef30bfcf">r120:17544fbfcd33</a>''' % HG_REPO)
-        response.mustcontain('''<a href="/%s/changeset/36e0fc9d2808c5022a24f49d6658330383ed8666">r119:36e0fc9d2808</a>''' % HG_REPO)
-        response.mustcontain('''<a href="/%s/changeset/bb1a3ab98cc45cb934a77dcabf87a5a598b59e97">r118:bb1a3ab98cc4</a>''' % HG_REPO)
-        response.mustcontain('''<a href="/%s/changeset/41fda979f02fda216374bf8edac4e83f69e7581c">r117:41fda979f02f</a>''' % HG_REPO)
-        response.mustcontain('''<a href="/%s/changeset/9749bfbfc0d2eba208d7947de266303b67c87cda">r116:9749bfbfc0d2</a>''' % HG_REPO)
-        response.mustcontain('''<a href="/%s/changeset/70d4cef8a37657ee4cf5aabb3bd9f68879769816">r115:70d4cef8a376</a>''' % HG_REPO)
-        response.mustcontain('''<a href="/%s/changeset/c5ddebc06eaaba3010c2d66ea6ec9d074eb0f678">r112:c5ddebc06eaa</a>''' % HG_REPO)
-
-        ## files diff
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--1c5cf9e91c12">docs/api/utils/index.rst</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--e3305437df55">test_and_report.sh</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--c8e92ef85cd1">.hgignore</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--6e08b694d687">.hgtags</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--2c14b00f3393">docs/api/index.rst</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--430ccbc82bdf">vcs/__init__.py</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--9c390eb52cd6">vcs/backends/hg.py</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--ebb592c595c0">vcs/utils/__init__.py</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--7abc741b5052">vcs/utils/annotate.py</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--2ef0ef106c56">vcs/utils/diffs.py</a></div>''' % (HG_REPO, tag1, tag2))
-        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--3150cb87d4b7">vcs/utils/lazy.py</a></div>''' % (HG_REPO, tag1, tag2))
-
-    def test_index_branch(self):
-        self.log_user()
-        response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=HG_REPO,
-                                    org_ref_type="branch",
-                                    org_ref='default',
-                                    other_ref_type="branch",
-                                    other_ref='default',
-                                    ))
-
-        response.mustcontain('%s@default -> %s@default' % (HG_REPO, HG_REPO))
-        # branch are equal
-        response.mustcontain('<tr><td>No changesets</td></tr>')
-
-    def test_compare_revisions(self):
-        self.log_user()
-        rev1 = '3d8f361e72ab'
-        rev2 = 'b986218ba1c9'
-        response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=HG_REPO,
-                                    org_ref_type="rev",
-                                    org_ref=rev1,
-                                    other_ref_type="rev",
-                                    other_ref=rev2,
-                                    ))
-        response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, rev1, HG_REPO, rev2))
-        ## outgoing changesets between those revisions
-        response.mustcontain("""<a href="/%s/changeset/3d8f361e72ab303da48d799ff1ac40d5ac37c67e">r1:%s</a>""" % (HG_REPO, rev1))
-
-        ## files
-        response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--c8e92ef85cd1">.hgignore</a>""" % (HG_REPO, rev1, rev2))
-
-    def test_compare_remote_repos(self):
-        self.log_user()
-
-        form_data = dict(
-            repo_name=HG_FORK,
-            repo_name_full=HG_FORK,
-            repo_group=None,
-            repo_type='hg',
-            description='',
-            private=False,
-            copy_permissions=False,
-            landing_rev='tip',
-            update_after_clone=False,
-            fork_parent_id=Repository.get_by_repo_name(HG_REPO),
-        )
-        RepoModel().create_fork(form_data, cur_user=TEST_USER_ADMIN_LOGIN)
-
-        Session().commit()
-
-        rev1 = '7d4bc8ec6be5'
-        rev2 = '56349e29c2af'
-
-        response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=HG_REPO,
-                                    org_ref_type="rev",
-                                    org_ref=rev1,
-                                    other_ref_type="rev",
-                                    other_ref=rev2,
-                                    repo=HG_FORK
-                                    ))
-
-        try:
-            response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, rev1, HG_FORK, rev2))
-            ## outgoing changesets between those revisions
-
-            response.mustcontain("""<a href="/%s/changeset/7d4bc8ec6be56c0f10425afb40b6fc315a4c25e7">r6:%s</a>""" % (HG_REPO, rev1))
-            response.mustcontain("""<a href="/%s/changeset/6fff84722075f1607a30f436523403845f84cd9e">r5:6fff84722075</a>""" % (HG_REPO))
-            response.mustcontain("""<a href="/%s/changeset/2dda4e345facb0ccff1a191052dd1606dba6781d">r4:2dda4e345fac</a>""" % (HG_REPO))
-
-            ## files
-            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--9c390eb52cd6">vcs/backends/hg.py</a>""" % (HG_REPO, rev1, rev2))
-            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--41b41c1f2796">vcs/backends/__init__.py</a>""" % (HG_REPO, rev1, rev2))
-            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--2f574d260608">vcs/backends/base.py</a>""" % (HG_REPO, rev1, rev2))
-        finally:
-            RepoModel().delete(HG_FORK)
-
-    def test_compare_extra_commits(self):
+    def test_compare_forks_on_branch_extra_commits_hg(self):
         self.log_user()
 
         repo1 = RepoModel().create_repo(repo_name='one', repo_type='hg',
                                         description='diff-test',
                                         owner=TEST_USER_ADMIN_LOGIN)
-
-        repo2 = RepoModel().create_repo(repo_name='one-fork', repo_type='hg',
-                                        description='diff-test',
-                                        owner=TEST_USER_ADMIN_LOGIN)
-
+        r1_id = repo1.repo_id
         Session().commit()
-        r1_id = repo1.repo_id
-        r1_name = repo1.repo_name
-        r2_id = repo2.repo_id
-        r2_name = repo2.repo_name
-
         #commit something !
-        cs0 = ScmModel().create_node(
-            repo=repo1.scm_instance, repo_name=r1_name,
-            cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit1',
-            content='line1',
-            f_path='file1'
-        )
+        cs0 = _commit_change(repo1.repo_name, filename='file1', content='line1\n',
+                             message='commit1', vcs_type='hg', parent=None, newfile=True)
 
-        cs0_prim = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit1',
-            content='line1',
-            f_path='file1'
-        )
+        #fork this repo
+        repo2 = _fork_repo('one-fork', 'hg', parent='one')
+        Session().commit()
+        r2_id = repo2.repo_id
 
-        cs1 = ScmModel().commit_change(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=cs0_prim, user=TEST_USER_ADMIN_LOGIN, author=TEST_USER_ADMIN_LOGIN,
-            message='commit2',
-            content='line1\nline2',
-            f_path='file1'
-        )
+        #add two extra commit into fork
+        cs1 = _commit_change(repo2.repo_name, filename='file1', content='line1\nline2\n',
+                             message='commit2', vcs_type='hg', parent=cs0)
+
+        cs2 = _commit_change(repo2.repo_name, filename='file1', content='line1\nline2\nline3\n',
+                             message='commit3', vcs_type='hg', parent=cs1)
 
         rev1 = 'default'
         rev2 = 'default'
         response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=r2_name,
+                                    repo_name=repo2.repo_name,
                                     org_ref_type="branch",
                                     org_ref=rev1,
                                     other_ref_type="branch",
                                     other_ref=rev2,
-                                    repo=r1_name
+                                    repo=repo1.repo_name
                                     ))
 
         try:
-            response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
+            response.mustcontain('%s@%s -> %s@%s' % (repo2.repo_name, rev1, repo1.repo_name, rev2))
+            response.mustcontain("""Showing 2 commits""")
+            response.mustcontain("""1 file changed with 2 insertions and 0 deletions""")
 
-            response.mustcontain("""<div class="message">commit2</div>""")
-            response.mustcontain("""<a href="/%s/changeset/%s">r1:%s</a>""" % (r2_name, cs1.raw_id, cs1.short_id))
+            response.mustcontain("""<div class="message tooltip" title="commit2" style="white-space:normal">commit2</div>""")
+            response.mustcontain("""<div class="message tooltip" title="commit3" style="white-space:normal">commit3</div>""")
+
+            response.mustcontain("""<a href="/%s/changeset/%s">r1:%s</a>""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
+            response.mustcontain("""<a href="/%s/changeset/%s">r2:%s</a>""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
             ## files
-            response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s#C--826e8142e6ba">file1</a>""" % (r2_name, rev1, rev2))
+            response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s#C--826e8142e6ba">file1</a>""" % (repo2.repo_name, rev1, rev2))
 
         finally:
+            RepoModel().delete(r2_id)
             RepoModel().delete(r1_id)
-            RepoModel().delete(r2_id)
+
 
-    def test_org_repo_new_commits_after_forking(self):
+    def test_compare_forks_on_branch_extra_commits_origin_has_incomming_hg(self):
         self.log_user()
 
         repo1 = RepoModel().create_repo(repo_name='one', repo_type='hg',
                                         description='diff-test',
                                         owner=TEST_USER_ADMIN_LOGIN)
-
+        r1_id = repo1.repo_id
         Session().commit()
-        r1_id = repo1.repo_id
-        r1_name = repo1.repo_name
+        #commit something !
+        cs0 = _commit_change(repo1.repo_name, filename='file1', content='line1\n',
+                             message='commit1', vcs_type='hg', parent=None, newfile=True)
 
-        #commit something initially !
-        cs0 = ScmModel().create_node(
-            repo=repo1.scm_instance, repo_name=r1_name,
-            cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit1',
-            content='line1',
-            f_path='file1'
-        )
+        #fork this repo
+        repo2 = _fork_repo('one-fork', 'hg', parent='one')
         Session().commit()
-        self.assertEqual(repo1.scm_instance.revisions, [cs0.raw_id])
-        #fork the repo1
-        repo2 = RepoModel().create_repo(repo_name='one-fork', repo_type='hg',
-                                description='compare-test',
-                                clone_uri=repo1.repo_full_path,
-                                owner=TEST_USER_ADMIN_LOGIN, fork_of='one')
-        Session().commit()
-        self.assertEqual(repo2.scm_instance.revisions, [cs0.raw_id])
-        r2_id = repo2.repo_id
-        r2_name = repo2.repo_name
 
-        #make 3 new commits in fork
-        cs1 = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=repo2.scm_instance[-1], user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit1-fork',
-            content='file1-line1-from-fork',
-            f_path='file1-fork'
-        )
-        cs2 = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=cs1, user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit2-fork',
-            content='file2-line1-from-fork',
-            f_path='file2-fork'
-        )
-        cs3 = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=cs2, user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit3-fork',
-            content='file3-line1-from-fork',
-            f_path='file3-fork'
-        )
+        #now commit something to origin repo
+        cs1_prim = _commit_change(repo1.repo_name, filename='file2', content='line1file2\n',
+                                  message='commit2', vcs_type='hg', parent=cs0, newfile=True)
+
+        r2_id = repo2.repo_id
 
-        #compare !
+        #add two extra commit into fork
+        cs1 = _commit_change(repo2.repo_name, filename='file1', content='line1\nline2\n',
+                             message='commit2', vcs_type='hg', parent=cs0)
+
+        cs2 = _commit_change(repo2.repo_name, filename='file1', content='line1\nline2\nline3\n',
+                             message='commit3', vcs_type='hg', parent=cs1)
+
         rev1 = 'default'
         rev2 = 'default'
         response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=r2_name,
+                                    repo_name=repo2.repo_name,
                                     org_ref_type="branch",
                                     org_ref=rev1,
                                     other_ref_type="branch",
                                     other_ref=rev2,
-                                    repo=r1_name,
-                                    bundle=True,
+                                    repo=repo1.repo_name
                                     ))
 
         try:
-            response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
-            response.mustcontain("""file1-line1-from-fork""")
-            response.mustcontain("""file2-line1-from-fork""")
-            response.mustcontain("""file3-line1-from-fork""")
+            response.mustcontain('%s@%s -> %s@%s' % (repo2.repo_name, rev1, repo1.repo_name, rev2))
+            response.mustcontain("""Showing 2 commits""")
+            response.mustcontain("""1 file changed with 2 insertions and 0 deletions""")
 
-            #add new commit into parent !
-            cs0 = ScmModel().create_node(
-                repo=repo1.scm_instance, repo_name=r1_name,
-                cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
-                author=TEST_USER_ADMIN_LOGIN,
-                message='commit2',
-                content='line1-from-new-parent',
-                f_path='file2'
-            )
-            #compare !
-            rev1 = 'default'
-            rev2 = 'default'
-            response = self.app.get(url(controller='compare', action='index',
-                                        repo_name=r2_name,
-                                        org_ref_type="branch",
-                                        org_ref=rev1,
-                                        other_ref_type="branch",
-                                        other_ref=rev2,
-                                        repo=r1_name,
-                                        bundle=True,
-                                        ))
+            response.mustcontain("""<div class="message tooltip" title="commit2" style="white-space:normal">commit2</div>""")
+            response.mustcontain("""<div class="message tooltip" title="commit3" style="white-space:normal">commit3</div>""")
 
-            response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
-            response.mustcontain("""<a href="#">file2</a>""")  # new commit from parent
-            response.mustcontain("""line1-from-new-parent""")
-            response.mustcontain("""file1-line1-from-fork""")
-            response.mustcontain("""file2-line1-from-fork""")
-            response.mustcontain("""file3-line1-from-fork""")
+            response.mustcontain("""<a href="/%s/changeset/%s">r1:%s</a>""" % (repo2.repo_name, cs1.raw_id, cs1.short_id))
+            response.mustcontain("""<a href="/%s/changeset/%s">r2:%s</a>""" % (repo2.repo_name, cs2.raw_id, cs2.short_id))
+            ## files
+            response.mustcontain("""<a href="/%s/compare/branch@%s...branch@%s#C--826e8142e6ba">file1</a>""" % (repo2.repo_name, rev1, rev2))
+
         finally:
             RepoModel().delete(r2_id)
             RepoModel().delete(r1_id)
 
-    def test_org_repo_new_commits_after_forking_simple_diff(self):
-        self.log_user()
-
-        repo1 = RepoModel().create_repo(repo_name='one', repo_type='hg',
-                                        description='diff-test',
-                                        owner=TEST_USER_ADMIN_LOGIN)
-
-        Session().commit()
-        r1_id = repo1.repo_id
-        r1_name = repo1.repo_name
 
-        #commit something initially !
-        cs0 = ScmModel().create_node(
-            repo=repo1.scm_instance, repo_name=r1_name,
-            cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit1',
-            content='line1',
-            f_path='file1'
-        )
-        Session().commit()
-        self.assertEqual(repo1.scm_instance.revisions, [cs0.raw_id])
-        #fork the repo1
-        repo2 = RepoModel().create_repo(repo_name='one-fork', repo_type='hg',
-                                description='compare-test',
-                                clone_uri=repo1.repo_full_path,
-                                owner=TEST_USER_ADMIN_LOGIN, fork_of='one')
-        Session().commit()
-        self.assertEqual(repo2.scm_instance.revisions, [cs0.raw_id])
-        r2_id = repo2.repo_id
-        r2_name = repo2.repo_name
+#    def test_compare_remote_repos_remote_flag_off(self):
+#        self.log_user()
+#        _fork_repo(HG_FORK, 'hg')
+#
+#        rev1 = '56349e29c2af'
+#        rev2 = '7d4bc8ec6be5'
+#
+#        response = self.app.get(url(controller='compare', action='index',
+#                                    repo_name=HG_REPO,
+#                                    org_ref_type="rev",
+#                                    org_ref=rev1,
+#                                    other_ref_type="rev",
+#                                    other_ref=rev2,
+#                                    repo=HG_FORK,
+#                                    bundle=False,
+#                                    ))
+#
+#        try:
+#            response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, rev1, HG_FORK, rev2))
+#            ## outgoing changesets between those revisions
+#
+#            response.mustcontain("""<a href="/%s/changeset/2dda4e345facb0ccff1a191052dd1606dba6781d">r4:2dda4e345fac</a>""" % (HG_REPO))
+#            response.mustcontain("""<a href="/%s/changeset/6fff84722075f1607a30f436523403845f84cd9e">r5:6fff84722075</a>""" % (HG_REPO))
+#            response.mustcontain("""<a href="/%s/changeset/7d4bc8ec6be56c0f10425afb40b6fc315a4c25e7">r6:%s</a>""" % (HG_REPO, rev2))
+#
+#            ## files
+#            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--9c390eb52cd6">vcs/backends/hg.py</a>""" % (HG_REPO, rev1, rev2))
+#            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--41b41c1f2796">vcs/backends/__init__.py</a>""" % (HG_REPO, rev1, rev2))
+#            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--2f574d260608">vcs/backends/base.py</a>""" % (HG_REPO, rev1, rev2))
+#        finally:
+#            RepoModel().delete(HG_FORK)
+
+
 
-        #make 3 new commits in fork
-        cs1 = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=repo2.scm_instance[-1], user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit1-fork',
-            content='file1-line1-from-fork',
-            f_path='file1-fork'
-        )
-        cs2 = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=cs1, user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit2-fork',
-            content='file2-line1-from-fork',
-            f_path='file2-fork'
-        )
-        cs3 = ScmModel().create_node(
-            repo=repo2.scm_instance, repo_name=r2_name,
-            cs=cs2, user=TEST_USER_ADMIN_LOGIN,
-            author=TEST_USER_ADMIN_LOGIN,
-            message='commit3-fork',
-            content='file3-line1-from-fork',
-            f_path='file3-fork'
-        )
-
-        #compare !
-        rev1 = 'default'
-        rev2 = 'default'
-        response = self.app.get(url(controller='compare', action='index',
-                                    repo_name=r2_name,
-                                    org_ref_type="branch",
-                                    org_ref=rev1,
-                                    other_ref_type="branch",
-                                    other_ref=rev2,
-                                    repo=r1_name,
-                                    bundle=False,
-                                    ))
-
-        try:
-            #response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
-
-            #add new commit into parent !
-            cs0 = ScmModel().create_node(
-                repo=repo1.scm_instance, repo_name=r1_name,
-                cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
-                author=TEST_USER_ADMIN_LOGIN,
-                message='commit2',
-                content='line1',
-                f_path='file2'
-            )
-            #compare !
-            rev1 = 'default'
-            rev2 = 'default'
-            response = self.app.get(url(controller='compare', action='index',
-                                        repo_name=r2_name,
-                                        org_ref_type="branch",
-                                        org_ref=rev1,
-                                        other_ref_type="branch",
-                                        other_ref=rev2,
-                                        repo=r1_name,
-                                        bundle=False
-                                        ))
-            rev2 = cs0.parents[0].raw_id
-            response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
-            response.mustcontain("""file1-line1-from-fork""")
-            response.mustcontain("""file2-line1-from-fork""")
-            response.mustcontain("""file3-line1-from-fork""")
-            self.assertFalse("""<a href="#">file2</a>""" in response.body)  # new commit from parent
-            self.assertFalse("""line1-from-new-parent"""  in response.body)
-        finally:
-            RepoModel().delete(r2_id)
-            RepoModel().delete(r1_id)
+#
+#    def test_compare_remote_branches_hg(self):
+#        self.log_user()
+#
+#        _fork_repo(HG_FORK, 'hg')
+#
+#        rev1 = '56349e29c2af'
+#        rev2 = '7d4bc8ec6be5'
+#
+#        response = self.app.get(url(controller='compare', action='index',
+#                                    repo_name=HG_REPO,
+#                                    org_ref_type="rev",
+#                                    org_ref=rev1,
+#                                    other_ref_type="rev",
+#                                    other_ref=rev2,
+#                                    repo=HG_FORK,
+#                                    ))
+#
+#        try:
+#            response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, rev1, HG_FORK, rev2))
+#            ## outgoing changesets between those revisions
+#
+#            response.mustcontain("""<a href="/%s/changeset/2dda4e345facb0ccff1a191052dd1606dba6781d">r4:2dda4e345fac</a>""" % (HG_REPO))
+#            response.mustcontain("""<a href="/%s/changeset/6fff84722075f1607a30f436523403845f84cd9e">r5:6fff84722075</a>""" % (HG_REPO))
+#            response.mustcontain("""<a href="/%s/changeset/7d4bc8ec6be56c0f10425afb40b6fc315a4c25e7">r6:%s</a>""" % (HG_REPO, rev2))
+#
+#            ## files
+#            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--9c390eb52cd6">vcs/backends/hg.py</a>""" % (HG_REPO, rev1, rev2))
+#            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--41b41c1f2796">vcs/backends/__init__.py</a>""" % (HG_REPO, rev1, rev2))
+#            response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--2f574d260608">vcs/backends/base.py</a>""" % (HG_REPO, rev1, rev2))
+#        finally:
+#            RepoModel().delete(HG_FORK)
+#
+#    def test_org_repo_new_commits_after_forking_simple_diff(self):
+#        self.log_user()
+#
+#        repo1 = RepoModel().create_repo(repo_name='one', repo_type='hg',
+#                                        description='diff-test',
+#                                        owner=TEST_USER_ADMIN_LOGIN)
+#
+#        Session().commit()
+#        r1_id = repo1.repo_id
+#        r1_name = repo1.repo_name
+#
+#        #commit something initially !
+#        cs0 = ScmModel().create_node(
+#            repo=repo1.scm_instance, repo_name=r1_name,
+#            cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
+#            author=TEST_USER_ADMIN_LOGIN,
+#            message='commit1',
+#            content='line1',
+#            f_path='file1'
+#        )
+#        Session().commit()
+#        self.assertEqual(repo1.scm_instance.revisions, [cs0.raw_id])
+#        #fork the repo1
+#        repo2 = RepoModel().create_repo(repo_name='one-fork', repo_type='hg',
+#                                description='compare-test',
+#                                clone_uri=repo1.repo_full_path,
+#                                owner=TEST_USER_ADMIN_LOGIN, fork_of='one')
+#        Session().commit()
+#        self.assertEqual(repo2.scm_instance.revisions, [cs0.raw_id])
+#        r2_id = repo2.repo_id
+#        r2_name = repo2.repo_name
+#
+#        #make 3 new commits in fork
+#        cs1 = ScmModel().create_node(
+#            repo=repo2.scm_instance, repo_name=r2_name,
+#            cs=repo2.scm_instance[-1], user=TEST_USER_ADMIN_LOGIN,
+#            author=TEST_USER_ADMIN_LOGIN,
+#            message='commit1-fork',
+#            content='file1-line1-from-fork',
+#            f_path='file1-fork'
+#        )
+#        cs2 = ScmModel().create_node(
+#            repo=repo2.scm_instance, repo_name=r2_name,
+#            cs=cs1, user=TEST_USER_ADMIN_LOGIN,
+#            author=TEST_USER_ADMIN_LOGIN,
+#            message='commit2-fork',
+#            content='file2-line1-from-fork',
+#            f_path='file2-fork'
+#        )
+#        cs3 = ScmModel().create_node(
+#            repo=repo2.scm_instance, repo_name=r2_name,
+#            cs=cs2, user=TEST_USER_ADMIN_LOGIN,
+#            author=TEST_USER_ADMIN_LOGIN,
+#            message='commit3-fork',
+#            content='file3-line1-from-fork',
+#            f_path='file3-fork'
+#        )
+#
+#        #compare !
+#        rev1 = 'default'
+#        rev2 = 'default'
+#        response = self.app.get(url(controller='compare', action='index',
+#                                    repo_name=r2_name,
+#                                    org_ref_type="branch",
+#                                    org_ref=rev1,
+#                                    other_ref_type="branch",
+#                                    other_ref=rev2,
+#                                    repo=r1_name,
+#                                    bundle=False,
+#                                    ))
+#
+#        try:
+#            #response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
+#
+#            #add new commit into parent !
+#            cs0 = ScmModel().create_node(
+#                repo=repo1.scm_instance, repo_name=r1_name,
+#                cs=EmptyChangeset(alias='hg'), user=TEST_USER_ADMIN_LOGIN,
+#                author=TEST_USER_ADMIN_LOGIN,
+#                message='commit2',
+#                content='line1',
+#                f_path='file2'
+#            )
+#            #compare !
+#            rev1 = 'default'
+#            rev2 = 'default'
+#            response = self.app.get(url(controller='compare', action='index',
+#                                        repo_name=r2_name,
+#                                        org_ref_type="branch",
+#                                        org_ref=rev1,
+#                                        other_ref_type="branch",
+#                                        other_ref=rev2,
+#                                        repo=r1_name,
+#                                        bundle=False
+#                                        ))
+#
+#            response.mustcontain('%s@%s -> %s@%s' % (r2_name, rev1, r1_name, rev2))
+#            response.mustcontain("""file1-line1-from-fork""")
+#            response.mustcontain("""file2-line1-from-fork""")
+#            response.mustcontain("""file3-line1-from-fork""")
+#            self.assertFalse("""<a href="#">file2</a>""" in response.body)  # new commit from parent
+#            self.assertFalse("""line1-from-new-parent"""  in response.body)
+#        finally:
+#            RepoModel().delete(r2_id)
+#            RepoModel().delete(r1_id)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/functional/test_compare_local.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,153 @@
+from rhodecode.tests import *
+from rhodecode.model.repo import RepoModel
+from rhodecode.model.meta import Session
+from rhodecode.model.db import Repository
+from rhodecode.model.scm import ScmModel
+from rhodecode.lib.vcs.backends.base import EmptyChangeset
+
+
+class TestCompareController(TestController):
+
+    def test_compare_tag_hg(self):
+        self.log_user()
+        tag1 = '0.1.2'
+        tag2 = '0.1.3'
+        response = self.app.get(url(controller='compare', action='index',
+                                    repo_name=HG_REPO,
+                                    org_ref_type="tag",
+                                    org_ref=tag1,
+                                    other_ref_type="tag",
+                                    other_ref=tag2,
+                                    ))
+        response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, tag1, HG_REPO, tag2))
+        ## outgoing changesets between tags
+        response.mustcontain('''<a href="/%s/changeset/c5ddebc06eaaba3010c2d66ea6ec9d074eb0f678">r112:c5ddebc06eaa</a>''' % HG_REPO)
+        response.mustcontain('''<a href="/%s/changeset/70d4cef8a37657ee4cf5aabb3bd9f68879769816">r115:70d4cef8a376</a>''' % HG_REPO)
+        response.mustcontain('''<a href="/%s/changeset/9749bfbfc0d2eba208d7947de266303b67c87cda">r116:9749bfbfc0d2</a>''' % HG_REPO)
+        response.mustcontain('''<a href="/%s/changeset/41fda979f02fda216374bf8edac4e83f69e7581c">r117:41fda979f02f</a>''' % HG_REPO)
+        response.mustcontain('''<a href="/%s/changeset/bb1a3ab98cc45cb934a77dcabf87a5a598b59e97">r118:bb1a3ab98cc4</a>''' % HG_REPO)
+        response.mustcontain('''<a href="/%s/changeset/36e0fc9d2808c5022a24f49d6658330383ed8666">r119:36e0fc9d2808</a>''' % HG_REPO)
+        response.mustcontain('''<a href="/%s/changeset/17544fbfcd33ffb439e2b728b5d526b1ef30bfcf">r120:17544fbfcd33</a>''' % HG_REPO)
+
+        response.mustcontain('11 files changed with 94 insertions and 64 deletions')
+
+        ## files diff
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--1c5cf9e91c12">docs/api/utils/index.rst</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--e3305437df55">test_and_report.sh</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--c8e92ef85cd1">.hgignore</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--6e08b694d687">.hgtags</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--2c14b00f3393">docs/api/index.rst</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--430ccbc82bdf">vcs/__init__.py</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--9c390eb52cd6">vcs/backends/hg.py</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--ebb592c595c0">vcs/utils/__init__.py</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--7abc741b5052">vcs/utils/annotate.py</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--2ef0ef106c56">vcs/utils/diffs.py</a></div>''' % (HG_REPO, tag1, tag2))
+        response.mustcontain('''<div class="node"><a href="/%s/compare/tag@%s...tag@%s#C--3150cb87d4b7">vcs/utils/lazy.py</a></div>''' % (HG_REPO, tag1, tag2))
+
+    def test_compare_tag_git(self):
+        self.log_user()
+        tag1 = 'v0.1.2'
+        tag2 = 'v0.1.3'
+        response = self.app.get(url(controller='compare', action='index',
+                                    repo_name=GIT_REPO,
+                                    org_ref_type="tag",
+                                    org_ref=tag1,
+                                    other_ref_type="tag",
+                                    other_ref=tag2,
+                                    bundle=False
+                                    ))
+        response.mustcontain('%s@%s -> %s@%s' % (GIT_REPO, tag1, GIT_REPO, tag2))
+
+        ## outgoing changesets between tags
+        response.mustcontain('''<a href="/%s/changeset/794bbdd31545c199f74912709ea350dedcd189a2">r113:794bbdd31545</a>''' % GIT_REPO)
+        response.mustcontain('''<a href="/%s/changeset/e36d8c5025329bdd4212bd53d4ed8a70ff44985f">r115:e36d8c502532</a>''' % GIT_REPO)
+        response.mustcontain('''<a href="/%s/changeset/5c9ff4f6d7508db0e72b1d2991c357d0d8e07af2">r116:5c9ff4f6d750</a>''' % GIT_REPO)
+        response.mustcontain('''<a href="/%s/changeset/b7187fa2b8c1d773ec35e9dee12f01f74808c879">r117:b7187fa2b8c1</a>''' % GIT_REPO)
+        response.mustcontain('''<a href="/%s/changeset/5f3b74262014a8de2dc7dade1152de9fd0c8efef">r118:5f3b74262014</a>''' % GIT_REPO)
+        response.mustcontain('''<a href="/%s/changeset/17438a11f72b93f56d0e08e7d1fa79a378578a82">r119:17438a11f72b</a>''' % GIT_REPO)
+        response.mustcontain('''<a href="/%s/changeset/5a3a8fb005554692b16e21dee62bf02667d8dc3e">r120:5a3a8fb00555</a>''' % GIT_REPO)
+
+        response.mustcontain('11 files changed with 94 insertions and 64 deletions')
+
+        #files
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--1c5cf9e91c12">docs/api/utils/index.rst</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--e3305437df55">test_and_report.sh</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--c8e92ef85cd1">.hgignore</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--6e08b694d687">.hgtags</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--2c14b00f3393">docs/api/index.rst</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--430ccbc82bdf">vcs/__init__.py</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--9c390eb52cd6">vcs/backends/hg.py</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--ebb592c595c0">vcs/utils/__init__.py</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--7abc741b5052">vcs/utils/annotate.py</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--2ef0ef106c56">vcs/utils/diffs.py</a>''' % (GIT_REPO, tag1, tag2))
+        response.mustcontain('''<a href="/%s/compare/tag@%s...tag@%s#C--3150cb87d4b7">vcs/utils/lazy.py</a>''' % (GIT_REPO, tag1, tag2))
+
+    def test_index_branch_hg(self):
+        self.log_user()
+        response = self.app.get(url(controller='compare', action='index',
+                                    repo_name=HG_REPO,
+                                    org_ref_type="branch",
+                                    org_ref='default',
+                                    other_ref_type="branch",
+                                    other_ref='default',
+                                    ))
+
+        response.mustcontain('%s@default -> %s@default' % (HG_REPO, HG_REPO))
+        # branch are equal
+        response.mustcontain('<span class="empty_data">No files</span>')
+        response.mustcontain('<span class="empty_data">No changesets</span>')
+
+    def test_index_branch_git(self):
+        self.log_user()
+        response = self.app.get(url(controller='compare', action='index',
+                                    repo_name=GIT_REPO,
+                                    org_ref_type="branch",
+                                    org_ref='master',
+                                    other_ref_type="branch",
+                                    other_ref='master',
+                                    ))
+
+        response.mustcontain('%s@master -> %s@master' % (GIT_REPO, GIT_REPO))
+        # branch are equal
+        response.mustcontain('<span class="empty_data">No files</span>')
+        response.mustcontain('<span class="empty_data">No changesets</span>')
+
+    def test_compare_revisions_hg(self):
+        self.log_user()
+        rev1 = 'b986218ba1c9'
+        rev2 = '3d8f361e72ab'
+
+        response = self.app.get(url(controller='compare', action='index',
+                                    repo_name=HG_REPO,
+                                    org_ref_type="rev",
+                                    org_ref=rev1,
+                                    other_ref_type="rev",
+                                    other_ref=rev2,
+                                    ))
+        response.mustcontain('%s@%s -> %s@%s' % (HG_REPO, rev1, HG_REPO, rev2))
+        ## outgoing changesets between those revisions
+        response.mustcontain("""<a href="/%s/changeset/3d8f361e72ab303da48d799ff1ac40d5ac37c67e">r1:%s</a>""" % (HG_REPO, rev2))
+
+        response.mustcontain('1 file changed with 7 insertions and 0 deletions')
+        ## files
+        response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--c8e92ef85cd1">.hgignore</a>""" % (HG_REPO, rev1, rev2))
+
+    def test_compare_revisions_git(self):
+        self.log_user()
+        rev1 = 'c1214f7e79e02fc37156ff215cd71275450cffc3'
+        rev2 = '38b5fe81f109cb111f549bfe9bb6b267e10bc557'
+
+        response = self.app.get(url(controller='compare', action='index',
+                                    repo_name=GIT_REPO,
+                                    org_ref_type="rev",
+                                    org_ref=rev1,
+                                    other_ref_type="rev",
+                                    other_ref=rev2,
+                                    ))
+        response.mustcontain('%s@%s -> %s@%s' % (GIT_REPO, rev1, GIT_REPO, rev2))
+        ## outgoing changesets between those revisions
+        response.mustcontain("""<a href="/%s/changeset/38b5fe81f109cb111f549bfe9bb6b267e10bc557">r1:%s</a>""" % (GIT_REPO, rev2[:12]))
+        response.mustcontain('1 file changed with 7 insertions and 0 deletions')
+
+        ## files
+        response.mustcontain("""<a href="/%s/compare/rev@%s...rev@%s#C--c8e92ef85cd1">.hgignore</a>""" % (GIT_REPO, rev1, rev2))
--- a/rhodecode/tests/functional/test_files.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_files.py	Thu Dec 13 22:54:21 2012 +0100
@@ -1,4 +1,6 @@
 from rhodecode.tests import *
+from rhodecode.model.db import Repository
+from rhodecode.model.meta import Session
 
 ARCHIVE_SPECS = {
     '.tar.bz2': ('application/x-bzip2', 'tbz2', ''),
@@ -7,6 +9,13 @@
 }
 
 
+def _set_downloads(repo_name, set_to):
+    repo = Repository.get_by_repo_name(repo_name)
+    repo.enable_downloads = set_to
+    Session().add(repo)
+    Session().commit()
+
+
 class TestFilesController(TestController):
 
     def test_index(self):
@@ -73,9 +82,25 @@
                                     revision='27cd5cce30c96924232dffcd24178a07ffeb5dfc',
                                     f_path='vcs/nodes.py'))
 
+        response.mustcontain("""<div class="commit">Partially implemented <a class="issue-tracker-link" href="https://myissueserver.com/vcs_test_hg/issue/16">#16</a>. filecontent/commit message/author/node name are safe_unicode now.
+In addition some other __str__ are unicode as well
+Added test for unicode
+Improved test to clone into uniq repository.
+removed extra unicode conversion in diff.</div>
+""")
+
+        response.mustcontain("""<span style="text-transform: uppercase;"><a href="#">branch: default</a></span>""")
+
+    def test_file_source_history(self):
+        self.log_user()
+        response = self.app.get(url(controller='files', action='history',
+                                    repo_name=HG_REPO,
+                                    revision='27cd5cce30c96924232dffcd24178a07ffeb5dfc',
+                                    f_path='vcs/nodes.py'),
+                                extra_environ={'HTTP_X_PARTIAL_XHR': '1'},)
         #test or history
         response.mustcontain("""<optgroup label="Changesets">
-<option value="8911406ad776fdd3d0b9932a2e89677e57405a48">r167:8911406ad776 (default)</option>
+<option selected="selected" value="8911406ad776fdd3d0b9932a2e89677e57405a48">r167:8911406ad776 (default)</option>
 <option value="aa957ed78c35a1541f508d2ec90e501b0a9e3167">r165:aa957ed78c35 (default)</option>
 <option value="48e11b73e94c0db33e736eaeea692f990cb0b5f1">r140:48e11b73e94c (default)</option>
 <option value="adf3cbf483298563b968a6c673cd5bde5f7d5eea">r126:adf3cbf48329 (default)</option>
@@ -110,12 +135,12 @@
 <option value="3803844fdbd3b711175fc3da9bdacfcd6d29a6fb">r7:3803844fdbd3 (default)</option>
 </optgroup>
 <optgroup label="Branches">
-<option selected="selected" value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">default</option>
+<option value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">default</option>
 <option value="97e8b885c04894463c51898e14387d80c30ed1ee">git</option>
 <option value="2e6a2bf9356ca56df08807f4ad86d480da72a8f4">web</option>
 </optgroup>
 <optgroup label="Tags">
-<option selected="selected" value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">tip</option>
+<option value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">tip</option>
 <option value="fd4bdb5e9b2a29b4393a4ac6caef48c17ee1a200">0.1.4</option>
 <option value="17544fbfcd33ffb439e2b728b5d526b1ef30bfcf">0.1.3</option>
 <option value="a7e60bff65d57ac3a1a1ce3b12a70f8a9e8a7720">0.1.2</option>
@@ -123,10 +148,6 @@
 </optgroup>
 """)
 
-        response.mustcontain("""<div class="commit">merge</div>""")
-
-        response.mustcontain("""<span style="text-transform: uppercase;"><a href="#">branch: default</a></span>""")
-
     def test_file_annotation(self):
         self.log_user()
         response = self.app.get(url(controller='files', action='index',
@@ -135,9 +156,19 @@
                                     f_path='vcs/nodes.py',
                                     annotate=True))
 
+        response.mustcontain("""<span style="text-transform: uppercase;"><a href="#">branch: default</a></span>""")
+
+    def test_file_annotation_history(self):
+        self.log_user()
+        response = self.app.get(url(controller='files', action='history',
+                                    repo_name=HG_REPO,
+                                    revision='27cd5cce30c96924232dffcd24178a07ffeb5dfc',
+                                    f_path='vcs/nodes.py',
+                                    annotate=True),
+                                extra_environ={'HTTP_X_PARTIAL_XHR': '1'})
 
         response.mustcontain("""<optgroup label="Changesets">
-<option value="8911406ad776fdd3d0b9932a2e89677e57405a48">r167:8911406ad776 (default)</option>
+<option selected="selected" value="8911406ad776fdd3d0b9932a2e89677e57405a48">r167:8911406ad776 (default)</option>
 <option value="aa957ed78c35a1541f508d2ec90e501b0a9e3167">r165:aa957ed78c35 (default)</option>
 <option value="48e11b73e94c0db33e736eaeea692f990cb0b5f1">r140:48e11b73e94c (default)</option>
 <option value="adf3cbf483298563b968a6c673cd5bde5f7d5eea">r126:adf3cbf48329 (default)</option>
@@ -172,20 +203,18 @@
 <option value="3803844fdbd3b711175fc3da9bdacfcd6d29a6fb">r7:3803844fdbd3 (default)</option>
 </optgroup>
 <optgroup label="Branches">
-<option selected="selected" value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">default</option>
+<option value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">default</option>
 <option value="97e8b885c04894463c51898e14387d80c30ed1ee">git</option>
 <option value="2e6a2bf9356ca56df08807f4ad86d480da72a8f4">web</option>
 </optgroup>
 <optgroup label="Tags">
-<option selected="selected" value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">tip</option>
+<option value="27cd5cce30c96924232dffcd24178a07ffeb5dfc">tip</option>
 <option value="fd4bdb5e9b2a29b4393a4ac6caef48c17ee1a200">0.1.4</option>
 <option value="17544fbfcd33ffb439e2b728b5d526b1ef30bfcf">0.1.3</option>
 <option value="a7e60bff65d57ac3a1a1ce3b12a70f8a9e8a7720">0.1.2</option>
 <option value="eb3a60fc964309c1a318b8dfe26aa2d1586c85ae">0.1.1</option>
 </optgroup>""")
 
-        response.mustcontain("""<span style="text-transform: uppercase;"><a href="#">branch: default</a></span>""")
-
     def test_file_annotation_git(self):
         self.log_user()
         response = self.app.get(url(controller='files', action='index',
@@ -196,7 +225,7 @@
 
     def test_archival(self):
         self.log_user()
-
+        _set_downloads(HG_REPO, set_to=True)
         for arch_ext, info in ARCHIVE_SPECS.items():
             short = '27cd5cce30c9%s' % arch_ext
             fname = '27cd5cce30c96924232dffcd24178a07ffeb5dfc%s' % arch_ext
@@ -217,7 +246,7 @@
 
     def test_archival_wrong_ext(self):
         self.log_user()
-
+        _set_downloads(HG_REPO, set_to=True)
         for arch_ext in ['tar', 'rar', 'x', '..ax', '.zipz']:
             fname = '27cd5cce30c96924232dffcd24178a07ffeb5dfc%s' % arch_ext
 
@@ -229,7 +258,7 @@
 
     def test_archival_wrong_revision(self):
         self.log_user()
-
+        _set_downloads(HG_REPO, set_to=True)
         for rev in ['00x000000', 'tar', 'wrong', '@##$@$42413232', '232dffcd']:
             fname = '%s.zip' % rev
 
--- a/rhodecode/tests/functional/test_home.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_home.py	Thu Dec 13 22:54:21 2012 +0100
@@ -1,7 +1,8 @@
 import time
 from rhodecode.tests import *
 from rhodecode.model.meta import Session
-from rhodecode.model.db import User
+from rhodecode.model.db import User, RhodeCodeSetting, Repository
+from rhodecode.lib.utils import set_rhodecode_config
 
 
 class TestHomeController(TestController):
@@ -59,3 +60,19 @@
             anon.active = True
             Session().add(anon)
             Session().commit()
+
+    def test_index_with_lightweight_dashboard(self):
+        self.log_user()
+
+        def set_l_dash(set_to):
+            self.app.post(url('admin_setting', setting_id='visual'),
+                          params=dict(_method='put',
+                                      rhodecode_lightweight_dashboard=set_to,))
+
+        set_l_dash(True)
+
+        try:
+            response = self.app.get(url(controller='home', action='index'))
+            response.mustcontain("""var data = {"totalRecords": %s""" % len(Repository.getAll()))
+        finally:
+            set_l_dash(False)
--- a/rhodecode/tests/functional/test_journal.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_journal.py	Thu Dec 13 22:54:21 2012 +0100
@@ -3,6 +3,7 @@
 from rhodecode.lib.helpers import get_token
 import datetime
 
+
 class TestJournalController(TestController):
 
     def test_index(self):
@@ -34,9 +35,10 @@
         self.log_user()
         response = self.app.get(url(controller='journal', action='index'),)
 
+    def test_public_journal_atom(self):
+        self.log_user()
+        response = self.app.get(url(controller='journal', action='public_journal_atom'),)
 
-    def __add_repo(self):
-        pass
-
-    def __remove_repo(self):
-        pass
+    def test_public_journal_rss(self):
+        self.log_user()
+        response = self.app.get(url(controller='journal', action='public_journal_rss'),)
--- a/rhodecode/tests/functional/test_shortlog.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/functional/test_shortlog.py	Thu Dec 13 22:54:21 2012 +0100
@@ -1,8 +1,65 @@
 from rhodecode.tests import *
 
+
 class TestShortlogController(TestController):
 
-    def test_index(self):
+    def test_index_hg(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    repo_name=HG_REPO))
+        # Test response...
+
+    def test_index_git(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    repo_name=GIT_REPO))
+        # Test response...
+
+    def test_index_hg_with_filenode(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    revision='tip', f_path='/vcs/exceptions.py',
+                                    repo_name=HG_REPO))
+        #history commits messages
+        response.mustcontain('Added exceptions module, this time for real')
+        response.mustcontain('Added not implemented hg backend test case')
+        response.mustcontain('Added BaseChangeset class')
+        # Test response...
+
+    def test_index_git_with_filenode(self):
         self.log_user()
-        response = self.app.get(url(controller='shortlog', action='index',repo_name=HG_REPO))
-        # Test response...
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    revision='tip', f_path='/vcs/exceptions.py',
+                                    repo_name=GIT_REPO))
+        #history commits messages
+        response.mustcontain('Added exceptions module, this time for real')
+        response.mustcontain('Added not implemented hg backend test case')
+        response.mustcontain('Added BaseChangeset class')
+
+    def test_index_hg_with_filenode_that_is_dirnode(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    revision='tip', f_path='/tests',
+                                    repo_name=HG_REPO))
+        self.assertEqual(response.status, '302 Found')
+
+    def test_index_git_with_filenode_that_is_dirnode(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    revision='tip', f_path='/tests',
+                                    repo_name=GIT_REPO))
+        self.assertEqual(response.status, '302 Found')
+
+    def test_index_hg_with_filenode_not_existing(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    revision='tip', f_path='/wrong_path',
+                                    repo_name=HG_REPO))
+        self.assertEqual(response.status, '302 Found')
+
+    def test_index_git_with_filenode_not_existing(self):
+        self.log_user()
+        response = self.app.get(url(controller='shortlog', action='index',
+                                    revision='tip', f_path='/wrong_path',
+                                    repo_name=GIT_REPO))
+        self.assertEqual(response.status, '302 Found')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/models/test_diff_parsers.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,86 @@
+from __future__ import with_statement
+import os
+import unittest
+from rhodecode.tests import *
+from rhodecode.lib.diffs import DiffProcessor, NEW_FILENODE, DEL_FILENODE, \
+    MOD_FILENODE, RENAMED_FILENODE, CHMOD_FILENODE
+
+dn = os.path.dirname
+FIXTURES = os.path.join(dn(dn(os.path.abspath(__file__))), 'fixtures')
+
+DIFF_FIXTURES = {
+    'hg_diff_add_single_binary_file.diff': [
+        (u'US Warszawa.jpg', 'A', ['b', NEW_FILENODE]),
+    ],
+    'hg_diff_mod_single_binary_file.diff': [
+        (u'US Warszawa.jpg', 'M', ['b', MOD_FILENODE]),
+    ],
+    'hg_diff_del_single_binary_file.diff': [
+        (u'US Warszawa.jpg', 'D', ['b', DEL_FILENODE]),
+    ],
+    'hg_diff_binary_and_normal.diff': [
+        (u'img/baseline-10px.png', 'A', ['b', NEW_FILENODE]),
+        (u'js/jquery/hashgrid.js', 'A', [340, 0]),
+        (u'index.html',            'M', [3, 2]),
+        (u'less/docs.less',        'M', [34, 0]),
+        (u'less/scaffolding.less', 'M', [1, 3]),
+        (u'readme.markdown',       'M', [1, 10]),
+        (u'img/baseline-20px.png', 'D', ['b', DEL_FILENODE]),
+        (u'js/global.js',          'D', [0, 75])
+    ],
+    'hg_diff_chmod.diff': [
+        (u'file', 'M', ['b', CHMOD_FILENODE]),
+    ],
+    'hg_diff_rename_file.diff': [
+        (u'file_renamed', 'M', ['b', RENAMED_FILENODE]),
+    ],
+    'git_diff_chmod.diff': [
+        (u'work-horus.xls', 'M', ['b', CHMOD_FILENODE]),
+    ],
+    'git_diff_rename_file.diff': [
+        (u'file.xls', 'M', ['b', RENAMED_FILENODE]),
+    ],
+    'git_diff_mod_single_binary_file.diff': [
+        ('US Warszawa.jpg', 'M', ['b', MOD_FILENODE])
+
+    ],
+    'git_diff_binary_and_normal.diff': [
+        (u'img/baseline-10px.png', 'A', ['b', NEW_FILENODE]),
+        (u'js/jquery/hashgrid.js', 'A', [340, 0]),
+        (u'index.html',            'M', [3, 2]),
+        (u'less/docs.less',        'M', [34, 0]),
+        (u'less/scaffolding.less', 'M', [1, 3]),
+        (u'readme.markdown',       'M', [1, 10]),
+        (u'img/baseline-20px.png', 'D', ['b', DEL_FILENODE]),
+        (u'js/global.js',          'D', [0, 75])
+    ],
+    'diff_with_diff_data.diff': [
+        (u'vcs/backends/base.py', 'M', [18, 2]),
+        (u'vcs/backends/git/repository.py', 'M', [46, 15]),
+        (u'vcs/backends/hg.py', 'M', [22, 3]),
+        (u'vcs/tests/test_git.py', 'M', [5, 5]),
+        (u'vcs/tests/test_repository.py', 'M', [174, 2])
+    ],
+#    'large_diff.diff': [
+#
+#    ],
+
+
+}
+
+
+def _diff_checker(fixture):
+    with open(os.path.join(FIXTURES, fixture)) as f:
+        diff = f.read()
+
+    diff_proc = DiffProcessor(diff)
+    diff_proc_d = diff_proc.prepare()
+    data = [(x['filename'], x['operation'], x['stats']) for x in diff_proc_d]
+    expected_data = DIFF_FIXTURES[fixture]
+
+    assert expected_data == data
+
+
+def test_parse_diff():
+    for fixture in DIFF_FIXTURES:
+        yield _diff_checker, fixture
--- a/rhodecode/tests/models/test_permissions.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/models/test_permissions.py	Thu Dec 13 22:54:21 2012 +0100
@@ -355,7 +355,7 @@
         self.assertEqual(u1_auth.permissions['global'],
                          set(['hg.create.repository', 'hg.fork.repository',
                               'hg.register.manual_activate',
-                              'repository.read']))
+                              'repository.read', 'group.read']))
 
     def test_inherited_permissions_from_default_on_user_disabled(self):
         user_model = UserModel()
@@ -373,7 +373,7 @@
         self.assertEqual(u1_auth.permissions['global'],
                          set(['hg.create.none', 'hg.fork.none',
                               'hg.register.manual_activate',
-                              'repository.read']))
+                              'repository.read', 'group.read']))
 
     def test_non_inherited_permissions_from_default_on_user_enabled(self):
         user_model = UserModel()
@@ -399,7 +399,7 @@
         self.assertEqual(u1_auth.permissions['global'],
                          set(['hg.create.none', 'hg.fork.none',
                               'hg.register.manual_activate',
-                              'repository.read']))
+                              'repository.read', 'group.read']))
 
     def test_non_inherited_permissions_from_default_on_user_disabled(self):
         user_model = UserModel()
@@ -425,7 +425,7 @@
         self.assertEqual(u1_auth.permissions['global'],
                          set(['hg.create.repository', 'hg.fork.repository',
                               'hg.register.manual_activate',
-                              'repository.read']))
+                              'repository.read', 'group.read']))
 
     def test_owner_permissions_doesnot_get_overwritten_by_group(self):
         #create repo as USER,
--- a/rhodecode/tests/models/test_repos_groups.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/models/test_repos_groups.py	Thu Dec 13 22:54:21 2012 +0100
@@ -4,7 +4,7 @@
 
 from rhodecode.model.repos_group import ReposGroupModel
 from rhodecode.model.repo import RepoModel
-from rhodecode.model.db import RepoGroup, User, Repository
+from rhodecode.model.db import RepoGroup, User
 from rhodecode.model.meta import Session
 from sqlalchemy.exc import IntegrityError
 
@@ -125,17 +125,7 @@
         g2 = _make_group('g2')
 
         # create new repo
-        form_data = dict(repo_name='john',
-                         repo_name_full='john',
-                         fork_name=None,
-                         description=None,
-                         repo_group=None,
-                         private=False,
-                         repo_type='hg',
-                         clone_uri=None,
-                         landing_rev='tip',
-                         enable_locking=False,
-                         recursive=False)
+        form_data = _get_repo_create_params(repo_name='john')
         cur_user = User.get_by_username(TEST_USER_ADMIN_LOGIN)
         r = RepoModel().create(form_data, cur_user)
 
@@ -146,7 +136,7 @@
         form_data['repo_group'] = g1.group_id
         form_data['perms_new'] = []
         form_data['perms_updates'] = []
-        RepoModel().update(r.repo_name, form_data)
+        RepoModel().update(r.repo_name, **form_data)
         self.assertEqual(r.repo_name, 'g1/john')
 
         self.__update_group(g1.group_id, 'g1', parent_id=g2.group_id)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/models/test_user_permissions_on_repos.py	Thu Dec 13 22:54:21 2012 +0100
@@ -0,0 +1,1 @@
+#TODO; write tests when we activate algo for permissions.
\ No newline at end of file
--- a/rhodecode/tests/scripts/create_rc.sh	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/scripts/create_rc.sh	Thu Dec 13 22:54:21 2012 +0100
@@ -1,6 +1,6 @@
 psql -U postgres -h localhost -c 'drop database if exists rhodecode;'
 psql -U postgres -h localhost -c 'create database rhodecode;'
-paster setup-rhodecode rc.ini -q --user=marcink --password=qweqwe --email=marcin@python-blog.com --repos=/home/marcink/repos
+paster setup-rhodecode rc.ini --force-yes --user=marcink --password=qweqwe --email=marcin@python-blog.com --repos=/home/marcink/repos
 API_KEY=`psql -R " " -A -U postgres -h localhost -c "select api_key from users where admin=TRUE" -d rhodecode | awk '{print $2}'`
 echo "run those after running server"
 paster serve rc.ini --pid-file=rc.pid --daemon
--- a/rhodecode/tests/scripts/test_crawler.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/scripts/test_crawler.py	Thu Dec 13 22:54:21 2012 +0100
@@ -58,9 +58,9 @@
 
 print 'Crawling @ %s' % BASE_URI
 BASE_URI += '%s'
-PROJECT_PATH = jn('/', 'home', 'marcink', 'hg_repos')
+PROJECT_PATH = jn('/', 'home', 'marcink', 'repos')
 PROJECTS = [
-    'linux-magx-pbranch',
+    #'linux-magx-pbranch',
     'CPython',
     'rhodecode_tip',
 ]
@@ -95,9 +95,12 @@
 
         page = '/'.join((proj, 'changelog',))
 
-        full_uri = (BASE_URI % page) + '?' + urllib.urlencode({'page':i})
+        full_uri = (BASE_URI % page) + '?' + urllib.urlencode({'page': i})
         s = time.time()
         f = o.open(full_uri)
+
+        assert f.url == full_uri, 'URL:%s does not match %s' % (f.url, full_uri)
+
         size = len(f.read())
         e = time.time() - s
         total_time += e
--- a/rhodecode/tests/scripts/test_vcs_operations.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/scripts/test_vcs_operations.py	Thu Dec 13 22:54:21 2012 +0100
@@ -322,11 +322,8 @@
         #pull fails since repo is locked
         clone_url = _construct_url(GIT_REPO)
         stdout, stderr = Command('/tmp').execute('git clone', clone_url)
-        msg = ("""abort: HTTP Error 423: Repository `%s` locked by user `%s`"""
+        msg = ("""423 Repository `%s` locked by user `%s`"""
                 % (GIT_REPO, TEST_USER_ADMIN_LOGIN))
-        #TODO: fix this somehow later on GIT, GIT is stupid and even if we throw
-        # back 423 to it, it makes ANOTHER request and we fail there with 405 :/
-        msg = "405 Method Not Allowed"
         assert msg in stderr
 
     def test_push_on_locked_repo_by_other_user_hg(self):
--- a/rhodecode/tests/test_libs.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/test_libs.py	Thu Dec 13 22:54:21 2012 +0100
@@ -129,6 +129,8 @@
         self.assertEqual(age(n - delt(hours=1)), u'1 hour ago')
         self.assertEqual(age(n - delt(hours=24)), u'1 day ago')
         self.assertEqual(age(n - delt(hours=24 * 5)), u'5 days ago')
+        self.assertEqual(age(n - delt(hours=24 * (calendar.mdays[n.month - 1]))),
+                         u'1 month ago')
         self.assertEqual(age(n - delt(hours=24 * (calendar.mdays[n.month - 1] + 2))),
                          u'1 month and 2 days ago')
         self.assertEqual(age(n - delt(hours=24 * 400)), u'1 year and 1 month ago')
@@ -144,7 +146,9 @@
         self.assertEqual(age(n + delt(hours=1)), u'in 1 hour')
         self.assertEqual(age(n + delt(hours=24)), u'in 1 day')
         self.assertEqual(age(n + delt(hours=24 * 5)), u'in 5 days')
-        self.assertEqual(age(n + delt(hours=24 * (calendar.mdays[n.month - 1] + 2))),
+        self.assertEqual(age(n + delt(hours=24 * (calendar.mdays[n.month]))),
+                         u'in 1 month')
+        self.assertEqual(age(n + delt(hours=24 * (calendar.mdays[n.month] + 1))),
                          u'in 1 month and 1 day')
         self.assertEqual(age(n + delt(hours=24 * 400)), u'in 1 year and 1 month')
 
--- a/rhodecode/tests/vcs/test_changesets.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/vcs/test_changesets.py	Thu Dec 13 22:54:21 2012 +0100
@@ -5,7 +5,8 @@
 from base import BackendTestMixin
 from conf import SCM_TESTS
 from rhodecode.lib.vcs.backends.base import BaseChangeset
-from rhodecode.lib.vcs.nodes import FileNode
+from rhodecode.lib.vcs.nodes import FileNode, AddedFileNodesGenerator,\
+    ChangedFileNodesGenerator, RemovedFileNodesGenerator
 from rhodecode.lib.vcs.exceptions import BranchDoesNotExistError
 from rhodecode.lib.vcs.exceptions import ChangesetDoesNotExistError
 from rhodecode.lib.vcs.exceptions import RepositoryError
@@ -308,13 +309,16 @@
 
     def test_head_added(self):
         changeset = self.repo.get_changeset()
+        self.assertTrue(isinstance(changeset.added, AddedFileNodesGenerator))
         self.assertItemsEqual(changeset.added, [
             changeset.get_node('fallout'),
         ])
+        self.assertTrue(isinstance(changeset.changed, ChangedFileNodesGenerator))
         self.assertItemsEqual(changeset.changed, [
             changeset.get_node('foo/bar'),
             changeset.get_node('foobar'),
         ])
+        self.assertTrue(isinstance(changeset.removed, RemovedFileNodesGenerator))
         self.assertEqual(len(changeset.removed), 1)
         self.assertEqual(list(changeset.removed)[0].path, 'qwe')
 
--- a/rhodecode/tests/vcs/test_git.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/vcs/test_git.py	Thu Dec 13 22:54:21 2012 +0100
@@ -470,9 +470,11 @@
         for fname, revision_dict in files.items():
             for rev, data in revision_dict.items():
                 cs = self.repo.get_changeset(rev)
-                ann = cs.get_file_annotate(fname)
 
-                l1 = [x[1].raw_id for x in ann]
+                l1_1 = [x[1] for x in cs.get_file_annotate(fname)]
+                l1_2 = [x[2]().raw_id for x in cs.get_file_annotate(fname)]
+                self.assertEqual(l1_1, l1_2)
+                l1 = l1_1
                 l2 = files[fname][rev]['changesets']
                 self.assertTrue(l1 == l2 , "The lists of revision for %s@rev %s"
                                 "from annotation list should match each other, "
@@ -640,19 +642,22 @@
     def test_get_diff_runs_git_command_with_hashes(self):
         self.repo.run_git_command = mock.Mock(return_value=['', ''])
         self.repo.get_diff(0, 1)
-        self.repo.run_git_command.assert_called_once_with('diff -U%s %s %s' %
+        self.repo.run_git_command.assert_called_once_with(
+          'diff -U%s --full-index --binary -p -M --abbrev=40 %s %s' %
             (3, self.repo._get_revision(0), self.repo._get_revision(1)))
 
     def test_get_diff_runs_git_command_with_str_hashes(self):
         self.repo.run_git_command = mock.Mock(return_value=['', ''])
         self.repo.get_diff(self.repo.EMPTY_CHANGESET, 1)
-        self.repo.run_git_command.assert_called_once_with('show -U%s %s' %
+        self.repo.run_git_command.assert_called_once_with(
+            'show -U%s --full-index --binary -p -M --abbrev=40 %s' %
             (3, self.repo._get_revision(1)))
 
     def test_get_diff_runs_git_command_with_path_if_its_given(self):
         self.repo.run_git_command = mock.Mock(return_value=['', ''])
         self.repo.get_diff(0, 1, 'foo')
-        self.repo.run_git_command.assert_called_once_with('diff -U%s %s %s -- "foo"'
+        self.repo.run_git_command.assert_called_once_with(
+          'diff -U%s --full-index --binary -p -M --abbrev=40 %s %s -- "foo"'
             % (3, self.repo._get_revision(0), self.repo._get_revision(1)))
 
 
--- a/rhodecode/tests/vcs/test_hg.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/vcs/test_hg.py	Thu Dec 13 22:54:21 2012 +0100
@@ -392,13 +392,13 @@
                                  55: {'lines_no': 3,
                                      'changesets': [7, 7, 7]}}}
 
-
         for fname, revision_dict in files.items():
             for rev, data in revision_dict.items():
                 cs = self.repo.get_changeset(rev)
-                ann = cs.get_file_annotate(fname)
-
-                l1 = [x[1].revision for x in ann]
+                l1_1 = [x[1] for x in cs.get_file_annotate(fname)]
+                l1_2 = [x[2]().raw_id for x in cs.get_file_annotate(fname)]
+                self.assertEqual(l1_1, l1_2)
+                l1 = l1_2 = [x[2]().revision for x in cs.get_file_annotate(fname)]
                 l2 = files[fname][rev]['changesets']
                 self.assertTrue(l1 == l2 , "The lists of revision for %s@rev%s"
                                 "from annotation list should match each other,"
--- a/rhodecode/tests/vcs/test_repository.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/tests/vcs/test_repository.py	Thu Dec 13 22:54:21 2012 +0100
@@ -74,6 +74,7 @@
         with self.assertRaises(ChangesetDoesNotExistError):
             self.repo.get_diff('a' * 40, 'b' * 40)
 
+
 class GitRepositoryGetDiffTest(RepositoryGetDiffTest, unittest.TestCase):
     backend_alias = 'git'
 
@@ -81,7 +82,7 @@
         initial_rev = self.repo.revisions[0]
         self.assertEqual(self.repo.get_diff(self.repo.EMPTY_CHANGESET, initial_rev), '''diff --git a/foobar b/foobar
 new file mode 100644
-index 0000000..f6ea049
+index 0000000000000000000000000000000000000000..f6ea0495187600e7b2288c8ac19c5886383a4632
 --- /dev/null
 +++ b/foobar
 @@ -0,0 +1 @@
@@ -89,7 +90,7 @@
 \ No newline at end of file
 diff --git a/foobar2 b/foobar2
 new file mode 100644
-index 0000000..e8c9d6b
+index 0000000000000000000000000000000000000000..e8c9d6b98e3dce993a464935e1a53f50b56a3783
 --- /dev/null
 +++ b/foobar2
 @@ -0,0 +1 @@
@@ -100,7 +101,7 @@
     def test_second_changeset_diff(self):
         revs = self.repo.revisions
         self.assertEqual(self.repo.get_diff(revs[0], revs[1]), '''diff --git a/foobar b/foobar
-index f6ea049..389865b 100644
+index f6ea0495187600e7b2288c8ac19c5886383a4632..389865bb681b358c9b102d79abd8d5f941e96551 100644
 --- a/foobar
 +++ b/foobar
 @@ -1 +1 @@
@@ -110,7 +111,7 @@
 \ No newline at end of file
 diff --git a/foobar3 b/foobar3
 new file mode 100644
-index 0000000..c11c37d
+index 0000000000000000000000000000000000000000..c11c37d41d33fb47741cff93fa5f9d798c1535b0
 --- /dev/null
 +++ b/foobar3
 @@ -0,0 +1 @@
@@ -122,14 +123,14 @@
         revs = self.repo.revisions
         self.assertEqual(self.repo.get_diff(revs[1], revs[2]), '''diff --git a/foobar b/foobar
 deleted file mode 100644
-index 389865b..0000000
+index 389865bb681b358c9b102d79abd8d5f941e96551..0000000000000000000000000000000000000000
 --- a/foobar
 +++ /dev/null
 @@ -1 +0,0 @@
 -FOOBAR
 \ No newline at end of file
 diff --git a/foobar3 b/foobar3
-index c11c37d..f932447 100644
+index c11c37d41d33fb47741cff93fa5f9d798c1535b0..f9324477362684ff692aaf5b9a81e01b9e9a671c 100644
 --- a/foobar3
 +++ b/foobar3
 @@ -1 +1,3 @@
--- a/rhodecode/websetup.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/rhodecode/websetup.py	Thu Dec 13 22:54:21 2012 +0100
@@ -37,15 +37,15 @@
     """Place any commands to setup rhodecode here"""
     dbconf = conf['sqlalchemy.db1.url']
     dbmanage = DbManage(log_sql=True, dbconf=dbconf, root=conf['here'],
-                        tests=False)
-    dbmanage.create_tables(override=True, defaults=command.options.__dict__)
+                        tests=False, cli_args=command.options.__dict__)
+    dbmanage.create_tables(override=True)
     dbmanage.set_db_version()
-    opts = dbmanage.config_prompt(None, defaults=command.options.__dict__)
+    opts = dbmanage.config_prompt(None)
     dbmanage.create_settings(opts)
     dbmanage.create_default_user()
-    dbmanage.admin_prompt(defaults=command.options.__dict__)
+    dbmanage.admin_prompt()
     dbmanage.create_permissions()
     dbmanage.populate_default_permissions()
-    Session.commit()
+    Session().commit()
     load_environment(conf.global_conf, conf.local_conf, initial=True)
     dbmanage.finish()
--- a/setup.py	Tue Oct 09 00:57:07 2012 +0200
+++ b/setup.py	Thu Dec 13 22:54:21 2012 +0100
@@ -39,15 +39,15 @@
     "Beaker==1.6.4",
     "WebHelpers==1.3",
     "formencode==1.2.4",
-    "SQLAlchemy==0.7.8",
-    "Mako==0.7.2",
+    "SQLAlchemy==0.7.9",
+    "Mako==0.7.3",
     "pygments>=1.5",
     "whoosh>=2.4.0,<2.5",
     "celery>=2.2.5,<2.3",
     "babel",
     "python-dateutil>=1.5.0,<2.0.0",
-    "dulwich>=0.8.5,<0.9.0",
-    "markdown==2.1.1",
+    "dulwich>=0.8.7,<0.9.0",
+    "markdown==2.2.1",
     "docutils==0.8.1",
     "simplejson==2.5.2",
     "mock",
@@ -60,10 +60,10 @@
     requirements.append("unittest2")
 
 if is_windows:
-    requirements.append("mercurial==2.3.2")
+    requirements.append("mercurial==2.4.1")
 else:
     requirements.append("py-bcrypt")
-    requirements.append("mercurial==2.3.2")
+    requirements.append("mercurial==2.4.1")
 
 
 dependency_links = [
@@ -158,6 +158,7 @@
     [paste.global_paster_command]
     setup-rhodecode=rhodecode.config.setup_rhodecode:SetupCommand
     cleanup-repos=rhodecode.lib.cleanup:CleanupCommand
+    update-repoinfo=rhodecode.lib.update_repoinfo:UpdateCommand
     make-index=rhodecode.lib.indexers:MakeIndex
     make-rcext=rhodecode.config.rcextensions.make_rcextensions:MakeRcExt
     upgrade-db=rhodecode.lib.dbmigrate:UpgradeDb
--- a/test.ini	Tue Oct 09 00:57:07 2012 +0200
+++ b/test.ini	Thu Dec 13 22:54:21 2012 +0100
@@ -48,8 +48,8 @@
 full_stack = true
 static_files = true
 lang=en
-cache_dir = /tmp/data
-index_dir = /tmp/index
+cache_dir = /tmp/rc/data
+index_dir = /tmp/rc/index
 app_instance_uuid = develop-test
 cut_off_limit = 256000
 force_https = false
@@ -129,8 +129,8 @@
 ####################################
 ###         BEAKER CACHE        ####
 ####################################
-beaker.cache.data_dir=/tmp/data/cache/data
-beaker.cache.lock_dir=/tmp/data/cache/lock
+beaker.cache.data_dir=/tmp/rc/data/cache/data
+beaker.cache.lock_dir=/tmp/rc/data/cache/lock
 
 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long